@iroco/ui 1.0.0-1 → 1.0.0-10

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 (71) hide show
  1. package/README.md +49 -1
  2. package/dist/Alert.stories.svelte +32 -0
  3. package/dist/Alert.stories.svelte.d.ts +37 -0
  4. package/dist/Alert.svelte +8 -52
  5. package/dist/Button.stories.svelte +5 -7
  6. package/dist/Button.stories.svelte.d.ts +6 -3
  7. package/dist/Button.svelte +18 -62
  8. package/dist/Button.svelte.d.ts +0 -4
  9. package/dist/DataTable.stories.svelte +31 -0
  10. package/dist/DataTable.stories.svelte.d.ts +29 -0
  11. package/dist/DataTable.svelte +3 -47
  12. package/dist/IconBurger.stories.svelte +30 -0
  13. package/dist/IconBurger.stories.svelte.d.ts +48 -0
  14. package/dist/IconClose.stories.svelte +30 -0
  15. package/dist/IconClose.stories.svelte.d.ts +48 -0
  16. package/dist/IconFloppyDisk.stories.svelte +33 -0
  17. package/dist/IconFloppyDisk.stories.svelte.d.ts +55 -0
  18. package/dist/IconInfo.stories.svelte +31 -0
  19. package/dist/IconInfo.stories.svelte.d.ts +50 -0
  20. package/dist/IconIrocoLogo.stories.svelte +34 -0
  21. package/dist/IconIrocoLogo.stories.svelte.d.ts +57 -0
  22. package/dist/IconIrocoLogo.svelte +14 -10
  23. package/dist/IconIrocoLogo.svelte.d.ts +2 -0
  24. package/dist/IconMoreSign.stories.svelte +31 -0
  25. package/dist/IconMoreSign.stories.svelte.d.ts +50 -0
  26. package/dist/IconTrashCan.stories.svelte +31 -0
  27. package/dist/IconTrashCan.stories.svelte.d.ts +50 -0
  28. package/dist/ImageArticle.stories.svelte +61 -0
  29. package/dist/ImageArticle.stories.svelte.d.ts +66 -0
  30. package/dist/ImageArticle.svelte +454 -0
  31. package/dist/ImageArticle.svelte.d.ts +23 -0
  32. package/dist/IrocoLogo.stories.svelte +31 -0
  33. package/dist/IrocoLogo.stories.svelte.d.ts +50 -0
  34. package/dist/IrocoLogo.svelte +3 -7
  35. package/dist/IrocoLogo.svelte.d.ts +2 -2
  36. package/dist/Loader.stories.svelte +19 -0
  37. package/dist/Loader.stories.svelte.d.ts +29 -0
  38. package/dist/NavBar.stories.svelte +37 -0
  39. package/dist/NavBar.stories.svelte.d.ts +37 -0
  40. package/dist/NavBar.svelte +27 -196
  41. package/dist/Navigation.stories.svelte +48 -0
  42. package/dist/Navigation.stories.svelte.d.ts +59 -0
  43. package/dist/Navigation.svelte +16 -87
  44. package/dist/Navigation.svelte.d.ts +1 -0
  45. package/dist/NumberInput.stories.svelte +47 -0
  46. package/dist/NumberInput.stories.svelte.d.ts +77 -0
  47. package/dist/NumberInput.svelte +11 -55
  48. package/dist/NumberInput.svelte.d.ts +4 -4
  49. package/dist/RadioButton.stories.svelte +39 -0
  50. package/dist/RadioButton.stories.svelte.d.ts +56 -0
  51. package/dist/RadioButton.svelte +5 -50
  52. package/dist/RadioButton.svelte.d.ts +0 -2
  53. package/dist/TextInput.stories.svelte +78 -0
  54. package/dist/TextInput.stories.svelte.d.ts +111 -0
  55. package/dist/TextInput.svelte +18 -61
  56. package/dist/TextInput.svelte.d.ts +8 -8
  57. package/dist/definition.d.ts +5 -0
  58. package/dist/definition.js +8 -0
  59. package/dist/scss/button.scss +25 -15
  60. package/dist/scss/colors.scss +68 -44
  61. package/dist/scss/fields/_checkbox.scss +3 -3
  62. package/dist/scss/fields/_input.scss +11 -15
  63. package/dist/scss/forms.scss +8 -8
  64. package/dist/scss/style.scss +1 -1
  65. package/package.json +6 -4
  66. package/dist/NumberInputSized.svelte +0 -4
  67. package/dist/NumberInputSized.svelte.d.ts +0 -14
  68. package/dist/TopBar.svelte +0 -0
  69. package/dist/TopBar.svelte.d.ts +0 -23
  70. package/dist/scss/check.scss +0 -47
  71. package/dist/scss/iroco.scss +0 -36
