themelia-react-ui 2.0.1 → 2.0.3

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 (490) hide show
  1. package/CHANGELOG.md +317 -131
  2. package/README.md +25 -9
  3. package/THIRD_PARTY_NOTICES.md +7 -0
  4. package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-CYxKfo69.js → auth-BGua8ouh.js} +58 -54
  17. package/dist/auth-BGua8ouh.js.map +1 -0
  18. package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +1 -1
  28. package/dist/base/buttons.js +1 -1
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +40 -36
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +92 -92
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +2 -2
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +6 -6
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +14 -14
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +1 -1
  50. package/dist/base/navigation.js +6 -6
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +171 -176
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +6 -6
  59. package/dist/base/skeleton.js +1 -1
  60. package/dist/base/spinner.js +79 -2
  61. package/dist/base/spinner.js.map +1 -0
  62. package/dist/base/structure.js +1 -1
  63. package/dist/base/table.js +1 -1
  64. package/dist/base/text-inputs.js +2 -2
  65. package/dist/base/toaster.js +46 -45
  66. package/dist/base/toaster.js.map +1 -1
  67. package/dist/base/tree.js +1 -1
  68. package/dist/base/upload-queue.js +1 -1
  69. package/dist/base/upload.js +3 -3
  70. package/dist/base/value-inputs.js +1 -1
  71. package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
  72. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  73. package/dist/blocks/admin.js +42 -42
  74. package/dist/blocks/admin.js.map +1 -1
  75. package/dist/blocks/ai.js +260 -240
  76. package/dist/blocks/ai.js.map +1 -1
  77. package/dist/blocks/analytics/usage-card.js +1 -1
  78. package/dist/blocks/analytics.js +620 -585
  79. package/dist/blocks/analytics.js.map +1 -1
  80. package/dist/blocks/collaboration.js +1 -1
  81. package/dist/blocks/commerce/receipt.js +1 -1
  82. package/dist/blocks/commerce.js +1152 -1109
  83. package/dist/blocks/commerce.js.map +1 -1
  84. package/dist/blocks/data-display.js +2 -2
  85. package/dist/blocks/onboarding.js +48 -39
  86. package/dist/blocks/onboarding.js.map +1 -1
  87. package/dist/blocks/planning.js +13 -12
  88. package/dist/blocks/planning.js.map +1 -1
  89. package/dist/blocks/timelines.js +1 -1
  90. package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
  91. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  92. package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
  93. package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
  94. package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
  95. package/dist/buttons-DPZekJFu.js.map +1 -0
  96. package/dist/cards-BaBZR-AU.js +68 -0
  97. package/dist/cards-BaBZR-AU.js.map +1 -0
  98. package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
  99. package/dist/chart-ZOYyK2xG.js.map +1 -0
  100. package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
  101. package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
  102. package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
  103. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  104. package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
  105. package/dist/code-block-DeneBJR_.js.map +1 -0
  106. package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
  107. package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  108. package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
  109. package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
  110. package/dist/combobox-DaHESuiL.js +355 -0
  111. package/dist/combobox-DaHESuiL.js.map +1 -0
  112. package/dist/{combobox-DLl0bfiq.js → combobox-Dxo2fAYQ.js} +289 -279
  113. package/dist/combobox-Dxo2fAYQ.js.map +1 -0
  114. package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
  115. package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
  116. package/dist/{comments-BpDuCUUu.js → comments-DD0DUPwJ.js} +114 -105
  117. package/dist/comments-DD0DUPwJ.js.map +1 -0
  118. package/dist/components/base/badge/badge.recipes.d.ts +1 -1
  119. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  120. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  121. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  122. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  123. package/dist/components/base/chart/chart.d.ts +2 -5
  124. package/dist/components/base/combobox/combobox-field.d.ts +16 -0
  125. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  126. package/dist/components/base/combobox/index.d.ts +30 -4
  127. package/dist/components/base/forms/form-sizing.d.ts +11 -3
  128. package/dist/components/base/navigation/pagination.d.ts +5 -2
  129. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  130. package/dist/components/base/table/index.d.ts +9 -2
  131. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  132. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  133. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  134. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
  135. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  136. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  137. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  138. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  139. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  140. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  141. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  142. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  143. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  144. package/dist/components/features/combobox/types.d.ts +4 -0
  145. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  146. package/dist/components/features/rich-text-editor/index.d.ts +1 -1
  147. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  148. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
  149. package/dist/components/features/table/table-header.d.ts +1 -1
  150. package/dist/components/features/table/table.strings.d.ts +55 -1
  151. package/dist/components/features/table/table.types.d.ts +17 -4
  152. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  153. package/dist/components/primitives/number.d.ts +4 -2
  154. package/dist/components/primitives/value.d.ts +3 -1
  155. package/dist/components/typography/text-link.d.ts +4 -0
  156. package/dist/components/ui/combobox-dismiss.d.ts +16 -0
  157. package/dist/components/ui/combobox.d.ts +16 -7
  158. package/dist/components/ui/dialog.d.ts +1 -1
  159. package/dist/components/ui/item.d.ts +8 -8
  160. package/dist/components/ui/popover.d.ts +1 -1
  161. package/dist/components/ui/sheet.d.ts +1 -1
  162. package/dist/components/ui/tabs.d.ts +1 -1
  163. package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
  164. package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
  165. package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
  166. package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
  167. package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
  168. package/dist/data-display-DT_khPl_.js.map +1 -0
  169. package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
  170. package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
  171. package/dist/{date-picker-CF-DtUpF.js → date-picker-B2K3ucWn.js} +594 -593
  172. package/dist/date-picker-B2K3ucWn.js.map +1 -0
  173. package/dist/date-pickers-Ds8gLaoP.js +175 -0
  174. package/dist/date-pickers-Ds8gLaoP.js.map +1 -0
  175. package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
  176. package/dist/display-hAc1HjpI.js.map +1 -0
  177. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  178. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  179. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  180. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  181. package/dist/features/activities.js +398 -375
  182. package/dist/features/activities.js.map +1 -1
  183. package/dist/features/ai-chat.js +188 -179
  184. package/dist/features/ai-chat.js.map +1 -1
  185. package/dist/features/appointment-calendar.js +683 -0
  186. package/dist/features/appointment-calendar.js.map +1 -0
  187. package/dist/features/async-preview.js +109 -107
  188. package/dist/features/async-preview.js.map +1 -1
  189. package/dist/features/combobox.js +1 -1
  190. package/dist/features/comments.js +1 -1
  191. package/dist/features/data-view.js +137 -137
  192. package/dist/features/data-view.js.map +1 -1
  193. package/dist/features/email-composer.js +255 -255
  194. package/dist/features/email-composer.js.map +1 -1
  195. package/dist/features/event-calendar.js +254 -248
  196. package/dist/features/event-calendar.js.map +1 -1
  197. package/dist/features/filters.js +1 -1
  198. package/dist/features/global-search.js +35 -32
  199. package/dist/features/global-search.js.map +1 -1
  200. package/dist/features/kanban.js +118 -117
  201. package/dist/features/kanban.js.map +1 -1
  202. package/dist/features/map.js +233 -231
  203. package/dist/features/map.js.map +1 -1
  204. package/dist/features/media-library.js +789 -775
  205. package/dist/features/media-library.js.map +1 -1
  206. package/dist/features/mentions.js +1 -1
  207. package/dist/features/overlays.js +1 -1
  208. package/dist/features/products.js +922 -902
  209. package/dist/features/products.js.map +1 -1
  210. package/dist/features/questionnaire.js +28 -24
  211. package/dist/features/questionnaire.js.map +1 -1
  212. package/dist/features/resource-assignment.js +18 -15
  213. package/dist/features/resource-assignment.js.map +1 -1
  214. package/dist/features/resource.js +12 -12
  215. package/dist/features/resource.js.map +1 -1
  216. package/dist/features/rich-text-editor.js +2 -2
  217. package/dist/features/schema-form.js +15 -13
  218. package/dist/features/schema-form.js.map +1 -1
  219. package/dist/features/suggestions.js +3 -3
  220. package/dist/features/sync.js +11 -5
  221. package/dist/features/sync.js.map +1 -1
  222. package/dist/features/table.js +1 -1
  223. package/dist/features/theme-tweaker.js +493 -489
  224. package/dist/features/theme-tweaker.js.map +1 -1
  225. package/dist/feedback-BYIhtitP.js +239 -0
  226. package/dist/feedback-BYIhtitP.js.map +1 -0
  227. package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
  228. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  229. package/dist/{filters-BkHH53uv.js → filters-DJVAveHA.js} +589 -580
  230. package/dist/filters-DJVAveHA.js.map +1 -0
  231. package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
  232. package/dist/form-field-CwH9y77i.js.map +1 -0
  233. package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
  234. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  235. package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
  236. package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
  237. package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
  238. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  239. package/dist/{header-BOefOKd1.js → header-BSfIEWbI.js} +160 -153
  240. package/dist/header-BSfIEWbI.js.map +1 -0
  241. package/dist/{hooks-9k_TtmKh.js → hooks-ClH9thn4.js} +2 -2
  242. package/dist/{hooks-9k_TtmKh.js.map → hooks-ClH9thn4.js.map} +1 -1
  243. package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
  244. package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
  245. package/dist/index.js +3 -3
  246. package/dist/input-CZw8iU99.js +21 -0
  247. package/dist/input-CZw8iU99.js.map +1 -0
  248. package/dist/input-DQdEd0YD.js +263 -0
  249. package/dist/input-DQdEd0YD.js.map +1 -0
  250. package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
  251. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  252. package/dist/item-K5_ghvze.js +275 -0
  253. package/dist/item-K5_ghvze.js.map +1 -0
  254. package/dist/layout/app-shell.js +1 -1
  255. package/dist/layout/auth.js +1 -1
  256. package/dist/layout/containers.js +1 -1
  257. package/dist/layout/header.js +1 -1
  258. package/dist/layout/hooks.js +1 -1
  259. package/dist/layout/navigation.js +1 -1
  260. package/dist/layout/page.js +1 -1
  261. package/dist/layout/settings.js +1 -1
  262. package/dist/layout/sidebar.js +2 -2
  263. package/dist/layout/workspace.js +1 -1
  264. package/dist/layout.js +10 -10
  265. package/dist/lib/affordance-geometry.generated.d.ts +71 -0
  266. package/dist/lib/editable-text-recipe.d.ts +4 -4
  267. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  268. package/dist/lib/interaction-recipes.d.ts +5 -0
  269. package/dist/lib/theme-mode-css.d.ts +7 -0
  270. package/dist/lib/tone-recipes.d.ts +8 -0
  271. package/dist/lib/ui-provider/types.d.ts +2 -2
  272. package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
  273. package/dist/lib/utils.js +1 -1
  274. package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
  275. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  276. package/dist/{mentions-D-uyCh01.js → mentions-CGlEJ15c.js} +144 -142
  277. package/dist/mentions-CGlEJ15c.js.map +1 -0
  278. package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
  279. package/dist/message-DZ_ruyUV.js.map +1 -0
  280. package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
  281. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  282. package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
  283. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  284. package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
  285. package/dist/navigation-BzhHI3lo.js.map +1 -0
  286. package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  287. package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  288. package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
  289. package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
  290. package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
  291. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  292. package/dist/{overlays-I0axtYA6.js → overlays-tMkF-VAN.js} +282 -278
  293. package/dist/overlays-tMkF-VAN.js.map +1 -0
  294. package/dist/{page-B5dTH9gE.js → page-CL9YeH_V.js} +8 -8
  295. package/dist/{page-B5dTH9gE.js.map → page-CL9YeH_V.js.map} +1 -1
  296. package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
  297. package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
  298. package/dist/pagination-BL25hu2s.js +158 -0
  299. package/dist/pagination-BL25hu2s.js.map +1 -0
  300. package/dist/{popover-Di55PyAI.js → popover-gnTOhbFM.js} +69 -66
  301. package/dist/popover-gnTOhbFM.js.map +1 -0
  302. package/dist/popover-menu-Cn9rUkdc.js +100 -0
  303. package/dist/popover-menu-Cn9rUkdc.js.map +1 -0
  304. package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
  305. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  306. package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
  307. package/dist/primitives-BFK08r9M.js.map +1 -0
  308. package/dist/primitives.js +4 -4
  309. package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
  310. package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
  311. package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
  312. package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  313. package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
  314. package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
  315. package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
  316. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  317. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  318. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  319. package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
  320. package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
  321. package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
  322. package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
  323. package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
  324. package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
  325. package/dist/services/actions.js +1 -1
  326. package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
  327. package/dist/settings-ybnjVwbd.js.map +1 -0
  328. package/dist/{sheet-4SEvVYzA.js → sheet-ijlsjq-n.js} +76 -73
  329. package/dist/sheet-ijlsjq-n.js.map +1 -0
  330. package/dist/{sidebar-C7WWR29L.js → sidebar-Db6gkh3U.js} +183 -182
  331. package/dist/sidebar-Db6gkh3U.js.map +1 -0
  332. package/dist/{sidebar-d7Dg80ln.js → sidebar-DkTO4VTO.js} +14 -13
  333. package/dist/{sidebar-d7Dg80ln.js.map → sidebar-DkTO4VTO.js.map} +1 -1
  334. package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
  335. package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  336. package/dist/smart-card-DiC5aac3.js +604 -0
  337. package/dist/smart-card-DiC5aac3.js.map +1 -0
  338. package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
  339. package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
  340. package/dist/style.css +1 -1
  341. package/dist/table-BweFy_P9.js +1530 -0
  342. package/dist/table-BweFy_P9.js.map +1 -0
  343. package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
  344. package/dist/table-DsfzoUia.js.map +1 -0
  345. package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
  346. package/dist/tabs-CDocW5D1.js.map +1 -0
  347. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  348. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  349. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  350. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  351. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  352. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  353. package/dist/theme.css +285 -228
  354. package/dist/themes/green.css +16 -12
  355. package/dist/timelines-CwM_9IhD.js +457 -0
  356. package/dist/timelines-CwM_9IhD.js.map +1 -0
  357. package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
  358. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  359. package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
  360. package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
  361. package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
  362. package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
  363. package/dist/typography/rich-text.js +1 -1
  364. package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
  365. package/dist/typography-UTnveOEy.js.map +1 -0
  366. package/dist/typography.js +2 -2
  367. package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
  368. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  369. package/dist/ui-provider.js +2 -2
  370. package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
  371. package/dist/upload-CXyxmQBP.js.map +1 -0
  372. package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
  373. package/dist/upload-queue-Boscubn9.js.map +1 -0
  374. package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
  375. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  376. package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
  377. package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
  378. package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
  379. package/dist/utils-BRhFDwuU.js.map +1 -0
  380. package/dist/{value-inputs-TAYMX111.js → value-inputs-TaX4OjNk.js} +268 -252
  381. package/dist/value-inputs-TaX4OjNk.js.map +1 -0
  382. package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
  383. package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  384. package/dist/{workspace-DH0v0KcB.js → workspace-B-OEm3Kf.js} +34 -33
  385. package/dist/workspace-B-OEm3Kf.js.map +1 -0
  386. package/docs/consumer-skill/SKILL.md +3 -3
  387. package/docs/consumer-skill/references/agents-md.md +1 -1
  388. package/docs/consumer-skill/references/composition.md +8 -6
  389. package/docs/consumer-skill/references/installation.md +6 -0
  390. package/docs/consumer-skill/references/integration.md +4 -3
  391. package/docs/consumer-skill/references/public-api.json +105 -2
  392. package/docs/consumer-skill/references/review.md +7 -0
  393. package/docs/consumer-skill/references/theming.md +71 -6
  394. package/docs/consumer-skill/references/tokens.json +1 -1
  395. package/docs/consumer-skill/references/workflows.md +26 -0
  396. package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
  397. package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
  398. package/package.json +8 -4
  399. package/dist/accordion-B6a3vVgA.js.map +0 -1
  400. package/dist/action-menu-TzCoSlwL.js +0 -280
  401. package/dist/action-menu-TzCoSlwL.js.map +0 -1
  402. package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
  403. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
  404. package/dist/ai-artifact-BMJdv-6q.js +0 -1115
  405. package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
  406. package/dist/attachment-BtfhGm8i.js +0 -245
  407. package/dist/attachment-BtfhGm8i.js.map +0 -1
  408. package/dist/auth-CYxKfo69.js.map +0 -1
  409. package/dist/avatar-BBnEJIx8.js.map +0 -1
  410. package/dist/badge-MrKVNzW9.js.map +0 -1
  411. package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
  412. package/dist/breadcrumbs-D5t7I023.js.map +0 -1
  413. package/dist/buttons-SbIcm1HJ.js.map +0 -1
  414. package/dist/cards-CiiHpKYd.js +0 -66
  415. package/dist/cards-CiiHpKYd.js.map +0 -1
  416. package/dist/chart-QfrARkXl.js.map +0 -1
  417. package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
  418. package/dist/code-block-Dgbu-CU3.js.map +0 -1
  419. package/dist/combobox-2Ic8N9bL.js +0 -278
  420. package/dist/combobox-2Ic8N9bL.js.map +0 -1
  421. package/dist/combobox-DLl0bfiq.js.map +0 -1
  422. package/dist/comments-BpDuCUUu.js.map +0 -1
  423. package/dist/data-display-DafIvCl5.js.map +0 -1
  424. package/dist/date-picker-CF-DtUpF.js.map +0 -1
  425. package/dist/date-pickers-BmzxJl5l.js +0 -174
  426. package/dist/date-pickers-BmzxJl5l.js.map +0 -1
  427. package/dist/display-DsQTVzMz.js.map +0 -1
  428. package/dist/dropdown-menu-E2qmdC7o.js +0 -193
  429. package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
  430. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  431. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  432. package/dist/feedback-qNuMBtRH.js +0 -233
  433. package/dist/feedback-qNuMBtRH.js.map +0 -1
  434. package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
  435. package/dist/filters-BkHH53uv.js.map +0 -1
  436. package/dist/form-field-DUt4UxSV.js.map +0 -1
  437. package/dist/form-sizing-By94KzXE.js.map +0 -1
  438. package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
  439. package/dist/header-BOefOKd1.js.map +0 -1
  440. package/dist/input-DWhBBBww.js +0 -262
  441. package/dist/input-DWhBBBww.js.map +0 -1
  442. package/dist/input-Ddi_LSYv.js +0 -20
  443. package/dist/input-Ddi_LSYv.js.map +0 -1
  444. package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
  445. package/dist/item-DEmDiTlD.js +0 -265
  446. package/dist/item-DEmDiTlD.js.map +0 -1
  447. package/dist/media-gallery-DcTtAaeC.js.map +0 -1
  448. package/dist/mentions-D-uyCh01.js.map +0 -1
  449. package/dist/message-CdHgIWKf.js.map +0 -1
  450. package/dist/metadata-list-X5rYAKSB.js.map +0 -1
  451. package/dist/navigation-D3KwXmaq.js.map +0 -1
  452. package/dist/navigation-HJf5zxlH.js.map +0 -1
  453. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
  454. package/dist/overlays-I0axtYA6.js.map +0 -1
  455. package/dist/pagination-3bPA_a6K.js +0 -149
  456. package/dist/pagination-3bPA_a6K.js.map +0 -1
  457. package/dist/popover-Di55PyAI.js.map +0 -1
  458. package/dist/popover-menu-B71Tn2Qz.js +0 -99
  459. package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
  460. package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
  461. package/dist/primitives-B-CkiEMU.js.map +0 -1
  462. package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
  463. package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
  464. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
  465. package/dist/settings-CQW3b-Cu.js.map +0 -1
  466. package/dist/sheet-4SEvVYzA.js.map +0 -1
  467. package/dist/sidebar-C7WWR29L.js.map +0 -1
  468. package/dist/smart-card-lFKxn5Hu.js +0 -595
  469. package/dist/smart-card-lFKxn5Hu.js.map +0 -1
  470. package/dist/spinner-fa3h1Aif.js +0 -80
  471. package/dist/spinner-fa3h1Aif.js.map +0 -1
  472. package/dist/table-CIKyLUsy.js.map +0 -1
  473. package/dist/table-CrcLN9Io.js +0 -1458
  474. package/dist/table-CrcLN9Io.js.map +0 -1
  475. package/dist/tabs-DwBJfjxX.js.map +0 -1
  476. package/dist/text-inputs-aaK9wcDT.js +0 -326
  477. package/dist/text-inputs-aaK9wcDT.js.map +0 -1
  478. package/dist/theme-scope-kStaAer0.js +0 -39
  479. package/dist/theme-scope-kStaAer0.js.map +0 -1
  480. package/dist/timelines-C_SBwHNP.js +0 -442
  481. package/dist/timelines-C_SBwHNP.js.map +0 -1
  482. package/dist/tone-recipes-CPoExcTE.js.map +0 -1
  483. package/dist/typography-DTRkE9zL.js.map +0 -1
  484. package/dist/ui-provider-1D_NSYzO.js.map +0 -1
  485. package/dist/upload-BO8-CLN6.js.map +0 -1
  486. package/dist/upload-queue-EOC8g1gf.js.map +0 -1
  487. package/dist/usage-card-obRaBskq.js.map +0 -1
  488. package/dist/utils-l5LpDw2z.js.map +0 -1
  489. package/dist/value-inputs-TAYMX111.js.map +0 -1
  490. package/dist/workspace-DH0v0KcB.js.map +0 -1
