@webority/theme 0.163.0 → 0.165.0

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 (70) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +21 -21
  3. package/dist/purge-safelist.json +47 -24
  4. package/dist/webority-theme.css +1 -1
  5. package/package.json +6 -5
  6. package/scss/_bootstrap.generated.scss +1 -1
  7. package/scss/_components.scss +38 -34
  8. package/scss/_flags.scss +3 -3
  9. package/scss/_marketing.scss +6 -6
  10. package/scss/_tokens.generated.scss +1 -1
  11. package/scss/_variables.scss +19 -19
  12. package/scss/_wui-components.scss +4 -2
  13. package/scss/_wui-core.scss +4 -2
  14. package/scss/wui/_card.scss +8 -8
  15. package/scss/wui/_choice.scss +4 -4
  16. package/scss/wui/_command-palette.scss +7 -2
  17. package/scss/wui/_comment-thread.scss +3 -3
  18. package/scss/wui/_context-menu.scss +14 -10
  19. package/scss/wui/_controls.scss +80 -116
  20. package/scss/wui/_data.scss +71 -35
  21. package/scss/wui/_dialog-motion.scss +14 -19
  22. package/scss/wui/_disclosure.scss +3 -3
  23. package/scss/wui/_display.scss +56 -56
  24. package/scss/wui/_dock.scss +4 -4
  25. package/scss/wui/_drawer.scss +18 -15
  26. package/scss/wui/_empty-state.scss +4 -4
  27. package/scss/wui/_entry-grid.scss +118 -0
  28. package/scss/wui/_field-sizes.scss +1 -2
  29. package/scss/wui/_file-viewer.scss +14 -2
  30. package/scss/wui/_filter-popover.scss +1 -1
  31. package/scss/wui/_floating.scss +1 -1
  32. package/scss/wui/_flow.scss +33 -33
  33. package/scss/wui/_formula-steps.scss +73 -0
  34. package/scss/wui/_hover-card.scss +6 -5
  35. package/scss/wui/_inline-edit.scss +1 -1
  36. package/scss/wui/_interaction.scss +4 -0
  37. package/scss/wui/_kanban.scss +1 -1
  38. package/scss/wui/_lightbox.scss +20 -9
  39. package/scss/wui/_media.scss +1 -1
  40. package/scss/wui/_mention-input.scss +3 -3
  41. package/scss/wui/_menu-motion.scss +23 -23
  42. package/scss/wui/_metric-strip.scss +14 -0
  43. package/scss/wui/_modal-remote.scss +3 -3
  44. package/scss/wui/_native-overlay.scss +76 -0
  45. package/scss/wui/_navigation-menu.scss +13 -17
  46. package/scss/wui/_navigation.scss +25 -1
  47. package/scss/wui/_notification-center.scss +6 -9
  48. package/scss/wui/_overlay-reset.scss +15 -0
  49. package/scss/wui/_overlays.scss +147 -99
  50. package/scss/wui/_page-header-bar.scss +24 -0
  51. package/scss/wui/_scrollbar.scss +1 -1
  52. package/scss/wui/_sections.scss +31 -3
  53. package/scss/wui/_select.scss +16 -10
  54. package/scss/wui/_shell-parts.scss +6 -2
  55. package/scss/wui/_shell.scss +131 -28
  56. package/scss/wui/_shortcuts.scss +3 -15
  57. package/scss/wui/_sortable.scss +1 -1
  58. package/scss/wui/_tone-pill.scss +2 -2
  59. package/scss/wui/_toolbar.scss +3 -3
  60. package/scss/wui/_truncate.scss +2 -2
  61. package/scss/wui/_typography.scss +9 -8
  62. package/scss/wui/_utilities.scss +4 -12
  63. package/scss/wui/_whats-new.scss +6 -7
  64. package/scss/wui/_workspace.scss +34 -9
  65. package/scss/wui/tour/_base.scss +11 -1
  66. package/scss/wui/tour/_end.scss +6 -0
  67. package/scss/wui/tour/_media.scss +1 -1
  68. package/scss/wui/tour/_placement.scss +6 -0
  69. package/scss/wui/_resizable.scss +0 -100
  70. package/scss/wui/_rolling-number.scss +0 -68
@@ -4,7 +4,7 @@
4
4
  // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
5
5
  // Checkbox & radio, field/input, status badge, choice chip.
6
6
  //
7
- // Part of the wui-components layer — see _wui-components.scss for the whole
7
+ // Part of the wui-components layer. See _wui-components.scss for the whole
8
8
  // picture and the load order. Order within the layer is LOAD-BEARING: these
9
9
  // partials are a split of one stylesheet, not independent modules, so a rule
10
10
  // here may be overridden by a later partial. Never reorder the imports.
@@ -13,11 +13,11 @@
13
13
  // Bootstrap `.form-check` + `.form-check-input` are the public selection skin
14
14
  // (AppCheckbox / AppRadio / AppSwitch). `.wui-check` / `.wui-radio` are aliases
