@kerfjs/ui 5.0.0-beta.124 → 5.0.0-beta.125

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 (265) hide show
  1. package/README.md +1 -0
  2. package/ai/component-catalog.json +91 -1
  3. package/ai/component-composition.json +70 -0
  4. package/ai/component-props.json +202 -0
  5. package/ai/components/README.md +1 -0
  6. package/ai/components/gauge.md +83 -0
  7. package/ai/components/segmented-control.md +1 -0
  8. package/ai/public-api-signatures-v1.md +100 -1
  9. package/ai/skill.md +26 -23
  10. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  11. package/dist/browser/gauge.js +3 -0
  12. package/dist/browser/segmented-control.js +1 -0
  13. package/dist/catalog.js +3 -3
  14. package/dist/{chunk-F3PZGFEA.js → chunk-6OT7FOSA.js} +2 -2
  15. package/dist/{chunk-F3PZGFEA.js.map → chunk-6OT7FOSA.js.map} +1 -1
  16. package/dist/{chunk-NYNNNEAU.js → chunk-KQZIC5CA.js} +4 -4
  17. package/dist/{chunk-NYNNNEAU.js.map → chunk-KQZIC5CA.js.map} +1 -1
  18. package/dist/{chunk-3JOEJT2Z.js → chunk-NHQOX7T4.js} +2 -2
  19. package/dist/{chunk-3JOEJT2Z.js.map → chunk-NHQOX7T4.js.map} +1 -1
  20. package/dist/{chunk-7AUZG5EW.js → chunk-SVUJIVMR.js} +2 -2
  21. package/dist/{chunk-7AUZG5EW.js.map → chunk-SVUJIVMR.js.map} +1 -1
  22. package/dist/{chunk-4Z4QSTRF.js → chunk-TTFW6E6C.js} +37 -4
  23. package/dist/chunk-TTFW6E6C.js.map +1 -0
  24. package/dist/collapsible-panel.js +2 -2
  25. package/dist/editor.js +7 -7
  26. package/dist/gauge.d.ts +73 -0
  27. package/dist/gauge.js +157 -0
  28. package/dist/gauge.js.map +1 -0
  29. package/dist/index.js +8 -8
  30. package/dist/list-detail-dialog.js +2 -2
  31. package/dist/nav-stack.js +1 -1
  32. package/dist/segmented-control.d.ts +21 -0
  33. package/dist/segmented-control.js +3 -1
  34. package/dist/split-view.js +1 -1
  35. package/dist/styles/badge.css +39 -0
  36. package/dist/styles/components/feedback/badge/badge.css +39 -0
  37. package/dist/styles/components/feedback/gauge/gauge.css +132 -0
  38. package/dist/styles/components/forms/segmented-control/segmented-control.css +16 -0
  39. package/dist/styles/gauge.css +132 -0
  40. package/dist/styles/segmented-control.css +16 -0
  41. package/dist/styles/styles.css +1 -0
  42. package/dist/workbench-dialog.js +1 -1
  43. package/dist/workbench.js +1 -1
  44. package/docs/component-selection.md +2 -1
  45. package/docs/design/sketch/Kerf-UI.sketch +0 -0
  46. package/docs/design/sketch/README.md +1 -1
  47. package/docs/design/sketch/content/README.md +8 -8
  48. package/docs/design/sketch/coverage.md +7 -5
  49. package/docs/design/sketch/unified/README.md +1 -1
  50. package/docs/design/sketch/unified/pages/content.png +0 -0
  51. package/docs/design/templates/button/full-width-dark.svg +1 -1
  52. package/docs/design/templates/button/full-width.svg +1 -1
  53. package/docs/design/templates/button/icons-dark.svg +1 -1
  54. package/docs/design/templates/button/icons.svg +1 -1
  55. package/docs/design/templates/button/pill-dark.svg +1 -1
  56. package/docs/design/templates/button/pill.svg +1 -1
  57. package/docs/design/templates/button/toggles-dark.svg +1 -1
  58. package/docs/design/templates/button/toggles.svg +1 -1
  59. package/docs/design/templates/button-dark.svg +1 -1
  60. package/docs/design/templates/button.svg +1 -1
  61. package/docs/design/templates/checkbox/compact-dark.svg +1 -1
  62. package/docs/design/templates/checkbox/compact.svg +1 -1
  63. package/docs/design/templates/checkbox/mixed-dark.svg +1 -1
  64. package/docs/design/templates/checkbox/mixed.svg +1 -1
  65. package/docs/design/templates/checkbox/states-dark.svg +1 -1
  66. package/docs/design/templates/checkbox/states.svg +1 -1
  67. package/docs/design/templates/checkbox-dark.svg +1 -1
  68. package/docs/design/templates/checkbox-group/vertical-dark.svg +1 -1
  69. package/docs/design/templates/checkbox-group/vertical.svg +1 -1
  70. package/docs/design/templates/checkbox-group-dark.svg +1 -1
  71. package/docs/design/templates/checkbox-group.svg +1 -1
  72. package/docs/design/templates/checkbox.svg +1 -1
  73. package/docs/design/templates/chip/tags-dark.svg +1 -1
  74. package/docs/design/templates/chip/tags.svg +1 -1
  75. package/docs/design/templates/chip-dark.svg +1 -1
  76. package/docs/design/templates/chip.svg +1 -1
  77. package/docs/design/templates/choice-chips/compact-icons-dark.svg +1 -1
  78. package/docs/design/templates/choice-chips/compact-icons.svg +1 -1
  79. package/docs/design/templates/choice-chips-dark.svg +1 -1
  80. package/docs/design/templates/choice-chips.svg +1 -1
  81. package/docs/design/templates/color-field/compact-dark.svg +1 -1
  82. package/docs/design/templates/color-field/compact.svg +1 -1
  83. package/docs/design/templates/color-field/error-dark.svg +1 -1
  84. package/docs/design/templates/color-field/error.svg +1 -1
  85. package/docs/design/templates/color-field/hint-dark.svg +1 -1
  86. package/docs/design/templates/color-field/hint.svg +1 -1
  87. package/docs/design/templates/color-field-dark.svg +1 -1
  88. package/docs/design/templates/color-field.svg +1 -1
  89. package/docs/design/templates/color-picker/gray-dark.svg +1 -1
  90. package/docs/design/templates/color-picker/gray.svg +1 -1
  91. package/docs/design/templates/color-picker/hsb-dark.svg +1 -1
  92. package/docs/design/templates/color-picker/hsb.svg +1 -1
  93. package/docs/design/templates/color-picker/rgb-dark.svg +1 -1
  94. package/docs/design/templates/color-picker/rgb.svg +1 -1
  95. package/docs/design/templates/color-picker-dark.svg +1 -1
  96. package/docs/design/templates/color-picker.svg +1 -1
  97. package/docs/design/templates/disclosure/embedded-dark.svg +1 -1
  98. package/docs/design/templates/disclosure/embedded.svg +1 -1
  99. package/docs/design/templates/disclosure/framed-sunken-dark.svg +1 -1
  100. package/docs/design/templates/disclosure/framed-sunken.svg +1 -1
  101. package/docs/design/templates/disclosure/plain-dark.svg +1 -1
  102. package/docs/design/templates/disclosure/plain.svg +1 -1
  103. package/docs/design/templates/disclosure-dark.svg +1 -1
  104. package/docs/design/templates/disclosure.svg +1 -1
  105. package/docs/design/templates/empty-state/filtered-dark.svg +1 -1
  106. package/docs/design/templates/empty-state/filtered.svg +1 -1
  107. package/docs/design/templates/empty-state/with-action-dark.svg +1 -1
  108. package/docs/design/templates/empty-state/with-action.svg +1 -1
  109. package/docs/design/templates/empty-state-dark.svg +1 -1
  110. package/docs/design/templates/empty-state.svg +1 -1
  111. package/docs/design/templates/gauge/bare-dark.svg +1 -0
  112. package/docs/design/templates/gauge/bare.svg +1 -0
  113. package/docs/design/templates/gauge/full-dark.svg +1 -0
  114. package/docs/design/templates/gauge/full.svg +1 -0
  115. package/docs/design/templates/gauge-dark.svg +1 -0
  116. package/docs/design/templates/gauge.svg +1 -0
  117. package/docs/design/templates/list/compact-dark.svg +1 -1
  118. package/docs/design/templates/list/compact.svg +1 -1
  119. package/docs/design/templates/list/stack-dark.svg +1 -1
  120. package/docs/design/templates/list/stack.svg +1 -1
  121. package/docs/design/templates/list-action-row/default-dark.svg +1 -1
  122. package/docs/design/templates/list-action-row/default.svg +1 -1
  123. package/docs/design/templates/list-action-row/icon-tile-dark.svg +1 -1
  124. package/docs/design/templates/list-action-row/icon-tile.svg +1 -1
  125. package/docs/design/templates/list-action-row/selected-dark.svg +1 -1
  126. package/docs/design/templates/list-action-row/selected.svg +1 -1
  127. package/docs/design/templates/list-action-row/trailing-menu-dark.svg +1 -1
  128. package/docs/design/templates/list-action-row/trailing-menu.svg +1 -1
  129. package/docs/design/templates/list-action-row-dark.svg +1 -1
  130. package/docs/design/templates/list-action-row.svg +1 -1
  131. package/docs/design/templates/list-dark.svg +1 -1
  132. package/docs/design/templates/list-header/action-dark.svg +1 -1
  133. package/docs/design/templates/list-header/action.svg +1 -1
  134. package/docs/design/templates/list-header/inline-action-dark.svg +1 -1
  135. package/docs/design/templates/list-header/inline-action.svg +1 -1
  136. package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -1
  137. package/docs/design/templates/list-header/toggle-collapsed.svg +1 -1
  138. package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -1
  139. package/docs/design/templates/list-header/toggle-expanded.svg +1 -1
  140. package/docs/design/templates/list-header-dark.svg +1 -1
  141. package/docs/design/templates/list-header.svg +1 -1
  142. package/docs/design/templates/list-item/default-dark.svg +1 -1
  143. package/docs/design/templates/list-item/default.svg +1 -1
  144. package/docs/design/templates/list-item/icon-tile-dark.svg +1 -1
  145. package/docs/design/templates/list-item/icon-tile.svg +1 -1
  146. package/docs/design/templates/list-item/multiline-dark.svg +1 -1
  147. package/docs/design/templates/list-item/multiline.svg +1 -1
  148. package/docs/design/templates/list-item/selected-dark.svg +1 -1
  149. package/docs/design/templates/list-item/selected.svg +1 -1
  150. package/docs/design/templates/list-item/trailing-dark.svg +1 -1
  151. package/docs/design/templates/list-item/trailing.svg +1 -1
  152. package/docs/design/templates/list-item-dark.svg +1 -1
  153. package/docs/design/templates/list-item.svg +1 -1
  154. package/docs/design/templates/list.svg +1 -1
  155. package/docs/design/templates/progress-ring/sizes-dark.svg +1 -1
  156. package/docs/design/templates/progress-ring/sizes.svg +1 -1
  157. package/docs/design/templates/progress-ring/tones-dark.svg +1 -1
  158. package/docs/design/templates/progress-ring/tones.svg +1 -1
  159. package/docs/design/templates/progress-ring-dark.svg +1 -1
  160. package/docs/design/templates/progress-ring.svg +1 -1
  161. package/docs/design/templates/search-field/empty-dark.svg +1 -1
  162. package/docs/design/templates/search-field/empty.svg +1 -1
  163. package/docs/design/templates/search-field/tokens-dark.svg +1 -1
  164. package/docs/design/templates/search-field/tokens.svg +1 -1
  165. package/docs/design/templates/search-field-dark.svg +1 -1
  166. package/docs/design/templates/search-field.svg +1 -1
  167. package/docs/design/templates/segmented-control/equal-dark.svg +1 -1
  168. package/docs/design/templates/segmented-control/equal.svg +1 -1
  169. package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -1
  170. package/docs/design/templates/segmented-control/pill-small.svg +1 -1
  171. package/docs/design/templates/segmented-control-dark.svg +1 -1
  172. package/docs/design/templates/segmented-control.svg +1 -1
  173. package/docs/design/templates/select/compact-dark.svg +1 -1
  174. package/docs/design/templates/select/compact.svg +1 -1
  175. package/docs/design/templates/select/form-dark.svg +1 -1
  176. package/docs/design/templates/select/form.svg +1 -1
  177. package/docs/design/templates/select/icons-dark.svg +1 -1
  178. package/docs/design/templates/select/icons.svg +1 -1
  179. package/docs/design/templates/select-dark.svg +1 -1
  180. package/docs/design/templates/select.svg +1 -1
  181. package/docs/design/templates/split-button/full-width-dark.svg +1 -1
  182. package/docs/design/templates/split-button/full-width.svg +1 -1
  183. package/docs/design/templates/split-button/pill-dark.svg +1 -1
  184. package/docs/design/templates/split-button/pill.svg +1 -1
  185. package/docs/design/templates/split-button/states-dark.svg +1 -1
  186. package/docs/design/templates/split-button/states.svg +1 -1
  187. package/docs/design/templates/split-button/tones-dark.svg +1 -1
  188. package/docs/design/templates/split-button/tones.svg +1 -1
  189. package/docs/design/templates/split-button-dark.svg +1 -1
  190. package/docs/design/templates/split-button.svg +1 -1
  191. package/docs/design/templates/state-banner/danger-dark.svg +1 -1
  192. package/docs/design/templates/state-banner/danger.svg +1 -1
  193. package/docs/design/templates/state-banner/info-badge-dark.svg +1 -1
  194. package/docs/design/templates/state-banner/info-badge.svg +1 -1
  195. package/docs/design/templates/state-banner/info-dark.svg +1 -1
  196. package/docs/design/templates/state-banner/info.svg +1 -1
  197. package/docs/design/templates/state-banner/strip-dark.svg +1 -1
  198. package/docs/design/templates/state-banner/strip.svg +1 -1
  199. package/docs/design/templates/state-banner/success-dark.svg +1 -1
  200. package/docs/design/templates/state-banner/success.svg +1 -1
  201. package/docs/design/templates/state-banner/warning-dark.svg +1 -1
  202. package/docs/design/templates/state-banner/warning.svg +1 -1
  203. package/docs/design/templates/state-banner-dark.svg +1 -1
  204. package/docs/design/templates/state-banner.svg +1 -1
  205. package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -1
  206. package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -1
  207. package/docs/design/templates/tab-bar-dark.svg +1 -1
  208. package/docs/design/templates/tab-bar.svg +1 -1
  209. package/docs/design/templates/tag-field/error-dark.svg +1 -1
  210. package/docs/design/templates/tag-field/error.svg +1 -1
  211. package/docs/design/templates/tag-field/tags-dark.svg +1 -1
  212. package/docs/design/templates/tag-field/tags.svg +1 -1
  213. package/docs/design/templates/tag-field-dark.svg +1 -1
  214. package/docs/design/templates/tag-field.svg +1 -1
  215. package/docs/design/templates/text-field/labeled-dark.svg +1 -1
  216. package/docs/design/templates/text-field/labeled.svg +1 -1
  217. package/docs/design/templates/text-field/search-dark.svg +1 -1
  218. package/docs/design/templates/text-field/search.svg +1 -1
  219. package/docs/design/templates/text-field-dark.svg +1 -1
  220. package/docs/design/templates/text-field.svg +1 -1
  221. package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -1
  222. package/docs/design/templates/toolbar/title-and-actions.svg +1 -1
  223. package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -1
  224. package/docs/design/templates/toolbar/width-visibility-320.svg +1 -1
  225. package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -1
  226. package/docs/design/templates/toolbar/width-visibility-600.svg +1 -1
  227. package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -1
  228. package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -1
  229. package/docs/design/templates/toolbar-control-group/glass-dark.svg +1 -1
  230. package/docs/design/templates/toolbar-control-group/glass.svg +1 -1
  231. package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -1
  232. package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -1
  233. package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -1
  234. package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -1
  235. package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -1
  236. package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -1
  237. package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -1
  238. package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -1
  239. package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -1
  240. package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -1
  241. package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -1
  242. package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -1
  243. package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -1
  244. package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -1
  245. package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -1
  246. package/docs/design/templates/toolbar-control-group/with-text.svg +1 -1
  247. package/docs/design/templates/toolbar-control-group-dark.svg +1 -1
  248. package/docs/design/templates/toolbar-control-group.svg +1 -1
  249. package/docs/design/templates/toolbar-dark.svg +1 -1
  250. package/docs/design/templates/toolbar.svg +1 -1
  251. package/docs/design/templates/tree-list/files-dark.svg +1 -1
  252. package/docs/design/templates/tree-list/files.svg +1 -1
  253. package/docs/design/templates/tree-list/outline-dark.svg +1 -1
  254. package/docs/design/templates/tree-list/outline.svg +1 -1
  255. package/docs/design/templates/tree-list-dark.svg +1 -1
  256. package/docs/design/templates/tree-list.svg +1 -1
  257. package/docs/design/templates/value-table/details-dark.svg +1 -1
  258. package/docs/design/templates/value-table/details.svg +1 -1
  259. package/docs/design/templates/value-table-dark.svg +1 -1
  260. package/docs/design/templates/value-table.svg +1 -1
  261. package/docs/gauge.md +55 -0
  262. package/docs/progress.md +3 -2
  263. package/llms.txt +10 -1
  264. package/package.json +8 -2
  265. package/dist/chunk-4Z4QSTRF.js.map +0 -1
