@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
@@ -0,0 +1,151 @@
1
+ /**
2
+ * Why JS: counting checked rows elsewhere on the page, announcing the count and the Escape and
3
+ * action keys need script. No-JS baseline: the bar shows pagination and its page links; rows
4
+ * stay checkable and their form submits as usual.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import { createMixin } from "remix/component";
10
+ import { isListKey } from "../utils/key-target.js";
11
+ import { keepSelection } from "./table-selection.js";
12
+ /** The rows a selection counts: checked item boxes, never the select-all box. */
13
+ const CHECKED_ITEM_SELECTOR = "[data-selection-item]:checked";
14
+ /**
15
+ * Wires the bar around its host (`[data-slot="selection-bar"]`) to the target region; the
16
+ * host itself is the polite live region. The bar shows `data-state="selecting"` while any
17
+ * row is checked, its hidden layer is `inert`, and the count stays on the last non-zero value
18
+ * so the bar fades out still naming what was selected.
19
+ *
20
+ * @example <span role="status" mix={[selectionBarSync({ target: "monitors", selected: "{count} selected", cleared: "Selection cleared" })]} />
21
+ */
22
+ export const selectionBarSync = createMixin((handle) => {
23
+ let options;
24
+ let controller;
25
+ handle.addEventListener("insert", (event) => {
26
+ controller?.abort();
27
+ controller = new AbortController();
28
+ if (options)
29
+ connect(event.node, options, controller.signal);
30
+ });
31
+ handle.addEventListener("remove", () => {
32
+ controller?.abort();
33
+ controller = undefined;
34
+ });
35
+ return (next) => {
36
+ options = next;
37
+ };
38
+ });
39
+ /**
40
+ * Connects `live`'s bar to its target until `signal` aborts.
41
+ *
42
+ * @param live The status element the island renders inside the bar.
43
+ * @param options The target and the strings to show.
44
+ * @param signal Ends every listener once the host leaves the document.
45
+ */
46
+ function connect(live, options, signal) {
47
+ let bar = live.closest('[data-slot="selection-bar"]');
48
+ let doc = live.ownerDocument;
49
+ let target = doc.getElementById(options.target);
50
+ if (!bar || !target)
51
+ return;
52
+ let numbers = new Intl.NumberFormat(options.locale);
53
+ let pagination = bar.querySelector('[data-slot="selection-bar-pagination"]');
54
+ let selection = bar.querySelector('[data-slot="selection-bar-selection"]');
55
+ let summary = bar.querySelector('[data-slot="selection-count"]');
56
+ let previous = 0;
57
+ let pending = false;
58
+ let repaint = new MutationObserver(() => schedule());
59
+ /**
60
+ * Reads the count off the target and moves the bar to match, announcing a change. It runs
61
+ * again whenever a re-render from server HTML puts the bar's own state back.
62
+ */
63
+ let sync = () => {
64
+ pending = false;
65
+ let count = target.querySelectorAll(CHECKED_ITEM_SELECTOR).length;
66
+ let selecting = count > 0;
67
+ bar.dataset.state = selecting ? "selecting" : "idle";
68
+ if (selection)
69
+ selection.inert = !selecting;
70
+ if (pagination)
71
+ pagination.inert = selecting;
72
+ if (selecting && summary)
73
+ summary.textContent = format(options.selected, numbers, count);
74
+ if (count !== previous) {
75
+ live.textContent = selecting ? format(options.selected, numbers, count) : options.cleared;
76
+ }
77
+ previous = count;
78
+ repaint.takeRecords();
79
+ };
80
+ /** Coalesces the burst of `change` events a select-all or range pick dispatches into one sync. */
81
+ let schedule = () => {
82
+ if (pending)
83
+ return;
84
+ pending = true;
85
+ queueMicrotask(sync);
86
+ };
87
+ /** Unchecks every row and select-all box, firing `change` on each as a click would. */
88
+ let clear = () => {
89
+ for (let box of target.querySelectorAll(CHECKED_ITEM_SELECTOR)) {
90
+ box.checked = false;
91
+ box.dispatchEvent(new Event("change", { bubbles: true }));
92
+ }
93
+ for (let all of target.querySelectorAll("[data-selection-all]")) {
94
+ if (!all.checked && !all.indeterminate)
95
+ continue;
96
+ all.checked = false;
97
+ all.indeterminate = false;
98
+ all.dispatchEvent(new Event("change", { bubbles: true }));
99
+ }
100
+ if (bar.contains(doc.activeElement)) {
101
+ target.querySelector("[data-selection-item]")?.focus();
102
+ }
103
+ sync();
104
+ };
105
+ keepSelection(target, signal, schedule);
106
+ repaint.observe(bar, { attributeFilter: ["data-state"] });
107
+ signal.addEventListener("abort", () => repaint.disconnect());
108
+ target.addEventListener("change", schedule, { signal });
109
+ target.addEventListener("reset", () => setTimeout(sync), { signal });
110
+ bar.querySelector('[data-slot="selection-clear"]')?.addEventListener("click", clear, { signal });
111
+ doc.defaultView?.addEventListener("keydown", (event) => {
112
+ if (bar.dataset.state !== "selecting" || event.shiftKey || !isListKey(event))
113
+ return;
114
+ let escape = event.key === "Escape";
115
+ let action = escape ? undefined : actionFor(bar, event.key);
116
+ if (!escape && !action)
117
+ return;
118
+ event.preventDefault();
119
+ event.stopPropagation();
120
+ if (action)
121
+ action.click();
122
+ else
123
+ clear();
124
+ }, { capture: true, signal });
125
+ sync();
126
+ }
127
+ /**
128
+ * The enabled action button in `bar` whose key is `key`, matched without case so the printed
129
+ * capital and the typed lowercase letter agree.
130
+ *
131
+ * @param bar The selection bar.
132
+ * @param key The pressed key.
133
+ * @returns The button to click, if one claims the key.
134
+ */
135
+ function actionFor(bar, key) {
136
+ if (key.length !== 1)
137
+ return undefined;
138
+ let wanted = key.toLowerCase();
139
+ return [...bar.querySelectorAll("button[data-selection-key]")].find((button) => !button.disabled && button.dataset.selectionKey?.toLowerCase() === wanted);
140
+ }
141
+ /**
142
+ * Writes `count` into `template`'s `{count}` placeholder.
143
+ *
144
+ * @param template The string with a `{count}` placeholder.
145
+ * @param numbers The formatter for the reader's locale.
146
+ * @param count How many rows are selected.
147
+ * @returns The finished string.
148
+ */
149
+ function format(template, numbers, count) {
150
+ return template.replaceAll("{count}", numbers.format(count));
151
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Why JS: a split view remembers its panes' widths and collapsed panes in a cookie, resizes
3
+ * from the keyboard, steps through the list with j/k while the list keeps its scroll, and
4
+ * closes its sidebar sheet on navigation; HTML has no declarative wiring for any of these.
5
+ * No-JS baseline: panes render at their remembered layout and every item is a link.
6
+ *
7
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
8
+ * @copyright Sergio Xalambrí 2026
9
+ */
10
+ import type { MixinFactory } from "remix/component";
11
+ import type { SplitViewPane } from "../utils/split-view-layout.js";
12
+ /**
13
+ * Where a split view's j/k answer: `"page"` anywhere in the document, `"view"` only while
14
+ * focus is inside the view, for a view shown on a page whose own keys come first.
15
+ */
16
+ export type SplitViewKeyScope = "page" | "view";
17
+ /** Attribute an app puts on each list link j/k steps through, in list order. */
18
+ export declare const SPLIT_VIEW_ITEM_ATTRIBUTE = "data-split-view-item";
19
+ /**
20
+ * Collapses or restores `pane` and remembers it. The list and the detail never both
21
+ * collapse: collapsing one brings the other back, so the view always shows a record.
22
+ *
23
+ * @param root The split view.
24
+ * @param pane The pane to change.
25
+ * @param collapsed Whether it ends collapsed.
26
+ */
27
+ export declare function setSplitViewCollapsed(root: HTMLElement, pane: SplitViewPane, collapsed: boolean): void;
28
+ /**
29
+ * The split view's part of a divider, beside `resizeHandle()`: measures the panes before a
30
+ * drag starts, remembers the settled layout, moves the divider with ←/→, and collapses or
31
+ * restores the pane before it with Enter. Put it before `resizeHandle()` in `mix`.
32
+ *
33
+ * @param pane The pane before the divider, which Enter collapses.
34
+ * @returns A mixin descriptor for the divider.
35
+ * @example <div data-resizable-handle mix={[splitViewHandle("list"), resizeHandle("horizontal", session)]} />
36
+ */
37
+ export declare const splitViewHandle: MixinFactory<HTMLElement, [pane: SplitViewPane]>;
38
+ /**
39
+ * Collapses or restores a pane from a button. For the sidebar below the wide breakpoint
40
+ * the button's own `popovertarget` opens the sidebar as a sheet instead.
41
+ *
42
+ * @param viewId The split view's id.
43
+ * @param pane The pane the button collapses.
44
+ * @returns A mixin descriptor for the toggle button.
45
+ * @example <button data-pane="sidebar" mix={[splitViewToggle("inbox", "sidebar")]} />
46
+ */
47
+ export declare const splitViewToggle: MixinFactory<HTMLButtonElement, [
48
+ viewId: string,
49
+ pane: SplitViewPane
50
+ ]>;
51
+ /**
52
+ * Binds j/k to step through the list's items while the list keeps its scroll, keeps the
53
+ * list's scroll offset across full page loads, and closes the sidebar sheet when one of
54
+ * its links is followed.
55
+ *
56
+ * @param listId The list pane's id.
57
+ * @param sidebarId The sidebar pane's id, when the view has one.
58
+ * @param scope `"page"` answers j/k anywhere; `"view"` only while focus is inside the view.
59
+ * @returns A mixin descriptor for the view's key marker.
60
+ * @example <span hidden mix={[splitViewKeys("inbox-list", "inbox-sidebar", "page")]} />
61
+ */
62
+ export declare const splitViewKeys: MixinFactory<HTMLElement, [
63
+ listId: string,
64
+ sidebarId: string | undefined,
65
+ scope: SplitViewKeyScope
66
+ ]>;
@@ -0,0 +1,319 @@
1
+ /**
2
+ * Why JS: a split view remembers its panes' widths and collapsed panes in a cookie, resizes
3
+ * from the keyboard, steps through the list with j/k while the list keeps its scroll, and
4
+ * closes its sidebar sheet on navigation; HTML has no declarative wiring for any of these.
5
+ * No-JS baseline: panes render at their remembered layout and every item is a link.
6
+ *
7
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
8
+ * @copyright Sergio Xalambrí 2026
9
+ */
10
+ import { iife } from "@sdxc/iife";
11
+ import { createElement, createMixin, on } from "remix/component";
12
+ import { isClaimedKeystroke } from "../../mixins/keymap.js";
13
+ import { matchesKeyCombo } from "../../utils/key-combo.js";
14
+ import { writeCookie } from "../../utils/write-cookie.js";
15
+ import { ResizeSession } from "../behaviors/resize-session.js";
16
+ import { serializeSplitViewLayout } from "../utils/split-view-layout.js";
17
+ import { ResizableLayoutChangeEvent } from "./resize-handle.js";
18
+ /** Attribute an app puts on each list link j/k steps through, in list order. */
19
+ export const SPLIT_VIEW_ITEM_ATTRIBUTE = "data-split-view-item";
20
+ /** The custom property each resizable pane's share is stored in. */
21
+ const SIZE_PROPERTY = "--ui-resizable-panel-size";
22
+ /** How far one arrow press moves a divider, as a percentage of the view. */
23
+ const KEY_STEP = 2;
24
+ /** Container width, in rem, from which the sidebar is a pane rather than a sheet. */
25
+ const WIDE_REM = 64;
26
+ /** The split view a node belongs to. */
27
+ function rootOf(node) {
28
+ return node.closest("[data-split-view]");
29
+ }
30
+ /** The pane element named `pane` in `root`. */
31
+ function paneOf(root, pane) {
32
+ return root.querySelector(`[data-resizable-group] > [data-pane="${pane}"]`);
33
+ }
34
+ /** Panes `root` has collapsed, read off its `data-collapsed` tokens. */
35
+ function collapsedPanes(root) {
36
+ return (root.dataset.collapsed ?? "").split(" ").filter(Boolean);
37
+ }
38
+ /** A pane's stored share, or `undefined` while it still sits at its default width. */
39
+ function storedSize(root, pane) {
40
+ let raw = paneOf(root, pane)?.style.getPropertyValue(SIZE_PROPERTY).trim() ?? "";
41
+ let value = Number.parseFloat(raw);
42
+ return Number.isFinite(value) ? value : undefined;
43
+ }
44
+ /** Writes the view's current layout to the cookie its root names. */
45
+ function persist(root) {
46
+ let cookie = root.dataset.cookie;
47
+ if (!cookie)
48
+ return;
49
+ let value = serializeSplitViewLayout({
50
+ sidebar: storedSize(root, "sidebar"),
51
+ list: storedSize(root, "list"),
52
+ collapsed: collapsedPanes(root),
53
+ });
54
+ writeCookie(cookie, encodeURIComponent(value));
55
+ }
56
+ /**
57
+ * Collapses or restores `pane` and remembers it. The list and the detail never both
58
+ * collapse: collapsing one brings the other back, so the view always shows a record.
59
+ *
60
+ * @param root The split view.
61
+ * @param pane The pane to change.
62
+ * @param collapsed Whether it ends collapsed.
63
+ */
64
+ export function setSplitViewCollapsed(root, pane, collapsed) {
65
+ let panes = collapsedPanes(root).filter((name) => name !== pane);
66
+ if (collapsed) {
67
+ panes.push(pane);
68
+ if (pane !== "sidebar")
69
+ panes = panes.filter((name) => name === pane || name === "sidebar");
70
+ }
71
+ root.dataset.collapsed = panes.join(" ");
72
+ for (let toggle of root.ownerDocument.querySelectorAll(`[data-split-view-toggle="${root.id}"]`)) {
73
+ let name = toggle.getAttribute("data-pane");
74
+ toggle.setAttribute("aria-expanded", String(!panes.includes(name)));
75
+ }
76
+ persist(root);
77
+ }
78
+ /**
79
+ * Writes every expanded pane's measured share onto it, so a session starts from what the
80
+ * reader sees; a collapsed pane keeps the share it will expand back to.
81
+ *
82
+ * @returns The collapsed panes' stored shares, to put back once the session settles.
83
+ */
84
+ function seedSizes(group, root) {
85
+ let width = group.getBoundingClientRect().width;
86
+ let collapsed = collapsedPanes(root);
87
+ let kept = new Map();
88
+ for (let panel of group.querySelectorAll(":scope > [data-resizable-panel]")) {
89
+ if (collapsed.includes(panel.dataset.pane)) {
90
+ kept.set(panel, panel.style.getPropertyValue(SIZE_PROPERTY));
91
+ continue;
92
+ }
93
+ let share = (panel.getBoundingClientRect().width / width) * 100;
94
+ panel.style.setProperty(SIZE_PROPERTY, `${Math.round(share * 100) / 100}%`);
95
+ }
96
+ return kept;
97
+ }
98
+ /** Puts back the shares {@link seedSizes} kept for collapsed panes. */
99
+ function restoreSizes(kept) {
100
+ for (let [panel, value] of kept) {
101
+ if (value === "")
102
+ panel.style.removeProperty(SIZE_PROPERTY);
103
+ else
104
+ panel.style.setProperty(SIZE_PROPERTY, value);
105
+ }
106
+ }
107
+ /**
108
+ * Moves the divider by `percent` of the view through a one-step session, as a drag of
109
+ * that distance would, then settles the layout the same way a released drag does.
110
+ */
111
+ function nudge(handle, group, percent) {
112
+ let handles = [...group.querySelectorAll(":scope > [data-resizable-handle]")];
113
+ let panels = [...group.querySelectorAll(":scope > [data-resizable-panel]")];
114
+ let groupSize = group.getBoundingClientRect().width;
115
+ let session = new ResizeSession();
116
+ session.start({
117
+ handleIndex: handles.indexOf(handle),
118
+ groupSize,
119
+ pointerPosition: 0,
120
+ panels: panels.map((panel, index) => ({
121
+ id: panel.id || String(index),
122
+ size: Number.parseFloat(panel.style.getPropertyValue(SIZE_PROPERTY)) || 0,
123
+ min: Number(panel.getAttribute("data-resizable-min") ?? 0),
124
+ max: Number(panel.getAttribute("data-resizable-max") ?? 100),
125
+ })),
126
+ });
127
+ session.move((percent / 100) * groupSize);
128
+ session.end();
129
+ session.panels.forEach((panel, index) => panels[index]?.style.setProperty(SIZE_PROPERTY, `${Math.round(panel.size * 100) / 100}%`));
130
+ group.dispatchEvent(new ResizableLayoutChangeEvent(session.panels));
131
+ }
132
+ /**
133
+ * The split view's part of a divider, beside `resizeHandle()`: measures the panes before a
134
+ * drag starts, remembers the settled layout, moves the divider with ←/→, and collapses or
135
+ * restores the pane before it with Enter. Put it before `resizeHandle()` in `mix`.
136
+ *
137
+ * @param pane The pane before the divider, which Enter collapses.
138
+ * @returns A mixin descriptor for the divider.
139
+ * @example <div data-resizable-handle mix={[splitViewHandle("list"), resizeHandle("horizontal", session)]} />
140
+ */
141
+ export const splitViewHandle = createMixin((handle) => {
142
+ let kept = new Map();
143
+ handle.addEventListener("insert", (event) => {
144
+ let group = event.node.parentElement;
145
+ let root = rootOf(event.node);
146
+ if (!group || !root)
147
+ return;
148
+ group.addEventListener("ui:resizable-layout-change", () => {
149
+ restoreSizes(kept);
150
+ kept = new Map();
151
+ persist(root);
152
+ }, { signal: handle.signal });
153
+ });
154
+ return (pane) => createElement(handle.element, {
155
+ mix: [
156
+ on("pointerdown", (event) => {
157
+ let node = event.currentTarget;
158
+ let root = rootOf(node);
159
+ if (node.parentElement && root)
160
+ kept = seedSizes(node.parentElement, root);
161
+ }),
162
+ on("keydown", (event) => {
163
+ let node = event.currentTarget;
164
+ let group = node.parentElement;
165
+ let root = rootOf(node);
166
+ if (!group || !root)
167
+ return;
168
+ if (event.key === "Enter") {
169
+ event.preventDefault();
170
+ setSplitViewCollapsed(root, pane, !collapsedPanes(root).includes(pane));
171
+ return;
172
+ }
173
+ let step = { ArrowLeft: -KEY_STEP, ArrowRight: KEY_STEP }[event.key];
174
+ if (step === undefined)
175
+ return;
176
+ event.preventDefault();
177
+ kept = seedSizes(group, root);
178
+ nudge(node, group, step);
179
+ }),
180
+ ],
181
+ });
182
+ });
183
+ /**
184
+ * Collapses or restores a pane from a button. For the sidebar below the wide breakpoint
185
+ * the button's own `popovertarget` opens the sidebar as a sheet instead.
186
+ *
187
+ * @param viewId The split view's id.
188
+ * @param pane The pane the button collapses.
189
+ * @returns A mixin descriptor for the toggle button.
190
+ * @example <button data-pane="sidebar" mix={[splitViewToggle("inbox", "sidebar")]} />
191
+ */
192
+ export const splitViewToggle = createMixin((handle) => (viewId, pane) => createElement(handle.element, {
193
+ mix: [
194
+ on("click", (event) => {
195
+ let root = event.currentTarget.ownerDocument.getElementById(viewId);
196
+ if (!root)
197
+ return;
198
+ if (pane === "sidebar") {
199
+ let rem = Number.parseFloat(getComputedStyle(root.ownerDocument.documentElement).fontSize);
200
+ if (root.getBoundingClientRect().width < WIDE_REM * rem)
201
+ return;
202
+ }
203
+ event.preventDefault();
204
+ setSplitViewCollapsed(root, pane, !collapsedPanes(root).includes(pane));
205
+ }),
206
+ ],
207
+ }));
208
+ /** Session-storage key the list's scroll offset is kept under across full page loads. */
209
+ function scrollKey(list) {
210
+ return `ui-split-view:${list.id}:${list.ownerDocument.location.pathname}`;
211
+ }
212
+ /**
213
+ * Marks the item `offset` away from the current one as current and follows it. The mark is
214
+ * ahead of the page: the next render's markup takes it over, and when the navigation fails
215
+ * the mark returns to the item the page's markup had marked.
216
+ *
217
+ * @param list The list pane.
218
+ * @param offset How many items to move, negative for up.
219
+ * @param last The previous press, whose mark may still be ahead of its page.
220
+ * @param latest Whether `step` is still the latest press, read when its navigation fails.
221
+ * @returns The press just made, or `undefined` when there was nowhere to go.
222
+ */
223
+ function step(list, offset, last, latest) {
224
+ let items = [
225
+ ...list.querySelectorAll(`a[href][${SPLIT_VIEW_ITEM_ATTRIBUTE}]`),
226
+ ];
227
+ if (items.length === 0)
228
+ return undefined;
229
+ let current = items.findIndex((item) => {
230
+ let value = item.getAttribute("aria-current");
231
+ return value !== null && value !== "false";
232
+ });
233
+ let next = items[current === -1 ? 0 : Math.min(Math.max(current + offset, 0), items.length - 1)];
234
+ if (!next || next === items[current])
235
+ return undefined;
236
+ let marked = items[current];
237
+ let origin = iife(() => {
238
+ if (last?.origin && last.to === marked)
239
+ return last.origin;
240
+ let value = marked?.getAttribute("aria-current");
241
+ return marked && value ? { item: marked, value } : undefined;
242
+ });
243
+ let made = { to: next, origin };
244
+ marked?.removeAttribute("aria-current");
245
+ next.setAttribute("aria-current", "page");
246
+ next.scrollIntoView({ block: "nearest" });
247
+ next.click();
248
+ list.ownerDocument.defaultView?.navigation?.transition?.finished.then(() => {
249
+ made.origin = undefined;
250
+ }, () => {
251
+ if (!latest(made) || next.getAttribute("aria-current") !== "page")
252
+ return;
253
+ next.removeAttribute("aria-current");
254
+ origin?.item.setAttribute("aria-current", origin.value);
255
+ });
256
+ return made;
257
+ }
258
+ /**
259
+ * Binds j/k to step through the list's items while the list keeps its scroll, keeps the
260
+ * list's scroll offset across full page loads, and closes the sidebar sheet when one of
261
+ * its links is followed.
262
+ *
263
+ * @param listId The list pane's id.
264
+ * @param sidebarId The sidebar pane's id, when the view has one.
265
+ * @param scope `"page"` answers j/k anywhere; `"view"` only while focus is inside the view.
266
+ * @returns A mixin descriptor for the view's key marker.
267
+ * @example <span hidden mix={[splitViewKeys("inbox-list", "inbox-sidebar", "page")]} />
268
+ */
269
+ export const splitViewKeys = createMixin((handle) => {
270
+ let ids = { list: "", sidebar: "" };
271
+ let current = "page";
272
+ let last;
273
+ handle.addEventListener("insert", (event) => {
274
+ let document = event.node.ownerDocument;
275
+ let list = document.getElementById(ids.list);
276
+ if (!list)
277
+ return;
278
+ try {
279
+ let saved = sessionStorage.getItem(scrollKey(list));
280
+ if (saved !== null)
281
+ list.scrollTop = Number(saved);
282
+ }
283
+ catch { }
284
+ let save = () => {
285
+ try {
286
+ sessionStorage.setItem(scrollKey(list), String(list.scrollTop));
287
+ }
288
+ catch { }
289
+ };
290
+ list.addEventListener("scroll", save, { signal: handle.signal, passive: true });
291
+ document.addEventListener("keydown", (keystroke) => {
292
+ if (isClaimedKeystroke(keystroke))
293
+ return;
294
+ let target = keystroke.target instanceof Element ? keystroke.target : null;
295
+ if (current === "view" && !(target && rootOf(target) === rootOf(list)))
296
+ return;
297
+ let offset = matchesKeyCombo(keystroke, "j") ? 1 : 0;
298
+ if (matchesKeyCombo(keystroke, "k"))
299
+ offset = -1;
300
+ if (offset === 0)
301
+ return;
302
+ let made = step(list, offset, last, (press) => press === last);
303
+ if (!made)
304
+ return;
305
+ last = made;
306
+ keystroke.preventDefault();
307
+ }, { signal: handle.signal });
308
+ let sidebar = ids.sidebar ? document.getElementById(ids.sidebar) : null;
309
+ sidebar?.addEventListener("click", (click) => {
310
+ let target = click.target instanceof Element ? click.target : null;
311
+ if (target?.closest("a[href]") && sidebar.matches(":popover-open"))
312
+ sidebar.hidePopover();
313
+ }, { signal: handle.signal });
314
+ });
315
+ return (listId, sidebarId, scope) => {
316
+ ids = { list: listId, sidebar: sidebarId ?? "" };
317
+ current = scope;
318
+ };
319
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Why JS: moving one roving Tab stop through a status strip's bars with ←/→, Home and End needs a
3
+ * key listener. No-JS baseline: the server marks the newest bar as the strip's one Tab stop, so
4
+ * the strip costs a single Tab and that bar's tooltip still shows on focus and every bar on hover.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { MixinFactory } from "remix/component";
10
+ /**
11
+ * Keyboard navigation for a status strip's bars: ←/→ step one period, Home and End jump to the
12
+ * oldest and newest, and the Tab stop follows focus, so the bar's tooltip follows too. Apply it
13
+ * to the strip, or to any element inside one, which then walks the enclosing strip.
14
+ *
15
+ * @example <span hidden mix={[statusStripKeys()]} />
16
+ */
17
+ export declare const statusStripKeys: MixinFactory<HTMLElement, []>;
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Why JS: moving one roving Tab stop through a status strip's bars with ←/→, Home and End needs a
3
+ * key listener. No-JS baseline: the server marks the newest bar as the strip's one Tab stop, so
4
+ * the strip costs a single Tab and that bar's tooltip still shows on focus and every bar on hover.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import { createMixin } from "remix/component";
10
+ import { focusItem, setRovingTabindex } from "../../utils/keyboard-nav.js";
11
+ /** The strip the mixin walks when its host sits inside one. */
12
+ const STRIP_SELECTOR = '[data-slot="status-strip"]';
13
+ /** One bar of the strip, oldest first in document order. */
14
+ const BAR_SELECTOR = '[data-slot="status-strip-bars"] > button';
15
+ /**
16
+ * Picks the bar a key moves focus to, or `undefined` for a key the strip leaves alone. Arrows
17
+ * stop at either end, and follow the strip's writing direction so → always moves rightwards.
18
+ *
19
+ * @param key The pressed key.
20
+ * @param index The focused bar's position, oldest first.
21
+ * @param count How many bars the strip draws.
22
+ * @param rtl Whether the strip lays out right to left.
23
+ * @returns The position to focus.
24
+ */
25
+ function targetIndex(key, index, count, rtl) {
26
+ switch (key) {
27
+ case "Home":
28
+ return 0;
29
+ case "End":
30
+ return count - 1;
31
+ case "ArrowRight":
32
+ return Math.max(0, Math.min(count - 1, index + (rtl ? -1 : 1)));
33
+ case "ArrowLeft":
34
+ return Math.max(0, Math.min(count - 1, index + (rtl ? 1 : -1)));
35
+ default:
36
+ return undefined;
37
+ }
38
+ }
39
+ /**
40
+ * Keyboard navigation for a status strip's bars: ←/→ step one period, Home and End jump to the
41
+ * oldest and newest, and the Tab stop follows focus, so the bar's tooltip follows too. Apply it
42
+ * to the strip, or to any element inside one, which then walks the enclosing strip.
43
+ *
44
+ * @example <span hidden mix={[statusStripKeys()]} />
45
+ */
46
+ export const statusStripKeys = createMixin((handle) => {
47
+ let controller;
48
+ handle.addEventListener("insert", (event) => {
49
+ controller?.abort();
50
+ controller = new AbortController();
51
+ let signal = controller.signal;
52
+ let strip = event.node.closest(STRIP_SELECTOR) ?? event.node;
53
+ let bars = () => [...strip.querySelectorAll(BAR_SELECTOR)];
54
+ strip.addEventListener("focusin", (focus) => {
55
+ let all = bars();
56
+ if (focus.target instanceof HTMLElement && all.includes(focus.target)) {
57
+ setRovingTabindex(all, focus.target);
58
+ }
59
+ }, { signal });
60
+ strip.addEventListener("keydown", (key) => {
61
+ if (key.altKey || key.ctrlKey || key.metaKey || key.shiftKey)
62
+ return;
63
+ let all = bars();
64
+ let index = key.target instanceof HTMLElement ? all.indexOf(key.target) : -1;
65
+ if (index === -1)
66
+ return;
67
+ let rtl = getComputedStyle(strip).direction === "rtl";
68
+ let next = targetIndex(key.key, index, all.length, rtl);
69
+ if (next === undefined)
70
+ return;
71
+ key.preventDefault();
72
+ focusItem(all, all[next]);
73
+ }, { signal });
74
+ });
75
+ handle.addEventListener("remove", () => {
76
+ controller?.abort();
77
+ controller = undefined;
78
+ });
79
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Why JS: a form submits only from a button, so script is what saves a switch the moment
3
+ * it flips; this submits the form whenever one of its controls changes.
4
+ * No-JS baseline: the form keeps a Save button for the browser to submit it with.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { MixinFactory } from "remix/component";
10
+ /**
11
+ * Applied to any element inside a form: submits that form through `requestSubmit` on every
12
+ * `change`, so the app's own submit handling (a frame, a fetch) takes the request.
13
+ *
14
+ * @example <span hidden mix={[submitOnChange()]} />
15
+ */
16
+ export declare const submitOnChange: MixinFactory<HTMLElement>;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Why JS: a form submits only from a button, so script is what saves a switch the moment
3
+ * it flips; this submits the form whenever one of its controls changes.
4
+ * No-JS baseline: the form keeps a Save button for the browser to submit it with.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import { createMixin } from "remix/component";
10
+ /**
11
+ * Applied to any element inside a form: submits that form through `requestSubmit` on every
12
+ * `change`, so the app's own submit handling (a frame, a fetch) takes the request.
13
+ *
14
+ * @example <span hidden mix={[submitOnChange()]} />
15
+ */
16
+ export const submitOnChange = createMixin((handle) => {
17
+ let controller;
18
+ handle.addEventListener("insert", (event) => {
19
+ controller?.abort();
20
+ controller = new AbortController();
21
+ let form = event.node.closest("form");
22
+ form?.addEventListener("change", () => form.requestSubmit(), { signal: controller.signal });
23
+ });
24
+ handle.addEventListener("remove", () => {
25
+ controller?.abort();
26
+ controller = undefined;
27
+ });
28
+ });