15
15
  // for the same glyph (AppDataTable select column + legacy `.wui-control`
16
- // markup) — never a second look. One 20px brand glyph language.
16
+ // markup), never a second look. One 20px brand glyph language.
17
17
  //
18
18
  // Layout wrappers:
19
- // .form-check / .form-check-label — App* path
20
- // .wui-control / .wui-control-label — optional compact label wrap (alias)
19
+ // .form-check / .form-check-label: App* path
20
+ // .wui-control / .wui-control-label: optional compact label wrap (alias)
21
21
 
22
22
  .form-check,
23
23
  .wui-control {
@@ -58,7 +58,7 @@
58
58
  user-select: none;
59
59
  }
60
60
 
61
- // The block variant is a 2-column grid — glyph in column 1, label in column 2 — so a long
61
+ // The block variant is a 2-column grid: glyph in column 1, label in column 2, so a long
62
62
  // label WRAPS inside its own column and stays beside the glyph, never dropping onto a second
63
63
  // line below it (a flex-wrap row breaks lines by each item's max-content size, so any label
64
64
  // longer than the remaining width is bumped below the glyph regardless of flex sizing). The
@@ -190,7 +190,7 @@
190
190
  margin-bottom: 0;
191
191
  }
192
192
 
193
- // Glyph — shared by BS form-check-input and the wui-check alias.
193
+ // Glyph: shared by BS form-check-input and the wui-check alias.
194
194
  .form-check-input,
195
195
  .wui-check,
196
196
  .wui-radio {
@@ -246,7 +246,7 @@
246
246
  box-shadow: none;
247
247
  }
248
248
  // A plain MOUSE click must leave NO lingering focus/active glow, ring, border tint or
249
- // darkening — Bootstrap paints all of them on :focus/:active. Neutralise them for pointer
249
+ // darkening; Bootstrap paints all of them on :focus/:active. Neutralise them for pointer
250
250
  // focus + active while the keyboard ring above stays, so a mouse click just toggles cleanly.
251
251
  .form-check-input:focus:not(:focus-visible),
252
252
  .wui-check:focus:not(:focus-visible),
@@ -305,7 +305,7 @@
305
305
  color: var(--color-text-subtle);
306
306
  }
307
307
 
308
- // Compact row-select — ONLY inside the select column (AppDataTable / Razor
308
+ // Compact row-select: ONLY inside the select column (AppDataTable / Razor
309
309
  // data-table → `.wui-select-cell`). Scope is load-bearing.
310
310
  .wui-select-cell .wui-check,
311
311
  .wui-select-cell .form-check-input {
@@ -341,17 +341,17 @@
341
341
  border-color: transparent;
342
342
  background-color: var(--color-primary);
343
343
  background-position: right center;
344
- // Re-assert the knob — the checkbox :checked tick has equal specificity.
344
+ // Re-assert the knob. The checkbox :checked tick has equal specificity.
345
345
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='white'/%3E%3C/svg%3E");
346
346
  }
347
- // On a mouse click the switch's track border reverts to its resting transparent — Bootstrap's
347
+ // On a mouse click the switch's track border reverts to its resting transparent; Bootstrap's
348
348
  // :focus otherwise tints it brand-blue, leaving a coloured outline after the click. The shared
349
349
  // :focus:not(:focus-visible) rule already dropped the glow; this drops the border tint too.
350
350
  .form-switch .form-check-input:focus:not(:focus-visible) {
351
351
  border-color: transparent;
352
352
  }
353
353
 
354
- // Circular variant (shape="circle") — a compact round on/off button instead of a sliding
354
+ // Circular variant (shape="circle"): a compact round on/off button instead of a sliding
355
355
  // pill. The track is a square-sized circle; the knob dot stays CENTRED in both states (no
356
356
  // left/right slide) and the fill flips to primary when on. Placed after the base switch
357
357
  // block so the equal-specificity :checked position override wins on source order.
@@ -380,49 +380,6 @@
380
380
  corner-shape: round;
381
381
  }
382
382
 
