themelia-react-ui 2.0.0 → 2.0.2

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