diff --git a/packages/core/plop/general/component-stories-js.txt b/packages/core/plop/general/component-stories-js.txt index cba680b4dc..9adadb6d60 100644 --- a/packages/core/plop/general/component-stories-js.txt +++ b/packages/core/plop/general/component-stories-js.txt @@ -5,7 +5,6 @@ import styles from "./{{properCase componentName}}.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ component: {{properCase componentName}}, - enumPropNamesArray: [], // List enum props here iconPropNamesArray: [], // List props that are typed as icons here actionPropsArray: [] // List the component's actions here }); diff --git a/packages/core/src/components/Avatar/__stories__/Avatar.stories.tsx b/packages/core/src/components/Avatar/__stories__/Avatar.stories.tsx index 138bc8bd28..1169bef1a4 100644 --- a/packages/core/src/components/Avatar/__stories__/Avatar.stories.tsx +++ b/packages/core/src/components/Avatar/__stories__/Avatar.stories.tsx @@ -11,7 +11,6 @@ import "./Avatar.stories.scss"; const metaSettings = createStoryMetaSettingsDecorator({ component: Avatar, - enumPropNamesArray: ["type", "size"], iconPropNamesArray: ["icon"] }); diff --git a/packages/core/src/components/Badge/__stories__/Badge.stories.tsx b/packages/core/src/components/Badge/__stories__/Badge.stories.tsx index be095be819..770e121d96 100644 --- a/packages/core/src/components/Badge/__stories__/Badge.stories.tsx +++ b/packages/core/src/components/Badge/__stories__/Badge.stories.tsx @@ -11,9 +11,6 @@ import { createComponentTemplate, StoryDescription } from "vibe-storybook-compon const metaSettings = createStoryMetaSettingsDecorator({ component: Badge, - enumPropNamesArray: ["anchor", "alignment", "type"], - iconPropNamesArray: [], - actionPropsArray: [], ignoreControlsPropNamesArray: ["children"] }); diff --git a/packages/core/src/components/Box/__stories__/Box.stories.tsx b/packages/core/src/components/Box/__stories__/Box.stories.tsx index 80ac98108e..301073b895 100644 --- a/packages/core/src/components/Box/__stories__/Box.stories.tsx +++ b/packages/core/src/components/Box/__stories__/Box.stories.tsx @@ -4,33 +4,7 @@ import { createStoryMetaSettingsDecorator } from "../../../storybook"; import styles from "./Box.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ - component: Box, - enumPropNamesArray: [ - "className", - "id", - "children", - "disabled", - "border", - "borderColor", - "rounded", - "shadow", - "margin", - "marginX", - "marginY", - "marginTop", - "marginEnd", - "marginBottom", - "marginStart", - "padding", - "paddingX", - "paddingY", - "paddingTop", - "paddingEnd", - "paddingBottom", - "paddingStart", - "backgroundColor", - "textColor" - ] + component: Box }); export default { diff --git a/packages/core/src/components/BreadcrumbsBar/__stories__/BreadcrumbsBar.stories.tsx b/packages/core/src/components/BreadcrumbsBar/__stories__/BreadcrumbsBar.stories.tsx index c6631f30fd..e477658d9e 100644 --- a/packages/core/src/components/BreadcrumbsBar/__stories__/BreadcrumbsBar.stories.tsx +++ b/packages/core/src/components/BreadcrumbsBar/__stories__/BreadcrumbsBar.stories.tsx @@ -8,8 +8,7 @@ import { createStoryMetaSettingsDecorator } from "../../../storybook/functions/c import "./BreadcrumbsBar.stories.scss"; const metaSettings = createStoryMetaSettingsDecorator({ - component: BreadcrumbsBar, - enumPropNamesArray: ["type"] + component: BreadcrumbsBar }); const breadcrumbsBarTemplate = (args: BreadcrumbBarProps) => { diff --git a/packages/core/src/components/Button/__stories__/Button.stories.tsx b/packages/core/src/components/Button/__stories__/Button.stories.tsx index a094227356..90190b4262 100644 --- a/packages/core/src/components/Button/__stories__/Button.stories.tsx +++ b/packages/core/src/components/Button/__stories__/Button.stories.tsx @@ -11,7 +11,6 @@ type Story = StoryObj; const metaSettings = createStoryMetaSettingsDecorator({ component: Button, - enumPropNamesArray: ["kind", "size", "color", "type"], iconPropNamesArray: ["leftIcon", "rightIcon", "successIcon"], actionPropsArray: ["onClick"] }); diff --git a/packages/core/src/components/ButtonGroup/__stories__/ButtonGroup.stories.tsx b/packages/core/src/components/ButtonGroup/__stories__/ButtonGroup.stories.tsx index c85327d50c..ef071b1b69 100644 --- a/packages/core/src/components/ButtonGroup/__stories__/ButtonGroup.stories.tsx +++ b/packages/core/src/components/ButtonGroup/__stories__/ButtonGroup.stories.tsx @@ -9,7 +9,6 @@ type Story = StoryObj; const metaSettings = createStoryMetaSettingsDecorator({ component: ButtonGroup, - enumPropNamesArray: ["kind", "size"], actionPropsArray: ["onSelect"] }); diff --git a/packages/core/src/components/Chips/__stories__/Chips.stories.tsx b/packages/core/src/components/Chips/__stories__/Chips.stories.tsx index f76fd65d1f..b4d3edb47b 100644 --- a/packages/core/src/components/Chips/__stories__/Chips.stories.tsx +++ b/packages/core/src/components/Chips/__stories__/Chips.stories.tsx @@ -16,7 +16,6 @@ import styles from "./Chips.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ component: Chips, - enumPropNamesArray: ["color"], iconPropNamesArray: ["rightIcon", "leftIcon"], actionPropsArray: ["onDelete", "onMouseDown", "onClick"] }); diff --git a/packages/core/src/components/ColorPicker/__stories__/ColorPicker.stories.tsx b/packages/core/src/components/ColorPicker/__stories__/ColorPicker.stories.tsx index e2eba7b355..465233efb5 100644 --- a/packages/core/src/components/ColorPicker/__stories__/ColorPicker.stories.tsx +++ b/packages/core/src/components/ColorPicker/__stories__/ColorPicker.stories.tsx @@ -7,7 +7,6 @@ import { createComponentTemplate } from "vibe-storybook-components"; const metaSettings = createStoryMetaSettingsDecorator({ component: ColorPicker, - enumPropNamesArray: ["colorStyle", "colorSize", "colorShape"], iconPropNamesArray: ["ColorIndicatorIcon", "SelectedIndicatorIcon", "NoColorIcon"], actionPropsArray: [{ name: "onSave", linkedToPropValue: "value" }] }); diff --git a/packages/core/src/components/Combobox/__stories__/Combobox.stories.tsx b/packages/core/src/components/Combobox/__stories__/Combobox.stories.tsx index 9df57757f7..b7479889a9 100644 --- a/packages/core/src/components/Combobox/__stories__/Combobox.stories.tsx +++ b/packages/core/src/components/Combobox/__stories__/Combobox.stories.tsx @@ -18,7 +18,6 @@ import "./Combobox.stories.scss"; const metaSettings = createStoryMetaSettingsDecorator({ component: Combobox, - enumPropNamesArray: ["size"], iconPropNamesArray: ["searchIcon"], actionPropsArray: ["onOptionHover", "onOptionLeave", "onFilterChanged"] }); diff --git a/packages/core/src/components/Counter/__stories__/Counter.stories.tsx b/packages/core/src/components/Counter/__stories__/Counter.stories.tsx index 6fb846e5ac..4e9b87905b 100644 --- a/packages/core/src/components/Counter/__stories__/Counter.stories.tsx +++ b/packages/core/src/components/Counter/__stories__/Counter.stories.tsx @@ -10,8 +10,7 @@ import Avatar from "../../Avatar/Avatar"; import "./Counter.stories.scss"; const metaSettings = createStoryMetaSettingsDecorator({ - component: Counter, - enumPropNamesArray: ["size", "color", "kind"] + component: Counter }); const counterTemplate = createComponentTemplate(Counter); diff --git a/packages/core/src/components/Dialog/__stories__/Dialog.stories.tsx b/packages/core/src/components/Dialog/__stories__/Dialog.stories.tsx index 9b02452349..2d8cd126a5 100644 --- a/packages/core/src/components/Dialog/__stories__/Dialog.stories.tsx +++ b/packages/core/src/components/Dialog/__stories__/Dialog.stories.tsx @@ -16,10 +16,7 @@ import { HideShowEvent } from "../DialogConstants"; import { DialogProps } from "../Dialog"; const metaSettings = createStoryMetaSettingsDecorator({ - component: Dialog, - enumPropNamesArray: [], // List enum props here - iconPropNamesArray: [], // List props that are typed as icons here - actionPropsArray: [] // List the component's actions here + component: Dialog }); const showHideArgTypes = { diff --git a/packages/core/src/components/DialogContentContainer/__stories__/DialogContentContainer.stories.tsx b/packages/core/src/components/DialogContentContainer/__stories__/DialogContentContainer.stories.tsx index c400be8700..45d97b0213 100644 --- a/packages/core/src/components/DialogContentContainer/__stories__/DialogContentContainer.stories.tsx +++ b/packages/core/src/components/DialogContentContainer/__stories__/DialogContentContainer.stories.tsx @@ -6,7 +6,6 @@ import DialogContentContainerExample from "./DialogContentContainerExample"; const metaSettings = createStoryMetaSettingsDecorator({ component: DialogContentContainer, - enumPropNamesArray: ["type", "size"], ignoreControlsPropNamesArray: ["children"] }); diff --git a/packages/core/src/components/Divider/__stories__/Divider.stories.tsx b/packages/core/src/components/Divider/__stories__/Divider.stories.tsx index 940f928155..a6e88181cd 100644 --- a/packages/core/src/components/Divider/__stories__/Divider.stories.tsx +++ b/packages/core/src/components/Divider/__stories__/Divider.stories.tsx @@ -4,8 +4,7 @@ import { createStoryMetaSettingsDecorator } from "../../../storybook"; import styles from "./Divider.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ - component: Divider, - enumPropNamesArray: ["direction"] + component: Divider }); const dividerTemplate = (args: DividerProps) => ( diff --git a/packages/core/src/components/Dropdown/__stories__/Dropdown.stories.js b/packages/core/src/components/Dropdown/__stories__/Dropdown.stories.js index 50fd17daa0..4c77258470 100644 --- a/packages/core/src/components/Dropdown/__stories__/Dropdown.stories.js +++ b/packages/core/src/components/Dropdown/__stories__/Dropdown.stories.js @@ -14,7 +14,6 @@ import { fakeFetchUsers } from "./Dropdown.stories.helpers"; const metaSettings = createStoryMetaSettingsDecorator({ component: Dropdown, - enumPropNamesArray: ["size", "menuPosition", "menuPlacement"], actionPropsArray: [ "onMenuOpen", "onMenuClose", diff --git a/packages/core/src/components/EditableHeading/EditableHeading.tsx b/packages/core/src/components/EditableHeading/EditableHeading.tsx index b2e8dcc45b..dce0e3034b 100644 --- a/packages/core/src/components/EditableHeading/EditableHeading.tsx +++ b/packages/core/src/components/EditableHeading/EditableHeading.tsx @@ -12,11 +12,9 @@ import EditableTypography, { EditableTypographyImplementationProps } from "../Ed export interface EditableHeadingProps extends VibeComponentProps, EditableTypographyImplementationProps { /** * Sets the Heading type - * @type {HeadingType} * */ type?: HeadingType; /** Sets the Heading weight - * @type {HeadingWeight} */ weight?: HeadingWeight; } diff --git a/packages/core/src/components/EditableHeading/__stories__/EditableHeading.stories.tsx b/packages/core/src/components/EditableHeading/__stories__/EditableHeading.stories.tsx index 723196cafa..f6507504b3 100644 --- a/packages/core/src/components/EditableHeading/__stories__/EditableHeading.stories.tsx +++ b/packages/core/src/components/EditableHeading/__stories__/EditableHeading.stories.tsx @@ -7,7 +7,6 @@ import styles from "./EditableHeading.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ component: EditableHeading, - enumPropNamesArray: ["weight", "type"], actionPropsArray: ["onChange"] }); diff --git a/packages/core/src/components/EditableText/EditableText.tsx b/packages/core/src/components/EditableText/EditableText.tsx index ade4ca9ce6..dd251887e2 100644 --- a/packages/core/src/components/EditableText/EditableText.tsx +++ b/packages/core/src/components/EditableText/EditableText.tsx @@ -13,11 +13,9 @@ import cx from "classnames"; export interface EditableTextProps extends VibeComponentProps, EditableTypographyImplementationProps { /** * Sets the Text type - * @type {TextType} * */ type?: TextType; /** Sets the Text weight - * @type {TextWeight} */ weight?: TextWeight; } diff --git a/packages/core/src/components/EditableText/__stories__/EditableText.stories.tsx b/packages/core/src/components/EditableText/__stories__/EditableText.stories.tsx index cf8718c2de..e895ca9d3b 100644 --- a/packages/core/src/components/EditableText/__stories__/EditableText.stories.tsx +++ b/packages/core/src/components/EditableText/__stories__/EditableText.stories.tsx @@ -7,7 +7,6 @@ import styles from "./EditableText.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ component: EditableText, - enumPropNamesArray: ["weight", "type"], actionPropsArray: ["onChange"] }); diff --git a/packages/core/src/components/ExpandCollapse/__stories__/ExpandCollapse.stories.tsx b/packages/core/src/components/ExpandCollapse/__stories__/ExpandCollapse.stories.tsx index eddf068609..cd113e4ac1 100644 --- a/packages/core/src/components/ExpandCollapse/__stories__/ExpandCollapse.stories.tsx +++ b/packages/core/src/components/ExpandCollapse/__stories__/ExpandCollapse.stories.tsx @@ -10,9 +10,6 @@ import styles from "./ExpandCollapse.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ component: ExpandCollapse, - enumPropNamesArray: [], - iconPropNamesArray: [], - actionPropsArray: [], ignoreControlsPropNamesArray: ["headerComponentRenderer"] }); diff --git a/packages/core/src/components/Flex/__stories__/Flex.stories.tsx b/packages/core/src/components/Flex/__stories__/Flex.stories.tsx index f6e060819a..fca54d8585 100644 --- a/packages/core/src/components/Flex/__stories__/Flex.stories.tsx +++ b/packages/core/src/components/Flex/__stories__/Flex.stories.tsx @@ -9,7 +9,6 @@ import styles from "./Flex.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ component: Flex, - enumPropNamesArray: ["justify", "align"], actionPropsArray: ["onClick"] }); diff --git a/packages/core/src/components/Heading/__stories__/Heading.stories.tsx b/packages/core/src/components/Heading/__stories__/Heading.stories.tsx index 7bfcefa2bd..b3d65761ab 100644 --- a/packages/core/src/components/Heading/__stories__/Heading.stories.tsx +++ b/packages/core/src/components/Heading/__stories__/Heading.stories.tsx @@ -13,9 +13,7 @@ import { Custom } from "../../Icon/Icons"; import styles from "./Heading.stories.module.scss"; const metaSettings = createStoryMetaSettingsDecorator({ - component: Heading, - iconPropNamesArray: [], // List props that are typed as icons here - actionPropsArray: [] // List the component's actions here + component: Heading }); const textTemplate = createComponentTemplate(Heading); diff --git a/packages/core/src/components/IconButton/IconButton.tsx b/packages/core/src/components/IconButton/IconButton.tsx index 025f39a5ff..5af5e79fc8 100644 --- a/packages/core/src/components/IconButton/IconButton.tsx +++ b/packages/core/src/components/IconButton/IconButton.tsx @@ -78,7 +78,7 @@ export interface IconButtonProps extends VibeComponentProps { */ tooltipContent?: string; /** - * Kind of button - like