@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
@@ -0,0 +1,233 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { keyframes } from "@sdxc/u/animation";
3
+ import { mergeMix, raw } from "@sdxc/u/general";
4
+ import { motionSafe } from "@sdxc/u/responsive";
5
+ import { CodeStage } from "./code-stage.js";
6
+ import { PauseToggle, pausedWhenChecked } from "./utils/pause-toggle.js";
7
+ /** Time each typed character takes, so every terminal types at the same speed. */
8
+ const CHAR_MS = 35;
9
+ /** Time before the first line starts, so a loop opens on an empty prompt for a beat. */
10
+ const LEAD_MS = 400;
11
+ /** Pause between the end of an input line and the first output line after it. */
12
+ const AFTER_INPUT_MS = 350;
13
+ /** Pause between two output lines printing in turn. */
14
+ const BETWEEN_OUTPUTS_MS = 200;
15
+ /** Pause between the last output line and the next input line starting to type. */
16
+ const BEFORE_INPUT_MS = 500;
17
+ /** How long the finished session holds before the reset. */
18
+ const HOLD_MS = 2500;
19
+ /** Shortest loop, so a one-line command still holds long enough to read. */
20
+ const MIN_CYCLE_MS = 8000;
21
+ /** Longest loop; a long spec types faster rather than running past it. */
22
+ const MAX_CYCLE_MS = 12000;
23
+ /** Percent of the cycle at which every line clears again for the next loop. */
24
+ const RESET_AT = 95;
25
+ /** Percent of the cycle an output line takes to fade in. */
26
+ const FADE = 1.5;
27
+ /** Name of the caret's blink, shared by every terminal since it never depends on content. */
28
+ const BLINK = "ui-typed-terminal-blink";
29
+ /**
30
+ * Renders the session as one `<pre>` in the terminal panel, with its pause toggle in the
31
+ * panel's title bar, centred against the title.
32
+ * Every line's full text is in the markup from the start, clipped only visually while it
33
+ * types, so screen readers and copy read the whole session and reduced motion shows it done.
34
+ *
35
+ * @param handle Runtime handle carrying the host `<div>`'s props.
36
+ * @returns The render function producing the terminal's markup.
37
+ * @example
38
+ * <TypedTerminal
39
+ * aria-label="A sign-in spec and its run"
40
+ * title="sign-in.spec"
41
+ * lines={[
42
+ * { kind: "input", text: 'visit "/login"' },
43
+ * { kind: "output", text: "✓ 1 step · 0.4s", status: "ok" },
44
+ * ]}
45
+ * />
46
+ */
47
+ export function TypedTerminal(handle) {
48
+ return () => {
49
+ let { "aria-label": label, lines, mix, pauseLabel, prompt, title, ...rest } = handle.props;
50
+ let schedule = scheduleFor(lines);
51
+ let nodes = [];
52
+ for (let [index, line] of lines.entries()) {
53
+ if (index > 0)
54
+ nodes.push("\n");
55
+ let slot = schedule.slots[index];
56
+ nodes.push(line.kind === "input" ? (_jsx(InputLine, { text: line.text, prompt: prompt, slot: slot, schedule: schedule })) : (_jsx(OutputLine, { text: line.text, status: line.status, slot: slot, schedule: schedule })));
57
+ }
58
+ return (_jsx("div", { ...rest, "data-slot": "motion-loop", mix: mergeMix([pausedWhenChecked('[data-slot="typed-terminal"]')], mix), children: _jsx("figure", { "aria-label": label, "data-slot": "typed-terminal", mix: [raw({ margin: "0", minInlineSize: "0" })], children: _jsx(CodeStage, { variant: "terminal", title: title, actions: _jsx(PauseToggle, { label: pauseLabel ?? "Pause the animation", mix: [headerToggle()] }), children: nodes }) }) }));
59
+ };
60
+ }
61
+ /**
62
+ * Lays the lines on one loop: inputs type at {@link CHAR_MS} a character, faster only when
63
+ * the session would otherwise run past {@link MAX_CYCLE_MS}; outputs print after the input
64
+ * before them; the loop then holds for {@link HOLD_MS} and resets.
65
+ */
66
+ function scheduleFor(lines) {
67
+ let lengths = lines.map((line) => (line.kind === "input" ? line.text.length : 0));
68
+ let gaps = lines.map((line, index) => gapBefore(line, lines[index - 1]));
69
+ let fixed = LEAD_MS + gaps.reduce((sum, gap) => sum + gap, 0);
70
+ let chars = lengths.reduce((sum, length) => sum + length, 0);
71
+ let budget = (MAX_CYCLE_MS * RESET_AT) / 100 - HOLD_MS - fixed;
72
+ let charMs = chars > 0 ? Math.max(1, Math.min(CHAR_MS, budget / chars)) : CHAR_MS;
73
+ let active = fixed + chars * charMs;
74
+ let cycleMs = Math.min(MAX_CYCLE_MS, Math.max(MIN_CYCLE_MS, ((active + HOLD_MS) * 100) / RESET_AT));
75
+ let percent = (ms) => Math.round((ms / cycleMs) * 10000) / 100;
76
+ let at = LEAD_MS;
77
+ let spans = lines.map((_, index) => {
78
+ at += index > 0 ? gaps[index] : 0;
79
+ let start = at;
80
+ at += lengths[index] * charMs;
81
+ return { start, end: at };
82
+ });
83
+ let slots = spans.map((span, index) => ({
84
+ index,
85
+ chars: lengths[index],
86
+ from: percent(span.start),
87
+ to: percent(span.end),
88
+ until: index + 1 < spans.length ? percent(spans[index + 1].start) : RESET_AT,
89
+ }));
90
+ return { count: lines.length, cycleMs, slots };
91
+ }
92
+ /** The pause before `line`, which depends on whether it follows an input or an output line. */
93
+ function gapBefore(line, previous) {
94
+ if (previous === undefined)
95
+ return 0;
96
+ if (line.kind === "input")
97
+ return previous.kind === "output" ? BEFORE_INPUT_MS : 0;
98
+ return previous.kind === "input" ? AFTER_INPUT_MS : BETWEEN_OUTPUTS_MS;
99
+ }
100
+ /**
101
+ * A keyframe name for one part of one line, unique to its stops: two terminals with the
102
+ * same shape share it, and any difference in line count, position or timing names another.
103
+ */
104
+ function frameName(part, schedule, slot) {
105
+ let stops = [slot.from, slot.to, slot.until].map((stop) => Math.round(stop * 100)).join("-");
106
+ return `ui-typed-terminal-${part}-${schedule.count}-${slot.index}-${stops}`;
107
+ }
108
+ /** The animation declarations a line's part shares: one loop of the session's cycle. */
109
+ function loop(name, schedule, timing) {
110
+ return {
111
+ animationName: name,
112
+ animationDuration: `${schedule.cycleMs}ms`,
113
+ animationTimingFunction: timing,
114
+ animationIterationCount: "infinite",
115
+ animationFillMode: "both",
116
+ };
117
+ }
118
+ /**
119
+ * A line that types itself out: the prompt, shown once the line is reached, the text
120
+ * revealed one character width at a time, and a caret that shows and blinks only while
121
+ * this line is the one being typed.
122
+ */
123
+ function InputLine(handle) {
124
+ return () => {
125
+ let { prompt, schedule, slot, text } = handle.props;
126
+ let typing = frameName("type", schedule, slot);
127
+ let caret = frameName("caret", schedule, slot);
128
+ let reached = frameName("prompt", schedule, slot);
129
+ return (_jsxs("span", { "data-line": "", "data-kind": "input", children: [prompt === undefined ? null : (_jsx("span", { "aria-hidden": "true", mix: [
130
+ keyframes(reached, {
131
+ "0%": { visibility: "hidden" },
132
+ [`${slot.from}%`]: { visibility: "visible" },
133
+ [`${RESET_AT + 2}%`]: { visibility: "hidden" },
134
+ "100%": { visibility: "hidden" },
135
+ }),
136
+ raw({
137
+ color: "color-mix(in oklab, currentColor 60%, transparent)",
138
+ userSelect: "none",
139
+ }),
140
+ motionSafe(raw(loop(reached, schedule, "step-end"))),
141
+ ], children: `${prompt} ` })), _jsx("span", { "data-slot": "typed-terminal-text", mix: [
142
+ keyframes(typing, {
143
+ "0%": { inlineSize: "0" },
144
+ [`${slot.from}%`]: { inlineSize: "0" },
145
+ [`${slot.to}%`]: { inlineSize: "calc(var(--chars) * 1ch)" },
146
+ [`${RESET_AT}%`]: { inlineSize: "calc(var(--chars) * 1ch)" },
147
+ [`${RESET_AT + 2}%`]: { inlineSize: "0" },
148
+ "100%": { inlineSize: "0" },
149
+ }),
150
+ raw({
151
+ "--chars": String(slot.chars),
152
+ display: "inline-block",
153
+ verticalAlign: "top",
154
+ overflow: "hidden",
155
+ whiteSpace: "pre",
156
+ }),
157
+ motionSafe(raw(loop(typing, schedule, "steps(var(--chars), end)"))),
158
+ ], children: text }), _jsx("span", { "aria-hidden": "true", "data-slot": "typed-terminal-caret", mix: [
159
+ keyframes(caret, {
160
+ "0%": { visibility: "hidden" },
161
+ [`${slot.from}%`]: { visibility: "visible" },
162
+ [`${slot.until}%`]: { visibility: "hidden" },
163
+ "100%": { visibility: "hidden" },
164
+ }),
165
+ keyframes(BLINK, { "0%": { opacity: "1" }, "50%": { opacity: "0" } }),
166
+ raw({
167
+ display: "inline-block",
168
+ verticalAlign: "text-bottom",
169
+ inlineSize: "1ch",
170
+ blockSize: "1.2em",
171
+ backgroundColor: "color-mix(in oklab, currentColor 75%, transparent)",
172
+ visibility: "hidden",
173
+ }),
174
+ motionSafe(raw({
175
+ animationName: `${caret}, ${BLINK}`,
176
+ animationDuration: `${schedule.cycleMs}ms, 1s`,
177
+ animationTimingFunction: "step-end",
178
+ animationIterationCount: "infinite",
179
+ animationFillMode: "both",
180
+ })),
181
+ ] })] }));
182
+ };
183
+ }
184
+ /** A line the session prints: it fades in at its slot in the status's ink. */
185
+ function OutputLine(handle) {
186
+ return () => {
187
+ let { schedule, slot, status, text } = handle.props;
188
+ let name = frameName("output", schedule, slot);
189
+ return (_jsx("span", { "data-line": "", "data-kind": "output", "data-status": status, mix: [
190
+ keyframes(name, {
191
+ "0%": { opacity: "0" },
192
+ [`${slot.from}%`]: { opacity: "0" },
193
+ [`${slot.from + FADE}%`]: { opacity: "1" },
194
+ [`${RESET_AT}%`]: { opacity: "1" },
195
+ [`${RESET_AT + 2}%`]: { opacity: "0" },
196
+ "100%": { opacity: "0" },
197
+ }),
198
+ raw({ color: statusInk(status) }),
199
+ motionSafe(raw(loop(name, schedule, "linear"))),
200
+ ], children: text }));
201
+ };
202
+ }
203
+ /**
204
+ * The ink for an output status. The terminal panel inverts the page's scheme, so a pass
205
+ * or failure takes the palette step that reads on the panel rather than on the page.
206
+ */
207
+ function statusInk(status) {
208
+ if (status === "ok") {
209
+ return "light-dark(var(--ui-color-success-400), var(--ui-color-success-700))";
210
+ }
211
+ if (status === "fail") {
212
+ return "light-dark(var(--ui-color-danger-400), var(--ui-color-danger-700))";
213
+ }
214
+ if (status === "muted")
215
+ return "color-mix(in oklab, currentColor 65%, transparent)";
216
+ return "inherit";
217
+ }
218
+ /**
219
+ * The pause toggle as title-bar chrome: small enough to leave the bar its breathing room,
220
+ * ringed and inked in the panel's own colour, and inset from the end as far as the title
221
+ * is from the start.
222
+ */
223
+ function headerToggle() {
224
+ return raw({
225
+ inlineSize: "1.5rem",
226
+ blockSize: "1.5rem",
227
+ marginInlineEnd: "0.5rem",
228
+ backgroundColor: "transparent",
229
+ boxShadow: "inset 0 0 0 1px color-mix(in oklab, currentColor 28%, transparent)",
230
+ color: "inherit",
231
+ opacity: "0.75",
232
+ });
233
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The pause control every looping landing animation carries: a checkbox drawn as a
3
+ * small round button, so a loop longer than five seconds can be stopped with no script.
4
+ * Its host pauses descendants from `:has(:checked)`, read through {@link pausedWhenChecked}.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { Handle, Props as TagProps } from "remix/component";
10
+ /**
11
+ * Prop types for {@link PauseToggle}.
12
+ */
13
+ export declare namespace PauseToggle {
14
+ /**
15
+ * Props accepted by {@link PauseToggle}.
16
+ */
17
+ interface Props extends TagProps<"label"> {
18
+ /** Accessible name of the checkbox; checked means paused. */
19
+ label: string;
20
+ }
21
+ }
22
+ /**
23
+ * Renders a 2rem round toggle showing a pause glyph while the loop runs and a play glyph
24
+ * once paused. Under reduced motion nothing loops, so the toggle hides itself.
25
+ *
26
+ * @param handle Runtime handle carrying the host `<label>`'s props.
27
+ * @returns The render function producing the toggle's markup.
28
+ */
29
+ export declare function PauseToggle(handle: Handle<PauseToggle.Props>): () => import("remix/component").RemixElement;
30
+ /**
31
+ * Pauses every animation inside a host while its {@link PauseToggle} is checked, and
32
+ * while the pointer or focus is inside `target` when one is given.
33
+ *
34
+ * @param target A descendant selector that also pauses on hover and focus.
35
+ * @returns A `css()` mixin for the element that holds both the toggle and the loop.
36
+ */
37
+ export declare function pausedWhenChecked(target?: string): import("packages/u/src").UtilityMixin<Element>;
@@ -0,0 +1,71 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { PauseIcon, PlayIcon } from "@sdxc/icons";
3
+ import { visuallyHidden } from "@sdxc/u/a11y";
4
+ import { combine, raw, mergeMix } from "@sdxc/u/general";
5
+ import { media } from "@sdxc/u/responsive";
6
+ import { hover, when } from "@sdxc/u/state";
7
+ /**
8
+ * Renders a 2rem round toggle showing a pause glyph while the loop runs and a play glyph
9
+ * once paused. Under reduced motion nothing loops, so the toggle hides itself.
10
+ *
11
+ * @param handle Runtime handle carrying the host `<label>`'s props.
12
+ * @returns The render function producing the toggle's markup.
13
+ */
14
+ export function PauseToggle(handle) {
15
+ return () => {
16
+ let { label, mix, ...rest } = handle.props;
17
+ return (_jsxs("label", { ...rest, "data-slot": "pause-toggle", mix: mergeMix(toggle(), mix), children: [_jsx("input", { type: "checkbox", "aria-label": label, mix: [visuallyHidden()] }), _jsx(PauseIcon, { "aria-hidden": "true", "data-glyph": "pause" }), _jsx(PlayIcon, { "aria-hidden": "true", "data-glyph": "play" })] }));
18
+ };
19
+ }
20
+ /**
21
+ * Pauses every animation inside a host while its {@link PauseToggle} is checked, and
22
+ * while the pointer or focus is inside `target` when one is given.
23
+ *
24
+ * @param target A descendant selector that also pauses on hover and focus.
25
+ * @returns A `css()` mixin for the element that holds both the toggle and the loop.
26
+ */
27
+ export function pausedWhenChecked(target) {
28
+ let paused = raw({ animationPlayState: "paused" });
29
+ let checked = '&:has([data-slot="pause-toggle"] :checked)';
30
+ let scopes = [checked];
31
+ if (target)
32
+ scopes.push(`& ${target}:hover`, `& ${target}:focus-within`);
33
+ return combine([
34
+ when(scopes
35
+ .flatMap((scope) => [`${scope} *`, `${scope} *::before`, `${scope} *::after`])
36
+ .join(", "), paused),
37
+ ]);
38
+ }
39
+ /** The toggle's chrome: a framed circle on the page color, glyph swapped by state. */
40
+ function toggle() {
41
+ return combine([
42
+ raw({
43
+ position: "relative",
44
+ display: "inline-grid",
45
+ placeItems: "center",
46
+ flexShrink: "0",
47
+ inlineSize: "2rem",
48
+ blockSize: "2rem",
49
+ borderRadius: "9999px",
50
+ backgroundColor: "var(--ui-bg)",
51
+ boxShadow: "inset 0 0 0 1px var(--ui-landing-hairline)",
52
+ color: "var(--ui-neutral-fg)",
53
+ cursor: "pointer",
54
+ }),
55
+ when("&::after", raw({
56
+ content: '""',
57
+ position: "absolute",
58
+ inset: "min(0px, calc((2rem - var(--ui-target-size, 1.5rem)) / 2))",
59
+ })),
60
+ when("& > svg", raw({ gridArea: "1 / 1", inlineSize: "0.875rem", blockSize: "0.875rem" })),
61
+ when('& > [data-glyph="play"]', raw({ visibility: "hidden" })),
62
+ when('&:has(:checked) > [data-glyph="play"]', raw({ visibility: "visible" })),
63
+ when('&:has(:checked) > [data-glyph="pause"]', raw({ visibility: "hidden" })),
64
+ hover(raw({ color: "var(--ui-neutral-fg-emphasis)" })),
65
+ when("&:has(:focus-visible)", raw({
66
+ outline: "2px solid var(--ui-focus-ring, var(--ui-brand-border-strong))",
67
+ outlineOffset: "2px",
68
+ })),
69
+ media("(prefers-reduced-motion: reduce)", raw({ display: "none" })),
70
+ ]);
71
+ }
@@ -37,6 +37,12 @@ export declare class CopyEvent extends Event {
37
37
  */
38
38
  constructor(success: boolean, text: string);
39
39
  }
40
+ /**
41
+ * Attribute that keeps an element inside a copy target off the clipboard, together with
42
+ * the line break written right after it: a shell block's output lines, or the removed
43
+ * lines of a diff, stay on screen while the copied text is what a reader should paste.
44
+ */
45
+ export declare const COPY_EXCLUDE_ATTRIBUTE = "data-copy-exclude";
40
46
  /**
41
47
  * Writes the text content of a Message footer copy button's `commandfor`
42
48
  * target onto the system clipboard, resolving the target fresh from the
@@ -37,6 +37,12 @@ export class CopyEvent extends Event {
37
37
  this.text = text;
38
38
  }
39
39
  }
40
+ /**
41
+ * Attribute that keeps an element inside a copy target off the clipboard, together with
42
+ * the line break written right after it: a shell block's output lines, or the removed
43
+ * lines of a diff, stay on screen while the copied text is what a reader should paste.
44
+ */
45
+ export const COPY_EXCLUDE_ATTRIBUTE = "data-copy-exclude";
40
46
  /**
41
47
  * Reads what a target offers to be copied. A form control keeps what it shows in its
42
48
  * `value` and has no text of its own, so the pairing a copy button is most often written
@@ -49,7 +55,17 @@ function copyableText(target) {
49
55
  if (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement) {
50
56
  return target.value.trim();
51
57
  }
52
- return target.textContent?.trim() ?? "";
58
+ if (!target.querySelector(`[${COPY_EXCLUDE_ATTRIBUTE}]`))
59
+ return target.textContent?.trim() ?? "";
60
+ let copy = target.cloneNode(true);
61
+ for (let excluded of copy.querySelectorAll(`[${COPY_EXCLUDE_ATTRIBUTE}]`)) {
62
+ let next = excluded.nextSibling;
63
+ if (next?.nodeType === Node.TEXT_NODE && next.textContent?.startsWith("\n")) {
64
+ next.textContent = next.textContent.slice(1);
65
+ }
66
+ excluded.remove();
67
+ }
68
+ return copy.textContent?.trim() ?? "";
53
69
  }
54
70
  /**
55
71
  * Finds the element a copy button's `commandfor` targets, preferring the
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Closes the modal `<dialog>` its host sits in when the visitor presses the backdrop or
3
+ * follows a link inside it. Engines without `closedby` give a modal no touch dismissal, and
4
+ * a same-page link such as `/#pricing` scrolls without a new document, leaving it open.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { ElementProps, MixinFactory } from "remix/component";
10
+ /**
11
+ * Listens on the host's closest `<dialog>` from insertion until removal. A modified click
12
+ * or a `target="_blank"` link opens the page elsewhere and leaves the dialog open, since
13
+ * the visitor who made it is still using it. A host outside any dialog does nothing.
14
+ *
15
+ * @example
16
+ * <dialog id="menu" closedby="any">
17
+ * <span hidden mix={[dialogDismiss()]} />
18
+ * <a href="/#pricing">Pricing</a>
19
+ * </dialog>
20
+ */
21
+ export declare const dialogDismiss: MixinFactory<HTMLElement, [], ElementProps>;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Closes the modal `<dialog>` its host sits in when the visitor presses the backdrop or
3
+ * follows a link inside it. Engines without `closedby` give a modal no touch dismissal, and
4
+ * a same-page link such as `/#pricing` scrolls without a new document, leaving it open.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import { createMixin } from "remix/component";
10
+ /**
11
+ * Listens on the host's closest `<dialog>` from insertion until removal. A modified click
12
+ * or a `target="_blank"` link opens the page elsewhere and leaves the dialog open, since
13
+ * the visitor who made it is still using it. A host outside any dialog does nothing.
14
+ *
15
+ * @example
16
+ * <dialog id="menu" closedby="any">
17
+ * <span hidden mix={[dialogDismiss()]} />
18
+ * <a href="/#pricing">Pricing</a>
19
+ * </dialog>
20
+ */
21
+ export const dialogDismiss = createMixin((handle) => {
22
+ let controller;
23
+ handle.addEventListener("insert", (event) => {
24
+ controller?.abort();
25
+ let dialog = event.node.closest("dialog");
26
+ if (!dialog)
27
+ return;
28
+ controller = new AbortController();
29
+ dialog.addEventListener("click", (click) => {
30
+ if (isBackdropClick(dialog, click) || isPlainLinkClick(click))
31
+ dialog.close();
32
+ }, { signal: controller.signal });
33
+ });
34
+ handle.addEventListener("remove", () => {
35
+ controller?.abort();
36
+ controller = undefined;
37
+ });
38
+ });
39
+ /**
40
+ * Whether a click landed on the backdrop. A press on `::backdrop` is dispatched to the
41
+ * dialog itself, at a point outside the panel's own box.
42
+ */
43
+ function isBackdropClick(dialog, event) {
44
+ if (event.target !== dialog)
45
+ return false;
46
+ let box = dialog.getBoundingClientRect();
47
+ return (event.clientX < box.left ||
48
+ event.clientX > box.right ||
49
+ event.clientY < box.top ||
50
+ event.clientY > box.bottom);
51
+ }
52
+ /** Whether a click follows a link in this tab with the primary button and no modifier. */
53
+ function isPlainLinkClick(event) {
54
+ if (event.defaultPrevented || event.button !== 0)
55
+ return false;
56
+ if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)
57
+ return false;
58
+ if (!(event.target instanceof Element))
59
+ return false;
60
+ let link = event.target.closest("a[href]");
61
+ return link !== null && link.getAttribute("target") !== "_blank";
62
+ }
@@ -8,48 +8,35 @@
8
8
  */
