Skip to content

Commit

Permalink
refactor(storybook): ♻️ ignore __TYPE__ prop from props table
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Jul 19, 2022
1 parent 8db7943 commit 2634204
Show file tree
Hide file tree
Showing 59 changed files with 59 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/avatar-group/stories/AvatarGroupBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("avatar", {
ignore: ["ref", "wrapElement", "as"],
ignore: ["__TYPE__", "ref", "wrapElement", "as"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/avatar-group/stories/AvatarGroupIcon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("avatar", {
ignore: ["ref", "wrapElement", "as"],
ignore: ["__TYPE__", "ref", "wrapElement", "as"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/avatar-group/stories/AvatarGroupName.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("avatar", {
ignore: ["ref", "wrapElement", "as"],
ignore: ["__TYPE__", "ref", "wrapElement", "as"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/avatar-group/stories/AvatarGroupStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("avatar", {
ignore: ["ref", "wrapElement", "as"],
ignore: ["__TYPE__", "ref", "wrapElement", "as"],
}),
} as Meta;

Expand Down
1 change: 1 addition & 0 deletions src/avatar/stories/AvatarBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
},
argTypes: createControls("avatar", {
ignore: [
"__TYPE__",
"ref",
"wrapElement",
"as",
Expand Down
2 changes: 1 addition & 1 deletion src/avatar/stories/AvatarStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("avatar", {
ignore: ["unstable_system", "wrapElement", "as"],
ignore: ["__TYPE__", "unstable_system", "wrapElement", "as"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/badge/stories/BadgeBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("badge", {
ignore: ["wrapElement", "as", "ref", "prefix"],
ignore: ["__TYPE__", "wrapElement", "as", "ref", "prefix"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/badge/stories/BadgeStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Primitives/Badge/Stack",
component: BadgeStack,
argTypes: createControls("badge", {
ignore: ["wrapElement", "as", "ref", "prefix"],
ignore: ["__TYPE__", "wrapElement", "as", "ref", "prefix"],
}),
parameters: {
layout: "centered",
Expand Down
2 changes: 1 addition & 1 deletion src/box/stories/BoxAs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls(undefined, {
ignore: ["wrapElement", "as", "ref"],
ignore: ["__TYPE__", "wrapElement", "as", "ref"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/box/stories/BoxBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls(undefined, {
ignore: ["wrapElement", "as", "ref"],
ignore: ["__TYPE__", "wrapElement", "as", "ref"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/box/stories/BoxStyled.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls(undefined, {
ignore: ["wrapElement", "as", "ref"],
ignore: ["__TYPE__", "wrapElement", "as", "ref"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/button-group/stories/ButtonGroupBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Primitives/ButtonGroup/Basic",
component: ButtonGroupBasic,
argTypes: createControls("buttonGroup", {
ignore: ["wrapElement", "as", "ref"],
ignore: ["__TYPE__", "wrapElement", "as", "ref"],
}),
parameters: {
layout: "centered",
Expand Down
1 change: 1 addition & 0 deletions src/button/stories/ButtonBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default {
component: ButtonBasic,
argTypes: createControls("button", {
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/button/stories/ButtonClose.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
component: ButtonClose,
argTypes: createControls("button", {
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/button/stories/ButtonLoadingA11y.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default {
component: ButtonLoadingA11y,
argTypes: createControls("button", {
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/button/stories/ButtonStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default {
},
argTypes: createControls("button", {
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/checkbox-group/stories/CheckboxGroupBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
...createControls("checkbox", {
unions: ["themeColor"],
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
component: CheckboxGroupControlled,
parameters: {
layout: "centered",
options: { showPanel: true },
options: { showPanel: false },
preview: createPreviewTabs({ js, ts }),
},
} as Meta;
Expand Down
1 change: 1 addition & 0 deletions src/checkbox-group/stories/CheckboxGroupStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
description: { control: { type: "text" } },
...createControls("checkbox", {
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
component: CheckboxGroupTriStringState,
parameters: {
layout: "centered",
options: { showPanel: true },
options: { showPanel: false },
preview: createPreviewTabs({ js, ts }),
},
} as Meta;
Expand Down
1 change: 1 addition & 0 deletions src/checkbox/stories/CheckboxBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default {
...createControls("checkbox", {
unions: ["themeColor"],
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/checkbox/stories/CheckboxStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
description: { control: { type: "text" } },
...createControls("checkbox", {
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
component: CircularProgressBasic,
argTypes: createControls("circularProgress", {
unions: ["themeColor"],
ignore: ["wrapElement", "as", "ref", "hint"],
ignore: ["__TYPE__", "wrapElement", "as", "ref", "hint"],
}),
parameters: {
layout: "centered",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
},
parameters: {
layout: "centered",
options: { showPanel: true },
options: { showPanel: false },
preview: createPreviewTabs({ js, ts }),
},
} as Meta;
Expand Down
2 changes: 1 addition & 1 deletion src/divider/stories/DividerBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("divider", {
ignore: ["wrapElement", "as", "ref"],
ignore: ["__TYPE__", "wrapElement", "as", "ref"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/divider/stories/DividerVertical.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("divider", {
ignore: ["wrapElement", "as", "ref"],
ignore: ["__TYPE__", "wrapElement", "as", "ref"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/icons/stories/IconAll.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Primitives/Icons/AllIcons",
component: IconAll,
argTypes: createControls("icon", {
ignore: ["ref", "wrapElement", "as"],
ignore: ["__TYPE__", "ref", "wrapElement", "as"],
}),
parameters: {
layout: "centered",
Expand Down
2 changes: 1 addition & 1 deletion src/icons/stories/IconBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
preview: createPreviewTabs({ js, ts }),
},
argTypes: createControls("icon", {
ignore: ["ref", "wrapElement", "as"],
ignore: ["__TYPE__", "ref", "wrapElement", "as"],
}),
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/icons/stories/IconPath.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Primitives/Icons/Path",
component: IconPath,
argTypes: createControls("icon", {
ignore: ["ref", "wrapElement", "as"],
ignore: ["__TYPE__", "ref", "wrapElement", "as"],
}),
parameters: {
layout: "centered",
Expand Down
2 changes: 1 addition & 1 deletion src/icons/stories/IconReactIcon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Primitives/Icons/ReactIcon",
component: IconReactIcon,
argTypes: createControls("icon", {
ignore: ["ref", "wrapElement", "as"],
ignore: ["__TYPE__", "ref", "wrapElement", "as"],
}),
parameters: {
layout: "centered",
Expand Down
1 change: 1 addition & 0 deletions src/input/stories/InputBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
argTypes: {
...createControls("input", {
ignore: [
"__TYPE__",
"ref",
"wrapElement",
"as",
Expand Down
1 change: 1 addition & 0 deletions src/input/stories/InputStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
argTypes: {
...createControls("input", {
ignore: [
"__TYPE__",
"ref",
"wrapElement",
"as",
Expand Down
2 changes: 1 addition & 1 deletion src/meter/stories/MeterBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Feedback/Meter/Basic",
component: MeterBasic,
argTypes: createControls("meter", {
ignore: ["wrapElement", "as", "ref", "label", "hint"],
ignore: ["__TYPE__", "wrapElement", "as", "ref", "label", "hint"],
}),
parameters: {
layout: "centered",
Expand Down
2 changes: 1 addition & 1 deletion src/meter/stories/MeterCustom.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Feedback/Meter/Custom",
component: MeterCustom,
argTypes: createControls("meter", {
ignore: ["wrapElement", "as", "ref", "label", "hint"],
ignore: ["__TYPE__", "wrapElement", "as", "ref", "label", "hint"],
}),
parameters: {
layout: "centered",
Expand Down
2 changes: 1 addition & 1 deletion src/meter/stories/MeterInterval.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Feedback/Meter/Interval",
component: MeterInterval,
argTypes: createControls("meter", {
ignore: ["wrapElement", "as", "ref", "label", "hint"],
ignore: ["__TYPE__", "wrapElement", "as", "ref", "label", "hint"],
}),
parameters: {
layout: "centered",
Expand Down
2 changes: 1 addition & 1 deletion src/progress/stories/ProgressBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Feedback/Progress/Basic",
component: ProgressBasic,
argTypes: createControls("progress", {
ignore: ["wrapElement", "as", "ref", "label", "hint"],
ignore: ["__TYPE__", "wrapElement", "as", "ref", "label", "hint"],
}),
parameters: {
layout: "centered",
Expand Down
2 changes: 1 addition & 1 deletion src/progress/stories/ProgressCustom.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
title: "Feedback/Progress/Custom",
component: ProgressCustom,
argTypes: createControls("progress", {
ignore: ["wrapElement", "as", "ref", "label", "hint"],
ignore: ["__TYPE__", "wrapElement", "as", "ref", "label", "hint"],
}),
parameters: {
layout: "centered",
Expand Down
1 change: 1 addition & 0 deletions src/radio-group/stories/RadioGroupBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
...createControls("radio", {
unions: ["themeColor"],
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/radio-group/stories/RadioGroupDescription.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
size: createUnionControl(["sm", "md", "lg"]),
...createControls(undefined, {
ignore: [
"__TYPE__",
"baseId",
"unstable_virtual",
"rtl",
Expand Down
1 change: 1 addition & 0 deletions src/radio-group/stories/RadioGroupDisabled.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
...createControls("radio", {
unions: ["themeColor"],
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/radio/stories/RadioBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
...createControls("radio", {
unions: ["themeColor"],
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/radio/stories/RadioStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default {
...createControls("radio", {
unions: ["themeColor"],
ignore: [
"__TYPE__",
"wrapElement",
"as",
"ref",
Expand Down
1 change: 1 addition & 0 deletions src/select/stories/SelectBasic.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
argTypes: {
...createControls("select", {
ignore: [
"__TYPE__",
"ref",
"wrapElement",
"as",
Expand Down
1 change: 1 addition & 0 deletions src/select/stories/SelectStack.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
argTypes: {
...createControls("select", {
ignore: [
"__TYPE__",
"ref",
"wrapElement",
"as",
Expand Down
2 changes: 1 addition & 1 deletion src/show-more/stories/ShowMoreHorizontal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
component: ShowMoreHorizontal,
parameters: {
layout: "centered",
options: { showPanel: true },
options: { showPanel: false },
preview: createPreviewTabs({ js, ts }),
},
} as Meta;
Expand Down
2 changes: 1 addition & 1 deletion src/show-more/stories/ShowMoreVertical.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
component: ShowMoreVertical,
parameters: {
layout: "centered",
options: { showPanel: true },
options: { showPanel: false },
preview: createPreviewTabs({ js, ts }),
},
} as Meta;
Expand Down
Loading

0 comments on commit 2634204

Please sign in to comment.