@sdxc/ui 2026.10.30 → 2026.11.3

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 (549) hide show
  1. package/README.md +187 -113
  2. package/dist/app/app-shell-toggle.d.ts +31 -0
  3. package/dist/app/app-shell-toggle.js +43 -0
  4. package/dist/app/app-shell.d.ts +131 -0
  5. package/dist/app/app-shell.js +542 -0
  6. package/dist/app/auto-refresh.d.ts +104 -0
  7. package/dist/app/auto-refresh.js +126 -0
  8. package/dist/{behaviors → app/behaviors}/drag-session.js +1 -1
  9. package/dist/app/behaviors/refresh-schedule.d.ts +53 -0
  10. package/dist/app/behaviors/refresh-schedule.js +95 -0
  11. package/dist/app/behaviors/shortcuts.d.ts +175 -0
  12. package/dist/app/behaviors/shortcuts.js +401 -0
  13. package/dist/{behaviors → app/behaviors}/toaster.d.ts +31 -2
  14. package/dist/{behaviors → app/behaviors}/toaster.js +63 -6
  15. package/dist/{components → app}/chart.d.ts +63 -9
  16. package/dist/{components → app}/chart.js +222 -40
  17. package/dist/app/command-palette.d.ts +132 -0
  18. package/dist/app/command-palette.js +181 -0
  19. package/dist/{components → app}/context-menu.d.ts +2 -2
  20. package/dist/{components → app}/context-menu.js +8 -7
  21. package/dist/app/danger-zone.d.ts +66 -0
  22. package/dist/app/danger-zone.js +66 -0
  23. package/dist/app/detail-sheet.d.ts +119 -0
  24. package/dist/app/detail-sheet.js +173 -0
  25. package/dist/{components → app}/drop-indicator.js +3 -3
  26. package/dist/{components → app}/drop-zone.d.ts +2 -1
  27. package/dist/{components → app}/drop-zone.js +7 -4
  28. package/dist/app/editor-layout.d.ts +69 -0
  29. package/dist/app/editor-layout.js +143 -0
  30. package/dist/app/empty.d.ts +128 -0
  31. package/dist/app/empty.js +248 -0
  32. package/dist/{components → app}/file-trigger.js +2 -2
  33. package/dist/app/filter-bar.d.ts +169 -0
  34. package/dist/app/filter-bar.js +346 -0
  35. package/dist/{components → app}/grid-list.d.ts +1 -1
  36. package/dist/{components → app}/grid-list.js +16 -18
  37. package/dist/app/index.d.ts +92 -0
  38. package/dist/app/index.js +92 -0
  39. package/dist/app/keyboard-help.d.ts +66 -0
  40. package/dist/app/keyboard-help.js +56 -0
  41. package/dist/{components → app}/menubar.js +5 -7
  42. package/dist/app/mixins/app-shell-controls.d.ts +46 -0
  43. package/dist/app/mixins/app-shell-controls.js +131 -0
  44. package/dist/app/mixins/auto-refresh.d.ts +29 -0
  45. package/dist/app/mixins/auto-refresh.js +66 -0
  46. package/dist/app/mixins/command-palette.d.ts +56 -0
  47. package/dist/app/mixins/command-palette.js +297 -0
  48. package/dist/app/mixins/copy-permalink.d.ts +26 -0
  49. package/dist/app/mixins/copy-permalink.js +54 -0
  50. package/dist/app/mixins/detail-sheet-keys.d.ts +28 -0
  51. package/dist/app/mixins/detail-sheet-keys.js +88 -0
  52. package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
  53. package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
  54. package/dist/app/mixins/escape-link.d.ts +17 -0
  55. package/dist/app/mixins/escape-link.js +35 -0
  56. package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
  57. package/dist/app/mixins/keyboard-help.d.ts +38 -0
  58. package/dist/app/mixins/keyboard-help.js +51 -0
  59. package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
  60. package/dist/app/mixins/optimistic-toggle-sync.d.ts +80 -0
  61. package/dist/app/mixins/optimistic-toggle-sync.js +153 -0
  62. package/dist/app/mixins/range-picker-keys.d.ts +18 -0
  63. package/dist/app/mixins/range-picker-keys.js +94 -0
  64. package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
  65. package/dist/app/mixins/row-navigation.d.ts +85 -0
  66. package/dist/app/mixins/row-navigation.js +208 -0
  67. package/dist/app/mixins/save-bar-sync.d.ts +27 -0
  68. package/dist/app/mixins/save-bar-sync.js +106 -0
  69. package/dist/app/mixins/save-shortcut.d.ts +47 -0
  70. package/dist/app/mixins/save-shortcut.js +101 -0
  71. package/dist/app/mixins/save-status-sync.d.ts +77 -0
  72. package/dist/app/mixins/save-status-sync.js +159 -0
  73. package/dist/app/mixins/selection-bar-sync.d.ts +32 -0
  74. package/dist/app/mixins/selection-bar-sync.js +151 -0
  75. package/dist/app/mixins/split-view.d.ts +66 -0
  76. package/dist/app/mixins/split-view.js +319 -0
  77. package/dist/app/mixins/status-strip-keys.d.ts +17 -0
  78. package/dist/app/mixins/status-strip-keys.js +79 -0
  79. package/dist/app/mixins/submit-on-change.d.ts +16 -0
  80. package/dist/app/mixins/submit-on-change.js +28 -0
  81. package/dist/app/mixins/table-selection.d.ts +39 -0
  82. package/dist/app/mixins/table-selection.js +272 -0
  83. package/dist/app/mixins/toast-queue.d.ts +36 -0
  84. package/dist/app/mixins/toast-queue.js +77 -0
  85. package/dist/app/mixins/toast-stack.d.ts +20 -0
  86. package/dist/app/mixins/toast-stack.js +55 -0
  87. package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
  88. package/dist/app/optimistic-toggle.d.ts +48 -0
  89. package/dist/app/optimistic-toggle.js +38 -0
  90. package/dist/app/page-header.d.ts +71 -0
  91. package/dist/app/page-header.js +249 -0
  92. package/dist/app/range-picker.d.ts +102 -0
  93. package/dist/app/range-picker.js +118 -0
  94. package/dist/{components → app}/resizable.js +7 -10
  95. package/dist/app/save-bar.d.ts +54 -0
  96. package/dist/app/save-bar.js +64 -0
  97. package/dist/app/save-status.d.ts +50 -0
  98. package/dist/app/save-status.js +54 -0
  99. package/dist/app/selection-bar.d.ts +101 -0
  100. package/dist/app/selection-bar.js +157 -0
  101. package/dist/app/settings-layout.d.ts +70 -0
  102. package/dist/app/settings-layout.js +112 -0
  103. package/dist/app/settings-section.d.ts +140 -0
  104. package/dist/app/settings-section.js +182 -0
  105. package/dist/{components → app}/shortcut-list.js +4 -3
  106. package/dist/app/skeleton.d.ts +79 -0
  107. package/dist/app/skeleton.js +185 -0
  108. package/dist/app/sparkline.d.ts +61 -0
  109. package/dist/app/sparkline.js +145 -0
  110. package/dist/app/split-view.d.ts +154 -0
  111. package/dist/app/split-view.js +272 -0
  112. package/dist/app/stat-card.d.ts +109 -0
  113. package/dist/app/stat-card.js +379 -0
  114. package/dist/app/status-strip.d.ts +70 -0
  115. package/dist/app/status-strip.js +155 -0
  116. package/dist/app/styles/action-row.d.ts +41 -0
  117. package/dist/app/styles/action-row.js +59 -0
  118. package/dist/{styles → app/styles}/chart-palette.d.ts +1 -1
  119. package/dist/{styles → app/styles}/graphic-host.d.ts +1 -1
  120. package/dist/{styles → app/styles}/legend-toggle.d.ts +1 -1
  121. package/dist/app/styles/stat-delta.d.ts +29 -0
  122. package/dist/app/styles/stat-delta.js +36 -0
  123. package/dist/app/styles/toast-stack.d.ts +21 -0
  124. package/dist/app/styles/toast-stack.js +54 -0
  125. package/dist/app/table.d.ts +327 -0
  126. package/dist/app/table.js +839 -0
  127. package/dist/{components → app}/toast.d.ts +105 -5
  128. package/dist/{components → app}/toast.js +101 -35
  129. package/dist/app/toasts.d.ts +49 -0
  130. package/dist/app/toasts.js +103 -0
  131. package/dist/{components → app}/toolbar.js +3 -3
  132. package/dist/{components → app}/tree.d.ts +1 -1
  133. package/dist/{components → app}/tree.js +10 -14
  134. package/dist/app/utils/app-shell-cookie.d.ts +21 -0
  135. package/dist/app/utils/app-shell-cookie.js +33 -0
  136. package/dist/{utils → app/utils}/chart-marker-indices.d.ts +9 -5
  137. package/dist/{utils → app/utils}/chart-marker-indices.js +9 -8
  138. package/dist/{utils → app/utils}/chart-path.d.ts +15 -11
  139. package/dist/{utils → app/utils}/chart-path.js +48 -20
  140. package/dist/{utils → app/utils}/chart-scale.js +1 -1
  141. package/dist/app/utils/edited-time.d.ts +19 -0
  142. package/dist/app/utils/edited-time.js +35 -0
  143. package/dist/app/utils/key-target.d.ts +23 -0
  144. package/dist/app/utils/key-target.js +48 -0
  145. package/dist/app/utils/search-params.d.ts +69 -0
  146. package/dist/app/utils/search-params.js +132 -0
  147. package/dist/app/utils/shortcut-groups.d.ts +21 -0
  148. package/dist/app/utils/shortcut-groups.js +53 -0
  149. package/dist/app/utils/split-view-layout.d.ts +48 -0
  150. package/dist/app/utils/split-view-layout.js +71 -0
  151. package/dist/app/view-options.d.ts +99 -0
  152. package/dist/app/view-options.js +182 -0
  153. package/dist/behaviors/index.d.ts +0 -5
  154. package/dist/behaviors/index.js +0 -5
  155. package/dist/{components → chat}/attachment.d.ts +1 -1
  156. package/dist/{components → chat}/attachment.js +17 -23
  157. package/dist/{behaviors → chat/behaviors}/scroll-follow-model.js +1 -1
  158. package/dist/{components → chat}/bubble.js +14 -14
  159. package/dist/chat/index.d.ts +16 -0
  160. package/dist/chat/index.js +16 -0
  161. package/dist/{components → chat}/marker.js +6 -8
  162. package/dist/{components → chat}/message-scroller.d.ts +1 -1
  163. package/dist/{components → chat}/message-scroller.js +12 -18
  164. package/dist/{components → chat}/message.js +10 -12
  165. package/dist/{mixins → chat/mixins}/message-follow.js +2 -2
  166. package/dist/{components → color}/color-area.js +7 -10
  167. package/dist/{components → color}/color-field.js +7 -6
  168. package/dist/{components → color}/color-picker.d.ts +1 -1
  169. package/dist/{components → color}/color-picker.js +9 -12
  170. package/dist/{components → color}/color-slider.js +10 -13
  171. package/dist/{components → color}/color-swatch-picker.js +4 -5
  172. package/dist/{components → color}/color-swatch.js +3 -4
  173. package/dist/{components → color}/color-wheel.js +5 -6
  174. package/dist/color/index.d.ts +21 -0
  175. package/dist/color/index.js +21 -0
  176. package/dist/{mixins → color/mixins}/color-area-drag.d.ts +1 -1
  177. package/dist/{mixins → color/mixins}/color-area-drag.js +2 -2
  178. package/dist/{mixins → color/mixins}/color-preview.js +1 -1
  179. package/dist/{mixins → color/mixins}/color-wheel-drag.js +1 -1
  180. package/dist/{styles → color/styles}/rtl-aware-gradient-direction.d.ts +1 -1
  181. package/dist/components/accordion.d.ts +3 -3
  182. package/dist/components/accordion.js +19 -15
  183. package/dist/components/alert-dialog.js +5 -4
  184. package/dist/components/alert.js +10 -20
  185. package/dist/components/aspect-ratio.js +3 -4
  186. package/dist/components/avatar.d.ts +6 -6
  187. package/dist/components/avatar.js +56 -8
  188. package/dist/components/badge.js +11 -9
  189. package/dist/components/banner.d.ts +61 -0
  190. package/dist/components/banner.js +101 -0
  191. package/dist/components/breadcrumbs.js +7 -9
  192. package/dist/components/button.d.ts +8 -6
  193. package/dist/components/button.js +22 -14
  194. package/dist/components/calendar.js +13 -24
  195. package/dist/components/card.js +9 -11
  196. package/dist/components/carousel.d.ts +1 -1
  197. package/dist/components/carousel.js +12 -20
  198. package/dist/components/checkbox-group.js +3 -3
  199. package/dist/components/checkbox.js +2 -2
  200. package/dist/components/combobox.js +6 -6
  201. package/dist/components/command.js +10 -14
  202. package/dist/components/confirm.d.ts +54 -5
  203. package/dist/components/confirm.js +44 -5
  204. package/dist/components/cta-group.d.ts +30 -14
  205. package/dist/components/cta-group.js +29 -10
  206. package/dist/components/date-field.js +2 -1
  207. package/dist/components/date-picker.js +4 -5
  208. package/dist/components/date-range-picker.js +3 -2
  209. package/dist/components/description.js +2 -1
  210. package/dist/components/dialog-dismiss.d.ts +18 -0
  211. package/dist/components/dialog-dismiss.js +15 -0
  212. package/dist/components/dialog.js +11 -15
  213. package/dist/components/disclosure.js +10 -14
  214. package/dist/components/drawer.js +3 -4
  215. package/dist/components/field-error.js +3 -3
  216. package/dist/components/form.js +2 -1
  217. package/dist/components/group.d.ts +14 -0
  218. package/dist/components/group.js +68 -13
  219. package/dist/components/header.js +3 -3
  220. package/dist/components/heading-scope.js +2 -1
  221. package/dist/components/heading.d.ts +4 -4
  222. package/dist/components/heading.js +7 -7
  223. package/dist/components/highlight.js +17 -12
  224. package/dist/components/hover-card.js +6 -8
  225. package/dist/components/image-placeholder.js +13 -19
  226. package/dist/components/index.d.ts +11 -38
  227. package/dist/components/index.js +11 -38
  228. package/dist/components/input.js +12 -7
  229. package/dist/components/item.js +10 -19
  230. package/dist/components/keyboard.js +3 -3
  231. package/dist/components/label.js +2 -1
  232. package/dist/components/link-button.d.ts +7 -5
  233. package/dist/components/link-button.js +24 -13
  234. package/dist/components/link.js +3 -4
  235. package/dist/components/listbox.js +6 -11
  236. package/dist/components/menu.js +5 -6
  237. package/dist/components/meter.js +5 -6
  238. package/dist/components/modal.js +9 -11
  239. package/dist/components/nav-link.d.ts +1 -1
  240. package/dist/components/nav-link.js +3 -4
  241. package/dist/components/navigation-menu.js +17 -23
  242. package/dist/components/number-field.js +8 -10
  243. package/dist/components/otp-field.js +2 -1
  244. package/dist/components/overlay-arrow.js +3 -4
  245. package/dist/components/pagination.js +8 -10
  246. package/dist/components/popover.js +3 -4
  247. package/dist/components/progress-bar.js +5 -5
  248. package/dist/components/property-list.d.ts +76 -0
  249. package/dist/components/property-list.js +175 -0
  250. package/dist/components/radio-group.js +5 -7
  251. package/dist/components/range-calendar.js +3 -3
  252. package/dist/components/relative-time.d.ts +72 -0
  253. package/dist/components/relative-time.js +45 -0
  254. package/dist/components/scroll-area.js +4 -5
  255. package/dist/components/search-field.js +8 -11
  256. package/dist/components/section.js +2 -1
  257. package/dist/components/select.js +10 -22
  258. package/dist/components/selection-indicator.js +3 -3
  259. package/dist/components/sentinel-row.js +3 -3
  260. package/dist/components/separator.js +3 -3
  261. package/dist/components/shared-element.js +2 -1
  262. package/dist/components/sheet.js +6 -7
  263. package/dist/components/sidebar.js +48 -76
  264. package/dist/components/slider.js +8 -10
  265. package/dist/components/spinner.js +3 -3
  266. package/dist/components/status-dot.d.ts +62 -0
  267. package/dist/components/status-dot.js +99 -0
  268. package/dist/components/switch.js +3 -3
  269. package/dist/components/tabs.js +9 -12
  270. package/dist/components/tag-group.js +7 -9
  271. package/dist/components/text-field.d.ts +17 -2
  272. package/dist/components/text-field.js +14 -4
  273. package/dist/components/text.js +2 -1
  274. package/dist/components/textarea.js +3 -4
  275. package/dist/components/time-field.js +2 -1
  276. package/dist/components/timeline.d.ts +67 -0
  277. package/dist/components/timeline.js +159 -0
  278. package/dist/components/toggle-button.js +5 -7
  279. package/dist/components/tooltip.js +3 -3
  280. package/dist/components/typeset.d.ts +2 -1
  281. package/dist/components/typeset.js +131 -123
  282. package/dist/components/youtube-embed.js +2 -1
  283. package/dist/docs/anchor-heading.d.ts +41 -0
  284. package/dist/docs/anchor-heading.js +62 -0
  285. package/dist/docs/callout.d.ts +46 -0
  286. package/dist/docs/callout.js +61 -0
  287. package/dist/docs/code-block.d.ts +74 -0
  288. package/dist/docs/code-block.js +322 -0
  289. package/dist/docs/code-tabs-sync.d.ts +26 -0
  290. package/dist/docs/code-tabs-sync.js +12 -0
  291. package/dist/docs/code-tabs.d.ts +53 -0
  292. package/dist/docs/code-tabs.js +102 -0
  293. package/dist/docs/copy-button.d.ts +31 -0
  294. package/dist/docs/copy-button.js +49 -0
  295. package/dist/docs/docs-feedback.d.ts +67 -0
  296. package/dist/docs/docs-feedback.js +74 -0
  297. package/dist/docs/docs-footer.d.ts +40 -0
  298. package/dist/docs/docs-footer.js +45 -0
  299. package/dist/docs/docs-hub.d.ts +93 -0
  300. package/dist/docs/docs-hub.js +142 -0
  301. package/dist/docs/docs-layout.d.ts +90 -0
  302. package/dist/docs/docs-layout.js +166 -0
  303. package/dist/docs/docs-nav-tools.d.ts +25 -0
  304. package/dist/docs/docs-nav-tools.js +14 -0
  305. package/dist/docs/docs-nav.d.ts +57 -0
  306. package/dist/docs/docs-nav.js +76 -0
  307. package/dist/docs/docs-not-found.d.ts +68 -0
  308. package/dist/docs/docs-not-found.js +100 -0
  309. package/dist/docs/docs-page-header.d.ts +55 -0
  310. package/dist/docs/docs-page-header.js +54 -0
  311. package/dist/docs/docs-pager.d.ts +50 -0
  312. package/dist/docs/docs-pager.js +75 -0
  313. package/dist/docs/file-tree.d.ts +57 -0
  314. package/dist/docs/file-tree.js +142 -0
  315. package/dist/docs/index.d.ts +38 -0
  316. package/dist/docs/index.js +38 -0
  317. package/dist/docs/install-command.d.ts +54 -0
  318. package/dist/docs/install-command.js +33 -0
  319. package/dist/docs/mixins/code-tabs-sync.d.ts +47 -0
  320. package/dist/docs/mixins/code-tabs-sync.js +137 -0
  321. package/dist/docs/mixins/copy-feedback.d.ts +25 -0
  322. package/dist/docs/mixins/copy-feedback.js +49 -0
  323. package/dist/docs/mixins/copy-from-url.d.ts +27 -0
  324. package/dist/docs/mixins/copy-from-url.js +95 -0
  325. package/dist/docs/mixins/docs-nav-tools.d.ts +27 -0
  326. package/dist/docs/mixins/docs-nav-tools.js +124 -0
  327. package/dist/docs/mixins/toc-spy.d.ts +30 -0
  328. package/dist/docs/mixins/toc-spy.js +165 -0
  329. package/dist/docs/next-steps.d.ts +45 -0
  330. package/dist/docs/next-steps.js +80 -0
  331. package/dist/docs/page-actions.d.ts +77 -0
  332. package/dist/docs/page-actions.js +78 -0
  333. package/dist/docs/plan-notice.d.ts +28 -0
  334. package/dist/docs/plan-notice.js +33 -0
  335. package/dist/docs/props-table.d.ts +64 -0
  336. package/dist/docs/props-table.js +147 -0
  337. package/dist/docs/steps.d.ts +51 -0
  338. package/dist/docs/steps.js +112 -0
  339. package/dist/docs/table-of-contents.d.ts +49 -0
  340. package/dist/docs/table-of-contents.js +139 -0
  341. package/dist/docs/ui-label.d.ts +51 -0
  342. package/dist/docs/ui-label.js +64 -0
  343. package/dist/docs/utils/docs-tree.d.ts +81 -0
  344. package/dist/docs/utils/docs-tree.js +57 -0
  345. package/dist/docs/utils/reveal-in-scroller.d.ts +19 -0
  346. package/dist/docs/utils/reveal-in-scroller.js +43 -0
  347. package/dist/landing/accent-text.d.ts +47 -0
  348. package/dist/landing/accent-text.js +107 -0
  349. package/dist/landing/animations/entrance.d.ts +40 -0
  350. package/dist/landing/animations/entrance.js +52 -0
  351. package/dist/landing/announcement-chip.d.ts +45 -0
  352. package/dist/landing/announcement-chip.js +36 -0
  353. package/dist/landing/author-band.d.ts +78 -0
  354. package/dist/landing/author-band.js +190 -0
  355. package/dist/landing/bento.d.ts +99 -0
  356. package/dist/landing/bento.js +138 -0
  357. package/dist/landing/changelog-strip.d.ts +74 -0
  358. package/dist/landing/changelog-strip.js +201 -0
  359. package/dist/{patterns → landing}/check-row.js +5 -7
  360. package/dist/{patterns → landing}/closing-cta.d.ts +4 -4
  361. package/dist/{patterns → landing}/closing-cta.js +8 -8
  362. package/dist/landing/code-stage.d.ts +93 -0
  363. package/dist/landing/code-stage.js +434 -0
  364. package/dist/landing/crosshair.d.ts +44 -0
  365. package/dist/landing/crosshair.js +48 -0
  366. package/dist/landing/curriculum.d.ts +79 -0
  367. package/dist/landing/curriculum.js +194 -0
  368. package/dist/landing/drawn-chart.d.ts +74 -0
  369. package/dist/landing/drawn-chart.js +377 -0
  370. package/dist/landing/event-ticker.d.ts +71 -0
  371. package/dist/landing/event-ticker.js +331 -0
  372. package/dist/landing/fan-out-diagram.d.ts +70 -0
  373. package/dist/landing/fan-out-diagram.js +481 -0
  374. package/dist/{patterns → landing}/faq-band.d.ts +5 -5
  375. package/dist/{patterns → landing}/faq-band.js +13 -14
  376. package/dist/landing/feature-band.d.ts +108 -0
  377. package/dist/landing/feature-band.js +67 -0
  378. package/dist/landing/feature.d.ts +148 -0
  379. package/dist/landing/feature.js +219 -0
  380. package/dist/landing/flow-diagram.d.ts +62 -0
  381. package/dist/landing/flow-diagram.js +240 -0
  382. package/dist/{patterns → landing}/icon-well.d.ts +17 -7
  383. package/dist/landing/icon-well.js +31 -0
  384. package/dist/landing/index.d.ts +52 -0
  385. package/dist/landing/index.js +52 -0
  386. package/dist/{patterns → landing}/install-tabs.js +4 -5
  387. package/dist/landing/landing-header.d.ts +103 -0
  388. package/dist/landing/landing-header.js +110 -0
  389. package/dist/landing/landing-hero.d.ts +119 -0
  390. package/dist/landing/landing-hero.js +172 -0
  391. package/dist/{components/marketing-section.d.ts → landing/landing-section.d.ts} +38 -15
  392. package/dist/landing/landing-section.js +183 -0
  393. package/dist/landing/logo-cloud.d.ts +56 -0
  394. package/dist/landing/logo-cloud.js +160 -0
  395. package/dist/landing/logo-sentence.d.ts +38 -0
  396. package/dist/landing/logo-sentence.js +51 -0
  397. package/dist/landing/marquee.d.ts +44 -0
  398. package/dist/landing/marquee.js +97 -0
  399. package/dist/landing/motion-loop.d.ts +43 -0
  400. package/dist/landing/motion-loop.js +42 -0
  401. package/dist/landing/pricing-band.d.ts +94 -0
  402. package/dist/landing/pricing-band.js +151 -0
  403. package/dist/landing/product-frame.d.ts +108 -0
  404. package/dist/landing/product-frame.js +202 -0
  405. package/dist/{patterns → landing}/proof-strip.d.ts +4 -4
  406. package/dist/{patterns → landing}/proof-strip.js +3 -3
  407. package/dist/landing/rails.d.ts +45 -0
  408. package/dist/landing/rails.js +69 -0
  409. package/dist/landing/rotating-text.d.ts +44 -0
  410. package/dist/landing/rotating-text.js +67 -0
  411. package/dist/landing/segmented-stage.d.ts +75 -0
  412. package/dist/landing/segmented-stage.js +141 -0
  413. package/dist/landing/sequence-diagram.d.ts +65 -0
  414. package/dist/landing/sequence-diagram.js +348 -0
  415. package/dist/landing/site-footer.d.ts +100 -0
  416. package/dist/landing/site-footer.js +274 -0
  417. package/dist/landing/site-header.d.ts +126 -0
  418. package/dist/landing/site-header.js +595 -0
  419. package/dist/{components → landing}/split.d.ts +12 -5
  420. package/dist/{components → landing}/split.js +26 -18
  421. package/dist/landing/sponsor-wall.d.ts +81 -0
  422. package/dist/landing/sponsor-wall.js +241 -0
  423. package/dist/{components → landing}/stat-strip.d.ts +31 -7
  424. package/dist/landing/stat-strip.js +105 -0
  425. package/dist/landing/step-list.d.ts +73 -0
  426. package/dist/landing/step-list.js +182 -0
  427. package/dist/landing/styles/card-grid.d.ts +115 -0
  428. package/dist/landing/styles/card-grid.js +295 -0
  429. package/dist/{patterns → landing}/tabbed-stage.d.ts +26 -8
  430. package/dist/landing/tabbed-stage.js +233 -0
  431. package/dist/landing/testimonial-band.d.ts +110 -0
  432. package/dist/landing/testimonial-band.js +164 -0
  433. package/dist/landing/typed-terminal.d.ts +62 -0
  434. package/dist/landing/typed-terminal.js +233 -0
  435. package/dist/landing/utils/pause-toggle.d.ts +37 -0
  436. package/dist/landing/utils/pause-toggle.js +71 -0
  437. package/dist/mixins/confirm-phrase.d.ts +19 -0
  438. package/dist/mixins/confirm-phrase.js +56 -0
  439. package/dist/mixins/copy-to-clipboard.d.ts +6 -0
  440. package/dist/mixins/copy-to-clipboard.js +17 -1
  441. package/dist/mixins/dialog-dismiss.d.ts +21 -0
  442. package/dist/mixins/dialog-dismiss.js +62 -0
  443. package/dist/mixins/index.d.ts +4 -15
  444. package/dist/mixins/index.js +4 -15
  445. package/dist/mixins/viewer-time.d.ts +20 -0
  446. package/dist/mixins/viewer-time.js +40 -0
  447. package/dist/styles/index.d.ts +3 -5
  448. package/dist/styles/index.js +3 -5
  449. package/dist/styles/landing.d.ts +200 -0
  450. package/dist/styles/landing.js +516 -0
  451. package/dist/styles/segmented-control.d.ts +49 -0
  452. package/dist/styles/segmented-control.js +71 -0
  453. package/dist/styles/surface-control.d.ts +18 -0
  454. package/dist/styles/surface-control.js +31 -0
  455. package/dist/test/table.d.ts +65 -0
  456. package/dist/test/table.js +108 -0
  457. package/dist/utils/eyebrow.d.ts +39 -0
  458. package/dist/utils/eyebrow.js +21 -0
  459. package/dist/utils/index.d.ts +2 -5
  460. package/dist/utils/index.js +2 -5
  461. package/dist/utils/relative-time.d.ts +44 -0
  462. package/dist/utils/relative-time.js +69 -0
  463. package/package.json +16 -6
  464. package/src/theme.css +87 -22
  465. package/dist/components/empty.d.ts +0 -91
  466. package/dist/components/empty.js +0 -151
  467. package/dist/components/feature.d.ts +0 -102
  468. package/dist/components/feature.js +0 -150
  469. package/dist/components/logo-cloud.d.ts +0 -42
  470. package/dist/components/logo-cloud.js +0 -41
  471. package/dist/components/marketing-header.d.ts +0 -71
  472. package/dist/components/marketing-header.js +0 -81
  473. package/dist/components/marketing-section.js +0 -117
  474. package/dist/components/skeleton.d.ts +0 -36
  475. package/dist/components/skeleton.js +0 -38
  476. package/dist/components/stat-strip.js +0 -65
  477. package/dist/components/table.d.ts +0 -152
  478. package/dist/components/table.js +0 -238
  479. package/dist/patterns/accent-text.d.ts +0 -30
  480. package/dist/patterns/accent-text.js +0 -17
  481. package/dist/patterns/announcement-chip.d.ts +0 -41
  482. package/dist/patterns/announcement-chip.js +0 -49
  483. package/dist/patterns/bento.d.ts +0 -68
  484. package/dist/patterns/bento.js +0 -94
  485. package/dist/patterns/code-stage.d.ts +0 -63
  486. package/dist/patterns/code-stage.js +0 -82
  487. package/dist/patterns/feature-band.d.ts +0 -85
  488. package/dist/patterns/feature-band.js +0 -50
  489. package/dist/patterns/icon-well.js +0 -38
  490. package/dist/patterns/index.d.ts +0 -23
  491. package/dist/patterns/index.js +0 -23
  492. package/dist/patterns/landing-hero.d.ts +0 -93
  493. package/dist/patterns/landing-hero.js +0 -126
  494. package/dist/patterns/product-frame.d.ts +0 -60
  495. package/dist/patterns/product-frame.js +0 -70
  496. package/dist/patterns/step-list.d.ts +0 -47
  497. package/dist/patterns/step-list.js +0 -85
  498. package/dist/patterns/tabbed-stage.js +0 -77
  499. package/dist/styles/marketing.d.ts +0 -120
  500. package/dist/styles/marketing.js +0 -225
  501. package/dist/utils/semantic-color-panel.d.ts +0 -35
  502. package/dist/utils/semantic-color-panel.js +0 -28
  503. /package/dist/{behaviors → app/behaviors}/drag-session.d.ts +0 -0
  504. /package/dist/{behaviors → app/behaviors}/resize-session.d.ts +0 -0
  505. /package/dist/{behaviors → app/behaviors}/resize-session.js +0 -0
  506. /package/dist/{behaviors → app/behaviors}/selection-model.d.ts +0 -0
  507. /package/dist/{behaviors → app/behaviors}/selection-model.js +0 -0
  508. /package/dist/{components → app}/drop-indicator.d.ts +0 -0
  509. /package/dist/{components → app}/file-trigger.d.ts +0 -0
  510. /package/dist/{components → app}/menubar.d.ts +0 -0
  511. /package/dist/{mixins → app/mixins}/chart-tooltip.d.ts +0 -0
  512. /package/dist/{mixins → app/mixins}/chart-tooltip.js +0 -0
  513. /package/dist/{mixins → app/mixins}/context-menu.d.ts +0 -0
  514. /package/dist/{mixins → app/mixins}/context-menu.js +0 -0
  515. /package/dist/{mixins → app/mixins}/drag-reorder.d.ts +0 -0
  516. /package/dist/{mixins → app/mixins}/drop-zone.d.ts +0 -0
  517. /package/dist/{mixins → app/mixins}/grid-list-keys.d.ts +0 -0
  518. /package/dist/{mixins → app/mixins}/menubar-keys.d.ts +0 -0
  519. /package/dist/{mixins → app/mixins}/resize-handle.d.ts +0 -0
  520. /package/dist/{mixins/treeKeys.d.ts → app/mixins/tree-keys.d.ts} +0 -0
  521. /package/dist/{components → app}/resizable.d.ts +0 -0
  522. /package/dist/{components → app}/shortcut-list.d.ts +0 -0
  523. /package/dist/{styles → app/styles}/chart-palette.js +0 -0
  524. /package/dist/{styles → app/styles}/graphic-host.js +0 -0
  525. /package/dist/{styles → app/styles}/legend-toggle.js +0 -0
  526. /package/dist/{components → app}/toolbar.d.ts +0 -0
  527. /package/dist/{utils → app/utils}/chart-scale.d.ts +0 -0
  528. /package/dist/{behaviors → chat/behaviors}/scroll-follow-model.d.ts +0 -0
  529. /package/dist/{components → chat}/bubble.d.ts +0 -0
  530. /package/dist/{components → chat}/marker.d.ts +0 -0
  531. /package/dist/{components → chat}/message.d.ts +0 -0
  532. /package/dist/{mixins → chat/mixins}/attachment-trigger.d.ts +0 -0
  533. /package/dist/{mixins → chat/mixins}/attachment-trigger.js +0 -0
  534. /package/dist/{mixins → chat/mixins}/message-follow.d.ts +0 -0
  535. /package/dist/{components → color}/color-area.d.ts +0 -0
  536. /package/dist/{components → color}/color-field.d.ts +0 -0
  537. /package/dist/{components → color}/color-slider.d.ts +0 -0
  538. /package/dist/{components → color}/color-swatch-picker.d.ts +0 -0
  539. /package/dist/{components → color}/color-swatch.d.ts +0 -0
  540. /package/dist/{components → color}/color-wheel.d.ts +0 -0
  541. /package/dist/{mixins → color/mixins}/color-channel-sync.d.ts +0 -0
  542. /package/dist/{mixins → color/mixins}/color-channel-sync.js +0 -0
  543. /package/dist/{mixins → color/mixins}/color-preview.d.ts +0 -0
  544. /package/dist/{mixins → color/mixins}/color-wheel-drag.d.ts +0 -0
  545. /package/dist/{styles → color/styles}/rtl-aware-gradient-direction.js +0 -0
  546. /package/dist/{utils → color/utils}/hue-spectrum.d.ts +0 -0
  547. /package/dist/{utils → color/utils}/hue-spectrum.js +0 -0
  548. /package/dist/{patterns → landing}/check-row.d.ts +0 -0
  549. /package/dist/{patterns → landing}/install-tabs.d.ts +0 -0