package/README.md CHANGED
@@ -1,11 +1,59 @@
1
1
  # iroco-ui
2
2
 
3
- [![Circle CI](https://circleci.com/gh/iroco-co/iroco-ui.png?circle-token=218e3654fb138427bb709b068ed847b58f8d4ac7&style=svg)](https://app.circleci.com/pipelines/github/iroco-co/iroco-ui)
3
+ [![CircleCI](https://dl.circleci.com/status-badge/img/gh/iroco-co/iroco-ui/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/iroco-co/iroco-ui/tree/main)
4
4
 
5
5
  Design system for Iroco [based on SvelteKit](https://kit.svelte.dev/docs/packaging).
6
6
 
7
7
  See the [Documentation](https://iroco-co.github.io/iroco-ui/) (not in sync anymore : to be restored with storybook)
8
8
 
9
+ # Install in your svelte application
10
+
11
+ Prerequisites:
12
+
13
+ - @sveltejs/kit: ^2.5.0
14
+ - svelte: ^4.2.10
15
+
16
+ ```sh
17
+ # latest
18
+ npm install @iroco/ui
19
+ # next
20
+ npm install @iroco/ui@next
21
+ ```
22
+
23
+ ## Minimal scaffolding
24
+
25
+ `src/app.scss`
26
+
27
+ ```scss
28
+ @use 'node_modules/@iroco/ui/dist/scss/fonts';
29
+ @use 'node_modules/@iroco/ui/dist/scss/style';
30
+ @use 'node_modules/@iroco/ui/dist/scss/constants';
31
+ @import 'node_modules/@iroco/ui/dist/scss/containers';
32
+ ```
33
+
34
+ Example of layout with navigation
35
+
36
+ `src/routes/+layout.svelte`
37
+
38
+ ```svelte
39
+ <script>
40
+ import '../app.scss';
41
+ import { Navigation, NavigationItem } from '@iroco/ui';
42
+ </script>
43
+
44
+ <Navigation navigationItems={[new NavigationItem('About', '/about')]} type="topbar" />
45
+ <main class="main">
46
+ <slot />
47
+ </main>
48
+
49
+ <style lang="scss">
50
+ @use 'node_modules/@iroco/ui/dist/scss/colors.scss';
51
+ @use 'node_modules/@iroco/ui/dist/scss/constants.scss';
52
+ @import 'node_modules/@iroco/ui/dist/scss/containers.scss';
53
+ @import 'node_modules/@iroco/ui/dist/scss/button.scss';
54
+ </style>
55
+ ```
56
+
9
57
  # develop
10
58
 
11
59
  To install dependencies :
@@ -0,0 +1,32 @@
1
+ <script context="module">
2
+ import Alert from './Alert.svelte';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Atoms/Alert',
6
+ component: Alert,
7
+ argTypes: {
8
+ type: {
9
+ control: { type: 'select' },
10
+ options: ['success', 'danger', 'flash']
11
+ }
12
+ }
13
+ };
14
+ </script>
15
+
16
+ <script>
17
+ import { Story, Template } from '@storybook/addon-svelte-csf';
18
+ </script>
19
+
20
+ <Template let:args>
21
+ <Alert {...args}>
22
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
23
+ labore et dolore magna aliqua. Ut porttitor leo a diam. Gravida dictum fusce ut placerat orci
24
+ nulla. Pulvinar sapien et ligula ullamcorper. Ultrices neque ornare aenean euismod. Facilisi
25
+ cras fermentum odio eu feugiat pretium.
26
+ </Alert>
27
+ </Template>
28
+
29
+ <Story name="Default" />
30
+ <Story name="Danger" args={{ type: 'danger' }} />
31
+ <Story name="Success" args={{ type: 'success' }} />
32
+ <Story name="Flash" args={{ type: 'flash' }} />
@@ -0,0 +1,37 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { Alert as component };
4
+ export namespace argTypes {
5
+ namespace type {
6
+ namespace control {
7
+ let type_1: string;
8
+ export { type_1 as type };
9
+ }
10
+ let options: string[];
11
+ }
12
+ }
13
+ }
14
+ /** @typedef {typeof __propDef.props} AlertProps */
15
+ /** @typedef {typeof __propDef.events} AlertEvents */
16
+ /** @typedef {typeof __propDef.slots} AlertSlots */
17
+ export default class Alert extends SvelteComponent<{
18
+ [x: string]: never;
19
+ }, {
20
+ [evt: string]: CustomEvent<any>;
21
+ }, {}> {
22
+ }
23
+ export type AlertProps = typeof __propDef.props;
24
+ export type AlertEvents = typeof __propDef.events;
25
+ export type AlertSlots = typeof __propDef.slots;
26
+ import Alert from './Alert.svelte';
27
+ import { SvelteComponent } from "svelte";
28
+ declare const __propDef: {
29
+ props: {
30
+ [x: string]: never;
31
+ };
32
+ events: {
33
+ [evt: string]: CustomEvent<any>;
34
+ };
35
+ slots: {};
36
+ };
37
+ export {};
package/dist/Alert.svelte CHANGED
@@ -10,51 +10,7 @@ export let callback;
10
10
  <slot />
11
11
  </div>
12
12
 
13
- <style>.font-color-blue {
14
- color: #00b9ff;
15
- }
16
-
17
- .font-color-darkBlue {
18
- color: #211d28;
19
- }
20
-
21
- .font-color-nightBlue {
22
- color: #18151e;
23
- }
24
-
25
- .font-color-green {
26
- color: #00d692;
27
- }
28
-
29
- .font-color-red {
30
- color: #ff504d;
31
- }
32
-
33
- .font-color-yellow {
34
- color: #ffe032;
35
- }
36
-
37
- .font-color-beige {
38
- color: #f2ebe3;
39
- }
40
-
41
- .font-color-darkBeige {
42
- color: #a9a29e;
43
- }
44
-
45
- .font-color-mediumGrey {
46
- color: #464452;
47
- }
48
-
49
- .font-color-darkGrey {
50
- color: #33323a;
51
- }
52
-
53
- .font-color-lightGrey {
54
- color: #f5f5f5;
55
- }
56
-
57
- .alert {
13
+ <style>.alert {
58
14
  flex-direction: column;
59
15
  position: relative;
60
16
  min-height: 2em;
@@ -67,16 +23,16 @@ export let callback;
67
23
  margin-bottom: 1em;
68
24
  }
69
25
  .alert--danger {
70
- background-color: rgba(255, 80, 77, 0.5);
71
- border: 1px solid #ff504d;
26
+ background-color: var(--color-danger-bg);
27
+ border: 1px solid var(--color-danger);
72
28
  }
73
29
  .alert--success {
74
- background-color: rgba(0, 214, 146, 0.5);
75
- border: 1px solid #00d692;
30
+ background-color: var(--color-success-bg);
31
+ border: 1px solid var(--color-success);
76
32
  }
77
33
  .alert--flash {
78
- background-color: rgba(255, 224, 50, 0.5);
79
- border: 1px solid #ffe032;
34
+ background-color: var(--color-warning-bg);
35
+ border: 1px solid var(--color-warning);
80
36
  }
81
37
  .alert__close {
82
38
  display: block;
@@ -86,5 +42,5 @@ export let callback;
86
42
  background-color: transparent;
87
43
  border: none;
88
44
  cursor: pointer;
89
- color: #f2ebe3;
45
+ color: var(--color-icon-primary);
90
46
  }</style>
@@ -2,7 +2,7 @@
2
2
  import Button from './Button.svelte';
3
3
 
4
4
  export const meta = {
5
- title: 'Button',
5
+ title: 'Iroco-UI/Atoms/Button',
6
6
  component: Button,
7
7
  argTypes: {
8
8
  kind: {
@@ -29,14 +29,12 @@
29
29
 
30
30
  <Template let:args>
31
31
  <!--👇 'on:click' allows to forward event to addon-actions -->
32
- <Button {...args} on:click on:click={handleClick}>
32
+ <Button {...args} on:click={handleClick}>
33
33
  You clicked: {count}
34
34
  </Button>
35
35
  </Template>
36
36
 
37
+ <Story name="Default" />
38
+ <Story name="Success" args={{ kind: 'success' }} />
37
39
  <Story name="Danger" args={{ kind: 'danger' }} />
38
-
39
- <!-- Dynamic snippet should be disabled for this story -->
40
- <Story name="Button No Args">
41
- <Button>Label</Button>
42
- </Story>
40
+ <Story name="Dark" args={{ kind: 'dark' }} />
@@ -22,10 +22,11 @@ export namespace meta {
22
22
  /** @typedef {typeof __propDef.props} ButtonProps */
23
23
  /** @typedef {typeof __propDef.events} ButtonEvents */
24
24
  /** @typedef {typeof __propDef.slots} ButtonSlots */
25
- export default class Button extends SvelteComponent<{}, {
25
+ export default class Button extends SvelteComponent<{
26
+ [x: string]: never;
27
+ }, {
26
28
  [evt: string]: CustomEvent<any>;
27
29
  }, {}> {
28
- constructor();
29
30
  }
30
31
  export type ButtonProps = typeof __propDef.props;
31
32
  export type ButtonEvents = typeof __propDef.events;
@@ -33,7 +34,9 @@ export type ButtonSlots = typeof __propDef.slots;
33
34
  import Button from './Button.svelte';
34
35
  import { SvelteComponent } from "svelte";
35
36
  declare const __propDef: {
36
- props: {};
37
+ props: {
38
+ [x: string]: never;
39
+ };
37
40
  events: {
38
41
  [evt: string]: CustomEvent<any>;
39
42
  };
@@ -5,7 +5,6 @@ export let disabled = false;
5
5
  export let kind = "basic";
6
6
  export let size = "regular";
7
7
  export let id;
8
- export let node;
9
8
  </script>
10
9
 
11
10
  <button
@@ -15,56 +14,11 @@ export let node;
15
14
  {type}
16
15
  {disabled}
17
16
  on:click
18
- bind:this={node}
19
17
  >
20
18
  <slot />
21
19
  </button>
22
20
 
23
- <style>.font-color-blue {
24
- color: #00b9ff;
25
- }
26
-
27
- .font-color-darkBlue {
28
- color: #211d28;
29
- }
30
-
31
- .font-color-nightBlue {
32
- color: #18151e;
33
- }
34
-
35
- .font-color-green {
36
- color: #00d692;
37
- }
38
-
39
- .font-color-red {
40
- color: #ff504d;
41
- }
42
-
43
- .font-color-yellow {
44
- color: #ffe032;
45
- }
46
-
47
- .font-color-beige {
48
- color: #f2ebe3;
49
- }
50
-
51
- .font-color-darkBeige {
52
- color: #a9a29e;
53
- }
54
-
55
- .font-color-mediumGrey {
56
- color: #464452;
57
- }
58
-
59
- .font-color-darkGrey {
60
- color: #33323a;
61
- }
62
-
63
- .font-color-lightGrey {
64
- color: #f5f5f5;
65
- }
66
-
67
- .container-wide {
21
+ <style>.container-wide {
68
22
  width: calc(100% - 20px);
69
23
  max-width: 2360px;
70
24
  margin-left: auto;
@@ -225,31 +179,31 @@ export let node;
225
179
  cursor: pointer;
226
180
  -webkit-touch-callout: none;
227
181
  -webkit-user-select: none;
228
- -khtml-user-select: none;
229
182
  -moz-user-select: none;
230
183
  -ms-user-select: none;
231
184
  user-select: none;
232
185
  border: none;
233
186
  flex-shrink: 0;
234
- margin: 1em 0em;
187
+ margin: 1em 0;
235
188
  position: relative;
236
189
  text-transform: uppercase;
237
190
  border-radius: 0.3em;
238
191
  }
239
192
  .iroco-ui-button--basic {
240
- background: #f2ebe3;
241
- border: 1px solid #18151e;
193
+ color: var(--btn-basic-label);
194
+ background: var(--btn-basic-bg);
195
+ border: 1px solid var(--btn-basic-border);
242
196
  }
243
197
  .iroco-ui-button--dark {
244
- background: #18151e;
245
- color: #f2ebe3;
198
+ background: var(--dark-btn-primary-bg);
199
+ color: var(--dark-btn-primary-label);
246
200
  }
247
201
  .iroco-ui-button--success {
248
- background: #00d692;
249
- color: #18151e;
202
+ background: var(--color-success);
203
+ color: var(--btn-secondary-label);
250
204
  }
251
205
  .iroco-ui-button--danger {
252
- background: #ff504d;
206
+ background: var(--color-danger);
253
207
  }
254
208
  .iroco-ui-button--regular {
255
209
  padding: 1em 2em;
@@ -258,19 +212,21 @@ export let node;
258
212
  padding: 0.5em 1em;
259
213
  }
260
214
  .iroco-ui-button--basic:hover, .iroco-ui-button--success:hover, .iroco-ui-button--danger:hover {
261
- box-shadow: inset 0 0 0 10em rgba(0, 0, 0, 0.2);
215
+ box-shadow: inset 0 0 0 10em var(--color-black-op-20);
262
216
  }
263
217
  .iroco-ui-button--dark:hover {
264
- box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.2);
218
+ box-shadow: inset 0 0 0 10em var(--color-white-op-20);
265
219
  }
266
220
  .iroco-ui-button:active {
267
221
  box-shadow: none;
268
222
  }
269
- .iroco-ui-button.disabled {
270
- background-color: #f5f5f5;
223
+ .iroco-ui-button.disabled, .iroco-ui-button:disabled {
224
+ background-color: var(--btn-disabled-bg);
225
+ color: var(--btn-disabled-label);
226
+ border-color: var(--btn-disabled-border);
271
227
  cursor: default;
272
228
  }
273
- .iroco-ui-button.disabled:hover {
229
+ .iroco-ui-button.disabled:hover, .iroco-ui-button:disabled:hover {
274
230
  box-shadow: none;
275
231
  }
276
232
 
@@ -278,6 +234,6 @@ export let node;
278
234
  background: none;
279
235
  border: none;
280
236
  font-family: "Arial";
281
- color: #f2ebe3;
237
+ color: var(--color-text);
282
238
  cursor: pointer;
283
239
  }</style>
@@ -6,7 +6,6 @@ declare const __propDef: {
6
6
  kind?: "success" | "danger" | "dark" | "basic" | undefined;
7
7
  size?: "small" | "regular" | undefined;
8
8
  id: string;
9
- node: HTMLElement;
10
9
  };
11
10
  events: {
12
11
  click: MouseEvent;
@@ -36,8 +35,5 @@ export default class Button extends SvelteComponent<ButtonProps, ButtonEvents, B
36
35
  get id(): string;
37
36
  /**accessor*/
38
37
  set id(_: string);
39
- get node(): HTMLElement;
40
- /**accessor*/
41
- set node(_: HTMLElement);
42
38
  }
43
39
  export {};
@@ -0,0 +1,31 @@
1
+ <script context="module">
2
+ import { DataTable } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Components/DataTable',
6
+ component: DataTable,
7
+ argTypes: {}
8
+ };
9
+ </script>
10
+
11
+ <script>
12
+ import { Story, Template } from '@storybook/addon-svelte-csf';
13
+ </script>
14
+
15
+ <Template let:args>
16
+ <DataTable
17
+ {...args}
18
+ columns={[
19
+ { key: 'key1', title: 'Title 1' },
20
+ { key: 'key2', title: 'Title 2' },
21
+ { key: 'key3', title: 'Title 3' }
22
+ ]}
23
+ rows={[
24
+ { key1: 'value 1', key2: 'value 2', key3: 'value 3' },
25
+ { key1: 'value a', key2: 'value b', key3: 'value c' },
26
+ { key1: 1.56, key2: 2.76, key3: 3.98 }
27
+ ]}
28
+ />
29
+ </Template>
30
+
31
+ <Story name="Default" />
@@ -0,0 +1,29 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { DataTable as component };
4
+ export let argTypes: {};
5
+ }
6
+ /** @typedef {typeof __propDef.props} DataTableProps */
7
+ /** @typedef {typeof __propDef.events} DataTableEvents */
8
+ /** @typedef {typeof __propDef.slots} DataTableSlots */
9
+ export default class DataTable extends SvelteComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}> {
14
+ }
15
+ export type DataTableProps = typeof __propDef.props;
16
+ export type DataTableEvents = typeof __propDef.events;
17
+ export type DataTableSlots = typeof __propDef.slots;
18
+ import { DataTable } from './index';
19
+ import { SvelteComponent } from "svelte";
20
+ declare const __propDef: {
21
+ props: {
22
+ [x: string]: never;
23
+ };
24
+ events: {
25
+ [evt: string]: CustomEvent<any>;
26
+ };
27
+ slots: {};
28
+ };
29
+ export {};
@@ -33,52 +33,8 @@ export let columns;
33
33
  </tbody>
34
34
  </table>
35
35
 
36
- <style>.font-color-blue {
37
- color: #00b9ff;
38
- }
39
-
40
- .font-color-darkBlue {
41
- color: #211d28;
42
- }
43
-
44
- .font-color-nightBlue {
45
- color: #18151e;
46
- }
47
-
48
- .font-color-green {
49
- color: #00d692;
50
- }
51
-
52
- .font-color-red {
53
- color: #ff504d;
54
- }
55
-
56
- .font-color-yellow {
57
- color: #ffe032;
58
- }
59
-
60
- .font-color-beige {
61
- color: #f2ebe3;
62
- }
63
-
64
- .font-color-darkBeige {
65
- color: #a9a29e;
66
- }
67
-
68
- .font-color-mediumGrey {
69
- color: #464452;
70
- }
71
-
72
- .font-color-darkGrey {
73
- color: #33323a;
74
- }
75
-
76
- .font-color-lightGrey {
77
- color: #f5f5f5;
78
- }
79
-
80
- .data-table {
81
- border: 1px solid #464452;
36
+ <style>.data-table {
37
+ border: 1px solid var(--color-border);
82
38
  width: 100%;
83
39
  }
84
40
  .data-table__header {
@@ -86,7 +42,7 @@ export let columns;
86
42
  height: 4rem;
87
43
  }
88
44
  .data-table__header__cell {
89
- border-bottom: 1px solid #464452;
45
+ border-bottom: 1px solid var(--color-border);
90
46
  }
91
47
  .data-table__body__cell {
92
48
  text-align: center;
@@ -0,0 +1,30 @@
1
+ <script context="module">
2
+ import IconBurger from './IconBurger.svelte';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Icons/IconBurger',
6
+ component: IconBurger,
7
+ argTypes: {
8
+ width: {
9
+ control: { type: 'range' },
10
+ min: 32,
11
+ max: 512
12
+ },
13
+ height: {
14
+ control: { type: 'range' },
15
+ min: 32,
16
+ max: 512
17
+ }
18
+ }
19
+ };
20
+ </script>
21
+
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
+ <Story name="Default" />
@@ -0,0 +1,48 @@
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
+ }
24
+ }
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
+ }, {
31
+ [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 {};
@@ -0,0 +1,30 @@
1
+ <script context="module">
2
+ import IconClose from './IconClose.svelte';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Icons/IconClose',
6
+ component: IconClose,
7
+ argTypes: {
8
+ width: {
9
+ control: { type: 'range' },
10
+ min: 32,
11
+ max: 512
12
+ },
13
+ height: {
14
+ control: { type: 'range' },
15
+ min: 32,
16
+ max: 512
17
+ }
18
+ }
19
+ };
20
+ </script>
21
+
22
+ <script>
23
+ import { Story, Template } from '@storybook/addon-svelte-csf';
24
+ </script>
25
+
26
+ <Template let:args>
27
+ <IconClose {...args} />
28
+ </Template>
29
+
30
+ <Story name="Default" />