@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
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { ChevronLeftIcon, ChevronRightIcon } from "@sdxc/icons";
3
3
  import { bg, fg, outline } from "@sdxc/u/color";
4
4
  import { opacity, rounded } from "@sdxc/u/effects";
5
- import { cursor, raw } from "@sdxc/u/general";
5
+ import { cursor, raw, mergeMix } from "@sdxc/u/general";
6
6
  import { basis, borderCollapse, borderSpacing, flex, grow, inlineBlock, items, justify, relative, shrink, } from "@sdxc/u/layout";
7
7
  import { bs, is, mbe, p, pbe } from "@sdxc/u/size";
8
8
  import { hover, when } from "@sdxc/u/state";
@@ -70,7 +70,7 @@ export function Calendar(handle) {
70
70
  if (import.meta.env?.DEV && !children && !ariaLabel && !ariaLabelledBy) {
71
71
  console.warn('Calendar: falling back to a plain "input type=date" needs an "aria-label" or "aria-labelledby" describing what it collects for assistive technology.');
72
72
  }
73
- return (_jsx("div", { ...rest, "data-slot": "calendar", mix: [inlineBlock(), rounded("lg"), p(3), bg("neutral.tint"), mix], children: children ?? (_jsx(Input, { type: "date", color: resolvedColor, name: name, value: value, defaultValue: defaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy })) }));
73
+ return (_jsx("div", { ...rest, "data-slot": "calendar", mix: mergeMix([inlineBlock(), rounded("lg"), p(3), bg("neutral.tint")], mix), children: children ?? (_jsx(Input, { type: "date", color: resolvedColor, name: name, value: value, defaultValue: defaultValue, min: min, max: max, step: step, required: required, disabled: disabled, readOnly: readOnly, autoComplete: autoComplete, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy })) }));
74
74
  };
75
75
  }
