themelia-react-ui 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (707) hide show
  1. package/CHANGELOG.md +527 -0
  2. package/README.md +47 -14
  3. package/THIRD_PARTY_NOTICES.md +13 -0
  4. package/dist/accordion-Cjb6sx0G.js +208 -0
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
  17. package/dist/auth-ax2BqjrI.js.map +1 -0
  18. package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/badge-HpFqoqSY.js +93 -0
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +3 -0
  28. package/dist/base/buttons.js +2 -3
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +50 -46
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +69 -81
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +3 -3
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +7 -7
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +20 -20
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +3 -0
  50. package/dist/base/navigation.js +7 -7
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +216 -220
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +147 -137
  59. package/dist/base/signature-pad.js.map +1 -1
  60. package/dist/base/skeleton.js +1 -1
  61. package/dist/base/spinner.js +79 -2
  62. package/dist/base/spinner.js.map +1 -0
  63. package/dist/base/structure.js +1 -1
  64. package/dist/base/table.js +1 -1
  65. package/dist/base/text-inputs.js +2 -2
  66. package/dist/base/toaster.js +46 -45
  67. package/dist/base/toaster.js.map +1 -1
  68. package/dist/base/tree.js +1 -1
  69. package/dist/base/upload-queue.js +1 -1
  70. package/dist/base/upload.js +3 -3
  71. package/dist/base/value-inputs.js +2 -2
  72. package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
  73. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  74. package/dist/blocks/admin.js +171 -169
  75. package/dist/blocks/admin.js.map +1 -1
  76. package/dist/blocks/ai.js +308 -285
  77. package/dist/blocks/ai.js.map +1 -1
  78. package/dist/blocks/analytics/usage-card.js +1 -1
  79. package/dist/blocks/analytics.js +626 -589
  80. package/dist/blocks/analytics.js.map +1 -1
  81. package/dist/blocks/collaboration.js +1 -1
  82. package/dist/blocks/commerce/receipt.js +1 -1
  83. package/dist/blocks/commerce.js +2051 -1329
  84. package/dist/blocks/commerce.js.map +1 -1
  85. package/dist/blocks/data-display.js +3 -2
  86. package/dist/blocks/onboarding.js +68 -58
  87. package/dist/blocks/onboarding.js.map +1 -1
  88. package/dist/blocks/planning.js +27 -26
  89. package/dist/blocks/planning.js.map +1 -1
  90. package/dist/blocks/timelines.js +1 -1
  91. package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
  92. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  93. package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
  94. package/dist/button-DVzspB_G.js.map +1 -0
  95. package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
  96. package/dist/buttons-DPZekJFu.js.map +1 -0
  97. package/dist/cards-BaBZR-AU.js +68 -0
  98. package/dist/cards-BaBZR-AU.js.map +1 -0
  99. package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
  100. package/dist/chart-ZOYyK2xG.js.map +1 -0
  101. package/dist/checkbox-AWIhNhmo.js +36 -0
  102. package/dist/checkbox-AWIhNhmo.js.map +1 -0
  103. package/dist/choice-inputs-CNHvARCJ.js +770 -0
  104. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  105. package/dist/code-block-DeneBJR_.js +185 -0
  106. package/dist/code-block-DeneBJR_.js.map +1 -0
  107. package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
  108. package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  109. package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
  110. package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
  111. package/dist/combobox-C0EQW6dr.js +875 -0
  112. package/dist/combobox-C0EQW6dr.js.map +1 -0
  113. package/dist/combobox-xCQ2RMNE.js +309 -0
  114. package/dist/combobox-xCQ2RMNE.js.map +1 -0
  115. package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
  116. package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
  117. package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
  118. package/dist/comments-BYYlTA8E.js.map +1 -0
  119. package/dist/components/base/action-menu/action-menu.d.ts +21 -4
  120. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  121. package/dist/components/base/action-menu/index.d.ts +1 -0
  122. package/dist/components/base/badge/badge.recipes.d.ts +5 -5
  123. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  124. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  125. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  126. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  127. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  128. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  129. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  130. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  131. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  132. package/dist/components/base/chart/chart.d.ts +2 -5
  133. package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
  134. package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
  135. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  136. package/dist/components/base/combobox/index.d.ts +30 -4
  137. package/dist/components/base/display/alert-dialog.d.ts +6 -5
  138. package/dist/components/base/display/dialog.d.ts +4 -8
  139. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  140. package/dist/components/base/forms/form-sizing.d.ts +26 -15
  141. package/dist/components/base/metadata-list/index.d.ts +12 -0
  142. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  143. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  144. package/dist/components/base/navigation/index.d.ts +1 -1
  145. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  146. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  147. package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
  148. package/dist/components/base/navigation/pagination.d.ts +5 -2
  149. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  150. package/dist/components/base/sheet/sheet.d.ts +4 -8
  151. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  152. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  153. package/dist/components/base/table/index.d.ts +9 -2
  154. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  155. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  156. package/dist/components/base/upload/upload.recipes.d.ts +25 -3
  157. package/dist/components/base/value-inputs/index.d.ts +5 -5
  158. package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
  159. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  160. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  161. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  162. package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
  163. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  164. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  165. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  166. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  167. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  168. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  169. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  170. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  171. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
  172. package/dist/components/blocks/commerce/index.d.ts +13 -5
  173. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  174. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  175. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  176. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  177. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  178. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  179. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  180. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  181. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  182. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  183. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  184. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  185. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  186. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  187. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  188. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  189. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  190. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  191. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  192. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  193. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  194. package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
  195. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  196. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  197. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  198. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  199. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  200. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  201. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  202. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  203. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  204. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  205. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  206. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  207. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  208. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  209. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  210. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  211. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  212. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  213. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  214. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  215. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  216. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  217. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  218. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  219. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  220. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  221. package/dist/components/features/combobox/types.d.ts +4 -0
  222. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  223. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  224. package/dist/components/features/kanban/kanban.d.ts +1 -1
  225. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  226. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  227. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  228. package/dist/components/features/media-library/index.d.ts +1 -1
  229. package/dist/components/features/media-library/media-library.d.ts +1 -1
  230. package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
  231. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  232. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  233. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  234. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  235. package/dist/components/features/overlays/dialog.d.ts +1 -1
  236. package/dist/components/features/overlays/index.d.ts +1 -1
  237. package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
  238. package/dist/components/features/overlays/overlays.types.d.ts +20 -0
  239. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  240. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  241. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  242. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  243. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  244. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  245. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  246. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  247. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  248. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  249. package/dist/components/features/products/products.types.d.ts +9 -2
  250. package/dist/components/features/resource/index.d.ts +1 -1
  251. package/dist/components/features/resource/resource.d.ts +1 -1
  252. package/dist/components/features/resource/resource.types.d.ts +34 -6
  253. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  254. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  255. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  256. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  257. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
  258. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  259. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
  260. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  261. package/dist/components/features/sync/index.d.ts +26 -3
  262. package/dist/components/features/table/data-table.d.ts +1 -1
  263. package/dist/components/features/table/table-header.d.ts +1 -1
  264. package/dist/components/features/table/table.strings.d.ts +55 -1
  265. package/dist/components/features/table/table.types.d.ts +49 -11
  266. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  267. package/dist/components/layout/page/index.d.ts +1 -1
  268. package/dist/components/layout/page/page.types.d.ts +33 -36
  269. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  270. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  271. package/dist/components/layout/settings/settings.d.ts +16 -2
  272. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  273. package/dist/components/primitives/number.d.ts +4 -2
  274. package/dist/components/primitives/value.d.ts +3 -1
  275. package/dist/components/typography/rich-text/index.d.ts +1 -1
  276. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  277. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  278. package/dist/components/typography/text-link.d.ts +8 -3
  279. package/dist/components/ui/checkbox.d.ts +4 -3
  280. package/dist/components/ui/combobox.d.ts +6 -2
  281. package/dist/components/ui/item.d.ts +8 -8
  282. package/dist/components/ui/overlay.recipes.d.ts +0 -9
  283. package/dist/components/ui/switch.d.ts +2 -2
  284. package/dist/components/ui/tabs.d.ts +1 -1
  285. package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
  286. package/dist/containers-Mu1LMGV1.js.map +1 -0
  287. package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
  288. package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
  289. package/dist/data-display-DT_khPl_.js +971 -0
  290. package/dist/data-display-DT_khPl_.js.map +1 -0
  291. package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
  292. package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
  293. package/dist/date-picker-ay0Pha_a.js +1530 -0
  294. package/dist/date-picker-ay0Pha_a.js.map +1 -0
  295. package/dist/date-pickers-Ccw8DL2b.js +175 -0
  296. package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
  297. package/dist/display-hAc1HjpI.js +344 -0
  298. package/dist/display-hAc1HjpI.js.map +1 -0
  299. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  300. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  301. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  302. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  303. package/dist/features/activities.js +478 -542
  304. package/dist/features/activities.js.map +1 -1
  305. package/dist/features/ai-chat.js +209 -199
  306. package/dist/features/ai-chat.js.map +1 -1
  307. package/dist/features/appointment-calendar.js +683 -0
  308. package/dist/features/appointment-calendar.js.map +1 -0
  309. package/dist/features/async-preview.js +109 -107
  310. package/dist/features/async-preview.js.map +1 -1
  311. package/dist/features/combobox.js +1 -1
  312. package/dist/features/comments.js +1 -1
  313. package/dist/features/data-view.js +30 -29
  314. package/dist/features/data-view.js.map +1 -1
  315. package/dist/features/email-composer/engine.js +1 -1
  316. package/dist/features/email-composer.js +285 -283
  317. package/dist/features/email-composer.js.map +1 -1
  318. package/dist/features/event-calendar.js +282 -273
  319. package/dist/features/event-calendar.js.map +1 -1
  320. package/dist/features/filters.js +1 -1
  321. package/dist/features/global-search.js +318 -318
  322. package/dist/features/global-search.js.map +1 -1
  323. package/dist/features/kanban.js +146 -147
  324. package/dist/features/kanban.js.map +1 -1
  325. package/dist/features/map.js +269 -268
  326. package/dist/features/map.js.map +1 -1
  327. package/dist/features/media-library.js +970 -863
  328. package/dist/features/media-library.js.map +1 -1
  329. package/dist/features/mentions.js +1 -1
  330. package/dist/features/overlays.js +1 -1
  331. package/dist/features/products.js +1137 -1124
  332. package/dist/features/products.js.map +1 -1
  333. package/dist/features/questionnaire.js +206 -194
  334. package/dist/features/questionnaire.js.map +1 -1
  335. package/dist/features/resource-assignment.js +24 -21
  336. package/dist/features/resource-assignment.js.map +1 -1
  337. package/dist/features/resource.js +77 -69
  338. package/dist/features/resource.js.map +1 -1
  339. package/dist/features/rich-text-editor.js +30 -11
  340. package/dist/features/rich-text-editor.js.map +1 -1
  341. package/dist/features/schema-form.js +35 -33
  342. package/dist/features/schema-form.js.map +1 -1
  343. package/dist/features/suggestions.js +3 -3
  344. package/dist/features/sync.js +11 -5
  345. package/dist/features/sync.js.map +1 -1
  346. package/dist/features/table.js +1 -1
  347. package/dist/features/theme-tweaker.js +501 -496
  348. package/dist/features/theme-tweaker.js.map +1 -1
  349. package/dist/feedback-BYIhtitP.js +239 -0
  350. package/dist/feedback-BYIhtitP.js.map +1 -0
  351. package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
  352. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  353. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  354. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  355. package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
  356. package/dist/filters-BGfvjP4d.js.map +1 -0
  357. package/dist/focus-recipes-B653VaLq.js +12 -0
  358. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  359. package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
  360. package/dist/form-field-CwH9y77i.js.map +1 -0
  361. package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
  362. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  363. package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
  364. package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
  365. package/dist/forms-numeric-B_jraJaQ.js +906 -0
  366. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  367. package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
  368. package/dist/header-CGXuhcRm.js.map +1 -0
  369. package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
  370. package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
  371. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  372. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  373. package/dist/icon-badge-DYKIwvOV.js +55 -0
  374. package/dist/icon-badge-DYKIwvOV.js.map +1 -0
  375. package/dist/index.js +7 -7
  376. package/dist/input-CZw8iU99.js +21 -0
  377. package/dist/input-CZw8iU99.js.map +1 -0
  378. package/dist/input-DQdEd0YD.js +263 -0
  379. package/dist/input-DQdEd0YD.js.map +1 -0
  380. package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
  381. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  382. package/dist/item-K5_ghvze.js +275 -0
  383. package/dist/item-K5_ghvze.js.map +1 -0
  384. package/dist/layer-recipes-CCpklYME.js +13 -0
  385. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  386. package/dist/layout/app-shell.js +1 -1
  387. package/dist/layout/auth.js +1 -1
  388. package/dist/layout/containers.js +1 -1
  389. package/dist/layout/header.js +1 -1
  390. package/dist/layout/hooks.js +1 -1
  391. package/dist/layout/navigation.js +1 -1
  392. package/dist/layout/page.js +1 -1
  393. package/dist/layout/settings.js +1 -1
  394. package/dist/layout/sidebar.js +2 -2
  395. package/dist/layout/workspace.js +1 -1
  396. package/dist/layout.js +10 -10
  397. package/dist/lib/affordance-geometry.generated.d.ts +72 -0
  398. package/dist/lib/editable-text-recipe.d.ts +4 -4
  399. package/dist/lib/field-affordance-recipes.d.ts +8 -3
  400. package/dist/lib/field-state-recipes.d.ts +9 -8
  401. package/dist/lib/focus-recipes.d.ts +24 -0
  402. package/dist/lib/interaction-recipes.d.ts +40 -0
  403. package/dist/lib/layer-recipes.d.ts +19 -0
  404. package/dist/lib/motion-recipes.d.ts +1 -0
  405. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
  406. package/dist/lib/safe-image-src.d.ts +10 -0
  407. package/dist/lib/sanitize-html.d.ts +15 -3
  408. package/dist/lib/surface-recipes.d.ts +47 -7
  409. package/dist/lib/theme-mode-css.d.ts +7 -0
  410. package/dist/lib/token-merge.generated.d.ts +9 -6
  411. package/dist/lib/tone-recipes.d.ts +87 -0
  412. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  413. package/dist/lib/ui-provider/index.d.ts +2 -2
  414. package/dist/lib/ui-provider/types.d.ts +11 -2
  415. package/dist/lib/utils.js +1 -1
  416. package/dist/media-gallery-3zIVLMWH.js +203 -0
  417. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  418. package/dist/mentions-utuUvH1K.js +570 -0
  419. package/dist/mentions-utuUvH1K.js.map +1 -0
  420. package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
  421. package/dist/message-DZ_ruyUV.js.map +1 -0
  422. package/dist/metadata-list-8N16ZMW_.js +405 -0
  423. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  424. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  425. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  426. package/dist/navigation-Bnotn4AQ.js +145 -0
  427. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  428. package/dist/navigation-BzhHI3lo.js +269 -0
  429. package/dist/navigation-BzhHI3lo.js.map +1 -0
  430. package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  431. package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  432. package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
  433. package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
  434. package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
  435. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  436. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  437. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  438. package/dist/overlays-DNWmZrJ4.js +1001 -0
  439. package/dist/overlays-DNWmZrJ4.js.map +1 -0
  440. package/dist/page-Bgl1F560.js +224 -0
  441. package/dist/page-Bgl1F560.js.map +1 -0
  442. package/dist/page-header-commands-DOb6WsfD.js +126 -0
  443. package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
  444. package/dist/pagination-BL25hu2s.js +158 -0
  445. package/dist/pagination-BL25hu2s.js.map +1 -0
  446. package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
  447. package/dist/popover-7_m66eYW.js.map +1 -0
  448. package/dist/popover-menu-B9WWygpa.js +100 -0
  449. package/dist/popover-menu-B9WWygpa.js.map +1 -0
  450. package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
  451. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  452. package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
  453. package/dist/primitives-BFK08r9M.js.map +1 -0
  454. package/dist/primitives.js +4 -4
  455. package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
  456. package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
  457. package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
  458. package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  459. package/dist/rich-text-GOUyKQ-s.js +78 -0
  460. package/dist/rich-text-GOUyKQ-s.js.map +1 -0
  461. package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
  462. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  463. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  464. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  465. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  466. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  467. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  468. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  469. package/dist/sanitize-html-DsQmI48u.js +92 -0
  470. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  471. package/dist/scroll-area-DcI-M1UT.js +48 -0
  472. package/dist/scroll-area-DcI-M1UT.js.map +1 -0
  473. package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
  474. package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
  475. package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
  476. package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
  477. package/dist/services/actions/action-adapters.d.ts +18 -0
  478. package/dist/services/actions/index.d.ts +1 -1
  479. package/dist/services/actions.js +16 -4
  480. package/dist/services/actions.js.map +1 -1
  481. package/dist/settings-ybnjVwbd.js +171 -0
  482. package/dist/settings-ybnjVwbd.js.map +1 -0
  483. package/dist/sheet-CGpB3omz.js +211 -0
  484. package/dist/sheet-CGpB3omz.js.map +1 -0
  485. package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
  486. package/dist/sidebar-A0ElHINE.js.map +1 -0
  487. package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
  488. package/dist/sidebar-CPx_7YBa.js.map +1 -0
  489. package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
  490. package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  491. package/dist/smart-card-DiC5aac3.js +604 -0
  492. package/dist/smart-card-DiC5aac3.js.map +1 -0
  493. package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
  494. package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
  495. package/dist/style.css +1 -1
  496. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  497. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  498. package/dist/table-BweFy_P9.js +1530 -0
  499. package/dist/table-BweFy_P9.js.map +1 -0
  500. package/dist/table-DsfzoUia.js +175 -0
  501. package/dist/table-DsfzoUia.js.map +1 -0
  502. package/dist/tabs-CDocW5D1.js +191 -0
  503. package/dist/tabs-CDocW5D1.js.map +1 -0
  504. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  505. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  506. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  507. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  508. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  509. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  510. package/dist/theme.css +285 -228
  511. package/dist/themes/green.css +16 -12
  512. package/dist/timelines-CwM_9IhD.js +457 -0
  513. package/dist/timelines-CwM_9IhD.js.map +1 -0
  514. package/dist/tone-recipes-BPsRAvhu.js +73 -0
  515. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  516. package/dist/tooltip-yiRJUFjp.js +111 -0
  517. package/dist/tooltip-yiRJUFjp.js.map +1 -0
  518. package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
  519. package/dist/tree-WnKQzwbq.js.map +1 -0
  520. package/dist/typography/rich-text.js +1 -1
  521. package/dist/typography-UTnveOEy.js +117 -0
  522. package/dist/typography-UTnveOEy.js.map +1 -0
  523. package/dist/typography.js +2 -2
  524. package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
  525. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  526. package/dist/ui-provider.js +3 -3
  527. package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
  528. package/dist/upload-CXyxmQBP.js.map +1 -0
  529. package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
  530. package/dist/upload-queue-Boscubn9.js.map +1 -0
  531. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  532. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  533. package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
  534. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  535. package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
  536. package/dist/utils-BRhFDwuU.js.map +1 -0
  537. package/dist/value-inputs-DXPDjvBU.js +963 -0
  538. package/dist/value-inputs-DXPDjvBU.js.map +1 -0
  539. package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
  540. package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  541. package/dist/workspace-Cdrg7k9f.js +408 -0
  542. package/dist/workspace-Cdrg7k9f.js.map +1 -0
  543. package/docs/consumer-skill/SKILL.md +21 -22
  544. package/docs/consumer-skill/examples/app-layout.tsx +1 -1
  545. package/docs/consumer-skill/examples/composition.tsx +3 -3
  546. package/docs/consumer-skill/examples/detail.tsx +59 -12
  547. package/docs/consumer-skill/examples/edit.tsx +1 -1
  548. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  549. package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
  550. package/docs/consumer-skill/examples/website.tsx +1 -1
  551. package/docs/consumer-skill/references/agents-md.md +33 -0
  552. package/docs/consumer-skill/references/analytics.md +1 -1
  553. package/docs/consumer-skill/references/composition.md +58 -13
  554. package/docs/consumer-skill/references/design-contract.md +12 -3
  555. package/docs/consumer-skill/references/installation.md +11 -1
  556. package/docs/consumer-skill/references/integration.md +4 -3
  557. package/docs/consumer-skill/references/public-api.json +956 -453
  558. package/docs/consumer-skill/references/review.md +32 -5
  559. package/docs/consumer-skill/references/theming.md +78 -9
  560. package/docs/consumer-skill/references/tokens.json +1 -1
  561. package/docs/consumer-skill/references/workflows.md +54 -10
  562. package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
  563. package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
  564. package/package.json +17 -5
  565. package/dist/accordion-CQXVcd7Q.js +0 -205
  566. package/dist/accordion-CQXVcd7Q.js.map +0 -1
  567. package/dist/action-menu-BTpyPWJ2.js +0 -264
  568. package/dist/action-menu-BTpyPWJ2.js.map +0 -1
  569. package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
  570. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
  571. package/dist/ai-artifact-2PQ2fItc.js +0 -1112
  572. package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
  573. package/dist/attachment-q69dlt5Y.js +0 -244
  574. package/dist/attachment-q69dlt5Y.js.map +0 -1
  575. package/dist/auth-M3vGMgDR.js.map +0 -1
  576. package/dist/avatar-djdaaQ_s.js.map +0 -1
  577. package/dist/badge-0tATj-tW.js +0 -92
  578. package/dist/badge-0tATj-tW.js.map +0 -1
  579. package/dist/breadcrumbs-BG_FfMK4.js +0 -128
  580. package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
  581. package/dist/button-BS3KDg00.js.map +0 -1
  582. package/dist/button-R9CCoH7A.js.map +0 -1
  583. package/dist/buttons-DS0ZIwJ_.js +0 -99
  584. package/dist/buttons-DS0ZIwJ_.js.map +0 -1
  585. package/dist/cards-QoJ4syG9.js +0 -66
  586. package/dist/cards-QoJ4syG9.js.map +0 -1
  587. package/dist/chart-DwYRKKc-.js.map +0 -1
  588. package/dist/checkbox-B7ygNTYp.js +0 -35
  589. package/dist/checkbox-B7ygNTYp.js.map +0 -1
  590. package/dist/choice-inputs-DrJ17tpL.js +0 -752
  591. package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
  592. package/dist/code-block-CD0B7M93.js +0 -183
  593. package/dist/code-block-CD0B7M93.js.map +0 -1
  594. package/dist/combobox-6dvVny2q.js +0 -272
  595. package/dist/combobox-6dvVny2q.js.map +0 -1
  596. package/dist/combobox-CB7039j7.js +0 -865
  597. package/dist/combobox-CB7039j7.js.map +0 -1
  598. package/dist/comments-You0Bzbr.js.map +0 -1
  599. package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
  600. package/dist/containers-D_L4mTVb.js.map +0 -1
  601. package/dist/data-display-3xWQUnMA.js +0 -1335
  602. package/dist/data-display-3xWQUnMA.js.map +0 -1
  603. package/dist/date-picker-DrDFj8Lo.js +0 -1527
  604. package/dist/date-picker-DrDFj8Lo.js.map +0 -1
  605. package/dist/date-pickers-CnFCb0n2.js +0 -174
  606. package/dist/date-pickers-CnFCb0n2.js.map +0 -1
  607. package/dist/display-DrdvPwF0.js +0 -343
  608. package/dist/display-DrdvPwF0.js.map +0 -1
  609. package/dist/dropdown-menu-CURh59jb.js +0 -193
  610. package/dist/dropdown-menu-CURh59jb.js.map +0 -1
  611. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  612. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  613. package/dist/feedback-C7nR0UtT.js +0 -232
  614. package/dist/feedback-C7nR0UtT.js.map +0 -1
  615. package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
  616. package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
  617. package/dist/field-state-recipes-C-MFBX_8.js +0 -11
  618. package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
  619. package/dist/filters-Da-gNPsE.js.map +0 -1
  620. package/dist/form-field-VZRULhUK.js.map +0 -1
  621. package/dist/form-sizing-uWP4lzVh.js.map +0 -1
  622. package/dist/forms-numeric-D3CO60IF.js +0 -905
  623. package/dist/forms-numeric-D3CO60IF.js.map +0 -1
  624. package/dist/header-2ycNqGOR.js.map +0 -1
  625. package/dist/icon-badge-DKlaKXoo.js +0 -53
  626. package/dist/icon-badge-DKlaKXoo.js.map +0 -1
  627. package/dist/input-BoLm9Hks.js +0 -20
  628. package/dist/input-BoLm9Hks.js.map +0 -1
  629. package/dist/input-DhQdBnV3.js +0 -255
  630. package/dist/input-DhQdBnV3.js.map +0 -1
  631. package/dist/item-xzh8Df65.js +0 -264
  632. package/dist/item-xzh8Df65.js.map +0 -1
  633. package/dist/media-gallery-DQUQ0m3O.js +0 -201
  634. package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
  635. package/dist/mentions-DwnO1hh4.js +0 -564
  636. package/dist/mentions-DwnO1hh4.js.map +0 -1
  637. package/dist/message-YfFmbXNP.js.map +0 -1
  638. package/dist/navigation-Cbp5V8gG.js +0 -264
  639. package/dist/navigation-Cbp5V8gG.js.map +0 -1
  640. package/dist/navigation-Cs1npsPm.js +0 -300
  641. package/dist/navigation-Cs1npsPm.js.map +0 -1
  642. package/dist/overlay.recipes-CNO2S9V6.js +0 -34
  643. package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
  644. package/dist/overlays-DhZO7N-I.js +0 -994
  645. package/dist/overlays-DhZO7N-I.js.map +0 -1
  646. package/dist/page-C6R_8jFt.js +0 -325
  647. package/dist/page-C6R_8jFt.js.map +0 -1
  648. package/dist/page-header-hUTzcRZX.js +0 -112
  649. package/dist/page-header-hUTzcRZX.js.map +0 -1
  650. package/dist/pagination-Cm0jqa3I.js +0 -149
  651. package/dist/pagination-Cm0jqa3I.js.map +0 -1
  652. package/dist/popover-Dcv_9jxr.js.map +0 -1
  653. package/dist/popover-menu-DnRFKnHP.js +0 -99
  654. package/dist/popover-menu-DnRFKnHP.js.map +0 -1
  655. package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
  656. package/dist/primitives-BHrwQXFC.js.map +0 -1
  657. package/dist/rich-text-editor-CF8QYt5p.js +0 -574
  658. package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
  659. package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
  660. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
  661. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  662. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  663. package/dist/rich-text-j-FGAeZW.js +0 -32
  664. package/dist/rich-text-j-FGAeZW.js.map +0 -1
  665. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  666. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  667. package/dist/scroll-area-DRdr16Pt.js +0 -47
  668. package/dist/scroll-area-DRdr16Pt.js.map +0 -1
  669. package/dist/settings-DHk0L2MF.js +0 -161
  670. package/dist/settings-DHk0L2MF.js.map +0 -1
  671. package/dist/sheet-DRFNY1_D.js +0 -207
  672. package/dist/sheet-DRFNY1_D.js.map +0 -1
  673. package/dist/sidebar-Cb8WzOvE.js.map +0 -1
  674. package/dist/sidebar-Crc9M9JV.js.map +0 -1
  675. package/dist/smart-card-Bek-TwUp.js +0 -599
  676. package/dist/smart-card-Bek-TwUp.js.map +0 -1
  677. package/dist/spinner-CmTAbEp0.js +0 -80
  678. package/dist/spinner-CmTAbEp0.js.map +0 -1
  679. package/dist/surface-recipes-DOdoBXGm.js +0 -28
  680. package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
  681. package/dist/table-D6zKeYQX.js +0 -162
  682. package/dist/table-D6zKeYQX.js.map +0 -1
  683. package/dist/table-Dn4XSrSB.js +0 -1444
  684. package/dist/table-Dn4XSrSB.js.map +0 -1
  685. package/dist/tabs-Dk8E_knt.js +0 -189
  686. package/dist/tabs-Dk8E_knt.js.map +0 -1
  687. package/dist/text-inputs-BFpku0Qd.js +0 -331
  688. package/dist/text-inputs-BFpku0Qd.js.map +0 -1
  689. package/dist/theme-scope-kStaAer0.js +0 -39
  690. package/dist/theme-scope-kStaAer0.js.map +0 -1
  691. package/dist/timelines-CxuAFIc2.js +0 -439
  692. package/dist/timelines-CxuAFIc2.js.map +0 -1
  693. package/dist/tree-BotPlyiD.js.map +0 -1
  694. package/dist/typography-CAr3dQhX.js +0 -116
  695. package/dist/typography-CAr3dQhX.js.map +0 -1
  696. package/dist/ui-provider-D2_TeLqw.js.map +0 -1
  697. package/dist/upload-B0WHW7ak.js.map +0 -1
  698. package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
  699. package/dist/usage-card-U0YBLTNT.js.map +0 -1
  700. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  701. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  702. package/dist/utils-Cospvlj1.js.map +0 -1
  703. package/dist/value-inputs-CjfzGMsN.js +0 -854
  704. package/dist/value-inputs-CjfzGMsN.js.map +0 -1
  705. package/dist/workspace-YoFjXi6i.js +0 -394
  706. package/dist/workspace-YoFjXi6i.js.map +0 -1
  707. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -0,0 +1,1530 @@