9
9
  export * from "./active-descendant-keys.js";
10
10
  export * from "./aria-checked.js";
11
- export * from "./attachment-trigger.js";
12
11
  export * from "./calendar-keys.js";
13
12
  export * from "./carousel-controls.js";
14
- export * from "./chart-tooltip.js";
15
13
  export * from "./clear-field.js";
16
- export * from "./color-area-drag.js";
17
- export * from "./color-channel-sync.js";
18
- export * from "./color-preview.js";
19
- export * from "./color-wheel-drag.js";
20
14
  export * from "./combobox-filter.js";
21
15
  export * from "./command-filter.js";
22
16
  export * from "./command-keys.js";
23
- export * from "./context-menu.js";
24
17
  export * from "./copy-to-clipboard.js";
18
+ export * from "./dialog-dismiss.js";
25
19
  export * from "./dismiss.js";
26
- export * from "./drag-reorder.js";
27
- export * from "./drop-zone.js";
28
20
  export * from "./dual-range.js";
29
21
  export * from "./frame-refresh.js";
30
22
  export * from "./frame-submit.js";
31
- export * from "./grid-list-keys.js";
32
23
  export * from "./heading-level-fallback.js";
33
24
  export * from "./hotkey.js";
34
25
  export * from "./image-fallback.js";
