@sdxc/ui 2026.10.29 → 2026.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (411) hide show
  1. package/README.md +187 -113
  2. package/dist/{behaviors → app/behaviors}/drag-session.js +1 -1
  3. package/dist/{behaviors → app/behaviors}/toaster.js +1 -1
  4. package/dist/{components → app}/chart.d.ts +1 -1
  5. package/dist/{components → app}/chart.js +18 -34
  6. package/dist/{components → app}/context-menu.d.ts +2 -2
  7. package/dist/{components → app}/context-menu.js +8 -7
  8. package/dist/{components → app}/drop-indicator.js +3 -3
  9. package/dist/{components → app}/drop-zone.js +3 -3
  10. package/dist/{components → app}/empty.d.ts +1 -1
  11. package/dist/{components → app}/empty.js +11 -21
  12. package/dist/{components → app}/file-trigger.js +2 -2
  13. package/dist/{components → app}/grid-list.d.ts +1 -1
  14. package/dist/{components → app}/grid-list.js +16 -18
  15. package/dist/app/index.d.ts +41 -0
  16. package/dist/app/index.js +41 -0
  17. package/dist/{components → app}/menubar.js +5 -7
  18. package/dist/{mixins → app/mixins}/drag-reorder.js +1 -1
  19. package/dist/{mixins → app/mixins}/drop-zone.js +1 -1
  20. package/dist/{mixins → app/mixins}/grid-list-keys.js +2 -2
  21. package/dist/{mixins → app/mixins}/menubar-keys.js +2 -2
  22. package/dist/{mixins → app/mixins}/resize-handle.js +3 -3
  23. package/dist/{mixins/treeKeys.js → app/mixins/tree-keys.js} +2 -2
  24. package/dist/{components → app}/resizable.js +7 -10
  25. package/dist/{components → app}/shortcut-list.js +4 -3
  26. package/dist/{components → app}/skeleton.js +3 -3
  27. package/dist/{styles → app/styles}/chart-palette.d.ts +1 -1
  28. package/dist/{styles → app/styles}/graphic-host.d.ts +1 -1
  29. package/dist/{styles → app/styles}/legend-toggle.d.ts +1 -1
  30. package/dist/{components → app}/table.js +12 -15
  31. package/dist/{components → app}/toast.js +18 -24
  32. package/dist/{components → app}/toolbar.js +3 -3
  33. package/dist/{components → app}/tree.d.ts +1 -1
  34. package/dist/{components → app}/tree.js +10 -14
  35. package/dist/{utils → app/utils}/chart-path.d.ts +1 -1
  36. package/dist/{utils → app/utils}/chart-path.js +2 -2
  37. package/dist/{utils → app/utils}/chart-scale.js +1 -1
  38. package/dist/behaviors/index.d.ts +0 -5
  39. package/dist/behaviors/index.js +0 -5
  40. package/dist/{components → chat}/attachment.d.ts +1 -1
  41. package/dist/{components → chat}/attachment.js +17 -23
  42. package/dist/{behaviors → chat/behaviors}/scroll-follow-model.js +1 -1
  43. package/dist/{components → chat}/bubble.js +14 -14
  44. package/dist/chat/index.d.ts +16 -0
  45. package/dist/chat/index.js +16 -0
  46. package/dist/{components → chat}/marker.js +6 -8
  47. package/dist/{components → chat}/message-scroller.d.ts +1 -1
  48. package/dist/{components → chat}/message-scroller.js +12 -18
  49. package/dist/{components → chat}/message.js +10 -12
  50. package/dist/{mixins → chat/mixins}/message-follow.js +2 -2
  51. package/dist/{components → color}/color-area.js +7 -10
  52. package/dist/{components → color}/color-field.js +7 -6
  53. package/dist/{components → color}/color-picker.d.ts +1 -1
  54. package/dist/{components → color}/color-picker.js +9 -12
  55. package/dist/{components → color}/color-slider.js +10 -13
  56. package/dist/{components → color}/color-swatch-picker.js +4 -5
  57. package/dist/{components → color}/color-swatch.js +3 -4
  58. package/dist/{components → color}/color-wheel.js +5 -6
  59. package/dist/color/index.d.ts +21 -0
  60. package/dist/color/index.js +21 -0
  61. package/dist/{mixins → color/mixins}/color-area-drag.d.ts +1 -1
  62. package/dist/{mixins → color/mixins}/color-area-drag.js +2 -2
  63. package/dist/{mixins → color/mixins}/color-preview.js +1 -1
  64. package/dist/{mixins → color/mixins}/color-wheel-drag.js +1 -1
  65. package/dist/{styles → color/styles}/rtl-aware-gradient-direction.d.ts +1 -1
  66. package/dist/components/accordion.d.ts +3 -3
  67. package/dist/components/accordion.js +19 -15
  68. package/dist/components/alert-dialog.js +5 -4
  69. package/dist/components/alert.js +10 -20
  70. package/dist/components/aspect-ratio.js +3 -4
  71. package/dist/components/avatar.d.ts +6 -6
  72. package/dist/components/avatar.js +56 -8
  73. package/dist/components/badge.js +11 -9
  74. package/dist/components/breadcrumbs.js +7 -9
  75. package/dist/components/button.d.ts +8 -6
  76. package/dist/components/button.js +22 -14
  77. package/dist/components/calendar.js +13 -24
  78. package/dist/components/card.js +9 -11
  79. package/dist/components/carousel.d.ts +1 -1
  80. package/dist/components/carousel.js +12 -20
  81. package/dist/components/checkbox-group.js +3 -3
  82. package/dist/components/checkbox.js +2 -2
  83. package/dist/components/combobox.js +6 -6
  84. package/dist/components/command.js +10 -14
  85. package/dist/components/cta-group.d.ts +30 -14
  86. package/dist/components/cta-group.js +29 -10
  87. package/dist/components/date-field.js +2 -1
  88. package/dist/components/date-picker.js +4 -5
  89. package/dist/components/date-range-picker.js +3 -2
  90. package/dist/components/description.js +2 -1
  91. package/dist/components/dialog-dismiss.d.ts +18 -0
  92. package/dist/components/dialog-dismiss.js +15 -0
  93. package/dist/components/dialog.js +11 -15
  94. package/dist/components/disclosure.js +10 -14
  95. package/dist/components/drawer.js +3 -4
  96. package/dist/components/field-error.js +3 -3
  97. package/dist/components/form.js +2 -1
  98. package/dist/components/group.js +3 -3
  99. package/dist/components/header.js +3 -3
  100. package/dist/components/heading-scope.js +2 -1
  101. package/dist/components/heading.d.ts +4 -4
  102. package/dist/components/heading.js +7 -7
  103. package/dist/components/highlight.js +17 -12
  104. package/dist/components/hover-card.js +6 -8
  105. package/dist/components/image-placeholder.js +13 -19
  106. package/dist/components/index.d.ts +6 -38
  107. package/dist/components/index.js +6 -38
  108. package/dist/components/input.js +3 -4
  109. package/dist/components/item.js +10 -19
  110. package/dist/components/keyboard.js +3 -3
  111. package/dist/components/label.js +2 -1
  112. package/dist/components/link-button.d.ts +7 -5
  113. package/dist/components/link-button.js +16 -11
  114. package/dist/components/link.js +3 -4
  115. package/dist/components/listbox.js +6 -11
  116. package/dist/components/menu.js +5 -6
  117. package/dist/components/meter.js +5 -6
  118. package/dist/components/modal.js +9 -11
  119. package/dist/components/nav-link.d.ts +1 -1
  120. package/dist/components/nav-link.js +3 -4
  121. package/dist/components/navigation-menu.js +17 -23
  122. package/dist/components/number-field.js +8 -10
  123. package/dist/components/otp-field.js +2 -1
  124. package/dist/components/overlay-arrow.js +3 -4
  125. package/dist/components/pagination.js +8 -10
  126. package/dist/components/popover.js +3 -4
  127. package/dist/components/progress-bar.js +5 -5
  128. package/dist/components/radio-group.js +5 -7
  129. package/dist/components/range-calendar.js +3 -3
  130. package/dist/components/scroll-area.js +4 -5
  131. package/dist/components/search-field.js +8 -11
  132. package/dist/components/section.js +2 -1
  133. package/dist/components/select.js +10 -22
  134. package/dist/components/selection-indicator.js +3 -3
  135. package/dist/components/sentinel-row.js +3 -3
  136. package/dist/components/separator.js +3 -3
  137. package/dist/components/shared-element.js +2 -1
  138. package/dist/components/sheet.js +6 -7
  139. package/dist/components/sidebar.js +48 -76
  140. package/dist/components/slider.js +8 -10
  141. package/dist/components/spinner.js +3 -3
  142. package/dist/components/switch.js +3 -3
  143. package/dist/components/tabs.js +9 -12
  144. package/dist/components/tag-group.js +7 -9
  145. package/dist/components/text-field.js +2 -1
  146. package/dist/components/text.js +2 -1
  147. package/dist/components/textarea.js +3 -4
  148. package/dist/components/time-field.js +2 -1
  149. package/dist/components/toggle-button.js +5 -7
  150. package/dist/components/tooltip.js +3 -3
  151. package/dist/components/typeset.js +128 -123
  152. package/dist/components/youtube-embed.js +2 -1
  153. package/dist/docs/anchor-heading.d.ts +41 -0
  154. package/dist/docs/anchor-heading.js +62 -0
  155. package/dist/docs/callout.d.ts +46 -0
  156. package/dist/docs/callout.js +61 -0
  157. package/dist/docs/code-block.d.ts +74 -0
  158. package/dist/docs/code-block.js +322 -0
  159. package/dist/docs/code-tabs-sync.d.ts +26 -0
  160. package/dist/docs/code-tabs-sync.js +12 -0
  161. package/dist/docs/code-tabs.d.ts +53 -0
  162. package/dist/docs/code-tabs.js +102 -0
  163. package/dist/docs/copy-button.d.ts +31 -0
  164. package/dist/docs/copy-button.js +49 -0
  165. package/dist/docs/docs-feedback.d.ts +55 -0
  166. package/dist/docs/docs-feedback.js +72 -0
  167. package/dist/docs/docs-footer.d.ts +40 -0
  168. package/dist/docs/docs-footer.js +45 -0
  169. package/dist/docs/docs-hub.d.ts +93 -0
  170. package/dist/docs/docs-hub.js +142 -0
  171. package/dist/docs/docs-layout.d.ts +90 -0
  172. package/dist/docs/docs-layout.js +166 -0
  173. package/dist/docs/docs-nav-tools.d.ts +25 -0
  174. package/dist/docs/docs-nav-tools.js +14 -0
  175. package/dist/docs/docs-nav.d.ts +53 -0
  176. package/dist/docs/docs-nav.js +76 -0
  177. package/dist/docs/docs-not-found.d.ts +68 -0
  178. package/dist/docs/docs-not-found.js +100 -0
  179. package/dist/docs/docs-page-header.d.ts +55 -0
  180. package/dist/docs/docs-page-header.js +54 -0
  181. package/dist/docs/docs-pager.d.ts +46 -0
  182. package/dist/docs/docs-pager.js +74 -0
  183. package/dist/docs/file-tree.d.ts +57 -0
  184. package/dist/docs/file-tree.js +142 -0
  185. package/dist/docs/index.d.ts +38 -0
  186. package/dist/docs/index.js +38 -0
  187. package/dist/docs/install-command.d.ts +54 -0
  188. package/dist/docs/install-command.js +33 -0
  189. package/dist/docs/mixins/code-tabs-sync.d.ts +47 -0
  190. package/dist/docs/mixins/code-tabs-sync.js +137 -0
  191. package/dist/docs/mixins/copy-feedback.d.ts +25 -0
  192. package/dist/docs/mixins/copy-feedback.js +49 -0
  193. package/dist/docs/mixins/copy-from-url.d.ts +27 -0
  194. package/dist/docs/mixins/copy-from-url.js +95 -0
  195. package/dist/docs/mixins/docs-nav-tools.d.ts +27 -0
  196. package/dist/docs/mixins/docs-nav-tools.js +97 -0
  197. package/dist/docs/mixins/toc-spy.d.ts +30 -0
  198. package/dist/docs/mixins/toc-spy.js +165 -0
  199. package/dist/docs/next-steps.d.ts +45 -0
  200. package/dist/docs/next-steps.js +79 -0
  201. package/dist/docs/page-actions.d.ts +77 -0
  202. package/dist/docs/page-actions.js +78 -0
  203. package/dist/docs/plan-notice.d.ts +28 -0
  204. package/dist/docs/plan-notice.js +33 -0
  205. package/dist/docs/props-table.d.ts +64 -0
  206. package/dist/docs/props-table.js +147 -0
  207. package/dist/docs/steps.d.ts +51 -0
  208. package/dist/docs/steps.js +112 -0
  209. package/dist/docs/table-of-contents.d.ts +49 -0
  210. package/dist/docs/table-of-contents.js +139 -0
  211. package/dist/docs/ui-label.d.ts +51 -0
  212. package/dist/docs/ui-label.js +64 -0
  213. package/dist/docs/utils/docs-tree.d.ts +81 -0
  214. package/dist/docs/utils/docs-tree.js +57 -0
  215. package/dist/docs/utils/reveal-in-scroller.d.ts +19 -0
  216. package/dist/docs/utils/reveal-in-scroller.js +43 -0
  217. package/dist/landing/accent-text.d.ts +47 -0
  218. package/dist/landing/accent-text.js +107 -0
  219. package/dist/landing/animations/entrance.d.ts +40 -0
  220. package/dist/landing/animations/entrance.js +52 -0
  221. package/dist/landing/announcement-chip.d.ts +45 -0
  222. package/dist/landing/announcement-chip.js +36 -0
  223. package/dist/landing/author-band.d.ts +78 -0
  224. package/dist/landing/author-band.js +190 -0
  225. package/dist/landing/bento.d.ts +99 -0
  226. package/dist/landing/bento.js +138 -0
  227. package/dist/landing/changelog-strip.d.ts +74 -0
  228. package/dist/landing/changelog-strip.js +201 -0
  229. package/dist/{patterns → landing}/check-row.js +5 -7
  230. package/dist/{patterns → landing}/closing-cta.d.ts +4 -4
  231. package/dist/{patterns → landing}/closing-cta.js +8 -8
  232. package/dist/landing/code-stage.d.ts +93 -0
  233. package/dist/landing/code-stage.js +434 -0
  234. package/dist/landing/crosshair.d.ts +44 -0
  235. package/dist/landing/crosshair.js +48 -0
  236. package/dist/landing/curriculum.d.ts +79 -0
  237. package/dist/landing/curriculum.js +194 -0
  238. package/dist/landing/drawn-chart.d.ts +74 -0
  239. package/dist/landing/drawn-chart.js +377 -0
  240. package/dist/landing/event-ticker.d.ts +71 -0
  241. package/dist/landing/event-ticker.js +331 -0
  242. package/dist/landing/fan-out-diagram.d.ts +70 -0
  243. package/dist/landing/fan-out-diagram.js +481 -0
  244. package/dist/{patterns → landing}/faq-band.d.ts +7 -5
  245. package/dist/{patterns → landing}/faq-band.js +11 -12
  246. package/dist/landing/feature-band.d.ts +108 -0
  247. package/dist/landing/feature-band.js +67 -0
  248. package/dist/landing/feature.d.ts +148 -0
  249. package/dist/landing/feature.js +219 -0
  250. package/dist/landing/flow-diagram.d.ts +62 -0
  251. package/dist/landing/flow-diagram.js +240 -0
  252. package/dist/{patterns → landing}/icon-well.d.ts +17 -7
  253. package/dist/landing/icon-well.js +31 -0
  254. package/dist/landing/index.d.ts +52 -0
  255. package/dist/landing/index.js +52 -0
  256. package/dist/{patterns → landing}/install-tabs.js +4 -5
  257. package/dist/landing/landing-header.d.ts +103 -0
  258. package/dist/landing/landing-header.js +110 -0
  259. package/dist/landing/landing-hero.d.ts +119 -0
  260. package/dist/landing/landing-hero.js +172 -0
  261. package/dist/landing/landing-section.d.ts +110 -0
  262. package/dist/landing/landing-section.js +183 -0
  263. package/dist/landing/logo-cloud.d.ts +56 -0
  264. package/dist/landing/logo-cloud.js +160 -0
  265. package/dist/landing/logo-sentence.d.ts +38 -0
  266. package/dist/landing/logo-sentence.js +51 -0
  267. package/dist/landing/marquee.d.ts +44 -0
  268. package/dist/landing/marquee.js +97 -0
  269. package/dist/landing/motion-loop.d.ts +43 -0
  270. package/dist/landing/motion-loop.js +42 -0
  271. package/dist/landing/pricing-band.d.ts +94 -0
  272. package/dist/landing/pricing-band.js +151 -0
  273. package/dist/landing/product-frame.d.ts +108 -0
  274. package/dist/landing/product-frame.js +202 -0
  275. package/dist/{patterns → landing}/proof-strip.d.ts +4 -4
  276. package/dist/{patterns → landing}/proof-strip.js +3 -3
  277. package/dist/landing/rails.d.ts +45 -0
  278. package/dist/landing/rails.js +69 -0
  279. package/dist/landing/rotating-text.d.ts +44 -0
  280. package/dist/landing/rotating-text.js +67 -0
  281. package/dist/landing/segmented-stage.d.ts +75 -0
  282. package/dist/landing/segmented-stage.js +141 -0
  283. package/dist/landing/sequence-diagram.d.ts +65 -0
  284. package/dist/landing/sequence-diagram.js +348 -0
  285. package/dist/landing/site-footer.d.ts +100 -0
  286. package/dist/landing/site-footer.js +274 -0
  287. package/dist/landing/site-header.d.ts +126 -0
  288. package/dist/landing/site-header.js +595 -0
  289. package/dist/{components → landing}/split.d.ts +14 -4
  290. package/dist/{components → landing}/split.js +30 -21
  291. package/dist/landing/sponsor-wall.d.ts +81 -0
  292. package/dist/landing/sponsor-wall.js +241 -0
  293. package/dist/{components → landing}/stat-strip.d.ts +31 -4
  294. package/dist/landing/stat-strip.js +105 -0
  295. package/dist/landing/step-list.d.ts +73 -0
  296. package/dist/landing/step-list.js +182 -0
  297. package/dist/landing/styles/card-grid.d.ts +115 -0
  298. package/dist/landing/styles/card-grid.js +295 -0
  299. package/dist/{patterns → landing}/tabbed-stage.d.ts +26 -8
  300. package/dist/landing/tabbed-stage.js +233 -0
  301. package/dist/landing/testimonial-band.d.ts +110 -0
  302. package/dist/landing/testimonial-band.js +164 -0
  303. package/dist/landing/typed-terminal.d.ts +62 -0
  304. package/dist/landing/typed-terminal.js +233 -0
  305. package/dist/landing/utils/pause-toggle.d.ts +37 -0
  306. package/dist/landing/utils/pause-toggle.js +71 -0
  307. package/dist/mixins/copy-to-clipboard.d.ts +6 -0
  308. package/dist/mixins/copy-to-clipboard.js +17 -1
  309. package/dist/mixins/dialog-dismiss.d.ts +21 -0
  310. package/dist/mixins/dialog-dismiss.js +62 -0
  311. package/dist/mixins/index.d.ts +2 -15
  312. package/dist/mixins/index.js +2 -15
  313. package/dist/styles/index.d.ts +2 -5
  314. package/dist/styles/index.js +2 -5
  315. package/dist/styles/landing.d.ts +200 -0
  316. package/dist/styles/landing.js +516 -0
  317. package/dist/styles/surface-control.d.ts +18 -0
  318. package/dist/styles/surface-control.js +31 -0
  319. package/dist/utils/eyebrow.d.ts +39 -0
  320. package/dist/utils/eyebrow.js +21 -0
  321. package/dist/utils/index.d.ts +1 -5
  322. package/dist/utils/index.js +1 -5
  323. package/package.json +14 -4
  324. package/src/theme.css +87 -22
  325. package/dist/components/feature.d.ts +0 -102
  326. package/dist/components/feature.js +0 -151
  327. package/dist/components/logo-cloud.d.ts +0 -42
  328. package/dist/components/logo-cloud.js +0 -41
  329. package/dist/components/marketing-header.d.ts +0 -71
  330. package/dist/components/marketing-header.js +0 -81
  331. package/dist/components/marketing-section.d.ts +0 -81
  332. package/dist/components/marketing-section.js +0 -103
  333. package/dist/components/stat-strip.js +0 -64
  334. package/dist/patterns/accent-text.d.ts +0 -30
  335. package/dist/patterns/accent-text.js +0 -17
  336. package/dist/patterns/announcement-chip.d.ts +0 -41
  337. package/dist/patterns/announcement-chip.js +0 -49
  338. package/dist/patterns/bento.d.ts +0 -67
  339. package/dist/patterns/bento.js +0 -95
  340. package/dist/patterns/code-stage.d.ts +0 -63
  341. package/dist/patterns/code-stage.js +0 -82
  342. package/dist/patterns/feature-band.d.ts +0 -85
  343. package/dist/patterns/feature-band.js +0 -50
  344. package/dist/patterns/icon-well.js +0 -38
  345. package/dist/patterns/index.d.ts +0 -23
  346. package/dist/patterns/index.js +0 -23
  347. package/dist/patterns/landing-hero.d.ts +0 -93
  348. package/dist/patterns/landing-hero.js +0 -126
  349. package/dist/patterns/product-frame.d.ts +0 -60
  350. package/dist/patterns/product-frame.js +0 -70
  351. package/dist/patterns/step-list.d.ts +0 -45
  352. package/dist/patterns/step-list.js +0 -84
  353. package/dist/patterns/tabbed-stage.js +0 -77
  354. package/dist/styles/marketing.d.ts +0 -120
  355. package/dist/styles/marketing.js +0 -225
  356. package/dist/utils/semantic-color-panel.d.ts +0 -35
  357. package/dist/utils/semantic-color-panel.js +0 -28
  358. /package/dist/{behaviors → app/behaviors}/drag-session.d.ts +0 -0
  359. /package/dist/{behaviors → app/behaviors}/resize-session.d.ts +0 -0
  360. /package/dist/{behaviors → app/behaviors}/resize-session.js +0 -0
  361. /package/dist/{behaviors → app/behaviors}/selection-model.d.ts +0 -0
  362. /package/dist/{behaviors → app/behaviors}/selection-model.js +0 -0
  363. /package/dist/{behaviors → app/behaviors}/toaster.d.ts +0 -0
  364. /package/dist/{components → app}/drop-indicator.d.ts +0 -0
  365. /package/dist/{components → app}/drop-zone.d.ts +0 -0
  366. /package/dist/{components → app}/file-trigger.d.ts +0 -0
  367. /package/dist/{components → app}/menubar.d.ts +0 -0
  368. /package/dist/{mixins → app/mixins}/chart-tooltip.d.ts +0 -0
  369. /package/dist/{mixins → app/mixins}/chart-tooltip.js +0 -0
  370. /package/dist/{mixins → app/mixins}/context-menu.d.ts +0 -0
  371. /package/dist/{mixins → app/mixins}/context-menu.js +0 -0
  372. /package/dist/{mixins → app/mixins}/drag-reorder.d.ts +0 -0
  373. /package/dist/{mixins → app/mixins}/drop-zone.d.ts +0 -0
  374. /package/dist/{mixins → app/mixins}/grid-list-keys.d.ts +0 -0
  375. /package/dist/{mixins → app/mixins}/menubar-keys.d.ts +0 -0
  376. /package/dist/{mixins → app/mixins}/resize-handle.d.ts +0 -0
  377. /package/dist/{mixins/treeKeys.d.ts → app/mixins/tree-keys.d.ts} +0 -0
  378. /package/dist/{components → app}/resizable.d.ts +0 -0
  379. /package/dist/{components → app}/shortcut-list.d.ts +0 -0
  380. /package/dist/{components → app}/skeleton.d.ts +0 -0
  381. /package/dist/{styles → app/styles}/chart-palette.js +0 -0
  382. /package/dist/{styles → app/styles}/graphic-host.js +0 -0
  383. /package/dist/{styles → app/styles}/legend-toggle.js +0 -0
  384. /package/dist/{components → app}/table.d.ts +0 -0
  385. /package/dist/{components → app}/toast.d.ts +0 -0
  386. /package/dist/{components → app}/toolbar.d.ts +0 -0
  387. /package/dist/{utils → app/utils}/chart-marker-indices.d.ts +0 -0
  388. /package/dist/{utils → app/utils}/chart-marker-indices.js +0 -0
  389. /package/dist/{utils → app/utils}/chart-scale.d.ts +0 -0
  390. /package/dist/{behaviors → chat/behaviors}/scroll-follow-model.d.ts +0 -0
  391. /package/dist/{components → chat}/bubble.d.ts +0 -0
  392. /package/dist/{components → chat}/marker.d.ts +0 -0
  393. /package/dist/{components → chat}/message.d.ts +0 -0
  394. /package/dist/{mixins → chat/mixins}/attachment-trigger.d.ts +0 -0
  395. /package/dist/{mixins → chat/mixins}/attachment-trigger.js +0 -0
  396. /package/dist/{mixins → chat/mixins}/message-follow.d.ts +0 -0
  397. /package/dist/{components → color}/color-area.d.ts +0 -0
  398. /package/dist/{components → color}/color-field.d.ts +0 -0
  399. /package/dist/{components → color}/color-slider.d.ts +0 -0
  400. /package/dist/{components → color}/color-swatch-picker.d.ts +0 -0
  401. /package/dist/{components → color}/color-swatch.d.ts +0 -0
  402. /package/dist/{components → color}/color-wheel.d.ts +0 -0
  403. /package/dist/{mixins → color/mixins}/color-channel-sync.d.ts +0 -0
  404. /package/dist/{mixins → color/mixins}/color-channel-sync.js +0 -0
  405. /package/dist/{mixins → color/mixins}/color-preview.d.ts +0 -0
  406. /package/dist/{mixins → color/mixins}/color-wheel-drag.d.ts +0 -0
  407. /package/dist/{styles → color/styles}/rtl-aware-gradient-direction.js +0 -0
  408. /package/dist/{utils → color/utils}/hue-spectrum.d.ts +0 -0
  409. /package/dist/{utils → color/utils}/hue-spectrum.js +0 -0
  410. /package/dist/{patterns → landing}/check-row.d.ts +0 -0
  411. /package/dist/{patterns → landing}/install-tabs.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { bg, border, fg, outline } from "@sdxc/u/color";
