-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: update to uikit@5, node@18, storybook@7; remove assets
- Loading branch information
Showing
30 changed files
with
18,866 additions
and
16,563 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"sourceType": "unambiguous", | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"chrome": 100 | ||
} | ||
} | ||
], | ||
"@babel/preset-typescript", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [] | ||
} |
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
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
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 +1 @@ | ||
14.20 | ||
18 |
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,18 @@ | ||
import type {StorybookConfig} from '@storybook/react-webpack5'; | ||
|
||
const config:StorybookConfig = { | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
options: {fastRefresh: true}, | ||
}, | ||
stories: ['../demo/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/preset-scss', | ||
{name: '@storybook/addon-essentials', options: {backgrounds: false}}, | ||
], | ||
typescript: { | ||
check: true, | ||
}, | ||
}; | ||
|
||
export default config; |
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,42 @@ | ||
import type {Preview} from '@storybook/react'; | ||
import {MINIMAL_VIEWPORTS} from '@storybook/addon-viewport'; | ||
|
||
import {withThemeProvider, withLang, backgrounds} from '../demo/utils/preview'; | ||
|
||
const preview: Preview = { | ||
decorators: [withThemeProvider, withLang], | ||
parameters: { | ||
jsx: {showFunctions: true}, // To show functions in sources | ||
viewport: { | ||
viewports: MINIMAL_VIEWPORTS, | ||
}, | ||
}, | ||
globalTypes: { | ||
theme: { | ||
defaultValue: 'light', | ||
toolbar: { | ||
title: 'Theme', | ||
icon: 'mirror', | ||
items: [ | ||
{value: 'light', right: '☼', title: 'Light'}, | ||
{value: 'dark', right: '☾', title: 'Dark'}, | ||
{value: 'light-hc', right: '☼', title: 'High Contrast Light (beta)'}, | ||
{value: 'dark-hc', right: '☾', title: 'High Contrast Dark (beta)'}, | ||
], | ||
}, | ||
}, | ||
lang: { | ||
defaultValue: 'en', | ||
toolbar: { | ||
title: 'Language', | ||
icon: 'globe', | ||
items: [ | ||
{value: 'en', right: '🇬🇧', title: 'En'}, | ||
{value: 'ru', right: '🇷🇺', title: 'Ru'}, | ||
], | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default preview; |
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 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
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
Oops, something went wrong.