76
76
  /**
@@ -90,7 +90,7 @@ export function Calendar(handle) {
90
90
  Calendar.Header = function CalendarHeader(handle) {
91
91
  return () => {
92
92
  let { mix, ...rest } = handle.props;
93
- return (_jsx("header", { ...rest, "data-slot": "header", mix: [flex(), items("center"), justify("between"), mbe(4), mix] }));
93
+ return (_jsx("header", { ...rest, "data-slot": "header", mix: mergeMix([flex(), items("center"), justify("between"), mbe(4)], mix) }));
94
94
  };
95
95
  };
96
96
  /**
@@ -107,7 +107,7 @@ Calendar.PreviousButton = function CalendarPreviousButton(handle) {
107
107
  return () => {
108
108
  let { type, children, mix, ...rest } = handle.props;
109
109
  warnIfNoAccessibleName(handle.props, children, 'Calendar.PreviousButton: an icon-only control needs an "aria-label" describing what it does — assistive technology has no accessible text to announce otherwise.');
110
- return (_jsx("button", { type: type ?? DEFAULT_NAV_BUTTON_TYPE, ...rest, "data-slot": "previous-button", mix: [
110
+ return (_jsx("button", { type: type ?? DEFAULT_NAV_BUTTON_TYPE, ...rest, "data-slot": "previous-button", mix: mergeMix([
111
111
  interactiveTransition(),
112
112
  when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
113
113
  flex(),
@@ -123,8 +123,7 @@ Calendar.PreviousButton = function CalendarPreviousButton(handle) {
123
123
  when("&:disabled", [cursor("not-allowed"), opacity(50)]),
124
124
  when("& svg", [is(4), bs(4)]),
125
125
  when("&:dir(rtl) svg", scaleX(-1)),
126
- mix,
127
- ], children: children ?? _jsx(ChevronLeftIcon, {}) }));
126
+ ], mix), children: children ?? _jsx(ChevronLeftIcon, {}) }));
128
127
  };
129
128
  };
130
129
  /**
@@ -141,7 +140,7 @@ Calendar.NextButton = function CalendarNextButton(handle) {
141
140
  return () => {
142
141
  let { type, children, mix, ...rest } = handle.props;
143
142
  warnIfNoAccessibleName(handle.props, children, 'Calendar.NextButton: an icon-only control needs an "aria-label" describing what it does — assistive technology has no accessible text to announce otherwise.');
144
- return (_jsx("button", { type: type ?? DEFAULT_NAV_BUTTON_TYPE, ...rest, "data-slot": "next-button", mix: [
143
+ return (_jsx("button", { type: type ?? DEFAULT_NAV_BUTTON_TYPE, ...rest, "data-slot": "next-button", mix: mergeMix([
145
144
  interactiveTransition(),
146
145
  when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
147
146
  flex(),
@@ -157,8 +156,7 @@ Calendar.NextButton = function CalendarNextButton(handle) {
157
156
  when("&:disabled", [cursor("not-allowed"), opacity(50)]),
158
157
  when("& svg", [is(4), bs(4)]),
159
158
  when("&:dir(rtl) svg", scaleX(-1)),
160
- mix,
161
- ], children: children ?? _jsx(ChevronRightIcon, {}) }));
159
+ ], mix), children: children ?? _jsx(ChevronRightIcon, {}) }));
162
160
  };
163
161
  };
164
162
  /**
@@ -174,7 +172,7 @@ Calendar.NextButton = function CalendarNextButton(handle) {
174
172
  Calendar.Heading = function CalendarHeading(handle) {
175
173
  return () => {
176
174
  let { mix, ...rest } = handle.props;
177
- return (_jsx(Heading, { ...rest, "data-slot": "heading", mix: [
175
+ return (_jsx(Heading, { ...rest, "data-slot": "heading", mix: mergeMix([
178
176
  grow(),
179
177
  shrink(1),
180
178
  basis("0%"),
@@ -182,8 +180,7 @@ Calendar.Heading = function CalendarHeading(handle) {
182
180
  weight("semibold"),
183
181
  fg("neutral.emphasis"),
184
182
  text("sm"),
185
- mix,
186
- ] }));
183
+ ], mix) }));
187
184
  };
188
185
  };
189
186
  /**
@@ -203,7 +200,7 @@ Calendar.Grid = function CalendarGrid(handle) {
203
200
  return () => {
204
201
  let { mix, ...rest } = handle.props;
205
202
  warnIfNoAccessibleLabel(handle.props, 'Calendar.Grid: needs an "aria-label" or "aria-labelledby" identifying which month it shows for assistive technology.');
206
- return (_jsx("table", { ...rest, "data-slot": "grid", mix: [borderCollapse("separate"), borderSpacing("0.25rem"), mix] }));
203
+ return (_jsx("table", { ...rest, "data-slot": "grid", mix: mergeMix([borderCollapse("separate"), borderSpacing("0.25rem")], mix) }));
207
204
  };
208
205
  };
209
206
  /**
@@ -255,14 +252,7 @@ Calendar.Row = function CalendarRow(handle) {
255
252
  Calendar.HeaderCell = function CalendarHeaderCell(handle) {
256
253
  return () => {
257
254
  let { mix, ...rest } = handle.props;
258
- return (_jsx("th", { ...rest, "data-slot": "header-cell", mix: [
259
- attrs({ scope: "col" }),
260
- pbe(2),
261
- weight("medium"),
262
- fg("neutral.muted"),
263
- text("xs"),
264
- mix,
265
- ] }));
255
+ return (_jsx("th", { ...rest, "data-slot": "header-cell", mix: mergeMix([attrs({ scope: "col" }), pbe(2), weight("medium"), fg("neutral.muted"), text("xs")], mix) }));
266
256
  };
267
257
  };
268
258
  /**
@@ -301,7 +291,7 @@ Calendar.GridBody = function CalendarGridBody(handle) {
301
291
  Calendar.Cell = function CalendarCell(handle) {
302
292
  return () => {
303
293
  let { mix, ...rest } = handle.props;
304
- return (_jsx("td", { ...rest, "data-slot": "cell", mix: [
294
+ return (_jsx("td", { ...rest, "data-slot": "cell", mix: mergeMix([
305
295
  interactiveTransition(),
306
296
  when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
307
297
  /**
@@ -325,7 +315,6 @@ Calendar.Cell = function CalendarCell(handle) {
325
315
  when("&[data-unavailable]", [fg("neutral.muted"), textDecoration("line-through")]),
326
316
  when("&[data-outside-month]", fg("neutral.muted")),
327
317
  when('&[aria-invalid="true"]', [bg("danger.solid"), fg("danger.onSolid")]),
328
- mix,
329
- ] }));
318
+ ], mix) }));
330
319
  };
331
320
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { border } from "@sdxc/u/color";
3
3
  import { opacity, rounded, shadow } from "@sdxc/u/effects";
4
- import { vars } from "@sdxc/u/general";
4
+ import { vars, mergeMix } from "@sdxc/u/general";
5
5
  import { flex, flexCol, gap, items } from "@sdxc/u/layout";
6
6
  import { p, pbe, pbs, pi } from "@sdxc/u/size";
7
7
  import { when } from "@sdxc/u/state";
@@ -42,15 +42,14 @@ export function Card(handle) {
42
42
  return () => {
43
43
  let { color, mix, ...rest } = handle.props;
44
44
  let resolvedColor = color ?? DEFAULT_COLOR;
45
- return (_jsx("section", { "data-color": resolvedColor, ...rest, mix: [
45
+ return (_jsx("section", { "data-color": resolvedColor, ...rest, mix: mergeMix([
46
46
  semanticColorPanel(),
47
47
  rounded("lg"),
48
48
  border({ width: 1 }),
49
49
  when('&[data-color="neutral"]', border("transparent")),
50
50
  shadow("sm"),
51
51
  vars({ "ui-box-shadow-ring": SHADOW_RING }),
52
- mix,
53
- ] }));
52
+ ], mix) }));
54
53
  };
55
54
  }
56
55
  /**
@@ -68,7 +67,7 @@ export function Card(handle) {
68
67
  Card.Header = function CardHeader(handle) {
69
68
  return () => {
70
69
  let { mix, ...rest } = handle.props;
71
- return _jsx("header", { ...rest, mix: [flex(), flexCol(), p(6, 6), gap("0.375rem"), mix] });
70
+ return _jsx("header", { ...rest, mix: mergeMix([flex(), flexCol(), p(6, 6), gap("0.375rem")], mix) });
72
71
  };
73
72
  };
74
73
  /**
@@ -86,7 +85,7 @@ Card.Title = function CardTitle(handle) {
86
85
  let { mix, ...rest } = handle.props;
87
86
  let resolved = resolveHeadingLevel(handle);
88
87
  let Tag = TAG_BY_LEVEL[resolved];
89
- return (_jsx(Tag, { ...rest, "data-heading-level": resolved, mix: [fontSize("2xl"), leading(1), weight("semibold"), tracking("tight"), balance(), mix], children: rest.children }));
88
+ return (_jsx(Tag, { ...rest, "data-heading-level": resolved, mix: mergeMix([fontSize("2xl"), leading(1), weight("semibold"), tracking("tight"), balance()], mix), children: rest.children }));
90
89
  };
91
90
  };
92
91
  /**
@@ -101,7 +100,7 @@ Card.Title = function CardTitle(handle) {
101
100
  Card.Description = function CardDescription(handle) {
102
101
  return () => {
103
102
  let { mix, ...rest } = handle.props;
104
- return _jsx("p", { ...rest, mix: [fontSize("sm"), opacity(70), pretty(), mix] });
103
+ return _jsx("p", { ...rest, mix: mergeMix([fontSize("sm"), opacity(70), pretty()], mix) });
105
104
  };
106
105
  };
107
106
  /**
@@ -117,7 +116,7 @@ Card.Description = function CardDescription(handle) {
117
116
  Card.Content = function CardContent(handle) {
118
117
  return () => {
119
118
  let { mix, ...rest } = handle.props;
120
- return (_jsx("div", { ...rest, mix: [
119
+ return (_jsx("div", { ...rest, mix: mergeMix([
121
120
  /**
122
121
  * The body leaves the gap above it to a header, and takes it back when it opens the card,
123
122
  * so a card of content alone still clears its own top edge.
@@ -127,8 +126,7 @@ Card.Content = function CardContent(handle) {
127
126
  pbe(6),
128
127
  pi(6),
129
128
  pretty(),
130
- mix,
131
- ] }));
129
+ ], mix) }));
132
130
  };
133
131
  };
134
132
  /**
@@ -146,6 +144,6 @@ Card.Content = function CardContent(handle) {
146
144
  Card.Footer = function CardFooter(handle) {
147
145
  return () => {
148
146
  let { mix, ...rest } = handle.props;
149
- return _jsx("footer", { ...rest, mix: [flex(), items("center"), pbs(0), pbe(6), pi(6), mix] });
147
+ return (_jsx("footer", { ...rest, mix: mergeMix([flex(), items("center"), pbs(0), pbe(6), pi(6)], mix) }));
150
148
  };
151
149
  };
@@ -85,7 +85,7 @@ export declare namespace Carousel {
85
85
  * </Carousel.Controls>
86
86
  * </Carousel>
87
87
  * @example
88
- * // Marketing browser-flow strip: widen `--ui-carousel-slide-size` for product
88
+ * // Landing browser-flow strip: widen `--ui-carousel-slide-size` for product
89
89
  * // frames and keep Previous/Next on `size="sm"` so controls stay quiet.
90
90
  * <Carousel
91
91
  * aria-label={t("flows.label")}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { ChevronLeftIcon, ChevronRightIcon } from "@sdxc/icons";
3
3
  import { outline } from "@sdxc/u/color";
4
- import { raw, vars } from "@sdxc/u/general";
4
+ import { raw, vars, mergeMix } from "@sdxc/u/general";
5
5
  import { flex, flexCol, gap, grow, items, justify, shrink } from "@sdxc/u/layout";
6
6
  import { media } from "@sdxc/u/responsive";
7
7
  import { bs, is, minIs, pi } from "@sdxc/u/size";
@@ -57,7 +57,7 @@ const DEFAULT_NEXT_COMMAND = "--ui-next";
57
57
  * </Carousel.Controls>
58
58
  * </Carousel>
59
59
  * @example
60
- * // Marketing browser-flow strip: widen `--ui-carousel-slide-size` for product
60
+ * // Landing browser-flow strip: widen `--ui-carousel-slide-size` for product
61
61
  * // frames and keep Previous/Next on `size="sm"` so controls stay quiet.
62
62
  * <Carousel
63
63
  * aria-label={t("flows.label")}
@@ -75,7 +75,7 @@ const DEFAULT_NEXT_COMMAND = "--ui-next";
75
75
  export function Carousel(handle) {
76
76
  return () => {
77
77
  let { mix, ...rest } = handle.props;
78
- return (_jsx("section", { ...rest, "data-slot": "carousel", mix: [
78
+ return (_jsx("section", { ...rest, "data-slot": "carousel", mix: mergeMix([
79
79
  flex(),
80
80
  flexCol(),
81
81
  gap(3),
@@ -84,8 +84,7 @@ export function Carousel(handle) {
84
84
  "ui-carousel-slide-size": "18rem",
85
85
  "ui-carousel-padding": "0px",
86
86
  }),
87
- mix,
88
- ] }));
87
+ ], mix) }));
89
88
  };
90
89
  }
91
90
  /**
@@ -103,7 +102,7 @@ export function Carousel(handle) {
103
102
  Carousel.Viewport = function CarouselViewport(handle) {
104
103
  return () => {
105
104
  let { mix, ...rest } = handle.props;
106
- return (_jsx("div", { ...rest, "data-slot": "viewport", mix: [
105
+ return (_jsx("div", { ...rest, "data-slot": "viewport", mix: mergeMix([
107
106
  attrs({ role: DEFAULT_VIEWPORT_ROLE, tabIndex: DEFAULT_VIEWPORT_TAB_INDEX }),
108
107
  when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
109
108
  raw({
@@ -115,8 +114,7 @@ Carousel.Viewport = function CarouselViewport(handle) {
115
114
  "-webkit-overflow-scrolling": "touch",
116
115
  }),
117
116
  media("(prefers-reduced-motion: reduce)", raw({ scrollBehavior: "auto" })),
118
- mix,
119
- ] }));
117
+ ], mix) }));
120
118
  };
121
119
  };
122
120
  /**
@@ -135,12 +133,7 @@ Carousel.Viewport = function CarouselViewport(handle) {
135
133
  Carousel.Track = function CarouselTrack(handle) {
136
134
  return () => {
137
135
  let { mix, ...rest } = handle.props;
138
- return (_jsx("div", { ...rest, "data-slot": "track", mix: [
139
- flex(),
140
- gap("var(--ui-carousel-gap, 1rem)"),
141
- pi("var(--ui-carousel-padding, 0px)"),
142
- mix,
143
- ] }));
136
+ return (_jsx("div", { ...rest, "data-slot": "track", mix: mergeMix([flex(), gap("var(--ui-carousel-gap, 1rem)"), pi("var(--ui-carousel-padding, 0px)")], mix) }));
144
137
  };
145
138
  };
146
139
  /**
@@ -156,7 +149,7 @@ Carousel.Track = function CarouselTrack(handle) {
156
149
  Carousel.Slide = function CarouselSlide(handle) {
157
150
  return () => {
158
151
  let { mix, ...rest } = handle.props;
159
- return (_jsx("div", { ...rest, "data-slot": "slide", mix: [
152
+ return (_jsx("div", { ...rest, "data-slot": "slide", mix: mergeMix([
160
153
  attrs({ role: DEFAULT_SLIDE_ROLE }),
161
154
  grow(0),
162
155
  shrink(0),
@@ -169,8 +162,7 @@ Carousel.Slide = function CarouselSlide(handle) {
169
162
  flexBasis: "var(--ui-carousel-slide-size, 18rem)",
170
163
  scrollSnapAlign: "start",
171
164
  }),
172
- mix,
173
- ] }));
165
+ ], mix) }));
174
166
  };
175
167
  };
176
168
  /**
@@ -188,7 +180,7 @@ Carousel.Slide = function CarouselSlide(handle) {
188
180
  Carousel.Controls = function CarouselControls(handle) {
189
181
  return () => {
190
182
  let { mix, ...rest } = handle.props;
191
- return (_jsx("div", { ...rest, "data-slot": "controls", mix: [flex(), items("center"), gap(2), justify("end"), mix] }));
183
+ return (_jsx("div", { ...rest, "data-slot": "controls", mix: mergeMix([flex(), items("center"), gap(2), justify("end")], mix) }));
192
184
  };
193
185
  };
194
186
  /**
@@ -208,7 +200,7 @@ Carousel.Previous = function CarouselPrevious(handle) {
208
200
  let resolvedColor = color ?? DEFAULT_CONTROL_COLOR;
209
201
  let resolvedSize = size ?? DEFAULT_CONTROL_SIZE;
210
202
  let resolvedCommand = command ?? DEFAULT_PREVIOUS_COMMAND;
211
- return (_jsx(Button, { ...rest, type: "button", variant: resolvedVariant, color: resolvedColor, size: resolvedSize, command: resolvedCommand, "data-slot": "previous", mix: [minIs(0), when("& > svg", [is(4), bs(4)]), mix], children: children ?? _jsx(ChevronLeftIcon, {}) }));
203
+ return (_jsx(Button, { ...rest, type: "button", variant: resolvedVariant, color: resolvedColor, size: resolvedSize, command: resolvedCommand, "data-slot": "previous", mix: mergeMix([minIs(0), when("& > svg", [is(4), bs(4)])], mix), children: children ?? _jsx(ChevronLeftIcon, {}) }));
212
204
  };
213
205
  };
214
206
  /**
@@ -228,6 +220,6 @@ Carousel.Next = function CarouselNext(handle) {
228
220
  let resolvedColor = color ?? DEFAULT_CONTROL_COLOR;
229
221
  let resolvedSize = size ?? DEFAULT_CONTROL_SIZE;
230
222
  let resolvedCommand = command ?? DEFAULT_NEXT_COMMAND;
231
- return (_jsx(Button, { ...rest, type: "button", variant: resolvedVariant, color: resolvedColor, size: resolvedSize, command: resolvedCommand, "data-slot": "next", mix: [minIs(0), when("& > svg", [is(4), bs(4)]), mix], children: children ?? _jsx(ChevronRightIcon, {}) }));
223
+ return (_jsx(Button, { ...rest, type: "button", variant: resolvedVariant, color: resolvedColor, size: resolvedSize, command: resolvedCommand, "data-slot": "next", mix: mergeMix([minIs(0), when("& > svg", [is(4), bs(4)])], mix), children: children ?? _jsx(ChevronRightIcon, {}) }));
232
224
  };
233
225
  };
@@ -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 { flexRow, gap, vstack } from "@sdxc/u/layout";
4
5
  import { when } from "@sdxc/u/state";
5
6
  import { attrs } from "remix/component";
@@ -42,12 +43,11 @@ export function CheckboxGroup(handle) {
42
43
  let { orientation, mix, ...rest } = handle.props;
43
44
  let resolvedOrientation = orientation ?? DEFAULT_ORIENTATION;
44
45
  warnIfNoAccessibleLabel(handle.props, "CheckboxGroup: a group with no `aria-label` or `aria-labelledby` needs one describing the set — assistive technology has no accessible name to announce otherwise.");
45
- return (_jsx("div", { "data-orientation": resolvedOrientation, ...rest, mix: [
46
+ return (_jsx("div", { "data-orientation": resolvedOrientation, ...rest, mix: mergeMix([
46
47
  attrs({ role: DEFAULT_ROLE }),
47
48
  vstack({ gap: 2 }),
48
49
  when('&[data-orientation="horizontal"]', [flexRow(), gap(4)]),
49
50
  when('&[aria-invalid="true"]', fg("danger")),
50
- mix,
51
- ] }));
51
+ ], mix) }));
52
52
  };
53
53
  }
@@ -3,7 +3,7 @@ import { CheckIcon, MinusIcon } from "@sdxc/icons";
3
3
  import { visuallyHidden } from "@sdxc/u/a11y";
4
4
  import { bg, border, fg, outline } from "@sdxc/u/color";
5
5
  import { opacity, rounded } from "@sdxc/u/effects";
6
- import { cursor } from "@sdxc/u/general";
6
+ import { cursor, mergeMix } from "@sdxc/u/general";
7
7
  import { block, center, hidden, hstack, relative, shrink } from "@sdxc/u/layout";
8
8
  import { bs, is } from "@sdxc/u/size";
9
9
  import { when } from "@sdxc/u/state";
@@ -76,6 +76,6 @@ export function Checkbox(handle) {
76
76
  ]),
77
77
  when("&:has(~ input:disabled)", [cursor("not-allowed"), opacity(50)]),
78
78
  parts?.box,
79
- ], children: [_jsx(CheckIcon, {}), _jsx(MinusIcon, {})] }), _jsx("input", { type: "checkbox", ...rest, mix: [visuallyHidden(), mix] }), children] }));
79
+ ], children: [_jsx(CheckIcon, {}), _jsx(MinusIcon, {})] }), _jsx("input", { type: "checkbox", ...rest, mix: mergeMix(visuallyHidden(), mix) }), children] }));
80
80
  };
81
81
  }
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { ChevronDownIcon } from "@sdxc/icons";
3
3
  import { bg, fg, outline } from "@sdxc/u/color";
4
4
  import { rounded } from "@sdxc/u/effects";
5
+ import { mergeMix } from "@sdxc/u/general";
5
6
  import { center, hstack, relative, spacer, vstack } from "@sdxc/u/layout";
6
7
  import { bs, is, mis, pie } from "@sdxc/u/size";
7
8
  import { when } from "@sdxc/u/state";
@@ -38,7 +39,7 @@ const DEFAULT_BUTTON_TYPE = "button";
38
39
  export function ComboBox(handle) {
39
40
  return () => {
40
41
  let { mix, ...rest } = handle.props;
41
- return _jsx("div", { ...rest, "data-slot": "combobox", mix: [vstack({ gap: 1 }), mix] });
42
+ return _jsx("div", { ...rest, "data-slot": "combobox", mix: mergeMix(vstack({ gap: 1 }), mix) });
42
43
  };
43
44
  }
44
45
  /**
@@ -57,7 +58,7 @@ export function ComboBox(handle) {
57
58
  ComboBox.Group = function ComboBoxGroup(handle) {
58
59
  return () => {
59
60
  let { mix, ...rest } = handle.props;
60
- return _jsx("div", { ...rest, "data-slot": "combobox-group", mix: [hstack({ align: "center" }), mix] });
61
+ return (_jsx("div", { ...rest, "data-slot": "combobox-group", mix: mergeMix(hstack({ align: "center" }), mix) }));
61
62
  };
62
63
  };
63
64
  /**
@@ -75,7 +76,7 @@ ComboBox.Group = function ComboBoxGroup(handle) {
75
76
  ComboBox.Input = function ComboBoxInput(handle) {
76
77
  return () => {
77
78
  let { mix, ...rest } = handle.props;
78
- return _jsx(Input, { ...rest, mix: [spacer(), pie(9), mix] });
79
+ return _jsx(Input, { ...rest, mix: mergeMix([spacer(), pie(9)], mix) });
79
80
  };
80
81
  };
81
82
  /**
@@ -93,7 +94,7 @@ ComboBox.Button = function ComboBoxButton(handle) {
93
94
  return () => {
94
95
  let { type, mix, ...rest } = handle.props;
95
96
  warnIfNoAccessibleLabel(handle.props, "ComboBox.Button: this button needs an `aria-label` describing what it does — its content is a decorative glyph with no accessible name of its own.");
96
- return (_jsx("button", { type: type ?? DEFAULT_BUTTON_TYPE, ...rest, mix: [
97
+ return (_jsx("button", { type: type ?? DEFAULT_BUTTON_TYPE, ...rest, mix: mergeMix([
97
98
  interactiveTransition(),
98
99
  center(),
99
100
  relative(),
@@ -106,7 +107,6 @@ ComboBox.Button = function ComboBoxButton(handle) {
106
107
  when("&:hover", bg("neutral.bg-tint-hover")),
107
108
  when("&:focus-visible", outline({ color: "brand.ring", offset: 0 })),
108
109
  mis("-2rem"),
109
- mix,
110
- ], children: _jsx(ChevronDownIcon, {}) }));
110
+ ], mix), children: _jsx(ChevronDownIcon, {}) }));
111
111
  };
112
112
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { bg, borderEdge, fg, outline, outlineStyle } from "@sdxc/u/color";
3
3
  import { opacity, rounded } from "@sdxc/u/effects";
4
- import { cursor, raw } from "@sdxc/u/general";
4
+ import { cursor, raw, mergeMix } from "@sdxc/u/general";
5
5
  import { hstack, shrink, vstack } from "@sdxc/u/layout";
6
6
  import { overflow } from "@sdxc/u/overflow";
7
7
  import { bs, is, maxBs, pb, pi } from "@sdxc/u/size";
@@ -34,14 +34,13 @@ const DEFAULT_ITEM_ROLE = "option";
34
34
  export function Command(handle) {
35
35
  return () => {
36
36
  let { children, mix, ...rest } = handle.props;
37
- return (_jsx("div", { ...rest, "data-slot": "command", mix: [
37
+ return (_jsx("div", { ...rest, "data-slot": "command", mix: mergeMix([
38
38
  floatingSurface(),
39
39
  raw({ borderRadius: concentricRadius(surfacePadding(1)) }),
40
40
  vstack(),
41
41
  overflow("hidden"),
42
42
  fg("neutral.emphasis"),
43
- mix,
44
- ], children: children }));
43
+ ], mix), children: children }));
45
44
  };
46
45
  }
47
46
  /**
@@ -59,7 +58,7 @@ export function Command(handle) {
59
58
  Command.Input = function CommandInput(handle) {
60
59
  return () => {
61
60
  let { mix, ...rest } = handle.props;
62
- return (_jsx("div", { "data-slot": "input-wrapper", mix: borderEdge("block-end", { color: "neutral", width: 1 }), children: _jsx("input", { ...rest, "data-slot": "input", "data-command-input": true, mix: [
61
+ return (_jsx("div", { "data-slot": "input-wrapper", mix: borderEdge("block-end", { color: "neutral", width: 1 }), children: _jsx("input", { ...rest, "data-slot": "input", "data-command-input": true, mix: mergeMix([
63
62
  is("full"),
64
63
  bs("3.5rem"),
65
64
  pi(3),
@@ -70,8 +69,7 @@ Command.Input = function CommandInput(handle) {
70
69
  bg("transparent"),
71
70
  text("sm"),
72
71
  outlineStyle("none"),
73
- mix,
74
- ] }) }));
72
+ ], mix) }) }));
75
73
  };
76
74
  };
77
75
  /**
@@ -90,7 +88,7 @@ Command.Input = function CommandInput(handle) {
90
88
  Command.List = function CommandList(handle) {
91
89
  return () => {
92
90
  let { mix, ...rest } = handle.props;
93
- return (_jsx("div", { ...rest, "data-slot": "list", mix: [
91
+ return (_jsx("div", { ...rest, "data-slot": "list", mix: mergeMix([
94
92
  attrs({ role: DEFAULT_LIST_ROLE }),
95
93
  maxBs("18rem"),
96
94
  overflow("auto"),
@@ -101,8 +99,7 @@ Command.List = function CommandList(handle) {
101
99
  */
