viewkitjs 0.30.1 → 0.32.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.
Files changed (298) hide show
  1. package/CHANGELOG.md +143 -0
  2. package/MIGRATION.md +40 -6
  3. package/README.md +1 -1
  4. package/fields/dist/query/index.d.ts +2 -0
  5. package/fields/dist/query/index.js +2 -0
  6. package/fields/dist/query/list-request.d.ts +148 -0
  7. package/fields/dist/query/list-request.js +125 -0
  8. package/fields/dist/query/saved-view.d.ts +15 -0
  9. package/fields/dist/query/saved-view.js +11 -0
  10. package/fields/dist/query/settings.d.ts +9 -0
  11. package/fields/dist/query/settings.js +9 -0
  12. package/fields/docs/reference/query.md +66 -0
  13. package/package.json +8 -2
  14. package/postgres/README.md +1 -0
  15. package/postgres/dist/handler.d.ts +53 -0
  16. package/postgres/dist/handler.js +211 -0
  17. package/postgres/dist/ids.d.ts +1 -1
  18. package/postgres/dist/ids.js +19 -1
  19. package/postgres/dist/index.d.ts +1 -0
  20. package/postgres/dist/index.js +1 -0
  21. package/postgres/dist/limits.d.ts +3 -1
  22. package/postgres/dist/limits.js +1 -1
  23. package/postgres/dist/list-fields.d.ts +10 -0
  24. package/postgres/dist/list-fields.js +36 -0
  25. package/postgres/dist/readable.d.ts +4 -0
  26. package/postgres/dist/readable.js +4 -0
  27. package/postgres/dist/refusals.d.ts +9 -2
  28. package/postgres/dist/refusals.js +6 -0
  29. package/postgres/docs/guides/field-map.md +2 -2
  30. package/postgres/docs/guides/list-handler.md +99 -0
  31. package/postgres/docs/index.md +1 -0
  32. package/postgres/docs/reference/postgres.md +11 -3
  33. package/views/README.md +2 -2
  34. package/views/dist/atoms/RowMenu.d.ts +7 -0
  35. package/views/dist/atoms/RowMenu.js +18 -16
  36. package/views/dist/atoms/carried.d.ts +5 -0
  37. package/views/dist/atoms/carried.js +7 -0
  38. package/views/dist/atoms/types.d.ts +3 -0
  39. package/views/dist/contract.d.ts +26 -6
  40. package/views/dist/contract.js +25 -0
  41. package/views/dist/controls/alert-dialog/alert-dialog.js +2 -1
  42. package/views/dist/controls/atoms.d.ts +2 -0
  43. package/views/dist/controls/atoms.js +2 -0
  44. package/views/dist/controls/avatar/avatar.d.ts +10 -4
  45. package/views/dist/controls/avatar/avatar.js +5 -3
  46. package/views/dist/controls/avatar/tokens.d.ts +104 -0
  47. package/views/dist/controls/avatar/tokens.js +26 -0
  48. package/views/dist/controls/avatar.css +46 -15
  49. package/views/dist/controls/choice/tokens.d.ts +0 -4
  50. package/views/dist/controls/choice/tokens.js +0 -1
  51. package/views/dist/controls/choice.css +3 -3
  52. package/views/dist/controls/controls.d.ts +6 -0
  53. package/views/dist/controls/controls.js +10 -2
  54. package/views/dist/controls/customize/map-customize-body.js +1 -1
  55. package/views/dist/controls/field/field.d.ts +19 -4
  56. package/views/dist/controls/field/field.js +63 -5
  57. package/views/dist/controls/field/tokens.d.ts +4 -0
  58. package/views/dist/controls/field/tokens.js +1 -0
  59. package/views/dist/controls/field.css +41 -16
  60. package/views/dist/controls/glyphs/glyphs.d.ts +10 -0
  61. package/views/dist/controls/glyphs/glyphs.js +173 -0
  62. package/views/dist/controls/index.d.ts +4 -2
  63. package/views/dist/controls/index.js +3 -1
  64. package/views/dist/controls/input/input.d.ts +12 -1
  65. package/views/dist/controls/input/input.js +10 -6
  66. package/views/dist/controls/input/save-mark.d.ts +8 -0
  67. package/views/dist/controls/input/save-mark.js +26 -0
  68. package/views/dist/controls/input/tokens.d.ts +20 -0
  69. package/views/dist/controls/input/tokens.js +5 -0
  70. package/views/dist/controls/input.css +49 -3
  71. package/views/dist/controls/internal/icons.js +10 -0
  72. package/views/dist/controls/internal/keep-focus.d.ts +2 -0
  73. package/views/dist/controls/internal/keep-focus.js +17 -0
  74. package/views/dist/controls/internal/watch-frame.d.ts +2 -0
  75. package/views/dist/controls/internal/watch-frame.js +33 -0
  76. package/views/dist/controls/markdown/map-markdown.d.ts +4 -0
  77. package/views/dist/controls/markdown/map-markdown.js +5 -0
  78. package/views/dist/controls/menu/map-menu.js +2 -2
  79. package/views/dist/controls/menu-list/menu-list.d.ts +3 -0
  80. package/views/dist/controls/menu-list/menu-list.js +5 -4
  81. package/views/dist/controls/modal/modal.js +5 -1
  82. package/views/dist/controls/pane/pane.js +2 -1
  83. package/views/dist/controls/phone-header/header-bar.d.ts +5 -1
  84. package/views/dist/controls/phone-header/header-bar.js +2 -2
  85. package/views/dist/controls/phone-header.css +11 -1
  86. package/views/dist/controls/picker/map-picker.js +3 -0
  87. package/views/dist/controls/picker/picker.d.ts +14 -0
  88. package/views/dist/controls/picker/picker.js +30 -10
  89. package/views/dist/controls/picker.css +2 -0
  90. package/views/dist/controls/popover/popover.js +2 -1
  91. package/views/dist/controls/radio/radio.d.ts +12 -3
  92. package/views/dist/controls/radio/radio.js +25 -5
  93. package/views/dist/controls/radio/tokens.d.ts +84 -0
  94. package/views/dist/controls/radio/tokens.js +21 -0
  95. package/views/dist/controls/radio.css +130 -3
  96. package/views/dist/controls/select/select.d.ts +12 -2
  97. package/views/dist/controls/select/select.js +15 -7
  98. package/views/dist/controls/select/tokens.d.ts +8 -0
  99. package/views/dist/controls/select/tokens.js +2 -0
  100. package/views/dist/controls/select.css +17 -0
  101. package/views/dist/controls/setting-row/looks.d.ts +10 -0
  102. package/views/dist/controls/setting-row/looks.js +22 -0
  103. package/views/dist/controls/setting-row/setting-row.d.ts +100 -0
  104. package/views/dist/controls/setting-row/setting-row.js +133 -0
  105. package/views/dist/controls/setting-row/tokens.d.ts +156 -0
  106. package/views/dist/controls/setting-row/tokens.js +41 -0
  107. package/views/dist/controls/setting-row.css +215 -0
  108. package/views/dist/controls/sheet/bottom-sheet.d.ts +10 -2
  109. package/views/dist/controls/sheet/bottom-sheet.js +6 -3
  110. package/views/dist/controls/sheet.css +4 -1
  111. package/views/dist/controls/sort-editor/sort-editor.js +3 -2
  112. package/views/dist/controls/sort-editor.css +8 -2
  113. package/views/dist/controls/switch-row/switch-row.d.ts +1 -15
  114. package/views/dist/controls/switch-row/switch-row.js +1 -9
  115. package/views/dist/controls/switch-row/tokens.d.ts +0 -12
  116. package/views/dist/controls/switch-row/tokens.js +0 -3
  117. package/views/dist/controls/switch-row.css +3 -7
  118. package/views/dist/controls/switch.css +17 -7
  119. package/views/dist/controls/tag/tag.d.ts +3 -1
  120. package/views/dist/controls/tag/tag.js +2 -2
  121. package/views/dist/controls/tag/tokens.d.ts +4 -0
  122. package/views/dist/controls/tag/tokens.js +1 -0
  123. package/views/dist/controls/tag-field/tag-field.d.ts +5 -1
  124. package/views/dist/controls/tag-field/tag-field.js +11 -5
  125. package/views/dist/controls/tag-field/tokens.d.ts +16 -0
  126. package/views/dist/controls/tag-field/tokens.js +4 -0
  127. package/views/dist/controls/tag-field.css +19 -0
  128. package/views/dist/controls/tag.css +2 -0
  129. package/views/dist/controls/tokens.js +2 -0
  130. package/views/dist/controls/toolbar/toolbar.d.ts +15 -3
  131. package/views/dist/controls/toolbar/toolbar.js +22 -15
  132. package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +14 -0
  133. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +51 -0
  134. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +1 -1
  135. package/views/dist/controls/toolbar-button/toolbar-button.js +2 -3
  136. package/views/dist/controls/toolbar-button.css +4 -0
  137. package/views/dist/controls/toolbar.css +5 -0
  138. package/views/dist/controls/views-list/map-view-menu.d.ts +3 -0
  139. package/views/dist/controls/views-list/map-view-menu.js +25 -0
  140. package/views/dist/controls/views-list/map-views-list-body.d.ts +28 -1
  141. package/views/dist/controls/views-list/map-views-list-body.js +39 -21
  142. package/views/dist/controls/views-list/rules.d.ts +2 -0
  143. package/views/dist/controls/views-list/view-menu.d.ts +7 -0
  144. package/views/dist/controls/views-list/view-menu.js +28 -24
  145. package/views/dist/controls/views-list/words.d.ts +2 -0
  146. package/views/dist/controls/views-list/words.js +1 -1
  147. package/views/dist/editors/EditorPanel.js +2 -1
  148. package/views/dist/editors/edit-session.js +2 -5
  149. package/views/dist/field-row/FieldRow.d.ts +4 -2
  150. package/views/dist/field-row/FieldRow.js +67 -20
  151. package/views/dist/field-row/FieldRowLane.d.ts +7 -2
  152. package/views/dist/field-row/FieldRowLane.js +4 -3
  153. package/views/dist/field-row/editors/RowEditor.d.ts +12 -0
  154. package/views/dist/field-row/editors/RowEditor.js +31 -1
  155. package/views/dist/field-row/editors/RowValueListEditor.d.ts +5 -1
  156. package/views/dist/field-row/editors/RowValueListEditor.js +4 -1
  157. package/views/dist/field-row/field-row-button.d.ts +5 -0
  158. package/views/dist/field-row/field-row-button.js +2 -0
  159. package/views/dist/fields/binding.d.ts +3 -2
  160. package/views/dist/fields/binding.js +38 -5
  161. package/views/dist/grid/chrome/GridColumnMenu.d.ts +4 -2
  162. package/views/dist/grid/chrome/GridColumnMenu.js +3 -2
  163. package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -1
  164. package/views/dist/grid/chrome/GridGroupMenu.js +4 -3
  165. package/views/dist/grid/chrome/GridHeader.d.ts +4 -1
  166. package/views/dist/grid/chrome/GridHeader.js +2 -2
  167. package/views/dist/grid/chrome/GridRow.js +6 -5
  168. package/views/dist/grid/chrome/GridRowCells.js +6 -9
  169. package/views/dist/grid/chrome/GridStructure.d.ts +4 -1
  170. package/views/dist/grid/chrome/GridStructure.js +4 -4
  171. package/views/dist/grid/chrome/GridTable.js +5 -2
  172. package/views/dist/grid/chrome/grid-column-menu-items.js +1 -1
  173. package/views/dist/grid/chrome/grid-row-menu-items.d.ts +27 -3
  174. package/views/dist/grid/chrome/grid-row-menu-items.js +92 -6
  175. package/views/dist/grid/chrome/grid-row-props.d.ts +7 -2
  176. package/views/dist/grid/chrome/grid-rows-menu.js +34 -6
  177. package/views/dist/grid/chrome/grid-table-props.d.ts +38 -7
  178. package/views/dist/grid/chrome/useGridBatchApi.d.ts +3 -1
  179. package/views/dist/grid/chrome/useGridBatchApi.js +4 -2
  180. package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -2
  181. package/views/dist/grid/chrome/useGridKeyboard.js +15 -9
  182. package/views/dist/grid/chrome/useGridPendingReconciliation.js +1 -2
  183. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
  184. package/views/dist/grid/chrome/useGridTableInteractionModel.js +11 -5
  185. package/views/dist/grid/core/commit-model.d.ts +20 -2
  186. package/views/dist/grid/core/editing-controller.d.ts +18 -0
  187. package/views/dist/grid/core/editing-controller.js +188 -42
  188. package/views/dist/grid/core/editing-model.d.ts +3 -0
  189. package/views/dist/grid/core/editing-model.js +3 -0
  190. package/views/dist/grid/core/save-path.d.ts +24 -0
  191. package/views/dist/grid/core/save-path.js +122 -0
  192. package/views/dist/grid/core/spreadsheet-operations.d.ts +3 -0
  193. package/views/dist/grid/core/spreadsheet-operations.js +23 -0
  194. package/views/dist/grid/index.d.ts +3 -2
  195. package/views/dist/grid/index.js +1 -0
  196. package/views/dist/internal/field-rows.d.ts +26 -0
  197. package/views/dist/internal/field-rows.js +8 -0
  198. package/views/dist/internal/page-close.d.ts +7 -0
  199. package/views/dist/internal/page-close.js +43 -0
  200. package/views/dist/list/browser-views-store.d.ts +10 -0
  201. package/views/dist/list/browser-views-store.js +182 -0
  202. package/views/dist/list/index.d.ts +23 -0
  203. package/views/dist/list/index.js +8 -0
  204. package/views/dist/list/menu.d.ts +31 -0
  205. package/views/dist/list/menu.js +76 -0
  206. package/views/dist/list/parts.d.ts +6 -0
  207. package/views/dist/list/parts.js +59 -0
  208. package/views/dist/list/registry.d.ts +11 -0
  209. package/views/dist/list/registry.js +31 -0
  210. package/views/dist/list/root.d.ts +40 -0
  211. package/views/dist/list/root.js +128 -0
  212. package/views/dist/list/slot.d.ts +14 -0
  213. package/views/dist/list/slot.js +22 -0
  214. package/views/dist/list/source.d.ts +11 -0
  215. package/views/dist/list/source.js +31 -0
  216. package/views/dist/list/store.d.ts +87 -0
  217. package/views/dist/list/store.js +115 -0
  218. package/views/dist/list/toolbar.d.ts +6 -0
  219. package/views/dist/list/toolbar.js +359 -0
  220. package/views/dist/list/views-axis.d.ts +5 -0
  221. package/views/dist/list/views-axis.js +96 -0
  222. package/views/dist/list/views-store.d.ts +41 -0
  223. package/views/dist/list/views-store.js +1 -0
  224. package/views/dist/list/views.d.ts +67 -0
  225. package/views/dist/list/views.js +400 -0
  226. package/views/dist/looks/index.d.ts +1 -0
  227. package/views/dist/looks/index.js +1 -0
  228. package/views/dist/looks/pieces.js +2 -0
  229. package/views/dist/model/preferences.js +1 -1
  230. package/views/dist/model/prefs-buckets.js +1 -1
  231. package/views/dist/panels/index.d.ts +3 -1
  232. package/views/dist/panels/index.js +1 -0
  233. package/views/dist/panels/react/customize-body.js +1 -0
  234. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +41 -4
  235. package/views/dist/panels/react/toolbar/ReadyToolbar.js +6 -326
  236. package/views/dist/panels/react/toolbar/Toolbar.d.ts +9 -1
  237. package/views/dist/panels/react/toolbar/Toolbar.js +34 -23
  238. package/views/dist/panels/react/toolbar/ToolbarButton.js +4 -1
  239. package/views/dist/panels/react/toolbar/ToolbarNew.js +1 -1
  240. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +2 -2
  241. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +3 -1
  242. package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
  243. package/views/dist/panels/react/toolbar/context.d.ts +10 -2
  244. package/views/dist/panels/react/toolbar/context.js +3 -1
  245. package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +1 -1
  246. package/views/dist/panels/react/views-row/FoldingViewRow.js +15 -4
  247. package/views/dist/panels/react/views-row/PillGroup.d.ts +5 -2
  248. package/views/dist/panels/react/views-row/PillGroup.js +16 -7
  249. package/views/dist/panels/react/views-row/ViewPicker.js +2 -12
  250. package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +4 -2
  251. package/views/dist/panels/react/views-row/ViewPickerRow.js +9 -5
  252. package/views/dist/panels/react.d.ts +2 -2
  253. package/views/dist/panels/toolbar/edit-view.d.ts +7 -1
  254. package/views/dist/panels/toolbar/edit-view.js +14 -0
  255. package/views/dist/panels/toolbar/model.d.ts +5 -0
  256. package/views/dist/panels/toolbar/model.js +7 -3
  257. package/views/dist/panels/view-state.d.ts +5 -3
  258. package/views/dist/panels/views-row/model.d.ts +19 -2
  259. package/views/dist/panels/views-row/model.js +14 -0
  260. package/views/dist/provider/ViewsProvider.d.ts +16 -7
  261. package/views/dist/provider/ViewsProvider.js +23 -5
  262. package/views/dist/provider/components.d.ts +43 -2
  263. package/views/dist/provider/context.d.ts +2 -1
  264. package/views/dist/provider/context.js +1 -1
  265. package/views/dist/provider/ports.d.ts +19 -12
  266. package/views/dist/provider/ports.js +69 -1
  267. package/views/dist/react.d.ts +1 -1
  268. package/views/dist/styles.css +583 -61
  269. package/views/dist/styles.unlayered.css +583 -61
  270. package/views/docs/contract.md +42 -31
  271. package/views/docs/controls/avatar.md +26 -0
  272. package/views/docs/controls/choice.md +0 -1
  273. package/views/docs/controls/field.md +3 -0
  274. package/views/docs/controls/input.md +9 -0
  275. package/views/docs/controls/radio.md +33 -0
  276. package/views/docs/controls/select.md +6 -0
  277. package/views/docs/controls/setting-row.md +44 -0
  278. package/views/docs/controls/switch-row.md +0 -3
  279. package/views/docs/controls/tag-field.md +4 -0
  280. package/views/docs/controls/tag.md +1 -0
  281. package/views/docs/getting-started.md +2 -2
  282. package/views/docs/guides/atoms.md +2 -2
  283. package/views/docs/guides/columns.md +1 -1
  284. package/views/docs/guides/ports.md +1 -1
  285. package/views/docs/guides/the-grid.md +34 -7
  286. package/views/docs/guides/the-provider.md +4 -2
  287. package/views/docs/index.md +1 -0
  288. package/views/docs/reference/controls.md +54 -27
  289. package/views/docs/reference/editors-session.md +1 -1
  290. package/views/docs/reference/field-row.md +9 -1
  291. package/views/docs/reference/grid.md +14 -8
  292. package/views/docs/reference/list.md +227 -0
  293. package/views/docs/reference/looks.md +3 -0
  294. package/views/docs/reference/panels-react.md +17 -12
  295. package/views/docs/reference/panels.md +8 -5
  296. package/views/docs/reference/react.md +11 -9
  297. package/views/docs/reference/views.md +2 -2
  298. package/views/skills/views/SKILL.md +9 -6
