@sdxc/ui 2026.10.30 → 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 (410) 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 +5 -5
  245. package/dist/{patterns → landing}/faq-band.js +13 -14
  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/{components/marketing-section.d.ts → landing/landing-section.d.ts} +38 -15
  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 +12 -5
  290. package/dist/{components → landing}/split.js +26 -18
  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 -7
  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 -150
  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.js +0 -117
  332. package/dist/components/stat-strip.js +0 -65
  333. package/dist/patterns/accent-text.d.ts +0 -30
  334. package/dist/patterns/accent-text.js +0 -17
  335. package/dist/patterns/announcement-chip.d.ts +0 -41
  336. package/dist/patterns/announcement-chip.js +0 -49
  337. package/dist/patterns/bento.d.ts +0 -68
  338. package/dist/patterns/bento.js +0 -94
  339. package/dist/patterns/code-stage.d.ts +0 -63
  340. package/dist/patterns/code-stage.js +0 -82
  341. package/dist/patterns/feature-band.d.ts +0 -85
  342. package/dist/patterns/feature-band.js +0 -50
  343. package/dist/patterns/icon-well.js +0 -38
  344. package/dist/patterns/index.d.ts +0 -23
  345. package/dist/patterns/index.js +0 -23
  346. package/dist/patterns/landing-hero.d.ts +0 -93
  347. package/dist/patterns/landing-hero.js +0 -126
  348. package/dist/patterns/product-frame.d.ts +0 -60
  349. package/dist/patterns/product-frame.js +0 -70
  350. package/dist/patterns/step-list.d.ts +0 -47
  351. package/dist/patterns/step-list.js +0 -85
  352. package/dist/patterns/tabbed-stage.js +0 -77
  353. package/dist/styles/marketing.d.ts +0 -120
  354. package/dist/styles/marketing.js +0 -225
  355. package/dist/utils/semantic-color-panel.d.ts +0 -35
  356. package/dist/utils/semantic-color-panel.js +0 -28
  357. /package/dist/{behaviors → app/behaviors}/drag-session.d.ts +0 -0
  358. /package/dist/{behaviors → app/behaviors}/resize-session.d.ts +0 -0
  359. /package/dist/{behaviors → app/behaviors}/resize-session.js +0 -0
  360. /package/dist/{behaviors → app/behaviors}/selection-model.d.ts +0 -0
  361. /package/dist/{behaviors → app/behaviors}/selection-model.js +0 -0
  362. /package/dist/{behaviors → app/behaviors}/toaster.d.ts +0 -0
  363. /package/dist/{components → app}/drop-indicator.d.ts +0 -0
  364. /package/dist/{components → app}/drop-zone.d.ts +0 -0
  365. /package/dist/{components → app}/file-trigger.d.ts +0 -0
  366. /package/dist/{components → app}/menubar.d.ts +0 -0
  367. /package/dist/{mixins → app/mixins}/chart-tooltip.d.ts +0 -0
  368. /package/dist/{mixins → app/mixins}/chart-tooltip.js +0 -0
  369. /package/dist/{mixins → app/mixins}/context-menu.d.ts +0 -0
  370. /package/dist/{mixins → app/mixins}/context-menu.js +0 -0
  371. /package/dist/{mixins → app/mixins}/drag-reorder.d.ts +0 -0
  372. /package/dist/{mixins → app/mixins}/drop-zone.d.ts +0 -0
  373. /package/dist/{mixins → app/mixins}/grid-list-keys.d.ts +0 -0
  374. /package/dist/{mixins → app/mixins}/menubar-keys.d.ts +0 -0
  375. /package/dist/{mixins → app/mixins}/resize-handle.d.ts +0 -0
  376. /package/dist/{mixins/treeKeys.d.ts → app/mixins/tree-keys.d.ts} +0 -0
  377. /package/dist/{components → app}/resizable.d.ts +0 -0
  378. /package/dist/{components → app}/shortcut-list.d.ts +0 -0
  379. /package/dist/{components → app}/skeleton.d.ts +0 -0
  380. /package/dist/{styles → app/styles}/chart-palette.js +0 -0
  381. /package/dist/{styles → app/styles}/graphic-host.js +0 -0
  382. /package/dist/{styles → app/styles}/legend-toggle.js +0 -0
  383. /package/dist/{components → app}/table.d.ts +0 -0
  384. /package/dist/{components → app}/toast.d.ts +0 -0
  385. /package/dist/{components → app}/toolbar.d.ts +0 -0
  386. /package/dist/{utils → app/utils}/chart-marker-indices.d.ts +0 -0
  387. /package/dist/{utils → app/utils}/chart-marker-indices.js +0 -0
  388. /package/dist/{utils → app/utils}/chart-scale.d.ts +0 -0
  389. /package/dist/{behaviors → chat/behaviors}/scroll-follow-model.d.ts +0 -0
  390. /package/dist/{components → chat}/bubble.d.ts +0 -0
  391. /package/dist/{components → chat}/marker.d.ts +0 -0
  392. /package/dist/{components → chat}/message.d.ts +0 -0
  393. /package/dist/{mixins → chat/mixins}/attachment-trigger.d.ts +0 -0
  394. /package/dist/{mixins → chat/mixins}/attachment-trigger.js +0 -0
  395. /package/dist/{mixins → chat/mixins}/message-follow.d.ts +0 -0
  396. /package/dist/{components → color}/color-area.d.ts +0 -0
  397. /package/dist/{components → color}/color-field.d.ts +0 -0
  398. /package/dist/{components → color}/color-slider.d.ts +0 -0
  399. /package/dist/{components → color}/color-swatch-picker.d.ts +0 -0
  400. /package/dist/{components → color}/color-swatch.d.ts +0 -0
  401. /package/dist/{components → color}/color-wheel.d.ts +0 -0
  402. /package/dist/{mixins → color/mixins}/color-channel-sync.d.ts +0 -0
  403. /package/dist/{mixins → color/mixins}/color-channel-sync.js +0 -0
  404. /package/dist/{mixins → color/mixins}/color-preview.d.ts +0 -0
  405. /package/dist/{mixins → color/mixins}/color-wheel-drag.d.ts +0 -0
  406. /package/dist/{styles → color/styles}/rtl-aware-gradient-direction.js +0 -0
  407. /package/dist/{utils → color/utils}/hue-spectrum.d.ts +0 -0
  408. /package/dist/{utils → color/utils}/hue-spectrum.js +0 -0
  409. /package/dist/{patterns → landing}/check-row.d.ts +0 -0
  410. /package/dist/{patterns → landing}/install-tabs.d.ts +0 -0
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { mergeMix } from "@sdxc/u/general";
2
3
  import { tabularNums } from "@sdxc/u/typography";
