-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Storybook to v7, use @storybook/react-vite, move DocsUtils in…
…to core to break cyclic dependency (#1309) * Upgrade Storybook to v7, move DocsUtils into core to break cyclic dependency * Build Storybook with Vite
- Loading branch information
Showing
160 changed files
with
6,935 additions
and
10,706 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
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,29 @@ | ||
import type { StorybookConfig } from '@storybook/react-vite' | ||
|
||
import { storykitAddons, framework } from '@priceline/storybook-preset' | ||
|
||
const packagesWithStories = [ | ||
'carousel', | ||
'core', | ||
'icons', | ||
'autocomplete', | ||
'menu', | ||
'modal', | ||
'popover', | ||
'slider', | ||
] | ||
const storiesGlob = 'src/**/*.stories.@(js|jsx|ts|tsx)' | ||
|
||
const config: StorybookConfig = { | ||
framework, | ||
stories: packagesWithStories.map((packageFolder) => `../../../packages/${packageFolder}/${storiesGlob}`), | ||
addons: storykitAddons, | ||
docs: { | ||
autodocs: true, | ||
}, | ||
typescript: { | ||
check: false, | ||
}, | ||
} | ||
|
||
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,41 @@ | ||
import { decorators as presetDecorators, parameters as presetParameters } from '@priceline/storybook-preset' | ||
import { createTheme } from 'pcln-design-system' | ||
|
||
const baseTheme = createTheme() | ||
|
||
export const decorators = presetDecorators | ||
|
||
export const parameters = { | ||
...presetParameters, | ||
|
||
backgrounds: { | ||
default: 'background.lightest', | ||
values: [ | ||
{ | ||
name: 'background.lightest', | ||
value: baseTheme.palette.background.lightest, | ||
}, | ||
{ | ||
name: 'background.light', | ||
value: baseTheme.palette.background.light, | ||
}, | ||
{ | ||
name: 'background.base', | ||
value: baseTheme.palette.background.base, | ||
}, | ||
{ | ||
name: 'background.dark', | ||
value: baseTheme.palette.background.dark, | ||
}, | ||
{ | ||
name: 'background.darkest', | ||
value: baseTheme.palette.background.darkest, | ||
}, | ||
], | ||
}, | ||
|
||
controls: { | ||
expanded: true, | ||
sort: 'requiredFirst', | ||
}, | ||
} |
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
11 changes: 11 additions & 0 deletions
11
common/changes/pcln-autocomplete/UXPT-4716--storybook-v7_2023-06-14-15-26.json
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,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "Upgrade Storybook to v7", | ||
"type": "minor", | ||
"packageName": "pcln-autocomplete" | ||
} | ||
], | ||
"packageName": "pcln-autocomplete", | ||
"email": "steven.dalonzo@priceline.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/pcln-carousel/UXPT-4716--storybook-v7_2023-06-14-15-26.json
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,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "Upgrade Storybook to v7", | ||
"type": "minor", | ||
"packageName": "pcln-carousel" | ||
} | ||
], | ||
"packageName": "pcln-carousel", | ||
"email": "steven.dalonzo@priceline.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/pcln-codemods/UXPT-4716--storybook-v7_2023-06-14-15-26.json
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,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "Upgrade Storybook to v7", | ||
"type": "minor", | ||
"packageName": "pcln-codemods" | ||
} | ||
], | ||
"packageName": "pcln-codemods", | ||
"email": "steven.dalonzo@priceline.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/pcln-design-system/UXPT-4716--storybook-v7_2023-06-14-15-26.json
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,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "Upgrade Storybook to v7", | ||
"type": "minor", | ||
"packageName": "pcln-design-system" | ||
} | ||
], | ||
"packageName": "pcln-design-system", | ||
"email": "steven.dalonzo@priceline.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/pcln-icons/UXPT-4716--storybook-v7_2023-06-14-15-26.json
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,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "Upgrade Storybook to v7", | ||
"type": "minor", | ||
"packageName": "pcln-icons" | ||
} | ||
], | ||
"packageName": "pcln-icons", | ||
"email": "steven.dalonzo@priceline.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/pcln-menu/UXPT-4716--storybook-v7_2023-06-14-15-26.json
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,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "Upgrade Storybook to v7", | ||
"type": "minor", | ||
"packageName": "pcln-menu" | ||
} | ||
], | ||
"packageName": "pcln-menu", | ||
"email": "steven.dalonzo@priceline.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/pcln-modal/UXPT-4716--storybook-v7_2023-06-14-15-26.json
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,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "Upgrade Storybook to v7", | ||
"type": "minor", | ||
"packageName": "pcln-modal" | ||
} | ||
], | ||
"packageName": "pcln-modal", | ||
"email": "steven.dalonzo@priceline.com" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/pcln-popover/UXPT-4716--storybook-v7_2023-06-14-15-26.json
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,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "Upgrade Storybook to v7", | ||
"type": "minor", | ||
"packageName": "pcln-popover" | ||
} | ||
], | ||
"packageName": "pcln-popover", | ||
"email": "steven.dalonzo@priceline.com" | ||
} |
Oops, something went wrong.