@alfadocs/ui-kit 0.1.8 → 0.1.9
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.
- package/dist/_chunks/{accordion-B6fyINUk.js → accordion-BEnrZmAn.js} +34 -32
- package/dist/_chunks/accordion.agent-BTjeO1Sx.js +52 -0
- package/dist/_chunks/{agenda-card-DIWDvWum.js → agenda-card-DwLIxgi7.js} +2 -1
- package/dist/_chunks/agenda-card.agent-B_R47-c9.js +22 -0
- package/dist/_chunks/agenda-tray-DUvengGQ.js +178 -0
- package/dist/_chunks/ai-prompt-input.agent-0NHYLTWD.js +476 -0
- package/dist/_chunks/{aspect-ratio-CxsdG8vk.js → aspect-ratio-DeSNzASA.js} +12 -12
- package/dist/_chunks/audio-recorder.agent--VKeykUp.js +458 -0
- package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +432 -0
- package/dist/_chunks/{balance-cell-renderer-BWm3knY9.js → balance-cell-renderer-5CA7zpAi.js} +3 -3
- package/dist/_chunks/breadcrumb.agent-GM2hAKFX.js +371 -0
- package/dist/_chunks/{chart.agent-BdS-_8MO.js → chart.agent-_pRYS17d.js} +112 -105
- package/dist/_chunks/{chat-container-Cm3SlR2p.js → chat-container-Dl0Kfy5a.js} +33 -32
- package/dist/_chunks/{chat-container.agent-Dhw9xCJt.js → chat-container.agent-CM4WModE.js} +9 -4
- package/dist/_chunks/{chat-input-DreOPP8A.js → chat-input-C_tMQv92.js} +108 -82
- package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +69 -0
- package/dist/_chunks/checkbox-CtPM6Rup.js +196 -0
- package/dist/_chunks/checkbox-group-BTdEB6Yo.js +208 -0
- package/dist/_chunks/collapsible.agent-DkS1jVyn.js +149 -0
- package/dist/_chunks/{color-picker-e9PmpaGH.js → color-picker-94qcBZqZ.js} +234 -184
- package/dist/_chunks/combobox.agent-CAvUkkIe.js +410 -0
- package/dist/_chunks/{command-palette.agent-js2rxgeR.js → command-palette.agent-HatEt_EM.js} +161 -121
- package/dist/_chunks/date-picker-BqPTn7bO.js +1813 -0
- package/dist/_chunks/date-range-picker-B2hGsffw.js +274 -0
- package/dist/_chunks/date-time-picker-Bzt0S8yO.js +293 -0
- package/dist/_chunks/dialog.agent-Daf1TTko.js +179 -0
- package/dist/_chunks/{dropdown-menu-Cw3EyPZv.js → dropdown-menu-C7AZipNz.js} +75 -71
- package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +43 -0
- package/dist/_chunks/{file-upload.agent-B9AN82LA.js → file-upload.agent-DJaH2dHg.js} +275 -243
- package/dist/_chunks/freemium-paywall.agent-_nQqLyRF.js +260 -0
- package/dist/_chunks/{leo-sidebar-nbHib2D-.js → leo-sidebar-BwINPdix.js} +6 -6
- package/dist/_chunks/link-QheANk74.js +121 -0
- package/dist/_chunks/list.agent-D0iWt4VI.js +420 -0
- package/dist/_chunks/{message-card-qAp2-WQK.js → message-card-qhoGv947.js} +2 -1
- package/dist/_chunks/message-card.agent-4IeIgrnJ.js +22 -0
- package/dist/_chunks/message-tray-xHUCra-Y.js +419 -0
- package/dist/_chunks/{multi-select.agent-CNsyW3n9.js → multi-select.agent-Do6CeQUT.js} +239 -179
- package/dist/_chunks/navigation-menu.agent-D69ND6Qq.js +266 -0
- package/dist/_chunks/{notification-card-BF2_veHy.js → notification-card-CsVEYJE-.js} +13 -12
- package/dist/_chunks/notification-card.agent-Rqt3ofk9.js +22 -0
- package/dist/_chunks/notification-tray-DTXMq42J.js +444 -0
- package/dist/_chunks/number-input-fvGmnRy9.js +333 -0
- package/dist/_chunks/otp-input-EglXOUue.js +257 -0
- package/dist/_chunks/pagination.agent-BkZQl45y.js +422 -0
- package/dist/_chunks/password-input-D6kuYXmr.js +304 -0
- package/dist/_chunks/{patient-shell-7cXqIMFg.js → patient-shell-BRmrrUUW.js} +3 -3
- package/dist/_chunks/{payment-form-hcl-gGrp.js → payment-form-BWaXas8z.js} +120 -118
- package/dist/_chunks/{payment-form.agent-BkEnRerR.js → payment-form.agent-kuIfodCj.js} +7 -2
- package/dist/_chunks/{pdf-viewer.agent-CfIHhcHx.js → pdf-viewer.agent-BaGEDheA.js} +358 -351
- package/dist/_chunks/phone-input-C8Op4sEc.js +513 -0
- package/dist/_chunks/popover-kFN8s84V.js +229 -0
- package/dist/_chunks/popover.agent-K_d1cfbj.js +39 -0
- package/dist/_chunks/privacy-lock.agent-C1i1-T58.js +185 -0
- package/dist/_chunks/progress-wNsqkw8I.js +253 -0
- package/dist/_chunks/progress.agent-C68rDOXL.js +27 -0
- package/dist/_chunks/{radio-cs8N1wJi.js → radio-DvF59ThA.js} +14 -13
- package/dist/_chunks/radio-group-Cz1a4QCA.js +152 -0
- package/dist/_chunks/recaptcha-widget.agent-BGHpU5zD.js +183 -0
- package/dist/_chunks/resizable.agent-CMwZzvsi.js +456 -0
- package/dist/_chunks/{rich-text-editor.agent-COSb5_2D.js → rich-text-editor.agent-DnE125Tz.js} +221 -214
- package/dist/_chunks/search-bar.agent-DxFAxctc.js +562 -0
- package/dist/_chunks/search-input-Xw3cdWXW.js +227 -0
- package/dist/_chunks/search-input.agent-CfZvViOd.js +69 -0
- package/dist/_chunks/select-DY1Cb2Tg.js +410 -0
- package/dist/_chunks/{sheet-BhNpLHc9.js → sheet-B9kH9pcI.js} +55 -54
- package/dist/_chunks/sheet.agent-QAyTOxgk.js +46 -0
- package/dist/_chunks/{sidebar-OVzwN3jE.js → sidebar-CHF5xr_P.js} +188 -185
- package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +49 -0
- package/dist/_chunks/{signature-capture.agent-C38VPXxg.js → signature-capture.agent-BpeDwFht.js} +127 -120
- package/dist/_chunks/slider-CcsQTZTA.js +322 -0
- package/dist/_chunks/sparkline.agent-56Sj7nOP.js +245 -0
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +322 -0
- package/dist/_chunks/stepper-calendar.agent-9iT3ClIB.js +646 -0
- package/dist/_chunks/stepper-progress-Bmen-YXB.js +149 -0
- package/dist/_chunks/stepper-progress.agent-q9InWca4.js +61 -0
- package/dist/_chunks/suggestion-chip-DhFrkRPj.js +169 -0
- package/dist/_chunks/suggestion-chip.agent-6sNWFj7m.js +46 -0
- package/dist/_chunks/switch-BYEH8I53.js +196 -0
- package/dist/_chunks/{tabs.agent-BpbVA-Zh.js → tabs.agent-h7NvsTR1.js} +146 -123
- package/dist/_chunks/{task-card-yW7tKlG4.js → task-card-CY5ztNkU.js} +2 -1
- package/dist/_chunks/task-card.agent-CUPKYd7w.js +22 -0
- package/dist/_chunks/task-tray-CCoUdorl.js +194 -0
- package/dist/_chunks/text-area-C_M8wliK.js +239 -0
- package/dist/_chunks/text-input-BX39e6T6.js +272 -0
- package/dist/_chunks/theme-toggle.agent-btmXTWdW.js +394 -0
- package/dist/_chunks/time-picker-B8AMIrX7.js +410 -0
- package/dist/_chunks/timeline.agent-CRPza9wc.js +279 -0
- package/dist/_chunks/{toast-lOhJDKOH.js → toast.agent-BjEGuq1Z.js} +403 -342
- package/dist/_chunks/{tooth-scheme.agent-BlDyu-Gx.js → tooth-scheme.agent-CWrQBjJM.js} +218 -211
- package/dist/_chunks/transcript-panel.agent-BXEYP6w-.js +337 -0
- package/dist/_chunks/{workflow-map-XeqHDFvp.js → workflow-map-D2A7rTEG.js} +465 -368
- package/dist/agent-catalog.json +2929 -268
- package/dist/components/accordion/accordion.agent.d.ts +2 -1
- package/dist/components/accordion/accordion.d.ts +6 -0
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-card/agenda-card.agent.d.ts +3 -0
- package/dist/components/agenda-card/index.d.ts +1 -0
- package/dist/components/agenda-card/index.js +3 -1
- package/dist/components/agenda-tray/agenda-tray.agent.d.ts +4 -0
- package/dist/components/agenda-tray/agenda-tray.d.ts +19 -2
- package/dist/components/agenda-tray/index.d.ts +2 -1
- package/dist/components/agenda-tray/index.js +3 -2
- package/dist/components/ai-prompt-input/ai-prompt-input.agent.d.ts +4 -0
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +18 -1
- package/dist/components/ai-prompt-input/index.d.ts +2 -1
- package/dist/components/ai-prompt-input/index.js +3 -2
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/audio-recorder/audio-recorder.agent.d.ts +4 -0
- package/dist/components/audio-recorder/audio-recorder.d.ts +10 -1
- package/dist/components/audio-recorder/index.d.ts +2 -1
- package/dist/components/audio-recorder/index.js +3 -2
- package/dist/components/autocomplete/autocomplete.agent.d.ts +2 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.agent.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +21 -2
- package/dist/components/breadcrumb/index.d.ts +2 -1
- package/dist/components/breadcrumb/index.js +5 -4
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +2 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +3 -1
- package/dist/components/chat-container/index.js +2 -2
- package/dist/components/chat-input/chat-input.agent.d.ts +4 -0
- package/dist/components/chat-input/chat-input.d.ts +10 -1
- package/dist/components/chat-input/index.d.ts +2 -1
- package/dist/components/chat-input/index.js +4 -2
- package/dist/components/checkbox/checkbox.agent.d.ts +4 -0
- package/dist/components/checkbox/checkbox.d.ts +6 -0
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.agent.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/collapsible.agent.d.ts +4 -0
- package/dist/components/collapsible/collapsible.d.ts +8 -1
- package/dist/components/collapsible/index.d.ts +2 -1
- package/dist/components/collapsible/index.js +4 -3
- package/dist/components/color-picker/color-picker.agent.d.ts +4 -0
- package/dist/components/color-picker/color-picker.d.ts +5 -0
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.agent.d.ts +2 -1
- package/dist/components/combobox/combobox.d.ts +10 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.agent.d.ts +2 -1
- package/dist/components/command-palette/command-palette.d.ts +7 -0
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.agent.d.ts +4 -0
- package/dist/components/date-picker/date-picker.d.ts +16 -1
- package/dist/components/date-picker/index.d.ts +2 -1
- package/dist/components/date-picker/index.js +3 -2
- package/dist/components/date-range-picker/date-range-picker.agent.d.ts +4 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +16 -1
- package/dist/components/date-range-picker/index.d.ts +2 -1
- package/dist/components/date-range-picker/index.js +3 -2
- package/dist/components/date-time-picker/date-time-picker.agent.d.ts +4 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +16 -1
- package/dist/components/date-time-picker/index.d.ts +2 -1
- package/dist/components/date-time-picker/index.js +3 -2
- package/dist/components/dialog/dialog.agent.d.ts +5 -6
- package/dist/components/dialog/dialog.d.ts +11 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts +2 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +10 -2
- package/dist/components/dropdown-menu/index.js +2 -2
- package/dist/components/file-upload/file-upload.agent.d.ts +2 -1
- package/dist/components/file-upload/file-upload.d.ts +12 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.agent.d.ts +4 -0
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +8 -1
- package/dist/components/freemium-paywall/index.d.ts +2 -1
- package/dist/components/freemium-paywall/index.js +3 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/index.js +5 -0
- package/dist/components/link/link.d.ts +39 -0
- package/dist/components/list/index.d.ts +2 -1
- package/dist/components/list/index.js +3 -2
- package/dist/components/list/list.agent.d.ts +4 -0
- package/dist/components/list/list.d.ts +8 -2
- package/dist/components/message-card/index.d.ts +1 -0
- package/dist/components/message-card/index.js +5 -3
- package/dist/components/message-card/message-card.agent.d.ts +3 -0
- package/dist/components/message-tray/index.d.ts +2 -1
- package/dist/components/message-tray/index.js +3 -2
- package/dist/components/message-tray/message-tray.agent.d.ts +4 -0
- package/dist/components/message-tray/message-tray.d.ts +27 -2
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.agent.d.ts +2 -1
- package/dist/components/multi-select/multi-select.d.ts +10 -0
- package/dist/components/navigation-menu/index.d.ts +2 -1
- package/dist/components/navigation-menu/index.js +7 -6
- package/dist/components/navigation-menu/navigation-menu.agent.d.ts +4 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +28 -2
- package/dist/components/notification-card/index.d.ts +1 -0
- package/dist/components/notification-card/index.js +5 -3
- package/dist/components/notification-card/notification-card.agent.d.ts +3 -0
- package/dist/components/notification-tray/index.d.ts +2 -1
- package/dist/components/notification-tray/index.js +3 -2
- package/dist/components/notification-tray/notification-tray.agent.d.ts +4 -0
- package/dist/components/notification-tray/notification-tray.d.ts +27 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.agent.d.ts +4 -0
- package/dist/components/number-input/number-input.d.ts +7 -0
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.agent.d.ts +4 -0
- package/dist/components/otp-input/otp-input.d.ts +10 -0
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination.agent.d.ts +2 -1
- package/dist/components/pagination/pagination.d.ts +7 -0
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/password-input.agent.d.ts +4 -0
- package/dist/components/password-input/password-input.d.ts +9 -0
- package/dist/components/payment-form/index.js +2 -2
- package/dist/components/payment-form/payment-form.d.ts +2 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +2 -0
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.agent.d.ts +4 -0
- package/dist/components/phone-input/phone-input.d.ts +7 -0
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.agent.d.ts +2 -1
- package/dist/components/popover/popover.d.ts +8 -1
- package/dist/components/privacy-lock/index.d.ts +2 -1
- package/dist/components/privacy-lock/index.js +3 -2
- package/dist/components/privacy-lock/privacy-lock.agent.d.ts +4 -0
- package/dist/components/privacy-lock/privacy-lock.d.ts +7 -1
- package/dist/components/progress/index.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group.agent.d.ts +4 -0
- package/dist/components/radio-group/radio-group.d.ts +5 -0
- package/dist/components/recaptcha-widget/index.d.ts +3 -0
- package/dist/components/recaptcha-widget/index.js +6 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.agent.d.ts +4 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +56 -0
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/resizable/resizable.agent.d.ts +2 -1
- package/dist/components/resizable/resizable.d.ts +6 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/search-bar/index.d.ts +2 -1
- package/dist/components/search-bar/index.js +3 -2
- package/dist/components/search-bar/search-bar.agent.d.ts +4 -0
- package/dist/components/search-bar/search-bar.d.ts +27 -1
- package/dist/components/search-input/index.d.ts +2 -1
- package/dist/components/search-input/index.js +4 -2
- package/dist/components/search-input/search-input.agent.d.ts +4 -0
- package/dist/components/search-input/search-input.d.ts +27 -0
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.agent.d.ts +4 -0
- package/dist/components/select/select.d.ts +9 -0
- package/dist/components/sheet/index.js +2 -2
- package/dist/components/sheet/sheet.agent.d.ts +2 -1
- package/dist/components/sheet/sheet.d.ts +11 -2
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sidebar/sidebar.agent.d.ts +2 -1
- package/dist/components/sidebar/sidebar.d.ts +6 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-capture/signature-capture.d.ts +2 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider.agent.d.ts +4 -0
- package/dist/components/slider/slider.d.ts +5 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-accordion/index.d.ts +2 -1
- package/dist/components/stepper-accordion/index.js +3 -2
- package/dist/components/stepper-accordion/stepper-accordion.agent.d.ts +4 -0
- package/dist/components/stepper-accordion/stepper-accordion.d.ts +19 -1
- package/dist/components/stepper-calendar/index.d.ts +2 -1
- package/dist/components/stepper-calendar/index.js +3 -2
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +4 -0
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +19 -1
- package/dist/components/stepper-progress/index.d.ts +2 -1
- package/dist/components/stepper-progress/index.js +4 -2
- package/dist/components/stepper-progress/stepper-progress.agent.d.ts +4 -0
- package/dist/components/stepper-progress/stepper-progress.d.ts +26 -1
- package/dist/components/suggestion-chip/index.d.ts +2 -1
- package/dist/components/suggestion-chip/index.js +5 -3
- package/dist/components/suggestion-chip/suggestion-chip.agent.d.ts +4 -0
- package/dist/components/suggestion-chip/suggestion-chip.d.ts +7 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.agent.d.ts +4 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs.agent.d.ts +2 -1
- package/dist/components/tabs/tabs.d.ts +4 -0
- package/dist/components/task-card/index.d.ts +1 -0
- package/dist/components/task-card/index.js +5 -3
- package/dist/components/task-card/task-card.agent.d.ts +3 -0
- package/dist/components/task-tray/index.d.ts +2 -1
- package/dist/components/task-tray/index.js +3 -2
- package/dist/components/task-tray/task-tray.agent.d.ts +4 -0
- package/dist/components/task-tray/task-tray.d.ts +25 -2
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.agent.d.ts +4 -0
- package/dist/components/text-area/text-area.d.ts +7 -0
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/text-input/text-input.agent.d.ts +4 -0
- package/dist/components/text-input/text-input.d.ts +10 -0
- package/dist/components/theme-toggle/index.d.ts +2 -1
- package/dist/components/theme-toggle/index.js +3 -2
- package/dist/components/theme-toggle/theme-toggle.agent.d.ts +4 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +9 -2
- package/dist/components/time-picker/index.d.ts +2 -1
- package/dist/components/time-picker/index.js +3 -2
- package/dist/components/time-picker/time-picker.agent.d.ts +4 -0
- package/dist/components/time-picker/time-picker.d.ts +16 -1
- package/dist/components/timeline/index.d.ts +2 -1
- package/dist/components/timeline/index.js +3 -2
- package/dist/components/timeline/timeline.agent.d.ts +4 -0
- package/dist/components/timeline/timeline.d.ts +8 -1
- package/dist/components/toast/index.d.ts +3 -2
- package/dist/components/toast/index.js +7 -5
- package/dist/components/toast/toast.agent.d.ts +4 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -0
- package/dist/components/transcript-panel/index.d.ts +2 -1
- package/dist/components/transcript-panel/index.js +3 -2
- package/dist/components/transcript-panel/transcript-panel.agent.d.ts +4 -0
- package/dist/components/transcript-panel/transcript-panel.d.ts +10 -1
- package/dist/components/workflow/index.d.ts +2 -1
- package/dist/components/workflow/index.js +10 -7
- package/dist/components/workflow/workflow-editor.d.ts +7 -1
- package/dist/components/workflow/workflow-map.d.ts +2 -0
- package/dist/components/workflow/workflow.agent.d.ts +6 -0
- package/dist/i18n/config.js +24 -11
- package/dist/i18n/resources.d.ts +7 -0
- package/dist/index.js +471 -423
- package/dist/locales/en.json +7 -0
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +18 -2
- package/dist/_chunks/accordion.agent-Cz-yglRa.js +0 -17
- package/dist/_chunks/agenda-tray-BqQZwiHc.js +0 -120
- package/dist/_chunks/ai-prompt-input-CI27KmZ1.js +0 -380
- package/dist/_chunks/audio-recorder-B-8SKgKn.js +0 -376
- package/dist/_chunks/autocomplete.agent-DqOy0_1P.js +0 -372
- package/dist/_chunks/breadcrumb-D6xpsP7n.js +0 -293
- package/dist/_chunks/checkbox-DNK4qS2_.js +0 -116
- package/dist/_chunks/checkbox-group-CWpGZEF6.js +0 -146
- package/dist/_chunks/collapsible-D4LOdLxp.js +0 -67
- package/dist/_chunks/combobox.agent-ByobCLJ_.js +0 -350
- package/dist/_chunks/date-picker-DYXNsWmM.js +0 -1726
- package/dist/_chunks/date-range-picker-BcNDJI7m.js +0 -183
- package/dist/_chunks/date-time-picker-CmGiTU__.js +0 -202
- package/dist/_chunks/dialog.agent-DEG_fVzG.js +0 -147
- package/dist/_chunks/dropdown-menu.agent-Cry4Nmes.js +0 -17
- package/dist/_chunks/freemium-paywall-CkefGLM_.js +0 -198
- package/dist/_chunks/list-B1ozIjQe.js +0 -359
- package/dist/_chunks/message-tray-VaLpQU5t.js +0 -303
- package/dist/_chunks/navigation-menu-EVFau1O2.js +0 -180
- package/dist/_chunks/notification-tray-B7U5YZYg.js +0 -328
- package/dist/_chunks/number-input-DjpT_RXJ.js +0 -249
- package/dist/_chunks/otp-input-De5_Ih7B.js +0 -189
- package/dist/_chunks/pagination.agent-oEaqmtx5.js +0 -380
- package/dist/_chunks/password-input-DJDVznWH.js +0 -193
- package/dist/_chunks/phone-input-DE_39q65.js +0 -428
- package/dist/_chunks/popover-C3CTUsqh.js +0 -227
- package/dist/_chunks/popover.agent-C0qOx9WT.js +0 -13
- package/dist/_chunks/privacy-lock-CQpgkLec.js +0 -132
- package/dist/_chunks/progress-B4Of_pzz.js +0 -252
- package/dist/_chunks/progress.agent-CXkHURjX.js +0 -22
- package/dist/_chunks/radio-group-BIUbpWml.js +0 -89
- package/dist/_chunks/resizable.agent-DBpPGNdy.js +0 -435
- package/dist/_chunks/search-bar-fcGqDFW3.js +0 -397
- package/dist/_chunks/search-input-BVMCONyN.js +0 -197
- package/dist/_chunks/select-IY_JQa-F.js +0 -321
- package/dist/_chunks/sheet.agent-DwQlBqK9.js +0 -13
- package/dist/_chunks/sidebar.agent-B0fnH9CC.js +0 -17
- package/dist/_chunks/slider-DjyRt3Mp.js +0 -274
- package/dist/_chunks/sparkline.agent-C_xp3NRB.js +0 -238
- package/dist/_chunks/stepper-accordion-CGog0JSF.js +0 -233
- package/dist/_chunks/stepper-calendar-_fLOAjus.js +0 -570
- package/dist/_chunks/stepper-progress-rE7tn7WY.js +0 -129
- package/dist/_chunks/suggestion-chip-BNJ2M8Os.js +0 -158
- package/dist/_chunks/switch-aN2EYxHh.js +0 -138
- package/dist/_chunks/task-tray-BzahI5FQ.js +0 -100
- package/dist/_chunks/text-area-DmKSd2DG.js +0 -152
- package/dist/_chunks/text-input-CRHvl5zk.js +0 -188
- package/dist/_chunks/theme-toggle-BHiMMEQN.js +0 -329
- package/dist/_chunks/time-picker-D-EueWUG.js +0 -322
- package/dist/_chunks/timeline-RgAIzpMd.js +0 -220
- package/dist/_chunks/transcript-panel-CNbVGG9L.js +0 -266
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { jsx as r, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Q, useState as v, useRef as U, useCallback as X, useMemo as Z, useImperativeHandle as z } from "react";
|
|
3
|
+
import { useTranslation as ee } from "react-i18next";
|
|
4
|
+
import * as m from "@radix-ui/react-popover";
|
|
5
|
+
import { u as te } from "./form-field-context-94LwgYTQ.js";
|
|
6
|
+
import { a as ae, g as ne, b as re, e as I, c as se, C as oe, d as ie, t as de, p as ce, D as le, f as pe, h as ue } from "./react-day-picker-C04L_28V.js";
|
|
7
|
+
import { c as fe, b as N, s as ge, f as R, d as me } from "./isSameMonth-5wNF2f4I.js";
|
|
8
|
+
import { u as ye } from "./registry-C9nwlNyL.js";
|
|
9
|
+
function D(t, s, n) {
|
|
10
|
+
return fe(t, -s, n);
|
|
11
|
+
}
|
|
12
|
+
function he(t, s, n) {
|
|
13
|
+
return ae(t, -1, n);
|
|
14
|
+
}
|
|
15
|
+
const ke = {
|
|
16
|
+
id: "date-range-picker",
|
|
17
|
+
capabilities: ["range_pick", "open", "close"],
|
|
18
|
+
state: {
|
|
19
|
+
range: {
|
|
20
|
+
type: "{ from: iso-date | null, to: iso-date | null }",
|
|
21
|
+
descriptionKey: "ui.agent.dateRangePicker.state.range",
|
|
22
|
+
description: "Currently-selected ISO date range endpoints, each possibly null.",
|
|
23
|
+
read: (t) => {
|
|
24
|
+
var n, l;
|
|
25
|
+
const s = t.getRange();
|
|
26
|
+
return {
|
|
27
|
+
from: ((n = s.from) == null ? void 0 : n.toISOString()) ?? null,
|
|
28
|
+
to: ((l = s.to) == null ? void 0 : l.toISOString()) ?? null
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
isOpen: {
|
|
33
|
+
type: "boolean",
|
|
34
|
+
descriptionKey: "ui.agent.dateRangePicker.state.isOpen",
|
|
35
|
+
description: "Whether the range calendar popover is open.",
|
|
36
|
+
read: (t) => t.isOpen()
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
actions: {
|
|
40
|
+
set_range: {
|
|
41
|
+
safety: "write",
|
|
42
|
+
argsType: "{ from: string, to: string }",
|
|
43
|
+
descriptionKey: "ui.agent.dateRangePicker.actions.setRange",
|
|
44
|
+
description: "Replace the selected range with the given ISO endpoints.",
|
|
45
|
+
invoke: (t, s) => {
|
|
46
|
+
t.setRange({ from: new Date(s.from), to: new Date(s.to) });
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
clear: {
|
|
50
|
+
safety: "destructive",
|
|
51
|
+
descriptionKey: "ui.agent.dateRangePicker.actions.clear",
|
|
52
|
+
description: "Clear the selected range.",
|
|
53
|
+
invoke: (t) => {
|
|
54
|
+
t.clear();
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
open: {
|
|
58
|
+
safety: "read",
|
|
59
|
+
descriptionKey: "ui.agent.dateRangePicker.actions.open",
|
|
60
|
+
description: "Open the range calendar popover.",
|
|
61
|
+
invoke: (t) => {
|
|
62
|
+
t.open();
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
close: {
|
|
66
|
+
safety: "read",
|
|
67
|
+
descriptionKey: "ui.agent.dateRangePicker.actions.close",
|
|
68
|
+
description: "Close the range calendar popover.",
|
|
69
|
+
invoke: (t) => {
|
|
70
|
+
t.close();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
domHooks: {
|
|
75
|
+
root: {
|
|
76
|
+
attr: "data-component",
|
|
77
|
+
value: "date-range-picker",
|
|
78
|
+
description: "Marks the DateRangePicker wrapper."
|
|
79
|
+
},
|
|
80
|
+
instanceId: {
|
|
81
|
+
attr: "data-component-id",
|
|
82
|
+
sourceProp: "id",
|
|
83
|
+
description: "Sourced from the id prop."
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}, be = Q(
|
|
87
|
+
({
|
|
88
|
+
value: t,
|
|
89
|
+
defaultValue: s,
|
|
90
|
+
onChange: n,
|
|
91
|
+
minDate: l,
|
|
92
|
+
maxDate: T,
|
|
93
|
+
presets: y,
|
|
94
|
+
mergePresets: W = !1,
|
|
95
|
+
size: P = "md",
|
|
96
|
+
disabled: V,
|
|
97
|
+
placeholder: K,
|
|
98
|
+
className: L,
|
|
99
|
+
id: F
|
|
100
|
+
}, j) => {
|
|
101
|
+
const { t: o, i18n: A } = ee(), c = te(), h = F ?? c.id, w = c.disabled || V, B = c.invalid ? "error" : "default", i = ne(A.language), H = K ?? o("ui.inputs.dateRangePicker.placeholder", "Select date range"), k = t !== void 0, [_, $] = v(
|
|
102
|
+
t ?? s ?? {}
|
|
103
|
+
), a = k ? t : _, [p, u] = v(!1), [Y, M] = v(
|
|
104
|
+
a.from ?? /* @__PURE__ */ new Date()
|
|
105
|
+
), q = U(null), d = X(
|
|
106
|
+
(e) => {
|
|
107
|
+
k || $(e), n == null || n(e);
|
|
108
|
+
},
|
|
109
|
+
[k, n]
|
|
110
|
+
), E = re(l, T), O = [
|
|
111
|
+
{
|
|
112
|
+
label: o("ui.inputs.dateRangePicker.presets.today", "Today"),
|
|
113
|
+
range: () => {
|
|
114
|
+
const e = /* @__PURE__ */ new Date();
|
|
115
|
+
return { from: e, to: e };
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: o("ui.inputs.dateRangePicker.presets.yesterday", "Yesterday"),
|
|
120
|
+
range: () => {
|
|
121
|
+
const e = D(/* @__PURE__ */ new Date(), 1);
|
|
122
|
+
return { from: e, to: e };
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: o("ui.inputs.dateRangePicker.presets.last7", "Last 7 days"),
|
|
127
|
+
range: () => ({
|
|
128
|
+
from: D(/* @__PURE__ */ new Date(), 6),
|
|
129
|
+
to: /* @__PURE__ */ new Date()
|
|
130
|
+
})
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
label: o("ui.inputs.dateRangePicker.presets.thisWeek", "This week"),
|
|
134
|
+
range: () => ({
|
|
135
|
+
from: N(/* @__PURE__ */ new Date(), { locale: i }),
|
|
136
|
+
to: I(/* @__PURE__ */ new Date(), { locale: i })
|
|
137
|
+
})
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: o("ui.inputs.dateRangePicker.presets.lastWeek", "Last week"),
|
|
141
|
+
range: () => {
|
|
142
|
+
const e = he(/* @__PURE__ */ new Date());
|
|
143
|
+
return {
|
|
144
|
+
from: N(e, { locale: i }),
|
|
145
|
+
to: I(e, { locale: i })
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: o("ui.inputs.dateRangePicker.presets.thisMonth", "This month"),
|
|
151
|
+
range: () => ({
|
|
152
|
+
from: ge(/* @__PURE__ */ new Date()),
|
|
153
|
+
to: se(/* @__PURE__ */ new Date())
|
|
154
|
+
})
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
label: o("ui.inputs.dateRangePicker.presets.last30", "Last 30 days"),
|
|
158
|
+
range: () => ({
|
|
159
|
+
from: D(/* @__PURE__ */ new Date(), 29),
|
|
160
|
+
to: /* @__PURE__ */ new Date()
|
|
161
|
+
})
|
|
162
|
+
}
|
|
163
|
+
], x = y ? W ? [...O, ...y] : y : O, G = (e) => {
|
|
164
|
+
d(e ? { from: e.from, to: e.to } : {});
|
|
165
|
+
}, J = (e) => {
|
|
166
|
+
const f = e.range();
|
|
167
|
+
d(f), M(f.from), u(!1);
|
|
168
|
+
}, S = (() => {
|
|
169
|
+
if (a.from && a.to) {
|
|
170
|
+
const e = R(a.from, "MMM d, yyyy", { locale: i }), f = R(a.to, "MMM d, yyyy", { locale: i });
|
|
171
|
+
return `${e} – ${f}`;
|
|
172
|
+
}
|
|
173
|
+
return a.from ? R(a.from, "MMM d, yyyy", { locale: i }) : "";
|
|
174
|
+
})(), C = (() => {
|
|
175
|
+
if (a.from && a.to) {
|
|
176
|
+
const e = me(a.to, a.from) + 1;
|
|
177
|
+
return o("ui.inputs.dateRangePicker.days", "{{count}} days", { count: e });
|
|
178
|
+
}
|
|
179
|
+
return "";
|
|
180
|
+
})(), b = Z(
|
|
181
|
+
() => ({
|
|
182
|
+
getRange: () => a,
|
|
183
|
+
setRange: (e) => d(e),
|
|
184
|
+
clear: () => d({}),
|
|
185
|
+
isOpen: () => p,
|
|
186
|
+
open: () => u(!0),
|
|
187
|
+
close: () => u(!1)
|
|
188
|
+
}),
|
|
189
|
+
[a, d, p]
|
|
190
|
+
);
|
|
191
|
+
return z(j, () => b, [b]), ye(ke, b, h), /* @__PURE__ */ r(m.Root, { open: p, onOpenChange: u, children: /* @__PURE__ */ g(
|
|
192
|
+
"div",
|
|
193
|
+
{
|
|
194
|
+
className: L,
|
|
195
|
+
"data-component": "date-range-picker",
|
|
196
|
+
"data-component-id": h,
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ r(m.Trigger, { asChild: !0, disabled: w, children: /* @__PURE__ */ g(
|
|
199
|
+
"button",
|
|
200
|
+
{
|
|
201
|
+
ref: q,
|
|
202
|
+
id: h,
|
|
203
|
+
type: "button",
|
|
204
|
+
disabled: w,
|
|
205
|
+
"aria-describedby": c.describedBy || void 0,
|
|
206
|
+
"aria-invalid": c.invalid || void 0,
|
|
207
|
+
"aria-haspopup": "dialog",
|
|
208
|
+
"aria-expanded": p,
|
|
209
|
+
className: de({ size: P, tone: B }),
|
|
210
|
+
children: [
|
|
211
|
+
/* @__PURE__ */ r("span", { className: S ? "ds:text-foreground" : "ds:text-muted-foreground", children: S || H }),
|
|
212
|
+
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: ie({ size: P }), children: /* @__PURE__ */ r(oe, {}) })
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
) }),
|
|
216
|
+
/* @__PURE__ */ r(m.Portal, { children: /* @__PURE__ */ r(
|
|
217
|
+
m.Content,
|
|
218
|
+
{
|
|
219
|
+
sideOffset: 4,
|
|
220
|
+
align: "start",
|
|
221
|
+
className: ue(),
|
|
222
|
+
children: /* @__PURE__ */ g("div", { className: "ds:flex ds:gap-[var(--spacing-md)]", children: [
|
|
223
|
+
x.length > 0 ? /* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-[8rem] ds:border-e ds:border-border ds:pe-[var(--spacing-md)]", children: x.map((e) => /* @__PURE__ */ r(
|
|
224
|
+
"button",
|
|
225
|
+
{
|
|
226
|
+
type: "button",
|
|
227
|
+
onClick: () => J(e),
|
|
228
|
+
className: ce(),
|
|
229
|
+
children: e.label
|
|
230
|
+
},
|
|
231
|
+
e.label
|
|
232
|
+
)) }) : null,
|
|
233
|
+
/* @__PURE__ */ g("div", { children: [
|
|
234
|
+
/* @__PURE__ */ r(
|
|
235
|
+
le,
|
|
236
|
+
{
|
|
237
|
+
mode: "range",
|
|
238
|
+
selected: a.from ? { from: a.from, to: a.to } : void 0,
|
|
239
|
+
onSelect: G,
|
|
240
|
+
month: Y,
|
|
241
|
+
onMonthChange: M,
|
|
242
|
+
numberOfMonths: 2,
|
|
243
|
+
disabled: E,
|
|
244
|
+
locale: i,
|
|
245
|
+
showOutsideDays: !0,
|
|
246
|
+
fixedWeeks: !0,
|
|
247
|
+
pagedNavigation: !0,
|
|
248
|
+
components: { Chevron: pe }
|
|
249
|
+
}
|
|
250
|
+
),
|
|
251
|
+
C ? /* @__PURE__ */ r(
|
|
252
|
+
"div",
|
|
253
|
+
{
|
|
254
|
+
role: "status",
|
|
255
|
+
"aria-live": "polite",
|
|
256
|
+
className: "type-body-sm ds:text-muted-foreground ds:mt-[var(--spacing-sm)] ds:text-center",
|
|
257
|
+
children: C
|
|
258
|
+
}
|
|
259
|
+
) : null
|
|
260
|
+
] })
|
|
261
|
+
] })
|
|
262
|
+
}
|
|
263
|
+
) })
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
) });
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
be.displayName = "DateRangePicker";
|
|
270
|
+
export {
|
|
271
|
+
be as D,
|
|
272
|
+
ke as d
|
|
273
|
+
};
|
|
274
|
+
//# sourceMappingURL=date-range-picker-B2hGsffw.js.map
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { jsx as r, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as oe, useState as p, useRef as de, useCallback as F, useMemo as ce, useImperativeHandle as le } from "react";
|
|
3
|
+
import { c as ue } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as me } from "react-i18next";
|
|
5
|
+
import * as k from "@radix-ui/react-popover";
|
|
6
|
+
import { u as pe } from "./form-field-context-94LwgYTQ.js";
|
|
7
|
+
import { T as fe } from "./time-picker-B8AMIrX7.js";
|
|
8
|
+
import { g as ge, b as he, i as ve, j as be, C as ye, d as Te, t as ke, D as we, f as De, h as Pe } from "./react-day-picker-C04L_28V.js";
|
|
9
|
+
import { f as xe } from "./isSameMonth-5wNF2f4I.js";
|
|
10
|
+
import { u as Ce } from "./registry-C9nwlNyL.js";
|
|
11
|
+
import { t as j } from "./isSameDay-ecuM8PBB.js";
|
|
12
|
+
function K(e, s, a) {
|
|
13
|
+
const i = j(e, a == null ? void 0 : a.in);
|
|
14
|
+
return i.setHours(s), i;
|
|
15
|
+
}
|
|
16
|
+
function A(e, s, a) {
|
|
17
|
+
const i = j(e, a == null ? void 0 : a.in);
|
|
18
|
+
return i.setMinutes(s), i;
|
|
19
|
+
}
|
|
20
|
+
const Oe = {
|
|
21
|
+
id: "date-time-picker",
|
|
22
|
+
capabilities: ["pick", "open", "close"],
|
|
23
|
+
state: {
|
|
24
|
+
value: {
|
|
25
|
+
type: "iso-datetime",
|
|
26
|
+
descriptionKey: "ui.agent.dateTimePicker.state.value",
|
|
27
|
+
description: "Currently-selected ISO datetime, or null.",
|
|
28
|
+
read: (e) => {
|
|
29
|
+
var s;
|
|
30
|
+
return ((s = e.getValue()) == null ? void 0 : s.toISOString()) ?? null;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
isOpen: {
|
|
34
|
+
type: "boolean",
|
|
35
|
+
descriptionKey: "ui.agent.dateTimePicker.state.isOpen",
|
|
36
|
+
description: "Whether the datetime popover is open.",
|
|
37
|
+
read: (e) => e.isOpen()
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
actions: {
|
|
41
|
+
set_datetime: {
|
|
42
|
+
safety: "write",
|
|
43
|
+
argsType: "{ datetime: string }",
|
|
44
|
+
descriptionKey: "ui.agent.dateTimePicker.actions.setDatetime",
|
|
45
|
+
description: "Select a specific datetime (ISO string).",
|
|
46
|
+
invoke: (e, s) => {
|
|
47
|
+
e.setValue(new Date(s.datetime));
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
clear: {
|
|
51
|
+
safety: "destructive",
|
|
52
|
+
descriptionKey: "ui.agent.dateTimePicker.actions.clear",
|
|
53
|
+
description: "Clear the selected datetime.",
|
|
54
|
+
invoke: (e) => {
|
|
55
|
+
e.clear();
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
open: {
|
|
59
|
+
safety: "read",
|
|
60
|
+
descriptionKey: "ui.agent.dateTimePicker.actions.open",
|
|
61
|
+
description: "Open the datetime popover.",
|
|
62
|
+
invoke: (e) => {
|
|
63
|
+
e.open();
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
close: {
|
|
67
|
+
safety: "read",
|
|
68
|
+
descriptionKey: "ui.agent.dateTimePicker.actions.close",
|
|
69
|
+
description: "Close the datetime popover.",
|
|
70
|
+
invoke: (e) => {
|
|
71
|
+
e.close();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
domHooks: {
|
|
76
|
+
root: {
|
|
77
|
+
attr: "data-component",
|
|
78
|
+
value: "date-time-picker",
|
|
79
|
+
description: "Marks the DateTimePicker wrapper."
|
|
80
|
+
},
|
|
81
|
+
instanceId: {
|
|
82
|
+
attr: "data-component-id",
|
|
83
|
+
sourceProp: "id",
|
|
84
|
+
description: "Sourced from the id prop."
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
function Me(e, s) {
|
|
89
|
+
var a;
|
|
90
|
+
try {
|
|
91
|
+
const i = { timeZoneName: "short" };
|
|
92
|
+
return s && s !== "local" && (i.timeZone = s === "utc" ? "UTC" : s), ((a = new Intl.DateTimeFormat(e, i).formatToParts(/* @__PURE__ */ new Date()).find((d) => d.type === "timeZoneName")) == null ? void 0 : a.value) ?? "";
|
|
93
|
+
} catch {
|
|
94
|
+
return "";
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function Ne(e) {
|
|
98
|
+
if (!e || e === "local") return !1;
|
|
99
|
+
try {
|
|
100
|
+
const s = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
101
|
+
return e === "utc" ? s !== "UTC" : s !== e;
|
|
102
|
+
} catch {
|
|
103
|
+
return !1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const Ve = ue(
|
|
107
|
+
[
|
|
108
|
+
"ds:w-full ds:rounded-[var(--radius-sm)]",
|
|
109
|
+
"ds:bg-primary ds:text-primary-foreground",
|
|
110
|
+
"ds:hover:bg-primary-hover ds:cursor-pointer",
|
|
111
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
112
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
113
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
114
|
+
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
115
|
+
].join(" "),
|
|
116
|
+
{
|
|
117
|
+
variants: {
|
|
118
|
+
size: {
|
|
119
|
+
sm: "ds:h-8 ds:text-[length:var(--font-size-sm)]",
|
|
120
|
+
md: "ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
|
|
121
|
+
lg: "ds:h-12 ds:text-[length:var(--font-size-lg)]"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
defaultVariants: { size: "md" }
|
|
125
|
+
}
|
|
126
|
+
), Ie = oe(
|
|
127
|
+
({
|
|
128
|
+
value: e,
|
|
129
|
+
defaultValue: s,
|
|
130
|
+
onChange: a,
|
|
131
|
+
timezone: i,
|
|
132
|
+
showTimezone: w,
|
|
133
|
+
minDate: d,
|
|
134
|
+
maxDate: f,
|
|
135
|
+
hour12: B,
|
|
136
|
+
minuteStep: Z = 1,
|
|
137
|
+
size: g = "md",
|
|
138
|
+
disabled: _,
|
|
139
|
+
placeholder: z,
|
|
140
|
+
className: E,
|
|
141
|
+
id: U
|
|
142
|
+
}, W) => {
|
|
143
|
+
const { t: c, i18n: N } = me(), l = pe(), D = U ?? l.id, V = l.disabled || _, q = l.invalid ? "error" : "default", I = ge(N.language), G = z ?? c("ui.inputs.dateTimePicker.placeholder", "Select date and time"), J = c("ui.inputs.dateTimePicker.apply", "Apply"), Q = c(
|
|
144
|
+
"ui.inputs.dateTimePicker.outOfRange",
|
|
145
|
+
"Date/time is out of allowed range"
|
|
146
|
+
), S = (w !== void 0 ? w : Ne(i)) ? Me(N.language, i) : "", P = e !== void 0, [X, Y] = p(
|
|
147
|
+
e ?? s
|
|
148
|
+
), n = P ? e : X, [o, h] = p(n), [v, b] = p(!1), [$, x] = p(n ?? /* @__PURE__ */ new Date()), [L, u] = p(!1), R = de(null), y = F(
|
|
149
|
+
(t) => {
|
|
150
|
+
P || Y(t), a == null || a(t);
|
|
151
|
+
},
|
|
152
|
+
[P, a]
|
|
153
|
+
), ee = he(d, f), C = F(
|
|
154
|
+
(t) => !(d && ve(t, d) || f && be(t, f)),
|
|
155
|
+
[d, f]
|
|
156
|
+
), te = (t) => {
|
|
157
|
+
t && (h(n ?? /* @__PURE__ */ new Date()), x(n ?? /* @__PURE__ */ new Date()), u(!1)), b(t);
|
|
158
|
+
}, se = (t) => {
|
|
159
|
+
if (!t) return;
|
|
160
|
+
const M = o ?? /* @__PURE__ */ new Date(), m = A(K(t, M.getHours()), M.getMinutes());
|
|
161
|
+
h(m), u(!C(m));
|
|
162
|
+
}, ae = (t) => {
|
|
163
|
+
const m = A(K(o ?? /* @__PURE__ */ new Date(), t.hours), t.minutes);
|
|
164
|
+
h(m), u(!C(m));
|
|
165
|
+
}, re = () => {
|
|
166
|
+
var t;
|
|
167
|
+
if (o) {
|
|
168
|
+
if (!C(o)) {
|
|
169
|
+
u(!0);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
y(o), b(!1), (t = R.current) == null || t.focus();
|
|
173
|
+
}
|
|
174
|
+
}, H = n ? xe(n, "MMM d, yyyy HH:mm", { locale: I }) : "", ie = c("ui.inputs.datePicker.gridLabel", "Calendar"), ne = c("ui.inputs.timePicker.groupLabel", "Time"), O = ce(
|
|
175
|
+
() => ({
|
|
176
|
+
getValue: () => n,
|
|
177
|
+
setValue: (t) => y(t),
|
|
178
|
+
clear: () => y(void 0),
|
|
179
|
+
isOpen: () => v,
|
|
180
|
+
// Mirror the trigger's open behaviour so draft state seeds correctly.
|
|
181
|
+
open: () => {
|
|
182
|
+
h(n ?? /* @__PURE__ */ new Date()), x(n ?? /* @__PURE__ */ new Date()), u(!1), b(!0);
|
|
183
|
+
},
|
|
184
|
+
close: () => b(!1)
|
|
185
|
+
}),
|
|
186
|
+
[n, y, v]
|
|
187
|
+
);
|
|
188
|
+
return le(W, () => O, [O]), Ce(Oe, O, D), /* @__PURE__ */ r(k.Root, { open: v, onOpenChange: te, children: /* @__PURE__ */ T(
|
|
189
|
+
"div",
|
|
190
|
+
{
|
|
191
|
+
className: E,
|
|
192
|
+
"data-component": "date-time-picker",
|
|
193
|
+
"data-component-id": D,
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ r(k.Trigger, { asChild: !0, disabled: V, children: /* @__PURE__ */ T(
|
|
196
|
+
"button",
|
|
197
|
+
{
|
|
198
|
+
ref: R,
|
|
199
|
+
id: D,
|
|
200
|
+
type: "button",
|
|
201
|
+
disabled: V,
|
|
202
|
+
"aria-describedby": l.describedBy || void 0,
|
|
203
|
+
"aria-invalid": l.invalid || void 0,
|
|
204
|
+
"aria-haspopup": "dialog",
|
|
205
|
+
"aria-expanded": v,
|
|
206
|
+
className: ke({ size: g, tone: q }),
|
|
207
|
+
children: [
|
|
208
|
+
/* @__PURE__ */ r("span", { className: H ? "ds:text-foreground" : "ds:text-muted-foreground", children: H || G }),
|
|
209
|
+
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: Te({ size: g }), children: /* @__PURE__ */ r(ye, {}) })
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
) }),
|
|
213
|
+
/* @__PURE__ */ r(k.Portal, { children: /* @__PURE__ */ r(
|
|
214
|
+
k.Content,
|
|
215
|
+
{
|
|
216
|
+
sideOffset: 4,
|
|
217
|
+
align: "start",
|
|
218
|
+
className: Pe(),
|
|
219
|
+
children: /* @__PURE__ */ T("div", { className: "ds:flex ds:flex-col ds:sm:flex-row ds:gap-[var(--spacing-md)]", children: [
|
|
220
|
+
/* @__PURE__ */ r("div", { role: "region", "aria-label": ie, children: /* @__PURE__ */ r(
|
|
221
|
+
we,
|
|
222
|
+
{
|
|
223
|
+
mode: "single",
|
|
224
|
+
selected: o,
|
|
225
|
+
onSelect: se,
|
|
226
|
+
month: $,
|
|
227
|
+
onMonthChange: x,
|
|
228
|
+
disabled: ee,
|
|
229
|
+
locale: I,
|
|
230
|
+
showOutsideDays: !0,
|
|
231
|
+
fixedWeeks: !0,
|
|
232
|
+
components: { Chevron: De }
|
|
233
|
+
}
|
|
234
|
+
) }),
|
|
235
|
+
/* @__PURE__ */ T(
|
|
236
|
+
"div",
|
|
237
|
+
{
|
|
238
|
+
role: "region",
|
|
239
|
+
"aria-label": ne,
|
|
240
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)] ds:sm:border-s ds:sm:border-border ds:sm:ps-[var(--spacing-md)] ds:min-w-[10rem]",
|
|
241
|
+
children: [
|
|
242
|
+
/* @__PURE__ */ r(
|
|
243
|
+
fe,
|
|
244
|
+
{
|
|
245
|
+
value: o ? { hours: o.getHours(), minutes: o.getMinutes() } : { hours: 0, minutes: 0 },
|
|
246
|
+
onChange: ae,
|
|
247
|
+
hour12: B,
|
|
248
|
+
minuteStep: Z,
|
|
249
|
+
size: g
|
|
250
|
+
}
|
|
251
|
+
),
|
|
252
|
+
S ? /* @__PURE__ */ r(
|
|
253
|
+
"span",
|
|
254
|
+
{
|
|
255
|
+
className: "type-meta ds:text-muted-foreground",
|
|
256
|
+
children: S
|
|
257
|
+
}
|
|
258
|
+
) : null,
|
|
259
|
+
L ? /* @__PURE__ */ r(
|
|
260
|
+
"span",
|
|
261
|
+
{
|
|
262
|
+
role: "alert",
|
|
263
|
+
className: "type-meta ds:text-destructive",
|
|
264
|
+
children: Q
|
|
265
|
+
}
|
|
266
|
+
) : null,
|
|
267
|
+
/* @__PURE__ */ r(
|
|
268
|
+
"button",
|
|
269
|
+
{
|
|
270
|
+
type: "button",
|
|
271
|
+
onClick: re,
|
|
272
|
+
disabled: !o || L,
|
|
273
|
+
className: Ve({ size: g }),
|
|
274
|
+
children: J
|
|
275
|
+
}
|
|
276
|
+
)
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
)
|
|
280
|
+
] })
|
|
281
|
+
}
|
|
282
|
+
) })
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
) });
|
|
286
|
+
}
|
|
287
|
+
);
|
|
288
|
+
Ie.displayName = "DateTimePicker";
|
|
289
|
+
export {
|
|
290
|
+
Ie as D,
|
|
291
|
+
Oe as d
|
|
292
|
+
};
|
|
293
|
+
//# sourceMappingURL=date-time-picker-Bzt0S8yO.js.map
|