102
100
  when('&:has([data-slot="item"]:not([hidden]))', pb(2)),
103
101
  outlineStyle("none"),
104
- mix,
105
- ] }));
102
+ ], mix) }));
106
103
  };
107
104
  };
108
105
  /**
@@ -125,7 +122,7 @@ Command.Item = function CommandItem(handle) {
125
122
  if (import.meta.env?.DEV && !value) {
126
123
  console.warn('Command.Item: needs a "value" — a filter behavior matches typed text against this instead of parsing rendered children.');
127
124
  }
128
- return (_jsx("div", { ...rest, "data-slot": "item", "data-value": value, mix: [
125
+ return (_jsx("div", { ...rest, "data-slot": "item", "data-value": value, mix: mergeMix([
129
126
  interactiveTransition(),
130
127
  attrs({ role: DEFAULT_ITEM_ROLE }),
131
128
  hstack({ gap: 2, align: "center" }),
@@ -153,8 +150,7 @@ Command.Item = function CommandItem(handle) {
153
150
  when('&[aria-disabled="true"]', opacity(50)),
154
151
  text("sm"),
155
152
  outlineStyle("none"),
156
- mix,
157
- ], children: children }));
153
+ ], mix), children: children }));
158
154
  };
159
155
  };
160
156
  /**
@@ -170,6 +166,6 @@ Command.Item = function CommandItem(handle) {
170
166
  Command.Empty = function CommandEmpty(handle) {
171
167
  return () => {
172
168
  let { mix, ...rest } = handle.props;
173
- return (_jsx("div", { ...rest, "data-slot": "empty", "data-command-empty": true, mix: [pi(3), pb(6), textAlign("center"), fg("neutral.muted"), text("sm"), mix] }));
169
+ return (_jsx("div", { ...rest, "data-slot": "empty", "data-command-empty": true, mix: mergeMix([pi(3), pb(6), textAlign("center"), fg("neutral.muted"), text("sm")], mix) }));
174
170
  };
175
171
  };
@@ -1,8 +1,8 @@
1
1
  /**
2
- * A horizontal cluster of primary and secondary marketing actions that wraps
2
+ * A horizontal cluster of primary and secondary landing actions that wraps
3
3
  * onto a second row when the container is narrow. Children are the page's own
4
- * {@link Button} / {@link LinkButton} instances — pair nav rows at `size="sm"`
5
- * (~32px) with hero rows at `size="lg"` (~48px).
4
+ * {@link Button} / {@link LinkButton} instances, and an action that names no
5
+ * size of its own takes the group's, so a hero row sizes every CTA at once.
6
6
  *
7
7
  * @author [Sergio Xalambrí](https://sergiodxa.com)
8
8
  * @copyright Sergio Xalambrí 2026
@@ -12,34 +12,50 @@ import type { Handle, Props as TagProps, RemixNode } from "remix/component";
12
12
  * Prop types for {@link CtaGroup}.
13
13
  */