3
3
  import { ringShadow, rounded, visibility } from "@sdxc/u/effects";
4
- import { userSelect } from "@sdxc/u/general";
4
+ import { userSelect, mergeMix } from "@sdxc/u/general";
5
5
  import { absolute, center, flex, inlineFlex, insBe, insIe, inset, items, justify, relative, shrink, } from "@sdxc/u/layout";
6
6
  import { overflow } from "@sdxc/u/overflow";
7
7
  import { bs, fit, is, mis } from "@sdxc/u/size";
@@ -42,7 +42,7 @@ export function ImagePlaceholder(handle) {
42
42
  let { size, shape, children, mix, ...rest } = handle.props;
43
43
  let resolvedSize = size ?? DEFAULT_SIZE;
44
44
  let resolvedShape = shape ?? DEFAULT_SHAPE;
45
- return (_jsx("span", { ...rest, "data-slot": "image-placeholder", "data-size": resolvedSize, "data-shape": resolvedShape, mix: [
45
+ return (_jsx("span", { ...rest, "data-slot": "image-placeholder", "data-size": resolvedSize, "data-shape": resolvedShape, mix: mergeMix([
46
46
  when("&:focus-visible", outline({ color: "brand.ring", offset: 2 })),
47
47
  relative(),
48
48
  inlineFlex(),
@@ -75,8 +75,7 @@ export function ImagePlaceholder(handle) {
75
75
  when('& > [data-slot="image"]', rounded("lg")),
76
76
  when('& > [data-slot="fallback"]', rounded("lg")),
77
77
  ]),
78
- mix,
79
- ], children: children }));
78
+ ], mix), children: children }));
80
79
  };
