@iroco/ui 1.0.0-9 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +7 -5
  2. package/dist/Alert.stories.svelte +19 -20
  3. package/dist/Alert.stories.svelte.d.ts +17 -35
  4. package/dist/Alert.svelte +12 -5
  5. package/dist/Alert.svelte.d.ts +7 -18
  6. package/dist/Button.stories.svelte +16 -12
  7. package/dist/Button.stories.svelte.d.ts +17 -43
  8. package/dist/Button.svelte +41 -12
  9. package/dist/Button.svelte.d.ts +20 -38
  10. package/dist/DataTable.stories.svelte +24 -19
  11. package/dist/DataTable.stories.svelte.d.ts +17 -27
  12. package/dist/DataTable.svelte +40 -25
  13. package/dist/DataTable.svelte.d.ts +17 -24
  14. package/dist/IconBurger.stories.svelte +8 -12
  15. package/dist/IconBurger.stories.svelte.d.ts +17 -46
  16. package/dist/IconBurger.svelte +7 -2
  17. package/dist/IconBurger.svelte.d.ts +6 -16
  18. package/dist/IconClose.stories.svelte +6 -12
  19. package/dist/IconClose.stories.svelte.d.ts +17 -46
  20. package/dist/IconClose.svelte +7 -2
  21. package/dist/IconClose.svelte.d.ts +6 -16
  22. package/dist/IconFloppyDisk.stories.svelte +4 -11
  23. package/dist/IconFloppyDisk.stories.svelte.d.ts +17 -53
  24. package/dist/IconFloppyDisk.svelte +8 -3
  25. package/dist/IconFloppyDisk.svelte.d.ts +7 -17
  26. package/dist/IconInfo.stories.svelte +8 -11
  27. package/dist/IconInfo.stories.svelte.d.ts +17 -48
  28. package/dist/IconInfo.svelte +7 -2
  29. package/dist/IconInfo.svelte.d.ts +6 -16
  30. package/dist/IconIrocoLogo.stories.svelte +8 -8
  31. package/dist/IconIrocoLogo.stories.svelte.d.ts +17 -55
  32. package/dist/IconIrocoLogo.svelte +16 -6
  33. package/dist/IconIrocoLogo.svelte.d.ts +9 -19
  34. package/dist/IconMoreSign.stories.svelte +7 -14
  35. package/dist/IconMoreSign.stories.svelte.d.ts +17 -48
  36. package/dist/IconMoreSign.svelte +7 -2
  37. package/dist/IconMoreSign.svelte.d.ts +6 -16
  38. package/dist/IconTrashCan.stories.svelte +6 -12
  39. package/dist/IconTrashCan.stories.svelte.d.ts +17 -48
  40. package/dist/IconTrashCan.svelte +8 -3
  41. package/dist/IconTrashCan.svelte.d.ts +7 -17
  42. package/dist/ImageArticle.stories.svelte +11 -8
  43. package/dist/ImageArticle.stories.svelte.d.ts +17 -64
  44. package/dist/ImageArticle.svelte +37 -165
  45. package/dist/ImageArticle.svelte.d.ts +11 -21
  46. package/dist/IrocoLogo.stories.svelte +12 -7
  47. package/dist/IrocoLogo.stories.svelte.d.ts +17 -48
  48. package/dist/IrocoLogo.svelte +13 -4
  49. package/dist/IrocoLogo.svelte.d.ts +8 -18
  50. package/dist/Loader.stories.svelte +11 -8
  51. package/dist/Loader.stories.svelte.d.ts +17 -27
  52. package/dist/Loader.svelte +19 -18
  53. package/dist/Loader.svelte.d.ts +16 -12
  54. package/dist/NavBar.stories.svelte +29 -20
  55. package/dist/NavBar.stories.svelte.d.ts +17 -35
  56. package/dist/NavBar.svelte +51 -183
  57. package/dist/NavBar.svelte.d.ts +31 -20
  58. package/dist/Navigation.stories.svelte +30 -28
  59. package/dist/Navigation.stories.svelte.d.ts +17 -57
  60. package/dist/Navigation.svelte +32 -14
  61. package/dist/Navigation.svelte.d.ts +18 -20
  62. package/dist/NumberInput.stories.svelte +12 -7
  63. package/dist/NumberInput.stories.svelte.d.ts +17 -75
  64. package/dist/NumberInput.svelte +26 -8
  65. package/dist/NumberInput.svelte.d.ts +13 -24
  66. package/dist/RadioButton.stories.svelte +17 -30
  67. package/dist/RadioButton.stories.svelte.d.ts +17 -54
  68. package/dist/RadioButton.svelte +25 -11
  69. package/dist/RadioButton.svelte.d.ts +10 -20
  70. package/dist/SlottedComponentWrapper.svelte +4 -4
  71. package/dist/SlottedComponentWrapper.svelte.d.ts +4 -22
  72. package/dist/TextInput.stories.svelte +24 -47
  73. package/dist/TextInput.stories.svelte.d.ts +17 -109
  74. package/dist/TextInput.svelte +46 -25
  75. package/dist/TextInput.svelte.d.ts +19 -30
  76. package/dist/definition.d.ts +0 -5
  77. package/dist/definition.js +0 -11
  78. package/dist/index.d.ts +14 -10
  79. package/dist/index.js +14 -10
  80. package/dist/scss/button.scss +7 -3
  81. package/dist/scss/colors.scss +21 -11
  82. package/dist/scss/fields/_input.scss +1 -1
  83. package/dist/scss/fields/_style.scss +2 -2
  84. package/package.json +49 -48
  85. package/dist/RadioButtonTest.svelte +0 -10
  86. package/dist/RadioButtonTest.svelte.d.ts +0 -19
