Skip to content

Commit ec2825b

Browse files
committed
rename to camel case
1 parent 93a017d commit ec2825b

32 files changed

+113
-113
lines changed

packages/core/src/lib/accordion/accordion.stories.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { webDarkTheme, webLightTheme } from '@svelte-fui/themes';
77
import { Accordion as AccordionComponent, AccordionItem } from '.';
88
9-
const arg_types = {
9+
const argTypes = {
1010
collapsible: {
1111
control: 'boolean'
1212
},
@@ -18,7 +18,7 @@
1818
}
1919
} satisfies ArgTypes;
2020
21-
const default_args: Partial<Record<keyof typeof arg_types, any>> = {
21+
const defaultArgs: Partial<Record<keyof typeof argTypes, any>> = {
2222
collapsible: false,
2323
multiple: false
2424
};
@@ -55,7 +55,7 @@
5555
});
5656
</script>
5757

58-
<Story id="accordion" name="Accordion" args={default_args}>
58+
<Story id="accordion" name="Accordion" args={defaultArgs}>
5959
{#snippet children(args)}
6060
<FluentRoot {theme}>
6161
<div class="flex h-full w-full flex-col items-center justify-center">

packages/core/src/lib/avatar/avatar.stories.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
import type { ArgTypes } from '@storybook/svelte';
77
import PersonRegular from 'virtual:icons/fluent/person-24-regular';
88
9-
const arg_types = {} satisfies ArgTypes;
9+
const argTypes = {} satisfies ArgTypes;
1010
11-
const default_args: Partial<Record<keyof typeof arg_types, any>> = {};
11+
const defaultArgs: Partial<Record<keyof typeof argTypes, any>> = {};
1212
1313
const { Story } = defineMeta({
1414
title: 'Components/Avatar',
1515
component: AvatarComponent,
16-
argTypes: arg_types
16+
argTypes: argTypes
1717
});
1818
</script>
1919

@@ -37,7 +37,7 @@
3737
});
3838
</script>
3939

40-
<Story id="avatar" name="Avatar" args={default_args}>
40+
<Story id="avatar" name="Avatar" args={defaultArgs}>
4141
{#snippet children(args)}
4242
<FluentRoot {theme}>
4343
<div class="flex h-full w-full items-center justify-center">

packages/core/src/lib/button/button.stories.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232
} satisfies ArgTypes;
3333
34-
const default_args: Partial<Record<keyof typeof argTypes, any>> = {
34+
const defaultArgs: Partial<Record<keyof typeof argTypes, any>> = {
3535
size: 'md',
3636
appearance: 'secondary',
3737
shape: 'rounded'
@@ -64,7 +64,7 @@
6464
});
6565
</script>
6666

