@sdxc/ui 2026.10.29 → 2026.11.1

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 (411) hide show
  1. package/README.md +187 -113
  2. package/dist/{behaviors → app/behaviors}/drag-session.js +1 -1
  3. package/dist/{behaviors → app/behaviors}/toaster.js +1 -1
  4. package/dist/{components → app}/chart.d.ts +1 -1
  5. package/dist/{components → app}/chart.js +18 -34
  6. package/dist/{components → app}/context-menu.d.ts +2 -2
  7. package/dist/{components → app}/context-menu.js +8 -7
  8. package/dist/{components → app}/drop-indicator.js +3 -3
  9. package/dist/{components → app}/drop-zone.js +3 -3
  10. package/dist/{components → app}/empty.d.ts +1 -1
  11. package/dist/{components → app}/empty.js +11 -21
  12. package/dist/{components → app}/file-trigger.js +2 -2
  13. package/dist/{components → app}/grid-list.d.ts +1 -1
  14. package/dist/{components → app}/grid-list.js +16 -18
  15. package/dist/app/index.d.ts +41 -0
  16. package/dist/app/index.js +41 -0
  17. package/dist/{components → app}/menubar.js +5 -7
  18. package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
  19. package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
  20. package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
  21. package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
  22. package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
  23. package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
  24. package/dist/{components → app}/resizable.js +7 -10
  25. package/dist/{components → app}/shortcut-list.js +4 -3
  26. package/dist/{components → app}/skeleton.js +3 -3
  27. package/dist/{styles → app/styles}/chart-palette.d.ts +1 -1
  28. package/dist/{styles → app/styles}/graphic-host.d.ts +1 -1
  29. package/dist/{styles → app/styles}/legend-toggle.d.ts +1 -1
  30. package/dist/{components → app}/table.js +12 -15
  31. package/dist/{components → app}/toast.js +18 -24
  32. package/dist/{components → app}/toolbar.js +3 -3
  33. package/dist/{components → app}/tree.d.ts +1 -1
  34. package/dist/{components → app}/tree.js +10 -14
  35. package/dist/{utils → app/utils}/chart-path.d.ts +1 -1
  36. package/dist/{utils → app/utils}/chart-path.js +2 -2
  37. package/dist/{utils → app/utils}/chart-scale.js +1 -1
  38. package/dist/behaviors/index.d.ts +0 -5
  39. package/dist/behaviors/index.js +0 -5
  40. package/dist/{components → chat}/attachment.d.ts +1 -1
  41. package/dist/{components → chat}/attachment.js +17 -23
  42. package/dist/{behaviors → chat/behaviors}/scroll-follow-model.js +1 -1
  43. package/dist/{components → chat}/bubble.js +14 -14
  44. package/dist/chat/index.d.ts +16 -0
  45. package/dist/chat/index.js +16 -0
  46. package/dist/{components → chat}/marker.js +6 -8
  47. package/dist/{components → chat}/message-scroller.d.ts +1 -1
  48. package/dist/{components → chat}/message-scroller.js +12 -18
  49. package/dist/{components → chat}/message.js +10 -12
  50. package/dist/{mixins → chat/mixins}/message-follow.js +2 -2
  51. package/dist/{components → color}/color-area.js +7 -10
  52. package/dist/{components → color}/color-field.js +7 -6
  53. package/dist/{components → color}/color-picker.d.ts +1 -1
  54. package/dist/{components → color}/color-picker.js +9 -12
  55. package/dist/{components → color}/color-slider.js +10 -13
  56. package/dist/{components → color}/color-swatch-picker.js +4 -5
  57. package/dist/{components → color}/color-swatch.js +3 -4
  58. package/dist/{components → color}/color-wheel.js +5 -6
  59. package/dist/color/index.d.ts +21 -0
  60. package/dist/color/index.js +21 -0
  61. package/dist/{mixins → color/mixins}/color-area-drag.d.ts +1 -1
  62. package/dist/{mixins → color/mixins}/color-area-drag.js +2 -2
  63. package/dist/{mixins → color/mixins}/color-preview.js +1 -1
  64. package/dist/{mixins → color/mixins}/color-wheel-drag.js +1 -1
  65. package/dist/{styles → color/styles}/rtl-aware-gradient-direction.d.ts +1 -1
  66. package/dist/components/accordion.d.ts +3 -3
  67. package/dist/components/accordion.js +19 -15
  68. package/dist/components/alert-dialog.js +5 -4
  69. package/dist/components/alert.js +10 -20
  70. package/dist/components/aspect-ratio.js +3 -4
  71. package/dist/components/avatar.d.ts +6 -6
  72. package/dist/components/avatar.js +56 -8
  73. package/dist/components/badge.js +11 -9
  74. package/dist/components/breadcrumbs.js +7 -9
  75. package/dist/components/button.d.ts +8 -6
  76. package/dist/components/button.js +22 -14
  77. package/dist/components/calendar.js +13 -24
  78. package/dist/components/card.js +9 -11
  79. package/dist/components/carousel.d.ts +1 -1
  80. package/dist/components/carousel.js +12 -20
  81. package/dist/components/checkbox-group.js +3 -3
  82. package/dist/components/checkbox.js +2 -2
  83. package/dist/components/combobox.js +6 -6
  84. package/dist/components/command.js +10 -14
  85. package/dist/components/cta-group.d.ts +30 -14
  86. package/dist/components/cta-group.js +29 -10
  87. package/dist/components/date-field.js +2 -1
  88. package/dist/components/date-picker.js +4 -5
  89. package/dist/components/date-range-picker.js +3 -2
  90. package/dist/components/description.js +2 -1
  91. package/dist/components/dialog-dismiss.d.ts +18 -0
  92. package/dist/components/dialog-dismiss.js +15 -0
  93. package/dist/components/dialog.js +11 -15
  94. package/dist/components/disclosure.js +10 -14
  95. package/dist/components/drawer.js +3 -4
  96. package/dist/components/field-error.js +3 -3
  97. package/dist/components/form.js +2 -1
  98. package/dist/components/group.js +3 -3
  99. package/dist/components/header.js +3 -3
  100. package/dist/components/heading-scope.js +2 -1
  101. package/dist/components/heading.d.ts +4 -4
  102. package/dist/components/heading.js +7 -7
  103. package/dist/components/highlight.js +17 -12
  104. package/dist/components/hover-card.js +6 -8
  105. package/dist/components/image-placeholder.js +13 -19
  106. package/dist/components/index.d.ts +6 -38
  107. package/dist/components/index.js +6 -38
  108. package/dist/components/input.js +3 -4
  109. package/dist/components/item.js +10 -19
  110. package/dist/components/keyboard.js +3 -3
  111. package/dist/components/label.js +2 -1
  112. package/dist/components/link-button.d.ts +7 -5
  113. package/dist/components/link-button.js +16 -11
  114. package/dist/components/link.js +3 -4
  115. package/dist/components/listbox.js +6 -11
  116. package/dist/components/menu.js +5 -6
  117. package/dist/components/meter.js +5 -6
  118. package/dist/components/modal.js +9 -11
  119. package/dist/components/nav-link.d.ts +1 -1
  120. package/dist/components/nav-link.js +3 -4
  121. package/dist/components/navigation-menu.js +17 -23
  122. package/dist/components/number-field.js +8 -10
  123. package/dist/components/otp-field.js +2 -1
  124. package/dist/components/overlay-arrow.js +3 -4
  125. package/dist/components/pagination.js +8 -10
  126. package/dist/components/popover.js +3 -4
  127. package/dist/components/progress-bar.js +5 -5
  128. package/dist/components/radio-group.js +5 -7
  129. package/dist/components/range-calendar.js +3 -3
  130. package/dist/components/scroll-area.js +4 -5
  131. package/dist/components/search-field.js +8 -11
  132. package/dist/components/section.js +2 -1
  133. package/dist/components/select.js +10 -22
  134. package/dist/components/selection-indicator.js +3 -3
  135. package/dist/components/sentinel-row.js +3 -3
  136. package/dist/components/separator.js +3 -3
  137. package/dist/components/shared-element.js +2 -1
  138. package/dist/components/sheet.js +6 -7
  139. package/dist/components/sidebar.js +48 -76
  140. package/dist/components/slider.js +8 -10
  141. package/dist/components/spinner.js +3 -3
  142. package/dist/components/switch.js +3 -3
  143. package/dist/components/tabs.js +9 -12
  144. package/dist/components/tag-group.js +7 -9
  145. package/dist/components/text-field.js +2 -1
  146. package/dist/components/text.js +2 -1
  147. package/dist/components/textarea.js +3 -4
  148. package/dist/components/time-field.js +2 -1
  149. package/dist/components/toggle-button.js +5 -7
  150. package/dist/components/tooltip.js +3 -3
  151. package/dist/components/typeset.js +128 -123
  152. package/dist/components/youtube-embed.js +2 -1
  153. package/dist/docs/anchor-heading.d.ts +41 -0
  154. package/dist/docs/anchor-heading.js +62 -0
  155. package/dist/docs/callout.d.ts +46 -0
  156. package/dist/docs/callout.js +61 -0
  157. package/dist/docs/code-block.d.ts +74 -0
  158. package/dist/docs/code-block.js +322 -0
  159. package/dist/docs/code-tabs-sync.d.ts +26 -0
  160. package/dist/docs/code-tabs-sync.js +12 -0
  161. package/dist/docs/code-tabs.d.ts +53 -0
  162. package/dist/docs/code-tabs.js +102 -0
  163. package/dist/docs/copy-button.d.ts +31 -0
  164. package/dist/docs/copy-button.js +49 -0
  165. package/dist/docs/docs-feedback.d.ts +55 -0
  166. package/dist/docs/docs-feedback.js +72 -0
  167. package/dist/docs/docs-footer.d.ts +40 -0
  168. package/dist/docs/docs-footer.js +45 -0
  169. package/dist/docs/docs-hub.d.ts +93 -0
  170. package/dist/docs/docs-hub.js +142 -0
  171. package/dist/docs/docs-layout.d.ts +90 -0
  172. package/dist/docs/docs-layout.js +166 -0
  173. package/dist/docs/docs-nav-tools.d.ts +25 -0
  174. package/dist/docs/docs-nav-tools.js +14 -0
  175. package/dist/docs/docs-nav.d.ts +53 -0
  176. package/dist/docs/docs-nav.js +76 -0
  177. package/dist/docs/docs-not-found.d.ts +68 -0
  178. package/dist/docs/docs-not-found.js +100 -0
  179. package/dist/docs/docs-page-header.d.ts +55 -0
  180. package/dist/docs/docs-page-header.js +54 -0
  181. package/dist/docs/docs-pager.d.ts +46 -0
  182. package/dist/docs/docs-pager.js +74 -0
  183. package/dist/docs/file-tree.d.ts +57 -0
  184. package/dist/docs/file-tree.js +142 -0
  185. package/dist/docs/index.d.ts +38 -0
  186. package/dist/docs/index.js +38 -0
  187. package/dist/docs/install-command.d.ts +54 -0
  188. package/dist/docs/install-command.js +33 -0
  189. package/dist/docs/mixins/code-tabs-sync.d.ts +47 -0
  190. package/dist/docs/mixins/code-tabs-sync.js +137 -0
  191. package/dist/docs/mixins/copy-feedback.d.ts +25 -0
  192. package/dist/docs/mixins/copy-feedback.js +49 -0
  193. package/dist/docs/mixins/copy-from-url.d.ts +27 -0
  194. package/dist/docs/mixins/copy-from-url.js +95 -0
  195. package/dist/docs/mixins/docs-nav-tools.d.ts +27 -0
  196. package/dist/docs/mixins/docs-nav-tools.js +97 -0
  197. package/dist/docs/mixins/toc-spy.d.ts +30 -0
  198. package/dist/docs/mixins/toc-spy.js +165 -0
  199. package/dist/docs/next-steps.d.ts +45 -0
  200. package/dist/docs/next-steps.js +79 -0
  201. package/dist/docs/page-actions.d.ts +77 -0
  202. package/dist/docs/page-actions.js +78 -0
  203. package/dist/docs/plan-notice.d.ts +28 -0
  204. package/dist/docs/plan-notice.js +33 -0
  205. package/dist/docs/props-table.d.ts +64 -0
  206. package/dist/docs/props-table.js +147 -0
  207. package/dist/docs/steps.d.ts +51 -0
  208. package/dist/docs/steps.js +112 -0
  209. package/dist/docs/table-of-contents.d.ts +49 -0
  210. package/dist/docs/table-of-contents.js +139 -0
  211. package/dist/docs/ui-label.d.ts +51 -0
  212. package/dist/docs/ui-label.js +64 -0
  213. package/dist/docs/utils/docs-tree.d.ts +81 -0
  214. package/dist/docs/utils/docs-tree.js +57 -0
  215. package/dist/docs/utils/reveal-in-scroller.d.ts +19 -0
  216. package/dist/docs/utils/reveal-in-scroller.js +43 -0
  217. package/dist/landing/accent-text.d.ts +47 -0
  218. package/dist/landing/accent-text.js +107 -0
  219. package/dist/landing/animations/entrance.d.ts +40 -0
  220. package/dist/landing/animations/entrance.js +52 -0
  221. package/dist/landing/announcement-chip.d.ts +45 -0
  222. package/dist/landing/announcement-chip.js +36 -0
  223. package/dist/landing/author-band.d.ts +78 -0
  224. package/dist/landing/author-band.js +190 -0
  225. package/dist/landing/bento.d.ts +99 -0
  226. package/dist/landing/bento.js +138 -0
  227. package/dist/landing/changelog-strip.d.ts +74 -0
  228. package/dist/landing/changelog-strip.js +201 -0
  229. package/dist/{patterns → landing}/check-row.js +5 -7
  230. package/dist/{patterns → landing}/closing-cta.d.ts +4 -4
  231. package/dist/{patterns → landing}/closing-cta.js +8 -8
  232. package/dist/landing/code-stage.d.ts +93 -0
  233. package/dist/landing/code-stage.js +434 -0
  234. package/dist/landing/crosshair.d.ts +44 -0
  235. package/dist/landing/crosshair.js +48 -0
  236. package/dist/landing/curriculum.d.ts +79 -0
  237. package/dist/landing/curriculum.js +194 -0
  238. package/dist/landing/drawn-chart.d.ts +74 -0
  239. package/dist/landing/drawn-chart.js +377 -0
  240. package/dist/landing/event-ticker.d.ts +71 -0
  241. package/dist/landing/event-ticker.js +331 -0
  242. package/dist/landing/fan-out-diagram.d.ts +70 -0
  243. package/dist/landing/fan-out-diagram.js +481 -0
  244. package/dist/{patterns → landing}/faq-band.d.ts +7 -5
  245. package/dist/{patterns → landing}/faq-band.js +11 -12
  246. package/dist/landing/feature-band.d.ts +108 -0
  247. package/dist/landing/feature-band.js +67 -0
  248. package/dist/landing/feature.d.ts +148 -0
  249. package/dist/landing/feature.js +219 -0
  250. package/dist/landing/flow-diagram.d.ts +62 -0
  251. package/dist/landing/flow-diagram.js +240 -0
  252. package/dist/{patterns → landing}/icon-well.d.ts +17 -7
  253. package/dist/landing/icon-well.js +31 -0
  254. package/dist/landing/index.d.ts +52 -0
  255. package/dist/landing/index.js +52 -0
  256. package/dist/{patterns → landing}/install-tabs.js +4 -5
  257. package/dist/landing/landing-header.d.ts +103 -0
  258. package/dist/landing/landing-header.js +110 -0
  259. package/dist/landing/landing-hero.d.ts +119 -0
  260. package/dist/landing/landing-hero.js +172 -0
  261. package/dist/landing/landing-section.d.ts +110 -0
  262. package/dist/landing/landing-section.js +183 -0
  263. package/dist/landing/logo-cloud.d.ts +56 -0
  264. package/dist/landing/logo-cloud.js +160 -0
  265. package/dist/landing/logo-sentence.d.ts +38 -0
  266. package/dist/landing/logo-sentence.js +51 -0
  267. package/dist/landing/marquee.d.ts +44 -0
  268. package/dist/landing/marquee.js +97 -0
  269. package/dist/landing/motion-loop.d.ts +43 -0
  270. package/dist/landing/motion-loop.js +42 -0
  271. package/dist/landing/pricing-band.d.ts +94 -0
  272. package/dist/landing/pricing-band.js +151 -0
  273. package/dist/landing/product-frame.d.ts +108 -0
  274. package/dist/landing/product-frame.js +202 -0
  275. package/dist/{patterns → landing}/proof-strip.d.ts +4 -4
  276. package/dist/{patterns → landing}/proof-strip.js +3 -3
  277. package/dist/landing/rails.d.ts +45 -0
  278. package/dist/landing/rails.js +69 -0
  279. package/dist/landing/rotating-text.d.ts +44 -0
  280. package/dist/landing/rotating-text.js +67 -0
  281. package/dist/landing/segmented-stage.d.ts +75 -0
  282. package/dist/landing/segmented-stage.js +141 -0
  283. package/dist/landing/sequence-diagram.d.ts +65 -0
  284. package/dist/landing/sequence-diagram.js +348 -0
  285. package/dist/landing/site-footer.d.ts +100 -0
  286. package/dist/landing/site-footer.js +274 -0
  287. package/dist/landing/site-header.d.ts +126 -0
  288. package/dist/landing/site-header.js +595 -0
  289. package/dist/{components → landing}/split.d.ts +14 -4
  290. package/dist/{components → landing}/split.js +30 -21
  291. package/dist/landing/sponsor-wall.d.ts +81 -0
  292. package/dist/landing/sponsor-wall.js +241 -0
  293. package/dist/{components → landing}/stat-strip.d.ts +31 -4
  294. package/dist/landing/stat-strip.js +105 -0
  295. package/dist/landing/step-list.d.ts +73 -0
  296. package/dist/landing/step-list.js +182 -0
  297. package/dist/landing/styles/card-grid.d.ts +115 -0
  298. package/dist/landing/styles/card-grid.js +295 -0
  299. package/dist/{patterns → landing}/tabbed-stage.d.ts +26 -8
  300. package/dist/landing/tabbed-stage.js +233 -0
  301. package/dist/landing/testimonial-band.d.ts +110 -0
  302. package/dist/landing/testimonial-band.js +164 -0
  303. package/dist/landing/typed-terminal.d.ts +62 -0
  304. package/dist/landing/typed-terminal.js +233 -0
  305. package/dist/landing/utils/pause-toggle.d.ts +37 -0
  306. package/dist/landing/utils/pause-toggle.js +71 -0
  307. package/dist/mixins/copy-to-clipboard.d.ts +6 -0
  308. package/dist/mixins/copy-to-clipboard.js +17 -1
  309. package/dist/mixins/dialog-dismiss.d.ts +21 -0
  310. package/dist/mixins/dialog-dismiss.js +62 -0
  311. package/dist/mixins/index.d.ts +2 -15
  312. package/dist/mixins/index.js +2 -15
  313. package/dist/styles/index.d.ts +2 -5
  314. package/dist/styles/index.js +2 -5
  315. package/dist/styles/landing.d.ts +200 -0
  316. package/dist/styles/landing.js +516 -0
  317. package/dist/styles/surface-control.d.ts +18 -0
  318. package/dist/styles/surface-control.js +31 -0
  319. package/dist/utils/eyebrow.d.ts +39 -0
  320. package/dist/utils/eyebrow.js +21 -0
  321. package/dist/utils/index.d.ts +1 -5
  322. package/dist/utils/index.js +1 -5
  323. package/package.json +14 -4
  324. package/src/theme.css +87 -22
  325. package/dist/components/feature.d.ts +0 -102
  326. package/dist/components/feature.js +0 -151
  327. package/dist/components/logo-cloud.d.ts +0 -42
  328. package/dist/components/logo-cloud.js +0 -41
  329. package/dist/components/marketing-header.d.ts +0 -71
  330. package/dist/components/marketing-header.js +0 -81
  331. package/dist/components/marketing-section.d.ts +0 -81
  332. package/dist/components/marketing-section.js +0 -103
  333. package/dist/components/stat-strip.js +0 -64
  334. package/dist/patterns/accent-text.d.ts +0 -30
  335. package/dist/patterns/accent-text.js +0 -17
  336. package/dist/patterns/announcement-chip.d.ts +0 -41
  337. package/dist/patterns/announcement-chip.js +0 -49
  338. package/dist/patterns/bento.d.ts +0 -67
  339. package/dist/patterns/bento.js +0 -95
  340. package/dist/patterns/code-stage.d.ts +0 -63
  341. package/dist/patterns/code-stage.js +0 -82
  342. package/dist/patterns/feature-band.d.ts +0 -85
  343. package/dist/patterns/feature-band.js +0 -50
  344. package/dist/patterns/icon-well.js +0 -38
  345. package/dist/patterns/index.d.ts +0 -23
  346. package/dist/patterns/index.js +0 -23
  347. package/dist/patterns/landing-hero.d.ts +0 -93
  348. package/dist/patterns/landing-hero.js +0 -126
  349. package/dist/patterns/product-frame.d.ts +0 -60
  350. package/dist/patterns/product-frame.js +0 -70
  351. package/dist/patterns/step-list.d.ts +0 -45
  352. package/dist/patterns/step-list.js +0 -84
  353. package/dist/patterns/tabbed-stage.js +0 -77
  354. package/dist/styles/marketing.d.ts +0 -120
  355. package/dist/styles/marketing.js +0 -225
  356. package/dist/utils/semantic-color-panel.d.ts +0 -35
  357. package/dist/utils/semantic-color-panel.js +0 -28
  358. /package/dist/{behaviors → app/behaviors}/drag-session.d.ts +0 -0
  359. /package/dist/{behaviors → app/behaviors}/resize-session.d.ts +0 -0
  360. /package/dist/{behaviors → app/behaviors}/resize-session.js +0 -0
  361. /package/dist/{behaviors → app/behaviors}/selection-model.d.ts +0 -0
  362. /package/dist/{behaviors → app/behaviors}/selection-model.js +0 -0
  363. /package/dist/{behaviors → app/behaviors}/toaster.d.ts +0 -0
  364. /package/dist/{components → app}/drop-indicator.d.ts +0 -0
  365. /package/dist/{components → app}/drop-zone.d.ts +0 -0
  366. /package/dist/{components → app}/file-trigger.d.ts +0 -0
  367. /package/dist/{components → app}/menubar.d.ts +0 -0
  368. /package/dist/{mixins → app/mixins}/chart-tooltip.d.ts +0 -0
  369. /package/dist/{mixins → app/mixins}/chart-tooltip.js +0 -0
  370. /package/dist/{mixins → app/mixins}/context-menu.d.ts +0 -0
  371. /package/dist/{mixins → app/mixins}/context-menu.js +0 -0
  372. /package/dist/{mixins → app/mixins}/drag-reorder.d.ts +0 -0
  373. /package/dist/{mixins → app/mixins}/drop-zone.d.ts +0 -0
  374. /package/dist/{mixins → app/mixins}/grid-list-keys.d.ts +0 -0
  375. /package/dist/{mixins → app/mixins}/menubar-keys.d.ts +0 -0
  376. /package/dist/{mixins → app/mixins}/resize-handle.d.ts +0 -0
  377. /package/dist/{mixins/treeKeys.d.ts → app/mixins/tree-keys.d.ts} +0 -0
  378. /package/dist/{components → app}/resizable.d.ts +0 -0
  379. /package/dist/{components → app}/shortcut-list.d.ts +0 -0
  380. /package/dist/{components → app}/skeleton.d.ts +0 -0
  381. /package/dist/{styles → app/styles}/chart-palette.js +0 -0
  382. /package/dist/{styles → app/styles}/graphic-host.js +0 -0
  383. /package/dist/{styles → app/styles}/legend-toggle.js +0 -0
  384. /package/dist/{components → app}/table.d.ts +0 -0
  385. /package/dist/{components → app}/toast.d.ts +0 -0
  386. /package/dist/{components → app}/toolbar.d.ts +0 -0
  387. /package/dist/{utils → app/utils}/chart-marker-indices.d.ts +0 -0
  388. /package/dist/{utils → app/utils}/chart-marker-indices.js +0 -0
  389. /package/dist/{utils → app/utils}/chart-scale.d.ts +0 -0
  390. /package/dist/{behaviors → chat/behaviors}/scroll-follow-model.d.ts +0 -0
  391. /package/dist/{components → chat}/bubble.d.ts +0 -0
  392. /package/dist/{components → chat}/marker.d.ts +0 -0
  393. /package/dist/{components → chat}/message.d.ts +0 -0
  394. /package/dist/{mixins → chat/mixins}/attachment-trigger.d.ts +0 -0
  395. /package/dist/{mixins → chat/mixins}/attachment-trigger.js +0 -0
  396. /package/dist/{mixins → chat/mixins}/message-follow.d.ts +0 -0
  397. /package/dist/{components → color}/color-area.d.ts +0 -0
  398. /package/dist/{components → color}/color-field.d.ts +0 -0
  399. /package/dist/{components → color}/color-slider.d.ts +0 -0
  400. /package/dist/{components → color}/color-swatch-picker.d.ts +0 -0
  401. /package/dist/{components → color}/color-swatch.d.ts +0 -0
  402. /package/dist/{components → color}/color-wheel.d.ts +0 -0
  403. /package/dist/{mixins → color/mixins}/color-channel-sync.d.ts +0 -0
  404. /package/dist/{mixins → color/mixins}/color-channel-sync.js +0 -0
  405. /package/dist/{mixins → color/mixins}/color-preview.d.ts +0 -0
  406. /package/dist/{mixins → color/mixins}/color-wheel-drag.d.ts +0 -0
  407. /package/dist/{styles → color/styles}/rtl-aware-gradient-direction.js +0 -0
  408. /package/dist/{utils → color/utils}/hue-spectrum.d.ts +0 -0
  409. /package/dist/{utils → color/utils}/hue-spectrum.js +0 -0
  410. /package/dist/{patterns → landing}/check-row.d.ts +0 -0
  411. /package/dist/{patterns → landing}/install-tabs.d.ts +0 -0
