themelia-react-ui 1.0.0 → 1.0.2

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 (507) hide show
  1. package/CHANGELOG.md +190 -1
  2. package/README.md +92 -13
  3. package/dist/{accordion-BRWh3BM1.js → accordion-BRTcsp8J.js} +8 -8
  4. package/dist/accordion-BRTcsp8J.js.map +1 -0
  5. package/dist/{action-menu-Cx3SdfbN.js → action-menu-Drxw_vJk.js} +36 -36
  6. package/dist/action-menu-Drxw_vJk.js.map +1 -0
  7. package/dist/affordance-geometry.generated-CL84ZN9A.js +63 -0
  8. package/dist/affordance-geometry.generated-CL84ZN9A.js.map +1 -0
  9. package/dist/{ai-artifact-DkOArd3-.js → ai-artifact-DLVdK0Py.js} +151 -155
  10. package/dist/ai-artifact-DLVdK0Py.js.map +1 -0
  11. package/dist/{app-shell-BH_bGcE2.js → app-shell-C_fKpljx.js} +11 -10
  12. package/dist/app-shell-C_fKpljx.js.map +1 -0
  13. package/dist/{attachment-DsLgNHXt.js → attachment-DbjUWsP0.js} +12 -12
  14. package/dist/{attachment-DsLgNHXt.js.map → attachment-DbjUWsP0.js.map} +1 -1
  15. package/dist/auth-CAQcasMV.js +723 -0
  16. package/dist/auth-CAQcasMV.js.map +1 -0
  17. package/dist/{avatar-CsnWaYmt.js → avatar-Bu2HhitA.js} +76 -71
  18. package/dist/avatar-Bu2HhitA.js.map +1 -0
  19. package/dist/{badge-BZXZT9wd.js → badge-CzId1Wlm.js} +4 -4
  20. package/dist/{badge-BZXZT9wd.js.map → badge-CzId1Wlm.js.map} +1 -1
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/buttons.js +3 -2
  27. package/dist/base/cards.js +3 -3
  28. package/dist/base/carousel.js +25 -27
  29. package/dist/base/carousel.js.map +1 -1
  30. package/dist/base/cascader.js +150 -148
  31. package/dist/base/cascader.js.map +1 -1
  32. package/dist/base/chart.js +1 -1
  33. package/dist/base/choice-inputs.js +3 -2
  34. package/dist/base/code-block.js +1 -1
  35. package/dist/base/combobox.js +1 -1
  36. package/dist/base/command.js +1 -1
  37. package/dist/base/copyable.js +1 -1
  38. package/dist/base/date-pickers.js +3 -3
  39. package/dist/base/display.js +7 -7
  40. package/dist/base/feedback.js +4 -3
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +2 -2
  43. package/dist/base/inline-edit.js +233 -0
  44. package/dist/base/inline-edit.js.map +1 -0
  45. package/dist/base/item.js +1 -1
  46. package/dist/base/media-gallery.js +1 -1
  47. package/dist/base/navigation.js +6 -6
  48. package/dist/base/popover-menu.js +1 -1
  49. package/dist/base/popover.js +1 -1
  50. package/dist/base/qr-code.js +1 -1
  51. package/dist/base/repeaters.js +33 -33
  52. package/dist/base/repeaters.js.map +1 -1
  53. package/dist/base/sheet.js +1 -1
  54. package/dist/base/sidebar.js +1 -1
  55. package/dist/base/signature-pad.js +83 -81
  56. package/dist/base/signature-pad.js.map +1 -1
  57. package/dist/base/skeleton.js +1 -1
  58. package/dist/base/spinner.js +1 -1
  59. package/dist/base/structure.js +1 -1
  60. package/dist/base/table.js +1 -1
  61. package/dist/base/text-inputs.js +2 -2
  62. package/dist/base/toaster.js +6 -6
  63. package/dist/base/toaster.js.map +1 -1
  64. package/dist/base/tree.js +1 -1
  65. package/dist/base/upload-queue.js +1 -1
  66. package/dist/base/upload.js +3 -3
  67. package/dist/base/value-inputs.js +1 -1
  68. package/dist/blocks/admin.js +134 -134
  69. package/dist/blocks/admin.js.map +1 -1
  70. package/dist/blocks/ai.js +120 -117
  71. package/dist/blocks/ai.js.map +1 -1
  72. package/dist/blocks/analytics/usage-card.js +3 -0
  73. package/dist/blocks/analytics.js +530 -491
  74. package/dist/blocks/analytics.js.map +1 -1
  75. package/dist/blocks/collaboration.js +2 -2
  76. package/dist/blocks/commerce/receipt.js +1 -1
  77. package/dist/blocks/commerce.js +395 -383
  78. package/dist/blocks/commerce.js.map +1 -1
  79. package/dist/blocks/data-display.js +1 -1
  80. package/dist/blocks/onboarding.js +6 -6
  81. package/dist/blocks/onboarding.js.map +1 -1
  82. package/dist/blocks/planning.js +311 -0
  83. package/dist/blocks/planning.js.map +1 -0
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BuYz5SDU.js} +9 -8
  86. package/dist/breadcrumbs-BuYz5SDU.js.map +1 -0
  87. package/dist/button-BZDasD04.js +651 -0
  88. package/dist/button-BZDasD04.js.map +1 -0
  89. package/dist/{button-BS6l5JUw.js → button-BZyfTvwm.js} +3 -3
  90. package/dist/button-BZyfTvwm.js.map +1 -0
  91. package/dist/buttons-D_6KJvEE.js +99 -0
  92. package/dist/buttons-D_6KJvEE.js.map +1 -0
  93. package/dist/{cards-BMB0laLG.js → cards-qGSErLw_.js} +12 -12
  94. package/dist/{cards-BMB0laLG.js.map → cards-qGSErLw_.js.map} +1 -1
  95. package/dist/chart-Bsc5BICK.js +150 -0
  96. package/dist/chart-Bsc5BICK.js.map +1 -0
  97. package/dist/checkbox-BQNDjUCh.js +34 -0
  98. package/dist/checkbox-BQNDjUCh.js.map +1 -0
  99. package/dist/choice-inputs-Mk3iWbhr.js +725 -0
  100. package/dist/choice-inputs-Mk3iWbhr.js.map +1 -0
  101. package/dist/{code-block-DIlqzoiD.js → code-block-DzHKRybS.js} +23 -23
  102. package/dist/code-block-DzHKRybS.js.map +1 -0
  103. package/dist/{collapsible-DsnktFNv.js → collapsible-ClvC7Bj3.js} +3 -3
  104. package/dist/{collapsible-DsnktFNv.js.map → collapsible-ClvC7Bj3.js.map} +1 -1
  105. package/dist/{collection-content-C4fthJV_.js → collection-content-D6S8cv_n.js} +3 -3
  106. package/dist/{collection-content-C4fthJV_.js.map → collection-content-D6S8cv_n.js.map} +1 -1
  107. package/dist/{combobox-HDftpzxt.js → combobox-BFnbJJp3.js} +18 -18
  108. package/dist/combobox-BFnbJJp3.js.map +1 -0
  109. package/dist/{combobox-CHD750do.js → combobox-hozNwUcc.js} +313 -316
  110. package/dist/combobox-hozNwUcc.js.map +1 -0
  111. package/dist/{command-D0kWBZfd.js → command-BnmSchli.js} +9 -9
  112. package/dist/command-BnmSchli.js.map +1 -0
  113. package/dist/comments-u5L0OGip.js +1156 -0
  114. package/dist/comments-u5L0OGip.js.map +1 -0
  115. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  116. package/dist/components/base/buttons/button.recipes.d.ts +10 -19
  117. package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
  118. package/dist/components/base/cards/card.recipes.d.ts +13 -5
  119. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
  120. package/dist/components/base/cards/smart-card.types.d.ts +3 -1
  121. package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
  122. package/dist/components/base/date-pickers/datepicker.types.d.ts +3 -0
  123. package/dist/components/base/forms/form-field.d.ts +1 -0
  124. package/dist/components/base/forms/form-sizing.d.ts +3 -3
  125. package/dist/components/base/inline-edit/index.d.ts +2 -0
  126. package/dist/components/base/inline-edit/inline-edit.d.ts +81 -0
  127. package/dist/components/base/inline-edit/inline-edit.recipes.d.ts +6 -0
  128. package/dist/components/base/navigation/tabs.d.ts +3 -5
  129. package/dist/components/base/popover/popover.recipes.d.ts +3 -3
  130. package/dist/components/base/structure/structure.recipes.d.ts +6 -0
  131. package/dist/components/base/table/index.d.ts +1 -1
  132. package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
  133. package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
  134. package/dist/components/blocks/analytics/index.d.ts +1 -0
  135. package/dist/components/blocks/analytics/types.d.ts +1 -1
  136. package/dist/components/blocks/analytics/usage-card/index.d.ts +3 -0
  137. package/dist/components/blocks/analytics/usage-card/types.d.ts +52 -0
  138. package/dist/components/blocks/analytics/usage-card/usage-card.d.ts +6 -0
  139. package/dist/components/blocks/analytics/usage-card/usage-card.data.d.ts +19 -0
  140. package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +22 -0
  141. package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
  142. package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
  143. package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
  144. package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
  145. package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
  146. package/dist/components/blocks/planning/index.d.ts +3 -0
  147. package/dist/components/blocks/planning/task-card.d.ts +3 -0
  148. package/dist/components/blocks/planning/task-card.strings.d.ts +15 -0
  149. package/dist/components/blocks/planning/task-card.types.d.ts +66 -0
  150. package/dist/components/features/combobox/components/error-message.d.ts +1 -1
  151. package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
  152. package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
  153. package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
  154. package/dist/components/features/media-library/media-library.d.ts +1 -1
  155. package/dist/components/features/media-library/media-library.types.d.ts +9 -1
  156. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  157. package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
  158. package/dist/components/features/overlays/overlays.types.d.ts +5 -4
  159. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
  160. package/dist/components/features/table/data-table.d.ts +1 -1
  161. package/dist/components/features/table/table.types.d.ts +1 -1
  162. package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
  163. package/dist/components/layout/auth/auth.types.d.ts +1 -0
  164. package/dist/components/layout/page/page.d.ts +0 -1
  165. package/dist/components/layout/page/page.types.d.ts +9 -3
  166. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
  167. package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
  168. package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
  169. package/dist/components/typography/heading.d.ts +5 -2
  170. package/dist/components/typography/index.d.ts +1 -1
  171. package/dist/components/typography/text.styles.d.ts +10 -0
  172. package/dist/components/ui/popover.d.ts +1 -1
  173. package/dist/components/ui/sidebar.d.ts +1 -1
  174. package/dist/components/ui/table.d.ts +2 -1
  175. package/dist/container.recipes-D9t8MHR3.js +27 -0
  176. package/dist/container.recipes-D9t8MHR3.js.map +1 -0
  177. package/dist/{containers-CPNyNo1_.js → containers-DqB-bSYE.js} +34 -56
  178. package/dist/containers-DqB-bSYE.js.map +1 -0
  179. package/dist/control-group-recipes-DBXmfh2E.js +21 -0
  180. package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
  181. package/dist/{copyable-B7SBXJMr.js → copyable-BTSByfmq.js} +6 -6
  182. package/dist/{copyable-B7SBXJMr.js.map → copyable-BTSByfmq.js.map} +1 -1
  183. package/dist/{data-display-b3d1TfL4.js → data-display-Bihs9Ven.js} +542 -329
  184. package/dist/data-display-Bihs9Ven.js.map +1 -0
  185. package/dist/{date-BFNMnrS5.js → date-DOKhJPu7.js} +4 -4
  186. package/dist/{date-BFNMnrS5.js.map → date-DOKhJPu7.js.map} +1 -1
  187. package/dist/{date-picker-DI6kPNof.js → date-picker-DzP5HQq7.js} +492 -472
  188. package/dist/date-picker-DzP5HQq7.js.map +1 -0
  189. package/dist/date-pickers-BpgGz7S-.js +196 -0
  190. package/dist/date-pickers-BpgGz7S-.js.map +1 -0
  191. package/dist/{display-ByI5tkqy.js → display-CS6Hbk18.js} +8 -8
  192. package/dist/{display-ByI5tkqy.js.map → display-CS6Hbk18.js.map} +1 -1
  193. package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-D-boNgGO.js} +7 -7
  194. package/dist/{dropdown-menu-BlnyHr-9.js.map → dropdown-menu-D-boNgGO.js.map} +1 -1
  195. package/dist/features/activities.js +152 -141
  196. package/dist/features/activities.js.map +1 -1
  197. package/dist/features/ai-chat.js +182 -179
  198. package/dist/features/ai-chat.js.map +1 -1
  199. package/dist/features/async-preview.js +9 -9
  200. package/dist/features/async-preview.js.map +1 -1
  201. package/dist/features/combobox.js +1 -1
  202. package/dist/features/comments.js +1 -1
  203. package/dist/features/data-view.js +25 -23
  204. package/dist/features/data-view.js.map +1 -1
  205. package/dist/features/email-composer/engine.js +1 -1
  206. package/dist/features/email-composer.js +103 -104
  207. package/dist/features/email-composer.js.map +1 -1
  208. package/dist/features/event-calendar.js +375 -373
  209. package/dist/features/event-calendar.js.map +1 -1
  210. package/dist/features/filters.js +1 -1
  211. package/dist/features/global-search.js +222 -224
  212. package/dist/features/global-search.js.map +1 -1
  213. package/dist/features/kanban.js +29 -29
  214. package/dist/features/kanban.js.map +1 -1
  215. package/dist/features/map.js +59 -58
  216. package/dist/features/map.js.map +1 -1
  217. package/dist/features/media-library.js +856 -855
  218. package/dist/features/media-library.js.map +1 -1
  219. package/dist/features/mentions.js +1 -1
  220. package/dist/features/overlays.js +1 -1
  221. package/dist/features/products.js +1210 -1209
  222. package/dist/features/products.js.map +1 -1
  223. package/dist/features/questionnaire.js +133 -132
  224. package/dist/features/questionnaire.js.map +1 -1
  225. package/dist/features/resource-assignment.js +29 -31
  226. package/dist/features/resource-assignment.js.map +1 -1
  227. package/dist/features/resource.js +13 -13
  228. package/dist/features/resource.js.map +1 -1
  229. package/dist/features/rich-text-editor.js +2 -2
  230. package/dist/features/schema-form.js +82 -82
  231. package/dist/features/schema-form.js.map +1 -1
  232. package/dist/features/suggestions.js +3 -3
  233. package/dist/features/sync.js +4 -4
  234. package/dist/features/sync.js.map +1 -1
  235. package/dist/features/table.js +1 -1
  236. package/dist/features/theme-tweaker.js +456 -450
  237. package/dist/features/theme-tweaker.js.map +1 -1
  238. package/dist/feedback-CJkUAapr.js +233 -0
  239. package/dist/feedback-CJkUAapr.js.map +1 -0
  240. package/dist/field-affordance-recipes-uKY4MsZ_.js +25 -0
  241. package/dist/field-affordance-recipes-uKY4MsZ_.js.map +1 -0
  242. package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-DQQpiLWC.js} +3 -3
  243. package/dist/field-state-recipes-DQQpiLWC.js.map +1 -0
  244. package/dist/{filters-qtrcv1hf.js → filters-D6FF8L6s.js} +715 -720
  245. package/dist/filters-D6FF8L6s.js.map +1 -0
  246. package/dist/{form-field-C6W-y2hR.js → form-field-CZwrkP7m.js} +17 -9
  247. package/dist/form-field-CZwrkP7m.js.map +1 -0
  248. package/dist/{form-sizing-39NohSqn.js → form-sizing-QP8aIRaW.js} +10 -6
  249. package/dist/form-sizing-QP8aIRaW.js.map +1 -0
  250. package/dist/{forms-BF-HSbff.js → forms-B5NCbkSC.js} +35 -35
  251. package/dist/{forms-BF-HSbff.js.map → forms-B5NCbkSC.js.map} +1 -1
  252. package/dist/forms-numeric-Crrm80Lm.js +867 -0
  253. package/dist/forms-numeric-Crrm80Lm.js.map +1 -0
  254. package/dist/{header-B8ex54cY.js → header-kxruN3RM.js} +53 -49
  255. package/dist/header-kxruN3RM.js.map +1 -0
  256. package/dist/{hooks-D6UBVzf2.js → hooks-BrlnCwQd.js} +2 -2
  257. package/dist/{hooks-D6UBVzf2.js.map → hooks-BrlnCwQd.js.map} +1 -1
  258. package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
  259. package/dist/http-CdEIHyQf.js.map +1 -0
  260. package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-Btc6pQrp.js} +4 -4
  261. package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-Btc6pQrp.js.map} +1 -1
  262. package/dist/index.js +2 -2
  263. package/dist/input-SX9V0AL3.js +255 -0
  264. package/dist/input-SX9V0AL3.js.map +1 -0
  265. package/dist/input-vxcaNCYC.js +20 -0
  266. package/dist/input-vxcaNCYC.js.map +1 -0
  267. package/dist/{item-pJ0GsOiJ.js → item-DE4YnuJx.js} +18 -17
  268. package/dist/item-DE4YnuJx.js.map +1 -0
  269. package/dist/layout/app-shell.js +1 -1
  270. package/dist/layout/auth.js +1 -1
  271. package/dist/layout/containers.js +1 -1
  272. package/dist/layout/header.js +1 -1
  273. package/dist/layout/hooks.js +1 -1
  274. package/dist/layout/navigation.js +1 -1
  275. package/dist/layout/page.js +1 -1
  276. package/dist/layout/settings.js +1 -1
  277. package/dist/layout/sidebar.js +2 -2
  278. package/dist/layout/workspace.js +1 -1
  279. package/dist/layout.js +10 -10
  280. package/dist/lib/affordance-geometry.generated.d.ts +44 -4
  281. package/dist/lib/control-group-recipes.d.ts +22 -0
  282. package/dist/lib/field-affordance-recipes.d.ts +35 -2
  283. package/dist/lib/field-state-recipes.d.ts +2 -2
  284. package/dist/lib/navigation-row-recipes.d.ts +3 -2
  285. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -1
  286. package/dist/lib/surface-recipes.d.ts +5 -2
  287. package/dist/lib/token-merge.generated.d.ts +144 -2
  288. package/dist/lib/ui-provider/types.d.ts +4 -2
  289. package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
  290. package/dist/lib/utils.js +1 -1
  291. package/dist/{media-gallery-Ca4YmvBi.js → media-gallery-DLp3HAz0.js} +75 -74
  292. package/dist/media-gallery-DLp3HAz0.js.map +1 -0
  293. package/dist/{mentions-CRio8mTm.js → mentions-Cl0Kt_Pd.js} +52 -50
  294. package/dist/{mentions-CRio8mTm.js.map → mentions-Cl0Kt_Pd.js.map} +1 -1
  295. package/dist/message-SZUNB1eX.js +127 -0
  296. package/dist/message-SZUNB1eX.js.map +1 -0
  297. package/dist/{navigation-BTrEb5u4.js → navigation-DnQSNMT0.js} +64 -55
  298. package/dist/navigation-DnQSNMT0.js.map +1 -0
  299. package/dist/{navigation-DqEITuD2.js → navigation-DyytsLRB.js} +37 -37
  300. package/dist/navigation-DyytsLRB.js.map +1 -0
  301. package/dist/{navigation-row-recipes-BFpvGPGE.js → navigation-row-recipes-DQEXQcqY.js} +3 -3
  302. package/dist/navigation-row-recipes-DQEXQcqY.js.map +1 -0
  303. package/dist/{number-BNT_BIzJ.js → number-DasMFWEG.js} +4 -4
  304. package/dist/{number-BNT_BIzJ.js.map → number-DasMFWEG.js.map} +1 -1
  305. package/dist/overlays-DUbs1KEi.js +1011 -0
  306. package/dist/overlays-DUbs1KEi.js.map +1 -0
  307. package/dist/{page-BMBGjJY8.js → page-hGmT4nWK.js} +75 -64
  308. package/dist/page-hGmT4nWK.js.map +1 -0
  309. package/dist/{page-header-BH41wCyY.js → page-header-D8nERkn5.js} +9 -9
  310. package/dist/page-header-D8nERkn5.js.map +1 -0
  311. package/dist/{pagination-C29vvt3I.js → pagination-NLGqRirf.js} +20 -20
  312. package/dist/pagination-NLGqRirf.js.map +1 -0
  313. package/dist/{popover-TInGXsjg.js → popover-CghIYdQf.js} +23 -22
  314. package/dist/popover-CghIYdQf.js.map +1 -0
  315. package/dist/{popover-menu-BzqXqE72.js → popover-menu-B4PoWhRl.js} +6 -6
  316. package/dist/{popover-menu-BzqXqE72.js.map → popover-menu-B4PoWhRl.js.map} +1 -1
  317. package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-QlD4JenO.js} +5 -5
  318. package/dist/popover.recipes-QlD4JenO.js.map +1 -0
  319. package/dist/{primitives-DKPOGVpj.js → primitives-C7ff0QaI.js} +120 -113
  320. package/dist/primitives-C7ff0QaI.js.map +1 -0
  321. package/dist/primitives.js +3 -3
  322. package/dist/progress-BroqrAyV.js +169 -0
  323. package/dist/progress-BroqrAyV.js.map +1 -0
  324. package/dist/{receipt-DYWTQGEc.js → receipt-BuJynLgf.js} +8 -8
  325. package/dist/{receipt-DYWTQGEc.js.map → receipt-BuJynLgf.js.map} +1 -1
  326. package/dist/{rich-text-B7sBAdDG.js → rich-text-DlxDOtf4.js} +4 -4
  327. package/dist/{rich-text-B7sBAdDG.js.map → rich-text-DlxDOtf4.js.map} +1 -1
  328. package/dist/rich-text-editor-BKyG7rWz.js +574 -0
  329. package/dist/rich-text-editor-BKyG7rWz.js.map +1 -0
  330. package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-B72Nfuze.js} +35 -26
  331. package/dist/rich-text-editor.recipes-B72Nfuze.js.map +1 -0
  332. package/dist/{scroll-area-BheMQ270.js → scroll-area-D-pIhEKl.js} +3 -3
  333. package/dist/scroll-area-D-pIhEKl.js.map +1 -0
  334. package/dist/{separator-Gk_WXH-l.js → separator-BNIgG3au.js} +3 -3
  335. package/dist/{separator-Gk_WXH-l.js.map → separator-BNIgG3au.js.map} +1 -1
  336. package/dist/{separator-DO0EbCEm.js → separator-BhtFyo4x.js} +2 -2
  337. package/dist/{separator-DO0EbCEm.js.map → separator-BhtFyo4x.js.map} +1 -1
  338. package/dist/services/actions.js +1 -1
  339. package/dist/{settings-D9f_wdIC.js → settings-DOTOzeZ2.js} +10 -9
  340. package/dist/{settings-D9f_wdIC.js.map → settings-DOTOzeZ2.js.map} +1 -1
  341. package/dist/{sheet-vOUloJ4O.js → sheet-BFhrNehm.js} +11 -11
  342. package/dist/sheet-BFhrNehm.js.map +1 -0
  343. package/dist/{sidebar-CNBKFDRW.js → sidebar-CyR4XKwR.js} +219 -200
  344. package/dist/sidebar-CyR4XKwR.js.map +1 -0
  345. package/dist/{sidebar-C3UKkbC5.js → sidebar-SvGJ0Zwi.js} +63 -58
  346. package/dist/sidebar-SvGJ0Zwi.js.map +1 -0
  347. package/dist/{skeleton-BvRhK8y-.js → skeleton-3F0uhYn3.js} +4 -4
  348. package/dist/{skeleton-BvRhK8y-.js.map → skeleton-3F0uhYn3.js.map} +1 -1
  349. package/dist/{smart-card-B5FcKODh.js → smart-card-DjGVV2xr.js} +206 -199
  350. package/dist/smart-card-DjGVV2xr.js.map +1 -0
  351. package/dist/{spinner-JtlFJ7Nc.js → spinner-Cpf7oRkF.js} +5 -5
  352. package/dist/{spinner-JtlFJ7Nc.js.map → spinner-Cpf7oRkF.js.map} +1 -1
  353. package/dist/{structure-BvW4vG4H.js → structure-CRdqVawd.js} +14 -14
  354. package/dist/{structure-BvW4vG4H.js.map → structure-CRdqVawd.js.map} +1 -1
  355. package/dist/{structure.recipes-DjqnBpwz.js → structure.recipes-Bqhf9oIh.js} +2 -2
  356. package/dist/structure.recipes-Bqhf9oIh.js.map +1 -0
  357. package/dist/style.css +1 -1
  358. package/dist/{surface-recipes-CQfRr-VL.js → surface-recipes-Dd__PD-w.js} +4 -3
  359. package/dist/surface-recipes-Dd__PD-w.js.map +1 -0
  360. package/dist/{table-DnlAJ-xR.js → table-CLtJTxoR.js} +17 -16
  361. package/dist/table-CLtJTxoR.js.map +1 -0
  362. package/dist/table-CcRDZiLP.js +1444 -0
  363. package/dist/table-CcRDZiLP.js.map +1 -0
  364. package/dist/tabs-BNgu7g0u.js +188 -0
  365. package/dist/tabs-BNgu7g0u.js.map +1 -0
  366. package/dist/text-inputs-DsR56TR-.js +330 -0
  367. package/dist/text-inputs-DsR56TR-.js.map +1 -0
  368. package/dist/{text.styles-BwB7vAF2.js → text.styles-Q4sGAIgA.js} +18 -10
  369. package/dist/text.styles-Q4sGAIgA.js.map +1 -0
  370. package/dist/theme.css +77 -115
  371. package/dist/{timelines-CnZ2S_Gr.js → timelines-D1pkt3se.js} +84 -78
  372. package/dist/timelines-D1pkt3se.js.map +1 -0
  373. package/dist/{tree-COD9BGdU.js → tree-BtmYyMZV.js} +8 -8
  374. package/dist/{tree-COD9BGdU.js.map → tree-BtmYyMZV.js.map} +1 -1
  375. package/dist/typography/rich-text.js +1 -1
  376. package/dist/typography-BxQgiZyw.js +96 -0
  377. package/dist/typography-BxQgiZyw.js.map +1 -0
  378. package/dist/typography.js +1 -1
  379. package/dist/{ui-provider-CftIB6TY.js → ui-provider-DRPn3qNl.js} +3 -2
  380. package/dist/ui-provider-DRPn3qNl.js.map +1 -0
  381. package/dist/ui-provider.js +1 -1
  382. package/dist/{upload-DIzw1dx1.js → upload-CDbYw1WN.js} +326 -323
  383. package/dist/upload-CDbYw1WN.js.map +1 -0
  384. package/dist/{upload-queue-xRJ3qDmd.js → upload-queue-CNd_hH_a.js} +25 -25
  385. package/dist/upload-queue-CNd_hH_a.js.map +1 -0
  386. package/dist/usage-card-VyJLUwRr.js +457 -0
  387. package/dist/usage-card-VyJLUwRr.js.map +1 -0
  388. package/dist/utils-BvH9PSmq.js +4275 -0
  389. package/dist/utils-BvH9PSmq.js.map +1 -0
  390. package/dist/value-inputs-D0KCrfVC.js +840 -0
  391. package/dist/value-inputs-D0KCrfVC.js.map +1 -0
  392. package/dist/{workspace-Cbqz4FzN.js → workspace-CcR8r-Nt.js} +115 -122
  393. package/dist/workspace-CcR8r-Nt.js.map +1 -0
  394. package/docs/consumer-skill/SKILL.md +112 -18
  395. package/docs/consumer-skill/examples/analytics.tsx +34 -0
  396. package/docs/consumer-skill/examples/app-layout.tsx +42 -12
  397. package/docs/consumer-skill/examples/detail.tsx +24 -9
  398. package/docs/consumer-skill/examples/manifest.json +27 -1
  399. package/docs/consumer-skill/examples/planning-usage-edit.tsx +29 -0
  400. package/docs/consumer-skill/examples/scoped-directory.tsx +77 -0
  401. package/docs/consumer-skill/examples/website.tsx +56 -0
  402. package/docs/consumer-skill/references/analytics.md +70 -0
  403. package/docs/consumer-skill/references/composition.md +219 -2
  404. package/docs/consumer-skill/references/design-contract.md +37 -10
  405. package/docs/consumer-skill/references/discovery.md +93 -5
  406. package/docs/consumer-skill/references/installation.md +20 -3
  407. package/docs/consumer-skill/references/integration.md +26 -0
  408. package/docs/consumer-skill/references/public-api.json +2416 -388
  409. package/docs/consumer-skill/references/review.md +126 -0
  410. package/docs/consumer-skill/references/theming.md +52 -7
  411. package/docs/consumer-skill/references/tokens.json +177 -9
  412. package/docs/consumer-skill/references/workflows.md +129 -1
  413. package/docs/consumer-skill/scripts/check-composition.mjs +31 -0
  414. package/docs/consumer-skill/scripts/composition-policy.mjs +317 -0
  415. package/docs/consumer-skill/scripts/discovery.mjs +65 -8
  416. package/docs/consumer-skill/scripts/surface-policy.mjs +66 -0
  417. package/package.json +30 -6
  418. package/dist/accordion-BRWh3BM1.js.map +0 -1
  419. package/dist/action-menu-Cx3SdfbN.js.map +0 -1
  420. package/dist/affordance-geometry.generated-DXl-Zb3Z.js +0 -23
  421. package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +0 -1
  422. package/dist/ai-artifact-DkOArd3-.js.map +0 -1
  423. package/dist/app-shell-BH_bGcE2.js.map +0 -1
  424. package/dist/auth-BDB1V_2q.js +0 -704
  425. package/dist/auth-BDB1V_2q.js.map +0 -1
  426. package/dist/avatar-CsnWaYmt.js.map +0 -1
  427. package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
  428. package/dist/button-BS6l5JUw.js.map +0 -1
  429. package/dist/buttons-Co6GavvM.js +0 -674
  430. package/dist/buttons-Co6GavvM.js.map +0 -1
  431. package/dist/chart-DVfcwQu6.js +0 -149
  432. package/dist/chart-DVfcwQu6.js.map +0 -1
  433. package/dist/choice-inputs-CavA-SGV.js +0 -644
  434. package/dist/choice-inputs-CavA-SGV.js.map +0 -1
  435. package/dist/code-block-DIlqzoiD.js.map +0 -1
  436. package/dist/combobox-CHD750do.js.map +0 -1
  437. package/dist/combobox-HDftpzxt.js.map +0 -1
  438. package/dist/command-D0kWBZfd.js.map +0 -1
  439. package/dist/comments-CvYeglMS.js +0 -1132
  440. package/dist/comments-CvYeglMS.js.map +0 -1
  441. package/dist/containers-CPNyNo1_.js.map +0 -1
  442. package/dist/data-display-b3d1TfL4.js.map +0 -1
  443. package/dist/date-picker-DI6kPNof.js.map +0 -1
  444. package/dist/date-pickers-ByP6Cv2z.js +0 -224
  445. package/dist/date-pickers-ByP6Cv2z.js.map +0 -1
  446. package/dist/feedback-a9j9J-9A.js +0 -391
  447. package/dist/feedback-a9j9J-9A.js.map +0 -1
  448. package/dist/field-affordance-recipes-CHdUtn2Z.js +0 -17
  449. package/dist/field-affordance-recipes-CHdUtn2Z.js.map +0 -1
  450. package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
  451. package/dist/filters-qtrcv1hf.js.map +0 -1
  452. package/dist/form-field-C6W-y2hR.js.map +0 -1
  453. package/dist/form-sizing-39NohSqn.js.map +0 -1
  454. package/dist/forms-numeric-Y15Bg5Nr.js +0 -867
  455. package/dist/forms-numeric-Y15Bg5Nr.js.map +0 -1
  456. package/dist/header-B8ex54cY.js.map +0 -1
  457. package/dist/http-CLTVJc5I.js.map +0 -1
  458. package/dist/input-DMorJiTI.js +0 -202
  459. package/dist/input-DMorJiTI.js.map +0 -1
  460. package/dist/input-ci9fIgFH.js +0 -20
  461. package/dist/input-ci9fIgFH.js.map +0 -1
  462. package/dist/item-pJ0GsOiJ.js.map +0 -1
  463. package/dist/media-gallery-Ca4YmvBi.js.map +0 -1
  464. package/dist/message-B5-6LeYl.js +0 -108
  465. package/dist/message-B5-6LeYl.js.map +0 -1
  466. package/dist/navigation-BTrEb5u4.js.map +0 -1
  467. package/dist/navigation-DqEITuD2.js.map +0 -1
  468. package/dist/navigation-row-recipes-BFpvGPGE.js.map +0 -1
  469. package/dist/overlays-DBqV0J_V.js +0 -982
  470. package/dist/overlays-DBqV0J_V.js.map +0 -1
  471. package/dist/page-BMBGjJY8.js.map +0 -1
  472. package/dist/page-header-BH41wCyY.js.map +0 -1
  473. package/dist/pagination-C29vvt3I.js.map +0 -1
  474. package/dist/popover-TInGXsjg.js.map +0 -1
  475. package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
  476. package/dist/primitives-DKPOGVpj.js.map +0 -1
  477. package/dist/rich-text-editor-BZSJchAF.js +0 -575
  478. package/dist/rich-text-editor-BZSJchAF.js.map +0 -1
  479. package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
  480. package/dist/scroll-area-BheMQ270.js.map +0 -1
  481. package/dist/select-B2mb-qN2.js +0 -108
  482. package/dist/select-B2mb-qN2.js.map +0 -1
  483. package/dist/sheet-vOUloJ4O.js.map +0 -1
  484. package/dist/sidebar-C3UKkbC5.js.map +0 -1
  485. package/dist/sidebar-CNBKFDRW.js.map +0 -1
  486. package/dist/smart-card-B5FcKODh.js.map +0 -1
  487. package/dist/structure.recipes-DjqnBpwz.js.map +0 -1
  488. package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
  489. package/dist/table-DnlAJ-xR.js.map +0 -1
  490. package/dist/table-ghtAQ-JJ.js +0 -1424
  491. package/dist/table-ghtAQ-JJ.js.map +0 -1
  492. package/dist/tabs-DY09eoZg.js +0 -187
  493. package/dist/tabs-DY09eoZg.js.map +0 -1
  494. package/dist/text-inputs-BhOcedTo.js +0 -331
  495. package/dist/text-inputs-BhOcedTo.js.map +0 -1
  496. package/dist/text.styles-BwB7vAF2.js.map +0 -1
  497. package/dist/timelines-CnZ2S_Gr.js.map +0 -1
  498. package/dist/typography-Cv8MT-82.js +0 -96
  499. package/dist/typography-Cv8MT-82.js.map +0 -1
  500. package/dist/ui-provider-CftIB6TY.js.map +0 -1
  501. package/dist/upload-DIzw1dx1.js.map +0 -1
  502. package/dist/upload-queue-xRJ3qDmd.js.map +0 -1
  503. package/dist/utils-C2EKeIw3.js +0 -72
  504. package/dist/utils-C2EKeIw3.js.map +0 -1
  505. package/dist/value-inputs-Co1fu-xv.js +0 -824
  506. package/dist/value-inputs-Co1fu-xv.js.map +0 -1
  507. package/dist/workspace-Cbqz4FzN.js.map +0 -1