35
26
  export * from "./keymap.js";
36
- export * from "./live-frame.js";
37
27
  export * from "./listbox-keys.js";
28
+ export * from "./live-frame.js";
38
29
  export * from "./long-press.js";
39
30
  export * from "./menu-keys.js";
40
- export * from "./menubar-keys.js";
41
- export * from "./message-follow.js";
42
31
  export * from "./mirror-selected-option.js";
43
32
  export * from "./otp-slots.js";
44
33
  export * from "./persist.js";
45
34
  export * from "./press-toggle.js";
46
35
  export * from "./range-preview.js";
47
- export * from "./resize-handle.js";
48
36
  export * from "./stepper.js";
49
37
  export * from "./tab-keys.js";
50
38
  export * from "./theme-toggle.js";
51
39
  export * from "./track-host-node.js";
52
- export * from "./treeKeys.js";
53
40
  export * from "./validate.js";
54
41
  export * from "./view-transition.js";
55
42
  export * from "./while-live.js";
@@ -8,48 +8,35 @@
8
8
  */
9
9
  export * from "./active-descendant-keys.js";
10
10
  export * from "./aria-checked.js";
11
- export * from "./attachment-trigger.js";
12
11
  export * from "./calendar-keys.js";
13
12
  export * from "./carousel-controls.js";