package/README.md CHANGED
@@ -118,18 +118,26 @@ A page that sticks to baseline behavior ships no library JavaScript at all.
118
118
 
119
119
  ## API
120
120
 
121
- | Import | Contains |
122
- | --------------------- | ------------------------------------------------------------------- |
123
- | `@sdxc/ui` | Every component and its compound parts. |
124
- | `@sdxc/ui/<name>` | One component, by its file name: `@sdxc/ui/youtube-embed`. |
125
- | `@sdxc/ui/mixins` | Opt-in DOM behaviors applied through `mix`. |
126
- | `@sdxc/ui/behaviors` | Headless state classes built on `TypedEventTarget`. |
127
- | `@sdxc/ui/animations` | CSS-only motion factories and the `durations`/`easings` tokens. |
128
- | `@sdxc/ui/styles` | Style recipes composed inside a `mix` array. |
129
- | `@sdxc/ui/utils` | Framework-free color, chart, geometry, key and DOM helpers; types. |
130
- | `@sdxc/ui/reset.css` | The base reset in `@layer base`. |
131
- | `@sdxc/ui/theme.css` | The `--ui-*` semantic variables and the `--ui-chart-1`…`8` palette. |
132
-
121
+ | Import | Contains |
122
+ | ---------------------- | ------------------------------------------------------------------- |
123
+ | `@sdxc/ui` | The general components, usable on any page, and their parts. |
124
+ | `@sdxc/ui/<name>` | One general component, by its file name: `@sdxc/ui/youtube-embed`. |
125
+ | `@sdxc/ui/landing` | Landing bands, composition craft and animated visuals. |
126
+ | `@sdxc/ui/docs` | The docs shell, navigation and content blocks. |
127
+ | `@sdxc/ui/chat` | The message log, turns, bubbles, markers and attachments. |
128
+ | `@sdxc/ui/color` | Colour fields, pickers, sliders, swatches, area and wheel. |
129
+ | `@sdxc/ui/app` | Dashboard and workspace components: charts, tables, lists, toasts. |
130
+ | `@sdxc/ui/<ns>/<name>` | One namespace component, by its file name: `@sdxc/ui/docs/steps`. |
131
+ | `@sdxc/ui/mixins` | Opt-in DOM behaviors applied through `mix`. |
132
+ | `@sdxc/ui/behaviors` | Headless state classes built on `TypedEventTarget`. |
133
+ | `@sdxc/ui/animations` | CSS-only motion factories and the `durations`/`easings` tokens. |
134
+ | `@sdxc/ui/styles` | Style recipes composed inside a `mix` array. |
135
+ | `@sdxc/ui/utils` | Framework-free color, chart, geometry, key and DOM helpers; types. |
136
+ | `@sdxc/ui/reset.css` | The base reset in `@layer base`. |
137
+ | `@sdxc/ui/theme.css` | The `--ui-*` semantic variables and the `--ui-chart-1`…`8` palette. |
138
+
139
+ A namespace builds on the general components and never on another namespace, and exports the
140
+ mixins, behaviors and styles only its components use; the shared helper subpaths hold the rest.
133
141
  Every export carries JSDoc, so the editor shows each full signature.
