From 99eac2e4e63f96c95eb354883921b3f56bf7841a Mon Sep 17 00:00:00 2001 From: Abraham Preciado Morales Date: Fri, 7 Jun 2024 12:14:04 -0700 Subject: [PATCH] refactor(storybook): build storybook simple story args interfaces using component class (#9457) **Related Issue:** [#9437](https://github.com/Esri/calcite-design-system/issues/9437) ## Summary Replaces Storybook's manually built simple story args interfaces with props pulled from the component's class. --- .../components/accordion/accordion.stories.ts | 15 +++---- .../action-bar/action-bar.stories.ts | 9 ++-- .../action-pad/action-pad.stories.ts | 9 ++-- .../src/components/action/action.stories.ts | 32 +++++++------- .../src/components/avatar/avatar.stories.ts | 16 +++---- .../src/components/block/block.stories.ts | 22 ++++------ .../src/components/button/button.stories.ts | 14 ++----- .../card-group/card-group.stories.ts | 6 +-- .../src/components/card/card.stories.ts | 13 +++--- .../components/carousel/carousel.stories.ts | 23 +++++----- .../components/checkbox/checkbox.stories.ts | 12 ++---- .../chip-group/chip-group.stories.ts | 8 ++-- .../src/components/chip/chip.stories.ts | 11 ++--- .../color-picker-swatch.stories.ts | 8 ++-- .../color-picker/color-picker.stories.ts | 15 +++---- .../date-picker/date-picker.stories.ts | 10 ++--- .../components/dropdown/dropdown.stories.ts | 18 ++++---- .../src/components/fab/fab.stories.ts | 17 +++----- .../components/flow-item/flow-item.stories.ts | 16 ++++--- .../src/components/flow/flow.stories.ts | 4 +- .../src/components/graph/graph.stories.ts | 7 ++-- .../src/components/icon/icon.stories.ts | 8 ++-- .../inline-editable.stories.ts | 15 +++---- .../input-date-picker.stories.ts | 17 ++++---- .../input-number/input-number.stories.ts | 40 +++++++++--------- .../input-text/input-text.stories.ts | 32 +++++++------- .../input-time-picker.stories.ts | 18 ++++---- .../input-time-zone.stories.ts | 15 +++---- .../src/components/input/input.stories.ts | 42 ++++++++++--------- .../src/components/link/link.stories.ts | 7 ++-- .../src/components/list/list.stories.ts | 16 ++++--- .../src/components/loader/loader.stories.ts | 9 ++-- .../components/menu-item/menu-item.stories.ts | 13 ++---- .../src/components/menu/menu.stories.ts | 7 ++-- .../src/components/meter/meter.stories.ts | 34 ++++++++------- .../src/components/modal/modal.stories.ts | 16 +++---- .../navigation-logo.stories.ts | 9 ++-- .../navigation-user.stories.ts | 17 ++++---- .../src/components/notice/notice.stories.ts | 10 ++--- .../pagination/pagination.stories.ts | 11 ++--- .../src/components/panel/panel.stories.ts | 16 ++++--- .../components/pick-list/pick-list.stories.ts | 14 +++---- .../src/components/popover/popover.stories.ts | 16 ++++--- .../components/progress/progress.stories.ts | 9 ++-- .../radio-button-group.stories.ts | 8 ++-- .../radio-button/radio-button.stories.ts | 10 ++--- .../src/components/rating/rating.stories.ts | 13 ++---- .../src/components/scrim/scrim.stories.ts | 7 ++-- .../segmented-control.stories.ts | 17 +++----- .../src/components/select/select.stories.ts | 23 ++++------ .../src/components/sheet/sheet.stories.ts | 11 ++--- .../src/components/shell/shell.stories.ts | 22 +++++----- .../src/components/slider/slider.stories.ts | 36 +++++++++------- .../split-button/split-button.stories.ts | 30 ++++++------- .../src/components/stepper/stepper.stories.ts | 41 +++++++++++------- .../src/components/switch/switch.stories.ts | 9 ++-- .../src/components/table/table.stories.ts | 28 +++++++------ .../src/components/tabs/tabs.stories.ts | 9 ++-- .../components/text-area/text-area.stories.ts | 30 ++++++------- .../tile-group/tile-group.stories.ts | 8 ++-- .../tile-select-group.stories.ts | 27 ++++++------ .../tile-select/tile-select.stories.ts | 28 +++++++------ .../src/components/tile/tile.stories.ts | 14 +++---- .../time-picker/time-picker.stories.ts | 9 ++-- .../tip-manager/tip-manager.stories.ts | 7 ++-- .../src/components/tip/tip.stories.ts | 9 ++-- .../src/components/tooltip/tooltip.stories.ts | 7 ++-- .../src/components/tree/tree.stories.ts | 9 ++-- .../value-list/value-list.stories.ts | 15 +++---- 69 files changed, 485 insertions(+), 618 deletions(-) diff --git a/packages/calcite-components/src/components/accordion/accordion.stories.ts b/packages/calcite-components/src/components/accordion/accordion.stories.ts index f5a3cafc654..122990c1642 100644 --- a/packages/calcite-components/src/components/accordion/accordion.stories.ts +++ b/packages/calcite-components/src/components/accordion/accordion.stories.ts @@ -1,19 +1,14 @@ +import { AccordionItem } from "../accordion-item/accordion-item"; import { modesDarkDefault } from "../../../.storybook/utils"; import { placeholderImage } from "../../../.storybook/placeholderImage"; import { iconNames } from "../../../.storybook/helpers"; import { html } from "../../../support/formatting"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { Accordion } from "./accordion"; const { scale, appearance, selectionMode } = ATTRIBUTES; -interface AccordionArgs { - scale: string; - appearance: string; - selectionMode: string; - heading: string; - description: string; - iconStart: string; - iconEnd: string; -} +type AccordionStoryArgs = Pick & + Pick; export default { title: "Components/Accordion", @@ -62,7 +57,7 @@ const accordionItemContent = `Custom content here

More custom content here`; -export const simple = (args: AccordionArgs): string => html` +export const simple = (args: AccordionStoryArgs): string => html` ; export default { title: "Components/Action Bar", @@ -24,7 +21,7 @@ export default { }, }; -export const simple = (args: ActionBarArgs): string => html` +export const simple = (args: ActionBarStoryArgs): string => html` ; export default { title: "Components/Action Pad", @@ -29,7 +26,7 @@ export default { }, }; -export const simple = (args: ActionPadArgs): string => html` +export const simple = (args: ActionPadStoryArgs): string => html` ; export default { title: "Components/Buttons/Action", @@ -55,7 +57,7 @@ export default { }, }; -export const simple = (args: ActionArgs): string => html` +export const simple = (args: ActionStoryArgs): string => html`
; export default { title: "Components/Avatar", @@ -18,7 +12,7 @@ export default { scale: scale.defaultValue, fullName: "John Doe", label: "John Doe", - userName: "jdoe", + username: "jdoe", userId: "9a7c50e6b3ce4b859f7b31e302437164", thumbnail: placeholderImage({ width: 120, height: 120 }), }, @@ -30,12 +24,12 @@ export default { }, }; -export const simple = (args: AvatarArgs): string => html` +export const simple = (args: AvatarStoryArgs): string => html` diff --git a/packages/calcite-components/src/components/block/block.stories.ts b/packages/calcite-components/src/components/block/block.stories.ts index d70e9661170..2d7fb1993a2 100644 --- a/packages/calcite-components/src/components/block/block.stories.ts +++ b/packages/calcite-components/src/components/block/block.stories.ts @@ -1,20 +1,16 @@ +import { BlockSection } from "../block-section/block-section"; import { boolean } from "../../../.storybook/utils"; import { placeholderImage } from "../../../.storybook/placeholderImage"; import { html } from "../../../support/formatting"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { Block } from "./block"; const { toggleDisplay } = ATTRIBUTES; -interface BlockArgs { - heading: string; - description: string; - blockOpen: boolean; - collapsible: boolean; - loading: boolean; - disabled: boolean; - headingLevel: number; +interface BlockStoryArgs + extends Pick, + Pick { text: string; - sectionOpen: boolean; - toggleDisplay: string; + sectionOpen: BlockSection["open"]; } export default { @@ -22,7 +18,7 @@ export default { args: { heading: "Heading", description: "description", - blockOpen: true, + open: true, collapsible: true, loading: false, disabled: false, @@ -42,11 +38,11 @@ export default { }, }; -export const simple = (args: BlockArgs): string => html` +export const simple = (args: BlockStoryArgs): string => html` { text: string; } @@ -49,7 +43,7 @@ export default { }, }; -export const simple = (args: ButtonArgs): string => html` +export const simple = (args: ButtonStoryArgs): string => html` { src: string; } @@ -28,7 +28,7 @@ export default { }, }; -export const simple = (args: CardGroupArgs): string => html` +export const simple = (args: CardGroupStoryArgs): string => html` Sample image alt diff --git a/packages/calcite-components/src/components/card/card.stories.ts b/packages/calcite-components/src/components/card/card.stories.ts index e86148f2ea5..c1dfaff212d 100644 --- a/packages/calcite-components/src/components/card/card.stories.ts +++ b/packages/calcite-components/src/components/card/card.stories.ts @@ -2,13 +2,10 @@ import { placeholderImage } from "../../../.storybook/placeholderImage"; import { html } from "../../../support/formatting"; import { boolean, modesDarkDefault } from "../../../.storybook/utils"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { Card } from "./card"; const { logicalFlowPosition } = ATTRIBUTES; -interface CardArgs { - loading: boolean; - selected: boolean; - thumbnailPosition: string; -} +type CardStoryArgs = Pick; export default { title: "Components/Card", @@ -60,7 +57,7 @@ const footerEndButtonsHtml = html`
`; -export const simple = (args: CardArgs): string => html` +export const simple = (args: CardStoryArgs): string => html`
html`
`; -export const simpleWithFooterLinks = (args: CardArgs): string => html` +export const simpleWithFooterLinks = (args: CardStoryArgs): string => html`
html`
`; -export const simpleWithFooterButton = (args: CardArgs): string => html` +export const simpleWithFooterButton = (args: CardStoryArgs): string => html`
; export default { title: "Components/Carousel", args: { controlOverlay: false, disabled: false, - autoPlayDuration: 6000, - autoPlay: false, + autoplayDuration: 6000, + autoplay: false, label: "Example carousel label", arrowType: arrowType.defaultValue, }, @@ -31,13 +28,13 @@ export default { }, }; -export const simple = (args: CarouselArgs): string => +export const simple = (args: CarouselStoryArgs): string => html`
diff --git a/packages/calcite-components/src/components/checkbox/checkbox.stories.ts b/packages/calcite-components/src/components/checkbox/checkbox.stories.ts index 3b61fe57003..2420cb782cc 100644 --- a/packages/calcite-components/src/components/checkbox/checkbox.stories.ts +++ b/packages/calcite-components/src/components/checkbox/checkbox.stories.ts @@ -1,16 +1,10 @@ import { boolean, modesDarkDefault } from "../../../.storybook/utils"; import { html } from "../../../support/formatting"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { Checkbox } from "./checkbox"; const { scale, status } = ATTRIBUTES; -interface CheckboxArgs { - checked: boolean; - disabled: boolean; - indeterminate: boolean; - scale: string; - status: string; - label: string; -} +type CheckboxStoryArgs = Pick; export default { title: "Components/Controls/Checkbox", @@ -34,7 +28,7 @@ export default { }, }; -export const simple = (args: CheckboxArgs): string => html` +export const simple = (args: CheckboxStoryArgs): string => html` ; export default { title: "Components/Chip Group", @@ -28,7 +26,7 @@ export default { }, }; -export const simple = (args: ChipGroupArgs): string => html` +export const simple = (args: ChipGroupStoryArgs): string => html` Forest Tundra diff --git a/packages/calcite-components/src/components/chip/chip.stories.ts b/packages/calcite-components/src/components/chip/chip.stories.ts index 0f68241f80b..8b3286fda87 100644 --- a/packages/calcite-components/src/components/chip/chip.stories.ts +++ b/packages/calcite-components/src/components/chip/chip.stories.ts @@ -3,15 +3,10 @@ import { placeholderImage } from "../../../.storybook/placeholderImage"; import { boolean, modesDarkDefault } from "../../../.storybook/utils"; import { html } from "../../../support/formatting"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { Chip } from "./chip"; const { scale, appearance, kind } = ATTRIBUTES; -interface ChipArgs { - scale: string; - appearance: string; - kind: string; - closable: boolean; - selected: boolean; -} +type ChipStoryArgs = Pick; export default { title: "Components/Chip", @@ -40,7 +35,7 @@ export default { }, }; -export const simple = (args: ChipArgs): string => html` +export const simple = (args: ChipStoryArgs): string => html`
; export default { title: "Components/Controls/ColorPicker/support/ColorPickerSwatch", @@ -14,7 +12,7 @@ export default { }, }; -export const simple = (args: ColorPickerSwatchArgs): string => html` +export const simple = (args: ColorPickerSwatchStoryArgs): string => html` `; diff --git a/packages/calcite-components/src/components/color-picker/color-picker.stories.ts b/packages/calcite-components/src/components/color-picker/color-picker.stories.ts index f2d06771e02..9cd34b95e23 100644 --- a/packages/calcite-components/src/components/color-picker/color-picker.stories.ts +++ b/packages/calcite-components/src/components/color-picker/color-picker.stories.ts @@ -1,16 +1,13 @@ import { boolean, modesDarkDefault } from "../../../.storybook/utils"; import { html } from "../../../support/formatting"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { ColorPicker } from "./color-picker"; const { scale } = ATTRIBUTES; -interface ColorPickerArgs { - channelsDisabled: boolean; - hexDisabled: boolean; - savedDisabled: boolean; - scale: string; - clearable: boolean; - value: string; -} +type ColorPickerStoryArgs = Pick< + ColorPicker, + "channelsDisabled" | "hexDisabled" | "savedDisabled" | "scale" | "clearable" | "value" +>; export default { title: "Components/Controls/ColorPicker", @@ -30,7 +27,7 @@ export default { }, }; -export const simple = (args: ColorPickerArgs): string => html` +export const simple = (args: ColorPickerStoryArgs): string => html` { dir: string; lang: string; - max: string; - min: string; nextMonthLabel: string; prevMonthLabel: string; - range: boolean; - scale: string; - value: string; } export default { @@ -48,7 +44,7 @@ export default { }, }; -export const simple = (args: DatePickerArgs): string => html` +export const simple = (args: DatePickerStoryArgs): string => html`
& + Pick; export default { title: "Components/Buttons/Dropdown", @@ -57,7 +55,7 @@ export default { }, }; -export const simple = (args: DropdownArgs): string => html` +export const simple = (args: DropdownStoryArgs): string => html` ; export default { title: "Components/Buttons/FAB", @@ -39,7 +34,7 @@ export default { }, }; -export const simple = (args: FabArgs): string => html` +export const simple = (args: FabStoryArgs): string => html` { heightScale: string; - loading: boolean; } export default { @@ -77,7 +75,7 @@ const flowItemContent = `${headerHTML} ${contentHTML} ${footerHTML}`; -export const simple = (args: FlowItemArgs): string => html` +export const simple = (args: FlowItemStoryArgs): string => html` `; -export const simple = (args: FlowArgs): string => html` +export const simple = (args: FlowStoryArgs): string => html` { width: number; height: number; - min: number; - max: number; } export default { @@ -34,7 +33,7 @@ const data: HTMLCalciteGraphElement["data"] = [ const rainbow = ["red", "orange", "yellow", "green", "cyan", "blue", "violet"]; const colorStops = rainbow.map((color, i) => ({ offset: (1 / (rainbow.length - 1)) * i, color })); -export const simple = (args: GraphArgs): HTMLDivElement => { +export const simple = (args: GraphStoryArgs): HTMLDivElement => { const div = document.createElement("div"); div.style.width = `${args.width}px`; div.style.height = `${args.height}px`; diff --git a/packages/calcite-components/src/components/icon/icon.stories.ts b/packages/calcite-components/src/components/icon/icon.stories.ts index 8c651ce13ef..793934a30df 100644 --- a/packages/calcite-components/src/components/icon/icon.stories.ts +++ b/packages/calcite-components/src/components/icon/icon.stories.ts @@ -2,14 +2,12 @@ import { iconNames } from "../../../.storybook/helpers"; import { modesDarkDefault } from "../../../.storybook/utils"; import { html } from "../../../support/formatting"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { Icon } from "./icon"; const { scale } = ATTRIBUTES; const sampleIcon = iconNames.find((item) => item === "arrowRight"); -interface IconArgs { - icon: string; - scale: string; -} +type IconStoryArgs = Pick; export default { title: "Components/Icon", @@ -29,7 +27,7 @@ export default { }, }; -export const simple = (args: IconArgs): string => html` +export const simple = (args: IconStoryArgs): string => html` `; diff --git a/packages/calcite-components/src/components/inline-editable/inline-editable.stories.ts b/packages/calcite-components/src/components/inline-editable/inline-editable.stories.ts index 8135108cced..0273fb9cf20 100644 --- a/packages/calcite-components/src/components/inline-editable/inline-editable.stories.ts +++ b/packages/calcite-components/src/components/inline-editable/inline-editable.stories.ts @@ -1,17 +1,12 @@ +import { Input } from "../input/input"; import { boolean, modesDarkDefault } from "../../../.storybook/utils"; import { html } from "../../../support/formatting"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { InlineEditable } from "./inline-editable"; const { scale, alignment } = ATTRIBUTES; -interface InlineEditableArgs { - scale: string; - controls: boolean; - editingEnabled: boolean; - loading: boolean; - disabled: boolean; - alignment: string; - placeholder: string; -} +type InlineEditableStoryArgs = Pick & + Pick; export default { title: "Components/Controls/Inline Editable", @@ -36,7 +31,7 @@ export default { }, }; -export const simple = (args: InlineEditableArgs): string => html` +export const simple = (args: InlineEditableStoryArgs): string => html`
{ lang: string; - placement: string; - validationMessage: string; - validationIcon: string; } export default { @@ -55,7 +52,7 @@ export default { }, }; -export const simple = (args: InputDatePickerArgs): string => html` +export const simple = (args: InputDatePickerStoryArgs): string => html`
; export default { title: "Components/Controls/Input Number", @@ -75,7 +77,7 @@ export default { }, }; -export const simple = (args: InputNumberArgs): string => html` +export const simple = (args: InputNumberStoryArgs): string => html`
; export default { title: "Components/Controls/Input Text", @@ -55,7 +57,7 @@ export default { }, }; -export const simple = (args: InputTextArgs): string => html` +export const simple = (args: InputTextStoryArgs): string => html`
{ hidden: boolean; - name: string; - placement: string; - scale: string; - status: string; - step: number; - validationMessage: string; - validationIcon: string; - value: string; } export default { @@ -52,7 +48,7 @@ export default { }, }; -export const simple = (args: InputTimePickerArgs): string => html` +export const simple = (args: InputTimePickerStoryArgs): string => html` ; export default { title: "Components/Controls/InputTimeZone", @@ -50,7 +47,7 @@ export default { }, }; -export const simple = (args: InputTimeZoneArgs): string => html` +export const simple = (args: InputTimeZoneStoryArgs): string => html` ; export default { title: "Components/Controls/Input", @@ -81,7 +83,7 @@ export default { }, }; -export const simple = (args: InputArgs): string => html` +export const simple = (args: InputStoryArgs): string => html`
iconName.endsWith("16")) .map((iconName) => iconName.replace("16", "")); -interface LinkArgs { +interface LinkStoryArgs extends Pick { containingFontSize: string; containingFontWeight: string; - href: string; - disabled: boolean; text: string; } @@ -36,7 +35,7 @@ export default { }, }; -export const simple = (args: LinkArgs): string => html` +export const simple = (args: LinkStoryArgs): string => html`
Some wrapping text ${args.text} diff --git a/packages/calcite-components/src/components/list/list.stories.ts b/packages/calcite-components/src/components/list/list.stories.ts index 01387a868dd..2a0cdb85903 100644 --- a/packages/calcite-components/src/components/list/list.stories.ts +++ b/packages/calcite-components/src/components/list/list.stories.ts @@ -2,18 +2,16 @@ import { boolean, modesDarkDefault } from "../../../.storybook/utils"; import { placeholderImage } from "../../../.storybook/placeholderImage"; import { html } from "../../../support/formatting"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { List } from "./list"; const { selectionMode, selectionAppearance } = ATTRIBUTES; -interface ListArgs { - selectionMode: string; - selectionAppearance: string; - loading: boolean; +interface ListStoryArgs + extends Pick< + List, + "selectionMode" | "selectionAppearance" | "loading" | "filterEnabled" | "dragEnabled" | "disabled" | "label" + > { closable: boolean; closed: boolean; - filterEnabled: boolean; - dragEnabled: boolean; - disabled: boolean; - label: string; } export default { @@ -52,7 +50,7 @@ const thumbnailImage = placeholderImage({ width: 44, height: 44 }); const listHTML = (): string => html` selection-mode="none" selection-appearance="icon" label="My List" `; -export const simple = (args: ListArgs): string => html` +export const simple = (args: ListStoryArgs): string => html` ; export default { title: "Components/Loader", @@ -30,7 +27,7 @@ export default { }, }; -export const simple_TestOnly = (args: LoaderArgs): string => html` +export const simple_TestOnly = (args: LoaderStoryArgs): string => html` `; diff --git a/packages/calcite-components/src/components/menu-item/menu-item.stories.ts b/packages/calcite-components/src/components/menu-item/menu-item.stories.ts index c96734b56ff..d63acf44464 100644 --- a/packages/calcite-components/src/components/menu-item/menu-item.stories.ts +++ b/packages/calcite-components/src/components/menu-item/menu-item.stories.ts @@ -1,16 +1,11 @@ import { boolean } from "../../../.storybook/utils"; import { iconNames } from "../../../.storybook/helpers"; import { html } from "../../../support/formatting"; +import { CalciteMenuItem } from "./menu-item"; -interface MenuItemArgs { - text: string; +interface MenuItemStoryArgs + extends Pick { src: string; - href: string; - rel: string; - target: string; - label: string; - active: boolean; - breadcrumb: boolean; } export default { @@ -27,7 +22,7 @@ export default { }, }; -export const simple = (args: MenuItemArgs): string => html` +export const simple = (args: MenuItemStoryArgs): string => html` ; export default { title: "Components/Menu", @@ -28,7 +27,7 @@ export default { }, }; -export const simple = (args: MenuArgs): string => html` +export const simple = (args: MenuStoryArgs): string => html` diff --git a/packages/calcite-components/src/components/meter/meter.stories.ts b/packages/calcite-components/src/components/meter/meter.stories.ts index 927afecebb2..da2a881d02e 100644 --- a/packages/calcite-components/src/components/meter/meter.stories.ts +++ b/packages/calcite-components/src/components/meter/meter.stories.ts @@ -1,23 +1,25 @@ import { html } from "../../../support/formatting"; import { boolean, modesDarkDefault } from "../../../.storybook/utils"; import { ATTRIBUTES } from "../../../.storybook/resources"; +import { Meter } from "./meter"; const { fillType, appearance, labelType } = ATTRIBUTES; -interface MeterArgs { - min: number; - max: number; - low: number; - high: number; - value: number; - fillType: string; - appearance: string; - rangeLabelType: string; - valueLabelType: string; - unitLabel: string; - groupSeparator: boolean; - rangeLabels: boolean; - valueLabel: boolean; -} +type MeterStoryArgs = Pick< + Meter, + | "min" + | "max" + | "low" + | "high" + | "value" + | "fillType" + | "appearance" + | "rangeLabelType" + | "valueLabelType" + | "unitLabel" + | "groupSeparator" + | "rangeLabels" + | "valueLabel" +>; export default { title: "Components/Meter", @@ -56,7 +58,7 @@ export default { }, }; -export const simple = (args: MeterArgs): string => +export const simple = (args: MeterStoryArgs): string => html`; export default { title: "Components/Modal", @@ -45,7 +41,7 @@ export default { }, }; -export const simple = (args: ModalArgs): string => html` +export const simple = (args: ModalStoryArgs): string => html` ; export default { title: "Components/Navigation/Navigation Logo", @@ -17,7 +14,7 @@ export default { }, }; -export const simple = (args: NavigationLogoArgs): string => +export const simple = (args: NavigationLogoStoryArgs): string => html`; export default { title: "Components/Navigation/Navigation User", @@ -23,11 +20,11 @@ export default { }, }; -export const simple = (args: NavigationUserArgs): string => html` +export const simple = (args: NavigationUserStoryArgs): string => html` { showIcon: boolean; - open: boolean; - closable: boolean; noticeScale: string; - width: string; - kind: string; - icon: string; actionScale: string; } @@ -51,7 +47,7 @@ export default { }, }; -export const simple = (args: NoticeArgs): string => html` +export const simple = (args: NoticeStoryArgs): string => html`
{ lang: string; - numberingSystem: string; - totalItems: number; - pageSize: number; } export default { @@ -44,7 +41,7 @@ export default { }, }; -export const simple = (args: PaginationArgs): string => html` +export const simple = (args: PaginationStoryArgs): string => html`