themelia-react-ui 1.0.1 → 2.0.0

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 (640) hide show
  1. package/CHANGELOG.md +417 -0
  2. package/README.md +67 -16
  3. package/dist/{accordion-B-5Focs8.js → accordion-CQXVcd7Q.js} +15 -15
  4. package/dist/accordion-CQXVcd7Q.js.map +1 -0
  5. package/dist/action-menu-BTpyPWJ2.js +264 -0
  6. package/dist/action-menu-BTpyPWJ2.js.map +1 -0
  7. package/dist/affordance-geometry.generated-CCIXb2A1.js +68 -0
  8. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
  9. package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-2PQ2fItc.js} +206 -215
  10. package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
  11. package/dist/{app-shell-at8Kt4l_.js → app-shell-BE_j8-AT.js} +11 -10
  12. package/dist/app-shell-BE_j8-AT.js.map +1 -0
  13. package/dist/{attachment-BO2R47wn.js → attachment-q69dlt5Y.js} +14 -14
  14. package/dist/attachment-q69dlt5Y.js.map +1 -0
  15. package/dist/auth-M3vGMgDR.js +723 -0
  16. package/dist/auth-M3vGMgDR.js.map +1 -0
  17. package/dist/{avatar-Bpzty83c.js → avatar-djdaaQ_s.js} +15 -13
  18. package/dist/avatar-djdaaQ_s.js.map +1 -0
  19. package/dist/{badge-BZXZT9wd.js → badge-0tATj-tW.js} +9 -9
  20. package/dist/badge-0tATj-tW.js.map +1 -0
  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/buttons.js +3 -2
  27. package/dist/base/cards.js +3 -3
  28. package/dist/base/carousel.js +33 -35
  29. package/dist/base/carousel.js.map +1 -1
  30. package/dist/base/cascader.js +246 -222
  31. package/dist/base/cascader.js.map +1 -1
  32. package/dist/base/chart.js +1 -1
  33. package/dist/base/choice-inputs.js +2 -2
  34. package/dist/base/code-block.js +1 -1
  35. package/dist/base/combobox.js +1 -1
  36. package/dist/base/command.js +1 -1
  37. package/dist/base/copyable.js +1 -1
  38. package/dist/base/date-pickers.js +3 -3
  39. package/dist/base/display.js +7 -7
  40. package/dist/base/feedback.js +4 -4
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +2 -2
  43. package/dist/base/inline-edit.js +94 -92
  44. package/dist/base/inline-edit.js.map +1 -1
  45. package/dist/base/item.js +1 -1
  46. package/dist/base/media-gallery.js +1 -1
  47. package/dist/base/navigation.js +6 -6
  48. package/dist/base/popover-menu.js +1 -1
  49. package/dist/base/popover.js +1 -1
  50. package/dist/base/qr-code.js +7 -4
  51. package/dist/base/qr-code.js.map +1 -1
  52. package/dist/base/repeaters.js +53 -53
  53. package/dist/base/repeaters.js.map +1 -1
  54. package/dist/base/sheet.js +1 -1
  55. package/dist/base/sidebar.js +1 -1
  56. package/dist/base/signature-pad.js +84 -82
  57. package/dist/base/signature-pad.js.map +1 -1
  58. package/dist/base/skeleton.js +1 -1
  59. package/dist/base/spinner.js +1 -1
  60. package/dist/base/structure.js +1 -1
  61. package/dist/base/table.js +1 -1
  62. package/dist/base/text-inputs.js +2 -2
  63. package/dist/base/toaster.js +7 -7
  64. package/dist/base/toaster.js.map +1 -1
  65. package/dist/base/tree.js +1 -1
  66. package/dist/base/upload-queue.js +1 -1
  67. package/dist/base/upload.js +3 -3
  68. package/dist/base/value-inputs.js +1 -1
  69. package/dist/blocks/admin.js +228 -219
  70. package/dist/blocks/admin.js.map +1 -1
  71. package/dist/blocks/ai.js +182 -212
  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 +665 -620
  75. package/dist/blocks/analytics.js.map +1 -1
  76. package/dist/blocks/collaboration.js +2 -2
  77. package/dist/blocks/commerce/receipt.js +1 -1
  78. package/dist/blocks/commerce.js +1439 -1553
  79. package/dist/blocks/commerce.js.map +1 -1
  80. package/dist/blocks/data-display.js +1 -1
  81. package/dist/blocks/onboarding.js +6 -6
  82. package/dist/blocks/onboarding.js.map +1 -1
  83. package/dist/blocks/planning.js +88 -97
  84. package/dist/blocks/planning.js.map +1 -1
  85. package/dist/blocks/timelines.js +1 -1
  86. package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BG_FfMK4.js} +10 -9
  87. package/dist/breadcrumbs-BG_FfMK4.js.map +1 -0
  88. package/dist/button-BS3KDg00.js +674 -0
  89. package/dist/button-BS3KDg00.js.map +1 -0
  90. package/dist/{button-BS6l5JUw.js → button-R9CCoH7A.js} +3 -3
  91. package/dist/button-R9CCoH7A.js.map +1 -0
  92. package/dist/buttons-DS0ZIwJ_.js +99 -0
  93. package/dist/buttons-DS0ZIwJ_.js.map +1 -0
  94. package/dist/{cards-Cum56XOF.js → cards-QoJ4syG9.js} +12 -12
  95. package/dist/{cards-Cum56XOF.js.map → cards-QoJ4syG9.js.map} +1 -1
  96. package/dist/chart-DwYRKKc-.js +152 -0
  97. package/dist/chart-DwYRKKc-.js.map +1 -0
  98. package/dist/checkbox-B7ygNTYp.js +35 -0
  99. package/dist/checkbox-B7ygNTYp.js.map +1 -0
  100. package/dist/choice-inputs-DrJ17tpL.js +752 -0
  101. package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
  102. package/dist/{code-block-xHKbAJDj.js → code-block-CD0B7M93.js} +27 -27
  103. package/dist/code-block-CD0B7M93.js.map +1 -0
  104. package/dist/{collapsible-DsnktFNv.js → collapsible-oMUGM4tr.js} +3 -3
  105. package/dist/{collapsible-DsnktFNv.js.map → collapsible-oMUGM4tr.js.map} +1 -1
  106. package/dist/{collection-content-C4fthJV_.js → collection-content-Ys-OZOkY.js} +3 -3
  107. package/dist/{collection-content-C4fthJV_.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
  108. package/dist/combobox-6dvVny2q.js +272 -0
  109. package/dist/combobox-6dvVny2q.js.map +1 -0
  110. package/dist/combobox-CB7039j7.js +865 -0
  111. package/dist/combobox-CB7039j7.js.map +1 -0
  112. package/dist/{command-C0xe7u9B.js → command-kPMPjIxJ.js} +35 -31
  113. package/dist/command-kPMPjIxJ.js.map +1 -0
  114. package/dist/{comments-DviPLnwy.js → comments-You0Bzbr.js} +434 -409
  115. package/dist/comments-You0Bzbr.js.map +1 -0
  116. package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
  117. package/dist/components/base/action-menu/action-menu.d.ts +7 -2
  118. package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
  119. package/dist/components/base/badge/badge.d.ts +1 -1
  120. package/dist/components/base/badge/badge.recipes.d.ts +4 -4
  121. package/dist/components/base/buttons/base-button.d.ts +7 -0
  122. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  123. package/dist/components/base/buttons/button.recipes.d.ts +10 -19
  124. package/dist/components/base/buttons/button.variants.d.ts +1 -0
  125. package/dist/components/base/buttons/loader-button.d.ts +3 -1
  126. package/dist/components/base/buttons/text-button.d.ts +2 -2
  127. package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
  128. package/dist/components/base/cards/card.recipes.d.ts +13 -5
  129. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
  130. package/dist/components/base/cards/smart-card.types.d.ts +1 -1
  131. package/dist/components/base/carousel/carousel.d.ts +3 -1
  132. package/dist/components/base/chart/chart.d.ts +7 -7
  133. package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
  134. package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
  135. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
  136. package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
  137. package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
  138. package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
  139. package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
  140. package/dist/components/base/date-pickers/datepicker.types.d.ts +16 -3
  141. package/dist/components/base/display/alert-dialog.d.ts +8 -2
  142. package/dist/components/base/display/content-block.d.ts +4 -2
  143. package/dist/components/base/display/date-block.d.ts +1 -1
  144. package/dist/components/base/display/dialog.d.ts +12 -5
  145. package/dist/components/base/display/surface-title.d.ts +6 -1
  146. package/dist/components/base/feedback/alert.d.ts +1 -1
  147. package/dist/components/base/feedback/state-display.d.ts +5 -4
  148. package/dist/components/base/forms/form-field.d.ts +1 -0
  149. package/dist/components/base/forms/form-sizing.d.ts +35 -3
  150. package/dist/components/base/forms/workflow.d.ts +2 -0
  151. package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
  152. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
  153. package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
  154. package/dist/components/base/navigation/language-switcher.d.ts +4 -1
  155. package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
  156. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
  157. package/dist/components/base/navigation/tabs.d.ts +3 -5
  158. package/dist/components/base/popover/popover.recipes.d.ts +3 -3
  159. package/dist/components/base/qr-code/qr-code.d.ts +2 -0
  160. package/dist/components/base/sheet/index.d.ts +29 -1
  161. package/dist/components/base/sheet/sheet.d.ts +14 -5
  162. package/dist/components/base/spinner/spinner.d.ts +3 -2
  163. package/dist/components/base/structure/structure.types.d.ts +1 -1
  164. package/dist/components/base/table/index.d.ts +1 -1
  165. package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
  166. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  167. package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
  168. package/dist/components/base/upload/upload.recipes.d.ts +11 -0
  169. package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
  170. package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
  171. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
  172. package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
  173. package/dist/components/blocks/analytics/index.d.ts +1 -1
  174. package/dist/components/blocks/analytics/types.d.ts +1 -1
  175. package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
  176. package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
  177. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  178. package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
  179. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
  180. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
  181. package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
  182. package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
  183. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
  184. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  185. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
  186. package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
  187. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
  188. package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
  189. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
  190. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
  191. package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
  192. package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
  193. package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
  194. package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
  195. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
  196. package/dist/components/features/combobox/components/error-message.d.ts +1 -1
  197. package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
  198. package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
  199. package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
  200. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
  201. package/dist/components/features/media-library/media-library.d.ts +1 -1
  202. package/dist/components/features/media-library/media-library.types.d.ts +9 -1
  203. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  204. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  205. package/dist/components/features/overlays/drawer.d.ts +1 -1
  206. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
  207. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
  208. package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
  209. package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
  210. package/dist/components/features/overlays/overlays.types.d.ts +46 -22
  211. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  212. package/dist/components/features/products/partials/index.d.ts +1 -1
  213. package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
  214. package/dist/components/features/products/partials/product-tone.d.ts +11 -1
  215. package/dist/components/features/products/products.types.d.ts +2 -1
  216. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
  217. package/dist/components/features/table/data-table.d.ts +1 -1
  218. package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
  219. package/dist/components/features/table/table.types.d.ts +1 -1
  220. package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
  221. package/dist/components/layout/auth/auth.types.d.ts +1 -0
  222. package/dist/components/layout/page/index.d.ts +1 -1
  223. package/dist/components/layout/page/page.d.ts +0 -1
  224. package/dist/components/layout/page/page.types.d.ts +62 -6
  225. package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
  226. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  227. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
  228. package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
  229. package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
  230. package/dist/components/primitives/date.d.ts +16 -3
  231. package/dist/components/primitives/dimensions.d.ts +6 -0
  232. package/dist/components/primitives/duration.d.ts +6 -0
  233. package/dist/components/primitives/file-size.d.ts +6 -0
  234. package/dist/components/primitives/index.d.ts +1 -1
  235. package/dist/components/primitives/initials.d.ts +11 -2
  236. package/dist/components/primitives/link.d.ts +7 -0
  237. package/dist/components/primitives/money.d.ts +29 -7
  238. package/dist/components/primitives/number.d.ts +17 -0
  239. package/dist/components/primitives/value-typography.d.ts +54 -0
  240. package/dist/components/primitives/value.d.ts +31 -6
  241. package/dist/components/typography/heading.d.ts +13 -2
  242. package/dist/components/typography/index.d.ts +1 -1
  243. package/dist/components/typography/label.d.ts +3 -0
  244. package/dist/components/typography/running-text.d.ts +12 -0
  245. package/dist/components/typography/text-link.d.ts +23 -1
  246. package/dist/components/typography/text.d.ts +12 -0
  247. package/dist/components/typography/text.styles.d.ts +37 -5
  248. package/dist/components/ui/button.d.ts +1 -1
  249. package/dist/components/ui/checkbox.d.ts +5 -0
  250. package/dist/components/ui/overlay.recipes.d.ts +15 -2
  251. package/dist/components/ui/popover.d.ts +1 -1
  252. package/dist/components/ui/select.d.ts +3 -1
  253. package/dist/components/ui/sidebar.d.ts +1 -1
  254. package/dist/components/ui/switch.d.ts +5 -0
  255. package/dist/components/ui/table.d.ts +2 -1
  256. package/dist/container.recipes-D9t8MHR3.js +27 -0
  257. package/dist/container.recipes-D9t8MHR3.js.map +1 -0
  258. package/dist/{containers-6s-ucRQQ.js → containers-D_L4mTVb.js} +34 -57
  259. package/dist/containers-D_L4mTVb.js.map +1 -0
  260. package/dist/control-group-recipes-DBXmfh2E.js +21 -0
  261. package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
  262. package/dist/{copyable-B7SBXJMr.js → copyable-DDjTeW_j.js} +6 -6
  263. package/dist/{copyable-B7SBXJMr.js.map → copyable-DDjTeW_j.js.map} +1 -1
  264. package/dist/data-display-3xWQUnMA.js +1335 -0
  265. package/dist/data-display-3xWQUnMA.js.map +1 -0
  266. package/dist/date-picker-DrDFj8Lo.js +1527 -0
  267. package/dist/date-picker-DrDFj8Lo.js.map +1 -0
  268. package/dist/date-pickers-CnFCb0n2.js +174 -0
  269. package/dist/date-pickers-CnFCb0n2.js.map +1 -0
  270. package/dist/date-uf3z37Nm.js +144 -0
  271. package/dist/date-uf3z37Nm.js.map +1 -0
  272. package/dist/{display-CFM5myut.js → display-DrdvPwF0.js} +25 -25
  273. package/dist/display-DrdvPwF0.js.map +1 -0
  274. package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-CURh59jb.js} +22 -15
  275. package/dist/dropdown-menu-CURh59jb.js.map +1 -0
  276. package/dist/features/activities.js +177 -163
  277. package/dist/features/activities.js.map +1 -1
  278. package/dist/features/ai-chat.js +187 -183
  279. package/dist/features/ai-chat.js.map +1 -1
  280. package/dist/features/async-preview.js +9 -9
  281. package/dist/features/async-preview.js.map +1 -1
  282. package/dist/features/combobox.js +1 -1
  283. package/dist/features/comments.js +1 -1
  284. package/dist/features/data-view.js +25 -23
  285. package/dist/features/data-view.js.map +1 -1
  286. package/dist/features/email-composer/engine.js +1 -1
  287. package/dist/features/email-composer.js +353 -355
  288. package/dist/features/email-composer.js.map +1 -1
  289. package/dist/features/event-calendar.js +346 -354
  290. package/dist/features/event-calendar.js.map +1 -1
  291. package/dist/features/filters.js +1 -1
  292. package/dist/features/global-search.js +225 -227
  293. package/dist/features/global-search.js.map +1 -1
  294. package/dist/features/kanban.js +29 -29
  295. package/dist/features/kanban.js.map +1 -1
  296. package/dist/features/map.js +59 -58
  297. package/dist/features/map.js.map +1 -1
  298. package/dist/features/media-library.js +898 -900
  299. package/dist/features/media-library.js.map +1 -1
  300. package/dist/features/mentions.js +1 -1
  301. package/dist/features/overlays.js +1 -1
  302. package/dist/features/products.js +1412 -1444
  303. package/dist/features/products.js.map +1 -1
  304. package/dist/features/questionnaire.js +51 -49
  305. package/dist/features/questionnaire.js.map +1 -1
  306. package/dist/features/resource-assignment.js +103 -97
  307. package/dist/features/resource-assignment.js.map +1 -1
  308. package/dist/features/resource.js +13 -13
  309. package/dist/features/resource.js.map +1 -1
  310. package/dist/features/rich-text-editor.js +2 -2
  311. package/dist/features/schema-form.js +187 -183
  312. package/dist/features/schema-form.js.map +1 -1
  313. package/dist/features/suggestions.js +3 -3
  314. package/dist/features/sync.js +7 -7
  315. package/dist/features/sync.js.map +1 -1
  316. package/dist/features/table.js +1 -1
  317. package/dist/features/theme-tweaker.js +508 -503
  318. package/dist/features/theme-tweaker.js.map +1 -1
  319. package/dist/{feedback-DWUkgEjR.js → feedback-C7nR0UtT.js} +30 -31
  320. package/dist/feedback-C7nR0UtT.js.map +1 -0
  321. package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
  322. package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
  323. package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-C-MFBX_8.js} +5 -5
  324. package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
  325. package/dist/{filters-BhsUtsxW.js → filters-Da-gNPsE.js} +760 -765
  326. package/dist/filters-Da-gNPsE.js.map +1 -0
  327. package/dist/{form-field-Bn7ZH1rA.js → form-field-VZRULhUK.js} +20 -12
  328. package/dist/form-field-VZRULhUK.js.map +1 -0
  329. package/dist/form-sizing-uWP4lzVh.js +126 -0
  330. package/dist/form-sizing-uWP4lzVh.js.map +1 -0
  331. package/dist/{forms-B7pzS25o.js → forms-DDeEnXSY.js} +38 -38
  332. package/dist/forms-DDeEnXSY.js.map +1 -0
  333. package/dist/forms-numeric-D3CO60IF.js +905 -0
  334. package/dist/forms-numeric-D3CO60IF.js.map +1 -0
  335. package/dist/{header-C59QZyxV.js → header-2ycNqGOR.js} +42 -37
  336. package/dist/header-2ycNqGOR.js.map +1 -0
  337. package/dist/{hooks-CM1Vp9Pe.js → hooks-DQ5SPwZw.js} +2 -2
  338. package/dist/{hooks-CM1Vp9Pe.js.map → hooks-DQ5SPwZw.js.map} +1 -1
  339. package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
  340. package/dist/http-CdEIHyQf.js.map +1 -0
  341. package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-DKlaKXoo.js} +4 -4
  342. package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
  343. package/dist/index.js +2 -2
  344. package/dist/input-BoLm9Hks.js +20 -0
  345. package/dist/input-BoLm9Hks.js.map +1 -0
  346. package/dist/input-DhQdBnV3.js +255 -0
  347. package/dist/input-DhQdBnV3.js.map +1 -0
  348. package/dist/item-xzh8Df65.js +264 -0
  349. package/dist/item-xzh8Df65.js.map +1 -0
  350. package/dist/layout/app-shell.js +1 -1
  351. package/dist/layout/auth.js +1 -1
  352. package/dist/layout/containers.js +1 -1
  353. package/dist/layout/header.js +1 -1
  354. package/dist/layout/hooks.js +1 -1
  355. package/dist/layout/navigation.js +1 -1
  356. package/dist/layout/page.js +1 -1
  357. package/dist/layout/settings.js +1 -1
  358. package/dist/layout/sidebar.js +2 -2
  359. package/dist/layout/workspace.js +1 -1
  360. package/dist/layout.js +10 -10
  361. package/dist/lib/affordance-geometry.generated.d.ts +46 -10
  362. package/dist/lib/control-group-recipes.d.ts +22 -0
  363. package/dist/lib/field-affordance-recipes.d.ts +70 -2
  364. package/dist/lib/field-state-recipes.d.ts +6 -4
  365. package/dist/lib/format.d.ts +9 -0
  366. package/dist/lib/money-format.d.ts +30 -0
  367. package/dist/lib/navigation-row-recipes.d.ts +3 -2
  368. package/dist/lib/overlay-anatomy-recipes.d.ts +2 -2
  369. package/dist/lib/surface-recipes.d.ts +13 -8
  370. package/dist/lib/token-merge.generated.d.ts +144 -2
  371. package/dist/lib/track-recipes.d.ts +1 -1
  372. package/dist/lib/ui-provider/provider.d.ts +7 -2
  373. package/dist/lib/ui-provider/store.d.ts +6 -2
  374. package/dist/lib/ui-provider/types.d.ts +9 -4
  375. package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
  376. package/dist/lib/utils.js +1 -1
  377. package/dist/media-gallery-DQUQ0m3O.js +201 -0
  378. package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
  379. package/dist/{mentions-B8Ko-fhS.js → mentions-DwnO1hh4.js} +40 -39
  380. package/dist/{mentions-B8Ko-fhS.js.map → mentions-DwnO1hh4.js.map} +1 -1
  381. package/dist/message-YfFmbXNP.js +127 -0
  382. package/dist/message-YfFmbXNP.js.map +1 -0
  383. package/dist/{navigation-BUIn2Qxx.js → navigation-Cbp5V8gG.js} +27 -28
  384. package/dist/navigation-Cbp5V8gG.js.map +1 -0
  385. package/dist/navigation-Cs1npsPm.js +300 -0
  386. package/dist/navigation-Cs1npsPm.js.map +1 -0
  387. package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DlU-4QYO.js} +3 -3
  388. package/dist/navigation-row-recipes-DlU-4QYO.js.map +1 -0
  389. package/dist/number-CKRBYmZK.js +352 -0
  390. package/dist/number-CKRBYmZK.js.map +1 -0
  391. package/dist/overlay.recipes-CNO2S9V6.js +34 -0
  392. package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
  393. package/dist/overlays-DhZO7N-I.js +994 -0
  394. package/dist/overlays-DhZO7N-I.js.map +1 -0
  395. package/dist/page-C6R_8jFt.js +325 -0
  396. package/dist/page-C6R_8jFt.js.map +1 -0
  397. package/dist/{page-header-DQRa0jug.js → page-header-hUTzcRZX.js} +12 -12
  398. package/dist/page-header-hUTzcRZX.js.map +1 -0
  399. package/dist/{pagination-C29vvt3I.js → pagination-Cm0jqa3I.js} +21 -21
  400. package/dist/pagination-Cm0jqa3I.js.map +1 -0
  401. package/dist/{popover-CoLDEg19.js → popover-Dcv_9jxr.js} +23 -22
  402. package/dist/popover-Dcv_9jxr.js.map +1 -0
  403. package/dist/{popover-menu-GLIQTJTx.js → popover-menu-DnRFKnHP.js} +6 -6
  404. package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
  405. package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-wmbvL8Ah.js} +5 -5
  406. package/dist/popover.recipes-wmbvL8Ah.js.map +1 -0
  407. package/dist/primitives-BHrwQXFC.js +379 -0
  408. package/dist/primitives-BHrwQXFC.js.map +1 -0
  409. package/dist/primitives.js +5 -5
  410. package/dist/{progress-BOe8l_FZ.js → progress-Br9WTFya.js} +12 -11
  411. package/dist/progress-Br9WTFya.js.map +1 -0
  412. package/dist/{receipt-BM8xsGFy.js → receipt-CV89q1fs.js} +8 -8
  413. package/dist/{receipt-BM8xsGFy.js.map → receipt-CV89q1fs.js.map} +1 -1
  414. package/dist/rich-text-editor-CF8QYt5p.js +574 -0
  415. package/dist/rich-text-editor-CF8QYt5p.js.map +1 -0
  416. package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-CnrbmTS1.js} +35 -26
  417. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +1 -0
  418. package/dist/{rich-text-B7sBAdDG.js → rich-text-j-FGAeZW.js} +4 -4
  419. package/dist/{rich-text-B7sBAdDG.js.map → rich-text-j-FGAeZW.js.map} +1 -1
  420. package/dist/{scroll-area-BheMQ270.js → scroll-area-DRdr16Pt.js} +3 -3
  421. package/dist/scroll-area-DRdr16Pt.js.map +1 -0
  422. package/dist/{separator-DO0EbCEm.js → separator-BMEvwnSX.js} +2 -2
  423. package/dist/{separator-DO0EbCEm.js.map → separator-BMEvwnSX.js.map} +1 -1
  424. package/dist/{separator-Gk_WXH-l.js → separator-Do5GWDYi.js} +4 -4
  425. package/dist/separator-Do5GWDYi.js.map +1 -0
  426. package/dist/services/actions/action-adapters.d.ts +4 -0
  427. package/dist/services/actions.js +8 -3
  428. package/dist/services/actions.js.map +1 -1
  429. package/dist/{settings-BnCyyPOJ.js → settings-DHk0L2MF.js} +20 -19
  430. package/dist/settings-DHk0L2MF.js.map +1 -0
  431. package/dist/sheet-DRFNY1_D.js +207 -0
  432. package/dist/sheet-DRFNY1_D.js.map +1 -0
  433. package/dist/sidebar-Cb8WzOvE.js +511 -0
  434. package/dist/sidebar-Cb8WzOvE.js.map +1 -0
  435. package/dist/{sidebar-DPR7fmqN.js → sidebar-Crc9M9JV.js} +220 -201
  436. package/dist/sidebar-Crc9M9JV.js.map +1 -0
  437. package/dist/{skeleton-CmT1ppqb.js → skeleton-DVMXr15h.js} +5 -5
  438. package/dist/{skeleton-CmT1ppqb.js.map → skeleton-DVMXr15h.js.map} +1 -1
  439. package/dist/smart-card-Bek-TwUp.js +599 -0
  440. package/dist/smart-card-Bek-TwUp.js.map +1 -0
  441. package/dist/{spinner-BY9HbUEh.js → spinner-CmTAbEp0.js} +8 -6
  442. package/dist/spinner-CmTAbEp0.js.map +1 -0
  443. package/dist/{structure-MvKVq-oL.js → structure-hzCW-XsV.js} +3 -3
  444. package/dist/{structure-MvKVq-oL.js.map → structure-hzCW-XsV.js.map} +1 -1
  445. package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
  446. package/dist/structure.recipes-EPz60cU8.js.map +1 -0
  447. package/dist/style.css +1 -1
  448. package/dist/surface-recipes-DOdoBXGm.js +28 -0
  449. package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
  450. package/dist/table-D6zKeYQX.js +162 -0
  451. package/dist/table-D6zKeYQX.js.map +1 -0
  452. package/dist/table-Dn4XSrSB.js +1444 -0
  453. package/dist/table-Dn4XSrSB.js.map +1 -0
  454. package/dist/tabs-Dk8E_knt.js +189 -0
  455. package/dist/tabs-Dk8E_knt.js.map +1 -0
  456. package/dist/text-inputs-BFpku0Qd.js +331 -0
  457. package/dist/text-inputs-BFpku0Qd.js.map +1 -0
  458. package/dist/{text.styles-BwB7vAF2.js → text.styles-g4He6UIW.js} +26 -15
  459. package/dist/text.styles-g4He6UIW.js.map +1 -0
  460. package/dist/theme.css +90 -124
  461. package/dist/themes/green.css +24 -0
  462. package/dist/{timelines-B9ICkQcV.js → timelines-CxuAFIc2.js} +97 -104
  463. package/dist/timelines-CxuAFIc2.js.map +1 -0
  464. package/dist/track-recipes-CDcKmndW.js +10 -0
  465. package/dist/track-recipes-CDcKmndW.js.map +1 -0
  466. package/dist/{tree-BdWSaoFT.js → tree-BotPlyiD.js} +13 -13
  467. package/dist/{tree-BdWSaoFT.js.map → tree-BotPlyiD.js.map} +1 -1
  468. package/dist/typography/rich-text.js +1 -1
  469. package/dist/typography-CAr3dQhX.js +116 -0
  470. package/dist/typography-CAr3dQhX.js.map +1 -0
  471. package/dist/typography.js +2 -2
  472. package/dist/{ui-provider-CftIB6TY.js → ui-provider-D2_TeLqw.js} +22 -22
  473. package/dist/ui-provider-D2_TeLqw.js.map +1 -0
  474. package/dist/ui-provider.js +1 -1
  475. package/dist/{upload-D8Za5x_c.js → upload-B0WHW7ak.js} +278 -274
  476. package/dist/upload-B0WHW7ak.js.map +1 -0
  477. package/dist/{upload-queue-hIIYBLS7.js → upload-queue-BHZ_wBfd.js} +72 -75
  478. package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
  479. package/dist/{usage-card-DnmnJ58D.js → usage-card-U0YBLTNT.js} +31 -33
  480. package/dist/usage-card-U0YBLTNT.js.map +1 -0
  481. package/dist/utils-Cospvlj1.js +4445 -0
  482. package/dist/utils-Cospvlj1.js.map +1 -0
  483. package/dist/value-inputs-CjfzGMsN.js +854 -0
  484. package/dist/value-inputs-CjfzGMsN.js.map +1 -0
  485. package/dist/value-typography-Deb3yQZg.js +116 -0
  486. package/dist/value-typography-Deb3yQZg.js.map +1 -0
  487. package/dist/{workspace-C1PZmk8L.js → workspace-YoFjXi6i.js} +97 -105
  488. package/dist/workspace-YoFjXi6i.js.map +1 -0
  489. package/docs/consumer-skill/SKILL.md +123 -119
  490. package/docs/consumer-skill/examples/analytics.tsx +34 -0
  491. package/docs/consumer-skill/examples/app-layout.tsx +42 -14
  492. package/docs/consumer-skill/examples/detail.tsx +20 -5
  493. package/docs/consumer-skill/examples/edit.tsx +1 -1
  494. package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
  495. package/docs/consumer-skill/examples/manifest.json +37 -3
  496. package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
  497. package/docs/consumer-skill/examples/website.tsx +56 -0
  498. package/docs/consumer-skill/references/analytics.md +70 -0
  499. package/docs/consumer-skill/references/composition.md +195 -9
  500. package/docs/consumer-skill/references/design-contract.md +33 -7
  501. package/docs/consumer-skill/references/discovery.md +80 -5
  502. package/docs/consumer-skill/references/installation.md +22 -0
  503. package/docs/consumer-skill/references/integration.md +46 -1
  504. package/docs/consumer-skill/references/public-api.json +2083 -237
  505. package/docs/consumer-skill/references/review.md +74 -6
  506. package/docs/consumer-skill/references/theming.md +59 -8
  507. package/docs/consumer-skill/references/tokens.json +180 -9
  508. package/docs/consumer-skill/references/workflows.md +34 -0
  509. package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
  510. package/docs/consumer-skill/scripts/composition-policy.mjs +271 -18
  511. package/docs/consumer-skill/scripts/discovery.mjs +69 -9
  512. package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
  513. package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
  514. package/package.json +11 -6
  515. package/dist/accordion-B-5Focs8.js.map +0 -1
  516. package/dist/action-menu-Cx3SdfbN.js +0 -265
  517. package/dist/action-menu-Cx3SdfbN.js.map +0 -1
  518. package/dist/affordance-geometry.generated-D8Jcfb0G.js +0 -32
  519. package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +0 -1
  520. package/dist/ai-artifact-B5tPpXnS.js.map +0 -1
  521. package/dist/app-shell-at8Kt4l_.js.map +0 -1
  522. package/dist/attachment-BO2R47wn.js.map +0 -1
  523. package/dist/auth-OFwWSAap.js +0 -704
  524. package/dist/auth-OFwWSAap.js.map +0 -1
  525. package/dist/avatar-Bpzty83c.js.map +0 -1
  526. package/dist/badge-BZXZT9wd.js.map +0 -1
  527. package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
  528. package/dist/button-BS6l5JUw.js.map +0 -1
  529. package/dist/buttons-Co6GavvM.js +0 -674
  530. package/dist/buttons-Co6GavvM.js.map +0 -1
  531. package/dist/chart-DVfcwQu6.js +0 -149
  532. package/dist/chart-DVfcwQu6.js.map +0 -1
  533. package/dist/checkbox-BavDRjF7.js +0 -34
  534. package/dist/checkbox-BavDRjF7.js.map +0 -1
  535. package/dist/choice-inputs-CC7XqPQO.js +0 -619
  536. package/dist/choice-inputs-CC7XqPQO.js.map +0 -1
  537. package/dist/code-block-xHKbAJDj.js.map +0 -1
  538. package/dist/combobox-DEbdr-3u.js +0 -273
  539. package/dist/combobox-DEbdr-3u.js.map +0 -1
  540. package/dist/combobox-xv3yJbzl.js +0 -850
  541. package/dist/combobox-xv3yJbzl.js.map +0 -1
  542. package/dist/command-C0xe7u9B.js.map +0 -1
  543. package/dist/comments-DviPLnwy.js.map +0 -1
  544. package/dist/containers-6s-ucRQQ.js.map +0 -1
  545. package/dist/data-display-cWIRdeaf.js +0 -1129
  546. package/dist/data-display-cWIRdeaf.js.map +0 -1
  547. package/dist/date-BFNMnrS5.js +0 -140
  548. package/dist/date-BFNMnrS5.js.map +0 -1
  549. package/dist/date-picker-CA6ogMQB.js +0 -1521
  550. package/dist/date-picker-CA6ogMQB.js.map +0 -1
  551. package/dist/date-pickers-BPIKLdsD.js +0 -224
  552. package/dist/date-pickers-BPIKLdsD.js.map +0 -1
  553. package/dist/display-CFM5myut.js.map +0 -1
  554. package/dist/dropdown-menu-BlnyHr-9.js.map +0 -1
  555. package/dist/feedback-DWUkgEjR.js.map +0 -1
  556. package/dist/field-affordance-recipes-IjzPrCTw.js +0 -17
  557. package/dist/field-affordance-recipes-IjzPrCTw.js.map +0 -1
  558. package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
  559. package/dist/filters-BhsUtsxW.js.map +0 -1
  560. package/dist/form-field-Bn7ZH1rA.js.map +0 -1
  561. package/dist/form-sizing-BWs70_a2.js +0 -100
  562. package/dist/form-sizing-BWs70_a2.js.map +0 -1
  563. package/dist/format-iamDSqs2.js +0 -110
  564. package/dist/format-iamDSqs2.js.map +0 -1
  565. package/dist/forms-B7pzS25o.js.map +0 -1
  566. package/dist/forms-numeric-BUBxELBv.js +0 -867
  567. package/dist/forms-numeric-BUBxELBv.js.map +0 -1
  568. package/dist/header-C59QZyxV.js.map +0 -1
  569. package/dist/http-CLTVJc5I.js.map +0 -1
  570. package/dist/input-WwYQZJzG.js +0 -202
  571. package/dist/input-WwYQZJzG.js.map +0 -1
  572. package/dist/input-ci9fIgFH.js +0 -20
  573. package/dist/input-ci9fIgFH.js.map +0 -1
  574. package/dist/item-pJ0GsOiJ.js +0 -257
  575. package/dist/item-pJ0GsOiJ.js.map +0 -1
  576. package/dist/media-gallery-DhDRgnVZ.js +0 -200
  577. package/dist/media-gallery-DhDRgnVZ.js.map +0 -1
  578. package/dist/message-COsdEvXT.js +0 -108
  579. package/dist/message-COsdEvXT.js.map +0 -1
  580. package/dist/navigation-BUIn2Qxx.js.map +0 -1
  581. package/dist/navigation-DBEu4POU.js +0 -267
  582. package/dist/navigation-DBEu4POU.js.map +0 -1
  583. package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
  584. package/dist/number-BNT_BIzJ.js +0 -269
  585. package/dist/number-BNT_BIzJ.js.map +0 -1
  586. package/dist/overlay.recipes-BxW5FIfK.js +0 -6
  587. package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
  588. package/dist/overlays-B11wZka6.js +0 -982
  589. package/dist/overlays-B11wZka6.js.map +0 -1
  590. package/dist/page-BV6ioQg3.js +0 -202
  591. package/dist/page-BV6ioQg3.js.map +0 -1
  592. package/dist/page-header-DQRa0jug.js.map +0 -1
  593. package/dist/pagination-C29vvt3I.js.map +0 -1
  594. package/dist/popover-CoLDEg19.js.map +0 -1
  595. package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
  596. package/dist/primitives-DKPOGVpj.js +0 -330
  597. package/dist/primitives-DKPOGVpj.js.map +0 -1
  598. package/dist/progress-BOe8l_FZ.js.map +0 -1
  599. package/dist/rich-text-editor-CoVrTiSv.js +0 -575
  600. package/dist/rich-text-editor-CoVrTiSv.js.map +0 -1
  601. package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
  602. package/dist/scroll-area-BheMQ270.js.map +0 -1
  603. package/dist/select-B2mb-qN2.js +0 -108
  604. package/dist/select-B2mb-qN2.js.map +0 -1
  605. package/dist/separator-Gk_WXH-l.js.map +0 -1
  606. package/dist/settings-BnCyyPOJ.js.map +0 -1
  607. package/dist/sheet-B-q914Ad.js +0 -205
  608. package/dist/sheet-B-q914Ad.js.map +0 -1
  609. package/dist/sidebar-C_2p3Tfj.js +0 -501
  610. package/dist/sidebar-C_2p3Tfj.js.map +0 -1
  611. package/dist/sidebar-DPR7fmqN.js.map +0 -1
  612. package/dist/smart-card-CYLn46e6.js +0 -578
  613. package/dist/smart-card-CYLn46e6.js.map +0 -1
  614. package/dist/spinner-BY9HbUEh.js.map +0 -1
  615. package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
  616. package/dist/surface-recipes-CQfRr-VL.js +0 -27
  617. package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
  618. package/dist/table-BS39xnlq.js +0 -1424
  619. package/dist/table-BS39xnlq.js.map +0 -1
  620. package/dist/table-DnlAJ-xR.js +0 -146
  621. package/dist/table-DnlAJ-xR.js.map +0 -1
  622. package/dist/tabs-B5cNMWiP.js +0 -187
  623. package/dist/tabs-B5cNMWiP.js.map +0 -1
  624. package/dist/text-inputs-Dh9XGyiS.js +0 -331
  625. package/dist/text-inputs-Dh9XGyiS.js.map +0 -1
  626. package/dist/text.styles-BwB7vAF2.js.map +0 -1
  627. package/dist/timelines-B9ICkQcV.js.map +0 -1
  628. package/dist/track-recipes-LLPNVwFg.js +0 -10
  629. package/dist/track-recipes-LLPNVwFg.js.map +0 -1
  630. package/dist/typography-Cv8MT-82.js +0 -96
  631. package/dist/typography-Cv8MT-82.js.map +0 -1
  632. package/dist/ui-provider-CftIB6TY.js.map +0 -1
  633. package/dist/upload-D8Za5x_c.js.map +0 -1
  634. package/dist/upload-queue-hIIYBLS7.js.map +0 -1
  635. package/dist/usage-card-DnmnJ58D.js.map +0 -1
  636. package/dist/utils-C2EKeIw3.js +0 -72
  637. package/dist/utils-C2EKeIw3.js.map +0 -1
  638. package/dist/value-inputs-DX2dbxjj.js +0 -824
  639. package/dist/value-inputs-DX2dbxjj.js.map +0 -1
  640. package/dist/workspace-C1PZmk8L.js.map +0 -1