134
142
 
135
143
  ### Component contract
@@ -166,113 +174,206 @@ Every export carries JSDoc, so the editor shows each full signature.
166
174
  and `<progress>` (indeterminate when `value` is unset).
167
175
  - `Select`, `ComboBox`, `SearchField` — a native `<select>` with customizable-select styling, a
168
176
  text input with a `<datalist>`, and a `<search>` landmark.
169
- - `FileTrigger`, `DropZone` — a button opening the file picker, and a drop target, both over a
170
- native file input.
171
177
 
172
178
  ### Components: overlays and menus
173
179
 
174
180
  - `Dialog`, `AlertDialog` — modals on `<dialog>`; the alert variant ignores light dismiss.
175
181
  - `Modal`, `Drawer`, `Sheet` — `Dialog` presets: pop-in, edge-docked, and a fixed side column.
182
+ - `DialogDismiss` — island closing its dialog on a backdrop press or a followed link; load `@sdxc/ui/dialog-dismiss` in the browser entry.
176
183
  - `Confirm` — a complete confirmation dialog; with `form` its confirm button submits a real form.
177
184
  - `Popover`, `Tooltip`, `HoverCard` — an anchored popover, a label shown on hover or focus of the
178
185
  preceding sibling, and a detail panel shown on hover or focus within.
