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

fix: stories compound-button to divider #32856

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ type Story = StoryObj<FluentAccordionItem>;

const storyTemplate = html<StoryArgs<FluentAccordionItem>>`
<fluent-accordion-item
heading-level="${story => story.headinglevel}"
marker-position="${story => story.markerPosition}"
size="${story => story.size}"
heading-level="${story => story.headinglevel || void 0}"
marker-position="${story => story.markerPosition || void 0}"
size="${story => story.size || void 0}"
?disabled="${story => story.disabled}"
?expanded="${story => story.expanded}"
?block="${story => story.block}"
Expand Down Expand Up @@ -93,6 +93,8 @@ export default {
},
} as Meta<FluentAccordionItem>;

export const Default: Story = {};

export const AccordionItem: Story = {
args: {
expanded: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ type Story = StoryObj<FluentAnchorButton>;
const storyTemplate = html<StoryArgs<FluentAnchorButton>>`
<fluent-anchor-button
href="${story => story.href}"
appearance="${story => story.appearance}"
shape="${story => story.shape}"
size="${story => story.size}"
appearance="${story => story.appearance || void 0}"
shape="${story => story.shape || void 0}"
size="${story => story.size || void 0}"
?icon-only="${story => story.iconOnly}"
>
${story => story.startSlottedContent?.()} ${story => story.slottedContent?.()}
Expand Down Expand Up @@ -141,6 +141,8 @@ export default {
},
} as Meta<FluentAnchorButton>;

export const Default: Story = {};

export const Appearance: Story = {
render: renderComponent(html<StoryArgs<FluentAnchorButton>>`
<fluent-anchor-button href="#">Default</fluent-anchor-button>
Expand Down
12 changes: 7 additions & 5 deletions packages/web-components/src/avatar/avatar.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ type Story = StoryObj<FluentAvatar>;

const storyTemplate = html<StoryArgs<FluentAvatar>>`
<fluent-avatar
appearance="${story => story.appearance}"
active="${story => story.active}"
color="${story => story.color}"
shape="${story => story.shape}"
size="${story => story.size}"
appearance="${story => story.appearance || void 0}"
active="${story => story.active || void 0}"
color="${story => story.color || void 0}"
shape="${story => story.shape || void 0}"
size="${story => story.size || void 0}"
initials="${story => story.initials}"
name="${story => story.name}"
>
Expand Down Expand Up @@ -94,6 +94,8 @@ export default {
},
} as Meta<FluentAvatar>;

export const Default: Story = {};

export const Image: Story = {
render: renderComponent(html<StoryArgs<FluentAvatar>>`<fluent-avatar>
<img
Expand Down
10 changes: 6 additions & 4 deletions packages/web-components/src/badge/badge.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ type Story = StoryObj<FluentBadge>;

const storyTemplate = html<StoryArgs<FluentBadge>>`
<fluent-badge
appearance="${story => story.appearance}"
color="${story => story.color}"
shape="${story => story.shape}"
size="${story => story.size}"
appearance="${story => story.appearance || void 0}"
color="${story => story.color || void 0}"
shape="${story => story.shape || void 0}"
size="${story => story.size || void 0}"
>
${story => story.startSlottedContent?.()} ${story => story.slottedContent?.()}
${story => story.endSlottedContent?.()}
Expand Down Expand Up @@ -84,6 +84,8 @@ export default {
},
} as Meta<FluentBadge>;

export const Default: Story = {};

export const SlottedContent: Story = {
args: {
slottedContent: () => 'Badge',
Expand Down
10 changes: 6 additions & 4 deletions packages/web-components/src/button/button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ const storyTemplate = html<StoryArgs<FluentButton>>`
?disabled="${story => story.disabled}"
?formnovalidate="${story => story.formnovalidate}"
?icon-only="${story => story.iconOnly}"
appearance="${story => story.appearance}"
appearance="${story => story.appearance || void 0}"
form="${story => story.form}"
formaction="${story => story.formaction}"
formenctype="${story => story.formenctype}"
formmethod="${story => story.formmethod}"
formtarget="${story => story.formtarget}"
name="${story => story.name}"
shape="${story => story.shape}"
size="${story => story.size}"
type="${story => story.type}"
shape="${story => story.shape || void 0}"
size="${story => story.size || void 0}"
type="${story => story.type || void 0}"
value="${story => story.value}"
>
${story => story.startSlottedContent?.()} ${story => story.slottedContent?.()}
Expand Down Expand Up @@ -159,6 +159,8 @@ export default {
},
} as Meta<FluentButton>;

export const Default: Story = {};

export const Appearance: Story = {
render: renderComponent(html<StoryArgs<FluentButton>>`
<fluent-button>Default</fluent-button>
Expand Down
6 changes: 4 additions & 2 deletions packages/web-components/src/checkbox/checkbox.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const storyTemplate = html<StoryArgs<FluentCheckbox>>`
:indeterminate="${story => story.indeterminate}"
name="${story => story.name}"
?required="${story => story.required}"
shape="${story => story.shape}"
size="${story => story.size}"
shape="${story => story.shape || void 0}"
size="${story => story.size || void 0}"
slot="${story => story.slot}"
>
${story => story.checkedIndicatorContent?.()} ${story => story.indeterminateIndicatorContent?.()}
Expand Down Expand Up @@ -118,6 +118,8 @@ export default {
},
} as Meta<FluentCheckbox>;

export const Default: Story = {};

export const Checkbox: Story = {
render: renderComponent(storyTemplate).bind({}),
args: {
Expand Down
Loading
Loading