package/ai/skill.md CHANGED
@@ -379,27 +379,27 @@ reports lowercase words in known title-style labels as `KUI-D040`. See
379
379
 
380
380
  Quick routing:
381
381
 
382
- | Need | Choose | Nearest alternatives / boundary |
383
- | -------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
384
- | Navigation row | `ListItem` | Use an ordinary link or button when sidebar/menu anatomy and state do not apply. Its rounded root clips overflowing descendants; set `multiline` when the primary label should wrap. Multiline leading icons stay aligned with the first text line. |
385
- | Nested items (a tree or outline) | `TreeList` + `wireTreeList` | Rows are ListItems indented by depth with disclosure arrows; the app owns `nodes`, `expanded`, and `selected` and handles `action` / `toggleAction`. For drag-and-drop, mark nodes `draggable` and pass `wireTreeList(root, { canDrop, onMove })`; moves land `before`, `after`, or `inside` a row. A pointer drag your app runs from outside the tree (a palette) targets rows through `treeListExternalDrop(root, { canDrop })` (`over(hit, clientY, sourceId)` then `clear()`). Never indent `ListItem` rows or draw disclosure arrows yourself. Use `List` for a flat list and `Disclosure` for one collapsible section. |
386
- | A deep hierarchy, one level per column | `ColumnExplorer` + `wireColumnExplorer` | Columns of ListItem rows in a ColumnTrack; the app owns `nodes` and `path` (`treeListPath(nodes, id)` in `action`). Use `layout="paged"` on a phone. Never build the columns by hand; use TreeList for a shallow hierarchy. |
387
- | Pages in one panel region | `PagedView` + `wirePagedViews` | Full-size pages with floating page dots; the app owns `page` and sets it from `onPageChange(page, viewId)`. Page content owns its inset. Named destinations use TabBar + TabPanel. |
388
- | Horizontal flex layout | `Row` | Use `hAlign`/`vAlign`, a typed `gap`, and opt-in `wrap`; use `List` when the main axis is vertical. |
389
- | Equal-width columns | `Grid` | Use fixed `columns` or typed `minColumnWidth` for automatic container-width collapse, plus typed `gap`/`flex`. Use CSS grid for asymmetric/intrinsic tracks and `ResizableRegion` for adjustable boundaries. |
390
- | Navigation row with a trailing action | `ListActionRow` | Use `ListItem` when the trailing region is dormant; never put controls inside either component's SafeHtml slots. Multiline leading icons stay aligned with the first text line. A trailing "…" overflow menu is `trailingMenu` (a real `PopupMenu`), not a trailing button. |
391
- | Page, panel, or dialog heading | `Toolbar` + `ToolbarText` | Use a direct extra-large `ToolbarText`, optional grouped icon, grouped trailing controls, and short supporting copy as the `ToolbarText` `description` (quiet, one line, aligned under the title, with `descriptionId` for `aria-describedby`; longer copy stays app-owned content below). |
392
- | Exclusive choice | `TabBar`, `SegmentedControl`, or `Select` | Tabs switch tabpanels; segments expose a few choices; `ChoiceChips` keeps a larger visible set as wrapping pills (`multiple` for any number); Select handles a longer value list. |
393
- | Status or absent content | `StateBanner` or `EmptyState` | `StateBanner` accepts an optional terse, tone-tinted `badge` beside its title for a count or compact status; do not rely on color alone. toasts (`toast()` from `kerfjs/overlay`) are transient and never the only record of important state; import `@kerfjs/ui/overlay-toast.css` once to style them (pass `exitClass: 'kui-toast-exit'`, `exitDuration: 200`, `variant` for a tone, or a `StateBanner` as the only content) instead of `wa-toast` or hand-written toast CSS. A hover and focus explanation on any element is `tooltip()` from `kerfjs/overlay` with `@kerfjs/ui/overlay-tooltip.css` imported (`exitClass: 'kui-tooltip-exit'`, `exitDuration: 100`), never `wa-tooltip`; icon-only Kerf controls already get help tags. Show-and-hide content is `Disclosure` (`@kerfjs/ui/disclosure`, a native details element on content-item geometry; inside a `ContentItem` use `appearance="embedded"` with `flush` `Text` content so the item's inset frames it once; Disclosures sharing a `name` form an accordion; close one from code with `element.open = false`), never `wa-details` or `wa-accordion`. Progress is `ProgressBar` (`@kerfjs/ui/progress-bar`, a native progress element with a `label` or `ariaLabel`, `showValue`/`valueText`, and an indeterminate sweep without `value`) or, where a bar does not fit, `ProgressRing` (`@kerfjs/ui/progress-ring`, `small`/`medium`/`large`), never `wa-progress-bar` or `wa-progress-ring`. A value on a range is `Slider` (`@kerfjs/ui/slider`, a native range input with `label`, `showValue`/`unit`, `ticks`, and `hint`; call `wireSliders(root)` from `@kerfjs/ui/wire-sliders` once so the fill and readout follow a drag), never `wa-slider`. A list of short values submitted as form values is `TagField` (`@kerfjs/ui/tag-field`, SearchField's token editor as a form field with a hidden input per tag; call `wireTagFields(root, { onChange })` from `@kerfjs/ui/wire-tag-fields` and re-render with the reported tags; `max`, `normalize`, and `onReject` for validation), never `wa-tag-input`. One color from a small fixed palette is `ColorSwatches` (`@kerfjs/ui/color-swatches`, a native radio group of named round swatches with a hue-independent ring and an optional `'transparent'` no-color swatch). Any color is `ColorPicker` (`@kerfjs/ui/color-picker`, an inline panel with an area, channel sliders that follow the color model (red/green/blue, hue/saturation/lightness or brightness, or gray level, each track previewing its channel, hue as a fixed rainbow) plus opacity, RGB/HSL/HSB/Grayscale fields, hex, presets, and samples; call `wireColorPickers(root, { onChange })` from `@kerfjs/ui/wire-color-pickers` and re-render with the reported `value` and `mode`). A color in a form or inspector is `ColorField` (`@kerfjs/ui/color-field`, a swatch-and-hex trigger that opens a ColorPicker in an AnchoredSurface; call `wireColorFields(root, { onChange, pickers })` from `@kerfjs/ui/wire-color-fields` and re-render), never `wa-color-picker`. |
394
- | Compact metadata | `Badge` | Configure status, count, category, or metadata presentation with tone, appearance, shape, and size props. For new content without a count use `size="dot"` (no children) with a `label` or `ariaHidden`. Cap long app-supplied text with `maxWidth` (a `CssLength`); it truncates with an ellipsis and the full string becomes the `title`. Do not build badges with application CSS or use them as interactive controls. |
395
- | Hero image atop a scrolling view | `BackdropImage` | Lags the scroll (`parallax`), blurs progressively (`blur`, an opacity cross-fade to a once-blurred copy), dissolves into a typed `fadeTo` color that also paints the content below, and carries `overlay` content; Kerf owns the compositor-only scroll timeline and the reduced-motion, static-effects, and reduced-transparency fallbacks. Never hand-roll scroll listeners, `background-attachment: fixed`, or mask gradients. |
396
- | Scroll-linked content effect | `ScrollEffect` | Wraps any content: `parallax`, `reveal`, `fade`, `scale`, or `dim` presets over an `entry`/`exit`/`cover`/`contain` range of its own view timeline, compositor-only and nested in array order, with Kerf-owned static fallbacks. Not for hero images (BackdropImage) or state changes (ContentSwap); never hand-roll scroll listeners or `animation-timeline` CSS. |
397
- | Loading placeholder | a component's `placeholder` prop, or `Skeleton` | Set `placeholder` on a value-bearing component (`Select`, `ListHeader`, `ListItem`, `ValueTableRow`, `SegmentedControl`, `StateBanner`, `TabBarItem`, `ToolbarText`, `ListActionRow`) to render its real chrome with value slots as subtle **unanimated** skeletons and interactivity disabled; only unknown values change, so a placeholder is never dimmed or styled as disabled (a control whose own `disabled` / `trailingActionDisabled` / choice `disabled` / `actionDisabled` prop is set keeps its live disabled tone via the reserved `data-kui-disabled` marker) — do not hand-rebuild an empty state. Component-drawn chrome stays live too: a `ListItem` or `ListActionRow` placeholder keeps its `busy` spinner while its `status` text (and a `ListItem`'s `trailing` content, always a value) becomes a skeleton. `Skeleton` is the standalone block for a custom slot. A known `TabBarItem` that is still opening takes `pending` instead: it keeps its name (quiet, and as its accessible name) and the same geometry, shows your `trailing` spinner, and stays selectable (close and drag disabled) so your panel can show placeholders until it loads. Use `LoadingSpinner` for known busy activity, not a skeleton; never animate a skeleton; prefer it over `wa-skeleton`. |
398
- | Adjustable or asymmetric columns | `ResizableRegion` or CSS grid | Use `ResizableRegion` only for a user-operable controlled separator, CSS grid for asymmetric/intrinsic tracks, and `Grid` for static equal-width tracks. |
399
- | Structured or ordinary search | `SearchField` or an input | Use token search only when text and ordered filter chips form one editor. |
400
- | Command menu | `PopupMenu` | Put it in a `single` `ToolbarControlGroup` with `nestedDropdown`; register `@kerfjs/ui/popup-menu/register` once. It draws the same popup as `Select` (caret, rows, check column, group titles); do not restyle either to match the other. Use `Select` when the user chooses a persistent value. |
401
- | Key/value facts | `ValueTable` with `ValueTableRow` | Use rows with `icon` only when the optional 24px leading visual adds context. |
402
- | Command search | Application-local semantics using shared layout vocabulary | No runtime component or production recipe is exported; the app owns behavior, policy, and copy. |
382
+ | Need | Choose | Nearest alternatives / boundary |
383
+ | -------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
384
+ | Navigation row | `ListItem` | Use an ordinary link or button when sidebar/menu anatomy and state do not apply. Its rounded root clips overflowing descendants; set `multiline` when the primary label should wrap. Multiline leading icons stay aligned with the first text line. |
385
+ | Nested items (a tree or outline) | `TreeList` + `wireTreeList` | Rows are ListItems indented by depth with disclosure arrows; the app owns `nodes`, `expanded`, and `selected` and handles `action` / `toggleAction`. For drag-and-drop, mark nodes `draggable` and pass `wireTreeList(root, { canDrop, onMove })`; moves land `before`, `after`, or `inside` a row. A pointer drag your app runs from outside the tree (a palette) targets rows through `treeListExternalDrop(root, { canDrop })` (`over(hit, clientY, sourceId)` then `clear()`). Never indent `ListItem` rows or draw disclosure arrows yourself. Use `List` for a flat list and `Disclosure` for one collapsible section. |
386
+ | A deep hierarchy, one level per column | `ColumnExplorer` + `wireColumnExplorer` | Columns of ListItem rows in a ColumnTrack; the app owns `nodes` and `path` (`treeListPath(nodes, id)` in `action`). Use `layout="paged"` on a phone. Never build the columns by hand; use TreeList for a shallow hierarchy. |
387
+ | Pages in one panel region | `PagedView` + `wirePagedViews` | Full-size pages with floating page dots; the app owns `page` and sets it from `onPageChange(page, viewId)`. Page content owns its inset. Named destinations use TabBar + TabPanel. |
388
+ | Horizontal flex layout | `Row` | Use `hAlign`/`vAlign`, a typed `gap`, and opt-in `wrap`; use `List` when the main axis is vertical. |
389
+ | Equal-width columns | `Grid` | Use fixed `columns` or typed `minColumnWidth` for automatic container-width collapse, plus typed `gap`/`flex`. Use CSS grid for asymmetric/intrinsic tracks and `ResizableRegion` for adjustable boundaries. |
390
+ | Navigation row with a trailing action | `ListActionRow` | Use `ListItem` when the trailing region is dormant; never put controls inside either component's SafeHtml slots. Multiline leading icons stay aligned with the first text line. A trailing "…" overflow menu is `trailingMenu` (a real `PopupMenu`), not a trailing button. |
391
+ | Page, panel, or dialog heading | `Toolbar` + `ToolbarText` | Use a direct extra-large `ToolbarText`, optional grouped icon, grouped trailing controls, and short supporting copy as the `ToolbarText` `description` (quiet, one line, aligned under the title, with `descriptionId` for `aria-describedby`; longer copy stays app-owned content below). |
392
+ | Exclusive choice | `TabBar`, `SegmentedControl`, or `Select` | Tabs switch tabpanels; segments expose a few choices; `ChoiceChips` keeps a larger visible set as wrapping pills (`multiple` for any number); Select handles a longer value list. |
393
+ | Status or absent content | `StateBanner` or `EmptyState` | `StateBanner` accepts an optional terse, tone-tinted `badge` beside its title for a count or compact status; do not rely on color alone. toasts (`toast()` from `kerfjs/overlay`) are transient and never the only record of important state; import `@kerfjs/ui/overlay-toast.css` once to style them (pass `exitClass: 'kui-toast-exit'`, `exitDuration: 200`, `variant` for a tone, or a `StateBanner` as the only content) instead of `wa-toast` or hand-written toast CSS. A hover and focus explanation on any element is `tooltip()` from `kerfjs/overlay` with `@kerfjs/ui/overlay-tooltip.css` imported (`exitClass: 'kui-tooltip-exit'`, `exitDuration: 100`), never `wa-tooltip`; icon-only Kerf controls already get help tags. Show-and-hide content is `Disclosure` (`@kerfjs/ui/disclosure`, a native details element on content-item geometry; inside a `ContentItem` use `appearance="embedded"` with `flush` `Text` content so the item's inset frames it once; Disclosures sharing a `name` form an accordion; close one from code with `element.open = false`), never `wa-details` or `wa-accordion`. Progress is `ProgressBar` (`@kerfjs/ui/progress-bar`, a native progress element with a `label` or `ariaLabel`, `showValue`/`valueText`, and an indeterminate sweep without `value`) or, where a bar does not fit, `ProgressRing` (`@kerfjs/ui/progress-ring`, `small`/`medium`/`large`), never `wa-progress-bar` or `wa-progress-ring`. A live rate or level read at a glance is `Gauge` (`@kerfjs/ui/gauge`, a speedometer dial named by `label`, `value` of `max` pinned past `max`, `valueText`/`unit`, `variant="bare"` at chip height, `tone`, `size`, and typed `colors` for a consumer palette instead of CSS), not progress. A value on a range is `Slider` (`@kerfjs/ui/slider`, a native range input with `label`, `showValue`/`unit`, `ticks`, and `hint`; call `wireSliders(root)` from `@kerfjs/ui/wire-sliders` once so the fill and readout follow a drag), never `wa-slider`. A list of short values submitted as form values is `TagField` (`@kerfjs/ui/tag-field`, SearchField's token editor as a form field with a hidden input per tag; call `wireTagFields(root, { onChange })` from `@kerfjs/ui/wire-tag-fields` and re-render with the reported tags; `max`, `normalize`, and `onReject` for validation), never `wa-tag-input`. One color from a small fixed palette is `ColorSwatches` (`@kerfjs/ui/color-swatches`, a native radio group of named round swatches with a hue-independent ring and an optional `'transparent'` no-color swatch). Any color is `ColorPicker` (`@kerfjs/ui/color-picker`, an inline panel with an area, channel sliders that follow the color model (red/green/blue, hue/saturation/lightness or brightness, or gray level, each track previewing its channel, hue as a fixed rainbow) plus opacity, RGB/HSL/HSB/Grayscale fields, hex, presets, and samples; call `wireColorPickers(root, { onChange })` from `@kerfjs/ui/wire-color-pickers` and re-render with the reported `value` and `mode`). A color in a form or inspector is `ColorField` (`@kerfjs/ui/color-field`, a swatch-and-hex trigger that opens a ColorPicker in an AnchoredSurface; call `wireColorFields(root, { onChange, pickers })` from `@kerfjs/ui/wire-color-fields` and re-render), never `wa-color-picker`. |
394
+ | Compact metadata | `Badge` | Configure status, count, category, or metadata presentation with tone, appearance, shape, and size props. For new content without a count use `size="dot"` (no children) with a `label` or `ariaHidden`. Cap long app-supplied text with `maxWidth` (a `CssLength`); it truncates with an ellipsis and the full string becomes the `title`. Do not build badges with application CSS or use them as interactive controls. |
395
+ | Hero image atop a scrolling view | `BackdropImage` | Lags the scroll (`parallax`), blurs progressively (`blur`, an opacity cross-fade to a once-blurred copy), dissolves into a typed `fadeTo` color that also paints the content below, and carries `overlay` content; Kerf owns the compositor-only scroll timeline and the reduced-motion, static-effects, and reduced-transparency fallbacks. Never hand-roll scroll listeners, `background-attachment: fixed`, or mask gradients. |
396
+ | Scroll-linked content effect | `ScrollEffect` | Wraps any content: `parallax`, `reveal`, `fade`, `scale`, or `dim` presets over an `entry`/`exit`/`cover`/`contain` range of its own view timeline, compositor-only and nested in array order, with Kerf-owned static fallbacks. Not for hero images (BackdropImage) or state changes (ContentSwap); never hand-roll scroll listeners or `animation-timeline` CSS. |
397
+ | Loading placeholder | a component's `placeholder` prop, or `Skeleton` | Set `placeholder` on a value-bearing component (`Select`, `ListHeader`, `ListItem`, `ValueTableRow`, `SegmentedControl`, `StateBanner`, `TabBarItem`, `ToolbarText`, `ListActionRow`) to render its real chrome with value slots as subtle **unanimated** skeletons and interactivity disabled; only unknown values change, so a placeholder is never dimmed or styled as disabled (a control whose own `disabled` / `trailingActionDisabled` / choice `disabled` / `actionDisabled` prop is set keeps its live disabled tone via the reserved `data-kui-disabled` marker) — do not hand-rebuild an empty state. Component-drawn chrome stays live too: a `ListItem` or `ListActionRow` placeholder keeps its `busy` spinner while its `status` text (and a `ListItem`'s `trailing` content, always a value) becomes a skeleton. `Skeleton` is the standalone block for a custom slot. A known `TabBarItem` that is still opening takes `pending` instead: it keeps its name (quiet, and as its accessible name) and the same geometry, shows your `trailing` spinner, and stays selectable (close and drag disabled) so your panel can show placeholders until it loads. Use `LoadingSpinner` for known busy activity, not a skeleton; never animate a skeleton; prefer it over `wa-skeleton`. |
398
+ | Adjustable or asymmetric columns | `ResizableRegion` or CSS grid | Use `ResizableRegion` only for a user-operable controlled separator, CSS grid for asymmetric/intrinsic tracks, and `Grid` for static equal-width tracks. |
399
+ | Structured or ordinary search | `SearchField` or an input | Use token search only when text and ordered filter chips form one editor. |
400
+ | Command menu | `PopupMenu` | Put it in a `single` `ToolbarControlGroup` with `nestedDropdown`; register `@kerfjs/ui/popup-menu/register` once. It draws the same popup as `Select` (caret, rows, check column, group titles); do not restyle either to match the other. Use `Select` when the user chooses a persistent value. |
401
+ | Key/value facts | `ValueTable` with `ValueTableRow` | Use rows with `icon` only when the optional 24px leading visual adds context. |
402
+ | Command search | Application-local semantics using shared layout vocabulary | No runtime component or production recipe is exported; the app owns behavior, policy, and copy. |
403
403
 
