@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,89 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as z, useId as C, useMemo as j, useRef as B } from "react";
|
|
3
|
-
import * as V from "@radix-ui/react-radio-group";
|
|
4
|
-
import { c as $ } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { a as x } from "./radio-cs8N1wJi.js";
|
|
6
|
-
import { u as P } from "./use-direction-D6rvvG9G.js";
|
|
7
|
-
import { c as k } from "./compose-refs-C0k0tdqF.js";
|
|
8
|
-
import { C as A } from "./circle-alert-ChA9opNA.js";
|
|
9
|
-
const D = $("ds:flex", {
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
vertical: "ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
13
|
-
horizontal: "ds:flex-row ds:flex-wrap ds:gap-[var(--spacing-md)]",
|
|
14
|
-
card: "ds:flex-col ds:gap-[var(--spacing-md)]"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
defaultVariants: {
|
|
18
|
-
variant: "vertical"
|
|
19
|
-
}
|
|
20
|
-
}), M = z(
|
|
21
|
-
({
|
|
22
|
-
children: g,
|
|
23
|
-
variant: e = "vertical",
|
|
24
|
-
label: i,
|
|
25
|
-
description: a,
|
|
26
|
-
error: o,
|
|
27
|
-
required: d,
|
|
28
|
-
disabled: h,
|
|
29
|
-
className: R,
|
|
30
|
-
...N
|
|
31
|
-
}, y) => {
|
|
32
|
-
const t = C(), n = `${t}-description`, l = `${t}-error`, b = [a ? n : null, o ? l : null].filter(Boolean).join(" ") || void 0, G = e === "horizontal" ? "horizontal" : "vertical", c = j(
|
|
33
|
-
() => ({ variant: e }),
|
|
34
|
-
[e]
|
|
35
|
-
), p = a ? /* @__PURE__ */ s("p", { id: n, className: "type-body-sm ds:text-muted-foreground", children: a }) : null, m = o ? /* @__PURE__ */ r(
|
|
36
|
-
"p",
|
|
37
|
-
{
|
|
38
|
-
id: l,
|
|
39
|
-
role: "alert",
|
|
40
|
-
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-body-sm ds:text-destructive",
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ s(A, { "aria-hidden": "true", className: "ds:size-4 ds:shrink-0" }),
|
|
43
|
-
/* @__PURE__ */ s("span", { children: o })
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
) : null, u = B(null), I = k(y, u), w = P(u), f = /* @__PURE__ */ s(
|
|
47
|
-
V.Root,
|
|
48
|
-
{
|
|
49
|
-
ref: I,
|
|
50
|
-
orientation: G,
|
|
51
|
-
dir: w,
|
|
52
|
-
disabled: h,
|
|
53
|
-
required: d,
|
|
54
|
-
"aria-describedby": b,
|
|
55
|
-
"aria-invalid": !!o || void 0,
|
|
56
|
-
"aria-required": d || void 0,
|
|
57
|
-
className: D({ variant: e, className: R }),
|
|
58
|
-
"data-component": "radio-group",
|
|
59
|
-
...N,
|
|
60
|
-
children: g
|
|
61
|
-
}
|
|
62
|
-
), v = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0";
|
|
63
|
-
return i ? /* @__PURE__ */ s(x.Provider, { value: c, children: /* @__PURE__ */ r("fieldset", { className: `${v} ds:border-0 ds:p-0 ds:m-0`, children: [
|
|
64
|
-
/* @__PURE__ */ r("legend", { className: "type-label ds:text-foreground ds:p-0", children: [
|
|
65
|
-
i,
|
|
66
|
-
d ? /* @__PURE__ */ s(
|
|
67
|
-
"span",
|
|
68
|
-
{
|
|
69
|
-
"aria-hidden": "true",
|
|
70
|
-
className: "ds:text-destructive ds:ms-[var(--spacing-xs)]",
|
|
71
|
-
children: "*"
|
|
72
|
-
}
|
|
73
|
-
) : null
|
|
74
|
-
] }),
|
|
75
|
-
p,
|
|
76
|
-
f,
|
|
77
|
-
m
|
|
78
|
-
] }) }) : /* @__PURE__ */ s(x.Provider, { value: c, children: /* @__PURE__ */ r("div", { className: v, children: [
|
|
79
|
-
p,
|
|
80
|
-
f,
|
|
81
|
-
m
|
|
82
|
-
] }) });
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
M.displayName = "RadioGroup";
|
|
86
|
-
export {
|
|
87
|
-
M as R
|
|
88
|
-
};
|
|
89
|
-
//# sourceMappingURL=radio-group-BIUbpWml.js.map
|
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
import { jsx as L, jsxs as ce } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as ue, useContext as fe, forwardRef as Z, useState as W, useRef as _, useCallback as Y, useEffect as re, useImperativeHandle as de, useId as pe, useMemo as me, Children as ze, useLayoutEffect as be, isValidElement as ge, cloneElement as ne } from "react";
|
|
3
|
-
import { c as ee } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as ve } from "react-i18next";
|
|
5
|
-
const se = ue(null);
|
|
6
|
-
function ie() {
|
|
7
|
-
const e = fe(se);
|
|
8
|
-
if (!e)
|
|
9
|
-
throw new Error("useResizable must be used within a PanelGroup");
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
const ae = "ui-kit:resizable:";
|
|
13
|
-
function Se(e) {
|
|
14
|
-
if (!e) return null;
|
|
15
|
-
try {
|
|
16
|
-
const c = localStorage.getItem(`${ae}${e}`);
|
|
17
|
-
if (!c) return null;
|
|
18
|
-
const o = JSON.parse(c);
|
|
19
|
-
return o.v !== 1 || !Array.isArray(o.sizes) ? null : o.sizes;
|
|
20
|
-
} catch {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function he(e, c) {
|
|
25
|
-
try {
|
|
26
|
-
localStorage.setItem(
|
|
27
|
-
`${ae}${e}`,
|
|
28
|
-
JSON.stringify({ v: 1, sizes: c })
|
|
29
|
-
);
|
|
30
|
-
} catch {
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function ye(e) {
|
|
34
|
-
const c = e.reduce((o, k) => o + k, 0);
|
|
35
|
-
return c === 0 ? e.map(() => 100 / e.length) : e.map((o) => o / c * 100);
|
|
36
|
-
}
|
|
37
|
-
function we(e, c, o, k, T) {
|
|
38
|
-
const r = [...e], p = c, z = c + 1;
|
|
39
|
-
if (p >= r.length || z >= r.length) return r;
|
|
40
|
-
const s = k[p], l = k[z], b = r[p] + r[z], E = T > 0 ? 20 / T * 100 : 2;
|
|
41
|
-
let i = r[p] + o, g = b - i;
|
|
42
|
-
if (s.collapsible && i < s.minSize) {
|
|
43
|
-
if (i < s.minSize - E)
|
|
44
|
-
return r[p] = s.collapsedSize, r[z] = b - s.collapsedSize, r;
|
|
45
|
-
i = s.minSize, g = b - i;
|
|
46
|
-
}
|
|
47
|
-
if (l.collapsible && g < l.minSize) {
|
|
48
|
-
if (g < l.minSize - E)
|
|
49
|
-
return r[z] = l.collapsedSize, r[p] = b - l.collapsedSize, r;
|
|
50
|
-
g = l.minSize, i = b - g;
|
|
51
|
-
}
|
|
52
|
-
const m = s.collapsible ? s.collapsedSize : s.minSize, v = l.collapsible ? l.collapsedSize : l.minSize;
|
|
53
|
-
return i = Math.max(m, Math.min(s.maxSize, i)), g = b - i, g = Math.max(v, Math.min(l.maxSize, g)), i = b - g, i = Math.max(m, Math.min(s.maxSize, i)), r[p] = Math.max(0, i), r[z] = Math.max(0, b - r[p]), r;
|
|
54
|
-
}
|
|
55
|
-
const xe = ee(
|
|
56
|
-
[
|
|
57
|
-
"ds:relative ds:flex ds:items-center ds:justify-center ds:shrink-0 ds:select-none",
|
|
58
|
-
"ds:bg-[var(--border)]",
|
|
59
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
60
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
61
|
-
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
62
|
-
"ds:hover:bg-[var(--accent)] ds:data-[dragging]:bg-[var(--accent)]",
|
|
63
|
-
"ds:before:absolute ds:before:content-['']"
|
|
64
|
-
],
|
|
65
|
-
{
|
|
66
|
-
variants: {
|
|
67
|
-
orientation: {
|
|
68
|
-
horizontal: [
|
|
69
|
-
"ds:[inline-size:var(--resizable-handle-size)] ds:cursor-col-resize ds:[block-size:100%]",
|
|
70
|
-
"ds:before:[block-size:100%]",
|
|
71
|
-
"ds:before:[inline-size:var(--min-target-size)]",
|
|
72
|
-
"ds:before:[inset-block:0]",
|
|
73
|
-
"ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
|
|
74
|
-
],
|
|
75
|
-
vertical: [
|
|
76
|
-
"ds:[block-size:var(--resizable-handle-size)] ds:cursor-row-resize ds:[inline-size:100%]",
|
|
77
|
-
"ds:before:[inline-size:100%]",
|
|
78
|
-
"ds:before:[block-size:var(--min-target-size)]",
|
|
79
|
-
"ds:before:[inset-inline:0]",
|
|
80
|
-
"ds:before:[inset-block:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
defaultVariants: { orientation: "horizontal" }
|
|
85
|
-
}
|
|
86
|
-
), Re = ee("ds:flex ds:overflow-hidden", {
|
|
87
|
-
variants: {
|
|
88
|
-
direction: {
|
|
89
|
-
horizontal: "ds:flex-row",
|
|
90
|
-
vertical: "ds:flex-col"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
defaultVariants: { direction: "horizontal" }
|
|
94
|
-
}), ke = ee("ds:[flex:0_0_var(--panel-self-size,50%)] ds:overflow-auto", {
|
|
95
|
-
variants: {
|
|
96
|
-
direction: {
|
|
97
|
-
horizontal: "ds:[min-inline-size:0]",
|
|
98
|
-
vertical: "ds:[min-block-size:0]"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
defaultVariants: { direction: "horizontal" }
|
|
102
|
-
}), Me = Z(
|
|
103
|
-
({ direction: e, groupId: c, onLayout: o, className: k, children: T }, r) => {
|
|
104
|
-
const p = pe(), z = _(null), s = _(/* @__PURE__ */ new Map()), l = _(null), [b, E] = W(""), { panelConfigs: i, processedChildren: g } = me(() => {
|
|
105
|
-
const n = [];
|
|
106
|
-
let S = 0, V = 0;
|
|
107
|
-
const P = (C) => {
|
|
108
|
-
if (!ge(C)) return C;
|
|
109
|
-
if (C.type === oe) {
|
|
110
|
-
const H = S, X = C.props;
|
|
111
|
-
return n.push({
|
|
112
|
-
id: `${p}-panel-${H}`,
|
|
113
|
-
index: H,
|
|
114
|
-
defaultSize: X.defaultSize,
|
|
115
|
-
minSize: X.minSize ?? 10,
|
|
116
|
-
maxSize: X.maxSize ?? 90,
|
|
117
|
-
collapsible: X.collapsible ?? !1,
|
|
118
|
-
collapsedSize: X.collapsedSize ?? 0
|
|
119
|
-
}), S++, ne(C, {
|
|
120
|
-
_panelIndex: H,
|
|
121
|
-
_panelId: `${p}-panel-${H}`
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
if (C.type === le) {
|
|
125
|
-
const H = V++;
|
|
126
|
-
return ne(
|
|
127
|
-
C,
|
|
128
|
-
{ _handleIndex: H }
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
return C;
|
|
132
|
-
};
|
|
133
|
-
return {
|
|
134
|
-
panelConfigs: n,
|
|
135
|
-
processedChildren: ze.map(T, P)
|
|
136
|
-
};
|
|
137
|
-
}, [T, p]), [m, v] = W(() => {
|
|
138
|
-
if (i.length === 0) return [];
|
|
139
|
-
const n = Se(c);
|
|
140
|
-
return n && n.length === i.length ? n : ye(i.map((S) => S.defaultSize));
|
|
141
|
-
}), u = _(m);
|
|
142
|
-
re(() => {
|
|
143
|
-
u.current = m;
|
|
144
|
-
}, [m]);
|
|
145
|
-
const D = Y((n) => {
|
|
146
|
-
u.current = n, s.current.forEach((S, V) => {
|
|
147
|
-
V < n.length && S.style.setProperty("--panel-self-size", `${n[V]}%`);
|
|
148
|
-
});
|
|
149
|
-
}, []), N = Y(
|
|
150
|
-
(n) => {
|
|
151
|
-
u.current = n, v(n), o == null || o(n), c && (l.current && clearTimeout(l.current), l.current = setTimeout(
|
|
152
|
-
() => he(c, n),
|
|
153
|
-
120
|
|
154
|
-
));
|
|
155
|
-
},
|
|
156
|
-
[c, o]
|
|
157
|
-
);
|
|
158
|
-
be(() => {
|
|
159
|
-
s.current.forEach((n, S) => {
|
|
160
|
-
S < m.length && n.style.setProperty("--panel-self-size", `${m[S]}%`);
|
|
161
|
-
});
|
|
162
|
-
}, [m]);
|
|
163
|
-
const $ = Y(
|
|
164
|
-
(n, S) => {
|
|
165
|
-
s.current.set(n, S);
|
|
166
|
-
const V = u.current[n];
|
|
167
|
-
V !== void 0 && S.style.setProperty("--panel-self-size", `${V}%`);
|
|
168
|
-
},
|
|
169
|
-
[]
|
|
170
|
-
), G = Y((n) => {
|
|
171
|
-
s.current.delete(n);
|
|
172
|
-
}, []), O = Y((n) => {
|
|
173
|
-
E(n);
|
|
174
|
-
}, []), M = Re({ direction: e, className: k }), I = {
|
|
175
|
-
direction: e,
|
|
176
|
-
sizes: m,
|
|
177
|
-
liveSizesRef: u,
|
|
178
|
-
panels: i,
|
|
179
|
-
groupRef: z,
|
|
180
|
-
updateSizesImperative: D,
|
|
181
|
-
commitSizes: N,
|
|
182
|
-
registerPanelElement: $,
|
|
183
|
-
unregisterPanelElement: G,
|
|
184
|
-
setAnnounceText: O
|
|
185
|
-
}, Q = (n) => {
|
|
186
|
-
z.current = n, typeof r == "function" ? r(n) : r && (r.current = n);
|
|
187
|
-
};
|
|
188
|
-
return /* @__PURE__ */ L(se.Provider, { value: I, children: /* @__PURE__ */ ce(
|
|
189
|
-
"div",
|
|
190
|
-
{
|
|
191
|
-
ref: Q,
|
|
192
|
-
className: M,
|
|
193
|
-
"data-component": "resizable",
|
|
194
|
-
"data-panel-group": !0,
|
|
195
|
-
"data-direction": e,
|
|
196
|
-
children: [
|
|
197
|
-
g,
|
|
198
|
-
/* @__PURE__ */ L("span", { className: "ds:sr-only", "aria-live": "polite", "aria-atomic": "true", children: b })
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
) });
|
|
202
|
-
}
|
|
203
|
-
);
|
|
204
|
-
Me.displayName = "PanelGroup";
|
|
205
|
-
const oe = Z(
|
|
206
|
-
({
|
|
207
|
-
_panelIndex: e = 0,
|
|
208
|
-
_panelId: c,
|
|
209
|
-
minSize: o = 10,
|
|
210
|
-
maxSize: k = 90,
|
|
211
|
-
children: T,
|
|
212
|
-
className: r
|
|
213
|
-
}, p) => {
|
|
214
|
-
const {
|
|
215
|
-
direction: z,
|
|
216
|
-
liveSizesRef: s,
|
|
217
|
-
panels: l,
|
|
218
|
-
updateSizesImperative: b,
|
|
219
|
-
commitSizes: E,
|
|
220
|
-
registerPanelElement: i,
|
|
221
|
-
unregisterPanelElement: g
|
|
222
|
-
} = ie(), m = _(null);
|
|
223
|
-
return re(() => {
|
|
224
|
-
const v = m.current;
|
|
225
|
-
if (v)
|
|
226
|
-
return i(e, v), () => g(e);
|
|
227
|
-
}, [e, i, g]), de(
|
|
228
|
-
p,
|
|
229
|
-
() => ({
|
|
230
|
-
resize: (v) => {
|
|
231
|
-
const u = [...s.current], D = Math.max(o, Math.min(k, v)), N = D - (u[e] ?? 0);
|
|
232
|
-
if (Math.abs(N) < 1e-3) return;
|
|
233
|
-
const $ = [...u];
|
|
234
|
-
$[e] = D;
|
|
235
|
-
const G = u.map((M, I) => I).filter((M) => M !== e), O = G.reduce(
|
|
236
|
-
(M, I) => M + (u[I] ?? 0),
|
|
237
|
-
0
|
|
238
|
-
);
|
|
239
|
-
G.forEach((M) => {
|
|
240
|
-
$[M] = O > 0 ? (u[M] ?? 0) - N * ((u[M] ?? 0) / O) : (u[M] ?? 0) - N / G.length;
|
|
241
|
-
}), b($), E($);
|
|
242
|
-
}
|
|
243
|
-
}),
|
|
244
|
-
[e, o, k, l, s, b, E]
|
|
245
|
-
), /* @__PURE__ */ L(
|
|
246
|
-
"div",
|
|
247
|
-
{
|
|
248
|
-
ref: m,
|
|
249
|
-
id: c,
|
|
250
|
-
"data-panel": !0,
|
|
251
|
-
"data-panel-index": e,
|
|
252
|
-
className: ke({ direction: z, className: r }),
|
|
253
|
-
children: T
|
|
254
|
-
}
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
);
|
|
258
|
-
oe.displayName = "Panel";
|
|
259
|
-
const le = Z(
|
|
260
|
-
({ _handleIndex: e = 0, className: c }, o) => {
|
|
261
|
-
const { t: k, i18n: T } = ve(), {
|
|
262
|
-
direction: r,
|
|
263
|
-
sizes: p,
|
|
264
|
-
liveSizesRef: z,
|
|
265
|
-
panels: s,
|
|
266
|
-
groupRef: l,
|
|
267
|
-
updateSizesImperative: b,
|
|
268
|
-
commitSizes: E,
|
|
269
|
-
setAnnounceText: i
|
|
270
|
-
} = ie(), [g, m] = W(!1), v = _(null), u = _(null), D = _(null), N = _(null), $ = Y(
|
|
271
|
-
(t, a = !1) => {
|
|
272
|
-
D.current !== null && (cancelAnimationFrame(D.current), D.current = null), u.current && (clearTimeout(u.current), u.current = null);
|
|
273
|
-
const y = new Intl.NumberFormat(T.language, {
|
|
274
|
-
style: "percent"
|
|
275
|
-
}).format(t / 100), h = k("ui.resizable.sizeAnnounce", { percent: y });
|
|
276
|
-
a ? i(h) : D.current = requestAnimationFrame(() => {
|
|
277
|
-
D.current = null, u.current = setTimeout(() => i(h), 200);
|
|
278
|
-
});
|
|
279
|
-
},
|
|
280
|
-
[k, T.language, i]
|
|
281
|
-
), G = Y(() => l.current ? getComputedStyle(l.current).direction === "rtl" : !1, [l]), O = (t) => {
|
|
282
|
-
l.current && (t.currentTarget.setPointerCapture(t.pointerId), t.currentTarget.style.setProperty("touch-action", "none"), v.current = {
|
|
283
|
-
startX: t.clientX,
|
|
284
|
-
startY: t.clientY,
|
|
285
|
-
startSizes: [...z.current],
|
|
286
|
-
groupRect: l.current.getBoundingClientRect()
|
|
287
|
-
}, m(!0));
|
|
288
|
-
}, M = (t) => {
|
|
289
|
-
if (!v.current) return;
|
|
290
|
-
const { startX: a, startY: y, startSizes: h, groupRect: A } = v.current, F = r === "horizontal", B = F ? A.width : A.height;
|
|
291
|
-
if (B === 0) return;
|
|
292
|
-
const J = F ? t.clientX - a : t.clientY - y, K = (F && G() ? -J : J) / B * 100, j = we(
|
|
293
|
-
h,
|
|
294
|
-
e,
|
|
295
|
-
K,
|
|
296
|
-
s,
|
|
297
|
-
B
|
|
298
|
-
);
|
|
299
|
-
if (b(j), N.current) {
|
|
300
|
-
const R = Math.round(j[e]);
|
|
301
|
-
N.current.setAttribute("aria-valuenow", String(R)), N.current.setAttribute(
|
|
302
|
-
"aria-valuetext",
|
|
303
|
-
new Intl.NumberFormat(T.language, { style: "percent" }).format(
|
|
304
|
-
R / 100
|
|
305
|
-
)
|
|
306
|
-
);
|
|
307
|
-
}
|
|
308
|
-
$(j[e]);
|
|
309
|
-
}, I = (t) => {
|
|
310
|
-
if (!v.current) return;
|
|
311
|
-
t.currentTarget.releasePointerCapture(t.pointerId), t.currentTarget.style.removeProperty("touch-action"), v.current = null, m(!1);
|
|
312
|
-
const a = z.current;
|
|
313
|
-
E(a), $(a[e], !0);
|
|
314
|
-
}, Q = (t) => {
|
|
315
|
-
if (!v.current) return;
|
|
316
|
-
t.currentTarget.releasePointerCapture(t.pointerId), t.currentTarget.style.removeProperty("touch-action"), v.current = null, m(!1);
|
|
317
|
-
const a = z.current;
|
|
318
|
-
E(a);
|
|
319
|
-
}, n = (t) => {
|
|
320
|
-
const a = e, y = e + 1;
|
|
321
|
-
if (a >= s.length || y >= s.length) return;
|
|
322
|
-
const h = s[a], A = s[y], F = r === "horizontal", B = F && G(), J = t.shiftKey ? 10 : 1, w = [...z.current], K = (x = J) => {
|
|
323
|
-
const f = Math.min(
|
|
324
|
-
x,
|
|
325
|
-
h.maxSize - w[a],
|
|
326
|
-
w[y] - (A.collapsible ? A.collapsedSize : A.minSize)
|
|
327
|
-
);
|
|
328
|
-
if (f <= 0) return null;
|
|
329
|
-
const d = [...w];
|
|
330
|
-
return d[a] += f, d[y] -= f, d;
|
|
331
|
-
}, j = (x = J) => {
|
|
332
|
-
const f = h.collapsible ? h.collapsedSize : h.minSize, d = Math.min(x, w[a] - f);
|
|
333
|
-
if (d <= 0) return null;
|
|
334
|
-
const U = [...w];
|
|
335
|
-
return U[a] -= d, U[y] += d, U;
|
|
336
|
-
};
|
|
337
|
-
let R = null;
|
|
338
|
-
switch (t.key) {
|
|
339
|
-
case "ArrowRight":
|
|
340
|
-
if (!F) break;
|
|
341
|
-
t.preventDefault(), R = B ? j() : K();
|
|
342
|
-
break;
|
|
343
|
-
case "ArrowLeft":
|
|
344
|
-
if (!F) break;
|
|
345
|
-
t.preventDefault(), R = B ? K() : j();
|
|
346
|
-
break;
|
|
347
|
-
case "ArrowDown":
|
|
348
|
-
if (F) break;
|
|
349
|
-
t.preventDefault(), R = K();
|
|
350
|
-
break;
|
|
351
|
-
case "ArrowUp":
|
|
352
|
-
if (F) break;
|
|
353
|
-
t.preventDefault(), R = j();
|
|
354
|
-
break;
|
|
355
|
-
case "Home": {
|
|
356
|
-
t.preventDefault();
|
|
357
|
-
const x = h.collapsible ? h.collapsedSize : h.minSize, f = w[a] - x;
|
|
358
|
-
if (f > 0) {
|
|
359
|
-
const d = [...w];
|
|
360
|
-
d[a] = x, d[y] += f, R = d;
|
|
361
|
-
}
|
|
362
|
-
break;
|
|
363
|
-
}
|
|
364
|
-
case "End": {
|
|
365
|
-
t.preventDefault();
|
|
366
|
-
const x = A.collapsible ? A.collapsedSize : A.minSize, f = Math.min(
|
|
367
|
-
h.maxSize - w[a],
|
|
368
|
-
w[y] - x
|
|
369
|
-
);
|
|
370
|
-
if (f > 0) {
|
|
371
|
-
const d = [...w];
|
|
372
|
-
d[a] += f, d[y] -= f, R = d;
|
|
373
|
-
}
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
case "Enter": {
|
|
377
|
-
t.preventDefault();
|
|
378
|
-
const x = h.collapsible ? h : A.collapsible ? A : null, f = h.collapsible ? a : A.collapsible ? y : -1;
|
|
379
|
-
if (!x || f < 0) break;
|
|
380
|
-
const d = f === a ? y : a, U = Math.abs(w[f] - x.collapsedSize) < 0.5, te = w[a] + w[y], q = [...w];
|
|
381
|
-
U ? (q[f] = x.minSize, q[d] = te - x.minSize) : (q[f] = x.collapsedSize, q[d] = te - x.collapsedSize), R = q;
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
R && (b(R), E(R), $(R[a], !0));
|
|
386
|
-
}, S = e, V = e + 1, P = s[S], C = s[V], H = r === "horizontal" ? "horizontal" : "vertical", X = (t) => new Intl.NumberFormat(T.language, { style: "percent" }).format(t / 100);
|
|
387
|
-
return /* @__PURE__ */ L(
|
|
388
|
-
"div",
|
|
389
|
-
{
|
|
390
|
-
ref: (t) => {
|
|
391
|
-
N.current = t, typeof o == "function" ? o(t) : o && (o.current = t);
|
|
392
|
-
},
|
|
393
|
-
role: "separator",
|
|
394
|
-
tabIndex: 0,
|
|
395
|
-
"aria-orientation": H,
|
|
396
|
-
"aria-valuemin": P ? P.collapsible ? P.collapsedSize : P.minSize : 0,
|
|
397
|
-
"aria-valuemax": (P == null ? void 0 : P.maxSize) ?? 100,
|
|
398
|
-
"aria-valuenow": Math.round(p[S] ?? 0),
|
|
399
|
-
"aria-valuetext": X(p[S] ?? 0),
|
|
400
|
-
"aria-controls": [P == null ? void 0 : P.id, C == null ? void 0 : C.id].filter(Boolean).join(" ") || void 0,
|
|
401
|
-
"aria-label": k("ui.resizable.resizeLabel"),
|
|
402
|
-
"data-dragging": g ? "" : void 0,
|
|
403
|
-
className: xe({ orientation: H, className: c }),
|
|
404
|
-
onPointerDown: O,
|
|
405
|
-
onPointerMove: M,
|
|
406
|
-
onPointerUp: I,
|
|
407
|
-
onPointerCancel: Q,
|
|
408
|
-
onKeyDown: n
|
|
409
|
-
}
|
|
410
|
-
);
|
|
411
|
-
}
|
|
412
|
-
);
|
|
413
|
-
le.displayName = "Handle";
|
|
414
|
-
const De = {
|
|
415
|
-
id: "resizable",
|
|
416
|
-
capabilities: ["range_navigate"],
|
|
417
|
-
state: {},
|
|
418
|
-
actions: {},
|
|
419
|
-
domHooks: {
|
|
420
|
-
root: { attr: "data-component", value: "resizable" },
|
|
421
|
-
item: {
|
|
422
|
-
attr: "data-panel-id",
|
|
423
|
-
description: "Each Panel forwards its `id` to react-resizable-panels which emits it as `data-panel-id`."
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
export {
|
|
428
|
-
le as H,
|
|
429
|
-
oe as P,
|
|
430
|
-
se as R,
|
|
431
|
-
Me as a,
|
|
432
|
-
De as r,
|
|
433
|
-
ie as u
|
|
434
|
-
};
|
|
435
|
-
//# sourceMappingURL=resizable.agent-DBpPGNdy.js.map
|