@@ -7,19 +7,19 @@
7
7
  * @copyright Sergio Xalambrí 2026
8
8
  */
9
9
  import type { Handle, RemixNode } from "remix/component";
10
- import { MarketingSection } from "../components/marketing-section.js";
10
+ import { LandingSection } from "./landing-section.js";
11
11
  /**
12
12
  * Prop types for {@link ProofStrip}.
13
13
  */
14
14
  export declare namespace ProofStrip {
15
15
  /**
16
- * Band fill forwarded to {@link MarketingSection}.
16
+ * Band fill forwarded to {@link LandingSection}.
17
17
  */
18
- type Tone = MarketingSection.Tone;
18
+ type Tone = LandingSection.Tone;
19
19
  /**
20
20
  * Props accepted by {@link ProofStrip}.
21
21
  */
22
- interface Props extends Omit<MarketingSection.Props, "children" | "tone" | "spacing"> {
22
+ interface Props extends Omit<LandingSection.Props, "children" | "tone" | "spacing"> {
23
23
  /** Band fill. Defaults to {@link DEFAULT_TONE}. */
24
24
  tone?: Tone;
25
25
  /**
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { vstack } from "@sdxc/u/layout";
3
- import { HeadingScope } from "../components/heading-scope.js";
4
- import { MarketingSection } from "../components/marketing-section.js";
3
+ import { width } from "@sdxc/u/size";
4
+ import { LandingSection } from "./landing-section.js";
5
5
  /** Band fill {@link ProofStrip} applies when `tone` is omitted. */
6
6
  const DEFAULT_TONE = "plain";
7
7
  /**
@@ -24,6 +24,6 @@ export function ProofStrip(handle) {
24
24
  return () => {
25
25
  let { children, mix, tone, ...rest } = handle.props;
26
26
  let resolvedTone = tone ?? DEFAULT_TONE;
27
- return (_jsx(MarketingSection, { ...rest, tone: resolvedTone, spacing: "compact", ruled: true, align: "center", mix: mix, children: _jsx(HeadingScope, { children: _jsx("div", { mix: [vstack({ gap: 8, align: "center" })], children: children }) }) }));
27
+ return (_jsx(LandingSection, { ...rest, tone: resolvedTone, spacing: "compact", ruled: true, align: "center", mix: mix, children: _jsx("div", { mix: [vstack({ gap: 8, align: "center" }), width("full")], children: children }) }));
28
28
  };
29
29
  }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Frames landing content in a ruled column: 1px hairline rails down both sides of the
3
+ * content measure, an optional top rule, and "+" marks where the rules meet. Stacked rails
4
+ * read as one continuous column, the way an engineered product page draws its grid.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ import type { LandingSectionSpacing } from "../styles/landing.js";
11
+ /**
12
+ * Prop types for {@link Rails}.
13
+ */
14
+ export declare namespace Rails {
15
+ /** A landing band's block padding step, or `flush` for none. */
16
+ type Spacing = LandingSectionSpacing | "flush";
17
+ /** `corners` draws a {@link Crosshair} where each rail meets the top and bottom edge. */
18
+ type Marks = "none" | "corners";
19
+ /**
20
+ * Props accepted by {@link Rails}.
21
+ */
22
+ interface Props extends TagProps<"div"> {
23
+ /** Draws a hairline across the top of the column so stacked rails read as one grid. */
24
+ ruled?: boolean;
25
+ /** Registration marks at the column's corners. Defaults to `none`. */
26
+ marks?: Marks;
27
+ /** Block padding inside the column. Defaults to {@link DEFAULT_SPACING}. */
28
+ spacing?: Spacing;
29
+ /** Content to frame. */
30
+ children: RemixNode;
31
+ }
32
+ }
33
+ /**
34
+ * Wraps content in a column at `--ui-landing-measure` whose hairline rails run its full
35
+ * height once the page is wider than the column, each taking 1px out of the gutter, so
36
+ * text inside lines up with a `landingContainer()` band above or below at every width.
37
+ *
38
+ * @param handle Runtime handle carrying the outer `<div>`'s props.
39
+ * @returns The render function producing the framed column.
40
+ * @example
41
+ * <Rails ruled marks="corners">
42
+ * <LandingHeader eyebrow={t("grid.eyebrow")}>{t("grid.title")}</LandingHeader>
43
+ * </Rails>
44
+ */
45
+ export declare function Rails(handle: Handle<Rails.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,69 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { combine, raw, mergeMix } from "@sdxc/u/general";
3
+ import { container } from "@sdxc/u/layout";
4
+ import { at } from "@sdxc/u/responsive";
5
+ import { landingSectionSpace } from "../styles/landing.js";
6
+ import { Crosshair } from "./crosshair.js";
7
+ /** Container the column queries, sized to the full width the rails sit in. */
8
+ const RAILS_CONTAINER = "ui-rails";
9
+ /**
10
+ * Container width the rails and marks appear from: the default 72rem measure plus 1rem on
11
+ * each side, so a rail never sits on the viewport edge and a mark never hangs past it.
12
+ */
13
+ const RAILS_FROM = "74rem";
14
+ /** Translucent ink the rails and the top rule draw with. */
15
+ const HAIRLINE = "var(--ui-landing-hairline, color-mix(in oklch, CanvasText 8%, transparent))";
16
+ /** A rail or rule: one solid hairline. */
17
+ const RULE = `1px solid ${HAIRLINE}`;
18
+ /** Block padding {@link Rails} applies when `spacing` is omitted. */
19
+ const DEFAULT_SPACING = "normal";
20
+ /**
21
+ * Wraps content in a column at `--ui-landing-measure` whose hairline rails run its full
22
+ * height once the page is wider than the column, each taking 1px out of the gutter, so
23
+ * text inside lines up with a `landingContainer()` band above or below at every width.
24
+ *
25
+ * @param handle Runtime handle carrying the outer `<div>`'s props.
26
+ * @returns The render function producing the framed column.
27
+ * @example
28
+ * <Rails ruled marks="corners">
29
+ * <LandingHeader eyebrow={t("grid.eyebrow")}>{t("grid.title")}</LandingHeader>
30
+ * </Rails>
31
+ */
32
+ export function Rails(handle) {
33
+ return () => {
34
+ let { children, marks, mix, ruled, spacing, ...rest } = handle.props;
35
+ let resolvedSpacing = spacing ?? DEFAULT_SPACING;
36
+ return (_jsx("div", { ...rest, "data-slot": "rails", "data-ruled": ruled ? "true" : undefined, "data-marks": marks ?? "none", mix: mergeMix([container(RAILS_CONTAINER), raw({ inlineSize: "100%" })], mix), children: _jsxs("div", { "data-slot": "rails-column", mix: [
37
+ raw({
38
+ position: "relative",
39
+ maxInlineSize: "var(--ui-landing-measure, 72rem)",
40
+ marginInline: "auto",
41
+ paddingInline: "var(--ui-landing-gutter, 1rem)",
42
+ }),
43
+ ruled ? raw({ borderBlockStart: RULE }) : [],
44
+ resolvedSpacing === "flush" ? [] : landingSectionSpace(resolvedSpacing),
45
+ combine([
46
+ at("md", RAILS_CONTAINER, raw({ paddingInline: "1.5rem" })),
47
+ at("lg", RAILS_CONTAINER, raw({ paddingInline: "2rem" })),
48
+ at(RAILS_FROM, RAILS_CONTAINER, raw({ borderInline: RULE, paddingInline: "calc(2rem - 1px)" })),
49
+ ]),
50
+ ], children: [children, marks === "corners" ? _jsx(CornerMarks, {}) : null] }) }));
51
+ };
52
+ }
53
+ /**
54
+ * The four corner marks, on a layer pulled out half a pixel past the column's padding edge
55
+ * so each mark's centre lands on the middle of a rail pixel and its arms stay crisp.
56
+ * They show with the rails.
57
+ *
58
+ * @param _handle Runtime handle; the marks take no props.
59
+ * @returns The render function producing the mark layer.
60
+ */
61
+ function CornerMarks(_handle) {
62
+ return () => (_jsxs("span", { "aria-hidden": "true", "data-slot": "rails-marks", mix: [
63
+ raw({ position: "absolute", inset: "-0.5px", pointerEvents: "none" }),
64
+ combine([
65
+ raw({ display: "none" }),
66
+ at(RAILS_FROM, RAILS_CONTAINER, raw({ display: "block" })),
67
+ ]),
68
+ ], children: [_jsx(Crosshair, { corner: "start-start" }), _jsx(Crosshair, { corner: "start-end" }), _jsx(Crosshair, { corner: "end-start" }), _jsx(Crosshair, { corner: "end-end" })] }));
69
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * A word in a headline that cycles through alternatives: each rises in, holds, and leaves
3
+ * upward, in a box as wide as the widest word so the sentence never reflows. It plays a
4
+ * set number of passes and settles on the first word, which is also the reduced-motion text.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ /**
11
+ * Prop types for {@link RotatingText}.
12
+ */
13
+ export declare namespace RotatingText {
14
+ /**
15
+ * Props accepted by {@link RotatingText}.
16
+ */
17
+ interface Props extends TagProps<"span"> {
18
+ /** The alternatives, first one first; two to six read well. */
19
+ words: RemixNode[];
20
+ /** Seconds each word holds. Defaults to {@link DEFAULT_INTERVAL}. */
21
+ interval?: number;
22
+ /**
23
+ * Passes before settling on the first word, or `"infinite"`; wrap an endless one
24
+ * in a {@link MotionLoop} so it can be paused. Defaults to {@link DEFAULT_ITERATIONS}.
25
+ */
26
+ iterations?: number | "infinite";
27
+ /**
28
+ * What assistive technology reads in the word's place. Defaults to the words
29
+ * joined with commas, so a listener hears every alternative.
30
+ */
31
+ label?: string;
32
+ }
33
+ }
34
+ /**
35
+ * Stacks every word in one grid cell and runs one shared keyframe set on each, offset by
36
+ * its position, so exactly one word shows at a time. The animated words are hidden from
37
+ * assistive technology, which reads `label` instead.
38
+ *
39
+ * @param handle Runtime handle carrying the host `<span>`'s props.
40
+ * @returns The render function producing the word's markup.
41
+ * @example
42
+ * <h1>Status pages for <RotatingText words={["startups", "agencies", "platforms"]} /></h1>
43
+ */
44
+ export declare function RotatingText(handle: Handle<RotatingText.Props>): () => import("remix/component").RemixElement;
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { visuallyHidden } from "@sdxc/u/a11y";
3
+ import { keyframes } from "@sdxc/u/animation";
4
+ import { combine, raw, mergeMix } from "@sdxc/u/general";
5
+ import { motionSafe } from "@sdxc/u/responsive";
6
+ import { when } from "@sdxc/u/state";
7
+ /** Seconds each word holds the slot when `interval` is omitted. */
8
+ const DEFAULT_INTERVAL = 2.5;
9
+ /** Passes through the words when `iterations` is omitted; two stay under WCAG's pause threshold for short lists. */
10
+ const DEFAULT_ITERATIONS = 2;
11
+ /** Keyframes prefix; each word count gets its own set, since the hold share depends on it. */
12
+ const KEYFRAMES_PREFIX = "ui-rotating-text";
13
+ /**
14
+ * Stacks every word in one grid cell and runs one shared keyframe set on each, offset by
15
+ * its position, so exactly one word shows at a time. The animated words are hidden from
16
+ * assistive technology, which reads `label` instead.
17
+ *
18
+ * @param handle Runtime handle carrying the host `<span>`'s props.
19
+ * @returns The render function producing the word's markup.
20
+ * @example
21
+ * <h1>Status pages for <RotatingText words={["startups", "agencies", "platforms"]} /></h1>
22
+ */
23
+ export function RotatingText(handle) {
24
+ return () => {
25
+ let { interval, iterations, label, mix, words, ...rest } = handle.props;
26
+ let count = Math.max(words.length, 1);
27
+ let hold = interval ?? DEFAULT_INTERVAL;
28
+ let passes = iterations ?? DEFAULT_ITERATIONS;
29
+ let spoken = label ?? words.filter((word) => typeof word === "string").join(", ");
30
+ return (_jsxs("span", { ...rest, "data-slot": "rotating-text", mix: mergeMix(host(), mix), children: [spoken ? _jsx("span", { mix: [visuallyHidden()], children: spoken }) : null, _jsx("span", { "aria-hidden": spoken ? "true" : undefined, mix: [stack(count, hold, passes)], children: words.map((word, index) => (_jsx("span", { "data-slot": "rotating-text-word", style: `--i: ${index}`, children: word }, index))) })] }));
31
+ };
32
+ }
33
+ /** Keeps the word on the line's baseline and lets it inherit the headline's color. */
34
+ function host() {
35
+ return raw({ display: "inline-block", whiteSpace: "nowrap", verticalAlign: "bottom" });
36
+ }
37
+ /**
38
+ * The word stack: one grid cell, so its width is the widest word. At rest only the first
39
+ * word shows; with motion allowed each word runs the cycle `--i` intervals after the first,
40
+ * and the first returns to its resting state once the passes end.
41
+ */
42
+ function stack(count, hold, passes) {
43
+ let name = `${KEYFRAMES_PREFIX}-${count}`;
44
+ let share = 100 / count;
45
+ let fade = Math.min(share * 0.25, 8);
46
+ return combine([
47
+ keyframes(name, {
48
+ "0%": { opacity: "0", translate: "0 0.35em" },
49
+ [`${fade}%`]: { opacity: "1", translate: "0 0" },
50
+ [`${share - fade}%`]: { opacity: "1", translate: "0 0" },
51
+ [`${share}%`]: { opacity: "0", translate: "0 -0.35em" },
52
+ "100%": { opacity: "0", translate: "0 -0.35em" },
53
+ }),
54
+ raw({ display: "inline-grid", overflow: "clip", overflowClipMargin: "0.2em" }),
55
+ when("& > *", raw({ gridArea: "1 / 1", opacity: "0" })),
56
+ when("& > :first-child", raw({ opacity: "1" })),
57
+ count > 1
58
+ ? motionSafe(when("& > *", raw({
59
+ animationName: name,
60
+ animationDuration: `${hold * count}s`,
61
+ animationTimingFunction: "cubic-bezier(.2,.7,.2,1)",
62
+ animationDelay: `calc(var(--i) * ${hold}s)`,
63
+ animationIterationCount: String(passes),
64
+ })))
65
+ : [],
66
+ ]);
67
+ }
@@ -0,0 +1,75 @@
1
+ /**
2
+ * A pill segmented control over a media stage, the switcher a hero puts between its
3
+ * calls to action and the product. Selection is a native radio group, so it switches with
4
+ * arrow keys and without JavaScript, and the stage holds the tallest panel's height.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ /**
11
+ * Prop types for {@link SegmentedStage} and its items.
12
+ */
13
+ export declare namespace SegmentedStage {
14
+ /** Edge the control sits on: centred over the stage, or flush with a start-aligned hero's copy. */
15
+ type Align = "start" | "center";
16
+ /** Which half of the stage an item is drawing: its tab in the control, or its panel. */
17
+ type Part = "tab" | "panel";
18
+ /**
19
+ * Value each half of the stage provides so its items share one radio name and know
20
+ * which half they draw.
21
+ */
22
+ interface PartContext {
23
+ /** Radio `name` every item in this stage writes. */
24
+ name: string;
25
+ /** Half the items under this provider draw. */
26
+ part: Part;
27
+ }
28
+ /**
29
+ * Props accepted by {@link SegmentedStage}.
30
+ */
31
+ interface Props extends TagProps<"div"> {
32
+ /** Radio group name; unique per page so several stages stay independent. */
33
+ name: string;
34
+ /** Accessible name for the control. Required — the library ships no copy. */
35
+ "aria-label": string;
36
+ /** Where the control sits over the stage. Defaults to {@link DEFAULT_ALIGN}. */
37
+ align?: Align;
38
+ /** Two or more {@link SegmentedStage.Item} entries. */
39
+ children: RemixNode;
40
+ }
41
+ /**
42
+ * Props accepted by {@link SegmentedStage.Item}.
43
+ */
44
+ interface ItemProps {
45
+ /** Radio value for this tab and panel pair. */
46
+ value: string;
47
+ /** Visible tab label. */
48
+ label: RemixNode;
49
+ /** Marks the item selected on load. Exactly one item in a stage should pass it. */
50
+ defaultChecked?: boolean;
51
+ /** Media the tab reveals: a product frame, a code stage, a screenshot. */
52
+ children: RemixNode;
53
+ }
54
+ }
55
+ /**
56
+ * Renders the control and the stage from one list of items: each item draws its tab in
57
+ * the control and its panel in the stage. Panels share one grid cell, so the stage is as
58
+ * tall as its tallest panel and switching never moves the page below.
59
+ *
60
+ * @param handle Runtime handle carrying the host `<div>`'s props.
61
+ * @returns The render function producing the control and stage.
62
+ * @example
63
+ * <SegmentedStage name="hero-views" aria-label={t("hero.views")}>
64
+ * <SegmentedStage.Item value="board" label={t("hero.board")} defaultChecked>
65
+ * <ProductFrame title="Board">{board}</ProductFrame>
66
+ * </SegmentedStage.Item>
67
+ * <SegmentedStage.Item value="api" label={t("hero.api")}>
68
+ * <CodeStage title="request.ts">{code}</CodeStage>
69
+ * </SegmentedStage.Item>
70
+ * </SegmentedStage>
71
+ */
72
+ export declare function SegmentedStage(handle: Handle<SegmentedStage.Props>): () => import("remix/component").RemixElement;
73
+ export declare namespace SegmentedStage {
74
+ var Item: (handle: Handle<SegmentedStage.ItemProps>) => () => import("remix/component").RemixElement;
75
+ }
@@ -0,0 +1,141 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "remix/component/jsx-runtime";
2
+ import { visuallyHidden } from "@sdxc/u/a11y";
3
+ import { outline } from "@sdxc/u/color";
4
+ import { transition } from "@sdxc/u/effects";
5
+ import { combine, raw, mergeMix } from "@sdxc/u/general";
6
+ import { noScrollbar } from "@sdxc/u/overflow";
7
+ import { when } from "@sdxc/u/state";
8
+ /** Lift under the selected tab: a contact shadow and a brand-tinted spread. */
9
+ const ACTIVE_LIFT = "0 1px 2px rgb(0 0 0 / 0.05), 0 3px 8px color-mix(in oklch, var(--ui-brand-bg-solid) 14%, transparent)";
10
+ /** Track behind the tabs: a 4% wash of the emphasis ink, so it reads in either scheme. */
11
+ const TRACK_FILL = "color-mix(in oklch, var(--ui-neutral-fg-emphasis) 4%, transparent)";
12
+ /** Edge {@link SegmentedStage} puts its control on when `align` is omitted. */
13
+ const DEFAULT_ALIGN = "center";
14
+ /**
15
+ * Quotes `value` as a CSS string so any radio id can sit inside an attribute selector.
16
+ *
17
+ * @param value Raw identifier.
18
+ * @returns The identifier as a double-quoted CSS string.
19
+ */
20
+ function cssString(value) {
21
+ return `"${value.replace(/["\\]/g, "\\$&")}"`;
22
+ }
23
+ /** Radio id shared by an item's input, tab label and panel. */
24
+ function inputIdFor(name, value) {
25
+ return `${name}-segment-${value}`;
26
+ }
27
+ /**
28
+ * Renders the control and the stage from one list of items: each item draws its tab in
29
+ * the control and its panel in the stage. Panels share one grid cell, so the stage is as
30
+ * tall as its tallest panel and switching never moves the page below.
31
+ *
32
+ * @param handle Runtime handle carrying the host `<div>`'s props.
33
+ * @returns The render function producing the control and stage.
34
+ * @example
35
+ * <SegmentedStage name="hero-views" aria-label={t("hero.views")}>
36
+ * <SegmentedStage.Item value="board" label={t("hero.board")} defaultChecked>
37
+ * <ProductFrame title="Board">{board}</ProductFrame>
38
+ * </SegmentedStage.Item>
39
+ * <SegmentedStage.Item value="api" label={t("hero.api")}>
40
+ * <CodeStage title="request.ts">{code}</CodeStage>
41
+ * </SegmentedStage.Item>
42
+ * </SegmentedStage>
43
+ */
44
+ export function SegmentedStage(handle) {
45
+ return () => {
46
+ let { "aria-label": ariaLabel, align, children, mix, name, ...rest } = handle.props;
47
+ let isStart = (align ?? DEFAULT_ALIGN) === "start";
48
+ return (_jsxs("div", { ...rest, "data-slot": "segmented-stage", "data-name": name, "data-align": isStart ? "start" : "center", mix: mergeMix(raw({ display: "flex", flexDirection: "column", gap: "1.5rem", minInlineSize: "0" }), mix), children: [_jsx("div", { "data-slot": "segmented-stage-scroller", mix: [
49
+ raw({
50
+ display: "flex",
51
+ maxInlineSize: "100%",
52
+ overflowX: "auto",
53
+ overscrollBehaviorInline: "contain",
54
+ }),
55
+ noScrollbar(),
56
+ ], children: _jsx("div", { role: "radiogroup", "aria-label": ariaLabel, "data-slot": "segmented-stage-control", mix: [
57
+ raw({
58
+ display: "inline-flex",
59
+ flex: "none",
60
+ gap: "2px",
61
+ marginInline: isStart ? "0" : "auto",
62
+ padding: "4px",
63
+ borderRadius: "9999px",
64
+ backgroundColor: TRACK_FILL,
65
+ }),
66
+ ], children: _jsx(StagePart, { name: name, part: "tab", children: children }) }) }), _jsx("div", { "data-slot": "segmented-stage-panels", mix: [raw({ display: "grid", minInlineSize: "0" })], children: _jsx(StagePart, { name: name, part: "panel", children: children }) })] }));
67
+ };
68
+ }
69
+ /**
70
+ * Tells the items beneath it which half of the stage they draw, so one list of items fills
71
+ * both the control and the panels.
72
+ *
73
+ * @param handle Runtime handle carrying the half to draw and providing
74
+ * {@link SegmentedStage.PartContext}.
75
+ * @returns The render function passing the items through.
76
+ */
77
+ function StagePart(handle) {
78
+ return () => {
79
+ handle.context.set({ name: handle.props.name, part: handle.props.part });
80
+ return _jsx(_Fragment, { children: handle.props.children });
81
+ };
82
+ }
83
+ /**
84
+ * Tab in the control: a 36px pill holding its visually hidden radio, so a focused radio
85
+ * scrolls its own pill into view. The selected pill sits on the page background with a
86
+ * brand-tinted lift; the others stay in muted ink.
87
+ */
88
+ function tabStyles() {
89
+ return combine([
90
+ raw({
91
+ position: "relative",
92
+ display: "inline-flex",
93
+ flex: "none",
94
+ alignItems: "center",
95
+ justifyContent: "center",
96
+ blockSize: "36px",
97
+ paddingInline: "1rem",
98
+ borderRadius: "9999px",
99
+ fontSize: "14px",
100
+ lineHeight: "20px",
101
+ fontWeight: "500",
102
+ whiteSpace: "nowrap",
103
+ cursor: "pointer",
104
+ userSelect: "none",
105
+ color: "var(--ui-neutral-fg)",
106
+ backgroundColor: "transparent",
107
+ }),
108
+ transition("color, background-color, box-shadow"),
109
+ when("&:hover", raw({ color: "var(--ui-neutral-fg-emphasis)" })),
110
+ when("&:has(input:checked)", raw({
111
+ color: "var(--ui-neutral-fg-emphasis)",
112
+ backgroundColor: "var(--ui-surface-raised, Canvas)",
113
+ boxShadow: ACTIVE_LIFT,
114
+ })),
115
+ when("&:has(input:focus-visible)", outline({ color: "brand.ring", offset: -2 })),
116
+ ]);
117
+ }
118
+ /**
119
+ * One tab and panel pair. Under the control it draws the radio pill; under the stage it
120
+ * draws the panel, which stays laid out while hidden so the stage keeps the tallest
121
+ * panel's height, and shows while the matching radio is checked.
122
+ *
123
+ * @param handle Runtime handle carrying the item's props.
124
+ * @returns The render function producing the tab or the panel.
125
+ */
126
+ SegmentedStage.Item = function SegmentedStageItem(handle) {
127
+ return () => {
128
+ let { children, defaultChecked, label, value } = handle.props;
129
+ let context = handle.context.get(StagePart);
130
+ let name = context?.name ?? "segmented-stage";
131
+ let inputId = inputIdFor(name, value);
132
+ let labelId = `${inputId}-label`;
133
+ if (context?.part !== "panel") {
134
+ return (_jsxs("label", { id: labelId, htmlFor: inputId, "data-slot": "segmented-stage-tab", mix: [tabStyles()], children: [_jsx("input", { type: "radio", name: name, id: inputId, value: value, defaultChecked: defaultChecked, mix: [visuallyHidden()] }), label] }));
135
+ }
136
+ return (_jsx("div", { role: "group", "aria-labelledby": labelId, "data-slot": "segmented-stage-panel", "data-value": value, mix: [
137
+ raw({ gridArea: "1 / 1", minInlineSize: "0", visibility: "hidden" }),
138
+ when(`:where([data-slot="segmented-stage"]:has([id=${cssString(inputId)}]:checked)) &`, raw({ visibility: "visible" })),
139
+ ], children: children }));
140
+ };
141
+ };
@@ -0,0 +1,65 @@
1
+ /**
2
+ * An animated sequence diagram: two to four parties side by side, each with a lifeline,
3
+ * and the messages between them drawn in order as arrows, then the exchange's outcome. It
4
+ * shows a protocol working (an OAuth sign-in, a webhook delivery) with its real messages.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
+ /**
11
+ * Prop types for {@link SequenceDiagram}.
12
+ */
13
+ export declare namespace SequenceDiagram {
14
+ /** One party to the exchange, given its own column and lifeline. */
15
+ interface Actor {
16
+ name: RemixNode;
17
+ /** Glyph shown above the name, drawn in the brand ink. */
18
+ icon?: RemixNode;
19
+ }
20
+ /** One message, sent from one actor to another, or a note an actor makes to itself. */
21
+ interface Message {
22
+ /** Index into `actors` of the sender. */
23
+ from: number;
24
+ /** Index into `actors` of the receiver; equal to `from` for a note on one lifeline. */
25
+ to: number;
26
+ /** What is sent, set above the arrow. */
27
+ label: RemixNode;
28
+ /** The message's wire form, set in mono under the arrow. */
29
+ code?: string;
30
+ }
31
+ /**
32
+ * Props accepted by {@link SequenceDiagram}.
33
+ */
34
+ interface Props extends Omit<TagProps<"div">, "children"> {
35
+ /** Accessible name of the message list. Required — the library ships no copy. */
36
+ "aria-label": string;
37
+ /** Accessible name of the pause toggle. */
38
+ pauseLabel?: string;
39
+ /** The parties, left to right; two to four fit a phone column. */
40
+ actors: readonly Actor[];
41
+ /** The messages, in the order they are sent. */
42
+ messages: readonly Message[];
43
+ /** The result badge that appears once the last message lands, such as "Signed in". */
44
+ outcome?: RemixNode;
45
+ /** A note across from the outcome, such as what the exchange protects against. */
46
+ footnote?: RemixNode;
47
+ }
48
+ }
49
+ /**
50
+ * Renders the exchange on a raised surface inside a {@link MotionLoop}: an actor row, a
51
+ * lifeline per actor, and one list item per message whose arrow runs between the two
52
+ * lifelines' centres. Without motion every arrow shows drawn, so the static picture is the
53
+ * finished exchange. Two diagrams with the same message count share keyframes.
54
+ *
55
+ * @param handle Runtime handle carrying the host `<div>`'s props.
56
+ * @returns The render function producing the diagram's markup.
57
+ * @example
58
+ * <SequenceDiagram
59
+ * aria-label="A PKCE sign-in"
60
+ * actors={[{ name: "Browser" }, { name: "Your app" }]}
61
+ * messages={[{ from: 0, to: 1, label: "Open /login" }]}
62
+ * outcome="Signed in"
63
+ * />
64
+ */
65
+ export declare function SequenceDiagram(handle: Handle<SequenceDiagram.Props>): () => import("remix/component").RemixElement;