1
+ "use client";
2
+ import { o as e, s as t } from "./ui-provider-C_U0Xma4.js";
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";
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";
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-7_m66eYW.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";
24
+ import { addDays as k, endOfMonth as A, endOfWeek as j, format as M, startOfMonth as N, startOfWeek as P } from "date-fns";
25
+ import { DayPicker as F, getDefaultClassNames as I } from "react-day-picker";
26
+ import { Toggle as L } from "@base-ui/react/toggle";
27
+ import { ToggleGroup as R } from "@base-ui/react/toggle-group";
28
+ import { enUS as z } from "date-fns/locale";
29
+ function B(e) {
30
+ return e.toString().padStart(2, "0");
31
+ }
32
+ function V(e, t, n) {
33
+ return Math.min(Math.max(e, t), n);
34
+ }
35
+ function H(e, t) {
36
+ if (t <= 0) return e;
37
+ let n = Math.floor(86399 / t) * t, r = Math.round(e / t) * t;
38
+ return Math.max(0, Math.min(r, n));
39
+ }
40
+ function le(e) {
41
+ if (!e) return null;
42
+ let t = e.split(":");
43
+ if (t.length < 2 || t.length > 3) return null;
44
+ let [n, r, i] = t, a = V(Number.parseInt(n, 10), 0, 23), o = V(Number.parseInt(r, 10), 0, 59), s = V(Number.parseInt(i ?? "0", 10), 0, 59);
45
+ return Number.isNaN(a) || Number.isNaN(o) || Number.isNaN(s) ? null : {
46
+ hours: a,
47
+ minutes: o,
48
+ seconds: s
49
+ };
50
+ }
51
+ function ue(e, t) {
52
+ let n = t ? `:${B(e.seconds)}` : "";
53
+ return `${B(e.hours)}:${B(e.minutes)}${n}`;
54
+ }
55
+ function U(e, t, n) {
56
+ let r = Number.isFinite(e?.getTime?.()) ? e : /* @__PURE__ */ new Date(), i = r.getHours(), a = r.getMinutes(), o = t ? r.getSeconds() : 0, s = H(i * 3600 + a * 60 + o, n), c = Math.floor(s / 3600), l = Math.floor(s % 3600 / 60), u = s % 60;
57
+ return {
58
+ hours: c,
59
+ minutes: l,
60
+ seconds: t ? u : 0
61
+ };
62
+ }
63
+ function de(e, t, n) {
64
+ if (t === "12") {
65
+ let t = e.hours >= 12 ? "PM" : "AM", r = e.hours % 12;
66
+ return r === 0 && (r = 12), {
67
+ hours: B(r),
68
+ minutes: B(e.minutes),
69
+ seconds: n ? B(e.seconds) : void 0,
70
+ period: t
71
+ };
72
+ }
73
+ return {
74
+ hours: B(e.hours),
75
+ minutes: B(e.minutes),
76
+ seconds: n ? B(e.seconds) : void 0
77
+ };
78
+ }
79
+ function W(e, t, n) {
80
+ let r = (e) => {
81
+ let t = Number.parseInt(e ?? "0", 10);
82
+ return Number.isNaN(t) ? 0 : t;
83
+ }, i = r(e.hours), a = V(r(e.minutes), 0, 59), o = n ? V(r(e.seconds), 0, 59) : 0;
84
+ if (t === "12") {
85
+ i = V(i, 1, 12);
86
+ let t = (e.period ?? "AM") === "PM";
87
+ i %= 12, t && (i += 12);
88
+ } else i = V(i, 0, 23);
89
+ return {
90
+ hours: i,
91
+ minutes: a,
92
+ seconds: o
93
+ };
94
+ }
95
+ function fe(e, t, n) {
96
+ let r = H(e.hours * 3600 + e.minutes * 60 + e.seconds, t);
97
+ return {
98
+ hours: Math.floor(r / 3600),
99
+ minutes: Math.floor(r % 3600 / 60),
100
+ seconds: n ? r % 60 : 0
101
+ };
102
+ }
103
+ function pe(e, t, n, r) {
104
+ let i = B(e.minutes), a = t ? `:${B(e.seconds)}` : "";
105
+ if (n === "24") return `${B(e.hours)}:${i}${a}`;
106
+ let o = e.hours >= 12 ? "PM" : "AM", s = e.hours % 12;
107
+ s === 0 && (s = 12);
108
+ let c = o === "AM" ? r?.am ?? "AM" : r?.pm ?? "PM";
109
+ return `${B(s)}:${i}${a} ${c}`;
110
+ }
111
+ var G = /'[^']*'/g, K = /[HKhk]|\bp\b|\bt\b|\ba\b/;
112
+ function me(e) {
113
+ if (!e) return !1;
114
+ let t = e.replace(G, "");
115
+ return K.test(t);
116
+ }
117
+ function he(e) {
118
+ return {
119
+ startMonth: typeof e?.fromYear == "number" ? new Date(e.fromYear, 0) : void 0,
120
+ endMonth: typeof e?.toYear == "number" ? new Date(e.toYear, 11) : void 0
121
+ };
122
+ }
123
+ function ge(e, t, n, r) {
124
+ let i = r ? { locale: r } : void 0;
125
+ return {
126
+ date: e,
127
+ formatted: e ? M(e, t, i) : void 0,
128
+ readable: e ? M(e, n, i) : void 0
129
+ };
130
+ }
131
+ function _e(e, t, n, r) {
132
+ let i = r ? { locale: r } : void 0;
133
+ return {
134
+ dates: e,
135
+ formatted: e.map((e) => M(e, t, i)),
136
+ readable: e.map((e) => M(e, n, i))
137
+ };
138
+ }
139
+ function ve(e, t, n, r) {
140
+ let i = r ? { locale: r } : void 0;
141
+ return {
142
+ range: e,
143
+ formatted: {
144
+ from: e?.from ? M(e.from, t, i) : void 0,
145
+ to: e?.to ? M(e.to, t, i) : void 0
146
+ },
147
+ readable: {
148
+ from: e?.from ? M(e.from, n, i) : void 0,
149
+ to: e?.to ? M(e.to, n, i) : void 0
150
+ }
151
+ };
152
+ }
153
+ function ye(e, t) {
154
+ let n = typeof t == "string" ? le(t) : t, r = new Date(e);
155
+ return !Number.isFinite(r.getTime()) || !n ? /* @__PURE__ */ new Date(NaN) : (r.setHours(n.hours, n.minutes, n.seconds, 0), r);
156
+ }
157
+ function be(e, t) {
158
+ return Math.ceil((t.getTime() - e.getTime()) / 864e5) + 1;
159
+ }
160
+ function xe(e, t, n) {
161
+ if (!e?.from || !e?.to) return { isValid: !0 };
162
+ let r = be(e.from, e.to);
163
+ return t && r < t || n && r > n ? {
164
+ isValid: !1,
165
+ daysDiff: r
166
+ } : {
167
+ isValid: !0,
168
+ daysDiff: r
169
+ };
170
+ }
171
+ function Se(e, t, n, r) {
172
+ if (!e?.from || !e?.to) return null;
173
+ let i = be(e.from, e.to);
174
+ return t && i < t ? r.minimumDays(t) : n && i > n ? r.maximumDays(n) : null;
175
+ }
176
+ function q(e, t, n, r, i) {
177
+ return r && e.length === 0 ? i.datesRequired : t && e.length < t ? i.minimumDates(t) : n && e.length > 0 ? i.maximumDates(n) : null;
178
+ }
179
+ function Ce(e, t, n, r, i, a) {
180
+ if (e) {
181
+ let n = M(e, t, a ? { locale: a } : void 0);
182
+ return i && (n += ` ${i}`), n;
183
+ }
184
+ return n ?? r;
185
+ }
186
+ function J(e, t, n, r, i, a) {
187
+ if (e.length > 0) {
188
+ if (e.length === 1) {
189
+ let n = a ? { locale: a } : void 0;
190
+ return M(e[0], t, n);
191
+ }
192
+ return i.datesSelected(e.length);
193
+ }
194
+ return n ?? r;
195
+ }
196
+ function we(e, t, n, r, i) {
197
+ return e?.from ? m(e, {
198
+ format: t,
199
+ locale: i
200
+ }) ?? n ?? r : n ?? r;
201
+ }
202
+ //#endregion
203
+ //#region src/components/base/date-pickers/date-picker-internals.ts
204
+ function Te(e, t) {
205
+ return {
206
+ tone: e ?? "secondary",
207
+ buttonStyle: t ?? "outline"
208
+ };
209
+ }
210
+ function Ee(e) {
211
+ return !e.mode || e.mode === "single";
212
+ }
213
+ function Y(e) {
214
+ return e.mode === "multiple";
215
+ }
216
+ function De(e) {
217
+ return e.mode === "range";
218
+ }
219
+ function Oe(e, t) {
220
+ return [
221
+ {
222
+ label: e.today,
223
+ getValue: () => ({
224
+ from: /* @__PURE__ */ new Date(),
225
+ to: /* @__PURE__ */ new Date()
226
+ })
227
+ },
228
+ {
229
+ label: e.thisWeek,
230
+ getValue: () => ({
231
+ from: P(/* @__PURE__ */ new Date(), { weekStartsOn: t }),
232
+ to: j(/* @__PURE__ */ new Date(), { weekStartsOn: t })
233
+ })
234
+ },
235
+ {
236
+ label: e.thisMonth,
237
+ getValue: () => ({
238
+ from: N(/* @__PURE__ */ new Date()),
239
+ to: A(/* @__PURE__ */ new Date())
240
+ })
241
+ },
242
+ {
243
+ label: e.last30Days,
244
+ getValue: () => ({
245
+ from: k(/* @__PURE__ */ new Date(), -30),
246
+ to: /* @__PURE__ */ new Date()
247
+ })
248
+ }
249
+ ];
250
+ }
251
+ //#endregion
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 }) {
254
+ let f = I();
255
+ return /* @__PURE__ */ w(F, {
256
+ showOutsideDays: n,
257
+ className: r("p-space-lg bg-background group/calendar [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", i.calendarCell, String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
258
+ captionLayout: a,
259
+ locale: s,
260
+ formatters: {
261
+ formatMonthDropdown: (e) => e.toLocaleString(s?.code, { month: "short" }),
262
+ ...c
263
+ },
264
+ classNames: {
265
+ root: r("w-fit", f.root),
266
+ months: r("flex gap-space-xl flex-col md:flex-row relative", f.months),
267
+ month: r("flex flex-col w-full gap-space-xl", f.month),
268
+ nav: r("flex items-center gap-space-xs w-full absolute top-0 inset-x-0 justify-between", f.nav),
269
+ button_previous: r(u({ variant: o }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", f.button_previous),
270
+ button_next: r(u({ variant: o }), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", f.button_next),
271
+ month_caption: r("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", f.month_caption),
272
+ dropdowns: r("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-space-sm", f.dropdowns),
273
+ dropdown_root: r("relative rounded-(--cell-radius)", f.dropdown_root),
274
+ dropdown: r("absolute bg-popover inset-0 opacity-0", f.dropdown),
275
+ caption_label: r("select-none font-medium", a === "label" ? "text-sm" : "rounded-(--cell-radius) flex items-center gap-space-xs text-sm [&>svg]:text-muted-foreground [&>svg]:size-icon-md", f.caption_label),
276
+ month_grid: "w-full border-collapse",
277
+ weekdays: r("flex", f.weekdays),
278
+ weekday: r("text-muted-foreground rounded-(--cell-radius) flex-1 font-normal text-xs select-none", f.weekday),
279
+ week: r("flex w-full mt-space-md", f.week),
280
+ week_number_header: r("select-none w-(--cell-size)", f.week_number_header),
281
+ week_number: r("text-xs select-none text-muted-foreground", f.week_number),
282
+ day: r("relative w-full rounded-(--cell-radius) h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius) group/day aspect-square select-none", d.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)", f.day),
283
+ range_start: r("rounded-l-(--cell-radius) bg-muted relative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:right-0 z-0 isolate", f.range_start),
284
+ range_middle: r("rounded-none", f.range_middle),
285
+ range_end: r("rounded-r-(--cell-radius) bg-muted relative after:bg-muted after:absolute after:inset-y-0 after:w-4 after:left-0 z-0 isolate", f.range_end),
286
+ today: r("bg-muted text-foreground rounded-(--cell-radius) data-[selected=true]:rounded-none", f.today),
287
+ outside: r("text-muted-foreground aria-selected:text-muted-foreground", f.outside),
288
+ disabled: r("text-muted-foreground opacity-50", f.disabled),
289
+ hidden: r("invisible", f.hidden),
290
+ ...t
291
+ },
292
+ components: {
293
+ Root: ({ className: e, rootRef: t, ...n }) => /* @__PURE__ */ w("div", {
294
+ "data-slot": "calendar",
295
+ ref: t,
296
+ className: r(e),
297
+ ...n
298
+ }),
299
+ Chevron: ({ className: e, orientation: t, ...n }) => t === "left" ? /* @__PURE__ */ w(E, {
300
+ className: r("size-icon", e),
301
+ ...n
302
+ }) : t === "right" ? /* @__PURE__ */ w(D, {
303
+ className: r("size-icon", e),
304
+ ...n
305
+ }) : /* @__PURE__ */ w(se, {
306
+ className: r(g.icon.md, e),
307
+ ...n
308
+ }),
309
+ DayButton: ({ ...e }) => /* @__PURE__ */ w(Ae, {
310
+ locale: s,
311
+ ...e
312
+ }),
313
+ WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ w("td", {
314
+ ...t,
315
+ children: /* @__PURE__ */ w("div", {
316
+ className: "flex size-(--cell-size) items-center justify-center text-center",
317
+ children: e
318
+ })
319
+ }),
320
+ ...l
321
+ },
322
+ ...d
323
+ });
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(() => {
328
+ n.focused && s.current?.focus();
329
+ }, [n.focused]), /* @__PURE__ */ w(d, {
330
+ ref: s,
331
+ variant: "ghost",
332
+ size: "icon",
333
+ "data-day": t.date.toLocaleDateString(i?.code),
334
+ "data-selected-single": !!n.selected && !n.range_start && !n.range_end && !n.range_middle,
335
+ "data-range-start": n.range_start,
336
+ "data-range-end": n.range_end,
337
+ "data-range-middle": n.range_middle,
338
+ className: r("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:inset-ring group-data-[focused=true]/day:inset-ring-ring group-data-[focused=true]/day:ring-ring/50 relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-space-xs border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-3 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) [&>span]:text-xs [&>span]:opacity-70", o.day, e),
339
+ ...a
340
+ });
341
+ }
342
+ //#endregion
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 }) {
345
+ let d = typeof a == "string" && a !== "", f = !d && typeof i == "string" && i !== "";
346
+ return /* @__PURE__ */ T(p, {
347
+ ref: e,
348
+ gap: "xs",
349
+ className: t,
350
+ children: [
351
+ !!(n || f) && /* @__PURE__ */ T(p, {
352
+ direction: "horizontal",
353
+ align: "center",
354
+ justify: "between",
355
+ gap: "xs",
356
+ children: [!!n && /* @__PURE__ */ w(o, {
357
+ htmlFor: c,
358
+ className: r("date-picker--label text-inherit", "leading-6"),
359
+ children: n
360
+ }), f && /* @__PURE__ */ w(s, {
361
+ tag: "span",
362
+ size: "xs",
363
+ type: "secondary",
364
+ className: "date-picker--hint",
365
+ children: i
366
+ })]
367
+ }),
368
+ u,
369
+ d && /* @__PURE__ */ w(s, {
370
+ id: l,
371
+ size: "xs",
372
+ type: "error",
373
+ role: "alert",
374
+ "aria-live": "polite",
375
+ className: "date-picker--error",
376
+ content: a
377
+ })
378
+ ]
379
+ });
380
+ }
381
+ //#endregion
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(() => {
385
+ if (c) return typeof c == "function" ? c(t) : c;
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", {
388
+ className: r("date-picker-footer--component p-surface", o),
389
+ children: /* @__PURE__ */ T(p, {
390
+ gap: "lg",
391
+ children: [!!h && /* @__PURE__ */ T(p, {
392
+ gap: "xs",
393
+ className: "date-picker-footer--summary",
394
+ children: [
395
+ !!d && !!m && !!i && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(s, {
396
+ type: "secondary",
397
+ children: i
398
+ }), /* @__PURE__ */ w(s, {
399
+ weight: "medium",
400
+ children: m
401
+ })] }),
402
+ !d && !!m && /* @__PURE__ */ w(s, {
403
+ weight: "medium",
404
+ children: m
405
+ }),
406
+ !!d && !m && !!i && /* @__PURE__ */ w(s, {
407
+ type: "secondary",
408
+ children: i
409
+ })
410
+ ]
411
+ }), f.length > 0 && /* @__PURE__ */ w(p, {
412
+ direction: "horizontal",
413
+ gap: "md",
414
+ align: "center",
415
+ className: "date-picker-footer--actions",
416
+ children: f.map((e) => {
417
+ let n = typeof e.disabled == "function" ? e.disabled(t) : e.disabled, i = e.buttonStyle === "link" ? "ghost" : e.buttonStyle ?? "solid";
418
+ return /* @__PURE__ */ w(a, {
419
+ tone: e.tone ?? "primary",
420
+ buttonStyle: i,
421
+ disabled: n,
422
+ loading: e.loading,
423
+ onClick: () => e.onClick(t),
424
+ className: r("flex-1", e.buttonStyle === "link" && "underline underline-offset-[0.2em]"),
425
+ children: e.label
426
+ }, e.label);
427
+ })
428
+ })]
429
+ })
430
+ })] });
431
+ }
432
+ Me.displayName = "DatePickerFooter";
433
+ //#endregion
434
+ //#region src/components/base/date-pickers/date-picker-header.tsx
435
+ function Ne({ config: e, className: t }) {
436
+ let { title: n, description: i, icon: a, align: o = "left" } = e;
437
+ return /* @__PURE__ */ w("div", {
438
+ className: r("date-picker-header--component", "border-b border-border p-surface", o === "center" ? "text-center" : "text-left", t),
439
+ children: /* @__PURE__ */ T(p, {
440
+ direction: "horizontal",
441
+ gap: "md",
442
+ wrap: !1,
443
+ children: [!!a && /* @__PURE__ */ w("div", {
444
+ className: "shrink-0",
445
+ children: /* @__PURE__ */ w(a, {
446
+ "aria-hidden": "true",
447
+ className: "size-icon text-muted-foreground"
448
+ })
449
+ }), /* @__PURE__ */ T(p, {
450
+ gap: "dense",
451
+ className: r("flex-1", o === "center" && !a && "text-center"),
452
+ children: [/* @__PURE__ */ w(c, {
453
+ tag: "h3",
454
+ align: o === "center" ? "center" : "left",
455
+ containerClassName: "space-y-0",
456
+ children: n
457
+ }), !!i && /* @__PURE__ */ w(s, {
458
+ type: "secondary",
459
+ children: i
460
+ })]
461
+ })]
462
+ })
463
+ });
464
+ }
465
+ Ne.displayName = "DatePickerHeader";
466
+ //#endregion
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);
471
+ }
472
+ var Fe = {
473
+ sm: "w-control-sm",
474
+ md: "w-control",
475
+ lg: "w-control-lg"
476
+ };
477
+ function Ie(e, t = !1) {
478
+ return r(v(e), "justify-start", t && [Fe[e], "shrink-0 justify-center px-0"]);
479
+ }
480
+ //#endregion
481
+ //#region src/components/base/date-pickers/date-pickers.strings.ts
482
+ var Le = {
483
+ selectDate: "Select a date",
484
+ selectDates: "Select dates",
485
+ selectDateRange: "Select date range",
486
+ from: "From",
487
+ to: "To",
488
+ confirm: "Confirm",
489
+ clear: "Clear",
490
+ today: "Today",
491
+ startDate: "Start date",
492
+ endDate: "End date",
493
+ startTime: "Start time",
494
+ endTime: "End time",
495
+ hours: "Hours",
496
+ minutes: "Minutes",
497
+ seconds: "Seconds",
498
+ am: "AM",
499
+ pm: "PM",
500
+ minimumDays: (e) => `A minimum of ${e} days is required`,
501
+ maximumDays: (e) => `A maximum of ${e} days is allowed`,
502
+ minimumDates: (e) => `Select at least ${e} dates`,
503
+ maximumDates: (e) => `Select up to ${e} dates`,
504
+ datesRequired: "At least one date must be selected",
505
+ datesSelected: (e) => `${e} dates selected`,
506
+ lastWeek: "Last week",
507
+ lastMonth: "Last month",
508
+ lastYear: "Last year",
509
+ nextWeek: "Next week",
510
+ nextMonth: "Next month",
511
+ nextYear: "Next year",
512
+ thisWeek: "This Week",
513
+ thisMonth: "This Month",
514
+ last30Days: "Last 30 Days",
515
+ selectMonthYear: "Select month and year",
516
+ month: "Month",
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`, {
519
+ variants: {
520
+ variant: {
521
+ default: "bg-transparent",
522
+ outline: "border-input hover:bg-muted border bg-transparent shadow-none"
523
+ },
524
+ size: {
525
+ default: "h-control min-w-9 px-control",
526
+ sm: "h-control-sm min-w-8 px-control-sm",
527
+ lg: "h-control-lg min-w-10 px-control"
528
+ }
529
+ },
530
+ defaultVariants: {
531
+ variant: "default",
532
+ size: "default"
533
+ }
534
+ }), ze = S.createContext({
535
+ size: "default",
536
+ variant: "default",
537
+ spacing: 0,
538
+ orientation: "horizontal"
539
+ });
540
+ function Be({ className: e, variant: t, size: n, spacing: i = 0, orientation: a = "horizontal", children: o, ...s }) {
541
+ return /* @__PURE__ */ w(R, {
542
+ "data-slot": "toggle-group",
543
+ "data-variant": t,
544
+ "data-size": n,
545
+ "data-spacing": i,
546
+ "data-orientation": a,
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),
549
+ ...s,
550
+ children: /* @__PURE__ */ w(ze.Provider, {
551
+ value: {
552
+ variant: t,
553
+ size: n,
554
+ spacing: i,
555
+ orientation: a
556
+ },
557
+ children: o
558
+ })
559
+ });
560
+ }
561
+ function Ve({ className: e, children: t, variant: n = "default", size: i = "default", ...a }) {
562
+ let o = S.useContext(ze);
563
+ return /* @__PURE__ */ w(L, {
564
+ "data-slot": "toggle-group-item",
565
+ "data-variant": o.variant || n,
566
+ "data-size": o.size || i,
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({
569
+ variant: o.variant || n,
570
+ size: o.size || i
571
+ }), e),
572
+ ...a,
573
+ children: t
574
+ });
575
+ }
576
+ //#endregion
577
+ //#region src/components/base/date-pickers/time-picker.tsx
578
+ var He = {
579
+ placeholder: "Select time",
580
+ hours: "Hours",
581
+ minutes: "Minutes",
582
+ seconds: "Seconds",
583
+ am: "AM",
584
+ pm: "PM"
585
+ }, X = [
586
+ "hours",
587
+ "minutes",
588
+ "seconds"
589
+ ], Ue = "00", We = "12", Z = "--", Q = "aria-pressed:bg-primary aria-pressed:text-primary-foreground", Ge = {
590
+ sm: "w-12",
591
+ md: "w-14",
592
+ lg: "w-16"
593
+ };
594
+ function Ke(e) {
595
+ return e.replace(/\D/g, "").slice(-2);
596
+ }
597
+ function $(e) {
598
+ return e.length === 0 ? "00" : e.length === 1 ? `0${e}` : e;
599
+ }
600
+ function qe(e, t) {
601
+ let n = t ? X : X.slice(0, 2), r = n.indexOf(e);
602
+ return r > -1 && r < n.length - 1 ? n[r + 1] : null;
603
+ }
604
+ function Je(e, t) {
605
+ let n = t ? X : X.slice(0, 2), r = n.indexOf(e);
606
+ return r > 0 ? n[r - 1] : null;
607
+ }
608
+ function Ye(e, t) {
609
+ return t === "24" ? e : e % 12 || 12;
610
+ }
611
+ function Xe(e) {
612
+ return e >= 12 ? "PM" : "AM";
613
+ }
614
+ function Ze(e, t) {
615
+ return t === "12" ? {
616
+ ...e,
617
+ period: e.period ?? "AM"
618
+ } : {
619
+ ...e,
620
+ period: void 0
621
+ };
622
+ }
623
+ function Qe(e) {
624
+ return {
625
+ hours: Z,
626
+ minutes: Z,
627
+ seconds: e ? Z : void 0
628
+ };
629
+ }
630
+ function $e(e, t) {
631
+ let n = t === "12" ? We : Ue;
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,
636
+ period: e.period
637
+ };
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);
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({
647
+ hours: null,
648
+ minutes: null,
649
+ seconds: null
650
+ });
651
+ S.useEffect(() => {
652
+ if (A.current) {
653
+ A.current = !1;
654
+ return;
655
+ }
656
+ j.current = null, M(et(e, o, C));
657
+ }, [
658
+ e,
659
+ o,
660
+ C,
661
+ M
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)));
667
+ }, [
668
+ o,
669
+ C,
670
+ i,
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));
676
+ }, [
677
+ o,
678
+ C,
679
+ i,
680
+ l,
681
+ P,
682
+ M
683
+ ]), L = S.useCallback((e) => {
684
+ if (!e) return;
685
+ let t = N.current[e];
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 = {
690
+ key: e,
691
+ typed: i
692
+ };
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()));
695
+ let l = {
696
+ ...s,
697
+ period: o === "12" ? c : void 0
698
+ };
699
+ M(l), F(l);
700
+ }, [
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";
707
+ if (e === "hours") {
708
+ if (o === "24") {
709
+ let e = Number.parseInt(n || "0", 10);
710
+ r.hours = $((Number.isNaN(e) ? 0 : Math.min(Math.max(e, 0), 23)).toString());
711
+ } else {
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)));
714
+ }
715
+ } else if (e === "minutes") {
716
+ let e = Number.parseInt(n || "0", 10);
717
+ r.minutes = $((Number.isNaN(e) ? 0 : Math.min(Math.max(e, 0), 59)).toString());
718
+ } else if (e === "seconds") {
719
+ let e = Number.parseInt(n || "0", 10);
720
+ r.seconds = $((Number.isNaN(e) ? 0 : Math.min(Math.max(e, 0), 59)).toString());
721
+ }
722
+ let a = {
723
+ ...r,
724
+ period: o === "12" ? i : void 0
725
+ };
726
+ M(a), F(a);
727
+ }, [
728
+ o,
729
+ M,
730
+ F
731
+ ]), B = S.useCallback((e) => {
732
+ o === "12" && (j.current = null, I({
733
+ ...$e(k.current, o),
734
+ period: e
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) => {
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));
743
+ return;
744
+ }
745
+ if (e.key === "ArrowRight") {
746
+ L(qe(t, C));
747
+ return;
748
+ }
749
+ if (e.key === "ArrowLeft") {
750
+ L(Je(t, C));
751
+ return;
752
+ }
753
+ if (e.key === "Backspace") {
754
+ let n = e.currentTarget;
755
+ n.selectionStart === 0 && n.selectionEnd === 0 && L(Je(t, C));
756
+ }
757
+ }, [
758
+ R,
759
+ L,
760
+ C
761
+ ]), U = S.useMemo(() => {
762
+ if (o === "12") return D.period ? [D.period] : void 0;
763
+ }, [o, D.period]), G = {
764
+ hours: y.hours,
765
+ minutes: y.minutes,
766
+ seconds: y.seconds
767
+ }, K = /* @__PURE__ */ T("div", {
768
+ ref: a === "inline" ? g : void 0,
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, {
771
+ ref: (t) => {
772
+ N.current[e] = t;
773
+ },
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),
780
+ inputMode: "numeric",
781
+ pattern: "\\d*",
782
+ maxLength: 2,
783
+ showCharacterCount: !1,
784
+ disabled: d,
785
+ invalid: f,
786
+ "aria-label": G[e],
787
+ size: x,
788
+ className: r("time-picker--segment text-center", Ge[x])
789
+ }), t < E.length - 1 && /* @__PURE__ */ w(s, {
790
+ tag: "span",
791
+ type: "secondary",
792
+ children: ":"
793
+ })] }, e)), o === "12" && /* @__PURE__ */ T(Be, {
794
+ value: U,
795
+ onValueChange: (e) => {
796
+ let t = e[0];
797
+ t && B(t);
798
+ },
799
+ disabled: d,
800
+ variant: "outline",
801
+ size: x === "sm" ? "sm" : "default",
802
+ className: "time-picker--period",
803
+ children: [/* @__PURE__ */ w(Ve, {
804
+ value: "AM",
805
+ "aria-label": y.am,
806
+ className: r(_[x], Q),
807
+ children: /* @__PURE__ */ w(s, {
808
+ tag: "span",
809
+ size: "inherit",
810
+ weight: "medium",
811
+ lineHeight: "tight",
812
+ className: "text-inherit",
813
+ children: y.am
814
+ })
815
+ }), /* @__PURE__ */ w(Ve, {
816
+ value: "PM",
817
+ "aria-label": y.pm,
818
+ className: r(_[x], Q),
819
+ children: /* @__PURE__ */ w(s, {
820
+ tag: "span",
821
+ size: "inherit",
822
+ weight: "medium",
823
+ lineHeight: "tight",
824
+ className: "text-inherit",
825
+ children: y.pm
826
+ })
827
+ })]
828
+ })]
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, {
832
+ am: y.am,
833
+ pm: y.pm
834
+ });
835
+ return /* @__PURE__ */ T(re, {
836
+ open: oe,
837
+ onOpenChange: se,
838
+ children: [/* @__PURE__ */ T(ne, {
839
+ ref: g,
840
+ id: h,
841
+ "aria-expanded": oe,
842
+ "aria-invalid": f,
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, {
846
+ tag: "span",
847
+ size: "inherit",
848
+ lineHeight: "tight",
849
+ className: "min-w-0 truncate text-inherit",
850
+ children: he
851
+ })]
852
+ }), /* @__PURE__ */ w(ie, {
853
+ className: "time-picker--panel w-auto",
854
+ align: "start",
855
+ children: K
856
+ })]
857
+ });
858
+ });
859
+ tt.displayName = "TimePicker";
860
+ //#endregion
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(() => {
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;
868
+ if (e && u?.enabled && r) {
869
+ let t = ye(e, r);
870
+ n = Number.isFinite(t.getTime()) ? t : void 0;
871
+ }
872
+ return ge(n, i, o, g);
873
+ }, [
874
+ i,
875
+ o,
876
+ g,
877
+ u,
878
+ R
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) {
884
+ let t = ye(e, a);
885
+ n?.(ge(t, i, o, g));
886
+ }
887
+ };
888
+ if (!r) {
889
+ V.current = !1, B.current = e ?? t ?? void 0, L(e ?? t), H.current = s;
890
+ return;
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;
895
+ return;
896
+ }
897
+ if (e === void 0 && t !== void 0) {
898
+ (l !== t.getTime() || !V.current) && c(t, !1), H.current = s;
899
+ return;
900
+ }
901
+ if (e === void 0 && t === void 0 && !V.current) {
902
+ V.current = !0, H.current = s;
903
+ return;
904
+ }
905
+ H.current = s;
906
+ }, [
907
+ u?.enabled,
908
+ e,
909
+ t,
910
+ N,
911
+ j,
912
+ n,
913
+ i,
914
+ o,
915
+ g
916
+ ]), S.useEffect(() => {
917
+ u?.enabled && z((e) => {
918
+ if (!e) return e;
919
+ let t = fe(e, j, N);
920
+ return e.hours === t.hours && e.minutes === t.minutes && e.seconds === t.seconds ? e : t;
921
+ });
922
+ }, [
923
+ u?.enabled,
924
+ j,
925
+ N
926
+ ]);
927
+ let W = S.useCallback((e) => {
928
+ L(e);
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);
931
+ }, [
932
+ n,
933
+ de,
934
+ l,
935
+ m,
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)));
943
+ }, [
944
+ I,
945
+ n,
946
+ de
947
+ ]), K = S.useMemo(() => {
948
+ if (u?.enabled && R) return pe(R, N, A, {
949
+ am: h.am,
950
+ pm: h.pm
951
+ });
952
+ }, [
953
+ u?.enabled,
954
+ R,
955
+ N,
956
+ A,
957
+ h
958
+ ]), he = S.useMemo(() => Ce(I, o, c, h.selectDate, F ? K : void 0, g), [
959
+ I,
960
+ o,
961
+ c,
962
+ h,
963
+ K,
964
+ F,
965
+ g
966
+ ]), _e = S.useMemo(() => I ? M(I, o, { locale: g }) : void 0, [
967
+ I,
968
+ o,
969
+ g
970
+ ]);
971
+ return /* @__PURE__ */ w(je, {
972
+ rootRef: te,
973
+ className: b.className,
974
+ label: b.label,
975
+ hint: b.hint,
976
+ error: b.error,
977
+ triggerId: E,
978
+ describedById: D,
979
+ children: /* @__PURE__ */ T(re, {
980
+ open: p,
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, {
1006
+ inset: "flush",
1007
+ className: "w-auto gap-0",
1008
+ align: "start",
1009
+ children: [
1010
+ !!b.header && /* @__PURE__ */ w(Ne, { config: b.header }),
1011
+ /* @__PURE__ */ w(ke, {
1012
+ mode: "single",
1013
+ selected: I,
1014
+ onSelect: W,
1015
+ defaultMonth: I,
1016
+ numberOfMonths: b.numberOfMonths,
1017
+ showOutsideDays: b.showOutsideDays,
1018
+ disabled: d ?? b.disabled,
1019
+ locale: g,
1020
+ captionLayout: _,
1021
+ startMonth: v.startMonth,
1022
+ endMonth: v.endMonth,
1023
+ ...f
1024
+ }),
1025
+ !!u?.enabled && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
1026
+ className: "date-picker--time p-surface",
1027
+ children: /* @__PURE__ */ w(ae, {
1028
+ label: h.startTime,
1029
+ children: /* @__PURE__ */ w(tt, {
1030
+ value: R ? ue(R, N) : null,
1031
+ onValueChange: G,
1032
+ format: A,
1033
+ precision: N ? "seconds" : "minutes",
1034
+ step: j,
1035
+ disabled: b.disabled,
1036
+ size: "sm",
1037
+ strings: {
1038
+ hours: h.hours,
1039
+ minutes: h.minutes,
1040
+ seconds: h.seconds,
1041
+ am: h.am,
1042
+ pm: h.pm
1043
+ }
1044
+ })
1045
+ })
1046
+ })] }),
1047
+ !!b.footer && /* @__PURE__ */ w(Me, {
1048
+ config: b.footer,
1049
+ output: de(I),
1050
+ hasSelection: !!I,
1051
+ autoSummary: _e
1052
+ })
1053
+ ]
1054
+ })]
1055
+ })
1056
+ });
1057
+ }
1058
+ //#endregion
1059
+ //#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
+ }, [e]);
1065
+ let N = S.useCallback((e) => _e(e, i, o, v), [
1066
+ i,
1067
+ o,
1068
+ v
1069
+ ]), P = S.useCallback((e) => {
1070
+ let t = Array.isArray(e) ? e : e ? [e] : [];
1071
+ M(t), n?.(N(t)), f && t.length > 0 && g(!1);
1072
+ }, [
1073
+ n,
1074
+ N,
1075
+ f,
1076
+ g
1077
+ ]), F = S.useMemo(() => J(j, o, c, _.selectDates, _, v), [
1078
+ j,
1079
+ o,
1080
+ c,
1081
+ _,
1082
+ v
1083
+ ]), I = S.useMemo(() => q(j, l, u, d, _), [
1084
+ j,
1085
+ l,
1086
+ u,
1087
+ d,
1088
+ _
1089
+ ]), L = S.useMemo(() => j.length > 0 ? _.datesSelected(j.length) : void 0, [j.length, _]);
1090
+ return /* @__PURE__ */ w(je, {
1091
+ rootRef: ae,
1092
+ className: x.className,
1093
+ label: x.label,
1094
+ hint: x.hint,
1095
+ error: x.error,
1096
+ triggerId: D,
1097
+ describedById: O,
1098
+ children: /* @__PURE__ */ T(re, {
1099
+ open: h,
1100
+ 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, {
1125
+ inset: "flush",
1126
+ className: "w-auto gap-0",
1127
+ align: "start",
1128
+ children: [
1129
+ !!x.header && /* @__PURE__ */ w(Ne, { config: x.header }),
1130
+ /* @__PURE__ */ w(ke, {
1131
+ 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,
1138
+ locale: v,
1139
+ captionLayout: te,
1140
+ startMonth: b.startMonth,
1141
+ endMonth: b.endMonth,
1142
+ required: d,
1143
+ max: u,
1144
+ ...m
1145
+ }),
1146
+ !!I && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ee, {}), /* @__PURE__ */ w("div", {
1147
+ className: "p-surface",
1148
+ children: /* @__PURE__ */ w(s, {
1149
+ type: "secondary",
1150
+ children: I
1151
+ })
1152
+ })] }),
1153
+ !!x.footer && /* @__PURE__ */ w(Me, {
1154
+ config: x.footer,
1155
+ output: N(j),
1156
+ hasSelection: j.length > 0,
1157
+ autoSummary: L
1158
+ })
1159
+ ]
1160
+ })]
1161
+ })
1162
+ });
1163
+ }
1164
+ //#endregion
1165
+ //#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), [
1168
+ q,
1169
+ m,
1170
+ 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(() => {
1176
+ if (!_?.enabled) {
1177
+ Ae.current = t;
1178
+ return;
1179
+ }
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;
1182
+ }, [
1183
+ t,
1184
+ _?.enabled,
1185
+ K,
1186
+ G
1187
+ ]), S.useEffect(() => {
1188
+ if (!_?.enabled) return;
1189
+ let e = (e) => {
1190
+ if (!e) return e;
1191
+ let t = fe(e, G, K);
1192
+ return e.hours === t.hours && e.minutes === t.minutes && e.seconds === t.seconds ? e : t;
1193
+ };
1194
+ Ee(e), De(e);
1195
+ }, [
1196
+ _?.enabled,
1197
+ G,
1198
+ K
1199
+ ]);
1200
+ let ze = S.useCallback((e) => {
1201
+ let t = e;
1202
+ return e && _?.enabled && (t = {
1203
+ ...e,
1204
+ from: e.from && J ? ye(e.from, J) : e.from,
1205
+ to: e.to && Y ? ye(e.to, Y) : e.to
1206
+ }), ve(t, c, l, O);
1207
+ }, [
1208
+ c,
1209
+ l,
1210
+ O,
1211
+ _,
1212
+ J,
1213
+ Y
1214
+ ]), Be = S.useCallback((e) => {
1215
+ let t = le(e ?? void 0);
1216
+ 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 ? {
1221
+ from: t,
1222
+ to: void 0
1223
+ } : t < n.from ? {
1224
+ from: t,
1225
+ to: n.from
1226
+ } : {
1227
+ from: n.from,
1228
+ 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));
1233
+ let r = !!(n?.from && n?.to), i = xe(n, m, h).isValid;
1234
+ g && r && i && E(!1);
1235
+ }, [
1236
+ q,
1237
+ He,
1238
+ d,
1239
+ _,
1240
+ o,
1241
+ ze,
1242
+ m,
1243
+ h,
1244
+ g,
1245
+ E
1246
+ ]), Ue = S.useCallback((e) => {
1247
+ let t = e.getValue();
1248
+ X(t);
1249
+ }, [X]), We = S.useCallback(() => {
1250
+ o?.(ze(q)), E(!1);
1251
+ }, [
1252
+ q,
1253
+ 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
1260
+ });
1261
+ }, [
1262
+ _?.enabled,
1263
+ 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
1271
+ });
1272
+ }, [
1273
+ _?.enabled,
1274
+ Y,
1275
+ K,
1276
+ W,
1277
+ D
1278
+ ]), Ge = S.useMemo(() => {
1279
+ if (_?.enabled && q?.from) {
1280
+ let e = M(q.from, l, { locale: O }), t = ge && Z ? `${e} ${Z}` : e;
1281
+ if (q.to) {
1282
+ let e = M(q.to, l, { locale: O });
1283
+ return `${t} - ${ge && Q ? `${e} ${Q}` : e}`;
1284
+ }
1285
+ return t;
1286
+ }
1287
+ return we(q, l, u, D.selectDateRange, O);
1288
+ }, [
1289
+ _?.enabled,
1290
+ q,
1291
+ l,
1292
+ ge,
1293
+ Z,
1294
+ Q,
1295
+ u,
1296
+ D,
1297
+ O
1298
+ ]), Ke = S.useMemo(() => {
1299
+ 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}`;
1302
+ }, [
1303
+ q,
1304
+ l,
1305
+ O,
1306
+ _e,
1307
+ Z,
1308
+ Q
1309
+ ]);
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,
1318
+ 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, {
1345
+ inset: "flush",
1346
+ className: "w-auto gap-0",
1347
+ align: "start",
1348
+ children: [!!j.header && /* @__PURE__ */ w(Ne, { config: j.header }), /* @__PURE__ */ T("div", {
1349
+ className: "flex flex-col sm:flex-row",
1350
+ children: [I.length > 0 && /* @__PURE__ */ w("div", {
1351
+ 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, {
1353
+ tone: "secondary",
1354
+ buttonStyle: "ghost",
1355
+ onClick: () => Ue(e),
1356
+ className: "justify-start text-muted-foreground hover:text-foreground",
1357
+ children: e.label
1358
+ }, e.label))
1359
+ }), /* @__PURE__ */ T("div", {
1360
+ className: "flex flex-col",
1361
+ children: [
1362
+ /* @__PURE__ */ w(ke, {
1363
+ mode: "range",
1364
+ selected: q,
1365
+ onSelect: X,
1366
+ defaultMonth: q?.from,
1367
+ numberOfMonths: P,
1368
+ showOutsideDays: j.showOutsideDays,
1369
+ disabled: te ?? j.disabled,
1370
+ locale: O,
1371
+ captionLayout: ce,
1372
+ startMonth: k.startMonth,
1373
+ endMonth: k.endMonth,
1374
+ ...b,
1375
+ className: r(i.calendarCompactCell, b?.className)
1376
+ }),
1377
+ (() => {
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", {
1380
+ className: "date-picker--range-footer p-surface",
1381
+ children: /* @__PURE__ */ T(p, {
1382
+ gap: "lg",
1383
+ children: [
1384
+ e && !!q?.from && /* @__PURE__ */ T(p, {
1385
+ direction: "horizontal",
1386
+ align: "center",
1387
+ justify: "between",
1388
+ gap: "xl",
1389
+ children: [/* @__PURE__ */ T(p, {
1390
+ direction: "horizontal",
1391
+ align: "center",
1392
+ gap: "md",
1393
+ children: [/* @__PURE__ */ T(s, {
1394
+ tag: "span",
1395
+ type: "secondary",
1396
+ children: [D.from, ":"]
1397
+ }), /* @__PURE__ */ T(s, {
1398
+ tag: "span",
1399
+ weight: "medium",
1400
+ children: [M(q.from, l, { locale: O }), _e && Z ? ` ${Z}` : ""]
1401
+ })]
1402
+ }), !!q.to && /* @__PURE__ */ T(p, {
1403
+ direction: "horizontal",
1404
+ align: "center",
1405
+ gap: "md",
1406
+ children: [/* @__PURE__ */ T(s, {
1407
+ tag: "span",
1408
+ type: "secondary",
1409
+ children: [D.to, ":"]
1410
+ }), /* @__PURE__ */ T(s, {
1411
+ tag: "span",
1412
+ weight: "medium",
1413
+ children: [M(q.to, l, { locale: O }), _e && Q ? ` ${Q}` : ""]
1414
+ })]
1415
+ })]
1416
+ }),
1417
+ t && !!q?.from && /* @__PURE__ */ T(f, {
1418
+ columns: {
1419
+ base: 1,
1420
+ sm: 2
1421
+ },
1422
+ gap: "lg",
1423
+ 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,
1432
+ size: "sm",
1433
+ strings: {
1434
+ hours: D.hours,
1435
+ minutes: D.minutes,
1436
+ seconds: D.seconds,
1437
+ am: D.am,
1438
+ pm: D.pm
1439
+ }
1440
+ })
1441
+ }), !!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,
1450
+ size: "sm",
1451
+ strings: {
1452
+ hours: D.hours,
1453
+ minutes: D.minutes,
1454
+ seconds: D.seconds,
1455
+ am: D.am,
1456
+ pm: D.pm
1457
+ }
1458
+ })
1459
+ })]
1460
+ }),
1461
+ /* @__PURE__ */ w(s, {
1462
+ type: "error",
1463
+ content: Re,
1464
+ hidden: !Le
1465
+ }),
1466
+ n && /* @__PURE__ */ w(a, {
1467
+ tone: "primary",
1468
+ onClick: We,
1469
+ disabled: !q?.from || !q?.to || !!Fe,
1470
+ className: "w-full",
1471
+ children: D.confirm
1472
+ })
1473
+ ]
1474
+ })
1475
+ })] });
1476
+ })(),
1477
+ !!j.footer && /* @__PURE__ */ w(Me, {
1478
+ config: j.footer,
1479
+ output: ze(q),
1480
+ hasSelection: !!(q?.from && q?.to),
1481
+ autoSummary: Ke
1482
+ })
1483
+ ]
1484
+ })]
1485
+ })]
1486
+ })]
1487
+ })
1488
+ });
1489
+ }
1490
+ //#endregion
1491
+ //#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,
1496
+ rootRef: i,
1497
+ className: f,
1498
+ open: a,
1499
+ setOpen: o,
1500
+ t: l,
1501
+ dateFnsLocale: c,
1502
+ captionLayout: u,
1503
+ yearBounds: d
1504
+ }) : Y(t) ? /* @__PURE__ */ w(rt, {
1505
+ ...t,
1506
+ rootRef: i,
1507
+ className: f,
1508
+ open: a,
1509
+ setOpen: o,
1510
+ t: l,
1511
+ dateFnsLocale: c,
1512
+ captionLayout: u,
1513
+ yearBounds: d
1514
+ }) : De(t) ? /* @__PURE__ */ w(it, {
1515
+ ...t,
1516
+ rootRef: i,
1517
+ className: f,
1518
+ open: a,
1519
+ setOpen: o,
1520
+ t: l,
1521
+ dateFnsLocale: c,
1522
+ captionLayout: u,
1523
+ yearBounds: d
1524
+ }) : null;
1525
+ });
1526
+ at.displayName = "DatePicker";
1527
+ //#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 };
1529
+
1530
+ //# sourceMappingURL=date-picker-ay0Pha_a.js.map