@@ -0,0 +1,215 @@
1
+ /* The setting row and its card, as the Outright kit draws them (setting-row/setting-row.tsx): one setting as a row, its words
2
+ (choice.css) on the left, its control at its end (the Switch, the Select, a Button, or its value and ›), its mark or icon at
3
+ its start; the rows in a card, a line between each; the danger zone's card with a red edge; a lone row bare. Two options, each
4
+ a computer's, picked on the frame or the app around it (looks.ts): the card (outlined, the default, or raised on its ground)
5
+ and the rows (snug, the default, or roomy, 64 tall). Nothing picked draws exactly as SwitchRows did (switch-row.css); a switch's row is no
6
+ press of its own, only its Switch is (KIT-969). On a phone the card and its rows are
7
+ Field rows' (field.css), and this sheet adds what a setting puts in them, as iOS's Settings draws it (KIT-972): the name taking
8
+ the room; the value in the quietest grey, cut with …, before iOS's ›; a button's words in the link colour at the end; a lone
9
+ row's name in the link colour; a danger row's name and icon in red; a locked row faded but for its line; and its icon by the
10
+ phone's Icon option, a line icon (Line, nothing picked) or a white glyph on a tile of the colour the app passed (Tile).
11
+
12
+ Linear's look (VK-985; round 4 of the Outright kit's settings canvas) is four more values, each a computer's, drawn only under
13
+ its own attribute, so nothing picked and Attio's draw as before: Card's Edged (the card on its ground with a firm edge, the
14
+ danger zone's card plain, a lone row a card of its own, an icon on a grey tile, no edge); Rows' Inset (60 tall at least, 15 by
15
+ 16, the line between rows from the words' start to 16 short of the end); End's Words (an action as its words, 28 tall, in the
16
+ text colour or red, a state as a dot and its words, a locked row's words greyed and its reason in its control's place); and
17
+ Fields' At the end (a Field placed in the card its row, its Input 256 at the end, a select as wide as its value).
18
+
19
+ The rules sit in the components layer, so a utility class on a row still wins. */
20
+ @layer components {
21
+
22
+ /* ── The options: each value sets the card's or the rows' own names, read below ─────────────────────────────────────── */
23
+ :where([data-setting-row-card="raised"]) .o-setting-rows { --setting-rows-edge: var(--vk-border-subtle); --setting-rows-ground: var(--vk-raised); }
24
+ :where([data-setting-row-rows="roomy"]) :is(.o-setting-rows, .o-setting-row) {
25
+ --setting-rows-pad: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 4.5); --setting-rows-height: calc(var(--vk-spacing) * 16);
26
+ --setting-rows-side: calc(var(--vk-spacing) * 16);
27
+ }
28
+ .o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border-danger); }
29
+ /* Edged (Linear's): the card on its ground with a firm edge; its danger zone's plain, only its action red. */
30
+ :where([data-setting-row-card="edged"]) .o-setting-rows { --setting-rows-edge: var(--vk-border); --setting-rows-ground: var(--vk-raised); }
31
+ :where([data-setting-row-card="edged"]) .o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border); }
32
+ /* Inset (Linear's): 60 tall at least, 15 by 16, the line between rows inset 16 at each end. */
33
+ :where([data-setting-row-rows="inset"]) :is(.o-setting-rows, .o-setting-row) {
34
+ --setting-rows-pad: calc(var(--vk-spacing) * 3.75) calc(var(--vk-spacing) * 4); --setting-rows-height: calc(var(--vk-spacing) * 15);
35
+ --setting-rows-side: calc(var(--vk-spacing) * 15);
36
+ }
37
+
38
+ /* ── The card, on a computer: the rows in a box, a line between each ───────────────────────────────────────────────── */
39
+ .o-setting-rows:not(.o-field-rows) {
40
+ display: grid; border: var(--vk-border-width) solid var(--setting-rows-edge, var(--vk-border)); border-radius: var(--vk-radius-lg); overflow: hidden;
41
+ background-color: var(--setting-rows-ground, transparent);
42
+ }
43
+
44
+ /* ── A row, on a computer: its start, its words, its end ───────────────────────────────────────────────────────────── */
45
+ .o-setting-row:not(.o-field-row) {
46
+ display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4); box-sizing: border-box;
47
+ min-height: var(--setting-rows-height, auto); margin: 0; padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
48
+ border: 0; border-top: var(--vk-border-width) solid var(--vk-border-subtle);
49
+ -webkit-tap-highlight-color: transparent; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
50
+ }
51
+ .o-setting-row:not(.o-field-row):first-child { border-top: 0; }
52
+ .o-setting-row:not(.o-field-row) > .o-choice-text { flex: 1 1 auto; }
53
+ .o-setting-row:not(.o-field-row) .o-choice-label { font-weight: var(--vk-font-weight-medium); }
54
+ /* The row that is a press as a whole: the one opening its page (a button). A switch's row is not: only its Switch switches it
55
+ (KIT-969), so it takes no pointer and no ground under it. */
56
+ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: left; background-color: transparent; }
57
+ .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row) { cursor: pointer; }
58
+ @media (hover: hover) { .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row):hover { background-color: var(--vk-hovered); } }
59
+ .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row)[data-locked] { cursor: not-allowed; background-color: transparent; }
60
+
61
+ /* Its start: a mark as given; an icon in its box. */
62
+ .o-setting-row > :not(.o-choice-text, .o-setting-row-press) { flex: none; }
63
+ .o-setting-row-icon {
64
+ display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(var(--vk-spacing) * 8); height: calc(var(--vk-spacing) * 8);
65
+ border: var(--vk-border-width) solid var(--vk-border-subtle); border-radius: var(--vk-radius-md); background-color: var(--vk-raised); color: var(--vk-fg-subtle);
66
+ }
67
+ .o-setting-row-icon > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
68
+
69
+ /* Its end: the reason, then the control; the Select 220 wide; the value and ›. */
70
+ .o-setting-row-end { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); margin-left: auto; min-width: 0; }
71
+ .o-setting-row-select { width: calc(var(--vk-spacing) * 55); }
72
+ .o-setting-row-select .o-select-field { width: 100%; }
73
+ .o-setting-row-reason { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtlest); }
74
+ .o-setting-row-reason + .o-switch { margin-left: calc(var(--vk-spacing) * -2); }
75
+ .o-setting-row-value { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtle); }
76
+ .o-setting-row-chevron { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtlest); }
77
+ /* Locked: its control greyed (a switch keeps its own locked state), its words as they are. */
78
+ .o-setting-row[data-locked] :is(.o-setting-row-select, .o-button, .o-setting-row-value, .o-setting-row-chevron) { opacity: var(--vk-opacity-off); }
79
+
80
+ /* A lone row: bare, no card, no line, no room round it. */
81
+ .o-setting-row[data-alone]:not(.o-field-row) { min-height: 0; padding: 0; border-top: 0; background-color: transparent; }
82
+
83
+ /* ── Linear's values on a computer ─────────────────────────────────────────────────────────────────────────────────── */
84
+ /* Edged: a lone row a card of its own, the rows' room in it; an icon on a grey tile, no edge. */
85
+ :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
86
+ min-height: var(--setting-rows-height, auto); padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
87
+ border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); background-color: var(--vk-raised);
88
+ }
89
+ :where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) {
90
+ border: 0; border-radius: var(--vk-radius-sm); background-color: var(--vk-neutral);
91
+ }
92
+ :where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
93
+ /* Inset: the line between rows from 16 in to 16 short, drawn under a row's own ground. */
94
+ :where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > :is(.o-setting-row, .o-field) { border-top: 0; }
95
+ :where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > * + :is(.o-setting-row, .o-field) {
96
+ background-image: linear-gradient(var(--vk-border-subtle), var(--vk-border-subtle)); background-repeat: no-repeat;
97
+ background-size: calc(100% - var(--vk-spacing) * 8) var(--vk-border-width); background-position: calc(var(--vk-spacing) * 4) 0;
98
+ }
99
+ /* Words: an action as its words, the row's own press, 28 tall, in the text colour, red where it can't be undone; its icon alone
100
+ a 24 press in the subtle text. */
101
+ .o-setting-row:not(.o-field-row) .o-setting-row-act {
102
+ display: inline-flex; align-items: center; justify-content: center; min-height: calc(var(--vk-spacing) * 7); margin: 0;
103
+ padding: 0 calc(var(--vk-spacing) * 1.75); border: 0; border-radius: var(--vk-radius-sm); font: inherit; font-size: var(--vk-font-size-sm);
104
+ line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); white-space: nowrap;
105
+ color: var(--vk-fg); background-color: transparent; cursor: pointer; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
106
+ }
107
+ .o-setting-row:not(.o-field-row) .o-setting-row-act[data-kind="danger"] { color: var(--vk-danger); }
108
+ .o-setting-row:not(.o-field-row) .o-setting-row-act[data-icon] { width: calc(var(--vk-spacing) * 6); min-height: calc(var(--vk-spacing) * 6); padding: 0; color: var(--vk-fg-subtle); }
109
+ .o-setting-row:not(.o-field-row) .o-setting-row-act > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
110
+ @media (hover: hover) { .o-setting-row:not(.o-field-row) .o-setting-row-act:hover:not(:disabled) { background-color: var(--vk-hovered); } }
111
+ .o-setting-row:not(.o-field-row) .o-setting-row-act:disabled { cursor: not-allowed; opacity: var(--vk-opacity-off); }
112
+ /* A state as a dot in its colour and its words in the text colour; with no colour, its words alone. */
113
+ .o-setting-row-said {
114
+ display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); white-space: nowrap; color: var(--vk-fg);
115
+ font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
116
+ }
117
+ .o-setting-row-dot { flex: none; width: calc(var(--vk-spacing) * 1.5); height: calc(var(--vk-spacing) * 1.5); border-radius: var(--vk-radius-full); background-color: var(--setting-row-dot, var(--vk-fg-subtlest)); }
118
+ .o-setting-row-dot[data-colour="blue"] { --setting-row-dot: var(--vk-label-blue); }
119
+ .o-setting-row-dot[data-colour="green"] { --setting-row-dot: var(--vk-label-green); }
120
+ .o-setting-row-dot[data-colour="amber"] { --setting-row-dot: var(--vk-label-amber); }
121
+ .o-setting-row-dot[data-colour="red"] { --setting-row-dot: var(--vk-label-red); }
122
+ .o-setting-row-dot[data-colour="purple"] { --setting-row-dot: var(--vk-label-purple); }
123
+ .o-setting-row-dot[data-colour="pink"] { --setting-row-dot: var(--vk-label-pink); }
124
+ .o-setting-row-dot[data-colour="teal"] { --setting-row-dot: var(--vk-label-teal); }
125
+ /* A locked row under Words: its words greyed, its reason at the row's size. */
126
+ :where([data-setting-row-end="words"]) .o-setting-row[data-locked]:not(.o-field-row) :is(.o-choice-label, .o-choice-note) { color: var(--vk-fg-subtlest); }
127
+ :where([data-setting-row-end="words"]) .o-setting-row:not(.o-field-row) .o-setting-row-reason { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
128
+ /* At the end: a Field in the card is its row (field.tsx), its error red in its note's place, its Input or InputGroup 256 wide at
129
+ the row's end, 64 tall at least under Inset, 16 above and below; every select at a row's end as wide as its value. */
130
+ .o-setting-row-field > .o-choice-text { flex: 1 1 auto; min-width: 0; }
131
+ .o-setting-row-field .o-setting-row-error { color: var(--vk-danger); }
132
+ .o-setting-row-field > .o-setting-row-end > :is(.o-input, .o-input-group) { width: calc(var(--vk-spacing) * 64); }
133
+ :where([data-setting-row-rows="inset"]) .o-setting-row-field { --setting-rows-height: calc(var(--vk-spacing) * 16); --setting-rows-pad: calc(var(--vk-spacing) * 4); }
134
+ :where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) { width: auto; }
135
+ :where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) .o-select-field { width: auto; }
136
+ /* Boxes: a Field placed in a computer's card stands as a row, the rows' room round it and the line above it. */
137
+ .o-setting-rows:not(.o-field-rows) > .o-field { box-sizing: border-box; padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4)); border-top: var(--vk-border-width) solid var(--vk-border-subtle); }
138
+ .o-setting-rows:not(.o-field-rows) > .o-field:first-child { border-top: 0; }
139
+
140
+ /* ── On a phone: Field rows' card and rows; a setting's words, value and › in them ─────────────────────────────────── */
141
+ .o-setting-row.o-field-row > .o-choice-text { flex: 1 1 auto; }
142
+ .o-setting-row-press {
143
+ display: flex; flex: 1 1 auto; align-items: center; gap: calc(var(--vk-spacing) * 3); align-self: stretch; min-width: 0; margin: 0; padding: 0;
144
+ border: 0; font: inherit; color: inherit; text-align: left; background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
145
+ }
146
+ .o-setting-row.o-field-row .o-setting-row-end { flex: 0 1 auto; }
147
+ .o-setting-row.o-field-row .o-setting-row-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
148
+ .o-setting-rows-danger.o-field-rows :is(.o-choice-label, .o-setting-row-icon) { color: var(--vk-danger); }
149
+ .o-setting-row.o-field-row .o-setting-row-end { gap: calc(var(--vk-spacing) * 3); }
150
+ .o-setting-row.o-field-row .o-setting-row-value { max-width: calc(var(--vk-spacing) * 47.5); color: var(--vk-fg-subtlest); }
151
+ .o-setting-row-chevron[data-phone] {
152
+ width: calc(var(--vk-spacing) * 2.25); height: calc(var(--vk-spacing) * 3.75); margin: 0 calc(var(--vk-spacing) * 0.5) 0 calc(var(--vk-spacing) * 0.25); color: var(--vk-icon-disclosure);
153
+ }
154
+ /* One group, one way: a card where any row has a start (an icon, or a mark) gives every row the start's room, 28 an icon's or 32
155
+ when a mark stands in it, so every row's words stand in one line; and each row's rule starts at the words, as iOS's Settings. */
156
+ .o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) { --setting-rows-start: calc(var(--vk-spacing) * 7); }
157
+ .o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start="mark"]) { --setting-rows-start: calc(var(--vk-spacing) * 8); }
158
+ .o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row:not([data-setting-row-start]) { padding-left: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)); }
159
+ .o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row + .o-setting-row {
160
+ background-position: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)) 0;
161
+ background-size: calc(100% - var(--vk-spacing) * 7 - var(--setting-rows-start) - var(--field-rows-line-end, 0px)) var(--vk-border-width);
162
+ }
163
+ /* A button's words at the row's end, a press of their own, a finger's height. */
164
+ .o-setting-row-act {
165
+ display: inline-flex; align-items: center; min-height: calc(var(--vk-spacing) * 11); margin: 0; padding: 0; border: 0; border-radius: var(--vk-radius-md);
166
+ font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); white-space: nowrap; color: var(--vk-fg-brand); background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
167
+ }
168
+ .o-setting-row-act:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
169
+ .o-setting-row-act:disabled { cursor: not-allowed; }
170
+ /* A lone row: the row the press, its name in the link colour. */
171
+ .o-setting-row.o-field-row[data-alone] .o-choice-label { color: var(--vk-fg-brand); }
172
+ /* Locked: faded, but its line (the reason) kept; its Switch fades itself (switch.css). */
173
+ .o-setting-row.o-field-row[data-locked] :is(.o-choice-label, .o-setting-row-icon, .o-setting-row-value, .o-setting-row-chevron, .o-setting-row-act),
174
+ .o-setting-row.o-field-row[data-locked] > :first-child:not(.o-choice-text, .o-setting-row-press),
175
+ .o-setting-row.o-field-row[data-locked] > .o-setting-row-press > :first-child:not(.o-choice-text) { opacity: var(--vk-opacity-off); }
176
+
177
+ /* ── Its icon on a phone, by the Icon option: Line, nothing picked, the glyph alone in the subtle text in a 28 box; Tile, a white
178
+ glyph on a 28 tile of the colour the app passed (data-colour, a label colour), grey when it passed none. The danger zone's
179
+ icons stay lines. Drawn wherever it stands on a phone, a row's start or a list's (SettingIcon). ─────────────────────────── */
180
+ .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) {
181
+ width: calc(var(--vk-spacing) * 7); height: calc(var(--vk-spacing) * 7); border: 0; border-radius: 0; background-color: transparent; color: var(--vk-fg-subtle);
182
+ }
183
+ .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); stroke-width: calc(var(--vk-spacing) * 0.4); }
184
+ :where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) {
185
+ border-radius: var(--vk-radius-md); background-color: var(--setting-row-tile, var(--vk-fg-subtlest)); color: var(--vk-fg-inverse);
186
+ }
187
+ :where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) > svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); stroke-width: calc(var(--vk-spacing) * 0.5); }
188
+ .o-setting-row-icon[data-colour="blue"] { --setting-row-tile: var(--vk-label-blue); }
189
+ .o-setting-row-icon[data-colour="green"] { --setting-row-tile: var(--vk-label-green); }
190
+ .o-setting-row-icon[data-colour="amber"] { --setting-row-tile: var(--vk-label-amber); }
191
+ .o-setting-row-icon[data-colour="red"] { --setting-row-tile: var(--vk-label-red); }
192
+ .o-setting-row-icon[data-colour="purple"] { --setting-row-tile: var(--vk-label-purple); }
193
+ .o-setting-row-icon[data-colour="pink"] { --setting-row-tile: var(--vk-label-pink); }
194
+ .o-setting-row-icon[data-colour="teal"] { --setting-row-tile: var(--vk-label-teal); }
195
+
196
+ @media (prefers-reduced-motion: reduce) { .o-setting-row { transition: none; } }
197
+
198
+ /* ── The card's corners smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every
199
+ browser that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to its smallest row, as a
200
+ control's is. Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it; its
201
+ edge is a ring along the curve over its rows (::after), in the card's edge colour. ── */
202
+ @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
203
+ .o-setting-rows:not(.o-field-rows), :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
204
+ --smooth-amount: var(--vk-corner-smoothing);
205
+ --setting-rows-fit: min(var(--vk-radius-lg), var(--setting-rows-side, calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm))) / (2 + 2 * var(--smooth-amount, 0.7)));
206
+ --smooth-t: var(--setting-rows-fit); --smooth-side: var(--setting-rows-side, calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm)));
207
+ position: relative; overflow: visible; border-color: transparent; border-radius: var(--setting-rows-fit); clip-path: shape(var(--smooth-outline));
208
+ }
209
+ .o-setting-rows:not(.o-field-rows)::after, :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row)::after {
210
+ --smooth-t: max(0px, var(--setting-rows-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
211
+ content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
212
+ background-color: var(--setting-rows-edge, var(--vk-border)); clip-path: shape(var(--smooth-ring));
213
+ }
214
+ }
215
+ }
@@ -10,8 +10,10 @@ export declare const SheetClose: ({ children }: {
10
10
  children: React.ReactElement;
11
11
  }) => import("react/jsx-runtime").JSX.Element;
