@frontile/theme 0.18.0-alpha.11 → 0.18.0-alpha.13
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 +3 -2
- package/declarations/colors/config.d.ts +8 -4
- package/declarations/colors/semantic.d.ts +4 -0
- package/declarations/colors/types.d.ts +58 -12
- package/declarations/components/avatar.d.ts +2 -0
- package/declarations/components/button.d.ts +34 -12
- package/declarations/components/chip.d.ts +27 -5
- package/declarations/components/close-button.d.ts +2 -0
- package/declarations/components/divider.d.ts +2 -0
- package/declarations/components/dropdown.d.ts +2 -0
- package/declarations/components/forms/forms-legacy.d.ts +24 -0
- package/declarations/components/forms/forms.d.ts +72 -10
- package/declarations/components/listbox.d.ts +9 -5
- package/declarations/components/notification-card.d.ts +2 -0
- package/declarations/components/notifications-container.d.ts +2 -0
- package/declarations/components/overlays.d.ts +8 -0
- package/declarations/components/popover.d.ts +2 -0
- package/declarations/components/progress-bar.d.ts +22 -5
- package/declarations/components/skeleton.d.ts +2 -0
- package/declarations/components/spinner.d.ts +12 -5
- package/declarations/components/table.d.ts +2 -0
- package/declarations/plugin/default-config.d.ts +8 -4
- package/declarations/tw.d.ts +2 -0
- package/dist/colors.js +1 -1
- package/dist/config-ClW7jR7w.js +439 -0
- package/dist/config-ClW7jR7w.js.map +1 -0
- package/dist/{forms-legacy-BxJS2xFC.js → forms-legacy-BYj1fPB4.js} +176 -101
- package/dist/forms-legacy-BYj1fPB4.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/plugin.js +38 -36
- package/dist/plugin.js.map +1 -1
- package/package.json +12 -12
- package/src/styles/font-faces.css +23 -5
- package/declarations/colors/contrast.d.ts +0 -16
- package/declarations/colors/defaults.d.ts +0 -66
- package/declarations/colors/palette-dark.d.ts +0 -123
- package/declarations/colors/palette-light.d.ts +0 -123
- package/dist/config-CDp8PRHs.js +0 -370
- package/dist/config-CDp8PRHs.js.map +0 -1
- package/dist/forms-legacy-BxJS2xFC.js.map +0 -1
- package/dist/index.css +0 -91
- package/dist/styles/font-faces.css +0 -70
- package/dist/styles/theme.css +0 -48
- package/dist/styles/typography.css +0 -387
|
@@ -54,6 +54,13 @@ const twMergeConfig = {
|
|
|
54
54
|
'text-header': [...COMMON_UNITS]
|
|
55
55
|
}, {
|
|
56
56
|
'text-body': [...COMMON_UNITS]
|
|
57
|
+
},
|
|
58
|
+
// `strong` was missing here, so `text-strong-*` fell through to the
|
|
59
|
+
// text-color group and tailwind-merge dropped it whenever a component
|
|
60
|
+
// also set a text color (e.g. Button's `text-on-primary`) — silently
|
|
61
|
+
// losing the label's size, weight and tracking.
|
|
62
|
+
{
|
|
63
|
+
'text-strong': [...COMMON_UNITS]
|
|
57
64
|
}, {
|
|
58
65
|
'text-code': [...COMMON_UNITS]
|
|
59
66
|
}, {
|
|
@@ -118,10 +125,7 @@ const focusVisibleRing = ['outline-hidden', 'focus-visible:z-10', 'focus-visible
|
|
|
118
125
|
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
126
|
|
|
120
127
|
const baseButton = tv({
|
|
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],
|
|
128
|
+
base: ['inline-flex items-center justify-center', '[&_svg]:size-[1em]', 'font-header', 'border', 'border-transparent', 'disabled:cursor-not-allowed', 'disabled:opacity-disabled', ...focusVisibleRing],
|
|
125
129
|
variants: {
|
|
126
130
|
appearance: {
|
|
127
131
|
outlined: ''
|
|
@@ -129,7 +133,8 @@ const baseButton = tv({
|
|
|
129
133
|
intent: {
|
|
130
134
|
default: '',
|
|
131
135
|
primary: 'focus-visible:ring-primary-soft',
|
|
132
|
-
|
|
136
|
+
secondary: 'focus-visible:ring-secondary-soft',
|
|
137
|
+
tertiary: 'focus-visible:ring-tertiary-soft',
|
|
133
138
|
success: 'focus-visible:ring-success-soft',
|
|
134
139
|
warning: 'focus-visible:ring-warning-soft',
|
|
135
140
|
danger: 'focus-visible:ring-danger-soft'
|
|
@@ -143,41 +148,37 @@ const baseButton = tv({
|
|
|
143
148
|
'2xl': 'text-strong-3xl px-12 py-3.5 gap-2.5 rounded-full'
|
|
144
149
|
},
|
|
145
150
|
isInGroup: {
|
|
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']
|
|
151
|
+
true: ['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']
|
|
153
152
|
}
|
|
154
153
|
},
|
|
155
|
-
compoundVariants: [
|
|
156
|
-
// APPEARANCE: outlined
|
|
157
|
-
{
|
|
154
|
+
compoundVariants: [{
|
|
158
155
|
appearance: 'outlined',
|
|
159
156
|
intent: 'default',
|
|
160
|
-
class: 'text-neutral-bolder border-neutral-bolder hover:bg-neutral-subtle hover:
|
|
157
|
+
class: 'text-neutral-bolder border-neutral-bolder hover:bg-neutral-subtle hover:text-neutral-firm/80 hover:border-neutral-strong active:bg-neutral-muted active:text-neutral-firm active:border-neutral-firm'
|
|
161
158
|
}, {
|
|
162
159
|
appearance: 'outlined',
|
|
163
160
|
intent: 'primary',
|
|
164
|
-
class: 'text-primary
|
|
161
|
+
class: 'text-primary border-primary hover:text-primary-mild hover:border-primary-mild active:text-primary-firm active:border-primary-firm'
|
|
162
|
+
}, {
|
|
163
|
+
appearance: 'outlined',
|
|
164
|
+
intent: 'secondary',
|
|
165
|
+
class: 'text-secondary-strong border-secondary-strong hover:text-secondary-firm hover:border-secondary-firm active:text-secondary-bolder active:border-secondary-bolder'
|
|
165
166
|
}, {
|
|
166
167
|
appearance: 'outlined',
|
|
167
|
-
intent: '
|
|
168
|
-
class: 'text-
|
|
168
|
+
intent: 'tertiary',
|
|
169
|
+
class: 'text-tertiary-strong border-tertiary-strong hover:text-tertiary-firm hover:border-tertiary-firm active:text-tertiary-bolder active:border-tertiary-bolder'
|
|
169
170
|
}, {
|
|
170
171
|
appearance: 'outlined',
|
|
171
172
|
intent: 'success',
|
|
172
|
-
class: 'text-success-strong border-success hover:
|
|
173
|
+
class: 'text-success-strong border-success-strong hover:text-success-firm hover:border-success-firm active:text-success-bolder active:border-success-bolder'
|
|
173
174
|
}, {
|
|
174
175
|
appearance: 'outlined',
|
|
175
176
|
intent: 'warning',
|
|
176
|
-
class: 'text-warning-strong border-warning hover:
|
|
177
|
+
class: 'text-warning-strong border-warning-strong hover:text-warning-firm hover:border-warning-firm active:text-warning-bolder active:border-warning-bolder'
|
|
177
178
|
}, {
|
|
178
179
|
appearance: 'outlined',
|
|
179
180
|
intent: 'danger',
|
|
180
|
-
class: 'text-danger
|
|
181
|
+
class: 'text-danger border-danger hover:text-danger-mild hover:border-danger-mild active:text-danger-firm active:border-danger-firm'
|
|
181
182
|
}],
|
|
182
183
|
defaultVariants: {
|
|
183
184
|
size: 'md',
|
|
@@ -198,115 +199,125 @@ const button = tv({
|
|
|
198
199
|
}
|
|
199
200
|
},
|
|
200
201
|
compoundVariants: [
|
|
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).
|
|
202
|
+
// APPEARANCE: default (Facet "filled") — fill + border + on-color
|
|
207
203
|
{
|
|
208
204
|
appearance: 'default',
|
|
209
205
|
intent: 'default',
|
|
210
|
-
class: 'bg-neutral-bolder text-on-neutral-bolder hover:bg-neutral-
|
|
206
|
+
class: 'bg-neutral-bolder border-neutral-bolder text-on-neutral-bolder hover:bg-neutral-strong hover:border-neutral-strong hover:text-on-neutral-strong active:bg-neutral-firm active:border-neutral-firm active:text-on-neutral-firm'
|
|
211
207
|
}, {
|
|
212
208
|
appearance: 'default',
|
|
213
209
|
intent: 'primary',
|
|
214
|
-
class: 'bg-primary text-on-primary hover:bg-primary-
|
|
210
|
+
class: 'bg-primary border-primary text-on-primary hover:bg-primary-mild hover:border-primary-mild hover:text-on-primary-mild active:bg-primary-firm active:border-primary-firm active:text-on-primary-firm'
|
|
211
|
+
}, {
|
|
212
|
+
appearance: 'default',
|
|
213
|
+
intent: 'secondary',
|
|
214
|
+
class: 'bg-secondary border-secondary text-on-secondary hover:bg-secondary-mild hover:border-secondary-mild hover:text-on-secondary-mild active:bg-secondary-firm active:border-secondary-firm active:text-on-secondary-firm'
|
|
215
215
|
}, {
|
|
216
216
|
appearance: 'default',
|
|
217
|
-
intent: '
|
|
218
|
-
class: 'bg-
|
|
217
|
+
intent: 'tertiary',
|
|
218
|
+
class: 'bg-tertiary border-tertiary text-on-tertiary hover:bg-tertiary-mild hover:border-tertiary-mild hover:text-on-tertiary-mild active:bg-tertiary-firm active:border-tertiary-firm active:text-on-tertiary-firm'
|
|
219
219
|
}, {
|
|
220
220
|
appearance: 'default',
|
|
221
221
|
intent: 'success',
|
|
222
|
-
class: 'bg-success text-on-success hover:bg-success-
|
|
222
|
+
class: 'bg-success border-success text-on-success hover:bg-success-mild hover:border-success-mild hover:text-on-success-mild active:bg-success-firm active:border-success-firm active:text-on-success-firm'
|
|
223
223
|
}, {
|
|
224
224
|
appearance: 'default',
|
|
225
225
|
intent: 'warning',
|
|
226
|
-
class: 'bg-warning text-on-warning hover:bg-warning-
|
|
226
|
+
class: 'bg-warning border-warning text-on-warning hover:bg-warning-mild hover:border-warning-mild hover:text-on-warning-mild active:bg-warning-firm active:border-warning-firm active:text-on-warning-firm'
|
|
227
227
|
}, {
|
|
228
228
|
appearance: 'default',
|
|
229
229
|
intent: 'danger',
|
|
230
|
-
class: 'bg-danger text-on-danger hover:bg-danger-
|
|
230
|
+
class: 'bg-danger border-danger text-on-danger hover:bg-danger-mild hover:border-danger-mild hover:text-on-danger-mild active:bg-danger-firm active:border-danger-firm active:text-on-danger-firm'
|
|
231
231
|
},
|
|
232
|
-
// APPEARANCE: soft
|
|
232
|
+
// APPEARANCE: soft — tint fill, plus the border Facet gives it
|
|
233
233
|
{
|
|
234
234
|
appearance: 'soft',
|
|
235
235
|
intent: 'default',
|
|
236
|
-
class: 'bg-neutral-
|
|
236
|
+
class: 'bg-neutral-soft border-neutral-bolder text-neutral-bolder hover:bg-neutral-subtle hover:border-neutral-strong hover:text-neutral-strong active:bg-neutral-muted active:border-neutral-firm active:text-neutral-firm'
|
|
237
237
|
}, {
|
|
238
238
|
appearance: 'soft',
|
|
239
239
|
intent: 'primary',
|
|
240
|
-
class: 'bg-primary-
|
|
240
|
+
class: 'bg-primary-soft border-primary text-primary hover:bg-primary-subtle hover:border-primary-mild hover:text-primary-mild active:bg-primary-muted active:border-primary-firm active:text-primary-firm'
|
|
241
241
|
}, {
|
|
242
242
|
appearance: 'soft',
|
|
243
|
-
intent: '
|
|
244
|
-
class: 'bg-
|
|
243
|
+
intent: 'secondary',
|
|
244
|
+
class: 'bg-secondary-soft border-secondary-strong text-secondary-strong hover:bg-secondary-subtle hover:border-secondary-firm hover:text-secondary-firm active:bg-secondary-muted active:border-secondary-bolder active:text-secondary-bolder'
|
|
245
|
+
}, {
|
|
246
|
+
appearance: 'soft',
|
|
247
|
+
intent: 'tertiary',
|
|
248
|
+
class: 'bg-tertiary-soft border-tertiary-strong text-tertiary-strong hover:bg-tertiary-subtle hover:border-tertiary-firm hover:text-tertiary-firm active:bg-tertiary-muted active:border-tertiary-bolder active:text-tertiary-bolder'
|
|
245
249
|
}, {
|
|
246
250
|
appearance: 'soft',
|
|
247
251
|
intent: 'success',
|
|
248
|
-
class: 'bg-success-
|
|
252
|
+
class: 'bg-success-soft border-success-strong text-success-strong hover:bg-success-subtle hover:border-success-firm hover:text-success-firm active:bg-success-muted active:border-success-bolder active:text-success-bolder'
|
|
249
253
|
}, {
|
|
250
254
|
appearance: 'soft',
|
|
251
255
|
intent: 'warning',
|
|
252
|
-
class: 'bg-warning-
|
|
256
|
+
class: 'bg-warning-soft border-warning-strong text-warning-strong hover:bg-warning-subtle hover:border-warning-firm hover:text-warning-firm active:bg-warning-muted active:border-warning-bolder active:text-warning-bolder'
|
|
253
257
|
}, {
|
|
254
258
|
appearance: 'soft',
|
|
255
259
|
intent: 'danger',
|
|
256
|
-
class: 'bg-danger-
|
|
260
|
+
class: 'bg-danger-soft border-danger text-danger hover:bg-danger-subtle hover:border-danger-mild hover:text-danger-mild active:bg-danger-muted active:border-danger-firm active:text-danger-firm'
|
|
257
261
|
},
|
|
258
|
-
// APPEARANCE: minimal (ghost)
|
|
262
|
+
// APPEARANCE: minimal (Facet "ghost") — ink only, no fill
|
|
259
263
|
{
|
|
260
264
|
appearance: 'minimal',
|
|
261
265
|
intent: 'default',
|
|
262
|
-
class: 'text-neutral-bolder hover:
|
|
266
|
+
class: 'text-neutral-bolder hover:text-neutral-firm/80 active:text-neutral-firm'
|
|
263
267
|
}, {
|
|
264
268
|
appearance: 'minimal',
|
|
265
269
|
intent: 'primary',
|
|
266
|
-
class: 'text-primary
|
|
270
|
+
class: 'text-primary hover:text-primary-mild active:text-primary-firm'
|
|
271
|
+
}, {
|
|
272
|
+
appearance: 'minimal',
|
|
273
|
+
intent: 'secondary',
|
|
274
|
+
class: 'text-secondary-strong hover:text-secondary-firm active:text-secondary-bolder'
|
|
267
275
|
}, {
|
|
268
276
|
appearance: 'minimal',
|
|
269
|
-
intent: '
|
|
270
|
-
class: 'text-
|
|
277
|
+
intent: 'tertiary',
|
|
278
|
+
class: 'text-tertiary-strong hover:text-tertiary-firm active:text-tertiary-bolder'
|
|
271
279
|
}, {
|
|
272
280
|
appearance: 'minimal',
|
|
273
281
|
intent: 'success',
|
|
274
|
-
class: 'text-success-strong hover:
|
|
282
|
+
class: 'text-success-strong hover:text-success-firm active:text-success-bolder'
|
|
275
283
|
}, {
|
|
276
284
|
appearance: 'minimal',
|
|
277
285
|
intent: 'warning',
|
|
278
|
-
class: 'text-warning-strong hover:
|
|
286
|
+
class: 'text-warning-strong hover:text-warning-firm active:text-warning-bolder'
|
|
279
287
|
}, {
|
|
280
288
|
appearance: 'minimal',
|
|
281
289
|
intent: 'danger',
|
|
282
|
-
class: 'text-danger
|
|
290
|
+
class: 'text-danger hover:text-danger-mild active:text-danger-firm'
|
|
283
291
|
},
|
|
284
|
-
// APPEARANCE: tonal —
|
|
285
|
-
// background walks tonal → tint-hover → tint-pressed.
|
|
292
|
+
// APPEARANCE: tonal — tint fill that deepens through the ramp
|
|
286
293
|
{
|
|
287
294
|
appearance: 'tonal',
|
|
288
295
|
intent: 'default',
|
|
289
|
-
class: 'bg-neutral-
|
|
296
|
+
class: 'bg-neutral-soft text-on-neutral-soft hover:bg-neutral-muted hover:text-on-neutral-muted active:bg-neutral-mild active:text-on-neutral-mild'
|
|
290
297
|
}, {
|
|
291
298
|
appearance: 'tonal',
|
|
292
299
|
intent: 'primary',
|
|
293
|
-
class: 'bg-primary-
|
|
300
|
+
class: 'bg-primary-soft text-on-primary-soft hover:bg-primary-muted hover:text-on-primary-muted active:bg-primary-mild active:text-on-primary-mild'
|
|
294
301
|
}, {
|
|
295
302
|
appearance: 'tonal',
|
|
296
|
-
intent: '
|
|
297
|
-
class: 'bg-
|
|
303
|
+
intent: 'secondary',
|
|
304
|
+
class: 'bg-secondary-soft text-on-secondary-soft hover:bg-secondary-muted hover:text-on-secondary-muted active:bg-secondary-mild active:text-on-secondary-mild'
|
|
305
|
+
}, {
|
|
306
|
+
appearance: 'tonal',
|
|
307
|
+
intent: 'tertiary',
|
|
308
|
+
class: 'bg-tertiary-soft text-on-tertiary-soft hover:bg-tertiary-muted hover:text-on-tertiary-muted active:bg-tertiary-mild active:text-on-tertiary-mild'
|
|
298
309
|
}, {
|
|
299
310
|
appearance: 'tonal',
|
|
300
311
|
intent: 'success',
|
|
301
|
-
class: 'bg-success-
|
|
312
|
+
class: 'bg-success-soft text-on-success-soft hover:bg-success-muted hover:text-on-success-muted active:bg-success-mild active:text-on-success-mild'
|
|
302
313
|
}, {
|
|
303
314
|
appearance: 'tonal',
|
|
304
315
|
intent: 'warning',
|
|
305
|
-
class: 'bg-warning-
|
|
316
|
+
class: 'bg-warning-soft text-on-warning-soft hover:bg-warning-muted hover:text-on-warning-muted active:bg-warning-mild active:text-on-warning-mild'
|
|
306
317
|
}, {
|
|
307
318
|
appearance: 'tonal',
|
|
308
319
|
intent: 'danger',
|
|
309
|
-
class: 'bg-danger-
|
|
320
|
+
class: 'bg-danger-soft text-on-danger-soft hover:bg-danger-muted hover:text-on-danger-muted active:bg-danger-mild active:text-on-danger-mild'
|
|
310
321
|
},
|
|
311
322
|
// APPEARANCE: custom
|
|
312
323
|
{
|
|
@@ -319,8 +330,12 @@ const button = tv({
|
|
|
319
330
|
class: 'text-primary-strong'
|
|
320
331
|
}, {
|
|
321
332
|
appearance: 'custom',
|
|
322
|
-
intent: '
|
|
323
|
-
class: 'text-
|
|
333
|
+
intent: 'secondary',
|
|
334
|
+
class: 'text-secondary-strong'
|
|
335
|
+
}, {
|
|
336
|
+
appearance: 'custom',
|
|
337
|
+
intent: 'tertiary',
|
|
338
|
+
class: 'text-tertiary-strong'
|
|
324
339
|
}, {
|
|
325
340
|
appearance: 'custom',
|
|
326
341
|
intent: 'success',
|
|
@@ -359,9 +374,14 @@ const toggleButton = tv({
|
|
|
359
374
|
class: 'bg-primary text-on-primary hover:bg-primary-soft'
|
|
360
375
|
}, {
|
|
361
376
|
appearance: 'outlined',
|
|
362
|
-
intent: '
|
|
377
|
+
intent: 'secondary',
|
|
378
|
+
isSelected: true,
|
|
379
|
+
class: 'bg-secondary text-on-secondary hover:bg-secondary-soft'
|
|
380
|
+
}, {
|
|
381
|
+
appearance: 'outlined',
|
|
382
|
+
intent: 'tertiary',
|
|
363
383
|
isSelected: true,
|
|
364
|
-
class: 'bg-
|
|
384
|
+
class: 'bg-tertiary text-on-tertiary hover:bg-tertiary-soft'
|
|
365
385
|
}, {
|
|
366
386
|
appearance: 'outlined',
|
|
367
387
|
intent: 'success',
|
|
@@ -385,7 +405,7 @@ const buttonGroup = tv({
|
|
|
385
405
|
|
|
386
406
|
const chip = tv({
|
|
387
407
|
slots: {
|
|
388
|
-
base: ['disabled:cursor-not-allowed', 'disabled:opacity-
|
|
408
|
+
base: ['disabled:cursor-not-allowed', 'disabled:opacity-disabled', 'whitespace-nowrap', 'inline-flex items-center justify-between box-border'],
|
|
389
409
|
// label text role (size set per size variant)
|
|
390
410
|
content: ['flex-1 text-inherit font-label'],
|
|
391
411
|
dot: ['w-2', 'h-2', 'ml-1', 'rounded-full'],
|
|
@@ -393,7 +413,7 @@ const chip = tv({
|
|
|
393
413
|
},
|
|
394
414
|
variants: {
|
|
395
415
|
isDisabled: {
|
|
396
|
-
true: 'opacity-
|
|
416
|
+
true: 'opacity-disabled'
|
|
397
417
|
},
|
|
398
418
|
appearance: {
|
|
399
419
|
default: '',
|
|
@@ -409,9 +429,13 @@ const chip = tv({
|
|
|
409
429
|
dot: 'bg-primary',
|
|
410
430
|
closeButton: ['bg-primary-muted', 'text-on-primary', 'hover:bg-primary-firm', 'focus-visible:ring-primary-soft']
|
|
411
431
|
},
|
|
412
|
-
|
|
413
|
-
dot: 'bg-
|
|
414
|
-
closeButton: ['bg-
|
|
432
|
+
secondary: {
|
|
433
|
+
dot: 'bg-secondary',
|
|
434
|
+
closeButton: ['bg-secondary-muted', 'text-on-secondary', 'hover:bg-secondary-firm', 'focus-visible:ring-secondary-soft']
|
|
435
|
+
},
|
|
436
|
+
tertiary: {
|
|
437
|
+
dot: 'bg-tertiary',
|
|
438
|
+
closeButton: ['bg-tertiary-muted', 'text-on-tertiary', 'hover:bg-tertiary-firm', 'focus-visible:ring-tertiary-soft']
|
|
415
439
|
},
|
|
416
440
|
success: {
|
|
417
441
|
dot: 'bg-success',
|
|
@@ -466,9 +490,15 @@ const chip = tv({
|
|
|
466
490
|
}
|
|
467
491
|
}, {
|
|
468
492
|
appearance: 'default',
|
|
469
|
-
intent: '
|
|
493
|
+
intent: 'secondary',
|
|
494
|
+
class: {
|
|
495
|
+
base: 'bg-secondary text-on-secondary'
|
|
496
|
+
}
|
|
497
|
+
}, {
|
|
498
|
+
appearance: 'default',
|
|
499
|
+
intent: 'tertiary',
|
|
470
500
|
class: {
|
|
471
|
-
base: 'bg-
|
|
501
|
+
base: 'bg-tertiary text-on-tertiary'
|
|
472
502
|
}
|
|
473
503
|
}, {
|
|
474
504
|
appearance: 'default',
|
|
@@ -504,9 +534,15 @@ const chip = tv({
|
|
|
504
534
|
}
|
|
505
535
|
}, {
|
|
506
536
|
appearance: 'faded',
|
|
507
|
-
intent: '
|
|
537
|
+
intent: 'secondary',
|
|
508
538
|
class: {
|
|
509
|
-
base: 'text-
|
|
539
|
+
base: 'text-secondary-strong bg-secondary-subtle'
|
|
540
|
+
}
|
|
541
|
+
}, {
|
|
542
|
+
appearance: 'faded',
|
|
543
|
+
intent: 'tertiary',
|
|
544
|
+
class: {
|
|
545
|
+
base: 'text-tertiary-strong bg-tertiary-subtle'
|
|
510
546
|
}
|
|
511
547
|
}, {
|
|
512
548
|
appearance: 'faded',
|
|
@@ -542,9 +578,15 @@ const chip = tv({
|
|
|
542
578
|
}
|
|
543
579
|
}, {
|
|
544
580
|
appearance: 'outlined',
|
|
545
|
-
intent: '
|
|
581
|
+
intent: 'secondary',
|
|
582
|
+
class: {
|
|
583
|
+
base: 'text-secondary-strong border border-secondary'
|
|
584
|
+
}
|
|
585
|
+
}, {
|
|
586
|
+
appearance: 'outlined',
|
|
587
|
+
intent: 'tertiary',
|
|
546
588
|
class: {
|
|
547
|
-
base: 'text-
|
|
589
|
+
base: 'text-tertiary-strong border border-tertiary'
|
|
548
590
|
}
|
|
549
591
|
}, {
|
|
550
592
|
appearance: 'outlined',
|
|
@@ -593,8 +635,11 @@ const progressBar = tv({
|
|
|
593
635
|
primary: {
|
|
594
636
|
progress: 'bg-primary-soft'
|
|
595
637
|
},
|
|
596
|
-
|
|
597
|
-
progress: 'bg-
|
|
638
|
+
secondary: {
|
|
639
|
+
progress: 'bg-secondary-soft'
|
|
640
|
+
},
|
|
641
|
+
tertiary: {
|
|
642
|
+
progress: 'bg-tertiary-soft'
|
|
598
643
|
},
|
|
599
644
|
success: {
|
|
600
645
|
progress: 'bg-success-soft'
|
|
@@ -710,7 +755,7 @@ const listboxItem = tv({
|
|
|
710
755
|
default: {},
|
|
711
756
|
primary: {},
|
|
712
757
|
secondary: {},
|
|
713
|
-
|
|
758
|
+
tertiary: {},
|
|
714
759
|
success: {},
|
|
715
760
|
warning: {},
|
|
716
761
|
danger: {}
|
|
@@ -756,9 +801,15 @@ const listboxItem = tv({
|
|
|
756
801
|
}
|
|
757
802
|
}, {
|
|
758
803
|
appearance: 'default',
|
|
759
|
-
intent: '
|
|
804
|
+
intent: 'secondary',
|
|
805
|
+
class: {
|
|
806
|
+
base: ['data-is-active:bg-secondary-soft', 'data-is-active:text-on-secondary-soft']
|
|
807
|
+
}
|
|
808
|
+
}, {
|
|
809
|
+
appearance: 'default',
|
|
810
|
+
intent: 'tertiary',
|
|
760
811
|
class: {
|
|
761
|
-
base: ['data-is-active:bg-
|
|
812
|
+
base: ['data-is-active:bg-tertiary-soft', 'data-is-active:text-on-tertiary-soft']
|
|
762
813
|
}
|
|
763
814
|
}, {
|
|
764
815
|
appearance: 'default',
|
|
@@ -794,10 +845,17 @@ const listboxItem = tv({
|
|
|
794
845
|
}
|
|
795
846
|
}, {
|
|
796
847
|
appearance: 'default',
|
|
797
|
-
intent: '
|
|
848
|
+
intent: 'secondary',
|
|
849
|
+
isActive: true,
|
|
850
|
+
class: {
|
|
851
|
+
shortcut: ['text-on-secondary-soft', 'border-on-secondary-soft/20']
|
|
852
|
+
}
|
|
853
|
+
}, {
|
|
854
|
+
appearance: 'default',
|
|
855
|
+
intent: 'tertiary',
|
|
798
856
|
isActive: true,
|
|
799
857
|
class: {
|
|
800
|
-
shortcut: ['text-on-
|
|
858
|
+
shortcut: ['text-on-tertiary-soft', 'border-on-tertiary-soft/20']
|
|
801
859
|
}
|
|
802
860
|
}, {
|
|
803
861
|
appearance: 'default',
|
|
@@ -836,9 +894,15 @@ const listboxItem = tv({
|
|
|
836
894
|
}
|
|
837
895
|
}, {
|
|
838
896
|
appearance: 'outlined',
|
|
839
|
-
intent: '
|
|
897
|
+
intent: 'secondary',
|
|
840
898
|
class: {
|
|
841
|
-
base: ['data-is-active:border-
|
|
899
|
+
base: ['data-is-active:border-secondary', 'data-is-active:text-secondary-strong']
|
|
900
|
+
}
|
|
901
|
+
}, {
|
|
902
|
+
appearance: 'outlined',
|
|
903
|
+
intent: 'tertiary',
|
|
904
|
+
class: {
|
|
905
|
+
base: ['data-is-active:border-tertiary', 'data-is-active:text-tertiary-strong']
|
|
842
906
|
}
|
|
843
907
|
}, {
|
|
844
908
|
appearance: 'outlined',
|
|
@@ -874,9 +938,15 @@ const listboxItem = tv({
|
|
|
874
938
|
}
|
|
875
939
|
}, {
|
|
876
940
|
appearance: 'faded',
|
|
877
|
-
intent: '
|
|
941
|
+
intent: 'secondary',
|
|
942
|
+
class: {
|
|
943
|
+
base: ['data-is-active:bg-secondary-soft/20', 'data-is-active:border-secondary', 'data-is-active:text-secondary-strong']
|
|
944
|
+
}
|
|
945
|
+
}, {
|
|
946
|
+
appearance: 'faded',
|
|
947
|
+
intent: 'tertiary',
|
|
878
948
|
class: {
|
|
879
|
-
base: ['data-is-active:bg-
|
|
949
|
+
base: ['data-is-active:bg-tertiary-soft/20', 'data-is-active:border-tertiary', 'data-is-active:text-tertiary-strong']
|
|
880
950
|
}
|
|
881
951
|
}, {
|
|
882
952
|
appearance: 'faded',
|
|
@@ -957,9 +1027,9 @@ const skeleton = tv({
|
|
|
957
1027
|
xl: ''
|
|
958
1028
|
},
|
|
959
1029
|
animation: {
|
|
960
|
-
shimmer: ['bg-linear-to-r', 'from-surface-overlay-soft', 'via-surface-overlay-
|
|
961
|
-
pulse: ['bg-surface-overlay-
|
|
962
|
-
none: ['bg-surface-overlay-
|
|
1030
|
+
shimmer: ['bg-linear-to-r', 'from-surface-overlay-soft', 'via-surface-overlay-firm', 'to-surface-overlay-soft', 'bg-[length:200%_100%]', 'animate-shimmer'],
|
|
1031
|
+
pulse: ['bg-surface-overlay-mild', 'animate-pulse'],
|
|
1032
|
+
none: ['bg-surface-overlay-mild']
|
|
963
1033
|
}
|
|
964
1034
|
},
|
|
965
1035
|
compoundVariants: [
|
|
@@ -1031,7 +1101,8 @@ const spinner = tv({
|
|
|
1031
1101
|
intent: {
|
|
1032
1102
|
default: 'fill-neutral-strong',
|
|
1033
1103
|
primary: 'fill-primary',
|
|
1034
|
-
|
|
1104
|
+
secondary: 'fill-secondary',
|
|
1105
|
+
tertiary: 'fill-tertiary',
|
|
1035
1106
|
success: 'fill-success',
|
|
1036
1107
|
warning: 'fill-warning',
|
|
1037
1108
|
danger: 'fill-danger'
|
|
@@ -1052,7 +1123,7 @@ const table = tv({
|
|
|
1052
1123
|
tbody: ['divide-y', 'divide-surface-overlay-subtle', '[&>tr]:data-[selectable=true]:data-[selected=false]:hover:bg-neutral-subtle', '[&>tr]:data-[selectable=true]:transition-colors'],
|
|
1053
1124
|
tfoot: ['relative'],
|
|
1054
1125
|
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'],
|
|
1055
|
-
separator: ['absolute', 'z-2', 'left-0', 'w-full', 'h-px', 'bg-surface-overlay-
|
|
1126
|
+
separator: ['absolute', 'z-2', 'left-0', 'w-full', 'h-px', 'bg-surface-overlay-mild'],
|
|
1056
1127
|
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
1128
|
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'],
|
|
1058
1129
|
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'],
|
|
@@ -1402,8 +1473,8 @@ const backdrop = tv({
|
|
|
1402
1473
|
type: {
|
|
1403
1474
|
none: '',
|
|
1404
1475
|
transparent: '',
|
|
1405
|
-
blur: 'bg-surface-overlay-
|
|
1406
|
-
faded: 'bg-surface-overlay-
|
|
1476
|
+
blur: 'bg-surface-overlay-strong backdrop-blur-sm',
|
|
1477
|
+
faded: 'bg-surface-overlay-strong'
|
|
1407
1478
|
},
|
|
1408
1479
|
inPlace: {
|
|
1409
1480
|
true: 'absolute'
|
|
@@ -1412,7 +1483,7 @@ const backdrop = tv({
|
|
|
1412
1483
|
});
|
|
1413
1484
|
const modal = tv({
|
|
1414
1485
|
slots: {
|
|
1415
|
-
base: 'flex flex-col shrink-0 relative text-on-surface-modal bg-surface-modal border border-surface-overlay-
|
|
1486
|
+
base: 'flex flex-col shrink-0 relative text-on-surface-modal bg-surface-modal border border-surface-overlay-mild rounded-2xl my-24 w-full outline-hidden overflow-clip',
|
|
1416
1487
|
closeButton: 'absolute top-3 right-3',
|
|
1417
1488
|
header: 'font-header text-header-lg px-6 pt-8 pb-2',
|
|
1418
1489
|
body: 'px-6 py-2 grow overflow-y-auto',
|
|
@@ -1434,11 +1505,11 @@ const modal = tv({
|
|
|
1434
1505
|
});
|
|
1435
1506
|
const drawer = tv({
|
|
1436
1507
|
slots: {
|
|
1437
|
-
base: 'flex flex-col absolute text-on-surface-modal bg-surface-modal border border-surface-overlay-
|
|
1508
|
+
base: 'flex flex-col absolute text-on-surface-modal bg-surface-modal border border-surface-overlay-mild rounded-2xl w-full h-full outline-hidden overflow-clip',
|
|
1438
1509
|
closeButton: 'absolute top-3 right-3',
|
|
1439
1510
|
header: 'font-header text-header-lg text-center px-8 pt-10 pb-2',
|
|
1440
1511
|
body: 'px-8 py-4 grow overflow-y-auto',
|
|
1441
|
-
footer: `${obscurer} flex justify-end items-center relative border-t border-surface-overlay-
|
|
1512
|
+
footer: `${obscurer} flex justify-end items-center relative border-t border-surface-overlay-mild bg-surface-modal p-8 gap-4`
|
|
1442
1513
|
},
|
|
1443
1514
|
variants: {
|
|
1444
1515
|
size: {
|
|
@@ -1656,7 +1727,8 @@ const formFeedback = tv({
|
|
|
1656
1727
|
variants: {
|
|
1657
1728
|
intent: {
|
|
1658
1729
|
primary: 'text-primary',
|
|
1659
|
-
|
|
1730
|
+
secondary: 'text-secondary',
|
|
1731
|
+
tertiary: 'text-tertiary',
|
|
1660
1732
|
success: 'text-success',
|
|
1661
1733
|
danger: 'text-danger',
|
|
1662
1734
|
warning: 'text-warning'
|
|
@@ -1928,8 +2000,11 @@ const switchInput = tv({
|
|
|
1928
2000
|
primary: {
|
|
1929
2001
|
wrapper: ['group-data-[selected=true]:bg-primary', 'group-data-[selected=true]:text-on-primary']
|
|
1930
2002
|
},
|
|
1931
|
-
|
|
1932
|
-
wrapper: ['group-data-[selected=true]:bg-
|
|
2003
|
+
secondary: {
|
|
2004
|
+
wrapper: ['group-data-[selected=true]:bg-secondary', 'group-data-[selected=true]:text-on-secondary']
|
|
2005
|
+
},
|
|
2006
|
+
tertiary: {
|
|
2007
|
+
wrapper: ['group-data-[selected=true]:bg-tertiary', 'group-data-[selected=true]:text-on-tertiary']
|
|
1933
2008
|
},
|
|
1934
2009
|
success: {
|
|
1935
2010
|
wrapper: ['group-data-[selected=true]:bg-success', 'group-data-[selected=true]:text-on-success']
|
|
@@ -2068,5 +2143,5 @@ const formSelect = tv({
|
|
|
2068
2143
|
}
|
|
2069
2144
|
});
|
|
2070
2145
|
|
|
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,
|
|
2072
|
-
//# sourceMappingURL=forms-legacy-
|
|
2146
|
+
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, tv as R, twMerge 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 };
|
|
2147
|
+
//# sourceMappingURL=forms-legacy-BYj1fPB4.js.map
|