@@ -1,36 +1,37 @@
1
1
  "use client";
2
- import { g as e, h as t } from "../ui-provider-1D_NSYzO.js";
2
+ import { g as e, h as t } from "../ui-provider-C_U0Xma4.js";
3
3
  import { COMPONENT_SCALES as n, SEMANTIC_TONES as r } from "../component-vocabulary.js";
4
- import { t as i } from "../theme-scope-kStaAer0.js";
4
+ import { t as i } from "../theme-scope-BJ6eE2xt.js";
5
5
  import { interpolateString as a, useStrings as o } from "../lib/strings.js";
6
- import { t as s } from "../utils-l5LpDw2z.js";
7
- import { n as c } from "../buttons-SbIcm1HJ.js";
8
- import { o as l, s as u } from "../typography-DTRkE9zL.js";
6
+ import { t as s } from "../utils-BRhFDwuU.js";
7
+ import { n as c } from "../buttons-DPZekJFu.js";
8
+ import { c as l, s as u } from "../typography-UTnveOEy.js";
9
9
  import { t as d } from "../focus-recipes-B653VaLq.js";
10
- import { r as f, t as p } from "../structure-DC2dygdA.js";
11
- import { _ as m, g as ee, h, p as te, t as ne, v as g } from "../smart-card-lFKxn5Hu.js";
12
- import { i as re, r as ie } from "../overlays-I0axtYA6.js";
13
- import { m as ae } from "../primitives-B-CkiEMU.js";
14
- import { t as oe } from "../accordion-B6a3vVgA.js";
15
- import { t as _ } from "../badge-MrKVNzW9.js";
16
- import { t as v } from "../input-DWhBBBww.js";
17
- import { t as y } from "../form-field-DUt4UxSV.js";
18
- import { d as se } from "../text-inputs-aaK9wcDT.js";
19
- import { a as b, l as x } from "../choice-inputs-t6w3ATNz.js";
20
- import { i as ce, n as S } from "../value-inputs-TAYMX111.js";
21
- import { d as le } from "../forms-numeric-C0bvjRPZ.js";
22
- import { t as ue } from "../item-DEmDiTlD.js";
23
- import { i as de, r as fe, t as pe } from "../tabs-DwBJfjxX.js";
24
- import { forwardRef as C, useEffect as me, useId as he, useImperativeHandle as ge, useMemo as w, useRef as _e, useState as T } from "react";
25
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
26
- import { CheckCircle2 as ve, Copy as ye, Download as be, Info as xe, LayoutGrid as Se, Moon as Ce, Palette as we, RotateCcw as Te, Search as Ee, Settings2 as O, Shapes as De, ShieldCheck as Oe, Sun as ke, Type as k } from "lucide-react";
10
+ import { r as f, t as p } from "../structure-BmisBK-3.js";
11
+ import { _ as m, g as ee, h, p as te, t as ne, v as g } from "../smart-card-DiC5aac3.js";
12
+ import { i as re, r as ie } from "../overlays-tMkF-VAN.js";
13
+ import { m as ae } from "../primitives-BFK08r9M.js";
14
+ import { t as oe } from "../accordion-Cjb6sx0G.js";
15
+ import { t as _ } from "../badge-HpFqoqSY.js";
16
+ import { t as se } from "../theme-mode-css-BB-_RYab.js";
17
+ import { t as v } from "../input-DQdEd0YD.js";
18
+ import { t as y } from "../form-field-CwH9y77i.js";
19
+ import { d as ce } from "../text-inputs-f9Ia-aCi.js";
20
+ import { a as b, l as x } from "../choice-inputs-CNHvARCJ.js";
21
+ import { i as le, n as S } from "../value-inputs-TaX4OjNk.js";
22
+ import { d as ue } from "../forms-numeric-B_jraJaQ.js";
23
+ import { t as de } from "../item-K5_ghvze.js";
24
+ import { i as fe, r as pe, t as me } from "../tabs-CDocW5D1.js";
25
+ import { forwardRef as C, useEffect as he, useId as w, useImperativeHandle as ge, useMemo as T, useRef as _e, useState as E } from "react";
26
+ import { jsx as D, jsxs as O } from "react/jsx-runtime";
27
+ import { CheckCircle2 as ve, Copy as ye, Download as be, Info as xe, LayoutGrid as Se, Moon as Ce, Palette as k, RotateCcw as we, Search as Te, Settings2 as Ee, Shapes as De, ShieldCheck as A, Sun as Oe, Type as ke } from "lucide-react";
27
28
  //#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