@@ -1,26 +1,19 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- rows: {
5
- [key: string]: string | number;
6
- }[];
7
- columns: {
8
- key: string;
9
- title: string;
10
- renderComponent?: {
11
- component: SvelteComponent;
12
- props?: any;
13
- } | undefined;
14
- }[];
1
+ import type { Component } from 'svelte';
2
+ type TableColumn = {
3
+ key: string;
4
+ title: string;
5
+ renderComponent?: {
6
+ component: Component;
7
+ props?: any;
15
8
  };
16
- events: {
17
- [evt: string]: CustomEvent<any>;
18
- };
19
- slots: {};
20
9
  };
21
- export type DataTableProps = typeof __propDef.props;
22
- export type DataTableEvents = typeof __propDef.events;
23
- export type DataTableSlots = typeof __propDef.slots;
24
- export default class DataTable extends SvelteComponent<DataTableProps, DataTableEvents, DataTableSlots> {
25
- }
26
- export {};
10
+ type TableRow = {
11
+ [key: string]: string | number;
12
+ };
13
+ type $$ComponentProps = {
14
+ rows: Array<TableRow>;
15
+ columns: Array<TableColumn>;
16
+ };
17
+ declare const DataTable: Component<$$ComponentProps, {}, "">;
18
+ type DataTable = ReturnType<typeof DataTable>;
19
+ export default DataTable;
@@ -1,7 +1,11 @@
1
- <script context="module">
2
- import IconBurger from './IconBurger.svelte';
1
+ <script module lang="ts">
2
+ import { IconBurger } from './index';
3
+ import {defineMeta} from '@storybook/addon-svelte-csf'
4
+
5
+ const {Story} = defineMeta({
6
+
7
+
3
8
 
4
- export const meta = {
5
9
  title: 'Iroco-UI/Icons/IconBurger',
6
10
  component: IconBurger,
7
11
  argTypes: {
@@ -16,15 +20,7 @@
16
20
  max: 512
17
21
  }
18
22
  }
19
- };
23
+ })
20
24
  </script>
21
25
 
22
- <script>
23
- import { Story, Template } from '@storybook/addon-svelte-csf';
24
- </script>
25
-
26
- <Template let:args>
27
- <IconBurger {...args} />
28
- </Template>
29
-
30
26
  <Story name="Default" />
