@tangible/ui 0.2.23 → 0.2.24
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.
- package/components/Checkbox/Checkbox.js +1 -1
- package/components/DatePicker/DateRangePicker.js +1 -1
- package/components/Dropdown/Dropdown.js +1 -1
- package/components/GradientPicker/GradientPicker.js +3 -3
- package/components/NavMenu/NavMenu.d.ts +26 -0
- package/components/NavMenu/NavMenu.js +113 -0
- package/components/NavMenu/index.d.ts +2 -0
- package/components/NavMenu/index.js +1 -0
- package/components/NavMenu/types.d.ts +75 -0
- package/components/NavMenu/types.js +4 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +1 -0
- package/figma-tokens.json +90 -1
- package/package.json +5 -1
- package/skills/building-with-tui/SKILL.md +10 -6
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +429 -64
- package/styles/all.expanded.unlayered.css +429 -64
- package/styles/all.unlayered.css +1 -1
- package/styles/components/_bundle.scss +2 -0
- package/styles/components/checkbox.scss +13 -2
- package/styles/components/color-picker.scss +12 -4
- package/styles/components/combobox.scss +7 -6
- package/styles/components/date-picker.scss +8 -6
- package/styles/components/dropdown.scss +3 -5
- package/styles/components/gradient-picker.scss +3 -5
- package/styles/components/input/index.scss +16 -6
- package/styles/components/multi-combobox.scss +6 -6
- package/styles/components/multi-select.scss +10 -7
- package/styles/components/nav-menu.scss +212 -0
- package/styles/components/radio.scss +11 -3
- package/styles/components/search-select.scss +7 -7
- package/styles/components/select.scss +7 -6
- package/styles/components/slider.scss +1 -1
- package/styles/components/switch.scss +1 -1
- package/styles/components/text-input.scss +15 -1
- package/styles/core.css +1 -1
- package/styles/core.unlayered.css +1 -1
- package/styles/index.scss +18 -0
- package/styles/system/_constants.scss +0 -6
- package/styles/system/_palettes.scss +6 -0
- package/styles/system/_text-styles.scss +200 -0
- package/styles/system/_tokens.scss +7 -0
- package/styles/system/index.scss +3 -1
- package/tui-manifest.json +94 -3
- package/utils/listbox/group.js +3 -1
package/styles/index.scss
CHANGED
|
@@ -74,6 +74,10 @@ $layers: true !default;
|
|
|
74
74
|
|
|
75
75
|
--#{sys.$prefix}typography-line-height: 1.4;
|
|
76
76
|
--#{sys.$prefix}typography-line-height-tight: 1.25;
|
|
77
|
+
// Legacy and deprecated: read only as a fallback of --tui-font-family-base.
|
|
78
|
+
// It stays declared because figma-tokens.json publishes it, and consumers
|
|
79
|
+
// (lms Appearance) read that file's names at build time. Declared as
|
|
80
|
+
// `inherit`, it takes a value set on any ancestor, :root included.
|
|
77
81
|
--#{sys.$prefix}typography-font-family: inherit;
|
|
78
82
|
--#{sys.$prefix}typography-color-base: currentColor;
|
|
79
83
|
--#{sys.$prefix}typography-color-contrast-high: var(--#{sys.$prefix}color-fg);
|
|
@@ -92,6 +96,11 @@ $layers: true !default;
|
|
|
92
96
|
}
|
|
93
97
|
@include -in-layer(resets) {
|
|
94
98
|
.#{sys.$prefix}interface {
|
|
99
|
+
// A knob, never declared: unset, the interface keeps the host's font
|
|
100
|
+
// (plugin frontends inherit their theme's). Set it anywhere, :root
|
|
101
|
+
// included, or add .tui-font-sans for TUI's system stack (#112).
|
|
102
|
+
// Falls back through the legacy --tui-typography-font-family (deprecated).
|
|
103
|
+
font-family: var(--#{sys.$prefix}font-family-base, var(--#{sys.$prefix}typography-font-family, inherit));
|
|
95
104
|
font-size: var(--#{sys.$prefix}typography-size);
|
|
96
105
|
line-height: var(--#{sys.$prefix}typography-line-height);
|
|
97
106
|
// Inherit host color by default for light mode integration.
|
|
@@ -133,8 +142,17 @@ $layers: true !default;
|
|
|
133
142
|
}
|
|
134
143
|
}
|
|
135
144
|
|
|
145
|
+
// Text styles open the `components` layer, ahead of the bundle, at (0,1,0).
|
|
146
|
+
// Not `defaults`: layers outrank specificity, so any component-layer rule,
|
|
147
|
+
// even the (0,0,1) global `label` rule, would beat a defaults-layer style.
|
|
148
|
+
// Here they beat that rule on specificity, a component rule on the same
|
|
149
|
+
// element still wins on source order, utilities win on layer, and an
|
|
150
|
+
// unlayered consumer rule beats them all.
|
|
151
|
+
@include -in-layer(components) { @include sys.emit-text-styles(sys.$prefix); }
|
|
152
|
+
|
|
136
153
|
@include -in-layer(components) { @include components.bundle($components); }
|
|
137
154
|
@include -in-layer(utilities) { @include utilities.bundle(); }
|
|
155
|
+
@include -in-layer(utilities) { @include sys.emit-font-utilities(sys.$prefix); }
|
|
138
156
|
|
|
139
157
|
// Shared keyframes (must be outside layers for browser compatibility)
|
|
140
158
|
@include sys.keyframes();
|
|
@@ -10,9 +10,3 @@ $container-name: tuiContainer !default;
|
|
|
10
10
|
$radius: (xs: 2px, sm: 4px, md: 8px, lg: 12px, xl: 16px, full: 9999px) !default;
|
|
11
11
|
$space : (1: .25rem, 2: .5rem, 3: .75rem, 4: 1rem) !default;
|
|
12
12
|
$font : (base-size: 16px) !default;
|
|
13
|
-
|
|
14
|
-
// Tracking for the uppercase micro-label treatment shared by listbox/menu group
|
|
15
|
-
// labels (Select, MultiSelect, Combobox, MultiCombobox, SearchSelect, Dropdown)
|
|
16
|
-
// and DatePicker's field labels. Structural rather than a token: it's a property
|
|
17
|
-
// of that one typographic treatment, not a dial a context should retune.
|
|
18
|
-
$label-letter-spacing: 0.05em !default;
|
|
@@ -6,6 +6,7 @@ $palette: (
|
|
|
6
6
|
200: #E5E7EB,
|
|
7
7
|
300: #D1D5DB,
|
|
8
8
|
400: #9CA3AF,
|
|
9
|
+
450: #838a97,
|
|
9
10
|
500: #6B7280,
|
|
10
11
|
600: #4B5563,
|
|
11
12
|
700: #374151,
|
|
@@ -22,6 +23,7 @@ $palette: (
|
|
|
22
23
|
200: #7b93ff,
|
|
23
24
|
300: #5879f9,
|
|
24
25
|
400: #3858e9,
|
|
26
|
+
450: #304ddd,
|
|
25
27
|
500: #2942d1,
|
|
26
28
|
600: #1d35b4,
|
|
27
29
|
700: #1b2398,
|
|
@@ -38,6 +40,7 @@ $palette: (
|
|
|
38
40
|
200: #1ed14b,
|
|
39
41
|
300: #00ba37,
|
|
40
42
|
400: #00a32a,
|
|
43
|
+
450: #009625,
|
|
41
44
|
500: #008a20,
|
|
42
45
|
600: #007017,
|
|
43
46
|
700: #005c12,
|
|
@@ -54,6 +57,7 @@ $palette: (
|
|
|
54
57
|
200: #ce9adb,
|
|
55
58
|
300: #c184d0,
|
|
56
59
|
400: #a85fb8,
|
|
60
|
+
450: #9c51ac,
|
|
57
61
|
500: #9143a0,
|
|
58
62
|
600: #7a2f88,
|
|
59
63
|
700: #652071,
|
|
@@ -70,6 +74,7 @@ $palette: (
|
|
|
70
74
|
200: #ff8085,
|
|
71
75
|
300: #f86368,
|
|
72
76
|
400: #e65054,
|
|
77
|
+
450: #de4446,
|
|
73
78
|
500: #d63638,
|
|
74
79
|
600: #b32d2e,
|
|
75
80
|
700: #8a2424,
|
|
@@ -86,6 +91,7 @@ $palette: (
|
|
|
86
91
|
200: #f0c33c,
|
|
87
92
|
300: #dba617,
|
|
88
93
|
400: #bd8600,
|
|
94
|
+
450: #ab7700,
|
|
89
95
|
500: #996800,
|
|
90
96
|
600: #755100,
|
|
91
97
|
700: #614200,
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:meta";
|
|
3
|
+
|
|
4
|
+
// =============================================================================
|
|
5
|
+
// Text styles
|
|
6
|
+
// =============================================================================
|
|
7
|
+
//
|
|
8
|
+
// Named typographic treatments, applied by class: `.tui-text-style-{name}`.
|
|
9
|
+
// Every element using a style renders that one class, so a consumer can
|
|
10
|
+
// restyle (or opt out of) a treatment everywhere with one selector:
|
|
11
|
+
//
|
|
12
|
+
// .tui-text-style-overline { text-transform: none; }
|
|
13
|
+
//
|
|
14
|
+
// Every property is also a knob. Knobs are never declared, only read with
|
|
15
|
+
// fallbacks (like component API tokens), so they can be set anywhere,
|
|
16
|
+
// including :root, and nothing is added to .tui-interface:
|
|
17
|
+
//
|
|
18
|
+
// --tui-text-{style}-{family,size,weight,line-height,tracking,transform,color}
|
|
19
|
+
//
|
|
20
|
+
// Leveled collections (display, headline) also read a collection-wide knob,
|
|
21
|
+
// so one line retunes every level:
|
|
22
|
+
//
|
|
23
|
+
// --tui-text-headline-weight: 700; all six headline levels
|
|
24
|
+
// --tui-text-headline-04-weight: 600; just level 04
|
|
25
|
+
//
|
|
26
|
+
// Colour defaults to `inherit` except for the muted treatments (caption,
|
|
27
|
+
// overline), because .tui-interface deliberately inherits the host's text
|
|
28
|
+
// colour in light mode.
|
|
29
|
+
// =============================================================================
|
|
30
|
+
|
|
31
|
+
// Font stacks. Read through knobs at use sites; never declared.
|
|
32
|
+
$font-stack-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !default;
|
|
33
|
+
$font-stack-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace !default;
|
|
34
|
+
|
|
35
|
+
// Single styles: name → property defaults.
|
|
36
|
+
// Values are raw CSS. A string starting with "@" names a layer-1 primitive
|
|
37
|
+
// (defined on .tui-interface) and resolves to var(--{prefix}{name}).
|
|
38
|
+
$text-styles: (
|
|
39
|
+
body: (
|
|
40
|
+
size: "@typography-size-md",
|
|
41
|
+
weight: 400,
|
|
42
|
+
line-height: 1.5,
|
|
43
|
+
),
|
|
44
|
+
body-sm: (
|
|
45
|
+
size: "@typography-size-sm",
|
|
46
|
+
weight: 400,
|
|
47
|
+
line-height: 1.45,
|
|
48
|
+
),
|
|
49
|
+
// Form labels. Matches the existing `label, .tui-label` treatment.
|
|
50
|
+
label: (
|
|
51
|
+
size: "@typography-size-sm",
|
|
52
|
+
weight: 700,
|
|
53
|
+
line-height: 1.4,
|
|
54
|
+
color: "@color-fg",
|
|
55
|
+
),
|
|
56
|
+
caption: (
|
|
57
|
+
size: "@typography-size-xs",
|
|
58
|
+
weight: 400,
|
|
59
|
+
line-height: 1.4,
|
|
60
|
+
color: "@color-fg-muted",
|
|
61
|
+
),
|
|
62
|
+
// The small uppercase group label: listbox and menu group labels, the
|
|
63
|
+
// Dropdown header, picker field labels, nav group headings.
|
|
64
|
+
overline: (
|
|
65
|
+
size: "@typography-size-xs",
|
|
66
|
+
weight: 600,
|
|
67
|
+
line-height: 1.4,
|
|
68
|
+
tracking: 0.05em,
|
|
69
|
+
transform: uppercase,
|
|
70
|
+
color: "@color-fg-muted",
|
|
71
|
+
),
|
|
72
|
+
) !default;
|
|
73
|
+
|
|
74
|
+
// Leveled collections: shared defaults + per-level overrides. Level 01 is the
|
|
75
|
+
// largest. A level value may be a bare size or a map of overrides.
|
|
76
|
+
$text-collections: (
|
|
77
|
+
display: (
|
|
78
|
+
shared: (weight: 700, line-height: 1.15, tracking: -0.01em),
|
|
79
|
+
levels: (
|
|
80
|
+
01: 4.5rem,
|
|
81
|
+
02: 3.75rem,
|
|
82
|
+
03: 3rem,
|
|
83
|
+
04: 2.5rem,
|
|
84
|
+
),
|
|
85
|
+
),
|
|
86
|
+
headline: (
|
|
87
|
+
shared: (weight: 600, line-height: 1.25),
|
|
88
|
+
levels: (
|
|
89
|
+
01: 2.25rem,
|
|
90
|
+
02: 2rem,
|
|
91
|
+
03: 1.75rem,
|
|
92
|
+
04: (size: 1.5rem, weight: 500, line-height: 1.3),
|
|
93
|
+
05: (size: 1.25rem, weight: 500, line-height: 1.35),
|
|
94
|
+
06: (size: 1.125rem, weight: 500, line-height: 1.4),
|
|
95
|
+
),
|
|
96
|
+
),
|
|
97
|
+
) !default;
|
|
98
|
+
|
|
99
|
+
$-props: (
|
|
100
|
+
family: font-family,
|
|
101
|
+
size: font-size,
|
|
102
|
+
weight: font-weight,
|
|
103
|
+
line-height: line-height,
|
|
104
|
+
tracking: letter-spacing,
|
|
105
|
+
transform: text-transform,
|
|
106
|
+
color: color,
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
$-fallbacks: (
|
|
110
|
+
family: inherit,
|
|
111
|
+
tracking: normal,
|
|
112
|
+
transform: none,
|
|
113
|
+
color: inherit,
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
@function -resolve($prefix, $value) {
|
|
117
|
+
@if meta.type-of($value) == string and str-slice($value, 1, 1) == "@" {
|
|
118
|
+
@return var(--#{$prefix}#{str-slice($value, 2)});
|
|
119
|
+
}
|
|
120
|
+
@return $value;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@function -pad($n) {
|
|
124
|
+
@return if($n < 10, "0#{$n}", "#{$n}");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Declarations for one style. $chain is the knob prefixes to try, most
|
|
128
|
+
// specific first (e.g. headline-04, then headline).
|
|
129
|
+
@mixin -declarations($prefix, $chain, $values) {
|
|
130
|
+
@each $key, $prop in $-props {
|
|
131
|
+
$default: map.get($values, $key);
|
|
132
|
+
@if $default == null { $default: map.get($-fallbacks, $key); }
|
|
133
|
+
@if $default != null {
|
|
134
|
+
$value: -resolve($prefix, $default);
|
|
135
|
+
// Size is per level: a collection-wide size would flatten the scale.
|
|
136
|
+
$depth: if($key == size, 1, length($chain));
|
|
137
|
+
@for $i from $depth through 1 {
|
|
138
|
+
$value: var(--#{$prefix}text-#{nth($chain, $i)}-#{$key}, #{$value});
|
|
139
|
+
}
|
|
140
|
+
#{$prop}: $value;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// One style's declarations, for component rules. Components use this AND
|
|
146
|
+
// render the class: the mixin keeps static (CSS-only, PHP-rendered) markup
|
|
147
|
+
// styled without the class, the class gives consumers one selector to
|
|
148
|
+
// override every use. Both read the same knobs.
|
|
149
|
+
//
|
|
150
|
+
// @include sys.text-style(sys.$prefix, overline);
|
|
151
|
+
// @include sys.text-style(sys.$prefix, headline, 4);
|
|
152
|
+
@mixin text-style($prefix, $name, $level: null) {
|
|
153
|
+
@if $level == null {
|
|
154
|
+
$values: map.get($text-styles, $name);
|
|
155
|
+
@if $values == null { @error "Unknown text style `#{$name}`."; }
|
|
156
|
+
@include -declarations($prefix, ($name,), $values);
|
|
157
|
+
} @else {
|
|
158
|
+
$collection: map.get($text-collections, $name);
|
|
159
|
+
@if $collection == null { @error "Unknown text collection `#{$name}`."; }
|
|
160
|
+
$spec: map.get(map.get($collection, levels), $level);
|
|
161
|
+
@if $spec == null { @error "Unknown level `#{$level}` for `#{$name}`."; }
|
|
162
|
+
$own: if(meta.type-of($spec) == map, $spec, (size: $spec));
|
|
163
|
+
@include -declarations($prefix, ("#{$name}-#{-pad($level)}", $name), map.merge(map.get($collection, shared), $own));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// Emits every `.tui-text-style-*` class. Called inside the defaults layer, so
|
|
168
|
+
// component rules and utilities both win over it.
|
|
169
|
+
@mixin emit-text-styles($prefix) {
|
|
170
|
+
@each $name, $values in $text-styles {
|
|
171
|
+
:where(.#{$prefix}interface) .#{$prefix}text-style-#{$name} {
|
|
172
|
+
@include -declarations($prefix, ($name,), $values);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@each $name, $collection in $text-collections {
|
|
177
|
+
$shared: map.get($collection, shared);
|
|
178
|
+
@each $level, $spec in map.get($collection, levels) {
|
|
179
|
+
$id: "#{$name}-#{-pad($level)}";
|
|
180
|
+
$own: if(meta.type-of($spec) == map, $spec, (size: $spec));
|
|
181
|
+
:where(.#{$prefix}interface) .#{$prefix}text-style-#{$id} {
|
|
182
|
+
@include -declarations($prefix, ($id, $name), map.merge($shared, $own));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Opt-in font family utilities: the only way the knobs below take effect,
|
|
189
|
+
// since the knobs themselves are never declared.
|
|
190
|
+
@mixin emit-font-utilities($prefix) {
|
|
191
|
+
:where(.#{$prefix}interface).#{$prefix}font-sans,
|
|
192
|
+
:where(.#{$prefix}interface) .#{$prefix}font-sans {
|
|
193
|
+
font-family: var(--#{$prefix}font-family-sans, #{$font-stack-sans});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:where(.#{$prefix}interface).#{$prefix}font-mono,
|
|
197
|
+
:where(.#{$prefix}interface) .#{$prefix}font-mono {
|
|
198
|
+
font-family: var(--#{$prefix}font-family-mono, #{$font-stack-mono});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -87,6 +87,11 @@ $brand: 'blue';
|
|
|
87
87
|
|
|
88
88
|
/* Neutral: borders/dividers */
|
|
89
89
|
--#{$prefix}color-border: #{pf.tone($neutral, 300)};
|
|
90
|
+
/* Control boundaries — the border (or off-state fill) that identifies a
|
|
91
|
+
form control. WCAG 1.4.11 wants 3:1 against everything it sits on and
|
|
92
|
+
against the control's own fill. color-border is decorative and can't
|
|
93
|
+
carry that. 450 clears 3.16:1 against white, surface (25) and muted (100). */
|
|
94
|
+
--#{$prefix}color-border-control: #{pf.tone($neutral, 450)};
|
|
90
95
|
--#{$prefix}color-divider: #{pf.tone($neutral, 200)};
|
|
91
96
|
|
|
92
97
|
/* Neutral: control fills — hover washes, quiet fills, off-state tracks.
|
|
@@ -259,6 +264,8 @@ $generative-interact-shift: 0.05 !default; // hover/active darkens by this
|
|
|
259
264
|
|
|
260
265
|
/* Borders */
|
|
261
266
|
--#{$prefix}color-border: #{pf.tone($neutral, 750)};
|
|
267
|
+
/* 3.64:1+ against surface 975, faces 950 and elevated/muted 900. */
|
|
268
|
+
--#{$prefix}color-border-control: #{pf.tone($neutral, 500)};
|
|
262
269
|
--#{$prefix}color-divider: #{pf.tone($neutral, 800)};
|
|
263
270
|
|
|
264
271
|
/* Control fills */
|
package/styles/system/index.scss
CHANGED
package/tui-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2.
|
|
3
|
-
"generated": "2026-10-
|
|
2
|
+
"version": "0.2.24",
|
|
3
|
+
"generated": "2026-10-02T03:57:30.563Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"Accordion": {
|
|
6
6
|
"props": {
|
|
@@ -565,6 +565,7 @@
|
|
|
565
565
|
"cssTokens": [
|
|
566
566
|
"--tui-checkbox-accent",
|
|
567
567
|
"--tui-checkbox-border",
|
|
568
|
+
"--tui-checkbox-border-hover",
|
|
568
569
|
"--tui-checkbox-border-invalid",
|
|
569
570
|
"--tui-checkbox-radius",
|
|
570
571
|
"--tui-checkbox-bg",
|
|
@@ -1003,6 +1004,7 @@
|
|
|
1003
1004
|
"--tui-combobox-input-bg",
|
|
1004
1005
|
"--tui-combobox-input-fg",
|
|
1005
1006
|
"--tui-combobox-input-border",
|
|
1007
|
+
"--tui-combobox-input-border-hover",
|
|
1006
1008
|
"--tui-combobox-input-border-focus",
|
|
1007
1009
|
"--tui-combobox-input-radius",
|
|
1008
1010
|
"--tui-combobox-content-bg",
|
|
@@ -1909,6 +1911,7 @@
|
|
|
1909
1911
|
"--tui-multicombobox-control-bg Token-field background",
|
|
1910
1912
|
"--tui-multicombobox-control-fg Text / icon colour in the control",
|
|
1911
1913
|
"--tui-multicombobox-control-border Control border colour (rest)",
|
|
1914
|
+
"--tui-multicombobox-control-border-hover Control border colour (hover; opt-in, default: no change)",
|
|
1912
1915
|
"--tui-multicombobox-control-border-focus Control border colour (focus / open)",
|
|
1913
1916
|
"--tui-multicombobox-control-radius Control border radius",
|
|
1914
1917
|
"--tui-multicombobox-content-bg Listbox background",
|
|
@@ -2009,6 +2012,7 @@
|
|
|
2009
2012
|
"--tui-multiselect-trigger-bg",
|
|
2010
2013
|
"--tui-multiselect-trigger-fg",
|
|
2011
2014
|
"--tui-multiselect-trigger-border",
|
|
2015
|
+
"--tui-multiselect-trigger-border-hover",
|
|
2012
2016
|
"--tui-multiselect-trigger-border-focus",
|
|
2013
2017
|
"--tui-multiselect-trigger-radius",
|
|
2014
2018
|
"--tui-multiselect-content-bg",
|
|
@@ -2042,6 +2046,79 @@
|
|
|
2042
2046
|
"use": null,
|
|
2043
2047
|
"notFor": null
|
|
2044
2048
|
},
|
|
2049
|
+
"NavMenu": {
|
|
2050
|
+
"props": {
|
|
2051
|
+
"style": {
|
|
2052
|
+
"type": "CSSProperties",
|
|
2053
|
+
"required": false
|
|
2054
|
+
},
|
|
2055
|
+
"title": {
|
|
2056
|
+
"type": "string",
|
|
2057
|
+
"required": false
|
|
2058
|
+
},
|
|
2059
|
+
"className": {
|
|
2060
|
+
"type": "string",
|
|
2061
|
+
"required": false
|
|
2062
|
+
},
|
|
2063
|
+
"id": {
|
|
2064
|
+
"type": "string",
|
|
2065
|
+
"required": false
|
|
2066
|
+
},
|
|
2067
|
+
"role": {
|
|
2068
|
+
"type": "AriaRole",
|
|
2069
|
+
"required": false
|
|
2070
|
+
},
|
|
2071
|
+
"rel": {
|
|
2072
|
+
"type": "string",
|
|
2073
|
+
"required": false
|
|
2074
|
+
},
|
|
2075
|
+
"onChange": {
|
|
2076
|
+
"type": "FormEventHandler<HTMLDivElement>",
|
|
2077
|
+
"required": false
|
|
2078
|
+
},
|
|
2079
|
+
"onClick": {
|
|
2080
|
+
"type": "MouseEventHandler<HTMLDivElement>",
|
|
2081
|
+
"required": false
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
"cssTokens": [
|
|
2085
|
+
"--tui-nav-menu-group-gap",
|
|
2086
|
+
"--tui-nav-menu-item-gap",
|
|
2087
|
+
"--tui-nav-menu-item-height",
|
|
2088
|
+
"--tui-nav-menu-item-padding-inline",
|
|
2089
|
+
"--tui-nav-menu-item-radius",
|
|
2090
|
+
"--tui-nav-menu-item-font-size",
|
|
2091
|
+
"--tui-nav-menu-item-fg",
|
|
2092
|
+
"--tui-nav-menu-item-weight",
|
|
2093
|
+
"--tui-nav-menu-item-bg-hover",
|
|
2094
|
+
"--tui-nav-menu-item-fg-hover",
|
|
2095
|
+
"--tui-nav-menu-item-bg-current",
|
|
2096
|
+
"--tui-nav-menu-item-fg-current",
|
|
2097
|
+
"--tui-nav-menu-item-weight-current",
|
|
2098
|
+
"--tui-nav-menu-item-fg-ancestor",
|
|
2099
|
+
"--tui-nav-menu-item-weight-ancestor",
|
|
2100
|
+
"--tui-nav-menu-item-fg-disabled",
|
|
2101
|
+
"--tui-nav-menu-icon-size",
|
|
2102
|
+
"--tui-nav-menu-indicator-width",
|
|
2103
|
+
"--tui-nav-menu-indicator-color",
|
|
2104
|
+
"--tui-nav-menu-sub-indent",
|
|
2105
|
+
"--tui-nav-menu-sub-border"
|
|
2106
|
+
],
|
|
2107
|
+
"story": {
|
|
2108
|
+
"title": "Components/NavMenu",
|
|
2109
|
+
"tags": [
|
|
2110
|
+
"autodocs",
|
|
2111
|
+
"stable"
|
|
2112
|
+
]
|
|
2113
|
+
},
|
|
2114
|
+
"subcomponents": null,
|
|
2115
|
+
"description": null,
|
|
2116
|
+
"gotchas": null,
|
|
2117
|
+
"examples": null,
|
|
2118
|
+
"related": null,
|
|
2119
|
+
"use": null,
|
|
2120
|
+
"notFor": null
|
|
2121
|
+
},
|
|
2045
2122
|
"Notice": {
|
|
2046
2123
|
"props": {
|
|
2047
2124
|
"inline": {
|
|
@@ -2579,6 +2656,7 @@
|
|
|
2579
2656
|
"--tui-radio-accent",
|
|
2580
2657
|
"--tui-radio-size",
|
|
2581
2658
|
"--tui-radio-border",
|
|
2659
|
+
"--tui-radio-border-hover",
|
|
2582
2660
|
"--tui-radio-border-invalid",
|
|
2583
2661
|
"--tui-radio-bg",
|
|
2584
2662
|
"--tui-radio-gap",
|
|
@@ -2834,6 +2912,7 @@
|
|
|
2834
2912
|
"--tui-search-select-trigger-bg",
|
|
2835
2913
|
"--tui-search-select-trigger-fg",
|
|
2836
2914
|
"--tui-search-select-trigger-border",
|
|
2915
|
+
"--tui-search-select-trigger-border-hover",
|
|
2837
2916
|
"--tui-search-select-trigger-border-focus",
|
|
2838
2917
|
"--tui-search-select-trigger-radius",
|
|
2839
2918
|
"--tui-search-select-panel-bg",
|
|
@@ -3152,6 +3231,7 @@
|
|
|
3152
3231
|
"--tui-select-trigger-bg",
|
|
3153
3232
|
"--tui-select-trigger-fg",
|
|
3154
3233
|
"--tui-select-trigger-border",
|
|
3234
|
+
"--tui-select-trigger-border-hover",
|
|
3155
3235
|
"--tui-select-trigger-border-focus",
|
|
3156
3236
|
"--tui-select-trigger-radius",
|
|
3157
3237
|
"--tui-select-content-bg",
|
|
@@ -4074,7 +4154,18 @@
|
|
|
4074
4154
|
"tui-text-success",
|
|
4075
4155
|
"tui-text-white",
|
|
4076
4156
|
"tui-text-contrast-high",
|
|
4077
|
-
"tui-text-contrast-low"
|
|
4157
|
+
"tui-text-contrast-low",
|
|
4158
|
+
"tui-font-sans",
|
|
4159
|
+
"tui-font-mono"
|
|
4160
|
+
],
|
|
4161
|
+
"textStyles": [
|
|
4162
|
+
"tui-text-style-display-{01|02|03|04}",
|
|
4163
|
+
"tui-text-style-headline-{01|02|03|04|05|06}",
|
|
4164
|
+
"tui-text-style-body",
|
|
4165
|
+
"tui-text-style-body-sm",
|
|
4166
|
+
"tui-text-style-label",
|
|
4167
|
+
"tui-text-style-caption",
|
|
4168
|
+
"tui-text-style-overline"
|
|
4078
4169
|
],
|
|
4079
4170
|
"borders": [
|
|
4080
4171
|
"tui-border",
|
package/utils/listbox/group.js
CHANGED
|
@@ -33,7 +33,9 @@ export function createListboxGroupComponents(config) {
|
|
|
33
33
|
}, [groupContext]);
|
|
34
34
|
// No aria-hidden — aria-labelledby on Group references this element,
|
|
35
35
|
// so screen readers need access to read the label text.
|
|
36
|
-
return (_jsx("div", { id: groupContext ? `${groupContext.groupId}-label` : undefined,
|
|
36
|
+
return (_jsx("div", { id: groupContext ? `${groupContext.groupId}-label` : undefined,
|
|
37
|
+
// Shared text style: one class restyles every group label at once.
|
|
38
|
+
className: cx(labelClass, 'tui-text-style-overline', className), children: children }));
|
|
37
39
|
}
|
|
38
40
|
LabelComponent.displayName = `${componentName}.Label`;
|
|
39
41
|
return { Group: GroupComponent, Label: LabelComponent };
|