@tangible/ui 0.2.23 → 0.2.25

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 (46) hide show
  1. package/components/Checkbox/Checkbox.js +1 -1
  2. package/components/DatePicker/DateRangePicker.js +1 -1
  3. package/components/Dropdown/Dropdown.js +1 -1
  4. package/components/GradientPicker/GradientPicker.js +3 -3
  5. package/components/NavMenu/NavMenu.d.ts +32 -0
  6. package/components/NavMenu/NavMenu.js +230 -0
  7. package/components/NavMenu/index.d.ts +3 -0
  8. package/components/NavMenu/index.js +2 -0
  9. package/components/NavMenu/types.d.ts +103 -0
  10. package/components/NavMenu/types.js +6 -0
  11. package/components/index.d.ts +2 -0
  12. package/components/index.js +1 -0
  13. package/figma-tokens.json +90 -1
  14. package/package.json +5 -1
  15. package/skills/building-with-tui/SKILL.md +10 -6
  16. package/styles/all.css +1 -1
  17. package/styles/all.expanded.css +546 -64
  18. package/styles/all.expanded.unlayered.css +546 -64
  19. package/styles/all.unlayered.css +1 -1
  20. package/styles/components/_bundle.scss +2 -0
  21. package/styles/components/checkbox.scss +13 -2
  22. package/styles/components/color-picker.scss +12 -4
  23. package/styles/components/combobox.scss +7 -6
  24. package/styles/components/date-picker.scss +8 -6
  25. package/styles/components/dropdown.scss +3 -5
  26. package/styles/components/gradient-picker.scss +3 -5
  27. package/styles/components/input/index.scss +16 -6
  28. package/styles/components/multi-combobox.scss +6 -6
  29. package/styles/components/multi-select.scss +10 -7
  30. package/styles/components/nav-menu.scss +385 -0
  31. package/styles/components/radio.scss +11 -3
  32. package/styles/components/search-select.scss +7 -7
  33. package/styles/components/select.scss +7 -6
  34. package/styles/components/slider.scss +1 -1
  35. package/styles/components/switch.scss +1 -1
  36. package/styles/components/text-input.scss +15 -1
  37. package/styles/core.css +1 -1
  38. package/styles/core.unlayered.css +1 -1
  39. package/styles/index.scss +18 -0
  40. package/styles/system/_constants.scss +0 -6
  41. package/styles/system/_palettes.scss +6 -0
  42. package/styles/system/_text-styles.scss +200 -0
  43. package/styles/system/_tokens.scss +7 -0
  44. package/styles/system/index.scss +3 -1
  45. package/tui-manifest.json +115 -3
  46. package/utils/listbox/group.js +3 -1
@@ -33,6 +33,7 @@
33
33
  @use "./slider" as slider;
34
34
  @use "./switch" as switch;
35
35
  @use "./sidebar" as sidebar;
36
+ @use "./nav-menu" as navmenu;
36
37
  @use "./step-indicator" as stepindicator;
37
38
  @use "./search-input" as searchinput;
38
39
  @use "./search-select" as searchselect;
