@iroco/ui 1.0.0-0 → 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 -6
  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
@@ -0,0 +1,59 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { Navigation as component };
4
+ export namespace argTypes {
5
+ export namespace type {
6
+ namespace control {
7
+ let type_1: string;
8
+ export { type_1 as type };
9
+ }
10
+ let options: string[];
11
+ }
12
+ export namespace title_1 {
13
+ export namespace control_1 {
14
+ let type_2: string;
15
+ export { type_2 as type };
16
+ }
17
+ export { control_1 as control };
18
+ }
19
+ export { title_1 as title };
20
+ export namespace version {
21
+ export namespace control_2 {
22
+ let type_3: string;
23
+ export { type_3 as type };
24
+ }
25
+ export { control_2 as control };
26
+ }
27
+ export namespace color {
28
+ export namespace control_3 {
29
+ let type_4: string;
30
+ export { type_4 as type };
31
+ }
32
+ export { control_3 as control };
33
+ }
34
+ }
35
+ }
36
+ /** @typedef {typeof __propDef.props} NavigationProps */
37
+ /** @typedef {typeof __propDef.events} NavigationEvents */
38
+ /** @typedef {typeof __propDef.slots} NavigationSlots */
39
+ export default class Navigation extends SvelteComponent<{
40
+ [x: string]: never;
41
+ }, {
42
+ [evt: string]: CustomEvent<any>;
43
+ }, {}> {
44
+ }
45
+ export type NavigationProps = typeof __propDef.props;
46
+ export type NavigationEvents = typeof __propDef.events;
47
+ export type NavigationSlots = typeof __propDef.slots;
48
+ import Navigation from './Navigation.svelte';
49
+ import { SvelteComponent } from "svelte";
50
+ declare const __propDef: {
51
+ props: {
52
+ [x: string]: never;
53
+ };
54
+ events: {
55
+ [evt: string]: CustomEvent<any>;
56
+ };
57
+ slots: {};
58
+ };
59
+ export {};
@@ -3,6 +3,8 @@ import IconIrocoLogo from "./IconIrocoLogo.svelte";
3
3
  import IrocoLogo from "./IrocoLogo.svelte";
4
4
  import NavBar from "./NavBar.svelte";
5
5
  import { Color } from "./definition";
6
+ import { base } from "$app/paths";
7
+ export let href = `${base}/`;
6
8
  export let navigationItems;
7
9
  export let type = "topbar";
8
10
  export let title = null;
@@ -14,10 +16,10 @@ let showMenu = false;
14
16
  <div class="navigation--mobile">
15
17
  <div class="navigation--mobile__title-container">