179
- - `Menu`, `Menubar`, `ContextMenu`, `NavigationMenu` — popover menus, a row of menu triggers, a
180
- pointer-positioned menu, and a row of navigation panels.
186
+ - `Menu`, `NavigationMenu` — popover menus, and a row of navigation panels.
181
187
  - `Command` — a searchable list of actions with `.Input`, `.List`, `.Item` and `.Empty`.
182
188
  - `OverlayArrow` — a pointer from a floating surface back to its trigger.
183
189
 
184
- ### Components: navigation and data
190
+ ### Components: navigation and lists
185
191
 
186
192
  - `Button` — `color`, `variant`, `size`, and `isPending` to show a spinner at the same size.
193
+ - `CtaGroup` — a wrapping row of actions; its `size` reaches every `Button` and `LinkButton` in it,
194
+ and `stack="phone"` stacks them on a phone.
187
195
  - `Link`, `NavLink`, `LinkButton` — an inline anchor, a navigation link, and a link styled as a
188
196
  button.
189
197
  - `Tabs` — tabs driven by routing: the `.Tab` pointing at the current page is selected.
190
198
  - `Breadcrumbs`, `Pagination`, `Sidebar` — a trail of parents, a pager landmark, and an app shell
191
199
  rail whose collapse rides a checkbox's `:checked`.
