themelia-react-ui 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/CHANGELOG.md +307 -131
  2. package/README.md +28 -8
  3. package/THIRD_PARTY_NOTICES.md +13 -0
  4. package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-CYxKfo69.js → auth-ax2BqjrI.js} +58 -54
  17. package/dist/auth-ax2BqjrI.js.map +1 -0
  18. package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +1 -1
  28. package/dist/base/buttons.js +1 -1
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +40 -36
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +92 -92
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +2 -2
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +6 -6
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +14 -14
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +1 -1
  50. package/dist/base/navigation.js +6 -6
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +171 -176
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +6 -6
  59. package/dist/base/skeleton.js +1 -1
  60. package/dist/base/spinner.js +79 -2
  61. package/dist/base/spinner.js.map +1 -0
  62. package/dist/base/structure.js +1 -1
  63. package/dist/base/table.js +1 -1
  64. package/dist/base/text-inputs.js +2 -2
  65. package/dist/base/toaster.js +46 -45
  66. package/dist/base/toaster.js.map +1 -1
  67. package/dist/base/tree.js +1 -1
  68. package/dist/base/upload-queue.js +1 -1
  69. package/dist/base/upload.js +3 -3
  70. package/dist/base/value-inputs.js +1 -1
  71. package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
  72. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  73. package/dist/blocks/admin.js +42 -42
  74. package/dist/blocks/admin.js.map +1 -1
  75. package/dist/blocks/ai.js +260 -240
  76. package/dist/blocks/ai.js.map +1 -1
  77. package/dist/blocks/analytics/usage-card.js +1 -1
  78. package/dist/blocks/analytics.js +620 -585
  79. package/dist/blocks/analytics.js.map +1 -1
  80. package/dist/blocks/collaboration.js +1 -1
  81. package/dist/blocks/commerce/receipt.js +1 -1
  82. package/dist/blocks/commerce.js +1152 -1109
  83. package/dist/blocks/commerce.js.map +1 -1
  84. package/dist/blocks/data-display.js +2 -2
  85. package/dist/blocks/onboarding.js +48 -39
  86. package/dist/blocks/onboarding.js.map +1 -1
  87. package/dist/blocks/planning.js +13 -12
  88. package/dist/blocks/planning.js.map +1 -1
  89. package/dist/blocks/timelines.js +1 -1
  90. package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
  91. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  92. package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
  93. package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
  94. package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
  95. package/dist/buttons-DPZekJFu.js.map +1 -0
  96. package/dist/cards-BaBZR-AU.js +68 -0
  97. package/dist/cards-BaBZR-AU.js.map +1 -0
  98. package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
  99. package/dist/chart-ZOYyK2xG.js.map +1 -0
  100. package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
  101. package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
  102. package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
  103. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  104. package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
  105. package/dist/code-block-DeneBJR_.js.map +1 -0
  106. package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
  107. package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  108. package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
  109. package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
  110. package/dist/combobox-C0EQW6dr.js +875 -0
  111. package/dist/combobox-C0EQW6dr.js.map +1 -0
  112. package/dist/combobox-xCQ2RMNE.js +309 -0
  113. package/dist/combobox-xCQ2RMNE.js.map +1 -0
  114. package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
  115. package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
  116. package/dist/{comments-BpDuCUUu.js → comments-BYYlTA8E.js} +114 -105
  117. package/dist/comments-BYYlTA8E.js.map +1 -0
  118. package/dist/components/base/badge/badge.recipes.d.ts +1 -1
  119. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  120. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  121. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  122. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  123. package/dist/components/base/chart/chart.d.ts +2 -5
  124. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  125. package/dist/components/base/combobox/index.d.ts +30 -4
  126. package/dist/components/base/forms/form-sizing.d.ts +11 -3
  127. package/dist/components/base/navigation/pagination.d.ts +5 -2
  128. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  129. package/dist/components/base/table/index.d.ts +9 -2
  130. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  131. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  132. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  133. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
  134. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  135. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  136. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  137. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  138. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  139. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  140. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  141. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  142. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  143. package/dist/components/features/combobox/types.d.ts +4 -0
  144. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  145. package/dist/components/features/rich-text-editor/index.d.ts +1 -1
  146. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  147. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
  148. package/dist/components/features/table/table-header.d.ts +1 -1
  149. package/dist/components/features/table/table.strings.d.ts +55 -1
  150. package/dist/components/features/table/table.types.d.ts +17 -4
  151. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  152. package/dist/components/primitives/number.d.ts +4 -2
  153. package/dist/components/primitives/value.d.ts +3 -1
  154. package/dist/components/typography/text-link.d.ts +4 -0
  155. package/dist/components/ui/combobox.d.ts +6 -2
  156. package/dist/components/ui/item.d.ts +8 -8
  157. package/dist/components/ui/tabs.d.ts +1 -1
  158. package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
  159. package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
  160. package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
  161. package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
  162. package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
  163. package/dist/data-display-DT_khPl_.js.map +1 -0
  164. package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
  165. package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
  166. package/dist/{date-picker-CF-DtUpF.js → date-picker-ay0Pha_a.js} +594 -593
  167. package/dist/date-picker-ay0Pha_a.js.map +1 -0
  168. package/dist/date-pickers-Ccw8DL2b.js +175 -0
  169. package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
  170. package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
  171. package/dist/display-hAc1HjpI.js.map +1 -0
  172. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  173. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  174. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  175. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  176. package/dist/features/activities.js +398 -375
  177. package/dist/features/activities.js.map +1 -1
  178. package/dist/features/ai-chat.js +188 -179
  179. package/dist/features/ai-chat.js.map +1 -1
  180. package/dist/features/appointment-calendar.js +683 -0
  181. package/dist/features/appointment-calendar.js.map +1 -0
  182. package/dist/features/async-preview.js +109 -107
  183. package/dist/features/async-preview.js.map +1 -1
  184. package/dist/features/combobox.js +1 -1
  185. package/dist/features/comments.js +1 -1
  186. package/dist/features/data-view.js +137 -137
  187. package/dist/features/data-view.js.map +1 -1
  188. package/dist/features/email-composer.js +255 -255
  189. package/dist/features/email-composer.js.map +1 -1
  190. package/dist/features/event-calendar.js +254 -248
  191. package/dist/features/event-calendar.js.map +1 -1
  192. package/dist/features/filters.js +1 -1
  193. package/dist/features/global-search.js +35 -32
  194. package/dist/features/global-search.js.map +1 -1
  195. package/dist/features/kanban.js +118 -117
  196. package/dist/features/kanban.js.map +1 -1
  197. package/dist/features/map.js +233 -231
  198. package/dist/features/map.js.map +1 -1
  199. package/dist/features/media-library.js +789 -775
  200. package/dist/features/media-library.js.map +1 -1
  201. package/dist/features/mentions.js +1 -1
  202. package/dist/features/overlays.js +1 -1
  203. package/dist/features/products.js +922 -902
  204. package/dist/features/products.js.map +1 -1
  205. package/dist/features/questionnaire.js +28 -24
  206. package/dist/features/questionnaire.js.map +1 -1
  207. package/dist/features/resource-assignment.js +18 -15
  208. package/dist/features/resource-assignment.js.map +1 -1
  209. package/dist/features/resource.js +12 -12
  210. package/dist/features/resource.js.map +1 -1
  211. package/dist/features/rich-text-editor.js +2 -2
  212. package/dist/features/schema-form.js +15 -13
  213. package/dist/features/schema-form.js.map +1 -1
  214. package/dist/features/suggestions.js +3 -3
  215. package/dist/features/sync.js +11 -5
  216. package/dist/features/sync.js.map +1 -1
  217. package/dist/features/table.js +1 -1
  218. package/dist/features/theme-tweaker.js +493 -489
  219. package/dist/features/theme-tweaker.js.map +1 -1
  220. package/dist/feedback-BYIhtitP.js +239 -0
  221. package/dist/feedback-BYIhtitP.js.map +1 -0
  222. package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
  223. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  224. package/dist/{filters-BkHH53uv.js → filters-BGfvjP4d.js} +589 -580
  225. package/dist/filters-BGfvjP4d.js.map +1 -0
  226. package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
  227. package/dist/form-field-CwH9y77i.js.map +1 -0
  228. package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
  229. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  230. package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
  231. package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
  232. package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
  233. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  234. package/dist/{header-BOefOKd1.js → header-CGXuhcRm.js} +160 -153
  235. package/dist/header-CGXuhcRm.js.map +1 -0
  236. package/dist/{hooks-9k_TtmKh.js → hooks-Dkz0K2WT.js} +2 -2
  237. package/dist/{hooks-9k_TtmKh.js.map → hooks-Dkz0K2WT.js.map} +1 -1
  238. package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
  239. package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
  240. package/dist/index.js +3 -3
  241. package/dist/input-CZw8iU99.js +21 -0
  242. package/dist/input-CZw8iU99.js.map +1 -0
  243. package/dist/input-DQdEd0YD.js +263 -0
  244. package/dist/input-DQdEd0YD.js.map +1 -0
  245. package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
  246. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  247. package/dist/item-K5_ghvze.js +275 -0
  248. package/dist/item-K5_ghvze.js.map +1 -0
  249. package/dist/layout/app-shell.js +1 -1
  250. package/dist/layout/auth.js +1 -1
  251. package/dist/layout/containers.js +1 -1
  252. package/dist/layout/header.js +1 -1
  253. package/dist/layout/hooks.js +1 -1
  254. package/dist/layout/navigation.js +1 -1
  255. package/dist/layout/page.js +1 -1
  256. package/dist/layout/settings.js +1 -1
  257. package/dist/layout/sidebar.js +2 -2
  258. package/dist/layout/workspace.js +1 -1
  259. package/dist/layout.js +10 -10
  260. package/dist/lib/affordance-geometry.generated.d.ts +71 -0
  261. package/dist/lib/editable-text-recipe.d.ts +4 -4
  262. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  263. package/dist/lib/interaction-recipes.d.ts +5 -0
  264. package/dist/lib/theme-mode-css.d.ts +7 -0
  265. package/dist/lib/tone-recipes.d.ts +8 -0
  266. package/dist/lib/ui-provider/types.d.ts +2 -2
  267. package/dist/lib/utils.js +1 -1
  268. package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
  269. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  270. package/dist/{mentions-D-uyCh01.js → mentions-utuUvH1K.js} +144 -142
  271. package/dist/mentions-utuUvH1K.js.map +1 -0
  272. package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
  273. package/dist/message-DZ_ruyUV.js.map +1 -0
  274. package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
  275. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  276. package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
  277. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  278. package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
  279. package/dist/navigation-BzhHI3lo.js.map +1 -0
  280. package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  281. package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  282. package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
  283. package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
  284. package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
  285. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  286. package/dist/{overlays-I0axtYA6.js → overlays-DNWmZrJ4.js} +14 -12
  287. package/dist/overlays-DNWmZrJ4.js.map +1 -0
  288. package/dist/{page-B5dTH9gE.js → page-Bgl1F560.js} +8 -8
  289. package/dist/{page-B5dTH9gE.js.map → page-Bgl1F560.js.map} +1 -1
  290. package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
  291. package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
  292. package/dist/pagination-BL25hu2s.js +158 -0
  293. package/dist/pagination-BL25hu2s.js.map +1 -0
  294. package/dist/{popover-Di55PyAI.js → popover-7_m66eYW.js} +8 -7
  295. package/dist/{popover-Di55PyAI.js.map → popover-7_m66eYW.js.map} +1 -1
  296. package/dist/popover-menu-B9WWygpa.js +100 -0
  297. package/dist/popover-menu-B9WWygpa.js.map +1 -0
  298. package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
  299. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  300. package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
  301. package/dist/primitives-BFK08r9M.js.map +1 -0
  302. package/dist/primitives.js +4 -4
  303. package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
  304. package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
  305. package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
  306. package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  307. package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
  308. package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
  309. package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
  310. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  311. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  312. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  313. package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
  314. package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
  315. package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
  316. package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
  317. package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
  318. package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
  319. package/dist/services/actions.js +1 -1
  320. package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
  321. package/dist/settings-ybnjVwbd.js.map +1 -0
  322. package/dist/{sheet-4SEvVYzA.js → sheet-CGpB3omz.js} +8 -7
  323. package/dist/{sheet-4SEvVYzA.js.map → sheet-CGpB3omz.js.map} +1 -1
  324. package/dist/{sidebar-d7Dg80ln.js → sidebar-A0ElHINE.js} +14 -13
  325. package/dist/{sidebar-d7Dg80ln.js.map → sidebar-A0ElHINE.js.map} +1 -1
  326. package/dist/{sidebar-C7WWR29L.js → sidebar-CPx_7YBa.js} +183 -182
  327. package/dist/sidebar-CPx_7YBa.js.map +1 -0
  328. package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
  329. package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  330. package/dist/smart-card-DiC5aac3.js +604 -0
  331. package/dist/smart-card-DiC5aac3.js.map +1 -0
  332. package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
  333. package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
  334. package/dist/style.css +1 -1
  335. package/dist/table-BweFy_P9.js +1530 -0
  336. package/dist/table-BweFy_P9.js.map +1 -0
  337. package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
  338. package/dist/table-DsfzoUia.js.map +1 -0
  339. package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
  340. package/dist/tabs-CDocW5D1.js.map +1 -0
  341. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  342. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  343. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  344. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  345. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  346. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  347. package/dist/theme.css +285 -228
  348. package/dist/themes/green.css +16 -12
  349. package/dist/timelines-CwM_9IhD.js +457 -0
  350. package/dist/timelines-CwM_9IhD.js.map +1 -0
  351. package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
  352. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  353. package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
  354. package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
  355. package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
  356. package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
  357. package/dist/typography/rich-text.js +1 -1
  358. package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
  359. package/dist/typography-UTnveOEy.js.map +1 -0
  360. package/dist/typography.js +2 -2
  361. package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
  362. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  363. package/dist/ui-provider.js +2 -2
  364. package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
  365. package/dist/upload-CXyxmQBP.js.map +1 -0
  366. package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
  367. package/dist/upload-queue-Boscubn9.js.map +1 -0
  368. package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
  369. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  370. package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
  371. package/dist/utils-BRhFDwuU.js.map +1 -0
  372. package/dist/{value-inputs-TAYMX111.js → value-inputs-DXPDjvBU.js} +268 -252
  373. package/dist/value-inputs-DXPDjvBU.js.map +1 -0
  374. package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
  375. package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  376. package/dist/{workspace-DH0v0KcB.js → workspace-Cdrg7k9f.js} +34 -33
  377. package/dist/workspace-Cdrg7k9f.js.map +1 -0
  378. package/docs/consumer-skill/SKILL.md +2 -2
  379. package/docs/consumer-skill/references/agents-md.md +1 -1
  380. package/docs/consumer-skill/references/composition.md +8 -6
  381. package/docs/consumer-skill/references/integration.md +4 -3
  382. package/docs/consumer-skill/references/public-api.json +105 -2
  383. package/docs/consumer-skill/references/review.md +7 -0
  384. package/docs/consumer-skill/references/theming.md +71 -6
  385. package/docs/consumer-skill/references/tokens.json +1 -1
  386. package/docs/consumer-skill/references/workflows.md +25 -0
  387. package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
  388. package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
  389. package/package.json +8 -4
  390. package/dist/accordion-B6a3vVgA.js.map +0 -1
  391. package/dist/action-menu-TzCoSlwL.js +0 -280
  392. package/dist/action-menu-TzCoSlwL.js.map +0 -1
  393. package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
  394. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
  395. package/dist/ai-artifact-BMJdv-6q.js +0 -1115
  396. package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
  397. package/dist/attachment-BtfhGm8i.js +0 -245
  398. package/dist/attachment-BtfhGm8i.js.map +0 -1
  399. package/dist/auth-CYxKfo69.js.map +0 -1
  400. package/dist/avatar-BBnEJIx8.js.map +0 -1
  401. package/dist/badge-MrKVNzW9.js.map +0 -1
  402. package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
  403. package/dist/breadcrumbs-D5t7I023.js.map +0 -1
  404. package/dist/buttons-SbIcm1HJ.js.map +0 -1
  405. package/dist/cards-CiiHpKYd.js +0 -66
  406. package/dist/cards-CiiHpKYd.js.map +0 -1
  407. package/dist/chart-QfrARkXl.js.map +0 -1
  408. package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
  409. package/dist/code-block-Dgbu-CU3.js.map +0 -1
  410. package/dist/combobox-2Ic8N9bL.js +0 -278
  411. package/dist/combobox-2Ic8N9bL.js.map +0 -1
  412. package/dist/combobox-DLl0bfiq.js +0 -867
  413. package/dist/combobox-DLl0bfiq.js.map +0 -1
  414. package/dist/comments-BpDuCUUu.js.map +0 -1
  415. package/dist/data-display-DafIvCl5.js.map +0 -1
  416. package/dist/date-picker-CF-DtUpF.js.map +0 -1
  417. package/dist/date-pickers-BmzxJl5l.js +0 -174
  418. package/dist/date-pickers-BmzxJl5l.js.map +0 -1
  419. package/dist/display-DsQTVzMz.js.map +0 -1
  420. package/dist/dropdown-menu-E2qmdC7o.js +0 -193
  421. package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
  422. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  423. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  424. package/dist/feedback-qNuMBtRH.js +0 -233
  425. package/dist/feedback-qNuMBtRH.js.map +0 -1
  426. package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
  427. package/dist/filters-BkHH53uv.js.map +0 -1
  428. package/dist/form-field-DUt4UxSV.js.map +0 -1
  429. package/dist/form-sizing-By94KzXE.js.map +0 -1
  430. package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
  431. package/dist/header-BOefOKd1.js.map +0 -1
  432. package/dist/input-DWhBBBww.js +0 -262
  433. package/dist/input-DWhBBBww.js.map +0 -1
  434. package/dist/input-Ddi_LSYv.js +0 -20
  435. package/dist/input-Ddi_LSYv.js.map +0 -1
  436. package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
  437. package/dist/item-DEmDiTlD.js +0 -265
  438. package/dist/item-DEmDiTlD.js.map +0 -1
  439. package/dist/media-gallery-DcTtAaeC.js.map +0 -1
  440. package/dist/mentions-D-uyCh01.js.map +0 -1
  441. package/dist/message-CdHgIWKf.js.map +0 -1
  442. package/dist/metadata-list-X5rYAKSB.js.map +0 -1
  443. package/dist/navigation-D3KwXmaq.js.map +0 -1
  444. package/dist/navigation-HJf5zxlH.js.map +0 -1
  445. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
  446. package/dist/overlays-I0axtYA6.js.map +0 -1
  447. package/dist/pagination-3bPA_a6K.js +0 -149
  448. package/dist/pagination-3bPA_a6K.js.map +0 -1
  449. package/dist/popover-menu-B71Tn2Qz.js +0 -99
  450. package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
  451. package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
  452. package/dist/primitives-B-CkiEMU.js.map +0 -1
  453. package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
  454. package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
  455. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
  456. package/dist/settings-CQW3b-Cu.js.map +0 -1
  457. package/dist/sidebar-C7WWR29L.js.map +0 -1
  458. package/dist/smart-card-lFKxn5Hu.js +0 -595
  459. package/dist/smart-card-lFKxn5Hu.js.map +0 -1
  460. package/dist/spinner-fa3h1Aif.js +0 -80
  461. package/dist/spinner-fa3h1Aif.js.map +0 -1
  462. package/dist/table-CIKyLUsy.js.map +0 -1
  463. package/dist/table-CrcLN9Io.js +0 -1458
  464. package/dist/table-CrcLN9Io.js.map +0 -1
  465. package/dist/tabs-DwBJfjxX.js.map +0 -1
  466. package/dist/text-inputs-aaK9wcDT.js +0 -326
  467. package/dist/text-inputs-aaK9wcDT.js.map +0 -1
  468. package/dist/theme-scope-kStaAer0.js +0 -39
  469. package/dist/theme-scope-kStaAer0.js.map +0 -1
  470. package/dist/timelines-C_SBwHNP.js +0 -442
  471. package/dist/timelines-C_SBwHNP.js.map +0 -1
  472. package/dist/tone-recipes-CPoExcTE.js.map +0 -1
  473. package/dist/typography-DTRkE9zL.js.map +0 -1
  474. package/dist/ui-provider-1D_NSYzO.js.map +0 -1
  475. package/dist/upload-BO8-CLN6.js.map +0 -1
  476. package/dist/upload-queue-EOC8g1gf.js.map +0 -1
  477. package/dist/usage-card-obRaBskq.js.map +0 -1
  478. package/dist/utils-l5LpDw2z.js.map +0 -1
  479. package/dist/value-inputs-TAYMX111.js.map +0 -1
  480. package/dist/workspace-DH0v0KcB.js.map +0 -1