14
14
  export declare namespace CtaGroup {
15
+ /** Size every action without a `size` of its own renders at. */
16
+ type Size = "sm" | "md" | "lg";
17
+ /**
18
+ * When the actions stack into full-width rows: never, or on a phone-width
19
+ * container (36rem and below), where two side-by-side CTAs would wrap unevenly.
20
+ */
21
+ type Stack = "never" | "phone";
22
+ /** What the group shares with the actions inside it. */
23
+ interface Context {
24
+ /** Size an action without its own `size` renders at. */
25
+ size: Size;
26
+ }
15
27
  /**
16
28
  * Props accepted by {@link CtaGroup}.
17
29
  */
18
30
  interface Props extends TagProps<"div"> {
31
+ /** Size handed to every action without its own. Defaults to {@link DEFAULT_SIZE}. */
32
+ size?: Size;
33
+ /** When the actions stack full width. Defaults to `"never"`. */
34
+ stack?: Stack;
19
35
  /**
20
36
  * Action controls — typically a solid primary {@link Button} or
21
- * {@link LinkButton} beside an outline secondary. The group does not
22
- * invent buttons of its own.
37
+ * {@link LinkButton} beside a `surface` or outline secondary. The group
38
+ * does not invent buttons of its own.
23
39
  */
24
40
  children: RemixNode;
25
41
  }
26
42
  }
