@webority/theme 0.179.0 → 0.180.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 (50) hide show
  1. package/dist/published-theme.json +4 -0
  2. package/dist/purge-safelist.json +162 -18
  3. package/dist/webority-modes.css +1 -1
  4. package/dist/webority-theme.css +1 -1
  5. package/dist/webority-tokens.css +1 -1
  6. package/package.json +3 -3
  7. package/scss/_bootstrap.generated.scss +1 -1
  8. package/scss/_components.scss +26 -13
  9. package/scss/_tokens-modes.generated.scss +2 -1
  10. package/scss/_tokens.generated.scss +23 -17
  11. package/scss/_wui-components.scss +10 -0
  12. package/scss/_wui-core.scss +10 -0
  13. package/scss/wui/_app-agenda.scss +75 -0
  14. package/scss/wui/_calendar-views.scss +46 -0
  15. package/scss/wui/_calendar.scss +31 -0
  16. package/scss/wui/_card.scss +1 -0
  17. package/scss/wui/_cell.scss +1 -0
  18. package/scss/wui/_change-list.scss +37 -0
  19. package/scss/wui/_chart-card.scss +49 -0
  20. package/scss/wui/_choice.scss +2 -1
  21. package/scss/wui/_command-palette.scss +68 -0
  22. package/scss/wui/_controls.scss +157 -13
  23. package/scss/wui/_dashboard-header.scss +42 -0
  24. package/scss/wui/_data.scss +86 -6
  25. package/scss/wui/_display.scss +52 -2
  26. package/scss/wui/_drawer.scss +1 -0
  27. package/scss/wui/_entry-grid.scss +9 -0
  28. package/scss/wui/_file-viewer.scss +4 -0
  29. package/scss/wui/_flow.scss +119 -3
  30. package/scss/wui/_gantt.scss +89 -0
  31. package/scss/wui/_interaction.scss +0 -3
  32. package/scss/wui/_kanban.scss +52 -0
  33. package/scss/wui/_list-card.scss +11 -0
  34. package/scss/wui/_media.scss +0 -1
  35. package/scss/wui/_mini-calendar.scss +120 -0
  36. package/scss/wui/_navigation-menu.scss +1 -0
  37. package/scss/wui/_navigation.scss +10 -0
  38. package/scss/wui/_notification-center.scss +51 -0
  39. package/scss/wui/_offline-banner.scss +52 -0
  40. package/scss/wui/_overlays.scss +1 -1
  41. package/scss/wui/_queue-bundle.scss +71 -0
  42. package/scss/wui/_result-block.scss +117 -0
  43. package/scss/wui/_setting-row.scss +106 -0
  44. package/scss/wui/_setting-section.scss +36 -0
  45. package/scss/wui/_shell-parts.scss +3 -164
  46. package/scss/wui/_shell.scss +12 -2
  47. package/scss/wui/_split-view.scss +6 -2
  48. package/scss/wui/_utilities.scss +43 -5
  49. package/scss/wui/forced-colors/_navigation.scss +1 -3
  50. package/token-meanings.json +1 -0
@@ -27,10 +27,13 @@
27
27
  @use "wui/card";
28
28
  @use "wui/card-options";
29
29
  @use "wui/empty-state";
30
+ @use "wui/result-block";
30
31
  @use "wui/data";
31
32
  @use "wui/pagination";
32
33
  @use "wui/illustration";
33
34
  @use "wui/table-server";
35
+ @use "wui/setting-row";
36
+ @use "wui/setting-section";
34
37
  @use "wui/inline-edit";
35
38
  @use "wui/mention-input";
36
39
  @use "wui/comment-thread";
@@ -41,7 +44,9 @@
41
44
  @use "wui/utilities";
42
45
  @use "wui/typography";
43
46
  @use "wui/disclosure";
47
+ @use "wui/queue-bundle";
44
48
  @use "wui/display";
49
+ @use "wui/change-list";
45
50
  @use "wui/compare-table";
46
51
  @use "wui/flow";
47
52
  // After `flow`: the pricing section extends its `.plan-grid` rules.
@@ -49,6 +54,9 @@
49
54
  @use "wui/section-lead-capture";
50
55
  @use "wui/chart";
51
56
  @use "wui/chart-card";
57
+ @use "wui/calendar-views";
58
+ @use "wui/mini-calendar";
59
+ @use "wui/app-agenda";
52
60
  @use "wui/markdown";