28
29
  var Ae = {
29
30
  shared: ":root",
30
31
  light: ":root,\n.light",
31
32
  dark: ".dark"
32
- }, je = /^--[a-z][a-z0-9-]*$/i, Me = /[;{}]/, A = /[;{}]/;
33
- function j(e = {}) {
33
+ }, je = /^--[a-z][a-z0-9-]*$/i, j = /[;{}]/, Me = /[;{}]/;
34
+ function M(e = {}) {
34
35
  return {
35
36
  mode: e.mode ?? "light",
36
37
  shared: { ...e.shared },
@@ -38,12 +39,12 @@ function j(e = {}) {
38
39
  dark: { ...e.dark }
39
40
  };
40
41
  }
41
- function Ne(e) {
42
+ function N(e) {
42
43
  return je.test(e);
43
44
  }
44
- function M(e, t = !0) {
45
+ function P(e, t = !0) {
45
46
  return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
46
- if (!Ne(e)) {
47
+ if (!N(e)) {
47
48
  if (!t) return [];
48
49
  throw TypeError(`Invalid CSS variable name: ${e}`);
49
50
  }
@@ -51,121 +52,121 @@ function M(e, t = !0) {
51
52
  let t = e.charCodeAt(0);
52
53
  return t < 32 || t === 127;
53
54
  });
54
- if (Me.test(r) || i) {
55
+ if (j.test(r) || i) {
55
56
  if (!t) return [];
56
57
  throw TypeError(`Unsafe CSS value for ${e}.`);
57
58
  }
58
59
  return [[e, r]];
59
60
  }).sort(([e], [t]) => e.localeCompare(t));
60
61
  }
61
- function N(e, t) {
62
+ function F(e, t) {
62
63
  let n = e.trim();
63
- if (n.length === 0 || A.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
64
+ if (n.length === 0 || Me.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
64
65
  return n;
65
66
  }
66
- function P(e, t) {
67
- let n = M(t);
67
+ function I(e, t) {
68
+ let n = P(t);
68
69
  return n.length === 0 ? null : [
69
70
  `${e} {`,
70
71
  ...n.map(([e, t]) => `\t${e}: ${t};`),
71
72
  "}"
72
73
  ].join("\n");
73
74
  }
74
- function F(e, t = {}) {
75
- let n = t.selectors ?? Ae, r = [
76
- P(N(n.shared, "shared"), e.shared),
77
- P(N(n.light, "light"), e.light),
78
- P(N(n.dark, "dark"), e.dark)
79
- ].filter((e) => e !== null), i = t.banner === !1 ? null : `/* ${t.banner ?? "themelia-react-ui theme overrides"} */`;
80
- return `${[...i ? [i] : [], ...r.length > 0 ? r : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
75
+ function L(e, t = {}) {
76
+ let n = t.selectors ?? Ae, r = F(n.shared, "shared"), i = F(n.light, "light"), a = F(n.dark, "dark"), o = n.modeScope === void 0 ? void 0 : F(n.modeScope, "modeScope"), s = [I(r, e.shared), ...o === void 0 ? [I(i, e.light), I(a, e.dark)] : [se(o, {
77
+ light: P(e.light).map(([e, t]) => `${e}: ${t};`),
78
+ dark: P(e.dark).map(([e, t]) => `${e}: ${t};`)
79
+ })]].filter((e) => e !== null && e.length > 0), c = t.banner === !1 ? null : `/* ${t.banner ?? "themelia-react-ui theme overrides"} */`;
80
+ return `${[...c ? [c] : [], ...s.length > 0 ? s : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
81
81
  }
82
- function I(t = {}) {
82
+ function R(t = {}) {
83
83
  let n = e(t), { locale: r, formatRelativeTime: i, ...a } = n.dates;
84
84
  return {
85
85
  ...n,
86
86
  dates: a
87
87
  };
88
88
  }
89
- function L(e = {}) {
90
- let t = I(e);
89
+ function Ne(e = {}) {
90
+ let t = R(e);
91
91
  return `import type { UIConfig } from 'themelia-react-ui/ui-provider';\n\nexport const adminUIConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig;\n`;
92
92
  }
93
- function Pe(e, t = e.mode) {
93
+ function z(e, t = e.mode) {
94
94
  return {
95
95
  ...e.shared,
96
96
  ...e[t]
97
97
  };
98
98
  }
99
- function R(e, t = e.mode) {
100
- return Object.fromEntries(M(Pe(e, t), !1));
99
+ function B(e, t = e.mode) {
100
+ return Object.fromEntries(P(z(e, t), !1));
101
101
  }
102
- function Fe(e) {
103
- return M(e.shared, !1).length + M(e.light, !1).length + M(e.dark, !1).length;
102
+ function Pe(e) {
103
+ return P(e.shared, !1).length + P(e.light, !1).length + P(e.dark, !1).length;
104
104
  }
105
- function Ie(e) {
106
- let t = N(e, "shared");
105
+ function Fe(e) {
106
+ let t = F(e, "shared");
107
107
  return {
108
108
  shared: t,
109
109
  light: `${t},\n${t}.light,\n.light ${t}`,
110
- dark: `${t}.dark,\n.dark ${t}`
110
+ dark: `${t}.dark,\n.dark ${t}`,
111
+ modeScope: t
111
112
  };
112
113
  }
113
- function Le(e, t = "admin-ui-theme.css", n = {}, r = {}) {
114
- let i = j(r.resolvedTheme ?? e), a = I(r.providerConfig);
114
+ function Ie(e, t = "admin-ui-theme.css", n = {}, r = {}) {
115
+ let i = M(r.resolvedTheme ?? e), a = R(r.providerConfig);
115
116
  return {
116
117
  fileName: t,
117
- cssText: F(i, {
118
+ cssText: L(i, {
118
119
  ...n,
119
120
  banner: n.banner ?? "themelia-react-ui complete theme"
120
121
  }),
121
- overrideCssText: F(e, n),
122
- theme: j(e),
122
+ overrideCssText: L(e, n),
123
+ theme: M(e),
123
124
  resolvedTheme: i,
124
- overrideCount: Fe(e),
125
+ overrideCount: Pe(e),
125
126
  providerFileName: r.providerFileName ?? "admin-ui.config.ts",
126
127
  providerConfig: a,
127
- providerConfigText: L(a)
128
+ providerConfigText: Ne(a)
128
129
  };
129
130
  }
130
- function Re(e) {
131
- ze({
131
+ function Le(e) {
132
+ Re({
132
133
  fileName: e.fileName,
133
134
  text: e.cssText,
134
135
  mimeType: "text/css;charset=utf-8"
135
136
  });
136
137
  }
137
- function ze({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
138
+ function Re({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
138
139
  if (typeof document > "u" || typeof URL > "u") throw Error("File download requires a browser document. Provide onExport in non-browser environments.");
139
140
  let r = new Blob([t], { type: n }), i = URL.createObjectURL(r), a = document.createElement("a");
140
141
  a.href = i, a.download = e, a.hidden = !0, document.body.append(a), a.click(), a.remove(), URL.revokeObjectURL(i);
141
142
  }
142
143
  //#endregion
143
144
  //#region src/components/features/theme-tweaker/theme-scope.tsx
144
- var z = C(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
145
- return /* @__PURE__ */ E(i, {
145
+ var V = C(function({ theme: e, mode: t = e.mode, className: n, style: r, children: a, ...o }, c) {
146
+ return /* @__PURE__ */ D(i, {
146
147
  ...o,
147
148
  ref: c,
148
149
  "data-theme-mode": t,
149
150
  className: s("theme-scope--component", t, n),
150
151
  style: {
151
- ...R(e, t),
152
+ ...B(e, t),
152
153
  ...r
153
154
  },
154
155
  children: a
155
156
  });
156
157
  });
157
- z.displayName = "ThemeScope";
158
+ V.displayName = "ThemeScope";
158
159
  //#endregion
159
160
  //#region src/components/features/theme-tweaker/use-applied-theme.ts
160
- function Be(e, t) {
161
+ function ze(e, t) {
161
162
  return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
162
163
  }
163
- function Ve({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
164
- me(() => {
164
+ function Be({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
165
+ he(() => {
165
166
  if (!e || r === "self") return;
166
- let a = Be(r, n);
167
+ let a = ze(r, n);
167
168
  if (!a) return;
168
- let o = R(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
169
+ let o = B(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
169
170
  for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
170
171
  value: a.style.getPropertyValue(e),
171
172
  priority: a.style.getPropertyPriority(e)
@@ -189,22 +190,22 @@ function Ve({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
189
190
  }
190
191
  //#endregion
191
192
  //#region src/components/features/theme-tweaker/admin-ui-theme-provider.tsx
192
- var He = C(function({ config: e, theme: n, mode: r = n.mode, target: i = "document", manageModeClass: a = !0, className: o, children: c, ...l }, u) {
193
+ var Ve = C(function({ config: e, theme: n, mode: r = n.mode, target: i = "document", manageModeClass: a = !0, className: o, children: c, ...l }, u) {
193
194
  let d = _e(null);
194
195
  ge(u, () => d.current);
195
- let f = w(() => j({
196
+ let f = T(() => M({
196
197
  ...n,
197
198
  mode: r
198
199
  }), [r, n]);
199
- return Ve({
200
+ return Be({
200
201
  apply: i === "document",
201
202
  manageModeClass: a,
202
203
  selfRef: d,
203
204
  target: i,
204
205
  theme: f
205
- }), /* @__PURE__ */ E(t, {
206
+ }), /* @__PURE__ */ D(t, {
206
207
  config: e,
207
- children: /* @__PURE__ */ E(z, {
208
+ children: /* @__PURE__ */ D(V, {
208
209
  ...l,
209
210
  ref: d,
210
211
  theme: f,
@@ -214,10 +215,10 @@ var He = C(function({ config: e, theme: n, mode: r = n.mode, target: i = "docume
214
215
  })
215
216
  });
216
217
  });
217
- He.displayName = "AdminUIThemeProvider";
218
+ Ve.displayName = "AdminUIThemeProvider";
218
219
  //#endregion
219
220
  //#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
220
- var B = /* @__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("."), V = [
221
+ var H = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--popover.--popover-foreground.--primary.--primary-foreground.--secondary.--secondary-foreground.--muted.--muted-foreground.--accent.--accent-foreground.--destructive.--destructive-foreground.--border.--input.--ring.--chart-1.--chart-2.--chart-3.--chart-4.--chart-5.--sidebar.--sidebar-foreground.--sidebar-primary.--sidebar-primary-foreground.--sidebar-accent.--sidebar-accent-foreground.--sidebar-border.--sidebar-ring".split("."), U = [
221
222
  "--success",
222
223
  "--success-foreground",
223
224
  "--info",
@@ -236,7 +237,7 @@ var B = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
236
237
  "--inverse-surface-strong",
237
238
  "--inverse-border",
238
239
  "--inverse-decoration"
239
- ], H = ["--overlay-backdrop"], U = [
240
+ ], W = ["--overlay-backdrop"], He = [
240
241
  "--font-heading",
241
242
  "--font-sans",
242
243
  "--font-serif",
@@ -257,7 +258,7 @@ var B = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
257
258
  "7xl",
258
259
  "8xl",
259
260
  "9xl"
260
- ].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), We = [
261
+ ].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), G = [
261
262
  "--shadow-2xs",
262
263
  "--shadow-xs",
263
264
  "--shadow-sm",
@@ -266,7 +267,7 @@ var B = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
266
267
  "--shadow-lg",
267
268
  "--shadow-xl",
268
269
  "--shadow-2xl"
269
- ], W = [
270
+ ], K = [
270
271
  "--space-scale",
271
272
  "--density-scale",
272
273
  "--height-action",
@@ -280,7 +281,7 @@ var B = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
280
281
  "--avatar",
281
282
  "--shell-header-height",
282
283
  "--shell-sidebar-width"
283
- ], G = [
284
+ ], We = [
284
285
  "--content-width-sm",
285
286
  "--content-width-md",
286
287
  "--content-width-lg",
@@ -350,7 +351,7 @@ var B = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
350
351
  "--adaptive-grid-min-sm": "Compact adaptive column",
351
352
  "--adaptive-grid-min-md": "Default adaptive column",
352
353
  "--adaptive-grid-min-lg": "Spacious adaptive column"
353
- }, qe = {
354
+ }, q = {
354
355
  "--radius": {
355
356
  type: "range",
356
357
  min: 0,
@@ -542,48 +543,48 @@ var B = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
542
543
  decimalPlaces: 1
543
544
  }
544
545
  };
545
- function K(e) {
546
+ function J(e) {
546
547
  return e.replace(/^--/, "").replace(/--/g, " · ").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0].toUpperCase()}${e.slice(1)}`).join(" ");
547
548
  }
548
- function q(e, t) {
549
+ function qe(e, t) {
549
550
  return e.startsWith("--chart-") ? "Categorical chart-series color; keep status meaning separate." : e.startsWith("--sidebar-") ? "Sidebar-specific theme color." : e.startsWith("--inverse-") ? "Explicitly inverse surface and content color." : e.endsWith("-foreground") ? "Foreground color paired with the matching solid or surface token." : e.endsWith("--line-height") ? "Line height paired with the matching typography step." : e.startsWith("--text-") ? "Font size for the matching typography step." : e.startsWith("--font-") ? "Font family stack for the matching content role." : e.startsWith("--shadow") ? "Elevation shadow used by package surfaces and overlays." : t === "states" ? "Semantic state color shared by package status surfaces." : "Public theme variable used across package components.";
550
551
  }
551
- function J(e, t, n, r, i) {
552
+ function Y(e, t, n, r, i) {
552
553
  return e.map((e) => ({
553
554
  name: e,
554
- label: Ke[e] ?? K(e),
555
- description: Ge[e] ?? q(e, t),
555
+ label: Ke[e] ?? J(e),
556
+ description: Ge[e] ?? qe(e, t),
556
557
  group: t,
557
558
  section: n,
558
559
  scope: r,
559
560
  kind: i,
560
- control: qe[e]
561
+ control: q[e]
561
562
  }));
562
563
  }
563
564
  var Je = [
564
- ...J(B.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
565
- ...J(H, "colors", "surfaces-content", "shared", "color"),
566
- ...J(B.slice(6, 19), "colors", "brand-actions", "mode", "color"),
567
- ...J(B.slice(19, 24), "colors", "charts", "mode", "color"),
568
- ...J(B.slice(24), "colors", "sidebar", "mode", "color"),
569
- ...J(V.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
570
- ...J(V.slice(7), "states", "inverse-surfaces", "mode", "color"),
571
- ...J(U, "typography", "font-families", "shared", "font"),
572
- ...J(Ue, "typography", "type-scale", "shared", "length"),
573
- ...J(["--radius"], "shape", "radius", "shared", "length"),
574
- ...J(We, "shape", "elevation", "mode", "shadow"),
575
- ...J(W.slice(0, 2), "structure", "global-scales", "shared", "length"),
576
- ...J(W.slice(2, 5), "structure", "actions-controls", "shared", "length"),
577
- ...J(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
578
- ...J(W.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
579
- ...J(W.slice(9, 11), "structure", "media", "shared", "length"),
580
- ...J(W.slice(11), "structure", "application-shell", "shared", "length"),
581
- ...J(G.slice(0, 5), "structure", "content-widths", "shared", "length"),
582
- ...J(G.slice(5), "structure", "adaptive-layout", "shared", "length")
565
+ ...Y(H.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
566
+ ...Y(W, "colors", "surfaces-content", "shared", "color"),
567
+ ...Y(H.slice(6, 19), "colors", "brand-actions", "mode", "color"),
568
+ ...Y(H.slice(19, 24), "colors", "charts", "mode", "color"),
569
+ ...Y(H.slice(24), "colors", "sidebar", "mode", "color"),
570
+ ...Y(U.slice(0, 7), "states", "semantic-feedback", "mode", "color"),
571
+ ...Y(U.slice(7), "states", "inverse-surfaces", "mode", "color"),
572
+ ...Y(He, "typography", "font-families", "shared", "font"),
573
+ ...Y(Ue, "typography", "type-scale", "shared", "length"),
574
+ ...Y(["--radius"], "shape", "radius", "shared", "length"),
575
+ ...Y(G, "shape", "elevation", "mode", "shadow"),
576
+ ...Y(K.slice(0, 2), "structure", "global-scales", "shared", "length"),
577
+ ...Y(K.slice(2, 5), "structure", "actions-controls", "shared", "length"),
578
+ ...Y(["--gap-normal", "--gap-dense"], "structure", "rows-surfaces", "shared", "length"),
579
+ ...Y(K.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
580
+ ...Y(K.slice(9, 11), "structure", "media", "shared", "length"),
581
+ ...Y(K.slice(11), "structure", "application-shell", "shared", "length"),
582
+ ...Y(We.slice(0, 5), "structure", "content-widths", "shared", "length"),
583
+ ...Y(We.slice(5), "structure", "adaptive-layout", "shared", "length")
583
584
  ].map((e) => e.name === "--space-scale" || e.name === "--density-scale" ? {
584
585
  ...e,
585
586
  kind: "number"
586
- } : e), Y = {
587
+ } : e), X = {
587
588
  title: "Application defaults",
588
589
  description: "Configure the stable display behavior that accompanies the exported CSS theme.",
589
590
  boundaryTitle: "Root provider recipe",
@@ -696,14 +697,14 @@ var Je = [
696
697
  xl: "XL"
697
698
  }
698
699
  };
699
- function X(e, t) {
700
+ function Z(e, t) {
700
701
  return e.map((e) => ({
701
702
  value: e,
702
703
  label: t.options[e] ?? e.replaceAll("_", " ").replace(/\b\w/g, (e) => e.toUpperCase())
703
704
  }));
704
705
  }
705
- function Ye({ config: e, onChange: t, strings: i = Y }) {
706
- let a = I(e), o = X(n, i), s = [
706
+ function Ye({ config: e, onChange: t, strings: i = X }) {
707
+ let a = R(e), o = Z(n, i), s = [
707
708
  "sunday",
708
709
  "monday",
709
710
  "tuesday",
@@ -723,50 +724,51 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
723
724
  }
724
725
  });
725
726
  };
726
- return /* @__PURE__ */ D(p, {
727
+ return /* @__PURE__ */ O(p, {
727
728
  gap: "lg",
728
729
  className: "theme-tweaker--provider-settings",
729
730
  children: [
730
- /* @__PURE__ */ D(p, {
731
+ /* @__PURE__ */ O(p, {
731
732
  gap: "normal",
732
- children: [/* @__PURE__ */ E(u, {
733
+ children: [/* @__PURE__ */ D(l, {
734
+ type: "inherit",
733
735
  weight: "semibold",
734
736
  children: i.title
735
- }), /* @__PURE__ */ E(u, {
737
+ }), /* @__PURE__ */ D(l, {
736
738
  size: "xs",
737
739
  type: "secondary",
738
740
  children: i.description
739
741
  })]
740
742
  }),
741
- /* @__PURE__ */ D(te, {
743
+ /* @__PURE__ */ O(te, {
742
744
  tone: "info",
743
745
  role: "note",
744
746
  className: "theme-tweaker--provider-boundary",
745
747
  children: [
746
- /* @__PURE__ */ E(xe, { "aria-hidden": "true" }),
747
- /* @__PURE__ */ E(g, { children: i.boundaryTitle }),
748
- /* @__PURE__ */ E(h, { children: i.boundaryDescription }),
749
- /* @__PURE__ */ D(ee, { children: [
750
- /* @__PURE__ */ E(m, {
748
+ /* @__PURE__ */ D(xe, { "aria-hidden": "true" }),
749
+ /* @__PURE__ */ D(g, { children: i.boundaryTitle }),
750
+ /* @__PURE__ */ D(h, { children: i.boundaryDescription }),
751
+ /* @__PURE__ */ O(ee, { children: [
752
+ /* @__PURE__ */ D(m, {
751
753
  label: i.summary.locale,
752
754
  value: a.formatting?.locale ?? i.options.default
753
755
  }),
754
- /* @__PURE__ */ E(m, {
756
+ /* @__PURE__ */ D(m, {
755
757
  label: i.summary.currency,
756
758
  value: a.money?.defaultCurrency ?? i.options.default
757
759
  }),
758
- /* @__PURE__ */ E(m, {
760
+ /* @__PURE__ */ D(m, {
759
761
  label: i.summary.controls,
760
762
  value: i.options[a.density?.defaultScale ?? "md"] ?? a.density?.defaultScale ?? i.options.md
761
763
  }),
762
- /* @__PURE__ */ E(m, {
764
+ /* @__PURE__ */ D(m, {
763
765
  label: i.summary.cards,
764
766
  value: i.options[a.card?.defaultSurface ?? "card"] ?? a.card?.defaultSurface ?? i.options.default
765
767
  })
766
768
  ] })
767
769
  ]
768
770
  }),
769
- /* @__PURE__ */ E(oe, {
771
+ /* @__PURE__ */ D(oe, {
770
772
  multiple: !0,
771
773
  defaultValue: ["regional"],
772
774
  variant: "bordered",
@@ -777,36 +779,36 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
777
779
  value: "regional",
778
780
  title: i.sections.regional.title,
779
781
  description: i.sections.regional.description,
780
- content: /* @__PURE__ */ D("div", {
782
+ content: /* @__PURE__ */ O("div", {
781
783
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
782
784
  children: [
783
- /* @__PURE__ */ E(y, {
785
+ /* @__PURE__ */ D(y, {
784
786
  label: i.labels.locale,
785
- children: /* @__PURE__ */ E(v, {
787
+ children: /* @__PURE__ */ D(v, {
786
788
  value: a.formatting?.locale ?? "",
787
789
  onChange: (e) => c("formatting", "locale", e.target.value)
788
790
  })
789
791
  }),
790
- /* @__PURE__ */ E(y, {
792
+ /* @__PURE__ */ D(y, {
791
793
  label: i.labels.defaultCurrency,
792
- children: /* @__PURE__ */ E(v, {
794
+ children: /* @__PURE__ */ D(v, {
793
795
  value: a.money?.defaultCurrency ?? "",
794
796
  onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
795
797
  })
796
798
  }),
797
- /* @__PURE__ */ E(y, {
799
+ /* @__PURE__ */ D(y, {
798
800
  label: i.labels.displayCurrency,
799
- children: /* @__PURE__ */ E(v, {
801
+ children: /* @__PURE__ */ D(v, {
800
802
  value: a.money?.displayCurrency ?? "",
801
803
  placeholder: i.displayCurrencyPlaceholder,
802
804
  onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
803
805
  })
804
806
  }),
805
- /* @__PURE__ */ E(y, {
807
+ /* @__PURE__ */ D(y, {
806
808
  label: i.labels.moneyFormat,
807
- children: /* @__PURE__ */ E(x, {
809
+ children: /* @__PURE__ */ D(x, {
808
810
  value: a.money?.formatMode,
809
- options: X([
811
+ options: Z([
810
812
  "decimal",
811
813
  "with_code",
812
814
  "with_symbol",
@@ -815,17 +817,17 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
815
817
  onValueChange: (e) => c("money", "formatMode", e)
816
818
  })
817
819
  }),
818
- /* @__PURE__ */ E(y, {
820
+ /* @__PURE__ */ D(y, {
819
821
  label: i.labels.firstDay,
820
- children: /* @__PURE__ */ E(x, {
822
+ children: /* @__PURE__ */ D(x, {
821
823
  value: String(a.dates?.weekStartsOn ?? 1),
822
824
  options: s,
823
825
  onValueChange: (e) => c("dates", "weekStartsOn", Number(e))
824
826
  })
825
827
  }),
826
- /* @__PURE__ */ E(y, {
828
+ /* @__PURE__ */ D(y, {
827
829
  label: i.labels.dateFormat,
828
- children: /* @__PURE__ */ E(v, {
830
+ children: /* @__PURE__ */ D(v, {
829
831
  value: a.dates?.format ?? "",
830
832
  onChange: (e) => c("dates", "format", e.target.value)
831
833
  })
@@ -837,14 +839,14 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
837
839
  value: "content",
838
840
  title: i.sections.content.title,
839
841
  description: i.sections.content.description,
840
- content: /* @__PURE__ */ D("div", {
842
+ content: /* @__PURE__ */ O("div", {
841
843
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
842
844
  children: [
843
- /* @__PURE__ */ E(y, {
845
+ /* @__PURE__ */ D(y, {
844
846
  label: i.labels.textSize,
845
- children: /* @__PURE__ */ E(x, {
847
+ children: /* @__PURE__ */ D(x, {
846
848
  value: a.typography?.defaultTextSize,
847
- options: X([
849
+ options: Z([
848
850
  "xxs",
849
851
  "xs",
850
852
  "pxs",
@@ -856,25 +858,25 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
856
858
  onValueChange: (e) => c("typography", "defaultTextSize", e)
857
859
  })
858
860
  }),
859
- /* @__PURE__ */ E(y, {
861
+ /* @__PURE__ */ D(y, {
860
862
  label: i.labels.commentComposer,
861
- children: /* @__PURE__ */ E(x, {
863
+ children: /* @__PURE__ */ D(x, {
862
864
  value: a.comments?.composerPosition,
863
- options: X(["top", "bottom"], i),
865
+ options: Z(["top", "bottom"], i),
864
866
  onValueChange: (e) => c("comments", "composerPosition", e)
865
867
  })
866
868
  }),
867
- /* @__PURE__ */ E(b, {
869
+ /* @__PURE__ */ D(b, {
868
870
  label: i.labels.dualPricing,
869
871
  description: i.dualPricingDescription,
870
872
  value: a.money?.dualPricingEnabled ?? !1,
871
873
  onValueChange: (e) => c("money", "dualPricingEnabled", e)
872
874
  }),
873
- /* @__PURE__ */ E(y, {
875
+ /* @__PURE__ */ D(y, {
874
876
  label: i.labels.dualPricingMode,
875
- children: /* @__PURE__ */ E(x, {
877
+ children: /* @__PURE__ */ D(x, {
876
878
  value: a.money?.displayMode,
877
- options: X([
879
+ options: Z([
878
880
  "default_only",
879
881
  "dual",
880
882
  "dynamic"
@@ -882,11 +884,11 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
882
884
  onValueChange: (e) => c("money", "displayMode", e)
883
885
  })
884
886
  }),
885
- /* @__PURE__ */ E(y, {
887
+ /* @__PURE__ */ D(y, {
886
888
  label: i.labels.dualPricingLayout,
887
- children: /* @__PURE__ */ E(x, {
889
+ children: /* @__PURE__ */ D(x, {
888
890
  value: a.money?.dualPricingDisplay,
889
- options: X(["inline", "lines"], i),
891
+ options: Z(["inline", "lines"], i),
890
892
  onValueChange: (e) => c("money", "dualPricingDisplay", e)
891
893
  })
892
894
  })
@@ -897,22 +899,22 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
897
899
  value: "components",
898
900
  title: i.sections.components.title,
899
901
  description: i.sections.components.description,
900
- content: /* @__PURE__ */ D("div", {
902
+ content: /* @__PURE__ */ O("div", {
901
903
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
902
904
  children: [
903
- /* @__PURE__ */ E(y, {
905
+ /* @__PURE__ */ D(y, {
904
906
  label: i.labels.componentScale,
905
- children: /* @__PURE__ */ E(x, {
907
+ children: /* @__PURE__ */ D(x, {
906
908
  value: a.density?.defaultScale,
907
909
  options: o,
908
910
  onValueChange: (e) => c("density", "defaultScale", e)
909
911
  })
910
912
  }),
911
- /* @__PURE__ */ E(y, {
913
+ /* @__PURE__ */ D(y, {
912
914
  label: i.labels.itemVariant,
913
- children: /* @__PURE__ */ E(x, {
915
+ children: /* @__PURE__ */ D(x, {
914
916
  value: a.item?.defaultVariant,
915
- options: X([
917
+ options: Z([
916
918
  "default",
917
919
  "outline",
918
920
  "muted"
@@ -920,19 +922,19 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
920
922
  onValueChange: (e) => c("item", "defaultVariant", e)
921
923
  })
922
924
  }),
923
- /* @__PURE__ */ E(y, {
925
+ /* @__PURE__ */ D(y, {
924
926
  label: i.labels.buttonTone,
925
- children: /* @__PURE__ */ E(x, {
927
+ children: /* @__PURE__ */ D(x, {
926
928
  value: a.button?.defaultTone,
927
- options: X(r, i),
929
+ options: Z(r, i),
928
930
  onValueChange: (e) => c("button", "defaultTone", e)
929
931
  })
930
932
  }),
931
- /* @__PURE__ */ E(y, {
933
+ /* @__PURE__ */ D(y, {
932
934
  label: i.labels.buttonStyle,
933
- children: /* @__PURE__ */ E(x, {
935
+ children: /* @__PURE__ */ D(x, {
934
936
  value: a.button?.defaultButtonStyle,
935
- options: X([
937
+ options: Z([
936
938
  "solid",
937
939
  "outline",
938
940
  "ghost"
@@ -940,19 +942,19 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
940
942
  onValueChange: (e) => c("button", "defaultButtonStyle", e)
941
943
  })
942
944
  }),
943
- /* @__PURE__ */ E(y, {
945
+ /* @__PURE__ */ D(y, {
944
946
  label: i.labels.badgeTone,
945
- children: /* @__PURE__ */ E(x, {
947
+ children: /* @__PURE__ */ D(x, {
946
948
  value: a.badge?.defaultTone,
947
- options: X(r, i),
949
+ options: Z(r, i),
948
950
  onValueChange: (e) => c("badge", "defaultTone", e)
949
951
  })
950
952
  }),
951
- /* @__PURE__ */ E(y, {
953
+ /* @__PURE__ */ D(y, {
952
954
  label: i.labels.cardSurface,
953
- children: /* @__PURE__ */ E(x, {
955
+ children: /* @__PURE__ */ D(x, {
954
956
  value: a.card?.defaultSurface,
955
- options: X([
957
+ options: Z([
956
958
  "card",
957
959
  "flat",
958
960
  "framed"
@@ -960,11 +962,11 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
960
962
  onValueChange: (e) => c("card", "defaultSurface", e)
961
963
  })
962
964
  }),
963
- /* @__PURE__ */ E(y, {
965
+ /* @__PURE__ */ D(y, {
964
966
  label: i.labels.spinner,
965
- children: /* @__PURE__ */ E(x, {
967
+ children: /* @__PURE__ */ D(x, {
966
968
  value: a.spinner?.defaultVariant,
967
- options: X([
969
+ options: Z([
968
970
  "default",
969
971
  "shimmer",
970
972
  "progress"
@@ -972,14 +974,14 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
972
974
  onValueChange: (e) => c("spinner", "defaultVariant", e)
973
975
  })
974
976
  }),
975
- /* @__PURE__ */ E(b, {
977
+ /* @__PURE__ */ D(b, {
976
978
  label: i.labels.cardDivider,
977
- value: a.card?.defaultHeaderDivider ?? !1,
979
+ value: a.card?.defaultHeaderDivider ?? !0,
978
980
  onValueChange: (e) => c("card", "defaultHeaderDivider", e)
979
981
  }),
980
- /* @__PURE__ */ E(b, {
981
- label: i.labels.cardFooterDivider ?? Y.labels.cardFooterDivider,
982
- value: a.card?.defaultFooterDivider ?? !1,
982
+ /* @__PURE__ */ D(b, {
983
+ label: i.labels.cardFooterDivider ?? X.labels.cardFooterDivider,
984
+ value: a.card?.defaultFooterDivider ?? !0,
983
985
  onValueChange: (e) => c("card", "defaultFooterDivider", e)
984
986
  })
985
987
  ]
@@ -989,14 +991,14 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
989
991
  value: "toasts",
990
992
  title: i.sections.toasts.title,
991
993
  description: i.sections.toasts.description,
992
- content: /* @__PURE__ */ D("div", {
994
+ content: /* @__PURE__ */ O("div", {
993
995
  className: "grid min-w-0 grid-cols-1 gap-space-md @2xl/theme-tweaker-controls:grid-cols-2",
994
996
  children: [
995
- /* @__PURE__ */ E(y, {
997
+ /* @__PURE__ */ D(y, {
996
998
  label: i.labels.toastPosition,
997
- children: /* @__PURE__ */ E(x, {
999
+ children: /* @__PURE__ */ D(x, {
998
1000
  value: a.toast?.position,
999
- options: X([
1001
+ options: Z([
1000
1002
  "top-right",
1001
1003
  "top-left",
1002
1004
  "top-center",
@@ -1007,11 +1009,11 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
1007
1009
  onValueChange: (e) => c("toast", "position", e)
1008
1010
  })
1009
1011
  }),
1010
- /* @__PURE__ */ E(y, {
1012
+ /* @__PURE__ */ D(y, {
1011
1013
  label: i.labels.toastTheme,
1012
- children: /* @__PURE__ */ E(x, {
1014
+ children: /* @__PURE__ */ D(x, {
1013
1015
  value: a.toast?.theme,
1014
- options: X([
1016
+ options: Z([
1015
1017
  "light",
1016
1018
  "dark",
1017
1019
  "system"
@@ -1019,9 +1021,9 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
1019
1021
  onValueChange: (e) => c("toast", "theme", e)
1020
1022
  })
1021
1023
  }),
1022
- /* @__PURE__ */ E(y, {
1024
+ /* @__PURE__ */ D(y, {
1023
1025
  label: i.labels.toastDuration,
1024
- children: /* @__PURE__ */ E(v, {
1026
+ children: /* @__PURE__ */ D(v, {
1025
1027
  type: "number",
1026
1028
  min: 1e3,
1027
1029
  step: 500,
@@ -1029,9 +1031,9 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
1029
1031
  onChange: (e) => c("toast", "duration", Number(e.target.value))
1030
1032
  })
1031
1033
  }),
1032
- /* @__PURE__ */ E(y, {
1034
+ /* @__PURE__ */ D(y, {
1033
1035
  label: i.labels.visibleToasts,
1034
- children: /* @__PURE__ */ E(v, {
1036
+ children: /* @__PURE__ */ D(v, {
1035
1037
  type: "number",
1036
1038
  min: 1,
1037
1039
  max: 10,
@@ -1039,12 +1041,12 @@ function Ye({ config: e, onChange: t, strings: i = Y }) {
1039
1041
  onChange: (e) => c("toast", "visibleToasts", Number(e.target.value))
1040
1042
  })
1041
1043
  }),
1042
- /* @__PURE__ */ E(b, {
1044
+ /* @__PURE__ */ D(b, {
1043
1045
  label: i.labels.closeButton,
1044
1046
  value: a.toast?.closeButton ?? !0,
1045
1047
  onValueChange: (e) => c("toast", "closeButton", e)
1046
1048
  }),
1047
- /* @__PURE__ */ E(b, {
1049
+ /* @__PURE__ */ D(b, {
1048
1050
  label: i.labels.richColors,
1049
1051
  value: a.toast?.richColors ?? !1,
1050
1052
  onValueChange: (e) => c("toast", "richColors", e)
@@ -1125,7 +1127,7 @@ var Xe = {
1125
1127
  previewSuccess: "Healthy",
1126
1128
  previewWarning: "Review",
1127
1129
  previewContract: "CSS variables",
1128
- providerSettings: Y,
1130
+ providerSettings: X,
1129
1131
  groups: {
1130
1132
  colors: "Colors",
1131
1133
  states: "States",
@@ -1164,10 +1166,10 @@ var Xe = {
1164
1166
  };
1165
1167
  //#endregion
1166
1168
  //#region src/components/features/theme-tweaker/theme-tweaker.recipes.ts
1167
- function Z(e, t, n) {
1169
+ function Q(e, t, n) {
1168
1170
  return Math.min(n, Math.max(t, e));
1169
1171
  }
1170
- function Q(e, t) {
1172
+ function $(e, t) {
1171
1173
  let n = e.trim().match(/^#([\da-f]{3}|[\da-f]{6})$/i)?.[1], r = n?.length === 3 ? [...n].map((e) => e + e).join("") : n;
1172
1174
  if (r) return [
1173
1175
  0,
@@ -1192,10 +1194,10 @@ function Ze({ primary: e, mode: t = "light" }) {
1192
1194
  "--info-foreground": n ? "oklch(0.23 0.025 250)" : "oklch(0.985 0 0)",
1193
1195
  "--warning": r("oklch(0.78 0.13 75)", "oklch(0.81 0.12 75)"),
1194
1196
  "--warning-foreground": "oklch(0.28 0.035 60)",
1195
- "--warning-accent": r("oklch(0.54 0.11 65)", "oklch(0.81 0.12 75)"),
1197
+ "--warning-accent": r("oklch(0.53 0.11 65)", "oklch(0.81 0.12 75)"),
1196
1198
  "--destructive": r("oklch(0.55 0.17 25)", "oklch(0.74 0.14 25)"),
1197
1199
  "--destructive-foreground": n ? "oklch(0.23 0.035 25)" : "oklch(0.985 0 0)",
1198
- "--primary-foreground": Q(e, t),
1200
+ "--primary-foreground": $(e, t),
1199
1201
  "--secondary": "color-mix(in oklab, var(--primary) 10%, var(--background))",
1200
1202
  "--secondary-foreground": "var(--foreground)",
1201
1203
  "--muted": "color-mix(in oklab, var(--primary) 7%, var(--background))",
@@ -1203,8 +1205,6 @@ function Ze({ primary: e, mode: t = "light" }) {
1203
1205
  "--accent": "color-mix(in oklab, var(--primary) 14%, var(--background))",
1204
1206
  "--accent-foreground": "var(--foreground)",
1205
1207
  "--border": "color-mix(in oklab, var(--primary) 14%, var(--background))",
1206
- "--input": "color-mix(in oklab, var(--primary) 18%, var(--background))",
1207
- "--ring": "var(--primary)",
1208
1208
  "--link-color": "var(--primary-accent)",
1209
1209
  "--chart-1": "var(--primary)",
1210
1210
  "--chart-2": r("oklch(0.56 0.11 230)", "oklch(0.76 0.11 230)"),
@@ -1219,13 +1219,13 @@ function Ze({ primary: e, mode: t = "light" }) {
1219
1219
  "--sidebar-ring": "var(--ring)"
1220
1220
  };
1221
1221
  }
1222
- var $ = {
1222
+ var Qe = {
1223
1223
  xxs: .75,
1224
1224
  xs: .75,
1225
1225
  pxs: .8125,
1226
1226
  sm: .875,
1227
1227
  base: 1
1228
- }, Qe = [
1228
+ }, $e = [
1229
1229
  "lg",
1230
1230
  "xl",
1231
1231
  "2xl",
@@ -1237,19 +1237,19 @@ var $ = {
1237
1237
  "8xl",
1238
1238
  "9xl"
1239
1239
  ];
1240
- function $e({ baseSize: e, ratio: t = 1.2 }) {
1241
- let n = Z(e, 14, 20), r = Z(t, 1.125, 1.333), i = {};
1242
- for (let [e, t] of Object.entries($)) {
1240
+ function et({ baseSize: e, ratio: t = 1.2 }) {
1241
+ let n = Q(e, 14, 20), r = Q(t, 1.125, 1.333), i = {};
1242
+ for (let [e, t] of Object.entries(Qe)) {
1243
1243
  let r = Math.max(12, n * t);
1244
1244
  i[`--text-${e}`] = `${Number((r / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number((Math.max(r + 6, r * 1.45) / r).toFixed(4))}`;
1245
1245
  }
1246
- return Qe.forEach((e, t) => {
1246
+ return $e.forEach((e, t) => {
1247
1247
  let a = n * r ** (t + 1);
1248
- i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(Z(1.55 - t * .065, 1, 1.5).toFixed(4))}`;
1248
+ i[`--text-${e}`] = `${Number((a / 16).toFixed(4))}rem`, i[`--text-${e}--line-height`] = `${Number(Q(1.55 - t * .065, 1, 1.5).toFixed(4))}`;
1249
1249
  }), i;
1250
1250
  }
1251
- function et({ intensity: e }) {
1252
- let t = Z(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
1251
+ function tt({ intensity: e }) {
1252
+ let t = Q(e, 0, 1), n = (e) => Number((t * e).toFixed(3));
1253
1253
  return {
1254
1254
  "--shadow-2xs": `0 1px 2px 0 oklch(0 0 0 / ${n(.06)})`,
1255
1255
  "--shadow-xs": `0 1px 3px 0 oklch(0 0 0 / ${n(.07)})`,
@@ -1263,28 +1263,28 @@ function et({ intensity: e }) {
1263
1263
  }
1264
1264
  //#endregion
1265
1265
  //#region src/components/features/theme-tweaker/theme-tweaker.tsx
1266
- var tt = [
1266
+ var nt = [
1267
1267
  "colors",
1268
1268
  "states",
1269
1269
  "typography",
1270
1270
  "shape",
1271
1271
  "structure",
1272
1272
  "defaults"
1273
- ], nt = {
1274
- colors: we,
1275
- states: Oe,
1276
- typography: k,
1273
+ ], rt = {
1274
+ colors: k,
1275
+ states: A,
1276
+ typography: ke,
1277
1277
  shape: De,
1278
1278
  structure: Se,
1279
- defaults: O
1279
+ defaults: Ee
1280
1280
  };
1281
- function rt({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
1282
- let f = he();
1283
- return /* @__PURE__ */ D(p, {
1284
- render: /* @__PURE__ */ E("section", { "aria-labelledby": f }),
1281
+ function it({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i, onCopy: a, onDownload: o, downloading: s = !1 }) {
1282
+ let f = w();
1283
+ return /* @__PURE__ */ O(p, {
1284
+ render: /* @__PURE__ */ D("section", { "aria-labelledby": f }),
1285
1285
  gap: "md",
1286
1286
  className: "theme-tweaker--export-artifact min-w-0",
1287
- children: [/* @__PURE__ */ D(p, {
1287
+ children: [/* @__PURE__ */ O(p, {
1288
1288
  direction: {
1289
1289
  base: "vertical",
1290
1290
  sm: "horizontal"
@@ -1296,25 +1296,26 @@ function rt({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
1296
1296
  justify: { sm: "between" },
1297
1297
  gap: "md",
1298
1298
  className: "theme-tweaker--export-artifact-header",
1299
- children: [/* @__PURE__ */ D(p, {
1299
+ children: [/* @__PURE__ */ O(p, {
1300
1300
  gap: "dense",
1301
1301
  className: "min-w-0",
1302
- children: [/* @__PURE__ */ E(l, {
1302
+ children: [/* @__PURE__ */ D(u, {
1303
+ className: "text-inherit",
1303
1304
  id: f,
1304
1305
  tag: "h3",
1305
1306
  children: e
1306
- }), /* @__PURE__ */ E(u, {
1307
+ }), /* @__PURE__ */ D(l, {
1307
1308
  size: "xs",
1308
1309
  type: "secondary",
1309
1310
  children: t
1310
1311
  })]
1311
- }), /* @__PURE__ */ D(p, {
1312
+ }), /* @__PURE__ */ O(p, {
1312
1313
  direction: "horizontal",
1313
1314
  gap: "xs",
1314
1315
  align: "center",
1315
1316
  wrap: !0,
1316
1317
  className: "theme-tweaker--export-artifact-actions sm:shrink-0",
1317
- children: [/* @__PURE__ */ E(c, {
1318
+ children: [/* @__PURE__ */ D(c, {
1318
1319
  type: "button",
1319
1320
  size: "sm",
1320
1321
  tone: "secondary",
@@ -1322,7 +1323,7 @@ function rt({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
1322
1323
  icon: ye,
1323
1324
  onClick: a,
1324
1325
  children: r
1325
- }), /* @__PURE__ */ E(c, {
1326
+ }), /* @__PURE__ */ D(c, {
1326
1327
  tone: "primary",
1327
1328
  type: "button",
1328
1329
  size: "sm",
@@ -1332,40 +1333,40 @@ function rt({ title: e, description: t, code: n, copyLabel: r, downloadLabel: i,
1332
1333
  children: i
1333
1334
  })]
1334
1335
  })]
1335
- }), /* @__PURE__ */ E("pre", {
1336
+ }), /* @__PURE__ */ D("pre", {
1336
1337
  tabIndex: 0,
1337
1338
  "aria-label": e,
1338
1339
  className: `theme-tweaker--export-code max-h-48 min-w-0 overflow-auto rounded-radius border border-border bg-muted/30 p-surface-xs font-mono text-xs leading-relaxed text-foreground outline-none ${d.frame} sm:max-h-72`,
1339
- children: /* @__PURE__ */ E("code", { children: n })
1340
+ children: /* @__PURE__ */ D("code", { children: n })
1340
1341
  })]
1341
1342
  });
1342
1343
  }
1343
- function it(e, t) {
1344
+ function at(e, t) {
1344
1345
  let n = Number.parseFloat(e);
1345
1346
  return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.min;
1346
1347
  }
1347
- function at(e, t) {
1348
+ function ot(e, t) {
1348
1349
  let n = t.decimalPlaces ?? 3;
1349
1350
  return `${Number(e.toFixed(n))}${t.unit ?? ""}`;
1350
1351
  }
1351
- function ot(e, t) {
1352
+ function st(e, t) {
1352
1353
  return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
1353
1354
  }
1354
- function st(e, t) {
1355
- if (typeof document > "u" || typeof window > "u") return j(e);
1355
+ function ct(e, t) {
1356
+ if (typeof document > "u" || typeof window > "u") return M(e);
1356
1357
  let n = document.documentElement, r = [...new Set(t.map((e) => e.name))], i = n.classList.contains("light"), a = n.classList.contains("dark"), o = new Map(r.map((e) => [e, {
1357
1358
  value: n.style.getPropertyValue(e),
1358
1359
  priority: n.style.getPropertyPriority(e)
1359
1360
  }])), s = (t) => {
1360
1361
  for (let e of r) n.style.removeProperty(e);
1361
1362
  n.classList.toggle("light", t === "light"), n.classList.toggle("dark", t === "dark");
1362
- for (let [r, i] of Object.entries(R(e, t))) typeof i == "string" && n.style.setProperty(r, i);
1363
+ for (let [r, i] of Object.entries(B(e, t))) typeof i == "string" && n.style.setProperty(r, i);
1363
1364
  let i = window.getComputedStyle(n);
1364
1365
  return Object.fromEntries(r.map((e) => [e, i.getPropertyValue(e).trim()]).filter((e) => e[1].length > 0));
1365
1366
  };
1366
1367
  try {
1367
1368
  let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
1368
- return j({
1369
+ return M({
1369
1370
  mode: e.mode,
1370
1371
  shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
1371
1372
  light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
@@ -1379,30 +1380,30 @@ function st(e, t) {
1379
1380
  n.classList.toggle("light", i), n.classList.toggle("dark", a);
1380
1381
  }
1381
1382
  }
1382
- function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
1383
- let s = `theme-variable-${he().replace(/:/g, "")}`, l = /* @__PURE__ */ E(c, {
1383
+ function lt({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, strings: o }) {
1384
+ let s = `theme-variable-${w().replace(/:/g, "")}`, u = /* @__PURE__ */ D(c, {
1384
1385
  type: "button",
1385
1386
  iconOnly: !0,
1386
1387
  tone: "secondary",
1387
1388
  buttonStyle: "ghost",
1388
- icon: Te,
1389
+ icon: we,
1389
1390
  withTooltip: o.resetVariable,
1390
1391
  "aria-label": `${o.resetVariable}: ${e.label}`,
1391
1392
  disabled: !t,
1392
1393
  onClick: i,
1393
- children: /* @__PURE__ */ E(u, {
1394
+ children: /* @__PURE__ */ D(l, {
1394
1395
  tag: "span",
1395
1396
  size: "inherit",
1396
1397
  className: "sr-only",
1397
1398
  children: o.resetVariable
1398
1399
  })
1399
1400
  }), d = e.placeholder ?? n ?? o.inheritValue, f;
1400
- if (e.kind === "color") f = /* @__PURE__ */ D(p, {
1401
+ if (e.kind === "color") f = /* @__PURE__ */ O(p, {
1401
1402
  direction: "horizontal",
1402
1403
  gap: "xs",
1403
1404
  align: "center",
1404
1405
  wrap: !1,
1405
- children: [/* @__PURE__ */ E(ce, {
1406
+ children: [/* @__PURE__ */ D(le, {
1406
1407
  id: s,
1407
1408
  "aria-label": e.label,
1408
1409
  "aria-description": e.description,
@@ -1412,29 +1413,29 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1412
1413
  onValueChange: r,
1413
1414
  placeholder: d,
1414
1415
  className: "min-w-0 flex-1"
1415
- }), l]
1416
+ }), u]
1416
1417
  });
1417
1418
  else if (e.control?.type === "range") {
1418
- let i = it(t || n, e.control);
1419
- f = /* @__PURE__ */ D(p, {
1419
+ let i = at(t || n, e.control);
1420
+ f = /* @__PURE__ */ O(p, {
1420
1421
  gap: "sm",
1421
- children: [/* @__PURE__ */ E(S, {
1422
+ children: [/* @__PURE__ */ D(S, {
1422
1423
  id: `${s}-slider`,
1423
1424
  "aria-label": a(o.adjustVariable, { label: e.label }),
1424
1425
  value: i,
1425
1426
  min: e.control.min,
1426
1427
  max: e.control.max,
1427
1428
  step: e.control.step,
1428
- onValueChange: (t) => r(at(t, e.control))
1429
- }), /* @__PURE__ */ D(p, {
1429
+ onValueChange: (t) => r(ot(t, e.control))
1430
+ }), /* @__PURE__ */ O(p, {
1430
1431
  direction: "horizontal",
1431
1432
  gap: "xs",
1432
1433
  align: "center",
1433
1434
  wrap: !1,
1434
- children: [/* @__PURE__ */ E(p, {
1435
+ children: [/* @__PURE__ */ D(p, {
1435
1436
  gap: "none",
1436
1437
  className: "w-28 max-w-full shrink-0",
1437
- children: /* @__PURE__ */ E(le, {
1438
+ children: /* @__PURE__ */ D(ue, {
1438
1439
  id: s,
1439
1440
  "aria-label": e.label,
1440
1441
  "aria-description": e.description,
@@ -1451,17 +1452,17 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1451
1452
  },
1452
1453
  className: "font-mono tabular-nums"
1453
1454
  })
1454
- }), l]
1455
+ }), u]
1455
1456
  })]
1456
1457
  });
1457
- } else f = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ D(p, {
1458
+ } else f = e.kind === "font" || e.kind === "shadow" ? /* @__PURE__ */ O(p, {
1458
1459
  direction: "horizontal",
1459
1460
  gap: "xs",
1460
1461
  align: "start",
1461
1462
  wrap: !1,
1462
- children: [/* @__PURE__ */ E(p, {
1463
+ children: [/* @__PURE__ */ D(p, {
1463
1464
  className: "min-w-0 flex-1",
1464
- children: /* @__PURE__ */ E(se, {
1465
+ children: /* @__PURE__ */ D(ce, {
1465
1466
  id: s,
1466
1467
  "aria-label": e.label,
1467
1468
  "aria-description": e.description,
@@ -1472,13 +1473,13 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1472
1473
  autoResize: !0,
1473
1474
  className: "font-mono"
1474
1475
  })
1475
- }), l]
1476
- }) : /* @__PURE__ */ D(p, {
1476
+ }), u]
1477
+ }) : /* @__PURE__ */ O(p, {
1477
1478
  direction: "horizontal",
1478
1479
  gap: "xs",
1479
1480
  align: "center",
1480
1481
  wrap: !1,
1481
- children: [/* @__PURE__ */ E(v, {
1482
+ children: [/* @__PURE__ */ D(v, {
1482
1483
  id: s,
1483
1484
  "aria-label": e.label,
1484
1485
  "aria-description": e.description,
@@ -1486,24 +1487,25 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1486
1487
  onChange: (e) => r(e.target.value),
1487
1488
  placeholder: d,
1488
1489
  className: "min-w-0 flex-1 font-mono"
1489
- }), l]
1490
+ }), u]
1490
1491
  });
1491
- return /* @__PURE__ */ E(y, {
1492
- label: /* @__PURE__ */ D(p, {
1493
- render: /* @__PURE__ */ E("span", {}),
1492
+ return /* @__PURE__ */ D(y, {
1493
+ label: /* @__PURE__ */ O(p, {
1494
+ render: /* @__PURE__ */ D("span", {}),
1494
1495
  direction: "horizontal",
1495
1496
  gap: "sm",
1496
1497
  align: "baseline",
1497
1498
  justify: "between",
1498
1499
  wrap: !0,
1499
1500
  className: "min-w-0 flex-1",
1500
- children: [/* @__PURE__ */ E(u, {
1501
+ children: [/* @__PURE__ */ D(l, {
1502
+ type: "inherit",
1501
1503
  tag: "span",
1502
1504
  size: "inherit",
1503
1505
  weight: "medium",
1504
1506
  className: "min-w-0",
1505
1507
  children: e.label
1506
- }), /* @__PURE__ */ E(ae, {
1508
+ }), /* @__PURE__ */ D(ae, {
1507
1509
  size: "xs",
1508
1510
  type: "secondary",
1509
1511
  weight: "regular",
@@ -1516,47 +1518,47 @@ function ct({ field: e, value: t, effectiveValue: n, onChange: r, onReset: i, st
1516
1518
  children: f
1517
1519
  });
1518
1520
  }
1519
- function lt({ strings: e }) {
1520
- return /* @__PURE__ */ E(ne, {
1521
+ function ut({ strings: e }) {
1522
+ return /* @__PURE__ */ D(ne, {
1521
1523
  title: e.previewTitle,
1522
1524
  description: e.previewDescription,
1523
1525
  className: "theme-tweaker--preview-card",
1524
- children: /* @__PURE__ */ D(p, {
1526
+ children: /* @__PURE__ */ O(p, {
1525
1527
  gap: "lg",
1526
1528
  children: [
1527
- /* @__PURE__ */ D(p, {
1529
+ /* @__PURE__ */ O(p, {
1528
1530
  direction: "horizontal",
1529
1531
  gap: "sm",
1530
1532
  wrap: !0,
1531
1533
  children: [
1532
- /* @__PURE__ */ E(_, {
1534
+ /* @__PURE__ */ D(_, {
1533
1535
  tone: "success",
1534
1536
  children: e.previewSuccess
1535
1537
  }),
1536
- /* @__PURE__ */ E(_, {
1538
+ /* @__PURE__ */ D(_, {
1537
1539
  tone: "warning",
1538
1540
  children: e.previewWarning
1539
1541
  }),
1540
- /* @__PURE__ */ E(_, {
1542
+ /* @__PURE__ */ D(_, {
1541
1543
  tone: "secondary",
1542
1544
  children: e.previewContract
1543
1545
  })
1544
1546
  ]
1545
1547
  }),
1546
- /* @__PURE__ */ E(ue, {
1548
+ /* @__PURE__ */ D(de, {
1547
1549
  variant: "muted",
1548
1550
  padding: "default",
1549
- media: /* @__PURE__ */ E(we, {}),
1551
+ media: /* @__PURE__ */ D(k, {}),
1550
1552
  mediaVariant: "icon",
1551
1553
  title: e.previewItemTitle,
1552
1554
  description: e.previewItemDescription,
1553
- trailing: /* @__PURE__ */ E(ve, { className: "size-icon text-success" })
1555
+ trailing: /* @__PURE__ */ D(ve, { className: "size-icon text-success" })
1554
1556
  }),
1555
- /* @__PURE__ */ E(y, {
1557
+ /* @__PURE__ */ D(y, {
1556
1558
  label: e.previewFieldLabel,
1557
- children: /* @__PURE__ */ E(v, { placeholder: e.previewFieldPlaceholder })
1559
+ children: /* @__PURE__ */ D(v, { placeholder: e.previewFieldPlaceholder })
1558
1560
  }),
1559
- /* @__PURE__ */ E(c, {
1561
+ /* @__PURE__ */ D(c, {
1560
1562
  tone: "primary",
1561
1563
  type: "button",
1562
1564
  children: e.previewAction
@@ -1565,60 +1567,60 @@ function lt({ strings: e }) {
1565
1567
  })
1566
1568
  });
1567
1569
  }
1568
- function ut(e, t, n) {
1570
+ function dt(e, t, n) {
1569
1571
  let r = t.scope === "shared" ? "shared" : e.mode, i = { ...e[r] };
1570
1572
  return n.trim().length === 0 ? delete i[t.name] : i[t.name] = n, {
1571
1573
  ...e,
1572
1574
  [r]: i
1573
1575
  };
1574
1576
  }
1575
- var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Je, target: d = "self", apply: m = !0, manageModeClass: ee = !0, preview: h, fileName: te = "admin-ui-theme.css", config: g, defaultConfig: ae, onConfigChange: se, providerFileName: x = "admin-ui.config.ts", showIntro: ce = !0, selectors: le, onExport: ue, onCopy: C, onReset: he, onError: ve, actionsSlot: ye, strings: be, className: xe, ...Se }, we) {
1576
- let O = o(Xe, be), [De, Oe] = T(() => j(t)), k = w(() => e ? j(e) : De, [De, e]), [Ae, je] = T(() => I(ae)), Me = w(() => I(g ?? Ae), [g, Ae]), [A, Ne] = T("colors"), [M, N] = T(""), [P, F] = T(!0), [L, Pe] = T(16), [Ie, Be] = T(1.2), [He, B] = T(.8), [V, H] = T("idle"), U = re(), [Ue, We] = T(!1), W = _e(null);
1577
- ge(we, () => W.current), Ve({
1577
+ var ft = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange: r, fields: i = Je, target: d = "self", apply: m = !0, manageModeClass: ee = !0, preview: h, fileName: te = "admin-ui-theme.css", config: g, defaultConfig: ae, onConfigChange: se, providerFileName: ce = "admin-ui.config.ts", showIntro: x = !0, selectors: le, onExport: ue, onCopy: de, onReset: C, onError: w, actionsSlot: ve, strings: ye, className: be, ...xe }, Se) {
1578
+ let k = o(Xe, ye), [Ee, De] = E(() => M(t)), A = T(() => e ? M(e) : Ee, [Ee, e]), [ke, Ae] = E(() => R(ae)), je = T(() => R(g ?? ke), [g, ke]), [j, Me] = E("colors"), [N, P] = E(""), [F, I] = E(!0), [L, Ne] = E(16), [z, Fe] = E(1.2), [ze, Ve] = E(.8), [H, U] = E("idle"), W = re(), [He, Ue] = E(!1), G = _e(null);
1579
+ ge(Se, () => G.current), Be({
1578
1580
  apply: m,
1579
1581
  manageModeClass: ee,
1580
- selfRef: W,
1582
+ selfRef: G,
1581
1583
  target: d,
1582
- theme: k
1584
+ theme: A
1583
1585
  });
1584
- let [G, Ge] = T(() => j(k)), [Ke, qe] = T({});
1585
- me(() => {
1586
+ let [K, We] = E(() => M(A)), [Ge, Ke] = E({});
1587
+ he(() => {
1586
1588
  if (typeof window > "u") return;
1587
1589
  let e = window.setTimeout(() => {
1588
- let e = ot(d, W.current);
1590
+ let e = st(d, G.current);
1589
1591
  if (!e) return;
1590
1592
  let t = window.getComputedStyle(e);
1591
- qe(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Ge(st(k, i));
1593
+ Ke(Object.fromEntries(i.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), We(ct(A, i));
1592
1594
  }, 0);
1593
1595
  return () => window.clearTimeout(e);
1594
1596
  }, [
1595
1597
  m,
1596
1598
  i,
1597
1599
  d,
1598
- k
1600
+ A
1599
1601
  ]);
1600
- let { artifact: K, error: q } = w(() => {
1602
+ let { artifact: q, error: J } = T(() => {
1601
1603
  try {
1602
- let e = j({
1603
- mode: k.mode,
1604
+ let e = M({
1605
+ mode: A.mode,
1604
1606
  shared: {
1605
- ...G.shared,
1606
- ...k.shared
1607
+ ...K.shared,
1608
+ ...A.shared
1607
1609
  },
1608
1610
  light: {
1609
- ...G.light,
1610
- ...k.light
1611
+ ...K.light,
1612
+ ...A.light
1611
1613
  },
1612
1614
  dark: {
1613
- ...G.dark,
1614
- ...k.dark
1615
+ ...K.dark,
1616
+ ...A.dark
1615
1617
  }
1616
1618
  });
1617
1619
  return {
1618
- artifact: Le(k, te, { selectors: le }, {
1620
+ artifact: Ie(A, te, { selectors: le }, {
1619
1621
  resolvedTheme: e,
1620
- providerConfig: Me,
1621
- providerFileName: x
1622
+ providerConfig: je,
1623
+ providerFileName: ce
1622
1624
  }),
1623
1625
  error: null
1624
1626
  };
@@ -1630,20 +1632,20 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1630
1632
  }
1631
1633
  }, [
1632
1634
  te,
1633
- Me,
1634
- x,
1635
- G,
1635
+ je,
1636
+ ce,
1637
+ K,
1636
1638
  le,
1637
- k
1638
- ]), J = K?.cssText ?? `/* ${O.invalidTheme} */\n`, Y = w(() => Fe(k), [k]), X = M.trim().toLowerCase(), Z = w(() => i.filter((e) => !X && e.group !== A ? !1 : !X || [
1639
+ A
1640
+ ]), qe = q?.cssText ?? `/* ${k.invalidTheme} */\n`, Y = T(() => Pe(A), [A]), X = N.trim().toLowerCase(), Z = T(() => i.filter((e) => !X && e.group !== j ? !1 : !X || [
1639
1641
  e.name,
1640
1642
  e.label,
1641
1643
  e.description
1642
1644
  ].filter(Boolean).some((e) => e?.toLowerCase().includes(X))), [
1643
1645
  i,
1644
- A,
1646
+ j,
1645
1647
  X
1646
- ]), Q = w(() => {
1648
+ ]), Q = T(() => {
1647
1649
  let e = /* @__PURE__ */ new Map();
1648
1650
  for (let t of Z) {
1649
1651
  let n = `${t.group}:${t.section}`, r = e.get(n);
@@ -1655,104 +1657,104 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1655
1657
  }
1656
1658
  return [...e.values()].sort((e, t) => Number(t.section === "brand-actions") - Number(e.section === "brand-actions"));
1657
1659
  }, [Z]), $ = (t) => {
1658
- e === void 0 && Oe(t), n?.(t), H("idle");
1660
+ e === void 0 && De(t), n?.(t), U("idle");
1659
1661
  }, Qe = (e) => {
1660
- g === void 0 && je(e), se?.(e), H("idle");
1661
- }, it = (e) => {
1662
+ g === void 0 && Ae(e), se?.(e), U("idle");
1663
+ }, $e = (e) => {
1662
1664
  $({
1663
- ...k,
1664
- [k.mode]: {
1665
- ...k[k.mode],
1665
+ ...A,
1666
+ [A.mode]: {
1667
+ ...A[A.mode],
1666
1668
  ...e
1667
1669
  }
1668
1670
  });
1669
1671
  }, at = (e) => {
1670
1672
  $({
1671
- ...k,
1673
+ ...A,
1672
1674
  shared: {
1673
- ...k.shared,
1675
+ ...A.shared,
1674
1676
  ...e
1675
1677
  }
1676
1678
  });
1677
- }, dt = (e) => {
1678
- e !== k.mode && ($({
1679
- ...k,
1679
+ }, ot = (e) => {
1680
+ e !== A.mode && ($({
1681
+ ...A,
1680
1682
  mode: e
1681
1683
  }), r?.(e));
1682
1684
  }, ft = async () => {
1683
1685
  try {
1684
- if (q) throw q;
1685
- if (We(!0), !K) throw Error(O.invalidTheme);
1686
- ue ? await ue(K) : Re(K), H("exported");
1686
+ if (J) throw J;
1687
+ if (Ue(!0), !q) throw Error(k.invalidTheme);
1688
+ ue ? await ue(q) : Le(q), U("exported");
1687
1689
  } catch (e) {
1688
- ve?.(e);
1690
+ w?.(e);
1689
1691
  } finally {
1690
- We(!1);
1692
+ Ue(!1);
1691
1693
  }
1692
1694
  }, pt = async (e) => {
1693
1695
  try {
1694
- if (C) await C(e);
1696
+ if (de) await de(e);
1695
1697
  else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
1696
1698
  else throw Error("Clipboard access is unavailable. Provide onCopy for this environment.");
1697
- H("copied");
1699
+ U("copied");
1698
1700
  } catch (e) {
1699
- ve?.(e);
1701
+ w?.(e);
1700
1702
  }
1701
1703
  }, mt = () => {
1702
1704
  try {
1703
- if (!K) throw q ?? Error(O.invalidTheme);
1704
- ze({
1705
- fileName: K.providerFileName,
1706
- text: K.providerConfigText,
1705
+ if (!q) throw J ?? Error(k.invalidTheme);
1706
+ Re({
1707
+ fileName: q.providerFileName,
1708
+ text: q.providerConfigText,
1707
1709
  mimeType: "text/typescript;charset=utf-8"
1708
- }), H("exported");
1710
+ }), U("exported");
1709
1711
  } catch (e) {
1710
- ve?.(e);
1712
+ w?.(e);
1711
1713
  }
1712
1714
  }, ht = () => {
1713
- let e = k, t = j({ mode: k.mode });
1714
- $(t), he?.(e), H("idle");
1715
- }, gt = q ? O.invalidTheme : V === "copied" ? O.copiedStatus : V === "exported" ? O.exportedStatus : null, _t = A === "colors" ? /* @__PURE__ */ E(b, {
1715
+ let e = A, t = M({ mode: A.mode });
1716
+ $(t), C?.(e), U("idle");
1717
+ }, gt = J ? k.invalidTheme : H === "copied" ? k.copiedStatus : H === "exported" ? k.exportedStatus : null, _t = j === "colors" ? /* @__PURE__ */ D(b, {
1716
1718
  className: "theme-tweaker--recipe",
1717
- label: O.autoPalette,
1718
- description: O.autoPaletteDescription,
1719
- value: P,
1720
- onValueChange: F
1721
- }) : A === "typography" ? /* @__PURE__ */ E(ne, {
1722
- title: O.typeRecipeTitle,
1723
- description: O.typeRecipeDescription,
1719
+ label: k.autoPalette,
1720
+ description: k.autoPaletteDescription,
1721
+ value: F,
1722
+ onValueChange: I
1723
+ }) : j === "typography" ? /* @__PURE__ */ D(ne, {
1724
+ title: k.typeRecipeTitle,
1725
+ description: k.typeRecipeDescription,
1724
1726
  surface: "flat",
1725
1727
  padding: "none",
1726
1728
  className: "theme-tweaker--recipe",
1727
- children: /* @__PURE__ */ D(f, {
1729
+ children: /* @__PURE__ */ O(f, {
1728
1730
  columns: 1,
1729
1731
  gap: "md",
1730
1732
  className: "@2xl/theme-tweaker-controls:grid-cols-2",
1731
- children: [/* @__PURE__ */ E(y, {
1732
- label: O.baseTypeSize,
1733
- children: /* @__PURE__ */ E(S, {
1734
- "aria-label": O.baseTypeSize,
1733
+ children: [/* @__PURE__ */ D(y, {
1734
+ label: k.baseTypeSize,
1735
+ children: /* @__PURE__ */ D(S, {
1736
+ "aria-label": k.baseTypeSize,
1735
1737
  value: L,
1736
1738
  min: 14,
1737
1739
  max: 20,
1738
1740
  step: 1,
1739
1741
  onValueChange: (e) => {
1740
- Pe(e), at($e({
1742
+ Ne(e), at(et({
1741
1743
  baseSize: e,
1742
- ratio: Ie
1744
+ ratio: z
1743
1745
  }));
1744
1746
  }
1745
1747
  })
1746
- }), /* @__PURE__ */ E(y, {
1747
- label: O.typeRatio,
1748
- children: /* @__PURE__ */ E(S, {
1749
- "aria-label": O.typeRatio,
1750
- value: Ie,
1748
+ }), /* @__PURE__ */ D(y, {
1749
+ label: k.typeRatio,
1750
+ children: /* @__PURE__ */ D(S, {
1751
+ "aria-label": k.typeRatio,
1752
+ value: z,
1751
1753
  min: 1.125,
1752
1754
  max: 1.333,
1753
1755
  step: .01,
1754
1756
  onValueChange: (e) => {
1755
- Be(e), at($e({
1757
+ Fe(e), at(et({
1756
1758
  baseSize: L,
1757
1759
  ratio: e
1758
1760
  }));
@@ -1760,193 +1762,195 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1760
1762
  })
1761
1763
  })]
1762
1764
  })
1763
- }) : A === "shape" ? /* @__PURE__ */ E(ne, {
1764
- title: O.elevationRecipeTitle,
1765
- description: O.elevationRecipeDescription,
1765
+ }) : j === "shape" ? /* @__PURE__ */ D(ne, {
1766
+ title: k.elevationRecipeTitle,
1767
+ description: k.elevationRecipeDescription,
1766
1768
  surface: "flat",
1767
1769
  padding: "none",
1768
1770
  className: "theme-tweaker--recipe",
1769
- children: /* @__PURE__ */ E(y, {
1770
- label: O.elevationIntensity,
1771
- children: /* @__PURE__ */ E(S, {
1772
- "aria-label": O.elevationIntensity,
1773
- value: He,
1771
+ children: /* @__PURE__ */ D(y, {
1772
+ label: k.elevationIntensity,
1773
+ children: /* @__PURE__ */ D(S, {
1774
+ "aria-label": k.elevationIntensity,
1775
+ value: ze,
1774
1776
  min: 0,
1775
1777
  max: 1,
1776
1778
  step: .05,
1777
1779
  onValueChange: (e) => {
1778
- B(e), it(et({ intensity: e }));
1780
+ Ve(e), $e(tt({ intensity: e }));
1779
1781
  }
1780
1782
  })
1781
1783
  })
1782
- }) : null, vt = /* @__PURE__ */ D("div", {
1784
+ }) : null, vt = /* @__PURE__ */ O("div", {
1783
1785
  className: s("grid min-w-0 grid-cols-1 gap-space-xl theme-tweaker--layout", h !== !1 && "@3xl/theme-tweaker:grid-cols-2"),
1784
1786
  children: [
1785
- /* @__PURE__ */ D(p, {
1787
+ /* @__PURE__ */ O(p, {
1786
1788
  gap: "lg",
1787
1789
  className: "theme-tweaker--controls @container/theme-tweaker-controls min-w-0",
1788
- children: [/* @__PURE__ */ D(p, {
1790
+ children: [/* @__PURE__ */ O(p, {
1789
1791
  gap: "lg",
1790
1792
  className: "theme-tweaker--header shrink-0",
1791
1793
  children: [
1792
- ce ? /* @__PURE__ */ D(p, {
1794
+ x ? /* @__PURE__ */ O(p, {
1793
1795
  gap: "normal",
1794
1796
  className: "theme-tweaker--intro",
1795
- children: [/* @__PURE__ */ D(p, {
1797
+ children: [/* @__PURE__ */ O(p, {
1796
1798
  direction: "horizontal",
1797
1799
  gap: "sm",
1798
1800
  align: "center",
1799
1801
  wrap: !0,
1800
- children: [/* @__PURE__ */ E(l, {
1802
+ children: [/* @__PURE__ */ D(u, {
1801
1803
  tag: "h2",
1802
- className: "theme-tweaker--title",
1803
- children: O.title
1804
- }), /* @__PURE__ */ E(_, {
1804
+ className: "theme-tweaker--title text-inherit",
1805
+ children: k.title
1806
+ }), /* @__PURE__ */ D(_, {
1805
1807
  tone: "secondary",
1806
- children: a(O.changedCount, { count: Y })
1808
+ children: a(k.changedCount, { count: Y })
1807
1809
  })]
1808
- }), /* @__PURE__ */ E(u, {
1810
+ }), /* @__PURE__ */ D(l, {
1809
1811
  type: "secondary",
1810
1812
  className: "theme-tweaker--description",
1811
- children: O.description
1813
+ children: k.description
1812
1814
  })]
1813
1815
  }) : null,
1814
- /* @__PURE__ */ D(p, {
1816
+ /* @__PURE__ */ O(p, {
1815
1817
  direction: "horizontal",
1816
1818
  justify: "between",
1817
1819
  align: "center",
1818
1820
  wrap: !0,
1819
1821
  gap: "sm",
1820
1822
  className: "theme-tweaker--toolbar",
1821
- children: [/* @__PURE__ */ E(p, {
1823
+ children: [/* @__PURE__ */ D(p, {
1822
1824
  direction: "horizontal",
1823
1825
  gap: "sm",
1824
1826
  align: "center",
1825
1827
  wrap: !0,
1826
- children: /* @__PURE__ */ E(pe, {
1827
- value: k.mode,
1828
- onValueChange: (e) => dt(e),
1829
- children: /* @__PURE__ */ D(fe, { children: [/* @__PURE__ */ D(de, {
1828
+ children: /* @__PURE__ */ D(me, {
1829
+ value: A.mode,
1830
+ onValueChange: (e) => ot(e),
1831
+ children: /* @__PURE__ */ O(pe, { children: [/* @__PURE__ */ O(fe, {
1830
1832
  value: "light",
1831
- children: [/* @__PURE__ */ E(ke, { className: "size-icon-sm" }), O.lightMode]
1832
- }), /* @__PURE__ */ D(de, {
1833
+ children: [/* @__PURE__ */ D(Oe, { className: "size-icon-sm" }), k.lightMode]
1834
+ }), /* @__PURE__ */ O(fe, {
1833
1835
  value: "dark",
1834
- children: [/* @__PURE__ */ E(Ce, { className: "size-icon-sm" }), O.darkMode]
1836
+ children: [/* @__PURE__ */ D(Ce, { className: "size-icon-sm" }), k.darkMode]
1835
1837
  })] })
1836
1838
  })
1837
- }), /* @__PURE__ */ D(p, {
1839
+ }), /* @__PURE__ */ O(p, {
1838
1840
  direction: "horizontal",
1839
1841
  gap: "xs",
1840
1842
  align: "center",
1841
1843
  justify: "end",
1842
1844
  wrap: !1,
1843
1845
  className: "theme-tweaker--actions",
1844
- children: [/* @__PURE__ */ E(c, {
1846
+ children: [/* @__PURE__ */ D(c, {
1845
1847
  tone: "primary",
1846
1848
  type: "button",
1847
- disabled: !!q,
1849
+ disabled: !!J,
1848
1850
  onClick: () => {
1849
- H("idle"), U.show();
1851
+ U("idle"), W.show();
1850
1852
  },
1851
- children: O.export
1852
- }), ye]
1853
+ children: k.export
1854
+ }), ve]
1853
1855
  })]
1854
1856
  }),
1855
- /* @__PURE__ */ E(y, {
1856
- label: /* @__PURE__ */ E(u, {
1857
+ /* @__PURE__ */ D(y, {
1858
+ label: /* @__PURE__ */ D(l, {
1857
1859
  tag: "span",
1858
1860
  size: "inherit",
1859
1861
  className: "sr-only",
1860
- children: O.searchLabel
1862
+ children: k.searchLabel
1861
1863
  }),
1862
1864
  className: "theme-tweaker--search",
1863
- children: /* @__PURE__ */ E(v, {
1864
- value: M,
1865
- onChange: (e) => N(e.target.value),
1866
- placeholder: O.searchPlaceholder,
1867
- startIcon: Ee,
1865
+ children: /* @__PURE__ */ D(v, {
1866
+ value: N,
1867
+ onChange: (e) => P(e.target.value),
1868
+ placeholder: k.searchPlaceholder,
1869
+ startIcon: Te,
1868
1870
  clearable: !0,
1869
- onClear: () => N(""),
1870
- "aria-description": O.searchHint
1871
+ onClear: () => P(""),
1872
+ "aria-description": k.searchHint
1871
1873
  })
1872
1874
  })
1873
1875
  ]
1874
- }), /* @__PURE__ */ D(p, {
1876
+ }), /* @__PURE__ */ O(p, {
1875
1877
  gap: "lg",
1876
1878
  className: "theme-tweaker--workspace min-h-0",
1877
- children: [/* @__PURE__ */ E("nav", {
1878
- "aria-label": O.groupNavigationLabel,
1879
+ children: [/* @__PURE__ */ D("nav", {
1880
+ "aria-label": k.groupNavigationLabel,
1879
1881
  className: "theme-tweaker--navigation min-w-0",
1880
- children: /* @__PURE__ */ E(pe, {
1881
- value: A,
1882
+ children: /* @__PURE__ */ D(me, {
1883
+ value: j,
1882
1884
  onValueChange: (e) => {
1883
- N(""), Ne(e);
1885
+ P(""), Me(e);
1884
1886
  },
1885
1887
  className: "w-full",
1886
- children: /* @__PURE__ */ E(fe, {
1888
+ children: /* @__PURE__ */ D(pe, {
1887
1889
  scrollable: !0,
1888
1890
  scrollStrings: {
1889
- previous: O.previousGroup,
1890
- next: O.nextGroup
1891
+ previous: k.previousGroup,
1892
+ next: k.nextGroup
1891
1893
  },
1892
1894
  className: "theme-tweaker--group-list",
1893
- children: tt.map((e) => {
1894
- let t = nt[e];
1895
- return /* @__PURE__ */ D(de, {
1895
+ children: nt.map((e) => {
1896
+ let t = rt[e];
1897
+ return /* @__PURE__ */ O(fe, {
1896
1898
  value: e,
1897
- onClick: () => N(""),
1899
+ onClick: () => P(""),
1898
1900
  className: "theme-tweaker--group-trigger",
1899
- children: [/* @__PURE__ */ E(t, { "aria-hidden": "true" }), /* @__PURE__ */ E(u, {
1901
+ children: [/* @__PURE__ */ D(t, { "aria-hidden": "true" }), /* @__PURE__ */ D(l, {
1902
+ type: "inherit",
1900
1903
  tag: "span",
1901
1904
  size: "inherit",
1902
1905
  weight: "medium",
1903
1906
  className: "min-w-0 flex-1 truncate text-left",
1904
- children: O.groups[e]
1907
+ children: k.groups[e]
1905
1908
  })]
1906
1909
  }, e);
1907
1910
  })
1908
1911
  })
1909
1912
  })
1910
- }), /* @__PURE__ */ D(p, {
1913
+ }), /* @__PURE__ */ O(p, {
1911
1914
  gap: "lg",
1912
1915
  className: "theme-tweaker--body theme-tweaker--editor min-h-0 min-w-0",
1913
1916
  children: [
1914
- /* @__PURE__ */ D(p, {
1917
+ /* @__PURE__ */ O(p, {
1915
1918
  gap: "normal",
1916
1919
  className: "theme-tweaker--editor-heading",
1917
- children: [/* @__PURE__ */ D(p, {
1920
+ children: [/* @__PURE__ */ O(p, {
1918
1921
  direction: "horizontal",
1919
1922
  gap: "sm",
1920
1923
  align: "center",
1921
1924
  wrap: !0,
1922
1925
  children: [
1923
- /* @__PURE__ */ E(l, {
1926
+ /* @__PURE__ */ D(u, {
1927
+ className: "text-inherit",
1924
1928
  tag: "h3",
1925
- children: X ? O.allGroups : O.groups[A]
1929
+ children: X ? k.allGroups : k.groups[j]
1926
1930
  }),
1927
- ce ? null : /* @__PURE__ */ E(_, {
1931
+ x ? null : /* @__PURE__ */ D(_, {
1928
1932
  tone: "secondary",
1929
- children: a(O.changedCount, { count: Y })
1933
+ children: a(k.changedCount, { count: Y })
1930
1934
  }),
1931
- X ? /* @__PURE__ */ E(_, {
1935
+ X ? /* @__PURE__ */ D(_, {
1932
1936
  tone: "secondary",
1933
1937
  role: "status",
1934
1938
  "aria-live": "polite",
1935
- children: a(O.searchResults, { count: Z.length })
1939
+ children: a(k.searchResults, { count: Z.length })
1936
1940
  }) : null
1937
1941
  ]
1938
- }), /* @__PURE__ */ E(u, {
1942
+ }), /* @__PURE__ */ D(l, {
1939
1943
  size: "xs",
1940
1944
  type: "secondary",
1941
- children: X ? O.searchHint : O.groupDescriptions[A]
1945
+ children: X ? k.searchHint : k.groupDescriptions[j]
1942
1946
  })]
1943
1947
  }),
1944
1948
  X ? null : _t,
1945
- A === "defaults" && !X ? /* @__PURE__ */ E(Ye, {
1946
- config: Me,
1949
+ j === "defaults" && !X ? /* @__PURE__ */ D(Ye, {
1950
+ config: je,
1947
1951
  onChange: Qe,
1948
- strings: O.providerSettings
1949
- }) : Q.length > 0 ? /* @__PURE__ */ E(oe, {
1952
+ strings: k.providerSettings
1953
+ }) : Q.length > 0 ? /* @__PURE__ */ D(oe, {
1950
1954
  multiple: !0,
1951
1955
  defaultValue: [`${Q[0].group}:${Q[0].section}`],
1952
1956
  variant: "bordered",
@@ -1954,111 +1958,111 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
1954
1958
  className: "theme-tweaker--sections shrink-0",
1955
1959
  itemClassName: "theme-tweaker--section",
1956
1960
  items: Q.map((e) => {
1957
- let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? O.mixedScope : t.has("shared") ? O.sharedScope : k.mode === "light" ? O.lightMode : O.darkMode, r = X ? a(O.groupSectionLabel, {
1958
- group: O.groups[e.group],
1959
- section: O.sections[e.section]
1960
- }) : O.sections[e.section];
1961
+ let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? k.mixedScope : t.has("shared") ? k.sharedScope : A.mode === "light" ? k.lightMode : k.darkMode, r = X ? a(k.groupSectionLabel, {
1962
+ group: k.groups[e.group],
1963
+ section: k.sections[e.section]
1964
+ }) : k.sections[e.section];
1961
1965
  return {
1962
1966
  value: `${e.group}:${e.section}`,
1963
1967
  title: r,
1964
- description: a(O.variableCount, { count: e.fields.length }),
1965
- badge: /* @__PURE__ */ E(_, {
1968
+ description: a(k.variableCount, { count: e.fields.length }),
1969
+ badge: /* @__PURE__ */ D(_, {
1966
1970
  tone: "secondary",
1967
1971
  children: n
1968
1972
  }),
1969
- content: /* @__PURE__ */ E(p, {
1973
+ content: /* @__PURE__ */ D(p, {
1970
1974
  gap: "none",
1971
1975
  className: "theme-tweaker--fields",
1972
1976
  children: e.fields.map((e) => {
1973
- let t = e.scope === "shared" ? "shared" : k.mode, n = k[t][e.name] ?? "";
1974
- return /* @__PURE__ */ E(ct, {
1977
+ let t = e.scope === "shared" ? "shared" : A.mode, n = A[t][e.name] ?? "";
1978
+ return /* @__PURE__ */ D(lt, {
1975
1979
  field: e,
1976
1980
  value: n,
1977
- effectiveValue: Ke[e.name] ?? "",
1978
- strings: O,
1981
+ effectiveValue: Ge[e.name] ?? "",
1982
+ strings: k,
1979
1983
  onChange: (t) => {
1980
- if (e.name === "--primary" && P && t.trim()) {
1981
- it(Ze({
1984
+ if (e.name === "--primary" && F && t.trim()) {
1985
+ $e(Ze({
1982
1986
  primary: t,
1983
- mode: k.mode
1987
+ mode: A.mode
1984
1988
  }));
1985
1989
  return;
1986
1990
  }
1987
- $(ut(k, e, t));
1991
+ $(dt(A, e, t));
1988
1992
  },
1989
- onReset: () => $(ut(k, e, ""))
1993
+ onReset: () => $(dt(A, e, ""))
1990
1994
  }, e.name);
1991
1995
  })
1992
1996
  })
1993
1997
  };
1994
1998
  })
1995
- }, `${A}:${X}`) : /* @__PURE__ */ E(u, {
1999
+ }, `${j}:${X}`) : /* @__PURE__ */ D(l, {
1996
2000
  type: "secondary",
1997
2001
  className: "theme-tweaker--empty rounded-radius border border-dashed border-border p-surface",
1998
- children: O.emptySearch
2002
+ children: k.emptySearch
1999
2003
  })
2000
2004
  ]
2001
2005
  })]
2002
2006
  })]
2003
2007
  }),
2004
- h === !1 ? null : /* @__PURE__ */ E(p, {
2008
+ h === !1 ? null : /* @__PURE__ */ D(p, {
2005
2009
  className: "theme-tweaker--preview min-w-0 self-start",
2006
- children: h ?? /* @__PURE__ */ E(lt, { strings: O })
2010
+ children: h ?? /* @__PURE__ */ D(ut, { strings: k })
2007
2011
  }),
2008
- /* @__PURE__ */ E(ie, {
2009
- ...U.overlayProps,
2010
- title: O.exportDialogTitle,
2011
- description: O.exportDialogDescription,
2012
+ /* @__PURE__ */ D(ie, {
2013
+ ...W.overlayProps,
2014
+ title: k.exportDialogTitle,
2015
+ description: k.exportDialogDescription,
2012
2016
  showCloseButton: !1,
2013
2017
  showCancel: !1,
2014
2018
  showConfirm: !1,
2015
- surfaceStyle: R(k),
2016
- className: s("theme-tweaker--export-dialog sm:max-w-4xl", k.mode),
2017
- footer: /* @__PURE__ */ D(p, {
2019
+ surfaceStyle: B(A),
2020
+ className: s("theme-tweaker--export-dialog sm:max-w-4xl", A.mode),
2021
+ footer: /* @__PURE__ */ O(p, {
2018
2022
  direction: "horizontal",
2019
2023
  align: "center",
2020
2024
  justify: "between",
2021
2025
  className: "theme-tweaker--export-footer w-full",
2022
- children: [/* @__PURE__ */ E(c, {
2026
+ children: [/* @__PURE__ */ D(c, {
2023
2027
  type: "button",
2024
2028
  tone: "secondary",
2025
2029
  buttonStyle: "ghost",
2026
- icon: Te,
2030
+ icon: we,
2027
2031
  disabled: Y === 0,
2028
2032
  onClick: ht,
2029
- children: O.reset
2030
- }), /* @__PURE__ */ E(c, {
2031
- onClick: U.hide,
2032
- children: O.close
2033
+ children: k.reset
2034
+ }), /* @__PURE__ */ D(c, {
2035
+ onClick: W.hide,
2036
+ children: k.close
2033
2037
  })]
2034
2038
  }),
2035
- children: /* @__PURE__ */ D(p, {
2039
+ children: /* @__PURE__ */ O(p, {
2036
2040
  gap: "xl",
2037
2041
  className: "theme-tweaker--export-body",
2038
2042
  children: [
2039
- /* @__PURE__ */ E(rt, {
2040
- title: O.cssOutputLabel,
2041
- description: O.cssOutputDescription,
2042
- code: J,
2043
- copyLabel: O.copy,
2044
- downloadLabel: Ue ? O.exportPending : O.downloadCss,
2045
- downloading: Ue,
2046
- onCopy: () => void pt(J),
2043
+ /* @__PURE__ */ D(it, {
2044
+ title: k.cssOutputLabel,
2045
+ description: k.cssOutputDescription,
2046
+ code: qe,
2047
+ copyLabel: k.copy,
2048
+ downloadLabel: He ? k.exportPending : k.downloadCss,
2049
+ downloading: He,
2050
+ onCopy: () => void pt(qe),
2047
2051
  onDownload: () => void ft()
2048
2052
  }),
2049
- /* @__PURE__ */ E(rt, {
2050
- title: O.providerOutputLabel,
2051
- description: O.providerOutputDescription,
2052
- code: K?.providerConfigText ?? "",
2053
- copyLabel: O.copyProvider,
2054
- downloadLabel: O.downloadProvider,
2055
- onCopy: () => void pt(K?.providerConfigText ?? ""),
2053
+ /* @__PURE__ */ D(it, {
2054
+ title: k.providerOutputLabel,
2055
+ description: k.providerOutputDescription,
2056
+ code: q?.providerConfigText ?? "",
2057
+ copyLabel: k.copyProvider,
2058
+ downloadLabel: k.downloadProvider,
2059
+ onCopy: () => void pt(q?.providerConfigText ?? ""),
2056
2060
  onDownload: mt
2057
2061
  }),
2058
- gt ? /* @__PURE__ */ E(u, {
2062
+ gt ? /* @__PURE__ */ D(l, {
2059
2063
  tag: "div",
2060
2064
  size: "xs",
2061
- type: q ? "error" : "secondary",
2065
+ type: J ? "error" : "secondary",
2062
2066
  role: "status",
2063
2067
  "aria-live": "polite",
2064
2068
  className: "theme-tweaker--status",
@@ -2069,21 +2073,21 @@ var dt = C(function({ value: e, defaultValue: t, onValueChange: n, onModeChange:
2069
2073
  })
2070
2074
  ]
2071
2075
  });
2072
- return d === "self" ? /* @__PURE__ */ E(z, {
2073
- ...Se,
2074
- ref: W,
2075
- theme: m ? k : j({ mode: k.mode }),
2076
- className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", xe),
2076
+ return d === "self" ? /* @__PURE__ */ D(V, {
2077
+ ...xe,
2078
+ ref: G,
2079
+ theme: m ? A : M({ mode: A.mode }),
2080
+ className: s("theme-tweaker--component @container/theme-tweaker bg-background text-foreground", be),
2077
2081
  children: vt
2078
- }) : /* @__PURE__ */ E("div", {
2079
- ...Se,
2080
- ref: W,
2081
- className: s("theme-tweaker--component @container/theme-tweaker", xe),
2082
+ }) : /* @__PURE__ */ D("div", {
2083
+ ...xe,
2084
+ ref: G,
2085
+ className: s("theme-tweaker--component @container/theme-tweaker", be),
2082
2086
  children: vt
2083
2087
  });
2084
2088
  });
2085
- dt.displayName = "ThemeTweaker";
2089
+ ft.displayName = "ThemeTweaker";
2086
2090
  //#endregion
2087
- export { He as AdminUIThemeProvider, z as ThemeScope, dt as ThemeTweaker, R as adminUIThemeToStyle, Fe as countAdminUIThemeOverrides, j as createAdminUITheme, Ie as createScopedAdminUIThemeSelectors, I as createSerializableUIConfig, Le as createThemeTweakerExportArtifact, Ae as defaultAdminUIThemeSelectors, Y as defaultThemeProviderSettingsStrings, Je as defaultThemeTweakerFields, Xe as defaultThemeTweakerStrings, et as deriveAdminUIElevation, Ze as deriveAdminUIPalette, $e as deriveAdminUITypeScale, Re as downloadAdminUITheme, Pe as getActiveAdminUIThemeOverrides, Ne as isAdminUIThemeVariableName, F as serializeAdminUITheme, L as serializeUIProviderConfig };
2091
+ export { Ve as AdminUIThemeProvider, V as ThemeScope, ft as ThemeTweaker, B as adminUIThemeToStyle, Pe as countAdminUIThemeOverrides, M as createAdminUITheme, Fe as createScopedAdminUIThemeSelectors, R as createSerializableUIConfig, Ie as createThemeTweakerExportArtifact, Ae as defaultAdminUIThemeSelectors, X as defaultThemeProviderSettingsStrings, Je as defaultThemeTweakerFields, Xe as defaultThemeTweakerStrings, tt as deriveAdminUIElevation, Ze as deriveAdminUIPalette, et as deriveAdminUITypeScale, Le as downloadAdminUITheme, z as getActiveAdminUIThemeOverrides, N as isAdminUIThemeVariableName, L as serializeAdminUITheme, Ne as serializeUIProviderConfig };
2088
2092
 
2089
2093
  //# sourceMappingURL=theme-tweaker.js.map