themelia-react-ui 2.0.3 → 2.0.5

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 (648) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/README.md +168 -36
  3. package/dist/{accordion-Cjb6sx0G.js → accordion-B9MHG0cT.js} +11 -11
  4. package/dist/accordion-B9MHG0cT.js.map +1 -0
  5. package/dist/action-menu-Dr8K-ghE.js +284 -0
  6. package/dist/action-menu-Dr8K-ghE.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-P-aVJisu.js} +42 -36
  8. package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
  9. package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-C58tQcBy.js} +387 -350
  10. package/dist/ai-artifact-C58tQcBy.js.map +1 -0
  11. package/dist/app-shell-B_IuNWOo.js +321 -0
  12. package/dist/app-shell-B_IuNWOo.js.map +1 -0
  13. package/dist/{attachment-BxDfL2mw.js → attachment-Dg_69lPS.js} +9 -9
  14. package/dist/{attachment-BxDfL2mw.js.map → attachment-Dg_69lPS.js.map} +1 -1
  15. package/dist/{auth-BGua8ouh.js → auth-DTkkshS8.js} +44 -47
  16. package/dist/auth-DTkkshS8.js.map +1 -0
  17. package/dist/{avatar-DAPlDvhJ.js → avatar-CeZaFmNH.js} +8 -8
  18. package/dist/avatar-CeZaFmNH.js.map +1 -0
  19. package/dist/{badge-HpFqoqSY.js → badge-xIiV_E7f.js} +5 -5
  20. package/dist/{badge-HpFqoqSY.js.map → badge-xIiV_E7f.js.map} +1 -1
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +1 -1
  27. package/dist/base/buttons.js +1 -1
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +3 -3
  30. package/dist/base/cascader.js +2 -372
  31. package/dist/base/chart.js +1 -1
  32. package/dist/base/choice-inputs.js +2 -2
  33. package/dist/base/code-block.js +1 -1
  34. package/dist/base/combobox.js +2 -2
  35. package/dist/base/command.js +1 -1
  36. package/dist/base/copyable.js +1 -1
  37. package/dist/base/date-pickers.js +2 -2
  38. package/dist/base/display.js +6 -6
  39. package/dist/base/feedback.js +3 -3
  40. package/dist/base/forms-numeric.js +1 -1
  41. package/dist/base/forms.js +3 -3
  42. package/dist/base/inline-edit.js +10 -10
  43. package/dist/base/item.js +1 -1
  44. package/dist/base/media-gallery.js +1 -1
  45. package/dist/base/metadata-list.js +1 -1
  46. package/dist/base/navigation.js +7 -7
  47. package/dist/base/popover-menu.js +1 -1
  48. package/dist/base/popover.js +1 -1
  49. package/dist/base/qr-code.js +1 -1
  50. package/dist/base/repeaters.js +12 -12
  51. package/dist/base/repeaters.js.map +1 -1
  52. package/dist/base/sheet.js +1 -1
  53. package/dist/base/sidebar.js +2 -2
  54. package/dist/base/signature-pad.js +7 -7
  55. package/dist/base/signature-pad.js.map +1 -1
  56. package/dist/base/skeleton.js +1 -1
  57. package/dist/base/spinner.js +4 -4
  58. package/dist/base/structure.js +1 -1
  59. package/dist/base/table.js +1 -1
  60. package/dist/base/text-inputs.js +2 -2
  61. package/dist/base/toaster.js +36 -36
  62. package/dist/base/toaster.js.map +1 -1
  63. package/dist/base/tree.js +1 -1
  64. package/dist/base/upload-queue.js +1 -1
  65. package/dist/base/upload.js +3 -3
  66. package/dist/base/value-inputs.js +1 -1
  67. package/dist/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-Cb8cuvyy.js} +6 -6
  68. package/dist/batch-action-bar-Cb8cuvyy.js.map +1 -0
  69. package/dist/blocks/admin.js +23 -23
  70. package/dist/blocks/admin.js.map +1 -1
  71. package/dist/blocks/ai.js +230 -216
  72. package/dist/blocks/ai.js.map +1 -1
  73. package/dist/blocks/analytics/usage-card.js +1 -1
  74. package/dist/blocks/analytics.js +326 -307
  75. package/dist/blocks/analytics.js.map +1 -1
  76. package/dist/blocks/collaboration.js +1 -1
  77. package/dist/blocks/commerce/receipt.js +1 -1
  78. package/dist/blocks/commerce.js +1247 -1169
  79. package/dist/blocks/commerce.js.map +1 -1
  80. package/dist/blocks/data-display.js +2 -2
  81. package/dist/blocks/onboarding.js +6 -6
  82. package/dist/blocks/onboarding.js.map +1 -1
  83. package/dist/blocks/planning.js +11 -11
  84. package/dist/blocks/timelines.js +1 -1
  85. package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-J-K2kl4c.js} +6 -6
  86. package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-J-K2kl4c.js.map} +1 -1
  87. package/dist/{button-DVzspB_G.js → button-S2Cubiiz.js} +3 -3
  88. package/dist/button-S2Cubiiz.js.map +1 -0
  89. package/dist/{buttons-DPZekJFu.js → buttons-BedGfygC.js} +16 -16
  90. package/dist/buttons-BedGfygC.js.map +1 -0
  91. package/dist/cards-rNX1M4Xn.js +69 -0
  92. package/dist/cards-rNX1M4Xn.js.map +1 -0
  93. package/dist/cascader-B1MiqkBq.js +439 -0
  94. package/dist/cascader-B1MiqkBq.js.map +1 -0
  95. package/dist/chart-Darg_0Kv.js +162 -0
  96. package/dist/chart-Darg_0Kv.js.map +1 -0
  97. package/dist/{checkbox-AWIhNhmo.js → checkbox-fflqmODR.js} +9 -5
  98. package/dist/checkbox-fflqmODR.js.map +1 -0
  99. package/dist/choice-inputs-zUgBZfE4.js +777 -0
  100. package/dist/choice-inputs-zUgBZfE4.js.map +1 -0
  101. package/dist/{code-block-DeneBJR_.js → code-block-BzmM9Eig.js} +9 -9
  102. package/dist/code-block-BzmM9Eig.js.map +1 -0
  103. package/dist/{collapsible-C-_l4hpy.js → collapsible-BkAI_XD4.js} +5 -5
  104. package/dist/{collapsible-C-_l4hpy.js.map → collapsible-BkAI_XD4.js.map} +1 -1
  105. package/dist/{collection-content-By56pLog.js → collection-content-gDh1v6O4.js} +3 -3
  106. package/dist/{collection-content-By56pLog.js.map → collection-content-gDh1v6O4.js.map} +1 -1
  107. package/dist/combobox-BEx0vJgF.js +362 -0
  108. package/dist/combobox-BEx0vJgF.js.map +1 -0
  109. package/dist/{combobox-Dxo2fAYQ.js → combobox-BwzoXFSG.js} +254 -247
  110. package/dist/combobox-BwzoXFSG.js.map +1 -0
  111. package/dist/{command-C25VMRII.js → command-CrlPIL6m.js} +12 -12
  112. package/dist/command-CrlPIL6m.js.map +1 -0
  113. package/dist/{comments-DD0DUPwJ.js → comments-Dmpp0YIc.js} +380 -379
  114. package/dist/comments-Dmpp0YIc.js.map +1 -0
  115. package/dist/components/base/action-menu/action-menu.d.ts +9 -1
  116. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  117. package/dist/components/base/cards/card.recipes.d.ts +16 -7
  118. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
  119. package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
  120. package/dist/components/base/cards/smart-card.types.d.ts +11 -7
  121. package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
  122. package/dist/components/base/chart/chart.d.ts +6 -1
  123. package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
  124. package/dist/components/base/choice-inputs/choice-types.d.ts +1 -1
  125. package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
  126. package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
  127. package/dist/components/base/combobox/index.d.ts +4 -2
  128. package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
  129. package/dist/components/base/feedback/alert.d.ts +1 -1
  130. package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
  131. package/dist/components/base/forms/form-field.d.ts +5 -3
  132. package/dist/components/base/forms/form-sizing.d.ts +7 -7
  133. package/dist/components/base/forms/index.d.ts +1 -0
  134. package/dist/components/base/forms/server-errors.d.ts +16 -0
  135. package/dist/components/base/forms/workflow.d.ts +11 -2
  136. package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -0
  137. package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
  138. package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
  139. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
  140. package/dist/components/base/navigation/page-header/page-header.d.ts +13 -4
  141. package/dist/components/base/popover/popover.d.ts +3 -3
  142. package/dist/components/base/popover/popover.recipes.d.ts +10 -6
  143. package/dist/components/base/sheet/sheet.d.ts +2 -0
  144. package/dist/components/base/sidebar/index.d.ts +1 -1
  145. package/dist/components/base/sidebar/sidebar.d.ts +27 -5
  146. package/dist/components/base/structure/composition.recipes.d.ts +17 -0
  147. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
  148. package/dist/components/base/text-inputs/input.d.ts +4 -2
  149. package/dist/components/base/text-inputs/textarea.d.ts +4 -2
  150. package/dist/components/base/toaster/index.d.ts +1 -0
  151. package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
  152. package/dist/components/base/value-inputs/slider.d.ts +5 -1
  153. package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
  154. package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
  155. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +3 -1
  156. package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
  157. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
  158. package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
  159. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
  160. package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
  161. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
  162. package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
  163. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
  164. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
  165. package/dist/components/blocks/commerce/index.d.ts +7 -6
  166. package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
  167. package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
  168. package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
  169. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  170. package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
  171. package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
  172. package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
  173. package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
  174. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
  175. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
  176. package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
  177. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
  178. package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
  179. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  180. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
  181. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  182. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
  183. package/dist/components/features/activities/activities.types.d.ts +8 -2
  184. package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
  185. package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
  186. package/dist/components/features/event-calendar/colors.d.ts +2 -2
  187. package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
  188. package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
  189. package/dist/components/features/filters/filters.strings.d.ts +4 -0
  190. package/dist/components/features/filters/filters.types.d.ts +3 -0
  191. package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
  192. package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
  193. package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
  194. package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
  195. package/dist/components/features/filters/utils/filter-utils.d.ts +21 -3
  196. package/dist/components/features/global-search/global-search.types.d.ts +2 -0
  197. package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
  198. package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
  199. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  200. package/dist/components/features/media-library/media-library.types.d.ts +14 -4
  201. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  202. package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
  203. package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
  204. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  205. package/dist/components/features/products/products.strings.d.ts +9 -1
  206. package/dist/components/features/products/products.types.d.ts +43 -6
  207. package/dist/components/features/resource/resource.d.ts +5 -1
  208. package/dist/components/features/resource/resource.types.d.ts +12 -1
  209. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
  210. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
  211. package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
  212. package/dist/components/features/table/table.types.d.ts +1 -1
  213. package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
  214. package/dist/components/layout/app-shell/index.d.ts +1 -1
  215. package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
  216. package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
  217. package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
  218. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
  219. package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
  220. package/dist/components/layout/header/header.recipes.d.ts +6 -0
  221. package/dist/components/layout/header/header.types.d.ts +6 -6
  222. package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
  223. package/dist/components/layout/page/index.d.ts +2 -1
  224. package/dist/components/layout/page/page.d.ts +1 -0
  225. package/dist/components/layout/page/page.strings.d.ts +11 -0
  226. package/dist/components/layout/page/page.types.d.ts +69 -17
  227. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  228. package/dist/components/layout/settings/settings.d.ts +9 -2
  229. package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
  230. package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
  231. package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
  232. package/dist/components/layout/sidebar/index.d.ts +2 -1
  233. package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +36 -0
  234. package/dist/components/layout/sidebar/sidebar.context.d.ts +5 -7
  235. package/dist/components/layout/sidebar/sidebar.types.d.ts +48 -10
  236. package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
  237. package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
  238. package/dist/components/typography/text.styles.d.ts +26 -1
  239. package/dist/components/ui/alert-dialog.d.ts +2 -2
  240. package/dist/components/ui/combobox.d.ts +1 -1
  241. package/dist/components/ui/dialog.d.ts +2 -2
  242. package/dist/components/ui/overlay-layer.d.ts +18 -0
  243. package/dist/components/ui/sheet.d.ts +5 -1
  244. package/dist/components/ui/sidebar-state.d.ts +82 -0
  245. package/dist/components/ui/sidebar.d.ts +5 -17
  246. package/dist/composition.recipes-COdiFhxB.js +19 -0
  247. package/dist/composition.recipes-COdiFhxB.js.map +1 -0
  248. package/dist/containers-CIxwbZt5.js +112 -0
  249. package/dist/containers-CIxwbZt5.js.map +1 -0
  250. package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
  251. package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
  252. package/dist/{copyable-ClBuk_UK.js → copyable-DIznBqiT.js} +7 -7
  253. package/dist/{copyable-ClBuk_UK.js.map → copyable-DIznBqiT.js.map} +1 -1
  254. package/dist/{data-display-DT_khPl_.js → data-display-BdgCAw8T.js} +277 -285
  255. package/dist/data-display-BdgCAw8T.js.map +1 -0
  256. package/dist/{date-DCrsDTZc.js → date-Cq8ioE4o.js} +5 -5
  257. package/dist/{date-DCrsDTZc.js.map → date-Cq8ioE4o.js.map} +1 -1
  258. package/dist/{date-picker-B2K3ucWn.js → date-picker-RlIzKom_.js} +501 -480
  259. package/dist/date-picker-RlIzKom_.js.map +1 -0
  260. package/dist/date-pickers-DY-CpXS1.js +179 -0
  261. package/dist/date-pickers-DY-CpXS1.js.map +1 -0
  262. package/dist/{display-hAc1HjpI.js → display-KsZLw9Ov.js} +9 -9
  263. package/dist/{display-hAc1HjpI.js.map → display-KsZLw9Ov.js.map} +1 -1
  264. package/dist/dropdown-menu-CLs8Lihj.js +194 -0
  265. package/dist/dropdown-menu-CLs8Lihj.js.map +1 -0
  266. package/dist/features/activities.js +302 -253
  267. package/dist/features/activities.js.map +1 -1
  268. package/dist/features/ai-chat.js +15 -14
  269. package/dist/features/ai-chat.js.map +1 -1
  270. package/dist/features/appointment-calendar.js +222 -220
  271. package/dist/features/appointment-calendar.js.map +1 -1
  272. package/dist/features/async-preview.js +11 -10
  273. package/dist/features/async-preview.js.map +1 -1
  274. package/dist/features/combobox.js +1 -1
  275. package/dist/features/comments.js +1 -1
  276. package/dist/features/data-view.js +13 -13
  277. package/dist/features/data-view.js.map +1 -1
  278. package/dist/features/email-composer.js +249 -249
  279. package/dist/features/email-composer.js.map +1 -1
  280. package/dist/features/event-calendar.js +264 -269
  281. package/dist/features/event-calendar.js.map +1 -1
  282. package/dist/features/filters.js +1 -1
  283. package/dist/features/global-search.js +167 -138
  284. package/dist/features/global-search.js.map +1 -1
  285. package/dist/features/kanban.js +6 -7
  286. package/dist/features/kanban.js.map +1 -1
  287. package/dist/features/map.js +269 -260
  288. package/dist/features/map.js.map +1 -1
  289. package/dist/features/media-library.js +827 -777
  290. package/dist/features/media-library.js.map +1 -1
  291. package/dist/features/mentions.js +1 -1
  292. package/dist/features/overlays.js +1 -1
  293. package/dist/features/products.js +1246 -1169
  294. package/dist/features/products.js.map +1 -1
  295. package/dist/features/questionnaire.js +13 -13
  296. package/dist/features/questionnaire.js.map +1 -1
  297. package/dist/features/resource-assignment.js +8 -8
  298. package/dist/features/resource.js +127 -123
  299. package/dist/features/resource.js.map +1 -1
  300. package/dist/features/rich-text-editor.js +2 -2
  301. package/dist/features/schema-form.js +254 -253
  302. package/dist/features/schema-form.js.map +1 -1
  303. package/dist/features/suggestions.js +3 -3
  304. package/dist/features/sync.js +3 -3
  305. package/dist/features/table.js +1 -1
  306. package/dist/features/theme-tweaker.js +95 -96
  307. package/dist/features/theme-tweaker.js.map +1 -1
  308. package/dist/{feedback-BYIhtitP.js → feedback-Dm4izqFn.js} +81 -80
  309. package/dist/feedback-Dm4izqFn.js.map +1 -0
  310. package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DWcNcOjh.js} +4 -4
  311. package/dist/field-affordance-recipes-DWcNcOjh.js.map +1 -0
  312. package/dist/{filters-DJVAveHA.js → filters-DzgSJpMK.js} +693 -645
  313. package/dist/filters-DzgSJpMK.js.map +1 -0
  314. package/dist/{form-field-CwH9y77i.js → form-field-BriWAXyg.js} +14 -8
  315. package/dist/form-field-BriWAXyg.js.map +1 -0
  316. package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-Bs2qFUeE.js} +4 -4
  317. package/dist/form-sizing-Bs2qFUeE.js.map +1 -0
  318. package/dist/forms-C0RGnJTe.js +216 -0
  319. package/dist/forms-C0RGnJTe.js.map +1 -0
  320. package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-DIhghX1Q.js} +295 -291
  321. package/dist/forms-numeric-DIhghX1Q.js.map +1 -0
  322. package/dist/{header-BSfIEWbI.js → header-DMMxG__r.js} +67 -63
  323. package/dist/header-DMMxG__r.js.map +1 -0
  324. package/dist/header.recipes-BigdJjw1.js +6 -0
  325. package/dist/header.recipes-BigdJjw1.js.map +1 -0
  326. package/dist/hooks/useFormErrors.d.ts +1 -1
  327. package/dist/{hooks-ClH9thn4.js → hooks-DB6CJ4MR.js} +26 -14
  328. package/dist/hooks-DB6CJ4MR.js.map +1 -0
  329. package/dist/{icon-badge-DYKIwvOV.js → icon-badge-DZF-YjQp.js} +4 -4
  330. package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-DZF-YjQp.js.map} +1 -1
  331. package/dist/index.js +4 -5
  332. package/dist/input-CvyDQlY7.js +289 -0
  333. package/dist/input-CvyDQlY7.js.map +1 -0
  334. package/dist/input-DMBwAZmr.js +21 -0
  335. package/dist/input-DMBwAZmr.js.map +1 -0
  336. package/dist/item-DjCcM18E.js +277 -0
  337. package/dist/item-DjCcM18E.js.map +1 -0
  338. package/dist/layout/app-shell.js +1 -1
  339. package/dist/layout/auth.js +1 -1
  340. package/dist/layout/containers.js +1 -1
  341. package/dist/layout/header.js +1 -1
  342. package/dist/layout/hooks.js +1 -1
  343. package/dist/layout/navigation.js +1 -1
  344. package/dist/layout/page.js +2 -2
  345. package/dist/layout/settings.js +1 -1
  346. package/dist/layout/sidebar.js +3 -3
  347. package/dist/layout/workspace.js +1 -1
  348. package/dist/layout.js +11 -11
  349. package/dist/lib/affordance-geometry.generated.d.ts +41 -35
  350. package/dist/lib/control-group-recipes.d.ts +5 -5
  351. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  352. package/dist/lib/motion-recipes.d.ts +3 -0
  353. package/dist/lib/navigation-row-recipes.d.ts +7 -7
  354. package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
  355. package/dist/lib/portal-recipes.d.ts +3 -0
  356. package/dist/lib/token-merge.generated.d.ts +13 -10
  357. package/dist/lib/ui-provider/types.d.ts +1 -1
  358. package/dist/lib/utils.js +1 -1
  359. package/dist/map-demo-tile.svg +1 -1
  360. package/dist/{media-gallery-3zIVLMWH.js → media-gallery-C-vChPmE.js} +6 -6
  361. package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-C-vChPmE.js.map} +1 -1
  362. package/dist/{mentions-CGlEJ15c.js → mentions-0_4nWuI-.js} +10 -10
  363. package/dist/{mentions-CGlEJ15c.js.map → mentions-0_4nWuI-.js.map} +1 -1
  364. package/dist/{message-DZ_ruyUV.js → message-g8p7eVtN.js} +7 -7
  365. package/dist/message-g8p7eVtN.js.map +1 -0
  366. package/dist/metadata-list-C3MkU-Om.js +443 -0
  367. package/dist/metadata-list-C3MkU-Om.js.map +1 -0
  368. package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
  369. package/dist/motion-recipes-DitYv6P2.js.map +1 -0
  370. package/dist/navigation-C90-oQFq.js +255 -0
  371. package/dist/navigation-C90-oQFq.js.map +1 -0
  372. package/dist/{navigation-BzhHI3lo.js → navigation-DaRjthVk.js} +101 -82
  373. package/dist/navigation-DaRjthVk.js.map +1 -0
  374. package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
  375. package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
  376. package/dist/{number-DbV1Dija.js → number-CRU3kGuk.js} +5 -5
  377. package/dist/{number-DbV1Dija.js.map → number-CRU3kGuk.js.map} +1 -1
  378. package/dist/overflow-tab-bar-IVFVQFV6.js +172 -0
  379. package/dist/overflow-tab-bar-IVFVQFV6.js.map +1 -0
  380. package/dist/overlays-BSgCtM2v.js +1013 -0
  381. package/dist/overlays-BSgCtM2v.js.map +1 -0
  382. package/dist/page-DUUKDAjo.js +331 -0
  383. package/dist/page-DUUKDAjo.js.map +1 -0
  384. package/dist/page-header-commands-7P3sfE9u.js +193 -0
  385. package/dist/page-header-commands-7P3sfE9u.js.map +1 -0
  386. package/dist/{pagination-BL25hu2s.js → pagination-CgCjElfu.js} +7 -7
  387. package/dist/{pagination-BL25hu2s.js.map → pagination-CgCjElfu.js.map} +1 -1
  388. package/dist/popover-B85RenIl.js +201 -0
  389. package/dist/popover-B85RenIl.js.map +1 -0
  390. package/dist/{popover-menu-Cn9rUkdc.js → popover-menu-DlnQ2zlR.js} +7 -7
  391. package/dist/{popover-menu-Cn9rUkdc.js.map → popover-menu-DlnQ2zlR.js.map} +1 -1
  392. package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DdiEp0rd.js} +18 -11
  393. package/dist/popover.recipes-DdiEp0rd.js.map +1 -0
  394. package/dist/portal-recipes-BpsV_iRw.js +9 -0
  395. package/dist/portal-recipes-BpsV_iRw.js.map +1 -0
  396. package/dist/{primitives-BFK08r9M.js → primitives-ByWgGUgt.js} +6 -6
  397. package/dist/{primitives-BFK08r9M.js.map → primitives-ByWgGUgt.js.map} +1 -1
  398. package/dist/primitives.js +4 -4
  399. package/dist/{progress-B1VnCT0K.js → progress-BJhQP9WX.js} +9 -9
  400. package/dist/{progress-B1VnCT0K.js.map → progress-BJhQP9WX.js.map} +1 -1
  401. package/dist/{receipt-BVSOH3Xo.js → receipt-tOc7B3hw.js} +7 -7
  402. package/dist/receipt-tOc7B3hw.js.map +1 -0
  403. package/dist/{rich-text-GOUyKQ-s.js → rich-text-Dth5E882.js} +4 -4
  404. package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-Dth5E882.js.map} +1 -1
  405. package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-C1fOjBTd.js} +429 -430
  406. package/dist/rich-text-editor-C1fOjBTd.js.map +1 -0
  407. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-laT3tpBT.js} +33 -29
  408. package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +1 -0
  409. package/dist/{scroll-area-DcI-M1UT.js → scroll-area-B0dB2cBi.js} +2 -2
  410. package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-B0dB2cBi.js.map} +1 -1
  411. package/dist/{separator-Bom7NsGO.js → separator-Bb17I4pu.js} +2 -2
  412. package/dist/{separator-Bom7NsGO.js.map → separator-Bb17I4pu.js.map} +1 -1
  413. package/dist/{separator-BDV-Y648.js → separator-Ct_WSWTJ.js} +3 -3
  414. package/dist/{separator-BDV-Y648.js.map → separator-Ct_WSWTJ.js.map} +1 -1
  415. package/dist/services/actions.js +1 -1
  416. package/dist/settings-Bar5wiSo.js +167 -0
  417. package/dist/settings-Bar5wiSo.js.map +1 -0
  418. package/dist/sheet-BGPERY55.js +250 -0
  419. package/dist/sheet-BGPERY55.js.map +1 -0
  420. package/dist/sidebar-D-JYMMbY.js +686 -0
  421. package/dist/sidebar-D-JYMMbY.js.map +1 -0
  422. package/dist/sidebar-f9gRWXIR.js +1001 -0
  423. package/dist/sidebar-f9gRWXIR.js.map +1 -0
  424. package/dist/skeleton-BapcJd9C.js +265 -0
  425. package/dist/skeleton-BapcJd9C.js.map +1 -0
  426. package/dist/smart-card-CW0hjetE.js +617 -0
  427. package/dist/smart-card-CW0hjetE.js.map +1 -0
  428. package/dist/{structure-BmisBK-3.js → structure-DuxKl954.js} +3 -3
  429. package/dist/{structure-BmisBK-3.js.map → structure-DuxKl954.js.map} +1 -1
  430. package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
  431. package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
  432. package/dist/style.css +1 -1
  433. package/dist/{table-DsfzoUia.js → table-B4TE7iOV.js} +3 -3
  434. package/dist/{table-DsfzoUia.js.map → table-B4TE7iOV.js.map} +1 -1
  435. package/dist/{table-BweFy_P9.js → table-CFOWY9pQ.js} +394 -388
  436. package/dist/table-CFOWY9pQ.js.map +1 -0
  437. package/dist/{tabs-CDocW5D1.js → tabs-e7ko9S2o.js} +11 -11
  438. package/dist/tabs-e7ko9S2o.js.map +1 -0
  439. package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-B1culiSK.js} +107 -104
  440. package/dist/text-inputs-B1culiSK.js.map +1 -0
  441. package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
  442. package/dist/text.styles-B64My8RZ.js.map +1 -0
  443. package/dist/theme.css +192 -149
  444. package/dist/{timelines-CwM_9IhD.js → timelines-D3Sl9ueq.js} +13 -12
  445. package/dist/timelines-D3Sl9ueq.js.map +1 -0
  446. package/dist/tooltip-8wz5S_Zr.js +113 -0
  447. package/dist/tooltip-8wz5S_Zr.js.map +1 -0
  448. package/dist/{tree-WnKQzwbq.js → tree-CzUJHnFs.js} +9 -9
  449. package/dist/{tree-WnKQzwbq.js.map → tree-CzUJHnFs.js.map} +1 -1
  450. package/dist/typography/rich-text.js +1 -1
  451. package/dist/typography-BQnine1k.js +117 -0
  452. package/dist/typography-BQnine1k.js.map +1 -0
  453. package/dist/typography.js +1 -1
  454. package/dist/ui-provider-C-74NVLc.js +178 -0
  455. package/dist/ui-provider-C-74NVLc.js.map +1 -0
  456. package/dist/ui-provider.js +2 -3
  457. package/dist/{upload-CXyxmQBP.js → upload-BOW6U2tI.js} +25 -24
  458. package/dist/upload-BOW6U2tI.js.map +1 -0
  459. package/dist/{upload-queue-Boscubn9.js → upload-queue-qUXn1ykN.js} +16 -14
  460. package/dist/upload-queue-qUXn1ykN.js.map +1 -0
  461. package/dist/{usage-card-BhO5eqkX.js → usage-card-BeSLY0i0.js} +145 -137
  462. package/dist/usage-card-BeSLY0i0.js.map +1 -0
  463. package/dist/{utils-BRhFDwuU.js → utils-B6kKb8jB.js} +303 -144
  464. package/dist/utils-B6kKb8jB.js.map +1 -0
  465. package/dist/value-inputs-skdVB2zh.js +980 -0
  466. package/dist/value-inputs-skdVB2zh.js.map +1 -0
  467. package/dist/{value-typography-BP8OG6h5.js → value-typography-uAmWUAL1.js} +2 -2
  468. package/dist/{value-typography-BP8OG6h5.js.map → value-typography-uAmWUAL1.js.map} +1 -1
  469. package/dist/workspace-DHeHv0qw.js +411 -0
  470. package/dist/workspace-DHeHv0qw.js.map +1 -0
  471. package/docs/consumer-skill/SKILL.md +15 -129
  472. package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
  473. package/docs/consumer-skill/examples/app-layout.tsx +74 -13
  474. package/docs/consumer-skill/examples/authentication.tsx +77 -0
  475. package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
  476. package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
  477. package/docs/consumer-skill/examples/detail.tsx +5 -4
  478. package/docs/consumer-skill/examples/edit.tsx +30 -38
  479. package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
  480. package/docs/consumer-skill/examples/index-table.tsx +4 -4
  481. package/docs/consumer-skill/examples/manifest.json +88 -1
  482. package/docs/consumer-skill/examples/product-media.tsx +41 -0
  483. package/docs/consumer-skill/examples/product-parts.tsx +81 -0
  484. package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
  485. package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
  486. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +105 -0
  487. package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
  488. package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
  489. package/docs/consumer-skill/references/agents-md.md +23 -11
  490. package/docs/consumer-skill/references/analytics.md +18 -1
  491. package/docs/consumer-skill/references/authentication.md +42 -0
  492. package/docs/consumer-skill/references/commerce-composition.md +97 -0
  493. package/docs/consumer-skill/references/component-contracts.json +325201 -0
  494. package/docs/consumer-skill/references/composition-mapping.md +106 -0
  495. package/docs/consumer-skill/references/composition.md +198 -46
  496. package/docs/consumer-skill/references/critique-rubric.md +98 -0
  497. package/docs/consumer-skill/references/custom-composition.md +261 -0
  498. package/docs/consumer-skill/references/data-reading.md +79 -0
  499. package/docs/consumer-skill/references/design-contract.md +43 -9
  500. package/docs/consumer-skill/references/discovery.md +109 -8
  501. package/docs/consumer-skill/references/domain-structures.md +124 -0
  502. package/docs/consumer-skill/references/installation.md +51 -36
  503. package/docs/consumer-skill/references/integration.md +41 -2
  504. package/docs/consumer-skill/references/product-composition.md +94 -0
  505. package/docs/consumer-skill/references/public-api.json +4390 -475
  506. package/docs/consumer-skill/references/review.md +47 -5
  507. package/docs/consumer-skill/references/rhf-workflows.md +93 -0
  508. package/docs/consumer-skill/references/screen-archetypes.md +34 -0
  509. package/docs/consumer-skill/references/screen-decisions.md +126 -0
  510. package/docs/consumer-skill/references/theming.md +25 -27
  511. package/docs/consumer-skill/references/tokens.json +20 -11
  512. package/docs/consumer-skill/references/view-craft.md +153 -0
  513. package/docs/consumer-skill/references/view-spec.md +73 -0
  514. package/docs/consumer-skill/references/workflows.md +9 -2
  515. package/docs/consumer-skill/scripts/composition-policy.mjs +39 -3
  516. package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
  517. package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
  518. package/docs/consumer-skill/scripts/composition.mjs +254 -0
  519. package/docs/consumer-skill/scripts/discovery.mjs +96 -10
  520. package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
  521. package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
  522. package/docs/consumer-skill/scripts/inspection.mjs +193 -0
  523. package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
  524. package/docs/consumer-skill/scripts/setup-skills.mjs +111 -0
  525. package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
  526. package/docs/consumer-skills/themelia-components/SKILL.md +31 -0
  527. package/docs/consumer-skills/themelia-composition/SKILL.md +34 -0
  528. package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
  529. package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
  530. package/docs/consumer-skills/themelia-foundation/SKILL.md +15 -0
  531. package/docs/consumer-skills/themelia-tokenization/SKILL.md +42 -0
  532. package/package.json +4 -2
  533. package/templates/README.md +39 -0
  534. package/templates/admin-shell-template.tsx +382 -0
  535. package/templates/analytics-operations-template.tsx +376 -0
  536. package/templates/customers-template.tsx +509 -0
  537. package/templates/index.ts +29 -0
  538. package/templates/orders-template.tsx +1102 -0
  539. package/templates/products-template.tsx +834 -0
  540. package/templates/user-permissions-template.tsx +450 -0
  541. package/dist/accordion-Cjb6sx0G.js.map +0 -1
  542. package/dist/action-menu-CllU52Mm.js +0 -280
  543. package/dist/action-menu-CllU52Mm.js.map +0 -1
  544. package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
  545. package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
  546. package/dist/app-shell-C4FhvCqF.js +0 -236
  547. package/dist/app-shell-C4FhvCqF.js.map +0 -1
  548. package/dist/auth-BGua8ouh.js.map +0 -1
  549. package/dist/avatar-DAPlDvhJ.js.map +0 -1
  550. package/dist/base/cascader.js.map +0 -1
  551. package/dist/batch-action-bar-DnUJ21NQ.js.map +0 -1
  552. package/dist/button-DVzspB_G.js.map +0 -1
  553. package/dist/buttons-DPZekJFu.js.map +0 -1
  554. package/dist/cards-BaBZR-AU.js +0 -68
  555. package/dist/cards-BaBZR-AU.js.map +0 -1
  556. package/dist/chart-ZOYyK2xG.js +0 -155
  557. package/dist/chart-ZOYyK2xG.js.map +0 -1
  558. package/dist/checkbox-AWIhNhmo.js.map +0 -1
  559. package/dist/choice-inputs-CNHvARCJ.js +0 -770
  560. package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
  561. package/dist/code-block-DeneBJR_.js.map +0 -1
  562. package/dist/combobox-DaHESuiL.js +0 -355
  563. package/dist/combobox-DaHESuiL.js.map +0 -1
  564. package/dist/combobox-Dxo2fAYQ.js.map +0 -1
  565. package/dist/command-C25VMRII.js.map +0 -1
  566. package/dist/comments-DD0DUPwJ.js.map +0 -1
  567. package/dist/containers-Mu1LMGV1.js +0 -103
  568. package/dist/containers-Mu1LMGV1.js.map +0 -1
  569. package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
  570. package/dist/data-display-DT_khPl_.js.map +0 -1
  571. package/dist/date-picker-B2K3ucWn.js.map +0 -1
  572. package/dist/date-pickers-Ds8gLaoP.js +0 -175
  573. package/dist/date-pickers-Ds8gLaoP.js.map +0 -1
  574. package/dist/dropdown-menu-Cl4X7L5S.js +0 -193
  575. package/dist/dropdown-menu-Cl4X7L5S.js.map +0 -1
  576. package/dist/feedback-BYIhtitP.js.map +0 -1
  577. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +0 -1
  578. package/dist/filters-DJVAveHA.js.map +0 -1
  579. package/dist/form-field-CwH9y77i.js.map +0 -1
  580. package/dist/form-sizing-BdP_Mf5p.js.map +0 -1
  581. package/dist/forms-B9G_xwzi.js +0 -194
  582. package/dist/forms-B9G_xwzi.js.map +0 -1
  583. package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
  584. package/dist/header-BSfIEWbI.js.map +0 -1
  585. package/dist/hooks-ClH9thn4.js.map +0 -1
  586. package/dist/input-CZw8iU99.js +0 -21
  587. package/dist/input-CZw8iU99.js.map +0 -1
  588. package/dist/input-DQdEd0YD.js +0 -263
  589. package/dist/input-DQdEd0YD.js.map +0 -1
  590. package/dist/item-K5_ghvze.js +0 -275
  591. package/dist/item-K5_ghvze.js.map +0 -1
  592. package/dist/message-DZ_ruyUV.js.map +0 -1
  593. package/dist/metadata-list-8N16ZMW_.js +0 -405
  594. package/dist/metadata-list-8N16ZMW_.js.map +0 -1
  595. package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
  596. package/dist/navigation-Bnotn4AQ.js +0 -145
  597. package/dist/navigation-Bnotn4AQ.js.map +0 -1
  598. package/dist/navigation-BzhHI3lo.js.map +0 -1
  599. package/dist/navigation-row-recipes-BFLCk_Aq.js.map +0 -1
  600. package/dist/overflow-tab-bar-CWY7Nogn.js +0 -282
  601. package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
  602. package/dist/overlays-tMkF-VAN.js +0 -1003
  603. package/dist/overlays-tMkF-VAN.js.map +0 -1
  604. package/dist/page-CL9YeH_V.js +0 -224
  605. package/dist/page-CL9YeH_V.js.map +0 -1
  606. package/dist/page-header-commands-DOb6WsfD.js +0 -126
  607. package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
  608. package/dist/popover-gnTOhbFM.js +0 -198
  609. package/dist/popover-gnTOhbFM.js.map +0 -1
  610. package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
  611. package/dist/receipt-BVSOH3Xo.js.map +0 -1
  612. package/dist/rich-text-editor-cRLC-eBK.js.map +0 -1
  613. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +0 -1
  614. package/dist/settings-ybnjVwbd.js +0 -171
  615. package/dist/settings-ybnjVwbd.js.map +0 -1
  616. package/dist/sheet-ijlsjq-n.js +0 -213
  617. package/dist/sheet-ijlsjq-n.js.map +0 -1
  618. package/dist/sidebar-Db6gkh3U.js +0 -619
  619. package/dist/sidebar-Db6gkh3U.js.map +0 -1
  620. package/dist/sidebar-DkTO4VTO.js +0 -512
  621. package/dist/sidebar-DkTO4VTO.js.map +0 -1
  622. package/dist/skeleton-Byjnt7qr.js +0 -264
  623. package/dist/skeleton-Byjnt7qr.js.map +0 -1
  624. package/dist/smart-card-DiC5aac3.js +0 -604
  625. package/dist/smart-card-DiC5aac3.js.map +0 -1
  626. package/dist/table-BweFy_P9.js.map +0 -1
  627. package/dist/tabs-CDocW5D1.js.map +0 -1
  628. package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
  629. package/dist/text.styles-g4He6UIW.js.map +0 -1
  630. package/dist/theme-scope-BJ6eE2xt.js +0 -50
  631. package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
  632. package/dist/timelines-CwM_9IhD.js.map +0 -1
  633. package/dist/tooltip-yiRJUFjp.js +0 -111
  634. package/dist/tooltip-yiRJUFjp.js.map +0 -1
  635. package/dist/typography-UTnveOEy.js +0 -117
  636. package/dist/typography-UTnveOEy.js.map +0 -1
  637. package/dist/ui-provider-C_U0Xma4.js +0 -136
  638. package/dist/ui-provider-C_U0Xma4.js.map +0 -1
  639. package/dist/upload-CXyxmQBP.js.map +0 -1
  640. package/dist/upload-queue-Boscubn9.js.map +0 -1
  641. package/dist/usage-card-BhO5eqkX.js.map +0 -1
  642. package/dist/use-mobile-vaLKwgyf.js +0 -15
  643. package/dist/use-mobile-vaLKwgyf.js.map +0 -1
  644. package/dist/utils-BRhFDwuU.js.map +0 -1
  645. package/dist/value-inputs-TaX4OjNk.js +0 -963
  646. package/dist/value-inputs-TaX4OjNk.js.map +0 -1
  647. package/dist/workspace-B-OEm3Kf.js +0 -408
  648. package/dist/workspace-B-OEm3Kf.js.map +0 -1
