@frontile/theme 0.18.0-alpha.12 → 0.18.0-alpha.14

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.
Files changed (35) hide show
  1. package/README.md +3 -2
  2. package/declarations/colors/config.d.ts +8 -4
  3. package/declarations/colors/semantic.d.ts +4 -0
  4. package/declarations/colors/types.d.ts +67 -13
  5. package/declarations/components/avatar.d.ts +2 -0
  6. package/declarations/components/button.d.ts +34 -12
  7. package/declarations/components/chip.d.ts +27 -5
  8. package/declarations/components/close-button.d.ts +2 -0
  9. package/declarations/components/divider.d.ts +2 -0
  10. package/declarations/components/dropdown.d.ts +2 -0
  11. package/declarations/components/forms/forms-legacy.d.ts +24 -0
  12. package/declarations/components/forms/forms.d.ts +72 -10
  13. package/declarations/components/listbox.d.ts +9 -5
  14. package/declarations/components/notification-card.d.ts +2 -0
  15. package/declarations/components/notifications-container.d.ts +2 -0
  16. package/declarations/components/overlays.d.ts +8 -0
  17. package/declarations/components/popover.d.ts +2 -0
  18. package/declarations/components/progress-bar.d.ts +22 -5
  19. package/declarations/components/skeleton.d.ts +2 -0
  20. package/declarations/components/spinner.d.ts +12 -5
  21. package/declarations/components/table.d.ts +2 -0
  22. package/declarations/plugin/default-config.d.ts +8 -4
  23. package/declarations/tw.d.ts +2 -0
  24. package/dist/colors.js +1 -1
  25. package/dist/config-B7ki0xcw.js +445 -0
  26. package/dist/config-B7ki0xcw.js.map +1 -0
  27. package/dist/{forms-legacy-B5rhfjDu.js → forms-legacy-CmzotfYT.js} +183 -103
  28. package/dist/forms-legacy-CmzotfYT.js.map +1 -0
  29. package/dist/index.js +2 -2
  30. package/dist/plugin.js +33 -13
  31. package/dist/plugin.js.map +1 -1
  32. package/package.json +2 -2
  33. package/dist/config-CDp8PRHs.js +0 -370
  34. package/dist/config-CDp8PRHs.js.map +0 -1
  35. package/dist/forms-legacy-B5rhfjDu.js.map +0 -1
@@ -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
- accent: 'focus-visible:ring-accent-soft',
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:border-neutral-bolder hover:text-neutral-bolder active:bg-neutral-muted active:border-neutral-strong active:text-neutral-strong'
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-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'
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: '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'
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:bg-success-subtle hover:border-success-soft hover:text-success-bolder active:bg-success-muted active:border-success-firm active:text-success-bolder'
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:bg-warning-subtle hover:border-warning-soft hover:text-warning-bolder active:bg-warning-muted active:border-warning-firm active:text-warning-bolder'
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-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'
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-bolder active:bg-neutral-strong'
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-soft active:bg-primary-firm'
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: 'accent',
218
- class: 'bg-accent text-on-accent hover:bg-accent-soft active:bg-accent-firm'
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-soft active:bg-success-firm'
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-soft active:bg-warning-firm'
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-soft active:bg-danger-firm'
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 (tint fill + colored stroke)
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-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'
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-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'
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: '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'
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-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'
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-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'
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-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'
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:bg-neutral-subtle hover:text-neutral-bolder active:bg-neutral-muted active:text-neutral-strong'
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-strong hover:bg-primary-subtle hover:text-primary-bolder active:bg-primary-muted active:text-primary-bolder'
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: 'accent',
270
- class: 'text-accent-strong hover:bg-accent-subtle hover:text-accent-bolder active:bg-accent-muted active:text-accent-bolder'
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:bg-success-subtle hover:text-success-bolder active:bg-success-muted active:text-success-bolder'
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:bg-warning-subtle hover:text-warning-bolder active:bg-warning-muted active:text-warning-bolder'
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-strong hover:bg-danger-subtle hover:text-danger-bolder active:bg-danger-muted active:text-danger-bolder'
290
+ class: 'text-danger hover:text-danger-mild active:text-danger-firm'
283
291
  },
