@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,328 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as d, Fragment as S } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as te, useState as I, useCallback as V, useLayoutEffect as ae, useEffect as R, useRef as B } from "react";
|
|
3
|
-
import * as f from "@radix-ui/react-popover";
|
|
4
|
-
import { c as y } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as E } from "react-i18next";
|
|
6
|
-
import { I as se } from "./icon-button-Wnnde5lc.js";
|
|
7
|
-
import { B as L } from "./button-7mLWcMp_.js";
|
|
8
|
-
import { S as P } from "./separator-B4wXDLNC.js";
|
|
9
|
-
import { S as u } from "./skeleton-dtqyF09N.js";
|
|
10
|
-
import { N as ie } from "./notification-card-BF2_veHy.js";
|
|
11
|
-
import { c as ne } from "./createLucideIcon-CrFbzy84.js";
|
|
12
|
-
/**
|
|
13
|
-
* @license lucide-react v1.8.0 - ISC
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the ISC license.
|
|
16
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/
|
|
18
|
-
const oe = [
|
|
19
|
-
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
20
|
-
[
|
|
21
|
-
"path",
|
|
22
|
-
{
|
|
23
|
-
d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
|
|
24
|
-
key: "11g9vi"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
], A = ne("bell", oe), re = y("ds:relative ds:inline-flex ds:items-center", {
|
|
28
|
-
variants: {
|
|
29
|
-
size: {
|
|
30
|
-
sm: "",
|
|
31
|
-
md: ""
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
defaultVariants: {
|
|
35
|
-
size: "md"
|
|
36
|
-
}
|
|
37
|
-
}), de = y(
|
|
38
|
-
[
|
|
39
|
-
"ds:flex ds:flex-col",
|
|
40
|
-
"ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
|
|
41
|
-
// Border kept (transparent) so the forced-colors override below can
|
|
42
|
-
// repaint a visible edge in HCM. In normal modes the soft drop-shadow
|
|
43
|
-
// carries the edge cue.
|
|
44
|
-
"ds:border ds:border-transparent",
|
|
45
|
-
"ds:rounded-[var(--radius-md)]",
|
|
46
|
-
"ds:shadow-[var(--shadow-lg)]",
|
|
47
|
-
"ds:z-[var(--z-popover)]",
|
|
48
|
-
// Width: fluid below the design cap so narrow viewports keep a visible
|
|
49
|
-
// gutter on *both* sides of the panel (shadow included). The legacy
|
|
50
|
-
// `min-w` approach clamped at 20rem, which flush-mounted the panel
|
|
51
|
-
// against the inline-start viewport edge on phones.
|
|
52
|
-
"ds:w-[min(24rem,calc(100vw-2*var(--spacing-md)))]",
|
|
53
|
-
// Height: below the `sm` breakpoint the panel takes a near-full-screen
|
|
54
|
-
// sheet shape so the user gets room to triage messages / notifications
|
|
55
|
-
// without scrolling a tiny popover. `6rem` reserves space for the
|
|
56
|
-
// Header (≈4rem) plus the sideOffset + collisionPadding (≈2rem).
|
|
57
|
-
// Above `sm` it returns to `h-auto` so the list's own
|
|
58
|
-
// `--*-tray-max-block-size` cap governs the height.
|
|
59
|
-
"ds:h-[calc(100dvh-6rem)] ds:sm:h-auto",
|
|
60
|
-
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
61
|
-
"ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
|
|
62
|
-
"ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
|
|
63
|
-
"ds:motion-reduce:transition-none ds:motion-reduce:animate-none",
|
|
64
|
-
"ds:focus-visible:outline-none",
|
|
65
|
-
"ds:forced-colors:border-[CanvasText]"
|
|
66
|
-
].join(" "),
|
|
67
|
-
{
|
|
68
|
-
variants: {
|
|
69
|
-
size: {
|
|
70
|
-
sm: "ds:p-[var(--spacing-xs)]",
|
|
71
|
-
md: "ds:p-[var(--spacing-sm)]"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
defaultVariants: {
|
|
75
|
-
size: "md"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
), ce = y(
|
|
79
|
-
[
|
|
80
|
-
// Anchored to the top-end corner of the trigger, nudged outward so
|
|
81
|
-
// the bell icon isn't covered.
|
|
82
|
-
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
83
|
-
"ds:inline-flex ds:items-center ds:justify-center",
|
|
84
|
-
// Circle at 1-2 digits; widens into a pill only for "99+".
|
|
85
|
-
"ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))] ds:h-[calc(var(--spacing-md)+var(--spacing-xs))] ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
|
|
86
|
-
"ds:rounded-[var(--radius-full)]",
|
|
87
|
-
"ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
|
|
88
|
-
"ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
|
|
89
|
-
"ds:pointer-events-none ds:select-none",
|
|
90
|
-
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
91
|
-
].join(" ")
|
|
92
|
-
);
|
|
93
|
-
function le(a, p) {
|
|
94
|
-
return a > 99 ? p : String(a);
|
|
95
|
-
}
|
|
96
|
-
function h() {
|
|
97
|
-
return /* @__PURE__ */ d(
|
|
98
|
-
"div",
|
|
99
|
-
{
|
|
100
|
-
"aria-hidden": "true",
|
|
101
|
-
className: "ds:flex ds:items-start ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]",
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ e(u, { variant: "circular", size: "sm" }),
|
|
104
|
-
/* @__PURE__ */ d("div", { className: "ds:flex-1 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
105
|
-
/* @__PURE__ */ e(u, { variant: "text", size: "md", width: "70%" }),
|
|
106
|
-
/* @__PURE__ */ e(u, { variant: "text", size: "sm", width: "90%" }),
|
|
107
|
-
/* @__PURE__ */ e(u, { variant: "text", size: "sm", width: "30%" })
|
|
108
|
-
] })
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
function me() {
|
|
114
|
-
const { t: a } = E();
|
|
115
|
-
return /* @__PURE__ */ d(
|
|
116
|
-
"div",
|
|
117
|
-
{
|
|
118
|
-
role: "status",
|
|
119
|
-
"aria-live": "polite",
|
|
120
|
-
className: "ds:flex ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)] ds:p-[var(--spacing-lg)] ds:text-center",
|
|
121
|
-
children: [
|
|
122
|
-
/* @__PURE__ */ e(
|
|
123
|
-
"span",
|
|
124
|
-
{
|
|
125
|
-
"aria-hidden": "true",
|
|
126
|
-
className: "ds:inline-flex ds:items-center ds:justify-center ds:size-10 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ds:[&>svg]:size-5",
|
|
127
|
-
children: /* @__PURE__ */ e(A, {})
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
/* @__PURE__ */ e("p", { className: "type-title-item ds:text-[color:var(--foreground)]", children: a("ui.notificationTray.noNotifications", "No notifications") }),
|
|
131
|
-
/* @__PURE__ */ e("p", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: a(
|
|
132
|
-
"ui.notificationTray.noNotificationsDescription",
|
|
133
|
-
"You're all caught up."
|
|
134
|
-
) })
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
const fe = te(
|
|
140
|
-
({
|
|
141
|
-
items: a,
|
|
142
|
-
unseenCount: p,
|
|
143
|
-
open: N,
|
|
144
|
-
onOpenChange: c,
|
|
145
|
-
onItemClick: D,
|
|
146
|
-
onDismiss: F,
|
|
147
|
-
onMarkAllRead: b,
|
|
148
|
-
loading: M = !1,
|
|
149
|
-
maxVisible: O,
|
|
150
|
-
viewAllLabel: w,
|
|
151
|
-
onViewAll: _,
|
|
152
|
-
align: W = "end",
|
|
153
|
-
side: Y = "bottom",
|
|
154
|
-
size: v = "md",
|
|
155
|
-
className: q,
|
|
156
|
-
...G
|
|
157
|
-
}, H) => {
|
|
158
|
-
var k;
|
|
159
|
-
const { t: o } = E(), g = N !== void 0, [J, K] = I(!1), Q = g ? N : J, U = V(
|
|
160
|
-
(t) => {
|
|
161
|
-
g || K(t), c == null || c(t);
|
|
162
|
-
},
|
|
163
|
-
[g, c]
|
|
164
|
-
), [l, T] = I(
|
|
165
|
-
() => a.map((t) => ({ item: t, leaving: !1 }))
|
|
166
|
-
), z = V(() => {
|
|
167
|
-
if (typeof window > "u") return 200;
|
|
168
|
-
const t = window.getComputedStyle(document.documentElement).getPropertyValue("--animation-duration");
|
|
169
|
-
if (!t) return 200;
|
|
170
|
-
const i = t.trim(), s = parseFloat(i);
|
|
171
|
-
return Number.isFinite(s) ? i.endsWith("ms") ? s : s * 1e3 : 200;
|
|
172
|
-
}, []);
|
|
173
|
-
ae(() => {
|
|
174
|
-
T((t) => {
|
|
175
|
-
const i = new Set(a.map((n) => n.id)), s = new Set(t.map((n) => n.item.id)), r = t.map((n) => {
|
|
176
|
-
if (i.has(n.item.id)) {
|
|
177
|
-
const j = a.find((ee) => ee.id === n.item.id);
|
|
178
|
-
return j ? { item: j, leaving: !1 } : { ...n, leaving: !0 };
|
|
179
|
-
}
|
|
180
|
-
return { ...n, leaving: !0 };
|
|
181
|
-
});
|
|
182
|
-
for (const n of a)
|
|
183
|
-
s.has(n.id) || r.push({ item: n, leaving: !1 });
|
|
184
|
-
return r;
|
|
185
|
-
});
|
|
186
|
-
}, [a]), R(() => {
|
|
187
|
-
if (!l.some((s) => s.leaving)) return;
|
|
188
|
-
const t = z(), i = setTimeout(() => {
|
|
189
|
-
T((s) => s.filter((r) => !r.leaving));
|
|
190
|
-
}, t);
|
|
191
|
-
return () => clearTimeout(i);
|
|
192
|
-
}, [l, z]);
|
|
193
|
-
const x = B(null), C = B((k = a[0]) == null ? void 0 : k.id);
|
|
194
|
-
R(() => {
|
|
195
|
-
var s;
|
|
196
|
-
const t = (s = a[0]) == null ? void 0 : s.id, i = C.current;
|
|
197
|
-
if (i && t && i !== t && x.current) {
|
|
198
|
-
const r = a[0];
|
|
199
|
-
r && !r.read && (x.current.textContent = o(
|
|
200
|
-
"ui.notificationTray.newNotification",
|
|
201
|
-
{
|
|
202
|
-
title: r.title,
|
|
203
|
-
defaultValue: "New notification: {{title}}"
|
|
204
|
-
}
|
|
205
|
-
));
|
|
206
|
-
}
|
|
207
|
-
C.current = t;
|
|
208
|
-
}, [a, o]);
|
|
209
|
-
const m = p ?? 0, X = m > 0 ? o("ui.notificationTray.triggerLabel", {
|
|
210
|
-
count: m,
|
|
211
|
-
defaultValue: "Notifications, {{count}} unread"
|
|
212
|
-
}) : o(
|
|
213
|
-
"ui.notificationTray.triggerLabelNone",
|
|
214
|
-
"Notifications, none unread"
|
|
215
|
-
), Z = le(
|
|
216
|
-
m,
|
|
217
|
-
o("ui.notificationTray.badgeCountOverflow", "99+")
|
|
218
|
-
), $ = de({ size: v });
|
|
219
|
-
return /* @__PURE__ */ e(
|
|
220
|
-
"div",
|
|
221
|
-
{
|
|
222
|
-
ref: H,
|
|
223
|
-
"data-component": "notification-tray",
|
|
224
|
-
className: [re({ size: v }), q].filter(Boolean).join(" "),
|
|
225
|
-
...G,
|
|
226
|
-
children: /* @__PURE__ */ d(f.Root, { open: Q, onOpenChange: U, children: [
|
|
227
|
-
/* @__PURE__ */ e(f.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
228
|
-
se,
|
|
229
|
-
{
|
|
230
|
-
icon: /* @__PURE__ */ e(A, {}),
|
|
231
|
-
intent: "outline",
|
|
232
|
-
size: v === "sm" ? "sm" : "md",
|
|
233
|
-
"aria-label": X,
|
|
234
|
-
"aria-haspopup": "dialog"
|
|
235
|
-
}
|
|
236
|
-
) }),
|
|
237
|
-
m > 0 ? /* @__PURE__ */ e(
|
|
238
|
-
"span",
|
|
239
|
-
{
|
|
240
|
-
"aria-hidden": "true",
|
|
241
|
-
"data-testid": "notification-tray-badge",
|
|
242
|
-
className: ce(),
|
|
243
|
-
children: Z
|
|
244
|
-
}
|
|
245
|
-
) : null,
|
|
246
|
-
/* @__PURE__ */ e(
|
|
247
|
-
"div",
|
|
248
|
-
{
|
|
249
|
-
ref: x,
|
|
250
|
-
"aria-live": "polite",
|
|
251
|
-
"aria-atomic": "true",
|
|
252
|
-
className: "ds:sr-only"
|
|
253
|
-
}
|
|
254
|
-
),
|
|
255
|
-
/* @__PURE__ */ e(f.Portal, { children: /* @__PURE__ */ d(
|
|
256
|
-
f.Content,
|
|
257
|
-
{
|
|
258
|
-
role: "dialog",
|
|
259
|
-
"aria-label": o("ui.notificationTray.panelTitle", "Notifications"),
|
|
260
|
-
side: Y,
|
|
261
|
-
align: W,
|
|
262
|
-
sideOffset: 8,
|
|
263
|
-
collisionPadding: 16,
|
|
264
|
-
className: $,
|
|
265
|
-
children: [
|
|
266
|
-
/* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]", children: [
|
|
267
|
-
/* @__PURE__ */ e("h3", { className: "ds:m-0 type-title-card ds:text-[color:var(--foreground)]", children: o("ui.notificationTray.panelTitle", "Notifications") }),
|
|
268
|
-
b && a.some((t) => !t.read) ? /* @__PURE__ */ e(
|
|
269
|
-
L,
|
|
270
|
-
{
|
|
271
|
-
intent: "link",
|
|
272
|
-
size: "sm",
|
|
273
|
-
onClick: b,
|
|
274
|
-
className: "ds:text-[length:var(--font-size-xs)]",
|
|
275
|
-
children: o("ui.notificationTray.markAllRead", "Mark all as read")
|
|
276
|
-
}
|
|
277
|
-
) : null
|
|
278
|
-
] }),
|
|
279
|
-
/* @__PURE__ */ e(P, {}),
|
|
280
|
-
/* @__PURE__ */ e(
|
|
281
|
-
"div",
|
|
282
|
-
{
|
|
283
|
-
role: "list",
|
|
284
|
-
"data-max-visible": O,
|
|
285
|
-
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto ds:pt-[var(--spacing-xs)] ds:flex-1 ds:sm:flex-none ds:sm:[max-block-size:var(--notification-tray-max-block-size,24rem)]",
|
|
286
|
-
children: M ? /* @__PURE__ */ d(S, { children: [
|
|
287
|
-
/* @__PURE__ */ e(h, {}),
|
|
288
|
-
/* @__PURE__ */ e(h, {}),
|
|
289
|
-
/* @__PURE__ */ e(h, {})
|
|
290
|
-
] }) : l.length === 0 ? /* @__PURE__ */ e(me, {}) : l.map(({ item: t, leaving: i }) => /* @__PURE__ */ e(
|
|
291
|
-
ie,
|
|
292
|
-
{
|
|
293
|
-
item: t,
|
|
294
|
-
variant: "compact",
|
|
295
|
-
leaving: i,
|
|
296
|
-
onActivate: D,
|
|
297
|
-
onDismiss: F
|
|
298
|
-
},
|
|
299
|
-
t.id
|
|
300
|
-
))
|
|
301
|
-
}
|
|
302
|
-
),
|
|
303
|
-
w ? /* @__PURE__ */ d(S, { children: [
|
|
304
|
-
/* @__PURE__ */ e(P, {}),
|
|
305
|
-
/* @__PURE__ */ e("div", { className: "ds:pt-[var(--spacing-xs)]", children: /* @__PURE__ */ e(
|
|
306
|
-
L,
|
|
307
|
-
{
|
|
308
|
-
intent: "link",
|
|
309
|
-
size: "sm",
|
|
310
|
-
onClick: _,
|
|
311
|
-
className: "ds:w-full ds:justify-center",
|
|
312
|
-
children: w
|
|
313
|
-
}
|
|
314
|
-
) })
|
|
315
|
-
] }) : null
|
|
316
|
-
]
|
|
317
|
-
}
|
|
318
|
-
) })
|
|
319
|
-
] })
|
|
320
|
-
}
|
|
321
|
-
);
|
|
322
|
-
}
|
|
323
|
-
);
|
|
324
|
-
fe.displayName = "NotificationTray";
|
|
325
|
-
export {
|
|
326
|
-
fe as N
|
|
327
|
-
};
|
|
328
|
-
//# sourceMappingURL=notification-tray-B7U5YZYg.js.map
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { jsxs as le, jsx as I } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as ce, forwardRef as fe, useState as B, useCallback as $, useRef as me, useEffect as pe } from "react";
|
|
3
|
-
import { c as be } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as ve } from "react-i18next";
|
|
5
|
-
import { u as ge } from "./form-field-context-94LwgYTQ.js";
|
|
6
|
-
import { C as Ne } from "./chevron-down-BX_NP2Yh.js";
|
|
7
|
-
import { C as he } from "./chevron-up-zOEDrmBB.js";
|
|
8
|
-
function we(i) {
|
|
9
|
-
let r = "";
|
|
10
|
-
for (const a of i) {
|
|
11
|
-
const t = a.codePointAt(0);
|
|
12
|
-
t !== void 0 && (t >= 1632 && t <= 1641 ? r += String.fromCodePoint(48 + (t - 1632)) : t >= 1776 && t <= 1785 ? r += String.fromCodePoint(48 + (t - 1776)) : r += a);
|
|
13
|
-
}
|
|
14
|
-
return r;
|
|
15
|
-
}
|
|
16
|
-
function ye(i, r, a) {
|
|
17
|
-
return ce(() => {
|
|
18
|
-
var S, C;
|
|
19
|
-
const t = new Intl.NumberFormat(i).formatToParts(1234.5), d = ((S = t.find((u) => u.type === "decimal")) == null ? void 0 : S.value) ?? ".", F = ((C = t.find((u) => u.type === "group")) == null ? void 0 : C.value) ?? ",", c = r === "currency" ? new Intl.NumberFormat(i, {
|
|
20
|
-
style: "currency",
|
|
21
|
-
currency: a ?? "USD"
|
|
22
|
-
}) : r === "percentage" ? new Intl.NumberFormat(i, {
|
|
23
|
-
style: "percent",
|
|
24
|
-
maximumFractionDigits: 4
|
|
25
|
-
}) : r === "integer" ? new Intl.NumberFormat(i, { maximumFractionDigits: 0 }) : new Intl.NumberFormat(i, { maximumFractionDigits: 10 }), T = (u) => Number.isFinite(u) ? c.format(u) : "", P = (u) => {
|
|
26
|
-
if (!u) return NaN;
|
|
27
|
-
const M = we(u), v = M.trim(), w = v.startsWith("-") || v.startsWith("−");
|
|
28
|
-
let l = "";
|
|
29
|
-
for (const g of M)
|
|
30
|
-
g >= "0" && g <= "9" ? l += g : g === d && (l += ".");
|
|
31
|
-
if (!l || l === ".") return NaN;
|
|
32
|
-
let f = Number(l);
|
|
33
|
-
return Number.isFinite(f) ? (w && (f = -f), r === "percentage" && (f = f / 100), f) : NaN;
|
|
34
|
-
};
|
|
35
|
-
let b = "decimal";
|
|
36
|
-
if (r === "integer")
|
|
37
|
-
b = "numeric";
|
|
38
|
-
else if (r === "currency")
|
|
39
|
-
try {
|
|
40
|
-
const { maximumFractionDigits: u } = new Intl.NumberFormat(i, {
|
|
41
|
-
style: "currency",
|
|
42
|
-
currency: a ?? "USD"
|
|
43
|
-
}).resolvedOptions();
|
|
44
|
-
b = u === 0 ? "numeric" : "decimal";
|
|
45
|
-
} catch {
|
|
46
|
-
b = "decimal";
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
format: T,
|
|
50
|
-
parse: P,
|
|
51
|
-
decimalSeparator: d,
|
|
52
|
-
groupingSeparator: F,
|
|
53
|
-
inputMode: b
|
|
54
|
-
};
|
|
55
|
-
}, [i, r, a]);
|
|
56
|
-
}
|
|
57
|
-
const De = be(
|
|
58
|
-
[
|
|
59
|
-
"ds:flex ds:items-center ds:w-full ds:rounded-[var(--radius-sm)]",
|
|
60
|
-
"ds:border ds:bg-background ds:text-foreground",
|
|
61
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
62
|
-
"ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
|
|
63
|
-
"ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
|
|
64
|
-
"ds:has-[:disabled]:cursor-not-allowed ds:has-[:disabled]:opacity-50"
|
|
65
|
-
].join(" "),
|
|
66
|
-
{
|
|
67
|
-
variants: {
|
|
68
|
-
size: {
|
|
69
|
-
sm: "ds:h-8 ds:text-[length:var(--font-size-sm)]",
|
|
70
|
-
md: "ds:h-[var(--min-target-size)] ds:text-[length:var(--font-size-base)]",
|
|
71
|
-
lg: "ds:h-12 ds:text-[length:var(--font-size-lg)]"
|
|
72
|
-
},
|
|
73
|
-
tone: {
|
|
74
|
-
default: "ds:border-border",
|
|
75
|
-
error: "ds:border-destructive ds:focus-within:outline-destructive"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
defaultVariants: { size: "md", tone: "default" }
|
|
79
|
-
}
|
|
80
|
-
), H = [
|
|
81
|
-
"ds:inline-flex ds:items-center ds:justify-center",
|
|
82
|
-
"ds:h-full ds:shrink-0",
|
|
83
|
-
"ds:text-muted-foreground ds:hover:text-foreground",
|
|
84
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
85
|
-
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
86
|
-
].join(" "), xe = () => typeof navigator < "u" && navigator.language ? navigator.language : "en-US";
|
|
87
|
-
function Ie(i) {
|
|
88
|
-
if (!Number.isFinite(i)) return 0;
|
|
89
|
-
const r = String(i), a = r.indexOf(".");
|
|
90
|
-
return a === -1 ? 0 : r.length - a - 1;
|
|
91
|
-
}
|
|
92
|
-
function Fe(i, r) {
|
|
93
|
-
if (r <= 0 || !Number.isFinite(r)) return i;
|
|
94
|
-
const t = 10 ** Ie(r);
|
|
95
|
-
return Math.round(i * t) / t;
|
|
96
|
-
}
|
|
97
|
-
const Se = fe(
|
|
98
|
-
({
|
|
99
|
-
value: i,
|
|
100
|
-
defaultValue: r,
|
|
101
|
-
onChange: a,
|
|
102
|
-
min: t,
|
|
103
|
-
max: d,
|
|
104
|
-
step: F = 1,
|
|
105
|
-
mode: c = "integer",
|
|
106
|
-
currency: T,
|
|
107
|
-
locale: P,
|
|
108
|
-
size: b = "md",
|
|
109
|
-
tone: S,
|
|
110
|
-
className: C,
|
|
111
|
-
id: u,
|
|
112
|
-
disabled: M,
|
|
113
|
-
onFocus: v,
|
|
114
|
-
onBlur: w,
|
|
115
|
-
onKeyDown: l,
|
|
116
|
-
...f
|
|
117
|
-
}, g) => {
|
|
118
|
-
const { t: A } = ve(), y = ge(), G = u ?? y.id, z = !!(y.disabled || M), J = P ?? xe(), j = ye(J, c, T), { decimalSeparator: E, format: k, parse: L } = j, R = i !== void 0, [Q, X] = B(
|
|
119
|
-
r ?? null
|
|
120
|
-
), s = R ? i ?? null : Q, U = $(
|
|
121
|
-
(e) => {
|
|
122
|
-
const n = c === "percentage" ? e * 100 : e;
|
|
123
|
-
return (Number.isInteger(n) ? String(n) : n.toString()).replace(".", E);
|
|
124
|
-
},
|
|
125
|
-
[c, E]
|
|
126
|
-
), p = $(
|
|
127
|
-
(e) => e == null || Number.isNaN(e) ? "" : k(e),
|
|
128
|
-
[k]
|
|
129
|
-
), [V, m] = B(
|
|
130
|
-
() => p(s)
|
|
131
|
-
), D = me(!1), [Y, x] = B(!1);
|
|
132
|
-
pe(() => {
|
|
133
|
-
D.current || m(p(s));
|
|
134
|
-
}, [s, p]);
|
|
135
|
-
const Z = Y || s !== null && (t !== void 0 && s < t || d !== void 0 && s > d), q = y.invalid || Z, _ = q ? "error" : S ?? "default", N = (e) => {
|
|
136
|
-
R || X(e), a == null || a(e);
|
|
137
|
-
}, h = (e) => {
|
|
138
|
-
let o = (s ?? 0) + F * e;
|
|
139
|
-
t !== void 0 && (o = Math.max(t, o)), d !== void 0 && (o = Math.min(d, o)), o = Fe(o, F), N(o), x(!1), m(
|
|
140
|
-
D.current ? U(o) : p(o)
|
|
141
|
-
);
|
|
142
|
-
}, O = (e) => {
|
|
143
|
-
N(e), x(!1), m(
|
|
144
|
-
D.current ? U(e) : p(e)
|
|
145
|
-
);
|
|
146
|
-
}, K = (e) => {
|
|
147
|
-
if (l == null || l(e), e.defaultPrevented || z) return;
|
|
148
|
-
const { key: n, shiftKey: o } = e;
|
|
149
|
-
n === "ArrowUp" ? (e.preventDefault(), h(o ? 10 : 1)) : n === "ArrowDown" ? (e.preventDefault(), h(o ? -10 : -1)) : n === "PageUp" ? (e.preventDefault(), h(100)) : n === "PageDown" ? (e.preventDefault(), h(-100)) : n === "Home" && t !== void 0 ? (e.preventDefault(), O(t)) : n === "End" && d !== void 0 && (e.preventDefault(), O(d));
|
|
150
|
-
}, ee = (e) => {
|
|
151
|
-
const n = e.target.value;
|
|
152
|
-
if (m(n), n.trim() === "") {
|
|
153
|
-
N(null), x(!1);
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
const o = L(n);
|
|
157
|
-
Number.isNaN(o) || N(o);
|
|
158
|
-
}, te = (e) => {
|
|
159
|
-
v == null || v(e), D.current = !0, s != null && m(U(s));
|
|
160
|
-
}, re = (e) => {
|
|
161
|
-
if (w == null || w(e), D.current = !1, V.trim() === "") {
|
|
162
|
-
N(null), x(!1), m("");
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
const n = L(V);
|
|
166
|
-
if (Number.isNaN(n)) {
|
|
167
|
-
m(p(s));
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
const o = t !== void 0 && n < t || d !== void 0 && n > d;
|
|
171
|
-
x(o), N(n), m(p(n));
|
|
172
|
-
}, W = (e) => {
|
|
173
|
-
e.preventDefault();
|
|
174
|
-
}, ne = () => h(1), se = () => h(-1), ie = z || t !== void 0 && s !== null && s <= t, oe = z || d !== void 0 && s !== null && s >= d, ae = s ?? void 0, de = (c === "currency" || c === "percentage") && s !== null && s !== null ? k(s) : void 0, ue = j.inputMode === "numeric" ? "[0-9]*" : void 0;
|
|
175
|
-
return /* @__PURE__ */ le(
|
|
176
|
-
"div",
|
|
177
|
-
{
|
|
178
|
-
className: De({
|
|
179
|
-
size: b,
|
|
180
|
-
tone: _,
|
|
181
|
-
className: C
|
|
182
|
-
}),
|
|
183
|
-
"data-component": "number-input",
|
|
184
|
-
"data-mode": c,
|
|
185
|
-
children: [
|
|
186
|
-
/* @__PURE__ */ I(
|
|
187
|
-
"button",
|
|
188
|
-
{
|
|
189
|
-
type: "button",
|
|
190
|
-
tabIndex: -1,
|
|
191
|
-
"aria-label": A("ui.inputs.number.decrement", "Decrement"),
|
|
192
|
-
onClick: se,
|
|
193
|
-
onMouseDown: W,
|
|
194
|
-
disabled: ie,
|
|
195
|
-
className: `${H} ds:ps-2 ds:pe-1`,
|
|
196
|
-
children: /* @__PURE__ */ I(Ne, { "aria-hidden": "true", className: "ds:size-4" })
|
|
197
|
-
}
|
|
198
|
-
),
|
|
199
|
-
/* @__PURE__ */ I(
|
|
200
|
-
"input",
|
|
201
|
-
{
|
|
202
|
-
ref: g,
|
|
203
|
-
id: G,
|
|
204
|
-
type: "text",
|
|
205
|
-
role: "spinbutton",
|
|
206
|
-
inputMode: j.inputMode,
|
|
207
|
-
pattern: ue,
|
|
208
|
-
autoComplete: "off",
|
|
209
|
-
value: V,
|
|
210
|
-
disabled: z,
|
|
211
|
-
"aria-valuemin": t,
|
|
212
|
-
"aria-valuemax": d,
|
|
213
|
-
"aria-valuenow": ae,
|
|
214
|
-
"aria-valuetext": de,
|
|
215
|
-
"aria-invalid": q || void 0,
|
|
216
|
-
"aria-required": y.required || void 0,
|
|
217
|
-
"aria-describedby": y.describedBy || void 0,
|
|
218
|
-
onChange: ee,
|
|
219
|
-
onFocus: te,
|
|
220
|
-
onBlur: re,
|
|
221
|
-
onKeyDown: K,
|
|
222
|
-
className: "ds:flex-1 ds:w-full ds:min-w-0 ds:bg-transparent ds:outline-none ds:ps-2 ds:pe-2 ds:text-start ds:tabular-nums ds:disabled:cursor-not-allowed",
|
|
223
|
-
...f
|
|
224
|
-
}
|
|
225
|
-
),
|
|
226
|
-
/* @__PURE__ */ I(
|
|
227
|
-
"button",
|
|
228
|
-
{
|
|
229
|
-
type: "button",
|
|
230
|
-
tabIndex: -1,
|
|
231
|
-
"aria-label": A("ui.inputs.number.increment", "Increment"),
|
|
232
|
-
onClick: ne,
|
|
233
|
-
onMouseDown: W,
|
|
234
|
-
disabled: oe,
|
|
235
|
-
className: `${H} ds:ps-1 ds:pe-2`,
|
|
236
|
-
children: /* @__PURE__ */ I(he, { "aria-hidden": "true", className: "ds:size-4" })
|
|
237
|
-
}
|
|
238
|
-
)
|
|
239
|
-
]
|
|
240
|
-
}
|
|
241
|
-
);
|
|
242
|
-
}
|
|
243
|
-
);
|
|
244
|
-
Se.displayName = "NumberInput";
|
|
245
|
-
export {
|
|
246
|
-
Se as N,
|
|
247
|
-
ye as u
|
|
248
|
-
};
|
|
249
|
-
//# sourceMappingURL=number-input-DjpT_RXJ.js.map
|