@tangible/ui 0.2.38 → 0.2.39

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/styles/app.css CHANGED
@@ -26,6 +26,8 @@
26
26
  --tui-text-body-line-height: 1.4;
27
27
  --tui-text-body-sm-line-height: 1.4;
28
28
  --tui-field-helper-fg: var(--tui-color-fg-muted);
29
+ --tui-table-head-transform: none;
30
+ --tui-table-font-size: var(--tui-typography-size-sm);
29
31
  }
30
32
  :where(.tui-interface :any-link) {
31
33
  cursor: pointer;
@@ -272,6 +272,40 @@
272
272
  }
273
273
  }
274
274
  }
275
+ // -------------------------------------------------------------------------
276
+ // align="start" (inline only): Head and Body top-aligned, a lone icon
277
+ // centred on the Body's first line, the Foot still centred.
278
+ // -------------------------------------------------------------------------
279
+ // Head and Body share padding-block in inline mode, so their tops line up.
280
+ // An icon-only Head takes the Body's font size and is one line tall (1lh,
281
+ // after a 1.4em fallback: the interface line-height), so its centred icon
282
+ // sits on line one. Coupling: 1lh is the Head's line-height; a consumer
283
+ // who changes only the Body's line-height breaks the alignment.
284
+ // :where() keeps the row at (0,1,0) like the slot rules above, so it stays
285
+ // overridable; it wins on source order. Child combinators, as in Card: a
286
+ // Notice nested in this one's Body must not pick up its alignment.
287
+ @container tuiNotice (width >= 400px) {
288
+ :where(&[data-align="start"]) > .#{sys.$prefix}notice__inner {
289
+ align-items: flex-start;
290
+
291
+ > .#{sys.$prefix}notice__foot {
292
+ align-self: center;
293
+ }
294
+
295
+ > .#{sys.$prefix}notice__head:has(> .#{sys.$prefix}notice__icon:only-child) {
296
+ box-sizing: content-box;
297
+ block-size: 1.4em;
298
+ block-size: 1lh;
299
+ }
300
+ }
301
+
302
+ // Only sm sets an explicit Body size (md and lg inherit), so only sm needs
303
+ // the Head to match. A future lg Body size needs a rule here too.
304
+ :where(&.is-size-sm[data-align="start"]) > .#{sys.$prefix}notice__inner > .#{sys.$prefix}notice__head {
305
+ font-size: var(--#{sys.$prefix}typography-size-sm);
306
+ }
307
+ }
308
+
275
309
  // -------------------------------------------------------------------------
276
310
  // Reserve space for dismiss button when present (stacked mode only)
277
311
  // -------------------------------------------------------------------------
@@ -4,6 +4,9 @@
4
4
  --tui-table-border
5
5
  --tui-table-bg
6
6
  --tui-table-bg-head
7
+ --tui-table-font-size
8
+ --tui-table-head-transform
9
+ --tui-table-head-tracking
7
10
  --tui-table-fg
8
11
  --tui-table-padding
9
12
  --tui-table-selected-bg
@@ -21,6 +24,12 @@
21
24
  // --tui-table-bg-head Header and footer background (default: bg-muted, so
22
25
  // the head reads as one on tinted pages too)
23
26
  // --tui-table-fg Text color (header/footer always; body inherits unless set)
27
+ // --tui-table-font-size Cell text size (default typography-size-md; the
28
+ // app sheet sets sm, as the list template does)
29
+ // --tui-table-head-transform / -tracking
30
+ // Head and foot casing (default uppercase / normal).
31
+ // The app sheet sets `none`: the Figma list template
32
+ // uses sentence case.
24
33
  // --tui-table-selected-bg Selected row background
25
34
  // --tui-table-selected-fg Selected row text color
26
35
  // --tui-table-padding Cell padding
