themelia-react-ui 2.0.5 → 2.0.6

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 (489) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/MIGRATION.md +119 -0
  3. package/README.md +13 -6
  4. package/dist/{accordion-B9MHG0cT.js → accordion-0tQUZ20r.js} +7 -7
  5. package/dist/accordion-0tQUZ20r.js.map +1 -0
  6. package/dist/{action-menu-Dr8K-ghE.js → action-menu-C0gjzLyE.js} +7 -7
  7. package/dist/{action-menu-Dr8K-ghE.js.map → action-menu-C0gjzLyE.js.map} +1 -1
  8. package/dist/{ai-artifact-C58tQcBy.js → ai-artifact-CGGpQryR.js} +172 -157
  9. package/dist/ai-artifact-CGGpQryR.js.map +1 -0
  10. package/dist/{app-shell-B_IuNWOo.js → app-shell-EHuuRDGy.js} +5 -5
  11. package/dist/{app-shell-B_IuNWOo.js.map → app-shell-EHuuRDGy.js.map} +1 -1
  12. package/dist/{attachment-Dg_69lPS.js → attachment-BCpA4e7i.js} +8 -8
  13. package/dist/{attachment-Dg_69lPS.js.map → attachment-BCpA4e7i.js.map} +1 -1
  14. package/dist/{auth-DTkkshS8.js → auth-B0girIk_.js} +15 -15
  15. package/dist/auth-B0girIk_.js.map +1 -0
  16. package/dist/{avatar-CeZaFmNH.js → avatar-B9Jnp-T-.js} +3 -3
  17. package/dist/{avatar-CeZaFmNH.js.map → avatar-B9Jnp-T-.js.map} +1 -1
  18. package/dist/{badge-xIiV_E7f.js → badge-wWauMgAt.js} +3 -3
  19. package/dist/{badge-xIiV_E7f.js.map → badge-wWauMgAt.js.map} +1 -1
  20. package/dist/base/accordion.js +1 -1
  21. package/dist/base/action-menu.js +1 -1
  22. package/dist/base/attachment.js +1 -1
  23. package/dist/base/avatar.js +1 -1
  24. package/dist/base/badge.js +1 -1
  25. package/dist/base/batch-action-bar.js +1 -1
  26. package/dist/base/buttons.js +1 -1
  27. package/dist/base/cards.js +2 -2
  28. package/dist/base/carousel.js +3 -3
  29. package/dist/base/cascader.js +1 -1
  30. package/dist/base/chart.js +1 -1
  31. package/dist/base/choice-inputs.js +2 -2
  32. package/dist/base/code-block.js +1 -1
  33. package/dist/base/combobox.js +1 -1
  34. package/dist/base/command.js +1 -1
  35. package/dist/base/copyable.js +1 -1
  36. package/dist/base/date-pickers.js +2 -2
  37. package/dist/base/display.js +6 -6
  38. package/dist/base/feedback.js +4 -4
  39. package/dist/base/forms-numeric.js +1 -1
  40. package/dist/base/forms.js +2 -2
  41. package/dist/base/inline-edit.js +8 -8
  42. package/dist/base/item.js +1 -1
  43. package/dist/base/media-gallery.js +1 -1
  44. package/dist/base/metadata-list.js +1 -1
  45. package/dist/base/navigation.js +6 -6
  46. package/dist/base/popover-menu.js +1 -1
  47. package/dist/base/popover.js +1 -1
  48. package/dist/base/qr-code.js +1 -1
  49. package/dist/base/repeaters.js +195 -188
  50. package/dist/base/repeaters.js.map +1 -1
  51. package/dist/base/sheet.js +1 -1
  52. package/dist/base/sidebar.js +2 -2
  53. package/dist/base/signature-pad.js +7 -7
  54. package/dist/base/skeleton.js +1 -1
  55. package/dist/base/spinner.js +5 -5
  56. package/dist/base/spinner.js.map +1 -1
  57. package/dist/base/structure.js +1 -1
  58. package/dist/base/table.js +1 -1
  59. package/dist/base/text-inputs.js +2 -2
  60. package/dist/base/toaster.js +1 -1
  61. package/dist/base/tree.js +1 -1
  62. package/dist/base/upload-queue.js +1 -1
  63. package/dist/base/upload.js +3 -3
  64. package/dist/base/value-inputs.js +1 -1
  65. package/dist/{batch-action-bar-Cb8cuvyy.js → batch-action-bar-BoqWIIpV.js} +5 -5
  66. package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-BoqWIIpV.js.map} +1 -1
  67. package/dist/blocks/admin.js +17 -17
  68. package/dist/blocks/ai.js +227 -221
  69. package/dist/blocks/ai.js.map +1 -1
  70. package/dist/blocks/analytics/usage-card.js +1 -1
  71. package/dist/blocks/analytics.js +424 -449
  72. package/dist/blocks/analytics.js.map +1 -1
  73. package/dist/blocks/collaboration.js +1 -1
  74. package/dist/blocks/commerce/receipt.js +1 -1
  75. package/dist/blocks/commerce.js +225 -220
  76. package/dist/blocks/commerce.js.map +1 -1
  77. package/dist/blocks/data-display.js +2 -2
  78. package/dist/blocks/onboarding.js +5 -5
  79. package/dist/blocks/planning.js +11 -11
  80. package/dist/blocks/timelines.js +1 -1
  81. package/dist/{breadcrumbs-J-K2kl4c.js → breadcrumbs-Bp9Ke7kd.js} +4 -4
  82. package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
  83. package/dist/{button-S2Cubiiz.js → button-ChBovTx0.js} +2 -2
  84. package/dist/{button-S2Cubiiz.js.map → button-ChBovTx0.js.map} +1 -1
  85. package/dist/{buttons-BedGfygC.js → buttons-DeW0bQeK.js} +6 -6
  86. package/dist/{buttons-BedGfygC.js.map → buttons-DeW0bQeK.js.map} +1 -1
  87. package/dist/{cards-rNX1M4Xn.js → cards-CNXnmvV5.js} +8 -8
  88. package/dist/{cards-rNX1M4Xn.js.map → cards-CNXnmvV5.js.map} +1 -1
  89. package/dist/{cascader-B1MiqkBq.js → cascader-CrAl9zD5.js} +15 -15
  90. package/dist/{cascader-B1MiqkBq.js.map → cascader-CrAl9zD5.js.map} +1 -1
  91. package/dist/{chart-Darg_0Kv.js → chart-I7ROnsl8.js} +5 -5
  92. package/dist/{chart-Darg_0Kv.js.map → chart-I7ROnsl8.js.map} +1 -1
  93. package/dist/{checkbox-fflqmODR.js → checkbox-MoyHIAPs.js} +3 -3
  94. package/dist/{checkbox-fflqmODR.js.map → checkbox-MoyHIAPs.js.map} +1 -1
  95. package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-DHGtx0QV.js} +122 -110
  96. package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
  97. package/dist/{code-block-BzmM9Eig.js → code-block-BSJyq9e-.js} +7 -7
  98. package/dist/{code-block-BzmM9Eig.js.map → code-block-BSJyq9e-.js.map} +1 -1
  99. package/dist/{collapsible-BkAI_XD4.js → collapsible-BzJ91LUG.js} +3 -3
  100. package/dist/{collapsible-BkAI_XD4.js.map → collapsible-BzJ91LUG.js.map} +1 -1
  101. package/dist/{collection-content-gDh1v6O4.js → collection-content-CSnwtOTH.js} +3 -3
  102. package/dist/{collection-content-gDh1v6O4.js.map → collection-content-CSnwtOTH.js.map} +1 -1
  103. package/dist/{combobox-BEx0vJgF.js → combobox-Bcvu5J8O.js} +11 -10
  104. package/dist/{combobox-BEx0vJgF.js.map → combobox-Bcvu5J8O.js.map} +1 -1
  105. package/dist/combobox-C2JiSQPc.js +915 -0
  106. package/dist/combobox-C2JiSQPc.js.map +1 -0
  107. package/dist/{command-CrlPIL6m.js → command-9e52NPgK.js} +6 -6
  108. package/dist/{command-CrlPIL6m.js.map → command-9e52NPgK.js.map} +1 -1
  109. package/dist/{comments-Dmpp0YIc.js → comments-BsgErEqd.js} +33 -28
  110. package/dist/comments-BsgErEqd.js.map +1 -0
  111. package/dist/components/base/choice-inputs/choice-types.d.ts +4 -0
  112. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
  113. package/dist/components/base/combobox/combobox-field.d.ts +2 -2
  114. package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
  115. package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
  116. package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
  117. package/dist/components/base/feedback/state-display.d.ts +5 -1
  118. package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
  119. package/dist/components/base/forms/form-field.d.ts +7 -2
  120. package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -1
  121. package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
  122. package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
  123. package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
  124. package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
  125. package/dist/components/base/navigation/language-switcher.d.ts +12 -4
  126. package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
  127. package/dist/components/base/sidebar/sidebar.d.ts +2 -0
  128. package/dist/components/base/upload/avatar-upload.d.ts +2 -1
  129. package/dist/components/base/upload/image-upload.d.ts +2 -1
  130. package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
  131. package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
  132. package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
  133. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +2 -0
  134. package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
  135. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
  136. package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
  137. package/dist/components/blocks/analytics/types.d.ts +2 -2
  138. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  139. package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
  140. package/dist/components/features/activities/activities.types.d.ts +18 -11
  141. package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
  142. package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
  143. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
  144. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
  145. package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
  146. package/dist/components/features/combobox/combobox.d.ts +2 -2
  147. package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
  148. package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
  149. package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
  150. package/dist/components/features/combobox/types.d.ts +37 -8
  151. package/dist/components/features/email-composer/types.d.ts +3 -1
  152. package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
  153. package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
  154. package/dist/components/features/filters/filters.types.d.ts +3 -3
  155. package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
  156. package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
  157. package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
  158. package/dist/components/features/filters/utils/filter-utils.d.ts +5 -1
  159. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  160. package/dist/components/features/media-library/media-library.d.ts +1 -1
  161. package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
  162. package/dist/components/features/media-library/media-library.types.d.ts +36 -8
  163. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  164. package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
  165. package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
  166. package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
  167. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
  168. package/dist/components/features/products/products.types.d.ts +2 -2
  169. package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
  170. package/dist/components/features/resource/resource.d.ts +1 -1
  171. package/dist/components/features/resource/resource.types.d.ts +2 -0
  172. package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
  173. package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
  174. package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
  175. package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
  176. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  177. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
  178. package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
  179. package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
  180. package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
  181. package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
  182. package/dist/components/features/table/data-table.d.ts +1 -1
  183. package/dist/components/features/table/index.d.ts +1 -0
  184. package/dist/components/features/table/table-body.d.ts +1 -1
  185. package/dist/components/features/table/table-helpers.d.ts +6 -3
  186. package/dist/components/features/table/table.strings.d.ts +3 -0
  187. package/dist/components/features/table/table.types.d.ts +17 -1
  188. package/dist/components/layout/header/header.types.d.ts +3 -2
  189. package/dist/components/layout/layout.types.d.ts +5 -3
  190. package/dist/components/layout/navigation/side-nav.d.ts +3 -2
  191. package/dist/components/layout/normalize-layout-path.d.ts +1 -0
  192. package/dist/components/layout/settings/settings.d.ts +1 -1
  193. package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
  194. package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +3 -1
  195. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
  196. package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -0
  197. package/dist/components/primitives/link.d.ts +3 -2
  198. package/dist/components/primitives/money.d.ts +1 -1
  199. package/dist/components/primitives/number.d.ts +1 -1
  200. package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
  201. package/dist/{containers-CIxwbZt5.js → containers-CSdc32h9.js} +2 -2
  202. package/dist/{containers-CIxwbZt5.js.map → containers-CSdc32h9.js.map} +1 -1
  203. package/dist/{copyable-DIznBqiT.js → copyable-3fdHfMR3.js} +4 -4
  204. package/dist/{copyable-DIznBqiT.js.map → copyable-3fdHfMR3.js.map} +1 -1
  205. package/dist/{data-display-BdgCAw8T.js → data-display-Cmj-xZYl.js} +16 -15
  206. package/dist/data-display-Cmj-xZYl.js.map +1 -0
  207. package/dist/{date-Cq8ioE4o.js → date-Br0FicVv.js} +4 -4
  208. package/dist/{date-Cq8ioE4o.js.map → date-Br0FicVv.js.map} +1 -1
  209. package/dist/date-picker-CyQlFYsP.js +1617 -0
  210. package/dist/date-picker-CyQlFYsP.js.map +1 -0
  211. package/dist/date-pickers-tj2MXmXd.js +185 -0
  212. package/dist/date-pickers-tj2MXmXd.js.map +1 -0
  213. package/dist/{display-KsZLw9Ov.js → display-CT_N2a3w.js} +7 -7
  214. package/dist/{display-KsZLw9Ov.js.map → display-CT_N2a3w.js.map} +1 -1
  215. package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-C08iIugv.js} +6 -6
  216. package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-C08iIugv.js.map} +1 -1
  217. package/dist/features/activities.js +283 -270
  218. package/dist/features/activities.js.map +1 -1
  219. package/dist/features/ai-chat.js +40 -27
  220. package/dist/features/ai-chat.js.map +1 -1
  221. package/dist/features/appointment-calendar.js +126 -126
  222. package/dist/features/appointment-calendar.js.map +1 -1
  223. package/dist/features/async-preview.js +9 -9
  224. package/dist/features/combobox.js +1 -1
  225. package/dist/features/comments.js +1 -1
  226. package/dist/features/data-view.js +10 -10
  227. package/dist/features/email-composer.js +24 -19
  228. package/dist/features/email-composer.js.map +1 -1
  229. package/dist/features/event-calendar.js +129 -125
  230. package/dist/features/event-calendar.js.map +1 -1
  231. package/dist/features/filters.js +2 -2
  232. package/dist/features/global-search.js +16 -20
  233. package/dist/features/global-search.js.map +1 -1
  234. package/dist/features/kanban.js +18 -28
  235. package/dist/features/kanban.js.map +1 -1
  236. package/dist/features/map/style.css +15 -0
  237. package/dist/features/map.js +331 -314
  238. package/dist/features/map.js.map +1 -1
  239. package/dist/features/media-library.js +1044 -866
  240. package/dist/features/media-library.js.map +1 -1
  241. package/dist/features/mentions.js +2 -2
  242. package/dist/features/overlays.js +1 -1
  243. package/dist/features/products.js +978 -964
  244. package/dist/features/products.js.map +1 -1
  245. package/dist/features/questionnaire.js +159 -152
  246. package/dist/features/questionnaire.js.map +1 -1
  247. package/dist/features/resource-assignment.js +8 -8
  248. package/dist/features/resource.js +74 -71
  249. package/dist/features/resource.js.map +1 -1
  250. package/dist/features/rich-text-editor.js +28 -19
  251. package/dist/features/rich-text-editor.js.map +1 -1
  252. package/dist/features/schema-form.js +297 -256
  253. package/dist/features/schema-form.js.map +1 -1
  254. package/dist/features/suggestions.js +57 -50
  255. package/dist/features/suggestions.js.map +1 -1
  256. package/dist/features/sync.js +3 -3
  257. package/dist/features/table.js +1 -1
  258. package/dist/features/theme-tweaker.js +400 -399
  259. package/dist/features/theme-tweaker.js.map +1 -1
  260. package/dist/feedback-Dzo1xtAU.js +246 -0
  261. package/dist/feedback-Dzo1xtAU.js.map +1 -0
  262. package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-D6H7tVJi.js} +2 -2
  263. package/dist/{field-affordance-recipes-DWcNcOjh.js.map → field-affordance-recipes-D6H7tVJi.js.map} +1 -1
  264. package/dist/field-control-attributes-B6i335wr.js +18 -0
  265. package/dist/field-control-attributes-B6i335wr.js.map +1 -0
  266. package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
  267. package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
  268. package/dist/{filters-DzgSJpMK.js → filters-Dl80yYtN.js} +763 -605
  269. package/dist/filters-Dl80yYtN.js.map +1 -0
  270. package/dist/form-field-CAPdwdnZ.js +74 -0
  271. package/dist/form-field-CAPdwdnZ.js.map +1 -0
  272. package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-CgcrUbLU.js} +2 -2
  273. package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-CgcrUbLU.js.map} +1 -1
  274. package/dist/{forms-C0RGnJTe.js → forms-B3W8CH7-.js} +8 -8
  275. package/dist/{forms-C0RGnJTe.js.map → forms-B3W8CH7-.js.map} +1 -1
  276. package/dist/forms-numeric-CwjQJe-O.js +991 -0
  277. package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
  278. package/dist/{header-DMMxG__r.js → header-ZIIsRKxP.js} +113 -113
  279. package/dist/header-ZIIsRKxP.js.map +1 -0
  280. package/dist/hooks/use-files.d.ts +2 -0
  281. package/dist/{hooks-DB6CJ4MR.js → hooks-BitHSh-Y.js} +3 -3
  282. package/dist/{hooks-DB6CJ4MR.js.map → hooks-BitHSh-Y.js.map} +1 -1
  283. package/dist/{icon-badge-DZF-YjQp.js → icon-badge-npxF1SLX.js} +2 -2
  284. package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-npxF1SLX.js.map} +1 -1
  285. package/dist/index.js +1 -1
  286. package/dist/{input-CvyDQlY7.js → input-7KAc7XQL.js} +6 -6
  287. package/dist/{input-CvyDQlY7.js.map → input-7KAc7XQL.js.map} +1 -1
  288. package/dist/{input-DMBwAZmr.js → input-DIREVYHs.js} +3 -3
  289. package/dist/{input-DMBwAZmr.js.map → input-DIREVYHs.js.map} +1 -1
  290. package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
  291. package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
  292. package/dist/{item-DjCcM18E.js → item-FfWnaYST.js} +99 -98
  293. package/dist/item-FfWnaYST.js.map +1 -0
  294. package/dist/layout/app-shell.js +1 -1
  295. package/dist/layout/auth.js +1 -1
  296. package/dist/layout/containers.js +1 -1
  297. package/dist/layout/header.js +1 -1
  298. package/dist/layout/hooks.js +1 -1
  299. package/dist/layout/navigation.js +1 -1
  300. package/dist/layout/page.js +1 -1
  301. package/dist/layout/settings.js +1 -1
  302. package/dist/layout/sidebar.js +2 -2
  303. package/dist/layout/workspace.js +1 -1
  304. package/dist/layout.js +11 -11
  305. package/dist/layout.types-E_GAApzO.js +30 -0
  306. package/dist/layout.types-E_GAApzO.js.map +1 -0
  307. package/dist/lib/field-control-attributes.d.ts +11 -0
  308. package/dist/lib/field-state-recipes.d.ts +2 -0
  309. package/dist/lib/format.d.ts +1 -0
  310. package/dist/lib/surface-recipes.d.ts +1 -1
  311. package/dist/lib/token-merge.generated.d.ts +6 -6
  312. package/dist/lib/utils.js +1 -1
  313. package/dist/{media-gallery-C-vChPmE.js → media-gallery-C81DAnKI.js} +6 -6
  314. package/dist/{media-gallery-C-vChPmE.js.map → media-gallery-C81DAnKI.js.map} +1 -1
  315. package/dist/{mentions-0_4nWuI-.js → mentions-qOnedSt4.js} +236 -167
  316. package/dist/mentions-qOnedSt4.js.map +1 -0
  317. package/dist/message-BJHnn43M.js +135 -0
  318. package/dist/message-BJHnn43M.js.map +1 -0
  319. package/dist/{metadata-list-C3MkU-Om.js → metadata-list-XkqZ_UXH.js} +11 -11
  320. package/dist/{metadata-list-C3MkU-Om.js.map → metadata-list-XkqZ_UXH.js.map} +1 -1
  321. package/dist/{navigation-DaRjthVk.js → navigation-BgtPJAhi.js} +119 -119
  322. package/dist/navigation-BgtPJAhi.js.map +1 -0
  323. package/dist/{navigation-C90-oQFq.js → navigation-Bt-v7rWP.js} +52 -46
  324. package/dist/navigation-Bt-v7rWP.js.map +1 -0
  325. package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
  326. package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
  327. package/dist/{number-CRU3kGuk.js → number-CYqBcrSj.js} +78 -86
  328. package/dist/number-CYqBcrSj.js.map +1 -0
  329. package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-BQCA2Zn2.js} +7 -7
  330. package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-BQCA2Zn2.js.map} +1 -1
  331. package/dist/{overlays-BSgCtM2v.js → overlays-CC8zI3Du.js} +264 -260
  332. package/dist/overlays-CC8zI3Du.js.map +1 -0
  333. package/dist/{page-DUUKDAjo.js → page-BoQ1VaFJ.js} +13 -13
  334. package/dist/{page-DUUKDAjo.js.map → page-BoQ1VaFJ.js.map} +1 -1
  335. package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-DIKspJfx.js} +4 -4
  336. package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-DIKspJfx.js.map} +1 -1
  337. package/dist/{pagination-CgCjElfu.js → pagination-Br8TdV9A.js} +4 -4
  338. package/dist/{pagination-CgCjElfu.js.map → pagination-Br8TdV9A.js.map} +1 -1
  339. package/dist/{popover-B85RenIl.js → popover-k8TdUcAt.js} +10 -10
  340. package/dist/popover-k8TdUcAt.js.map +1 -0
  341. package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-yn-o0kyA.js} +7 -7
  342. package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
  343. package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-DJ0AkUan.js} +2 -2
  344. package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-DJ0AkUan.js.map} +1 -1
  345. package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-DyUXqUtD.js} +2 -2
  346. package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-DyUXqUtD.js.map} +1 -1
  347. package/dist/{primitives-ByWgGUgt.js → primitives-BkkQjYl7.js} +22 -17
  348. package/dist/primitives-BkkQjYl7.js.map +1 -0
  349. package/dist/primitives.js +4 -4
  350. package/dist/{progress-BJhQP9WX.js → progress-DZFXXzPs.js} +4 -4
  351. package/dist/{progress-BJhQP9WX.js.map → progress-DZFXXzPs.js.map} +1 -1
  352. package/dist/{receipt-tOc7B3hw.js → receipt-C7LhOg7Q.js} +6 -6
  353. package/dist/{receipt-tOc7B3hw.js.map → receipt-C7LhOg7Q.js.map} +1 -1
  354. package/dist/rich-text-BnTzZjIo.js +45 -0
  355. package/dist/rich-text-BnTzZjIo.js.map +1 -0
  356. package/dist/rich-text-editor-CAurDwT5.js +1273 -0
  357. package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
  358. package/dist/{rich-text-editor-toolbar-laT3tpBT.js → rich-text-editor-toolbar-DbXig7Jk.js} +36 -35
  359. package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
  360. package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
  361. package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
  362. package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
  363. package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
  364. package/dist/{scroll-area-B0dB2cBi.js → scroll-area-Bj6CRUif.js} +2 -2
  365. package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
  366. package/dist/{separator-Bb17I4pu.js → separator-B9ewiCGO.js} +2 -2
  367. package/dist/{separator-Bb17I4pu.js.map → separator-B9ewiCGO.js.map} +1 -1
  368. package/dist/{separator-Ct_WSWTJ.js → separator-DM6gs2vu.js} +3 -3
  369. package/dist/{separator-Ct_WSWTJ.js.map → separator-DM6gs2vu.js.map} +1 -1
  370. package/dist/services/actions.js +1 -1
  371. package/dist/settings-DZPHgpx4.js +155 -0
  372. package/dist/settings-DZPHgpx4.js.map +1 -0
  373. package/dist/{sheet-BGPERY55.js → sheet-C4DHsgLk.js} +6 -6
  374. package/dist/{sheet-BGPERY55.js.map → sheet-C4DHsgLk.js.map} +1 -1
  375. package/dist/sidebar-C8BnDwTH.js +709 -0
  376. package/dist/sidebar-C8BnDwTH.js.map +1 -0
  377. package/dist/{sidebar-f9gRWXIR.js → sidebar-CmD6a-HK.js} +16 -13
  378. package/dist/sidebar-CmD6a-HK.js.map +1 -0
  379. package/dist/{skeleton-BapcJd9C.js → skeleton-DDgdhmu9.js} +5 -5
  380. package/dist/{skeleton-BapcJd9C.js.map → skeleton-DDgdhmu9.js.map} +1 -1
  381. package/dist/{smart-card-CW0hjetE.js → smart-card-B6vLxqa_.js} +8 -8
  382. package/dist/{smart-card-CW0hjetE.js.map → smart-card-B6vLxqa_.js.map} +1 -1
  383. package/dist/{structure-DuxKl954.js → structure-DZJ2wbAU.js} +2 -2
  384. package/dist/{structure-DuxKl954.js.map → structure-DZJ2wbAU.js.map} +1 -1
  385. package/dist/style.css +1 -1
  386. package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
  387. package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
  388. package/dist/{table-CFOWY9pQ.js → table-CBonSdTp.js} +534 -486
  389. package/dist/table-CBonSdTp.js.map +1 -0
  390. package/dist/{table-B4TE7iOV.js → table-CXSPHH25.js} +75 -71
  391. package/dist/table-CXSPHH25.js.map +1 -0
  392. package/dist/{tabs-e7ko9S2o.js → tabs-C4Kr_hCr.js} +50 -49
  393. package/dist/tabs-C4Kr_hCr.js.map +1 -0
  394. package/dist/{text-inputs-B1culiSK.js → text-inputs-jdkS3ReG.js} +9 -9
  395. package/dist/{text-inputs-B1culiSK.js.map → text-inputs-jdkS3ReG.js.map} +1 -1
  396. package/dist/{timelines-D3Sl9ueq.js → timelines-CoPwdJP0.js} +10 -10
  397. package/dist/{timelines-D3Sl9ueq.js.map → timelines-CoPwdJP0.js.map} +1 -1
  398. package/dist/{tooltip-8wz5S_Zr.js → tooltip-31NwIpTo.js} +4 -4
  399. package/dist/{tooltip-8wz5S_Zr.js.map → tooltip-31NwIpTo.js.map} +1 -1
  400. package/dist/{tree-CzUJHnFs.js → tree-CeYVzdFE.js} +6 -6
  401. package/dist/{tree-CzUJHnFs.js.map → tree-CeYVzdFE.js.map} +1 -1
  402. package/dist/typography/rich-text.js +1 -1
  403. package/dist/{typography-BQnine1k.js → typography-C7-YMW1S.js} +2 -2
  404. package/dist/{typography-BQnine1k.js.map → typography-C7-YMW1S.js.map} +1 -1
  405. package/dist/typography.js +1 -1
  406. package/dist/{upload-BOW6U2tI.js → upload-Hdm5gObf.js} +303 -291
  407. package/dist/upload-Hdm5gObf.js.map +1 -0
  408. package/dist/{upload-queue-qUXn1ykN.js → upload-queue-D0sYPuqo.js} +8 -8
  409. package/dist/{upload-queue-qUXn1ykN.js.map → upload-queue-D0sYPuqo.js.map} +1 -1
  410. package/dist/{usage-card-BeSLY0i0.js → usage-card-9s8hLDfn.js} +9 -9
  411. package/dist/{usage-card-BeSLY0i0.js.map → usage-card-9s8hLDfn.js.map} +1 -1
  412. package/dist/{utils-B6kKb8jB.js → utils-DhuoqFy4.js} +31 -37
  413. package/dist/utils-DhuoqFy4.js.map +1 -0
  414. package/dist/{value-inputs-skdVB2zh.js → value-inputs-D3aPgq9H.js} +15 -15
  415. package/dist/{value-inputs-skdVB2zh.js.map → value-inputs-D3aPgq9H.js.map} +1 -1
  416. package/dist/{value-typography-uAmWUAL1.js → value-typography-uSzzG9Gf.js} +32 -26
  417. package/dist/value-typography-uSzzG9Gf.js.map +1 -0
  418. package/dist/{workspace-DHeHv0qw.js → workspace-CC8Vchiu.js} +12 -12
  419. package/dist/{workspace-DHeHv0qw.js.map → workspace-CC8Vchiu.js.map} +1 -1
  420. package/docs/consumer-skill/examples/edit.tsx +3 -3
  421. package/docs/consumer-skill/references/agents-md.md +19 -19
  422. package/docs/consumer-skill/references/analytics.md +15 -0
  423. package/docs/consumer-skill/references/component-contracts.json +14724 -13057
  424. package/docs/consumer-skill/references/composition.md +21 -4
  425. package/docs/consumer-skill/references/design-contract.md +1 -0
  426. package/docs/consumer-skill/references/installation.md +51 -8
  427. package/docs/consumer-skill/references/integration.md +24 -1
  428. package/docs/consumer-skill/references/public-api.json +172 -34
  429. package/docs/consumer-skill/references/review.md +51 -11
  430. package/docs/consumer-skill/references/rhf-workflows.md +72 -0
  431. package/docs/consumer-skill/references/theming.md +7 -2
  432. package/docs/consumer-skill/references/tokens.json +1 -1
  433. package/docs/consumer-skill/scripts/composition-policy.mjs +144 -30
  434. package/docs/consumer-skill/scripts/setup-skills.mjs +46 -9
  435. package/package.json +4 -2
  436. package/templates/admin-shell-template.tsx +1 -2
  437. package/templates/customers-template.tsx +18 -16
  438. package/dist/accordion-B9MHG0cT.js.map +0 -1
  439. package/dist/ai-artifact-C58tQcBy.js.map +0 -1
  440. package/dist/auth-DTkkshS8.js.map +0 -1
  441. package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
  442. package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
  443. package/dist/combobox-BwzoXFSG.js +0 -884
  444. package/dist/combobox-BwzoXFSG.js.map +0 -1
  445. package/dist/comments-Dmpp0YIc.js.map +0 -1
  446. package/dist/data-display-BdgCAw8T.js.map +0 -1
  447. package/dist/date-picker-RlIzKom_.js +0 -1551
  448. package/dist/date-picker-RlIzKom_.js.map +0 -1
  449. package/dist/date-pickers-DY-CpXS1.js +0 -179
  450. package/dist/date-pickers-DY-CpXS1.js.map +0 -1
  451. package/dist/feedback-Dm4izqFn.js +0 -240
  452. package/dist/feedback-Dm4izqFn.js.map +0 -1
  453. package/dist/filters-DzgSJpMK.js.map +0 -1
  454. package/dist/form-field-BriWAXyg.js +0 -63
  455. package/dist/form-field-BriWAXyg.js.map +0 -1
  456. package/dist/forms-numeric-DIhghX1Q.js +0 -910
  457. package/dist/forms-numeric-DIhghX1Q.js.map +0 -1
  458. package/dist/header-DMMxG__r.js.map +0 -1
  459. package/dist/item-DjCcM18E.js.map +0 -1
  460. package/dist/layout.types-Cn7aUzJp.js +0 -20
  461. package/dist/layout.types-Cn7aUzJp.js.map +0 -1
  462. package/dist/mentions-0_4nWuI-.js.map +0 -1
  463. package/dist/message-g8p7eVtN.js +0 -128
  464. package/dist/message-g8p7eVtN.js.map +0 -1
  465. package/dist/navigation-C90-oQFq.js.map +0 -1
  466. package/dist/navigation-DaRjthVk.js.map +0 -1
  467. package/dist/number-CRU3kGuk.js.map +0 -1
  468. package/dist/overlays-BSgCtM2v.js.map +0 -1
  469. package/dist/popover-B85RenIl.js.map +0 -1
  470. package/dist/primitives-ByWgGUgt.js.map +0 -1
  471. package/dist/rich-text-Dth5E882.js +0 -78
  472. package/dist/rich-text-Dth5E882.js.map +0 -1
  473. package/dist/rich-text-editor-C1fOjBTd.js +0 -1195
  474. package/dist/rich-text-editor-C1fOjBTd.js.map +0 -1
  475. package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
  476. package/dist/safe-image-src-C6kQSMBZ.js +0 -17
  477. package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
  478. package/dist/sanitize-html-DsQmI48u.js.map +0 -1
  479. package/dist/settings-Bar5wiSo.js +0 -167
  480. package/dist/settings-Bar5wiSo.js.map +0 -1
  481. package/dist/sidebar-D-JYMMbY.js +0 -686
  482. package/dist/sidebar-D-JYMMbY.js.map +0 -1
  483. package/dist/sidebar-f9gRWXIR.js.map +0 -1
  484. package/dist/table-B4TE7iOV.js.map +0 -1
  485. package/dist/table-CFOWY9pQ.js.map +0 -1
  486. package/dist/tabs-e7ko9S2o.js.map +0 -1
  487. package/dist/upload-BOW6U2tI.js.map +0 -1
  488. package/dist/utils-B6kKb8jB.js.map +0 -1
  489. package/dist/value-typography-uAmWUAL1.js.map +0 -1