81
80
  }
82
81
  /**
@@ -92,7 +91,7 @@ export function ImagePlaceholder(handle) {
92
91
  ImagePlaceholder.Image = function ImagePlaceholderImage(handle) {
93
92
  return () => {
94
93
  let { mix, ...rest } = handle.props;
95
- return (_jsx("img", { ...rest, "data-slot": "image", mix: [
94
+ return (_jsx("img", { ...rest, "data-slot": "image", mix: mergeMix([
96
95
  absolute(),
97
96
  is("full"),
98
97
  bs("full"),
@@ -100,8 +99,7 @@ ImagePlaceholder.Image = function ImagePlaceholderImage(handle) {
100
99
  inset(0, 0, 0, 0),
101
100
  overflow("hidden"),
102
101
  outline({ color: IMAGE_OUTLINE, width: 1, offset: -1 }),
103
- mix,
104
- ] }));
102
+ ], mix) }));
105
103
  };
106
104
  };
107
105
  /**
@@ -117,7 +115,7 @@ ImagePlaceholder.Image = function ImagePlaceholderImage(handle) {
117
115
  ImagePlaceholder.Fallback = function ImagePlaceholderFallback(handle) {
118
116
  return () => {
119
117
  let { children, mix, ...rest } = handle.props;
120
- return (_jsx("span", { ...rest, "data-slot": "fallback", mix: [
118
+ return (_jsx("span", { ...rest, "data-slot": "fallback", mix: mergeMix([
121
119
  /**
122
120
  * Both layers fill the host and this one follows the image, so it hides while an unbroken
123
121
  * image is present and takes over once the image fails. It hides through `visibility`,
@@ -132,8 +130,7 @@ ImagePlaceholder.Fallback = function ImagePlaceholderFallback(handle) {
132
130
  inset(0, 0, 0, 0),
133
131
  overflow("hidden"),
134
132
  textTransform("uppercase"),
135
- mix,
136
- ], children: children }));
133
+ ], mix), children: children }));
137
134
  };
138
135
  };
139
136
  /**
@@ -149,7 +146,7 @@ ImagePlaceholder.Fallback = function ImagePlaceholderFallback(handle) {
149
146
  ImagePlaceholder.Badge = function ImagePlaceholderBadge(handle) {
150
147
  return () => {
151
148
  let { mix, ...rest } = handle.props;
152
- return (_jsx("span", { ...rest, "data-slot": "badge", mix: [
149
+ return (_jsx("span", { ...rest, "data-slot": "badge", mix: mergeMix([
153
150
  absolute(),
154
151
  is(3),
155
152
  bs(3),
@@ -158,8 +155,7 @@ ImagePlaceholder.Badge = function ImagePlaceholderBadge(handle) {
158
155
  bg("neutral.strong"),
159
156
  insBe("0"),
160
157
  insIe("0"),
161
- mix,
162
- ] }));
158
+ ], mix) }));
163
159
  };
164
160
  };
165
161
  /**
@@ -179,12 +175,11 @@ ImagePlaceholder.Badge = function ImagePlaceholderBadge(handle) {
179
175
  ImagePlaceholder.Group = function ImagePlaceholderGroup(handle) {
180
176
  return () => {
181
177
  let { children, mix, ...rest } = handle.props;
182
- return (_jsx("div", { ...rest, "data-slot": "group", mix: [
178
+ return (_jsx("div", { ...rest, "data-slot": "group", mix: mergeMix([
183
179
  flex(),
184
180
  when("& > * + *", mis(-3)),
185
181
  when('& > [data-slot="image-placeholder"]', ringShadow("neutral.tint")),
186
- mix,
187
- ], children: children }));
182
+ ], mix), children: children }));
188
183
  };
189
184
  };
190
185
  /**
@@ -201,7 +196,7 @@ ImagePlaceholder.GroupCount = function ImagePlaceholderGroupCount(handle) {
201
196
  return () => {
202
197
  let { shape, children, mix, ...rest } = handle.props;
203
198
  let resolvedShape = shape ?? DEFAULT_SHAPE;
204
- return (_jsx("span", { ...rest, "data-slot": "group-count", "data-shape": resolvedShape, mix: [
199
+ return (_jsx("span", { ...rest, "data-slot": "group-count", "data-shape": resolvedShape, mix: mergeMix([
205
200
  relative(),
206
201
  inlineFlex(),
207
202
  items("center"),
@@ -219,7 +214,6 @@ ImagePlaceholder.GroupCount = function ImagePlaceholderGroupCount(handle) {
219
214
  text("sm"),
220
215
  tabularNums(),
221
216
  ringShadow("neutral.tint"),
222
- mix,
223
- ], children: children }));
217
+ ], mix), children: children }));
224
218
  };
225
219
  };
@@ -8,52 +8,36 @@
8
8
  * @copyright Sergio Xalambrí 2026
9
9
  */