383
- // Table-row switch (<app-row-switch>, AppRowSwitch): a button, not an input, so a row can post it.
384
- // Same track, knob, colours and focus ring as the form switch above.
385
- .wui-row-switch {
386
- display: inline-flex;
387
- align-items: center;
388
- padding: 0;
389
- border: 0;
390
- background: none;
391
- border-radius: var(--wui-radius-pill);
392
- cursor: pointer;
393
- }
394
- .wui-row-switch:focus-visible {
395
- outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
396
- outline-offset: var(--wui-focus-ring-offset);
397
- }
398
- .wui-row-switch__track {
399
- position: relative;
400
- display: block;
401
- width: 40px;
402
- height: 22px;
403
- border-radius: var(--wui-radius-pill);
404
- background-color: var(--color-border-strong);
405
- }
406
- .wui-row-switch__thumb {
407
- position: absolute;
408
- top: 2px;
409
- left: 2px;
410
- width: 18px;
411
- height: 18px;
412
- border-radius: 50%;
413
- background-color: var(--color-surface);
414
- }
415
- .wui-row-switch[aria-checked="true"] .wui-row-switch__track {
416
- background-color: var(--color-primary);
417
- }
418
- .wui-row-switch[aria-checked="true"] .wui-row-switch__thumb {
419
- transform: translateX(18px);
420
- }
421
- .wui-row-switch:disabled,
422
- .wui-row-switch[aria-busy="true"] {
423
- opacity: var(--wui-disabled-opacity);
424
- cursor: not-allowed;
425
- }
426
383
  @media (prefers-reduced-motion: reduce) {
427
384
  .form-check-input,
428
385
  .wui-check,
@@ -434,7 +391,7 @@
434
391
  // ── Field / Input ──
435
392
  // Bootstrap `.form-control` / `.form-select` are the field skin. `.input` /
436
393
  // `.select` / `.textarea` are aliases (and App* size/shell hooks) that MUST
437
- // share the same chrome — never a second look. The only WUI
394
+ // share the same chrome; never a second look. The only WUI
438
395
  // deltas on top of Bootstrap's $input-* vars: shared control height, hover
439
396
  // fill, brand-border focus (no glow), soft invalid border.
440
397
  //
@@ -443,7 +400,7 @@
443
400
  // border + a soft focus ring on focus. "Filled" is the same resting look with a
444
401
  // value; the state ladder is default/filled → hover → focus → disabled → error.
445
402
  //
446
- // Keep shell utilities (.input-wrap, .input-icon, .input-sm, …) — those are
403
+ // Keep shell utilities (.input-wrap, .input-icon, .input-sm, …). Those are
447
404
  // structure, not a parallel visual system.
448
405
  .form-control,
449
406
  .form-select,
@@ -489,7 +446,7 @@ textarea.form-control {
489
446
  line-height: 1.5;
490
447
  resize: vertical;
491
448
  }
492
- // Auto-grow — JS drives the height to fit the content (Razor: data-app-autosize;
449
+ // Auto-grow: JS drives the height to fit the content (Razor: data-app-autosize;
493
450
  // React: autoGrow). Manual grabber and scrollbar off so they can't fight measure.
494
451
  .textarea.autosize,
495
452
  textarea.form-control.autosize {
@@ -499,7 +456,7 @@ textarea.form-control.autosize {
499
456
  // Hover/error guards: without them the hover fill repaints over an invalid border.
500
457
  // `:not([aria-expanded="true"])` on the `.input` line: a combobox/dialog trigger whose popup is
501
458
  // OPEN (datepicker/date-range/time-picker triggers set aria-expanded on the trigger, but carry
502
- // their `.open` class on the WRAPPER, not the trigger) must keep its open white fill — without
459
+ // their `.open` class on the WRAPPER, not the trigger) must keep its open white fill; without
503
460
  // this the resting-hover grey repaints over it the moment the cursor sits on the open trigger.
504
461
  // `:not(.phone-input-wrap > .input)`: the phone shell owns the fill and border, so its inner input
505
462
  // must stay transparent. This rule's specificity beats that shell's transparent rule, so without
@@ -523,7 +480,7 @@ textarea.form-control.autosize {
523
480
  // Lift off the muted resting fill onto a clean white surface while active.
524
481
  background-color: var(--color-surface);
525
482
  color: var(--color-text);
526
- // Soft brand border is the focus cue (per the reference) — no ring/shadow.
483
+ // Soft brand border is the focus cue (per the reference). No ring or shadow.
527
484
  border-color: var(--color-field-border-focus);
528
485
  box-shadow: none;
529
486
  }
@@ -532,7 +489,7 @@ textarea.form-control.autosize {
532
489
  .textarea::placeholder {
533
490
  color: var(--color-text-subtle);
534
491
  }
535
- // Borderless variant — no border/background, inherits the container's chrome
492
+ // Borderless variant: no border/background, inherits the container's chrome
536
493
  // (inline-rename, command-palette fields where the bordered shell is wrong).
537
494
  .input-bare,
538
495
  .input-bare:hover,
@@ -548,14 +505,14 @@ textarea.form-control.autosize {
548
505
  .input-bare:focus {
549
506
  outline: none;
550
507
  }
551
- // Edge/IE native password reveal — hide so only the app eye toggle shows.
508
+ // Edge/IE native password reveal: hide so only the app eye toggle shows.
552
509
  .form-control::-ms-reveal,
553
510
  .form-control::-ms-clear,
554
511
  .input::-ms-reveal,
555
512
  .input::-ms-clear {
556
513
  display: none;
557
514
  }
558
- // Autofill — kill the browser's yellow/blue autofill background so a filled field keeps its
515
+ // Autofill: kill the browser's yellow/blue autofill background so a filled field keeps its
559
516
  // own chrome (muted at rest, clean surface on focus), same as a hand-typed value. WebKit
560
517
  // won't let `background` win here, so paint over it with a full-cover inset box-shadow; the
561
518
  // 9999s background transition defers the UA's own repaint so there's no fill flash. Applies to
@@ -607,7 +564,7 @@ textarea.form-control.autosize {
607
564
  color: var(--color-text-muted);
608
565
  }
609
566
 
610
- // Read-only is NOT disabled — still submitted/selectable/copyable, so no
567
+ // Read-only is NOT disabled; still submitted/selectable/copyable, so no
611
568
  // not-allowed cursor. Match `[readonly]`, never `:read-only` (that also hits
612
569
  // disabled and non-editable controls).
613
570
  .form-control[readonly],
@@ -620,7 +577,7 @@ textarea.form-control.autosize {
620
577
  cursor: default;
621
578
  }
622
579
 
623
- // Invalid — soft danger border (one recipe for aria-invalid, .is-invalid, .error).
580
+ // Invalid: soft danger border (one recipe for aria-invalid, .is-invalid, .error).
624
581
  // Soft rather than solid --bs-danger so the field still reads as a surface, not a
625
582
  // hard alarm box; text errors use --color-danger-text for AA.
626
583
  .form-control.is-invalid,
@@ -650,7 +607,7 @@ textarea.form-control.autosize {
650
607
  .input.error:focus,
651
608
  .textarea.error:focus {
652
609
  background: var(--color-surface);
653
- // Soft danger border (danger at 30%, mirroring the primary-30 focus border) — no ring,
610
+ // Soft danger border (danger at 30%, mirroring the primary-30 focus border). No ring,
654
611
  // so the field reads as a quiet error, not a solid alarm box.
655
612
  border-color: color-mix(in srgb, var(--color-danger) 30%, transparent);
656
613
  box-shadow: none;
@@ -747,7 +704,7 @@ form .wui-field-message:empty {
747
704
  cursor: pointer;
748
705
  }
749
706
 
750
- // Date inputs — a brand calendar glyph that fills the field so a click
707
+ // Date inputs: a brand calendar glyph that fills the field so a click
751
708
  // anywhere opens the native picker; muted text until a value is chosen.
752
709
  .input[type="date"] {
753
710
  position: relative;
@@ -784,7 +741,7 @@ form .wui-field-message:empty {
784
741
  appearance: textfield;
785
742
  }
786
743
 
787
- // Custom number stepper — up/down arrows, no background.
744
+ // Custom number stepper: up/down arrows, no background.
788
745
  .num-stepper {
789
746
  position: relative;
790
747
  width: 100%;
@@ -850,22 +807,22 @@ form .wui-field-message:empty {
850
807
  background-size: 18px;
851
808
  }
852
809
  // Dark mode: keep the value in an errored field legible.
853
- :root[data-theme="dark"] .form-control.error,
854
- :root[data-theme="dark"] .form-control.error:focus,
855
- :root[data-theme="dark"] .input.error,
856
- :root[data-theme="dark"] .input.error:focus,
857
- :root[data-theme="dark"] .form-control.error:-webkit-autofill,
858
- :root[data-theme="dark"] .form-control.error:focus:-webkit-autofill,
859
- :root[data-theme="dark"] .input.error:-webkit-autofill,
860
- :root[data-theme="dark"] .input.error:focus:-webkit-autofill {
810
+ :root[data-bs-theme="dark"] .form-control.error,
811
+ :root[data-bs-theme="dark"] .form-control.error:focus,
812
+ :root[data-bs-theme="dark"] .input.error,
813
+ :root[data-bs-theme="dark"] .input.error:focus,
814
+ :root[data-bs-theme="dark"] .form-control.error:-webkit-autofill,
815
+ :root[data-bs-theme="dark"] .form-control.error:focus:-webkit-autofill,
816
+ :root[data-bs-theme="dark"] .input.error:-webkit-autofill,
817
+ :root[data-bs-theme="dark"] .input.error:focus:-webkit-autofill {
861
818
  color: var(--color-text);
862
819
  -webkit-text-fill-color: var(--color-text);
863
820
  }
864
821
  // ...but -webkit-text-fill-color is inherited by ::placeholder and beats its `color`, so the rule
865
822
  // above painted the placeholder as bright as a typed value. Hand the placeholder its own subtle
866
823
  // ink back (the same --color-text-subtle every other placeholder uses).
867
- :root[data-theme="dark"] .form-control.error::placeholder,
868
- :root[data-theme="dark"] .input.error::placeholder {
824
+ :root[data-bs-theme="dark"] .form-control.error::placeholder,
825
+ :root[data-bs-theme="dark"] .input.error::placeholder {
869
826
  color: var(--color-text-subtle);
870
827
  -webkit-text-fill-color: var(--color-text-subtle);
871
828
  }
@@ -890,7 +847,7 @@ form .wui-field-message:empty {
890
847
  color: var(--color-danger-text);
891
848
  }
892
849
 
893
- // Leading-icon input — icon turns brand on focus.
850
+ // Leading-icon input: icon turns brand on focus.
894
851
  // The leading icon sits centred in a fixed slot, a grey divider closes the slot, and the text
895
852
  // starts a gap after it. Slot, glyph and gap scale with the field size, so every icon in a
896
853
  // field of one size lands in the same place.
@@ -947,7 +904,7 @@ form .wui-field-message:empty {
947
904
  color: var(--color-primary-text);
948
905
  }
949
906
 
950
- // Trailing action beside the field — a control (a labelled button, or a confirmation once the
907
+ // Trailing action beside the field: a control (a labelled button, or a confirmation once the
951
908
  // value resolves) that sits OUTSIDE the input border. The field flexes to fill the row; the
952
909
  // action keeps its natural width and centres against the control.
953
910
  .input-action-row {
@@ -1011,7 +968,7 @@ form .wui-field-message:empty {
1011
968
  display: block;
1012
969
  }
1013
970
 
1014
- // Clearable ✕ — a trailing reset button, placed inside .input-wrap / .input-icon. It only
971
+ // Clearable ✕: a trailing reset button, placed inside .input-wrap / .input-icon. It only
1015
972
  // renders while the field has a value; .has-clear reserves the room so text never sits under it.
1016
973
  .input.has-clear {
1017
974
  padding-right: 40px;
@@ -1049,7 +1006,7 @@ form .wui-field-message:empty {
1049
1006
  to { opacity: 1; transform: translateY(-50%) scale(1); }
1050
1007
  }
1051
1008
 
1052
- // Prefix / suffix addon — a bordered box before/after the input (₹, https://, .com). The
1009
+ // Prefix / suffix addon: a bordered box before/after the input (₹, https://, .com). The
1053
1010
  // WRAPPER owns the border + radius so the affixes and input read as one control; the input
1054
1011
  // itself goes borderless. Focus/hover/error move to the wrapper.
1055
1012
  .input-affixed {
@@ -1058,7 +1015,7 @@ form .wui-field-message:empty {
1058
1015
  width: 100%;
1059
1016
  border: 1px solid var(--color-field-border);
1060
1017
  border-radius: var(--wui-field-md-radius);
1061
- // Soft-filled at rest, white on focus — one shared fill for the whole control so the
1018
+ // Soft-filled at rest, white on focus; one shared fill for the whole control so the
1062
1019
  // prefix/suffix and the input body are always the SAME colour combination as the field.
1063
1020
  background: var(--color-field-bg);
1064
1021
  // Clip the square inner input to the wrapper's rounded corners on hover and focus.
@@ -1101,7 +1058,7 @@ form .wui-field-message:empty {
1101
1058
  justify-content: center;
1102
1059
  min-width: 44px;
1103
1060
  padding: 0 12px;
1104
- // Transparent so the affix inherits the wrapper fill — the addon and the input read as
1061
+ // Transparent so the affix inherits the wrapper fill; the addon and the input read as
1105
1062
  // one continuous surface (only the separator border divides them).
1106
1063
  background: transparent;
1107
1064
  color: var(--color-text-subtle);
@@ -1117,7 +1074,7 @@ form .wui-field-message:empty {
1117
1074
  border-radius: 0 var(--wui-field-md-radius) var(--wui-field-md-radius) 0;
1118
1075
  }
1119
1076
 
1120
- // Floating label — the label starts centred as the placeholder, then slides up and shrinks
1077
+ // Floating label: the label starts centred as the placeholder, then slides up and shrinks
1121
1078
  // on focus or when the field is filled. Opt-in (floatingLabel); the input carries a single
1122
1079
  // space as its placeholder so :placeholder-shown drives the "empty" state. Standalone shell.
1123
1080
  .field-float {
@@ -1216,10 +1173,10 @@ form .wui-field-message:empty {
1216
1173
  color: var(--color-text-subtle);
1217
1174
  text-align: start;
1218
1175
  }
1219
- // Character counter — a right-aligned count under the field; turns danger at the limit.
1176
+ // Character counter: a right-aligned count under the field; turns danger at the limit.
1220
1177
  .field-count {
1221
- // `.field` is align-items:flex-start, so a shrink-wrapped count would sit on the LEFT —
1222
- // text-align alone can't move it. align-self pushes it to the control's right edge.
1178
+ // `.field` is align-items:flex-start, so a shrink-wrapped count would sit on the LEFT.
1179
+ // Text-align alone can't move it. align-self pushes it to the control's right edge.
1223
1180
  align-self: flex-end;
1224
1181
  // Tighten the space above the count: .field's 10px gap → effective 8px, matching .field-error.
1225
1182
  margin-top: -2px;
@@ -1240,7 +1197,8 @@ form .wui-field-message:empty {
1240
1197
  color: var(--wui-field-label-color, var(--color-text));
1241
1198
  margin-bottom: 6px;
1242
1199
  }
1243
- .form-label {
1200
+ // Zero specificity: a field label carries .form-label and .label, and .label's own type and colour must win.
1201
+ :where(.form-label) {
1244
1202
  font-size: var(--wui-field-label-fs, inherit);
1245
1203
  font-weight: var(--wui-field-label-fw, inherit);
1246
1204
  color: var(--wui-field-label-color, inherit);
@@ -1259,13 +1217,13 @@ form .wui-field-message:empty {
1259
1217
  .required {
1260
1218
  // Same red as .field-error. The mark is aria-hidden so it could carry the brighter brand
1261
1219
  // hue, but then the asterisk and the message it belongs to sat two lines apart in visibly
1262
- // different reds — which read as a bug and got "fixed" three times by repainting the
1220
+ // different reds, which read as a bug and got "fixed" three times by repainting the
1263
1221
  // message with the mark's sub-AA red. One token for both ends that.
1264
1222
  color: var(--color-danger-text);
1265
1223
  // The gap is CSS, not a significant space in the markup. RequiredMark used to render
1266
1224
  // `{' '}*` while AppDatePicker and every Razor helper rendered a bare `*`, so the same
1267
- // asterisk sat 4px further out in some fields than others — and no check could see it,
1268
- // because HTML comparison collapses whitespace by design. Gap removed — the star sits
1225
+ // asterisk sat 4px further out in some fields than others; and no check could see it,
1226
+ // because HTML comparison collapses whitespace by design. Gap removed. The star sits
1269
1227
  // flush against the label.
1270
1228
  margin-inline-start: 0;
1271
1229
  }
@@ -1305,15 +1263,15 @@ form .wui-field-message:empty {
1305
1263
  //
1306
1264
  // The `<wui-*>` entries are load-bearing, not defensive. Every hard interactive control
1307
1265
  // is now `.field > wui-select > .wui-select`, so the child combinator below stopped
1308
- // reaching the inner div AND the real flex item — the custom element — was named by no
1266
+ // reaching the inner div AND the real flex item (the custom element) was named by no
1309
1267
  // rule at all. With `align-items: flex-start` above, that means it shrinks to its
1310
1268
  // content: a select rendered 164px wide in a 377px column. Neither render parity nor the
1311
1269
  // interaction suite saw it, because BOTH surfaces wrap the same element and are equally
1312
1270
  // wrong, and the fixtures render at full width where nothing has to stretch.
1313
1271
  //
1314
1272
  // `display: block` is here for the same reason and is not redundant with the stretch: a
1315
- // custom element is `display: inline` by default, so outside a flex `.field` — dropped
1316
- // into a plain div, a grid cell, a table cell — it would still collapse. Being a flex
1273
+ // custom element is `display: inline` by default, so outside a flex `.field`, dropped
1274
+ // into a plain div, a grid cell, a table cell; it would still collapse. Being a flex
1317
1275
  // item blockifies it; nothing else does.
1318
1276
  wui-select,
1319
1277
  wui-phone,
@@ -1340,15 +1298,15 @@ wui-date-range {
1340
1298
  align-self: stretch;
1341
1299
  }
1342
1300
  // A file picker fills its column by default (align-self:stretch fills the field on the cross
1343
- // axis, but the field itself collapses to its content when it is a flex item — the showcase
1344
- // lays fields out in a flex row — so stretch the field to its container first). Override per
1301
+ // axis, but the field itself collapses to its content when it is a flex item; the showcase
1302
+ // lays fields out in a flex row, so stretch the field to its container first). Override per
1345
1303
  // use with a .file-w-* class or the --wui-file-width variable.
1346
1304
  .field:has(> .file-input),
1347
1305
  .field:has(> .file-preview) {
1348
1306
  width: var(--wui-file-width, 100%);
1349
1307
  max-width: 100%;
1350
1308
  }
1351
- // Doubled selectors — see the lg-tier block below: a media query carries no
1309
+ // Doubled selectors. See the lg-tier block below: a media query carries no
1352
1310
  // extra specificity, so a consumer's later single-class rule would win.
1353
1311
  @media (max-width: 575.98px) {
1354
1312
  .field-row.field-row,
@@ -1371,7 +1329,7 @@ wui-date-range {
1371
1329
  align-items: stretch;
1372
1330
  border: 1px solid var(--color-field-border);
1373
1331
  border-radius: var(--wui-field-md-radius);
1374
- // Soft-filled at rest, white on focus — the numeric input and its unit pill share the
1332
+ // Soft-filled at rest, white on focus; the numeric input and its unit pill share the
1375
1333
  // one wrapper fill, same colour combination as every other field.
1376
1334
  background: var(--color-field-bg);
1377
1335
  transition:
@@ -1391,7 +1349,7 @@ wui-date-range {
1391
1349
  border-color: color-mix(in srgb, var(--color-danger) 30%, transparent);
1392
1350
  }
1393
1351
 
1394
- // Numeric inputs are plain text fields — no native spinner, no stepper. The
1352
+ // Numeric inputs are plain text fields. No native spinner, no stepper. The
1395
1353
  // field flows seamlessly into the trailing unit pill; the wrapper carries the
1396
1354
  // border.
1397
1355
  .input-with-unit .num-input {
@@ -1415,7 +1373,7 @@ wui-date-range {
1415
1373
  box-shadow: none;
1416
1374
  }
1417
1375
  .input-with-unit .unit {
1418
- // Transparent so the pill inherits the wrapper fill — one continuous surface.
1376
+ // Transparent so the pill inherits the wrapper fill; one continuous surface.
1419
1377
  background: transparent;
1420
1378
  border: none;
1421
1379
  border-left: 1px solid var(--color-border);
@@ -1433,7 +1391,7 @@ wui-date-range {
1433
1391
  white-space: nowrap;
1434
1392
  }
1435
1393
 
1436
- // Number input with stepper — decrements/increments by step, clamped to min/max.
1394
+ // Number input with stepper: decrements/increments by step, clamped to min/max.
1437
1395
  // One field, one border: the WRAPPER owns the border + hover/focus/error ring
1438
1396
  // so the input and stepper buttons light up together.
1439
1397
  .num-wrap {
@@ -1449,7 +1407,7 @@ wui-date-range {
1449
1407
  background-color var(--wui-duration-fast) var(--wui-ease-ui);
1450
1408
  overflow: hidden;
1451
1409
  }
1452
- // Not while invalid — an errored control holds its red border/fill on hover rather than
1410
+ // Not while invalid: an errored control holds its red border/fill on hover rather than
1453
1411
  // reverting to the grey hover one (matches AppInput, whose hover rule excludes the error state).
1454
1412
  .num-wrap:hover:not(:focus-within):not(:has(.num-input.error)):not(:has(.num-input.is-invalid)):not(:has(.num-input[aria-invalid="true"])) {
1455
1413
  background: var(--color-field-bg);
@@ -1462,7 +1420,7 @@ wui-date-range {
1462
1420
  .num-wrap:has(.num-input.error),
1463
1421
  .num-wrap:has(.num-input.is-invalid),
1464
1422
  .num-wrap:has(.num-input[aria-invalid="true"]) {
1465
- // Soft invalid border — match AppInput / AppPhoneNumberInput exactly (danger at 30%,
1423
+ // Soft invalid border: match AppInput / AppPhoneNumberInput exactly (danger at 30%,
1466
1424
  // mirroring the primary-30 focus border), not the solid full-strength danger this used to
1467
1425
  // carry, so every field's error border reads the same light red. Clean surface fill, as
1468
1426
  // AppInput's invalid state.
@@ -1470,9 +1428,9 @@ wui-date-range {
1470
1428
  border-color: color-mix(in srgb, var(--color-danger) 30%, transparent);
1471
1429
  }
1472
1430
 
1473
- // Numeric input inside the stepper — plain text field, no native spinner.
1431
+ // Numeric input inside the stepper: plain text field, no native spinner.
1474
1432
  // Flows seamlessly between the stepper buttons; the wrapper carries the border.
1475
- // The value reads as the segmented centre cell — centred + semibold like the
1433
+ // The value reads as the segmented centre cell, centred + semibold like the
1476
1434
  // reference: minus | value | plus, three even cells divided by the button borders.
1477
1435
  .num-wrap .num-input {
1478
1436
  flex: 1;
@@ -1491,7 +1449,7 @@ wui-date-range {
1491
1449
  box-shadow: none;
1492
1450
  }
1493
1451
 
1494
- // Stepper buttons — decrease/increase the value by step.
1452
+ // Stepper buttons: decrease/increase the value by step.
1495
1453
  // Positioned left (minus, :first-child) and right (plus, :last-child) of the
1496
1454
  // input; disabled at min/max or when the control is disabled. Each carries the
1497
1455
  // divider on its input-facing edge so the value sits in its own segment.
@@ -1532,7 +1490,7 @@ wui-date-range {
1532
1490
  cursor: not-allowed;
1533
1491
  opacity: var(--wui-disabled-opacity);
1534
1492
  }
1535
- // Segment dividers: minus divides on its right, plus on its left — so the value
1493
+ // Segment dividers: minus divides on its right, plus on its left; so the value
1536
1494
  // cell is bounded on both sides. (DOM order is minus, input, [unit], plus on both
1537
1495
  // surfaces, so :first-child / :last-child land on the two buttons.)
1538
1496
  .num-btn:first-child {
@@ -1564,7 +1522,7 @@ wui-date-range {
1564
1522
  font-size: 16px;
1565
1523
  }
1566
1524
 
1567
- // Affix (unit) in the num-wrap — a trailing pill after the input.
1525
+ // Affix (unit) in the num-wrap: a trailing pill after the input.
1568
1526
  .num-wrap .affix {
1569
1527
  background: var(--color-field-bg);
1570
1528
  border: none;
@@ -1608,6 +1566,7 @@ wui-date-range {
1608
1566
  }
1609
1567
  .badge-info {
1610
1568
  @include wui-tone-pill-colors(info);
1569
+ border-color: var(--color-info-border);
1611
1570
  }
1612
1571
  .badge-dot::before {
1613
1572
  content: "";
@@ -1617,7 +1576,7 @@ wui-date-range {
1617
1576
  background: currentColor;
1618
1577
  }
1619
1578
 
1620
- // "Soft" status badge — pill, 12/600, muted tone fill.
1579
+ // "Soft" status badge: pill, 12/600, muted tone fill.
1621
1580
  .status-label {
1622
1581
  display: inline-flex;
1623
1582
  align-items: center;
@@ -1630,7 +1589,7 @@ wui-date-range {
1630
1589
  line-height: 1;
1631
1590
  white-space: nowrap;
1632
1591
  }
1633
- // Tones are SEMANTIC — success / warning / danger / info / primary / neutral —
1592
+ // Tones are SEMANTIC: success / warning / danger / info / primary / neutral,
1634
1593
  // the same vocabulary .chip, .badge and every other tone-bearing component uses.
1635
1594
  // A semantic name survives a palette change; a colour name does not (a "green"
1636
1595
  // tone is a lie the moment the brand's success colour stops being green).
@@ -1645,11 +1604,13 @@ wui-date-range {
1645
1604
  }
1646
1605
  .status-label.info {
1647
1606
  @include wui-tone-pill-colors(info);
1607
+ // An inset shadow, not a border, so an info pill keeps its size.
1608
+ box-shadow: inset 0 0 0 1px var(--color-info-border);
1648
1609
  }
1649
1610
  .status-label.primary {
1650
1611
  @include wui-tone-pill-colors(primary, var(--color-primary-text));
1651
1612
  }
1652
- // Default/neutral — also the bare `.status-label` look, so an unknown or omitted
1613
+ // Default/neutral: also the bare `.status-label` look, so an unknown or omitted
1653
1614
  // tone still renders as a proper pill instead of transparent text.
1654
1615
  .status-label,
1655
1616
  .status-label.neutral {
@@ -1662,6 +1623,9 @@ wui-date-range {
1662
1623
  .status-label.wui-bordered {
1663
1624
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
1664
1625
  }
1626
+ .status-label.info.wui-bordered {
1627
+ box-shadow: none;
1628
+ }
1665
1629
 
1666
1630
  // ── Choice chip ──
1667
1631
  // Inline selectable chip: the native input is hidden and the pill shows its state. The look reads
@@ -1772,7 +1736,7 @@ wui-date-range {
1772
1736
  color: var(--color-text-muted);
1773
1737
  }
1774
1738
 
1775
- // Form section heading — a branded accent bar rather than a full-width hairline,
1739
+ // Form section heading: a branded accent bar rather than a full-width hairline,
1776
1740
  // so a long form reads as designed sections instead of raw rules.
1777
1741
  //
1778
1742
  // Block, not flex: an inline subscript in the label (N(SG)) would otherwise be
@@ -1802,7 +1766,7 @@ wui-date-range {
1802
1766
  // ── OTP / code entry (<wui-otp>) ──
1803
1767
  //
1804
1768
  // One real input, transparent, sitting on top of the segment boxes. The input keeps focus,
1805
- // caret, selection, IME and — the reason for the whole design — OS autofill, which delivers
1769
+ // caret, selection, IME and OS autofill (the reason for the whole design), which delivers
1806
1770
  // an SMS code to the focused field whole. The boxes are presentational and aria-hidden; the
1807
1771
  // input is the single labelled field a screen reader sees.
1808
1772
  //
@@ -1873,13 +1837,13 @@ wui-otp {
1873
1837
  border-color var(--wui-duration-fast) var(--wui-ease-ui),
1874
1838
  box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
1875
1839
  }
1876
- // Hover — the whole field lifts its border to strong (AppInput hover), but not while a
1840
+ // Hover: the whole field lifts its border to strong (AppInput hover), but not while a
1877
1841
  // slot is active (focus wins) or the field is disabled.
1878
1842
  .otp:hover:not(:focus-within):not(:has(.otp-field:disabled)) .otp-slot {
1879
1843
  border-color: var(--color-field-border-hover);
1880
1844
  }
1881
1845
  // The caret cannot be seen through a transparent input, so the ACTIVE box carries the
1882
- // affordance instead — derived from selectionStart. Matches AppInput's focus: clean
1846
+ // affordance instead, derived from selectionStart. Matches AppInput's focus: clean
1883
1847
  // surface fill + soft brand border, no ring.
1884
1848
  .otp-slot.active {
1885
1849
  background: var(--color-surface);
@@ -1892,7 +1856,7 @@ wui-otp {
1892
1856
  border-color: transparent;
1893
1857
  color: var(--color-text-subtle);
1894
1858
  }
1895
- // Invalid — soft danger border on a clean surface, mirroring AppInput's .error (danger
1859
+ // Invalid: soft danger border on a clean surface, mirroring AppInput's .error (danger
1896
1860
  // at 30%, no ring), not a solid alarm box.
1897
1861
  .field-error ~ .otp .otp-slot,
1898
1862
  .otp.error .otp-slot,