3
4
  import { fieldStackLayout } from "../styles/field-stack-layout.js";
4
5
  import { resolveFieldWiring } from "../utils/resolve-field-wiring.js";
@@ -43,7 +44,7 @@ export function DateField(handle) {
43
44
  description,
44
45
  ariaInvalid: ariaInvalidProp,
45
46
  });
46
- return (_jsxs("div", { ...rest, "data-slot": "date-field", mix: [fieldStackLayout(), mix], children: [_jsx(Label, { htmlFor: handle.id, mix: parts?.label, children: label }), _jsx(Input, { id: handle.id, type: "date", name: name, value: value, defaultValue: defaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete,
47
+ return (_jsxs("div", { ...rest, "data-slot": "date-field", mix: mergeMix(fieldStackLayout(), mix), children: [_jsx(Label, { htmlFor: handle.id, mix: parts?.label, children: label }), _jsx(Input, { id: handle.id, type: "date", name: name, value: value, defaultValue: defaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete,
47
48
  // oxlint-disable-next-line jsx-a11y/no-autofocus -- Not a focus grab on page load: this only ever resolves true for the first field an enclosing Form reports as invalid, so a failed submit lands the user on the problem instead of leaving them to hunt for it.
48
49
  autoFocus: resolvedAutoFocus, "aria-invalid": resolvedInvalid, "aria-describedby": describedBy, color: resolvedColor, mix: [tabularNums(), parts?.input] }), description ? (_jsx(Description, { id: descriptionId, mix: parts?.description, children: description })) : null, errorMessage ? (_jsx(FieldError, { id: errorId, mix: parts?.error, children: errorMessage })) : null] }));
49
50
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { outline } from "@sdxc/u/color";
3
3
  import { roundedCorner } from "@sdxc/u/effects";
4
- import { raw } from "@sdxc/u/general";
4
+ import { raw, mergeMix } from "@sdxc/u/general";
5
5
  import { flex, flexCol, gap, items } from "@sdxc/u/layout";
6
6
  import { mis } from "@sdxc/u/size";
7
7
  import { z } from "@sdxc/u/stacking";
@@ -34,7 +34,7 @@ export function DatePicker(handle) {
34
34
  if (!children) {
35
35
  return (_jsx(DateField, { ...rest, color: color, label: label, description: description, errorMessage: errorMessage, name: name, value: value, defaultValue: defaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete, parts: parts, mix: mix }));
36
36
  }
37
- return (_jsx("div", { ...rest, "data-slot": "date-picker", mix: [flex(), flexCol(), gap(1), mix], children: children }));
37
+ return (_jsx("div", { ...rest, "data-slot": "date-picker", mix: mergeMix([flex(), flexCol(), gap(1)], mix), children: children }));
38
38
  };
39
39
  }
40
40
  /**
@@ -53,7 +53,7 @@ export function DatePicker(handle) {
53
53
  DatePicker.Group = function DatePickerGroup(handle) {
54
54
  return () => {
55
55
  let { mix, ...rest } = handle.props;
56
- return (_jsx("div", { ...rest, "data-slot": "group", mix: [
56
+ return (_jsx("div", { ...rest, "data-slot": "group", mix: mergeMix([
57
57
  flex(),
58
58
  items("center"),
59
59
  /**
@@ -87,7 +87,6 @@ DatePicker.Group = function DatePickerGroup(handle) {
87
87
  * shows its own focus ring.
88
88
  */
89
89
  raw({ outline: "none !important" })),
90
- mix,
91
- ] }));
90
+ ], mix) }));
92
91
  };
93
92
  };
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { mergeMix } from "@sdxc/u/general";
2
3
  import { flex, flexCol, gap, items } from "@sdxc/u/layout";
3
4
  import { attrs } from "remix/component";