10
10
  export * from "./accordion.js";
11
- export * from "./alert.js";
12
11
  export * from "./alert-dialog.js";
12
+ export * from "./alert.js";
13
13
  export * from "./aspect-ratio.js";
14
- export * from "./attachment.js";
15
14
  export * from "./avatar.js";
16
15
  export * from "./badge.js";
17
16
  export * from "./breadcrumbs.js";
18
- export * from "./bubble.js";
19
17
  export * from "./button.js";
20
18
  export * from "./calendar.js";
21
19
  export * from "./card.js";
22
20
  export * from "./carousel.js";
23
- export * from "./chart.js";
24
- export * from "./checkbox.js";
25
21
  export * from "./checkbox-group.js";
26
- export * from "./color-area.js";
27
- export * from "./color-field.js";
28
- export * from "./color-picker.js";
29
- export * from "./color-slider.js";
30
- export * from "./color-swatch.js";
31
- export * from "./color-swatch-picker.js";
32
- export * from "./color-wheel.js";
22
+ export * from "./checkbox.js";
33
23
  export * from "./combobox.js";
34
24
  export * from "./command.js";
35
25
  export * from "./confirm.js";
36
- export * from "./context-menu.js";
37
26
  export * from "./cta-group.js";
38
27
  export * from "./date-field.js";