@@ -1,48 +1,19 @@
1
- export namespace meta {
2
- export let title: string;
3
- export { IconBurger as component };
4
- export namespace argTypes {
5
- namespace width {
6
- namespace control {
7
- let type: string;
8
- }
9
- let min: number;
10
- let max: number;
11
- }
12
- namespace height {
13
- export namespace control_1 {
14
- let type_1: string;
15
- export { type_1 as type };
16
- }
17
- export { control_1 as control };
18
- let min_1: number;
19
- export { min_1 as min };
20
- let max_1: number;
21
- export { max_1 as max };
22
- }
23
- }
1
+ import { IconBurger } from './index';
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
12
+ };
13
+ z_$$bindings?: Bindings;
24
14
  }
25
- /** @typedef {typeof __propDef.props} IconBurgerProps */
26
- /** @typedef {typeof __propDef.events} IconBurgerEvents */
27
- /** @typedef {typeof __propDef.slots} IconBurgerSlots */
28
- export default class IconBurger extends SvelteComponent<{
29
- [x: string]: never;
30
- }, {
15
+ declare const IconBurger: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
31
16
  [evt: string]: CustomEvent<any>;
32
- }, {}> {
33
- }
34
- export type IconBurgerProps = typeof __propDef.props;
35
- export type IconBurgerEvents = typeof __propDef.events;
36
- export type IconBurgerSlots = typeof __propDef.slots;
37
- import IconBurger from './IconBurger.svelte';
38
- import { SvelteComponent } from "svelte";
39
- declare const __propDef: {
40
- props: {
41
- [x: string]: never;
42
- };
43
- events: {
44
- [evt: string]: CustomEvent<any>;
45
- };
46
- slots: {};
47
- };
48
- export {};
17
+ }, {}, {}, string>;
18
+ type IconBurger = InstanceType<typeof IconBurger>;
19
+ export default IconBurger;
@@ -1,5 +1,10 @@
1
- <script>export let width = "5rem";
2
- export let height = "5rem";
1
+ <script lang="ts">
2
+ interface Props {
3
+ width?: string;
4
+ height?: string;
5
+ }
6
+
7
+ let { width = '5rem', height = '5rem' }: Props = $props();
3
8
  </script>
4
9
 
5
10
  <svg
@@ -1,17 +1,7 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- width?: string | undefined;
5
- height?: string | undefined;
6
- };
7
- events: {
8
- [evt: string]: CustomEvent<any>;
9
- };
10
- slots: {};
11
- };
12
- export type IconBurgerProps = typeof __propDef.props;
13
- export type IconBurgerEvents = typeof __propDef.events;
14
- export type IconBurgerSlots = typeof __propDef.slots;
15
- export default class IconBurger extends SvelteComponent<IconBurgerProps, IconBurgerEvents, IconBurgerSlots> {
1
+ interface Props {
2
+ width?: string;
3
+ height?: string;
16
4
  }
17
- export {};
5
+ declare const IconBurger: import("svelte").Component<Props, {}, "">;
6
+ type IconBurger = ReturnType<typeof IconBurger>;
7
+ export default IconBurger;
@@ -1,7 +1,9 @@
1
- <script context="module">
2
- import IconClose from './IconClose.svelte';
1
+ <script module lang="ts">
2
+ import { IconClose } from './index';
3
3
 
4
- export const meta = {
4
+ import { defineMeta } from '@storybook/addon-svelte-csf';
5
+
6
+ const { Story } = defineMeta({
5
7
  title: 'Iroco-UI/Icons/IconClose',
6
8
  component: IconClose,
7
9
  argTypes: {
@@ -16,15 +18,7 @@
16
18
  max: 512
17
19
  }
18
20
  }
19
- };
20
- </script>
21
-
22
- <script>
23
- import { Story, Template } from '@storybook/addon-svelte-csf';
21
+ });
24
22
  </script>
25
23
 
26
- <Template let:args>
27
- <IconClose {...args} />
28
- </Template>
29
-
30
24
  <Story name="Default" />