@@ -116,6 +117,7 @@ $-input-dependents: (input, field, text-input, textarea, pager, search-input, se
116
117
  @if -wants($only, slider) { @include slider.styles(); }
117
118
  @if -wants($only, switch) { @include switch.styles(); }
118
119
  @if -wants($only, sidebar) { @include sidebar.styles(); }
120
+ @if -wants($only, nav-menu) { @include navmenu.styles(); }
119
121
  @if -wants($only, step-indicator) { @include stepindicator.styles(); }
120
122
  @if -wants($only, step-list) { @include steplist.styles(); }
121
123
  @if -wants($only, table) { @include table.styles(); }
@@ -3,6 +3,7 @@
3
3
  /* @tui-tokens
4
4
  --tui-checkbox-accent
5
5
  --tui-checkbox-border
6
+ --tui-checkbox-border-hover
6
7
  --tui-checkbox-border-invalid
7
8
  --tui-checkbox-radius
8
9
  --tui-checkbox-bg
@@ -30,7 +31,8 @@ $_indeterminate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
30
31
  // --tui-checkbox-accent Accent color for checked/indeterminate
31
32
  // → --tui-input-accent → --tui-theme-primary-base
32
33
  // --tui-checkbox-border Border color (unchecked)
33
- // → --tui-color-border
34
+ // --tui-checkbox-border-hover Hover border (opt-in; default: no change)
35
+ // → --tui-input-border → --tui-color-border-control
34
36
  // --tui-checkbox-border-invalid Border color (invalid)
35
37
  // → --tui-theme-danger-base
36
38
  // --tui-checkbox-radius Border radius
@@ -58,7 +60,10 @@ $_indeterminate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
58
60
  ) {
59
61
  // Internal tokens with real fallbacks
60
62
  --_accent: var(--#{sys.$prefix}checkbox-accent, var(--#{sys.$prefix}input-accent, var(--#{sys.$prefix}theme-primary-base)));
61
- --_border: var(--#{sys.$prefix}checkbox-border, var(--#{sys.$prefix}color-border));
63
+ --_border-rest: var(--#{sys.$prefix}checkbox-border, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control)));
64
+ // No hover change unless a consumer opts in (house rule for form controls).
65
+ --_border-hover: var(--#{sys.$prefix}checkbox-border-hover, var(--#{sys.$prefix}input-border-hover, var(--_border-rest)));
66
+ --_border: var(--_border-rest);
62
67
  --_radius: var(--#{sys.$prefix}checkbox-radius, var(--#{sys.$prefix}radius-sm));
63
68
  --_bg: var(--#{sys.$prefix}checkbox-bg, var(--#{sys.$prefix}color-bg));
64
69
 
@@ -110,6 +115,12 @@ $_indeterminate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/sv
110
115
  background-image: $_indeterminate;
111
116
  }
112
117
 
118
+ // Hover: before Invalid so an invalid box keeps its red. Checked and
119
+ // indeterminate set border-color directly, so this can't touch them.
120
+ &:hover:not(:disabled) {
121
+ --_border: var(--_border-hover);
122
+ }
123
+
113
124
  // Invalid
114
125
  &[aria-invalid="true"] {
115
126
  --_border: var(--#{sys.$prefix}checkbox-border-invalid, var(--#{sys.$prefix}theme-danger-base));
@@ -166,12 +166,17 @@
166
166
  // the tui-input-group hosts do — a context re-pointing --tui-input-border
167
167
  // or --tui-input-radius reaches this box too.
168
168
  border: var(--#{sys.$prefix}border-width) solid
169
- var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border));
169
+ var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control));
170
170
  border-radius: var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md));
171
171
  background: var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface));
172
172
  color: var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg));
173
173
  font-size: var(--#{sys.$prefix}typography-size-xs);
174
174
 
175
+ // Opt-in hover, resting border by default; before focus so focus wins.
176
+ &:hover {
177
+ border-color: var(--#{sys.$prefix}input-border-hover, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control)));
178
+ }
179
+
175
180
  &:focus-within {
176
181
  border-color: var(--#{sys.$prefix}focus-ring-color);
177
182
  outline: var(--#{sys.$prefix}focus-ring-width) solid var(--#{sys.$prefix}focus-ring-color);
@@ -255,7 +260,7 @@
255
260
  color: var(--#{sys.$prefix}color-fg-muted);
256
261
 
257
262
  code {
258
- font-family: var(--#{sys.$prefix}font-family-mono, monospace);
263
+ font-family: var(--#{sys.$prefix}font-family-mono, #{sys.$font-stack-mono});
259
264
  }
260
265
 
261
266
  // Kept in the DOM (so the aria-live region announces on toggle) but
@@ -285,7 +290,7 @@
285
290
  // --tui-input-border / --tui-input-radius must reach this trigger the
286
291
  // same as every other control.
287
292
  border: var(--#{sys.$prefix}border-width) solid
288
- var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border));
293
+ var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control));
289
294
  border-radius: var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md));
290
295
  background: var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface));
291
296
  color: var(--#{sys.$prefix}color-fg);
@@ -326,8 +331,11 @@
326
331
  min-block-size: 0;
327
332
  }
328
333
 
334
+ // Opt-in hover, resting border by default. This used to read
335
+ // --tui-color-border-strong, which doesn't exist, so it fell back to the
336
+ // decorative border and hover made the boundary LIGHTER than its 3:1 rest.
329
337
  &:hover {
330
- border-color: var(--#{sys.$prefix}color-border-strong, var(--#{sys.$prefix}color-border));
338
+ border-color: var(--#{sys.$prefix}input-border-hover, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control)));
331
339
  }
332
340
 
333
341
  // Match the shared form-control focus treatment: border turns primary plus
@@ -5,6 +5,7 @@
5
5
  --tui-combobox-input-bg
6
6
  --tui-combobox-input-fg
7
7
  --tui-combobox-input-border
8
+ --tui-combobox-input-border-hover
8
9
  --tui-combobox-input-border-focus
9
10
  --tui-combobox-input-radius
10
11
  --tui-combobox-content-bg
@@ -42,6 +43,7 @@ $_min-width: 160px;
42
43
  // --tui-combobox-input-bg
43
44
  // --tui-combobox-input-fg
44
45
  // --tui-combobox-input-border
46
+ // --tui-combobox-input-border-hover
45
47
  // --tui-combobox-input-border-focus
46
48
  // --tui-combobox-input-radius
47
49
  // --tui-combobox-content-bg
@@ -89,7 +91,8 @@ $_min-width: 160px;
89
91
  // trigger-* overrides still win; the shared input default sits underneath.
90
92
  --_bg: var(--#{sys.$prefix}combobox-input-bg, var(--#{sys.$prefix}select-trigger-bg, var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface))));
91
93
  --_fg: var(--#{sys.$prefix}combobox-input-fg, var(--#{sys.$prefix}select-trigger-fg, var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg))));
92
- --_border: var(--#{sys.$prefix}combobox-input-border, var(--#{sys.$prefix}select-trigger-border, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border))));
94
+ --_border-rest: var(--#{sys.$prefix}combobox-input-border, var(--#{sys.$prefix}select-trigger-border, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control))));
95
+ --_border-hover: var(--#{sys.$prefix}combobox-input-border-hover, var(--#{sys.$prefix}select-trigger-border-hover, var(--#{sys.$prefix}input-border-hover, var(--_border-rest))));
93
96
  --_border-focus: var(--#{sys.$prefix}combobox-input-border-focus, var(--#{sys.$prefix}select-trigger-border-focus, var(--#{sys.$prefix}input-border-focus, var(--#{sys.$prefix}theme-primary-base))));
94
97
  --_radius: var(--#{sys.$prefix}combobox-input-radius, var(--#{sys.$prefix}select-trigger-radius, var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md))));
95
98
 
@@ -342,11 +345,9 @@ $_min-width: 160px;
342
345
  :where(.#{sys.$prefix}interface) .#{sys.$prefix}combobox__label {
343
346
  padding: var(--#{sys.$prefix}spacing-xs) var(--#{sys.$prefix}spacing-sm);
344
347
  padding-bottom: var(--#{sys.$prefix}spacing-xxs);
345
- font-size: var(--#{sys.$prefix}typography-size-xs);
346
- font-weight: var(--#{sys.$prefix}typography-weight-semibold, 600);
347
- color: var(--#{sys.$prefix}color-fg-muted);
348
- text-transform: uppercase;
349
- letter-spacing: sys.$label-letter-spacing;
348
+ // The overline text style. The mixin keeps static markup styled; the
349
+ // component also renders .tui-text-style-overline as the override hook.
350
+ @include sys.text-style(sys.$prefix, overline);
350
351
  }
351
352
 
352
353
  // ---------------------------------------------------------------------------
@@ -282,7 +282,7 @@
282
282
  background-color: var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface));
283
283
  color: var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg));
284
284
  border: var(--#{sys.$prefix}border-width) solid
285
- var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border));
285
+ var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control));
286
286
  border-radius: var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md));
287
287
  padding-inline: var(--#{sys.$prefix}spacing-sm);
288
288
 
@@ -299,6 +299,11 @@
299
299
  }
300
300
  }
301
301
 
302
+ // Opt-in hover, resting border by default; before focus so focus wins.
303
+ &:hover {
304
+ border-color: var(--#{sys.$prefix}input-border-hover, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control)));
305
+ }
306
+
302
307
  &:focus-within {
303
308
  border-color: var(--#{sys.$prefix}input-border-focus, var(--#{sys.$prefix}theme-primary-base));
304
309
  outline: var(--#{sys.$prefix}focus-ring-width) solid var(--#{sys.$prefix}focus-ring-color);
@@ -399,11 +404,8 @@
399
404
  }
400
405
 
401
406
  &__field-label {
402
- color: var(--#{sys.$prefix}color-fg-muted);
403
- font-size: var(--#{sys.$prefix}typography-size-xs);
404
- font-weight: var(--#{sys.$prefix}typography-weight-medium, 500);
405
- letter-spacing: sys.$label-letter-spacing;
406
- text-transform: uppercase;
407
+ // Overline text style; the component also renders the class.
408
+ @include sys.text-style(sys.$prefix, overline);
407
409
  }
408
410
 
409
411
  &__fields-dash {
@@ -161,12 +161,10 @@
161
161
  :where(.#{sys.$prefix}interface) .#{sys.$prefix}dropdown__header {
162
162
  padding: var(--#{sys.$prefix}spacing-xs, 8px) var(--#{sys.$prefix}spacing-sm, 12px);
163
163
  padding-block-end: var(--#{sys.$prefix}spacing-xxs, 4px);
164
- font-size: var(--#{sys.$prefix}typography-size-xs, 11px);
165
- font-weight: var(--#{sys.$prefix}typography-weight-semibold, 600);
166
- color: var(--#{sys.$prefix}color-fg-muted);
167
- text-transform: uppercase;
168
- letter-spacing: sys.$label-letter-spacing;
169
164
  user-select: none;
165
+ // The overline text style. The mixin keeps static markup styled; the
166
+ // component also renders .tui-text-style-overline as the override hook.
167
+ @include sys.text-style(sys.$prefix, overline);
170
168
  }
171
169
 
172
170
  // ---------------------------------------------------------------------------
@@ -162,11 +162,9 @@
162
162
  // Small uppercase section/field label (matches the design's control labels).
163
163
  .#{sys.$prefix}interface .#{sys.$prefix}gradient-picker__label {
164
164
  display: block;
165
- font-size: var(--#{sys.$prefix}typography-size-xs);
166
- font-weight: var(--#{sys.$prefix}typography-weight-medium, 500);
167
- letter-spacing: 0.04em;
168
- text-transform: uppercase;
169
- color: var(--#{sys.$prefix}color-fg-muted);
165
+ // The overline text style. The mixin keeps static markup styled; the
166
+ // component also renders .tui-text-style-overline as the override hook.
167
+ @include sys.text-style(sys.$prefix, overline);
170
168
  }
171
169
 
172
170
  // The stop list — swatch + position + remove per row, then the add button.
@@ -28,10 +28,12 @@
28
28
  // ---------------------------------------------------------------------------
29
29
  // Labels
30
30
  // ---------------------------------------------------------------------------
31
+ // Bare <label>s read the label text style's knobs, so configuring that style
32
+ // (--tui-text-label-*) reaches them too. .tui-text-style-label is the class form.
31
33
  :where(.#{sys.$prefix}interface) :is(label, .#{sys.$prefix}label) {
32
- color: var(--#{sys.$prefix}color-fg);
33
- font-weight: bold;
34
- font-size: var(--#{sys.$prefix}typography-size-sm);
34
+ color: var(--#{sys.$prefix}text-label-color, var(--#{sys.$prefix}color-fg));
35
+ font-weight: var(--#{sys.$prefix}text-label-weight, 700);
36
+ font-size: var(--#{sys.$prefix}text-label-size, var(--#{sys.$prefix}typography-size-sm));
35
37
  }
36
38
 
37
39
  // ---------------------------------------------------------------------------
@@ -60,7 +62,9 @@
60
62
  // Internal tokens — read component API with fallback to primitives
61
63
  --_bg: var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface));
62
64
  --_fg: var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg));
63
- --_border: var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border));
65
+ --_border-rest: var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control));
66
+ --_border-hover: var(--#{sys.$prefix}input-border-hover, var(--_border-rest));
67
+ --_border: var(--_border-rest);
64
68
  --_border-focus: var(--#{sys.$prefix}input-border-focus, var(--#{sys.$prefix}theme-primary-base));
65
69
  --_border-invalid: var(--#{sys.$prefix}input-border-invalid, var(--#{sys.$prefix}theme-danger-base));
66
70
  --_radius: var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md));
@@ -85,6 +89,12 @@
85
89
  opacity: 1; // Normalize Firefox which applies its own opacity reduction
86
90
  }
87
91
 
92
+ // Opt-in hover (resting border by default). Before focus and invalid so
93
+ // both out-order it.
94
+ &:hover:not([disabled]) {
95
+ --_border: var(--_border-hover);
96
+ }
97
+
88
98
  &:focus-visible {
89
99
  --_border: var(--_border-focus);
90
100
  outline: var(--#{sys.$prefix}focus-ring-width) solid var(--#{sys.$prefix}focus-ring-color);
@@ -151,7 +161,7 @@
151
161
  :where(.#{sys.$prefix}interface) .#{sys.$prefix}toggle {
152
162
  // Internal tokens
153
163
  --_accent: var(--#{sys.$prefix}input-accent, var(--#{sys.$prefix}theme-primary-base));
154
- --_track-off: var(--#{sys.$prefix}color-fill-strong);
164
+ --_track-off: var(--#{sys.$prefix}color-border-control);
155
165
 
156
166
  input[type="checkbox"] {
157
167
  position: absolute;
@@ -225,7 +235,7 @@
225
235
  // Internal tokens
226
236
  --_bg: var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface));
227
237
  --_fg: var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg));
228
- --_border: var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border));
238
+ --_border: var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control));
229
239
  --_radius: var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md));
230
240
 
231
241
  font-size: var(--#{sys.$prefix}typography-size-sm);
@@ -5,6 +5,7 @@
5
5
  --tui-multicombobox-control-bg Token-field background
6
6
  --tui-multicombobox-control-fg Text / icon colour in the control
7
7
  --tui-multicombobox-control-border Control border colour (rest)
8
+ --tui-multicombobox-control-border-hover Control border colour (hover; opt-in, default: no change)
8
9
  --tui-multicombobox-control-border-focus Control border colour (focus / open)
9
10
  --tui-multicombobox-control-radius Control border radius
10
11
  --tui-multicombobox-content-bg Listbox background
@@ -66,7 +67,8 @@ $_token-row-padding: 2px;
66
67
  // Chain, don't replace — multicombobox → combobox → select → input → system.
67
68
  --_bg: var(--#{sys.$prefix}multicombobox-control-bg, var(--#{sys.$prefix}combobox-input-bg, var(--#{sys.$prefix}select-trigger-bg, var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface)))));
68
69
  --_fg: var(--#{sys.$prefix}multicombobox-control-fg, var(--#{sys.$prefix}combobox-input-fg, var(--#{sys.$prefix}select-trigger-fg, var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg)))));
69
- --_border: var(--#{sys.$prefix}multicombobox-control-border, var(--#{sys.$prefix}combobox-input-border, var(--#{sys.$prefix}select-trigger-border, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border)))));
70
+ --_border-rest: var(--#{sys.$prefix}multicombobox-control-border, var(--#{sys.$prefix}combobox-input-border, var(--#{sys.$prefix}select-trigger-border, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control)))));
71
+ --_border-hover: var(--#{sys.$prefix}multicombobox-control-border-hover, var(--#{sys.$prefix}combobox-input-border-hover, var(--#{sys.$prefix}select-trigger-border-hover, var(--#{sys.$prefix}input-border-hover, var(--_border-rest)))));
70
72
  --_border-focus: var(--#{sys.$prefix}multicombobox-control-border-focus, var(--#{sys.$prefix}combobox-input-border-focus, var(--#{sys.$prefix}select-trigger-border-focus, var(--#{sys.$prefix}input-border-focus, var(--#{sys.$prefix}theme-primary-base)))));
71
73
  --_radius: var(--#{sys.$prefix}multicombobox-control-radius, var(--#{sys.$prefix}combobox-input-radius, var(--#{sys.$prefix}select-trigger-radius, var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md)))));
72
74
 
@@ -398,11 +400,9 @@ $_token-row-padding: 2px;
398
400
  :where(.#{sys.$prefix}interface) .#{sys.$prefix}multicombobox__label {
399
401
  padding: var(--#{sys.$prefix}spacing-xs) var(--#{sys.$prefix}spacing-sm);
400
402
  padding-bottom: var(--#{sys.$prefix}spacing-xxs);
401
- font-size: var(--#{sys.$prefix}typography-size-xs);
402
- font-weight: var(--#{sys.$prefix}typography-weight-semibold, 600);
403
- color: var(--#{sys.$prefix}color-fg-muted);
404
- text-transform: uppercase;
405
- letter-spacing: sys.$label-letter-spacing;
403
+ // The overline text style. The mixin keeps static markup styled; the
404
+ // component also renders .tui-text-style-overline as the override hook.
405
+ @include sys.text-style(sys.$prefix, overline);
406
406
  }
407
407
 
408
408
  // ---------------------------------------------------------------------------
@@ -5,6 +5,7 @@
5
5
  --tui-multiselect-trigger-bg
6
6
  --tui-multiselect-trigger-fg
7
7
  --tui-multiselect-trigger-border
8
+ --tui-multiselect-trigger-border-hover
8
9
  --tui-multiselect-trigger-border-focus
9
10
  --tui-multiselect-trigger-radius
10
11
  --tui-multiselect-content-bg
@@ -45,6 +46,7 @@ $_chip-max-width: 120px;
45
46
  // --tui-multiselect-trigger-bg
46
47
  // --tui-multiselect-trigger-fg
47
48
  // --tui-multiselect-trigger-border
49
+ // --tui-multiselect-trigger-border-hover
48
50
  // --tui-multiselect-trigger-border-focus
49
51
  // --tui-multiselect-trigger-radius
50
52
  //
@@ -80,7 +82,8 @@ $_chip-max-width: 120px;
80
82
  // the shared --tui-input-* default moves in underneath it.
81
83
  --_bg: var(--#{sys.$prefix}multiselect-trigger-bg, var(--#{sys.$prefix}input-bg, var(--#{sys.$prefix}color-bg-surface)));
82
84
  --_fg: var(--#{sys.$prefix}multiselect-trigger-fg, var(--#{sys.$prefix}input-fg, var(--#{sys.$prefix}color-fg)));
83
- --_border: var(--#{sys.$prefix}multiselect-trigger-border, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border)));
85
+ --_border-rest: var(--#{sys.$prefix}multiselect-trigger-border, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control)));
86
+ --_border-hover: var(--#{sys.$prefix}multiselect-trigger-border-hover, var(--#{sys.$prefix}input-border-hover, var(--_border-rest)));
84
87
  --_border-focus: var(--#{sys.$prefix}multiselect-trigger-border-focus, var(--#{sys.$prefix}input-border-focus, var(--#{sys.$prefix}theme-primary-base)));
85
88
  --_radius: var(--#{sys.$prefix}multiselect-trigger-radius, var(--#{sys.$prefix}input-radius, var(--#{sys.$prefix}radius-md)));
86
89
  --_min-width: var(--#{sys.$prefix}multiselect-min-width, #{$_min-width});
@@ -350,7 +353,9 @@ $_chip-max-width: 120px;
350
353
  flex-shrink: 0;
351
354
  width: 1em;
352
355
  height: 1em;
353
- border: var(--#{sys.$prefix}border-width) solid var(--#{sys.$prefix}color-border);
356
+ // The only visible unchecked affordance, so it needs the control boundary
357
+ // (3:1), chained like the standalone Checkbox.
358
+ border: var(--#{sys.$prefix}border-width) solid var(--#{sys.$prefix}checkbox-border, var(--#{sys.$prefix}input-border, var(--#{sys.$prefix}color-border-control)));
354
359
  border-radius: var(--#{sys.$prefix}radius-xs);
355
360
  background-color: var(--#{sys.$prefix}color-bg);
356
361
  color: var(--#{sys.$prefix}color-fg-on-accent);
@@ -389,11 +394,9 @@ $_chip-max-width: 120px;
389
394
  :where(.#{sys.$prefix}interface) .#{sys.$prefix}multiselect__label {
390
395
  padding: var(--#{sys.$prefix}spacing-xs) var(--#{sys.$prefix}spacing-sm);
391
396
  padding-bottom: var(--#{sys.$prefix}spacing-xxs);
392
- font-size: var(--#{sys.$prefix}typography-size-xs);
393
- font-weight: var(--#{sys.$prefix}typography-weight-semibold, 600);
394
- color: var(--#{sys.$prefix}color-fg-muted);
395
- text-transform: uppercase;
396
- letter-spacing: sys.$label-letter-spacing;
397
+ // The overline text style. The mixin keeps static markup styled; the
398
+ // component also renders .tui-text-style-overline as the override hook.
399
+ @include sys.text-style(sys.$prefix, overline);
397
400
  }
398
401
 
399
402
  // ---------------------------------------------------------------------------