67-
<Story id="button" name="Button" args={default_args}>
67+
<Story id="button" name="Button" args={defaultArgs}>
6868
{#snippet children(args)}
6969
<FluentRoot {theme}>
7070
<div class="flex h-full w-full flex-col items-center justify-center gap-4">

packages/core/src/lib/button/compound-button/compound-button.stories.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import CalendarMonthFilled from 'virtual:icons/fluent/calendar-month-24-filled';
1111
import CalendarMonthRegular from 'virtual:icons/fluent/calendar-month-24-regular';
1212
13-
const arg_types = {
13+
const argTypes = {
1414
size: {
1515
type: 'string',
1616
options: ['sm', 'md', 'lg'],
@@ -34,7 +34,7 @@
3434
}
3535
} satisfies ArgTypes;
3636
37-
const default_args: Partial<Record<keyof typeof arg_types, any>> = {
37+
const defaultArgs: Partial<Record<keyof typeof argTypes, any>> = {
3838
size: 'md',
3939
appearance: 'secondary',
4040
shape: 'rounded'
@@ -43,7 +43,7 @@
4343
const { Story } = defineMeta({
4444
title: 'Components/Button',
4545
component: Button,
46-
argTypes: arg_types
46+
argTypes: argTypes
4747
});
4848
</script>
4949

@@ -73,7 +73,7 @@
7373
});
7474
</script>
7575

76-
<Story id="compound_button" name="Compound Button" args={default_args}>
76+
<Story id="compound_button" name="Compound Button" args={defaultArgs}>
7777
{#snippet children(args)}
7878
<FluentRoot {theme}>
7979
<div class="flex h-full w-full items-center justify-center gap-4">

packages/core/src/lib/button/menu-button.stories.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333
} satisfies ArgTypes;
3434
35-
const default_args: Partial<Record<keyof typeof argTypes, any>> = {
35+
const defaultArgs: Partial<Record<keyof typeof argTypes, any>> = {
3636
size: 'md',
3737
appearance: 'secondary',
3838
shape: 'rounded'
@@ -65,7 +65,7 @@
6565
});
6666
</script>
6767

68-
<Story name="Menu Button" args={default_args}>
68+
<Story name="Menu Button" args={defaultArgs}>
6969
{#snippet children(args)}
7070
<FluentRoot {theme}>
7171
<div class="flex h-full w-full flex-col items-center justify-center gap-4">

packages/core/src/lib/button/split-button.stories.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
} satisfies ArgTypes;
3636
37-
const default_args: Partial<Record<keyof typeof argTypes, any>> = {
37+
const defaultArgs: Partial<Record<keyof typeof argTypes, any>> = {
3838
size: 'md',
3939
appearance: 'secondary',
4040
shape: 'rounded'
@@ -67,7 +67,7 @@
6767
});
6868
</script>
6969

70-
<Story name="Split Button" args={default_args}>
70+
<Story name="Split Button" args={defaultArgs}>
7171
{#snippet children(args)}
7272
<FluentRoot {theme}>
7373
<div class="flex h-full w-full flex-col items-center justify-center gap-4">

packages/core/src/lib/button/toggle-button.stories.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
} satisfies ArgTypes;
3636
37-
const default_args: Partial<Record<keyof typeof argTypes, any>> = {
37+
const defaultArgs: Partial<Record<keyof typeof argTypes, any>> = {
3838
size: 'md',
3939
appearance: 'secondary',
4040
shape: 'rounded'
@@ -67,7 +67,7 @@
6767
});
6868
</script>
6969

70-
<Story name="Toggle Button" args={default_args}>
70+
<Story name="Toggle Button" args={defaultArgs}>
7171
{#snippet children(args)}
7272
<FluentRoot {theme}>
7373
<div class="flex h-full w-full flex-col items-center justify-center gap-4">

packages/core/src/lib/card/card-appearance.stories.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
88
import MoreHorizontalFilled from 'virtual:icons/fluent/more-horizontal-24-filled';
99
10-
const default_args = {
10+
const defaultArgs = {
1111
disabled: false,
1212
required: false,
1313
size: 'md',
1414
weight: 'regular'
1515
};
1616
17-
const arg_types = {
17+
const argTypes = {
1818
appearance: {
1919
type: 'string',
2020
defaultValue: 'filled',
@@ -51,7 +51,7 @@
5151
const { Story } = defineMeta({
5252
title: 'Components/Card',
5353
component: CardFui.Root,
54-
argTypes: arg_types
54+
argTypes: argTypes
5555
});
5656
</script>
5757

@@ -75,7 +75,7 @@
7575
});
7676
</script>
7777

78-
<Story id="fui_card_appearance" name="Appearance" args={default_args}>
78+
<Story id="fui_card_appearance" name="Appearance" args={defaultArgs}>
7979
{#snippet children(args)}
8080
<FluentRoot {theme}>
8181
<div class="flex h-full w-full flex-col items-center justify-center gap-4">

packages/core/src/lib/card/card-header.stories.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
import type { ArgTypes } from '@storybook/svelte';
77
import MoreHorizontalFilled from 'virtual:icons/fluent/more-horizontal-24-filled';
88
9-
const default_args = {
9+
const defaultArgs = {
1010
disabled: false,
1111
required: false,
1212
size: 'md',
1313
weight: 'regular'
1414
};
1515
16-
const arg_types = {
16+
const argTypes = {
1717
appearance: {
1818
type: 'string',
1919
defaultValue: 'filled',
@@ -50,7 +50,7 @@
5050
const { Story } = defineMeta({
5151
title: 'Components/Card',
5252
component: CardFui.Root,
53-
argTypes: arg_types
53+
argTypes: argTypes
5454
});
5555
</script>
5656

@@ -74,7 +74,7 @@
7474
});
7575
</script>
7676

77-
<Story id="fui_card_header" name="Header" args={default_args}>
77+
<Story id="fui_card_header" name="Header" args={defaultArgs}>
7878
{#snippet children(args)}
7979
<FluentRoot {theme}>
8080
<div class="flex h-full w-full flex-col items-center justify-center gap-4">

packages/core/src/lib/card/card-size.stories.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
import { defineMeta } from '@storybook/addon-svelte-csf';
66
import type { ArgTypes } from '@storybook/svelte';
77
8-
const default_args = {
8+
const defaultArgs = {
99
disabled: false,
1010
required: false,
1111
size: 'md',
1212
weight: 'regular'
1313
};
1414
15-
const arg_types = {
15+
const argTypes = {
1616
appearance: {
1717
type: 'string',
1818
defaultValue: 'filled',
@@ -49,7 +49,7 @@
4949
const { Story } = defineMeta({
5050
title: 'Components/Card',
5151
component: CardFui.Root,
52-
argTypes: arg_types
52+
argTypes: argTypes
5353
});
5454
</script>
5555

@@ -73,7 +73,7 @@
7373
});
7474
</script>
7575

76-
<Story id="fui_card_size" name="Size" args={default_args}>
76+
<Story id="fui_card_size" name="Size" args={defaultArgs}>
7777
{#snippet children(args)}
7878
<FluentRoot {theme}>
7979
<div class="flex h-full w-full flex-col items-center justify-center gap-4">

0 commit comments

Comments
 (0)