12
12
  export interface SheetHeadProps {
13
- /** What it is: words, or words with a mark beside them. */
13
+ /** What it is: its words. */
14
14
  title: React.ReactNode;
15
+ /** A record's mark beside its title, as the header bar draws it (the Avatar at 24). */
16
+ mark?: React.ReactNode;
15
17
  /** Its name to screen readers where the title says it otherwise (a mark beside the words, other words): the title is what
16
18
  * names the sheet, so this names the title. */
17
19
  titleLabel?: string;
@@ -33,6 +35,12 @@ export interface SheetHeadProps {
33
35
  right?: React.ReactNode;
34
36
  /** What stands on its right: a ⋯, or two SheetButtons. */
35
37
  children?: React.ReactNode;
38
+ /** The step it heads, as its body's SheetStep names it: its row is drawn afresh for each step and what stands in it slides in
39
+ * with the step, from the left going back. Left off, it changes in place. */
40
+ step?: {
41
+ id: string;
42
+ back?: boolean;
43
+ };
36
44
  }
37
45
  /** A button in its head. Its head is an option on the frame around it, which only sheet.css reads, so both are drawn and it
38
46
  * shows one: under Glass the Glass button, under Flat a quiet Button. Primary, for what confirms, is primary in both. It holds
@@ -49,7 +57,7 @@ export declare function SheetButton({ className, kind, children, ...props }: {
49
57
  /** Its head, one of its kinds: the one header (HeaderBar), under its handle. Glass has on its left the X, or Back in its place, and on its right one action, or two, as the phone header's Two buttons says.
50
58
  * Flat has Back on its left, if there is one, and its action and the X on its right. Or Decide, a button either side of its
51
59
  * title. A sheet with no head is its handle alone. */
52
- export declare function SheetHead({ title, titleLabel, titleAt, description, close, onBack, left, right, children, words }: SheetHeadProps): import("react/jsx-runtime").JSX.Element;
60
+ export declare function SheetHead({ title, mark, titleLabel, titleAt, description, close, onBack, left, right, children, words, step }: SheetHeadProps): import("react/jsx-runtime").JSX.Element;
53
61
  /** Its foot: stays at the foot of the screen at every stop, and leaves with the sheet. */
54
62
  export declare const SheetFoot: ({ children }: {
55
63
  children: React.ReactNode;
@@ -2,9 +2,11 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import * as React from "react";
3
3
  import { Drawer as Base } from "@base-ui/react/drawer";
4
4
  import { cx } from "../../internal/cx.js";
5
+ import { OutOfFieldRows } from "../../internal/field-rows.js";
5
6
  import { Button } from "../button/button.js";
6
7
  import { GlassButton } from "../glass-button/glass-button.js";
7
8
  import { closeReasonOf } from "../internal/close-reason.js";
9
+ import { useKeptFocus } from "../internal/keep-focus.js";
8
10
  import { drawnAt, typesInto } from "../internal/scroll.js";
9
11
  import { HeaderBar } from "../phone-header/header-bar.js";
10
12
  import { Scrollbar } from "../scrollbar/scrollbar.js";
@@ -20,10 +22,10 @@ export const SheetClose = ({ children }) => _jsx(Base.Close, { render: children
20
22
  export function SheetButton({ className, kind, children, ...props }) {
21
23
  return _jsxs(_Fragment, { children: [_jsx(GlassButton, { ...props, kind: kind, className: cx("o-sheet-glass", className), children: children }), _jsx(Button, { ...props, kind: kind ?? "quiet", shape: children == null ? "icon" : undefined, className: cx("o-sheet-plain", className), children: children })] });
22
24
  }
23
- export function SheetHead({ title, titleLabel, titleAt, description, close = true, onBack, left, right, children, words }) {
25
+ export function SheetHead({ title, mark, titleLabel, titleAt, description, close = true, onBack, left, right, children, words, step }) {
24
26
  const closeWord = words?.close ?? "Close", backWord = words?.back ?? "Back";
25
27
  const sides = left != null || right != null;
26
- return (_jsx("div", { className: "o-sheet-head", children: _jsx(HeaderBar, { className: "o-sheet-row", titleAt: titleAt, "data-sides": sides ? "" : undefined, left: sides ? left : onBack ? _jsx(SheetButton, { "aria-label": backWord, className: "o-sheet-back", icon: glyph(BACK), onClick: onBack }) : close && _jsx(Base.Close, { render: _jsx(GlassButton, { "aria-label": closeWord, className: "o-sheet-glass", icon: glyph(X) }) }), title: _jsx(Base.Title, { className: "o-sheet-title", "aria-label": titleLabel, children: title }), description: description, descriptionRender: _jsx(Base.Description, {}), right: sides ? right : _jsxs(_Fragment, { children: [children, close && _jsx(Base.Close, { render: _jsx(Button, { kind: "quiet", shape: "icon", "aria-label": closeWord, className: "o-sheet-plain", icon: glyph(X) }) })] }) }) }));
28
+ return (_jsx("div", { className: "o-sheet-head", children: _jsx(HeaderBar, { className: "o-sheet-row", titleAt: titleAt, mark: mark, "data-sides": sides ? "" : undefined, "data-step": step ? (step.back ? "back" : "in") : undefined, left: sides ? left : onBack ? _jsx(SheetButton, { "aria-label": backWord, className: "o-sheet-back", icon: glyph(BACK), onClick: onBack }) : close && _jsx(Base.Close, { render: _jsx(GlassButton, { "aria-label": closeWord, className: "o-sheet-glass", icon: glyph(X) }) }), title: _jsx(Base.Title, { className: "o-sheet-title", "aria-label": titleLabel, children: title }), description: description, descriptionRender: _jsx(Base.Description, {}), right: sides ? right : _jsxs(_Fragment, { children: [children, close && _jsx(Base.Close, { render: _jsx(Button, { kind: "quiet", shape: "icon", "aria-label": closeWord, className: "o-sheet-plain", icon: glyph(X) }) })] }) }, step?.id) }));
27
29
  }
28
30
  export const SheetFoot = ({ children }) => _jsx("div", { className: "o-sheet-foot", children: children });
29
31
  export const SheetBody = React.forwardRef(function SheetBody({ onScroll, children }, ref) {
@@ -305,6 +307,7 @@ export function Sheet({ open, onOpenChange, onOpenChangeComplete, label, form =
305
307
  const { release } = useSheetMotion({ on: true, open, form, standing, points, point, popup, viewport, backdrop });
306
308
  useFit(form === "floating" || form === "edge", popup, open);
307
309
  useKeyboardFoot(popup, open && !standing);
310
+ useKeptFocus(popup);
308
311
  React.useEffect(() => {
309
312
  if (form === "full" || form === "edge" || !popup)
310
313
  return;
@@ -372,5 +375,5 @@ export function Sheet({ open, onOpenChange, onOpenChangeComplete, label, form =
372
375
  }, children: _jsxs(Base.Portal, { container: container, children: [_jsx(Base.Backdrop, { ref: backdrop, forceRender: stacked, className: "o-sheet-backdrop", "data-stacked": stacked ? "" : undefined }), _jsxs(Base.Viewport, { ref: setViewport, className: "o-sheet-viewport", "data-sheet-form": form, onClick: standing ? (e) => { if (e.target === e.currentTarget) {
373
376
  release("closed");
374
377
  close("outside-press");
375
- } } : undefined, children: [_jsx(Base.Popup, { ref: bindPopup, initialFocus: popupRef, finalFocus: finalFocus ? () => finalFocus() ?? true : undefined, className: cx("o-sheet o-smooth", className), "data-sheet-form": form, "aria-label": label, "data-kit": "sheet", children: _jsxs("div", { className: "o-sheet-cut", children: [_jsx("div", { className: "o-sheet-handle", "aria-hidden": "true" }), _jsx(Standing.Provider, { value: standing, children: _jsx(Body.Provider, { value: body, children: _jsx(CloseAll.Provider, { value: closeAll, children: children }) }) })] }) }), coming && _jsx("div", { className: "o-sheet-shield", "aria-hidden": "true", "data-sheet-shield": "", onPointerDown: (e) => { e.preventDefault(); e.stopPropagation(); }, onMouseDown: (e) => { e.preventDefault(); e.stopPropagation(); }, onClick: (e) => e.stopPropagation() })] })] }) }));
378
+ } } : undefined, children: [_jsx(Base.Popup, { ref: bindPopup, initialFocus: popupRef, finalFocus: finalFocus ? () => finalFocus() ?? true : undefined, className: cx("o-sheet o-smooth", className), "data-sheet-form": form, "aria-label": label, "data-kit": "sheet", children: _jsxs("div", { className: "o-sheet-cut", children: [_jsx("div", { className: "o-sheet-handle", "aria-hidden": "true" }), _jsx(Standing.Provider, { value: standing, children: _jsx(Body.Provider, { value: body, children: _jsx(CloseAll.Provider, { value: closeAll, children: _jsx(OutOfFieldRows, { children: children }) }) }) })] }) }), coming && _jsx("div", { className: "o-sheet-shield", "aria-hidden": "true", "data-sheet-shield": "", onPointerDown: (e) => { e.preventDefault(); e.stopPropagation(); }, onMouseDown: (e) => { e.preventDefault(); e.stopPropagation(); }, onClick: (e) => e.stopPropagation() })] })] }) }));
376
379
  }
