@awenovations/aura 0.0.1

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 (82) hide show
  1. package/README.md +13 -0
  2. package/dist/alert/alert.stories.svelte +27 -0
  3. package/dist/alert/alert.stories.svelte.d.ts +28 -0
  4. package/dist/alert/alert.svelte +65 -0
  5. package/dist/alert/alert.svelte.d.ts +23 -0
  6. package/dist/alert/props.d.ts +2 -0
  7. package/dist/alert/props.js +1 -0
  8. package/dist/button/button.stories.svelte +456 -0
  9. package/dist/button/button.stories.svelte.d.ts +39 -0
  10. package/dist/button/button.svelte +143 -0
  11. package/dist/button/button.svelte.d.ts +29 -0
  12. package/dist/button/props.d.ts +6 -0
  13. package/dist/button/props.js +3 -0
  14. package/dist/container/container.stories.svelte +52 -0
  15. package/dist/container/container.stories.svelte.d.ts +32 -0
  16. package/dist/container/container.svelte +35 -0
  17. package/dist/container/container.svelte.d.ts +23 -0
  18. package/dist/container/props.d.ts +4 -0
  19. package/dist/container/props.js +2 -0
  20. package/dist/directives/click-outside.d.ts +6 -0
  21. package/dist/directives/click-outside.js +24 -0
  22. package/dist/dropdown/dropdown.stories.svelte +56 -0
  23. package/dist/dropdown/dropdown.stories.svelte.d.ts +23 -0
  24. package/dist/dropdown/dropdown.svelte +171 -0
  25. package/dist/dropdown/dropdown.svelte.d.ts +28 -0
  26. package/dist/error-state/error-state.stories.svelte +18 -0
  27. package/dist/error-state/error-state.stories.svelte.d.ts +23 -0
  28. package/dist/error-state/error-state.svelte +33 -0
  29. package/dist/error-state/error-state.svelte.d.ts +18 -0
  30. package/dist/float/float.svelte +34 -0
  31. package/dist/float/float.svelte.d.ts +22 -0
  32. package/dist/form-item/form-item.svelte +42 -0
  33. package/dist/form-item/form-item.svelte.d.ts +24 -0
  34. package/dist/icon/icon.stories.d.ts +25 -0
  35. package/dist/icon/icon.stories.js +49 -0
  36. package/dist/icon/icon.svelte +67 -0
  37. package/dist/icon/icon.svelte.d.ts +22 -0
  38. package/dist/icon/props.d.ts +2 -0
  39. package/dist/icon/props.js +1 -0
  40. package/dist/icons/arrow-circle-left-large.svg +10 -0
  41. package/dist/icons/arrow-circle-left-medium.svg +3 -0
  42. package/dist/icons/arrow-circle-left-small.svg +10 -0
  43. package/dist/icons/bug-large.svg +3 -0
  44. package/dist/icons/bug-medium.svg +3 -0
  45. package/dist/icons/bug-small.svg +3 -0
  46. package/dist/icons/caret-down-large.svg +0 -0
  47. package/dist/icons/caret-down-medium.svg +3 -0
  48. package/dist/icons/caret-down-small.svg +3 -0
  49. package/dist/icons/microsoft-color-large.svg +6 -0
  50. package/dist/icons/microsoft-color-medium.svg +6 -0
  51. package/dist/icons/microsoft-color-small.svg +6 -0
  52. package/dist/icons/user-story-large.svg +8 -0
  53. package/dist/icons/user-story-medium.svg +8 -0
  54. package/dist/icons/user-story-small.svg +8 -0
  55. package/dist/index.d.ts +2 -0
  56. package/dist/index.js +3 -0
  57. package/dist/input/input.stories.svelte +28 -0
  58. package/dist/input/input.stories.svelte.d.ts +23 -0
  59. package/dist/input/input.svelte +112 -0
  60. package/dist/input/input.svelte.d.ts +108 -0
  61. package/dist/progress/progress-ring.stories.svelte +27 -0
  62. package/dist/progress/progress-ring.stories.svelte.d.ts +28 -0
  63. package/dist/progress/progress-ring.svelte +78 -0
  64. package/dist/progress/progress-ring.svelte.d.ts +19 -0
  65. package/dist/progress/props.d.ts +2 -0
  66. package/dist/progress/props.js +1 -0
  67. package/dist/skeleton/skeleton.stories.svelte +22 -0
  68. package/dist/skeleton/skeleton.stories.svelte.d.ts +30 -0
  69. package/dist/skeleton/skeleton.svelte +23 -0
  70. package/dist/skeleton/skeleton.svelte.d.ts +19 -0
  71. package/dist/svgs/error-state-dark.svg +26 -0
  72. package/dist/svgs/error-state-light.svg +26 -0
  73. package/dist/svgs/zero-state-dark.svg +9 -0
  74. package/dist/svgs/zero-state-light.svg +9 -0
  75. package/dist/tokens/_variables.css +422 -0
  76. package/dist/utilities/wait-for-elm.d.ts +1 -0
  77. package/dist/utilities/wait-for-elm.js +17 -0
  78. package/dist/zero-state/zero-state.stories.svelte +18 -0
  79. package/dist/zero-state/zero-state.stories.svelte.d.ts +23 -0
  80. package/dist/zero-state/zero-state.svelte +34 -0
  81. package/dist/zero-state/zero-state.svelte.d.ts +18 -0
  82. package/package.json +97 -0
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # Aura Design System
2
+
3
+ This is the aura design system, it based on tokens exported from this figma file: https://www.figma.com/design/rm5Wj9BOHd6qPaZfgspeBy/Aura-Design-System?node-id=0-1&t=pLCSXoRBcVVurliQ-0
4
+
5
+ ### Storybook
6
+
7
+ You can view the storybook on github pages here: https://awenovations.github.io/aura/
8
+
9
+ You can view the components in the design system by opening storybook:
10
+
11
+ ```bash
12
+ $ npm i && npm run storybook
13
+ ```
@@ -0,0 +1,27 @@
1
+ <script context="module">import "../../app.scss";
2
+ import Alert from "./alert.svelte";
3
+ import { alertSeverity } from "./props.ts";
4
+ export const meta = {
5
+ title: "AURA/Alert",
6
+ component: Alert,
7
+ tags: ["autodocs"],
8
+ argTypes: {
9
+ severity: { control: "select", options: alertSeverity }
10
+ }
11
+ };
12
+ </script>
13
+
14
+ <script>import { Story, Template } from "@storybook/addon-svelte-csf";
15
+ </script>
16
+
17
+ <Template let:args>
18
+ <Alert {...args}
19
+ >{args.severity ? args.severity[0].toUpperCase() + args.severity.substring(1) : 'Default'} alert</Alert
20
+ >
21
+ </Template>
22
+
23
+ <Story name="Default" />
24
+ <Story name="Success" args={{ severity: 'success' }} />
25
+ <Story name="Informational" args={{ severity: 'informational' }} />
26
+ <Story name="Error" args={{ severity: 'error' }} />
27
+ <Story name="Warning" args={{ severity: 'warning' }} />
@@ -0,0 +1,28 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import '../../app.scss';
3
+ export declare const meta: {
4
+ title: string;
5
+ component: typeof Alert;
6
+ tags: string[];
7
+ argTypes: {
8
+ severity: {
9
+ control: string;
10
+ options: readonly ["informational", "success", "error", "warning"];
11
+ };
12
+ };
13
+ };
14
+ declare const __propDef: {
15
+ props: Record<string, never>;
16
+ events: {
17
+ [evt: string]: CustomEvent<any>;
18
+ };
19
+ slots: {};
20
+ exports?: {} | undefined;
21
+ bindings?: string | undefined;
22
+ };
23
+ export type AlertProps = typeof __propDef.props;
24
+ export type AlertEvents = typeof __propDef.events;
25
+ export type AlertSlots = typeof __propDef.slots;
26
+ export default class Alert extends SvelteComponent<AlertProps, AlertEvents, AlertSlots> {
27
+ }
28
+ export {};
@@ -0,0 +1,65 @@
1
+ <script>export let severity = "informational";
2
+ export let hide = false;
3
+ let hideAlert = false;
4
+ $: {
5
+ if (hide) {
6
+ setTimeout(() => {
7
+ hideAlert = true;
8
+ }, 300);
9
+ } else {
10
+ hideAlert = false;
11
+ }
12
+ }
13
+ </script>
14
+
15
+ <div
16
+ {...$$restProps}
17
+ class:isSuccess={severity === 'success'}
18
+ class:isInformational={severity === 'informatioanl'}
19
+ class:isWarning={severity === 'warning'}
20
+ class:isError={severity === 'error'}
21
+ style:--opacity={hide ? 0 : 1}
22
+ class:hideAlert
23
+ class={`aura-alert ${$$restProps.class ?? ''}`}
24
+ >
25
+ <slot />
26
+ </div>
27
+
28
+ <style>.aura-alert {
29
+ transition: opacity 0.3s ease-out;
30
+ opacity: var(--opacity);
31
+ border: 1px solid var(--border-color);
32
+ box-shadow: var(--drop-shadow);
33
+ font: var(--aura-default-semibold);
34
+ color: var(--font-color);
35
+ background: var(--bg);
36
+ padding: var(--aura-alert-padding-vertical) var(--aura-alert-padding-horizontal);
37
+ border-radius: var(--aura-alert-border-radius);
38
+ }
39
+ .aura-alert, .aura-alert.isInformational {
40
+ --border-color: var(--aura-informational-30);
41
+ --drop-shadow: var(--aura-alert-drop-shadow);
42
+ --bg: var(--aura-informational-20);
43
+ --font-color: var(--aura-informational-50);
44
+ }
45
+ .aura-alert.isSuccess {
46
+ --border-color: var(--aura-success-30);
47
+ --drop-shadow: var(--aura-alert-drop-shadow);
48
+ --bg: var(--aura-success-20);
49
+ --font-color: var(--aura-success-50);
50
+ }
51
+ .aura-alert.isError {
52
+ --border-color: var(--aura-error-30);
53
+ --drop-shadow: var(--aura-alert-drop-shadow);
54
+ --bg: var(--aura-error-10);
55
+ --font-color: var(--aura-error-50);
56
+ }
57
+ .aura-alert.isWarning {
58
+ --border-color: var(--aura-warning-30);
59
+ --drop-shadow: var(--aura-alert-drop-shadow);
60
+ --bg: var(--aura-warning-10);
61
+ --font-color: var(--aura-warning-50);
62
+ }
63
+ .aura-alert.hideAlert {
64
+ display: none;
65
+ }</style>
@@ -0,0 +1,23 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import type * as Props from './props';
3
+ declare const __propDef: {
4
+ props: {
5
+ [x: string]: any;
6
+ severity?: Props.AlertSeverity;
7
+ hide?: boolean;
8
+ };
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {
13
+ default: {};
14
+ };
15
+ exports?: undefined;
16
+ bindings?: undefined;
17
+ };
18
+ export type AlertProps = typeof __propDef.props;
19
+ export type AlertEvents = typeof __propDef.events;
20
+ export type AlertSlots = typeof __propDef.slots;
21
+ export default class Alert extends SvelteComponent<AlertProps, AlertEvents, AlertSlots> {
22
+ }
23
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const alertSeverity: readonly ["informational", "success", "error", "warning"];
2
+ export type AlertSeverity = (typeof alertSeverity)[number];
@@ -0,0 +1 @@
1
+ export const alertSeverity = ['informational', 'success', 'error', 'warning'];
@@ -0,0 +1,456 @@
1
+ <script context="module">import "../../app.scss";
2
+ import Button from "./button.svelte";
3
+ import Icon from "../icon/icon.svelte";
4
+ import { buttonKinds, buttonVariants, buttonSizes } from "./props.ts";
5
+ export const meta = {
6
+ title: "AURA/Button",
7
+ component: Button,
8
+ tags: ["autodocs"],
9
+ argTypes: {
10
+ kind: { control: "select", options: buttonKinds },
11
+ variant: { control: "select", options: buttonVariants },
12
+ size: { control: "select", options: buttonSizes },
13
+ loading: { control: "boolean" }
14
+ }
15
+ };
16
+ </script>
17
+
18
+ <script>import { Story, Template } from "@storybook/addon-svelte-csf";
19
+ </script>
20
+
21
+ <Template let:args>
22
+ <Button {...args} />
23
+ </Template>
24
+
25
+ <Story name="All">
26
+ <div style="display: flex; flex-direction: column; gap: 20px">
27
+ <div style="display: flex; gap: 10px;">
28
+ <Button variant="primary"></Button>
29
+ <Button variant="primary"><Icon name="arrow-circle-left" slot="icon-before" /></Button>
30
+ <Button variant="primary" kind="outlined"></Button>
31
+ <Button variant="primary" kind="outlined"
32
+ ><Icon name="arrow-circle-left" slot="icon-before" /></Button
33
+ >
34
+ </div>
35
+ <div style="display: flex; gap: 10px;">
36
+ <Button size="small" variant="primary"></Button>
37
+ <Button size="small" variant="primary"
38
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" /></Button
39
+ >
40
+ <Button size="small" variant="primary" kind="outlined"></Button>
41
+ <Button size="small" variant="primary" kind="outlined"
42
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" /></Button
43
+ >
44
+ </div>
45
+
46
+ <div style="display: flex; gap: 10px;">
47
+ <Button variant="secondary"></Button>
48
+ <Button variant="secondary"><Icon name="arrow-circle-left" slot="icon-before" /></Button>
49
+ <Button variant="secondary" kind="outlined"></Button>
50
+ <Button variant="secondary" kind="outlined"
51
+ ><Icon name="arrow-circle-left" slot="icon-before" /></Button
52
+ >
53
+ </div>
54
+ <div style="display: flex; gap: 10px;">
55
+ <Button size="small" variant="secondary"></Button>
56
+ <Button size="small" variant="secondary"
57
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" /></Button
58
+ >
59
+ <Button size="small" variant="secondary" kind="outlined"></Button>
60
+ <Button size="small" variant="secondary" kind="outlined"
61
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" /></Button
62
+ >
63
+ </div>
64
+
65
+ <div style="display: flex; gap: 10px;">
66
+ <Button variant="tertiary"></Button>
67
+ <Button variant="tertiary"><Icon name="arrow-circle-left" slot="icon-before" /></Button>
68
+ <Button variant="tertiary" kind="outlined"></Button>
69
+ <Button variant="tertiary" kind="outlined"
70
+ ><Icon name="arrow-circle-left" slot="icon-before" /></Button
71
+ >
72
+ </div>
73
+ <div style="display: flex; gap: 10px;">
74
+ <Button size="small" variant="tertiary"></Button>
75
+ <Button size="small" variant="tertiary"
76
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" /></Button
77
+ >
78
+ <Button size="small" variant="tertiary" kind="outlined"></Button>
79
+ <Button size="small" variant="tertiary" kind="outlined"
80
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" /></Button
81
+ >
82
+ </div>
83
+ </div>
84
+ </Story>
85
+
86
+ <Story name="Full Width">
87
+ <div style="display: flex; flex-direction: column; gap: 10px; width: 300px;">
88
+ <Button fullWidth />
89
+ <Button fullWidth variant="secondary" />
90
+ <Button fullWidth variant="tertiary" />
91
+ <Button fullWidth kind="outlined" />
92
+ <Button fullWidth kind="outlined" variant="secondary" />
93
+ <Button fullWidth kind="outlined" variant="tertiary" />
94
+ </div>
95
+ </Story>
96
+
97
+ <Story
98
+ name="Pimary Filled"
99
+ args={{
100
+ kind: 'filled',
101
+ variant: 'primary',
102
+ size: 'default'
103
+ }}
104
+ />
105
+
106
+ <Story name="Primary Filled Icon">
107
+ <Button
108
+ {...{
109
+ kind: 'filled',
110
+ variant: 'primary',
111
+ size: 'default'
112
+ }}
113
+ ><Icon name="arrow-circle-left" slot="icon-before" />
114
+ </Button>
115
+ </Story>
116
+
117
+ <Story name="Primary Filled Loading">
118
+ <Button
119
+ {...{
120
+ kind: 'filled',
121
+ variant: 'primary',
122
+ size: 'default',
123
+ loading: 'true'
124
+ }}
125
+ />
126
+ </Story>
127
+
128
+ <Story
129
+ name="Primary Filled Small"
130
+ args={{
131
+ kind: 'filled',
132
+ variant: 'primary',
133
+ size: 'small'
134
+ }}
135
+ />
136
+
137
+ <Story name="Primary Filled Small Icon">
138
+ <Button
139
+ {...{
140
+ kind: 'filled',
141
+ variant: 'primary',
142
+ size: 'small'
143
+ }}
144
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" />
145
+ </Button>
146
+ </Story>
147
+
148
+ <Story name="Primary Filled Small Loading">
149
+ <Button
150
+ {...{
151
+ kind: 'filled',
152
+ variant: 'primary',
153
+ size: 'small',
154
+ loading: 'true'
155
+ }}
156
+ />
157
+ </Story>
158
+
159
+ <Story
160
+ name="Primary Outlined"
161
+ args={{
162
+ kind: 'outlined',
163
+ variant: 'primary',
164
+ size: 'default'
165
+ }}
166
+ />
167
+
168
+ <Story name="Primary Outlined Icon">
169
+ <Button
170
+ {...{
171
+ kind: 'outlined',
172
+ variant: 'primary',
173
+ size: 'default'
174
+ }}
175
+ ><Icon name="arrow-circle-left" slot="icon-before" />
176
+ </Button>
177
+ </Story>
178
+
179
+ <Story name="Primary Outlined Loading Icon">
180
+ <Button
181
+ {...{
182
+ kind: 'outlined',
183
+ variant: 'primary',
184
+ size: 'default',
185
+ loading: 'true'
186
+ }}
187
+ />
188
+ </Story>
189
+
190
+ <Story
191
+ name="Primary Outlined Small"
192
+ args={{
193
+ kind: 'outlined',
194
+ variant: 'primary',
195
+ size: 'small'
196
+ }}
197
+ />
198
+
199
+ <Story name="Primary Outlined Small Icon">
200
+ <Button
201
+ {...{
202
+ kind: 'outlined',
203
+ variant: 'primary',
204
+ size: 'small'
205
+ }}
206
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" />
207
+ </Button>
208
+ </Story>
209
+
210
+ <Story name="Primary Outlined Small Loading">
211
+ <Button
212
+ {...{
213
+ kind: 'outlined',
214
+ variant: 'primary',
215
+ size: 'small',
216
+ loading: true
217
+ }}
218
+ />
219
+ </Story>
220
+
221
+ <Story
222
+ name="Secondary Filled"
223
+ args={{
224
+ kind: 'filled',
225
+ variant: 'secondary',
226
+ size: 'default'
227
+ }}
228
+ />
229
+
230
+ <Story name="Secondary Filled Icon">
231
+ <Button
232
+ {...{
233
+ kind: 'filled',
234
+ variant: 'secondary',
235
+ size: 'default'
236
+ }}
237
+ ><Icon name="arrow-circle-left" slot="icon-before" />
238
+ </Button>
239
+ </Story>
240
+
241
+ <Story name="Secondary Filled Loading">
242
+ <Button
243
+ {...{
244
+ kind: 'filled',
245
+ variant: 'secondary',
246
+ size: 'default',
247
+ loading: true
248
+ }}
249
+ />
250
+ </Story>
251
+
252
+ <Story
253
+ name="Secondary Filled Small"
254
+ args={{
255
+ kind: 'filled',
256
+ variant: 'secondary',
257
+ size: 'small'
258
+ }}
259
+ />
260
+
261
+ <Story name="Secondary Filled Small Icon">
262
+ <Button
263
+ {...{
264
+ kind: 'filled',
265
+ variant: 'secondary',
266
+ size: 'small'
267
+ }}
268
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" />
269
+ </Button>
270
+ </Story>
271
+
272
+ <Story name="Secondary Filled Small Loading">
273
+ <Button
274
+ {...{
275
+ kind: 'filled',
276
+ variant: 'secondary',
277
+ size: 'small',
278
+ loading: true
279
+ }}
280
+ />
281
+ </Story>
282
+
283
+ <Story
284
+ name="Secondary Outlined"
285
+ args={{
286
+ kind: 'outlined',
287
+ variant: 'secondary',
288
+ size: 'default'
289
+ }}
290
+ />
291
+
292
+ <Story name="Secondary Outlined Icon">
293
+ <Button
294
+ {...{
295
+ kind: 'outlined',
296
+ variant: 'secondary',
297
+ size: 'default'
298
+ }}
299
+ ><Icon name="arrow-circle-left" slot="icon-before" />
300
+ </Button>
301
+ </Story>
302
+
303
+ <Story
304
+ name="Secondary Outlined Small"
305
+ args={{
306
+ kind: 'outlined',
307
+ variant: 'secondary',
308
+ size: 'small'
309
+ }}
310
+ />
311
+
312
+ <Story name="Secondary Outlined Small Icon">
313
+ <Button
314
+ {...{
315
+ kind: 'outlined',
316
+ variant: 'secondary',
317
+ size: 'small'
318
+ }}
319
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" />
320
+ </Button>
321
+ </Story>
322
+
323
+ <Story name="Secondary Outlined Small Loading">
324
+ <Button
325
+ {...{
326
+ kind: 'outlined',
327
+ variant: 'secondary',
328
+ size: 'small',
329
+ loading: true
330
+ }}
331
+ />
332
+ </Story>
333
+
334
+ <Story
335
+ name="Tertiary Filled"
336
+ args={{
337
+ kind: 'filled',
338
+ variant: 'tertiary',
339
+ size: 'default'
340
+ }}
341
+ />
342
+
343
+ <Story name="Tertiary Filled Icon">
344
+ <Button
345
+ {...{
346
+ kind: 'filled',
347
+ variant: 'tertiary',
348
+ size: 'default'
349
+ }}
350
+ ><Icon name="arrow-circle-left" slot="icon-before" />
351
+ </Button>
352
+ </Story>
353
+
354
+ <Story name="Tertiary Filled Loading">
355
+ <Button
356
+ {...{
357
+ kind: 'filled',
358
+ variant: 'tertiary',
359
+ size: 'default',
360
+ loading: true
361
+ }}
362
+ />
363
+ </Story>
364
+
365
+ <Story
366
+ name="Tertiary Filled Small"
367
+ args={{
368
+ kind: 'filled',
369
+ variant: 'tertiary',
370
+ size: 'small'
371
+ }}
372
+ />
373
+
374
+ <Story name="Tertiary Filled Small Icon">
375
+ <Button
376
+ {...{
377
+ kind: 'filled',
378
+ variant: 'tertiary',
379
+ size: 'small'
380
+ }}
381
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" />
382
+ </Button>
383
+ </Story>
384
+
385
+ <Story name="Tertiary Filled Small loading">
386
+ <Button
387
+ {...{
388
+ kind: 'filled',
389
+ variant: 'tertiary',
390
+ size: 'small',
391
+ loading: true
392
+ }}
393
+ />
394
+ </Story>
395
+
396
+ <Story
397
+ name="Tertiary Outlined"
398
+ args={{
399
+ kind: 'outlined',
400
+ variant: 'tertiary',
401
+ size: 'default'
402
+ }}
403
+ />
404
+
405
+ <Story name="Tertiary Outlined Icon">
406
+ <Button
407
+ {...{
408
+ kind: 'outlined',
409
+ variant: 'tertiary',
410
+ size: 'default'
411
+ }}
412
+ ><Icon name="arrow-circle-left" slot="icon-before" />
413
+ </Button>
414
+ </Story>
415
+
416
+ <Story name="Tertiary Outlined Loading">
417
+ <Button
418
+ {...{
419
+ kind: 'outlined',
420
+ variant: 'tertiary',
421
+ size: 'default',
422
+ loading: true
423
+ }}
424
+ />
425
+ </Story>
426
+
427
+ <Story
428
+ name="Tertiary Outlined Small"
429
+ args={{
430
+ kind: 'outlined',
431
+ variant: 'tertiary',
432
+ size: 'small'
433
+ }}
434
+ />
435
+
436
+ <Story name="Tertiary Outlined Small Icon">
437
+ <Button
438
+ {...{
439
+ kind: 'outlined',
440
+ variant: 'tertiary',
441
+ size: 'small'
442
+ }}
443
+ ><Icon size="small" name="arrow-circle-left" slot="icon-before" />
444
+ </Button>
445
+ </Story>
446
+
447
+ <Story name="Tertiary Outlined Small Loading">
448
+ <Button
449
+ {...{
450
+ kind: 'outlined',
451
+ variant: 'tertiary',
452
+ size: 'small',
453
+ loading: true
454
+ }}
455
+ />
456
+ </Story>
@@ -0,0 +1,39 @@
1
+ import { SvelteComponent } from "svelte";
2
+ import '../../app.scss';
3
+ export declare const meta: {
4
+ title: string;
5
+ component: typeof Button;
6
+ tags: string[];
7
+ argTypes: {
8
+ kind: {
9
+ control: string;
10
+ options: readonly ["filled", "outlined"];
11
+ };
12
+ variant: {
13
+ control: string;
14
+ options: readonly ["primary", "secondary", "tertiary"];
15
+ };
16
+ size: {
17
+ control: string;
18
+ options: readonly ["default", "small"];
19
+ };
20
+ loading: {
21
+ control: string;
22
+ };
23
+ };
24
+ };
25
+ declare const __propDef: {
26
+ props: Record<string, never>;
27
+ events: {
28
+ [evt: string]: CustomEvent<any>;
29
+ };
30
+ slots: {};
31
+ exports?: {} | undefined;
32
+ bindings?: string | undefined;
33
+ };
34
+ export type ButtonProps = typeof __propDef.props;
35
+ export type ButtonEvents = typeof __propDef.events;
36
+ export type ButtonSlots = typeof __propDef.slots;
37
+ export default class Button extends SvelteComponent<ButtonProps, ButtonEvents, ButtonSlots> {
38
+ }
39
+ export {};