404
404
  For equal-width responsive forms, set `Grid minColumnWidth={px(376)}` instead of
405
405
  `columns`. Grid fits tracks from its own container width and collapses to one
@@ -504,8 +504,11 @@ meaning) to an icon-only `Button`. On a `ToolbarControlGroup` button, pass
504
504
  `ToolbarButton` `badge` (a count, short text, or `true` for a dot) with
505
505
  `badgeTone` and `badgeMax` (default 99, so 128 shows "99+"); a count of 0 shows
506
506
  nothing. That badge is decorative, so name the count in the button's
507
- `ariaLabel` and `title` ("Workers, 2 live"). Never position a badge with
508
- application CSS.
507
+ `ariaLabel` and `title` ("Workers, 2 live"). On a `SegmentedControl` choice,
508
+ such as a toolbar view switcher's, pass the same `badge`, `badgeTone`, and
509
+ `badgeMax` on the choice and name the count in its `label` and `title`
510
+ ("Workers View, 2 live"); give it icon `content`, since `label` is otherwise
511
+ also the visible text. Never position a badge with application CSS.
509
512
 
510
513
  If the primary toolbar has search, make it search or filter the primary searchable content of the current page or view. Rebind its scope and available filters on sub-pages and alternate views; do not wire it only to the first view. Potentially long lists, especially dynamic or user-generated ones, should normally be searchable or filterable. Omit search where the page has no searchable content. `SearchField` supplies the editor; the application owns which content the query filters.