@@ -211,6 +211,9 @@
211
211
  sideways (a full Sheet's body scrolls, and a step's slide would otherwise widen it). */
212
212
  .o-sheet-step { outline: none; }
213
213
  .o-sheet-body:has(.o-sheet-step) { overflow-x: hidden; }
214
+ /* A head that heads a step slides in with it: what stands in its row, its ground (the soft edge) staying still. */
215
+ .o-sheet-row[data-step] > :not(.o-hd-bar-edge) { --step-from: calc(var(--vk-spacing) * 6); animation: o-sheet-step var(--vk-duration-slow) var(--vk-ease-out); }
216
+ .o-sheet-row[data-step="back"] > :not(.o-hd-bar-edge) { --step-from: calc(var(--vk-spacing) * -6); }
214
217
 
215
218
  /* Less motion: a fade, no scale. */
216
219
  @media (prefers-reduced-motion: reduce) {
@@ -218,6 +221,6 @@
218
221
  .o-sheet:is([data-starting-style], [data-ending-style]) { opacity: 0; transform: translateY(var(--drawer-snap-point-offset, 0px)); }
219
222
  .o-sheet[data-nested-drawer-open] { scale: 1; }
220
223
  .o-sheet-backdrop { transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
221
- .o-sheet-step { animation: none; }
224
+ .o-sheet-step, .o-sheet-row[data-step] > :not(.o-hd-bar-edge) { animation: none; }
222
225
  }
223
226
  }