@@ -1,48 +1,48 @@
1
1
  "use client";
2
- import { h as e, m as t } from "../ui-provider-CftIB6TY.js";
2
+ import { h as e, m as t } from "../ui-provider-DRPn3qNl.js";
3
3
  import { COMPONENT_SCALES as n, SEMANTIC_TONES as r } from "../component-vocabulary.js";
4
4
  import { t as i } from "../theme-scope-kStaAer0.js";
5
5
  import { interpolateString as a, useStrings as o } from "../lib/strings.js";
6
- import { t as s } from "../utils-C2EKeIw3.js";
7
- import { n as c } from "../buttons-Co6GavvM.js";
8
- import { a as l, i as u } from "../typography-Cv8MT-82.js";
9
- import { r as d, t as f } from "../structure-BvW4vG4H.js";
10
- import { _ as p, f as m, g as h, h as g, m as ee, t as te } from "../smart-card-B5FcKODh.js";
11
- import { i as ne, l as re, r as ie } from "../overlays-DBqV0J_V.js";
12
- import { m as ae } from "../primitives-DKPOGVpj.js";
13
- import { t as oe } from "../accordion-BRWh3BM1.js";
14
- import { t as _ } from "../badge-BZXZT9wd.js";
15
- import { t as v } from "../input-DMorJiTI.js";
16
- import { d as se } from "../text-inputs-BhOcedTo.js";
17
- import { t as y } from "../form-field-C6W-y2hR.js";
18
- import { a as b, l as x } from "../choice-inputs-CavA-SGV.js";
19
- import { i as ce, n as S } from "../value-inputs-Co1fu-xv.js";
20
- import { d as le } from "../forms-numeric-Y15Bg5Nr.js";
21
- import { t as ue } from "../item-pJ0GsOiJ.js";
22
- import { i as de, r as fe, t as pe } from "../tabs-DY09eoZg.js";
23
- import { forwardRef as C, useEffect as me, useId as he, useImperativeHandle as ge, useMemo as w, useRef as _e, useState as T } from "react";
24
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
25
- import { CheckCircle2 as ve, Copy as O, Download as ye, Info as be, LayoutGrid as xe, Moon as Se, Palette as k, RotateCcw as Ce, Search as we, Settings2 as Te, Shapes as Ee, ShieldCheck as A, Sun as De, Type as Oe } from "lucide-react";
6
+ import { t as s } from "../utils-BvH9PSmq.js";
7
+ import { a as c, i as l } from "../typography-BxQgiZyw.js";
8
+ import { t as u } from "../button-BZDasD04.js";
9
+ import { r as d, t as f } from "../structure-CRdqVawd.js";
10
+ import { _ as p, g as m, h as ee, p as te, t as ne, v as re } from "../smart-card-DjGVV2xr.js";
11
+ import { i as ie, l as ae, r as oe } from "../overlays-DUbs1KEi.js";
12
+ import { m as se } from "../primitives-C7ff0QaI.js";
13
+ import { t as ce } from "../accordion-BRTcsp8J.js";
14
+ import { t as h } from "../badge-CzId1Wlm.js";
15
+ import { t as g } from "../input-SX9V0AL3.js";
16
+ import { d as le } from "../text-inputs-DsR56TR-.js";
17
+ import { a as _, c as v } from "../choice-inputs-Mk3iWbhr.js";
18
+ import { t as y } from "../form-field-CZwrkP7m.js";
19
+ import { i as ue, n as de } from "../value-inputs-D0KCrfVC.js";
20
+ import { d as fe } from "../forms-numeric-Crrm80Lm.js";
21
+ import { t as pe } from "../item-DE4YnuJx.js";
22
+ import { i as me, r as he, t as ge } from "../tabs-BNgu7g0u.js";
23
+ import { forwardRef as b, useEffect as _e, useId as x, useImperativeHandle as ve, useMemo as S, useRef as ye, useState as C } from "react";
24
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
25
+ import { CheckCircle2 as be, Copy as E, Download as xe, Info as Se, LayoutGrid as Ce, Moon as we, Palette as D, RotateCcw as Te, Search as Ee, Settings2 as De, Shapes as Oe, ShieldCheck as O, Sun as ke, Type as Ae } from "lucide-react";
26
26
  //#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