53
61
  @use "wui/scrollbar";
54
62
  @use "wui/sortable";
@@ -71,6 +79,7 @@
71
79
  @use "wui/show-more";
72
80
  @use "wui/truncate";
73
81
  @use "wui/page-header-bar";
82
+ @use "wui/dashboard-header";
74
83
  @use "wui/filter-popover";
75
84
  @use "wui/query-builder";
76
85
  @use "wui/metric-strip";
@@ -85,6 +94,7 @@
85
94
  @use "wui/shell-parts";
86
95
  @use "wui/account-switcher";
87
96
  @use "wui/consent-banner";
97
+ @use "wui/offline-banner";
88
98
  @use "wui/lightbox";
89
99
  @use "wui/toolbar";
90
100
  @use "wui/theme-toggle";
@@ -0,0 +1,75 @@
1
+ // Agenda: events grouped under day headings.
2
+ .wui-agenda {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--wui-space-md);
6
+ }
7
+
8
+ .wui-agenda-day {
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: var(--wui-space-xs);
12
+ }
13
+
14
+ .wui-agenda-day-head {
15
+ display: flex;
16
+ align-items: center;
17
+ gap: var(--wui-space-sm);
18
+ }
19
+
20
+ .wui-agenda-day-title {
21
+ margin: 0;
22
+ font-size: var(--wui-fs-base);
23
+ font-weight: var(--wui-fw-semibold);
24
+ }
25
+
26
+ .wui-agenda-day-count {
27
+ color: var(--color-muted);
28
+ font-size: var(--wui-fs-sm);
29
+ }
30
+
31
+ .wui-agenda-items {
32
+ list-style: none;
33
+ margin: 0;
34
+ padding: 0;
35
+ display: flex;
36
+ flex-direction: column;
37
+ }
38
+
39
+ .wui-agenda-item {
40
+ display: flex;
41
+ align-items: center;
42
+ gap: var(--wui-space-sm);
43
+ padding-block: var(--wui-space-xs);
44
+ }
45
+
46
+ .wui-agenda-body {
47
+ flex: 1 1 auto;
48
+ min-width: 0;
49
+ }
50
+
51
+ .wui-agenda-title {
52
+ font-weight: var(--wui-fw-medium);
53
+ }
54
+
55
+ .wui-agenda-sub {
56
+ color: var(--color-muted);
57
+ font-size: var(--wui-fs-sm);
58
+ }
59
+
60
+ .wui-agenda-badge {
61
+ flex: 0 0 auto;
62
+ font-size: var(--wui-fs-sm);
63
+ }
64
+
65
+ .wui-agenda-day-flag {
66
+ margin: 0;
67
+ }
68
+
69
+ .wui-agenda-more > summary {
70
+ cursor: pointer;
71
+ }
72
+
73
+ .wui-agenda-more[open] > summary {
74
+ margin-block-end: var(--wui-space-xs);
75
+ }
@@ -0,0 +1,46 @@
1
+ @use "../config" as *;
2
+
3
+ // The header every calendar shares: <AppCalendarViews> and <app-calendar-views>. The body beneath
4
+ // it is the page's own content, so this partial styles only the header and the layout around it.
5
+ // wui-cal-views, not wui-calendar-views: AppCalendar's on-demand partial owns every wui-calendar-* class (check-theme-split).
6
+ .wui-cal-views {
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: var(--wui-space-md);
10
+ }
11
+
12
+ .wui-cal-views-header {
13
+ display: flex;
14
+ flex-wrap: wrap;
15
+ align-items: center;
16
+ gap: var(--wui-space-md);
17
+ }
18
+
19
+ .wui-cal-views-nav {
20
+ display: flex;
21
+ align-items: center;
22
+ gap: var(--wui-space-sm);
23
+ }
24
+
25
+ .wui-cal-views-period {
26
+ margin: 0;
27
+ font-weight: var(--wui-fw-semibold);
28
+ }
29
+
30
+ .wui-cal-views-switch {
31
+ display: inline-flex;
32
+ flex-wrap: wrap;
33
+ gap: var(--wui-space-xs);
34
+ }
35
+
36
+ .wui-cal-views-option {
37
+ display: inline-flex;
38
+ }
39
+
40
+ .wui-cal-views-legend,
41
+ .wui-cal-views-actions {
42
+ display: flex;
43
+ align-items: center;
44
+ gap: var(--wui-space-sm);
45
+ margin-inline-start: auto;
46
+ }
@@ -316,3 +316,34 @@ wui-calendar[data-view="month"] .wui-calendar-chip-title {
316
316
  :is(.wui-calendar-nav-btn, .wui-calendar-today-btn, .wui-calendar-view-btn):active:not(:disabled, [aria-disabled="true"]) {
317
317
  background-image: linear-gradient(var(--wui-pressed-overlay), var(--wui-pressed-overlay)) !important;
318
318
  }
319
+
320
+ // The "+n more" link is a button-sized target; the day cell's marker and the selected day are drawn
321
+ // on the cell itself, only where a page sets them.
322
+ wui-calendar .wui-calendar-day {
323
+ position: relative;
324
+ }
325
+
326
+ wui-calendar .wui-calendar-more {
327
+ min-block-size: 1.5rem;
328
+ display: inline-flex;
329
+ align-items: center;
330
+ }
331
+
332
+ wui-calendar .wui-calendar-day.is-selected {
333
+ box-shadow: inset 0 0 0 2px var(--color-primary);
334
+ }
335
+
336
+ wui-calendar .wui-calendar-marker {
337
+ position: absolute;
338
+ inset-block-end: 2px;
339
+ inset-inline-start: 50%;
340
+ translate: -50% 0;
341
+ inline-size: 6px;
342
+ block-size: 6px;
343
+ border-radius: var(--wui-radius-pill);
344
+ background: var(--color-text-body);
345
+ }
346
+
347
+ wui-calendar .wui-calendar-marker-warning {
348
+ background: var(--color-warning);
349
+ }
@@ -16,6 +16,7 @@
16
16
  // they set `padding` directly on the header/body/footer.
17
17
  .card {
18
18
  --wui-card-pad: 20px;
19
+ --wui-card-title-fs: 16px;
19
20
  --bs-card-spacer-y: var(--wui-card-pad);
20
21
  --bs-card-spacer-x: var(--wui-card-pad);
21
22
  --bs-card-cap-padding-y: var(--wui-card-pad);
@@ -48,6 +48,7 @@ a.wui-cell-primary {
48
48
  color: var(--color-text-muted);
49
49
  }
50
50
 
51
+
51
52
  .wui-cell-numeric {
52
53
  text-align: end;
53
54
  font-variant-numeric: tabular-nums;
@@ -0,0 +1,37 @@
1
+ // The changes a person is about to save, each with the value it was and the value it becomes.
2
+ .wui-change-list {
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: var(--wui-space-sm);
6
+ margin: 0;
7
+ padding: 0;
8
+ list-style: none;
9
+ }
10
+ .wui-change-item {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: var(--wui-space-xxs);
14
+ min-width: 0;
15
+ }
16
+ .wui-change-label {
17
+ font-size: var(--wui-fs-sm);
18
+ font-weight: var(--wui-fw-semibold);
19
+ color: var(--color-text);
20
+ }
21
+ .wui-change-was,
22
+ .wui-change-now {
23
+ font-size: var(--wui-fs-sm);
24
+ color: var(--color-text-subtle);
25
+ word-break: break-word;
26
+ }
27
+ .wui-change-now {
28
+ color: var(--color-text);
29
+ }
30
+ .wui-change-tag {
31
+ font-weight: var(--wui-fw-semibold);
32
+ margin-inline-end: var(--wui-space-xxs);
33
+ }
34
+ .wui-change-note {
35
+ font-size: var(--wui-fs-xs);
36
+ color: var(--color-text-subtle);
37
+ }
@@ -125,3 +125,52 @@ wui-chart:not(:defined) .wui-chart-table-wrap {
125
125
  grid-column: span 12;
126
126
  }
127
127
  }
128
+
129
+ // ── Dashboard grid edit mode ────────────────────────────────────────────────
130
+ // <wui-dashboard-grid editable>: the toolbar and the live line are its first two children. The toolbar
131
+ // takes the whole row; the live line is taken out of the flow and read by screen readers only.
132
+ .wui-dashboard-grid-bar {
133
+ grid-column: 1 / -1;
134
+ display: flex;
135
+ flex-wrap: wrap;
136
+ align-items: center;
137
+ justify-content: flex-end;
138
+ gap: var(--wui-space-xs);
139
+ }
140
+ .wui-dashboard-grid-menu {
141
+ display: flex;
142
+ flex-wrap: wrap;
143
+ gap: var(--wui-space-xs);
144
+ }
145
+ .wui-dashboard-grid-menu[hidden] {
146
+ display: none;
147
+ }
148
+ .wui-dashboard-grid-live {
149
+ position: absolute;
150
+ width: 1px;
151
+ height: 1px;
152
+ overflow: hidden;
153
+ clip: rect(0 0 0 0);
154
+ white-space: nowrap;
155
+ }
156
+ .wui-dashboard-cell[data-widget-id] {
157
+ position: relative;
158
+ display: flex;
159
+ flex-direction: column;
160
+ }
161
+ // The tools bar sits above the card, so the card fills what the bar leaves rather than the whole cell.
162
+ .wui-dashboard-cell[data-widget-id] > .card,
163
+ .wui-dashboard-cell[data-widget-id] > .kpi {
164
+ flex: 1 1 auto;
165
+ height: auto;
166
+ }
167
+ .wui-dashboard-cell[data-widget-id]:focus-visible {
168
+ outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
169
+ outline-offset: var(--wui-focus-ring-offset);
170
+ }
171
+ .wui-dashboard-cell-tools {
172
+ display: flex;
173
+ justify-content: flex-end;
174
+ gap: var(--wui-space-xs);
175
+ margin-bottom: var(--wui-space-xs);
176
+ }
@@ -865,7 +865,8 @@ button.datepicker-month:hover {
865
865
  .app-phone-number-input
866
866
  wui-phone:not([aria-invalid="true"])
867
867
  .phone-input-wrap:hover:not(:focus-within):not(:has(> .input.error)):not(:has(> .input.is-invalid)):not(:has(> .input[aria-invalid="true"])) {
868
- background: var(--color-field-bg);
868
+ // Colour only, so a valid tick drawn on the shell stays through hover.
869
+ background-color: var(--color-field-bg);
869
870
  border-color: var(--color-field-border-hover);
870
871
  }
871
872
  // Match AppInput's focus: clean surface fill + a soft primary border.
@@ -85,6 +85,13 @@ wui-command-palette {
85
85
  .wui-cmd-tabs[hidden] {
86
86
  display: none;
87
87
  }
88
+ // On a phone the pills keep their width and the row scrolls sideways, rather than squeezing a label.
89
+ @include media-breakpoint-down(sm) {
90
+ .wui-cmd-tabs > * {
91
+ flex: 0 0 auto;
92
+ white-space: nowrap;
93
+ }
94
+ }
88
95
 
89
96
  // Nested pages: the Back button and the path to the open page. The element fills the trail and
90
97
  // shows the bar only while a page is open.
@@ -168,6 +175,15 @@ button.wui-cmd-crumb:focus-visible {
168
175
  overscroll-behavior: contain;
169
176
  scrollbar-width: thin;
170
177
  scrollbar-color: var(--color-border-strong) transparent;
178
+ // Scroll cue: a fading hairline at each edge while results lie beyond it. The local covers
179
+ // move with the list and hide the hairline at its ends, so it shows only where a scroll
180
+ // would reveal more.
181
+ background:
182
+ linear-gradient(var(--color-surface), var(--color-surface)) top / 100% 8px no-repeat local,
183
+ linear-gradient(var(--color-surface), var(--color-surface)) bottom / 100% 8px no-repeat local,
184
+ linear-gradient(var(--color-border), transparent) top / 100% 8px no-repeat scroll,
185
+ linear-gradient(transparent, var(--color-border)) bottom / 100% 8px no-repeat scroll,
186
+ var(--color-surface);
171
187
  }
172
188
  .wui-cmd-list[hidden],
173
189
  .wui-cmd-group[hidden],
@@ -253,6 +269,16 @@ wui-command-palette[data-keyboard] .wui-cmd-item[aria-selected="true"] {
253
269
  .wui-cmd-item-label {
254
270
  font-size: 14px;
255
271
  }
272
+ // On a phone a result title wraps to two lines before it ends in an ellipsis.
273
+ @include media-breakpoint-down(sm) {
274
+ .wui-cmd-item-label {
275
+ display: -webkit-box;
276
+ overflow: hidden;
277
+ white-space: normal;
278
+ -webkit-box-orient: vertical;
279
+ -webkit-line-clamp: 2;
280
+ }
281
+ }
256
282
  .wui-cmd-item-desc {
257
283
  color: var(--color-text-muted);
258
284
  font-size: 12px;
@@ -301,6 +327,48 @@ wui-command-palette[data-keyboard] .wui-cmd-item[aria-selected="true"] {
301
327
  display: none;
302
328
  }
303
329
 
330
+ .wui-cmd-notice {
331
+ padding: var(--wui-space-sm);
332
+ border-bottom: 1px solid var(--color-border);
333
+ color: var(--color-text-muted);
334
+ font-size: var(--wui-fs-sm);
335
+ }
336
+
337
+ // The error block the wrappers draw above the results. The list and the empty text under it are
338
+ // hidden by the same markup on both surfaces, so the failed search never shows stale results.
339
+ .wui-cmd-error {
340
+ display: grid;
341
+ gap: var(--wui-space-xs);
342
+ padding: var(--wui-space-sm);
343
+ border-bottom: 1px solid var(--color-border);
344
+ font-size: var(--wui-fs-sm);
345
+ }
346
+ .wui-cmd-error-title {
347
+ color: var(--color-text);
348
+ font-weight: var(--wui-fw-semibold);
349
+ }
350
+ .wui-cmd-error-text {
351
+ color: var(--color-text-muted);
352
+ }
353
+ .wui-cmd-error-retry {
354
+ justify-self: start;
355
+ padding: 0;
356
+ border: 0;
357
+ background: transparent;
358
+ color: var(--color-primary-text);
359
+ font: inherit;
360
+ font-weight: var(--wui-fw-semibold);
361
+ text-decoration: underline;
362
+ cursor: pointer;
363
+ }
364
+ .wui-cmd-error-retry:focus-visible {
365
+ outline: var(--wui-focus-ring-width) solid var(--color-focus-ring);
366
+ outline-offset: var(--wui-focus-ring-offset);
367
+ }
368
+ .wui-cmd-error ~ .wui-cmd-empty {
369
+ display: none;
370
+ }
371
+
304
372
  .wui-cmd-footer {
305
373
  display: flex;
306
374
  flex: 0 0 auto;
@@ -489,16 +489,29 @@ textarea.form-control.autosize {
489
489
  // the wrapper, so the wrapper takes the same treatment; its 1px top padding stands in for the
490
490
  // dropped top border, keeping the height of every shell equal to the boxed field's.
491
491
  // AppTextarea takes the same variants; the textarea carries .form-control, not .input.
492
- :is(.input, :where(textarea).form-control).wui-input-underline,
493
- .input-with-unit:has(> .wui-input-underline),
494
- .input-affixed:has(> .wui-input-underline) {
492
+ // The shared declarations of every underline box; the field-specific groups below extend them.
493
+ %wui-underline-box {
495
494
  --color-field-bg: transparent;
496
495
  --color-surface: transparent;
497
496
  --color-bg-subtle: transparent;
498
497
  border-width: 0 0 1px;
499
498
  border-radius: 0;
500
499
  }
501
- :is(.input, :where(textarea).form-control).wui-input-underline {
500
+ %wui-underline-error {
501
+ border-color: var(--color-danger);
502
+ }
503
+ %wui-underline-disabled {
504
+ background: transparent;
505
+ border-color: var(--color-field-border);
506
+ border-bottom-style: dashed;
507
+ }
508
+ :is(.input, :where(textarea).form-control).wui-input-underline,
509
+ .input-with-unit:has(> .wui-input-underline),
510
+ .input-affixed:has(> .wui-input-underline) {
511
+ @extend %wui-underline-box;
512
+ }
513
+ // A search field keeps its start padding: the magnifier sits inside it, at every size.
514
+ :is(.input, :where(textarea).form-control).wui-input-underline:where(:not(.search-input)) {
502
515
  padding-inline-start: 0;
503
516
  }
504
517
  .input-with-unit:has(> .wui-input-underline),
@@ -510,12 +523,10 @@ textarea.form-control.autosize {
510
523
  :is(.input, :where(textarea).form-control).wui-input-underline:is(.error, .is-invalid, [aria-invalid="true"]):focus,
511
524
  .input-with-unit:has(> .wui-input-underline:is(.error, [aria-invalid="true"])),
512
525
  .input-affixed:has(> .wui-input-underline:is(.error, [aria-invalid="true"])) {
513
- border-color: var(--color-danger);
526
+ @extend %wui-underline-error;
514
527
  }
515
528
  :is(.input, :where(textarea).form-control).wui-input-underline:disabled {
516
- background: transparent;
517
- border-color: var(--color-field-border);
518
- border-bottom-style: dashed;
529
+ @extend %wui-underline-disabled;
519
530
  }
520
531
  // No box, so no slot divider beside a leading icon, and no dividers beside a unit or affix.
521
532
  .input-icon:has(> .wui-input-underline)::after {
@@ -584,6 +595,96 @@ textarea.form-control.autosize {
584
595
  padding-left: 0;
585
596
  padding-right: 0;
586
597
  }
598
+ // The other field types draw the same underline on their own box. Each group extends the shared
599
+ // placeholders, and its selector carries the field's own wrapper or class so it beats that field's
600
+ // boxed rule (size radius, hover and open fills, the error tint) without !important.
601
+ // AppSelect: the control carries the line; the focus ring, avatar inset, reset and caret keep their place.
602
+ wui-select .wui-select-control.wui-input-underline {
603
+ @extend %wui-underline-box;
604
+ }
605
+ wui-select[aria-invalid="true"] .wui-select-control.wui-input-underline {
606
+ @extend %wui-underline-error;
607
+ }
608
+ wui-select .wui-select-control.wui-input-underline[aria-disabled="true"] {
609
+ @extend %wui-underline-disabled;
610
+ }
611
+ // AppNumberInput: the wrapper carries the line; its 1px top padding stands in for the dropped top border.
612
+ div.num-wrap.wui-input-underline {
613
+ @extend %wui-underline-box;
614
+ padding-top: var(--bs-border-width);
615
+ }
616
+ div.num-wrap.wui-input-underline:has(.num-input:is(.error, .is-invalid, [aria-invalid="true"])) {
617
+ @extend %wui-underline-error;
618
+ }
619
+ div.num-wrap.wui-input-underline:has(.num-input:disabled) {
620
+ @extend %wui-underline-disabled;
621
+ }
622
+ div.num-wrap.wui-input-underline .num-btn {
623
+ border: 0;
624
+ }
625
+ div.num-wrap.wui-input-underline .affix {
626
+ border-inline-start: 0;
627
+ }
628
+ // AppSearch: the input carries the line; the start padding it keeps (above) leaves room for the magnifier.
629
+ input.search-input.wui-input-underline {
630
+ @extend %wui-underline-box;
631
+ }
632
+ // AppPhoneNumberInput: the shell carries the line; the country adornment keeps its start padding.
633
+ .app-phone-number-input wui-phone .phone-input-wrap.wui-input-underline {
634
+ @extend %wui-underline-box;
635
+ }
636
+ .app-phone-number-input wui-phone .phone-input-wrap.wui-input-underline:has(> .input:disabled) {
637
+ @extend %wui-underline-disabled;
638
+ }
639
+ .app-phone-number-input wui-phone[aria-invalid="true"] .phone-input-wrap.wui-input-underline,
640
+ .app-phone-number-input wui-phone .phone-input-wrap.wui-input-underline:has(.input:is(.error, .is-invalid, [aria-invalid="true"])) {
641
+ @extend %wui-underline-error;
642
+ // The error glyph the boxed field draws on the shell ends where the line does.
643
+ padding-inline-end: 32px;
644
+ background-position: right 0 center;
645
+ }
646
+ .app-phone-number-input wui-phone[aria-invalid="true"] .phone-input-wrap.wui-input-underline:dir(rtl),
647
+ .app-phone-number-input wui-phone .phone-input-wrap.wui-input-underline:has(.input:is(.error, .is-invalid, [aria-invalid="true"])):dir(rtl) {
648
+ background-position: left 0 center;
649
+ }
650
+ // AppColorField: the hex box carries the line; the swatch beside it keeps its own chip.
651
+ input.color-field-hex.wui-input-underline {
652
+ @extend %wui-underline-box;
653
+ }
654
+ // AppDatePicker, AppDateRangePicker, AppTimePicker: the trigger carries the line. The host's aria-invalid
655
+ // reddens the trigger, open or not; the open rule's tint would otherwise win.
656
+ button.datepicker-trigger.wui-input-underline,
657
+ button.daterange-trigger.wui-input-underline,
658
+ .timepicker-trigger.wui-input-underline {
659
+ @extend %wui-underline-box;
660
+ }
661
+ @each $host, $root, $trigger in ("wui-datepicker", ".datepicker", "button.datepicker-trigger"), ("wui-date-range", ".daterange", "button.daterange-trigger"),
662
+ ("wui-timepicker", ".timepicker", ".timepicker-trigger")
663
+ {
664
+ #{$host}[aria-invalid="true"] #{$trigger}.wui-input-underline,
665
+ #{$host}[aria-invalid="true"] #{$root}.open #{$trigger}.wui-input-underline {
666
+ @extend %wui-underline-error;
667
+ }
668
+ }
669
+ .timepicker.open .timepicker-trigger.wui-input-underline[aria-invalid="true"] {
670
+ @extend %wui-underline-error;
671
+ }
672
+ // AppMentionInput: the textarea carries the line.
673
+ textarea.wui-mention-input-text.wui-input-underline {
674
+ @extend %wui-underline-box;
675
+ }
676
+ // AppOtpInput: each slot draws its own line; the cells stay separate.
677
+ wui-otp.wui-input-underline .otp-slot {
678
+ @extend %wui-underline-box;
679
+ }
680
+ wui-otp.wui-input-underline[aria-invalid="true"] .otp-slot,
681
+ wui-otp.wui-input-underline .otp.error .otp-slot,
682
+ wui-otp.wui-input-underline .field-error ~ .otp .otp-slot {
683
+ @extend %wui-underline-error;
684
+ }
685
+ wui-otp.wui-input-underline .otp-field:disabled ~ .otp-slots .otp-slot {
686
+ @extend %wui-underline-disabled;
687
+ }
587
688
  // Edge/IE native password reveal: hide so only the app eye toggle shows.
588
689
  .form-control::-ms-reveal,
589
690
  .form-control::-ms-clear,
@@ -742,6 +843,15 @@ form .wui-field-message:empty {
742
843
  opacity var(--wui-duration-fast) var(--wui-ease-ui),
743
844
  visibility 0s var(--wui-ease-linear) var(--wui-duration-fast);
744
845
  }
846
+ // A segmented field shows its error and helper text one under the other, error first.
847
+ .field > .segmented + .wui-field-message > .field-error,
848
+ .field > .segmented + .wui-field-message > .field-hint {
849
+ grid-area: auto;
850
+ }
851
+ .field > .segmented + .wui-field-message:has(> .field-error:not(:empty):not(.wui-leaving)) > .field-hint {
852
+ opacity: 1;
853
+ visibility: visible;
854
+ }
745
855
  @keyframes wui-field-message-in {
746
856
  from {
747
857
  opacity: 0;
@@ -756,20 +866,51 @@ form .wui-field-message:empty {
756
866
  }
757
867
  }
758
868
 
759
- // The pager's native select: a rounded squircle, custom chevron, off-surface fill.
760
- .tpg-select {
869
+ // Every native form select draws one chevron; a multi-select or a sized list keeps none. The
870
+ // arrow image lives in a custom property on the select so the dark scope swaps only its colour:
871
+ // #4B5675 is the light text-muted; #B4B9C6 is --wui-dark-text-muted (3:1 or better on the dark
872
+ // field, disabled and focused fills, where #4B5675 reaches 2.05, 1.33 and 2.37).
873
+ // The :where() on the general rule keeps it at (0,1,1): above Bootstrap's .form-select, below
874
+ // .form-select.tpg-select in _pagination.scss (14px at 8px inset), the busy spinner and the valid tick.
875
+ select.form-select {
876
+ --wui-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95' fill='none' stroke='%234B5675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3E%3C/svg%3E");
877
+ }
878
+ :root[data-bs-theme="dark"] select.form-select,
879
+ [data-bs-theme="dark"]:not(:root) select.form-select {
880
+ --wui-select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95' fill='none' stroke='%23B4B9C6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3E%3C/svg%3E");
881
+ }
882
+ select.form-select:where(:not([multiple]):not([size])) {
883
+ // Room at the end for the 16px chevron at its 14px inset.
884
+ --wui-select-end-room: 40px;
761
885
  appearance: none;
762
886
  -webkit-appearance: none;
763
- padding-inline-end: 40px;
764
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95' fill='none' stroke='%234B5675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10'/%3E%3C/svg%3E");
887
+ padding-inline: var(--wui-space-md) var(--wui-select-end-room);
888
+ background-image: var(--wui-select-arrow);
765
889
  background-repeat: no-repeat;
766
890
  background-position: right 14px center;
767
891
  background-size: 16px;
768
892
  cursor: pointer;
769
893
  }
770
- .tpg-select:dir(rtl) {
894
+ select.form-select:where(:not([multiple]):not([size])):dir(rtl) {
771
895
  background-position: left 14px center;
772
896
  }
897
+ // The disabled and invalid rules above and Bootstrap's invalid skin clear the image and reset the
898
+ // end padding; these rank above both (0,5,1) to put the arrow back. The pager keeps its own
899
+ // metrics from _pagination.scss, so it only gets its image back.
900
+ select.form-select:not([multiple]):not([size]):not(.tpg-select):is(.is-invalid, [aria-invalid="true"], :disabled) {
901
+ padding-inline-end: var(--wui-select-end-room);
902
+ background-image: var(--wui-select-arrow);
903
+ background-repeat: no-repeat;
904
+ background-position: right 14px center;
905
+ background-size: 16px;
906
+ }
907
+ select.form-select:not([multiple]):not([size]):not(.tpg-select):is(.is-invalid, [aria-invalid="true"], :disabled):dir(rtl) {
908
+ background-position: left 14px center;
909
+ }
910
+ select.form-select.tpg-select:not([multiple]):not([size]):is(.is-invalid, [aria-invalid="true"], :disabled) {
911
+ background-image: var(--wui-select-arrow);
912
+ background-repeat: no-repeat;
913
+ }
773
914
 
774
915
  // Date inputs: a brand calendar glyph that fills the field so a click
775
916
  // anywhere opens the native picker; muted text until a value is chosen.
@@ -871,6 +1012,7 @@ form .wui-field-message:empty {
871
1012
  .field > .form-select.wui-valid:not(.error):not([aria-invalid="true"]),
872
1013
  .field > wui-select.wui-valid:not(.error):not([aria-invalid="true"]) > .wui-select > .wui-select-control,
873
1014
  .field > wui-datepicker.wui-valid:not([aria-invalid="true"]) > .datepicker > .datepicker-trigger,
1015
+ .field > wui-phone.wui-valid:not([aria-invalid="true"]) .phone-input-wrap,
874
1016
  .field-float > wui-select.wui-valid:not(.error):not([aria-invalid="true"]) > .wui-select > .wui-select-control {
875
1017
  padding-inline-end: 41px;
876
1018
  }
@@ -898,6 +1040,7 @@ form .wui-field-message:empty {
898
1040
  .field > .form-select.wui-valid:not(.error):not([aria-invalid="true"]),
899
1041
  .field > wui-select.wui-valid:not(.error):not([aria-invalid="true"]) > .wui-select > .wui-select-control,
900
1042
  .field > wui-datepicker.wui-valid:not([aria-invalid="true"]) > .datepicker > .datepicker-trigger,
1043
+ .field > wui-phone.wui-valid:not([aria-invalid="true"]) .phone-input-wrap,
901
1044
  .field-float > wui-select.wui-valid:not(.error):not([aria-invalid="true"]) > .wui-select > .wui-select-control {
902
1045
  background-image: $wui-field-valid-glyph;
903
1046
  background-repeat: no-repeat;
@@ -908,6 +1051,7 @@ form .wui-field-message:empty {
908
1051
  .field > .form-select.wui-valid:not(.error):not([aria-invalid="true"]):dir(rtl),
909
1052
  .field > wui-select.wui-valid:not(.error):not([aria-invalid="true"]):dir(rtl) > .wui-select > .wui-select-control,
910
1053
  .field > wui-datepicker.wui-valid:not([aria-invalid="true"]):dir(rtl) > .datepicker > .datepicker-trigger,
1054
+ .field > wui-phone.wui-valid:not([aria-invalid="true"]) .phone-input-wrap:dir(rtl),
911
1055
  .field-float > wui-select.wui-valid:not(.error):not([aria-invalid="true"]):dir(rtl) > .wui-select > .wui-select-control {
912
1056
  background-position: left 14px center;
913
1057
  }