@@ -24,6 +24,7 @@ const directionsOf = (w) => [
24
24
  { value: "descending", label: w.descending, as: { mark: markOf(DESCENDING) } },
25
25
  ];
26
26
  const isDirection = (v) => v === "ascending" || v === "descending";
27
+ const DirectionFit = ({ items }) => (_jsx("span", { className: "o-sort-editor-fit", "aria-hidden": "true", children: items.map((i) => (_jsxs("span", { className: "o-input o-input-xs o-select-field", children: [_jsxs("span", { className: "o-select-value", children: [i.mark, _jsx("span", { className: "o-list-main", children: i.label })] }), _jsx("span", { className: "o-select-chevron", children: _jsx("svg", {}) })] }, i.value))) }));
27
28
  const X_LOOK = { radius: "sm", corner: "round", edge: "none", words: "inherit", colour: "faint", icon: "16" };
28
29
  const ROWS = { cards: "one", edge: "on", height: "56", label: "none", lines: "words" };
29
30
  function fieldsFor(fields, rules, sorted, own, fieldOf) {
@@ -169,8 +170,8 @@ export function useSortEditor(props) {
169
170
  const name = nameOf(r.field), g = gripProps(i), open = opens?.rule === i ? opens.list : null;
170
171
  const items = pickable(r.field);
171
172
  return (_jsxs("div", { role: "listitem", className: "o-sort-editor-rule", "data-row": i, "data-lifted": liftedAt(i), style: lift(i), children: [_jsx(Grip, { label: w.move(name), className: "o-sort-editor-grip", ...g }), _jsxs("div", { className: "o-sort-editor-field", children: [_jsx(Select, { size: "xs", listWidth: "rows", "aria-label": w.field, items: asSelect(items), value: r.field, search: search, "data-force": open === "field" ? "focus" : undefined, onValueChange: (v) => { if (typeof v === "string" && v !== r.field && !takenBy(now.current, v, r.field, fieldOf))
172
- change(now.current.map((x, k) => (k === i ? { ...x, field: v } : x))); } }), open === "field" && shownList(items, r.field, w.field, true)] }), _jsxs("div", { className: "o-sort-editor-direction", children: [_jsx(Select, { size: "xs", listWidth: "rows", "aria-label": w.direction, items: asSelect(DIRECTIONS), value: r.direction, "data-force": open === "direction" ? "focus" : undefined, onValueChange: turn(i) }), open === "direction" && shownList(DIRECTIONS, r.direction, w.direction, false)] }), _jsx(Button, { kind: "quiet", shape: "icon", size: "2xs", look: X_LOOK, className: "o-sort-editor-remove", "aria-label": w.remove(name), icon: glyph(X), onClick: () => remove(i) })] }, r.field));
173
- }), aside.map((a) => (_jsxs("div", { role: "listitem", className: "o-sort-editor-rule o-sort-editor-aside", "data-aside": "", "data-aside-key": a.key, children: [_jsx("span", { className: "o-sort-editor-grip-place", "aria-hidden": "true" }), _jsx("div", { className: "o-sort-editor-field", children: _jsx(Tooltip, { label: a.why, side: "bottom", children: _jsx("span", { className: "o-sort-editor-why", children: _jsx(Select, { size: "xs", listWidth: "rows", "aria-label": w.fieldNamed(a.label), items: asSelect(pickable()), value: null, placeholder: a.label, search: search, onValueChange: pointAt(a.key) }) }) }) }), _jsx("div", { className: "o-sort-editor-direction", children: _jsx(Tooltip, { label: a.why, side: "bottom", children: _jsx("span", { className: "o-sort-editor-why", children: _jsx(Select, { size: "xs", listWidth: "rows", "aria-label": w.direction, items: asSelect(DIRECTIONS), value: a.direction, disabled: true, onValueChange: () => { } }) }) }) }), _jsx(Menu, { label: w.sortBy(a.label), align: "end", entries: asideEntries(a), trigger: _jsx(Button, { kind: "quiet", shape: "icon", size: "2xs", look: X_LOOK, className: "o-sort-editor-more", "aria-label": w.actionsFor(a.label), icon: glyph(DOTS) }) })] }, `aside-${a.key}`)))] }), (adds || rules.length > 0) && _jsxs("div", { className: "o-sort-editor-foot", children: [adds && addButton("sm"), rules.length > 0 && _jsx(Button, { kind: "quiet", size: "sm", className: "o-sort-editor-clear", onClick: () => { closePop(); change([]); if (!asideNow.current.length)
173
+ change(now.current.map((x, k) => (k === i ? { ...x, field: v } : x))); } }), open === "field" && shownList(items, r.field, w.field, true)] }), _jsxs("div", { className: "o-sort-editor-direction", children: [_jsx(Select, { size: "xs", listWidth: "rows", "aria-label": w.direction, items: asSelect(DIRECTIONS), value: r.direction, "data-force": open === "direction" ? "focus" : undefined, onValueChange: turn(i) }), _jsx(DirectionFit, { items: asSelect(DIRECTIONS) }), open === "direction" && shownList(DIRECTIONS, r.direction, w.direction, false)] }), _jsx(Button, { kind: "quiet", shape: "icon", size: "2xs", look: X_LOOK, className: "o-sort-editor-remove", "aria-label": w.remove(name), icon: glyph(X), onClick: () => remove(i) })] }, r.field));
174
+ }), aside.map((a) => (_jsxs("div", { role: "listitem", className: "o-sort-editor-rule o-sort-editor-aside", "data-aside": "", "data-aside-key": a.key, children: [_jsx("span", { className: "o-sort-editor-grip-place", "aria-hidden": "true" }), _jsx("div", { className: "o-sort-editor-field", children: _jsx(Tooltip, { label: a.why, side: "bottom", children: _jsx("span", { className: "o-sort-editor-why", children: _jsx(Select, { size: "xs", listWidth: "rows", "aria-label": w.fieldNamed(a.label), items: asSelect(pickable()), value: null, placeholder: a.label, search: search, onValueChange: pointAt(a.key) }) }) }) }), _jsxs("div", { className: "o-sort-editor-direction", children: [_jsx(Tooltip, { label: a.why, side: "bottom", children: _jsx("span", { className: "o-sort-editor-why", children: _jsx(Select, { size: "xs", listWidth: "rows", "aria-label": w.direction, items: asSelect(DIRECTIONS), value: a.direction, disabled: true, onValueChange: () => { } }) }) }), _jsx(DirectionFit, { items: asSelect(DIRECTIONS) })] }), _jsx(Menu, { label: w.sortBy(a.label), align: "end", entries: asideEntries(a), trigger: _jsx(Button, { kind: "quiet", shape: "icon", size: "2xs", look: X_LOOK, className: "o-sort-editor-more", "aria-label": w.actionsFor(a.label), icon: glyph(DOTS) }) })] }, `aside-${a.key}`)))] }), (adds || rules.length > 0) && _jsxs("div", { className: "o-sort-editor-foot", children: [adds && addButton("sm"), rules.length > 0 && _jsx(Button, { kind: "quiet", size: "sm", className: "o-sort-editor-clear", onClick: () => { closePop(); change([]); if (!asideNow.current.length)
174
175
  onDone?.(); }, children: w.clearAllSorts })] }), _jsx(Popover, { open: pop?.list === "add", onOpenChange: (o) => { if (!o)
175
176
  closePop(); }, anchor: pop?.at, className: "o-sort-editor-pop", "aria-label": w.add, children: pop?.list === "add" && addPicker })] }) }));
