@reshape-biotech/design-system 0.0.45 → 0.0.48
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/app.css +43 -31
- package/dist/components/activity/Activity.stories.svelte +100 -0
- package/dist/components/activity/Activity.stories.svelte.d.ts +19 -0
- package/dist/components/activity/Activity.svelte +80 -0
- package/dist/components/activity/Activity.svelte.d.ts +18 -0
- package/dist/components/activity/index.d.ts +1 -0
- package/dist/components/activity/index.js +1 -0
- package/dist/components/avatar/Avatar.svelte +3 -3
- package/dist/components/banner/Banner.svelte +2 -2
- package/dist/components/button/Button.svelte +94 -7
- package/dist/components/button/Button.svelte.d.ts +8 -5
- package/dist/components/collapsible/Collapsible.stories.svelte +40 -0
- package/dist/components/collapsible/Collapsible.stories.svelte.d.ts +19 -0
- package/dist/components/collapsible/components/collapsible-content.svelte +26 -0
- package/dist/components/collapsible/components/collapsible-content.svelte.d.ts +10 -0
- package/dist/components/collapsible/components/collapsible-trigger.svelte +36 -0
- package/dist/components/collapsible/components/collapsible-trigger.svelte.d.ts +4 -0
- package/dist/components/collapsible/index.d.ts +5 -0
- package/dist/components/collapsible/index.js +4 -0
- package/dist/components/collapsible/types.d.ts +9 -0
- package/dist/components/collapsible/types.js +1 -0
- package/dist/components/combobox/Combobox.stories.svelte +119 -0
- package/dist/components/combobox/Combobox.stories.svelte.d.ts +19 -0
- package/dist/components/combobox/components/combobox-add.svelte +30 -0
- package/dist/components/combobox/components/combobox-add.svelte.d.ts +8 -0
- package/dist/components/combobox/components/combobox-content.svelte +137 -0
- package/dist/components/combobox/components/combobox-content.svelte.d.ts +4 -0
- package/dist/components/combobox/components/combobox-indicator.svelte +5 -0
- package/dist/components/combobox/components/combobox-indicator.svelte.d.ts +18 -0
- package/dist/components/combobox/index.d.ts +14 -0
- package/dist/components/combobox/index.js +15 -0
- package/dist/components/combobox/types.d.ts +20 -0
- package/dist/components/combobox/types.js +1 -0
- package/dist/components/datepicker/DatePicker.svelte +158 -97
- package/dist/components/divider/Divider.svelte +1 -1
- package/dist/components/drawer/Drawer.svelte +1 -1
- package/dist/components/drawer/DrawerLabel.svelte +2 -2
- package/dist/components/dropdown/components/DropdownContent.svelte +4 -1
- package/dist/components/dropdown/components/DropdownMenu.svelte +1 -1
- package/dist/components/dropdown/components/DropdownTrigger.svelte +4 -2
- package/dist/components/dropdown/components/DropdownTrigger.svelte.d.ts +1 -0
- package/dist/components/dropdown/components/OutlinedButton.svelte +2 -2
- package/dist/components/empty-content/EmptyContent.svelte +19 -0
- package/dist/components/empty-content/EmptyContent.svelte.d.ts +8 -0
- package/dist/components/graphs/chart/Chart.stories.svelte +128 -0
- package/dist/components/graphs/chart/Chart.stories.svelte.d.ts +19 -0
- package/dist/components/graphs/chart/Chart.svelte +145 -0
- package/dist/components/graphs/chart/Chart.svelte.d.ts +17 -0
- package/dist/components/graphs/index.d.ts +4 -0
- package/dist/components/graphs/index.js +4 -0
- package/dist/components/graphs/line/LineChart.stories.svelte +73 -0
- package/dist/components/graphs/line/LineChart.stories.svelte.d.ts +19 -0
- package/dist/components/graphs/line/LineChart.svelte +102 -0
- package/dist/components/graphs/line/LineChart.svelte.d.ts +18 -0
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte +77 -0
- package/dist/components/graphs/multiline/MultiLineChart.stories.svelte.d.ts +19 -0
- package/dist/components/graphs/multiline/MultiLineChart.svelte +108 -0
- package/dist/components/graphs/multiline/MultiLineChart.svelte.d.ts +22 -0
- package/dist/components/graphs/scatterplot/Scatterplot.stories.svelte +78 -0
- package/dist/components/graphs/scatterplot/Scatterplot.stories.svelte.d.ts +19 -0
- package/dist/components/graphs/scatterplot/Scatterplot.svelte +67 -0
- package/dist/components/graphs/scatterplot/Scatterplot.svelte.d.ts +16 -0
- package/dist/components/icon-button/IconButton.svelte +18 -5
- package/dist/components/icon-button/IconButton.svelte.d.ts +2 -2
- package/dist/components/icons/AnalysisIcon.stories.svelte +38 -0
- package/dist/components/icons/AnalysisIcon.stories.svelte.d.ts +27 -0
- package/dist/components/icons/AnalysisIcon.svelte +110 -0
- package/dist/components/icons/AnalysisIcon.svelte.d.ts +10 -0
- package/dist/components/icons/Icon.svelte +23 -0
- package/dist/components/icons/Icon.svelte.d.ts +4 -0
- package/dist/components/icons/custom/Halo.svelte +32 -0
- package/dist/components/icons/custom/Halo.svelte.d.ts +26 -0
- package/dist/components/icons/custom/Well.svelte +26 -0
- package/dist/components/icons/custom/Well.svelte.d.ts +26 -0
- package/dist/components/icons/index.d.ts +17 -0
- package/dist/components/icons/index.js +21 -0
- package/dist/components/icons/types.d.ts +0 -0
- package/dist/components/icons/types.js +1 -0
- package/dist/components/image/Image.svelte +5 -6
- package/dist/components/input/Input.svelte +63 -41
- package/dist/components/input/Input.svelte.d.ts +7 -4
- package/dist/components/list/List.svelte +4 -10
- package/dist/components/logo/Logo.svelte +8 -5
- package/dist/components/logo/Logo.svelte.d.ts +1 -0
- package/dist/components/modal/Modal.svelte +1 -1
- package/dist/components/notification-popup/NotificationPopup.stories.svelte +2 -2
- package/dist/components/notification-popup/NotificationPopup.svelte +4 -2
- package/dist/components/segmented-control-buttons/ControlButton.svelte +2 -4
- package/dist/components/select/Select.svelte +7 -4
- package/dist/components/skeleton-loader/StatcardSkeleton.svelte +2 -5
- package/dist/components/slider/Slider.svelte +32 -23
- package/dist/components/slider/Slider.svelte.d.ts +2 -0
- package/dist/components/stat-card/StatCard.svelte +6 -6
- package/dist/components/table/Table.svelte +1 -1
- package/dist/components/table/components/Th.svelte +1 -1
- package/dist/components/tag/Tag.svelte +3 -5
- package/dist/components/tag/Tag.svelte.d.ts +5 -4
- package/dist/components/toggle/Toggle.svelte.d.ts +3 -2
- package/dist/fonts/afAnotherSans-Medium.woff2 +0 -0
- package/dist/fonts/afAnotherSans-Regular.woff2 +0 -0
- package/dist/fonts/afAnotherSans-SemiBold.woff2 +0 -0
- package/dist/fonts/afAnotherSans.woff2 +0 -0
- package/dist/fonts/index.d.ts +1 -3
- package/dist/fonts/index.js +2 -6
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/tailwind-safelist.js +1 -1
- package/dist/tailwind.preset.d.ts +19 -6
- package/dist/tailwind.preset.js +5 -4
- package/dist/tokens.d.ts +39 -11
- package/dist/tokens.js +34 -16
- package/package.json +18 -15
- package/dist/fonts/MDSystem-Medium.woff +0 -0
- package/dist/fonts/MDSystem-Medium.woff2 +0 -0
- package/dist/fonts/MDSystem-Regular.woff +0 -0
- package/dist/fonts/MDSystem-Regular.woff2 +0 -0
- package/dist/fonts/MDSystem-Semibold.woff +0 -0
- package/dist/fonts/MDSystem-Semibold.woff2 +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
export * from './components/activity/';
|
|
1
2
|
export * from './components/avatar/';
|
|
2
3
|
export * from './components/banner/';
|
|
3
4
|
export * from './components/button/';
|
|
5
|
+
export * as Collapsible from './components/collapsible/';
|
|
6
|
+
export * as Combobox from './components/combobox/';
|
|
7
|
+
export * from './components/graphs/';
|
|
4
8
|
export * from './components/datepicker/';
|
|
5
9
|
export * from './components/divider/';
|
|
6
10
|
export * from './components/drawer/';
|
|
7
11
|
export * from './components/drawer/';
|
|
8
12
|
export * from './components/dropdown/';
|
|
13
|
+
export * from './components/icons/';
|
|
9
14
|
export * from './components/icon-button/';
|
|
10
15
|
export * from './components/image';
|
|
11
16
|
export * from './components/input/';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
// Components
|
|
2
|
+
export * from './components/activity/';
|
|
2
3
|
export * from './components/avatar/';
|
|
3
4
|
export * from './components/banner/';
|
|
4
5
|
export * from './components/button/';
|
|
6
|
+
export * as Collapsible from './components/collapsible/';
|
|
7
|
+
export * as Combobox from './components/combobox/';
|
|
8
|
+
export * from './components/graphs/';
|
|
5
9
|
export * from './components/datepicker/';
|
|
6
10
|
export * from './components/divider/';
|
|
7
11
|
export * from './components/drawer/';
|
|
8
12
|
export * from './components/drawer/';
|
|
9
13
|
export * from './components/dropdown/';
|
|
14
|
+
export * from './components/icons/';
|
|
10
15
|
export * from './components/icon-button/';
|
|
11
16
|
export * from './components/image';
|
|
12
17
|
export * from './components/input/';
|
|
@@ -20,6 +20,7 @@ declare const config: {
|
|
|
20
20
|
midnight: {
|
|
21
21
|
default: string;
|
|
22
22
|
5: string;
|
|
23
|
+
8: string;
|
|
23
24
|
10: string;
|
|
24
25
|
15: string;
|
|
25
26
|
25: string;
|
|
@@ -43,16 +44,19 @@ declare const config: {
|
|
|
43
44
|
default: string;
|
|
44
45
|
10: string;
|
|
45
46
|
25: string;
|
|
47
|
+
50: string;
|
|
46
48
|
};
|
|
47
49
|
4: {
|
|
48
50
|
default: string;
|
|
49
51
|
10: string;
|
|
50
52
|
25: string;
|
|
53
|
+
50: string;
|
|
51
54
|
};
|
|
52
55
|
5: {
|
|
53
56
|
default: string;
|
|
54
57
|
10: string;
|
|
55
58
|
25: string;
|
|
59
|
+
50: string;
|
|
56
60
|
};
|
|
57
61
|
6: string;
|
|
58
62
|
};
|
|
@@ -156,6 +160,7 @@ declare const config: {
|
|
|
156
160
|
shadow: {
|
|
157
161
|
2: string;
|
|
158
162
|
4: string;
|
|
163
|
+
6: string;
|
|
159
164
|
8: string;
|
|
160
165
|
12: string;
|
|
161
166
|
16: string;
|
|
@@ -233,6 +238,7 @@ declare const config: {
|
|
|
233
238
|
};
|
|
234
239
|
borderColor: {
|
|
235
240
|
'dark-static': string;
|
|
241
|
+
'dark-input': string;
|
|
236
242
|
'dark-interactive': string;
|
|
237
243
|
'dark-hover': string;
|
|
238
244
|
'dark-focus': string;
|
|
@@ -249,6 +255,7 @@ declare const config: {
|
|
|
249
255
|
'icon-secondary': string;
|
|
250
256
|
'icon-tertiary': string;
|
|
251
257
|
'icon-primary-inverse': string;
|
|
258
|
+
'icon-secondary-inverse': string;
|
|
252
259
|
'icon-accent': string;
|
|
253
260
|
'icon-success': string;
|
|
254
261
|
'icon-warning': string;
|
|
@@ -279,12 +286,19 @@ declare const config: {
|
|
|
279
286
|
};
|
|
280
287
|
boxShadow: {
|
|
281
288
|
input: string;
|
|
282
|
-
field: string;
|
|
283
|
-
nav: string;
|
|
284
|
-
calendar: string;
|
|
285
289
|
container: string;
|
|
286
|
-
|
|
287
|
-
|
|
290
|
+
menu: string;
|
|
291
|
+
};
|
|
292
|
+
outlineColor: {
|
|
293
|
+
'dark-static': string;
|
|
294
|
+
'dark-input': string;
|
|
295
|
+
'dark-interactive': string;
|
|
296
|
+
'dark-hover': string;
|
|
297
|
+
'dark-focus': string;
|
|
298
|
+
static: string;
|
|
299
|
+
input: string;
|
|
300
|
+
interactive: string;
|
|
301
|
+
hover: string;
|
|
288
302
|
focus: string;
|
|
289
303
|
};
|
|
290
304
|
fontFamily: {
|
|
@@ -301,7 +315,6 @@ declare const config: {
|
|
|
301
315
|
config?: Partial<import("tailwindcss/types/config.js").Config> | undefined;
|
|
302
316
|
})[];
|
|
303
317
|
daisyui: {
|
|
304
|
-
base: boolean;
|
|
305
318
|
styled: boolean;
|
|
306
319
|
logs: boolean;
|
|
307
320
|
themes: {
|
package/dist/tailwind.preset.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import daisyui from 'daisyui';
|
|
2
2
|
import typography from '@tailwindcss/typography';
|
|
3
3
|
import containerQueries from '@tailwindcss/container-queries';
|
|
4
|
-
import { backgroundColor, borderColor, boxShadow, colors, textColor } from './tokens.js';
|
|
4
|
+
import { backgroundColor, borderColor, boxShadow, colors, textColor, outlineColor } from './tokens.js';
|
|
5
5
|
const config = {
|
|
6
6
|
safelist: ['tailwind-safelist.txt'],
|
|
7
7
|
theme: {
|
|
@@ -11,9 +11,10 @@ const config = {
|
|
|
11
11
|
borderColor,
|
|
12
12
|
textColor,
|
|
13
13
|
boxShadow,
|
|
14
|
+
outlineColor,
|
|
14
15
|
fontFamily: {
|
|
15
16
|
mono: ['"MD System Mono"', 'sans-serif'],
|
|
16
|
-
sans: ['"
|
|
17
|
+
sans: ['"af Another Sans"', 'sans-serif']
|
|
17
18
|
},
|
|
18
19
|
fontSize: {
|
|
19
20
|
xxs: '10px'
|
|
@@ -22,7 +23,7 @@ const config = {
|
|
|
22
23
|
},
|
|
23
24
|
plugins: [daisyui, typography, containerQueries],
|
|
24
25
|
daisyui: {
|
|
25
|
-
base: true,
|
|
26
|
+
// base: true,
|
|
26
27
|
styled: true,
|
|
27
28
|
logs: false,
|
|
28
29
|
themes: [
|
|
@@ -36,7 +37,7 @@ const config = {
|
|
|
36
37
|
'accent-content': textColor.primary,
|
|
37
38
|
neutral: backgroundColor.neutral,
|
|
38
39
|
'neutral-content': textColor.primary,
|
|
39
|
-
'base-100': backgroundColor['
|
|
40
|
+
'base-100': backgroundColor['surface'],
|
|
40
41
|
info: backgroundColor.sky,
|
|
41
42
|
'info-content': textColor.primary,
|
|
42
43
|
success: backgroundColor.success,
|
package/dist/tokens.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const colors: {
|
|
|
15
15
|
midnight: {
|
|
16
16
|
default: string;
|
|
17
17
|
5: string;
|
|
18
|
+
8: string;
|
|
18
19
|
10: string;
|
|
19
20
|
15: string;
|
|
20
21
|
25: string;
|
|
@@ -38,16 +39,19 @@ export declare const colors: {
|
|
|
38
39
|
default: string;
|
|
39
40
|
10: string;
|
|
40
41
|
25: string;
|
|
42
|
+
50: string;
|
|
41
43
|
};
|
|
42
44
|
4: {
|
|
43
45
|
default: string;
|
|
44
46
|
10: string;
|
|
45
47
|
25: string;
|
|
48
|
+
50: string;
|
|
46
49
|
};
|
|
47
50
|
5: {
|
|
48
51
|
default: string;
|
|
49
52
|
10: string;
|
|
50
53
|
25: string;
|
|
54
|
+
50: string;
|
|
51
55
|
};
|
|
52
56
|
6: string;
|
|
53
57
|
};
|
|
@@ -151,6 +155,7 @@ export declare const colors: {
|
|
|
151
155
|
shadow: {
|
|
152
156
|
2: string;
|
|
153
157
|
4: string;
|
|
158
|
+
6: string;
|
|
154
159
|
8: string;
|
|
155
160
|
12: string;
|
|
156
161
|
16: string;
|
|
@@ -158,6 +163,7 @@ export declare const colors: {
|
|
|
158
163
|
};
|
|
159
164
|
export declare const borderColor: {
|
|
160
165
|
'dark-static': string;
|
|
166
|
+
'dark-input': string;
|
|
161
167
|
'dark-interactive': string;
|
|
162
168
|
'dark-hover': string;
|
|
163
169
|
'dark-focus': string;
|
|
@@ -174,6 +180,7 @@ export declare const textColor: {
|
|
|
174
180
|
'icon-secondary': string;
|
|
175
181
|
'icon-tertiary': string;
|
|
176
182
|
'icon-primary-inverse': string;
|
|
183
|
+
'icon-secondary-inverse': string;
|
|
177
184
|
'icon-accent': string;
|
|
178
185
|
'icon-success': string;
|
|
179
186
|
'icon-warning': string;
|
|
@@ -272,15 +279,22 @@ export declare const backgroundColor: {
|
|
|
272
279
|
'sky-inverse': string;
|
|
273
280
|
'sky-inverse-hover': string;
|
|
274
281
|
};
|
|
282
|
+
export declare const outlineColor: {
|
|
283
|
+
'dark-static': string;
|
|
284
|
+
'dark-input': string;
|
|
285
|
+
'dark-interactive': string;
|
|
286
|
+
'dark-hover': string;
|
|
287
|
+
'dark-focus': string;
|
|
288
|
+
static: string;
|
|
289
|
+
input: string;
|
|
290
|
+
interactive: string;
|
|
291
|
+
hover: string;
|
|
292
|
+
focus: string;
|
|
293
|
+
};
|
|
275
294
|
export declare const boxShadow: {
|
|
276
295
|
input: string;
|
|
277
|
-
field: string;
|
|
278
|
-
nav: string;
|
|
279
|
-
calendar: string;
|
|
280
296
|
container: string;
|
|
281
|
-
|
|
282
|
-
outline: string;
|
|
283
|
-
focus: string;
|
|
297
|
+
menu: string;
|
|
284
298
|
};
|
|
285
299
|
export declare const tokens: {
|
|
286
300
|
colors: {
|
|
@@ -300,6 +314,7 @@ export declare const tokens: {
|
|
|
300
314
|
midnight: {
|
|
301
315
|
default: string;
|
|
302
316
|
5: string;
|
|
317
|
+
8: string;
|
|
303
318
|
10: string;
|
|
304
319
|
15: string;
|
|
305
320
|
25: string;
|
|
@@ -323,16 +338,19 @@ export declare const tokens: {
|
|
|
323
338
|
default: string;
|
|
324
339
|
10: string;
|
|
325
340
|
25: string;
|
|
341
|
+
50: string;
|
|
326
342
|
};
|
|
327
343
|
4: {
|
|
328
344
|
default: string;
|
|
329
345
|
10: string;
|
|
330
346
|
25: string;
|
|
347
|
+
50: string;
|
|
331
348
|
};
|
|
332
349
|
5: {
|
|
333
350
|
default: string;
|
|
334
351
|
10: string;
|
|
335
352
|
25: string;
|
|
353
|
+
50: string;
|
|
336
354
|
};
|
|
337
355
|
6: string;
|
|
338
356
|
};
|
|
@@ -436,6 +454,7 @@ export declare const tokens: {
|
|
|
436
454
|
shadow: {
|
|
437
455
|
2: string;
|
|
438
456
|
4: string;
|
|
457
|
+
6: string;
|
|
439
458
|
8: string;
|
|
440
459
|
12: string;
|
|
441
460
|
16: string;
|
|
@@ -443,6 +462,7 @@ export declare const tokens: {
|
|
|
443
462
|
};
|
|
444
463
|
borderColor: {
|
|
445
464
|
'dark-static': string;
|
|
465
|
+
'dark-input': string;
|
|
446
466
|
'dark-interactive': string;
|
|
447
467
|
'dark-hover': string;
|
|
448
468
|
'dark-focus': string;
|
|
@@ -459,6 +479,7 @@ export declare const tokens: {
|
|
|
459
479
|
'icon-secondary': string;
|
|
460
480
|
'icon-tertiary': string;
|
|
461
481
|
'icon-primary-inverse': string;
|
|
482
|
+
'icon-secondary-inverse': string;
|
|
462
483
|
'icon-accent': string;
|
|
463
484
|
'icon-success': string;
|
|
464
485
|
'icon-warning': string;
|
|
@@ -559,12 +580,19 @@ export declare const tokens: {
|
|
|
559
580
|
};
|
|
560
581
|
boxShadow: {
|
|
561
582
|
input: string;
|
|
562
|
-
field: string;
|
|
563
|
-
nav: string;
|
|
564
|
-
calendar: string;
|
|
565
583
|
container: string;
|
|
566
|
-
|
|
567
|
-
|
|
584
|
+
menu: string;
|
|
585
|
+
};
|
|
586
|
+
outlineColor: {
|
|
587
|
+
'dark-static': string;
|
|
588
|
+
'dark-input': string;
|
|
589
|
+
'dark-interactive': string;
|
|
590
|
+
'dark-hover': string;
|
|
591
|
+
'dark-focus': string;
|
|
592
|
+
static: string;
|
|
593
|
+
input: string;
|
|
594
|
+
interactive: string;
|
|
595
|
+
hover: string;
|
|
568
596
|
focus: string;
|
|
569
597
|
};
|
|
570
598
|
};
|
package/dist/tokens.js
CHANGED
|
@@ -15,6 +15,7 @@ export const colors = {
|
|
|
15
15
|
midnight: {
|
|
16
16
|
default: '#12192a',
|
|
17
17
|
5: '#12192a0d',
|
|
18
|
+
8: '#12192a14',
|
|
18
19
|
10: '#12192A1A',
|
|
19
20
|
15: '#12192A26',
|
|
20
21
|
25: '#12192A40',
|
|
@@ -34,9 +35,9 @@ export const colors = {
|
|
|
34
35
|
periwinkle: {
|
|
35
36
|
1: '#eeeefd',
|
|
36
37
|
2: '#cbc9fa',
|
|
37
|
-
3: { default: '#8e8af4', 10: '#8e8af41A', 25: '#8e8af440' },
|
|
38
|
-
4: { default: '#7973f1', 10: '#7973f11A', 25: '#7973f140' },
|
|
39
|
-
5: { default: '#5750ee', 10: '#5750ee1A', 25: '#5750ee40' },
|
|
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' },
|
|
40
41
|
6: '#4741c1'
|
|
41
42
|
},
|
|
42
43
|
orange: {
|
|
@@ -88,8 +89,9 @@ export const colors = {
|
|
|
88
89
|
6: '#bf393a'
|
|
89
90
|
},
|
|
90
91
|
shadow: {
|
|
91
|
-
2: 'rgba(18, 25, 42 0.02)',
|
|
92
|
+
2: 'rgba(18, 25, 42, 0.02)',
|
|
92
93
|
4: 'rgba(18, 25, 42, 0.04)',
|
|
94
|
+
6: 'rgba(18, 25, 42, 0.06)',
|
|
93
95
|
8: 'rgba(18, 25, 42, 0.08)',
|
|
94
96
|
12: 'rgba(18, 25, 42, 0.12)',
|
|
95
97
|
16: 'rgba(18, 25, 42, 0.16)'
|
|
@@ -112,6 +114,7 @@ const lightIconColor = {
|
|
|
112
114
|
'icon-secondary': colors.gray[5],
|
|
113
115
|
'icon-tertiary': colors.gray[4],
|
|
114
116
|
'icon-primary-inverse': colors.base.white.default,
|
|
117
|
+
'icon-secondary-inverse': colors.base.white[70],
|
|
115
118
|
'icon-accent': colors.periwinkle[5].default,
|
|
116
119
|
'icon-success': colors.green[5].default,
|
|
117
120
|
'icon-warning': colors.yellow[5].default,
|
|
@@ -121,17 +124,24 @@ const lightIconColor = {
|
|
|
121
124
|
'icon-sky': colors.sky[5].default
|
|
122
125
|
};
|
|
123
126
|
const lightBorderColor = {
|
|
124
|
-
static: colors.base.midnight[
|
|
127
|
+
static: colors.base.midnight[8],
|
|
125
128
|
input: colors.base.midnight[10],
|
|
126
129
|
interactive: colors.base.midnight[15],
|
|
127
130
|
hover: colors.periwinkle[5][25],
|
|
128
131
|
focus: colors.periwinkle[5].default,
|
|
129
132
|
danger: colors.red[5].default
|
|
130
133
|
};
|
|
134
|
+
const lightOutlineColor = {
|
|
135
|
+
static: colors.base.midnight[8],
|
|
136
|
+
input: colors.base.midnight[10],
|
|
137
|
+
interactive: colors.base.midnight[15],
|
|
138
|
+
hover: colors.periwinkle[5][50],
|
|
139
|
+
focus: colors.periwinkle[5].default
|
|
140
|
+
};
|
|
131
141
|
const lightBackgroundColor = {
|
|
132
142
|
surface: colors.base.white.default,
|
|
133
143
|
'surface-secondary': colors.base.snow,
|
|
134
|
-
base: colors.
|
|
144
|
+
base: colors.base.mist,
|
|
135
145
|
'base-inverse': colors.gray[6],
|
|
136
146
|
overlay: '#090D1566', // TODO: MAP TO A COLOR
|
|
137
147
|
neutral: colors.base.midnight[5],
|
|
@@ -193,12 +203,20 @@ const darkIconColor = {
|
|
|
193
203
|
'dark-sky': colors.sky[4].default
|
|
194
204
|
};
|
|
195
205
|
const darkBorderColor = {
|
|
196
|
-
'dark-static': colors.base.white[
|
|
206
|
+
'dark-static': colors.base.white[10],
|
|
207
|
+
'dark-input': colors.base.white[10],
|
|
197
208
|
'dark-interactive': colors.base.white[15],
|
|
198
209
|
'dark-hover': colors.periwinkle[3][25],
|
|
199
210
|
'dark-focus': colors.periwinkle[4].default,
|
|
200
211
|
'dark-danger': colors.red[4].default
|
|
201
212
|
};
|
|
213
|
+
const darkOutlineColor = {
|
|
214
|
+
'dark-static': colors.base.white[10],
|
|
215
|
+
'dark-input': colors.base.white[10],
|
|
216
|
+
'dark-interactive': colors.base.white[15],
|
|
217
|
+
'dark-hover': colors.periwinkle[3][50],
|
|
218
|
+
'dark-focus': colors.periwinkle[3].default
|
|
219
|
+
};
|
|
202
220
|
const darkSurfaceColor = {
|
|
203
221
|
'dark-primary': colors.gray[6],
|
|
204
222
|
'dark-secondary': colors.base.midnight.default,
|
|
@@ -248,20 +266,20 @@ export const backgroundColor = {
|
|
|
248
266
|
...lightBackgroundColor,
|
|
249
267
|
...darkBackgroundColor
|
|
250
268
|
};
|
|
269
|
+
export const outlineColor = {
|
|
270
|
+
...lightOutlineColor,
|
|
271
|
+
...darkOutlineColor
|
|
272
|
+
};
|
|
251
273
|
export const boxShadow = {
|
|
252
|
-
input: `
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
calendar: `0px 16px 24px 0px ${colors.shadow[16]}`,
|
|
256
|
-
container: `0px 4px 17px 0px ${colors.shadow[2]}`,
|
|
257
|
-
panel: `0px 2px 8px 0px ${colors.shadow[8]}`,
|
|
258
|
-
outline: `0px 0px 0px 1px ${colors.periwinkle[5][25]}`,
|
|
259
|
-
focus: `0px 0px 0px 1px ${colors.periwinkle[5].default}`
|
|
274
|
+
input: `0 1px 4px 0 ${colors.shadow[4]}`,
|
|
275
|
+
container: `0 2px 16px 0 ${colors.shadow[2]}`,
|
|
276
|
+
menu: `0 4px 20px 0 ${colors.shadow[6]}, 0 0 0 0.5px ${colors.shadow[8]}`
|
|
260
277
|
};
|
|
261
278
|
export const tokens = {
|
|
262
279
|
colors,
|
|
263
280
|
borderColor,
|
|
264
281
|
textColor,
|
|
265
282
|
backgroundColor,
|
|
266
|
-
boxShadow
|
|
283
|
+
boxShadow,
|
|
284
|
+
outlineColor
|
|
267
285
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reshape-biotech/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build",
|
|
@@ -40,37 +40,40 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/compat": "^1.2.3",
|
|
43
|
-
"@sveltejs/adapter-vercel": "^5.
|
|
44
|
-
"@sveltejs/kit": "^2.
|
|
45
|
-
"@sveltejs/package": "^2.
|
|
46
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
43
|
+
"@sveltejs/adapter-vercel": "^5.6.2",
|
|
44
|
+
"@sveltejs/kit": "^2.17.2",
|
|
45
|
+
"@sveltejs/package": "^2.3.10",
|
|
46
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
47
47
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
48
48
|
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
|
|
49
49
|
"@tailwindcss/typography": "^0.5.15",
|
|
50
50
|
"@testing-library/svelte": "^5.2.6",
|
|
51
51
|
"autoprefixer": "^10.4.20",
|
|
52
52
|
"daisyui": "^4.10.5",
|
|
53
|
+
"echarts": "^5.6.0",
|
|
53
54
|
"eslint": "^9.7.0",
|
|
54
55
|
"eslint-config-prettier": "^9.1.0",
|
|
55
|
-
"eslint-plugin-svelte": "^
|
|
56
|
+
"eslint-plugin-svelte": "^3.0.0",
|
|
56
57
|
"globals": "^15.0.0",
|
|
57
58
|
"luxon": "^3.5.0",
|
|
59
|
+
"marked": "^15.0.0",
|
|
58
60
|
"phosphor-svelte": "^3.0.1",
|
|
59
|
-
"postcss": "^8.
|
|
60
|
-
"prettier": "^3.
|
|
61
|
+
"postcss": "^8.5.3",
|
|
62
|
+
"prettier": "^3.5.1",
|
|
61
63
|
"prettier-plugin-svelte": "^3.2.6",
|
|
62
64
|
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
63
|
-
"publint": "^0.
|
|
64
|
-
"svelte": "^5.
|
|
65
|
+
"publint": "^0.3.0",
|
|
66
|
+
"svelte": "^5.20.2",
|
|
65
67
|
"svelte-check": "^4.0.0",
|
|
66
68
|
"svelte-select": "^5.8.1",
|
|
67
69
|
"tailwindcss": "^3.4.9",
|
|
68
70
|
"tailwindest": "^2.3.0",
|
|
69
|
-
"typescript": "^5.
|
|
71
|
+
"typescript": "^5.7.3",
|
|
70
72
|
"typescript-eslint": "^8.0.0",
|
|
71
|
-
"vite": "^
|
|
72
|
-
"vitest": "^
|
|
73
|
-
"marked": "^15.0.0"
|
|
73
|
+
"vite": "^6.1.1",
|
|
74
|
+
"vitest": "^3.0.6"
|
|
74
75
|
},
|
|
75
|
-
"dependencies": {
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"bits-ui": "^1.3.2"
|
|
78
|
+
}
|
|
76
79
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|