@@ -1,26 +1,26 @@
1
1
  "use client";
2
- import { o as e, s as t } from "./ui-provider-C_U0Xma4.js";
2
+ import { d as e, u as t } from "./ui-provider-C-74NVLc.js";
3
3
  import { useStrings as n } from "./lib/strings.js";
4
- import { t as r } from "./utils-BRhFDwuU.js";
5
- import { t as i } from "./affordance-geometry.generated-tF36bREk.js";
6
- import { n as a } from "./buttons-DPZekJFu.js";
7
- import { a as o, c as s, s as c } from "./typography-UTnveOEy.js";
4
+ import { t as r } from "./utils-B6kKb8jB.js";
5
+ import { t as i } from "./affordance-geometry.generated-P-aVJisu.js";
6
+ import { n as a } from "./buttons-BedGfygC.js";
7
+ import { a as o, c as s, s as c } from "./typography-BQnine1k.js";
8
8
  import { t as l } from "./focus-recipes-B653VaLq.js";
9
- import { n as u, t as d } from "./button-DVzspB_G.js";
10
- import { r as f, t as p } from "./structure-BmisBK-3.js";
11
- import { o as m } from "./date-DCrsDTZc.js";
12
- import { t as ee } from "./separator-BDV-Y648.js";
9
+ import { n as u, t as d } from "./button-S2Cubiiz.js";
10
+ import { r as f, t as p } from "./structure-DuxKl954.js";
11
+ import { o as m } from "./date-Cq8ioE4o.js";
12
+ import { t as ee } from "./separator-Ct_WSWTJ.js";
13
13
  import { t as h } from "./field-state-recipes-BVA2CWHo.js";
