Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
835c0ab
fix(button-group): story types and argTypes for CI
marklearst Feb 9, 2026
8c9bc52
fix(disclosure): story types and argTypes for CI
marklearst Feb 9, 2026
e5c128d
fix(divider-line): story types and render args for CI
marklearst Feb 9, 2026
4c6db2d
fix(featured-tag): story types and argTypes for CI
marklearst Feb 9, 2026
f258b96
fix(multi-combobox): story types and argTypes for CI
marklearst Feb 9, 2026
0b9e7f4
fix(radio-box): story types and argTypes for CI
marklearst Feb 9, 2026
fb211cc
fix(radio-input): story types and argTypes for CI
marklearst Feb 9, 2026
45e4cac
fix(search-input): story types and argTypes for CI
marklearst Feb 9, 2026
dd08bad
fix(text-input): story types and argTypes for CI
marklearst Feb 9, 2026
a45565a
fix(textarea): story types and argTypes for CI
marklearst Feb 9, 2026
9999ad1
fix(menu-info-item): story types and argTypes for CI
marklearst Feb 9, 2026
3f000ee
fix(menu-separator): story types and render args for CI
marklearst Feb 9, 2026
a064f7f
fix(menu-title): story types and argTypes for CI
marklearst Feb 9, 2026
7dcd06d
fix(page): story types and argTypes for CI
marklearst Feb 9, 2026
592a788
fix(section): story types and argTypes for CI
marklearst Feb 9, 2026
1f48f88
fix(sidebar-container): story types and argTypes for CI
marklearst Feb 9, 2026
8f026c4
fix(sidebar): story types and argTypes for CI
marklearst Feb 9, 2026
514c322
fix(slot): story types and argTypes for CI
marklearst Feb 9, 2026
c04e1a6
fix(table-key-value-pair): story types and argTypes for CI
marklearst Feb 9, 2026
fa63c9c
fix(table-virtualized): test virtualizer callback signature for CI
marklearst Feb 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions src/components/button-group/button-group.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import type { Meta, StoryObj } from '@storybook/react-vite'
import { ButtonGroup } from './button-group'

