@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,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as he, useId as ve, useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
1
|
+
import { jsxs as d, jsx as r, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as he, useId as ve, useRef as H, useCallback as K, useState as be, useLayoutEffect as ye, useImperativeHandle as xe } from "react";
|
|
3
|
+
import { c as Ie } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Ce } from "react-i18next";
|
|
5
5
|
import { I as W } from "./icon-button-Wnnde5lc.js";
|
|
6
|
-
import { c as
|
|
7
|
-
import { C as
|
|
8
|
-
import { S as
|
|
6
|
+
import { c as Ne } from "./createLucideIcon-CrFbzy84.js";
|
|
7
|
+
import { C as ke } from "./circle-alert-ChA9opNA.js";
|
|
8
|
+
import { S as ze } from "./send-CySZIRPJ.js";
|
|
9
9
|
/**
|
|
10
10
|
* @license lucide-react v1.8.0 - ISC
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the ISC license.
|
|
13
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
const
|
|
15
|
+
const we = [
|
|
16
16
|
[
|
|
17
17
|
"path",
|
|
18
18
|
{
|
|
@@ -20,7 +20,7 @@ const ze = [
|
|
|
20
20
|
key: "1miecu"
|
|
21
21
|
}
|
|
22
22
|
]
|
|
23
|
-
],
|
|
23
|
+
], Fe = Ne("paperclip", we), He = Ie(
|
|
24
24
|
[
|
|
25
25
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full",
|
|
26
26
|
// Soft drop-shadow + transparent border replaces a flat
|
|
@@ -44,96 +44,122 @@ const ze = [
|
|
|
44
44
|
defaultVariants: { size: "md" }
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
function
|
|
47
|
+
function Te(c, u) {
|
|
48
48
|
if (typeof Intl < "u" && typeof Intl.Segmenter == "function")
|
|
49
49
|
try {
|
|
50
|
-
const
|
|
50
|
+
const p = new Intl.Segmenter(u, { granularity: "grapheme" });
|
|
51
51
|
let t = 0;
|
|
52
|
-
for (const
|
|
52
|
+
for (const T of p.segment(c)) t += 1;
|
|
53
53
|
return t;
|
|
54
54
|
} catch {
|
|
55
55
|
}
|
|
56
|
-
return Array.from(
|
|
56
|
+
return Array.from(c).length;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const Ve = he(
|
|
59
59
|
({
|
|
60
|
-
size:
|
|
61
|
-
value:
|
|
62
|
-
defaultValue:
|
|
60
|
+
size: c = "md",
|
|
61
|
+
value: u,
|
|
62
|
+
defaultValue: p,
|
|
63
63
|
maxLength: t,
|
|
64
|
-
submitOnEnter:
|
|
64
|
+
submitOnEnter: T = !1,
|
|
65
65
|
minRows: y = 1,
|
|
66
|
-
maxRows:
|
|
66
|
+
maxRows: V = 8,
|
|
67
67
|
onSubmit: x,
|
|
68
|
-
onAttach:
|
|
68
|
+
onAttach: f,
|
|
69
69
|
accept: Y,
|
|
70
|
-
disabled:
|
|
70
|
+
disabled: m,
|
|
71
71
|
toolbar: q,
|
|
72
|
-
label:
|
|
72
|
+
label: j,
|
|
73
73
|
placeholder: G,
|
|
74
74
|
className: J,
|
|
75
75
|
onChange: I,
|
|
76
76
|
onKeyDown: C,
|
|
77
77
|
onCompositionStart: N,
|
|
78
78
|
onCompositionEnd: k,
|
|
79
|
-
id:
|
|
80
|
-
...
|
|
81
|
-
},
|
|
82
|
-
const { t:
|
|
79
|
+
id: B,
|
|
80
|
+
...L
|
|
81
|
+
}, O) => {
|
|
82
|
+
const { t: i, i18n: Q } = Ce(), U = ve(), g = H(!1), E = H(null), z = H(null), X = K(
|
|
83
83
|
(e) => {
|
|
84
|
-
|
|
84
|
+
z.current = e;
|
|
85
85
|
},
|
|
86
|
-
[
|
|
87
|
-
),
|
|
88
|
-
String(
|
|
89
|
-
),
|
|
90
|
-
const e =
|
|
86
|
+
[]
|
|
87
|
+
), a = u !== void 0, [Z, h] = be(
|
|
88
|
+
String(p ?? "")
|
|
89
|
+
), s = a ? String(u) : Z, w = Te(s, Q.language), v = typeof t == "number" && t > 0, D = v ? Math.max(0, t - w) : 0, A = v && w > t * 0.9, o = v && w >= t, M = K(() => {
|
|
90
|
+
const e = z.current;
|
|
91
91
|
if (!e) return;
|
|
92
|
-
const
|
|
92
|
+
const n = window.getComputedStyle(e), b = parseFloat(n.lineHeight) || 24, de = parseFloat(n.paddingTop) || 0, ce = parseFloat(n.paddingBottom) || 0, ue = parseFloat(n.borderTopWidth) || 0, pe = parseFloat(n.borderBottomWidth) || 0, R = de + ce + ue + pe, fe = b * y + R, _ = b * V + R;
|
|
93
93
|
e.style.height = "auto";
|
|
94
94
|
const me = Math.max(fe, Math.min(e.scrollHeight, _));
|
|
95
95
|
e.style.height = `${me}px`, e.style.overflowY = e.scrollHeight > _ ? "auto" : "hidden";
|
|
96
|
-
}, [y,
|
|
96
|
+
}, [y, V]);
|
|
97
97
|
ye(() => {
|
|
98
|
-
|
|
99
|
-
}, [
|
|
98
|
+
M();
|
|
99
|
+
}, [M, s]);
|
|
100
100
|
const ee = (e) => {
|
|
101
|
-
|
|
101
|
+
a || h(e.target.value), !g.current && (I == null || I(e));
|
|
102
102
|
}, te = (e) => {
|
|
103
|
-
|
|
103
|
+
g.current = !0, N == null || N(e);
|
|
104
104
|
}, se = (e) => {
|
|
105
|
-
|
|
106
|
-
}, re = (e) => e.nativeEvent.isComposing || e.keyCode === 229 ||
|
|
107
|
-
!
|
|
108
|
-
}
|
|
105
|
+
g.current = !1, k == null || k(e);
|
|
106
|
+
}, re = (e) => e.nativeEvent.isComposing || e.keyCode === 229 || g.current, F = () => {
|
|
107
|
+
!s.trim() || m || o || (x == null || x(s), a || h(""));
|
|
108
|
+
};
|
|
109
|
+
xe(
|
|
110
|
+
O,
|
|
111
|
+
() => ({
|
|
112
|
+
getValue: () => s,
|
|
113
|
+
isEmpty: () => !s.trim(),
|
|
114
|
+
setValue: (e) => {
|
|
115
|
+
a || h(e);
|
|
116
|
+
},
|
|
117
|
+
clear: () => {
|
|
118
|
+
a || h("");
|
|
119
|
+
},
|
|
120
|
+
submit: () => {
|
|
121
|
+
F();
|
|
122
|
+
},
|
|
123
|
+
focus: () => {
|
|
124
|
+
var e;
|
|
125
|
+
(e = z.current) == null || e.focus();
|
|
126
|
+
}
|
|
127
|
+
}),
|
|
128
|
+
// `submit` is a local closure that always sees the latest currentValue
|
|
129
|
+
// via React's render cycle — depend on currentValue + isControlled so
|
|
130
|
+
// the handle picks up new values across renders.
|
|
131
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
132
|
+
[s, a]
|
|
133
|
+
);
|
|
134
|
+
const ae = (e) => {
|
|
109
135
|
if (C == null || C(e), !e.defaultPrevented && !re(e) && e.key === "Enter") {
|
|
110
|
-
const
|
|
111
|
-
(
|
|
136
|
+
const n = e.metaKey || e.ctrlKey, b = T && !e.shiftKey;
|
|
137
|
+
(n || b) && (e.preventDefault(), F());
|
|
112
138
|
}
|
|
113
|
-
},
|
|
139
|
+
}, ne = () => {
|
|
114
140
|
var e;
|
|
115
|
-
(e =
|
|
141
|
+
(e = E.current) == null || e.click();
|
|
116
142
|
}, ie = (e) => {
|
|
117
|
-
e.target.files && e.target.files.length > 0 && (
|
|
118
|
-
},
|
|
119
|
-
return /* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
143
|
+
e.target.files && e.target.files.length > 0 && (f == null || f(e.target.files)), e.target.value = "";
|
|
144
|
+
}, l = B ?? U, P = `${l}-label`, S = v ? `${l}-counter` : void 0, $ = `${l}-hint`, oe = G ?? i("chat.input.placeholder"), le = j ?? i("chat.prompt");
|
|
145
|
+
return /* @__PURE__ */ d("div", { "data-component": "chat-input", "data-component-id": B, className: He({ size: c, className: J }), children: [
|
|
146
|
+
/* @__PURE__ */ r("label", { id: P, htmlFor: l, className: j ? "type-label ds:ps-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)]" : "ds:sr-only", children: le }),
|
|
147
|
+
/* @__PURE__ */ r(
|
|
122
148
|
"textarea",
|
|
123
149
|
{
|
|
124
150
|
ref: X,
|
|
125
|
-
id:
|
|
126
|
-
value:
|
|
127
|
-
defaultValue:
|
|
128
|
-
disabled:
|
|
151
|
+
id: l,
|
|
152
|
+
value: a ? s : void 0,
|
|
153
|
+
defaultValue: a ? void 0 : p,
|
|
154
|
+
disabled: m,
|
|
129
155
|
rows: y,
|
|
130
156
|
maxLength: t,
|
|
131
157
|
placeholder: oe,
|
|
132
158
|
"aria-labelledby": P,
|
|
133
159
|
"aria-describedby": [S, $].filter(Boolean).join(" ") || void 0,
|
|
134
|
-
"aria-invalid":
|
|
160
|
+
"aria-invalid": o || void 0,
|
|
135
161
|
onChange: ee,
|
|
136
|
-
onKeyDown:
|
|
162
|
+
onKeyDown: ae,
|
|
137
163
|
onCompositionStart: te,
|
|
138
164
|
onCompositionEnd: se,
|
|
139
165
|
className: [
|
|
@@ -151,15 +177,15 @@ const Te = he(
|
|
|
151
177
|
"ds:rounded-[var(--radius-sm)]",
|
|
152
178
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
153
179
|
].join(" "),
|
|
154
|
-
...
|
|
180
|
+
...L
|
|
155
181
|
}
|
|
156
182
|
),
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
|
|
159
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
|
|
184
|
+
f ? /* @__PURE__ */ d(ge, { children: [
|
|
185
|
+
/* @__PURE__ */ r(
|
|
160
186
|
"input",
|
|
161
187
|
{
|
|
162
|
-
ref:
|
|
188
|
+
ref: E,
|
|
163
189
|
type: "file",
|
|
164
190
|
className: "ds:sr-only",
|
|
165
191
|
multiple: !0,
|
|
@@ -167,21 +193,21 @@ const Te = he(
|
|
|
167
193
|
onChange: ie
|
|
168
194
|
}
|
|
169
195
|
),
|
|
170
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ r(
|
|
171
197
|
W,
|
|
172
198
|
{
|
|
173
|
-
icon: /* @__PURE__ */
|
|
174
|
-
"aria-label":
|
|
199
|
+
icon: /* @__PURE__ */ r(Fe, {}),
|
|
200
|
+
"aria-label": i("chat.input.attach"),
|
|
175
201
|
intent: "ghost",
|
|
176
202
|
size: "sm",
|
|
177
|
-
onClick:
|
|
178
|
-
disabled:
|
|
203
|
+
onClick: ne,
|
|
204
|
+
disabled: m
|
|
179
205
|
}
|
|
180
206
|
)
|
|
181
207
|
] }) : null,
|
|
182
208
|
q,
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
A ? /* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ d("div", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
210
|
+
A ? /* @__PURE__ */ d(
|
|
185
211
|
"span",
|
|
186
212
|
{
|
|
187
213
|
id: S,
|
|
@@ -189,28 +215,28 @@ const Te = he(
|
|
|
189
215
|
className: [
|
|
190
216
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
191
217
|
"type-meta ds:tabular-nums",
|
|
192
|
-
|
|
218
|
+
o ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]"
|
|
193
219
|
].join(" "),
|
|
194
220
|
children: [
|
|
195
|
-
|
|
221
|
+
o ? (
|
|
196
222
|
// Icon pairs with --destructive colour so the at-limit
|
|
197
223
|
// state is not conveyed by hue alone (WCAG 1.4.1).
|
|
198
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ r(ke, { "aria-hidden": "true", className: "ds:size-3.5" })
|
|
199
225
|
) : null,
|
|
200
|
-
|
|
226
|
+
i("chat.input.remaining", { count: D })
|
|
201
227
|
]
|
|
202
228
|
}
|
|
203
229
|
) : null,
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ r("span", { id: $, className: "ds:sr-only", children: i("chat.input.sendHint") }),
|
|
231
|
+
/* @__PURE__ */ r(
|
|
206
232
|
W,
|
|
207
233
|
{
|
|
208
|
-
icon: /* @__PURE__ */
|
|
209
|
-
"aria-label":
|
|
234
|
+
icon: /* @__PURE__ */ r(ze, {}),
|
|
235
|
+
"aria-label": i("chat.send"),
|
|
210
236
|
intent: "primary",
|
|
211
237
|
size: "sm",
|
|
212
|
-
disabled:
|
|
213
|
-
onClick:
|
|
238
|
+
disabled: m || !s.trim() || o,
|
|
239
|
+
onClick: F,
|
|
214
240
|
"aria-keyshortcuts": "Meta+Enter Control+Enter"
|
|
215
241
|
}
|
|
216
242
|
)
|
|
@@ -219,8 +245,8 @@ const Te = he(
|
|
|
219
245
|
] });
|
|
220
246
|
}
|
|
221
247
|
);
|
|
222
|
-
|
|
248
|
+
Ve.displayName = "ChatInput";
|
|
223
249
|
export {
|
|
224
|
-
|
|
250
|
+
Ve as C
|
|
225
251
|
};
|
|
226
|
-
//# sourceMappingURL=chat-input-
|
|
252
|
+
//# sourceMappingURL=chat-input-C_tMQv92.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
id: "chat-input",
|
|
3
|
+
capabilities: ["edit_inline", "submit"],
|
|
4
|
+
state: {
|
|
5
|
+
value: {
|
|
6
|
+
type: "string",
|
|
7
|
+
descriptionKey: "ui.agent.chatInput.state.value",
|
|
8
|
+
description: "Current text in the composer.",
|
|
9
|
+
read: (t) => t.getValue()
|
|
10
|
+
},
|
|
11
|
+
isEmpty: {
|
|
12
|
+
type: "boolean",
|
|
13
|
+
descriptionKey: "ui.agent.chatInput.state.isEmpty",
|
|
14
|
+
description: "True when the composer has no text.",
|
|
15
|
+
read: (t) => t.isEmpty()
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
actions: {
|
|
19
|
+
set_value: {
|
|
20
|
+
safety: "write",
|
|
21
|
+
argsType: "{ value: string }",
|
|
22
|
+
descriptionKey: "ui.agent.chatInput.actions.setValue",
|
|
23
|
+
description: "Replace the composer text.",
|
|
24
|
+
invoke: (t, e) => {
|
|
25
|
+
t.setValue(e.value);
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
clear: {
|
|
29
|
+
safety: "destructive",
|
|
30
|
+
descriptionKey: "ui.agent.chatInput.actions.clear",
|
|
31
|
+
description: "Clear the composer. Irreversible from the same UI.",
|
|
32
|
+
invoke: (t) => {
|
|
33
|
+
t.clear();
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
submit: {
|
|
37
|
+
safety: "write",
|
|
38
|
+
descriptionKey: "ui.agent.chatInput.actions.submit",
|
|
39
|
+
description: "Submit the current composer state via onSubmit.",
|
|
40
|
+
invoke: (t) => {
|
|
41
|
+
t.submit();
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
focus: {
|
|
45
|
+
safety: "read",
|
|
46
|
+
descriptionKey: "ui.agent.chatInput.actions.focus",
|
|
47
|
+
description: "Move keyboard focus into the textarea.",
|
|
48
|
+
invoke: (t) => {
|
|
49
|
+
t.focus();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
domHooks: {
|
|
54
|
+
root: {
|
|
55
|
+
attr: "data-component",
|
|
56
|
+
value: "chat-input",
|
|
57
|
+
description: "Marks the ChatInput wrapper."
|
|
58
|
+
},
|
|
59
|
+
instanceId: {
|
|
60
|
+
attr: "data-component-id",
|
|
61
|
+
sourceProp: "id",
|
|
62
|
+
description: "Sourced from the id prop."
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
i as c
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=chat-input.agent-Bsz3ckGa.js.map
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { jsxs as G, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as K, useContext as O, forwardRef as T, useId as A, useState as B, useRef as F, useMemo as H } from "react";
|
|
3
|
+
import * as x from "@radix-ui/react-checkbox";
|
|
4
|
+
import { c as V } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { T as W } from "./tooltip-DHik5yRI.js";
|
|
6
|
+
import { u as C } from "./registry-C9nwlNyL.js";
|
|
7
|
+
const D = K(null);
|
|
8
|
+
function P() {
|
|
9
|
+
return O(D);
|
|
10
|
+
}
|
|
11
|
+
const q = {
|
|
12
|
+
id: "checkbox",
|
|
13
|
+
capabilities: ["select_single"],
|
|
14
|
+
state: {
|
|
15
|
+
checked: {
|
|
16
|
+
type: 'boolean | "indeterminate"',
|
|
17
|
+
descriptionKey: "ui.agent.checkbox.state.checked",
|
|
18
|
+
description: "Current checked state.",
|
|
19
|
+
read: (t) => t.getChecked()
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
actions: {
|
|
23
|
+
set_checked: {
|
|
24
|
+
safety: "write",
|
|
25
|
+
argsType: '{ checked: boolean | "indeterminate" }',
|
|
26
|
+
descriptionKey: "ui.agent.checkbox.actions.setChecked",
|
|
27
|
+
description: "Set the checked state to a specific value.",
|
|
28
|
+
invoke: (t, a) => {
|
|
29
|
+
t.setChecked(a.checked);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
toggle: {
|
|
33
|
+
safety: "write",
|
|
34
|
+
descriptionKey: "ui.agent.checkbox.actions.toggle",
|
|
35
|
+
description: "Flip the checked state between checked and unchecked.",
|
|
36
|
+
invoke: (t) => {
|
|
37
|
+
t.toggle();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
domHooks: {
|
|
42
|
+
root: {
|
|
43
|
+
attr: "data-component",
|
|
44
|
+
value: "checkbox",
|
|
45
|
+
description: "Marks the Checkbox wrapper."
|
|
46
|
+
},
|
|
47
|
+
instanceId: {
|
|
48
|
+
attr: "data-component-id",
|
|
49
|
+
sourceProp: "id",
|
|
50
|
+
description: "Sourced from the id prop."
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}, v = [
|
|
54
|
+
"ds:[stroke-dasharray:1] ds:[stroke-dashoffset:1]",
|
|
55
|
+
"ds:animate-[checkbox-indicator-draw_var(--animation-duration)_ease-out_forwards]"
|
|
56
|
+
].join(" ");
|
|
57
|
+
function E({ className: t }) {
|
|
58
|
+
return /* @__PURE__ */ i(
|
|
59
|
+
"svg",
|
|
60
|
+
{
|
|
61
|
+
viewBox: "0 0 24 24",
|
|
62
|
+
fill: "none",
|
|
63
|
+
stroke: "currentColor",
|
|
64
|
+
strokeWidth: "3",
|
|
65
|
+
strokeLinecap: "round",
|
|
66
|
+
strokeLinejoin: "round",
|
|
67
|
+
"aria-hidden": "true",
|
|
68
|
+
"data-slot": "checkbox-check-icon",
|
|
69
|
+
className: t,
|
|
70
|
+
children: /* @__PURE__ */ i("path", { pathLength: "1", d: "M5 12l5 5L20 7", className: v })
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
function J({ className: t }) {
|
|
75
|
+
return /* @__PURE__ */ i(
|
|
76
|
+
"svg",
|
|
77
|
+
{
|
|
78
|
+
viewBox: "0 0 24 24",
|
|
79
|
+
fill: "none",
|
|
80
|
+
stroke: "currentColor",
|
|
81
|
+
strokeWidth: "3",
|
|
82
|
+
strokeLinecap: "round",
|
|
83
|
+
"aria-hidden": "true",
|
|
84
|
+
"data-slot": "checkbox-indeterminate-icon",
|
|
85
|
+
className: t,
|
|
86
|
+
children: /* @__PURE__ */ i("path", { pathLength: "1", d: "M5 12h14", className: v })
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
const Q = V(
|
|
91
|
+
[
|
|
92
|
+
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
93
|
+
"ds:border ds:border-border ds:rounded-[var(--radius-sm)] ds:bg-background",
|
|
94
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
95
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
96
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
97
|
+
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
98
|
+
"ds:data-[state=checked]:bg-primary ds:data-[state=checked]:border-primary ds:data-[state=checked]:text-primary-foreground",
|
|
99
|
+
"ds:data-[state=indeterminate]:bg-primary ds:data-[state=indeterminate]:border-primary ds:data-[state=indeterminate]:text-primary-foreground",
|
|
100
|
+
'ds:relative ds:before:absolute ds:before:inset-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[""]'
|
|
101
|
+
].join(" "),
|
|
102
|
+
{
|
|
103
|
+
variants: {
|
|
104
|
+
size: {
|
|
105
|
+
sm: "ds:size-3.5",
|
|
106
|
+
md: "ds:size-4",
|
|
107
|
+
lg: "ds:size-5"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
defaultVariants: {
|
|
111
|
+
size: "md"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
), U = T(
|
|
115
|
+
({
|
|
116
|
+
label: t,
|
|
117
|
+
checked: a,
|
|
118
|
+
onCheckedChange: s,
|
|
119
|
+
size: m = "md",
|
|
120
|
+
disabled: y,
|
|
121
|
+
disabledReason: b,
|
|
122
|
+
name: w,
|
|
123
|
+
value: r,
|
|
124
|
+
id: f,
|
|
125
|
+
className: I,
|
|
126
|
+
...N
|
|
127
|
+
}, z) => {
|
|
128
|
+
const j = A(), h = f ?? j, e = P(), d = e !== null && r !== void 0, [L, p] = B(a ?? !1), c = a !== void 0, l = d ? e.value.has(r) : c ? a : L, R = d ? () => e.toggle(r) : (o) => {
|
|
129
|
+
c || p(o), s == null || s(o);
|
|
130
|
+
}, _ = (e == null ? void 0 : e.name) ?? w, u = (e == null ? void 0 : e.disabled) || y, n = F(
|
|
131
|
+
l ?? !1
|
|
132
|
+
);
|
|
133
|
+
n.current = l ?? !1;
|
|
134
|
+
const M = H(
|
|
135
|
+
() => ({
|
|
136
|
+
getChecked: () => n.current,
|
|
137
|
+
setChecked: (o) => {
|
|
138
|
+
if (d) {
|
|
139
|
+
(n.current === !0 || n.current === "indeterminate") !== (o === !0 || o === "indeterminate") && e.toggle(r);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
c || p(o), s == null || s(o);
|
|
143
|
+
},
|
|
144
|
+
toggle: () => {
|
|
145
|
+
if (d) {
|
|
146
|
+
e.toggle(r);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const o = !(n.current === !0 || n.current === "indeterminate");
|
|
150
|
+
c || p(o), s == null || s(o);
|
|
151
|
+
}
|
|
152
|
+
}),
|
|
153
|
+
[d, e, r, c, s]
|
|
154
|
+
);
|
|
155
|
+
C(q, M, f);
|
|
156
|
+
const k = m === "sm" ? "ds:size-3" : m === "lg" ? "ds:size-4" : "ds:size-3.5", S = [
|
|
157
|
+
"type-label ds:text-foreground ds:select-none",
|
|
158
|
+
u ? "ds:cursor-not-allowed ds:opacity-50" : "ds:cursor-pointer"
|
|
159
|
+
].join(" "), g = /* @__PURE__ */ G(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
"data-component": "checkbox",
|
|
163
|
+
"data-component-id": f,
|
|
164
|
+
"data-option-id": r,
|
|
165
|
+
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
166
|
+
children: [
|
|
167
|
+
/* @__PURE__ */ i(
|
|
168
|
+
x.Root,
|
|
169
|
+
{
|
|
170
|
+
ref: z,
|
|
171
|
+
id: h,
|
|
172
|
+
checked: l,
|
|
173
|
+
onCheckedChange: R,
|
|
174
|
+
disabled: u,
|
|
175
|
+
"aria-disabled": u || void 0,
|
|
176
|
+
name: _,
|
|
177
|
+
value: r,
|
|
178
|
+
className: Q({ size: m, className: I }),
|
|
179
|
+
...N,
|
|
180
|
+
children: /* @__PURE__ */ i(x.Indicator, { children: l === "indeterminate" ? /* @__PURE__ */ i(J, { className: k }) : /* @__PURE__ */ i(E, { className: k }) })
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ i("label", { htmlFor: h, className: S, children: t })
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
return u && b ? /* @__PURE__ */ i(W, { label: b, children: g }) : g;
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
U.displayName = "Checkbox";
|
|
191
|
+
export {
|
|
192
|
+
U as C,
|
|
193
|
+
D as a,
|
|
194
|
+
P as u
|
|
195
|
+
};
|
|
196
|
+
//# sourceMappingURL=checkbox-CtPM6Rup.js.map
|