@frontile/theme 0.18.0-alpha.1 → 0.18.0-alpha.11
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/README.md +20 -22
- package/declarations/colors/config.d.ts +8 -32
- package/declarations/colors/palette-absolute.d.ts +2 -2
- package/declarations/colors/palette.d.ts +1 -1
- package/declarations/colors/types.d.ts +102 -151
- package/declarations/components/button.d.ts +13 -0
- package/declarations/components/dropdown.d.ts +2 -2
- package/declarations/components/forms/forms.d.ts +414 -23
- package/declarations/components/index.d.ts +1 -0
- package/declarations/components/listbox.d.ts +5 -0
- package/declarations/components/popover.d.ts +2 -2
- package/declarations/components/progress-bar.d.ts +15 -0
- package/declarations/components/skeleton.d.ts +149 -0
- package/declarations/components/spinner.d.ts +5 -0
- package/declarations/components/table.d.ts +6 -0
- package/declarations/plugin/default-config.d.ts +8 -32
- package/dist/colors.js +1 -1
- package/dist/config-CDp8PRHs.js +370 -0
- package/dist/config-CDp8PRHs.js.map +1 -0
- package/dist/{forms-legacy-B-L2HELt.js → forms-legacy-BxJS2xFC.js} +364 -173
- package/dist/forms-legacy-BxJS2xFC.js.map +1 -0
- package/dist/index.css +31 -3
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +10 -6
- package/dist/plugin.js.map +1 -1
- package/dist/styles/font-faces.css +52 -8
- package/dist/styles/typography.css +213 -117
- package/package.json +8 -5
- package/public/fonts/domine-variable.woff2 +0 -0
- package/public/fonts/open-sans-italic-variable.woff2 +0 -0
- package/public/fonts/open-sans-variable.woff2 +0 -0
- package/public/fonts/source-code-pro-italic-variable.woff2 +0 -0
- package/public/fonts/source-code-pro-variable.woff2 +0 -0
- package/src/index.css +31 -3
- package/src/styles/font-faces.css +52 -8
- package/src/styles/typography.css +213 -117
- package/dist/config-4CswsBlg.js +0 -342
- package/dist/config-4CswsBlg.js.map +0 -1
- package/dist/config-B3XkEtHW.js +0 -377
- package/dist/config-B3XkEtHW.js.map +0 -1
- package/dist/config-BpWBpuzR.js +0 -335
- package/dist/config-BpWBpuzR.js.map +0 -1
- package/dist/config-Cle59Y4k.js +0 -523
- package/dist/config-Cle59Y4k.js.map +0 -1
- package/dist/config-D0EoeVzn.js +0 -388
- package/dist/config-D0EoeVzn.js.map +0 -1
- package/dist/config-DBAavoE2.js +0 -336
- package/dist/config-DBAavoE2.js.map +0 -1
- package/dist/config-Oysuq2Z9.js +0 -341
- package/dist/config-Oysuq2Z9.js.map +0 -1
- package/dist/config-PYki2g7N.js +0 -335
- package/dist/config-PYki2g7N.js.map +0 -1
- package/dist/forms-legacy-15iy0KmK.js +0 -1851
- package/dist/forms-legacy-15iy0KmK.js.map +0 -1
- package/dist/forms-legacy-B-L2HELt.js.map +0 -1
- package/dist/forms-legacy-BMIAioRi.js +0 -1807
- package/dist/forms-legacy-BMIAioRi.js.map +0 -1
- package/dist/forms-legacy-B_EygtyK.js +0 -1763
- package/dist/forms-legacy-B_EygtyK.js.map +0 -1
- package/dist/forms-legacy-Bg_UoLDR.js +0 -1763
- package/dist/forms-legacy-Bg_UoLDR.js.map +0 -1
- package/dist/forms-legacy-CVLZ-9BG.js +0 -1804
- package/dist/forms-legacy-CVLZ-9BG.js.map +0 -1
- package/dist/forms-legacy-CuFc3hcn.js +0 -1807
- package/dist/forms-legacy-CuFc3hcn.js.map +0 -1
- package/dist/forms-legacy-DiKImAli.js +0 -1809
- package/dist/forms-legacy-DiKImAli.js.map +0 -1
- package/dist/forms-legacy-edWQVbZP.js +0 -1809
- package/dist/forms-legacy-edWQVbZP.js.map +0 -1
- package/dist/semantic-DUv6Lpqq.js +0 -218
- package/dist/semantic-DUv6Lpqq.js.map +0 -1
- package/public/fonts/stix-two-text-italic-variable.woff2 +0 -0
- package/public/fonts/stix-two-text-variable.woff2 +0 -0
|
@@ -83,7 +83,7 @@ const avatar = tv({
|
|
|
83
83
|
slots: {
|
|
84
84
|
base: ['flex', 'relative', 'justify-center', 'items-center', 'box-border', 'overflow-hidden', 'align-middle', 'text-neutral-strong', 'z-0', 'bg-neutral-subtle', 'ring-1 ring-default ring-offset-1 ring-offset-background'],
|
|
85
85
|
img: 'size-full',
|
|
86
|
-
name: ['w-full', 'font-
|
|
86
|
+
name: ['w-full', 'font-label', 'text-center', 'text-inherit', 'absolute', 'top-1/2', 'left-1/2', '-translate-x-1/2', '-translate-y-1/2', 'select-none']
|
|
87
87
|
},
|
|
88
88
|
variants: {
|
|
89
89
|
shape: {
|
|
@@ -92,19 +92,19 @@ const avatar = tv({
|
|
|
92
92
|
},
|
|
93
93
|
size: {
|
|
94
94
|
xs: {
|
|
95
|
-
base: 'size-5 text-
|
|
95
|
+
base: 'size-5 text-label-2xs'
|
|
96
96
|
},
|
|
97
97
|
sm: {
|
|
98
|
-
base: 'size-6 text-
|
|
98
|
+
base: 'size-6 text-label-xs'
|
|
99
99
|
},
|
|
100
100
|
md: {
|
|
101
|
-
base: 'size-8 text-
|
|
101
|
+
base: 'size-8 text-label-sm'
|
|
102
102
|
},
|
|
103
103
|
lg: {
|
|
104
|
-
base: 'size-10 text-
|
|
104
|
+
base: 'size-10 text-label-md'
|
|
105
105
|
},
|
|
106
106
|
xl: {
|
|
107
|
-
base: 'size-12 text-
|
|
107
|
+
base: 'size-12 text-label-lg'
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
},
|
|
@@ -118,28 +118,38 @@ const focusVisibleRing = ['outline-hidden', 'focus-visible:z-10', 'focus-visible
|
|
|
118
118
|
const focusVisibleWithinRing = ['outline-hidden', 'has-focus-visible:z-10', 'has-focus-visible:ring-3', 'has-[:focus-visible]:ring-focus', 'has-focus-visible:ring-offset-2', 'has-[:focus-visible]:ring-offset-background'];
|
|
119
119
|
|
|
120
120
|
const baseButton = tv({
|
|
121
|
-
base: [
|
|
121
|
+
base: [
|
|
122
|
+
// strong text role (Open Sans bold); size variants set text-strong-* which
|
|
123
|
+
// carries the label size, weight, tracking, and line-height per the Facet spec
|
|
124
|
+
'inline-flex items-center justify-center', '[&_svg]:size-[1em]', 'font-header', 'border', 'border-transparent', 'disabled:cursor-not-allowed', 'disabled:bg-surface-overlay-soft', 'disabled:text-neutral', 'disabled:border-neutral-soft', ...focusVisibleRing],
|
|
122
125
|
variants: {
|
|
123
126
|
appearance: {
|
|
124
127
|
outlined: ''
|
|
125
128
|
},
|
|
126
129
|
intent: {
|
|
127
130
|
default: '',
|
|
128
|
-
primary: 'focus-visible:ring-
|
|
131
|
+
primary: 'focus-visible:ring-primary-soft',
|
|
129
132
|
accent: 'focus-visible:ring-accent-soft',
|
|
130
133
|
success: 'focus-visible:ring-success-soft',
|
|
131
134
|
warning: 'focus-visible:ring-warning-soft',
|
|
132
135
|
danger: 'focus-visible:ring-danger-soft'
|
|
133
136
|
},
|
|
134
137
|
size: {
|
|
135
|
-
xs: 'text-
|
|
136
|
-
sm: 'text-
|
|
137
|
-
md: 'text-lg
|
|
138
|
-
lg: 'text-xl
|
|
139
|
-
xl: 'text-
|
|
138
|
+
xs: 'text-strong-sm px-4 py-1 gap-1 rounded-full',
|
|
139
|
+
sm: 'text-strong-md px-5 py-1.5 gap-1 rounded-full',
|
|
140
|
+
md: 'text-strong-lg px-6 py-2 gap-1.5 rounded-full',
|
|
141
|
+
lg: 'text-strong-xl px-8 py-2.5 gap-1.5 rounded-full',
|
|
142
|
+
xl: 'text-strong-2xl px-10 py-3 gap-2 rounded-full',
|
|
143
|
+
'2xl': 'text-strong-3xl px-12 py-3.5 gap-2.5 rounded-full'
|
|
140
144
|
},
|
|
141
145
|
isInGroup: {
|
|
142
|
-
true: [
|
|
146
|
+
true: [
|
|
147
|
+
// :first-of-type/:last-of-type (not :first-child/:last-child): a
|
|
148
|
+
// grouped Dropdown's trigger can have a trailing portal-marker
|
|
149
|
+
// <script> element as a sibling inside the group, which would make
|
|
150
|
+
// the last button no longer :last-child. -of-type only counts
|
|
151
|
+
// siblings of the same tag (button), so it isn't thrown off by it.
|
|
152
|
+
'rounded-none first-of-type:rounded-s-full last-of-type:rounded-e-full', '[&:not(:first-of-type):not(:last-of-type)]:rounded-none', 'not-last-of-type:-me-px']
|
|
143
153
|
}
|
|
144
154
|
},
|
|
145
155
|
compoundVariants: [
|
|
@@ -147,27 +157,27 @@ const baseButton = tv({
|
|
|
147
157
|
{
|
|
148
158
|
appearance: 'outlined',
|
|
149
159
|
intent: 'default',
|
|
150
|
-
class: 'text-neutral-
|
|
160
|
+
class: 'text-neutral-bolder border-neutral-bolder hover:bg-neutral-subtle hover:border-neutral-bolder hover:text-neutral-bolder active:bg-neutral-muted active:border-neutral-strong active:text-neutral-strong'
|
|
151
161
|
}, {
|
|
152
162
|
appearance: 'outlined',
|
|
153
163
|
intent: 'primary',
|
|
154
|
-
class: 'text-
|
|
164
|
+
class: 'text-primary-strong border-primary hover:bg-primary-subtle hover:border-primary-soft hover:text-primary-bolder active:bg-primary-muted active:border-primary-firm active:text-primary-bolder'
|
|
155
165
|
}, {
|
|
156
166
|
appearance: 'outlined',
|
|
157
167
|
intent: 'accent',
|
|
158
|
-
class: 'text-accent-strong border-accent
|
|
168
|
+
class: 'text-accent-strong border-accent hover:bg-accent-subtle hover:border-accent-soft hover:text-accent-bolder active:bg-accent-muted active:border-accent-firm active:text-accent-bolder'
|
|
159
169
|
}, {
|
|
160
170
|
appearance: 'outlined',
|
|
161
171
|
intent: 'success',
|
|
162
|
-
class: 'text-success-strong border-success
|
|
172
|
+
class: 'text-success-strong border-success hover:bg-success-subtle hover:border-success-soft hover:text-success-bolder active:bg-success-muted active:border-success-firm active:text-success-bolder'
|
|
163
173
|
}, {
|
|
164
174
|
appearance: 'outlined',
|
|
165
175
|
intent: 'warning',
|
|
166
|
-
class: 'text-warning-strong border-warning
|
|
176
|
+
class: 'text-warning-strong border-warning hover:bg-warning-subtle hover:border-warning-soft hover:text-warning-bolder active:bg-warning-muted active:border-warning-firm active:text-warning-bolder'
|
|
167
177
|
}, {
|
|
168
178
|
appearance: 'outlined',
|
|
169
179
|
intent: 'danger',
|
|
170
|
-
class: 'text-danger-strong border-danger
|
|
180
|
+
class: 'text-danger-strong border-danger hover:bg-danger-subtle hover:border-danger-soft hover:text-danger-bolder active:bg-danger-muted active:border-danger-firm active:text-danger-bolder'
|
|
171
181
|
}],
|
|
172
182
|
defaultVariants: {
|
|
173
183
|
size: 'md',
|
|
@@ -180,6 +190,7 @@ const button = tv({
|
|
|
180
190
|
variants: {
|
|
181
191
|
appearance: {
|
|
182
192
|
default: 'shadow-elevation-2',
|
|
193
|
+
soft: '',
|
|
183
194
|
outlined: '',
|
|
184
195
|
minimal: '',
|
|
185
196
|
tonal: 'shadow-elevation-2',
|
|
@@ -188,82 +199,114 @@ const button = tv({
|
|
|
188
199
|
},
|
|
189
200
|
compoundVariants: [
|
|
190
201
|
// APPEARANCE: default (filled)
|
|
202
|
+
// Text color is fixed to the rest on-color for all states — only the
|
|
203
|
+
// background walks the interaction trio. Switching the on-color per
|
|
204
|
+
// state causes the label to flip white/black mid-interaction whenever
|
|
205
|
+
// a state's background crosses the contrast threshold (e.g. primary's
|
|
206
|
+
// hover step is lighter than its rest step in light mode).
|
|
191
207
|
{
|
|
192
208
|
appearance: 'default',
|
|
193
209
|
intent: 'default',
|
|
194
|
-
class: 'bg-neutral-
|
|
210
|
+
class: 'bg-neutral-bolder text-on-neutral-bolder hover:bg-neutral-bolder active:bg-neutral-strong'
|
|
195
211
|
}, {
|
|
196
212
|
appearance: 'default',
|
|
197
213
|
intent: 'primary',
|
|
198
|
-
class: 'bg-
|
|
214
|
+
class: 'bg-primary text-on-primary hover:bg-primary-soft active:bg-primary-firm'
|
|
199
215
|
}, {
|
|
200
216
|
appearance: 'default',
|
|
201
217
|
intent: 'accent',
|
|
202
|
-
class: 'bg-accent
|
|
218
|
+
class: 'bg-accent text-on-accent hover:bg-accent-soft active:bg-accent-firm'
|
|
203
219
|
}, {
|
|
204
220
|
appearance: 'default',
|
|
205
221
|
intent: 'success',
|
|
206
|
-
class: 'bg-success
|
|
222
|
+
class: 'bg-success text-on-success hover:bg-success-soft active:bg-success-firm'
|
|
207
223
|
}, {
|
|
208
224
|
appearance: 'default',
|
|
209
225
|
intent: 'warning',
|
|
210
|
-
class: 'bg-warning
|
|
226
|
+
class: 'bg-warning text-on-warning hover:bg-warning-soft active:bg-warning-firm'
|
|
211
227
|
}, {
|
|
212
228
|
appearance: 'default',
|
|
213
229
|
intent: 'danger',
|
|
214
|
-
class: 'bg-danger
|
|
230
|
+
class: 'bg-danger text-on-danger hover:bg-danger-soft active:bg-danger-firm'
|
|
231
|
+
},
|
|
232
|
+
// APPEARANCE: soft (tint fill + colored stroke)
|
|
233
|
+
{
|
|
234
|
+
appearance: 'soft',
|
|
235
|
+
intent: 'default',
|
|
236
|
+
class: 'bg-neutral-subtle border-neutral-bolder text-neutral-bolder hover:bg-neutral-muted hover:border-neutral-bolder hover:text-neutral-bolder active:bg-neutral-soft active:border-neutral-strong active:text-neutral-strong'
|
|
237
|
+
}, {
|
|
238
|
+
appearance: 'soft',
|
|
239
|
+
intent: 'primary',
|
|
240
|
+
class: 'bg-primary-subtle border-primary text-primary-strong hover:bg-primary-muted hover:border-primary-soft hover:text-primary-bolder active:bg-primary-soft active:border-primary-firm active:text-primary-bolder'
|
|
241
|
+
}, {
|
|
242
|
+
appearance: 'soft',
|
|
243
|
+
intent: 'accent',
|
|
244
|
+
class: 'bg-accent-subtle border-accent text-accent-strong hover:bg-accent-muted hover:border-accent-soft hover:text-accent-bolder active:bg-accent-soft active:border-accent-firm active:text-accent-bolder'
|
|
245
|
+
}, {
|
|
246
|
+
appearance: 'soft',
|
|
247
|
+
intent: 'success',
|
|
248
|
+
class: 'bg-success-subtle border-success text-success-strong hover:bg-success-muted hover:border-success-soft hover:text-success-bolder active:bg-success-soft active:border-success-firm active:text-success-bolder'
|
|
249
|
+
}, {
|
|
250
|
+
appearance: 'soft',
|
|
251
|
+
intent: 'warning',
|
|
252
|
+
class: 'bg-warning-subtle border-warning text-warning-strong hover:bg-warning-muted hover:border-warning-soft hover:text-warning-bolder active:bg-warning-soft active:border-warning-firm active:text-warning-bolder'
|
|
253
|
+
}, {
|
|
254
|
+
appearance: 'soft',
|
|
255
|
+
intent: 'danger',
|
|
256
|
+
class: 'bg-danger-subtle border-danger text-danger-strong hover:bg-danger-muted hover:border-danger-soft hover:text-danger-bolder active:bg-danger-soft active:border-danger-firm active:text-danger-bolder'
|
|
215
257
|
},
|
|
216
258
|
// APPEARANCE: minimal (ghost)
|
|
217
259
|
{
|
|
218
260
|
appearance: 'minimal',
|
|
219
261
|
intent: 'default',
|
|
220
|
-
class: 'text-neutral-
|
|
262
|
+
class: 'text-neutral-bolder hover:bg-neutral-subtle hover:text-neutral-bolder active:bg-neutral-muted active:text-neutral-strong'
|
|
221
263
|
}, {
|
|
222
264
|
appearance: 'minimal',
|
|
223
265
|
intent: 'primary',
|
|
224
|
-
class: 'text-
|
|
266
|
+
class: 'text-primary-strong hover:bg-primary-subtle hover:text-primary-bolder active:bg-primary-muted active:text-primary-bolder'
|
|
225
267
|
}, {
|
|
226
268
|
appearance: 'minimal',
|
|
227
269
|
intent: 'accent',
|
|
228
|
-
class: 'text-accent-strong hover:bg-accent-subtle active:bg-accent-muted active:text-accent-bolder'
|
|
270
|
+
class: 'text-accent-strong hover:bg-accent-subtle hover:text-accent-bolder active:bg-accent-muted active:text-accent-bolder'
|
|
229
271
|
}, {
|
|
230
272
|
appearance: 'minimal',
|
|
231
273
|
intent: 'success',
|
|
232
|
-
class: 'text-success-strong hover:bg-success-subtle active:bg-success-muted active:text-success-bolder'
|
|
274
|
+
class: 'text-success-strong hover:bg-success-subtle hover:text-success-bolder active:bg-success-muted active:text-success-bolder'
|
|
233
275
|
}, {
|
|
234
276
|
appearance: 'minimal',
|
|
235
277
|
intent: 'warning',
|
|
236
|
-
class: 'text-warning-strong hover:bg-warning-subtle active:bg-warning-muted active:text-warning-bolder'
|
|
278
|
+
class: 'text-warning-strong hover:bg-warning-subtle hover:text-warning-bolder active:bg-warning-muted active:text-warning-bolder'
|
|
237
279
|
}, {
|
|
238
280
|
appearance: 'minimal',
|
|
239
281
|
intent: 'danger',
|
|
240
|
-
class: 'text-danger-strong hover:bg-danger-subtle active:bg-danger-muted active:text-danger-bolder'
|
|
282
|
+
class: 'text-danger-strong hover:bg-danger-subtle hover:text-danger-bolder active:bg-danger-muted active:text-danger-bolder'
|
|
241
283
|
},
|
|
242
|
-
// APPEARANCE: tonal
|
|
284
|
+
// APPEARANCE: tonal — text stays fixed (on-tonal); only the tint
|
|
285
|
+
// background walks tonal → tint-hover → tint-pressed.
|
|
243
286
|
{
|
|
244
287
|
appearance: 'tonal',
|
|
245
288
|
intent: 'default',
|
|
246
|
-
class: 'bg-neutral-subtle text-neutral-
|
|
289
|
+
class: 'bg-neutral-subtle text-neutral-bolder hover:bg-neutral-muted active:bg-neutral-soft'
|
|
247
290
|
}, {
|
|
248
291
|
appearance: 'tonal',
|
|
249
292
|
intent: 'primary',
|
|
250
|
-
class: 'bg-
|
|
293
|
+
class: 'bg-primary-subtle text-primary-strong hover:bg-primary-muted active:bg-primary-soft'
|
|
251
294
|
}, {
|
|
252
295
|
appearance: 'tonal',
|
|
253
296
|
intent: 'accent',
|
|
254
|
-
class: 'bg-accent-subtle text-accent-strong hover:bg-accent-muted active:bg-accent-soft
|
|
297
|
+
class: 'bg-accent-subtle text-accent-strong hover:bg-accent-muted active:bg-accent-soft'
|
|
255
298
|
}, {
|
|
256
299
|
appearance: 'tonal',
|
|
257
300
|
intent: 'success',
|
|
258
|
-
class: 'bg-success-subtle text-success-strong hover:bg-success-muted active:bg-success-soft
|
|
301
|
+
class: 'bg-success-subtle text-success-strong hover:bg-success-muted active:bg-success-soft'
|
|
259
302
|
}, {
|
|
260
303
|
appearance: 'tonal',
|
|
261
304
|
intent: 'warning',
|
|
262
|
-
class: 'bg-warning-subtle text-warning-strong hover:bg-warning-muted active:bg-warning-soft
|
|
305
|
+
class: 'bg-warning-subtle text-warning-strong hover:bg-warning-muted active:bg-warning-soft'
|
|
263
306
|
}, {
|
|
264
307
|
appearance: 'tonal',
|
|
265
308
|
intent: 'danger',
|
|
266
|
-
class: 'bg-danger-subtle text-danger-strong hover:bg-danger-muted active:bg-danger-soft
|
|
309
|
+
class: 'bg-danger-subtle text-danger-strong hover:bg-danger-muted active:bg-danger-soft'
|
|
267
310
|
},
|
|
268
311
|
// APPEARANCE: custom
|
|
269
312
|
{
|
|
@@ -273,7 +316,7 @@ const button = tv({
|
|
|
273
316
|
}, {
|
|
274
317
|
appearance: 'custom',
|
|
275
318
|
intent: 'primary',
|
|
276
|
-
class: 'text-
|
|
319
|
+
class: 'text-primary-strong'
|
|
277
320
|
}, {
|
|
278
321
|
appearance: 'custom',
|
|
279
322
|
intent: 'accent',
|
|
@@ -308,42 +351,43 @@ const toggleButton = tv({
|
|
|
308
351
|
appearance: 'outlined',
|
|
309
352
|
intent: 'default',
|
|
310
353
|
isSelected: true,
|
|
311
|
-
class: 'bg-neutral-
|
|
354
|
+
class: 'bg-neutral-bolder text-on-neutral-bolder hover:bg-neutral-bolder'
|
|
312
355
|
}, {
|
|
313
356
|
appearance: 'outlined',
|
|
314
357
|
intent: 'primary',
|
|
315
358
|
isSelected: true,
|
|
316
|
-
class: 'bg-
|
|
359
|
+
class: 'bg-primary text-on-primary hover:bg-primary-soft'
|
|
317
360
|
}, {
|
|
318
361
|
appearance: 'outlined',
|
|
319
362
|
intent: 'accent',
|
|
320
363
|
isSelected: true,
|
|
321
|
-
class: 'bg-accent
|
|
364
|
+
class: 'bg-accent text-on-accent hover:bg-accent-soft'
|
|
322
365
|
}, {
|
|
323
366
|
appearance: 'outlined',
|
|
324
367
|
intent: 'success',
|
|
325
368
|
isSelected: true,
|
|
326
|
-
class: 'bg-success
|
|
369
|
+
class: 'bg-success text-on-success hover:bg-success-soft'
|
|
327
370
|
}, {
|
|
328
371
|
appearance: 'outlined',
|
|
329
372
|
intent: 'warning',
|
|
330
373
|
isSelected: true,
|
|
331
|
-
class: 'bg-warning
|
|
374
|
+
class: 'bg-warning text-on-warning hover:bg-warning-soft'
|
|
332
375
|
}, {
|
|
333
376
|
appearance: 'outlined',
|
|
334
377
|
intent: 'danger',
|
|
335
378
|
isSelected: true,
|
|
336
|
-
class: 'bg-danger
|
|
379
|
+
class: 'bg-danger text-on-danger hover:bg-danger-soft'
|
|
337
380
|
}]
|
|
338
381
|
});
|
|
339
382
|
const buttonGroup = tv({
|
|
340
|
-
base: ['inline-flex items-
|
|
383
|
+
base: ['inline-flex items-stretch justify-center h-auto']
|
|
341
384
|
});
|
|
342
385
|
|
|
343
386
|
const chip = tv({
|
|
344
387
|
slots: {
|
|
345
|
-
base: ['
|
|
346
|
-
|
|
388
|
+
base: ['disabled:cursor-not-allowed', 'disabled:opacity-40', 'whitespace-nowrap', 'inline-flex items-center justify-between box-border'],
|
|
389
|
+
// label text role (size set per size variant)
|
|
390
|
+
content: ['flex-1 text-inherit font-label'],
|
|
347
391
|
dot: ['w-2', 'h-2', 'ml-1', 'rounded-full'],
|
|
348
392
|
closeButton: ['p-0.5']
|
|
349
393
|
},
|
|
@@ -359,44 +403,44 @@ const chip = tv({
|
|
|
359
403
|
intent: {
|
|
360
404
|
default: {
|
|
361
405
|
dot: 'bg-neutral-strong',
|
|
362
|
-
closeButton: ['bg-neutral-muted', 'text-on-neutral
|
|
406
|
+
closeButton: ['bg-neutral-muted', 'text-on-neutral', 'hover:bg-neutral']
|
|
363
407
|
},
|
|
364
408
|
primary: {
|
|
365
|
-
dot: 'bg-
|
|
366
|
-
closeButton: ['bg-
|
|
409
|
+
dot: 'bg-primary',
|
|
410
|
+
closeButton: ['bg-primary-muted', 'text-on-primary', 'hover:bg-primary-firm', 'focus-visible:ring-primary-soft']
|
|
367
411
|
},
|
|
368
412
|
accent: {
|
|
369
|
-
dot: 'bg-accent
|
|
370
|
-
closeButton: ['bg-accent-muted', 'text-on-accent
|
|
413
|
+
dot: 'bg-accent',
|
|
414
|
+
closeButton: ['bg-accent-muted', 'text-on-accent', 'hover:bg-accent-firm', 'focus-visible:ring-accent-soft']
|
|
371
415
|
},
|
|
372
416
|
success: {
|
|
373
|
-
dot: 'bg-success
|
|
374
|
-
closeButton: ['bg-success-muted', 'text-on-success
|
|
417
|
+
dot: 'bg-success',
|
|
418
|
+
closeButton: ['bg-success-muted', 'text-on-success', 'hover:bg-success-firm', 'focus-visible:ring-success-soft']
|
|
375
419
|
},
|
|
376
420
|
warning: {
|
|
377
|
-
dot: 'bg-warning
|
|
378
|
-
closeButton: ['bg-warning-muted', 'text-on-warning
|
|
421
|
+
dot: 'bg-warning',
|
|
422
|
+
closeButton: ['bg-warning-muted', 'text-on-warning', 'hover:bg-warning-firm', 'focus-visible:ring-warning-soft']
|
|
379
423
|
},
|
|
380
424
|
danger: {
|
|
381
|
-
dot: 'bg-danger
|
|
382
|
-
closeButton: ['bg-danger-muted', 'text-on-danger
|
|
425
|
+
dot: 'bg-danger',
|
|
426
|
+
closeButton: ['bg-danger-muted', 'text-on-danger', 'hover:bg-danger-firm', 'focus-visible:ring-danger-soft']
|
|
383
427
|
}
|
|
384
428
|
},
|
|
385
429
|
size: {
|
|
386
430
|
sm: {
|
|
387
|
-
base: 'text-
|
|
431
|
+
base: 'text-label-2xs px-1 h-6',
|
|
388
432
|
content: 'px-1',
|
|
389
|
-
closeButton: 'text-
|
|
433
|
+
closeButton: 'text-label-2xs'
|
|
390
434
|
},
|
|
391
435
|
md: {
|
|
392
|
-
base: 'text-
|
|
436
|
+
base: 'text-label-xs px-1 h-7',
|
|
393
437
|
content: 'px-2',
|
|
394
|
-
closeButton: 'text-
|
|
438
|
+
closeButton: 'text-label-xs'
|
|
395
439
|
},
|
|
396
440
|
lg: {
|
|
397
|
-
base: 'text-
|
|
441
|
+
base: 'text-label-md px-2 h-8',
|
|
398
442
|
content: 'px-2',
|
|
399
|
-
closeButton: 'text-
|
|
443
|
+
closeButton: 'text-label-md'
|
|
400
444
|
}
|
|
401
445
|
},
|
|
402
446
|
radius: {
|
|
@@ -412,37 +456,37 @@ const chip = tv({
|
|
|
412
456
|
appearance: 'default',
|
|
413
457
|
intent: 'default',
|
|
414
458
|
class: {
|
|
415
|
-
base: 'bg-neutral-
|
|
459
|
+
base: 'bg-neutral-bolder text-on-neutral-bolder'
|
|
416
460
|
}
|
|
417
461
|
}, {
|
|
418
462
|
appearance: 'default',
|
|
419
463
|
intent: 'primary',
|
|
420
464
|
class: {
|
|
421
|
-
base: 'bg-
|
|
465
|
+
base: 'bg-primary text-on-primary'
|
|
422
466
|
}
|
|
423
467
|
}, {
|
|
424
468
|
appearance: 'default',
|
|
425
469
|
intent: 'accent',
|
|
426
470
|
class: {
|
|
427
|
-
base: 'bg-accent
|
|
471
|
+
base: 'bg-accent text-on-accent'
|
|
428
472
|
}
|
|
429
473
|
}, {
|
|
430
474
|
appearance: 'default',
|
|
431
475
|
intent: 'success',
|
|
432
476
|
class: {
|
|
433
|
-
base: 'bg-success
|
|
477
|
+
base: 'bg-success text-on-success'
|
|
434
478
|
}
|
|
435
479
|
}, {
|
|
436
480
|
appearance: 'default',
|
|
437
481
|
intent: 'warning',
|
|
438
482
|
class: {
|
|
439
|
-
base: 'bg-warning
|
|
483
|
+
base: 'bg-warning text-on-warning'
|
|
440
484
|
}
|
|
441
485
|
}, {
|
|
442
486
|
appearance: 'default',
|
|
443
487
|
intent: 'danger',
|
|
444
488
|
class: {
|
|
445
|
-
base: 'bg-danger
|
|
489
|
+
base: 'bg-danger text-on-danger'
|
|
446
490
|
}
|
|
447
491
|
},
|
|
448
492
|
// APPEARANCE: faded (tonal)
|
|
@@ -456,7 +500,7 @@ const chip = tv({
|
|
|
456
500
|
appearance: 'faded',
|
|
457
501
|
intent: 'primary',
|
|
458
502
|
class: {
|
|
459
|
-
base: 'text-
|
|
503
|
+
base: 'text-primary-strong bg-primary-subtle'
|
|
460
504
|
}
|
|
461
505
|
}, {
|
|
462
506
|
appearance: 'faded',
|
|
@@ -488,37 +532,37 @@ const chip = tv({
|
|
|
488
532
|
appearance: 'outlined',
|
|
489
533
|
intent: 'default',
|
|
490
534
|
class: {
|
|
491
|
-
base: 'text-neutral-strong border border-neutral
|
|
535
|
+
base: 'text-neutral-strong border border-neutral'
|
|
492
536
|
}
|
|
493
537
|
}, {
|
|
494
538
|
appearance: 'outlined',
|
|
495
539
|
intent: 'primary',
|
|
496
540
|
class: {
|
|
497
|
-
base: 'text-
|
|
541
|
+
base: 'text-primary-strong border border-primary'
|
|
498
542
|
}
|
|
499
543
|
}, {
|
|
500
544
|
appearance: 'outlined',
|
|
501
545
|
intent: 'accent',
|
|
502
546
|
class: {
|
|
503
|
-
base: 'text-accent-strong border border-accent
|
|
547
|
+
base: 'text-accent-strong border border-accent'
|
|
504
548
|
}
|
|
505
549
|
}, {
|
|
506
550
|
appearance: 'outlined',
|
|
507
551
|
intent: 'success',
|
|
508
552
|
class: {
|
|
509
|
-
base: 'text-success-strong border border-success
|
|
553
|
+
base: 'text-success-strong border border-success'
|
|
510
554
|
}
|
|
511
555
|
}, {
|
|
512
556
|
appearance: 'outlined',
|
|
513
557
|
intent: 'warning',
|
|
514
558
|
class: {
|
|
515
|
-
base: 'text-warning-strong border border-warning
|
|
559
|
+
base: 'text-warning-strong border border-warning'
|
|
516
560
|
}
|
|
517
561
|
}, {
|
|
518
562
|
appearance: 'outlined',
|
|
519
563
|
intent: 'danger',
|
|
520
564
|
class: {
|
|
521
|
-
base: 'text-danger-strong border border-danger
|
|
565
|
+
base: 'text-danger-strong border border-danger'
|
|
522
566
|
}
|
|
523
567
|
}],
|
|
524
568
|
defaultVariants: {
|
|
@@ -532,9 +576,9 @@ const chip = tv({
|
|
|
532
576
|
const progressBar = tv({
|
|
533
577
|
slots: {
|
|
534
578
|
base: ['overflow-hidden w-full bg-surface-overlay-soft'],
|
|
535
|
-
label: ['flex justify-between pb-1 gap-2
|
|
579
|
+
label: ['flex justify-between pb-1 gap-2 font-label text-label-sm'],
|
|
536
580
|
progress: [''],
|
|
537
|
-
description: ['text-neutral-
|
|
581
|
+
description: ['text-neutral font-body text-body-micro pb-1']
|
|
538
582
|
},
|
|
539
583
|
variants: {
|
|
540
584
|
isIndeterminate: {
|
|
@@ -547,7 +591,10 @@ const progressBar = tv({
|
|
|
547
591
|
progress: 'bg-neutral-strong'
|
|
548
592
|
},
|
|
549
593
|
primary: {
|
|
550
|
-
progress: 'bg-
|
|
594
|
+
progress: 'bg-primary-soft'
|
|
595
|
+
},
|
|
596
|
+
accent: {
|
|
597
|
+
progress: 'bg-accent-soft'
|
|
551
598
|
},
|
|
552
599
|
success: {
|
|
553
600
|
progress: 'bg-success-soft'
|
|
@@ -563,14 +610,14 @@ const progressBar = tv({
|
|
|
563
610
|
xs: {
|
|
564
611
|
base: 'h-1',
|
|
565
612
|
progress: 'h-1',
|
|
566
|
-
label: 'text-
|
|
567
|
-
description: 'text-
|
|
613
|
+
label: 'text-label-2xs',
|
|
614
|
+
description: 'text-body-micro'
|
|
568
615
|
},
|
|
569
616
|
sm: {
|
|
570
617
|
base: 'h-2',
|
|
571
618
|
progress: 'h-2',
|
|
572
|
-
label: 'text-
|
|
573
|
-
description: 'text-
|
|
619
|
+
label: 'text-label-xs',
|
|
620
|
+
description: 'text-body-2xs'
|
|
574
621
|
},
|
|
575
622
|
md: {
|
|
576
623
|
base: 'h-4',
|
|
@@ -579,8 +626,8 @@ const progressBar = tv({
|
|
|
579
626
|
lg: {
|
|
580
627
|
base: 'h-8',
|
|
581
628
|
progress: 'h-8',
|
|
582
|
-
label: 'text-
|
|
583
|
-
description: 'text-
|
|
629
|
+
label: 'text-label-md',
|
|
630
|
+
description: 'text-body-sm'
|
|
584
631
|
}
|
|
585
632
|
},
|
|
586
633
|
radius: {
|
|
@@ -642,10 +689,10 @@ const listboxItem = tv({
|
|
|
642
689
|
slots: {
|
|
643
690
|
base: ['flex', 'group', 'gap-2', 'items-center', 'justify-between', 'relative', 'px-2', 'py-1.5', 'w-full', 'h-full', 'box-border', 'rounded-sm', 'subpixel-antialiased', 'outline-hidden', 'cursor-pointer', 'tap-highlight-transparent'],
|
|
644
691
|
descriptionWrapper: 'w-full flex flex-col items-start justify-center',
|
|
645
|
-
label: 'flex-1
|
|
646
|
-
description: ['w-full', 'text-
|
|
692
|
+
label: 'flex-1 font-body text-body-2xs truncate',
|
|
693
|
+
description: ['w-full', 'font-body text-body-micro', 'text-neutral-firm', 'group-hover:text-current'],
|
|
647
694
|
selectedIcon: ['text-inherit', 'w-4', 'h-4', 'shrink-0'],
|
|
648
|
-
shortcut: ['px-1', 'py-0.5', 'rounded-sm', 'font-
|
|
695
|
+
shortcut: ['px-1', 'py-0.5', 'rounded-sm', 'font-label', 'text-neutral', 'text-label-2xs', 'border', 'border-neutral-soft', 'group-data-is-active:border-current']
|
|
649
696
|
},
|
|
650
697
|
variants: {
|
|
651
698
|
appearance: {
|
|
@@ -663,6 +710,7 @@ const listboxItem = tv({
|
|
|
663
710
|
default: {},
|
|
664
711
|
primary: {},
|
|
665
712
|
secondary: {},
|
|
713
|
+
accent: {},
|
|
666
714
|
success: {},
|
|
667
715
|
warning: {},
|
|
668
716
|
danger: {}
|
|
@@ -704,7 +752,13 @@ const listboxItem = tv({
|
|
|
704
752
|
appearance: 'default',
|
|
705
753
|
intent: 'primary',
|
|
706
754
|
class: {
|
|
707
|
-
base: ['data-is-active:bg-
|
|
755
|
+
base: ['data-is-active:bg-primary-soft', 'data-is-active:text-on-primary-soft']
|
|
756
|
+
}
|
|
757
|
+
}, {
|
|
758
|
+
appearance: 'default',
|
|
759
|
+
intent: 'accent',
|
|
760
|
+
class: {
|
|
761
|
+
base: ['data-is-active:bg-accent-soft', 'data-is-active:text-on-accent-soft']
|
|
708
762
|
}
|
|
709
763
|
}, {
|
|
710
764
|
appearance: 'default',
|
|
@@ -736,7 +790,14 @@ const listboxItem = tv({
|
|
|
736
790
|
intent: 'primary',
|
|
737
791
|
isActive: true,
|
|
738
792
|
class: {
|
|
739
|
-
shortcut: ['text-on-
|
|
793
|
+
shortcut: ['text-on-primary-soft', 'border-on-primary-soft/20']
|
|
794
|
+
}
|
|
795
|
+
}, {
|
|
796
|
+
appearance: 'default',
|
|
797
|
+
intent: 'accent',
|
|
798
|
+
isActive: true,
|
|
799
|
+
class: {
|
|
800
|
+
shortcut: ['text-on-accent-soft', 'border-on-accent-soft/20']
|
|
740
801
|
}
|
|
741
802
|
}, {
|
|
742
803
|
appearance: 'default',
|
|
@@ -765,13 +826,19 @@ const listboxItem = tv({
|
|
|
765
826
|
appearance: 'outlined',
|
|
766
827
|
intent: 'default',
|
|
767
828
|
class: {
|
|
768
|
-
base: ['data-is-active:border-neutral
|
|
829
|
+
base: ['data-is-active:border-neutral', 'data-is-active:text-neutral-strong']
|
|
769
830
|
}
|
|
770
831
|
}, {
|
|
771
832
|
appearance: 'outlined',
|
|
772
833
|
intent: 'primary',
|
|
773
834
|
class: {
|
|
774
|
-
base: ['data-is-active:border-
|
|
835
|
+
base: ['data-is-active:border-primary', 'data-is-active:text-primary-strong']
|
|
836
|
+
}
|
|
837
|
+
}, {
|
|
838
|
+
appearance: 'outlined',
|
|
839
|
+
intent: 'accent',
|
|
840
|
+
class: {
|
|
841
|
+
base: ['data-is-active:border-accent', 'data-is-active:text-accent-strong']
|
|
775
842
|
}
|
|
776
843
|
}, {
|
|
777
844
|
appearance: 'outlined',
|
|
@@ -797,13 +864,19 @@ const listboxItem = tv({
|
|
|
797
864
|
appearance: 'faded',
|
|
798
865
|
intent: 'default',
|
|
799
866
|
class: {
|
|
800
|
-
base: ['data-is-active:bg-neutral-soft/20', 'data-is-active:border-neutral
|
|
867
|
+
base: ['data-is-active:bg-neutral-soft/20', 'data-is-active:border-neutral', 'data-is-active:text-neutral-strong']
|
|
801
868
|
}
|
|
802
869
|
}, {
|
|
803
870
|
appearance: 'faded',
|
|
804
871
|
intent: 'primary',
|
|
805
872
|
class: {
|
|
806
|
-
base: ['data-is-active:bg-
|
|
873
|
+
base: ['data-is-active:bg-primary-soft/20', 'data-is-active:border-primary', 'data-is-active:text-primary-strong']
|
|
874
|
+
}
|
|
875
|
+
}, {
|
|
876
|
+
appearance: 'faded',
|
|
877
|
+
intent: 'accent',
|
|
878
|
+
class: {
|
|
879
|
+
base: ['data-is-active:bg-accent-soft/20', 'data-is-active:border-accent', 'data-is-active:text-accent-strong']
|
|
807
880
|
}
|
|
808
881
|
}, {
|
|
809
882
|
appearance: 'faded',
|
|
@@ -827,11 +900,11 @@ const listboxItem = tv({
|
|
|
827
900
|
});
|
|
828
901
|
|
|
829
902
|
const dropdownContent = tv({
|
|
830
|
-
base: 'bg-surface-
|
|
903
|
+
base: 'bg-surface-input w-[260px] rounded-sm border border-neutral-subtle'
|
|
831
904
|
});
|
|
832
905
|
|
|
833
906
|
const popover = tv({
|
|
834
|
-
base: 'bg-surface-
|
|
907
|
+
base: 'bg-surface-input rounded-sm border border-neutral-subtle',
|
|
835
908
|
variants: {
|
|
836
909
|
size: {
|
|
837
910
|
sm: 'w-40',
|
|
@@ -859,6 +932,92 @@ const divider = tv({
|
|
|
859
932
|
}
|
|
860
933
|
});
|
|
861
934
|
|
|
935
|
+
// Border-radius lives ONLY in the `shape` variants, never in `base`. Frontile's
|
|
936
|
+
// `rounded-default` is a custom value that tailwind-merge does not recognise as
|
|
937
|
+
// part of the `rounded` group, so a base radius would survive alongside a
|
|
938
|
+
// shape's radius instead of being replaced by it.
|
|
939
|
+
const skeleton = tv({
|
|
940
|
+
base: ['block', 'overflow-hidden'],
|
|
941
|
+
variants: {
|
|
942
|
+
shape: {
|
|
943
|
+
text: 'w-full rounded-default',
|
|
944
|
+
circle: 'aspect-square rounded-full',
|
|
945
|
+
// Matches Avatar's squircle radius so the two line up side by side.
|
|
946
|
+
square: 'aspect-square rounded-[20%]',
|
|
947
|
+
rounded: 'w-full rounded-lg',
|
|
948
|
+
rect: 'w-full rounded-none'
|
|
949
|
+
},
|
|
950
|
+
// Resolved per shape in compoundVariants: `circle`/`square` take both
|
|
951
|
+
// dimensions from Avatar's size scale, the rest take a height.
|
|
952
|
+
size: {
|
|
953
|
+
xs: '',
|
|
954
|
+
sm: '',
|
|
955
|
+
md: '',
|
|
956
|
+
lg: '',
|
|
957
|
+
xl: ''
|
|
958
|
+
},
|
|
959
|
+
animation: {
|
|
960
|
+
shimmer: ['bg-linear-to-r', 'from-surface-overlay-soft', 'via-surface-overlay-strong', 'to-surface-overlay-soft', 'bg-[length:200%_100%]', 'animate-shimmer'],
|
|
961
|
+
pulse: ['bg-surface-overlay-medium', 'animate-pulse'],
|
|
962
|
+
none: ['bg-surface-overlay-medium']
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
compoundVariants: [
|
|
966
|
+
// Square-ish shapes: one token sets width and height, reusing Avatar's
|
|
967
|
+
// scale so `<Skeleton @shape="circle" @size="md" />` matches
|
|
968
|
+
// `<Avatar @size="md" />` exactly.
|
|
969
|
+
{
|
|
970
|
+
shape: ['circle', 'square'],
|
|
971
|
+
size: 'xs',
|
|
972
|
+
class: 'size-5'
|
|
973
|
+
}, {
|
|
974
|
+
shape: ['circle', 'square'],
|
|
975
|
+
size: 'sm',
|
|
976
|
+
class: 'size-6'
|
|
977
|
+
}, {
|
|
978
|
+
shape: ['circle', 'square'],
|
|
979
|
+
size: 'md',
|
|
980
|
+
class: 'size-8'
|
|
981
|
+
}, {
|
|
982
|
+
shape: ['circle', 'square'],
|
|
983
|
+
size: 'lg',
|
|
984
|
+
class: 'size-10'
|
|
985
|
+
}, {
|
|
986
|
+
shape: ['circle', 'square'],
|
|
987
|
+
size: 'xl',
|
|
988
|
+
class: 'size-12'
|
|
989
|
+
},
|
|
990
|
+
// Full-width shapes: size sets a height. Every shape gets one so a
|
|
991
|
+
// Skeleton is never zero-height — an invisible placeholder makes a
|
|
992
|
+
// loading state look like an empty state. Override with `@class`.
|
|
993
|
+
{
|
|
994
|
+
shape: ['text', 'rounded', 'rect'],
|
|
995
|
+
size: 'xs',
|
|
996
|
+
class: 'h-2.5'
|
|
997
|
+
}, {
|
|
998
|
+
shape: ['text', 'rounded', 'rect'],
|
|
999
|
+
size: 'sm',
|
|
1000
|
+
class: 'h-3'
|
|
1001
|
+
}, {
|
|
1002
|
+
shape: ['text', 'rounded', 'rect'],
|
|
1003
|
+
size: 'md',
|
|
1004
|
+
class: 'h-4'
|
|
1005
|
+
}, {
|
|
1006
|
+
shape: ['text', 'rounded', 'rect'],
|
|
1007
|
+
size: 'lg',
|
|
1008
|
+
class: 'h-5'
|
|
1009
|
+
}, {
|
|
1010
|
+
shape: ['text', 'rounded', 'rect'],
|
|
1011
|
+
size: 'xl',
|
|
1012
|
+
class: 'h-6'
|
|
1013
|
+
}],
|
|
1014
|
+
defaultVariants: {
|
|
1015
|
+
shape: 'text',
|
|
1016
|
+
size: 'md',
|
|
1017
|
+
animation: 'shimmer'
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
|
|
862
1021
|
const spinner = tv({
|
|
863
1022
|
base: 'text-neutral-muted animate-spin',
|
|
864
1023
|
variants: {
|
|
@@ -871,7 +1030,8 @@ const spinner = tv({
|
|
|
871
1030
|
},
|
|
872
1031
|
intent: {
|
|
873
1032
|
default: 'fill-neutral-strong',
|
|
874
|
-
primary: 'fill-
|
|
1033
|
+
primary: 'fill-primary',
|
|
1034
|
+
accent: 'fill-accent',
|
|
875
1035
|
success: 'fill-success',
|
|
876
1036
|
warning: 'fill-warning',
|
|
877
1037
|
danger: 'fill-danger'
|
|
@@ -885,7 +1045,7 @@ const spinner = tv({
|
|
|
885
1045
|
|
|
886
1046
|
const table = tv({
|
|
887
1047
|
slots: {
|
|
888
|
-
base: ['w-full', 'caption-bottom', 'text-
|
|
1048
|
+
base: ['w-full', 'caption-bottom', 'font-body text-body-2xs'],
|
|
889
1049
|
wrapper: ['relative', 'isolate', 'overflow-auto', 'rounded-default', 'bg-surface-card'],
|
|
890
1050
|
table: ['w-full', 'table-auto'],
|
|
891
1051
|
thead: ['relative', 'bg-surface-overlay-subtle'],
|
|
@@ -893,27 +1053,36 @@ const table = tv({
|
|
|
893
1053
|
tfoot: ['relative'],
|
|
894
1054
|
tr: ['data-[disabled=true]:opacity-50', 'data-[disabled=true]:cursor-not-allowed', 'data-[disabled=true]:hover:bg-transparent', 'data-[selectable=true]:focus-visible:ring-2', 'data-[selectable=true]:focus-visible:ring-inset', 'data-[selectable=true]:focus-visible:ring-default', 'data-[selectable=true]:focus-visible:z-10', 'transition-colors', 'duration-150', 'outline-hidden'],
|
|
895
1055
|
separator: ['absolute', 'z-2', 'left-0', 'w-full', 'h-px', 'bg-surface-overlay-medium'],
|
|
896
|
-
th: ['h-12', 'px-4', 'text-left', 'align-middle', 'font-
|
|
897
|
-
sortButton: ['group/sort', 'inline-flex', 'items-center', 'gap-1', 'w-full', 'text-left', 'font-
|
|
1056
|
+
th: ['h-12', 'px-4', 'text-left', 'align-middle', 'font-label', 'text-neutral-bolder', '[&:has([role=checkbox])]:pr-0', 'data-[sortable=true]:cursor-pointer'],
|
|
1057
|
+
sortButton: ['group/sort', 'inline-flex', 'items-center', 'gap-1', 'w-full', 'text-left', 'font-label', 'text-neutral-bolder', 'outline-hidden', 'focus-visible:z-10', 'focus-visible:ring-3', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'],
|
|
898
1058
|
sortIcon: ['size-4', 'flex-shrink-0', 'text-neutral-soft', 'transition-opacity', 'data-[sorted=false]:opacity-0', 'group-hover/sort:data-[sorted=false]:opacity-100', 'data-[sorted=true]:opacity-100'],
|
|
899
1059
|
columnVisibilityButton: ['flex'],
|
|
900
1060
|
columnVisibilityIcon: ['size-6'],
|
|
901
|
-
td: ['
|
|
902
|
-
empty: ['text-neutral-soft', 'align-middle', 'text-center', 'py-12']
|
|
1061
|
+
td: ['align-middle', 'text-neutral-strong', '[&:has([role=checkbox])]:pr-0'],
|
|
1062
|
+
empty: ['text-neutral-soft', 'align-middle', 'text-center', 'py-12'],
|
|
1063
|
+
// Deliberately carries no width or height: these classes are merged onto
|
|
1064
|
+
// Skeleton *after* its own shape and size variants, so any dimension set
|
|
1065
|
+
// here would defeat a column's `skeleton: 'circle'` preset. The table
|
|
1066
|
+
// passes its `size` through to Skeleton instead.
|
|
1067
|
+
skeleton: ['max-w-[16ch]'],
|
|
1068
|
+
// Placeholder rows fade in one after another. The per-row `animation-delay`
|
|
1069
|
+
// is set inline by the component, since a delay that scales with the row
|
|
1070
|
+
// index cannot be a static utility class.
|
|
1071
|
+
skeletonRow: ['animate-skeleton-enter', 'motion-reduce:animate-none']
|
|
903
1072
|
},
|
|
904
1073
|
variants: {
|
|
905
1074
|
size: {
|
|
906
1075
|
sm: {
|
|
907
|
-
th: 'h-10 px-3 py-2 text-
|
|
908
|
-
td: 'px-3 py-2 text-
|
|
1076
|
+
th: 'h-10 px-3 py-2 text-label-2xs',
|
|
1077
|
+
td: 'px-3 py-2 text-body-micro'
|
|
909
1078
|
},
|
|
910
1079
|
md: {
|
|
911
|
-
th: 'h-12 px-4 text-
|
|
912
|
-
td: 'p-4 text-
|
|
1080
|
+
th: 'h-12 px-4 text-label-xs',
|
|
1081
|
+
td: 'p-4 text-body-2xs'
|
|
913
1082
|
},
|
|
914
1083
|
lg: {
|
|
915
|
-
th: 'h-14 px-6 text-
|
|
916
|
-
td: 'p-6 text-
|
|
1084
|
+
th: 'h-14 px-6 text-label-sm',
|
|
1085
|
+
td: 'p-6 text-body-xs'
|
|
917
1086
|
}
|
|
918
1087
|
},
|
|
919
1088
|
isLoading: {
|
|
@@ -921,6 +1090,10 @@ const table = tv({
|
|
|
921
1090
|
thead: ['after:absolute', 'after:top-full', 'after:left-0', 'after:w-1/2', 'after:animate-swing', 'after:h-px', 'after:z-10']
|
|
922
1091
|
}
|
|
923
1092
|
},
|
|
1093
|
+
// Declared empty on purpose: these variants exist only so `isLoading` can
|
|
1094
|
+
// pair with them in `compoundVariants` below, where the actual
|
|
1095
|
+
// `thead: after:bg-*` colour is applied. A colour set here would paint the
|
|
1096
|
+
// hairline even when the table is not loading.
|
|
924
1097
|
loadingColor: {
|
|
925
1098
|
default: {},
|
|
926
1099
|
primary: {},
|
|
@@ -1052,7 +1225,7 @@ const table = tv({
|
|
|
1052
1225
|
isLoading: true,
|
|
1053
1226
|
loadingColor: 'primary',
|
|
1054
1227
|
class: {
|
|
1055
|
-
thead: `after:bg-
|
|
1228
|
+
thead: `after:bg-primary`
|
|
1056
1229
|
}
|
|
1057
1230
|
}, {
|
|
1058
1231
|
isLoading: true,
|
|
@@ -1083,8 +1256,8 @@ const table = tv({
|
|
|
1083
1256
|
}, {
|
|
1084
1257
|
selectionColor: 'primary',
|
|
1085
1258
|
class: {
|
|
1086
|
-
tbody: '[&>tr]:data-[selected=true]:bg-
|
|
1087
|
-
tr: ['data-[selectable=true]:focus-visible:ring-
|
|
1259
|
+
tbody: '[&>tr]:data-[selected=true]:bg-primary-subtle',
|
|
1260
|
+
tr: ['data-[selectable=true]:focus-visible:ring-primary-soft']
|
|
1088
1261
|
}
|
|
1089
1262
|
}, {
|
|
1090
1263
|
selectionColor: 'success',
|
|
@@ -1133,10 +1306,10 @@ const notificationsContainer = tv({
|
|
|
1133
1306
|
const btn = ['transition transition-200', ...focusVisibleRing];
|
|
1134
1307
|
const notificationCard = tv({
|
|
1135
1308
|
slots: {
|
|
1136
|
-
base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-
|
|
1309
|
+
base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 font-body text-body-2xs rounded-sm shadow-sm transition-all transition-200 ease-in-out',
|
|
1137
1310
|
message: 'grow',
|
|
1138
1311
|
customActions: 'flex flex-nowrap',
|
|
1139
|
-
customActionButton: [...btn, 'first:ml-4 last:-mr-2 font-
|
|
1312
|
+
customActionButton: [...btn, 'first:ml-4 last:-mr-2 font-label text-label-xs py-1 px-2 rounded-sm hover:bg-surface-overlay-soft'],
|
|
1140
1313
|
closeButton: [...btn, 'inline-block p-2 ml-2 -mr-2 rounded-full hover:bg-surface-overlay-soft']
|
|
1141
1314
|
},
|
|
1142
1315
|
variants: {
|
|
@@ -1211,7 +1384,7 @@ const notificationTransitions = {
|
|
|
1211
1384
|
}
|
|
1212
1385
|
};
|
|
1213
1386
|
|
|
1214
|
-
const obscurer = `before:bg-linear-to-b before:to-surface-
|
|
1387
|
+
const obscurer = `before:bg-linear-to-b before:to-surface-modal before:from-surface-modal/75 before:absolute before:left-0 before:w-full before:h-4 before:-top-4 before:content-['_']`;
|
|
1215
1388
|
const overlay = tv({
|
|
1216
1389
|
base: 'will-change-transform overflow-auto',
|
|
1217
1390
|
variants: {
|
|
@@ -1229,8 +1402,8 @@ const backdrop = tv({
|
|
|
1229
1402
|
type: {
|
|
1230
1403
|
none: '',
|
|
1231
1404
|
transparent: '',
|
|
1232
|
-
blur: 'bg-surface-overlay-
|
|
1233
|
-
faded: 'bg-surface-overlay-
|
|
1405
|
+
blur: 'bg-surface-overlay-scrim backdrop-blur-sm',
|
|
1406
|
+
faded: 'bg-surface-overlay-scrim'
|
|
1234
1407
|
},
|
|
1235
1408
|
inPlace: {
|
|
1236
1409
|
true: 'absolute'
|
|
@@ -1239,9 +1412,9 @@ const backdrop = tv({
|
|
|
1239
1412
|
});
|
|
1240
1413
|
const modal = tv({
|
|
1241
1414
|
slots: {
|
|
1242
|
-
base: 'flex flex-col shrink-0 relative text-surface-
|
|
1415
|
+
base: 'flex flex-col shrink-0 relative text-on-surface-modal bg-surface-modal border border-surface-overlay-medium rounded-2xl my-24 w-full outline-hidden overflow-clip',
|
|
1243
1416
|
closeButton: 'absolute top-3 right-3',
|
|
1244
|
-
header: 'font-
|
|
1417
|
+
header: 'font-header text-header-lg px-6 pt-8 pb-2',
|
|
1245
1418
|
body: 'px-6 py-2 grow overflow-y-auto',
|
|
1246
1419
|
footer: 'flex justify-end items-center px-6 pt-6 pb-8 gap-4'
|
|
1247
1420
|
},
|
|
@@ -1261,11 +1434,11 @@ const modal = tv({
|
|
|
1261
1434
|
});
|
|
1262
1435
|
const drawer = tv({
|
|
1263
1436
|
slots: {
|
|
1264
|
-
base: 'flex flex-col absolute text-surface-
|
|
1437
|
+
base: 'flex flex-col absolute text-on-surface-modal bg-surface-modal border border-surface-overlay-medium rounded-2xl w-full h-full outline-hidden overflow-clip',
|
|
1265
1438
|
closeButton: 'absolute top-3 right-3',
|
|
1266
|
-
header: 'font-
|
|
1439
|
+
header: 'font-header text-header-lg text-center px-8 pt-10 pb-2',
|
|
1267
1440
|
body: 'px-8 py-4 grow overflow-y-auto',
|
|
1268
|
-
footer: `${obscurer} flex justify-end items-center relative border-t border-surface-overlay-medium bg-surface-
|
|
1441
|
+
footer: `${obscurer} flex justify-end items-center relative border-t border-surface-overlay-medium bg-surface-modal p-8 gap-4`
|
|
1269
1442
|
},
|
|
1270
1443
|
variants: {
|
|
1271
1444
|
size: {
|
|
@@ -1444,17 +1617,18 @@ const overlayTransitions = {
|
|
|
1444
1617
|
|
|
1445
1618
|
const label = tv({
|
|
1446
1619
|
slots: {
|
|
1447
|
-
|
|
1620
|
+
// label text role (Open Sans semibold, tight leading)
|
|
1621
|
+
base: 'text-neutral-bolder inline-block font-label text-label-sm pb-2',
|
|
1448
1622
|
asterisk: 'text-danger'
|
|
1449
1623
|
},
|
|
1450
1624
|
variants: {
|
|
1451
1625
|
size: {
|
|
1452
1626
|
sm: {
|
|
1453
|
-
base: 'text-
|
|
1627
|
+
base: 'text-label-2xs'
|
|
1454
1628
|
},
|
|
1455
1629
|
md: {},
|
|
1456
1630
|
lg: {
|
|
1457
|
-
base: 'text-
|
|
1631
|
+
base: 'text-label-md'
|
|
1458
1632
|
}
|
|
1459
1633
|
}
|
|
1460
1634
|
},
|
|
@@ -1463,12 +1637,13 @@ const label = tv({
|
|
|
1463
1637
|
}
|
|
1464
1638
|
});
|
|
1465
1639
|
const formDescription = tv({
|
|
1466
|
-
|
|
1640
|
+
// help/description text — body role
|
|
1641
|
+
base: 'text-neutral font-body text-body-micro pb-1 last:pb-0',
|
|
1467
1642
|
variants: {
|
|
1468
1643
|
size: {
|
|
1469
|
-
sm: 'text-
|
|
1644
|
+
sm: 'text-body-micro',
|
|
1470
1645
|
md: '',
|
|
1471
|
-
lg: 'text-
|
|
1646
|
+
lg: 'text-body-sm'
|
|
1472
1647
|
}
|
|
1473
1648
|
},
|
|
1474
1649
|
defaultVariants: {
|
|
@@ -1476,18 +1651,20 @@ const formDescription = tv({
|
|
|
1476
1651
|
}
|
|
1477
1652
|
});
|
|
1478
1653
|
const formFeedback = tv({
|
|
1479
|
-
|
|
1654
|
+
// validation/feedback text — body role
|
|
1655
|
+
base: 'font-body text-body-micro pt-1',
|
|
1480
1656
|
variants: {
|
|
1481
1657
|
intent: {
|
|
1482
|
-
primary: 'text-
|
|
1658
|
+
primary: 'text-primary',
|
|
1659
|
+
accent: 'text-accent',
|
|
1483
1660
|
success: 'text-success',
|
|
1484
1661
|
danger: 'text-danger',
|
|
1485
1662
|
warning: 'text-warning'
|
|
1486
1663
|
},
|
|
1487
1664
|
size: {
|
|
1488
|
-
sm: 'text-
|
|
1665
|
+
sm: 'text-body-micro',
|
|
1489
1666
|
md: '',
|
|
1490
|
-
lg: 'text-
|
|
1667
|
+
lg: 'text-body-sm'
|
|
1491
1668
|
}
|
|
1492
1669
|
},
|
|
1493
1670
|
defaultVariants: {
|
|
@@ -1500,7 +1677,9 @@ const input = tv({
|
|
|
1500
1677
|
innerContainer: 'relative flex',
|
|
1501
1678
|
startContent: 'absolute inset-y-0 left-0 flex items-center',
|
|
1502
1679
|
endContent: 'absolute inset-y-0 right-0 flex items-center',
|
|
1503
|
-
input: ['appearance-none', 'flex-1', 'w-full', 'bg-surface-
|
|
1680
|
+
input: ['appearance-none', 'flex-1', 'w-full', 'bg-surface-input', 'text-neutral-strong', 'placeholder-neutral',
|
|
1681
|
+
// body role family; single-line controls keep tight leading (not the body relaxed leading)
|
|
1682
|
+
'font-body text-base text-left', 'border', 'border-neutral-soft', 'rounded-xl', 'leading-tight', 'focus:ring-3', 'focus:ring-focus', 'focus:outline-hidden', 'focus:border-primary-soft', 'selection:bg-surface-overlay-soft', 'disabled:border-neutral-subtle disabled:text-neutral-soft', 'aria-invalid:border-danger-soft', 'aria-invalid:focus:ring-danger-soft']
|
|
1504
1683
|
},
|
|
1505
1684
|
variants: {
|
|
1506
1685
|
size: {
|
|
@@ -1567,20 +1746,20 @@ const textarea = tv({
|
|
|
1567
1746
|
const checkboxRadioBase = tv({
|
|
1568
1747
|
slots: {
|
|
1569
1748
|
base: ['max-w-fit flex items-center justify-start'],
|
|
1570
|
-
input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', '
|
|
1749
|
+
input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'text-base', 'border-2 border-neutral', 'bg-surface-input', 'transition-colors', 'checked:bg-origin-border checked:bg-center checked:bg-no-repeat', 'checked:disabled:bg-neutral-soft checked:disabled:border-neutral-soft', ...focusVisibleRing],
|
|
1571
1750
|
labelContainer: ['flex flex-col ml-2'],
|
|
1572
|
-
label: 'font-
|
|
1751
|
+
label: 'font-body text-body-xs pb-0'
|
|
1573
1752
|
},
|
|
1574
1753
|
variants: {
|
|
1575
1754
|
size: {
|
|
1576
1755
|
sm: {
|
|
1577
|
-
input: ''
|
|
1756
|
+
input: 'h-4 w-4'
|
|
1578
1757
|
},
|
|
1579
1758
|
md: {
|
|
1580
|
-
input: ''
|
|
1759
|
+
input: 'h-5 w-5'
|
|
1581
1760
|
},
|
|
1582
1761
|
lg: {
|
|
1583
|
-
input: ''
|
|
1762
|
+
input: 'h-6 w-6'
|
|
1584
1763
|
}
|
|
1585
1764
|
}
|
|
1586
1765
|
},
|
|
@@ -1605,21 +1784,15 @@ const checkboxRadioGroupBase = tv({
|
|
|
1605
1784
|
const checkbox = tv({
|
|
1606
1785
|
extend: checkboxRadioBase,
|
|
1607
1786
|
slots: {
|
|
1608
|
-
input: ['checked-bg-checkbox', 'indeterminate-bg-checkbox', 'rounded-
|
|
1787
|
+
input: ['checked-bg-checkbox', 'indeterminate-bg-checkbox', 'rounded-sm', 'checked:bg-primary checked:border-primary',
|
|
1609
1788
|
// Indeterminate state styles - show minus/dash icon
|
|
1610
|
-
'indeterminate:bg-
|
|
1789
|
+
'indeterminate:bg-primary', 'indeterminate:border-primary', 'indeterminate:bg-origin-border', 'indeterminate:bg-center', 'indeterminate:bg-no-repeat']
|
|
1611
1790
|
},
|
|
1612
1791
|
variants: {
|
|
1613
1792
|
size: {
|
|
1614
|
-
sm: {
|
|
1615
|
-
|
|
1616
|
-
}
|
|
1617
|
-
md: {
|
|
1618
|
-
input: ''
|
|
1619
|
-
},
|
|
1620
|
-
lg: {
|
|
1621
|
-
input: ''
|
|
1622
|
-
}
|
|
1793
|
+
sm: {},
|
|
1794
|
+
md: {},
|
|
1795
|
+
lg: {}
|
|
1623
1796
|
}
|
|
1624
1797
|
},
|
|
1625
1798
|
defaultVariants: {
|
|
@@ -1629,19 +1802,13 @@ const checkbox = tv({
|
|
|
1629
1802
|
const radio = tv({
|
|
1630
1803
|
extend: checkboxRadioBase,
|
|
1631
1804
|
slots: {
|
|
1632
|
-
input: ['checked-bg-radio', 'rounded-full']
|
|
1805
|
+
input: ['checked-bg-radio', 'rounded-full', 'checked:bg-primary checked:border-primary']
|
|
1633
1806
|
},
|
|
1634
1807
|
variants: {
|
|
1635
1808
|
size: {
|
|
1636
|
-
sm: {
|
|
1637
|
-
|
|
1638
|
-
}
|
|
1639
|
-
md: {
|
|
1640
|
-
input: ''
|
|
1641
|
-
},
|
|
1642
|
-
lg: {
|
|
1643
|
-
input: ''
|
|
1644
|
-
}
|
|
1809
|
+
sm: {},
|
|
1810
|
+
md: {},
|
|
1811
|
+
lg: {}
|
|
1645
1812
|
}
|
|
1646
1813
|
},
|
|
1647
1814
|
defaultVariants: {
|
|
@@ -1658,7 +1825,7 @@ const select = tv({
|
|
|
1658
1825
|
extend: input,
|
|
1659
1826
|
slots: {
|
|
1660
1827
|
base: [],
|
|
1661
|
-
placeholder: 'text-neutral
|
|
1828
|
+
placeholder: 'text-neutral',
|
|
1662
1829
|
listbox: 'scroll-py-6 max-h-64',
|
|
1663
1830
|
icon: 'w-5 h-5',
|
|
1664
1831
|
clearButton: 'pointer-events-auto',
|
|
@@ -1676,6 +1843,30 @@ const select = tv({
|
|
|
1676
1843
|
size: 'md'
|
|
1677
1844
|
}
|
|
1678
1845
|
});
|
|
1846
|
+
|
|
1847
|
+
// Note: extends `input` rather than `select` because tailwind-variants
|
|
1848
|
+
// loses inherited slot types across two levels of `extend`.
|
|
1849
|
+
const autocomplete = tv({
|
|
1850
|
+
extend: input,
|
|
1851
|
+
slots: {
|
|
1852
|
+
base: [],
|
|
1853
|
+
listbox: 'scroll-py-6 max-h-64',
|
|
1854
|
+
icon: 'w-5 h-5',
|
|
1855
|
+
clearButton: 'pointer-events-auto',
|
|
1856
|
+
input: 'cursor-text',
|
|
1857
|
+
emptyContent: 'p-2'
|
|
1858
|
+
},
|
|
1859
|
+
variants: {
|
|
1860
|
+
size: {
|
|
1861
|
+
sm: {},
|
|
1862
|
+
md: {},
|
|
1863
|
+
lg: {}
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
defaultVariants: {
|
|
1867
|
+
size: 'md'
|
|
1868
|
+
}
|
|
1869
|
+
});
|
|
1679
1870
|
const nativeSelect = tv({
|
|
1680
1871
|
extend: input,
|
|
1681
1872
|
slots: {
|
|
@@ -1694,12 +1885,12 @@ const switchInput = tv({
|
|
|
1694
1885
|
slots: {
|
|
1695
1886
|
base: 'group relative max-w-fit inline-flex items-center justify-start',
|
|
1696
1887
|
labelContainer: 'flex flex-col ml-2',
|
|
1697
|
-
label: 'font-
|
|
1888
|
+
label: 'font-body text-body-xs pb-0',
|
|
1698
1889
|
wrapper: ['px-1', 'relative', 'inline-flex', 'items-center', 'justify-start', 'shrink-0', 'overflow-hidden', 'bg-neutral-soft', 'rounded-full', 'cursor-pointer touch-none tap-highlight-transparent select-none', 'transition-background', ...focusVisibleWithinRing],
|
|
1699
1890
|
hiddenInput: ['font-inherit', 'text-[100%]', 'leading-[1.15]', 'm-0', 'p-0', 'overflow-visible', 'box-border', 'absolute', 'top-0', 'w-full', 'h-full', 'opacity-[0.0001]', 'z-1', 'cursor-pointer', 'disabled:cursor-default'],
|
|
1700
1891
|
thumb: ['z-10', 'flex', 'items-center', 'justify-center', 'bg-white', 'shadow-small', 'rounded-full', 'origin-right', 'transition-all', 'pointer-events-none', 'text-black'],
|
|
1701
1892
|
startContent: ['z-0 absolute start-1.5 text-current', 'opacity-0', 'scale-50', 'transition-transform-opacity', 'group-data-[selected=true]:scale-100', 'group-data-[selected=true]:opacity-100'],
|
|
1702
|
-
endContent: ['z-0 absolute end-1.5 text-neutral
|
|
1893
|
+
endContent: ['z-0 absolute end-1.5 text-neutral', 'opacity-100', 'transition-transform-opacity', 'group-data-[selected=true]:translate-x-3', 'group-data-[selected=true]:opacity-0']
|
|
1703
1894
|
},
|
|
1704
1895
|
variants: {
|
|
1705
1896
|
isDisabled: {
|
|
@@ -1735,19 +1926,19 @@ const switchInput = tv({
|
|
|
1735
1926
|
wrapper: ['group-data-[selected=true]:bg-neutral-firm', 'group-data-[selected=true]:text-on-neutral-firm']
|
|
1736
1927
|
},
|
|
1737
1928
|
primary: {
|
|
1738
|
-
wrapper: ['group-data-[selected=true]:bg-
|
|
1929
|
+
wrapper: ['group-data-[selected=true]:bg-primary', 'group-data-[selected=true]:text-on-primary']
|
|
1739
1930
|
},
|
|
1740
1931
|
accent: {
|
|
1741
|
-
wrapper: ['group-data-[selected=true]:bg-accent
|
|
1932
|
+
wrapper: ['group-data-[selected=true]:bg-accent', 'group-data-[selected=true]:text-on-accent']
|
|
1742
1933
|
},
|
|
1743
1934
|
success: {
|
|
1744
|
-
wrapper: ['group-data-[selected=true]:bg-success
|
|
1935
|
+
wrapper: ['group-data-[selected=true]:bg-success', 'group-data-[selected=true]:text-on-success']
|
|
1745
1936
|
},
|
|
1746
1937
|
warning: {
|
|
1747
|
-
wrapper: ['group-data-[selected=true]:bg-warning
|
|
1938
|
+
wrapper: ['group-data-[selected=true]:bg-warning', 'group-data-[selected=true]:text-on-warning']
|
|
1748
1939
|
},
|
|
1749
1940
|
danger: {
|
|
1750
|
-
wrapper: ['group-data-[selected=true]:bg-danger
|
|
1941
|
+
wrapper: ['group-data-[selected=true]:bg-danger', 'group-data-[selected=true]:text-on-danger']
|
|
1751
1942
|
}
|
|
1752
1943
|
}
|
|
1753
1944
|
},
|
|
@@ -1763,13 +1954,13 @@ const base = tv({
|
|
|
1763
1954
|
base: 'flex flex-wrap flex-row items-center',
|
|
1764
1955
|
labelContainer: 'leading-tight flex items-start',
|
|
1765
1956
|
inputContainer: 'flex items-center',
|
|
1766
|
-
label: 'font-
|
|
1957
|
+
label: 'font-body text-body-xs pl-2 pb-0',
|
|
1767
1958
|
hint: 'pl-2 flex basis-full before:content-["_"] before:inline-block before:w-[1em] before:h-[1em] shrink-0'
|
|
1768
1959
|
},
|
|
1769
1960
|
variants: {
|
|
1770
1961
|
size: {
|
|
1771
1962
|
sm: {
|
|
1772
|
-
label: 'text-
|
|
1963
|
+
label: 'text-body-2xs'
|
|
1773
1964
|
},
|
|
1774
1965
|
md: '',
|
|
1775
1966
|
lg: ''
|
|
@@ -1877,5 +2068,5 @@ const formSelect = tv({
|
|
|
1877
2068
|
}
|
|
1878
2069
|
});
|
|
1879
2070
|
|
|
1880
|
-
export {
|
|
1881
|
-
//# sourceMappingURL=forms-legacy-
|
|
2071
|
+
export { nativeSelect as A, notificationCard as B, notificationTransitions as C, notificationsContainer as D, overlay as E, overlayTransitions as F, popover as G, progressBar as H, radio as I, radioGroup as J, select as K, skeleton as L, spinner as M, switchInput as N, table as O, textarea as P, toggleButton as Q, twMerge as R, tv as S, autocomplete as a, avatar as b, backdrop as c, button as d, buttonGroup as e, checkbox as f, checkboxGroup as g, chip as h, closeButton as i, divider as j, drawer as k, dropdownContent as l, formCheckbox as m, formCheckboxGroup as n, formDescription as o, formFeedback as p, formInput as q, formRadio as r, formRadioGroup as s, formSelect as t, formTextarea as u, input as v, label as w, listbox as x, listboxItem as y, modal as z };
|
|
2072
|
+
//# sourceMappingURL=forms-legacy-BxJS2xFC.js.map
|