@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,410 @@
|
|
|
1
|
+
import { jsxs as ve, jsx as B } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ge, useState as O, useCallback as U, useRef as z, useEffect as ye, useMemo as be, useImperativeHandle as we } from "react";
|
|
3
|
+
import { c as N } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as ke } from "react-i18next";
|
|
5
|
+
import { u as xe } from "./form-field-context-94LwgYTQ.js";
|
|
6
|
+
import { u as Te } from "./registry-C9nwlNyL.js";
|
|
7
|
+
const De = {
|
|
8
|
+
id: "time-picker",
|
|
9
|
+
capabilities: ["pick", "open", "close"],
|
|
10
|
+
state: {
|
|
11
|
+
value: {
|
|
12
|
+
type: "HH:MM",
|
|
13
|
+
descriptionKey: "ui.agent.timePicker.state.value",
|
|
14
|
+
description: "Currently-selected time as 24h HH:MM (always present — defaults to 00:00 when unset).",
|
|
15
|
+
read: (t) => {
|
|
16
|
+
const n = t.getValue();
|
|
17
|
+
if (!n) return null;
|
|
18
|
+
const u = String(n.hours).padStart(2, "0"), f = String(n.minutes).padStart(2, "0");
|
|
19
|
+
return `${u}:${f}`;
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
isOpen: {
|
|
23
|
+
type: "boolean",
|
|
24
|
+
descriptionKey: "ui.agent.timePicker.state.isOpen",
|
|
25
|
+
description: "Whether the time popover is open. TimePicker has no popover of its own; always false.",
|
|
26
|
+
read: (t) => t.isOpen()
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
actions: {
|
|
30
|
+
set_time: {
|
|
31
|
+
safety: "write",
|
|
32
|
+
argsType: "{ time: string }",
|
|
33
|
+
descriptionKey: "ui.agent.timePicker.actions.setTime",
|
|
34
|
+
description: "Set the time using a 24h HH:MM string.",
|
|
35
|
+
invoke: (t, n) => {
|
|
36
|
+
const [u, f] = n.time.split(":");
|
|
37
|
+
t.setValue({
|
|
38
|
+
hours: Number.parseInt(u ?? "0", 10),
|
|
39
|
+
minutes: Number.parseInt(f ?? "0", 10)
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
clear: {
|
|
44
|
+
safety: "destructive",
|
|
45
|
+
descriptionKey: "ui.agent.timePicker.actions.clear",
|
|
46
|
+
description: "Clear the time (resets to 00:00).",
|
|
47
|
+
invoke: (t) => {
|
|
48
|
+
t.clear();
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
open: {
|
|
52
|
+
safety: "read",
|
|
53
|
+
descriptionKey: "ui.agent.timePicker.actions.open",
|
|
54
|
+
description: "No-op: TimePicker has no popover of its own.",
|
|
55
|
+
invoke: (t) => {
|
|
56
|
+
t.open();
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
close: {
|
|
60
|
+
safety: "read",
|
|
61
|
+
descriptionKey: "ui.agent.timePicker.actions.close",
|
|
62
|
+
description: "No-op: TimePicker has no popover of its own.",
|
|
63
|
+
invoke: (t) => {
|
|
64
|
+
t.close();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
domHooks: {
|
|
69
|
+
root: {
|
|
70
|
+
attr: "data-component",
|
|
71
|
+
value: "time-picker",
|
|
72
|
+
description: "Marks the TimePicker wrapper."
|
|
73
|
+
},
|
|
74
|
+
instanceId: {
|
|
75
|
+
attr: "data-component-id",
|
|
76
|
+
sourceProp: "id",
|
|
77
|
+
description: "Sourced from the id prop."
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
function Pe(t) {
|
|
82
|
+
try {
|
|
83
|
+
const n = new Intl.DateTimeFormat(t, {
|
|
84
|
+
hour: "numeric"
|
|
85
|
+
}).resolvedOptions();
|
|
86
|
+
return n.hourCycle === "h12" || n.hourCycle === "h11";
|
|
87
|
+
} catch {
|
|
88
|
+
return !1;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function Me(t) {
|
|
92
|
+
var n, u;
|
|
93
|
+
try {
|
|
94
|
+
const f = ((n = new Intl.DateTimeFormat(t, {
|
|
95
|
+
hour: "numeric",
|
|
96
|
+
hour12: !0
|
|
97
|
+
}).formatToParts(new Date(2e3, 0, 1, 9)).find((k) => k.type === "dayPeriod")) == null ? void 0 : n.value) ?? "AM", m = ((u = new Intl.DateTimeFormat(t, {
|
|
98
|
+
hour: "numeric",
|
|
99
|
+
hour12: !0
|
|
100
|
+
}).formatToParts(new Date(2e3, 0, 1, 15)).find((k) => k.type === "dayPeriod")) == null ? void 0 : u.value) ?? "PM";
|
|
101
|
+
return { am: f, pm: m };
|
|
102
|
+
} catch {
|
|
103
|
+
return { am: "AM", pm: "PM" };
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function w(t, n, u) {
|
|
107
|
+
return Math.min(u, Math.max(n, t));
|
|
108
|
+
}
|
|
109
|
+
function S(t, n) {
|
|
110
|
+
return Math.round(t / n) * n;
|
|
111
|
+
}
|
|
112
|
+
function q(t) {
|
|
113
|
+
return t === 0 ? 12 : t > 12 ? t - 12 : t;
|
|
114
|
+
}
|
|
115
|
+
function C(t, n) {
|
|
116
|
+
return n ? t === 12 ? 12 : t + 12 : t === 12 ? 0 : t;
|
|
117
|
+
}
|
|
118
|
+
const He = N(
|
|
119
|
+
[
|
|
120
|
+
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
121
|
+
"ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-background",
|
|
122
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
123
|
+
"ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
|
|
124
|
+
"ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
|
|
125
|
+
"ds:forced-colors:focus-within:outline-[CanvasText]"
|
|
126
|
+
].join(" "),
|
|
127
|
+
{
|
|
128
|
+
variants: {
|
|
129
|
+
size: {
|
|
130
|
+
sm: "ds:h-8 ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:text-[length:var(--font-size-sm)]",
|
|
131
|
+
md: "ds:h-[var(--min-target-size)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:text-[length:var(--font-size-base)]",
|
|
132
|
+
lg: "ds:h-12 ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:text-[length:var(--font-size-lg)]"
|
|
133
|
+
},
|
|
134
|
+
tone: {
|
|
135
|
+
default: "ds:border-border",
|
|
136
|
+
error: "ds:border-destructive"
|
|
137
|
+
},
|
|
138
|
+
isDisabled: {
|
|
139
|
+
true: "ds:cursor-not-allowed ds:opacity-50",
|
|
140
|
+
false: ""
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
defaultVariants: {
|
|
144
|
+
size: "md",
|
|
145
|
+
tone: "default",
|
|
146
|
+
isDisabled: !1
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
), G = N(
|
|
150
|
+
[
|
|
151
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
152
|
+
"ds:rounded-[var(--radius-sm)] ds:text-center ds:tabular-nums",
|
|
153
|
+
"ds:bg-transparent ds:text-foreground",
|
|
154
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
155
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
156
|
+
"ds:select-none"
|
|
157
|
+
].join(" "),
|
|
158
|
+
{
|
|
159
|
+
variants: {
|
|
160
|
+
size: {
|
|
161
|
+
sm: "ds:min-w-6 ds:h-6 ds:text-[length:var(--font-size-sm)]",
|
|
162
|
+
md: "ds:min-w-8 ds:h-8 ds:text-[length:var(--font-size-base)]",
|
|
163
|
+
lg: "ds:min-w-10 ds:h-10 ds:text-[length:var(--font-size-lg)]"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
defaultVariants: { size: "md" }
|
|
167
|
+
}
|
|
168
|
+
), ze = N(
|
|
169
|
+
[
|
|
170
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
171
|
+
"ds:rounded-[var(--radius-sm)] ds:text-center",
|
|
172
|
+
"ds:bg-transparent ds:text-foreground ds:cursor-pointer",
|
|
173
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
174
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
175
|
+
"ds:select-none",
|
|
176
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
177
|
+
"ds:hover:bg-muted"
|
|
178
|
+
].join(" "),
|
|
179
|
+
{
|
|
180
|
+
variants: {
|
|
181
|
+
size: {
|
|
182
|
+
sm: "ds:min-w-8 ds:h-6 ds:text-[length:var(--font-size-sm)] ds:ps-1 ds:pe-1",
|
|
183
|
+
md: "ds:min-w-10 ds:h-8 ds:text-[length:var(--font-size-base)] ds:ps-1.5 ds:pe-1.5",
|
|
184
|
+
lg: "ds:min-w-12 ds:h-10 ds:text-[length:var(--font-size-lg)] ds:ps-2 ds:pe-2"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
defaultVariants: { size: "md" }
|
|
188
|
+
}
|
|
189
|
+
), Ke = N("ds:text-muted-foreground ds:select-none", {
|
|
190
|
+
variants: {
|
|
191
|
+
size: {
|
|
192
|
+
sm: "ds:text-[length:var(--font-size-sm)]",
|
|
193
|
+
md: "ds:text-[length:var(--font-size-base)]",
|
|
194
|
+
lg: "ds:text-[length:var(--font-size-lg)]"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
defaultVariants: { size: "md" }
|
|
198
|
+
}), Ve = ge(
|
|
199
|
+
({
|
|
200
|
+
value: t,
|
|
201
|
+
defaultValue: n,
|
|
202
|
+
onChange: u,
|
|
203
|
+
hour12: f,
|
|
204
|
+
minuteStep: m = 1,
|
|
205
|
+
fullWidthSeparator: k = !1,
|
|
206
|
+
periodLabels: J,
|
|
207
|
+
size: x = "md",
|
|
208
|
+
disabled: Q,
|
|
209
|
+
className: X,
|
|
210
|
+
id: Y
|
|
211
|
+
}, Z) => {
|
|
212
|
+
const { t: K, i18n: _ } = ke(), T = xe(), L = Y ?? T.id, p = T.disabled || Q, ee = T.invalid ? "error" : "default", i = f !== void 0 ? f : Pe(_.language), te = Me(_.language), V = J ?? te, R = t !== void 0, [re, se] = O(
|
|
213
|
+
t ?? n ?? { hours: 0, minutes: 0 }
|
|
214
|
+
), r = R ? t : re, o = U(
|
|
215
|
+
(e) => {
|
|
216
|
+
R || se(e), u == null || u(e);
|
|
217
|
+
},
|
|
218
|
+
[R, u]
|
|
219
|
+
), $ = z(null), D = z(null), I = z(null), [ne, P] = O(""), [ie, M] = O(""), h = z(null), v = z(null), j = U(() => {
|
|
220
|
+
P(""), h.current && (clearTimeout(h.current), h.current = null);
|
|
221
|
+
}, []), A = U(() => {
|
|
222
|
+
M(""), v.current && (clearTimeout(v.current), v.current = null);
|
|
223
|
+
}, []);
|
|
224
|
+
ye(() => () => {
|
|
225
|
+
h.current && clearTimeout(h.current), v.current && clearTimeout(v.current);
|
|
226
|
+
}, []);
|
|
227
|
+
const oe = k ? ":" : ":", E = i ? String(q(r.hours)).padStart(2, "0") : String(r.hours).padStart(2, "0"), W = String(r.minutes).padStart(2, "0"), l = r.hours >= 12, ae = (e) => {
|
|
228
|
+
var g, b, H;
|
|
229
|
+
if (!p) {
|
|
230
|
+
if (e.key === "ArrowUp" || e.key === "ArrowDown") {
|
|
231
|
+
e.preventDefault();
|
|
232
|
+
const y = e.key === "ArrowUp" ? 1 : -1, d = 23;
|
|
233
|
+
let s = r.hours + y;
|
|
234
|
+
s < 0 && (s = d), s > d && (s = 0), o({ ...r, hours: s }), j();
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
if (e.key === "Tab" && !e.shiftKey) {
|
|
238
|
+
e.preventDefault(), (g = D.current) == null || g.focus(), j();
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
if (e.key >= "0" && e.key <= "9") {
|
|
242
|
+
e.preventDefault();
|
|
243
|
+
const y = ne + e.key;
|
|
244
|
+
P(y), h.current && clearTimeout(h.current);
|
|
245
|
+
const d = parseInt(y, 10), s = i ? 12 : 23;
|
|
246
|
+
if (y.length >= 2) {
|
|
247
|
+
const a = w(d, i ? 1 : 0, s), c = i ? C(a, l) : a;
|
|
248
|
+
o({ ...r, hours: c }), P(""), (b = D.current) == null || b.focus();
|
|
249
|
+
} else if (d > (i ? 1 : 2)) {
|
|
250
|
+
const a = w(d, i ? 1 : 0, s), c = i ? C(a, l) : a;
|
|
251
|
+
o({ ...r, hours: c }), P(""), (H = D.current) == null || H.focus();
|
|
252
|
+
} else
|
|
253
|
+
h.current = setTimeout(() => {
|
|
254
|
+
const a = w(d, i ? 1 : 0, s), c = i ? C(a, l) : a;
|
|
255
|
+
o({ ...r, hours: c }), P("");
|
|
256
|
+
}, 1e3);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}, ue = (e) => {
|
|
260
|
+
var g, b, H, y;
|
|
261
|
+
if (!p) {
|
|
262
|
+
if (e.key === "ArrowUp" || e.key === "ArrowDown") {
|
|
263
|
+
e.preventDefault();
|
|
264
|
+
const d = e.key === "ArrowUp" ? m : -m;
|
|
265
|
+
let s = r.minutes + d;
|
|
266
|
+
s < 0 && (s = 60 + s), s >= 60 && (s = s - 60), o({ ...r, minutes: s }), A();
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
if (e.key === "Tab" && !e.shiftKey && i) {
|
|
270
|
+
e.preventDefault(), (g = I.current) == null || g.focus(), A();
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
274
|
+
e.preventDefault(), (b = $.current) == null || b.focus(), A();
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
if (e.key >= "0" && e.key <= "9") {
|
|
278
|
+
e.preventDefault();
|
|
279
|
+
const d = ie + e.key;
|
|
280
|
+
M(d), v.current && clearTimeout(v.current);
|
|
281
|
+
const s = parseInt(d, 10);
|
|
282
|
+
if (d.length >= 2) {
|
|
283
|
+
const a = w(s, 0, 59), c = S(a, m);
|
|
284
|
+
o({ ...r, minutes: c }), M(""), i && ((H = I.current) == null || H.focus());
|
|
285
|
+
} else if (s > 5) {
|
|
286
|
+
const a = w(s, 0, 59), c = S(a, m);
|
|
287
|
+
o({ ...r, minutes: c }), M(""), i && ((y = I.current) == null || y.focus());
|
|
288
|
+
} else
|
|
289
|
+
v.current = setTimeout(() => {
|
|
290
|
+
const a = w(s, 0, 59), c = S(a, m);
|
|
291
|
+
o({ ...r, minutes: c }), M("");
|
|
292
|
+
}, 1e3);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}, de = (e) => {
|
|
296
|
+
var g;
|
|
297
|
+
if (!p) {
|
|
298
|
+
if (e.key === "ArrowUp" || e.key === "ArrowDown") {
|
|
299
|
+
e.preventDefault();
|
|
300
|
+
const b = l ? r.hours - 12 : r.hours + 12;
|
|
301
|
+
o({ ...r, hours: w(b, 0, 23) });
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
305
|
+
e.preventDefault(), (g = D.current) == null || g.focus();
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
(e.key === "a" || e.key === "A") && (e.preventDefault(), l && o({ ...r, hours: r.hours - 12 })), (e.key === "p" || e.key === "P") && (e.preventDefault(), l || o({ ...r, hours: r.hours + 12 }));
|
|
309
|
+
}
|
|
310
|
+
}, ce = (e) => {
|
|
311
|
+
j();
|
|
312
|
+
}, le = () => {
|
|
313
|
+
A();
|
|
314
|
+
const e = S(r.minutes, m);
|
|
315
|
+
e !== r.minutes && o({ ...r, minutes: e });
|
|
316
|
+
}, fe = K("ui.inputs.timePicker.hour", "Hour"), me = K("ui.inputs.timePicker.minute", "Minute"), pe = K("ui.inputs.timePicker.period", "Period"), he = K("ui.inputs.timePicker.groupLabel", "Time"), F = be(
|
|
317
|
+
() => ({
|
|
318
|
+
getValue: () => r,
|
|
319
|
+
setValue: (e) => o(e),
|
|
320
|
+
clear: () => o({ hours: 0, minutes: 0 }),
|
|
321
|
+
isOpen: () => !1,
|
|
322
|
+
open: () => {
|
|
323
|
+
},
|
|
324
|
+
close: () => {
|
|
325
|
+
}
|
|
326
|
+
}),
|
|
327
|
+
[r, o]
|
|
328
|
+
);
|
|
329
|
+
return we(Z, () => F, [F]), Te(De, F, L), /* @__PURE__ */ ve(
|
|
330
|
+
"div",
|
|
331
|
+
{
|
|
332
|
+
id: L,
|
|
333
|
+
role: "group",
|
|
334
|
+
"aria-label": he,
|
|
335
|
+
"aria-describedby": T.describedBy || void 0,
|
|
336
|
+
"aria-invalid": T.invalid || void 0,
|
|
337
|
+
"aria-disabled": p || void 0,
|
|
338
|
+
"data-component": "time-picker",
|
|
339
|
+
"data-component-id": L,
|
|
340
|
+
className: He({
|
|
341
|
+
size: x,
|
|
342
|
+
tone: ee,
|
|
343
|
+
isDisabled: p ?? !1,
|
|
344
|
+
className: X
|
|
345
|
+
}),
|
|
346
|
+
children: [
|
|
347
|
+
/* @__PURE__ */ B(
|
|
348
|
+
"span",
|
|
349
|
+
{
|
|
350
|
+
ref: $,
|
|
351
|
+
role: "spinbutton",
|
|
352
|
+
"aria-label": fe,
|
|
353
|
+
"aria-valuemin": i ? 1 : 0,
|
|
354
|
+
"aria-valuemax": i ? 12 : 23,
|
|
355
|
+
"aria-valuenow": i ? q(r.hours) : r.hours,
|
|
356
|
+
"aria-valuetext": E,
|
|
357
|
+
tabIndex: p ? -1 : 0,
|
|
358
|
+
inputMode: "numeric",
|
|
359
|
+
onKeyDown: ae,
|
|
360
|
+
onBlur: ce,
|
|
361
|
+
className: G({ size: x }),
|
|
362
|
+
children: E
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ B("span", { "aria-hidden": "true", className: Ke({ size: x }), children: oe }),
|
|
366
|
+
/* @__PURE__ */ B(
|
|
367
|
+
"span",
|
|
368
|
+
{
|
|
369
|
+
ref: D,
|
|
370
|
+
role: "spinbutton",
|
|
371
|
+
"aria-label": me,
|
|
372
|
+
"aria-valuemin": 0,
|
|
373
|
+
"aria-valuemax": 59,
|
|
374
|
+
"aria-valuenow": r.minutes,
|
|
375
|
+
"aria-valuetext": W,
|
|
376
|
+
tabIndex: p ? -1 : 0,
|
|
377
|
+
inputMode: "numeric",
|
|
378
|
+
onKeyDown: ue,
|
|
379
|
+
onBlur: le,
|
|
380
|
+
className: G({ size: x }),
|
|
381
|
+
children: W
|
|
382
|
+
}
|
|
383
|
+
),
|
|
384
|
+
i ? /* @__PURE__ */ B(
|
|
385
|
+
"span",
|
|
386
|
+
{
|
|
387
|
+
ref: I,
|
|
388
|
+
role: "spinbutton",
|
|
389
|
+
"aria-label": pe,
|
|
390
|
+
"aria-valuemin": 0,
|
|
391
|
+
"aria-valuemax": 1,
|
|
392
|
+
"aria-valuenow": l ? 1 : 0,
|
|
393
|
+
"aria-valuetext": l ? V.pm : V.am,
|
|
394
|
+
tabIndex: p ? -1 : 0,
|
|
395
|
+
onKeyDown: de,
|
|
396
|
+
className: ze({ size: x }),
|
|
397
|
+
children: l ? V.pm : V.am
|
|
398
|
+
}
|
|
399
|
+
) : null
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
);
|
|
405
|
+
Ve.displayName = "TimePicker";
|
|
406
|
+
export {
|
|
407
|
+
Ve as T,
|
|
408
|
+
De as t
|
|
409
|
+
};
|
|
410
|
+
//# sourceMappingURL=time-picker-B8AMIrX7.js.map
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m, useMemo as N, useRef as T, useState as R, useCallback as V, useImperativeHandle as I, useContext as v, createContext as C } from "react";
|
|
3
|
+
import { c as g } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as O } from "react-i18next";
|
|
5
|
+
import { A as P } from "./avatar-Dcr6XuDQ.js";
|
|
6
|
+
import { C as w } from "./card-BEy58ZKp.js";
|
|
7
|
+
import { T as A } from "./timestamp-BV2lC-wV.js";
|
|
8
|
+
import { C as B } from "./circle-BkqTgYmt.js";
|
|
9
|
+
import { X as q } from "./x-CCcI3eJp.js";
|
|
10
|
+
import { T as D } from "./triangle-alert-CBPUIzQo.js";
|
|
11
|
+
import { C as H } from "./check-DPdL_Sm7.js";
|
|
12
|
+
import { I as M } from "./info-B9XNKn05.js";
|
|
13
|
+
const u = C({
|
|
14
|
+
layout: "rail-start",
|
|
15
|
+
order: "newest-first"
|
|
16
|
+
}), p = C({
|
|
17
|
+
type: "neutral"
|
|
18
|
+
}), $ = g("ds:flex ds:flex-col", {
|
|
19
|
+
variants: {
|
|
20
|
+
layout: {
|
|
21
|
+
"rail-start": "ds:ps-4",
|
|
22
|
+
"rail-end": "ds:pe-4",
|
|
23
|
+
alternating: "ds:grid ds:grid-cols-[1fr_2rem_1fr] ds:gap-x-[var(--spacing-md)]"
|
|
24
|
+
},
|
|
25
|
+
order: {
|
|
26
|
+
"newest-first": "ds:flex-col",
|
|
27
|
+
"oldest-first": "ds:flex-col-reverse"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: { layout: "rail-start", order: "newest-first" }
|
|
31
|
+
}), F = g(
|
|
32
|
+
"ds:relative ds:flex ds:gap-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
33
|
+
{
|
|
34
|
+
variants: {
|
|
35
|
+
layout: {
|
|
36
|
+
"rail-start": [
|
|
37
|
+
"ds:flex-row",
|
|
38
|
+
// Rail: continuous border on the inline-start of the event list
|
|
39
|
+
"ds:before:absolute ds:before:top-8 ds:before:bottom-0",
|
|
40
|
+
"ds:before:border-inline-start-[2px] ds:before:border-[color:var(--border)]",
|
|
41
|
+
"ds:before:inset-inline-start-[-1rem]",
|
|
42
|
+
"ds:last:before:hidden"
|
|
43
|
+
].join(" "),
|
|
44
|
+
"rail-end": [
|
|
45
|
+
"ds:flex-row-reverse",
|
|
46
|
+
"ds:before:absolute ds:before:top-8 ds:before:bottom-0",
|
|
47
|
+
"ds:before:border-inline-end-[2px] ds:before:border-[color:var(--border)]",
|
|
48
|
+
"ds:before:inset-inline-end-[-1rem]",
|
|
49
|
+
"ds:last:before:hidden"
|
|
50
|
+
].join(" "),
|
|
51
|
+
alternating: "ds:contents"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
defaultVariants: { layout: "rail-start" }
|
|
55
|
+
}
|
|
56
|
+
), K = g(
|
|
57
|
+
[
|
|
58
|
+
"ds:relative ds:z-10 ds:flex ds:items-center ds:justify-center",
|
|
59
|
+
"ds:rounded-[var(--radius-full)] ds:shrink-0",
|
|
60
|
+
"ds:size-8",
|
|
61
|
+
"ds:ring-2 ds:ring-[var(--background)]"
|
|
62
|
+
].join(" "),
|
|
63
|
+
{
|
|
64
|
+
variants: {
|
|
65
|
+
type: {
|
|
66
|
+
info: "ds:bg-[var(--info)] ds:text-[var(--info-solid-foreground)]",
|
|
67
|
+
success: "ds:bg-[var(--success)] ds:text-[var(--success-solid-foreground)]",
|
|
68
|
+
warning: "ds:bg-[var(--warning)] ds:text-[var(--warning-solid-foreground)]",
|
|
69
|
+
error: "ds:bg-[var(--destructive)] ds:text-[var(--destructive-foreground)]",
|
|
70
|
+
neutral: "ds:bg-[var(--muted)] ds:text-[var(--muted-foreground)]"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: { type: "neutral" }
|
|
74
|
+
}
|
|
75
|
+
), U = {
|
|
76
|
+
info: /* @__PURE__ */ e(M, { size: 16, "aria-hidden": "true" }),
|
|
77
|
+
success: /* @__PURE__ */ e(H, { size: 16, "aria-hidden": "true" }),
|
|
78
|
+
warning: /* @__PURE__ */ e(D, { size: 16, "aria-hidden": "true" }),
|
|
79
|
+
error: /* @__PURE__ */ e(q, { size: 16, "aria-hidden": "true" }),
|
|
80
|
+
neutral: /* @__PURE__ */ e(B, { size: 16, "aria-hidden": "true" })
|
|
81
|
+
}, E = m(
|
|
82
|
+
({
|
|
83
|
+
layout: t = "rail-start",
|
|
84
|
+
order: r = "newest-first",
|
|
85
|
+
className: s,
|
|
86
|
+
children: i,
|
|
87
|
+
...n
|
|
88
|
+
}, a) => {
|
|
89
|
+
const d = N(() => ({ layout: t, order: r }), [t, r]), l = T(null), [o, z] = R(null), b = T(null);
|
|
90
|
+
b.current = o;
|
|
91
|
+
const h = V((x) => {
|
|
92
|
+
var y;
|
|
93
|
+
z(x);
|
|
94
|
+
const f = (y = l.current) == null ? void 0 : y.querySelector(
|
|
95
|
+
`[data-event-id="${x}"]`
|
|
96
|
+
);
|
|
97
|
+
f == null || f.scrollIntoView({ block: "center", behavior: "auto" });
|
|
98
|
+
}, []);
|
|
99
|
+
return I(
|
|
100
|
+
a,
|
|
101
|
+
() => ({
|
|
102
|
+
getSelectedEvent: () => b.current,
|
|
103
|
+
selectEvent: h
|
|
104
|
+
}),
|
|
105
|
+
[h]
|
|
106
|
+
), /* @__PURE__ */ e(u.Provider, { value: d, children: /* @__PURE__ */ e(
|
|
107
|
+
"ol",
|
|
108
|
+
{
|
|
109
|
+
ref: l,
|
|
110
|
+
"data-component": "timeline",
|
|
111
|
+
"data-component-id": n.id,
|
|
112
|
+
"data-selected-event": o ?? void 0,
|
|
113
|
+
className: $({ layout: t, order: r, className: s }),
|
|
114
|
+
...n,
|
|
115
|
+
children: i
|
|
116
|
+
}
|
|
117
|
+
) });
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
E.displayName = "Timeline";
|
|
121
|
+
const S = m(
|
|
122
|
+
({ type: t = "neutral", eventId: r, className: s, children: i, ...n }, a) => {
|
|
123
|
+
const { layout: d } = v(u), { t: l } = O(), o = N(() => ({ type: t }), [t]);
|
|
124
|
+
return d === "alternating" ? /* @__PURE__ */ e(p.Provider, { value: o, children: /* @__PURE__ */ c(
|
|
125
|
+
"li",
|
|
126
|
+
{
|
|
127
|
+
ref: a,
|
|
128
|
+
"data-event-id": r,
|
|
129
|
+
className: ["ds:contents", s].filter(Boolean).join(" "),
|
|
130
|
+
...n,
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: l(`ui.timeline.type.${t}`) }),
|
|
133
|
+
i
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
) }) : /* @__PURE__ */ e(p.Provider, { value: o, children: /* @__PURE__ */ c(
|
|
137
|
+
"li",
|
|
138
|
+
{
|
|
139
|
+
ref: a,
|
|
140
|
+
"data-event-id": r,
|
|
141
|
+
className: F({ layout: d, className: s }),
|
|
142
|
+
...n,
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: l(`ui.timeline.type.${t}`) }),
|
|
145
|
+
i
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
) });
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
S.displayName = "Timeline.Event";
|
|
152
|
+
const _ = m(
|
|
153
|
+
({ icon: t, className: r, ...s }, i) => {
|
|
154
|
+
const { type: n } = v(p), { layout: a } = v(u), d = /* @__PURE__ */ e(
|
|
155
|
+
"div",
|
|
156
|
+
{
|
|
157
|
+
ref: i,
|
|
158
|
+
"aria-hidden": "true",
|
|
159
|
+
className: K({ type: n, className: r }),
|
|
160
|
+
...s,
|
|
161
|
+
children: t ?? U[n]
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
return a === "alternating" ? /* @__PURE__ */ c(
|
|
165
|
+
"div",
|
|
166
|
+
{
|
|
167
|
+
"aria-hidden": "true",
|
|
168
|
+
className: "ds:col-start-2 ds:flex ds:flex-col ds:items-center",
|
|
169
|
+
children: [
|
|
170
|
+
/* @__PURE__ */ e("div", { className: "ds:w-[var(--border-width-md)] ds:flex-1 ds:bg-[var(--border)] ds:first:hidden" }),
|
|
171
|
+
d,
|
|
172
|
+
/* @__PURE__ */ e("div", { className: "ds:w-[var(--border-width-md)] ds:flex-1 ds:bg-[var(--border)]" })
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
) : d;
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
_.displayName = "Timeline.Dot";
|
|
179
|
+
const k = m(
|
|
180
|
+
({ title: t, description: r, actor: s, children: i, className: n, ...a }, d) => {
|
|
181
|
+
const { layout: l } = v(u), o = /* @__PURE__ */ e(
|
|
182
|
+
"div",
|
|
183
|
+
{
|
|
184
|
+
ref: d,
|
|
185
|
+
className: [
|
|
186
|
+
"ds:flex-1 ds:min-w-0 ds:pb-[var(--spacing-md)]",
|
|
187
|
+
"ds:[&_*]:break-normal ds:[&_*]:[overflow-wrap:anywhere]",
|
|
188
|
+
n
|
|
189
|
+
].filter(Boolean).join(" "),
|
|
190
|
+
...a,
|
|
191
|
+
children: /* @__PURE__ */ e(w, { variant: "outlined", children: /* @__PURE__ */ c(w.Body, { children: [
|
|
192
|
+
/* @__PURE__ */ e("p", { className: "type-label ds:text-[var(--foreground)]", children: t }),
|
|
193
|
+
r && /* @__PURE__ */ e("p", { className: "ds:mt-[var(--spacing-xs)] type-body-sm ds:text-[var(--muted-foreground)]", children: r }),
|
|
194
|
+
s && /* @__PURE__ */ c("div", { className: "ds:mt-[var(--spacing-sm)] ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
195
|
+
/* @__PURE__ */ e(P, { size: "xs", name: s.name, src: s.src }),
|
|
196
|
+
/* @__PURE__ */ e("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: s.name })
|
|
197
|
+
] }),
|
|
198
|
+
i
|
|
199
|
+
] }) })
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
return l === "alternating" ? /* @__PURE__ */ e("div", { className: "ds:col-span-1 ds:[li:nth-child(even)_&]:col-start-3 ds:[li:nth-child(odd)_&]:col-start-1", children: o }) : o;
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
k.displayName = "Timeline.Content";
|
|
206
|
+
const W = 1440 * 60 * 1e3, j = m(
|
|
207
|
+
({
|
|
208
|
+
date: t,
|
|
209
|
+
relative: r = !0,
|
|
210
|
+
format: s = { dateStyle: "medium", timeStyle: "short" },
|
|
211
|
+
className: i,
|
|
212
|
+
...n
|
|
213
|
+
}, a) => /* @__PURE__ */ e(
|
|
214
|
+
A,
|
|
215
|
+
{
|
|
216
|
+
ref: a,
|
|
217
|
+
value: t,
|
|
218
|
+
format: r ? "relative" : "absolute",
|
|
219
|
+
relativeWindow: r ? W : void 0,
|
|
220
|
+
absoluteFormat: s,
|
|
221
|
+
className: [
|
|
222
|
+
"ds:text-[var(--muted-foreground)]",
|
|
223
|
+
"ds:[font-variant-numeric:var(--font-feature-tabular)]",
|
|
224
|
+
i
|
|
225
|
+
].filter(Boolean).join(" "),
|
|
226
|
+
...n
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
);
|
|
230
|
+
j.displayName = "Timeline.Timestamp";
|
|
231
|
+
const ie = Object.assign(E, {
|
|
232
|
+
Event: S,
|
|
233
|
+
Dot: _,
|
|
234
|
+
Content: k,
|
|
235
|
+
Timestamp: j
|
|
236
|
+
}), ae = {
|
|
237
|
+
id: "timeline",
|
|
238
|
+
capabilities: ["pick", "range_navigate"],
|
|
239
|
+
state: {
|
|
240
|
+
selectedEvent: {
|
|
241
|
+
type: "string | null",
|
|
242
|
+
descriptionKey: "ui.agent.timeline.state.selectedEvent",
|
|
243
|
+
description: "Opaque event id of the currently-active event, or null.",
|
|
244
|
+
read: (t) => t.getSelectedEvent()
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
actions: {
|
|
248
|
+
select_event: {
|
|
249
|
+
safety: "read",
|
|
250
|
+
argsType: "{ id: string }",
|
|
251
|
+
descriptionKey: "ui.agent.timeline.actions.selectEvent",
|
|
252
|
+
description: "Scroll the given event into view and mark it as selected.",
|
|
253
|
+
invoke: (t, r) => {
|
|
254
|
+
t.selectEvent(r.id);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
domHooks: {
|
|
259
|
+
root: {
|
|
260
|
+
attr: "data-component",
|
|
261
|
+
value: "timeline",
|
|
262
|
+
description: "Marks the Timeline root."
|
|
263
|
+
},
|
|
264
|
+
instanceId: {
|
|
265
|
+
attr: "data-component-id",
|
|
266
|
+
sourceProp: "id",
|
|
267
|
+
description: "Sourced from the id prop."
|
|
268
|
+
},
|
|
269
|
+
item: {
|
|
270
|
+
attr: "data-event-id",
|
|
271
|
+
description: "Opaque event id emitted on each Timeline.Event when the `eventId` prop is provided."
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
export {
|
|
276
|
+
ie as T,
|
|
277
|
+
ae as t
|
|
278
|
+
};
|
|
279
|
+
//# sourceMappingURL=timeline.agent-CRPza9wc.js.map
|