@reshape-biotech/design-system 0.0.48 → 0.0.50

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 (43) hide show
  1. package/dist/components/activity/Activity.stories.svelte +10 -4
  2. package/dist/components/activity/Activity.svelte +11 -12
  3. package/dist/components/activity/Activity.svelte.d.ts +1 -2
  4. package/dist/components/avatar/Avatar.stories.svelte +51 -0
  5. package/dist/components/avatar/Avatar.stories.svelte.d.ts +19 -0
  6. package/dist/components/banner/Banner.stories.svelte +9 -9
  7. package/dist/components/banner/Banner.svelte +3 -3
  8. package/dist/components/button/Button.stories.svelte +7 -1
  9. package/dist/components/collapsible/components/collapsible-trigger.svelte +2 -2
  10. package/dist/components/combobox/Combobox.stories.svelte +326 -5
  11. package/dist/components/combobox/components/combobox-add.svelte +2 -2
  12. package/dist/components/combobox/components/combobox-content.svelte +3 -3
  13. package/dist/components/combobox/components/combobox-indicator.svelte +2 -2
  14. package/dist/components/datepicker/DatePicker.stories.svelte +227 -0
  15. package/dist/components/datepicker/DatePicker.stories.svelte.d.ts +19 -0
  16. package/dist/components/datepicker/DatePicker.svelte +8 -7
  17. package/dist/components/icon-button/IconButton.stories.svelte +17 -17
  18. package/dist/components/icons/AnalysisIcon.svelte +4 -1
  19. package/dist/components/icons/Icon.stories.svelte +127 -0
  20. package/dist/components/icons/Icon.stories.svelte.d.ts +19 -0
  21. package/dist/components/icons/Icon.svelte +6 -5
  22. package/dist/components/icons/index.d.ts +7 -5
  23. package/dist/components/icons/index.js +170 -4
  24. package/dist/components/input/Input.stories.svelte +7 -1
  25. package/dist/components/list/List.stories.svelte +3 -3
  26. package/dist/components/modal/Modal.svelte +2 -2
  27. package/dist/components/notification-popup/NotificationPopup.stories.svelte +2 -3
  28. package/dist/components/notification-popup/NotificationPopup.svelte +4 -4
  29. package/dist/components/pill/Pill.svelte +2 -2
  30. package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte +10 -10
  31. package/dist/components/select/Select.svelte +5 -5
  32. package/dist/components/slider/Slider.svelte +4 -3
  33. package/dist/components/stat-card/StatCard.svelte +2 -2
  34. package/dist/components/status-badge/StatusBadge.stories.svelte +26 -34
  35. package/dist/components/table/Table.stories.svelte +6 -2
  36. package/dist/components/tag/Tag.stories.svelte +2 -2
  37. package/dist/components/tooltip/Tooltip.svelte +1 -1
  38. package/dist/components/tooltip/Tooltip.svelte.d.ts +1 -1
  39. package/dist/icons.d.ts +0 -0
  40. package/dist/icons.js +0 -0
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.js +1 -1
  43. package/package.json +3 -2
@@ -1,18 +1,184 @@
1
+ import ArrowFatLineRight from 'phosphor-svelte/lib/ArrowFatLineRight';
2
+ import ArrowRight from 'phosphor-svelte/lib/ArrowRight';
3
+ import ArrowUpRight from 'phosphor-svelte/lib/ArrowUpRight';
4
+ import Barcode from 'phosphor-svelte/lib/Barcode';
5
+ import BookOpen from 'phosphor-svelte/lib/BookOpen';
6
+ import BookOpenText from 'phosphor-svelte/lib/BookOpenText';
1
7
  import BowlingBall from 'phosphor-svelte/lib/BowlingBall';
8
+ import CalendarBlank from 'phosphor-svelte/lib/CalendarBlank';
9
+ import CameraSlash from 'phosphor-svelte/lib/CameraSlash';
10
+ import CaretDown from 'phosphor-svelte/lib/CaretDown';
11
+ import CaretLeft from 'phosphor-svelte/lib/CaretLeft';
12
+ import CaretRight from 'phosphor-svelte/lib/CaretRight';
13
+ import CaretUp from 'phosphor-svelte/lib/CaretUp';
14
+ import CaretUpDown from 'phosphor-svelte/lib/CaretUpDown';
15
+ import ChatTeardropDots from 'phosphor-svelte/lib/ChatTeardropDots';
16
+ import Check from 'phosphor-svelte/lib/Check';
2
17
  import CheckCircle from 'phosphor-svelte/lib/CheckCircle';
