@alfadocs/ui-kit 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{accordion-B6fyINUk.js → accordion-BEnrZmAn.js} +34 -32
- package/dist/_chunks/accordion.agent-BTjeO1Sx.js +52 -0
- package/dist/_chunks/{agenda-card-DIWDvWum.js → agenda-card-DwLIxgi7.js} +2 -1
- package/dist/_chunks/agenda-card.agent-B_R47-c9.js +22 -0
- package/dist/_chunks/agenda-tray-DUvengGQ.js +178 -0
- package/dist/_chunks/ai-prompt-input.agent-0NHYLTWD.js +476 -0
- package/dist/_chunks/{aspect-ratio-CxsdG8vk.js → aspect-ratio-DeSNzASA.js} +12 -12
- package/dist/_chunks/audio-recorder.agent--VKeykUp.js +458 -0
- package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +432 -0
- package/dist/_chunks/{balance-cell-renderer-BWm3knY9.js → balance-cell-renderer-5CA7zpAi.js} +3 -3
- package/dist/_chunks/breadcrumb.agent-GM2hAKFX.js +371 -0
- package/dist/_chunks/{chart.agent-BdS-_8MO.js → chart.agent-_pRYS17d.js} +112 -105
- package/dist/_chunks/{chat-container-Cm3SlR2p.js → chat-container-Dl0Kfy5a.js} +33 -32
- package/dist/_chunks/{chat-container.agent-Dhw9xCJt.js → chat-container.agent-CM4WModE.js} +9 -4
- package/dist/_chunks/{chat-input-DreOPP8A.js → chat-input-C_tMQv92.js} +108 -82
- package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +69 -0
- package/dist/_chunks/checkbox-CtPM6Rup.js +196 -0
- package/dist/_chunks/checkbox-group-BTdEB6Yo.js +208 -0
- package/dist/_chunks/collapsible.agent-DkS1jVyn.js +149 -0
- package/dist/_chunks/{color-picker-e9PmpaGH.js → color-picker-94qcBZqZ.js} +234 -184
- package/dist/_chunks/combobox.agent-CAvUkkIe.js +410 -0
- package/dist/_chunks/{command-palette.agent-js2rxgeR.js → command-palette.agent-HatEt_EM.js} +161 -121
- package/dist/_chunks/date-picker-BqPTn7bO.js +1813 -0
- package/dist/_chunks/date-range-picker-B2hGsffw.js +274 -0
- package/dist/_chunks/date-time-picker-Bzt0S8yO.js +293 -0
- package/dist/_chunks/dialog.agent-Daf1TTko.js +179 -0
- package/dist/_chunks/{dropdown-menu-Cw3EyPZv.js → dropdown-menu-C7AZipNz.js} +75 -71
- package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +43 -0
- package/dist/_chunks/{file-upload.agent-B9AN82LA.js → file-upload.agent-DJaH2dHg.js} +275 -243
- package/dist/_chunks/freemium-paywall.agent-_nQqLyRF.js +260 -0
- package/dist/_chunks/{leo-sidebar-nbHib2D-.js → leo-sidebar-BwINPdix.js} +6 -6
- package/dist/_chunks/link-QheANk74.js +121 -0
- package/dist/_chunks/list.agent-D0iWt4VI.js +420 -0
- package/dist/_chunks/{message-card-qAp2-WQK.js → message-card-qhoGv947.js} +2 -1
- package/dist/_chunks/message-card.agent-4IeIgrnJ.js +22 -0
- package/dist/_chunks/message-tray-xHUCra-Y.js +419 -0
- package/dist/_chunks/{multi-select.agent-CNsyW3n9.js → multi-select.agent-Do6CeQUT.js} +239 -179
- package/dist/_chunks/navigation-menu.agent-D69ND6Qq.js +266 -0
- package/dist/_chunks/{notification-card-BF2_veHy.js → notification-card-CsVEYJE-.js} +13 -12
- package/dist/_chunks/notification-card.agent-Rqt3ofk9.js +22 -0
- package/dist/_chunks/notification-tray-DTXMq42J.js +444 -0
- package/dist/_chunks/number-input-fvGmnRy9.js +333 -0
- package/dist/_chunks/otp-input-EglXOUue.js +257 -0
- package/dist/_chunks/pagination.agent-BkZQl45y.js +422 -0
- package/dist/_chunks/password-input-D6kuYXmr.js +304 -0
- package/dist/_chunks/{patient-shell-7cXqIMFg.js → patient-shell-BRmrrUUW.js} +3 -3
- package/dist/_chunks/{payment-form-hcl-gGrp.js → payment-form-BWaXas8z.js} +120 -118
- package/dist/_chunks/{payment-form.agent-BkEnRerR.js → payment-form.agent-kuIfodCj.js} +7 -2
- package/dist/_chunks/{pdf-viewer.agent-CfIHhcHx.js → pdf-viewer.agent-BaGEDheA.js} +358 -351
- package/dist/_chunks/phone-input-C8Op4sEc.js +513 -0
- package/dist/_chunks/popover-kFN8s84V.js +229 -0
- package/dist/_chunks/popover.agent-K_d1cfbj.js +39 -0
- package/dist/_chunks/privacy-lock.agent-C1i1-T58.js +185 -0
- package/dist/_chunks/progress-wNsqkw8I.js +253 -0
- package/dist/_chunks/progress.agent-C68rDOXL.js +27 -0
- package/dist/_chunks/{radio-cs8N1wJi.js → radio-DvF59ThA.js} +14 -13
- package/dist/_chunks/radio-group-Cz1a4QCA.js +152 -0
- package/dist/_chunks/recaptcha-widget.agent-BGHpU5zD.js +183 -0
- package/dist/_chunks/resizable.agent-CMwZzvsi.js +456 -0
- package/dist/_chunks/{rich-text-editor.agent-COSb5_2D.js → rich-text-editor.agent-DnE125Tz.js} +221 -214
- package/dist/_chunks/search-bar.agent-DxFAxctc.js +562 -0
- package/dist/_chunks/search-input-Xw3cdWXW.js +227 -0
- package/dist/_chunks/search-input.agent-CfZvViOd.js +69 -0
- package/dist/_chunks/select-DY1Cb2Tg.js +410 -0
- package/dist/_chunks/{sheet-BhNpLHc9.js → sheet-B9kH9pcI.js} +55 -54
- package/dist/_chunks/sheet.agent-QAyTOxgk.js +46 -0
- package/dist/_chunks/{sidebar-OVzwN3jE.js → sidebar-CHF5xr_P.js} +188 -185
- package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +49 -0
- package/dist/_chunks/{signature-capture.agent-C38VPXxg.js → signature-capture.agent-BpeDwFht.js} +127 -120
- package/dist/_chunks/slider-CcsQTZTA.js +322 -0
- package/dist/_chunks/sparkline.agent-56Sj7nOP.js +245 -0
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +322 -0
- package/dist/_chunks/stepper-calendar.agent-9iT3ClIB.js +646 -0
- package/dist/_chunks/stepper-progress-Bmen-YXB.js +149 -0
- package/dist/_chunks/stepper-progress.agent-q9InWca4.js +61 -0
- package/dist/_chunks/suggestion-chip-DhFrkRPj.js +169 -0
- package/dist/_chunks/suggestion-chip.agent-6sNWFj7m.js +46 -0
- package/dist/_chunks/switch-BYEH8I53.js +196 -0
- package/dist/_chunks/{tabs.agent-BpbVA-Zh.js → tabs.agent-h7NvsTR1.js} +146 -123
- package/dist/_chunks/{task-card-yW7tKlG4.js → task-card-CY5ztNkU.js} +2 -1
- package/dist/_chunks/task-card.agent-CUPKYd7w.js +22 -0
- package/dist/_chunks/task-tray-CCoUdorl.js +194 -0
- package/dist/_chunks/text-area-C_M8wliK.js +239 -0
- package/dist/_chunks/text-input-BX39e6T6.js +272 -0
- package/dist/_chunks/theme-toggle.agent-btmXTWdW.js +394 -0
- package/dist/_chunks/time-picker-B8AMIrX7.js +410 -0
- package/dist/_chunks/timeline.agent-CRPza9wc.js +279 -0
- package/dist/_chunks/{toast-lOhJDKOH.js → toast.agent-BjEGuq1Z.js} +403 -342
- package/dist/_chunks/{tooth-scheme.agent-BlDyu-Gx.js → tooth-scheme.agent-CWrQBjJM.js} +218 -211
- package/dist/_chunks/transcript-panel.agent-BXEYP6w-.js +337 -0
- package/dist/_chunks/{workflow-map-XeqHDFvp.js → workflow-map-D2A7rTEG.js} +465 -368
- package/dist/agent-catalog.json +2929 -268
- package/dist/components/accordion/accordion.agent.d.ts +2 -1
- package/dist/components/accordion/accordion.d.ts +6 -0
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-card/agenda-card.agent.d.ts +3 -0
- package/dist/components/agenda-card/index.d.ts +1 -0
- package/dist/components/agenda-card/index.js +3 -1
- package/dist/components/agenda-tray/agenda-tray.agent.d.ts +4 -0
- package/dist/components/agenda-tray/agenda-tray.d.ts +19 -2
- package/dist/components/agenda-tray/index.d.ts +2 -1
- package/dist/components/agenda-tray/index.js +3 -2
- package/dist/components/ai-prompt-input/ai-prompt-input.agent.d.ts +4 -0
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +18 -1
- package/dist/components/ai-prompt-input/index.d.ts +2 -1
- package/dist/components/ai-prompt-input/index.js +3 -2
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/audio-recorder/audio-recorder.agent.d.ts +4 -0
- package/dist/components/audio-recorder/audio-recorder.d.ts +10 -1
- package/dist/components/audio-recorder/index.d.ts +2 -1
- package/dist/components/audio-recorder/index.js +3 -2
- package/dist/components/autocomplete/autocomplete.agent.d.ts +2 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.agent.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +21 -2
- package/dist/components/breadcrumb/index.d.ts +2 -1
- package/dist/components/breadcrumb/index.js +5 -4
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +2 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +3 -1
- package/dist/components/chat-container/index.js +2 -2
- package/dist/components/chat-input/chat-input.agent.d.ts +4 -0
- package/dist/components/chat-input/chat-input.d.ts +10 -1
- package/dist/components/chat-input/index.d.ts +2 -1
- package/dist/components/chat-input/index.js +4 -2
- package/dist/components/checkbox/checkbox.agent.d.ts +4 -0
- package/dist/components/checkbox/checkbox.d.ts +6 -0
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.agent.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/collapsible.agent.d.ts +4 -0
- package/dist/components/collapsible/collapsible.d.ts +8 -1
- package/dist/components/collapsible/index.d.ts +2 -1
- package/dist/components/collapsible/index.js +4 -3
- package/dist/components/color-picker/color-picker.agent.d.ts +4 -0
- package/dist/components/color-picker/color-picker.d.ts +5 -0
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.agent.d.ts +2 -1
- package/dist/components/combobox/combobox.d.ts +10 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.agent.d.ts +2 -1
- package/dist/components/command-palette/command-palette.d.ts +7 -0
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.agent.d.ts +4 -0
- package/dist/components/date-picker/date-picker.d.ts +16 -1
- package/dist/components/date-picker/index.d.ts +2 -1
- package/dist/components/date-picker/index.js +3 -2
- package/dist/components/date-range-picker/date-range-picker.agent.d.ts +4 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +16 -1
- package/dist/components/date-range-picker/index.d.ts +2 -1
- package/dist/components/date-range-picker/index.js +3 -2
- package/dist/components/date-time-picker/date-time-picker.agent.d.ts +4 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +16 -1
- package/dist/components/date-time-picker/index.d.ts +2 -1
- package/dist/components/date-time-picker/index.js +3 -2
- package/dist/components/dialog/dialog.agent.d.ts +5 -6
- package/dist/components/dialog/dialog.d.ts +11 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts +2 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +10 -2
- package/dist/components/dropdown-menu/index.js +2 -2
- package/dist/components/file-upload/file-upload.agent.d.ts +2 -1
- package/dist/components/file-upload/file-upload.d.ts +12 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.agent.d.ts +4 -0
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +8 -1
- package/dist/components/freemium-paywall/index.d.ts +2 -1
- package/dist/components/freemium-paywall/index.js +3 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/index.js +5 -0
- package/dist/components/link/link.d.ts +39 -0
- package/dist/components/list/index.d.ts +2 -1
- package/dist/components/list/index.js +3 -2
- package/dist/components/list/list.agent.d.ts +4 -0
- package/dist/components/list/list.d.ts +8 -2
- package/dist/components/message-card/index.d.ts +1 -0
- package/dist/components/message-card/index.js +5 -3
- package/dist/components/message-card/message-card.agent.d.ts +3 -0
- package/dist/components/message-tray/index.d.ts +2 -1
- package/dist/components/message-tray/index.js +3 -2
- package/dist/components/message-tray/message-tray.agent.d.ts +4 -0
- package/dist/components/message-tray/message-tray.d.ts +27 -2
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.agent.d.ts +2 -1
- package/dist/components/multi-select/multi-select.d.ts +10 -0
- package/dist/components/navigation-menu/index.d.ts +2 -1
- package/dist/components/navigation-menu/index.js +7 -6
- package/dist/components/navigation-menu/navigation-menu.agent.d.ts +4 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +28 -2
- package/dist/components/notification-card/index.d.ts +1 -0
- package/dist/components/notification-card/index.js +5 -3
- package/dist/components/notification-card/notification-card.agent.d.ts +3 -0
- package/dist/components/notification-tray/index.d.ts +2 -1
- package/dist/components/notification-tray/index.js +3 -2
- package/dist/components/notification-tray/notification-tray.agent.d.ts +4 -0
- package/dist/components/notification-tray/notification-tray.d.ts +27 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.agent.d.ts +4 -0
- package/dist/components/number-input/number-input.d.ts +7 -0
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.agent.d.ts +4 -0
- package/dist/components/otp-input/otp-input.d.ts +10 -0
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination.agent.d.ts +2 -1
- package/dist/components/pagination/pagination.d.ts +7 -0
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/password-input.agent.d.ts +4 -0
- package/dist/components/password-input/password-input.d.ts +9 -0
- package/dist/components/payment-form/index.js +2 -2
- package/dist/components/payment-form/payment-form.d.ts +2 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +2 -0
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.agent.d.ts +4 -0
- package/dist/components/phone-input/phone-input.d.ts +7 -0
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.agent.d.ts +2 -1
- package/dist/components/popover/popover.d.ts +8 -1
- package/dist/components/privacy-lock/index.d.ts +2 -1
- package/dist/components/privacy-lock/index.js +3 -2
- package/dist/components/privacy-lock/privacy-lock.agent.d.ts +4 -0
- package/dist/components/privacy-lock/privacy-lock.d.ts +7 -1
- package/dist/components/progress/index.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group.agent.d.ts +4 -0
- package/dist/components/radio-group/radio-group.d.ts +5 -0
- package/dist/components/recaptcha-widget/index.d.ts +3 -0
- package/dist/components/recaptcha-widget/index.js +6 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.agent.d.ts +4 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +56 -0
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/resizable/resizable.agent.d.ts +2 -1
- package/dist/components/resizable/resizable.d.ts +6 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/search-bar/index.d.ts +2 -1
- package/dist/components/search-bar/index.js +3 -2
- package/dist/components/search-bar/search-bar.agent.d.ts +4 -0
- package/dist/components/search-bar/search-bar.d.ts +27 -1
- package/dist/components/search-input/index.d.ts +2 -1
- package/dist/components/search-input/index.js +4 -2
- package/dist/components/search-input/search-input.agent.d.ts +4 -0
- package/dist/components/search-input/search-input.d.ts +27 -0
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.agent.d.ts +4 -0
- package/dist/components/select/select.d.ts +9 -0
- package/dist/components/sheet/index.js +2 -2
- package/dist/components/sheet/sheet.agent.d.ts +2 -1
- package/dist/components/sheet/sheet.d.ts +11 -2
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sidebar/sidebar.agent.d.ts +2 -1
- package/dist/components/sidebar/sidebar.d.ts +6 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-capture/signature-capture.d.ts +2 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider.agent.d.ts +4 -0
- package/dist/components/slider/slider.d.ts +5 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-accordion/index.d.ts +2 -1
- package/dist/components/stepper-accordion/index.js +3 -2
- package/dist/components/stepper-accordion/stepper-accordion.agent.d.ts +4 -0
- package/dist/components/stepper-accordion/stepper-accordion.d.ts +19 -1
- package/dist/components/stepper-calendar/index.d.ts +2 -1
- package/dist/components/stepper-calendar/index.js +3 -2
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +4 -0
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +19 -1
- package/dist/components/stepper-progress/index.d.ts +2 -1
- package/dist/components/stepper-progress/index.js +4 -2
- package/dist/components/stepper-progress/stepper-progress.agent.d.ts +4 -0
- package/dist/components/stepper-progress/stepper-progress.d.ts +26 -1
- package/dist/components/suggestion-chip/index.d.ts +2 -1
- package/dist/components/suggestion-chip/index.js +5 -3
- package/dist/components/suggestion-chip/suggestion-chip.agent.d.ts +4 -0
- package/dist/components/suggestion-chip/suggestion-chip.d.ts +7 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.agent.d.ts +4 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs.agent.d.ts +2 -1
- package/dist/components/tabs/tabs.d.ts +4 -0
- package/dist/components/task-card/index.d.ts +1 -0
- package/dist/components/task-card/index.js +5 -3
- package/dist/components/task-card/task-card.agent.d.ts +3 -0
- package/dist/components/task-tray/index.d.ts +2 -1
- package/dist/components/task-tray/index.js +3 -2
- package/dist/components/task-tray/task-tray.agent.d.ts +4 -0
- package/dist/components/task-tray/task-tray.d.ts +25 -2
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.agent.d.ts +4 -0
- package/dist/components/text-area/text-area.d.ts +7 -0
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/text-input/text-input.agent.d.ts +4 -0
- package/dist/components/text-input/text-input.d.ts +10 -0
- package/dist/components/theme-toggle/index.d.ts +2 -1
- package/dist/components/theme-toggle/index.js +3 -2
- package/dist/components/theme-toggle/theme-toggle.agent.d.ts +4 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +9 -2
- package/dist/components/time-picker/index.d.ts +2 -1
- package/dist/components/time-picker/index.js +3 -2
- package/dist/components/time-picker/time-picker.agent.d.ts +4 -0
- package/dist/components/time-picker/time-picker.d.ts +16 -1
- package/dist/components/timeline/index.d.ts +2 -1
- package/dist/components/timeline/index.js +3 -2
- package/dist/components/timeline/timeline.agent.d.ts +4 -0
- package/dist/components/timeline/timeline.d.ts +8 -1
- package/dist/components/toast/index.d.ts +3 -2
- package/dist/components/toast/index.js +7 -5
- package/dist/components/toast/toast.agent.d.ts +4 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -0
- package/dist/components/transcript-panel/index.d.ts +2 -1
- package/dist/components/transcript-panel/index.js +3 -2
- package/dist/components/transcript-panel/transcript-panel.agent.d.ts +4 -0
- package/dist/components/transcript-panel/transcript-panel.d.ts +10 -1
- package/dist/components/workflow/index.d.ts +2 -1
- package/dist/components/workflow/index.js +10 -7
- package/dist/components/workflow/workflow-editor.d.ts +7 -1
- package/dist/components/workflow/workflow-map.d.ts +2 -0
- package/dist/components/workflow/workflow.agent.d.ts +6 -0
- package/dist/i18n/config.js +24 -11
- package/dist/i18n/resources.d.ts +7 -0
- package/dist/index.js +471 -423
- package/dist/locales/en.json +7 -0
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +18 -2
- package/dist/_chunks/accordion.agent-Cz-yglRa.js +0 -17
- package/dist/_chunks/agenda-tray-BqQZwiHc.js +0 -120
- package/dist/_chunks/ai-prompt-input-CI27KmZ1.js +0 -380
- package/dist/_chunks/audio-recorder-B-8SKgKn.js +0 -376
- package/dist/_chunks/autocomplete.agent-DqOy0_1P.js +0 -372
- package/dist/_chunks/breadcrumb-D6xpsP7n.js +0 -293
- package/dist/_chunks/checkbox-DNK4qS2_.js +0 -116
- package/dist/_chunks/checkbox-group-CWpGZEF6.js +0 -146
- package/dist/_chunks/collapsible-D4LOdLxp.js +0 -67
- package/dist/_chunks/combobox.agent-ByobCLJ_.js +0 -350
- package/dist/_chunks/date-picker-DYXNsWmM.js +0 -1726
- package/dist/_chunks/date-range-picker-BcNDJI7m.js +0 -183
- package/dist/_chunks/date-time-picker-CmGiTU__.js +0 -202
- package/dist/_chunks/dialog.agent-DEG_fVzG.js +0 -147
- package/dist/_chunks/dropdown-menu.agent-Cry4Nmes.js +0 -17
- package/dist/_chunks/freemium-paywall-CkefGLM_.js +0 -198
- package/dist/_chunks/list-B1ozIjQe.js +0 -359
- package/dist/_chunks/message-tray-VaLpQU5t.js +0 -303
- package/dist/_chunks/navigation-menu-EVFau1O2.js +0 -180
- package/dist/_chunks/notification-tray-B7U5YZYg.js +0 -328
- package/dist/_chunks/number-input-DjpT_RXJ.js +0 -249
- package/dist/_chunks/otp-input-De5_Ih7B.js +0 -189
- package/dist/_chunks/pagination.agent-oEaqmtx5.js +0 -380
- package/dist/_chunks/password-input-DJDVznWH.js +0 -193
- package/dist/_chunks/phone-input-DE_39q65.js +0 -428
- package/dist/_chunks/popover-C3CTUsqh.js +0 -227
- package/dist/_chunks/popover.agent-C0qOx9WT.js +0 -13
- package/dist/_chunks/privacy-lock-CQpgkLec.js +0 -132
- package/dist/_chunks/progress-B4Of_pzz.js +0 -252
- package/dist/_chunks/progress.agent-CXkHURjX.js +0 -22
- package/dist/_chunks/radio-group-BIUbpWml.js +0 -89
- package/dist/_chunks/resizable.agent-DBpPGNdy.js +0 -435
- package/dist/_chunks/search-bar-fcGqDFW3.js +0 -397
- package/dist/_chunks/search-input-BVMCONyN.js +0 -197
- package/dist/_chunks/select-IY_JQa-F.js +0 -321
- package/dist/_chunks/sheet.agent-DwQlBqK9.js +0 -13
- package/dist/_chunks/sidebar.agent-B0fnH9CC.js +0 -17
- package/dist/_chunks/slider-DjyRt3Mp.js +0 -274
- package/dist/_chunks/sparkline.agent-C_xp3NRB.js +0 -238
- package/dist/_chunks/stepper-accordion-CGog0JSF.js +0 -233
- package/dist/_chunks/stepper-calendar-_fLOAjus.js +0 -570
- package/dist/_chunks/stepper-progress-rE7tn7WY.js +0 -129
- package/dist/_chunks/suggestion-chip-BNJ2M8Os.js +0 -158
- package/dist/_chunks/switch-aN2EYxHh.js +0 -138
- package/dist/_chunks/task-tray-BzahI5FQ.js +0 -100
- package/dist/_chunks/text-area-DmKSd2DG.js +0 -152
- package/dist/_chunks/text-input-CRHvl5zk.js +0 -188
- package/dist/_chunks/theme-toggle-BHiMMEQN.js +0 -329
- package/dist/_chunks/time-picker-D-EueWUG.js +0 -322
- package/dist/_chunks/timeline-RgAIzpMd.js +0 -220
- package/dist/_chunks/transcript-panel-CNbVGG9L.js +0 -266
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { jsxs as N, jsx as K } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as de, useRef as O, useCallback as k, useState as P, useLayoutEffect as ce, useMemo as le, useEffect as ue } from "react";
|
|
3
|
+
import { c as fe } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as pe } from "react-i18next";
|
|
5
|
+
import { u as me } from "./form-field-context-94LwgYTQ.js";
|
|
6
|
+
import { u as ve } from "./registry-C9nwlNyL.js";
|
|
7
|
+
const ge = {
|
|
8
|
+
id: "text-area",
|
|
9
|
+
capabilities: ["edit_inline"],
|
|
10
|
+
state: {
|
|
11
|
+
value: {
|
|
12
|
+
type: "string",
|
|
13
|
+
descriptionKey: "ui.agent.textArea.state.value",
|
|
14
|
+
description: "Current value of the textarea.",
|
|
15
|
+
read: (t) => t.getValue()
|
|
16
|
+
},
|
|
17
|
+
isEmpty: {
|
|
18
|
+
type: "boolean",
|
|
19
|
+
descriptionKey: "ui.agent.textArea.state.isEmpty",
|
|
20
|
+
description: "Whether the textarea has no value.",
|
|
21
|
+
read: (t) => t.getValue() === ""
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
actions: {
|
|
25
|
+
set_value: {
|
|
26
|
+
safety: "write",
|
|
27
|
+
argsType: "{ value: string }",
|
|
28
|
+
descriptionKey: "ui.agent.textArea.actions.setValue",
|
|
29
|
+
description: "Replace the textarea value.",
|
|
30
|
+
invoke: (t, v) => {
|
|
31
|
+
t.setValue(v.value);
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
clear: {
|
|
35
|
+
safety: "destructive",
|
|
36
|
+
descriptionKey: "ui.agent.textArea.actions.clear",
|
|
37
|
+
description: "Empty the textarea. Loses any typed value.",
|
|
38
|
+
invoke: (t) => {
|
|
39
|
+
t.clear();
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
focus: {
|
|
43
|
+
safety: "read",
|
|
44
|
+
descriptionKey: "ui.agent.textArea.actions.focus",
|
|
45
|
+
description: "Move keyboard focus to the textarea.",
|
|
46
|
+
invoke: (t) => {
|
|
47
|
+
t.focus();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
domHooks: {
|
|
52
|
+
root: {
|
|
53
|
+
attr: "data-component",
|
|
54
|
+
value: "text-area",
|
|
55
|
+
description: "Marks the TextArea wrapper."
|
|
56
|
+
},
|
|
57
|
+
instanceId: {
|
|
58
|
+
attr: "data-component-id",
|
|
59
|
+
sourceProp: "id",
|
|
60
|
+
description: "Sourced from the id prop."
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}, be = fe(
|
|
64
|
+
[
|
|
65
|
+
"ds:block ds:w-full ds:border ds:rounded-[var(--radius-sm)] ds:bg-background ds:text-foreground",
|
|
66
|
+
"ds:leading-[var(--line-height-base)]",
|
|
67
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
68
|
+
"ds:focus:outline-none",
|
|
69
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
70
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
71
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
72
|
+
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
73
|
+
"ds:read-only:bg-muted ds:read-only:cursor-default",
|
|
74
|
+
"ds:transition-[height,color,background-color,border-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
75
|
+
"ds:placeholder:text-muted-foreground"
|
|
76
|
+
].join(" "),
|
|
77
|
+
{
|
|
78
|
+
variants: {
|
|
79
|
+
size: {
|
|
80
|
+
sm: "ds:min-h-8 ds:text-[length:var(--font-size-sm)]",
|
|
81
|
+
md: "ds:min-h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
|
|
82
|
+
lg: "ds:min-h-[calc(var(--min-target-size)*1.5)] ds:text-[length:var(--font-size-lg)]"
|
|
83
|
+
},
|
|
84
|
+
tone: {
|
|
85
|
+
default: "ds:border-border",
|
|
86
|
+
error: "ds:border-destructive"
|
|
87
|
+
},
|
|
88
|
+
resize: {
|
|
89
|
+
auto: "ds:resize-none",
|
|
90
|
+
manual: "ds:resize-y"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
defaultVariants: { size: "md", tone: "default", resize: "manual" }
|
|
94
|
+
}
|
|
95
|
+
), he = (t) => t >= 1 ? "ds:text-destructive" : t >= 0.9 ? "ds:text-warning" : "ds:text-muted-foreground", ye = (t) => [...t].length, xe = de(
|
|
96
|
+
({
|
|
97
|
+
size: t = "md",
|
|
98
|
+
tone: v = "default",
|
|
99
|
+
autoResize: s = !1,
|
|
100
|
+
minRows: g = 2,
|
|
101
|
+
maxRows: b,
|
|
102
|
+
showCounter: S,
|
|
103
|
+
className: W,
|
|
104
|
+
id: h,
|
|
105
|
+
disabled: _,
|
|
106
|
+
value: F,
|
|
107
|
+
defaultValue: E,
|
|
108
|
+
maxLength: a,
|
|
109
|
+
rows: q,
|
|
110
|
+
onChange: n,
|
|
111
|
+
onCompositionStart: y,
|
|
112
|
+
onCompositionEnd: x,
|
|
113
|
+
onInput: D,
|
|
114
|
+
...$
|
|
115
|
+
}, c) => {
|
|
116
|
+
const { t: I } = pe(), i = me(), z = h ?? i.id, Y = i.disabled || _, G = i.invalid ? "error" : v, l = O(null), J = k(
|
|
117
|
+
(e) => {
|
|
118
|
+
l.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
119
|
+
},
|
|
120
|
+
[c]
|
|
121
|
+
), u = F !== void 0, [Q, j] = P(
|
|
122
|
+
String(E ?? "")
|
|
123
|
+
), T = u ? String(F) : Q, p = O(!1), A = k(() => {
|
|
124
|
+
const e = l.current;
|
|
125
|
+
if (!e || !s) return;
|
|
126
|
+
const r = window.getComputedStyle(e), d = parseFloat(r.lineHeight), f = parseFloat(r.paddingTop), m = parseFloat(r.paddingBottom), se = parseFloat(r.borderTopWidth), ae = parseFloat(r.borderBottomWidth), M = f + m + se + ae, ne = (Number.isFinite(d) ? d : 24) * g + M, ie = typeof b == "number" ? (Number.isFinite(d) ? d : 24) * b + M : Number.POSITIVE_INFINITY;
|
|
127
|
+
e.style.height = "auto";
|
|
128
|
+
const oe = Math.max(ne, Math.min(e.scrollHeight, ie));
|
|
129
|
+
e.style.height = `${oe}px`;
|
|
130
|
+
}, [s, g, b]);
|
|
131
|
+
ce(() => {
|
|
132
|
+
s && A();
|
|
133
|
+
}, [s, A, T]);
|
|
134
|
+
const U = (e) => {
|
|
135
|
+
u || j(e.target.value), !p.current && (n == null || n(e));
|
|
136
|
+
}, X = (e) => {
|
|
137
|
+
p.current = !0, y == null || y(e);
|
|
138
|
+
}, Z = (e) => {
|
|
139
|
+
p.current = !1, x == null || x(e);
|
|
140
|
+
const r = e.currentTarget;
|
|
141
|
+
u || j(r.value), n == null || n({
|
|
142
|
+
...e,
|
|
143
|
+
target: r,
|
|
144
|
+
currentTarget: r
|
|
145
|
+
}), s && A();
|
|
146
|
+
}, w = k((e) => {
|
|
147
|
+
var m;
|
|
148
|
+
const r = l.current;
|
|
149
|
+
if (!r) return;
|
|
150
|
+
const d = Object.getPrototypeOf(r), f = (m = Object.getOwnPropertyDescriptor(d, "value")) == null ? void 0 : m.set;
|
|
151
|
+
f == null || f.call(r, e), r.dispatchEvent(new Event("input", { bubbles: !0 })), r.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
152
|
+
}, []), L = le(
|
|
153
|
+
() => ({
|
|
154
|
+
getValue: () => {
|
|
155
|
+
var e;
|
|
156
|
+
return ((e = l.current) == null ? void 0 : e.value) ?? "";
|
|
157
|
+
},
|
|
158
|
+
setValue: (e) => w(e),
|
|
159
|
+
clear: () => w(""),
|
|
160
|
+
focus: () => {
|
|
161
|
+
var e;
|
|
162
|
+
return (e = l.current) == null ? void 0 : e.focus();
|
|
163
|
+
}
|
|
164
|
+
}),
|
|
165
|
+
[w]
|
|
166
|
+
);
|
|
167
|
+
ve(ge, L, h);
|
|
168
|
+
const o = typeof a == "number" && (S ?? !0) && a > 0, V = ye(T), B = o ? Math.max(0, a - V) : 0, R = o ? V / a : 0, [C, ee] = P("");
|
|
169
|
+
ue(() => {
|
|
170
|
+
if (!o) return;
|
|
171
|
+
const e = window.setTimeout(() => {
|
|
172
|
+
p.current || ee(
|
|
173
|
+
I("ui.inputs.textarea.charactersRemaining", {
|
|
174
|
+
count: B,
|
|
175
|
+
defaultValue: "{{count}} characters remaining"
|
|
176
|
+
})
|
|
177
|
+
);
|
|
178
|
+
}, 500);
|
|
179
|
+
return () => window.clearTimeout(e);
|
|
180
|
+
}, [o, B, I]);
|
|
181
|
+
const H = o ? `${z}-counter` : void 0, te = [i.describedBy || void 0, H].filter(Boolean).join(" ") || void 0, re = s ? "auto" : "manual";
|
|
182
|
+
return /* @__PURE__ */ N(
|
|
183
|
+
"div",
|
|
184
|
+
{
|
|
185
|
+
"data-component": "text-area",
|
|
186
|
+
"data-component-id": h,
|
|
187
|
+
className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ K(
|
|
190
|
+
"textarea",
|
|
191
|
+
{
|
|
192
|
+
ref: J,
|
|
193
|
+
id: z,
|
|
194
|
+
value: u ? T : void 0,
|
|
195
|
+
defaultValue: u ? void 0 : E,
|
|
196
|
+
disabled: Y,
|
|
197
|
+
"aria-describedby": te,
|
|
198
|
+
"aria-invalid": i.invalid || void 0,
|
|
199
|
+
"aria-required": i.required || void 0,
|
|
200
|
+
maxLength: a,
|
|
201
|
+
rows: s ? g : q,
|
|
202
|
+
onChange: U,
|
|
203
|
+
onCompositionStart: X,
|
|
204
|
+
onCompositionEnd: Z,
|
|
205
|
+
onInput: D,
|
|
206
|
+
className: be({
|
|
207
|
+
size: t,
|
|
208
|
+
tone: G,
|
|
209
|
+
resize: re,
|
|
210
|
+
className: W
|
|
211
|
+
}),
|
|
212
|
+
...$
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
o ? /* @__PURE__ */ N(
|
|
216
|
+
"div",
|
|
217
|
+
{
|
|
218
|
+
id: H,
|
|
219
|
+
className: "ds:flex ds:justify-end type-meta ds:tabular-nums",
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ N("span", { "aria-hidden": "true", className: he(R), children: [
|
|
222
|
+
V,
|
|
223
|
+
" / ",
|
|
224
|
+
a
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ K("span", { className: "ds:sr-only", "aria-live": "polite", children: C })
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
) : null
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
xe.displayName = "TextArea";
|
|
236
|
+
export {
|
|
237
|
+
xe as T
|
|
238
|
+
};
|
|
239
|
+
//# sourceMappingURL=text-area-C_M8wliK.js.map
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { jsxs as ee, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as te, useState as P, useRef as O, useCallback as R, useMemo as se } from "react";
|
|
3
|
+
import { c as j } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as ae } from "react-i18next";
|
|
5
|
+
import { u as ne } from "./form-field-context-94LwgYTQ.js";
|
|
6
|
+
import { I as re, a as w, b as E } from "./input-surface-u4QB0lxe.js";
|
|
7
|
+
import { u as ie } from "./registry-C9nwlNyL.js";
|
|
8
|
+
import { X as oe } from "./x-CCcI3eJp.js";
|
|
9
|
+
const de = {
|
|
10
|
+
id: "text-input",
|
|
11
|
+
capabilities: ["edit_inline"],
|
|
12
|
+
state: {
|
|
13
|
+
value: {
|
|
14
|
+
type: "string",
|
|
15
|
+
descriptionKey: "ui.agent.textInput.state.value",
|
|
16
|
+
description: "Current value of the text input.",
|
|
17
|
+
read: (s) => s.getValue()
|
|
18
|
+
},
|
|
19
|
+
isEmpty: {
|
|
20
|
+
type: "boolean",
|
|
21
|
+
descriptionKey: "ui.agent.textInput.state.isEmpty",
|
|
22
|
+
description: "Whether the input has no value.",
|
|
23
|
+
read: (s) => s.getValue() === ""
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
actions: {
|
|
27
|
+
set_value: {
|
|
28
|
+
safety: "write",
|
|
29
|
+
argsType: "{ value: string }",
|
|
30
|
+
descriptionKey: "ui.agent.textInput.actions.setValue",
|
|
31
|
+
description: "Replace the input value.",
|
|
32
|
+
invoke: (s, c) => {
|
|
33
|
+
s.setValue(c.value);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
clear: {
|
|
37
|
+
safety: "destructive",
|
|
38
|
+
descriptionKey: "ui.agent.textInput.actions.clear",
|
|
39
|
+
description: "Empty the input. Loses any typed value.",
|
|
40
|
+
invoke: (s) => {
|
|
41
|
+
s.clear();
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
focus: {
|
|
45
|
+
safety: "read",
|
|
46
|
+
descriptionKey: "ui.agent.textInput.actions.focus",
|
|
47
|
+
description: "Move keyboard focus to the input.",
|
|
48
|
+
invoke: (s) => {
|
|
49
|
+
s.focus();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
domHooks: {
|
|
54
|
+
root: {
|
|
55
|
+
attr: "data-component",
|
|
56
|
+
value: "text-input",
|
|
57
|
+
description: "Marks the TextInput wrapper."
|
|
58
|
+
},
|
|
59
|
+
instanceId: {
|
|
60
|
+
attr: "data-component-id",
|
|
61
|
+
sourceProp: "id",
|
|
62
|
+
description: "Sourced from the id prop."
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, ue = j(
|
|
66
|
+
[
|
|
67
|
+
"ds:relative ds:flex ds:items-center ds:w-full",
|
|
68
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
69
|
+
"ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
|
|
70
|
+
"ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
|
|
71
|
+
"ds:forced-colors:focus-within:outline-[CanvasText]",
|
|
72
|
+
"ds:has-[:disabled]:cursor-not-allowed"
|
|
73
|
+
].join(" ")
|
|
74
|
+
), ce = j(
|
|
75
|
+
[
|
|
76
|
+
"ds:w-full ds:rounded-[var(--radius-sm)] ds:border ds:bg-background ds:text-foreground",
|
|
77
|
+
"ds:placeholder:text-muted-foreground",
|
|
78
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
79
|
+
"ds:focus:outline-none ds:focus-visible:outline-none",
|
|
80
|
+
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
81
|
+
"ds:read-only:bg-muted ds:read-only:cursor-default"
|
|
82
|
+
].join(" "),
|
|
83
|
+
{
|
|
84
|
+
variants: {
|
|
85
|
+
size: {
|
|
86
|
+
sm: `${w.sm} ${E.sm}`,
|
|
87
|
+
md: `${w.md} ${E.md}`,
|
|
88
|
+
lg: `${w.lg} ${E.lg}`
|
|
89
|
+
},
|
|
90
|
+
tone: re,
|
|
91
|
+
hasStart: {
|
|
92
|
+
true: "ds:ps-10",
|
|
93
|
+
false: ""
|
|
94
|
+
},
|
|
95
|
+
hasEnd: {
|
|
96
|
+
true: "ds:pe-10",
|
|
97
|
+
false: ""
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
compoundVariants: [
|
|
101
|
+
{ size: "sm", hasStart: !1, class: "ds:ps-3" },
|
|
102
|
+
{ size: "md", hasStart: !1, class: "ds:ps-3" },
|
|
103
|
+
{ size: "lg", hasStart: !1, class: "ds:ps-4" },
|
|
104
|
+
{ size: "sm", hasEnd: !1, class: "ds:pe-3" },
|
|
105
|
+
{ size: "md", hasEnd: !1, class: "ds:pe-3" },
|
|
106
|
+
{ size: "lg", hasEnd: !1, class: "ds:pe-4" }
|
|
107
|
+
],
|
|
108
|
+
defaultVariants: {
|
|
109
|
+
size: "md",
|
|
110
|
+
tone: "default",
|
|
111
|
+
hasStart: !1,
|
|
112
|
+
hasEnd: !1
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
), _ = "ds:absolute ds:inset-y-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground", le = te(
|
|
116
|
+
({
|
|
117
|
+
size: s = "md",
|
|
118
|
+
tone: c = "default",
|
|
119
|
+
startAdornment: l,
|
|
120
|
+
endAdornment: p,
|
|
121
|
+
clearable: $ = !1,
|
|
122
|
+
onClear: f,
|
|
123
|
+
className: U,
|
|
124
|
+
id: m,
|
|
125
|
+
disabled: D,
|
|
126
|
+
value: T,
|
|
127
|
+
defaultValue: F,
|
|
128
|
+
onChange: a,
|
|
129
|
+
onCompositionStart: v,
|
|
130
|
+
onCompositionEnd: g,
|
|
131
|
+
...I
|
|
132
|
+
}, o) => {
|
|
133
|
+
const { t: K } = ae(), i = ne(), B = m ?? i.id, V = i.disabled || D, H = i.invalid ? "error" : c, u = T !== void 0, [M, h] = P(
|
|
134
|
+
String(F ?? "")
|
|
135
|
+
), S = u ? String(T) : M, q = S.length > 0, b = O(!1), [W, k] = P(!1), n = O(null), X = R(
|
|
136
|
+
(e) => {
|
|
137
|
+
n.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
138
|
+
},
|
|
139
|
+
[o]
|
|
140
|
+
), A = !!l, z = $ && q && !V && !I.readOnly, G = !!p || z, L = (e) => {
|
|
141
|
+
u || h(e.target.value), !b.current && (a == null || a(e));
|
|
142
|
+
}, J = (e) => {
|
|
143
|
+
b.current = !0, k(!0), v == null || v(e);
|
|
144
|
+
}, Q = (e) => {
|
|
145
|
+
b.current = !1, k(!1), g == null || g(e);
|
|
146
|
+
const t = e.currentTarget;
|
|
147
|
+
u || h(t.value), a == null || a({
|
|
148
|
+
...e,
|
|
149
|
+
target: t,
|
|
150
|
+
currentTarget: t
|
|
151
|
+
});
|
|
152
|
+
}, Y = () => {
|
|
153
|
+
var t;
|
|
154
|
+
u || h("");
|
|
155
|
+
const e = n.current;
|
|
156
|
+
if (e && a) {
|
|
157
|
+
const x = Object.getPrototypeOf(e), r = (t = Object.getOwnPropertyDescriptor(x, "value")) == null ? void 0 : t.set;
|
|
158
|
+
r == null || r.call(e, ""), a({
|
|
159
|
+
target: e,
|
|
160
|
+
currentTarget: e,
|
|
161
|
+
bubbles: !0,
|
|
162
|
+
type: "change",
|
|
163
|
+
nativeEvent: new Event("change", { bubbles: !0 }),
|
|
164
|
+
preventDefault: () => {
|
|
165
|
+
},
|
|
166
|
+
stopPropagation: () => {
|
|
167
|
+
},
|
|
168
|
+
isDefaultPrevented: () => !1,
|
|
169
|
+
isPropagationStopped: () => !1,
|
|
170
|
+
persist: () => {
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
f == null || f(), e == null || e.focus();
|
|
175
|
+
}, y = R((e) => {
|
|
176
|
+
var N;
|
|
177
|
+
const t = n.current;
|
|
178
|
+
if (!t) return;
|
|
179
|
+
const x = Object.getPrototypeOf(t), r = (N = Object.getOwnPropertyDescriptor(x, "value")) == null ? void 0 : N.set;
|
|
180
|
+
r == null || r.call(t, e), t.dispatchEvent(new Event("input", { bubbles: !0 })), t.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
181
|
+
}, []), Z = se(
|
|
182
|
+
() => ({
|
|
183
|
+
getValue: () => {
|
|
184
|
+
var e;
|
|
185
|
+
return ((e = n.current) == null ? void 0 : e.value) ?? "";
|
|
186
|
+
},
|
|
187
|
+
setValue: (e) => {
|
|
188
|
+
y(e);
|
|
189
|
+
},
|
|
190
|
+
clear: () => {
|
|
191
|
+
y("");
|
|
192
|
+
},
|
|
193
|
+
focus: () => {
|
|
194
|
+
var e;
|
|
195
|
+
(e = n.current) == null || e.focus();
|
|
196
|
+
}
|
|
197
|
+
}),
|
|
198
|
+
[y]
|
|
199
|
+
);
|
|
200
|
+
ie(de, Z, m);
|
|
201
|
+
const C = (e) => {
|
|
202
|
+
var t;
|
|
203
|
+
e.target !== n.current && (e.target.closest("button") || (t = n.current) == null || t.focus());
|
|
204
|
+
};
|
|
205
|
+
return /* @__PURE__ */ ee(
|
|
206
|
+
"div",
|
|
207
|
+
{
|
|
208
|
+
className: ue(),
|
|
209
|
+
onClick: C,
|
|
210
|
+
"data-component": "text-input",
|
|
211
|
+
"data-component-id": m,
|
|
212
|
+
"data-composing": W ? "true" : void 0,
|
|
213
|
+
children: [
|
|
214
|
+
l ? /* @__PURE__ */ d(
|
|
215
|
+
"span",
|
|
216
|
+
{
|
|
217
|
+
"aria-hidden": "true",
|
|
218
|
+
className: `${_} ds:start-0 ds:ps-3 ds:[&_svg]:size-4`,
|
|
219
|
+
children: l
|
|
220
|
+
}
|
|
221
|
+
) : null,
|
|
222
|
+
/* @__PURE__ */ d(
|
|
223
|
+
"input",
|
|
224
|
+
{
|
|
225
|
+
ref: X,
|
|
226
|
+
id: B,
|
|
227
|
+
type: "text",
|
|
228
|
+
value: S,
|
|
229
|
+
disabled: V,
|
|
230
|
+
"aria-describedby": i.describedBy || void 0,
|
|
231
|
+
"aria-invalid": i.invalid || void 0,
|
|
232
|
+
"aria-required": i.required || void 0,
|
|
233
|
+
onChange: L,
|
|
234
|
+
onCompositionStart: J,
|
|
235
|
+
onCompositionEnd: Q,
|
|
236
|
+
className: ce({
|
|
237
|
+
size: s,
|
|
238
|
+
tone: H,
|
|
239
|
+
hasStart: A,
|
|
240
|
+
hasEnd: G,
|
|
241
|
+
className: U
|
|
242
|
+
}),
|
|
243
|
+
...I
|
|
244
|
+
}
|
|
245
|
+
),
|
|
246
|
+
z ? /* @__PURE__ */ d(
|
|
247
|
+
"button",
|
|
248
|
+
{
|
|
249
|
+
type: "button",
|
|
250
|
+
"aria-label": K("ui.inputs.text.clear", "Clear input"),
|
|
251
|
+
onClick: Y,
|
|
252
|
+
className: "ds:absolute ds:inset-y-0 ds:end-0 ds:pe-3 ds:flex ds:items-center ds:pointer-events-auto ds:text-muted-foreground ds:hover:text-foreground ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
253
|
+
children: /* @__PURE__ */ d(oe, { "aria-hidden": "true", className: "ds:size-4" })
|
|
254
|
+
}
|
|
255
|
+
) : p ? /* @__PURE__ */ d(
|
|
256
|
+
"span",
|
|
257
|
+
{
|
|
258
|
+
"aria-hidden": "true",
|
|
259
|
+
className: `${_} ds:end-0 ds:pe-3 ds:[&_svg]:size-4`,
|
|
260
|
+
children: p
|
|
261
|
+
}
|
|
262
|
+
) : null
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
le.displayName = "TextInput";
|
|
269
|
+
export {
|
|
270
|
+
le as T
|
|
271
|
+
};
|
|
272
|
+
//# sourceMappingURL=text-input-BX39e6T6.js.map
|