@tangible/ui 0.2.54 → 0.2.55
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/Notice/Notice.d.ts +1 -1
- package/figma-tokens.json +1 -1
- package/icons/icons.svg +1 -1
- package/icons/sprite-version.js +1 -1
- package/icons/sprite.php +1 -1
- package/package.json +1 -1
- package/styles/all.css +1 -1
- package/styles/all.expanded.css +20 -14
- package/styles/all.expanded.unlayered.css +20 -14
- package/styles/all.unlayered.css +1 -1
- package/styles/components/button.scss +4 -2
- package/styles/components/card.scss +2 -1
- package/styles/components/nav-menu.scss +15 -4
- package/styles/components/notice.scss +7 -3
- package/styles/components/pager.scss +3 -2
- package/styles/components/sidebar.scss +12 -4
- package/styles/components/toast.scss +1 -1
- package/tui-manifest.json +9 -3
- package/vanilla/styles.css +1 -1
- package/vanilla/styles.unlayered.css +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
--tui-button-bg
|
|
5
5
|
--tui-button-fg
|
|
6
6
|
--tui-button-border
|
|
7
|
+
--tui-button-border-width
|
|
7
8
|
--tui-button-radius
|
|
8
9
|
--tui-button-bg-interact
|
|
9
10
|
--tui-button-fg-interact
|
|
@@ -59,6 +60,7 @@ $_typography-lineHeight: var(--#{sys.$prefix}button-line-height, 1.4);
|
|
|
59
60
|
// --tui-button-bg Background color
|
|
60
61
|
// --tui-button-fg Foreground/text color
|
|
61
62
|
// --tui-button-border Border color
|
|
63
|
+
// --tui-button-border-width Border width (default: --tui-border-width)
|
|
62
64
|
// --tui-button-radius Border radius
|
|
63
65
|
// --tui-button-bg-interact Hover/focus/active background
|
|
64
66
|
// --tui-button-fg-interact Hover/focus/active foreground
|
|
@@ -156,7 +158,7 @@ $_typography-lineHeight: var(--#{sys.$prefix}button-line-height, 1.4);
|
|
|
156
158
|
color: var(--_fg) !important;
|
|
157
159
|
border-color: var(--_border) !important;
|
|
158
160
|
border-style: solid;
|
|
159
|
-
border-width: var(--#{sys.$prefix}border-width);
|
|
161
|
+
border-width: var(--#{sys.$prefix}button-border-width, var(--#{sys.$prefix}border-width));
|
|
160
162
|
|
|
161
163
|
// Icons track the label, never the presentation scale — the [class*=]
|
|
162
164
|
// arm outranks Icon's is-size-* rules so changes to the global icon
|
|
@@ -500,7 +502,7 @@ $_typography-lineHeight: var(--#{sys.$prefix}button-line-height, 1.4);
|
|
|
500
502
|
|
|
501
503
|
background-color: var(--_bg);
|
|
502
504
|
color: var(--_fg);
|
|
503
|
-
border: var(--#{sys.$prefix}border-width) solid var(--_border);
|
|
505
|
+
border: var(--#{sys.$prefix}button-border-width, var(--#{sys.$prefix}border-width)) solid var(--_border);
|
|
504
506
|
}
|
|
505
507
|
|
|
506
508
|
&:hover::file-selector-button {
|
|
@@ -215,7 +215,8 @@
|
|
|
215
215
|
// -------------------------------------------------------------------------
|
|
216
216
|
// :where() on the layout context keeps slot specificity equal to base
|
|
217
217
|
// selectors — consumers can override without fighting the cascade.
|
|
218
|
-
|
|
218
|
+
// rem, like Notice's and Pager's: the breakpoint scales with the text.
|
|
219
|
+
@container tuiCard (width >= 25rem) {
|
|
219
220
|
:where(&.is-layout-inline) > .#{sys.$prefix}card__inner {
|
|
220
221
|
display: flex;
|
|
221
222
|
flex-direction: row;
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
--tui-nav-menu-icon-gap
|
|
32
32
|
--tui-nav-menu-indicator-width
|
|
33
33
|
--tui-nav-menu-indicator-color
|
|
34
|
+
--tui-nav-menu-indicator-inset-block
|
|
35
|
+
--tui-nav-menu-indicator-radius
|
|
34
36
|
--tui-nav-menu-sub-indent
|
|
35
37
|
--tui-nav-menu-sub-border
|
|
36
38
|
--tui-nav-menu-bar-gap
|
|
@@ -202,6 +204,15 @@ $_knob-defaults: (
|
|
|
202
204
|
// underline on the page or its
|
|
203
205
|
// ancestor (try 2px).
|
|
204
206
|
// --tui-nav-menu-indicator-color That bar's colour
|
|
207
|
+
// --tui-nav-menu-indicator-inset-block
|
|
208
|
+
// Vertical only: the bar's gap from the
|
|
209
|
+
// row's top and bottom (default: 25%;
|
|
210
|
+
// 0 runs it the row's full height)
|
|
211
|
+
// --tui-nav-menu-indicator-radius Corner radius: the bar's two trailing
|
|
212
|
+
// corners (default: radius-xs), or the
|
|
213
|
+
// underline's ends (default:
|
|
214
|
+
// radius-full). The default differs
|
|
215
|
+
// by orientation; 0 squares both
|
|
205
216
|
// --tui-nav-menu-sub-indent / -border Nested list indent and guide line.
|
|
206
217
|
// Under a parent with an icon, the
|
|
207
218
|
// default indent lines the nested
|
|
@@ -332,10 +343,10 @@ $_knob-defaults: (
|
|
|
332
343
|
content: "";
|
|
333
344
|
position: absolute;
|
|
334
345
|
inset-inline-start: 0;
|
|
335
|
-
inset-block: 25
|
|
346
|
+
inset-block: var(--#{sys.$prefix}nav-menu-indicator-inset-block, 25%);
|
|
336
347
|
inline-size: var(--_indicator);
|
|
337
|
-
border-start-end-radius: var(--#{sys.$prefix}radius-xs);
|
|
338
|
-
border-end-end-radius: var(--#{sys.$prefix}radius-xs);
|
|
348
|
+
border-start-end-radius: var(--#{sys.$prefix}nav-menu-indicator-radius, var(--#{sys.$prefix}radius-xs));
|
|
349
|
+
border-end-end-radius: var(--#{sys.$prefix}nav-menu-indicator-radius, var(--#{sys.$prefix}radius-xs));
|
|
339
350
|
background: var(--#{sys.$prefix}nav-menu-indicator-color, var(--#{sys.$prefix}theme-primary-base));
|
|
340
351
|
}
|
|
341
352
|
}
|
|
@@ -474,7 +485,7 @@ $_knob-defaults: (
|
|
|
474
485
|
inset-inline: var(--_item-pad, var(--#{sys.$prefix}nav-menu-item-padding-inline, var(--#{sys.$prefix}spacing-sm)));
|
|
475
486
|
inset-block-end: 0;
|
|
476
487
|
block-size: var(--_indicator);
|
|
477
|
-
border-radius: var(--#{sys.$prefix}radius-full, 9999px);
|
|
488
|
+
border-radius: var(--#{sys.$prefix}nav-menu-indicator-radius, var(--#{sys.$prefix}radius-full, 9999px));
|
|
478
489
|
background: var(--#{sys.$prefix}nav-menu-indicator-color, var(--#{sys.$prefix}theme-primary-base));
|
|
479
490
|
}
|
|
480
491
|
}
|
|
@@ -214,7 +214,11 @@
|
|
|
214
214
|
align-items: center;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
// The inline breakpoint is in rem, like Pager's: the content it guards is
|
|
218
|
+
// sized in rem (text, Toast's 26rem width), so the two must scale
|
|
219
|
+
// together. A px breakpoint stacked a host's toasts once its root
|
|
220
|
+
// interface set --tui-typography-size: 15px (26rem = 390px < 400px).
|
|
221
|
+
@container tuiNotice (width >= 25rem) {
|
|
218
222
|
&.is-layout-inline {
|
|
219
223
|
// Make root a flex container so dismiss button flows at end
|
|
220
224
|
display: flex;
|
|
@@ -284,7 +288,7 @@
|
|
|
284
288
|
// :where() keeps the row at (0,1,0) like the slot rules above, so it stays
|
|
285
289
|
// overridable; it wins on source order. Child combinators, as in Card: a
|
|
286
290
|
// Notice nested in this one's Body must not pick up its alignment.
|
|
287
|
-
@container tuiNotice (width >=
|
|
291
|
+
@container tuiNotice (width >= 25rem) {
|
|
288
292
|
:where(&[data-align="start"]) > .#{sys.$prefix}notice__inner {
|
|
289
293
|
align-items: flex-start;
|
|
290
294
|
|
|
@@ -314,7 +318,7 @@
|
|
|
314
318
|
}
|
|
315
319
|
|
|
316
320
|
// In inline mode, dismiss flows so no reserved space needed
|
|
317
|
-
@container tuiNotice (width >=
|
|
321
|
+
@container tuiNotice (width >= 25rem) {
|
|
318
322
|
:where(&.is-layout-inline.is-dismissible) .#{sys.$prefix}notice__inner {
|
|
319
323
|
padding-inline-end: 0;
|
|
320
324
|
|
|
@@ -88,13 +88,14 @@
|
|
|
88
88
|
// to match the sibling buttons' height at each size tier (keyed on the
|
|
89
89
|
// `is-size-*` class the component adds). The border reads the bridged
|
|
90
90
|
// Button token defined on the group above — not Button's --_border
|
|
91
|
-
// internal, which only exists on actual Buttons
|
|
91
|
+
// internal, which only exists on actual Buttons — and Button's
|
|
92
|
+
// border-width token, so it stays the same weight as its neighbours.
|
|
92
93
|
.#{sys.$prefix}pager__ellipsis {
|
|
93
94
|
@include sys.control-sizing(sys.$prefix);
|
|
94
95
|
display: inline-flex;
|
|
95
96
|
align-items: center;
|
|
96
97
|
justify-content: center;
|
|
97
|
-
border: var(--#{sys.$prefix}border-width) solid var(--#{sys.$prefix}button-border);
|
|
98
|
+
border: var(--#{sys.$prefix}button-border-width, var(--#{sys.$prefix}border-width)) solid var(--#{sys.$prefix}button-border);
|
|
98
99
|
background: transparent;
|
|
99
100
|
color: var(--#{sys.$prefix}color-fg-muted);
|
|
100
101
|
border-radius: var(--#{sys.$prefix}radius-sm);
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
--tui-sidebar-border
|
|
9
9
|
--tui-sidebar-divider
|
|
10
10
|
--tui-sidebar-padding
|
|
11
|
+
--tui-sidebar-header-padding
|
|
12
|
+
--tui-sidebar-nav-padding
|
|
13
|
+
--tui-sidebar-footer-padding
|
|
11
14
|
--tui-sidebar-z
|
|
12
15
|
*/
|
|
13
16
|
|
|
@@ -23,7 +26,12 @@
|
|
|
23
26
|
// --tui-sidebar-fg Text color
|
|
24
27
|
// --tui-sidebar-border Edge border color (docked left/right edge)
|
|
25
28
|
// --tui-sidebar-divider Header/footer divider color
|
|
26
|
-
// --tui-sidebar-padding Internal padding
|
|
29
|
+
// --tui-sidebar-padding Internal padding: the three regions, and
|
|
30
|
+
// the collapsed rail and its toggle
|
|
31
|
+
// --tui-sidebar-header-padding Header padding (default: --tui-sidebar-padding)
|
|
32
|
+
// --tui-sidebar-nav-padding Nav padding (default: --tui-sidebar-padding).
|
|
33
|
+
// `var(--tui-spacing-md) 0` runs rows edge to edge
|
|
34
|
+
// --tui-sidebar-footer-padding Footer padding (default: --tui-sidebar-padding)
|
|
27
35
|
// --tui-sidebar-z Z-index (drawer mode only)
|
|
28
36
|
//
|
|
29
37
|
// To override from consuming code:
|
|
@@ -78,7 +86,7 @@
|
|
|
78
86
|
|
|
79
87
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}sidebar__header {
|
|
80
88
|
flex-shrink: 0;
|
|
81
|
-
padding: var(--_padding);
|
|
89
|
+
padding: var(--#{sys.$prefix}sidebar-header-padding, var(--_padding));
|
|
82
90
|
border-bottom: var(--#{sys.$prefix}border-width) solid var(--_divider);
|
|
83
91
|
|
|
84
92
|
// Flex column layout for typical header content
|
|
@@ -99,7 +107,7 @@
|
|
|
99
107
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}sidebar__footer {
|
|
100
108
|
flex-shrink: 0;
|
|
101
109
|
margin-top: auto;
|
|
102
|
-
padding: var(--_padding);
|
|
110
|
+
padding: var(--#{sys.$prefix}sidebar-footer-padding, var(--_padding));
|
|
103
111
|
border-top: var(--#{sys.$prefix}border-width) solid var(--_divider);
|
|
104
112
|
|
|
105
113
|
display: flex;
|
|
@@ -114,7 +122,7 @@
|
|
|
114
122
|
:where(.#{sys.$prefix}interface) .#{sys.$prefix}sidebar__nav {
|
|
115
123
|
flex: 1;
|
|
116
124
|
overflow-y: auto;
|
|
117
|
-
padding: var(--_padding);
|
|
125
|
+
padding: var(--#{sys.$prefix}sidebar-nav-padding, var(--_padding));
|
|
118
126
|
}
|
|
119
127
|
|
|
120
128
|
// ---------------------------------------------------------------------------
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
//
|
|
31
31
|
// Toast's own API tokens (never defined here, only read via fallback):
|
|
32
32
|
// --tui-toast-width Toast width (default 26rem — the default must keep
|
|
33
|
-
// Notice's inline container query (content ≥
|
|
33
|
+
// Notice's inline container query (content ≥ 25rem)
|
|
34
34
|
// true, or the layout falls back to stacked). Read
|
|
35
35
|
// by the REGION, which owns all sizing (toasts fill
|
|
36
36
|
// it) — override it on .tui-toast-region or
|
package/tui-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2.
|
|
3
|
-
"generated": "2026-12-
|
|
2
|
+
"version": "0.2.55",
|
|
3
|
+
"generated": "2026-12-03T05:00:14.996Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"Accordion": {
|
|
6
6
|
"props": {
|
|
@@ -333,6 +333,7 @@
|
|
|
333
333
|
"--tui-button-bg",
|
|
334
334
|
"--tui-button-fg",
|
|
335
335
|
"--tui-button-border",
|
|
336
|
+
"--tui-button-border-width",
|
|
336
337
|
"--tui-button-radius",
|
|
337
338
|
"--tui-button-bg-interact",
|
|
338
339
|
"--tui-button-fg-interact",
|
|
@@ -2371,6 +2372,8 @@
|
|
|
2371
2372
|
"--tui-nav-menu-icon-gap",
|
|
2372
2373
|
"--tui-nav-menu-indicator-width",
|
|
2373
2374
|
"--tui-nav-menu-indicator-color",
|
|
2375
|
+
"--tui-nav-menu-indicator-inset-block",
|
|
2376
|
+
"--tui-nav-menu-indicator-radius",
|
|
2374
2377
|
"--tui-nav-menu-sub-indent",
|
|
2375
2378
|
"--tui-nav-menu-sub-border",
|
|
2376
2379
|
"--tui-nav-menu-bar-gap",
|
|
@@ -2468,7 +2471,7 @@
|
|
|
2468
2471
|
"type": "\"center\" | \"start\"",
|
|
2469
2472
|
"required": false,
|
|
2470
2473
|
"defaultValue": "'center'",
|
|
2471
|
-
"description": "Inline layout only: how the Head and Body sit on the row's cross axis.\n`center` (default) centres them; `start` top-aligns them and centres a\nlone Head icon on the Body's first line, for a multi-line Body (a bold\ntitle over a detail line). The Foot stays centred either way.\nPublished as `data-align`, not an is-align class (it would collide with the flex utility).\nIgnored (with a dev warning) without `inline`, and below the 400px\ncontainer width, where inline Notices fall back to stacked. No `end`:\nnothing needs a bottom-aligned row, and `start`'s first-line rule has no\n`end` counterpart."
|
|
2474
|
+
"description": "Inline layout only: how the Head and Body sit on the row's cross axis.\n`center` (default) centres them; `start` top-aligns them and centres a\nlone Head icon on the Body's first line, for a multi-line Body (a bold\ntitle over a detail line). The Foot stays centred either way.\nPublished as `data-align`, not an is-align class (it would collide with the flex utility).\nIgnored (with a dev warning) without `inline`, and below the 25rem (400px at a 16px root)\ncontainer width, where inline Notices fall back to stacked. No `end`:\nnothing needs a bottom-aligned row, and `start`'s first-line rule has no\n`end` counterpart."
|
|
2472
2475
|
},
|
|
2473
2476
|
"elevated": {
|
|
2474
2477
|
"type": "boolean",
|
|
@@ -3893,6 +3896,9 @@
|
|
|
3893
3896
|
"--tui-sidebar-border",
|
|
3894
3897
|
"--tui-sidebar-divider",
|
|
3895
3898
|
"--tui-sidebar-padding",
|
|
3899
|
+
"--tui-sidebar-header-padding",
|
|
3900
|
+
"--tui-sidebar-nav-padding",
|
|
3901
|
+
"--tui-sidebar-footer-padding",
|
|
3896
3902
|
"--tui-sidebar-z"
|
|
3897
3903
|
],
|
|
3898
3904
|
"story": {
|