themelia-react-ui 2.0.5 → 2.0.6

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 (489) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/MIGRATION.md +119 -0
  3. package/README.md +13 -6
  4. package/dist/{accordion-B9MHG0cT.js → accordion-0tQUZ20r.js} +7 -7
  5. package/dist/accordion-0tQUZ20r.js.map +1 -0
  6. package/dist/{action-menu-Dr8K-ghE.js → action-menu-C0gjzLyE.js} +7 -7
  7. package/dist/{action-menu-Dr8K-ghE.js.map → action-menu-C0gjzLyE.js.map} +1 -1
  8. package/dist/{ai-artifact-C58tQcBy.js → ai-artifact-CGGpQryR.js} +172 -157
  9. package/dist/ai-artifact-CGGpQryR.js.map +1 -0
  10. package/dist/{app-shell-B_IuNWOo.js → app-shell-EHuuRDGy.js} +5 -5
  11. package/dist/{app-shell-B_IuNWOo.js.map → app-shell-EHuuRDGy.js.map} +1 -1
  12. package/dist/{attachment-Dg_69lPS.js → attachment-BCpA4e7i.js} +8 -8
  13. package/dist/{attachment-Dg_69lPS.js.map → attachment-BCpA4e7i.js.map} +1 -1
  14. package/dist/{auth-DTkkshS8.js → auth-B0girIk_.js} +15 -15
  15. package/dist/auth-B0girIk_.js.map +1 -0
  16. package/dist/{avatar-CeZaFmNH.js → avatar-B9Jnp-T-.js} +3 -3
  17. package/dist/{avatar-CeZaFmNH.js.map → avatar-B9Jnp-T-.js.map} +1 -1
  18. package/dist/{badge-xIiV_E7f.js → badge-wWauMgAt.js} +3 -3
  19. package/dist/{badge-xIiV_E7f.js.map → badge-wWauMgAt.js.map} +1 -1
  20. package/dist/base/accordion.js +1 -1
  21. package/dist/base/action-menu.js +1 -1
  22. package/dist/base/attachment.js +1 -1
  23. package/dist/base/avatar.js +1 -1
  24. package/dist/base/badge.js +1 -1
  25. package/dist/base/batch-action-bar.js +1 -1
  26. package/dist/base/buttons.js +1 -1
  27. package/dist/base/cards.js +2 -2
  28. package/dist/base/carousel.js +3 -3
  29. package/dist/base/cascader.js +1 -1
  30. package/dist/base/chart.js +1 -1
  31. package/dist/base/choice-inputs.js +2 -2
  32. package/dist/base/code-block.js +1 -1
  33. package/dist/base/combobox.js +1 -1
  34. package/dist/base/command.js +1 -1
  35. package/dist/base/copyable.js +1 -1
  36. package/dist/base/date-pickers.js +2 -2
  37. package/dist/base/display.js +6 -6
  38. package/dist/base/feedback.js +4 -4
  39. package/dist/base/forms-numeric.js +1 -1
  40. package/dist/base/forms.js +2 -2
  41. package/dist/base/inline-edit.js +8 -8
  42. package/dist/base/item.js +1 -1
  43. package/dist/base/media-gallery.js +1 -1
  44. package/dist/base/metadata-list.js +1 -1
  45. package/dist/base/navigation.js +6 -6
  46. package/dist/base/popover-menu.js +1 -1
  47. package/dist/base/popover.js +1 -1
  48. package/dist/base/qr-code.js +1 -1
  49. package/dist/base/repeaters.js +195 -188
  50. package/dist/base/repeaters.js.map +1 -1
  51. package/dist/base/sheet.js +1 -1
  52. package/dist/base/sidebar.js +2 -2
  53. package/dist/base/signature-pad.js +7 -7
  54. package/dist/base/skeleton.js +1 -1
  55. package/dist/base/spinner.js +5 -5
  56. package/dist/base/spinner.js.map +1 -1
  57. package/dist/base/structure.js +1 -1
  58. package/dist/base/table.js +1 -1
  59. package/dist/base/text-inputs.js +2 -2
  60. package/dist/base/toaster.js +1 -1
  61. package/dist/base/tree.js +1 -1
  62. package/dist/base/upload-queue.js +1 -1
  63. package/dist/base/upload.js +3 -3
  64. package/dist/base/value-inputs.js +1 -1
  65. package/dist/{batch-action-bar-Cb8cuvyy.js → batch-action-bar-BoqWIIpV.js} +5 -5
  66. package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-BoqWIIpV.js.map} +1 -1
  67. package/dist/blocks/admin.js +17 -17
  68. package/dist/blocks/ai.js +227 -221
  69. package/dist/blocks/ai.js.map +1 -1
  70. package/dist/blocks/analytics/usage-card.js +1 -1
  71. package/dist/blocks/analytics.js +424 -449
  72. package/dist/blocks/analytics.js.map +1 -1
  73. package/dist/blocks/collaboration.js +1 -1
  74. package/dist/blocks/commerce/receipt.js +1 -1
  75. package/dist/blocks/commerce.js +225 -220
  76. package/dist/blocks/commerce.js.map +1 -1
  77. package/dist/blocks/data-display.js +2 -2
  78. package/dist/blocks/onboarding.js +5 -5
  79. package/dist/blocks/planning.js +11 -11
  80. package/dist/blocks/timelines.js +1 -1
  81. package/dist/{breadcrumbs-J-K2kl4c.js → breadcrumbs-Bp9Ke7kd.js} +4 -4
  82. package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
  83. package/dist/{button-S2Cubiiz.js → button-ChBovTx0.js} +2 -2
  84. package/dist/{button-S2Cubiiz.js.map → button-ChBovTx0.js.map} +1 -1
  85. package/dist/{buttons-BedGfygC.js → buttons-DeW0bQeK.js} +6 -6
  86. package/dist/{buttons-BedGfygC.js.map → buttons-DeW0bQeK.js.map} +1 -1
  87. package/dist/{cards-rNX1M4Xn.js → cards-CNXnmvV5.js} +8 -8
  88. package/dist/{cards-rNX1M4Xn.js.map → cards-CNXnmvV5.js.map} +1 -1
  89. package/dist/{cascader-B1MiqkBq.js → cascader-CrAl9zD5.js} +15 -15
  90. package/dist/{cascader-B1MiqkBq.js.map → cascader-CrAl9zD5.js.map} +1 -1
  91. package/dist/{chart-Darg_0Kv.js → chart-I7ROnsl8.js} +5 -5
  92. package/dist/{chart-Darg_0Kv.js.map → chart-I7ROnsl8.js.map} +1 -1
  93. package/dist/{checkbox-fflqmODR.js → checkbox-MoyHIAPs.js} +3 -3
  94. package/dist/{checkbox-fflqmODR.js.map → checkbox-MoyHIAPs.js.map} +1 -1
  95. package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-DHGtx0QV.js} +122 -110
  96. package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
  97. package/dist/{code-block-BzmM9Eig.js → code-block-BSJyq9e-.js} +7 -7
  98. package/dist/{code-block-BzmM9Eig.js.map → code-block-BSJyq9e-.js.map} +1 -1
  99. package/dist/{collapsible-BkAI_XD4.js → collapsible-BzJ91LUG.js} +3 -3
  100. package/dist/{collapsible-BkAI_XD4.js.map → collapsible-BzJ91LUG.js.map} +1 -1
  101. package/dist/{collection-content-gDh1v6O4.js → collection-content-CSnwtOTH.js} +3 -3
  102. package/dist/{collection-content-gDh1v6O4.js.map → collection-content-CSnwtOTH.js.map} +1 -1
  103. package/dist/{combobox-BEx0vJgF.js → combobox-Bcvu5J8O.js} +11 -10
  104. package/dist/{combobox-BEx0vJgF.js.map → combobox-Bcvu5J8O.js.map} +1 -1
  105. package/dist/combobox-C2JiSQPc.js +915 -0
  106. package/dist/combobox-C2JiSQPc.js.map +1 -0
  107. package/dist/{command-CrlPIL6m.js → command-9e52NPgK.js} +6 -6
  108. package/dist/{command-CrlPIL6m.js.map → command-9e52NPgK.js.map} +1 -1
  109. package/dist/{comments-Dmpp0YIc.js → comments-BsgErEqd.js} +33 -28
  110. package/dist/comments-BsgErEqd.js.map +1 -0
  111. package/dist/components/base/choice-inputs/choice-types.d.ts +4 -0
  112. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
  113. package/dist/components/base/combobox/combobox-field.d.ts +2 -2
  114. package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
  115. package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
  116. package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
  117. package/dist/components/base/feedback/state-display.d.ts +5 -1
  118. package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
  119. package/dist/components/base/forms/form-field.d.ts +7 -2
  120. package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -1
  121. package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
  122. package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
  123. package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
  124. package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
  125. package/dist/components/base/navigation/language-switcher.d.ts +12 -4
  126. package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
  127. package/dist/components/base/sidebar/sidebar.d.ts +2 -0
  128. package/dist/components/base/upload/avatar-upload.d.ts +2 -1
  129. package/dist/components/base/upload/image-upload.d.ts +2 -1
  130. package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
  131. package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
  132. package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
  133. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +2 -0
  134. package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
  135. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
  136. package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
  137. package/dist/components/blocks/analytics/types.d.ts +2 -2
  138. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  139. package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
  140. package/dist/components/features/activities/activities.types.d.ts +18 -11
  141. package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
  142. package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
  143. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
  144. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
  145. package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
  146. package/dist/components/features/combobox/combobox.d.ts +2 -2
  147. package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
  148. package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
  149. package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
  150. package/dist/components/features/combobox/types.d.ts +37 -8
  151. package/dist/components/features/email-composer/types.d.ts +3 -1
  152. package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
  153. package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
  154. package/dist/components/features/filters/filters.types.d.ts +3 -3
  155. package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
  156. package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
  157. package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
  158. package/dist/components/features/filters/utils/filter-utils.d.ts +5 -1
  159. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  160. package/dist/components/features/media-library/media-library.d.ts +1 -1
  161. package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
  162. package/dist/components/features/media-library/media-library.types.d.ts +36 -8
  163. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  164. package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
  165. package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
  166. package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
  167. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
  168. package/dist/components/features/products/products.types.d.ts +2 -2
  169. package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
  170. package/dist/components/features/resource/resource.d.ts +1 -1
  171. package/dist/components/features/resource/resource.types.d.ts +2 -0
  172. package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
  173. package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
  174. package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
  175. package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
  176. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  177. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
  178. package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
  179. package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
  180. package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
  181. package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
  182. package/dist/components/features/table/data-table.d.ts +1 -1
  183. package/dist/components/features/table/index.d.ts +1 -0
  184. package/dist/components/features/table/table-body.d.ts +1 -1
  185. package/dist/components/features/table/table-helpers.d.ts +6 -3
  186. package/dist/components/features/table/table.strings.d.ts +3 -0
  187. package/dist/components/features/table/table.types.d.ts +17 -1
  188. package/dist/components/layout/header/header.types.d.ts +3 -2
  189. package/dist/components/layout/layout.types.d.ts +5 -3
  190. package/dist/components/layout/navigation/side-nav.d.ts +3 -2
  191. package/dist/components/layout/normalize-layout-path.d.ts +1 -0
  192. package/dist/components/layout/settings/settings.d.ts +1 -1
  193. package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
  194. package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +3 -1
  195. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
  196. package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -0
  197. package/dist/components/primitives/link.d.ts +3 -2
  198. package/dist/components/primitives/money.d.ts +1 -1
  199. package/dist/components/primitives/number.d.ts +1 -1
  200. package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
  201. package/dist/{containers-CIxwbZt5.js → containers-CSdc32h9.js} +2 -2
  202. package/dist/{containers-CIxwbZt5.js.map → containers-CSdc32h9.js.map} +1 -1
  203. package/dist/{copyable-DIznBqiT.js → copyable-3fdHfMR3.js} +4 -4
  204. package/dist/{copyable-DIznBqiT.js.map → copyable-3fdHfMR3.js.map} +1 -1
  205. package/dist/{data-display-BdgCAw8T.js → data-display-Cmj-xZYl.js} +16 -15
  206. package/dist/data-display-Cmj-xZYl.js.map +1 -0
  207. package/dist/{date-Cq8ioE4o.js → date-Br0FicVv.js} +4 -4
  208. package/dist/{date-Cq8ioE4o.js.map → date-Br0FicVv.js.map} +1 -1
  209. package/dist/date-picker-CyQlFYsP.js +1617 -0
  210. package/dist/date-picker-CyQlFYsP.js.map +1 -0
  211. package/dist/date-pickers-tj2MXmXd.js +185 -0
  212. package/dist/date-pickers-tj2MXmXd.js.map +1 -0
  213. package/dist/{display-KsZLw9Ov.js → display-CT_N2a3w.js} +7 -7
  214. package/dist/{display-KsZLw9Ov.js.map → display-CT_N2a3w.js.map} +1 -1
  215. package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-C08iIugv.js} +6 -6
  216. package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-C08iIugv.js.map} +1 -1
  217. package/dist/features/activities.js +283 -270
  218. package/dist/features/activities.js.map +1 -1
  219. package/dist/features/ai-chat.js +40 -27
  220. package/dist/features/ai-chat.js.map +1 -1
  221. package/dist/features/appointment-calendar.js +126 -126
  222. package/dist/features/appointment-calendar.js.map +1 -1
  223. package/dist/features/async-preview.js +9 -9
  224. package/dist/features/combobox.js +1 -1
  225. package/dist/features/comments.js +1 -1
  226. package/dist/features/data-view.js +10 -10
  227. package/dist/features/email-composer.js +24 -19
  228. package/dist/features/email-composer.js.map +1 -1
  229. package/dist/features/event-calendar.js +129 -125
  230. package/dist/features/event-calendar.js.map +1 -1
  231. package/dist/features/filters.js +2 -2
  232. package/dist/features/global-search.js +16 -20
  233. package/dist/features/global-search.js.map +1 -1
  234. package/dist/features/kanban.js +18 -28
  235. package/dist/features/kanban.js.map +1 -1
  236. package/dist/features/map/style.css +15 -0
  237. package/dist/features/map.js +331 -314
  238. package/dist/features/map.js.map +1 -1
  239. package/dist/features/media-library.js +1044 -866
  240. package/dist/features/media-library.js.map +1 -1
  241. package/dist/features/mentions.js +2 -2
  242. package/dist/features/overlays.js +1 -1
  243. package/dist/features/products.js +978 -964
  244. package/dist/features/products.js.map +1 -1
  245. package/dist/features/questionnaire.js +159 -152
  246. package/dist/features/questionnaire.js.map +1 -1
  247. package/dist/features/resource-assignment.js +8 -8
  248. package/dist/features/resource.js +74 -71
  249. package/dist/features/resource.js.map +1 -1
  250. package/dist/features/rich-text-editor.js +28 -19
  251. package/dist/features/rich-text-editor.js.map +1 -1
  252. package/dist/features/schema-form.js +297 -256
  253. package/dist/features/schema-form.js.map +1 -1
  254. package/dist/features/suggestions.js +57 -50
  255. package/dist/features/suggestions.js.map +1 -1
  256. package/dist/features/sync.js +3 -3
  257. package/dist/features/table.js +1 -1
  258. package/dist/features/theme-tweaker.js +400 -399
  259. package/dist/features/theme-tweaker.js.map +1 -1
  260. package/dist/feedback-Dzo1xtAU.js +246 -0
  261. package/dist/feedback-Dzo1xtAU.js.map +1 -0
  262. package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-D6H7tVJi.js} +2 -2
  263. package/dist/{field-affordance-recipes-DWcNcOjh.js.map → field-affordance-recipes-D6H7tVJi.js.map} +1 -1
  264. package/dist/field-control-attributes-B6i335wr.js +18 -0
  265. package/dist/field-control-attributes-B6i335wr.js.map +1 -0
  266. package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
  267. package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
  268. package/dist/{filters-DzgSJpMK.js → filters-Dl80yYtN.js} +763 -605
  269. package/dist/filters-Dl80yYtN.js.map +1 -0
  270. package/dist/form-field-CAPdwdnZ.js +74 -0
  271. package/dist/form-field-CAPdwdnZ.js.map +1 -0
  272. package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-CgcrUbLU.js} +2 -2
  273. package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-CgcrUbLU.js.map} +1 -1
  274. package/dist/{forms-C0RGnJTe.js → forms-B3W8CH7-.js} +8 -8
  275. package/dist/{forms-C0RGnJTe.js.map → forms-B3W8CH7-.js.map} +1 -1
  276. package/dist/forms-numeric-CwjQJe-O.js +991 -0
  277. package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
  278. package/dist/{header-DMMxG__r.js → header-ZIIsRKxP.js} +113 -113
  279. package/dist/header-ZIIsRKxP.js.map +1 -0
  280. package/dist/hooks/use-files.d.ts +2 -0
  281. package/dist/{hooks-DB6CJ4MR.js → hooks-BitHSh-Y.js} +3 -3
  282. package/dist/{hooks-DB6CJ4MR.js.map → hooks-BitHSh-Y.js.map} +1 -1
  283. package/dist/{icon-badge-DZF-YjQp.js → icon-badge-npxF1SLX.js} +2 -2
  284. package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-npxF1SLX.js.map} +1 -1
  285. package/dist/index.js +1 -1
  286. package/dist/{input-CvyDQlY7.js → input-7KAc7XQL.js} +6 -6
  287. package/dist/{input-CvyDQlY7.js.map → input-7KAc7XQL.js.map} +1 -1
  288. package/dist/{input-DMBwAZmr.js → input-DIREVYHs.js} +3 -3
  289. package/dist/{input-DMBwAZmr.js.map → input-DIREVYHs.js.map} +1 -1
  290. package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
  291. package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
  292. package/dist/{item-DjCcM18E.js → item-FfWnaYST.js} +99 -98
  293. package/dist/item-FfWnaYST.js.map +1 -0
  294. package/dist/layout/app-shell.js +1 -1
  295. package/dist/layout/auth.js +1 -1
  296. package/dist/layout/containers.js +1 -1
  297. package/dist/layout/header.js +1 -1
  298. package/dist/layout/hooks.js +1 -1
  299. package/dist/layout/navigation.js +1 -1
  300. package/dist/layout/page.js +1 -1
  301. package/dist/layout/settings.js +1 -1
  302. package/dist/layout/sidebar.js +2 -2
  303. package/dist/layout/workspace.js +1 -1
  304. package/dist/layout.js +11 -11
  305. package/dist/layout.types-E_GAApzO.js +30 -0
  306. package/dist/layout.types-E_GAApzO.js.map +1 -0
  307. package/dist/lib/field-control-attributes.d.ts +11 -0
  308. package/dist/lib/field-state-recipes.d.ts +2 -0
  309. package/dist/lib/format.d.ts +1 -0
  310. package/dist/lib/surface-recipes.d.ts +1 -1
  311. package/dist/lib/token-merge.generated.d.ts +6 -6
  312. package/dist/lib/utils.js +1 -1
  313. package/dist/{media-gallery-C-vChPmE.js → media-gallery-C81DAnKI.js} +6 -6
  314. package/dist/{media-gallery-C-vChPmE.js.map → media-gallery-C81DAnKI.js.map} +1 -1
  315. package/dist/{mentions-0_4nWuI-.js → mentions-qOnedSt4.js} +236 -167
  316. package/dist/mentions-qOnedSt4.js.map +1 -0
  317. package/dist/message-BJHnn43M.js +135 -0
  318. package/dist/message-BJHnn43M.js.map +1 -0
  319. package/dist/{metadata-list-C3MkU-Om.js → metadata-list-XkqZ_UXH.js} +11 -11
  320. package/dist/{metadata-list-C3MkU-Om.js.map → metadata-list-XkqZ_UXH.js.map} +1 -1
  321. package/dist/{navigation-DaRjthVk.js → navigation-BgtPJAhi.js} +119 -119
  322. package/dist/navigation-BgtPJAhi.js.map +1 -0
  323. package/dist/{navigation-C90-oQFq.js → navigation-Bt-v7rWP.js} +52 -46
  324. package/dist/navigation-Bt-v7rWP.js.map +1 -0
  325. package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
  326. package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
  327. package/dist/{number-CRU3kGuk.js → number-CYqBcrSj.js} +78 -86
  328. package/dist/number-CYqBcrSj.js.map +1 -0
  329. package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-BQCA2Zn2.js} +7 -7
  330. package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-BQCA2Zn2.js.map} +1 -1
  331. package/dist/{overlays-BSgCtM2v.js → overlays-CC8zI3Du.js} +264 -260
  332. package/dist/overlays-CC8zI3Du.js.map +1 -0
  333. package/dist/{page-DUUKDAjo.js → page-BoQ1VaFJ.js} +13 -13
  334. package/dist/{page-DUUKDAjo.js.map → page-BoQ1VaFJ.js.map} +1 -1
  335. package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-DIKspJfx.js} +4 -4
  336. package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-DIKspJfx.js.map} +1 -1
  337. package/dist/{pagination-CgCjElfu.js → pagination-Br8TdV9A.js} +4 -4
  338. package/dist/{pagination-CgCjElfu.js.map → pagination-Br8TdV9A.js.map} +1 -1
  339. package/dist/{popover-B85RenIl.js → popover-k8TdUcAt.js} +10 -10
  340. package/dist/popover-k8TdUcAt.js.map +1 -0
  341. package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-yn-o0kyA.js} +7 -7
  342. package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
  343. package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-DJ0AkUan.js} +2 -2
  344. package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-DJ0AkUan.js.map} +1 -1
  345. package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-DyUXqUtD.js} +2 -2
  346. package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-DyUXqUtD.js.map} +1 -1
  347. package/dist/{primitives-ByWgGUgt.js → primitives-BkkQjYl7.js} +22 -17
  348. package/dist/primitives-BkkQjYl7.js.map +1 -0
  349. package/dist/primitives.js +4 -4
  350. package/dist/{progress-BJhQP9WX.js → progress-DZFXXzPs.js} +4 -4
  351. package/dist/{progress-BJhQP9WX.js.map → progress-DZFXXzPs.js.map} +1 -1
  352. package/dist/{receipt-tOc7B3hw.js → receipt-C7LhOg7Q.js} +6 -6
  353. package/dist/{receipt-tOc7B3hw.js.map → receipt-C7LhOg7Q.js.map} +1 -1
  354. package/dist/rich-text-BnTzZjIo.js +45 -0
  355. package/dist/rich-text-BnTzZjIo.js.map +1 -0
  356. package/dist/rich-text-editor-CAurDwT5.js +1273 -0
  357. package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
  358. package/dist/{rich-text-editor-toolbar-laT3tpBT.js → rich-text-editor-toolbar-DbXig7Jk.js} +36 -35
  359. package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
  360. package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
  361. package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
  362. package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
  363. package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
  364. package/dist/{scroll-area-B0dB2cBi.js → scroll-area-Bj6CRUif.js} +2 -2
  365. package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
  366. package/dist/{separator-Bb17I4pu.js → separator-B9ewiCGO.js} +2 -2
  367. package/dist/{separator-Bb17I4pu.js.map → separator-B9ewiCGO.js.map} +1 -1
  368. package/dist/{separator-Ct_WSWTJ.js → separator-DM6gs2vu.js} +3 -3
  369. package/dist/{separator-Ct_WSWTJ.js.map → separator-DM6gs2vu.js.map} +1 -1
  370. package/dist/services/actions.js +1 -1
  371. package/dist/settings-DZPHgpx4.js +155 -0
  372. package/dist/settings-DZPHgpx4.js.map +1 -0
  373. package/dist/{sheet-BGPERY55.js → sheet-C4DHsgLk.js} +6 -6
  374. package/dist/{sheet-BGPERY55.js.map → sheet-C4DHsgLk.js.map} +1 -1
  375. package/dist/sidebar-C8BnDwTH.js +709 -0
  376. package/dist/sidebar-C8BnDwTH.js.map +1 -0
  377. package/dist/{sidebar-f9gRWXIR.js → sidebar-CmD6a-HK.js} +16 -13
  378. package/dist/sidebar-CmD6a-HK.js.map +1 -0
  379. package/dist/{skeleton-BapcJd9C.js → skeleton-DDgdhmu9.js} +5 -5
  380. package/dist/{skeleton-BapcJd9C.js.map → skeleton-DDgdhmu9.js.map} +1 -1
  381. package/dist/{smart-card-CW0hjetE.js → smart-card-B6vLxqa_.js} +8 -8
  382. package/dist/{smart-card-CW0hjetE.js.map → smart-card-B6vLxqa_.js.map} +1 -1
  383. package/dist/{structure-DuxKl954.js → structure-DZJ2wbAU.js} +2 -2
  384. package/dist/{structure-DuxKl954.js.map → structure-DZJ2wbAU.js.map} +1 -1
  385. package/dist/style.css +1 -1
  386. package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
  387. package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
  388. package/dist/{table-CFOWY9pQ.js → table-CBonSdTp.js} +534 -486
  389. package/dist/table-CBonSdTp.js.map +1 -0
  390. package/dist/{table-B4TE7iOV.js → table-CXSPHH25.js} +75 -71
  391. package/dist/table-CXSPHH25.js.map +1 -0
  392. package/dist/{tabs-e7ko9S2o.js → tabs-C4Kr_hCr.js} +50 -49
  393. package/dist/tabs-C4Kr_hCr.js.map +1 -0
  394. package/dist/{text-inputs-B1culiSK.js → text-inputs-jdkS3ReG.js} +9 -9
  395. package/dist/{text-inputs-B1culiSK.js.map → text-inputs-jdkS3ReG.js.map} +1 -1
  396. package/dist/{timelines-D3Sl9ueq.js → timelines-CoPwdJP0.js} +10 -10
  397. package/dist/{timelines-D3Sl9ueq.js.map → timelines-CoPwdJP0.js.map} +1 -1
  398. package/dist/{tooltip-8wz5S_Zr.js → tooltip-31NwIpTo.js} +4 -4
  399. package/dist/{tooltip-8wz5S_Zr.js.map → tooltip-31NwIpTo.js.map} +1 -1
  400. package/dist/{tree-CzUJHnFs.js → tree-CeYVzdFE.js} +6 -6
  401. package/dist/{tree-CzUJHnFs.js.map → tree-CeYVzdFE.js.map} +1 -1
  402. package/dist/typography/rich-text.js +1 -1
  403. package/dist/{typography-BQnine1k.js → typography-C7-YMW1S.js} +2 -2
  404. package/dist/{typography-BQnine1k.js.map → typography-C7-YMW1S.js.map} +1 -1
  405. package/dist/typography.js +1 -1
  406. package/dist/{upload-BOW6U2tI.js → upload-Hdm5gObf.js} +303 -291
  407. package/dist/upload-Hdm5gObf.js.map +1 -0
  408. package/dist/{upload-queue-qUXn1ykN.js → upload-queue-D0sYPuqo.js} +8 -8
  409. package/dist/{upload-queue-qUXn1ykN.js.map → upload-queue-D0sYPuqo.js.map} +1 -1
  410. package/dist/{usage-card-BeSLY0i0.js → usage-card-9s8hLDfn.js} +9 -9
  411. package/dist/{usage-card-BeSLY0i0.js.map → usage-card-9s8hLDfn.js.map} +1 -1
  412. package/dist/{utils-B6kKb8jB.js → utils-DhuoqFy4.js} +31 -37
  413. package/dist/utils-DhuoqFy4.js.map +1 -0
  414. package/dist/{value-inputs-skdVB2zh.js → value-inputs-D3aPgq9H.js} +15 -15
  415. package/dist/{value-inputs-skdVB2zh.js.map → value-inputs-D3aPgq9H.js.map} +1 -1
  416. package/dist/{value-typography-uAmWUAL1.js → value-typography-uSzzG9Gf.js} +32 -26
  417. package/dist/value-typography-uSzzG9Gf.js.map +1 -0
  418. package/dist/{workspace-DHeHv0qw.js → workspace-CC8Vchiu.js} +12 -12
  419. package/dist/{workspace-DHeHv0qw.js.map → workspace-CC8Vchiu.js.map} +1 -1
  420. package/docs/consumer-skill/examples/edit.tsx +3 -3
  421. package/docs/consumer-skill/references/agents-md.md +19 -19
  422. package/docs/consumer-skill/references/analytics.md +15 -0
  423. package/docs/consumer-skill/references/component-contracts.json +14724 -13057
  424. package/docs/consumer-skill/references/composition.md +21 -4
  425. package/docs/consumer-skill/references/design-contract.md +1 -0
  426. package/docs/consumer-skill/references/installation.md +51 -8
  427. package/docs/consumer-skill/references/integration.md +24 -1
  428. package/docs/consumer-skill/references/public-api.json +172 -34
  429. package/docs/consumer-skill/references/review.md +51 -11
  430. package/docs/consumer-skill/references/rhf-workflows.md +72 -0
  431. package/docs/consumer-skill/references/theming.md +7 -2
  432. package/docs/consumer-skill/references/tokens.json +1 -1
  433. package/docs/consumer-skill/scripts/composition-policy.mjs +144 -30
  434. package/docs/consumer-skill/scripts/setup-skills.mjs +46 -9
  435. package/package.json +4 -2
  436. package/templates/admin-shell-template.tsx +1 -2
  437. package/templates/customers-template.tsx +18 -16
  438. package/dist/accordion-B9MHG0cT.js.map +0 -1
  439. package/dist/ai-artifact-C58tQcBy.js.map +0 -1
  440. package/dist/auth-DTkkshS8.js.map +0 -1
  441. package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
  442. package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
  443. package/dist/combobox-BwzoXFSG.js +0 -884
  444. package/dist/combobox-BwzoXFSG.js.map +0 -1
  445. package/dist/comments-Dmpp0YIc.js.map +0 -1
  446. package/dist/data-display-BdgCAw8T.js.map +0 -1
  447. package/dist/date-picker-RlIzKom_.js +0 -1551
  448. package/dist/date-picker-RlIzKom_.js.map +0 -1
  449. package/dist/date-pickers-DY-CpXS1.js +0 -179
  450. package/dist/date-pickers-DY-CpXS1.js.map +0 -1
  451. package/dist/feedback-Dm4izqFn.js +0 -240
  452. package/dist/feedback-Dm4izqFn.js.map +0 -1
  453. package/dist/filters-DzgSJpMK.js.map +0 -1
  454. package/dist/form-field-BriWAXyg.js +0 -63
  455. package/dist/form-field-BriWAXyg.js.map +0 -1
  456. package/dist/forms-numeric-DIhghX1Q.js +0 -910
  457. package/dist/forms-numeric-DIhghX1Q.js.map +0 -1
  458. package/dist/header-DMMxG__r.js.map +0 -1
  459. package/dist/item-DjCcM18E.js.map +0 -1
  460. package/dist/layout.types-Cn7aUzJp.js +0 -20
  461. package/dist/layout.types-Cn7aUzJp.js.map +0 -1
  462. package/dist/mentions-0_4nWuI-.js.map +0 -1
  463. package/dist/message-g8p7eVtN.js +0 -128
  464. package/dist/message-g8p7eVtN.js.map +0 -1
  465. package/dist/navigation-C90-oQFq.js.map +0 -1
  466. package/dist/navigation-DaRjthVk.js.map +0 -1
  467. package/dist/number-CRU3kGuk.js.map +0 -1
  468. package/dist/overlays-BSgCtM2v.js.map +0 -1
  469. package/dist/popover-B85RenIl.js.map +0 -1
  470. package/dist/primitives-ByWgGUgt.js.map +0 -1
  471. package/dist/rich-text-Dth5E882.js +0 -78
  472. package/dist/rich-text-Dth5E882.js.map +0 -1
  473. package/dist/rich-text-editor-C1fOjBTd.js +0 -1195
  474. package/dist/rich-text-editor-C1fOjBTd.js.map +0 -1
  475. package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
  476. package/dist/safe-image-src-C6kQSMBZ.js +0 -17
  477. package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
  478. package/dist/sanitize-html-DsQmI48u.js.map +0 -1
  479. package/dist/settings-Bar5wiSo.js +0 -167
  480. package/dist/settings-Bar5wiSo.js.map +0 -1
  481. package/dist/sidebar-D-JYMMbY.js +0 -686
  482. package/dist/sidebar-D-JYMMbY.js.map +0 -1
  483. package/dist/sidebar-f9gRWXIR.js.map +0 -1
  484. package/dist/table-B4TE7iOV.js.map +0 -1
  485. package/dist/table-CFOWY9pQ.js.map +0 -1
  486. package/dist/tabs-e7ko9S2o.js.map +0 -1
  487. package/dist/upload-BOW6U2tI.js.map +0 -1
  488. package/dist/utils-B6kKb8jB.js.map +0 -1
  489. package/dist/value-typography-uAmWUAL1.js.map +0 -1
