@reshape-biotech/design-system 0.0.48 → 0.0.49
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.
- package/dist/components/activity/Activity.stories.svelte +10 -4
- package/dist/components/activity/Activity.svelte +11 -12
- package/dist/components/activity/Activity.svelte.d.ts +1 -2
- package/dist/components/avatar/Avatar.stories.svelte +51 -0
- package/dist/components/avatar/Avatar.stories.svelte.d.ts +19 -0
- package/dist/components/banner/Banner.stories.svelte +9 -9
- package/dist/components/banner/Banner.svelte +3 -3
- package/dist/components/button/Button.stories.svelte +7 -1
- package/dist/components/collapsible/components/collapsible-trigger.svelte +2 -2
- package/dist/components/combobox/Combobox.stories.svelte +326 -5
- package/dist/components/combobox/components/combobox-add.svelte +2 -2
- package/dist/components/combobox/components/combobox-content.svelte +3 -3
- package/dist/components/combobox/components/combobox-indicator.svelte +2 -2
- package/dist/components/datepicker/DatePicker.svelte +8 -7
- package/dist/components/icon-button/IconButton.stories.svelte +17 -17
- package/dist/components/icons/AnalysisIcon.svelte +4 -1
- package/dist/components/icons/Icon.stories.svelte +127 -0
- package/dist/components/icons/Icon.stories.svelte.d.ts +19 -0
- package/dist/components/icons/Icon.svelte +6 -5
- package/dist/components/icons/index.d.ts +7 -5
- package/dist/components/icons/index.js +170 -4
- package/dist/components/input/Input.stories.svelte +7 -1
- package/dist/components/list/List.stories.svelte +3 -3
- package/dist/components/modal/Modal.svelte +2 -2
- package/dist/components/notification-popup/NotificationPopup.stories.svelte +2 -3
- package/dist/components/notification-popup/NotificationPopup.svelte +4 -4
- package/dist/components/pill/Pill.svelte +2 -2
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte +10 -10
- package/dist/components/select/Select.svelte +5 -5
- package/dist/components/slider/Slider.svelte +4 -3
- package/dist/components/stat-card/StatCard.svelte +2 -2
- package/dist/components/status-badge/StatusBadge.stories.svelte +26 -34
- package/dist/components/table/Table.stories.svelte +6 -2
- package/dist/components/tag/Tag.stories.svelte +2 -2
- package/dist/components/tooltip/Tooltip.svelte +1 -1
- package/dist/components/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/icons.d.ts +0 -0
- package/dist/icons.js +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<script module>
|
|
2
2
|
import NotificationPopup from './NotificationPopup.svelte';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { Icon } from '../icons';
|
|
5
4
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
6
5
|
|
|
7
6
|
const { Story } = defineMeta({
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
<Story name="Primary">
|
|
21
20
|
<NotificationPopup onClose={handleClick} title="See what's new" {visible}>
|
|
22
21
|
<a href="_blank" color="transparent" class="flex items-center gap-2">
|
|
23
|
-
<
|
|
22
|
+
<Icon iconName="Sparkle" />
|
|
24
23
|
<p>Product updates</p>
|
|
25
24
|
</a>
|
|
26
25
|
</NotificationPopup>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { X } from 'phosphor-svelte';
|
|
3
2
|
import { IconButton } from '../icon-button/';
|
|
4
3
|
import { fade, fly } from 'svelte/transition';
|
|
5
4
|
import type { Snippet } from 'svelte';
|
|
5
|
+
import { Icon } from '../icons';
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
8
8
|
onClose: () => void;
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
<h6 class="flex h-6 items-center">{title}</h6>
|
|
27
27
|
{@render children?.()}
|
|
28
28
|
</div>
|
|
29
|
-
<IconButton size="xs" variant="transparent" rounded={false} onclick={onClose}
|
|
30
|
-
|
|
31
|
-
>
|
|
29
|
+
<IconButton size="xs" variant="transparent" rounded={false} onclick={onClose}>
|
|
30
|
+
<Icon iconName="X" />
|
|
31
|
+
</IconButton>
|
|
32
32
|
</div>
|
|
33
33
|
{/if}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { Icon } from '../icons';
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
class?: string;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
<button class="{className} " {onclick} {type} data-testid={testID}>
|
|
16
16
|
{text}
|
|
17
|
-
<X class="opacity-50"
|
|
17
|
+
<Icon iconName="X" class="opacity-50" />
|
|
18
18
|
</button>
|
|
19
19
|
|
|
20
20
|
<style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { Icon } from '../icons';
|
|
3
3
|
import SegmentedControlButtons from './SegmentedControlButtons.svelte';
|
|
4
4
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
5
5
|
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
<Story name="Primary">
|
|
14
14
|
<SegmentedControlButtons class="w-[350px]">
|
|
15
15
|
{#snippet children({ ControlButton })}
|
|
16
|
-
<ControlButton active><Star /> Low</ControlButton>
|
|
17
|
-
<ControlButton><Star /> Medium</ControlButton>
|
|
18
|
-
<ControlButton disabled><Star /> High</ControlButton>
|
|
16
|
+
<ControlButton active><Icon iconName="Star" /> Low</ControlButton>
|
|
17
|
+
<ControlButton><Icon iconName="Star" /> Medium</ControlButton>
|
|
18
|
+
<ControlButton disabled><Icon iconName="Star" /> High</ControlButton>
|
|
19
19
|
{/snippet}
|
|
20
20
|
</SegmentedControlButtons>
|
|
21
21
|
</Story>
|
|
22
22
|
<Story name="Large">
|
|
23
23
|
<SegmentedControlButtons size="lg" class="w-[350px]">
|
|
24
24
|
{#snippet children({ ControlButton })}
|
|
25
|
-
<ControlButton active><Star /> Low</ControlButton>
|
|
26
|
-
<ControlButton><Star /> Medium</ControlButton>
|
|
27
|
-
<ControlButton disabled><Star /> High</ControlButton>
|
|
25
|
+
<ControlButton active><Icon iconName="Star" /> Low</ControlButton>
|
|
26
|
+
<ControlButton><Icon iconName="Star" /> Medium</ControlButton>
|
|
27
|
+
<ControlButton disabled><Icon iconName="Star" /> High</ControlButton>
|
|
28
28
|
{/snippet}
|
|
29
29
|
</SegmentedControlButtons>
|
|
30
30
|
</Story>
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
<SegmentedControlButtons class="w-[350px]">
|
|
33
33
|
{#snippet children({ ControlButton })}
|
|
34
34
|
<ControlButton active color="secondary">
|
|
35
|
-
<Star /> Low
|
|
35
|
+
<Icon iconName="Star" /> Low
|
|
36
36
|
</ControlButton>
|
|
37
37
|
<ControlButton color="secondary">
|
|
38
|
-
<Star /> Medium
|
|
38
|
+
<Icon iconName="Star" /> Medium
|
|
39
39
|
</ControlButton>
|
|
40
40
|
<ControlButton color="secondary">
|
|
41
|
-
<Star /> High
|
|
41
|
+
<Icon iconName="Star" /> High
|
|
42
42
|
</ControlButton>
|
|
43
43
|
{/snippet}
|
|
44
44
|
</SegmentedControlButtons>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot making the component unusable -->
|
|
3
3
|
<script lang="ts">
|
|
4
4
|
import { backgroundColor, borderColor, textColor } from '../../tokens';
|
|
5
|
-
import {
|
|
5
|
+
import { Icon } from '../icons';
|
|
6
6
|
import { createEventDispatcher } from 'svelte';
|
|
7
7
|
let className = '';
|
|
8
8
|
export { className as class };
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
--font-size="text-sm"
|
|
79
79
|
>
|
|
80
80
|
<div slot="chevron-icon" class="">
|
|
81
|
-
<
|
|
81
|
+
<Icon iconName="CaretDown" color="icon-secondary" />
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
<div slot="selection" let:selection>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
92
|
<div slot="clear-icon">
|
|
93
|
-
<
|
|
93
|
+
<Icon iconName="X" />
|
|
94
94
|
</div>
|
|
95
95
|
|
|
96
96
|
<div slot="item" let:item let:index class="flex">
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
{/if}
|
|
105
105
|
</div>
|
|
106
106
|
<slot />
|
|
107
|
-
</div
|
|
108
|
-
>
|
|
107
|
+
</div>
|
|
108
|
+
</SvelteSelect>
|
|
109
109
|
|
|
110
110
|
<style>
|
|
111
111
|
:global(.svelte-select.focused) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { Icon } from '../icons';
|
|
3
|
+
|
|
3
4
|
let className = '';
|
|
4
5
|
export { className as class };
|
|
5
6
|
export let value = 0;
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
<div class="h-2.5">
|
|
48
49
|
{#each Array(visualMax + 1) as _, index}
|
|
49
50
|
<div
|
|
50
|
-
class="absolute h-1.5 w-1.5 translate-y-[2px] rounded-full bg-surface ring
|
|
51
|
+
class="absolute h-1.5 w-1.5 translate-y-[2px] rounded-full bg-surface ring-1 ring-gray-950/10"
|
|
51
52
|
style="left: {calculatePosition(index)} + 0.25rem"
|
|
52
53
|
></div>
|
|
53
54
|
{/each}
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
on:mouseup={onMouseup}
|
|
64
65
|
/>
|
|
65
66
|
<div class="thumb-overlay" style="left: {calculatePosition(value)} + 0.5rem)">
|
|
66
|
-
<CaretUpDown class="rotate-90
|
|
67
|
+
<Icon iconName="CaretUpDown" class="rotate-90" />
|
|
67
68
|
</div>
|
|
68
69
|
</div>
|
|
69
70
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { Icon } from '../icons';
|
|
3
3
|
import Spinner from '../spinner/Spinner.svelte';
|
|
4
4
|
import Tooltip from '../tooltip/Tooltip.svelte';
|
|
5
5
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
{#if titleTooltip && showTitleTooltip}
|
|
30
30
|
<Tooltip>
|
|
31
31
|
{#snippet trigger()}
|
|
32
|
-
<Info
|
|
32
|
+
<Icon iconName="Info" color="icon-tertiary" />
|
|
33
33
|
{/snippet}
|
|
34
34
|
{#snippet content()}
|
|
35
35
|
<span>
|
|
@@ -3,15 +3,7 @@
|
|
|
3
3
|
import Tooltip from '../tooltip/Tooltip.svelte';
|
|
4
4
|
import ProgressCircle from '../progress-circle/ProgressCircle.svelte';
|
|
5
5
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
SpinnerGap,
|
|
9
|
-
CheckCircle,
|
|
10
|
-
Moon,
|
|
11
|
-
StopCircle,
|
|
12
|
-
WifiSlash,
|
|
13
|
-
WarningCircle
|
|
14
|
-
} from 'phosphor-svelte';
|
|
6
|
+
import { Icon } from '../icons';
|
|
15
7
|
|
|
16
8
|
const { Story } = defineMeta({
|
|
17
9
|
component: StatusBadge,
|
|
@@ -28,7 +20,7 @@
|
|
|
28
20
|
<div class="flex flex-row gap-1">
|
|
29
21
|
<StatusBadge type="neutral">
|
|
30
22
|
{#snippet icon()}
|
|
31
|
-
<
|
|
23
|
+
<Icon iconName="SpinnerGap" />
|
|
32
24
|
{/snippet}
|
|
33
25
|
{#snippet content()}
|
|
34
26
|
<div>Pending</div>
|
|
@@ -36,14 +28,14 @@
|
|
|
36
28
|
</StatusBadge>
|
|
37
29
|
<StatusBadge type="neutral">
|
|
38
30
|
{#snippet icon()}
|
|
39
|
-
<
|
|
31
|
+
<Icon iconName="SpinnerGap" />
|
|
40
32
|
{/snippet}
|
|
41
33
|
</StatusBadge>
|
|
42
34
|
</div>
|
|
43
35
|
<div class="flex flex-row gap-1">
|
|
44
36
|
<StatusBadge type="neutral">
|
|
45
37
|
{#snippet icon()}
|
|
46
|
-
<
|
|
38
|
+
<Icon iconName="Moon" />
|
|
47
39
|
{/snippet}
|
|
48
40
|
{#snippet content()}
|
|
49
41
|
<div>Idle</div>
|
|
@@ -51,7 +43,7 @@
|
|
|
51
43
|
</StatusBadge>
|
|
52
44
|
<StatusBadge type="neutral">
|
|
53
45
|
{#snippet icon()}
|
|
54
|
-
<
|
|
46
|
+
<Icon iconName="Moon" />
|
|
55
47
|
{/snippet}
|
|
56
48
|
</StatusBadge>
|
|
57
49
|
</div>
|
|
@@ -62,7 +54,7 @@
|
|
|
62
54
|
<div class="flex flex-row gap-1">
|
|
63
55
|
<StatusBadge type="neutral" size="sm">
|
|
64
56
|
{#snippet icon()}
|
|
65
|
-
<
|
|
57
|
+
<Icon iconName="SpinnerGap" />
|
|
66
58
|
{/snippet}
|
|
67
59
|
{#snippet content()}
|
|
68
60
|
<div>Pending</div>
|
|
@@ -70,14 +62,14 @@
|
|
|
70
62
|
</StatusBadge>
|
|
71
63
|
<StatusBadge type="neutral" size="sm">
|
|
72
64
|
{#snippet icon()}
|
|
73
|
-
<
|
|
65
|
+
<Icon iconName="SpinnerGap" />
|
|
74
66
|
{/snippet}
|
|
75
67
|
</StatusBadge>
|
|
76
68
|
</div>
|
|
77
69
|
<div class="flex flex-row gap-1">
|
|
78
70
|
<StatusBadge type="neutral" size="sm">
|
|
79
71
|
{#snippet icon()}
|
|
80
|
-
<
|
|
72
|
+
<Icon iconName="Moon" />
|
|
81
73
|
{/snippet}
|
|
82
74
|
{#snippet content()}
|
|
83
75
|
<div>Idle</div>
|
|
@@ -85,7 +77,7 @@
|
|
|
85
77
|
</StatusBadge>
|
|
86
78
|
<StatusBadge type="neutral" size="sm">
|
|
87
79
|
{#snippet icon()}
|
|
88
|
-
<
|
|
80
|
+
<Icon iconName="Moon" />
|
|
89
81
|
{/snippet}
|
|
90
82
|
</StatusBadge>
|
|
91
83
|
</div>
|
|
@@ -101,7 +93,7 @@
|
|
|
101
93
|
<div>
|
|
102
94
|
<StatusBadge type="success">
|
|
103
95
|
{#snippet icon()}
|
|
104
|
-
<
|
|
96
|
+
<Icon iconName="CheckCircle" />
|
|
105
97
|
{/snippet}
|
|
106
98
|
{#snippet content()}
|
|
107
99
|
<div>Completed</div>
|
|
@@ -118,7 +110,7 @@
|
|
|
118
110
|
</Tooltip>
|
|
119
111
|
<StatusBadge type="success">
|
|
120
112
|
{#snippet icon()}
|
|
121
|
-
<
|
|
113
|
+
<Icon iconName="CheckCircle" weight="fill" />
|
|
122
114
|
{/snippet}
|
|
123
115
|
</StatusBadge>
|
|
124
116
|
</div>
|
|
@@ -128,7 +120,7 @@
|
|
|
128
120
|
<div>
|
|
129
121
|
<StatusBadge type="success">
|
|
130
122
|
{#snippet icon()}
|
|
131
|
-
<
|
|
123
|
+
<Icon iconName="StopCircle" />
|
|
132
124
|
{/snippet}
|
|
133
125
|
{#snippet content()}
|
|
134
126
|
<div>Stopped</div>
|
|
@@ -145,7 +137,7 @@
|
|
|
145
137
|
</Tooltip>
|
|
146
138
|
<StatusBadge type="success">
|
|
147
139
|
{#snippet icon()}
|
|
148
|
-
<
|
|
140
|
+
<Icon iconName="StopCircle" />
|
|
149
141
|
{/snippet}
|
|
150
142
|
</StatusBadge>
|
|
151
143
|
</div>
|
|
@@ -158,7 +150,7 @@
|
|
|
158
150
|
{#snippet trigger()}
|
|
159
151
|
<StatusBadge type="success" size="sm">
|
|
160
152
|
{#snippet icon()}
|
|
161
|
-
<
|
|
153
|
+
<Icon iconName="CheckCircle" weight="fill" />
|
|
162
154
|
{/snippet}
|
|
163
155
|
{#snippet content()}
|
|
164
156
|
<div>Completed</div>
|
|
@@ -174,7 +166,7 @@
|
|
|
174
166
|
</Tooltip>
|
|
175
167
|
<StatusBadge type="success" size="sm">
|
|
176
168
|
{#snippet icon()}
|
|
177
|
-
<
|
|
169
|
+
<Icon iconName="CheckCircle" weight="fill" />
|
|
178
170
|
{/snippet}
|
|
179
171
|
</StatusBadge>
|
|
180
172
|
</div>
|
|
@@ -183,7 +175,7 @@
|
|
|
183
175
|
{#snippet trigger()}
|
|
184
176
|
<StatusBadge type="success" size="sm">
|
|
185
177
|
{#snippet icon()}
|
|
186
|
-
<
|
|
178
|
+
<Icon iconName="StopCircle" />
|
|
187
179
|
{/snippet}
|
|
188
180
|
{#snippet content()}
|
|
189
181
|
<div>Stopped</div>
|
|
@@ -199,7 +191,7 @@
|
|
|
199
191
|
</Tooltip>
|
|
200
192
|
<StatusBadge type="success" size="sm">
|
|
201
193
|
{#snippet icon()}
|
|
202
|
-
<
|
|
194
|
+
<Icon iconName="StopCircle" />
|
|
203
195
|
{/snippet}
|
|
204
196
|
</StatusBadge>
|
|
205
197
|
</div>
|
|
@@ -283,7 +275,7 @@
|
|
|
283
275
|
{#snippet trigger()}
|
|
284
276
|
<StatusBadge type="warning">
|
|
285
277
|
{#snippet icon()}
|
|
286
|
-
<
|
|
278
|
+
<Icon iconName="WifiSlash" />
|
|
287
279
|
{/snippet}
|
|
288
280
|
{#snippet content()}
|
|
289
281
|
<div>Offline</div>
|
|
@@ -300,7 +292,7 @@
|
|
|
300
292
|
|
|
301
293
|
<StatusBadge type="warning">
|
|
302
294
|
{#snippet icon()}
|
|
303
|
-
<
|
|
295
|
+
<Icon iconName="WifiSlash" />
|
|
304
296
|
{/snippet}
|
|
305
297
|
</StatusBadge>
|
|
306
298
|
</div>
|
|
@@ -311,7 +303,7 @@
|
|
|
311
303
|
{#snippet trigger()}
|
|
312
304
|
<StatusBadge type="warning" size="sm">
|
|
313
305
|
{#snippet icon()}
|
|
314
|
-
<
|
|
306
|
+
<Icon iconName="WifiSlash" />
|
|
315
307
|
{/snippet}
|
|
316
308
|
{#snippet content()}
|
|
317
309
|
<div>Offline</div>
|
|
@@ -328,7 +320,7 @@
|
|
|
328
320
|
|
|
329
321
|
<StatusBadge type="warning" size="sm">
|
|
330
322
|
{#snippet icon()}
|
|
331
|
-
<
|
|
323
|
+
<Icon iconName="WifiSlash" />
|
|
332
324
|
{/snippet}
|
|
333
325
|
</StatusBadge>
|
|
334
326
|
</div>
|
|
@@ -341,7 +333,7 @@
|
|
|
341
333
|
{#snippet trigger()}
|
|
342
334
|
<StatusBadge type="error">
|
|
343
335
|
{#snippet icon()}
|
|
344
|
-
<
|
|
336
|
+
<Icon iconName="WarningCircle" weight="fill" />
|
|
345
337
|
{/snippet}
|
|
346
338
|
{#snippet content()}
|
|
347
339
|
<div>Failed</div>
|
|
@@ -358,7 +350,7 @@
|
|
|
358
350
|
|
|
359
351
|
<StatusBadge type="error">
|
|
360
352
|
{#snippet icon()}
|
|
361
|
-
<
|
|
353
|
+
<Icon iconName="WarningCircle" weight="fill" />
|
|
362
354
|
{/snippet}
|
|
363
355
|
</StatusBadge>
|
|
364
356
|
</div>
|
|
@@ -369,7 +361,7 @@
|
|
|
369
361
|
{#snippet trigger()}
|
|
370
362
|
<StatusBadge type="error" size="sm">
|
|
371
363
|
{#snippet icon()}
|
|
372
|
-
<
|
|
364
|
+
<Icon iconName="WarningCircle" weight="fill" />
|
|
373
365
|
{/snippet}
|
|
374
366
|
{#snippet content()}
|
|
375
367
|
<div>Failed</div>
|
|
@@ -386,7 +378,7 @@
|
|
|
386
378
|
|
|
387
379
|
<StatusBadge type="error" size="sm">
|
|
388
380
|
{#snippet icon()}
|
|
389
|
-
<
|
|
381
|
+
<Icon iconName="WarningCircle" weight="fill" />
|
|
390
382
|
{/snippet}
|
|
391
383
|
</StatusBadge>
|
|
392
384
|
</div>
|
|
@@ -395,7 +387,7 @@
|
|
|
395
387
|
<Story name="Icon only">
|
|
396
388
|
<StatusBadge type="neutral" iconOnly>
|
|
397
389
|
{#snippet icon()}
|
|
398
|
-
<
|
|
390
|
+
<Icon iconName="SpinnerGap" />
|
|
399
391
|
{/snippet}
|
|
400
392
|
</StatusBadge>
|
|
401
393
|
</Story>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
tags: ['autodocs']
|
|
9
9
|
});
|
|
10
10
|
import IconButton from '../icon-button/IconButton.svelte';
|
|
11
|
-
import {
|
|
11
|
+
import { Icon } from '../icons';
|
|
12
12
|
|
|
13
13
|
export const users = [
|
|
14
14
|
{
|
|
@@ -81,7 +81,11 @@
|
|
|
81
81
|
<Td>{user.name}</Td>
|
|
82
82
|
<Td>{user.age}</Td>
|
|
83
83
|
<Td>{user.role}</Td>
|
|
84
|
-
<Td
|
|
84
|
+
<Td>
|
|
85
|
+
<IconButton disabled={user.role === 'deactivated'}>
|
|
86
|
+
<Icon iconName="Phone" />
|
|
87
|
+
</IconButton>
|
|
88
|
+
</Td>
|
|
85
89
|
</Tr>
|
|
86
90
|
{/each}
|
|
87
91
|
</TBody>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { Icon } from '../icons';
|
|
3
3
|
import Tag from './Tag.svelte';
|
|
4
4
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
5
5
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<Story name="Default icon onclick">
|
|
29
29
|
<div class="w-fit">
|
|
30
30
|
<Tag onclick={() => {}}>
|
|
31
|
-
<Folder />
|
|
31
|
+
<Icon iconName="Folder" />
|
|
32
32
|
Default
|
|
33
33
|
</Tag>
|
|
34
34
|
</div>
|
package/dist/icons.d.ts
ADDED
|
File without changes
|
package/dist/icons.js
ADDED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './components/banner/';
|
|
|
4
4
|
export * from './components/button/';
|
|
5
5
|
export * as Collapsible from './components/collapsible/';
|
|
6
6
|
export * as Combobox from './components/combobox/';
|
|
7
|
-
export * from './components/graphs
|
|
7
|
+
export * from './components/graphs';
|
|
8
8
|
export * from './components/datepicker/';
|
|
9
9
|
export * from './components/divider/';
|
|
10
10
|
export * from './components/drawer/';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export * from './components/banner/';
|
|
|
5
5
|
export * from './components/button/';
|
|
6
6
|
export * as Collapsible from './components/collapsible/';
|
|
7
7
|
export * as Combobox from './components/combobox/';
|
|
8
|
-
export * from './components/graphs
|
|
8
|
+
export * from './components/graphs';
|
|
9
9
|
export * from './components/datepicker/';
|
|
10
10
|
export * from './components/divider/';
|
|
11
11
|
export * from './components/drawer/';
|