176
177
  return { body, head: {} };
@@ -1,7 +1,7 @@
1
1
  /* The sort editor: what a list's sort opens (KIT-623), after Attio's (the toolbar canvas's round 3 Sort board and round 11 PhoneSort
2
2
  board). Every value is a public --vk-* name (sort-editor/tokens.ts). On a computer, what the Popover holds: the rules, each a row 28 high, 8 apart (its
3
3
  grip, the field's box 208 wide, the direction's 152, ×: as wide as its two boxes need, Company › Industry and Descending whole,
4
- Mihai, 17 Nov 2026), then 12 under them its foot, the filter editor's (KIT-794): a row, Add sort at its start, Clear all sorts at
4
+ Mihai, 17 Nov 2026; the direction's wider where the app's words need it, VK-976), then 12 under them its foot, the filter editor's (KIT-794): a row, Add sort at its start, Clear all sorts at
5
5
  its end. A rule held by its grip lifts on the overlay's ground with a shadow. On a phone, what the Sheet holds: Field rows' card, each rule 56 high (its field's mark, its name
6
6
  and its direction under it, ⋯), or, with none, what it says; then Add sort and Clear all, the whole width. Its narrow form
7
7
  (KIT-672), what Customize's Sort holds in the Pane on a computer: the phone's structure at a computer's sizes (Mihai, 19 Nov
@@ -27,7 +27,13 @@
27
27
  .o-sort-editor-grip { flex: none; touch-action: none; }
28
28
  .o-sort-editor-field, .o-sort-editor-direction { position: relative; flex: none; min-width: 0; }
29
29
  .o-sort-editor-field { width: calc(var(--vk-spacing) * 52); }
30
- .o-sort-editor-direction { width: calc(var(--vk-spacing) * 38); }
30
+ /* The direction's box as wide as the longer of its two words in the app's language, whichever is picked, so the row never moves on a
31
+ turn: its field and both words drawn as its field draws them, out of sight, stand in one place, the widest setting it (VK-976).
32
+ Never under 152, so English's Descending draws as it did; never past 240, the filter editor's boxes' (filter-editor.css), a
33
+ longer word then ending in "…" (the Select's own words cut). An app's own width on the box still wins. */
34
+ .o-sort-editor-direction { display: grid; grid-template-columns: minmax(0, 1fr); min-width: calc(var(--vk-spacing) * 38); max-width: calc(var(--vk-spacing) * 60); }
35
+ .o-sort-editor-direction > :is(.o-select, .o-sort-editor-why), .o-sort-editor-fit, .o-sort-editor-fit > * { grid-area: 1 / 1; }
36
+ .o-sort-editor-fit { display: grid; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
31
37
  .o-sort-editor-field > .o-select, .o-sort-editor-direction > .o-select { width: 100%; }
32
38
  .o-sort-editor-remove { flex: none; }
33
39
 
@@ -1,15 +1 @@
1
- import * as React from "react";
2
- import { type SwitchProps } from "../switch/switch.js";
3
- export interface SwitchRowProps extends SwitchProps {
4
- /** The setting's name ("Daily summary"), not the action. */
5
- label: React.ReactNode;
6
- /** A line under it: what it does, or why it is locked. */
7
- note?: React.ReactNode;
8
- }
9
- /** A setting in a settings list: its name and a line on the left, the switch on the right; the whole row presses it. */
10
- export declare function SwitchRow({ label, note, ...props }: SwitchRowProps): import("react/jsx-runtime").JSX.Element;
11
- /** Settings rows in a bordered box, a line between each. */
12
- export declare function SwitchRows({ className, children }: {
13
- className?: string;
14
- children: React.ReactNode;
15
- }): import("react/jsx-runtime").JSX.Element;
1
+ export { SwitchRow, SwitchRows, type SwitchRowProps } from "../setting-row/setting-row.js";
@@ -1,9 +1 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cx } from "../../internal/cx.js";
3
- import { Switch } from "../switch/switch.js";
4
- export function SwitchRow({ label, note, ...props }) {
5
- return (_jsxs("label", { className: "o-switch-row", children: [_jsxs("span", { className: "o-choice-text", children: [_jsx("span", { className: "o-choice-label", children: label }), note != null && _jsx("span", { className: "o-choice-note", children: note })] }), _jsx(Switch, { ...props })] }));
6
- }
7
- export function SwitchRows({ className, children }) {
8
- return _jsx("div", { className: cx("o-switch-rows o-smooth o-smooth-ease", className), children: children });
9
- }
1
+ export { SwitchRow, SwitchRows } from "../setting-row/setting-row.js";
@@ -6,10 +6,6 @@ export declare const SWITCH_ROW_TOKENS: readonly [{
6
6
  readonly name: "--vk-border-subtle";
7
7
  readonly kind: "colour";
8
8
  readonly outright: "--border-subtle";
9
- }, {
10
- readonly name: "--vk-hovered";
11
- readonly kind: "colour";
12
- readonly outright: "--surface-hovered";
13
9
  }, {
14
10
  readonly name: "--vk-border-width";
15
11
  readonly kind: "size";
@@ -38,14 +34,6 @@ export declare const SWITCH_ROW_TOKENS: readonly [{
38
34
  readonly name: "--vk-spacing";
39
35
  readonly kind: "size";
40
36
  readonly outright: "--spacing";
41
- }, {
42
- readonly name: "--vk-duration-fast";
43
- readonly kind: "motion";
44
- readonly outright: "--duration-fast";
45
- }, {
46
- readonly name: "--vk-ease-out";
47
- readonly kind: "motion";
48
- readonly outright: "--ease-out";
49
37
  }];
50
38
  /** The rows' card's own machinery: the size its smooth corner is fitted to. */
51
39
  export declare const SWITCH_ROW_PRIVATE: readonly ["--rows-card-"];
@@ -1,7 +1,6 @@
1
1
  export const SWITCH_ROW_TOKENS = [
2
2
  { name: "--vk-border", kind: "colour", outright: "--border" },
3
3
  { name: "--vk-border-subtle", kind: "colour", outright: "--border-subtle" },
4
- { name: "--vk-hovered", kind: "colour", outright: "--surface-hovered" },
5
4
  { name: "--vk-border-width", kind: "size", outright: "--border-width" },
6
5
  { name: "--vk-corner-smoothing", kind: "size", outright: "--corner-smoothing" },
7
6
  { name: "--vk-font-size-sm", kind: "size", outright: "--text-sm" },
@@ -9,7 +8,5 @@ export const SWITCH_ROW_TOKENS = [
9
8
  { name: "--vk-line-height-sm", kind: "size", outright: "--text-sm--line-height" },
10
9
  { name: "--vk-radius-lg", kind: "size", outright: "--radius-lg" },
11
10
  { name: "--vk-spacing", kind: "size", outright: "--spacing" },
12
- { name: "--vk-duration-fast", kind: "motion", outright: "--duration-fast" },
13
- { name: "--vk-ease-out", kind: "motion", outright: "--ease-out" },
14
11
  ];
15
12
  export const SWITCH_ROW_PRIVATE = ["--rows-card-"];
@@ -1,6 +1,6 @@
1
1
  /* The SwitchRow and SwitchRows, as the Outright kit draws them (switch-row/switch-row.tsx): a setting in a settings list, its
2
- words (choice.css) on the left and the Switch (switch.css) on the right, which reads a row under the pointer as its own
3
- hover; the rows in a bordered box.
2
+ words (choice.css) on the left and the Switch (switch.css) on the right, which alone switches it (KIT-969); the rows in a
3
+ bordered box.
4
4
 
5
5
  The rules sit in the components layer, so a utility class on a row still wins. */
6
6
  @layer components {
@@ -10,14 +10,10 @@
10
10
  .o-switch-row {
11
11
  display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4);
12
12
  padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
13
- cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
13
+ -webkit-tap-highlight-color: transparent;
14
14
  }
15
15
  .o-switch-row:first-child { border-top: 0; }
16
- @media (hover: hover) { .o-switch-row:hover { background-color: var(--vk-hovered); } }
17
16
  .o-switch-row .o-choice-label { font-weight: var(--vk-font-weight-medium); }
18
- .o-switch-row:has(.o-switch[data-disabled]) { cursor: not-allowed; background-color: transparent; }
19
-
20
- @media (prefers-reduced-motion: reduce) { .o-switch-row { transition: none; } }
21
17
  /* ── The rows' card smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every browser
22
18
  that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to one row, as a control's is.
23
19
  Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it, hiding nothing
@@ -66,21 +66,26 @@
66
66
  }
67
67
 
68
68
  /* ── Sizes: sm, four fifths of its shape, in dense rows. On a phone every switch but a small one draws the phone's shape, and
69
- lg draws it anywhere: Round (after iOS 18), 31 × 51 with a 27 thumb; or Capsule (after iOS 26), what nothing picked draws, 31 × 71, its thumb 27 × 41.
70
- Both on the neutral fill with no edge, whatever the computer's shape ─────────────────────────────────────────── */
69
+ lg draws it anywhere: Round (after iOS 18), 31 × 51 with a 27 thumb; or Capsule (after iOS 26's Settings, measured at 402), what
70
+ nothing picked draws, 28 × 63, its thumb 24 × 37 two in.
71
+ Both on the neutral fill with no edge, whatever the computer's shape; on a phone its thumb white, on or off, in both themes, as iOS's ── */
71
72
  .o-switch.o-switch-sm { --sw-u: 0.8; }
72
73
  .o-switch.o-switch-lg {
73
74
  --sw-h: calc(var(--vk-spacing) * 7.75); --sw-w0: calc(var(--vk-spacing) * 12.75); --sw-tw: calc(var(--vk-spacing) * 6.75); --sw-th: calc(var(--vk-spacing) * 6.75); --sw-inset: calc(var(--vk-spacing) * 0.5); --sw-bar: 100%;
74
75
  --sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
75
76
  --sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
76
77
  }
77
- [data-switch-phone="capsule"] .o-switch.o-switch-lg, .o-switch.o-switch-lg:not([data-switch-phone] *) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
78
+ [data-switch-phone="capsule"] .o-switch.o-switch-lg, .o-switch.o-switch-lg:not([data-switch-phone] *) {
79
+ --sw-h: calc(var(--vk-spacing) * 7); --sw-w0: calc(var(--vk-spacing) * 15.75); --sw-tw: calc(var(--vk-spacing) * 9.25); --sw-th: calc(var(--vk-spacing) * 6); --sw-thumb-shadow: var(--vk-shadow-sm);
80
+ }
78
81
  .o-switch:not(.o-switch-sm):where([data-vk-phone], [data-vk-phone] *) {
79
82
  --sw-h: calc(var(--vk-spacing) * 7.75); --sw-w0: calc(var(--vk-spacing) * 12.75); --sw-tw: calc(var(--vk-spacing) * 6.75); --sw-th: calc(var(--vk-spacing) * 6.75); --sw-inset: calc(var(--vk-spacing) * 0.5); --sw-bar: 100%;
80
83
  --sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
81
- --sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
84
+ --sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-inverse); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
85
+ }
86
+ [data-switch-phone="capsule"] .o-switch:not(.o-switch-sm):where([data-vk-phone], [data-vk-phone] *), .o-switch:not(.o-switch-sm):not([data-switch-phone] *):where([data-vk-phone], [data-vk-phone] *) {
87
+ --sw-h: calc(var(--vk-spacing) * 7); --sw-w0: calc(var(--vk-spacing) * 15.75); --sw-tw: calc(var(--vk-spacing) * 9.25); --sw-th: calc(var(--vk-spacing) * 6); --sw-thumb-shadow: var(--vk-shadow-sm);
82
88
  }
83
- [data-switch-phone="capsule"] .o-switch:not(.o-switch-sm):where([data-vk-phone], [data-vk-phone] *), .o-switch:not(.o-switch-sm):not([data-switch-phone] *):where([data-vk-phone], [data-vk-phone] *) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
84
89
 
85
90
  /* ── Motion. Stretch while held, the kit's until duration-base on ease-in-out, the thumb a spacing step longer toward
86
91
  where it is going while pressed. Spring: it runs a little past and settles. Stretch as it goes: its front edge leaves first
@@ -93,7 +98,7 @@
93
98
  /* ── Under the pointer, on the track or its row: its shape's deeper paint; on, a deeper brand ─────────────────────────── */
94
99
  /* A hover only on a screen with a pointer (iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
95
100
  .o-switch[data-force="hover"]:not([data-disabled]) { --sw-off: var(--sw-hover); --sw-edge: var(--sw-edge-hover); --sw-on: var(--vk-brand-hovered); }
96
- @media (hover: hover) { :is(.o-switch:hover, .o-switch-row:hover .o-switch):not([data-disabled]) { --sw-off: var(--sw-hover); --sw-edge: var(--sw-edge-hover); --sw-on: var(--vk-brand-hovered); } }
101
+ @media (hover: hover) { .o-switch:hover:not([data-disabled]) { --sw-off: var(--sw-hover); --sw-edge: var(--sw-edge-hover); --sw-on: var(--vk-brand-hovered); } }
97
102
 
98
103
  /* ── On: the brand fills the track, the thumb crosses, its front edge in lead and its back in trail ───────────────────── */
99
104
  .o-switch[data-checked] { --sw-paint: var(--sw-on-track); --sw-ring: var(--sw-on-track); }
@@ -141,7 +146,7 @@
141
146
  colour fills it. The pointer never takes it away; focus rings it in red; disabled wins ─────────────────────────────── */
142
147
  .o-switch:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
143
148
  .o-switch[data-force="hover"]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-edge: var(--vk-border-danger); --sw-on: var(--vk-danger-bold); --sw-knob-on: var(--vk-fg-inverse); }
144
- @media (hover: hover) { :is(.o-switch:hover, .o-switch-row:hover .o-switch):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-edge: var(--vk-border-danger); --sw-on: var(--vk-danger-bold-hovered); --sw-knob-on: var(--vk-fg-inverse); } }
149
+ @media (hover: hover) { .o-switch:hover:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-edge: var(--vk-border-danger); --sw-on: var(--vk-danger-bold-hovered); --sw-knob-on: var(--vk-fg-inverse); } }
145
150
  .o-switch[data-force="hover"][data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-on: var(--vk-danger-bold-hovered); }