4
5
  import { DateField } from "./date-field.js";
@@ -41,9 +42,9 @@ export function DateRangePicker(handle) {
41
42
  }
42
43
  }
43
44
  if (!children) {
44
- return (_jsxs("div", { ...rest, "data-slot": "fields", mix: [attrs({ role: "group" }), flex(), gap(2), items("start"), mix], children: [_jsx(DateField, { color: color, label: startLabel, description: startDescription, errorMessage: startErrorMessage, name: startName, value: startValue, defaultValue: startDefaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete, parts: parts?.start }), _jsx(DateField, { color: color, label: endLabel, description: endDescription, errorMessage: endErrorMessage, name: endName, value: endValue, defaultValue: endDefaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete, parts: parts?.end })] }));
45
+ return (_jsxs("div", { ...rest, "data-slot": "fields", mix: mergeMix([attrs({ role: "group" }), flex(), gap(2), items("start")], mix), children: [_jsx(DateField, { color: color, label: startLabel, description: startDescription, errorMessage: startErrorMessage, name: startName, value: startValue, defaultValue: startDefaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete, parts: parts?.start }), _jsx(DateField, { color: color, label: endLabel, description: endDescription, errorMessage: endErrorMessage, name: endName, value: endValue, defaultValue: endDefaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete, parts: parts?.end })] }));
45
46
  }
46
- return (_jsx("div", { ...rest, "data-slot": "date-range-picker", mix: [flex(), flexCol(), gap(1), mix], children: children }));
47
+ return (_jsx("div", { ...rest, "data-slot": "date-range-picker", mix: mergeMix([flex(), flexCol(), gap(1)], mix), children: children }));
47
48
  };
48
49
  }
49
50
  /**
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { fg } from "@sdxc/u/color";
3
+ import { mergeMix } from "@sdxc/u/general";
3
4
  import { pretty, text } from "@sdxc/u/typography";
4
5
  /**
5
6
  * Renders its children inside a `<p>` sized and colored as a small run of
@@ -16,6 +17,6 @@ import { pretty, text } from "@sdxc/u/typography";
16
17
  export function Description(handle) {
17
18
  return () => {
18
19
  let { mix, ...rest } = handle.props;
19
- return _jsx("p", { ...rest, mix: [fg("neutral.muted"), text("sm"), pretty(), mix] });
20
+ return _jsx("p", { ...rest, mix: mergeMix([fg("neutral.muted"), text("sm"), pretty()], mix) });
20
21
  };
21
22
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Client island that closes the modal `<dialog>` it renders inside on a backdrop press or a
3
+ * followed link, for a navigation sheet or drawer whose links include same-page anchors.
4
+ * It owns no visible markup, so it drops into any dialog's content.
5
+ *
6
+ * @author [Sergio Xalambrí](https://sergiodxa.com)
7
+ * @copyright Sergio Xalambrí 2026
8
+ */
9
+ import type { EntryComponent } from "remix/component";
10
+ /**
11
+ * Renders a hidden marker carrying {@link dialogDismiss}. The island loads from the bare
12
+ * `@sdxc/ui/dialog-dismiss` specifier, which the app's browser entry maps to a dynamic
13
+ * import. A page restored from the back-forward cache returns with the dialog closed.
14
+ *
15
+ * @example
16
+ * <SiteHeader brand={<Logo />} items={items} sheet={<DialogDismiss />} />
17
+ */
18
+ export declare const DialogDismiss: EntryComponent<Record<never, never>>;
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
+ import { hidden } from "@sdxc/u/layout";
3
+ import { clientEntry } from "remix/component";
4
+ import { dialogDismiss } from "../mixins/dialog-dismiss.js";
5
+ /**
6
+ * Renders a hidden marker carrying {@link dialogDismiss}. The island loads from the bare
7
+ * `@sdxc/ui/dialog-dismiss` specifier, which the app's browser entry maps to a dynamic
8
+ * import. A page restored from the back-forward cache returns with the dialog closed.
9
+ *
10
+ * @example
11
+ * <SiteHeader brand={<Logo />} items={items} sheet={<DialogDismiss />} />
12
+ */
13
+ export const DialogDismiss = clientEntry("@sdxc/ui/dialog-dismiss#DialogDismiss", function DialogDismiss() {
14
+ return () => _jsx("span", { mix: [hidden(), dialogDismiss()] });
15
+ });
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { XIcon } from "@sdxc/icons";
3
3
  import { bg, border, fg, outline } from "@sdxc/u/color";
4
4
  import { backdropBlur, backdropSaturate, opacity, rounded, shadow, transition, transitionBehavior, } from "@sdxc/u/effects";
5
- import { raw, vars } from "@sdxc/u/general";
5
+ import { raw, vars, mergeMix } from "@sdxc/u/general";
6
6
  import { absolute, container, fixed, flex, flexCol, flexColReverse, flexRow, gap, inset, justify, relative, } from "@sdxc/u/layout";
7
7
  import { overflow } from "@sdxc/u/overflow";
8
8
  import { at, media, startingStyle, supports } from "@sdxc/u/responsive";
