@apliteni/apliteni-ui 0.177.0 → 0.179.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.
@@ -571,7 +571,9 @@ must have a search field is a rule rather than a recommendation:
571
571
  A drawer is a panel against one edge of the screen. It appears over a scrim. It lets the reader
572
572
  look at or change one thing without leaving the list that opened it. **It groups by heading, never
573
573
  by card:** `DrawerSection` puts a heading over a `<dl>` of label and value pairs. A screen reader
574
- then hears each label with its value. **Groups stand 32px apart, with no line between them.**
574
+ then hears each label with its value. **An icon button at the end of a value, such as a copy
575
+ button, sits on the value's line**, and its row keeps a text row's height. On a phone it reaches
576
+ the 44px tap target. **Groups stand 32px apart, with no line between them.**
575
577
  Each group heading stands on a 1px `--border` line, the same line as a table head. **A record can
576
578
  lead with its key figure:** put a `<dl class="ui-drawer__figure">` in a group with no heading, as
577
579
  the first group. Its `<dt>` is the label, and its `<dd>` holds a `.ui-drawer__figure-value`, set at
@@ -937,7 +939,7 @@ has no radius, so **the card paints that ring instead**.
937
939
 
938
940
  ### A toolbar at one column
939
941
 
940
- A toolbar above a list opens with a search box, followed by its filters and then its view switch.
942
+ A toolbar above a list opens with a search box, followed by its filters and then its view switch. A create action stands on its own row above the toolbar, at the left.
941
943
  `.ui-toolbar` gives its text field a `6rem` flex basis. The row breaks only when the field would
942
944
  be squeezed below that size. At `560px`, that basis would become the field's size rather than its
943
945
  floor. So at that width the field uses `flex-basis: 100%`. It takes the full line, and the rest
@@ -953,14 +955,14 @@ chips, the add control and Clear all stand at 32px, level with the field, a drop
953
955
  small Segmented and a small button. Give the Segmented and the button `size="sm"` yourself. The
954
956
  small search field stops at `--panel-sm`, 320px, and the free width goes before the last
955
957
  control. A full-size search field still takes the free width. At `560px` and below, each search
956
- field takes the full line. On a touch screen the row keeps the full height: the field is 46px,
957
- and a chip, Clear all, a dropdown trigger, the Segmented and the button are 40px on a line
958
- without the field. At both sizes, the text and the glyphs of the row share one vertical centre,
958
+ field takes the full line. On a touch screen the row is 40px, a chip's height: the field keeps
959
+ 16px text, and a chip, Clear all, a dropdown trigger, the Segmented and the button are 40px on
960
+ every line of the row. At both sizes, the text and the glyphs of the row share one vertical centre,
959
961
  within about 1.5px.
960
962
 
961
963
  ### Segmented strips that outgrow their column
962
964
 
963
- The enabled selected pill uses an accent fill with contrasting label ink in both themes. A disabled selected pill keeps a quiet fill and disabled ink. Only keyboard focus draws an outline.
965
+ The enabled selected pill uses the primary button's accent fill and label ink, with a thin accent edge that marks it wherever that fill is faint on the track. A disabled or underline selection has no edge. A disabled selected pill keeps a quiet fill and disabled ink. Only keyboard focus draws an outline.
964
966
 
965
967
  A pill strip lays out its choices in one row while they fit. When they do not fit, the choices
966
968
  wrap onto further rows. **It never widens past its container:** a twelve-month picker in a phone
@@ -1016,8 +1018,14 @@ vanilla sections above.
1016
1018
  ### React tables
1017
1019
 
1018
1020
  Tables fill their container by default. Inside `.ui-card--fit`, tables size to their content.
1019
- A `.ui-table__title` cell gives a text column the remaining width. A column takes `cell` for it:
1020
- `title`, `code`, `long`, `strong` or `act`. `rowHeader` renders the column's body cells as `th scope="row"`.
1021
+ A `.ui-table__title` cell gives a text column the remaining width. **A title cell is never narrower
1022
+ than 20 characters**, or a pinned column's ceiling, so a table wider than its frame scrolls and a
1023
+ two-word name in a pinned column stays on one line. A column takes `cell` for it:
1024
+ `title`, `code`, `long`, `strong` or `act`. **A column's `width`, such as `'12ch'`, holds while
1025
+ the rows reload or are empty**, so the columns do not move when data arrives; longer content still
1026
+ widens it. The columns with no `width` share the free room, so set the narrow columns and leave the
1027
+ title column unset to keep it the widest. When the set widths and a title column's 20 characters add up to more than the table, the
1028
+ columns share the room by their content, so the edges can move on a narrow screen. `rowHeader` renders the column's body cells as `th scope="row"`.
1021
1029
  `DataTable` takes the vanilla hooks as props: `zebra`, `hover` (on unless `false`), `density`
1022
1030
  (`dense`, `compact` or `comfortable`),
1023
1031
  `stickyHeader` and `pinnedIdentity`. **`pinnedIdentity: true` pins column 0; a column key pins that column**,
@@ -1071,7 +1079,7 @@ before the hint rather than in its place**. This keeps a hint with consent, safe
1071
1079
  on screen while the reader decides whether to retry. The error also uses `role="alert"`, so a new
1072
1080
  error is announced without moving focus. Required markers are decorative. Native controls carry
1073
1081
  `required`. `Field` exposes the frame for a control that you render yourself. Its child function
1074
- receives a stable ID, `required`, `aria-invalid` and `aria-describedby`. Spread them on a `Dropdown` and the label and then the value name its trigger. `FileField` accepts one
1082
+ receives a stable ID, `required`, `aria-invalid` and `aria-describedby`. Spread them on a `Dropdown` or a `DatePicker`, and the label and then the value name its trigger. An error marks the trigger invalid and gives it the kit's invalid edge. `FileField` accepts one
1075
1083
  file from the picker or by drop. `accept` only filters the system picker, so you validate before
1076
1084
  upload.
1077
1085
 
@@ -1134,10 +1142,10 @@ toolbar's row rule and the field's focus ring therefore reach it from the kit's
1134
1142
  **There is no clear button**, because the browser paints its own near-black button on the light
1135
1143
  field and white button on the dark one.
1136
1144
  **`size="sm"` is the field above a dense table.** With a mouse it is 32px high with `--text-sm`, the
1137
- text of the dense rows, and the pill corner. Without `size`, the field keeps its full size. At every
1145
+ text of the dense rows, and the field corner. Without `size`, the field keeps its full size. At every
1138
1146
  size, the leading glyph sits on the vertical centre of the text and the caret. A `TextField` glyph
1139
1147
  does the same. On a touch screen a
1140
- small field is the full field. Only `SearchField` takes a size: `TextField` and `SelectField` keep
1148
+ small field is 40px with 16px text, because iOS zooms into a field with smaller text. Only `SearchField` takes a size: `TextField` and `SelectField` keep
1141
1149
  one size, because a form keeps the full size. See
