Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(Storybook): migrate to version 6 #801

Merged
merged 74 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
1ac3499
inital upgrade packages
eszthoff Aug 2, 2022
84f982f
change story hirarchy separator
eszthoff Aug 2, 2022
27e1119
change config structure
eszthoff Aug 2, 2022
3ccf959
Args passed as first argument to story
eszthoff Aug 2, 2022
0e31887
configure storybook
eszthoff Aug 5, 2022
974bb84
change Button
eszthoff Aug 5, 2022
6ab52ea
ButtonGroup
eszthoff Aug 5, 2022
945962c
Callout
eszthoff Aug 5, 2022
546f4fa
Checkbox
eszthoff Aug 5, 2022
45781d7
CandidateAvatar
eszthoff Aug 5, 2022
9b8d405
Chip
eszthoff Aug 5, 2022
88f12a9
ContentPlaceholder
eszthoff Aug 5, 2022
04e4dad
Dialogs
eszthoff Aug 5, 2022
969876f
Drawer
eszthoff Aug 5, 2022
532cd76
Field
eszthoff Aug 5, 2022
d429189
FieldWrapper
eszthoff Aug 5, 2022
efc6fd6
BulkActionsToolbar
eszthoff Aug 5, 2022
2489cd6
Footer
eszthoff Aug 5, 2022
e61a127
Gauge
eszthoff Aug 5, 2022
3f8da17
Header
eszthoff Aug 5, 2022
f85d419
Heading
eszthoff Aug 8, 2022
fad0ad1
Icon
eszthoff Aug 8, 2022
e11f1ee
Link
eszthoff Aug 8, 2022
d02c171
List
eszthoff Aug 8, 2022
f803b51
LoadingSpinner
eszthoff Aug 8, 2022
d562cb7
LocationCard
eszthoff Aug 8, 2022
3bafc76
LocationAutocomplete
eszthoff Aug 8, 2022
ca083e9
Map
eszthoff Aug 8, 2022
2219d10
Navigation
eszthoff Aug 8, 2022
b340d7f
Pagination
eszthoff Aug 8, 2022
4e3b4a5
Pill
eszthoff Aug 8, 2022
7cb363c
PopupBase
eszthoff Aug 8, 2022
7fca0dc
ProductTour
eszthoff Aug 8, 2022
9bc319b
RadioButton
eszthoff Aug 8, 2022
aedce8a
ProgressBar
eszthoff Aug 8, 2022
242033e
SelectedOption
eszthoff Aug 9, 2022
7ea8e4e
SelectedOption part 2
eszthoff Aug 9, 2022
26fec35
Slider
eszthoff Aug 9, 2022
9b04386
StickyHeader
eszthoff Aug 9, 2022
832ca74
Tag
eszthoff Aug 9, 2022
6733347
Teaser
eszthoff Aug 9, 2022
e142178
Text
eszthoff Aug 9, 2022
7041f99
Themeroller
eszthoff Aug 9, 2022
79eb31b
TextArea
eszthoff Aug 9, 2022
f0e69f7
Toggle
eszthoff Aug 9, 2022
0e6b78a
Tooltip
eszthoff Aug 9, 2022
c976943
TwoPaneView
eszthoff Aug 9, 2022
19ca39f
WeightedResultBar
eszthoff Aug 9, 2022
854e967
WidthRestrictor
eszthoff Aug 9, 2022
62df31c
packages
eszthoff Aug 9, 2022
3cf6bf2
lint and other forgotten changes
eszthoff Aug 9, 2022
c665e87
DatePicker
eszthoff Aug 9, 2022
833a168
Tabs
eszthoff Aug 9, 2022
3b9055a
SelectButtonGroup
eszthoff Aug 11, 2022
655a7b0
forgotten imports
eszthoff Aug 11, 2022
159c6e5
NumericStepper
eszthoff Aug 11, 2022
e9ab9c5
Modal
eszthoff Aug 12, 2022
bb29fa7
LabelPicker
eszthoff Aug 12, 2022
9703871
Input
eszthoff Aug 12, 2022
f4b4892
lint
eszthoff Aug 12, 2022
cf2829e
Highlighter
eszthoff Aug 12, 2022
1dfa11e
LocationSelector
eszthoff Aug 12, 2022
6921443
Select
eszthoff Aug 15, 2022
09f6765
Dropdown
eszthoff Aug 15, 2022
73ada07
FieldWithValidation
eszthoff Aug 15, 2022
b7c6f6e
recreate package-lock
eszthoff Aug 18, 2022
4502358
"remove" AutosuggestDeprecated story
eszthoff Aug 18, 2022
741197c
remove unused `withStore` function
eszthoff Aug 18, 2022
3d96e4b
remove unused packages
eszthoff Aug 18, 2022
cb54b3b
lint
eszthoff Aug 18, 2022
924bc49
add base style to stories
eszthoff Aug 19, 2022
6a7d16a
fix css import order
eszthoff Aug 19, 2022
2fdbe58
load theme first
eszthoff Aug 22, 2022
59d5b75
remove unused story
eszthoff Aug 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@
"react/display-name": "off",
eszthoff marked this conversation as resolved.
Show resolved Hide resolved
"react/destructuring-assignment": "off",
"react/prop-types": "off",
"react/jsx-setDefaultAreaHighlight-newline": "off"
"react/jsx-setDefaultAreaHighlight-newline": "off",
"import/no-default-export": "off",
"no-underscore-dangle": "off"
}
}
],
Expand Down
3 changes: 0 additions & 3 deletions .storybook/.babelrc

This file was deleted.

6 changes: 2 additions & 4 deletions .storybook/oneui.theme.js → .storybook/TKTheme.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { create } from '@storybook/theming';
import brandImage from './textkernel.svg';

export const OneUITheme = create({
export default create({
base: 'light',

// Branding
brandTitle: 'Textkernel OneUI',
brandUrl: 'https://textkernel.com',
brandImage
brandImage,
});
2 changes: 0 additions & 2 deletions .storybook/addons.js

This file was deleted.

28 changes: 0 additions & 28 deletions .storybook/config.js

This file was deleted.

31 changes: 31 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const path = require('path');
const { getRules } = require('../scripts/build/webpack.config');

module.exports = {
stories: [
'../stories/theme/*.@(js|jsx|ts|tsx)',
'../stories/atoms/*.@(js|jsx|ts|tsx)',
'../stories/molecules/*.@(js|jsx|ts|tsx)',
'../stories/organisms/*.@(js|jsx|ts|tsx)',
'../stories/packages/*.@(js|jsx|ts|tsx)',
'../stories/**/*.@(js|jsx|ts|tsx)',
],
addons: [
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: '@storybook/react',
webpackFinal: async (config, { configType }) => {
const type = configType === 'DEVELOPMENT' ? 'dev' : 'prod';
const rules = getRules(type);

config.resolve.alias['@textkernel/oneui'] = path.resolve(__dirname, '../src');
// Make whatever fine-grained changes you need
config.module.rules.push(rules.js, rules.scss);

// Return the altered config
return config;
},
};
6 changes: 6 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { addons } from '@storybook/addons';
import TKTheme from './TKTheme';

addons.setConfig({
theme: TKTheme,
});
15 changes: 15 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
options: {
storySort: {
method: 'alphabetical',
order: ['Concepts', 'Theme', 'Atoms', 'Molecules', 'Organisms', 'Packages'],
},
},
};
69 changes: 0 additions & 69 deletions .storybook/webpack.config.js

This file was deleted.

Loading