@reshape-biotech/design-system 2.7.34 → 2.7.36
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 +2 -2
- package/dist/components/button/Button.stories.svelte +27 -7
- package/dist/components/button/Button.svelte +107 -24
- package/dist/components/combobox/Combobox.stories.svelte +483 -89
- package/dist/components/combobox/components/combobox-add.svelte +10 -4
- package/dist/components/combobox/components/combobox-content.svelte +35 -58
- package/dist/components/combobox/components/combobox-indicator.svelte +1 -1
- package/dist/components/combobox/types.d.ts +1 -0
- package/dist/components/dropdown/Dropdown.stories.svelte +36 -16
- package/dist/components/dropdown/components/dropdown-content.svelte +6 -3
- package/dist/components/dropdown/components/dropdown-item.svelte +8 -1
- package/dist/components/dropdown/components/dropdown-separator.svelte +10 -0
- package/dist/components/dropdown/components/dropdown-separator.svelte.d.ts +5 -0
- package/dist/components/dropdown/components/dropdown-sub-content.svelte +4 -2
- package/dist/components/dropdown/components/dropdown-sub-trigger.svelte +10 -3
- package/dist/components/dropdown/index.d.ts +2 -2
- package/dist/components/dropdown/index.js +2 -2
- package/dist/components/dropdown/types.d.ts +1 -0
- package/dist/components/icon-button/IconButton.svelte +1 -1
- package/dist/components/icons/AnalysisIcon.svelte +7 -7
- package/dist/components/modal/Modal.stories.svelte +3 -0
- package/dist/components/modal/components/modal-title.svelte +7 -2
- package/dist/components/modal/types.d.ts +1 -0
- package/dist/components/select/Select.stories.svelte +158 -13
- package/dist/components/select/components/SelectContent.svelte +2 -2
- package/dist/components/select/components/SelectGroupHeading.svelte +1 -1
- package/dist/components/select/components/SelectItem.svelte +1 -1
- package/dist/components/select/components/SelectTrigger.svelte +13 -5
- package/dist/components/select/components/SelectTrigger.svelte.d.ts +1 -0
- package/dist/components/stat-card/StatCard.stories.svelte +113 -47
- package/dist/components/stat-card/StatCard.svelte +27 -6
- package/dist/components/stat-card/StatCard.svelte.d.ts +4 -0
- package/dist/components/status-badge/StatusBadge.svelte +4 -3
- package/dist/components/stepper/components/stepper-step.svelte +3 -3
- package/dist/tokens.d.ts +11 -1
- package/dist/tokens.js +13 -3
- package/package.json +1 -1
package/dist/app.css
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
font-style: normal;
|
|
60
60
|
font-weight: 600;
|
|
61
61
|
line-height: 4.5rem;
|
|
62
|
-
letter-spacing: -0.
|
|
62
|
+
letter-spacing: -0.025em;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
h2 {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
font-style: normal;
|
|
69
69
|
font-weight: 600;
|
|
70
70
|
line-height: 3rem;
|
|
71
|
-
letter-spacing: -0.
|
|
71
|
+
letter-spacing: -0.025em;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
h3 {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
'transparent',
|
|
22
22
|
'outline',
|
|
23
23
|
'secondary-inverse',
|
|
24
|
+
'transparent-inverse',
|
|
24
25
|
];
|
|
25
26
|
const sizes = ['xs', 'sm', 'md', 'lg'];
|
|
26
27
|
</script>
|
|
@@ -28,15 +29,21 @@
|
|
|
28
29
|
<Story name="Variants" asChild>
|
|
29
30
|
<div class="flex flex-col gap-4">
|
|
30
31
|
{#each variants as variant}
|
|
31
|
-
{#if variant === 'secondary-inverse'}
|
|
32
|
+
{#if variant === 'secondary-inverse' || variant === 'transparent-inverse'}
|
|
32
33
|
<div class="bg-base-inverse p-4 text-primary-inverse">
|
|
33
34
|
<p>{variant}</p>
|
|
34
|
-
<
|
|
35
|
+
<div class="flex gap-4">
|
|
36
|
+
<Button variant={variant as ButtonVariant}>Button</Button>
|
|
37
|
+
<Button variant={variant as ButtonVariant} rounded>Button</Button>
|
|
38
|
+
</div>
|
|
35
39
|
</div>
|
|
36
40
|
{:else}
|
|
37
41
|
<div>
|
|
38
42
|
<p>{variant}</p>
|
|
39
|
-
<
|
|
43
|
+
<div class="flex gap-4">
|
|
44
|
+
<Button variant={variant as ButtonVariant}>Button</Button>
|
|
45
|
+
<Button variant={variant as ButtonVariant} rounded>Button</Button>
|
|
46
|
+
</div>
|
|
40
47
|
</div>
|
|
41
48
|
{/if}
|
|
42
49
|
{/each}
|
|
@@ -57,10 +64,23 @@
|
|
|
57
64
|
<Story name="Disabled" asChild>
|
|
58
65
|
<div class="flex flex-col gap-4">
|
|
59
66
|
{#each variants as variant}
|
|
60
|
-
|
|
61
|
-
<p>
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
{#if variant === 'secondary-inverse' || variant === 'transparent-inverse'}
|
|
68
|
+
<div class="bg-base-inverse p-4 text-primary-inverse">
|
|
69
|
+
<p>{variant}</p>
|
|
70
|
+
<div class="flex gap-4">
|
|
71
|
+
<Button variant={variant as ButtonVariant} disabled>Button</Button>
|
|
72
|
+
<Button variant={variant as ButtonVariant} rounded disabled>Button</Button>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
{:else}
|
|
76
|
+
<div>
|
|
77
|
+
<p>{variant}</p>
|
|
78
|
+
<div class="flex gap-4">
|
|
79
|
+
<Button variant={variant as ButtonVariant} disabled>Button</Button>
|
|
80
|
+
<Button variant={variant as ButtonVariant} rounded disabled>Button</Button>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
{/if}
|
|
64
84
|
{/each}
|
|
65
85
|
</div>
|
|
66
86
|
</Story>
|
|
@@ -119,35 +119,14 @@
|
|
|
119
119
|
|
|
120
120
|
.button:disabled {
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
background-color: #12192a0A;
|
|
125
|
-
|
|
126
|
-
--tw-text-opacity: 1;
|
|
127
|
-
|
|
128
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.button:hover:disabled {
|
|
132
|
-
|
|
133
|
-
cursor: not-allowed;
|
|
134
|
-
|
|
135
|
-
background-color: #12192a0A;
|
|
136
|
-
|
|
137
|
-
--tw-text-opacity: 1;
|
|
138
|
-
|
|
139
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
122
|
+
cursor: not-allowed
|
|
140
123
|
}
|
|
141
124
|
|
|
142
125
|
.rounded {
|
|
143
126
|
|
|
144
|
-
border-radius: 9999px
|
|
127
|
+
border-radius: 9999px !important
|
|
145
128
|
}
|
|
146
129
|
|
|
147
|
-
.disabled:hover {
|
|
148
|
-
|
|
149
|
-
background-color: #12192a0A !important
|
|
150
|
-
}
|
|
151
130
|
/* Size variants */
|
|
152
131
|
.btn-size-xs {
|
|
153
132
|
|
|
@@ -220,6 +199,20 @@
|
|
|
220
199
|
|
|
221
200
|
background-color: rgb(71 65 193 / var(--tw-bg-opacity, 1))
|
|
222
201
|
}
|
|
202
|
+
.btn-primary:disabled {
|
|
203
|
+
|
|
204
|
+
border-color: transparent;
|
|
205
|
+
|
|
206
|
+
background-color: #12192a0A;
|
|
207
|
+
|
|
208
|
+
--tw-text-opacity: 1;
|
|
209
|
+
|
|
210
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
211
|
+
}
|
|
212
|
+
.btn-primary:hover:disabled {
|
|
213
|
+
|
|
214
|
+
background-color: #12192a0A
|
|
215
|
+
}
|
|
223
216
|
|
|
224
217
|
.btn-secondary {
|
|
225
218
|
|
|
@@ -239,6 +232,22 @@
|
|
|
239
232
|
|
|
240
233
|
background-color: #12192a0A
|
|
241
234
|
}
|
|
235
|
+
|
|
236
|
+
.btn-secondary:disabled {
|
|
237
|
+
|
|
238
|
+
border-color: transparent;
|
|
239
|
+
|
|
240
|
+
background-color: #12192a0A;
|
|
241
|
+
|
|
242
|
+
--tw-text-opacity: 1;
|
|
243
|
+
|
|
244
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.btn-secondary:hover:disabled {
|
|
248
|
+
|
|
249
|
+
background-color: #12192a0A
|
|
250
|
+
}
|
|
242
251
|
.btn-transparent {
|
|
243
252
|
|
|
244
253
|
background-color: transparent;
|
|
@@ -248,6 +257,18 @@
|
|
|
248
257
|
.btn-transparent:hover {
|
|
249
258
|
|
|
250
259
|
background-color: #12192a0A
|
|
260
|
+
}
|
|
261
|
+
.btn-transparent:disabled {
|
|
262
|
+
|
|
263
|
+
background-color: transparent;
|
|
264
|
+
|
|
265
|
+
--tw-text-opacity: 1;
|
|
266
|
+
|
|
267
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
268
|
+
}
|
|
269
|
+
.btn-transparent:hover:disabled {
|
|
270
|
+
|
|
271
|
+
background-color: transparent
|
|
251
272
|
}
|
|
252
273
|
.btn-danger {
|
|
253
274
|
|
|
@@ -272,6 +293,20 @@
|
|
|
272
293
|
--tw-bg-opacity: 1;
|
|
273
294
|
|
|
274
295
|
background-color: rgb(191 57 58 / var(--tw-bg-opacity, 1))
|
|
296
|
+
}
|
|
297
|
+
.btn-danger:disabled {
|
|
298
|
+
|
|
299
|
+
border-color: transparent;
|
|
300
|
+
|
|
301
|
+
background-color: #12192a0A;
|
|
302
|
+
|
|
303
|
+
--tw-text-opacity: 1;
|
|
304
|
+
|
|
305
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
306
|
+
}
|
|
307
|
+
.btn-danger:hover:disabled {
|
|
308
|
+
|
|
309
|
+
background-color: #12192a0A
|
|
275
310
|
}
|
|
276
311
|
.btn-outline {
|
|
277
312
|
|
|
@@ -303,7 +338,29 @@
|
|
|
303
338
|
}
|
|
304
339
|
.btn-outline:disabled {
|
|
305
340
|
|
|
306
|
-
border-
|
|
341
|
+
border-color: #12192a14;
|
|
342
|
+
|
|
343
|
+
--tw-bg-opacity: 1;
|
|
344
|
+
|
|
345
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
346
|
+
|
|
347
|
+
--tw-text-opacity: 1;
|
|
348
|
+
|
|
349
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1));
|
|
350
|
+
|
|
351
|
+
--tw-shadow: 0 0 #0000;
|
|
352
|
+
|
|
353
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
354
|
+
|
|
355
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
356
|
+
}
|
|
357
|
+
.btn-outline:hover:disabled {
|
|
358
|
+
|
|
359
|
+
border-color: #12192a14;
|
|
360
|
+
|
|
361
|
+
--tw-bg-opacity: 1;
|
|
362
|
+
|
|
363
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))
|
|
307
364
|
}
|
|
308
365
|
.btn-secondary-inverse {
|
|
309
366
|
|
|
@@ -321,6 +378,20 @@
|
|
|
321
378
|
|
|
322
379
|
background-color: #FFFFFF0D
|
|
323
380
|
}
|
|
381
|
+
.btn-secondary-inverse:disabled {
|
|
382
|
+
|
|
383
|
+
border-color: transparent;
|
|
384
|
+
|
|
385
|
+
background-color: #FFFFFF0D;
|
|
386
|
+
|
|
387
|
+
--tw-text-opacity: 1;
|
|
388
|
+
|
|
389
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
390
|
+
}
|
|
391
|
+
.btn-secondary-inverse:hover:disabled {
|
|
392
|
+
|
|
393
|
+
background-color: #FFFFFF0D
|
|
394
|
+
}
|
|
324
395
|
.btn-transparent-inverse {
|
|
325
396
|
|
|
326
397
|
background-color: transparent;
|
|
@@ -336,5 +407,17 @@
|
|
|
336
407
|
.btn-transparent-inverse:active {
|
|
337
408
|
|
|
338
409
|
background-color: #FFFFFF0D
|
|
410
|
+
}
|
|
411
|
+
.btn-transparent-inverse:disabled {
|
|
412
|
+
|
|
413
|
+
background-color: transparent;
|
|
414
|
+
|
|
415
|
+
--tw-text-opacity: 1;
|
|
416
|
+
|
|
417
|
+
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
418
|
+
}
|
|
419
|
+
.btn-transparent-inverse:hover:disabled {
|
|
420
|
+
|
|
421
|
+
background-color: transparent
|
|
339
422
|
}
|
|
340
423
|
</style>
|