@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,81 +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 { inlineFlex, items, vstack } from "@sdxc/u/layout";
5
- import { m, mbe, mi, pb, pi } from "@sdxc/u/size";
6
- import { when } from "@sdxc/u/state";
7
- import { font, leading, text, textAlign, textTransform, tracking, weight, } from "@sdxc/u/typography";
8
- import { marketingLead } from "../styles/marketing.js";
9
- import { Heading } from "./heading.js";
10
- /** Content alignment {@link MarketingHeader} applies when `align` is omitted. */
11
- const DEFAULT_ALIGN = "start";
12
- /** Eyebrow chrome {@link MarketingHeader} applies when `eyebrowVariant` is omitted. */
13
- const DEFAULT_EYEBROW_VARIANT = "pill";
14
- /**
15
- * Renders an optional eyebrow, a chapter-sized {@link Heading} from `children`,
16
- * and an optional lead paragraph. Nest inside a {@link HeadingScope} so the
17
- * title picks up the band's outline depth.
18
- *
19
- * @param handle Runtime handle carrying the host `<header>`'s props.
20
- * @returns The render function producing the header's markup.
21
- * @example
22
- * <MarketingHeader eyebrow={t("badge")} description={t("lead")} align="center">
23
- * {t("title")}
24
- * </MarketingHeader>
25
- * @example
26
- * <MarketingHeader eyebrow={t("new")} eyebrowVariant="chip" description={t("lead")}>
27
- * {t("title")}
28
- * </MarketingHeader>
29
- */
30
- export function MarketingHeader(handle) {
31
- return () => {
32
- let { align, children, description, eyebrow, eyebrowVariant, mix, parts, ...rest } = handle.props;
33
- let resolvedAlign = align ?? DEFAULT_ALIGN;
34
- let resolvedEyebrowVariant = eyebrowVariant ?? DEFAULT_EYEBROW_VARIANT;
35
- let isCenter = resolvedAlign === "center";
36
- return (_jsxs("header", { ...rest, "data-align": resolvedAlign, mix: [
37
- vstack({
38
- align: isCenter ? "center" : "stretch",
39
- gap: 2,
40
- }),
41
- isCenter ? [textAlign("center"), mi("auto")] : [],
42
- mbe(10),
43
- mix,
44
- ], children: [eyebrow ? (_jsx("span", { "data-variant": resolvedEyebrowVariant, mix: [
45
- inlineFlex(),
46
- items("center"),
47
- text("xs"),
48
- weight("semibold"),
49
- when('&[data-variant="pill"]', [
50
- pb(0.5),
51
- pi(2.5),
52
- rounded("full"),
53
- border({ color: "brand", width: 1, style: "solid" }),
54
- bg("brand.tint"),
55
- fg("brand"),
56
- ]),
57
- when('&[data-variant="mono"]', [
58
- font("mono"),
59
- tracking("wide"),
60
- textTransform("uppercase"),
61
- fg("neutral.muted"),
62
- ]),
63
- when('&[data-variant="chip"]', [
64
- pb(0.5),
65
- pi(2.5),
66
- rounded("full"),
67
- border({ color: "brand", width: 1, style: "solid" }),
68
- bg("brand.solid"),
69
- fg("brand.onSolid"),
70
- tracking("wider"),
71
- textTransform("uppercase"),
72
- ]),
73
- parts?.eyebrow,
74
- ], children: eyebrow })) : null, _jsx(Heading, { size: "chapter", mix: [m(0), description ? mbe(2) : [], parts?.title], children: children }), description ? (_jsx("p", { mix: [
75
- marketingLead(),
76
- leading("relaxed"),
77
- isCenter ? mi("auto") : [],
78
- parts?.description,
79
- ], children: description })) : null] }));
80
- };
81
- }
@@ -1,81 +0,0 @@
1
- /**
2
- * A landing-page band: a `<section>` host that applies marketing tone, spacing,
3
- * and content measure so pages share one rhythm. Distinct from the listbox
4
- * {@link Section}, which groups menu items.
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 type { MarketingBandTone, MarketingSectionSpacing } from "../styles/marketing.js";
11
- /**
12
- * Prop types for {@link MarketingSection}.
13
- */
14
- export declare namespace MarketingSection {
15
- /**
16
- * What sits behind the band: nothing, a quiet tint, a faded grid, or an
17
- * inverted solid for a closing call-to-action.
18
- */
19
- type Tone = MarketingBandTone;
20
- /**
21
- * How much block padding the band leaves around its content.
22
- */
23
- type Spacing = MarketingSectionSpacing;
24
- /**
25
- * Whether the inner column stretches start-aligned or centers as one
26
- * statement.
27
- */
28
- type Align = "start" | "center";
29
- /**
30
- * Outer chrome: a plain band, or a framed column with dashed rails and
31
- * corner markers where a top rule meets them.
32
- */
33
- type Variant = "default" | "frame";
34
- /**
35
- * Per-part styling for the elements the band renders besides its host.
36
- */
37
- interface PartsProps {
38
- /** Styling for the measured content column inside the band. */
39
- container?: TagProps<"div">["mix"];
40
- }
41
- /**
42
- * Props accepted by {@link MarketingSection}.
43
- */
44
- interface Props extends TagProps<"section"> {
45
- /** Band fill. Defaults to {@link DEFAULT_TONE}. */
46
- tone?: Tone;
47
- /** Block padding step. Defaults to {@link DEFAULT_SPACING}. */
48
- spacing?: Spacing;
49
- /** Content alignment. Defaults to {@link DEFAULT_ALIGN}. */
50
- align?: Align;
51
- /**
52
- * Draws a low-contrast 1px rule along the block-start edge so stacked
53
- * bands separate cleanly.
54
- */
55
- ruled?: boolean;
56
- /** Outer chrome. Defaults to {@link DEFAULT_VARIANT}. */
57
- variant?: Variant;
58
- /** Per-part styling for the measured inner column. */
59
- parts?: PartsProps;
60
- /** Band content — headers, splits, feature grids, and so on. */
61
- children: RemixNode;
62
- }
63
- }
64
- /**
65
- * Renders a marketing band: tone and spacing on the `<section>`, a named
66
- * container for descendant queries, and a measured inner column from the
67
- * marketing gutters. Pair the host with `viewReveal()` from the animations
68
- * entry when the band should enter on scroll.
69
- *
70
- * @param handle Runtime handle carrying the host `<section>`'s props.
71
- * @returns The render function producing the band's markup.
72
- * @example
73
- * <MarketingSection tone="tinted" spacing="normal" ruled>
74
- * {children}
75
- * </MarketingSection>
76
- * @example
77
- * <MarketingSection tone="grid" spacing="hero" align="center" variant="frame">
78
- * {children}
79
- * </MarketingSection>
80
- */
81
- export declare function MarketingSection(handle: Handle<MarketingSection.Props>): () => import("remix/component").RemixElement;
@@ -1,103 +0,0 @@
1
- import { jsx as _jsx } from "remix/component/jsx-runtime";
2
- import { borderEdge } from "@sdxc/u/color";
3
- import { raw } from "@sdxc/u/general";
4
- import { container, relative, vstack } from "@sdxc/u/layout";
5
- import { at } from "@sdxc/u/responsive";
6
- import { is } from "@sdxc/u/size";
7
- import { after, before } from "@sdxc/u/state";
8
- import { textAlign } from "@sdxc/u/typography";
9
- import { marketingBandTone, marketingContainer, marketingHairline, marketingSectionSpace, } from "../styles/marketing.js";
10
- /** Band fill {@link MarketingSection} applies when `tone` is omitted. */
11
- const DEFAULT_TONE = "plain";
12
- /** Block padding {@link MarketingSection} applies when `spacing` is omitted. */
13
- const DEFAULT_SPACING = "normal";
14
- /** Content alignment {@link MarketingSection} applies when `align` is omitted. */
15
- const DEFAULT_ALIGN = "start";
16
- /** Chrome {@link MarketingSection} applies when `variant` is omitted. */
17
- const DEFAULT_VARIANT = "default";
18
- /**
19
- * Renders a marketing band: tone and spacing on the `<section>`, a named
20
- * container for descendant queries, and a measured inner column from the
21
- * marketing gutters. Pair the host with `viewReveal()` from the animations
22
- * entry when the band should enter on scroll.
23
- *
24
- * @param handle Runtime handle carrying the host `<section>`'s props.
25
- * @returns The render function producing the band's markup.
26
- * @example
27
- * <MarketingSection tone="tinted" spacing="normal" ruled>
28
- * {children}
29
- * </MarketingSection>
30
- * @example
31
- * <MarketingSection tone="grid" spacing="hero" align="center" variant="frame">
32
- * {children}
33
- * </MarketingSection>
34
- */
35
- export function MarketingSection(handle) {
36
- return () => {
37
- let { align, children, mix, parts, ruled, spacing, tone, variant, ...rest } = handle.props;
38
- let resolvedTone = tone ?? DEFAULT_TONE;
39
- let resolvedSpacing = spacing ?? DEFAULT_SPACING;
40
- let resolvedAlign = align ?? DEFAULT_ALIGN;
41
- let resolvedVariant = variant ?? DEFAULT_VARIANT;
42
- let isCenter = resolvedAlign === "center";
43
- let isFrame = resolvedVariant === "frame";
44
- return (_jsx("section", { ...rest, "data-tone": resolvedTone, "data-spacing": resolvedSpacing, "data-align": resolvedAlign, "data-variant": resolvedVariant, mix: [
45
- container("ui-marketing-section"),
46
- relative(),
47
- vstack({ align: "center" }),
48
- is("100%"),
49
- raw({ isolation: "isolate" }),
50
- marketingBandTone(resolvedTone),
51
- marketingSectionSpace(resolvedSpacing),
52
- ruled ? marketingHairline() : [],
53
- mix,
54
- ], children: _jsx("div", { mix: [
55
- marketingContainer(),
56
- vstack({
57
- align: isCenter ? "center" : "stretch",
58
- gap: 0,
59
- }),
60
- relative(),
61
- is("100%"),
62
- isCenter ? textAlign("center") : [],
63
- isFrame
64
- ? [
65
- at("md", "ui-marketing-section", [
66
- borderEdge("inline-start", {
67
- color: "neutral",
68
- width: 1,
69
- style: "dashed",
70
- }),
71
- borderEdge("inline-end", {
72
- color: "neutral",
73
- width: 1,
74
- style: "dashed",
75
- }),
76
- ruled
77
- ? [
78
- before(frameMarker({ insetInlineStart: "-4px" })),
79
- after(frameMarker({ insetInlineEnd: "-4px" })),
80
- ]
81
- : [],
82
- ]),
83
- ]
84
- : [],
85
- parts?.container,
86
- ], children: children }) }));
87
- };
88
- }
89
- /**
90
- * The square drawn where a framed band's top rule crosses a rail, so the rails
91
- * read as a frame the rule is fixed to.
92
- */
93
- function frameMarker(edge) {
94
- return raw({
95
- content: '""',
96
- position: "absolute",
97
- insetBlockStart: "-4px",
98
- ...edge,
99
- inlineSize: "7px",
100
- blockSize: "7px",
101
- backgroundColor: "var(--ui-brand-bg-solid)",
102
- });
103
- }
@@ -1,64 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "remix/component/jsx-runtime";
2
- import { borderEdge, fg } from "@sdxc/u/color";
3
- import { container, gap, grid, gridTemplate, repeat, vstack } from "@sdxc/u/layout";
4
- import { at } from "@sdxc/u/responsive";
5
- import { p } from "@sdxc/u/size";
6
- import { when } from "@sdxc/u/state";
7
- import { balance, leading, text, tracking, weight } from "@sdxc/u/typography";
8
- /** Seam treatment {@link StatStrip} applies when `variant` is omitted. */
9
- const DEFAULT_VARIANT = "ruled";
10
- /**
11
- * Lays {@link StatStrip.Item} children in a responsive grid that starts at two
12
- * columns and opens to as many as five above `lg` on its own named container.
13
- *
14
- * @param handle Runtime handle carrying the host `<div>`'s props.
15
- * @returns The render function producing the strip's markup.
16
- * @example
17
- * <StatStrip>
18
- * <StatStrip.Item label={t("stats.packages")}>42</StatStrip.Item>
19
- * <StatStrip.Item label={t("stats.apps")}>12</StatStrip.Item>
20
- * </StatStrip>
21
- */
22
- export function StatStrip(handle) {
23
- return () => {
24
- let { mix, variant, ...rest } = handle.props;
25
- let resolvedVariant = variant ?? DEFAULT_VARIANT;
26
- let isRuled = resolvedVariant === "ruled";
27
- return (_jsx("div", { ...rest, "data-variant": resolvedVariant, "data-slot": "stat-strip", mix: [
28
- container("ui-marketing-stat-strip"),
29
- grid(),
30
- isRuled ? gap(0) : gap(6),
31
- gridTemplate({ columns: repeat(2, "minmax(0, 1fr)") }),
32
- at("lg", "ui-marketing-stat-strip", gridTemplate({ columns: repeat(5, "minmax(0, 1fr)") })),
33
- when("& > *", [p(6, 5), at("md", "ui-marketing-stat-strip", p(8, 8))]),
34
- isRuled
35
- ? when("& > * + *", at("lg", "ui-marketing-stat-strip", borderEdge("inline-start", {
36
- color: "neutral",
37
- width: 1,
38
- style: "solid",
39
- })))
40
- : [],
41
- mix,
42
- ] }));
43
- };
44
- }
45
- /**
46
- * One proof cell: the figure as `children`, and what it counts as `label`.
47
- *
48
- * @param handle Runtime handle carrying the host `<div>`'s props.
49
- * @returns The render function producing the cell's markup.
50
- * @example
51
- * <StatStrip.Item label={t("stats.uptime")}>99.99%</StatStrip.Item>
52
- */
53
- StatStrip.Item = function StatStripItem(handle) {
54
- return () => {
55
- let { children, label, mix, ...rest } = handle.props;
56
- return (_jsxs("div", { ...rest, "data-slot": "stat-strip-item", mix: [vstack({ gap: 1, align: "start" }), mix], children: [_jsx("span", { mix: [
57
- text("3xl"),
58
- weight("medium"),
59
- tracking("tight"),
60
- leading("none"),
61
- fg("neutral.emphasis"),
62
- ], children: children }), _jsx("span", { mix: [text("sm"), leading("snug"), balance(), fg("neutral")], children: label })] }));
63
- };
64
- };
@@ -1,30 +0,0 @@
1
- /**
2
- * A single emphasized phrase inside a marketing headline — brand color on the
3
- * span so the surrounding display heading stays one weight and size.
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
- /**
10
- * Prop types for {@link AccentText}.
11
- */
12
- export declare namespace AccentText {
13
- /**
14
- * Props accepted by {@link AccentText}.
15
- */
16
- interface Props extends TagProps<"span"> {
17
- /** The emphasized phrase. */
18
- children: RemixNode;
19
- }
20
- }
21
- /**
22
- * Colors a phrase with the brand foreground so a display heading can stress
23
- * one word without changing weight or inventing a gradient recipe.
24
- *
25
- * @param handle Runtime handle carrying the host `<span>`'s props.
26
- * @returns The render function producing the accent span.
27
- * @example
28
- * <Heading size="display">Ship <AccentText>{t("hero.accent")}</AccentText> faster</Heading>
29
- */
30
- export declare function AccentText(handle: Handle<AccentText.Props>): () => import("remix/component").RemixElement;
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx } from "remix/component/jsx-runtime";
2
- import { fg } from "@sdxc/u/color";
3
- /**
4
- * Colors a phrase with the brand foreground so a display heading can stress
5
- * one word without changing weight or inventing a gradient recipe.
6
- *
7
- * @param handle Runtime handle carrying the host `<span>`'s props.
8
- * @returns The render function producing the accent span.
9
- * @example
10
- * <Heading size="display">Ship <AccentText>{t("hero.accent")}</AccentText> faster</Heading>
11
- */
12
- export function AccentText(handle) {
13
- return () => {
14
- let { mix, ...rest } = handle.props;
15
- return _jsx("span", { ...rest, "data-slot": "accent-text", mix: [fg("brand"), mix] });
16
- };
17
- }
@@ -1,41 +0,0 @@
1
- /**
2
- * A short announcement with a stronger rim than the default eyebrow pill —
3
- * reserved for “new” / forward callouts that should read louder than a band
4
- * eyebrow.
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 AnnouncementChip}.
12
- */
13
- export declare namespace AnnouncementChip {
14
- /**
15
- * How the chip draws its edge: a solid brand rim, or a soft dual-tone
16
- * border for a louder announcement.
17
- */
18
- type Variant = "rim" | "special";
19
- /**
20
- * Props accepted by {@link AnnouncementChip}.
21
- */
22
- interface Props extends TagProps<"span"> {
23
- /** Rim treatment. Defaults to {@link DEFAULT_VARIANT}. */
24
- variant?: Variant;
25
- /** Announcement label — always supplied by the page. */
26
- children: RemixNode;
27
- }
28
- }
29
- /**
30
- * Renders a compact announcement label. Prefer {@link MarketingHeader}'s
31
- * eyebrow for ordinary section labels; reach for this when the callout itself
32
- * is the news.
33
- *
34
- * @param handle Runtime handle carrying the host `<span>`'s props.
35
- * @returns The render function producing the chip's markup.
36
- * @example
37
- * <AnnouncementChip>{t("announce.forward")}</AnnouncementChip>
38
- * @example
39
- * <AnnouncementChip variant="special">{t("announce.launch")}</AnnouncementChip>
40
- */
41
- export declare function AnnouncementChip(handle: Handle<AnnouncementChip.Props>): () => import("remix/component").RemixElement;
@@ -1,49 +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 { raw } from "@sdxc/u/general";
5
- import { inlineFlex, items } from "@sdxc/u/layout";
6
- import { pb, pi } from "@sdxc/u/size";
7
- import { text, textTransform, tracking, weight } from "@sdxc/u/typography";
8
- /** Rim treatment {@link AnnouncementChip} applies when `variant` is omitted. */
9
- const DEFAULT_VARIANT = "rim";
10
- /**
11
- * Renders a compact announcement label. Prefer {@link MarketingHeader}'s
12
- * eyebrow for ordinary section labels; reach for this when the callout itself
13
- * is the news.
14
- *
15
- * @param handle Runtime handle carrying the host `<span>`'s props.
16
- * @returns The render function producing the chip's markup.
17
- * @example
18
- * <AnnouncementChip>{t("announce.forward")}</AnnouncementChip>
19
- * @example
20
- * <AnnouncementChip variant="special">{t("announce.launch")}</AnnouncementChip>
21
- */
22
- export function AnnouncementChip(handle) {
23
- return () => {
24
- let { mix, variant, ...rest } = handle.props;
25
- let resolvedVariant = variant ?? DEFAULT_VARIANT;
26
- return (_jsx("span", { ...rest, "data-slot": "announcement-chip", "data-variant": resolvedVariant, mix: [
27
- inlineFlex(),
28
- items("center"),
29
- pb(0.5),
30
- pi(2.5),
31
- rounded("full"),
32
- text("xs"),
33
- weight("semibold"),
34
- tracking("wider"),
35
- textTransform("uppercase"),
36
- bg("brand.tint"),
37
- fg("brand"),
38
- resolvedVariant === "special"
39
- ? raw({
40
- border: "1px solid transparent",
41
- backgroundImage: "linear-gradient(var(--ui-brand-bg-tint), var(--ui-brand-bg-tint)), linear-gradient(120deg, var(--ui-brand-bg-solid), color-mix(in oklab, var(--ui-brand-bg-solid) 40%, Canvas))",
42
- backgroundOrigin: "border-box",
43
- backgroundClip: "padding-box, border-box",
44
- })
45
- : border({ color: "brand", width: 1, style: "solid" }),
46
- mix,
47
- ] }));
48
- };
49
- }
@@ -1,67 +0,0 @@
1
- /**
2
- * Equal columns divided by low-contrast rules — a purpose row or claim strip
3
- * that needs no card fill. Hairlines come from a 1px gap over the border token.
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
- /**
10
- * Prop types for {@link Bento} and its compound parts.
11
- */
12
- export declare namespace Bento {
13
- /**
14
- * How many cells a wide grid puts on one row.
15
- */
16
- type Columns = 2 | 3 | 4;
17
- /**
18
- * Props accepted by {@link Bento}.
19
- */
20
- interface Props extends TagProps<"div"> {
21
- /** Columns above the stack breakpoint. Defaults to {@link DEFAULT_COLUMNS}. */
22
- columns?: Columns;
23
- /** {@link Bento.Cell} children to lay out. */
24
- children: RemixNode;
25
- }
26
- /**
27
- * Props accepted by {@link Bento.Cell}.
28
- */
29
- interface CellProps extends TagProps<"div"> {
30
- /** Cell content — typically title + body. */
31
- children: RemixNode;
32
- }
33
- /**
34
- * Props accepted by {@link Bento.Title}.
35
- */
36
- interface TitleProps extends TagProps<"h1"> {
37
- /** Title copy for the cell. */
38
- children: RemixNode;
39
- }
40
- /**
41
- * Props accepted by {@link Bento.Body}.
42
- */
43
- interface BodyProps extends TagProps<"div"> {
44
- /** Supporting copy for the cell. */
45
- children: RemixNode;
46
- }
47
- }
48
- /**
49
- * Hairline-ruled equal columns that collapse to one track below `md` on their
50
- * own named container.
51
- *
52
- * @param handle Runtime handle carrying the host `<div>`'s props.
53
- * @returns The render function producing the bento's markup.
54
- * @example
55
- * <Bento columns={3}>
56
- * <Bento.Cell>
57
- * <Bento.Title>{t("purpose.one")}</Bento.Title>
58
- * <Bento.Body>{t("purpose.one.body")}</Bento.Body>
59
- * </Bento.Cell>
60
- * </Bento>
61
- */
62
- export declare function Bento(handle: Handle<Bento.Props>): () => import("remix/component").RemixElement;
63
- export declare namespace Bento {
64
- var Cell: (handle: Handle<Bento.CellProps>) => () => import("remix/component").RemixElement;
65
- var Title: (handle: Handle<Bento.TitleProps>) => () => import("remix/component").RemixElement;
66
- var Body: (handle: Handle<Bento.BodyProps>) => () => import("remix/component").RemixElement;
67
- }
@@ -1,95 +0,0 @@
1
- import { jsx as _jsx } from "remix/component/jsx-runtime";
2
- import { border, fg } from "@sdxc/u/color";
3
- import { rounded } from "@sdxc/u/effects";
4
- import { raw } from "@sdxc/u/general";
5
- import { container, gap, grid, gridTemplate, repeat, vstack } from "@sdxc/u/layout";
6
- import { overflow } from "@sdxc/u/overflow";
7
- import { at } from "@sdxc/u/responsive";
8
- import { p } from "@sdxc/u/size";
9
- import { leading, pretty, text, weight } from "@sdxc/u/typography";
10
- import { resolveHeadingLevel, TAG_BY_LEVEL } from "../components/heading-scope.js";
11
- /** How many cells a wide {@link Bento} puts on one row when `columns` is omitted. */
12
- const DEFAULT_COLUMNS = 3;
13
- /**
14
- * Hairline-ruled equal columns that collapse to one track below `md` on their
15
- * own named container.
16
- *
17
- * @param handle Runtime handle carrying the host `<div>`'s props.
18
- * @returns The render function producing the bento's markup.
19
- * @example
20
- * <Bento columns={3}>
21
- * <Bento.Cell>
22
- * <Bento.Title>{t("purpose.one")}</Bento.Title>
23
- * <Bento.Body>{t("purpose.one.body")}</Bento.Body>
24
- * </Bento.Cell>
25
- * </Bento>
26
- */
27
- export function Bento(handle) {
28
- return () => {
29
- let { columns, mix, ...rest } = handle.props;
30
- let resolvedColumns = columns ?? DEFAULT_COLUMNS;
31
- return (_jsx("div", { ...rest, "data-slot": "bento", "data-columns": String(resolvedColumns), mix: [
32
- container("ui-marketing-bento"),
33
- grid(),
34
- gap("1px"),
35
- rounded("xl"),
36
- overflow("hidden"),
37
- border({ color: "neutral", width: 1, style: "solid" }),
38
- raw({
39
- backgroundColor: "var(--ui-neutral-border)",
40
- textAlign: "start",
41
- }),
42
- gridTemplate({ columns: "minmax(0, 1fr)" }),
43
- at("md", "ui-marketing-bento", [
44
- gridTemplate({
45
- columns: repeat(resolvedColumns, "minmax(0, 1fr)"),
46
- }),
47
- ]),
48
- mix,
49
- ] }));
50
- };
51
- }
52
- /**
53
- * One bento cell. Compose {@link Bento.Title} and {@link Bento.Body} inside it.
54
- *
55
- * @param handle Runtime handle carrying the host `<div>`'s props.
56
- * @returns The render function producing the cell's markup.
57
- */
58
- Bento.Cell = function BentoCell(handle) {
59
- return () => {
60
- let { mix, ...rest } = handle.props;
61
- return (_jsx("div", { ...rest, "data-slot": "bento-cell", mix: [
62
- vstack({ gap: 3, align: "stretch" }),
63
- raw({ backgroundColor: "var(--ui-bg, Canvas)" }),
64
- p(6, 5),
65
- at("md", "ui-marketing-bento", p(8, 8)),
66
- mix,
67
- ] }));
68
- };
69
- };
70
- /**
71
- * Cell title at the ambient heading depth.
72
- *
73
- * @param handle Runtime handle carrying the host heading's props.
74
- * @returns The render function producing the title.
75
- */
76
- Bento.Title = function BentoTitle(handle) {
77
- return () => {
78
- let { mix, ...rest } = handle.props;
79
- let resolved = resolveHeadingLevel(handle);
80
- let Tag = TAG_BY_LEVEL[resolved];
81
- return (_jsx(Tag, { ...rest, "data-slot": "bento-title", "data-heading-level": resolved, mix: [text("lg"), weight("medium"), fg("neutral.emphasis"), mix] }));
82
- };
83
- };
84
- /**
85
- * Supporting copy under a bento title.
86
- *
87
- * @param handle Runtime handle carrying the host `<div>`'s props.
88
- * @returns The render function producing the body.
89
- */
90
- Bento.Body = function BentoBody(handle) {
91
- return () => {
92
- let { mix, ...rest } = handle.props;
93
- return (_jsx("div", { ...rest, "data-slot": "bento-body", mix: [text("sm"), leading("relaxed"), pretty(), fg("neutral"), mix] }));
94
- };
95
- };