@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,63 +0,0 @@
1
- /**
2
- * A titled mono panel for install samples, CLI output, or code snippets on a
3
- * landing. The optional actions slot holds a copy control the page supplies;
4
- * the library never invents a clipboard button.
5
- *
6
- * @author [Sergio Xalambrí](https://sergiodxa.com)
7
- * @copyright Sergio Xalambrí 2026
8
- */
9
- import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
- /**
11
- * Prop types for {@link CodeStage}.
12
- */
13
- export declare namespace CodeStage {
14
- /**
15
- * Surface treatment: a light code card, or a darker terminal panel.
16
- */
17
- type Variant = "code" | "terminal";
18
- /**
19
- * Per-part styling for chrome the stage renders besides its host.
20
- */
21
- interface PartsProps {
22
- /** Styling for the optional title bar. */
23
- header?: TagProps<"div">["mix"];
24
- /** Styling for the mono body that wraps children. */
25
- body?: TagProps<"pre">["mix"];
26
- }
27
- /**
28
- * Props accepted by {@link CodeStage}.
29
- */
30
- interface Props extends Omit<TagProps<"div">, "title"> {
31
- /** Surface treatment. Defaults to {@link DEFAULT_VARIANT}. */
32
- variant?: Variant;
33
- /** Optional title or path shown in the header. */
34
- title?: RemixNode;
35
- /** Optional trailing control in the header — typically a copy button. */
36
- actions?: RemixNode;
37
- /** Per-part styling for header and body. */
38
- parts?: PartsProps;
39
- /** Mono body content — a command, snippet, or terminal output. */
40
- children: RemixNode;
41
- }
42
- }
43
- /**
44
- * Renders an optional titled header and a mono body. Prefer
45
- * `variant="terminal"` when the sample should read as a shell session.
46
- *
47
- * @param handle Runtime handle carrying the host `<div>`'s props.
48
- * @returns The render function producing the stage's markup.
49
- * @example
50
- * <CodeStage title="install.sh" actions={copyControl}>
51
- * {t("install.command")}
52
- * </CodeStage>
53
- * @example
54
- * <CodeStage variant="terminal" title={t("cli.prompt")}>
55
- * {t("cli.output")}
56
- * </CodeStage>
57
- */
58
- export declare function CodeStage(handle: Handle<CodeStage.Props>): () => import("remix/component").RemixElement;
59
- /**
60
- * Alias for {@link CodeStage} with terminal chrome — same props, same host.
61
- * Prefer this name when the sample is a shell session rather than a file.
62
- */
63
- export declare const TerminalPanel: typeof CodeStage;
@@ -1,82 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
- import { bg, border, fg } from "@sdxc/u/color";
3
- import { rounded } from "@sdxc/u/effects";
4
- import { raw } from "@sdxc/u/general";
5
- import { hstack, vstack } from "@sdxc/u/layout";
6
- import { overflowX } from "@sdxc/u/overflow";
7
- import { m, p } from "@sdxc/u/size";
8
- import { font, text, weight } from "@sdxc/u/typography";
9
- /** Panel chrome {@link CodeStage} applies when `variant` is omitted. */
10
- const DEFAULT_VARIANT = "code";
11
- /**
12
- * Renders an optional titled header and a mono body. Prefer
13
- * `variant="terminal"` when the sample should read as a shell session.
14
- *
15
- * @param handle Runtime handle carrying the host `<div>`'s props.
16
- * @returns The render function producing the stage's markup.
17
- * @example
18
- * <CodeStage title="install.sh" actions={copyControl}>
19
- * {t("install.command")}
20
- * </CodeStage>
21
- * @example
22
- * <CodeStage variant="terminal" title={t("cli.prompt")}>
23
- * {t("cli.output")}
24
- * </CodeStage>
25
- */
26
- export function CodeStage(handle) {
27
- return () => {
28
- let { actions, children, mix, parts, title, variant, ...rest } = handle.props;
29
- let resolvedVariant = variant ?? DEFAULT_VARIANT;
30
- let isTerminal = resolvedVariant === "terminal";
31
- let showHeader = title !== undefined || actions !== undefined;
32
- return (_jsxs("div", { ...rest, "data-slot": "code-stage", "data-variant": resolvedVariant, mix: [
33
- vstack({ gap: 0, align: "stretch" }),
34
- rounded("lg"),
35
- border({ color: "neutral", width: 1, style: "solid" }),
36
- isTerminal
37
- ? [
38
- raw({
39
- backgroundColor: "color-mix(in oklab, CanvasText 92%, Canvas)",
40
- color: "Canvas",
41
- }),
42
- ]
43
- : bg(),
44
- mix,
45
- ], children: [showHeader ? (_jsxs("div", { mix: [
46
- hstack({ gap: 2, align: "center", justify: "between" }),
47
- p(2, 2, 2, 3),
48
- raw({
49
- borderBlockEndWidth: "1px",
50
- borderBlockEndStyle: "solid",
51
- borderBlockEndColor: isTerminal
52
- ? "color-mix(in oklab, Canvas 18%, transparent)"
53
- : "var(--ui-neutral-border)",
54
- }),
55
- parts?.header,
56
- ], children: [title ? (_jsx("span", { mix: [
57
- font("mono"),
58
- text("sm"),
59
- weight("medium"),
60
- isTerminal ? fg("neutral.muted") : fg("neutral"),
61
- isTerminal ? raw({ color: "color-mix(in oklab, Canvas 70%, transparent)" }) : [],
62
- ], children: title })) : (_jsx("span", {})), actions] })) : null, _jsx("pre", { mix: [
63
- m(0),
64
- p(4),
65
- font("mono"),
66
- text("sm"),
67
- overflowX("auto"),
68
- raw({
69
- overscrollBehaviorInline: "contain",
70
- whiteSpace: "pre-wrap",
71
- overflowWrap: "anywhere",
72
- }),
73
- isTerminal ? raw({ color: "Canvas" }) : fg("neutral.emphasis"),
74
- parts?.body,
75
- ], children: children })] }));
76
- };
77
- }
78
- /**
79
- * Alias for {@link CodeStage} with terminal chrome — same props, same host.
80
- * Prefer this name when the sample is a shell session rather than a file.
81
- */
82
- export const TerminalPanel = CodeStage;
@@ -1,85 +0,0 @@
1
- /**
2
- * Mid-page feature band: a {@link MarketingHeader} plus either a {@link Split},
3
- * a {@link Feature.Grid}, or a {@link StepList}, selected by `layout`.
4
- *
5
- * @author [Sergio Xalambrí](https://sergiodxa.com)
6
- * @copyright Sergio Xalambrí 2026
7
- */
8
- import type { Handle, Props as TagProps, RemixNode } from "remix/component";
9
- import { Feature } from "../components/feature.js";
10
- import { MarketingHeader } from "../components/marketing-header.js";
11
- import { MarketingSection } from "../components/marketing-section.js";
12
- import { Split } from "../components/split.js";
13
- /**
14
- * Prop types for {@link FeatureBand}.
15
- */
16
- export declare namespace FeatureBand {
17
- /**
18
- * How the band body lays out under the header.
19
- */
20
- type Layout = "split" | "grid" | "steps";
21
- /**
22
- * Band fill forwarded to {@link MarketingSection}.
23
- */
24
- type Tone = MarketingSection.Tone;
25
- /**
26
- * Per-part styling for slots the band composes.
27
- */
28
- interface PartsProps {
29
- /** Styling for the header title. */
30
- title?: TagProps<"h1">["mix"];
31
- /** Styling for the header lead. */
32
- description?: TagProps<"p">["mix"];
33
- /** Styling for the media column when `layout="split"`. */
34
- media?: TagProps<"div">["mix"];
35
- }
36
- /**
37
- * Props accepted by {@link FeatureBand}.
38
- */
39
- interface Props extends Omit<MarketingSection.Props, "children" | "tone" | "title" | "parts"> {
40
- /** Body layout. Defaults to {@link DEFAULT_LAYOUT}. */
41
- layout?: Layout;
42
- /** Band fill. Defaults to {@link DEFAULT_TONE}. */
43
- tone?: Tone;
44
- /** Optional eyebrow above the title. */
45
- eyebrow?: RemixNode;
46
- /** Eyebrow chrome forwarded to {@link MarketingHeader}. */
47
- eyebrowVariant?: MarketingHeader.EyebrowVariant;
48
- /** Section title — required, always supplied by the page. */
49
- title: RemixNode;
50
- /** Supporting lead under the title. */
51
- description?: RemixNode;
52
- /**
53
- * Media for `layout="split"`. Ignored for `"grid"` and `"steps"`.
54
- */
55
- media?: RemixNode;
56
- /** Which column is wider when `layout="split"`. */
57
- lean?: Split.Lean;
58
- /** Grid column count when `layout="grid"`. */
59
- columns?: Feature.Columns;
60
- /**
61
- * Body content: claim list / copy for `"split"`, {@link Feature} cells
62
- * for `"grid"`, or {@link StepList.Item} children for `"steps"`.
63
- */
64
- children?: RemixNode;
65
- /** Per-part styling for title, lead, and media. */
66
- parts?: PartsProps;
67
- }
68
- }
69
- /**
70
- * Renders a feature band with a chapter header and a split, grid, or steps
71
- * body. Opens a nested {@link HeadingScope} so cell titles sit under the
72
- * section heading.
73
- *
74
- * @param handle Runtime handle carrying the band's props.
75
- * @returns The render function producing the band's markup.
76
- * @example
77
- * <FeatureBand layout="split" title={t("f1.title")} description={t("f1.lead")} media={shot}>
78
- * <ul><li>{t("f1.claim")}</li></ul>
79
- * </FeatureBand>
80
- * @example
81
- * <FeatureBand layout="grid" title={t("grid.title")} columns={3}>
82
- * <Feature>...</Feature>
83
- * </FeatureBand>
84
- */
85
- export declare function FeatureBand(handle: Handle<FeatureBand.Props>): () => import("remix/component").RemixElement;
@@ -1,50 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
- import { vstack } from "@sdxc/u/layout";
3
- import { Feature } from "../components/feature.js";
4
- import { HeadingScope } from "../components/heading-scope.js";
5
- import { MarketingHeader } from "../components/marketing-header.js";
6
- import { MarketingSection } from "../components/marketing-section.js";
7
- import { Split } from "../components/split.js";
8
- import { StepList } from "./step-list.js";
9
- /** Layout {@link FeatureBand} applies when `layout` is omitted. */
10
- const DEFAULT_LAYOUT = "split";
11
- /** Band fill {@link FeatureBand} applies when `tone` is omitted. */
12
- const DEFAULT_TONE = "plain";
13
- /**
14
- * Renders a feature band with a chapter header and a split, grid, or steps
15
- * body. Opens a nested {@link HeadingScope} so cell titles sit under the
16
- * section heading.
17
- *
18
- * @param handle Runtime handle carrying the band's props.
19
- * @returns The render function producing the band's markup.
20
- * @example
21
- * <FeatureBand layout="split" title={t("f1.title")} description={t("f1.lead")} media={shot}>
22
- * <ul><li>{t("f1.claim")}</li></ul>
23
- * </FeatureBand>
24
- * @example
25
- * <FeatureBand layout="grid" title={t("grid.title")} columns={3}>
26
- * <Feature>...</Feature>
27
- * </FeatureBand>
28
- */
29
- export function FeatureBand(handle) {
30
- return () => {
31
- let { children, columns, description, eyebrow, eyebrowVariant, layout, lean, media, mix, parts, ruled, spacing, title, tone, ...rest } = handle.props;
32
- let resolvedLayout = layout ?? DEFAULT_LAYOUT;
33
- let resolvedTone = tone ?? DEFAULT_TONE;
34
- let resolvedSpacing = spacing ?? "normal";
35
- let body = _jsx("div", { mix: [vstack({ gap: 4, align: "stretch" })], children: children });
36
- if (resolvedLayout === "grid") {
37
- body = _jsx(Feature.Grid, { columns: columns, children: children });
38
- }
39
- else if (resolvedLayout === "steps") {
40
- body = _jsx(StepList, { children: children });
41
- }
42
- else if (media !== undefined) {
43
- body = (_jsxs(Split, { lean: lean, children: [_jsx(Split.Copy, { checks: Boolean(children), children: children }), _jsx(Split.Media, { mix: [parts?.media], children: media })] }));
44
- }
45
- return (_jsx(MarketingSection, { ...rest, tone: resolvedTone, spacing: resolvedSpacing, ruled: ruled, mix: mix, children: _jsx(HeadingScope, { children: _jsxs("div", { mix: [vstack({ gap: 0, align: "stretch" })], children: [_jsx(MarketingHeader, { eyebrow: eyebrow, eyebrowVariant: eyebrowVariant, description: description, parts: {
46
- title: parts?.title,
47
- description: parts?.description,
48
- }, children: title }), _jsx(HeadingScope, { children: body })] }) }) }));
49
- };
50
- }
@@ -1,38 +0,0 @@
1
- import { jsx as _jsx } from "remix/component/jsx-runtime";
2
- import { bg, border, fg } from "@sdxc/u/color";
3
- import { rounded } from "@sdxc/u/effects";
4
- import { center, inlineFlex } from "@sdxc/u/layout";
5
- import { bs, is } from "@sdxc/u/size";
6
- /** Side length {@link IconWell} applies when `size` is omitted. */
7
- const DEFAULT_SIZE = "md";
8
- /**
9
- * Centers a glyph in a brand-tinted rounded square so marketing claim icons
10
- * share one size language across bands.
11
- *
12
- * @param handle Runtime handle carrying the host `<span>`'s props.
13
- * @returns The render function producing the well's markup.
14
- * @example
15
- * <IconWell><ZapIcon size={18} aria-hidden="true" /></IconWell>
16
- */
17
- export function IconWell(handle) {
18
- return () => {
19
- let { mix, size, ...rest } = handle.props;
20
- let resolvedSize = size ?? DEFAULT_SIZE;
21
- let side = 10;
22
- if (resolvedSize === "sm")
23
- side = 8;
24
- else if (resolvedSize === "lg")
25
- side = 12;
26
- return (_jsx("span", { ...rest, "data-slot": "icon-well", "data-size": resolvedSize, mix: [
27
- inlineFlex(),
28
- center(),
29
- is(side),
30
- bs(side),
31
- rounded("lg"),
32
- bg("brand.tint"),
33
- fg("brand"),
34
- border({ color: "brand", width: 1, style: "solid" }),
35
- mix,
36
- ] }));
37
- };
38
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Barrel for marketing landing patterns: composition craft and page building
3
- * blocks imported as `@sdxc/ui/patterns` so product chrome stays on the root
4
- * catalog.
5
- *
6
- * @author [Sergio Xalambrí](https://sergiodxa.com)
7
- * @copyright Sergio Xalambrí 2026
8
- */
9
- export * from "./accent-text.js";
10
- export * from "./announcement-chip.js";
11
- export * from "./bento.js";
12
- export * from "./check-row.js";
13
- export * from "./closing-cta.js";
14
- export * from "./code-stage.js";
15
- export * from "./faq-band.js";
16
- export * from "./feature-band.js";
17
- export * from "./icon-well.js";
18
- export * from "./install-tabs.js";
19
- export * from "./landing-hero.js";
20
- export * from "./product-frame.js";
21
- export * from "./proof-strip.js";
22
- export * from "./step-list.js";
23
- export * from "./tabbed-stage.js";
@@ -1,23 +0,0 @@
1
- /**
2
- * Barrel for marketing landing patterns: composition craft and page building
3
- * blocks imported as `@sdxc/ui/patterns` so product chrome stays on the root
4
- * catalog.
5
- *
6
- * @author [Sergio Xalambrí](https://sergiodxa.com)
7
- * @copyright Sergio Xalambrí 2026
8
- */
9
- export * from "./accent-text.js";
10
- export * from "./announcement-chip.js";
11
- export * from "./bento.js";
12
- export * from "./check-row.js";
13
- export * from "./closing-cta.js";
14
- export * from "./code-stage.js";
15
- export * from "./faq-band.js";
16
- export * from "./feature-band.js";
17
- export * from "./icon-well.js";
18
- export * from "./install-tabs.js";
19
- export * from "./landing-hero.js";
20
- export * from "./product-frame.js";
21
- export * from "./proof-strip.js";
22
- export * from "./step-list.js";
23
- export * from "./tabbed-stage.js";
@@ -1,93 +0,0 @@
1
- /**
2
- * Above-the-fold landing band: optional eyebrow, display title, lead, CTA
3
- * cluster, and a media slot. Encodes the catalog hero pattern so pages supply
4
- * copy and media without re-deriving spacing.
5
- *
6
- * @author [Sergio Xalambrí](https://sergiodxa.com)
7
- * @copyright Sergio Xalambrí 2026
8
- */
9
- import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
- import { MarketingSection } from "../components/marketing-section.js";
11
- /**
12
- * Prop types for {@link LandingHero}.
13
- */
14
- export declare namespace LandingHero {
15
- /**
16
- * Whether the copy stack stretches start-aligned or centers as one statement.
17
- */
18
- type Align = MarketingSection.Align;
19
- /**
20
- * Where the media slot sits: beside the copy, under it, or as a faded
21
- * background behind the statement.
22
- */
23
- type MediaPlacement = "end" | "below" | "background";
24
- /**
25
- * Band fill forwarded to {@link MarketingSection}.
26
- */
27
- type Tone = MarketingSection.Tone;
28
- /**
29
- * How the optional eyebrow reads — same contract as {@link MarketingHeader}.
30
- */
31
- type EyebrowVariant = "pill" | "mono" | "chip";
32
- /**
33
- * Per-part styling for slots the hero composes.
34
- */
35
- interface PartsProps {
36
- /** Styling for the optional eyebrow. */
37
- eyebrow?: TagProps<"span">["mix"];
38
- /** Styling for the title {@link Heading}. */
39
- title?: TagProps<"h1">["mix"];
40
- /** Styling for the lead paragraph. */
41
- description?: TagProps<"p">["mix"];
42
- /** Styling for the {@link CtaGroup} around `actions`. */
43
- actions?: TagProps<"div">["mix"];
44
- /** Styling for the media slot host. */
45
- media?: TagProps<"div">["mix"];
46
- }
47
- /**
48
- * Props accepted by {@link LandingHero}.
49
- */
50
- interface Props extends Omit<MarketingSection.Props, "children" | "align" | "tone" | "title" | "parts"> {
51
- /** Content alignment. Defaults to {@link DEFAULT_ALIGN}. */
52
- align?: Align;
53
- /** Band fill. Defaults to {@link DEFAULT_TONE}. */
54
- tone?: Tone;
55
- /** Media placement. Defaults to {@link DEFAULT_MEDIA_PLACEMENT}. */
56
- mediaPlacement?: MediaPlacement;
57
- /** Optional eyebrow above the title. */
58
- eyebrow?: RemixNode;
59
- /**
60
- * Eyebrow chrome. Defaults to {@link DEFAULT_EYEBROW_VARIANT} when an
61
- * eyebrow is present.
62
- */
63
- eyebrowVariant?: EyebrowVariant;
64
- /** Display title — required, always supplied by the page. */
65
- title: RemixNode;
66
- /** Supporting lead under the title. */
67
- description?: RemixNode;
68
- /** Primary/secondary actions rendered inside a {@link CtaGroup}. */
69
- actions?: RemixNode;
70
- /** Product visual, screenshot, or staged UI. */
71
- media?: RemixNode;
72
- /** Optional below-fold hook rendered under the main hero stack. */
73
- below?: RemixNode;
74
- /** Per-part styling for eyebrow, title, lead, actions, and media. */
75
- parts?: PartsProps;
76
- }
77
- }
78
- /**
79
- * Renders a hero band: display title, optional lead and CTAs, and an optional
80
- * media slot. Opens a {@link HeadingScope} so the title starts the outline.
81
- *
82
- * @param handle Runtime handle carrying the hero's props.
83
- * @returns The render function producing the hero's markup.
84
- * @example
85
- * <LandingHero
86
- * tone="grid"
87
- * title={t("hero.title")}
88
- * description={t("hero.lead")}
89
- * actions={<Button size="lg">{t("hero.cta")}</Button>}
90
- * media={<img src={shot} alt={t("hero.alt")} />}
91
- * />
92
- */
93
- export declare function LandingHero(handle: Handle<LandingHero.Props>): () => import("remix/component").RemixElement;
@@ -1,126 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
- import { bg, border, fg } from "@sdxc/u/color";
3
- import { opacity, rounded } from "@sdxc/u/effects";
4
- import { raw } from "@sdxc/u/general";
5
- import { absolute, inlineFlex, inset, items, relative, vstack } from "@sdxc/u/layout";
6
- import { overflow } from "@sdxc/u/overflow";
7
- import { pb, pi } from "@sdxc/u/size";
8
- import { when } from "@sdxc/u/state";
9
- import { font, text, textAlign, textTransform, tracking, weight } from "@sdxc/u/typography";
10
- import { CtaGroup } from "../components/cta-group.js";
11
- import { HeadingScope } from "../components/heading-scope.js";
12
- import { Heading } from "../components/heading.js";
13
- import { MarketingSection } from "../components/marketing-section.js";
14
- import { Split } from "../components/split.js";
15
- import { marketingLead } from "../styles/marketing.js";
16
- /** Content alignment {@link LandingHero} applies when `align` is omitted. */
17
- const DEFAULT_ALIGN = "start";
18
- /** Where media sits relative to the copy when `mediaPlacement` is omitted. */
19
- const DEFAULT_MEDIA_PLACEMENT = "end";
20
- /** Band fill {@link LandingHero} applies when `tone` is omitted. */
21
- const DEFAULT_TONE = "grid";
22
- /** Eyebrow chrome {@link LandingHero} applies when `eyebrowVariant` is omitted. */
23
- const DEFAULT_EYEBROW_VARIANT = "pill";
24
- /**
25
- * Renders a hero band: display title, optional lead and CTAs, and an optional
26
- * media slot. Opens a {@link HeadingScope} so the title starts the outline.
27
- *
28
- * @param handle Runtime handle carrying the hero's props.
29
- * @returns The render function producing the hero's markup.
30
- * @example
31
- * <LandingHero
32
- * tone="grid"
33
- * title={t("hero.title")}
34
- * description={t("hero.lead")}
35
- * actions={<Button size="lg">{t("hero.cta")}</Button>}
36
- * media={<img src={shot} alt={t("hero.alt")} />}
37
- * />
38
- */
39
- export function LandingHero(handle) {
40
- return () => {
41
- let { actions, align, below, description, eyebrow, eyebrowVariant, media, mediaPlacement, mix, parts, spacing, title, tone, ...rest } = handle.props;
42
- let resolvedAlign = align ?? DEFAULT_ALIGN;
43
- let resolvedTone = tone ?? DEFAULT_TONE;
44
- let resolvedPlacement = mediaPlacement ?? DEFAULT_MEDIA_PLACEMENT;
45
- let resolvedSpacing = spacing ?? "hero";
46
- let resolvedEyebrowVariant = eyebrowVariant ?? DEFAULT_EYEBROW_VARIANT;
47
- let isCenter = resolvedAlign === "center";
48
- let hasMedia = media !== undefined;
49
- let isBackground = resolvedPlacement === "background" && hasMedia;
50
- let isSplit = resolvedPlacement === "end" && hasMedia;
51
- let isBelow = resolvedPlacement === "below" && hasMedia;
52
- let copy = (_jsxs("div", { mix: [
53
- vstack({
54
- align: isCenter ? "center" : "stretch",
55
- gap: 6,
56
- }),
57
- isCenter ? textAlign("center") : [],
58
- ], children: [eyebrow ? (_jsx("span", { "data-variant": resolvedEyebrowVariant, mix: [
59
- inlineFlex(),
60
- items("center"),
61
- text("xs"),
62
- weight("semibold"),
63
- when('&[data-variant="pill"]', [
64
- pb(0.5),
65
- pi(2.5),
66
- rounded("full"),
67
- border({ color: "brand", width: 1, style: "solid" }),
68
- bg("brand.tint"),
69
- fg("brand"),
70
- ]),
71
- when('&[data-variant="mono"]', [
72
- font("mono"),
73
- tracking("wide"),
74
- textTransform("uppercase"),
75
- fg("neutral.muted"),
76
- ]),
77
- when('&[data-variant="chip"]', [
78
- pb(0.5),
79
- pi(2.5),
80
- rounded("full"),
81
- border({ color: "brand", width: 1, style: "solid" }),
82
- bg("brand.solid"),
83
- fg("brand.onSolid"),
84
- tracking("wider"),
85
- textTransform("uppercase"),
86
- ]),
87
- parts?.eyebrow,
88
- ], children: eyebrow })) : null, _jsx(Heading, { size: "display", mix: [parts?.title], children: title }), description ? (_jsx("p", { mix: [
89
- marketingLead(),
90
- isCenter ? raw({ marginInline: "auto" }) : [],
91
- parts?.description,
92
- ], children: description })) : null, actions ? _jsx(CtaGroup, { mix: [parts?.actions], children: actions }) : null] }));
93
- let mediaSlot = hasMedia ? (_jsx("div", { "data-slot": "landing-hero-media", mix: [
94
- isBackground
95
- ? [
96
- absolute(),
97
- inset(0),
98
- overflow("hidden"),
99
- opacity(30),
100
- raw({ pointerEvents: "none", zIndex: "0" }),
101
- when("& img, & video", [
102
- raw({
103
- inlineSize: "100%",
104
- blockSize: "100%",
105
- objectFit: "cover",
106
- }),
107
- ]),
108
- ]
109
- : [],
110
- parts?.media,
111
- ], children: media })) : null;
112
- let body = (_jsxs("div", { mix: [
113
- vstack({
114
- align: isCenter ? "center" : "stretch",
115
- gap: 8,
116
- }),
117
- ], children: [copy, isBelow ? mediaSlot : null, below] }));
118
- if (isBackground) {
119
- body = (_jsxs("div", { mix: [relative(), vstack({ gap: 8, align: "stretch" })], children: [mediaSlot, _jsx("div", { mix: [relative(), raw({ zIndex: "1" })], children: copy }), below] }));
120
- }
121
- else if (isSplit) {
122
- body = (_jsxs("div", { mix: [vstack({ gap: 8, align: "stretch" })], children: [_jsxs(Split, { lean: "media", children: [_jsx(Split.Copy, { children: copy }), _jsx(Split.Media, { children: mediaSlot })] }), below] }));
123
- }
124
- return (_jsx(MarketingSection, { ...rest, tone: resolvedTone, spacing: resolvedSpacing, align: isSplit ? "start" : resolvedAlign, mix: [isBackground ? relative() : [], mix], children: _jsx(HeadingScope, { children: body }) }));
125
- };
126
- }
@@ -1,60 +0,0 @@
1
- /**
2
- * Window or device chrome around a product screenshot or staged UI. Optional
3
- * traffic lights, title, and URL bar stay decorative; the page supplies every
4
- * string and the framed children.
5
- *
6
- * @author [Sergio Xalambrí](https://sergiodxa.com)
7
- * @copyright Sergio Xalambrí 2026
8
- */
9
- import type { Handle, Props as TagProps, RemixNode } from "remix/component";
10
- /**
11
- * Prop types for {@link ProductFrame} and its compound parts.
12
- */
13
- export declare namespace ProductFrame {
14
- /**
15
- * Outer chrome: a desktop window with a title bar, or a darker rim for
16
- * device-like screenshots.
17
- */
18
- type Variant = "window" | "device";
19
- /**
20
- * Per-part styling for chrome the frame renders besides its host.
21
- */
22
- interface PartsProps {
23
- /** Styling for the title-bar row. */
24
- chrome?: TagProps<"div">["mix"];
25
- /** Styling for the framed body that holds children. */
26
- body?: TagProps<"div">["mix"];
27
- }
28
- /**
29
- * Props accepted by {@link ProductFrame}.
30
- */
31
- interface Props extends Omit<TagProps<"div">, "title"> {
32
- /** Outer chrome. Defaults to {@link DEFAULT_VARIANT}. */
33
- variant?: Variant;
34
- /**
35
- * Draws three decorative traffic-light dots in the title bar. Dots are
36
- * `aria-hidden`; they never carry actionable behavior.
37
- */
38
- lights?: boolean;
39
- /** Optional window title shown in the chrome bar. */
40
- title?: RemixNode;
41
- /** Optional URL or path shown as a quiet mono field in the chrome bar. */
42
- url?: RemixNode;
43
- /** Per-part styling for chrome and body. */
44
- parts?: PartsProps;
45
- /** Product UI, screenshot, or staged sample inside the frame. */
46
- children: RemixNode;
47
- }
48
- }
49
- /**
50
- * Wraps children in soft window or device chrome so a landing media slot reads
51
- * as a product surface rather than a bare image.
52
- *
53
- * @param handle Runtime handle carrying the host `<div>`'s props.
54
- * @returns The render function producing the frame's markup.
55
- * @example
56
- * <ProductFrame lights title={t("frame.app")} url="app.example.com">
57
- * <img src={shot} alt={t("frame.alt")} />
58
- * </ProductFrame>
59
- */
60
- export declare function ProductFrame(handle: Handle<ProductFrame.Props>): () => import("remix/component").RemixElement;