themelia-ui 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (709) hide show
  1. package/.agents/skills/themelia-ui/SKILL.md +27 -29
  2. package/.agents/skills/themelia-ui/references/api-compatibility.md +3 -3
  3. package/.agents/skills/themelia-ui/references/composition.md +2 -18
  4. package/.agents/skills/themelia-ui/references/framework-wiring.md +8 -8
  5. package/.agents/skills/themelia-ui/references/imports.md +104 -104
  6. package/.agents/skills/themelia-ui/references/installation.md +55 -27
  7. package/.agents/skills/themelia-ui/references/migration.md +136 -5
  8. package/.agents/skills/themelia-ui/references/provider-and-scoping.md +13 -19
  9. package/.agents/skills/themelia-ui/references/theming.md +170 -131
  10. package/.agents/skills/themelia-ui/references/troubleshooting.md +62 -27
  11. package/.agents/skills/themelia-ui/references/verification.md +2 -3
  12. package/CHANGELOG.md +187 -0
  13. package/README.md +45 -60
  14. package/dist/accordion-CHuzMmWL.js +143 -0
  15. package/dist/{action-menu-BNLURfMK.js → action-menu-BwiL_F6I.js} +35 -33
  16. package/dist/{alert-dialog-BMVo6Z-8.js → alert-dialog-Bmo1YrTm.js} +1 -1
  17. package/dist/avatar-Dc_BNYfB.js +93 -0
  18. package/dist/badge-VlJVZjdm.js +45 -0
  19. package/dist/base/accordion.js +1 -1
  20. package/dist/base/action-menu.js +1 -1
  21. package/dist/base/alert-dialog.js +1 -1
  22. package/dist/base/aspect-ratio.js +3 -1
  23. package/dist/base/avatar.js +1 -1
  24. package/dist/base/badge.js +2 -2
  25. package/dist/base/batch-action-bar.js +1 -1
  26. package/dist/base/buttons.js +1 -1
  27. package/dist/base/cards.js +1 -1
  28. package/dist/base/carousel.js +6 -4
  29. package/dist/base/chart.js +1 -1
  30. package/dist/base/choice-inputs.js +1 -1
  31. package/dist/base/combobox.js +1 -1
  32. package/dist/base/command.js +1 -1
  33. package/dist/base/context-menu.js +22 -21
  34. package/dist/base/copyable.js +1 -1
  35. package/dist/base/date-pickers.js +1 -1
  36. package/dist/base/dialog.js +1 -1
  37. package/dist/base/display.js +1 -1
  38. package/dist/base/dropdown-menu.js +1 -1
  39. package/dist/base/feedback.js +1 -1
  40. package/dist/base/forms-numeric.js +1 -1
  41. package/dist/base/forms.js +1 -1
  42. package/dist/base/hover-card.js +26 -23
  43. package/dist/base/input-group.js +1 -1
  44. package/dist/base/item.js +1 -1
  45. package/dist/base/label.js +1 -1
  46. package/dist/base/menubar.js +20 -14
  47. package/dist/base/navigation-menu.js +47 -38
  48. package/dist/base/navigation.js +1 -1
  49. package/dist/base/otp-input.js +36 -30
  50. package/dist/base/overlay.js +1 -1
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +51 -47
  54. package/dist/base/repeaters.js +1 -1
  55. package/dist/base/resizable.js +2 -0
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/skeleton.js +1 -1
  59. package/dist/base/spinner.js +1 -1
  60. package/dist/base/structure.js +1 -1
  61. package/dist/base/table.js +1 -1
  62. package/dist/base/text-inputs.js +1 -1
  63. package/dist/base/timeline.js +1 -1
  64. package/dist/base/toaster.js +1 -1
  65. package/dist/base/toggle.js +21 -15
  66. package/dist/base/toolbar.js +1 -1
  67. package/dist/base/tooltip.js +1 -1
  68. package/dist/base/typography.js +2 -2
  69. package/dist/base/upload.js +1 -1
  70. package/dist/base/value-inputs.js +1 -1
  71. package/dist/{batch-action-bar-BZYNKXdV.js → batch-action-bar-DZVMVW83.js} +11 -8
  72. package/dist/{admin/patterns → blocks/admin}/access.js +79 -76
  73. package/dist/blocks/admin/commerce.js +2493 -0
  74. package/dist/{patterns → blocks}/analytics.js +312 -303
  75. package/dist/{patterns → blocks}/onboarding.js +27 -23
  76. package/dist/{patterns → blocks}/timelines.js +1 -1
  77. package/dist/buttons-BX2JfL5X.js +173 -0
  78. package/dist/cards-DdiICdMM.js +279 -0
  79. package/dist/chart-BkK3Xm10.js +201 -0
  80. package/dist/choice-inputs-CCw-0gD6.js +694 -0
  81. package/dist/combobox-Byu8N-Oe.js +274 -0
  82. package/dist/command-CnB_IZSo.js +156 -0
  83. package/dist/comments-C6Y_ddMt.js +1443 -0
  84. package/dist/components/base/action-menu/action-menu.d.ts +1 -1
  85. package/dist/components/base/action-menu/action-menu.types.d.ts +2 -2
  86. package/dist/components/base/avatar/avatar.d.ts +5 -2
  87. package/dist/components/base/badge/badge.d.ts +10 -10
  88. package/dist/components/base/badge/badge.variants.d.ts +1 -2
  89. package/dist/components/base/badge/index.d.ts +1 -2
  90. package/dist/components/base/buttons/button.d.ts +9 -8
  91. package/dist/components/base/buttons/button.types.d.ts +2 -2
  92. package/dist/components/base/buttons/index.d.ts +1 -1
  93. package/dist/components/base/buttons/text-button.d.ts +1 -1
  94. package/dist/components/base/cards/card-actions.d.ts +1 -1
  95. package/dist/components/base/cards/card.d.ts +3 -1
  96. package/dist/components/base/cards/partials/card-header.d.ts +2 -1
  97. package/dist/components/base/choice-inputs/choice.types.d.ts +2 -2
  98. package/dist/components/base/choice-inputs/partials/choice-parts.d.ts +3 -3
  99. package/dist/components/base/command/command.d.ts +5 -2
  100. package/dist/components/base/display/icon-badge.d.ts +5 -3
  101. package/dist/components/base/display/index.d.ts +1 -1
  102. package/dist/components/base/display/metadata-list.d.ts +6 -6
  103. package/dist/components/base/display/metadata-value.d.ts +1 -1
  104. package/dist/components/base/display/separator.d.ts +2 -2
  105. package/dist/components/base/feedback/alert.d.ts +3 -2
  106. package/dist/components/base/feedback/empty.d.ts +5 -4
  107. package/dist/components/base/feedback/progress-circle.d.ts +2 -2
  108. package/dist/components/base/feedback/progress.d.ts +3 -1
  109. package/dist/components/base/input-group/input-group.d.ts +8 -10
  110. package/dist/components/base/item/item.d.ts +2 -2
  111. package/dist/components/base/overlay/index.d.ts +1 -1
  112. package/dist/components/base/overlay/overlay.types.d.ts +7 -5
  113. package/dist/components/base/qr-code/qr-code.d.ts +4 -4
  114. package/dist/components/base/sheet/sheet.d.ts +1 -1
  115. package/dist/components/base/sidebar/sidebar.d.ts +9 -13
  116. package/dist/components/base/spinner/spinner.d.ts +2 -2
  117. package/dist/components/base/structure/adaptive-grid.d.ts +3 -3
  118. package/dist/components/base/structure/bleed.d.ts +3 -2
  119. package/dist/components/base/structure/grid.d.ts +2 -2
  120. package/dist/components/base/structure/index.d.ts +1 -1
  121. package/dist/components/base/structure/split.d.ts +3 -3
  122. package/dist/components/base/structure/stack.d.ts +5 -5
  123. package/dist/components/base/structure/structure.maps.d.ts +2 -1
  124. package/dist/components/base/structure/structure.types.d.ts +10 -4
  125. package/dist/components/base/toggle/toggle.d.ts +2 -2
  126. package/dist/components/base/toolbar/toolbar.d.ts +3 -3
  127. package/dist/components/base/typography/index.d.ts +2 -0
  128. package/dist/components/base/typography/rich-text/rich-text.variants.d.ts +9 -0
  129. package/dist/components/base/typography/text/index.d.ts +1 -0
  130. package/dist/components/base/typography/text/text.d.ts +15 -8
  131. package/dist/components/base/typography/text/text.variants.d.ts +41 -0
  132. package/dist/components/base/value-inputs/color-input.d.ts +1 -7
  133. package/dist/components/base/value-inputs/slider.d.ts +2 -7
  134. package/dist/components/{admin/patterns → blocks/admin}/commerce/vendor-profile.d.ts +2 -1
  135. package/dist/components/{patterns → blocks}/analytics/analytics.strings.d.ts +2 -5
  136. package/dist/components/features/actions/action-adapters.d.ts +3 -3
  137. package/dist/components/features/actions/actions.types.d.ts +3 -5
  138. package/dist/components/features/actions/index.d.ts +1 -1
  139. package/dist/components/features/activities/activities-feed.d.ts +1 -1
  140. package/dist/components/features/activities/activities.types.d.ts +4 -4
  141. package/dist/components/features/activities/activity-parts.d.ts +3 -3
  142. package/dist/components/features/activities/activity-row.d.ts +4 -4
  143. package/dist/components/features/activities/index.d.ts +1 -1
  144. package/dist/components/features/ai-chat/ai-chat.types.d.ts +10 -3
  145. package/dist/components/features/ai-chat/ai-message-surfaces.d.ts +1 -1
  146. package/dist/components/features/ai-chat/ai-work-surfaces.d.ts +1 -1
  147. package/dist/components/features/combobox/combobox.strings.d.ts +2 -2
  148. package/dist/components/features/event-calendar/event-calendar.types.d.ts +3 -0
  149. package/dist/components/features/media-library/index.d.ts +1 -1
  150. package/dist/components/features/media-library/media-library-parts.d.ts +4 -3
  151. package/dist/components/features/media-library/media-library-views.d.ts +4 -3
  152. package/dist/components/features/media-library/media-library.d.ts +1 -1
  153. package/dist/components/features/media-library/media-library.strings.d.ts +12 -13
  154. package/dist/components/features/media-library/media-library.types.d.ts +11 -9
  155. package/dist/components/features/media-library/media-resource-gallery.d.ts +1 -1
  156. package/dist/components/features/media-library/use-media-library.d.ts +1 -4
  157. package/dist/components/features/overlays/action-overlay-frame.d.ts +1 -1
  158. package/dist/components/features/overlays/index.d.ts +1 -1
  159. package/dist/components/features/overlays/overlay-parts.d.ts +3 -3
  160. package/dist/components/features/overlays/overlays.types.d.ts +8 -7
  161. package/dist/components/features/rich-text-editor/index.d.ts +0 -1
  162. package/dist/components/features/table/data-table-body.d.ts +1 -1
  163. package/dist/components/features/table/data-table-expanded-row.d.ts +27 -0
  164. package/dist/components/features/table/data-table-header.d.ts +1 -1
  165. package/dist/components/features/table/data-table-size.d.ts +1 -1
  166. package/dist/components/features/table/data-table.d.ts +1 -1
  167. package/dist/components/features/table/index.d.ts +1 -1
  168. package/dist/components/features/table/table-helpers.d.ts +9 -3
  169. package/dist/components/features/table/table.strings.d.ts +11 -0
  170. package/dist/components/features/table/table.types.d.ts +60 -2
  171. package/dist/components/features/theme-tweaker/index.d.ts +1 -1
  172. package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +1 -1
  173. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +6 -10
  174. package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +22 -6
  175. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
  176. package/dist/components/layout/auth/auth.d.ts +1 -1
  177. package/dist/components/layout/auth/auth.types.d.ts +1 -1
  178. package/dist/components/primitives/value.d.ts +3 -1
  179. package/dist/containers-B8d8U9GS.js +2 -0
  180. package/dist/{copyable-H1TUEY-H.js → copyable-D9Okb1w6.js} +12 -11
  181. package/dist/core.css +2 -2
  182. package/dist/css/access.css +2 -1
  183. package/dist/css/accordion.css +2 -1
  184. package/dist/css/action-menu.css +2 -1
  185. package/dist/css/activities.css +2 -1
  186. package/dist/css/ai-chat.css +2 -1
  187. package/dist/css/analytics.css +2 -1
  188. package/dist/css/app-shell.css +2 -1
  189. package/dist/css/aspect-ratio.css +2 -1
  190. package/dist/css/async-preview.css +2 -1
  191. package/dist/css/auth.css +2 -1
  192. package/dist/css/avatar.css +2 -1
  193. package/dist/css/badge.css +2 -1
  194. package/dist/css/batch-action-bar.css +2 -1
  195. package/dist/css/buttons.css +2 -1
  196. package/dist/css/cards.css +2 -1
  197. package/dist/css/carousel.css +2 -1
  198. package/dist/css/chart.css +2 -1
  199. package/dist/css/choice-inputs.css +2 -1
  200. package/dist/css/combobox.css +2 -1
  201. package/dist/css/combobox2.css +2 -1
  202. package/dist/css/command.css +2 -1
  203. package/dist/css/comments.css +2 -1
  204. package/dist/css/commerce.css +2 -1
  205. package/dist/css/containers.css +2 -1
  206. package/dist/css/copyable.css +2 -1
  207. package/dist/css/data-view.css +2 -1
  208. package/dist/css/date-pickers.css +2 -1
  209. package/dist/css/display.css +2 -1
  210. package/dist/css/dropdown-menu.css +2 -1
  211. package/dist/css/event-calendar.css +2 -1
  212. package/dist/css/feedback.css +2 -1
  213. package/dist/css/filters.css +2 -1
  214. package/dist/css/forms-numeric.css +2 -1
  215. package/dist/css/forms.css +2 -1
  216. package/dist/css/global-search.css +2 -1
  217. package/dist/css/header.css +2 -1
  218. package/dist/css/hover-card.css +2 -1
  219. package/dist/css/input-group.css +2 -1
  220. package/dist/css/item.css +2 -1
  221. package/dist/css/kanban.css +2 -1
  222. package/dist/css/label.css +2 -1
  223. package/dist/css/map.css +2 -1
  224. package/dist/css/media-library.css +2 -1
  225. package/dist/css/mentions.css +2 -1
  226. package/dist/css/menubar.css +2 -1
  227. package/dist/css/navigation-menu.css +2 -1
  228. package/dist/css/navigation.css +2 -1
  229. package/dist/css/navigation2.css +2 -1
  230. package/dist/css/onboarding.css +2 -1
  231. package/dist/css/otp-input.css +2 -1
  232. package/dist/css/overlay.css +2 -1
  233. package/dist/css/overlays.css +2 -1
  234. package/dist/css/page.css +2 -1
  235. package/dist/css/popover-menu.css +2 -1
  236. package/dist/css/popover.css +2 -1
  237. package/dist/css/primitives.css +2 -1
  238. package/dist/css/products.css +2 -1
  239. package/dist/css/qr-code.css +2 -1
  240. package/dist/css/repeaters.css +2 -1
  241. package/dist/css/resizable.css +2 -1
  242. package/dist/css/resource-assignment.css +2 -1
  243. package/dist/css/resource.css +2 -1
  244. package/dist/css/rich-text-editor.css +2 -1
  245. package/dist/css/schema-form.css +2 -1
  246. package/dist/css/sidebar.css +2 -1
  247. package/dist/css/sidebar2.css +2 -1
  248. package/dist/css/skeleton.css +2 -1
  249. package/dist/css/spinner.css +2 -1
  250. package/dist/css/structure.css +2 -1
  251. package/dist/css/sync.css +2 -1
  252. package/dist/css/table.css +2 -1
  253. package/dist/css/table2.css +2 -1
  254. package/dist/css/text-inputs.css +2 -1
  255. package/dist/css/theme-tweaker.css +2 -1
  256. package/dist/css/timeline.css +2 -1
  257. package/dist/css/timelines.css +2 -1
  258. package/dist/css/toaster.css +2 -1
  259. package/dist/css/toggle.css +2 -1
  260. package/dist/css/toolbar.css +2 -1
  261. package/dist/css/tooltip.css +2 -1
  262. package/dist/css/typography.css +2 -1
  263. package/dist/css/upload.css +2 -1
  264. package/dist/css/value-inputs.css +2 -1
  265. package/dist/css/workspace.css +2 -1
  266. package/dist/css-graph.json +1027 -0
  267. package/dist/date-pickers-C2HgjpFU.js +685 -0
  268. package/dist/{dialog-CtFCuTUF.js → dialog-0nRFg5Zs.js} +1 -1
  269. package/dist/display-BGN834xV.js +664 -0
  270. package/dist/dropdown-menu-Br8kvjrF.js +235 -0
  271. package/dist/empty.js +0 -0
  272. package/dist/features/actions.js +6 -6
  273. package/dist/features/activities.js +219 -216
  274. package/dist/features/ai-chat.js +593 -565
  275. package/dist/features/async-preview.js +105 -286
  276. package/dist/features/combobox.js +119 -117
  277. package/dist/features/comments.js +1 -1
  278. package/dist/features/data-view.js +56 -55
  279. package/dist/features/event-calendar.js +189 -185
  280. package/dist/features/filters.js +1 -1
  281. package/dist/features/global-search.js +259 -260
  282. package/dist/features/kanban.js +39 -37
  283. package/dist/features/map.js +357 -354
  284. package/dist/features/media-library.js +931 -931
  285. package/dist/features/mentions.js +1 -1
  286. package/dist/features/overlays.js +1 -1
  287. package/dist/features/products.js +950 -942
  288. package/dist/features/resource-assignment.js +39 -37
  289. package/dist/features/resource.js +70 -71
  290. package/dist/features/rich-text-editor.js +2 -2
  291. package/dist/features/schema-form.js +342 -338
  292. package/dist/features/sync.js +14 -12
  293. package/dist/features/table.js +1 -1
  294. package/dist/features/theme-tweaker.js +1002 -962
  295. package/dist/feedback-D4qVsKlD.js +430 -0
  296. package/dist/{filters-DOLKRSmb.js → filters-geLuSlFL.js} +386 -383
  297. package/dist/forms-NxbJK4Mh.js +250 -0
  298. package/dist/forms-numeric-C6NMdj6G.js +582 -0
  299. package/dist/index.js +2 -2
  300. package/dist/input-group-HS_Z0Ei_.js +119 -0
  301. package/dist/item-CuUJyETl.js +150 -0
  302. package/dist/{label-DumoMDm6.js → label-HOBXAscw.js} +7 -5
  303. package/dist/layout/app-shell.js +4 -2
  304. package/dist/layout/auth.js +102 -100
  305. package/dist/layout/header.js +190 -180
  306. package/dist/layout/navigation.js +1 -1
  307. package/dist/layout/page.js +18 -16
  308. package/dist/layout/settings.js +2 -2
  309. package/dist/layout/sidebar.js +43 -43
  310. package/dist/layout/workspace.js +71 -69
  311. package/dist/lib/action-presentation.d.ts +3 -3
  312. package/dist/lib/component-vocabulary.d.ts +2 -2
  313. package/dist/lib/css-length.d.ts +2 -0
  314. package/dist/lib/responsive.d.ts +1 -1
  315. package/dist/lib/theming/index.d.ts +1 -0
  316. package/dist/lib/theming/recipes.d.ts +2 -2
  317. package/dist/lib/theming/themes/dense.d.ts +3 -0
  318. package/dist/lib/theming/themes/editorial.d.ts +3 -0
  319. package/dist/lib/theming/themes/index.d.ts +8 -0
  320. package/dist/lib/theming/themes/pair.d.ts +7 -0
  321. package/dist/lib/theming/themes/sharp.d.ts +3 -0
  322. package/dist/lib/theming/themes/soft.d.ts +3 -0
  323. package/dist/lib/theming/themes/types.d.ts +12 -0
  324. package/dist/lib/ui-provider/index.d.ts +1 -1
  325. package/dist/lib/ui-provider/scope.d.ts +5 -8
  326. package/dist/lib/ui-provider/tokens.d.ts +11 -3
  327. package/dist/lib/ui-provider/tokens.generated.d.ts +6 -4
  328. package/dist/lib/ui-provider/types.d.ts +17 -19
  329. package/dist/{mentions-BbsEHlcH.js → mentions-oeYNv_j1.js} +113 -111
  330. package/dist/navigation-BTX5Ti0Z.js +622 -0
  331. package/dist/navigation-WYKjDhZq.js +216 -0
  332. package/dist/overlay-C8RAgi2_.js +356 -0
  333. package/dist/{overlays-DvVoS3td.js → overlays-9BxwFTou.js} +77 -75
  334. package/dist/popover-CA7SP_iz.js +127 -0
  335. package/dist/popover-menu-DcLeiw9r.js +192 -0
  336. package/dist/{primitives-D0bdDozz.js → primitives-BskKlf35.js} +181 -178
  337. package/dist/primitives.js +1 -1
  338. package/dist/profiles/admin.json +6 -36
  339. package/dist/profiles/general.json +6 -96
  340. package/dist/repeaters-DfptvbGA.js +445 -0
  341. package/dist/rich-text-editor-D_Ppm8yh.js +491 -0
  342. package/dist/{sheet-CKcmRbJ9.js → sheet-D-DVZH_b.js} +3 -3
  343. package/dist/sidebar-DXQOy_Cb.js +421 -0
  344. package/dist/skeleton-CubvHel9.js +173 -0
  345. package/dist/spinner-Tc1QCnxM.js +30 -0
  346. package/dist/{structure-D0WGQAP3.js → structure-B9Y5NkP_.js} +15 -22
  347. package/dist/style.css +1 -1
  348. package/dist/styles/TOKENS.md +115 -275
  349. package/dist/styles/animation.css +114 -0
  350. package/dist/styles/base.css +7 -6
  351. package/dist/styles/fields.css +45 -63
  352. package/dist/styles/focus.css +12 -0
  353. package/dist/styles/forced-colors.css +11 -10
  354. package/dist/styles/index.css +23 -30
  355. package/dist/styles/map.css +45 -34
  356. package/dist/styles/mentions.css +14 -52
  357. package/dist/styles/overlays.css +7 -7
  358. package/dist/styles/tailwind.css +76 -127
  359. package/dist/styles/targets.css +3 -3
  360. package/dist/styles/theme/colour.css +86 -0
  361. package/dist/styles/theme/density.css +31 -0
  362. package/dist/styles/theme/elevation.css +9 -0
  363. package/dist/styles/theme/layout.css +18 -0
  364. package/dist/styles/theme/motion.css +18 -0
  365. package/dist/styles/theme/shape.css +12 -0
  366. package/dist/styles/theme/size.css +10 -0
  367. package/dist/styles/theme/spacing.css +11 -0
  368. package/dist/styles/theme/typography.css +20 -0
  369. package/dist/styles/tone.css +61 -0
  370. package/dist/table-DT_20ity.js +1262 -0
  371. package/dist/table-Ds_eO9av.js +191 -0
  372. package/dist/tailwind.css +76 -127
  373. package/dist/text-inputs-BboE77nZ.js +395 -0
  374. package/dist/theming-C5ygF5uf.js +292 -0
  375. package/dist/theming.js +2 -2
  376. package/dist/{timeline-BdaGRyj-.js → timeline-BRZbSdhf.js} +57 -49
  377. package/dist/{timelines-BB7550mz.js → timelines-DczZKW5p.js} +69 -67
  378. package/dist/{toaster-bBMgXm8z.js → toaster-CXL8L7Mm.js} +106 -99
  379. package/dist/tokens.json +1027 -636
  380. package/dist/toolbar-DBK-c4yy.js +74 -0
  381. package/dist/tooltip-BPYP-jUm.js +76 -0
  382. package/dist/{typography-BkxEiwQ1.js → typography-DmeR05Er.js} +87 -53
  383. package/dist/{ui-provider-Cmoq6i_D.js → ui-provider-DpzLUD12.js} +117 -69
  384. package/dist/ui-provider.js +1 -1
  385. package/dist/upload-C_6mlbfl.js +968 -0
  386. package/dist/use-async-preview-BFwf9ElY.js +188 -0
  387. package/dist/value-inputs-CnO6RZeT.js +728 -0
  388. package/docs/README.md +2 -2
  389. package/docs/build/recipes.md +10992 -10628
  390. package/docs/generated/component-index.json +11133 -11624
  391. package/docs/generated/components/INDEX.md +5 -5
  392. package/docs/generated/components/base--accordion.md +51 -2
  393. package/docs/generated/components/base--action-menu.md +14 -15
  394. package/docs/generated/components/base--alert-dialog.md +3 -4
  395. package/docs/generated/components/base--aspect-ratio.md +3 -4
  396. package/docs/generated/components/base--avatar.md +7 -7
  397. package/docs/generated/components/base--badge.md +159 -27
  398. package/docs/generated/components/base--batch-action-bar.md +6 -7
  399. package/docs/generated/components/base--buttons.md +151 -47
  400. package/docs/generated/components/base--cards.md +107 -14
  401. package/docs/generated/components/base--carousel.md +1 -2
  402. package/docs/generated/components/base--chart.md +44 -8
  403. package/docs/generated/components/base--choice-inputs.md +10 -11
  404. package/docs/generated/components/base--combobox.md +3 -4
  405. package/docs/generated/components/base--command.md +6 -6
  406. package/docs/generated/components/base--context-menu.md +1 -2
  407. package/docs/generated/components/base--copyable.md +6 -7
  408. package/docs/generated/components/base--date-pickers.md +6 -7
  409. package/docs/generated/components/base--dialog.md +6 -7
  410. package/docs/generated/components/base--direction.md +1 -1
  411. package/docs/generated/components/base--display.md +234 -54
  412. package/docs/generated/components/base--dropdown-menu.md +6 -7
  413. package/docs/generated/components/base--feedback.md +71 -18
  414. package/docs/generated/components/base--forms-numeric.md +6 -7
  415. package/docs/generated/components/base--forms.md +12 -13
  416. package/docs/generated/components/base--hover-card.md +3 -4
  417. package/docs/generated/components/base--input-group.md +27 -30
  418. package/docs/generated/components/base--item.md +8 -9
  419. package/docs/generated/components/base--label.md +2 -3
  420. package/docs/generated/components/base--menubar.md +2 -4
  421. package/docs/generated/components/base--navigation-menu.md +2 -3
  422. package/docs/generated/components/base--navigation.md +2 -3
  423. package/docs/generated/components/base--otp-input.md +3 -4
  424. package/docs/generated/components/base--overlay.md +56 -47
  425. package/docs/generated/components/base--popover-menu.md +7 -8
  426. package/docs/generated/components/base--popover.md +9 -10
  427. package/docs/generated/components/base--qr-code.md +7 -8
  428. package/docs/generated/components/base--repeaters.md +6 -7
  429. package/docs/generated/components/base--resizable.md +2 -3
  430. package/docs/generated/components/base--sheet.md +12 -13
  431. package/docs/generated/components/base--sidebar.md +9 -11
  432. package/docs/generated/components/base--skeleton.md +6 -7
  433. package/docs/generated/components/base--slot.md +1 -1
  434. package/docs/generated/components/base--spinner.md +5 -7
  435. package/docs/generated/components/base--structure.md +264 -65
  436. package/docs/generated/components/base--table.md +61 -3
  437. package/docs/generated/components/base--text-inputs.md +17 -18
  438. package/docs/generated/components/base--timeline.md +45 -4
  439. package/docs/generated/components/base--toaster.md +43 -12
  440. package/docs/generated/components/base--toggle.md +11 -12
  441. package/docs/generated/components/base--toolbar.md +7 -8
  442. package/docs/generated/components/base--tooltip.md +5 -6
  443. package/docs/generated/components/base--typography.md +279 -32
  444. package/docs/generated/components/base--upload.md +8 -9
  445. package/docs/generated/components/base--value-inputs.md +9 -38
  446. package/docs/generated/components/{admin--patterns--access.md → blocks--admin--access.md} +5 -6
  447. package/docs/generated/components/{admin--patterns--commerce.md → blocks--admin--commerce.md} +40 -41
  448. package/docs/generated/components/{patterns--analytics.md → blocks--analytics.md} +13 -14
  449. package/docs/generated/components/{patterns--onboarding.md → blocks--onboarding.md} +6 -7
  450. package/docs/generated/components/{patterns--timelines.md → blocks--timelines.md} +6 -7
  451. package/docs/generated/components/features--actions.md +8 -18
  452. package/docs/generated/components/features--activities.md +31 -32
  453. package/docs/generated/components/features--ai-chat.md +15 -15
  454. package/docs/generated/components/features--async-preview.md +5 -6
  455. package/docs/generated/components/features--combobox.md +4 -5
  456. package/docs/generated/components/features--comments.md +0 -1
  457. package/docs/generated/components/features--data-view.md +4 -5
  458. package/docs/generated/components/features--event-calendar.md +1 -2
  459. package/docs/generated/components/features--filters.md +1 -2
  460. package/docs/generated/components/features--global-search.md +1 -2
  461. package/docs/generated/components/features--kanban.md +1 -2
  462. package/docs/generated/components/features--map.md +1 -2
  463. package/docs/generated/components/features--media-library.md +37 -38
  464. package/docs/generated/components/features--mentions.md +7 -7
  465. package/docs/generated/components/features--overlays.md +21 -22
  466. package/docs/generated/components/features--products.md +10 -11
  467. package/docs/generated/components/features--resource-assignment.md +2 -3
  468. package/docs/generated/components/features--resource.md +3 -4
  469. package/docs/generated/components/features--rich-text-editor.md +4 -13
  470. package/docs/generated/components/features--schema-form.md +1 -2
  471. package/docs/generated/components/features--sync.md +2 -3
  472. package/docs/generated/components/features--table.md +162 -12
  473. package/docs/generated/components/features--theme-tweaker.md +30 -15
  474. package/docs/generated/components/forms.md +2 -2
  475. package/docs/generated/components/layout--app-shell.md +10 -11
  476. package/docs/generated/components/layout--auth.md +8 -9
  477. package/docs/generated/components/layout--containers.md +0 -1
  478. package/docs/generated/components/layout--header.md +2 -3
  479. package/docs/generated/components/layout--navigation.md +0 -1
  480. package/docs/generated/components/layout--page.md +3 -4
  481. package/docs/generated/components/layout--settings.md +0 -1
  482. package/docs/generated/components/layout--sidebar.md +6 -7
  483. package/docs/generated/components/layout--workspace.md +3 -4
  484. package/docs/generated/components/primitives.md +128 -17
  485. package/docs/generated/components/theming.md +147 -4
  486. package/docs/generated/components/ui-provider.md +95 -77
  487. package/docs/generated/imports.md +104 -104
  488. package/docs/generated/migration-broad-imports.json +267 -90
  489. package/docs/generated/migration-broad-imports.md +266 -101
  490. package/docs/generated/migration-codemod.json +365 -70
  491. package/docs/generated/migration.md +665 -95
  492. package/docs/generated/profiles.md +27 -27
  493. package/docs/generated/public-api.md +104 -102
  494. package/docs/generated/recipes.json +585 -810
  495. package/docs/learn/api-compatibility.md +3 -3
  496. package/docs/learn/composition.md +2 -18
  497. package/docs/learn/framework-wiring.md +8 -8
  498. package/docs/learn/installation.md +55 -27
  499. package/docs/learn/migration.md +136 -5
  500. package/docs/learn/provider-and-scoping.md +13 -19
  501. package/docs/learn/theming.md +170 -131
  502. package/docs/learn/troubleshooting.md +62 -27
  503. package/docs/learn/verification.md +2 -3
  504. package/package.json +39 -473
  505. package/scripts/consumer/codemod.mjs +51 -12
  506. package/scripts/consumer/find-component.mjs +2 -4
  507. package/src/styles/TOKENS.md +115 -275
  508. package/dist/accordion-6YPJ9XRO.js +0 -135
  509. package/dist/admin/patterns/access.css +0 -15
  510. package/dist/admin/patterns/commerce.css +0 -29
  511. package/dist/admin/patterns/commerce.js +0 -2493
  512. package/dist/avatar-CS7zow2q.js +0 -85
  513. package/dist/badge-CxOuTfVr.js +0 -63
  514. package/dist/base/accordion.css +0 -3
  515. package/dist/base/action-menu.css +0 -6
  516. package/dist/base/alert-dialog.css +0 -4
  517. package/dist/base/aspect-ratio.css +0 -2
  518. package/dist/base/avatar.css +0 -4
  519. package/dist/base/badge.css +0 -2
  520. package/dist/base/batch-action-bar.css +0 -5
  521. package/dist/base/buttons.css +0 -4
  522. package/dist/base/cards.css +0 -13
  523. package/dist/base/carousel.css +0 -5
  524. package/dist/base/chart.css +0 -2
  525. package/dist/base/choice-inputs.css +0 -10
  526. package/dist/base/combobox.css +0 -3
  527. package/dist/base/command.css +0 -9
  528. package/dist/base/context-menu.css +0 -2
  529. package/dist/base/copyable.css +0 -6
  530. package/dist/base/date-pickers.css +0 -11
  531. package/dist/base/dialog.css +0 -4
  532. package/dist/base/display.css +0 -8
  533. package/dist/base/dropdown-menu.css +0 -2
  534. package/dist/base/feedback.css +0 -5
  535. package/dist/base/forms-numeric.css +0 -12
  536. package/dist/base/forms.css +0 -14
  537. package/dist/base/hover-card.css +0 -2
  538. package/dist/base/input-group.css +0 -6
  539. package/dist/base/item.css +0 -9
  540. package/dist/base/label.css +0 -3
  541. package/dist/base/menubar.css +0 -2
  542. package/dist/base/navigation-menu.css +0 -2
  543. package/dist/base/navigation.css +0 -12
  544. package/dist/base/otp-input.css +0 -9
  545. package/dist/base/overlay.css +0 -4
  546. package/dist/base/popover-menu.css +0 -11
  547. package/dist/base/popover.css +0 -3
  548. package/dist/base/qr-code.css +0 -2
  549. package/dist/base/repeaters.css +0 -18
  550. package/dist/base/resizable.css +0 -2
  551. package/dist/base/sheet.css +0 -4
  552. package/dist/base/sidebar.css +0 -12
  553. package/dist/base/skeleton.css +0 -9
  554. package/dist/base/spinner.css +0 -2
  555. package/dist/base/structure.css +0 -2
  556. package/dist/base/table.css +0 -3
  557. package/dist/base/text-inputs.css +0 -2
  558. package/dist/base/timeline.css +0 -9
  559. package/dist/base/toaster.css +0 -2
  560. package/dist/base/toggle.css +0 -2
  561. package/dist/base/toolbar.css +0 -5
  562. package/dist/base/tooltip.css +0 -2
  563. package/dist/base/typography.css +0 -2
  564. package/dist/base/upload.css +0 -10
  565. package/dist/base/value-inputs.css +0 -14
  566. package/dist/buttons-CqXKWty3.js +0 -179
  567. package/dist/cards-C6Ulbkw7.js +0 -271
  568. package/dist/chart-nomhJ87z.js +0 -193
  569. package/dist/choice-inputs-OUDn0kQw.js +0 -680
  570. package/dist/combobox-C8oP92bT.js +0 -266
  571. package/dist/command-Bp3B6pUu.js +0 -143
  572. package/dist/comments-CAnDlyXO.js +0 -1438
  573. package/dist/components/admin/patterns/index.d.ts +0 -2
  574. package/dist/components/features/rich-text-editor/exec-command-engine.d.ts +0 -2
  575. package/dist/components/patterns/index.d.ts +0 -3
  576. package/dist/css/styles.css +0 -1
  577. package/dist/date-pickers-DOwIT-Nk.js +0 -661
  578. package/dist/display-B3Q17h5z.js +0 -645
  579. package/dist/dropdown-menu-TyNLCLML.js +0 -223
  580. package/dist/features/actions.css +0 -11
  581. package/dist/features/activities.css +0 -25
  582. package/dist/features/ai-chat.css +0 -14
  583. package/dist/features/async-preview.css +0 -10
  584. package/dist/features/combobox.css +0 -12
  585. package/dist/features/comments.css +0 -24
  586. package/dist/features/data-view.css +0 -31
  587. package/dist/features/event-calendar.css +0 -17
  588. package/dist/features/filters.css +0 -24
  589. package/dist/features/global-search.css +0 -19
  590. package/dist/features/kanban.css +0 -7
  591. package/dist/features/map.css +0 -15
  592. package/dist/features/media-library.css +0 -27
  593. package/dist/features/mentions.css +0 -17
  594. package/dist/features/overlays.css +0 -11
  595. package/dist/features/products.css +0 -29
  596. package/dist/features/resource-assignment.css +0 -14
  597. package/dist/features/resource.css +0 -15
  598. package/dist/features/rich-text-editor.css +0 -8
  599. package/dist/features/schema-form.css +0 -22
  600. package/dist/features/sync.css +0 -11
  601. package/dist/features/table.css +0 -20
  602. package/dist/features/theme-tweaker.css +0 -27
  603. package/dist/feedback-DRerHGuV.js +0 -469
  604. package/dist/forms-CPrGGif_.js +0 -242
  605. package/dist/forms-numeric-CPVsL7Vf.js +0 -569
  606. package/dist/index.css +0 -3
  607. package/dist/input-group-BYe0rhoB.js +0 -126
  608. package/dist/item-B3yQ26as.js +0 -146
  609. package/dist/layout/app-shell.css +0 -13
  610. package/dist/layout/auth.css +0 -14
  611. package/dist/layout/containers.css +0 -2
  612. package/dist/layout/header.css +0 -20
  613. package/dist/layout/navigation.css +0 -11
  614. package/dist/layout/page.css +0 -15
  615. package/dist/layout/settings.css +0 -16
  616. package/dist/layout/sidebar.css +0 -16
  617. package/dist/layout/workspace.css +0 -15
  618. package/dist/navigation-CsqTA16F.js +0 -614
  619. package/dist/navigation-DzxzPuwg.js +0 -202
  620. package/dist/overlay-WQOsLd69.js +0 -345
  621. package/dist/patterns/analytics.css +0 -15
  622. package/dist/patterns/onboarding.css +0 -11
  623. package/dist/patterns/timelines.css +0 -11
  624. package/dist/popover-DriLnIFc.js +0 -123
  625. package/dist/popover-menu-C2UCMAe7.js +0 -189
  626. package/dist/primitives.css +0 -3
  627. package/dist/repeaters-DuP1N0nw.js +0 -438
  628. package/dist/rich-text-editor-BQXFe9oN.js +0 -595
  629. package/dist/sidebar-D0N6ckJL.js +0 -412
  630. package/dist/skeleton-DGR9df28.js +0 -172
  631. package/dist/spinner-CUAVFecI.js +0 -52
  632. package/dist/styles/FACTORS.md +0 -36
  633. package/dist/styles/SCOPES.md +0 -86
  634. package/dist/styles/themes/default.css +0 -164
  635. package/dist/styles/theming/animation.css +0 -143
  636. package/dist/styles/theming/colors.css +0 -97
  637. package/dist/styles/theming/feedback.css +0 -17
  638. package/dist/styles/theming/field.css +0 -21
  639. package/dist/styles/theming/focus.css +0 -88
  640. package/dist/styles/theming/layers.css +0 -13
  641. package/dist/styles/theming/layout.css +0 -21
  642. package/dist/styles/theming/motion.css +0 -42
  643. package/dist/styles/theming/overlay.css +0 -52
  644. package/dist/styles/theming/sizing.css +0 -118
  645. package/dist/styles/theming/text.css +0 -30
  646. package/dist/styles/theming/typography.css +0 -26
  647. package/dist/styles/tokens/components.css +0 -22
  648. package/dist/styles/tokens/foundation.css +0 -80
  649. package/dist/styles/tokens/layout.css +0 -19
  650. package/dist/styles/tokens/palette.css +0 -88
  651. package/dist/styles/tokens/primitives.css +0 -18
  652. package/dist/styles/tokens/states.css +0 -77
  653. package/dist/table-BC4qqsUb.js +0 -180
  654. package/dist/table-BHDpjajL.js +0 -982
  655. package/dist/text-inputs-DF_lD7pA.js +0 -385
  656. package/dist/theming-D6KRU7hO.js +0 -104
  657. package/dist/toolbar-DWRywF0R.js +0 -68
  658. package/dist/tooltip-t1VQQ2tZ.js +0 -73
  659. package/dist/upload-B38YZeFJ.js +0 -938
  660. package/dist/value-inputs-Q4ymjXlV.js +0 -716
  661. package/src/styles/FACTORS.md +0 -36
  662. package/src/styles/SCOPES.md +0 -86
  663. /package/dist/components/{admin/patterns → blocks/admin}/access/admin.strings.d.ts +0 -0
  664. /package/dist/components/{admin/patterns → blocks/admin}/access/credential-list.d.ts +0 -0
  665. /package/dist/components/{admin/patterns → blocks/admin}/access/index.d.ts +0 -0
  666. /package/dist/components/{admin/patterns → blocks/admin}/access/role-permissions.d.ts +0 -0
  667. /package/dist/components/{admin/patterns → blocks/admin}/access/sensitive-action.d.ts +0 -0
  668. /package/dist/components/{admin/patterns → blocks/admin}/commerce/account.d.ts +0 -0
  669. /package/dist/components/{admin/patterns → blocks/admin}/commerce/address-lines.d.ts +0 -0
  670. /package/dist/components/{admin/patterns → blocks/admin}/commerce/booking.d.ts +0 -0
  671. /package/dist/components/{admin/patterns → blocks/admin}/commerce/cart.d.ts +0 -0
  672. /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.strings.d.ts +0 -0
  673. /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.types.d.ts +0 -0
  674. /package/dist/components/{admin/patterns → blocks/admin}/commerce/format-amount.d.ts +0 -0
  675. /package/dist/components/{admin/patterns → blocks/admin}/commerce/index.d.ts +0 -0
  676. /package/dist/components/{admin/patterns → blocks/admin}/commerce/inventory-section.d.ts +0 -0
  677. /package/dist/components/{admin/patterns → blocks/admin}/commerce/invoice.d.ts +0 -0
  678. /package/dist/components/{admin/patterns → blocks/admin}/commerce/loyalty.d.ts +0 -0
  679. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-customer.d.ts +0 -0
  680. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-detail.d.ts +0 -0
  681. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-line-item.d.ts +0 -0
  682. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-transactions.d.ts +0 -0
  683. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order.d.ts +0 -0
  684. /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-listing.d.ts +0 -0
  685. /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-score.d.ts +0 -0
  686. /package/dist/components/{admin/patterns → blocks/admin}/commerce/summary-panel.d.ts +0 -0
  687. /package/dist/components/{patterns → blocks}/analytics/activity-heatmap.d.ts +0 -0
  688. /package/dist/components/{patterns → blocks}/analytics/analytics.types.d.ts +0 -0
  689. /package/dist/components/{patterns → blocks}/analytics/chart-card.d.ts +0 -0
  690. /package/dist/components/{patterns → blocks}/analytics/format-metric-value.d.ts +0 -0
  691. /package/dist/components/{patterns → blocks}/analytics/index.d.ts +0 -0
  692. /package/dist/components/{patterns → blocks}/analytics/metric-bar.d.ts +0 -0
  693. /package/dist/components/{patterns → blocks}/analytics/metric-comparison.d.ts +0 -0
  694. /package/dist/components/{patterns → blocks}/analytics/metric-gradient.d.ts +0 -0
  695. /package/dist/components/{patterns → blocks}/analytics/metric-grid.d.ts +0 -0
  696. /package/dist/components/{patterns → blocks}/analytics/metric-micro-grid.d.ts +0 -0
  697. /package/dist/components/{patterns → blocks}/analytics/metric-skeleton.d.ts +0 -0
  698. /package/dist/components/{patterns → blocks}/analytics/metric-trend-chip.d.ts +0 -0
  699. /package/dist/components/{patterns → blocks}/analytics/metric.d.ts +0 -0
  700. /package/dist/components/{patterns → blocks}/analytics/time-ruler.d.ts +0 -0
  701. /package/dist/components/{patterns → blocks}/onboarding/checklist.d.ts +0 -0
  702. /package/dist/components/{patterns → blocks}/onboarding/index.d.ts +0 -0
  703. /package/dist/components/{patterns → blocks}/onboarding/onboarding.strings.d.ts +0 -0
  704. /package/dist/components/{patterns → blocks}/timelines/changelog-timeline.d.ts +0 -0
  705. /package/dist/components/{patterns → blocks}/timelines/index.d.ts +0 -0
  706. /package/dist/components/{patterns → blocks}/timelines/milestones-timeline.d.ts +0 -0
  707. /package/dist/components/{patterns → blocks}/timelines/steps.d.ts +0 -0
  708. /package/dist/components/{patterns → blocks}/timelines/timelines.strings.d.ts +0 -0
  709. /package/dist/styles/{theming/breakpoints.css → breakpoints.css} +0 -0