146
151
  .o-switch:is(:focus-visible, [data-force="focus"]):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *) { outline-color: var(--vk-border-danger); }
147
152
 
@@ -154,6 +159,11 @@
154
159
  --sw-knob: var(--vk-fg-disabled); --sw-knob-on: var(--vk-fg-disabled); --sw-knob-shadow: none; cursor: not-allowed;
155
160
  }
156
161
  .o-switch[data-disabled][data-locked] { --sw-knob: var(--vk-fg-inverse); --sw-knob-on: var(--vk-fg-inverse); --sw-knob-shadow: var(--sw-thumb-shadow); }
162
+ /* On a phone, locked is iOS's: the switch as it stands, faded, with no lock in its thumb (KIT-972). */
163
+ .o-switch[data-disabled][data-locked]:where([data-vk-phone], [data-vk-phone] *) {
164
+ --sw-off: var(--sw-rest); --sw-edge: var(--sw-edge-rest); --sw-on: var(--vk-brand); --sw-on-track: var(--sw-on); --sw-knob: var(--sw-thumb-rest); --sw-knob-on: var(--sw-thumb-on); opacity: 0.45;
165
+ }
166
+ .o-switch[data-disabled][data-locked]:where([data-vk-phone], [data-vk-phone] *) > .o-switch-thumb > .o-switch-lock { display: none; }
157
167
 