14
- import { r as g } from "./field-affordance-recipes-DZhnIL_Y.js";
15
- import { d as _, p as v, s as y, y as te } from "./form-sizing-BdP_Mf5p.js";
16
- import { t as b } from "./input-DQdEd0YD.js";
17
- import { c as ne, o as re, t as ie } from "./popover-gnTOhbFM.js";
18
- import { t as ae } from "./form-field-CwH9y77i.js";
19
- import { t as x } from "./use-mobile-vaLKwgyf.js";
20
- import * as S from "react";
21
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
22
- import { Calendar as oe, ChevronDownIcon as se, ChevronLeftIcon as E, ChevronRightIcon as D, Clock as O } from "lucide-react";
23
- import { cva as ce } from "class-variance-authority";
14
+ import { r as g } from "./field-affordance-recipes-DWcNcOjh.js";
15
+ import { d as _, p as v, s as y, y as te } from "./form-sizing-Bs2qFUeE.js";
16
+ import { t as b } from "./input-CvyDQlY7.js";
17
+ import { c as ne, o as re, t as ie } from "./popover-B85RenIl.js";
18
+ import { t as ae } from "./form-field-BriWAXyg.js";
19
+ import * as x from "react";
20
+ import { useEffect as S, useState as C } from "react";
21
+ import { Fragment as oe, jsx as w, jsxs as T } from "react/jsx-runtime";
22
+ import { Calendar as se, ChevronDownIcon as E, ChevronLeftIcon as D, ChevronRightIcon as ce, Clock as le } from "lucide-react";
23
+ import { cva as O } from "class-variance-authority";
24
24
  import { addDays as k, endOfMonth as A, endOfWeek as j, format as M, startOfMonth as N, startOfWeek as P } from "date-fns";
25
25
  import { DayPicker as F, getDefaultClassNames as I } from "react-day-picker";
26
26
  import { Toggle as L } from "@base-ui/react/toggle";
@@ -37,7 +37,7 @@ function H(e, t) {
37
37
  let n = Math.floor(86399 / t) * t, r = Math.round(e / t) * t;
38
38
  return Math.max(0, Math.min(r, n));
39
39
  }