const meta: Meta<typeof ButtonGroup> = {
type ButtonGroupStoryArgs = {
normalLabel: string
disabledLabel: string
activeLabel: string
activeDisabledLabel: string
extraLabel: string
}

const meta: Meta<ButtonGroupStoryArgs> = {
title: 'ButtonGroup',
component: ButtonGroup,
args: {
normalLabel: 'Normal',
disabledLabel: 'Disabled',
Expand All @@ -12,11 +19,11 @@ const meta: Meta<typeof ButtonGroup> = {
extraLabel: 'Button 1',
},
argTypes: {
normalLabel: { control: 'text' },
disabledLabel: { control: 'text' },
activeLabel: { control: 'text' },
activeDisabledLabel: { control: 'text' },
extraLabel: { control: 'text' },
normalLabel: { control: { type: 'text' } },
disabledLabel: { control: { type: 'text' } },
activeLabel: { control: { type: 'text' } },
activeDisabledLabel: { control: { type: 'text' } },
extraLabel: { control: { type: 'text' } },
},
parameters: {
options: {
Expand All @@ -26,7 +33,7 @@ const meta: Meta<typeof ButtonGroup> = {
}

export default meta
type Story = StoryObj<typeof ButtonGroup>
type Story = StoryObj<typeof meta>

export const Default: Story = {
render: ({
Expand Down
14 changes: 9 additions & 5 deletions src/components/disclosure/disclosure.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import type { Meta, StoryObj } from '@storybook/react-vite'
import { Disclosure } from './disclosure'

const meta: Meta<typeof Disclosure> = {
type DisclosureStoryArgs = {
buttonLabel: string
panelContent: string
}

const meta: Meta<DisclosureStoryArgs> = {
title: 'Disclosure',
component: Disclosure,
args: {
buttonLabel: 'Disclosure Button',
panelContent: 'Disclosure Content',
},
argTypes: {
buttonLabel: { control: 'text' },
panelContent: { control: 'text' },
buttonLabel: { control: { type: 'text' } },
panelContent: { control: { type: 'text' } },
},
parameters: {
options: {
Expand All @@ -20,7 +24,7 @@ const meta: Meta<typeof Disclosure> = {
}

export default meta
type Story = StoryObj<typeof Disclosure>
type Story = StoryObj<typeof meta>

export const Default: Story = {
render: ({ buttonLabel, panelContent }) => (
Expand Down
19 changes: 12 additions & 7 deletions src/components/divider-line/divider-line.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import type { Meta, StoryObj } from '@storybook/react-vite'

import { DividerLine } from './divider-line'

const meta: Meta<typeof DividerLine> = {
type DividerLineStoryArgs = {
padding: number
showIcons: boolean
}

const meta: Meta<DividerLineStoryArgs> = {
title: 'DividerLine',
component: DividerLine,
args: {
Expand All @@ -11,23 +16,23 @@ const meta: Meta<typeof DividerLine> = {
},
argTypes: {
padding: { control: { type: 'range', min: 0, max: 32, step: 2 } },
showIcons: { control: 'boolean' },
showIcons: { control: { type: 'boolean' } },
},
parameters: { layout: 'fullscreen' },
render: ({ padding, showIcons }) => (
<div style={{ padding }}>
{showIcons ?
render: (args: DividerLineStoryArgs) => (
<div style={{ padding: args.padding }}>
{args.showIcons ?
<span>🌞</span>
: null}
<DividerLine />
{showIcons ?
{args.showIcons ?
<span>🌙</span>
: null}
</div>
),
}

export default meta
type Story = StoryObj<typeof DividerLine>
type Story = StoryObj<typeof meta>

export const Default: Story = {}
14 changes: 9 additions & 5 deletions src/components/featured-tag/featured-tag.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@ import { FeaturedTag } from './featured-tag'
import { Panel } from '../panel'
import { FormField } from '../form-field'

const meta: Meta<typeof FeaturedTag> = {
type FeaturedTagStoryArgs = {
tagLabel: string
panelText: string
}

const meta: Meta<FeaturedTagStoryArgs> = {
title: 'Input/FeaturedTag',
component: FeaturedTag,
args: {
tagLabel: 'Recommended!',
panelText: 'This example uses a Panel component',
},
argTypes: {
tagLabel: { control: 'text' },
panelText: { control: 'text' },
tagLabel: { control: { type: 'text' } },
panelText: { control: { type: 'text' } },
},
}

export default meta

type Story = StoryObj<typeof FeaturedTag>
type Story = StoryObj<typeof meta>

const RadioBoxWithRecommendationTag = ({ tagLabel }: { tagLabel: string }) => {
const [value, setValue] = useState('value_1')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import type { Meta, StoryObj } from '@storybook/react-vite'
import { FormField } from '../form-field'
import { hiddenArgControl } from '../../../util/storybook-utils'
import {
MultiComboboxBadgeStory,
multiComboboxArgTypes,
multiComboboxArgs,
type MultiComboboxStoryArgs,
} from './multi-combobox.story-helpers'

const meta: Meta = {
const meta: Meta<MultiComboboxStoryArgs> = {
title: 'Input/MultiCombobox/Badges',
component: FormField.MultiCombobox,
args: multiComboboxArgs,
argTypes: {
...multiComboboxArgTypes,
value: hiddenArgControl,
onChange: hiddenArgControl,
className: hiddenArgControl,
},
parameters: {
controls: {
Expand All @@ -26,15 +21,15 @@ const meta: Meta = {

export default meta

type Story = StoryObj<typeof FormField.MultiCombobox>
type Story = StoryObj<typeof meta>

export const Badges: Story = {
render: ({ label, description, placeholder, width }) => (
<div style={{ width }}>
<div style={{ width: width ?? 288 }}>
<MultiComboboxBadgeStory
label={label as string}
description={description as string}
placeholder={placeholder as string}
label={label}
description={description}
placeholder={placeholder}
/>
</div>
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import type { Meta, StoryObj } from '@storybook/react-vite'
import { FormField } from '../form-field'
import { hiddenArgControl } from '../../../util/storybook-utils'
import {
MultiComboboxCustomValueStory,
multiComboboxArgTypes,
multiComboboxArgs,
type MultiComboboxStoryArgs,
} from './multi-combobox.story-helpers'

const meta: Meta = {
const meta: Meta<MultiComboboxStoryArgs> = {
title: 'Input/MultiCombobox/CustomValue',
component: FormField.MultiCombobox,
args: multiComboboxArgs,
argTypes: {
...multiComboboxArgTypes,
value: hiddenArgControl,
onChange: hiddenArgControl,
className: hiddenArgControl,
},
parameters: {
controls: {
Expand All @@ -26,15 +21,15 @@ const meta: Meta = {

export default meta

type Story = StoryObj<typeof FormField.MultiCombobox>
type Story = StoryObj<typeof meta>

export const CustomValue: Story = {
render: ({ label, description, placeholder, width }) => (
<div style={{ width }}>
<div style={{ width: width ?? 288 }}>
<MultiComboboxCustomValueStory
label={label as string}
description={description as string}
placeholder={placeholder as string}
label={label}
description={description}
placeholder={placeholder}
/>
</div>
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import type { Meta, StoryObj } from '@storybook/react-vite'
import { FormField } from '../form-field'
import { hiddenArgControl } from '../../../util/storybook-utils'
import {
MultiComboboxTagStory,
multiComboboxArgTypes,
multiComboboxArgs,
type MultiComboboxStoryArgs,
} from './multi-combobox.story-helpers'

const meta: Meta = {
const meta: Meta<MultiComboboxStoryArgs> = {
title: 'Input/MultiCombobox/Tags',
component: FormField.MultiCombobox,
args: multiComboboxArgs,
argTypes: {
...multiComboboxArgTypes,
value: hiddenArgControl,
onChange: hiddenArgControl,
className: hiddenArgControl,
},
parameters: {
controls: {
Expand All @@ -26,15 +21,15 @@ const meta: Meta = {

export default meta

type Story = StoryObj<typeof FormField.MultiCombobox>
type Story = StoryObj<typeof meta>

export const Tags: Story = {
render: ({ label, description, placeholder, width }) => (
<div style={{ width }}>
<div style={{ width: width ?? 288 }}>
<MultiComboboxTagStory
label={label as string}
description={description as string}
placeholder={placeholder as string}
label={label}
description={description}
placeholder={placeholder}
/>
</div>
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
/* eslint-disable react/jsx-props-no-spreading */
import type { Meta, StoryObj } from '@storybook/react-vite'
import { FormField } from '../form-field'
import { hiddenArgControl } from '../../../util/storybook-utils'
import {
MultiComboboxTextStory,
multiComboboxArgTypes,
multiComboboxArgs,
type MultiComboboxStoryArgs,
} from './multi-combobox.story-helpers'

const meta: Meta = {
const meta: Meta<MultiComboboxStoryArgs> = {
title: 'Input/MultiCombobox',
component: FormField.MultiCombobox,
args: multiComboboxArgs,
argTypes: {
...multiComboboxArgTypes,
value: hiddenArgControl,
onChange: hiddenArgControl,
className: hiddenArgControl,
},
parameters: {
controls: {
Expand All @@ -27,15 +22,15 @@ const meta: Meta = {

export default meta

type Story = StoryObj<typeof FormField.MultiCombobox>
type Story = StoryObj<typeof meta>

export const Default: Story = {
render: ({ label, description, placeholder, width }) => (
<div style={{ width }}>
<div style={{ width: width ?? 288 }}>
<MultiComboboxTextStory
label={label as string}
description={description as string}
placeholder={placeholder as string}
label={label}
description={description}
placeholder={placeholder}
/>
</div>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export const multiComboboxArgs: MultiComboboxStoryArgs = {
}

export const multiComboboxArgTypes = {
label: { control: 'text' },
description: { control: 'text' },
placeholder: { control: 'text' },
width: { control: { type: 'range', min: 200, max: 360, step: 16 } },
label: { control: { type: 'text' as const } },
description: { control: { type: 'text' as const } },
placeholder: { control: { type: 'text' as const } },
width: { control: { type: 'range' as const, min: 200, max: 360, step: 16 } },
}

const people = [
Expand Down
Loading
Loading