39
28
  export * from "./date-picker.js";
40
29
  export * from "./date-range-picker.js";
41
30
  export * from "./description.js";
31
+ export * from "./dialog-dismiss.js";
42
32
  export * from "./dialog.js";
43
33
  export * from "./disclosure.js";
44
34
  export * from "./drawer.js";
45
- export * from "./drop-indicator.js";
46
- export * from "./drop-zone.js";
47
- export * from "./empty.js";
48
- export * from "./feature.js";
49
35
  export * from "./field-error.js";
50
- export * from "./file-trigger.js";
51
36
  export * from "./form.js";
52
- export * from "./grid-list.js";
53
37
  export * from "./group.js";
54
38
  export * from "./header.js";
55
- export * from "./heading.js";
56
39
  export * from "./heading-scope.js";
40
+ export * from "./heading.js";
57
41
  export * from "./highlight.js";
58
42
  export * from "./hover-card.js";
59
43
  export * from "./image-placeholder.js";
@@ -61,18 +45,11 @@ export * from "./input.js";
61
45
  export * from "./item.js";
62
46
  export * from "./keyboard.js";
63
47
  export * from "./label.js";
64
- export * from "./link.js";
65
48
  export * from "./link-button.js";
49
+ export * from "./link.js";
66
50
  export * from "./listbox.js";
67
51
  export * from "./logo.js";
68
- export * from "./logo-cloud.js";
69
- export * from "./marker.js";
70
- export * from "./marketing-header.js";
71
- export * from "./marketing-section.js";
72
52
  export * from "./menu.js";
73
- export * from "./menubar.js";
74
- export * from "./message.js";
75
- export * from "./message-scroller.js";
76
53
  export * from "./meter.js";
77
54
  export * from "./modal.js";
78
55
  export * from "./nav-link.js";
@@ -85,7 +62,6 @@ export * from "./popover.js";
85
62
  export * from "./progress-bar.js";
86
63
  export * from "./radio-group.js";
87
64
  export * from "./range-calendar.js";
88
- export * from "./resizable.js";
89
65
  export * from "./scroll-area.js";
90
66
  export * from "./search-field.js";
91
67
  export * from "./section.js";
@@ -95,25 +71,17 @@ export * from "./sentinel-row.js";
95
71
  export * from "./separator.js";
96
72
  export * from "./shared-element.js";
97
73
  export * from "./sheet.js";
98
- export * from "./shortcut-list.js";
99
74
  export * from "./sidebar.js";
100
- export * from "./skeleton.js";
101
75
  export * from "./slider.js";
102
76
  export * from "./spinner.js";
103
- export * from "./split.js";
104
- export * from "./stat-strip.js";
105
77
  export * from "./switch.js";
106
- export * from "./table.js";
107
78
  export * from "./tabs.js";
108
79
  export * from "./tag-group.js";
