Skip to content

Commit 0ea644b

Browse files
committed
chore: regen story types after update
1 parent 5e54648 commit 0ea644b

13 files changed

+48
-48
lines changed

stories/avatar.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ const metadata: Meta<IgcAvatarComponent> = {
3838
control: 'text',
3939
},
4040
shape: {
41-
type: '"circle" | "rounded" | "square"',
41+
type: '"square" | "circle" | "rounded"',
4242
description: 'The shape of the avatar.',
43-
options: ['circle', 'rounded', 'square'],
43+
options: ['square', 'circle', 'rounded'],
4444
control: { type: 'inline-radio' },
4545
table: { defaultValue: { summary: 'square' } },
4646
},
@@ -58,7 +58,7 @@ interface IgcAvatarArgs {
5858
/** Initials to use as a fallback when no image is available. */
5959
initials: string;
6060
/** The shape of the avatar. */
61-
shape: 'circle' | 'rounded' | 'square';
61+
shape: 'square' | 'circle' | 'rounded';
6262
}
6363
type Story = StoryObj<IgcAvatarArgs>;
6464

stories/button.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const metadata: Meta<IgcButtonComponent> = {
2424
},
2525
argTypes: {
2626
variant: {
27-
type: '"flat" | "contained" | "outlined" | "fab"',
27+
type: '"contained" | "flat" | "outlined" | "fab"',
2828
description: 'Sets the variant of the button.',
29-
options: ['flat', 'contained', 'outlined', 'fab'],
29+
options: ['contained', 'flat', 'outlined', 'fab'],
3030
control: { type: 'select' },
3131
table: { defaultValue: { summary: 'contained' } },
3232
},
@@ -75,7 +75,7 @@ export default metadata;
7575

7676
interface IgcButtonArgs {
7777
/** Sets the variant of the button. */
78-
variant: 'flat' | 'contained' | 'outlined' | 'fab';
78+
variant: 'contained' | 'flat' | 'outlined' | 'fab';
7979
/** The type of the button. Defaults to `button`. */
8080
type: 'button' | 'reset' | 'submit';
8181
/** The URL the button points to. */

stories/calendar.stories.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ const metadata: Meta<IgcCalendarComponent> = {
4040
table: { defaultValue: { summary: 'false' } },
4141
},
4242
headerOrientation: {
43-
type: '"vertical" | "horizontal"',
43+
type: '"horizontal" | "vertical"',
4444
description: 'The orientation of the calendar header.',
45-
options: ['vertical', 'horizontal'],
45+
options: ['horizontal', 'vertical'],
4646
control: { type: 'inline-radio' },
4747
table: { defaultValue: { summary: 'horizontal' } },
4848
},
4949
orientation: {
50-
type: '"vertical" | "horizontal"',
50+
type: '"horizontal" | "vertical"',
5151
description:
5252
'The orientation of the calendar months when more than one month\nis being shown.',
53-
options: ['vertical', 'horizontal'],
53+
options: ['horizontal', 'vertical'],
5454
control: { type: 'inline-radio' },
5555
table: { defaultValue: { summary: 'horizontal' } },
5656
},
@@ -140,12 +140,12 @@ interface IgcCalendarArgs {
140140
*/
141141
hideHeader: boolean;
142142
/** The orientation of the calendar header. */
143-
headerOrientation: 'vertical' | 'horizontal';
143+
headerOrientation: 'horizontal' | 'vertical';
144144
/**
145145
* The orientation of the calendar months when more than one month
146146
* is being shown.
147147
*/
148-
orientation: 'vertical' | 'horizontal';
148+
orientation: 'horizontal' | 'vertical';
149149
/** The number of months displayed in the days view. */
150150
visibleMonths: number;
151151
/** The current active view of the component. */

stories/carousel.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ const metadata: Meta<IgcCarouselComponent> = {
6868
table: { defaultValue: { summary: 'false' } },
6969
},
7070
indicatorsOrientation: {
71-
type: '"start" | "end"',
71+
type: '"end" | "start"',
7272
description: 'Sets the orientation of the indicator controls (dots).',
73-
options: ['start', 'end'],
73+
options: ['end', 'start'],
7474
control: { type: 'inline-radio' },
7575
table: { defaultValue: { summary: 'end' } },
7676
},
@@ -137,7 +137,7 @@ interface IgcCarouselArgs {
137137
/** Whether the carousel has vertical alignment. */
138138
vertical: boolean;
139139
/** Sets the orientation of the indicator controls (dots). */
140-
indicatorsOrientation: 'start' | 'end';
140+
indicatorsOrientation: 'end' | 'start';
141141
/**
142142
* The format used to set the aria-label on the carousel indicators.
143143
* Instances of '{0}' will be replaced with the index of the corresponding slide.

stories/checkbox.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ const metadata: Meta<IgcCheckboxComponent> = {
6666
table: { defaultValue: { summary: 'false' } },
6767
},
6868
labelPosition: {
69-
type: '"before" | "after"',
69+
type: '"after" | "before"',
7070
description: 'The label position of the control.',
71-
options: ['before', 'after'],
71+
options: ['after', 'before'],
7272
control: { type: 'inline-radio' },
7373
table: { defaultValue: { summary: 'after' } },
7474
},
@@ -101,7 +101,7 @@ interface IgcCheckboxArgs {
101101
/** The checked state of the control. */
102102
checked: boolean;
103103
/** The label position of the control. */
104-
labelPosition: 'before' | 'after';
104+
labelPosition: 'after' | 'before';
105105
}
106106
type Story = StoryObj<IgcCheckboxArgs>;
107107

stories/icon-button.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ const metadata: Meta<IgcIconButtonComponent> = {
3737
table: { defaultValue: { summary: 'false' } },
3838
},
3939
variant: {
40-
type: '"flat" | "contained" | "outlined"',
40+
type: '"contained" | "flat" | "outlined"',
4141
description: 'The visual variant of the icon button.',
42-
options: ['flat', 'contained', 'outlined'],
42+
options: ['contained', 'flat', 'outlined'],
4343
control: { type: 'inline-radio' },
4444
table: { defaultValue: { summary: 'contained' } },
4545
},
@@ -99,7 +99,7 @@ interface IgcIconButtonArgs {
9999
/** Whether to flip the icon button. Useful for RTL layouts. */
100100
mirrored: boolean;
101101
/** The visual variant of the icon button. */
102-
variant: 'flat' | 'contained' | 'outlined';
102+
variant: 'contained' | 'flat' | 'outlined';
103103
/** The type of the button. Defaults to `button`. */
104104
type: 'button' | 'reset' | 'submit';
105105
/** The URL the button points to. */

stories/radio-group.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const metadata: Meta<IgcRadioGroupComponent> = {
2424
},
2525
argTypes: {
2626
alignment: {
27-
type: '"vertical" | "horizontal"',
27+
type: '"horizontal" | "vertical"',
2828
description: 'Alignment of the radio controls inside this group.',
29-
options: ['vertical', 'horizontal'],
29+
options: ['horizontal', 'vertical'],
3030
control: { type: 'inline-radio' },
3131
table: { defaultValue: { summary: 'vertical' } },
3232
},
@@ -49,7 +49,7 @@ export default metadata;
4949

5050
interface IgcRadioGroupArgs {
5151
/** Alignment of the radio controls inside this group. */
52-
alignment: 'vertical' | 'horizontal';
52+
alignment: 'horizontal' | 'vertical';
5353
/** Gets/Sets the name for all child igc-radio components. */
5454
name: string;
5555
/** Gets/Sets the checked igc-radio element that matches `value` */

stories/radio.stories.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ const metadata: Meta<IgcRadioComponent> = {
3333
table: { defaultValue: { summary: 'false' } },
3434
},
3535
labelPosition: {
36-
type: '"before" | "after"',
36+
type: '"after" | "before"',
3737
description: 'The label position of the radio control.',
38-
options: ['before', 'after'],
38+
options: ['after', 'before'],
3939
control: { type: 'inline-radio' },
4040
table: { defaultValue: { summary: 'after' } },
4141
},
@@ -76,7 +76,7 @@ interface IgcRadioArgs {
7676
/** The checked state of the control. */
7777
checked: boolean;
7878
/** The label position of the radio control. */
79-
labelPosition: 'before' | 'after';
79+
labelPosition: 'after' | 'before';
8080
/** The name attribute of the control. */
8181
name: string;
8282
/** The disabled state of the component. */

stories/range-slider.stories.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ const metadata: Meta<IgcRangeSliderComponent> = {
107107
table: { defaultValue: { summary: '0' } },
108108
},
109109
tickOrientation: {
110-
type: '"mirror" | "start" | "end"',
110+
type: '"end" | "mirror" | "start"',
111111
description: 'Changes the orientation of the ticks.',
112-
options: ['mirror', 'start', 'end'],
112+
options: ['end', 'mirror', 'start'],
113113
control: { type: 'inline-radio' },
114114
table: { defaultValue: { summary: 'end' } },
115115
},
@@ -139,10 +139,10 @@ const metadata: Meta<IgcRangeSliderComponent> = {
139139
control: 'text',
140140
},
141141
tickLabelRotation: {
142-
type: '0 | 90 | -90',
142+
type: '"0" | "90"',
143143
description:
144144
'The degrees for the rotation of the tick labels. Defaults to 0.',
145-
options: ['0', '90', '-90'],
145+
options: ['0', '90'],
146146
control: { type: 'inline-radio' },
147147
table: { defaultValue: { summary: '0' } },
148148
},
@@ -220,7 +220,7 @@ interface IgcRangeSliderArgs {
220220
/** The number of secondary ticks. It defaults to 0 which means no secondary ticks are displayed. */
221221
secondaryTicks: number;
222222
/** Changes the orientation of the ticks. */
223-
tickOrientation: 'mirror' | 'start' | 'end';
223+
tickOrientation: 'end' | 'mirror' | 'start';
224224
/** Hides the primary tick labels. */
225225
hidePrimaryLabels: boolean;
226226
/** Hides the secondary tick labels. */
@@ -230,7 +230,7 @@ interface IgcRangeSliderArgs {
230230
/** String format used for the thumb and tick label values in the slider. */
231231
valueFormat: string;
232232
/** The degrees for the rotation of the tick labels. Defaults to 0. */
233-
tickLabelRotation: 0 | 90 | -90;
233+
tickLabelRotation: '0' | '90';
234234
}
235235
type Story = StoryObj<IgcRangeSliderArgs>;
236236

stories/slider.stories.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ const metadata: Meta<IgcSliderComponent> = {
104104
table: { defaultValue: { summary: '0' } },
105105
},
106106
tickOrientation: {
107-
type: '"mirror" | "start" | "end"',
107+
type: '"end" | "mirror" | "start"',
108108
description: 'Changes the orientation of the ticks.',
109-
options: ['mirror', 'start', 'end'],
109+
options: ['end', 'mirror', 'start'],
110110
control: { type: 'inline-radio' },
111111
table: { defaultValue: { summary: 'end' } },
112112
},
@@ -136,10 +136,10 @@ const metadata: Meta<IgcSliderComponent> = {
136136
control: 'text',
137137
},
138138
tickLabelRotation: {
139-
type: '0 | 90 | -90',
139+
type: '"0" | "90"',
140140
description:
141141
'The degrees for the rotation of the tick labels. Defaults to 0.',
142-
options: ['0', '90', '-90'],
142+
options: ['0', '90'],
143143
control: { type: 'inline-radio' },
144144
table: { defaultValue: { summary: '0' } },
145145
},
@@ -216,7 +216,7 @@ interface IgcSliderArgs {
216216
/** The number of secondary ticks. It defaults to 0 which means no secondary ticks are displayed. */
217217
secondaryTicks: number;
218218
/** Changes the orientation of the ticks. */
219-
tickOrientation: 'mirror' | 'start' | 'end';
219+
tickOrientation: 'end' | 'mirror' | 'start';
220220
/** Hides the primary tick labels. */
221221
hidePrimaryLabels: boolean;
222222
/** Hides the secondary tick labels. */
@@ -226,7 +226,7 @@ interface IgcSliderArgs {
226226
/** String format used for the thumb and tick label values in the slider. */
227227
valueFormat: string;
228228
/** The degrees for the rotation of the tick labels. Defaults to 0. */
229-
tickLabelRotation: 0 | 90 | -90;
229+
tickLabelRotation: '0' | '90';
230230
}
231231
type Story = StoryObj<IgcSliderArgs>;
232232

0 commit comments

Comments
 (0)