@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,198 +0,0 @@
|
|
|
1
|
-
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as U, useId as y, useState as q } from "react";
|
|
3
|
-
import * as t from "@radix-ui/react-alert-dialog";
|
|
4
|
-
import * as b from "@radix-ui/react-radio-group";
|
|
5
|
-
import { c as E } from "./index-D2ZczOXr.js";
|
|
6
|
-
import { useTranslation as H } from "react-i18next";
|
|
7
|
-
import { B as w } from "./button-7mLWcMp_.js";
|
|
8
|
-
import { P as J } from "./progress-B4Of_pzz.js";
|
|
9
|
-
import { f as O } from "./payment-form-hcl-gGrp.js";
|
|
10
|
-
import { T as Q } from "./triangle-alert-CBPUIzQo.js";
|
|
11
|
-
import { C as W } from "./check-DPdL_Sm7.js";
|
|
12
|
-
const X = E(
|
|
13
|
-
[
|
|
14
|
-
"ds:fixed ds:z-[var(--z-modal)] ds:overflow-auto",
|
|
15
|
-
"ds:bg-[color:var(--popover)] ds:text-[color:var(--popover-foreground)]",
|
|
16
|
-
"ds:border ds:border-border ds:shadow-[var(--shadow-lg)]",
|
|
17
|
-
// forced-colors: keep the dialog boundary visible under Windows High
|
|
18
|
-
// Contrast, where `var(--border)` may collapse to system colours.
|
|
19
|
-
"ds:forced-colors:border-[CanvasText]",
|
|
20
|
-
"ds:focus:outline-none"
|
|
21
|
-
].join(" "),
|
|
22
|
-
{
|
|
23
|
-
variants: {
|
|
24
|
-
layout: {
|
|
25
|
-
centered: "ds:start-1/2 ds:top-1/2 ds:-translate-x-1/2 ds:-translate-y-1/2 ds:rtl:translate-x-1/2 ds:rounded-[var(--radius-md)] ds:max-w-[var(--dialog-width-xl)] ds:w-[calc(100vw-2rem)] ds:max-h-[90vh]",
|
|
26
|
-
sheet: "ds:inset-inline-0 ds:bottom-0 ds:w-full ds:max-h-[90vh] ds:rounded-t-[var(--radius-md)]"
|
|
27
|
-
},
|
|
28
|
-
density: {
|
|
29
|
-
compact: "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
30
|
-
full: "ds:ps-[var(--spacing-lg)] ds:pe-[var(--spacing-lg)] ds:pt-[var(--spacing-lg)] ds:pb-[var(--spacing-lg)]"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
defaultVariants: { layout: "centered", density: "full" }
|
|
34
|
-
}
|
|
35
|
-
), Y = U(
|
|
36
|
-
({
|
|
37
|
-
open: N,
|
|
38
|
-
onOpenChange: n,
|
|
39
|
-
plans: m,
|
|
40
|
-
selectedPlanId: p,
|
|
41
|
-
defaultSelectedPlanId: j,
|
|
42
|
-
onSelectedPlanChange: l,
|
|
43
|
-
usage: r,
|
|
44
|
-
onUpgrade: k,
|
|
45
|
-
onCancel: o,
|
|
46
|
-
title: z,
|
|
47
|
-
description: C,
|
|
48
|
-
layout: K = "centered",
|
|
49
|
-
density: R = "full",
|
|
50
|
-
className: A
|
|
51
|
-
}, F) => {
|
|
52
|
-
var g;
|
|
53
|
-
const { t: a, i18n: T } = H(), u = y(), v = y(), f = p !== void 0, [I, L] = q(
|
|
54
|
-
j ?? ((g = m[0]) == null ? void 0 : g.id) ?? ""
|
|
55
|
-
), c = f ? p ?? "" : I, P = (e) => {
|
|
56
|
-
f || L(e), l == null || l(e);
|
|
57
|
-
}, M = () => {
|
|
58
|
-
o == null || o(), n(!1);
|
|
59
|
-
}, V = () => {
|
|
60
|
-
c && k(c);
|
|
61
|
-
}, B = r ? Math.min(100, Math.max(0, r.used / Math.max(1, r.limit) * 100)) : 0, i = r ? r.used >= r.limit : !1;
|
|
62
|
-
return /* @__PURE__ */ s(t.Root, { open: N, onOpenChange: n, children: /* @__PURE__ */ d(t.Portal, { children: [
|
|
63
|
-
/* @__PURE__ */ s(
|
|
64
|
-
t.Overlay,
|
|
65
|
-
{
|
|
66
|
-
className: [
|
|
67
|
-
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
68
|
-
"ds:bg-[color:var(--foreground)]/40",
|
|
69
|
-
"ds:motion-safe:data-[state=open]:animate-in ds:motion-safe:data-[state=closed]:animate-out",
|
|
70
|
-
"ds:[.theme-accessible_&]:animate-none"
|
|
71
|
-
].join(" ")
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ d(
|
|
75
|
-
t.Content,
|
|
76
|
-
{
|
|
77
|
-
ref: F,
|
|
78
|
-
"aria-labelledby": u,
|
|
79
|
-
"aria-describedby": v,
|
|
80
|
-
className: X({ layout: K, density: R, className: A }),
|
|
81
|
-
"data-component": "freemium-paywall",
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ s(t.Title, { id: u, asChild: !0, children: /* @__PURE__ */ s("h2", { className: "type-title-card", children: z ?? a("ui.paywall.title") }) }),
|
|
84
|
-
/* @__PURE__ */ s(t.Description, { id: v, asChild: !0, children: /* @__PURE__ */ s("p", { className: "ds:mt-[var(--spacing-xs)] ds:text-[color:var(--muted-foreground)]", children: C ?? a("ui.paywall.description") }) }),
|
|
85
|
-
r ? /* @__PURE__ */ d("div", { className: "ds:mt-[var(--spacing-md)]", children: [
|
|
86
|
-
/* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:mb-[var(--spacing-xs)]", children: [
|
|
87
|
-
i ? /* @__PURE__ */ s(
|
|
88
|
-
Q,
|
|
89
|
-
{
|
|
90
|
-
"aria-hidden": "true",
|
|
91
|
-
className: "ds:size-4 ds:text-[color:var(--destructive)]"
|
|
92
|
-
}
|
|
93
|
-
) : null,
|
|
94
|
-
/* @__PURE__ */ s(
|
|
95
|
-
"span",
|
|
96
|
-
{
|
|
97
|
-
className: [
|
|
98
|
-
"type-body-sm",
|
|
99
|
-
i ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]"
|
|
100
|
-
].join(" "),
|
|
101
|
-
children: i ? a("ui.paywall.usageFull") : a("ui.paywall.usageLabel", {
|
|
102
|
-
used: r.used,
|
|
103
|
-
limit: r.limit
|
|
104
|
-
})
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
] }),
|
|
108
|
-
/* @__PURE__ */ s(
|
|
109
|
-
J,
|
|
110
|
-
{
|
|
111
|
-
value: B,
|
|
112
|
-
max: 100,
|
|
113
|
-
ariaLabel: a("ui.paywall.usageLabel", {
|
|
114
|
-
used: r.used,
|
|
115
|
-
limit: r.limit
|
|
116
|
-
}),
|
|
117
|
-
className: i ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : ""
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
] }) : null,
|
|
121
|
-
/* @__PURE__ */ s(
|
|
122
|
-
b.Root,
|
|
123
|
-
{
|
|
124
|
-
value: c,
|
|
125
|
-
onValueChange: P,
|
|
126
|
-
"aria-label": a("ui.paywall.title"),
|
|
127
|
-
className: "ds:mt-[var(--spacing-md)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
128
|
-
children: m.map((e) => {
|
|
129
|
-
const h = O(
|
|
130
|
-
e.priceAmount,
|
|
131
|
-
e.currency,
|
|
132
|
-
T.language
|
|
133
|
-
), x = e.perKey ? a(e.perKey) : void 0, D = x ? a("ui.paywall.pricePer", { price: h, period: x }) : h, _ = a(e.nameKey);
|
|
134
|
-
return /* @__PURE__ */ d(
|
|
135
|
-
b.Item,
|
|
136
|
-
{
|
|
137
|
-
value: e.id,
|
|
138
|
-
className: [
|
|
139
|
-
"ds:group ds:relative ds:flex ds:flex-col ds:items-stretch",
|
|
140
|
-
"ds:rounded-[var(--radius-md)] ds:border ds:border-border",
|
|
141
|
-
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]",
|
|
142
|
-
"ds:text-start ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
143
|
-
"ds:data-[state=checked]:border-[color:var(--primary)]",
|
|
144
|
-
"ds:data-[state=checked]:bg-[color:var(--primary)]/5",
|
|
145
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
146
|
-
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
147
|
-
].join(" "),
|
|
148
|
-
children: [
|
|
149
|
-
/* @__PURE__ */ d("span", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
150
|
-
/* @__PURE__ */ s("span", { className: "ds:font-semibold", children: _ }),
|
|
151
|
-
/* @__PURE__ */ s("span", { className: "ds:tabular-nums", children: D })
|
|
152
|
-
] }),
|
|
153
|
-
e.featuresKeys && e.featuresKeys.length > 0 ? /* @__PURE__ */ s(
|
|
154
|
-
"ul",
|
|
155
|
-
{
|
|
156
|
-
"aria-label": a("ui.paywall.features"),
|
|
157
|
-
className: "ds:mt-[var(--spacing-xs)] ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
158
|
-
children: e.featuresKeys.map((G, S) => /* @__PURE__ */ d(
|
|
159
|
-
"li",
|
|
160
|
-
{
|
|
161
|
-
className: "ds:flex ds:items-start ds:gap-[var(--spacing-xs)] type-body-sm",
|
|
162
|
-
children: [
|
|
163
|
-
/* @__PURE__ */ s(
|
|
164
|
-
W,
|
|
165
|
-
{
|
|
166
|
-
"aria-hidden": "true",
|
|
167
|
-
className: "ds:size-4 ds:shrink-0 ds:text-[color:var(--primary)] ds:mt-[1px]"
|
|
168
|
-
}
|
|
169
|
-
),
|
|
170
|
-
/* @__PURE__ */ s("span", { children: a(G) })
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
S
|
|
174
|
-
))
|
|
175
|
-
}
|
|
176
|
-
) : null
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
e.id
|
|
180
|
-
);
|
|
181
|
-
})
|
|
182
|
-
}
|
|
183
|
-
),
|
|
184
|
-
/* @__PURE__ */ d("div", { className: "ds:mt-[var(--spacing-lg)] ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:justify-end", children: [
|
|
185
|
-
/* @__PURE__ */ s(t.Cancel, { asChild: !0, children: /* @__PURE__ */ s(w, { intent: "outline", onClick: M, children: a("ui.paywall.notNow") }) }),
|
|
186
|
-
/* @__PURE__ */ s(t.Action, { asChild: !0, children: /* @__PURE__ */ s(w, { intent: "primary", onClick: V, children: a("ui.paywall.upgrade") }) })
|
|
187
|
-
] })
|
|
188
|
-
]
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
] }) });
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
Y.displayName = "FreemiumPaywall";
|
|
195
|
-
export {
|
|
196
|
-
Y as F
|
|
197
|
-
};
|
|
198
|
-
//# sourceMappingURL=freemium-paywall-CkefGLM_.js.map
|
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as U, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as J, useState as G, useMemo as H, useRef as Q, useCallback as l, useContext as Z, useLayoutEffect as $, Children as V, isValidElement as C, createContext as ee } from "react";
|
|
3
|
-
import { c as W } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as se } from "react-i18next";
|
|
5
|
-
const K = ee({
|
|
6
|
-
selection: "none",
|
|
7
|
-
selectedValues: /* @__PURE__ */ new Set(),
|
|
8
|
-
focusedValue: null,
|
|
9
|
-
disabled: !1,
|
|
10
|
-
enabledItemValues: [],
|
|
11
|
-
onItemSelect: () => {
|
|
12
|
-
},
|
|
13
|
-
onItemFocus: () => {
|
|
14
|
-
},
|
|
15
|
-
onItemKeyDown: () => {
|
|
16
|
-
},
|
|
17
|
-
registerItemRef: () => {
|
|
18
|
-
},
|
|
19
|
-
divider: "spaced"
|
|
20
|
-
}), te = W("ds:flex ds:flex-col ds:p-0 ds:m-0", {
|
|
21
|
-
variants: {
|
|
22
|
-
divider: {
|
|
23
|
-
spaced: "",
|
|
24
|
-
divided: "",
|
|
25
|
-
bordered: "ds:border ds:border-[color:var(--border)] ds:rounded-[var(--radius-md)] ds:overflow-hidden"
|
|
26
|
-
},
|
|
27
|
-
density: {
|
|
28
|
-
compact: "ds:gap-[var(--spacing-xs)]",
|
|
29
|
-
default: "ds:gap-[var(--spacing-sm)]",
|
|
30
|
-
relaxed: "ds:gap-[var(--spacing-md)]"
|
|
31
|
-
},
|
|
32
|
-
ordered: {
|
|
33
|
-
true: "ds:list-decimal ds:ps-[var(--spacing-lg)]",
|
|
34
|
-
false: "ds:list-none"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
defaultVariants: {
|
|
38
|
-
divider: "spaced",
|
|
39
|
-
density: "default",
|
|
40
|
-
ordered: !1
|
|
41
|
-
}
|
|
42
|
-
}), re = W(
|
|
43
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
44
|
-
{
|
|
45
|
-
variants: {
|
|
46
|
-
divider: {
|
|
47
|
-
spaced: "",
|
|
48
|
-
divided: "ds:[&:not(:last-child)]:[border-block-end:1px_solid_var(--border)]",
|
|
49
|
-
bordered: "ds:[&:not(:last-child)]:[border-block-end:1px_solid_var(--border)]"
|
|
50
|
-
},
|
|
51
|
-
interactive: {
|
|
52
|
-
// flex lives on the outer <div role="option"> so it doesn't suppress ::marker on <li>
|
|
53
|
-
true: [
|
|
54
|
-
"ds:flex ds:items-center ds:gap-x-[var(--spacing-sm)]",
|
|
55
|
-
"ds:min-h-[var(--min-target-size)] ds:cursor-pointer ds:select-none",
|
|
56
|
-
"ds:rounded-[var(--radius-sm)]",
|
|
57
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
58
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
59
|
-
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
60
|
-
].join(" "),
|
|
61
|
-
// no flex here — <li> keeps display:list-item so ::marker renders correctly
|
|
62
|
-
false: ""
|
|
63
|
-
},
|
|
64
|
-
selected: {
|
|
65
|
-
true: "",
|
|
66
|
-
false: ""
|
|
67
|
-
},
|
|
68
|
-
disabled: {
|
|
69
|
-
true: "",
|
|
70
|
-
false: ""
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
compoundVariants: [
|
|
74
|
-
{
|
|
75
|
-
interactive: !0,
|
|
76
|
-
selected: !1,
|
|
77
|
-
disabled: !1,
|
|
78
|
-
className: "ds:hover:bg-[color:var(--muted)]/20"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
interactive: !0,
|
|
82
|
-
selected: !0,
|
|
83
|
-
className: "ds:bg-[color:var(--primary)]/10"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
interactive: !0,
|
|
87
|
-
disabled: !0,
|
|
88
|
-
className: "ds:opacity-50 ds:cursor-not-allowed ds:pointer-events-none"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
defaultVariants: {
|
|
92
|
-
divider: "spaced",
|
|
93
|
-
interactive: !1,
|
|
94
|
-
selected: !1,
|
|
95
|
-
disabled: !1
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
function ie(s) {
|
|
100
|
-
const x = [];
|
|
101
|
-
return V.forEach(s, (g) => {
|
|
102
|
-
if (!C(g)) return;
|
|
103
|
-
const u = g.props;
|
|
104
|
-
typeof u.value == "string" && x.push({ value: u.value, disabled: !!u.disabled });
|
|
105
|
-
}), x;
|
|
106
|
-
}
|
|
107
|
-
const T = J(
|
|
108
|
-
({
|
|
109
|
-
as: s = "ul",
|
|
110
|
-
start: x,
|
|
111
|
-
divider: g = "spaced",
|
|
112
|
-
density: u = "default",
|
|
113
|
-
selection: N = "none",
|
|
114
|
-
value: v,
|
|
115
|
-
defaultValue: k,
|
|
116
|
-
onValueChange: c,
|
|
117
|
-
disabled: d = !1,
|
|
118
|
-
className: S,
|
|
119
|
-
children: a,
|
|
120
|
-
"aria-label": _,
|
|
121
|
-
...f
|
|
122
|
-
}, F) => {
|
|
123
|
-
const { t: O } = se(), p = N !== "none", I = N === "multiple", D = v !== void 0, [E, z] = G(() => k === void 0 ? [] : Array.isArray(k) ? k : [k]), b = H(() => {
|
|
124
|
-
if (D) {
|
|
125
|
-
const e = v;
|
|
126
|
-
return new Set(Array.isArray(e) ? e : [e]);
|
|
127
|
-
}
|
|
128
|
-
return new Set(E);
|
|
129
|
-
}, [D, v, E]), P = H(() => ie(a), [a]), o = H(
|
|
130
|
-
() => P.filter((e) => !e.disabled && !d).map((e) => e.value),
|
|
131
|
-
[P, d]
|
|
132
|
-
), [h, m] = G(null), L = Q(/* @__PURE__ */ new Map()), q = l((e, r) => {
|
|
133
|
-
r ? L.current.set(e, r) : L.current.delete(e);
|
|
134
|
-
}, []), y = l((e) => {
|
|
135
|
-
m(e), requestAnimationFrame(() => {
|
|
136
|
-
var r;
|
|
137
|
-
(r = L.current.get(e)) == null || r.focus();
|
|
138
|
-
});
|
|
139
|
-
}, []), w = l(
|
|
140
|
-
(e) => {
|
|
141
|
-
D || z(e), I ? c == null || c(e) : c == null || c(e[0] ?? "");
|
|
142
|
-
},
|
|
143
|
-
[D, I, c]
|
|
144
|
-
), R = l(
|
|
145
|
-
(e) => {
|
|
146
|
-
if (!d && p)
|
|
147
|
-
if (I) {
|
|
148
|
-
const r = [...b];
|
|
149
|
-
b.has(e) ? w(r.filter((t) => t !== e)) : w([...r, e]);
|
|
150
|
-
} else
|
|
151
|
-
b.has(e) ? w([]) : w([e]);
|
|
152
|
-
},
|
|
153
|
-
[d, p, I, b, w]
|
|
154
|
-
), M = l((e) => {
|
|
155
|
-
m(e);
|
|
156
|
-
}, []), B = l(
|
|
157
|
-
(e, r) => {
|
|
158
|
-
if (!p) return;
|
|
159
|
-
const t = o.indexOf(r);
|
|
160
|
-
switch (e.key) {
|
|
161
|
-
case "ArrowDown": {
|
|
162
|
-
e.preventDefault();
|
|
163
|
-
const n = o[t + 1];
|
|
164
|
-
n !== void 0 && y(n);
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
case "ArrowUp": {
|
|
168
|
-
e.preventDefault();
|
|
169
|
-
const n = o[t - 1];
|
|
170
|
-
n !== void 0 && y(n);
|
|
171
|
-
break;
|
|
172
|
-
}
|
|
173
|
-
case "Home": {
|
|
174
|
-
e.preventDefault();
|
|
175
|
-
const n = o[0];
|
|
176
|
-
n !== void 0 && y(n);
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
case "End": {
|
|
180
|
-
e.preventDefault();
|
|
181
|
-
const n = o[o.length - 1];
|
|
182
|
-
n !== void 0 && y(n);
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
case " ":
|
|
186
|
-
case "Enter": {
|
|
187
|
-
e.preventDefault(), R(r);
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
[p, o, y, R]
|
|
193
|
-
), A = {
|
|
194
|
-
selection: N,
|
|
195
|
-
selectedValues: b,
|
|
196
|
-
focusedValue: h,
|
|
197
|
-
disabled: d,
|
|
198
|
-
enabledItemValues: o,
|
|
199
|
-
onItemSelect: R,
|
|
200
|
-
onItemFocus: M,
|
|
201
|
-
onItemKeyDown: B,
|
|
202
|
-
registerItemRef: q,
|
|
203
|
-
divider: g
|
|
204
|
-
}, j = te({ divider: g, density: u, ordered: s === "ol", className: S });
|
|
205
|
-
if (p) {
|
|
206
|
-
const e = _ ?? O("ui.list.label", "List");
|
|
207
|
-
return /* @__PURE__ */ i(K.Provider, { value: A, children: /* @__PURE__ */ i(
|
|
208
|
-
"div",
|
|
209
|
-
{
|
|
210
|
-
ref: F,
|
|
211
|
-
role: "listbox",
|
|
212
|
-
"aria-label": e,
|
|
213
|
-
"aria-multiselectable": I ? !0 : void 0,
|
|
214
|
-
"aria-disabled": d ? !0 : void 0,
|
|
215
|
-
className: j,
|
|
216
|
-
"data-component": "list",
|
|
217
|
-
...f,
|
|
218
|
-
children: a
|
|
219
|
-
}
|
|
220
|
-
) });
|
|
221
|
-
}
|
|
222
|
-
return s === "ol" ? /* @__PURE__ */ i(K.Provider, { value: A, children: /* @__PURE__ */ i(
|
|
223
|
-
"ol",
|
|
224
|
-
{
|
|
225
|
-
ref: F,
|
|
226
|
-
role: "list",
|
|
227
|
-
start: x,
|
|
228
|
-
className: j,
|
|
229
|
-
"data-component": "list",
|
|
230
|
-
...f,
|
|
231
|
-
children: a
|
|
232
|
-
}
|
|
233
|
-
) }) : /* @__PURE__ */ i(K.Provider, { value: A, children: /* @__PURE__ */ i(
|
|
234
|
-
"ul",
|
|
235
|
-
{
|
|
236
|
-
ref: F,
|
|
237
|
-
role: "list",
|
|
238
|
-
className: j,
|
|
239
|
-
"data-component": "list",
|
|
240
|
-
...f,
|
|
241
|
-
children: a
|
|
242
|
-
}
|
|
243
|
-
) });
|
|
244
|
-
}
|
|
245
|
-
);
|
|
246
|
-
T.displayName = "List";
|
|
247
|
-
const X = J(
|
|
248
|
-
({
|
|
249
|
-
value: s,
|
|
250
|
-
leading: x,
|
|
251
|
-
title: g,
|
|
252
|
-
description: u,
|
|
253
|
-
trailing: N,
|
|
254
|
-
lineClamp: v,
|
|
255
|
-
disabled: k = !1,
|
|
256
|
-
className: c,
|
|
257
|
-
onClick: d,
|
|
258
|
-
onFocus: S,
|
|
259
|
-
onKeyDown: a,
|
|
260
|
-
..._
|
|
261
|
-
}, f) => {
|
|
262
|
-
const {
|
|
263
|
-
selection: F,
|
|
264
|
-
selectedValues: O,
|
|
265
|
-
focusedValue: p,
|
|
266
|
-
disabled: I,
|
|
267
|
-
enabledItemValues: D,
|
|
268
|
-
onItemSelect: E,
|
|
269
|
-
onItemFocus: z,
|
|
270
|
-
onItemKeyDown: b,
|
|
271
|
-
registerItemRef: P,
|
|
272
|
-
divider: o
|
|
273
|
-
} = Z(K), h = F !== "none", m = I || k, L = s !== void 0 ? O.has(s) : !1, q = s !== void 0 && p === s, y = s !== void 0 && D[0] === s, w = h ? p !== null ? q && !m ? 0 : -1 : y && !m ? 0 : -1 : void 0, R = Q(null);
|
|
274
|
-
$(() => {
|
|
275
|
-
const t = R.current;
|
|
276
|
-
t && (v != null ? t.style.setProperty("--list-item-clamp", String(v)) : t.style.removeProperty("--list-item-clamp"));
|
|
277
|
-
}, [v]);
|
|
278
|
-
const M = l(
|
|
279
|
-
(t) => {
|
|
280
|
-
s && P(s, t), typeof f == "function" ? f(t) : f && (f.current = t);
|
|
281
|
-
},
|
|
282
|
-
[s, P, f]
|
|
283
|
-
), B = l(
|
|
284
|
-
(t) => {
|
|
285
|
-
h && s && !m && E(s), d == null || d(t);
|
|
286
|
-
},
|
|
287
|
-
[h, s, m, E, d]
|
|
288
|
-
), A = l(
|
|
289
|
-
(t) => {
|
|
290
|
-
s && z(s), S == null || S(t);
|
|
291
|
-
},
|
|
292
|
-
[s, z, S]
|
|
293
|
-
), j = l(
|
|
294
|
-
(t) => {
|
|
295
|
-
s && b(t, s), a == null || a(t);
|
|
296
|
-
},
|
|
297
|
-
[s, b, a]
|
|
298
|
-
), e = re({
|
|
299
|
-
divider: o,
|
|
300
|
-
interactive: h,
|
|
301
|
-
selected: L,
|
|
302
|
-
disabled: m,
|
|
303
|
-
className: c
|
|
304
|
-
}), r = /* @__PURE__ */ U(Y, { children: [
|
|
305
|
-
x && /* @__PURE__ */ i("span", { className: "ds:shrink-0 ds:flex ds:items-center ds:justify-center", children: x }),
|
|
306
|
-
/* @__PURE__ */ U("div", { className: "ds:flex-1 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0", children: [
|
|
307
|
-
/* @__PURE__ */ i("span", { className: "ds:text-[color:var(--foreground)] ds:text-[length:var(--font-size-sm)] ds:font-medium ds:leading-[var(--line-height-base)] ds:[overflow-wrap:anywhere]", children: g }),
|
|
308
|
-
u && /* @__PURE__ */ i(
|
|
309
|
-
"span",
|
|
310
|
-
{
|
|
311
|
-
ref: R,
|
|
312
|
-
className: [
|
|
313
|
-
"ds:text-[color:var(--muted-foreground)] ds:text-[length:var(--font-size-xs)] ds:leading-[var(--line-height-base)]",
|
|
314
|
-
v != null ? "ds:[overflow:hidden] ds:[display:-webkit-box] ds:[-webkit-box-orient:vertical] ds:[-webkit-line-clamp:var(--list-item-clamp)]" : ""
|
|
315
|
-
].filter(Boolean).join(" "),
|
|
316
|
-
children: u
|
|
317
|
-
}
|
|
318
|
-
)
|
|
319
|
-
] }),
|
|
320
|
-
N && /* @__PURE__ */ i("span", { className: "ds:shrink-0 ds:flex ds:items-center ds:justify-center", children: N })
|
|
321
|
-
] });
|
|
322
|
-
return h ? /* @__PURE__ */ i(
|
|
323
|
-
"div",
|
|
324
|
-
{
|
|
325
|
-
ref: M,
|
|
326
|
-
role: "option",
|
|
327
|
-
"aria-selected": L,
|
|
328
|
-
"aria-disabled": m ? !0 : void 0,
|
|
329
|
-
tabIndex: w,
|
|
330
|
-
onClick: B,
|
|
331
|
-
onFocus: A,
|
|
332
|
-
onKeyDown: j,
|
|
333
|
-
className: e,
|
|
334
|
-
..._,
|
|
335
|
-
children: r
|
|
336
|
-
}
|
|
337
|
-
) : /* @__PURE__ */ i(
|
|
338
|
-
"li",
|
|
339
|
-
{
|
|
340
|
-
ref: M,
|
|
341
|
-
onClick: B,
|
|
342
|
-
onFocus: A,
|
|
343
|
-
onKeyDown: j,
|
|
344
|
-
className: e,
|
|
345
|
-
..._,
|
|
346
|
-
children: /* @__PURE__ */ i("div", { className: "ds:flex ds:items-center ds:gap-x-[var(--spacing-sm)]", children: r })
|
|
347
|
-
}
|
|
348
|
-
);
|
|
349
|
-
}
|
|
350
|
-
);
|
|
351
|
-
X.displayName = "List.Item";
|
|
352
|
-
const le = Object.assign(T, {
|
|
353
|
-
Root: T,
|
|
354
|
-
Item: X
|
|
355
|
-
});
|
|
356
|
-
export {
|
|
357
|
-
le as L
|
|
358
|
-
};
|
|
359
|
-
//# sourceMappingURL=list-B1ozIjQe.js.map
|