14
- export * from "./chart-tooltip.js";
15
13
  export * from "./clear-field.js";
16
- export * from "./color-area-drag.js";
17
- export * from "./color-channel-sync.js";
18
- export * from "./color-preview.js";
19
- export * from "./color-wheel-drag.js";
20
14
  export * from "./combobox-filter.js";
21
15
  export * from "./command-filter.js";
22
16
  export * from "./command-keys.js";
23
- export * from "./context-menu.js";
24
17
  export * from "./copy-to-clipboard.js";
18
+ export * from "./dialog-dismiss.js";
25
19
  export * from "./dismiss.js";
26
- export * from "./drag-reorder.js";
27
- export * from "./drop-zone.js";
28
20
  export * from "./dual-range.js";
29
21
  export * from "./frame-refresh.js";
30
22
  export * from "./frame-submit.js";
31
- export * from "./grid-list-keys.js";
32
23
  export * from "./heading-level-fallback.js";
33
24
  export * from "./hotkey.js";
34
25
  export * from "./image-fallback.js";
35
26
  export * from "./keymap.js";
36
- export * from "./live-frame.js";
37
27
  export * from "./listbox-keys.js";
28
+ export * from "./live-frame.js";
38
29
  export * from "./long-press.js";
39
30
  export * from "./menu-keys.js";