27
43
  /**
28
44
  * Lays action children in a wrapping inline-flex row with a compact gap so a
29
- * primary and secondary CTA read as one cluster. Radius and size stay on the
30
- * buttons; override `--ui-marketing-cta-radius` per brand for pill vs soft-rect
31
- * corners when composing marketing CTAs.
45
+ * primary and secondary CTA read as one cluster, and publishes its size to them.
46
+ * Radius stays on the buttons; override `--ui-landing-cta-radius` per brand for
47
+ * pill vs soft-rect corners through `landingCtaChrome()`.
32
48
  *
33
49
  * @param handle Runtime handle carrying the host `<div>`'s props.
34
50
  * @returns The render function producing the group's markup.
35
51
  * @example
36
- * <CtaGroup>
37
- * <Button size="lg" color="brand">{t("hero.cta")}</Button>
38
- * <LinkButton href={docs} size="lg" variant="outline">{t("hero.docs")}</LinkButton>
52
+ * <CtaGroup stack="phone">
53
+ * <Button color="brand">{t("hero.cta")}</Button>
54
+ * <LinkButton href={docs} variant="surface">{t("hero.docs")}</LinkButton>
39
55
  * </CtaGroup>
40
56
  * @example
41
- * <CtaGroup>
42
- * <LinkButton href={signin} size="sm">{t("nav.signin")}</LinkButton>
57
+ * <CtaGroup size="sm">
58
+ * <LinkButton href={signin}>{t("nav.signin")}</LinkButton>
43
59
  * </CtaGroup>
44
60
  */