@@ -62,7 +62,7 @@ export function Dialog(handle) {
62
62
  if (import.meta.env?.DEV && !id) {
63
63
  console.warn('Dialog rendered without an "id" — "commandfor" on a trigger or close control has nothing to target.');
64
64
  }
65
- return (_jsx("dialog", { ...rest, id: id, "data-slot": "dialog", mix: [
65
+ return (_jsx("dialog", { ...rest, id: id, "data-slot": "dialog", mix: mergeMix([
66
66
  /**
67
67
  * Establishes the containing block {@link Dialog.Close} pins itself to while
68
68
  * the panel sits in the page's flow, which a dialog opened through its `open`
@@ -114,8 +114,7 @@ export function Dialog(handle) {
114
114
  vars({ "ui-box-shadow-ring": SHADOW_RING }),
115
115
  /** `overscrollBehavior` has no matching utility. */
116
116
  raw({ overscrollBehavior: "contain" }),
117
- mix,
118
- ], children: children }));
117
+ ], mix), children: children }));
119
118
  };
120
119
  }
121
120
  /**
@@ -134,14 +133,13 @@ export function Dialog(handle) {
134
133
  Dialog.Header = function DialogHeader(handle) {
135
134
  return () => {
136
135
  let { mix, ...rest } = handle.props;
137
- return (_jsx("div", { ...rest, "data-slot": "header", mix: [
136
+ return (_jsx("div", { ...rest, "data-slot": "header", mix: mergeMix([
138
137
  flex(),
139
138
  flexCol(),
140
139
  gap(1.5),
141
140
  textAlign("center"),
142
141
  at(COMFORTABLE_WIDTH, CONTAINER_NAME, textAlign("start")),
143
- mix,
144
- ] }));
142
+ ], mix) }));
145
143
  };
146
144
  };
147
145
  /**
@@ -159,15 +157,14 @@ Dialog.Title = function DialogTitle(handle) {
159
157
  let { mix, ...rest } = handle.props;
160
158
  let resolved = resolveHeadingLevel(handle);
161
159
  let Tag = TAG_BY_LEVEL[resolved];
162
- return (_jsx(Tag, { ...rest, "data-slot": "title", mix: [
160
+ return (_jsx(Tag, { ...rest, "data-slot": "title", mix: mergeMix([
163
161
  fg("neutral.emphasis"),
164
162
  weight("semibold"),
165
163
  tracking("tight"),
166
164
  fontSize("lg"),
167
165
  leading(1),
168
166
  balance(),
169
- mix,
170
- ], children: rest.children }));
167
+ ], mix), children: rest.children }));
171
168
  };
172
169
  };
173
170
  /**
@@ -183,7 +180,7 @@ Dialog.Title = function DialogTitle(handle) {
183
180
  Dialog.Description = function DialogDescription(handle) {
184
181
  return () => {
185
182
  let { mix, ...rest } = handle.props;
186
- return (_jsx("p", { ...rest, "data-slot": "description", mix: [fg("neutral.muted"), fontSize("sm"), pretty(), mix], children: rest.children }));
183
+ return (_jsx("p", { ...rest, "data-slot": "description", mix: mergeMix([fg("neutral.muted"), fontSize("sm"), pretty()], mix), children: rest.children }));
187
184
  };
188
185
  };
189
186
  /**
@@ -202,13 +199,12 @@ Dialog.Description = function DialogDescription(handle) {
202
199
  Dialog.Footer = function DialogFooter(handle) {
203
200
  return () => {
204
201
  let { mix, ...rest } = handle.props;
205
- return (_jsx("div", { ...rest, "data-slot": "footer", mix: [
202
+ return (_jsx("div", { ...rest, "data-slot": "footer", mix: mergeMix([
206
203
  flex(),
207
204
  gap(2),
208
205
  flexColReverse(),
209
206
  at(COMFORTABLE_WIDTH, CONTAINER_NAME, [flexRow(), justify("end")]),
210
- mix,
211
- ] }));
207
+ ], mix) }));
212
208
  };
213
209
  };
214
210
  /**
@@ -225,6 +221,6 @@ Dialog.Close = function DialogClose(handle) {
225
221
  return () => {
226
222
  let { commandfor, command, mix, ...rest } = handle.props;
227
223
  let resolvedCommand = command ?? DEFAULT_CLOSE_COMMAND;
228
- return (_jsx(Button, { ...rest, type: "button", variant: "ghost", color: "neutral", size: "sm", commandfor: commandfor, command: resolvedCommand, "data-slot": "close", mix: [absolute(), inset(4, 4, "auto", "auto"), mix], children: _jsx(XIcon, { size: 16 }) }));
224
+ return (_jsx(Button, { ...rest, type: "button", variant: "ghost", color: "neutral", size: "sm", commandfor: commandfor, command: resolvedCommand, "data-slot": "close", mix: mergeMix([absolute(), inset(4, 4, "auto", "auto")], mix), children: _jsx(XIcon, { size: 16 }) }));
229
225
  };
230
226
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { bg, borderEdge, fg, outline } from "@sdxc/u/color";
3
3
  import { opacity, roundedCorner, rounded, transition, transitionDuration } from "@sdxc/u/effects";
4
- import { cursor, listStyle, pointerEvents, raw } from "@sdxc/u/general";
4
+ import { cursor, listStyle, pointerEvents, raw, mergeMix } from "@sdxc/u/general";
5
5
  import { flex, flexCol, gap, hidden, interpolateSize, items, shrink } from "@sdxc/u/layout";
6
6
  import { overflow } from "@sdxc/u/overflow";
7
7
  import { media } from "@sdxc/u/responsive";
@@ -39,7 +39,7 @@ import { resolveHeadingLevel, TAG_BY_LEVEL } from "./heading-scope.js";
39
39
  export function Disclosure(handle) {
40
40
  return () => {
41
41
  let { children, mix, ...rest } = handle.props;
42
- return (_jsx("details", { ...rest, mix: [
42
+ return (_jsx("details", { ...rest, mix: mergeMix([
43
43
  panelChrome(),
44
44
  interpolateSize(),
45
45
  detailsContent([
@@ -63,8 +63,7 @@ export function Disclosure(handle) {
63
63
  detailsContent(transitionDuration("0s")),
64
64
  when('& summary [data-slot="icon"]', transitionDuration("0s")),
65
65
  ]),
66
- mix,
67
- ], children: children }));
66
+ ], mix), children: children }));
68
67
  };
69
68
  }
70
69
  /**
@@ -84,7 +83,7 @@ Disclosure.Header = function DisclosureHeader(handle) {
84
83
  let { children, mix, ...rest } = handle.props;
85
84
  let resolved = resolveHeadingLevel(handle);
86
85
  let Tag = TAG_BY_LEVEL[resolved];
87
- return (_jsx(Tag, { ...rest, "data-heading-level": resolved, mix: [m(0), balance(), mix], children: children }));
86
+ return (_jsx(Tag, { ...rest, "data-heading-level": resolved, mix: mergeMix([m(0), balance()], mix), children: children }));
88
87
  };
89
88
  };
90
89
  /**
@@ -111,7 +110,7 @@ Disclosure.Trigger = function DisclosureTrigger(handle) {
111
110
  * and it holds before any script runs.
112
111
  */