@@ -1,48 +1,19 @@
1
- export namespace meta {
2
- export let title: string;
3
- export { IconClose as component };
4
- export namespace argTypes {
5
- namespace width {
6
- namespace control {
7
- let type: string;
8
- }
9
- let min: number;
10
- let max: number;
11
- }
12
- namespace height {
13
- export namespace control_1 {
14
- let type_1: string;
15
- export { type_1 as type };
16
- }
17
- export { control_1 as control };
18
- let min_1: number;
19
- export { min_1 as min };
20
- let max_1: number;
21
- export { max_1 as max };
22
- }
23
- }
1
+ import { IconClose } from './index';
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
12
+ };
13
+ z_$$bindings?: Bindings;
24
14
  }
25
- /** @typedef {typeof __propDef.props} IconCloseProps */
26
- /** @typedef {typeof __propDef.events} IconCloseEvents */
27
- /** @typedef {typeof __propDef.slots} IconCloseSlots */
28
- export default class IconClose extends SvelteComponent<{
29
- [x: string]: never;
30
- }, {
15
+ declare const IconClose: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
31
16
  [evt: string]: CustomEvent<any>;
32
- }, {}> {
33
- }
34
- export type IconCloseProps = typeof __propDef.props;
35
- export type IconCloseEvents = typeof __propDef.events;
36
- export type IconCloseSlots = typeof __propDef.slots;
37
- import IconClose from './IconClose.svelte';
38
- import { SvelteComponent } from "svelte";
39
- declare const __propDef: {
40
- props: {
41
- [x: string]: never;
42
- };
43
- events: {
44
- [evt: string]: CustomEvent<any>;
45
- };
46
- slots: {};
47
- };
48
- export {};
17
+ }, {}, {}, string>;
18
+ type IconClose = InstanceType<typeof IconClose>;
19
+ export default IconClose;
@@ -1,5 +1,10 @@
1
- <script>export let width = "5rem";
2
- export let height = "5rem";
1
+ <script lang="ts">
2
+ interface Props {
3
+ width?: string;
4
+ height?: string;
5
+ }
6
+
7
+ let { width = '5rem', height = '5rem' }: Props = $props();
3
8
  </script>
4
9
 
5
10
  <svg
@@ -1,17 +1,7 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- width?: string | undefined;
5
- height?: string | undefined;
6
- };
7
- events: {
8
- [evt: string]: CustomEvent<any>;
9
- };
10
- slots: {};
11
- };
12
- export type IconCloseProps = typeof __propDef.props;
13
- export type IconCloseEvents = typeof __propDef.events;
14
- export type IconCloseSlots = typeof __propDef.slots;
15
- export default class IconClose extends SvelteComponent<IconCloseProps, IconCloseEvents, IconCloseSlots> {
1
+ interface Props {
2
+ width?: string;
3
+ height?: string;
16
4
  }
17
- export {};
5
+ declare const IconClose: import("svelte").Component<Props, {}, "">;
6
+ type IconClose = ReturnType<typeof IconClose>;
7
+ export default IconClose;
@@ -1,7 +1,8 @@
1
- <script context="module">
1
+ <script module lang="ts">
2
2
  import { IconFloppyDisk } from './index';
3
+ import { defineMeta } from '@storybook/addon-svelte-csf';
3
4
 
4
- export const meta = {
5
+ const { Story } = defineMeta({
5
6
  title: 'Iroco-UI/Icons/IconFloppyDisk',
6
7
  component: IconFloppyDisk,
7
8
  argTypes: {
@@ -19,15 +20,7 @@
19
20
  control: { type: 'color' }
20
21
  }
21
22
  }
22
- };
23
+ });
23
24
  </script>
24
25
 
25
- <script>
26
- import { Story, Template } from '@storybook/addon-svelte-csf';
27
- </script>
28
-
29
- <Template let:args>
30
- <IconFloppyDisk {...args} />
31
- </Template>
32
-
33
26
  <Story name="Default" />