@@ -1,24 +1,24 @@
1
1
  "use client";
2
- import { o as e, s as t, v as n } from "../ui-provider-1D_NSYzO.js";
2
+ import { o as e, s as t, v as n } from "../ui-provider-C_U0Xma4.js";
3
3
  import { useStrings as r } from "../lib/strings.js";
4
- import { t as i } from "../utils-l5LpDw2z.js";
5
- import { n as a } from "../buttons-SbIcm1HJ.js";
6
- import { o, s } from "../typography-DTRkE9zL.js";
4
+ import { t as i } from "../utils-BRhFDwuU.js";
5
+ import { n as a } from "../buttons-DPZekJFu.js";
6
+ import { c as o, s } from "../typography-UTnveOEy.js";
7
7
  import { t as c } from "../focus-recipes-B653VaLq.js";
8
- import { t as l } from "../structure-DC2dygdA.js";
9
- import { r as u } from "../tone-recipes-CPoExcTE.js";
10
- import { t as d } from "../interaction-recipes-CHr0dJUs.js";
11
- import { r as f, t as p } from "../date-BgK3bTdo.js";
12
- import { n as m } from "../field-affordance-recipes-qQeIf4lG.js";
13
- import { l as h } from "../choice-inputs-t6w3ATNz.js";
14
- import { t as g } from "../date-pickers-BmzxJl5l.js";
15
- import { r as _, t as v } from "../control-group-recipes-DBXmfh2E.js";
16
- import { useCallback as y, useMemo as b, useState as x } from "react";
17
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
18
- import { ChevronLeft as T, ChevronRight as ee, ExternalLink as E } from "lucide-react";
19
- import { addMonths as D, addWeeks as O, eachDayOfInterval as k, endOfMonth as A, endOfWeek as j, format as M, isSameDay as N, isSameMonth as P, isToday as F, isWeekend as te, startOfDay as I, startOfMonth as L, startOfWeek as R, subMonths as z, subWeeks as ne } from "date-fns";
8
+ import { t as l } from "../structure-BmisBK-3.js";
9
+ import { i as u, t as d } from "../tone-recipes-BPsRAvhu.js";
10
+ import { t as f } from "../interaction-recipes-XR9ZpVYL.js";
11
+ import { r as p, t as m } from "../date-DCrsDTZc.js";
12
+ import { n as h } from "../field-affordance-recipes-DZhnIL_Y.js";
13
+ import { l as g } from "../choice-inputs-CNHvARCJ.js";
14
+ import { t as _ } from "../date-pickers-Ccw8DL2b.js";
15
+ import { r as v, t as y } from "../control-group-recipes-DBXmfh2E.js";
16
+ import { useCallback as b, useMemo as x, useState as S } from "react";
17
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
18
+ import { ChevronLeft as E, ChevronRight as D, ExternalLink as O } from "lucide-react";
19
+ import { addMonths as k, addWeeks as A, eachDayOfInterval as j, endOfMonth as M, endOfWeek as N, format as P, isSameDay as F, isSameMonth as I, isToday as ee, isWeekend as L, startOfDay as R, startOfMonth as z, startOfWeek as B, subMonths as te, subWeeks as V } from "date-fns";
20
20
  //#region src/components/features/event-calendar/event-calendar.types.ts