@@ -1,31 +1,31 @@
1
1
  "use client";
2
2
  import { f as e, m as t } from "../ui-provider-C-74NVLc.js";
3
3
  import { useStrings as n } from "../lib/strings.js";
4
- import { t as r } from "../utils-B6kKb8jB.js";
5
- import { n as i } from "../buttons-BedGfygC.js";
6
- import { c as a, o, s } from "../typography-BQnine1k.js";
4
+ import { t as r } from "../utils-DhuoqFy4.js";
5
+ import { n as i } from "../buttons-DeW0bQeK.js";
6
+ import { c as a, o, s } from "../typography-C7-YMW1S.js";
7
7
  import { c } from "../text.styles-B64My8RZ.js";
8
8
  import { t as l } from "../focus-recipes-B653VaLq.js";
9
- import { r as u, t as d } from "../structure-DuxKl954.js";
9
+ import { r as u, t as d } from "../structure-DZJ2wbAU.js";
10
10
  import { i as f, r as p, t as m } from "../tone-recipes-BPsRAvhu.js";
11
- import { t as h } from "../smart-card-CW0hjetE.js";
12
- import { t as g } from "../progress-BJhQP9WX.js";
13
- import { r as _ } from "../skeleton-BapcJd9C.js";
14
- import { t as v } from "../interaction-recipes-XR9ZpVYL.js";
15
- import { a as y, i as b, r as x } from "../value-typography-uAmWUAL1.js";
16
- import { _ as S, g as C } from "../primitives-ByWgGUgt.js";
17
- import { a as w } from "../number-CRU3kGuk.js";
18
- import { t as T } from "../icon-badge-DZF-YjQp.js";
19
- import { t as E } from "../badge-xIiV_E7f.js";
20
- import { t as ee } from "../chart-Darg_0Kv.js";
21
- import { n as te } from "../display-KsZLw9Ov.js";
22
- import { n as ne, t as re } from "../usage-card-BeSLY0i0.js";
23
- import { useId as D, useMemo as O, useSyncExternalStore as ie } from "react";
24
- import { Fragment as ae, jsx as k, jsxs as A } from "react/jsx-runtime";
25
- import { ArrowDown as j, ArrowRight as oe, ArrowUp as M, ArrowUpRight as se, Calendar as ce, Equal as le, Minus as ue } from "lucide-react";
26
- import { Area as N, AreaChart as P, ResponsiveContainer as F } from "recharts";
11
+ import { t as h } from "../smart-card-B6vLxqa_.js";
12
+ import { t as g } from "../progress-DZFXXzPs.js";
13
+ import { r as _ } from "../skeleton-DDgdhmu9.js";
14
+ import { t as v } from "../interaction-recipes-4wZ2tvfb.js";
15
+ import { a as y, i as b, o as x, r as S } from "../value-typography-uSzzG9Gf.js";
16
+ import { _ as C, g as w } from "../primitives-BkkQjYl7.js";
17
+ import { a as T } from "../number-CYqBcrSj.js";
18
+ import { t as E } from "../icon-badge-npxF1SLX.js";
19
+ import { t as D } from "../badge-wWauMgAt.js";
20
+ import { t as O } from "../chart-I7ROnsl8.js";
21
+ import { n as ee } from "../display-CT_N2a3w.js";
22
+ import { n as te, t as ne } from "../usage-card-9s8hLDfn.js";
23
+ import { useId as k, useMemo as A, useSyncExternalStore as re } from "react";
24
+ import { Fragment as ie, jsx as j, jsxs as M } from "react/jsx-runtime";
25
+ import { ArrowDown as N, ArrowRight as ae, ArrowUp as P, ArrowUpRight as oe, Calendar as se, Equal as ce, Minus as le } from "lucide-react";
26
+ import { Area as F, AreaChart as I, ResponsiveContainer as L } from "recharts";
27
27
  //#region src/components/blocks/analytics/analytics.strings.ts
