themelia-react-ui 1.0.2 → 2.0.0

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