@@ -2,34 +2,35 @@
2
2
  import { b as e, n as t, y as n } from "../ui-provider-C-74NVLc.js";
3
3
  import { COMPONENT_SCALES as r, SEMANTIC_TONES as i } from "../component-vocabulary.js";
4
4
  import { interpolateString as a, useStrings as o } from "../lib/strings.js";
5
- import { t as s } from "../utils-B6kKb8jB.js";
6
- import { n as c } from "../buttons-BedGfygC.js";
7
- import { c as l, s as u } from "../typography-BQnine1k.js";
5
+ import { t as s } from "../utils-DhuoqFy4.js";
6
+ import { n as c } from "../buttons-DeW0bQeK.js";
7
+ import { c as l, s as u } from "../typography-C7-YMW1S.js";
8
8
  import { t as d } from "../focus-recipes-B653VaLq.js";
9
- import { r as f, t as p } from "../structure-DuxKl954.js";
10
- import { _ as m, g as ee, h, p as te, t as ne, v as g } from "../smart-card-CW0hjetE.js";
11
- import { i as re, r as ie } from "../overlays-BSgCtM2v.js";
12
- import { m as ae } from "../primitives-ByWgGUgt.js";
13
- import { t as oe } from "../accordion-B9MHG0cT.js";
14
- import { t as _ } from "../badge-xIiV_E7f.js";
15
- import { t as se } from "../theme-mode-css-BB-_RYab.js";
16
- import { t as v } from "../input-CvyDQlY7.js";
17
- import { t as y } from "../form-field-BriWAXyg.js";
18
- import { d as ce } from "../text-inputs-B1culiSK.js";
19
- import { a as b, l as x } from "../choice-inputs-zUgBZfE4.js";
20
- import { i as le, n as S } from "../value-inputs-skdVB2zh.js";
21
- import { d as ue } from "../forms-numeric-DIhghX1Q.js";
22
- import { t as de } from "../item-DjCcM18E.js";
23
- import { i as fe, r as pe, t as me } from "../tabs-e7ko9S2o.js";
24
- import { forwardRef as C, useEffect as he, useId as w, useImperativeHandle as ge, useMemo as T, useRef as _e, useState as E } from "react";
25
- import { jsx as D, jsxs as O } from "react/jsx-runtime";
26
- import { CheckCircle2 as ve, Copy as ye, Download as be, Info as xe, LayoutGrid as Se, Moon as Ce, Palette as k, RotateCcw as we, Search as Te, Settings2 as Ee, Shapes as De, ShieldCheck as A, Sun as Oe, Type as ke } from "lucide-react";
9
+ import { r as f, t as p } from "../structure-DZJ2wbAU.js";
10
+ import { _ as m, g as ee, h, p as te, t as ne, v as g } from "../smart-card-B6vLxqa_.js";
11
+ import { n as re } from "../composition.recipes-COdiFhxB.js";
12
+ import { i as ie, r as ae } from "../overlays-CC8zI3Du.js";
13
+ import { m as oe } from "../primitives-BkkQjYl7.js";
14
+ import { t as se } from "../accordion-0tQUZ20r.js";
15
+ import { t as _ } from "../badge-wWauMgAt.js";
16
+ import { t as ce } from "../theme-mode-css-BB-_RYab.js";
17
+ import { t as v } from "../input-7KAc7XQL.js";
18
+ import { t as y } from "../form-field-CAPdwdnZ.js";
19
+ import { d as le } from "../text-inputs-jdkS3ReG.js";
20
+ import { a as b, l as x } from "../choice-inputs-DHGtx0QV.js";
21
+ import { i as ue, n as de } from "../value-inputs-D3aPgq9H.js";
22
+ import { d as fe } from "../forms-numeric-CwjQJe-O.js";
23
+ import { t as pe } from "../item-FfWnaYST.js";
24
+ import { i as me, r as he, t as ge } from "../tabs-C4Kr_hCr.js";
25
+ import { forwardRef as S, useEffect as _e, useId as C, useImperativeHandle as ve, useMemo as w, useRef as ye, useState as T } from "react";
26
+ import { jsx as E, jsxs as D } from "react/jsx-runtime";
27
+ import { CheckCircle2 as be, Copy as xe, Download as Se, Info as Ce, LayoutGrid as we, Moon as Te, Palette as O, RotateCcw as Ee, Search as De, Settings2 as Oe, Shapes as ke, ShieldCheck as k, Sun as Ae, Type as je } from "lucide-react";
27
28
  //#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
