@reshape-biotech/design-system 2.7.41 → 2.7.43
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/base.css +1 -0
- package/dist/app.css +5 -121
- package/dist/base.css +111 -0
- package/dist/components/banner/Banner.svelte +3 -6
- package/dist/components/button/Button.svelte +27 -321
- package/dist/components/card/CardWrapper.svelte +8 -24
- package/dist/components/collapsible/components/collapsible-trigger.svelte +8 -15
- package/dist/components/combobox/Combobox.stories.svelte +1 -1
- package/dist/components/combobox/components/combobox-add.svelte +3 -19
- package/dist/components/combobox/components/combobox-content.svelte +11 -51
- package/dist/components/datepicker/DatePicker.stories.svelte +1 -1
- package/dist/components/datepicker/DatePicker.svelte +27 -148
- package/dist/components/drawer/Drawer.stories.svelte +8 -7
- package/dist/components/drawer/Drawer.stories.svelte.d.ts +6 -14
- package/dist/components/dropdown/Dropdown.stories.svelte +1 -1
- package/dist/components/dropdown/components/dropdown-field-trigger.svelte +1 -1
- package/dist/components/dropdown/components/dropdown-item.svelte +3 -2
- package/dist/components/dropdown/components/dropdown-sub-trigger.svelte +3 -2
- package/dist/components/graphs/line/LineChart.stories.svelte +1 -1
- package/dist/components/graphs/matrix/Matrix.svelte +3 -3
- package/dist/components/graphs/scatterplot/Scatterplot.svelte +1 -1
- package/dist/components/icon-button/IconButton.stories.svelte +16 -16
- package/dist/components/icon-button/IconButton.svelte +43 -121
- package/dist/components/icons/AnalysisIcon.svelte +12 -29
- package/dist/components/icons/PrincipalIcon.svelte +12 -29
- package/dist/components/input/Input.svelte +29 -137
- package/dist/components/label/Label.stories.svelte +1 -0
- package/dist/components/list/List.svelte +15 -41
- package/dist/components/manual-cfu-counter/ManualCFUCounter.svelte +4 -4
- package/dist/components/multi-cfu-counter/MultiCFUCounter.svelte +4 -4
- package/dist/components/nav/Nav.stories.svelte +1 -1
- package/dist/components/nav/Nav.svelte +15 -22
- package/dist/components/nav/NavItem.svelte +11 -71
- package/dist/components/pill/Pill.svelte +4 -13
- package/dist/components/progress-circle/ProgressCircle.svelte +11 -22
- package/dist/components/segmented-control-buttons/ControlButton.svelte +11 -13
- package/dist/components/select/Select.stories.svelte +1 -1
- package/dist/components/select/components/SelectTrigger.svelte +1 -1
- package/dist/components/skeleton-loader/SkeletonLoader.stories.svelte +1 -0
- package/dist/components/slider/Slider.svelte +11 -37
- package/dist/components/spinner/Spinner.svelte +3 -3
- package/dist/components/status-badge/StatusBadge.svelte +49 -105
- package/dist/components/stepper/components/stepper-step.svelte +2 -3
- package/dist/components/table/Table.svelte +3 -5
- package/dist/components/table/components/Tr.svelte +6 -13
- package/dist/components/tabs/components/Tab.svelte +1 -1
- package/dist/components/tabs/components/Tabs.svelte +18 -40
- package/dist/components/tag/Tag.svelte +4 -8
- package/dist/components/textarea/Textarea.stories.svelte +1 -0
- package/dist/components/textarea/Textarea.svelte +1 -1
- package/dist/components/toggle/Toggle.svelte +17 -22
- package/dist/components/typography/Typography.stories.svelte +143 -0
- package/dist/components/typography/Typography.stories.svelte.d.ts +18 -0
- package/dist/safelist.css +3 -0
- package/dist/tailwind-safelist.js +7 -9
- package/dist/tailwind.preset.d.ts +28 -513
- package/dist/tailwind.preset.js +30 -25
- package/package.json +31 -19
- package/safelist.css +1 -0
package/base.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import './dist/base.css';
|
package/dist/app.css
CHANGED
|
@@ -1,122 +1,6 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@
|
|
3
|
-
@
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@config "./tailwind.preset.js";
|
|
3
|
+
@plugin "@tailwindcss/typography";
|
|
4
4
|
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
font-family: 'Geist Mono';
|
|
8
|
-
font-style: normal;
|
|
9
|
-
font-weight: 400;
|
|
10
|
-
src: url('/fonts/GeistMono-VariableFont_wght.ttf') format('ttf');
|
|
11
|
-
}
|
|
12
|
-
@font-face {
|
|
13
|
-
font-family: 'af Another Sans';
|
|
14
|
-
font-style: normal;
|
|
15
|
-
font-weight: 400;
|
|
16
|
-
src: url('/fonts/afAnotherSans-Regular.woff2') format('woff2');
|
|
17
|
-
}
|
|
18
|
-
@font-face {
|
|
19
|
-
font-family: 'af Another Sans';
|
|
20
|
-
font-style: normal;
|
|
21
|
-
font-weight: 500;
|
|
22
|
-
src: url('/fonts/afAnotherSans-Medium.woff2') format('woff2');
|
|
23
|
-
}
|
|
24
|
-
@font-face {
|
|
25
|
-
font-family: 'af Another Sans';
|
|
26
|
-
font-style: normal;
|
|
27
|
-
font-weight: 600;
|
|
28
|
-
src: url('/fonts/afAnotherSans-SemiBold.woff2') format('woff2');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
body {
|
|
32
|
-
background-color: theme('backgroundColor.surface');
|
|
33
|
-
color: theme('textColor.primary');
|
|
34
|
-
font-family: 'af Another Sans', sans-serif;
|
|
35
|
-
font-style: normal;
|
|
36
|
-
font-feature-settings: 'ss01' on;
|
|
37
|
-
font-variant-numeric: lining-nums tabular-nums;
|
|
38
|
-
font-weight: 400;
|
|
39
|
-
font-size: 0.875rem;
|
|
40
|
-
line-height: 1.25rem;
|
|
41
|
-
letter-spacing: 0.01em;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
a {
|
|
45
|
-
color: theme('textColor.accent');
|
|
46
|
-
font-style: normal;
|
|
47
|
-
}
|
|
48
|
-
a:hover {
|
|
49
|
-
text-decoration: underline;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
strong {
|
|
53
|
-
font-weight: 600;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
h1 {
|
|
57
|
-
/* text-7xl */
|
|
58
|
-
font-size: 4.5rem;
|
|
59
|
-
font-style: normal;
|
|
60
|
-
font-weight: 600;
|
|
61
|
-
line-height: 4.5rem;
|
|
62
|
-
letter-spacing: -0.025em;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
h2 {
|
|
66
|
-
/* text-5xl */
|
|
67
|
-
font-size: 3rem;
|
|
68
|
-
font-style: normal;
|
|
69
|
-
font-weight: 600;
|
|
70
|
-
line-height: 3rem;
|
|
71
|
-
letter-spacing: -0.025em;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
h3 {
|
|
75
|
-
/* text-2xl */
|
|
76
|
-
font-size: 1.5rem;
|
|
77
|
-
font-style: normal;
|
|
78
|
-
font-weight: 600;
|
|
79
|
-
line-height: 1.75rem;
|
|
80
|
-
letter-spacing: -0.025em;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
h4 {
|
|
84
|
-
/* text-xl */
|
|
85
|
-
font-size: 1.25rem;
|
|
86
|
-
line-height: 1.75rem;
|
|
87
|
-
font-style: normal;
|
|
88
|
-
font-weight: 600;
|
|
89
|
-
letter-spacing: -0.01em;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
h5 {
|
|
93
|
-
/* text-base */
|
|
94
|
-
font-size: 1rem;
|
|
95
|
-
line-height: 1.5rem;
|
|
96
|
-
font-style: normal;
|
|
97
|
-
font-weight: 600;
|
|
98
|
-
letter-spacing: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
h6 {
|
|
102
|
-
/* text-sm */
|
|
103
|
-
font-size: 0.875rem;
|
|
104
|
-
line-height: 1.25rem;
|
|
105
|
-
font-style: normal;
|
|
106
|
-
font-weight: 600;
|
|
107
|
-
letter-spacing: 0;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@layer components {
|
|
112
|
-
html:has(.drawer-auto-gutter .drawer-toggle:checked) {
|
|
113
|
-
scrollbar-gutter: auto;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* Global focus styles using brand colors */
|
|
117
|
-
*:focus-visible {
|
|
118
|
-
outline: 2px solid theme('borderColor.hover');
|
|
119
|
-
outline-offset: 1px;
|
|
120
|
-
border-radius: theme('borderRadius.lg');
|
|
121
|
-
}
|
|
122
|
-
}
|
|
5
|
+
@import './safelist.css';
|
|
6
|
+
@import './base.css';
|
package/dist/base.css
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@layer base {
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Geist Mono';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 100 900;
|
|
6
|
+
src: url('/fonts/GeistMono-VariableFont_wght.ttf') format('truetype');
|
|
7
|
+
}
|
|
8
|
+
@font-face {
|
|
9
|
+
font-family: 'af Another Sans';
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
src: url('/fonts/afAnotherSans-Regular.woff2') format('woff2');
|
|
13
|
+
}
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: 'af Another Sans';
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
src: url('/fonts/afAnotherSans-Medium.woff2') format('woff2');
|
|
19
|
+
}
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: 'af Another Sans';
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
src: url('/fonts/afAnotherSans-SemiBold.woff2') format('woff2');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
body {
|
|
28
|
+
background-color: #FFFFFF;
|
|
29
|
+
color: #12192a;
|
|
30
|
+
font-family: 'af Another Sans', sans-serif;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-feature-settings: 'ss01' on;
|
|
33
|
+
font-variant-numeric: lining-nums tabular-nums;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
font-size: 0.875rem;
|
|
36
|
+
line-height: 1.25rem;
|
|
37
|
+
letter-spacing: 0.01em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
a {
|
|
41
|
+
color: #4741c1;
|
|
42
|
+
font-style: normal;
|
|
43
|
+
}
|
|
44
|
+
a:hover {
|
|
45
|
+
text-decoration: underline;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
strong {
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
h1 {
|
|
53
|
+
font-size: 4.5rem;
|
|
54
|
+
font-style: normal;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
line-height: 4.5rem;
|
|
57
|
+
letter-spacing: -0.025em;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
h2 {
|
|
61
|
+
font-size: 3rem;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
line-height: 3rem;
|
|
65
|
+
letter-spacing: -0.025em;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h3 {
|
|
69
|
+
font-size: 1.5rem;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
line-height: 1.75rem;
|
|
73
|
+
letter-spacing: -0.025em;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
h4 {
|
|
77
|
+
font-size: 1.25rem;
|
|
78
|
+
line-height: 1.75rem;
|
|
79
|
+
font-style: normal;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
letter-spacing: -0.01em;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
h5 {
|
|
85
|
+
font-size: 1rem;
|
|
86
|
+
line-height: 1.5rem;
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
letter-spacing: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
h6 {
|
|
93
|
+
font-size: 0.875rem;
|
|
94
|
+
line-height: 1.25rem;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
letter-spacing: 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@layer components {
|
|
102
|
+
html:has(.drawer-auto-gutter .drawer-toggle:checked) {
|
|
103
|
+
scrollbar-gutter: auto;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
*:focus-visible {
|
|
107
|
+
outline: 2px solid #5750ee80;
|
|
108
|
+
outline-offset: 1px;
|
|
109
|
+
border-radius: var(--radius-lg);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -56,11 +56,8 @@
|
|
|
56
56
|
{/if}
|
|
57
57
|
|
|
58
58
|
<style>
|
|
59
|
+
@reference "../../app.css";
|
|
59
60
|
.content :global(a) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
--tw-text-opacity: 1;
|
|
63
|
-
color: rgb(18 25 42 / var(--tw-text-opacity, 1));
|
|
64
|
-
text-decoration-line: underline
|
|
65
|
-
}
|
|
61
|
+
@apply text-sm text-primary underline;
|
|
62
|
+
}
|
|
66
63
|
</style>
|
|
@@ -81,344 +81,50 @@
|
|
|
81
81
|
</button>
|
|
82
82
|
|
|
83
83
|
<style>
|
|
84
|
+
@reference "../../app.css";
|
|
84
85
|
.button {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
align-items: center;
|
|
89
|
-
|
|
90
|
-
justify-content: center;
|
|
91
|
-
|
|
92
|
-
gap: 0.5rem;
|
|
93
|
-
|
|
94
|
-
overflow: hidden;
|
|
95
|
-
|
|
96
|
-
text-overflow: ellipsis;
|
|
97
|
-
|
|
98
|
-
white-space: nowrap;
|
|
99
|
-
|
|
100
|
-
text-wrap: nowrap;
|
|
101
|
-
|
|
102
|
-
border-radius: 0.5rem;
|
|
103
|
-
|
|
104
|
-
border-width: 1px;
|
|
105
|
-
|
|
106
|
-
border-color: transparent;
|
|
107
|
-
|
|
108
|
-
font-size: 0.875rem;
|
|
109
|
-
|
|
110
|
-
line-height: 1.25rem;
|
|
111
|
-
|
|
112
|
-
font-weight: 500;
|
|
113
|
-
|
|
114
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
115
|
-
|
|
116
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
117
|
-
|
|
118
|
-
transition-duration: 150ms
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.button:disabled {
|
|
122
|
-
|
|
123
|
-
cursor: not-allowed
|
|
124
|
-
}
|
|
86
|
+
@apply inline-flex items-center justify-center gap-2 truncate text-nowrap rounded-lg border border-transparent text-sm font-medium transition-colors disabled:cursor-not-allowed;
|
|
87
|
+
}
|
|
125
88
|
|
|
126
89
|
.rounded {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
90
|
+
@apply rounded-full!;
|
|
91
|
+
}
|
|
130
92
|
|
|
131
93
|
/* Size variants */
|
|
132
94
|
.btn-size-xs {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
border-radius: 0.375rem;
|
|
137
|
-
|
|
138
|
-
padding-left: 0.5rem;
|
|
139
|
-
|
|
140
|
-
padding-right: 0.5rem
|
|
141
|
-
}
|
|
95
|
+
@apply h-7 rounded-md px-2;
|
|
96
|
+
}
|
|
142
97
|
.btn-size-sm {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
padding-left: 0.75rem;
|
|
147
|
-
|
|
148
|
-
padding-right: 0.75rem
|
|
149
|
-
}
|
|
98
|
+
@apply h-8 px-3;
|
|
99
|
+
}
|
|
150
100
|
.btn-size-md {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
padding-left: 1rem;
|
|
155
|
-
|
|
156
|
-
padding-right: 1rem
|
|
157
|
-
}
|
|
101
|
+
@apply h-10 px-4;
|
|
102
|
+
}
|
|
158
103
|
.btn-size-lg {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
border-radius: 0.75rem;
|
|
163
|
-
|
|
164
|
-
padding-left: 1.25rem;
|
|
165
|
-
|
|
166
|
-
padding-right: 1.25rem
|
|
167
|
-
}
|
|
168
|
-
@media (min-width: 1280px) {
|
|
169
|
-
|
|
170
|
-
.btn-size-lg {
|
|
171
|
-
|
|
172
|
-
font-size: 1rem;
|
|
173
|
-
|
|
174
|
-
line-height: 1.5rem
|
|
175
|
-
}
|
|
176
|
-
}
|
|
104
|
+
@apply h-12 rounded-xl px-5 xl:text-base;
|
|
105
|
+
}
|
|
177
106
|
|
|
178
107
|
/* Button variants */
|
|
179
108
|
.btn-primary {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
--tw-bg-opacity: 1;
|
|
184
|
-
|
|
185
|
-
background-color: rgb(87 80 238 / var(--tw-bg-opacity, 1));
|
|
186
|
-
|
|
187
|
-
--tw-text-opacity: 1;
|
|
188
|
-
|
|
189
|
-
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
190
|
-
|
|
191
|
-
--tw-shadow: 0 1px 4px 0 rgba(18, 25, 42, 0.02);
|
|
192
|
-
|
|
193
|
-
--tw-shadow-colored: 0 1px 4px 0 var(--tw-shadow-color);
|
|
194
|
-
|
|
195
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
196
|
-
}
|
|
197
|
-
.btn-primary:hover {
|
|
198
|
-
|
|
199
|
-
--tw-bg-opacity: 1;
|
|
200
|
-
|
|
201
|
-
background-color: rgb(71 65 193 / var(--tw-bg-opacity, 1))
|
|
202
|
-
}
|
|
203
|
-
.btn-primary:disabled {
|
|
204
|
-
|
|
205
|
-
border-color: transparent;
|
|
206
|
-
|
|
207
|
-
background-color: #12192a0A;
|
|
208
|
-
|
|
209
|
-
--tw-text-opacity: 1;
|
|
210
|
-
|
|
211
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
212
|
-
}
|
|
213
|
-
.btn-primary:hover:disabled {
|
|
214
|
-
|
|
215
|
-
background-color: #12192a0A
|
|
216
|
-
}
|
|
109
|
+
@apply border-input bg-accent-inverse text-primary-inverse shadow-input hover:bg-accent-inverse-hover disabled:border-transparent disabled:bg-neutral disabled:text-tertiary disabled:hover:bg-neutral;
|
|
110
|
+
}
|
|
217
111
|
|
|
218
112
|
.btn-secondary {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
--tw-text-opacity: 1;
|
|
223
|
-
|
|
224
|
-
color: rgb(18 25 42 / var(--tw-text-opacity, 1))
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.btn-secondary:hover {
|
|
228
|
-
|
|
229
|
-
background-color: #12192A1A
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.btn-secondary:active {
|
|
233
|
-
|
|
234
|
-
background-color: #12192a0A
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.btn-secondary:disabled {
|
|
238
|
-
|
|
239
|
-
border-color: transparent;
|
|
240
|
-
|
|
241
|
-
background-color: #12192a0A;
|
|
242
|
-
|
|
243
|
-
--tw-text-opacity: 1;
|
|
244
|
-
|
|
245
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.btn-secondary:hover:disabled {
|
|
249
|
-
|
|
250
|
-
background-color: #12192a0A
|
|
251
|
-
}
|
|
113
|
+
@apply bg-neutral text-primary hover:bg-neutral-hover active:bg-neutral disabled:border-transparent disabled:bg-neutral disabled:text-tertiary disabled:hover:bg-neutral;
|
|
114
|
+
}
|
|
252
115
|
.btn-transparent {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
color: inherit
|
|
257
|
-
}
|
|
258
|
-
.btn-transparent:hover {
|
|
259
|
-
|
|
260
|
-
background-color: #12192a0A
|
|
261
|
-
}
|
|
262
|
-
.btn-transparent:disabled {
|
|
263
|
-
|
|
264
|
-
background-color: transparent;
|
|
265
|
-
|
|
266
|
-
--tw-text-opacity: 1;
|
|
267
|
-
|
|
268
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
269
|
-
}
|
|
270
|
-
.btn-transparent:hover:disabled {
|
|
271
|
-
|
|
272
|
-
background-color: transparent
|
|
273
|
-
}
|
|
116
|
+
@apply bg-transparent text-inherit hover:bg-neutral disabled:bg-transparent disabled:text-tertiary disabled:hover:bg-transparent;
|
|
117
|
+
}
|
|
274
118
|
.btn-danger {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
--tw-bg-opacity: 1;
|
|
279
|
-
|
|
280
|
-
background-color: rgb(235 70 71 / var(--tw-bg-opacity, 1));
|
|
281
|
-
|
|
282
|
-
--tw-text-opacity: 1;
|
|
283
|
-
|
|
284
|
-
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
285
|
-
|
|
286
|
-
--tw-shadow: 0 1px 4px 0 rgba(18, 25, 42, 0.02);
|
|
287
|
-
|
|
288
|
-
--tw-shadow-colored: 0 1px 4px 0 var(--tw-shadow-color);
|
|
289
|
-
|
|
290
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
291
|
-
}
|
|
292
|
-
.btn-danger:hover {
|
|
293
|
-
|
|
294
|
-
--tw-bg-opacity: 1;
|
|
295
|
-
|
|
296
|
-
background-color: rgb(191 57 58 / var(--tw-bg-opacity, 1))
|
|
297
|
-
}
|
|
298
|
-
.btn-danger:disabled {
|
|
299
|
-
|
|
300
|
-
border-color: transparent;
|
|
301
|
-
|
|
302
|
-
background-color: #12192a0A;
|
|
303
|
-
|
|
304
|
-
--tw-text-opacity: 1;
|
|
305
|
-
|
|
306
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
307
|
-
}
|
|
308
|
-
.btn-danger:hover:disabled {
|
|
309
|
-
|
|
310
|
-
background-color: #12192a0A
|
|
311
|
-
}
|
|
119
|
+
@apply border-input bg-danger-inverse text-primary-inverse shadow-input hover:bg-danger-inverse-hover disabled:border-transparent disabled:bg-neutral disabled:text-tertiary disabled:hover:bg-neutral;
|
|
120
|
+
}
|
|
312
121
|
.btn-outline {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
--tw-bg-opacity: 1;
|
|
317
|
-
|
|
318
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
319
|
-
|
|
320
|
-
--tw-text-opacity: 1;
|
|
321
|
-
|
|
322
|
-
color: rgb(18 25 42 / var(--tw-text-opacity, 1));
|
|
323
|
-
|
|
324
|
-
--tw-shadow: 0 1px 4px 0 rgba(18, 25, 42, 0.02);
|
|
325
|
-
|
|
326
|
-
--tw-shadow-colored: 0 1px 4px 0 var(--tw-shadow-color);
|
|
327
|
-
|
|
328
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
329
|
-
}
|
|
330
|
-
.btn-outline:hover {
|
|
331
|
-
|
|
332
|
-
border-color: #12192A1A;
|
|
333
|
-
|
|
334
|
-
background-color: #12192a0A;
|
|
335
|
-
|
|
336
|
-
--tw-text-opacity: 1;
|
|
337
|
-
|
|
338
|
-
color: rgb(18 25 42 / var(--tw-text-opacity, 1))
|
|
339
|
-
}
|
|
340
|
-
.btn-outline:disabled {
|
|
341
|
-
|
|
342
|
-
border-color: #12192a14;
|
|
343
|
-
|
|
344
|
-
--tw-bg-opacity: 1;
|
|
345
|
-
|
|
346
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
347
|
-
|
|
348
|
-
--tw-text-opacity: 1;
|
|
349
|
-
|
|
350
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1));
|
|
351
|
-
|
|
352
|
-
--tw-shadow: 0 0 #0000;
|
|
353
|
-
|
|
354
|
-
--tw-shadow-colored: 0 0 #0000;
|
|
355
|
-
|
|
356
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
|
357
|
-
}
|
|
358
|
-
.btn-outline:hover:disabled {
|
|
359
|
-
|
|
360
|
-
border-color: #12192a14;
|
|
361
|
-
|
|
362
|
-
--tw-bg-opacity: 1;
|
|
363
|
-
|
|
364
|
-
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))
|
|
365
|
-
}
|
|
122
|
+
@apply border-input bg-surface text-primary shadow-input hover:border-input hover:bg-neutral hover:text-primary disabled:border-static disabled:bg-surface disabled:text-tertiary disabled:shadow-none disabled:hover:bg-surface disabled:hover:border-static;
|
|
123
|
+
}
|
|
366
124
|
.btn-secondary-inverse {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
--tw-text-opacity: 1;
|
|
371
|
-
|
|
372
|
-
color: rgb(255 255 255 / var(--tw-text-opacity, 1))
|
|
373
|
-
}
|
|
374
|
-
.btn-secondary-inverse:hover {
|
|
375
|
-
|
|
376
|
-
background-color: #FFFFFF26
|
|
377
|
-
}
|
|
378
|
-
.btn-secondary-inverse:active {
|
|
379
|
-
|
|
380
|
-
background-color: #FFFFFF0D
|
|
381
|
-
}
|
|
382
|
-
.btn-secondary-inverse:disabled {
|
|
383
|
-
|
|
384
|
-
border-color: transparent;
|
|
385
|
-
|
|
386
|
-
background-color: #FFFFFF0D;
|
|
387
|
-
|
|
388
|
-
--tw-text-opacity: 1;
|
|
389
|
-
|
|
390
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
391
|
-
}
|
|
392
|
-
.btn-secondary-inverse:hover:disabled {
|
|
393
|
-
|
|
394
|
-
background-color: #FFFFFF0D
|
|
395
|
-
}
|
|
125
|
+
@apply bg-neutral-inverse text-primary-inverse hover:bg-neutral-inverse-hover active:bg-neutral-inverse disabled:border-transparent disabled:bg-neutral-inverse disabled:text-tertiary disabled:hover:bg-neutral-inverse;
|
|
126
|
+
}
|
|
396
127
|
.btn-transparent-inverse {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
--tw-text-opacity: 1;
|
|
401
|
-
|
|
402
|
-
color: rgb(255 255 255 / var(--tw-text-opacity, 1))
|
|
403
|
-
}
|
|
404
|
-
.btn-transparent-inverse:hover {
|
|
405
|
-
|
|
406
|
-
background-color: #FFFFFF0D
|
|
407
|
-
}
|
|
408
|
-
.btn-transparent-inverse:active {
|
|
409
|
-
|
|
410
|
-
background-color: #FFFFFF0D
|
|
411
|
-
}
|
|
412
|
-
.btn-transparent-inverse:disabled {
|
|
413
|
-
|
|
414
|
-
background-color: transparent;
|
|
415
|
-
|
|
416
|
-
--tw-text-opacity: 1;
|
|
417
|
-
|
|
418
|
-
color: rgb(136 140 148 / var(--tw-text-opacity, 1))
|
|
419
|
-
}
|
|
420
|
-
.btn-transparent-inverse:hover:disabled {
|
|
421
|
-
|
|
422
|
-
background-color: transparent
|
|
423
|
-
}
|
|
128
|
+
@apply bg-transparent text-primary-inverse hover:bg-neutral-inverse active:bg-neutral-inverse disabled:bg-transparent disabled:text-tertiary disabled:hover:bg-transparent;
|
|
129
|
+
}
|
|
424
130
|
</style>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
{/if}
|
|
35
35
|
<div
|
|
36
36
|
class={twMerge(
|
|
37
|
-
'flex w-full flex-col
|
|
37
|
+
'flex w-full flex-col overflow-hidden! [&>*]:w-full',
|
|
38
38
|
variant === 'default' && 'gap-1 [&>*]:rounded-xl',
|
|
39
39
|
variant === 'compact' && 'gap-0.5 [&>*]:rounded-[10px]'
|
|
40
40
|
)}
|
|
@@ -49,32 +49,16 @@
|
|
|
49
49
|
</div>
|
|
50
50
|
|
|
51
51
|
<style>
|
|
52
|
+
@reference "../../app.css";
|
|
52
53
|
.wrapper {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
|
|
58
|
-
--tw-bg-opacity: 1;
|
|
59
|
-
|
|
60
|
-
background-color: rgb(249 249 250 / var(--tw-bg-opacity, 1))
|
|
61
|
-
}
|
|
54
|
+
@apply flex flex-col bg-base;
|
|
55
|
+
}
|
|
62
56
|
|
|
63
57
|
.wrapper.default {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
border-radius: 1rem;
|
|
68
|
-
|
|
69
|
-
padding: 0.25rem
|
|
70
|
-
}
|
|
58
|
+
@apply gap-1 rounded-2xl p-1;
|
|
59
|
+
}
|
|
71
60
|
|
|
72
61
|
.wrapper.compact {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
border-radius: 0.75rem;
|
|
77
|
-
|
|
78
|
-
padding: 0.125rem
|
|
79
|
-
}
|
|
62
|
+
@apply gap-0.5 rounded-xl p-0.5;
|
|
63
|
+
}
|
|
80
64
|
</style>
|
|
@@ -17,21 +17,14 @@
|
|
|
17
17
|
</Collapsible.Trigger>
|
|
18
18
|
|
|
19
19
|
<style>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
20
|
+
@reference "../../../app.css";
|
|
21
|
+
:global([data-state='open']) {
|
|
22
|
+
:global(.icon) {
|
|
23
|
+
@apply rotate-180;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
26
|
|
|
27
27
|
.container {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
align-items: center;
|
|
32
|
-
|
|
33
|
-
justify-content: space-between;
|
|
34
|
-
|
|
35
|
-
gap: 0.5rem
|
|
36
|
-
}
|
|
28
|
+
@apply flex items-center justify-between gap-2;
|
|
29
|
+
}
|
|
37
30
|
</style>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import MagnifyingGlass from 'phosphor-svelte/lib/MagnifyingGlass';
|
|
5
5
|
import { Icon } from '../icons/index.js';
|
|
6
6
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
7
|
-
import { userEvent, within } from '
|
|
7
|
+
import { userEvent, within } from 'storybook/test';
|
|
8
8
|
import { Root as ComboboxRootForMeta } from './index';
|
|
9
9
|
import * as Combobox from './index';
|
|
10
10
|
import IconButton from '../icon-button/IconButton.svelte';
|