@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,229 @@
|
|
|
1
|
+
import { jsx as s, jsxs as X } from "react/jsx-runtime";
|
|
2
|
+
import { useState as H, useCallback as f, useRef as $, useEffect as T, forwardRef as u, useId as w, useContext as v, createContext as N } from "react";
|
|
3
|
+
import * as p from "@radix-ui/react-popover";
|
|
4
|
+
import { c as q } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as G } from "react-i18next";
|
|
6
|
+
import { I as J } from "./icon-button-Wnnde5lc.js";
|
|
7
|
+
import { X as K } from "./x-CCcI3eJp.js";
|
|
8
|
+
const g = N({
|
|
9
|
+
headingId: void 0,
|
|
10
|
+
setHeadingId: () => {
|
|
11
|
+
},
|
|
12
|
+
descriptionId: void 0,
|
|
13
|
+
setDescriptionId: () => {
|
|
14
|
+
}
|
|
15
|
+
}), D = N({
|
|
16
|
+
isHoverMode: !1,
|
|
17
|
+
clearHoverTimer: () => {
|
|
18
|
+
},
|
|
19
|
+
closeWithDelay: () => {
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
function Q(e) {
|
|
23
|
+
if (e === "top" || e === "bottom") return e;
|
|
24
|
+
const o = typeof document < "u" && document.documentElement.dir === "rtl";
|
|
25
|
+
return e === "start" ? o ? "right" : "left" : o ? "left" : "right";
|
|
26
|
+
}
|
|
27
|
+
const S = q(
|
|
28
|
+
[
|
|
29
|
+
// Border kept (transparent) so the forced-colors override below can
|
|
30
|
+
// repaint a visible edge in HCM. In normal modes the soft drop-shadow
|
|
31
|
+
// carries the edge cue; the heavy `--border` (grey-800 since WCAG
|
|
32
|
+
// 1.4.11 bump in 67fef8c) made the popover read as a charcoal box.
|
|
33
|
+
"ds:relative ds:bg-[var(--popover)] ds:border ds:border-transparent ds:rounded-[var(--radius-md)]",
|
|
34
|
+
"ds:p-[var(--spacing-md)]",
|
|
35
|
+
"ds:shadow-[var(--shadow-lg)]",
|
|
36
|
+
"ds:z-[var(--z-popover)]",
|
|
37
|
+
"ds:text-[var(--popover-foreground)] ds:text-[length:var(--font-size-sm)]",
|
|
38
|
+
"ds:break-words",
|
|
39
|
+
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
40
|
+
"ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
|
|
41
|
+
"ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
|
|
42
|
+
"ds:data-[side=bottom]:slide-in-from-top-2 ds:data-[side=left]:slide-in-from-right-2",
|
|
43
|
+
"ds:data-[side=right]:slide-in-from-left-2 ds:data-[side=top]:slide-in-from-bottom-2",
|
|
44
|
+
"ds:motion-reduce:transition-none ds:motion-reduce:animate-none",
|
|
45
|
+
"ds:forced-colors:border-[CanvasText]",
|
|
46
|
+
"ds:focus-visible:outline-none"
|
|
47
|
+
].join(" "),
|
|
48
|
+
{
|
|
49
|
+
variants: {
|
|
50
|
+
size: {
|
|
51
|
+
sm: "ds:max-w-[var(--popover-size-sm)]",
|
|
52
|
+
md: "ds:max-w-[var(--popover-size-md)]",
|
|
53
|
+
lg: "ds:max-w-[var(--popover-size-lg)]"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
size: "md"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
), R = N(void 0);
|
|
61
|
+
function C({
|
|
62
|
+
openOn: e = "click",
|
|
63
|
+
children: o,
|
|
64
|
+
id: r,
|
|
65
|
+
open: n,
|
|
66
|
+
onOpenChange: t,
|
|
67
|
+
defaultOpen: c,
|
|
68
|
+
modal: h
|
|
69
|
+
}) {
|
|
70
|
+
const [P, b] = H(c ?? !1), m = n !== void 0, y = m ? n : P, d = f(
|
|
71
|
+
(z) => {
|
|
72
|
+
m || b(z), t == null || t(z);
|
|
73
|
+
},
|
|
74
|
+
[m, t]
|
|
75
|
+
), a = $(null), l = e === "hover" || e === "hover-or-click", i = f(() => {
|
|
76
|
+
a.current && (clearTimeout(a.current), a.current = null);
|
|
77
|
+
}, []), I = f(() => {
|
|
78
|
+
i(), a.current = setTimeout(() => {
|
|
79
|
+
d(!0);
|
|
80
|
+
}, 300);
|
|
81
|
+
}, [i, d]), x = f(() => {
|
|
82
|
+
i(), a.current = setTimeout(() => {
|
|
83
|
+
d(!1);
|
|
84
|
+
}, 300);
|
|
85
|
+
}, [i, d]);
|
|
86
|
+
T(() => () => i(), [i]);
|
|
87
|
+
const [W, A] = H(void 0), [F, L] = H(
|
|
88
|
+
void 0
|
|
89
|
+
), V = l ? {
|
|
90
|
+
onMouseEnter: I,
|
|
91
|
+
onMouseLeave: x,
|
|
92
|
+
onFocus: () => {
|
|
93
|
+
i(), d(!0);
|
|
94
|
+
},
|
|
95
|
+
onBlur: x
|
|
96
|
+
} : {};
|
|
97
|
+
return /* @__PURE__ */ s(R.Provider, { value: r, children: /* @__PURE__ */ s(
|
|
98
|
+
g.Provider,
|
|
99
|
+
{
|
|
100
|
+
value: { headingId: W, setHeadingId: A, descriptionId: F, setDescriptionId: L },
|
|
101
|
+
children: /* @__PURE__ */ s(
|
|
102
|
+
D.Provider,
|
|
103
|
+
{
|
|
104
|
+
value: { isHoverMode: l, clearHoverTimer: i, closeWithDelay: x },
|
|
105
|
+
children: /* @__PURE__ */ s(
|
|
106
|
+
p.Root,
|
|
107
|
+
{
|
|
108
|
+
open: y,
|
|
109
|
+
onOpenChange: d,
|
|
110
|
+
modal: h,
|
|
111
|
+
children: l ? /* @__PURE__ */ s("span", { className: "ds:inline-flex", ...V, children: o }) : o
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
) });
|
|
118
|
+
}
|
|
119
|
+
C.displayName = "Popover.Root";
|
|
120
|
+
const j = u(({ children: e, ...o }, r) => /* @__PURE__ */ s(p.Trigger, { ref: r, ...o, children: e }));
|
|
121
|
+
j.displayName = "Popover.Trigger";
|
|
122
|
+
const M = u(
|
|
123
|
+
({
|
|
124
|
+
side: e = "bottom",
|
|
125
|
+
align: o = "center",
|
|
126
|
+
size: r = "md",
|
|
127
|
+
showArrow: n = !0,
|
|
128
|
+
className: t,
|
|
129
|
+
children: c,
|
|
130
|
+
...h
|
|
131
|
+
}, P) => {
|
|
132
|
+
const { headingId: b, descriptionId: m } = v(g), y = v(R), { isHoverMode: d, clearHoverTimer: a, closeWithDelay: l } = v(D), i = Q(e), I = d ? {
|
|
133
|
+
onMouseEnter: a,
|
|
134
|
+
onMouseLeave: l,
|
|
135
|
+
onFocus: a,
|
|
136
|
+
onBlur: l
|
|
137
|
+
} : {};
|
|
138
|
+
return /* @__PURE__ */ s(p.Portal, { children: /* @__PURE__ */ X(
|
|
139
|
+
p.Content,
|
|
140
|
+
{
|
|
141
|
+
ref: P,
|
|
142
|
+
side: i,
|
|
143
|
+
align: o,
|
|
144
|
+
sideOffset: 8,
|
|
145
|
+
collisionPadding: 8,
|
|
146
|
+
"aria-labelledby": b,
|
|
147
|
+
"aria-describedby": m,
|
|
148
|
+
className: S({ size: r, className: t }),
|
|
149
|
+
"data-component": "popover",
|
|
150
|
+
"data-component-id": y,
|
|
151
|
+
...I,
|
|
152
|
+
...h,
|
|
153
|
+
children: [
|
|
154
|
+
c,
|
|
155
|
+
n && /* @__PURE__ */ s(
|
|
156
|
+
p.Arrow,
|
|
157
|
+
{
|
|
158
|
+
width: 12,
|
|
159
|
+
height: 6,
|
|
160
|
+
className: "ds:fill-[var(--popover)]"
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
) });
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
M.displayName = "Popover.Content";
|
|
169
|
+
const B = u(({ className: e }, o) => {
|
|
170
|
+
const { t: r } = G();
|
|
171
|
+
return /* @__PURE__ */ s("div", { className: ["ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]", e].filter(Boolean).join(" "), children: /* @__PURE__ */ s(p.Close, { asChild: !0, children: /* @__PURE__ */ s(
|
|
172
|
+
J,
|
|
173
|
+
{
|
|
174
|
+
ref: o,
|
|
175
|
+
icon: /* @__PURE__ */ s(K, {}),
|
|
176
|
+
intent: "ghost",
|
|
177
|
+
size: "sm",
|
|
178
|
+
"aria-label": r("ui.common.close", "Close")
|
|
179
|
+
}
|
|
180
|
+
) }) });
|
|
181
|
+
});
|
|
182
|
+
B.displayName = "Popover.Close";
|
|
183
|
+
const k = u(
|
|
184
|
+
({ as: e = "h3", className: o, ...r }, n) => {
|
|
185
|
+
const t = w(), { setHeadingId: c } = v(g);
|
|
186
|
+
return T(() => (c(t), () => c(void 0)), [t, c]), /* @__PURE__ */ s(
|
|
187
|
+
e,
|
|
188
|
+
{
|
|
189
|
+
ref: n,
|
|
190
|
+
id: t,
|
|
191
|
+
className: [
|
|
192
|
+
"type-title-item ds:leading-snug ds:break-words",
|
|
193
|
+
"ds:pe-[var(--spacing-xl)]",
|
|
194
|
+
o
|
|
195
|
+
].filter(Boolean).join(" "),
|
|
196
|
+
...r
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
k.displayName = "Popover.Heading";
|
|
202
|
+
const E = u(({ className: e, ...o }, r) => {
|
|
203
|
+
const n = w(), { setDescriptionId: t } = v(g);
|
|
204
|
+
return T(() => (t(n), () => t(void 0)), [n, t]), /* @__PURE__ */ s(
|
|
205
|
+
"p",
|
|
206
|
+
{
|
|
207
|
+
ref: r,
|
|
208
|
+
id: n,
|
|
209
|
+
className: [
|
|
210
|
+
"ds:text-[var(--muted-foreground)] type-body-sm ds:mt-[var(--spacing-xs)]",
|
|
211
|
+
e
|
|
212
|
+
].filter(Boolean).join(" "),
|
|
213
|
+
...o
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
});
|
|
217
|
+
E.displayName = "Popover.Description";
|
|
218
|
+
const oe = Object.assign(C, {
|
|
219
|
+
Root: C,
|
|
220
|
+
Trigger: j,
|
|
221
|
+
Content: M,
|
|
222
|
+
Close: B,
|
|
223
|
+
Heading: k,
|
|
224
|
+
Description: E
|
|
225
|
+
});
|
|
226
|
+
export {
|
|
227
|
+
oe as P
|
|
228
|
+
};
|
|
229
|
+
//# sourceMappingURL=popover-kFN8s84V.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
id: "popover",
|
|
3
|
+
capabilities: ["open", "close"],
|
|
4
|
+
state: {
|
|
5
|
+
isOpen: {
|
|
6
|
+
type: "boolean",
|
|
7
|
+
description: "True when the popover is currently open.",
|
|
8
|
+
read: (o) => o.getIsOpen()
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
actions: {
|
|
12
|
+
open: {
|
|
13
|
+
safety: "read",
|
|
14
|
+
description: "Open the popover.",
|
|
15
|
+
invoke: (o) => {
|
|
16
|
+
o.open();
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
close: {
|
|
20
|
+
safety: "read",
|
|
21
|
+
description: "Close the popover.",
|
|
22
|
+
invoke: (o) => {
|
|
23
|
+
o.close();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
domHooks: {
|
|
28
|
+
root: { attr: "data-component", value: "popover" },
|
|
29
|
+
instanceId: {
|
|
30
|
+
attr: "data-component-id",
|
|
31
|
+
sourceProp: "id",
|
|
32
|
+
description: "Sourced from the id prop on Popover.Root."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
e as p
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=popover.agent-K_d1cfbj.js.map
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as H, useState as F, useCallback as k, useRef as M, useImperativeHandle as q } from "react";
|
|
3
|
+
import { useTranslation as G } from "react-i18next";
|
|
4
|
+
import * as i from "@radix-ui/react-dialog";
|
|
5
|
+
import { B as p } from "./button-7mLWcMp_.js";
|
|
6
|
+
import { I as J } from "./icon-button-Wnnde5lc.js";
|
|
7
|
+
import { L as Q } from "./logo-BpFoCL-s.js";
|
|
8
|
+
import { E as L } from "./eye-off-xEXDAh5z.js";
|
|
9
|
+
import { U as V } from "./user-CPxpqFjJ.js";
|
|
10
|
+
import { L as W } from "./log-out-616hnn2-.js";
|
|
11
|
+
const X = H(
|
|
12
|
+
({
|
|
13
|
+
open: t,
|
|
14
|
+
defaultOpen: g = !1,
|
|
15
|
+
onOpenChange: s,
|
|
16
|
+
onUnlock: h,
|
|
17
|
+
onAccountPage: u,
|
|
18
|
+
onSignOut: v,
|
|
19
|
+
triggerIcon: x,
|
|
20
|
+
triggerAriaLabel: b,
|
|
21
|
+
triggerTooltip: w,
|
|
22
|
+
title: D,
|
|
23
|
+
description: P,
|
|
24
|
+
unlockLabel: T,
|
|
25
|
+
accountPageLabel: I,
|
|
26
|
+
signOutLabel: O,
|
|
27
|
+
className: N,
|
|
28
|
+
...m
|
|
29
|
+
}, A) => {
|
|
30
|
+
const { t: r } = G(), [j, z] = F(g), n = t !== void 0, d = n ? t : j, a = k(
|
|
31
|
+
(e) => {
|
|
32
|
+
n || z(e), s == null || s(e);
|
|
33
|
+
},
|
|
34
|
+
[n, s]
|
|
35
|
+
), f = M(d);
|
|
36
|
+
f.current = d, q(
|
|
37
|
+
A,
|
|
38
|
+
() => ({
|
|
39
|
+
isLocked: () => f.current,
|
|
40
|
+
lock: () => a(!0),
|
|
41
|
+
unlock: () => a(!1)
|
|
42
|
+
}),
|
|
43
|
+
[a]
|
|
44
|
+
);
|
|
45
|
+
const l = k(
|
|
46
|
+
(e) => (S) => {
|
|
47
|
+
e == null || e(), S.defaultPrevented || a(!1);
|
|
48
|
+
},
|
|
49
|
+
[a]
|
|
50
|
+
), C = b ?? r("privacyLock.triggerAriaLabel", "Lock screen for privacy"), R = w ?? r("privacyLock.triggerTooltip", "Lock screen"), y = D ?? r("privacyLock.title", "Screen locked for privacy"), U = P ?? r(
|
|
51
|
+
"privacyLock.description",
|
|
52
|
+
"Locking the screen helps protect the privacy of your data."
|
|
53
|
+
), K = T ?? r("privacyLock.unlock", "Unlock screen"), B = I ?? r("privacyLock.accountPage", "Account page"), E = O ?? r("privacyLock.signOut", "Log out");
|
|
54
|
+
return /* @__PURE__ */ c(i.Root, { open: d, onOpenChange: a, children: [
|
|
55
|
+
/* @__PURE__ */ o(i.Trigger, { asChild: !0, children: /* @__PURE__ */ o(
|
|
56
|
+
J,
|
|
57
|
+
{
|
|
58
|
+
icon: x ?? /* @__PURE__ */ o(L, { "aria-hidden": !0 }),
|
|
59
|
+
"aria-label": C,
|
|
60
|
+
tooltip: R,
|
|
61
|
+
className: N,
|
|
62
|
+
"data-component": "privacy-lock",
|
|
63
|
+
"data-component-id": m.id,
|
|
64
|
+
...m
|
|
65
|
+
}
|
|
66
|
+
) }),
|
|
67
|
+
/* @__PURE__ */ c(i.Portal, { children: [
|
|
68
|
+
/* @__PURE__ */ o(
|
|
69
|
+
i.Overlay,
|
|
70
|
+
{
|
|
71
|
+
className: [
|
|
72
|
+
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
73
|
+
"ds:bg-[var(--background)]/40 ds:backdrop-blur-xl",
|
|
74
|
+
// Fade-in / fade-out via Radix data-state. Gated on
|
|
75
|
+
// motion-reduce per accessibility requirements.
|
|
76
|
+
"ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in",
|
|
77
|
+
"ds:data-[state=closed]:animate-out ds:data-[state=closed]:fade-out",
|
|
78
|
+
"ds:motion-reduce:animate-none"
|
|
79
|
+
].join(" ")
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ o(
|
|
83
|
+
i.Content,
|
|
84
|
+
{
|
|
85
|
+
"aria-label": y,
|
|
86
|
+
onEscapeKeyDown: (e) => e.preventDefault(),
|
|
87
|
+
onPointerDownOutside: (e) => e.preventDefault(),
|
|
88
|
+
onInteractOutside: (e) => e.preventDefault(),
|
|
89
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
90
|
+
className: [
|
|
91
|
+
"ds:fixed ds:inset-0 ds:z-[var(--z-modal)]",
|
|
92
|
+
"ds:flex ds:items-center ds:justify-center",
|
|
93
|
+
"ds:focus:outline-none",
|
|
94
|
+
"ds:text-[color:var(--foreground)]",
|
|
95
|
+
"ds:data-[state=open]:animate-in ds:data-[state=open]:fade-in",
|
|
96
|
+
"ds:motion-reduce:animate-none"
|
|
97
|
+
].join(" "),
|
|
98
|
+
children: /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-lg)] ds:w-[min(22rem,calc(100vw-var(--spacing-xl)))] ds:text-center", children: [
|
|
99
|
+
/* @__PURE__ */ o(Q, { size: "xl", decorative: !0 }),
|
|
100
|
+
/* @__PURE__ */ o(i.Title, { className: "ds:sr-only", children: y }),
|
|
101
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full", children: [
|
|
102
|
+
/* @__PURE__ */ o(
|
|
103
|
+
p,
|
|
104
|
+
{
|
|
105
|
+
intent: "primary",
|
|
106
|
+
startIcon: /* @__PURE__ */ o(L, { "aria-hidden": !0 }),
|
|
107
|
+
onClick: l(h),
|
|
108
|
+
children: K
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
u ? /* @__PURE__ */ o(
|
|
112
|
+
p,
|
|
113
|
+
{
|
|
114
|
+
intent: "secondary",
|
|
115
|
+
startIcon: /* @__PURE__ */ o(V, { "aria-hidden": !0 }),
|
|
116
|
+
onClick: l(u),
|
|
117
|
+
children: B
|
|
118
|
+
}
|
|
119
|
+
) : null,
|
|
120
|
+
v ? /* @__PURE__ */ o(
|
|
121
|
+
p,
|
|
122
|
+
{
|
|
123
|
+
intent: "secondary",
|
|
124
|
+
startIcon: /* @__PURE__ */ o(W, { "aria-hidden": !0 }),
|
|
125
|
+
onClick: l(v),
|
|
126
|
+
children: E
|
|
127
|
+
}
|
|
128
|
+
) : null
|
|
129
|
+
] }),
|
|
130
|
+
/* @__PURE__ */ o(i.Description, { className: "type-body-sm ds:opacity-90", children: U })
|
|
131
|
+
] })
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
] })
|
|
135
|
+
] });
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
X.displayName = "PrivacyLock";
|
|
139
|
+
const ae = {
|
|
140
|
+
id: "privacy-lock",
|
|
141
|
+
capabilities: ["submit", "dismiss"],
|
|
142
|
+
state: {
|
|
143
|
+
isLocked: {
|
|
144
|
+
type: "boolean",
|
|
145
|
+
descriptionKey: "ui.agent.privacyLock.state.isLocked",
|
|
146
|
+
description: "True when the privacy overlay is open.",
|
|
147
|
+
read: (t) => t.isLocked()
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
actions: {
|
|
151
|
+
lock: {
|
|
152
|
+
safety: "write",
|
|
153
|
+
descriptionKey: "ui.agent.privacyLock.actions.lock",
|
|
154
|
+
description: "Open the privacy overlay.",
|
|
155
|
+
invoke: (t) => {
|
|
156
|
+
t.lock();
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
unlock: {
|
|
160
|
+
safety: "write",
|
|
161
|
+
descriptionKey: "ui.agent.privacyLock.actions.unlock",
|
|
162
|
+
description: "Close the privacy overlay (consumer-confirmed action).",
|
|
163
|
+
invoke: (t) => {
|
|
164
|
+
t.unlock();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
domHooks: {
|
|
169
|
+
root: {
|
|
170
|
+
attr: "data-component",
|
|
171
|
+
value: "privacy-lock",
|
|
172
|
+
description: "Marks the PrivacyLock trigger."
|
|
173
|
+
},
|
|
174
|
+
instanceId: {
|
|
175
|
+
attr: "data-component-id",
|
|
176
|
+
sourceProp: "id",
|
|
177
|
+
description: "Sourced from the id prop."
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
export {
|
|
182
|
+
X as P,
|
|
183
|
+
ae as p
|
|
184
|
+
};
|
|
185
|
+
//# sourceMappingURL=privacy-lock.agent-C1i1-T58.js.map
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { jsx as l, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as M, useId as ue, useRef as p, useState as me, useEffect as fe, useLayoutEffect as G, useImperativeHandle as ge, createContext as pe, useContext as ve } from "react";
|
|
3
|
+
import { c as K } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as C } from "react-i18next";
|
|
5
|
+
const j = pe(null);
|
|
6
|
+
function Q() {
|
|
7
|
+
const o = ve(j);
|
|
8
|
+
if (!o) throw new Error("Progress sub-components must be used within <Progress>");
|
|
9
|
+
return o;
|
|
10
|
+
}
|
|
11
|
+
const N = {
|
|
12
|
+
sm: { viewBox: "0 0 24 24", cx: 12, cy: 12, r: 10 },
|
|
13
|
+
md: { viewBox: "0 0 40 40", cx: 20, cy: 20, r: 18 },
|
|
14
|
+
lg: { viewBox: "0 0 56 56", cx: 28, cy: 28, r: 26 }
|
|
15
|
+
}, be = K(
|
|
16
|
+
"ds:relative ds:w-full ds:overflow-hidden ds:rounded-[var(--radius-full)] ds:bg-[var(--progress-track)]",
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
size: { sm: "ds:h-1", md: "ds:h-2", lg: "ds:h-3" }
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: { size: "md" }
|
|
22
|
+
}
|
|
23
|
+
), J = K("", {
|
|
24
|
+
variants: {
|
|
25
|
+
size: {
|
|
26
|
+
sm: "ds:w-6 ds:h-6",
|
|
27
|
+
md: "ds:w-10 ds:h-10",
|
|
28
|
+
lg: "ds:w-14 ds:h-14"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: { size: "md" }
|
|
32
|
+
}), U = M(({ children: o, className: u, ...e }, t) => {
|
|
33
|
+
const r = Q(), { t: d, i18n: m } = C(), f = r.isIndeterminate ? d("ui.common.loading", "Loading...") : d("ui.common.progress_label", {
|
|
34
|
+
percent: new Intl.NumberFormat(m.language, {
|
|
35
|
+
style: "percent",
|
|
36
|
+
maximumFractionDigits: 0
|
|
37
|
+
}).format((r.value ?? 0) / r.max)
|
|
38
|
+
});
|
|
39
|
+
return /* @__PURE__ */ l(
|
|
40
|
+
"span",
|
|
41
|
+
{
|
|
42
|
+
ref: t,
|
|
43
|
+
id: r.labelId,
|
|
44
|
+
className: [
|
|
45
|
+
"type-label ds:text-foreground",
|
|
46
|
+
u
|
|
47
|
+
].filter(Boolean).join(" "),
|
|
48
|
+
...e,
|
|
49
|
+
children: o ?? f
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
});
|
|
53
|
+
U.displayName = "Progress.Label";
|
|
54
|
+
const W = M(({ className: o, ...u }, e) => {
|
|
55
|
+
const t = Q(), { t: r, i18n: d } = C(), m = t.isIndeterminate ? r("ui.common.loading", "Loading...") : new Intl.NumberFormat(d.language, {
|
|
56
|
+
style: "percent",
|
|
57
|
+
maximumFractionDigits: 0
|
|
58
|
+
}).format((t.value ?? 0) / t.max);
|
|
59
|
+
return /* @__PURE__ */ l(
|
|
60
|
+
"span",
|
|
61
|
+
{
|
|
62
|
+
ref: e,
|
|
63
|
+
className: ["type-body-sm ds:tabular-nums ds:text-muted-foreground", o].filter(Boolean).join(" "),
|
|
64
|
+
...u,
|
|
65
|
+
children: m
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
});
|
|
69
|
+
W.displayName = "Progress.Value";
|
|
70
|
+
const Y = M(
|
|
71
|
+
({
|
|
72
|
+
id: o,
|
|
73
|
+
value: u,
|
|
74
|
+
max: e = 100,
|
|
75
|
+
shape: t = "bar",
|
|
76
|
+
size: r = "md",
|
|
77
|
+
ariaLabel: d,
|
|
78
|
+
ariaValueText: m,
|
|
79
|
+
debouncePercent: f = 1,
|
|
80
|
+
disabled: L = !1,
|
|
81
|
+
className: Z,
|
|
82
|
+
children: R,
|
|
83
|
+
...V
|
|
84
|
+
}, $) => {
|
|
85
|
+
const B = ue(), { t: D, i18n: z } = C(), x = p(null), P = p(null), k = p(null), w = p(null), g = p(null), s = u === void 0, i = s ? void 0 : Math.min(e, Math.max(0, u)), ee = i !== void 0 ? i / e * 100 : void 0, [re, te] = me(!1);
|
|
86
|
+
fe(() => {
|
|
87
|
+
te(!0);
|
|
88
|
+
}, []);
|
|
89
|
+
const v = re || s ? ee : 0;
|
|
90
|
+
G(() => {
|
|
91
|
+
var a, c;
|
|
92
|
+
if (!(s || v === void 0))
|
|
93
|
+
if (t === "bar")
|
|
94
|
+
(a = P.current) == null || a.style.setProperty(
|
|
95
|
+
"--progress-value",
|
|
96
|
+
String(v)
|
|
97
|
+
);
|
|
98
|
+
else {
|
|
99
|
+
const { r: n } = N[r], h = 2 * Math.PI * n * (1 - v / 100);
|
|
100
|
+
(c = w.current) == null || c.style.setProperty(
|
|
101
|
+
"stroke-dashoffset",
|
|
102
|
+
String(h)
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}, [s, v, t, r]), G(() => {
|
|
106
|
+
const a = t === "bar" ? x.current : k.current;
|
|
107
|
+
if (!a) return;
|
|
108
|
+
if (s) {
|
|
109
|
+
a.removeAttribute("aria-valuenow"), g.current = null;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (i === void 0) return;
|
|
113
|
+
const c = i / e * 100, n = g.current;
|
|
114
|
+
(n === null ? 1 / 0 : Math.abs(c - n)) >= f && (a.setAttribute("aria-valuenow", String(i)), g.current = c);
|
|
115
|
+
}, [s, i, e, f, t]), ge(
|
|
116
|
+
$,
|
|
117
|
+
() => ({
|
|
118
|
+
setValue: (a) => {
|
|
119
|
+
var X, q;
|
|
120
|
+
const c = Math.min(e, Math.max(0, a)), n = c / e * 100;
|
|
121
|
+
if (t === "bar")
|
|
122
|
+
(X = P.current) == null || X.style.setProperty(
|
|
123
|
+
"--progress-value",
|
|
124
|
+
String(n)
|
|
125
|
+
);
|
|
126
|
+
else {
|
|
127
|
+
const { r: le } = N[r], de = 2 * Math.PI * le * (1 - n / 100);
|
|
128
|
+
(q = w.current) == null || q.style.setProperty(
|
|
129
|
+
"stroke-dashoffset",
|
|
130
|
+
String(de)
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
const y = t === "bar" ? x.current : k.current, h = g.current;
|
|
134
|
+
(h === null ? 1 / 0 : Math.abs(n - h)) >= f && y && (y.setAttribute("aria-valuenow", String(c)), g.current = n);
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
[e, t, r, f]
|
|
138
|
+
);
|
|
139
|
+
const se = s ? D("ui.common.loading", "Loading...") : D("ui.common.progress_label", {
|
|
140
|
+
percent: new Intl.NumberFormat(z.language, {
|
|
141
|
+
style: "percent",
|
|
142
|
+
maximumFractionDigits: 0
|
|
143
|
+
}).format((i ?? 0) / e)
|
|
144
|
+
}), F = d ? { "aria-label": d } : { "aria-labelledby": B, "aria-label": se }, S = s ? { "aria-busy": !0, "aria-valuemin": 0, "aria-valuemax": e } : {
|
|
145
|
+
"aria-valuemin": 0,
|
|
146
|
+
"aria-valuemax": e,
|
|
147
|
+
...m ? { "aria-valuetext": m } : {}
|
|
148
|
+
}, E = L ? { "aria-disabled": !0 } : {}, A = [
|
|
149
|
+
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
150
|
+
L && "ds:opacity-50",
|
|
151
|
+
Z
|
|
152
|
+
].filter(Boolean).join(" "), T = {
|
|
153
|
+
labelId: B,
|
|
154
|
+
isIndeterminate: s,
|
|
155
|
+
value: i,
|
|
156
|
+
max: e
|
|
157
|
+
};
|
|
158
|
+
if (t === "bar") {
|
|
159
|
+
const a = s ? [
|
|
160
|
+
"ds:absolute ds:[inset-block:0] ds:bg-primary ds:rounded-[var(--radius-full)]",
|
|
161
|
+
"ds:[@media(prefers-reduced-motion:no-preference)]:animate-[progress-bar-indeterminate_1200ms_ease-in-out_infinite]",
|
|
162
|
+
"ds:[.theme-accessible_&]:animate-none",
|
|
163
|
+
"ds:motion-reduce:animate-[progress-indeterminate-pulse_var(--animation-duration)_ease-in-out_infinite]"
|
|
164
|
+
].join(" ") : [
|
|
165
|
+
"ds:absolute ds:[inset-block:0] ds:start-0",
|
|
166
|
+
"ds:[inline-size:calc(var(--progress-value,0)*1%)]",
|
|
167
|
+
"ds:bg-primary ds:rounded-[var(--radius-full)]",
|
|
168
|
+
"ds:transition-[inline-size] ds:duration-[var(--animation-duration)]",
|
|
169
|
+
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
170
|
+
].join(" ");
|
|
171
|
+
return /* @__PURE__ */ l(j.Provider, { value: T, children: /* @__PURE__ */ I("div", { className: A, "data-component": "progress", "data-component-id": o, ...V, children: [
|
|
172
|
+
R,
|
|
173
|
+
/* @__PURE__ */ l(
|
|
174
|
+
"div",
|
|
175
|
+
{
|
|
176
|
+
ref: x,
|
|
177
|
+
role: "progressbar",
|
|
178
|
+
...F,
|
|
179
|
+
...S,
|
|
180
|
+
...E,
|
|
181
|
+
className: be({ size: r }),
|
|
182
|
+
children: /* @__PURE__ */ l("div", { ref: P, className: a })
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
] }) });
|
|
186
|
+
}
|
|
187
|
+
const { viewBox: ae, cx: O, cy: H, r: _ } = N[r], b = 2 * Math.PI * _, ne = b * 0.25, oe = s ? ne : b, ie = s ? [
|
|
188
|
+
J({ size: r }),
|
|
189
|
+
"ds:[transform:rotate(-90deg)]",
|
|
190
|
+
"ds:[@media(prefers-reduced-motion:no-preference)]:animate-[progress-circular-spin_1200ms_linear_infinite]",
|
|
191
|
+
"ds:[.theme-accessible_&]:animate-none",
|
|
192
|
+
"ds:motion-reduce:animate-[progress-indeterminate-pulse_var(--animation-duration)_ease-in-out_infinite]"
|
|
193
|
+
].join(" ") : [
|
|
194
|
+
J({ size: r }),
|
|
195
|
+
"ds:[transform:rotate(-90deg)]",
|
|
196
|
+
"ds:rtl:[transform:rotate(-90deg)_scaleX(-1)]"
|
|
197
|
+
].join(" "), ce = [
|
|
198
|
+
"ds:stroke-primary ds:[stroke-width:var(--spacing-xs)]",
|
|
199
|
+
!s && "ds:transition-[stroke-dashoffset] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
200
|
+
].filter(Boolean).join(" ");
|
|
201
|
+
return /* @__PURE__ */ l(j.Provider, { value: T, children: /* @__PURE__ */ I("div", { className: A, "data-component": "progress", ...V, children: [
|
|
202
|
+
R,
|
|
203
|
+
/* @__PURE__ */ I(
|
|
204
|
+
"svg",
|
|
205
|
+
{
|
|
206
|
+
ref: k,
|
|
207
|
+
role: "progressbar",
|
|
208
|
+
...F,
|
|
209
|
+
...S,
|
|
210
|
+
...E,
|
|
211
|
+
viewBox: ae,
|
|
212
|
+
className: ie,
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ l(
|
|
215
|
+
"circle",
|
|
216
|
+
{
|
|
217
|
+
cx: O,
|
|
218
|
+
cy: H,
|
|
219
|
+
r: _,
|
|
220
|
+
fill: "none",
|
|
221
|
+
strokeDasharray: b,
|
|
222
|
+
className: "ds:[stroke:var(--progress-track)] ds:[stroke-width:var(--spacing-xs)]"
|
|
223
|
+
}
|
|
224
|
+
),
|
|
225
|
+
/* @__PURE__ */ l(
|
|
226
|
+
"circle",
|
|
227
|
+
{
|
|
228
|
+
ref: w,
|
|
229
|
+
cx: O,
|
|
230
|
+
cy: H,
|
|
231
|
+
r: _,
|
|
232
|
+
fill: "none",
|
|
233
|
+
strokeLinecap: "round",
|
|
234
|
+
strokeDasharray: b,
|
|
235
|
+
strokeDashoffset: oe,
|
|
236
|
+
className: ce
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
] }) });
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
Y.displayName = "Progress";
|
|
246
|
+
const _e = Object.assign(Y, {
|
|
247
|
+
Label: U,
|
|
248
|
+
Value: W
|
|
249
|
+
});
|
|
250
|
+
export {
|
|
251
|
+
_e as P
|
|
252
|
+
};
|
|
253
|
+
//# sourceMappingURL=progress-wNsqkw8I.js.map
|