113
112
  let disabled = rest["aria-disabled"] === "true";
114
- return (_jsx("summary", { ...rest, tabIndex: disabled ? -1 : rest.tabIndex, mix: [
113
+ return (_jsx("summary", { ...rest, tabIndex: disabled ? -1 : rest.tabIndex, mix: mergeMix([
115
114
  when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
116
115
  flex(),
117
116
  is("full"),
@@ -137,8 +136,7 @@ Disclosure.Trigger = function DisclosureTrigger(handle) {
137
136
  when('& [data-slot="icon"]', [is(4), bs(4), shrink()]),
138
137
  transition("color, background-color, border-color, outline-color, text-decoration-color, fill, stroke"),
139
138
  when('&[aria-disabled="true"]', cursor("not-allowed")),
140
- mix,
141
- ], children: children }));
139
+ ], mix), children: children }));
142
140
  };
143
141
  };
144
142
  /**
@@ -156,7 +154,7 @@ Disclosure.Trigger = function DisclosureTrigger(handle) {
156
154
  Disclosure.Panel = function DisclosurePanel(handle) {
157
155
  return () => {
158
156
  let { children, mix, ...rest } = handle.props;
159
- return (_jsx("div", { ...rest, mix: [
157
+ return (_jsx("div", { ...rest, mix: mergeMix([
160
158
  overflow(),
161
159
  /**
162
160
  * The panel is inset to the line the trigger's label sits on, so the section reads as
@@ -165,8 +163,7 @@ Disclosure.Panel = function DisclosurePanel(handle) {
165
163
  */
166
164
  pi(3),
167
165
  pbe(3),
168
- mix,
169
- ], children: children }));
166
+ ], mix), children: children }));
170
167
  };
171
168
  };