511
514
 
@@ -1,6 +1,6 @@
1
1
  # Web Awesome JSX signatures for the UI authoring corpus
2
2
 
3
- Generated from the emitted `@kerfjs/ui@5.0.0-beta.124` declaration boundary. Import `@kerfjs/ui/webawesome` for type effects when authoring direct `wa-*` JSX. The module emits no runtime behavior and does not register custom elements.
3
+ Generated from the emitted `@kerfjs/ui@5.0.0-beta.125` declaration boundary. Import `@kerfjs/ui/webawesome` for type effects when authoring direct `wa-*` JSX. The module emits no runtime behavior and does not register custom elements.
4
4
 
5
5
  ```ts
6
6
  import { KerfCustomElement } from 'kerfjs/jsx-runtime';
@@ -0,0 +1,3 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/gauge.css';
3
+ export * from '../gauge.js';
@@ -1,3 +1,4 @@
1
1
  import '../styles/foundation.css';
2
+ import '../styles/badge.css';
2
3
  import '../styles/segmented-control.css';
3
4
  export * from '../segmented-control.js';
package/dist/catalog.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { uxReviewCaptureUrl } from './chunk-6C6DLP3W.js';
2
2
  export { UX_REVIEW_PROJECT_PATH, loadUxReviewProject, uxReviewCaptureUrl } from './chunk-6C6DLP3W.js';
3
3
  import { ListInsetControl } from './chunk-3TBMGGTA.js';
4
- import { Workbench } from './chunk-NYNNNEAU.js';
4
+ import { Workbench } from './chunk-KQZIC5CA.js';
5
5
 
6
6
  import { Switch } from './chunk-C4FBYP2D.js';
7
7
  import { SearchField } from './chunk-UD5KHQOH.js';
8
8
  import { Row } from './chunk-CCPWJDRW.js';
9
+ import { ListInsetText } from './chunk-CJAKN2KZ.js';
9
10
  import { PopupMenu } from './chunk-BZXA5SSA.js';
10
11
 
11
12
 
@@ -14,17 +15,16 @@ import { PopupMenu } from './chunk-BZXA5SSA.js';
14
15
  import { ToolbarText } from './chunk-JAC6AVZN.js';
15
16
  import { ListHeader } from './chunk-SPI6VMIY.js';
16
17
  import { Text } from './chunk-F34LHBQI.js';
17
- import { ListInsetText } from './chunk-CJAKN2KZ.js';
18
18
 
19
19
 
20
20
 
21
21
 
22
22
  import { ToolbarControlGroup, ToolbarActionLink } from './chunk-EXGDKG7B.js';
23
- import { Toolbar } from './chunk-SWXWLSUD.js';
24
23
 
25
24
 
26
25
 
27
26
  import { ensureSunkenTexture } from './chunk-IKS72C6P.js';
27
+ import { Toolbar } from './chunk-SWXWLSUD.js';
28
28
 
29
29
  import { ListItem } from './chunk-2E7S5C4D.js';
30
30
 
@@ -1,9 +1,9 @@
1
1
  import { ToolbarText } from './chunk-JAC6AVZN.js';
2
2
  import { paneConfigProps } from './chunk-JG4ONAOI.js';
3
3
  import { ToolbarControlGroup } from './chunk-EXGDKG7B.js';
4
- import { Toolbar } from './chunk-SWXWLSUD.js';
5
4
  import { Pane } from './chunk-KACJOE2N.js';
6
5
  import { scrollEdgeAttributes } from './chunk-IRC5N7FA.js';
6
+ import { Toolbar } from './chunk-SWXWLSUD.js';
7
7
  import { surfaceTintAttributes, joinStyles } from './chunk-M72QLDUO.js';
8
8
  import { List } from './chunk-WVQDIOD7.js';
9
9
  import { LucideIcon } from './chunk-CMG4OZPV.js';
@@ -215,4 +215,4 @@ function NavStack({
215
215
 
216
216
  export { NavStack };
217
217
 
218
- //# sourceMappingURL=chunk-F3PZGFEA.js.map
218
+ //# sourceMappingURL=chunk-6OT7FOSA.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/navigation/nav-stack/nav-stack.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAsNA,IAAM,uBAAA,GAA0B;AAAA,EAC9B,aAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA;AAEA,IAAM,8BAAA,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EAAqB,IAAA,EACvB,QAAA,EAAA,UAAA,CAAW,IAAA,CAAK,MAAA,EAAQ,IAAA,CAAK,UAAU,CAAA,EAC1C,CAAA;AAAA,gBAIH,QAAA,EAAA,IAAA,CAAK;AAAA;AAAA,gBAGR,IAAA,CAAK;AAAA;AAAA,SAGV,CAAA,EACH,CAAA;AAAA,QACC,0BACC,GAAA,CAAC,QAAA,EAAA,EAAO,KAAA,EAAM,uBAAA,EAAwB,yBAAqB,IAAA,EACzD,QAAA,kBAAA,GAAA;AAAA,UAAC,OAAA;AAAA,UAAA;AAAA,YACC,QAAA,EAAS,QAAA;AAAA,YACT,OAAO,MAAA,CAAO,KAAA;AAAA,YACd,SAAS,MAAA,CAAO,OAAA;AAAA,YAChB,cAAc,MAAA,CAAO,YAAA;AAAA,YACrB,aAAa,MAAA,CAAO,WAAA;AAAA,YACpB,YAAY,MAAA,CAAO,UAAA;AAAA,YACnB,cAAc,MAAA,CAAO,YAAA;AAAA,YACrB,aAAA,EACE,OAAO,aAAA,IAAiB,8BAAA;AAAA,YAE1B,SAAS,MAAA,CAAO,OAAA;AAAA,YAChB,QAAQ,MAAA,CAAO,MAAA;AAAA,YACf,UAAU,MAAA,CAAO;AAAA;AAAA,SACnB,EACF;AAAA;AAAA;AAAA,GAEJ;AAEJ","file":"chunk-F3PZGFEA.js","sourcesContent":["import { ChevronLeft } from 'lucide';\n\nimport type { KerfUiContent } from '../../../shared/content/semantic-content.js';\nimport {\n filterDataAttributes,\n type RootDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport {\n type ScrollEdge,\n scrollEdgeAttributes,\n} from '../../../shared/layout/scroll-edge.js';\nimport type { NavPane } from '../../../shared/panels/nav-pane.js';\nimport type { PanelBottomToolbar } from '../../../shared/panels/panel-toolbar.js';\nimport type { CssColor } from '../../../shared/styles/css-values.js';\nimport {\n joinStyles,\n type SurfaceTint,\n surfaceTintAttributes,\n type SurfaceTintScheme,\n} from '../../../shared/styles/surface-tint.js';\nimport { Toolbar, type ToolbarConfig } from '../../actions/toolbar/toolbar.js';\nimport { ToolbarControlGroup } from '../../actions/toolbar-control-group/toolbar-control-group.js';\nimport {\n type HeadingLevel,\n ToolbarText,\n type ToolbarTextSize,\n} from '../../actions/toolbar-text/toolbar-text.js';\nimport { List, type ListConfig } from '../../collections/list/list.js';\nimport { paneConfigProps } from '../../layout/pane/internal/pane-config-props.js';\nimport { Pane } from '../../layout/pane/pane.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\n\n/**\n * One entry in a {@link NavStack}. The app owns the stack as an array (usually a\n * signal); `NavStack` renders it and `wireNavStack` animates the transitions.\n */\nexport interface NavStackView extends NavPane<\n NavStackViewToolbar,\n PanelBottomToolbar\n> {\n /** Stable identity for keyed reconcile and transition direction. */\n key: string;\n}\n\n/** Per-view top toolbar. The stack supplies its back control before `leading`. */\nexport interface NavStackViewToolbar extends NavStackToolbarConfig {\n title?: string;\n leading?: KerfUiContent;\n center?: KerfUiContent;\n trailing?: KerfUiContent;\n}\n\n/** A view's structured bottom toolbar; it cross-fades on navigation. */\nexport type NavStackViewBottomToolbar = PanelBottomToolbar;\n\n/**\n * The top toolbar's configuration. Its `ToolbarConfig` forwards to the real\n * `Toolbar` the stack renders; by default that toolbar draws no divider and\n * claims the top and side safe-area edges the stack still touches.\n */\nexport interface NavStackToolbarConfig extends ToolbarConfig {\n /** Accessible name of the top toolbar (default: none). */\n label?: string;\n /**\n * Size of the view title's `ToolbarText`. Default `xlarge` at the root,\n * where the title is the page heading, and `large` once a back control\n * shares the bar.\n */\n titleSize?: ToolbarTextSize;\n /** Expose the view title as a heading at this level (default: a plain span). */\n headingLevel?: HeadingLevel;\n}\n\n/**\n * How a {@link NavStack}'s top chrome relates to the active view: `docked`\n * above it, or `overlay` laid over its top edge on the translucent chrome\n * material, so the view's content scrolls visibly beneath it.\n * `clear` lays it over\n * the same edge fully transparent, for chrome over imagery: legibility comes\n * from glass control groups or a scrim, and with `scrollEdge=\"material\"` the\n * chrome material fades in once content scrolls beneath it.\n */\nexport type NavStackChromePresentation = 'docked' | 'overlay' | 'clear';\n\n/**\n * How a {@link NavStack}'s bottom toolbar relates to the active view:\n * `docked` below it, or `overlay` laid over its bottom edge on the\n * translucent chrome material, so the view's content scrolls visibly beneath\n * it.\n * `clear` lays it over\n * the same edge fully transparent, for chrome over imagery: legibility comes\n * from glass control groups or a scrim, and with `scrollEdge=\"material\"` the\n * chrome material fades in once content scrolls beneath\n * it, until the view scrolls to its end.\n */\nexport type NavStackBottomToolbarPresentation = 'docked' | 'overlay' | 'clear';\n\nexport interface NavStackProps {\n id: string;\n /** Accessible name for the stack region. */\n label: string;\n /** The stack, root first; the last entry is the active top view. */\n views: NavStackView[];\n /** Accessible label for the icon-only back control (default \"Back\"). */\n backLabel?: string;\n /** The back control's icon (default a chevron-left `LucideIcon`). */\n backIcon?: KerfUiContent;\n /**\n * Visible text beside the back icon, such as the previous view's title\n * (default: icon only). When set, the text names the control and\n * `backLabel` is not used.\n */\n backText?: string;\n /** The top toolbar's configuration, forwarded to its `Toolbar`. */\n toolbarConfig?: NavStackToolbarConfig;\n /** Persistent last group in every view's top toolbar, supplied by a hosting panel. */\n panelToggle?: KerfUiContent;\n /** Hide the top toolbar entirely (rare — a fully custom-chrome view). */\n hideToolbar?: boolean;\n /** Optional persistent bottom toolbar used when the active view does not provide one. */\n bottomToolbar?: NavStackViewBottomToolbar;\n /**\n * Stack chrome separator. `auto` (default) draws both available edges\n * against a sunken active Pane and otherwise follows `chromeDividers`;\n * `hidden` suppresses the stack-owned edges.\n */\n separator?: 'auto' | 'hidden';\n /**\n * The line under the top chrome and over the bottom toolbar, where they\n * meet the active view. `scroll` (default) shows the chrome's line only\n * while the view's content is scrolled beneath it, and the bottom\n * toolbar's only while more content lies below — never when the content\n * fits — once `wireScrollDividers` (`@kerfjs/ui/wire-scroll-dividers`) is\n * wired above the stack; unwired, neither shows. `always` shows both\n * without the wiring; `none` neither, even when wired. The line is drawn\n * inside the chrome, so no state moves the chrome or the content. A\n * A sunken active Pane still draws the separator unless\n * `separator=\"hidden\"`. A `toolbarConfig.dividerSides` edge is the Toolbar's\n * own and is unaffected.\n */\n chromeDividers?: 'scroll' | 'always' | 'none';\n /**\n * `docked` (default) gives the top chrome its own band above the active\n * view. `overlay` lays the chrome over the view's top edge on the\n * translucent chrome material (`--kui-chrome-material`, opaque under\n * `prefers-reduced-transparency`, `prefers-contrast: more`, forced colors,\n * or without `backdrop-filter`), so content scrolls visibly beneath it, as\n * an iOS navigation bar does. `wireNavStack` measures the live chrome and\n * hands its height (top safe area included) to the viewport as the\n * block-start `--kui-edge-inset-*` context, so every view clears it with no\n * prop: a plain view, a sole `Pane`'s content (or header), and a nested\n * layout all pad and `scroll-padding` by it, so the first item, and anything\n * focused or scrolled into view, rests clear of the bar. Until then, and\n * with `hideToolbar`, the chrome stays docked. An untoned `ToolbarText` in\n * the chrome lifts its title and description to AA over the content passing\n * beneath it; keep any other quiet copy in the view. With `clear`, the\n * stack's own back control sits in a glass control group\n * (`material=\"glass\"`), so it stays legible over imagery.\n */\n chromePresentation?: NavStackChromePresentation;\n /**\n * `docked` (default) gives the bottom toolbar its own band below the\n * active view. `overlay` lays it over the view's bottom edge on the\n * translucent chrome material (opaque under the same preferences as\n * `chromePresentation`), so content scrolls visibly beneath it, as under\n * an iOS toolbar. `wireNavStack` measures the live bottom toolbar (never a\n * cross-fading copy) and hands its height (bottom safe area included) to\n * the viewport as the block-end `--kui-edge-inset-*` context, so a plain\n * view, a sole `Pane`'s content (or footer), and a nested layout rest their\n * last item, and anything focused or scrolled into view, clear of it. Until\n * then, and while no bottom toolbar is shown, it stays docked. Independent\n * of `chromePresentation`, which governs only the top chrome. An untoned\n * `ToolbarText` in the toolbar lifts to AA over the content beneath it.\n */\n bottomToolbarPresentation?: NavStackBottomToolbarPresentation;\n /**\n * For `clear` chrome or bottom toolbar, `material` fades the chrome\n * material in while the active view's content lies beneath it (default\n * `none`).\n */\n scrollEdge?: ScrollEdge;\n /**\n * The scroll distance, in CSS pixels, over which the scroll edge fades in\n * (default 60).\n */\n scrollEdgeDistance?: number;\n /**\n * Paint the stack, its docked chrome and bottom toolbar, and every view in\n * an app-chosen color (a `@kerfjs/ui/css-values` color builder) instead of\n * the surface. Overlay chrome keeps the chrome material; one view's own\n * color goes in its `pane: { background }`. Forced colors paint `Canvas`.\n */\n background?: CssColor;\n /**\n * A scoped tint (`{ color, scheme }`) for the stack, its chrome, bottom toolbar, and views: its surfaces and every\n * descendant re-derive their surface and text tokens from the app's color\n * in the declared scheme, with lightness clamped to keep text at WCAG AA.\n */\n tint?: SurfaceTint;\n /**\n * Scope this surface and its subtree to the light or dark palette, whatever\n * the page's scheme (a light card on a dark page). A `tint` already sets\n * its scheme; pass `scheme` alone for the plain palette, or with a tint\n * only when they agree.\n */\n scheme?: SurfaceTintScheme;\n className?: string;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n /** Application `data-*` metadata on the root, such as a row key or an\n * editor node marker; the component's own markers stay protected. */\n rootAttributes?: RootDataAttributes;\n}\n\nconst DEFAULT_SAFE_AREA_EDGES = [\n 'block-start',\n 'inline-start',\n 'inline-end',\n] as const;\n\nconst DEFAULT_BOTTOM_SAFE_AREA_EDGES = [\n 'block-end',\n 'inline-start',\n 'inline-end',\n] as const;\n\nfunction chromeList(content: KerfUiContent, config?: ListConfig) {\n return (\n <List\n dividerSides={config?.dividerSides}\n gap={config?.gap}\n hAlign={config?.hAlign}\n vAlign={config?.vAlign}\n textInsets={config?.textInsets}\n controlInsets={config?.controlInsets}\n >\n {content}\n </List>\n );\n}\n\n// Markers the component writes; data-key is not one of them on the root\n// (only inner rows use it), so an app row key passes through.\nconst NAV_STACK_PROTECTED = new Set([\n 'data-background',\n 'data-bottom-toolbar-material',\n 'data-bottom-toolbar-presentation',\n 'data-chrome-dividers',\n 'data-chrome-material',\n 'data-chrome-presentation',\n 'data-component',\n 'data-depth',\n 'data-kui-tint',\n 'data-kui-tint-accent',\n 'data-nav-active',\n 'data-nav-key',\n 'data-nav-stack-id',\n 'data-separator',\n]);\n\n/**\n * A navigation stack (iOS-style push/pop). Renders every entry stacked, the last\n * one active; `@kerfjs/ui/wire-nav-stack`'s `wireNavStack` slides the content and\n * cross-fades the chrome across a change. Its top chrome is a real `Toolbar`: the\n * back control and title lead, the active view's `toolbar` fills the zones,\n * and `toolbarConfig` supplies defaults. A single-pane\n * layout is a `NavStack` with one entry. See `docs/23-app-layouts.md` §3.1.\n */\nexport function NavStack({\n id,\n label,\n views,\n backLabel = 'Back',\n backIcon,\n backText,\n toolbarConfig = {},\n panelToggle,\n hideToolbar = false,\n bottomToolbar,\n separator = 'auto',\n chromeDividers = 'scroll',\n chromePresentation = 'docked',\n bottomToolbarPresentation = 'docked',\n scrollEdge = 'none',\n scrollEdgeDistance,\n background,\n tint,\n scheme,\n className = '',\n slot,\n rootAttributes = {},\n}: NavStackProps) {\n const tinted = surfaceTintAttributes(tint, scheme);\n const topIndex = views.length - 1;\n const top = views[topIndex];\n const topToolbar = top?.toolbar;\n const bottom = top?.bottomToolbar ?? bottomToolbar;\n const canPop = views.length > 1;\n const topDensity = topToolbar?.density ?? toolbarConfig.density;\n // With a back control, the title centers on the bar (iOS-style) unless the\n // view owns the center zone; at the root it leads and fills, left-aligned.\n const centerTitle = canPop && topToolbar?.center === undefined;\n const title = (\n <ToolbarText\n text={topToolbar?.title ?? ''}\n size={\n topToolbar?.titleSize ??\n toolbarConfig.titleSize ??\n (canPop ? 'large' : 'xlarge')\n }\n headingLevel={topToolbar?.headingLevel ?? toolbarConfig.headingLevel}\n fill={!centerTitle}\n />\n );\n return (\n <section\n {...filterDataAttributes(rootAttributes, NAV_STACK_PROTECTED)}\n class={`kui-nav-stack ${tinted.className} ${className}`\n .replace(/\\s+/g, ' ')\n .trim()}\n id={id}\n data-component=\"nav-stack\"\n data-nav-stack-id={id}\n data-depth={String(views.length)}\n data-separator={separator}\n data-chrome-dividers={\n chromeDividers === 'always' || chromeDividers === 'none'\n ? chromeDividers\n : undefined\n }\n data-chrome-presentation={\n chromePresentation !== 'docked' && !hideToolbar ? 'overlay' : undefined\n }\n data-chrome-material={\n chromePresentation === 'clear' && !hideToolbar ? 'clear' : undefined\n }\n data-bottom-toolbar-presentation={\n bottomToolbarPresentation !== 'docked' ? 'overlay' : undefined\n }\n data-bottom-toolbar-material={\n bottomToolbarPresentation === 'clear' ? 'clear' : undefined\n }\n {...scrollEdgeAttributes(\n scrollEdge,\n scrollEdgeDistance,\n (chromePresentation === 'clear' && !hideToolbar) ||\n bottomToolbarPresentation === 'clear',\n )}\n data-background={background === undefined ? undefined : ''}\n data-kui-tint={tinted['data-kui-tint']}\n data-kui-tint-accent={tinted['data-kui-tint-accent']}\n data-kui-scheme={tinted['data-kui-scheme']}\n style={joinStyles(\n background === undefined\n ? undefined\n : `--_kui-nav-stack-background:${background}`,\n tinted.style,\n )}\n aria-label={label}\n slot={slot}\n >\n {!hideToolbar && (\n <div class=\"kui-nav-stack__chrome\" data-nav-stack-chrome>\n <Toolbar\n label={topToolbar?.label ?? toolbarConfig.label}\n density={topDensity}\n dividerSides={\n topToolbar?.dividerSides ?? toolbarConfig.dividerSides\n }\n centerAlign={\n centerTitle\n ? 'balanced'\n : (topToolbar?.centerAlign ?? toolbarConfig.centerAlign)\n }\n responsive={topToolbar?.responsive ?? toolbarConfig.responsive}\n responsiveAt={\n topToolbar?.responsiveAt ?? toolbarConfig.responsiveAt\n }\n safeAreaEdges={\n topToolbar?.safeAreaEdges ??\n toolbarConfig.safeAreaEdges ??\n DEFAULT_SAFE_AREA_EDGES\n }\n leading={\n <>\n {canPop && (\n <ToolbarControlGroup\n content={backText ? 'mixed' : 'icon'}\n size={topDensity === 'compact' ? 'compact' : 'default'}\n material={\n chromePresentation === 'clear' ? 'glass' : undefined\n }\n single\n >\n <button\n type=\"button\"\n class=\"kui-nav-stack__back\"\n data-nav-back\n aria-label={backText ? undefined : backLabel}\n >\n {backIcon ?? (\n <LucideIcon\n icon={ChevronLeft}\n name=\"chevron-left\"\n className=\"kui-nav-stack__back-icon\"\n />\n )}\n {backText ? <span>{backText}</span> : null}\n </button>\n </ToolbarControlGroup>\n )}\n {topToolbar?.leading}\n {centerTitle ? null : title}\n </>\n }\n center={centerTitle ? title : topToolbar?.center}\n trailing={\n <>\n {topToolbar?.trailing}\n {panelToggle}\n </>\n }\n />\n </div>\n )}\n <div class=\"kui-nav-stack__viewport\" data-nav-stack-viewport>\n {views.map((view, index) => (\n <article\n class=\"kui-nav-stack__view\"\n data-key={view.key}\n data-nav-key={view.key}\n data-nav-active={String(index === topIndex)}\n aria-hidden={String(index !== topIndex)}\n >\n {view.pane ||\n view.header !== undefined ||\n view.footer !== undefined ? (\n <Pane\n {...paneConfigProps(view.pane)}\n header={\n view.header === undefined ? undefined : (\n <div data-nav-stack-header>\n {chromeList(view.header, view.headerList)}\n </div>\n )\n }\n footer={\n view.footer === undefined ? undefined : (\n <div data-nav-stack-footer>\n {chromeList(view.footer, view.footerList)}\n </div>\n )\n }\n >\n {view.content}\n </Pane>\n ) : (\n view.content\n )}\n </article>\n ))}\n </div>\n {bottom && (\n <footer class=\"kui-nav-stack__bottom\" data-nav-stack-bottom>\n <Toolbar\n position=\"footer\"\n label={bottom.label}\n density={bottom.density}\n dividerSides={bottom.dividerSides}\n centerAlign={bottom.centerAlign}\n responsive={bottom.responsive}\n responsiveAt={bottom.responsiveAt}\n safeAreaEdges={\n bottom.safeAreaEdges ?? DEFAULT_BOTTOM_SAFE_AREA_EDGES\n }\n leading={bottom.leading}\n center={bottom.center}\n trailing={bottom.trailing}\n />\n </footer>\n )}\n </section>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/components/navigation/nav-stack/nav-stack.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAsNA,IAAM,uBAAA,GAA0B;AAAA,EAC9B,aAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA;AAEA,IAAM,8BAAA,GAAiC;AAAA,EACrC,WAAA;AAAA,EACA,cAA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AW,IAAA,CAAK,MAAA,EAAQ,IAAA,CAAK,UAAU,CAAA,EAC1C,CAAA;AAAA,gBAIH,QAAA,EAAA,IAAA,CAAK;AAAA;AAAA,gBAGR,IAAA,CAAK;AAAA;AAAA,SAGV,CAAA,EACH,CAAA;AAAA,QACC,0BACC,GAAA,CAAC,QAAA,EAAA,EAAO,KAAA,EAAM,uBAAA,EAAwB,yBAAqB,IAAA,EACzD,QAAA,kBAAA,GAAA;AAAA,UAAC,OAAA;AAAA,UAAA;AAAA,YACC,QAAA,EAAS,QAAA;AAAA,YACT,OAAO,MAAA,CAAO,KAAA;AAAA,YACd,SAAS,MAAA,CAAO,OAAA;AAAA,YAChB,cAAc,MAAA,CAAO,YAAA;AAAA,YACrB,aAAa,MAAA,CAAO,WAAA;AAAA,YACpB,YAAY,MAAA,CAAO,UAAA;AAAA,YACnB,cAAc,MAAA,CAAO,YAAA;AAAA,YACrB,aAAA,EACE,OAAO,aAAA,IAAiB,8BAAA;AAAA,YAE1B,SAAS,MAAA,CAAO,OAAA;AAAA,YAChB,QAAQ,MAAA,CAAO,MAAA;AAAA,YACf,UAAU,MAAA,CAAO;AAAA;AAAA,SACnB,EACF;AAAA;AAAA;AAAA,GAEJ;AAEJ","file":"chunk-6OT7FOSA.js","sourcesContent":["import { ChevronLeft } from 'lucide';\n\nimport type { KerfUiContent } from '../../../shared/content/semantic-content.js';\nimport {\n filterDataAttributes,\n type RootDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport {\n type ScrollEdge,\n scrollEdgeAttributes,\n} from '../../../shared/layout/scroll-edge.js';\nimport type { NavPane } from '../../../shared/panels/nav-pane.js';\nimport type { PanelBottomToolbar } from '../../../shared/panels/panel-toolbar.js';\nimport type { CssColor } from '../../../shared/styles/css-values.js';\nimport {\n joinStyles,\n type SurfaceTint,\n surfaceTintAttributes,\n type SurfaceTintScheme,\n} from '../../../shared/styles/surface-tint.js';\nimport { Toolbar, type ToolbarConfig } from '../../actions/toolbar/toolbar.js';\nimport { ToolbarControlGroup } from '../../actions/toolbar-control-group/toolbar-control-group.js';\nimport {\n type HeadingLevel,\n ToolbarText,\n type ToolbarTextSize,\n} from '../../actions/toolbar-text/toolbar-text.js';\nimport { List, type ListConfig } from '../../collections/list/list.js';\nimport { paneConfigProps } from '../../layout/pane/internal/pane-config-props.js';\nimport { Pane } from '../../layout/pane/pane.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\n\n/**\n * One entry in a {@link NavStack}. The app owns the stack as an array (usually a\n * signal); `NavStack` renders it and `wireNavStack` animates the transitions.\n */\nexport interface NavStackView extends NavPane<\n NavStackViewToolbar,\n PanelBottomToolbar\n> {\n /** Stable identity for keyed reconcile and transition direction. */\n key: string;\n}\n\n/** Per-view top toolbar. The stack supplies its back control before `leading`. */\nexport interface NavStackViewToolbar extends NavStackToolbarConfig {\n title?: string;\n leading?: KerfUiContent;\n center?: KerfUiContent;\n trailing?: KerfUiContent;\n}\n\n/** A view's structured bottom toolbar; it cross-fades on navigation. */\nexport type NavStackViewBottomToolbar = PanelBottomToolbar;\n\n/**\n * The top toolbar's configuration. Its `ToolbarConfig` forwards to the real\n * `Toolbar` the stack renders; by default that toolbar draws no divider and\n * claims the top and side safe-area edges the stack still touches.\n */\nexport interface NavStackToolbarConfig extends ToolbarConfig {\n /** Accessible name of the top toolbar (default: none). */\n label?: string;\n /**\n * Size of the view title's `ToolbarText`. Default `xlarge` at the root,\n * where the title is the page heading, and `large` once a back control\n * shares the bar.\n */\n titleSize?: ToolbarTextSize;\n /** Expose the view title as a heading at this level (default: a plain span). */\n headingLevel?: HeadingLevel;\n}\n\n/**\n * How a {@link NavStack}'s top chrome relates to the active view: `docked`\n * above it, or `overlay` laid over its top edge on the translucent chrome\n * material, so the view's content scrolls visibly beneath it.\n * `clear` lays it over\n * the same edge fully transparent, for chrome over imagery: legibility comes\n * from glass control groups or a scrim, and with `scrollEdge=\"material\"` the\n * chrome material fades in once content scrolls beneath it.\n */\nexport type NavStackChromePresentation = 'docked' | 'overlay' | 'clear';\n\n/**\n * How a {@link NavStack}'s bottom toolbar relates to the active view:\n * `docked` below it, or `overlay` laid over its bottom edge on the\n * translucent chrome material, so the view's content scrolls visibly beneath\n * it.\n * `clear` lays it over\n * the same edge fully transparent, for chrome over imagery: legibility comes\n * from glass control groups or a scrim, and with `scrollEdge=\"material\"` the\n * chrome material fades in once content scrolls beneath\n * it, until the view scrolls to its end.\n */\nexport type NavStackBottomToolbarPresentation = 'docked' | 'overlay' | 'clear';\n\nexport interface NavStackProps {\n id: string;\n /** Accessible name for the stack region. */\n label: string;\n /** The stack, root first; the last entry is the active top view. */\n views: NavStackView[];\n /** Accessible label for the icon-only back control (default \"Back\"). */\n backLabel?: string;\n /** The back control's icon (default a chevron-left `LucideIcon`). */\n backIcon?: KerfUiContent;\n /**\n * Visible text beside the back icon, such as the previous view's title\n * (default: icon only). When set, the text names the control and\n * `backLabel` is not used.\n */\n backText?: string;\n /** The top toolbar's configuration, forwarded to its `Toolbar`. */\n toolbarConfig?: NavStackToolbarConfig;\n /** Persistent last group in every view's top toolbar, supplied by a hosting panel. */\n panelToggle?: KerfUiContent;\n /** Hide the top toolbar entirely (rare — a fully custom-chrome view). */\n hideToolbar?: boolean;\n /** Optional persistent bottom toolbar used when the active view does not provide one. */\n bottomToolbar?: NavStackViewBottomToolbar;\n /**\n * Stack chrome separator. `auto` (default) draws both available edges\n * against a sunken active Pane and otherwise follows `chromeDividers`;\n * `hidden` suppresses the stack-owned edges.\n */\n separator?: 'auto' | 'hidden';\n /**\n * The line under the top chrome and over the bottom toolbar, where they\n * meet the active view. `scroll` (default) shows the chrome's line only\n * while the view's content is scrolled beneath it, and the bottom\n * toolbar's only while more content lies below — never when the content\n * fits — once `wireScrollDividers` (`@kerfjs/ui/wire-scroll-dividers`) is\n * wired above the stack; unwired, neither shows. `always` shows both\n * without the wiring; `none` neither, even when wired. The line is drawn\n * inside the chrome, so no state moves the chrome or the content. A\n * A sunken active Pane still draws the separator unless\n * `separator=\"hidden\"`. A `toolbarConfig.dividerSides` edge is the Toolbar's\n * own and is unaffected.\n */\n chromeDividers?: 'scroll' | 'always' | 'none';\n /**\n * `docked` (default) gives the top chrome its own band above the active\n * view. `overlay` lays the chrome over the view's top edge on the\n * translucent chrome material (`--kui-chrome-material`, opaque under\n * `prefers-reduced-transparency`, `prefers-contrast: more`, forced colors,\n * or without `backdrop-filter`), so content scrolls visibly beneath it, as\n * an iOS navigation bar does. `wireNavStack` measures the live chrome and\n * hands its height (top safe area included) to the viewport as the\n * block-start `--kui-edge-inset-*` context, so every view clears it with no\n * prop: a plain view, a sole `Pane`'s content (or header), and a nested\n * layout all pad and `scroll-padding` by it, so the first item, and anything\n * focused or scrolled into view, rests clear of the bar. Until then, and\n * with `hideToolbar`, the chrome stays docked. An untoned `ToolbarText` in\n * the chrome lifts its title and description to AA over the content passing\n * beneath it; keep any other quiet copy in the view. With `clear`, the\n * stack's own back control sits in a glass control group\n * (`material=\"glass\"`), so it stays legible over imagery.\n */\n chromePresentation?: NavStackChromePresentation;\n /**\n * `docked` (default) gives the bottom toolbar its own band below the\n * active view. `overlay` lays it over the view's bottom edge on the\n * translucent chrome material (opaque under the same preferences as\n * `chromePresentation`), so content scrolls visibly beneath it, as under\n * an iOS toolbar. `wireNavStack` measures the live bottom toolbar (never a\n * cross-fading copy) and hands its height (bottom safe area included) to\n * the viewport as the block-end `--kui-edge-inset-*` context, so a plain\n * view, a sole `Pane`'s content (or footer), and a nested layout rest their\n * last item, and anything focused or scrolled into view, clear of it. Until\n * then, and while no bottom toolbar is shown, it stays docked. Independent\n * of `chromePresentation`, which governs only the top chrome. An untoned\n * `ToolbarText` in the toolbar lifts to AA over the content beneath it.\n */\n bottomToolbarPresentation?: NavStackBottomToolbarPresentation;\n /**\n * For `clear` chrome or bottom toolbar, `material` fades the chrome\n * material in while the active view's content lies beneath it (default\n * `none`).\n */\n scrollEdge?: ScrollEdge;\n /**\n * The scroll distance, in CSS pixels, over which the scroll edge fades in\n * (default 60).\n */\n scrollEdgeDistance?: number;\n /**\n * Paint the stack, its docked chrome and bottom toolbar, and every view in\n * an app-chosen color (a `@kerfjs/ui/css-values` color builder) instead of\n * the surface. Overlay chrome keeps the chrome material; one view's own\n * color goes in its `pane: { background }`. Forced colors paint `Canvas`.\n */\n background?: CssColor;\n /**\n * A scoped tint (`{ color, scheme }`) for the stack, its chrome, bottom toolbar, and views: its surfaces and every\n * descendant re-derive their surface and text tokens from the app's color\n * in the declared scheme, with lightness clamped to keep text at WCAG AA.\n */\n tint?: SurfaceTint;\n /**\n * Scope this surface and its subtree to the light or dark palette, whatever\n * the page's scheme (a light card on a dark page). A `tint` already sets\n * its scheme; pass `scheme` alone for the plain palette, or with a tint\n * only when they agree.\n */\n scheme?: SurfaceTintScheme;\n className?: string;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n /** Application `data-*` metadata on the root, such as a row key or an\n * editor node marker; the component's own markers stay protected. */\n rootAttributes?: RootDataAttributes;\n}\n\nconst DEFAULT_SAFE_AREA_EDGES = [\n 'block-start',\n 'inline-start',\n 'inline-end',\n] as const;\n\nconst DEFAULT_BOTTOM_SAFE_AREA_EDGES = [\n 'block-end',\n 'inline-start',\n 'inline-end',\n] as const;\n\nfunction chromeList(content: KerfUiContent, config?: ListConfig) {\n return (\n <List\n dividerSides={config?.dividerSides}\n gap={config?.gap}\n hAlign={config?.hAlign}\n vAlign={config?.vAlign}\n textInsets={config?.textInsets}\n controlInsets={config?.controlInsets}\n >\n {content}\n </List>\n );\n}\n\n// Markers the component writes; data-key is not one of them on the root\n// (only inner rows use it), so an app row key passes through.\nconst NAV_STACK_PROTECTED = new Set([\n 'data-background',\n 'data-bottom-toolbar-material',\n 'data-bottom-toolbar-presentation',\n 'data-chrome-dividers',\n 'data-chrome-material',\n 'data-chrome-presentation',\n 'data-component',\n 'data-depth',\n 'data-kui-tint',\n 'data-kui-tint-accent',\n 'data-nav-active',\n 'data-nav-key',\n 'data-nav-stack-id',\n 'data-separator',\n]);\n\n/**\n * A navigation stack (iOS-style push/pop). Renders every entry stacked, the last\n * one active; `@kerfjs/ui/wire-nav-stack`'s `wireNavStack` slides the content and\n * cross-fades the chrome across a change. Its top chrome is a real `Toolbar`: the\n * back control and title lead, the active view's `toolbar` fills the zones,\n * and `toolbarConfig` supplies defaults. A single-pane\n * layout is a `NavStack` with one entry. See `docs/23-app-layouts.md` §3.1.\n */\nexport function NavStack({\n id,\n label,\n views,\n backLabel = 'Back',\n backIcon,\n backText,\n toolbarConfig = {},\n panelToggle,\n hideToolbar = false,\n bottomToolbar,\n separator = 'auto',\n chromeDividers = 'scroll',\n chromePresentation = 'docked',\n bottomToolbarPresentation = 'docked',\n scrollEdge = 'none',\n scrollEdgeDistance,\n background,\n tint,\n scheme,\n className = '',\n slot,\n rootAttributes = {},\n}: NavStackProps) {\n const tinted = surfaceTintAttributes(tint, scheme);\n const topIndex = views.length - 1;\n const top = views[topIndex];\n const topToolbar = top?.toolbar;\n const bottom = top?.bottomToolbar ?? bottomToolbar;\n const canPop = views.length > 1;\n const topDensity = topToolbar?.density ?? toolbarConfig.density;\n // With a back control, the title centers on the bar (iOS-style) unless the\n // view owns the center zone; at the root it leads and fills, left-aligned.\n const centerTitle = canPop && topToolbar?.center === undefined;\n const title = (\n <ToolbarText\n text={topToolbar?.title ?? ''}\n size={\n topToolbar?.titleSize ??\n toolbarConfig.titleSize ??\n (canPop ? 'large' : 'xlarge')\n }\n headingLevel={topToolbar?.headingLevel ?? toolbarConfig.headingLevel}\n fill={!centerTitle}\n />\n );\n return (\n <section\n {...filterDataAttributes(rootAttributes, NAV_STACK_PROTECTED)}\n class={`kui-nav-stack ${tinted.className} ${className}`\n .replace(/\\s+/g, ' ')\n .trim()}\n id={id}\n data-component=\"nav-stack\"\n data-nav-stack-id={id}\n data-depth={String(views.length)}\n data-separator={separator}\n data-chrome-dividers={\n chromeDividers === 'always' || chromeDividers === 'none'\n ? chromeDividers\n : undefined\n }\n data-chrome-presentation={\n chromePresentation !== 'docked' && !hideToolbar ? 'overlay' : undefined\n }\n data-chrome-material={\n chromePresentation === 'clear' && !hideToolbar ? 'clear' : undefined\n }\n data-bottom-toolbar-presentation={\n bottomToolbarPresentation !== 'docked' ? 'overlay' : undefined\n }\n data-bottom-toolbar-material={\n bottomToolbarPresentation === 'clear' ? 'clear' : undefined\n }\n {...scrollEdgeAttributes(\n scrollEdge,\n scrollEdgeDistance,\n (chromePresentation === 'clear' && !hideToolbar) ||\n bottomToolbarPresentation === 'clear',\n )}\n data-background={background === undefined ? undefined : ''}\n data-kui-tint={tinted['data-kui-tint']}\n data-kui-tint-accent={tinted['data-kui-tint-accent']}\n data-kui-scheme={tinted['data-kui-scheme']}\n style={joinStyles(\n background === undefined\n ? undefined\n : `--_kui-nav-stack-background:${background}`,\n tinted.style,\n )}\n aria-label={label}\n slot={slot}\n >\n {!hideToolbar && (\n <div class=\"kui-nav-stack__chrome\" data-nav-stack-chrome>\n <Toolbar\n label={topToolbar?.label ?? toolbarConfig.label}\n density={topDensity}\n dividerSides={\n topToolbar?.dividerSides ?? toolbarConfig.dividerSides\n }\n centerAlign={\n centerTitle\n ? 'balanced'\n : (topToolbar?.centerAlign ?? toolbarConfig.centerAlign)\n }\n responsive={topToolbar?.responsive ?? toolbarConfig.responsive}\n responsiveAt={\n topToolbar?.responsiveAt ?? toolbarConfig.responsiveAt\n }\n safeAreaEdges={\n topToolbar?.safeAreaEdges ??\n toolbarConfig.safeAreaEdges ??\n DEFAULT_SAFE_AREA_EDGES\n }\n leading={\n <>\n {canPop && (\n <ToolbarControlGroup\n content={backText ? 'mixed' : 'icon'}\n size={topDensity === 'compact' ? 'compact' : 'default'}\n material={\n chromePresentation === 'clear' ? 'glass' : undefined\n }\n single\n >\n <button\n type=\"button\"\n class=\"kui-nav-stack__back\"\n data-nav-back\n aria-label={backText ? undefined : backLabel}\n >\n {backIcon ?? (\n <LucideIcon\n icon={ChevronLeft}\n name=\"chevron-left\"\n className=\"kui-nav-stack__back-icon\"\n />\n )}\n {backText ? <span>{backText}</span> : null}\n </button>\n </ToolbarControlGroup>\n )}\n {topToolbar?.leading}\n {centerTitle ? null : title}\n </>\n }\n center={centerTitle ? title : topToolbar?.center}\n trailing={\n <>\n {topToolbar?.trailing}\n {panelToggle}\n </>\n }\n />\n </div>\n )}\n <div class=\"kui-nav-stack__viewport\" data-nav-stack-viewport>\n {views.map((view, index) => (\n <article\n class=\"kui-nav-stack__view\"\n data-key={view.key}\n data-nav-key={view.key}\n data-nav-active={String(index === topIndex)}\n aria-hidden={String(index !== topIndex)}\n >\n {view.pane ||\n view.header !== undefined ||\n view.footer !== undefined ? (\n <Pane\n {...paneConfigProps(view.pane)}\n header={\n view.header === undefined ? undefined : (\n <div data-nav-stack-header>\n {chromeList(view.header, view.headerList)}\n </div>\n )\n }\n footer={\n view.footer === undefined ? undefined : (\n <div data-nav-stack-footer>\n {chromeList(view.footer, view.footerList)}\n </div>\n )\n }\n >\n {view.content}\n </Pane>\n ) : (\n view.content\n )}\n </article>\n ))}\n </div>\n {bottom && (\n <footer class=\"kui-nav-stack__bottom\" data-nav-stack-bottom>\n <Toolbar\n position=\"footer\"\n label={bottom.label}\n density={bottom.density}\n dividerSides={bottom.dividerSides}\n centerAlign={bottom.centerAlign}\n responsive={bottom.responsive}\n responsiveAt={bottom.responsiveAt}\n safeAreaEdges={\n bottom.safeAreaEdges ?? DEFAULT_BOTTOM_SAFE_AREA_EDGES\n }\n leading={bottom.leading}\n center={bottom.center}\n trailing={bottom.trailing}\n />\n </footer>\n )}\n </section>\n );\n}\n"]}
@@ -1,12 +1,12 @@
1
1
  import { WORKBENCH_MAIN_MIN_SIZE, WORKBENCH_MAIN_MIN_HEIGHT, workbenchRegionId, WORKBENCH_RESIZE_DEFAULTS } from './chunk-S4ZGTDSG.js';