192
200
  - `Disclosure`, `Accordion` — `<details>` sections, alone or stacked.
193
- - `Table` — a table whose `.Column` takes a sort `href` and whose `.LoadMore` row is a link.
194
- - `GridList`, `Tree`, `ListBox` — an interactive row list, nested `<details>`, and selectable rows.
195
- - `SelectionIndicator`, `DropIndicator`, `SentinelRow` — a selection marker, a drop-position bar,
196
- and a muted row holding a loading or "load more" control.
201
+ - `ListBox` — selectable rows sharing one native grouping name.
202
+ - `SelectionIndicator`, `SentinelRow` — a selection marker, and a muted row holding a loading or
203
+ "load more" control.
197
204
 
198
205
  ### Components: feedback
199
206
 
200
- - `Alert`, `Toast` — an inline status panel, and a notification stacked by `Toast.Region`.
207
+ - `Alert` — an inline status panel.
201
208
  - `Badge`, `TagGroup` — a status pill, and a labeled set of removable pills.
202
- - `Skeleton`, `Spinner`, `Empty` — a loading block, a busy indicator, and an empty-state panel.
203
-
204
- ### Components: color
205
-
206
- - `ColorSwatch`, `ColorSwatchPicker` — a color preview, and preset colors as native radios.
207
- - `ColorArea`, `ColorWheel`, `ColorSlider` — saturation/brightness, hue, and single-channel pickers
208
- built from range inputs.
209
- - `ColorField`, `ColorPicker` — a color text field with a live swatch, and that field with a
210
- popover (`ColorPicker.Dialog`) hosting any of the pickers above.
211
-
212
- ### Components: charts and conversation
213
-
214
- - `Chart` — an SVG coordinate space (`width`, `height`, `xDomain`, `yDomain`) for `.Line` and
215
- `.Area` series, plus standalone `.Bar` and `.Pie`, a `.Legend`, and the `.Tooltip` surface that
216
- `chartTooltip()` drives; every point is a labeled, focusable marker.
217
- - `MessageScroller` — a `role="log"` frame with `.Viewport`, `.Content`, `.Item` and a
218
- jump-to-latest `.Button`.
219
- - `Message`, `Bubble`, `Marker`, `Attachment` — a turn, its framed content, an inline event between
220
- turns, and an attached-file card.
209
+ - `Spinner` — a busy indicator.
221
210
 
222
211
  ### Components: layout and content
223
212
 
224
- - `Card`, `Item`, `Group`, `Section`, `Separator`, `Toolbar` — panels, rows, groupings and dividers.
225
- Prefer `Feature` over `Card`/`Empty` for marketing claim cells.
213
+ - `Card`, `Item`, `Group`, `Section`, `Separator` — panels, rows, groupings and dividers. Prefer
214
+ `Feature` from `@sdxc/ui/landing` over `Card` for landing claim cells.
226
215
  - `ImagePlaceholder`, `Avatar`, `Logo` — an image with fallback, and its round and rounded-square
227
216
  presets.
228
- - `AspectRatio`, `Resizable`, `ScrollArea`, `Carousel` — a ratio lock, split panes, a scroll region,
229
- and a scroll-snap slide set.
217
+ - `AspectRatio`, `ScrollArea`, `Carousel` — a ratio lock, a scroll region, and a scroll-snap slide
218
+ set.
230
219
  - `YouTubeEmbed` — a lazy-loaded 16:9 YouTube player (`videoId`, `start?`, `title`) served from
231
220
  `www.youtube-nocookie.com`, which the page's `frame-src` has to allow.
232
221
  - `Text`, `Header`, `Keyboard`, `Typeset` — muted copy, a section label, a `<kbd>`, and typography
233
222
  for rendered markup. `Typeset` sets the body at 18px (`docs`), 20px (`reading`) or 15px (`chat`).
234
- - `ShortcutList` — a `<dl>` pairing actions with key caps.
235
223
  - `Highlight` — `{ text, match }` segments rendered with each match in a `<mark>`.
236
224
  - `HeadingScope`, `Heading` — a heading-depth scope, and the `<h1>`–`<h6>` that reads it.
237
- `Heading` accepts `size="display" | "chapter"` for marketing type recipes.
225
+ `Heading` accepts `size="display" | "chapter"` for landing type recipes.
238
226
  - `SharedElement` — a host with a stable view-transition name across page loads.
239
227
  - `Calendar`, `RangeCalendar`, `DatePicker`, `DateRangePicker` — month grids for a day or a range,
240
228
  and popover pickers around them; `Calendar` without children renders `<input type="date">`.
241
229
 
242
- ### Components: marketing
230
+ ### Landing (`@sdxc/ui/landing`)
243
231
 
244
- - `MarketingSection` — landing band (`tone`, `spacing`, `align`, `ruled`, `variant="frame"`).
245
- - `MarketingHeader` — eyebrow + chapter title + lead (`eyebrowVariant`: `pill` | `mono` | `chip`).
246
- - `CtaGroup` — wrapping primary/secondary actions; pair nav `sm` (~32px) with hero `lg` (~48px).
247
- - `Split`, `Split.Copy`, `Split.Media` — two-column band content (`lean`, optional `checks`).
248
- - `StatStrip`, `StatStrip.Item` — numeric proof strip (`ruled` | `gap`).
249
- - `LogoCloud` — muted adopter marks at `--ui-marketing-logo-height`.
250
- - `Feature`, `Feature.Grid` — claim cells and a hairline-ruled grid (`variant="panel"` optional).
232
+ Landing bands, composition craft and animated visuals. Every piece imports from
233
+ `@sdxc/ui/landing`, or on its own as `@sdxc/ui/landing/<name>`.
251
234
 
252
- ### Patterns (`@sdxc/ui/patterns`)
235
+ **Bands and primitives**
253
236
 
254
- Marketing building blocks and composition craft. Import from `@sdxc/ui/patterns` so product
255
- chrome on the root catalog stays free of landing weight.
237
+ - `LandingSection` — landing band (`tone` incl. `brand` | `gradient`, `spacing`, `align`, `ruled`, `inset`, `variant="frame"`).
238
+ - `LandingHeader` — eyebrow + chapter title + lead (`eyebrowVariant`: `mono` | `quiet` | `soft` | `pill` | `numbered`).
239
+ - `Split`, `Split.Copy`, `Split.Media` — two-column band content (`lean`, optional `checks`).
240
+ - `StatStrip`, `StatStrip.Item` — numeric proof strip (`ruled` | `gap`).
241
+ - `LogoCloud` — adopter marks at `--ui-landing-logo-height` (`layout`: `row` | `spread` | `grid`, `label`, `muted`).
242
+ - `Feature`, `Feature.Grid` — claim cells in a grid of cards or a hairline mosaic (`variant`).
256
243
 
257
244
  **Building blocks**
258
245
 
259
- - `LandingHero` — eyebrow, display title, lead, `CtaGroup`, media (`mediaPlacement`: `end` | `below` | `background`).
246
+ - `LandingHero` — eyebrow, display title, lead, `CtaGroup`, `note`, `proof`, media (`mediaPlacement`: `below` | `end` | `background`).
260
247
  - `ProofStrip` — compact ruled band for `LogoCloud` and/or `StatStrip` children.
261
- - `FeatureBand` — header + `layout`: `split` | `grid` | `steps`.
248
+ - `FeatureBand` — header + `layout`: `split` | `grid` | `steps` | `stage` | `timeline`.
249
+ - `PricingBand`, `PricingBand.Plan` — plan cards; a `featured` plan inverts and leads on phones.
250
+ - `TestimonialBand`, `TestimonialBand.Quote` — quote cards in masonry columns.
262
251
  - `FaqBand` — header + one or two `Accordion` columns (`columns={1|2}`).
263
252
  - `ClosingCta` — inverse/tinted close with title, lead, and actions.