284
- // APPEARANCE: tonal — text stays fixed (on-tonal); only the tint
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-subtle text-neutral-bolder hover:bg-neutral-muted active:bg-neutral-soft'
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-subtle text-primary-strong hover:bg-primary-muted active:bg-primary-soft'
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: 'accent',
297
- class: 'bg-accent-subtle text-accent-strong hover:bg-accent-muted active:bg-accent-soft'
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-subtle text-success-strong hover:bg-success-muted active:bg-success-soft'
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-subtle text-warning-strong hover:bg-warning-muted active:bg-warning-soft'
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-subtle text-danger-strong hover:bg-danger-muted active:bg-danger-soft'
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: 'accent',
323
- class: 'text-accent-strong'
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: 'accent',
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-accent text-on-accent hover:bg-accent-soft'
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-40', 'whitespace-nowrap', 'inline-flex items-center justify-between box-border'],
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-40'
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
- accent: {
413
- dot: 'bg-accent',
414
- closeButton: ['bg-accent-muted', 'text-on-accent', 'hover:bg-accent-firm', 'focus-visible:ring-accent-soft']
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: 'accent',
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-accent text-on-accent'
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: 'accent',
537
+ intent: 'secondary',
508
538
  class: {
509
- base: 'text-accent-strong bg-accent-subtle'
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: 'accent',
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-accent-strong border border-accent'
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
- accent: {
597
- progress: 'bg-accent-soft'
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
- accent: {},
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: 'accent',
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-accent-soft', 'data-is-active:text-on-accent-soft']
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: 'accent',
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-accent-soft', 'border-on-accent-soft/20']
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: 'accent',
897
+ intent: 'secondary',
840
898
  class: {
841
- base: ['data-is-active:border-accent', 'data-is-active:text-accent-strong']
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: 'accent',
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-accent-soft/20', 'data-is-active:border-accent', 'data-is-active:text-accent-strong']
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-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']
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: [
@@ -1023,15 +1093,16 @@ const spinner = tv({
1023
1093
  variants: {
1024
1094
  size: {
1025
1095
  xs: 'w-4 h-4',
1026
- sm: 'w-6 h-6,',
1027
- md: 'w-8 h-8,',
1096
+ sm: 'w-6 h-6',
1097
+ md: 'w-8 h-8',
1028
1098
  lg: 'w-10 h-10',
1029
1099
  xl: 'w-12 h-12'
1030
1100
  },
1031
1101
  intent: {
1032
1102
  default: 'fill-neutral-strong',
1033
1103
  primary: 'fill-primary',
1034
- accent: 'fill-accent',
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-medium'],
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'],
@@ -1148,7 +1219,9 @@ const table = tv({
1148
1219
  isSticky: true,
1149
1220
  stickyPosition: 'top',
1150
1221
  class: {
1151
- thead: ['sticky', 'top-0', 'z-2', 'bg-surface-card']
1222
+ // `surface-card` is translucent in dark, which would let rows show
1223
+ // through a stuck header; `surface-canvas` is opaque in both schemes.
1224
+ thead: ['sticky', 'top-0', 'z-2', 'bg-surface-canvas']
1152
1225
  }
1153
1226
  },
1154
1227
  // Sticky footer
@@ -1402,8 +1475,11 @@ const backdrop = tv({
1402
1475
  type: {
1403
1476
  none: '',
1404
1477
  transparent: '',
1405
- blur: 'bg-surface-overlay-scrim backdrop-blur-sm',
1406
- faded: 'bg-surface-overlay-scrim'
1478
+ // The scrim is `overlay-strong` in light and `lift-strong` in dark: the
1479
+ // two families are mirrored, so the black 75% step swaps sides. Pairing
1480
+ // them keeps the backdrop a dark scrim in both schemes.
1481
+ blur: 'bg-surface-overlay-strong dark:bg-surface-lift-strong backdrop-blur-sm',
1482
+ faded: 'bg-surface-overlay-strong dark:bg-surface-lift-strong'
1407
1483
  },
1408
1484
  inPlace: {
1409
1485
  true: 'absolute'
@@ -1412,7 +1488,7 @@ const backdrop = tv({
1412
1488
  });
1413
1489
  const modal = tv({
1414
1490
  slots: {
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',
1491
+ 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
1492
  closeButton: 'absolute top-3 right-3',
1417
1493
  header: 'font-header text-header-lg px-6 pt-8 pb-2',
1418
1494
  body: 'px-6 py-2 grow overflow-y-auto',
@@ -1434,11 +1510,11 @@ const modal = tv({
1434
1510
  });
1435
1511
  const drawer = tv({
1436
1512
  slots: {
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',
1513
+ 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
1514
  closeButton: 'absolute top-3 right-3',
1439
1515
  header: 'font-header text-header-lg text-center px-8 pt-10 pb-2',
1440
1516
  body: 'px-8 py-4 grow overflow-y-auto',
1441
- footer: `${obscurer} flex justify-end items-center relative border-t border-surface-overlay-medium bg-surface-modal p-8 gap-4`
1517
+ footer: `${obscurer} flex justify-end items-center relative border-t border-surface-overlay-mild bg-surface-modal p-8 gap-4`
1442
1518
  },
1443
1519
  variants: {
1444
1520
  size: {
@@ -1656,7 +1732,8 @@ const formFeedback = tv({
1656
1732
  variants: {
1657
1733
  intent: {
1658
1734
  primary: 'text-primary',
1659
- accent: 'text-accent',
1735
+ secondary: 'text-secondary',
1736
+ tertiary: 'text-tertiary',
1660
1737
  success: 'text-success',
1661
1738
  danger: 'text-danger',
1662
1739
  warning: 'text-warning'
@@ -1928,8 +2005,11 @@ const switchInput = tv({
1928
2005
  primary: {
1929
2006
  wrapper: ['group-data-[selected=true]:bg-primary', 'group-data-[selected=true]:text-on-primary']
1930
2007
  },
1931
- accent: {
1932
- wrapper: ['group-data-[selected=true]:bg-accent', 'group-data-[selected=true]:text-on-accent']
2008
+ secondary: {
2009
+ wrapper: ['group-data-[selected=true]:bg-secondary', 'group-data-[selected=true]:text-on-secondary']
2010
+ },
2011
+ tertiary: {
2012
+ wrapper: ['group-data-[selected=true]:bg-tertiary', 'group-data-[selected=true]:text-on-tertiary']
1933
2013
  },
1934
2014
  success: {
1935
2015
  wrapper: ['group-data-[selected=true]:bg-success', 'group-data-[selected=true]:text-on-success']
@@ -2069,4 +2149,4 @@ const formSelect = tv({
2069
2149
  });
2070
2150
 
2071
2151
  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 };
2072
- //# sourceMappingURL=forms-legacy-B5rhfjDu.js.map
2152
+ //# sourceMappingURL=forms-legacy-CmzotfYT.js.map