158
168
  @media (prefers-reduced-motion: reduce) { .o-switch::before, .o-switch-thumb, .o-switch-fill, .o-switch-i, .o-switch-o, .o-switch-word { transition: none; } }
159
169
  }
@@ -6,6 +6,8 @@ export interface TagProps {
6
6
  size?: "md" | "sm";
7
7
  /** The rest of a row's tags, "+4": the same edge, the number, no icon. */
8
8
  count?: number;
9
+ /** A quiet word after its name, inside the chip, before its remove button ("main"). */
10
+ aside?: React.ReactNode;
9
11
  /** In a field: a remove button named "Remove <tag>". */
10
12
  onRemove?: () => void;
11
13
  className?: string;
@@ -13,7 +15,7 @@ export interface TagProps {
13
15
  "data-force"?: "hover" | "focus";
14
16
  }
15
17
  /** A free word in a plain edge, the tag icon in front. */
16
- export declare function Tag({ children, size, count, onRemove, className, "data-force": force }: TagProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function Tag({ children, size, count, aside, onRemove, className, "data-force": force }: TagProps): import("react/jsx-runtime").JSX.Element;
17
19
  /** A chip's cut: its first child, which draws its ground and edge with the smooth outline under Corner smoothing's Smooth,
18
20
  * the chip itself never clipped (tag.css). The Tag's and the Option's. */
19
21
  export declare function TagCut(): import("react/jsx-runtime").JSX.Element;
@@ -5,12 +5,12 @@ import { phoneMark, usePhoneForm } from "../internal/phone.js";
5
5
  const TAG = ["M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3z"];
6
6
  const X = ["M18 6l-12 12", "M6 6l12 12"];
7
7
  const glyph = (paths, className, strokeWidth) => (_jsx("svg", { className: className, viewBox: "0 0 24 24", strokeWidth: strokeWidth, "aria-hidden": "true", children: paths.map((d) => _jsx("path", { d: d }, d)) }));
8
- export function Tag({ children, size = "md", count, onRemove, className, "data-force": force }) {
8
+ export function Tag({ children, size = "md", count, aside, onRemove, className, "data-force": force }) {
9
9
  const cls = cx("o-tag", size === "sm" && "o-tag-sm", count != null && "o-tag-count", className);
10
10
  if (count != null)
11
11
  return _jsxs("span", { className: cls, "data-kit": "tag", children: [_jsx(TagCut, {}), "+", count] });
12
12
  const word = typeof children === "string" ? children : undefined;
13
- return (_jsxs("span", { className: cls, title: word, "data-kit": "tag", children: [_jsx(TagCut, {}), glyph(TAG, "o-tag-icon", 2), _jsx("span", { className: "o-tag-word", children: children }), onRemove && _jsx(TagRemove, { word: word, onRemove: onRemove, force: force })] }));
13
+ return (_jsxs("span", { className: cls, title: word, "data-kit": "tag", children: [_jsx(TagCut, {}), glyph(TAG, "o-tag-icon", 2), _jsx("span", { className: "o-tag-word", children: children }), aside != null && _jsx("span", { className: "o-tag-aside", children: aside }), onRemove && _jsx(TagRemove, { word: word, onRemove: onRemove, force: force })] }));
14
14
  }
15
15
  export function TagCut() {
16
16
  return _jsx("span", { className: "o-tag-cut o-smooth o-smooth-ease", "aria-hidden": "true" });
@@ -38,6 +38,10 @@ export declare const TAG_TOKENS: readonly [{
38
38
  readonly name: "--vk-font-weight-medium";
39
39
  readonly kind: "size";
40
40
  readonly outright: "--font-weight-medium";
41
+ }, {
42
+ readonly name: "--vk-font-weight-normal";
43
+ readonly kind: "size";
44
+ readonly outright: "--font-weight-normal";
41
45
  }, {
42
46
  readonly name: "--vk-radius-md";
43
47
  readonly kind: "size";
@@ -9,6 +9,7 @@ export const TAG_TOKENS = [
9
9
  { name: "--vk-focus-width", kind: "size", outright: "--focus-width" },
10
10
  { name: "--vk-font-size-xs", kind: "size", outright: "--text-xs" },
11
11
  { name: "--vk-font-weight-medium", kind: "size", outright: "--font-weight-medium" },
12
+ { name: "--vk-font-weight-normal", kind: "size", outright: "--font-weight-normal" },
12
13
  { name: "--vk-radius-md", kind: "size", outright: "--radius-md" },
13
14
  { name: "--vk-radius-xs", kind: "size", outright: "--radius-xs" },
14
15
  { name: "--vk-spacing", kind: "size", outright: "--spacing" },