themelia-ui 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (746) hide show
  1. package/.agents/skills/themelia-ui/SKILL.md +60 -33
  2. package/.agents/skills/themelia-ui/manifest.json +23 -0
  3. package/.agents/skills/themelia-ui/references/api-compatibility.md +5 -4
  4. package/.agents/skills/themelia-ui/references/blocks.md +123 -0
  5. package/.agents/skills/themelia-ui/references/composition-ladder.md +8 -8
  6. package/.agents/skills/themelia-ui/references/composition.md +100 -19
  7. package/.agents/skills/themelia-ui/references/forms.md +23 -3
  8. package/.agents/skills/themelia-ui/references/framework-wiring.md +41 -13
  9. package/.agents/skills/themelia-ui/references/i18n.md +4 -2
  10. package/.agents/skills/themelia-ui/references/imports.md +104 -104
  11. package/.agents/skills/themelia-ui/references/installation.md +60 -31
  12. package/.agents/skills/themelia-ui/references/migration.md +156 -5
  13. package/.agents/skills/themelia-ui/references/provider-and-scoping.md +37 -25
  14. package/.agents/skills/themelia-ui/references/reference-workflows.md +43 -0
  15. package/.agents/skills/themelia-ui/references/structure-and-spacing.md +147 -0
  16. package/.agents/skills/themelia-ui/references/theming.md +174 -131
  17. package/.agents/skills/themelia-ui/references/troubleshooting.md +88 -30
  18. package/.agents/skills/themelia-ui/references/verification.md +60 -5
  19. package/CHANGELOG.md +212 -0
  20. package/README.md +48 -60
  21. package/dist/accordion-CHuzMmWL.js +143 -0
  22. package/dist/{action-menu-BNLURfMK.js → action-menu-BwiL_F6I.js} +35 -33
  23. package/dist/{alert-dialog-BMVo6Z-8.js → alert-dialog-Cg2HhuBe.js} +1 -1
  24. package/dist/avatar-Dc_BNYfB.js +93 -0
  25. package/dist/badge-VlJVZjdm.js +45 -0
  26. package/dist/base/accordion.js +1 -1
  27. package/dist/base/action-menu.js +1 -1
  28. package/dist/base/alert-dialog.js +1 -1
  29. package/dist/base/aspect-ratio.js +3 -1
  30. package/dist/base/avatar.js +1 -1
  31. package/dist/base/badge.js +2 -2
  32. package/dist/base/batch-action-bar.js +1 -1
  33. package/dist/base/buttons.js +1 -1
  34. package/dist/base/cards.js +1 -1
  35. package/dist/base/carousel.js +6 -4
  36. package/dist/base/chart.js +1 -1
  37. package/dist/base/choice-inputs.js +1 -1
  38. package/dist/base/combobox.js +1 -1
  39. package/dist/base/command.js +1 -1
  40. package/dist/base/context-menu.js +22 -21
  41. package/dist/base/copyable.js +1 -1
  42. package/dist/base/date-pickers.js +1 -1
  43. package/dist/base/dialog.js +1 -1
  44. package/dist/base/display.js +1 -1
  45. package/dist/base/dropdown-menu.js +1 -1
  46. package/dist/base/feedback.js +1 -1
  47. package/dist/base/forms-numeric.js +1 -1
  48. package/dist/base/forms.js +1 -1
  49. package/dist/base/hover-card.js +26 -23
  50. package/dist/base/input-group.js +1 -1
  51. package/dist/base/item.js +1 -1
  52. package/dist/base/label.js +1 -1
  53. package/dist/base/menubar.js +20 -14
  54. package/dist/base/navigation-menu.js +47 -38
  55. package/dist/base/navigation.js +1 -1
  56. package/dist/base/otp-input.js +36 -30
  57. package/dist/base/overlay.js +1 -1
  58. package/dist/base/popover-menu.js +1 -1
  59. package/dist/base/popover.js +1 -1
  60. package/dist/base/qr-code.js +51 -47
  61. package/dist/base/repeaters.js +1 -1
  62. package/dist/base/resizable.js +2 -0
  63. package/dist/base/sheet.js +1 -1
  64. package/dist/base/sidebar.js +1 -1
  65. package/dist/base/skeleton.js +1 -1
  66. package/dist/base/spinner.js +1 -1
  67. package/dist/base/structure.js +1 -1
  68. package/dist/base/table.js +1 -1
  69. package/dist/base/text-inputs.js +1 -1
  70. package/dist/base/timeline.js +1 -1
  71. package/dist/base/toaster.js +1 -1
  72. package/dist/base/toggle.js +21 -15
  73. package/dist/base/toolbar.js +1 -1
  74. package/dist/base/tooltip.js +1 -1
  75. package/dist/base/typography.js +2 -2
  76. package/dist/base/upload.js +1 -1
  77. package/dist/base/value-inputs.js +1 -1
  78. package/dist/{batch-action-bar-BZYNKXdV.js → batch-action-bar-DZVMVW83.js} +11 -8
  79. package/dist/{admin/patterns → blocks/admin}/access.js +79 -76
  80. package/dist/blocks/admin/commerce.js +2493 -0
  81. package/dist/{patterns → blocks}/analytics.js +312 -303
  82. package/dist/{patterns → blocks}/onboarding.js +27 -23
  83. package/dist/{patterns → blocks}/timelines.js +1 -1
  84. package/dist/buttons-BX2JfL5X.js +173 -0
  85. package/dist/cards-Ddhz43Bz.js +279 -0
  86. package/dist/chart-BkK3Xm10.js +201 -0
  87. package/dist/choice-inputs-NwRxvmZN.js +694 -0
  88. package/dist/combobox-519ubijc.js +292 -0
  89. package/dist/command-JjApYFds.js +156 -0
  90. package/dist/comments-CCQ2QRaU.js +1443 -0
  91. package/dist/components/base/action-menu/action-menu.d.ts +1 -1
  92. package/dist/components/base/action-menu/action-menu.types.d.ts +2 -2
  93. package/dist/components/base/avatar/avatar.d.ts +5 -2
  94. package/dist/components/base/badge/badge.d.ts +10 -10
  95. package/dist/components/base/badge/badge.variants.d.ts +1 -2
  96. package/dist/components/base/badge/index.d.ts +1 -2
  97. package/dist/components/base/buttons/button.d.ts +9 -8
  98. package/dist/components/base/buttons/button.types.d.ts +2 -2
  99. package/dist/components/base/buttons/index.d.ts +1 -1
  100. package/dist/components/base/buttons/text-button.d.ts +1 -1
  101. package/dist/components/base/cards/card-actions.d.ts +1 -1
  102. package/dist/components/base/cards/card.d.ts +3 -1
  103. package/dist/components/base/cards/partials/card-header.d.ts +2 -1
  104. package/dist/components/base/choice-inputs/choice.types.d.ts +2 -2
  105. package/dist/components/base/choice-inputs/partials/choice-parts.d.ts +3 -3
  106. package/dist/components/base/command/command.d.ts +5 -2
  107. package/dist/components/base/display/icon-badge.d.ts +5 -3
  108. package/dist/components/base/display/index.d.ts +1 -1
  109. package/dist/components/base/display/metadata-list.d.ts +6 -6
  110. package/dist/components/base/display/metadata-value.d.ts +1 -1
  111. package/dist/components/base/display/separator.d.ts +2 -2
  112. package/dist/components/base/feedback/alert.d.ts +3 -2
  113. package/dist/components/base/feedback/empty.d.ts +5 -4
  114. package/dist/components/base/feedback/progress-circle.d.ts +2 -2
  115. package/dist/components/base/feedback/progress.d.ts +3 -1
  116. package/dist/components/base/forms/form-field.d.ts +2 -2
  117. package/dist/components/base/input-group/input-group.d.ts +8 -10
  118. package/dist/components/base/item/item.d.ts +2 -2
  119. package/dist/components/base/overlay/index.d.ts +1 -1
  120. package/dist/components/base/overlay/overlay.types.d.ts +7 -5
  121. package/dist/components/base/qr-code/qr-code.d.ts +4 -4
  122. package/dist/components/base/sheet/sheet.d.ts +1 -1
  123. package/dist/components/base/sidebar/sidebar.d.ts +9 -13
  124. package/dist/components/base/spinner/spinner.d.ts +2 -2
  125. package/dist/components/base/structure/adaptive-grid.d.ts +3 -3
  126. package/dist/components/base/structure/bleed.d.ts +4 -2
  127. package/dist/components/base/structure/grid.d.ts +10 -4
  128. package/dist/components/base/structure/index.d.ts +1 -1
  129. package/dist/components/base/structure/split.d.ts +4 -3
  130. package/dist/components/base/structure/stack.d.ts +5 -5
  131. package/dist/components/base/structure/structure.maps.d.ts +2 -1
  132. package/dist/components/base/structure/structure.types.d.ts +10 -4
  133. package/dist/components/base/toggle/toggle.d.ts +2 -2
  134. package/dist/components/base/toolbar/toolbar.d.ts +3 -3
  135. package/dist/components/base/typography/index.d.ts +2 -0
  136. package/dist/components/base/typography/rich-text/rich-text.variants.d.ts +9 -0
  137. package/dist/components/base/typography/text/index.d.ts +1 -0
  138. package/dist/components/base/typography/text/text.d.ts +15 -8
  139. package/dist/components/base/typography/text/text.variants.d.ts +41 -0
  140. package/dist/components/base/value-inputs/color-input.d.ts +1 -7
  141. package/dist/components/base/value-inputs/slider.d.ts +2 -7
  142. package/dist/components/{admin/patterns → blocks/admin}/commerce/vendor-profile.d.ts +2 -1
  143. package/dist/components/{patterns → blocks}/analytics/analytics.strings.d.ts +2 -5
  144. package/dist/components/features/actions/action-adapters.d.ts +3 -3
  145. package/dist/components/features/actions/actions.types.d.ts +3 -5
  146. package/dist/components/features/actions/index.d.ts +1 -1
  147. package/dist/components/features/activities/activities-feed.d.ts +1 -1
  148. package/dist/components/features/activities/activities.types.d.ts +4 -4
  149. package/dist/components/features/activities/activity-parts.d.ts +3 -3
  150. package/dist/components/features/activities/activity-row.d.ts +4 -4
  151. package/dist/components/features/activities/index.d.ts +1 -1
  152. package/dist/components/features/ai-chat/ai-chat.types.d.ts +10 -3
  153. package/dist/components/features/ai-chat/ai-message-surfaces.d.ts +1 -1
  154. package/dist/components/features/ai-chat/ai-work-surfaces.d.ts +1 -1
  155. package/dist/components/features/combobox/combobox.strings.d.ts +2 -2
  156. package/dist/components/features/combobox/fetching-combobox.d.ts +2 -1
  157. package/dist/components/features/combobox/resource-combobox.d.ts +3 -0
  158. package/dist/components/features/combobox/use-suggestions.d.ts +7 -0
  159. package/dist/components/features/event-calendar/event-calendar.types.d.ts +3 -0
  160. package/dist/components/features/media-library/index.d.ts +1 -1
  161. package/dist/components/features/media-library/media-library-parts.d.ts +4 -3
  162. package/dist/components/features/media-library/media-library-views.d.ts +4 -3
  163. package/dist/components/features/media-library/media-library.d.ts +1 -1
  164. package/dist/components/features/media-library/media-library.strings.d.ts +12 -13
  165. package/dist/components/features/media-library/media-library.types.d.ts +11 -9
  166. package/dist/components/features/media-library/media-resource-gallery.d.ts +1 -1
  167. package/dist/components/features/media-library/use-media-library.d.ts +1 -4
  168. package/dist/components/features/overlays/action-overlay-frame.d.ts +1 -1
  169. package/dist/components/features/overlays/index.d.ts +1 -1
  170. package/dist/components/features/overlays/overlay-parts.d.ts +3 -3
  171. package/dist/components/features/overlays/overlays.types.d.ts +8 -7
  172. package/dist/components/features/rich-text-editor/index.d.ts +0 -1
  173. package/dist/components/features/table/data-table-body.d.ts +1 -1
  174. package/dist/components/features/table/data-table-expanded-row.d.ts +27 -0
  175. package/dist/components/features/table/data-table-header.d.ts +1 -1
  176. package/dist/components/features/table/data-table-size.d.ts +1 -1
  177. package/dist/components/features/table/data-table.d.ts +1 -1
  178. package/dist/components/features/table/index.d.ts +1 -1
  179. package/dist/components/features/table/table-helpers.d.ts +9 -3
  180. package/dist/components/features/table/table.strings.d.ts +11 -0
  181. package/dist/components/features/table/table.types.d.ts +60 -2
  182. package/dist/components/features/theme-tweaker/index.d.ts +1 -1
  183. package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +1 -1
  184. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +6 -10
  185. package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +22 -6
  186. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
  187. package/dist/components/layout/auth/auth.d.ts +1 -1
  188. package/dist/components/layout/auth/auth.types.d.ts +1 -1
  189. package/dist/components/primitives/value.d.ts +3 -1
  190. package/dist/containers-B8d8U9GS.js +2 -0
  191. package/dist/{copyable-H1TUEY-H.js → copyable-D9Okb1w6.js} +12 -11
  192. package/dist/core.css +2 -2
  193. package/dist/css/access.css +2 -1
  194. package/dist/css/accordion.css +2 -1
  195. package/dist/css/action-menu.css +2 -1
  196. package/dist/css/activities.css +2 -1
  197. package/dist/css/ai-chat.css +2 -1
  198. package/dist/css/analytics.css +2 -1
  199. package/dist/css/app-shell.css +2 -1
  200. package/dist/css/aspect-ratio.css +2 -1
  201. package/dist/css/async-preview.css +2 -1
  202. package/dist/css/auth.css +2 -1
  203. package/dist/css/avatar.css +2 -1
  204. package/dist/css/badge.css +2 -1
  205. package/dist/css/batch-action-bar.css +2 -1
  206. package/dist/css/buttons.css +2 -1
  207. package/dist/css/cards.css +2 -1
  208. package/dist/css/carousel.css +2 -1
  209. package/dist/css/chart.css +2 -1
  210. package/dist/css/choice-inputs.css +2 -1
  211. package/dist/css/combobox.css +2 -1
  212. package/dist/css/combobox2.css +2 -1
  213. package/dist/css/command.css +2 -1
  214. package/dist/css/comments.css +2 -1
  215. package/dist/css/commerce.css +2 -1
  216. package/dist/css/containers.css +2 -1
  217. package/dist/css/copyable.css +2 -1
  218. package/dist/css/data-view.css +2 -1
  219. package/dist/css/date-pickers.css +2 -1
  220. package/dist/css/display.css +2 -1
  221. package/dist/css/dropdown-menu.css +2 -1
  222. package/dist/css/event-calendar.css +2 -1
  223. package/dist/css/feedback.css +2 -1
  224. package/dist/css/filters.css +2 -1
  225. package/dist/css/forms-numeric.css +2 -1
  226. package/dist/css/forms.css +2 -1
  227. package/dist/css/global-search.css +2 -1
  228. package/dist/css/header.css +2 -1
  229. package/dist/css/hover-card.css +2 -1
  230. package/dist/css/input-group.css +2 -1
  231. package/dist/css/item.css +2 -1
  232. package/dist/css/kanban.css +2 -1
  233. package/dist/css/label.css +2 -1
  234. package/dist/css/map.css +2 -1
  235. package/dist/css/media-library.css +2 -1
  236. package/dist/css/mentions.css +2 -1
  237. package/dist/css/menubar.css +2 -1
  238. package/dist/css/navigation-menu.css +2 -1
  239. package/dist/css/navigation.css +2 -1
  240. package/dist/css/navigation2.css +2 -1
  241. package/dist/css/onboarding.css +2 -1
  242. package/dist/css/otp-input.css +2 -1
  243. package/dist/css/overlay.css +2 -1
  244. package/dist/css/overlays.css +2 -1
  245. package/dist/css/page.css +2 -1
  246. package/dist/css/popover-menu.css +2 -1
  247. package/dist/css/popover.css +2 -1
  248. package/dist/css/primitives.css +2 -1
  249. package/dist/css/products.css +2 -1
  250. package/dist/css/qr-code.css +2 -1
  251. package/dist/css/repeaters.css +2 -1
  252. package/dist/css/resizable.css +2 -1
  253. package/dist/css/resource-assignment.css +2 -1
  254. package/dist/css/resource.css +2 -1
  255. package/dist/css/rich-text-editor.css +2 -1
  256. package/dist/css/schema-form.css +2 -1
  257. package/dist/css/sidebar.css +2 -1
  258. package/dist/css/sidebar2.css +2 -1
  259. package/dist/css/skeleton.css +2 -1
  260. package/dist/css/spinner.css +2 -1
  261. package/dist/css/structure.css +2 -1
  262. package/dist/css/sync.css +2 -1
  263. package/dist/css/table.css +2 -1
  264. package/dist/css/table2.css +2 -1
  265. package/dist/css/text-inputs.css +2 -1
  266. package/dist/css/theme-tweaker.css +2 -1
  267. package/dist/css/timeline.css +2 -1
  268. package/dist/css/timelines.css +2 -1
  269. package/dist/css/toaster.css +2 -1
  270. package/dist/css/toggle.css +2 -1
  271. package/dist/css/toolbar.css +2 -1
  272. package/dist/css/tooltip.css +2 -1
  273. package/dist/css/typography.css +2 -1
  274. package/dist/css/upload.css +2 -1
  275. package/dist/css/value-inputs.css +2 -1
  276. package/dist/css/workspace.css +2 -1
  277. package/dist/css-graph.json +1027 -0
  278. package/dist/date-pickers-BwCwKIVM.js +685 -0
  279. package/dist/{dialog-CtFCuTUF.js → dialog-CAnwRNrm.js} +1 -1
  280. package/dist/display-a7AoX_u7.js +664 -0
  281. package/dist/dropdown-menu-Br8kvjrF.js +235 -0
  282. package/dist/empty.js +0 -0
  283. package/dist/features/actions.js +6 -6
  284. package/dist/features/activities.js +219 -216
  285. package/dist/features/ai-chat.js +593 -565
  286. package/dist/features/async-preview.js +105 -286
  287. package/dist/features/combobox.js +328 -314
  288. package/dist/features/comments.js +1 -1
  289. package/dist/features/data-view.js +56 -55
  290. package/dist/features/event-calendar.js +189 -185
  291. package/dist/features/filters.js +1 -1
  292. package/dist/features/global-search.js +259 -260
  293. package/dist/features/kanban.js +39 -37
  294. package/dist/features/map.js +357 -354
  295. package/dist/features/media-library.js +931 -931
  296. package/dist/features/mentions.js +1 -1
  297. package/dist/features/overlays.js +1 -1
  298. package/dist/features/products.js +950 -942
  299. package/dist/features/resource-assignment.js +39 -37
  300. package/dist/features/resource.js +70 -71
  301. package/dist/features/rich-text-editor.js +2 -2
  302. package/dist/features/schema-form.js +342 -338
  303. package/dist/features/sync.js +14 -12
  304. package/dist/features/table.js +1 -1
  305. package/dist/features/theme-tweaker.js +1002 -962
  306. package/dist/feedback-D4qVsKlD.js +430 -0
  307. package/dist/{filters-DOLKRSmb.js → filters-BhsTkWpZ.js} +386 -383
  308. package/dist/forms-C0WeNPFF.js +250 -0
  309. package/dist/forms-numeric-IwQ1ltNf.js +582 -0
  310. package/dist/hooks/use-native-dialog.d.ts +1 -1
  311. package/dist/index.js +2 -2
  312. package/dist/input-group-HS_Z0Ei_.js +119 -0
  313. package/dist/item-M2pmpWXh.js +150 -0
  314. package/dist/{label-DumoMDm6.js → label-HOBXAscw.js} +7 -5
  315. package/dist/layout/app-shell.js +4 -2
  316. package/dist/layout/auth.js +102 -100
  317. package/dist/layout/header.js +190 -180
  318. package/dist/layout/navigation.js +1 -1
  319. package/dist/layout/page.js +18 -16
  320. package/dist/layout/settings.js +2 -2
  321. package/dist/layout/sidebar.js +50 -46
  322. package/dist/layout/workspace.js +71 -69
  323. package/dist/lib/action-presentation.d.ts +3 -3
  324. package/dist/lib/component-vocabulary.d.ts +2 -2
  325. package/dist/lib/css-length.d.ts +2 -0
  326. package/dist/lib/responsive.d.ts +1 -1
  327. package/dist/lib/theming/index.d.ts +1 -0
  328. package/dist/lib/theming/recipes.d.ts +2 -2
  329. package/dist/lib/theming/themes/dense.d.ts +3 -0
  330. package/dist/lib/theming/themes/editorial.d.ts +3 -0
  331. package/dist/lib/theming/themes/index.d.ts +8 -0
  332. package/dist/lib/theming/themes/pair.d.ts +7 -0
  333. package/dist/lib/theming/themes/sharp.d.ts +3 -0
  334. package/dist/lib/theming/themes/soft.d.ts +3 -0
  335. package/dist/lib/theming/themes/types.d.ts +12 -0
  336. package/dist/lib/ui-provider/index.d.ts +1 -1
  337. package/dist/lib/ui-provider/scope.d.ts +5 -8
  338. package/dist/lib/ui-provider/tokens.d.ts +11 -3
  339. package/dist/lib/ui-provider/tokens.generated.d.ts +6 -4
  340. package/dist/lib/ui-provider/types.d.ts +17 -19
  341. package/dist/lib/ui-provider/ui-scope.d.ts +1 -1
  342. package/dist/{mentions-BbsEHlcH.js → mentions-BOxbigwp.js} +113 -111
  343. package/dist/navigation-Bgu7Vc0M.js +622 -0
  344. package/dist/navigation-DiYACqpE.js +216 -0
  345. package/dist/overlay-BuQOl8aP.js +356 -0
  346. package/dist/{overlays-DvVoS3td.js → overlays-1sULyytH.js} +77 -75
  347. package/dist/popover-CA7SP_iz.js +127 -0
  348. package/dist/popover-menu-QXgQeWeG.js +192 -0
  349. package/dist/{primitives-D0bdDozz.js → primitives-BskKlf35.js} +181 -178
  350. package/dist/primitives.js +1 -1
  351. package/dist/profiles/admin.json +6 -36
  352. package/dist/profiles/general.json +6 -96
  353. package/dist/repeaters-CeH20dvr.js +445 -0
  354. package/dist/rich-text-editor-D_Ppm8yh.js +491 -0
  355. package/dist/{sheet-CKcmRbJ9.js → sheet-CJ1-OAla.js} +3 -3
  356. package/dist/sidebar-D8uGqxio.js +421 -0
  357. package/dist/skeleton-BTKNKTdj.js +173 -0
  358. package/dist/spinner-Tc1QCnxM.js +30 -0
  359. package/dist/{structure-D0WGQAP3.js → structure-CynEZ-OY.js} +15 -23
  360. package/dist/style.css +1 -1
  361. package/dist/styles/TOKENS.md +116 -275
  362. package/dist/styles/animation.css +114 -0
  363. package/dist/styles/base.css +7 -6
  364. package/dist/styles/fields.css +45 -63
  365. package/dist/styles/focus.css +12 -0
  366. package/dist/styles/forced-colors.css +11 -10
  367. package/dist/styles/index.css +23 -30
  368. package/dist/styles/map.css +45 -34
  369. package/dist/styles/mentions.css +14 -52
  370. package/dist/styles/overlays.css +7 -7
  371. package/dist/styles/tailwind.css +76 -127
  372. package/dist/styles/targets.css +3 -3
  373. package/dist/styles/theme/colour.css +86 -0
  374. package/dist/styles/theme/density.css +31 -0
  375. package/dist/styles/theme/elevation.css +9 -0
  376. package/dist/styles/theme/layout.css +18 -0
  377. package/dist/styles/theme/motion.css +18 -0
  378. package/dist/styles/theme/shape.css +12 -0
  379. package/dist/styles/theme/size.css +10 -0
  380. package/dist/styles/theme/spacing.css +11 -0
  381. package/dist/styles/theme/typography.css +20 -0
  382. package/dist/styles/tone.css +61 -0
  383. package/dist/table-B7dtIFUx.js +1262 -0
  384. package/dist/table-Ds_eO9av.js +191 -0
  385. package/dist/tailwind.css +76 -127
  386. package/dist/text-inputs-BboE77nZ.js +395 -0
  387. package/dist/theming-C5ygF5uf.js +292 -0
  388. package/dist/theming.js +2 -2
  389. package/dist/{timeline-BdaGRyj-.js → timeline-BR_jNgvz.js} +57 -49
  390. package/dist/{timelines-BB7550mz.js → timelines-DXG1BfIN.js} +69 -67
  391. package/dist/{toaster-bBMgXm8z.js → toaster-CXL8L7Mm.js} +106 -99
  392. package/dist/tokens.json +1027 -636
  393. package/dist/toolbar-DBK-c4yy.js +74 -0
  394. package/dist/tooltip-BPYP-jUm.js +76 -0
  395. package/dist/{typography-BkxEiwQ1.js → typography-DmeR05Er.js} +87 -53
  396. package/dist/{ui-provider-Cmoq6i_D.js → ui-provider-DpzLUD12.js} +117 -69
  397. package/dist/ui-provider.js +1 -1
  398. package/dist/upload-CYuoJykZ.js +968 -0
  399. package/dist/use-async-preview-BFwf9ElY.js +188 -0
  400. package/dist/value-inputs-ng8aVJJZ.js +728 -0
  401. package/docs/README.md +13 -3
  402. package/docs/build/browser-composition-fixture.ts +28 -0
  403. package/docs/build/recipes.md +11484 -10723
  404. package/docs/generated/component-index.json +9809 -9169
  405. package/docs/generated/components/INDEX.md +5 -5
  406. package/docs/generated/components/base--accordion.md +51 -2
  407. package/docs/generated/components/base--action-menu.md +14 -15
  408. package/docs/generated/components/base--alert-dialog.md +3 -4
  409. package/docs/generated/components/base--aspect-ratio.md +3 -4
  410. package/docs/generated/components/base--avatar.md +7 -7
  411. package/docs/generated/components/base--badge.md +159 -27
  412. package/docs/generated/components/base--batch-action-bar.md +6 -7
  413. package/docs/generated/components/base--buttons.md +151 -47
  414. package/docs/generated/components/base--cards.md +107 -14
  415. package/docs/generated/components/base--carousel.md +1 -2
  416. package/docs/generated/components/base--chart.md +44 -8
  417. package/docs/generated/components/base--choice-inputs.md +10 -11
  418. package/docs/generated/components/base--combobox.md +3 -4
  419. package/docs/generated/components/base--command.md +6 -6
  420. package/docs/generated/components/base--context-menu.md +1 -2
  421. package/docs/generated/components/base--copyable.md +6 -7
  422. package/docs/generated/components/base--date-pickers.md +6 -7
  423. package/docs/generated/components/base--dialog.md +6 -7
  424. package/docs/generated/components/base--direction.md +1 -1
  425. package/docs/generated/components/base--display.md +234 -54
  426. package/docs/generated/components/base--dropdown-menu.md +6 -7
  427. package/docs/generated/components/base--feedback.md +71 -18
  428. package/docs/generated/components/base--forms-numeric.md +6 -7
  429. package/docs/generated/components/base--forms.md +84 -14
  430. package/docs/generated/components/base--hover-card.md +3 -4
  431. package/docs/generated/components/base--input-group.md +27 -30
  432. package/docs/generated/components/base--item.md +8 -9
  433. package/docs/generated/components/base--label.md +2 -3
  434. package/docs/generated/components/base--menubar.md +2 -4
  435. package/docs/generated/components/base--navigation-menu.md +2 -3
  436. package/docs/generated/components/base--navigation.md +2 -3
  437. package/docs/generated/components/base--otp-input.md +3 -4
  438. package/docs/generated/components/base--overlay.md +56 -47
  439. package/docs/generated/components/base--popover-menu.md +7 -8
  440. package/docs/generated/components/base--popover.md +9 -10
  441. package/docs/generated/components/base--qr-code.md +7 -8
  442. package/docs/generated/components/base--repeaters.md +6 -7
  443. package/docs/generated/components/base--resizable.md +2 -3
  444. package/docs/generated/components/base--sheet.md +12 -13
  445. package/docs/generated/components/base--sidebar.md +9 -11
  446. package/docs/generated/components/base--skeleton.md +6 -7
  447. package/docs/generated/components/base--slot.md +1 -1
  448. package/docs/generated/components/base--spinner.md +5 -7
  449. package/docs/generated/components/base--structure.md +320 -70
  450. package/docs/generated/components/base--table.md +61 -3
  451. package/docs/generated/components/base--text-inputs.md +17 -18
  452. package/docs/generated/components/base--timeline.md +45 -4
  453. package/docs/generated/components/base--toaster.md +43 -12
  454. package/docs/generated/components/base--toggle.md +11 -12
  455. package/docs/generated/components/base--toolbar.md +7 -8
  456. package/docs/generated/components/base--tooltip.md +5 -6
  457. package/docs/generated/components/base--typography.md +317 -32
  458. package/docs/generated/components/base--upload.md +8 -9
  459. package/docs/generated/components/base--value-inputs.md +9 -38
  460. package/docs/generated/components/{admin--patterns--access.md → blocks--admin--access.md} +15 -6
  461. package/docs/generated/components/{admin--patterns--commerce.md → blocks--admin--commerce.md} +40 -41
  462. package/docs/generated/components/{patterns--analytics.md → blocks--analytics.md} +57 -14
  463. package/docs/generated/components/{patterns--onboarding.md → blocks--onboarding.md} +6 -7
  464. package/docs/generated/components/{patterns--timelines.md → blocks--timelines.md} +6 -7
  465. package/docs/generated/components/features--actions.md +8 -18
  466. package/docs/generated/components/features--activities.md +31 -32
  467. package/docs/generated/components/features--ai-chat.md +15 -15
  468. package/docs/generated/components/features--async-preview.md +5 -6
  469. package/docs/generated/components/features--combobox.md +71 -5
  470. package/docs/generated/components/features--comments.md +0 -1
  471. package/docs/generated/components/features--data-view.md +63 -8
  472. package/docs/generated/components/features--event-calendar.md +1 -2
  473. package/docs/generated/components/features--filters.md +11 -2
  474. package/docs/generated/components/features--global-search.md +1 -2
  475. package/docs/generated/components/features--kanban.md +1 -2
  476. package/docs/generated/components/features--map.md +1 -2
  477. package/docs/generated/components/features--media-library.md +105 -38
  478. package/docs/generated/components/features--mentions.md +7 -7
  479. package/docs/generated/components/features--overlays.md +75 -22
  480. package/docs/generated/components/features--products.md +10 -11
  481. package/docs/generated/components/features--resource-assignment.md +2 -3
  482. package/docs/generated/components/features--resource.md +3 -4
  483. package/docs/generated/components/features--rich-text-editor.md +42 -13
  484. package/docs/generated/components/features--schema-form.md +1 -2
  485. package/docs/generated/components/features--sync.md +2 -3
  486. package/docs/generated/components/features--table.md +162 -12
  487. package/docs/generated/components/features--theme-tweaker.md +30 -15
  488. package/docs/generated/components/forms.md +2 -2
  489. package/docs/generated/components/layout--app-shell.md +41 -11
  490. package/docs/generated/components/layout--auth.md +8 -9
  491. package/docs/generated/components/layout--containers.md +40 -1
  492. package/docs/generated/components/layout--header.md +2 -3
  493. package/docs/generated/components/layout--navigation.md +0 -1
  494. package/docs/generated/components/layout--page.md +33 -5
  495. package/docs/generated/components/layout--settings.md +0 -1
  496. package/docs/generated/components/layout--sidebar.md +47 -7
  497. package/docs/generated/components/layout--workspace.md +3 -4
  498. package/docs/generated/components/primitives.md +128 -17
  499. package/docs/generated/components/theming.md +147 -4
  500. package/docs/generated/components/ui-provider.md +96 -78
  501. package/docs/generated/composition-ladder.md +8 -8
  502. package/docs/generated/consumer-contract.json +5736 -0
  503. package/docs/generated/imports.md +104 -104
  504. package/docs/generated/migration-broad-imports.json +267 -90
  505. package/docs/generated/migration-broad-imports.md +266 -101
  506. package/docs/generated/migration-codemod.json +365 -70
  507. package/docs/generated/migration.md +665 -95
  508. package/docs/generated/profiles.md +27 -27
  509. package/docs/generated/public-api.md +104 -102
  510. package/docs/generated/recipes.json +755 -810
  511. package/docs/generated/workflows/communications-overview/analytics/communications-reference.tsx +19 -0
  512. package/docs/generated/workflows/index.json +691 -0
  513. package/docs/generated/workflows/media-picking/media-library/media-picking-reference.tsx +63 -0
  514. package/docs/generated/workflows/media-picking/media-library/reference-data.ts +3 -0
  515. package/docs/generated/workflows/multi-section-form/form-workflow/multi-section-reference.tsx +46 -0
  516. package/docs/generated/workflows/nested-action-flow/action-overlays/nested-action-reference.tsx +39 -0
  517. package/docs/generated/workflows/record-detail/page-layout/record-detail-reference.tsx +24 -0
  518. package/docs/generated/workflows/resource-index/data-view/resource-index-reference.tsx +51 -0
  519. package/docs/generated/workflows/scoped-resource-selection/combobox/scoped-resource-reference.tsx +50 -0
  520. package/docs/generated/workflows/website-content-editor/media-library/reference-data.ts +3 -0
  521. package/docs/generated/workflows/website-content-editor/rich-text-editor/website-content-reference.tsx +33 -0
  522. package/docs/generated/workflows/workspace-navigation/app-shell/workspace-navigation-reference.tsx +26 -0
  523. package/docs/learn/api-compatibility.md +5 -4
  524. package/docs/learn/blocks.md +123 -0
  525. package/docs/learn/composition.md +100 -19
  526. package/docs/learn/forms.md +23 -3
  527. package/docs/learn/framework-wiring.md +41 -13
  528. package/docs/learn/i18n.md +4 -2
  529. package/docs/learn/installation.md +60 -31
  530. package/docs/learn/migration.md +156 -5
  531. package/docs/learn/provider-and-scoping.md +37 -25
  532. package/docs/learn/reference-workflows.md +43 -0
  533. package/docs/learn/structure-and-spacing.md +147 -0
  534. package/docs/learn/theming.md +174 -131
  535. package/docs/learn/troubleshooting.md +88 -30
  536. package/docs/learn/verification.md +60 -5
  537. package/package.json +42 -473
  538. package/scripts/consumer/codemod.mjs +50 -32
  539. package/scripts/consumer/contract-reader.mjs +42 -0
  540. package/scripts/consumer/css-scan.mjs +51 -0
  541. package/scripts/consumer/diagnose.mjs +136 -0
  542. package/scripts/consumer/find-component.mjs +30 -17
  543. package/scripts/consumer/install-skill.mjs +93 -11
  544. package/src/styles/TOKENS.md +116 -275
  545. package/dist/accordion-6YPJ9XRO.js +0 -135
  546. package/dist/admin/patterns/access.css +0 -15
  547. package/dist/admin/patterns/commerce.css +0 -29
  548. package/dist/admin/patterns/commerce.js +0 -2493
  549. package/dist/avatar-CS7zow2q.js +0 -85
  550. package/dist/badge-CxOuTfVr.js +0 -63
  551. package/dist/base/accordion.css +0 -3
  552. package/dist/base/action-menu.css +0 -6
  553. package/dist/base/alert-dialog.css +0 -4
  554. package/dist/base/aspect-ratio.css +0 -2
  555. package/dist/base/avatar.css +0 -4
  556. package/dist/base/badge.css +0 -2
  557. package/dist/base/batch-action-bar.css +0 -5
  558. package/dist/base/buttons.css +0 -4
  559. package/dist/base/cards.css +0 -13
  560. package/dist/base/carousel.css +0 -5
  561. package/dist/base/chart.css +0 -2
  562. package/dist/base/choice-inputs.css +0 -10
  563. package/dist/base/combobox.css +0 -3
  564. package/dist/base/command.css +0 -9
  565. package/dist/base/context-menu.css +0 -2
  566. package/dist/base/copyable.css +0 -6
  567. package/dist/base/date-pickers.css +0 -11
  568. package/dist/base/dialog.css +0 -4
  569. package/dist/base/display.css +0 -8
  570. package/dist/base/dropdown-menu.css +0 -2
  571. package/dist/base/feedback.css +0 -5
  572. package/dist/base/forms-numeric.css +0 -12
  573. package/dist/base/forms.css +0 -14
  574. package/dist/base/hover-card.css +0 -2
  575. package/dist/base/input-group.css +0 -6
  576. package/dist/base/item.css +0 -9
  577. package/dist/base/label.css +0 -3
  578. package/dist/base/menubar.css +0 -2
  579. package/dist/base/navigation-menu.css +0 -2
  580. package/dist/base/navigation.css +0 -12
  581. package/dist/base/otp-input.css +0 -9
  582. package/dist/base/overlay.css +0 -4
  583. package/dist/base/popover-menu.css +0 -11
  584. package/dist/base/popover.css +0 -3
  585. package/dist/base/qr-code.css +0 -2
  586. package/dist/base/repeaters.css +0 -18
  587. package/dist/base/resizable.css +0 -2
  588. package/dist/base/sheet.css +0 -4
  589. package/dist/base/sidebar.css +0 -12
  590. package/dist/base/skeleton.css +0 -9
  591. package/dist/base/spinner.css +0 -2
  592. package/dist/base/structure.css +0 -2
  593. package/dist/base/table.css +0 -3
  594. package/dist/base/text-inputs.css +0 -2
  595. package/dist/base/timeline.css +0 -9
  596. package/dist/base/toaster.css +0 -2
  597. package/dist/base/toggle.css +0 -2
  598. package/dist/base/toolbar.css +0 -5
  599. package/dist/base/tooltip.css +0 -2
  600. package/dist/base/typography.css +0 -2
  601. package/dist/base/upload.css +0 -10
  602. package/dist/base/value-inputs.css +0 -14
  603. package/dist/buttons-CqXKWty3.js +0 -179
  604. package/dist/cards-C6Ulbkw7.js +0 -271
  605. package/dist/chart-nomhJ87z.js +0 -193
  606. package/dist/choice-inputs-OUDn0kQw.js +0 -680
  607. package/dist/combobox-C8oP92bT.js +0 -266
  608. package/dist/command-Bp3B6pUu.js +0 -143
  609. package/dist/comments-CAnDlyXO.js +0 -1438
  610. package/dist/components/admin/patterns/index.d.ts +0 -2
  611. package/dist/components/features/rich-text-editor/exec-command-engine.d.ts +0 -2
  612. package/dist/components/patterns/index.d.ts +0 -3
  613. package/dist/css/styles.css +0 -1
  614. package/dist/date-pickers-DOwIT-Nk.js +0 -661
  615. package/dist/display-B3Q17h5z.js +0 -645
  616. package/dist/dropdown-menu-TyNLCLML.js +0 -223
  617. package/dist/features/actions.css +0 -11
  618. package/dist/features/activities.css +0 -25
  619. package/dist/features/ai-chat.css +0 -14
  620. package/dist/features/async-preview.css +0 -10
  621. package/dist/features/combobox.css +0 -12
  622. package/dist/features/comments.css +0 -24
  623. package/dist/features/data-view.css +0 -31
  624. package/dist/features/event-calendar.css +0 -17
  625. package/dist/features/filters.css +0 -24
  626. package/dist/features/global-search.css +0 -19
  627. package/dist/features/kanban.css +0 -7
  628. package/dist/features/map.css +0 -15
  629. package/dist/features/media-library.css +0 -27
  630. package/dist/features/mentions.css +0 -17
  631. package/dist/features/overlays.css +0 -11
  632. package/dist/features/products.css +0 -29
  633. package/dist/features/resource-assignment.css +0 -14
  634. package/dist/features/resource.css +0 -15
  635. package/dist/features/rich-text-editor.css +0 -8
  636. package/dist/features/schema-form.css +0 -22
  637. package/dist/features/sync.css +0 -11
  638. package/dist/features/table.css +0 -20
  639. package/dist/features/theme-tweaker.css +0 -27
  640. package/dist/feedback-DRerHGuV.js +0 -469
  641. package/dist/forms-CPrGGif_.js +0 -242
  642. package/dist/forms-numeric-CPVsL7Vf.js +0 -569
  643. package/dist/index.css +0 -3
  644. package/dist/input-group-BYe0rhoB.js +0 -126
  645. package/dist/item-B3yQ26as.js +0 -146
  646. package/dist/layout/app-shell.css +0 -13
  647. package/dist/layout/auth.css +0 -14
  648. package/dist/layout/containers.css +0 -2
  649. package/dist/layout/header.css +0 -20
  650. package/dist/layout/navigation.css +0 -11
  651. package/dist/layout/page.css +0 -15
  652. package/dist/layout/settings.css +0 -16
  653. package/dist/layout/sidebar.css +0 -16
  654. package/dist/layout/workspace.css +0 -15
  655. package/dist/navigation-CsqTA16F.js +0 -614
  656. package/dist/navigation-DzxzPuwg.js +0 -202
  657. package/dist/overlay-WQOsLd69.js +0 -345
  658. package/dist/patterns/analytics.css +0 -15
  659. package/dist/patterns/onboarding.css +0 -11
  660. package/dist/patterns/timelines.css +0 -11
  661. package/dist/popover-DriLnIFc.js +0 -123
  662. package/dist/popover-menu-C2UCMAe7.js +0 -189
  663. package/dist/primitives.css +0 -3
  664. package/dist/repeaters-DuP1N0nw.js +0 -438
  665. package/dist/rich-text-editor-BQXFe9oN.js +0 -595
  666. package/dist/sidebar-D0N6ckJL.js +0 -412
  667. package/dist/skeleton-DGR9df28.js +0 -172
  668. package/dist/spinner-CUAVFecI.js +0 -52
  669. package/dist/styles/FACTORS.md +0 -36
  670. package/dist/styles/SCOPES.md +0 -86
  671. package/dist/styles/themes/default.css +0 -164
  672. package/dist/styles/theming/animation.css +0 -143
  673. package/dist/styles/theming/colors.css +0 -97
  674. package/dist/styles/theming/feedback.css +0 -17
  675. package/dist/styles/theming/field.css +0 -21
  676. package/dist/styles/theming/focus.css +0 -88
  677. package/dist/styles/theming/layers.css +0 -13
  678. package/dist/styles/theming/layout.css +0 -21
  679. package/dist/styles/theming/motion.css +0 -42
  680. package/dist/styles/theming/overlay.css +0 -52
  681. package/dist/styles/theming/sizing.css +0 -118
  682. package/dist/styles/theming/text.css +0 -30
  683. package/dist/styles/theming/typography.css +0 -26
  684. package/dist/styles/tokens/components.css +0 -22
  685. package/dist/styles/tokens/foundation.css +0 -80
  686. package/dist/styles/tokens/layout.css +0 -19
  687. package/dist/styles/tokens/palette.css +0 -88
  688. package/dist/styles/tokens/primitives.css +0 -18
  689. package/dist/styles/tokens/states.css +0 -77
  690. package/dist/table-BC4qqsUb.js +0 -180
  691. package/dist/table-BHDpjajL.js +0 -982
  692. package/dist/text-inputs-DF_lD7pA.js +0 -385
  693. package/dist/theming-D6KRU7hO.js +0 -104
  694. package/dist/toolbar-DWRywF0R.js +0 -68
  695. package/dist/tooltip-t1VQQ2tZ.js +0 -73
  696. package/dist/upload-B38YZeFJ.js +0 -938
  697. package/dist/value-inputs-Q4ymjXlV.js +0 -716
  698. package/src/styles/FACTORS.md +0 -36
  699. package/src/styles/SCOPES.md +0 -86
  700. /package/dist/components/{admin/patterns → blocks/admin}/access/admin.strings.d.ts +0 -0
  701. /package/dist/components/{admin/patterns → blocks/admin}/access/credential-list.d.ts +0 -0
  702. /package/dist/components/{admin/patterns → blocks/admin}/access/index.d.ts +0 -0
  703. /package/dist/components/{admin/patterns → blocks/admin}/access/role-permissions.d.ts +0 -0
  704. /package/dist/components/{admin/patterns → blocks/admin}/access/sensitive-action.d.ts +0 -0
  705. /package/dist/components/{admin/patterns → blocks/admin}/commerce/account.d.ts +0 -0
  706. /package/dist/components/{admin/patterns → blocks/admin}/commerce/address-lines.d.ts +0 -0
  707. /package/dist/components/{admin/patterns → blocks/admin}/commerce/booking.d.ts +0 -0
  708. /package/dist/components/{admin/patterns → blocks/admin}/commerce/cart.d.ts +0 -0
  709. /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.strings.d.ts +0 -0
  710. /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.types.d.ts +0 -0
  711. /package/dist/components/{admin/patterns → blocks/admin}/commerce/format-amount.d.ts +0 -0
  712. /package/dist/components/{admin/patterns → blocks/admin}/commerce/index.d.ts +0 -0
  713. /package/dist/components/{admin/patterns → blocks/admin}/commerce/inventory-section.d.ts +0 -0
  714. /package/dist/components/{admin/patterns → blocks/admin}/commerce/invoice.d.ts +0 -0
  715. /package/dist/components/{admin/patterns → blocks/admin}/commerce/loyalty.d.ts +0 -0
  716. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-customer.d.ts +0 -0
  717. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-detail.d.ts +0 -0
  718. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-line-item.d.ts +0 -0
  719. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-transactions.d.ts +0 -0
  720. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order.d.ts +0 -0
  721. /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-listing.d.ts +0 -0
  722. /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-score.d.ts +0 -0
  723. /package/dist/components/{admin/patterns → blocks/admin}/commerce/summary-panel.d.ts +0 -0
  724. /package/dist/components/{patterns → blocks}/analytics/activity-heatmap.d.ts +0 -0
  725. /package/dist/components/{patterns → blocks}/analytics/analytics.types.d.ts +0 -0
  726. /package/dist/components/{patterns → blocks}/analytics/chart-card.d.ts +0 -0
  727. /package/dist/components/{patterns → blocks}/analytics/format-metric-value.d.ts +0 -0
  728. /package/dist/components/{patterns → blocks}/analytics/index.d.ts +0 -0
  729. /package/dist/components/{patterns → blocks}/analytics/metric-bar.d.ts +0 -0
  730. /package/dist/components/{patterns → blocks}/analytics/metric-comparison.d.ts +0 -0
  731. /package/dist/components/{patterns → blocks}/analytics/metric-gradient.d.ts +0 -0
  732. /package/dist/components/{patterns → blocks}/analytics/metric-grid.d.ts +0 -0
  733. /package/dist/components/{patterns → blocks}/analytics/metric-micro-grid.d.ts +0 -0
  734. /package/dist/components/{patterns → blocks}/analytics/metric-skeleton.d.ts +0 -0
  735. /package/dist/components/{patterns → blocks}/analytics/metric-trend-chip.d.ts +0 -0
  736. /package/dist/components/{patterns → blocks}/analytics/metric.d.ts +0 -0
  737. /package/dist/components/{patterns → blocks}/analytics/time-ruler.d.ts +0 -0
  738. /package/dist/components/{patterns → blocks}/onboarding/checklist.d.ts +0 -0
  739. /package/dist/components/{patterns → blocks}/onboarding/index.d.ts +0 -0
  740. /package/dist/components/{patterns → blocks}/onboarding/onboarding.strings.d.ts +0 -0
  741. /package/dist/components/{patterns → blocks}/timelines/changelog-timeline.d.ts +0 -0
  742. /package/dist/components/{patterns → blocks}/timelines/index.d.ts +0 -0
  743. /package/dist/components/{patterns → blocks}/timelines/milestones-timeline.d.ts +0 -0
  744. /package/dist/components/{patterns → blocks}/timelines/steps.d.ts +0 -0
  745. /package/dist/components/{patterns → blocks}/timelines/timelines.strings.d.ts +0 -0
  746. /package/dist/styles/{theming/breakpoints.css → breakpoints.css} +0 -0