253
+ - `FlowDiagram` — animated run: a `trigger`, `steps` passing along a rail, an `outcome` and `footnote`.
254
+ - `SequenceDiagram` — animated exchange: `actors` on lifelines and `messages` travelling between them in order.
255
+ - `FanOutDiagram` — animated one-to-many: a `source` reaching every one of its `targets` (`direction="in"` for many-to-one).
256
+ - `EventTicker` — animated activity log: `rows` arriving newest first, a status that can flip with `flipTo`.
257
+ - `TypedTerminal` — animated terminal: input `lines` typing themselves out, then their output.
258
+ - `DrawnChart` — animated figure: a `metric` counting up over a `bars` or `line` `series` that draws in.
264
259
 
265
260
  **Composition craft**
266
261
 
267
- - `ProductFrame` — window/device chrome (`lights`, `title`, `url`).
268
- - `CodeStage` / `TerminalPanel` — titled mono panel with optional actions slot.
262
+ - `ProductFrame` — window/device chrome (`stage`, `shadow`, `lights`, `title`, `url`, `footer`), and `designWidth` + `fit` to crop or scale a desktop composition on phones.
263
+ - `CodeStage` / `TerminalPanel` — titled mono panel (`variant`: `code` | `terminal` | `slab`, `language`, `lineNumbers`, `tabs`).
269
264
  - `InstallTabs`, `InstallTabs.Option` — radio dialect strip (no JS).
270
- - `TabbedStage`, `TabbedStage.Item` — pill tabs controlling a media panel (no JS).
265
+ - `TabbedStage`, `TabbedStage.Item` — tabs or a vertical rail controlling a media panel (no JS).
271
266
  - `CheckList`, `CheckRow` — checked claims (`orientation`: `stacked` | `horizontal`).
272
- - `IconWell` — tinted marketing glyph well (`sm` | `md` | `lg`).
273
- - `Bento`, `Bento.Cell` — hairline-ruled equal columns.
274
- - `StepList`, `StepList.Item` — numbered how-it-works steps.
275
- - `AnnouncementChip`, `AccentText` — louder chip; emphasized phrase inside a headline.
267
+ - `IconWell` — landing glyph tile (`tone`: `quiet` | `brand`; `sm` | `md` | `lg`).
268
+ - `Bento`, `Bento.Cell`, `Bento.Media` — cards or a hairline mosaic in equal columns.
269
+ - `StepList`, `StepList.Item` — numbered steps or a `timeline`.
270
+ - `AnnouncementChip`, `AccentText` — announcement label; marked phrase inside a headline (`color` | `swash` | `highlight`).
271
+
272
+ ### Docs (`@sdxc/ui/docs`)
273
+
274
+ The docs shell, navigation and content blocks. Islands load as `@sdxc/ui/docs/<name>`; map each
275
+ one the page uses in the browser entry.
276
+
277
+ - `DocsLayout` — docs shell: docked `sidebar` (drawer below `dock`), article `measure`, heading rail from 75rem, sticky bar with menu and `toc`.
278
+ - `DocsHub` — docs home routing by task: `search`, `topics` chips, larger `start` cards, `sections` with counts, `popular`.
279
+ - `DocsNotFound` — docs 404 body: the missing `path`, a `search` pre-filled by `searchQueryFromPath(path)`, start `links`.
280
+ - `Callout` — static docs aside (`kind`: `note` | `tip` | `warning` | `danger`, translated `label`, optional `title`).
281
+ - `Steps`, `Steps.Item` — numbered procedure with CSS counters and a rail; each `title` is a heading with an optional `id`.
282
+ - `FileTree` — project layout from `nodes`: `<details>` directories, per-type file icons, `highlight` pill, `comment`, `"…"`.
283
+ - `UiLabel`, `UiPath` — a product control's name as a sans chip, and a click path of chips joined by `→`.
284
+ - `PlanNotice` — the one-sentence plan or role box under a help page's title.
285
+ - `CodeBlock` — titled code card: file icon by extension or "Terminal", `highlight`/`add`/`remove` lines, `lineNumbers`, copy without prompts. Tokens read the `--highlight-*` properties of `@sdxc/highlight/styles.css` when the page loads it, and a built-in palette in the page's `color-scheme` otherwise.
286
+ - `CodeTabs` — radio tabs over code; `syncKey` switches every set together and `persist` (`cookie` | `local`) remembers it.
287
+ - `InstallCommand` — `packages` (and `dev`) spelled for npm, pnpm, yarn and bun in `CodeTabs` synced on `package-manager`.
288
+ - `PropsTable` — name/type/default/required/description `rows`; `children` expand in place, rows stack below 36rem.
289
+ - `CopyButton`, `CodeTabsSync` — the islands the above hydrate (`@sdxc/ui/docs/copy-button`, `@sdxc/ui/docs/code-tabs-sync`).
290
+ - `DocsPageHeader` — breadcrumb, `<h1>`, lead, `notice`, and a meta row with `updated` (a `<time>`) and `actions`.
291
+ - `PageActions` — "Copy page" split button over a popover menu of `links`; the copy is the island `@sdxc/ui/docs/page-actions`.
292
+ - `AnchorHeading` — heading with an `id`, a `#` link on hover and focus, `--ui-docs-scroll-margin`, a `:target` flash.
293
+ - `NextSteps` — hand-written "Next steps" heading plus 2–4 links, as `cards` or a `list`.
294
+ - `DocsFeedback` — "Was this helpful?" form posting `helpful`, `page` and `note` without JavaScript; `state="sent"` thanks.
295
+ - `DocsPager` — previous/next whole-card links from `findNeighbours(tree, path, { boundary })`.
296
+ - `DocsNav` — docs sidebar from a `DocsTree`: current page marked and scrolled into view, `<details>` groups, optional title `filter`, `footer`; island `@sdxc/ui/docs/docs-nav-tools`.
297
+ - `TableOfContents` — "On this page" `rail` or sticky `bar`: a marker slides over every section on screen and reaches the last; island `@sdxc/ui/docs/table-of-contents`.
298
+ - `DocsTree`, `flattenDocsTree(tree)`, `findNeighbours(tree, path, { boundary: "section" | "none" })` —
299
+ the sidebar's data, walked in reading order by the pager.
300
+
301
+ | Helper | Host | Adds |
302
+ | ---------------------------- | ------------------------ | --------------------------------------------------------------------- |
303
+ | `tocSpy()` | a `TableOfContents` list | Sections on screen marked, the marker slid over them, the lead named. |
304
+ | `docsNavTools()` | an element in `DocsNav` | The current page scrolled into view; the title filter. |
305
+ | `codeTabsSync(key, persist)` | an element in `CodeTabs` | Every set sharing `key` switches together; the choice is remembered. |
306
+ | `copyFeedback(copiedLabel)` | a copy button | `data-copied` for 2s and the label announced after a copy. |
307
+ | `copyFromUrl(href, failed?)` | a copy button | Fetches `href` and copies its body; dispatches `ui:copy`. |
308
+
309
+ ### Chat (`@sdxc/ui/chat`)
310
+
311
+ - `MessageScroller` — a `role="log"` frame with `.Viewport`, `.Content`, `.Item` and a
312
+ jump-to-latest `.Button`.
313
+ - `Message`, `Bubble`, `Marker`, `Attachment` — a turn, its framed content, an inline event between
314
+ turns, and an attached-file card.
315
+ - `ScrollFollowModel({ pinned? })` — whether the log follows the live edge, visible messages, and
316
+ pending scroll requests.
317
+
318
+ | Helper | Host | Adds |
319
+ | ---------------------- | -------------------------- | ------------------------------------------------ |
320
+ | `messageFollow(model)` | `MessageScroller.Viewport` | Follows new turns through a `ScrollFollowModel`. |
321
+ | `attachmentTrigger()` | `Attachment.Trigger` | The whole card as one activation target. |
322
+
323
+ ### Color (`@sdxc/ui/color`)
324
+
325
+ - `ColorSwatch`, `ColorSwatchPicker` — a color preview, and preset colors as native radios.
326
+ - `ColorArea`, `ColorWheel`, `ColorSlider` — saturation/brightness, hue, and single-channel pickers
327
+ built from range inputs.
328
+ - `ColorField`, `ColorPicker` — a color text field with a live swatch, and that field with a
329
+ popover (`ColorPicker.Dialog`) hosting any of the pickers above.
330
+ - `rtlAwareGradientDirection(propertyName)` and `HUE_GRADIENT_STOPS` — the gradient direction and
331
+ hue stops the sliders and wheel paint.
332
+
333
+ | Helper | Host | Adds |
334
+ | ------------------ | ------------ | --------------------------------------------- |
335
+ | `colorAreaDrag()` | `ColorArea` | A 2D drag across the paired thumbs. |
336
+ | `colorPreview()` | `ColorField` | The swatch updated as the typed value parses. |
337
+ | `colorWheelDrag()` | `ColorWheel` | An angular drag around the ring. |
338
+
339
+ ### App (`@sdxc/ui/app`)
340
+
341
+ Dashboard and workspace components.
342
+
343
+ - `Chart` — an SVG coordinate space (`width`, `height`, `xDomain`, `yDomain`) for `.Line` and
344
+ `.Area` series, plus standalone `.Bar` and `.Pie`, a `.Legend`, and the `.Tooltip` surface that
345
+ `chartTooltip()` drives; every point is a labeled, focusable marker. Its scales and paths are
346
+ `linearScale`, `bandScale`, `ticks`, `linePath`, `areaPath`, `arcPath`, `pieAngles` and
347
+ `computeMarkerIndices`; `chartPalette()` and `legendToggle()` style its series.
348
+ - `Table` — a table whose `.Column` takes a sort `href` and whose `.LoadMore` row is a link.
349
+ - `GridList`, `Tree` — an interactive row list, and nested `<details>`.
350
+ - `DropIndicator` — the bar marking where a dragged row will land.
351
+ - `Toast` — a notification stacked by `Toast.Region`, queued by a `Toaster`.
352
+ - `Skeleton`, `Empty` — a loading block, and an empty-state panel.
353
+ - `Toolbar`, `Menubar`, `ContextMenu` — a row of controls, a row of menu triggers, and a
354
+ pointer-positioned menu.
355
+ - `Resizable` — split panes.
356
+ - `ShortcutList` — a `<dl>` pairing actions with key caps.
357
+ - `FileTrigger`, `DropZone` — a button opening the file picker, and a drop target, both over a
358
+ native file input.
359
+ - `DragSession<Data>()` — the dragged `source`, the `target` under the pointer with its
360
+ `"before" | "after" | "on"` position, and `drop()`.
361
+ - `ResizeSession()` — panel sizes during a resize, cascading into neighbors at their limits.
362
+ - `SelectionModel({ mode?, keys?, selectedKeys? })` — `toggle`, `selectRange`, `selectAll` over a
363
+ key set.
364
+ - `Toaster<Data>({ defaultDuration? })` — `add(data, options?)`, `toasts`, `dismiss(id)`,
365
+ `pause`/`resume`, with each toast's timer owned by the queue.
366
+
367
+ | Helper | Host | Adds |
368
+ | ----------------------------- | --------------------- | ------------------------------------------------------------------ |
369
+ | `chartTooltip()` | a chart series | `Chart.Tooltip` filled from the nearest point to pointer or focus. |
370
+ | `contextMenu(id, options?)` | `ContextMenu.Trigger` | Opens popover `id` at the pointer on right-click or the menu key. |
371
+ | `dragReorder(session)` | `GridList` / `Tree` | Pointer reordering through a `DragSession`. |
372
+ | `dropZone(session)` | `DropZone` | File drag-and-drop through a `DragSession`. |
373
+ | `gridListKeys(model)` | `GridList` | The ARIA grid keyboard pattern over a `SelectionModel`. |
374
+ | `menubarKeys(options?)` | `Menubar` | The ARIA menubar pattern, handing off into each open `Menu`. |
375
+ | `resizeHandle(axis, session)` | `Resizable.Handle` | Pointer resizing through a `ResizeSession`. |
376
+ | `treeKeys(model)` | `Tree` | The ARIA tree pattern over a `SelectionModel`. |
276
377
 