109
- export * from "./text.js";
110
80
  export * from "./text-field.js";
81
+ export * from "./text.js";
111
82
  export * from "./textarea.js";
112
83
  export * from "./time-field.js";
113
- export * from "./toast.js";
114
84
  export * from "./toggle-button.js";
115
- export * from "./toolbar.js";
116
85
  export * from "./tooltip.js";
117
- export * from "./tree.js";
118
86
  export * from "./typeset.js";
119
87
  export * from "./youtube-embed.js";
@@ -8,52 +8,36 @@
8
8
  * @copyright Sergio Xalambrí 2026
9
9
  */
10
10
  export * from "./accordion.js";
11
- export * from "./alert.js";
12
11
  export * from "./alert-dialog.js";
12
+ export * from "./alert.js";
13
13
  export * from "./aspect-ratio.js";
14
- export * from "./attachment.js";
15
14
  export * from "./avatar.js";
16
15
  export * from "./badge.js";
17
16
  export * from "./breadcrumbs.js";
18
- export * from "./bubble.js";
19
17
  export * from "./button.js";
20
18
  export * from "./calendar.js";
21
19
  export * from "./card.js";
22
20
  export * from "./carousel.js";
23
- export * from "./chart.js";
24
- export * from "./checkbox.js";
25
21
  export * from "./checkbox-group.js";
26
- export * from "./color-area.js";
27
- export * from "./color-field.js";
28
- export * from "./color-picker.js";
29
- export * from "./color-slider.js";
30
- export * from "./color-swatch.js";
31
- export * from "./color-swatch-picker.js";
32
- export * from "./color-wheel.js";
22
+ export * from "./checkbox.js";
33
23
  export * from "./combobox.js";
34
24
  export * from "./command.js";
35
25
  export * from "./confirm.js";
36
- export * from "./context-menu.js";
37
26
  export * from "./cta-group.js";
38
27
  export * from "./date-field.js";
39
28
  export * from "./date-picker.js";
40
29
  export * from "./date-range-picker.js";
41
30
  export * from "./description.js";
31
+ export * from "./dialog-dismiss.js";
42
32
  export * from "./dialog.js";
43
33
  export * from "./disclosure.js";
44
34
  export * from "./drawer.js";
45
- export * from "./drop-indicator.js";
46
- export * from "./drop-zone.js";
47
- export * from "./empty.js";
48
- export * from "./feature.js";
49
35
  export * from "./field-error.js";
50
- export * from "./file-trigger.js";
51
36
  export * from "./form.js";
52
- export * from "./grid-list.js";
53
37
  export * from "./group.js";
54
38
  export * from "./header.js";
55
- export * from "./heading.js";
56
39
  export * from "./heading-scope.js";
40
+ export * from "./heading.js";
57
41
  export * from "./highlight.js";
58
42
  export * from "./hover-card.js";
59
43
  export * from "./image-placeholder.js";
@@ -61,18 +45,11 @@ export * from "./input.js";
61
45
  export * from "./item.js";
62
46
  export * from "./keyboard.js";
63
47
  export * from "./label.js";
64
- export * from "./link.js";
65
48
  export * from "./link-button.js";
49
+ export * from "./link.js";
66
50
  export * from "./listbox.js";
67
51
  export * from "./logo.js";
68
- export * from "./logo-cloud.js";
69
- export * from "./marker.js";
70
- export * from "./marketing-header.js";
71
- export * from "./marketing-section.js";
72
52
  export * from "./menu.js";
73
- export * from "./menubar.js";
74
- export * from "./message.js";
75
- export * from "./message-scroller.js";
76
53
  export * from "./meter.js";
77
54
  export * from "./modal.js";
78
55
  export * from "./nav-link.js";
@@ -85,7 +62,6 @@ export * from "./popover.js";
85
62
  export * from "./progress-bar.js";
86
63
  export * from "./radio-group.js";
87
64
  export * from "./range-calendar.js";
88
- export * from "./resizable.js";
89
65
  export * from "./scroll-area.js";
90
66
  export * from "./search-field.js";
91
67
  export * from "./section.js";
@@ -95,25 +71,17 @@ export * from "./sentinel-row.js";
95
71
  export * from "./separator.js";
96
72
  export * from "./shared-element.js";
97
73
  export * from "./sheet.js";
98
- export * from "./shortcut-list.js";
99
74
  export * from "./sidebar.js";
100
- export * from "./skeleton.js";
101
75
  export * from "./slider.js";
102
76
  export * from "./spinner.js";
103
- export * from "./split.js";
104
- export * from "./stat-strip.js";
105
77
  export * from "./switch.js";
106
- export * from "./table.js";
107
78
  export * from "./tabs.js";
108
79
  export * from "./tag-group.js";
109
- export * from "./text.js";
110
80
  export * from "./text-field.js";
81
+ export * from "./text.js";
111
82
  export * from "./textarea.js";
112
83
  export * from "./time-field.js";
113
- export * from "./toast.js";
114
84
  export * from "./toggle-button.js";
115
- export * from "./toolbar.js";
116
85
  export * from "./tooltip.js";
117
- export * from "./tree.js";
118
86
  export * from "./typeset.js";
119
87
  export * from "./youtube-embed.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { bg, border, fg, outline } from "@sdxc/u/color";
3
3
  import { opacity, rounded } from "@sdxc/u/effects";
4
- import { cursor } from "@sdxc/u/general";
4
+ import { cursor, mergeMix } from "@sdxc/u/general";
5
5
  import { block } from "@sdxc/u/layout";
6
6
  import { bs, is, pb, pi } from "@sdxc/u/size";
7
7
  import { focusVisible, hover, invalid, when } from "@sdxc/u/state";