@@ -1,44 +1,111 @@
1
1
  "use client";
2
- import { t as e } from "../cx--CBrhWH0.js";
3
- import { a as t, o as n } from "../typography-BkxEiwQ1.js";
4
- import { _ as r, a as i, h as a, p as o, v as s } from "../feedback-DRerHGuV.js";
5
- import { S as c, x as l } from "../ui-provider-Cmoq6i_D.js";
6
- import { c as u } from "../buttons-CqXKWty3.js";
7
- import { d, l as f } from "../display-B3Q17h5z.js";
8
- import { i as ee, o as p } from "../structure-D0WGQAP3.js";
9
- import { B as m } from "../primitives-D0bdDozz.js";
10
- import { t as h } from "../badge-CxOuTfVr.js";
11
- import { c as te, i as g, r as ne, t as _, u as re } from "../item-B3yQ26as.js";
12
- import { u as v } from "../forms-CPrGGif_.js";
13
- import { t as ie } from "../strings-Co9_qArR.js";
14
- import { l as y } from "../text-inputs-DF_lD7pA.js";
15
- import { d as ae, f as oe, p as se, u as ce } from "../navigation-CsqTA16F.js";
16
- import { n as le, s as b } from "../choice-inputs-OUDn0kQw.js";
17
- import { l as x, o as ue } from "../value-inputs-Q4ymjXlV.js";
18
- import { t as de } from "../accordion-6YPJ9XRO.js";
19
- import { n as fe } from "../overlay-WQOsLd69.js";
20
- import { u as pe } from "../forms-numeric-CPVsL7Vf.js";
21
- import { i as me, r as he } from "../overlays-DvVoS3td.js";
22
- import { n as ge, r as _e, t as ve } from "../theming-D6KRU7hO.js";
23
- import { CheckCircle2Icon as ye, CopyIcon as be, DownloadIcon as xe, InfoIcon as Se, LayoutGridIcon as Ce, MoonIcon as we, PaletteIcon as S, RotateCcwIcon as Te, SearchIcon as Ee, Settings2Icon as De, ShapesIcon as Oe, ShieldCheckIcon as ke, SunIcon as Ae, TypeIcon as je } from "lucide-react";
24
- import { forwardRef as Me, useEffect as Ne, useId as C, useImperativeHandle as Pe, useMemo as w, useRef as Fe, useState as T } from "react";
25
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
26
- //#region src/components/features/theme-tweaker/theme-tweaker.utils.ts
27
- var O = ":is(:root, [data-ui-scope], [data-density], [data-theme])", Ie = {
28
- shared: ":root,\n[data-ui-scope],\n[data-density],\n[data-theme],\n.light,\n.dark",
29
- light: [
30
- ".light",
31
- "[data-theme=\"light\"]",
32
- ":is(.light, [data-theme=\"light\"]) :is([data-ui-scope], [data-density]):not(.dark, [data-theme=\"dark\"])"
33
- ].join(",\n"),
34
- dark: [
35
- ".dark",
36
- "[data-theme=\"dark\"]",
37
- ":is(.dark, [data-theme=\"dark\"]) :is([data-ui-scope], [data-density]):not(.light, [data-theme=\"light\"])"
38
- ].join(",\n"),
39
- systemLight: `${O}:not(.dark, [data-theme="dark"], :is(.dark, [data-theme="dark"]) *)`,
40
- systemDark: `${O}:not(.light, [data-theme="light"], :is(.light, [data-theme="light"]) *)`
41
- }, k = /^--[a-z][a-z0-9-]*$/i, A = /[;{}]/;
2
+ import "#core.css";
3
+ import { c as e, o as t, s as n } from "../typography-DmeR05Er.js";
4
+ import { t as r } from "../cx--CBrhWH0.js";
5
+ import { S as i, x as a } from "../ui-provider-DpzLUD12.js";
6
+ import { t as o } from "../accordion-CHuzMmWL.js";
7
+ import { c as s } from "../buttons-BX2JfL5X.js";
8
+ import { n as c } from "../overlay-BuQOl8aP.js";
9
+ import { i as l, o as u } from "../structure-CynEZ-OY.js";
10
+ import { t as d } from "../strings-Co9_qArR.js";
11
+ import { B as ee } from "../primitives-BskKlf35.js";
12
+ import { t as f } from "../badge-VlJVZjdm.js";
13
+ import { _ as p, a as m, h, p as te, v as ne } from "../feedback-D4qVsKlD.js";
14
+ import { d as re, l as g } from "../display-a7AoX_u7.js";
15
+ import { n as ie, s as _ } from "../choice-inputs-NwRxvmZN.js";
16
+ import { l as v } from "../text-inputs-BboE77nZ.js";
17
+ import { u as y } from "../forms-C0WeNPFF.js";
18
+ import { u as ae } from "../forms-numeric-IwQ1ltNf.js";
19
+ import { c as b, i as oe, r as se, t as ce, u as le } from "../item-M2pmpWXh.js";
20
+ import { d as ue, f as de, p as fe, u as pe } from "../navigation-Bgu7Vc0M.js";
21
+ import { l as x, o as me } from "../value-inputs-ng8aVJJZ.js";
22
+ import { i as he, r as ge } from "../overlays-1sULyytH.js";
23
+ import { i as _e, n as ve, r as ye } from "../theming-C5ygF5uf.js";
24
+ import { CheckCircle2Icon as be, CopyIcon as xe, DownloadIcon as Se, InfoIcon as Ce, LayoutGridIcon as S, MoonIcon as we, PaletteIcon as C, RotateCcwIcon as Te, SearchIcon as Ee, Settings2Icon as De, ShapesIcon as Oe, ShieldCheckIcon as ke, SunIcon as Ae, TypeIcon as je } from "lucide-react";
25
+ import { forwardRef as w, useEffect as Me, useId as T, useImperativeHandle as Ne, useMemo as E, useRef as Pe, useState as D } from "react";
26
+ import { jsx as O, jsxs as k } from "react/jsx-runtime";
27
+ import "#css/theme-tweaker.css";
28
+ //#region src/lib/ui-provider/tokens.generated.ts
29
+ var Fe = {
30
+ "--accent": "light-dark(oklch(0.97 0 0), oklch(0.33 0 0))",
31
+ "--accent-foreground": "light-dark(oklch(0.205 0 0), oklch(0.985 0 0))",
32
+ "--background": "light-dark(oklch(1 0 0), oklch(0.205 0 0))",
33
+ "--border": "light-dark(oklch(0.922 0 0), oklch(1 0 0 / 10%))",
34
+ "--border-width": "1px",
35
+ "--card": "light-dark(oklch(1 0 0), oklch(0.25 0 0))",
36
+ "--card-foreground": "light-dark(oklch(0.28 0 0), oklch(0.985 0 0))",
37
+ "--chart-1": "light-dark(oklch(0.56 0.11 167), oklch(0.74 0.13 167))",
38
+ "--chart-2": "light-dark(oklch(0.56 0.11 230), oklch(0.72 0.14 230))",
39
+ "--chart-3": "light-dark(oklch(0.56 0.17 285), oklch(0.72 0.15 285))",
40
+ "--chart-4": "light-dark(oklch(0.58 0.16 330), oklch(0.74 0.15 330))",
41
+ "--chart-5": "light-dark(oklch(0.6 0.14 60), oklch(0.78 0.14 60))",
42
+ "--content-width": "64rem",
43
+ "--control-height": "2.125rem",
44
+ "--control-height-sm": "1.875rem",
45
+ "--destructive": "light-dark(oklch(0.5 0.245 27.325), oklch(0.74 0.158 22.216))",
46
+ "--destructive-foreground": "light-dark(oklch(0.99 0 0), oklch(0.18 0.05 22))",
47
+ "--disabled-opacity": "0.5",
48
+ "--duration": "0ms",
49
+ "--duration-fast": "0ms",
50
+ "--ease": "cubic-bezier(0.23, 1, 0.32, 1)",
51
+ "--font-heading": "initial",
52
+ "--font-mono": "'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace",
53
+ "--font-sans": "'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif",
54
+ "--foreground": "light-dark(oklch(0.28 0 0), oklch(0.985 0 0))",
55
+ "--gap": "1rem",
56
+ "--gap-sm": "0.5rem",
57
+ "--header-height": "3.5rem",
58
+ "--icon-size": "1rem",
59
+ "--icon-size-sm": "0.75rem",
60
+ "--info": "light-dark(oklch(0.45 0.214 276.966), oklch(0.72 0.14 250))",
61
+ "--info-foreground": "light-dark(oklch(0.99 0 0), oklch(0.18 0.05 250))",
62
+ "--input": "light-dark(oklch(0.73 0 0), oklch(1 0 0 / 28%))",
63
+ "--link": "light-dark(oklch(0.462 0.1776 259.13), oklch(0.72 0.12 259.13))",
64
+ "--muted": "light-dark(oklch(0.97 0 0), oklch(0.23 0 0))",
65
+ "--muted-foreground": "light-dark(oklch(0.5 0 0), oklch(0.708 0 0))",
66
+ "--overlay-backdrop": "oklch(0 0 0 / 0.5)",
67
+ "--overlay-backdrop-filter": "none",
68
+ "--padding": "1rem",
69
+ "--padding-sm": "0.5rem",
70
+ "--popover": "light-dark(oklch(1 0 0), oklch(0.28 0 0))",
71
+ "--popover-foreground": "light-dark(oklch(0.28 0 0), oklch(0.985 0 0))",
72
+ "--primary": "light-dark(oklch(0.45 0.124 167.35), oklch(0.7 0.13 167.35))",
73
+ "--primary-foreground": "light-dark(oklch(0.985 0 0), oklch(0.18 0.03 167.35))",
74
+ "--radius": "1rem",
75
+ "--radius-pill": "999px",
76
+ "--radius-sm": "0.5rem",
77
+ "--ring": "light-dark(oklch(0.58 0 0), oklch(0.62 0 0))",
78
+ "--secondary": "light-dark(oklch(0.97 0 0), oklch(0.25 0 0))",
79
+ "--secondary-foreground": "light-dark(oklch(0.205 0 0), oklch(0.985 0 0))",
80
+ "--shadow": "0 1px 2px 0 oklch(0 0 0 / 6%), 0 1px 1px -1px oklch(0 0 0 / 6%)",
81
+ "--shadow-lg": "0 4px 8px -2px oklch(0 0 0 / 10%), 0 12px 24px -12px oklch(0 0 0 / 18%)",
82
+ "--sidebar": "light-dark(oklch(0.96 0 0), oklch(0.16 0 0))",
83
+ "--sidebar-accent": "light-dark(oklch(0.98 0 0), oklch(0.28 0 0))",
84
+ "--sidebar-accent-foreground": "light-dark(oklch(0.205 0 0), oklch(0.985 0 0))",
85
+ "--sidebar-border": "light-dark(oklch(0.922 0 0), oklch(1 0 0 / 10%))",
86
+ "--sidebar-foreground": "light-dark(oklch(0.28 0 0), oklch(0.985 0 0))",
87
+ "--sidebar-ring": "light-dark(oklch(0.58 0 0), oklch(0.62 0 0))",
88
+ "--sidebar-width": "16rem",
89
+ "--success": "light-dark(oklch(0.4 0.16 145), oklch(0.76 0.16 145))",
90
+ "--success-foreground": "light-dark(oklch(0.985 0 0), oklch(0.18 0.05 145))",
91
+ "--text-2xl": "1.5rem",
92
+ "--text-base": "1rem",
93
+ "--text-lg": "1.125rem",
94
+ "--text-pxs": "0.8125rem",
95
+ "--text-scale": "1",
96
+ "--text-sm": "0.875rem",
97
+ "--text-xl": "1.25rem",
98
+ "--text-xs": "0.75rem",
99
+ "--tint": "10%",
100
+ "--tint-strong": "30%",
101
+ "--warning": "light-dark(oklch(0.72 0.16 90), oklch(0.82 0.16 90))",
102
+ "--warning-foreground": "light-dark(oklch(0.2 0.05 80), oklch(0.18 0.05 80))",
103
+ "--z-docked": "20",
104
+ "--z-popover": "50",
105
+ "--z-sticky": "10",
106
+ "--z-toast": "100",
107
+ "--z-tooltip": "1000"
108
+ }, A = { shared: ":root" }, Ie = /^--[a-z][a-z0-9-]*$/i, Le = /[;{}]/;
42
109
  function j(e = {}) {
43
110
  return {
44
111
  mode: e.mode ?? "light",
@@ -47,12 +114,23 @@ function j(e = {}) {
47
114
  dark: { ...e.dark ?? {} }
48
115
  };
49
116
  }
50
- function Le(e) {
51
- return k.test(e);
117
+ function M(e, t = "light") {
118
+ let n = j({ mode: t });
119
+ e.radius && (n.shared["--radius"] = e.radius), e.radiusSm && (n.shared["--radius-sm"] = e.radiusSm);
120
+ for (let [t, r] of Object.entries(e.colors ?? {})) {
121
+ if (!r) continue;
122
+ let e = `--${t}`, [i, a] = I(r) ?? [r, r];
123
+ n.light[e] = i, n.dark[e] = a;
124
+ }
125
+ for (let [t, r] of Object.entries(e.vars ?? {})) n.shared[`--${t}`] = r;
126
+ return n;
127
+ }
128
+ function N(e) {
129
+ return Ie.test(e);
52
130
  }
53
- function M(e, t = !0) {
131
+ function P(e, t = !0) {
54
132
  return Object.entries(e).filter((e) => typeof e[1] == "string" && e[1].trim().length > 0).flatMap(([e, n]) => {
55
- if (!Le(e)) {
133
+ if (!N(e)) {
56
134
  if (!t) return [];
57
135
  throw TypeError(`Invalid CSS variable name: ${e}`);
58
136
  }
@@ -60,97 +138,106 @@ function M(e, t = !0) {
60
138
  let t = e.charCodeAt(0);
61
139
  return t < 32 || t === 127;
62
140
  });
63
- if (A.test(r) || i) {
141
+ if (Le.test(r) || i) {
64
142
  if (!t) return [];
65
143
  throw TypeError(`Unsafe CSS value for ${e}.`);
66
144
  }
67
145
  return [[e, r]];
68
146
  }).sort(([e], [t]) => e.localeCompare(t));
69
147
  }
70
- function N(e, t) {
148
+ function F(e, t) {
71
149
  let n = e.trim();
72
- if (n.length === 0 || A.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
150
+ if (n.length === 0 || Le.test(n)) throw TypeError(`Invalid ${t} theme selector.`);
151
+ return n;
152
+ }
153
+ function I(e) {
154
+ let t = e.trim();
155
+ if (!t.startsWith("light-dark(") || !t.endsWith(")")) return null;
156
+ let n = t.slice(11, -1), r = 0;
157
+ for (let e = 0; e < n.length; e++) {
158
+ let t = n[e];
159
+ if (t === "(") r++;
160
+ else if (t === ")") r--;
161
+ else if (t === "," && r === 0) return [n.slice(0, e).trim(), n.slice(e + 1).trim()];
162
+ }
163
+ return null;
164
+ }
165
+ function L(e, t) {
166
+ let n = Fe[e], r = n ? I(n) : null;
167
+ return r ? r[t === "light" ? 0 : 1] : void 0;
168
+ }
169
+ function Re(e) {
170
+ let t = /* @__PURE__ */ new Set([...Object.keys(e.light), ...Object.keys(e.dark)]), n = {};
171
+ for (let r of t) {
172
+ let t = e.light[r]?.trim() || void 0, i = e.dark[r]?.trim() || void 0, a = t ?? L(r, "light") ?? i, o = i ?? L(r, "dark") ?? t;
173
+ !a || !o || (n[r] = a === o ? a : `light-dark(${a}, ${o})`);
174
+ }
73
175
  return n;
74
176
  }
75
- function P(e, t, n) {
76
- let r = M(t);
77
- if (r.length === 0) return null;
78
- let i = [
79
- e + " {",
177
+ function R(e) {
178
+ return {
179
+ ...e.shared,
180
+ ...Re(e)
181
+ };
182
+ }
183
+ function z(e, t = {}) {
184
+ let n = F((t.selectors ?? A).shared, "shared"), r = P(R(e)), i = t.banner === !1 ? null : `/* ${t.banner ?? "Themelia UI theme overrides"} */`, a = r.length ? [
185
+ `${n} {`,
80
186
  ...r.map(([e, t]) => `\t${e}: ${t};`),
81
187
  "}"
82
- ];
83
- return n ? [
84
- `@media ${n} {`,
85
- ...i.map((e) => `\t${e}`),
86
- "}"
87
- ].join("\n") : i.join("\n");
88
- }
89
- function F(e, t = {}) {
90
- let n = t.selectors ?? Ie, r = [
91
- P(N(n.shared, "shared"), e.shared),
92
- n.systemLight ? P(N(n.systemLight, "systemLight"), e.light, "(prefers-color-scheme: light)") : null,
93
- n.systemDark ? P(N(n.systemDark, "systemDark"), e.dark, "(prefers-color-scheme: dark)") : null,
94
- P(N(n.light, "light"), e.light),
95
- P(N(n.dark, "dark"), e.dark)
96
- ].filter((e) => e !== null), i = t.banner === !1 ? null : `/* ${t.banner ?? "Themelia UI theme overrides"} */`;
97
- return `${[...i ? [i] : [], ...r.length > 0 ? r : ["/* No explicit overrides. */"]].join("\n\n")}\n`;
188
+ ].join("\n") : "/* No explicit overrides. */";
189
+ return `${[...i ? [i] : [], a].join("\n\n")}\n`;
98
190
  }
99
- function I(e = {}) {
100
- let t = l(c, e), { locale: n, formatRelativeTime: r, ...i } = t.dates;
191
+ function B(e = {}) {
192
+ let t = a(i, e), { locale: n, formatRelativeTime: r, ...o } = t.dates;
101
193
  return {
102
194
  ...t,
103
- dates: i
195
+ dates: o
104
196
  };
105
197
  }
106
- function L(e = {}) {
107
- let t = I(e);
198
+ function V(e = {}) {
199
+ let t = B(e);
108
200
  return `import type { UIConfig } from "themelia-ui/ui-provider"\n\nexport const uiConfig = ${JSON.stringify(t, null, " ")} satisfies UIConfig\n`;
109
201
  }
110
- function R(e, t = e.mode) {
202
+ function ze(e, t = e.mode) {
111
203
  return {
112
204
  ...e.shared,
113
205
  ...e[t]
114
206
  };
115
207
  }
116
- function z(e, t = e.mode) {
117
- return Object.fromEntries(M(R(e, t), !1));
208
+ function H(e) {
209
+ return Object.fromEntries(P(R(e), !1));
118
210
  }
119
- function Re(e) {
120
- return M(e.shared, !1).length + M(e.light, !1).length + M(e.dark, !1).length;
211
+ function Be(e) {
212
+ return P(R(e), !1).length;
121
213
  }
122
- function ze(e) {
123
- let t = N(e, "shared");
124
- return {
125
- shared: t,
126
- light: `${t},\n${t}.light,\n.light ${t}`,
127
- dark: `${t}.dark,\n.dark ${t}`
128
- };
214
+ function Ve(e) {
215
+ return { shared: F(e, "shared") };
129
216
  }
130
- function Be(e, t = "theme.css", n = {}, r = {}) {
131
- let i = j(r.resolvedTheme ?? e), a = I(r.providerConfig);
217
+ function He(e, t = "theme.css", n = {}, r = {}) {
218
+ let i = j(r.resolvedTheme ?? e), a = B(r.providerConfig);
132
219
  return {
133
220
  fileName: t,
134
- cssText: F(i, {
221
+ cssText: z(i, {
135
222
  ...n,
136
223
  banner: n.banner ?? "Themelia UI complete theme"
137
224
  }),
138
- overrideCssText: F(e, n),
225
+ overrideCssText: z(e, n),
139
226
  theme: j(e),
140
227
  resolvedTheme: i,
141
- overrideCount: Re(e),
228
+ overrideCount: Be(e),
142
229
  providerFileName: r.providerFileName ?? "ui.config.ts",
143
230
  providerConfig: a,
144
- providerConfigText: L(a)
231
+ providerConfigText: V(a)
145
232
  };
146
233
  }
147
- function Ve({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
234
+ function Ue({ fileName: e, text: t, mimeType: n = "text/plain;charset=utf-8" }) {
148
235
  if (typeof document > "u" || typeof URL > "u") throw Error("Downloading needs a browser document. Pass onExport for other environments.");
149
236
  let r = URL.createObjectURL(new Blob([t], { type: n })), i = document.createElement("a");
150
237
  i.href = r, i.download = e, i.hidden = !0, document.body.append(i), i.click(), i.remove(), URL.revokeObjectURL(r);
151
238
  }
152
- function He(e) {
153
- Ve({
239
+ function We(e) {
240
+ Ue({
154
241
  fileName: e.fileName,
155
242
  text: e.cssText,
156
243
  mimeType: "text/css;charset=utf-8"
@@ -158,19 +245,19 @@ function He(e) {
158
245
  }
159
246
  //#endregion
160
247
  //#region src/components/features/theme-tweaker/theme-scope.tsx
161
- var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, children: a, ...o }, s) {
162
- return /* @__PURE__ */ E("div", {
248
+ var Ge = w(function({ theme: e, mode: t = e.mode, className: n, style: i, children: a, ...o }, s) {
249
+ return /* @__PURE__ */ O("div", {
163
250
  ...o,
164
251
  ref: s,
165
- "data-theme": n,
166
- className: e("theme-scope--component", n, r),
252
+ "data-theme": t,
253
+ className: r("theme-scope--component", t, n),
167
254
  style: {
168
- ...z(t, n),
255
+ ...H(e),
169
256
  ...i
170
257
  },
171
258
  children: a
172
259
  });
173
- }), B = {
260
+ }), Ke = {
174
261
  title: "Application defaults",
175
262
  description: "The display behaviour that ships alongside the exported CSS.",
176
263
  boundaryTitle: "Apply defaults through your provider",
@@ -251,7 +338,7 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
251
338
  friday: "Friday",
252
339
  saturday: "Saturday"
253
340
  }
254
- }, V = {
341
+ }, U = {
255
342
  root: "theme-tweaker__root___A8noi",
256
343
  rootScoped: "theme-tweaker__rootScoped___8ySpW",
257
344
  layout: "theme-tweaker__layout___pgPlx",
@@ -265,9 +352,7 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
265
352
  fieldLabel: "theme-tweaker__fieldLabel___hjd9f",
266
353
  controlRow: "theme-tweaker__controlRow___9UrLA",
267
354
  controlInput: "theme-tweaker__controlInput___TlI8N",
268
- monoInput: "theme-tweaker__monoInput___VKG7r",
269
355
  numberInput: "theme-tweaker__numberInput___MBHRd",
270
- empty: "theme-tweaker__empty___qgrD1",
271
356
  providerSettings: "theme-tweaker__providerSettings___4aCH6",
272
357
  settingsGrid: "theme-tweaker__settingsGrid___h_Q0S",
273
358
  exportFooter: "theme-tweaker__exportFooter___WpVsY",
@@ -275,7 +360,7 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
275
360
  exportBlockHeader: "theme-tweaker__exportBlockHeader___Xpy0a",
276
361
  exportCode: "theme-tweaker__exportCode___SXgrx",
277
362
  previewCheck: "theme-tweaker__previewCheck___5vqEH"
278
- }, We = [
363
+ }, qe = [
279
364
  "sunday",
280
365
  "monday",
281
366
  "tuesday",
@@ -284,63 +369,62 @@ var Ue = Me(function({ theme: t, mode: n = t.mode, className: r, style: i, child
284
369
  "friday",
285
370
  "saturday"
286
371
  ];
287
- function H(e, t) {
372
+ function W(e, t) {
288
373
  return e.map((e) => ({
289
374
  value: e,
290
375
  label: t.options[e] ?? e.replaceAll("-", " ").replace(/\b\w/g, (e) => e.toUpperCase())
291
376
  }));
292
377
  }
293
- function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
294
- let l = I(t), u = (e, t, r) => {
378
+ function Je({ config: t, onChange: n, strings: i = Ke, className: a }) {
379
+ let s = B(t), c = (e, t, r) => {
295
380
  n({
296
- ...l,
381
+ ...s,
297
382
  [e]: {
298
- ...l[e],
383
+ ...s[e],
299
384
  [t]: r
300
385
  }
301
386
  });
302
- }, d = (e, t) => {
387
+ }, l = (e, t) => {
303
388
  n({
304
- ...l,
389
+ ...s,
305
390
  [e]: t
306
391
  });
307
392
  };
308
- return /* @__PURE__ */ D(p, {
309
- gap: "lg",
310
- className: e("ui-config-settings--component", V.providerSettings, c),
393
+ return /* @__PURE__ */ k(u, {
394
+ className: r("ui-config-settings--component", U.providerSettings, a),
311
395
  children: [
312
- /* @__PURE__ */ E(f, {
313
- title: o.title,
314
- description: o.description
396
+ /* @__PURE__ */ O(g, {
397
+ title: i.title,
398
+ description: i.description
315
399
  }),
316
- /* @__PURE__ */ D(a, {
400
+ /* @__PURE__ */ k(h, {
317
401
  tone: "info",
318
402
  role: "note",
319
403
  children: [
320
- /* @__PURE__ */ E(Se, { "aria-hidden": !0 }),
321
- /* @__PURE__ */ E(s, { children: o.boundaryTitle }),
322
- /* @__PURE__ */ E(r, { children: o.boundaryDescription }),
323
- /* @__PURE__ */ E(i, { items: [
404
+ /* @__PURE__ */ O(Ce, { "aria-hidden": !0 }),
405
+ /* @__PURE__ */ O(ne, { children: i.boundaryTitle }),
406
+ /* @__PURE__ */ O(p, { children: i.boundaryDescription }),
407
+ /* @__PURE__ */ O(m, { items: [
324
408
  {
325
- label: o.summary.locale,
326
- value: l.formatting?.locale ?? o.options.default
409
+ label: i.summary.locale,
410
+ value: s.formatting?.locale ?? i.options.default
327
411
  },
328
412
  {
329
- label: o.summary.currency,
330
- value: l.money?.defaultCurrency ?? o.options.default
413
+ label: i.summary.currency,
414
+ value: s.money?.defaultCurrency ?? i.options.default
331
415
  },
332
416
  {
333
- label: o.summary.density,
334
- value: o.options[l.density ?? "default"] ?? l.density
417
+ label: i.summary.density,
418
+ value: i.options[s.density ?? "default"] ?? s.density
335
419
  },
336
420
  {
337
- label: o.summary.textSize,
338
- value: o.options[l.typography?.defaultTextSize ?? "sm"] ?? l.typography?.defaultTextSize
421
+ label: i.summary.textSize,
422
+ value: i.options[s.typography?.defaultTextSize ?? "sm"] ?? s.typography?.defaultTextSize
339
423
  }
340
424
  ] })
341
425
  ]
342
426
  }),
343
- /* @__PURE__ */ E(de, {
427
+ /* @__PURE__ */ O(o, {
344
428
  multiple: !0,
345
429
  defaultValue: ["regional"],
346
430
  surface: "bordered",
@@ -348,35 +432,38 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
348
432
  items: [
349
433
  {
350
434
  value: "regional",
351
- title: o.sections.regional.title,
352
- description: o.sections.regional.description,
353
- content: /* @__PURE__ */ D("div", {
354
- className: V.settingsGrid,
435
+ title: i.sections.regional.title,
436
+ description: i.sections.regional.description,
437
+ content: /* @__PURE__ */ k("div", {
438
+ className: U.settingsGrid,
355
439
  children: [
356
- /* @__PURE__ */ E(v, {
357
- label: o.labels.locale,
358
- children: /* @__PURE__ */ E(y, {
359
- value: l.formatting?.locale ?? "",
360
- onChange: (e) => u("formatting", "locale", e.target.value)
440
+ /* @__PURE__ */ O(y, {
441
+ label: i.labels.locale,
442
+ children: /* @__PURE__ */ O(v, {
443
+ value: s.formatting?.locale ?? "",
444
+ onChange: (e) => c("formatting", "locale", e.target.value)
361
445
  })
362
446
  }),
363
- /* @__PURE__ */ E(v, {
364
- label: o.labels.firstDay,
365
- children: /* @__PURE__ */ E(b, {
366
- value: String(l.dates?.weekStartsOn ?? 1),
367
- options: We.map((e, t) => ({
447
+ /* @__PURE__ */ O(y, {
448
+ label: i.labels.firstDay,
449
+ children: /* @__PURE__ */ O(_, {
450
+ value: String(s.dates?.weekStartsOn ?? 1),
451
+ options: qe.map((e, t) => ({
368
452
  value: String(t),
369
- label: o.options[e] ?? e
453
+ label: i.options[e] ?? e
370
454
  })),
371
- onValueChange: (e) => e !== void 0 && u("dates", "weekStartsOn", Number(e))
455
+ onValueChange: (e) => e !== void 0 && c("dates", "weekStartsOn", Number(e))
372
456
  })
373
457
  }),
374
- /* @__PURE__ */ E(v, {
375
- label: o.labels.dateFormat,
376
- children: /* @__PURE__ */ E(y, {
377
- value: l.dates?.format ?? "",
378
- onChange: (e) => u("dates", "format", e.target.value),
379
- className: V.monoInput
458
+ /* @__PURE__ */ O(y, {
459
+ label: i.labels.dateFormat,
460
+ children: /* @__PURE__ */ O(v, {
461
+ value: s.dates?.format ?? "",
462
+ onChange: (e) => c("dates", "format", e.target.value),
463
+ className: e({
464
+ size: "inherit",
465
+ mono: !0
466
+ })
380
467
  })
381
468
  })
382
469
  ]
@@ -384,46 +471,46 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
384
471
  },
385
472
  {
386
473
  value: "presentation",
387
- title: o.sections.presentation.title,
388
- description: o.sections.presentation.description,
389
- content: /* @__PURE__ */ D("div", {
390
- className: V.settingsGrid,
474
+ title: i.sections.presentation.title,
475
+ description: i.sections.presentation.description,
476
+ content: /* @__PURE__ */ k("div", {
477
+ className: U.settingsGrid,
391
478
  children: [
392
- /* @__PURE__ */ E(v, {
393
- label: o.labels.colorScheme,
394
- children: /* @__PURE__ */ E(b, {
395
- value: l.colorScheme,
396
- options: H([
479
+ /* @__PURE__ */ O(y, {
480
+ label: i.labels.colorScheme,
481
+ children: /* @__PURE__ */ O(_, {
482
+ value: s.colorScheme,
483
+ options: W([
397
484
  "light",
398
485
  "dark",
399
486
  "system"
400
- ], o),
401
- onValueChange: (e) => e !== void 0 && d("colorScheme", e)
487
+ ], i),
488
+ onValueChange: (e) => e !== void 0 && l("colorScheme", e)
402
489
  })
403
490
  }),
404
- /* @__PURE__ */ E(le, {
405
- label: o.labels.darkMenus,
406
- description: o.darkMenusDescription,
407
- value: l.overlay?.darkMenus ?? !0,
408
- onValueChange: (e) => u("overlay", "darkMenus", e)
491
+ /* @__PURE__ */ O(ie, {
492
+ label: i.labels.darkMenus,
493
+ description: i.darkMenusDescription,
494
+ value: s.overlay?.darkMenus ?? !0,
495
+ onValueChange: (e) => c("overlay", "darkMenus", e)
409
496
  }),
410
- /* @__PURE__ */ E(v, {
411
- label: o.labels.density,
412
- children: /* @__PURE__ */ E(b, {
413
- value: l.density,
414
- options: H([
497
+ /* @__PURE__ */ O(y, {
498
+ label: i.labels.density,
499
+ children: /* @__PURE__ */ O(_, {
500
+ value: s.density,
501
+ options: W([
415
502
  "compact",
416
503
  "default",
417
504
  "comfortable"
418
- ], o),
419
- onValueChange: (e) => e !== void 0 && d("density", e)
505
+ ], i),
506
+ onValueChange: (e) => e !== void 0 && l("density", e)
420
507
  })
421
508
  }),
422
- /* @__PURE__ */ E(v, {
423
- label: o.labels.textSize,
424
- children: /* @__PURE__ */ E(b, {
425
- value: l.typography?.defaultTextSize,
426
- options: H([
509
+ /* @__PURE__ */ O(y, {
510
+ label: i.labels.textSize,
511
+ children: /* @__PURE__ */ O(_, {
512
+ value: s.typography?.defaultTextSize,
513
+ options: W([
427
514
  "inherit",
428
515
  "xs",
429
516
  "pxs",
@@ -431,30 +518,30 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
431
518
  "base",
432
519
  "lg",
433
520
  "xl"
434
- ], o),
435
- onValueChange: (e) => e !== void 0 && u("typography", "defaultTextSize", e)
521
+ ], i),
522
+ onValueChange: (e) => e !== void 0 && c("typography", "defaultTextSize", e)
436
523
  })
437
524
  }),
438
- /* @__PURE__ */ E(v, {
439
- label: o.labels.scale,
440
- children: /* @__PURE__ */ E(x, {
441
- "aria-label": o.labels.scale,
442
- value: l.scale ?? 1,
525
+ /* @__PURE__ */ O(y, {
526
+ label: i.labels.scale,
527
+ children: /* @__PURE__ */ O(x, {
528
+ "aria-label": i.labels.scale,
529
+ value: s.scale ?? 1,
443
530
  min: .75,
444
531
  max: 1.35,
445
532
  step: .025,
446
- onValueChange: (e) => d("scale", e)
533
+ onValueChange: (e) => l("scale", e)
447
534
  })
448
535
  }),
449
- /* @__PURE__ */ E(v, {
450
- label: o.labels.typographyScale,
451
- children: /* @__PURE__ */ E(x, {
452
- "aria-label": o.labels.typographyScale,
453
- value: l.typography?.scale ?? 1,
536
+ /* @__PURE__ */ O(y, {
537
+ label: i.labels.typographyScale,
538
+ children: /* @__PURE__ */ O(x, {
539
+ "aria-label": i.labels.typographyScale,
540
+ value: s.typography?.scale ?? 1,
454
541
  min: .85,
455
542
  max: 1.25,
456
543
  step: .025,
457
- onValueChange: (e) => u("typography", "scale", e)
544
+ onValueChange: (e) => c("typography", "scale", e)
458
545
  })
459
546
  })
460
547
  ]
@@ -462,62 +549,62 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
462
549
  },
463
550
  {
464
551
  value: "money",
465
- title: o.sections.money.title,
466
- description: o.sections.money.description,
467
- content: /* @__PURE__ */ D("div", {
468
- className: V.settingsGrid,
552
+ title: i.sections.money.title,
553
+ description: i.sections.money.description,
554
+ content: /* @__PURE__ */ k("div", {
555
+ className: U.settingsGrid,
469
556
  children: [
470
- /* @__PURE__ */ E(v, {
471
- label: o.labels.defaultCurrency,
472
- children: /* @__PURE__ */ E(y, {
473
- value: l.money?.defaultCurrency ?? "",
474
- onChange: (e) => u("money", "defaultCurrency", e.target.value.toUpperCase())
557
+ /* @__PURE__ */ O(y, {
558
+ label: i.labels.defaultCurrency,
559
+ children: /* @__PURE__ */ O(v, {
560
+ value: s.money?.defaultCurrency ?? "",
561
+ onChange: (e) => c("money", "defaultCurrency", e.target.value.toUpperCase())
475
562
  })
476
563
  }),
477
- /* @__PURE__ */ E(v, {
478
- label: o.labels.displayCurrency,
479
- children: /* @__PURE__ */ E(y, {
480
- value: l.money?.displayCurrency ?? "",
481
- placeholder: o.displayCurrencyPlaceholder,
482
- onChange: (e) => u("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
564
+ /* @__PURE__ */ O(y, {
565
+ label: i.labels.displayCurrency,
566
+ children: /* @__PURE__ */ O(v, {
567
+ value: s.money?.displayCurrency ?? "",
568
+ placeholder: i.displayCurrencyPlaceholder,
569
+ onChange: (e) => c("money", "displayCurrency", e.target.value.toUpperCase() || void 0)
483
570
  })
484
571
  }),
485
- /* @__PURE__ */ E(v, {
486
- label: o.labels.moneyFormat,
487
- children: /* @__PURE__ */ E(b, {
488
- value: l.money?.formatMode,
489
- options: H([
572
+ /* @__PURE__ */ O(y, {
573
+ label: i.labels.moneyFormat,
574
+ children: /* @__PURE__ */ O(_, {
575
+ value: s.money?.formatMode,
576
+ options: W([
490
577
  "decimal",
491
578
  "with-code",
492
579
  "with-symbol"
493
- ], o),
494
- onValueChange: (e) => e !== void 0 && u("money", "formatMode", e)
580
+ ], i),
581
+ onValueChange: (e) => e !== void 0 && c("money", "formatMode", e)
495
582
  })
496
583
  }),
497
- /* @__PURE__ */ E(le, {
498
- label: o.labels.dualPricing,
499
- description: o.dualPricingDescription,
500
- value: l.money?.dualPricingEnabled ?? !1,
501
- onValueChange: (e) => u("money", "dualPricingEnabled", e)
584
+ /* @__PURE__ */ O(ie, {
585
+ label: i.labels.dualPricing,
586
+ description: i.dualPricingDescription,
587
+ value: s.money?.dualPricingEnabled ?? !1,
588
+ onValueChange: (e) => c("money", "dualPricingEnabled", e)
502
589
  }),
503
- /* @__PURE__ */ E(v, {
504
- label: o.labels.dualPricingMode,
505
- children: /* @__PURE__ */ E(b, {
506
- value: l.money?.displayMode,
507
- options: H([
590
+ /* @__PURE__ */ O(y, {
591
+ label: i.labels.dualPricingMode,
592
+ children: /* @__PURE__ */ O(_, {
593
+ value: s.money?.displayMode,
594
+ options: W([
508
595
  "primary-only",
509
596
  "dual",
510
597
  "dynamic"
511
- ], o),
512
- onValueChange: (e) => e !== void 0 && u("money", "displayMode", e)
598
+ ], i),
599
+ onValueChange: (e) => e !== void 0 && c("money", "displayMode", e)
513
600
  })
514
601
  }),
515
- /* @__PURE__ */ E(v, {
516
- label: o.labels.dualPricingLayout,
517
- children: /* @__PURE__ */ E(b, {
518
- value: l.money?.layout,
519
- options: H(["inline", "stacked"], o),
520
- onValueChange: (e) => e !== void 0 && u("money", "layout", e)
602
+ /* @__PURE__ */ O(y, {
603
+ label: i.labels.dualPricingLayout,
604
+ children: /* @__PURE__ */ O(_, {
605
+ value: s.money?.layout,
606
+ options: W(["inline", "stacked"], i),
607
+ onValueChange: (e) => e !== void 0 && c("money", "layout", e)
521
608
  })
522
609
  })
523
610
  ]
@@ -530,114 +617,130 @@ function Ge({ config: t, onChange: n, strings: o = B, className: c }) {
530
617
  }
531
618
  //#endregion
532
619
  //#region src/components/features/theme-tweaker/theme-tweaker.fields.ts
533
- var U = /* @__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("."), Ke = [
620
+ var Ye = [
621
+ "--background",
622
+ "--foreground",
623
+ "--card",
624
+ "--card-foreground",
625
+ "--popover",
626
+ "--popover-foreground",
627
+ "--muted",
628
+ "--muted-foreground",
629
+ "--accent",
630
+ "--accent-foreground",
631
+ "--border",
632
+ "--input",
633
+ "--ring"
634
+ ], Xe = [
635
+ "--primary",
636
+ "--primary-foreground",
637
+ "--secondary",
638
+ "--secondary-foreground",
639
+ "--destructive",
640
+ "--destructive-foreground"
641
+ ], Ze = [
642
+ "--chart-1",
643
+ "--chart-2",
644
+ "--chart-3",
645
+ "--chart-4",
646
+ "--chart-5"
647
+ ], G = [
648
+ "--sidebar",
649
+ "--sidebar-foreground",
650
+ "--sidebar-accent",
651
+ "--sidebar-accent-foreground",
652
+ "--sidebar-border",
653
+ "--sidebar-ring"
654
+ ], K = [
534
655
  "--success",
535
656
  "--success-foreground",
536
657
  "--info",
537
658
  "--info-foreground",
538
659
  "--warning",
539
660
  "--warning-foreground",
540
- "--warning-accent",
541
- "--link-color",
542
- "--primary-accent",
543
- "--inverse-background",
544
- "--inverse-foreground",
545
- "--inverse-muted",
546
- "--inverse-subtle",
547
- "--inverse-disabled",
548
- "--inverse-surface",
549
- "--inverse-surface-strong",
550
- "--inverse-border",
551
- "--inverse-decoration"
552
- ], qe = ["--overlay-backdrop"], Je = [
553
- "--font-heading",
661
+ "--link"
662
+ ], Qe = ["--overlay-backdrop"], $e = ["--tint", "--tint-strong"], et = [
554
663
  "--font-sans",
555
- "--font-serif",
664
+ "--font-heading",
556
665
  "--font-mono"
557
- ], W = [
558
- "xs",
559
- "pxs",
560
- "sm",
561
- "base",
562
- "lg",
563
- "xl",
564
- "2xl"
565
- ].flatMap((e) => [`--text-${e}`, `--text-${e}--line-height`]), Ye = [
566
- "--shadow-xs",
567
- "--shadow-sm",
568
- "--shadow-md",
569
- "--shadow-lg",
570
- "--shadow-xl"
571
- ], G = [
572
- "--density-scale",
573
- "--height-control",
574
- "--control-x",
575
- "--row-x",
576
- "--row-y",
577
- "--surface-x",
578
- "--surface-y",
579
- "--icon",
580
- "--avatar",
581
- "--shell-header-height",
582
- "--sidebar-width"
583
- ], K = [
584
- "--content-width-sm",
585
- "--content-width-md",
586
- "--content-width-lg",
587
- "--content-width-xl",
588
- "--content-width-2xl",
589
- "--adaptive-grid-min-sm",
590
- "--adaptive-grid-min-md",
591
- "--adaptive-grid-min-lg"
592
- ], q = {
666
+ ], q = [
667
+ "--text-scale",
668
+ "--text-xs",
669
+ "--text-pxs",
670
+ "--text-sm",
671
+ "--text-base",
672
+ "--text-lg",
673
+ "--text-xl",
674
+ "--text-2xl"
675
+ ], J = [
676
+ "--radius",
677
+ "--radius-sm",
678
+ "--radius-pill",
679
+ "--border-width"
680
+ ], tt = ["--shadow", "--shadow-lg"], nt = [
681
+ "--padding",
682
+ "--padding-sm",
683
+ "--gap",
684
+ "--gap-sm"
685
+ ], Y = [
686
+ "--control-height",
687
+ "--control-height-sm",
688
+ "--icon-size",
689
+ "--icon-size-sm"
690
+ ], X = [
691
+ "--duration-fast",
692
+ "--duration",
693
+ "--ease",
694
+ "--disabled-opacity"
695
+ ], Z = [
696
+ "--sidebar-width",
697
+ "--header-height",
698
+ "--content-width"
699
+ ], Q = {
593
700
  "--background": "The page's canvas.",
594
701
  "--foreground": "Text and icons on the canvas.",
702
+ "--card": "Framed regions: cards, table frames, panels.",
703
+ "--popover": "Anchored popups, menus, palettes and toasts.",
704
+ "--muted": "Wells and placeholders.",
705
+ "--muted-foreground": "Supporting text: descriptions, metadata, hints.",
706
+ "--accent": "The one hover and current-item fill.",
707
+ "--border": "Every divider and frame.",
708
+ "--input": "The frame of a control.",
709
+ "--ring": "The focus outline.",
595
710
  "--primary": "Brand and primary-action colour.",
596
711
  "--primary-foreground": "Text and icons on a solid primary fill.",
597
- "--muted": "Subdued backgrounds — passive regions, skeletons.",
598
- "--muted-foreground": "Secondary text, metadata, and passive icons.",
599
- "--border": "Dividers, outlines, and surface borders.",
600
- "--ring": "The focus-visible ring.",
601
- "--link-color": "Inline links and copyable values.",
602
- "--overlay-backdrop": "The scrim behind dialogs, sheets, and drawers.",
603
- "--primary-accent": "Brand colour as a FOREGROUND — icons, spinners, active marks.",
604
- "--warning-accent": "Warning colour as a foreground on a tinted warning surface.",
605
- "--radius": "The container corner — cards, dialogs, popovers, menus.",
606
- "--radius-sm": "The inner corner — inputs, buttons, rows, chips, badges, tooltips.",
607
- "--density-scale": "Multiplies spacing, controls, rows and everything density-sensitive; type follows --text-scale.",
608
- "--height-control": "Base height for every control — buttons, inputs, selects, triggers.",
609
- "--control-x": "Inline inset for actions and form controls.",
610
- "--row-x": "Inline inset shared by collection, menu, command, and table rows.",
611
- "--row-y": "Vertical inset shared by those same rows.",
612
- "--surface-x": "Inline inset for cards, dialogs, panels, and content surfaces.",
613
- "--surface-y": "Vertical inset for those same surfaces.",
614
- "--icon": "Default interface icon size.",
615
- "--avatar": "Default avatar size in ordinary rows and cards.",
616
- "--shell-header-height": "Minimum application-header height.",
617
- "--sidebar-width": "Expanded sidebar width, for Sidebar and every shell.",
618
- "--content-width-lg": "The default readable measure used by Container.",
619
- "--adaptive-grid-min-md": "Default minimum column width used by AdaptiveGrid."
620
- }, J = {
621
- "--density-scale": "Density scale",
622
- "--height-control": "Control height",
623
- "--control-x": "Control horizontal padding",
624
- "--row-x": "Row horizontal padding",
625
- "--row-y": "Row vertical padding",
626
- "--surface-x": "Surface horizontal padding",
627
- "--surface-y": "Surface vertical padding",
628
- "--icon": "Interface icon size",
629
- "--avatar": "Default avatar size",
630
- "--shell-header-height": "Header height",
631
- "--sidebar-width": "Sidebar width",
632
- "--content-width-sm": "Small content width",
633
- "--content-width-md": "Medium content width",
634
- "--content-width-lg": "Large content width",
635
- "--content-width-xl": "Extra-large content width",
636
- "--content-width-2xl": "Maximum content width",
637
- "--adaptive-grid-min-sm": "Compact adaptive column",
638
- "--adaptive-grid-min-md": "Default adaptive column",
639
- "--adaptive-grid-min-lg": "Spacious adaptive column"
640
- }, Xe = {
712
+ "--secondary": "The quiet solid fill.",
713
+ "--destructive": "Destructive actions and errors.",
714
+ "--link": "Inline links.",
715
+ "--overlay-backdrop": "The scrim behind dialogs, sheets and drawers.",
716
+ "--tint": "The soft fill a tone paints: a selected row, a soft badge, an alert's wash.",
717
+ "--tint-strong": "The line a tone paints: a tinted edge or rule.",
718
+ "--font-sans": "The interface font.",
719
+ "--font-heading": "Headings; the interface font when unset.",
720
+ "--font-mono": "Codes, identifiers and keys.",
721
+ "--text-scale": "Multiplies every type size, control labels included; geometry stays put.",
722
+ "--radius": "The container corner: cards, dialogs, popovers, menus.",
723
+ "--radius-sm": "The item corner: controls, rows, chips, badges, tooltips.",
724
+ "--radius-pill": "The round end of pills, switches and tracks.",
725
+ "--border-width": "Every hairline; marks and focus draw at twice it.",
726
+ "--shadow": "Raised: a framed card, a raised chip, a thumb.",
727
+ "--shadow-lg": "Floating: popovers, menus, dialogs, toasts.",
728
+ "--padding": "Container insets: cards, dialogs, sheets, popovers.",
729
+ "--padding-sm": "Item insets: rows, cells, chips, fields.",
730
+ "--gap": "Between groups: fields, cards, sections.",
731
+ "--gap-sm": "Inside a group: icon and label, title and description.",
732
+ "--control-height": "Buttons, fields, selects and triggers.",
733
+ "--control-height-sm": "The smaller control.",
734
+ "--icon-size": "Icons beside text and inside controls.",
735
+ "--icon-size-sm": "Icons in dense rows and chips.",
736
+ "--duration-fast": "State changes: hover, press, colour.",
737
+ "--duration": "Entrances: popups, dialogs, panels.",
738
+ "--ease": "The easing every transition shares.",
739
+ "--disabled-opacity": "How far a disabled control fades.",
740
+ "--sidebar-width": "The expanded sidebar, for Sidebar and every shell.",
741
+ "--header-height": "Every shell's top bar.",
742
+ "--content-width": "The readable page measure Container uses."
743
+ }, rt = {
641
744
  "--radius": {
642
745
  type: "range",
643
746
  min: 0,
@@ -654,85 +757,85 @@ var U = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
654
757
  unit: "rem",
655
758
  decimalPlaces: 4
656
759
  },
657
- "--density-scale": {
760
+ "--text-scale": {
658
761
  type: "range",
659
- min: .75,
660
- max: 1.35,
762
+ min: .85,
763
+ max: 1.3,
661
764
  step: .025,
662
765
  decimalPlaces: 3,
663
766
  fallback: 1
664
767
  },
665
- "--height-control": {
768
+ "--padding": {
666
769
  type: "range",
667
- min: 1.5,
668
- max: 3.5,
770
+ min: .5,
771
+ max: 2,
669
772
  step: .0625,
670
773
  unit: "rem",
671
774
  decimalPlaces: 4
672
775
  },
673
- "--control-x": {
776
+ "--padding-sm": {
674
777
  type: "range",
675
778
  min: .25,
676
- max: 1.5,
779
+ max: 1,
677
780
  step: .0625,
678
781
  unit: "rem",
679
782
  decimalPlaces: 4
680
783
  },
681
- "--row-x": {
784
+ "--gap": {
682
785
  type: "range",
683
- min: .25,
684
- max: 1.5,
786
+ min: .5,
787
+ max: 2,
685
788
  step: .0625,
686
789
  unit: "rem",
687
790
  decimalPlaces: 4
688
791
  },
689
- "--row-y": {
792
+ "--gap-sm": {
690
793
  type: "range",
691
794
  min: .25,
692
- max: 1.25,
795
+ max: 1,
693
796
  step: .0625,
694
797
  unit: "rem",
695
798
  decimalPlaces: 4
696
799
  },
697
- "--surface-x": {
800
+ "--control-height": {
698
801
  type: "range",
699
- min: .5,
700
- max: 2.5,
802
+ min: 1.75,
803
+ max: 3,
701
804
  step: .0625,
702
805
  unit: "rem",
703
806
  decimalPlaces: 4
704
807
  },
705
- "--surface-y": {
808
+ "--control-height-sm": {
706
809
  type: "range",
707
- min: .5,
810
+ min: 1.5,
708
811
  max: 2.5,
709
812
  step: .0625,
710
813
  unit: "rem",
711
814
  decimalPlaces: 4
712
815
  },
713
- "--icon": {
816
+ "--icon-size": {
714
817
  type: "range",
715
818
  min: .75,
716
- max: 2,
819
+ max: 1.5,
717
820
  step: .0625,
718
821
  unit: "rem",
719
822
  decimalPlaces: 4
720
823
  },
721
- "--avatar": {
824
+ "--icon-size-sm": {
722
825
  type: "range",
723
- min: 1.5,
724
- max: 4,
725
- step: .125,
826
+ min: .5,
827
+ max: 1,
828
+ step: .0625,
726
829
  unit: "rem",
727
- decimalPlaces: 3
830
+ decimalPlaces: 4
728
831
  },
729
- "--shell-header-height": {
832
+ "--disabled-opacity": {
730
833
  type: "range",
731
- min: 3,
732
- max: 7,
733
- step: .125,
734
- unit: "rem",
735
- decimalPlaces: 3
834
+ min: .3,
835
+ max: .7,
836
+ step: .05,
837
+ decimalPlaces: 2,
838
+ fallback: .5
736
839
  },
737
840
  "--sidebar-width": {
738
841
  type: "range",
@@ -742,109 +845,60 @@ var U = /* @__PURE__ */ "--background.--foreground.--card.--card-foreground.--po
742
845
  unit: "rem",
743
846
  decimalPlaces: 2
744
847
  },
745
- "--content-width-sm": {
848
+ "--header-height": {
746
849
  type: "range",
747
- min: 20,
748
- max: 72,
749
- step: 1,
750
- unit: "rem",
751
- decimalPlaces: 0
752
- },
753
- "--content-width-md": {
754
- type: "range",
755
- min: 24,
756
- max: 80,
757
- step: 1,
758
- unit: "rem",
759
- decimalPlaces: 0
760
- },
761
- "--content-width-lg": {
762
- type: "range",
763
- min: 32,
764
- max: 96,
765
- step: 1,
850
+ min: 3,
851
+ max: 5,
852
+ step: .125,
766
853
  unit: "rem",
767
- decimalPlaces: 0
854
+ decimalPlaces: 3
768
855
  },
769
- "--content-width-xl": {
856
+ "--content-width": {
770
857
  type: "range",
771
858
  min: 40,
772
- max: 108,
773
- step: 1,
774
- unit: "rem",
775
- decimalPlaces: 0
776
- },
777
- "--content-width-2xl": {
778
- type: "range",
779
- min: 48,
780
- max: 120,
859
+ max: 96,
781
860
  step: 1,
782
861
  unit: "rem",
783
862
  decimalPlaces: 0
784
- },
785
- "--adaptive-grid-min-sm": {
786
- type: "range",
787
- min: 8,
788
- max: 24,
789
- step: .5,
790
- unit: "rem",
791
- decimalPlaces: 1
792
- },
793
- "--adaptive-grid-min-md": {
794
- type: "range",
795
- min: 8,
796
- max: 32,
797
- step: .5,
798
- unit: "rem",
799
- decimalPlaces: 1
800
- },
801
- "--adaptive-grid-min-lg": {
802
- type: "range",
803
- min: 12,
804
- max: 40,
805
- step: .5,
806
- unit: "rem",
807
- decimalPlaces: 1
808
863
  }
809
864
  };
810
- function Ze(e) {
811
- return e.replace(/^--/, "").replace(/--/g, " · ").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0]?.toUpperCase()}${e.slice(1)}`).join(" ");
865
+ function it(e) {
866
+ return e.replace(/^--/, "").split("-").map((e) => e.length <= 3 ? e.toUpperCase() : `${e[0]?.toUpperCase()}${e.slice(1)}`).join(" ");
812
867
  }
813
- function Qe(e, t) {
814
- return e.startsWith("--chart-") ? "A categorical series colour. Keep status meaning out of it." : e.startsWith("--sidebar-") ? "A sidebar-specific colour." : e.startsWith("--inverse-") ? "An explicitly inverse surface or content colour." : e.endsWith("-foreground") ? "The foreground paired with the matching fill." : e.endsWith("--line-height") ? "Line height for the matching type step." : e.startsWith("--text-") ? "Font size for the matching type step." : e.startsWith("--font-") ? "Font stack for the matching content role." : e.startsWith("--shadow") ? "An elevation step used by surfaces and overlays." : t === "states" ? "A semantic state colour shared by every status surface." : "A public theme variable used across the kit.";
868
+ function at(e) {
869
+ return e.startsWith("--chart-") ? "A categorical series colour. Keep status meaning out of it." : e.startsWith("--sidebar") ? "A sidebar colour." : e.endsWith("-foreground") ? "Text and icons on the matching fill." : e.startsWith("--text-") ? "Font size for the matching type step." : "A theme variable the kit reads.";
815
870
  }
816
- function Y(e, t, n, r, i) {
871
+ function $(e, t, n, r, i) {
817
872
  return e.map((e) => ({
818
873
  name: e,
819
- label: J[e] ?? Ze(e),
820
- description: q[e] ?? Qe(e, t),
874
+ label: it(e),
875
+ description: Q[e] ?? at(e),
821
876
  group: t,
822
877
  section: n,
823
878
  scope: r,
824
879
  kind: i,
825
- control: Xe[e]
880
+ control: rt[e]
826
881
  }));
827
882
  }
828
- var $e = [
829
- ...Y(U.slice(0, 6), "colors", "surfaces-content", "mode", "color"),
830
- ...Y(qe, "colors", "surfaces-content", "shared", "color"),
831
- ...Y(U.slice(6, 19), "colors", "brand-actions", "mode", "color"),
832
- ...Y(U.slice(19, 24), "colors", "charts", "mode", "color"),
833
- ...Y(U.slice(24), "colors", "sidebar", "mode", "color"),
834
- ...Y(Ke.slice(0, 9), "states", "semantic-feedback", "mode", "color"),
835
- ...Y(Ke.slice(9), "states", "inverse-surfaces", "mode", "color"),
836
- ...Y(Je, "typography", "font-families", "shared", "font"),
837
- ...Y(W, "typography", "type-scale", "shared", "length"),
838
- ...Y(["--radius", "--radius-sm"], "shape", "radius", "shared", "length"),
839
- ...Y(Ye, "shape", "elevation", "mode", "shadow"),
840
- ...Y(G.slice(0, 2), "structure", "global-scales", "shared", "number"),
841
- ...Y(G.slice(2, 5), "structure", "actions-controls", "shared", "length"),
842
- ...Y(G.slice(5, 9), "structure", "rows-surfaces", "shared", "length"),
843
- ...Y(G.slice(9, 11), "structure", "media", "shared", "length"),
844
- ...Y(G.slice(11), "structure", "application-shell", "shared", "length"),
845
- ...Y(K.slice(0, 5), "structure", "content-widths", "shared", "length"),
846
- ...Y(K.slice(5), "structure", "adaptive-layout", "shared", "length")
847
- ], et = {
883
+ var ot = [
884
+ ...$(Ye, "colors", "surfaces-content", "mode", "color"),
885
+ ...$(Qe, "colors", "surfaces-content", "shared", "color"),
886
+ ...$(Xe, "colors", "brand-actions", "mode", "color"),
887
+ ...$(Ze, "colors", "charts", "mode", "color"),
888
+ ...$(G, "colors", "sidebar", "mode", "color"),
889
+ ...$(K, "states", "semantic-feedback", "mode", "color"),
890
+ ...$($e, "states", "tints", "shared", "length"),
891
+ ...$(et, "typography", "font-families", "shared", "font"),
892
+ ...$(q.slice(0, 1), "typography", "type-scale", "shared", "number"),
893
+ ...$(q.slice(1), "typography", "type-scale", "shared", "length"),
894
+ ...$(J, "shape", "radius", "shared", "length"),
895
+ ...$(tt, "shape", "elevation", "shared", "shadow"),
896
+ ...$(nt, "structure", "spacing", "shared", "length"),
897
+ ...$(Y, "structure", "controls", "shared", "length"),
898
+ ...$(X.slice(0, 3), "structure", "motion", "shared", "length"),
899
+ ...$(X.slice(3), "structure", "motion", "shared", "number"),
900
+ ...$(Z, "structure", "application-shell", "shared", "length")
901
+ ], st = {
848
902
  title: "Theme tweaker",
849
903
  description: "Edit the public theme contract, calculate coherent recipes, and export complete CSS plus the display defaults that go with it.",
850
904
  searchLabel: "Search variables",
@@ -883,13 +937,13 @@ var $e = [
883
937
  providerOutputLabel: "UIProvider config",
884
938
  providerOutputDescription: "Display defaults to pass to your application's provider.",
885
939
  autoPalette: "Derive supporting colours",
886
- autoPaletteDescription: "Keep muted, accent, borders, charts, links, and sidebar actions coherent with the primary colour.",
940
+ autoPaletteDescription: "Keep muted, accent, borders, charts, links and the sidebar coherent with the primary colour.",
887
941
  typeRecipeTitle: "Calculated type scale",
888
- typeRecipeDescription: "Generate every font step and line height from one body anchor and one modular ratio.",
942
+ typeRecipeDescription: "Every font step from one body size and one heading ratio. Line heights follow each size.",
889
943
  baseTypeSize: "Base size",
890
944
  typeRatio: "Heading ratio",
891
945
  elevationRecipeTitle: "Calculated elevation",
892
- elevationRecipeDescription: "Generate the whole shadow ladder from one restrained intensity.",
946
+ elevationRecipeDescription: "Both shadows, raised and floating, from one intensity.",
893
947
  elevationIntensity: "Shadow intensity",
894
948
  previewTitle: "Semantic preview",
895
949
  previewDescription: "The same variables drive surfaces, typography, controls, rows, and states.",
@@ -901,7 +955,7 @@ var $e = [
901
955
  previewSuccess: "Healthy",
902
956
  previewWarning: "Review",
903
957
  previewContract: "CSS variables",
904
- providerSettings: B,
958
+ providerSettings: Ke,
905
959
  groups: {
906
960
  colors: "Colours",
907
961
  states: "States",
@@ -912,10 +966,10 @@ var $e = [
912
966
  },
913
967
  groupDescriptions: {
914
968
  colors: "Application surfaces, brand actions, charts, and sidebar colours.",
915
- states: "Semantic feedback and inverse-surface pairs.",
969
+ states: "Semantic feedback colours and the two tint strengths.",
916
970
  typography: "Font families and the calculated type scale.",
917
- shape: "Corner radius and the elevation ladder.",
918
- structure: "Density, spacing, controls, rows, media, and shell geometry.",
971
+ shape: "Corner radius, the hairline and the two shadows.",
972
+ structure: "Spacing, control and icon sizes, motion, and the shell's measures.",
919
973
  defaults: "Formatting and display defaults applied through UIProvider."
920
974
  },
921
975
  sections: {
@@ -924,31 +978,28 @@ var $e = [
924
978
  charts: "Charts",
925
979
  sidebar: "Sidebar",
926
980
  "semantic-feedback": "Semantic feedback",
927
- "inverse-surfaces": "Inverse surfaces",
981
+ tints: "Tints",
928
982
  "font-families": "Font families",
929
983
  "type-scale": "Type scale",
930
- radius: "Radius",
984
+ radius: "Radius & hairline",
931
985
  elevation: "Elevation",
932
- "global-scales": "Global scales",
933
- "actions-controls": "Actions & controls",
934
- "rows-surfaces": "Rows & surfaces",
935
- media: "Media",
936
- "application-shell": "Application shell",
937
- "content-widths": "Content widths",
938
- "adaptive-layout": "Adaptive layout"
986
+ spacing: "Spacing",
987
+ controls: "Controls & icons",
988
+ motion: "Motion",
989
+ "application-shell": "Application shell"
939
990
  }
940
991
  };
941
992
  //#endregion
942
993
  //#region src/components/features/theme-tweaker/use-applied-theme.ts
943
- function X(e, t) {
994
+ function ct(e, t) {
944
995
  return e === null ? null : e === "self" ? t.current : e === "document" ? typeof document > "u" ? null : document.documentElement : typeof e == "function" ? e() : e;
945
996
  }
946
- function tt({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
947
- Ne(() => {
997
+ function lt({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
998
+ Me(() => {
948
999
  if (!e || r === "self") return;
949
- let a = X(r, n);
1000
+ let a = ct(r, n);
950
1001
  if (!a) return;
951
- let o = z(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
1002
+ let o = H(i), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
952
1003
  for (let [e, t] of Object.entries(o)) typeof t == "string" && (s.set(e, {
953
1004
  value: a.style.getPropertyValue(e),
954
1005
  priority: a.style.getPropertyPriority(e)
@@ -972,298 +1023,297 @@ function tt({ apply: e, manageModeClass: t, selfRef: n, target: r, theme: i }) {
972
1023
  }
973
1024
  //#endregion
974
1025
  //#region src/components/features/theme-tweaker/theme-tweaker.tsx
975
- var nt = [
1026
+ var ut = [
976
1027
  "colors",
977
1028
  "states",
978
1029
  "typography",
979
1030
  "shape",
980
1031
  "structure",
981
1032
  "defaults"
982
- ], rt = {
983
- colors: /* @__PURE__ */ E(S, {}),
984
- states: /* @__PURE__ */ E(ke, {}),
985
- typography: /* @__PURE__ */ E(je, {}),
986
- shape: /* @__PURE__ */ E(Oe, {}),
987
- structure: /* @__PURE__ */ E(Ce, {}),
988
- defaults: /* @__PURE__ */ E(De, {})
1033
+ ], dt = {
1034
+ colors: /* @__PURE__ */ O(C, {}),
1035
+ states: /* @__PURE__ */ O(ke, {}),
1036
+ typography: /* @__PURE__ */ O(je, {}),
1037
+ shape: /* @__PURE__ */ O(Oe, {}),
1038
+ structure: /* @__PURE__ */ O(S, {}),
1039
+ defaults: /* @__PURE__ */ O(De, {})
989
1040
  };
990
- function it(e, t) {
1041
+ function ft(e, t) {
991
1042
  let n = Number.parseFloat(e);
992
1043
  return Number.isFinite(n) ? Math.min(t.max, Math.max(t.min, n)) : t.fallback ?? t.min;
993
1044
  }
994
- function at(e, t) {
1045
+ function pt(e, t) {
995
1046
  return `${Number(e.toFixed(t.decimalPlaces ?? 3))}${t.unit ?? ""}`;
996
1047
  }
997
- function ot(e, t) {
1048
+ function mt(e, t) {
998
1049
  return e === "document" ? document.documentElement : e === "self" || e === null ? t : typeof e == "function" ? e() : e ?? t;
999
1050
  }
1000
- function st(e, t) {
1001
- if (typeof document > "u" || typeof window > "u") return j(e);
1002
- 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, {
1003
- value: n.style.getPropertyValue(e),
1004
- priority: n.style.getPropertyPriority(e)
1005
- }])), s = (t) => {
1006
- for (let e of r) n.style.removeProperty(e);
1007
- n.classList.toggle("light", t === "light"), n.classList.toggle("dark", t === "dark");
1008
- for (let [r, i] of Object.entries(z(e, t))) typeof i == "string" && n.style.setProperty(r, i);
1009
- let i = window.getComputedStyle(n);
1010
- return Object.fromEntries(r.map((e) => [e, i.getPropertyValue(e).trim()]).filter(([, e]) => e.length > 0));
1011
- };
1012
- try {
1013
- let n = s("light"), r = s("dark"), i = new Set(t.filter((e) => e.scope === "shared").map((e) => e.name));
1014
- return j({
1015
- mode: e.mode,
1016
- shared: Object.fromEntries(Object.entries(n).filter(([e]) => i.has(e))),
1017
- light: Object.fromEntries(Object.entries(n).filter(([e]) => !i.has(e))),
1018
- dark: Object.fromEntries(Object.entries(r).filter(([e]) => !i.has(e)))
1019
- });
1020
- } finally {
1021
- for (let e of r) {
1022
- let t = o.get(e);
1023
- t?.value ? n.style.setProperty(e, t.value, t.priority) : n.style.removeProperty(e);
1051
+ function ht(e, t, n) {
1052
+ if (!n || typeof window > "u") return j(e);
1053
+ let r = window.getComputedStyle(n), i = {}, a = {}, o = {};
1054
+ for (let e of t) {
1055
+ let t = r.getPropertyValue(e.name).trim();
1056
+ if (!t) continue;
1057
+ if (e.scope === "shared") {
1058
+ i[e.name] = t;
1059
+ continue;
1024
1060
  }
1025
- n.classList.toggle("light", i), n.classList.toggle("dark", a);
1061
+ let n = I(t);
1062
+ a[e.name] = n ? n[0] : t, o[e.name] = n ? n[1] : t;
1026
1063
  }
1064
+ return j({
1065
+ mode: e.mode,
1066
+ shared: i,
1067
+ light: a,
1068
+ dark: o
1069
+ });
1027
1070
  }
1028
- function ct(e, t, n) {
1071
+ function gt(e, t, n) {
1029
1072
  let r = t.scope === "shared" ? "shared" : e.mode, i = { ...e[r] };
1030
1073
  return n.trim().length === 0 ? delete i[t.name] : i[t.name] = n, {
1031
1074
  ...e,
1032
1075
  [r]: i
1033
1076
  };
1034
1077
  }
1035
- function lt({ title: e, description: r, code: i, copyLabel: a, downloadLabel: o, downloading: s = !1, onCopy: c, onDownload: l }) {
1036
- let d = C();
1037
- return /* @__PURE__ */ D("section", {
1038
- "aria-labelledby": d,
1039
- className: V.exportBlock,
1040
- children: [/* @__PURE__ */ D("div", {
1041
- className: V.exportBlockHeader,
1042
- children: [/* @__PURE__ */ D(p, {
1043
- gap: "2xs",
1044
- className: V.minWidth,
1045
- children: [/* @__PURE__ */ E(t, {
1046
- id: d,
1078
+ function _t({ title: i, description: a, code: o, copyLabel: c, downloadLabel: l, downloading: d = !1, onCopy: ee, onDownload: f }) {
1079
+ let p = T();
1080
+ return /* @__PURE__ */ k("section", {
1081
+ "aria-labelledby": p,
1082
+ className: U.exportBlock,
1083
+ children: [/* @__PURE__ */ k("div", {
1084
+ className: U.exportBlockHeader,
1085
+ children: [/* @__PURE__ */ k(u, {
1086
+ gap: "sm",
1087
+ className: U.minWidth,
1088
+ children: [/* @__PURE__ */ O(t, {
1089
+ id: p,
1047
1090
  level: 3,
1048
- children: e
1049
- }), /* @__PURE__ */ E(n, {
1091
+ children: i
1092
+ }), /* @__PURE__ */ O(n, {
1050
1093
  type: "secondary",
1051
- children: r
1094
+ children: a
1052
1095
  })]
1053
- }), /* @__PURE__ */ D(p, {
1096
+ }), /* @__PURE__ */ k(u, {
1054
1097
  direction: "horizontal",
1055
- gap: "xs",
1098
+ gap: "sm",
1056
1099
  align: "center",
1057
1100
  wrap: !0,
1058
- children: [/* @__PURE__ */ D(u, {
1101
+ children: [/* @__PURE__ */ k(s, {
1059
1102
  type: "button",
1060
1103
  tone: "neutral",
1061
- buttonStyle: "outline",
1062
- onClick: c,
1063
- children: [/* @__PURE__ */ E(be, {}), a]
1064
- }), /* @__PURE__ */ D(u, {
1104
+ appearance: "outline",
1105
+ onClick: ee,
1106
+ children: [/* @__PURE__ */ O(xe, {}), c]
1107
+ }), /* @__PURE__ */ k(s, {
1065
1108
  type: "button",
1066
- loading: s,
1067
- onClick: l,
1068
- children: [/* @__PURE__ */ E(xe, {}), o]
1109
+ loading: d,
1110
+ onClick: f,
1111
+ children: [/* @__PURE__ */ O(Se, {}), l]
1069
1112
  })]
1070
1113
  })]
1071
- }), /* @__PURE__ */ E("pre", {
1114
+ }), /* @__PURE__ */ O("pre", {
1072
1115
  tabIndex: 0,
1073
- "aria-label": e,
1074
- className: V.exportCode,
1075
- children: /* @__PURE__ */ E("code", { children: i })
1116
+ "aria-label": i,
1117
+ className: r(U.exportCode, e({
1118
+ size: "xs",
1119
+ lineHeight: "relaxed",
1120
+ mono: !0
1121
+ })),
1122
+ children: /* @__PURE__ */ O("code", { children: o })
1076
1123
  })]
1077
1124
  });
1078
1125
  }
1079
- function ut({ field: t, value: r, effectiveValue: i, onChange: a, onReset: o, strings: s }) {
1080
- let c = `theme-variable-${C().replace(/:/g, "")}`, l = /* @__PURE__ */ E(u, {
1126
+ function vt({ field: t, value: i, effectiveValue: a, onChange: o, onReset: c, strings: l }) {
1127
+ let d = `theme-variable-${T().replace(/:/g, "")}`, f = /* @__PURE__ */ O(s, {
1081
1128
  type: "button",
1082
1129
  tone: "neutral",
1083
- buttonStyle: "ghost",
1130
+ appearance: "ghost",
1084
1131
  iconOnly: !0,
1085
- "aria-label": `${s.resetVariable}: ${t.label}`,
1086
- title: s.resetVariable,
1087
- disabled: !r,
1088
- onClick: o,
1089
- children: /* @__PURE__ */ E(Te, {})
1090
- }), d = t.placeholder ?? i ?? s.inheritValue, f;
1091
- if (t.kind === "color") f = /* @__PURE__ */ D("div", {
1092
- className: V.controlRow,
1093
- children: [/* @__PURE__ */ E(ue, {
1094
- id: c,
1132
+ "aria-label": `${l.resetVariable}: ${t.label}`,
1133
+ title: l.resetVariable,
1134
+ disabled: !i,
1135
+ onClick: c,
1136
+ children: /* @__PURE__ */ O(Te, {})
1137
+ }), p = t.placeholder ?? a ?? l.inheritValue, m;
1138
+ if (t.kind === "color") m = /* @__PURE__ */ k("div", {
1139
+ className: U.controlRow,
1140
+ children: [/* @__PURE__ */ O(me, {
1141
+ id: d,
1095
1142
  "aria-label": t.label,
1096
- value: r,
1097
- previewValue: r || i || `var(${t.name})`,
1098
- strings: { picker: s.chooseColor(t.label) },
1099
- onValueChange: a,
1100
- placeholder: d,
1101
- className: V.controlInput
1102
- }), l]
1143
+ value: i,
1144
+ previewValue: i || a || `var(${t.name})`,
1145
+ strings: { picker: l.chooseColor(t.label) },
1146
+ onValueChange: o,
1147
+ placeholder: p,
1148
+ className: U.controlInput
1149
+ }), f]
1103
1150
  });
1104
1151
  else if (t.control?.type === "range") {
1105
- let e = t.control, n = it(r || i, e);
1106
- f = /* @__PURE__ */ D(p, {
1152
+ let n = t.control, s = ft(i || a, n);
1153
+ m = /* @__PURE__ */ k(u, {
1107
1154
  gap: "sm",
1108
- children: [/* @__PURE__ */ E(x, {
1109
- id: `${c}-slider`,
1110
- "aria-label": s.adjustVariable(t.label),
1111
- value: n,
1112
- min: e.min,
1113
- max: e.max,
1114
- step: e.step,
1115
- onValueChange: (t) => a(at(t, e))
1116
- }), /* @__PURE__ */ D("div", {
1117
- className: V.controlRow,
1118
- children: [/* @__PURE__ */ E(pe, {
1119
- id: c,
1155
+ children: [/* @__PURE__ */ O(x, {
1156
+ id: `${d}-slider`,
1157
+ "aria-label": l.adjustVariable(t.label),
1158
+ value: s,
1159
+ min: n.min,
1160
+ max: n.max,
1161
+ step: n.step,
1162
+ onValueChange: (e) => o(pt(e, n))
1163
+ }), /* @__PURE__ */ k("div", {
1164
+ className: U.controlRow,
1165
+ children: [/* @__PURE__ */ O(ae, {
1166
+ id: d,
1120
1167
  "aria-label": t.label,
1121
- value: String(n),
1122
- decimalPlaces: e.decimalPlaces ?? 3,
1123
- min: e.min,
1124
- max: e.max,
1168
+ value: String(s),
1169
+ decimalPlaces: n.decimalPlaces ?? 3,
1170
+ min: n.min,
1171
+ max: n.max,
1125
1172
  allowEmpty: !0,
1126
1173
  normalizeOnBlur: !1,
1127
- endAdornment: e.unit,
1128
- onChange: (t) => {
1129
- let n = t.target.value.trim();
1130
- a(n ? `${n}${e.unit ?? ""}` : "");
1174
+ endAdornment: n.unit,
1175
+ onChange: (e) => {
1176
+ let t = e.target.value.trim();
1177
+ o(t ? `${t}${n.unit ?? ""}` : "");
1131
1178
  },
1132
- className: V.numberInput
1133
- }), l]
1179
+ className: r(U.numberInput, e({
1180
+ size: "inherit",
1181
+ mono: !0
1182
+ }))
1183
+ }), f]
1134
1184
  })]
1135
1185
  });
1136
- } else f = /* @__PURE__ */ D("div", {
1137
- className: V.controlRow,
1138
- children: [/* @__PURE__ */ E(y, {
1139
- id: c,
1186
+ } else m = /* @__PURE__ */ k("div", {
1187
+ className: U.controlRow,
1188
+ children: [/* @__PURE__ */ O(v, {
1189
+ id: d,
1140
1190
  "aria-label": t.label,
1141
- value: r,
1142
- onChange: (e) => a(e.target.value),
1143
- placeholder: d,
1144
- className: e(V.controlInput, V.monoInput)
1145
- }), l]
1191
+ value: i,
1192
+ onChange: (e) => o(e.target.value),
1193
+ placeholder: p,
1194
+ className: r(U.controlInput, e({
1195
+ size: "inherit",
1196
+ mono: !0
1197
+ }))
1198
+ }), f]
1146
1199
  });
1147
- return /* @__PURE__ */ E(v, {
1148
- label: /* @__PURE__ */ D("span", {
1149
- className: V.fieldLabel,
1150
- children: [/* @__PURE__ */ E(n, {
1200
+ return /* @__PURE__ */ O(y, {
1201
+ label: /* @__PURE__ */ k("span", {
1202
+ className: U.fieldLabel,
1203
+ children: [/* @__PURE__ */ O(n, {
1151
1204
  tag: "span",
1152
1205
  size: "inherit",
1153
1206
  weight: "medium",
1154
1207
  truncate: !0,
1155
1208
  children: t.label
1156
- }), /* @__PURE__ */ E(m, {
1209
+ }), /* @__PURE__ */ O(ee, {
1157
1210
  size: "xs",
1158
1211
  type: "secondary",
1159
1212
  children: t.name
1160
1213
  })]
1161
1214
  }),
1162
- className: V.field,
1163
- children: f
1215
+ className: U.field,
1216
+ children: m
1164
1217
  });
1165
1218
  }
1166
- function dt({ strings: e }) {
1167
- return /* @__PURE__ */ E(f, {
1219
+ function yt({ strings: e }) {
1220
+ return /* @__PURE__ */ O(g, {
1168
1221
  surface: "bordered",
1169
- icon: /* @__PURE__ */ E(S, {}),
1222
+ icon: /* @__PURE__ */ O(C, {}),
1170
1223
  title: e.previewTitle,
1171
1224
  description: e.previewDescription,
1172
- children: /* @__PURE__ */ D(p, {
1173
- gap: "lg",
1174
- children: [
1175
- /* @__PURE__ */ D(p, {
1176
- direction: "horizontal",
1177
- gap: "sm",
1178
- wrap: !0,
1179
- children: [
1180
- /* @__PURE__ */ E(h, {
1181
- tone: "success",
1182
- children: e.previewSuccess
1183
- }),
1184
- /* @__PURE__ */ E(h, {
1185
- tone: "warning",
1186
- children: e.previewWarning
1187
- }),
1188
- /* @__PURE__ */ E(h, {
1189
- tone: "neutral",
1190
- children: e.previewContract
1191
- })
1192
- ]
1193
- }),
1194
- /* @__PURE__ */ D(_, {
1195
- surface: "muted",
1196
- children: [
1197
- /* @__PURE__ */ E(te, {
1198
- variant: "icon",
1199
- children: /* @__PURE__ */ E(S, {})
1200
- }),
1201
- /* @__PURE__ */ D(ne, { children: [/* @__PURE__ */ E(re, { children: e.previewItemTitle }), /* @__PURE__ */ E(g, { children: e.previewItemDescription })] }),
1202
- /* @__PURE__ */ E(ye, {
1203
- "aria-hidden": !0,
1204
- className: V.previewCheck
1205
- })
1206
- ]
1207
- }),
1208
- /* @__PURE__ */ E(v, {
1209
- label: e.previewFieldLabel,
1210
- children: /* @__PURE__ */ E(y, { placeholder: e.previewFieldPlaceholder })
1211
- }),
1212
- /* @__PURE__ */ E(u, {
1213
- type: "button",
1214
- children: e.previewAction
1215
- })
1216
- ]
1217
- })
1225
+ children: /* @__PURE__ */ k(u, { children: [
1226
+ /* @__PURE__ */ k(u, {
1227
+ direction: "horizontal",
1228
+ gap: "sm",
1229
+ wrap: !0,
1230
+ children: [
1231
+ /* @__PURE__ */ O(f, {
1232
+ tone: "success",
1233
+ children: e.previewSuccess
1234
+ }),
1235
+ /* @__PURE__ */ O(f, {
1236
+ tone: "warning",
1237
+ children: e.previewWarning
1238
+ }),
1239
+ /* @__PURE__ */ O(f, {
1240
+ tone: "neutral",
1241
+ children: e.previewContract
1242
+ })
1243
+ ]
1244
+ }),
1245
+ /* @__PURE__ */ k(ce, {
1246
+ surface: "muted",
1247
+ children: [
1248
+ /* @__PURE__ */ O(b, {
1249
+ variant: "icon",
1250
+ children: /* @__PURE__ */ O(C, {})
1251
+ }),
1252
+ /* @__PURE__ */ k(se, { children: [/* @__PURE__ */ O(le, { children: e.previewItemTitle }), /* @__PURE__ */ O(oe, { children: e.previewItemDescription })] }),
1253
+ /* @__PURE__ */ O(be, {
1254
+ "aria-hidden": !0,
1255
+ className: U.previewCheck
1256
+ })
1257
+ ]
1258
+ }),
1259
+ /* @__PURE__ */ O(y, {
1260
+ label: e.previewFieldLabel,
1261
+ children: /* @__PURE__ */ O(v, { placeholder: e.previewFieldPlaceholder })
1262
+ }),
1263
+ /* @__PURE__ */ O(s, {
1264
+ type: "button",
1265
+ children: e.previewAction
1266
+ })
1267
+ ] })
1218
1268
  });
1219
1269
  }
1220
- var Z = Me(function({ value: r, defaultValue: i, onValueChange: a, onModeChange: s, fields: c = $e, target: l = "self", apply: m = !0, manageModeClass: te = !0, preview: g, fileName: ne = "theme.css", config: _, defaultConfig: re, onConfigChange: b, providerFileName: ue = "ui.config.ts", showIntro: pe = !0, selectors: ye, onExport: be, onCopy: Se, onReset: Ce, onError: S, actionsSlot: De, strings: Oe, className: ke, ...je }, Me) {
1221
- let C = ie(et, Oe), [O, Ie] = T(() => j(i)), k = w(() => r ? j(r) : O, [O, r]), [A, Le] = T(() => I(re)), M = w(() => I(_ ?? A), [_, A]), [N, P] = T("colors"), [F, L] = T(""), [R, ze] = T(!0), [B, We] = T(16), [H, U] = T(1.2), [Ke, qe] = T(.8), [Je, W] = T("idle"), [Ye, G] = T(!1), K = me(), q = Fe(null);
1222
- Pe(Me, () => q.current), tt({
1223
- apply: m,
1224
- manageModeClass: te,
1225
- selfRef: q,
1226
- target: l,
1227
- theme: k
1270
+ var bt = w(function({ value: e, defaultValue: i, onValueChange: a, onModeChange: ee, fields: p = ot, target: m = "self", apply: h = !0, manageModeClass: ne = !0, preview: _, fileName: ae = "theme.css", config: b, defaultConfig: oe, onConfigChange: se, providerFileName: ce = "ui.config.ts", showIntro: le = !0, selectors: me, onExport: be, onCopy: xe, onReset: Ce, onError: S, actionsSlot: C, strings: De, className: Oe, ...ke }, je) {
1271
+ let w = d(st, De), [T, Fe] = D(() => j(i)), A = E(() => e ? j(e) : T, [T, e]), [Ie, Le] = D(() => B(oe)), M = E(() => B(b ?? Ie), [b, Ie]), [N, P] = D("colors"), [F, I] = D(""), [L, Re] = D(!0), [R, z] = D(16), [V, ze] = D(1.2), [Ve, Ke] = D(.8), [qe, W] = D("idle"), [Ye, Xe] = D(!1), Ze = he(), G = Pe(null);
1272
+ Ne(je, () => G.current), lt({
1273
+ apply: h,
1274
+ manageModeClass: ne,
1275
+ selfRef: G,
1276
+ target: m,
1277
+ theme: A
1228
1278
  });
1229
- let [J, Xe] = T(() => j(k)), [Ze, Qe] = T({});
1230
- Ne(() => {
1279
+ let [K, Qe] = D(() => j(A)), [$e, et] = D({});
1280
+ Me(() => {
1231
1281
  if (typeof window > "u") return;
1232
1282
  let e = window.setTimeout(() => {
1233
- let e = ot(l, q.current);
1283
+ let e = mt(m, G.current);
1234
1284
  if (!e) return;
1235
- let t = window.getComputedStyle(e);
1236
- Qe(Object.fromEntries(c.map((e) => [e.name, t.getPropertyValue(e.name).trim()]))), Xe(st(k, c));
1285
+ let t = ht(A, p, e);
1286
+ et(Object.fromEntries(p.map((e) => [e.name, (e.scope === "shared" ? t.shared : t[A.mode])[e.name] ?? ""]))), Qe(t);
1237
1287
  }, 0);
1238
1288
  return () => window.clearTimeout(e);
1239
1289
  }, [
1290
+ h,
1291
+ p,
1240
1292
  m,
1241
- c,
1242
- l,
1243
- k
1293
+ A
1244
1294
  ]);
1245
- let { artifact: Y, error: X } = w(() => {
1295
+ let { artifact: q, error: J } = E(() => {
1246
1296
  try {
1247
1297
  let e = j({
1248
- mode: k.mode,
1298
+ mode: A.mode,
1249
1299
  shared: {
1250
- ...J.shared,
1251
- ...k.shared
1300
+ ...K.shared,
1301
+ ...A.shared
1252
1302
  },
1253
1303
  light: {
1254
- ...J.light,
1255
- ...k.light
1304
+ ...K.light,
1305
+ ...A.light
1256
1306
  },
1257
1307
  dark: {
1258
- ...J.dark,
1259
- ...k.dark
1308
+ ...K.dark,
1309
+ ...A.dark
1260
1310
  }
1261
1311
  });
1262
1312
  return {
1263
- artifact: Be(k, ne, { selectors: ye }, {
1313
+ artifact: He(A, ae, { selectors: me }, {
1264
1314
  resolvedTheme: e,
1265
1315
  providerConfig: M,
1266
- providerFileName: ue
1316
+ providerFileName: ce
1267
1317
  }),
1268
1318
  error: null
1269
1319
  };
@@ -1274,23 +1324,23 @@ var Z = Me(function({ value: r, defaultValue: i, onValueChange: a, onModeChange:
1274
1324
  };
1275
1325
  }
1276
1326
  }, [
1277
- ne,
1327
+ ae,
1278
1328
  M,
1279
- ue,
1280
- J,
1281
- ye,
1282
- k
1283
- ]), it = Y?.cssText ?? `/* ${C.invalidTheme} */\n`, at = w(() => Re(k), [k]), Z = F.trim().toLowerCase(), ft = w(() => c.filter((e) => Z ? [
1329
+ ce,
1330
+ K,
1331
+ me,
1332
+ A
1333
+ ]), tt = q?.cssText ?? `/* ${w.invalidTheme} */\n`, nt = E(() => Be(A), [A]), Y = F.trim().toLowerCase(), X = E(() => p.filter((e) => Y ? [
1284
1334
  e.name,
1285
1335
  e.label,
1286
1336
  e.description
1287
- ].some((e) => e?.toLowerCase().includes(Z)) : e.group === N), [
1288
- c,
1337
+ ].some((e) => e?.toLowerCase().includes(Y)) : e.group === N), [
1338
+ p,
1289
1339
  N,
1290
- Z
1291
- ]), Q = w(() => {
1340
+ Y
1341
+ ]), Z = E(() => {
1292
1342
  let e = /* @__PURE__ */ new Map();
1293
- for (let t of ft) {
1343
+ for (let t of X) {
1294
1344
  let n = `${t.group}:${t.section}`, r = e.get(n);
1295
1345
  r ? r.fields.push(t) : e.set(n, {
1296
1346
  group: t.group,
@@ -1299,389 +1349,379 @@ var Z = Me(function({ value: r, defaultValue: i, onValueChange: a, onModeChange:
1299
1349
  });
1300
1350
  }
1301
1351
  return [...e.values()];
1302
- }, [ft]), $ = (e) => {
1303
- r === void 0 && Ie(e), a?.(e), W("idle");
1304
- }, pt = (e) => {
1305
- $({
1306
- ...k,
1307
- [k.mode]: {
1308
- ...k[k.mode],
1352
+ }, [X]), Q = (t) => {
1353
+ e === void 0 && Fe(t), a?.(t), W("idle");
1354
+ }, rt = (e) => {
1355
+ Q({
1356
+ ...A,
1357
+ [A.mode]: {
1358
+ ...A[A.mode],
1309
1359
  ...e
1310
1360
  }
1311
1361
  });
1312
- }, mt = (e) => {
1313
- $({
1314
- ...k,
1362
+ }, it = (e) => {
1363
+ Q({
1364
+ ...A,
1315
1365
  shared: {
1316
- ...k.shared,
1366
+ ...A.shared,
1317
1367
  ...e
1318
1368
  }
1319
1369
  });
1320
- }, ht = (e) => {
1321
- e !== k.mode && ($({
1322
- ...k,
1370
+ }, at = (e) => {
1371
+ e !== A.mode && (Q({
1372
+ ...A,
1323
1373
  mode: e
1324
- }), s?.(e));
1325
- }, gt = async (e) => {
1374
+ }), ee?.(e));
1375
+ }, $ = async (e) => {
1326
1376
  try {
1327
- if (Se) await Se(e);
1377
+ if (xe) await xe(e);
1328
1378
  else if (typeof navigator < "u" && navigator.clipboard) await navigator.clipboard.writeText(e);
1329
1379
  else throw Error("No clipboard here. Pass onCopy for this environment.");
1330
1380
  W("copied");
1331
1381
  } catch (e) {
1332
1382
  S?.(e);
1333
1383
  }
1334
- }, _t = async () => {
1384
+ }, ct = async () => {
1335
1385
  try {
1336
- if (X) throw X;
1337
- if (!Y) throw Error(C.invalidTheme);
1338
- G(!0), be ? await be(Y) : He(Y), W("exported");
1386
+ if (J) throw J;
1387
+ if (!q) throw Error(w.invalidTheme);
1388
+ Xe(!0), be ? await be(q) : We(q), W("exported");
1339
1389
  } catch (e) {
1340
1390
  S?.(e);
1341
1391
  } finally {
1342
- G(!1);
1392
+ Xe(!1);
1343
1393
  }
1344
- }, vt = () => {
1394
+ }, ft = () => {
1345
1395
  try {
1346
- if (!Y) throw X ?? Error(C.invalidTheme);
1347
- Ve({
1348
- fileName: Y.providerFileName,
1349
- text: Y.providerConfigText,
1396
+ if (!q) throw J ?? Error(w.invalidTheme);
1397
+ Ue({
1398
+ fileName: q.providerFileName,
1399
+ text: q.providerConfigText,
1350
1400
  mimeType: "text/typescript;charset=utf-8"
1351
1401
  }), W("exported");
1352
1402
  } catch (e) {
1353
1403
  S?.(e);
1354
1404
  }
1355
- }, yt = () => {
1356
- let e = k;
1357
- $(j({ mode: k.mode })), Ce?.(e);
1358
- }, bt = X ? C.invalidTheme : Je === "copied" ? C.copiedStatus : Je === "exported" ? C.exportedStatus : null, xt = N === "colors" ? /* @__PURE__ */ E(f, {
1405
+ }, pt = () => {
1406
+ let e = A;
1407
+ Q(j({ mode: A.mode })), Ce?.(e);
1408
+ }, bt = J ? w.invalidTheme : qe === "copied" ? w.copiedStatus : qe === "exported" ? w.exportedStatus : null, xt = N === "colors" ? /* @__PURE__ */ O(g, {
1359
1409
  surface: "bordered",
1360
- children: /* @__PURE__ */ E(le, {
1361
- label: C.autoPalette,
1362
- description: C.autoPaletteDescription,
1363
- value: R,
1364
- onValueChange: ze
1410
+ children: /* @__PURE__ */ O(ie, {
1411
+ label: w.autoPalette,
1412
+ description: w.autoPaletteDescription,
1413
+ value: L,
1414
+ onValueChange: Re
1365
1415
  })
1366
- }) : N === "typography" ? /* @__PURE__ */ E(f, {
1416
+ }) : N === "typography" ? /* @__PURE__ */ O(g, {
1367
1417
  surface: "bordered",
1368
- title: C.typeRecipeTitle,
1369
- description: C.typeRecipeDescription,
1370
- children: /* @__PURE__ */ D(ee, {
1418
+ title: w.typeRecipeTitle,
1419
+ description: w.typeRecipeDescription,
1420
+ children: /* @__PURE__ */ k(l, {
1371
1421
  columns: {
1372
1422
  base: 1,
1373
1423
  sm: 2
1374
1424
  },
1375
- gap: "md",
1376
- children: [/* @__PURE__ */ E(v, {
1377
- label: C.baseTypeSize,
1378
- children: /* @__PURE__ */ E(x, {
1379
- "aria-label": C.baseTypeSize,
1380
- value: B,
1425
+ gap: "sm",
1426
+ children: [/* @__PURE__ */ O(y, {
1427
+ label: w.baseTypeSize,
1428
+ children: /* @__PURE__ */ O(x, {
1429
+ "aria-label": w.baseTypeSize,
1430
+ value: R,
1381
1431
  min: 14,
1382
1432
  max: 20,
1383
1433
  step: 1,
1384
1434
  onValueChange: (e) => {
1385
- We(e), mt(_e({
1435
+ z(e), it(_e({
1386
1436
  baseSize: e,
1387
- ratio: H
1437
+ ratio: V
1388
1438
  }));
1389
1439
  }
1390
1440
  })
1391
- }), /* @__PURE__ */ E(v, {
1392
- label: C.typeRatio,
1393
- children: /* @__PURE__ */ E(x, {
1394
- "aria-label": C.typeRatio,
1395
- value: H,
1441
+ }), /* @__PURE__ */ O(y, {
1442
+ label: w.typeRatio,
1443
+ children: /* @__PURE__ */ O(x, {
1444
+ "aria-label": w.typeRatio,
1445
+ value: V,
1396
1446
  min: 1.125,
1397
1447
  max: 1.333,
1398
1448
  step: .01,
1399
1449
  onValueChange: (e) => {
1400
- U(e), mt(_e({
1401
- baseSize: B,
1450
+ ze(e), it(_e({
1451
+ baseSize: R,
1402
1452
  ratio: e
1403
1453
  }));
1404
1454
  }
1405
1455
  })
1406
1456
  })]
1407
1457
  })
1408
- }) : N === "shape" ? /* @__PURE__ */ E(f, {
1458
+ }) : N === "shape" ? /* @__PURE__ */ O(g, {
1409
1459
  surface: "bordered",
1410
- title: C.elevationRecipeTitle,
1411
- description: C.elevationRecipeDescription,
1412
- children: /* @__PURE__ */ E(v, {
1413
- label: C.elevationIntensity,
1414
- children: /* @__PURE__ */ E(x, {
1415
- "aria-label": C.elevationIntensity,
1416
- value: Ke,
1460
+ title: w.elevationRecipeTitle,
1461
+ description: w.elevationRecipeDescription,
1462
+ children: /* @__PURE__ */ O(y, {
1463
+ label: w.elevationIntensity,
1464
+ children: /* @__PURE__ */ O(x, {
1465
+ "aria-label": w.elevationIntensity,
1466
+ value: Ve,
1417
1467
  min: 0,
1418
1468
  max: 1,
1419
1469
  step: .05,
1420
1470
  onValueChange: (e) => {
1421
- qe(e), pt(ve({ intensity: e }));
1471
+ Ke(e), it(ve({ intensity: e }));
1422
1472
  }
1423
1473
  })
1424
1474
  })
1425
- }) : null, St = /* @__PURE__ */ D("div", {
1426
- className: e(V.layout, g !== !1 && V.layoutWithPreview),
1475
+ }) : null, St = /* @__PURE__ */ k("div", {
1476
+ className: r(U.layout, _ !== !1 && U.layoutWithPreview),
1427
1477
  children: [
1428
- /* @__PURE__ */ D("div", {
1429
- className: V.controls,
1430
- children: [/* @__PURE__ */ D(p, {
1431
- gap: "lg",
1432
- children: [
1433
- pe && /* @__PURE__ */ D(p, {
1434
- gap: "xs",
1435
- children: [/* @__PURE__ */ D(p, {
1436
- direction: "horizontal",
1437
- gap: "sm",
1438
- align: "center",
1439
- wrap: !0,
1440
- children: [/* @__PURE__ */ E(t, {
1441
- level: 2,
1442
- children: C.title
1443
- }), /* @__PURE__ */ E(h, {
1444
- tone: "neutral",
1445
- children: C.changedCount(at)
1446
- })]
1447
- }), /* @__PURE__ */ E(n, {
1448
- type: "secondary",
1449
- children: C.description
1478
+ /* @__PURE__ */ k("div", {
1479
+ className: U.controls,
1480
+ children: [/* @__PURE__ */ k(u, { children: [
1481
+ le && /* @__PURE__ */ k(u, {
1482
+ gap: "sm",
1483
+ children: [/* @__PURE__ */ k(u, {
1484
+ direction: "horizontal",
1485
+ gap: "sm",
1486
+ align: "center",
1487
+ wrap: !0,
1488
+ children: [/* @__PURE__ */ O(t, {
1489
+ level: 2,
1490
+ children: w.title
1491
+ }), /* @__PURE__ */ O(f, {
1492
+ tone: "neutral",
1493
+ children: w.changedCount(nt)
1450
1494
  })]
1451
- }),
1452
- /* @__PURE__ */ D("div", {
1453
- className: V.toolbar,
1454
- children: [/* @__PURE__ */ E(p, {
1455
- direction: "horizontal",
1456
- gap: "sm",
1457
- align: "center",
1458
- wrap: !0,
1459
- children: /* @__PURE__ */ E(se, {
1460
- value: k.mode,
1461
- onValueChange: (e) => ht(e),
1462
- children: /* @__PURE__ */ D(ae, {
1463
- variant: "enclosed",
1464
- children: [/* @__PURE__ */ D(ce, {
1465
- value: "light",
1466
- children: [/* @__PURE__ */ E(Ae, {}), C.lightMode]
1467
- }), /* @__PURE__ */ D(ce, {
1468
- value: "dark",
1469
- children: [/* @__PURE__ */ E(we, {}), C.darkMode]
1470
- })]
1471
- })
1495
+ }), /* @__PURE__ */ O(n, {
1496
+ type: "secondary",
1497
+ children: w.description
1498
+ })]
1499
+ }),
1500
+ /* @__PURE__ */ k("div", {
1501
+ className: U.toolbar,
1502
+ children: [/* @__PURE__ */ O(u, {
1503
+ direction: "horizontal",
1504
+ gap: "sm",
1505
+ align: "center",
1506
+ wrap: !0,
1507
+ children: /* @__PURE__ */ O(fe, {
1508
+ value: A.mode,
1509
+ onValueChange: (e) => at(e),
1510
+ children: /* @__PURE__ */ k(ue, {
1511
+ variant: "enclosed",
1512
+ children: [/* @__PURE__ */ k(pe, {
1513
+ value: "light",
1514
+ children: [/* @__PURE__ */ O(Ae, {}), w.lightMode]
1515
+ }), /* @__PURE__ */ k(pe, {
1516
+ value: "dark",
1517
+ children: [/* @__PURE__ */ O(we, {}), w.darkMode]
1518
+ })]
1472
1519
  })
1473
- }), /* @__PURE__ */ D(p, {
1474
- direction: "horizontal",
1475
- gap: "xs",
1476
- align: "center",
1477
- justify: "end",
1478
- wrap: !1,
1479
- children: [/* @__PURE__ */ D(u, {
1480
- type: "button",
1481
- tone: "neutral",
1482
- buttonStyle: "outline",
1483
- disabled: !!X,
1484
- onClick: () => {
1485
- W("idle"), K.show();
1486
- },
1487
- children: [/* @__PURE__ */ E(xe, {}), C.export]
1488
- }), De]
1489
- })]
1490
- }),
1491
- /* @__PURE__ */ E(v, {
1492
- label: /* @__PURE__ */ E(d, { children: C.searchLabel }),
1493
- children: /* @__PURE__ */ E(y, {
1494
- value: F,
1495
- onChange: (e) => L(e.target.value),
1496
- placeholder: C.searchPlaceholder,
1497
- startIcon: Ee,
1498
- clearable: !0,
1499
- onClear: () => L("")
1500
1520
  })
1521
+ }), /* @__PURE__ */ k(u, {
1522
+ direction: "horizontal",
1523
+ gap: "sm",
1524
+ align: "center",
1525
+ justify: "end",
1526
+ wrap: !1,
1527
+ children: [/* @__PURE__ */ k(s, {
1528
+ type: "button",
1529
+ tone: "neutral",
1530
+ appearance: "outline",
1531
+ disabled: !!J,
1532
+ onClick: () => {
1533
+ W("idle"), Ze.show();
1534
+ },
1535
+ children: [/* @__PURE__ */ O(Se, {}), w.export]
1536
+ }), C]
1537
+ })]
1538
+ }),
1539
+ /* @__PURE__ */ O(y, {
1540
+ label: /* @__PURE__ */ O(re, { children: w.searchLabel }),
1541
+ children: /* @__PURE__ */ O(v, {
1542
+ value: F,
1543
+ onChange: (e) => I(e.target.value),
1544
+ placeholder: w.searchPlaceholder,
1545
+ startIcon: Ee,
1546
+ clearable: !0,
1547
+ onClear: () => I("")
1501
1548
  })
1502
- ]
1503
- }), /* @__PURE__ */ D(se, {
1549
+ })
1550
+ ] }), /* @__PURE__ */ k(fe, {
1504
1551
  value: N,
1505
1552
  onValueChange: (e) => {
1506
- L(""), P(e);
1553
+ I(""), P(e);
1507
1554
  },
1508
- children: [/* @__PURE__ */ E(ae, {
1555
+ children: [/* @__PURE__ */ O(ue, {
1509
1556
  variant: "enclosed",
1510
1557
  edgeFade: !0,
1511
- label: C.groupNavigationLabel,
1512
- children: nt.map((e) => /* @__PURE__ */ D(ce, {
1558
+ label: w.groupNavigationLabel,
1559
+ children: ut.map((e) => /* @__PURE__ */ k(pe, {
1513
1560
  value: e,
1514
- children: [rt[e], /* @__PURE__ */ E(n, {
1561
+ children: [dt[e], /* @__PURE__ */ O(n, {
1515
1562
  tag: "span",
1516
1563
  size: "inherit",
1517
1564
  weight: "medium",
1518
- children: C.groups[e]
1565
+ children: w.groups[e]
1519
1566
  })]
1520
1567
  }, e))
1521
- }), /* @__PURE__ */ E(oe, {
1568
+ }), /* @__PURE__ */ O(de, {
1522
1569
  value: N,
1523
- children: /* @__PURE__ */ D(p, {
1524
- gap: "xl",
1525
- children: [
1526
- /* @__PURE__ */ D(p, {
1527
- gap: "xs",
1528
- children: [/* @__PURE__ */ D(p, {
1529
- direction: "horizontal",
1530
- gap: "sm",
1531
- align: "center",
1532
- wrap: !0,
1533
- children: [/* @__PURE__ */ E(t, {
1534
- level: 3,
1535
- size: "base",
1536
- children: Z ? C.allGroups : C.groups[N]
1537
- }), !!Z && /* @__PURE__ */ E(h, {
1538
- tone: "neutral",
1539
- role: "status",
1540
- "aria-live": "polite",
1541
- children: C.searchResults(ft.length)
1542
- })]
1543
- }), /* @__PURE__ */ E(n, {
1544
- type: "secondary",
1545
- children: Z ? C.searchHint : C.groupDescriptions[N]
1570
+ children: /* @__PURE__ */ k(u, { children: [
1571
+ /* @__PURE__ */ k(u, {
1572
+ gap: "sm",
1573
+ children: [/* @__PURE__ */ k(u, {
1574
+ direction: "horizontal",
1575
+ gap: "sm",
1576
+ align: "center",
1577
+ wrap: !0,
1578
+ children: [/* @__PURE__ */ O(t, {
1579
+ level: 3,
1580
+ size: "base",
1581
+ children: Y ? w.allGroups : w.groups[N]
1582
+ }), !!Y && /* @__PURE__ */ O(f, {
1583
+ tone: "neutral",
1584
+ role: "status",
1585
+ "aria-live": "polite",
1586
+ children: w.searchResults(X.length)
1546
1587
  })]
1547
- }),
1548
- !Z && xt,
1549
- N === "defaults" && !Z ? /* @__PURE__ */ E(Ge, {
1550
- config: M,
1551
- onChange: (e) => {
1552
- _ === void 0 && Le(e), b?.(e), W("idle");
1553
- },
1554
- strings: C.providerSettings
1555
- }) : Q.length > 0 ? /* @__PURE__ */ E(de, {
1556
- multiple: !0,
1557
- defaultValue: [`${Q[0].group}:${Q[0].section}`],
1558
- surface: "bordered",
1559
- media: "none",
1560
- items: Q.map((e) => {
1561
- let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? C.mixedScope : t.has("shared") ? C.sharedScope : k.mode === "light" ? C.lightMode : C.darkMode;
1562
- return {
1563
- value: `${e.group}:${e.section}`,
1564
- title: Z ? C.groupSectionLabel(C.groups[e.group], C.sections[e.section]) : C.sections[e.section],
1565
- description: C.variableCount(e.fields.length),
1566
- badge: /* @__PURE__ */ E(h, {
1567
- tone: "neutral",
1568
- children: n
1569
- }),
1570
- content: /* @__PURE__ */ E("div", {
1571
- className: V.fields,
1572
- children: e.fields.map((e) => {
1573
- let t = e.scope === "shared" ? "shared" : k.mode;
1574
- return /* @__PURE__ */ E(ut, {
1575
- field: e,
1576
- value: k[t][e.name] ?? "",
1577
- effectiveValue: Ze[e.name] ?? "",
1578
- strings: C,
1579
- onChange: (t) => {
1580
- if (e.name === "--primary" && R && t.trim()) {
1581
- pt(ge({
1582
- primary: t,
1583
- mode: k.mode
1584
- }));
1585
- return;
1586
- }
1587
- $(ct(k, e, t));
1588
- },
1589
- onReset: () => $(ct(k, e, ""))
1590
- }, e.name);
1591
- })
1588
+ }), /* @__PURE__ */ O(n, {
1589
+ type: "secondary",
1590
+ children: Y ? w.searchHint : w.groupDescriptions[N]
1591
+ })]
1592
+ }),
1593
+ !Y && xt,
1594
+ N === "defaults" && !Y ? /* @__PURE__ */ O(Je, {
1595
+ config: M,
1596
+ onChange: (e) => {
1597
+ b === void 0 && Le(e), se?.(e), W("idle");
1598
+ },
1599
+ strings: w.providerSettings
1600
+ }) : Z.length > 0 ? /* @__PURE__ */ O(o, {
1601
+ multiple: !0,
1602
+ defaultValue: [`${Z[0].group}:${Z[0].section}`],
1603
+ surface: "bordered",
1604
+ media: "none",
1605
+ items: Z.map((e) => {
1606
+ let t = new Set(e.fields.map((e) => e.scope)), n = t.size > 1 ? w.mixedScope : t.has("shared") ? w.sharedScope : A.mode === "light" ? w.lightMode : w.darkMode;
1607
+ return {
1608
+ value: `${e.group}:${e.section}`,
1609
+ title: Y ? w.groupSectionLabel(w.groups[e.group], w.sections[e.section]) : w.sections[e.section],
1610
+ description: w.variableCount(e.fields.length),
1611
+ badge: /* @__PURE__ */ O(f, {
1612
+ tone: "neutral",
1613
+ children: n
1614
+ }),
1615
+ content: /* @__PURE__ */ O("div", {
1616
+ className: U.fields,
1617
+ children: e.fields.map((e) => {
1618
+ let t = e.scope === "shared" ? "shared" : A.mode;
1619
+ return /* @__PURE__ */ O(vt, {
1620
+ field: e,
1621
+ value: A[t][e.name] ?? "",
1622
+ effectiveValue: $e[e.name] ?? "",
1623
+ strings: w,
1624
+ onChange: (t) => {
1625
+ if (e.name === "--primary" && L && t.trim()) {
1626
+ rt(ye({
1627
+ primary: t,
1628
+ mode: A.mode
1629
+ }));
1630
+ return;
1631
+ }
1632
+ Q(gt(A, e, t));
1633
+ },
1634
+ onReset: () => Q(gt(A, e, ""))
1635
+ }, e.name);
1592
1636
  })
1593
- };
1594
- })
1595
- }, `${N}:${Z}`) : /* @__PURE__ */ E(o, {
1596
- padding: "sm",
1597
- title: C.emptySearch,
1598
- description: !1,
1599
- className: V.empty
1637
+ })
1638
+ };
1600
1639
  })
1601
- ]
1602
- })
1640
+ }, `${N}:${Y}`) : /* @__PURE__ */ O(te, {
1641
+ border: !0,
1642
+ title: w.emptySearch,
1643
+ description: !1
1644
+ })
1645
+ ] })
1603
1646
  })]
1604
1647
  })]
1605
1648
  }),
1606
- g !== !1 && /* @__PURE__ */ E("div", {
1607
- className: V.preview,
1608
- children: g ?? /* @__PURE__ */ E(dt, { strings: C })
1649
+ _ !== !1 && /* @__PURE__ */ O("div", {
1650
+ className: U.preview,
1651
+ children: _ ?? /* @__PURE__ */ O(yt, { strings: w })
1609
1652
  }),
1610
- /* @__PURE__ */ E(he, {
1611
- ...K.overlayProps,
1612
- title: C.exportDialogTitle,
1613
- description: C.exportDialogDescription,
1653
+ /* @__PURE__ */ O(ge, {
1654
+ ...Ze.overlayProps,
1655
+ title: w.exportDialogTitle,
1656
+ description: w.exportDialogDescription,
1614
1657
  showCloseButton: !1,
1615
1658
  showCancel: !1,
1616
1659
  showConfirm: !1,
1617
1660
  width: "xl",
1618
- surfaceStyle: z(k),
1619
- className: k.mode,
1620
- footer: /* @__PURE__ */ D("div", {
1621
- className: V.exportFooter,
1622
- children: [/* @__PURE__ */ D(u, {
1661
+ surfaceStyle: H(A),
1662
+ className: A.mode,
1663
+ footer: /* @__PURE__ */ k("div", {
1664
+ className: U.exportFooter,
1665
+ children: [/* @__PURE__ */ k(s, {
1623
1666
  type: "button",
1624
1667
  tone: "neutral",
1625
- buttonStyle: "ghost",
1626
- disabled: at === 0,
1627
- onClick: yt,
1628
- children: [/* @__PURE__ */ E(Te, {}), C.reset]
1629
- }), /* @__PURE__ */ E(fe, {
1630
- render: /* @__PURE__ */ E(u, {
1668
+ appearance: "ghost",
1669
+ disabled: nt === 0,
1670
+ onClick: pt,
1671
+ children: [/* @__PURE__ */ O(Te, {}), w.reset]
1672
+ }), /* @__PURE__ */ O(c, {
1673
+ render: /* @__PURE__ */ O(s, {
1631
1674
  type: "button",
1632
1675
  tone: "neutral",
1633
- buttonStyle: "outline"
1676
+ appearance: "outline"
1634
1677
  }),
1635
- children: C.close
1678
+ children: w.close
1636
1679
  })]
1637
1680
  }),
1638
- children: /* @__PURE__ */ D(p, {
1639
- gap: "xl",
1640
- children: [
1641
- /* @__PURE__ */ E(lt, {
1642
- title: C.cssOutputLabel,
1643
- description: C.cssOutputDescription,
1644
- code: it,
1645
- copyLabel: C.copy,
1646
- downloadLabel: Ye ? C.exportPending : C.downloadCss,
1647
- downloading: Ye,
1648
- onCopy: () => void gt(it),
1649
- onDownload: () => void _t()
1650
- }),
1651
- /* @__PURE__ */ E(lt, {
1652
- title: C.providerOutputLabel,
1653
- description: C.providerOutputDescription,
1654
- code: Y?.providerConfigText ?? "",
1655
- copyLabel: C.copyProvider,
1656
- downloadLabel: C.downloadProvider,
1657
- onCopy: () => void gt(Y?.providerConfigText ?? ""),
1658
- onDownload: vt
1659
- }),
1660
- !!bt && /* @__PURE__ */ E(n, {
1661
- tag: "div",
1662
- size: "xs",
1663
- type: X ? "error" : "secondary",
1664
- role: "status",
1665
- "aria-live": "polite",
1666
- children: bt
1667
- })
1668
- ]
1669
- })
1681
+ children: /* @__PURE__ */ k(u, { children: [
1682
+ /* @__PURE__ */ O(_t, {
1683
+ title: w.cssOutputLabel,
1684
+ description: w.cssOutputDescription,
1685
+ code: tt,
1686
+ copyLabel: w.copy,
1687
+ downloadLabel: Ye ? w.exportPending : w.downloadCss,
1688
+ downloading: Ye,
1689
+ onCopy: () => void $(tt),
1690
+ onDownload: () => void ct()
1691
+ }),
1692
+ /* @__PURE__ */ O(_t, {
1693
+ title: w.providerOutputLabel,
1694
+ description: w.providerOutputDescription,
1695
+ code: q?.providerConfigText ?? "",
1696
+ copyLabel: w.copyProvider,
1697
+ downloadLabel: w.downloadProvider,
1698
+ onCopy: () => void $(q?.providerConfigText ?? ""),
1699
+ onDownload: ft
1700
+ }),
1701
+ !!bt && /* @__PURE__ */ O(n, {
1702
+ tag: "div",
1703
+ size: "xs",
1704
+ type: J ? "error" : "secondary",
1705
+ role: "status",
1706
+ "aria-live": "polite",
1707
+ children: bt
1708
+ })
1709
+ ] })
1670
1710
  })
1671
1711
  ]
1672
1712
  });
1673
- return l === "self" ? /* @__PURE__ */ E(Ue, {
1674
- ...je,
1675
- ref: q,
1676
- theme: m ? k : j({ mode: k.mode }),
1677
- className: e("theme-tweaker--component", V.root, V.rootScoped, ke),
1713
+ return m === "self" ? /* @__PURE__ */ O(Ge, {
1714
+ ...ke,
1715
+ ref: G,
1716
+ theme: h ? A : j({ mode: A.mode }),
1717
+ className: r("theme-tweaker--component", U.root, U.rootScoped, Oe),
1678
1718
  children: St
1679
- }) : /* @__PURE__ */ E("div", {
1680
- ...je,
1681
- ref: q,
1682
- className: e("theme-tweaker--component", V.root, ke),
1719
+ }) : /* @__PURE__ */ O("div", {
1720
+ ...ke,
1721
+ ref: G,
1722
+ className: r("theme-tweaker--component", U.root, Oe),
1683
1723
  children: St
1684
1724
  });
1685
1725
  });
1686
1726
  //#endregion
1687
- export { Ue as ThemeScope, Z as ThemeTweaker, Ge as UIConfigSettings, Re as countThemeOverrides, ze as createScopedThemeSelectors, I as createSerializableUIConfig, j as createTheme, Be as createThemeExportArtifact, Ie as defaultThemeSelectors, $e as defaultThemeTweakerFields, et as defaultThemeTweakerStrings, B as defaultUIConfigSettingsStrings, ve as deriveThemeElevation, ge as deriveThemePalette, _e as deriveThemeTypeScale, Ve as downloadTextFile, He as downloadTheme, R as getActiveThemeOverrides, Le as isThemeVariableName, F as serializeTheme, L as serializeUIConfig, z as themeToStyle, tt as useAppliedTheme };
1727
+ export { Ge as ThemeScope, bt as ThemeTweaker, Je as UIConfigSettings, Be as countThemeOverrides, Ve as createScopedThemeSelectors, B as createSerializableUIConfig, j as createTheme, He as createThemeExportArtifact, A as defaultThemeSelectors, ot as defaultThemeTweakerFields, st as defaultThemeTweakerStrings, Ke as defaultUIConfigSettingsStrings, ve as deriveThemeElevation, ye as deriveThemePalette, _e as deriveThemeTypeScale, Ue as downloadTextFile, We as downloadTheme, ze as getActiveThemeOverrides, N as isThemeVariableName, z as serializeTheme, V as serializeUIConfig, M as themeFromConfig, H as themeToStyle, lt as useAppliedTheme };