28
- var Ae = {
29
+ var Me = {
29
30
  shared: ":root",
30
31
  light: ":root,\n.light",
31
32
  dark: ".dark"
32
- }, je = /^--[a-z][a-z0-9-]*$/i, j = /[;{}]/, Me = /[;{}]/;
33
+ }, A = /^--[a-z][a-z0-9-]*$/i, j = /[;{}]/, Ne = /[;{}]/;
33
34
  function M(e = {}) {
34
35
  return {
35
36
  mode: e.mode ?? "light",
@@ -39,7 +40,7 @@ function M(e = {}) {
39
40
  };
40
41
  }
41
42
  function N(e) {
42
- return je.test(e);
43
+ return A.test(e);
43
44
  }
44
45
  function P(e, t = !0) {
45
46
  return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
@@ -60,7 +61,7 @@ function P(e, t = !0) {
60
61
  }
61
62
  function F(e, t) {
62
63
  let n = e.trim();
63
- if (n.length === 0 || Me.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
64
+ if (n.length === 0 || Ne.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
64
65
  return n;
65
66
  }
66
67
  function I(e, t) {
@@ -72,7 +73,7 @@ function I(e, t) {
72
73
  ].join("\n");
73
74
  }
74
75
  function L(e, t = {}) {
75
- let n = t.selectors ?? Ae, r = F(n.shared, "shared"), i = F(n.light, "light"), a = F(n.dark, "dark"), o = n.modeScope === void 0 ? void 0 : F(n.modeScope, "modeScope"), s = [I(r, e.shared), ...o === void 0 ? [I(i, e.light), I(a, e.dark)] : [se(o, {
76
+ let n = t.selectors ?? Me, r = F(n.shared, "shared"), i = F(n.light, "light"), a = F(n.dark, "dark"), o = n.modeScope === void 0 ? void 0 : F(n.modeScope, "modeScope"), s = [I(r, e.shared), ...o === void 0 ? [I(i, e.light), I(a, e.dark)] : [ce(o, {
76
77
  light: P(e.light).map(([e, t]) => `${e}: ${t};`),
77
78
  dark: P(e.dark).map(([e, t]) => `${e}: ${t};`)
78
79
  })]].filter((e) => e !== null && e.length > 0), c = t.banner === !1 ? null : `/* ${t.banner ?? "themelia-react-ui theme overrides"} */`;
@@ -85,7 +86,7 @@ function R(t = {}) {
85
86
  dates: a
86
87
  };
87
88
  }
88
- function Ne(e = {}) {
89
+ function Pe(e = {}) {
89
90
  let t = R(e);
90
91
  return `import type { UIConfig } from 'themelia-react-ui/ui-provider';\n\nexport const adminUIConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig;\n`;
91
92
  }
@@ -98,10 +99,10 @@ function z(e, t = e.mode) {
98
99
  function B(e, t = e.mode) {
99
100
  return Object.fromEntries(P(z(e, t), !1));
100
101
  }
101
- function Pe(e) {
102
+ function Fe(e) {
102
103
  return P(e.shared, !1).length + P(e.light, !1).length + P(e.dark, !1).length;
103
104
  }
104
- function Fe(e) {
105
+ function Ie(e) {
105
106
  let t = F(e, "shared");
106
107
  return {
107
108
  shared: t,
@@ -110,7 +111,7 @@ function Fe(e) {
110
111
  modeScope: t
111
112
  };
112
113
  }
113
- function Ie(e, t = "admin-ui-theme.css", n = {}, r = {}) {
114
+ function Le(e, t = "admin-ui-theme.css", n = {}, r = {}) {
114
115
  let i = M(r.resolvedTheme ?? e), a = R(r.providerConfig);
115
116
  return {
116
117
  fileName: t,
@@ -121,28 +122,28 @@ function Ie(e, t = "admin-ui-theme.css", n = {}, r = {}) {
121
122
  overrideCssText: L(e, n),
122
123
  theme: M(e),
123
124
  resolvedTheme: i,
124
- overrideCount: Pe(e),
125
+ overrideCount: Fe(e),
125
126
  providerFileName: r.providerFileName ?? "admin-ui.config.ts",
126
127
  providerConfig: a,
127
- providerConfigText: Ne(a)
128
+ providerConfigText: Pe(a)
128
129
  };
129
130
  }
130
- function Le(e) {
131
- Re({
131
+ function Re(e) {
132
+ ze({
132
133
  fileName: e.fileName,
133
134
  text: e.cssText,
134
135
  mimeType: "text/css;charset=utf-8"
135
136
  });
136
137
  }
137
- function Re({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
138
+ function ze({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
138
139
  if (typeof document > "u" || typeof URL > "u") throw Error("File download requires a browser document. Provide onExport in non-browser environments.");
139
140
  let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
140
141
  a.href = i, a.download = e, a.hidden = !0, document.body.append(a), a.click(), a.remove(), URL.revokeObjectURL(i);
141
142
  }
142
143
  //#endregion
143
144
  //#region src/components/features/theme-tweaker/theme-scope.tsx
144
- var V = C(function({ theme: e, mode: n = e.mode, className: r, style: i, children: a, ...o }, c) {
145
- return /* @__PURE__ */ D(t, {
145
+ var V = S(function({ theme: e, mode: n = e.mode, className: r, style: i, children: a, ...o }, c) {
146
+ return /* @__PURE__ */ E(t, {
146
147
  ...o,
147
148
  ref: c,
148
149
  "data-theme-mode": n,
@@ -157,13 +158,13 @@ var V = C(function({ theme: e, mode: n = e.mode, className: r, style: i, childre
157
158
  V.displayName = "ThemeScope";
158
159
  //#endregion
159
160
  //#region src/components/features/theme-tweaker/use-applied-theme.ts
160
- function ze(e, t) {
161
+ function Be(e, t) {
161
162
  return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
162
163
  }
163
- function Be({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
164
- he(() => {
164
+ function Ve({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
165
+ _e(() => {
165
166
  if (!e || r === "self") return;
166
- let a = ze(r, n);
167
+ let a = Be(r, n);
167
168
  if (!a) return;
168
169
  let o = B(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
169
170
  for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
@@ -189,22 +190,22 @@ function Be({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
189
190
  }
190
191
  //#endregion
191
192
  //#region src/components/features/theme-tweaker/admin-ui-theme-provider.tsx
192
- var Ve = C(function({ config: e, theme: t, mode: r = t.mode, target: i = "document", manageModeClass: a = !0, className: o, children: c, ...l }, u) {
193
- let d = _e(null);
194
- ge(u, () => d.current);
195
- let f = T(() => M({
193
+ var He = S(function({ config: e, theme: t, mode: r = t.mode, target: i = "document", manageModeClass: a = !0, className: o, children: c, ...l }, u) {
194
+ let d = ye(null);
195
+ ve(u, () => d.current);
196
+ let f = w(() => M({
196
197
  ...t,
197
198
  mode: r
198
199
  }), [r, t]);
199
- return Be({
200
+ return Ve({
200
201
  apply: i === "document",
201
202
  manageModeClass: a,
202
203
  selfRef: d,
203
204
  target: i,
204
205
  theme: f
205
- }), /* @__PURE__ */ D(n, {
206
+ }), /* @__PURE__ */ E(n, {
206
207
  config: e,
207
- children: /* @__PURE__ */ D(V, {
208
+ children: /* @__PURE__ */ E(V, {
208
209
  ...l,
209
210
  ref: d,
210
211
  theme: f,
@@ -214,7 +215,7 @@ var Ve = C(function({ config: e, theme: t, mode: r = t.mode, target: i = "docume
214
215
  })
215
216
  });
216
217
  });
217
- Ve.displayName = "AdminUIThemeProvider";
218
+ He.displayName = "AdminUIThemeProvider";
218
219
  //#endregion
219
220
  //#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
220
221
  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("."), U = [
@@ -236,12 +237,12 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
236
237
  "--inverse-surface-strong",
237
238
  "--inverse-border",
238
239
  "--inverse-decoration"
239
- ], W = ["--overlay-backdrop"], He = [
240
+ ], W = ["--overlay-backdrop"], Ue = [
240
241
  "--font-heading",
241
242
  "--font-sans",
242
243
  "--font-serif",
243
244
  "--font-mono"
244
- ], Ue = [
245
+ ], We = [
245
246
  "xxs",
246
247
  "xs",
247
248
  "pxs",
@@ -280,7 +281,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
280
281
  "--avatar",
281
282
  "--shell-header-height",
282
283
  "--shell-sidebar-width"
283
- ], We = [
284
+ ], Ge = [
284
285
  "--content-width-sm",
285
286
  "--content-width-md",
286
287
  "--content-width-lg",
@@ -289,7 +290,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
289
290
  "--adaptive-grid-min-sm",
290
291
  "--adaptive-grid-min-md",
291
292
  "--adaptive-grid-min-lg"
292
- ], Ge = {
293
+ ], Ke = {
293
294
  "--background": "Application canvas and default page background.",
294
295
  "--foreground": "Primary text and icon color on the application canvas.",
295
296
  "--primary": "Brand and primary-action color.",
@@ -326,7 +327,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
326
327
  "--adaptive-grid-min-sm": "Compact minimum peer width used by AdaptiveGrid.",
327
328
  "--adaptive-grid-min-md": "Default minimum peer width used by AdaptiveGrid.",
328
329
  "--adaptive-grid-min-lg": "Spacious minimum peer width used by AdaptiveGrid."
329
- }, Ke = {
330
+ }, qe = {
330
331
  "--space-scale": "Spacing scale",
331
332
  "--density-scale": "Density scale",
332
333
  "--height-action": "Action height",
@@ -545,14 +546,14 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
545
546
  function J(e) {
546
547
  return e.replace(/^--/, "").replace(/--/g, " · ").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0].toUpperCase()}${e.slice(1)}`).join(" ");
547
548
  }
548
- function qe(e, t) {
549
+ function Je(e, t) {
549
550
  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.";
550
551
  }
551
552
  function Y(e, t, n, r, i) {
552
553
  return e.map((e) => ({
553
554
  name: e,
554
- label: Ke[e] ?? J(e),
555
- description: Ge[e] ?? qe(e, t),
555
+ label: qe[e] ?? J(e),
556
+ description: Ke[e] ?? Je(e, t),
556
557
  group: t,
557
558
  section: n,
558
559
  scope: r,
@@ -560,7 +561,7 @@ function Y(e, t, n, r, i) {
560
561
  control: q[e]
561
562
  }));
562
563
  }
563
- var Je = [
564
+ var Ye = [
564
565
  ...Y(H.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
565
566
  ...Y(W, "colors", "surfaces-content", "shared", "color"),
566
567
  ...Y(H.slice(6, 19), "colors", "brand-actions", "mode", "color"),
@@ -568,8 +569,8 @@ var Je = [
568
569
  ...Y(H.slice(24), "colors", "sidebar", "mode", "color"),
569
570
  ...Y(U.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
570
571
  ...Y(U.slice(7), "states", "inverse-surfaces", "mode", "color"),
571
- ...Y(He, "typography", "font-families", "shared", "font"),
572
- ...Y(Ue, "typography", "type-scale", "shared", "length"),
572
+ ...Y(Ue, "typography", "font-families", "shared", "font"),
573
+ ...Y(We, "typography", "type-scale", "shared", "length"),
573
574
  ...Y(["--radius"], "shape", "radius", "shared", "length"),
574
575
  ...Y(G, "shape", "elevation", "mode", "shadow"),
575
576
  ...Y(K.slice(0, 2), "structure", "global-scales", "shared", "length"),
@@ -578,8 +579,8 @@ var Je = [
578
579
  ...Y(K.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
579
580
  ...Y(K.slice(9, 11), "structure", "media", "shared", "length"),
580
581
  ...Y(K.slice(11), "structure", "application-shell", "shared", "length"),
581
- ...Y(We.slice(0, 5), "structure", "content-widths", "shared", "length"),
582
- ...Y(We.slice(5), "structure", "adaptive-layout", "shared", "length")
582
+ ...Y(Ge.slice(0, 5), "structure", "content-widths", "shared", "length"),
583
+ ...Y(Ge.slice(5), "structure", "adaptive-layout", "shared", "length")
583
584
  ].map((e) => e.name === "--space-scale" || e.name === "--density-scale" ? {
584
585
  ...e,
585
586
  kind: "number"
@@ -702,7 +703,7 @@ function Z(e, t) {
702
703
  label: t.options[e] ?? e.replaceAll("_", " ").replace(/\b\w/g, (e) => e.toUpperCase())
703
704
  }));
704
705
  }
705
- function Ye({ config: e, onChange: t, strings: n = X }) {
706
+ function Xe({ config: e, onChange: t, strings: n = X }) {
706
707
  let a = R(e), o = Z(r, n), s = [
707
708
  "sunday",
708
709
  "monday",
@@ -723,51 +724,51 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
723
724
  }
724
725
  });
725
726
  };
726
- return /* @__PURE__ */ O(p, {
727
+ return /* @__PURE__ */ D(p, {
727
728
  gap: "lg",
728
729
  className: "theme-tweaker--provider-settings",
729
730
  children: [
730
- /* @__PURE__ */ O(p, {
731
+ /* @__PURE__ */ D(p, {
731
732
  gap: "normal",
732
- children: [/* @__PURE__ */ D(l, {
733
+ children: [/* @__PURE__ */ E(l, {
733
734
  type: "inherit",
734
735
  weight: "semibold",
735
736
  children: n.title
736
- }), /* @__PURE__ */ D(l, {
737
+ }), /* @__PURE__ */ E(l, {
737
738
  size: "xs",
738
739
  type: "secondary",
739
740
  children: n.description
740
741
  })]
741
742
  }),
742
- /* @__PURE__ */ O(te, {
743
+ /* @__PURE__ */ D(te, {
743
744
  tone: "info",
744
745
  role: "note",
745
746
  className: "theme-tweaker--provider-boundary",
746
747
  children: [
747
- /* @__PURE__ */ D(xe, { "aria-hidden": "true" }),
748
- /* @__PURE__ */ D(g, { children: n.boundaryTitle }),
749
- /* @__PURE__ */ D(h, { children: n.boundaryDescription }),
750
- /* @__PURE__ */ O(ee, { children: [
751
- /* @__PURE__ */ D(m, {
748
+ /* @__PURE__ */ E(Ce, { "aria-hidden": "true" }),
749
+ /* @__PURE__ */ E(g, { children: n.boundaryTitle }),
750
+ /* @__PURE__ */ E(h, { children: n.boundaryDescription }),
751
+ /* @__PURE__ */ D(ee, { children: [
752
+ /* @__PURE__ */ E(m, {
752
753
  label: n.summary.locale,
753
754
  value: a.formatting?.locale ?? n.options.default
754
755
  }),
755
- /* @__PURE__ */ D(m, {
756
+ /* @__PURE__ */ E(m, {
756
757
  label: n.summary.currency,
757
758
  value: a.money?.defaultCurrency ?? n.options.default
758
759
  }),
759
- /* @__PURE__ */ D(m, {
760
+ /* @__PURE__ */ E(m, {
760
761
  label: n.summary.controls,
761
762
  value: n.options[a.density?.defaultScale ?? "md"] ?? a.density?.defaultScale ?? n.options.md
762
763
  }),
763
- /* @__PURE__ */ D(m, {
764
+ /* @__PURE__ */ E(m, {
764
765
  label: n.summary.cards,
765
766
  value: n.options[a.card?.defaultSurface ?? "card"] ?? a.card?.defaultSurface ?? n.options.default
766
767
  })
767
768
  ] })
768
769
  ]
769
770
  }),
770
- /* @__PURE__ */ D(oe, {
771
+ /* @__PURE__ */ E(se, {
771
772
  multiple: !0,
772
773
  defaultValue: ["regional"],
773
774
  variant: "bordered",
@@ -778,34 +779,34 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
778
779
  value: "regional",
779
780
  title: n.sections.regional.title,
780
781
  description: n.sections.regional.description,
781
- content: /* @__PURE__ */ O("div", {
782
+ content: /* @__PURE__ */ D("div", {
782
783
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
783
784
  children: [
784
- /* @__PURE__ */ D(y, {
785
+ /* @__PURE__ */ E(y, {
785
786
  label: n.labels.locale,
786
- children: /* @__PURE__ */ D(v, {
787
+ children: /* @__PURE__ */ E(v, {
787
788
  value: a.formatting?.locale ?? "",
788
789
  onChange: (e) => c("formatting", "locale", e.target.value)
789
790
  })
790
791
  }),
791
- /* @__PURE__ */ D(y, {
792
+ /* @__PURE__ */ E(y, {
792
793
  label: n.labels.defaultCurrency,
793
- children: /* @__PURE__ */ D(v, {
794
+ children: /* @__PURE__ */ E(v, {
794
795
  value: a.money?.defaultCurrency ?? "",
795
796
  onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
796
797
  })
797
798
  }),
798
- /* @__PURE__ */ D(y, {
799
+ /* @__PURE__ */ E(y, {
799
800
  label: n.labels.displayCurrency,
800
- children: /* @__PURE__ */ D(v, {
801
+ children: /* @__PURE__ */ E(v, {
801
802
  value: a.money?.displayCurrency ?? "",
802
803
  placeholder: n.displayCurrencyPlaceholder,
803
804
  onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
804
805
  })
805
806
  }),
806
- /* @__PURE__ */ D(y, {
807
+ /* @__PURE__ */ E(y, {
807
808
  label: n.labels.moneyFormat,
808
- children: /* @__PURE__ */ D(x, {
809
+ children: /* @__PURE__ */ E(x, {
809
810
  value: a.money?.formatMode,
810
811
  options: Z([
811
812
  "decimal",
@@ -816,17 +817,17 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
816
817
  onValueChange: (e) => c("money", "formatMode", e)
817
818
  })
818
819
  }),
819
- /* @__PURE__ */ D(y, {
820
+ /* @__PURE__ */ E(y, {
820
821
  label: n.labels.firstDay,
821
- children: /* @__PURE__ */ D(x, {
822
+ children: /* @__PURE__ */ E(x, {
822
823
  value: String(a.dates?.weekStartsOn ?? 1),
823
824
  options: s,
824
825
  onValueChange: (e) => c("dates", "weekStartsOn", Number(e))
825
826
  })
826
827
  }),
827
- /* @__PURE__ */ D(y, {
828
+ /* @__PURE__ */ E(y, {
828
829
  label: n.labels.dateFormat,
829
- children: /* @__PURE__ */ D(v, {
830
+ children: /* @__PURE__ */ E(v, {
830
831
  value: a.dates?.format ?? "",
831
832
  onChange: (e) => c("dates", "format", e.target.value)
832
833
  })
@@ -838,12 +839,12 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
838
839
  value: "content",
839
840
  title: n.sections.content.title,
840
841
  description: n.sections.content.description,
841
- content: /* @__PURE__ */ O("div", {
842
+ content: /* @__PURE__ */ D("div", {
842
843
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
843
844
  children: [
844
- /* @__PURE__ */ D(y, {
845
+ /* @__PURE__ */ E(y, {
845
846
  label: n.labels.textSize,
846
- children: /* @__PURE__ */ D(x, {
847
+ children: /* @__PURE__ */ E(x, {
847
848
  value: a.typography?.defaultTextSize,
848
849
  options: Z([
849
850
  "xxs",
@@ -857,23 +858,23 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
857
858
  onValueChange: (e) => c("typography", "defaultTextSize", e)
858
859
  })
859
860
  }),
860
- /* @__PURE__ */ D(y, {
861
+ /* @__PURE__ */ E(y, {
861
862
  label: n.labels.commentComposer,
862
- children: /* @__PURE__ */ D(x, {
863
+ children: /* @__PURE__ */ E(x, {
863
864
  value: a.comments?.composerPosition,
864
865
  options: Z(["top", "bottom"], n),
865
866
  onValueChange: (e) => c("comments", "composerPosition", e)
866
867
  })
867
868
  }),
868
- /* @__PURE__ */ D(b, {
869
+ /* @__PURE__ */ E(b, {
869
870
  label: n.labels.dualPricing,
870
871
  description: n.dualPricingDescription,
871
872
  value: a.money?.dualPricingEnabled ?? !1,
872
873
  onValueChange: (e) => c("money", "dualPricingEnabled", e)
873
874
  }),
874
- /* @__PURE__ */ D(y, {
875
+ /* @__PURE__ */ E(y, {
875
876
  label: n.labels.dualPricingMode,
876
- children: /* @__PURE__ */ D(x, {
877
+ children: /* @__PURE__ */ E(x, {
877
878
  value: a.money?.displayMode,
878
879
  options: Z([
879
880
  "default_only",
@@ -883,9 +884,9 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
883
884
  onValueChange: (e) => c("money", "displayMode", e)
884
885
  })
885
886
  }),
886
- /* @__PURE__ */ D(y, {
887
+ /* @__PURE__ */ E(y, {
887
888
  label: n.labels.dualPricingLayout,
888
- children: /* @__PURE__ */ D(x, {
889
+ children: /* @__PURE__ */ E(x, {
889
890
  value: a.money?.dualPricingDisplay,
890
891
  options: Z(["inline", "lines"], n),
891
892
  onValueChange: (e) => c("money", "dualPricingDisplay", e)
@@ -898,20 +899,20 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
898
899
  value: "components",
899
900
  title: n.sections.components.title,
900
901
  description: n.sections.components.description,
901
- content: /* @__PURE__ */ O("div", {
902
+ content: /* @__PURE__ */ D("div", {
902
903
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
903
904
  children: [
904
- /* @__PURE__ */ D(y, {
905
+ /* @__PURE__ */ E(y, {
905
906
  label: n.labels.componentScale,
906
- children: /* @__PURE__ */ D(x, {
907
+ children: /* @__PURE__ */ E(x, {
907
908
  value: a.density?.defaultScale,
908
909
  options: o,
909
910
  onValueChange: (e) => c("density", "defaultScale", e)
910
911
  })
911
912
  }),
912
- /* @__PURE__ */ D(y, {
913
+ /* @__PURE__ */ E(y, {
913
914
  label: n.labels.itemVariant,
914
- children: /* @__PURE__ */ D(x, {
915
+ children: /* @__PURE__ */ E(x, {
915
916
  value: a.item?.defaultVariant,
916
917
  options: Z([
917
918
  "default",
@@ -921,17 +922,17 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
921
922
  onValueChange: (e) => c("item", "defaultVariant", e)
922
923
  })
923
924
  }),
924
- /* @__PURE__ */ D(y, {
925
+ /* @__PURE__ */ E(y, {
925
926
  label: n.labels.buttonTone,
926
- children: /* @__PURE__ */ D(x, {
927
+ children: /* @__PURE__ */ E(x, {
927
928
  value: a.button?.defaultTone,
928
929
  options: Z(i, n),
929
930
  onValueChange: (e) => c("button", "defaultTone", e)
930
931
  })
931
932
  }),
932
- /* @__PURE__ */ D(y, {
933
+ /* @__PURE__ */ E(y, {
933
934
  label: n.labels.buttonStyle,
934
- children: /* @__PURE__ */ D(x, {
935
+ children: /* @__PURE__ */ E(x, {
935
936
  value: a.button?.defaultButtonStyle,
936
937
  options: Z([
937
938
  "solid",
@@ -941,17 +942,17 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
941
942
  onValueChange: (e) => c("button", "defaultButtonStyle", e)
942
943
  })
943
944
  }),
944
- /* @__PURE__ */ D(y, {
945
+ /* @__PURE__ */ E(y, {
945
946
  label: n.labels.badgeTone,
946
- children: /* @__PURE__ */ D(x, {
947
+ children: /* @__PURE__ */ E(x, {
947
948
  value: a.badge?.defaultTone,
948
949
  options: Z(i, n),
949
950
  onValueChange: (e) => c("badge", "defaultTone", e)
950
951
  })
951
952
  }),
952
- /* @__PURE__ */ D(y, {
953
+ /* @__PURE__ */ E(y, {
953
954
  label: n.labels.cardSurface,
954
- children: /* @__PURE__ */ D(x, {
955
+ children: /* @__PURE__ */ E(x, {
955
956
  value: a.card?.defaultSurface,
956
957
  options: Z([
957
958
  "card",
@@ -961,9 +962,9 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
961
962
  onValueChange: (e) => c("card", "defaultSurface", e)
962
963
  })
963
964
  }),
964
- /* @__PURE__ */ D(y, {
965
+ /* @__PURE__ */ E(y, {
965
966
  label: n.labels.spinner,
966
- children: /* @__PURE__ */ D(x, {
967
+ children: /* @__PURE__ */ E(x, {
967
968
  value: a.spinner?.defaultVariant,
968
969
  options: Z([
969
970
  "default",
@@ -973,12 +974,12 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
973
974
  onValueChange: (e) => c("spinner", "defaultVariant", e)
974
975
  })
975
976
  }),
976
- /* @__PURE__ */ D(b, {
977
+ /* @__PURE__ */ E(b, {
977
978
  label: n.labels.cardDivider,
978
979
  value: a.card?.defaultHeaderDivider ?? !1,
979
980
  onValueChange: (e) => c("card", "defaultHeaderDivider", e)
980
981
  }),
981
- /* @__PURE__ */ D(b, {
982
+ /* @__PURE__ */ E(b, {
982
983
  label: n.labels.cardFooterDivider ?? X.labels.cardFooterDivider,
983
984
  value: a.card?.defaultFooterDivider ?? !0,
984
985
  onValueChange: (e) => c("card", "defaultFooterDivider", e)
@@ -990,12 +991,12 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
990
991
  value: "toasts",
991
992
  title: n.sections.toasts.title,
992
993
  description: n.sections.toasts.description,
993
- content: /* @__PURE__ */ O("div", {
994
+ content: /* @__PURE__ */ D("div", {
994
995
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
995
996
  children: [
996
- /* @__PURE__ */ D(y, {
997
+ /* @__PURE__ */ E(y, {
997
998
  label: n.labels.toastPosition,
998
- children: /* @__PURE__ */ D(x, {
999
+ children: /* @__PURE__ */ E(x, {
999
1000
  value: a.toast?.position,
1000
1001
  options: Z([
1001
1002
  "top-right",
@@ -1008,9 +1009,9 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
1008
1009
  onValueChange: (e) => c("toast", "position", e)
1009
1010
  })
1010
1011
  }),
1011
- /* @__PURE__ */ D(y, {
1012
+ /* @__PURE__ */ E(y, {
1012
1013
  label: n.labels.toastTheme,
1013
- children: /* @__PURE__ */ D(x, {
1014
+ children: /* @__PURE__ */ E(x, {
1014
1015
  value: a.toast?.theme,
1015
1016
  options: Z([
1016
1017
  "light",
@@ -1020,9 +1021,9 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
1020
1021
  onValueChange: (e) => c("toast", "theme", e)
1021
1022
  })
1022
1023
  }),
1023
- /* @__PURE__ */ D(y, {
1024
+ /* @__PURE__ */ E(y, {
1024
1025
  label: n.labels.toastDuration,
1025
- children: /* @__PURE__ */ D(v, {
1026
+ children: /* @__PURE__ */ E(v, {
1026
1027
  type: "number",
1027
1028
  min: 1e3,
1028
1029
  step: 500,
@@ -1030,9 +1031,9 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
1030
1031
  onChange: (e) => c("toast", "duration", Number(e.target.value))
1031
1032
  })
1032
1033
  }),
1033
- /* @__PURE__ */ D(y, {
1034
+ /* @__PURE__ */ E(y, {
1034
1035
  label: n.labels.visibleToasts,
1035
- children: /* @__PURE__ */ D(v, {
1036
+ children: /* @__PURE__ */ E(v, {
1036
1037
  type: "number",
1037
1038
  min: 1,
1038
1039
  max: 10,
@@ -1040,12 +1041,12 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
1040
1041
  onChange: (e) => c("toast", "visibleToasts", Number(e.target.value))
1041
1042
  })
1042
1043
  }),
1043
- /* @__PURE__ */ D(b, {
1044
+ /* @__PURE__ */ E(b, {
1044
1045
  label: n.labels.closeButton,
1045
1046
  value: a.toast?.closeButton ?? !0,
1046
1047
  onValueChange: (e) => c("toast", "closeButton", e)
1047
1048
  }),
1048
- /* @__PURE__ */ D(b, {
1049
+ /* @__PURE__ */ E(b, {
1049
1050
  label: n.labels.richColors,
1050
1051
  value: a.toast?.richColors ?? !1,
1051
1052
  onValueChange: (e) => c("toast", "richColors", e)
@@ -1060,7 +1061,7 @@ function Ye({ config: e, onChange: t, strings: n = X }) {
1060
1061
  }
1061
1062
  //#endregion
1062
1063
  //#region src/components/features/theme-tweaker/theme-tweaker.strings.ts
1063
- var Xe = {
1064
+ var Ze = {
1064
1065
  title: "Theme tweaker",
1065
1066
  description: "Edit the public theme contract, calculate coherent recipes, and export complete CSS plus root display defaults.",
1066
1067
  searchLabel: "Search variables",
@@ -1182,7 +1183,7 @@ function $(e, t) {
1182
1183
  let i = e.match(/oklch\(\s*([\d.]+)(%)?/i), a = Number.parseFloat(i?.[1] ?? "NaN") / (i?.[2] ? 100 : 1);
1183
1184
  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)";
1184
1185
  }
1185
- function Ze({ primary: e, mode: t = "light" }) {
1186
+ function Qe({ primary: e, mode: t = "light" }) {
1186
1187
  let n = t === "dark", r = (e, t) => `color-mix(in oklab, ${n ? t : e} 94%, var(--primary))`;
1187
1188
  return {
1188
1189
  "--primary": e,
@@ -1218,13 +1219,13 @@ function Ze({ primary: e, mode: t = "light" }) {
1218
1219
  "--sidebar-ring": "var(--ring)"
1219
1220
  };
1220
1221
  }
1221
- var Qe = {
1222
+ var $e = {
1222
1223
  xxs: .75,
1223
1224
  xs: .75,
1224
1225
  pxs: .8125,
1225
1226
  sm: .875,
1226
1227
  base: 1
1227
- }, $e = [
1228
+ }, et = [
1228
1229
  "lg",
1229
1230
  "xl",
1230
1231
  "2xl",
@@ -1236,18 +1237,18 @@ var Qe = {
1236
1237
  "8xl",
1237
1238
  "9xl"
1238
1239
  ];
1239
- function et({ baseSize: e, ratio: t = 1.2 }) {
1240
+ function tt({ baseSize: e, ratio: t = 1.2 }) {
1240
1241
  let n = Q(e, 14, 20), r = Q(t, 1.125, 1.333), i = {};
1241
- for (let [e, t] of Object.entries(Qe)) {
1242
+ for (let [e, t] of Object.entries($e)) {
1242
1243
  let r = Math.max(12, n * t);
1243
1244
  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))}`;
1244
1245
  }
1245
- return $e.forEach((e, t) => {
1246
+ return et.forEach((e, t) => {
1246
1247
  let a = n * r ** (t + 1);
1247
1248
  i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(Q(1.55 - t * .065, 1, 1.5).toFixed(4))}`;
1248
1249
  }), i;
1249
1250
  }
1250
- function tt({ intensity: e }) {
1251
+ function nt({ intensity: e }) {
1251
1252
  let t = Q(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
1252
1253
  return {
1253
1254
  "--shadow-2xs": `0 1px 2px 0 oklch(0 0 0 / ${n(.06)})`,
@@ -1262,28 +1263,28 @@ function tt({ intensity: e }) {
1262
1263
  }
1263
1264
  //#endregion
1264
1265
  //#region src/components/features/theme-tweaker/theme-tweaker.tsx
1265
- var nt = [
1266
+ var rt = [
1266
1267
  "colors",
1267
1268
  "states",
1268
1269
  "typography",
1269
1270
  "shape",
1270
1271
  "structure",
1271
1272
  "defaults"
1272
- ], rt = {
1273
- colors: k,
1274
- states: A,
1275
- typography: ke,
1276
- shape: De,
1277
- structure: Se,
1278
- defaults: Ee
1273
+ ], it = {
1274
+ colors: O,
1275
+ states: k,
1276
+ typography: je,
1277
+ shape: ke,
1278
+ structure: we,
1279
+ defaults: Oe
1279
1280
  };
1280
- function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
1281
- let f = w();
1282
- return /* @__PURE__ */ O(p, {
1283
- render: /* @__PURE__ */ D("section", { "aria-labelledby": f }),
1281
+ function at({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
1282
+ let f = C();
1283
+ return /* @__PURE__ */ D(p, {
1284
+ render: /* @__PURE__ */ E("section", { "aria-labelledby": f }),
1284
1285
  gap: "md",
1285
1286
  className: "theme-tweaker--export-artifact min-w-0",
1286
- children: [/* @__PURE__ */ O(p, {
1287
+ children: [/* @__PURE__ */ D(p, {
1287
1288
  direction: {
1288
1289
  base: "vertical",
1289
1290
  sm: "horizontal"
@@ -1295,63 +1296,63 @@ function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
1295
1296
  justify: { sm: "between" },
1296
1297
  gap: "md",
1297
1298
  className: "theme-tweaker--export-artifact-header",
1298
- children: [/* @__PURE__ */ O(p, {
1299
+ children: [/* @__PURE__ */ D(p, {
1299
1300
  gap: "dense",
1300
1301
  className: "min-w-0",
1301
- children: [/* @__PURE__ */ D(u, {
1302
+ children: [/* @__PURE__ */ E(u, {
1302
1303
  className: "text-inherit",
1303
1304
  id: f,
1304
1305
  tag: "h3",
1305
1306
  children: e
1306
- }), /* @__PURE__ */ D(l, {
1307
+ }), /* @__PURE__ */ E(l, {
1307
1308
  size: "xs",
1308
1309
  type: "secondary",
1309
1310
  children: t
1310
1311
  })]
1311
- }), /* @__PURE__ */ O(p, {
1312
+ }), /* @__PURE__ */ D(p, {
1312
1313
  direction: "horizontal",
1313
1314
  gap: "xs",
1314
1315
  align: "center",
1315
1316
  wrap: !0,
1316
1317
  className: "theme-tweaker--export-artifact-actions sm:shrink-0",
1317
- children: [/* @__PURE__ */ D(c, {
1318
+ children: [/* @__PURE__ */ E(c, {
1318
1319
  type: "button",
1319
1320
  size: "sm",
1320
1321
  tone: "secondary",
1321
1322
  buttonStyle: "outline",
1322
- icon: ye,
1323
+ icon: xe,
1323
1324
  onClick: a,
1324
1325
  children: r
1325
- }), /* @__PURE__ */ D(c, {
1326
+ }), /* @__PURE__ */ E(c, {
1326
1327
  tone: "primary",
1327
1328
  type: "button",
1328
1329
  size: "sm",
1329
- icon: be,
1330
+ icon: Se,
1330
1331
  loading: s,
1331
1332
  onClick: o,
1332
1333
  children: i
1333
1334
  })]
1334
1335
  })]
1335
- }), /* @__PURE__ */ D("pre", {
1336
+ }), /* @__PURE__ */ E("pre", {
1336
1337
  tabIndex: 0,
1337
1338
  "aria-label": e,
1338
1339
  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 outline-none ${d.frame} sm:max-h-72`,
1339
- children: /* @__PURE__ */ D("code", { children: n })
1340
+ children: /* @__PURE__ */ E("code", { children: n })
1340
1341
  })]
1341
1342
  });
1342
1343
  }
1343
- function at(e, t) {
1344
+ function ot(e, t) {
1344
1345
  let n = Number.parseFloat(e);
1345
1346
  return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.min;
1346
1347
  }
1347
- function ot(e, t) {
1348
+ function st(e, t) {
1348
1349
  let n = t.decimalPlaces ?? 3;
1349
1350
  return `${Number(e.toFixed(n))}${t.unit ?? ""}`;
1350
1351
  }
1351
- function st(e, t) {
1352
+ function ct(e, t) {
1352
1353
  return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
1353
1354
  }
1354
- function ct(e, t) {
1355
+ function lt(e, t) {
1355
1356
  if (typeof document > "u" || typeof window > "u") return M(e);
1356
1357
  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, {
1357
1358
  value: n.style.getPropertyValue(e),
@@ -1379,30 +1380,30 @@ function ct(e, t) {
1379
1380
  n.classList.toggle("light", i), n.classList.toggle("dark", a);
1380
1381
  }
1381
1382
  }
1382
- function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
1383
- let s = `theme-variable-${w().replace(/:/g, "")}`, u = /* @__PURE__ */ D(c, {
1383
+ function ut({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
1384
+ let s = `theme-variable-${C().replace(/:/g, "")}`, u = /* @__PURE__ */ E(c, {
1384
1385
  type: "button",
1385
1386
  iconOnly: !0,
1386
1387
  tone: "secondary",
1387
1388
  buttonStyle: "ghost",
1388
- icon: we,
1389
+ icon: Ee,
1389
1390
  withTooltip: o.resetVariable,
1390
1391
  "aria-label": `${o.resetVariable}: ${e.label}`,
1391
1392
  disabled: !t,
1392
1393
  onClick: i,
1393
- children: /* @__PURE__ */ D(l, {
1394
+ children: /* @__PURE__ */ E(l, {
1394
1395
  tag: "span",
1395
1396
  size: "inherit",
1396
1397
  className: "sr-only",
1397
1398
  children: o.resetVariable
1398
1399
  })
1399
1400
  }), d = e.placeholder ?? n ?? o.inheritValue, f;
1400
- if (e.kind === "color") f = /* @__PURE__ */ O(p, {
1401
+ if (e.kind === "color") f = /* @__PURE__ */ D(p, {
1401
1402
  direction: "horizontal",
1402
1403
  gap: "xs",
1403
1404
  align: "center",
1404
1405
  wrap: !1,
1405
- children: [/* @__PURE__ */ D(le, {
1406
+ children: [/* @__PURE__ */ E(ue, {
1406
1407
  id: s,
1407
1408
  "aria-label": e.label,
1408
1409
  "aria-description": e.description,
@@ -1415,26 +1416,26 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1415
1416
  }), u]
1416
1417
  });
1417
1418
  else if (e.control?.type === "range") {
1418
- let i = at(t || n, e.control);
1419
- f = /* @__PURE__ */ O(p, {
1419
+ let i = ot(t || n, e.control);
1420
+ f = /* @__PURE__ */ D(p, {
1420
1421
  gap: "sm",
1421
- children: [/* @__PURE__ */ D(S, {
1422
+ children: [/* @__PURE__ */ E(de, {
1422
1423
  id: `${s}-slider`,
1423
1424
  "aria-label": a(o.adjustVariable, { label: e.label }),
1424
1425
  value: i,
1425
1426
  min: e.control.min,
1426
1427
  max: e.control.max,
1427
1428
  step: e.control.step,
1428
- onValueChange: (t) => r(ot(t, e.control))
1429
- }), /* @__PURE__ */ O(p, {
1429
+ onValueChange: (t) => r(st(t, e.control))
1430
+ }), /* @__PURE__ */ D(p, {
1430
1431
  direction: "horizontal",
1431
1432
  gap: "xs",
1432
1433
  align: "center",
1433
1434
  wrap: !1,
1434
- children: [/* @__PURE__ */ D(p, {
1435
+ children: [/* @__PURE__ */ E(p, {
1435
1436
  gap: "none",
1436
1437
  className: "w-28 max-w-full shrink-0",
1437
- children: /* @__PURE__ */ D(ue, {
1438
+ children: /* @__PURE__ */ E(fe, {
1438
1439
  id: s,
1439
1440
  "aria-label": e.label,
1440
1441
  "aria-description": e.description,
@@ -1454,14 +1455,14 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1454
1455
  }), u]
1455
1456
  })]
1456
1457
  });
1457
- } else f = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ O(p, {
1458
+ } else f = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ D(p, {
1458
1459
  direction: "horizontal",
1459
1460
  gap: "xs",
1460
1461
  align: "start",
1461
1462
  wrap: !1,
1462
- children: [/* @__PURE__ */ D(p, {
1463
+ children: [/* @__PURE__ */ E(p, {
1463
1464
  className: "min-w-0 flex-1",
1464
- children: /* @__PURE__ */ D(ce, {
1465
+ children: /* @__PURE__ */ E(le, {
1465
1466
  id: s,
1466
1467
  "aria-label": e.label,
1467
1468
  "aria-description": e.description,
@@ -1473,12 +1474,12 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1473
1474
  className: "font-mono"
1474
1475
  })
1475
1476
  }), u]
1476
- }) : /* @__PURE__ */ O(p, {
1477
+ }) : /* @__PURE__ */ D(p, {
1477
1478
  direction: "horizontal",
1478
1479
  gap: "xs",
1479
1480
  align: "center",
1480
1481
  wrap: !1,
1481
- children: [/* @__PURE__ */ D(v, {
1482
+ children: [/* @__PURE__ */ E(v, {
1482
1483
  id: s,
1483
1484
  "aria-label": e.label,
1484
1485
  "aria-description": e.description,
@@ -1488,23 +1489,23 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1488
1489
  className: "min-w-0 flex-1 font-mono"
1489
1490
  }), u]
1490
1491
  });
1491
- return /* @__PURE__ */ D(y, {
1492
- label: /* @__PURE__ */ O(p, {
1493
- render: /* @__PURE__ */ D("span", {}),
1492
+ return /* @__PURE__ */ E(y, {
1493
+ label: /* @__PURE__ */ D(p, {
1494
+ render: /* @__PURE__ */ E("span", {}),
1494
1495
  direction: "horizontal",
1495
1496
  gap: "sm",
1496
1497
  align: "baseline",
1497
1498
  justify: "between",
1498
1499
  wrap: !0,
1499
1500
  className: "min-w-0 flex-1",
1500
- children: [/* @__PURE__ */ D(l, {
1501
+ children: [/* @__PURE__ */ E(l, {
1501
1502
  type: "inherit",
1502
1503
  tag: "span",
1503
1504
  size: "inherit",
1504
1505
  weight: "medium",
1505
1506
  className: "min-w-0",
1506
1507
  children: e.label
1507
- }), /* @__PURE__ */ D(ae, {
1508
+ }), /* @__PURE__ */ E(oe, {
1508
1509
  size: "xs",
1509
1510
  type: "secondary",
1510
1511
  weight: "regular",
@@ -1517,47 +1518,47 @@ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1517
1518
  children: f
1518
1519
  });
1519
1520
  }
1520
- function ut({ strings: e }) {
1521
- return /* @__PURE__ */ D(ne, {
1521
+ function dt({ strings: e }) {
1522
+ return /* @__PURE__ */ E(ne, {
1522
1523
  title: e.previewTitle,
1523
1524
  description: e.previewDescription,
1524
1525
  className: "theme-tweaker--preview-card",
1525
- children: /* @__PURE__ */ O(p, {
1526
+ children: /* @__PURE__ */ D(p, {
1526
1527
  gap: "lg",
1527
1528
  children: [
1528
- /* @__PURE__ */ O(p, {
1529
+ /* @__PURE__ */ D(p, {
1529
1530
  direction: "horizontal",
1530
1531
  gap: "sm",
1531
1532
  wrap: !0,
1532
1533
  children: [
1533
- /* @__PURE__ */ D(_, {
1534
+ /* @__PURE__ */ E(_, {
1534
1535
  tone: "success",
1535
1536
  children: e.previewSuccess
1536
1537
  }),
1537
- /* @__PURE__ */ D(_, {
1538
+ /* @__PURE__ */ E(_, {
1538
1539
  tone: "warning",
1539
1540
  children: e.previewWarning
1540
1541
  }),
1541
- /* @__PURE__ */ D(_, {
1542
+ /* @__PURE__ */ E(_, {
1542
1543
  tone: "secondary",
1543
1544
  children: e.previewContract
1544
1545
  })
1545
1546
  ]
1546
1547
  }),
1547
- /* @__PURE__ */ D(de, {
1548
+ /* @__PURE__ */ E(pe, {
1548
1549
  variant: "muted",
1549
1550
  padding: "default",
1550
- media: /* @__PURE__ */ D(k, {}),
1551
+ media: /* @__PURE__ */ E(O, {}),
1551
1552
  mediaVariant: "icon",
1552
1553
  title: e.previewItemTitle,
1553
1554
  description: e.previewItemDescription,
1554
- trailing: /* @__PURE__ */ D(ve, { className: "size-icon text-success" })
1555
+ trailing: /* @__PURE__ */ E(be, { className: "size-icon text-success" })
1555
1556
  }),
1556
- /* @__PURE__ */ D(y, {
1557
+ /* @__PURE__ */ E(y, {
1557
1558
  label: e.previewFieldLabel,
1558
- children: /* @__PURE__ */ D(v, { placeholder: e.previewFieldPlaceholder })
1559
+ children: /* @__PURE__ */ E(v, { placeholder: e.previewFieldPlaceholder })
1559
1560
  }),
1560
- /* @__PURE__ */ D(c, {
1561
+ /* @__PURE__ */ E(c, {
1561
1562
  tone: "primary",
1562
1563
  type: "button",
1563
1564
  children: e.previewAction
@@ -1566,60 +1567,60 @@ function ut({ strings: e }) {
1566
1567
  })
1567
1568
  });
1568
1569
  }
1569
- function dt(e, t, n) {
1570
+ function ft(e, t, n) {
1570
1571
  let r = t.scope === "shared" ? "shared" : e.mode, i = { ...e[r] };
1571
1572
  return n.trim().length === 0 ? delete i[t.name] : i[t.name] = n, {
1572
1573
  ...e,
1573
1574
  [r]: i
1574
1575
  };
1575
1576
  }
1576
- var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Je, target: d = "self", apply: m = !0, manageModeClass: ee = !0, preview: h, fileName: te = "admin-ui-theme.css", config: g, defaultConfig: ae, onConfigChange: se, providerFileName: ce = "admin-ui.config.ts", showIntro: x = !0, selectors: le, onExport: ue, onCopy: de, onReset: C, onError: w, actionsSlot: ve, strings: ye, className: be, ...xe }, Se) {
1577
- let k = o(Xe, ye), [Ee, De] = E(() => M(t)), A = T(() => e ? M(e) : Ee, [Ee, e]), [ke, Ae] = E(() => R(ae)), je = T(() => R(g ?? ke), [g, ke]), [j, Me] = E("colors"), [N, P] = E(""), [F, I] = E(!0), [L, Ne] = E(16), [z, Fe] = E(1.2), [ze, Ve] = E(.8), [H, U] = E("idle"), W = re(), [He, Ue] = E(!1), G = _e(null);
1578
- ge(Se, () => G.current), Be({
1577
+ var pt = S(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Ye, target: d = "self", apply: m = !0, manageModeClass: ee = !0, preview: h, fileName: te = "admin-ui-theme.css", config: g, defaultConfig: oe, onConfigChange: ce, providerFileName: le = "admin-ui.config.ts", showIntro: x = !0, selectors: ue, onExport: fe, onCopy: pe, onReset: S, onError: C, actionsSlot: be, strings: xe, className: Se, ...Ce }, we) {
1578
+ let O = o(Ze, xe), [Oe, ke] = T(() => M(t)), k = w(() => e ? M(e) : Oe, [Oe, e]), [je, Me] = T(() => R(oe)), A = w(() => R(g ?? je), [g, je]), [j, Ne] = T("colors"), [N, P] = T(""), [F, I] = T(!0), [L, Pe] = T(16), [z, Ie] = T(1.2), [Be, He] = T(.8), [H, U] = T("idle"), W = ie(), [Ue, We] = T(!1), G = ye(null);
1579
+ ve(we, () => G.current), Ve({
1579
1580
  apply: m,
1580
1581
  manageModeClass: ee,
1581
1582
  selfRef: G,
1582
1583
  target: d,
1583
- theme: A
1584
+ theme: k
1584
1585
  });
1585
- let [K, We] = E(() => M(A)), [Ge, Ke] = E({});
1586
- he(() => {
1586
+ let [K, Ge] = T(() => M(k)), [Ke, qe] = T({});
1587
+ _e(() => {
1587
1588
  if (typeof window > "u") return;
1588
1589
  let e = window.setTimeout(() => {
1589
- let e = st(d, G.current);
1590
+ let e = ct(d, G.current);
1590
1591
  if (!e) return;
1591
1592
  let t = window.getComputedStyle(e);
1592
- Ke(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), We(ct(A, i));
1593
+ qe(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ge(lt(k, i));
1593
1594
  }, 0);
1594
1595
  return () => window.clearTimeout(e);
1595
1596
  }, [
1596
1597
  m,
1597
1598
  i,
1598
1599
  d,
1599
- A
1600
+ k
1600
1601
  ]);
1601
- let { artifact: q, error: J } = T(() => {
1602
+ let { artifact: q, error: J } = w(() => {
1602
1603
  try {
1603
1604
  let e = M({
1604
- mode: A.mode,
1605
+ mode: k.mode,
1605
1606
  shared: {
1606
1607
  ...K.shared,
1607
- ...A.shared
1608
+ ...k.shared
1608
1609
  },
1609
1610
  light: {
1610
1611
  ...K.light,
1611
- ...A.light
1612
+ ...k.light
1612
1613
  },
1613
1614
  dark: {
1614
1615
  ...K.dark,
1615
- ...A.dark
1616
+ ...k.dark
1616
1617
  }
1617
1618
  });
1618
1619
  return {
1619
- artifact: Ie(A, te, { selectors: le }, {
1620
+ artifact: Le(k, te, { selectors: ue }, {
1620
1621
  resolvedTheme: e,
1621
- providerConfig: je,
1622
- providerFileName: ce
1622
+ providerConfig: A,
1623
+ providerFileName: le
1623
1624
  }),
1624
1625
  error: null
1625
1626
  };
@@ -1631,12 +1632,12 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1631
1632
  }
1632
1633
  }, [
1633
1634
  te,
1634
- je,
1635
- ce,
1636
- K,
1635
+ A,
1637
1636
  le,
1638
- A
1639
- ]), qe = q?.cssText ?? `/* ${k.invalidTheme} */\n`, Y = T(() => Pe(A), [A]), X = N.trim().toLowerCase(), Z = T(() => i.filter((e) => !X && e.group !== j ? !1 : !X || [
1637
+ K,
1638
+ ue,
1639
+ k
1640
+ ]), Je = q?.cssText ?? `/* ${O.invalidTheme} */\n`, Y = w(() => Fe(k), [k]), X = N.trim().toLowerCase(), Z = w(() => i.filter((e) => !X && e.group !== j ? !1 : !X || [
1640
1641
  e.name,
1641
1642
  e.label,
1642
1643
  e.description
@@ -1644,7 +1645,7 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1644
1645
  i,
1645
1646
  j,
1646
1647
  X
1647
- ]), Q = T(() => {
1648
+ ]), Q = w(() => {
1648
1649
  let e = /* @__PURE__ */ new Map();
1649
1650
  for (let t of Z) {
1650
1651
  let n = `${t.group}:${t.section}`, r = e.get(n);
@@ -1656,104 +1657,104 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1656
1657
  }
1657
1658
  return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
1658
1659
  }, [Z]), $ = (t) => {
1659
- e === void 0 && De(t), n?.(t), U("idle");
1660
- }, Qe = (e) => {
1661
- g === void 0 && Ae(e), se?.(e), U("idle");
1660
+ e === void 0 && ke(t), n?.(t), U("idle");
1662
1661
  }, $e = (e) => {
1662
+ g === void 0 && Me(e), ce?.(e), U("idle");
1663
+ }, et = (e) => {
1663
1664
  $({
1664
- ...A,
1665
- [A.mode]: {
1666
- ...A[A.mode],
1665
+ ...k,
1666
+ [k.mode]: {
1667
+ ...k[k.mode],
1667
1668
  ...e
1668
1669
  }
1669
1670
  });
1670
- }, at = (e) => {
1671
+ }, ot = (e) => {
1671
1672
  $({
1672
- ...A,
1673
+ ...k,
1673
1674
  shared: {
1674
- ...A.shared,
1675
+ ...k.shared,
1675
1676
  ...e
1676
1677
  }
1677
1678
  });
1678
- }, ot = (e) => {
1679
- e !== A.mode && ($({
1680
- ...A,
1679
+ }, st = (e) => {
1680
+ e !== k.mode && ($({
1681
+ ...k,
1681
1682
  mode: e
1682
1683
  }), r?.(e));
1683
- }, ft = async () => {
1684
+ }, pt = async () => {
1684
1685
  try {
1685
1686
  if (J) throw J;
1686
- if (Ue(!0), !q) throw Error(k.invalidTheme);
1687
- ue ? await ue(q) : Le(q), U("exported");
1687
+ if (We(!0), !q) throw Error(O.invalidTheme);
1688
+ fe ? await fe(q) : Re(q), U("exported");
1688
1689
  } catch (e) {
1689
- w?.(e);
1690
+ C?.(e);
1690
1691
  } finally {
1691
- Ue(!1);
1692
+ We(!1);
1692
1693
  }
1693
- }, pt = async (e) => {
1694
+ }, mt = async (e) => {
1694
1695
  try {
1695
- if (de) await de(e);
1696
+ if (pe) await pe(e);
1696
1697
  else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
1697
1698
  else throw Error("Clipboard access is unavailable. Provide onCopy for this environment.");
1698
1699
  U("copied");
1699
1700
  } catch (e) {
1700
- w?.(e);
1701
+ C?.(e);
1701
1702
  }
1702
- }, mt = () => {
1703
+ }, ht = () => {
1703
1704
  try {
1704
- if (!q) throw J ?? Error(k.invalidTheme);
1705
- Re({
1705
+ if (!q) throw J ?? Error(O.invalidTheme);
1706
+ ze({
1706
1707
  fileName: q.providerFileName,
1707
1708
  text: q.providerConfigText,
1708
1709
  mimeType: "text/typescript;charset=utf-8"
1709
1710
  }), U("exported");
1710
1711
  } catch (e) {
1711
- w?.(e);
1712
+ C?.(e);
1712
1713
  }
1713
- }, ht = () => {
1714
- let e = A, t = M({ mode: A.mode });
1715
- $(t), C?.(e), U("idle");
1716
- }, gt = J ? k.invalidTheme : H === "copied" ? k.copiedStatus : H === "exported" ? k.exportedStatus : null, _t = j === "colors" ? /* @__PURE__ */ D(b, {
1714
+ }, gt = () => {
1715
+ let e = k, t = M({ mode: k.mode });
1716
+ $(t), S?.(e), U("idle");
1717
+ }, _t = J ? O.invalidTheme : H === "copied" ? O.copiedStatus : H === "exported" ? O.exportedStatus : null, vt = j === "colors" ? /* @__PURE__ */ E(b, {
1717
1718
  className: "theme-tweaker--recipe",
1718
- label: k.autoPalette,
1719
- description: k.autoPaletteDescription,
1719
+ label: O.autoPalette,
1720
+ description: O.autoPaletteDescription,
1720
1721
  value: F,
1721
1722
  onValueChange: I
1722
- }) : j === "typography" ? /* @__PURE__ */ D(ne, {
1723
- title: k.typeRecipeTitle,
1724
- description: k.typeRecipeDescription,
1723
+ }) : j === "typography" ? /* @__PURE__ */ E(ne, {
1724
+ title: O.typeRecipeTitle,
1725
+ description: O.typeRecipeDescription,
1725
1726
  surface: "flat",
1726
1727
  padding: "none",
1727
1728
  className: "theme-tweaker--recipe",
1728
- children: /* @__PURE__ */ O(f, {
1729
+ children: /* @__PURE__ */ D(f, {
1729
1730
  columns: 1,
1730
- gap: "md",
1731
+ gap: re.related,
1731
1732
  className: "@2xl/theme-tweaker-controls:grid-cols-2",
1732
- children: [/* @__PURE__ */ D(y, {
1733
- label: k.baseTypeSize,
1734
- children: /* @__PURE__ */ D(S, {
1735
- "aria-label": k.baseTypeSize,
1733
+ children: [/* @__PURE__ */ E(y, {
1734
+ label: O.baseTypeSize,
1735
+ children: /* @__PURE__ */ E(de, {
1736
+ "aria-label": O.baseTypeSize,
1736
1737
  value: L,
1737
1738
  min: 14,
1738
1739
  max: 20,
1739
1740
  step: 1,
1740
1741
  onValueChange: (e) => {
1741
- Ne(e), at(et({
1742
+ Pe(e), ot(tt({
1742
1743
  baseSize: e,
1743
1744
  ratio: z
1744
1745
  }));
1745
1746
  }
1746
1747
  })
1747
- }), /* @__PURE__ */ D(y, {
1748
- label: k.typeRatio,
1749
- children: /* @__PURE__ */ D(S, {
1750
- "aria-label": k.typeRatio,
1748
+ }), /* @__PURE__ */ E(y, {
1749
+ label: O.typeRatio,
1750
+ children: /* @__PURE__ */ E(de, {
1751
+ "aria-label": O.typeRatio,
1751
1752
  value: z,
1752
1753
  min: 1.125,
1753
1754
  max: 1.333,
1754
1755
  step: .01,
1755
1756
  onValueChange: (e) => {
1756
- Fe(e), at(et({
1757
+ Ie(e), ot(tt({
1757
1758
  baseSize: L,
1758
1759
  ratio: e
1759
1760
  }));
@@ -1761,195 +1762,195 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1761
1762
  })
1762
1763
  })]
1763
1764
  })
1764
- }) : j === "shape" ? /* @__PURE__ */ D(ne, {
1765
- title: k.elevationRecipeTitle,
1766
- description: k.elevationRecipeDescription,
1765
+ }) : j === "shape" ? /* @__PURE__ */ E(ne, {
1766
+ title: O.elevationRecipeTitle,
1767
+ description: O.elevationRecipeDescription,
1767
1768
  surface: "flat",
1768
1769
  padding: "none",
1769
1770
  className: "theme-tweaker--recipe",
1770
- children: /* @__PURE__ */ D(y, {
1771
- label: k.elevationIntensity,
1772
- children: /* @__PURE__ */ D(S, {
1773
- "aria-label": k.elevationIntensity,
1774
- value: ze,
1771
+ children: /* @__PURE__ */ E(y, {
1772
+ label: O.elevationIntensity,
1773
+ children: /* @__PURE__ */ E(de, {
1774
+ "aria-label": O.elevationIntensity,
1775
+ value: Be,
1775
1776
  min: 0,
1776
1777
  max: 1,
1777
1778
  step: .05,
1778
1779
  onValueChange: (e) => {
1779
- Ve(e), $e(tt({ intensity: e }));
1780
+ He(e), et(nt({ intensity: e }));
1780
1781
  }
1781
1782
  })
1782
1783
  })
1783
- }) : null, vt = /* @__PURE__ */ O("div", {
1784
+ }) : null, yt = /* @__PURE__ */ D("div", {
1784
1785
  className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", h !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
1785
1786
  children: [
1786
- /* @__PURE__ */ O(p, {
1787
+ /* @__PURE__ */ D(p, {
1787
1788
  gap: "lg",
1788
1789
  className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
1789
- children: [/* @__PURE__ */ O(p, {
1790
+ children: [/* @__PURE__ */ D(p, {
1790
1791
  gap: "lg",
1791
1792
  className: "theme-tweaker--header shrink-0",
1792
1793
  children: [
1793
- x ? /* @__PURE__ */ O(p, {
1794
+ x ? /* @__PURE__ */ D(p, {
1794
1795
  gap: "normal",
1795
1796
  className: "theme-tweaker--intro",
1796
- children: [/* @__PURE__ */ O(p, {
1797
+ children: [/* @__PURE__ */ D(p, {
1797
1798
  direction: "horizontal",
1798
1799
  gap: "sm",
1799
1800
  align: "center",
1800
1801
  wrap: !0,
1801
- children: [/* @__PURE__ */ D(u, {
1802
+ children: [/* @__PURE__ */ E(u, {
1802
1803
  tag: "h2",
1803
1804
  className: "theme-tweaker--title text-inherit",
1804
- children: k.title
1805
- }), /* @__PURE__ */ D(_, {
1805
+ children: O.title
1806
+ }), /* @__PURE__ */ E(_, {
1806
1807
  tone: "secondary",
1807
- children: a(k.changedCount, { count: Y })
1808
+ children: a(O.changedCount, { count: Y })
1808
1809
  })]
1809
- }), /* @__PURE__ */ D(l, {
1810
+ }), /* @__PURE__ */ E(l, {
1810
1811
  type: "secondary",
1811
1812
  className: "theme-tweaker--description",
1812
- children: k.description
1813
+ children: O.description
1813
1814
  })]
1814
1815
  }) : null,
1815
- /* @__PURE__ */ O(p, {
1816
+ /* @__PURE__ */ D(p, {
1816
1817
  direction: "horizontal",
1817
1818
  justify: "between",
1818
1819
  align: "center",
1819
1820
  wrap: !0,
1820
1821
  gap: "sm",
1821
1822
  className: "theme-tweaker--toolbar",
1822
- children: [/* @__PURE__ */ D(p, {
1823
+ children: [/* @__PURE__ */ E(p, {
1823
1824
  direction: "horizontal",
1824
1825
  gap: "sm",
1825
1826
  align: "center",
1826
1827
  wrap: !0,
1827
- children: /* @__PURE__ */ D(me, {
1828
- value: A.mode,
1829
- onValueChange: (e) => ot(e),
1830
- children: /* @__PURE__ */ O(pe, { children: [/* @__PURE__ */ O(fe, {
1828
+ children: /* @__PURE__ */ E(ge, {
1829
+ value: k.mode,
1830
+ onValueChange: (e) => st(e),
1831
+ children: /* @__PURE__ */ D(he, { children: [/* @__PURE__ */ D(me, {
1831
1832
  value: "light",
1832
- children: [/* @__PURE__ */ D(Oe, { className: "size-icon-sm" }), k.lightMode]
1833
- }), /* @__PURE__ */ O(fe, {
1833
+ children: [/* @__PURE__ */ E(Ae, { className: "size-icon-sm" }), O.lightMode]
1834
+ }), /* @__PURE__ */ D(me, {
1834
1835
  value: "dark",
1835
- children: [/* @__PURE__ */ D(Ce, { className: "size-icon-sm" }), k.darkMode]
1836
+ children: [/* @__PURE__ */ E(Te, { className: "size-icon-sm" }), O.darkMode]
1836
1837
  })] })
1837
1838
  })
1838
- }), /* @__PURE__ */ O(p, {
1839
+ }), /* @__PURE__ */ D(p, {
1839
1840
  direction: "horizontal",
1840
1841
  gap: "xs",
1841
1842
  align: "center",
1842
1843
  justify: "end",
1843
1844
  wrap: !1,
1844
1845
  className: "theme-tweaker--actions",
1845
- children: [/* @__PURE__ */ D(c, {
1846
+ children: [/* @__PURE__ */ E(c, {
1846
1847
  tone: "primary",
1847
1848
  type: "button",
1848
1849
  disabled: !!J,
1849
1850
  onClick: () => {
1850
1851
  U("idle"), W.show();
1851
1852
  },
1852
- children: k.export
1853
- }), ve]
1853
+ children: O.export
1854
+ }), be]
1854
1855
  })]
1855
1856
  }),
1856
- /* @__PURE__ */ D(y, {
1857
- label: /* @__PURE__ */ D(l, {
1857
+ /* @__PURE__ */ E(y, {
1858
+ label: /* @__PURE__ */ E(l, {
1858
1859
  tag: "span",
1859
1860
  size: "inherit",
1860
1861
  className: "sr-only",
1861
- children: k.searchLabel
1862
+ children: O.searchLabel
1862
1863
  }),
1863
1864
  className: "theme-tweaker--search",
1864
- children: /* @__PURE__ */ D(v, {
1865
+ children: /* @__PURE__ */ E(v, {
1865
1866
  value: N,
1866
1867
  onChange: (e) => P(e.target.value),
1867
- placeholder: k.searchPlaceholder,
1868
- startIcon: Te,
1868
+ placeholder: O.searchPlaceholder,
1869
+ startIcon: De,
1869
1870
  clearable: !0,
1870
1871
  onClear: () => P(""),
1871
- "aria-description": k.searchHint
1872
+ "aria-description": O.searchHint
1872
1873
  })
1873
1874
  })
1874
1875
  ]
1875
- }), /* @__PURE__ */ O(p, {
1876
+ }), /* @__PURE__ */ D(p, {
1876
1877
  gap: "lg",
1877
1878
  className: "theme-tweaker--workspace min-h-0",
1878
- children: [/* @__PURE__ */ D("nav", {
1879
- "aria-label": k.groupNavigationLabel,
1879
+ children: [/* @__PURE__ */ E("nav", {
1880
+ "aria-label": O.groupNavigationLabel,
1880
1881
  className: "theme-tweaker--navigation min-w-0",
1881
- children: /* @__PURE__ */ D(me, {
1882
+ children: /* @__PURE__ */ E(ge, {
1882
1883
  value: j,
1883
1884
  onValueChange: (e) => {
1884
- P(""), Me(e);
1885
+ P(""), Ne(e);
1885
1886
  },
1886
1887
  className: "w-full",
1887
- children: /* @__PURE__ */ D(pe, {
1888
+ children: /* @__PURE__ */ E(he, {
1888
1889
  scrollable: !0,
1889
1890
  scrollStrings: {
1890
- previous: k.previousGroup,
1891
- next: k.nextGroup
1891
+ previous: O.previousGroup,
1892
+ next: O.nextGroup
1892
1893
  },
1893
1894
  className: "theme-tweaker--group-list",
1894
- children: nt.map((e) => {
1895
- let t = rt[e];
1896
- return /* @__PURE__ */ O(fe, {
1895
+ children: rt.map((e) => {
1896
+ let t = it[e];
1897
+ return /* @__PURE__ */ D(me, {
1897
1898
  value: e,
1898
1899
  onClick: () => P(""),
1899
1900
  className: "theme-tweaker--group-trigger",
1900
- children: [/* @__PURE__ */ D(t, { "aria-hidden": "true" }), /* @__PURE__ */ D(l, {
1901
+ children: [/* @__PURE__ */ E(t, { "aria-hidden": "true" }), /* @__PURE__ */ E(l, {
1901
1902
  type: "inherit",
1902
1903
  tag: "span",
1903
1904
  size: "inherit",
1904
1905
  weight: "medium",
1905
1906
  className: "min-w-0 flex-1 truncate text-left",
1906
- children: k.groups[e]
1907
+ children: O.groups[e]
1907
1908
  })]
1908
1909
  }, e);
1909
1910
  })
1910
1911
  })
1911
1912
  })
1912
- }), /* @__PURE__ */ O(p, {
1913
+ }), /* @__PURE__ */ D(p, {
1913
1914
  gap: "lg",
1914
1915
  className: "theme-tweaker--body theme-tweaker--editor min-h-0 min-w-0",
1915
1916
  children: [
1916
- /* @__PURE__ */ O(p, {
1917
+ /* @__PURE__ */ D(p, {
1917
1918
  gap: "normal",
1918
1919
  className: "theme-tweaker--editor-heading",
1919
- children: [/* @__PURE__ */ O(p, {
1920
+ children: [/* @__PURE__ */ D(p, {
1920
1921
  direction: "horizontal",
1921
1922
  gap: "sm",
1922
1923
  align: "center",
1923
1924
  wrap: !0,
1924
1925
  children: [
1925
- /* @__PURE__ */ D(u, {
1926
+ /* @__PURE__ */ E(u, {
1926
1927
  className: "text-inherit",
1927
1928
  tag: "h3",
1928
- children: X ? k.allGroups : k.groups[j]
1929
+ children: X ? O.allGroups : O.groups[j]
1929
1930
  }),
1930
- x ? null : /* @__PURE__ */ D(_, {
1931
+ x ? null : /* @__PURE__ */ E(_, {
1931
1932
  tone: "secondary",
1932
- children: a(k.changedCount, { count: Y })
1933
+ children: a(O.changedCount, { count: Y })
1933
1934
  }),
1934
- X ? /* @__PURE__ */ D(_, {
1935
+ X ? /* @__PURE__ */ E(_, {
1935
1936
  tone: "secondary",
1936
1937
  role: "status",
1937
1938
  "aria-live": "polite",
1938
- children: a(k.searchResults, { count: Z.length })
1939
+ children: a(O.searchResults, { count: Z.length })
1939
1940
  }) : null
1940
1941
  ]
1941
- }), /* @__PURE__ */ D(l, {
1942
+ }), /* @__PURE__ */ E(l, {
1942
1943
  size: "xs",
1943
1944
  type: "secondary",
1944
- children: X ? k.searchHint : k.groupDescriptions[j]
1945
+ children: X ? O.searchHint : O.groupDescriptions[j]
1945
1946
  })]
1946
1947
  }),
1947
- X ? null : _t,
1948
- j === "defaults" && !X ? /* @__PURE__ */ D(Ye, {
1949
- config: je,
1950
- onChange: Qe,
1951
- strings: k.providerSettings
1952
- }) : Q.length > 0 ? /* @__PURE__ */ D(oe, {
1948
+ X ? null : vt,
1949
+ j === "defaults" && !X ? /* @__PURE__ */ E(Xe, {
1950
+ config: A,
1951
+ onChange: $e,
1952
+ strings: O.providerSettings
1953
+ }) : Q.length > 0 ? /* @__PURE__ */ E(se, {
1953
1954
  multiple: !0,
1954
1955
  defaultValue: [`${Q[0].group}:${Q[0].section}`],
1955
1956
  variant: "bordered",
@@ -1957,136 +1958,136 @@ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1957
1958
  className: "theme-tweaker--sections shrink-0",
1958
1959
  itemClassName: "theme-tweaker--section",
1959
1960
  items: Q.map((e) => {
1960
- let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? k.mixedScope : t.has("shared") ? k.sharedScope : A.mode === "light" ? k.lightMode : k.darkMode, r = X ? a(k.groupSectionLabel, {
1961
- group: k.groups[e.group],
1962
- section: k.sections[e.section]
1963
- }) : k.sections[e.section];
1961
+ 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 = X ? a(O.groupSectionLabel, {
1962
+ group: O.groups[e.group],
1963
+ section: O.sections[e.section]
1964
+ }) : O.sections[e.section];
1964
1965
  return {
1965
1966
  value: `${e.group}:${e.section}`,
1966
1967
  title: r,
1967
- description: a(k.variableCount, { count: e.fields.length }),
1968
- badge: /* @__PURE__ */ D(_, {
1968
+ description: a(O.variableCount, { count: e.fields.length }),
1969
+ badge: /* @__PURE__ */ E(_, {
1969
1970
  tone: "secondary",
1970
1971
  children: n
1971
1972
  }),
1972
- content: /* @__PURE__ */ D(p, {
1973
+ content: /* @__PURE__ */ E(p, {
1973
1974
  gap: "none",
1974
1975
  className: "theme-tweaker--fields",
1975
1976
  children: e.fields.map((e) => {
1976
- let t = e.scope === "shared" ? "shared" : A.mode, n = A[t][e.name] ?? "";
1977
- return /* @__PURE__ */ D(lt, {
1977
+ let t = e.scope === "shared" ? "shared" : k.mode, n = k[t][e.name] ?? "";
1978
+ return /* @__PURE__ */ E(ut, {
1978
1979
  field: e,
1979
1980
  value: n,
1980
- effectiveValue: Ge[e.name] ?? "",
1981
- strings: k,
1981
+ effectiveValue: Ke[e.name] ?? "",
1982
+ strings: O,
1982
1983
  onChange: (t) => {
1983
1984
  if (e.name === "--primary" && F && t.trim()) {
1984
- $e(Ze({
1985
+ et(Qe({
1985
1986
  primary: t,
1986
- mode: A.mode
1987
+ mode: k.mode
1987
1988
  }));
1988
1989
  return;
1989
1990
  }
1990
- $(dt(A, e, t));
1991
+ $(ft(k, e, t));
1991
1992
  },
1992
- onReset: () => $(dt(A, e, ""))
1993
+ onReset: () => $(ft(k, e, ""))
1993
1994
  }, e.name);
1994
1995
  })
1995
1996
  })
1996
1997
  };
1997
1998
  })
1998
- }, `${j}:${X}`) : /* @__PURE__ */ D(l, {
1999
+ }, `${j}:${X}`) : /* @__PURE__ */ E(l, {
1999
2000
  type: "secondary",
2000
2001
  className: "theme-tweaker--empty rounded-radius border border-dashed border-border p-surface",
2001
- children: k.emptySearch
2002
+ children: O.emptySearch
2002
2003
  })
2003
2004
  ]
2004
2005
  })]
2005
2006
  })]
2006
2007
  }),
2007
- h === !1 ? null : /* @__PURE__ */ D(p, {
2008
+ h === !1 ? null : /* @__PURE__ */ E(p, {
2008
2009
  className: "theme-tweaker--preview min-w-0 self-start",
2009
- children: h ?? /* @__PURE__ */ D(ut, { strings: k })
2010
+ children: h ?? /* @__PURE__ */ E(dt, { strings: O })
2010
2011
  }),
2011
- /* @__PURE__ */ D(ie, {
2012
+ /* @__PURE__ */ E(ae, {
2012
2013
  ...W.overlayProps,
2013
- title: k.exportDialogTitle,
2014
- description: k.exportDialogDescription,
2014
+ title: O.exportDialogTitle,
2015
+ description: O.exportDialogDescription,
2015
2016
  showCloseButton: !1,
2016
2017
  showCancel: !1,
2017
2018
  showConfirm: !1,
2018
- surfaceStyle: B(A),
2019
- className: s("theme-tweaker--export-dialog sm:max-w-4xl", A.mode),
2020
- footer: /* @__PURE__ */ O(p, {
2019
+ surfaceStyle: B(k),
2020
+ className: s("theme-tweaker--export-dialog sm:max-w-4xl", k.mode),
2021
+ footer: /* @__PURE__ */ D(p, {
2021
2022
  direction: "horizontal",
2022
2023
  align: "center",
2023
2024
  justify: "between",
2024
2025
  className: "theme-tweaker--export-footer w-full",
2025
- children: [/* @__PURE__ */ D(c, {
2026
+ children: [/* @__PURE__ */ E(c, {
2026
2027
  type: "button",
2027
2028
  tone: "secondary",
2028
2029
  buttonStyle: "ghost",
2029
- icon: we,
2030
+ icon: Ee,
2030
2031
  disabled: Y === 0,
2031
- onClick: ht,
2032
- children: k.reset
2033
- }), /* @__PURE__ */ D(c, {
2032
+ onClick: gt,
2033
+ children: O.reset
2034
+ }), /* @__PURE__ */ E(c, {
2034
2035
  onClick: W.hide,
2035
- children: k.close
2036
+ children: O.close
2036
2037
  })]
2037
2038
  }),
2038
- children: /* @__PURE__ */ O(p, {
2039
+ children: /* @__PURE__ */ D(p, {
2039
2040
  gap: "xl",
2040
2041
  className: "theme-tweaker--export-body",
2041
2042
  children: [
2042
- /* @__PURE__ */ D(it, {
2043
- title: k.cssOutputLabel,
2044
- description: k.cssOutputDescription,
2045
- code: qe,
2046
- copyLabel: k.copy,
2047
- downloadLabel: He ? k.exportPending : k.downloadCss,
2048
- downloading: He,
2049
- onCopy: () => void pt(qe),
2050
- onDownload: () => void ft()
2043
+ /* @__PURE__ */ E(at, {
2044
+ title: O.cssOutputLabel,
2045
+ description: O.cssOutputDescription,
2046
+ code: Je,
2047
+ copyLabel: O.copy,
2048
+ downloadLabel: Ue ? O.exportPending : O.downloadCss,
2049
+ downloading: Ue,
2050
+ onCopy: () => void mt(Je),
2051
+ onDownload: () => void pt()
2051
2052
  }),
2052
- /* @__PURE__ */ D(it, {
2053
- title: k.providerOutputLabel,
2054
- description: k.providerOutputDescription,
2053
+ /* @__PURE__ */ E(at, {
2054
+ title: O.providerOutputLabel,
2055
+ description: O.providerOutputDescription,
2055
2056
  code: q?.providerConfigText ?? "",
2056
- copyLabel: k.copyProvider,
2057
- downloadLabel: k.downloadProvider,
2058
- onCopy: () => void pt(q?.providerConfigText ?? ""),
2059
- onDownload: mt
2057
+ copyLabel: O.copyProvider,
2058
+ downloadLabel: O.downloadProvider,
2059
+ onCopy: () => void mt(q?.providerConfigText ?? ""),
2060
+ onDownload: ht
2060
2061
  }),
2061
- gt ? /* @__PURE__ */ D(l, {
2062
+ _t ? /* @__PURE__ */ E(l, {
2062
2063
  tag: "div",
2063
2064
  size: "xs",
2064
2065
  type: J ? "error" : "secondary",
2065
2066
  role: "status",
2066
2067
  "aria-live": "polite",
2067
2068
  className: "theme-tweaker--status",
2068
- children: gt
2069
+ children: _t
2069
2070
  }) : null
2070
2071
  ]
2071
2072
  })
2072
2073
  })
2073
2074
  ]
2074
2075
  });
2075
- return d === "self" ? /* @__PURE__ */ D(V, {
2076
- ...xe,
2076
+ return d === "self" ? /* @__PURE__ */ E(V, {
2077
+ ...Ce,
2077
2078
  ref: G,
2078
- theme: m ? A : M({ mode: A.mode }),
2079
- className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", be),
2080
- children: vt
2081
- }) : /* @__PURE__ */ D("div", {
2082
- ...xe,
2079
+ theme: m ? k : M({ mode: k.mode }),
2080
+ className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", Se),
2081
+ children: yt
2082
+ }) : /* @__PURE__ */ E("div", {
2083
+ ...Ce,
2083
2084
  ref: G,
2084
- className: s("theme-tweaker--component @container/theme-tweaker", be),
2085
- children: vt
2085
+ className: s("theme-tweaker--component @container/theme-tweaker", Se),
2086
+ children: yt
2086
2087
  });
2087
2088
  });
2088
- ft.displayName = "ThemeTweaker";
2089
+ pt.displayName = "ThemeTweaker";
2089
2090
  //#endregion
2090
- export { Ve as AdminUIThemeProvider, V as ThemeScope, ft as ThemeTweaker, B as adminUIThemeToStyle, Pe as countAdminUIThemeOverrides, M as createAdminUITheme, Fe as createScopedAdminUIThemeSelectors, R as createSerializableUIConfig, Ie as createThemeTweakerExportArtifact, Ae as defaultAdminUIThemeSelectors, X as defaultThemeProviderSettingsStrings, Je as defaultThemeTweakerFields, Xe as defaultThemeTweakerStrings, tt as deriveAdminUIElevation, Ze as deriveAdminUIPalette, et as deriveAdminUITypeScale, Le as downloadAdminUITheme, z as getActiveAdminUIThemeOverrides, N as isAdminUIThemeVariableName, L as serializeAdminUITheme, Ne as serializeUIProviderConfig };
2091
+ export { He as AdminUIThemeProvider, V as ThemeScope, pt as ThemeTweaker, B as adminUIThemeToStyle, Fe as countAdminUIThemeOverrides, M as createAdminUITheme, Ie as createScopedAdminUIThemeSelectors, R as createSerializableUIConfig, Le as createThemeTweakerExportArtifact, Me as defaultAdminUIThemeSelectors, X as defaultThemeProviderSettingsStrings, Ye as defaultThemeTweakerFields, Ze as defaultThemeTweakerStrings, nt as deriveAdminUIElevation, Qe as deriveAdminUIPalette, tt as deriveAdminUITypeScale, Re as downloadAdminUITheme, z as getActiveAdminUIThemeOverrides, N as isAdminUIThemeVariableName, L as serializeAdminUITheme, Pe as serializeUIProviderConfig };
2091
2092
 
2092
2093
  //# sourceMappingURL=theme-tweaker.js.map