277
378
  ### Component helpers
278
379
 
@@ -292,27 +393,19 @@ Each mixin module documents why it needs JavaScript and what still works without
292
393
  | ------------------------------- | -------------------------- | ----------------------------------------------------------------------- |
293
394
  | `activeDescendantKeys()` | a combobox input | Arrows over its `aria-controls` options; Enter follows the chosen link. |
294
395
  | `ariaChecked()` | checkbox, switch or radio | `aria-checked` kept in step with the live control. |
295
- | `attachmentTrigger()` | `Attachment.Trigger` | The whole card as one activation target. |
296
396
  | `calendarKeys(model)` | `Calendar.Grid` | Arrow/Page/Home/End navigation over a `CalendarModel`. |
297
397
  | `carouselControls()` | `Carousel.Viewport` | `--ui-prev`, `--ui-next` and `--ui-goto` commands. |
298
398
  | `channelSync()` | a `ColorSlider` group | Sibling channel gradients that follow each other. |
299
- | `chartTooltip()` | a chart series | `Chart.Tooltip` filled from the nearest point to pointer or focus. |
300
399
  | `clearField()` | `SearchField` clear button | Empties its `commandfor` input. |
301
- | `colorAreaDrag()` | `ColorArea` | A 2D drag across the paired thumbs. |
302
- | `colorPreview()` | `ColorField` | The swatch updated as the typed value parses. |
303
- | `colorWheelDrag()` | `ColorWheel` | An angular drag around the ring. |
304
400
  | `comboboxFilter()` | `ComboBox.Input` | As-you-type narrowing. |
305
401
  | `commandFilter(model)` | `Command` | Items hidden by a `FilterModel` query. |
306
402
  | `commandKeys(model)` | `Command` | Arrow keys over matches; Enter activates the active item's link/button. |
307
- | `contextMenu(id, options?)` | `ContextMenu.Trigger` | Opens popover `id` at the pointer on right-click or the menu key. |
308
- | `copyToClipboard()` | a button | Copies the text of its `commandfor` target. |
403
+ | `copyToClipboard()` | a button | Copies the text of its `commandfor` target, minus `data-copy-exclude`. |
404
+ | `dialogDismiss()` | an element in a `<dialog>` | Closes the dialog on a backdrop press or a followed link. |
309
405
  | `dismiss(options?)` | an alert or toast | Auto-dismiss countdown paused on hover, plus a `--ui-dismiss` command. |
310
- | `dragReorder(session)` | `GridList` / `Tree` | Pointer reordering through a `DragSession`. |
311
- | `dropZone(session)` | `DropZone` | File drag-and-drop through a `DragSession`. |
312
406
  | `dualRange()` | a two-thumb `Slider` | Thumbs that cannot cross. |
313
407
  | `frameRefresh(options)` | any host in a frame | Its frame reloaded on a schedule or an event, resting while hidden. |
314
408
  | `frameSubmit(options?)` | a `<form>` in a frame | The form posted through its frame, answered in place in one request. |
315
- | `gridListKeys(model)` | `GridList` | The ARIA grid keyboard pattern over a `SelectionModel`. |
316
409
  | `headingLevelFallback(options)` | an island's `HeadingScope` | Reports the page's heading depth to `onLevel` once on attach. |
317
410
  | `hotkey(combo)` | a `<dialog>`/`[popover]` | A document-wide shortcut toggling its host. |
318
411
  | `imageFallback()` | an `Avatar`/`Logo` image | Shows the fallback when the image fails, cached images included. |
@@ -321,18 +414,14 @@ Each mixin module documents why it needs JavaScript and what still works without
321
414
  | `listboxKeys()` | `ListBox` | Arrow, Home/End and typeahead navigation. |
322
415
  | `longPress(options?)` | any element | Fires after a pointer holds still for `duration`. |
323
416
  | `menuKeys(options?)` | `Menu` | The ARIA menu pattern: roving focus, arrows, typeahead. |
324
- | `menubarKeys(options?)` | `Menubar` | The ARIA menubar pattern, handing off into each open `Menu`. |
325
- | `messageFollow(model)` | `MessageScroller.Viewport` | Follows new turns through a `ScrollFollowModel`. |
326
417
  | `mirrorSelectedOption()` | a `<selectedcontent>` | Keeps the customizable select's trigger showing the chosen option. |
327
418
  | `otpSlots()` | an `OtpField` group | Focus moving across slots, and pasted codes split. |
328
419
  | `persist(key)` | `Sidebar` | The collapsed state saved to a cookie, plus a `--ui-toggle` command. |
329
420
  | `pressToggle()` | `ToggleButton` | Flips `aria-pressed` on click. |
330
421
  | `rangePreview(model)` | `RangeCalendar.Grid` | Hover and focus preview of the pending range. |
331
- | `resizeHandle(axis, session)` | `Resizable.Handle` | Pointer resizing through a `ResizeSession`. |
332
422
  | `stepper(options?)` | `NumberField.Group` | Press-and-hold repeat on the step buttons. |
333
423
  | `tabKeys(options?)` | `Tabs.List` | Arrow, Home/End tab activation. |
334
424
  | `themeToggle(options?)` | any host | `--ui-theme-light`/`-dark`/`-system` commands saved to a cookie. |
335
- | `treeKeys(model)` | `Tree` | The ARIA tree pattern over a `SelectionModel`. |
336
425
  | `validate(schema)` | a form control | A `remix/data-schema` check through `setCustomValidity()`. |
337
426
  | `viewTransition()` | a `SharedElement` island | A View Transition across a same-document reload. |
338
427
 
@@ -362,16 +451,7 @@ DOM-free state that dispatches `change`; an island subscribes and re-renders.
362
451
  - `Announcer({ hold? })` — an `aria-live` queue: `announce(text, priority?)`, `current`, `next()`.
363
452
  - `CalendarModel({ focusedDate?, min?, max?, isDateDisabled? })` — the focused day, visible month,
364
453
  and an in-progress range (`beginRange`, `completeRange`).
365
- - `DragSession<Data>()` — the dragged `source`, the `target` under the pointer with its
366
- `"before" | "after" | "on"` position, and `drop()`.
367
454
  - `FilterModel({ options?, query?, match? })` — query, `matches`, and the active match.
368
- - `ResizeSession()` — panel sizes during a resize, cascading into neighbors at their limits.
369
- - `ScrollFollowModel({ pinned? })` — whether the log follows the live edge, visible messages, and
370
- pending scroll requests.
371
- - `SelectionModel({ mode?, keys?, selectedKeys? })` — `toggle`, `selectRange`, `selectAll` over a
372
- key set.
373
- - `Toaster<Data>({ defaultDuration? })` — `add(data, options?)`, `toasts`, `dismiss(id)`,
374
- `pause`/`resume`, with each toast's timer owned by the queue.
375
455
 
376
456
  ### Animations
377
457
 
@@ -391,24 +471,20 @@ opacity fade under reduced motion.
391
471
 
392
472
  Recipes for a `mix` array: `floatingSurface()`, `surfaceInset()`, `hitArea()`, `panelChrome()`,
393
473
  `semanticColorPanel()`, `interactiveTransition()`, `fieldStackLayout()`, `outputCaptionText()`,
