@reshape-biotech/design-system 2.7.47 → 2.7.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 +13 -1
- package/dist/components/activity/Activity.svelte +28 -8
- package/dist/components/activity/Activity.svelte.d.ts +1 -0
- package/dist/components/activity/ActivityIcon.svelte +8 -0
- package/dist/components/activity/ActivityIcon.svelte.d.ts +1 -1
- package/dist/components/avatar/Avatar.stories.svelte +1 -1
- package/dist/components/banner/Banner.stories.svelte +1 -1
- package/dist/components/button/Button.stories.svelte +1 -1
- package/dist/components/card/Card.stories.svelte +1 -1
- package/dist/components/checkbox/Checkbox.stories.svelte +1 -1
- package/dist/components/collapsible/Collapsible.stories.svelte +1 -1
- package/dist/components/combobox/Combobox.stories.svelte +1 -1
- package/dist/components/datepicker/DatePicker.stories.svelte +1 -1
- package/dist/components/divider/Divider.stories.svelte +1 -1
- package/dist/components/drawer/Drawer.stories.svelte +7 -7
- package/dist/components/dropdown/Dropdown.stories.svelte +1 -1
- package/dist/components/empty-content/EmptyContent.stories.svelte +1 -1
- package/dist/components/graphs/bar-chart/BarChart.stories.svelte +1 -1
- package/dist/components/graphs/bar-chart/StackedBarChart.stories.svelte +1 -1
- package/dist/components/graphs/chart/Chart.stories.svelte +1 -1
- package/dist/components/graphs/line/LineChart.stories.svelte +1 -1
- package/dist/components/graphs/matrix/Matrix.stories.svelte +1 -1
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte +1 -1
- package/dist/components/graphs/scatterplot/Scatterplot.stories.svelte +1 -1
- package/dist/components/icon-button/IconButton.stories.svelte +1 -1
- package/dist/components/icons/AnalysisIcon.stories.svelte +1 -1
- package/dist/components/icons/Icon.stories.svelte +1 -1
- package/dist/components/input/Input.stories.svelte +1 -1
- package/dist/components/label/Label.stories.svelte +1 -1
- package/dist/components/legend/Legend.stories.svelte +1 -1
- package/dist/components/list/List.stories.svelte +1 -1
- package/dist/components/logo/Logo.stories.svelte +1 -1
- package/dist/components/manual-cfu-counter/ManualCFUCounter.stories.svelte +1 -1
- package/dist/components/markdown/Markdown.stories.svelte +1 -1
- package/dist/components/modal/Modal.stories.svelte +8 -8
- package/dist/components/multi-cfu-counter/MultiCFUCounter.stories.svelte +1 -1
- package/dist/components/nav/Nav.stories.svelte +1 -1
- package/dist/components/notification-popup/NotificationPopup.stories.svelte +1 -1
- package/dist/components/notifications/Notifications.stories.svelte +1 -1
- package/dist/components/pill/Pill.stories.svelte +1 -1
- package/dist/components/progress-circle/ProgressCircle.stories.svelte +1 -1
- package/dist/components/required-status-indicator/RequiredStatusIndicator.stories.svelte +1 -1
- package/dist/components/segmented-control-buttons/SegmentedControlButtons.stories.svelte +1 -1
- package/dist/components/select/Select.stories.svelte +1 -1
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte +1 -1
- package/dist/components/slider/Slider.stories.svelte +1 -1
- package/dist/components/spinner/Spinner.stories.svelte +1 -1
- package/dist/components/stat-card/StatCard.stories.svelte +1 -1
- package/dist/components/status-badge/StatusBadge.stories.svelte +1 -1
- package/dist/components/stepper/Stepper.stories.svelte +1 -1
- package/dist/components/table/Table.stories.svelte +1 -1
- package/dist/components/tabs/Tabs.stories.svelte +1 -1
- package/dist/components/tag/Tag.stories.svelte +1 -1
- package/dist/components/textarea/Textarea.stories.svelte +1 -1
- package/dist/components/toast/Toast.stories.svelte +1 -1
- package/dist/components/toggle/Toggle.stories.svelte +1 -1
- package/dist/components/toggle-icon-button/ToggleIconButton.stories.svelte +1 -1
- package/dist/components/tooltip/Tooltip.stories.svelte +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/safelist-source.d.ts +1 -1
- package/dist/safelist-source.js +2 -2
- package/dist/safelist.css +1 -1
- package/dist/tailwind.preset.d.ts +7 -0
- package/dist/tokens/Colors.stories.svelte +194 -0
- package/dist/tokens/Colors.stories.svelte.d.ts +18 -0
- package/dist/{components/typography → tokens}/Typography.stories.svelte +2 -1
- package/dist/tokens/colorLookup.d.ts +1 -0
- package/dist/tokens/colorLookup.js +37 -0
- package/dist/tokens/colors.d.ts +4 -0
- package/dist/tokens/colors.js +4 -0
- package/dist/tokens.d.ts +90 -0
- package/dist/tokens.js +46 -18
- package/package.json +10 -4
- /package/dist/{components/typography → tokens}/Typography.stories.svelte.d.ts +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
const { Story } = defineMeta({
|
|
10
10
|
component: Activity,
|
|
11
|
-
title: '
|
|
11
|
+
title: 'Components/Activity',
|
|
12
12
|
tags: ['autodocs'],
|
|
13
13
|
parameters: {
|
|
14
14
|
design: {
|
|
@@ -56,6 +56,18 @@
|
|
|
56
56
|
timestamp: '3 Aug 2025, 10:30',
|
|
57
57
|
author: 'Jim Halpert',
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
icon: 'door-opened' as const,
|
|
61
|
+
label: 'Door opened',
|
|
62
|
+
timestamp: '3 Aug 2025, 11:30',
|
|
63
|
+
tooltip:
|
|
64
|
+
'Opening the door of the device while it is running can cause temperature fluctuations or misalignment of the images and their analysis',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
icon: 'door-closed' as const,
|
|
68
|
+
label: 'Door closed',
|
|
69
|
+
timestamp: '3 Aug 2025, 11:31',
|
|
70
|
+
},
|
|
59
71
|
{
|
|
60
72
|
icon: 'failed' as const,
|
|
61
73
|
label: 'Job failed',
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { type BackgroundClass } from '../icons';
|
|
3
3
|
import ActivityIcon from './ActivityIcon.svelte';
|
|
4
4
|
import type { ActivityIconType } from './ActivityIcon.svelte';
|
|
5
|
+
import { Tooltip } from '../tooltip';
|
|
5
6
|
import { DateTime } from 'luxon';
|
|
6
7
|
import { twMerge } from 'tailwind-merge';
|
|
7
8
|
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
field?: string | null;
|
|
15
16
|
previous_value?: string | null;
|
|
16
17
|
value?: string | null;
|
|
18
|
+
tooltip?: string | null;
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
type Props = {
|
|
@@ -32,6 +34,8 @@
|
|
|
32
34
|
stop: 'bg-neutral',
|
|
33
35
|
warning: 'bg-warning',
|
|
34
36
|
success: 'bg-neutral',
|
|
37
|
+
'door-opened': 'bg-warning',
|
|
38
|
+
'door-closed': 'bg-neutral',
|
|
35
39
|
'export-succeeded': 'bg-neutral',
|
|
36
40
|
'export-failed': 'bg-danger',
|
|
37
41
|
};
|
|
@@ -58,14 +62,30 @@
|
|
|
58
62
|
<div class={twMerge('group flex items-stretch gap-3', className)}>
|
|
59
63
|
<div class="flex min-h-12 flex-col items-center gap-1.5">
|
|
60
64
|
<div class="bg-neutral w-0.5 grow group-first:invisible"></div>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
{#snippet activityIconBadge()}
|
|
66
|
+
<div
|
|
67
|
+
class={twMerge(
|
|
68
|
+
'text-secondary flex h-5 w-5 shrink-0 items-center justify-center rounded p-0.5',
|
|
69
|
+
ACTIVITY_BACKGROUND[activity.icon]
|
|
70
|
+
)}
|
|
71
|
+
>
|
|
72
|
+
<ActivityIcon icon={activity.icon} />
|
|
73
|
+
</div>
|
|
74
|
+
{/snippet}
|
|
75
|
+
{#if activity.tooltip}
|
|
76
|
+
<Tooltip>
|
|
77
|
+
{#snippet trigger()}
|
|
78
|
+
{@render activityIconBadge()}
|
|
79
|
+
{/snippet}
|
|
80
|
+
{#snippet content()}
|
|
81
|
+
<div class="max-w-72 p-1 text-xs">
|
|
82
|
+
{activity.tooltip}
|
|
83
|
+
</div>
|
|
84
|
+
{/snippet}
|
|
85
|
+
</Tooltip>
|
|
86
|
+
{:else}
|
|
87
|
+
{@render activityIconBadge()}
|
|
88
|
+
{/if}
|
|
69
89
|
<div class="bg-neutral w-0.5 grow group-last:invisible"></div>
|
|
70
90
|
</div>
|
|
71
91
|
<div class="flex items-center py-4">
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
import Warning from 'phosphor-svelte/lib/Warning';
|
|
15
15
|
import Check from 'phosphor-svelte/lib/Check';
|
|
16
16
|
import DownloadSimple from 'phosphor-svelte/lib/DownloadSimple';
|
|
17
|
+
import ArrowSquareUp from 'phosphor-svelte/lib/ArrowSquareUp';
|
|
18
|
+
import ArrowSquareDown from 'phosphor-svelte/lib/ArrowSquareDown';
|
|
17
19
|
import type { IconColor } from '../icons';
|
|
18
20
|
|
|
19
21
|
export type ActivityIconType =
|
|
@@ -27,6 +29,8 @@
|
|
|
27
29
|
| 'stop'
|
|
28
30
|
| 'warning'
|
|
29
31
|
| 'success'
|
|
32
|
+
| 'door-opened'
|
|
33
|
+
| 'door-closed'
|
|
30
34
|
| 'export-succeeded'
|
|
31
35
|
| 'export-failed';
|
|
32
36
|
|
|
@@ -49,6 +53,8 @@
|
|
|
49
53
|
stop: Stop,
|
|
50
54
|
warning: Warning,
|
|
51
55
|
success: Check,
|
|
56
|
+
'door-opened': ArrowSquareUp,
|
|
57
|
+
'door-closed': ArrowSquareDown,
|
|
52
58
|
'export-succeeded': DownloadSimple,
|
|
53
59
|
'export-failed': DownloadSimple,
|
|
54
60
|
};
|
|
@@ -64,6 +70,8 @@
|
|
|
64
70
|
stop: 'icon-secondary',
|
|
65
71
|
warning: 'icon-warning',
|
|
66
72
|
success: 'icon-secondary',
|
|
73
|
+
'door-opened': 'icon-warning',
|
|
74
|
+
'door-closed': 'icon-secondary',
|
|
67
75
|
'export-succeeded': 'icon-secondary',
|
|
68
76
|
'export-failed': 'icon-danger',
|
|
69
77
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Component } from 'svelte';
|
|
2
|
-
export type ActivityIconType = 'add' | 'capture' | 'delete' | 'edit' | 'failed' | 'pause' | 'start' | 'stop' | 'warning' | 'success' | 'export-succeeded' | 'export-failed';
|
|
2
|
+
export type ActivityIconType = 'add' | 'capture' | 'delete' | 'edit' | 'failed' | 'pause' | 'start' | 'stop' | 'warning' | 'success' | 'door-opened' | 'door-closed' | 'export-succeeded' | 'export-failed';
|
|
3
3
|
interface Props {
|
|
4
4
|
icon: ActivityIconType;
|
|
5
5
|
size?: number | string;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { Root } from './';
|
|
6
6
|
|
|
7
7
|
const { Story } = defineMeta({
|
|
8
|
-
title: '
|
|
8
|
+
title: 'Components/Drawer',
|
|
9
9
|
component: Root,
|
|
10
10
|
tags: ['autodocs'],
|
|
11
11
|
parameters: {
|
|
12
|
-
layout: '
|
|
12
|
+
layout: 'centered',
|
|
13
13
|
},
|
|
14
14
|
argTypes: {
|
|
15
15
|
side: {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</script>
|
|
46
46
|
|
|
47
47
|
<Story name="Default" asChild>
|
|
48
|
-
<Drawer.Root
|
|
48
|
+
<Drawer.Root>
|
|
49
49
|
<Drawer.Trigger>
|
|
50
50
|
<Button variant="primary">Open Drawer</Button>
|
|
51
51
|
</Drawer.Trigger>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</Story>
|
|
77
77
|
|
|
78
78
|
<Story name="Left Side">
|
|
79
|
-
<Drawer.Root
|
|
79
|
+
<Drawer.Root>
|
|
80
80
|
<Drawer.Trigger>
|
|
81
81
|
<Button variant="secondary">Open Left Drawer</Button>
|
|
82
82
|
</Drawer.Trigger>
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
</Story>
|
|
108
108
|
|
|
109
109
|
<Story name="With Overlay">
|
|
110
|
-
<Drawer.Root
|
|
110
|
+
<Drawer.Root>
|
|
111
111
|
<Drawer.Trigger>
|
|
112
112
|
<Button variant="primary">Open with Overlay</Button>
|
|
113
113
|
</Drawer.Trigger>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
</Story>
|
|
147
147
|
|
|
148
148
|
<Story name="Custom Width">
|
|
149
|
-
<Drawer.Root
|
|
149
|
+
<Drawer.Root>
|
|
150
150
|
<Drawer.Trigger>
|
|
151
151
|
<Button variant="primary">Open Wide Drawer</Button>
|
|
152
152
|
</Drawer.Trigger>
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
</Story>
|
|
183
183
|
|
|
184
184
|
<Story name="Without Close Button">
|
|
185
|
-
<Drawer.Root
|
|
185
|
+
<Drawer.Root>
|
|
186
186
|
<Drawer.Trigger>
|
|
187
187
|
<Button variant="primary">Open Drawer</Button>
|
|
188
188
|
</Drawer.Trigger>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
const { Story } = defineMeta({
|
|
11
11
|
component: ModalRootForMeta,
|
|
12
|
-
title: '
|
|
12
|
+
title: 'Components/Modal',
|
|
13
13
|
tags: ['autodocs'],
|
|
14
14
|
parameters: {
|
|
15
15
|
layout: 'centered',
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
</Story>
|
|
57
57
|
|
|
58
58
|
<Story name="With Description" asChild>
|
|
59
|
-
<Modal.Root
|
|
59
|
+
<Modal.Root>
|
|
60
60
|
<Modal.Trigger>
|
|
61
61
|
<Button variant="primary">Open Modal with Description</Button>
|
|
62
62
|
</Modal.Trigger>
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
</Story>
|
|
78
78
|
|
|
79
79
|
<Story name="Alert Modal" asChild>
|
|
80
|
-
<Modal.Root
|
|
80
|
+
<Modal.Root>
|
|
81
81
|
<Modal.Trigger>
|
|
82
82
|
<Button variant="primary">Open Alert Modal</Button>
|
|
83
83
|
</Modal.Trigger>
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
</Story>
|
|
108
108
|
|
|
109
109
|
<Story name="Sticky Header" asChild>
|
|
110
|
-
<Modal.Root
|
|
110
|
+
<Modal.Root>
|
|
111
111
|
<Modal.Trigger>
|
|
112
112
|
<Button variant="primary">Modal with Sticky Header</Button>
|
|
113
113
|
</Modal.Trigger>
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
</Story>
|
|
151
151
|
|
|
152
152
|
<Story name="Custom Button Rendering" asChild>
|
|
153
|
-
<Modal.Root
|
|
153
|
+
<Modal.Root>
|
|
154
154
|
<Modal.Trigger>
|
|
155
155
|
<Button variant="primary">Open Custom Button Modal</Button>
|
|
156
156
|
</Modal.Trigger>
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
<Story name="Custom Styling" asChild>
|
|
178
|
-
<Modal.Root
|
|
178
|
+
<Modal.Root>
|
|
179
179
|
<Modal.Trigger>
|
|
180
180
|
<Button variant="primary">Open Custom Modal</Button>
|
|
181
181
|
</Modal.Trigger>
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
</Story>
|
|
199
199
|
|
|
200
200
|
<Story name="API Documentation" asChild>
|
|
201
|
-
<Modal.Root
|
|
201
|
+
<Modal.Root>
|
|
202
202
|
<Modal.Trigger>
|
|
203
203
|
<Button variant="primary">API Example</Button>
|
|
204
204
|
</Modal.Trigger>
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
</Story>
|
|
245
245
|
|
|
246
246
|
<Story name="No Portal" asChild>
|
|
247
|
-
<Modal.Root
|
|
247
|
+
<Modal.Root>
|
|
248
248
|
<Modal.Trigger>
|
|
249
249
|
<Button variant="primary">Open Modal</Button>
|
|
250
250
|
</Modal.Trigger>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import RequiredStatusIndicator from './RequiredStatusIndicator.svelte';
|
|
4
4
|
|
|
5
5
|
const { Story } = defineMeta({
|
|
6
|
-
title: '
|
|
6
|
+
title: 'Components/RequiredStatusIndicator',
|
|
7
7
|
component: RequiredStatusIndicator,
|
|
8
8
|
tags: ['autodocs'],
|
|
9
9
|
argTypes: {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import Database from 'phosphor-svelte/lib/Database';
|
|
10
10
|
|
|
11
11
|
const { Story } = defineMeta({
|
|
12
|
-
title: '
|
|
12
|
+
title: 'Components/Select(New)',
|
|
13
13
|
tags: ['autodocs'],
|
|
14
14
|
argTypes: {
|
|
15
15
|
placeholder: { control: 'text', defaultValue: 'Select an option...' },
|