18
+ import CheckFat from 'phosphor-svelte/lib/CheckFat';
3
19
  import Circle from 'phosphor-svelte/lib/Circle';
20
+ import CircleDashed from 'phosphor-svelte/lib/CircleDashed';
21
+ import CircleHalf from 'phosphor-svelte/lib/CircleHalf';
22
+ import CirclesFour from 'phosphor-svelte/lib/CirclesFour';
23
+ import CirclesThreePlus from 'phosphor-svelte/lib/CirclesThreePlus';
24
+ import Clock from 'phosphor-svelte/lib/Clock';
25
+ import ClockCountdown from 'phosphor-svelte/lib/ClockCountdown';
26
+ import Copy from 'phosphor-svelte/lib/Copy';
27
+ import Crop from 'phosphor-svelte/lib/Crop';
28
+ import Cube from 'phosphor-svelte/lib/Cube';
29
+ import Database from 'phosphor-svelte/lib/Database';
30
+ import DotsThree from 'phosphor-svelte/lib/DotsThree';
31
+ import DotsThreeOutlineVertical from 'phosphor-svelte/lib/DotsThreeOutlineVertical';
32
+ import DownloadSimple from 'phosphor-svelte/lib/DownloadSimple';
33
+ import Drop from 'phosphor-svelte/lib/Drop';
34
+ import EnvelopeSimple from 'phosphor-svelte/lib/EnvelopeSimple';
35
+ import Eye from 'phosphor-svelte/lib/Eye';
36
+ import Eyedropper from 'phosphor-svelte/lib/Eyedropper';
37
+ import FileCsv from 'phosphor-svelte/lib/FileCsv';
38
+ import Flag from 'phosphor-svelte/lib/Flag';
39
+ import Flask from 'phosphor-svelte/lib/Flask';
40
+ import Folder from 'phosphor-svelte/lib/Folder';
41
+ import FolderDashed from 'phosphor-svelte/lib/FolderDashed';
42
+ import FolderSimplePlus from 'phosphor-svelte/lib/FolderSimplePlus';
43
+ import FunnelSimple from 'phosphor-svelte/lib/FunnelSimple';
44
+ import Gear from 'phosphor-svelte/lib/Gear';
45
+ import GlobeSimple from 'phosphor-svelte/lib/GlobeSimple';
46
+ import GlobeSimpleX from 'phosphor-svelte/lib/GlobeSimpleX';
47
+ import GridFour from 'phosphor-svelte/lib/GridFour';
48
+ import Hash from 'phosphor-svelte/lib/Hash';
49
+ import House from 'phosphor-svelte/lib/House';
50
+ import ImageSquare from 'phosphor-svelte/lib/ImageSquare';
51
+ import ImagesSquare from 'phosphor-svelte/lib/ImagesSquare';
52
+ import Info from 'phosphor-svelte/lib/Info';
53
+ import Lock from 'phosphor-svelte/lib/Lock';
54
+ import List from 'phosphor-svelte/lib/List';
55
+ import MagnifyingGlass from 'phosphor-svelte/lib/MagnifyingGlass';
56
+ import MegaphoneSimple from 'phosphor-svelte/lib/MegaphoneSimple';
57
+ import Moon from 'phosphor-svelte/lib/Moon';
58
+ import Pause from 'phosphor-svelte/lib/Pause';
59
+ import Pencil from 'phosphor-svelte/lib/Pencil';
60
+ import PencilSimple from 'phosphor-svelte/lib/PencilSimple';
61
+ import Percent from 'phosphor-svelte/lib/Percent';
62
+ import Phone from 'phosphor-svelte/lib/Phone';
63
+ import Plant from 'phosphor-svelte/lib/Plant';
64
+ import Play from 'phosphor-svelte/lib/Play';
65
+ import Plus from 'phosphor-svelte/lib/Plus';
66
+ import PlusMinus from 'phosphor-svelte/lib/PlusMinus';
67
+ import Question from 'phosphor-svelte/lib/Question';
4
68
  import SealQuestion from 'phosphor-svelte/lib/SealQuestion';