@@ -1,20 +1,22 @@
1
1
  "use client";
2
- import { t as e } from "../cx--CBrhWH0.js";
3
- import { a as t, o as n } from "../typography-BkxEiwQ1.js";
4
- import { p as r } from "../feedback-DRerHGuV.js";
5
- import { t as i } from "../ui-provider-Cmoq6i_D.js";
6
- import { a, c as o } from "../buttons-CqXKWty3.js";
7
- import { t as s } from "../action-menu-BNLURfMK.js";
8
- import { d as c } from "../display-B3Q17h5z.js";
9
- import { f as l, m as u } from "../primitives-D0bdDozz.js";
10
- import { t as d } from "../strings-Co9_qArR.js";
11
- import { s as f } from "../choice-inputs-OUDn0kQw.js";
12
- import { r as p, u as m } from "../date-pickers-DOwIT-Nk.js";
13
- import { c as h, r as g, t as _ } from "../popover-DriLnIFc.js";
2
+ import "#core.css";
3
+ import { o as e, s as t } from "../typography-DmeR05Er.js";
4
+ import { t as n } from "../cx--CBrhWH0.js";
5
+ import { t as r } from "../ui-provider-DpzLUD12.js";
6
+ import { a as i, c as a } from "../buttons-BX2JfL5X.js";
7
+ import { t as o } from "../action-menu-BwiL_F6I.js";
8
+ import { t as s } from "../strings-Co9_qArR.js";
9
+ import { f as c, m as l } from "../primitives-BskKlf35.js";
10
+ import { p as u } from "../feedback-D4qVsKlD.js";
11
+ import { d } from "../display-BGN834xV.js";
12
+ import { s as f } from "../choice-inputs-CCw-0gD6.js";
13
+ import { r as p, u as m } from "../date-pickers-C2HgjpFU.js";
14
+ import { c as h, r as g, t as _ } from "../popover-CA7SP_iz.js";
14
15
  import { CalendarIcon as v, ChevronLeftIcon as y, ChevronRightIcon as b, ExternalLinkIcon as x, UserIcon as S, UsersIcon as C } from "lucide-react";