21
- var B = {
21
+ var H = {
22
22
  gray: "bg-muted-foreground",
23
23
  red: "bg-destructive",
24
24
  orange: "bg-warning",
@@ -28,10 +28,10 @@ var B = {
28
28
  blue: "bg-info",
29
29
  purple: "bg-primary"
30
30
  };
31
- function V(e) {
31
+ function U(e) {
32
32
  return e?.colorToken ?? "gray";
33
33
  }
34
- var H = {
34
+ var W = {
35
35
  today: "Today",
36
36
  previous: "Previous",
37
37
  next: "Next",
@@ -56,75 +56,76 @@ var H = {
56
56
  };
57
57
  //#endregion
58
58
  //#region src/components/features/event-calendar/event-calendar-event-badge.tsx
59
- function U({ event: e, category: t, compact: n = !1, onClick: r }) {
60
- let a = B[V(t)], o = e.allDay ? null : M(e.startDate, "HH:mm"), c = e.metadata?.calendar_cell_title, l = typeof c == "string" && c.trim() !== "" ? c : e.title, u = o ? `${l} at ${o}` : l;
61
- return /* @__PURE__ */ C("button", {
59
+ function G({ event: e, category: t, compact: n = !1, onClick: r }) {
60
+ let a = H[U(t)], s = e.allDay ? null : P(e.startDate, "HH:mm"), c = e.metadata?.calendar_cell_title, l = typeof c == "string" && c.trim() !== "" ? c : e.title, u = s ? `${l} at ${s}` : l;
61
+ return /* @__PURE__ */ w("button", {
62
62
  type: "button",
63
63
  onClick: (e) => {
64
64
  e.stopPropagation(), r?.();
65
65
  },
66
- className: i("event-calendar-event-badge--component", m.inline, m.focus, "@container/calendar-event group/calendar-event w-full min-w-0 cursor-pointer text-left text-card-foreground"),
66
+ className: i("event-calendar-event-badge--component", h.inline, h.focus, "@container/calendar-event group/calendar-event w-full min-w-0 cursor-pointer text-left text-card-foreground"),
67
67
  "aria-label": u,
68
68
  title: u,
69
- children: /* @__PURE__ */ w("span", {
69
+ children: /* @__PURE__ */ T("span", {
70
70
  className: i("box-border flex w-full min-w-0 items-center gap-space-xs overflow-hidden rounded-radius border border-border bg-card px-space-xs group-hover/calendar-event:bg-accent group-hover/calendar-event:text-accent-foreground", n ? "py-space-2xs" : "py-space-xs", "@max-[4rem]/calendar-event:min-h-action-xs @max-[4rem]/calendar-event:justify-center @max-[4rem]/calendar-event:border-transparent @max-[4rem]/calendar-event:bg-transparent @max-[4rem]/calendar-event:px-0 @max-[4rem]/calendar-event:py-space-2xs"),
71
71
  children: [
72
- /* @__PURE__ */ C("span", {
72
+ /* @__PURE__ */ w("span", {
73
73
  "aria-hidden": "true",
74
- className: i("size-1.5 shrink-0 rounded-full", a)
74
+ className: i(d.inline, a)
75
75
  }),
76
- /* @__PURE__ */ C(s, {
76
+ /* @__PURE__ */ w(o, {
77
77
  tag: "span",
78
+ type: "inherit",
78
79
  size: "xs",
79
80
  weight: "medium",
80
81
  className: "hidden min-w-0 flex-1 truncate @min-[4rem]/calendar-event:block",
81
82
  children: l
82
83
  }),
83
- !!o && /* @__PURE__ */ C(s, {
84
+ !!s && /* @__PURE__ */ w(o, {
84
85
  tag: "span",
85
86
  size: "xs",
86
87
  type: "secondary",
87
88
  className: "hidden shrink-0 whitespace-nowrap tabular-nums @min-[4rem]/calendar-event:inline",
88
- children: o
89
+ children: s
89
90
  })
90
91
  ]
91
92
  })
92
93
  });
93
94
  }
94
- U.displayName = "EventCalendarEventBadge";
95
+ G.displayName = "EventCalendarEventBadge";
95
96
  //#endregion
96
97
  //#region src/components/features/event-calendar/use-event-calendar-data.tsx
97
- function W(e, t, n, r = {}) {
98
+ function K(e, t, n, r = {}) {
98
99
  let { weekStartsOn: i = 1, showWeekends: a = !0, visibleCategories: o } = r;
99
- return b(() => {
100
- let r = L(t), s = A(t), c, l;
101
- n === "month" ? (c = R(r, { weekStartsOn: i }), l = j(s, { weekStartsOn: i })) : n === "week" ? (c = R(t, { weekStartsOn: i }), l = j(t, { weekStartsOn: i })) : (c = r, l = s);
102
- let u = k({
100
+ return x(() => {
101
+ let r = z(t), s = M(t), c, l;
102
+ n === "month" ? (c = B(r, { weekStartsOn: i }), l = N(s, { weekStartsOn: i })) : n === "week" ? (c = B(t, { weekStartsOn: i }), l = N(t, { weekStartsOn: i })) : (c = r, l = s);
103
+ let u = j({
103
104
  start: c,
104
105
  end: l
105
106
  }), d = o && o.length > 0 ? e.filter((e) => o.includes(e.category)) : e, f = /* @__PURE__ */ new Map();
106
107
  return d.forEach((e) => {
107
- let t = I(e.startDate);
108
+ let t = R(e.startDate);
108
109
  if (Number.isNaN(t.getTime())) return;
109
110
  let n = t;
110
111
  if (e.endDate && !Number.isNaN(e.endDate.getTime())) {
111
- let r = I(e.endDate);
112
+ let r = R(e.endDate);
112
113
  !Number.isNaN(r.getTime()) && r.getTime() >= t.getTime() && (n = r);
113
114
  }
114
- k({
115
+ j({
115
116
  start: t,
116
117
  end: n
117
118
  }).forEach((t) => {
118
119
  let n = t.toISOString().split("T")[0];
119
120
  f.has(n) || f.set(n, []), f.get(n).push(e);
120
121
  });
121
- }), u.filter((e) => a || !te(e)).map((e) => {
122
+ }), u.filter((e) => a || !L(e)).map((e) => {
122
123
  let n = e.toISOString().split("T")[0], r = [...f.get(n) || []].sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
123
124
  return {
124
125
  date: e,
125
- isCurrentMonth: P(e, t),
126
- isToday: F(e),
127
- isWeekend: te(e),
126
+ isCurrentMonth: I(e, t),
127
+ isToday: ee(e),
128
+ isWeekend: L(e),
128
129
  events: r,
129
130
  eventCount: r.length,
130
131
  hasMultipleEvents: r.length > 1
@@ -139,63 +140,66 @@ function W(e, t, n, r = {}) {
139
140
  o
140
141
  ]);
141
142
  }
142
- function G(e, t) {
143
+ function ne(e, t) {
143
144
  return e.filter((e) => {
144
- let n = I(e.startDate), r = e.endDate ? I(e.endDate) : n, i = I(t);
145
- return N(i, n) || N(i, r) || i > n && i < r;
145
+ let n = R(e.startDate), r = e.endDate ? R(e.endDate) : n, i = R(t);
146
+ return F(i, n) || F(i, r) || i > n && i < r;
146
147
  }).sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
147
148
  }
148
- function K(e, t) {
149
+ function q(e, t) {
149
150
  return e.find((e) => e.id === t);
150
151
  }
151
152
  //#endregion
152
153
  //#region src/components/features/event-calendar/event-calendar-day-cell.tsx
153
- function q({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick: a, compact: o = !1, strings: c, renderEvent: l }) {
154
+ function J({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick: a, compact: s = !1, strings: c, renderEvent: l }) {
154
155
  let u = {
155
- booking: c?.booking ?? H.booking,
156
- bookings: c?.bookings ?? H.bookings
157
- }, { date: d, isCurrentMonth: f, isToday: p, isWeekend: h, events: g, eventCount: _ } = e, v = g.slice(0, n), y = Math.max(0, _ - n);
158
- return /* @__PURE__ */ C("div", {
156
+ booking: c?.booking ?? W.booking,
157
+ bookings: c?.bookings ?? W.bookings
158
+ }, { date: d, isCurrentMonth: f, isToday: p, isWeekend: m, events: g, eventCount: _ } = e, v = g.slice(0, n), y = Math.max(0, _ - n);
159
+ return /* @__PURE__ */ w("div", {
159
160
  className: i("event-calendar-day-cell--component", "box-border h-full p-0 relative w-full border-r border-b border-border last:border-r-0 [&:nth-child(7n)]:border-r-0"),
160
- children: /* @__PURE__ */ w("div", {
161
+ children: /* @__PURE__ */ T("div", {
161
162
  onClick: r,
162
- className: i("event-calendar-day-cell--surface", "box-border relative h-full w-full min-h-24 p-space-md transition-colors", "hover:bg-accent", "flex flex-col items-start gap-space-xs", p && "h-full bg-accent text-accent-foreground", o && "min-h-20 p-space-xs"),
163
+ className: i("event-calendar-day-cell--surface", "box-border relative h-full w-full min-h-24 p-space-md transition-colors", "hover:bg-accent", "flex flex-col items-start gap-space-xs", p && "h-full bg-accent text-accent-foreground", s && "min-h-20 p-space-xs"),
163
164
  "data-date": d.toISOString(),
164
165
  "data-today": p,
165
- "data-weekend": h,
166
+ "data-weekend": m,
166
167
  "data-current-month": f,
167
- children: [/* @__PURE__ */ C("button", {
168
+ children: [/* @__PURE__ */ w("button", {
168
169
  type: "button",
169
170
  onClick: (e) => {
170
171
  e.stopPropagation(), r();
171
172
  },
172
- className: i("event-calendar-day-cell--date", m.target, m.focus, "text-inherit"),
173
+ className: i("event-calendar-day-cell--date", h.target, h.focus, "text-inherit"),
173
174
  "aria-label": d.toDateString(),
174
- children: /* @__PURE__ */ C(s, {
175
- className: i("font-normal leading-none", p && "font-semibold", !f && "text-muted-foreground", o && "text-xs"),
175
+ children: /* @__PURE__ */ w(o, {
176
+ size: s ? "xs" : void 0,
177
+ weight: p ? "semibold" : "regular",
178
+ type: f ? "main" : "secondary",
179
+ lineHeight: "none",
176
180
  children: d.getDate()
177
181
  })
178
- }), /* @__PURE__ */ w("div", {
182
+ }), /* @__PURE__ */ T("div", {
179
183
  className: "w-full space-y-space-2xs",
180
184
  children: [v.map((n) => {
181
- let i = K(t, n.category);
182
- return l ? /* @__PURE__ */ C("div", { children: l(n, i) }, n.id) : /* @__PURE__ */ C(U, {
185
+ let i = q(t, n.category);
186
+ return l ? /* @__PURE__ */ w("div", { children: l(n, i) }, n.id) : /* @__PURE__ */ w(G, {
183
187
  event: n,
184
188
  category: i,
185
- compact: o || e.hasMultipleEvents,
189
+ compact: s || e.hasMultipleEvents,
186
190
  onClick: () => {
187
191
  a ? a(n) : r();
188
192
  }
189
193
  }, n.id);
190
- }), y > 0 && /* @__PURE__ */ w("div", {
194
+ }), y > 0 && /* @__PURE__ */ T("div", {
191
195
  className: "flex items-center gap-space-xs py-space-2xs px-space-md",
192
- children: [/* @__PURE__ */ C("div", {
196
+ children: [/* @__PURE__ */ w("div", {
193
197
  className: "flex items-center -space-x-1",
194
- children: t.slice(0, 3).map((e, t) => /* @__PURE__ */ C("span", { className: i("h-1.5 w-1.5 rounded-full border border-background", B[V(e)]) }, e.id || t))
195
- }), /* @__PURE__ */ w(s, {
198
+ children: t.slice(0, 3).map((e, t) => /* @__PURE__ */ w("span", { className: i("h-1.5 w-1.5 rounded-full border border-background", H[U(e)]) }, e.id || t))
199
+ }), /* @__PURE__ */ T(o, {
196
200
  size: "xs",
197
201
  type: "secondary",
198
- className: "font-medium text-xs",
202
+ weight: "medium",
199
203
  children: [
200
204
  y,
201
205
  " ",
@@ -207,57 +211,57 @@ function q({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick:
207
211
  })
208
212
  });
209
213
  }
210
- q.displayName = "EventCalendarDayCell";
214
+ J.displayName = "EventCalendarDayCell";
211
215
  //#endregion
212
216
  //#region src/components/features/event-calendar/event-calendar-header.tsx
213
- var re = (e, t) => {
217
+ var Y = (e, t) => {
214
218
  if (!e) return null;
215
- if (e.element) return /* @__PURE__ */ C("div", {
219
+ if (e.element) return /* @__PURE__ */ w("div", {
216
220
  className: "event-calendar-header--action-slot",
217
221
  children: e.element
218
222
  }, e.id || t);
219
223
  let n = e.icon, r = e.id || `action-${t}`, o = () => {
220
224
  e.onClick?.();
221
225
  }, s = e.buttonStyle === "link" ? "ghost" : e.buttonStyle ?? "solid";
222
- return /* @__PURE__ */ w(a, {
226
+ return /* @__PURE__ */ T(a, {
223
227
  tone: e.tone ?? "primary",
224
228
  buttonStyle: s,
225
229
  onClick: o,
226
- className: i("gap-space-md", e.buttonStyle === "link" && "underline underline-offset-4"),
230
+ className: i("gap-space-md", e.buttonStyle === "link" && "underline underline-offset-[0.2em]"),
227
231
  disabled: !!e.disabled,
228
- children: [!!n && /* @__PURE__ */ C(n, { className: "size-icon" }), e.label]
232
+ children: [!!n && /* @__PURE__ */ w(n, { className: "size-icon" }), e.label]
229
233
  }, r);
230
234
  };
231
- function J({ currentDate: e, viewMode: s, displayLabel: c, onPrevious: l, onNext: u, onToday: d, onViewModeChange: f, onDateChange: p, locale: m, actions: y, strings: x, rangeMode: E = "date", minDate: D, maxDate: O, prevDisabled: k = !1, nextDisabled: A = !1 }) {
232
- let { defaultScale: j } = t(), M = n(void 0, j), N = r(H, x), P = b(() => (y || []).filter((e) => e.visible !== !1), [y]), F = b(() => [
235
+ function X({ currentDate: e, viewMode: o, displayLabel: c, onPrevious: l, onNext: u, onToday: d, onViewModeChange: f, onDateChange: p, locale: m, actions: h, strings: b, rangeMode: S = "date", minDate: O, maxDate: k, prevDisabled: A = !1, nextDisabled: j = !1 }) {
236
+ let { defaultScale: M } = t(), N = n(void 0, M), P = r(W, b), F = x(() => (h || []).filter((e) => e.visible !== !1), [h]), I = x(() => [
233
237
  {
234
238
  value: "month",
235
- label: N.viewMode.month
239
+ label: P.viewMode.month
236
240
  },
237
241
  {
238
242
  value: "week",
239
- label: N.viewMode.week
243
+ label: P.viewMode.week
240
244
  },
241
245
  {
242
246
  value: "agenda",
243
- label: N.viewMode.agenda
247
+ label: P.viewMode.agenda
244
248
  }
245
249
  ], [
246
- N.viewMode.month,
247
- N.viewMode.week,
248
- N.viewMode.agenda
250
+ P.viewMode.month,
251
+ P.viewMode.week,
252
+ P.viewMode.agenda
249
253
  ]);
250
- return /* @__PURE__ */ C("div", {
254
+ return /* @__PURE__ */ w("div", {
251
255
  className: "event-calendar-header--component @container/event-calendar-header mb-space-xl min-w-0",
252
- children: /* @__PURE__ */ w("div", {
256
+ children: /* @__PURE__ */ T("div", {
253
257
  className: "event-calendar-header--layout flex min-w-0 flex-col items-stretch gap-space-lg @2xl/event-calendar-header:flex-row @2xl/event-calendar-header:items-center @2xl/event-calendar-header:justify-between @2xl/event-calendar-header:gap-space-xl",
254
- children: [/* @__PURE__ */ w("div", {
258
+ children: [/* @__PURE__ */ T("div", {
255
259
  className: "event-calendar-header--title flex min-w-0 flex-wrap items-center gap-space-lg @2xl/event-calendar-header:flex-none",
256
- children: [/* @__PURE__ */ C(o, {
260
+ children: [/* @__PURE__ */ w(s, {
257
261
  tag: "h3",
258
- className: "min-w-0 break-words",
262
+ className: "min-w-0 break-words text-inherit",
259
263
  children: c
260
- }), /* @__PURE__ */ C(g, {
264
+ }), /* @__PURE__ */ w(_, {
261
265
  iconOnly: !0,
262
266
  className: "min-w-0 max-w-full",
263
267
  value: {
@@ -267,52 +271,52 @@ function J({ currentDate: e, viewMode: s, displayLabel: c, onPrevious: l, onNext
267
271
  onValueChange: (e) => {
268
272
  e.date && p?.(e.date);
269
273
  },
270
- fromYear: D?.getFullYear(),
271
- toYear: O?.getFullYear(),
274
+ fromYear: O?.getFullYear(),
275
+ toYear: k?.getFullYear(),
272
276
  locale: m,
273
- strings: N.monthYearPicker
277
+ strings: P.monthYearPicker
274
278
  })]
275
- }), /* @__PURE__ */ w("div", {
279
+ }), /* @__PURE__ */ T("div", {
276
280
  className: "event-calendar-header--controls flex w-full min-w-0 flex-wrap items-center gap-space-md @2xl/event-calendar-header:w-auto @2xl/event-calendar-header:flex-1 @2xl/event-calendar-header:justify-end",
277
281
  children: [
278
- P.length > 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
282
+ F.length > 0 && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
279
283
  className: "event-calendar-header--actions flex min-w-0 flex-wrap items-center gap-space-md",
280
- children: P.map((e, t) => re(e, t))
281
- }), /* @__PURE__ */ C("div", { className: "event-calendar-header--separator mx-space-sm hidden h-6 w-px bg-border @sm/event-calendar-header:block" })] }),
282
- /* @__PURE__ */ C(a, {
284
+ children: F.map((e, t) => Y(e, t))
285
+ }), /* @__PURE__ */ w("div", { className: "event-calendar-header--separator mx-space-sm hidden h-6 w-px bg-border @sm/event-calendar-header:block" })] }),
286
+ /* @__PURE__ */ w(a, {
283
287
  tone: "secondary",
284
288
  buttonStyle: "outline",
285
289
  onClick: d,
286
- children: N.today
290
+ children: P.today
287
291
  }),
288
- /* @__PURE__ */ w("div", {
289
- className: i("event-calendar-header--navigation", _.joinedFrame, v[M]),
290
- children: [/* @__PURE__ */ C(a, {
292
+ /* @__PURE__ */ T("div", {
293
+ className: i("event-calendar-header--navigation", v.joinedFrame, y[N]),
294
+ children: [/* @__PURE__ */ w(a, {
291
295
  tone: "secondary",
292
296
  buttonStyle: "ghost",
293
- size: M,
297
+ size: N,
294
298
  iconOnly: !0,
295
299
  onClick: l,
296
- disabled: k,
297
- className: i(_.joinedItem, _.firstItem, "border-border border-e"),
298
- "aria-label": N.previous,
299
- children: /* @__PURE__ */ C(T, { className: "size-icon rtl:rotate-180" })
300
- }), /* @__PURE__ */ C(a, {
300
+ disabled: A,
301
+ className: i(v.joinedItem, v.firstItem, "border-border border-e"),
302
+ "aria-label": P.previous,
303
+ children: /* @__PURE__ */ w(E, { className: "size-icon rtl:rotate-180" })
304
+ }), /* @__PURE__ */ w(a, {
301
305
  tone: "secondary",
302
306
  buttonStyle: "ghost",
303
- size: M,
307
+ size: N,
304
308
  iconOnly: !0,
305
309
  onClick: u,
306
- disabled: A,
307
- className: i(_.joinedItem, _.lastItem),
308
- "aria-label": N.next,
309
- children: /* @__PURE__ */ C(ee, { className: "size-icon rtl:rotate-180" })
310
+ disabled: j,
311
+ className: i(v.joinedItem, v.lastItem),
312
+ "aria-label": P.next,
313
+ children: /* @__PURE__ */ w(D, { className: "size-icon rtl:rotate-180" })
310
314
  })]
311
315
  }),
312
- !!f && /* @__PURE__ */ C(h, {
313
- "aria-label": N.viewMode.label,
314
- value: s,
315
- options: F,
316
+ !!f && /* @__PURE__ */ w(g, {
317
+ "aria-label": P.viewMode.label,
318
+ value: o,
319
+ options: I,
316
320
  onValueChange: (e) => {
317
321
  e && f(e);
318
322
  },
@@ -323,10 +327,10 @@ function J({ currentDate: e, viewMode: s, displayLabel: c, onPrevious: l, onNext
323
327
  })
324
328
  });
325
329
  }
326
- J.displayName = "EventCalendarHeader";
330
+ X.displayName = "EventCalendarHeader";
327
331
  //#endregion
328
332
  //#region src/components/features/event-calendar/colors.ts
329
- var Y = {
333
+ var Z = {
330
334
  gray: {
331
335
  badgeBg: "bg-muted",
332
336
  border: "border-border",
@@ -368,113 +372,113 @@ var Y = {
368
372
  swatch: u.primary.solid
369
373
  }
370
374
  };
371
- function X(e) {
372
- let t = V(e);
375
+ function Q(e) {
376
+ let t = U(e);
373
377
  return {
374
- dot: B[t],
375
- ...Y[t]
378
+ dot: H[t],
379
+ ...Z[t]
376
380
  };
377
381
  }
378
- function Z(e) {
379
- return B[V(e)];
382
+ function $(e) {
383
+ return H[U(e)];
380
384
  }
381
385
  //#endregion
382
386
  //#region src/components/features/event-calendar/event-calendar-legend.tsx
383
- function Q({ categories: e, visibleCategories: t, onToggleCategory: n, enableFiltering: r = !1 }) {
384
- let o = !t || t.length === 0, c = (e) => !r || o || t?.includes(e), l = (e) => {
387
+ function re({ categories: e, visibleCategories: t, onToggleCategory: n, enableFiltering: r = !1 }) {
388
+ let s = !t || t.length === 0, c = (e) => !r || s || t?.includes(e), l = (e) => {
385
389
  r && n && n(e);
386
390
  };
387
- return e.length === 0 ? null : /* @__PURE__ */ C("div", {
391
+ return e.length === 0 ? null : /* @__PURE__ */ w("div", {
388
392
  role: r ? "group" : void 0,
389
393
  "aria-label": r ? "Filter event categories" : void 0,
390
394
  className: i("event-calendar-legend--component", "flex flex-wrap items-center gap-space-sm py-space-xs"),
391
395
  children: e.map((e) => {
392
- let t = c(e.id), n = X(e), o = e.icon, u = "group inline-flex items-center gap-space-sm rounded-inner border px-space-sm py-space-xs transition-colors", f = /* @__PURE__ */ w(S, { children: [
393
- /* @__PURE__ */ C("span", {
396
+ let t = c(e.id), n = Q(e), s = e.icon, u = "group inline-flex items-center gap-space-sm rounded-inner border px-space-sm py-space-xs transition-colors", d = /* @__PURE__ */ T(C, { children: [
397
+ /* @__PURE__ */ w("span", {
394
398
  className: i("inline-block size-2 rounded-radius", t ? n.swatch : "bg-muted-foreground/40"),
395
399
  "aria-hidden": "true"
396
400
  }),
397
- !!o && /* @__PURE__ */ C(o, {
398
- className: i("size-icon-sm", t ? "text-foreground" : "text-muted-foreground"),
401
+ !!s && /* @__PURE__ */ w(s, {
402
+ className: i("size-icon-sm", t ? "text-inherit" : "text-muted-foreground"),
399
403
  "aria-hidden": "true"
400
404
  }),
401
- /* @__PURE__ */ C(s, {
405
+ /* @__PURE__ */ w(o, {
402
406
  tag: "span",
403
407
  size: "xs",
404
408
  weight: "medium",
405
- type: t ? "main" : "secondary",
409
+ type: t ? "inherit" : "secondary",
406
410
  children: e.label
407
411
  })
408
412
  ] });
409
- return r ? /* @__PURE__ */ C(a, {
413
+ return r ? /* @__PURE__ */ w(a, {
410
414
  type: "button",
411
415
  tone: "secondary",
412
416
  buttonStyle: "ghost",
413
417
  size: "sm",
414
418
  "aria-pressed": t,
415
419
  onClick: () => l(e.id),
416
- className: i(u, "h-auto min-h-0 cursor-pointer shadow-none", t ? `border-border bg-card ${d.toggleHover}` : `border-dashed border-border/60 bg-transparent text-muted-foreground ${d.toggleHover}`),
417
- children: f
418
- }, e.id) : /* @__PURE__ */ C("span", {
419
- className: i(u, "border-border bg-card cursor-default"),
420
- children: f
420
+ className: i(u, "h-auto min-h-0 cursor-pointer shadow-none", t ? `border-border bg-card text-card-foreground ${f.toggleHover}` : `border-dashed border-border/60 bg-transparent text-muted-foreground ${f.toggleHover}`),
421
+ children: d
422
+ }, e.id) : /* @__PURE__ */ w("span", {
423
+ className: i(u, "border-border bg-card text-card-foreground cursor-default"),
424
+ children: d
421
425
  }, e.id);
422
426
  })
423
427
  });
424
428
  }
425
- Q.displayName = "EventCalendarLegend";
429
+ re.displayName = "EventCalendarLegend";
426
430
  //#endregion
427
431
  //#region src/components/features/event-calendar/use-event-calendar.tsx
428
432
  function ie({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ new Date(), viewMode: i, defaultViewMode: a = "month", onDateChange: o, onViewModeChange: s, dataOptions: c = {} }) {
429
- let [l, u] = x(r), [d, f] = x(a), p = n ?? l, m = i ?? d, h = y((e) => {
433
+ let [l, u] = S(r), [d, f] = S(a), p = n ?? l, m = i ?? d, h = b((e) => {
430
434
  n === void 0 && u(e), o?.(e);
431
- }, [n, o]), g = y((e) => {
435
+ }, [n, o]), g = b((e) => {
432
436
  i === void 0 && f(e), s?.(e);
433
- }, [s, i]), _ = W(e, p, m, c), v = b(() => c.visibleCategories && c.visibleCategories.length > 0 ? e.filter((e) => c.visibleCategories.includes(e.category)) : e, [e, c.visibleCategories]);
437
+ }, [s, i]), _ = K(e, p, m, c), v = x(() => c.visibleCategories && c.visibleCategories.length > 0 ? e.filter((e) => c.visibleCategories.includes(e.category)) : e, [e, c.visibleCategories]);
434
438
  return {
435
439
  currentDate: p,
436
440
  viewMode: m,
437
441
  calendarDays: _,
438
442
  visibleEvents: v,
439
- goToToday: y(() => {
443
+ goToToday: b(() => {
440
444
  h(/* @__PURE__ */ new Date());
441
445
  }, [h]),
442
- goToNextPeriod: y(() => {
443
- let e = m === "month" ? D(p, 1) : O(p, 1);
446
+ goToNextPeriod: b(() => {
447
+ let e = m === "month" ? k(p, 1) : A(p, 1);
444
448
  h(e);
445
449
  }, [
446
450
  h,
447
451
  p,
448
452
  m
449
453
  ]),
450
- goToPreviousPeriod: y(() => {
451
- let e = m === "month" ? z(p, 1) : ne(p, 1);
454
+ goToPreviousPeriod: b(() => {
455
+ let e = m === "month" ? te(p, 1) : V(p, 1);
452
456
  h(e);
453
457
  }, [
454
458
  h,
455
459
  p,
456
460
  m
457
461
  ]),
458
- setDate: y((e) => {
462
+ setDate: b((e) => {
459
463
  h(e);
460
464
  }, [h]),
461
- setViewMode: y((e) => {
465
+ setViewMode: b((e) => {
462
466
  g(e);
463
467
  }, [g]),
464
- displayLabel: b(() => {
465
- if (m === "month") return M(p, "MMMM yyyy", { locale: t });
468
+ displayLabel: x(() => {
469
+ if (m === "month") return P(p, "MMMM yyyy", { locale: t });
466
470
  if (m === "week") {
467
471
  let e = _[0]?.date, n = _[_.length - 1]?.date;
468
- return e && n ? `${M(e, "MMM d", { locale: t })} - ${M(n, "MMM d, yyyy", { locale: t })}` : M(p, "MMMM yyyy", { locale: t });
472
+ return e && n ? `${P(e, "MMM d", { locale: t })} - ${P(n, "MMM d, yyyy", { locale: t })}` : P(p, "MMMM yyyy", { locale: t });
469
473
  }
470
- return M(p, "MMMM yyyy", { locale: t });
474
+ return P(p, "MMMM yyyy", { locale: t });
471
475
  }, [
472
476
  p,
473
477
  m,
474
478
  _,
475
479
  t
476
480
  ]),
477
- hasEvents: b(() => v.length > 0, [v])
481
+ hasEvents: x(() => v.length > 0, [v])
478
482
  };
479
483
  }
480
484
  //#endregion
@@ -486,39 +490,39 @@ function ae(e, t) {
486
490
  let n = e.dates?.some((e) => e.toDateString() === t.toDateString()) ?? !1, r = e.predicate?.(t) ?? !1;
487
491
  return n || r;
488
492
  }
489
- function $({ events: t, categories: n, 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: S, enableCategoryFilter: T = !1, visibleCategories: ee, onVisibleCategoriesChange: E, loading: D = !1, emptyStateMessage: O, className: k, compact: A = !1, actions: j, strings: M, dayHeadingVariant: N = "default", dayHeadingClassName: P, renderDayHeading: F, rangeMode: te = "date", minDate: I, maxDate: L, disabledDates: R, filterEvent: z, renderEvent: ne, renderDayCell: B }) {
490
- let V = r(H, M), [U, W] = x([]), G = ee ?? U, { weekStartsOn: K, locale: re } = e(), Y = y ?? K ?? 1, X = S ?? re, Z = (e) => {
491
- let t = G.includes(e) ? G.filter((t) => t !== e) : [...G, e];
492
- E ? E(t) : W(t);
493
+ function oe({ events: t, categories: n, viewMode: a, defaultViewMode: s, 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: C = !1, visibleCategories: E, onVisibleCategoriesChange: D, loading: O = !1, emptyStateMessage: k, className: A, compact: j = !1, actions: M, strings: N, dayHeadingVariant: P = "default", dayHeadingClassName: F, renderDayHeading: I, rangeMode: ee = "date", minDate: L, maxDate: R, disabledDates: z, filterEvent: B, renderEvent: te, renderDayCell: V }) {
494
+ let H = r(W, N), [U, G] = S([]), K = E ?? U, { weekStartsOn: ne, locale: q } = e(), Y = y ?? ne ?? 1, Z = b ?? q, Q = (e) => {
495
+ let t = K.includes(e) ? K.filter((t) => t !== e) : [...K, e];
496
+ D ? D(t) : G(t);
493
497
  }, $ = ie({
494
498
  events: t,
495
- locale: X,
499
+ locale: Z,
496
500
  date: l,
497
501
  defaultDate: d,
498
502
  viewMode: a,
499
- defaultViewMode: o,
503
+ defaultViewMode: s,
500
504
  onDateChange: f,
501
505
  onViewModeChange: c,
502
506
  dataOptions: {
503
507
  weekStartsOn: Y,
504
508
  showWeekends: v,
505
- visibleCategories: G.length > 0 ? G : void 0
509
+ visibleCategories: K.length > 0 ? K : void 0
506
510
  }
507
- }), oe = b(() => {
508
- let e = V.weekdaysShort;
511
+ }), oe = x(() => {
512
+ let e = H.weekdaysShort;
509
513
  return Y === 1 ? [...e.slice(1), e[0]] : e;
510
- }, [V.weekdaysShort, Y]), se = (e) => {
511
- ae(R, e.date) || I && e.date < I || L && e.date > L || m?.(e.date, e.events);
512
- }, ce = b(() => z ? $.calendarDays.map((e) => ({
514
+ }, [H.weekdaysShort, Y]), se = (e) => {
515
+ ae(z, e.date) || L && e.date < L || R && e.date > R || m?.(e.date, e.events);
516
+ }, ce = x(() => B ? $.calendarDays.map((e) => ({
513
517
  ...e,
514
- events: e.events.filter(z),
515
- eventCount: e.events.filter(z).length,
516
- hasMultipleEvents: e.events.filter(z).length > 1
517
- })) : $.calendarDays, [$.calendarDays, z]);
518
+ events: e.events.filter(B),
519
+ eventCount: e.events.filter(B).length,
520
+ hasMultipleEvents: e.events.filter(B).length > 1
521
+ })) : $.calendarDays, [$.calendarDays, B]);
518
522
  function le(e) {
519
- return !!(ae(R, e) || I && e < I || L && e > L);
523
+ return !!(ae(z, e) || L && e < L || R && e > R);
520
524
  }
521
- let ue = b(() => {
525
+ let ue = x(() => {
522
526
  let e = $.calendarDays;
523
527
  if (e.length === 0) return {
524
528
  prev: !1,
@@ -526,27 +530,27 @@ function $({ events: t, categories: n, viewMode: a, defaultViewMode: o, onViewMo
526
530
  };
527
531
  let t = e[0].date, n = e[e.length - 1].date;
528
532
  return {
529
- prev: !!I && t <= I,
530
- next: !!L && n >= L
533
+ prev: !!L && t <= L,
534
+ next: !!R && n >= R
531
535
  };
532
536
  }, [
533
537
  $.calendarDays,
534
- I,
535
- L
538
+ L,
539
+ R
536
540
  ]);
537
- if (D) return /* @__PURE__ */ C("div", {
538
- className: i("event-calendar--component", "flex items-center justify-center p-surface-lg", k),
541
+ if (O) return /* @__PURE__ */ w("div", {
542
+ className: i("event-calendar--component", "flex items-center justify-center p-surface-lg", A),
539
543
  role: "status",
540
- children: /* @__PURE__ */ C(s, {
544
+ children: /* @__PURE__ */ w(o, {
541
545
  type: "secondary",
542
- children: V.loading
546
+ children: H.loading
543
547
  })
544
548
  });
545
- let de = a ? c : void 0, fe = T ? Z : void 0;
546
- return /* @__PURE__ */ w("div", {
547
- className: i("event-calendar--component w-full space-y-space-xl", k),
549
+ let de = a ? c : void 0, fe = C ? Q : void 0;
550
+ return /* @__PURE__ */ T("div", {
551
+ className: i("event-calendar--component w-full space-y-space-xl", A),
548
552
  children: [
549
- !!_ && /* @__PURE__ */ C(J, {
553
+ !!_ && /* @__PURE__ */ w(X, {
550
554
  currentDate: $.currentDate,
551
555
  viewMode: $.viewMode,
552
556
  displayLabel: $.displayLabel,
@@ -555,50 +559,50 @@ function $({ events: t, categories: n, viewMode: a, defaultViewMode: o, onViewMo
555
559
  onToday: $.goToToday,
556
560
  onViewModeChange: de,
557
561
  onDateChange: $.setDate,
558
- locale: X,
559
- actions: j,
560
- rangeMode: te,
561
- minDate: I,
562
- maxDate: L,
562
+ locale: Z,
563
+ actions: M,
564
+ rangeMode: ee,
565
+ minDate: L,
566
+ maxDate: R,
563
567
  prevDisabled: ue.prev,
564
568
  nextDisabled: ue.next,
565
569
  strings: {
566
- today: V.today,
567
- previous: V.previous,
568
- next: V.next,
569
- viewMode: V.viewMode,
570
- monthYearPicker: V.monthYearPicker
570
+ today: H.today,
571
+ previous: H.previous,
572
+ next: H.next,
573
+ viewMode: H.viewMode,
574
+ monthYearPicker: H.monthYearPicker
571
575
  }
572
576
  }),
573
- !!g && n.length > 0 && /* @__PURE__ */ C(Q, {
577
+ !!g && n.length > 0 && /* @__PURE__ */ w(re, {
574
578
  categories: n,
575
- visibleCategories: G,
579
+ visibleCategories: K,
576
580
  onToggleCategory: fe,
577
- enableFiltering: T
581
+ enableFiltering: C
578
582
  }),
579
- !$.hasEvents && O ? /* @__PURE__ */ C("div", {
583
+ !$.hasEvents && k ? /* @__PURE__ */ w("div", {
580
584
  className: "flex items-center justify-center rounded-radius border border-dashed border-border p-surface",
581
- children: /* @__PURE__ */ C(s, {
585
+ children: /* @__PURE__ */ w(o, {
582
586
  type: "secondary",
583
- children: O
587
+ children: k
584
588
  })
585
- }) : /* @__PURE__ */ w("div", {
586
- className: "bg-background rounded-radius border border-border",
587
- children: [/* @__PURE__ */ C("div", {
588
- className: i("grid grid-cols-7", N === "bordered" && "border-b border-border mb-0", N === "tinted" && "bg-muted/50 rounded-t-radius mb-0 overflow-hidden", N === "accent" && i(u.primary.wash, "rounded-t-radius mb-0 overflow-hidden"), N === "default" && "mb-space-md"),
589
- children: oe.map((e, t) => F ? /* @__PURE__ */ C("div", { children: F(e, t) }, e) : /* @__PURE__ */ C("div", {
590
- className: i("text-center h-8 flex items-center justify-center", P),
591
- children: /* @__PURE__ */ C(s, {
589
+ }) : /* @__PURE__ */ T("div", {
590
+ className: "box-border bg-background text-foreground rounded-radius border border-border",
591
+ children: [/* @__PURE__ */ w("div", {
592
+ className: i("grid grid-cols-7", P === "bordered" && "border-b border-border mb-0", P === "tinted" && "bg-muted/50 rounded-t-radius mb-0 overflow-hidden", P === "accent" && i(u.primary.wash, "rounded-t-radius mb-0 overflow-hidden"), P === "default" && "mb-space-md"),
593
+ children: oe.map((e, t) => I ? /* @__PURE__ */ w("div", { children: I(e, t) }, e) : /* @__PURE__ */ w("div", {
594
+ className: i("text-center h-8 flex items-center justify-center", F),
595
+ children: /* @__PURE__ */ w(o, {
592
596
  size: "xs",
593
- weight: N === "accent" ? "medium" : "regular",
594
- className: i(N === "default" && "text-muted-foreground", N === "tinted" && "text-muted-foreground", N === "bordered" && "text-foreground", N === "accent" && "text-primary-accent"),
597
+ weight: P === "accent" ? "medium" : "regular",
598
+ className: i(P === "default" && "text-muted-foreground", P === "tinted" && "text-muted-foreground", P === "bordered" && "text-foreground", P === "accent" && "text-primary-accent"),
595
599
  children: e
596
600
  })
597
601
  }, e))
598
- }), /* @__PURE__ */ C("div", {
602
+ }), /* @__PURE__ */ w("div", {
599
603
  className: "grid grid-cols-7",
600
604
  children: ce.map((e) => {
601
- let t = le(e.date), r = () => /* @__PURE__ */ C(q, {
605
+ let t = le(e.date), r = () => /* @__PURE__ */ w(J, {
602
606
  data: e,
603
607
  categories: n,
604
608
  maxEvents: h,
@@ -606,17 +610,17 @@ function $({ events: t, categories: n, viewMode: a, defaultViewMode: o, onViewMo
606
610
  onEventClick: p ? (t) => {
607
611
  le(e.date) || p(t);
608
612
  } : void 0,
609
- compact: A,
613
+ compact: j,
610
614
  strings: {
611
- booking: V.booking,
612
- bookings: V.bookings
615
+ booking: H.booking,
616
+ bookings: H.bookings
613
617
  },
614
- renderEvent: ne
618
+ renderEvent: te
615
619
  });
616
- return /* @__PURE__ */ C("div", {
620
+ return /* @__PURE__ */ w("div", {
617
621
  className: i(t && "pointer-events-none opacity-50"),
618
622
  "aria-disabled": t || void 0,
619
- children: B ? B(e, r) : r()
623
+ children: V ? V(e, r) : r()
620
624
  }, e.date.toISOString());
621
625
  })
622
626
  })]
@@ -624,63 +628,65 @@ function $({ events: t, categories: n, viewMode: a, defaultViewMode: o, onViewMo
624
628
  ]
625
629
  });
626
630
  }
627
- $.displayName = "EventCalendar";
631
+ oe.displayName = "EventCalendar";
628
632
  //#endregion
629
633
  //#region src/components/features/event-calendar/event-calendar-event-card.tsx
630
- var oe = {
634
+ var se = {
631
635
  guest: "guest",
632
636
  guests: "guests"
633
637
  };
634
- function se({ event: e, category: t, onClick: n, strings: a }) {
635
- let u = r(oe, a), m = !!n, h = () => {
638
+ function ce({ event: e, category: t, onClick: n, strings: a }) {
639
+ let u = r(se, a), h = !!n, g = () => {
636
640
  n && n();
637
- }, g = e.metadata || {}, _ = g.customer_name, v = g.guest_count, y = g.service_name, b = Z(t), x = [_, v !== void 0 && v > 0 ? `${v} ${v === 1 ? u.guest : u.guests}` : void 0].filter(Boolean).join(" · "), S = /* @__PURE__ */ w(l, {
641
+ }, _ = e.metadata || {}, v = _.customer_name, y = _.guest_count, b = _.service_name, x = $(t), S = [v, y !== void 0 && y > 0 ? `${y} ${y === 1 ? u.guest : u.guests}` : void 0].filter(Boolean).join(" · "), C = /* @__PURE__ */ T(l, {
638
642
  gap: "lg",
639
643
  children: [
640
- /* @__PURE__ */ w("div", {
644
+ /* @__PURE__ */ T("div", {
641
645
  className: "event-calendar-event-card--header flex min-w-0 items-start justify-between gap-space-lg",
642
- children: [/* @__PURE__ */ w("div", {
646
+ children: [/* @__PURE__ */ T("div", {
643
647
  className: "flex min-w-0 flex-1 flex-col items-start gap-space-xs sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-space-md",
644
- children: [/* @__PURE__ */ C(o, {
648
+ children: [/* @__PURE__ */ w(s, {
645
649
  tag: "h5",
646
650
  containerClassName: "event-calendar-event-card--heading min-w-0 max-w-full sm:w-auto",
647
- className: "break-words",
651
+ className: "break-words text-inherit",
648
652
  children: e.title
649
- }), !!t && /* @__PURE__ */ w("div", {
653
+ }), !!t && /* @__PURE__ */ T("div", {
650
654
  className: "event-calendar-event-card--category inline-flex min-w-0 max-w-full items-center gap-space-xs",
651
- children: [/* @__PURE__ */ C("span", {
655
+ children: [/* @__PURE__ */ w("span", {
652
656
  "aria-hidden": "true",
653
- className: i("event-calendar-event-card--category-dot size-1.5 shrink-0 rounded-full", b)
654
- }), /* @__PURE__ */ C(s, {
657
+ className: i("event-calendar-event-card--category-dot", d.inline, x)
658
+ }), /* @__PURE__ */ w(o, {
655
659
  tag: "span",
660
+ type: "inherit",
656
661
  size: "xs",
657
662
  weight: "medium",
658
663
  className: "min-w-0 break-words",
659
664
  children: t.label
660
665
  })]
661
666
  })]
662
- }), !!m && !!e.url && /* @__PURE__ */ C(E, { className: "h-3.5 w-3.5 text-muted-foreground flex-shrink-0" })]
667
+ }), !!h && !!e.url && /* @__PURE__ */ w(O, { className: "size-icon-md text-muted-foreground flex-shrink-0" })]
663
668
  }),
664
- !!(x || y) && /* @__PURE__ */ w(l, {
669
+ !!(S || b) && /* @__PURE__ */ T(l, {
665
670
  gap: "xs",
666
671
  className: "event-calendar-event-card--details min-w-0",
667
- children: [!!x && /* @__PURE__ */ C(s, {
672
+ children: [!!S && /* @__PURE__ */ w(o, {
673
+ type: "inherit",
668
674
  className: "event-calendar-event-card--facts break-words",
669
- children: x
670
- }), !!y && /* @__PURE__ */ C(s, {
675
+ children: S
676
+ }), !!b && /* @__PURE__ */ w(o, {
671
677
  type: "secondary",
672
678
  className: "line-clamp-1",
673
- children: y
679
+ children: b
674
680
  })]
675
681
  }),
676
- /* @__PURE__ */ C("div", {
682
+ /* @__PURE__ */ w("div", {
677
683
  className: "event-calendar-event-card--date",
678
- children: e.allDay ? /* @__PURE__ */ C(p, {
684
+ children: e.allDay ? /* @__PURE__ */ w(m, {
679
685
  value: e.startDate,
680
686
  preset: "long",
681
687
  size: "xs",
682
688
  type: "secondary"
683
- }) : /* @__PURE__ */ C(f, {
689
+ }) : /* @__PURE__ */ w(p, {
684
690
  value: e.startDate,
685
691
  preset: "long",
686
692
  size: "xs",
@@ -688,19 +694,19 @@ function se({ event: e, category: t, onClick: n, strings: a }) {
688
694
  })
689
695
  })
690
696
  ]
691
- }), T = i("w-full min-w-0 text-left p-surface border border-border rounded-radius bg-card transition-none", m ? `cursor-pointer focus-visible:outline-none ${c.frame}` : "");
692
- return m ? /* @__PURE__ */ C("button", {
697
+ }), E = i("box-border w-full min-w-0 text-left p-surface border border-border rounded-radius bg-card text-card-foreground transition-none", h ? `cursor-pointer focus-visible:outline-none ${c.frame}` : "");
698
+ return h ? /* @__PURE__ */ w("button", {
693
699
  type: "button",
694
- onClick: h,
695
- className: i("event-calendar-event-card--component", `box-border m-0 flex h-auto flex-col items-stretch justify-start whitespace-normal font-sans text-foreground shadow-none ${d.rowHover}`, T),
696
- children: S
697
- }) : /* @__PURE__ */ C("div", {
698
- className: i("event-calendar-event-card--component", T),
699
- children: S
700
+ onClick: g,
701
+ className: i("event-calendar-event-card--component", `m-0 flex h-auto flex-col items-stretch justify-start whitespace-normal font-sans shadow-none ${f.rowHover}`, E),
702
+ children: C
703
+ }) : /* @__PURE__ */ w("div", {
704
+ className: i("event-calendar-event-card--component", E),
705
+ children: C
700
706
  });
701
707
  }
702
- se.displayName = "EventCalendarEventCard";
708
+ ce.displayName = "EventCalendarEventCard";
703
709
  //#endregion
704
- export { $ as EventCalendar, q as EventCalendarDayCell, U as EventCalendarEventBadge, se as EventCalendarEventCard, J as EventCalendarHeader, Q as EventCalendarLegend, B as calendarTokenDot, oe as defaultEventCalendarEventCardStrings, H as defaultEventCalendarStrings, X as getCalendarColorClasses, Z as getCalendarDotClass, K as getCategoryById, G as getEventsForDay, V as resolveCategoryColorToken, ie as useEventCalendar, W as useEventCalendarData };
710
+ export { oe as EventCalendar, J as EventCalendarDayCell, G as EventCalendarEventBadge, ce as EventCalendarEventCard, X as EventCalendarHeader, re as EventCalendarLegend, H as calendarTokenDot, se as defaultEventCalendarEventCardStrings, W as defaultEventCalendarStrings, Q as getCalendarColorClasses, $ as getCalendarDotClass, q as getCategoryById, ne as getEventsForDay, U as resolveCategoryColorToken, ie as useEventCalendar, K as useEventCalendarData };
705
711
 
706
712
  //# sourceMappingURL=event-calendar.js.map