themelia-react-ui 2.0.0 → 2.0.1

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