-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support css modules in storybook (#4931)
* wip: working fresh storybook vite * moved over old storybook config * migrate old preview and test runner * delete old storybook * migrate tailwind package to package-bundler * remove unnecessary config * remove old docs * migrated design-tokens to packaghe-bundler * shuffled * add KAIO styles * generate the tailwind css within the kaizen/tailwind package and use it in storybook to reduce crossover deps * fix tailwind docs * remove unused tailwind + update build config * Fix linting * remove unused paths in root tsconfig * fix types * fix lint * add changeset * working * fix aliases * move KAIO to dep for storybook * fixed turbo * fix pnpm lock * fix types * Update .gitignore * target current directory for config * fix build * encapsulate storybook commands into storybook workspace * fixups * fix type errors * fix type errors * introduce css linting * remove postcss from root * pt1 of root dep clean up * update pnpm lock * fix playwright * move token stories to design-tokens package * fix storybook deps * more deps shuffling * move stylinting to the root * comment on dev deps * add types for react-highlight * add chromatic to storybook * add standard styleint config * upgrade pnpm version * fix pnpm lock?? * remove need for exporting styles * Update packages/tailwind/src/_docs/pages/modifiers/media-queries.stories.tsx Co-authored-by: Cassandra <cassandra.tam@cultureamp.com> * Update packages/tailwind/src/_docs/pages/working-with-tailwind.stories.tsx Co-authored-by: Cassandra <cassandra.tam@cultureamp.com> * Update .storybook/components/StickerSheet/types.ts Co-authored-by: Cassandra <cassandra.tam@cultureamp.com> * cleanup * fix name of dosanddons * fix name of dosanddons * update storybook components * fix * add back highlight.js * bring back black and spacing updates * restore * fix ups * fix ups * fix design-tokens distribution * fix design-tokens distribution * fix tailwind KAIO references * build before lint ts * get rid of render-hook * up the numbers * added changesets * added changesets * deprecate useResizeObserver * update changese * fix storybook test gha * moved storybook output file * fix chromatic gha build * fix shard command to chromatic test * move storybook to docs * fix chromatic workflow * introduce chromatic command * fix lint * fix tailwind for docs * fix publish shell script * fix gitignore * update ignores * fix aliases * fix docs tailwind config * fix pseudo storybook addon * update stylelint rules for CSS * move @types/react to root for all packages to use * moved types.d.ts into individual packages * fix docs * fixups * moved chromatic from KAIO to root * shuffled deps * move docs util/tailwind.css to preview.css and ignore * fix linting * fix chromatic flag --------- Co-authored-by: Geoffrey Chong <gyf.chong@gmail.com> Co-authored-by: Cassandra <cassandra.tam@cultureamp.com>
- Loading branch information
1 parent
df16927
commit febd282
Showing
329 changed files
with
2,632 additions
and
3,421 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 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,5 @@ | ||
--- | ||
"@kaizen/hosted-assets": minor | ||
--- | ||
|
||
Deprecated hosted-assets in favour of KAIO |
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,7 @@ | ||
--- | ||
"@kaizen/design-tokens": minor | ||
"@kaizen/tailwind": minor | ||
--- | ||
|
||
- Added ESM bundle | ||
- Fixed design-tokens js entrypoint |
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,6 @@ | ||
--- | ||
"@kaizen/components": minor | ||
--- | ||
|
||
- Exported types from LikertScale | ||
- Deprecated `useResizeObserver` in favour of native DOM API `ResizeObserver` |
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,3 +1,4 @@ | ||
/packages/**/dist | ||
/packages/components/src/Icon/bin/Template.tsx | ||
storybook/public | ||
/docs/storybook-static | ||
/docs/preview.css |
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,9 +1,10 @@ | ||
node_modules | ||
yarn-*.log | ||
/storybook/public/ | ||
docs/storybook-static | ||
.DS_Store | ||
dist | ||
.cache | ||
.yalc | ||
yalc.loc | ||
.turbo | ||
preview.css |
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,4 +1,7 @@ | ||
packages/design-tokens/**/*.scss | ||
packages/design-tokens/**/*.css | ||
packages/components/dist/* | ||
packages/components/locales/* | ||
storybook/styles/* | ||
docs/storybook-static/* | ||
docs/tailwind.css | ||
docs/preview.css |
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,8 @@ | ||
/** @type {import('stylelint').Config} */ | ||
// For CSS linting only, SCSS linting is handled in the root .stylelintrc.json | ||
export default { | ||
extends: "stylelint-config-standard", | ||
rules: { | ||
"selector-class-pattern": null, | ||
}, | ||
} |
File renamed without changes.
File renamed without changes
Oops, something went wrong.