2
- import { NavStack } from './chunk-F3PZGFEA.js';
2
+ import { NavStack } from './chunk-6OT7FOSA.js';
3
3
  import { clampRegionSize, ResizeGrip } from './chunk-Q2CLQ3IJ.js';
4
4
  import { FloatingToolbar } from './chunk-E7Q6UNCB.js';
5
- import { panelToggleGroup, groupSizeFor, composedPanelBody, relocatedPanelGroups } from './chunk-3JOEJT2Z.js';
5
+ import { panelToggleGroup, groupSizeFor, composedPanelBody, relocatedPanelGroups } from './chunk-NHQOX7T4.js';
6
6
  import { paneConfigProps } from './chunk-JG4ONAOI.js';
7
- import { Toolbar } from './chunk-SWXWLSUD.js';
8
7
  import { Pane } from './chunk-KACJOE2N.js';
9
8
  import { ensureSunkenTexture } from './chunk-IKS72C6P.js';
9
+ import { Toolbar } from './chunk-SWXWLSUD.js';
10
10
  import { List } from './chunk-WVQDIOD7.js';
11
11
  import { filterDataAttributes } from './chunk-COQI4OMZ.js';
12
12
  import { jsxs, jsx, Fragment } from 'kerfjs/jsx-runtime';
@@ -558,4 +558,4 @@ function Workbench({
558
558
 
559
559
  export { Workbench };
560
560
 
561
- //# sourceMappingURL=chunk-NYNNNEAU.js.map
561
+ //# sourceMappingURL=chunk-KQZIC5CA.js.map