172
169
  /**
@@ -195,7 +192,7 @@ Disclosure.Panel = function DisclosurePanel(handle) {
195
192
  Disclosure.Group = function DisclosureGroup(handle) {
196
193
  return () => {
197
194
  let { children, mix, ...rest } = handle.props;
198
- return (_jsx("div", { ...rest, mix: [
195
+ return (_jsx("div", { ...rest, mix: mergeMix([
199
196
  flex(),
200
197
  flexCol(),
201
198
  when("& > details", [
@@ -213,7 +210,6 @@ Disclosure.Group = function DisclosureGroup(handle) {
213
210
  roundedCorner("end-end", "lg"),
214
211
  ]),
215
212
  ]),
216
- mix,
217
- ], children: children }));
213
+ ], mix), children: children }));
218
214
  };
219
215
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { rounded } from "@sdxc/u/effects";
3
- import { vars, willChange } from "@sdxc/u/general";
3
+ import { vars, willChange, mergeMix } from "@sdxc/u/general";
4
4
  import { fixed, insBe, insBs, insIe, insIs, insLeft, insRight } from "@sdxc/u/layout";
5
5
  import { bs, is, m, maxBs, maxIs } from "@sdxc/u/size";
6
6
  import { data } from "@sdxc/u/state";
@@ -48,7 +48,7 @@ export function Drawer(handle) {
48
48
  return () => {
49
49
  let { placement, mix, ...rest } = handle.props;
50
50
  let resolvedPlacement = placement ?? DEFAULT_PLACEMENT;
51
- return (_jsx(Dialog, { ...rest, "data-placement": resolvedPlacement, mix: [
51
+ return (_jsx(Dialog, { ...rest, "data-placement": resolvedPlacement, mix: mergeMix([
52
52
  fixed(),
53
53
  m(0),
54
54
  rounded("none"),
@@ -122,8 +122,7 @@ export function Drawer(handle) {
122
122
  "ui-drawer-exit-offset": `${EXIT_DISTANCE} 0`,
123
123
  }),
124
124
  ]),
125
- mix,
126
- ] }));
125
+ ], mix) }));
127
126
  };
128
127
  }
129
128
  /**
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { fg } from "@sdxc/u/color";
3
+ import { mergeMix } from "@sdxc/u/general";
3
4
  import { pretty, text, weight } from "@sdxc/u/typography";
4
5
  import { attrs } from "remix/component";
5
6
  /**
@@ -25,13 +26,12 @@ const DEFAULT_FIELD_ERROR_ATTRIBUTE = true;
25
26
  export function FieldError(handle) {
26
27
  return () => {
27
28
  let { id, mix, ...rest } = handle.props;
28
- return (_jsx("span", { id: id ?? handle.id, ...rest, mix: [
29
+ return (_jsx("span", { id: id ?? handle.id, ...rest, mix: mergeMix([
29
30
  attrs({ "data-field-error": DEFAULT_FIELD_ERROR_ATTRIBUTE }),
30
31
  fg("danger"),
31
32
  weight("medium"),
32
33
  text("sm"),
33
34
  pretty(),
34
- mix,
35
- ] }));
35
+ ], mix) }));
36
36
  };
37
37
  }
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
+ import { mergeMix } from "@sdxc/u/general";
2
3
  import { flex, flexCol, gap } from "@sdxc/u/layout";
3
4
  import { Alert } from "./alert.js";
4
5
  /** {@link Form.Props.issues} fallback for a first, not-yet-submitted render. */
@@ -78,7 +79,7 @@ export function Form(handle) {
78
79
  return formIssues;
79
80
  },
80
81
  });
81
- return (_jsxs("form", { ...rest, mix: [flex(), flexCol(), gap(4), mix], children: [formIssues.length > 0 && (_jsx(Alert, { color: "danger", "data-slot": "form-issues", children: _jsx(Alert.Description, { children: formIssues.map((issue) => issue.message).join(" ") }) })), children] }));
82
+ return (_jsxs("form", { ...rest, mix: mergeMix([flex(), flexCol(), gap(4)], mix), children: [formIssues.length > 0 && (_jsx(Alert, { color: "danger", "data-slot": "form-issues", children: _jsx(Alert.Description, { children: formIssues.map((issue) => issue.message).join(" ") }) })), children] }));
82
83
  };
83
84
  }
84
85
  /**
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { outlineColor } from "@sdxc/u/color";
3
3
  import { roundedCorner } from "@sdxc/u/effects";
4
+ import { mergeMix } from "@sdxc/u/general";
4
5
  import { flex, items } from "@sdxc/u/layout";
5
6
  import { mis } from "@sdxc/u/size";
6
7
  import { z } from "@sdxc/u/stacking";
@@ -35,7 +36,7 @@ const DEFAULT_ROLE = "group";
35
36
  export function Group(handle) {
36
37
  return () => {
37
38
  let { mix, ...rest } = handle.props;
38
- return (_jsx("div", { ...rest, mix: [
39
+ return (_jsx("div", { ...rest, mix: mergeMix([
39
40
  attrs({ role: DEFAULT_ROLE }),
40
41
  flex(),
41
42
  items("center"),
@@ -60,7 +61,6 @@ export function Group(handle) {
60
61
  */
61
62
  when("& > *:focus-visible", z(1)),
62
63
  when('&[aria-invalid="true"] > *:focus-visible', outlineColor("danger")),
63
- mix,
64
- ] }));
64
+ ], mix) }));
65
65
  };
66
66
  }
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { fg } from "@sdxc/u/color";
3
+ import { mergeMix } from "@sdxc/u/general";
3
4
  import { pb, pi } from "@sdxc/u/size";
4
5
  import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