@@ -1,55 +1,19 @@
1
- export namespace meta {
2
- export let title: string;
3
- export { IconFloppyDisk as component };
4
- export namespace argTypes {
5
- namespace width {
6
- namespace control {
7
- let type: string;
8
- }
9
- let min: number;
10
- let max: number;
11
- }
12
- namespace height {
13
- export namespace control_1 {
14
- let type_1: string;
15
- export { type_1 as type };
16
- }
17
- export { control_1 as control };
18
- let min_1: number;
19
- export { min_1 as min };
20
- let max_1: number;
21
- export { max_1 as max };
22
- }
23
- namespace fill {
24
- export namespace control_2 {
25
- let type_2: string;
26
- export { type_2 as type };
27
- }
28
- export { control_2 as control };
29
- }
30
- }
31
- }
32
- /** @typedef {typeof __propDef.props} IconFloppyDiskProps */
33
- /** @typedef {typeof __propDef.events} IconFloppyDiskEvents */
34
- /** @typedef {typeof __propDef.slots} IconFloppyDiskSlots */
35
- export default class IconFloppyDisk extends SvelteComponent<{
36
- [x: string]: never;
37
- }, {
38
- [evt: string]: CustomEvent<any>;
39
- }, {}> {
40
- }
41
- export type IconFloppyDiskProps = typeof __propDef.props;
42
- export type IconFloppyDiskEvents = typeof __propDef.events;
43
- export type IconFloppyDiskSlots = typeof __propDef.slots;
44
1
  import { IconFloppyDisk } from './index';
45
- import { SvelteComponent } from "svelte";
46
- declare const __propDef: {
47
- props: {
48
- [x: string]: never;
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
49
12
  };
50
- events: {
51
- [evt: string]: CustomEvent<any>;
52
- };
53
- slots: {};
54
- };
55
- export {};
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const IconFloppyDisk: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type IconFloppyDisk = InstanceType<typeof IconFloppyDisk>;
19
+ export default IconFloppyDisk;
@@ -1,6 +1,11 @@
1
- <script>export let width = "5rem";
2
- export let height = "5rem";
3
- export let fill = "currentColor";
1
+ <script lang="ts">
2
+ interface Props {
3
+ width?: string;
4
+ height?: string;
5
+ fill?: string;
6
+ }
7
+
8
+ let { width = '5rem', height = '5rem', fill = 'currentColor' }: Props = $props();
4
9
  </script>
5
10
 
6
11
  <svg {width} {height} viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -1,18 +1,8 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- width?: string | undefined;
5
- height?: string | undefined;
6
- fill?: string | undefined;
7
- };
8
- events: {
9
- [evt: string]: CustomEvent<any>;
10
- };
11
- slots: {};
12
- };
13
- export type IconFloppyDiskProps = typeof __propDef.props;
14
- export type IconFloppyDiskEvents = typeof __propDef.events;
15
- export type IconFloppyDiskSlots = typeof __propDef.slots;
16
- export default class IconFloppyDisk extends SvelteComponent<IconFloppyDiskProps, IconFloppyDiskEvents, IconFloppyDiskSlots> {
1
+ interface Props {
2
+ width?: string;
3
+ height?: string;
4
+ fill?: string;
17
5
  }
18
- export {};
6
+ declare const IconFloppyDisk: import("svelte").Component<Props, {}, "">;
7
+ type IconFloppyDisk = ReturnType<typeof IconFloppyDisk>;
8
+ export default IconFloppyDisk;
@@ -1,7 +1,12 @@
1
- <script context="module">
1
+ <script module lang="ts">
2
2
  import { IconInfo } from './index';
3
3
 
4
- export const meta = {
4
+ import {defineMeta} from '@storybook/addon-svelte-csf'
5
+
6
+ const {Story} = defineMeta({
7
+
8
+
9
+
5
10
  title: 'Iroco-UI/Icons/IconInfo',
6
11
  type: 'Icons',
7
12
  component: IconInfo,
@@ -17,15 +22,7 @@
17
22
  max: 512
18
23
  }
19
24
  }
20
- };
25
+ })
21
26
  </script>
22
27
 
23
- <script>
24
- import { Story, Template } from '@storybook/addon-svelte-csf';
25
- </script>
26
-
27
- <Template let:args>
28
- <IconInfo {...args} />
29
- </Template>
30
-
31
28
  <Story name="Default" />
