forked from Trendyol/baklava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: icon component boilerplate is created * chore(storybook): use dist build directly in storybook ui * feat: icon component implemented * fix: firefox sometimes fails with concurrent tests * chore: build script refactored * chore: dependencies are updated * chore(design): linter fixes Co-authored-by: Murat Çorlu <[email protected]>
- Loading branch information
1 parent
a82bc24
commit ae69926
Showing
27 changed files
with
462 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 1,17 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
logLevel: 'debug', | ||
stories: [ | ||
'../*.md', | ||
'../docs/**/*.stories.mdx', | ||
'../src/**/*.stories.@(js|jsx|ts|tsx|mdx)', | ||
], | ||
stories: ['../*.md', '../docs/**/*.stories.mdx', '../src/**/*.stories.mdx'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-docs', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-a11y', | ||
'@storybook/addon-docs', | ||
], | ||
features: { | ||
postcss: false, | ||
interactionsDebugger: true, | ||
buildStoriesJson: true, | ||
}, | ||
framework: '@storybook/web-components', | ||
webpackFinal: async config => { | ||
const gracePath = path.join(__dirname, '..', 'dist'); | ||
config.resolve.alias['@trendyol-js/grace'] = path.resolve( | ||
gracePath, | ||
'grace.js' | ||
); | ||
return config; | ||
}, | ||
staticDirs: ['../dist'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,2 @@ | ||
<link rel="stylesheet" href="/themes/default.css" /> | ||
<script type="module" src="/grace.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 1,21 @@ | ||
import { Meta, Title, IconGallery, IconItem } from '@storybook/addon-docs/'; | ||
import { Meta, Title, IconGallery, IconItem } from '@storybook/addon-docs'; | ||
|
||
<Meta title="Design System/Iconography" /> | ||
<Meta | ||
title="Design System/Iconography" | ||
parameters={{ | ||
viewMode: 'docs', | ||
previewTabs: { | ||
canvas: { | ||
hidden: true, | ||
}, | ||
}, | ||
}} | ||
/> | ||
|
||
# Iconography | ||
|
||
<IconGallery> | ||
<IconItem name="mobile"> | ||
<p>Test</p> | ||
<IconItem name="info"> | ||
<gr-icon name="info"></gr-icon> | ||
</IconItem> | ||
</IconGallery> | ||
</IconGallery> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.