themelia-react-ui 2.0.3 → 2.0.5

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 (648) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/README.md +168 -36
  3. package/dist/{accordion-Cjb6sx0G.js → accordion-B9MHG0cT.js} +11 -11
  4. package/dist/accordion-B9MHG0cT.js.map +1 -0
  5. package/dist/action-menu-Dr8K-ghE.js +284 -0
  6. package/dist/action-menu-Dr8K-ghE.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-P-aVJisu.js} +42 -36
  8. package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
  9. package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-C58tQcBy.js} +387 -350
  10. package/dist/ai-artifact-C58tQcBy.js.map +1 -0
  11. package/dist/app-shell-B_IuNWOo.js +321 -0
  12. package/dist/app-shell-B_IuNWOo.js.map +1 -0
  13. package/dist/{attachment-BxDfL2mw.js → attachment-Dg_69lPS.js} +9 -9
  14. package/dist/{attachment-BxDfL2mw.js.map → attachment-Dg_69lPS.js.map} +1 -1
  15. package/dist/{auth-BGua8ouh.js → auth-DTkkshS8.js} +44 -47
  16. package/dist/auth-DTkkshS8.js.map +1 -0
  17. package/dist/{avatar-DAPlDvhJ.js → avatar-CeZaFmNH.js} +8 -8
  18. package/dist/avatar-CeZaFmNH.js.map +1 -0
  19. package/dist/{badge-HpFqoqSY.js → badge-xIiV_E7f.js} +5 -5
  20. package/dist/{badge-HpFqoqSY.js.map → badge-xIiV_E7f.js.map} +1 -1
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +1 -1
  27. package/dist/base/buttons.js +1 -1
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +3 -3
  30. package/dist/base/cascader.js +2 -372
  31. package/dist/base/chart.js +1 -1
  32. package/dist/base/choice-inputs.js +2 -2
  33. package/dist/base/code-block.js +1 -1
  34. package/dist/base/combobox.js +2 -2
  35. package/dist/base/command.js +1 -1
  36. package/dist/base/copyable.js +1 -1
  37. package/dist/base/date-pickers.js +2 -2
  38. package/dist/base/display.js +6 -6
  39. package/dist/base/feedback.js +3 -3
  40. package/dist/base/forms-numeric.js +1 -1
  41. package/dist/base/forms.js +3 -3
  42. package/dist/base/inline-edit.js +10 -10
  43. package/dist/base/item.js +1 -1
  44. package/dist/base/media-gallery.js +1 -1
  45. package/dist/base/metadata-list.js +1 -1
  46. package/dist/base/navigation.js +7 -7
  47. package/dist/base/popover-menu.js +1 -1
  48. package/dist/base/popover.js +1 -1
  49. package/dist/base/qr-code.js +1 -1
  50. package/dist/base/repeaters.js +12 -12
  51. package/dist/base/repeaters.js.map +1 -1
  52. package/dist/base/sheet.js +1 -1
  53. package/dist/base/sidebar.js +2 -2
  54. package/dist/base/signature-pad.js +7 -7
  55. package/dist/base/signature-pad.js.map +1 -1
  56. package/dist/base/skeleton.js +1 -1
  57. package/dist/base/spinner.js +4 -4
  58. package/dist/base/structure.js +1 -1
  59. package/dist/base/table.js +1 -1
  60. package/dist/base/text-inputs.js +2 -2
  61. package/dist/base/toaster.js +36 -36
  62. package/dist/base/toaster.js.map +1 -1
  63. package/dist/base/tree.js +1 -1
  64. package/dist/base/upload-queue.js +1 -1
  65. package/dist/base/upload.js +3 -3
  66. package/dist/base/value-inputs.js +1 -1
  67. package/dist/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-Cb8cuvyy.js} +6 -6
  68. package/dist/batch-action-bar-Cb8cuvyy.js.map +1 -0
  69. package/dist/blocks/admin.js +23 -23
  70. package/dist/blocks/admin.js.map +1 -1
  71. package/dist/blocks/ai.js +230 -216
  72. package/dist/blocks/ai.js.map +1 -1
  73. package/dist/blocks/analytics/usage-card.js +1 -1
  74. package/dist/blocks/analytics.js +326 -307
  75. package/dist/blocks/analytics.js.map +1 -1
  76. package/dist/blocks/collaboration.js +1 -1
  77. package/dist/blocks/commerce/receipt.js +1 -1
  78. package/dist/blocks/commerce.js +1247 -1169
  79. package/dist/blocks/commerce.js.map +1 -1
  80. package/dist/blocks/data-display.js +2 -2
  81. package/dist/blocks/onboarding.js +6 -6
  82. package/dist/blocks/onboarding.js.map +1 -1
  83. package/dist/blocks/planning.js +11 -11
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-J-K2kl4c.js} +6 -6
  86. package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-J-K2kl4c.js.map} +1 -1
  87. package/dist/{button-DVzspB_G.js → button-S2Cubiiz.js} +3 -3
  88. package/dist/button-S2Cubiiz.js.map +1 -0
  89. package/dist/{buttons-DPZekJFu.js → buttons-BedGfygC.js} +16 -16
  90. package/dist/buttons-BedGfygC.js.map +1 -0
  91. package/dist/cards-rNX1M4Xn.js +69 -0
  92. package/dist/cards-rNX1M4Xn.js.map +1 -0
  93. package/dist/cascader-B1MiqkBq.js +439 -0
  94. package/dist/cascader-B1MiqkBq.js.map +1 -0
  95. package/dist/chart-Darg_0Kv.js +162 -0
  96. package/dist/chart-Darg_0Kv.js.map +1 -0
  97. package/dist/{checkbox-AWIhNhmo.js → checkbox-fflqmODR.js} +9 -5
  98. package/dist/checkbox-fflqmODR.js.map +1 -0
  99. package/dist/choice-inputs-zUgBZfE4.js +777 -0
  100. package/dist/choice-inputs-zUgBZfE4.js.map +1 -0
  101. package/dist/{code-block-DeneBJR_.js → code-block-BzmM9Eig.js} +9 -9
  102. package/dist/code-block-BzmM9Eig.js.map +1 -0
  103. package/dist/{collapsible-C-_l4hpy.js → collapsible-BkAI_XD4.js} +5 -5
  104. package/dist/{collapsible-C-_l4hpy.js.map → collapsible-BkAI_XD4.js.map} +1 -1
  105. package/dist/{collection-content-By56pLog.js → collection-content-gDh1v6O4.js} +3 -3
  106. package/dist/{collection-content-By56pLog.js.map → collection-content-gDh1v6O4.js.map} +1 -1
  107. package/dist/combobox-BEx0vJgF.js +362 -0
  108. package/dist/combobox-BEx0vJgF.js.map +1 -0
  109. package/dist/{combobox-Dxo2fAYQ.js → combobox-BwzoXFSG.js} +254 -247
  110. package/dist/combobox-BwzoXFSG.js.map +1 -0
  111. package/dist/{command-C25VMRII.js → command-CrlPIL6m.js} +12 -12
  112. package/dist/command-CrlPIL6m.js.map +1 -0
  113. package/dist/{comments-DD0DUPwJ.js → comments-Dmpp0YIc.js} +380 -379
  114. package/dist/comments-Dmpp0YIc.js.map +1 -0
  115. package/dist/components/base/action-menu/action-menu.d.ts +9 -1
  116. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  117. package/dist/components/base/cards/card.recipes.d.ts +16 -7
  118. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
  119. package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
  120. package/dist/components/base/cards/smart-card.types.d.ts +11 -7
  121. package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
  122. package/dist/components/base/chart/chart.d.ts +6 -1
  123. package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
  124. package/dist/components/base/choice-inputs/choice-types.d.ts +1 -1
  125. package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
  126. package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
  127. package/dist/components/base/combobox/index.d.ts +4 -2
  128. package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
  129. package/dist/components/base/feedback/alert.d.ts +1 -1
  130. package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
  131. package/dist/components/base/forms/form-field.d.ts +5 -3
  132. package/dist/components/base/forms/form-sizing.d.ts +7 -7
  133. package/dist/components/base/forms/index.d.ts +1 -0
  134. package/dist/components/base/forms/server-errors.d.ts +16 -0
  135. package/dist/components/base/forms/workflow.d.ts +11 -2
  136. package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -0
  137. package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
  138. package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
  139. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
  140. package/dist/components/base/navigation/page-header/page-header.d.ts +13 -4
  141. package/dist/components/base/popover/popover.d.ts +3 -3
  142. package/dist/components/base/popover/popover.recipes.d.ts +10 -6
  143. package/dist/components/base/sheet/sheet.d.ts +2 -0
  144. package/dist/components/base/sidebar/index.d.ts +1 -1
  145. package/dist/components/base/sidebar/sidebar.d.ts +27 -5
  146. package/dist/components/base/structure/composition.recipes.d.ts +17 -0
  147. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
  148. package/dist/components/base/text-inputs/input.d.ts +4 -2
  149. package/dist/components/base/text-inputs/textarea.d.ts +4 -2
  150. package/dist/components/base/toaster/index.d.ts +1 -0
  151. package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
  152. package/dist/components/base/value-inputs/slider.d.ts +5 -1
  153. package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
  154. package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
  155. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +3 -1
  156. package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
  157. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
  158. package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
  159. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
  160. package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
  161. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
  162. package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
  163. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
  164. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
  165. package/dist/components/blocks/commerce/index.d.ts +7 -6
  166. package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
  167. package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
  168. package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
  169. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  170. package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
  171. package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
  172. package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
  173. package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
  174. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
  175. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
  176. package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
  177. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
  178. package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
  179. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  180. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
  181. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  182. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
  183. package/dist/components/features/activities/activities.types.d.ts +8 -2
  184. package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
  185. package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
  186. package/dist/components/features/event-calendar/colors.d.ts +2 -2
  187. package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
  188. package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
  189. package/dist/components/features/filters/filters.strings.d.ts +4 -0
  190. package/dist/components/features/filters/filters.types.d.ts +3 -0
  191. package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
  192. package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
  193. package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
  194. package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
  195. package/dist/components/features/filters/utils/filter-utils.d.ts +21 -3
  196. package/dist/components/features/global-search/global-search.types.d.ts +2 -0
  197. package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
  198. package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
  199. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  200. package/dist/components/features/media-library/media-library.types.d.ts +14 -4
  201. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  202. package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
  203. package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
  204. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  205. package/dist/components/features/products/products.strings.d.ts +9 -1
  206. package/dist/components/features/products/products.types.d.ts +43 -6
  207. package/dist/components/features/resource/resource.d.ts +5 -1
  208. package/dist/components/features/resource/resource.types.d.ts +12 -1
  209. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
  210. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
  211. package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
  212. package/dist/components/features/table/table.types.d.ts +1 -1
  213. package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
  214. package/dist/components/layout/app-shell/index.d.ts +1 -1
  215. package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
  216. package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
  217. package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
  218. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
  219. package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
  220. package/dist/components/layout/header/header.recipes.d.ts +6 -0
  221. package/dist/components/layout/header/header.types.d.ts +6 -6
  222. package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
  223. package/dist/components/layout/page/index.d.ts +2 -1
  224. package/dist/components/layout/page/page.d.ts +1 -0
  225. package/dist/components/layout/page/page.strings.d.ts +11 -0
  226. package/dist/components/layout/page/page.types.d.ts +69 -17
  227. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  228. package/dist/components/layout/settings/settings.d.ts +9 -2
  229. package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
  230. package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
  231. package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
  232. package/dist/components/layout/sidebar/index.d.ts +2 -1
  233. package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +36 -0
  234. package/dist/components/layout/sidebar/sidebar.context.d.ts +5 -7
  235. package/dist/components/layout/sidebar/sidebar.types.d.ts +48 -10
  236. package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
  237. package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
  238. package/dist/components/typography/text.styles.d.ts +26 -1
  239. package/dist/components/ui/alert-dialog.d.ts +2 -2
  240. package/dist/components/ui/combobox.d.ts +1 -1
  241. package/dist/components/ui/dialog.d.ts +2 -2
  242. package/dist/components/ui/overlay-layer.d.ts +18 -0
  243. package/dist/components/ui/sheet.d.ts +5 -1
  244. package/dist/components/ui/sidebar-state.d.ts +82 -0
  245. package/dist/components/ui/sidebar.d.ts +5 -17
  246. package/dist/composition.recipes-COdiFhxB.js +19 -0
  247. package/dist/composition.recipes-COdiFhxB.js.map +1 -0
  248. package/dist/containers-CIxwbZt5.js +112 -0
  249. package/dist/containers-CIxwbZt5.js.map +1 -0
  250. package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
  251. package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
  252. package/dist/{copyable-ClBuk_UK.js → copyable-DIznBqiT.js} +7 -7
  253. package/dist/{copyable-ClBuk_UK.js.map → copyable-DIznBqiT.js.map} +1 -1
  254. package/dist/{data-display-DT_khPl_.js → data-display-BdgCAw8T.js} +277 -285
  255. package/dist/data-display-BdgCAw8T.js.map +1 -0
  256. package/dist/{date-DCrsDTZc.js → date-Cq8ioE4o.js} +5 -5
  257. package/dist/{date-DCrsDTZc.js.map → date-Cq8ioE4o.js.map} +1 -1
  258. package/dist/{date-picker-B2K3ucWn.js → date-picker-RlIzKom_.js} +501 -480
  259. package/dist/date-picker-RlIzKom_.js.map +1 -0
  260. package/dist/date-pickers-DY-CpXS1.js +179 -0
  261. package/dist/date-pickers-DY-CpXS1.js.map +1 -0
  262. package/dist/{display-hAc1HjpI.js → display-KsZLw9Ov.js} +9 -9
  263. package/dist/{display-hAc1HjpI.js.map → display-KsZLw9Ov.js.map} +1 -1
  264. package/dist/dropdown-menu-CLs8Lihj.js +194 -0
  265. package/dist/dropdown-menu-CLs8Lihj.js.map +1 -0
  266. package/dist/features/activities.js +302 -253
  267. package/dist/features/activities.js.map +1 -1
  268. package/dist/features/ai-chat.js +15 -14
  269. package/dist/features/ai-chat.js.map +1 -1
  270. package/dist/features/appointment-calendar.js +222 -220
  271. package/dist/features/appointment-calendar.js.map +1 -1
  272. package/dist/features/async-preview.js +11 -10
  273. package/dist/features/async-preview.js.map +1 -1
  274. package/dist/features/combobox.js +1 -1
  275. package/dist/features/comments.js +1 -1
  276. package/dist/features/data-view.js +13 -13
  277. package/dist/features/data-view.js.map +1 -1
  278. package/dist/features/email-composer.js +249 -249
  279. package/dist/features/email-composer.js.map +1 -1
  280. package/dist/features/event-calendar.js +264 -269
  281. package/dist/features/event-calendar.js.map +1 -1
  282. package/dist/features/filters.js +1 -1
  283. package/dist/features/global-search.js +167 -138
  284. package/dist/features/global-search.js.map +1 -1
  285. package/dist/features/kanban.js +6 -7
  286. package/dist/features/kanban.js.map +1 -1
  287. package/dist/features/map.js +269 -260
  288. package/dist/features/map.js.map +1 -1
  289. package/dist/features/media-library.js +827 -777
  290. package/dist/features/media-library.js.map +1 -1
  291. package/dist/features/mentions.js +1 -1
  292. package/dist/features/overlays.js +1 -1
  293. package/dist/features/products.js +1246 -1169
  294. package/dist/features/products.js.map +1 -1
  295. package/dist/features/questionnaire.js +13 -13
  296. package/dist/features/questionnaire.js.map +1 -1
  297. package/dist/features/resource-assignment.js +8 -8
  298. package/dist/features/resource.js +127 -123
  299. package/dist/features/resource.js.map +1 -1
  300. package/dist/features/rich-text-editor.js +2 -2
  301. package/dist/features/schema-form.js +254 -253
  302. package/dist/features/schema-form.js.map +1 -1
  303. package/dist/features/suggestions.js +3 -3
  304. package/dist/features/sync.js +3 -3
  305. package/dist/features/table.js +1 -1
  306. package/dist/features/theme-tweaker.js +95 -96
  307. package/dist/features/theme-tweaker.js.map +1 -1
  308. package/dist/{feedback-BYIhtitP.js → feedback-Dm4izqFn.js} +81 -80
  309. package/dist/feedback-Dm4izqFn.js.map +1 -0
  310. package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DWcNcOjh.js} +4 -4
  311. package/dist/field-affordance-recipes-DWcNcOjh.js.map +1 -0
  312. package/dist/{filters-DJVAveHA.js → filters-DzgSJpMK.js} +693 -645
  313. package/dist/filters-DzgSJpMK.js.map +1 -0
  314. package/dist/{form-field-CwH9y77i.js → form-field-BriWAXyg.js} +14 -8
  315. package/dist/form-field-BriWAXyg.js.map +1 -0
  316. package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-Bs2qFUeE.js} +4 -4
  317. package/dist/form-sizing-Bs2qFUeE.js.map +1 -0
  318. package/dist/forms-C0RGnJTe.js +216 -0
  319. package/dist/forms-C0RGnJTe.js.map +1 -0
  320. package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-DIhghX1Q.js} +295 -291
  321. package/dist/forms-numeric-DIhghX1Q.js.map +1 -0
  322. package/dist/{header-BSfIEWbI.js → header-DMMxG__r.js} +67 -63
  323. package/dist/header-DMMxG__r.js.map +1 -0
  324. package/dist/header.recipes-BigdJjw1.js +6 -0
  325. package/dist/header.recipes-BigdJjw1.js.map +1 -0
  326. package/dist/hooks/useFormErrors.d.ts +1 -1
  327. package/dist/{hooks-ClH9thn4.js → hooks-DB6CJ4MR.js} +26 -14
  328. package/dist/hooks-DB6CJ4MR.js.map +1 -0
  329. package/dist/{icon-badge-DYKIwvOV.js → icon-badge-DZF-YjQp.js} +4 -4
  330. package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-DZF-YjQp.js.map} +1 -1
  331. package/dist/index.js +4 -5
  332. package/dist/input-CvyDQlY7.js +289 -0
  333. package/dist/input-CvyDQlY7.js.map +1 -0
  334. package/dist/input-DMBwAZmr.js +21 -0
  335. package/dist/input-DMBwAZmr.js.map +1 -0
  336. package/dist/item-DjCcM18E.js +277 -0
  337. package/dist/item-DjCcM18E.js.map +1 -0
  338. package/dist/layout/app-shell.js +1 -1
  339. package/dist/layout/auth.js +1 -1
  340. package/dist/layout/containers.js +1 -1
  341. package/dist/layout/header.js +1 -1
  342. package/dist/layout/hooks.js +1 -1
  343. package/dist/layout/navigation.js +1 -1
  344. package/dist/layout/page.js +2 -2
  345. package/dist/layout/settings.js +1 -1
  346. package/dist/layout/sidebar.js +3 -3
  347. package/dist/layout/workspace.js +1 -1
  348. package/dist/layout.js +11 -11
  349. package/dist/lib/affordance-geometry.generated.d.ts +41 -35
  350. package/dist/lib/control-group-recipes.d.ts +5 -5
  351. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  352. package/dist/lib/motion-recipes.d.ts +3 -0
  353. package/dist/lib/navigation-row-recipes.d.ts +7 -7
  354. package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
  355. package/dist/lib/portal-recipes.d.ts +3 -0
  356. package/dist/lib/token-merge.generated.d.ts +13 -10
  357. package/dist/lib/ui-provider/types.d.ts +1 -1
  358. package/dist/lib/utils.js +1 -1
  359. package/dist/map-demo-tile.svg +1 -1
  360. package/dist/{media-gallery-3zIVLMWH.js → media-gallery-C-vChPmE.js} +6 -6
  361. package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-C-vChPmE.js.map} +1 -1
  362. package/dist/{mentions-CGlEJ15c.js → mentions-0_4nWuI-.js} +10 -10
  363. package/dist/{mentions-CGlEJ15c.js.map → mentions-0_4nWuI-.js.map} +1 -1
  364. package/dist/{message-DZ_ruyUV.js → message-g8p7eVtN.js} +7 -7
  365. package/dist/message-g8p7eVtN.js.map +1 -0
  366. package/dist/metadata-list-C3MkU-Om.js +443 -0
  367. package/dist/metadata-list-C3MkU-Om.js.map +1 -0
  368. package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
  369. package/dist/motion-recipes-DitYv6P2.js.map +1 -0
  370. package/dist/navigation-C90-oQFq.js +255 -0
  371. package/dist/navigation-C90-oQFq.js.map +1 -0
  372. package/dist/{navigation-BzhHI3lo.js → navigation-DaRjthVk.js} +101 -82
  373. package/dist/navigation-DaRjthVk.js.map +1 -0
  374. package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
  375. package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
  376. package/dist/{number-DbV1Dija.js → number-CRU3kGuk.js} +5 -5
  377. package/dist/{number-DbV1Dija.js.map → number-CRU3kGuk.js.map} +1 -1
  378. package/dist/overflow-tab-bar-IVFVQFV6.js +172 -0
  379. package/dist/overflow-tab-bar-IVFVQFV6.js.map +1 -0
  380. package/dist/overlays-BSgCtM2v.js +1013 -0
  381. package/dist/overlays-BSgCtM2v.js.map +1 -0
  382. package/dist/page-DUUKDAjo.js +331 -0
  383. package/dist/page-DUUKDAjo.js.map +1 -0
  384. package/dist/page-header-commands-7P3sfE9u.js +193 -0
  385. package/dist/page-header-commands-7P3sfE9u.js.map +1 -0
  386. package/dist/{pagination-BL25hu2s.js → pagination-CgCjElfu.js} +7 -7
  387. package/dist/{pagination-BL25hu2s.js.map → pagination-CgCjElfu.js.map} +1 -1
  388. package/dist/popover-B85RenIl.js +201 -0
  389. package/dist/popover-B85RenIl.js.map +1 -0
  390. package/dist/{popover-menu-Cn9rUkdc.js → popover-menu-DlnQ2zlR.js} +7 -7
  391. package/dist/{popover-menu-Cn9rUkdc.js.map → popover-menu-DlnQ2zlR.js.map} +1 -1
  392. package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DdiEp0rd.js} +18 -11
  393. package/dist/popover.recipes-DdiEp0rd.js.map +1 -0
  394. package/dist/portal-recipes-BpsV_iRw.js +9 -0
  395. package/dist/portal-recipes-BpsV_iRw.js.map +1 -0
  396. package/dist/{primitives-BFK08r9M.js → primitives-ByWgGUgt.js} +6 -6
  397. package/dist/{primitives-BFK08r9M.js.map → primitives-ByWgGUgt.js.map} +1 -1
  398. package/dist/primitives.js +4 -4
  399. package/dist/{progress-B1VnCT0K.js → progress-BJhQP9WX.js} +9 -9
  400. package/dist/{progress-B1VnCT0K.js.map → progress-BJhQP9WX.js.map} +1 -1
  401. package/dist/{receipt-BVSOH3Xo.js → receipt-tOc7B3hw.js} +7 -7
  402. package/dist/receipt-tOc7B3hw.js.map +1 -0
  403. package/dist/{rich-text-GOUyKQ-s.js → rich-text-Dth5E882.js} +4 -4
  404. package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-Dth5E882.js.map} +1 -1
  405. package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-C1fOjBTd.js} +429 -430
  406. package/dist/rich-text-editor-C1fOjBTd.js.map +1 -0
  407. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-laT3tpBT.js} +33 -29
  408. package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +1 -0
  409. package/dist/{scroll-area-DcI-M1UT.js → scroll-area-B0dB2cBi.js} +2 -2
  410. package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-B0dB2cBi.js.map} +1 -1
  411. package/dist/{separator-Bom7NsGO.js → separator-Bb17I4pu.js} +2 -2
  412. package/dist/{separator-Bom7NsGO.js.map → separator-Bb17I4pu.js.map} +1 -1
  413. package/dist/{separator-BDV-Y648.js → separator-Ct_WSWTJ.js} +3 -3
  414. package/dist/{separator-BDV-Y648.js.map → separator-Ct_WSWTJ.js.map} +1 -1
  415. package/dist/services/actions.js +1 -1
  416. package/dist/settings-Bar5wiSo.js +167 -0
  417. package/dist/settings-Bar5wiSo.js.map +1 -0
  418. package/dist/sheet-BGPERY55.js +250 -0
  419. package/dist/sheet-BGPERY55.js.map +1 -0
  420. package/dist/sidebar-D-JYMMbY.js +686 -0
  421. package/dist/sidebar-D-JYMMbY.js.map +1 -0
  422. package/dist/sidebar-f9gRWXIR.js +1001 -0
  423. package/dist/sidebar-f9gRWXIR.js.map +1 -0
  424. package/dist/skeleton-BapcJd9C.js +265 -0
  425. package/dist/skeleton-BapcJd9C.js.map +1 -0
  426. package/dist/smart-card-CW0hjetE.js +617 -0
  427. package/dist/smart-card-CW0hjetE.js.map +1 -0
  428. package/dist/{structure-BmisBK-3.js → structure-DuxKl954.js} +3 -3
  429. package/dist/{structure-BmisBK-3.js.map → structure-DuxKl954.js.map} +1 -1
  430. package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
  431. package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
  432. package/dist/style.css +1 -1
  433. package/dist/{table-DsfzoUia.js → table-B4TE7iOV.js} +3 -3
  434. package/dist/{table-DsfzoUia.js.map → table-B4TE7iOV.js.map} +1 -1
  435. package/dist/{table-BweFy_P9.js → table-CFOWY9pQ.js} +394 -388
  436. package/dist/table-CFOWY9pQ.js.map +1 -0
  437. package/dist/{tabs-CDocW5D1.js → tabs-e7ko9S2o.js} +11 -11
  438. package/dist/tabs-e7ko9S2o.js.map +1 -0
  439. package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-B1culiSK.js} +107 -104
  440. package/dist/text-inputs-B1culiSK.js.map +1 -0
  441. package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
  442. package/dist/text.styles-B64My8RZ.js.map +1 -0
  443. package/dist/theme.css +192 -149
  444. package/dist/{timelines-CwM_9IhD.js → timelines-D3Sl9ueq.js} +13 -12
  445. package/dist/timelines-D3Sl9ueq.js.map +1 -0
  446. package/dist/tooltip-8wz5S_Zr.js +113 -0
  447. package/dist/tooltip-8wz5S_Zr.js.map +1 -0
  448. package/dist/{tree-WnKQzwbq.js → tree-CzUJHnFs.js} +9 -9
  449. package/dist/{tree-WnKQzwbq.js.map → tree-CzUJHnFs.js.map} +1 -1
  450. package/dist/typography/rich-text.js +1 -1
  451. package/dist/typography-BQnine1k.js +117 -0
  452. package/dist/typography-BQnine1k.js.map +1 -0
  453. package/dist/typography.js +1 -1
  454. package/dist/ui-provider-C-74NVLc.js +178 -0
  455. package/dist/ui-provider-C-74NVLc.js.map +1 -0
  456. package/dist/ui-provider.js +2 -3
  457. package/dist/{upload-CXyxmQBP.js → upload-BOW6U2tI.js} +25 -24
  458. package/dist/upload-BOW6U2tI.js.map +1 -0
  459. package/dist/{upload-queue-Boscubn9.js → upload-queue-qUXn1ykN.js} +16 -14
  460. package/dist/upload-queue-qUXn1ykN.js.map +1 -0
  461. package/dist/{usage-card-BhO5eqkX.js → usage-card-BeSLY0i0.js} +145 -137
  462. package/dist/usage-card-BeSLY0i0.js.map +1 -0
  463. package/dist/{utils-BRhFDwuU.js → utils-B6kKb8jB.js} +303 -144
  464. package/dist/utils-B6kKb8jB.js.map +1 -0
  465. package/dist/value-inputs-skdVB2zh.js +980 -0
  466. package/dist/value-inputs-skdVB2zh.js.map +1 -0
  467. package/dist/{value-typography-BP8OG6h5.js → value-typography-uAmWUAL1.js} +2 -2
  468. package/dist/{value-typography-BP8OG6h5.js.map → value-typography-uAmWUAL1.js.map} +1 -1
  469. package/dist/workspace-DHeHv0qw.js +411 -0
  470. package/dist/workspace-DHeHv0qw.js.map +1 -0
  471. package/docs/consumer-skill/SKILL.md +15 -129
  472. package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
  473. package/docs/consumer-skill/examples/app-layout.tsx +74 -13
  474. package/docs/consumer-skill/examples/authentication.tsx +77 -0
  475. package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
  476. package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
  477. package/docs/consumer-skill/examples/detail.tsx +5 -4
  478. package/docs/consumer-skill/examples/edit.tsx +30 -38
  479. package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
  480. package/docs/consumer-skill/examples/index-table.tsx +4 -4
  481. package/docs/consumer-skill/examples/manifest.json +88 -1
  482. package/docs/consumer-skill/examples/product-media.tsx +41 -0
  483. package/docs/consumer-skill/examples/product-parts.tsx +81 -0
  484. package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
  485. package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
  486. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +105 -0
  487. package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
  488. package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
  489. package/docs/consumer-skill/references/agents-md.md +23 -11
  490. package/docs/consumer-skill/references/analytics.md +18 -1
  491. package/docs/consumer-skill/references/authentication.md +42 -0
  492. package/docs/consumer-skill/references/commerce-composition.md +97 -0
  493. package/docs/consumer-skill/references/component-contracts.json +325201 -0
  494. package/docs/consumer-skill/references/composition-mapping.md +106 -0
  495. package/docs/consumer-skill/references/composition.md +198 -46
  496. package/docs/consumer-skill/references/critique-rubric.md +98 -0
  497. package/docs/consumer-skill/references/custom-composition.md +261 -0
  498. package/docs/consumer-skill/references/data-reading.md +79 -0
  499. package/docs/consumer-skill/references/design-contract.md +43 -9
  500. package/docs/consumer-skill/references/discovery.md +109 -8
  501. package/docs/consumer-skill/references/domain-structures.md +124 -0
  502. package/docs/consumer-skill/references/installation.md +51 -36
  503. package/docs/consumer-skill/references/integration.md +41 -2
  504. package/docs/consumer-skill/references/product-composition.md +94 -0
  505. package/docs/consumer-skill/references/public-api.json +4390 -475
  506. package/docs/consumer-skill/references/review.md +47 -5
  507. package/docs/consumer-skill/references/rhf-workflows.md +93 -0
  508. package/docs/consumer-skill/references/screen-archetypes.md +34 -0
  509. package/docs/consumer-skill/references/screen-decisions.md +126 -0
  510. package/docs/consumer-skill/references/theming.md +25 -27
  511. package/docs/consumer-skill/references/tokens.json +20 -11
  512. package/docs/consumer-skill/references/view-craft.md +153 -0
  513. package/docs/consumer-skill/references/view-spec.md +73 -0
  514. package/docs/consumer-skill/references/workflows.md +9 -2
  515. package/docs/consumer-skill/scripts/composition-policy.mjs +39 -3
  516. package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
  517. package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
  518. package/docs/consumer-skill/scripts/composition.mjs +254 -0
  519. package/docs/consumer-skill/scripts/discovery.mjs +96 -10
  520. package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
  521. package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
  522. package/docs/consumer-skill/scripts/inspection.mjs +193 -0
  523. package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
  524. package/docs/consumer-skill/scripts/setup-skills.mjs +111 -0
  525. package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
  526. package/docs/consumer-skills/themelia-components/SKILL.md +31 -0
  527. package/docs/consumer-skills/themelia-composition/SKILL.md +34 -0
  528. package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
  529. package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
  530. package/docs/consumer-skills/themelia-foundation/SKILL.md +15 -0
  531. package/docs/consumer-skills/themelia-tokenization/SKILL.md +42 -0
  532. package/package.json +4 -2
  533. package/templates/README.md +39 -0
  534. package/templates/admin-shell-template.tsx +382 -0
  535. package/templates/analytics-operations-template.tsx +376 -0
  536. package/templates/customers-template.tsx +509 -0
  537. package/templates/index.ts +29 -0
  538. package/templates/orders-template.tsx +1102 -0
  539. package/templates/products-template.tsx +834 -0
  540. package/templates/user-permissions-template.tsx +450 -0
  541. package/dist/accordion-Cjb6sx0G.js.map +0 -1
  542. package/dist/action-menu-CllU52Mm.js +0 -280
  543. package/dist/action-menu-CllU52Mm.js.map +0 -1
  544. package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
  545. package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
  546. package/dist/app-shell-C4FhvCqF.js +0 -236
  547. package/dist/app-shell-C4FhvCqF.js.map +0 -1
  548. package/dist/auth-BGua8ouh.js.map +0 -1
  549. package/dist/avatar-DAPlDvhJ.js.map +0 -1
  550. package/dist/base/cascader.js.map +0 -1
  551. package/dist/batch-action-bar-DnUJ21NQ.js.map +0 -1
  552. package/dist/button-DVzspB_G.js.map +0 -1
  553. package/dist/buttons-DPZekJFu.js.map +0 -1
  554. package/dist/cards-BaBZR-AU.js +0 -68
  555. package/dist/cards-BaBZR-AU.js.map +0 -1
  556. package/dist/chart-ZOYyK2xG.js +0 -155
  557. package/dist/chart-ZOYyK2xG.js.map +0 -1
  558. package/dist/checkbox-AWIhNhmo.js.map +0 -1
  559. package/dist/choice-inputs-CNHvARCJ.js +0 -770
  560. package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
  561. package/dist/code-block-DeneBJR_.js.map +0 -1
  562. package/dist/combobox-DaHESuiL.js +0 -355
  563. package/dist/combobox-DaHESuiL.js.map +0 -1
  564. package/dist/combobox-Dxo2fAYQ.js.map +0 -1
  565. package/dist/command-C25VMRII.js.map +0 -1
  566. package/dist/comments-DD0DUPwJ.js.map +0 -1
  567. package/dist/containers-Mu1LMGV1.js +0 -103
  568. package/dist/containers-Mu1LMGV1.js.map +0 -1
  569. package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
  570. package/dist/data-display-DT_khPl_.js.map +0 -1
  571. package/dist/date-picker-B2K3ucWn.js.map +0 -1
  572. package/dist/date-pickers-Ds8gLaoP.js +0 -175
  573. package/dist/date-pickers-Ds8gLaoP.js.map +0 -1
  574. package/dist/dropdown-menu-Cl4X7L5S.js +0 -193
  575. package/dist/dropdown-menu-Cl4X7L5S.js.map +0 -1
  576. package/dist/feedback-BYIhtitP.js.map +0 -1
  577. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +0 -1
  578. package/dist/filters-DJVAveHA.js.map +0 -1
  579. package/dist/form-field-CwH9y77i.js.map +0 -1
  580. package/dist/form-sizing-BdP_Mf5p.js.map +0 -1
  581. package/dist/forms-B9G_xwzi.js +0 -194
  582. package/dist/forms-B9G_xwzi.js.map +0 -1
  583. package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
  584. package/dist/header-BSfIEWbI.js.map +0 -1
  585. package/dist/hooks-ClH9thn4.js.map +0 -1
  586. package/dist/input-CZw8iU99.js +0 -21
  587. package/dist/input-CZw8iU99.js.map +0 -1
  588. package/dist/input-DQdEd0YD.js +0 -263
  589. package/dist/input-DQdEd0YD.js.map +0 -1
  590. package/dist/item-K5_ghvze.js +0 -275
  591. package/dist/item-K5_ghvze.js.map +0 -1
  592. package/dist/message-DZ_ruyUV.js.map +0 -1
  593. package/dist/metadata-list-8N16ZMW_.js +0 -405
  594. package/dist/metadata-list-8N16ZMW_.js.map +0 -1
  595. package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
  596. package/dist/navigation-Bnotn4AQ.js +0 -145
  597. package/dist/navigation-Bnotn4AQ.js.map +0 -1
  598. package/dist/navigation-BzhHI3lo.js.map +0 -1
  599. package/dist/navigation-row-recipes-BFLCk_Aq.js.map +0 -1
  600. package/dist/overflow-tab-bar-CWY7Nogn.js +0 -282
  601. package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
  602. package/dist/overlays-tMkF-VAN.js +0 -1003
  603. package/dist/overlays-tMkF-VAN.js.map +0 -1
  604. package/dist/page-CL9YeH_V.js +0 -224
  605. package/dist/page-CL9YeH_V.js.map +0 -1
  606. package/dist/page-header-commands-DOb6WsfD.js +0 -126
  607. package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
  608. package/dist/popover-gnTOhbFM.js +0 -198
  609. package/dist/popover-gnTOhbFM.js.map +0 -1
  610. package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
  611. package/dist/receipt-BVSOH3Xo.js.map +0 -1
  612. package/dist/rich-text-editor-cRLC-eBK.js.map +0 -1
  613. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +0 -1
  614. package/dist/settings-ybnjVwbd.js +0 -171
  615. package/dist/settings-ybnjVwbd.js.map +0 -1
  616. package/dist/sheet-ijlsjq-n.js +0 -213
  617. package/dist/sheet-ijlsjq-n.js.map +0 -1
  618. package/dist/sidebar-Db6gkh3U.js +0 -619
  619. package/dist/sidebar-Db6gkh3U.js.map +0 -1
  620. package/dist/sidebar-DkTO4VTO.js +0 -512
  621. package/dist/sidebar-DkTO4VTO.js.map +0 -1
  622. package/dist/skeleton-Byjnt7qr.js +0 -264
  623. package/dist/skeleton-Byjnt7qr.js.map +0 -1
  624. package/dist/smart-card-DiC5aac3.js +0 -604
  625. package/dist/smart-card-DiC5aac3.js.map +0 -1
  626. package/dist/table-BweFy_P9.js.map +0 -1
  627. package/dist/tabs-CDocW5D1.js.map +0 -1
  628. package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
  629. package/dist/text.styles-g4He6UIW.js.map +0 -1
  630. package/dist/theme-scope-BJ6eE2xt.js +0 -50
  631. package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
  632. package/dist/timelines-CwM_9IhD.js.map +0 -1
  633. package/dist/tooltip-yiRJUFjp.js +0 -111
  634. package/dist/tooltip-yiRJUFjp.js.map +0 -1
  635. package/dist/typography-UTnveOEy.js +0 -117
  636. package/dist/typography-UTnveOEy.js.map +0 -1
  637. package/dist/ui-provider-C_U0Xma4.js +0 -136
  638. package/dist/ui-provider-C_U0Xma4.js.map +0 -1
  639. package/dist/upload-CXyxmQBP.js.map +0 -1
  640. package/dist/upload-queue-Boscubn9.js.map +0 -1
  641. package/dist/usage-card-BhO5eqkX.js.map +0 -1
  642. package/dist/use-mobile-vaLKwgyf.js +0 -15
  643. package/dist/use-mobile-vaLKwgyf.js.map +0 -1
  644. package/dist/utils-BRhFDwuU.js.map +0 -1
  645. package/dist/value-inputs-TaX4OjNk.js +0 -963
  646. package/dist/value-inputs-TaX4OjNk.js.map +0 -1
  647. package/dist/workspace-B-OEm3Kf.js +0 -408
  648. package/dist/workspace-B-OEm3Kf.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smart-card-CW0hjetE.js","names":["Card","CardHeader","CardTitle","CardContent","CardFooter","styles","styles","CardPrimitive","CardHeaderPrimitive","CardTitlePrimitive","CardContentPrimitive","CardFooterPrimitive","resolveComponentScale","useCardConfig","useDensityConfig","useTypographyConfig","cn","affordanceGeometry","Button","descendantInlineLinkClassName","resolveTextClassNames","headingRoleSizes","motionRecipes","TooltipTrigger","TooltipContent","Tooltip","gapRecipe","Stack","ICON_CHILD_SIZE_CLASSNAMES","toneRecipes","rowBlockPaddingClasses","surfaceDividerRecipes","compositionRhythm","compositionClasses","ActionMenu","alertVariants","cva","isSimpleText","value","Alert","forwardRef","props","tone","variant","defaultTextSize","className","AlertTitle","children","Text","AlertDescription","AlertMetadata","AlertMetadataItem","icon","label","numeric","AlertAction","cardRegionPaddingClasses","cardRegionGapClasses","cardRecipes","Card$1","size","CardHeader$1","CardTitle$1","CardContent$1","CardFooter$1","CARD_BEM","CARD_INSET","SURFACE_CLASSES","hasRenderableContent","content","isValidElement","Fragment","CARD_TITLE_SIZE_CLASSES","CARD_TITLE_TEXT_SIZE","CardShell","surface","CardHeader","padding","textGap","CardTitle","sizeProp","defaultScale","CardDescription","CardContent","CardFooter","SmartCardAlert","hasHeader","alertTone","alert","SurfaceTitle","plainTitle","title","dataSlot","suffix","suffixClassName","ActionsMenu","actionDefinitions","actions","action","index","actionsLabel","TooltipTrigger_Info","passthrough","triggerProps","tooltipLabel","Info","SmartCardHeaderRow","cardActions","hasActions","hasIcon","hasTitle","hasTitleSuffix","titleSuffix","hasDescription","description","hasTooltip","tooltip","hasHeaderStart","headerStart","hasHeaderEnd","headerEnd","hasHeaderAction","headerAction","showTitleRow","showTrailing","singleLine","inlineTrailing","inlineCommands","titleSize","defaultSmartCardStrings","Card","footerDividerProp","expandedProp","stringsProp","rootProps","resolvedTitleSize","inset","vertical","tokens","framedHeader","headerPlacement","strings","useStrings","resolvedActionsLabel","isExpandable","expandable","collapsedMaxHeightRaw","collapsedMaxHeight","isExpandedControlled","bodyId","useId","internalExpanded","setInternalExpanded","useState","defaultExpanded","expanded","handleToggle","useCallback","next","onExpandedChange","handleBodyFocus","body","event","target","frame","control","hasAlert","hasFooterText","footerText","hasFooterSlot","footerSlot","hasContentTop","contentTop","hasContentBottom","contentBottom","hasChildren","hasBody","hasBodySurface","headerFooterOnly","tooltipAriaLabel","collapseStyle","resolvedSurface","defaultSurface","framed","resolvedHeaderDivider","headerDivider","defaultHeaderDivider","footerDivider","defaultFooterDivider","sharedHeaderFooterDivider","gap","headerClassName","contentClassName","contentGap","footerClassName","ChevronDown","SmartCard"],"sources":["../src/components/base/feedback/alert.tsx","../src/components/base/cards/card.recipes.ts","../src/components/ui/card.tsx","../src/components/base/cards/smart-card.tokens.ts","../src/components/base/cards/partials/has-renderable-content.ts","../src/components/base/cards/partials/card-primitives.tsx","../src/components/base/cards/partials/smart-card-alert.tsx","../src/components/base/display/surface-title.tsx","../src/components/base/cards/partials/smart-card-actions-menu.tsx","../src/components/base/cards/partials/smart-card-header-row.tsx","../src/components/base/cards/smart-card.strings.ts","../src/components/base/cards/smart-card.tsx"],"sourcesContent":["/**\n * Alert — base notice primitive with semantic variants and container-driven actions.\n *\n * Package-owned notice inspired by ReUI's alert layout. Consumers import this\n * base alert for the library's typography, token, and DOM-hook contract.\n */\nimport {\n\tforwardRef,\n\ttype ComponentPropsWithoutRef,\n\ttype ReactNode,\n} from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { Text } from '../../typography';\nimport { descendantInlineLinkClassName } from '../../typography/text-link';\nimport { resolveTextClassNames } from '../../typography/text.styles';\nimport { useTypographyConfig } from '../../../lib/ui-provider';\nimport { Stack } from '../structure';\nimport { cn } from '../../../lib/utils';\nimport { ICON_CHILD_SIZE_CLASSNAMES } from '../display/icon-size';\nimport type { SemanticTone } from '../../../lib/component-vocabulary';\nimport { toneRecipes } from '../../../lib/tone-recipes';\nimport { rowBlockPaddingClasses } from '../../../lib/row-recipes';\n\nconst alertVariants = cva(\n\t[\n\t\t// A notice is one row of content, so it takes Item's row geometry: the row\n\t\t// insets, Item's media/content/actions gap and its copy rhythm (gap-normal).\n\t\t// Toast follows the same recipe.\n\t\t// The alert is its own container: AlertAction sits beside the copy only when the\n\t\t// alert itself is wide enough, never because the viewport is.\n\t\t`alert--component @container/alert box-border relative grid w-full grid-cols-[0_1fr] items-start gap-y-normal rounded-radius border px-row-x ${rowBlockPaddingClasses.default} text-start`,\n\t\t'has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-space-lg',\n\t\t// Two explicit tracks; a beside action opens an implicit third (auto) track, so\n\t\t// a stacked action leaves no empty column or gap behind.\n\t\t'has-[>[data-slot=alert-action]]:grid-cols-[0_minmax(0,1fr)] has-[>svg]:has-[>[data-slot=alert-action]]:grid-cols-[auto_minmax(0,1fr)]',\n\t\t// Without a glyph the empty first track takes no gap, so the copy keeps the row\n\t\t// inset; a beside action then takes Item's actions gap as its own margin.\n\t\t'@sm/alert:[&:not(:has(>svg))>[data-slot=alert-action]]:ms-space-lg',\n\t\t// Root tokens, not the `--spacing-*` aliases: an alias resolves at :root and would\n\t\t// ignore a scoped density/space/icon boundary.\n\t\t'[&>svg]:row-span-2 [&>svg]:mt-[calc((1em*1.375-var(--icon))/2)] [&>svg]:shrink-0',\n\t\tICON_CHILD_SIZE_CLASSNAMES.md,\n\t],\n\t{\n\t\tvariants: {\n\t\t\ttone: {\n\t\t\t\tneutral: 'border-border bg-card text-card-foreground',\n\t\t\t\tprimary: `${toneRecipes.primary.edge} ${toneRecipes.primary.wash} text-card-foreground [&>svg]:text-primary-accent`,\n\t\t\t\tsecondary: 'border-border bg-muted/50 text-card-foreground [&>svg]:text-secondary-foreground',\n\t\t\t\tinfo: `${toneRecipes.info.edge} ${toneRecipes.info.wash} text-card-foreground [&>svg]:text-info`,\n\t\t\t\tsuccess: `${toneRecipes.success.edge} ${toneRecipes.success.wash} text-card-foreground [&>svg]:text-success`,\n\t\t\t\twarning: `${toneRecipes.warning.edge} ${toneRecipes.warning.wash} text-card-foreground [&>svg]:text-warning-accent`,\n\t\t\t\tdestructive: `${toneRecipes.destructive.edge} ${toneRecipes.destructive.wash} text-card-foreground [&>svg]:text-destructive`,\n\t\t\t},\n\t\t\tvariant: {\n\t\t\t\tdefault: '',\n\t\t\t\tinverse: [\n\t\t\t\t\t'border-foreground bg-foreground text-background',\n\t\t\t\t\t'[&>svg]:text-background',\n\t\t\t\t\t'[&_[data-slot=alert-title]_[data-typography=text]]:text-background',\n\t\t\t\t\t'[&_[data-slot=alert-description]_[data-typography=text]]:text-background',\n\t\t\t\t\t'[&_[data-slot=alert-metadata-item]]:bg-background/10',\n\t\t\t\t\t'[&_[data-slot=alert-metadata-item]>svg]:text-background',\n\t\t\t\t\t'[&_[data-slot=alert-metadata-label]_[data-typography=text]]:text-background',\n\t\t\t\t\t'[&_[data-slot=alert-metadata-value]_[data-typography=text]]:text-background',\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\ttone: 'neutral',\n\t\t\tvariant: 'default',\n\t\t},\n\t},\n);\n\nexport type AlertVariant = NonNullable<VariantProps<typeof alertVariants>['variant']>;\nexport type AlertTone = SemanticTone;\n\nexport interface AlertProps\n\textends ComponentPropsWithoutRef<'div'>,\n\t\tVariantProps<typeof alertVariants> {}\n\nfunction isSimpleText(value: ReactNode): value is string | number | bigint {\n\treturn typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint';\n}\n\nconst Alert = forwardRef<HTMLDivElement, AlertProps>(function Alert(\n\t{ className, tone, variant, role = 'alert', ...props },\n\tref,\n) {\n\tconst { defaultTextSize } = useTypographyConfig();\n\treturn (\n\t\t<div\n\t\t\tref={ref}\n\t\t\tdata-slot=\"alert\"\n\t\t\tdata-tone={tone ?? 'neutral'}\n\t\t\tdata-variant={variant ?? 'default'}\n\t\t\trole={role}\n\t\t\tclassName={cn(resolveTextClassNames({ size: defaultTextSize, type: 'inherit' }), alertVariants({ tone, variant }), className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n});\nAlert.displayName = 'Alert';\n\nconst AlertTitle = forwardRef<HTMLDivElement, ComponentPropsWithoutRef<'div'>>(\n\tfunction AlertTitle({ className, children, ...props }, ref) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tdata-slot=\"alert-title\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'alert--title col-start-2 min-h-icon leading-snug',\n\t\t\t\t\tdescendantInlineLinkClassName,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{isSimpleText(children) ? (\n\t\t\t\t\t<Text tag=\"span\" type=\"inherit\" weight=\"semibold\" lineHeight=\"snug\">\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</Text>\n\t\t\t\t) : children}\n\t\t\t</div>\n\t\t);\n\t},\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = forwardRef<HTMLDivElement, ComponentPropsWithoutRef<'div'>>(\n\tfunction AlertDescription({ className, children, ...props }, ref) {\n\t\treturn (\n\t\t\t<Stack\n\t\t\t\tref={ref}\n\t\t\t\tdata-slot=\"alert-description\"\n\t\t\t\tgap=\"xs\"\n\t\t\t\talign=\"start\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'alert--description col-start-2 [&_p]:leading-relaxed',\n\t\t\t\t\tdescendantInlineLinkClassName,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{isSimpleText(children) ? (\n\t\t\t\t\t<Text tag=\"span\" type=\"secondary\">\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</Text>\n\t\t\t\t) : children}\n\t\t\t</Stack>\n\t\t);\n\t},\n);\nAlertDescription.displayName = 'AlertDescription';\n\nexport interface AlertMetadataProps extends ComponentPropsWithoutRef<'dl'> {\n\t/** Metadata items or consumer-owned definition-list content. */\n\tchildren?: ReactNode;\n\t/** Accessible name for the fact group when the alert title is not sufficient. */\n\t'aria-label'?: string;\n\t/** Consumer styling hook merged with the tokenized defaults. */\n\tclassName?: string;\n}\n\n/**\n * Compact semantic facts associated with an alert. Use `aria-label` when the\n * surrounding title does not already describe the metadata group.\n */\nconst AlertMetadata = forwardRef<HTMLDListElement, AlertMetadataProps>(\n\tfunction AlertMetadata({ className, ...props }, ref) {\n\t\treturn (\n\t\t\t<dl\n\t\t\t\tref={ref}\n\t\t\t\tdata-slot=\"alert-metadata\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'alert-metadata--component alert--metadata col-start-2 m-0 mt-space-xs flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nAlertMetadata.displayName = 'AlertMetadata';\n\nexport interface AlertMetadataItemProps\n\textends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {\n\t/** Consumer styling hook merged with the tokenized defaults. */\n\tclassName?: string;\n\t/** Decorative or semantic leading media. Decorative icons should be aria-hidden. */\n\ticon?: ReactNode;\n\t/** User-provided metadata key; the Alert component owns no copy. */\n\tlabel: ReactNode;\n\t/** User-provided metadata value. May contain a package value primitive. */\n\tvalue: ReactNode;\n\t/** Applies tabular figures to simple numeric values, in the sans UI font. */\n\tnumeric?: boolean;\n}\n\n/** A label/value pair rendered with native `dt` and `dd` semantics. */\nconst AlertMetadataItem = forwardRef<HTMLDivElement, AlertMetadataItemProps>(\n\tfunction AlertMetadataItem(\n\t\t{ className, icon, label, value, numeric = false, ...props },\n\t\tref,\n\t) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tref={ref}\n\t\t\t\tdata-slot=\"alert-metadata-item\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'alert-metadata-item--component alert--metadata-item inline-flex max-w-full min-w-0 items-center gap-space-sm rounded-radius-sm bg-foreground/8 px-control-xs py-space-xs',\n\t\t\t\t\t'[&>svg]:size-icon-sm [&>svg]:shrink-0 [&>svg]:text-muted-foreground',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{icon}\n\t\t\t\t<dt data-slot=\"alert-metadata-label\" className=\"alert--metadata-label shrink-0\">\n\t\t\t\t\t{isSimpleText(label) ? (\n\t\t\t\t\t\t<Text tag=\"span\" size=\"xs\" type=\"secondary\" lineHeight=\"none\">\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t) : label}\n\t\t\t\t</dt>\n\t\t\t\t<dd data-slot=\"alert-metadata-value\" className=\"alert--metadata-value m-0 min-w-0\">\n\t\t\t\t\t{isSimpleText(value) ? (\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\ttag=\"span\"\n\t\t\t\t\t\t\ttype=\"inherit\"\n\t\t\t\t\t\t\tsize=\"xs\"\n\t\t\t\t\t\t\tweight=\"semibold\"\n\t\t\t\t\t\t\tlineHeight=\"none\"\n\t\t\t\t\t\tclassName={cn('break-words', numeric && 'tabular-nums')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{value}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t) : value}\n\t\t\t\t</dd>\n\t\t\t</div>\n\t\t);\n\t},\n);\nAlertMetadataItem.displayName = 'AlertMetadataItem';\n\nconst AlertAction = forwardRef<HTMLDivElement, ComponentPropsWithoutRef<'div'>>(\n\tfunction AlertAction({ className, ...props }, ref) {\n\t\treturn (\n\t\t\t// Direction/alignment come from Stack; the remaining classes are grid\n\t\t\t// placement inside the alert's own template. Below the alert's own `@sm`\n\t\t\t// width the action follows the copy; from it, the action takes the implicit\n\t\t\t// third track beside the title and description.\n\t\t\t<Stack\n\t\t\t\tref={ref}\n\t\t\t\tdirection=\"horizontal\"\n\t\t\t\talign=\"center\"\n\t\t\t\tjustify=\"start\"\n\t\t\t\twrap\n\t\t\t\tgap=\"sm\"\n\t\t\t\tdata-slot=\"alert-action\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'alert--action col-start-2 mt-space-md @sm/alert:col-start-3 @sm/alert:row-start-1 @sm/alert:row-span-2 @sm/alert:mt-0 @sm/alert:self-start @sm/alert:justify-end',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nAlertAction.displayName = 'AlertAction';\n\nexport {\n\tAlert,\n\tAlertTitle,\n\tAlertDescription,\n\tAlertMetadata,\n\tAlertMetadataItem,\n\tAlertAction,\n};\n","import { affordanceGeometry } from '../../../lib/affordance-geometry.generated';\nimport { surfaceDividerRecipes } from '../../../lib/surface-recipes';\nimport type { SmartCardProps } from './smart-card.types';\nimport {compositionClasses} from '../structure/composition.recipes';\n\n/** Explicit region insets; omitted padding preserves the compound's inline-only defaults. */\nexport const cardRegionPaddingClasses = {\n\tnone: 'p-0',\n\tsm: 'p-surface-xs',\n\tmd: 'p-surface',\n\tlg: 'p-surface-lg',\n} as const satisfies Record<NonNullable<SmartCardProps['padding']>, string>;\n/** A padding-free subject keeps the base regional rhythm; explicit gap remains independent. */\nexport const cardRegionGapClasses = {\n none: affordanceGeometry.surfaceGap.md,\n sm: affordanceGeometry.surfaceGap.xs,\n md: affordanceGeometry.surfaceGap.md,\n lg: affordanceGeometry.surfaceGap.lg,\n} as const satisfies Record<NonNullable<SmartCardProps['padding']>, string>;\n/** Private Tailwind recipes; public props and DOM hooks remain owned by the component. */\nexport const cardRecipes = {\n\troot: `flex flex-col w-full font-sans rounded-surface box-border overflow-hidden py-surface ${affordanceGeometry.surfaceGap.md} transition-[background-color,border-color,box-shadow] duration-150`,\n\tshell: `@container/card flex flex-col w-full font-sans rounded-surface box-border overflow-hidden py-surface ${affordanceGeometry.surfaceGap.md} transition-[background-color,border-color,box-shadow] duration-150`,\n\tsurfaceCard: `bg-card ${surfaceDividerRecipes.frame.shell} shadow-xs text-card-foreground`,\n\tsurfaceDefault: `bg-card ${surfaceDividerRecipes.frame.shell} shadow-xs text-card-foreground`,\n\tsurfaceFlat: \"bg-transparent border-0 shadow-none text-inherit\",\n\tsurfaceFramed: `bg-card ${surfaceDividerRecipes.frame.shell} shadow-sm ${surfaceDividerRecipes.frame.ring} text-card-foreground`,\n\tsurfaceRaised: `bg-card ${surfaceDividerRecipes.frame.shell} shadow-md text-card-foreground`,\n\tsurfaceSunken: `bg-muted ${surfaceDividerRecipes.frame.shell} text-foreground`,\n\theader: \"flex flex-col gap-normal px-surface box-border\",\n\t// Wrapping follows available header space, independent of caller-owned\n\t// container names on the surface. Both title and commands keep their identity.\n\theaderRow: \"flex-row flex-wrap items-start justify-between gap-space-lg pb-0\",\n\t// A single-line header keeps its title at the row start, so peer cards with and\n\t// without a command share one title line. The command is pulled into the title's\n\t// first line box (action height minus the default title line, halved) instead of\n\t// centring the title in a taller row. Centring that margin box keeps the command on\n\t// the title's centre when a suffix badge or density changes the row height.\n\theaderTrailingInline: \"-my-space-sm self-center\",\n\t// The title column centres on the same line, so a smaller title meets the command\n\t// on one centre; a default title already fills the row, so peers are unchanged.\n\theaderLeadingInline: \"self-center\",\n\t// The small info trigger beside a title follows the same rule at its own height.\n\ttooltipTriggerInline: \"-my-space-xs\",\n\theaderLeading: \"min-w-0 max-w-full flex-1 basis-64\",\n\theaderLeadingSingle: \"basis-36\",\n\theaderTrailing: `flex max-w-full flex-wrap shrink-0 items-center ${compositionClasses.commands}`,\n\theaderDivider: `${surfaceDividerRecipes.frame.header} [&.border-b]:!pb-surface`,\n\ttitle: \"min-w-0 leading-tight text-inherit\",\n\ttitleSm: \"text-sm\",\n\ttitleMd: \"text-base\",\n\ttitleLg: \"text-lg\",\n\tcontent: `flex flex-col px-surface box-border min-w-0 ${compositionClasses.related}`,\n\tfooter: \"flex items-center px-surface box-border\",\n\tfooterDivider: `${surfaceDividerRecipes.frame.footer} [&.border-t]:!pt-surface`,\n\talert: \"px-surface\",\n\talertWithHeader: \"-mt-space-xs\",\n\texpandToggle: \"flex justify-center pb-surface -mt-space-md\",\n} as const satisfies Record<string, string>;\n","import * as React from \"react\"\n\nimport { cn } from \"../../lib/utils\"\n\nfunction Card({\n className,\n size = \"default\",\n ...props\n}: React.ComponentProps<\"div\"> & { size?: \"default\" | \"sm\" }) {\n return (\n <div\n data-slot=\"card\"\n data-size={size}\n className={cn(\"card--primitive\", className)}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\"card-header--primitive\", className)}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\"card-title--primitive\", className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"card-description--primitive\", className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\"card-action--primitive\", className)}\n {...props}\n />\n )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn(\"card-content--primitive\", className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"card-footer--primitive\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardAction,\n CardDescription,\n CardContent,\n}\n","import type { SmartCardSurface } from './smart-card.types';\nimport { cardRecipes as styles } from './card.recipes';\n\n/**\n * BEM-style hooks applied to every SmartCard subregion. Library\n * consumers can target them in CSS / tests / analytics without\n * relying on shadcn's data-slot attributes (which are framework\n * internals). Keep these names consistent — they are part of the\n * public DOM contract.\n */\nexport const CARD_BEM = {\n\troot: 'card--component',\n\theader: 'card--header',\n\ttitle: 'card--title',\n\tdescription: 'card--description',\n\tcontent: 'card--content',\n\tfooter: 'card--footer',\n\talert: 'card--alert',\n\tcollapseFade: 'card--collapse-fade',\n\texpandToggle: 'card--expand-toggle',\n\texpandToggleButton: 'card--expand-toggle-button',\n} as const;\n\ninterface PaddingTokens {\n\tshell: string;\n\theaderX: string;\n\t/** Tokenized divider inset that overrides the shadcn primitive's fixed 24px rule. */\n\theaderDividerY: string;\n\tcontentX: string;\n\tcontentY: string;\n\tfooterX: string;\n\t/** Tokenized divider inset that overrides the shadcn primitive's fixed 24px rule. */\n\tfooterDividerY: string;\n\talertX: string;\n\t/** Bottom clearance for the half-inset expandable control. */\n\texpandableBottom: string;\n\t/** Vertical offset applied when alert sits BELOW the header (pulls it up). */\n\talertOffsetWithHeader: string;\n\t/** Vertical spacing applied when alert is the first content (no header). */\n\talertOffsetStandalone: string;\n}\n\nexport const CARD_INSET: PaddingTokens = {\n\tshell: styles.shell,\n\theaderX: 'px-surface',\n\theaderDividerY: styles.headerDivider,\n\tcontentX: styles.content,\n\tcontentY: '',\n\tfooterX: styles.footer,\n\tfooterDividerY: styles.footerDivider,\n\talertX: styles.alert,\n\texpandableBottom: 'pb-surface',\n\talertOffsetWithHeader: styles.alertWithHeader,\n\talertOffsetStandalone: '',\n};\n\n/**\n * Surface-specific shell classes.\n */\nexport const SURFACE_CLASSES: Record<SmartCardSurface, string> = {\n\tcard: styles.surfaceCard,\n\tflat: styles.surfaceFlat,\n\tframed: styles.surfaceFramed,\n};\n","import { Fragment, isValidElement, type ReactNode } from 'react';\n\n/**\n * Predicate used by SmartCard subregions to decide whether each slot\n * warrants rendering its wrapper. Numbers (incl. `0`) and JSX always\n * render; falsy / empty-string content is treated as absent. Fragments\n * recurse into their children.\n */\nexport function hasRenderableContent(content?: ReactNode): boolean {\n\tif (content === null || content === undefined) return false;\n\tif (typeof content === 'boolean') return false;\n\tif (typeof content === 'string') return content.trim().length > 0;\n\tif (typeof content === 'number' || typeof content === 'bigint') return true;\n\tif (Array.isArray(content)) return content.some(hasRenderableContent);\n\tif (isValidElement<{ children?: ReactNode }>(content)) {\n\t\tif (content.type === Fragment) return hasRenderableContent(content.props.children);\n\t\treturn true;\n\t}\n\treturn true;\n}\n","import type { TextGap } from '../../structure';\n/**\n * Internal layout primitives — re-exported from `smart-card.tsx` for\n * advanced composition (deeply customised layouts that still want the\n * design-system surface tokens). Each primitive is intentionally thin:\n * a single responsibility, a single set of default classes, no business\n * logic. The BEM hooks (`card--component`, `card--header`, etc.) are\n * applied here so the public DOM contract lives in one place.\n */\nimport {\n\ttype ComponentPropsWithRef,\n\ttype ComponentPropsWithoutRef,\n} from 'react';\n\nimport {\n\tCard as CardPrimitive,\n\tCardContent as CardContentPrimitive,\n\tCardFooter as CardFooterPrimitive,\n\tCardHeader as CardHeaderPrimitive,\n\tCardTitle as CardTitlePrimitive,\n} from '../../../ui/card';\nimport { Text } from '../../../typography/text';\nimport { useDensityConfig } from '../../../../lib/ui-provider';\nimport { resolveComponentScale } from '../../../../lib/ui-provider/scale';\nimport { cn } from '../../../../lib/utils';\n\nimport { CARD_BEM, SURFACE_CLASSES } from '../smart-card.tokens';\nimport type { CardTitleSize, SmartCardProps, SmartCardSurface } from '../smart-card.types';\nimport { cardRecipes as styles, cardRegionPaddingClasses } from '../card.recipes';\n\nimport { hasRenderableContent } from './has-renderable-content';\n\nconst CARD_TITLE_SIZE_CLASSES: Record<CardTitleSize, string> = {\n\tsm: styles.titleSm,\n\tmd: styles.titleMd,\n\tlg: styles.titleLg,\n};\n\nconst CARD_TITLE_TEXT_SIZE: Record<CardTitleSize, 'sm' | 'base' | 'lg'> = {\n\tsm: 'sm',\n\tmd: 'base',\n\tlg: 'lg',\n};\n\ntype CardRegionProps = ComponentPropsWithRef<'div'> & {\n\t/** Full surface inset. Omit to retain the established inline-only inset. */\n\tpadding?: SmartCardProps['padding'];\n};\n\nexport type CardShellProps = ComponentPropsWithRef<'div'> & {\n\t/**\n\t * Card's own surface chrome (fill, edge and elevation) for a hand-assembled\n\t * card. Omit to draw only the layout shell and supply the chrome yourself.\n\t */\n\tsurface?: SmartCardSurface;\n};\n\nexport function CardShell({ className, surface, ...props }: CardShellProps) {\n\treturn (\n\t\t<CardPrimitive\n\t\t\tdata-surface={surface}\n\t\t\tclassName={cn(\n\t\t\t\tCARD_BEM.root,\n\t\t\t\tstyles.shell,\n\t\t\t\tsurface && SURFACE_CLASSES[surface],\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function CardHeader({\n\tclassName,\n\ttextGap = 'normal',\n\tpadding,\n\t...props\n}: CardRegionProps & { textGap?: TextGap }) {\n\treturn (\n\t\t<CardHeaderPrimitive\n\t\t\tclassName={cn(\n\t\t\t\tCARD_BEM.header,\n\t\t\t\tstyles.header,\n\t\t\t\tpadding !== undefined && cardRegionPaddingClasses[padding],\n\t\t\t\ttextGap === 'dense' ? 'gap-dense' : 'gap-normal',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function CardTitle({\n\tclassName,\n\tchildren,\n\tsize: sizeProp,\n\t...props\n}: ComponentPropsWithoutRef<'div'> & { size?: CardTitleSize }) {\n\tconst { defaultScale } = useDensityConfig();\n\tconst size = resolveComponentScale(sizeProp, defaultScale);\n\tif (!hasRenderableContent(children)) return null;\n\n\tconst isPlainText =\n\t\ttypeof children === 'string' ||\n\t\ttypeof children === 'number' ||\n\t\ttypeof children === 'bigint';\n\n\tif (!isPlainText) {\n\t\treturn (\n\t\t\t<CardTitlePrimitive\n\t\t\t\tclassName={cn(CARD_BEM.title, styles.title, 'font-medium', CARD_TITLE_SIZE_CLASSES[size], className)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</CardTitlePrimitive>\n\t\t);\n\t}\n\n\treturn (\n\t\t<Text\n\t\t\tdata-slot=\"card-title\"\n\t\t\ttag=\"div\"\n\t\t\tsize={CARD_TITLE_TEXT_SIZE[size]}\n\t\t\tweight=\"semibold\"\n\t\t\tlineHeight=\"tight\"\n\t\t\tclassName={cn(CARD_BEM.title, styles.title, className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</Text>\n\t);\n}\n\nexport function CardDescription({\n\tclassName,\n\tchildren,\n\t...props\n}: ComponentPropsWithoutRef<'div'>) {\n\tif (!hasRenderableContent(children)) return null;\n\n\treturn (\n\t\t<Text\n\t\t\tdata-slot=\"card-description\"\n\t\t\ttag=\"div\"\n\t\t\ttype=\"secondary\"\n\t\t\tclassName={cn(CARD_BEM.description, className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</Text>\n\t);\n}\n\nexport function CardContent({\n\tclassName,\n\tpadding,\n\t...props\n}: CardRegionProps) {\n\treturn (\n\t\t<CardContentPrimitive\n\t\t\tclassName={cn(CARD_BEM.content, styles.content, padding !== undefined && cardRegionPaddingClasses[padding], className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport function CardFooter({\n\tclassName,\n\tpadding,\n\t...props\n}: CardRegionProps) {\n\treturn (\n\t\t<CardFooterPrimitive\n\t\t\tclassName={cn(\n\t\t\t\tCARD_BEM.footer,\n\t\t\t\tstyles.footer,\n\t\t\t\tpadding !== undefined && cardRegionPaddingClasses[padding],\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n","/**\n * Inline alert banner rendered between the header and the card body.\n * Pulls itself up under the header (`alertOffsetWithHeader`) when one\n * exists so the visual gap between header bottom and alert top stays\n * tight; otherwise pushes itself down (`alertOffsetStandalone`) so it\n * doesn't kiss the card top edge.\n */\nimport type { ReactNode } from 'react';\n\nimport { Alert, AlertDescription } from '../../feedback/alert';\nimport { cn } from '../../../../lib/utils';\n\nimport { CARD_BEM, CARD_INSET } from '../smart-card.tokens';\nimport type { CardAlertTone } from '../smart-card.types';\n\ninterface AlertSlotProps {\n\t/** Banner content. A plain string is wrapped for you. */\n\talert: ReactNode | string;\n\t/** Tone of the banner. */\n\talertTone: CardAlertTone;\n\t/** Whether a header sits above, deciding the banner's top spacing. */\n\thasHeader: boolean;\n\tclassName?: string;\n}\n\nexport function SmartCardAlert({\n\talert,\n\talertTone,\n\thasHeader,\n\tclassName,\n}: AlertSlotProps) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\n\t\t\t\tCARD_BEM.alert,\n\t\t\t\tCARD_INSET.alertX,\n\t\t\t\tclassName,\n\t\t\t\thasHeader ? CARD_INSET.alertOffsetWithHeader : CARD_INSET.alertOffsetStandalone,\n\t\t\t)}\n\t\t>\n\t\t\t<Alert tone={alertTone}>\n\t\t\t\t<AlertDescription>{alert}</AlertDescription>\n\t\t\t</Alert>\n\t\t</div>\n\t);\n}\n","import type { ReactNode } from 'react';\nimport { Text } from '../../typography';\nimport { headingRoleSizes } from '../../typography/text.styles';\nimport { cn } from '../../../lib/utils';\n\n/**\n * One wrapping title/suffix composition shared by cards and content structures.\n * A plain-text title is exposed as a level-2 heading (below the page's h1) so\n * screen-reader users can move between surfaces; suffix badges stay outside its\n * accessible name. Custom title nodes keep their own semantics.\n */\nexport function SurfaceTitle({title, suffix, size = headingRoleSizes.subject, className, suffixClassName, dataSlot}: {\n title?: ReactNode; suffix?: ReactNode; size?: 'sm' | 'base' | 'lg';\n className?: string; suffixClassName?: string; dataSlot?: string;\n}) {\n const plainTitle = typeof title === 'string' || typeof title === 'number' || typeof title === 'bigint';\n return <Text tag=\"div\" type=\"inherit\" size={size} weight={plainTitle ? 'semibold' : 'medium'} lineHeight=\"tight\" data-slot={dataSlot} className={cn('surface-title--component flex min-w-0 flex-wrap items-center gap-space-md break-words', className)}>\n {title != null && <span className=\"min-w-0 max-w-full\" {...(plainTitle ? {role: 'heading', 'aria-level': 2} : {})}>{title}</span>}\n {suffix != null && <div className={cn('surface-title--suffix inline-flex max-w-full flex-wrap items-center gap-space-md', suffixClassName)}>{suffix}</div>}\n </Text>;\n}\n","/**\n * SmartCard actions menu — the shared `⋯` overflow trigger and dropdown of\n * consumer-supplied `SmartCardAction` items. It ends the header's trailing\n * row, after `headerEnd` and `headerAction`, as the quiet ghost square at the\n * provider scale.\n */\nimport {\n\tActionMenu,\n\ttype ActionMenuAction,\n} from '../../action-menu';\n\nimport type { SmartCardAction } from '../smart-card.types';\n\ninterface ActionsMenuProps {\n\t/** Controls offered on the surface. */\n\tactions: readonly SmartCardAction[];\n\tactionsLabel: string;\n}\n\nexport function ActionsMenu({ actions, actionsLabel }: ActionsMenuProps) {\n\tconst actionDefinitions: ActionMenuAction[] = actions.map((action, index) => ({ ...action, id: action.id ?? `card-action-${index}` }));\n\n\treturn (\n\t\t<ActionMenu\n\t\t\tactions={actionDefinitions}\n\t\t\tsrText={actionsLabel}\n\t\t\talign=\"end\"\n\t\t\tcloseOnSelect\n\t\t\tbuttonProps={{ className: 'card--actions-trigger' }}\n\t\t/>\n\t);\n}\n","/**\n * SmartCardHeaderRow — the chrome above the card body. Combines icon /\n * title / description / tooltip / suffix on the leading side with the\n * trailing `headerEnd` / `headerAction` slots and the actions menu.\n *\n * `TooltipTrigger_Info` is colocated here because it's only used by the\n * header — keeping it private avoids polluting the public partial\n * surface.\n */\nimport { Info } from 'lucide-react';\nimport type { ReactNode } from 'react';\n\nimport { SurfaceTitle } from '../../display/surface-title';\nimport { Button } from '../../buttons';\nimport {\n\tTooltip,\n\tTooltipContent,\n\tTooltipTrigger,\n} from '../../display/tooltip';\nimport { Stack, type TextGap } from '../../structure';\nimport { cn } from '../../../../lib/utils';\n\nimport { CARD_INSET } from '../smart-card.tokens';\nimport { cardRecipes } from '../card.recipes';\nimport type { CardTitleSize, SmartCardAction } from '../smart-card.types';\n\nimport { CardHeader, CardDescription } from './card-primitives';\nimport { hasRenderableContent } from './has-renderable-content';\nimport { ActionsMenu } from './smart-card-actions-menu';\n\nfunction TooltipTrigger_Info({ tooltipLabel }: { tooltipLabel: string }) {\n\treturn (\n\t\t<TooltipTrigger\n\t\t\trender={(triggerProps) => {\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t\t\tconst passthrough = triggerProps as Record<string, any>;\n\t\t\t\treturn (\n\t\t\t\t\t<Button\n\t\t\t\t\t\t{...passthrough}\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\ttone=\"secondary\"\n\t\t\t\t\t\tbuttonStyle=\"ghost\"\n\t\t\t\t\t\tsize=\"sm\" iconOnly\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'card--tooltip-trigger',\n\t\t\t\t\t\t\t'text-muted-foreground',\n\t\t\t\t\t\t\t// Like a header command, the trigger sits in the title's line box\n\t\t\t\t\t\t\t// instead of growing the title row past a peer card's.\n\t\t\t\t\t\t\tcardRecipes.tooltipTriggerInline,\n\t\t\t\t\t\t\tpassthrough.className,\n\t\t\t\t\t\t)}\n\t\t\t\t\t\taria-label={tooltipLabel}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Info className=\"size-icon-md\" />\n\t\t\t\t\t</Button>\n\t\t\t\t);\n\t\t\t}}\n\t\t/>\n\t);\n}\n\ninterface HeaderProps {\n\t/** Leading glyph on the title line. */\n\ticon?: ReactNode;\n\t/** Card title. */\n\ttitle?: ReactNode;\n\t/** Content immediately after the title. */\n\ttitleSuffix?: ReactNode;\n\t/** Supporting sentence under the title. */\n\tdescription?: ReactNode;\n\ttextGap?: TextGap;\n\t/** Explanatory copy behind an info affordance on the title line. */\n\ttooltip?: ReactNode;\n\t/** Accessible name for the tooltip trigger. */\n\ttooltipLabel: string;\n\t/** Full-width row above the title. */\n\theaderStart?: ReactNode;\n\t/** Content at the end of the header. */\n\theaderEnd?: ReactNode;\n\t/** Single control before the overflow menu. */\n\theaderAction?: ReactNode;\n\t/** Overflow menu at the far end of the header. */\n\tactions?: readonly SmartCardAction[];\n\t/** Accessible name for the overflow trigger. */\n\tactionsLabel: string;\n\t/** Card title typography. */\n\ttitleSize: CardTitleSize;\n\t/** Pull an action-height command into the title line. Off for the framed header, which centres both in its own action-height row. */\n\tinlineCommands?: boolean;\n\tclassName?: string;\n}\n\nexport function SmartCardHeaderRow({\n\ticon,\n\ttitle,\n\ttitleSuffix,\n\tdescription,\n\ttextGap = 'normal',\n\ttooltip,\n\ttooltipLabel,\n\theaderStart,\n\theaderEnd,\n\theaderAction,\n\tactions,\n\tactionsLabel,\n\ttitleSize,\n\tinlineCommands = true,\n\tclassName,\n}: HeaderProps) {\n\tconst cardActions = Array.isArray(actions) ? actions : [];\n\tconst hasActions = cardActions.length > 0;\n\n\tconst hasIcon = hasRenderableContent(icon);\n\tconst hasTitle = hasRenderableContent(title);\n\tconst hasTitleSuffix = hasRenderableContent(titleSuffix);\n\tconst hasDescription = hasRenderableContent(description);\n\tconst hasTooltip = hasRenderableContent(tooltip);\n\tconst hasHeaderStart = hasRenderableContent(headerStart);\n\tconst hasHeaderEnd = hasRenderableContent(headerEnd);\n\tconst hasHeaderAction = hasRenderableContent(headerAction);\n\n\tconst showTitleRow = hasIcon || hasTitle || hasTitleSuffix || hasTooltip;\n\tconst showTrailing = hasHeaderEnd || hasHeaderAction || hasActions;\n\tconst singleLine = !hasDescription && !hasHeaderStart;\n\t// An action-height command on a single-line header sits on the title line\n\t// without growing the row; passive header-end content stays top-aligned.\n\tconst inlineTrailing = inlineCommands && singleLine && (hasHeaderAction || hasActions);\n\n\treturn (\n\t\t<CardHeader\n\t\t\tclassName={cn(\n\t\t\t\tcardRecipes.headerRow,\n\t\t\t\thasHeaderStart && (textGap === 'dense' ? 'gap-y-dense' : 'gap-y-normal'),\n\t\t\t\tCARD_INSET.headerX,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t{!!hasHeaderStart && <div className=\"card--header-context min-w-0 max-w-full basis-full\">{headerStart}</div>}\n\t\t\t<Stack gap={textGap} className={cn(\"card--header-start\", cardRecipes.headerLeading, singleLine && cardRecipes.headerLeadingSingle, inlineTrailing && cardRecipes.headerLeadingInline)}>\n\t\t\t\t{!!showTitleRow && (\n\t\t\t\t\t<div className=\"card--title-row flex min-w-0 items-start gap-space-sm\">\n\t\t\t\t\t\t{!!hasIcon && (\n\t\t\t\t\t\t\t<span className=\"card--icon flex shrink-0 items-center pt-space-2xs text-muted-foreground [&_svg]:size-icon\">\n\t\t\t\t\t\t\t\t{icon}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<SurfaceTitle dataSlot=\"card-title\" title={title} suffix={hasTitleSuffix ? titleSuffix : undefined} size={titleSize === 'md' ? 'base' : titleSize === 'lg' ? 'lg' : 'sm'} className=\"card--title flex-1\" suffixClassName=\"card--title-suffix\" />\n\t\t\t\t\t\t{!!hasTooltip && (\n\t\t\t\t\t\t\t<Tooltip>\n\t\t\t\t\t\t\t\t<TooltipTrigger_Info tooltipLabel={tooltipLabel} />\n\t\t\t\t\t\t\t\t<TooltipContent>{tooltip}</TooltipContent>\n\t\t\t\t\t\t\t</Tooltip>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\n\t\t\t\t{!!hasDescription && (\n\t\t\t\t\t<CardDescription className=\"text-start\">{description}</CardDescription>\n\t\t\t\t)}\n\t\t\t</Stack>\n\n\t\t\t{!!showTrailing && (\n\t\t\t\t<div className={cn(\"card--header-end\", cardRecipes.headerTrailing, inlineTrailing && cardRecipes.headerTrailingInline)}>\n\t\t\t\t\t{!!hasHeaderEnd && headerEnd}\n\t\t\t\t\t{!!hasHeaderAction && headerAction}\n\t\t\t\t\t{!!hasActions && (\n\t\t\t\t\t\t<ActionsMenu actions={cardActions} actionsLabel={actionsLabel} />\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</CardHeader>\n\t);\n}\n","/**\n * SmartCard strings — i18n surface for the chrome the consumer doesn't\n * pass directly. Most copy (title, description, action labels, alert\n * body) flows in via props; the strings here cover the implicit\n * affordances (header actions, tooltip, and expand toggle).\n */\n\nexport interface SmartCardStrings {\n\tactionsLabel: string;\n\ttooltipLabel: string;\n\texpandLabel: string;\n\tcollapseLabel: string;\n}\n\nexport const defaultSmartCardStrings = {\n\tactionsLabel: 'More actions',\n\ttooltipLabel: 'Card info',\n\texpandLabel: 'Expand card',\n\tcollapseLabel: 'Collapse card',\n} satisfies SmartCardStrings;\n","import { surfaceDividerRecipes } from '../../../lib/surface-recipes';\n/**\n * SmartCard — blocks card with header (icon, title, suffix, description,\n * tooltip), actions menu, alert banner, header / content / footer slots,\n * surface variants (card / flat / framed), and an opt-in expandable body.\n *\n * The single card primitive everything else builds on — never reach past it\n * to shadcn `Card` directly. The CardShell / CardHeader / CardTitle /\n * CardDescription / CardContent / CardFooter primitives are re-exported\n * for advanced composition (deeply customised layouts that still want the\n * design-system surface tokens). Each subregion paints a BEM-style hook\n * (`card--component`, `card--header`, `card--title`, …) for CSS / test /\n * analytics targeting independent of shadcn's data-slot internals.\n *\n * The file is a thin orchestrator. The actual chrome lives in:\n * - `./smart-card.types.ts` — public prop / variant types\n * - `./smart-card.strings.ts` — i18n (expand toggle copy)\n * - `./smart-card.tokens.ts` — CARD_INSET + SURFACE_CLASSES + CARD_BEM\n * - `./partials/card-primitives.tsx` — CardShell + CardHeader / Title /\n * Description / Content / Footer\n * - `./partials/smart-card-header-row.tsx` — header layout + actions menu\n * - `./partials/smart-card-alert.tsx` — inline alert banner\n * - `./partials/smart-card-actions-menu.tsx` — shared `⋯` overflow menu\n * - `./partials/smart-card-skeleton.tsx` — loading placeholder\n * - `./partials/has-renderable-content.ts` — slot-empty predicate\n */\nimport { ChevronDown } from 'lucide-react';\nimport {\n\ttype CSSProperties,\n\ttype FocusEvent,\n\tforwardRef,\n\tuseCallback,\n\tuseId,\n\tuseState,\n} from 'react';\n\nimport { Button } from '../buttons';\nimport { Text } from '../../typography';\nimport { Stack } from '../structure';\nimport { cardRegionGapClasses } from './card.recipes';\nimport { gapRecipe } from '../structure/structure.recipes';\nimport { compositionClasses, compositionRhythm } from '../structure/composition.recipes';\nimport { useStrings } from '../../../lib/strings';\nimport { useCardConfig, useDensityConfig } from '../../../lib/ui-provider';\nimport { resolveComponentScale } from '../../../lib/ui-provider/scale';\nimport { cn } from '../../../lib/utils';\n\nimport {\n\tCardContent,\n\tCardFooter,\n\tCardShell,\n} from './partials/card-primitives';\nimport { hasRenderableContent } from './partials/has-renderable-content';\nimport { SmartCardAlert } from './partials/smart-card-alert';\nimport { SmartCardHeaderRow } from './partials/smart-card-header-row';\nimport {\n\tdefaultSmartCardStrings,\n} from './smart-card.strings';\nimport {\n\tCARD_BEM,\n\tCARD_INSET,\n\tSURFACE_CLASSES,\n} from './smart-card.tokens';\nimport type {\n\tSmartCardProps,\n\tSmartCardSurface,\n} from './smart-card.types';\nimport { motionRecipes } from '../../../lib/motion-recipes';\n\nexport const Card = forwardRef<HTMLDivElement, SmartCardProps>(function Card({\n\ticon,\n\ttitle,\n\ttitleSuffix,\n\tdescription,\n\ttextGap = 'normal',\n\ttooltip,\n\ttooltipAriaLabel,\n\tfooterText,\n\talert,\n\talertTone = 'neutral',\n\tsurface,\n\tpadding = 'md',\n\theaderPlacement = 'inside',\n\tgap,\n\tcontentGap,\n\ttitleSize,\n\tactions,\n\tactionsLabel,\n\theaderAction,\n\theaderStart,\n\theaderEnd,\n\tcontentTop,\n\tcontentBottom,\n\tfooterSlot,\n\theaderDivider,\n\tfooterDivider: footerDividerProp,\n\texpandable = false,\n\tdefaultExpanded = false,\n\texpanded: expandedProp,\n\tonExpandedChange,\n\tchildren,\n\tclassName,\n\theaderClassName,\n\tcontentClassName,\n\tfooterClassName,\n\tstrings: stringsProp,\n\t...rootProps\n}, ref) {\n\tconst {\n\t\tdefaultSurface,\n\t\tdefaultHeaderDivider,\n\t\tdefaultFooterDivider,\n\t} = useCardConfig();\n\tconst { defaultScale } = useDensityConfig();\n\tconst resolvedTitleSize = resolveComponentScale(titleSize, defaultScale);\n\tconst inset = { none: 'px-0', sm: 'px-surface-xs', md: 'px-surface', lg: 'px-surface-lg' }[padding];\n\tconst vertical = { none: 'py-0', sm: 'py-surface-xs', md: 'py-surface', lg: 'py-surface-lg' }[padding];\n\tconst tokens = { ...CARD_INSET, headerX: inset, contentX: inset, footerX: inset, headerDividerY: { none: '!pb-0', sm: '!pb-surface-xs', md: '!pb-surface', lg: '!pb-surface-lg' }[padding], footerDividerY: { none: '!pt-0', sm: '!pt-surface-xs', md: '!pt-surface', lg: '!pt-surface-lg' }[padding] };\n\tconst framedHeader = headerPlacement === 'frame';\n\tconst cardActions = Array.isArray(actions) ? actions : [];\n\tconst strings = useStrings(defaultSmartCardStrings, stringsProp);\n\tconst resolvedActionsLabel =\n\t\tactionsLabel ?? strings.actionsLabel;\n\n\tconst isExpandable = expandable !== false && expandable !== undefined;\n\tconst collapsedMaxHeightRaw =\n\t\ttypeof expandable === 'object' && expandable?.collapsedMaxHeight !== undefined\n\t\t\t? expandable.collapsedMaxHeight\n\t\t\t: '12rem';\n\tconst collapsedMaxHeight =\n\t\ttypeof collapsedMaxHeightRaw === 'number'\n\t\t\t? `${collapsedMaxHeightRaw}px`\n\t\t\t: collapsedMaxHeightRaw;\n\n\tconst isExpandedControlled = expandedProp !== undefined;\n\tconst bodyId = useId();\n\tconst [internalExpanded, setInternalExpanded] = useState(defaultExpanded);\n\tconst expanded = isExpandedControlled ? expandedProp : internalExpanded;\n\tconst handleToggle = useCallback(() => {\n\t\tconst next = !expanded;\n\t\tif (!isExpandedControlled) setInternalExpanded(next);\n\t\tonExpandedChange?.(next);\n\t}, [expanded, isExpandedControlled, onExpandedChange]);\n\tconst handleBodyFocus = (event: FocusEvent<HTMLDivElement>) => {\n\t\tif (!isExpandable || expanded) return;\n\t\tconst body = event.currentTarget;\n\t\tconst target = event.target;\n\t\tconst frame = body.getBoundingClientRect();\n\t\tconst control = target.getBoundingClientRect();\n\t\t// Native keyboard focus can scroll an overflow-hidden preview before the\n\t\t// focus event reaches React. Reveal the complete body in either case.\n\t\tif (body.scrollTop === 0 && control.top >= frame.top && control.bottom <= frame.bottom) return;\n\t\tif (!isExpandedControlled) setInternalExpanded(true);\n\t\tonExpandedChange?.(true);\n\t\trequestAnimationFrame(() => {\n\t\t\tif (target.isConnected && target === target.ownerDocument.activeElement) {\n\t\t\t\ttarget.scrollIntoView?.({ block: 'nearest', inline: 'nearest' });\n\t\t\t}\n\t\t});\n\t};\n\n\tconst hasHeader =\n\t\thasRenderableContent(icon) ||\n\t\thasRenderableContent(title) ||\n\t\thasRenderableContent(description) ||\n\t\tcardActions.length > 0 ||\n\t\thasRenderableContent(headerAction) ||\n\t\thasRenderableContent(headerStart) ||\n\t\thasRenderableContent(headerEnd);\n\n\tconst hasAlert = hasRenderableContent(alert);\n\tconst hasFooterText = hasRenderableContent(footerText);\n\tconst hasFooterSlot = hasRenderableContent(footerSlot);\n\tconst hasContentTop = hasRenderableContent(contentTop);\n\tconst hasContentBottom = hasRenderableContent(contentBottom);\n\tconst hasChildren = hasRenderableContent(children);\n\t// Expandable cards retain their explicitly requested collapse region.\n\tconst hasBody = hasContentTop || hasContentBottom || hasChildren || isExpandable;\n\tconst hasBodySurface = hasAlert || hasBody || hasFooterText || hasFooterSlot;\n\tconst headerFooterOnly = hasHeader && (hasFooterText || hasFooterSlot) && !hasAlert && !hasBody && !framedHeader;\n\n\tconst tooltipLabel =\n\t\ttooltipAriaLabel && tooltipAriaLabel.trim().length > 0\n\t\t\t? tooltipAriaLabel\n\t\t\t: strings.tooltipLabel;\n\n\tconst collapseStyle: CSSProperties | undefined = isExpandable\n\t\t? {\n\t\t\t\tmaxHeight: expanded ? '' : collapsedMaxHeight,\n\t\t\t}\n\t\t: undefined;\n\n\t// Resolve surface from the instance, then the provider default.\n\tconst resolvedSurface: SmartCardSurface =\n\t\tsurface ?? defaultSurface ?? 'card';\n\t// The standard header breathes without a rule; the footer retains a boundary.\n\t// Flat, card-free structure has no frame to rule, and a header\n\t// set above an inset body is already separated by that body's edge. Explicit\n\t// per-card booleans always win.\n\tconst framed = resolvedSurface !== 'flat';\n\tconst resolvedHeaderDivider = headerDivider ?? (framed && !framedHeader && (defaultHeaderDivider ?? false));\n\tconst footerDivider = footerDividerProp ?? (framed && (defaultFooterDivider ?? true));\n\t// Adjacent header/footer regions share one boundary, owned by the footer.\n\tconst sharedHeaderFooterDivider = headerFooterOnly && (resolvedHeaderDivider || footerDivider);\n\n\treturn (\n\t\t<CardShell\n\t\t\t{...rootProps}\n\t\t\tdata-header-placement={headerPlacement}\n\t\t\tref={ref}\n\t\t\tdata-surface={resolvedSurface}\n\t\t\tclassName={cn(\n\t\t\t\tSURFACE_CLASSES[resolvedSurface],\n\t\t\t\ttokens.shell,\n\t\t\t\tvertical,\n\t\t\t\t// Regional rhythm follows the chosen inset. Padding-free subject structure\n\t\t\t\t// keeps the base rhythm; an explicit semantic gap takes precedence.\n\t\t\t\tgap ? gapRecipe({ gap }) : cardRegionGapClasses[padding],\n\t\t\t\tsharedHeaderFooterDivider && 'gap-0',\n\t\t\t\tframedHeader && 'rounded-surface bg-muted text-foreground p-surface-xs pt-0 gap-0 ring-0',\n\t\t\t\t// Flat subject structure has no surface edge to clip against.\n\t\t\t\t// With no inset, rounded clipping otherwise cuts into its heading.\n\t\t\t\tresolvedSurface === 'flat' && !framedHeader && 'overflow-visible',\n\t\t\t\t// The toggle straddles the card edge. Keep tokenized clearance\n\t\t\t\t// inside the card and reserve its outside half in document flow.\n\t\t\t\t// `overflow-visible` counters the shadcn primitive's clipping.\n\t\t\t\tisExpandable && cn(\n\t\t\t\t\t'relative mb-space-xl !overflow-visible',\n\t\t\t\t\ttokens.expandableBottom,\n\t\t\t\t),\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t{!!hasHeader && (\n\t\t\t\t<SmartCardHeaderRow\n\t\t\t\t\ticon={icon}\n\t\t\t\t\ttitle={title}\n\t\t\t\t\ttitleSuffix={titleSuffix}\n\t\t\t\t\tdescription={description}\n\t\t\t\t\ttextGap={textGap}\n\t\t\t\t\ttooltip={tooltip}\n\t\t\t\t\ttooltipLabel={tooltipLabel}\n\t\t\t\t\theaderStart={headerStart}\n\t\t\t\t\theaderEnd={headerEnd}\n\t\t\t\t\theaderAction={headerAction}\n\t\t\t\t\tactions={cardActions}\n\t\t\t\t\tactionsLabel={resolvedActionsLabel}\n\t\t\t\t\ttitleSize={resolvedTitleSize}\n\t\t\t\t\tinlineCommands={!framedHeader}\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\tresolvedHeaderDivider && !sharedHeaderFooterDivider && cn(\n\t\t\t\t\t\t\tsurfaceDividerRecipes.frame.header,\n\t\t\t\t\t\t\ttokens.headerDividerY,\n\t\t\t\t\t\t),\n\t\t\t\t\t\tsharedHeaderFooterDivider && tokens.headerDividerY,\n\t\t\t\t\t\ttokens.headerX,\n\t\t\t\t\t\tframedHeader && 'flex-row items-center min-h-action px-surface-xs py-space-2xs [&_.card--title-row]:items-center [&_.card--icon]:pt-0',\n\t\t\t\t\t\theaderClassName,\n\t\t\t\t\t)}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{hasBodySurface && <div className={framedHeader ? cn('card--body-surface flex min-w-0 flex-col rounded-radius bg-card text-card-foreground', gap ? gapRecipe({ gap }) : cardRegionGapClasses[padding], surfaceDividerRecipes.frame.shell, vertical) : 'contents'}>\n\t\t\t{!!hasAlert && (\n\t\t\t\t<SmartCardAlert\n\t\t\t\t\talert={alert}\n\t\t\t\t\talertTone={alertTone}\n\t\t\t\t\thasHeader={hasHeader}\n\t\t\t\t\tclassName={inset}\n\t\t\t\t/>\n\t\t\t)}\n\n\t\t\t{!!hasBody && <CardContent\n\t\t\t\tid={isExpandable ? bodyId : undefined}\n\t\t\t\tonFocusCapture={isExpandable ? handleBodyFocus : undefined}\n\t\t\t\tclassName={cn(\n\t\t\t\t\ttokens.contentX,\n\t\t\t\t\ttokens.contentY,\n\t\t\t\t\tisExpandable && cn(\n\t\t\t\t\t\t'relative transition-[max-height] duration-500 ease-in-out motion-reduce:transition-none',\n\t\t\t\t\t\texpanded ? 'overflow-visible' : 'overflow-hidden',\n\t\t\t\t\t),\n\t\t\t\t\tcontentClassName,\n\t\t\t\t)}\n\t\t\t\tstyle={collapseStyle}\n\t\t\t>\n\t\t\t\t{hasContentTop || hasContentBottom ? (\n\t\t\t\t\t// contentTop/contentBottom are body regions, so they share the content gap with children.\n\t\t\t\t\t<Stack gap={contentGap ?? compositionRhythm.related}>\n\t\t\t\t\t\t{!!hasContentTop && contentTop}\n\t\t\t\t\t\t{hasChildren && (contentGap ? <Stack gap={contentGap}>{children}</Stack> : <div className={cn('flex min-w-0 flex-col', compositionClasses.related)}>{children}</div>)}\n\t\t\t\t\t\t{!!hasContentBottom && contentBottom}\n\t\t\t\t\t</Stack>\n\t\t\t\t) : contentGap ? <Stack gap={contentGap}>{children}</Stack> : children}\n\n\t\t\t\t{!!isExpandable && !expanded && (\n\t\t\t\t\t<div\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\tCARD_BEM.collapseFade,\n\t\t\t\t\t\t\t'pointer-events-none absolute inset-x-0 bottom-0 h-20 rounded-b-surface bg-linear-to-t to-transparent',\n\t\t\t\t\t\t\tresolvedSurface === 'flat' ? 'from-background' : 'from-card',\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</CardContent>}\n\n\t\t\t{(hasFooterText || hasFooterSlot) && (\n\t\t\t\t<CardFooter className={cn(\n\t\t\t\t\ttokens.footerX,\n\t\t\t\t\thasFooterSlot ? 'flex-col items-stretch gap-space-md' : 'justify-end',\n\t\t\t\t\t(footerDivider || sharedHeaderFooterDivider) && cn(surfaceDividerRecipes.frame.footer, tokens.footerDividerY),\n\t\t\t\t\tfooterClassName,\n\t\t\t\t)}>\n\t\t\t\t\t{hasFooterText && (typeof footerText === 'string' || typeof footerText === 'number' || typeof footerText === 'bigint'\n\t\t\t\t\t\t? <Text tag=\"span\" size=\"xs\" type=\"secondary\">{footerText}</Text>\n\t\t\t\t\t\t: footerText)}\n\t\t\t\t\t{hasFooterSlot && footerSlot}\n\t\t\t\t</CardFooter>\n\t\t\t)}\n\n\t\t\t</div>}\n\n\t\t\t{!!isExpandable && (\n\t\t\t\t<div\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\tCARD_BEM.expandToggle,\n\t\t\t\t\t\t'absolute bottom-0 left-1/2 z-10 -translate-x-1/2 translate-y-1/2',\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<Button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\ttone=\"secondary\"\n\t\t\t\t\t\tbuttonStyle=\"outline\"\n\t\t\t\t\t\tsize=\"sm\" iconOnly\n\t\t\t\t\t\tonClick={handleToggle}\n\t\t\t\t\t\taria-expanded={expanded}\n\t\t\t\t\t\taria-controls={bodyId}\n\t\t\t\t\t\taria-label={expanded ? strings.collapseLabel : strings.expandLabel}\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\tCARD_BEM.expandToggleButton,\n\t\t\t\t\t\t\tcn(surfaceDividerRecipes.frame.shell, 'bg-background text-foreground shadow-sm'),\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<ChevronDown\n\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t`size-icon ${motionRecipes.chevron}`,\n\t\t\t\t\t\t\t\texpanded && 'rotate-180',\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</CardShell>\n\t);\n});\n\nCard.displayName = 'Card';\n\n/** @deprecated Use Card. */\nexport const SmartCard = Card;\n\n// ──────────────────────────────────────────────────────────────────────────\n// Re-exports — public surface lives here so `import { ... } from\n// '.'` keeps working through the file split.\n// ──────────────────────────────────────────────────────────────────────────\n\nexport {\n\tdefaultSmartCardStrings,\n\ttype SmartCardStrings,\n} from './smart-card.strings';\nexport type {\n\tCardAlertTone,\n\tSmartCardAction,\n\tSmartCardProps,\n\tSmartCardSkeletonProps,\n\tSmartCardSurface,\n} from './smart-card.types';\nexport {\n\tCardContent,\n\tCardDescription,\n\tCardFooter,\n\tCardHeader,\n\tCardShell,\n\tCardTitle,\n} from './partials/card-primitives';\nexport { hasRenderableContent } from './partials/has-renderable-content';\nexport { SmartCardSkeleton } from './partials/smart-card-skeleton';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,IAAMmC,KAAgBC,GACrB;CAMC,+IAA+IN,EAAuB,QAAQ;CAC9K;CAGA;CAGA;CAGA;CACAF,EAA2B;AAC5B,GACA;CACC,UAAU;EACT,MAAM;GACL,SAAS;GACT,SAAS,GAAGC,EAAY,QAAQ,KAAK,GAAGA,EAAY,QAAQ,KAAK;GACjE,WAAW;GACX,MAAM,GAAGA,EAAY,KAAK,KAAK,GAAGA,EAAY,KAAK,KAAK;GACxD,SAAS,GAAGA,EAAY,QAAQ,KAAK,GAAGA,EAAY,QAAQ,KAAK;GACjE,SAAS,GAAGA,EAAY,QAAQ,KAAK,GAAGA,EAAY,QAAQ,KAAK;GACjE,aAAa,GAAGA,EAAY,YAAY,KAAK,GAAGA,EAAY,YAAY,KAAK;EAC9E;EACA,SAAS;GACR,SAAS;GACT,SAAS;IACR;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACD;EACD;CACD;CACA,iBAAiB;EAChB,MAAM;EACN,SAAS;CACV;AACD,CACD;AASA,SAASQ,EAAa,GAAqD;CAC1E,OAAO,OAAOC,KAAU,YAAY,OAAOA,KAAU,YAAY,OAAOA,KAAU;AACnF;AAEA,IAAMC,IAAQC,EAAuC,SACpD,EAAE,cAAW,SAAM,YAAS,UAAO,SAAS,GAAGC,KAC/C,GACC;C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 -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as e } from "./utils-BRhFDwuU.js";
3
- import { a as t, i as n, o as r, r as i, t as a } from "./structure.recipes-EPz60cU8.js";
2
+ import { t as e } from "./utils-B6kKb8jB.js";
3
+ import { a as t, i as n, o as r, r as i, t as a } from "./structure.recipes-BB4-n58V.js";
4
4
  import { createContext as o, forwardRef as s, useContext as c } from "react";
5
5
  import { jsx as l } from "react/jsx-runtime";
6
6
  import { useRender as u } from "@base-ui/react/use-render";
@@ -92,4 +92,4 @@ h.displayName = "Stack";
92
92
  //#endregion
93
93
  export { d as i, m as n, p as r, h as t };
94
94
 
95
- //# sourceMappingURL=structure-BmisBK-3.js.map
95
+ //# sourceMappingURL=structure-DuxKl954.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"structure-BmisBK-3.js","names":["cn","spanRecipe","resolveGridColumns","stackRecipe","gridRecipe","adaptiveGridRecipe","AdaptiveGrid","forwardRef","props","useRender","className","GridColumnsContext","createContext","Grid","element","columns","GridCell","useContext","Stack"],"sources":["../src/components/base/structure/adaptive-grid.tsx","../src/components/base/structure/structure.context.ts","../src/components/base/structure/grid.tsx","../src/components/base/structure/grid-cell.tsx","../src/components/base/structure/stack.tsx"],"sourcesContent":["import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { adaptiveGridRecipe } from './structure.recipes';\nimport type { AdaptiveGridProps } from './structure.types';\n\n/** AdaptiveGrid — equal peer columns driven by the available inline size. */\nexport const AdaptiveGrid = forwardRef<HTMLDivElement, AdaptiveGridProps>(\n\tfunction AdaptiveGrid(\n\t\t{\n\t\t\tclassName,\n\t\t\tminColumnWidth,\n\t\t\tgap,\n\t\t\trowGap,\n\t\t\tcolumnGap,\n\t\t\talign,\n\t\t\trender,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) {\n\t\treturn useRender({\n\t\t\tdefaultTagName: 'div',\n\t\t\tref,\n\t\t\trender,\n\t\t\tprops: {\n\t\t\t\t...props,\n\t\t\t\tclassName: cn(\n\t\t\t\t\t'adaptive-grid--component',\n\t\t\t\t\tadaptiveGridRecipe({ minColumnWidth, gap, rowGap, columnGap, align }),\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tstate: {},\n\t\t});\n\t},\n);\n\nAdaptiveGrid.displayName = 'AdaptiveGrid';\n","import { createContext } from 'react';\n\nimport type { GridColumnLadder } from './structure.types';\n\n/**\n * The nearest Grid publishes its resolved column ladder so a GridCell can clamp\n * a numeric span to the tracks that exist at each breakpoint. Undefined means\n * the cell is not inside a Grid.\n */\nexport const GridColumnsContext = createContext<GridColumnLadder | undefined>(undefined);\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { GridColumnsContext } from './structure.context';\nimport { gridRecipe, resolveGridColumns } from './structure.recipes';\nimport type { GridProps } from './structure.types';\n\n/** Grid — responsive card/tile composition with a one-to-two-column default. */\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(function Grid({ className, columns, gap, rowGap, columnGap, align, render, ...props }, ref) {\n\tconst element = useRender({ defaultTagName: 'div', ref, render, props: { ...props, className: cn('grid--component', gridRecipe({ columns, gap, rowGap, columnGap, align }), className) }, state: {} });\n\t// The provider carries no DOM node, so the BEM hook stays on the grid element.\n\treturn <GridColumnsContext.Provider value={resolveGridColumns(columns)}>{element}</GridColumnsContext.Provider>;\n});\n\nGrid.displayName = 'Grid';\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef, useContext } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { GridColumnsContext } from './structure.context';\nimport { spanRecipe } from './structure.recipes';\nimport type { GridCellProps } from './structure.types';\n\n/** GridCell — a Grid child that occupies more than one column, clamped to the columns that exist. */\nexport const GridCell = forwardRef<HTMLDivElement, GridCellProps>(function GridCell({ className, span, render, ...props }, ref) {\n\tconst columns = useContext(GridColumnsContext);\n\treturn useRender({ defaultTagName: 'div', ref, render, props: { ...props, className: cn('grid-cell--component', spanRecipe({ span, columns }), className) }, state: {} });\n});\n\nGridCell.displayName = 'GridCell';\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { stackRecipe } from './structure.recipes';\nimport type { StackProps } from './structure.types';\n\n/** Stack — one-dimensional composition with vertical, token-spaced defaults. */\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(function Stack({ className, direction, gap, align, justify, wrap, render, ...props }, ref) {\n\treturn useRender({ defaultTagName: 'div', ref, render, props: { ...props, className: cn('stack--component', stackRecipe({ direction, gap, align, justify, wrap }), className) }, state: {} });\n});\n\nStack.displayName = 'Stack';\n"],"mappings":";;;;;;;AASA,IAAaM,IAAeC,EAC3B,SACC,EACC,cACA,mBACA,QACA,WACA,cACA,UACA,WACA,GAAGC,KAEJ,GACC;CACD,OAAOC,EAAU;EAChB,gBAAgB;EAChB;EACA;EACA,OAAO;GACN,GAAGD;GACH,WAAWR,EACV,4BACAK,EAAmB;IAAE;IAAgB;IAAK;IAAQ;IAAW;GAAM,CAAC,GACpEK,CACD;EACD;EACA,OAAO,CAAC;CACT,CAAC;AACF,CACD;AAEA,EAAa,cAAc;;;AC/B3B,IAAaC,IAAqBC,EAA4C,KAAA,CAAS,GCC1EC,IAAON,EAAsC,SAAc,EAAE,cAAW,YAAS,QAAK,WAAQ,cAAW,UAAO,WAAQ,GAAGC,KAAS,GAAK;CACrJ,IAAMM,IAAUL,EAAU;EAAE,gBAAgB;EAAO;EAAK;EAAQ,OAAO;GAAE,GAAGD;GAAO,WAAWR,EAAG,mBAAmBI,EAAW;IAAE;IAAS;IAAK;IAAQ;IAAW;GAAM,CAAC,GAAGM,CAAS;EAAE;EAAG,OAAO,CAAC;CAAE,CAAC;CAErM,OAAO,kBAACC,EAAmB,UAApB;EAA6B,OAAOT,EAAmBa,CAAO;EAAI,UAAAD;CAAqC,CAAA;AAC/G,CAAC;AAED,EAAK,cAAc;;;ACNnB,IAAaE,IAAWT,EAA0C,SAAkB,EAAE,cAAW,SAAM,WAAQ,GAAGC,KAAS,GAAK;CAC/H,IAAMO,IAAUE,EAAWN,CAAkB;CAC7C,OAAOF,EAAU;EAAE,gBAAgB;EAAO;EAAK;EAAQ,OAAO;GAAE,GAAGD;GAAO,WAAWR,EAAG,wBAAwBC,EAAW;IAAE;IAAM;GAAQ,CAAC,GAAGS,CAAS;EAAE;EAAG,OAAO,CAAC;CAAE,CAAC;AACzK,CAAC;AAED,EAAS,cAAc;;;ACNvB,IAAaQ,IAAQX,EAAuC,SAAe,EAAE,cAAW,cAAW,QAAK,UAAO,YAAS,SAAM,WAAQ,GAAGC,KAAS,GAAK;CACtJ,OAAOC,EAAU;EAAE,gBAAgB;EAAO;EAAK;EAAQ,OAAO;GAAE,GAAGD;GAAO,WAAWR,EAAG,oBAAoBG,EAAY;IAAE;IAAW;IAAK;IAAO;IAAS;GAAK,CAAC,GAAGO,CAAS;EAAE;EAAG,OAAO,CAAC;CAAE,CAAC;AAC7L,CAAC;AAED,EAAM,cAAc"}
1
+ {"version":3,"file":"structure-DuxKl954.js","names":["cn","spanRecipe","resolveGridColumns","stackRecipe","gridRecipe","adaptiveGridRecipe","AdaptiveGrid","forwardRef","props","useRender","className","GridColumnsContext","createContext","Grid","element","columns","GridCell","useContext","Stack"],"sources":["../src/components/base/structure/adaptive-grid.tsx","../src/components/base/structure/structure.context.ts","../src/components/base/structure/grid.tsx","../src/components/base/structure/grid-cell.tsx","../src/components/base/structure/stack.tsx"],"sourcesContent":["import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { adaptiveGridRecipe } from './structure.recipes';\nimport type { AdaptiveGridProps } from './structure.types';\n\n/** AdaptiveGrid — equal peer columns driven by the available inline size. */\nexport const AdaptiveGrid = forwardRef<HTMLDivElement, AdaptiveGridProps>(\n\tfunction AdaptiveGrid(\n\t\t{\n\t\t\tclassName,\n\t\t\tminColumnWidth,\n\t\t\tgap,\n\t\t\trowGap,\n\t\t\tcolumnGap,\n\t\t\talign,\n\t\t\trender,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) {\n\t\treturn useRender({\n\t\t\tdefaultTagName: 'div',\n\t\t\tref,\n\t\t\trender,\n\t\t\tprops: {\n\t\t\t\t...props,\n\t\t\t\tclassName: cn(\n\t\t\t\t\t'adaptive-grid--component',\n\t\t\t\t\tadaptiveGridRecipe({ minColumnWidth, gap, rowGap, columnGap, align }),\n\t\t\t\t\tclassName,\n\t\t\t\t),\n\t\t\t},\n\t\t\tstate: {},\n\t\t});\n\t},\n);\n\nAdaptiveGrid.displayName = 'AdaptiveGrid';\n","import { createContext } from 'react';\n\nimport type { GridColumnLadder } from './structure.types';\n\n/**\n * The nearest Grid publishes its resolved column ladder so a GridCell can clamp\n * a numeric span to the tracks that exist at each breakpoint. Undefined means\n * the cell is not inside a Grid.\n */\nexport const GridColumnsContext = createContext<GridColumnLadder | undefined>(undefined);\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { GridColumnsContext } from './structure.context';\nimport { gridRecipe, resolveGridColumns } from './structure.recipes';\nimport type { GridProps } from './structure.types';\n\n/** Grid — responsive card/tile composition with a one-to-two-column default. */\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(function Grid({ className, columns, gap, rowGap, columnGap, align, render, ...props }, ref) {\n\tconst element = useRender({ defaultTagName: 'div', ref, render, props: { ...props, className: cn('grid--component', gridRecipe({ columns, gap, rowGap, columnGap, align }), className) }, state: {} });\n\t// The provider carries no DOM node, so the BEM hook stays on the grid element.\n\treturn <GridColumnsContext.Provider value={resolveGridColumns(columns)}>{element}</GridColumnsContext.Provider>;\n});\n\nGrid.displayName = 'Grid';\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef, useContext } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { GridColumnsContext } from './structure.context';\nimport { spanRecipe } from './structure.recipes';\nimport type { GridCellProps } from './structure.types';\n\n/** GridCell — a Grid child that occupies more than one column, clamped to the columns that exist. */\nexport const GridCell = forwardRef<HTMLDivElement, GridCellProps>(function GridCell({ className, span, render, ...props }, ref) {\n\tconst columns = useContext(GridColumnsContext);\n\treturn useRender({ defaultTagName: 'div', ref, render, props: { ...props, className: cn('grid-cell--component', spanRecipe({ span, columns }), className) }, state: {} });\n});\n\nGridCell.displayName = 'GridCell';\n","import { useRender } from '@base-ui/react/use-render';\nimport { forwardRef } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\nimport { stackRecipe } from './structure.recipes';\nimport type { StackProps } from './structure.types';\n\n/** Stack — one-dimensional composition with vertical, token-spaced defaults. */\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(function Stack({ className, direction, gap, align, justify, wrap, render, ...props }, ref) {\n\treturn useRender({ defaultTagName: 'div', ref, render, props: { ...props, className: cn('stack--component', stackRecipe({ direction, gap, align, justify, wrap }), className) }, state: {} });\n});\n\nStack.displayName = 'Stack';\n"],"mappings":";;;;;;;AASA,IAAaM,IAAeC,EAC3B,SACC,EACC,cACA,mBACA,QACA,WACA,cACA,UACA,WACA,GAAGC,KAEJ,GACC;CACD,OAAOC,EAAU;EAChB,gBAAgB;EAChB;EACA;EACA,OAAO;GACN,GAAGD;GACH,WAAWR,EACV,4BACAK,EAAmB;IAAE;IAAgB;IAAK;IAAQ;IAAW;GAAM,CAAC,GACpEK,CACD;EACD;EACA,OAAO,CAAC;CACT,CAAC;AACF,CACD;AAEA,EAAa,cAAc;;;AC/B3B,IAAaC,IAAqBC,EAA4C,KAAA,CAAS,GCC1EC,IAAON,EAAsC,SAAc,EAAE,cAAW,YAAS,QAAK,WAAQ,cAAW,UAAO,WAAQ,GAAGC,KAAS,GAAK;CACrJ,IAAMM,IAAUL,EAAU;EAAE,gBAAgB;EAAO;EAAK;EAAQ,OAAO;GAAE,GAAGD;GAAO,WAAWR,EAAG,mBAAmBI,EAAW;IAAE;IAAS;IAAK;IAAQ;IAAW;GAAM,CAAC,GAAGM,CAAS;EAAE;EAAG,OAAO,CAAC;CAAE,CAAC;CAErM,OAAO,kBAACC,EAAmB,UAApB;EAA6B,OAAOT,EAAmBa,CAAO;EAAI,UAAAD;CAAqC,CAAA;AAC/G,CAAC;AAED,EAAK,cAAc;;;ACNnB,IAAaE,IAAWT,EAA0C,SAAkB,EAAE,cAAW,SAAM,WAAQ,GAAGC,KAAS,GAAK;CAC/H,IAAMO,IAAUE,EAAWN,CAAkB;CAC7C,OAAOF,EAAU;EAAE,gBAAgB;EAAO;EAAK;EAAQ,OAAO;GAAE,GAAGD;GAAO,WAAWR,EAAG,wBAAwBC,EAAW;IAAE;IAAM;GAAQ,CAAC,GAAGS,CAAS;EAAE;EAAG,OAAO,CAAC;CAAE,CAAC;AACzK,CAAC;AAED,EAAS,cAAc;;;ACNvB,IAAaQ,IAAQX,EAAuC,SAAe,EAAE,cAAW,cAAW,QAAK,UAAO,YAAS,SAAM,WAAQ,GAAGC,KAAS,GAAK;CACtJ,OAAOC,EAAU;EAAE,gBAAgB;EAAO;EAAK;EAAQ,OAAO;GAAE,GAAGD;GAAO,WAAWR,EAAG,oBAAoBG,EAAY;IAAE;IAAW;IAAK;IAAO;IAAS;GAAK,CAAC,GAAGO,CAAS;EAAE;EAAG,OAAO,CAAC;CAAE,CAAC;AAC7L,CAAC;AAED,EAAM,cAAc"}
@@ -561,6 +561,6 @@ function y({ span: t, columns: n }) {
561
561
  return i;
562
562
  }
563
563
  //#endregion
564
- export { y as a, g as i, m as n, h as o, _ as r, v as t };
564
+ export { y as a, t as c, g as i, m as n, h as o, _ as r, r as s, v as t };
565
565
 
566
- //# sourceMappingURL=structure.recipes-EPz60cU8.js.map
566
+ //# sourceMappingURL=structure.recipes-BB4-n58V.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"structure.recipes-EPz60cU8.js","names":["STRUCTURE_BREAKPOINTS","resolveResponsiveEntries","value","fallback","resolveOptionalResponsiveEntries","compileResponsiveClasses","classes","emitted","breakpoint","entries","classMap","gapClasses","rowGapClasses","columnGapClasses","alignClasses","justifyClasses","directionClasses","wrapClasses","columnClasses","spanClasses","adaptiveColumnClasses","gapRecipe","gaps","gap","rows","rowGap","columns","columnGap","result","currentGap","currentRow","currentColumn","nextGap","sharedChanged","stackRecipe","directions","direction","aligns","align","wraps","wrap","justify","currentDirection","explicitAlign","explicitWrap","directionAtBreakpoint","alignAtBreakpoint","wrapAtBreakpoint","directionChanged","resolveGridColumns","gridRecipe","adaptiveGridRecipe","minColumnWidth","spanRecipe","span","requested","currentSpan","currentColumns","resolved"],"sources":["../src/components/base/structure/structure.responsive.ts","../src/components/base/structure/structure.recipes.ts"],"sourcesContent":["import type {\n\tResponsiveValue,\n\tStructureBreakpoint,\n} from './structure.types';\n\nexport const STRUCTURE_BREAKPOINTS: readonly StructureBreakpoint[] = [\n\t'base',\n\t'sm',\n\t'md',\n\t'lg',\n\t'xl',\n\t'2xl',\n];\n\nexport function resolveResponsiveEntries<T>(\n\tvalue: ResponsiveValue<T> | undefined,\n\tfallback: T,\n): Partial<Record<StructureBreakpoint, T>> {\n\tif (value === undefined) return { base: fallback };\n\tif (typeof value !== 'object' || value === null) return { base: value };\n\treturn { base: fallback, ...value };\n}\n\nexport function resolveOptionalResponsiveEntries<T>(\n\tvalue: ResponsiveValue<T> | undefined,\n): Partial<Record<StructureBreakpoint, T>> {\n\tif (value === undefined) return {};\n\tif (typeof value !== 'object' || value === null) return { base: value };\n\treturn value;\n}\n\nexport function compileResponsiveClasses<T extends string | number>(\n\tentries: Partial<Record<StructureBreakpoint, T>>,\n\tclassMap: Record<StructureBreakpoint, Record<T, string>>,\n): string[] {\n\tconst classes: string[] = [];\n\tlet emitted: T | undefined;\n\n\tfor (const breakpoint of STRUCTURE_BREAKPOINTS) {\n\t\tconst value = entries[breakpoint];\n\t\tif (value === undefined || value === emitted) continue;\n\t\temitted = value;\n\t\tclasses.push(classMap[breakpoint][value]);\n\t}\n\n\treturn classes;\n}\n","import {\n\tcompileResponsiveClasses,\n\tresolveOptionalResponsiveEntries,\n\tresolveResponsiveEntries,\n\tSTRUCTURE_BREAKPOINTS,\n} from './structure.responsive';\nimport type {\n\tAdaptiveGridMinimum,\n\tGridColumnLadder,\n\tResponsiveValue,\n\tStructureAlign,\n\tStructureGap,\n\tStructureJustify,\n} from './structure.types';\n\nconst gapClasses = {\n\tbase: { none: 'gap-0', normal: 'gap-normal', dense: 'gap-dense', '2xs': 'gap-space-2xs', xs: 'gap-space-xs', sm: 'gap-space-sm', md: 'gap-space-md', lg: 'gap-space-lg', xl: 'gap-space-xl', '2xl': 'gap-space-2xl', '3xl': 'gap-space-3xl' },\n\tsm: { none: 'sm:gap-0', normal: 'sm:gap-normal', dense: 'sm:gap-dense', '2xs': 'sm:gap-space-2xs', xs: 'sm:gap-space-xs', sm: 'sm:gap-space-sm', md: 'sm:gap-space-md', lg: 'sm:gap-space-lg', xl: 'sm:gap-space-xl', '2xl': 'sm:gap-space-2xl', '3xl': 'sm:gap-space-3xl' },\n\tmd: { none: 'md:gap-0', normal: 'md:gap-normal', dense: 'md:gap-dense', '2xs': 'md:gap-space-2xs', xs: 'md:gap-space-xs', sm: 'md:gap-space-sm', md: 'md:gap-space-md', lg: 'md:gap-space-lg', xl: 'md:gap-space-xl', '2xl': 'md:gap-space-2xl', '3xl': 'md:gap-space-3xl' },\n\tlg: { none: 'lg:gap-0', normal: 'lg:gap-normal', dense: 'lg:gap-dense', '2xs': 'lg:gap-space-2xs', xs: 'lg:gap-space-xs', sm: 'lg:gap-space-sm', md: 'lg:gap-space-md', lg: 'lg:gap-space-lg', xl: 'lg:gap-space-xl', '2xl': 'lg:gap-space-2xl', '3xl': 'lg:gap-space-3xl' },\n\txl: { none: 'xl:gap-0', normal: 'xl:gap-normal', dense: 'xl:gap-dense', '2xs': 'xl:gap-space-2xs', xs: 'xl:gap-space-xs', sm: 'xl:gap-space-sm', md: 'xl:gap-space-md', lg: 'xl:gap-space-lg', xl: 'xl:gap-space-xl', '2xl': 'xl:gap-space-2xl', '3xl': 'xl:gap-space-3xl' },\n\t'2xl': { none: '2xl:gap-0', normal: '2xl:gap-normal', dense: '2xl:gap-dense', '2xs': '2xl:gap-space-2xs', xs: '2xl:gap-space-xs', sm: '2xl:gap-space-sm', md: '2xl:gap-space-md', lg: '2xl:gap-space-lg', xl: '2xl:gap-space-xl', '2xl': '2xl:gap-space-2xl', '3xl': '2xl:gap-space-3xl' },\n} as const;\n\nconst rowGapClasses = {\n\tbase: { none: 'gap-y-0', normal: 'gap-y-normal', dense: 'gap-y-dense', '2xs': 'gap-y-space-2xs', xs: 'gap-y-space-xs', sm: 'gap-y-space-sm', md: 'gap-y-space-md', lg: 'gap-y-space-lg', xl: 'gap-y-space-xl', '2xl': 'gap-y-space-2xl', '3xl': 'gap-y-space-3xl' },\n\tsm: { none: 'sm:gap-y-0', normal: 'sm:gap-y-normal', dense: 'sm:gap-y-dense', '2xs': 'sm:gap-y-space-2xs', xs: 'sm:gap-y-space-xs', sm: 'sm:gap-y-space-sm', md: 'sm:gap-y-space-md', lg: 'sm:gap-y-space-lg', xl: 'sm:gap-y-space-xl', '2xl': 'sm:gap-y-space-2xl', '3xl': 'sm:gap-y-space-3xl' },\n\tmd: { none: 'md:gap-y-0', normal: 'md:gap-y-normal', dense: 'md:gap-y-dense', '2xs': 'md:gap-y-space-2xs', xs: 'md:gap-y-space-xs', sm: 'md:gap-y-space-sm', md: 'md:gap-y-space-md', lg: 'md:gap-y-space-lg', xl: 'md:gap-y-space-xl', '2xl': 'md:gap-y-space-2xl', '3xl': 'md:gap-y-space-3xl' },\n\tlg: { none: 'lg:gap-y-0', normal: 'lg:gap-y-normal', dense: 'lg:gap-y-dense', '2xs': 'lg:gap-y-space-2xs', xs: 'lg:gap-y-space-xs', sm: 'lg:gap-y-space-sm', md: 'lg:gap-y-space-md', lg: 'lg:gap-y-space-lg', xl: 'lg:gap-y-space-xl', '2xl': 'lg:gap-y-space-2xl', '3xl': 'lg:gap-y-space-3xl' },\n\txl: { none: 'xl:gap-y-0', normal: 'xl:gap-y-normal', dense: 'xl:gap-y-dense', '2xs': 'xl:gap-y-space-2xs', xs: 'xl:gap-y-space-xs', sm: 'xl:gap-y-space-sm', md: 'xl:gap-y-space-md', lg: 'xl:gap-y-space-lg', xl: 'xl:gap-y-space-xl', '2xl': 'xl:gap-y-space-2xl', '3xl': 'xl:gap-y-space-3xl' },\n\t'2xl': { none: '2xl:gap-y-0', normal: '2xl:gap-y-normal', dense: '2xl:gap-y-dense', '2xs': '2xl:gap-y-space-2xs', xs: '2xl:gap-y-space-xs', sm: '2xl:gap-y-space-sm', md: '2xl:gap-y-space-md', lg: '2xl:gap-y-space-lg', xl: '2xl:gap-y-space-xl', '2xl': '2xl:gap-y-space-2xl', '3xl': '2xl:gap-y-space-3xl' },\n} as const;\n\nconst columnGapClasses = {\n\tbase: { none: 'gap-x-0', normal: 'gap-x-normal', dense: 'gap-x-dense', '2xs': 'gap-x-space-2xs', xs: 'gap-x-space-xs', sm: 'gap-x-space-sm', md: 'gap-x-space-md', lg: 'gap-x-space-lg', xl: 'gap-x-space-xl', '2xl': 'gap-x-space-2xl', '3xl': 'gap-x-space-3xl' },\n\tsm: { none: 'sm:gap-x-0', normal: 'sm:gap-x-normal', dense: 'sm:gap-x-dense', '2xs': 'sm:gap-x-space-2xs', xs: 'sm:gap-x-space-xs', sm: 'sm:gap-x-space-sm', md: 'sm:gap-x-space-md', lg: 'sm:gap-x-space-lg', xl: 'sm:gap-x-space-xl', '2xl': 'sm:gap-x-space-2xl', '3xl': 'sm:gap-x-space-3xl' },\n\tmd: { none: 'md:gap-x-0', normal: 'md:gap-x-normal', dense: 'md:gap-x-dense', '2xs': 'md:gap-x-space-2xs', xs: 'md:gap-x-space-xs', sm: 'md:gap-x-space-sm', md: 'md:gap-x-space-md', lg: 'md:gap-x-space-lg', xl: 'md:gap-x-space-xl', '2xl': 'md:gap-x-space-2xl', '3xl': 'md:gap-x-space-3xl' },\n\tlg: { none: 'lg:gap-x-0', normal: 'lg:gap-x-normal', dense: 'lg:gap-x-dense', '2xs': 'lg:gap-x-space-2xs', xs: 'lg:gap-x-space-xs', sm: 'lg:gap-x-space-sm', md: 'lg:gap-x-space-md', lg: 'lg:gap-x-space-lg', xl: 'lg:gap-x-space-xl', '2xl': 'lg:gap-x-space-2xl', '3xl': 'lg:gap-x-space-3xl' },\n\txl: { none: 'xl:gap-x-0', normal: 'xl:gap-x-normal', dense: 'xl:gap-x-dense', '2xs': 'xl:gap-x-space-2xs', xs: 'xl:gap-x-space-xs', sm: 'xl:gap-x-space-sm', md: 'xl:gap-x-space-md', lg: 'xl:gap-x-space-lg', xl: 'xl:gap-x-space-xl', '2xl': 'xl:gap-x-space-2xl', '3xl': 'xl:gap-x-space-3xl' },\n\t'2xl': { none: '2xl:gap-x-0', normal: '2xl:gap-x-normal', dense: '2xl:gap-x-dense', '2xs': '2xl:gap-x-space-2xs', xs: '2xl:gap-x-space-xs', sm: '2xl:gap-x-space-sm', md: '2xl:gap-x-space-md', lg: '2xl:gap-x-space-lg', xl: '2xl:gap-x-space-xl', '2xl': '2xl:gap-x-space-2xl', '3xl': '2xl:gap-x-space-3xl' },\n} as const;\n\nconst alignClasses = {\n\tbase: { start: 'items-start', center: 'items-center', end: 'items-end', stretch: 'items-stretch', baseline: 'items-baseline' },\n\tsm: { start: 'sm:items-start', center: 'sm:items-center', end: 'sm:items-end', stretch: 'sm:items-stretch', baseline: 'sm:items-baseline' },\n\tmd: { start: 'md:items-start', center: 'md:items-center', end: 'md:items-end', stretch: 'md:items-stretch', baseline: 'md:items-baseline' },\n\tlg: { start: 'lg:items-start', center: 'lg:items-center', end: 'lg:items-end', stretch: 'lg:items-stretch', baseline: 'lg:items-baseline' },\n\txl: { start: 'xl:items-start', center: 'xl:items-center', end: 'xl:items-end', stretch: 'xl:items-stretch', baseline: 'xl:items-baseline' },\n\t'2xl': { start: '2xl:items-start', center: '2xl:items-center', end: '2xl:items-end', stretch: '2xl:items-stretch', baseline: '2xl:items-baseline' },\n} as const;\n\nconst justifyClasses = {\n\tbase: { start: 'justify-start', center: 'justify-center', end: 'justify-end', between: 'justify-between', around: 'justify-around', evenly: 'justify-evenly' },\n\tsm: { start: 'sm:justify-start', center: 'sm:justify-center', end: 'sm:justify-end', between: 'sm:justify-between', around: 'sm:justify-around', evenly: 'sm:justify-evenly' },\n\tmd: { start: 'md:justify-start', center: 'md:justify-center', end: 'md:justify-end', between: 'md:justify-between', around: 'md:justify-around', evenly: 'md:justify-evenly' },\n\tlg: { start: 'lg:justify-start', center: 'lg:justify-center', end: 'lg:justify-end', between: 'lg:justify-between', around: 'lg:justify-around', evenly: 'lg:justify-evenly' },\n\txl: { start: 'xl:justify-start', center: 'xl:justify-center', end: 'xl:justify-end', between: 'xl:justify-between', around: 'xl:justify-around', evenly: 'xl:justify-evenly' },\n\t'2xl': { start: '2xl:justify-start', center: '2xl:justify-center', end: '2xl:justify-end', between: '2xl:justify-between', around: '2xl:justify-around', evenly: '2xl:justify-evenly' },\n} as const;\n\nconst directionClasses = {\n\tbase: { vertical: 'flex-col', horizontal: 'flex-row' },\n\tsm: { vertical: 'sm:flex-col', horizontal: 'sm:flex-row' },\n\tmd: { vertical: 'md:flex-col', horizontal: 'md:flex-row' },\n\tlg: { vertical: 'lg:flex-col', horizontal: 'lg:flex-row' },\n\txl: { vertical: 'xl:flex-col', horizontal: 'xl:flex-row' },\n\t'2xl': { vertical: '2xl:flex-col', horizontal: '2xl:flex-row' },\n} as const;\n\nconst wrapClasses = {\n\tbase: { true: 'flex-wrap', false: 'flex-nowrap' },\n\tsm: { true: 'sm:flex-wrap', false: 'sm:flex-nowrap' },\n\tmd: { true: 'md:flex-wrap', false: 'md:flex-nowrap' },\n\tlg: { true: 'lg:flex-wrap', false: 'lg:flex-nowrap' },\n\txl: { true: 'xl:flex-wrap', false: 'xl:flex-nowrap' },\n\t'2xl': { true: '2xl:flex-wrap', false: '2xl:flex-nowrap' },\n} as const;\n\nconst columnClasses = {\n\tbase: { 1: 'grid-cols-1', 2: 'grid-cols-2', 3: 'grid-cols-3', 4: 'grid-cols-4' },\n\tsm: { 1: 'sm:grid-cols-1', 2: 'sm:grid-cols-2', 3: 'sm:grid-cols-3', 4: 'sm:grid-cols-4' },\n\tmd: { 1: 'md:grid-cols-1', 2: 'md:grid-cols-2', 3: 'md:grid-cols-3', 4: 'md:grid-cols-4' },\n\tlg: { 1: 'lg:grid-cols-1', 2: 'lg:grid-cols-2', 3: 'lg:grid-cols-3', 4: 'lg:grid-cols-4' },\n\txl: { 1: 'xl:grid-cols-1', 2: 'xl:grid-cols-2', 3: 'xl:grid-cols-3', 4: 'xl:grid-cols-4' },\n\t'2xl': { 1: '2xl:grid-cols-1', 2: '2xl:grid-cols-2', 3: '2xl:grid-cols-3', 4: '2xl:grid-cols-4' },\n} as const;\n\nconst spanClasses = {\n\tbase: { 1: 'col-span-1', 2: 'col-span-2', 3: 'col-span-3', 4: 'col-span-4', full: 'col-span-full' },\n\tsm: { 1: 'sm:col-span-1', 2: 'sm:col-span-2', 3: 'sm:col-span-3', 4: 'sm:col-span-4', full: 'sm:col-span-full' },\n\tmd: { 1: 'md:col-span-1', 2: 'md:col-span-2', 3: 'md:col-span-3', 4: 'md:col-span-4', full: 'md:col-span-full' },\n\tlg: { 1: 'lg:col-span-1', 2: 'lg:col-span-2', 3: 'lg:col-span-3', 4: 'lg:col-span-4', full: 'lg:col-span-full' },\n\txl: { 1: 'xl:col-span-1', 2: 'xl:col-span-2', 3: 'xl:col-span-3', 4: 'xl:col-span-4', full: 'xl:col-span-full' },\n\t'2xl': { 1: '2xl:col-span-1', 2: '2xl:col-span-2', 3: '2xl:col-span-3', 4: '2xl:col-span-4', full: '2xl:col-span-full' },\n} as const;\n\nconst adaptiveColumnClasses: Record<AdaptiveGridMinimum, string> = {\n\tsm: 'grid-cols-[repeat(auto-fit,minmax(min(100%,var(--adaptive-grid-min-sm)),1fr))]',\n\tmd: 'grid-cols-[repeat(auto-fit,minmax(min(100%,var(--adaptive-grid-min-md)),1fr))]',\n\tlg: 'grid-cols-[repeat(auto-fit,minmax(min(100%,var(--adaptive-grid-min-lg)),1fr))]',\n};\n\n/** Shared region/peer rhythm for structures and composed surface owners. */\nexport function gapRecipe({\n\tgap,\n\trowGap,\n\tcolumnGap,\n}: {\n\tgap?: ResponsiveValue<StructureGap>;\n\trowGap?: ResponsiveValue<StructureGap>;\n\tcolumnGap?: ResponsiveValue<StructureGap>;\n}): string[] {\n const gaps = resolveResponsiveEntries<StructureGap>(gap, 'xl');\n const rows = resolveOptionalResponsiveEntries(rowGap);\n const columns = resolveOptionalResponsiveEntries(columnGap);\n const result: string[] = [];\n let currentGap: StructureGap | undefined;\n let currentRow: StructureGap | undefined;\n let currentColumn: StructureGap | undefined;\n\n for (const breakpoint of STRUCTURE_BREAKPOINTS) {\n const nextGap = gaps[breakpoint];\n const sharedChanged = nextGap !== undefined && nextGap !== currentGap;\n if (nextGap !== undefined) currentGap = nextGap;\n if (rows[breakpoint] !== undefined) currentRow = rows[breakpoint];\n if (columns[breakpoint] !== undefined) currentColumn = columns[breakpoint];\n if (sharedChanged) result.push(gapClasses[breakpoint][currentGap!]);\n // A later gap shorthand resets both axes; reassert persistent overrides there.\n if (currentRow !== undefined && (sharedChanged || rows[breakpoint] !== undefined)) result.push(rowGapClasses[breakpoint][currentRow]);\n if (currentColumn !== undefined && (sharedChanged || columns[breakpoint] !== undefined)) result.push(columnGapClasses[breakpoint][currentColumn]);\n }\n return result;\n}\n\nexport function stackRecipe({\n\tdirection,\n\tgap,\n\talign,\n\tjustify,\n\twrap,\n}: {\n\tdirection?: ResponsiveValue<'vertical' | 'horizontal'>;\n\tgap?: ResponsiveValue<StructureGap>;\n\talign?: ResponsiveValue<StructureAlign>;\n\tjustify?: ResponsiveValue<StructureJustify>;\n\twrap?: ResponsiveValue<boolean>;\n}): string[] {\n\tconst directions = resolveResponsiveEntries<'vertical' | 'horizontal'>(direction, 'vertical');\n\tconst aligns = resolveOptionalResponsiveEntries<StructureAlign>(align);\n\tconst wraps = resolveOptionalResponsiveEntries<boolean>(wrap);\n\tconst result = [\n\t\t'flex',\n\t\t'min-w-0',\n\t\t...compileResponsiveClasses(resolveResponsiveEntries(gap, 'md'), gapClasses),\n\t\t...compileResponsiveClasses(resolveResponsiveEntries(justify, 'start'), justifyClasses),\n\t];\n\tlet currentDirection: 'vertical' | 'horizontal' = 'vertical';\n\tlet explicitAlign: StructureAlign | undefined;\n\tlet explicitWrap: boolean | undefined;\n\n\tfor (const breakpoint of STRUCTURE_BREAKPOINTS) {\n\t\tconst directionAtBreakpoint = directions[breakpoint];\n\t\tconst alignAtBreakpoint = aligns[breakpoint];\n\t\tconst wrapAtBreakpoint = wraps[breakpoint];\n\t\tconst directionChanged = directionAtBreakpoint !== undefined;\n\n\t\tif (directionAtBreakpoint !== undefined) currentDirection = directionAtBreakpoint;\n\t\tif (alignAtBreakpoint !== undefined) explicitAlign = alignAtBreakpoint;\n\t\tif (wrapAtBreakpoint !== undefined) explicitWrap = wrapAtBreakpoint;\n\n\t\tif (directionChanged) {\n\t\t\tresult.push(directionClasses[breakpoint][currentDirection]);\n\t\t\tresult.push(alignClasses[breakpoint][explicitAlign ?? (currentDirection === 'horizontal' ? 'center' : 'stretch')]);\n\t\t\tresult.push(wrapClasses[breakpoint][String(explicitWrap ?? currentDirection === 'horizontal') as 'true' | 'false']);\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (alignAtBreakpoint !== undefined) result.push(alignClasses[breakpoint][alignAtBreakpoint]);\n\t\tif (wrapAtBreakpoint !== undefined) result.push(wrapClasses[breakpoint][String(wrapAtBreakpoint) as 'true' | 'false']);\n\t}\n\n\treturn result;\n}\n\nexport function resolveGridColumns(\n\tcolumns?: ResponsiveValue<1 | 2 | 3 | 4>,\n): GridColumnLadder {\n\tif (columns === undefined) return { base: 1, md: 2 };\n\tif (typeof columns !== 'object' || columns === null) return { base: columns };\n\treturn { base: 1, ...columns };\n}\n\nexport function gridRecipe({\n\tcolumns,\n\tgap,\n\trowGap,\n\tcolumnGap,\n\talign,\n}: {\n\tcolumns?: ResponsiveValue<1 | 2 | 3 | 4>;\n\tgap?: ResponsiveValue<StructureGap>;\n\trowGap?: ResponsiveValue<StructureGap>;\n\tcolumnGap?: ResponsiveValue<StructureGap>;\n\talign?: ResponsiveValue<StructureAlign>;\n}): string[] {\n\treturn [\n\t\t'grid',\n\t\t'min-w-0',\n\t\t...gapRecipe({ gap, rowGap, columnGap }),\n\t\t...compileResponsiveClasses(resolveResponsiveEntries(align, 'stretch'), alignClasses),\n\t\t...compileResponsiveClasses(resolveGridColumns(columns), columnClasses),\n\t];\n}\n\nexport function adaptiveGridRecipe({\n\tminColumnWidth = 'md',\n\tgap,\n\trowGap,\n\tcolumnGap,\n\talign,\n}: {\n\tminColumnWidth?: AdaptiveGridMinimum;\n\tgap?: ResponsiveValue<StructureGap>;\n\trowGap?: ResponsiveValue<StructureGap>;\n\tcolumnGap?: ResponsiveValue<StructureGap>;\n\talign?: ResponsiveValue<StructureAlign>;\n}): string[] {\n\treturn [\n\t\t'grid',\n\t\t'min-w-0',\n\t\t...gapRecipe({ gap, rowGap, columnGap }),\n\t\t...compileResponsiveClasses(resolveResponsiveEntries(align, 'stretch'), alignClasses),\n\t\tadaptiveColumnClasses[minColumnWidth],\n\t];\n}\n\nexport function spanRecipe({\n\tspan,\n\tcolumns,\n}: {\n\tspan?: ResponsiveValue<1 | 2 | 3 | 4 | 'full'>;\n\tcolumns?: GridColumnLadder;\n}): string[] {\n\tif (span === undefined) return [];\n\tconst requested = typeof span === 'object' && span !== null ? span : { base: span };\n\tconst result: string[] = [];\n\tlet currentSpan: 1 | 2 | 3 | 4 | 'full' | undefined;\n\tlet currentColumns: 1 | 2 | 3 | 4 | undefined;\n\tlet emitted: 1 | 2 | 3 | 4 | 'full' | undefined;\n\n\tfor (const breakpoint of STRUCTURE_BREAKPOINTS) {\n\t\tcurrentSpan = requested[breakpoint] ?? currentSpan;\n\t\tcurrentColumns = columns?.[breakpoint] ?? currentColumns;\n\t\tif (currentSpan === undefined) continue;\n\t\tconst resolved = currentSpan === 'full' || currentColumns === undefined\n\t\t\t? currentSpan\n\t\t\t: Math.min(currentSpan, currentColumns) as 1 | 2 | 3 | 4;\n\t\tif (resolved === emitted) continue;\n\t\temitted = resolved;\n\t\tresult.push(spanClasses[breakpoint][resolved]);\n\t}\n\n\treturn result;\n}\n"],"mappings":";AAKA,IAAaA,IAAwD;CACpE;CACA;CACA;CACA;CACA;CACA;AACD;AAEA,SAAgBC,EACf,GACA,GAC0C;CAG1C,OAFIC,MAAU,KAAA,IAAkB,EAAE,MAAMC,EAAS,IAC7C,OAAOD,KAAU,aAAYA,IAAuB,EAAE,MAAMA,EAAM,IAC/D;EAAE,MAAMC;EAAU,GAAGD;CAAM;AACnC;AAEA,SAAgBE,EACf,GAC0C;CAG1C,OAFIF,MAAU,KAAA,IAAkB,CAAC,IAC7B,OAAOA,KAAU,aAAYA,IAAuB,EAAE,MAAMA,EAAM,IAC/DA;AACR;AAEA,SAAgBG,EACf,GACA,GACW;CACX,IAAMC,IAAoB,CAAC,GACvBC;CAEJ,KAAK,IAAMC,KAAcR,GAAuB;EAC/C,IAAME,IAAQO,EAAQD;EACtB,AAAIN,MAAU,KAAA,KAAaA,MAAUK,MACrC,IAAUL,GACVI,EAAQ,KAAKI,EAASF,EAAW,CAACN,EAAM;CACzC;CAEA,OAAOI;AACR;;;AC/BA,IAAMK,IAAa;CAClB,MAAM;EAAE,MAAM;EAAS,QAAQ;EAAc,OAAO;EAAa,OAAO;EAAiB,IAAI;EAAgB,IAAI;EAAgB,IAAI;EAAgB,IAAI;EAAgB,IAAI;EAAgB,OAAO;EAAiB,OAAO;CAAgB;CAC5O,IAAI;EAAE,MAAM;EAAY,QAAQ;EAAiB,OAAO;EAAgB,OAAO;EAAoB,IAAI;EAAmB,IAAI;EAAmB,IAAI;EAAmB,IAAI;EAAmB,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,GAAGA;CAAQ;AAC9B;AAEA,SAAgBwB,EAAW,EAC1B,YACA,QACA,WACA,cACA,YAOY;CACZ,OAAO;EACN;EACA;EACA,GAAG7B,EAAU;GAAE;GAAK;GAAQ;EAAU,CAAC;EACvC,GAAGhB,EAAyBJ,EAAyBqC,GAAO,SAAS,GAAGxB,CAAY;EACpF,GAAGT,EAAyB4C,EAAmBvB,CAAO,GAAGR,CAAa;CACvE;AACD;AAEA,SAAgBiC,EAAmB,EAClC,oBAAiB,MACjB,QACA,WACA,cACA,YAOY;CACZ,OAAO;EACN;EACA;EACA,GAAG9B,EAAU;GAAE;GAAK;GAAQ;EAAU,CAAC;EACvC,GAAGhB,EAAyBJ,EAAyBqC,GAAO,SAAS,GAAGxB,CAAY;EACpFM,EAAsBgC;CACvB;AACD;AAEA,SAAgBC,EAAW,EAC1B,SACA,cAIY;CACZ,IAAIC,MAAS,KAAA,GAAW,OAAO,CAAC;CAChC,IAAMC,IAAY,OAAOD,KAAS,YAAYA,IAAgBA,IAAO,EAAE,MAAMA,EAAK,GAC5E1B,IAAmB,CAAC,GACtB4B,GACAC,GACAlD;CAEJ,KAAK,IAAMC,KAAcR,GAAuB;EAG/C,IAFA,IAAcuD,EAAU/C,MAAegD,GACvC,IAAiB9B,IAAUlB,MAAeiD,GACtCD,MAAgB,KAAA,GAAW;EAC/B,IAAME,IAAWF,MAAgB,UAAUC,MAAmB,KAAA,IAC3DD,IACA,KAAK,IAAIA,GAAaC,CAAc;EACvC,AAAIC,MAAanD,MACjB,IAAUmD,GACV9B,EAAO,KAAKT,EAAYX,EAAW,CAACkD,EAAS;CAC9C;CAEA,OAAO9B;AACR"}
1
+ {"version":3,"file":"structure.recipes-BB4-n58V.js","names":["STRUCTURE_BREAKPOINTS","resolveResponsiveEntries","value","fallback","resolveOptionalResponsiveEntries","compileResponsiveClasses","classes","emitted","breakpoint","entries","classMap","gapClasses","rowGapClasses","columnGapClasses","alignClasses","justifyClasses","directionClasses","wrapClasses","columnClasses","spanClasses","adaptiveColumnClasses","gapRecipe","gaps","gap","rows","rowGap","columns","columnGap","result","currentGap","currentRow","currentColumn","nextGap","sharedChanged","stackRecipe","directions","direction","aligns","align","wraps","wrap","justify","currentDirection","explicitAlign","explicitWrap","directionAtBreakpoint","alignAtBreakpoint","wrapAtBreakpoint","directionChanged","resolveGridColumns","gridRecipe","adaptiveGridRecipe","minColumnWidth","spanRecipe","span","requested","currentSpan","currentColumns","resolved"],"sources":["../src/components/base/structure/structure.responsive.ts","../src/components/base/structure/structure.recipes.ts"],"sourcesContent":["import type {\n\tResponsiveValue,\n\tStructureBreakpoint,\n} from './structure.types';\n\nexport const STRUCTURE_BREAKPOINTS: readonly StructureBreakpoint[] = [\n\t'base',\n\t'sm',\n\t'md',\n\t'lg',\n\t'xl',\n\t'2xl',\n];\n\nexport function resolveResponsiveEntries<T>(\n\tvalue: ResponsiveValue<T> | undefined,\n\tfallback: T,\n): Partial<Record<StructureBreakpoint, T>> {\n\tif (value === undefined) return { base: fallback };\n\tif (typeof value !== 'object' || value === null) return { base: value };\n\treturn { base: fallback, ...value };\n}\n\nexport function resolveOptionalResponsiveEntries<T>(\n\tvalue: ResponsiveValue<T> | undefined,\n): Partial<Record<StructureBreakpoint, T>> {\n\tif (value === undefined) return {};\n\tif (typeof value !== 'object' || value === null) return { base: value };\n\treturn value;\n}\n\nexport function compileResponsiveClasses<T extends string | number>(\n\tentries: Partial<Record<StructureBreakpoint, T>>,\n\tclassMap: Record<StructureBreakpoint, Record<T, string>>,\n): string[] {\n\tconst classes: string[] = [];\n\tlet emitted: T | undefined;\n\n\tfor (const breakpoint of STRUCTURE_BREAKPOINTS) {\n\t\tconst value = entries[breakpoint];\n\t\tif (value === undefined || value === emitted) continue;\n\t\temitted = value;\n\t\tclasses.push(classMap[breakpoint][value]);\n\t}\n\n\treturn classes;\n}\n","import {\n\tcompileResponsiveClasses,\n\tresolveOptionalResponsiveEntries,\n\tresolveResponsiveEntries,\n\tSTRUCTURE_BREAKPOINTS,\n} from './structure.responsive';\nimport type {\n\tAdaptiveGridMinimum,\n\tGridColumnLadder,\n\tResponsiveValue,\n\tStructureAlign,\n\tStructureGap,\n\tStructureJustify,\n} from './structure.types';\n\nconst gapClasses = {\n\tbase: { none: 'gap-0', normal: 'gap-normal', dense: 'gap-dense', '2xs': 'gap-space-2xs', xs: 'gap-space-xs', sm: 'gap-space-sm', md: 'gap-space-md', lg: 'gap-space-lg', xl: 'gap-space-xl', '2xl': 'gap-space-2xl', '3xl': 'gap-space-3xl' },\n\tsm: { none: 'sm:gap-0', normal: 'sm:gap-normal', dense: 'sm:gap-dense', '2xs': 'sm:gap-space-2xs', xs: 'sm:gap-space-xs', sm: 'sm:gap-space-sm', md: 'sm:gap-space-md', lg: 'sm:gap-space-lg', xl: 'sm:gap-space-xl', '2xl': 'sm:gap-space-2xl', '3xl': 'sm:gap-space-3xl' },\n\tmd: { none: 'md:gap-0', normal: 'md:gap-normal', dense: 'md:gap-dense', '2xs': 'md:gap-space-2xs', xs: 'md:gap-space-xs', sm: 'md:gap-space-sm', md: 'md:gap-space-md', lg: 'md:gap-space-lg', xl: 'md:gap-space-xl', '2xl': 'md:gap-space-2xl', '3xl': 'md:gap-space-3xl' },\n\tlg: { none: 'lg:gap-0', normal: 'lg:gap-normal', dense: 'lg:gap-dense', '2xs': 'lg:gap-space-2xs', xs: 'lg:gap-space-xs', sm: 'lg:gap-space-sm', md: 'lg:gap-space-md', lg: 'lg:gap-space-lg', xl: 'lg:gap-space-xl', '2xl': 'lg:gap-space-2xl', '3xl': 'lg:gap-space-3xl' },\n\txl: { none: 'xl:gap-0', normal: 'xl:gap-normal', dense: 'xl:gap-dense', '2xs': 'xl:gap-space-2xs', xs: 'xl:gap-space-xs', sm: 'xl:gap-space-sm', md: 'xl:gap-space-md', lg: 'xl:gap-space-lg', xl: 'xl:gap-space-xl', '2xl': 'xl:gap-space-2xl', '3xl': 'xl:gap-space-3xl' },\n\t'2xl': { none: '2xl:gap-0', normal: '2xl:gap-normal', dense: '2xl:gap-dense', '2xs': '2xl:gap-space-2xs', xs: '2xl:gap-space-xs', sm: '2xl:gap-space-sm', md: '2xl:gap-space-md', lg: '2xl:gap-space-lg', xl: '2xl:gap-space-xl', '2xl': '2xl:gap-space-2xl', '3xl': '2xl:gap-space-3xl' },\n} as const;\n\nconst rowGapClasses = {\n\tbase: { none: 'gap-y-0', normal: 'gap-y-normal', dense: 'gap-y-dense', '2xs': 'gap-y-space-2xs', xs: 'gap-y-space-xs', sm: 'gap-y-space-sm', md: 'gap-y-space-md', lg: 'gap-y-space-lg', xl: 'gap-y-space-xl', '2xl': 'gap-y-space-2xl', '3xl': 'gap-y-space-3xl' },\n\tsm: { none: 'sm:gap-y-0', normal: 'sm:gap-y-normal', dense: 'sm:gap-y-dense', '2xs': 'sm:gap-y-space-2xs', xs: 'sm:gap-y-space-xs', sm: 'sm:gap-y-space-sm', md: 'sm:gap-y-space-md', lg: 'sm:gap-y-space-lg', xl: 'sm:gap-y-space-xl', '2xl': 'sm:gap-y-space-2xl', '3xl': 'sm:gap-y-space-3xl' },\n\tmd: { none: 'md:gap-y-0', normal: 'md:gap-y-normal', dense: 'md:gap-y-dense', '2xs': 'md:gap-y-space-2xs', xs: 'md:gap-y-space-xs', sm: 'md:gap-y-space-sm', md: 'md:gap-y-space-md', lg: 'md:gap-y-space-lg', xl: 'md:gap-y-space-xl', '2xl': 'md:gap-y-space-2xl', '3xl': 'md:gap-y-space-3xl' },\n\tlg: { none: 'lg:gap-y-0', normal: 'lg:gap-y-normal', dense: 'lg:gap-y-dense', '2xs': 'lg:gap-y-space-2xs', xs: 'lg:gap-y-space-xs', sm: 'lg:gap-y-space-sm', md: 'lg:gap-y-space-md', lg: 'lg:gap-y-space-lg', xl: 'lg:gap-y-space-xl', '2xl': 'lg:gap-y-space-2xl', '3xl': 'lg:gap-y-space-3xl' },\n\txl: { none: 'xl:gap-y-0', normal: 'xl:gap-y-normal', dense: 'xl:gap-y-dense', '2xs': 'xl:gap-y-space-2xs', xs: 'xl:gap-y-space-xs', sm: 'xl:gap-y-space-sm', md: 'xl:gap-y-space-md', lg: 'xl:gap-y-space-lg', xl: 'xl:gap-y-space-xl', '2xl': 'xl:gap-y-space-2xl', '3xl': 'xl:gap-y-space-3xl' },\n\t'2xl': { none: '2xl:gap-y-0', normal: '2xl:gap-y-normal', dense: '2xl:gap-y-dense', '2xs': '2xl:gap-y-space-2xs', xs: '2xl:gap-y-space-xs', sm: '2xl:gap-y-space-sm', md: '2xl:gap-y-space-md', lg: '2xl:gap-y-space-lg', xl: '2xl:gap-y-space-xl', '2xl': '2xl:gap-y-space-2xl', '3xl': '2xl:gap-y-space-3xl' },\n} as const;\n\nconst columnGapClasses = {\n\tbase: { none: 'gap-x-0', normal: 'gap-x-normal', dense: 'gap-x-dense', '2xs': 'gap-x-space-2xs', xs: 'gap-x-space-xs', sm: 'gap-x-space-sm', md: 'gap-x-space-md', lg: 'gap-x-space-lg', xl: 'gap-x-space-xl', '2xl': 'gap-x-space-2xl', '3xl': 'gap-x-space-3xl' },\n\tsm: { none: 'sm:gap-x-0', normal: 'sm:gap-x-normal', dense: 'sm:gap-x-dense', '2xs': 'sm:gap-x-space-2xs', xs: 'sm:gap-x-space-xs', sm: 'sm:gap-x-space-sm', md: 'sm:gap-x-space-md', lg: 'sm:gap-x-space-lg', xl: 'sm:gap-x-space-xl', '2xl': 'sm:gap-x-space-2xl', '3xl': 'sm:gap-x-space-3xl' },\n\tmd: { none: 'md:gap-x-0', normal: 'md:gap-x-normal', dense: 'md:gap-x-dense', '2xs': 'md:gap-x-space-2xs', xs: 'md:gap-x-space-xs', sm: 'md:gap-x-space-sm', md: 'md:gap-x-space-md', lg: 'md:gap-x-space-lg', xl: 'md:gap-x-space-xl', '2xl': 'md:gap-x-space-2xl', '3xl': 'md:gap-x-space-3xl' },\n\tlg: { none: 'lg:gap-x-0', normal: 'lg:gap-x-normal', dense: 'lg:gap-x-dense', '2xs': 'lg:gap-x-space-2xs', xs: 'lg:gap-x-space-xs', sm: 'lg:gap-x-space-sm', md: 'lg:gap-x-space-md', lg: 'lg:gap-x-space-lg', xl: 'lg:gap-x-space-xl', '2xl': 'lg:gap-x-space-2xl', '3xl': 'lg:gap-x-space-3xl' },\n\txl: { none: 'xl:gap-x-0', normal: 'xl:gap-x-normal', dense: 'xl:gap-x-dense', '2xs': 'xl:gap-x-space-2xs', xs: 'xl:gap-x-space-xs', sm: 'xl:gap-x-space-sm', md: 'xl:gap-x-space-md', lg: 'xl:gap-x-space-lg', xl: 'xl:gap-x-space-xl', '2xl': 'xl:gap-x-space-2xl', '3xl': 'xl:gap-x-space-3xl' },\n\t'2xl': { none: '2xl:gap-x-0', normal: '2xl:gap-x-normal', dense: '2xl:gap-x-dense', '2xs': '2xl:gap-x-space-2xs', xs: '2xl:gap-x-space-xs', sm: '2xl:gap-x-space-sm', md: '2xl:gap-x-space-md', lg: '2xl:gap-x-space-lg', xl: '2xl:gap-x-space-xl', '2xl': '2xl:gap-x-space-2xl', '3xl': '2xl:gap-x-space-3xl' },\n} as const;\n\nconst alignClasses = {\n\tbase: { start: 'items-start', center: 'items-center', end: 'items-end', stretch: 'items-stretch', baseline: 'items-baseline' },\n\tsm: { start: 'sm:items-start', center: 'sm:items-center', end: 'sm:items-end', stretch: 'sm:items-stretch', baseline: 'sm:items-baseline' },\n\tmd: { start: 'md:items-start', center: 'md:items-center', end: 'md:items-end', stretch: 'md:items-stretch', baseline: 'md:items-baseline' },\n\tlg: { start: 'lg:items-start', center: 'lg:items-center', end: 'lg:items-end', stretch: 'lg:items-stretch', baseline: 'lg:items-baseline' },\n\txl: { start: 'xl:items-start', center: 'xl:items-center', end: 'xl:items-end', stretch: 'xl:items-stretch', baseline: 'xl:items-baseline' },\n\t'2xl': { start: '2xl:items-start', center: '2xl:items-center', end: '2xl:items-end', stretch: '2xl:items-stretch', baseline: '2xl:items-baseline' },\n} as const;\n\nconst justifyClasses = {\n\tbase: { start: 'justify-start', center: 'justify-center', end: 'justify-end', between: 'justify-between', around: 'justify-around', evenly: 'justify-evenly' },\n\tsm: { start: 'sm:justify-start', center: 'sm:justify-center', end: 'sm:justify-end', between: 'sm:justify-between', around: 'sm:justify-around', evenly: 'sm:justify-evenly' },\n\tmd: { start: 'md:justify-start', center: 'md:justify-center', end: 'md:justify-end', between: 'md:justify-between', around: 'md:justify-around', evenly: 'md:justify-evenly' },\n\tlg: { start: 'lg:justify-start', center: 'lg:justify-center', end: 'lg:justify-end', between: 'lg:justify-between', around: 'lg:justify-around', evenly: 'lg:justify-evenly' },\n\txl: { start: 'xl:justify-start', center: 'xl:justify-center', end: 'xl:justify-end', between: 'xl:justify-between', around: 'xl:justify-around', evenly: 'xl:justify-evenly' },\n\t'2xl': { start: '2xl:justify-start', center: '2xl:justify-center', end: '2xl:justify-end', between: '2xl:justify-between', around: '2xl:justify-around', evenly: '2xl:justify-evenly' },\n} as const;\n\nconst directionClasses = {\n\tbase: { vertical: 'flex-col', horizontal: 'flex-row' },\n\tsm: { vertical: 'sm:flex-col', horizontal: 'sm:flex-row' },\n\tmd: { vertical: 'md:flex-col', horizontal: 'md:flex-row' },\n\tlg: { vertical: 'lg:flex-col', horizontal: 'lg:flex-row' },\n\txl: { vertical: 'xl:flex-col', horizontal: 'xl:flex-row' },\n\t'2xl': { vertical: '2xl:flex-col', horizontal: '2xl:flex-row' },\n} as const;\n\nconst wrapClasses = {\n\tbase: { true: 'flex-wrap', false: 'flex-nowrap' },\n\tsm: { true: 'sm:flex-wrap', false: 'sm:flex-nowrap' },\n\tmd: { true: 'md:flex-wrap', false: 'md:flex-nowrap' },\n\tlg: { true: 'lg:flex-wrap', false: 'lg:flex-nowrap' },\n\txl: { true: 'xl:flex-wrap', false: 'xl:flex-nowrap' },\n\t'2xl': { true: '2xl:flex-wrap', false: '2xl:flex-nowrap' },\n} as const;\n\nconst columnClasses = {\n\tbase: { 1: 'grid-cols-1', 2: 'grid-cols-2', 3: 'grid-cols-3', 4: 'grid-cols-4' },\n\tsm: { 1: 'sm:grid-cols-1', 2: 'sm:grid-cols-2', 3: 'sm:grid-cols-3', 4: 'sm:grid-cols-4' },\n\tmd: { 1: 'md:grid-cols-1', 2: 'md:grid-cols-2', 3: 'md:grid-cols-3', 4: 'md:grid-cols-4' },\n\tlg: { 1: 'lg:grid-cols-1', 2: 'lg:grid-cols-2', 3: 'lg:grid-cols-3', 4: 'lg:grid-cols-4' },\n\txl: { 1: 'xl:grid-cols-1', 2: 'xl:grid-cols-2', 3: 'xl:grid-cols-3', 4: 'xl:grid-cols-4' },\n\t'2xl': { 1: '2xl:grid-cols-1', 2: '2xl:grid-cols-2', 3: '2xl:grid-cols-3', 4: '2xl:grid-cols-4' },\n} as const;\n\nconst spanClasses = {\n\tbase: { 1: 'col-span-1', 2: 'col-span-2', 3: 'col-span-3', 4: 'col-span-4', full: 'col-span-full' },\n\tsm: { 1: 'sm:col-span-1', 2: 'sm:col-span-2', 3: 'sm:col-span-3', 4: 'sm:col-span-4', full: 'sm:col-span-full' },\n\tmd: { 1: 'md:col-span-1', 2: 'md:col-span-2', 3: 'md:col-span-3', 4: 'md:col-span-4', full: 'md:col-span-full' },\n\tlg: { 1: 'lg:col-span-1', 2: 'lg:col-span-2', 3: 'lg:col-span-3', 4: 'lg:col-span-4', full: 'lg:col-span-full' },\n\txl: { 1: 'xl:col-span-1', 2: 'xl:col-span-2', 3: 'xl:col-span-3', 4: 'xl:col-span-4', full: 'xl:col-span-full' },\n\t'2xl': { 1: '2xl:col-span-1', 2: '2xl:col-span-2', 3: '2xl:col-span-3', 4: '2xl:col-span-4', full: '2xl:col-span-full' },\n} as const;\n\nconst adaptiveColumnClasses: Record<AdaptiveGridMinimum, string> = {\n\tsm: 'grid-cols-[repeat(auto-fit,minmax(min(100%,var(--adaptive-grid-min-sm)),1fr))]',\n\tmd: 'grid-cols-[repeat(auto-fit,minmax(min(100%,var(--adaptive-grid-min-md)),1fr))]',\n\tlg: 'grid-cols-[repeat(auto-fit,minmax(min(100%,var(--adaptive-grid-min-lg)),1fr))]',\n};\n\n/** Shared region/peer rhythm for structures and composed surface owners. */\nexport function gapRecipe({\n\tgap,\n\trowGap,\n\tcolumnGap,\n}: {\n\tgap?: ResponsiveValue<StructureGap>;\n\trowGap?: ResponsiveValue<StructureGap>;\n\tcolumnGap?: ResponsiveValue<StructureGap>;\n}): string[] {\n const gaps = resolveResponsiveEntries<StructureGap>(gap, 'xl');\n const rows = resolveOptionalResponsiveEntries(rowGap);\n const columns = resolveOptionalResponsiveEntries(columnGap);\n const result: string[] = [];\n let currentGap: StructureGap | undefined;\n let currentRow: StructureGap | undefined;\n let currentColumn: StructureGap | undefined;\n\n for (const breakpoint of STRUCTURE_BREAKPOINTS) {\n const nextGap = gaps[breakpoint];\n const sharedChanged = nextGap !== undefined && nextGap !== currentGap;\n if (nextGap !== undefined) currentGap = nextGap;\n if (rows[breakpoint] !== undefined) currentRow = rows[breakpoint];\n if (columns[breakpoint] !== undefined) currentColumn = columns[breakpoint];\n if (sharedChanged) result.push(gapClasses[breakpoint][currentGap!]);\n // A later gap shorthand resets both axes; reassert persistent overrides there.\n if (currentRow !== undefined && (sharedChanged || rows[breakpoint] !== undefined)) result.push(rowGapClasses[breakpoint][currentRow]);\n if (currentColumn !== undefined && (sharedChanged || columns[breakpoint] !== undefined)) result.push(columnGapClasses[breakpoint][currentColumn]);\n }\n return result;\n}\n\nexport function stackRecipe({\n\tdirection,\n\tgap,\n\talign,\n\tjustify,\n\twrap,\n}: {\n\tdirection?: ResponsiveValue<'vertical' | 'horizontal'>;\n\tgap?: ResponsiveValue<StructureGap>;\n\talign?: ResponsiveValue<StructureAlign>;\n\tjustify?: ResponsiveValue<StructureJustify>;\n\twrap?: ResponsiveValue<boolean>;\n}): string[] {\n\tconst directions = resolveResponsiveEntries<'vertical' | 'horizontal'>(direction, 'vertical');\n\tconst aligns = resolveOptionalResponsiveEntries<StructureAlign>(align);\n\tconst wraps = resolveOptionalResponsiveEntries<boolean>(wrap);\n\tconst result = [\n\t\t'flex',\n\t\t'min-w-0',\n\t\t...compileResponsiveClasses(resolveResponsiveEntries(gap, 'md'), gapClasses),\n\t\t...compileResponsiveClasses(resolveResponsiveEntries(justify, 'start'), justifyClasses),\n\t];\n\tlet currentDirection: 'vertical' | 'horizontal' = 'vertical';\n\tlet explicitAlign: StructureAlign | undefined;\n\tlet explicitWrap: boolean | undefined;\n\n\tfor (const breakpoint of STRUCTURE_BREAKPOINTS) {\n\t\tconst directionAtBreakpoint = directions[breakpoint];\n\t\tconst alignAtBreakpoint = aligns[breakpoint];\n\t\tconst wrapAtBreakpoint = wraps[breakpoint];\n\t\tconst directionChanged = directionAtBreakpoint !== undefined;\n\n\t\tif (directionAtBreakpoint !== undefined) currentDirection = directionAtBreakpoint;\n\t\tif (alignAtBreakpoint !== undefined) explicitAlign = alignAtBreakpoint;\n\t\tif (wrapAtBreakpoint !== undefined) explicitWrap = wrapAtBreakpoint;\n\n\t\tif (directionChanged) {\n\t\t\tresult.push(directionClasses[breakpoint][currentDirection]);\n\t\t\tresult.push(alignClasses[breakpoint][explicitAlign ?? (currentDirection === 'horizontal' ? 'center' : 'stretch')]);\n\t\t\tresult.push(wrapClasses[breakpoint][String(explicitWrap ?? currentDirection === 'horizontal') as 'true' | 'false']);\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (alignAtBreakpoint !== undefined) result.push(alignClasses[breakpoint][alignAtBreakpoint]);\n\t\tif (wrapAtBreakpoint !== undefined) result.push(wrapClasses[breakpoint][String(wrapAtBreakpoint) as 'true' | 'false']);\n\t}\n\n\treturn result;\n}\n\nexport function resolveGridColumns(\n\tcolumns?: ResponsiveValue<1 | 2 | 3 | 4>,\n): GridColumnLadder {\n\tif (columns === undefined) return { base: 1, md: 2 };\n\tif (typeof columns !== 'object' || columns === null) return { base: columns };\n\treturn { base: 1, ...columns };\n}\n\nexport function gridRecipe({\n\tcolumns,\n\tgap,\n\trowGap,\n\tcolumnGap,\n\talign,\n}: {\n\tcolumns?: ResponsiveValue<1 | 2 | 3 | 4>;\n\tgap?: ResponsiveValue<StructureGap>;\n\trowGap?: ResponsiveValue<StructureGap>;\n\tcolumnGap?: ResponsiveValue<StructureGap>;\n\talign?: ResponsiveValue<StructureAlign>;\n}): string[] {\n\treturn [\n\t\t'grid',\n\t\t'min-w-0',\n\t\t...gapRecipe({ gap, rowGap, columnGap }),\n\t\t...compileResponsiveClasses(resolveResponsiveEntries(align, 'stretch'), alignClasses),\n\t\t...compileResponsiveClasses(resolveGridColumns(columns), columnClasses),\n\t];\n}\n\nexport function adaptiveGridRecipe({\n\tminColumnWidth = 'md',\n\tgap,\n\trowGap,\n\tcolumnGap,\n\talign,\n}: {\n\tminColumnWidth?: AdaptiveGridMinimum;\n\tgap?: ResponsiveValue<StructureGap>;\n\trowGap?: ResponsiveValue<StructureGap>;\n\tcolumnGap?: ResponsiveValue<StructureGap>;\n\talign?: ResponsiveValue<StructureAlign>;\n}): string[] {\n\treturn [\n\t\t'grid',\n\t\t'min-w-0',\n\t\t...gapRecipe({ gap, rowGap, columnGap }),\n\t\t...compileResponsiveClasses(resolveResponsiveEntries(align, 'stretch'), alignClasses),\n\t\tadaptiveColumnClasses[minColumnWidth],\n\t];\n}\n\nexport function spanRecipe({\n\tspan,\n\tcolumns,\n}: {\n\tspan?: ResponsiveValue<1 | 2 | 3 | 4 | 'full'>;\n\tcolumns?: GridColumnLadder;\n}): string[] {\n\tif (span === undefined) return [];\n\tconst requested = typeof span === 'object' && span !== null ? span : { base: span };\n\tconst result: string[] = [];\n\tlet currentSpan: 1 | 2 | 3 | 4 | 'full' | undefined;\n\tlet currentColumns: 1 | 2 | 3 | 4 | undefined;\n\tlet emitted: 1 | 2 | 3 | 4 | 'full' | undefined;\n\n\tfor (const breakpoint of STRUCTURE_BREAKPOINTS) {\n\t\tcurrentSpan = requested[breakpoint] ?? currentSpan;\n\t\tcurrentColumns = columns?.[breakpoint] ?? currentColumns;\n\t\tif (currentSpan === undefined) continue;\n\t\tconst resolved = currentSpan === 'full' || currentColumns === undefined\n\t\t\t? currentSpan\n\t\t\t: Math.min(currentSpan, currentColumns) as 1 | 2 | 3 | 4;\n\t\tif (resolved === emitted) continue;\n\t\temitted = resolved;\n\t\tresult.push(spanClasses[breakpoint][resolved]);\n\t}\n\n\treturn result;\n}\n"],"mappings":";AAKA,IAAaA,IAAwD;CACpE;CACA;CACA;CACA;CACA;CACA;AACD;AAEA,SAAgBC,EACf,GACA,GAC0C;CAG1C,OAFIC,MAAU,KAAA,IAAkB,EAAE,MAAMC,EAAS,IAC7C,OAAOD,KAAU,aAAYA,IAAuB,EAAE,MAAMA,EAAM,IAC/D;EAAE,MAAMC;EAAU,GAAGD;CAAM;AACnC;AAEA,SAAgBE,EACf,GAC0C;CAG1C,OAFIF,MAAU,KAAA,IAAkB,CAAC,IAC7B,OAAOA,KAAU,aAAYA,IAAuB,EAAE,MAAMA,EAAM,IAC/DA;AACR;AAEA,SAAgBG,EACf,GACA,GACW;CACX,IAAMC,IAAoB,CAAC,GACvBC;CAEJ,KAAK,IAAMC,KAAcR,GAAuB;EAC/C,IAAME,IAAQO,EAAQD;EACtB,AAAIN,MAAU,KAAA,KAAaA,MAAUK,MACrC,IAAUL,GACVI,EAAQ,KAAKI,EAASF,EAAW,CAACN,EAAM;CACzC;CAEA,OAAOI;AACR;;;AC/BA,IAAMK,IAAa;CAClB,MAAM;EAAE,MAAM;EAAS,QAAQ;EAAc,OAAO;EAAa,OAAO;EAAiB,IAAI;EAAgB,IAAI;EAAgB,IAAI;EAAgB,IAAI;EAAgB,IAAI;EAAgB,OAAO;EAAiB,OAAO;CAAgB;CAC5O,IAAI;EAAE,MAAM;EAAY,QAAQ;EAAiB,OAAO;EAAgB,OAAO;EAAoB,IAAI;EAAmB,IAAI;EAAmB,IAAI;EAAmB,IAAI;EAAmB,IAAI;EAAmB,OAAO;EAAoB,OAAO;CAAmB;CAC3Q,IAAI;EAAE,MAAM;EAAY,QAAQ;EAAiB,OAAO;EAAgB,OAAO;EAAoB,IAAI;EAAmB,IAAI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