@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -468,7 +468,12 @@
|
|
|
468
468
|
"storybook": "LAUNCH_EDITOR=code storybook dev -p 6006",
|
|
469
469
|
"build-storybook": "storybook build",
|
|
470
470
|
"typecheck": "tsc -b",
|
|
471
|
-
"test": "vitest run"
|
|
471
|
+
"test": "vitest run",
|
|
472
|
+
"lint": "eslint .",
|
|
473
|
+
"lint:fix": "eslint . --fix",
|
|
474
|
+
"format": "prettier --write .",
|
|
475
|
+
"format:check": "prettier --check .",
|
|
476
|
+
"stylelint": "stylelint \"src/**/*.css\""
|
|
472
477
|
},
|
|
473
478
|
"peerDependencies": {
|
|
474
479
|
"@fullcalendar/core": "^6.1.20",
|
|
@@ -677,11 +682,19 @@
|
|
|
677
682
|
"ag-grid-react": "^35.2.1",
|
|
678
683
|
"apexcharts": "^5.10.1",
|
|
679
684
|
"autoprefixer": "^10.5.0",
|
|
685
|
+
"eslint": "^9.39.4",
|
|
686
|
+
"eslint-config-prettier": "^9.1.2",
|
|
687
|
+
"eslint-plugin-import": "^2.32.0",
|
|
688
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
689
|
+
"eslint-plugin-react": "^7.37.5",
|
|
690
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
691
|
+
"globals": "^17.6.0",
|
|
680
692
|
"i18next": "^26.0.4",
|
|
681
693
|
"libphonenumber-js": "^1.12.41",
|
|
682
694
|
"pdfjs-dist": "^5.6.205",
|
|
683
695
|
"playwright": "^1.59.1",
|
|
684
696
|
"postcss": "^8.5.9",
|
|
697
|
+
"prettier": "^3.8.3",
|
|
685
698
|
"react": "^18.3.1",
|
|
686
699
|
"react-apexcharts": "^2.0.0",
|
|
687
700
|
"react-dom": "^18.3.1",
|
|
@@ -692,9 +705,12 @@
|
|
|
692
705
|
"storybook-addon-pseudo-states": "^10.3.5",
|
|
693
706
|
"storybook-addon-rtl": "^3.0.1",
|
|
694
707
|
"storybook-react-i18next": "^10.1.2",
|
|
708
|
+
"stylelint": "^16.26.1",
|
|
709
|
+
"stylelint-config-standard": "^36.0.1",
|
|
695
710
|
"tailwindcss": "^4.2.2",
|
|
696
711
|
"tiptap-markdown": "^0.9.0",
|
|
697
712
|
"typescript": "^5.9.3",
|
|
713
|
+
"typescript-eslint": "^8.59.3",
|
|
698
714
|
"vite": "^6.4.2",
|
|
699
715
|
"vitest": "^4.1.4",
|
|
700
716
|
"vitest-axe": "^0.1.0"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const t = {
|
|
2
|
-
id: "accordion",
|
|
3
|
-
capabilities: ["expand", "select_single", "select_multiple"],
|
|
4
|
-
state: {},
|
|
5
|
-
actions: {},
|
|
6
|
-
domHooks: {
|
|
7
|
-
root: { attr: "data-component", value: "accordion" },
|
|
8
|
-
item: {
|
|
9
|
-
attr: "data-item-id",
|
|
10
|
-
description: "Each Accordion.Item emits its value as data-item-id."
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
t as a
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=accordion.agent-Cz-yglRa.js.map
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as N } from "react";
|
|
3
|
-
import { c as w } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as b } from "react-i18next";
|
|
5
|
-
import { I as M } from "./icon-button-Wnnde5lc.js";
|
|
6
|
-
import { S as T } from "./skeleton-dtqyF09N.js";
|
|
7
|
-
import { E as A } from "./empty-state-DQPtRp2b.js";
|
|
8
|
-
import { A as z } from "./agenda-card-DIWDvWum.js";
|
|
9
|
-
import { c as j } from "./createLucideIcon-CrFbzy84.js";
|
|
10
|
-
import { P as C } from "./plus-CYKNmfuA.js";
|
|
11
|
-
/**
|
|
12
|
-
* @license lucide-react v1.8.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
|
17
|
-
const E = [
|
|
18
|
-
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
19
|
-
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
20
|
-
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
21
|
-
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
22
|
-
["path", { d: "M8 14h.01", key: "6423bh" }],
|
|
23
|
-
["path", { d: "M12 14h.01", key: "1etili" }],
|
|
24
|
-
["path", { d: "M16 14h.01", key: "1gbofw" }],
|
|
25
|
-
["path", { d: "M8 18h.01", key: "lrp35t" }],
|
|
26
|
-
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
27
|
-
["path", { d: "M16 18h.01", key: "kzsmim" }]
|
|
28
|
-
], I = j("calendar-days", E), S = w(
|
|
29
|
-
[
|
|
30
|
-
"ds:flex ds:flex-col",
|
|
31
|
-
"ds:rounded-[var(--radius-md)] ds:shadow-[var(--shadow-card)]",
|
|
32
|
-
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
33
|
-
"ds:overflow-hidden"
|
|
34
|
-
].join(" "),
|
|
35
|
-
{
|
|
36
|
-
variants: {
|
|
37
|
-
size: {
|
|
38
|
-
sm: "",
|
|
39
|
-
md: ""
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
size: "sm"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
), L = N(
|
|
47
|
-
({
|
|
48
|
-
items: t,
|
|
49
|
-
title: m,
|
|
50
|
-
caption: i,
|
|
51
|
-
size: n = "sm",
|
|
52
|
-
onOpenAppointment: p,
|
|
53
|
-
onAddAppointment: o,
|
|
54
|
-
addLabel: h,
|
|
55
|
-
loading: l = !1,
|
|
56
|
-
emptyTitle: y,
|
|
57
|
-
emptyDescription: f,
|
|
58
|
-
className: g,
|
|
59
|
-
...v
|
|
60
|
-
}, u) => {
|
|
61
|
-
const { t: e } = b(), c = m ?? e("ui.agendaTray.title", "Today's appointments"), x = h ?? e("ui.agendaTray.add", "Add appointment"), k = !l && t.length === 0;
|
|
62
|
-
let s;
|
|
63
|
-
return l ? s = /* @__PURE__ */ a("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [0, 1, 2].map((d) => /* @__PURE__ */ a(T, { variant: "rectangular", height: "2.5rem" }, d)) }) : k ? s = /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ a(
|
|
64
|
-
A,
|
|
65
|
-
{
|
|
66
|
-
variant: "first-use",
|
|
67
|
-
size: "sm",
|
|
68
|
-
title: y ?? e("ui.agendaTray.empty.title", "No appointments"),
|
|
69
|
-
description: f ?? e(
|
|
70
|
-
"ui.agendaTray.empty.description",
|
|
71
|
-
"New appointments will appear here."
|
|
72
|
-
)
|
|
73
|
-
}
|
|
74
|
-
) }) : s = /* @__PURE__ */ a("ul", { className: "ds:flex ds:list-none ds:flex-col", children: t.map((d) => /* @__PURE__ */ a(
|
|
75
|
-
z,
|
|
76
|
-
{
|
|
77
|
-
item: d,
|
|
78
|
-
size: n,
|
|
79
|
-
onActivate: p
|
|
80
|
-
},
|
|
81
|
-
d.id
|
|
82
|
-
)) }), /* @__PURE__ */ r(
|
|
83
|
-
"section",
|
|
84
|
-
{
|
|
85
|
-
ref: u,
|
|
86
|
-
"aria-label": c,
|
|
87
|
-
"data-component": "agenda-tray",
|
|
88
|
-
className: S({ size: n, className: g }),
|
|
89
|
-
...v,
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ r("header", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]", children: [
|
|
92
|
-
/* @__PURE__ */ r("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:min-w-0", children: [
|
|
93
|
-
/* @__PURE__ */ r("h3", { className: "ds:m-0 ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-card", children: [
|
|
94
|
-
/* @__PURE__ */ a(I, { "aria-hidden": "true", className: "ds:size-4" }),
|
|
95
|
-
c
|
|
96
|
-
] }),
|
|
97
|
-
i ? /* @__PURE__ */ a("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: i }) : null
|
|
98
|
-
] }),
|
|
99
|
-
o ? /* @__PURE__ */ a(
|
|
100
|
-
M,
|
|
101
|
-
{
|
|
102
|
-
icon: /* @__PURE__ */ a(C, {}),
|
|
103
|
-
intent: "outline",
|
|
104
|
-
size: "sm",
|
|
105
|
-
"aria-label": x,
|
|
106
|
-
onClick: o
|
|
107
|
-
}
|
|
108
|
-
) : null
|
|
109
|
-
] }),
|
|
110
|
-
s
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
L.displayName = "AgendaTray";
|
|
117
|
-
export {
|
|
118
|
-
L as A
|
|
119
|
-
};
|
|
120
|
-
//# sourceMappingURL=agenda-tray-BqQZwiHc.js.map
|
|
@@ -1,380 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Hs, useId as Es, useRef as U, useCallback as v, useState as g, useLayoutEffect as Os } from "react";
|
|
3
|
-
import { c as js } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as ts } from "react-i18next";
|
|
5
|
-
import { _ as h } from "./index-4xgbg-sn.js";
|
|
6
|
-
import { u as Ds } from "./index-CeY1nNvd.js";
|
|
7
|
-
import { I as rs } from "./icon-button-Wnnde5lc.js";
|
|
8
|
-
import { S as Ks } from "./select-IY_JQa-F.js";
|
|
9
|
-
import { S as Ls } from "./send-CySZIRPJ.js";
|
|
10
|
-
import { X as Ps } from "./x-CCcI3eJp.js";
|
|
11
|
-
const Ws = js(
|
|
12
|
-
[
|
|
13
|
-
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full",
|
|
14
|
-
"ds:rounded-[var(--radius-md)] ds:border ds:border-border ds:bg-background",
|
|
15
|
-
"ds:transition-[border-color] ds:duration-[var(--animation-duration)]",
|
|
16
|
-
"ds:focus-within:border-[color:var(--primary)]",
|
|
17
|
-
"ds:motion-reduce:transition-none"
|
|
18
|
-
].join(" "),
|
|
19
|
-
{
|
|
20
|
-
variants: {
|
|
21
|
-
size: {
|
|
22
|
-
sm: "ds:text-[length:var(--font-size-sm)]",
|
|
23
|
-
md: "ds:text-[length:var(--font-size-base)]",
|
|
24
|
-
lg: "ds:text-[length:var(--font-size-lg)]"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
defaultVariants: { size: "md" }
|
|
28
|
-
}
|
|
29
|
-
), Qs = Hs(
|
|
30
|
-
({
|
|
31
|
-
commands: d = [],
|
|
32
|
-
models: l,
|
|
33
|
-
defaultModelId: B,
|
|
34
|
-
modelId: Z,
|
|
35
|
-
onModelChange: T,
|
|
36
|
-
maxSize: b,
|
|
37
|
-
accept: ns,
|
|
38
|
-
context: V,
|
|
39
|
-
onContextDismiss: x,
|
|
40
|
-
onSubmit: y,
|
|
41
|
-
onAttach: N,
|
|
42
|
-
onAttachmentRejected: I,
|
|
43
|
-
minRows: $ = 2,
|
|
44
|
-
maxRows: _ = 8,
|
|
45
|
-
value: q,
|
|
46
|
-
defaultValue: C,
|
|
47
|
-
size: is = "md",
|
|
48
|
-
disabled: X,
|
|
49
|
-
className: os,
|
|
50
|
-
placeholder: ds,
|
|
51
|
-
onChange: H,
|
|
52
|
-
onKeyDown: E,
|
|
53
|
-
onCompositionStart: O,
|
|
54
|
-
onCompositionEnd: j,
|
|
55
|
-
onPaste: D,
|
|
56
|
-
id: ls,
|
|
57
|
-
...cs
|
|
58
|
-
}, f) => {
|
|
59
|
-
var es;
|
|
60
|
-
const { t: i } = ts(), ps = Es(), K = U(null), k = U(!1), us = U(null), ms = v(
|
|
61
|
-
(s) => {
|
|
62
|
-
K.current = s, typeof f == "function" ? f(s) : f && (f.current = s);
|
|
63
|
-
},
|
|
64
|
-
[f]
|
|
65
|
-
), u = q !== void 0, [fs, L] = g(
|
|
66
|
-
String(C ?? "")
|
|
67
|
-
), n = u ? String(q) : fs, [m, P] = g([]), [z, w] = g(!1), [vs, S] = g(""), [gs, hs] = g(
|
|
68
|
-
B ?? ((es = l == null ? void 0 : l[0]) == null ? void 0 : es.id) ?? ""
|
|
69
|
-
), Y = Z !== void 0, W = Y ? Z : gs, A = v(() => {
|
|
70
|
-
const s = K.current;
|
|
71
|
-
if (!s) return;
|
|
72
|
-
const e = window.getComputedStyle(s), r = parseFloat(e.lineHeight) || 24, t = parseFloat(e.paddingTop) || 0, c = parseFloat(e.paddingBottom) || 0, o = parseFloat(e.borderTopWidth) || 0, Q = parseFloat(e.borderBottomWidth) || 0, M = t + c + o + Q, Vs = r * $ + M, as = r * _ + M;
|
|
73
|
-
s.style.height = "auto";
|
|
74
|
-
const $s = Math.max(Vs, Math.min(s.scrollHeight, as));
|
|
75
|
-
s.style.height = `${$s}px`, s.style.overflowY = s.scrollHeight > as ? "auto" : "hidden";
|
|
76
|
-
}, [$, _]);
|
|
77
|
-
Os(() => {
|
|
78
|
-
A();
|
|
79
|
-
}, [A, n]);
|
|
80
|
-
const bs = v(
|
|
81
|
-
(s, e) => {
|
|
82
|
-
const t = s.slice(0, e).lastIndexOf(`
|
|
83
|
-
`) + 1, c = s.slice(t, e);
|
|
84
|
-
if (c.startsWith("/")) {
|
|
85
|
-
const o = c.slice(1);
|
|
86
|
-
if (!/\s/.test(o)) {
|
|
87
|
-
w(!0), S(o);
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
w(!1), S("");
|
|
92
|
-
},
|
|
93
|
-
[]
|
|
94
|
-
), xs = (s) => {
|
|
95
|
-
if (u || L(s.target.value), k.current) return;
|
|
96
|
-
H == null || H(s);
|
|
97
|
-
const e = s.target.selectionStart ?? s.target.value.length;
|
|
98
|
-
bs(s.target.value, e);
|
|
99
|
-
}, ys = (s) => {
|
|
100
|
-
k.current = !0, O == null || O(s);
|
|
101
|
-
}, Ns = (s) => {
|
|
102
|
-
k.current = !1, j == null || j(s);
|
|
103
|
-
}, Is = (s) => s.nativeEvent.isComposing || s.keyCode === 229 || k.current, G = v(() => {
|
|
104
|
-
if (!n.trim() && m.length === 0) return;
|
|
105
|
-
let e, r = n;
|
|
106
|
-
const t = n.match(/^\/(\S+)\s?/);
|
|
107
|
-
t && (e = t[1], r = n.slice(t[0].length)), y == null || y({
|
|
108
|
-
text: r,
|
|
109
|
-
command: e,
|
|
110
|
-
attachments: m,
|
|
111
|
-
modelId: W || void 0
|
|
112
|
-
}), u || L(""), P([]);
|
|
113
|
-
}, [n, m, y, W, u]), ks = (s) => {
|
|
114
|
-
if (E == null || E(s), !s.defaultPrevented && !Is(s)) {
|
|
115
|
-
if (z && s.key === "Escape") {
|
|
116
|
-
s.preventDefault(), w(!1);
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
s.key === "Enter" && (s.metaKey || s.ctrlKey) && (s.preventDefault(), G());
|
|
120
|
-
}
|
|
121
|
-
}, zs = (s) => {
|
|
122
|
-
const e = K.current;
|
|
123
|
-
if (!e) return;
|
|
124
|
-
const r = e.selectionStart ?? n.length, c = n.slice(0, r).lastIndexOf(`
|
|
125
|
-
`) + 1;
|
|
126
|
-
let o = r;
|
|
127
|
-
for (; o < n.length && !/\s/.test(n[o]); )
|
|
128
|
-
o += 1;
|
|
129
|
-
const Q = n.slice(o), M = n.slice(0, c) + `/${s.id} ` + Q;
|
|
130
|
-
u || L(M), w(!1), S(""), queueMicrotask(() => e.focus());
|
|
131
|
-
}, ws = (s) => {
|
|
132
|
-
if (D == null || D(s), s.defaultPrevented) return;
|
|
133
|
-
const { clipboardData: e } = s;
|
|
134
|
-
if (!e) return;
|
|
135
|
-
const r = [];
|
|
136
|
-
for (let t = 0; t < e.items.length; t += 1) {
|
|
137
|
-
const c = e.items[t];
|
|
138
|
-
if (c.kind === "file") {
|
|
139
|
-
const o = c.getAsFile();
|
|
140
|
-
o && r.push(o);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
r.length > 0 && (s.preventDefault(), J(r));
|
|
144
|
-
}, J = v(
|
|
145
|
-
(s) => {
|
|
146
|
-
var r;
|
|
147
|
-
const e = [];
|
|
148
|
-
for (const t of s) {
|
|
149
|
-
if (typeof b == "number" && t.size > b) {
|
|
150
|
-
I == null || I(
|
|
151
|
-
i("ui.chat.attachment.rejected", { reason: "size" })
|
|
152
|
-
);
|
|
153
|
-
continue;
|
|
154
|
-
}
|
|
155
|
-
e.push({ id: ((r = crypto.randomUUID) == null ? void 0 : r.call(crypto)) ?? `att-${Math.random()}`, file: t });
|
|
156
|
-
}
|
|
157
|
-
e.length > 0 && (P((t) => [...t, ...e]), N == null || N(e.map((t) => t.file)));
|
|
158
|
-
},
|
|
159
|
-
[b, N, I, i]
|
|
160
|
-
), { getRootProps: Ss, getInputProps: Fs, isDragActive: Ms } = Ds({
|
|
161
|
-
onDrop: J,
|
|
162
|
-
maxSize: b,
|
|
163
|
-
accept: ns,
|
|
164
|
-
noClick: !0,
|
|
165
|
-
noKeyboard: !0
|
|
166
|
-
}), Bs = (s) => {
|
|
167
|
-
P((e) => e.filter((r) => r.id !== s));
|
|
168
|
-
}, F = ls ?? ps, R = `${F}-label`, ss = `${F}-slash-list`, Ts = (l == null ? void 0 : l.map((s) => ({ value: s.id, label: s.label }))) ?? [];
|
|
169
|
-
return /* @__PURE__ */ p(
|
|
170
|
-
"div",
|
|
171
|
-
{
|
|
172
|
-
...Ss({
|
|
173
|
-
className: [
|
|
174
|
-
Ws({ size: is, className: os }),
|
|
175
|
-
Ms ? "ds:outline ds:outline-dashed ds:outline-[color:var(--primary)] ds:outline-offset-2 ds:bg-[color:var(--primary)]/5" : ""
|
|
176
|
-
].join(" ")
|
|
177
|
-
}),
|
|
178
|
-
"aria-label": i("ui.chat.attachmentZone"),
|
|
179
|
-
"data-component": "ai-prompt-input",
|
|
180
|
-
children: [
|
|
181
|
-
/* @__PURE__ */ a("input", { ...Fs() }),
|
|
182
|
-
V ? /* @__PURE__ */ a("div", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)]", children: /* @__PURE__ */ a(
|
|
183
|
-
"button",
|
|
184
|
-
{
|
|
185
|
-
type: "button",
|
|
186
|
-
"aria-label": i("ui.chat.contextActive", { name: V }),
|
|
187
|
-
onClick: x,
|
|
188
|
-
onKeyDown: (s) => {
|
|
189
|
-
(s.key === "Backspace" || s.key === "Delete") && (s.preventDefault(), x == null || x());
|
|
190
|
-
},
|
|
191
|
-
className: [
|
|
192
|
-
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
193
|
-
"ds:rounded-[var(--radius-full)] ds:border ds:border-[color:var(--accent)]/30",
|
|
194
|
-
"ds:bg-[color:var(--accent)]/10 ds:text-[color:var(--foreground)]",
|
|
195
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
196
|
-
"ds:min-h-[var(--min-target-size)]",
|
|
197
|
-
"type-body-sm",
|
|
198
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)]",
|
|
199
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
200
|
-
].join(" "),
|
|
201
|
-
children: i("ui.chat.contextActive", { name: V })
|
|
202
|
-
}
|
|
203
|
-
) }) : null,
|
|
204
|
-
/* @__PURE__ */ a("label", { id: R, htmlFor: F, className: "ds:sr-only", children: i("ui.chat.prompt") }),
|
|
205
|
-
/* @__PURE__ */ p("div", { className: "ds:relative", children: [
|
|
206
|
-
/* @__PURE__ */ a(
|
|
207
|
-
"textarea",
|
|
208
|
-
{
|
|
209
|
-
ref: ms,
|
|
210
|
-
id: F,
|
|
211
|
-
rows: $,
|
|
212
|
-
value: u ? n : void 0,
|
|
213
|
-
defaultValue: u ? void 0 : C,
|
|
214
|
-
disabled: X,
|
|
215
|
-
placeholder: ds ?? i("ui.chat.input.placeholder"),
|
|
216
|
-
"aria-labelledby": R,
|
|
217
|
-
"aria-controls": z ? ss : void 0,
|
|
218
|
-
"aria-expanded": z,
|
|
219
|
-
onChange: xs,
|
|
220
|
-
onKeyDown: ks,
|
|
221
|
-
onPaste: ws,
|
|
222
|
-
onCompositionStart: ys,
|
|
223
|
-
onCompositionEnd: Ns,
|
|
224
|
-
className: [
|
|
225
|
-
"ds:w-full ds:resize-none ds:bg-transparent ds:outline-none",
|
|
226
|
-
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]",
|
|
227
|
-
"ds:placeholder:text-[color:var(--muted-foreground)]",
|
|
228
|
-
"ds:leading-[var(--line-height-base)]",
|
|
229
|
-
"ds:disabled:opacity-50 ds:disabled:cursor-not-allowed"
|
|
230
|
-
].join(" "),
|
|
231
|
-
...cs
|
|
232
|
-
}
|
|
233
|
-
),
|
|
234
|
-
z ? /* @__PURE__ */ a(
|
|
235
|
-
"div",
|
|
236
|
-
{
|
|
237
|
-
ref: us,
|
|
238
|
-
className: [
|
|
239
|
-
"ds:absolute ds:start-[var(--spacing-md)] ds:top-full ds:z-50",
|
|
240
|
-
"ds:mt-[var(--spacing-xs)]",
|
|
241
|
-
"ds:min-w-[240px] ds:rounded-[var(--radius-md)] ds:border ds:border-border",
|
|
242
|
-
"ds:bg-[color:var(--popover)] ds:text-[color:var(--popover-foreground)]",
|
|
243
|
-
"ds:shadow-[var(--shadow-md)]",
|
|
244
|
-
// Match the Dialog / DropdownMenu open pattern: fade + scale
|
|
245
|
-
// in from 95%. Origin set to the block-start so the menu
|
|
246
|
-
// appears to expand from the textarea it sits beneath.
|
|
247
|
-
"ds:origin-top ds:motion-safe:animate-in ds:motion-safe:fade-in-0 ds:motion-safe:zoom-in-95",
|
|
248
|
-
"ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]"
|
|
249
|
-
].join(" "),
|
|
250
|
-
id: ss,
|
|
251
|
-
children: /* @__PURE__ */ p(h, { label: i("ui.chat.slashMenu.label"), loop: !0, children: [
|
|
252
|
-
/* @__PURE__ */ a(
|
|
253
|
-
h.Input,
|
|
254
|
-
{
|
|
255
|
-
value: vs,
|
|
256
|
-
onValueChange: S,
|
|
257
|
-
className: "ds:sr-only"
|
|
258
|
-
}
|
|
259
|
-
),
|
|
260
|
-
/* @__PURE__ */ p(h.List, { className: "ds:max-h-60 ds:overflow-y-auto ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
|
|
261
|
-
/* @__PURE__ */ a(h.Empty, { className: "type-body-sm ds:text-[color:var(--muted-foreground)] ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-sm)]", children: i("ui.chat.slashMenu.empty") }),
|
|
262
|
-
d.map((s) => /* @__PURE__ */ p(
|
|
263
|
-
h.Item,
|
|
264
|
-
{
|
|
265
|
-
value: s.id,
|
|
266
|
-
onSelect: () => zs(s),
|
|
267
|
-
className: [
|
|
268
|
-
"ds:flex ds:flex-col ds:gap-[2px]",
|
|
269
|
-
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
270
|
-
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
271
|
-
"type-body-sm ds:cursor-pointer",
|
|
272
|
-
"ds:aria-selected:bg-muted/20",
|
|
273
|
-
"ds:data-[selected=true]:bg-muted/20"
|
|
274
|
-
].join(" "),
|
|
275
|
-
children: [
|
|
276
|
-
/* @__PURE__ */ p("span", { className: "ds:font-medium", children: [
|
|
277
|
-
"/",
|
|
278
|
-
s.id
|
|
279
|
-
] }),
|
|
280
|
-
s.description ? /* @__PURE__ */ a("span", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: s.description }) : null
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
s.id
|
|
284
|
-
))
|
|
285
|
-
] })
|
|
286
|
-
] })
|
|
287
|
-
}
|
|
288
|
-
) : null
|
|
289
|
-
] }),
|
|
290
|
-
m.length > 0 ? /* @__PURE__ */ a(
|
|
291
|
-
"div",
|
|
292
|
-
{
|
|
293
|
-
role: "group",
|
|
294
|
-
"aria-label": i("ui.chat.attachmentZone"),
|
|
295
|
-
className: "ds:flex ds:flex-wrap ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
296
|
-
children: m.map((s) => /* @__PURE__ */ a(
|
|
297
|
-
Zs,
|
|
298
|
-
{
|
|
299
|
-
file: s.file,
|
|
300
|
-
onRemove: () => Bs(s.id)
|
|
301
|
-
},
|
|
302
|
-
s.id
|
|
303
|
-
))
|
|
304
|
-
}
|
|
305
|
-
) : null,
|
|
306
|
-
/* @__PURE__ */ p("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: [
|
|
307
|
-
l && l.length > 0 ? /* @__PURE__ */ a("div", { className: "ds:me-auto ds:min-w-[140px]", children: /* @__PURE__ */ a(
|
|
308
|
-
Ks,
|
|
309
|
-
{
|
|
310
|
-
"aria-label": i("ui.chat.model.select"),
|
|
311
|
-
options: Ts,
|
|
312
|
-
value: W || "",
|
|
313
|
-
onValueChange: (s) => {
|
|
314
|
-
Y || hs(s), T == null || T(s);
|
|
315
|
-
},
|
|
316
|
-
size: "sm"
|
|
317
|
-
}
|
|
318
|
-
) }) : /* @__PURE__ */ a("div", { className: "ds:me-auto" }),
|
|
319
|
-
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: i("ui.chat.input.sendHint") }),
|
|
320
|
-
/* @__PURE__ */ a(
|
|
321
|
-
rs,
|
|
322
|
-
{
|
|
323
|
-
icon: /* @__PURE__ */ a(Ls, {}),
|
|
324
|
-
"aria-label": i("ui.chat.send"),
|
|
325
|
-
intent: "primary",
|
|
326
|
-
size: "sm",
|
|
327
|
-
disabled: X || !n.trim() && m.length === 0,
|
|
328
|
-
onClick: G,
|
|
329
|
-
"aria-keyshortcuts": "Meta+Enter Control+Enter"
|
|
330
|
-
}
|
|
331
|
-
)
|
|
332
|
-
] })
|
|
333
|
-
]
|
|
334
|
-
}
|
|
335
|
-
);
|
|
336
|
-
}
|
|
337
|
-
);
|
|
338
|
-
Qs.displayName = "AIPromptInput";
|
|
339
|
-
function Us(d) {
|
|
340
|
-
return d < 1024 ? `${d} B` : d < 1024 * 1024 ? `${(d / 1024).toFixed(1)} KB` : `${(d / (1024 * 1024)).toFixed(1)} MB`;
|
|
341
|
-
}
|
|
342
|
-
function Zs({
|
|
343
|
-
file: d,
|
|
344
|
-
onRemove: l
|
|
345
|
-
}) {
|
|
346
|
-
const { t: B } = ts();
|
|
347
|
-
return /* @__PURE__ */ p(
|
|
348
|
-
"span",
|
|
349
|
-
{
|
|
350
|
-
className: [
|
|
351
|
-
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
352
|
-
"ds:rounded-[var(--radius-full)] ds:bg-muted/30",
|
|
353
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-xs)]",
|
|
354
|
-
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
355
|
-
"type-meta",
|
|
356
|
-
// Entrance when a file is attached via drop / paste / picker.
|
|
357
|
-
"ds:motion-safe:animate-in ds:motion-safe:fade-in-0 ds:motion-safe:slide-in-from-bottom-1",
|
|
358
|
-
"ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]"
|
|
359
|
-
].join(" "),
|
|
360
|
-
children: [
|
|
361
|
-
/* @__PURE__ */ a("span", { className: "ds:truncate ds:max-w-[16ch]", children: d.name }),
|
|
362
|
-
/* @__PURE__ */ a("span", { className: "ds:text-[color:var(--muted-foreground)] ds:tabular-nums", children: Us(d.size) }),
|
|
363
|
-
/* @__PURE__ */ a(
|
|
364
|
-
rs,
|
|
365
|
-
{
|
|
366
|
-
icon: /* @__PURE__ */ a(Ps, {}),
|
|
367
|
-
"aria-label": B("ui.chat.attachment.remove", { name: d.name }),
|
|
368
|
-
intent: "ghost",
|
|
369
|
-
size: "sm",
|
|
370
|
-
onClick: l
|
|
371
|
-
}
|
|
372
|
-
)
|
|
373
|
-
]
|
|
374
|
-
}
|
|
375
|
-
);
|
|
376
|
-
}
|
|
377
|
-
export {
|
|
378
|
-
Qs as A
|
|
379
|
-
};
|
|
380
|
-
//# sourceMappingURL=ai-prompt-input-CI27KmZ1.js.map
|