@webority/theme 0.150.0 → 0.153.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 (115) hide show
  1. package/README.md +52 -17
  2. package/dist/purge-safelist.json +20 -0
  3. package/dist/webority-theme.css +1 -1
  4. package/dist/webority-tokens.css +1 -1
  5. package/index.scss +11 -13
  6. package/package.json +3 -2
  7. package/scss/_bootstrap-css.scss +40 -0
  8. package/scss/_bootstrap.generated.scss +1 -2
  9. package/scss/_components.scss +157 -55
  10. package/scss/_config.scss +16 -0
  11. package/scss/_marketing.scss +15 -15
  12. package/scss/_tokens.generated.scss +26 -1
  13. package/scss/_tokens.scss +3 -3
  14. package/scss/_variables.scss +13 -35
  15. package/scss/_wui-components.scss +91 -95
  16. package/scss/_wui-core.scss +80 -84
  17. package/scss/wui/_account-switcher.scss +2 -0
  18. package/scss/wui/_auth-layout.scss +2 -0
  19. package/scss/wui/_avatar-picker.scss +2 -0
  20. package/scss/wui/_calendar.scss +8 -6
  21. package/scss/wui/_card-options.scss +2 -0
  22. package/scss/wui/_card.scss +6 -4
  23. package/scss/wui/_carousel.scss +5 -3
  24. package/scss/wui/_cell.scss +2 -0
  25. package/scss/wui/_chart-card.scss +2 -0
  26. package/scss/wui/_chart.scss +6 -4
  27. package/scss/wui/_choice.scss +50 -43
  28. package/scss/wui/_code-block.scss +2 -0
  29. package/scss/wui/_command-palette.scss +4 -2
  30. package/scss/wui/_comment-thread.scss +4 -2
  31. package/scss/wui/_compare-table.scss +29 -0
  32. package/scss/wui/_consent-banner.scss +2 -0
  33. package/scss/wui/_context-menu.scss +2 -0
  34. package/scss/wui/_controls.scss +53 -51
  35. package/scss/wui/_data.scss +28 -16
  36. package/scss/wui/_detail-pane.scss +2 -0
  37. package/scss/wui/_dialog-motion.scss +6 -4
  38. package/scss/wui/_disclosure.scss +6 -4
  39. package/scss/wui/_display.scss +39 -23
  40. package/scss/wui/_dock.scss +8 -6
  41. package/scss/wui/_drawer.scss +4 -2
  42. package/scss/wui/_due-date.scss +2 -0
  43. package/scss/wui/_empty-state.scss +2 -0
  44. package/scss/wui/_field-busy.scss +3 -1
  45. package/scss/wui/_field-floor.scss +4 -1
  46. package/scss/wui/_field-sizes.scss +2 -0
  47. package/scss/wui/_file-tiles.scss +2 -0
  48. package/scss/wui/_file-viewer.scss +9 -5
  49. package/scss/wui/_filter-popover.scss +2 -0
  50. package/scss/wui/_floating.scss +2 -0
  51. package/scss/wui/_flow.scss +17 -13
  52. package/scss/wui/_groups.scss +2 -0
  53. package/scss/wui/_hover-card.scss +2 -0
  54. package/scss/wui/_illustration.scss +2 -0
  55. package/scss/wui/_image-crop.scss +2 -0
  56. package/scss/wui/_inline-edit.scss +4 -2
  57. package/scss/wui/_interaction.scss +3 -2
  58. package/scss/wui/_kanban.scss +18 -6
  59. package/scss/wui/_lightbox.scss +4 -2
  60. package/scss/wui/_list-card.scss +2 -0
  61. package/scss/wui/_markdown.scss +4 -1
  62. package/scss/wui/_media.scss +50 -48
  63. package/scss/wui/_mention-input.scss +2 -0
  64. package/scss/wui/_menu-motion.scss +2 -0
  65. package/scss/wui/_metric-strip.scss +2 -0
  66. package/scss/wui/_modal-remote.scss +3 -1
  67. package/scss/wui/_money.scss +2 -0
  68. package/scss/wui/_nav-list.scss +2 -0
  69. package/scss/wui/_navigation-menu.scss +3 -1
  70. package/scss/wui/_navigation.scss +70 -18
  71. package/scss/wui/_notification-center.scss +5 -3
  72. package/scss/wui/_onboarding-checklist.scss +3 -1
  73. package/scss/wui/_org-tree.scss +2 -0
  74. package/scss/wui/_overlays.scss +30 -40
  75. package/scss/wui/_page-header-bar.scss +2 -0
  76. package/scss/wui/_pagination.scss +6 -4
  77. package/scss/wui/_pending.scss +2 -0
  78. package/scss/wui/_period-picker.scss +2 -0
  79. package/scss/wui/_rating.scss +3 -1
  80. package/scss/wui/_record-pager.scss +2 -0
  81. package/scss/wui/_relative-time.scss +2 -0
  82. package/scss/wui/_resizable.scss +3 -1
  83. package/scss/wui/_rich-text.scss +13 -7
  84. package/scss/wui/_rolling-number.scss +2 -0
  85. package/scss/wui/_score-scale.scss +5 -3
  86. package/scss/wui/_scrollbar.scss +2 -0
  87. package/scss/wui/_section-lead-capture.scss +2 -0
  88. package/scss/wui/_sections.scss +5 -2
  89. package/scss/wui/_select.scss +2 -0
  90. package/scss/wui/_shell-parts.scss +55 -5
  91. package/scss/wui/_shell.scss +58 -57
  92. package/scss/wui/_shortcuts.scss +2 -0
  93. package/scss/wui/_show-more.scss +2 -0
  94. package/scss/wui/_sortable.scss +4 -2
  95. package/scss/wui/_split-view.scss +4 -2
  96. package/scss/wui/_support.scss +2 -0
  97. package/scss/wui/_table-server.scss +3 -1
  98. package/scss/wui/_theme-toggle.scss +3 -1
  99. package/scss/wui/_tone-pill.scss +2 -0
  100. package/scss/wui/_toolbar.scss +9 -7
  101. package/scss/wui/_tour.scss +9 -9
  102. package/scss/wui/_tree.scss +5 -3
  103. package/scss/wui/_truncate.scss +2 -0
  104. package/scss/wui/_typography.scss +3 -0
  105. package/scss/wui/_utilities.scss +31 -11
  106. package/scss/wui/_whats-new.scss +2 -0
  107. package/scss/wui/_workspace.scss +4 -2
  108. package/scss/wui/tour/_advance.scss +2 -0
  109. package/scss/wui/tour/_base.scss +2 -0
  110. package/scss/wui/tour/_end.scss +3 -1
  111. package/scss/wui/tour/_media.scss +2 -0
  112. package/scss/wui/tour/_motion.scss +6 -4
  113. package/scss/wui/tour/_placement.scss +2 -0
  114. package/scss/wui/tour/_progress.scss +2 -0
  115. package/token-meanings.json +2 -0
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Charts: the <wui-chart> element behind AppChart.
2
4
  //