394
- `graphicHostStyle()`, `rangeThumbAppearance(sizeVar, borderWidthVar)`,
395
- `rtlAwareGradientDirection(propertyName)`, `chartPalette(property, combinator?)` (one of
396
- `CHART_COLOR_SLOT_COUNT` chart colors from `data-color`) and `legendToggle()`.
397
-
398
- Marketing / landing recipes (same entry): `marketingContainer()`,
399
- `marketingSectionSpace("hero" | "normal" | "compact")`,
400
- `marketingBandTone("plain" | "tinted" | "grid" | "inverse")`, `displayHeading(1 | 2 | 3)`,
401
- `marketingLead()`, `marketingHairline()`, `logoCloudMark()`, `marketingCtaChrome()`. They read
402
- the `--ui-marketing-*` tokens and optional `--ui-font-display` from `theme.css`. Apply
474
+ `rangeThumbAppearance(sizeVar, borderWidthVar)`.
475
+
476
+ Landing recipes (same entry), shared because general components use them too: `landingContainer()`,
477
+ `landingSectionSpace("hero" | "normal" | "compact")`,
478
+ `landingBandTone("plain" | "tinted" | "grid" | "inverse")`, `displayHeading(1 | 2 | 3)`,
479
+ `landingLead()`, `landingHairline()`, `logoCloudMark()`, `landingCtaChrome()`. They read
480
+ the `--ui-landing-*` tokens and optional `--ui-font-display` from `theme.css`. Apply
403
481
  `viewReveal()` from `@sdxc/ui/animations` on band hosts for scroll entry; reduced-motion is
404
- handled there — no separate marketing animation system.
482
+ handled there — no separate landing animation system.
405
483
 
406
484
  ### Utilities
407
485
 
408
486
  - **Color** — `parseColor(input): RGBAColor | null`, `formatHex`, `formatRgb`, `formatHsl`,
409
487
  `rgbToHsl`, `hslToRgb`, `rgbToHsv`, `hsvToRgb`, `clampChannel`, `roundChannel`.
410
- - **Charts** — `linearScale(domain, range)`, `bandScale(domain, range)`, `ticks(domain, count)`,
411
- `linePath`, `areaPath`, `arcPath`, `pieAngles`, `computeMarkerIndices`, `HUE_GRADIENT_STOPS`.
412
488
  - **Geometry** — `normalizedPointerPosition`, `angleFromCenter`, `angleToHue`, `hueToAngle`,
413
489
  `resolveFillPercent`, `FULL_TURN_RADIANS`.
414
490
  - **Keys** — `parseKeyCombo`, `matchesKeyCombo(event, combo)`, `keyComboGlyphs(combo, apple)`,
@@ -420,8 +496,6 @@ handled there — no separate marketing animation system.
420
496
  `DISABLED_SELECTOR`, `DEFAULT_ICON_ARIA_HIDDEN`, `ONE_YEAR_SECONDS`.
421
497
  - **Accessibility checks** — `warnIfNoAccessibleName(props, children, message)` and
422
498
  `warnIfNoAccessibleLabel(props, message)`, development-only warnings.
423
- - **Panels** — `semanticColorPanelStyle(color)`, the border, background and text declarations for
424
- one semantic color.
425
499
 
426
500
  ### Types
427
501
 
@@ -508,8 +582,7 @@ import type { Handle } from "remix/component";
508
582
 
509
583
  import { clientEntry } from "remix/component";
510
584
 
511
- import { Toast } from "@sdxc/ui";
512
- import { Toaster } from "@sdxc/ui/behaviors";
585
+ import { Toast, Toaster } from "@sdxc/ui/app";
513
586
  import { whileLive } from "@sdxc/ui/mixins";
514
587
 
515
588
  export let Toasts = clientEntry("/components/toasts.tsx#Toasts", function Toasts(handle: Handle) {
@@ -589,7 +662,8 @@ import type { Handle } from "remix/component";
589
662
 
590
663
  import { clientEntry } from "remix/component";
591
664
 
592
- import { Button, Modal, ShortcutList } from "@sdxc/ui";
665
+ import { Button, Modal } from "@sdxc/ui";
666
+ import { ShortcutList } from "@sdxc/ui/app";
593
667
  import { Announcer } from "@sdxc/ui/behaviors";
594
668
  import { keymap, whileLive } from "@sdxc/ui/mixins";
595
669
  import { keyComboGlyphs } from "@sdxc/ui/utils";
@@ -659,8 +733,10 @@ import { floatingSurface } from "@sdxc/ui/styles";
659
733
  </div>;
660
734
  ```
661
735
 
662
- To change a declaration the component already sets, override its `--ui-*` variable (as above), use
663
- `style`, or write the rule in a cascade layer declared after `rmx`. When `parts` is not enough,
736
+ A `@sdxc/u` utility in `mix` overrides the component's own utility for the same property:
737
+ `<Text mix={text("xs")}>` renders extra-small text. To change a declaration the component sets
738
+ another way, override its `--ui-*` variable (as above), use `style`, or write the rule in a cascade
739
+ layer declared after `rmx`. When `parts` is not enough,
664
740
  compose the underlying pieces (`Label`, `Input`, `Description`, `FieldError`) directly.
665
741
 
666
742
  ## Pattern: A Chart With A Legend
@@ -673,7 +749,7 @@ import type { Handle } from "remix/component";
673
749
 
674
750
  import { css } from "remix/component";
675
751
 
676
- import { Chart } from "@sdxc/ui";
752
+ import { Chart } from "@sdxc/ui/app";
677
753
 
678
754
  interface Point {
679
755
  x: number;
@@ -720,9 +796,7 @@ import type { Handle } from "remix/component";
720
796
 
721
797
  import { clientEntry, css } from "remix/component";
722
798
 
723
- import { Bubble, Message, MessageScroller } from "@sdxc/ui";
724
- import { ScrollFollowModel } from "@sdxc/ui/behaviors";
725
- import { messageFollow } from "@sdxc/ui/mixins";
799
+ import { Bubble, Message, MessageScroller, ScrollFollowModel, messageFollow } from "@sdxc/ui/chat";
726
800
 
727
801
  interface Turn {
728
802
  id: string;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Island holding an app shell's collapse toggle: a native checkbox in a button-shaped label,
3
+ * whose checked state the shell's styles read to draw the icon rail. Hydrated, it writes the
4
+ * collapse cookie, answers ⌘B, closes the phone sheet on navigation and follows Esc back.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { EntryComponent } from "remix/component";
10
+ import type { AppShellSheetBelow } from "./mixins/app-shell-controls.js";
11
+ /** Prop types for {@link AppShellToggle}. */
12
+ export declare namespace AppShellToggle {
13
+ /** Plain data only, since the props cross into the browser with the island. */
14
+ type Props = {
15
+ /** Whether the sidebar starts as the icon rail, read from the collapse cookie. */
16
+ collapsed: boolean;
17
+ /** The toggle's accessible name, such as "Collapse sidebar". */
18
+ label: string;
19
+ /** The cookie the state is written to. */
20
+ cookieName: string;
21
+ /** The sidebar's id, which the sheet opens and closes by. */
22
+ sidebarId: string;
23
+ /** The width under which the sidebar is a sheet and the toggle hides. @default "48rem" */
24
+ sheetBelow?: AppShellSheetBelow;
25
+ };
26
+ }
27
+ /**
28
+ * Renders the toggle the shell's top bar shows from `sheetBelow`. `AppShell` places it; load
29
+ * `@sdxc/ui/app/app-shell-toggle` in the browser entry so the cookie, ⌘B and Esc work.
30
+ */
31
+ export declare const AppShellToggle: EntryComponent<AppShellToggle.Props>;
@@ -0,0 +1,43 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { PanelLeftIcon } from "@sdxc/icons";
3
+ import { visuallyHidden } from "@sdxc/u/a11y";
4
+ import { bg, fg, outline } from "@sdxc/u/color";
5
+ import { rounded, transition } from "@sdxc/u/effects";
6
+ import { cursor, raw } from "@sdxc/u/general";
7
+ import { items, justify, relative, shrink } from "@sdxc/u/layout";
8
+ import { media } from "@sdxc/u/responsive";
9
+ import { bs, is } from "@sdxc/u/size";
10
+ import { hover, when } from "@sdxc/u/state";
11
+ import { clientEntry } from "remix/component";
12
+ import { hitArea } from "../styles/hit-area.js";
13
+ import { appShellControls, appShellQueries } from "./mixins/app-shell-controls.js";
14
+ /** Where the toggle hides for the sheet when `sheetBelow` is omitted. */
15
+ const DEFAULT_SHEET_BELOW = "48rem";
16
+ /**
17
+ * Renders the toggle the shell's top bar shows from `sheetBelow`. `AppShell` places it; load
18
+ * `@sdxc/ui/app/app-shell-toggle` in the browser entry so the cookie, ⌘B and Esc work.
19
+ */
20
+ export const AppShellToggle = clientEntry("@sdxc/ui/app/app-shell-toggle#AppShellToggle", function AppShellToggle(handle) {
21
+ return () => {
22
+ let { collapsed, label, cookieName, sidebarId, sheetBelow = DEFAULT_SHEET_BELOW, } = handle.props;
23
+ let { docked, sheet } = appShellQueries(sheetBelow);
24
+ return (_jsxs("label", { "data-slot": "app-shell-toggle", mix: [
25
+ relative(),
26
+ media(docked, raw({ display: "inline-flex" })),
27
+ media(sheet, raw({ display: "none" })),
28
+ items("center"),
29
+ justify("center"),
30
+ shrink(0),
31
+ is("2rem"),
32
+ bs("2rem"),
33
+ hitArea(),
34
+ rounded("md"),
35
+ cursor("pointer"),
36
+ fg("neutral.muted"),
37
+ transition("color, background-color"),
38
+ hover([bg("neutral.bg-tint-hover"), fg("neutral.emphasis")]),
39
+ when("&:has(input:focus-visible)", outline({ color: "brand.ring", offset: 2 })),
40
+ when("& > svg", [is("1rem"), bs("1rem")]),
41
+ ], children: [_jsx(PanelLeftIcon, { "aria-hidden": "true" }), _jsx("input", { type: "checkbox", "data-app-shell-collapse": true, defaultChecked: collapsed, "aria-label": label, "aria-keyshortcuts": "Meta+B Control+B", mix: [visuallyHidden(), appShellControls({ cookieName, sidebarId, sheetBelow })] })] }));
42
+ };
43
+ });