5
- import X from 'phosphor-svelte/lib/X';
69
+ import Share from 'phosphor-svelte/lib/Share';
70
+ import SidebarSimple from 'phosphor-svelte/lib/SidebarSimple';
71
+ import SkipBack from 'phosphor-svelte/lib/SkipBack';
72
+ import SkipForward from 'phosphor-svelte/lib/SkipForward';
73
+ import Sparkle from 'phosphor-svelte/lib/Sparkle';
74
+ import SpinnerGap from 'phosphor-svelte/lib/SpinnerGap';
75
+ import SquaresFour from 'phosphor-svelte/lib/SquaresFour';
76
+ import Star from 'phosphor-svelte/lib/Star';
77
+ import Stop from 'phosphor-svelte/lib/Stop';
78
+ import StopCircle from 'phosphor-svelte/lib/StopCircle';
79
+ import Sun from 'phosphor-svelte/lib/Sun';
80
+ import Table from 'phosphor-svelte/lib/Table';
81
+ import Tag from 'phosphor-svelte/lib/Tag';
82
+ import TestTube from 'phosphor-svelte/lib/TestTube';
83
+ import Trash from 'phosphor-svelte/lib/Trash';
84
+ import TrashSimple from 'phosphor-svelte/lib/TrashSimple';
85
+ import UserPlus from 'phosphor-svelte/lib/UserPlus';
86
+ import Video from 'phosphor-svelte/lib/Video';
6
87
  import Warning from 'phosphor-svelte/lib/Warning';
7
88
  import WarningCircle from 'phosphor-svelte/lib/WarningCircle';
89
+ import WifiSlash from 'phosphor-svelte/lib/WifiSlash';
90
+ import X from 'phosphor-svelte/lib/X';
8
91
  export const iconMap = {
92
+ ArrowFatLineRight,
93
+ ArrowRight,
94
+ ArrowUpRight,
95
+ Barcode,
96
+ BookOpen,
97
+ BookOpenText,
9
98
  BowlingBall,
99
+ CalendarBlank,
100
+ CameraSlash,
101
+ CaretDown,
102
+ CaretLeft,
103
+ CaretRight,
104
+ CaretUp,
105
+ CaretUpDown,
106
+ ChatTeardropDots,
107
+ Check,
108
+ CheckCircle,
109
+ CheckFat,
10
110
  Circle,
111
+ CircleDashed,
112
+ CircleHalf,
113
+ CirclesFour,
114
+ CirclesThreePlus,
115
+ Clock,
116
+ ClockCountdown,
117
+ Copy,
118
+ Crop,
119
+ Cube,
120
+ Database,
121
+ DotsThree,
122
+ DotsThreeOutlineVertical,
123
+ DownloadSimple,
124
+ Drop,
125
+ EnvelopeSimple,
126
+ Eye,
127
+ Eyedropper,
128
+ FileCsv,
129
+ Flag,
130
+ Flask,
131
+ Folder,
132
+ FolderDashed,
133
+ FolderSimplePlus,
134
+ FunnelSimple,
135
+ Gear,
136
+ GlobeSimple,
137
+ GlobeSimpleX,
138
+ GridFour,
139
+ Hash,
140
+ House,
141
+ ImageSquare,
142
+ ImagesSquare,
143
+ Info,
144
+ Lock,
145
+ List,
146
+ MagnifyingGlass,
147
+ MegaphoneSimple,
148
+ Moon,
149
+ Pause,
150
+ Pencil,
151
+ PencilSimple,
152
+ Percent,
153
+ Phone,
154
+ Plant,
155
+ Play,
156
+ Plus,
157
+ PlusMinus,
158
+ Question,
11
159
  SealQuestion,
12
- CheckCircle,
13
- X,
160
+ Share,
161
+ SidebarSimple,
162
+ SkipBack,
163
+ SkipForward,
164
+ Sparkle,
165
+ SpinnerGap,
166
+ SquaresFour,
167
+ Star,
168
+ Stop,
169
+ StopCircle,
170
+ Sun,
171
+ Table,
172
+ Tag,
173
+ TestTube,
174
+ Trash,
175
+ TrashSimple,
176
+ UserPlus,
177
+ Video,
14
178
  Warning,
15
- WarningCircle
179
+ WarningCircle,
180
+ WifiSlash,
181
+ X
16
182
  };