3
5
  // Part of the wui-components layer; see _wui-components.scss for the load order. The element draws
@@ -42,8 +44,8 @@ wui-chart {
42
44
  font: inherit;
43
45
  cursor: pointer;
44
46
  transition:
45
- color 150ms var(--wui-ease-out),
46
- background-color 150ms var(--wui-ease-out);
47
+ color var(--wui-duration-fast) var(--wui-ease-out),
48
+ background-color var(--wui-duration-fast) var(--wui-ease-out);
47
49
  }
48
50
  .wui-chart-legend-item:hover {
49
51
  background: var(--color-bg-muted);
@@ -58,7 +60,7 @@ wui-chart {
58
60
  width: 10px;
59
61
  height: 10px;
60
62
  border-radius: 3px;
61
- transition: opacity 150ms var(--wui-ease-out);
63
+ transition: opacity var(--wui-duration-fast) var(--wui-ease-out);
62
64
  }
63
65
  .wui-chart-legend-swatch-line {
64
66
  width: 14px;
@@ -80,7 +82,7 @@ wui-chart {
80
82
  position: relative;
81
83
  width: 100%;
82
84
  border-radius: var(--wui-radius-sm);
83
- transition: opacity 200ms var(--wui-ease-out);
85
+ transition: opacity var(--wui-duration-default) var(--wui-ease-out);
84
86
  }
85
87
  .wui-chart-surface:focus-visible {
86
88
  outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Structure card, search select, date picker, phone input.
2
4
  //
3
5
  // Part of the wui-components layer — see _wui-components.scss for the whole
@@ -18,8 +20,8 @@
18
20
  background: var(--color-surface);
19
21
  cursor: pointer;
20
22
  transition:
21
- border-color 0.12s ease,
22
- background 0.12s ease;
23
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
24
+ background var(--wui-duration-fast) var(--wui-ease-ui);
23
25
  }
24
26
  .struct-card:hover {
25
27
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
@@ -32,6 +34,12 @@
32
34
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
33
35
  background: color-mix(in srgb, var(--color-primary) 5%, transparent);
34
36
  }
37
+ // Pressing a card that can change previews the chosen look: the same border and fill as the
38
+ // checked rule above. A disabled card (input disabled directly or by a fieldset) shows no change.
39
+ .struct-card:active:not([aria-disabled="true"], :has(.struct-card-input:disabled)) {
40
+ border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
41
+ background: color-mix(in srgb, var(--color-primary) 5%, transparent);
42
+ }
35
43
  .struct-card:has(.struct-card-input:checked) .struct-card-title {
36
44
  color: var(--color-primary-text);
37
45
  }
@@ -47,9 +55,6 @@
47
55
  .struct-card:has(.struct-card-input:checked):has(.struct-card-input:disabled):hover {
48
56
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
49
57
  }
50
- .struct-card:has(.struct-card-input:disabled):active {
51
- background-image: none !important;
52
- }
53
58
  .struct-card-input {
54
59
  position: absolute;
55
60
  opacity: 0;
@@ -66,8 +71,8 @@
66
71
  background: var(--color-bg-muted);
67
72
  color: var(--color-text-subtle);
68
73
  transition:
69
- background 0.12s,
70
- color 0.12s;
74
+ background var(--wui-duration-fast) var(--wui-ease-ui),
75
+ color var(--wui-duration-fast) var(--wui-ease-ui);
71
76
  }
72
77
  .struct-card:has(.struct-card-input:checked) .struct-card-ic {
73
78
  background: var(--color-surface);
@@ -80,14 +85,16 @@
80
85
  background: var(--color-primary);
81
86
  color: var(--color-on-primary);
82
87
  }
83
- // The linear and bold glyphs are both rendered; the input's checked state picks one.
88
+ // The linear and bold glyphs are both rendered; the chosen or hovered (enabled) card shows the bold one.
84
89
  .wui-struct-card-glyph-on {
85
90
  display: none;
86
91
  }
87
- .struct-card:has(.struct-card-input:checked) .wui-struct-card-glyph {
92
+ .struct-card:has(.struct-card-input:checked) .wui-struct-card-glyph,
93
+ .struct-card:hover:not(:has(.struct-card-input:disabled)) .wui-struct-card-glyph {
88
94
  display: none;
89
95
  }
90
- .struct-card:has(.struct-card-input:checked) .wui-struct-card-glyph-on {
96
+ .struct-card:has(.struct-card-input:checked) .wui-struct-card-glyph-on,
97
+ .struct-card:hover:not(:has(.struct-card-input:disabled)) .wui-struct-card-glyph-on {
91
98
  display: inline-flex;
92
99
  }
93
100
  // Hover previews the chosen glyph colour; a card that cannot change keeps its grey.
@@ -132,8 +139,8 @@
132
139
  opacity: 0;
133
140
  transform: scale(0.5);
134
141
  transition:
135
- opacity 0.12s ease,
136
- transform 0.12s ease;
142
+ opacity var(--wui-duration-fast) var(--wui-ease-ui),
143
+ transform var(--wui-duration-fast) var(--wui-ease-ui);
137
144
  }
138
145
  .struct-card:has(.struct-card-input:checked) .struct-card-check {
139
146
  opacity: 1;
@@ -334,10 +341,10 @@ wui-date-range:not([aria-invalid="true"]) .daterange:not(.open) .daterange-trigg
334
341
  border-radius: var(--wui-radius-xl);
335
342
  corner-shape: squircle;
336
343
  box-shadow: var(--wui-shadow-popover);
337
- animation: datepicker-in 0.14s ease;
344
+ animation: datepicker-in var(--wui-duration-fast) var(--wui-ease-ui);
338
345
  }
339
346
  .datepicker-pop.drop-up {
340
- animation: datepicker-in-up 0.14s ease;
347
+ animation: datepicker-in-up var(--wui-duration-fast) var(--wui-ease-ui);
341
348
  }
342
349
  @keyframes datepicker-in {
343
350
  from {
@@ -379,8 +386,8 @@ wui-date-range:not([aria-invalid="true"]) .daterange:not(.open) .daterange-trigg
379
386
  letter-spacing: -0.01em;
380
387
  cursor: pointer;
381
388
  transition:
382
- background 0.14s,
383
- color 0.14s;
389
+ background var(--wui-duration-fast) var(--wui-ease-ui),
390
+ color var(--wui-duration-fast) var(--wui-ease-ui);
384
391
  }
385
392
  button.datepicker-month:hover {
386
393
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -402,9 +409,9 @@ button.datepicker-month:hover {
402
409
  color: var(--color-text-muted);
403
410
  cursor: pointer;
404
411
  transition:
405
- background 0.12s,
406
- color 0.12s,
407
- border-color 0.12s;
412
+ background var(--wui-duration-fast) var(--wui-ease-ui),
413
+ color var(--wui-duration-fast) var(--wui-ease-ui),
414
+ border-color var(--wui-duration-fast) var(--wui-ease-ui);
408
415
  }
409
416
  .datepicker-nav-btn:hover {
410
417
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -455,9 +462,9 @@ button.datepicker-month:hover {
455
462
  color: var(--color-text);
456
463
  cursor: pointer;
457
464
  transition:
458
- background 0.12s,
459
- color 0.12s,
460
- box-shadow 0.12s;
465
+ background var(--wui-duration-fast) var(--wui-ease-ui),
466
+ color var(--wui-duration-fast) var(--wui-ease-ui),
467
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
461
468
  }
462
469
  .datepicker-day:hover:not(:disabled):not(.is-selected) {
463
470
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -505,7 +512,7 @@ button.datepicker-month:hover {
505
512
  font-weight: 600;
506
513
  color: var(--color-primary-text);
507
514
  cursor: pointer;
508
- transition: background 0.12s;
515
+ transition: background var(--wui-duration-fast) var(--wui-ease-ui);
509
516
  }
510
517
  .datepicker-link:hover:not(:disabled) {
511
518
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -520,7 +527,7 @@ button.datepicker-month:hover {
520
527
  display: grid;
521
528
  grid-template-columns: repeat(3, 1fr);
522
529
  gap: 6px;
523
- animation: datepicker-view-in 0.18s ease;
530
+ animation: datepicker-view-in var(--wui-duration-default) var(--wui-ease-ui);
524
531
  }
525
532
  .datepicker-cell {
526
533
  display: inline-flex;
@@ -535,9 +542,9 @@ button.datepicker-month:hover {
535
542
  color: var(--color-text);
536
543
  cursor: pointer;
537
544
  transition:
538
- background 0.12s,
539
- color 0.12s,
540
- box-shadow 0.12s;
545
+ background var(--wui-duration-fast) var(--wui-ease-ui),
546
+ color var(--wui-duration-fast) var(--wui-ease-ui),
547
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
541
548
  }
542
549
  .datepicker-cell:hover:not(:disabled):not(.is-selected) {
543
550
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -580,10 +587,10 @@ button.datepicker-month:hover {
580
587
  }
581
588
  }
582
589
  .datepicker-grid.slide-next {
583
- animation: datepicker-slide-next 0.2s ease;
590
+ animation: datepicker-slide-next var(--wui-duration-default) var(--wui-ease-ui);
584
591
  }
585
592
  .datepicker-grid.slide-prev {
586
- animation: datepicker-slide-prev 0.2s ease;
593
+ animation: datepicker-slide-prev var(--wui-duration-default) var(--wui-ease-ui);
587
594
  }
588
595
  @keyframes datepicker-slide-next {
589
596
  from {
@@ -663,10 +670,10 @@ button.datepicker-month:hover {
663
670
  border-radius: var(--wui-radius-xl);
664
671
  corner-shape: squircle;
665
672
  box-shadow: var(--wui-shadow-popover);
666
- animation: datepicker-in 0.14s ease;
673
+ animation: datepicker-in var(--wui-duration-fast) var(--wui-ease-ui);
667
674
  }
668
675
  .daterange-pop.drop-up {
669
- animation: datepicker-in-up 0.14s ease;
676
+ animation: datepicker-in-up var(--wui-duration-fast) var(--wui-ease-ui);
670
677
  }
671
678
  // The two nav buttons bracket the calendars — one at each edge of the header row.
672
679
  .daterange-head {
@@ -739,7 +746,7 @@ button.datepicker-month:hover {
739
746
  white-space: nowrap;
740
747
  color: var(--color-text);
741
748
  cursor: pointer;
742
- transition: background 0.12s;
749
+ transition: background var(--wui-duration-fast) var(--wui-ease-ui);
743
750
  }
744
751
  .wui-daterange-preset:hover:not(:disabled) {
745
752
  background: var(--color-primary-soft, color-mix(in srgb, var(--color-primary) 8%, transparent));
@@ -814,8 +821,8 @@ button.datepicker-month:hover {
814
821
  // dropdown is position:fixed, so it is unaffected by this.
815
822
  overflow: hidden;
816
823
  transition:
817
- border-color 0.12s,
818
- background-color 0.12s;
824
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
825
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
819
826
  }
820
827
  // Not while invalid — an errored control holds its white fill and red border on hover. Two
821
828
  // sources mark it invalid: the `error` prop sets aria-invalid on the host, and the element's own
@@ -954,7 +961,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
954
961
  // Flag glyphs come from the generated .wui-flag-* classes (_flags.scss).
955
962
  .app-phone-number-input .phone-chevron {
956
963
  color: var(--color-text-muted);
957
- transition: transform 0.2s ease;
964
+ transition: transform var(--wui-duration-default) var(--wui-ease-ui);
958
965
  }
959
966
  // Keyed off the element's own ARIA state — <wui-phone> toggles aria-expanded,
960
967
  // it never adds react-bootstrap's `.show`.
@@ -1037,7 +1044,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1037
1044
  display: flex;
1038
1045
  color: var(--color-text-subtle);
1039
1046
  pointer-events: none;
1040
- transition: color 0.12s ease;
1047
+ transition: color var(--wui-duration-fast) var(--wui-ease-ui);
1041
1048
  }
1042
1049
  .dropdown-search-wrapper:focus-within .dropdown-search-icon {
1043
1050
  color: var(--color-primary-text);
@@ -1101,8 +1108,8 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1101
1108
  background: transparent !important;
1102
1109
  border: 0 !important;
1103
1110
  transition:
1104
- background 0.12s ease,
1105
- color 0.12s ease;
1111
+ background var(--wui-duration-fast) var(--wui-ease-ui),
1112
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1106
1113
  }
1107
1114
  // The search hides non-matches with the `hidden` attribute. `display: flex !important` above
1108
1115
  // beats the UA `[hidden] { display: none }`, so filtered-out countries stayed visible — the
@@ -1193,7 +1200,7 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1193
1200
  background: transparent;
1194
1201
  color: var(--color-text-subtle);
1195
1202
  cursor: pointer;
1196
- transition: color 0.12s ease;
1203
+ transition: color var(--wui-duration-fast) var(--wui-ease-ui);
1197
1204
  }
1198
1205
  .timepicker-trigger.input-sm + .wui-timepicker-toggle {
1199
1206
  width: 36px;
@@ -1248,10 +1255,10 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1248
1255
  border-radius: var(--wui-radius-lg);
1249
1256
  corner-shape: squircle;
1250
1257
  box-shadow: var(--wui-shadow-popover);
1251
- animation: timepicker-in 0.14s ease;
1258
+ animation: timepicker-in var(--wui-duration-fast) var(--wui-ease-ui);
1252
1259
  }
1253
1260
  .timepicker-pop.drop-up {
1254
- animation: timepicker-in-up 0.14s ease;
1261
+ animation: timepicker-in-up var(--wui-duration-fast) var(--wui-ease-ui);
1255
1262
  }
1256
1263
  @keyframes timepicker-in {
1257
1264
  from {
@@ -1308,8 +1315,8 @@ wui-timepicker[aria-invalid="true"] .timepicker.open .timepicker-trigger {
1308
1315
  cursor: pointer;
1309
1316
  border-radius: var(--wui-radius-sm);
1310
1317
  transition:
1311
- background 0.1s,
1312
- color 0.1s;
1318
+ background var(--wui-duration-fast) var(--wui-ease-ui),
1319
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1313
1320
  }
1314
1321
  // Touch screens get full 44px rows.
1315
1322
  @media (pointer: coarse) {
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Code block ──
2
4
  // AppCodeBlock / <app-code-block> (a <wui-code-block> element): source with syntax colours, a header
3
5
  // with a Copy button, optional line numbers and wrapping. The element hides the plain
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Command palette ──
2
4
  // AppCommandPalette / <app-command-palette> / <wui-command-palette>: app-wide "search and jump".
3
5
  // The overlay is the shared modal (.wui-modal-shell, .wui-modal), with .wui-cmd-card on the
@@ -315,8 +317,8 @@ wui-command-palette[data-keyboard] .wui-cmd-item[aria-selected="true"] {
315
317
  @media (prefers-reduced-motion: no-preference) {
316
318
  .wui-cmd-item {
317
319
  transition:
318
- background-color 0.12s ease,
319
- color 0.12s ease;
320
+ background-color var(--wui-duration-fast) var(--wui-ease-ui),
321
+ color var(--wui-duration-fast) var(--wui-ease-ui);
320
322
  }
321
323
  }
322
324
 
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Comment thread ──
2
4
  // AppCommentThread / <app-comment-thread> / <wui-comment-thread>: comments with an avatar, the
3
5
  // author and time, the body with mentions, reactions and the Reply, Edit and Delete actions;
@@ -118,8 +120,8 @@
118
120
  font-size: 13px;
119
121
  line-height: 1;
120
122
  transition:
121
- background-color 160ms var(--wui-ease-ui),
122
- border-color 160ms var(--wui-ease-ui);
123
+ background-color var(--wui-duration-fast) var(--wui-ease-ui),
124
+ border-color var(--wui-duration-fast) var(--wui-ease-ui);
123
125
  }
124
126
  button.wui-reaction,
125
127
  .wui-reaction-add {
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // Feature-comparison table.
2
4
  //
3
5
  // Part of the wui-components layer; imported right after _display.scss. Order within the layer is load-bearing (see _wui-components.scss).
@@ -62,6 +64,27 @@
62
64
  font-weight: var(--wui-fw-semibold);
63
65
  }
64
66
 
67
+ // Plain variant: a figure table drawn as ruled rows only, with no frame, no shaded cells and body-size text.
68
+ .compare-table.wui-compare-plain {
69
+ border: 0;
70
+ border-radius: 0;
71
+ background: transparent;
72
+ }
73
+ .compare-table.wui-compare-plain th:not(.is-highlight),
74
+ .compare-table.wui-compare-plain .wui-compare-group {
75
+ background: transparent;
76
+ }
77
+ .compare-table.wui-compare-plain td,
78
+ .compare-table.wui-compare-plain th[scope="row"] {
79
+ font-size: var(--wui-fs-base);
80
+ }
81
+ .compare-table.wui-compare-plain tbody tr:last-child > * {
82
+ border-bottom: none;
83
+ }
84
+ .compare-table.wui-compare-plain.wui-compare-sticky-head thead th:not(.is-highlight) {
85
+ background: var(--color-surface);
86
+ }
87
+
65
88
  // Relaxed density: a 16px body and 32px side padding, for marketing tables that read as prose.
66
89
  .compare-table.wui-compare-relaxed th,
67
90
  .compare-table.wui-compare-relaxed td {
@@ -143,6 +166,12 @@
143
166
  border: 0;
144
167
  background: none;
145
168
  }
169
+ .compare-table.wui-compare-plain[data-mobile="stack"] tbody > tr:not(.wui-compare-group-row) {
170
+ padding-inline: 0;
171
+ border: 0;
172
+ border-bottom: 1px solid var(--color-border);
173
+ border-radius: 0;
174
+ }
146
175
  .compare-table[data-mobile="stack"] th,
147
176
  .compare-table[data-mobile="stack"] td {
148
177
  display: block;
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Cookie consent banner ──
2
4
  // AppConsentBanner / <app-consent-banner> / <wui-consent-banner>: a card pinned to a bottom
3
5
  // corner, or a slim full-width bar along the bottom edge (position "bar", and every phone) asking
@@ -1,3 +1,5 @@
1
+ @use "../config" as *;
2
+
1
3
  // ── Context menu ──
2
4
  // AppContextMenu / <app-context-menu> / <wui-context-menu>: a right-click menu over a region.
3
5
  // The panel is a Bootstrap .dropdown-menu with .dropdown-item rows, so the look, the danger tone
@@ -1,3 +1,6 @@
1
+ @use "../config" as *;
2
+ @use "tone-pill" as *;
3
+
1
4
  // Prefer .wui-* for new chrome; legacy bare names here are frozen until a BREAKING rename.
2
5
  // Checkbox & radio, field/input, status badge, choice chip.
3
6
  //
@@ -130,8 +133,8 @@
130
133
  border-radius: var(--wui-radius-md);
131
134
  background: var(--color-surface);
132
135
  transition:
133
- border-color 0.12s ease,
134
- background-color 0.12s ease;
136
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
137
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
135
138
  }
136
139
  .wui-radio-group-card.wui-radio-group-inline > .form-check {
137
140
  flex: 1 1 200px;
@@ -206,10 +209,10 @@
206
209
  background-size: 15px 15px;
207
210
  cursor: pointer;
208
211
  transition:
209
- border-color 0.15s ease,
210
- background-color 0.15s ease,
211
- box-shadow 0.15s ease,
212
- background-position 0.15s ease;
212
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
213
+ background-color var(--wui-duration-fast) var(--wui-ease-ui),
214
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui),
215
+ background-position var(--wui-duration-fast) var(--wui-ease-ui);
213
216
  }
214
217
  // Bootstrap floats the input into the label's left padding via
215
218
  // `.form-check .form-check-input` (0,2,0). Undo at matching specificity.
@@ -458,8 +461,8 @@
458
461
  line-height: 1.5;
459
462
  color: var(--color-text);
460
463
  transition:
461
- border-color 0.12s,
462
- box-shadow 0.12s;
464
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
465
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
463
466
  font-family: inherit;
464
467
  }
465
468
  // Size steps: sm/lg step to the 32px and 44px rungs. App* emits
@@ -567,7 +570,7 @@ textarea.form-control.autosize {
567
570
  box-shadow: 0 0 0 1000px var(--color-field-bg) inset;
568
571
  -webkit-text-fill-color: var(--color-text);
569
572
  caret-color: var(--color-text);
570
- transition: background-color 9999s ease-out 0s;
573
+ transition: background-color calc(var(--wui-duration-slow) * 25000) var(--wui-ease-out) 0s;
571
574
  }
572
575
  // Focus lifts the autofilled field onto the clean surface, matching the typed-value focus state.
573
576
  .form-control:-webkit-autofill:focus,
@@ -577,7 +580,7 @@ textarea.form-control.autosize {
577
580
  box-shadow: 0 0 0 1000px var(--color-surface) inset;
578
581
  -webkit-text-fill-color: var(--color-text);
579
582
  caret-color: var(--color-text);
580
- transition: background-color 9999s ease-out 0s;
583
+ transition: background-color calc(var(--wui-duration-slow) * 25000) var(--wui-ease-out) 0s;
581
584
  }
582
585
  .form-control:disabled,
583
586
  .form-select:disabled,
@@ -699,12 +702,12 @@ form .wui-field-message:empty {
699
702
  margin-top: 0;
700
703
  line-height: inherit;
701
704
  transition:
702
- opacity 150ms ease,
703
- transform 150ms ease,
705
+ opacity var(--wui-duration-fast) var(--wui-ease-ui),
706
+ transform var(--wui-duration-fast) var(--wui-ease-ui),
704
707
  visibility 0s;
705
708
  }
706
709
  .wui-field-message > .field-error:not(:empty) {
707
- animation: wui-field-message-in 150ms ease both;
710
+ animation: wui-field-message-in var(--wui-duration-fast) var(--wui-ease-ui) both;
708
711
  }
709
712
  // A cleared error fades out with its text still in place (React keeps it for the fade).
710
713
  .wui-field-message > .field-error.wui-leaving {
@@ -715,8 +718,8 @@ form .wui-field-message:empty {
715
718
  opacity: 0;
716
719
  visibility: hidden;
717
720
  transition:
718
- opacity 150ms ease,
719
- visibility 0s linear 150ms;
721
+ opacity var(--wui-duration-fast) var(--wui-ease-ui),
722
+ visibility 0s var(--wui-ease-linear) var(--wui-duration-fast);
720
723
  }
721
724
  @keyframes wui-field-message-in {
722
725
  from {
@@ -831,9 +834,6 @@ form .wui-field-message:empty {
831
834
  pointer-events: none;
832
835
  }
833
836
 
834
- // The trailing error glyph, shared by every field that shows one (the phone shell draws it too).
835
- $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8285A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
836
-
837
837
  // Trailing error glyph on a PLAIN field only (child combinator). Shell-wrapped
838
838
  // inputs sit one level deeper and keep their own right edge.
839
839
  // Note: background-image here re-applies after the shared invalid rule zeroed BS's SVG.
@@ -990,8 +990,8 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
990
990
  border-radius: var(--wui-radius-md);
991
991
  cursor: pointer;
992
992
  transition:
993
- color 0.12s ease,
994
- background 0.12s ease;
993
+ color var(--wui-duration-fast) var(--wui-ease-ui),
994
+ background var(--wui-duration-fast) var(--wui-ease-ui);
995
995
  }
996
996
  .pw-toggle:hover {
997
997
  color: var(--color-primary-text);
@@ -1032,9 +1032,9 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1032
1032
  color: var(--color-text-subtle);
1033
1033
  cursor: pointer;
1034
1034
  transition:
1035
- color 0.12s ease,
1036
- background 0.12s ease;
1037
- animation: wui-clear-in 0.12s var(--wui-ease-ui);
1035
+ color var(--wui-duration-fast) var(--wui-ease-ui),
1036
+ background var(--wui-duration-fast) var(--wui-ease-ui);
1037
+ animation: wui-clear-in var(--wui-duration-fast) var(--wui-ease-ui);
1038
1038
  }
1039
1039
  .input-clear:hover {
1040
1040
  color: var(--color-text);
@@ -1064,8 +1064,8 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1064
1064
  // Clip the square inner input to the wrapper's rounded corners on hover and focus.
1065
1065
  overflow: clip;
1066
1066
  transition:
1067
- border-color 0.12s ease,
1068
- background-color 0.12s ease;
1067
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1068
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
1069
1069
  }
1070
1070
  .input-affixed:hover:not(:focus-within) {
1071
1071
  border-color: var(--color-field-border-hover);
@@ -1148,10 +1148,10 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1148
1148
  background: var(--color-field-bg);
1149
1149
  pointer-events: none;
1150
1150
  transition:
1151
- top 0.15s var(--wui-ease-ui),
1152
- transform 0.15s var(--wui-ease-ui),
1153
- color 0.15s var(--wui-ease-ui),
1154
- background-color 0.12s;
1151
+ top var(--wui-duration-fast) var(--wui-ease-ui),
1152
+ transform var(--wui-duration-fast) var(--wui-ease-ui),
1153
+ color var(--wui-duration-fast) var(--wui-ease-ui),
1154
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
1155
1155
  }
1156
1156
  .field-float .input:focus ~ .float-label,
1157
1157
  .field-float .input:not(:placeholder-shown) ~ .float-label {
@@ -1184,11 +1184,11 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1184
1184
  top: calc(50% + var(--wui-float-above-space) / 2);
1185
1185
  background: transparent;
1186
1186
  transition:
1187
- top 0.15s var(--wui-ease-ui),
1188
- left 0.15s var(--wui-ease-ui),
1189
- padding 0.15s var(--wui-ease-ui),
1190
- transform 0.15s var(--wui-ease-ui),
1191
- color 0.15s var(--wui-ease-ui);
1187
+ top var(--wui-duration-fast) var(--wui-ease-ui),
1188
+ left var(--wui-duration-fast) var(--wui-ease-ui),
1189
+ padding var(--wui-duration-fast) var(--wui-ease-ui),
1190
+ transform var(--wui-duration-fast) var(--wui-ease-ui),
1191
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1192
1192
  }
1193
1193
  .field-float.wui-float-above .input:focus ~ .float-label,
1194
1194
  .field-float.wui-float-above .input:not(:placeholder-shown) ~ .float-label {
@@ -1231,11 +1231,12 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1231
1231
  .field-count.at-limit {
1232
1232
  color: var(--color-danger-text);
1233
1233
  }
1234
+ // A product sets the field label type with --wui-field-label-fs and --wui-field-label-fw on any ancestor.
1234
1235
  .label {
1235
1236
  display: block;
1236
- font-size: var(--wui-label-fs);
1237
+ font-size: var(--wui-field-label-fs, var(--wui-label-fs));
1237
1238
  line-height: normal;
1238
- font-weight: 500;
1239
+ font-weight: var(--wui-field-label-fw, 500);
1239
1240
  color: var(--color-text);
1240
1241
  margin-bottom: 6px;
1241
1242
  }
@@ -1278,9 +1279,10 @@ $wui-field-error-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/
1278
1279
  align-self: stretch;
1279
1280
  width: 100%;
1280
1281
  }
1282
+ // --wui-field-label-gap (default 10px) sets the label to box distance; the gap below the box is unchanged.
1281
1283
  .field > .label,
1282
1284
  .field label {
1283
- margin-bottom: 0;
1285
+ margin-bottom: calc(var(--wui-field-label-gap, 10px) - 10px);
1284
1286
  }
1285
1287
  .field-row {
1286
1288
  display: grid;
@@ -1368,8 +1370,8 @@ wui-date-range {
1368
1370
  // one wrapper fill, same colour combination as every other field.
1369
1371
  background: var(--color-field-bg);
1370
1372
  transition:
1371
- border-color 0.12s,
1372
- background-color 0.12s;
1373
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1374
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
1373
1375
  overflow: hidden;
1374
1376
  }
1375
1377
  .input-with-unit:hover:not(:focus-within) {
@@ -1438,8 +1440,8 @@ wui-date-range {
1438
1440
  // Match AppInput exactly: muted resting fill that lifts to a clean surface on focus.
1439
1441
  background: var(--color-field-bg);
1440
1442
  transition:
1441
- border-color 0.12s,
1442
- background-color 0.12s;
1443
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1444
+ background-color var(--wui-duration-fast) var(--wui-ease-ui);
1443
1445
  overflow: hidden;
1444
1446
  }
1445
1447
  // Not while invalid — an errored control holds its red border/fill on hover rather than
@@ -1505,8 +1507,8 @@ wui-date-range {
1505
1507
  color: var(--color-text-muted);
1506
1508
  cursor: pointer;
1507
1509
  transition:
1508
- color 0.12s ease,
1509
- background 0.12s ease;
1510
+ color var(--wui-duration-fast) var(--wui-ease-ui),
1511
+ background var(--wui-duration-fast) var(--wui-ease-ui);
1510
1512
  }
1511
1513
  .num-btn:hover:not(:disabled) {
1512
1514
  color: var(--color-primary-text);
@@ -1675,9 +1677,9 @@ wui-date-range {
1675
1677
  cursor: pointer;
1676
1678
  user-select: none;
1677
1679
  transition:
1678
- border-color 0.12s ease,
1679
- background 0.12s ease,
1680
- color 0.12s ease;
1680
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1681
+ background var(--wui-duration-fast) var(--wui-ease-ui),
1682
+ color var(--wui-duration-fast) var(--wui-ease-ui);
1681
1683
  }
1682
1684
  .choice-chip:hover:not(:has(input:disabled)) {
1683
1685
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
@@ -1863,8 +1865,8 @@ wui-otp {
1863
1865
  font-variant-numeric: tabular-nums;
1864
1866
  color: var(--color-text);
1865
1867
  transition:
1866
- border-color 0.12s,
1867
- box-shadow 0.12s;
1868
+ border-color var(--wui-duration-fast) var(--wui-ease-ui),
1869
+ box-shadow var(--wui-duration-fast) var(--wui-ease-ui);
1868
1870
  }
1869
1871
  // Hover — the whole field lifts its border to strong (AppInput hover), but not while a
1870
1872
  // slot is active (focus wins) or the field is disabled.
@@ -1979,9 +1981,9 @@ wui-otp[aria-invalid="true"] .otp-slot {
1979
1981
  // and the thumb stops a short way from where the finger started.
1980
1982
  touch-action: none;
1981
1983
  transition:
1982
- transform 0.18s var(--wui-ease-ui),
1983
- box-shadow 0.18s var(--wui-ease-ui),
1984
- border-color 0.15s ease;
1984
+ transform var(--wui-duration-default) var(--wui-ease-ui),
1985
+ box-shadow var(--wui-duration-default) var(--wui-ease-ui),
1986
+ border-color var(--wui-duration-fast) var(--wui-ease-ui);
1985
1987
  }
1986
1988
  .slider-thumb:hover:not(:disabled) {
1987
1989
  transform: scale(1.08);