1142
1150
  [A toolbar at one column](#a-toolbar-at-one-column).
1143
1151
 
@@ -1165,8 +1173,17 @@ and loses only the tint. **Blocked beats every other state in the paint, and its
1165
1173
  through.** **Hover is the kit's row hover**, not a tint of the accent. **The current period is a
1166
1174
  ring**, a hairline in the accent, and it stands aside while the cell holds focus, so a focused
1167
1175
  current period draws one band and not two. **Nothing is drawn under the grid:** no legend and no per-period
1168
- swatch. **Below 560px the panel is a sheet, and a sheet is the kit's drawer**, and below the phone
1169
- step the gap between weeks opens to reach the 44px tap floor. Its one breakpoint literal is one of
1176
+ swatch. **Below 560px the panel is a sheet, and a sheet is the kit's drawer**. **The sheet opens
1177
+ with the chosen period in view.** Its body scrolls the least distance that shows the chosen cell
1178
+ with 20px below it, and focus starts on that cell. With no chosen period, the sheet opens at the
1179
+ top. Nothing moves, because the body scrolls before the sheet slides in. When the web font
1180
+ arrives after the first open, the sheet measures again after the font loads and one frame, so the
1181
+ 20px holds. It does not move the body after the reader scrolls, touches or types in the sheet. **Inside a `Field`,
1182
+ the sheet's title is the field's label**, because the sheet covers the field. An `ariaLabel` wins
1183
+ over the label, and outside a `Field` the placeholder is the title. The trigger's name is
1184
+ that label or `ariaLabel` and then the value it shows, such as "Due date, August 2026". **In a `Modal`, the open panel draws over the dialog's edge**,
1185
+ below the field, or above it where there is more room, and scrolls inside itself when neither
1186
+ side holds it. Below the phone step the gap between weeks opens to reach the 44px tap floor. Its one breakpoint literal is one of
1170
1187
  the steps in [Breakpoints](foundations.md#breakpoints).
1171
1188
 
1172
1189
  ### React file drop
@@ -1347,7 +1364,7 @@ The button and tick follow `value` until the caller updates it. `AccountMenu` ma
1347
1364
  Tab stop whatever the choice is.** Arrow keys wrap past disabled options; Home and End reach
1348
1365
  the first and last enabled choice. `block` fills the container with either appearance. An
1349
1366
  option's `icon` names a kit glyph drawn before its label. With `iconOnly`, the glyph is the
1350
- whole button and the label becomes its accessible name.
1367
+ whole button and the label becomes its accessible name and its hover title.
1351
1368
  **`size="sm"` compacts the pill appearance only:** under the underline appearance it changes
1352
1369
  the type size and leaves the tab at its full height.
1353
1370
  - **`Confirm`** builds on `Modal` as an `alertdialog`. It focuses the safe action and draws it
@@ -1363,8 +1380,9 @@ The button and tick follow `value` until the caller updates it. `AccountMenu` ma
1363
1380
  account at the rail foot and leaves only Sign out in its menu. It shows no section counts.
1364
1381
  Pass `back` to show the way up from a subpage, above the page title.
1365
1382
  **`tools` puts small tools for the whole page at the end of the title row** (#736), such as
1366
- a version badge or a `size="sm"` button. The lede stands under the whole row. The tools do
1367
- not wrap, so keep them to what fits beside a short title on a 390px phone. `actions` keeps
1383
+ a version badge, a period picker or a `size="sm"` button. The lede stands under the whole row.
1384
+ **Tools that do not fit beside the title go under it**, so a period picker and a view action
1385
+ can stay on a 390px phone. `actions` keeps
1368
1386
  the page's buttons in their own row under the title.
1369
1387
  **`accountItems` adds a product's rows, such as Account settings and Support, at the top of
1370
1388
  every account menu,** above the Theme row and Sign out. A row takes `href` to go somewhere,
@@ -1437,7 +1455,12 @@ The button and tick follow `value` until the caller updates it. `AccountMenu` ma
1437
1455
  its description; the label stays the box's name. **`CheckList` groups `Checkbox` children in a
1438
1456
  fieldset under a legend** set in the field label's type. A disabled box dims its hint with its label.
1439
1457
  - **`Snippet`** displays `code` as plain text, and **copying always writes the original `code`
1440
- string**, whatever `children` displays.
1458
+ string**, whatever `children` displays. **`Snippet` is a block of code, not the only way to
1459
+ copy.** To copy an identifier where it stands, in a drawer row or a table cell, put an
1460
+ icon-only `Button` with the `copy` glyph beside it, such as
1461
+ `<Button variant="ghost" size="sm" icon="copy" iconOnly>Copy INV-1162</Button>`. Its words
1462
+ become its accessible name and its hover title. Swap the glyph to `check` for a moment after
1463
+ the copy, as `Snippet` does.
1441
1464
  - **`EmptyState`** uses the vanilla markup and CSS, and **the page supplies its own `h1`.**
1442
1465
  - **`ThemeToggle`** cycles through dark, light, auto, then dark. It stores explicit choices
1443
1466
  and follows the OS otherwise. It sets `data-theme-choice` and the resolved `data-theme` on
@@ -1508,14 +1531,19 @@ asterisk. **A `dropdown()` inside `field()` is wired through its trigger button*
1508
1531
  dropdown's `id` sits on a wrapper that a label cannot name. The label and then the chosen value name
1509
1532
  the trigger, the error or hint describes it, and an error marks it invalid. The list is named by the
1510
1533
  label unless you give it an `ariaLabel`. A control outside a `field()` needs its own `ariaLabel`. A
1511
- placeholder is not a name. **In a field, a dropdown trigger has the shape of a text input.** It
1512
- has the input's pill corner, its top and bottom padding and its type size, so the two have the
1513
- same height. Its side padding is 16px, 1px more than the input's. On a touch screen its text is a
1534
+ placeholder is not a name. An invalid trigger has the kit's invalid edge, also under the pointer.
1535
+ With keyboard focus, a trigger shows the focus ring only, as a text input does. Its edge is
1536
+ transparent under the ring, also when the trigger is invalid.
1537
+ **In a field, a dropdown trigger has the height of a text input.** It has the input's top and
1538
+ bottom padding and its type size, so the two have the same height. It keeps the pill corner, and
1539
+ the text input has the field corner. Its side padding is 16px, 1px more than the input's. On a touch screen its text is a
1514
1540
  fixed 16px, as the input's is, also when the host changes `--text-base`. A long value stays on
1515
1541
  one line, starts at the left and ends with an ellipsis, as in a select, so the trigger keeps the
1516
1542
  input's height at every value length. A person mark stands as far from the left edge as from the
1517
- top and bottom edges. A date picker in a field does the same. Outside a field, for example in a
1518
- filter bar, a toolbar or the topbar, the trigger is the same pill. See
1543
+ top and bottom edges. The chosen value has the input's regular weight and normal letter spacing.
1544
+ It keeps its own ink: the value is `--strong`, a disabled value keeps the off ink, and a person
1545
+ picker's placeholder keeps the muted ink. A date picker in a field does the same. Outside a field, for example in a
1546
+ filter bar, a toolbar or the topbar, the trigger is also a pill, and the value keeps its own weight. See
1519
1547
  [Control corners](foundations.md#control-corners).
1520
1548
  Put a form on a card, not on the page ground. A field is drawn by its edge, but the page ground
1521
1549
  is too close to the field's own fill for you to see that edge. See
@@ -70,17 +70,21 @@ first label on the page title's edge.
70
70
 
71
71
  ## Control corners
72
72
 
73
- **Every control that a reader presses or types into is a pill.** This covers each button size,
74
- each dropdown trigger, also in a form, a filter chip and the filter bar's add control, a search
75
- field, a text field, a select and every other one-line field. The corner is `--radius-pill`. A
76
- wordless button is square, so the pill makes it a circle. In a toolbar beside a full field or a filter
77
- bar, a wordless button takes the row's height and stays a circle. A dropdown in a form and the text input
78
- beside it have the same corner and the same height. The kit's padding keeps text, glyphs, units
79
- and the focus ring inside the rounded edge. Give a control of your own the same corner.
73
+ **Every control that a reader presses is a pill.** This covers each button size, each dropdown
74
+ trigger, also in a form, a filter chip and the filter bar's add control, a select and the back
75
+ link. The corner is `--radius-pill`. A wordless button is square, so the pill makes it a circle.
76
+ The account button in the band is a 40px circle. In a toolbar beside a full field or a filter
77
+ bar, a wordless button takes the row's height and stays a circle. The kit's padding keeps text,
78
+ glyphs, units and the focus ring inside the rounded edge. Give a control of your own the same
79
+ corner.
80
+
81
+ **Every field that a reader types into has the field corner, `--radius-md`.** This covers a text
82
+ field, a search field of each size, the search field in a dropdown panel, the page field of a
83
+ pager and a text area. In a form, a dropdown trigger has the height of the text field beside it,
84
+ but it keeps the pill. Give a field of your own the same corner.
80
85
 
81
86
  These parts keep another corner:
82
87
 
83
- - A text area keeps `--radius-md`, because a pill does not fit several lines.
84
88
  - A segmented strip keeps its own rounded track.
85
89
  - A menu row, a palette row and a date picker's day cell keep their small corner. They are rows
86
90
  and cells in a panel, not controls on the page.
@@ -304,8 +308,10 @@ is the named exception. It uses a soft fill, and neutral chip tones use
304
308
  floating panel in dark and vanished on a white card in light.
305
309
 
306
310
  **A selected item is the one exception.** Selection is marked by a background highlight. An
307
- enabled chosen segmented pill fills `--accent` on its track, with `--accent-contrast` ink in light
308
- and `--signal-contrast` ink in dark. A disabled chosen pill keeps `--surface-3` and the disabled
311
+ enabled chosen segmented pill takes the primary button's pair, `--accent-strong` with
312
+ `--accent-contrast` ink, and a 1px `--accent` edge. Where the fill is under 3:1 on the track, as
313
+ under the default accent in dark, the edge is the mark. A disabled chosen pill and an underline tab
314
+ take no edge. A disabled chosen pill keeps `--surface-3` and the disabled
309
315
  ink.
310
316
 
311
317
  **What floats depends on the surface's job, not on its rung.** A floating surface has the
@@ -458,8 +464,8 @@ A bare `input { font-size: 20px !important; }` has the same specificity as the n
458
464
  only while your stylesheet loads after the kit's.
459
465
 
460
466
  **A small field is the full field on a touch screen.** With a mouse, `SearchField size="sm"` is
461
- 32px high with `--text-sm`. On a touch screen it is 46px high with 16px text, and its toolbar
462
- keeps the full row. So the small size never takes a field under 16px.
467
+ 32px high with `--text-sm`. On a touch screen it is 40px high with 16px text, and its toolbar
468
+ and a create row above it stand the same height. So the small size never takes a field under 16px.
463
469
 
464
470
  ## A tap reaches the floor below the phone step
465
471
 
@@ -481,7 +487,7 @@ unless it cannot overflow. Only a row whose marks are each a fixed square, a dra
481
487
  or a dense table's action cell opens across. Some families get no layer. The Accessibility
482
488
  minimums page names all of them. Rows that share an edge have no space outside a row for a
483
489
  layer. `input`, `select` and `textarea` generate no pseudo-element and use their own height.
484
- A back link draws 24 on both axes because it cannot know what the shell places above it.
490
+ A back link draws 32 high, and its layer reaches 6 above and 6 below it to make 44.
485
491
 
486
492
  The whole system is behind `@media (max-width: 560px) and (pointer: coarse)`. A transparent
487
493
  layer is also a hover surface, and a coarse pointer has no hover. The sheet is imported
@@ -50,12 +50,12 @@
50
50
 
51
51
  <!-- rule: one-shape -->
52
52
 
53
- **Rule:** Draw buttons, dropdowns, filter chips and one-line fields as pills, and a wordless button as a circle.
53
+ **Rule:** Draw buttons, dropdowns, filter chips and selects as pills, and a wordless button as a circle.
54
54
 
55
55
  **Why:** One shape marks what a reader can use.
56
56
 
57
- **Except:** A text area keeps a small corner, because a pill does not fit several lines.
57
+ **Except:** A text field has the field corner, because it is a box for text.
58
58
 
59
- **Do:** Search, status and buttons, all pills.
59
+ **Do:** A search field with the field corner beside pill buttons.
60
60
 
61
- **Don't:** A square button and field beside a round dropdown.
61
+ **Don't:** Square buttons and a pill search field.
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Don't:** Use `--accent` as ground.
40
40
 
41
- **Except:** Only Nebula gives the two tokens different values. Artur chose `--accent` for dark selected Segmented pills on #614.
41
+ **Except:** Only Nebula gives the two tokens different values. A dark selected Segmented pill adds an `--accent` edge to its `--accent-strong` ground (#832).
42
42
 
43
43
  <!-- rule: accent-strong -->
44
44
 
@@ -54,7 +54,7 @@
54
54
 
55
55
  **Don't:** Add a second accent mark, such as an accent counter, to a selected tab.
56
56
 
57
- **Except:** NavTabs pills keep accent ink on soft fill. Fill alone is too faint to mark the route. Artur chose this on #429.
57
+ **Except:** NavTabs pills keep accent ink on soft fill, as fill alone is too faint (#429). A Segmented pill's edge belongs to its fill.
58
58
 
59
59
  ## Theme checks
60
60
 
@@ -68,20 +68,6 @@
68
68
 
69
69
  **Don't:** Open that drawer across the page from its button.
70
70
 
71
- ## Group one category at a time
72
-
73
- <!-- rule: one-category -->
74
-
75
- **Rule:** Give views, filters, sorting and actions separate groups and styles.
76
-
77
- **Why:** Identical controls in one bar hide that one of them re-draws every row while its neighbour only narrows them.
78
-
79
- **Do:** Keep the filter chips in one bar, the views in a strip of their own, and the action at the right-hand end.
80
-
81
- **Don't:** Put three saved views and a filter control in one bar as four buttons of the same size and style.
82
-
83
- **Except:** Saved views that re-draw one table take a segmented strip; views that swap panels take tabs.
84
-
85
71
  ## Match confirmation scale
86
72
 
87
73
  <!-- rule: scale -->
@@ -58,7 +58,7 @@
58
58
 
59
59
  **Rule:** Keep units smaller and in body ink.
60
60
 
61
- **Do:** Keep units smaller and in body ink, and explain abbreviations in reachable text.
61
+ **Do:** Explain abbreviations in reachable text.
62
62
 
63
63
  **Don't:** Hide units in muted text or make readers guess what an abbreviation means.
64
64
 
@@ -122,7 +122,7 @@
122
122
 
123
123
  **Rule:** Keep the table stable while results update.
124
124
 
125
- **Do:** Retain rows while refreshing, report busy state, distinguish no data from no matches and errors, and preserve focus when filters change.
125
+ **Do:** Retain rows and column widths while refreshing, report busy state, distinguish no data from no matches and errors, and preserve focus when filters change.
126
126
 
127
127
  **Don't:** Replace the table with a blank state or move focus without telling the reader why.
128
128
 
@@ -148,8 +148,8 @@
148
148
 
149
149
  **Rule:** Use small controls above a dense table, and full-size controls in a form.
150
150
 
151
- **Do:** Put a small search field, chips and button above dense rows.
151
+ **Do:** Put a small search field, segmented control, chips and button above dense rows.
152
152
 
153
153
  **Don't:** Put a full-size field above dense rows.
154
154
 
155
- **Except:** Tabs keep one size, and a touch screen shows the full field.
155
+ **Except:** Tabs keep one size, and touch controls stand a chip's height.
@@ -8,11 +8,11 @@
8
8
 
9
9
  **Why:** Without a legend, readers need labels for unfamiliar glyphs.
10
10
 
11
- **Except:** New entries require a decision and pass Earn a wordless button on Button labels. Allowed: close, copy, overflow, expand, collapse and export. Theme and sidebar toggles and collapsed-rail links have separate approval. Owner additions: a chart's Chart and Table switch ([#742](https://github.com/apliteni/apliteni-ui/issues/742)), a React AppShell search trigger below 560px for one light icon row ([#729](https://github.com/apliteni/apliteni-ui/issues/729)), and a notifications bell with its count ([#798](https://github.com/apliteni/apliteni-ui/issues/798)). The last two are named by their sentence: phones have no hover title.
11
+ **Except:** New entries require a decision and pass Earn a wordless button on Button labels. Allowed: close, copy, overflow, expand, collapse and export. Theme and sidebar toggles and collapsed-rail links have separate approval. Owner additions: Table beside Chart or Board ([#742](https://github.com/apliteni/apliteni-ui/issues/742), [#832](https://github.com/apliteni/apliteni-ui/issues/832)), the account avatar ([#834](https://github.com/apliteni/apliteni-ui/issues/834)), an AppShell search trigger below 560px for one light icon row ([#729](https://github.com/apliteni/apliteni-ui/issues/729)), and a notifications bell with its count ([#798](https://github.com/apliteni/apliteni-ui/issues/798)). The last two are named by their sentence: phones show no title.
12
12
 
13
- **Do:** A wordless overflow menu and a labelled Settings.
13
+ **Do:** A wordless overflow and a labelled Settings.
14
14
 
15
- **Don't:** A wordless cog, even with a perfect `aria-label`.
15
+ **Don't:** A wordless cog, even with an `aria-label`.
16
16
 
17
17
  ## State and action
18
18
 
@@ -36,7 +36,7 @@
36
36
 
37
37
  **Don't:** Put filters above the title.
38
38
 
39
- **Except:** Small tools for the whole page, such as a version badge, stand at the end of the title row.
39
+ **Except:** Small tools for the whole page, such as a version badge, a period picker or a view action, stand at the end of the title row.
40
40
 
41
41
  ## Use one page title
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.177.0",
3
+ "version": "0.179.0",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
@@ -36,10 +36,10 @@
36
36
  --tap-clear-y: 0px;
37
37
  }
38
38
  @media (max-width: 560px) and (pointer: coarse) {
39
- :where(.ui-seg button, .ui-tabs__tab, .ui-dropdown__trigger, .ui-toast__action, .ui-drawer__close, .ui-snippet__copy, .ui-footer__social, .ui-app__search, .toggle, .ui-datepicker__opt) {
39
+ :where(.ui-seg button, .ui-tabs__tab, .ui-dropdown__trigger, .ui-toast__action, .ui-drawer__close, .ui-snippet__copy, .ui-footer__social, .ui-app__search, .ui-back, .toggle, .ui-datepicker__opt) {
40
40
  position: relative;
41
41
  }
42
- :where(.ui-btn, .ui-seg button, .ui-tabs__tab, .ui-dropdown__trigger, .ui-toast__action, .ui-drawer__close, .ui-snippet__copy, .ui-footer__social, .ui-switch, .ui-datepicker__opt, .ui-app__search, .toggle)::after {
42
+ :where(.ui-btn, .ui-seg button, .ui-tabs__tab, .ui-dropdown__trigger, .ui-toast__action, .ui-drawer__close, .ui-snippet__copy, .ui-footer__social, .ui-switch, .ui-datepicker__opt, .ui-app__search, .ui-back, .toggle)::after {
43
43
  content: "";
44
44
  position: absolute;
45
45
  left: 50%;
@@ -118,6 +118,11 @@
118
118
  --tap-clear-x: var(--tap-gap);
119
119
  --tap-clear-y: var(--tap-gap);
120
120
  }
121
+ .ui-app__tools {
122
+ gap: var(--tap-gap) !important;
123
+ --tap-clear-x: var(--tap-gap);
124
+ --tap-clear-y: var(--tap-gap);
125
+ }
121
126
  .ui-table__selection {
122
127
  --tap-clear-x: var(--tap-min);
123
128
  --tap-clear-y: var(--tap-min);
@@ -158,12 +163,19 @@
158
163
  --tap-clear-x: var(--space-1, 4px);
159
164
  --tap-clear-y: var(--tap-gap-bordered);
160
165
  }
166
+ .ui-drawer__row > dd {
167
+ --tap-clear-x: var(--tap-gap);
168
+ --tap-clear-y: var(--tap-gap);
169
+ }
161
170
  .ui-footer__socials,
162
171
  .ui-drawer__header {
163
172
  gap: var(--tap-gap) !important;
164
173
  --tap-clear-x: var(--tap-gap);
165
174
  --tap-clear-y: var(--tap-gap);
166
175
  }
176
+ .ui-back {
177
+ --tap-clear-y: var(--space-3, 12px);
178
+ }
167
179
  .ui-app__bar,
168
180
  .topbar__in {
169
181
  --tap-clear-x: var(--space-3, 12px);
@@ -556,6 +568,7 @@
556
568
  min-width: 34px;
557
569
  min-height: 34px;
558
570
  padding: var(--space-2);
571
+ font-family: inherit;
559
572
  font-size: var(--text-sm);
560
573
  font-weight: var(--weight-medium);
561
574
  font-variant-numeric: tabular-nums;
@@ -666,6 +679,9 @@
666
679
  outline: var(--ring-scroll);
667
680
  outline-offset: var(--ring-scroll-offset);
668
681
  }
682
+ .ui-datepicker__body.is-sheet .ui-datepicker__opt {
683
+ scroll-margin-bottom: var(--space-5);
684
+ }
669
685
  @media (max-width: 560px) {
670
686
  .ui-dropdown__panel.ui-datepicker__panel {
671
687
  --ui-dropdown-edge: 8px;
@@ -327,6 +327,11 @@ type Column<T> = {
327
327
  rowHeader?: boolean;
328
328
  /** `title` gives the column the remaining width, `code` sets a handle or id in the table's small text, `long` is running text that wraps in a column wide enough to read, `strong` bolds a figure, `act` right-aligns a row action. */
329
329
  cell?: 'title' | 'code' | 'long' | 'strong' | 'act';
330
+ /**
331
+ * The column's set width, such as `'12ch'` or `'160px'`. The column keeps it while the rows
332
+ * change, so a reload does not move the columns. Longer content still widens it. #832
333
+ */
334
+ width?: string;
330
335
  };
331
336
  type TableSort<T> = {
332
337
  key: (keyof T & string) | undefined;
@@ -501,6 +506,10 @@ type DatePickerProps = {
501
506
  * With a value, the trigger's own text is already its name.
502
507
  */
503
508
  ariaLabel?: string;
509
+ /** Names the elements that describe the trigger, e.g. a field's error and hint. */
510
+ 'aria-describedby'?: string;
511
+ /** Marks the trigger invalid. `Field` supplies it while its error shows. */
512
+ 'aria-invalid'?: boolean | 'true' | 'false';
504
513
  id?: string;
505
514
  disabled?: boolean;
506
515
  /** The edge the panel hugs. */
@@ -522,7 +531,7 @@ type DatePickerProps = {
522
531
  defaultOpen?: boolean;
523
532
  onOpenChange?: (open: boolean) => void;
524
533
  };
525
- declare function DatePicker({ mode, value, defaultValue, onChange, range, defaultRange, onRangeChange, min, max, disabledPeriods, presets, placeholder, ariaLabel, id, disabled, align, locale, weekStartsOn, today, sheet, open: openProp, defaultOpen, onOpenChange, }: DatePickerProps): react.JSX.Element;
534
+ declare function DatePicker({ mode, value, defaultValue, onChange, range, defaultRange, onRangeChange, min, max, disabledPeriods, presets, placeholder, ariaLabel, id, disabled, 'aria-describedby': describedBy, 'aria-invalid': invalid, align, locale, weekStartsOn, today, sheet, open: openProp, defaultOpen, onOpenChange, }: DatePickerProps): react.JSX.Element;
526
535
 
527
536
  type DropdownBadge = string | {
528
537
  text: string;
@@ -629,6 +638,8 @@ type DropdownProps = {
629
638
  /** A field above the rows that filters them as the reader types. */
630
639
  search?: boolean | DropdownSearch;
631
640
  ariaLabel?: string;
641
+ /** The trigger's hover title. A wordless trigger takes its name here too. */
642
+ title?: string;
632
643
  /** Names the elements that describe the trigger, e.g. a field's error and hint. */
633
644
  'aria-describedby'?: string;
634
645
  /** Marks the trigger invalid. `Field` supplies it while its error shows. */
@@ -644,7 +655,7 @@ type DropdownProps = {
644
655
  /** Draw the row yourself. `props` is everything the row needs; spread it. */
645
656
  row?: (item: DropdownItem, props: DropdownRowProps) => ReactNode;
646
657
  };
647
- declare function Dropdown({ label, value, selectedValue, placeholder, variant, items, sections, header, footer, triggerContent, triggerClass, disabled, chevron, align, direction, scroll, search, ariaLabel, id, panelClass, 'aria-describedby': describedBy, 'aria-invalid': invalid, open: openProp, defaultOpen, onOpenChange, onSelect, row, }: DropdownProps): react.JSX.Element;
658
+ declare function Dropdown({ label, value, selectedValue, placeholder, variant, items, sections, header, footer, triggerContent, triggerClass, disabled, chevron, align, direction, scroll, search, ariaLabel, title, id, panelClass, 'aria-describedby': describedBy, 'aria-invalid': invalid, open: openProp, defaultOpen, onOpenChange, onSelect, row, }: DropdownProps): react.JSX.Element;
648
659
 
649
660
  type BackLinkOwnProps = {
650
661
  /** The address. No address, or a `javascript:` one, and nothing is rendered. */
@@ -2209,6 +2209,7 @@ function DataTable({
2209
2209
  hasMore = false
2210
2210
  }) {
2211
2211
  const scrollable = stickyHeader || pinnedIdentity;
2212
+ const sized = columns.some((c) => c.width);
2212
2213
  const table = useRef13(null);
2213
2214
  const [pagerHost, setPagerHost] = useState10(null);
2214
2215
  const holdPagerBox = useCallback4(
@@ -2298,6 +2299,10 @@ function DataTable({
2298
2299
  "aria-busy": loading || void 0,
2299
2300
  children: [
2300
2301
  caption ? /* @__PURE__ */ jsx23("caption", { className: "ui-sr", children: caption }) : null,
2302
+ sized ? /* @__PURE__ */ jsxs19("colgroup", { children: [
2303
+ selectable ? /* @__PURE__ */ jsx23("col", {}) : null,
2304
+ columns.map((c) => /* @__PURE__ */ jsx23("col", { style: c.width ? { width: c.width } : void 0 }, c.key))
2305
+ ] }) : null,
2301
2306
  /* @__PURE__ */ jsx23("thead", { children: /* @__PURE__ */ jsxs19("tr", { children: [
2302
2307
  selectable ? /* @__PURE__ */ jsx23("th", { scope: "col", className: "ui-table__selection", children: /* @__PURE__ */ jsx23(
2303
2308
  "input",
@@ -2353,14 +2358,20 @@ function DataTable({
2353
2358
  ) }) : null,
2354
2359
  columns.map((c, columnIndex) => {
2355
2360
  const Cell = c.rowHeader ? "th" : "td";
2356
- return /* @__PURE__ */ jsx23(
2357
- Cell,
2358
- {
2359
- scope: c.rowHeader ? "row" : void 0,
2360
- className: [c.num && "ui-table__num", c.cell && CELL_CLASS[c.cell], pinnedColumn(pinnedIdentity, c.key, columnIndex) && "ui-table__identity", c.linked && "ui-table__linked"].filter(Boolean).join(" ") || void 0,
2361
- children: c.render ? c.render(r) : String(r[c.key])
2362
- },
2363
- c.key
2361
+ return (
2362
+ // A set width lives on the col alone. In a table with a set width, a title
2363
+ // cell gives up its claim on the rest of the row, so the edges hold when the
2364
+ // rows arrive: the free room goes to the unsized columns in both states. #832
2365
+ /* @__PURE__ */ jsx23(
2366
+ Cell,
2367
+ {
2368
+ scope: c.rowHeader ? "row" : void 0,
2369
+ style: c.width || sized && c.cell === "title" ? { width: "auto" } : void 0,
2370
+ className: [c.num && "ui-table__num", c.cell && CELL_CLASS[c.cell], pinnedColumn(pinnedIdentity, c.key, columnIndex) && "ui-table__identity", c.linked && "ui-table__linked"].filter(Boolean).join(" ") || void 0,
2371
+ children: c.render ? c.render(r) : String(r[c.key])
2372
+ },
2373
+ c.key
2374
+ )
2364
2375
  );
2365
2376
  })
2366
2377
  ]
@@ -2483,12 +2494,19 @@ function Denied({
2483
2494
  // src/DatePicker.tsx
2484
2495
  import {
2485
2496
  useCallback as useCallback5,
2497
+ useContext as useContext2,
2486
2498
  useEffect as useEffect12,
2487
2499
  useMemo as useMemo4,
2488
2500
  useRef as useRef14,
2489
2501
  useState as useState11
2490
2502
  } from "react";
2491
2503
  import { dropdownRest, dropdownViewportFit } from "@apliteni/apliteni-ui";
2504
+
2505
+ // src/fieldContext.ts
2506
+ import { createContext as createContext3 } from "react";
2507
+ var FieldContext = createContext3(null);
2508
+
2509
+ // src/DatePicker.tsx
2492
2510
  import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
2493
2511
  var cx5 = (...a) => a.filter(Boolean).join(" ");
2494
2512
  var pad = (n) => String(n).padStart(2, "0");
@@ -2581,6 +2599,8 @@ function DatePicker({
2581
2599
  ariaLabel,
2582
2600
  id,
2583
2601
  disabled = false,
2602
+ "aria-describedby": describedBy,
2603
+ "aria-invalid": invalid,
2584
2604
  align = "start",
2585
2605
  locale = "en-GB",
2586
2606
  weekStartsOn = 1,
@@ -2643,14 +2663,34 @@ function DatePicker({
2643
2663
  useIsoLayoutEffect(() => {
2644
2664
  close.current = setOpen;
2645
2665
  });
2646
- useEffect12(() => {
2666
+ useIsoLayoutEffect(() => {
2647
2667
  if (open) setCursor(clamp(anchor, lo, hi));
2648
2668
  }, [open]);
2649
2669
  useIsoLayoutEffect(() => {
2650
2670
  const el = panel.current;
2651
2671
  const view = el?.ownerDocument?.defaultView;
2652
2672
  if (!el || !view || !open) return;
2673
+ const lifted = !asSheet && !!el.closest(".rx-modal");
2674
+ const lift = () => {
2675
+ const root2 = el.parentElement;
2676
+ if (!lifted || !root2) return;
2677
+ const r = root2.getBoundingClientRect();
2678
+ const gap = parseFloat(view.getComputedStyle(el).getPropertyValue("--ui-dropdown-gap")) || 0;
2679
+ if (root2.parentElement?.classList.contains("ui-field")) el.style.width = `${r.width}px`;
2680
+ el.style.position = "fixed";
2681
+ const moving = view.getComputedStyle(el.closest(".rx-modal")).transform !== "none";
2682
+ el.style.visibility = moving ? "hidden" : "";
2683
+ const tall = el.scrollHeight + el.offsetHeight - el.clientHeight;
2684
+ const below = view.innerHeight - r.bottom - gap * 2;
2685
+ const up = tall > below && r.top - gap * 2 > below;
2686
+ el.style.top = up ? `${Math.max(gap, r.top - gap - Math.min(tall, r.top - gap * 2))}px` : `${r.bottom + gap}px`;
2687
+ el.style.maxHeight = `${up ? r.top - gap * 2 : below}px`;
2688
+ el.style.overflowY = "auto";
2689
+ el.style.left = align === "end" ? "auto" : `${r.left}px`;
2690
+ el.style.right = align === "end" ? `${el.ownerDocument.documentElement.clientWidth - r.right}px` : "auto";
2691
+ };
2653
2692
  const fit = () => {
2693
+ lift();
2654
2694
  let got = dropdownViewportFit(el);
2655
2695
  if (!got) return;
2656
2696
  el.style.setProperty("--ui-dropdown-ceiling", got.max > 0 ? `${got.max}px` : "");
@@ -2663,11 +2703,19 @@ function DatePicker({
2663
2703
  if (trigger.current) ro?.observe(trigger.current);
2664
2704
  ro?.observe(el);
2665
2705
  view.addEventListener("resize", fit);
2706
+ const dialog = lifted ? el.closest(".rx-modal") : null;
2707
+ dialog?.addEventListener("transitionend", fit);
2708
+ const rest = lifted ? setTimeout(fit, 400) : void 0;
2709
+ if (lifted) view.addEventListener("scroll", fit, true);
2666
2710
  return () => {
2667
2711
  ro?.disconnect();
2668
2712
  view.removeEventListener("resize", fit);
2713
+ view.removeEventListener("scroll", fit, true);
2714
+ dialog?.removeEventListener("transitionend", fit);
2715
+ clearTimeout(rest);
2716
+ if (lifted) for (const k of ["position", "top", "left", "right", "width", "max-height", "overflow-y", "visibility"]) el.style.removeProperty(k);
2669
2717
  };
2670
- }, [open, asSheet]);
2718
+ }, [open, asSheet, align]);
2671
2719
  useEffect12(() => {
2672
2720
  if (!open || asSheet) return;
2673
2721
  const doc = root.current?.ownerDocument ?? document;
@@ -2689,6 +2737,38 @@ function DatePicker({
2689
2737
  land.current = false;
2690
2738
  grid.current?.querySelector('[data-dp-cell][tabindex="0"]')?.focus();
2691
2739
  });
2740
+ const reveal = useRef14(false);
2741
+ const chosen = useRef14(null);
2742
+ useIsoLayoutEffect(() => {
2743
+ reveal.current = open && asSheet;
2744
+ }, [open, asSheet]);
2745
+ useIsoLayoutEffect(() => {
2746
+ if (!reveal.current || cursor !== clamp(anchor, lo, hi)) return;
2747
+ reveal.current = false;
2748
+ chosen.current = grid.current?.querySelector('[data-dp-cell][tabindex="0"].is-selected') ?? null;
2749
+ const body = grid.current?.closest(".ui-drawer__body");
2750
+ const cell = chosen.current;
2751
+ if (!cell || !body) return;
2752
+ const scrollIn = () => {
2753
+ const below = parseFloat(getComputedStyle(cell).scrollMarginBottom) || 0;
2754
+ const view = body.getBoundingClientRect().top + body.clientTop + body.clientHeight;
2755
+ const over = cell.getBoundingClientRect().bottom + below - view;
2756
+ if (over > 0) body.scrollTop += over;
2757
+ };
2758
+ scrollIn();
2759
+ const { fonts, defaultView: win } = body.ownerDocument;
2760
+ if (!fonts || !win) return;
2761
+ let touched = false;
2762
+ const touch = () => {
2763
+ touched = true;
2764
+ };
2765
+ const inputs = ["wheel", "touchstart", "pointerdown", "keydown"];
2766
+ for (const type of inputs) body.addEventListener(type, touch, { passive: true });
2767
+ void fonts.ready.then(() => win.requestAnimationFrame(() => {
2768
+ for (const type of inputs) body.removeEventListener(type, touch);
2769
+ if (cell.isConnected && !touched) scrollIn();
2770
+ }));
2771
+ });
2692
2772
  const columns = grain === "month" ? 3 : 7;
2693
2773
  const page = grain === "month" ? Math.floor(cursor / 12) : monthOf(cursor);
2694
2774
  const caption = grain === "month" ? String(page) : names.monthYear.format(at(firstDayOf(page)));
@@ -2810,6 +2890,10 @@ function DatePicker({
2810
2890
  }, [picksRange, grain, span.start, span.end, picked, names, at]);
2811
2891
  const empty = placeholder ?? (picksRange ? grain === "month" ? "Select a period" : "Select dates" : grain === "month" ? "Select a month" : "Select a date");
2812
2892
  const name = ariaLabel || empty;
2893
+ const inField = useContext2(FieldContext);
2894
+ const sheetTitle = ariaLabel || (inField && id === inField.id ? inField.label : empty);
2895
+ const fieldLabel = inField && id === inField.id ? inField.label : "";
2896
+ const triggerName = ariaLabel || fieldLabel ? `${ariaLabel || fieldLabel}, ${shown ?? empty}` : void 0;
2813
2897
  const pageName = (which) => grain === "month" ? String(which) : names.monthYear.format(at(firstDayOf(which)));
2814
2898
  const stepBack = `${grain === "month" ? "Previous year" : "Previous month"}, ${pageName(page - 1)}`;
2815
2899
  const stepOn = `${grain === "month" ? "Next year" : "Next month"}, ${pageName(page + 1)}`;
@@ -2948,7 +3032,9 @@ function DatePicker({
2948
3032
  id,
2949
3033
  "aria-haspopup": "dialog",
2950
3034
  "aria-expanded": open,
2951
- "aria-label": ariaLabel || void 0,
3035
+ "aria-label": triggerName,
3036
+ "aria-describedby": describedBy,
3037
+ "aria-invalid": invalid,
2952
3038
  disabled,
2953
3039
  ref: trigger,
2954
3040
  onClick: (e) => {
@@ -2968,7 +3054,7 @@ function DatePicker({
2968
3054
  // without taking the sheet's affordances left a phone reader with no
2969
3055
  // visible way out and a Tab that walked into the live page behind it.
2970
3056
  // why: guidelines/drawer.md
2971
- /* @__PURE__ */ jsx25(Drawer, { open, side: "bottom", size: "md", title: name, onClose: () => setOpen(false), children: calendar })
3057
+ /* @__PURE__ */ jsx25(Drawer, { open, side: "bottom", size: "md", title: sheetTitle, onClose: () => setOpen(false), initialFocusRef: chosen, children: calendar })
2972
3058
  ) : /* @__PURE__ */ jsx25(
2973
3059
  "div",
2974
3060
  {
@@ -2991,7 +3077,7 @@ function DatePicker({
2991
3077
  import {
2992
3078
  Fragment as Fragment13,
2993
3079
  useCallback as useCallback6,
2994
- useContext as useContext2,
3080
+ useContext as useContext3,
2995
3081
  useEffect as useEffect13,
2996
3082
  useId as useId12,
2997
3083
  useRef as useRef15,
@@ -3011,12 +3097,6 @@ import {
3011
3097
  dropdownSnap,
3012
3098
  filterPanelRow
3013
3099
  } from "@apliteni/apliteni-ui";
3014
-
3015
- // src/fieldContext.ts
3016
- import { createContext as createContext3 } from "react";
3017
- var FieldContext = createContext3(null);
3018
-
3019
- // src/Dropdown.tsx
3020
3100
  import { Fragment as Fragment14, jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
3021
3101
  var EXIT_SLACK_MS2 = 50;
3022
3102
  var SETTLE_MS = 450;
@@ -3074,6 +3154,7 @@ function Dropdown({
3074
3154
  scroll = false,
3075
3155
  search = false,
3076
3156
  ariaLabel,
3157
+ title,
3077
3158
  id,
3078
3159
  panelClass = "",
3079
3160
  "aria-describedby": describedBy,
@@ -3098,7 +3179,7 @@ function Dropdown({
3098
3179
  const at = useRef15("");
3099
3180
  const auto = useId12().replace(/:/g, "");
3100
3181
  const uid = id ?? auto;
3101
- const inField = useContext2(FieldContext);
3182
+ const inField = useContext3(FieldContext);
3102
3183
  const fieldName = inField && id === inField.id && !(ariaLabel && triggerContent != null) ? { id: `${uid}-trigger`, labelId: inField.labelId, labelledBy: `${inField.labelId} ${uid}-trigger` } : null;
3103
3184
  const setOpen = useCallback6((next) => {
3104
3185
  if (openProp === void 0) setSelfOpen(next);
@@ -3531,6 +3612,7 @@ function Dropdown({
3531
3612
  "aria-expanded": open,
3532
3613
  id: fieldName?.id,
3533
3614
  "aria-label": ariaLabel && triggerContent != null ? ariaLabel : void 0,
3615
+ title,
3534
3616
  "aria-labelledby": fieldName?.labelledBy,
3535
3617
  "aria-describedby": describedBy,
3536
3618
  "aria-invalid": invalid,
@@ -3701,6 +3783,7 @@ function Segmented({ options, value, onChange, label, appearance = "pill", size,
3701
3783
  disabled: disabled || option.disabled,
3702
3784
  className: value === option.value ? "is-active" : void 0,
3703
3785
  "aria-label": option.ariaLabel ?? (option.icon && option.iconOnly ? option.label : void 0),
3786
+ title: option.icon && option.iconOnly ? option.label : void 0,
3704
3787
  "aria-pressed": value === option.value,
3705
3788
  tabIndex: option.value === tabValue ? 0 : -1,
3706
3789
  onClick: () => onChange(option.value),
@@ -3926,7 +4009,7 @@ function Snippet({ label = "shell", code = "", children, copy = true, reveal = f
3926
4009
  "aria-label": copyLabel,
3927
4010
  title: copyLabel,
3928
4011
  onClick: handleCopy,
3929
- children: /* @__PURE__ */ jsx32(Icon, { name: status === "idle" ? "copy" : "check" })
4012
+ children: /* @__PURE__ */ jsx32(Icon, { name: status !== "copied" ? "copy" : "check" })
3930
4013
  }
3931
4014
  ),
3932
4015
  /* @__PURE__ */ jsx32("span", { className: "ui-sr ui-snippet__status", role: "status", "aria-live": "polite", children: status === "copied" ? "Copied" : status === "failed" ? "Copy failed" : "" })
@@ -4019,7 +4102,7 @@ function Field({ id: suppliedId, label, hint, error, required, children }) {
4019
4102
  const generatedId = useId13();
4020
4103
  const id = suppliedId ?? generatedId;
4021
4104
  const labelId = `${id}-label`;
4022
- return /* @__PURE__ */ jsx34(Frame, { ...{ id, labelId, label, hint, error, required }, children: /* @__PURE__ */ jsx34(FieldContext.Provider, { value: { id, labelId }, children: children({ ...wiring(id, hint, error), required }) }) });
4105
+ return /* @__PURE__ */ jsx34(Frame, { ...{ id, labelId, label, hint, error, required }, children: /* @__PURE__ */ jsx34(FieldContext.Provider, { value: { id, labelId, label }, children: children({ ...wiring(id, hint, error), required }) }) });
4023
4106
  }
4024
4107
  var TextField = forwardRef8(function TextField2({ label, hint, error, required, type = "text", unit, icon: glyph2, className = "", ...props }, ref) {
4025
4108
  const id = useId13();
@@ -4369,7 +4452,7 @@ var SearchField = forwardRef9(function SearchField2({ ariaLabel, size, className
4369
4452
  });
4370
4453
 
4371
4454
  // src/Toast.tsx
4372
- import { createContext as createContext4, useCallback as useCallback7, useContext as useContext3, useEffect as useEffect17, useLayoutEffect as useLayoutEffect4, useRef as useRef21, useState as useState17 } from "react";
4455
+ import { createContext as createContext4, useCallback as useCallback7, useContext as useContext4, useEffect as useEffect17, useLayoutEffect as useLayoutEffect4, useRef as useRef21, useState as useState17 } from "react";
4373
4456
  import { createPortal as createPortal6 } from "react-dom";
4374
4457
 
4375
4458
  // src/lib/toast-stack.ts
@@ -4484,7 +4567,7 @@ var Context = createContext4(null);
4484
4567
  var PileHoldContext = createContext4(false);
4485
4568
  var glyphs = { success: "circleCheck", danger: "circleX", warn: "circleAlert", info: "info", neutral: "bolt" };
4486
4569
  function useToast() {
4487
- const push = useContext3(Context);
4570
+ const push = useContext4(Context);
4488
4571
  if (!push) throw new Error("useToast requires a Toast provider");
4489
4572
  return push;
4490
4573
  }
@@ -4494,7 +4577,7 @@ function Notice({ notice, remove }) {
4494
4577
  const dismissed = useRef21(false);
4495
4578
  const [hovered, setHovered] = useState17(false);
4496
4579
  const [focused, setFocused] = useState17(false);
4497
- const pileHeld = useContext3(PileHoldContext);
4580
+ const pileHeld = useContext4(PileHoldContext);
4498
4581
  const paused = hovered || focused || pileHeld;
4499
4582
  const tone2 = notice.tone ?? "success";
4500
4583
  const timed = !notice.action && notice.timer !== false && notice.timer !== 0;
@@ -5162,6 +5245,7 @@ function AppShell({
5162
5245
  align: "end",
5163
5246
  chevron: false,
5164
5247
  ariaLabel: `Signed in as ${account.name}, ${account.email}`,
5248
+ title: `Signed in as ${account.name}, ${account.email}`,
5165
5249
  triggerClass: "ui-app__user-trigger",
5166
5250
  panelClass: "ui-app__user-panel",
5167
5251
  triggerContent: /* @__PURE__ */ jsx41("span", { className: "ui-app__av", "aria-hidden": "true", children: /* @__PURE__ */ jsx41(Avatar, { personKey: account.email || account.name, name: account.name, size: 32 }) }),
@@ -5404,7 +5488,7 @@ var Success = forwardRef11(function Success2({
5404
5488
  // src/Chart.tsx
5405
5489
  import {
5406
5490
  useCallback as useCallback8,
5407
- useContext as useContext4,
5491
+ useContext as useContext5,
5408
5492
  useEffect as useEffect21,
5409
5493
  useId as useId16,
5410
5494
  useLayoutEffect as useLayoutEffect5,
@@ -6197,7 +6281,7 @@ function Chart(props) {
6197
6281
  const asTable = showTable && view === "table";
6198
6282
  const uid = useId16().replace(/[^\w-]/g, "");
6199
6283
  const frameEl = useRef25(null);
6200
- const card = useContext4(CardTools);
6284
+ const card = useContext5(CardTools);
6201
6285
  const claim = card?.claim;
6202
6286
  useLayoutEffect5(() => showTable && claim ? claim(uid) : void 0, [showTable, claim, uid]);
6203
6287
  const toCard = showTable && card?.owner === uid ? card.slot : null;
@@ -194,6 +194,9 @@ export const iconOnlyAllowed = {
194
194
  // are the two views themselves, side by side in one toolbar at the card's corner.
195
195
  chart: 'show the values as a chart',
196
196
  table: 'show the values as a table',
197
+ // A list's Table and Board switch, decided by Artur on #832 (rev_4f729c7b8624/d16).
198
+ // The kit has no board glyph; the grid of four squares is the nearest one.
199
+ grid: 'show the items as a board',
197
200
  };
198
201
 
199
202
  // The word a wordless control's name may open with. The list above says which
@@ -221,6 +224,7 @@ export const iconOnlyNames = {
221
224
  plus: ['zoom'],
222
225
  chart: ['chart'],
223
226
  table: ['table'],
227
+ grid: ['board'],
224
228
  };
225
229
 
226
230
  // What a glyph means when a component picks it for the reader rather than a
@@ -15,10 +15,12 @@
15
15
  max-width: 100%;
16
16
  align-items: center;
17
17
  gap: var(--space-1);
18
- /* WCAG 2.5.8's 24px: the line of text alone is 17px tall. */
19
- min-height: var(--space-6);
20
- padding: 0 var(--space-2) 0 var(--space-1);
21
- border-radius: var(--radius-sm);
18
+ /* 32px, a small button's height: the line of text alone is 17px tall. On a phone
19
+ with touch, tap-zone.css lifts the target to 44px. A pill, as every control. #834
20
+ why: docs/foundations.md#control-corners */
21
+ min-height: var(--space-8);
22
+ padding: 0 var(--space-3) 0 var(--space-2);
23
+ border-radius: var(--radius-pill);
22
24
  font-family: var(--font-sans);
23
25
  font-size: var(--text-sm);
24
26
  font-weight: var(--weight-medium);
@@ -263,6 +263,13 @@
263
263
  stays for a screen reader only when one field fills the value cell. With two
264
264
  fields, each label remains visible to name its control. */
265
265
  .ui-drawer__row:has(> dd :is(.ui-input, .ui-textarea, .ui-select, .ui-dropdown)) > :is(dt, dd) { align-self: baseline; }
266
+ /* An icon button after a value, such as a copy button, centres on the value's line and gives
267
+ back the height it draws past that line, so its row keeps a text row's height. #832 */
268
+ .ui-drawer__row > dd > .ui-btn--icon:last-child {
269
+ vertical-align: middle;
270
+ margin-block: calc((var(--btn-height-sm) - 1lh) / -2);
271
+ margin-inline-start: var(--space-2);
272
+ }
266
273
  .ui-drawer__row > dd:has(> .ui-field:only-child) > .ui-field > .ui-field__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
267
274
  .ui-drawer__row dt { color: var(--text); }
268
275
  .ui-drawer__row dd { color: var(--text); font-variant-numeric: tabular-nums; }
@@ -50,7 +50,16 @@
50
50
  pointer resting on a focused control would put it back. One indicator, which is
51
51
  what the kit's rows already chose. why: docs/foundations.md#the-focus-ring */
52
52
  .ui-dropdown__trigger:enabled:hover:not(:focus-visible) { border-color: var(--accent); }
53
- .ui-dropdown__trigger:focus-visible { outline: var(--ring); outline-offset: var(--ring-offset); }
53
+ /* The kit's invalid edge, on a Dropdown or a DatePicker that a Field marks invalid, also
54
+ under the pointer. The hover selector ties live hover at (0,4,0) and comes later, and the
55
+ off rules below tie it and come later still, so an off trigger keeps the off edge. #835
56
+ why: docs/components.md#forms */
57
+ .ui-dropdown__trigger[aria-invalid="true"],
58
+ .ui-dropdown__trigger[aria-invalid="true"]:hover:not(:focus-visible) { border-color: var(--pink); }
59
+ /* As a select: under the ring the edge keeps its width and goes transparent, so focus has
60
+ one line, also on an invalid trigger. Later than the invalid edge, earlier than the off
61
+ rules. why: docs/foundations.md#the-focus-ring */
62
+ .ui-dropdown__trigger:focus-visible { border-color: transparent; outline: var(--ring); outline-offset: var(--ring-offset); }
54
63
  /* Off. The off hover-not-focus selectors are (0,4,0), tied with live hover and later.
55
64
  A pointer over a dead control changes nothing while an aria-disabled one keeps its stop and the ring.
56
65
  No fill: --disabled-surface IS this control's --surface, in both themes. The
@@ -488,7 +497,7 @@
488
497
  /* The ground and line .ui-input takes. why: docs/foundations.md#elevation */
489
498
  background: var(--field-bg); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
490
499
  border: 1px solid var(--field-edge);
491
- border-radius: var(--radius-pill);
500
+ border-radius: var(--radius-md); /* The field corner, as .ui-input. #836 */
492
501
  padding: 8px 12px 8px 34px;
493
502
  /* The height Chromium paints (38.25px), stated so the target-size gate, which
494
503
  cannot see an <input>'s line of text, reads the box a reader hits. */
@@ -553,7 +562,7 @@
553
562
  .ui-field > .ui-dropdown > .ui-dropdown__trigger > .ui-dropdown__chevron { margin-left: auto; }
554
563
  .ui-field > .ui-dropdown > .ui-dropdown__panel { inline-size: 100%; min-width: 0; }
555
564
  /* In a form the trigger takes the text input's block padding and type, so the two
556
- stand at one height. Both are pills, so it keeps its own corner. #812, #823
565
+ stand at one height. It keeps the pill, and the input has the field corner. #812, #836
557
566
  why: docs/components.md#forms */
558
567
  @property --ui-dropdown-line { syntax: "<length>"; inherits: true; initial-value: 0px; }
559
568
  .ui-field > .ui-dropdown > .ui-dropdown__trigger {
@@ -573,6 +582,10 @@
573
582
  text-overflow: ellipsis;
574
583
  text-align: start;
575
584
  }
585
+ /* The chosen value takes the text input's regular weight and normal spacing. No colour:
586
+ the value keeps --strong, a disabled value its off ink and a placeholder its muted ink.
587
+ rev_67189e20ee1f/d5 why: docs/components.md#forms */
588
+ .ui-field > .ui-dropdown > .ui-dropdown__trigger > .ui-dropdown__value { font-weight: var(--weight-normal); letter-spacing: normal; }
576
589
  /* The mark stands as far from the left edge as from the top and bottom edges. */
577
590
  .ui-field > .ui-dropdown > .ui-dropdown__trigger > .ui-avatar {
578
591
  --ui-avatar-pull-start: calc(var(--space-4) - var(--space-3) - (var(--ui-dropdown-line) - var(--ui-avatar-size)) / 2);
@@ -137,8 +137,9 @@
137
137
  /* A toolbar that opens with a small search field is a small row, and its filter bar
138
138
  follows it to 32px. The chip gives up its block padding so the 24px remove mark still
139
139
  fits. The trigger fills the chip between its two edges, because a min-height on the
140
- chip alone leaves the text high: the chip is a fieldset. A touch screen keeps the
141
- full field, so it keeps the full row too. #822
140
+ chip alone leaves the text high: the chip is a fieldset. On a touch screen the row is a
141
+ chip's height, 40px, and a small button or segmented control on any of its lines takes
142
+ it too. #822, rev_1bef7d7c3b22/d5
142
143
  why: docs/components.md#a-toolbar-at-one-column */
143
144
  @media not (pointer: coarse) {
144
145
  .ui-toolbar:has(> .ui-input-group > .ui-input--sm),
@@ -147,6 +148,11 @@
147
148
  .ui-toolbar:has(> .ui-input-group > .ui-input--sm) .ui-filter-bar__chip .ui-dropdown__trigger { min-height: calc(var(--btn-height-sm) - 2px); }
148
149
  .ui-toolbar:has(> .ui-input-group > .ui-input--sm) .ui-filter-bar__remove { line-height: var(--leading-tight); }
149
150
  }
151
+ @media (pointer: coarse) {
152
+ .ui-toolbar:has(> .ui-input-group > .ui-input--sm) > :is(.ui-btn, .ui-seg) { min-height: var(--ui-filter-row-h); }
153
+ /* The create row above that bar stands the same height. #832 */
154
+ .ui-toolbar:has(+ .ui-toolbar > .ui-input-group > .ui-input--sm) > .ui-btn { min-height: var(--ui-filter-row-h); }
155
+ }
150
156
 
151
157
  /* A chip's neighbour takes the chip's corner, that height and edge, but not its painted fill:
152
158
  the trigger's own edge can differ from the row's, while its --surface made the
@@ -168,6 +174,7 @@
168
174
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger { min-height: var(--ui-filter-row-h); border-color: var(--control-edge); background: transparent; }
169
175
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger svg { width: 16px; height: 16px; flex: none; stroke-width: 2.4; }
170
176
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger:enabled:hover:not(:focus-visible) { border-color: var(--accent); }
177
+ .ui-filter-bar [data-filter-add] .ui-dropdown__trigger:focus-visible { border-color: transparent; }
171
178
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger:disabled { border-color: var(--disabled-border); }
172
179
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger[aria-disabled="true"],
173
180
  .ui-filter-bar [data-filter-add] .ui-dropdown__trigger[aria-disabled="true"]:hover:not(:focus-visible) { border-color: var(--disabled-border); }
@@ -27,12 +27,16 @@
27
27
  why: docs/foundations.md#elevation */
28
28
  background: var(--field-bg); /* code-bg: inherit — control paint; the containing surface is the ground, for a chip and for a band alike. */
29
29
  border: 1px solid var(--field-edge);
30
- border-radius: var(--radius-pill); /* why: docs/foundations.md#control-corners */
31
30
  padding: 12px 15px;
32
31
  width: 100%;
33
32
  transition: border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
34
33
  }
35
- .ui-textarea { resize: vertical; min-height: 96px; line-height: 1.55; border-radius: var(--radius-md); }
34
+ /* The field corner: a field that takes text is a box, not a pill. The select is a
35
+ control the reader presses, so it keeps the pill below. #836
36
+ why: docs/foundations.md#control-corners */
37
+ .ui-input,
38
+ .ui-textarea { border-radius: var(--radius-md); }
39
+ .ui-textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
36
40
 
37
41
  .ui-input:hover,
38
42
  .ui-textarea:hover,
@@ -111,6 +115,7 @@
111
115
  chevron. It is a plain stroke with butt ends and a mitred point, 11.3px wide.
112
116
  why: docs/foundations.md#colour-and-contrast */
113
117
  .ui-select {
118
+ border-radius: var(--radius-pill); /* why: docs/foundations.md#control-corners */
114
119
  appearance: none;
115
120
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-6 -6 12 12' fill='none' stroke='%23a29db6' stroke-width='1.6'%3E%3Cpath d='M-5.09 -2.83L0 2.26l5.09-5.09'/%3E%3C/svg%3E");
116
121
  background-repeat: no-repeat;
@@ -335,8 +340,9 @@
335
340
  .ui-switch input:disabled + .ui-switch__track { opacity: 0.5; cursor: not-allowed; }
336
341
 
337
342
  /* The small field: 32px with the dense rows' 13px text, level with a small button, a
338
- dropdown trigger and a small segmented control. Only a fine pointer gets it. A touch
339
- screen keeps the full field, because iOS zooms into a field under 16px. The group's
343
+ dropdown trigger and a small segmented control. Only a fine pointer gets it. On a touch
344
+ screen it keeps 16px text, because iOS zooms into a field under 16px, and stands 40px,
345
+ a chip's height. rev_1bef7d7c3b22/d5, #832 The group's
340
346
  42px left padding outranks the side padding here, so the glyph keeps its place. #822
341
347
  why: docs/components.md#react-search-field */
342
348
  @media not (pointer: coarse) {
@@ -345,6 +351,9 @@
345
351
  line-height: var(--leading-tight);
346
352
  min-height: var(--btn-height-sm);
347
353
  padding: var(--space-1) var(--space-3);
348
- border-radius: var(--radius-pill); /* why: docs/foundations.md#control-corners */
354
+ border-radius: var(--radius-md); /* why: docs/foundations.md#control-corners */
349
355
  }
350
356
  }
357
+ @media (pointer: coarse) {
358
+ .ui-input--sm { height: var(--ui-filter-row-h, 40px); min-height: var(--ui-filter-row-h, 40px); padding-block: 0; }
359
+ }
@@ -401,6 +401,16 @@
401
401
  why: docs/components.md#the-page-shell */
402
402
  .ui-app__bar .toggle, .topbar__in .toggle { flex: none; }
403
403
  .ui-app__user--bar .ui-app__av { margin-inline-start: 0; }
404
+ /* In the band the trigger holds the 30px mark and no words, so it is a wordless button: a
405
+ 40px circle. The ring stands outside it, 5px clear of the mark. #834
406
+ why: docs/foundations.md#control-corners */
407
+ .ui-app__bar .ui-app__user-trigger {
408
+ width: var(--space-10);
409
+ height: var(--space-10);
410
+ padding: 0;
411
+ justify-content: center;
412
+ border-radius: var(--radius-pill);
413
+ }
404
414
  .ui-app__main h1 {
405
415
  color: var(--strong);
406
416
  /* rank: page-title */
@@ -415,11 +425,13 @@
415
425
  .ui-app__main > h1:not(:has(+ .ui-app__sub)) { margin-bottom: var(--space-8); }
416
426
  /* Page tools stand at the end of the title row, and the lede goes under the whole row.
417
427
  The row takes the h1's steps: 8px to a lede, 32px when the page opens on its title alone.
418
- 16px keeps the tools off a long title, and the tools stand 12px apart. */
419
- .ui-app__title-row { display: flex; align-items: center; gap: var(--space-4); margin-bottom: 8px; }
428
+ 16px keeps the tools off a long title, and the tools stand 12px apart. Tools that do
429
+ not fit beside the title, such as a period picker on a phone, go under it, 8px down. #832 */
430
+ .ui-app__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-bottom: 8px; }
420
431
  .ui-app__title-row:not(:has(+ .ui-app__sub)) { margin-bottom: var(--space-8); }
421
432
  .ui-app__main .ui-app__title-row > h1 { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
422
- .ui-app__tools { display: flex; flex: none; align-items: center; gap: var(--space-3); }
433
+ /* The tools wrap at the narrowest phone, so a period picker and a view action stay in the column. #832 */
434
+ .ui-app__tools { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: var(--space-3); max-width: 100%; }
423
435
  .ui-app__body { display: flex; flex-direction: column; gap: var(--space-5); }
424
436
  /* A flex child's min-width is its content by default, so one wide block — a
425
437
  ledger, a code sample — pushes the whole page sideways instead of scrolling
@@ -110,7 +110,7 @@
110
110
  min-height: var(--space-8);
111
111
  padding: var(--space-1) var(--space-2);
112
112
  font-size: var(--text-sm);
113
- border-radius: var(--radius-pill);
113
+ border-radius: var(--radius-md); /* The field corner, as .ui-input. #836 */
114
114
  text-align: center;
115
115
  }
116
116
 
@@ -42,14 +42,11 @@
42
42
  .ui-seg button.is-active,
43
43
  .ui-seg button[aria-pressed="true"],
44
44
  .ui-seg button[aria-selected="true"] {
45
+ /* The primary button's pair, so a selection and the main action share one fill. The
46
+ edge carries the 3:1 mark where that fill is faint on the track, as under the default accent in dark. #832 */
45
47
  color: var(--accent-contrast);
46
- background: var(--accent);
47
- }
48
- /* White ink falls below the text floor on the lighter dark-theme accents. */
49
- :where(:root[data-theme="dark"]) .ui-seg button.is-active,
50
- :where(:root[data-theme="dark"]) .ui-seg button[aria-pressed="true"],
51
- :where(:root[data-theme="dark"]) .ui-seg button[aria-selected="true"] {
52
- color: var(--signal-contrast);
48
+ background: var(--accent-strong);
49
+ box-shadow: inset 0 0 0 1px var(--accent);
53
50
  }
54
51
 
55
52
  /* A disabled selection stays readable without the active accent fill. */
@@ -57,6 +54,7 @@
57
54
  .ui-seg button[aria-pressed="true"]:where(:disabled),
58
55
  .ui-seg button[aria-selected="true"]:where(:disabled) {
59
56
  background: var(--surface-3); /* code-bg: inherit — the selected control's own fill. */
57
+ box-shadow: none; /* No edge: on a control that takes no focus it reads as a ring. #832 */
60
58
  }
61
59
 
62
60
  /* Standard pills tighten on phones so six short month names fit one row. */
@@ -123,9 +121,9 @@
123
121
  draws 44 whatever line box its font hands it: the off-scale `--space-3 + 1px`
124
122
  this replaces drew 44 with the webfont loaded and 41 without, which is under
125
123
  the floor it claimed. The radius is left for the focus ring; the tab paints no
126
- box. #527
124
+ box. A two-letter tab, such as EN, is as wide as the floor too. #834
127
125
  why: guidelines/layout-and-density.md, the spacing scale */
128
- .ui-seg--underline button { position: relative; border-radius: var(--radius-sm); padding: var(--space-3); min-height: var(--tap-min, 44px); white-space: normal; overflow-wrap: anywhere; font-weight: var(--weight-medium); }
126
+ .ui-seg--underline button { position: relative; border-radius: var(--radius-sm); padding: var(--space-3); min-height: var(--tap-min, 44px); min-width: var(--tap-min, 44px); white-space: normal; overflow-wrap: anywhere; font-weight: var(--weight-medium); }
129
127
  .ui-seg--underline.ui-seg--sm button { padding: var(--space-3); min-height: var(--tap-min, 44px); }
130
128
  /* The chosen tab is its label and one bar under it: no plate, no hairline, no
131
129
  upright rail — those read as a list-row grip. #527 r31. The `outline: 0` that
@@ -136,6 +134,7 @@
136
134
  .ui-seg--underline button.is-active,
137
135
  .ui-seg--underline button[aria-pressed="true"] {
138
136
  background: none;
137
+ box-shadow: none; /* The bar is the one mark; the pill's edge goes with its fill. #832 */
139
138
  color: var(--strong);
140
139
  font-weight: var(--weight-semibold);
141
140
  }
@@ -50,6 +50,10 @@
50
50
  .ui-table tfoot tr:first-child > :is(th, td) { border-top: 2px solid var(--border-strong); }
51
51
  .ui-table tfoot th { text-align: right; }
52
52
  .ui-table td.ui-table__title { color: var(--strong); font-weight: var(--weight-medium); width: 99%; white-space: normal; }
53
+ /* A floor, not a spacing step: a two-word name stays on one line when the table is
54
+ wider than its frame, so the frame scrolls instead of the title breaking at each word,
55
+ as a pinned subject column did in #832. A pinned column's own ceiling still wins. */
56
+ .ui-table td.ui-table__title { min-width: min(20ch, var(--ui-table-identity-max, 20ch)); }
53
57
  .ui-table th:last-child { padding-right: 0; }
54
58
  /* The last body cell ends where its header and the table end. A right-aligned amount in the
55
59
  last column stood 16px in from both, because only the header and the action cell dropped
@@ -534,6 +538,16 @@ a.ui-identity:hover { text-decoration: underline; }
534
538
  /* A pinned selection cell keeps its fixed, centred track. */
535
539
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td):first-child:not(:where(.ui-table--pinned) .ui-table__selection) { padding-left: var(--cell-edge); }
536
540
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) :is(th, td):last-child { padding-right: var(--cell-edge); }
541
+ /* A cell of the default density opens with no padding of its own, so the pinned cell gives half its gap to the
542
+ column after the divider, or that column's text touches the divider. The gap keeps its
543
+ size, so the table keeps one width whether the divider shows or not. #832 */
544
+ .ui-table--pinned:not(.ui-table--dense):not(.ui-table--compact) .ui-table__identity { padding-right: var(--space-2); }
545
+ .ui-table--pinned:not(.ui-table--dense):not(.ui-table--compact) .ui-table__identity + :is(th, td) { padding-left: var(--space-2); }
546
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):is(.ui-table--pinned) .ui-table__identity { padding-right: calc(var(--cell-gap) / 2); }
547
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):is(.ui-table--pinned) .ui-table__identity + :is(th, td) { padding-left: calc(var(--cell-gap) / 2); }
548
+ /* A link that fills a pinned cell carries the cell's padding, so it gives up the same half. */
549
+ .ui-table--pinned:not(.ui-table--dense):not(.ui-table--compact) td.ui-table__identity.ui-table__linked > :is(a:not([class]), a.ui-identity):only-child { padding-right: var(--space-2); }
550
+ .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):is(.ui-table--pinned) td.ui-table__identity.ui-table__linked > :is(a:not([class]), a.ui-identity):only-child { padding-right: calc(var(--cell-gap) / 2); }
537
551
  /* 16px, so the box's 44px phone tap layer stops at the cell's edge and leaves the next cell's control whole. */
538
552
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense):not(.ui-table--pinned) .ui-table__selection { padding-right: var(--space-4); }
539
553
  .ui-table.ui-table--hover:not(.ui-table--zebra):not(.ui-table--dense) thead th { padding-block: var(--space-3); }
@@ -57,6 +57,7 @@
57
57
  .ui-snippet__copy,
58
58
  .ui-footer__social,
59
59
  .ui-app__search,
60
+ .ui-back,
60
61
  .toggle,
61
62
  /* Already relative in react/src/DatePicker.css — restated because this
62
63
  gate reads the kit's own sheets and cannot see that one, and a carrier
@@ -79,6 +80,7 @@
79
80
  .ui-switch,
80
81
  .ui-datepicker__opt,
81
82
  .ui-app__search,
83
+ .ui-back,
82
84
  .toggle
83
85
  )::after {
84
86
  content: "";
@@ -181,6 +183,9 @@
181
183
  other. A chart's switch there keeps the clearance .ui-seg declares. */
182
184
  .ui-card__head { margin-bottom: var(--space-3, 12px) !important; }
183
185
  .ui-card__tools { column-gap: var(--tap-gap) !important; --tap-clear-x: var(--tap-gap); --tap-clear-y: var(--tap-gap); }
186
+ /* The page's title row holds small tools the same way: the room beside them is title
187
+ text, and they stand under the title on a phone, so the layer has room on each side. #832 */
188
+ .ui-app__tools { gap: var(--tap-gap) !important; --tap-clear-x: var(--tap-gap); --tap-clear-y: var(--tap-gap); }
184
189
 
185
190
  /* The selection box is 19px in a 58px row and a 34px header: the layer has room to reach the floor both ways. */
186
191
  .ui-table__selection { --tap-clear-x: var(--tap-min); --tap-clear-y: var(--tap-min); }
@@ -242,6 +247,13 @@
242
247
  --tap-clear-y: var(--tap-gap-bordered);
243
248
  }
244
249
 
250
+ /* A value's icon button, such as a copy button: the value before it, the label above
251
+ and the next row's label below are text, so the layer may reach the floor. #832 */
252
+ .ui-drawer__row > dd {
253
+ --tap-clear-x: var(--tap-gap);
254
+ --tap-clear-y: var(--tap-gap);
255
+ }
256
+
245
257
  /* Both ways: fixed squares cannot overflow the way labels can, and a drawer
246
258
  header spends its column gap on the title. Not the accent picker — its
247
259
  swatches are on no carrier list, so opening it bought no reach. */
@@ -269,6 +281,11 @@
269
281
  20 claims 10px a side and the trigger has 7.4. The clamp would still stop
270
282
  at 44 today and be a number that is not true, which is what the browser
271
283
  half fails a container for. */
284
+ /* A back link draws 32px and owns 6px above and below it: the layer stops 6px into
285
+ the room the shell leaves above the link and the room the page leaves below it.
286
+ Across, it keeps the width it draws. #834 */
287
+ .ui-back { --tap-clear-y: var(--space-3, 12px); }
288
+
272
289
  .ui-app__bar,
273
290
  .topbar__in { --tap-clear-x: var(--space-3, 12px); --tap-clear-y: var(--space-3, 12px); }
274
291
  }