45
- export declare function CtaGroup(handle: Handle<CtaGroup.Props>): () => import("remix/component").RemixElement;
61
+ export declare function CtaGroup(handle: Handle<CtaGroup.Props, CtaGroup.Context>): () => import("remix/component").RemixElement;
@@ -1,26 +1,45 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
+ import { raw, mergeMix } from "@sdxc/u/general";
2
3
  import { flexWrap, gap, inlineFlex, items } from "@sdxc/u/layout";
4
+ import { atMax } from "@sdxc/u/responsive";
5
+ import { when } from "@sdxc/u/state";
6
+ /** Size the group hands its actions when `size` is omitted: the 40px landing CTA. */
7
+ const DEFAULT_SIZE = "md";
3
8
  /**
4
9
  * Lays action children in a wrapping inline-flex row with a compact gap so a
5
- * primary and secondary CTA read as one cluster. Radius and size stay on the
6
- * buttons; override `--ui-marketing-cta-radius` per brand for pill vs soft-rect
7
- * corners when composing marketing CTAs.
10
+ * primary and secondary CTA read as one cluster, and publishes its size to them.
11
+ * Radius stays on the buttons; override `--ui-landing-cta-radius` per brand for
12
+ * pill vs soft-rect corners through `landingCtaChrome()`.
8
13
  *
9
14
  * @param handle Runtime handle carrying the host `<div>`'s props.
10
15
  * @returns The render function producing the group's markup.
11
16
  * @example
12
- * <CtaGroup>
13
- * <Button size="lg" color="brand">{t("hero.cta")}</Button>
14
- * <LinkButton href={docs} size="lg" variant="outline">{t("hero.docs")}</LinkButton>
17
+ * <CtaGroup stack="phone">
18
+ * <Button color="brand">{t("hero.cta")}</Button>
19
+ * <LinkButton href={docs} variant="surface">{t("hero.docs")}</LinkButton>
15
20
  * </CtaGroup>
16
21
  * @example
17
- * <CtaGroup>
18
- * <LinkButton href={signin} size="sm">{t("nav.signin")}</LinkButton>
22
+ * <CtaGroup size="sm">
23
+ * <LinkButton href={signin}>{t("nav.signin")}</LinkButton>
19
24
  * </CtaGroup>
20
25
  */
21
26
  export function CtaGroup(handle) {
22
27
  return () => {
23
- let { mix, ...rest } = handle.props;
24
- return (_jsx("div", { ...rest, "data-slot": "cta-group", mix: [inlineFlex(), items("center"), flexWrap(), gap(3), mix] }));
28
+ let { mix, size, stack, ...rest } = handle.props;
29
+ let resolvedSize = size ?? DEFAULT_SIZE;
30
+ handle.context.set({ size: resolvedSize });
31
+ return (_jsx("div", { ...rest, "data-slot": "cta-group", "data-size": resolvedSize, "data-stack": stack === "phone" ? "phone" : undefined, mix: mergeMix([
32
+ inlineFlex(),
33
+ items("center"),
34
+ flexWrap(),
35
+ gap(3),
36
+ stack === "phone"
37
+ ? atMax("md", [
38
+ raw({ display: "flex", flexDirection: "column", alignItems: "stretch" }),
39
+ raw({ inlineSize: "100%" }),
40
+ when("& > *", raw({ inlineSize: "100%" })),
41
+ ])
42
+ : [],
43
+ ], mix) }));
25
44
  };
26
45
  }