@@ -41,7 +50,7 @@
41
50
  --_fg: var(--#{sys.$prefix}table-fg, var(--#{sys.$prefix}color-fg));
42
51
  --_padding: var(--#{sys.$prefix}table-padding, var(--#{sys.$prefix}spacing-sm));
43
52
 
44
- font-size: var(--#{sys.$prefix}typography-size-md);
53
+ font-size: var(--#{sys.$prefix}table-font-size, var(--#{sys.$prefix}typography-size-md));
45
54
  width: 100%;
46
55
  border-collapse: collapse;
47
56
  border-bottom: var(--#{sys.$prefix}border-width) solid var(--_border);
@@ -57,28 +66,6 @@
57
66
  padding-inline: var(--_padding);
58
67
  padding-block: var(--_padding);
59
68
  }
60
-
61
- &__sortButton {
62
- padding: unset;
63
- display: inline-flex;
64
- gap: 0.5em;
65
- color: inherit;
66
- background-color: transparent;
67
- text-transform: inherit;
68
- font-size: inherit;
69
- font-weight: inherit;
70
- border-radius: var(--#{sys.$prefix}radius-sm);
71
-
72
- &:focus-visible {
73
- outline: var(--#{sys.$prefix}focus-ring-width) solid var(--#{sys.$prefix}focus-ring-color);
74
- outline-offset: var(--#{sys.$prefix}focus-ring-offset);
75
- }
76
-
77
- &__icon {
78
- min-width: 1em;
79
- }
80
- }
81
-
82
69
  // Selection checkboxes
83
70
  input[type="checkbox"] {
84
71
  accent-color: var(--#{sys.$prefix}theme-primary-base);
@@ -113,7 +100,8 @@
113
100
  td {
114
101
  color: var(--_fg);
115
102
  background-color: var(--_bg-head);
116
- text-transform: uppercase;
103
+ text-transform: var(--#{sys.$prefix}table-head-transform, uppercase);
104
+ letter-spacing: var(--#{sys.$prefix}table-head-tracking, normal);
117
105
  font-size: var(--#{sys.$prefix}typography-size-sm);
118
106
  }
119
107
  }
@@ -149,4 +137,31 @@
149
137
  -webkit-overflow-scrolling: touch;
150
138
  }
151
139
  }
140
+
141
+ // Full specificity, outside the :where() block: the sort button is a real
142
+ // <button>, and in the unlayered build the interface's button reset
143
+ // (.tui-interface button, 0,1,1: text-transform none, letter-spacing normal)
144
+ // beat a (0,1,0) rule, so sortable headers lost the head's uppercase while
145
+ // their neighbours kept it. Layered builds were fine (resets < components).
146
+ .#{sys.$prefix}interface .#{sys.$prefix}table__sortButton {
147
+ padding: unset;
148
+ display: inline-flex;
149
+ gap: 0.5em;
150
+ color: inherit;
151
+ background-color: transparent;
152
+ text-transform: inherit;
153
+ letter-spacing: inherit;
154
+ font-size: inherit;
155
+ font-weight: inherit;
156
+ border-radius: var(--#{sys.$prefix}radius-sm);
157
+
158
+ &:focus-visible {
159
+ outline: var(--#{sys.$prefix}focus-ring-width) solid var(--#{sys.$prefix}focus-ring-color);
160
+ outline-offset: var(--#{sys.$prefix}focus-ring-offset);
161
+ }
162
+
163
+ &__icon {
164
+ min-width: 1em;
165
+ }
166
+ }
152
167
  }
package/tui-manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.2.38",
3
- "generated": "2026-11-19T20:46:48.988Z",
2
+ "version": "0.2.39",
3
+ "generated": "2026-11-20T00:42:45.126Z",
4
4
  "components": {
5
5
  "Accordion": {
6
6
  "props": {
@@ -1187,6 +1187,9 @@
1187
1187
  "--tui-table-border",
1188
1188
  "--tui-table-bg",
1189
1189
  "--tui-table-bg-head",
1190
+ "--tui-table-font-size",
1191
+ "--tui-table-head-transform",
1192
+ "--tui-table-head-tracking",
1190
1193
  "--tui-table-fg",
1191
1194
  "--tui-table-padding",
1192
1195
  "--tui-table-selected-bg",
@@ -2206,6 +2209,12 @@
2206
2209
  "required": false,
2207
2210
  "description": "Inline layout: icon/title on left, content center, actions right"
2208
2211
  },
2212
+ "align": {
2213
+ "type": "\"center\" | \"start\"",
2214
+ "required": false,
2215
+ "defaultValue": "'center'",
2216
+ "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."
2217
+ },
2209
2218
  "elevated": {
2210
2219
  "type": "boolean",
2211
2220
  "required": false,