@@ -33,7 +33,7 @@ export function Input(handle) {
33
33
  return () => {
34
34
  let { color, mix, ...rest } = handle.props;
35
35
  let resolvedColor = color ?? DEFAULT_COLOR;
36
- return (_jsx("input", { ...rest, "data-color": resolvedColor, mix: [
36
+ return (_jsx("input", { ...rest, "data-color": resolvedColor, mix: mergeMix([
37
37
  interactiveTransition(),
38
38
  block(),
39
39
  is("full"),
@@ -68,7 +68,6 @@ export function Input(handle) {
68
68
  invalid([border("danger"), outline({ color: "danger.ring", offset: 2 })]),
69
69
  when("&:disabled", [opacity(50), bg("neutral.bg-tint-hover"), cursor("not-allowed")]),
70
70
  text("sm"),
71
- mix,
72
- ] }));
71
+ ], mix) }));
73
72
  };
74
73
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { fg } from "@sdxc/u/color";
3
- import { raw } from "@sdxc/u/general";
3
+ import { raw, mergeMix } from "@sdxc/u/general";
4
4
  import { basis, center, container, flex, flexCol, flexWrap, gap, grow, items, shrink, } from "@sdxc/u/layout";
5
5
  import { atMax } from "@sdxc/u/responsive";
6
6
  import { bs, is, mis, minIs, pb, pi } from "@sdxc/u/size";
@@ -50,7 +50,7 @@ const NARROW_CONTAINER_SIZE = "20rem";
50
50
  export function Item(handle) {
51
51
  return () => {
52
52
  let { children, mix, ...rest } = handle.props;
53
- return (_jsx("div", { ...rest, "data-slot": "item", mix: [
53
+ return (_jsx("div", { ...rest, "data-slot": "item", mix: mergeMix([
54
54
  flex(),
55
55
  items("center"),
56
56
  gap("var(--ui-item-gap, 0.75rem)"),
@@ -63,8 +63,7 @@ export function Item(handle) {
63
63
  * restyle its descendants, never the row itself.
64
64
  */
65
65
  flexWrap("wrap"),
66
- mix,
67
- ], children: children }));
66
+ ], mix), children: children }));
68
67
  };
69
68
  }
70
69
  /**
@@ -87,15 +86,14 @@ export function Item(handle) {
87
86
  Item.Media = function ItemMedia(handle) {
88
87
  return () => {
89
88
  let { children, mix, ...rest } = handle.props;
90
- return (_jsx("div", { ...rest, "data-slot": "media", mix: [
89
+ return (_jsx("div", { ...rest, "data-slot": "media", mix: mergeMix([
91
90
  center(),
92
91
  fg("neutral"),
93
92
  when("& > svg", [is(5), bs(5)]),
94
93
  shrink(),
95
94
  is("var(--ui-item-media-size, 2rem)"),
96
95
  bs("var(--ui-item-media-size, 2rem)"),
97
- mix,
98
- ], children: children }));
96
+ ], mix), children: children }));
99
97
  };
100
98
  };
101
99
  /**
@@ -114,7 +112,7 @@ Item.Media = function ItemMedia(handle) {
114
112
  Item.Content = function ItemContent(handle) {
115
113
  return () => {
116
114
  let { children, mix, ...rest } = handle.props;
117
- return (_jsx("div", { ...rest, "data-slot": "content", mix: [flex(), flexCol(), minIs(0), gap(0.5), grow(), shrink(1), basis("0%"), mix], children: children }));
115
+ return (_jsx("div", { ...rest, "data-slot": "content", mix: mergeMix([flex(), flexCol(), minIs(0), gap(0.5), grow(), shrink(1), basis("0%")], mix), children: children }));
118
116
  };
119
117
  };
120
118
  /**
@@ -130,7 +128,7 @@ Item.Content = function ItemContent(handle) {
130
128
  Item.Title = function ItemTitle(handle) {
131
129
  return () => {
132
130
  let { children, mix, ...rest } = handle.props;
133
- return (_jsx("div", { ...rest, "data-slot": "title", mix: [weight("medium"), fg("neutral.emphasis"), truncate(), text("sm"), mix], children: children }));
131
+ return (_jsx("div", { ...rest, "data-slot": "title", mix: mergeMix([weight("medium"), fg("neutral.emphasis"), truncate(), text("sm")], mix), children: children }));
134
132
  };
135
133
  };
136
134
  /**
@@ -146,13 +144,7 @@ Item.Title = function ItemTitle(handle) {
146
144
  Item.Description = function ItemDescription(handle) {
147
145
  return () => {
148
146
  let { children, mix, ...rest } = handle.props;
149
- return (_jsx("p", { ...rest, "data-slot": "description", mix: [
150
- fg("neutral.muted"),
151
- truncate(),
152
- fontSize("0.8125rem"),
153
- leading("calc(1.125 / 0.8125)"),
154
- mix,
155
- ], children: children }));
147
+ return (_jsx("p", { ...rest, "data-slot": "description", mix: mergeMix([fg("neutral.muted"), truncate(), fontSize("0.8125rem"), leading("calc(1.125 / 0.8125)")], mix), children: children }));
156
148
  };
157
149
  };
158
150
  /**
@@ -171,7 +163,7 @@ Item.Description = function ItemDescription(handle) {
171
163
  Item.Actions = function ItemActions(handle) {
172
164
  return () => {
173
165
  let { children, mix, ...rest } = handle.props;
174
- return (_jsx("div", { ...rest, "data-slot": "actions", mix: [
166
+ return (_jsx("div", { ...rest, "data-slot": "actions", mix: mergeMix([
175
167
  flex(),
176
168
  items("center"),
177
169
  mis("auto"),
@@ -184,7 +176,6 @@ Item.Actions = function ItemActions(handle) {
184
176
  marginInlineStart: "calc(var(--ui-item-media-size, 2rem) + var(--ui-item-gap, 0.75rem))",
185
177
  }),
186
178
  ]),
187
- mix,
188
- ], children: children }));
179
+ ], mix), children: children }));
189
180
  };
190
181
  };
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx } from "remix/component/jsx-runtime";
2
2
  import { bg, border, fg } from "@sdxc/u/color";
3
3
  import { rounded } from "@sdxc/u/effects";
4
+ import { mergeMix } from "@sdxc/u/general";
4
5
  import { inlineFlex, items, justify } from "@sdxc/u/layout";
5
6
  import { bs, minIs, mis, pi } from "@sdxc/u/size";
6
7
  import { leading, tabularNums, text } from "@sdxc/u/typography";
@@ -17,7 +18,7 @@ import { leading, tabularNums, text } from "@sdxc/u/typography";
17
18
  export function Keyboard(handle) {
18
19
  return () => {
19
20
  let { mix, ...rest } = handle.props;
20
- return (_jsx("kbd", { ...rest, mix: [
21
+ return (_jsx("kbd", { ...rest, mix: mergeMix([
21
22
  mis("auto"),
22
23
  /**
23
24
  * The cap centers its glyph as an inline box, so a key sits inside the sentence
@@ -40,7 +41,6 @@ export function Keyboard(handle) {
40
41
  text("xs"),
41
42
  leading("none"),
42
43
  tabularNums(),
43
- mix,
44
- ] }));
44
+ ], mix) }));
45
45
  };
46
46
  }
@@ -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 { fontSize, leading, weight } from "@sdxc/u/typography";
4
5
  /**
5
6
  * Renders its children inside a native `<label>` element, sized and colored
@@ -19,6 +20,6 @@ import { fontSize, leading, weight } from "@sdxc/u/typography";
19
20
  export function Label(handle) {
20
21
  return () => {
21
22
  let { mix, ...rest } = handle.props;
22
- return (_jsx("label", { ...rest, mix: [weight("medium"), fg("neutral.emphasis"), fontSize("sm"), leading("none"), mix] }));
23
+ return (_jsx("label", { ...rest, mix: mergeMix([weight("medium"), fg("neutral.emphasis"), fontSize("sm"), leading("none")], mix) }));
23
24
  };
24
25
  }
@@ -21,14 +21,16 @@ export declare namespace LinkButton {
21
21
  type Color = SemanticColor;
22
22
  /**
23
23
  * Visual weight the link renders with: a solid fill with an on-solid
24
- * foreground, a transparent fill with a strong colored border, or a fully
25
- * transparent fill with just a colored label.
24
+ * foreground, a transparent fill with a strong colored border, a fully
25
+ * transparent fill with just a colored label, or a raised `surface` fill with
26
+ * the emphasis ink and a tactile edge — a secondary that reads as a control
27
+ * beside a solid primary, and turns translucent inside inverse and brand bands.
26
28
  */
27
- type Variant = "solid" | "outline" | "ghost";
29
+ type Variant = "solid" | "outline" | "ghost" | "surface";
28
30
  /**
29
31
  * Size variant controlling the link's padding and font size.
30
- * Marketing pairing: `"sm"` is ~32px for nav rows, `"lg"` is ~48px for
31
- * hero {@link CtaGroup} actions — keep those slots on different sizes.
32
+ * Inside a {@link CtaGroup} an omitted size takes the group's, so a hero row
33
+ * sizes every action at once; `"md"` is the 40px landing CTA.
32
34
  */
33
35
  type Size = "sm" | "md" | "lg";
34
36
  /**
@@ -1,15 +1,17 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
2
  import { bg, border, fg, outline } from "@sdxc/u/color";
3
- import { opacity, rounded } from "@sdxc/u/effects";
4
- import { cursor, pointerEvents, userSelect } from "@sdxc/u/general";
3
+ import { opacity } from "@sdxc/u/effects";
4
+ import { cursor, pointerEvents, raw, userSelect, mergeMix } from "@sdxc/u/general";
5
5
  import { gap, inlineFlex, items, justify, shrink } from "@sdxc/u/layout";
6
6
  import { bs, is, minBs, pb, pi, pie, pis } from "@sdxc/u/size";
7
7
  import { active, data, hover, when } from "@sdxc/u/state";
8
- import { text, weight } from "@sdxc/u/typography";
8
+ import { text } from "@sdxc/u/typography";
9
9
  import { hitArea } from "../styles/hit-area.js";
10
10
  import { interactiveTransition } from "../styles/interactive-transition.js";
11
+ import { surfaceControl } from "../styles/surface-control.js";
11
12
  import { glyphEdges } from "../utils/glyph-edges.js";
12
13
  import { prefetchAttribute, rendersPrefetchHint } from "../utils/link-prefetch.js";
14
+ import { CtaGroup } from "./cta-group.js";
13
15
  /** Semantic color role {@link LinkButton} falls back to when `color` is omitted. */
14
16
  const DEFAULT_COLOR = "neutral";
15
17
  /** Visual weight {@link LinkButton} falls back to when `variant` is omitted. */
@@ -37,10 +39,11 @@ export function LinkButton(handle) {
37
39
  let { color, variant, size, prefetch, children, mix, ...rest } = handle.props;
38
40
  let resolvedColor = color ?? DEFAULT_COLOR;
39
41
  let resolvedVariant = variant ?? DEFAULT_VARIANT;
40
- let resolvedSize = size ?? DEFAULT_SIZE;
42
+ let group = handle.context.get(CtaGroup);
43
+ let resolvedSize = size ?? group?.size ?? DEFAULT_SIZE;
41
44
  let resolvedPrefetch = prefetch ?? DEFAULT_PREFETCH;
42
45
  let edges = glyphEdges(children);
43
- return (_jsxs(_Fragment, { children: [_jsx("a", { ...rest, "data-color": resolvedColor, "data-variant": resolvedVariant, "data-size": resolvedSize, "data-rmx-prefetch": prefetchAttribute(resolvedPrefetch), "data-glyph-start": edges.start || undefined, "data-glyph-end": edges.end || undefined, mix: [
46
+ return (_jsxs(_Fragment, { children: [_jsx("a", { ...rest, "data-color": resolvedColor, "data-variant": resolvedVariant, "data-size": resolvedSize, "data-rmx-prefetch": prefetchAttribute(resolvedPrefetch), "data-glyph-start": edges.start || undefined, "data-glyph-end": edges.end || undefined, mix: mergeMix([
44
47
  when("&:focus-visible", [
45
48
  outline({ color: "brand.ring", offset: 2 }),
46
49
  data("color", "neutral", outline("neutral.ring")),
@@ -61,8 +64,10 @@ export function LinkButton(handle) {
61
64
  * than the words and a squashed icon reads as a rendering fault.
62
65
  */
63
66
  when("& > svg", [shrink(), is(4), bs(4)]),
64
- rounded("md"),
65
- weight("medium"),
67
+ raw({
68
+ borderRadius: "var(--ui-button-radius, var(--ui-radius-md, 0.375rem))",
69
+ fontWeight: "var(--ui-button-weight, 500)",
70
+ }),
66
71
  /** A small control reaches `--ui-target-size` however a consumer positions it. */
67
72
  hitArea({ anchor: "flex-center" }),
68
73
  pi(4),
@@ -146,7 +151,7 @@ export function LinkButton(handle) {
146
151
  ]),
147
152
  data("color", "neutral", [
148
153
  border("neutral"),
149
- fg("neutral"),
154
+ fg("neutral.emphasis"),
150
155
  hover([bg("neutral.tint"), border("neutral.border-hover")]),
151
156
  active(bg("neutral.bg-tint-hover")),
152
157
  ]),
@@ -177,7 +182,7 @@ export function LinkButton(handle) {
177
182
  active(bg("brand.bg-tint-hover")),
178
183
  ]),
179
184
  data("color", "neutral", [
180
- fg("neutral"),
185
+ fg("neutral.emphasis"),
181
186
  hover(bg("neutral.bg-tint-hover")),
182
187
  active(bg("neutral.bg-tint-pressed")),
183
188
  ]),
@@ -198,13 +203,13 @@ export function LinkButton(handle) {
198
203
  ]),
199
204
  ]),
200
205
  data("variant", "ghost", [bg("transparent"), border("transparent")]),
206
+ data("variant", "surface", surfaceControl()),
201
207
  when('&[aria-disabled="true"]', opacity(50)),
202
208
  when('&[aria-disabled="true"]', [cursor("not-allowed"), pointerEvents()]),
203
209
  cursor("default"),
204
210
  userSelect(),
205
211
  text("sm"),
206
212
  data("size", "sm", text("xs")),
207
- mix,
208
- ], children: children }), rendersPrefetchHint(resolvedPrefetch, rest.href) && (_jsx("link", { rel: "prefetch", href: rest.href }))] }));
213
+ ], mix), children: children }), rendersPrefetchHint(resolvedPrefetch, rest.href) && (_jsx("link", { rel: "prefetch", href: rest.href }))] }));
209
214
  };
210
215
  }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