17
183
  export function renderIcon(iconName) {
18
184
  const Icon = iconMap[iconName];
@@ -6,7 +6,13 @@
6
6
  const { Story } = defineMeta({
7
7
  component: Input,
8
8
  title: 'Design System/Input',
9
- tags: ['autodocs']
9
+ tags: ['autodocs'],
10
+ parameters: {
11
+ design: {
12
+ type: 'figma',
13
+ url: 'https://www.figma.com/design/VHTMNdy8PAXAMx43edNZGW/%F0%9F%92%A0--Reshape-Design-System%3A-V1?node-id=9-3169&t=sCuBI8dX6K6NjNR6-0'
14
+ }
15
+ }
10
16
  });
11
17
 
12
18
  let value = '';
@@ -1,8 +1,8 @@
1
1
  <script module lang="ts">
2
2
  import List from './List.svelte';
3
3
  import Tag from '../tag/Tag.svelte';
4
- import { ArrowUpRight } from 'phosphor-svelte';
5
4
  import { defineMeta } from '@storybook/addon-svelte-csf';
5
+ import { Icon } from '../icons';
6
6
 
7
7
  const { Story } = defineMeta({
8
8
  component: List,
@@ -43,7 +43,7 @@
43
43
  >
44
44
  Repository
45
45
  </a>
46
- <ArrowUpRight />
46
+ <Icon iconName="ArrowUpRight" />
47
47
  </div>
48
48
  {/if}
49
49
  </div>
@@ -77,7 +77,7 @@
77
77
  >
78
78
  Repository
79
79
  </a>
80
- <ArrowUpRight />
80
+ <Icon iconName="ArrowUpRight" />
81
81
  </div>
82
82
  {/if}
83
83
  </div>
@@ -2,7 +2,7 @@
2
2
  import type { Snippet } from 'svelte';
3
3
  import { v4 as uuidv4 } from 'uuid';
4
4
  import IconButton from '../icon-button/IconButton.svelte';
5
- import { X } from 'phosphor-svelte';
5
+ import { Icon } from '../icons';
6
6
 
7
7
  type ModalProps = {
8
8
  Trigger?: Snippet<[{ openModal: () => void; closeModal: () => void }]>;
@@ -46,7 +46,7 @@
46
46
  {#if withClose}
47
47
  <div class="close-button">
48
48
  <IconButton onclick={closeModal} size="md" variant="secondary">
49
- <X />
49
+ <Icon iconName="X" />
50
50
  </IconButton>
51
51
  </div>
52
52
  {/if}
@@ -1,7 +1,6 @@
1
1
  <script module>
2
2
  import NotificationPopup from './NotificationPopup.svelte';
3
- import { Sparkle } from 'phosphor-svelte';
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
- <Sparkle weight="bold" />
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
- ><X class="text-icon-tertiary" weight="bold" /></IconButton
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 { X } from 'phosphor-svelte';
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" weight="bold" />
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 { Star } from 'phosphor-svelte';
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 { CaretDown, X } from 'phosphor-svelte';
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
- <CaretDown weight="bold" size="1rem" class="text-icon-secondary" />
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
- <X weight="bold" size="1rem" />
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></SvelteSelect
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 { CaretUpDown } from 'phosphor-svelte';
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 ring-1 ring-gray-950/10"
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 text-primary" size="1rem" weight="bold" />
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 { Info } from 'phosphor-svelte';
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 class="icon text-icon-tertiary" size="1rem" weight="bold" />
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
- <SpinnerGap size="100%" weight="bold" />
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
- <SpinnerGap size="100%" weight="bold" />
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
- <Moon size="100%" weight="bold" />
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
- <Moon size="100%" weight="bold" />
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
- <SpinnerGap size="100%" weight="bold" />
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
- <SpinnerGap size="100%" weight="bold" />
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
- <Moon size="100%" weight="bold" />
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
- <Moon size="100%" weight="bold" />
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
- <CheckCircle size="100%" weight="fill" />
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
- <CheckCircle size="100%" weight="fill" />
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
- <StopCircle size="100%" weight="bold" />
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
- <StopCircle size="100%" weight="bold" />
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
- <CheckCircle size="100%" weight="fill" />
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
- <CheckCircle size="100%" weight="fill" />
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
- <StopCircle size="100%" weight="bold" />
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
- <StopCircle size="100%" weight="bold" />
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
- <WifiSlash size="100%" weight="bold" />
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
- <WifiSlash size="100%" weight="bold" />
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
- <WifiSlash size="100%" weight="bold" />
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
- <WifiSlash size="100%" weight="bold" />
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
- <WarningCircle size="100%" weight="fill" />
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
- <WarningCircle size="100%" weight="fill" />
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
- <WarningCircle size="100%" weight="fill" />
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
- <WarningCircle size="100%" weight="fill" />
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
- <SpinnerGap size="100%" weight="bold" />
390
+ <Icon iconName="SpinnerGap" />
399
391
  {/snippet}
400
392
  </StatusBadge>
401
393
  </Story>