@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
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as D, Fragment as G } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as U, useState as V, useEffect as O, useRef as W, useId as J, useMemo as X, useCallback as _ } from "react";
|
|
3
|
-
import { c as P } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as E } from "react-i18next";
|
|
5
|
-
import * as j from "@radix-ui/react-popover";
|
|
6
|
-
import { S as Y } from "./search-input-BVMCONyN.js";
|
|
7
|
-
import { S as Z } from "./search-BonnQsHv.js";
|
|
8
|
-
import { n as L } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
9
|
-
import { u as ee } from "./use-debounced-callback-BisrB-Fq.js";
|
|
10
|
-
function se() {
|
|
11
|
-
if (typeof navigator > "u") return !1;
|
|
12
|
-
const r = navigator.userAgentData, a = (r == null ? void 0 : r.platform) ?? navigator.platform ?? "";
|
|
13
|
-
return /mac/i.test(a);
|
|
14
|
-
}
|
|
15
|
-
const ae = P(
|
|
16
|
-
[
|
|
17
|
-
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
18
|
-
"ds:rounded-[var(--radius-md)]",
|
|
19
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
20
|
-
// Same visual language as <SearchInput> so the launcher truly looks
|
|
21
|
-
// like an input. --muted-foreground over --background meets AA 4.5:1
|
|
22
|
-
// in every theme; --muted is a mid-tone not suitable as a surface.
|
|
23
|
-
"ds:bg-[var(--background)] ds:border ds:border-[color:var(--border)]",
|
|
24
|
-
"ds:text-[color:var(--muted-foreground)]",
|
|
25
|
-
// Opaque hover — mix 20% muted into --background so the launcher stays a
|
|
26
|
-
// solid surface even when placed over a brand-tinted parent (e.g. the
|
|
27
|
-
// Header's `brand` variant).
|
|
28
|
-
"ds:hover:bg-[color-mix(in_srgb,var(--muted)_20%,var(--background))]",
|
|
29
|
-
"ds:transition-colors ds:motion-reduce:transition-none",
|
|
30
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
31
|
-
"ds:focus-visible:outline-solid",
|
|
32
|
-
"ds:focus-visible:outline-[color:var(--ring)]",
|
|
33
|
-
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
34
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
35
|
-
"ds:min-h-[var(--min-target-size)]",
|
|
36
|
-
"ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
|
|
37
|
-
].join(" "),
|
|
38
|
-
{
|
|
39
|
-
variants: {
|
|
40
|
-
size: {
|
|
41
|
-
sm: "ds:text-[length:var(--font-size-sm)]",
|
|
42
|
-
md: "ds:text-[length:var(--font-size-base)]",
|
|
43
|
-
lg: "ds:text-[length:var(--font-size-lg)]"
|
|
44
|
-
},
|
|
45
|
-
density: {
|
|
46
|
-
default: "",
|
|
47
|
-
compact: "ds:min-h-0 ds:h-8"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
defaultVariants: {
|
|
51
|
-
size: "md",
|
|
52
|
-
density: "default"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
), re = P(
|
|
56
|
-
[
|
|
57
|
-
"ds:inline-flex ds:flex-col",
|
|
58
|
-
"ds:w-full"
|
|
59
|
-
].join(" "),
|
|
60
|
-
{
|
|
61
|
-
variants: {
|
|
62
|
-
size: {
|
|
63
|
-
sm: "",
|
|
64
|
-
md: "",
|
|
65
|
-
lg: ""
|
|
66
|
-
},
|
|
67
|
-
density: {
|
|
68
|
-
default: "",
|
|
69
|
-
compact: ""
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
defaultVariants: {
|
|
73
|
-
size: "md",
|
|
74
|
-
density: "default"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
), B = P(
|
|
78
|
-
[
|
|
79
|
-
"ds:hidden ds:md:inline-flex ds:items-center ds:gap-[calc(var(--spacing-xs)/2)]",
|
|
80
|
-
"ds:ms-auto",
|
|
81
|
-
"ds:rounded-[var(--radius-sm)]",
|
|
82
|
-
"ds:border ds:border-[color:var(--border)]",
|
|
83
|
-
"ds:bg-[var(--background)]",
|
|
84
|
-
"ds:ps-[calc(var(--spacing-xs)/1.2)] ds:pe-[calc(var(--spacing-xs)/1.2)]",
|
|
85
|
-
"ds:py-[calc(var(--spacing-xs)/2)]",
|
|
86
|
-
// Use full --foreground (not --muted-foreground) so axe's contrast
|
|
87
|
-
// check clears 4.5:1 even against the 1px --border edge region.
|
|
88
|
-
"ds:text-[length:var(--font-size-xs)] ds:text-[color:var(--foreground)]",
|
|
89
|
-
"ds:font-[family-name:var(--font-mono)]"
|
|
90
|
-
].join(" ")
|
|
91
|
-
), te = P(
|
|
92
|
-
[
|
|
93
|
-
"ds:z-[var(--z-dropdown)]",
|
|
94
|
-
"ds:rounded-[var(--radius-md)]",
|
|
95
|
-
"ds:border ds:border-[color:var(--border)]",
|
|
96
|
-
"ds:bg-[var(--popover)] ds:text-[color:var(--popover-foreground)]",
|
|
97
|
-
"ds:shadow-[var(--shadow-lg)]",
|
|
98
|
-
"ds:p-[var(--spacing-xs)]",
|
|
99
|
-
// Motion gates — reduced-motion honoured via .theme-accessible's 0ms
|
|
100
|
-
// animation-duration token.
|
|
101
|
-
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
102
|
-
"ds:data-[state=open]:fade-in ds:data-[state=closed]:fade-out",
|
|
103
|
-
"ds:motion-reduce:animate-none"
|
|
104
|
-
].join(" ")
|
|
105
|
-
);
|
|
106
|
-
function ge(r, a) {
|
|
107
|
-
const o = L(r.trim());
|
|
108
|
-
return o === "" ? a : a.map((n) => ({
|
|
109
|
-
...n,
|
|
110
|
-
items: n.items.filter(
|
|
111
|
-
(p) => L(p.label).includes(o)
|
|
112
|
-
)
|
|
113
|
-
})).filter((n) => n.items.length > 0);
|
|
114
|
-
}
|
|
115
|
-
const ne = U(
|
|
116
|
-
(r, a) => {
|
|
117
|
-
const {
|
|
118
|
-
mode: o = "launcher",
|
|
119
|
-
size: n = "md",
|
|
120
|
-
density: p = "default",
|
|
121
|
-
topLevel: y = !1,
|
|
122
|
-
placeholder: d,
|
|
123
|
-
shortcutHint: h = !0,
|
|
124
|
-
className: v,
|
|
125
|
-
onOpenCommandPalette: t,
|
|
126
|
-
value: g,
|
|
127
|
-
defaultValue: z,
|
|
128
|
-
onQueryChange: k,
|
|
129
|
-
results: i,
|
|
130
|
-
onSelect: b,
|
|
131
|
-
debounceMs: C,
|
|
132
|
-
...l
|
|
133
|
-
} = r, { t: c } = E(), [R, I] = V(!1);
|
|
134
|
-
O(() => {
|
|
135
|
-
I(se());
|
|
136
|
-
}, []);
|
|
137
|
-
const S = R ? "⌘K" : "Ctrl+K", u = "Meta+K Control+K", m = y ? { role: "search" } : { role: void 0 };
|
|
138
|
-
if (o === "launcher") {
|
|
139
|
-
const N = d ?? c("search.placeholder", "Search…");
|
|
140
|
-
return /* @__PURE__ */ s("div", { ref: a, ...m, "data-component": "search-bar", className: v, children: /* @__PURE__ */ D(
|
|
141
|
-
"button",
|
|
142
|
-
{
|
|
143
|
-
type: "button",
|
|
144
|
-
onClick: t,
|
|
145
|
-
"aria-haspopup": "dialog",
|
|
146
|
-
"aria-label": c("search.open", "Open search"),
|
|
147
|
-
"aria-keyshortcuts": u,
|
|
148
|
-
className: ae({ size: n, density: p }),
|
|
149
|
-
...l,
|
|
150
|
-
children: [
|
|
151
|
-
/* @__PURE__ */ s(
|
|
152
|
-
Z,
|
|
153
|
-
{
|
|
154
|
-
"aria-hidden": !0,
|
|
155
|
-
className: "ds:size-4 ds:shrink-0",
|
|
156
|
-
focusable: "false"
|
|
157
|
-
}
|
|
158
|
-
),
|
|
159
|
-
/* @__PURE__ */ s("span", { "aria-hidden": "true", className: "ds:truncate ds:text-start", children: N }),
|
|
160
|
-
h ? /* @__PURE__ */ s("kbd", { className: B(), children: S }) : null
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
) });
|
|
164
|
-
}
|
|
165
|
-
return /* @__PURE__ */ s(
|
|
166
|
-
oe,
|
|
167
|
-
{
|
|
168
|
-
forwardedRef: a,
|
|
169
|
-
size: n,
|
|
170
|
-
density: p,
|
|
171
|
-
landmarkProps: m,
|
|
172
|
-
placeholder: d,
|
|
173
|
-
shortcutHint: h,
|
|
174
|
-
shortcutLabel: S,
|
|
175
|
-
ariaKeyshortcuts: u,
|
|
176
|
-
className: v,
|
|
177
|
-
...r
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
);
|
|
182
|
-
ne.displayName = "SearchBar";
|
|
183
|
-
function oe(r) {
|
|
184
|
-
const {
|
|
185
|
-
forwardedRef: a,
|
|
186
|
-
size: o,
|
|
187
|
-
density: n,
|
|
188
|
-
landmarkProps: p,
|
|
189
|
-
placeholder: y,
|
|
190
|
-
shortcutHint: d,
|
|
191
|
-
shortcutLabel: h,
|
|
192
|
-
ariaKeyshortcuts: v,
|
|
193
|
-
className: t,
|
|
194
|
-
value: g,
|
|
195
|
-
defaultValue: z,
|
|
196
|
-
onQueryChange: k,
|
|
197
|
-
results: i,
|
|
198
|
-
onSelect: b,
|
|
199
|
-
debounceMs: C = 150
|
|
200
|
-
} = r, { t: l } = E(), c = g !== void 0, [R, I] = V(z ?? ""), S = c ? g ?? "" : R, [u, m] = V(!1), [x, N] = V(0), H = W(null), M = J(), $ = ee((e) => {
|
|
201
|
-
k == null || k(e);
|
|
202
|
-
}, C), f = X(() => i ? i.flatMap((e) => e.items) : [], [i]);
|
|
203
|
-
O(() => {
|
|
204
|
-
x > f.length - 1 && N(0);
|
|
205
|
-
}, [f.length, x]);
|
|
206
|
-
const q = _(
|
|
207
|
-
(e) => {
|
|
208
|
-
c || I(e), $(e), m(e.trim().length > 0);
|
|
209
|
-
},
|
|
210
|
-
[$, c]
|
|
211
|
-
), A = _(
|
|
212
|
-
(e) => {
|
|
213
|
-
b == null || b(e), m(!1), c || I("");
|
|
214
|
-
},
|
|
215
|
-
[b, c]
|
|
216
|
-
), F = _(
|
|
217
|
-
(e) => {
|
|
218
|
-
if (!(e.nativeEvent.isComposing || e.keyCode === 229)) {
|
|
219
|
-
if (!u && e.key === "ArrowDown" && f.length > 0) {
|
|
220
|
-
e.preventDefault(), m(!0);
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
if (u)
|
|
224
|
-
if (e.key === "ArrowDown")
|
|
225
|
-
e.preventDefault(), N((w) => (w + 1) % Math.max(f.length, 1));
|
|
226
|
-
else if (e.key === "ArrowUp")
|
|
227
|
-
e.preventDefault(), N(
|
|
228
|
-
(w) => (w - 1 + Math.max(f.length, 1)) % Math.max(f.length, 1)
|
|
229
|
-
);
|
|
230
|
-
else if (e.key === "Enter") {
|
|
231
|
-
const w = f[x];
|
|
232
|
-
w && (e.preventDefault(), A(w));
|
|
233
|
-
} else e.key === "Escape" && (e.preventDefault(), m(!1));
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
[u, f, x, A]
|
|
237
|
-
), Q = y ?? l("search.placeholder", "Search…"), K = f.length > 0, T = u && K ? `${M}-option-${x}` : void 0;
|
|
238
|
-
return /* @__PURE__ */ s(j.Root, { open: u && K, onOpenChange: m, children: /* @__PURE__ */ D(
|
|
239
|
-
"div",
|
|
240
|
-
{
|
|
241
|
-
ref: a,
|
|
242
|
-
...p,
|
|
243
|
-
"data-component": "search-bar",
|
|
244
|
-
className: [re({ size: o, density: n }), t].filter(Boolean).join(" "),
|
|
245
|
-
children: [
|
|
246
|
-
/* @__PURE__ */ s(j.Anchor, { asChild: !0, children: /* @__PURE__ */ D(
|
|
247
|
-
"div",
|
|
248
|
-
{
|
|
249
|
-
className: "ds:relative ds:flex ds:items-center",
|
|
250
|
-
onKeyDown: F,
|
|
251
|
-
children: [
|
|
252
|
-
/* @__PURE__ */ s(
|
|
253
|
-
Y,
|
|
254
|
-
{
|
|
255
|
-
ref: H,
|
|
256
|
-
size: o,
|
|
257
|
-
value: S,
|
|
258
|
-
onInput: q,
|
|
259
|
-
placeholder: Q,
|
|
260
|
-
"aria-label": l("search.label", "Search"),
|
|
261
|
-
"aria-keyshortcuts": v,
|
|
262
|
-
role: "combobox",
|
|
263
|
-
"aria-expanded": u && K,
|
|
264
|
-
"aria-controls": M,
|
|
265
|
-
"aria-activedescendant": T
|
|
266
|
-
}
|
|
267
|
-
),
|
|
268
|
-
d ? /* @__PURE__ */ s(
|
|
269
|
-
"kbd",
|
|
270
|
-
{
|
|
271
|
-
className: [
|
|
272
|
-
B(),
|
|
273
|
-
"ds:absolute ds:end-[var(--spacing-sm)] ds:top-1/2 ds:-translate-y-1/2",
|
|
274
|
-
"ds:pointer-events-none"
|
|
275
|
-
].join(" "),
|
|
276
|
-
children: h
|
|
277
|
-
}
|
|
278
|
-
) : null
|
|
279
|
-
]
|
|
280
|
-
}
|
|
281
|
-
) }),
|
|
282
|
-
/* @__PURE__ */ s(j.Portal, { children: /* @__PURE__ */ s(
|
|
283
|
-
j.Content,
|
|
284
|
-
{
|
|
285
|
-
side: "bottom",
|
|
286
|
-
align: "start",
|
|
287
|
-
sideOffset: 4,
|
|
288
|
-
"aria-label": l("search.resultsLabel", "Search results"),
|
|
289
|
-
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
290
|
-
className: [
|
|
291
|
-
te(),
|
|
292
|
-
"ds:w-[var(--radix-popover-trigger-width)]"
|
|
293
|
-
].join(" "),
|
|
294
|
-
children: /* @__PURE__ */ s(
|
|
295
|
-
"div",
|
|
296
|
-
{
|
|
297
|
-
id: M,
|
|
298
|
-
role: "listbox",
|
|
299
|
-
"aria-label": l("search.resultsLabel", "Search results"),
|
|
300
|
-
className: "ds:flex ds:flex-col ds:gap-[calc(var(--spacing-xs)/2)]",
|
|
301
|
-
children: i && i.length > 0 ? de(
|
|
302
|
-
i,
|
|
303
|
-
x,
|
|
304
|
-
M,
|
|
305
|
-
A,
|
|
306
|
-
N
|
|
307
|
-
) : /* @__PURE__ */ s(
|
|
308
|
-
"div",
|
|
309
|
-
{
|
|
310
|
-
role: "presentation",
|
|
311
|
-
className: "ds:p-[var(--spacing-sm)] type-body-sm ds:text-[color:var(--foreground)]",
|
|
312
|
-
children: l("search.noResults", "No results for “{{query}}”", {
|
|
313
|
-
query: S
|
|
314
|
-
})
|
|
315
|
-
}
|
|
316
|
-
)
|
|
317
|
-
}
|
|
318
|
-
)
|
|
319
|
-
}
|
|
320
|
-
) })
|
|
321
|
-
]
|
|
322
|
-
}
|
|
323
|
-
) });
|
|
324
|
-
}
|
|
325
|
-
function de(r, a, o, n, p) {
|
|
326
|
-
let y = 0;
|
|
327
|
-
return r.map((d, h) => {
|
|
328
|
-
const v = d.heading ? `${o}-group-${h}-heading` : void 0;
|
|
329
|
-
return /* @__PURE__ */ D(
|
|
330
|
-
"div",
|
|
331
|
-
{
|
|
332
|
-
role: d.heading ? "group" : "presentation",
|
|
333
|
-
"aria-labelledby": v,
|
|
334
|
-
children: [
|
|
335
|
-
d.heading ? /* @__PURE__ */ s(
|
|
336
|
-
"div",
|
|
337
|
-
{
|
|
338
|
-
id: v,
|
|
339
|
-
"aria-hidden": "true",
|
|
340
|
-
className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)] type-eyebrow ds:text-[color:var(--foreground)]",
|
|
341
|
-
children: d.heading
|
|
342
|
-
}
|
|
343
|
-
) : null,
|
|
344
|
-
d.items.map((t) => {
|
|
345
|
-
const g = y;
|
|
346
|
-
y += 1;
|
|
347
|
-
const z = g === a, k = `${o}-option-${g}`, i = ie(t.href), b = [
|
|
348
|
-
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
349
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
350
|
-
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
351
|
-
"ds:rounded-[var(--radius-sm)]",
|
|
352
|
-
"ds:cursor-pointer",
|
|
353
|
-
"ds:no-underline ds:text-[color:var(--foreground)]",
|
|
354
|
-
"ds:min-h-[var(--min-target-size)]",
|
|
355
|
-
z ? "ds:bg-[var(--muted)]/40" : ""
|
|
356
|
-
].join(" "), C = /* @__PURE__ */ D(G, { children: [
|
|
357
|
-
t.icon ? /* @__PURE__ */ s(
|
|
358
|
-
"span",
|
|
359
|
-
{
|
|
360
|
-
"aria-hidden": "true",
|
|
361
|
-
className: "ds:inline-flex ds:size-4 ds:shrink-0 ds:items-center ds:justify-center",
|
|
362
|
-
children: t.icon
|
|
363
|
-
}
|
|
364
|
-
) : null,
|
|
365
|
-
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-[length:var(--font-size-sm)]", children: t.label }),
|
|
366
|
-
t.meta ? /* @__PURE__ */ s("span", { className: "ds:ms-auto type-meta ds:text-[color:var(--foreground)]", children: t.meta }) : null
|
|
367
|
-
] }), l = {
|
|
368
|
-
id: k,
|
|
369
|
-
role: "option",
|
|
370
|
-
"aria-selected": z,
|
|
371
|
-
// onMouseDown rather than onClick so we trigger before the
|
|
372
|
-
// input loses focus to the pointer-down on the popover.
|
|
373
|
-
onMouseDown: (c) => {
|
|
374
|
-
c.preventDefault(), n(t);
|
|
375
|
-
},
|
|
376
|
-
onMouseEnter: () => p(g),
|
|
377
|
-
className: b
|
|
378
|
-
};
|
|
379
|
-
return i ? /* @__PURE__ */ s("a", { href: i, ...l, children: C }, t.id) : /* @__PURE__ */ s("div", { ...l, children: C }, t.id);
|
|
380
|
-
})
|
|
381
|
-
]
|
|
382
|
-
},
|
|
383
|
-
`g-${h}`
|
|
384
|
-
);
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
function ie(r) {
|
|
388
|
-
if (!r) return;
|
|
389
|
-
const a = r.trim();
|
|
390
|
-
if (a !== "" && (/^(https?:|mailto:|tel:)/i.test(a) || /^(\/|\.\/|\.\.\/)/.test(a)))
|
|
391
|
-
return a;
|
|
392
|
-
}
|
|
393
|
-
export {
|
|
394
|
-
ne as S,
|
|
395
|
-
ge as f
|
|
396
|
-
};
|
|
397
|
-
//# sourceMappingURL=search-bar-fcGqDFW3.js.map
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as ne } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as ie, useState as A, useRef as B, useCallback as m, useLayoutEffect as ae, useEffect as oe } from "react";
|
|
3
|
-
import { c as b } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as de } from "react-i18next";
|
|
5
|
-
import { T as le } from "./text-input-CRHvl5zk.js";
|
|
6
|
-
import { S as ce } from "./spinner-GCcv67vh.js";
|
|
7
|
-
import { u as ue } from "./form-field-context-94LwgYTQ.js";
|
|
8
|
-
import { u as fe } from "./use-debounced-callback-BisrB-Fq.js";
|
|
9
|
-
import { S as F } from "./search-BonnQsHv.js";
|
|
10
|
-
import { X as me } from "./x-CCcI3eJp.js";
|
|
11
|
-
const be = b("ds:relative ds:w-full"), pe = b(
|
|
12
|
-
[
|
|
13
|
-
"ds:absolute ds:inset-y-0 ds:end-0 ds:pe-3",
|
|
14
|
-
"ds:inline-flex ds:items-center ds:justify-center ds:pointer-events-auto",
|
|
15
|
-
"ds:text-muted-foreground ds:hover:text-foreground",
|
|
16
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
17
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
18
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
19
|
-
"ds:rounded-[var(--radius-sm)]",
|
|
20
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
21
|
-
].join(" ")
|
|
22
|
-
), ve = b(
|
|
23
|
-
[
|
|
24
|
-
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
25
|
-
"ds:size-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
|
|
26
|
-
"ds:bg-background ds:border ds:border-border ds:text-muted-foreground",
|
|
27
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
28
|
-
"ds:hover:text-foreground ds:hover:bg-muted",
|
|
29
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
30
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
31
|
-
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
32
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
33
|
-
].join(" ")
|
|
34
|
-
), he = b(
|
|
35
|
-
[
|
|
36
|
-
"ds:inline-flex ds:items-center",
|
|
37
|
-
"ds:transition-[width] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
38
|
-
].join(" ")
|
|
39
|
-
);
|
|
40
|
-
function xe(i) {
|
|
41
|
-
if (!i) return !1;
|
|
42
|
-
const o = i.tagName;
|
|
43
|
-
return !!(o === "INPUT" || o === "TEXTAREA" || o === "SELECT" || i.isContentEditable);
|
|
44
|
-
}
|
|
45
|
-
const ge = ie(
|
|
46
|
-
({
|
|
47
|
-
value: i,
|
|
48
|
-
defaultValue: o,
|
|
49
|
-
onChange: n,
|
|
50
|
-
onInput: r,
|
|
51
|
-
debounceMs: K = 200,
|
|
52
|
-
isLoading: c = !1,
|
|
53
|
-
variant: d = "inline",
|
|
54
|
-
size: L = "md",
|
|
55
|
-
globalShortcut: p,
|
|
56
|
-
placeholder: P,
|
|
57
|
-
disabled: X,
|
|
58
|
-
className: N,
|
|
59
|
-
name: O,
|
|
60
|
-
id: U,
|
|
61
|
-
form: W,
|
|
62
|
-
autoComplete: q = "off",
|
|
63
|
-
autoFocus: G,
|
|
64
|
-
role: H,
|
|
65
|
-
...u
|
|
66
|
-
}, l) => {
|
|
67
|
-
const { t: v } = de(), T = ue(), V = U ?? T.id, h = !!(T.disabled || X), x = i !== void 0, [J, M] = A(
|
|
68
|
-
String(o ?? "")
|
|
69
|
-
), j = x ? String(i) : J, g = j.length > 0, a = B(null), Q = m(
|
|
70
|
-
(e) => {
|
|
71
|
-
a.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
|
|
72
|
-
},
|
|
73
|
-
[l]
|
|
74
|
-
), [y, E] = A(
|
|
75
|
-
d === "inline" || g
|
|
76
|
-
), f = B(!1);
|
|
77
|
-
ae(() => {
|
|
78
|
-
f.current && a.current && (a.current.focus(), f.current = !1);
|
|
79
|
-
});
|
|
80
|
-
const w = fe(
|
|
81
|
-
(e) => {
|
|
82
|
-
n == null || n(e);
|
|
83
|
-
},
|
|
84
|
-
K
|
|
85
|
-
), S = m(
|
|
86
|
-
(e) => {
|
|
87
|
-
w.cancel(), n == null || n(e);
|
|
88
|
-
},
|
|
89
|
-
[w, n]
|
|
90
|
-
), k = m(
|
|
91
|
-
(e) => {
|
|
92
|
-
x || M(e);
|
|
93
|
-
},
|
|
94
|
-
[x]
|
|
95
|
-
), Y = (e) => {
|
|
96
|
-
const s = e.target.value;
|
|
97
|
-
k(s), s === "" ? S("") : w(s);
|
|
98
|
-
}, Z = (e) => {
|
|
99
|
-
const s = e.currentTarget.value;
|
|
100
|
-
r == null || r(s);
|
|
101
|
-
}, _ = (e) => {
|
|
102
|
-
var s;
|
|
103
|
-
e.key === "Escape" && (e.nativeEvent.isComposing || g && (e.preventDefault(), e.stopPropagation(), k(""), r == null || r(""), S(""), (s = a.current) == null || s.focus()));
|
|
104
|
-
}, $ = () => {
|
|
105
|
-
var e;
|
|
106
|
-
k(""), r == null || r(""), S(""), (e = a.current) == null || e.focus();
|
|
107
|
-
}, I = (e) => {
|
|
108
|
-
d === "expandable" && e.currentTarget.value === "" && E(!1);
|
|
109
|
-
}, C = m(() => {
|
|
110
|
-
var e;
|
|
111
|
-
d === "expandable" && !y ? (f.current = !0, E(!0)) : (e = a.current) == null || e.focus();
|
|
112
|
-
}, [d, y]);
|
|
113
|
-
oe(() => {
|
|
114
|
-
if (!p) return;
|
|
115
|
-
const e = (s) => {
|
|
116
|
-
s.key === p && (s.isComposing || s.defaultPrevented || xe(document.activeElement) || (s.preventDefault(), C()));
|
|
117
|
-
};
|
|
118
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
119
|
-
}, [p, C]);
|
|
120
|
-
const ee = v("ui.inputs.search.clear", "Clear search"), D = v("ui.inputs.search.loading", "Searching…"), se = v("ui.inputs.search.placeholder", "Search…"), z = P ?? se;
|
|
121
|
-
if (d === "expandable" && !y)
|
|
122
|
-
return /* @__PURE__ */ t("div", { "data-component": "search-input", className: he({ className: N }), children: /* @__PURE__ */ t(
|
|
123
|
-
"button",
|
|
124
|
-
{
|
|
125
|
-
type: "button",
|
|
126
|
-
"aria-label": z,
|
|
127
|
-
"aria-expanded": !1,
|
|
128
|
-
"aria-controls": V,
|
|
129
|
-
disabled: h,
|
|
130
|
-
onClick: () => {
|
|
131
|
-
f.current = !0, E(!0);
|
|
132
|
-
},
|
|
133
|
-
className: ve(),
|
|
134
|
-
children: /* @__PURE__ */ t(F, { "aria-hidden": "true", className: "ds:size-4" })
|
|
135
|
-
}
|
|
136
|
-
) });
|
|
137
|
-
const te = H === "combobox" ? {
|
|
138
|
-
role: "combobox",
|
|
139
|
-
"aria-expanded": u["aria-expanded"],
|
|
140
|
-
"aria-controls": u["aria-controls"],
|
|
141
|
-
"aria-activedescendant": u["aria-activedescendant"]
|
|
142
|
-
} : void 0, R = g && !c && !h, re = c ? /* @__PURE__ */ t(ce, { size: "sm", label: D }) : R ? /* @__PURE__ */ t("span", { className: "ds:inline-block ds:size-4", "aria-hidden": "true" }) : void 0;
|
|
143
|
-
return /* @__PURE__ */ ne("div", { "data-component": "search-input", className: be({ className: N }), children: [
|
|
144
|
-
/* @__PURE__ */ t(
|
|
145
|
-
le,
|
|
146
|
-
{
|
|
147
|
-
ref: Q,
|
|
148
|
-
id: V,
|
|
149
|
-
type: "search",
|
|
150
|
-
size: L,
|
|
151
|
-
value: j,
|
|
152
|
-
disabled: h,
|
|
153
|
-
placeholder: z,
|
|
154
|
-
name: O,
|
|
155
|
-
form: W,
|
|
156
|
-
autoComplete: q,
|
|
157
|
-
autoFocus: G,
|
|
158
|
-
startAdornment: /* @__PURE__ */ t(F, {}),
|
|
159
|
-
endAdornment: re,
|
|
160
|
-
clearable: !1,
|
|
161
|
-
onChange: Y,
|
|
162
|
-
onInput: Z,
|
|
163
|
-
onKeyDown: _,
|
|
164
|
-
onBlur: I,
|
|
165
|
-
"aria-label": u["aria-label"],
|
|
166
|
-
"aria-busy": c || void 0,
|
|
167
|
-
...te
|
|
168
|
-
}
|
|
169
|
-
),
|
|
170
|
-
R ? /* @__PURE__ */ t(
|
|
171
|
-
"button",
|
|
172
|
-
{
|
|
173
|
-
type: "button",
|
|
174
|
-
"aria-label": ee,
|
|
175
|
-
onClick: $,
|
|
176
|
-
className: pe(),
|
|
177
|
-
children: /* @__PURE__ */ t(me, { "aria-hidden": "true", className: "ds:size-4" })
|
|
178
|
-
}
|
|
179
|
-
) : null,
|
|
180
|
-
/* @__PURE__ */ t(
|
|
181
|
-
"span",
|
|
182
|
-
{
|
|
183
|
-
role: "status",
|
|
184
|
-
"aria-live": "polite",
|
|
185
|
-
"aria-atomic": "true",
|
|
186
|
-
className: "ds:sr-only",
|
|
187
|
-
children: c ? D : ""
|
|
188
|
-
}
|
|
189
|
-
)
|
|
190
|
-
] });
|
|
191
|
-
}
|
|
192
|
-
);
|
|
193
|
-
ge.displayName = "SearchInput";
|
|
194
|
-
export {
|
|
195
|
-
ge as S
|
|
196
|
-
};
|
|
197
|
-
//# sourceMappingURL=search-input-BVMCONyN.js.map
|