5
6
  /**
@@ -15,7 +16,7 @@ import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
15
16
  export function Header(handle) {
16
17
  return () => {
17
18
  let { mix, ...rest } = handle.props;
18
- return (_jsx("header", { ...rest, mix: [
19
+ return (_jsx("header", { ...rest, mix: mergeMix([
19
20
  pi(3),
20
21
  pb(1.5),
21
22
  weight("semibold"),
@@ -23,7 +24,6 @@ export function Header(handle) {
23
24
  fg("neutral.muted"),
24
25
  text("xs"),
25
26
  textTransform("uppercase"),
26
- mix,
27
- ] }));
27
+ ], mix) }));
28
28
  };
29
29
  }
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
+ import { mergeMix } from "@sdxc/u/general";
2
3
  import { contents } from "@sdxc/u/layout";
3
4
  /**
4
5
  * Native tag rendered for each supported {@link HeadingLevel}, as a single
@@ -77,6 +78,6 @@ export function HeadingScope(handle) {
77
78
  let requested = level ?? (ambient === undefined ? undefined : (ambient + 1));
78
79
  let resolved = resolveHeadingLevel(handle, requested);
79
80
  handle.context.set({ level: resolved });
80
- return _jsx("div", { ...rest, "data-heading-level": resolved, mix: [contents(), mix] });
81
+ return _jsx("div", { ...rest, "data-heading-level": resolved, mix: mergeMix(contents(), mix) });
81
82
  };
82
83
  }
@@ -7,7 +7,7 @@
7
7
  * Choosing a level changes only the document outline the element contributes to
8
8
  * assistive technology; its rendered size stays fixed, so nesting sections
9
9
  * correctly never requires a visual trade-off. Pass `size="display"` or
10
- * `size="chapter"` for marketing headlines that read the `--ui-marketing-*`
10
+ * `size="chapter"` for landing headlines that read the `--ui-landing-*`
11
11
  * display tokens (light weight, tight tracking, near-1.0 leading).
12
12
  *
13
13
  * @author [Sergio Xalambrí](https://sergiodxa.com)
@@ -26,7 +26,7 @@ export declare namespace Heading {
26
26
  type Level = HeadingLevel;
27
27
  /**
28
28
  * Visual size recipe: the catalog default, a page H1 display scale, or a
29
- * section chapter (~40–48px) from the marketing tokens.
29
+ * section chapter (~40–48px) from the landing tokens.
30
30
  */
31
31
  type Size = "default" | "display" | "chapter";
32
32
  /**
@@ -41,7 +41,7 @@ export declare namespace Heading {
41
41
  */
42
42
  level?: Level;
43
43
  /**
44
- * Visual size recipe. Defaults to {@link DEFAULT_SIZE}. Marketing
44
+ * Visual size recipe. Defaults to {@link DEFAULT_SIZE}. Landing
45
45
  * pages reach for `"display"` (H1) or `"chapter"` (section H2); app
46
46
  * chrome keeps `"default"`.
47
47
  */