@@ -1,48 +1,48 @@
1
1
  "use client";
2
- import { h as e, m as t } from "../ui-provider-CftIB6TY.js";
2
+ import { h as e, m as t } from "../ui-provider-D2_TeLqw.js";
3
3
  import { COMPONENT_SCALES as n, SEMANTIC_TONES as r } from "../component-vocabulary.js";
4
4
  import { t as i } from "../theme-scope-kStaAer0.js";
5
5
  import { interpolateString as a, useStrings as o } from "../lib/strings.js";
6
- import { t as s } from "../utils-C2EKeIw3.js";
7
- import { n as c } from "../buttons-Co6GavvM.js";
8
- import { a as l, i as u } from "../typography-Cv8MT-82.js";
9
- import { r as d, t as f } from "../structure-MvKVq-oL.js";
10
- import { _ as p, f as m, g as h, h as g, m as ee, t as te } from "../smart-card-CYLn46e6.js";
11
- import { i as ne, l as re, r as ie } from "../overlays-B11wZka6.js";
12
- import { m as ae } from "../primitives-DKPOGVpj.js";
13
- import { t as oe } from "../accordion-B-5Focs8.js";
14
- import { t as _ } from "../badge-BZXZT9wd.js";
15
- import { t as v } from "../input-WwYQZJzG.js";
16
- import { d as se } from "../text-inputs-Dh9XGyiS.js";
17
- import { t as y } from "../form-field-Bn7ZH1rA.js";
18
- import { a as b, c as x } from "../choice-inputs-CC7XqPQO.js";
19
- import { i as ce, n as S } from "../value-inputs-DX2dbxjj.js";
20
- import { d as le } from "../forms-numeric-BUBxELBv.js";
21
- import { t as ue } from "../item-pJ0GsOiJ.js";
22
- import { i as de, r as fe, t as pe } from "../tabs-B5cNMWiP.js";
23
- import { forwardRef as C, useEffect as me, useId as he, useImperativeHandle as ge, useMemo as w, useRef as _e, useState as T } from "react";
24
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
25
- import { CheckCircle2 as ve, Copy as O, Download as ye, Info as be, LayoutGrid as xe, Moon as Se, Palette as k, RotateCcw as Ce, Search as we, Settings2 as Te, Shapes as Ee, ShieldCheck as A, Sun as De, Type as Oe } from "lucide-react";
6
+ import { t as s } from "../utils-Cospvlj1.js";
7
+ import { o as c, s as l } from "../typography-CAr3dQhX.js";
8
+ import { t as u } from "../button-BS3KDg00.js";
9
+ import { r as d, t as f } from "../structure-hzCW-XsV.js";
10
+ import { _ as p, g as m, h as ee, p as te, t as ne, v as re } from "../smart-card-Bek-TwUp.js";
11
+ import { i as ie, r as ae } from "../overlays-DhZO7N-I.js";
12
+ import { m as h } from "../primitives-BHrwQXFC.js";
13
+ import { t as oe } from "../accordion-CQXVcd7Q.js";
14
+ import { t as g } from "../badge-0tATj-tW.js";
15
+ import { t as _ } from "../input-DhQdBnV3.js";
16
+ import { t as v } from "../form-field-VZRULhUK.js";
17
+ import { d as se } from "../text-inputs-BFpku0Qd.js";
18
+ import { a as y, c as b } from "../choice-inputs-DrJ17tpL.js";
19
+ import { i as ce, n as le } from "../value-inputs-CjfzGMsN.js";
20
+ import { d as ue } from "../forms-numeric-D3CO60IF.js";
21
+ import { t as de } from "../item-xzh8Df65.js";
22
+ import { i as fe, r as pe, t as me } from "../tabs-Dk8E_knt.js";
23
+ import { forwardRef as x, useEffect as he, useId as S, useImperativeHandle as ge, useMemo as C, useRef as _e, useState as w } from "react";
24
+ import { jsx as T, jsxs as E } from "react/jsx-runtime";
25
+ import { CheckCircle2 as ve, Copy as D, Download as ye, Info as be, LayoutGrid as xe, Moon as Se, Palette as Ce, RotateCcw as we, Search as Te, Settings2 as Ee, Shapes as O, ShieldCheck as De, Sun as Oe, Type as ke } from "lucide-react";
26
26
  //#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