40
- export * from "./menubar-keys.js";
41
- export * from "./message-follow.js";
42
31
  export * from "./mirror-selected-option.js";
43
32
  export * from "./otp-slots.js";
44
33
  export * from "./persist.js";
45
34
  export * from "./press-toggle.js";
46
35
  export * from "./range-preview.js";
47
- export * from "./resize-handle.js";
48
36
  export * from "./stepper.js";
49
37
  export * from "./tab-keys.js";
50
38
  export * from "./theme-toggle.js";
51
39
  export * from "./track-host-node.js";
52
- export * from "./treeKeys.js";
53
40
  export * from "./validate.js";
54
41
  export * from "./view-transition.js";
55
42
  export * from "./while-live.js";
@@ -7,16 +7,13 @@
7
7
  * @author [Sergio Xalambrí](https://sergiodxa.com)
8
8
  * @copyright Sergio Xalambrí 2026
9
9
  */
10
- export * from "./chart-palette.js";
11
10
  export * from "./field-stack-layout.js";
12
11
  export * from "./floating-surface.js";
13
- export * from "./graphic-host.js";
14
12
  export * from "./hit-area.js";
15
13
  export * from "./interactive-transition.js";
16
- export * from "./legend-toggle.js";
17
- export * from "./marketing.js";
14
+ export * from "./landing.js";
18
15
  export * from "./output-caption-text.js";
19
16
  export * from "./panel-chrome.js";
20
17
  export * from "./range-thumb-appearance.js";
21
- export * from "./rtl-aware-gradient-direction.js";
22
18
  export * from "./semantic-color-panel.js";
19
+ export * from "./surface-control.js";
@@ -7,16 +7,13 @@
7
7
  * @author [Sergio Xalambrí](https://sergiodxa.com)
8
8
  * @copyright Sergio Xalambrí 2026
9
9
  */
10
- export * from "./chart-palette.js";
11
10
  export * from "./field-stack-layout.js";
12
11
  export * from "./floating-surface.js";
13
- export * from "./graphic-host.js";
14
12
  export * from "./hit-area.js";
15
13
  export * from "./interactive-transition.js";
16
- export * from "./legend-toggle.js";
17
- export * from "./marketing.js";
14
+ export * from "./landing.js";
18
15
  export * from "./output-caption-text.js";
19
16
  export * from "./panel-chrome.js";
20
17
  export * from "./range-thumb-appearance.js";
21
- export * from "./rtl-aware-gradient-direction.js";
22
18
  export * from "./semantic-color-panel.js";
19
+ export * from "./surface-control.js";