@@ -51,7 +51,7 @@ export declare namespace Heading {
51
51
  /**
52
52
  * Renders its children inside the native heading element matching `level`.
53
53
  * The default size is semibold, tight-tracked emphasis at `lg`; `"display"`
54
- * and `"chapter"` swap in {@link displayHeading} so large marketing titles
54
+ * and `"chapter"` swap in {@link displayHeading} so large landing titles
55
55
  * stay light-weighted.
56
56
  *
57
57
  * @param handle Runtime handle carrying the host heading element's props.
@@ -1,14 +1,15 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { fg } from "@sdxc/u/color";
3
+ import { mergeMix } from "@sdxc/u/general";
3
4
  import { balance, fontSize, leading, tracking, weight } from "@sdxc/u/typography";
4
- import { displayHeading } from "../styles/marketing.js";
5
+ import { displayHeading } from "../styles/landing.js";
5
6
  import { resolveHeadingLevel, TAG_BY_LEVEL } from "./heading-scope.js";
6
7
  /** Visual size {@link Heading} applies when `size` is omitted. */
7
8
  const DEFAULT_SIZE = "default";
8
9
  /**
9
10
  * Renders its children inside the native heading element matching `level`.
10
11
  * The default size is semibold, tight-tracked emphasis at `lg`; `"display"`
11
- * and `"chapter"` swap in {@link displayHeading} so large marketing titles
12
+ * and `"chapter"` swap in {@link displayHeading} so large landing titles
12
13
  * stay light-weighted.
13
14
  *
14
15
  * @param handle Runtime handle carrying the host heading element's props.
@@ -26,11 +27,11 @@ export function Heading(handle) {
26
27
  let resolved = resolveHeadingLevel(handle, level);
27
28
  let resolvedSize = size ?? DEFAULT_SIZE;
28
29
  let Tag = TAG_BY_LEVEL[resolved];
29
- let isMarketing = resolvedSize === "display" || resolvedSize === "chapter";
30
- return (_jsx(Tag, { ...rest, "data-heading-level": resolved, "data-size": resolvedSize, mix: [
30
+ let isLanding = resolvedSize === "display" || resolvedSize === "chapter";
31
+ return (_jsx(Tag, { ...rest, "data-heading-level": resolved, "data-size": resolvedSize, mix: mergeMix([
31
32
  resolvedSize === "display" ? displayHeading(1) : [],
32
33
  resolvedSize === "chapter" ? displayHeading(2) : [],
33
- isMarketing
34
+ isLanding
34
35
  ? []
35
36
  : [
36
37
  weight("semibold"),
@@ -40,7 +41,6 @@ export function Heading(handle) {
40
41
  leading("none"),
41
42
  balance(),
42
43
  ],
43
- mix,
44
- ] }));
44
+ ], mix) }));
45
45
  };
46
46
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
- import { bg, fg } from "@sdxc/u/color";
2
+ import { fg } from "@sdxc/u/color";
3
3
  import { rounded } from "@sdxc/u/effects";
4
- import { raw } from "@sdxc/u/general";
4
+ import { raw, mergeMix } from "@sdxc/u/general";
5
5
  import { data, when } from "@sdxc/u/state";
6
6
  /** Semantic color role {@link Highlight} falls back to when `color` is omitted. */
7
7
  const DEFAULT_COLOR = "brand";
@@ -20,24 +20,29 @@ const DEFAULT_COLOR = "brand";
20
20
  export function Highlight(handle) {
21
21
  return () => {
22
22
  let { color, segments, mix, ...rest } = handle.props;
23
- return (_jsx("span", { "data-color": color ?? DEFAULT_COLOR, ...rest, mix: [
23
+ return (_jsx("span", { "data-color": color ?? DEFAULT_COLOR, ...rest, mix: mergeMix([
24
24
  when("& > mark", [
25
25
  fg("inherit"),
26
26
  rounded("sm"),
27
27
  raw({
28
28
  fontWeight: "inherit",
29
- paddingInline: "0.1em",
30
- marginInline: "-0.1em",
29
+ paddingInline: "0.08em",
31
30
  boxDecorationBreak: "clone",
32
31
  WebkitBoxDecorationBreak: "clone",
33
32
  }),
34
33
  ]),
35
- data("color", "brand", when("& > mark", bg("brand.tint"))),
36
- data("color", "neutral", when("& > mark", bg("neutral.tint"))),
37
- data("color", "success", when("& > mark", bg("success.tint"))),
38
- data("color", "warning", when("& > mark", bg("warning.tint"))),
39
- data("color", "danger", when("& > mark", bg("danger.tint"))),
40
- mix,
41
- ], children: segments.map((segment) => (segment.match ? _jsx("mark", { children: segment.text }) : segment.text)) }));
34
+ data("color", "brand", when("& > mark", markTint("brand"))),
35
+ data("color", "neutral", when("& > mark", markTint("neutral"))),
36
+ data("color", "success", when("& > mark", markTint("success"))),
37
+ data("color", "warning", when("& > mark", markTint("warning"))),
38
+ data("color", "danger", when("& > mark", markTint("danger"))),
39
+ ], mix), children: segments.map((segment) => (segment.match ? _jsx("mark", { children: segment.text }) : segment.text)) }));
42
40
  };
43
41
  }
42
+ /**
43
+ * The tint behind a match: the role's ink at 20%, which reads in light and dark alike
44
+ * where the palette's own tint step fades into the page.
45
+ */
46
+ function markTint(role) {
47
+ return raw({ backgroundColor: `color-mix(in oklab, var(--ui-${role}-fg) 20%, transparent)` });
48
+ }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { fg } from "@sdxc/u/color";
3
3
  import { opacity, transition, transitionDuration, visibility } from "@sdxc/u/effects";
4
- import { pointerEvents, raw } from "@sdxc/u/general";
4
+ import { pointerEvents, raw, mergeMix } from "@sdxc/u/general";
5
5
  import { absolute, contents, inlineBlock, insBe, insBs, insIe, insIs, relative, } from "@sdxc/u/layout";
6
6
  import { media } from "@sdxc/u/responsive";
7
7
  import { is, mb, mbe, mbs, marginLeft, marginRight, mi, p } from "@sdxc/u/size";
@@ -33,7 +33,7 @@ const DEFAULT_PLACEMENT = "bottom";
33
33
  export function HoverCard(handle) {
34
34
  return () => {
35
35
  let { children, mix, ...rest } = handle.props;
36
- return (_jsx("span", { "data-slot": "hover-card", ...rest, mix: [
36
+ return (_jsx("span", { "data-slot": "hover-card", ...rest, mix: mergeMix([
37
37
  relative(),
38
38
  inlineBlock(),
39
39
  media("(hover: hover)", when('&:hover [data-slot="hover-card-content"]', [
@@ -57,8 +57,7 @@ export function HoverCard(handle) {
57
57
  transitionDelay: "0s",
58
58
  }),
59
59
  ]),
60
- mix,
61
- ], children: children }));
60
+ ], mix), children: children }));
62
61
  };
63
62
  }
64
63
  /**
@@ -76,7 +75,7 @@ export function HoverCard(handle) {
76
75
  HoverCard.Trigger = function HoverCardTrigger(handle) {
77
76
  return () => {
78
77
  let { children, mix, ...rest } = handle.props;
79
- return (_jsx("span", { "data-slot": "hover-card-trigger", ...rest, mix: [contents(), mix], children: children }));
78
+ return (_jsx("span", { "data-slot": "hover-card-trigger", ...rest, mix: mergeMix(contents(), mix), children: children }));
80
79
  };
81
80
  };
82
81
  /**
@@ -100,7 +99,7 @@ HoverCard.Content = function HoverCardContent(handle) {
100
99
  return () => {
101
100
  let { placement, children, mix, ...rest } = handle.props;
102
101
  let resolvedPlacement = placement ?? DEFAULT_PLACEMENT;
103
- return (_jsx("div", { "data-slot": "hover-card-content", "data-placement": resolvedPlacement, ...rest, mix: [
102
+ return (_jsx("div", { "data-slot": "hover-card-content", "data-placement": resolvedPlacement, ...rest, mix: mergeMix([
104
103
  floatingSurface(),
105
104
  absolute(),
106
105
  p(4),
@@ -180,7 +179,6 @@ HoverCard.Content = function HoverCardContent(handle) {
180
179
  transitionDuration("0s"),
181
180
  raw({ transitionDelay: "0s" }),
182
181
  ]),
183
- mix,
184
- ], children: children }));
182
+ ], mix), children: children }));
185
183
  };
186
184
  };