16
18
  {#if title == null}
17
- <IrocoLogo width="10em" height="10em" />
19
+ <IrocoLogo {href} width="10em" height="10em" />
18
20
  {:else}
19
- <IconIrocoLogo width="3em" height="3em" {color} />
20
- <h1>{title}</h1>
21
+ <IconIrocoLogo {href} width="3em" height="3em" {color} />
22
+ <h1><a {href} class="navigation-mobile__title-link">{title}</a></h1>
21
23
  {/if}
22
24
  </div>
23
25
 
@@ -39,121 +41,67 @@ let showMenu = false;
39
41
  <div class="navigation">
40
42
  <div class="navigation__title-container">
41
43
  {#if title == null}
42
- <IrocoLogo width="10em" height="10em" />
44
+ <IrocoLogo {href} width="10em" height="10em" />
43
45
  {:else}
44
- <IconIrocoLogo width="3em" height="3em" />
45
- <h1>{title}</h1>
46
+ <IconIrocoLogo {href} width="3em" height="3em" />
47
+ <h1><a class="navigation__title-link" {href}>{title}</a></h1>
46
48
  {/if}
47
49
  </div>
48
50
  <NavBar {navigationItems} {type} {version} />
49
51
  </div>
50
52
 
51
- <style>.font-color-blue {
52
- color: #00b9ff;
53
- }
54
-
55
- .font-color-darkBlue {
56
- color: #211d28;
57
- }
58
-
59
- .font-color-nightBlue {
60
- color: #18151e;
61
- }
62
-
63
- .font-color-green {
64
- color: #00d692;
65
- }
66
-
67
- .font-color-red {
68
- color: #ff504d;
69
- }
70
-
71
- .font-color-yellow {
72
- color: #ffe032;
73
- }
74
-
75
- .font-color-beige {
76
- color: #f2ebe3;
77
- }
78
-
79
- .font-color-darkBeige {
80
- color: #a9a29e;
81
- }
82
-
83
- .font-color-mediumGrey {
84
- color: #464452;
85
- }
86
-
87
- .font-color-darkGrey {
88
- color: #33323a;
89
- }
90
-
91
- .font-color-lightGrey {
92
- color: #f5f5f5;
93
- }
94
-
95
- .container-wide {
53
+ <style>.container-wide {
96
54
  width: calc(100% - 20px);
97
55
  max-width: 2360px;
98
56
  margin-left: auto;
99
57
  margin-right: auto;
100
58
  transition: max-width ease-out 200ms;
101
59
  }
102
-
103
60
  @media all and (max-width: 2560px) {
104
61
  .container-wide {
105
62
  max-width: 1620px;
106
63
  }
107
64
  }
108
-
109
65
  @media all and (max-width: 1800px) {
110
66
  .container-wide {
111
67
  max-width: 1280px;
112
68
  }
113
69
  }
114
-
115
70
  @media all and (max-width: 1440px) {
116
71
  .container-wide {
117
72
  max-width: 884px;
118
73
  }
119
74
  }
120
-
121
75
  @media all and (max-width: 1024px) {
122
76
  .container-wide {
123
77
  max-width: 648px;
124
78
  }
125
79
  }
126
-
127
80
  @media all and (max-width: 768px) {
128
81
  .container-wide {
129
82
  max-width: 496px;
130
83
  }
131
84
  }
132
-
133
85
  @media all and (max-width: 596px) {
134
86
  .container-wide {
135
87
  max-width: 365px;
136
88
  }
137
89
  }
138
-
139
90
  @media all and (max-width: 425px) {
140
91
  .container-wide {
141
92
  max-width: calc(100% - 60px);
142
93
  }
143
94
  }
144
-
145
95
  @media all and (max-width: 375px) {
146
96
  .container-wide {
147
97
  max-width: calc(100% - 40px);
148
98
  }
149
99
  }
150
-
151
100
  @media all and (max-width: 320px) {
152
101
  .container-wide {
153
102
  max-width: calc(100% - 20px);
154
103
  }
155
104
  }
156
-
157
105
  .container-large {
158
106
  width: calc(100% - 20px);
159
107
  max-width: 1280px;
@@ -161,49 +109,41 @@ let showMenu = false;
161
109
  margin-right: auto;
162
110
  transition: max-width ease-out 200ms;
163
111
  }
164
-
165
112
  @media all and (max-width: 1440px) {
166
113
  .container-large {
167
114
  max-width: 884px;
168
115
  }
169
116
  }
170
-
171
117
  @media all and (max-width: 1024px) {
172
118
  .container-large {
173
119
  max-width: 648px;
174
120
  }
175
121
  }
176
-
177
122
  @media all and (max-width: 768px) {
178
123
  .container-large {
179
124
  max-width: 496px;
180
125
  }
181
126
  }
182
-
183
127
  @media all and (max-width: 596px) {
184
128
  .container-large {
185
129
  max-width: 365px;
186
130
  }
187
131
  }
188
-
189
132
  @media all and (max-width: 425px) {
190
133
  .container-large {
191
134
  max-width: calc(100% - 60px);
192
135
  }
193
136
  }
194
-
195
137
  @media all and (max-width: 375px) {
196
138
  .container-large {
197
139
  max-width: calc(100% - 40px);
198
140
  }
199
141
  }
200
-
201
142
  @media all and (max-width: 320px) {
202
143
  .container-large {
203
144
  max-width: calc(100% - 20px);
204
145
  }
205
146
  }
206
-
207
147
  .container-medium {
208
148
  width: calc(100% - 20px);
209
149
  max-width: 884px;
@@ -211,43 +151,36 @@ let showMenu = false;
211
151
  margin-right: auto;
212
152
  transition: max-width ease-out 200ms;
213
153
  }
214
-
215
154
  @media all and (max-width: 1024px) {
216
155
  .container-medium {
217
156
  max-width: 648px;
218
157
  }
219
158
  }
220
-
221
159
  @media all and (max-width: 768px) {
222
160
  .container-medium {
223
161
  max-width: 496px;
224
162
  }
225
163
  }
226
-
227
164
  @media all and (max-width: 596px) {
228
165
  .container-medium {
229
166
  max-width: 365px;
230
167
  }
231
168
  }
232
-
233
169
  @media all and (max-width: 425px) {
234
170
  .container-medium {
235
171
  max-width: calc(100% - 60px);
236
172
  }
237
173
  }
238
-
239
174
  @media all and (max-width: 375px) {
240
175
  .container-medium {
241
176
  max-width: calc(100% - 40px);
242
177
  }
243
178
  }
244
-
245
179
  @media all and (max-width: 320px) {
246
180
  .container-medium {
247
181
  max-width: calc(100% - 20px);
248
182
  }
249
183
  }
250
-
251
184
  .container-small {
252
185
  width: calc(100% - 20px);
253
186
  max-width: 496px;
@@ -255,25 +188,21 @@ let showMenu = false;
255
188
  margin-right: auto;
256
189
  transition: max-width ease-out 200ms;
257
190
  }
258
-
259
191
  @media all and (max-width: 425px) {
260
192
  .container-small {
261
193
  max-width: calc(100% - 60px);
262
194
  }
263
195
  }
264
-
265
196
  @media all and (max-width: 375px) {
266
197
  .container-small {
267
198
  max-width: calc(100% - 40px);
268
199
  }
269
200
  }
270
-
271
201
  @media all and (max-width: 320px) {
272
202
  .container-small {
273
203
  max-width: calc(100% - 20px);
274
204
  }
275
205
  }
276
-
277
206
  .navigation {
278
207
  display: flex;
279
208
  flex-direction: row;
@@ -281,25 +210,21 @@ let showMenu = false;
281
210
  align-items: center;
282
211
  width: 100%;
283
212
  }
284
-
285
213
  .navigation--mobile {
286
214
  display: none;
287
215
  }
288
-
289
216
  .navigation__title-container {
290
217
  display: flex;
291
218
  align-items: center;
292
219
  padding-left: 1em;
293
220
  }
294
-
295
221
  .navigation__title-container h1 {
296
222
  padding-left: 1em;
297
223
  }
298
-
299
224
  @media all and (max-width: 768px) {
300
225
  .navigation {
301
226
  display: none;
302
- color: #f2ebe3;
227
+ color: var(--color-text);
303
228
  }
304
229
  .navigation--mobile {
305
230
  display: flex;
@@ -309,7 +234,7 @@ let showMenu = false;
309
234
  top: 0;
310
235
  z-index: 1;
311
236
  width: 100%;
312
- border-bottom: 1px solid #464452;
237
+ border-bottom: 1px solid var(--color-border);
313
238
  }
314
239
  .navigation--mobile h1 {
315
240
  font-size: 2em;
@@ -317,7 +242,7 @@ let showMenu = false;
317
242
  .navigation--mobile__button {
318
243
  background-color: transparent;
319
244
  border: none;
320
- color: #464452;
245
+ color: var(--color-icon-primary);
321
246
  }
322
247
  .navigation--mobile__title-container {
323
248
  display: flex;
@@ -326,4 +251,8 @@ let showMenu = false;
326
251
  .navigation--mobile__title-container h1 {
327
252
  padding-left: 0.5em;
328
253
  }
254
+ }
255
+ .navigation__title-link,
256
+ .navigation-mobile__title-link {
257
+ color: var(--color-text-light);
329
258
  }</style>
@@ -3,6 +3,7 @@ import type { NavigationItem } from './definition';
3
3
  import { Color } from './definition';
4
4
  declare const __propDef: {
5
5
  props: {
6
+ href?: string | undefined;
6
7
  navigationItems: Array<NavigationItem>;
7
8
  type?: "sidebar" | "topbar" | undefined;
8
9
  title?: string | null | undefined;
@@ -0,0 +1,47 @@
1
+ <script context="module">
2
+ import { NumberInput } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Form/NumberInput',
6
+ component: NumberInput,
7
+ argTypes: {
8
+ id: {
9
+ control: { type: 'text' }
10
+ },
11
+ label: {
12
+ control: { type: 'text' }
13
+ },
14
+ placeholder: {
15
+ control: { type: 'text' }
16
+ },
17
+ error: {
18
+ control: { type: 'text' }
19
+ },
20
+ value: {
21
+ control: { type: 'number' }
22
+ },
23
+ min: {
24
+ control: { type: 'number' }
25
+ },
26
+ max: {
27
+ control: { type: 'number' }
28
+ }
29
+ }
30
+ };
31
+ </script>
32
+
33
+ <script>
34
+ import { Story, Template } from '@storybook/addon-svelte-csf';
35
+ </script>
36
+
37
+ <Template let:args>
38
+ <form class="iroco-ui-form">
39
+ <NumberInput {...args} />
40
+ </form>
41
+ </Template>
42
+
43
+ <Story name="Default" />
44
+ <Story name="Label" args={{ label: 'Label' }} />
45
+ <Story name="Error" args={{ error: 'An error message' }} />
46
+ <Story name="Placeholder" args={{ placeholder: 'A placeholder' }} />
47
+ <Story name="Min / Max" args={{ min: 0, max: 10, value: 5 }} />
@@ -0,0 +1,77 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { NumberInput as component };
4
+ export namespace argTypes {
5
+ namespace id {
6
+ namespace control {
7
+ let type: string;
8
+ }
9
+ }
10
+ namespace label {
11
+ export namespace control_1 {
12
+ let type_1: string;
13
+ export { type_1 as type };
14
+ }
15
+ export { control_1 as control };
16
+ }
17
+ namespace placeholder {
18
+ export namespace control_2 {
19
+ let type_2: string;
20
+ export { type_2 as type };
21
+ }
22
+ export { control_2 as control };
23
+ }
24
+ namespace error {
25
+ export namespace control_3 {
26
+ let type_3: string;
27
+ export { type_3 as type };
28
+ }
29
+ export { control_3 as control };
30
+ }
31
+ namespace value {
32
+ export namespace control_4 {
33
+ let type_4: string;
34
+ export { type_4 as type };
35
+ }
36
+ export { control_4 as control };
37
+ }
38
+ namespace min {
39
+ export namespace control_5 {
40
+ let type_5: string;
41
+ export { type_5 as type };
42
+ }
43
+ export { control_5 as control };
44
+ }
45
+ namespace max {
46
+ export namespace control_6 {
47
+ let type_6: string;
48
+ export { type_6 as type };
49
+ }
50
+ export { control_6 as control };
51
+ }
52
+ }
53
+ }
54
+ /** @typedef {typeof __propDef.props} NumberInputProps */
55
+ /** @typedef {typeof __propDef.events} NumberInputEvents */
56
+ /** @typedef {typeof __propDef.slots} NumberInputSlots */
57
+ export default class NumberInput extends SvelteComponent<{
58
+ [x: string]: never;
59
+ }, {
60
+ [evt: string]: CustomEvent<any>;
61
+ }, {}> {
62
+ }
63
+ export type NumberInputProps = typeof __propDef.props;
64
+ export type NumberInputEvents = typeof __propDef.events;
65
+ export type NumberInputSlots = typeof __propDef.slots;
66
+ import { NumberInput } from './index';
67
+ import { SvelteComponent } from "svelte";
68
+ declare const __propDef: {
69
+ props: {
70
+ [x: string]: never;
71
+ };
72
+ events: {
73
+ [evt: string]: CustomEvent<any>;
74
+ };
75
+ slots: {};
76
+ };
77
+ export {};
@@ -1,8 +1,8 @@
1
1
  <script>export let id;
2
2
  export let label;
3
- export let placeholder;
4
- export let error = null;
5
- export let value = null;
3
+ export let placeholder = "";
4
+ export let error = void 0;
5
+ export let value = void 0;
6
6
  export let min;
7
7
  export let max;
8
8
  </script>
@@ -17,51 +17,7 @@ export let max;
17
17
  {/if}
18
18
  </div>
19
19
 
20
- <style>.font-color-blue {
21
- color: #00b9ff;
22
- }
23
-
24
- .font-color-darkBlue {
25
- color: #211d28;
26
- }
27
-
28
- .font-color-nightBlue {
29
- color: #18151e;
30
- }
31
-
32
- .font-color-green {
33
- color: #00d692;
34
- }
35
-
36
- .font-color-red {
37
- color: #ff504d;
38
- }
39
-
40
- .font-color-yellow {
41
- color: #ffe032;
42
- }
43
-
44
- .font-color-beige {
45
- color: #f2ebe3;
46
- }
47
-
48
- .font-color-darkBeige {
49
- color: #a9a29e;
50
- }
51
-
52
- .font-color-mediumGrey {
53
- color: #464452;
54
- }
55
-
56
- .font-color-darkGrey {
57
- color: #33323a;
58
- }
59
-
60
- .font-color-lightGrey {
61
- color: #f5f5f5;
62
- }
63
-
64
- .iroco-ui-form input,
20
+ <style>.iroco-ui-form input,
65
21
  .iroco-ui-form textarea {
66
22
  outline: none;
67
23
  text-decoration: none;
@@ -72,9 +28,9 @@ export let max;
72
28
  flex-direction: column;
73
29
  }
74
30
  .iroco-ui-form .iroco-ui-input > input {
75
- color: #f2ebe3;
76
- background: #211d28;
77
- border: 1px solid #211d28;
31
+ color: var(--color-text);
32
+ background: var(--color-body);
33
+ border: 1px solid var(--color-border);
78
34
  padding: 1em 1.5em;
79
35
  text-overflow: ellipsis;
80
36
  white-space: nowrap;
@@ -82,16 +38,16 @@ export let max;
82
38
  border-radius: 0.5em;
83
39
  }
84
40
  .iroco-ui-form .iroco-ui-input > input::placeholder {
85
- color: rgba(242, 235, 227, 0.5);
41
+ color: var(--color-text-op-50);
86
42
  }
87
43
  .iroco-ui-form .iroco-ui-input > input.error {
88
- border-color: #ff504d;
44
+ border-color: var(--color-danger);
89
45
  }
90
46
  .iroco-ui-form .iroco-ui-input > input.readonlyInput {
91
47
  cursor: not-allowed;
92
48
  }
93
49
  .iroco-ui-form .iroco-ui-label {
94
- color: rgba(242, 235, 227, 0.6);
50
+ color: var(--color-text-op-60);
95
51
  font-weight: bold;
96
52
  padding-bottom: 10px;
97
53
  display: inline-block;
@@ -107,5 +63,5 @@ export let max;
107
63
  }
108
64
  .iroco-ui-form p.error {
109
65
  margin: 0;
110
- color: #ff504d;
66
+ color: var(--color-danger);
111
67
  }</style>
@@ -3,10 +3,10 @@ declare const __propDef: {
3
3
  props: {
4
4
  [x: string]: any;
5
5
  id: string;
6
- label: string | '';
7
- placeholder: string | '';
8
- error?: string | null | undefined;
9
- value?: number | null | undefined;
6
+ label: string | '' | undefined;
7
+ placeholder?: string | '' | undefined;
8
+ error?: string | undefined;
9
+ value?: number | undefined;
10
10
  min: number | undefined;
11
11
  max: number | undefined;
12
12
  };
@@ -0,0 +1,39 @@
1
+ <script context="module">
2
+ import { RadioButton } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Form/RadioButton',
6
+ component: RadioButton,
7
+ argTypes: {
8
+ value: {
9
+ control: { type: 'string' }
10
+ },
11
+ group: {
12
+ control: { type: 'string' }
13
+ },
14
+ name: {
15
+ control: { type: 'string' }
16
+ },
17
+ checked: {
18
+ control: { type: 'boolean' }
19
+ }
20
+ }
21
+ };
22
+ </script>
23
+
24
+ <script>
25
+ import { Story, Template } from '@storybook/addon-svelte-csf';
26
+
27
+ let group = 'bar';
28
+ </script>
29
+
30
+ <Template let:args>
31
+ <form class="iroco-ui-form">
32
+ <RadioButton bind:group name="name-hello" value="hello" {...args}>Hello</RadioButton>
33
+ <RadioButton bind:group name="name-foo" value="foo">Foo</RadioButton>
34
+ <RadioButton bind:group name="name-bar" value="bar">Bar</RadioButton>
35
+ </form>
36
+ Selected group : {group}
37
+ </Template>
38
+
39
+ <Story name="Default" />