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

💥 breaking: updated storybook to v8. #277

Open
wants to merge 21 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
85f57b6
💥 breaking: migrated from stories.mdx to mdx.
creador-dev Apr 23, 2024
0d84089
💥 breaking: fixing mdx docs structure.
creador-dev Apr 23, 2024
076b487
💥 breaking: removing unused args in storybook.
creador-dev Apr 23, 2024
36cf35b
💥 breaking: .stories.mdx to .mdx migration.
creador-dev Apr 23, 2024
71b61ab
💥 breaking: updated to storybook v8.
creador-dev Apr 23, 2024
b3daf33
💥 breaking: MDX issues and file structuring fixes.
creador-dev Apr 24, 2024
3b7a45c
💥 breaking: issues resolved due to migration.
creador-dev Apr 24, 2024
c9efe15
💥 breaking: issues resolved due to migration.
creador-dev Apr 24, 2024
5aebf15
💥 breaking: github rename issue.
creador-dev Apr 24, 2024
526bf8a
Merge branch 'development' of github.com:wpmudev/sui-react into new/s…
creador-dev Apr 24, 2024
f4590a9
🐛 fix(docs): docs issue after storybook v8 migration.
creador-dev Apr 25, 2024
1f04c89
🐛 fix(tooltip): tooltip placement option doesn't works properly.
creador-dev Apr 25, 2024
a12faf8
🐛 fix(docs): removed preview docs unnecessary props.
creador-dev Apr 26, 2024
55b000f
🐛 fix(docs): removed preview docs unnecessary props.
creador-dev Apr 26, 2024
3c82c14
🐛 fix(input): input docs icon fix.
creador-dev Apr 26, 2024
b379cd8
Merge pull request #279 from wpmudev/fix/tooltip
emgk May 9, 2024
bea82c0
Merge pull request #280 from wpmudev/docs/preview
emgk May 9, 2024
ad2d577
Merged with development branch.
creador-dev May 9, 2024
ceca9e7
rename box component
creador-dev May 9, 2024
074ac8b
renamed components
creador-dev May 9, 2024
c648ec5
Upgraded to storybook 8.0.10
creador-dev May 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import { dirname, join } from "path"
const path = require("path")
module.exports = {
stories: [
"../packages/**/stories/*.stories.mdx",
"../packages/**/stories/*.stories.@(js|jsx|ts|tsx)",
"../packages/**/*.stories.mdx",
"../packages/**/*.stories.@(js|jsx|ts|tsx)",
"../packages/**/stories/*.mdx",
],
addons: [
getAbsolutePath("@storybook/addon-links"),
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-a11y"),
getAbsolutePath("@storybook/addon-storyshots"),
getAbsolutePath("@storybook/addon-webpack5-compiler-swc"),
getAbsolutePath("@chromatic-com/storybook"),
],
// @ts-ignore
webpackFinal: async (config) => {
Expand Down
1 change: 1 addition & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
letter-spacing: 0;
font-weight: 500;
text-transform: none;
border-radius: 0;
}

#storybook-explorer-menu .sidebar-item svg {
Expand Down
89 changes: 86 additions & 3 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,97 @@ export const globalTypes = {
}

export const parameters = {
actions: {
argTypesRegex: "^on[A-Z].*",
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
exclude: [
"id",
"_htmlProps",
"_style",
"style",
"className",
"defaultValue",
"children",
"onClick",
"onMouseEnter",
"onMouseLeave",
"onFocus",
"onBlur",
"onMouseUp",
"onMouseDownCapture",
"onMouseUpCapture",
"onBlurCapture",
"ariaAttrs",
"onChange",
"resetValidation",
"isError",
"validateOnMount",
"validate",
"label",
"groupId",
"value",
"isChecked",
"isIndeterminate",
"isCenter",
"onDismiss",
"actions",
"onApply",
"isSmall",
"onReset",
"onColorChange",
"definedRanges",
"onToggle",
"onSearch",
"alignCenter",
"disableSetting",
"disableBack",
"onBackClick",
"onSettingClick",
"spacing",
"action",
"iconState",
"timeout",
"hideOnSinglePage",
"numberOfItems",
"iconOnly",
"isResponsive",
"isLoading",
"iconSize",
"endIcon",
"startIcon",
"icon",
"isUnwrapped",
"isDisabled",
"isFullWidth",
"colorScheme",
"type",
"htmlFor",
"target",
"href",
"trigger",
"image",
"isOpen",
"tinyMCEOptions",
"title",
"defaultFiles",
"maxSize",
"maxSizeText",
"isExpanded",
"active",
"onSettingsClick",
"brand",
"user",
"onClose",
"onCTAClick",
"configs",
"links",
"socialLinks",
"logoImageLink",
"logoHref",
"features",
],
},
viewport: {
viewports: breakpoints,
Expand Down
Loading
Loading