15
16
  import { useCallback as w, useMemo as T, useState as E } from "react";
16
17
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
17
18
  import { addMonths as A, addWeeks as j, eachDayOfInterval as M, endOfMonth as N, endOfWeek as P, format as F, isSameDay as I, isSameMonth as L, isToday as R, isWeekend as z, startOfDay as B, startOfMonth as ee, startOfWeek as V, subMonths as H, subWeeks as te } from "date-fns";
19
+ import "#css/event-calendar.css";
18
20
  //#region src/components/features/event-calendar/event-calendar.strings.ts
19
21
  var U = {
20
22
  today: "Today",
@@ -50,7 +52,11 @@ var U = {
50
52
  function G(e) {
51
53
  return e?.colorToken ?? "neutral";
52
54
  }
53
- var K = {
55
+ function K(e) {
56
+ let t = G(e);
57
+ return t === "amber" || t === "yellow" ? "warning" : t;
58
+ }
59
+ var q = {
54
60
  root: "event-calendar__root___xzCsb",
55
61
  loading: "event-calendar__loading___-2JN6",
56
62
  dot: "event-calendar__dot___t0qfF",
@@ -96,37 +102,37 @@ var K = {
96
102
  };
97
103
  //#endregion
98
104
  //#region src/components/features/event-calendar/event-calendar-event-badge.tsx
99
- function ne({ event: t, category: r, compact: a = !1, onClick: o, strings: s }) {
100
- let c = d(W, s), { locale: l, timeFormat: u } = i(), f = t.allDay ? null : F(t.startDate, u ?? "HH:mm", { locale: l }), p = t.metadata?.cellTitle, m = typeof p == "string" && p.trim() !== "" ? p : t.title;
105
+ function J({ event: e, category: i, compact: a = !1, onClick: o, strings: c }) {
106
+ let l = s(W, c), { locale: u, timeFormat: d } = r(), f = e.allDay ? null : F(e.startDate, d ?? "HH:mm", { locale: u }), p = e.metadata?.cellTitle, m = typeof p == "string" && p.trim() !== "" ? p : e.title;
101
107
  return /* @__PURE__ */ k("button", {
102
108
  type: "button",
103
109
  "data-slot": "event-calendar-event-badge",
104
110
  "data-compact": a || void 0,
105
- "data-token": G(r),
106
- className: e("event-calendar-event-badge--component", K.badge),
111
+ "data-tone": K(i),
112
+ className: n("event-calendar-event-badge--component", q.badge),
107
113
  onClick: (e) => {
108
114
  e.stopPropagation(), o?.();
109
115
  },
110
- "aria-label": f ? c.eventAt(m, f) : m,
116
+ "aria-label": f ? l.eventAt(m, f) : m,
111
117
  title: m,
112
118
  children: [
113
119
  /* @__PURE__ */ O("span", {
114
120
  "aria-hidden": !0,
115
- className: K.dot
121
+ className: q.dot
116
122
  }),
117
- /* @__PURE__ */ O(n, {
123
+ /* @__PURE__ */ O(t, {
118
124
  tag: "span",
119
125
  size: "xs",
120
126
  weight: "medium",
121
- className: K.badgeTitle,
127
+ className: q.badgeTitle,
122
128
  children: m
123
129
  }),
124
- !!f && /* @__PURE__ */ O(n, {
130
+ !!f && /* @__PURE__ */ O(t, {
125
131
  tag: "span",
126
132
  size: "xs",
127
133
  type: "secondary",
128
134
  numeric: !0,
129
- className: K.badgeTime,
135
+ className: q.badgeTime,
130
136
  children: f
131
137
  })
132
138
  ]
@@ -134,14 +140,14 @@ function ne({ event: t, category: r, compact: a = !1, onClick: o, strings: s })
134
140
  }
135
141
  //#endregion
136
142
  //#region src/components/features/event-calendar/use-event-calendar-data.ts
137
- function q(e) {
143
+ function Y(e) {
138
144
  let t = `${e.getMonth() + 1}`.padStart(2, "0"), n = `${e.getDate()}`.padStart(2, "0");
139
145
  return `${e.getFullYear()}-${t}-${n}`;
140
146
  }
141
- function J(e, t) {
147
+ function X(e, t) {
142
148
  return e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime();
143
149
  }
144
- function Y(e, t, n, r = {}) {
150
+ function Z(e, t, n, r = {}) {
145
151
  let { weekStartsOn: i = 1, showWeekends: a = !0, visibleCategories: o } = r;
146
152
  return T(() => {
147
153
  let r = ee(t), s = N(t), [c, l] = n === "month" ? [V(r, { weekStartsOn: i }), P(s, { weekStartsOn: i })] : n === "week" ? [V(t, { weekStartsOn: i }), P(t, { weekStartsOn: i })] : [r, s], u = M({
@@ -160,12 +166,12 @@ function Y(e, t, n, r = {}) {
160
166
  start: t,
161
167
  end: n
162
168
  })) {
163
- let t = q(r), n = f.get(t);
169
+ let t = Y(r), n = f.get(t);
164
170
  n ? n.push(e) : f.set(t, [e]);
165
171
  }
166
172
  }
167
173
  return u.filter((e) => a || !z(e)).map((e) => {
168
- let n = [...f.get(q(e)) ?? []].sort(J);
174
+ let n = [...f.get(Y(e)) ?? []].sort(X);
169
175
  return {
170
176
  date: e,
171
177
  isCurrentMonth: L(e, t),
@@ -185,66 +191,66 @@ function Y(e, t, n, r = {}) {
185
191
  i
186
192
  ]);
187
193
  }
188
- function X(e, t) {
194
+ function ne(e, t) {
189
195
  let n = B(t);
190
196
  return e.filter((e) => {
191
197
  let t = B(e.startDate), r = e.endDate ? B(e.endDate) : t;
192
198
  return I(n, t) || I(n, r) || n > t && n < r;
193
- }).sort(J);
199
+ }).sort(X);
194
200
  }
195
- function Z(e, t) {
201
+ function Q(e, t) {
196
202
  return e.find((e) => e.id === t);
197
203
  }
198
204
  //#endregion
199
205
  //#region src/components/features/event-calendar/event-calendar-day-cell.tsx
200
- function re({ data: t, categories: r, maxEvents: i = 3, onClick: a, onEventClick: o, compact: s = !1, strings: l, renderEvent: u }) {
201
- let f = d(U, l), { date: p, isCurrentMonth: m, isToday: h, isWeekend: g, events: _, eventCount: v } = t, y = _.slice(0, i), b = Math.max(0, v - i), x = [...new Set(_.slice(i).map((e) => G(Z(r, e.category))))].slice(0, 3);
206
+ function re({ data: e, categories: r, maxEvents: i = 3, onClick: a, onEventClick: o, compact: c = !1, strings: l, renderEvent: u }) {
207
+ let f = s(U, l), { date: p, isCurrentMonth: m, isToday: h, isWeekend: g, events: _, eventCount: v } = e, y = _.slice(0, i), b = Math.max(0, v - i), x = [...new Set(_.slice(i).map((e) => K(Q(r, e.category))))].slice(0, 3);
202
208
  return /* @__PURE__ */ k("div", {
203
- className: e("event-calendar-day-cell--component", K.cell),
209
+ className: n("event-calendar-day-cell--component", q.cell),
204
210
  "data-today": h || void 0,
205
211
  "data-weekend": g || void 0,
206
212
  "data-outside": !m || void 0,
207
- "data-compact": s || void 0,
213
+ "data-compact": c || void 0,
208
214
  onClick: a,
209
215
  children: [/* @__PURE__ */ O("button", {
210
216
  type: "button",
211
- className: K.dayNumber,
217
+ className: q.dayNumber,
212
218
  onClick: (e) => {
213
219
  e.stopPropagation(), a();
214
220
  },
215
221
  "aria-label": p.toDateString(),
216
- children: /* @__PURE__ */ O(n, {
222
+ children: /* @__PURE__ */ O(t, {
217
223
  tag: "span",
218
224
  type: "inherit",
219
- size: s ? "xs" : "sm",
225
+ size: c ? "xs" : "sm",
220
226
  weight: h ? "semibold" : "normal",
221
227
  numeric: !0,
222
228
  children: p.getDate()
223
229
  })
224
230
  }), /* @__PURE__ */ k("div", {
225
- className: K.cellEvents,
231
+ className: q.cellEvents,
226
232
  children: [y.map((e) => {
227
- let t = Z(r, e.category);
228
- return u ? /* @__PURE__ */ O("div", { children: u(e, t) }, e.id) : /* @__PURE__ */ O(ne, {
233
+ let t = Q(r, e.category);
234
+ return u ? /* @__PURE__ */ O("div", { children: u(e, t) }, e.id) : /* @__PURE__ */ O(J, {
229
235
  event: e,
230
236
  category: t,
231
- compact: s,
237
+ compact: c,
232
238
  onClick: () => o ? o(e) : a()
233
239
  }, e.id);
234
240
  }), b > 0 && /* @__PURE__ */ k("div", {
235
241
  "data-slot": "event-calendar-overflow",
236
- className: K.overflow,
242
+ className: q.overflow,
237
243
  children: [
238
244
  /* @__PURE__ */ O("span", {
239
245
  "aria-hidden": !0,
240
- className: K.overflowDots,
246
+ className: q.overflowDots,
241
247
  children: x.map((e) => /* @__PURE__ */ O("span", {
242
- "data-token": e,
243
- className: K.dot
248
+ "data-tone": e,
249
+ className: q.dot
244
250
  }, e))
245
251
  }),
246
- /* @__PURE__ */ O(c, { children: f.moreEvents(b) }),
247
- /* @__PURE__ */ k(n, {
252
+ /* @__PURE__ */ O(d, { children: f.moreEvents(b) }),
253
+ /* @__PURE__ */ k(t, {
248
254
  "aria-hidden": !0,
249
255
  size: "xs",
250
256
  type: "secondary",
@@ -264,26 +270,26 @@ function re({ data: t, categories: r, maxEvents: i = 3, onClick: a, onEventClick
264
270
  }
265
271
  //#endregion
266
272
  //#region src/components/features/event-calendar/event-calendar-event-card.tsx
267
- function Q({ event: r, category: i, onClick: a, strings: o, className: s }) {
268
- let c = {
273
+ function ie({ event: r, category: i, onClick: a, strings: o, className: s }) {
274
+ let u = {
269
275
  ...W,
270
276
  ...o
271
277
  }, d = r.metadata ?? {}, f = typeof d.customerName == "string" ? d.customerName : void 0, p = typeof d.guestCount == "number" ? d.guestCount : void 0, m = typeof d.serviceName == "string" ? d.serviceName : void 0, h = /* @__PURE__ */ k(D, { children: [
272
278
  /* @__PURE__ */ k("div", {
273
- className: K.cardHeader,
279
+ className: q.cardHeader,
274
280
  children: [/* @__PURE__ */ k("div", {
275
- className: K.cardTitleGroup,
276
- children: [/* @__PURE__ */ O(t, {
281
+ className: q.cardTitleGroup,
282
+ children: [/* @__PURE__ */ O(e, {
277
283
  level: 4,
278
284
  size: "sm",
279
285
  children: r.title
280
286
  }), !!i && /* @__PURE__ */ k("span", {
281
- className: K.cardCategory,
287
+ className: q.cardCategory,
282
288
  children: [/* @__PURE__ */ O("span", {
283
289
  "aria-hidden": !0,
284
- "data-token": G(i),
285
- className: K.dot
286
- }), /* @__PURE__ */ O(n, {
290
+ "data-tone": K(i),
291
+ className: q.dot
292
+ }), /* @__PURE__ */ O(t, {
287
293
  tag: "span",
288
294
  size: "xs",
289
295
  weight: "medium",
@@ -292,49 +298,49 @@ function Q({ event: r, category: i, onClick: a, strings: o, className: s }) {
292
298
  })]
293
299
  }), !!a && !!r.url && /* @__PURE__ */ O(x, {
294
300
  "aria-hidden": !0,
295
- className: K.cardGlyph
301
+ className: q.cardGlyph
296
302
  })]
297
303
  }),
298
304
  (!!f || p !== void 0) && /* @__PURE__ */ k("div", {
299
- className: K.cardFacts,
305
+ className: q.cardFacts,
300
306
  children: [!!f && /* @__PURE__ */ k("span", {
301
- className: K.cardFact,
307
+ className: q.cardFact,
302
308
  children: [/* @__PURE__ */ O(S, {
303
309
  "aria-hidden": !0,
304
- className: K.cardGlyph
305
- }), /* @__PURE__ */ O(n, {
310
+ className: q.cardGlyph
311
+ }), /* @__PURE__ */ O(t, {
306
312
  tag: "span",
307
313
  children: f
308
314
  })]
309
315
  }), p !== void 0 && p > 0 && /* @__PURE__ */ k("span", {
310
- className: K.cardFact,
316
+ className: q.cardFact,
311
317
  children: [/* @__PURE__ */ O(C, {
312
318
  "aria-hidden": !0,
313
- className: K.cardGlyph
314
- }), /* @__PURE__ */ k(n, {
319
+ className: q.cardGlyph
320
+ }), /* @__PURE__ */ k(t, {
315
321
  tag: "span",
316
322
  children: [
317
323
  p,
318
324
  " ",
319
- p === 1 ? c.guest : c.guests
325
+ p === 1 ? u.guest : u.guests
320
326
  ]
321
327
  })]
322
328
  })]
323
329
  }),
324
- !!m && /* @__PURE__ */ O(n, {
330
+ !!m && /* @__PURE__ */ O(t, {
325
331
  type: "secondary",
326
332
  children: m
327
333
  }),
328
334
  /* @__PURE__ */ k("div", {
329
- className: K.cardWhen,
335
+ className: q.cardWhen,
330
336
  children: [/* @__PURE__ */ O(v, {
331
337
  "aria-hidden": !0,
332
- className: K.cardGlyph
333
- }), r.allDay ? /* @__PURE__ */ O(l, {
338
+ className: q.cardGlyph
339
+ }), r.allDay ? /* @__PURE__ */ O(c, {
334
340
  value: r.startDate,
335
341
  size: "xs",
336
342
  type: "secondary"
337
- }) : /* @__PURE__ */ O(u, {
343
+ }) : /* @__PURE__ */ O(l, {
338
344
  value: r.startDate,
339
345
  size: "xs",
340
346
  type: "secondary"
@@ -345,18 +351,18 @@ function Q({ event: r, category: i, onClick: a, strings: o, className: s }) {
345
351
  type: "button",
346
352
  onClick: a,
347
353
  "data-slot": "event-calendar-event-card",
348
- className: e("event-calendar-event-card--component", K.card, K.cardButton, s),
354
+ className: n("event-calendar-event-card--component", q.card, q.cardButton, s),
349
355
  children: h
350
356
  }) : /* @__PURE__ */ O("div", {
351
357
  "data-slot": "event-calendar-event-card",
352
- className: e("event-calendar-event-card--component", K.card, s),
358
+ className: n("event-calendar-event-card--component", q.card, s),
353
359
  children: h
354
360
  });
355
361
  }
356
362
  //#endregion
357
363
  //#region src/components/features/event-calendar/event-calendar-header.tsx
358
- function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNext: l, onToday: u, onViewModeChange: x, onDateChange: S, actions: C, strings: w, rangeMode: E = "date", minDate: A, maxDate: j, prevDisabled: M = !1, nextDisabled: N = !1, className: P }) {
359
- let F = d(U, w), I = T(() => (C ?? []).filter((e) => e.visible !== !1), [C]), L = T(() => [
364
+ function ae({ currentDate: t, viewMode: r, displayLabel: c, onPrevious: l, onNext: u, onToday: d, onViewModeChange: x, onDateChange: S, actions: C, strings: w, rangeMode: E = "date", minDate: A, maxDate: j, prevDisabled: M = !1, nextDisabled: N = !1, className: P }) {
365
+ let F = s(U, w), I = T(() => (C ?? []).filter((e) => e.visible !== !1), [C]), L = T(() => [
360
366
  {
361
367
  value: "month",
362
368
  label: F.viewMode.month
@@ -375,37 +381,37 @@ function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNex
375
381
  F.viewMode.week
376
382
  ]);
377
383
  return /* @__PURE__ */ O("div", {
378
- className: e("event-calendar-header--component", K.header, P),
384
+ className: n("event-calendar-header--component", q.header, P),
379
385
  children: /* @__PURE__ */ k("div", {
380
- className: K.headerInner,
386
+ className: q.headerInner,
381
387
  children: [/* @__PURE__ */ k("div", {
382
- className: K.headerTitle,
383
- children: [/* @__PURE__ */ O(t, {
388
+ className: q.headerTitle,
389
+ children: [/* @__PURE__ */ O(e, {
384
390
  level: 3,
385
- children: i
386
- }), /* @__PURE__ */ k(_, { children: [/* @__PURE__ */ O(h, { render: /* @__PURE__ */ O(o, {
391
+ children: c
392
+ }), /* @__PURE__ */ k(_, { children: [/* @__PURE__ */ O(h, { render: /* @__PURE__ */ O(a, {
387
393
  type: "button",
388
394
  tone: "neutral",
389
- buttonStyle: "ghost",
395
+ appearance: "ghost",
390
396
  iconOnly: !0,
391
397
  "aria-label": F.jumpToMonth,
392
398
  children: /* @__PURE__ */ O(v, {})
393
399
  }) }), /* @__PURE__ */ O(g, {
394
- className: K.jumpPopover,
400
+ className: q.jumpPopover,
395
401
  children: E === "month-year" ? /* @__PURE__ */ O(p, {
396
402
  value: {
397
- month: n.getMonth(),
398
- year: n.getFullYear()
403
+ month: t.getMonth(),
404
+ year: t.getFullYear()
399
405
  },
400
- onValueChange: ({ month: e, year: t }) => {
401
- let r = new Date(n);
402
- r.setDate(1), r.setFullYear(t, e), S?.(r);
406
+ onValueChange: ({ month: e, year: n }) => {
407
+ let r = new Date(t);
408
+ r.setDate(1), r.setFullYear(n, e), S?.(r);
403
409
  },
404
410
  minYear: A?.getFullYear(),
405
411
  maxYear: j?.getFullYear()
406
412
  }) : /* @__PURE__ */ O(m, {
407
413
  mode: "single",
408
- value: n,
414
+ value: t,
409
415
  onValueChange: (e) => {
410
416
  e instanceof Date && S?.(e);
411
417
  },
@@ -415,37 +421,37 @@ function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNex
415
421
  })
416
422
  })] })]
417
423
  }), /* @__PURE__ */ k("div", {
418
- className: K.headerControls,
424
+ className: q.headerControls,
419
425
  children: [
420
- I.length > 0 && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(s, {
426
+ I.length > 0 && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(o, {
421
427
  actions: I,
422
- className: K.headerActions
428
+ className: q.headerActions
423
429
  }), /* @__PURE__ */ O("span", {
424
430
  "aria-hidden": !0,
425
- className: K.headerSeparator
431
+ className: q.headerSeparator
426
432
  })] }),
427
- /* @__PURE__ */ O(o, {
433
+ /* @__PURE__ */ O(a, {
428
434
  type: "button",
429
435
  tone: "neutral",
430
- buttonStyle: "outline",
431
- onClick: u,
436
+ appearance: "outline",
437
+ onClick: d,
432
438
  children: F.today
433
439
  }),
434
- /* @__PURE__ */ k(a, { children: [/* @__PURE__ */ O(o, {
440
+ /* @__PURE__ */ k(i, { children: [/* @__PURE__ */ O(a, {
435
441
  type: "button",
436
442
  tone: "neutral",
437
- buttonStyle: "outline",
443
+ appearance: "outline",
438
444
  iconOnly: !0,
439
- onClick: c,
445
+ onClick: l,
440
446
  disabled: M,
441
447
  "aria-label": F.previous,
442
448
  children: /* @__PURE__ */ O(y, {})
443
- }), /* @__PURE__ */ O(o, {
449
+ }), /* @__PURE__ */ O(a, {
444
450
  type: "button",
445
451
  tone: "neutral",
446
- buttonStyle: "outline",
452
+ appearance: "outline",
447
453
  iconOnly: !0,
448
- onClick: l,
454
+ onClick: u,
449
455
  disabled: N,
450
456
  "aria-label": F.next,
451
457
  children: /* @__PURE__ */ O(b, {})
@@ -455,7 +461,7 @@ function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNex
455
461
  value: r,
456
462
  options: L,
457
463
  onValueChange: (e) => e && x(e),
458
- className: K.viewSelect
464
+ className: q.viewSelect
459
465
  })
460
466
  ]
461
467
  })]
@@ -464,55 +470,55 @@ function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNex
464
470
  }
465
471
  //#endregion
466
472
  //#region src/components/features/event-calendar/event-calendar-legend.tsx
467
- function ae({ categories: t, visibleCategories: r, onToggleCategory: i, enableFiltering: a = !1, strings: o, className: s }) {
468
- let c = d(U, o);
469
- if (t.length === 0) return null;
470
- let l = !r || r.length === 0;
473
+ function oe({ categories: e, visibleCategories: r, onToggleCategory: i, enableFiltering: a = !1, strings: o, className: c }) {
474
+ let l = s(U, o);
475
+ if (e.length === 0) return null;
476
+ let u = !r || r.length === 0;
471
477
  return /* @__PURE__ */ O("div", {
472
478
  role: a ? "group" : void 0,
473
- "aria-label": a ? c.filterCategories : void 0,
474
- className: e("event-calendar-legend--component", K.legend, s),
475
- children: t.map((t) => {
476
- let o = !a || l || !!r?.includes(t.id), s = /* @__PURE__ */ k(D, { children: [
479
+ "aria-label": a ? l.filterCategories : void 0,
480
+ className: n("event-calendar-legend--component", q.legend, c),
481
+ children: e.map((e) => {
482
+ let o = !a || u || !!r?.includes(e.id), s = /* @__PURE__ */ k(D, { children: [
477
483
  /* @__PURE__ */ O("span", {
478
484
  "aria-hidden": !0,
479
- "data-token": o ? G(t) : void 0,
480
- className: K.swatch
485
+ "data-tone": o ? K(e) : void 0,
486
+ className: q.swatch
481
487
  }),
482
- !!t.icon && /* @__PURE__ */ O("span", {
483
- className: K.legendIcon,
484
- children: t.icon
488
+ !!e.icon && /* @__PURE__ */ O("span", {
489
+ className: q.legendIcon,
490
+ children: e.icon
485
491
  }),
486
- /* @__PURE__ */ O(n, {
492
+ /* @__PURE__ */ O(t, {
487
493
  tag: "span",
488
494
  size: "xs",
489
495
  weight: "medium",
490
496
  type: o ? "main" : "secondary",
491
- children: t.label
497
+ children: e.label
492
498
  })
493
499
  ] });
494
500
  return !a || !i ? /* @__PURE__ */ O("span", {
495
- className: K.chip,
501
+ className: q.chip,
496
502
  children: s
497
- }, t.id) : /* @__PURE__ */ O("button", {
503
+ }, e.id) : /* @__PURE__ */ O("button", {
498
504
  type: "button",
499
505
  "aria-pressed": o,
500
506
  "data-off": !o || void 0,
501
- className: e(K.chip, K.chipButton),
502
- onClick: () => i(t.id),
507
+ className: n(q.chip, q.chipButton),
508
+ onClick: () => i(e.id),
503
509
  children: s
504
- }, t.id);
510
+ }, e.id);
505
511
  })
506
512
  });
507
513
  }
508
514
  //#endregion
509
515
  //#region src/components/features/event-calendar/use-event-calendar.ts
510
- function oe({ events: e, date: t, defaultDate: n, viewMode: r, defaultViewMode: a = "month", onDateChange: o, onViewModeChange: s, dataOptions: c = {} }) {
511
- let { locale: l } = i(), [u, d] = E(() => n ?? /* @__PURE__ */ new Date()), [f, p] = E(a), m = t ?? u, h = r ?? f, g = w((e) => {
516
+ function se({ events: e, date: t, defaultDate: n, viewMode: i, defaultViewMode: a = "month", onDateChange: o, onViewModeChange: s, dataOptions: c = {} }) {
517
+ let { locale: l } = r(), [u, d] = E(() => n ?? /* @__PURE__ */ new Date()), [f, p] = E(a), m = t ?? u, h = i ?? f, g = w((e) => {
512
518
  t === void 0 && d(e), o?.(e);
513
519
  }, [t, o]), _ = w((e) => {
514
- r === void 0 && p(e), s?.(e);
515
- }, [s, r]), v = Y(e, m, h, c), { visibleCategories: y } = c, b = T(() => y && y.length > 0 ? e.filter((e) => y.includes(e.category)) : e, [e, y]);
520
+ i === void 0 && p(e), s?.(e);
521
+ }, [s, i]), v = Z(e, m, h, c), { visibleCategories: y } = c, b = T(() => y && y.length > 0 ? e.filter((e) => y.includes(e.category)) : e, [e, y]);
516
522
  return {
517
523
  currentDate: m,
518
524
  viewMode: h,
@@ -548,38 +554,38 @@ function oe({ events: e, date: t, defaultDate: n, viewMode: r, defaultViewMode:
548
554
  }
549
555
  //#endregion
550
556
  //#region src/components/features/event-calendar/event-calendar.tsx
551
- function se(e, t) {
557
+ function ce(e, t) {
552
558
  return e ? Array.isArray(e) ? e.some((e) => e.toDateString() === t.toDateString()) : typeof e == "function" ? e(t) : (e.dates?.some((e) => e.toDateString() === t.toDateString()) ?? !1) || (e.predicate?.(t) ?? !1) : !1;
553
559
  }
554
- function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewModeChange: c, date: l, defaultDate: u, onDateChange: f, onEventClick: p, onDayClick: m, maxEventsPerDay: h = 3, showLegend: g = !0, showHeader: _ = !0, showWeekends: v = !0, weekStartsOn: y, locale: b, enableCategoryFilter: x = !1, visibleCategories: S, onVisibleCategoriesChange: C, loading: w = !1, emptyStateMessage: D, className: A, compact: j = !1, actions: M, strings: N, dayHeadingVariant: P = "default", dayHeadingClassName: F, renderDayHeading: I, rangeMode: L = "date", minDate: R, maxDate: z, disabledDates: ee, filterEvent: V, renderEvent: H, renderDayCell: te }) {
555
- let W = d(U, N), [G, ne] = E([]), q = S ?? G, { weekStartsOn: J, locale: Y } = i(), X = y ?? J ?? 1, Z = b ?? Y, Q = oe({
556
- events: t,
560
+ function le({ events: e, categories: i, viewMode: a, defaultViewMode: o, onViewModeChange: c, date: l, defaultDate: d, onDateChange: f, onEventClick: p, onDayClick: m, maxEventsPerDay: h = 3, showLegend: g = !0, showHeader: _ = !0, showWeekends: v = !0, weekStartsOn: y, locale: b, enableCategoryFilter: x = !1, visibleCategories: S, onVisibleCategoriesChange: C, loading: w = !1, emptyStateMessage: D, className: A, compact: j = !1, actions: M, strings: N, dayHeadingVariant: P = "default", dayHeadingClassName: F, renderDayHeading: I, rangeMode: L = "date", minDate: R, maxDate: z, disabledDates: ee, filterEvent: V, renderEvent: H, renderDayCell: te }) {
561
+ let W = s(U, N), [G, K] = E([]), J = S ?? G, { weekStartsOn: Y, locale: X } = r(), Z = y ?? Y ?? 1, ne = b ?? X, Q = se({
562
+ events: e,
557
563
  date: l,
558
- defaultDate: u,
559
- viewMode: o,
560
- defaultViewMode: s,
564
+ defaultDate: d,
565
+ viewMode: a,
566
+ defaultViewMode: o,
561
567
  onDateChange: f,
562
568
  onViewModeChange: c,
563
569
  dataOptions: {
564
- weekStartsOn: X,
570
+ weekStartsOn: Z,
565
571
  showWeekends: v,
566
- visibleCategories: q.length > 0 ? q : void 0
572
+ visibleCategories: J.length > 0 ? J : void 0
567
573
  }
568
- }), ce = (e) => {
569
- let t = q.length === 0 ? a.filter((t) => t.id !== e).map((e) => e.id) : q.includes(e) ? q.filter((t) => t !== e) : [...q, e], n = t.length === a.length ? [] : t;
570
- C ? C(n) : ne(n);
571
- }, ue = T(() => {
572
- let e = W.weekdaysShort, t = [...e.slice(X), ...e.slice(0, X)];
574
+ }), ie = (e) => {
575
+ let t = J.length === 0 ? i.filter((t) => t.id !== e).map((e) => e.id) : J.includes(e) ? J.filter((t) => t !== e) : [...J, e], n = t.length === i.length ? [] : t;
576
+ C ? C(n) : K(n);
577
+ }, le = T(() => {
578
+ let e = W.weekdaysShort, t = [...e.slice(Z), ...e.slice(0, Z)];
573
579
  return v ? t : t.filter((e, t) => {
574
- let n = (X + t) % 7;
580
+ let n = (Z + t) % 7;
575
581
  return n !== 0 && n !== 6;
576
582
  });
577
583
  }, [
578
584
  W.weekdaysShort,
579
585
  v,
580
- X
586
+ Z
581
587
  ]), de = (e) => {
582
- if (se(ee, e)) return !0;
588
+ if (ce(ee, e)) return !0;
583
589
  let t = B(e);
584
590
  return !!(R && t < B(R) || z && t > B(z));
585
591
  }, $ = T(() => V ? Q.calendarDays.map((e) => {
@@ -607,8 +613,8 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
607
613
  de(e.date) || m?.(e.date, e.events);
608
614
  };
609
615
  if (w) return /* @__PURE__ */ O("div", {
610
- className: e("event-calendar--component", K.loading, A),
611
- children: /* @__PURE__ */ O(n, {
616
+ className: n("event-calendar--component", q.loading, A),
617
+ children: /* @__PURE__ */ O(t, {
612
618
  type: "secondary",
613
619
  children: W.loading
614
620
  })
@@ -616,10 +622,10 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
616
622
  let me = v ? 7 : 5;
617
623
  return /* @__PURE__ */ k("div", {
618
624
  "data-slot": "event-calendar",
619
- className: e("event-calendar--component", K.root, A),
620
- style: { "--calendar-columns": me },
625
+ className: n("event-calendar--component", q.root, A),
626
+ style: { "--_calendar-columns": me },
621
627
  children: [
622
- _ && /* @__PURE__ */ O(ie, {
628
+ _ && /* @__PURE__ */ O(ae, {
623
629
  currentDate: Q.currentDate,
624
630
  viewMode: Q.viewMode,
625
631
  displayLabel: Q.displayLabel,
@@ -628,7 +634,7 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
628
634
  onToday: Q.goToToday,
629
635
  onViewModeChange: Q.setViewMode,
630
636
  onDateChange: Q.setDate,
631
- locale: Z,
637
+ locale: ne,
632
638
  actions: M,
633
639
  rangeMode: L,
634
640
  minDate: R,
@@ -637,44 +643,43 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
637
643
  nextDisabled: fe.next,
638
644
  strings: W
639
645
  }),
640
- g && a.length > 0 && /* @__PURE__ */ O(ae, {
641
- categories: a,
642
- visibleCategories: q,
643
- onToggleCategory: x ? ce : void 0,
646
+ g && i.length > 0 && /* @__PURE__ */ O(oe, {
647
+ categories: i,
648
+ visibleCategories: J,
649
+ onToggleCategory: x ? ie : void 0,
644
650
  enableFiltering: x,
645
651
  strings: W
646
652
  }),
647
- !Q.hasEvents && D ? /* @__PURE__ */ O(r, {
653
+ !Q.hasEvents && D ? /* @__PURE__ */ O(u, {
648
654
  title: D,
649
655
  description: !1,
650
- padding: "md",
651
656
  border: !0
652
- }) : Q.viewMode === "agenda" ? /* @__PURE__ */ O(le, {
657
+ }) : Q.viewMode === "agenda" ? /* @__PURE__ */ O(ue, {
653
658
  days: $,
654
- categories: a,
659
+ categories: i,
655
660
  emptyLabel: W.emptyDay,
656
661
  onEventClick: p,
657
662
  renderEvent: H
658
663
  }) : /* @__PURE__ */ k("div", {
659
- className: K.grid,
664
+ className: q.grid,
660
665
  children: [/* @__PURE__ */ O("div", {
661
- className: K.weekdays,
666
+ className: q.weekdays,
662
667
  "data-variant": P,
663
- children: ue.map((t, r) => I ? /* @__PURE__ */ O("div", { children: I(t, r) }, t) : /* @__PURE__ */ O("div", {
664
- className: e(K.weekday, F),
665
- children: /* @__PURE__ */ O(n, {
668
+ children: le.map((e, r) => I ? /* @__PURE__ */ O("div", { children: I(e, r) }, e) : /* @__PURE__ */ O("div", {
669
+ className: n(q.weekday, F),
670
+ children: /* @__PURE__ */ O(t, {
666
671
  type: "inherit",
667
672
  size: "xs",
668
673
  weight: P === "accent" ? "medium" : "normal",
669
- children: t
674
+ children: e
670
675
  })
671
- }, t))
676
+ }, e))
672
677
  }), /* @__PURE__ */ O("div", {
673
- className: K.days,
678
+ className: q.days,
674
679
  children: $.map((e) => {
675
680
  let t = de(e.date), n = () => /* @__PURE__ */ O(re, {
676
681
  data: e,
677
- categories: a,
682
+ categories: i,
678
683
  maxEvents: h,
679
684
  onClick: () => pe(e),
680
685
  onEventClick: p,
@@ -683,7 +688,7 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
683
688
  renderEvent: H
684
689
  });
685
690
  return /* @__PURE__ */ O("div", {
686
- className: K.dayWrap,
691
+ className: q.dayWrap,
687
692
  "data-disabled": t || void 0,
688
693
  "aria-disabled": t || void 0,
689
694
  children: te ? te(e, n) : n()
@@ -694,26 +699,25 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
694
699
  ]
695
700
  });
696
701
  }
697
- function le({ days: e, categories: t, emptyLabel: i, onEventClick: a, renderEvent: o }) {
698
- let s = e.filter((e) => e.eventCount > 0);
699
- return s.length === 0 ? /* @__PURE__ */ O(r, {
700
- title: i,
702
+ function ue({ days: e, categories: n, emptyLabel: r, onEventClick: i, renderEvent: a }) {
703
+ let o = e.filter((e) => e.eventCount > 0);
704
+ return o.length === 0 ? /* @__PURE__ */ O(u, {
705
+ title: r,
701
706
  description: !1,
702
- padding: "md",
703
707
  border: !0
704
708
  }) : /* @__PURE__ */ O("div", {
705
- className: K.agenda,
706
- children: s.map((e) => /* @__PURE__ */ k("section", {
707
- className: K.agendaDay,
709
+ className: q.agenda,
710
+ children: o.map((e) => /* @__PURE__ */ k("section", {
711
+ className: q.agendaDay,
708
712
  "data-today": e.isToday || void 0,
709
713
  children: [/* @__PURE__ */ k("div", {
710
- className: K.agendaDate,
711
- children: [/* @__PURE__ */ O(n, {
714
+ className: q.agendaDate,
715
+ children: [/* @__PURE__ */ O(t, {
712
716
  size: "xs",
713
717
  type: "secondary",
714
718
  weight: "medium",
715
719
  children: e.date.toLocaleDateString(void 0, { weekday: "short" })
716
- }), /* @__PURE__ */ O(n, {
720
+ }), /* @__PURE__ */ O(t, {
717
721
  type: "inherit",
718
722
  size: "lg",
719
723
  weight: "semibold",
@@ -721,13 +725,13 @@ function le({ days: e, categories: t, emptyLabel: i, onEventClick: a, renderEven
721
725
  children: e.date.getDate()
722
726
  })]
723
727
  }), /* @__PURE__ */ O("div", {
724
- className: K.agendaEvents,
728
+ className: q.agendaEvents,
725
729
  children: e.events.map((e) => {
726
- let n = Z(t, e.category);
727
- return o ? /* @__PURE__ */ O("div", { children: o(e, n) }, e.id) : /* @__PURE__ */ O(Q, {
730
+ let t = Q(n, e.category);
731
+ return a ? /* @__PURE__ */ O("div", { children: a(e, t) }, e.id) : /* @__PURE__ */ O(ie, {
728
732
  event: e,
729
- category: n,
730
- onClick: a ? () => a(e) : void 0
733
+ category: t,
734
+ onClick: i ? () => i(e) : void 0
731
735
  }, e.id);
732
736
  })
733
737
  })]
@@ -735,4 +739,4 @@ function le({ days: e, categories: t, emptyLabel: i, onEventClick: a, renderEven
735
739
  });
736
740
  }
737
741
  //#endregion
738
- export { ce as EventCalendar, re as EventCalendarDayCell, ne as EventCalendarEventBadge, Q as EventCalendarEventCard, ie as EventCalendarHeader, ae as EventCalendarLegend, W as defaultEventCalendarEventCardStrings, U as defaultEventCalendarStrings, Z as getCategoryById, X as getEventsForDay, G as resolveCategoryColorToken, oe as useEventCalendar, Y as useEventCalendarData };
742
+ export { le as EventCalendar, re as EventCalendarDayCell, J as EventCalendarEventBadge, ie as EventCalendarEventCard, ae as EventCalendarHeader, oe as EventCalendarLegend, W as defaultEventCalendarEventCardStrings, U as defaultEventCalendarStrings, Q as getCategoryById, ne as getEventsForDay, G as resolveCategoryColorToken, se as useEventCalendar, Z as useEventCalendarData };