27
- var ke = {
27
+ var je = {
28
28
  shared: ":root",
29
29
  light: ":root,\n.light",
30
30
  dark: ".dark"
31
- }, j = /^--[a-z][a-z0-9-]*$/i, Ae = /[;{}]/, je = /[;{}]/;
32
- function M(e = {}) {
31
+ }, k = /^--[a-z][a-z0-9-]*$/i, Me = /[;{}]/, Ne = /[;{}]/;
32
+ function A(e = {}) {
33
33
  return {
34
34
  mode: e.mode ?? "light",
35
- shared: { ...e.shared ?? {} },
36
- light: { ...e.light ?? {} },
37
- dark: { ...e.dark ?? {} }
35
+ shared: { ...e.shared },
36
+ light: { ...e.light },
37
+ dark: { ...e.dark }
38
38
  };
39
39
  }
40
- function N(e) {
41
- return j.test(e);
40
+ function j(e) {
41
+ return k.test(e);
42
42
  }
43
- function P(e, t = !0) {
43
+ function M(e, t = !0) {
44
44
  return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
45
- if (!N(e)) {
45
+ if (!j(e)) {
46
46
  if (!t) return [];
47
47
  throw TypeError(`Invalid CSS variable name: ${e}`);
48
48
  }
@@ -50,121 +50,121 @@ function P(e, t = !0) {
50
50
  let t = e.charCodeAt(0);
51
51
  return t < 32 || t === 127;
52
52
  });
53
- if (Ae.test(r) || i) {
53
+ if (Me.test(r) || i) {
54
54
  if (!t) return [];
55
55
  throw TypeError(`Unsafe CSS value for ${e}.`);
56
56
  }
57
57
  return [[e, r]];
58
58
  }).sort(([e], [t]) => e.localeCompare(t));
59
59
  }
60
- function F(e, t) {
60
+ function N(e, t) {
61
61
  let n = e.trim();
62
- if (n.length === 0 || je.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
62
+ if (n.length === 0 || Ne.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
63
63
  return n;
64
64
  }
65
- function I(e, t) {
66
- let n = P(t);
65
+ function P(e, t) {
66
+ let n = M(t);
67
67
  return n.length === 0 ? null : [
68
68
  `${e} {`,
69
69
  ...n.map(([e, t]) => `\t${e}: ${t};`),
70
70
  "}"
71
71
  ].join("\n");
72
72
  }
73
- function L(e, t = {}) {
74
- let n = t.selectors ?? ke, r = [
75
- I(F(n.shared, "shared"), e.shared),
76
- I(F(n.light, "light"), e.light),
77
- I(F(n.dark, "dark"), e.dark)
73
+ function F(e, t = {}) {
74
+ let n = t.selectors ?? je, r = [
75
+ P(N(n.shared, "shared"), e.shared),
76
+ P(N(n.light, "light"), e.light),
77
+ P(N(n.dark, "dark"), e.dark)
78
78
  ].filter((e) => e !== null), i = t.banner === !1 ? null : `/* ${t.banner ?? "themelia-react-ui theme overrides"} */`;
79
79
  return `${[...i ? [i] : [], ...r.length > 0 ? r : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
80
80
  }
81
- function R(t = {}) {
81
+ function I(t = {}) {
82
82
  let n = e(t), { locale: r, formatRelativeTime: i, ...a } = n.dates;
83
83
  return {
84
84
  ...n,
85
85
  dates: a
86
86
  };
87
87
  }
88
- function z(e = {}) {
89
- let t = R(e);
88
+ function L(e = {}) {
89
+ let t = I(e);
90
90
  return `import type { UIConfig } from 'themelia-react-ui/ui-provider';\n\nexport const adminUIConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig;\n`;
91
91
  }
92
- function Me(e, t = e.mode) {
92
+ function Pe(e, t = e.mode) {
93
93
  return {
94
94
  ...e.shared,
95
95
  ...e[t]
96
96
  };
97
97
  }
98
- function B(e, t = e.mode) {
99
- return Object.fromEntries(P(Me(e, t), !1));
98
+ function R(e, t = e.mode) {
99
+ return Object.fromEntries(M(Pe(e, t), !1));
100
100
  }
101
- function Ne(e) {
102
- return P(e.shared, !1).length + P(e.light, !1).length + P(e.dark, !1).length;
101
+ function Fe(e) {
102
+ return M(e.shared, !1).length + M(e.light, !1).length + M(e.dark, !1).length;
103
103
  }
104
- function Pe(e) {
105
- let t = F(e, "shared");
104
+ function Ie(e) {
105
+ let t = N(e, "shared");
106
106
  return {
107
107
  shared: t,
108
108
  light: `${t},\n${t}.light,\n.light ${t}`,
109
109
  dark: `${t}.dark,\n.dark ${t}`
110
110
  };
111
111
  }
112
- function Fe(e, t = "admin-ui-theme.css", n = {}, r = {}) {
113
- let i = M(r.resolvedTheme ?? e), a = R(r.providerConfig);
112
+ function Le(e, t = "admin-ui-theme.css", n = {}, r = {}) {
113
+ let i = A(r.resolvedTheme ?? e), a = I(r.providerConfig);
114
114
  return {
115
115
  fileName: t,
116
- cssText: L(i, {
116
+ cssText: F(i, {
117
117
  ...n,
118
118
  banner: n.banner ?? "themelia-react-ui complete theme"
119
119
  }),
120
- overrideCssText: L(e, n),
121
- theme: M(e),
120
+ overrideCssText: F(e, n),
121
+ theme: A(e),
122
122
  resolvedTheme: i,
123
- overrideCount: Ne(e),
123
+ overrideCount: Fe(e),
124
124
  providerFileName: r.providerFileName ?? "admin-ui.config.ts",
125
125
  providerConfig: a,
126
- providerConfigText: z(a)
126
+ providerConfigText: L(a)
127
127
  };
128
128
  }
129
- function Ie(e) {
130
- Le({
129
+ function Re(e) {
130
+ ze({
131
131
  fileName: e.fileName,
132
132
  text: e.cssText,
133
133
  mimeType: "text/css;charset=utf-8"
134
134
  });
135
135
  }
136
- function Le({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
136
+ function ze({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
137
137
  if (typeof document > "u" || typeof URL > "u") throw Error("File download requires a browser document. Provide onExport in non-browser environments.");
138
138
  let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
139
139
  a.href = i, a.download = e, a.hidden = !0, document.body.append(a), a.click(), a.remove(), URL.revokeObjectURL(i);
140
140
  }
141
141
  //#endregion
142
142
  //#region src/components/features/theme-tweaker/theme-scope.tsx
143
- var V = C(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
144
- return /* @__PURE__ */ E(i, {
143
+ var z = b(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
144
+ return /* @__PURE__ */ w(i, {
145
145
  ...o,
146
146
  ref: c,
147
147
  "data-theme-mode": t,
148
148
  className: s("theme-scope--component", t, n),
149
149
  style: {
150
- ...B(e, t),
150
+ ...R(e, t),
151
151
  ...r
152
152
  },
153
153
  children: a
154
154
  });
155
155
  });
156
- V.displayName = "ThemeScope";
156
+ z.displayName = "ThemeScope";
157
157
  //#endregion
158
158
  //#region src/components/features/theme-tweaker/use-applied-theme.ts
159
- function Re(e, t) {
159
+ function Be(e, t) {
160
160
  return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
161
161
  }
162
- function ze({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
163
- me(() => {
162
+ function Ve({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
163
+ _e(() => {
164
164
  if (!e || r === "self") return;
165
- let a = Re(r, n);
165
+ let a = Be(r, n);
166
166
  if (!a) return;
167
- let o = B(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
167
+ let o = R(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
168
168
  for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
169
169
  value: a.style.getPropertyValue(e),
170
170
  priority: a.style.getPropertyPriority(e)
@@ -188,22 +188,22 @@ function ze({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
188
188
  }
189
189
  //#endregion
190
190
  //#region src/components/features/theme-tweaker/admin-ui-theme-provider.tsx
191
- var Be = C(function({ config: n, theme: r, mode: i = r.mode, target: a = "document", manageModeClass: o = !0, className: c, children: l, ...u }, d) {
192
- let f = _e(null);
193
- ge(d, () => f.current);
194
- let p = w(() => M({
191
+ var B = b(function({ config: n, theme: r, mode: i = r.mode, target: a = "document", manageModeClass: o = !0, className: c, children: l, ...u }, d) {
192
+ let f = ye(null);
193
+ ve(d, () => f.current);
194
+ let p = S(() => A({
195
195
  ...r,
196
196
  mode: i
197
- }), [i, r]), m = w(() => e(n), [n]);
198
- return ze({
197
+ }), [i, r]), m = S(() => e(n), [n]);
198
+ return Ve({
199
199
  apply: a === "document",
200
200
  manageModeClass: o,
201
201
  selfRef: f,
202
202
  target: a,
203
203
  theme: p
204
- }), /* @__PURE__ */ E(t, {
204
+ }), /* @__PURE__ */ w(t, {
205
205
  config: m,
206
- children: /* @__PURE__ */ E(V, {
206
+ children: /* @__PURE__ */ w(z, {
207
207
  ...u,
208
208
  ref: f,
209
209
  theme: p,
@@ -213,10 +213,10 @@ var Be = C(function({ config: n, theme: r, mode: i = r.mode, target: a = "docume
213
213
  })
214
214
  });
215
215
  });
216
- Be.displayName = "AdminUIThemeProvider";
216
+ B.displayName = "AdminUIThemeProvider";
217
217
  //#endregion
218
218
  //#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
219
- var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--popover.--popover-foreground.--primary.--primary-foreground.--secondary.--secondary-foreground.--muted.--muted-foreground.--accent.--accent-foreground.--destructive.--destructive-foreground.--border.--input.--ring.--chart-1.--chart-2.--chart-3.--chart-4.--chart-5.--sidebar.--sidebar-foreground.--sidebar-primary.--sidebar-primary-foreground.--sidebar-accent.--sidebar-accent-foreground.--sidebar-border.--sidebar-ring".split("."), Ve = [
219
+ var V = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--popover.--popover-foreground.--primary.--primary-foreground.--secondary.--secondary-foreground.--muted.--muted-foreground.--accent.--accent-foreground.--destructive.--destructive-foreground.--border.--input.--ring.--chart-1.--chart-2.--chart-3.--chart-4.--chart-5.--sidebar.--sidebar-foreground.--sidebar-primary.--sidebar-primary-foreground.--sidebar-accent.--sidebar-accent-foreground.--sidebar-border.--sidebar-ring".split("."), He = [
220
220
  "--success",
221
221
  "--success-foreground",
222
222
  "--info",
@@ -235,12 +235,12 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
235
235
  "--inverse-surface-strong",
236
236
  "--inverse-border",
237
237
  "--inverse-decoration"
238
- ], He = ["--overlay-backdrop"], Ue = [
238
+ ], Ue = ["--overlay-backdrop"], We = [
239
239
  "--font-heading",
240
240
  "--font-sans",
241
241
  "--font-serif",
242
242
  "--font-mono"
243
- ], U = [
243
+ ], H = [
244
244
  "xxs",
245
245
  "xs",
246
246
  "pxs",
@@ -256,7 +256,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
256
256
  "7xl",
257
257
  "8xl",
258
258
  "9xl"
259
- ].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), We = [
259
+ ].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), Ge = [
260
260
  "--shadow-2xs",
261
261
  "--shadow-xs",
262
262
  "--shadow-sm",
@@ -265,7 +265,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
265
265
  "--shadow-lg",
266
266
  "--shadow-xl",
267
267
  "--shadow-2xl"
268
- ], W = [
268
+ ], U = [
269
269
  "--space-scale",
270
270
  "--density-scale",
271
271
  "--height-action",
@@ -279,7 +279,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
279
279
  "--avatar",
280
280
  "--shell-header-height",
281
281
  "--shell-sidebar-width"
282
- ], Ge = [
282
+ ], W = [
283
283
  "--content-width-sm",
284
284
  "--content-width-md",
285
285
  "--content-width-lg",
@@ -301,7 +301,7 @@ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
301
301
  "--overlay-backdrop": "Scrim painted behind dialog, alert dialog, sheet, and drawer surfaces.",
302
302
  "--primary-accent": "Brand color used as foreground for icons, spinners, and active marks.",
303
303
  "--warning-accent": "Warning color used as foreground for icons and marks on tinted warning surfaces.",
304
- "--radius": "Base shadcn corner radius from which package radii derive.",
304
+ "--radius": "Outer surface radius; controls and collection rows derive a bounded inner curve from this same root.",
305
305
  "--space-scale": "Multiplies structural gaps and padding without changing control heights.",
306
306
  "--density-scale": "Multiplies actions, controls, rows, and density-sensitive geometry.",
307
307
  "--height-action": "Base height for buttons and clickable action triggers.",
@@ -560,25 +560,25 @@ function q(e, t, n, r, i) {
560
560
  }));
561
561
  }
562
562
  var Ye = [
563
- ...q(H.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
564
- ...q(He, "colors", "surfaces-content", "shared", "color"),
565
- ...q(H.slice(6, 19), "colors", "brand-actions", "mode", "color"),
566
- ...q(H.slice(19, 24), "colors", "charts", "mode", "color"),
567
- ...q(H.slice(24), "colors", "sidebar", "mode", "color"),
568
- ...q(Ve.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
569
- ...q(Ve.slice(7), "states", "inverse-surfaces", "mode", "color"),
570
- ...q(Ue, "typography", "font-families", "shared", "font"),
571
- ...q(U, "typography", "type-scale", "shared", "length"),
563
+ ...q(V.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
564
+ ...q(Ue, "colors", "surfaces-content", "shared", "color"),
565
+ ...q(V.slice(6, 19), "colors", "brand-actions", "mode", "color"),
566
+ ...q(V.slice(19, 24), "colors", "charts", "mode", "color"),
567
+ ...q(V.slice(24), "colors", "sidebar", "mode", "color"),
568
+ ...q(He.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
569
+ ...q(He.slice(7), "states", "inverse-surfaces", "mode", "color"),
570
+ ...q(We, "typography", "font-families", "shared", "font"),
571
+ ...q(H, "typography", "type-scale", "shared", "length"),
572
572
  ...q(["--radius"], "shape", "radius", "shared", "length"),
573
- ...q(We, "shape", "elevation", "mode", "shadow"),
574
- ...q(W.slice(0, 2), "structure", "global-scales", "shared", "length"),
575
- ...q(W.slice(2, 5), "structure", "actions-controls", "shared", "length"),
573
+ ...q(Ge, "shape", "elevation", "mode", "shadow"),
574
+ ...q(U.slice(0, 2), "structure", "global-scales", "shared", "length"),
575
+ ...q(U.slice(2, 5), "structure", "actions-controls", "shared", "length"),
576
576
  ...q(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
577
- ...q(W.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
578
- ...q(W.slice(9, 11), "structure", "media", "shared", "length"),
579
- ...q(W.slice(11), "structure", "application-shell", "shared", "length"),
580
- ...q(Ge.slice(0, 5), "structure", "content-widths", "shared", "length"),
581
- ...q(Ge.slice(5), "structure", "adaptive-layout", "shared", "length")
577
+ ...q(U.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
578
+ ...q(U.slice(9, 11), "structure", "media", "shared", "length"),
579
+ ...q(U.slice(11), "structure", "application-shell", "shared", "length"),
580
+ ...q(W.slice(0, 5), "structure", "content-widths", "shared", "length"),
581
+ ...q(W.slice(5), "structure", "adaptive-layout", "shared", "length")
582
582
  ].map((e) => e.name === "--space-scale" || e.name === "--density-scale" ? {
583
583
  ...e,
584
584
  kind: "number"
@@ -631,6 +631,7 @@ var Ye = [
631
631
  cardSurface: "Card surface",
632
632
  spinner: "Spinner",
633
633
  cardDivider: "Card header divider",
634
+ cardFooterDivider: "Card footer divider",
634
635
  toastPosition: "Position",
635
636
  toastTheme: "Theme",
636
637
  toastDuration: "Duration (ms)",
@@ -701,7 +702,7 @@ function Y(e, t) {
701
702
  }));
702
703
  }
703
704
  function Xe({ config: e, onChange: t, strings: i = J }) {
704
- let a = R(e), o = Y(n, i), s = [
705
+ let a = I(e), o = Y(n, i), s = [
705
706
  "sunday",
706
707
  "monday",
707
708
  "tuesday",
@@ -712,7 +713,7 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
712
713
  ].map((e, t) => ({
713
714
  value: String(t),
714
715
  label: i.options[e]
715
- })), c = (e, n, r) => {
716
+ })), l = (e, n, r) => {
716
717
  t({
717
718
  ...a,
718
719
  [e]: {
@@ -721,50 +722,50 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
721
722
  }
722
723
  });
723
724
  };
724
- return /* @__PURE__ */ D(f, {
725
+ return /* @__PURE__ */ T(f, {
725
726
  gap: "lg",
726
727
  className: "theme-tweaker--provider-settings",
727
728
  children: [
728
- /* @__PURE__ */ D(f, {
729
+ /* @__PURE__ */ T(f, {
729
730
  gap: "normal",
730
- children: [/* @__PURE__ */ E(l, {
731
+ children: [/* @__PURE__ */ w(c, {
731
732
  weight: "semibold",
732
733
  children: i.title
733
- }), /* @__PURE__ */ E(l, {
734
+ }), /* @__PURE__ */ w(c, {
734
735
  size: "xs",
735
736
  type: "secondary",
736
737
  children: i.description
737
738
  })]
738
739
  }),
739
- /* @__PURE__ */ D(m, {
740
+ /* @__PURE__ */ T(te, {
740
741
  tone: "info",
741
742
  role: "note",
742
743
  className: "theme-tweaker--provider-boundary",
743
744
  children: [
744
- /* @__PURE__ */ E(be, { "aria-hidden": "true" }),
745
- /* @__PURE__ */ E(p, { children: i.boundaryTitle }),
746
- /* @__PURE__ */ E(ee, { children: i.boundaryDescription }),
747
- /* @__PURE__ */ D(g, { children: [
748
- /* @__PURE__ */ E(h, {
745
+ /* @__PURE__ */ w(Se, { "aria-hidden": "true" }),
746
+ /* @__PURE__ */ w(re, { children: i.boundaryTitle }),
747
+ /* @__PURE__ */ w(ee, { children: i.boundaryDescription }),
748
+ /* @__PURE__ */ T(m, { children: [
749
+ /* @__PURE__ */ w(p, {
749
750
  label: i.summary.locale,
750
751
  value: a.formatting?.locale ?? i.options.default
751
752
  }),
752
- /* @__PURE__ */ E(h, {
753
+ /* @__PURE__ */ w(p, {
753
754
  label: i.summary.currency,
754
755
  value: a.money?.defaultCurrency ?? i.options.default
755
756
  }),
756
- /* @__PURE__ */ E(h, {
757
+ /* @__PURE__ */ w(p, {
757
758
  label: i.summary.controls,
758
759
  value: i.options[a.density?.defaultScale ?? "md"] ?? a.density?.defaultScale ?? i.options.md
759
760
  }),
760
- /* @__PURE__ */ E(h, {
761
+ /* @__PURE__ */ w(p, {
761
762
  label: i.summary.cards,
762
763
  value: i.options[a.card?.defaultSurface ?? "card"] ?? a.card?.defaultSurface ?? i.options.default
763
764
  })
764
765
  ] })
765
766
  ]
766
767
  }),
767
- /* @__PURE__ */ E(oe, {
768
+ /* @__PURE__ */ w(ce, {
768
769
  multiple: !0,
769
770
  defaultValue: ["regional"],
770
771
  variant: "bordered",
@@ -775,34 +776,34 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
775
776
  value: "regional",
776
777
  title: i.sections.regional.title,
777
778
  description: i.sections.regional.description,
778
- content: /* @__PURE__ */ D("div", {
779
+ content: /* @__PURE__ */ T("div", {
779
780
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
780
781
  children: [
781
- /* @__PURE__ */ E(y, {
782
+ /* @__PURE__ */ w(y, {
782
783
  label: i.labels.locale,
783
- children: /* @__PURE__ */ E(v, {
784
+ children: /* @__PURE__ */ w(g, {
784
785
  value: a.formatting?.locale ?? "",
785
- onChange: (e) => c("formatting", "locale", e.target.value)
786
+ onChange: (e) => l("formatting", "locale", e.target.value)
786
787
  })
787
788
  }),
788
- /* @__PURE__ */ E(y, {
789
+ /* @__PURE__ */ w(y, {
789
790
  label: i.labels.defaultCurrency,
790
- children: /* @__PURE__ */ E(v, {
791
+ children: /* @__PURE__ */ w(g, {
791
792
  value: a.money?.defaultCurrency ?? "",
792
- onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
793
+ onChange: (e) => l("money", "defaultCurrency", e.target.value.toUpperCase())
793
794
  })
794
795
  }),
795
- /* @__PURE__ */ E(y, {
796
+ /* @__PURE__ */ w(y, {
796
797
  label: i.labels.displayCurrency,
797
- children: /* @__PURE__ */ E(v, {
798
+ children: /* @__PURE__ */ w(g, {
798
799
  value: a.money?.displayCurrency ?? "",
799
800
  placeholder: i.displayCurrencyPlaceholder,
800
- onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
801
+ onChange: (e) => l("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
801
802
  })
802
803
  }),
803
- /* @__PURE__ */ E(y, {
804
+ /* @__PURE__ */ w(y, {
804
805
  label: i.labels.moneyFormat,
805
- children: /* @__PURE__ */ E(x, {
806
+ children: /* @__PURE__ */ w(v, {
806
807
  value: a.money?.formatMode,
807
808
  options: Y([
808
809
  "decimal",
@@ -810,22 +811,22 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
810
811
  "with_symbol",
811
812
  "locale_aware"
812
813
  ], i),
813
- onValueChange: (e) => c("money", "formatMode", e)
814
+ onValueChange: (e) => l("money", "formatMode", e)
814
815
  })
815
816
  }),
816
- /* @__PURE__ */ E(y, {
817
+ /* @__PURE__ */ w(y, {
817
818
  label: i.labels.firstDay,
818
- children: /* @__PURE__ */ E(x, {
819
+ children: /* @__PURE__ */ w(v, {
819
820
  value: String(a.dates?.weekStartsOn ?? 1),
820
821
  options: s,
821
- onValueChange: (e) => c("dates", "weekStartsOn", Number(e))
822
+ onValueChange: (e) => l("dates", "weekStartsOn", Number(e))
822
823
  })
823
824
  }),
824
- /* @__PURE__ */ E(y, {
825
+ /* @__PURE__ */ w(y, {
825
826
  label: i.labels.dateFormat,
826
- children: /* @__PURE__ */ E(v, {
827
+ children: /* @__PURE__ */ w(g, {
827
828
  value: a.dates?.format ?? "",
828
- onChange: (e) => c("dates", "format", e.target.value)
829
+ onChange: (e) => l("dates", "format", e.target.value)
829
830
  })
830
831
  })
831
832
  ]
@@ -835,12 +836,12 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
835
836
  value: "content",
836
837
  title: i.sections.content.title,
837
838
  description: i.sections.content.description,
838
- content: /* @__PURE__ */ D("div", {
839
+ content: /* @__PURE__ */ T("div", {
839
840
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
840
841
  children: [
841
- /* @__PURE__ */ E(y, {
842
+ /* @__PURE__ */ w(y, {
842
843
  label: i.labels.textSize,
843
- children: /* @__PURE__ */ E(x, {
844
+ children: /* @__PURE__ */ w(v, {
844
845
  value: a.typography?.defaultTextSize,
845
846
  options: Y([
846
847
  "xxs",
@@ -851,41 +852,41 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
851
852
  "lg",
852
853
  "xl"
853
854
  ], i),
854
- onValueChange: (e) => c("typography", "defaultTextSize", e)
855
+ onValueChange: (e) => l("typography", "defaultTextSize", e)
855
856
  })
856
857
  }),
857
- /* @__PURE__ */ E(y, {
858
+ /* @__PURE__ */ w(y, {
858
859
  label: i.labels.commentComposer,
859
- children: /* @__PURE__ */ E(x, {
860
+ children: /* @__PURE__ */ w(v, {
860
861
  value: a.comments?.composerPosition,
861
862
  options: Y(["top", "bottom"], i),
862
- onValueChange: (e) => c("comments", "composerPosition", e)
863
+ onValueChange: (e) => l("comments", "composerPosition", e)
863
864
  })
864
865
  }),
865
- /* @__PURE__ */ E(b, {
866
+ /* @__PURE__ */ w(_, {
866
867
  label: i.labels.dualPricing,
867
868
  description: i.dualPricingDescription,
868
869
  value: a.money?.dualPricingEnabled ?? !1,
869
- onValueChange: (e) => c("money", "dualPricingEnabled", e)
870
+ onValueChange: (e) => l("money", "dualPricingEnabled", e)
870
871
  }),
871
- /* @__PURE__ */ E(y, {
872
+ /* @__PURE__ */ w(y, {
872
873
  label: i.labels.dualPricingMode,
873
- children: /* @__PURE__ */ E(x, {
874
+ children: /* @__PURE__ */ w(v, {
874
875
  value: a.money?.displayMode,
875
876
  options: Y([
876
877
  "default_only",
877
878
  "dual",
878
879
  "dynamic"
879
880
  ], i),
880
- onValueChange: (e) => c("money", "displayMode", e)
881
+ onValueChange: (e) => l("money", "displayMode", e)
881
882
  })
882
883
  }),
883
- /* @__PURE__ */ E(y, {
884
+ /* @__PURE__ */ w(y, {
884
885
  label: i.labels.dualPricingLayout,
885
- children: /* @__PURE__ */ E(x, {
886
+ children: /* @__PURE__ */ w(v, {
886
887
  value: a.money?.dualPricingDisplay,
887
888
  options: Y(["inline", "lines"], i),
888
- onValueChange: (e) => c("money", "dualPricingDisplay", e)
889
+ onValueChange: (e) => l("money", "dualPricingDisplay", e)
889
890
  })
890
891
  })
891
892
  ]
@@ -895,85 +896,90 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
895
896
  value: "components",
896
897
  title: i.sections.components.title,
897
898
  description: i.sections.components.description,
898
- content: /* @__PURE__ */ D("div", {
899
+ content: /* @__PURE__ */ T("div", {
899
900
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
900
901
  children: [
901
- /* @__PURE__ */ E(y, {
902
+ /* @__PURE__ */ w(y, {
902
903
  label: i.labels.componentScale,
903
- children: /* @__PURE__ */ E(x, {
904
+ children: /* @__PURE__ */ w(v, {
904
905
  value: a.density?.defaultScale,
905
906
  options: o,
906
- onValueChange: (e) => c("density", "defaultScale", e)
907
+ onValueChange: (e) => l("density", "defaultScale", e)
907
908
  })
908
909
  }),
909
- /* @__PURE__ */ E(y, {
910
+ /* @__PURE__ */ w(y, {
910
911
  label: i.labels.itemVariant,
911
- children: /* @__PURE__ */ E(x, {
912
+ children: /* @__PURE__ */ w(v, {
912
913
  value: a.item?.defaultVariant,
913
914
  options: Y([
914
915
  "default",
915
916
  "outline",
916
917
  "muted"
917
918
  ], i),
918
- onValueChange: (e) => c("item", "defaultVariant", e)
919
+ onValueChange: (e) => l("item", "defaultVariant", e)
919
920
  })
920
921
  }),
921
- /* @__PURE__ */ E(y, {
922
+ /* @__PURE__ */ w(y, {
922
923
  label: i.labels.buttonTone,
923
- children: /* @__PURE__ */ E(x, {
924
+ children: /* @__PURE__ */ w(v, {
924
925
  value: a.button?.defaultTone,
925
926
  options: Y(r, i),
926
- onValueChange: (e) => c("button", "defaultTone", e)
927
+ onValueChange: (e) => l("button", "defaultTone", e)
927
928
  })
928
929
  }),
929
- /* @__PURE__ */ E(y, {
930
+ /* @__PURE__ */ w(y, {
930
931
  label: i.labels.buttonStyle,
931
- children: /* @__PURE__ */ E(x, {
932
+ children: /* @__PURE__ */ w(v, {
932
933
  value: a.button?.defaultButtonStyle,
933
934
  options: Y([
934
935
  "solid",
935
936
  "outline",
936
937
  "ghost"
937
938
  ], i),
938
- onValueChange: (e) => c("button", "defaultButtonStyle", e)
939
+ onValueChange: (e) => l("button", "defaultButtonStyle", e)
939
940
  })
940
941
  }),
941
- /* @__PURE__ */ E(y, {
942
+ /* @__PURE__ */ w(y, {
942
943
  label: i.labels.badgeTone,
943
- children: /* @__PURE__ */ E(x, {
944
+ children: /* @__PURE__ */ w(v, {
944
945
  value: a.badge?.defaultTone,
945
946
  options: Y(r, i),
946
- onValueChange: (e) => c("badge", "defaultTone", e)
947
+ onValueChange: (e) => l("badge", "defaultTone", e)
947
948
  })
948
949
  }),
949
- /* @__PURE__ */ E(y, {
950
+ /* @__PURE__ */ w(y, {
950
951
  label: i.labels.cardSurface,
951
- children: /* @__PURE__ */ E(x, {
952
+ children: /* @__PURE__ */ w(v, {
952
953
  value: a.card?.defaultSurface,
953
954
  options: Y([
954
955
  "card",
955
956
  "flat",
956
957
  "framed"
957
958
  ], i),
958
- onValueChange: (e) => c("card", "defaultSurface", e)
959
+ onValueChange: (e) => l("card", "defaultSurface", e)
959
960
  })
960
961
  }),
961
- /* @__PURE__ */ E(y, {
962
+ /* @__PURE__ */ w(y, {
962
963
  label: i.labels.spinner,
963
- children: /* @__PURE__ */ E(x, {
964
+ children: /* @__PURE__ */ w(v, {
964
965
  value: a.spinner?.defaultVariant,
965
966
  options: Y([
966
967
  "default",
967
968
  "shimmer",
968
969
  "progress"
969
970
  ], i),
970
- onValueChange: (e) => c("spinner", "defaultVariant", e)
971
+ onValueChange: (e) => l("spinner", "defaultVariant", e)
971
972
  })
972
973
  }),
973
- /* @__PURE__ */ E(b, {
974
+ /* @__PURE__ */ w(_, {
974
975
  label: i.labels.cardDivider,
975
976
  value: a.card?.defaultHeaderDivider ?? !1,
976
- onValueChange: (e) => c("card", "defaultHeaderDivider", e)
977
+ onValueChange: (e) => l("card", "defaultHeaderDivider", e)
978
+ }),
979
+ /* @__PURE__ */ w(_, {
980
+ label: i.labels.cardFooterDivider ?? J.labels.cardFooterDivider,
981
+ value: a.card?.defaultFooterDivider ?? !1,
982
+ onValueChange: (e) => l("card", "defaultFooterDivider", e)
977
983
  })
978
984
  ]
979
985
  })
@@ -982,12 +988,12 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
982
988
  value: "toasts",
983
989
  title: i.sections.toasts.title,
984
990
  description: i.sections.toasts.description,
985
- content: /* @__PURE__ */ D("div", {
991
+ content: /* @__PURE__ */ T("div", {
986
992
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
987
993
  children: [
988
- /* @__PURE__ */ E(y, {
994
+ /* @__PURE__ */ w(y, {
989
995
  label: i.labels.toastPosition,
990
- children: /* @__PURE__ */ E(x, {
996
+ children: /* @__PURE__ */ w(v, {
991
997
  value: a.toast?.position,
992
998
  options: Y([
993
999
  "top-right",
@@ -997,50 +1003,50 @@ function Xe({ config: e, onChange: t, strings: i = J }) {
997
1003
  "bottom-left",
998
1004
  "bottom-center"
999
1005
  ], i),
1000
- onValueChange: (e) => c("toast", "position", e)
1006
+ onValueChange: (e) => l("toast", "position", e)
1001
1007
  })
1002
1008
  }),
1003
- /* @__PURE__ */ E(y, {
1009
+ /* @__PURE__ */ w(y, {
1004
1010
  label: i.labels.toastTheme,
1005
- children: /* @__PURE__ */ E(x, {
1011
+ children: /* @__PURE__ */ w(v, {
1006
1012
  value: a.toast?.theme,
1007
1013
  options: Y([
1008
1014
  "light",
1009
1015
  "dark",
1010
1016
  "system"
1011
1017
  ], i),
1012
- onValueChange: (e) => c("toast", "theme", e)
1018
+ onValueChange: (e) => l("toast", "theme", e)
1013
1019
  })
1014
1020
  }),
1015
- /* @__PURE__ */ E(y, {
1021
+ /* @__PURE__ */ w(y, {
1016
1022
  label: i.labels.toastDuration,
1017
- children: /* @__PURE__ */ E(v, {
1023
+ children: /* @__PURE__ */ w(g, {
1018
1024
  type: "number",
1019
1025
  min: 1e3,
1020
1026
  step: 500,
1021
1027
  value: String(a.toast?.duration ?? 5e3),
1022
- onChange: (e) => c("toast", "duration", Number(e.target.value))
1028
+ onChange: (e) => l("toast", "duration", Number(e.target.value))
1023
1029
  })
1024
1030
  }),
1025
- /* @__PURE__ */ E(y, {
1031
+ /* @__PURE__ */ w(y, {
1026
1032
  label: i.labels.visibleToasts,
1027
- children: /* @__PURE__ */ E(v, {
1033
+ children: /* @__PURE__ */ w(g, {
1028
1034
  type: "number",
1029
1035
  min: 1,
1030
1036
  max: 10,
1031
1037
  value: String(a.toast?.visibleToasts ?? 4),
1032
- onChange: (e) => c("toast", "visibleToasts", Number(e.target.value))
1038
+ onChange: (e) => l("toast", "visibleToasts", Number(e.target.value))
1033
1039
  })
1034
1040
  }),
1035
- /* @__PURE__ */ E(b, {
1041
+ /* @__PURE__ */ w(_, {
1036
1042
  label: i.labels.closeButton,
1037
1043
  value: a.toast?.closeButton ?? !0,
1038
- onValueChange: (e) => c("toast", "closeButton", e)
1044
+ onValueChange: (e) => l("toast", "closeButton", e)
1039
1045
  }),
1040
- /* @__PURE__ */ E(b, {
1046
+ /* @__PURE__ */ w(_, {
1041
1047
  label: i.labels.richColors,
1042
1048
  value: a.toast?.richColors ?? !1,
1043
- onValueChange: (e) => c("toast", "richColors", e)
1049
+ onValueChange: (e) => l("toast", "richColors", e)
1044
1050
  })
1045
1051
  ]
1046
1052
  })
@@ -1264,20 +1270,20 @@ var nt = [
1264
1270
  "structure",
1265
1271
  "defaults"
1266
1272
  ], rt = {
1267
- colors: k,
1268
- states: A,
1269
- typography: Oe,
1270
- shape: Ee,
1271
- structure: xe,
1272
- defaults: Te
1273
+ colors: D,
1274
+ states: O,
1275
+ typography: Ae,
1276
+ shape: Oe,
1277
+ structure: Ce,
1278
+ defaults: De
1273
1279
  };
1274
1280
  function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
1275
- let d = he();
1276
- return /* @__PURE__ */ D(f, {
1277
- render: /* @__PURE__ */ E("section", { "aria-labelledby": d }),
1281
+ let d = x();
1282
+ return /* @__PURE__ */ T(f, {
1283
+ render: /* @__PURE__ */ w("section", { "aria-labelledby": d }),
1278
1284
  gap: "md",
1279
1285
  className: "theme-tweaker--export-artifact min-w-0",
1280
- children: [/* @__PURE__ */ D(f, {
1286
+ children: [/* @__PURE__ */ T(f, {
1281
1287
  direction: {
1282
1288
  base: "vertical",
1283
1289
  sm: "horizontal"
@@ -1289,46 +1295,46 @@ function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
1289
1295
  justify: { sm: "between" },
1290
1296
  gap: "md",
1291
1297
  className: "theme-tweaker--export-artifact-header",
1292
- children: [/* @__PURE__ */ D(f, {
1298
+ children: [/* @__PURE__ */ T(f, {
1293
1299
  gap: "dense",
1294
1300
  className: "min-w-0",
1295
- children: [/* @__PURE__ */ E(u, {
1301
+ children: [/* @__PURE__ */ w(l, {
1296
1302
  id: d,
1297
1303
  tag: "h3",
1298
1304
  children: e
1299
- }), /* @__PURE__ */ E(l, {
1305
+ }), /* @__PURE__ */ w(c, {
1300
1306
  size: "xs",
1301
1307
  type: "secondary",
1302
1308
  children: t
1303
1309
  })]
1304
- }), /* @__PURE__ */ D(f, {
1310
+ }), /* @__PURE__ */ T(f, {
1305
1311
  direction: "horizontal",
1306
1312
  gap: "xs",
1307
1313
  align: "center",
1308
1314
  wrap: !0,
1309
1315
  className: "theme-tweaker--export-artifact-actions sm:shrink-0",
1310
- children: [/* @__PURE__ */ E(c, {
1316
+ children: [/* @__PURE__ */ w(u, {
1311
1317
  type: "button",
1312
1318
  size: "sm",
1313
1319
  tone: "secondary",
1314
1320
  buttonStyle: "outline",
1315
- icon: O,
1321
+ icon: E,
1316
1322
  onClick: a,
1317
1323
  children: r
1318
- }), /* @__PURE__ */ E(c, {
1324
+ }), /* @__PURE__ */ w(u, {
1319
1325
  type: "button",
1320
1326
  size: "sm",
1321
- icon: ye,
1327
+ icon: xe,
1322
1328
  loading: s,
1323
1329
  onClick: o,
1324
1330
  children: i
1325
1331
  })]
1326
1332
  })]
1327
- }), /* @__PURE__ */ E("pre", {
1333
+ }), /* @__PURE__ */ w("pre", {
1328
1334
  tabIndex: 0,
1329
1335
  "aria-label": e,
1330
- className: "theme-tweaker--export-code max-h-48 min-w-0 overflow-auto rounded-radius border border-border bg-muted/30 p-surface-xs font-mono text-xs leading-relaxed text-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 sm:max-h-72",
1331
- children: /* @__PURE__ */ E("code", { children: n })
1336
+ className: "theme-tweaker--export-code max-h-48 min-w-0 overflow-auto rounded-radius border border-border bg-muted/30 p-surface-xs font-mono text-xs leading-relaxed text-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring sm:max-h-72",
1337
+ children: /* @__PURE__ */ w("code", { children: n })
1332
1338
  })]
1333
1339
  });
1334
1340
  }
@@ -1344,20 +1350,20 @@ function ot(e, t) {
1344
1350
  return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
1345
1351
  }
1346
1352
  function st(e, t) {
1347
- if (typeof document > "u" || typeof window > "u") return M(e);
1353
+ if (typeof document > "u" || typeof window > "u") return A(e);
1348
1354
  let n = document.documentElement, r = [...new Set(t.map((e) => e.name))], i = n.classList.contains("light"), a = n.classList.contains("dark"), o = new Map(r.map((e) => [e, {
1349
1355
  value: n.style.getPropertyValue(e),
1350
1356
  priority: n.style.getPropertyPriority(e)
1351
1357
  }])), s = (t) => {
1352
1358
  for (let e of r) n.style.removeProperty(e);
1353
1359
  n.classList.toggle("light", t === "light"), n.classList.toggle("dark", t === "dark");
1354
- for (let [r, i] of Object.entries(B(e, t))) typeof i == "string" && n.style.setProperty(r, i);
1360
+ for (let [r, i] of Object.entries(R(e, t))) typeof i == "string" && n.style.setProperty(r, i);
1355
1361
  let i = window.getComputedStyle(n);
1356
1362
  return Object.fromEntries(r.map((e) => [e, i.getPropertyValue(e).trim()]).filter((e) => e[1].length > 0));
1357
1363
  };
1358
1364
  try {
1359
1365
  let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
1360
- return M({
1366
+ return A({
1361
1367
  mode: e.mode,
1362
1368
  shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
1363
1369
  light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
@@ -1372,29 +1378,29 @@ function st(e, t) {
1372
1378
  }
1373
1379
  }
1374
1380
  function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
1375
- let s = `theme-variable-${he().replace(/:/g, "")}`, u = /* @__PURE__ */ E(c, {
1381
+ let s = `theme-variable-${x().replace(/:/g, "")}`, l = /* @__PURE__ */ w(u, {
1376
1382
  type: "button",
1377
1383
  iconOnly: !0,
1378
1384
  tone: "secondary",
1379
1385
  buttonStyle: "ghost",
1380
- icon: Ce,
1386
+ icon: Te,
1381
1387
  withTooltip: o.resetVariable,
1382
1388
  "aria-label": `${o.resetVariable}: ${e.label}`,
1383
1389
  disabled: !t,
1384
1390
  onClick: i,
1385
- children: /* @__PURE__ */ E(l, {
1391
+ children: /* @__PURE__ */ w(c, {
1386
1392
  tag: "span",
1387
1393
  size: "inherit",
1388
1394
  className: "sr-only",
1389
1395
  children: o.resetVariable
1390
1396
  })
1391
1397
  }), d = e.placeholder ?? n ?? o.inheritValue, p;
1392
- if (e.kind === "color") p = /* @__PURE__ */ D(f, {
1398
+ if (e.kind === "color") p = /* @__PURE__ */ T(f, {
1393
1399
  direction: "horizontal",
1394
1400
  gap: "xs",
1395
1401
  align: "center",
1396
1402
  wrap: !1,
1397
- children: [/* @__PURE__ */ E(ce, {
1403
+ children: [/* @__PURE__ */ w(ue, {
1398
1404
  id: s,
1399
1405
  "aria-label": e.label,
1400
1406
  "aria-description": e.description,
@@ -1404,13 +1410,13 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1404
1410
  onValueChange: r,
1405
1411
  placeholder: d,
1406
1412
  className: "min-w-0 flex-1"
1407
- }), u]
1413
+ }), l]
1408
1414
  });
1409
1415
  else if (e.control?.type === "range") {
1410
1416
  let i = $(t || n, e.control);
1411
- p = /* @__PURE__ */ D(f, {
1417
+ p = /* @__PURE__ */ T(f, {
1412
1418
  gap: "sm",
1413
- children: [/* @__PURE__ */ E(S, {
1419
+ children: [/* @__PURE__ */ w(de, {
1414
1420
  id: `${s}-slider`,
1415
1421
  "aria-label": a(o.adjustVariable, { label: e.label }),
1416
1422
  value: i,
@@ -1418,15 +1424,15 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1418
1424
  max: e.control.max,
1419
1425
  step: e.control.step,
1420
1426
  onValueChange: (t) => r(at(t, e.control))
1421
- }), /* @__PURE__ */ D(f, {
1427
+ }), /* @__PURE__ */ T(f, {
1422
1428
  direction: "horizontal",
1423
1429
  gap: "xs",
1424
1430
  align: "center",
1425
1431
  wrap: !1,
1426
- children: [/* @__PURE__ */ E(f, {
1432
+ children: [/* @__PURE__ */ w(f, {
1427
1433
  gap: "none",
1428
1434
  className: "w-28 max-w-full shrink-0",
1429
- children: /* @__PURE__ */ E(le, {
1435
+ children: /* @__PURE__ */ w(fe, {
1430
1436
  id: s,
1431
1437
  "aria-label": e.label,
1432
1438
  "aria-description": e.description,
@@ -1443,17 +1449,17 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1443
1449
  },
1444
1450
  className: "font-mono tabular-nums"
1445
1451
  })
1446
- }), u]
1452
+ }), l]
1447
1453
  })]
1448
1454
  });
1449
- } else p = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ D(f, {
1455
+ } else p = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ T(f, {
1450
1456
  direction: "horizontal",
1451
1457
  gap: "xs",
1452
1458
  align: "start",
1453
1459
  wrap: !1,
1454
- children: [/* @__PURE__ */ E(f, {
1460
+ children: [/* @__PURE__ */ w(f, {
1455
1461
  className: "min-w-0 flex-1",
1456
- children: /* @__PURE__ */ E(se, {
1462
+ children: /* @__PURE__ */ w(le, {
1457
1463
  id: s,
1458
1464
  "aria-label": e.label,
1459
1465
  "aria-description": e.description,
@@ -1464,13 +1470,13 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1464
1470
  autoResize: !0,
1465
1471
  className: "font-mono"
1466
1472
  })
1467
- }), u]
1468
- }) : /* @__PURE__ */ D(f, {
1473
+ }), l]
1474
+ }) : /* @__PURE__ */ T(f, {
1469
1475
  direction: "horizontal",
1470
1476
  gap: "xs",
1471
1477
  align: "center",
1472
1478
  wrap: !1,
1473
- children: [/* @__PURE__ */ E(v, {
1479
+ children: [/* @__PURE__ */ w(g, {
1474
1480
  id: s,
1475
1481
  "aria-label": e.label,
1476
1482
  "aria-description": e.description,
@@ -1478,24 +1484,24 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1478
1484
  onChange: (e) => r(e.target.value),
1479
1485
  placeholder: d,
1480
1486
  className: "min-w-0 flex-1 font-mono"
1481
- }), u]
1487
+ }), l]
1482
1488
  });
1483
- return /* @__PURE__ */ E(y, {
1484
- label: /* @__PURE__ */ D(f, {
1485
- render: /* @__PURE__ */ E("span", {}),
1489
+ return /* @__PURE__ */ w(y, {
1490
+ label: /* @__PURE__ */ T(f, {
1491
+ render: /* @__PURE__ */ w("span", {}),
1486
1492
  direction: "horizontal",
1487
1493
  gap: "sm",
1488
1494
  align: "baseline",
1489
1495
  justify: "between",
1490
1496
  wrap: !0,
1491
1497
  className: "min-w-0 flex-1",
1492
- children: [/* @__PURE__ */ E(l, {
1498
+ children: [/* @__PURE__ */ w(c, {
1493
1499
  tag: "span",
1494
1500
  size: "inherit",
1495
1501
  weight: "medium",
1496
1502
  className: "min-w-0",
1497
1503
  children: e.label
1498
- }), /* @__PURE__ */ E(ae, {
1504
+ }), /* @__PURE__ */ w(se, {
1499
1505
  size: "xs",
1500
1506
  type: "secondary",
1501
1507
  weight: "regular",
@@ -1509,48 +1515,48 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1509
1515
  });
1510
1516
  }
1511
1517
  function lt({ strings: e }) {
1512
- return /* @__PURE__ */ E(te, {
1518
+ return /* @__PURE__ */ w(ne, {
1513
1519
  title: e.previewTitle,
1514
1520
  description: e.previewDescription,
1515
- icon: /* @__PURE__ */ E(k, {}),
1521
+ icon: /* @__PURE__ */ w(D, {}),
1516
1522
  headerDivider: !0,
1517
1523
  className: "theme-tweaker--preview-card",
1518
- children: /* @__PURE__ */ D(f, {
1524
+ children: /* @__PURE__ */ T(f, {
1519
1525
  gap: "lg",
1520
1526
  children: [
1521
- /* @__PURE__ */ D(f, {
1527
+ /* @__PURE__ */ T(f, {
1522
1528
  direction: "horizontal",
1523
1529
  gap: "sm",
1524
1530
  wrap: !0,
1525
1531
  children: [
1526
- /* @__PURE__ */ E(_, {
1532
+ /* @__PURE__ */ w(h, {
1527
1533
  tone: "success",
1528
1534
  children: e.previewSuccess
1529
1535
  }),
1530
- /* @__PURE__ */ E(_, {
1536
+ /* @__PURE__ */ w(h, {
1531
1537
  tone: "warning",
1532
1538
  children: e.previewWarning
1533
1539
  }),
1534
- /* @__PURE__ */ E(_, {
1540
+ /* @__PURE__ */ w(h, {
1535
1541
  tone: "secondary",
1536
1542
  children: e.previewContract
1537
1543
  })
1538
1544
  ]
1539
1545
  }),
1540
- /* @__PURE__ */ E(ue, {
1546
+ /* @__PURE__ */ w(pe, {
1541
1547
  variant: "muted",
1542
1548
  padding: "default",
1543
- media: /* @__PURE__ */ E(k, {}),
1549
+ media: /* @__PURE__ */ w(D, {}),
1544
1550
  mediaVariant: "icon",
1545
1551
  title: e.previewItemTitle,
1546
1552
  description: e.previewItemDescription,
1547
- trailing: /* @__PURE__ */ E(ve, { className: "size-icon text-success" })
1553
+ trailing: /* @__PURE__ */ w(be, { className: "size-icon text-success" })
1548
1554
  }),
1549
- /* @__PURE__ */ E(y, {
1555
+ /* @__PURE__ */ w(y, {
1550
1556
  label: e.previewFieldLabel,
1551
- children: /* @__PURE__ */ E(v, { placeholder: e.previewFieldPlaceholder })
1557
+ children: /* @__PURE__ */ w(g, { placeholder: e.previewFieldPlaceholder })
1552
1558
  }),
1553
- /* @__PURE__ */ E(c, {
1559
+ /* @__PURE__ */ w(u, {
1554
1560
  type: "button",
1555
1561
  children: e.previewAction
1556
1562
  })
@@ -1565,53 +1571,53 @@ function ut(e, t, n) {
1565
1571
  [r]: i
1566
1572
  };
1567
1573
  }
1568
- var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Ye, target: p = "self", apply: m = !0, manageModeClass: h = !0, preview: g, fileName: ee = "admin-ui-theme.css", config: ae, defaultConfig: se, onConfigChange: x, providerFileName: ce = "admin-ui.config.ts", showIntro: le = !0, selectors: ue, onExport: C, onCopy: he, onReset: ve, onError: O, actionsSlot: be, strings: xe, className: k, ...Te }, Ee) {
1569
- let A = o(Ze, xe), [Oe, ke] = T(() => M(t)), j = w(() => e ? M(e) : Oe, [Oe, e]), [Ae, je] = T(() => R(se)), N = w(() => R(ae ?? Ae), [ae, Ae]), [P, F] = T("colors"), [I, L] = T(""), [z, Me] = T(!0), [Pe, Re] = T(16), [Be, H] = T(1.2), [Ve, He] = T(.8), [Ue, U] = T("idle"), We = ne(), [W, Ge] = T(!1), G = _e(null);
1570
- ge(Ee, () => G.current), ze({
1574
+ var dt = b(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Ye, target: p = "self", apply: m = !0, manageModeClass: ee = !0, preview: te, fileName: re = "admin-ui-theme.css", config: se, defaultConfig: le, onConfigChange: v, providerFileName: ue = "admin-ui.config.ts", showIntro: fe = !0, selectors: pe, onExport: b, onCopy: x, onReset: be, onError: E, actionsSlot: Se, strings: Ce, className: D, ...De }, Oe) {
1575
+ let O = o(Ze, Ce), [Ae, je] = C(() => A(t)), k = S(() => e ? A(e) : Ae, [Ae, e]), [Me, Ne] = C(() => I(le)), j = S(() => I(se ?? Me), [se, Me]), [M, N] = C("colors"), [P, F] = C(""), [L, Pe] = C(!0), [Ie, Be] = C(16), [B, V] = C(1.2), [He, Ue] = C(.8), [We, H] = C("idle"), Ge = ie(), [U, W] = C(!1), G = ye(null);
1576
+ ve(Oe, () => G.current), Ve({
1571
1577
  apply: m,
1572
- manageModeClass: h,
1578
+ manageModeClass: ee,
1573
1579
  selfRef: G,
1574
1580
  target: p,
1575
- theme: j
1581
+ theme: k
1576
1582
  });
1577
- let [K, Ke] = T(() => M(j)), [qe, Je] = T({});
1578
- me(() => {
1583
+ let [K, Ke] = C(() => A(k)), [qe, Je] = C({});
1584
+ _e(() => {
1579
1585
  if (typeof window > "u") return;
1580
1586
  let e = window.setTimeout(() => {
1581
1587
  let e = ot(p, G.current);
1582
1588
  if (!e) return;
1583
1589
  let t = window.getComputedStyle(e);
1584
- Je(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ke(st(j, i));
1590
+ Je(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ke(st(k, i));
1585
1591
  }, 0);
1586
1592
  return () => window.clearTimeout(e);
1587
1593
  }, [
1588
1594
  m,
1589
1595
  i,
1590
1596
  p,
1591
- j
1597
+ k
1592
1598
  ]);
1593
- let { artifact: q, error: J } = w(() => {
1599
+ let { artifact: q, error: J } = S(() => {
1594
1600
  try {
1595
- let e = M({
1596
- mode: j.mode,
1601
+ let e = A({
1602
+ mode: k.mode,
1597
1603
  shared: {
1598
1604
  ...K.shared,
1599
- ...j.shared
1605
+ ...k.shared
1600
1606
  },
1601
1607
  light: {
1602
1608
  ...K.light,
1603
- ...j.light
1609
+ ...k.light
1604
1610
  },
1605
1611
  dark: {
1606
1612
  ...K.dark,
1607
- ...j.dark
1613
+ ...k.dark
1608
1614
  }
1609
1615
  });
1610
1616
  return {
1611
- artifact: Fe(j, ee, { selectors: ue }, {
1617
+ artifact: Le(k, re, { selectors: pe }, {
1612
1618
  resolvedTheme: e,
1613
- providerConfig: N,
1614
- providerFileName: ce
1619
+ providerConfig: j,
1620
+ providerFileName: ue
1615
1621
  }),
1616
1622
  error: null
1617
1623
  };
@@ -1622,21 +1628,21 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1622
1628
  };
1623
1629
  }
1624
1630
  }, [
1625
- ee,
1626
- N,
1627
- ce,
1628
- K,
1631
+ re,
1632
+ j,
1629
1633
  ue,
1630
- j
1631
- ]), Y = q?.cssText ?? `/* ${A.invalidTheme} */\n`, X = w(() => Ne(j), [j]), Z = I.trim().toLowerCase(), $e = w(() => i.filter((e) => !Z && e.group !== P ? !1 : !Z || [
1634
+ K,
1635
+ pe,
1636
+ k
1637
+ ]), Y = q?.cssText ?? `/* ${O.invalidTheme} */\n`, X = S(() => Fe(k), [k]), Z = P.trim().toLowerCase(), $e = S(() => i.filter((e) => !Z && e.group !== M ? !1 : !Z || [
1632
1638
  e.name,
1633
1639
  e.label,
1634
1640
  e.description
1635
1641
  ].filter(Boolean).some((e) => e?.toLowerCase().includes(Z))), [
1636
1642
  i,
1637
- P,
1643
+ M,
1638
1644
  Z
1639
- ]), Q = w(() => {
1645
+ ]), Q = S(() => {
1640
1646
  let e = /* @__PURE__ */ new Map();
1641
1647
  for (let t of $e) {
1642
1648
  let n = `${t.group}:${t.section}`, r = e.get(n);
@@ -1648,298 +1654,298 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1648
1654
  }
1649
1655
  return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
1650
1656
  }, [$e]), $ = (t) => {
1651
- e === void 0 && ke(t), n?.(t), U("idle");
1657
+ e === void 0 && je(t), n?.(t), H("idle");
1652
1658
  }, at = (e) => {
1653
- ae === void 0 && je(e), x?.(e), U("idle");
1659
+ se === void 0 && Ne(e), v?.(e), H("idle");
1654
1660
  }, dt = (e) => {
1655
1661
  $({
1656
- ...j,
1657
- [j.mode]: {
1658
- ...j[j.mode],
1662
+ ...k,
1663
+ [k.mode]: {
1664
+ ...k[k.mode],
1659
1665
  ...e
1660
1666
  }
1661
1667
  });
1662
1668
  }, ft = (e) => {
1663
1669
  $({
1664
- ...j,
1670
+ ...k,
1665
1671
  shared: {
1666
- ...j.shared,
1672
+ ...k.shared,
1667
1673
  ...e
1668
1674
  }
1669
1675
  });
1670
1676
  }, pt = (e) => {
1671
- e !== j.mode && ($({
1672
- ...j,
1677
+ e !== k.mode && ($({
1678
+ ...k,
1673
1679
  mode: e
1674
1680
  }), r?.(e));
1675
1681
  }, mt = async () => {
1676
1682
  try {
1677
1683
  if (J) throw J;
1678
- if (Ge(!0), !q) throw Error(A.invalidTheme);
1679
- C ? await C(q) : Ie(q), U("exported");
1684
+ if (W(!0), !q) throw Error(O.invalidTheme);
1685
+ b ? await b(q) : Re(q), H("exported");
1680
1686
  } catch (e) {
1681
- O?.(e);
1687
+ E?.(e);
1682
1688
  } finally {
1683
- Ge(!1);
1689
+ W(!1);
1684
1690
  }
1685
1691
  }, ht = async (e) => {
1686
1692
  try {
1687
- if (he) await he(e);
1693
+ if (x) await x(e);
1688
1694
  else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
1689
1695
  else throw Error("Clipboard access is unavailable. Provide onCopy for this environment.");
1690
- U("copied");
1696
+ H("copied");
1691
1697
  } catch (e) {
1692
- O?.(e);
1698
+ E?.(e);
1693
1699
  }
1694
1700
  }, gt = () => {
1695
1701
  try {
1696
- if (!q) throw J ?? Error(A.invalidTheme);
1697
- Le({
1702
+ if (!q) throw J ?? Error(O.invalidTheme);
1703
+ ze({
1698
1704
  fileName: q.providerFileName,
1699
1705
  text: q.providerConfigText,
1700
1706
  mimeType: "text/typescript;charset=utf-8"
1701
- }), U("exported");
1707
+ }), H("exported");
1702
1708
  } catch (e) {
1703
- O?.(e);
1709
+ E?.(e);
1704
1710
  }
1705
1711
  }, _t = () => {
1706
- let e = j, t = M({ mode: j.mode });
1707
- $(t), ve?.(e), U("idle");
1708
- }, vt = J ? A.invalidTheme : Ue === "copied" ? A.copiedStatus : Ue === "exported" ? A.exportedStatus : null, yt = P === "colors" ? /* @__PURE__ */ E(b, {
1712
+ let e = k, t = A({ mode: k.mode });
1713
+ $(t), be?.(e), H("idle");
1714
+ }, vt = J ? O.invalidTheme : We === "copied" ? O.copiedStatus : We === "exported" ? O.exportedStatus : null, yt = M === "colors" ? /* @__PURE__ */ w(_, {
1709
1715
  className: "theme-tweaker--recipe",
1710
- label: A.autoPalette,
1711
- description: A.autoPaletteDescription,
1712
- value: z,
1713
- onValueChange: Me
1714
- }) : P === "typography" ? /* @__PURE__ */ E(te, {
1715
- title: A.typeRecipeTitle,
1716
- description: A.typeRecipeDescription,
1716
+ label: O.autoPalette,
1717
+ description: O.autoPaletteDescription,
1718
+ value: L,
1719
+ onValueChange: Pe
1720
+ }) : M === "typography" ? /* @__PURE__ */ w(ne, {
1721
+ title: O.typeRecipeTitle,
1722
+ description: O.typeRecipeDescription,
1717
1723
  surface: "flat",
1718
1724
  padding: "none",
1719
1725
  className: "theme-tweaker--recipe",
1720
- children: /* @__PURE__ */ D(d, {
1726
+ children: /* @__PURE__ */ T(d, {
1721
1727
  columns: 1,
1722
1728
  gap: "md",
1723
1729
  className: "@2xl/theme-tweaker-controls:grid-cols-2",
1724
- children: [/* @__PURE__ */ E(y, {
1725
- label: A.baseTypeSize,
1726
- children: /* @__PURE__ */ E(S, {
1727
- "aria-label": A.baseTypeSize,
1728
- value: Pe,
1730
+ children: [/* @__PURE__ */ w(y, {
1731
+ label: O.baseTypeSize,
1732
+ children: /* @__PURE__ */ w(de, {
1733
+ "aria-label": O.baseTypeSize,
1734
+ value: Ie,
1729
1735
  min: 14,
1730
1736
  max: 20,
1731
1737
  step: 1,
1732
1738
  onValueChange: (e) => {
1733
- Re(e), ft(et({
1739
+ Be(e), ft(et({
1734
1740
  baseSize: e,
1735
- ratio: Be
1741
+ ratio: B
1736
1742
  }));
1737
1743
  }
1738
1744
  })
1739
- }), /* @__PURE__ */ E(y, {
1740
- label: A.typeRatio,
1741
- children: /* @__PURE__ */ E(S, {
1742
- "aria-label": A.typeRatio,
1743
- value: Be,
1745
+ }), /* @__PURE__ */ w(y, {
1746
+ label: O.typeRatio,
1747
+ children: /* @__PURE__ */ w(de, {
1748
+ "aria-label": O.typeRatio,
1749
+ value: B,
1744
1750
  min: 1.125,
1745
1751
  max: 1.333,
1746
1752
  step: .01,
1747
1753
  onValueChange: (e) => {
1748
- H(e), ft(et({
1749
- baseSize: Pe,
1754
+ V(e), ft(et({
1755
+ baseSize: Ie,
1750
1756
  ratio: e
1751
1757
  }));
1752
1758
  }
1753
1759
  })
1754
1760
  })]
1755
1761
  })
1756
- }) : P === "shape" ? /* @__PURE__ */ E(te, {
1757
- title: A.elevationRecipeTitle,
1758
- description: A.elevationRecipeDescription,
1762
+ }) : M === "shape" ? /* @__PURE__ */ w(ne, {
1763
+ title: O.elevationRecipeTitle,
1764
+ description: O.elevationRecipeDescription,
1759
1765
  surface: "flat",
1760
1766
  padding: "none",
1761
1767
  className: "theme-tweaker--recipe",
1762
- children: /* @__PURE__ */ E(y, {
1763
- label: A.elevationIntensity,
1764
- children: /* @__PURE__ */ E(S, {
1765
- "aria-label": A.elevationIntensity,
1766
- value: Ve,
1768
+ children: /* @__PURE__ */ w(y, {
1769
+ label: O.elevationIntensity,
1770
+ children: /* @__PURE__ */ w(de, {
1771
+ "aria-label": O.elevationIntensity,
1772
+ value: He,
1767
1773
  min: 0,
1768
1774
  max: 1,
1769
1775
  step: .05,
1770
1776
  onValueChange: (e) => {
1771
- He(e), dt(tt({ intensity: e }));
1777
+ Ue(e), dt(tt({ intensity: e }));
1772
1778
  }
1773
1779
  })
1774
1780
  })
1775
- }) : null, bt = /* @__PURE__ */ D("div", {
1776
- className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", g !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
1781
+ }) : null, bt = /* @__PURE__ */ T("div", {
1782
+ className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", te !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
1777
1783
  children: [
1778
- /* @__PURE__ */ D(f, {
1784
+ /* @__PURE__ */ T(f, {
1779
1785
  gap: "lg",
1780
1786
  className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
1781
- children: [/* @__PURE__ */ D(f, {
1787
+ children: [/* @__PURE__ */ T(f, {
1782
1788
  gap: "lg",
1783
1789
  className: "theme-tweaker--header shrink-0",
1784
1790
  children: [
1785
- le ? /* @__PURE__ */ D(f, {
1791
+ fe ? /* @__PURE__ */ T(f, {
1786
1792
  gap: "normal",
1787
1793
  className: "theme-tweaker--intro",
1788
- children: [/* @__PURE__ */ D(f, {
1794
+ children: [/* @__PURE__ */ T(f, {
1789
1795
  direction: "horizontal",
1790
1796
  gap: "sm",
1791
1797
  align: "center",
1792
1798
  wrap: !0,
1793
- children: [/* @__PURE__ */ E(u, {
1799
+ children: [/* @__PURE__ */ w(l, {
1794
1800
  tag: "h2",
1795
1801
  className: "theme-tweaker--title",
1796
- children: A.title
1797
- }), /* @__PURE__ */ E(_, {
1802
+ children: O.title
1803
+ }), /* @__PURE__ */ w(h, {
1798
1804
  tone: "secondary",
1799
- children: a(A.changedCount, { count: X })
1805
+ children: a(O.changedCount, { count: X })
1800
1806
  })]
1801
- }), /* @__PURE__ */ E(l, {
1807
+ }), /* @__PURE__ */ w(c, {
1802
1808
  type: "secondary",
1803
1809
  className: "theme-tweaker--description",
1804
- children: A.description
1810
+ children: O.description
1805
1811
  })]
1806
1812
  }) : null,
1807
- /* @__PURE__ */ D(f, {
1813
+ /* @__PURE__ */ T(f, {
1808
1814
  direction: "horizontal",
1809
1815
  justify: "between",
1810
1816
  align: "center",
1811
1817
  wrap: !0,
1812
1818
  gap: "sm",
1813
1819
  className: "theme-tweaker--toolbar",
1814
- children: [/* @__PURE__ */ E(f, {
1820
+ children: [/* @__PURE__ */ w(f, {
1815
1821
  direction: "horizontal",
1816
1822
  gap: "sm",
1817
1823
  align: "center",
1818
1824
  wrap: !0,
1819
- children: /* @__PURE__ */ E(pe, {
1820
- value: j.mode,
1825
+ children: /* @__PURE__ */ w(ge, {
1826
+ value: k.mode,
1821
1827
  onValueChange: (e) => pt(e),
1822
- children: /* @__PURE__ */ D(fe, { children: [/* @__PURE__ */ D(de, {
1828
+ children: /* @__PURE__ */ T(he, { children: [/* @__PURE__ */ T(me, {
1823
1829
  value: "light",
1824
- children: [/* @__PURE__ */ E(De, { className: "size-icon-sm" }), A.lightMode]
1825
- }), /* @__PURE__ */ D(de, {
1830
+ children: [/* @__PURE__ */ w(ke, { className: "size-icon-sm" }), O.lightMode]
1831
+ }), /* @__PURE__ */ T(me, {
1826
1832
  value: "dark",
1827
- children: [/* @__PURE__ */ E(Se, { className: "size-icon-sm" }), A.darkMode]
1833
+ children: [/* @__PURE__ */ w(we, { className: "size-icon-sm" }), O.darkMode]
1828
1834
  })] })
1829
1835
  })
1830
- }), /* @__PURE__ */ D(f, {
1836
+ }), /* @__PURE__ */ T(f, {
1831
1837
  direction: "horizontal",
1832
1838
  gap: "xs",
1833
1839
  align: "center",
1834
1840
  justify: "end",
1835
1841
  wrap: !1,
1836
1842
  className: "theme-tweaker--actions",
1837
- children: [/* @__PURE__ */ E(c, {
1843
+ children: [/* @__PURE__ */ w(u, {
1838
1844
  type: "button",
1839
- icon: ye,
1845
+ icon: xe,
1840
1846
  disabled: !!J,
1841
1847
  onClick: () => {
1842
- U("idle"), We.show();
1848
+ H("idle"), Ge.show();
1843
1849
  },
1844
- children: A.export
1845
- }), be]
1850
+ children: O.export
1851
+ }), Se]
1846
1852
  })]
1847
1853
  }),
1848
- /* @__PURE__ */ E(y, {
1849
- label: /* @__PURE__ */ E(l, {
1854
+ /* @__PURE__ */ w(y, {
1855
+ label: /* @__PURE__ */ w(c, {
1850
1856
  tag: "span",
1851
1857
  size: "inherit",
1852
1858
  className: "sr-only",
1853
- children: A.searchLabel
1859
+ children: O.searchLabel
1854
1860
  }),
1855
1861
  className: "theme-tweaker--search",
1856
- children: /* @__PURE__ */ E(v, {
1857
- value: I,
1858
- onChange: (e) => L(e.target.value),
1859
- placeholder: A.searchPlaceholder,
1860
- startIcon: we,
1862
+ children: /* @__PURE__ */ w(g, {
1863
+ value: P,
1864
+ onChange: (e) => F(e.target.value),
1865
+ placeholder: O.searchPlaceholder,
1866
+ startIcon: Ee,
1861
1867
  clearable: !0,
1862
- onClear: () => L(""),
1863
- "aria-description": A.searchHint
1868
+ onClear: () => F(""),
1869
+ "aria-description": O.searchHint
1864
1870
  })
1865
1871
  })
1866
1872
  ]
1867
- }), /* @__PURE__ */ D(f, {
1873
+ }), /* @__PURE__ */ T(f, {
1868
1874
  gap: "lg",
1869
1875
  className: "theme-tweaker--workspace min-h-0",
1870
- children: [/* @__PURE__ */ E("nav", {
1871
- "aria-label": A.groupNavigationLabel,
1876
+ children: [/* @__PURE__ */ w("nav", {
1877
+ "aria-label": O.groupNavigationLabel,
1872
1878
  className: "theme-tweaker--navigation min-w-0",
1873
- children: /* @__PURE__ */ E(pe, {
1874
- value: P,
1879
+ children: /* @__PURE__ */ w(ge, {
1880
+ value: M,
1875
1881
  onValueChange: (e) => {
1876
- L(""), F(e);
1882
+ F(""), N(e);
1877
1883
  },
1878
1884
  className: "w-full",
1879
- children: /* @__PURE__ */ E(fe, {
1885
+ children: /* @__PURE__ */ w(he, {
1880
1886
  scrollable: !0,
1881
1887
  scrollStrings: {
1882
- previous: A.previousGroup,
1883
- next: A.nextGroup
1888
+ previous: O.previousGroup,
1889
+ next: O.nextGroup
1884
1890
  },
1885
1891
  className: "theme-tweaker--group-list",
1886
1892
  children: nt.map((e) => {
1887
1893
  let t = rt[e];
1888
- return /* @__PURE__ */ D(de, {
1894
+ return /* @__PURE__ */ T(me, {
1889
1895
  value: e,
1890
- onClick: () => L(""),
1896
+ onClick: () => F(""),
1891
1897
  className: "theme-tweaker--group-trigger",
1892
- children: [/* @__PURE__ */ E(t, { "aria-hidden": "true" }), /* @__PURE__ */ E(l, {
1898
+ children: [/* @__PURE__ */ w(t, { "aria-hidden": "true" }), /* @__PURE__ */ w(c, {
1893
1899
  tag: "span",
1894
1900
  size: "inherit",
1895
1901
  weight: "medium",
1896
1902
  className: "min-w-0 flex-1 truncate text-left",
1897
- children: A.groups[e]
1903
+ children: O.groups[e]
1898
1904
  })]
1899
1905
  }, e);
1900
1906
  })
1901
1907
  })
1902
1908
  })
1903
- }), /* @__PURE__ */ D(f, {
1909
+ }), /* @__PURE__ */ T(f, {
1904
1910
  gap: "lg",
1905
1911
  className: "theme-tweaker--body theme-tweaker--editor min-h-0 min-w-0",
1906
1912
  children: [
1907
- /* @__PURE__ */ D(f, {
1913
+ /* @__PURE__ */ T(f, {
1908
1914
  gap: "normal",
1909
1915
  className: "theme-tweaker--editor-heading",
1910
- children: [/* @__PURE__ */ D(f, {
1916
+ children: [/* @__PURE__ */ T(f, {
1911
1917
  direction: "horizontal",
1912
1918
  gap: "sm",
1913
1919
  align: "center",
1914
1920
  wrap: !0,
1915
1921
  children: [
1916
- /* @__PURE__ */ E(u, {
1922
+ /* @__PURE__ */ w(l, {
1917
1923
  tag: "h3",
1918
- children: Z ? A.allGroups : A.groups[P]
1924
+ children: Z ? O.allGroups : O.groups[M]
1919
1925
  }),
1920
- le ? null : /* @__PURE__ */ E(_, {
1926
+ fe ? null : /* @__PURE__ */ w(h, {
1921
1927
  tone: "secondary",
1922
- children: a(A.changedCount, { count: X })
1928
+ children: a(O.changedCount, { count: X })
1923
1929
  }),
1924
- Z ? /* @__PURE__ */ E(_, {
1930
+ Z ? /* @__PURE__ */ w(h, {
1925
1931
  tone: "secondary",
1926
1932
  role: "status",
1927
1933
  "aria-live": "polite",
1928
- children: a(A.searchResults, { count: $e.length })
1934
+ children: a(O.searchResults, { count: $e.length })
1929
1935
  }) : null
1930
1936
  ]
1931
- }), /* @__PURE__ */ E(l, {
1937
+ }), /* @__PURE__ */ w(c, {
1932
1938
  size: "xs",
1933
1939
  type: "secondary",
1934
- children: Z ? A.searchHint : A.groupDescriptions[P]
1940
+ children: Z ? O.searchHint : O.groupDescriptions[M]
1935
1941
  })]
1936
1942
  }),
1937
1943
  Z ? null : yt,
1938
- P === "defaults" && !Z ? /* @__PURE__ */ E(Xe, {
1939
- config: N,
1944
+ M === "defaults" && !Z ? /* @__PURE__ */ w(Xe, {
1945
+ config: j,
1940
1946
  onChange: at,
1941
- strings: A.providerSettings
1942
- }) : Q.length > 0 ? /* @__PURE__ */ E(oe, {
1947
+ strings: O.providerSettings
1948
+ }) : Q.length > 0 ? /* @__PURE__ */ w(ce, {
1943
1949
  multiple: !0,
1944
1950
  defaultValue: [`${Q[0].group}:${Q[0].section}`],
1945
1951
  variant: "bordered",
@@ -1947,109 +1953,109 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1947
1953
  className: "theme-tweaker--sections shrink-0",
1948
1954
  itemClassName: "theme-tweaker--section",
1949
1955
  items: Q.map((e) => {
1950
- let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? A.mixedScope : t.has("shared") ? A.sharedScope : j.mode === "light" ? A.lightMode : A.darkMode, r = Z ? a(A.groupSectionLabel, {
1951
- group: A.groups[e.group],
1952
- section: A.sections[e.section]
1953
- }) : A.sections[e.section];
1956
+ let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? O.mixedScope : t.has("shared") ? O.sharedScope : k.mode === "light" ? O.lightMode : O.darkMode, r = Z ? a(O.groupSectionLabel, {
1957
+ group: O.groups[e.group],
1958
+ section: O.sections[e.section]
1959
+ }) : O.sections[e.section];
1954
1960
  return {
1955
1961
  value: `${e.group}:${e.section}`,
1956
1962
  title: r,
1957
- description: a(A.variableCount, { count: e.fields.length }),
1958
- badge: /* @__PURE__ */ E(_, {
1963
+ description: a(O.variableCount, { count: e.fields.length }),
1964
+ badge: /* @__PURE__ */ w(h, {
1959
1965
  tone: "secondary",
1960
1966
  children: n
1961
1967
  }),
1962
- content: /* @__PURE__ */ E(f, {
1968
+ content: /* @__PURE__ */ w(f, {
1963
1969
  gap: "none",
1964
1970
  className: "theme-tweaker--fields",
1965
1971
  children: e.fields.map((e) => {
1966
- let t = e.scope === "shared" ? "shared" : j.mode, n = j[t][e.name] ?? "";
1967
- return /* @__PURE__ */ E(ct, {
1972
+ let t = e.scope === "shared" ? "shared" : k.mode, n = k[t][e.name] ?? "";
1973
+ return /* @__PURE__ */ w(ct, {
1968
1974
  field: e,
1969
1975
  value: n,
1970
1976
  effectiveValue: qe[e.name] ?? "",
1971
- strings: A,
1977
+ strings: O,
1972
1978
  onChange: (t) => {
1973
- if (e.name === "--primary" && z && t.trim()) {
1979
+ if (e.name === "--primary" && L && t.trim()) {
1974
1980
  dt(Qe({
1975
1981
  primary: t,
1976
- mode: j.mode
1982
+ mode: k.mode
1977
1983
  }));
1978
1984
  return;
1979
1985
  }
1980
- $(ut(j, e, t));
1986
+ $(ut(k, e, t));
1981
1987
  },
1982
- onReset: () => $(ut(j, e, ""))
1988
+ onReset: () => $(ut(k, e, ""))
1983
1989
  }, e.name);
1984
1990
  })
1985
1991
  })
1986
1992
  };
1987
1993
  })
1988
- }, `${P}:${Z}`) : /* @__PURE__ */ E(l, {
1994
+ }, `${M}:${Z}`) : /* @__PURE__ */ w(c, {
1989
1995
  type: "secondary",
1990
1996
  className: "theme-tweaker--empty rounded-radius border border-dashed border-border p-surface",
1991
- children: A.emptySearch
1997
+ children: O.emptySearch
1992
1998
  })
1993
1999
  ]
1994
2000
  })]
1995
2001
  })]
1996
2002
  }),
1997
- g === !1 ? null : /* @__PURE__ */ E(f, {
2003
+ te === !1 ? null : /* @__PURE__ */ w(f, {
1998
2004
  className: "theme-tweaker--preview min-w-0 self-start",
1999
- children: g ?? /* @__PURE__ */ E(lt, { strings: A })
2005
+ children: te ?? /* @__PURE__ */ w(lt, { strings: O })
2000
2006
  }),
2001
- /* @__PURE__ */ E(ie, {
2002
- ...We.overlayProps,
2003
- title: A.exportDialogTitle,
2004
- description: A.exportDialogDescription,
2007
+ /* @__PURE__ */ w(oe, {
2008
+ ...Ge.overlayProps,
2009
+ title: O.exportDialogTitle,
2010
+ description: O.exportDialogDescription,
2005
2011
  showCloseButton: !1,
2006
2012
  showCancel: !1,
2007
2013
  showConfirm: !1,
2008
- surfaceStyle: B(j),
2009
- className: s("theme-tweaker--export-dialog sm:max-w-4xl", j.mode),
2010
- footer: /* @__PURE__ */ D(f, {
2014
+ surfaceStyle: R(k),
2015
+ className: s("theme-tweaker--export-dialog sm:max-w-4xl", k.mode),
2016
+ footer: /* @__PURE__ */ T(f, {
2011
2017
  direction: "horizontal",
2012
2018
  align: "center",
2013
2019
  justify: "between",
2014
2020
  className: "theme-tweaker--export-footer w-full",
2015
- children: [/* @__PURE__ */ E(c, {
2021
+ children: [/* @__PURE__ */ w(u, {
2016
2022
  type: "button",
2017
2023
  tone: "secondary",
2018
2024
  buttonStyle: "ghost",
2019
- icon: Ce,
2025
+ icon: Te,
2020
2026
  disabled: X === 0,
2021
2027
  onClick: _t,
2022
- children: A.reset
2023
- }), /* @__PURE__ */ E(re, { render: /* @__PURE__ */ E(c, {
2028
+ children: O.reset
2029
+ }), /* @__PURE__ */ w(ae, { render: /* @__PURE__ */ w(u, {
2024
2030
  tone: "secondary",
2025
2031
  buttonStyle: "outline",
2026
- children: A.close
2032
+ children: O.close
2027
2033
  }) })]
2028
2034
  }),
2029
- children: /* @__PURE__ */ D(f, {
2035
+ children: /* @__PURE__ */ T(f, {
2030
2036
  gap: "xl",
2031
2037
  className: "theme-tweaker--export-body",
2032
2038
  children: [
2033
- /* @__PURE__ */ E(it, {
2034
- title: A.cssOutputLabel,
2035
- description: A.cssOutputDescription,
2039
+ /* @__PURE__ */ w(it, {
2040
+ title: O.cssOutputLabel,
2041
+ description: O.cssOutputDescription,
2036
2042
  code: Y,
2037
- copyLabel: A.copy,
2038
- downloadLabel: W ? A.exportPending : A.downloadCss,
2039
- downloading: W,
2043
+ copyLabel: O.copy,
2044
+ downloadLabel: U ? O.exportPending : O.downloadCss,
2045
+ downloading: U,
2040
2046
  onCopy: () => void ht(Y),
2041
2047
  onDownload: () => void mt()
2042
2048
  }),
2043
- /* @__PURE__ */ E(it, {
2044
- title: A.providerOutputLabel,
2045
- description: A.providerOutputDescription,
2049
+ /* @__PURE__ */ w(it, {
2050
+ title: O.providerOutputLabel,
2051
+ description: O.providerOutputDescription,
2046
2052
  code: q?.providerConfigText ?? "",
2047
- copyLabel: A.copyProvider,
2048
- downloadLabel: A.downloadProvider,
2053
+ copyLabel: O.copyProvider,
2054
+ downloadLabel: O.downloadProvider,
2049
2055
  onCopy: () => void ht(q?.providerConfigText ?? ""),
2050
2056
  onDownload: gt
2051
2057
  }),
2052
- vt ? /* @__PURE__ */ E(l, {
2058
+ vt ? /* @__PURE__ */ w(c, {
2053
2059
  tag: "div",
2054
2060
  size: "xs",
2055
2061
  type: J ? "error" : "secondary",
@@ -2063,21 +2069,21 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
2063
2069
  })
2064
2070
  ]
2065
2071
  });
2066
- return p === "self" ? /* @__PURE__ */ E(V, {
2067
- ...Te,
2072
+ return p === "self" ? /* @__PURE__ */ w(z, {
2073
+ ...De,
2068
2074
  ref: G,
2069
- theme: m ? j : M({ mode: j.mode }),
2070
- className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", k),
2075
+ theme: m ? k : A({ mode: k.mode }),
2076
+ className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", D),
2071
2077
  children: bt
2072
- }) : /* @__PURE__ */ E("div", {
2073
- ...Te,
2078
+ }) : /* @__PURE__ */ w("div", {
2079
+ ...De,
2074
2080
  ref: G,
2075
- className: s("theme-tweaker--component @container/theme-tweaker", k),
2081
+ className: s("theme-tweaker--component @container/theme-tweaker", D),
2076
2082
  children: bt
2077
2083
  });
2078
2084
  });
2079
2085
  dt.displayName = "ThemeTweaker";
2080
2086
  //#endregion
2081
- export { Be as AdminUIThemeProvider, V as ThemeScope, dt as ThemeTweaker, B as adminUIThemeToStyle, Ne as countAdminUIThemeOverrides, M as createAdminUITheme, Pe as createScopedAdminUIThemeSelectors, R as createSerializableUIConfig, Fe as createThemeTweakerExportArtifact, ke as defaultAdminUIThemeSelectors, J as defaultThemeProviderSettingsStrings, Ye as defaultThemeTweakerFields, Ze as defaultThemeTweakerStrings, tt as deriveAdminUIElevation, Qe as deriveAdminUIPalette, et as deriveAdminUITypeScale, Ie as downloadAdminUITheme, Me as getActiveAdminUIThemeOverrides, N as isAdminUIThemeVariableName, L as serializeAdminUITheme, z as serializeUIProviderConfig };
2087
+ export { B as AdminUIThemeProvider, z as ThemeScope, dt as ThemeTweaker, R as adminUIThemeToStyle, Fe as countAdminUIThemeOverrides, A as createAdminUITheme, Ie as createScopedAdminUIThemeSelectors, I as createSerializableUIConfig, Le as createThemeTweakerExportArtifact, je as defaultAdminUIThemeSelectors, J as defaultThemeProviderSettingsStrings, Ye as defaultThemeTweakerFields, Ze as defaultThemeTweakerStrings, tt as deriveAdminUIElevation, Qe as deriveAdminUIPalette, et as deriveAdminUITypeScale, Re as downloadAdminUITheme, Pe as getActiveAdminUIThemeOverrides, j as isAdminUIThemeVariableName, F as serializeAdminUITheme, L as serializeUIProviderConfig };
2082
2088
 
2083
2089
  //# sourceMappingURL=theme-tweaker.js.map