2
  import { colorMix, fg, outline } from "@sdxc/u/color";
3
3
  import { opacity, rounded } from "@sdxc/u/effects";
4
- import { cursor, raw, var as varUtility } from "@sdxc/u/general";
4
+ import { cursor, raw, var as varUtility, mergeMix } from "@sdxc/u/general";
5
5
  import { data, when } from "@sdxc/u/state";
6
6
  import { textDecoration } from "@sdxc/u/typography";
7
7
  import { interactiveTransition } from "../styles/interactive-transition.js";
@@ -29,7 +29,7 @@ export function Link(handle) {
29
29
  let { color, prefetch, mix, ...rest } = handle.props;
30
30
  let resolvedColor = color ?? DEFAULT_COLOR;
31
31
  let resolvedPrefetch = prefetch ?? DEFAULT_PREFETCH;
32
- return (_jsxs(_Fragment, { children: [_jsx("a", { "data-color": resolvedColor, "data-rmx-prefetch": prefetchAttribute(resolvedPrefetch), ...rest, mix: [
32
+ return (_jsxs(_Fragment, { children: [_jsx("a", { "data-color": resolvedColor, "data-rmx-prefetch": prefetchAttribute(resolvedPrefetch), ...rest, mix: mergeMix([
33
33
  when("&:focus-visible", [
34
34
  outline({ color: "brand.ring", offset: 2 }),
35
35
  data("color", "neutral", outline("neutral.ring")),
@@ -83,7 +83,6 @@ export function Link(handle) {
83
83
  when("&:hover", raw({ textDecorationColor: varUtility("ui-warning-fg") })),
84
84
  ]),
85
85
  when('&[aria-disabled="true"]', [cursor("not-allowed"), textDecoration("none")]),
86
- mix,
87
- ] }), rendersPrefetchHint(resolvedPrefetch, rest.href) && (_jsx("link", { rel: "prefetch", href: rest.href }))] }));
86
+ ], mix) }), rendersPrefetchHint(resolvedPrefetch, rest.href) && (_jsx("link", { rel: "prefetch", href: rest.href }))] }));
88
87
  };
89
88
  }