-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from brainstormforce/dev
v1.1.0
- Loading branch information
Showing
269 changed files
with
15,408 additions
and
27,911 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
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ dist/* | |
.DS_Store | ||
*storybook.log | ||
storybook-static/* | ||
*.zip | ||
*.zip | ||
*.app.tsbuildinfo | ||
*.node.tsbuildinfo |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import type { StorybookConfig } from '@storybook/react-vite'; | ||
import path from 'path'; | ||
|
||
/** @type { import('@storybook/react-webpack5').StorybookConfig } */ | ||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-onboarding', | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@chromatic-com/storybook', | ||
'@storybook/addon-interactions', | ||
], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: { | ||
builder: { | ||
viteConfigPath: path.resolve(__dirname, '..', 'vite.config.ts'), | ||
}, | ||
}, | ||
}, | ||
core: { | ||
builder: '@storybook/builder-vite', | ||
}, | ||
viteFinal: async (config) => { | ||
// Merge custom configuration into the default config | ||
const { mergeConfig } = await import('vite'); | ||
|
||
return mergeConfig(config, { | ||
optimizeDeps: { | ||
include: [ | ||
'storybook-dark-mode', | ||
'storybook-addon-interactions', | ||
], | ||
}, | ||
resolve: { | ||
...config.resolve, | ||
alias: { | ||
...config.resolve?.alias, | ||
// 👇 Internal modules | ||
'@/icons': path.resolve( | ||
__dirname, | ||
'..', | ||
'src/ui/icons.jsx' | ||
), | ||
'@/utilities': path.resolve( | ||
__dirname, | ||
'..', | ||
'src/utilities' | ||
), | ||
'@/components': path.resolve( | ||
__dirname, | ||
'..', | ||
'src/components' | ||
), | ||
'@': path.resolve(__dirname, '..', 'src'), | ||
}, | ||
}, | ||
}); | ||
}, | ||
}; | ||
export default config; |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
export default { | ||
extends: ['@wordpress/stylelint-config'], | ||
rules: { | ||
'font-family-name-quotes': 'always-where-recommended', | ||
'function-url-quotes': 'always', | ||
'declaration-property-unit-allowed-list': { | ||
'/^line-height/': ['em', 'rem', 'px'], | ||
}, | ||
'comment-empty-line-before': null, | ||
'selector-class-pattern': null, | ||
'selector-id-pattern': null, | ||
'no-descending-specificity': null, | ||
'no-duplicate-selectors': null, | ||
'at-rule-no-unknown': null, | ||
'at-rule-empty-line-before': null, | ||
'at-rule-empty-line-before': [ | ||
'always', | ||
{ | ||
except: ['blockless-after-same-name-blockless', 'first-nested'], | ||
ignore: ['after-comment'], | ||
}, | ||
], | ||
'block-no-empty': true, | ||
'no-empty-source': true, | ||
'declaration-empty-line-before': [ | ||
'always', | ||
{ | ||
except: ['after-declaration', 'first-nested'], | ||
ignore: ['after-comment', 'inside-single-line-block'], | ||
}, | ||
], | ||
'rule-empty-line-before': [ | ||
'always-multi-line', | ||
{ | ||
except: ['first-nested'], | ||
ignore: ['after-comment'], | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.scss', '**/*.scss'], | ||
extends: '@wordpress/stylelint-config/scss-stylistic', | ||
}, | ||
{ | ||
files: ['*.css', '**/*.css'], | ||
extends: '@wordpress/stylelint-config/stylistic', | ||
}, | ||
], | ||
customSyntax: 'postcss-scss', | ||
}; |
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 was deleted.
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.