@reshape-biotech/design-system 1.1.1 → 1.2.0
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.svelte +12 -4
- package/dist/components/activity/Activity.svelte.d.ts +1 -1
- package/dist/components/banner/Banner.svelte +1 -1
- package/dist/components/datepicker/DatePicker.stories.svelte +6 -5
- package/dist/components/datepicker/DatePicker.svelte +1 -0
- package/dist/components/graphs/bar-chart/BarChart.stories.svelte +38 -0
- package/dist/components/graphs/bar-chart/BarChart.svelte +14 -1
- package/dist/components/graphs/bar-chart/BarChart.svelte.d.ts +1 -0
- package/dist/components/graphs/bar-chart/StackedBarChart.stories.svelte +32 -0
- package/dist/components/graphs/bar-chart/StackedBarChart.svelte +16 -3
- package/dist/components/graphs/bar-chart/StackedBarChart.svelte.d.ts +3 -2
- package/dist/components/graphs/chart/Chart.stories.svelte +0 -3
- package/dist/components/graphs/line/LineChart.stories.svelte +21 -13
- package/dist/components/graphs/line/LineChart.svelte +14 -20
- package/dist/components/graphs/line/LineChart.svelte.d.ts +1 -0
- package/dist/components/graphs/matrix/Matrix.stories.svelte +0 -14
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte +15 -40
- package/dist/components/graphs/multiline/MultiLineChart.svelte +0 -20
- package/dist/components/graphs/scatterplot/Scatterplot.stories.svelte +1 -1
- package/dist/components/icons/AnalysisIcon.svelte +10 -1
- package/dist/components/icons/AnalysisIcon.svelte.d.ts +1 -0
- package/dist/components/icons/index.d.ts +1 -1
- package/dist/components/icons/index.js +12 -0
- package/dist/components/notifications/Notifications.stories.svelte +107 -0
- package/dist/components/notifications/Notifications.stories.svelte.d.ts +19 -0
- package/dist/components/notifications/Notifications.svelte +32 -0
- package/dist/components/notifications/Notifications.svelte.d.ts +18 -0
- package/dist/components/notifications/index.d.ts +1 -0
- package/dist/components/notifications/index.js +1 -0
- package/dist/components/select-new/components/Group.svelte +3 -2
- package/dist/components/select-new/components/Group.svelte.d.ts +1 -0
- package/dist/components/select-new/index.d.ts +1 -1
- package/dist/components/stepper/Stepper.stories.svelte +243 -0
- package/dist/components/stepper/Stepper.stories.svelte.d.ts +19 -0
- package/dist/components/stepper/components/stepper-root.svelte +20 -0
- package/dist/components/stepper/components/stepper-root.svelte.d.ts +9 -0
- package/dist/components/stepper/components/stepper-step.svelte +100 -0
- package/dist/components/stepper/components/stepper-step.svelte.d.ts +11 -0
- package/dist/components/stepper/index.d.ts +15 -0
- package/dist/components/stepper/index.js +2 -0
- package/dist/components/toast/Toast.stories.svelte +209 -0
- package/dist/components/toast/Toast.stories.svelte.d.ts +19 -0
- package/dist/components/toast/Toast.svelte +62 -0
- package/dist/components/toast/Toast.svelte.d.ts +7 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/tailwind.preset.d.ts +3 -0
- package/dist/tokens.d.ts +6 -0
- package/dist/tokens.js +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
import { getContext } from 'svelte';
|
|
4
|
+
import { Icon } from '../../icons/';
|
|
5
|
+
import type { StepState } from '../';
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
children: Snippet;
|
|
9
|
+
state?: StepState;
|
|
10
|
+
stepNumber: string;
|
|
11
|
+
class?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
let { children, state: stateProp, stepNumber, class: className = '' }: Props = $props();
|
|
15
|
+
const id = $props.id();
|
|
16
|
+
|
|
17
|
+
type StepperContext = {
|
|
18
|
+
currentStep: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const context = getContext<StepperContext | undefined>('STEPPER_CONTEXT');
|
|
22
|
+
|
|
23
|
+
const currentState = $derived.by(() => {
|
|
24
|
+
if (context && context.currentStep !== undefined) {
|
|
25
|
+
if (context.currentStep > stepNumber) {
|
|
26
|
+
return 'completed';
|
|
27
|
+
} else if (context.currentStep === stepNumber) {
|
|
28
|
+
return 'active';
|
|
29
|
+
} else {
|
|
30
|
+
return 'future';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return stateProp ?? 'future';
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const stateVariants = {
|
|
37
|
+
completed: {
|
|
38
|
+
container: 'bg-transparent text-primary-inverse',
|
|
39
|
+
iconContainer: 'bg-primary ',
|
|
40
|
+
iconColor: 'text-surface',
|
|
41
|
+
labelColor: 'text-primary',
|
|
42
|
+
showIcon: true
|
|
43
|
+
},
|
|
44
|
+
active: {
|
|
45
|
+
container: 'bg-accent text-primary-inverse',
|
|
46
|
+
iconContainer: 'bg-primary ',
|
|
47
|
+
iconColor: 'text-surface',
|
|
48
|
+
labelColor: 'text-primary',
|
|
49
|
+
showIcon: false
|
|
50
|
+
},
|
|
51
|
+
future: {
|
|
52
|
+
container: 'bg-transparent',
|
|
53
|
+
iconContainer: 'bg-transparent border border-interactive',
|
|
54
|
+
iconColor: 'text-secondary',
|
|
55
|
+
labelColor: 'text-secondary',
|
|
56
|
+
showIcon: false
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const variant = $derived(stateVariants[currentState]);
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<div
|
|
64
|
+
{id}
|
|
65
|
+
class="relative flex items-center gap-3 rounded-lg px-2 py-3 {variant.container} {className}"
|
|
66
|
+
role="progressbar"
|
|
67
|
+
aria-valuenow={currentState === 'completed' ? 100 : currentState === 'active' ? 50 : 0}
|
|
68
|
+
aria-valuemin="0"
|
|
69
|
+
aria-valuemax="100"
|
|
70
|
+
aria-label="Step {stepNumber}"
|
|
71
|
+
>
|
|
72
|
+
<div
|
|
73
|
+
class="flex h-6 w-6 items-center justify-center rounded-md {variant.iconContainer}"
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
>
|
|
76
|
+
{#if variant.showIcon}
|
|
77
|
+
<Icon iconName="Check" class="h-3 w-3 {variant.iconColor}" />
|
|
78
|
+
{:else}
|
|
79
|
+
<span class="text-xs font-medium leading-none {variant.iconColor}">
|
|
80
|
+
{stepNumber}
|
|
81
|
+
</span>
|
|
82
|
+
{/if}
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<span class="text-sm font-medium leading-tight {variant.labelColor} flex-1 truncate">
|
|
86
|
+
{@render children()}
|
|
87
|
+
</span>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<style>
|
|
91
|
+
div[role='progressbar']:not(:last-child)::after {
|
|
92
|
+
content: '';
|
|
93
|
+
position: absolute;
|
|
94
|
+
width: 1px;
|
|
95
|
+
background-color: #12192a0d;
|
|
96
|
+
left: calc(0.5rem + 1.5rem / 2 - 1px / 2);
|
|
97
|
+
top: 2.25rem;
|
|
98
|
+
height: 2.25rem;
|
|
99
|
+
}
|
|
100
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { StepState } from '../';
|
|
3
|
+
interface Props {
|
|
4
|
+
children: Snippet;
|
|
5
|
+
state?: StepState;
|
|
6
|
+
stepNumber: string;
|
|
7
|
+
class?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const StepperStep: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type StepperStep = ReturnType<typeof StepperStep>;
|
|
11
|
+
export default StepperStep;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
export { default as Root } from './components/stepper-root.svelte';
|
|
3
|
+
export { default as Step } from './components/stepper-step.svelte';
|
|
4
|
+
export type StepState = 'completed' | 'active' | 'future';
|
|
5
|
+
export interface StepperRootProps {
|
|
6
|
+
children: Snippet;
|
|
7
|
+
class?: string;
|
|
8
|
+
currentStep?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface StepperStepProps {
|
|
11
|
+
children: Snippet;
|
|
12
|
+
state?: StepState;
|
|
13
|
+
stepNumber: string;
|
|
14
|
+
class?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import type { Notification } from '../../../notifications';
|
|
3
|
+
import Toast from './Toast.svelte';
|
|
4
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
5
|
+
|
|
6
|
+
const { Story } = defineMeta({
|
|
7
|
+
component: Toast,
|
|
8
|
+
title: 'Design System/Toast',
|
|
9
|
+
tags: ['autodocs']
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const defaultNotification: Notification = {
|
|
13
|
+
id: '1',
|
|
14
|
+
type: 'default',
|
|
15
|
+
message: 'This is a default notification',
|
|
16
|
+
dismissable: false
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const dangerNotification: Notification = {
|
|
20
|
+
id: '2',
|
|
21
|
+
type: 'danger',
|
|
22
|
+
message: 'This is a danger notification',
|
|
23
|
+
dismissable: false
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const warningNotification: Notification = {
|
|
27
|
+
id: '3',
|
|
28
|
+
type: 'warning',
|
|
29
|
+
message: 'This is a warning notification',
|
|
30
|
+
dismissable: false
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const infoNotification: Notification = {
|
|
34
|
+
id: '4',
|
|
35
|
+
type: 'info',
|
|
36
|
+
message: 'This is an info notification',
|
|
37
|
+
dismissable: false
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const successNotification: Notification = {
|
|
41
|
+
id: '5',
|
|
42
|
+
type: 'success',
|
|
43
|
+
message: 'This is a success notification',
|
|
44
|
+
dismissable: false
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const defaultIconNotification: Notification = {
|
|
48
|
+
id: '6',
|
|
49
|
+
type: 'default',
|
|
50
|
+
message: 'This is a default notification with icon',
|
|
51
|
+
icon: 'Bell',
|
|
52
|
+
dismissable: false
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const dangerIconNotification: Notification = {
|
|
56
|
+
id: '7',
|
|
57
|
+
type: 'danger',
|
|
58
|
+
message: 'This is a danger notification with icon',
|
|
59
|
+
icon: 'SealWarning',
|
|
60
|
+
dismissable: false
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const warningIconNotification: Notification = {
|
|
64
|
+
id: '8',
|
|
65
|
+
type: 'warning',
|
|
66
|
+
message: 'This is a warning notification with icon',
|
|
67
|
+
icon: 'Warning',
|
|
68
|
+
dismissable: false
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const infoIconNotification: Notification = {
|
|
72
|
+
id: '9',
|
|
73
|
+
type: 'info',
|
|
74
|
+
message: 'This is an info notification with icon',
|
|
75
|
+
icon: 'Info',
|
|
76
|
+
dismissable: false
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
const successIconNotification: Notification = {
|
|
80
|
+
id: '10',
|
|
81
|
+
type: 'success',
|
|
82
|
+
message: 'This is a success notification with icon',
|
|
83
|
+
icon: 'Check',
|
|
84
|
+
dismissable: false
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const defaultDismissableNotificationWithIcon: Notification = {
|
|
88
|
+
id: '11',
|
|
89
|
+
type: 'default',
|
|
90
|
+
message: 'This is a dismissable default notification with icon',
|
|
91
|
+
icon: 'Bell',
|
|
92
|
+
dismissable: true
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const dangerDismissableNotificationWithIcon: Notification = {
|
|
96
|
+
id: '12',
|
|
97
|
+
type: 'danger',
|
|
98
|
+
message: 'This is a dismissable danger notification with icon',
|
|
99
|
+
icon: 'SealWarning',
|
|
100
|
+
dismissable: true
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const warningDismissableNotificationWithIcon: Notification = {
|
|
104
|
+
id: '13',
|
|
105
|
+
type: 'warning',
|
|
106
|
+
message: 'This is a dismissable warning notification with icon',
|
|
107
|
+
icon: 'Warning',
|
|
108
|
+
dismissable: true
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const infoDismissableNotificationWithIcon: Notification = {
|
|
112
|
+
id: '14',
|
|
113
|
+
type: 'info',
|
|
114
|
+
message: 'This is a dismissable info notification with icon',
|
|
115
|
+
icon: 'Info',
|
|
116
|
+
dismissable: true
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const successDismissableNotificationWithIcon: Notification = {
|
|
120
|
+
id: '15',
|
|
121
|
+
type: 'success',
|
|
122
|
+
message: 'This is a dismissable success notification with icon',
|
|
123
|
+
icon: 'Check',
|
|
124
|
+
dismissable: true
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const defaultDismissableNoIconNotification: Notification = {
|
|
128
|
+
id: '16',
|
|
129
|
+
type: 'default',
|
|
130
|
+
message: 'This is a dismissable default notification without icon',
|
|
131
|
+
dismissable: true
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const dangerDismissableNoIconNotification: Notification = {
|
|
135
|
+
id: '17',
|
|
136
|
+
type: 'danger',
|
|
137
|
+
message: 'This is a dismissable danger notification without icon',
|
|
138
|
+
dismissable: true
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const warningDismissableNoIconNotification: Notification = {
|
|
142
|
+
id: '18',
|
|
143
|
+
type: 'warning',
|
|
144
|
+
message: 'This is a dismissable warning notification without icon',
|
|
145
|
+
dismissable: true
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const infoDismissableNoIconNotification: Notification = {
|
|
149
|
+
id: '19',
|
|
150
|
+
type: 'info',
|
|
151
|
+
message: 'This is a dismissable info notification without icon',
|
|
152
|
+
dismissable: true
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const successDismissableNoIconNotification: Notification = {
|
|
156
|
+
id: '20',
|
|
157
|
+
type: 'success',
|
|
158
|
+
message: 'This is a dismissable success notification without icon',
|
|
159
|
+
dismissable: true
|
|
160
|
+
};
|
|
161
|
+
</script>
|
|
162
|
+
|
|
163
|
+
<Story name="Notifications" asChild>
|
|
164
|
+
<div class="space-y-8">
|
|
165
|
+
<div class="space-y-4">
|
|
166
|
+
<h5 class="text-lg font-semibold">Basic Notifications</h5>
|
|
167
|
+
<div class="space-y-2">
|
|
168
|
+
<Toast notification={defaultNotification} />
|
|
169
|
+
<Toast notification={dangerNotification} />
|
|
170
|
+
<Toast notification={warningNotification} />
|
|
171
|
+
<Toast notification={infoNotification} />
|
|
172
|
+
<Toast notification={successNotification} />
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<div class="space-y-4">
|
|
177
|
+
<h5 class="text-lg font-semibold">Notifications with Icons</h5>
|
|
178
|
+
<div class="space-y-2">
|
|
179
|
+
<Toast notification={defaultIconNotification} />
|
|
180
|
+
<Toast notification={dangerIconNotification} />
|
|
181
|
+
<Toast notification={warningIconNotification} />
|
|
182
|
+
<Toast notification={infoIconNotification} />
|
|
183
|
+
<Toast notification={successIconNotification} />
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<div class="space-y-4">
|
|
188
|
+
<h5 class="text-lg font-semibold">Dismissable Notifications</h5>
|
|
189
|
+
<div class="space-y-2">
|
|
190
|
+
<Toast notification={defaultDismissableNoIconNotification} />
|
|
191
|
+
<Toast notification={dangerDismissableNoIconNotification} />
|
|
192
|
+
<Toast notification={warningDismissableNoIconNotification} />
|
|
193
|
+
<Toast notification={infoDismissableNoIconNotification} />
|
|
194
|
+
<Toast notification={successDismissableNoIconNotification} />
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<div class="space-y-4">
|
|
199
|
+
<h5 class="text-lg font-semibold">Dismissable Notifications with Icons</h5>
|
|
200
|
+
<div class="space-y-2">
|
|
201
|
+
<Toast notification={defaultDismissableNotificationWithIcon} />
|
|
202
|
+
<Toast notification={dangerDismissableNotificationWithIcon} />
|
|
203
|
+
<Toast notification={warningDismissableNotificationWithIcon} />
|
|
204
|
+
<Toast notification={infoDismissableNotificationWithIcon} />
|
|
205
|
+
<Toast notification={successDismissableNotificationWithIcon} />
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</Story>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Toast from './Toast.svelte';
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const Toast: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
16
|
+
[evt: string]: CustomEvent<any>;
|
|
17
|
+
}, {}, {}, string>;
|
|
18
|
+
type Toast = InstanceType<typeof Toast>;
|
|
19
|
+
export default Toast;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { type Notification, notifications } from '../../../notifications';
|
|
3
|
+
import Icon from '../icons/Icon.svelte';
|
|
4
|
+
import { type IconColor } from '../icons';
|
|
5
|
+
import { tokens } from '../../tokens';
|
|
6
|
+
import IconButton from '../icon-button/IconButton.svelte';
|
|
7
|
+
|
|
8
|
+
let { notification }: { notification: Notification } = $props();
|
|
9
|
+
|
|
10
|
+
const color = {
|
|
11
|
+
danger: tokens.backgroundColor['danger-inverse'],
|
|
12
|
+
success: tokens.backgroundColor['success-inverse-hover'],
|
|
13
|
+
warning: tokens.backgroundColor['warning-inverse-hover'],
|
|
14
|
+
info: tokens.backgroundColor['blue-inverse'],
|
|
15
|
+
default: tokens.backgroundColor.surface
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const textColor: Record<string, IconColor | 'inherit'> = {
|
|
19
|
+
danger: 'primary-inverse',
|
|
20
|
+
success: 'primary-inverse',
|
|
21
|
+
warning: 'primary-inverse',
|
|
22
|
+
info: 'primary-inverse',
|
|
23
|
+
default: 'inherit'
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<div
|
|
28
|
+
class="my-1 flex min-h-10 min-w-80 flex-row items-center rounded-lg px-2 shadow-md"
|
|
29
|
+
style="background: {color[notification.type]}"
|
|
30
|
+
class:border={notification.type === 'default'}
|
|
31
|
+
class:border-base-200={notification.type === 'default'}
|
|
32
|
+
>
|
|
33
|
+
{#if notification.icon}
|
|
34
|
+
<Icon
|
|
35
|
+
color={textColor[notification.type]}
|
|
36
|
+
size={'14'}
|
|
37
|
+
iconName={notification.icon}
|
|
38
|
+
class="flex h-6 w-6 items-center justify-center rounded-md {notification.type !== 'default'
|
|
39
|
+
? 'bg-neutral-inverse-hover'
|
|
40
|
+
: 'bg-neutral'} p-1 {textColor[notification.type]}"
|
|
41
|
+
/>
|
|
42
|
+
{/if}
|
|
43
|
+
<div
|
|
44
|
+
class="p-2 font-medium"
|
|
45
|
+
style="display:block"
|
|
46
|
+
class:text-base-white-default={notification.type !== 'default'}
|
|
47
|
+
>
|
|
48
|
+
{notification.message}
|
|
49
|
+
</div>
|
|
50
|
+
{#if notification.dismissable}
|
|
51
|
+
<div class="grow"></div>
|
|
52
|
+
<div class="py-2">
|
|
53
|
+
<IconButton rounded={false} size="xs" onclick={() => notifications.dismiss(notification.id)}>
|
|
54
|
+
<Icon
|
|
55
|
+
color={textColor[notification.type]}
|
|
56
|
+
iconName={'X'}
|
|
57
|
+
class="rounded-md {textColor[notification.type]}"
|
|
58
|
+
/>
|
|
59
|
+
</IconButton>
|
|
60
|
+
</div>
|
|
61
|
+
{/if}
|
|
62
|
+
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toast } from './Toast.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toast } from './Toast.svelte';
|
package/dist/index.d.ts
CHANGED
|
@@ -22,19 +22,23 @@ export * from './components/markdown/';
|
|
|
22
22
|
export * from './components/modal/';
|
|
23
23
|
export * from './components/manual-cfu-counter/';
|
|
24
24
|
export * from './components/notification-popup/';
|
|
25
|
+
export * from './components/notifications/';
|
|
25
26
|
export * from './components/pill/';
|
|
26
27
|
export * from './components/progress-circle/';
|
|
27
28
|
export * from './components/required-status-indicator/';
|
|
28
29
|
export * from './components/segmented-control-buttons/';
|
|
29
30
|
export * from './components/select/';
|
|
31
|
+
export * as SelectNew from './components/select-new/';
|
|
30
32
|
export * from './components/skeleton-loader/';
|
|
31
33
|
export * from './components/slider/';
|
|
32
34
|
export * from './components/spinner/';
|
|
33
35
|
export * from './components/stat-card/';
|
|
34
36
|
export * from './components/status-badge/';
|
|
37
|
+
export * from './components/stepper/';
|
|
35
38
|
export * from './components/table/';
|
|
36
39
|
export * from './components/tabs/';
|
|
37
40
|
export * from './components/tag/';
|
|
41
|
+
export * from './components/toast/';
|
|
38
42
|
export * from './components/toggle-icon-button/';
|
|
39
43
|
export * from './components/textarea/index';
|
|
40
44
|
export * from './components/tooltip/';
|
|
@@ -42,4 +46,5 @@ export * from './components/toggle/';
|
|
|
42
46
|
export * from './components/checkbox/';
|
|
43
47
|
export * from './components/sjsf-wrappers/';
|
|
44
48
|
export { tokens } from './tokens';
|
|
49
|
+
export { notifications } from '../notifications';
|
|
45
50
|
import './app.css';
|
package/dist/index.js
CHANGED
|
@@ -23,19 +23,23 @@ export * from './components/markdown/';
|
|
|
23
23
|
export * from './components/modal/';
|
|
24
24
|
export * from './components/manual-cfu-counter/';
|
|
25
25
|
export * from './components/notification-popup/';
|
|
26
|
+
export * from './components/notifications/';
|
|
26
27
|
export * from './components/pill/';
|
|
27
28
|
export * from './components/progress-circle/';
|
|
28
29
|
export * from './components/required-status-indicator/';
|
|
29
30
|
export * from './components/segmented-control-buttons/';
|
|
30
31
|
export * from './components/select/';
|
|
32
|
+
export * as SelectNew from './components/select-new/';
|
|
31
33
|
export * from './components/skeleton-loader/';
|
|
32
34
|
export * from './components/slider/';
|
|
33
35
|
export * from './components/spinner/';
|
|
34
36
|
export * from './components/stat-card/';
|
|
35
37
|
export * from './components/status-badge/';
|
|
38
|
+
export * from './components/stepper/';
|
|
36
39
|
export * from './components/table/';
|
|
37
40
|
export * from './components/tabs/';
|
|
38
41
|
export * from './components/tag/';
|
|
42
|
+
export * from './components/toast/';
|
|
39
43
|
export * from './components/toggle-icon-button/';
|
|
40
44
|
export * from './components/textarea/index';
|
|
41
45
|
export * from './components/tooltip/';
|
|
@@ -44,4 +48,5 @@ export * from './components/checkbox/';
|
|
|
44
48
|
export * from './components/sjsf-wrappers/';
|
|
45
49
|
// Styles and Tokens
|
|
46
50
|
export { tokens } from './tokens';
|
|
51
|
+
export { notifications } from '../notifications';
|
|
47
52
|
import './app.css';
|
|
@@ -45,18 +45,21 @@ declare const config: {
|
|
|
45
45
|
10: string;
|
|
46
46
|
25: string;
|
|
47
47
|
50: string;
|
|
48
|
+
75: string;
|
|
48
49
|
};
|
|
49
50
|
4: {
|
|
50
51
|
default: string;
|
|
51
52
|
10: string;
|
|
52
53
|
25: string;
|
|
53
54
|
50: string;
|
|
55
|
+
75: string;
|
|
54
56
|
};
|
|
55
57
|
5: {
|
|
56
58
|
default: string;
|
|
57
59
|
10: string;
|
|
58
60
|
25: string;
|
|
59
61
|
50: string;
|
|
62
|
+
75: string;
|
|
60
63
|
};
|
|
61
64
|
6: string;
|
|
62
65
|
};
|
package/dist/tokens.d.ts
CHANGED
|
@@ -40,18 +40,21 @@ export declare const colors: {
|
|
|
40
40
|
10: string;
|
|
41
41
|
25: string;
|
|
42
42
|
50: string;
|
|
43
|
+
75: string;
|
|
43
44
|
};
|
|
44
45
|
4: {
|
|
45
46
|
default: string;
|
|
46
47
|
10: string;
|
|
47
48
|
25: string;
|
|
48
49
|
50: string;
|
|
50
|
+
75: string;
|
|
49
51
|
};
|
|
50
52
|
5: {
|
|
51
53
|
default: string;
|
|
52
54
|
10: string;
|
|
53
55
|
25: string;
|
|
54
56
|
50: string;
|
|
57
|
+
75: string;
|
|
55
58
|
};
|
|
56
59
|
6: string;
|
|
57
60
|
};
|
|
@@ -475,18 +478,21 @@ export declare const tokens: {
|
|
|
475
478
|
10: string;
|
|
476
479
|
25: string;
|
|
477
480
|
50: string;
|
|
481
|
+
75: string;
|
|
478
482
|
};
|
|
479
483
|
4: {
|
|
480
484
|
default: string;
|
|
481
485
|
10: string;
|
|
482
486
|
25: string;
|
|
483
487
|
50: string;
|
|
488
|
+
75: string;
|
|
484
489
|
};
|
|
485
490
|
5: {
|
|
486
491
|
default: string;
|
|
487
492
|
10: string;
|
|
488
493
|
25: string;
|
|
489
494
|
50: string;
|
|
495
|
+
75: string;
|
|
490
496
|
};
|
|
491
497
|
6: string;
|
|
492
498
|
};
|
package/dist/tokens.js
CHANGED
|
@@ -35,9 +35,9 @@ export const colors = {
|
|
|
35
35
|
periwinkle: {
|
|
36
36
|
1: '#eeeefd',
|
|
37
37
|
2: '#cbc9fa',
|
|
38
|
-
3: { default: '#8e8af4', 10: '#8e8af41A', 25: '#8e8af440', 50: '#8e8af480' },
|
|
39
|
-
4: { default: '#7973f1', 10: '#7973f11A', 25: '#7973f140', 50: '#7973f180' },
|
|
40
|
-
5: { default: '#5750ee', 10: '#5750ee1A', 25: '#5750ee40', 50: '#5750ee80' },
|
|
38
|
+
3: { default: '#8e8af4', 10: '#8e8af41A', 25: '#8e8af440', 50: '#8e8af480', 75: '#8e8af4BF' },
|
|
39
|
+
4: { default: '#7973f1', 10: '#7973f11A', 25: '#7973f140', 50: '#7973f180', 75: '#7973f1BF' },
|
|
40
|
+
5: { default: '#5750ee', 10: '#5750ee1A', 25: '#5750ee40', 50: '#5750ee80', 75: '#5750eeBF' },
|
|
41
41
|
6: '#4741c1'
|
|
42
42
|
},
|
|
43
43
|
orange: {
|