28
- var I = {
28
+ var R = {
29
29
  metricErrorLabel: "Unable to load metric",
30
30
  comparisonTitle: "Comparison",
31
31
  heatmapDayLabels: [
@@ -56,28 +56,28 @@ var I = {
56
56
  };
57
57
  //#endregion
58
58
  //#region src/components/blocks/analytics/format-metric-value.ts
59
- function L(e, t = {}) {
59
+ function z(e, t = {}) {
60
60
  if (e.value === null || e.value === void 0) return "—";
61
61
  let n = e.value, r = typeof n == "number" ? n : null, { locale: i } = t;
62
62
  switch (e.valueType) {
63
- case "currency": return r === null ? String(n) : w({
63
+ case "currency": return r === null ? String(n) : T({
64
64
  amount: r,
65
65
  currency: e.currency ?? t.defaultCurrency ?? "USD",
66
66
  locale: i,
67
67
  formatMode: t.moneyFormatMode ?? "with_code"
68
68
  }) ?? "—";
69
- case "percentage": return r === null ? String(n) : y(r, { locale: i });
70
- case "duration": return r === null ? String(n) : x(r, { locale: i });
69
+ case "percentage": return r === null ? String(n) : x(r, { locale: i });
70
+ case "duration": return r === null ? String(n) : S(r, { locale: i });
71
71
  case "number": return r === null ? String(n) : b(r, { locale: i });
72
72
  default: return String(n);
73
73
  }
74
74
  }
75
- function de(e) {
75
+ function ue(e) {
76
76
  return e.trend ? e.trend : e.change?.direction === "up" ? "positive" : e.change?.direction === "down" ? "negative" : "neutral";
77
77
  }
78
78
  //#endregion
79
79
  //#region src/components/blocks/analytics/atoms/metric-trend-chip.tsx
80
- var fe = {
80
+ var de = {
81
81
  positive: {
82
82
  text: "text-success",
83
83
  badge: `${f.success.tint} ${f.success.ink}`,
@@ -93,134 +93,134 @@ var fe = {
93
93
  badge: "bg-muted text-muted-foreground",
94
94
  arrow: "text-muted-foreground"
95
95
  }
96
- }, R = {
96
+ }, B = {
97
97
  sm: "size-icon-sm",
98
98
  md: "size-icon-md",
99
99
  lg: "size-icon"
100
- }, z = {
100
+ }, V = {
101
101
  sm: "xxs",
102
102
  md: "xs",
103
103
  lg: "sm"
104
- }, pe = {
104
+ }, fe = {
105
105
  sm: "px-space-sm py-space-2xs",
106
106
  md: "px-space-md py-space-2xs",
107
107
  lg: "px-space-md py-space-xs"
108
108
  };
109
- function me(e, t) {
109
+ function pe(e, t) {
110
110
  return e || (t === "up" ? "positive" : t === "down" ? "negative" : "neutral");
111
111
  }
112
- function B({ change: e, trend: t, size: n = "md", variant: i = "default", className: o }) {
113
- let s = me(t, e.direction), c = e.direction === "up" ? M : e.direction === "down" ? j : ue, l = fe[s], u = String(e.value), d = e.direction === "up" ? "+" : (e.direction, "");
114
- return i === "inline" ? /* @__PURE__ */ A(S, {
112
+ function H({ change: e, trend: t, size: n = "md", variant: i = "default", className: o }) {
113
+ let s = pe(t, e.direction), c = e.direction === "up" ? P : e.direction === "down" ? N : le, l = de[s], u = String(e.value), d = e.direction === "up" ? "+" : (e.direction, "");
114
+ return i === "inline" ? /* @__PURE__ */ M(C, {
115
115
  type: "inherit",
116
- size: z[n],
116
+ size: V[n],
117
117
  weight: "medium",
118
118
  className: r("metric-trend-chip--component", l.text, "tabular-nums", o),
119
119
  children: [d, u]
120
- }) : i === "compact" ? /* @__PURE__ */ A("span", {
120
+ }) : i === "compact" ? /* @__PURE__ */ M("span", {
121
121
  className: r("inline-flex items-center gap-space-2xs", l.text, o),
122
- children: [/* @__PURE__ */ k(c, {
123
- className: R[n],
122
+ children: [/* @__PURE__ */ j(c, {
123
+ className: B[n],
124
124
  strokeWidth: 2.5,
125
125
  "aria-hidden": "true"
126
- }), /* @__PURE__ */ k(S, {
126
+ }), /* @__PURE__ */ j(C, {
127
127
  type: "inherit",
128
- size: z[n],
128
+ size: V[n],
129
129
  weight: "semibold",
130
130
  className: "tabular-nums",
131
131
  children: u
132
132
  })]
133
- }) : i === "badge" ? /* @__PURE__ */ A("span", {
134
- className: r("inline-flex items-center gap-space-xs rounded-radius", l.badge, pe[n], o),
133
+ }) : i === "badge" ? /* @__PURE__ */ M("span", {
134
+ className: r("inline-flex items-center gap-space-xs rounded-radius", l.badge, fe[n], o),
135
135
  children: [
136
- /* @__PURE__ */ k(c, {
137
- className: R[n],
136
+ /* @__PURE__ */ j(c, {
137
+ className: B[n],
138
138
  strokeWidth: 2.5,
139
139
  "aria-hidden": "true"
140
140
  }),
141
- /* @__PURE__ */ k(S, {
141
+ /* @__PURE__ */ j(C, {
142
142
  type: "inherit",
143
- size: z[n],
143
+ size: V[n],
144
144
  weight: "semibold",
145
145
  className: "tabular-nums",
146
146
  children: u
147
147
  }),
148
- !!e.label && /* @__PURE__ */ k(a, {
148
+ !!e.label && /* @__PURE__ */ j(a, {
149
149
  type: "inherit",
150
150
  tag: "span",
151
- size: z[n],
151
+ size: V[n],
152
152
  children: e.label
153
153
  })
154
154
  ]
155
- }) : /* @__PURE__ */ A("span", {
155
+ }) : /* @__PURE__ */ M("span", {
156
156
  className: r("inline-flex items-center gap-space-xs", l.text, o),
157
157
  children: [
158
- /* @__PURE__ */ k(c, {
159
- className: R[n],
158
+ /* @__PURE__ */ j(c, {
159
+ className: B[n],
160
160
  strokeWidth: 2.5,
161
161
  "aria-hidden": "true"
162
162
  }),
163
- /* @__PURE__ */ k(S, {
163
+ /* @__PURE__ */ j(C, {
164
164
  type: "inherit",
165
- size: z[n],
165
+ size: V[n],
166
166
  weight: "semibold",
167
167
  className: "tabular-nums",
168
168
  children: u
169
169
  }),
170
- !!e.label && /* @__PURE__ */ k(a, {
170
+ !!e.label && /* @__PURE__ */ j(a, {
171
171
  tag: "span",
172
- size: z[n],
172
+ size: V[n],
173
173
  type: "secondary",
174
174
  children: e.label
175
175
  })
176
176
  ]
177
177
  });
178
178
  }
179
- B.displayName = "MetricTrendChip";
179
+ H.displayName = "MetricTrendChip";
180
180
  //#endregion
181
181
  //#region src/lib/use-prefers-reduced-motion.ts
182
- var V = "(prefers-reduced-motion: reduce)";
183
- function he(e) {
182
+ var U = "(prefers-reduced-motion: reduce)";
183
+ function me(e) {
184
184
  if (typeof window > "u" || typeof window.matchMedia != "function") return () => {};
185
- let t = window.matchMedia(V);
185
+ let t = window.matchMedia(U);
186
186
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
187
187
  }
188
- function ge() {
189
- return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(V).matches;
188
+ function he() {
189
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(U).matches;
190
190
  }
191
- function _e() {
191
+ function ge() {
192
192
  return !0;
193
193
  }
194
- function H() {
195
- return ie(he, ge, _e);
194
+ function W() {
195
+ return re(me, he, ge);
196
196
  }
197
197
  //#endregion
198
198
  //#region src/components/blocks/analytics/atoms/metric-sparkline.tsx
199
- var ve = {
199
+ var _e = {
200
200
  positive: "var(--success)",
201
201
  negative: "var(--destructive)",
202
202
  neutral: "var(--muted-foreground)"
203
203
  };
204
- function U({ data: e, trend: t = "neutral", color: n, className: i, animated: a = !0, "aria-label": o = "Trend sparkline" }) {
205
- let s = D(), c = H(), l = O(() => `metric-spark-${s.replaceAll(":", "")}`, [s]), u = n ?? ve[t], d = O(() => !Array.isArray(e) || e.length === 0 ? [] : e.map((e, t) => ({
204
+ function G({ data: e, trend: t = "neutral", color: n, className: i, animated: a = !0, "aria-label": o = "Trend sparkline" }) {
205
+ let s = k(), c = W(), l = A(() => `metric-spark-${s.replaceAll(":", "")}`, [s]), u = n ?? _e[t], d = A(() => !Array.isArray(e) || e.length === 0 ? [] : e.map((e, t) => ({
206
206
  i: t,
207
207
  v: e
208
208
  })), [e]);
209
- return d.length === 0 ? /* @__PURE__ */ k("div", {
209
+ return d.length === 0 ? /* @__PURE__ */ j("div", {
210
210
  className: r("metric-sparkline--component", "h-full w-full", i),
211
211
  "aria-hidden": "true"
212
- }) : /* @__PURE__ */ k("div", {
212
+ }) : /* @__PURE__ */ j("div", {
213
213
  className: r("metric-sparkline--component h-full w-full", i),
214
214
  role: "img",
215
215
  "aria-label": o,
216
- children: /* @__PURE__ */ k(F, {
216
+ children: /* @__PURE__ */ j(L, {
217
217
  width: "100%",
218
218
  height: "100%",
219
219
  initialDimension: {
220
220
  width: 1,
221
221
  height: 1
222
222
  },
223
- children: /* @__PURE__ */ A(P, {
223
+ children: /* @__PURE__ */ M(I, {
224
224
  data: d,
225
225
  margin: {
226
226
  top: 2,
@@ -228,22 +228,22 @@ function U({ data: e, trend: t = "neutral", color: n, className: i, animated: a
228
228
  bottom: 0,
229
229
  left: 0
230
230
  },
231
- children: [/* @__PURE__ */ k("defs", { children: /* @__PURE__ */ A("linearGradient", {
231
+ children: [/* @__PURE__ */ j("defs", { children: /* @__PURE__ */ M("linearGradient", {
232
232
  id: l,
233
233
  x1: "0",
234
234
  y1: "0",
235
235
  x2: "0",
236
236
  y2: "1",
237
- children: [/* @__PURE__ */ k("stop", {
237
+ children: [/* @__PURE__ */ j("stop", {
238
238
  offset: "0%",
239
239
  stopColor: u,
240
240
  stopOpacity: .25
241
- }), /* @__PURE__ */ k("stop", {
241
+ }), /* @__PURE__ */ j("stop", {
242
242
  offset: "100%",
243
243
  stopColor: u,
244
244
  stopOpacity: 0
245
245
  })]
246
- }) }), /* @__PURE__ */ k(N, {
246
+ }) }), /* @__PURE__ */ j(F, {
247
247
  type: "monotone",
248
248
  dataKey: "v",
249
249
  stroke: u,
@@ -258,60 +258,60 @@ function U({ data: e, trend: t = "neutral", color: n, className: i, animated: a
258
258
  })
259
259
  });
260
260
  }
261
- U.displayName = "MetricSparkline";
261
+ G.displayName = "MetricSparkline";
262
262
  //#endregion
263
263
  //#region src/components/blocks/analytics/atoms/metric-skeleton.tsx
264
- var W = ({ className: e }) => /* @__PURE__ */ k(_, { className: e });
265
- function G({ variant: e = "default", size: t = "md", className: n }) {
266
- let i = /* @__PURE__ */ A(d, {
264
+ var K = ({ className: e }) => /* @__PURE__ */ j(_, { className: e });
265
+ function q({ variant: e = "default", size: t = "md", className: n }) {
266
+ let i = /* @__PURE__ */ M(d, {
267
267
  gap: "lg",
268
268
  children: [
269
- /* @__PURE__ */ k(W, { className: "h-3 w-24" }),
270
- /* @__PURE__ */ A(d, {
269
+ /* @__PURE__ */ j(K, { className: "h-3 w-24" }),
270
+ /* @__PURE__ */ M(d, {
271
271
  gap: "md",
272
- children: [/* @__PURE__ */ k(W, { className: t === "lg" ? "h-9 w-40" : "h-7 w-32" }), /* @__PURE__ */ k(W, { className: "h-3 w-20" })]
272
+ children: [/* @__PURE__ */ j(K, { className: t === "lg" ? "h-9 w-40" : "h-7 w-32" }), /* @__PURE__ */ j(K, { className: "h-3 w-20" })]
273
273
  }),
274
- /* @__PURE__ */ k(W, { className: "h-8 w-full" })
274
+ /* @__PURE__ */ j(K, { className: "h-8 w-full" })
275
275
  ]
276
276
  });
277
- return e === "card" || e === "bordered" || e === "accent" || e === "colored" ? /* @__PURE__ */ k(h, {
277
+ return e === "card" || e === "bordered" || e === "accent" || e === "colored" ? /* @__PURE__ */ j(h, {
278
278
  surface: e === "card" ? void 0 : "card",
279
279
  className: r("metric-skeleton--component", n),
280
280
  "aria-busy": "true",
281
281
  "aria-live": "polite",
282
282
  children: i
283
- }) : e === "compact" ? /* @__PURE__ */ A("div", {
283
+ }) : e === "compact" ? /* @__PURE__ */ M("div", {
284
284
  className: r("flex items-center gap-space-lg", n),
285
285
  "aria-busy": "true",
286
286
  children: [
287
- /* @__PURE__ */ k(W, { className: "size-avatar rounded-radius" }),
288
- /* @__PURE__ */ A(d, {
287
+ /* @__PURE__ */ j(K, { className: "size-avatar rounded-radius" }),
288
+ /* @__PURE__ */ M(d, {
289
289
  gap: "sm",
290
290
  className: "flex-1",
291
- children: [/* @__PURE__ */ k(W, { className: "h-3 w-20" }), /* @__PURE__ */ k(W, { className: "h-4 w-28" })]
291
+ children: [/* @__PURE__ */ j(K, { className: "h-3 w-20" }), /* @__PURE__ */ j(K, { className: "h-4 w-28" })]
292
292
  }),
293
- /* @__PURE__ */ k(W, { className: "h-5 w-12 rounded-full" })
293
+ /* @__PURE__ */ j(K, { className: "h-5 w-12 rounded-full" })
294
294
  ]
295
- }) : e === "minimal" ? /* @__PURE__ */ A("div", {
295
+ }) : e === "minimal" ? /* @__PURE__ */ M("div", {
296
296
  className: r("inline-flex items-baseline gap-space-md", n),
297
297
  "aria-busy": "true",
298
- children: [/* @__PURE__ */ k(W, { className: "h-3 w-12" }), /* @__PURE__ */ k(W, { className: "h-3 w-16" })]
299
- }) : /* @__PURE__ */ A("div", {
298
+ children: [/* @__PURE__ */ j(K, { className: "h-3 w-12" }), /* @__PURE__ */ j(K, { className: "h-3 w-16" })]
299
+ }) : /* @__PURE__ */ M("div", {
300
300
  className: r("flex flex-col gap-space-sm p-surface", n),
301
301
  "aria-busy": "true",
302
302
  children: [
303
- /* @__PURE__ */ k(W, { className: "h-3 w-20" }),
304
- /* @__PURE__ */ k(W, { className: "h-5 w-28" }),
305
- /* @__PURE__ */ k(W, { className: "mt-1 h-6 w-full" })
303
+ /* @__PURE__ */ j(K, { className: "h-3 w-20" }),
304
+ /* @__PURE__ */ j(K, { className: "h-5 w-28" }),
305
+ /* @__PURE__ */ j(K, { className: "mt-1 h-6 w-full" })
306
306
  ]
307
307
  });
308
308
  }
309
- G.displayName = "MetricSkeleton";
309
+ q.displayName = "MetricSkeleton";
310
310
  //#endregion
311
311
  //#region src/components/blocks/analytics/use-metric-format-options.ts
312
- function K() {
312
+ function ve() {
313
313
  let { locale: n } = e(), { defaultCurrency: r, formatMode: i } = t();
314
- return O(() => ({
314
+ return A(() => ({
315
315
  locale: n,
316
316
  defaultCurrency: r,
317
317
  moneyFormatMode: i
@@ -323,50 +323,26 @@ function K() {
323
323
  }
324
324
  //#endregion
325
325
  //#region src/components/blocks/analytics/metric/metric.tsx
326
- var q = {
327
- default: {
328
- border: "border-border",
329
- bg: "bg-card",
330
- bar: "bg-foreground",
331
- dot: "bg-foreground",
332
- ring: "ring-border"
333
- },
334
- primary: {
335
- border: f.primary.edge,
336
- bg: f.primary.wash,
337
- bar: f.primary.solid,
338
- dot: f.primary.solid,
339
- ring: f.primary.halo
340
- },
341
- success: {
342
- border: f.success.edge,
343
- bg: f.success.wash,
344
- bar: f.success.solid,
345
- dot: f.success.solid,
346
- ring: f.success.halo
347
- },
348
- warning: {
349
- border: f.warning.edge,
350
- bg: f.warning.wash,
351
- bar: f.warning.solid,
352
- dot: f.warning.solid,
353
- ring: f.warning.halo
354
- },
355
- danger: {
356
- border: f.destructive.edge,
357
- bg: f.destructive.wash,
358
- bar: f.destructive.solid,
359
- dot: f.destructive.solid,
360
- ring: f.destructive.halo
326
+ var ye = {
327
+ ...f,
328
+ neutral: {
329
+ edge: "border-border",
330
+ wash: "bg-card",
331
+ solid: "bg-foreground"
361
332
  },
362
- info: {
363
- border: f.info.edge,
364
- bg: f.info.wash,
365
- bar: f.info.solid,
366
- dot: f.info.solid,
367
- ring: f.info.halo
333
+ secondary: {
334
+ edge: "border-border",
335
+ wash: "bg-secondary text-secondary-foreground",
336
+ solid: "bg-secondary-foreground"
368
337
  }
369
- }, ye = {
338
+ }, be = {
339
+ default: "neutral",
340
+ primary: "primary",
341
+ success: "success",
342
+ warning: "warning",
343
+ danger: "destructive",
344
+ info: "info"
345
+ }, xe = {
370
346
  sm: "sm",
371
347
  md: "base",
372
348
  lg: "base"
@@ -374,72 +350,72 @@ var q = {
374
350
  sm: "2xl",
375
351
  md: "2xl",
376
352
  lg: "3xl"
377
- }, be = {
353
+ }, Se = {
378
354
  sm: "@max-[11rem]/metric-card:text-xl",
379
355
  md: "@max-[11rem]/metric-card:text-xl",
380
356
  lg: "@max-[16rem]/metric-card:text-2xl @max-[11rem]/metric-card:text-xl"
381
- }, xe = {
357
+ }, Ce = {
382
358
  sm: "h-control-sm",
383
359
  md: "h-control",
384
360
  lg: "h-control-lg"
385
- }, Se = 16;
361
+ }, we = 16;
386
362
  function Y(e) {
387
- let { data: t, variant: n = "default", size: i = "md", colorScheme: o = "default", showSparkline: s = !0, showChange: c = !0, showIcon: l = !0, loading: u = !1, error: d = !1, errorLabel: f, progress: p = 0, className: m, "aria-label": g } = e, _ = r("metric--component", m), v = K(), y = O(() => L(t, v), [t, v]), b = O(() => de(t), [t]);
388
- if (u) return /* @__PURE__ */ k(G, {
363
+ let { data: t, variant: n = "default", size: i = "md", tone: o, colorScheme: s = "default", showSparkline: c = !0, showChange: l = !0, showIcon: u = !0, loading: d = !1, error: f = !1, errorLabel: p, progress: m = 0, className: g, "aria-label": _ } = e, v = r("metric--component", g), y = ve(), b = A(() => z(t, y), [t, y]), x = A(() => ue(t), [t]);
364
+ if (d) return /* @__PURE__ */ j(q, {
389
365
  variant: n,
390
366
  size: i,
391
- className: _
367
+ className: v
392
368
  });
393
- if (d) return /* @__PURE__ */ k(h, {
394
- className: _,
369
+ if (f) return /* @__PURE__ */ j(h, {
370
+ className: v,
395
371
  contentClassName: "flex items-center justify-center",
396
- children: /* @__PURE__ */ k(a, {
372
+ children: /* @__PURE__ */ j(a, {
397
373
  type: "inherit",
398
- children: f ?? I.metricErrorLabel
374
+ children: p ?? R.metricErrorLabel
399
375
  })
400
376
  });
401
- let x = {
377
+ let S = be[s], C = {
402
378
  data: t,
403
- formattedValue: y,
404
- trend: b,
379
+ formattedValue: b,
380
+ trend: x,
405
381
  size: i,
406
- showSparkline: s,
407
- showChange: c,
408
- showIcon: l,
409
- colorScheme: o,
410
- ariaLabel: g ?? t.label,
411
- className: _
382
+ showSparkline: c,
383
+ showChange: l,
384
+ showIcon: u,
385
+ tone: o ?? (n === "colored" && S === "neutral" ? "primary" : S),
386
+ ariaLabel: _ ?? t.label,
387
+ className: v
412
388
  };
413
389
  switch (n) {
414
- case "card": return /* @__PURE__ */ k(we, { ...x });
415
- case "compact": return /* @__PURE__ */ k(Te, { ...x });
416
- case "minimal": return /* @__PURE__ */ k(Ee, { ...x });
417
- case "bordered": return /* @__PURE__ */ k(De, { ...x });
418
- case "accent": return /* @__PURE__ */ k(Oe, { ...x });
419
- case "colored": return /* @__PURE__ */ k(ke, {
420
- ...x,
421
- progress: p
390
+ case "card": return /* @__PURE__ */ j(Ee, { ...C });
391
+ case "compact": return /* @__PURE__ */ j(De, { ...C });
392
+ case "minimal": return /* @__PURE__ */ j(Oe, { ...C });
393
+ case "bordered": return /* @__PURE__ */ j(ke, { ...C });
394
+ case "accent": return /* @__PURE__ */ j(Ae, { ...C });
395
+ case "colored": return /* @__PURE__ */ j(je, {
396
+ ...C,
397
+ progress: m
422
398
  });
423
- default: return /* @__PURE__ */ k(Ce, { ...x });
399
+ default: return /* @__PURE__ */ j(Te, { ...C });
424
400
  }
425
401
  }
426
402
  Y.displayName = "Metric";
427
- function Ce({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, showChange: c, showIcon: l, ariaLabel: u, className: f }) {
403
+ function Te({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, showChange: c, showIcon: l, ariaLabel: u, className: f }) {
428
404
  let p = e.icon;
429
- return /* @__PURE__ */ A(d, {
405
+ return /* @__PURE__ */ M(d, {
430
406
  gap: "xs",
431
407
  className: f,
432
408
  "aria-label": u,
433
409
  children: [
434
- /* @__PURE__ */ A(d, {
410
+ /* @__PURE__ */ M(d, {
435
411
  direction: "horizontal",
436
412
  align: "center",
437
413
  gap: "sm",
438
414
  className: "min-w-0 text-muted-foreground",
439
- children: [!!l && !!p && /* @__PURE__ */ k(p, {
415
+ children: [!!l && !!p && /* @__PURE__ */ j(p, {
440
416
  className: "size-icon-md shrink-0",
441
417
  "aria-hidden": "true"
442
- }), /* @__PURE__ */ k(a, {
418
+ }), /* @__PURE__ */ j(a, {
443
419
  size: "xs",
444
420
  type: "secondary",
445
421
  weight: "medium",
@@ -447,34 +423,34 @@ function Ce({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, s
447
423
  children: e.label
448
424
  })]
449
425
  }),
450
- /* @__PURE__ */ k(s, {
426
+ /* @__PURE__ */ j(s, {
451
427
  tag: "h5",
452
- size: ye[i],
428
+ size: xe[i],
453
429
  className: "truncate tabular-nums text-inherit",
454
430
  title: t,
455
431
  children: t
456
432
  }),
457
- !!c && !!e.change && /* @__PURE__ */ k("div", {
433
+ !!c && !!e.change && /* @__PURE__ */ j("div", {
458
434
  className: "min-w-0",
459
- children: /* @__PURE__ */ k(B, {
435
+ children: /* @__PURE__ */ j(H, {
460
436
  change: e.change,
461
437
  trend: e.trend,
462
438
  size: i,
463
439
  variant: "compact"
464
440
  })
465
441
  }),
466
- !!e.subtitle && /* @__PURE__ */ k(a, {
442
+ !!e.subtitle && /* @__PURE__ */ j(a, {
467
443
  size: "xs",
468
444
  type: "secondary",
469
445
  className: "truncate",
470
446
  children: e.subtitle
471
447
  }),
472
- !!o && !!e.sparkline?.length && /* @__PURE__ */ k(U, {
448
+ !!o && !!e.sparkline?.length && /* @__PURE__ */ j(G, {
473
449
  data: e.sparkline,
474
450
  trend: n,
475
- className: r("mt-auto", xe[i])
451
+ className: r("mt-auto", Ce[i])
476
452
  }),
477
- !!e.footer && /* @__PURE__ */ k(a, {
453
+ !!e.footer && /* @__PURE__ */ j(a, {
478
454
  size: "xs",
479
455
  type: "discrete",
480
456
  className: "truncate",
@@ -483,47 +459,47 @@ function Ce({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, s
483
459
  ]
484
460
  });
485
461
  }
486
- function we({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, showChange: c, showIcon: u, ariaLabel: f, className: p }) {
462
+ function Ee({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, showChange: c, showIcon: u, ariaLabel: f, className: p }) {
487
463
  let m = e.icon, g = !!(e.href || e.onClick);
488
- return /* @__PURE__ */ A(h, {
489
- title: /* @__PURE__ */ k(a, {
464
+ return /* @__PURE__ */ M(h, {
465
+ title: /* @__PURE__ */ j(a, {
490
466
  tag: "span",
491
467
  size: "xs",
492
468
  type: "secondary",
493
469
  weight: "medium",
494
470
  children: e.label
495
471
  }),
496
- icon: u && m ? /* @__PURE__ */ k(m, {
472
+ icon: u && m ? /* @__PURE__ */ j(m, {
497
473
  className: "size-icon",
498
474
  "aria-hidden": "true"
499
475
  }) : null,
500
476
  tooltip: e.tooltip,
501
477
  className: r("@container/metric-card", g && "relative transition-shadow hover:shadow-md [&_.card--tooltip-trigger]:relative [&_.card--tooltip-trigger]:z-10", p),
502
478
  "aria-label": f,
503
- children: [g && (e.href ? /* @__PURE__ */ k("a", {
479
+ children: [g && (e.href ? /* @__PURE__ */ j("a", {
504
480
  href: e.href,
505
481
  onClick: e.onClick,
506
482
  "aria-label": f,
507
483
  className: `metric--action absolute inset-0 z-0 rounded-surface focus-visible:outline-none ${l.inset}`
508
- }) : /* @__PURE__ */ k("button", {
484
+ }) : /* @__PURE__ */ j("button", {
509
485
  type: "button",
510
486
  onClick: e.onClick,
511
487
  "aria-label": f,
512
488
  className: `metric--action ${v.nativeButtonReset} absolute inset-0 z-0 cursor-pointer rounded-surface focus-visible:outline-none ${l.inset}`
513
- })), /* @__PURE__ */ A(d, {
489
+ })), /* @__PURE__ */ M(d, {
514
490
  gap: "normal",
515
491
  children: [
516
- /* @__PURE__ */ A(d, {
492
+ /* @__PURE__ */ M(d, {
517
493
  direction: "horizontal",
518
494
  align: "baseline",
519
495
  justify: "between",
520
496
  gap: "sm",
521
- children: [/* @__PURE__ */ k(s, {
497
+ children: [/* @__PURE__ */ j(s, {
522
498
  tag: i === "sm" ? "h5" : i === "lg" ? "h3" : "h4",
523
499
  size: J[i],
524
- className: r("max-w-full break-words tabular-nums text-inherit", be[i]),
500
+ className: r("max-w-full break-words tabular-nums text-inherit", Se[i]),
525
501
  children: t
526
- }), !!c && !!e.change && /* @__PURE__ */ k(B, {
502
+ }), !!c && !!e.change && /* @__PURE__ */ j(H, {
527
503
  change: e.change,
528
504
  trend: e.trend,
529
505
  size: i,
@@ -531,16 +507,16 @@ function we({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, s
531
507
  className: "@max-[16rem]/metric-card:px-space-xs"
532
508
  })]
533
509
  }),
534
- !!e.subtitle && /* @__PURE__ */ k(a, {
510
+ !!e.subtitle && /* @__PURE__ */ j(a, {
535
511
  type: "secondary",
536
512
  children: e.subtitle
537
513
  }),
538
- !!o && !!e.sparkline?.length && /* @__PURE__ */ k(U, {
514
+ !!o && !!e.sparkline?.length && /* @__PURE__ */ j(G, {
539
515
  data: e.sparkline,
540
516
  trend: n,
541
517
  className: i === "lg" ? "h-control-lg" : "h-control"
542
518
  }),
543
- !!e.footer && /* @__PURE__ */ k(a, {
519
+ !!e.footer && /* @__PURE__ */ j(a, {
544
520
  size: "xs",
545
521
  type: "secondary",
546
522
  children: e.footer
@@ -549,26 +525,26 @@ function we({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, s
549
525
  })]
550
526
  });
551
527
  }
552
- function Te({ data: e, formattedValue: t, size: n, showChange: i, showIcon: o, ariaLabel: s, className: c }) {
528
+ function De({ data: e, formattedValue: t, size: n, showChange: i, showIcon: o, ariaLabel: s, className: c }) {
553
529
  let l = e.icon;
554
- return /* @__PURE__ */ A("div", {
530
+ return /* @__PURE__ */ M("div", {
555
531
  className: r("flex items-center gap-space-lg", c),
556
532
  "aria-label": s,
557
533
  children: [
558
- !!o && !!l && /* @__PURE__ */ k(T, {
534
+ !!o && !!l && /* @__PURE__ */ j(E, {
559
535
  icon: l,
560
536
  tone: "secondary",
561
537
  shape: "square",
562
538
  size: "md"
563
539
  }),
564
- /* @__PURE__ */ A("div", {
540
+ /* @__PURE__ */ M("div", {
565
541
  className: "min-w-0 flex-1",
566
- children: [/* @__PURE__ */ k(a, {
542
+ children: [/* @__PURE__ */ j(a, {
567
543
  size: "xs",
568
544
  type: "secondary",
569
545
  className: "truncate",
570
546
  children: e.label
571
- }), /* @__PURE__ */ k(S, {
547
+ }), /* @__PURE__ */ j(C, {
572
548
  type: "inherit",
573
549
  size: n === "sm" ? "sm" : "base",
574
550
  weight: "bold",
@@ -576,7 +552,7 @@ function Te({ data: e, formattedValue: t, size: n, showChange: i, showIcon: o, a
576
552
  children: t
577
553
  })]
578
554
  }),
579
- !!i && !!e.change && /* @__PURE__ */ k(B, {
555
+ !!i && !!e.change && /* @__PURE__ */ j(H, {
580
556
  change: e.change,
581
557
  trend: e.trend,
582
558
  size: n,
@@ -586,25 +562,25 @@ function Te({ data: e, formattedValue: t, size: n, showChange: i, showIcon: o, a
586
562
  ]
587
563
  });
588
564
  }
589
- function Ee({ data: e, formattedValue: t, size: n, showChange: i, ariaLabel: o, className: s }) {
590
- return /* @__PURE__ */ A("span", {
565
+ function Oe({ data: e, formattedValue: t, size: n, showChange: i, ariaLabel: o, className: s }) {
566
+ return /* @__PURE__ */ M("span", {
591
567
  className: r("inline-flex items-baseline gap-space-md", s),
592
568
  "aria-label": o,
593
569
  children: [
594
- /* @__PURE__ */ A(a, {
570
+ /* @__PURE__ */ M(a, {
595
571
  tag: "span",
596
572
  size: n === "lg" ? "sm" : "xs",
597
573
  type: "secondary",
598
574
  children: [e.label, ":"]
599
575
  }),
600
- /* @__PURE__ */ k(S, {
576
+ /* @__PURE__ */ j(C, {
601
577
  type: "inherit",
602
578
  size: n === "lg" ? "sm" : "xs",
603
579
  weight: "semibold",
604
580
  className: "tabular-nums",
605
581
  children: t
606
582
  }),
607
- !!i && !!e.change && /* @__PURE__ */ k(B, {
583
+ !!i && !!e.change && /* @__PURE__ */ j(H, {
608
584
  change: e.change,
609
585
  trend: e.trend,
610
586
  size: "sm",
@@ -613,55 +589,55 @@ function Ee({ data: e, formattedValue: t, size: n, showChange: i, ariaLabel: o,
613
589
  ]
614
590
  });
615
591
  }
616
- function De({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, showChange: c, showIcon: l, colorScheme: u, ariaLabel: f, className: p }) {
617
- let m = e.icon, g = q[u];
618
- return /* @__PURE__ */ k(h, {
592
+ function ke({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, showChange: c, showIcon: l, tone: u, ariaLabel: f, className: p }) {
593
+ let m = e.icon, g = ye[u];
594
+ return /* @__PURE__ */ j(h, {
619
595
  surface: "card",
620
- className: r(g.border, g.bg, p),
596
+ className: r(g.edge, g.wash, p),
621
597
  "aria-label": f,
622
- children: /* @__PURE__ */ A(d, {
598
+ children: /* @__PURE__ */ M(d, {
623
599
  gap: "lg",
624
600
  children: [
625
- /* @__PURE__ */ A(d, {
601
+ /* @__PURE__ */ M(d, {
626
602
  direction: "horizontal",
627
603
  align: "center",
628
604
  justify: "between",
629
605
  gap: "md",
630
- children: [/* @__PURE__ */ A("div", {
606
+ children: [/* @__PURE__ */ M("div", {
631
607
  className: "flex items-center gap-space-md text-muted-foreground",
632
- children: [!!l && !!m && /* @__PURE__ */ k(m, {
608
+ children: [!!l && !!m && /* @__PURE__ */ j(m, {
633
609
  className: "size-icon shrink-0",
634
610
  "aria-hidden": "true"
635
- }), /* @__PURE__ */ k(a, {
611
+ }), /* @__PURE__ */ j(a, {
636
612
  size: "xs",
637
613
  type: "secondary",
638
614
  weight: "medium",
639
615
  children: e.label
640
616
  })]
641
- }), !!c && !!e.change && /* @__PURE__ */ k(B, {
617
+ }), !!c && !!e.change && /* @__PURE__ */ j(H, {
642
618
  change: e.change,
643
619
  trend: e.trend,
644
620
  size: i,
645
621
  variant: "badge"
646
622
  })]
647
623
  }),
648
- /* @__PURE__ */ k(s, {
624
+ /* @__PURE__ */ j(s, {
649
625
  tag: i === "lg" ? "h3" : "h4",
650
626
  size: J[i],
651
627
  className: "tabular-nums text-inherit",
652
628
  children: t
653
629
  }),
654
- !!e.subtitle && /* @__PURE__ */ k(a, {
630
+ !!e.subtitle && /* @__PURE__ */ j(a, {
655
631
  size: "xs",
656
632
  type: "secondary",
657
633
  children: e.subtitle
658
634
  }),
659
- !!o && !!e.sparkline?.length && /* @__PURE__ */ k(U, {
635
+ !!o && !!e.sparkline?.length && /* @__PURE__ */ j(G, {
660
636
  data: e.sparkline,
661
637
  trend: n,
662
- className: xe[i]
638
+ className: Ce[i]
663
639
  }),
664
- !!e.footer && /* @__PURE__ */ k(a, {
640
+ !!e.footer && /* @__PURE__ */ j(a, {
665
641
  size: "xs",
666
642
  type: "discrete",
667
643
  children: e.footer
@@ -670,100 +646,100 @@ function De({ data: e, formattedValue: t, trend: n, size: i, showSparkline: o, s
670
646
  })
671
647
  });
672
648
  }
673
- function Oe({ data: e, formattedValue: t, trend: n, size: i, showSparkline: c, showChange: l, showIcon: u, ariaLabel: f, className: p }) {
649
+ function Ae({ data: e, formattedValue: t, trend: n, size: i, showSparkline: c, showChange: l, showIcon: u, ariaLabel: f, className: p }) {
674
650
  let m = e.icon;
675
- return /* @__PURE__ */ A(h, {
651
+ return /* @__PURE__ */ M(h, {
676
652
  surface: "card",
677
653
  padding: "none",
678
654
  className: r("dark", p),
679
655
  "aria-label": f,
680
- children: [/* @__PURE__ */ A(d, {
656
+ children: [/* @__PURE__ */ M(d, {
681
657
  gap: "md",
682
658
  className: "p-surface",
683
659
  children: [
684
- /* @__PURE__ */ A(d, {
660
+ /* @__PURE__ */ M(d, {
685
661
  direction: "horizontal",
686
662
  align: "center",
687
663
  justify: "between",
688
664
  gap: "lg",
689
- children: [/* @__PURE__ */ k(o, {
665
+ children: [/* @__PURE__ */ j(o, {
690
666
  className: "text-inherit",
691
667
  children: e.label
692
- }), !!u && !!m && /* @__PURE__ */ k(T, {
668
+ }), !!u && !!m && /* @__PURE__ */ j(E, {
693
669
  tone: "secondary",
694
670
  shape: "square",
695
671
  size: "sm",
696
- children: /* @__PURE__ */ k(m, {
672
+ children: /* @__PURE__ */ j(m, {
697
673
  className: "size-icon-md",
698
674
  "aria-hidden": "true"
699
675
  })
700
676
  })]
701
677
  }),
702
- /* @__PURE__ */ A("div", {
678
+ /* @__PURE__ */ M("div", {
703
679
  className: "flex items-baseline gap-space-md",
704
- children: [/* @__PURE__ */ k(s, {
680
+ children: [/* @__PURE__ */ j(s, {
705
681
  tag: "h3",
706
682
  size: J[i],
707
683
  className: "tabular-nums text-inherit",
708
684
  children: t
709
- }), !!l && !!e.change && /* @__PURE__ */ k(B, {
685
+ }), !!l && !!e.change && /* @__PURE__ */ j(H, {
710
686
  change: e.change,
711
687
  trend: e.trend,
712
688
  size: i,
713
689
  variant: "compact"
714
690
  })]
715
691
  }),
716
- !!e.subtitle && /* @__PURE__ */ k(a, {
692
+ !!e.subtitle && /* @__PURE__ */ j(a, {
717
693
  size: "xs",
718
694
  type: "secondary",
719
695
  children: e.subtitle
720
696
  })
721
697
  ]
722
- }), !!c && !!e.sparkline?.length && /* @__PURE__ */ k(U, {
698
+ }), !!c && !!e.sparkline?.length && /* @__PURE__ */ j(G, {
723
699
  data: e.sparkline,
724
700
  trend: n,
725
701
  className: "h-control-lg w-full"
726
702
  })]
727
703
  });
728
704
  }
729
- function ke({ data: e, formattedValue: t, size: n, showChange: i, colorScheme: o, ariaLabel: c, className: l, progress: u = 0 }) {
730
- let f = q[o === "default" ? "primary" : o], p = Math.round(Math.min(Math.max(u, 0), 100) / 100 * Se);
731
- return /* @__PURE__ */ k(h, {
705
+ function je({ data: e, formattedValue: t, size: n, showChange: i, tone: o, ariaLabel: c, className: l, progress: u = 0 }) {
706
+ let f = ye[o], p = Math.round(Math.min(Math.max(u, 0), 100) / 100 * we);
707
+ return /* @__PURE__ */ j(h, {
732
708
  surface: "card",
733
709
  className: l,
734
710
  "aria-label": c,
735
- children: /* @__PURE__ */ A(d, {
711
+ children: /* @__PURE__ */ M(d, {
736
712
  gap: "lg",
737
713
  children: [
738
- /* @__PURE__ */ A(d, {
714
+ /* @__PURE__ */ M(d, {
739
715
  gap: "md",
740
- children: [/* @__PURE__ */ A("div", {
716
+ children: [/* @__PURE__ */ M("div", {
741
717
  className: "flex items-center gap-space-md",
742
- children: [/* @__PURE__ */ k(a, {
718
+ children: [/* @__PURE__ */ j(a, {
743
719
  size: "xs",
744
720
  type: "secondary",
745
721
  weight: "medium",
746
722
  className: "truncate",
747
723
  children: e.label
748
- }), /* @__PURE__ */ k("span", {
749
- className: r(m.inline, f.dot),
724
+ }), /* @__PURE__ */ j("span", {
725
+ className: r(m.inline, f.solid),
750
726
  "aria-hidden": "true"
751
727
  })]
752
- }), /* @__PURE__ */ A("div", {
728
+ }), /* @__PURE__ */ M("div", {
753
729
  className: "flex flex-wrap items-baseline gap-x-space-md",
754
- children: [/* @__PURE__ */ k(s, {
730
+ children: [/* @__PURE__ */ j(s, {
755
731
  tag: "h3",
756
732
  size: J[n],
757
733
  className: "whitespace-nowrap tabular-nums text-inherit",
758
734
  children: t
759
- }), !!e.subtitle && /* @__PURE__ */ k(a, {
735
+ }), !!e.subtitle && /* @__PURE__ */ j(a, {
760
736
  size: "xs",
761
737
  type: "secondary",
762
738
  children: e.subtitle
763
739
  })]
764
740
  })]
765
741
  }),
766
- /* @__PURE__ */ k("div", {
742
+ /* @__PURE__ */ j("div", {
767
743
  className: "flex items-center gap-space-2xs",
768
744
  role: "progressbar",
769
745
  "aria-label": `${e.label} progress`,
@@ -771,21 +747,21 @@ function ke({ data: e, formattedValue: t, size: n, showChange: i, colorScheme: o
771
747
  "aria-valuemin": 0,
772
748
  "aria-valuemax": 100,
773
749
  "aria-valuetext": `${u}%`,
774
- children: Array.from({ length: Se }, (e, t) => /* @__PURE__ */ k("div", { className: r("h-6 w-1.5 rounded-radius-sm transition-colors", t < p ? f.bar : "bg-muted") }, `seg-${t}`))
750
+ children: Array.from({ length: we }, (e, t) => /* @__PURE__ */ j("div", { className: r("h-6 w-1.5 rounded-radius-sm transition-colors", t < p ? f.solid : "bg-muted") }, `seg-${t}`))
775
751
  }),
776
- (!!(i && e.change) || !!e.footer) && /* @__PURE__ */ A(d, {
752
+ (!!(i && e.change) || !!e.footer) && /* @__PURE__ */ M(d, {
777
753
  gap: "md",
778
- children: [!!i && !!e.change && /* @__PURE__ */ k("div", { children: /* @__PURE__ */ k(B, {
754
+ children: [!!i && !!e.change && /* @__PURE__ */ j("div", { children: /* @__PURE__ */ j(H, {
779
755
  change: e.change,
780
756
  trend: e.trend,
781
757
  size: n,
782
758
  variant: "default"
783
- }) }), !!e.footer && /* @__PURE__ */ A("div", {
759
+ }) }), !!e.footer && /* @__PURE__ */ M("div", {
784
760
  className: "inline-flex items-center gap-space-xs text-muted-foreground",
785
- children: [/* @__PURE__ */ k(se, {
761
+ children: [/* @__PURE__ */ j(oe, {
786
762
  className: "size-icon-sm",
787
763
  "aria-hidden": "true"
788
- }), /* @__PURE__ */ k(a, {
764
+ }), /* @__PURE__ */ j(a, {
789
765
  size: "xs",
790
766
  type: "secondary",
791
767
  children: e.footer
@@ -798,12 +774,12 @@ function ke({ data: e, formattedValue: t, size: n, showChange: i, colorScheme: o
798
774
  }
799
775
  //#endregion
800
776
  //#region src/components/blocks/analytics/metric-bar/metric-bar.tsx
801
- function Ae({ metrics: e, period: t, onPeriodChange: n, variant: o = "default", size: s = "sm", showSparklines: c = !0, showChanges: l = !0, footerText: u, className: d }) {
802
- let f = /* @__PURE__ */ k("div", {
777
+ function Me({ metrics: e, period: t, onPeriodChange: n, variant: o = "default", size: s = "sm", showSparklines: c = !0, showChanges: l = !0, footerText: u, className: d }) {
778
+ let f = /* @__PURE__ */ j("div", {
803
779
  className: "grid min-w-0 flex-1 grid-cols-1 divide-y divide-border @xl/metric-bar:flex @xl/metric-bar:items-stretch @xl/metric-bar:divide-x @xl/metric-bar:divide-y-0",
804
- children: e.map((e) => /* @__PURE__ */ k("div", {
780
+ children: e.map((e) => /* @__PURE__ */ j("div", {
805
781
  className: "flex min-w-0 flex-col px-surface py-row-y @xl/metric-bar:min-w-36 @xl/metric-bar:flex-1",
806
- children: /* @__PURE__ */ k(Y, {
782
+ children: /* @__PURE__ */ j(Y, {
807
783
  data: e,
808
784
  variant: "default",
809
785
  size: s,
@@ -812,17 +788,17 @@ function Ae({ metrics: e, period: t, onPeriodChange: n, variant: o = "default",
812
788
  className: "flex-1"
813
789
  })
814
790
  }, e.id))
815
- }), p = !!t && /* @__PURE__ */ k("div", {
791
+ }), p = !!t && /* @__PURE__ */ j("div", {
816
792
  className: "flex shrink-0 items-center border-b border-border px-row-x py-row-y @xl/metric-bar:border-b-0 @xl/metric-bar:py-0",
817
- children: /* @__PURE__ */ A(i, {
793
+ children: /* @__PURE__ */ M(i, {
818
794
  tone: "secondary",
819
795
  buttonStyle: "ghost",
820
796
  className: "gap-space-sm",
821
797
  onClick: n ? () => n(t.value) : void 0,
822
- children: [/* @__PURE__ */ k(ce, {
798
+ children: [/* @__PURE__ */ j(se, {
823
799
  className: "size-icon-md",
824
800
  "aria-hidden": "true"
825
- }), /* @__PURE__ */ k(a, {
801
+ }), /* @__PURE__ */ j(a, {
826
802
  type: "inherit",
827
803
  size: "inherit",
828
804
  weight: "medium",
@@ -830,33 +806,33 @@ function Ae({ metrics: e, period: t, onPeriodChange: n, variant: o = "default",
830
806
  })]
831
807
  })
832
808
  });
833
- return o === "gradient" ? /* @__PURE__ */ A("div", {
809
+ return o === "gradient" ? /* @__PURE__ */ M("div", {
834
810
  className: r("metric-bar--component box-border @container/metric-bar", "w-full", "rounded-surface bg-gradient-to-r from-chart-3/8 via-chart-2/5 to-chart-1/8 p-px", d),
835
- children: [/* @__PURE__ */ A("div", {
811
+ children: [/* @__PURE__ */ M("div", {
836
812
  className: "flex min-w-0 flex-col overflow-hidden rounded-surface bg-card text-card-foreground @xl/metric-bar:flex-row",
837
- children: [p && /* @__PURE__ */ A(ae, { children: [p, /* @__PURE__ */ k("div", {
813
+ children: [p && /* @__PURE__ */ M(ie, { children: [p, /* @__PURE__ */ j("div", {
838
814
  className: "hidden w-px bg-border @xl/metric-bar:block",
839
815
  "aria-hidden": "true"
840
816
  })] }), f]
841
- }), !!u && /* @__PURE__ */ k("div", {
817
+ }), !!u && /* @__PURE__ */ j("div", {
842
818
  className: "rounded-b-surface border-t border-border/60 bg-card text-card-foreground px-surface py-row-y",
843
- children: /* @__PURE__ */ k(a, {
819
+ children: /* @__PURE__ */ j(a, {
844
820
  size: "xs",
845
821
  type: "discrete",
846
822
  children: u
847
823
  })
848
824
  })]
849
- }) : /* @__PURE__ */ A("div", {
825
+ }) : /* @__PURE__ */ M("div", {
850
826
  className: r("metric-bar--component box-border @container/metric-bar flex w-full flex-col overflow-hidden rounded-surface border border-border bg-card text-card-foreground shadow-sm", d),
851
- children: [/* @__PURE__ */ A("div", {
827
+ children: [/* @__PURE__ */ M("div", {
852
828
  className: "flex min-w-0 flex-col overflow-hidden @xl/metric-bar:flex-row",
853
- children: [p && /* @__PURE__ */ A(ae, { children: [p, /* @__PURE__ */ k("div", {
829
+ children: [p && /* @__PURE__ */ M(ie, { children: [p, /* @__PURE__ */ j("div", {
854
830
  className: "hidden w-px bg-border @xl/metric-bar:block",
855
831
  "aria-hidden": "true"
856
832
  })] }), f]
857
- }), !!u && /* @__PURE__ */ k("div", {
833
+ }), !!u && /* @__PURE__ */ j("div", {
858
834
  className: "border-t border-border/60 px-surface py-row-y",
859
- children: /* @__PURE__ */ k(a, {
835
+ children: /* @__PURE__ */ j(a, {
860
836
  size: "xs",
861
837
  type: "discrete",
862
838
  children: u
@@ -864,41 +840,42 @@ function Ae({ metrics: e, period: t, onPeriodChange: n, variant: o = "default",
864
840
  })]
865
841
  });
866
842
  }
867
- Ae.displayName = "MetricBar";
843
+ Me.displayName = "MetricBar";
868
844
  //#endregion
869
845
  //#region src/components/blocks/analytics/metric-grid/metric-grid.tsx
870
- var je = {
846
+ var Ne = {
871
847
  1: "grid-cols-1",
872
848
  2: "grid-cols-1 @md/metric-grid:grid-cols-2",
873
849
  3: "grid-cols-1 @2xl/metric-grid:grid-cols-3",
874
850
  4: "grid-cols-1 @md/metric-grid:grid-cols-2 @5xl/metric-grid:grid-cols-4",
875
851
  6: "grid-cols-1 @md/metric-grid:grid-cols-2 @3xl/metric-grid:grid-cols-3 @7xl/metric-grid:grid-cols-6"
876
852
  };
877
- function Me(e) {
878
- return je[e <= 1 ? 1 : e === 2 ? 2 : e === 3 ? 3 : e <= 4 || e > 6 ? 4 : 6];
853
+ function Pe(e) {
854
+ return Ne[e <= 1 ? 1 : e === 2 ? 2 : e === 3 ? 3 : e <= 4 || e > 6 ? 4 : 6];
879
855
  }
880
- function Ne({ metrics: e, variant: t = "card", size: n = "md", colorScheme: i = "default", columns: a = "auto", gap: o = "xl", showSparklines: s = !0, showChanges: c = !0, showIcons: l = !0, loading: d = !1, className: f }) {
881
- let p = a === "auto" ? Me(e.length) : je[a];
882
- return /* @__PURE__ */ k("div", {
883
- className: r("metric-grid--component @container/metric-grid", f),
884
- children: /* @__PURE__ */ k(u, {
856
+ function Fe({ metrics: e, variant: t = "card", size: n = "md", tone: i, colorScheme: a = "default", columns: o = "auto", gap: s = "xl", showSparklines: c = !0, showChanges: l = !0, showIcons: d = !0, loading: f = !1, className: p }) {
857
+ let m = o === "auto" ? Pe(e.length) : Ne[o];
858
+ return /* @__PURE__ */ j("div", {
859
+ className: r("metric-grid--component @container/metric-grid", p),
860
+ children: /* @__PURE__ */ j(u, {
885
861
  columns: 1,
886
- gap: o,
887
- className: r("metric-grid--grid", p),
888
- children: e.map((e) => /* @__PURE__ */ k(Y, {
862
+ gap: s,
863
+ className: r("metric-grid--grid", m),
864
+ children: e.map((e) => /* @__PURE__ */ j(Y, {
889
865
  data: e,
890
866
  variant: t,
891
867
  size: n,
892
- colorScheme: i,
893
- showSparkline: s,
894
- showChange: c,
895
- showIcon: l,
896
- loading: d
868
+ tone: i,
869
+ colorScheme: a,
870
+ showSparkline: c,
871
+ showChange: l,
872
+ showIcon: d,
873
+ loading: f
897
874
  }, e.id))
898
875
  })
899
876
  });
900
877
  }
901
- Ne.displayName = "MetricGrid";
878
+ Fe.displayName = "MetricGrid";
902
879
  //#endregion
903
880
  //#region src/components/blocks/analytics/metric-comparison/metric-comparison.tsx
904
881
  var X = {
@@ -906,156 +883,154 @@ var X = {
906
883
  currentLabel: "This period",
907
884
  previousLabel: "Previous period",
908
885
  suffix: "vs previous",
886
+ noBaseline: "Relative change unavailable",
909
887
  pointsUnit: "pp"
910
888
  };
911
- function Pe(e) {
889
+ function Ie(e) {
912
890
  if (e == null) return null;
913
- if (typeof e == "number") return e;
914
891
  let t = Number(e);
915
892
  return Number.isFinite(t) ? t : null;
916
893
  }
917
- function Fe({ current: e, previous: t, title: i, currentPeriod: s, previousPeriod: c, className: l, strings: u }) {
918
- let f = n(X, u), p = K(), m = Pe(e.value), h = Pe(t.value), g = m !== null && h !== null, _ = g ? m - h : 0, v = g && h !== 0 ? Math.round(_ / h * 100) : 0, y = _ > 0, x = _ === 0, C = x ? le : y ? M : j, w = x ? "neutral" : e.trend ?? (y ? "positive" : "negative"), T = w === "positive" ? "success" : w === "negative" ? "destructive" : "secondary";
919
- return /* @__PURE__ */ A(d, {
894
+ function Le({ current: e, previous: t, title: i, currentPeriod: s, previousPeriod: c, className: l, strings: u }) {
895
+ let f = n(X, u), p = ve(), m = Ie(e.value), h = Ie(t.value), g = m !== null && h !== null ? m - h : null, _ = g !== null && Number.isFinite(g), v = g !== null && g > 0, x = g === 0, S = g !== null && h ? g / Math.abs(h) : null, w = S !== null && Number.isFinite(S) ? y(x ? 0 : S, p.locale, {
896
+ maximumFractionDigits: 0,
897
+ signDisplay: x ? "auto" : "always"
898
+ }) : null, T = x ? ce : v ? P : N, E = x ? "neutral" : e.trend ?? (v ? "positive" : "negative"), O = E === "positive" ? "success" : E === "negative" ? "destructive" : "secondary";
899
+ return /* @__PURE__ */ M(d, {
920
900
  "data-component": "metric-comparison",
921
901
  "data-slot": "metric-comparison",
922
902
  gap: "md",
923
903
  className: r("metric-comparison--component @container/metric-comparison", l),
924
904
  "aria-label": i ?? f.title,
925
- children: [/* @__PURE__ */ A("div", {
905
+ children: [/* @__PURE__ */ M("div", {
926
906
  className: "grid items-center gap-space-md grid-cols-1 @md/metric-comparison:grid-cols-[1fr_auto_1fr]",
927
907
  children: [
928
- /* @__PURE__ */ A(d, {
908
+ /* @__PURE__ */ M(d, {
929
909
  gap: "dense",
930
910
  className: "metric-comparison--current min-w-0",
931
- children: [/* @__PURE__ */ A(d, {
911
+ children: [/* @__PURE__ */ M(d, {
932
912
  direction: "horizontal",
933
913
  wrap: !0,
934
914
  align: "center",
935
915
  gap: "sm",
936
- children: [/* @__PURE__ */ k(o, {
916
+ children: [/* @__PURE__ */ j(o, {
937
917
  className: "text-inherit",
938
918
  children: f.currentLabel
939
- }), !!s && /* @__PURE__ */ k(E, {
919
+ }), !!s && /* @__PURE__ */ j(D, {
940
920
  tone: "secondary",
941
921
  inline: !0,
942
922
  className: "metric-comparison--period",
943
923
  children: s
944
924
  })]
945
- }), /* @__PURE__ */ k(S, {
925
+ }), /* @__PURE__ */ j(C, {
946
926
  type: "inherit",
947
927
  size: "base",
948
928
  weight: "semibold",
949
929
  className: "tabular-nums",
950
- children: L(e, p)
930
+ children: z(e, p)
951
931
  })]
952
932
  }),
953
- /* @__PURE__ */ A("div", {
933
+ /* @__PURE__ */ M("div", {
954
934
  className: "flex items-center text-muted-foreground @md/metric-comparison:justify-center",
955
- children: [/* @__PURE__ */ k(oe, {
935
+ children: [/* @__PURE__ */ j(ae, {
956
936
  className: "hidden size-icon @md/metric-comparison:block",
957
937
  "aria-hidden": "true"
958
- }), /* @__PURE__ */ k(j, {
938
+ }), /* @__PURE__ */ j(N, {
959
939
  className: "size-icon @md/metric-comparison:hidden",
960
940
  "aria-hidden": "true"
961
941
  })]
962
942
  }),
963
- /* @__PURE__ */ A(d, {
943
+ /* @__PURE__ */ M(d, {
964
944
  gap: "dense",
965
945
  className: "metric-comparison--previous min-w-0",
966
- children: [/* @__PURE__ */ A(d, {
946
+ children: [/* @__PURE__ */ M(d, {
967
947
  direction: "horizontal",
968
948
  wrap: !0,
969
949
  align: "center",
970
950
  gap: "sm",
971
- children: [/* @__PURE__ */ k(o, {
951
+ children: [/* @__PURE__ */ j(o, {
972
952
  className: "text-inherit",
973
953
  children: f.previousLabel
974
- }), !!c && /* @__PURE__ */ k(E, {
954
+ }), !!c && /* @__PURE__ */ j(D, {
975
955
  tone: "secondary",
976
956
  inline: !0,
977
957
  className: "metric-comparison--period",
978
958
  children: c
979
959
  })]
980
- }), /* @__PURE__ */ k(S, {
960
+ }), /* @__PURE__ */ j(C, {
981
961
  size: "base",
982
962
  weight: "semibold",
983
963
  type: "secondary",
984
964
  className: "tabular-nums",
985
- children: L(t, p)
965
+ children: z(t, p)
986
966
  })]
987
967
  })
988
968
  ]
989
- }), !!g && /* @__PURE__ */ A(d, {
969
+ }), !!_ && /* @__PURE__ */ M(d, {
990
970
  direction: "horizontal",
991
971
  wrap: !0,
992
972
  align: "center",
993
973
  gap: "md",
994
974
  className: "metric-comparison--delta",
995
- children: [/* @__PURE__ */ A(E, {
996
- tone: T,
975
+ children: [/* @__PURE__ */ M(D, {
976
+ tone: O,
997
977
  size: "sm",
998
978
  inline: !0,
999
- children: [/* @__PURE__ */ k(C, {
979
+ children: [/* @__PURE__ */ j(T, {
1000
980
  className: "size-icon-sm",
1001
981
  strokeWidth: 2.5,
1002
982
  "aria-hidden": "true"
1003
- }), /* @__PURE__ */ A(S, {
983
+ }), /* @__PURE__ */ M(C, {
1004
984
  size: "inherit",
1005
985
  weight: "semibold",
1006
986
  className: "tabular-nums text-inherit",
1007
- children: [y ? "+" : x ? "" : "−", ((t) => {
987
+ children: [v ? "+" : x ? "" : "−", ((t) => {
1008
988
  let n = Math.abs(t);
1009
989
  return e.valueType === "percentage" ? `${b(n * 100, {
1010
990
  locale: p.locale,
1011
991
  maximumFractionDigits: 1
1012
- })} ${f.pointsUnit ?? X.pointsUnit}` : L({
992
+ })} ${f.pointsUnit ?? X.pointsUnit}` : z({
1013
993
  ...e,
1014
994
  value: n
1015
995
  }, p);
1016
- })(_)]
996
+ })(g)]
1017
997
  })]
1018
- }), /* @__PURE__ */ A(a, {
998
+ }), /* @__PURE__ */ j(a, {
1019
999
  size: "xs",
1020
1000
  type: "secondary",
1021
1001
  className: "tabular-nums",
1022
- children: [
1023
- y ? "+" : x ? "" : "−",
1024
- Math.abs(v),
1025
- "% ",
1026
- f.suffix
1027
- ]
1002
+ children: w ? `${w} ${f.suffix}` : f.noBaseline ?? X.noBaseline
1028
1003
  })]
1029
1004
  })]
1030
1005
  });
1031
1006
  }
1032
- Fe.displayName = "MetricComparison";
1007
+ Le.displayName = "MetricComparison";
1033
1008
  //#endregion
1034
1009
  //#region src/components/blocks/analytics/metric-micro-grid/metric-micro-grid.tsx
1035
- var Ie = [
1010
+ var Re = [
1036
1011
  "bars",
1037
1012
  "line",
1038
1013
  "dots",
1039
1014
  "progress",
1040
1015
  "area",
1041
1016
  "pie"
1042
- ], Le = {
1017
+ ], ze = {
1043
1018
  bars: "var(--chart-1)",
1044
1019
  line: "var(--chart-1)",
1045
1020
  dots: "var(--chart-1)",
1046
1021
  progress: "var(--chart-1)",
1047
1022
  area: "var(--chart-1)",
1048
1023
  pie: "var(--chart-1)"
1049
- }, Re = [
1024
+ }, Be = [
1050
1025
  "var(--chart-1)",
1051
1026
  "var(--chart-2)",
1052
1027
  "var(--chart-3)"
1053
1028
  ], Z = "h-control-sm";
1054
- function ze({ data: e, color: t }) {
1029
+ function Ve({ data: e, color: t }) {
1055
1030
  let n = Math.max(...e, 1);
1056
- return /* @__PURE__ */ k("div", {
1031
+ return /* @__PURE__ */ j("div", {
1057
1032
  className: r("flex items-end gap-space-2xs", Z),
1058
- children: e.slice(0, 6).map((e, r) => /* @__PURE__ */ k("div", {
1033
+ children: e.slice(0, 6).map((e, r) => /* @__PURE__ */ j("div", {
1059
1034
  className: "flex-1 rounded-t-radius-sm",
1060
1035
  style: {
1061
1036
  height: `${e / n * 100}%`,
@@ -1064,13 +1039,13 @@ function ze({ data: e, color: t }) {
1064
1039
  }, `bar-${r}`))
1065
1040
  });
1066
1041
  }
1067
- function Be({ data: e, color: t }) {
1042
+ function He({ data: e, color: t }) {
1068
1043
  let n = Math.max(...e, 1), i = Math.min(...e), a = n - i || 1, o = e.slice(0, 6);
1069
- return /* @__PURE__ */ k("svg", {
1044
+ return /* @__PURE__ */ j("svg", {
1070
1045
  viewBox: "0 0 60 16",
1071
1046
  className: r("w-full", Z),
1072
1047
  preserveAspectRatio: "none",
1073
- children: /* @__PURE__ */ k("polyline", {
1048
+ children: /* @__PURE__ */ j("polyline", {
1074
1049
  fill: "none",
1075
1050
  stroke: t,
1076
1051
  strokeWidth: "1.5",
@@ -1080,14 +1055,14 @@ function Be({ data: e, color: t }) {
1080
1055
  })
1081
1056
  });
1082
1057
  }
1083
- function Ve({ data: e, color: t }) {
1058
+ function Ue({ data: e, color: t }) {
1084
1059
  let n = e.slice(0, 5), i = Math.max(...n), a = Math.min(...n), o = i - a || 1;
1085
- return /* @__PURE__ */ k("div", {
1060
+ return /* @__PURE__ */ j("div", {
1086
1061
  className: r("flex justify-around", Z),
1087
1062
  "data-intrinsic-geometry": !0,
1088
- children: n.map((e, n) => /* @__PURE__ */ k("div", {
1063
+ children: n.map((e, n) => /* @__PURE__ */ j("div", {
1089
1064
  className: "relative h-full w-1.5",
1090
- children: /* @__PURE__ */ k("div", {
1065
+ children: /* @__PURE__ */ j("div", {
1091
1066
  className: "absolute inset-x-0 h-1.5 rounded-full",
1092
1067
  style: {
1093
1068
  bottom: `calc(${(e - a) / o} * (100% - 0.375rem))`,
@@ -1097,8 +1072,8 @@ function Ve({ data: e, color: t }) {
1097
1072
  }, `dot-${n}`))
1098
1073
  });
1099
1074
  }
1100
- function He({ data: e, label: t }) {
1101
- return /* @__PURE__ */ k(g, {
1075
+ function We({ data: e, label: t }) {
1076
+ return /* @__PURE__ */ j(g, {
1102
1077
  value: e[0] ?? 0,
1103
1078
  max: e[1] ?? 100,
1104
1079
  size: "sm",
@@ -1106,21 +1081,21 @@ function He({ data: e, label: t }) {
1106
1081
  indicatorProps: { className: "bg-chart-1" }
1107
1082
  });
1108
1083
  }
1109
- function Ue({ data: e, color: t }) {
1110
- let n = D(), i = H(), a = `micro-area-${n.replaceAll(":", "")}`, o = Math.min(...e), s = e.map((e, t) => ({
1084
+ function Ge({ data: e, color: t }) {
1085
+ let n = k(), i = W(), a = `micro-area-${n.replaceAll(":", "")}`, o = Math.min(...e), s = e.map((e, t) => ({
1111
1086
  i: t,
1112
1087
  v: e - o
1113
1088
  }));
1114
- return /* @__PURE__ */ k("div", {
1089
+ return /* @__PURE__ */ j("div", {
1115
1090
  className: r("w-full", Z),
1116
- children: /* @__PURE__ */ k(F, {
1091
+ children: /* @__PURE__ */ j(L, {
1117
1092
  width: "100%",
1118
1093
  height: "100%",
1119
1094
  initialDimension: {
1120
1095
  width: 1,
1121
1096
  height: 1
1122
1097
  },
1123
- children: /* @__PURE__ */ A(P, {
1098
+ children: /* @__PURE__ */ M(I, {
1124
1099
  data: s,
1125
1100
  margin: {
1126
1101
  top: 0,
@@ -1128,22 +1103,22 @@ function Ue({ data: e, color: t }) {
1128
1103
  bottom: 0,
1129
1104
  left: 0
1130
1105
  },
1131
- children: [/* @__PURE__ */ k("defs", { children: /* @__PURE__ */ A("linearGradient", {
1106
+ children: [/* @__PURE__ */ j("defs", { children: /* @__PURE__ */ M("linearGradient", {
1132
1107
  id: a,
1133
1108
  x1: "0",
1134
1109
  y1: "0",
1135
1110
  x2: "0",
1136
1111
  y2: "1",
1137
- children: [/* @__PURE__ */ k("stop", {
1112
+ children: [/* @__PURE__ */ j("stop", {
1138
1113
  offset: "0%",
1139
1114
  stopColor: t,
1140
1115
  stopOpacity: .3
1141
- }), /* @__PURE__ */ k("stop", {
1116
+ }), /* @__PURE__ */ j("stop", {
1142
1117
  offset: "100%",
1143
1118
  stopColor: t,
1144
1119
  stopOpacity: 0
1145
1120
  })]
1146
- }) }), /* @__PURE__ */ k(N, {
1121
+ }) }), /* @__PURE__ */ j(F, {
1147
1122
  type: "monotone",
1148
1123
  dataKey: "v",
1149
1124
  stroke: t,
@@ -1155,42 +1130,42 @@ function Ue({ data: e, color: t }) {
1155
1130
  })
1156
1131
  });
1157
1132
  }
1158
- function We({ data: e }) {
1133
+ function Ke({ data: e }) {
1159
1134
  let t = e.reduce((e, t) => e + t, 0) || 1, n = 0;
1160
- return /* @__PURE__ */ k("svg", {
1135
+ return /* @__PURE__ */ j("svg", {
1161
1136
  viewBox: "0 0 24 24",
1162
1137
  className: "size-control-sm",
1163
1138
  children: e.slice(0, 3).map((e, r) => {
1164
1139
  let i = e / t * 360, a = n;
1165
1140
  n += i;
1166
1141
  let o = (a - 90) * Math.PI / 180, s = (a + i - 90) * Math.PI / 180, c = +(i > 180), l = 12 + 10 * Math.cos(o), u = 12 + 10 * Math.sin(o), d = 12 + 10 * Math.cos(s), f = 12 + 10 * Math.sin(s);
1167
- return /* @__PURE__ */ k("path", {
1142
+ return /* @__PURE__ */ j("path", {
1168
1143
  d: `M12,12 L${l},${u} A10,10 0 ${c},1 ${d},${f} Z`,
1169
- fill: Re[r % Re.length]
1144
+ fill: Be[r % Be.length]
1170
1145
  }, `slice-${r}`);
1171
1146
  })
1172
1147
  });
1173
1148
  }
1174
- function Ge({ kind: e, data: t, label: n }) {
1175
- let r = Le[e];
1176
- return e === "bars" ? /* @__PURE__ */ k(ze, {
1149
+ function qe({ kind: e, data: t, label: n }) {
1150
+ let r = ze[e];
1151
+ return e === "bars" ? /* @__PURE__ */ j(Ve, {
1177
1152
  data: t,
1178
1153
  color: r
1179
- }) : e === "line" ? /* @__PURE__ */ k(Be, {
1154
+ }) : e === "line" ? /* @__PURE__ */ j(He, {
1180
1155
  data: t,
1181
1156
  color: r
1182
- }) : e === "dots" ? /* @__PURE__ */ k(Ve, {
1157
+ }) : e === "dots" ? /* @__PURE__ */ j(Ue, {
1183
1158
  data: t,
1184
1159
  color: r
1185
- }) : e === "progress" ? /* @__PURE__ */ k(He, {
1160
+ }) : e === "progress" ? /* @__PURE__ */ j(We, {
1186
1161
  data: t,
1187
1162
  label: n
1188
- }) : e === "area" ? /* @__PURE__ */ k(Ue, {
1163
+ }) : e === "area" ? /* @__PURE__ */ j(Ge, {
1189
1164
  data: t,
1190
1165
  color: r
1191
- }) : /* @__PURE__ */ k(We, { data: t });
1166
+ }) : /* @__PURE__ */ j(Ke, { data: t });
1192
1167
  }
1193
- var Ke = {
1168
+ var Je = {
1194
1169
  1: "grid-cols-1",
1195
1170
  2: "grid-cols-2",
1196
1171
  3: "grid-cols-1 @md/metric-micro-grid:grid-cols-3",
@@ -1198,34 +1173,34 @@ var Ke = {
1198
1173
  5: "grid-cols-2 @xl/metric-micro-grid:grid-cols-3 @5xl/metric-micro-grid:grid-cols-5",
1199
1174
  6: "grid-cols-2 @xl/metric-micro-grid:grid-cols-3 @5xl/metric-micro-grid:grid-cols-6"
1200
1175
  };
1201
- function qe({ title: e = "Overview", cells: t, className: n }) {
1176
+ function Ye({ title: e = "Overview", cells: t, className: n }) {
1202
1177
  let i = t.slice(0, 6);
1203
- return /* @__PURE__ */ k("div", {
1178
+ return /* @__PURE__ */ j("div", {
1204
1179
  "data-component": "metric-micro-grid",
1205
1180
  "data-slot": "metric-micro-grid",
1206
1181
  className: r("metric-micro-grid--component @container/metric-micro-grid min-w-0 overflow-hidden", n),
1207
1182
  "aria-label": e,
1208
- children: /* @__PURE__ */ k("div", {
1209
- className: r("-me-px -mb-px grid", Ke[Math.max(i.length, 1)]),
1210
- children: i.map((e, t) => /* @__PURE__ */ k("div", {
1183
+ children: /* @__PURE__ */ j("div", {
1184
+ className: r("-me-px -mb-px grid", Je[Math.max(i.length, 1)]),
1185
+ children: i.map((e, t) => /* @__PURE__ */ j("div", {
1211
1186
  className: "min-w-0 border-e border-b border-border/60 p-surface-xs",
1212
- children: /* @__PURE__ */ A(d, {
1187
+ children: /* @__PURE__ */ M(d, {
1213
1188
  gap: "sm",
1214
1189
  children: [
1215
- /* @__PURE__ */ k(o, {
1190
+ /* @__PURE__ */ j(o, {
1216
1191
  className: "truncate text-inherit",
1217
1192
  children: e.label
1218
1193
  }),
1219
- /* @__PURE__ */ k(S, {
1194
+ /* @__PURE__ */ j(C, {
1220
1195
  type: "inherit",
1221
1196
  weight: "bold",
1222
1197
  className: "truncate tabular-nums",
1223
1198
  children: e.value
1224
1199
  }),
1225
- /* @__PURE__ */ k("div", {
1200
+ /* @__PURE__ */ j("div", {
1226
1201
  className: "mt-auto",
1227
- children: /* @__PURE__ */ k(Ge, {
1228
- kind: e.chart ?? Ie[t],
1202
+ children: /* @__PURE__ */ j(qe, {
1203
+ kind: e.chart ?? Re[t],
1229
1204
  data: e.data,
1230
1205
  label: e.label
1231
1206
  })
@@ -1236,63 +1211,63 @@ function qe({ title: e = "Overview", cells: t, className: n }) {
1236
1211
  })
1237
1212
  });
1238
1213
  }
1239
- qe.displayName = "MetricMicroGrid";
1214
+ Ye.displayName = "MetricMicroGrid";
1240
1215
  //#endregion
1241
1216
  //#region src/components/blocks/analytics/metric-gradient/metric-gradient.tsx
1242
- var Je = {
1217
+ var Xe = {
1243
1218
  green: "bg-gradient-to-br from-chart-1 via-chart-2 to-chart-1",
1244
1219
  purple: "bg-gradient-to-br from-chart-3 via-chart-4 to-chart-3",
1245
1220
  warm: "bg-gradient-to-br from-chart-5 via-chart-4 to-chart-5",
1246
1221
  ocean: "bg-gradient-to-br from-chart-2 via-chart-1 to-chart-2"
1247
- }, Q = "var(--inverse-foreground)", Ye = "var(--inverse-muted)";
1248
- function Xe({ title: e, value: t, change: n, data: i, theme: c = "green", subtitle: l, className: u }) {
1249
- let f = D(), p = H(), m = `metric-grad-${f.replaceAll(":", "")}`;
1250
- return /* @__PURE__ */ k("div", {
1251
- className: r("metric-gradient--component", "relative overflow-hidden rounded-surface p-surface text-inverse-foreground shadow-sm ring-1 ring-inverse-border", Je[c], u),
1252
- children: /* @__PURE__ */ A(d, {
1222
+ }, Q = "var(--inverse-foreground)", Ze = "var(--inverse-muted)";
1223
+ function Qe({ title: e, value: t, change: n, data: i, theme: c = "green", subtitle: l, className: u }) {
1224
+ let f = k(), p = W(), m = `metric-grad-${f.replaceAll(":", "")}`;
1225
+ return /* @__PURE__ */ j("div", {
1226
+ className: r("metric-gradient--component", "relative overflow-hidden rounded-surface p-surface text-inverse-foreground shadow-sm ring-1 ring-inverse-border", Xe[c], u),
1227
+ children: /* @__PURE__ */ M(d, {
1253
1228
  gap: "md",
1254
- children: [/* @__PURE__ */ A(d, {
1229
+ children: [/* @__PURE__ */ M(d, {
1255
1230
  direction: "horizontal",
1256
1231
  align: "start",
1257
1232
  justify: "between",
1258
1233
  wrap: !0,
1259
1234
  className: "relative rounded-surface bg-inverse-background p-surface",
1260
- children: [/* @__PURE__ */ A(d, {
1235
+ children: [/* @__PURE__ */ M(d, {
1261
1236
  gap: "xs",
1262
1237
  className: "min-w-0",
1263
1238
  children: [
1264
- /* @__PURE__ */ k(o, {
1239
+ /* @__PURE__ */ j(o, {
1265
1240
  tone: "inverse",
1266
1241
  children: e
1267
1242
  }),
1268
- !!t && /* @__PURE__ */ k(s, {
1243
+ !!t && /* @__PURE__ */ j(s, {
1269
1244
  tag: "h3",
1270
1245
  className: "tabular-nums text-inverse-foreground",
1271
1246
  children: t
1272
1247
  }),
1273
- !!l && /* @__PURE__ */ k(a, {
1248
+ !!l && /* @__PURE__ */ j(a, {
1274
1249
  size: "xs",
1275
1250
  className: "text-inverse-muted",
1276
1251
  children: l
1277
1252
  })
1278
1253
  ]
1279
- }), !!n && /* @__PURE__ */ k(B, {
1254
+ }), !!n && /* @__PURE__ */ j(H, {
1280
1255
  change: n,
1281
1256
  trend: n.direction === "up" ? "positive" : n.direction === "down" ? "negative" : "neutral",
1282
1257
  size: "sm",
1283
1258
  variant: "badge",
1284
1259
  className: "shrink-0 !bg-inverse-surface-strong !text-inverse-foreground"
1285
1260
  })]
1286
- }), /* @__PURE__ */ k("div", {
1261
+ }), /* @__PURE__ */ j("div", {
1287
1262
  className: "relative -mx-1 h-24",
1288
- children: /* @__PURE__ */ k(F, {
1263
+ children: /* @__PURE__ */ j(L, {
1289
1264
  width: "100%",
1290
1265
  height: "100%",
1291
1266
  initialDimension: {
1292
1267
  width: 1,
1293
1268
  height: 1
1294
1269
  },
1295
- children: /* @__PURE__ */ A(P, {
1270
+ children: /* @__PURE__ */ M(I, {
1296
1271
  data: i,
1297
1272
  margin: {
1298
1273
  top: 4,
@@ -1300,25 +1275,25 @@ function Xe({ title: e, value: t, change: n, data: i, theme: c = "green", subtit
1300
1275
  bottom: 0,
1301
1276
  left: 0
1302
1277
  },
1303
- children: [/* @__PURE__ */ k("defs", { children: /* @__PURE__ */ A("linearGradient", {
1278
+ children: [/* @__PURE__ */ j("defs", { children: /* @__PURE__ */ M("linearGradient", {
1304
1279
  id: m,
1305
1280
  x1: "0",
1306
1281
  y1: "0",
1307
1282
  x2: "0",
1308
1283
  y2: "1",
1309
- children: [/* @__PURE__ */ k("stop", {
1284
+ children: [/* @__PURE__ */ j("stop", {
1310
1285
  offset: "0%",
1311
1286
  stopColor: Q,
1312
1287
  stopOpacity: .3
1313
- }), /* @__PURE__ */ k("stop", {
1288
+ }), /* @__PURE__ */ j("stop", {
1314
1289
  offset: "100%",
1315
1290
  stopColor: Q,
1316
1291
  stopOpacity: 0
1317
1292
  })]
1318
- }) }), /* @__PURE__ */ k(N, {
1293
+ }) }), /* @__PURE__ */ j(F, {
1319
1294
  type: "monotone",
1320
1295
  dataKey: "value",
1321
- stroke: Ye,
1296
+ stroke: Ze,
1322
1297
  strokeWidth: 2,
1323
1298
  fill: `url(#${m})`,
1324
1299
  dot: !1,
@@ -1326,7 +1301,7 @@ function Xe({ title: e, value: t, change: n, data: i, theme: c = "green", subtit
1326
1301
  r: 4,
1327
1302
  strokeWidth: 2,
1328
1303
  fill: Q,
1329
- stroke: Ye
1304
+ stroke: Ze
1330
1305
  },
1331
1306
  isAnimationActive: !p,
1332
1307
  animationDuration: 800
@@ -1337,21 +1312,21 @@ function Xe({ title: e, value: t, change: n, data: i, theme: c = "green", subtit
1337
1312
  })
1338
1313
  });
1339
1314
  }
1340
- Xe.displayName = "MetricGradient";
1315
+ Qe.displayName = "MetricGradient";
1341
1316
  //#endregion
1342
1317
  //#region src/components/blocks/analytics/activity-heatmap/activity-heatmap.tsx
1343
- var Ze = {
1318
+ var $e = {
1344
1319
  0: p.activity[0],
1345
1320
  1: p.activity[1],
1346
1321
  2: p.activity[2],
1347
1322
  3: p.activity[3],
1348
1323
  4: p.activity[4]
1349
- }, Qe = r("text--component fill-current", c({
1324
+ }, et = r("text--component fill-current", c({
1350
1325
  size: "xs",
1351
1326
  type: "secondary",
1352
1327
  lineHeight: "none"
1353
1328
  }));
1354
- function $e(e, t) {
1329
+ function tt(e, t) {
1355
1330
  if (e.length === 0) return {
1356
1331
  weeks: [],
1357
1332
  monthLabels: []
@@ -1387,56 +1362,56 @@ function $e(e, t) {
1387
1362
  monthLabels: u
1388
1363
  };
1389
1364
  }
1390
- function et({ title: e, description: t, data: i, className: o, strings: s }) {
1391
- let c = n(I, s), { weeks: l, monthLabels: u } = $e(i, c.heatmapMonthNames);
1392
- return /* @__PURE__ */ A(d, {
1365
+ function nt({ title: e, description: t, data: i, className: o, strings: s }) {
1366
+ let c = n(R, s), { weeks: l, monthLabels: u } = tt(i, c.heatmapMonthNames);
1367
+ return /* @__PURE__ */ M(d, {
1393
1368
  gap: "md",
1394
1369
  "data-component": "activity-heatmap",
1395
1370
  "data-slot": "activity-heatmap",
1396
1371
  className: r("activity-heatmap--component", o),
1397
1372
  "aria-label": e,
1398
- children: [!!t && /* @__PURE__ */ k(a, {
1373
+ children: [!!t && /* @__PURE__ */ j(a, {
1399
1374
  type: "secondary",
1400
1375
  children: t
1401
- }), /* @__PURE__ */ k("div", {
1376
+ }), /* @__PURE__ */ j("div", {
1402
1377
  className: "overflow-x-auto",
1403
1378
  "data-intrinsic-geometry": !0,
1404
- children: /* @__PURE__ */ A("div", {
1379
+ children: /* @__PURE__ */ M("div", {
1405
1380
  className: "inline-flex min-w-max flex-col gap-space-sm",
1406
- children: [/* @__PURE__ */ A("svg", {
1381
+ children: [/* @__PURE__ */ M("svg", {
1407
1382
  width: 28 + l.length * 15,
1408
1383
  height: 124,
1409
1384
  className: "block overflow-visible",
1410
1385
  role: "img",
1411
1386
  "aria-label": e,
1412
- children: [/* @__PURE__ */ A("g", { children: [u.filter((e, t, n) => t === 0 || e.weekIndex - n[t - 1].weekIndex >= 3).map((e) => /* @__PURE__ */ k("text", {
1413
- className: Qe,
1387
+ children: [/* @__PURE__ */ M("g", { children: [u.filter((e, t, n) => t === 0 || e.weekIndex - n[t - 1].weekIndex >= 3).map((e) => /* @__PURE__ */ j("text", {
1388
+ className: et,
1414
1389
  "data-typography": "text",
1415
1390
  x: 28 + e.weekIndex * 15,
1416
1391
  y: 0,
1417
1392
  dominantBaseline: "text-before-edge",
1418
1393
  children: e.label
1419
- }, `${e.label}-${e.weekIndex}`)), c.heatmapDayLabels.map((e, t) => e ? /* @__PURE__ */ k("text", {
1420
- className: Qe,
1394
+ }, `${e.label}-${e.weekIndex}`)), c.heatmapDayLabels.map((e, t) => e ? /* @__PURE__ */ j("text", {
1395
+ className: et,
1421
1396
  "data-typography": "text",
1422
1397
  x: 24,
1423
1398
  y: 28 + t * 15,
1424
1399
  dominantBaseline: "central",
1425
1400
  textAnchor: "end",
1426
1401
  children: e
1427
- }, `day-${t}`) : null)] }), l.map((e, t) => /* @__PURE__ */ k("g", { children: e.map((e, n) => /* @__PURE__ */ k("rect", {
1402
+ }, `day-${t}`) : null)] }), l.map((e, t) => /* @__PURE__ */ j("g", { children: e.map((e, n) => /* @__PURE__ */ j("rect", {
1428
1403
  x: 28 + t * 15,
1429
1404
  y: 22 + n * 15,
1430
1405
  width: 12,
1431
1406
  height: 12,
1432
1407
  rx: 2.5,
1433
- className: e ? Ze[e.level] : "fill-transparent",
1434
- children: e && /* @__PURE__ */ k("title", { children: `${e.date}: Level ${e.level}` })
1408
+ className: e ? $e[e.level] : "fill-transparent",
1409
+ children: e && /* @__PURE__ */ j("title", { children: `${e.date}: Level ${e.level}` })
1435
1410
  }, `d-${t}-${n}`)) }, `w-${t}`))]
1436
- }), /* @__PURE__ */ A("div", {
1411
+ }), /* @__PURE__ */ M("div", {
1437
1412
  className: "activity-heatmap--legend flex items-center justify-end gap-space-sm",
1438
1413
  children: [
1439
- /* @__PURE__ */ k(a, {
1414
+ /* @__PURE__ */ j(a, {
1440
1415
  size: "xs",
1441
1416
  type: "secondary",
1442
1417
  children: c.heatmapLegendLess
@@ -1447,19 +1422,19 @@ function et({ title: e, description: t, data: i, className: o, strings: s }) {
1447
1422
  2,
1448
1423
  3,
1449
1424
  4
1450
- ].map((e) => /* @__PURE__ */ k("svg", {
1425
+ ].map((e) => /* @__PURE__ */ j("svg", {
1451
1426
  width: 12,
1452
1427
  height: 12,
1453
1428
  "aria-hidden": "true",
1454
1429
  className: "shrink-0",
1455
- children: /* @__PURE__ */ k("rect", {
1430
+ children: /* @__PURE__ */ j("rect", {
1456
1431
  width: 12,
1457
1432
  height: 12,
1458
1433
  rx: 2.5,
1459
- className: Ze[e]
1434
+ className: $e[e]
1460
1435
  })
1461
1436
  }, `legend-${e}`)),
1462
- /* @__PURE__ */ k(a, {
1437
+ /* @__PURE__ */ j(a, {
1463
1438
  size: "xs",
1464
1439
  type: "secondary",
1465
1440
  children: c.heatmapLegendMore
@@ -1470,11 +1445,11 @@ function et({ title: e, description: t, data: i, className: o, strings: s }) {
1470
1445
  })]
1471
1446
  });
1472
1447
  }
1473
- et.displayName = "ActivityHeatmap";
1448
+ nt.displayName = "ActivityHeatmap";
1474
1449
  //#endregion
1475
1450
  //#region src/components/blocks/analytics/chart-card/chart-card.tsx
1476
- function tt({ title: e, description: t, headerEnd: n, titleSuffix: i, footer: a, config: o, children: s, initialDimension: c, surface: l, padding: u, className: d, contentClassName: f, chartClassName: p }) {
1477
- return /* @__PURE__ */ k(te, {
1451
+ function rt({ title: e, description: t, headerEnd: n, titleSuffix: i, footer: a, config: o, children: s, initialDimension: c, surface: l, padding: u, className: d, contentClassName: f, chartClassName: p }) {
1452
+ return /* @__PURE__ */ j(ee, {
1478
1453
  title: e,
1479
1454
  description: t,
1480
1455
  headerEnd: n,
@@ -1484,7 +1459,7 @@ function tt({ title: e, description: t, headerEnd: n, titleSuffix: i, footer: a,
1484
1459
  padding: u,
1485
1460
  className: r("chart-card--component", d),
1486
1461
  contentClassName: r("chart-card--content", f),
1487
- children: /* @__PURE__ */ k(ee, {
1462
+ children: /* @__PURE__ */ j(O, {
1488
1463
  config: o,
1489
1464
  initialDimension: c,
1490
1465
  className: r("chart-card--chart min-h-[var(--chart-min-height)]", p),
@@ -1492,10 +1467,10 @@ function tt({ title: e, description: t, headerEnd: n, titleSuffix: i, footer: a,
1492
1467
  })
1493
1468
  });
1494
1469
  }
1495
- tt.displayName = "ChartCard";
1470
+ rt.displayName = "ChartCard";
1496
1471
  //#endregion
1497
1472
  //#region src/components/blocks/analytics/time-ruler/types.ts
1498
- var nt = {
1473
+ var it = {
1499
1474
  legendNone: "None",
1500
1475
  legendLow: "Low",
1501
1476
  legendMedium: "Medium",
@@ -1507,83 +1482,83 @@ var nt = {
1507
1482
  //#endregion
1508
1483
  //#region src/components/blocks/analytics/time-ruler/time-ruler.tsx
1509
1484
  function $({ hours: e, currentHour: t, className: i, strings: o }) {
1510
- let s = n(nt, o), c = Math.max(...e, 1), l = e.indexOf(Math.max(...e));
1485
+ let s = n(it, o), c = Math.max(...e, 1), l = e.indexOf(Math.max(...e));
1511
1486
  function u(e) {
1512
1487
  if (e === 0) return p.density[0];
1513
1488
  let t = e / c;
1514
1489
  return t < .33 ? p.density[1] : t < .66 ? p.density[2] : p.density[3];
1515
1490
  }
1516
- return /* @__PURE__ */ A(d, {
1491
+ return /* @__PURE__ */ M(d, {
1517
1492
  gap: "sm",
1518
1493
  className: r("time-ruler--component", i),
1519
1494
  children: [
1520
- /* @__PURE__ */ k("div", {
1495
+ /* @__PURE__ */ j("div", {
1521
1496
  className: "relative flex h-8 gap-px overflow-hidden rounded-radius-md",
1522
- children: e.map((e, t) => /* @__PURE__ */ k("div", {
1497
+ children: e.map((e, t) => /* @__PURE__ */ j("div", {
1523
1498
  className: r("relative flex-1 transition-colors", u(e), t === l && "ring-1 ring-primary ring-inset"),
1524
1499
  title: s.formatHourTitle(s.formatHourLabel(t), e)
1525
1500
  }, t))
1526
1501
  }),
1527
- /* @__PURE__ */ k("div", {
1502
+ /* @__PURE__ */ j("div", {
1528
1503
  className: "relative flex",
1529
- children: e.map((e, t) => /* @__PURE__ */ k("div", {
1504
+ children: e.map((e, t) => /* @__PURE__ */ j("div", {
1530
1505
  className: "flex-1 text-center",
1531
- children: t % 4 == 0 && /* @__PURE__ */ k(C, {
1506
+ children: t % 4 == 0 && /* @__PURE__ */ j(w, {
1532
1507
  size: "xs",
1533
1508
  className: "tabular-nums",
1534
1509
  children: s.formatHourLabel(t)
1535
1510
  })
1536
1511
  }, t))
1537
1512
  }),
1538
- t !== void 0 && t >= 0 && t < 24 && /* @__PURE__ */ k("div", {
1513
+ t !== void 0 && t >= 0 && t < 24 && /* @__PURE__ */ j("div", {
1539
1514
  className: "relative h-0",
1540
- children: /* @__PURE__ */ k("div", {
1515
+ children: /* @__PURE__ */ j("div", {
1541
1516
  className: "absolute -top-[42px] flex flex-col items-center",
1542
1517
  style: {
1543
1518
  left: `${t / 24 * 100}%`,
1544
1519
  transform: "translateX(-50%)"
1545
1520
  },
1546
- children: /* @__PURE__ */ k("div", { className: "h-0 w-0 border-x-[4px] border-b-[5px] border-x-transparent border-b-destructive" })
1521
+ children: /* @__PURE__ */ j("div", { className: "h-0 w-0 border-x-[4px] border-b-[5px] border-x-transparent border-b-destructive" })
1547
1522
  })
1548
1523
  }),
1549
- /* @__PURE__ */ A("div", {
1524
+ /* @__PURE__ */ M("div", {
1550
1525
  className: "flex items-center gap-space-lg",
1551
1526
  children: [
1552
- /* @__PURE__ */ A("div", {
1527
+ /* @__PURE__ */ M("div", {
1553
1528
  className: "flex items-center gap-space-xs",
1554
- children: [/* @__PURE__ */ k("div", { className: r("h-2 w-3 rounded-radius-sm", p.density[0]) }), /* @__PURE__ */ k(a, {
1529
+ children: [/* @__PURE__ */ j("div", { className: r("h-2 w-3 rounded-radius-sm", p.density[0]) }), /* @__PURE__ */ j(a, {
1555
1530
  size: "xs",
1556
1531
  type: "secondary",
1557
1532
  children: s.legendNone
1558
1533
  })]
1559
1534
  }),
1560
- /* @__PURE__ */ A("div", {
1535
+ /* @__PURE__ */ M("div", {
1561
1536
  className: "flex items-center gap-space-xs",
1562
- children: [/* @__PURE__ */ k("div", { className: r("h-2 w-3 rounded-radius-sm", p.density[1]) }), /* @__PURE__ */ k(a, {
1537
+ children: [/* @__PURE__ */ j("div", { className: r("h-2 w-3 rounded-radius-sm", p.density[1]) }), /* @__PURE__ */ j(a, {
1563
1538
  size: "xs",
1564
1539
  type: "secondary",
1565
1540
  children: s.legendLow
1566
1541
  })]
1567
1542
  }),
1568
- /* @__PURE__ */ A("div", {
1543
+ /* @__PURE__ */ M("div", {
1569
1544
  className: "flex items-center gap-space-xs",
1570
- children: [/* @__PURE__ */ k("div", { className: r("h-2 w-3 rounded-radius-sm", p.density[2]) }), /* @__PURE__ */ k(a, {
1545
+ children: [/* @__PURE__ */ j("div", { className: r("h-2 w-3 rounded-radius-sm", p.density[2]) }), /* @__PURE__ */ j(a, {
1571
1546
  size: "xs",
1572
1547
  type: "secondary",
1573
1548
  children: s.legendMedium
1574
1549
  })]
1575
1550
  }),
1576
- /* @__PURE__ */ A("div", {
1551
+ /* @__PURE__ */ M("div", {
1577
1552
  className: "flex items-center gap-space-xs",
1578
- children: [/* @__PURE__ */ k("div", { className: r("h-2 w-3 rounded-radius-sm", p.density[3]) }), /* @__PURE__ */ k(a, {
1553
+ children: [/* @__PURE__ */ j("div", { className: r("h-2 w-3 rounded-radius-sm", p.density[3]) }), /* @__PURE__ */ j(a, {
1579
1554
  size: "xs",
1580
1555
  type: "secondary",
1581
1556
  children: s.legendHigh
1582
1557
  })]
1583
1558
  }),
1584
- t !== void 0 && /* @__PURE__ */ A("div", {
1559
+ t !== void 0 && /* @__PURE__ */ M("div", {
1585
1560
  className: "flex items-center gap-space-xs",
1586
- children: [/* @__PURE__ */ k("div", { className: "h-0 w-0 border-x-[3px] border-b-[4px] border-x-transparent border-b-destructive" }), /* @__PURE__ */ k(a, {
1561
+ children: [/* @__PURE__ */ j("div", { className: "h-0 w-0 border-x-[3px] border-b-[4px] border-x-transparent border-b-destructive" }), /* @__PURE__ */ j(a, {
1587
1562
  size: "xs",
1588
1563
  type: "secondary",
1589
1564
  children: s.legendNow
@@ -1596,6 +1571,6 @@ function $({ hours: e, currentHour: t, className: i, strings: o }) {
1596
1571
  }
1597
1572
  $.displayName = "TimeDistributionRuler";
1598
1573
  //#endregion
1599
- export { et as ActivityHeatmap, tt as ChartCard, Y as Metric, Ae as MetricBar, Fe as MetricComparison, Xe as MetricGradient, Ne as MetricGrid, qe as MetricMicroGrid, G as MetricSkeleton, U as MetricSparkline, B as MetricTrendChip, $ as TimeDistributionRuler, re as UsageCard, I as defaultAnalyticsStrings, X as defaultMetricComparisonStrings, nt as defaultTimeDistributionRulerStrings, ne as defaultUsageCardStrings, L as formatMetricValue, de as resolveTrend };
1574
+ export { nt as ActivityHeatmap, rt as ChartCard, Y as Metric, Me as MetricBar, Le as MetricComparison, Qe as MetricGradient, Fe as MetricGrid, Ye as MetricMicroGrid, q as MetricSkeleton, G as MetricSparkline, H as MetricTrendChip, $ as TimeDistributionRuler, ne as UsageCard, R as defaultAnalyticsStrings, X as defaultMetricComparisonStrings, it as defaultTimeDistributionRulerStrings, te as defaultUsageCardStrings, z as formatMetricValue, ue as resolveTrend };
1600
1575
 
1601
1576
  //# sourceMappingURL=analytics.js.map