40
- function le(e) {
40
+ function ue(e) {
41
41
  if (!e) return null;
42
42
  let t = e.split(":");
43
43
  if (t.length < 2 || t.length > 3) return null;
@@ -48,7 +48,7 @@ function le(e) {
48
48
  seconds: s
49
49
  };
50
50
  }
51
- function ue(e, t) {
51
+ function de(e, t) {
52
52
  let n = t ? `:${B(e.seconds)}` : "";
53
53
  return `${B(e.hours)}:${B(e.minutes)}${n}`;
54
54
  }
@@ -60,7 +60,7 @@ function U(e, t, n) {
60
60
  seconds: t ? u : 0
61
61
  };
62
62
  }
63
- function de(e, t, n) {
63
+ function W(e, t, n) {
64
64
  if (t === "12") {
65
65
  let t = e.hours >= 12 ? "PM" : "AM", r = e.hours % 12;
66
66
  return r === 0 && (r = 12), {
@@ -76,7 +76,7 @@ function de(e, t, n) {
76
76
  seconds: n ? B(e.seconds) : void 0
77
77
  };
78
78
  }
79
- function W(e, t, n) {
79
+ function G(e, t, n) {
80
80
  let r = (e) => {
81
81
  let t = Number.parseInt(e ?? "0", 10);
82
82
  return Number.isNaN(t) ? 0 : t;
@@ -108,19 +108,19 @@ function pe(e, t, n, r) {
108
108
  let c = o === "AM" ? r?.am ?? "AM" : r?.pm ?? "PM";
109
109
  return `${B(s)}:${i}${a} ${c}`;
110
110
  }
111
- var G = /'[^']*'/g, K = /[HKhk]|\bp\b|\bt\b|\ba\b/;
112
- function me(e) {
111
+ var me = /'[^']*'/g, he = /[HKhk]|\bp\b|\bt\b|\ba\b/;
112
+ function ge(e) {
113
113
  if (!e) return !1;
114
- let t = e.replace(G, "");
115
- return K.test(t);
114
+ let t = e.replace(me, "");
115
+ return he.test(t);
116
116
  }
117
- function he(e) {
117
+ function K(e) {
118
118
  return {
119
119
  startMonth: typeof e?.fromYear == "number" ? new Date(e.fromYear, 0) : void 0,
120
120
  endMonth: typeof e?.toYear == "number" ? new Date(e.toYear, 11) : void 0
121
121
  };
122
122
  }
123
- function ge(e, t, n, r) {
123
+ function _e(e, t, n, r) {
124
124
  let i = r ? { locale: r } : void 0;
125
125
  return {
126
126
  date: e,
@@ -128,7 +128,7 @@ function ge(e, t, n, r) {
128
128
  readable: e ? M(e, n, i) : void 0
129
129
  };
130
130
  }
131
- function _e(e, t, n, r) {
131
+ function q(e, t, n, r) {
132
132
  let i = r ? { locale: r } : void 0;
133
133
  return {
134
134
  dates: e,
@@ -151,7 +151,7 @@ function ve(e, t, n, r) {
151
151
  };
152
152
  }
153
153
  function ye(e, t) {
154
- let n = typeof t == "string" ? le(t) : t, r = new Date(e);
154
+ let n = typeof t == "string" ? ue(t) : t, r = new Date(e);
155
155
  return !Number.isFinite(r.getTime()) || !n ? /* @__PURE__ */ new Date(NaN) : (r.setHours(n.hours, n.minutes, n.seconds, 0), r);
156
156
  }
157
157
  function be(e, t) {
@@ -173,7 +173,7 @@ function Se(e, t, n, r) {
173
173
  let i = be(e.from, e.to);
174
174
  return t && i < t ? r.minimumDays(t) : n && i > n ? r.maximumDays(n) : null;
175
175
  }
176
- function q(e, t, n, r, i) {
176
+ function J(e, t, n, r, i) {
177
177
  return r && e.length === 0 ? i.datesRequired : t && e.length < t ? i.minimumDates(t) : n && e.length > 0 ? i.maximumDates(n) : null;
178
178
  }
179
179
  function Ce(e, t, n, r, i, a) {
@@ -183,7 +183,7 @@ function Ce(e, t, n, r, i, a) {
183
183
  }
184
184
  return n ?? r;
185
185
  }
186
- function J(e, t, n, r, i, a) {
186
+ function Y(e, t, n, r, i, a) {
187
187
  if (e.length > 0) {
188
188
  if (e.length === 1) {
189
189
  let n = a ? { locale: a } : void 0;
@@ -210,13 +210,13 @@ function Te(e, t) {
210
210
  function Ee(e) {
211
211
  return !e.mode || e.mode === "single";
212
212
  }
213
- function Y(e) {
213
+ function De(e) {
214
214
  return e.mode === "multiple";
215
215
  }
216
- function De(e) {
216
+ function Oe(e) {
217
217
  return e.mode === "range";
218
218
  }
219
- function Oe(e, t) {
219
+ function ke(e, t) {
220
220
  return [
221
221
  {
222
222
  label: e.today,
@@ -250,7 +250,7 @@ function Oe(e, t) {
250
250
  }
251
251
  //#endregion
252
252
  //#region src/components/ui/calendar.tsx
253
- function ke({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: a = "label", buttonVariant: o = "ghost", locale: s, formatters: c, components: l, ...d }) {
253
+ function Ae({ className: e, classNames: t, showOutsideDays: n = !0, captionLayout: a = "label", buttonVariant: o = "ghost", locale: s, formatters: c, components: l, ...d }) {
254
254
  let f = I();
255
255
  return /* @__PURE__ */ w(F, {
256
256
  showOutsideDays: n,
@@ -296,17 +296,17 @@ function ke({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
296
296
  className: r(e),
297
297
  ...n
298
298
  }),
299
- Chevron: ({ className: e, orientation: t, ...n }) => t === "left" ? /* @__PURE__ */ w(E, {
299
+ Chevron: ({ className: e, orientation: t, ...n }) => t === "left" ? /* @__PURE__ */ w(D, {
300
300
  className: r("size-icon", e),
301
301
  ...n
302
- }) : t === "right" ? /* @__PURE__ */ w(D, {
302
+ }) : t === "right" ? /* @__PURE__ */ w(ce, {
303
303
  className: r("size-icon", e),
304
304
  ...n
305
- }) : /* @__PURE__ */ w(se, {
305
+ }) : /* @__PURE__ */ w(E, {
306
306
  className: r(g.icon.md, e),
307
307
  ...n
308
308
  }),
309
- DayButton: ({ ...e }) => /* @__PURE__ */ w(Ae, {
309
+ DayButton: ({ ...e }) => /* @__PURE__ */ w(je, {
310
310
  locale: s,
311
311
  ...e
312
312
  }),
@@ -322,9 +322,9 @@ function ke({ className: e, classNames: t, showOutsideDays: n = !0, captionLayou
322
322
  ...d
323
323
  });
324
324
  }
325
- function Ae({ className: e, day: t, modifiers: n, locale: i, ...a }) {
326
- let o = I(), s = S.useRef(null);
327
- return S.useEffect(() => {
325
+ function je({ className: e, day: t, modifiers: n, locale: i, ...a }) {
326
+ let o = I(), s = x.useRef(null);
327
+ return x.useEffect(() => {
328
328
  n.focused && s.current?.focus();
329
329
  }, [n.focused]), /* @__PURE__ */ w(d, {
330
330
  ref: s,
@@ -341,7 +341,7 @@ function Ae({ className: e, day: t, modifiers: n, locale: i, ...a }) {
341
341
  }
342
342
  //#endregion
343
343
  //#region src/components/base/date-pickers/date-picker-field.tsx
344
- function je({ rootRef: e, className: t, label: n, hint: i, error: a, triggerId: c, describedById: l, children: u }) {
344
+ function Me({ rootRef: e, className: t, label: n, hint: i, error: a, triggerId: c, describedById: l, children: u }) {
345
345
  let d = typeof a == "string" && a !== "", f = !d && typeof i == "string" && i !== "";
346
346
  return /* @__PURE__ */ T(p, {
347
347
  ref: e,
@@ -380,11 +380,11 @@ function je({ rootRef: e, className: t, label: n, hint: i, error: a, triggerId:
380
380
  }
381
381
  //#endregion
382
382
  //#region src/components/base/date-pickers/date-picker-footer.tsx
383
- function Me({ config: e, output: t, hasSelection: n, autoSummary: i, className: o }) {
384
- let { text: c, actions: l, showOnlyWhenSelected: u = !1, showSummary: d = !1 } = e, f = l?.filter((e) => e.visible !== !1) ?? [], m = S.useMemo(() => {
383
+ function Ne({ config: e, output: t, hasSelection: n, autoSummary: i, className: o }) {
384
+ let { text: c, actions: l, showOnlyWhenSelected: u = !1, showSummary: d = !1 } = e, f = l?.filter((e) => e.visible !== !1) ?? [], m = x.useMemo(() => {
385
385
  if (c) return typeof c == "function" ? c(t) : c;
386
386
  }, [c, t]), h = m || (d ? i : void 0);
387
- return u && !n || !h && f.length === 0 ? null : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
387
+ return u && !n || !h && f.length === 0 ? null : /* @__PURE__ */ T(oe, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
388
388
  className: r("date-picker-footer--component p-surface", o),
389
389
  children: /* @__PURE__ */ T(p, {
390
390
  gap: "lg",
@@ -392,7 +392,7 @@ function Me({ config: e, output: t, hasSelection: n, autoSummary: i, className:
392
392
  gap: "xs",
393
393
  className: "date-picker-footer--summary",
394
394
  children: [
395
- !!d && !!m && !!i && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(s, {
395
+ !!d && !!m && !!i && /* @__PURE__ */ T(oe, { children: [/* @__PURE__ */ w(s, {
396
396
  type: "secondary",
397
397
  children: i
398
398
  }), /* @__PURE__ */ w(s, {
@@ -429,10 +429,10 @@ function Me({ config: e, output: t, hasSelection: n, autoSummary: i, className:
429
429
  })
430
430
  })] });
431
431
  }
432
- Me.displayName = "DatePickerFooter";
432
+ Ne.displayName = "DatePickerFooter";
433
433
  //#endregion
434
434
  //#region src/components/base/date-pickers/date-picker-header.tsx
435
- function Ne({ config: e, className: t }) {
435
+ function Pe({ config: e, className: t }) {
436
436
  let { title: n, description: i, icon: a, align: o = "left" } = e;
437
437
  return /* @__PURE__ */ w("div", {
438
438
  className: r("date-picker-header--component", "border-b border-border p-surface", o === "center" ? "text-center" : "text-left", t),
@@ -462,24 +462,24 @@ function Ne({ config: e, className: t }) {
462
462
  })
463
463
  });
464
464
  }
465
- Ne.displayName = "DatePickerHeader";
465
+ Pe.displayName = "DatePickerHeader";
466
466
  //#endregion
467
467
  //#region src/components/base/date-pickers/date-picker.recipes.ts
468
- function Pe(e) {
469
- let { defaultScale: n } = t();
470
- return te(e, n);
468
+ function Fe(t) {
469
+ let { defaultScale: n } = e();
470
+ return te(t, n);
471
471
  }
472
- var Fe = {
472
+ var Ie = {
473
473
  sm: "w-control-sm",
474
474
  md: "w-control",
475
475
  lg: "w-control-lg"
476
476
  };
477
- function Ie(e, t = !1) {
478
- return r(v(e), "justify-start", t && [Fe[e], "shrink-0 justify-center px-0"]);
477
+ function Le(e, t = !1) {
478
+ return r(v(e), "justify-start", t && [Ie[e], "shrink-0 justify-center px-0"]);
479
479
  }
480
480
  //#endregion
481
481
  //#region src/components/base/date-pickers/date-pickers.strings.ts
482
- var Le = {
482
+ var Re = {
483
483
  selectDate: "Select a date",
484
484
  selectDates: "Select dates",
485
485
  selectDateRange: "Select date range",
@@ -515,7 +515,7 @@ var Le = {
515
515
  selectMonthYear: "Select month and year",
516
516
  month: "Month",
517
517
  year: "Year"
518
- }, Re = ce(`box-border border border-transparent py-0 font-sans text-foreground hover:text-foreground aria-pressed:bg-accent aria-pressed:text-accent-foreground ${l.frame} ${h.invalid} gap-space-xs rounded-inner text-sm font-medium transition-[color,background-color,box-shadow] [&_svg:not([class*='size-'])]:size-icon group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`, {
518
+ }, ze = O(`box-border border border-transparent py-0 font-sans text-foreground hover:text-foreground aria-pressed:bg-accent aria-pressed:text-accent-foreground ${l.frame} ${h.invalid} gap-space-xs rounded-radius text-sm font-medium transition-[color,background-color,box-shadow] [&_svg:not([class*='size-'])]:size-icon group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`, {
519
519
  variants: {
520
520
  variant: {
521
521
  default: "bg-transparent",
@@ -531,13 +531,13 @@ var Le = {
531
531
  variant: "default",
532
532
  size: "default"
533
533
  }
534
- }), ze = S.createContext({
534
+ }), Be = x.createContext({
535
535
  size: "default",
536
536
  variant: "default",
537
537
  spacing: 0,
538
538
  orientation: "horizontal"
539
539
  });
540
- function Be({ className: e, variant: t, size: n, spacing: i = 0, orientation: a = "horizontal", children: o, ...s }) {
540
+ function Ve({ className: e, variant: t, size: n, spacing: i = 0, orientation: a = "horizontal", children: o, ...s }) {
541
541
  return /* @__PURE__ */ w(R, {
542
542
  "data-slot": "toggle-group",
543
543
  "data-variant": t,
@@ -545,9 +545,9 @@ function Be({ className: e, variant: t, size: n, spacing: i = 0, orientation: a
545
545
  "data-spacing": i,
546
546
  "data-orientation": a,
547
547
  style: { "--gap": i },
548
- className: r("rounded-inner group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", e),
548
+ className: r("rounded-radius group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", e),
549
549
  ...s,
550
- children: /* @__PURE__ */ w(ze.Provider, {
550
+ children: /* @__PURE__ */ w(Be.Provider, {
551
551
  value: {
552
552
  variant: t,
553
553
  size: n,
@@ -558,14 +558,14 @@ function Be({ className: e, variant: t, size: n, spacing: i = 0, orientation: a
558
558
  })
559
559
  });
560
560
  }
561
- function Ve({ className: e, children: t, variant: n = "default", size: i = "default", ...a }) {
562
- let o = S.useContext(ze);
561
+ function He({ className: e, children: t, variant: n = "default", size: i = "default", ...a }) {
562
+ let o = x.useContext(Be);
563
563
  return /* @__PURE__ */ w(L, {
564
564
  "data-slot": "toggle-group-item",
565
565
  "data-variant": o.variant || n,
566
566
  "data-size": o.size || i,
567
567
  "data-spacing": o.spacing,
568
- className: r("border-border group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-control-sm group-data-[spacing=0]/toggle-group:shadow-none group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-l-inner group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-inner group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-r-inner group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-inner shrink-0 focus:z-10 focus-visible:z-10 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", Re({
568
+ className: r("border-border group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-control-sm group-data-[spacing=0]/toggle-group:shadow-none group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-l-radius group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-radius group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-r-radius group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-radius shrink-0 focus:z-10 focus-visible:z-10 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", ze({
569
569
  variant: o.variant || n,
570
570
  size: o.size || i
571
571
  }), e),
@@ -575,43 +575,43 @@ function Ve({ className: e, children: t, variant: n = "default", size: i = "defa
575
575
  }
576
576
  //#endregion
577
577
  //#region src/components/base/date-pickers/time-picker.tsx
578
- var He = {
578
+ var Ue = {
579
579
  placeholder: "Select time",
580
580
  hours: "Hours",
581
581
  minutes: "Minutes",
582
582
  seconds: "Seconds",
583
583
  am: "AM",
584
584
  pm: "PM"
585
- }, X = [
585
+ }, We = [
586
586
  "hours",
587
587
  "minutes",
588
588
  "seconds"
589
- ], Ue = "00", We = "12", Z = "--", Q = "aria-pressed:bg-primary aria-pressed:text-primary-foreground", Ge = {
589
+ ], X = "00", Z = "12", Q = "--", Ge = "aria-pressed:bg-primary aria-pressed:text-primary-foreground", Ke = {
590
590
  sm: "w-12",
591
591
  md: "w-14",
592
592
  lg: "w-16"
593
593
  };
594
- function Ke(e) {
594
+ function qe(e) {
595
595
  return e.replace(/\D/g, "").slice(-2);
596
596
  }
597
597
  function $(e) {
598
598
  return e.length === 0 ? "00" : e.length === 1 ? `0${e}` : e;
599
599
  }
600
- function qe(e, t) {
601
- let n = t ? X : X.slice(0, 2), r = n.indexOf(e);
600
+ function Je(e, t) {
601
+ let n = t ? We : We.slice(0, 2), r = n.indexOf(e);
602
602
  return r > -1 && r < n.length - 1 ? n[r + 1] : null;
603
603
  }
604
- function Je(e, t) {
605
- let n = t ? X : X.slice(0, 2), r = n.indexOf(e);
604
+ function Ye(e, t) {
605
+ let n = t ? We : We.slice(0, 2), r = n.indexOf(e);
606
606
  return r > 0 ? n[r - 1] : null;
607
607
  }
608
- function Ye(e, t) {
608
+ function Xe(e, t) {
609
609
  return t === "24" ? e : e % 12 || 12;
610
610
  }
611
- function Xe(e) {
611
+ function Ze(e) {
612
612
  return e >= 12 ? "PM" : "AM";
613
613
  }
614
- function Ze(e, t) {
614
+ function Qe(e, t) {
615
615
  return t === "12" ? {
616
616
  ...e,
617
617
  period: e.period ?? "AM"
@@ -620,97 +620,97 @@ function Ze(e, t) {
620
620
  period: void 0
621
621
  };
622
622
  }
623
- function Qe(e) {
623
+ function $e(e) {
624
624
  return {
625
- hours: Z,
626
- minutes: Z,
627
- seconds: e ? Z : void 0
625
+ hours: Q,
626
+ minutes: Q,
627
+ seconds: e ? Q : void 0
628
628
  };
629
629
  }
630
- function $e(e, t) {
631
- let n = t === "12" ? We : Ue;
630
+ function et(e, t) {
631
+ let n = t === "12" ? Z : X;
632
632
  return {
633
- hours: e.hours === Z ? n : e.hours,
634
- minutes: e.minutes === Z ? Ue : e.minutes,
635
- seconds: e.seconds === Z ? Ue : e.seconds,
633
+ hours: e.hours === Q ? n : e.hours,
634
+ minutes: e.minutes === Q ? X : e.minutes,
635
+ seconds: e.seconds === Q ? X : e.seconds,
636
636
  period: e.period
637
637
  };
638
638
  }
639
- function et(e, t, n) {
640
- let r = le(e ?? void 0);
641
- return r ? Ze(de(r, t, n), t) : Qe(n);
639
+ function tt(e, t, n) {
640
+ let r = ue(e ?? void 0);
641
+ return r ? Qe(W(r, t, n), t) : $e(n);
642
642
  }
643
- var tt = S.forwardRef(function({ value: e, onValueChange: i, mode: a = "inline", format: o = "24", precision: c = "minutes", step: l = 60, size: u, disabled: d, invalid: f, placeholder: p, strings: m, className: ee, id: h }, g) {
644
- let y = n(He, m), { defaultScale: ae } = t(), x = te(u, ae), C = c === "seconds", [oe, se] = S.useState(!1), E = S.useMemo(() => C ? X : X.slice(0, 2), [C]), [D, ce] = S.useState(() => et(e, o, C)), k = S.useRef(D), A = S.useRef(!1), j = S.useRef(null), M = S.useCallback((e) => {
645
- k.current = e, ce(e);
646
- }, []), N = S.useRef({
643
+ var nt = x.forwardRef(function({ value: t, onValueChange: i, mode: a = "inline", format: o = "24", precision: c = "minutes", step: l = 60, size: u, disabled: d, invalid: f, placeholder: p, strings: m, className: ee, id: h }, g) {
644
+ let y = n(Ue, m), { defaultScale: ae } = e(), S = te(u, ae), C = c === "seconds", [oe, se] = x.useState(!1), E = x.useMemo(() => C ? We : We.slice(0, 2), [C]), [D, ce] = x.useState(() => tt(t, o, C)), O = x.useRef(D), k = x.useRef(!1), A = x.useRef(null), j = x.useCallback((e) => {
645
+ O.current = e, ce(e);
646
+ }, []), M = x.useRef({
647
647
  hours: null,
648
648
  minutes: null,
649
649
  seconds: null
650
650
  });
651
- S.useEffect(() => {
652
- if (A.current) {
653
- A.current = !1;
651
+ x.useEffect(() => {
652
+ if (k.current) {
653
+ k.current = !1;
654
654
  return;
655
655
  }
656
- j.current = null, M(et(e, o, C));
656
+ A.current = null, j(tt(t, o, C));
657
657
  }, [
658
- e,
658
+ t,
659
659
  o,
660
660
  C,
661
- M
661
+ j
662
662
  ]);
663
- let P = S.useCallback((e) => ue(e, C), [C]), F = S.useCallback((e) => {
664
- A.current = !0;
665
- let t = W($e(e, o), o, C);
666
- i?.(P(fe(t, l, C)));
663
+ let N = x.useCallback((e) => de(e, C), [C]), P = x.useCallback((e) => {
664
+ k.current = !0;
665
+ let t = G(et(e, o), o, C);
666
+ i?.(N(fe(t, l, C)));
667
667
  }, [
668
668
  o,
669
669
  C,
670
670
  i,
671
671
  l,
672
- P
673
- ]), I = S.useCallback((e) => {
674
- let t = fe(W($e(e, o), o, C), l, C);
675
- i?.(P(t)), M(Ze(de(t, o, C), o));
672
+ N
673
+ ]), F = x.useCallback((e) => {
674
+ let t = fe(G(et(e, o), o, C), l, C);
675
+ i?.(N(t)), j(Qe(W(t, o, C), o));
676
676
  }, [
677
677
  o,
678
678
  C,
679
679
  i,
680
680
  l,
681
- P,
682
- M
683
- ]), L = S.useCallback((e) => {
681
+ N,
682
+ j
683
+ ]), I = x.useCallback((e) => {
684
684
  if (!e) return;
685
- let t = N.current[e];
685
+ let t = M.current[e];
686
686
  t && (t.focus(), t.select());
687
- }, []), R = S.useCallback((e, t) => {
688
- let n = $e(k.current, o), r = j.current, i = r && r.key === e && r.typed.length === 1 ? `${r.typed}${t}` : String(t);
689
- j.current = {
687
+ }, []), L = x.useCallback((e, t) => {
688
+ let n = et(O.current, o), r = A.current, i = r && r.key === e && r.typed.length === 1 ? `${r.typed}${t}` : String(t);
689
+ A.current = {
690
690
  key: e,
691
691
  typed: i
692
692
  };
693
693
  let a = Number.parseInt(i, 10), s = { ...n }, c = s.period ?? "AM";
694
- e === "hours" ? o === "24" ? s.hours = $(Math.min(Math.max(a, 0), 23).toString()) : a === 0 ? (c = "AM", s.hours = We) : a > 12 ? (c = Xe(a), s.hours = $(Ye(a, "12").toString())) : (s.hours = $(Math.min(Math.max(a, 1), 12).toString()), c = n.period ?? Xe(a)) : e === "minutes" ? s.minutes = $(Math.min(Math.max(a, 0), 59).toString()) : e === "seconds" && (s.seconds = $(Math.min(Math.max(a, 0), 59).toString()));
694
+ e === "hours" ? o === "24" ? s.hours = $(Math.min(Math.max(a, 0), 23).toString()) : a === 0 ? (c = "AM", s.hours = Z) : a > 12 ? (c = Ze(a), s.hours = $(Xe(a, "12").toString())) : (s.hours = $(Math.min(Math.max(a, 1), 12).toString()), c = n.period ?? Ze(a)) : e === "minutes" ? s.minutes = $(Math.min(Math.max(a, 0), 59).toString()) : e === "seconds" && (s.seconds = $(Math.min(Math.max(a, 0), 59).toString()));
695
695
  let l = {
696
696
  ...s,
697
697
  period: o === "12" ? c : void 0
698
698
  };
699
- M(l), F(l);
699
+ j(l), P(l);
700
700
  }, [
701
701
  o,
702
- M,
703
- F
704
- ]), z = S.useCallback((e, t) => {
705
- j.current = null;
706
- let n = Ke(t), r = { ...$e(k.current, o) }, i = r.period ?? "AM";
702
+ j,
703
+ P
704
+ ]), R = x.useCallback((e, t) => {
705
+ A.current = null;
706
+ let n = qe(t), r = { ...et(O.current, o) }, i = r.period ?? "AM";
707
707
  if (e === "hours") {
708
708
  if (o === "24") {
709
709
  let e = Number.parseInt(n || "0", 10);
710
710
  r.hours = $((Number.isNaN(e) ? 0 : Math.min(Math.max(e, 0), 23)).toString());
711
711
  } else {
712
712
  let e = Number.parseInt(n || "0", 10);
713
- Number.isNaN(e) ? (r.hours = We, i = r.period ?? "AM") : n.length === 2 && e > 12 ? (i = Xe(e), r.hours = $(Ye(e, "12").toString())) : e === 0 ? (i = "AM", r.hours = We) : (r.hours = $(Math.min(Math.max(e, 1), 12).toString()), n.length === 2 && (i = r.period ?? Xe(e)));
713
+ Number.isNaN(e) ? (r.hours = Z, i = r.period ?? "AM") : n.length === 2 && e > 12 ? (i = Ze(e), r.hours = $(Xe(e, "12").toString())) : e === 0 ? (i = "AM", r.hours = Z) : (r.hours = $(Math.min(Math.max(e, 1), 12).toString()), n.length === 2 && (i = r.period ?? Ze(e)));
714
714
  }
715
715
  } else if (e === "minutes") {
716
716
  let e = Number.parseInt(n || "0", 10);
@@ -723,87 +723,87 @@ var tt = S.forwardRef(function({ value: e, onValueChange: i, mode: a = "inline",
723
723
  ...r,
724
724
  period: o === "12" ? i : void 0
725
725
  };
726
- M(a), F(a);
726
+ j(a), P(a);
727
727
  }, [
728
728
  o,
729
- M,
730
- F
731
- ]), B = S.useCallback((e) => {
732
- o === "12" && (j.current = null, I({
733
- ...$e(k.current, o),
729
+ j,
730
+ P
731
+ ]), z = x.useCallback((e) => {
732
+ o === "12" && (A.current = null, F({
733
+ ...et(O.current, o),
734
734
  period: e
735
735
  }));
736
- }, [I, o]), V = S.useCallback(() => {
737
- j.current = null, I(k.current);
738
- }, [I]), H = S.useCallback((e) => {
739
- j.current = null, e.target.select();
740
- }, []), le = S.useCallback((e, t) => {
736
+ }, [F, o]), B = x.useCallback(() => {
737
+ A.current = null, F(O.current);
738
+ }, [F]), V = x.useCallback((e) => {
739
+ A.current = null, e.target.select();
740
+ }, []), H = x.useCallback((e, t) => {
741
741
  if (e.key.length === 1 && /\d/.test(e.key) && !e.metaKey && !e.ctrlKey && !e.altKey) {
742
- e.preventDefault(), R(t, Number.parseInt(e.key, 10));
742
+ e.preventDefault(), L(t, Number.parseInt(e.key, 10));
743
743
  return;
744
744
  }
745
745
  if (e.key === "ArrowRight") {
746
- L(qe(t, C));
746
+ I(Je(t, C));
747
747
  return;
748
748
  }
749
749
  if (e.key === "ArrowLeft") {
750
- L(Je(t, C));
750
+ I(Ye(t, C));
751
751
  return;
752
752
  }
753
753
  if (e.key === "Backspace") {
754
754
  let n = e.currentTarget;
755
- n.selectionStart === 0 && n.selectionEnd === 0 && L(Je(t, C));
755
+ n.selectionStart === 0 && n.selectionEnd === 0 && I(Ye(t, C));
756
756
  }
757
757
  }, [
758
- R,
759
758
  L,
759
+ I,
760
760
  C
761
- ]), U = S.useMemo(() => {
761
+ ]), ue = x.useMemo(() => {
762
762
  if (o === "12") return D.period ? [D.period] : void 0;
763
- }, [o, D.period]), G = {
763
+ }, [o, D.period]), U = {
764
764
  hours: y.hours,
765
765
  minutes: y.minutes,
766
766
  seconds: y.seconds
767
- }, K = /* @__PURE__ */ T("div", {
767
+ }, me = /* @__PURE__ */ T("div", {
768
768
  ref: a === "inline" ? g : void 0,
769
769
  className: r("flex items-center gap-space-md [&>.input--component]:w-auto [&>.input--component]:shrink-0", a === "inline" && ["time-picker--component", ee]),
770
- children: [E.map((e, t) => /* @__PURE__ */ T(S.Fragment, { children: [/* @__PURE__ */ w(b, {
770
+ children: [E.map((e, t) => /* @__PURE__ */ T(x.Fragment, { children: [/* @__PURE__ */ w(b, {
771
771
  ref: (t) => {
772
- N.current[e] = t;
772
+ M.current[e] = t;
773
773
  },
774
774
  id: e === "hours" && a === "inline" ? h : void 0,
775
- value: D[e] ?? Z,
776
- onChange: (t) => z(e, t.target.value),
777
- onFocus: H,
778
- onBlur: V,
779
- onKeyDown: (t) => le(t, e),
775
+ value: D[e] ?? Q,
776
+ onChange: (t) => R(e, t.target.value),
777
+ onFocus: V,
778
+ onBlur: B,
779
+ onKeyDown: (t) => H(t, e),
780
780
  inputMode: "numeric",
781
781
  pattern: "\\d*",
782
782
  maxLength: 2,
783
783
  showCharacterCount: !1,
784
784
  disabled: d,
785
785
  invalid: f,
786
- "aria-label": G[e],
787
- size: x,
788
- className: r("time-picker--segment text-center", Ge[x])
786
+ "aria-label": U[e],
787
+ size: S,
788
+ className: r("time-picker--segment text-center", Ke[S])
789
789
  }), t < E.length - 1 && /* @__PURE__ */ w(s, {
790
790
  tag: "span",
791
791
  type: "secondary",
792
792
  children: ":"
793
- })] }, e)), o === "12" && /* @__PURE__ */ T(Be, {
794
- value: U,
793
+ })] }, e)), o === "12" && /* @__PURE__ */ T(Ve, {
794
+ value: ue,
795
795
  onValueChange: (e) => {
796
796
  let t = e[0];
797
- t && B(t);
797
+ t && z(t);
798
798
  },
799
799
  disabled: d,
800
800
  variant: "outline",
801
- size: x === "sm" ? "sm" : "default",
801
+ size: S === "sm" ? "sm" : "default",
802
802
  className: "time-picker--period",
803
- children: [/* @__PURE__ */ w(Ve, {
803
+ children: [/* @__PURE__ */ w(He, {
804
804
  value: "AM",
805
805
  "aria-label": y.am,
806
- className: r(_[x], Q),
806
+ className: r(_[S], Ge),
807
807
  children: /* @__PURE__ */ w(s, {
808
808
  tag: "span",
809
809
  size: "inherit",
@@ -812,10 +812,10 @@ var tt = S.forwardRef(function({ value: e, onValueChange: i, mode: a = "inline",
812
812
  className: "text-inherit",
813
813
  children: y.am
814
814
  })
815
- }), /* @__PURE__ */ w(Ve, {
815
+ }), /* @__PURE__ */ w(He, {
816
816
  value: "PM",
817
817
  "aria-label": y.pm,
818
- className: r(_[x], Q),
818
+ className: r(_[S], Ge),
819
819
  children: /* @__PURE__ */ w(s, {
820
820
  tag: "span",
821
821
  size: "inherit",
@@ -827,8 +827,8 @@ var tt = S.forwardRef(function({ value: e, onValueChange: i, mode: a = "inline",
827
827
  })]
828
828
  })]
829
829
  });
830
- if (a === "inline") return K;
831
- let me = D.hours === Z && D.minutes === Z, he = me ? p ?? y.placeholder : pe(W($e(D, o), o, C), C, o, {
830
+ if (a === "inline") return me;
831
+ let he = D.hours === Q && D.minutes === Q, ge = he ? p ?? y.placeholder : pe(G(et(D, o), o, C), C, o, {
832
832
  am: y.am,
833
833
  pm: y.pm
834
834
  });
@@ -841,134 +841,134 @@ var tt = S.forwardRef(function({ value: e, onValueChange: i, mode: a = "inline",
841
841
  "aria-expanded": oe,
842
842
  "aria-invalid": f,
843
843
  disabled: d,
844
- className: r("time-picker--component", v(x), "justify-start", me && "text-muted-foreground", ee),
845
- children: [/* @__PURE__ */ w(O, { className: "size-icon shrink-0" }), /* @__PURE__ */ w(s, {
844
+ className: r("time-picker--component", v(S), "justify-start", he && "text-muted-foreground", ee),
845
+ children: [/* @__PURE__ */ w(le, { className: "size-icon shrink-0" }), /* @__PURE__ */ w(s, {
846
846
  tag: "span",
847
847
  size: "inherit",
848
848
  lineHeight: "tight",
849
849
  className: "min-w-0 truncate text-inherit",
850
- children: he
850
+ children: ge
851
851
  })]
852
852
  }), /* @__PURE__ */ w(ie, {
853
853
  className: "time-picker--panel w-auto",
854
854
  align: "start",
855
- children: K
855
+ children: me
856
856
  })]
857
857
  });
858
858
  });
859
- tt.displayName = "TimePicker";
859
+ nt.displayName = "TimePicker";
860
860
  //#endregion
861
861
  //#region src/components/base/date-pickers/date-picker-single.tsx
862
- function nt({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-dd", readableFormat: o = "PPP", placeholder: c, closeOnSelect: l = !0, withTime: u, disabledDates: d, calendarProps: f, open: p, setOpen: m, t: h, dateFnsLocale: g, captionLayout: _, yearBounds: v, rootRef: te, ...b }) {
863
- let x = Pe(b.size), se = S.useId(), E = b.id ?? se, D = `${E}-description`, O = b.error !== void 0 && b.error !== null && b.error !== "", ce = O || !!b.invalid, k = O ? D : void 0, A = u?.format ?? "24", j = u?.step ?? 60, N = u?.showSeconds ?? !1, P = me(o), F = u?.showTimeInButton ?? !P, [I, L] = S.useState(() => e ?? t), [R, z] = S.useState(() => {
862
+ function rt({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-dd", readableFormat: o = "PPP", placeholder: c, closeOnSelect: l = !0, withTime: u, disabledDates: d, calendarProps: f, open: p, setOpen: m, t: h, dateFnsLocale: g, captionLayout: _, yearBounds: v, rootRef: te, ...b }) {
863
+ let S = Fe(b.size), C = x.useId(), E = b.id ?? C, D = `${E}-description`, ce = b.error !== void 0 && b.error !== null && b.error !== "", le = ce || !!(b.invalid || b["aria-invalid"] && b["aria-invalid"] !== "false"), O = [b["aria-describedby"], ce ? D : void 0].filter(Boolean).join(" ") || void 0, k = u?.format ?? "24", A = u?.step ?? 60, j = u?.showSeconds ?? !1, N = ge(o), P = u?.showTimeInButton ?? !N, [F, I] = x.useState(() => e ?? t), [L, R] = x.useState(() => {
864
864
  let n = e ?? t;
865
- return n ? U(n, N, j) : null;
866
- }), B = S.useRef(e ?? t ?? void 0), V = S.useRef(!1), H = S.useRef(e !== void 0), de = S.useCallback((e, t) => {
867
- let n = e, r = t ?? R;
865
+ return n ? U(n, j, A) : null;
866
+ }), z = x.useRef(e ?? t ?? void 0), B = x.useRef(!1), V = x.useRef(e !== void 0), H = x.useCallback((e, t) => {
867
+ let n = e, r = t ?? L;
868
868
  if (e && u?.enabled && r) {
869
869
  let t = ye(e, r);
870
870
  n = Number.isFinite(t.getTime()) ? t : void 0;
871
871
  }
872
- return ge(n, i, o, g);
872
+ return _e(n, i, o, g);
873
873
  }, [
874
874
  i,
875
875
  o,
876
876
  g,
877
877
  u,
878
- R
878
+ L
879
879
  ]);
880
- S.useEffect(() => {
881
- let r = !!u?.enabled, a = H.current, s = e !== void 0, c = (e, t) => {
882
- let a = fe(U(e, N, j), j, N);
883
- if (L((t) => t?.getTime?.() === e.getTime() ? t : e), z((e) => e && e.hours === a.hours && e.minutes === a.minutes && e.seconds === a.seconds ? e : a), B.current = e, V.current = !0, t && r) {
880
+ x.useEffect(() => {
881
+ let r = !!u?.enabled, a = V.current, s = e !== void 0, c = (e, t) => {
882
+ let a = fe(U(e, j, A), A, j);
883
+ if (I((t) => t?.getTime?.() === e.getTime() ? t : e), R((e) => e && e.hours === a.hours && e.minutes === a.minutes && e.seconds === a.seconds ? e : a), z.current = e, B.current = !0, t && r) {
884
884
  let t = ye(e, a);
885
- n?.(ge(t, i, o, g));
885
+ n?.(_e(t, i, o, g));
886
886
  }
887
887
  };
888
888
  if (!r) {
889
- V.current = !1, B.current = e ?? t ?? void 0, L(e ?? t), H.current = s;
889
+ B.current = !1, z.current = e ?? t ?? void 0, I(e ?? t), V.current = s;
890
890
  return;
891
891
  }
892
- let l = B.current?.getTime?.(), d = e?.getTime?.();
893
- if (!s && a && t === void 0 && (V.current = !1, B.current = void 0), e !== void 0 && d !== l) {
894
- c(e, !1), H.current = s;
892
+ let l = z.current?.getTime?.(), d = e?.getTime?.();
893
+ if (!s && a && t === void 0 && (B.current = !1, z.current = void 0), e !== void 0 && d !== l) {
894
+ c(e, !1), V.current = s;
895
895
  return;
896
896
  }
897
897
  if (e === void 0 && t !== void 0) {
898
- (l !== t.getTime() || !V.current) && c(t, !1), H.current = s;
898
+ (l !== t.getTime() || !B.current) && c(t, !1), V.current = s;
899
899
  return;
900
900
  }
901
- if (e === void 0 && t === void 0 && !V.current) {
902
- V.current = !0, H.current = s;
901
+ if (e === void 0 && t === void 0 && !B.current) {
902
+ B.current = !0, V.current = s;
903
903
  return;
904
904
  }
905
- H.current = s;
905
+ V.current = s;
906
906
  }, [
907
907
  u?.enabled,
908
908
  e,
909
909
  t,
910
- N,
911
910
  j,
911
+ A,
912
912
  n,
913
913
  i,
914
914
  o,
915
915
  g
916
- ]), S.useEffect(() => {
917
- u?.enabled && z((e) => {
916
+ ]), x.useEffect(() => {
917
+ u?.enabled && R((e) => {
918
918
  if (!e) return e;
919
- let t = fe(e, j, N);
919
+ let t = fe(e, A, j);
920
920
  return e.hours === t.hours && e.minutes === t.minutes && e.seconds === t.seconds ? e : t;
921
921
  });
922
922
  }, [
923
923
  u?.enabled,
924
- j,
925
- N
924
+ A,
925
+ j
926
926
  ]);
927
- let W = S.useCallback((e) => {
928
- L(e);
927
+ let W = x.useCallback((e) => {
928
+ I(e);
929
929
  let t;
930
- u?.enabled && e && (V.current = !0, B.current = e, R || (t = U(e, N, j), z(t))), n?.(de(e, t)), l && e && m(!1);
930
+ u?.enabled && e && (B.current = !0, z.current = e, L || (t = U(e, j, A), R(t))), n?.(H(e, t)), l && e && m(!1);
931
931
  }, [
932
932
  n,
933
- de,
933
+ H,
934
934
  l,
935
935
  m,
936
936
  u,
937
- R,
938
- N,
939
- j
940
- ]), G = S.useCallback((e) => {
941
- let t = le(e ?? void 0);
942
- t && (z(t), I && n?.(de(I, t)));
937
+ L,
938
+ j,
939
+ A
940
+ ]), G = x.useCallback((e) => {
941
+ let t = ue(e ?? void 0);
942
+ t && (R(t), F && n?.(H(F, t)));
943
943
  }, [
944
- I,
944
+ F,
945
945
  n,
946
- de
947
- ]), K = S.useMemo(() => {
948
- if (u?.enabled && R) return pe(R, N, A, {
946
+ H
947
+ ]), me = x.useMemo(() => {
948
+ if (u?.enabled && L) return pe(L, j, k, {
949
949
  am: h.am,
950
950
  pm: h.pm
951
951
  });
952
952
  }, [
953
953
  u?.enabled,
954
- R,
955
- N,
956
- A,
954
+ L,
955
+ j,
956
+ k,
957
957
  h
958
- ]), he = S.useMemo(() => Ce(I, o, c, h.selectDate, F ? K : void 0, g), [
959
- I,
958
+ ]), he = x.useMemo(() => Ce(F, o, c, h.selectDate, P ? me : void 0, g), [
959
+ F,
960
960
  o,
961
961
  c,
962
962
  h,
963
- K,
964
- F,
963
+ me,
964
+ P,
965
965
  g
966
- ]), _e = S.useMemo(() => I ? M(I, o, { locale: g }) : void 0, [
967
- I,
966
+ ]), K = x.useMemo(() => F ? M(F, o, { locale: g }) : void 0, [
967
+ F,
968
968
  o,
969
969
  g
970
970
  ]);
971
- return /* @__PURE__ */ w(je, {
971
+ return /* @__PURE__ */ w(Me, {
972
972
  rootRef: te,
973
973
  className: b.className,
974
974
  label: b.label,
@@ -979,40 +979,44 @@ function nt({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-
979
979
  children: /* @__PURE__ */ T(re, {
980
980
  open: p,
981
981
  onOpenChange: m,
982
- children: [/* @__PURE__ */ w(ne, { render: (e) => {
983
- let t = Te(b.buttonTone, b.buttonStyle);
984
- return /* @__PURE__ */ T(a, {
985
- ...e,
986
- id: E,
987
- tone: t.tone,
988
- buttonStyle: t.buttonStyle,
989
- size: x,
990
- "aria-invalid": ce,
991
- "aria-describedby": k,
992
- className: r(Ie(x), !I && "text-muted-foreground", e.className),
993
- disabled: b.disabled,
994
- children: [/* @__PURE__ */ w(oe, {
995
- className: y[x],
996
- "aria-hidden": "true"
997
- }), /* @__PURE__ */ w(s, {
998
- tag: "span",
999
- size: "inherit",
1000
- lineHeight: "tight",
1001
- className: "min-w-0 truncate text-inherit",
1002
- children: he
1003
- })]
1004
- });
1005
- } }), /* @__PURE__ */ T(ie, {
982
+ children: [/* @__PURE__ */ w(ne, {
983
+ ref: b.triggerRef,
984
+ onBlur: b.onBlur,
985
+ render: (e) => {
986
+ let t = Te(b.buttonTone, b.buttonStyle);
987
+ return /* @__PURE__ */ T(a, {
988
+ ...e,
989
+ id: E,
990
+ tone: t.tone,
991
+ buttonStyle: t.buttonStyle,
992
+ size: S,
993
+ "aria-invalid": le,
994
+ "aria-describedby": O,
995
+ className: r(Le(S), !F && "text-muted-foreground", e.className),
996
+ disabled: b.disabled,
997
+ children: [/* @__PURE__ */ w(se, {
998
+ className: y[S],
999
+ "aria-hidden": "true"
1000
+ }), /* @__PURE__ */ w(s, {
1001
+ tag: "span",
1002
+ size: "inherit",
1003
+ lineHeight: "tight",
1004
+ className: "min-w-0 truncate text-inherit",
1005
+ children: he
1006
+ })]
1007
+ });
1008
+ }
1009
+ }), /* @__PURE__ */ T(ie, {
1006
1010
  inset: "flush",
1007
1011
  className: "w-auto gap-0",
1008
1012
  align: "start",
1009
1013
  children: [
1010
- !!b.header && /* @__PURE__ */ w(Ne, { config: b.header }),
1011
- /* @__PURE__ */ w(ke, {
1014
+ !!b.header && /* @__PURE__ */ w(Pe, { config: b.header }),
1015
+ /* @__PURE__ */ w(Ae, {
1012
1016
  mode: "single",
1013
- selected: I,
1017
+ selected: F,
1014
1018
  onSelect: W,
1015
- defaultMonth: I,
1019
+ defaultMonth: F,
1016
1020
  numberOfMonths: b.numberOfMonths,
1017
1021
  showOutsideDays: b.showOutsideDays,
1018
1022
  disabled: d ?? b.disabled,
@@ -1022,16 +1026,16 @@ function nt({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-
1022
1026
  endMonth: v.endMonth,
1023
1027
  ...f
1024
1028
  }),
1025
- !!u?.enabled && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
1029
+ !!u?.enabled && /* @__PURE__ */ T(oe, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
1026
1030
  className: "date-picker--time p-surface",
1027
1031
  children: /* @__PURE__ */ w(ae, {
1028
1032
  label: h.startTime,
1029
- children: /* @__PURE__ */ w(tt, {
1030
- value: R ? ue(R, N) : null,
1033
+ children: /* @__PURE__ */ w(nt, {
1034
+ value: L ? de(L, j) : null,
1031
1035
  onValueChange: G,
1032
- format: A,
1033
- precision: N ? "seconds" : "minutes",
1034
- step: j,
1036
+ format: k,
1037
+ precision: j ? "seconds" : "minutes",
1038
+ step: A,
1035
1039
  disabled: b.disabled,
1036
1040
  size: "sm",
1037
1041
  strings: {
@@ -1044,11 +1048,11 @@ function nt({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-
1044
1048
  })
1045
1049
  })
1046
1050
  })] }),
1047
- !!b.footer && /* @__PURE__ */ w(Me, {
1051
+ !!b.footer && /* @__PURE__ */ w(Ne, {
1048
1052
  config: b.footer,
1049
- output: de(I),
1050
- hasSelection: !!I,
1051
- autoSummary: _e
1053
+ output: H(F),
1054
+ hasSelection: !!F,
1055
+ autoSummary: K
1052
1056
  })
1053
1057
  ]
1054
1058
  })]
@@ -1057,84 +1061,88 @@ function nt({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-
1057
1061
  }
1058
1062
  //#endregion
1059
1063
  //#region src/components/base/date-pickers/date-picker-multiple.tsx
1060
- function rt({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-dd", readableFormat: o = "PPP", placeholder: c, min: l, max: u, required: d, closeOnSelect: f = !1, disabledDates: p, calendarProps: m, open: h, setOpen: g, t: _, dateFnsLocale: v, captionLayout: te, yearBounds: b, rootRef: ae, ...x }) {
1061
- let se = Pe(x.size), E = S.useId(), D = x.id ?? E, O = `${D}-description`, ce = x.error !== void 0 && x.error !== null && x.error !== "", k = ce || !!x.invalid, A = ce ? O : void 0, [j, M] = S.useState(e ?? t ?? []);
1062
- S.useEffect(() => {
1063
- e !== void 0 && M(e);
1064
+ function it({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-dd", readableFormat: o = "PPP", placeholder: c, min: l, max: u, required: d, closeOnSelect: f = !1, disabledDates: p, calendarProps: m, open: h, setOpen: g, t: _, dateFnsLocale: v, captionLayout: te, yearBounds: b, rootRef: ae, ...S }) {
1065
+ let C = Fe(S.size), E = x.useId(), D = S.id ?? E, ce = `${D}-description`, le = S.error !== void 0 && S.error !== null && S.error !== "", O = le || !!(S.invalid || S["aria-invalid"] && S["aria-invalid"] !== "false"), k = [S["aria-describedby"], le ? ce : void 0].filter(Boolean).join(" ") || void 0, [A, j] = x.useState(e ?? t ?? []);
1066
+ x.useEffect(() => {
1067
+ e !== void 0 && j(e);
1064
1068
  }, [e]);
1065
- let N = S.useCallback((e) => _e(e, i, o, v), [
1069
+ let M = x.useCallback((e) => q(e, i, o, v), [
1066
1070
  i,
1067
1071
  o,
1068
1072
  v
1069
- ]), P = S.useCallback((e) => {
1073
+ ]), N = x.useCallback((e) => {
1070
1074
  let t = Array.isArray(e) ? e : e ? [e] : [];
1071
- M(t), n?.(N(t)), f && t.length > 0 && g(!1);
1075
+ j(t), n?.(M(t)), f && t.length > 0 && g(!1);
1072
1076
  }, [
1073
1077
  n,
1074
- N,
1078
+ M,
1075
1079
  f,
1076
1080
  g
1077
- ]), F = S.useMemo(() => J(j, o, c, _.selectDates, _, v), [
1078
- j,
1081
+ ]), P = x.useMemo(() => Y(A, o, c, _.selectDates, _, v), [
1082
+ A,
1079
1083
  o,
1080
1084
  c,
1081
1085
  _,
1082
1086
  v
1083
- ]), I = S.useMemo(() => q(j, l, u, d, _), [
1084
- j,
1087
+ ]), F = x.useMemo(() => J(A, l, u, d, _), [
1088
+ A,
1085
1089
  l,
1086
1090
  u,
1087
1091
  d,
1088
1092
  _
1089
- ]), L = S.useMemo(() => j.length > 0 ? _.datesSelected(j.length) : void 0, [j.length, _]);
1090
- return /* @__PURE__ */ w(je, {
1093
+ ]), I = x.useMemo(() => A.length > 0 ? _.datesSelected(A.length) : void 0, [A.length, _]);
1094
+ return /* @__PURE__ */ w(Me, {
1091
1095
  rootRef: ae,
1092
- className: x.className,
1093
- label: x.label,
1094
- hint: x.hint,
1095
- error: x.error,
1096
+ className: S.className,
1097
+ label: S.label,
1098
+ hint: S.hint,
1099
+ error: S.error,
1096
1100
  triggerId: D,
1097
- describedById: O,
1101
+ describedById: ce,
1098
1102
  children: /* @__PURE__ */ T(re, {
1099
1103
  open: h,
1100
1104
  onOpenChange: g,
1101
- children: [/* @__PURE__ */ w(ne, { render: (e) => {
1102
- let t = Te(x.buttonTone, x.buttonStyle);
1103
- return /* @__PURE__ */ T(a, {
1104
- ...e,
1105
- id: D,
1106
- tone: t.tone,
1107
- buttonStyle: t.buttonStyle,
1108
- size: se,
1109
- "aria-invalid": k,
1110
- "aria-describedby": A,
1111
- className: r(Ie(se), j.length === 0 && "text-muted-foreground", e.className),
1112
- disabled: x.disabled,
1113
- children: [/* @__PURE__ */ w(oe, {
1114
- className: y[se],
1115
- "aria-hidden": "true"
1116
- }), /* @__PURE__ */ w(s, {
1117
- tag: "span",
1118
- size: "inherit",
1119
- lineHeight: "tight",
1120
- className: "min-w-0 truncate text-inherit",
1121
- children: F
1122
- })]
1123
- });
1124
- } }), /* @__PURE__ */ T(ie, {
1105
+ children: [/* @__PURE__ */ w(ne, {
1106
+ ref: S.triggerRef,
1107
+ onBlur: S.onBlur,
1108
+ render: (e) => {
1109
+ let t = Te(S.buttonTone, S.buttonStyle);
1110
+ return /* @__PURE__ */ T(a, {
1111
+ ...e,
1112
+ id: D,
1113
+ tone: t.tone,
1114
+ buttonStyle: t.buttonStyle,
1115
+ size: C,
1116
+ "aria-invalid": O,
1117
+ "aria-describedby": k,
1118
+ className: r(Le(C), A.length === 0 && "text-muted-foreground", e.className),
1119
+ disabled: S.disabled,
1120
+ children: [/* @__PURE__ */ w(se, {
1121
+ className: y[C],
1122
+ "aria-hidden": "true"
1123
+ }), /* @__PURE__ */ w(s, {
1124
+ tag: "span",
1125
+ size: "inherit",
1126
+ lineHeight: "tight",
1127
+ className: "min-w-0 truncate text-inherit",
1128
+ children: P
1129
+ })]
1130
+ });
1131
+ }
1132
+ }), /* @__PURE__ */ T(ie, {
1125
1133
  inset: "flush",
1126
1134
  className: "w-auto gap-0",
1127
1135
  align: "start",
1128
1136
  children: [
1129
- !!x.header && /* @__PURE__ */ w(Ne, { config: x.header }),
1130
- /* @__PURE__ */ w(ke, {
1137
+ !!S.header && /* @__PURE__ */ w(Pe, { config: S.header }),
1138
+ /* @__PURE__ */ w(Ae, {
1131
1139
  mode: "multiple",
1132
- selected: j,
1133
- onSelect: P,
1134
- defaultMonth: j[0],
1135
- numberOfMonths: x.numberOfMonths,
1136
- showOutsideDays: x.showOutsideDays,
1137
- disabled: p ?? x.disabled,
1140
+ selected: A,
1141
+ onSelect: N,
1142
+ defaultMonth: A[0],
1143
+ numberOfMonths: S.numberOfMonths,
1144
+ showOutsideDays: S.showOutsideDays,
1145
+ disabled: p ?? S.disabled,
1138
1146
  locale: v,
1139
1147
  captionLayout: te,
1140
1148
  startMonth: b.startMonth,
@@ -1143,81 +1151,90 @@ function rt({ value: e, defaultValue: t, onValueChange: n, format: i = "yyyy-MM-
1143
1151
  max: u,
1144
1152
  ...m
1145
1153
  }),
1146
- !!I && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
1154
+ !!F && /* @__PURE__ */ T(oe, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
1147
1155
  className: "p-surface",
1148
1156
  children: /* @__PURE__ */ w(s, {
1149
1157
  type: "secondary",
1150
- children: I
1158
+ children: F
1151
1159
  })
1152
1160
  })] }),
1153
- !!x.footer && /* @__PURE__ */ w(Me, {
1154
- config: x.footer,
1155
- output: N(j),
1156
- hasSelection: j.length > 0,
1157
- autoSummary: L
1161
+ !!S.footer && /* @__PURE__ */ w(Ne, {
1162
+ config: S.footer,
1163
+ output: M(A),
1164
+ hasSelection: A.length > 0,
1165
+ autoSummary: I
1158
1166
  })
1159
1167
  ]
1160
1168
  })]
1161
1169
  })
1162
1170
  });
1163
1171
  }
1172
+ function at() {
1173
+ let [e, t] = C();
1174
+ return S(() => {
1175
+ let e = window.matchMedia("(max-width: 767px)"), n = () => {
1176
+ t(window.innerWidth < 768);
1177
+ };
1178
+ return e.addEventListener("change", n), t(window.innerWidth < 768), () => e.removeEventListener("change", n);
1179
+ }, []), !!e;
1180
+ }
1164
1181
  //#endregion
1165
1182
  //#region src/components/base/date-pickers/date-picker-range.tsx
1166
- function it({ value: t, defaultValue: n, onValueChange: o, format: c = "yyyy-MM-dd", readableFormat: l = "PPP", placeholder: u, withConfirm: d = !1, min: m, max: h, closeOnSelect: g = !0, withTime: _, presets: v, disabledDates: te, calendarProps: b, open: se, setOpen: E, t: D, dateFnsLocale: O, captionLayout: ce, yearBounds: k, rootRef: A, ...j }) {
1167
- let N = x(), P = j.numberOfMonths ?? (N ? 1 : 2), { weekStartsOn: F = 1 } = e(), I = v ?? Oe(D, F), L = Pe(j.size), R = S.useId(), z = j.id ?? R, B = `${z}-description`, V = j.error !== void 0 && j.error !== null && j.error !== "", H = V || !!j.invalid, de = V ? B : void 0, W = _?.format ?? "24", G = _?.step ?? 60, K = _?.showSeconds ?? !1, he = me(l), ge = _?.showTimeInButton ?? !he, _e = _?.showTimeInSummary ?? !he, be = t ?? n, [q, Ce] = S.useState(be), [J, Ee] = S.useState(() => be?.from ? U(be.from, K, G) : null), [Y, De] = S.useState(() => be?.to ? U(be.to, K, G) : null), Ae = S.useRef(t), Fe = S.useMemo(() => Se(q, m, h, D), [
1183
+ function ot({ value: e, defaultValue: n, onValueChange: o, format: c = "yyyy-MM-dd", readableFormat: l = "PPP", placeholder: u, withConfirm: d = !1, min: m, max: h, closeOnSelect: g = !0, withTime: _, presets: v, disabledDates: te, calendarProps: b, open: S, setOpen: C, t: E, dateFnsLocale: D, captionLayout: ce, yearBounds: le, rootRef: O, ...k }) {
1184
+ let A = at(), j = k.numberOfMonths ?? (A ? 1 : 2), { weekStartsOn: N = 1 } = t(), P = v ?? ke(E, N), F = Fe(k.size), I = x.useId(), L = k.id ?? I, R = `${L}-description`, z = k.error !== void 0 && k.error !== null && k.error !== "", B = z || !!(k.invalid || k["aria-invalid"] && k["aria-invalid"] !== "false"), V = [k["aria-describedby"], z ? R : void 0].filter(Boolean).join(" ") || void 0, H = _?.format ?? "24", W = _?.step ?? 60, G = _?.showSeconds ?? !1, me = ge(l), he = _?.showTimeInButton ?? !me, K = _?.showTimeInSummary ?? !me, _e = e ?? n, [q, be] = x.useState(_e), [J, Ce] = x.useState(() => _e?.from ? U(_e.from, G, W) : null), [Y, Ee] = x.useState(() => _e?.to ? U(_e.to, G, W) : null), De = x.useRef(e), Oe = x.useMemo(() => Se(q, m, h, E), [
1168
1185
  q,
1169
1186
  m,
1170
1187
  h,
1171
- D
1172
- ]), Le = Fe != null && Fe !== "", Re = typeof Fe == "string" ? Fe : "";
1173
- S.useEffect(() => {
1174
- t !== void 0 && Ce(t);
1175
- }, [t]), S.useEffect(() => {
1188
+ E
1189
+ ]), je = Oe != null && Oe !== "", Ie = typeof Oe == "string" ? Oe : "";
1190
+ x.useEffect(() => {
1191
+ e !== void 0 && be(e);
1192
+ }, [e]), x.useEffect(() => {
1176
1193
  if (!_?.enabled) {
1177
- Ae.current = t;
1194
+ De.current = e;
1178
1195
  return;
1179
1196
  }
1180
- let e = Ae.current, n = t?.from, r = t?.to;
1181
- n ? Ee(U(n, K, G)) : e?.from && Ee(null), r ? De(U(r, K, G)) : e?.to && De(null), Ae.current = t;
1197
+ let t = De.current, n = e?.from, r = e?.to;
1198
+ n ? Ce(U(n, G, W)) : t?.from && Ce(null), r ? Ee(U(r, G, W)) : t?.to && Ee(null), De.current = e;
1182
1199
  }, [
1183
- t,
1200
+ e,
1184
1201
  _?.enabled,
1185
- K,
1186
- G
1187
- ]), S.useEffect(() => {
1202
+ G,
1203
+ W
1204
+ ]), x.useEffect(() => {
1188
1205
  if (!_?.enabled) return;
1189
1206
  let e = (e) => {
1190
1207
  if (!e) return e;
1191
- let t = fe(e, G, K);
1208
+ let t = fe(e, W, G);
1192
1209
  return e.hours === t.hours && e.minutes === t.minutes && e.seconds === t.seconds ? e : t;
1193
1210
  };
1194
- Ee(e), De(e);
1211
+ Ce(e), Ee(e);
1195
1212
  }, [
1196
1213
  _?.enabled,
1197
- G,
1198
- K
1214
+ W,
1215
+ G
1199
1216
  ]);
1200
- let ze = S.useCallback((e) => {
1217
+ let Re = x.useCallback((e) => {
1201
1218
  let t = e;
1202
1219
  return e && _?.enabled && (t = {
1203
1220
  ...e,
1204
1221
  from: e.from && J ? ye(e.from, J) : e.from,
1205
1222
  to: e.to && Y ? ye(e.to, Y) : e.to
1206
- }), ve(t, c, l, O);
1223
+ }), ve(t, c, l, D);
1207
1224
  }, [
1208
1225
  c,
1209
1226
  l,
1210
- O,
1227
+ D,
1211
1228
  _,
1212
1229
  J,
1213
1230
  Y
1214
- ]), Be = S.useCallback((e) => {
1215
- let t = le(e ?? void 0);
1231
+ ]), ze = x.useCallback((e) => {
1232
+ let t = ue(e ?? void 0);
1233
+ t && Ce(t);
1234
+ }, []), Be = x.useCallback((e) => {
1235
+ let t = ue(e ?? void 0);
1216
1236
  t && Ee(t);
1217
- }, []), Ve = S.useCallback((e) => {
1218
- let t = le(e ?? void 0);
1219
- t && De(t);
1220
- }, []), He = S.useCallback((e, t, n) => t ? !n?.from || n.to ? {
1237
+ }, []), Ve = x.useCallback((e, t, n) => t ? !n?.from || n.to ? {
1221
1238
  from: t,
1222
1239
  to: void 0
1223
1240
  } : t < n.from ? {
@@ -1226,130 +1243,134 @@ function it({ value: t, defaultValue: n, onValueChange: o, format: c = "yyyy-MM-
1226
1243
  } : {
1227
1244
  from: n.from,
1228
1245
  to: t
1229
- } : e, []), X = S.useCallback((e, t) => {
1230
- let n = He(e, t, q);
1231
- if (Ce(n), d || _?.enabled) return;
1232
- o?.(ze(n));
1246
+ } : e, []), He = x.useCallback((e, t) => {
1247
+ let n = Ve(e, t, q);
1248
+ if (be(n), d || _?.enabled) return;
1249
+ o?.(Re(n));
1233
1250
  let r = !!(n?.from && n?.to), i = xe(n, m, h).isValid;
1234
- g && r && i && E(!1);
1251
+ g && r && i && C(!1);
1235
1252
  }, [
1236
1253
  q,
1237
- He,
1254
+ Ve,
1238
1255
  d,
1239
1256
  _,
1240
1257
  o,
1241
- ze,
1258
+ Re,
1242
1259
  m,
1243
1260
  h,
1244
1261
  g,
1245
- E
1246
- ]), Ue = S.useCallback((e) => {
1262
+ C
1263
+ ]), Ue = x.useCallback((e) => {
1247
1264
  let t = e.getValue();
1248
- X(t);
1249
- }, [X]), We = S.useCallback(() => {
1250
- o?.(ze(q)), E(!1);
1265
+ He(t);
1266
+ }, [He]), We = x.useCallback(() => {
1267
+ o?.(Re(q)), C(!1);
1251
1268
  }, [
1252
1269
  q,
1253
1270
  o,
1254
- ze,
1255
- E
1256
- ]), Z = S.useMemo(() => {
1257
- if (_?.enabled && J) return pe(J, K, W, {
1258
- am: D.am,
1259
- pm: D.pm
1271
+ Re,
1272
+ C
1273
+ ]), X = x.useMemo(() => {
1274
+ if (_?.enabled && J) return pe(J, G, H, {
1275
+ am: E.am,
1276
+ pm: E.pm
1260
1277
  });
1261
1278
  }, [
1262
1279
  _?.enabled,
1263
1280
  J,
1264
- K,
1265
- W,
1266
- D
1267
- ]), Q = S.useMemo(() => {
1268
- if (_?.enabled && Y) return pe(Y, K, W, {
1269
- am: D.am,
1270
- pm: D.pm
1281
+ G,
1282
+ H,
1283
+ E
1284
+ ]), Z = x.useMemo(() => {
1285
+ if (_?.enabled && Y) return pe(Y, G, H, {
1286
+ am: E.am,
1287
+ pm: E.pm
1271
1288
  });
1272
1289
  }, [
1273
1290
  _?.enabled,
1274
1291
  Y,
1275
- K,
1276
- W,
1277
- D
1278
- ]), Ge = S.useMemo(() => {
1292
+ G,
1293
+ H,
1294
+ E
1295
+ ]), Q = x.useMemo(() => {
1279
1296
  if (_?.enabled && q?.from) {
1280
- let e = M(q.from, l, { locale: O }), t = ge && Z ? `${e} ${Z}` : e;
1297
+ let e = M(q.from, l, { locale: D }), t = he && X ? `${e} ${X}` : e;
1281
1298
  if (q.to) {
1282
- let e = M(q.to, l, { locale: O });
1283
- return `${t} - ${ge && Q ? `${e} ${Q}` : e}`;
1299
+ let e = M(q.to, l, { locale: D });
1300
+ return `${t} - ${he && Z ? `${e} ${Z}` : e}`;
1284
1301
  }
1285
1302
  return t;
1286
1303
  }
1287
- return we(q, l, u, D.selectDateRange, O);
1304
+ return we(q, l, u, E.selectDateRange, D);
1288
1305
  }, [
1289
1306
  _?.enabled,
1290
1307
  q,
1291
1308
  l,
1292
- ge,
1309
+ he,
1310
+ X,
1293
1311
  Z,
1294
- Q,
1295
1312
  u,
1296
- D,
1297
- O
1298
- ]), Ke = S.useMemo(() => {
1313
+ E,
1314
+ D
1315
+ ]), Ge = x.useMemo(() => {
1299
1316
  if (!q?.from || !q?.to) return;
1300
- let e = M(q.from, l, { locale: O }), t = M(q.to, l, { locale: O });
1301
- return `${_e && Z ? `${e} ${Z}` : e} - ${_e && Q ? `${t} ${Q}` : t}`;
1317
+ let e = M(q.from, l, { locale: D }), t = M(q.to, l, { locale: D });
1318
+ return `${K && X ? `${e} ${X}` : e} - ${K && Z ? `${t} ${Z}` : t}`;
1302
1319
  }, [
1303
1320
  q,
1304
1321
  l,
1305
- O,
1306
- _e,
1307
- Z,
1308
- Q
1322
+ D,
1323
+ K,
1324
+ X,
1325
+ Z
1309
1326
  ]);
1310
- return /* @__PURE__ */ w(je, {
1311
- rootRef: A,
1312
- className: j.className,
1313
- label: j.label,
1314
- hint: j.hint,
1315
- error: j.error,
1316
- triggerId: z,
1317
- describedById: B,
1327
+ return /* @__PURE__ */ w(Me, {
1328
+ rootRef: O,
1329
+ className: k.className,
1330
+ label: k.label,
1331
+ hint: k.hint,
1332
+ error: k.error,
1333
+ triggerId: L,
1334
+ describedById: R,
1318
1335
  children: /* @__PURE__ */ T(re, {
1319
- open: se,
1320
- onOpenChange: E,
1321
- children: [/* @__PURE__ */ w(ne, { render: (e) => {
1322
- let t = Te(j.buttonTone, j.buttonStyle);
1323
- return /* @__PURE__ */ T(a, {
1324
- ...e,
1325
- id: z,
1326
- tone: t.tone,
1327
- buttonStyle: t.buttonStyle,
1328
- size: L,
1329
- "aria-invalid": H,
1330
- "aria-describedby": de,
1331
- className: r(Ie(L), !q && "text-muted-foreground", e.className),
1332
- disabled: j.disabled,
1333
- children: [/* @__PURE__ */ w(oe, {
1334
- className: r(y[L], "shrink-0"),
1335
- "aria-hidden": "true"
1336
- }), /* @__PURE__ */ w(s, {
1337
- tag: "span",
1338
- size: "inherit",
1339
- lineHeight: "tight",
1340
- className: "min-w-0 truncate text-inherit",
1341
- children: Ge
1342
- })]
1343
- });
1344
- } }), /* @__PURE__ */ T(ie, {
1336
+ open: S,
1337
+ onOpenChange: C,
1338
+ children: [/* @__PURE__ */ w(ne, {
1339
+ ref: k.triggerRef,
1340
+ onBlur: k.onBlur,
1341
+ render: (e) => {
1342
+ let t = Te(k.buttonTone, k.buttonStyle);
1343
+ return /* @__PURE__ */ T(a, {
1344
+ ...e,
1345
+ id: L,
1346
+ tone: t.tone,
1347
+ buttonStyle: t.buttonStyle,
1348
+ size: F,
1349
+ "aria-invalid": B,
1350
+ "aria-describedby": V,
1351
+ className: r(Le(F), !q && "text-muted-foreground", e.className),
1352
+ disabled: k.disabled,
1353
+ children: [/* @__PURE__ */ w(se, {
1354
+ className: r(y[F], "shrink-0"),
1355
+ "aria-hidden": "true"
1356
+ }), /* @__PURE__ */ w(s, {
1357
+ tag: "span",
1358
+ size: "inherit",
1359
+ lineHeight: "tight",
1360
+ className: "min-w-0 truncate text-inherit",
1361
+ children: Q
1362
+ })]
1363
+ });
1364
+ }
1365
+ }), /* @__PURE__ */ T(ie, {
1345
1366
  inset: "flush",
1346
1367
  className: "w-auto gap-0",
1347
1368
  align: "start",
1348
- children: [!!j.header && /* @__PURE__ */ w(Ne, { config: j.header }), /* @__PURE__ */ T("div", {
1369
+ children: [!!k.header && /* @__PURE__ */ w(Pe, { config: k.header }), /* @__PURE__ */ T("div", {
1349
1370
  className: "flex flex-col sm:flex-row",
1350
- children: [I.length > 0 && /* @__PURE__ */ w("div", {
1371
+ children: [P.length > 0 && /* @__PURE__ */ w("div", {
1351
1372
  className: "grid grid-cols-2 gap-space-2xs border-b border-border p-surface-xs sm:flex sm:min-w-30 sm:flex-col sm:border-r sm:border-b-0",
1352
- children: I.map((e) => /* @__PURE__ */ w(a, {
1373
+ children: P.map((e) => /* @__PURE__ */ w(a, {
1353
1374
  tone: "secondary",
1354
1375
  buttonStyle: "ghost",
1355
1376
  onClick: () => Ue(e),
@@ -1359,24 +1380,24 @@ function it({ value: t, defaultValue: n, onValueChange: o, format: c = "yyyy-MM-
1359
1380
  }), /* @__PURE__ */ T("div", {
1360
1381
  className: "flex flex-col",
1361
1382
  children: [
1362
- /* @__PURE__ */ w(ke, {
1383
+ /* @__PURE__ */ w(Ae, {
1363
1384
  mode: "range",
1364
1385
  selected: q,
1365
- onSelect: X,
1386
+ onSelect: He,
1366
1387
  defaultMonth: q?.from,
1367
- numberOfMonths: P,
1368
- showOutsideDays: j.showOutsideDays,
1369
- disabled: te ?? j.disabled,
1370
- locale: O,
1388
+ numberOfMonths: j,
1389
+ showOutsideDays: k.showOutsideDays,
1390
+ disabled: te ?? k.disabled,
1391
+ locale: D,
1371
1392
  captionLayout: ce,
1372
- startMonth: k.startMonth,
1373
- endMonth: k.endMonth,
1393
+ startMonth: le.startMonth,
1394
+ endMonth: le.endMonth,
1374
1395
  ...b,
1375
1396
  className: r(i.calendarCompactCell, b?.className)
1376
1397
  }),
1377
1398
  (() => {
1378
- let e = !!q?.from && !j.footer, t = !!_?.enabled && !!q?.from, n = !!(d || _?.enabled) && !j.footer;
1379
- return !e && !t && !Le && !n ? null : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
1399
+ let e = !!q?.from && !k.footer, t = !!_?.enabled && !!q?.from, n = !!(d || _?.enabled) && !k.footer;
1400
+ return !e && !t && !je && !n ? null : /* @__PURE__ */ T(oe, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
1380
1401
  className: "date-picker--range-footer p-surface",
1381
1402
  children: /* @__PURE__ */ T(p, {
1382
1403
  gap: "lg",
@@ -1393,11 +1414,11 @@ function it({ value: t, defaultValue: n, onValueChange: o, format: c = "yyyy-MM-
1393
1414
  children: [/* @__PURE__ */ T(s, {
1394
1415
  tag: "span",
1395
1416
  type: "secondary",
1396
- children: [D.from, ":"]
1417
+ children: [E.from, ":"]
1397
1418
  }), /* @__PURE__ */ T(s, {
1398
1419
  tag: "span",
1399
1420
  weight: "medium",
1400
- children: [M(q.from, l, { locale: O }), _e && Z ? ` ${Z}` : ""]
1421
+ children: [M(q.from, l, { locale: D }), K && X ? ` ${X}` : ""]
1401
1422
  })]
1402
1423
  }), !!q.to && /* @__PURE__ */ T(p, {
1403
1424
  direction: "horizontal",
@@ -1406,11 +1427,11 @@ function it({ value: t, defaultValue: n, onValueChange: o, format: c = "yyyy-MM-
1406
1427
  children: [/* @__PURE__ */ T(s, {
1407
1428
  tag: "span",
1408
1429
  type: "secondary",
1409
- children: [D.to, ":"]
1430
+ children: [E.to, ":"]
1410
1431
  }), /* @__PURE__ */ T(s, {
1411
1432
  tag: "span",
1412
1433
  weight: "medium",
1413
- children: [M(q.to, l, { locale: O }), _e && Q ? ` ${Q}` : ""]
1434
+ children: [M(q.to, l, { locale: D }), K && Z ? ` ${Z}` : ""]
1414
1435
  })]
1415
1436
  })]
1416
1437
  }),
@@ -1421,64 +1442,64 @@ function it({ value: t, defaultValue: n, onValueChange: o, format: c = "yyyy-MM-
1421
1442
  },
1422
1443
  gap: "lg",
1423
1444
  children: [/* @__PURE__ */ w(ae, {
1424
- label: D.startTime,
1425
- children: /* @__PURE__ */ w(tt, {
1426
- value: J ? ue(J, K) : null,
1427
- onValueChange: Be,
1428
- format: W,
1429
- precision: K ? "seconds" : "minutes",
1430
- step: G,
1431
- disabled: j.disabled,
1445
+ label: E.startTime,
1446
+ children: /* @__PURE__ */ w(nt, {
1447
+ value: J ? de(J, G) : null,
1448
+ onValueChange: ze,
1449
+ format: H,
1450
+ precision: G ? "seconds" : "minutes",
1451
+ step: W,
1452
+ disabled: k.disabled,
1432
1453
  size: "sm",
1433
1454
  strings: {
1434
- hours: D.hours,
1435
- minutes: D.minutes,
1436
- seconds: D.seconds,
1437
- am: D.am,
1438
- pm: D.pm
1455
+ hours: E.hours,
1456
+ minutes: E.minutes,
1457
+ seconds: E.seconds,
1458
+ am: E.am,
1459
+ pm: E.pm
1439
1460
  }
1440
1461
  })
1441
1462
  }), !!q.to && /* @__PURE__ */ w(ae, {
1442
- label: D.endTime,
1443
- children: /* @__PURE__ */ w(tt, {
1444
- value: Y ? ue(Y, K) : null,
1445
- onValueChange: Ve,
1446
- format: W,
1447
- precision: K ? "seconds" : "minutes",
1448
- step: G,
1449
- disabled: j.disabled,
1463
+ label: E.endTime,
1464
+ children: /* @__PURE__ */ w(nt, {
1465
+ value: Y ? de(Y, G) : null,
1466
+ onValueChange: Be,
1467
+ format: H,
1468
+ precision: G ? "seconds" : "minutes",
1469
+ step: W,
1470
+ disabled: k.disabled,
1450
1471
  size: "sm",
1451
1472
  strings: {
1452
- hours: D.hours,
1453
- minutes: D.minutes,
1454
- seconds: D.seconds,
1455
- am: D.am,
1456
- pm: D.pm
1473
+ hours: E.hours,
1474
+ minutes: E.minutes,
1475
+ seconds: E.seconds,
1476
+ am: E.am,
1477
+ pm: E.pm
1457
1478
  }
1458
1479
  })
1459
1480
  })]
1460
1481
  }),
1461
1482
  /* @__PURE__ */ w(s, {
1462
1483
  type: "error",
1463
- content: Re,
1464
- hidden: !Le
1484
+ content: Ie,
1485
+ hidden: !je
1465
1486
  }),
1466
1487
  n && /* @__PURE__ */ w(a, {
1467
1488
  tone: "primary",
1468
1489
  onClick: We,
1469
- disabled: !q?.from || !q?.to || !!Fe,
1490
+ disabled: !q?.from || !q?.to || !!Oe,
1470
1491
  className: "w-full",
1471
- children: D.confirm
1492
+ children: E.confirm
1472
1493
  })
1473
1494
  ]
1474
1495
  })
1475
1496
  })] });
1476
1497
  })(),
1477
- !!j.footer && /* @__PURE__ */ w(Me, {
1478
- config: j.footer,
1479
- output: ze(q),
1498
+ !!k.footer && /* @__PURE__ */ w(Ne, {
1499
+ config: k.footer,
1500
+ output: Re(q),
1480
1501
  hasSelection: !!(q?.from && q?.to),
1481
- autoSummary: Ke
1502
+ autoSummary: Ge
1482
1503
  })
1483
1504
  ]
1484
1505
  })]
@@ -1489,10 +1510,10 @@ function it({ value: t, defaultValue: n, onValueChange: o, format: c = "yyyy-MM-
1489
1510
  }
1490
1511
  //#endregion
1491
1512
  //#region src/components/base/date-pickers/date-picker.tsx
1492
- var at = S.forwardRef(function(t, i) {
1493
- let [a, o] = S.useState(!1), s = e(), c = t.locale ?? s.locale ?? z, l = n(Le, t.strings), u = S.useMemo(() => t.enableYearDropdown || t.yearSelection?.enabled ? "dropdown" : "label", [t.enableYearDropdown, t.yearSelection]), d = S.useMemo(() => he(t.yearSelection), [t.yearSelection]), f = r("date-picker--component", t.className);
1494
- return Ee(t) ? /* @__PURE__ */ w(nt, {
1495
- ...t,
1513
+ var st = x.forwardRef(function(e, i) {
1514
+ let [a, o] = x.useState(!1), s = t(), c = e.locale ?? s.locale ?? z, l = n(Re, e.strings), u = x.useMemo(() => e.enableYearDropdown || e.yearSelection?.enabled ? "dropdown" : "label", [e.enableYearDropdown, e.yearSelection]), d = x.useMemo(() => K(e.yearSelection), [e.yearSelection]), f = r("date-picker--component", e.className);
1515
+ return Ee(e) ? /* @__PURE__ */ w(rt, {
1516
+ ...e,
1496
1517
  rootRef: i,
1497
1518
  className: f,
1498
1519
  open: a,
@@ -1501,8 +1522,8 @@ var at = S.forwardRef(function(t, i) {
1501
1522
  dateFnsLocale: c,
1502
1523
  captionLayout: u,
1503
1524
  yearBounds: d
1504
- }) : Y(t) ? /* @__PURE__ */ w(rt, {
1505
- ...t,
1525
+ }) : De(e) ? /* @__PURE__ */ w(it, {
1526
+ ...e,
1506
1527
  rootRef: i,
1507
1528
  className: f,
1508
1529
  open: a,
@@ -1511,8 +1532,8 @@ var at = S.forwardRef(function(t, i) {
1511
1532
  dateFnsLocale: c,
1512
1533
  captionLayout: u,
1513
1534
  yearBounds: d
1514
- }) : De(t) ? /* @__PURE__ */ w(it, {
1515
- ...t,
1535
+ }) : Oe(e) ? /* @__PURE__ */ w(ot, {
1536
+ ...e,
1516
1537
  rootRef: i,
1517
1538
  className: f,
1518
1539
  open: a,
@@ -1523,8 +1544,8 @@ var at = S.forwardRef(function(t, i) {
1523
1544
  yearBounds: d
1524
1545
  }) : null;
1525
1546
  });
1526
- at.displayName = "DatePicker";
1547
+ st.displayName = "DatePicker";
1527
1548
  //#endregion
1528
- export { Ie as a, Me as c, Le as i, je as l, tt as n, Pe as o, He as r, Ne as s, at as t, Te as u };
1549
+ export { Le as a, Ne as c, Re as i, Me as l, nt as n, Fe as o, Ue as r, Pe as s, st as t, Te as u };
1529
1550
 
1530
- //# sourceMappingURL=date-picker-B2K3ucWn.js.map
1551
+ //# sourceMappingURL=date-picker-RlIzKom_.js.map