27
- var ke = {
27
+ var k = {
28
28
  shared: ":root",
29
29
  light: ":root,\n.light",
30
30
  dark: ".dark"
31
- }, j = /^--[a-z][a-z0-9-]*$/i, Ae = /[;{}]/, je = /[;{}]/;
32
- function M(e = {}) {
31
+ }, Ae = /^--[a-z][a-z0-9-]*$/i, je = /[;{}]/, A = /[;{}]/;
32
+ function j(e = {}) {
33
33
  return {
34
34
  mode: e.mode ?? "light",
35
- shared: { ...e.shared ?? {} },
36
- light: { ...e.light ?? {} },
37
- dark: { ...e.dark ?? {} }
35
+ shared: { ...e.shared },
36
+ light: { ...e.light },
37
+ dark: { ...e.dark }
38
38
  };
39
39
  }
40
- function N(e) {
41
- return j.test(e);
40
+ function M(e) {
41
+ return Ae.test(e);
42
42
  }
43
- function P(e, t = !0) {
43
+ function N(e, t = !0) {
44
44
  return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
45
- if (!N(e)) {
45
+ if (!M(e)) {
46
46
  if (!t) return [];
47
47
  throw TypeError(`Invalid CSS variable name: ${e}`);
48
48
  }
@@ -50,59 +50,59 @@ function P(e, t = !0) {
50
50
  let t = e.charCodeAt(0);
51
51
  return t < 32 || t === 127;
52
52
  });
53
- if (Ae.test(r) || i) {
53
+ if (je.test(r) || i) {
54
54
  if (!t) return [];
55
55
  throw TypeError(`Unsafe CSS value for ${e}.`);
56
56
  }
57
57
  return [[e, r]];
58
58
  }).sort(([e], [t]) => e.localeCompare(t));
59
59
  }
60
- function F(e, t) {
60
+ function P(e, t) {
61
61
  let n = e.trim();
62
- if (n.length === 0 || je.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
62
+ if (n.length === 0 || A.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
63
63
  return n;
64
64
  }
65
- function I(e, t) {
66
- let n = P(t);
65
+ function F(e, t) {
66
+ let n = N(t);
67
67
  return n.length === 0 ? null : [
68
68
  `${e} {`,
69
69
  ...n.map(([e, t]) => `\t${e}: ${t};`),
70
70
  "}"
71
71
  ].join("\n");
72
72
  }
73
- function L(e, t = {}) {
74
- let n = t.selectors ?? ke, r = [
75
- I(F(n.shared, "shared"), e.shared),
76
- I(F(n.light, "light"), e.light),
77
- I(F(n.dark, "dark"), e.dark)
73
+ function I(e, t = {}) {
74
+ let n = t.selectors ?? k, r = [
75
+ F(P(n.shared, "shared"), e.shared),
76
+ F(P(n.light, "light"), e.light),
77
+ F(P(n.dark, "dark"), e.dark)
78
78
  ].filter((e) => e !== null), i = t.banner === !1 ? null : `/* ${t.banner ?? "themelia-react-ui theme overrides"} */`;
79
79
  return `${[...i ? [i] : [], ...r.length > 0 ? r : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
80
80
  }
81
- function R(t = {}) {
81
+ function L(t = {}) {
82
82
  let n = e(t), { locale: r, formatRelativeTime: i, ...a } = n.dates;
83
83
  return {
84
84
  ...n,
85
85
  dates: a
86
86
  };
87
87
  }
88
- function z(e = {}) {
89
- let t = R(e);
88
+ function Me(e = {}) {
89
+ let t = L(e);
90
90
  return `import type { UIConfig } from 'themelia-react-ui/ui-provider';\n\nexport const adminUIConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig;\n`;
91
91
  }
92
- function Me(e, t = e.mode) {
92
+ function R(e, t = e.mode) {
93
93
  return {
94
94
  ...e.shared,
95
95
  ...e[t]
96
96
  };
97
97
  }
98
- function B(e, t = e.mode) {
99
- return Object.fromEntries(P(Me(e, t), !1));
98
+ function z(e, t = e.mode) {
99
+ return Object.fromEntries(N(R(e, t), !1));
100
100
  }
101
101
  function Ne(e) {
102
- return P(e.shared, !1).length + P(e.light, !1).length + P(e.dark, !1).length;
102
+ return N(e.shared, !1).length + N(e.light, !1).length + N(e.dark, !1).length;
103
103
  }
104
104
  function Pe(e) {
105
- let t = F(e, "shared");
105
+ let t = P(e, "shared");
106
106
  return {
107
107
  shared: t,
108
108
  light: `${t},\n${t}.light,\n.light ${t}`,
@@ -110,20 +110,20 @@ function Pe(e) {
110
110
  };
111
111
  }
112
112
  function Fe(e, t = "admin-ui-theme.css", n = {}, r = {}) {
113
- let i = M(r.resolvedTheme ?? e), a = R(r.providerConfig);
113
+ let i = j(r.resolvedTheme ?? e), a = L(r.providerConfig);
114
114
  return {
115
115
  fileName: t,
116
- cssText: L(i, {
116
+ cssText: I(i, {
117
117
  ...n,
118
118
  banner: n.banner ?? "themelia-react-ui complete theme"
119
119
  }),
120
- overrideCssText: L(e, n),
121
- theme: M(e),
120
+ overrideCssText: I(e, n),
121
+ theme: j(e),
122
122
  resolvedTheme: i,
123
123
  overrideCount: Ne(e),
124
124
  providerFileName: r.providerFileName ?? "admin-ui.config.ts",
125
125
  providerConfig: a,
126
- providerConfigText: z(a)
126
+ providerConfigText: Me(a)
127
127
  };
128
128
  }
129
129
  function Ie(e) {
@@ -140,31 +140,31 @@ function Le({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" })
140
140
  }
141
141
  //#endregion
142
142
  //#region src/components/features/theme-tweaker/theme-scope.tsx
143
- var V = C(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
144
- return /* @__PURE__ */ E(i, {
143
+ var B = x(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
144
+ return /* @__PURE__ */ T(i, {
145
145
  ...o,
146
146
  ref: c,
147
147
  "data-theme-mode": t,
148
148
  className: s("theme-scope--component", t, n),
149
149
  style: {
150
- ...B(e, t),
150
+ ...z(e, t),
151
151
  ...r
152
152
  },
153
153
  children: a
154
154
  });
155
155
  });
156
- V.displayName = "ThemeScope";
156
+ B.displayName = "ThemeScope";
157
157
  //#endregion
158
158
  //#region src/components/features/theme-tweaker/use-applied-theme.ts
159
159
  function Re(e, t) {
160
160
  return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
161
161
  }
162
162
  function ze({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
163
- me(() => {
163
+ he(() => {
164
164
  if (!e || r === "self") return;
165
165
  let a = Re(r, n);
166
166
  if (!a) return;
167
- let o = B(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
167
+ let o = z(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
168
168
  for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
169
169
  value: a.style.getPropertyValue(e),
170
170
  priority: a.style.getPropertyPriority(e)
@@ -188,35 +188,35 @@ function ze({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
188
188
  }
189
189
  //#endregion
190
190
  //#region src/components/features/theme-tweaker/admin-ui-theme-provider.tsx
191
- var Be = C(function({ config: n, theme: r, mode: i = r.mode, target: a = "document", manageModeClass: o = !0, className: c, children: l, ...u }, d) {
192
- let f = _e(null);
193
- ge(d, () => f.current);
194
- let p = w(() => M({
195
- ...r,
196
- mode: i
197
- }), [i, r]), m = w(() => e(n), [n]);
191
+ var Be = x(function({ config: e, theme: n, mode: r = n.mode, target: i = "document", manageModeClass: a = !0, className: o, children: c, ...l }, u) {
192
+ let d = _e(null);
193
+ ge(u, () => d.current);
194
+ let f = C(() => j({
195
+ ...n,
196
+ mode: r
197
+ }), [r, n]);
198
198
  return ze({
199
- apply: a === "document",
200
- manageModeClass: o,
201
- selfRef: f,
202
- target: a,
203
- theme: p
204
- }), /* @__PURE__ */ E(t, {
205
- config: m,
206
- children: /* @__PURE__ */ E(V, {
207
- ...u,
208
- ref: f,
209
- theme: p,
210
- mode: i,
211
- className: s("admin-ui-theme-provider--component bg-background text-foreground", c),
212
- children: l
199
+ apply: i === "document",
200
+ manageModeClass: a,
201
+ selfRef: d,
202
+ target: i,
203
+ theme: f
204
+ }), /* @__PURE__ */ T(t, {
205
+ config: e,
206
+ children: /* @__PURE__ */ T(B, {
207
+ ...l,
208
+ ref: d,
209
+ theme: f,
210
+ mode: r,
211
+ className: s("admin-ui-theme-provider--component bg-background text-foreground", o),
212
+ children: c
213
213
  })
214
214
  });
215
215
  });
216
216
  Be.displayName = "AdminUIThemeProvider";
217
217
  //#endregion
218
218
  //#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
219
- var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--popover.--popover-foreground.--primary.--primary-foreground.--secondary.--secondary-foreground.--muted.--muted-foreground.--accent.--accent-foreground.--destructive.--destructive-foreground.--border.--input.--ring.--chart-1.--chart-2.--chart-3.--chart-4.--chart-5.--sidebar.--sidebar-foreground.--sidebar-primary.--sidebar-primary-foreground.--sidebar-accent.--sidebar-accent-foreground.--sidebar-border.--sidebar-ring".split("."), Ve = [
219
+ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--popover.--popover-foreground.--primary.--primary-foreground.--secondary.--secondary-foreground.--muted.--muted-foreground.--accent.--accent-foreground.--destructive.--destructive-foreground.--border.--input.--ring.--chart-1.--chart-2.--chart-3.--chart-4.--chart-5.--sidebar.--sidebar-foreground.--sidebar-primary.--sidebar-primary-foreground.--sidebar-accent.--sidebar-accent-foreground.--sidebar-border.--sidebar-ring".split("."), Ve = [
220
220
  "--success",
221
221
  "--success-foreground",
222
222
  "--info",
@@ -235,7 +235,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
235
235
  "--inverse-surface-strong",
236
236
  "--inverse-border",
237
237
  "--inverse-decoration"
238
- ], He = ["--overlay-backdrop"], Ue = [
238
+ ], He = ["--overlay-backdrop"], H = [
239
239
  "--font-heading",
240
240
  "--font-sans",
241
241
  "--font-serif",
@@ -256,7 +256,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
256
256
  "7xl",
257
257
  "8xl",
258
258
  "9xl"
259
- ].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), We = [
259
+ ].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), Ue = [
260
260
  "--shadow-2xs",
261
261
  "--shadow-xs",
262
262
  "--shadow-sm",
@@ -279,7 +279,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
279
279
  "--avatar",
280
280
  "--shell-header-height",
281
281
  "--shell-sidebar-width"
282
- ], Ge = [
282
+ ], G = [
283
283
  "--content-width-sm",
284
284
  "--content-width-md",
285
285
  "--content-width-lg",
@@ -288,7 +288,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
288
288
  "--adaptive-grid-min-sm",
289
289
  "--adaptive-grid-min-md",
290
290
  "--adaptive-grid-min-lg"
291
- ], G = {
291
+ ], K = {
292
292
  "--background": "Application canvas and default page background.",
293
293
  "--foreground": "Primary text and icon color on the application canvas.",
294
294
  "--primary": "Brand and primary-action color.",
@@ -301,7 +301,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
301
301
  "--overlay-backdrop": "Scrim painted behind dialog, alert dialog, sheet, and drawer surfaces.",
302
302
  "--primary-accent": "Brand color used as foreground for icons, spinners, and active marks.",
303
303
  "--warning-accent": "Warning color used as foreground for icons and marks on tinted warning surfaces.",
304
- "--radius": "Base shadcn corner radius from which package radii derive.",
304
+ "--radius": "Outer surface radius; controls and collection rows derive a bounded inner curve from this same root.",
305
305
  "--space-scale": "Multiplies structural gaps and padding without changing control heights.",
306
306
  "--density-scale": "Multiplies actions, controls, rows, and density-sensitive geometry.",
307
307
  "--height-action": "Base height for buttons and clickable action triggers.",
@@ -325,7 +325,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
325
325
  "--adaptive-grid-min-sm": "Compact minimum peer width used by AdaptiveGrid.",
326
326
  "--adaptive-grid-min-md": "Default minimum peer width used by AdaptiveGrid.",
327
327
  "--adaptive-grid-min-lg": "Spacious minimum peer width used by AdaptiveGrid."
328
- }, K = {
328
+ }, We = {
329
329
  "--space-scale": "Spacing scale",
330
330
  "--density-scale": "Density scale",
331
331
  "--height-action": "Action height",
@@ -349,7 +349,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
349
349
  "--adaptive-grid-min-sm": "Compact adaptive column",
350
350
  "--adaptive-grid-min-md": "Default adaptive column",
351
351
  "--adaptive-grid-min-lg": "Spacious adaptive column"
352
- }, Ke = {
352
+ }, Ge = {
353
353
  "--radius": {
354
354
  type: "range",
355
355
  min: 0,
@@ -541,48 +541,48 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
541
541
  decimalPlaces: 1
542
542
  }
543
543
  };
544
- function qe(e) {
544
+ function Ke(e) {
545
545
  return e.replace(/^--/, "").replace(/--/g, " · ").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0].toUpperCase()}${e.slice(1)}`).join(" ");
546
546
  }
547
- function Je(e, t) {
547
+ function q(e, t) {
548
548
  return e.startsWith("--chart-") ? "Categorical chart-series color; keep status meaning separate." : e.startsWith("--sidebar-") ? "Sidebar-specific theme color." : e.startsWith("--inverse-") ? "Explicitly inverse surface and content color." : e.endsWith("-foreground") ? "Foreground color paired with the matching solid or surface token." : e.endsWith("--line-height") ? "Line height paired with the matching typography step." : e.startsWith("--text-") ? "Font size for the matching typography step." : e.startsWith("--font-") ? "Font family stack for the matching content role." : e.startsWith("--shadow") ? "Elevation shadow used by package surfaces and overlays." : t === "states" ? "Semantic state color shared by package status surfaces." : "Public theme variable used across package components.";
549
549
  }
550
- function q(e, t, n, r, i) {
550
+ function J(e, t, n, r, i) {
551
551
  return e.map((e) => ({
552
552
  name: e,
553
- label: K[e] ?? qe(e),
554
- description: G[e] ?? Je(e, t),
553
+ label: We[e] ?? Ke(e),
554
+ description: K[e] ?? q(e, t),
555
555
  group: t,
556
556
  section: n,
557
557
  scope: r,
558
558
  kind: i,
559
- control: Ke[e]
559
+ control: Ge[e]
560
560
  }));
561
561
  }
562
- var Ye = [
563
- ...q(H.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
564
- ...q(He, "colors", "surfaces-content", "shared", "color"),
565
- ...q(H.slice(6, 19), "colors", "brand-actions", "mode", "color"),
566
- ...q(H.slice(19, 24), "colors", "charts", "mode", "color"),
567
- ...q(H.slice(24), "colors", "sidebar", "mode", "color"),
568
- ...q(Ve.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
569
- ...q(Ve.slice(7), "states", "inverse-surfaces", "mode", "color"),
570
- ...q(Ue, "typography", "font-families", "shared", "font"),
571
- ...q(U, "typography", "type-scale", "shared", "length"),
572
- ...q(["--radius"], "shape", "radius", "shared", "length"),
573
- ...q(We, "shape", "elevation", "mode", "shadow"),
574
- ...q(W.slice(0, 2), "structure", "global-scales", "shared", "length"),
575
- ...q(W.slice(2, 5), "structure", "actions-controls", "shared", "length"),
576
- ...q(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
577
- ...q(W.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
578
- ...q(W.slice(9, 11), "structure", "media", "shared", "length"),
579
- ...q(W.slice(11), "structure", "application-shell", "shared", "length"),
580
- ...q(Ge.slice(0, 5), "structure", "content-widths", "shared", "length"),
581
- ...q(Ge.slice(5), "structure", "adaptive-layout", "shared", "length")
562
+ var qe = [
563
+ ...J(V.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
564
+ ...J(He, "colors", "surfaces-content", "shared", "color"),
565
+ ...J(V.slice(6, 19), "colors", "brand-actions", "mode", "color"),
566
+ ...J(V.slice(19, 24), "colors", "charts", "mode", "color"),
567
+ ...J(V.slice(24), "colors", "sidebar", "mode", "color"),
568
+ ...J(Ve.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
569
+ ...J(Ve.slice(7), "states", "inverse-surfaces", "mode", "color"),
570
+ ...J(H, "typography", "font-families", "shared", "font"),
571
+ ...J(U, "typography", "type-scale", "shared", "length"),
572
+ ...J(["--radius"], "shape", "radius", "shared", "length"),
573
+ ...J(Ue, "shape", "elevation", "mode", "shadow"),
574
+ ...J(W.slice(0, 2), "structure", "global-scales", "shared", "length"),
575
+ ...J(W.slice(2, 5), "structure", "actions-controls", "shared", "length"),
576
+ ...J(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
577
+ ...J(W.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
578
+ ...J(W.slice(9, 11), "structure", "media", "shared", "length"),
579
+ ...J(W.slice(11), "structure", "application-shell", "shared", "length"),
580
+ ...J(G.slice(0, 5), "structure", "content-widths", "shared", "length"),
581
+ ...J(G.slice(5), "structure", "adaptive-layout", "shared", "length")
582
582
  ].map((e) => e.name === "--space-scale" || e.name === "--density-scale" ? {
583
583
  ...e,
584
584
  kind: "number"
585
- } : e), J = {
585
+ } : e), Y = {
586
586
  title: "Application defaults",
587
587
  description: "Configure the stable display behavior that accompanies the exported CSS theme.",
588
588
  boundaryTitle: "Root provider recipe",
@@ -631,6 +631,7 @@ var Ye = [
631
631
  cardSurface: "Card surface",
632
632
  spinner: "Spinner",
633
633
  cardDivider: "Card header divider",
634
+ cardFooterDivider: "Card footer divider",
634
635
  toastPosition: "Position",
635
636
  toastTheme: "Theme",
636
637
  toastDuration: "Duration (ms)",
@@ -694,14 +695,14 @@ var Ye = [
694
695
  xl: "XL"
695
696
  }
696
697
  };
697
- function Y(e, t) {
698
+ function X(e, t) {
698
699
  return e.map((e) => ({
699
700
  value: e,
700
701
  label: t.options[e] ?? e.replaceAll("_", " ").replace(/\b\w/g, (e) => e.toUpperCase())
701
702
  }));
702
703
  }
703
- function Xe({ config: e, onChange: t, strings: i = J }) {
704
- let a = R(e), o = Y(n, i), s = [
704
+ function Je({ config: e, onChange: t, strings: i = Y }) {
705
+ let a = L(e), o = X(n, i), s = [
705
706
  "sunday",
706
707
  "monday",
707
708
  "tuesday",
@@ -721,50 +722,50 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
721
722
  }
722
723
  });
723
724
  };
724
- return /* @__PURE__ */ D(f, {
725
+ return /* @__PURE__ */ E(f, {
725
726
  gap: "lg",
726
727
  className: "theme-tweaker--provider-settings",
727
728
  children: [
728
- /* @__PURE__ */ D(f, {
729
+ /* @__PURE__ */ E(f, {
729
730
  gap: "normal",
730
- children: [/* @__PURE__ */ E(l, {
731
+ children: [/* @__PURE__ */ T(l, {
731
732
  weight: "semibold",
732
733
  children: i.title
733
- }), /* @__PURE__ */ E(l, {
734
+ }), /* @__PURE__ */ T(l, {
734
735
  size: "xs",
735
736
  type: "secondary",
736
737
  children: i.description
737
738
  })]
738
739
  }),
739
- /* @__PURE__ */ D(m, {
740
+ /* @__PURE__ */ E(te, {
740
741
  tone: "info",
741
742
  role: "note",
742
743
  className: "theme-tweaker--provider-boundary",
743
744
  children: [
744
- /* @__PURE__ */ E(be, { "aria-hidden": "true" }),
745
- /* @__PURE__ */ E(p, { children: i.boundaryTitle }),
746
- /* @__PURE__ */ E(ee, { children: i.boundaryDescription }),
747
- /* @__PURE__ */ D(g, { children: [
748
- /* @__PURE__ */ E(h, {
745
+ /* @__PURE__ */ T(be, { "aria-hidden": "true" }),
746
+ /* @__PURE__ */ T(re, { children: i.boundaryTitle }),
747
+ /* @__PURE__ */ T(ee, { children: i.boundaryDescription }),
748
+ /* @__PURE__ */ E(m, { children: [
749
+ /* @__PURE__ */ T(p, {
749
750
  label: i.summary.locale,
750
751
  value: a.formatting?.locale ?? i.options.default
751
752
  }),
752
- /* @__PURE__ */ E(h, {
753
+ /* @__PURE__ */ T(p, {
753
754
  label: i.summary.currency,
754
755
  value: a.money?.defaultCurrency ?? i.options.default
755
756
  }),
756
- /* @__PURE__ */ E(h, {
757
+ /* @__PURE__ */ T(p, {
757
758
  label: i.summary.controls,
758
759
  value: i.options[a.density?.defaultScale ?? "md"] ?? a.density?.defaultScale ?? i.options.md
759
760
  }),
760
- /* @__PURE__ */ E(h, {
761
+ /* @__PURE__ */ T(p, {
761
762
  label: i.summary.cards,
762
763
  value: i.options[a.card?.defaultSurface ?? "card"] ?? a.card?.defaultSurface ?? i.options.default
763
764
  })
764
765
  ] })
765
766
  ]
766
767
  }),
767
- /* @__PURE__ */ E(oe, {
768
+ /* @__PURE__ */ T(oe, {
768
769
  multiple: !0,
769
770
  defaultValue: ["regional"],
770
771
  variant: "bordered",
@@ -775,36 +776,36 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
775
776
  value: "regional",
776
777
  title: i.sections.regional.title,
777
778
  description: i.sections.regional.description,
778
- content: /* @__PURE__ */ D("div", {
779
+ content: /* @__PURE__ */ E("div", {
779
780
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
780
781
  children: [
781
- /* @__PURE__ */ E(y, {
782
+ /* @__PURE__ */ T(v, {
782
783
  label: i.labels.locale,
783
- children: /* @__PURE__ */ E(v, {
784
+ children: /* @__PURE__ */ T(_, {
784
785
  value: a.formatting?.locale ?? "",
785
786
  onChange: (e) => c("formatting", "locale", e.target.value)
786
787
  })
787
788
  }),
788
- /* @__PURE__ */ E(y, {
789
+ /* @__PURE__ */ T(v, {
789
790
  label: i.labels.defaultCurrency,
790
- children: /* @__PURE__ */ E(v, {
791
+ children: /* @__PURE__ */ T(_, {
791
792
  value: a.money?.defaultCurrency ?? "",
792
793
  onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
793
794
  })
794
795
  }),
795
- /* @__PURE__ */ E(y, {
796
+ /* @__PURE__ */ T(v, {
796
797
  label: i.labels.displayCurrency,
797
- children: /* @__PURE__ */ E(v, {
798
+ children: /* @__PURE__ */ T(_, {
798
799
  value: a.money?.displayCurrency ?? "",
799
800
  placeholder: i.displayCurrencyPlaceholder,
800
801
  onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
801
802
  })
802
803
  }),
803
- /* @__PURE__ */ E(y, {
804
+ /* @__PURE__ */ T(v, {
804
805
  label: i.labels.moneyFormat,
805
- children: /* @__PURE__ */ E(x, {
806
+ children: /* @__PURE__ */ T(b, {
806
807
  value: a.money?.formatMode,
807
- options: Y([
808
+ options: X([
808
809
  "decimal",
809
810
  "with_code",
810
811
  "with_symbol",
@@ -813,17 +814,17 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
813
814
  onValueChange: (e) => c("money", "formatMode", e)
814
815
  })
815
816
  }),
816
- /* @__PURE__ */ E(y, {
817
+ /* @__PURE__ */ T(v, {
817
818
  label: i.labels.firstDay,
818
- children: /* @__PURE__ */ E(x, {
819
+ children: /* @__PURE__ */ T(b, {
819
820
  value: String(a.dates?.weekStartsOn ?? 1),
820
821
  options: s,
821
822
  onValueChange: (e) => c("dates", "weekStartsOn", Number(e))
822
823
  })
823
824
  }),
824
- /* @__PURE__ */ E(y, {
825
+ /* @__PURE__ */ T(v, {
825
826
  label: i.labels.dateFormat,
826
- children: /* @__PURE__ */ E(v, {
827
+ children: /* @__PURE__ */ T(_, {
827
828
  value: a.dates?.format ?? "",
828
829
  onChange: (e) => c("dates", "format", e.target.value)
829
830
  })
@@ -835,14 +836,14 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
835
836
  value: "content",
836
837
  title: i.sections.content.title,
837
838
  description: i.sections.content.description,
838
- content: /* @__PURE__ */ D("div", {
839
+ content: /* @__PURE__ */ E("div", {
839
840
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
840
841
  children: [
841
- /* @__PURE__ */ E(y, {
842
+ /* @__PURE__ */ T(v, {
842
843
  label: i.labels.textSize,
843
- children: /* @__PURE__ */ E(x, {
844
+ children: /* @__PURE__ */ T(b, {
844
845
  value: a.typography?.defaultTextSize,
845
- options: Y([
846
+ options: X([
846
847
  "xxs",
847
848
  "xs",
848
849
  "pxs",
@@ -854,25 +855,25 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
854
855
  onValueChange: (e) => c("typography", "defaultTextSize", e)
855
856
  })
856
857
  }),
857
- /* @__PURE__ */ E(y, {
858
+ /* @__PURE__ */ T(v, {
858
859
  label: i.labels.commentComposer,
859
- children: /* @__PURE__ */ E(x, {
860
+ children: /* @__PURE__ */ T(b, {
860
861
  value: a.comments?.composerPosition,
861
- options: Y(["top", "bottom"], i),
862
+ options: X(["top", "bottom"], i),
862
863
  onValueChange: (e) => c("comments", "composerPosition", e)
863
864
  })
864
865
  }),
865
- /* @__PURE__ */ E(b, {
866
+ /* @__PURE__ */ T(y, {
866
867
  label: i.labels.dualPricing,
867
868
  description: i.dualPricingDescription,
868
869
  value: a.money?.dualPricingEnabled ?? !1,
869
870
  onValueChange: (e) => c("money", "dualPricingEnabled", e)
870
871
  }),
871
- /* @__PURE__ */ E(y, {
872
+ /* @__PURE__ */ T(v, {
872
873
  label: i.labels.dualPricingMode,
873
- children: /* @__PURE__ */ E(x, {
874
+ children: /* @__PURE__ */ T(b, {
874
875
  value: a.money?.displayMode,
875
- options: Y([
876
+ options: X([
876
877
  "default_only",
877
878
  "dual",
878
879
  "dynamic"
@@ -880,11 +881,11 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
880
881
  onValueChange: (e) => c("money", "displayMode", e)
881
882
  })
882
883
  }),
883
- /* @__PURE__ */ E(y, {
884
+ /* @__PURE__ */ T(v, {
884
885
  label: i.labels.dualPricingLayout,
885
- children: /* @__PURE__ */ E(x, {
886
+ children: /* @__PURE__ */ T(b, {
886
887
  value: a.money?.dualPricingDisplay,
887
- options: Y(["inline", "lines"], i),
888
+ options: X(["inline", "lines"], i),
888
889
  onValueChange: (e) => c("money", "dualPricingDisplay", e)
889
890
  })
890
891
  })
@@ -895,22 +896,22 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
895
896
  value: "components",
896
897
  title: i.sections.components.title,
897
898
  description: i.sections.components.description,
898
- content: /* @__PURE__ */ D("div", {
899
+ content: /* @__PURE__ */ E("div", {
899
900
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
900
901
  children: [
901
- /* @__PURE__ */ E(y, {
902
+ /* @__PURE__ */ T(v, {
902
903
  label: i.labels.componentScale,
903
- children: /* @__PURE__ */ E(x, {
904
+ children: /* @__PURE__ */ T(b, {
904
905
  value: a.density?.defaultScale,
905
906
  options: o,
906
907
  onValueChange: (e) => c("density", "defaultScale", e)
907
908
  })
908
909
  }),
909
- /* @__PURE__ */ E(y, {
910
+ /* @__PURE__ */ T(v, {
910
911
  label: i.labels.itemVariant,
911
- children: /* @__PURE__ */ E(x, {
912
+ children: /* @__PURE__ */ T(b, {
912
913
  value: a.item?.defaultVariant,
913
- options: Y([
914
+ options: X([
914
915
  "default",
915
916
  "outline",
916
917
  "muted"
@@ -918,19 +919,19 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
918
919
  onValueChange: (e) => c("item", "defaultVariant", e)
919
920
  })
920
921
  }),
921
- /* @__PURE__ */ E(y, {
922
+ /* @__PURE__ */ T(v, {
922
923
  label: i.labels.buttonTone,
923
- children: /* @__PURE__ */ E(x, {
924
+ children: /* @__PURE__ */ T(b, {
924
925
  value: a.button?.defaultTone,
925
- options: Y(r, i),
926
+ options: X(r, i),
926
927
  onValueChange: (e) => c("button", "defaultTone", e)
927
928
  })
928
929
  }),
929
- /* @__PURE__ */ E(y, {
930
+ /* @__PURE__ */ T(v, {
930
931
  label: i.labels.buttonStyle,
931
- children: /* @__PURE__ */ E(x, {
932
+ children: /* @__PURE__ */ T(b, {
932
933
  value: a.button?.defaultButtonStyle,
933
- options: Y([
934
+ options: X([
934
935
  "solid",
935
936
  "outline",
936
937
  "ghost"
@@ -938,19 +939,19 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
938
939
  onValueChange: (e) => c("button", "defaultButtonStyle", e)
939
940
  })
940
941
  }),
941
- /* @__PURE__ */ E(y, {
942
+ /* @__PURE__ */ T(v, {
942
943
  label: i.labels.badgeTone,
943
- children: /* @__PURE__ */ E(x, {
944
+ children: /* @__PURE__ */ T(b, {
944
945
  value: a.badge?.defaultTone,
945
- options: Y(r, i),
946
+ options: X(r, i),
946
947
  onValueChange: (e) => c("badge", "defaultTone", e)
947
948
  })
948
949
  }),
949
- /* @__PURE__ */ E(y, {
950
+ /* @__PURE__ */ T(v, {
950
951
  label: i.labels.cardSurface,
951
- children: /* @__PURE__ */ E(x, {
952
+ children: /* @__PURE__ */ T(b, {
952
953
  value: a.card?.defaultSurface,
953
- options: Y([
954
+ options: X([
954
955
  "card",
955
956
  "flat",
956
957
  "framed"
@@ -958,11 +959,11 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
958
959
  onValueChange: (e) => c("card", "defaultSurface", e)
959
960
  })
960
961
  }),
961
- /* @__PURE__ */ E(y, {
962
+ /* @__PURE__ */ T(v, {
962
963
  label: i.labels.spinner,
963
- children: /* @__PURE__ */ E(x, {
964
+ children: /* @__PURE__ */ T(b, {
964
965
  value: a.spinner?.defaultVariant,
965
- options: Y([
966
+ options: X([
966
967
  "default",
967
968
  "shimmer",
968
969
  "progress"
@@ -970,10 +971,15 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
970
971
  onValueChange: (e) => c("spinner", "defaultVariant", e)
971
972
  })
972
973
  }),
973
- /* @__PURE__ */ E(b, {
974
+ /* @__PURE__ */ T(y, {
974
975
  label: i.labels.cardDivider,
975
976
  value: a.card?.defaultHeaderDivider ?? !1,
976
977
  onValueChange: (e) => c("card", "defaultHeaderDivider", e)
978
+ }),
979
+ /* @__PURE__ */ T(y, {
980
+ label: i.labels.cardFooterDivider ?? Y.labels.cardFooterDivider,
981
+ value: a.card?.defaultFooterDivider ?? !1,
982
+ onValueChange: (e) => c("card", "defaultFooterDivider", e)
977
983
  })
978
984
  ]
979
985
  })
@@ -982,14 +988,14 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
982
988
  value: "toasts",
983
989
  title: i.sections.toasts.title,
984
990
  description: i.sections.toasts.description,
985
- content: /* @__PURE__ */ D("div", {
991
+ content: /* @__PURE__ */ E("div", {
986
992
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
987
993
  children: [
988
- /* @__PURE__ */ E(y, {
994
+ /* @__PURE__ */ T(v, {
989
995
  label: i.labels.toastPosition,
990
- children: /* @__PURE__ */ E(x, {
996
+ children: /* @__PURE__ */ T(b, {
991
997
  value: a.toast?.position,
992
- options: Y([
998
+ options: X([
993
999
  "top-right",
994
1000
  "top-left",
995
1001
  "top-center",
@@ -1000,11 +1006,11 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
1000
1006
  onValueChange: (e) => c("toast", "position", e)
1001
1007
  })
1002
1008
  }),
1003
- /* @__PURE__ */ E(y, {
1009
+ /* @__PURE__ */ T(v, {
1004
1010
  label: i.labels.toastTheme,
1005
- children: /* @__PURE__ */ E(x, {
1011
+ children: /* @__PURE__ */ T(b, {
1006
1012
  value: a.toast?.theme,
1007
- options: Y([
1013
+ options: X([
1008
1014
  "light",
1009
1015
  "dark",
1010
1016
  "system"
@@ -1012,9 +1018,9 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
1012
1018
  onValueChange: (e) => c("toast", "theme", e)
1013
1019
  })
1014
1020
  }),
1015
- /* @__PURE__ */ E(y, {
1021
+ /* @__PURE__ */ T(v, {
1016
1022
  label: i.labels.toastDuration,
1017
- children: /* @__PURE__ */ E(v, {
1023
+ children: /* @__PURE__ */ T(_, {
1018
1024
  type: "number",
1019
1025
  min: 1e3,
1020
1026
  step: 500,
@@ -1022,9 +1028,9 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
1022
1028
  onChange: (e) => c("toast", "duration", Number(e.target.value))
1023
1029
  })
1024
1030
  }),
1025
- /* @__PURE__ */ E(y, {
1031
+ /* @__PURE__ */ T(v, {
1026
1032
  label: i.labels.visibleToasts,
1027
- children: /* @__PURE__ */ E(v, {
1033
+ children: /* @__PURE__ */ T(_, {
1028
1034
  type: "number",
1029
1035
  min: 1,
1030
1036
  max: 10,
@@ -1032,12 +1038,12 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
1032
1038
  onChange: (e) => c("toast", "visibleToasts", Number(e.target.value))
1033
1039
  })
1034
1040
  }),
1035
- /* @__PURE__ */ E(b, {
1041
+ /* @__PURE__ */ T(y, {
1036
1042
  label: i.labels.closeButton,
1037
1043
  value: a.toast?.closeButton ?? !0,
1038
1044
  onValueChange: (e) => c("toast", "closeButton", e)
1039
1045
  }),
1040
- /* @__PURE__ */ E(b, {
1046
+ /* @__PURE__ */ T(y, {
1041
1047
  label: i.labels.richColors,
1042
1048
  value: a.toast?.richColors ?? !1,
1043
1049
  onValueChange: (e) => c("toast", "richColors", e)
@@ -1052,7 +1058,7 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
1052
1058
  }
1053
1059
  //#endregion
1054
1060
  //#region src/components/features/theme-tweaker/theme-tweaker.strings.ts
1055
- var Ze = {
1061
+ var Ye = {
1056
1062
  title: "Theme tweaker",
1057
1063
  description: "Edit the public theme contract, calculate coherent recipes, and export complete CSS plus root display defaults.",
1058
1064
  searchLabel: "Search variables",
@@ -1118,7 +1124,7 @@ var Ze = {
1118
1124
  previewSuccess: "Healthy",
1119
1125
  previewWarning: "Review",
1120
1126
  previewContract: "CSS variables",
1121
- providerSettings: J,
1127
+ providerSettings: Y,
1122
1128
  groups: {
1123
1129
  colors: "Colors",
1124
1130
  states: "States",
@@ -1157,10 +1163,10 @@ var Ze = {
1157
1163
  };
1158
1164
  //#endregion
1159
1165
  //#region src/components/features/theme-tweaker/theme-tweaker.recipes.ts
1160
- function X(e, t, n) {
1166
+ function Z(e, t, n) {
1161
1167
  return Math.min(n, Math.max(t, e));
1162
1168
  }
1163
- function Z(e, t) {
1169
+ function Xe(e, t) {
1164
1170
  let n = e.trim().match(/^#([\da-f]{3}|[\da-f]{6})$/i)?.[1], r = n?.length === 3 ? [...n].map((e) => e + e).join("") : n;
1165
1171
  if (r) return [
1166
1172
  0,
@@ -1174,7 +1180,7 @@ function Z(e, t) {
1174
1180
  let i = e.match(/oklch\(\s*([\d.]+)(%)?/i), a = Number.parseFloat(i?.[1] ?? "NaN") / (i?.[2] ? 100 : 1);
1175
1181
  return Number.isFinite(a) ? a > .67 ? "oklch(0.18 0.01 260)" : "oklch(0.985 0 0)" : t === "dark" ? "oklch(0.18 0.01 260)" : "oklch(0.985 0 0)";
1176
1182
  }
1177
- function Qe({ primary: e, mode: t = "light" }) {
1183
+ function Ze({ primary: e, mode: t = "light" }) {
1178
1184
  let n = t === "dark", r = (e, t) => `color-mix(in oklab, ${n ? t : e} 94%, var(--primary))`;
1179
1185
  return {
1180
1186
  "--primary": e,
@@ -1188,7 +1194,7 @@ function Qe({ primary: e, mode: t = "light" }) {
1188
1194
  "--warning-accent": r("oklch(0.54 0.11 65)", "oklch(0.81 0.12 75)"),
1189
1195
  "--destructive": r("oklch(0.55 0.17 25)", "oklch(0.74 0.14 25)"),
1190
1196
  "--destructive-foreground": n ? "oklch(0.23 0.035 25)" : "oklch(0.985 0 0)",
1191
- "--primary-foreground": Z(e, t),
1197
+ "--primary-foreground": Xe(e, t),
1192
1198
  "--secondary": "color-mix(in oklab, var(--primary) 10%, var(--background))",
1193
1199
  "--secondary-foreground": "var(--foreground)",
1194
1200
  "--muted": "color-mix(in oklab, var(--primary) 7%, var(--background))",
@@ -1212,13 +1218,13 @@ function Qe({ primary: e, mode: t = "light" }) {
1212
1218
  "--sidebar-ring": "var(--ring)"
1213
1219
  };
1214
1220
  }
1215
- var $e = {
1221
+ var Q = {
1216
1222
  xxs: .75,
1217
1223
  xs: .75,
1218
1224
  pxs: .8125,
1219
1225
  sm: .875,
1220
1226
  base: 1
1221
- }, Q = [
1227
+ }, $ = [
1222
1228
  "lg",
1223
1229
  "xl",
1224
1230
  "2xl",
@@ -1230,19 +1236,19 @@ var $e = {
1230
1236
  "8xl",
1231
1237
  "9xl"
1232
1238
  ];
1233
- function et({ baseSize: e, ratio: t = 1.2 }) {
1234
- let n = X(e, 14, 20), r = X(t, 1.125, 1.333), i = {};
1235
- for (let [e, t] of Object.entries($e)) {
1239
+ function Qe({ baseSize: e, ratio: t = 1.2 }) {
1240
+ let n = Z(e, 14, 20), r = Z(t, 1.125, 1.333), i = {};
1241
+ for (let [e, t] of Object.entries(Q)) {
1236
1242
  let r = Math.max(12, n * t);
1237
1243
  i[`--text-${e}`] = `${Number((r / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number((Math.max(r + 6, r * 1.45) / r).toFixed(4))}`;
1238
1244
  }
1239
- return Q.forEach((e, t) => {
1245
+ return $.forEach((e, t) => {
1240
1246
  let a = n * r ** (t + 1);
1241
- i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(X(1.55 - t * .065, 1, 1.5).toFixed(4))}`;
1247
+ i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(Z(1.55 - t * .065, 1, 1.5).toFixed(4))}`;
1242
1248
  }), i;
1243
1249
  }
1244
- function tt({ intensity: e }) {
1245
- let t = X(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
1250
+ function $e({ intensity: e }) {
1251
+ let t = Z(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
1246
1252
  return {
1247
1253
  "--shadow-2xs": `0 1px 2px 0 oklch(0 0 0 / ${n(.06)})`,
1248
1254
  "--shadow-xs": `0 1px 3px 0 oklch(0 0 0 / ${n(.07)})`,
@@ -1256,28 +1262,28 @@ function tt({ intensity: e }) {
1256
1262
  }
1257
1263
  //#endregion
1258
1264
  //#region src/components/features/theme-tweaker/theme-tweaker.tsx
1259
- var nt = [
1265
+ var et = [
1260
1266
  "colors",
1261
1267
  "states",
1262
1268
  "typography",
1263
1269
  "shape",
1264
1270
  "structure",
1265
1271
  "defaults"
1266
- ], rt = {
1267
- colors: k,
1268
- states: A,
1269
- typography: Oe,
1270
- shape: Ee,
1272
+ ], tt = {
1273
+ colors: Ce,
1274
+ states: De,
1275
+ typography: ke,
1276
+ shape: O,
1271
1277
  structure: xe,
1272
- defaults: Te
1278
+ defaults: Ee
1273
1279
  };
1274
- function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
1275
- let d = he();
1276
- return /* @__PURE__ */ D(f, {
1277
- render: /* @__PURE__ */ E("section", { "aria-labelledby": d }),
1280
+ function nt({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
1281
+ let d = S();
1282
+ return /* @__PURE__ */ E(f, {
1283
+ render: /* @__PURE__ */ T("section", { "aria-labelledby": d }),
1278
1284
  gap: "md",
1279
1285
  className: "theme-tweaker--export-artifact min-w-0",
1280
- children: [/* @__PURE__ */ D(f, {
1286
+ children: [/* @__PURE__ */ E(f, {
1281
1287
  direction: {
1282
1288
  base: "vertical",
1283
1289
  sm: "horizontal"
@@ -1289,33 +1295,34 @@ function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
1289
1295
  justify: { sm: "between" },
1290
1296
  gap: "md",
1291
1297
  className: "theme-tweaker--export-artifact-header",
1292
- children: [/* @__PURE__ */ D(f, {
1298
+ children: [/* @__PURE__ */ E(f, {
1293
1299
  gap: "dense",
1294
1300
  className: "min-w-0",
1295
- children: [/* @__PURE__ */ E(u, {
1301
+ children: [/* @__PURE__ */ T(c, {
1296
1302
  id: d,
1297
1303
  tag: "h3",
1298
1304
  children: e
1299
- }), /* @__PURE__ */ E(l, {
1305
+ }), /* @__PURE__ */ T(l, {
1300
1306
  size: "xs",
1301
1307
  type: "secondary",
1302
1308
  children: t
1303
1309
  })]
1304
- }), /* @__PURE__ */ D(f, {
1310
+ }), /* @__PURE__ */ E(f, {
1305
1311
  direction: "horizontal",
1306
1312
  gap: "xs",
1307
1313
  align: "center",
1308
1314
  wrap: !0,
1309
1315
  className: "theme-tweaker--export-artifact-actions sm:shrink-0",
1310
- children: [/* @__PURE__ */ E(c, {
1316
+ children: [/* @__PURE__ */ T(u, {
1311
1317
  type: "button",
1312
1318
  size: "sm",
1313
1319
  tone: "secondary",
1314
1320
  buttonStyle: "outline",
1315
- icon: O,
1321
+ icon: D,
1316
1322
  onClick: a,
1317
1323
  children: r
1318
- }), /* @__PURE__ */ E(c, {
1324
+ }), /* @__PURE__ */ T(u, {
1325
+ tone: "primary",
1319
1326
  type: "button",
1320
1327
  size: "sm",
1321
1328
  icon: ye,
@@ -1324,40 +1331,40 @@ function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
1324
1331
  children: i
1325
1332
  })]
1326
1333
  })]
1327
- }), /* @__PURE__ */ E("pre", {
1334
+ }), /* @__PURE__ */ T("pre", {
1328
1335
  tabIndex: 0,
1329
1336
  "aria-label": e,
1330
- className: "theme-tweaker--export-code max-h-48 min-w-0 overflow-auto rounded-radius border border-border bg-muted/30 p-surface-xs font-mono text-xs leading-relaxed text-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 sm:max-h-72",
1331
- children: /* @__PURE__ */ E("code", { children: n })
1337
+ className: "theme-tweaker--export-code max-h-48 min-w-0 overflow-auto rounded-radius border border-border bg-muted/30 p-surface-xs font-mono text-xs leading-relaxed text-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring sm:max-h-72",
1338
+ children: /* @__PURE__ */ T("code", { children: n })
1332
1339
  })]
1333
1340
  });
1334
1341
  }
1335
- function $(e, t) {
1342
+ function rt(e, t) {
1336
1343
  let n = Number.parseFloat(e);
1337
1344
  return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.min;
1338
1345
  }
1339
- function at(e, t) {
1346
+ function it(e, t) {
1340
1347
  let n = t.decimalPlaces ?? 3;
1341
1348
  return `${Number(e.toFixed(n))}${t.unit ?? ""}`;
1342
1349
  }
1343
- function ot(e, t) {
1350
+ function at(e, t) {
1344
1351
  return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
1345
1352
  }
1346
- function st(e, t) {
1347
- if (typeof document > "u" || typeof window > "u") return M(e);
1353
+ function ot(e, t) {
1354
+ if (typeof document > "u" || typeof window > "u") return j(e);
1348
1355
  let n = document.documentElement, r = [...new Set(t.map((e) => e.name))], i = n.classList.contains("light"), a = n.classList.contains("dark"), o = new Map(r.map((e) => [e, {
1349
1356
  value: n.style.getPropertyValue(e),
1350
1357
  priority: n.style.getPropertyPriority(e)
1351
1358
  }])), s = (t) => {
1352
1359
  for (let e of r) n.style.removeProperty(e);
1353
1360
  n.classList.toggle("light", t === "light"), n.classList.toggle("dark", t === "dark");
1354
- for (let [r, i] of Object.entries(B(e, t))) typeof i == "string" && n.style.setProperty(r, i);
1361
+ for (let [r, i] of Object.entries(z(e, t))) typeof i == "string" && n.style.setProperty(r, i);
1355
1362
  let i = window.getComputedStyle(n);
1356
1363
  return Object.fromEntries(r.map((e) => [e, i.getPropertyValue(e).trim()]).filter((e) => e[1].length > 0));
1357
1364
  };
1358
1365
  try {
1359
1366
  let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
1360
- return M({
1367
+ return j({
1361
1368
  mode: e.mode,
1362
1369
  shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
1363
1370
  light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
@@ -1371,30 +1378,30 @@ function st(e, t) {
1371
1378
  n.classList.toggle("light", i), n.classList.toggle("dark", a);
1372
1379
  }
1373
1380
  }
1374
- function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
1375
- let s = `theme-variable-${he().replace(/:/g, "")}`, u = /* @__PURE__ */ E(c, {
1381
+ function st({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
1382
+ let s = `theme-variable-${S().replace(/:/g, "")}`, c = /* @__PURE__ */ T(u, {
1376
1383
  type: "button",
1377
1384
  iconOnly: !0,
1378
1385
  tone: "secondary",
1379
1386
  buttonStyle: "ghost",
1380
- icon: Ce,
1387
+ icon: we,
1381
1388
  withTooltip: o.resetVariable,
1382
1389
  "aria-label": `${o.resetVariable}: ${e.label}`,
1383
1390
  disabled: !t,
1384
1391
  onClick: i,
1385
- children: /* @__PURE__ */ E(l, {
1392
+ children: /* @__PURE__ */ T(l, {
1386
1393
  tag: "span",
1387
1394
  size: "inherit",
1388
1395
  className: "sr-only",
1389
1396
  children: o.resetVariable
1390
1397
  })
1391
1398
  }), d = e.placeholder ?? n ?? o.inheritValue, p;
1392
- if (e.kind === "color") p = /* @__PURE__ */ D(f, {
1399
+ if (e.kind === "color") p = /* @__PURE__ */ E(f, {
1393
1400
  direction: "horizontal",
1394
1401
  gap: "xs",
1395
1402
  align: "center",
1396
1403
  wrap: !1,
1397
- children: [/* @__PURE__ */ E(ce, {
1404
+ children: [/* @__PURE__ */ T(ce, {
1398
1405
  id: s,
1399
1406
  "aria-label": e.label,
1400
1407
  "aria-description": e.description,
@@ -1404,29 +1411,29 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1404
1411
  onValueChange: r,
1405
1412
  placeholder: d,
1406
1413
  className: "min-w-0 flex-1"
1407
- }), u]
1414
+ }), c]
1408
1415
  });
1409
1416
  else if (e.control?.type === "range") {
1410
- let i = $(t || n, e.control);
1411
- p = /* @__PURE__ */ D(f, {
1417
+ let i = rt(t || n, e.control);
1418
+ p = /* @__PURE__ */ E(f, {
1412
1419
  gap: "sm",
1413
- children: [/* @__PURE__ */ E(S, {
1420
+ children: [/* @__PURE__ */ T(le, {
1414
1421
  id: `${s}-slider`,
1415
1422
  "aria-label": a(o.adjustVariable, { label: e.label }),
1416
1423
  value: i,
1417
1424
  min: e.control.min,
1418
1425
  max: e.control.max,
1419
1426
  step: e.control.step,
1420
- onValueChange: (t) => r(at(t, e.control))
1421
- }), /* @__PURE__ */ D(f, {
1427
+ onValueChange: (t) => r(it(t, e.control))
1428
+ }), /* @__PURE__ */ E(f, {
1422
1429
  direction: "horizontal",
1423
1430
  gap: "xs",
1424
1431
  align: "center",
1425
1432
  wrap: !1,
1426
- children: [/* @__PURE__ */ E(f, {
1433
+ children: [/* @__PURE__ */ T(f, {
1427
1434
  gap: "none",
1428
1435
  className: "w-28 max-w-full shrink-0",
1429
- children: /* @__PURE__ */ E(le, {
1436
+ children: /* @__PURE__ */ T(ue, {
1430
1437
  id: s,
1431
1438
  "aria-label": e.label,
1432
1439
  "aria-description": e.description,
@@ -1443,17 +1450,17 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1443
1450
  },
1444
1451
  className: "font-mono tabular-nums"
1445
1452
  })
1446
- }), u]
1453
+ }), c]
1447
1454
  })]
1448
1455
  });
1449
- } else p = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ D(f, {
1456
+ } else p = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ E(f, {
1450
1457
  direction: "horizontal",
1451
1458
  gap: "xs",
1452
1459
  align: "start",
1453
1460
  wrap: !1,
1454
- children: [/* @__PURE__ */ E(f, {
1461
+ children: [/* @__PURE__ */ T(f, {
1455
1462
  className: "min-w-0 flex-1",
1456
- children: /* @__PURE__ */ E(se, {
1463
+ children: /* @__PURE__ */ T(se, {
1457
1464
  id: s,
1458
1465
  "aria-label": e.label,
1459
1466
  "aria-description": e.description,
@@ -1464,13 +1471,13 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1464
1471
  autoResize: !0,
1465
1472
  className: "font-mono"
1466
1473
  })
1467
- }), u]
1468
- }) : /* @__PURE__ */ D(f, {
1474
+ }), c]
1475
+ }) : /* @__PURE__ */ E(f, {
1469
1476
  direction: "horizontal",
1470
1477
  gap: "xs",
1471
1478
  align: "center",
1472
1479
  wrap: !1,
1473
- children: [/* @__PURE__ */ E(v, {
1480
+ children: [/* @__PURE__ */ T(_, {
1474
1481
  id: s,
1475
1482
  "aria-label": e.label,
1476
1483
  "aria-description": e.description,
@@ -1478,24 +1485,24 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1478
1485
  onChange: (e) => r(e.target.value),
1479
1486
  placeholder: d,
1480
1487
  className: "min-w-0 flex-1 font-mono"
1481
- }), u]
1488
+ }), c]
1482
1489
  });
1483
- return /* @__PURE__ */ E(y, {
1484
- label: /* @__PURE__ */ D(f, {
1485
- render: /* @__PURE__ */ E("span", {}),
1490
+ return /* @__PURE__ */ T(v, {
1491
+ label: /* @__PURE__ */ E(f, {
1492
+ render: /* @__PURE__ */ T("span", {}),
1486
1493
  direction: "horizontal",
1487
1494
  gap: "sm",
1488
1495
  align: "baseline",
1489
1496
  justify: "between",
1490
1497
  wrap: !0,
1491
1498
  className: "min-w-0 flex-1",
1492
- children: [/* @__PURE__ */ E(l, {
1499
+ children: [/* @__PURE__ */ T(l, {
1493
1500
  tag: "span",
1494
1501
  size: "inherit",
1495
1502
  weight: "medium",
1496
1503
  className: "min-w-0",
1497
1504
  children: e.label
1498
- }), /* @__PURE__ */ E(ae, {
1505
+ }), /* @__PURE__ */ T(h, {
1499
1506
  size: "xs",
1500
1507
  type: "secondary",
1501
1508
  weight: "regular",
@@ -1508,49 +1515,48 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1508
1515
  children: p
1509
1516
  });
1510
1517
  }
1511
- function lt({ strings: e }) {
1512
- return /* @__PURE__ */ E(te, {
1518
+ function ct({ strings: e }) {
1519
+ return /* @__PURE__ */ T(ne, {
1513
1520
  title: e.previewTitle,
1514
1521
  description: e.previewDescription,
1515
- icon: /* @__PURE__ */ E(k, {}),
1516
- headerDivider: !0,
1517
1522
  className: "theme-tweaker--preview-card",
1518
- children: /* @__PURE__ */ D(f, {
1523
+ children: /* @__PURE__ */ E(f, {
1519
1524
  gap: "lg",
1520
1525
  children: [
1521
- /* @__PURE__ */ D(f, {
1526
+ /* @__PURE__ */ E(f, {
1522
1527
  direction: "horizontal",
1523
1528
  gap: "sm",
1524
1529
  wrap: !0,
1525
1530
  children: [
1526
- /* @__PURE__ */ E(_, {
1531
+ /* @__PURE__ */ T(g, {
1527
1532
  tone: "success",
1528
1533
  children: e.previewSuccess
1529
1534
  }),
1530
- /* @__PURE__ */ E(_, {
1535
+ /* @__PURE__ */ T(g, {
1531
1536
  tone: "warning",
1532
1537
  children: e.previewWarning
1533
1538
  }),
1534
- /* @__PURE__ */ E(_, {
1539
+ /* @__PURE__ */ T(g, {
1535
1540
  tone: "secondary",
1536
1541
  children: e.previewContract
1537
1542
  })
1538
1543
  ]
1539
1544
  }),
1540
- /* @__PURE__ */ E(ue, {
1545
+ /* @__PURE__ */ T(de, {
1541
1546
  variant: "muted",
1542
1547
  padding: "default",
1543
- media: /* @__PURE__ */ E(k, {}),
1548
+ media: /* @__PURE__ */ T(Ce, {}),
1544
1549
  mediaVariant: "icon",
1545
1550
  title: e.previewItemTitle,
1546
1551
  description: e.previewItemDescription,
1547
- trailing: /* @__PURE__ */ E(ve, { className: "size-icon text-success" })
1552
+ trailing: /* @__PURE__ */ T(ve, { className: "size-icon text-success" })
1548
1553
  }),
1549
- /* @__PURE__ */ E(y, {
1554
+ /* @__PURE__ */ T(v, {
1550
1555
  label: e.previewFieldLabel,
1551
- children: /* @__PURE__ */ E(v, { placeholder: e.previewFieldPlaceholder })
1556
+ children: /* @__PURE__ */ T(_, { placeholder: e.previewFieldPlaceholder })
1552
1557
  }),
1553
- /* @__PURE__ */ E(c, {
1558
+ /* @__PURE__ */ T(u, {
1559
+ tone: "primary",
1554
1560
  type: "button",
1555
1561
  children: e.previewAction
1556
1562
  })
@@ -1558,59 +1564,59 @@ function lt({ strings: e }) {
1558
1564
  })
1559
1565
  });
1560
1566
  }
1561
- function ut(e, t, n) {
1567
+ function lt(e, t, n) {
1562
1568
  let r = t.scope === "shared" ? "shared" : e.mode, i = { ...e[r] };
1563
1569
  return n.trim().length === 0 ? delete i[t.name] : i[t.name] = n, {
1564
1570
  ...e,
1565
1571
  [r]: i
1566
1572
  };
1567
1573
  }
1568
- var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Ye, target: p = "self", apply: m = !0, manageModeClass: h = !0, preview: g, fileName: ee = "admin-ui-theme.css", config: ae, defaultConfig: se, onConfigChange: x, providerFileName: ce = "admin-ui.config.ts", showIntro: le = !0, selectors: ue, onExport: C, onCopy: he, onReset: ve, onError: O, actionsSlot: be, strings: xe, className: k, ...Te }, Ee) {
1569
- let A = o(Ze, xe), [Oe, ke] = T(() => M(t)), j = w(() => e ? M(e) : Oe, [Oe, e]), [Ae, je] = T(() => R(se)), N = w(() => R(ae ?? Ae), [ae, Ae]), [P, F] = T("colors"), [I, L] = T(""), [z, Me] = T(!0), [Pe, Re] = T(16), [Be, H] = T(1.2), [Ve, He] = T(.8), [Ue, U] = T("idle"), We = ne(), [W, Ge] = T(!1), G = _e(null);
1574
+ var ut = x(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = qe, target: p = "self", apply: m = !0, manageModeClass: ee = !0, preview: te, fileName: re = "admin-ui-theme.css", config: h, defaultConfig: se, onConfigChange: b, providerFileName: ce = "admin-ui.config.ts", showIntro: ue = !0, selectors: de, onExport: x, onCopy: S, onReset: ve, onError: D, actionsSlot: ye, strings: be, className: xe, ...Ce }, Ee) {
1575
+ let O = o(Ye, be), [De, ke] = w(() => j(t)), k = C(() => e ? j(e) : De, [De, e]), [Ae, je] = w(() => L(se)), A = C(() => L(h ?? Ae), [h, Ae]), [M, N] = w("colors"), [P, F] = w(""), [I, Me] = w(!0), [R, Pe] = w(16), [Re, Be] = w(1.2), [V, Ve] = w(.8), [He, H] = w("idle"), U = ie(), [Ue, W] = w(!1), G = _e(null);
1570
1576
  ge(Ee, () => G.current), ze({
1571
1577
  apply: m,
1572
- manageModeClass: h,
1578
+ manageModeClass: ee,
1573
1579
  selfRef: G,
1574
1580
  target: p,
1575
- theme: j
1581
+ theme: k
1576
1582
  });
1577
- let [K, Ke] = T(() => M(j)), [qe, Je] = T({});
1578
- me(() => {
1583
+ let [K, We] = w(() => j(k)), [Ge, Ke] = w({});
1584
+ he(() => {
1579
1585
  if (typeof window > "u") return;
1580
1586
  let e = window.setTimeout(() => {
1581
- let e = ot(p, G.current);
1587
+ let e = at(p, G.current);
1582
1588
  if (!e) return;
1583
1589
  let t = window.getComputedStyle(e);
1584
- Je(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ke(st(j, i));
1590
+ Ke(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), We(ot(k, i));
1585
1591
  }, 0);
1586
1592
  return () => window.clearTimeout(e);
1587
1593
  }, [
1588
1594
  m,
1589
1595
  i,
1590
1596
  p,
1591
- j
1597
+ k
1592
1598
  ]);
1593
- let { artifact: q, error: J } = w(() => {
1599
+ let { artifact: q, error: J } = C(() => {
1594
1600
  try {
1595
- let e = M({
1596
- mode: j.mode,
1601
+ let e = j({
1602
+ mode: k.mode,
1597
1603
  shared: {
1598
1604
  ...K.shared,
1599
- ...j.shared
1605
+ ...k.shared
1600
1606
  },
1601
1607
  light: {
1602
1608
  ...K.light,
1603
- ...j.light
1609
+ ...k.light
1604
1610
  },
1605
1611
  dark: {
1606
1612
  ...K.dark,
1607
- ...j.dark
1613
+ ...k.dark
1608
1614
  }
1609
1615
  });
1610
1616
  return {
1611
- artifact: Fe(j, ee, { selectors: ue }, {
1617
+ artifact: Fe(k, re, { selectors: de }, {
1612
1618
  resolvedTheme: e,
1613
- providerConfig: N,
1619
+ providerConfig: A,
1614
1620
  providerFileName: ce
1615
1621
  }),
1616
1622
  error: null
@@ -1622,23 +1628,23 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1622
1628
  };
1623
1629
  }
1624
1630
  }, [
1625
- ee,
1626
- N,
1631
+ re,
1632
+ A,
1627
1633
  ce,
1628
1634
  K,
1629
- ue,
1630
- j
1631
- ]), Y = q?.cssText ?? `/* ${A.invalidTheme} */\n`, X = w(() => Ne(j), [j]), Z = I.trim().toLowerCase(), $e = w(() => i.filter((e) => !Z && e.group !== P ? !1 : !Z || [
1635
+ de,
1636
+ k
1637
+ ]), Y = q?.cssText ?? `/* ${O.invalidTheme} */\n`, X = C(() => Ne(k), [k]), Z = P.trim().toLowerCase(), Xe = C(() => i.filter((e) => !Z && e.group !== M ? !1 : !Z || [
1632
1638
  e.name,
1633
1639
  e.label,
1634
1640
  e.description
1635
1641
  ].filter(Boolean).some((e) => e?.toLowerCase().includes(Z))), [
1636
1642
  i,
1637
- P,
1643
+ M,
1638
1644
  Z
1639
- ]), Q = w(() => {
1645
+ ]), Q = C(() => {
1640
1646
  let e = /* @__PURE__ */ new Map();
1641
- for (let t of $e) {
1647
+ for (let t of Xe) {
1642
1648
  let n = `${t.group}:${t.section}`, r = e.get(n);
1643
1649
  r ? r.fields.push(t) : e.set(n, {
1644
1650
  group: t.group,
@@ -1647,299 +1653,299 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1647
1653
  });
1648
1654
  }
1649
1655
  return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
1650
- }, [$e]), $ = (t) => {
1651
- e === void 0 && ke(t), n?.(t), U("idle");
1652
- }, at = (e) => {
1653
- ae === void 0 && je(e), x?.(e), U("idle");
1654
- }, dt = (e) => {
1656
+ }, [Xe]), $ = (t) => {
1657
+ e === void 0 && ke(t), n?.(t), H("idle");
1658
+ }, rt = (e) => {
1659
+ h === void 0 && je(e), b?.(e), H("idle");
1660
+ }, it = (e) => {
1655
1661
  $({
1656
- ...j,
1657
- [j.mode]: {
1658
- ...j[j.mode],
1662
+ ...k,
1663
+ [k.mode]: {
1664
+ ...k[k.mode],
1659
1665
  ...e
1660
1666
  }
1661
1667
  });
1662
- }, ft = (e) => {
1668
+ }, ut = (e) => {
1663
1669
  $({
1664
- ...j,
1670
+ ...k,
1665
1671
  shared: {
1666
- ...j.shared,
1672
+ ...k.shared,
1667
1673
  ...e
1668
1674
  }
1669
1675
  });
1670
- }, pt = (e) => {
1671
- e !== j.mode && ($({
1672
- ...j,
1676
+ }, dt = (e) => {
1677
+ e !== k.mode && ($({
1678
+ ...k,
1673
1679
  mode: e
1674
1680
  }), r?.(e));
1675
- }, mt = async () => {
1681
+ }, ft = async () => {
1676
1682
  try {
1677
1683
  if (J) throw J;
1678
- if (Ge(!0), !q) throw Error(A.invalidTheme);
1679
- C ? await C(q) : Ie(q), U("exported");
1684
+ if (W(!0), !q) throw Error(O.invalidTheme);
1685
+ x ? await x(q) : Ie(q), H("exported");
1680
1686
  } catch (e) {
1681
- O?.(e);
1687
+ D?.(e);
1682
1688
  } finally {
1683
- Ge(!1);
1689
+ W(!1);
1684
1690
  }
1685
- }, ht = async (e) => {
1691
+ }, pt = async (e) => {
1686
1692
  try {
1687
- if (he) await he(e);
1693
+ if (S) await S(e);
1688
1694
  else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
1689
1695
  else throw Error("Clipboard access is unavailable. Provide onCopy for this environment.");
1690
- U("copied");
1696
+ H("copied");
1691
1697
  } catch (e) {
1692
- O?.(e);
1698
+ D?.(e);
1693
1699
  }
1694
- }, gt = () => {
1700
+ }, mt = () => {
1695
1701
  try {
1696
- if (!q) throw J ?? Error(A.invalidTheme);
1702
+ if (!q) throw J ?? Error(O.invalidTheme);
1697
1703
  Le({
1698
1704
  fileName: q.providerFileName,
1699
1705
  text: q.providerConfigText,
1700
1706
  mimeType: "text/typescript;charset=utf-8"
1701
- }), U("exported");
1707
+ }), H("exported");
1702
1708
  } catch (e) {
1703
- O?.(e);
1709
+ D?.(e);
1704
1710
  }
1705
- }, _t = () => {
1706
- let e = j, t = M({ mode: j.mode });
1707
- $(t), ve?.(e), U("idle");
1708
- }, vt = J ? A.invalidTheme : Ue === "copied" ? A.copiedStatus : Ue === "exported" ? A.exportedStatus : null, yt = P === "colors" ? /* @__PURE__ */ E(b, {
1711
+ }, ht = () => {
1712
+ let e = k, t = j({ mode: k.mode });
1713
+ $(t), ve?.(e), H("idle");
1714
+ }, gt = J ? O.invalidTheme : He === "copied" ? O.copiedStatus : He === "exported" ? O.exportedStatus : null, _t = M === "colors" ? /* @__PURE__ */ T(y, {
1709
1715
  className: "theme-tweaker--recipe",
1710
- label: A.autoPalette,
1711
- description: A.autoPaletteDescription,
1712
- value: z,
1716
+ label: O.autoPalette,
1717
+ description: O.autoPaletteDescription,
1718
+ value: I,
1713
1719
  onValueChange: Me
1714
- }) : P === "typography" ? /* @__PURE__ */ E(te, {
1715
- title: A.typeRecipeTitle,
1716
- description: A.typeRecipeDescription,
1720
+ }) : M === "typography" ? /* @__PURE__ */ T(ne, {
1721
+ title: O.typeRecipeTitle,
1722
+ description: O.typeRecipeDescription,
1717
1723
  surface: "flat",
1718
1724
  padding: "none",
1719
1725
  className: "theme-tweaker--recipe",
1720
- children: /* @__PURE__ */ D(d, {
1726
+ children: /* @__PURE__ */ E(d, {
1721
1727
  columns: 1,
1722
1728
  gap: "md",
1723
1729
  className: "@2xl/theme-tweaker-controls:grid-cols-2",
1724
- children: [/* @__PURE__ */ E(y, {
1725
- label: A.baseTypeSize,
1726
- children: /* @__PURE__ */ E(S, {
1727
- "aria-label": A.baseTypeSize,
1728
- value: Pe,
1730
+ children: [/* @__PURE__ */ T(v, {
1731
+ label: O.baseTypeSize,
1732
+ children: /* @__PURE__ */ T(le, {
1733
+ "aria-label": O.baseTypeSize,
1734
+ value: R,
1729
1735
  min: 14,
1730
1736
  max: 20,
1731
1737
  step: 1,
1732
1738
  onValueChange: (e) => {
1733
- Re(e), ft(et({
1739
+ Pe(e), ut(Qe({
1734
1740
  baseSize: e,
1735
- ratio: Be
1741
+ ratio: Re
1736
1742
  }));
1737
1743
  }
1738
1744
  })
1739
- }), /* @__PURE__ */ E(y, {
1740
- label: A.typeRatio,
1741
- children: /* @__PURE__ */ E(S, {
1742
- "aria-label": A.typeRatio,
1743
- value: Be,
1745
+ }), /* @__PURE__ */ T(v, {
1746
+ label: O.typeRatio,
1747
+ children: /* @__PURE__ */ T(le, {
1748
+ "aria-label": O.typeRatio,
1749
+ value: Re,
1744
1750
  min: 1.125,
1745
1751
  max: 1.333,
1746
1752
  step: .01,
1747
1753
  onValueChange: (e) => {
1748
- H(e), ft(et({
1749
- baseSize: Pe,
1754
+ Be(e), ut(Qe({
1755
+ baseSize: R,
1750
1756
  ratio: e
1751
1757
  }));
1752
1758
  }
1753
1759
  })
1754
1760
  })]
1755
1761
  })
1756
- }) : P === "shape" ? /* @__PURE__ */ E(te, {
1757
- title: A.elevationRecipeTitle,
1758
- description: A.elevationRecipeDescription,
1762
+ }) : M === "shape" ? /* @__PURE__ */ T(ne, {
1763
+ title: O.elevationRecipeTitle,
1764
+ description: O.elevationRecipeDescription,
1759
1765
  surface: "flat",
1760
1766
  padding: "none",
1761
1767
  className: "theme-tweaker--recipe",
1762
- children: /* @__PURE__ */ E(y, {
1763
- label: A.elevationIntensity,
1764
- children: /* @__PURE__ */ E(S, {
1765
- "aria-label": A.elevationIntensity,
1766
- value: Ve,
1768
+ children: /* @__PURE__ */ T(v, {
1769
+ label: O.elevationIntensity,
1770
+ children: /* @__PURE__ */ T(le, {
1771
+ "aria-label": O.elevationIntensity,
1772
+ value: V,
1767
1773
  min: 0,
1768
1774
  max: 1,
1769
1775
  step: .05,
1770
1776
  onValueChange: (e) => {
1771
- He(e), dt(tt({ intensity: e }));
1777
+ Ve(e), it($e({ intensity: e }));
1772
1778
  }
1773
1779
  })
1774
1780
  })
1775
- }) : null, bt = /* @__PURE__ */ D("div", {
1776
- className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", g !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
1781
+ }) : null, vt = /* @__PURE__ */ E("div", {
1782
+ className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", te !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
1777
1783
  children: [
1778
- /* @__PURE__ */ D(f, {
1784
+ /* @__PURE__ */ E(f, {
1779
1785
  gap: "lg",
1780
1786
  className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
1781
- children: [/* @__PURE__ */ D(f, {
1787
+ children: [/* @__PURE__ */ E(f, {
1782
1788
  gap: "lg",
1783
1789
  className: "theme-tweaker--header shrink-0",
1784
1790
  children: [
1785
- le ? /* @__PURE__ */ D(f, {
1791
+ ue ? /* @__PURE__ */ E(f, {
1786
1792
  gap: "normal",
1787
1793
  className: "theme-tweaker--intro",
1788
- children: [/* @__PURE__ */ D(f, {
1794
+ children: [/* @__PURE__ */ E(f, {
1789
1795
  direction: "horizontal",
1790
1796
  gap: "sm",
1791
1797
  align: "center",
1792
1798
  wrap: !0,
1793
- children: [/* @__PURE__ */ E(u, {
1799
+ children: [/* @__PURE__ */ T(c, {
1794
1800
  tag: "h2",
1795
1801
  className: "theme-tweaker--title",
1796
- children: A.title
1797
- }), /* @__PURE__ */ E(_, {
1802
+ children: O.title
1803
+ }), /* @__PURE__ */ T(g, {
1798
1804
  tone: "secondary",
1799
- children: a(A.changedCount, { count: X })
1805
+ children: a(O.changedCount, { count: X })
1800
1806
  })]
1801
- }), /* @__PURE__ */ E(l, {
1807
+ }), /* @__PURE__ */ T(l, {
1802
1808
  type: "secondary",
1803
1809
  className: "theme-tweaker--description",
1804
- children: A.description
1810
+ children: O.description
1805
1811
  })]
1806
1812
  }) : null,
1807
- /* @__PURE__ */ D(f, {
1813
+ /* @__PURE__ */ E(f, {
1808
1814
  direction: "horizontal",
1809
1815
  justify: "between",
1810
1816
  align: "center",
1811
1817
  wrap: !0,
1812
1818
  gap: "sm",
1813
1819
  className: "theme-tweaker--toolbar",
1814
- children: [/* @__PURE__ */ E(f, {
1820
+ children: [/* @__PURE__ */ T(f, {
1815
1821
  direction: "horizontal",
1816
1822
  gap: "sm",
1817
1823
  align: "center",
1818
1824
  wrap: !0,
1819
- children: /* @__PURE__ */ E(pe, {
1820
- value: j.mode,
1821
- onValueChange: (e) => pt(e),
1822
- children: /* @__PURE__ */ D(fe, { children: [/* @__PURE__ */ D(de, {
1825
+ children: /* @__PURE__ */ T(me, {
1826
+ value: k.mode,
1827
+ onValueChange: (e) => dt(e),
1828
+ children: /* @__PURE__ */ E(pe, { children: [/* @__PURE__ */ E(fe, {
1823
1829
  value: "light",
1824
- children: [/* @__PURE__ */ E(De, { className: "size-icon-sm" }), A.lightMode]
1825
- }), /* @__PURE__ */ D(de, {
1830
+ children: [/* @__PURE__ */ T(Oe, { className: "size-icon-sm" }), O.lightMode]
1831
+ }), /* @__PURE__ */ E(fe, {
1826
1832
  value: "dark",
1827
- children: [/* @__PURE__ */ E(Se, { className: "size-icon-sm" }), A.darkMode]
1833
+ children: [/* @__PURE__ */ T(Se, { className: "size-icon-sm" }), O.darkMode]
1828
1834
  })] })
1829
1835
  })
1830
- }), /* @__PURE__ */ D(f, {
1836
+ }), /* @__PURE__ */ E(f, {
1831
1837
  direction: "horizontal",
1832
1838
  gap: "xs",
1833
1839
  align: "center",
1834
1840
  justify: "end",
1835
1841
  wrap: !1,
1836
1842
  className: "theme-tweaker--actions",
1837
- children: [/* @__PURE__ */ E(c, {
1843
+ children: [/* @__PURE__ */ T(u, {
1844
+ tone: "primary",
1838
1845
  type: "button",
1839
- icon: ye,
1840
1846
  disabled: !!J,
1841
1847
  onClick: () => {
1842
- U("idle"), We.show();
1848
+ H("idle"), U.show();
1843
1849
  },
1844
- children: A.export
1845
- }), be]
1850
+ children: O.export
1851
+ }), ye]
1846
1852
  })]
1847
1853
  }),
1848
- /* @__PURE__ */ E(y, {
1849
- label: /* @__PURE__ */ E(l, {
1854
+ /* @__PURE__ */ T(v, {
1855
+ label: /* @__PURE__ */ T(l, {
1850
1856
  tag: "span",
1851
1857
  size: "inherit",
1852
1858
  className: "sr-only",
1853
- children: A.searchLabel
1859
+ children: O.searchLabel
1854
1860
  }),
1855
1861
  className: "theme-tweaker--search",
1856
- children: /* @__PURE__ */ E(v, {
1857
- value: I,
1858
- onChange: (e) => L(e.target.value),
1859
- placeholder: A.searchPlaceholder,
1860
- startIcon: we,
1862
+ children: /* @__PURE__ */ T(_, {
1863
+ value: P,
1864
+ onChange: (e) => F(e.target.value),
1865
+ placeholder: O.searchPlaceholder,
1866
+ startIcon: Te,
1861
1867
  clearable: !0,
1862
- onClear: () => L(""),
1863
- "aria-description": A.searchHint
1868
+ onClear: () => F(""),
1869
+ "aria-description": O.searchHint
1864
1870
  })
1865
1871
  })
1866
1872
  ]
1867
- }), /* @__PURE__ */ D(f, {
1873
+ }), /* @__PURE__ */ E(f, {
1868
1874
  gap: "lg",
1869
1875
  className: "theme-tweaker--workspace min-h-0",
1870
- children: [/* @__PURE__ */ E("nav", {
1871
- "aria-label": A.groupNavigationLabel,
1876
+ children: [/* @__PURE__ */ T("nav", {
1877
+ "aria-label": O.groupNavigationLabel,
1872
1878
  className: "theme-tweaker--navigation min-w-0",
1873
- children: /* @__PURE__ */ E(pe, {
1874
- value: P,
1879
+ children: /* @__PURE__ */ T(me, {
1880
+ value: M,
1875
1881
  onValueChange: (e) => {
1876
- L(""), F(e);
1882
+ F(""), N(e);
1877
1883
  },
1878
1884
  className: "w-full",
1879
- children: /* @__PURE__ */ E(fe, {
1885
+ children: /* @__PURE__ */ T(pe, {
1880
1886
  scrollable: !0,
1881
1887
  scrollStrings: {
1882
- previous: A.previousGroup,
1883
- next: A.nextGroup
1888
+ previous: O.previousGroup,
1889
+ next: O.nextGroup
1884
1890
  },
1885
1891
  className: "theme-tweaker--group-list",
1886
- children: nt.map((e) => {
1887
- let t = rt[e];
1888
- return /* @__PURE__ */ D(de, {
1892
+ children: et.map((e) => {
1893
+ let t = tt[e];
1894
+ return /* @__PURE__ */ E(fe, {
1889
1895
  value: e,
1890
- onClick: () => L(""),
1896
+ onClick: () => F(""),
1891
1897
  className: "theme-tweaker--group-trigger",
1892
- children: [/* @__PURE__ */ E(t, { "aria-hidden": "true" }), /* @__PURE__ */ E(l, {
1898
+ children: [/* @__PURE__ */ T(t, { "aria-hidden": "true" }), /* @__PURE__ */ T(l, {
1893
1899
  tag: "span",
1894
1900
  size: "inherit",
1895
1901
  weight: "medium",
1896
1902
  className: "min-w-0 flex-1 truncate text-left",
1897
- children: A.groups[e]
1903
+ children: O.groups[e]
1898
1904
  })]
1899
1905
  }, e);
1900
1906
  })
1901
1907
  })
1902
1908
  })
1903
- }), /* @__PURE__ */ D(f, {
1909
+ }), /* @__PURE__ */ E(f, {
1904
1910
  gap: "lg",
1905
1911
  className: "theme-tweaker--body theme-tweaker--editor min-h-0 min-w-0",
1906
1912
  children: [
1907
- /* @__PURE__ */ D(f, {
1913
+ /* @__PURE__ */ E(f, {
1908
1914
  gap: "normal",
1909
1915
  className: "theme-tweaker--editor-heading",
1910
- children: [/* @__PURE__ */ D(f, {
1916
+ children: [/* @__PURE__ */ E(f, {
1911
1917
  direction: "horizontal",
1912
1918
  gap: "sm",
1913
1919
  align: "center",
1914
1920
  wrap: !0,
1915
1921
  children: [
1916
- /* @__PURE__ */ E(u, {
1922
+ /* @__PURE__ */ T(c, {
1917
1923
  tag: "h3",
1918
- children: Z ? A.allGroups : A.groups[P]
1924
+ children: Z ? O.allGroups : O.groups[M]
1919
1925
  }),
1920
- le ? null : /* @__PURE__ */ E(_, {
1926
+ ue ? null : /* @__PURE__ */ T(g, {
1921
1927
  tone: "secondary",
1922
- children: a(A.changedCount, { count: X })
1928
+ children: a(O.changedCount, { count: X })
1923
1929
  }),
1924
- Z ? /* @__PURE__ */ E(_, {
1930
+ Z ? /* @__PURE__ */ T(g, {
1925
1931
  tone: "secondary",
1926
1932
  role: "status",
1927
1933
  "aria-live": "polite",
1928
- children: a(A.searchResults, { count: $e.length })
1934
+ children: a(O.searchResults, { count: Xe.length })
1929
1935
  }) : null
1930
1936
  ]
1931
- }), /* @__PURE__ */ E(l, {
1937
+ }), /* @__PURE__ */ T(l, {
1932
1938
  size: "xs",
1933
1939
  type: "secondary",
1934
- children: Z ? A.searchHint : A.groupDescriptions[P]
1940
+ children: Z ? O.searchHint : O.groupDescriptions[M]
1935
1941
  })]
1936
1942
  }),
1937
- Z ? null : yt,
1938
- P === "defaults" && !Z ? /* @__PURE__ */ E(Xe, {
1939
- config: N,
1940
- onChange: at,
1941
- strings: A.providerSettings
1942
- }) : Q.length > 0 ? /* @__PURE__ */ E(oe, {
1943
+ Z ? null : _t,
1944
+ M === "defaults" && !Z ? /* @__PURE__ */ T(Je, {
1945
+ config: A,
1946
+ onChange: rt,
1947
+ strings: O.providerSettings
1948
+ }) : Q.length > 0 ? /* @__PURE__ */ T(oe, {
1943
1949
  multiple: !0,
1944
1950
  defaultValue: [`${Q[0].group}:${Q[0].section}`],
1945
1951
  variant: "bordered",
@@ -1947,137 +1953,136 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1947
1953
  className: "theme-tweaker--sections shrink-0",
1948
1954
  itemClassName: "theme-tweaker--section",
1949
1955
  items: Q.map((e) => {
1950
- let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? A.mixedScope : t.has("shared") ? A.sharedScope : j.mode === "light" ? A.lightMode : A.darkMode, r = Z ? a(A.groupSectionLabel, {
1951
- group: A.groups[e.group],
1952
- section: A.sections[e.section]
1953
- }) : A.sections[e.section];
1956
+ let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? O.mixedScope : t.has("shared") ? O.sharedScope : k.mode === "light" ? O.lightMode : O.darkMode, r = Z ? a(O.groupSectionLabel, {
1957
+ group: O.groups[e.group],
1958
+ section: O.sections[e.section]
1959
+ }) : O.sections[e.section];
1954
1960
  return {
1955
1961
  value: `${e.group}:${e.section}`,
1956
1962
  title: r,
1957
- description: a(A.variableCount, { count: e.fields.length }),
1958
- badge: /* @__PURE__ */ E(_, {
1963
+ description: a(O.variableCount, { count: e.fields.length }),
1964
+ badge: /* @__PURE__ */ T(g, {
1959
1965
  tone: "secondary",
1960
1966
  children: n
1961
1967
  }),
1962
- content: /* @__PURE__ */ E(f, {
1968
+ content: /* @__PURE__ */ T(f, {
1963
1969
  gap: "none",
1964
1970
  className: "theme-tweaker--fields",
1965
1971
  children: e.fields.map((e) => {
1966
- let t = e.scope === "shared" ? "shared" : j.mode, n = j[t][e.name] ?? "";
1967
- return /* @__PURE__ */ E(ct, {
1972
+ let t = e.scope === "shared" ? "shared" : k.mode, n = k[t][e.name] ?? "";
1973
+ return /* @__PURE__ */ T(st, {
1968
1974
  field: e,
1969
1975
  value: n,
1970
- effectiveValue: qe[e.name] ?? "",
1971
- strings: A,
1976
+ effectiveValue: Ge[e.name] ?? "",
1977
+ strings: O,
1972
1978
  onChange: (t) => {
1973
- if (e.name === "--primary" && z && t.trim()) {
1974
- dt(Qe({
1979
+ if (e.name === "--primary" && I && t.trim()) {
1980
+ it(Ze({
1975
1981
  primary: t,
1976
- mode: j.mode
1982
+ mode: k.mode
1977
1983
  }));
1978
1984
  return;
1979
1985
  }
1980
- $(ut(j, e, t));
1986
+ $(lt(k, e, t));
1981
1987
  },
1982
- onReset: () => $(ut(j, e, ""))
1988
+ onReset: () => $(lt(k, e, ""))
1983
1989
  }, e.name);
1984
1990
  })
1985
1991
  })
1986
1992
  };
1987
1993
  })
1988
- }, `${P}:${Z}`) : /* @__PURE__ */ E(l, {
1994
+ }, `${M}:${Z}`) : /* @__PURE__ */ T(l, {
1989
1995
  type: "secondary",
1990
1996
  className: "theme-tweaker--empty rounded-radius border border-dashed border-border p-surface",
1991
- children: A.emptySearch
1997
+ children: O.emptySearch
1992
1998
  })
1993
1999
  ]
1994
2000
  })]
1995
2001
  })]
1996
2002
  }),
1997
- g === !1 ? null : /* @__PURE__ */ E(f, {
2003
+ te === !1 ? null : /* @__PURE__ */ T(f, {
1998
2004
  className: "theme-tweaker--preview min-w-0 self-start",
1999
- children: g ?? /* @__PURE__ */ E(lt, { strings: A })
2005
+ children: te ?? /* @__PURE__ */ T(ct, { strings: O })
2000
2006
  }),
2001
- /* @__PURE__ */ E(ie, {
2002
- ...We.overlayProps,
2003
- title: A.exportDialogTitle,
2004
- description: A.exportDialogDescription,
2007
+ /* @__PURE__ */ T(ae, {
2008
+ ...U.overlayProps,
2009
+ title: O.exportDialogTitle,
2010
+ description: O.exportDialogDescription,
2005
2011
  showCloseButton: !1,
2006
2012
  showCancel: !1,
2007
2013
  showConfirm: !1,
2008
- surfaceStyle: B(j),
2009
- className: s("theme-tweaker--export-dialog sm:max-w-4xl", j.mode),
2010
- footer: /* @__PURE__ */ D(f, {
2014
+ surfaceStyle: z(k),
2015
+ className: s("theme-tweaker--export-dialog sm:max-w-4xl", k.mode),
2016
+ footer: /* @__PURE__ */ E(f, {
2011
2017
  direction: "horizontal",
2012
2018
  align: "center",
2013
2019
  justify: "between",
2014
2020
  className: "theme-tweaker--export-footer w-full",
2015
- children: [/* @__PURE__ */ E(c, {
2021
+ children: [/* @__PURE__ */ T(u, {
2016
2022
  type: "button",
2017
2023
  tone: "secondary",
2018
2024
  buttonStyle: "ghost",
2019
- icon: Ce,
2025
+ icon: we,
2020
2026
  disabled: X === 0,
2021
- onClick: _t,
2022
- children: A.reset
2023
- }), /* @__PURE__ */ E(re, { render: /* @__PURE__ */ E(c, {
2024
- tone: "secondary",
2025
- buttonStyle: "outline",
2026
- children: A.close
2027
- }) })]
2027
+ onClick: ht,
2028
+ children: O.reset
2029
+ }), /* @__PURE__ */ T(u, {
2030
+ onClick: U.hide,
2031
+ children: O.close
2032
+ })]
2028
2033
  }),
2029
- children: /* @__PURE__ */ D(f, {
2034
+ children: /* @__PURE__ */ E(f, {
2030
2035
  gap: "xl",
2031
2036
  className: "theme-tweaker--export-body",
2032
2037
  children: [
2033
- /* @__PURE__ */ E(it, {
2034
- title: A.cssOutputLabel,
2035
- description: A.cssOutputDescription,
2038
+ /* @__PURE__ */ T(nt, {
2039
+ title: O.cssOutputLabel,
2040
+ description: O.cssOutputDescription,
2036
2041
  code: Y,
2037
- copyLabel: A.copy,
2038
- downloadLabel: W ? A.exportPending : A.downloadCss,
2039
- downloading: W,
2040
- onCopy: () => void ht(Y),
2041
- onDownload: () => void mt()
2042
+ copyLabel: O.copy,
2043
+ downloadLabel: Ue ? O.exportPending : O.downloadCss,
2044
+ downloading: Ue,
2045
+ onCopy: () => void pt(Y),
2046
+ onDownload: () => void ft()
2042
2047
  }),
2043
- /* @__PURE__ */ E(it, {
2044
- title: A.providerOutputLabel,
2045
- description: A.providerOutputDescription,
2048
+ /* @__PURE__ */ T(nt, {
2049
+ title: O.providerOutputLabel,
2050
+ description: O.providerOutputDescription,
2046
2051
  code: q?.providerConfigText ?? "",
2047
- copyLabel: A.copyProvider,
2048
- downloadLabel: A.downloadProvider,
2049
- onCopy: () => void ht(q?.providerConfigText ?? ""),
2050
- onDownload: gt
2052
+ copyLabel: O.copyProvider,
2053
+ downloadLabel: O.downloadProvider,
2054
+ onCopy: () => void pt(q?.providerConfigText ?? ""),
2055
+ onDownload: mt
2051
2056
  }),
2052
- vt ? /* @__PURE__ */ E(l, {
2057
+ gt ? /* @__PURE__ */ T(l, {
2053
2058
  tag: "div",
2054
2059
  size: "xs",
2055
2060
  type: J ? "error" : "secondary",
2056
2061
  role: "status",
2057
2062
  "aria-live": "polite",
2058
2063
  className: "theme-tweaker--status",
2059
- children: vt
2064
+ children: gt
2060
2065
  }) : null
2061
2066
  ]
2062
2067
  })
2063
2068
  })
2064
2069
  ]
2065
2070
  });
2066
- return p === "self" ? /* @__PURE__ */ E(V, {
2067
- ...Te,
2071
+ return p === "self" ? /* @__PURE__ */ T(B, {
2072
+ ...Ce,
2068
2073
  ref: G,
2069
- theme: m ? j : M({ mode: j.mode }),
2070
- className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", k),
2071
- children: bt
2072
- }) : /* @__PURE__ */ E("div", {
2073
- ...Te,
2074
+ theme: m ? k : j({ mode: k.mode }),
2075
+ className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", xe),
2076
+ children: vt
2077
+ }) : /* @__PURE__ */ T("div", {
2078
+ ...Ce,
2074
2079
  ref: G,
2075
- className: s("theme-tweaker--component @container/theme-tweaker", k),
2076
- children: bt
2080
+ className: s("theme-tweaker--component @container/theme-tweaker", xe),
2081
+ children: vt
2077
2082
  });
2078
2083
  });
2079
- dt.displayName = "ThemeTweaker";
2084
+ ut.displayName = "ThemeTweaker";
2080
2085
  //#endregion
2081
- export { Be as AdminUIThemeProvider, V as ThemeScope, dt as ThemeTweaker, B as adminUIThemeToStyle, Ne as countAdminUIThemeOverrides, M as createAdminUITheme, Pe as createScopedAdminUIThemeSelectors, R as createSerializableUIConfig, Fe as createThemeTweakerExportArtifact, ke as defaultAdminUIThemeSelectors, J as defaultThemeProviderSettingsStrings, Ye as defaultThemeTweakerFields, Ze as defaultThemeTweakerStrings, tt as deriveAdminUIElevation, Qe as deriveAdminUIPalette, et as deriveAdminUITypeScale, Ie as downloadAdminUITheme, Me as getActiveAdminUIThemeOverrides, N as isAdminUIThemeVariableName, L as serializeAdminUITheme, z as serializeUIProviderConfig };
2086
+ export { Be as AdminUIThemeProvider, B as ThemeScope, ut as ThemeTweaker, z as adminUIThemeToStyle, Ne as countAdminUIThemeOverrides, j as createAdminUITheme, Pe as createScopedAdminUIThemeSelectors, L as createSerializableUIConfig, Fe as createThemeTweakerExportArtifact, k as defaultAdminUIThemeSelectors, Y as defaultThemeProviderSettingsStrings, qe as defaultThemeTweakerFields, Ye as defaultThemeTweakerStrings, $e as deriveAdminUIElevation, Ze as deriveAdminUIPalette, Qe as deriveAdminUITypeScale, Ie as downloadAdminUITheme, R as getActiveAdminUIThemeOverrides, M as isAdminUIThemeVariableName, I as serializeAdminUITheme, Me as serializeUIProviderConfig };
2082
2087
 
2083
2088
  //# sourceMappingURL=theme-tweaker.js.map