@@ -1,50 +1,19 @@
1
- export namespace meta {
2
- export let title: string;
3
- export let type: string;
4
- export { IconInfo as component };
5
- export namespace argTypes {
6
- namespace width {
7
- namespace control {
8
- let type_1: string;
9
- export { type_1 as type };
10
- }
11
- let min: number;
12
- let max: number;
13
- }
14
- namespace height {
15
- export namespace control_1 {
16
- let type_2: string;
17
- export { type_2 as type };
18
- }
19
- export { control_1 as control };
20
- let min_1: number;
21
- export { min_1 as min };
22
- let max_1: number;
23
- export { max_1 as max };
24
- }
25
- }
26
- }
27
- /** @typedef {typeof __propDef.props} IconInfoProps */
28
- /** @typedef {typeof __propDef.events} IconInfoEvents */
29
- /** @typedef {typeof __propDef.slots} IconInfoSlots */
30
- export default class IconInfo extends SvelteComponent<{
31
- [x: string]: never;
32
- }, {
33
- [evt: string]: CustomEvent<any>;
34
- }, {}> {
35
- }
36
- export type IconInfoProps = typeof __propDef.props;
37
- export type IconInfoEvents = typeof __propDef.events;
38
- export type IconInfoSlots = typeof __propDef.slots;
39
1
  import { IconInfo } from './index';
40
- import { SvelteComponent } from "svelte";
41
- declare const __propDef: {
42
- props: {
43
- [x: string]: never;
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
44
12
  };
45
- events: {
46
- [evt: string]: CustomEvent<any>;
47
- };
48
- slots: {};
49
- };
50
- export {};
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const IconInfo: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type IconInfo = InstanceType<typeof IconInfo>;
19
+ export default IconInfo;
@@ -1,5 +1,10 @@
1
- <script>export let width = "5rem";
2
- export let height = "5rem";
1
+ <script lang="ts">
2
+ interface Props {
3
+ width?: string;
4
+ height?: string;
5
+ }
6
+
7
+ let { width = '5rem', height = '5rem' }: Props = $props();
3
8
  </script>
4
9
 
5
10
  <svg
@@ -1,17 +1,7 @@
1
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- width?: string | undefined;
5
- height?: string | undefined;
6
- };
7
- events: {
8
- [evt: string]: CustomEvent<any>;
9
- };
10
- slots: {};
11
- };
12
- export type IconInfoProps = typeof __propDef.props;
13
- export type IconInfoEvents = typeof __propDef.events;
14
- export type IconInfoSlots = typeof __propDef.slots;
15
- export default class IconInfo extends SvelteComponent<IconInfoProps, IconInfoEvents, IconInfoSlots> {
1
+ interface Props {
2
+ width?: string;
3
+ height?: string;
16
4
  }
17
- export {};
5
+ declare const IconInfo: import("svelte").Component<Props, {}, "">;
6
+ type IconInfo = ReturnType<typeof IconInfo>;
7
+ export default IconInfo;
@@ -1,9 +1,9 @@
1
- <script context="module">
1
+ <script module lang="ts">
2
2
  import { IconIrocoLogo } from './index';
3
+ import {defineMeta,setTemplate} from '@storybook/addon-svelte-csf'
3
4
 
4
- export const meta = {
5
+ const {Story} = defineMeta({
5
6
  title: 'Iroco-UI/Iroco/IconIrocoLogo',
6
- type: 'Icons',
7
7
  component: IconIrocoLogo,
8
8
  argTypes: {
9
9
  width: {
@@ -20,15 +20,15 @@
20
20
  control: { type: 'color' }
21
21
  }
22
22
  }
23
- };
23
+ })
24
24
  </script>
25
25
 
26
- <script>
27
- import { Story, Template } from '@storybook/addon-svelte-csf';
26
+ <script lang="ts">
27
+ setTemplate(template);
28
28
  </script>
29
29
 
30
- <Template let:args>
30
+ {#snippet template({ ...args })}
31
31
  <IconIrocoLogo {...args} />
32
- </Template>
32
+ {/snippet}
33
33
 
34
34
  <Story name="Default" />