@alfadocs/ui-kit 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{accordion-B6fyINUk.js → accordion-BEnrZmAn.js} +34 -32
- package/dist/_chunks/accordion.agent-BTjeO1Sx.js +52 -0
- package/dist/_chunks/{agenda-card-DIWDvWum.js → agenda-card-DwLIxgi7.js} +2 -1
- package/dist/_chunks/agenda-card.agent-B_R47-c9.js +22 -0
- package/dist/_chunks/agenda-tray-DUvengGQ.js +178 -0
- package/dist/_chunks/ai-prompt-input.agent-0NHYLTWD.js +476 -0
- package/dist/_chunks/{aspect-ratio-CxsdG8vk.js → aspect-ratio-DeSNzASA.js} +12 -12
- package/dist/_chunks/audio-recorder.agent--VKeykUp.js +458 -0
- package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +432 -0
- package/dist/_chunks/{balance-cell-renderer-BWm3knY9.js → balance-cell-renderer-5CA7zpAi.js} +3 -3
- package/dist/_chunks/breadcrumb.agent-GM2hAKFX.js +371 -0
- package/dist/_chunks/{chart.agent-BdS-_8MO.js → chart.agent-_pRYS17d.js} +112 -105
- package/dist/_chunks/{chat-container-Cm3SlR2p.js → chat-container-Dl0Kfy5a.js} +33 -32
- package/dist/_chunks/{chat-container.agent-Dhw9xCJt.js → chat-container.agent-CM4WModE.js} +9 -4
- package/dist/_chunks/{chat-input-DreOPP8A.js → chat-input-C_tMQv92.js} +108 -82
- package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +69 -0
- package/dist/_chunks/checkbox-CtPM6Rup.js +196 -0
- package/dist/_chunks/checkbox-group-BTdEB6Yo.js +208 -0
- package/dist/_chunks/collapsible.agent-DkS1jVyn.js +149 -0
- package/dist/_chunks/{color-picker-e9PmpaGH.js → color-picker-94qcBZqZ.js} +234 -184
- package/dist/_chunks/combobox.agent-CAvUkkIe.js +410 -0
- package/dist/_chunks/{command-palette.agent-js2rxgeR.js → command-palette.agent-HatEt_EM.js} +161 -121
- package/dist/_chunks/date-picker-BqPTn7bO.js +1813 -0
- package/dist/_chunks/date-range-picker-B2hGsffw.js +274 -0
- package/dist/_chunks/date-time-picker-Bzt0S8yO.js +293 -0
- package/dist/_chunks/dialog.agent-Daf1TTko.js +179 -0
- package/dist/_chunks/{dropdown-menu-Cw3EyPZv.js → dropdown-menu-C7AZipNz.js} +75 -71
- package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +43 -0
- package/dist/_chunks/{file-upload.agent-B9AN82LA.js → file-upload.agent-DJaH2dHg.js} +275 -243
- package/dist/_chunks/freemium-paywall.agent-_nQqLyRF.js +260 -0
- package/dist/_chunks/{leo-sidebar-nbHib2D-.js → leo-sidebar-BwINPdix.js} +6 -6
- package/dist/_chunks/link-QheANk74.js +121 -0
- package/dist/_chunks/list.agent-D0iWt4VI.js +420 -0
- package/dist/_chunks/{message-card-qAp2-WQK.js → message-card-qhoGv947.js} +2 -1
- package/dist/_chunks/message-card.agent-4IeIgrnJ.js +22 -0
- package/dist/_chunks/message-tray-xHUCra-Y.js +419 -0
- package/dist/_chunks/{multi-select.agent-CNsyW3n9.js → multi-select.agent-Do6CeQUT.js} +239 -179
- package/dist/_chunks/navigation-menu.agent-D69ND6Qq.js +266 -0
- package/dist/_chunks/{notification-card-BF2_veHy.js → notification-card-CsVEYJE-.js} +13 -12
- package/dist/_chunks/notification-card.agent-Rqt3ofk9.js +22 -0
- package/dist/_chunks/notification-tray-DTXMq42J.js +444 -0
- package/dist/_chunks/number-input-fvGmnRy9.js +333 -0
- package/dist/_chunks/otp-input-EglXOUue.js +257 -0
- package/dist/_chunks/pagination.agent-BkZQl45y.js +422 -0
- package/dist/_chunks/password-input-D6kuYXmr.js +304 -0
- package/dist/_chunks/{patient-shell-7cXqIMFg.js → patient-shell-BRmrrUUW.js} +3 -3
- package/dist/_chunks/{payment-form-hcl-gGrp.js → payment-form-BWaXas8z.js} +120 -118
- package/dist/_chunks/{payment-form.agent-BkEnRerR.js → payment-form.agent-kuIfodCj.js} +7 -2
- package/dist/_chunks/{pdf-viewer.agent-CfIHhcHx.js → pdf-viewer.agent-BaGEDheA.js} +358 -351
- package/dist/_chunks/phone-input-C8Op4sEc.js +513 -0
- package/dist/_chunks/popover-kFN8s84V.js +229 -0
- package/dist/_chunks/popover.agent-K_d1cfbj.js +39 -0
- package/dist/_chunks/privacy-lock.agent-C1i1-T58.js +185 -0
- package/dist/_chunks/progress-wNsqkw8I.js +253 -0
- package/dist/_chunks/progress.agent-C68rDOXL.js +27 -0
- package/dist/_chunks/{radio-cs8N1wJi.js → radio-DvF59ThA.js} +14 -13
- package/dist/_chunks/radio-group-Cz1a4QCA.js +152 -0
- package/dist/_chunks/recaptcha-widget.agent-BGHpU5zD.js +183 -0
- package/dist/_chunks/resizable.agent-CMwZzvsi.js +456 -0
- package/dist/_chunks/{rich-text-editor.agent-COSb5_2D.js → rich-text-editor.agent-DnE125Tz.js} +221 -214
- package/dist/_chunks/search-bar.agent-DxFAxctc.js +562 -0
- package/dist/_chunks/search-input-Xw3cdWXW.js +227 -0
- package/dist/_chunks/search-input.agent-CfZvViOd.js +69 -0
- package/dist/_chunks/select-DY1Cb2Tg.js +410 -0
- package/dist/_chunks/{sheet-BhNpLHc9.js → sheet-B9kH9pcI.js} +55 -54
- package/dist/_chunks/sheet.agent-QAyTOxgk.js +46 -0
- package/dist/_chunks/{sidebar-OVzwN3jE.js → sidebar-CHF5xr_P.js} +188 -185
- package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +49 -0
- package/dist/_chunks/{signature-capture.agent-C38VPXxg.js → signature-capture.agent-BpeDwFht.js} +127 -120
- package/dist/_chunks/slider-CcsQTZTA.js +322 -0
- package/dist/_chunks/sparkline.agent-56Sj7nOP.js +245 -0
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +322 -0
- package/dist/_chunks/stepper-calendar.agent-9iT3ClIB.js +646 -0
- package/dist/_chunks/stepper-progress-Bmen-YXB.js +149 -0
- package/dist/_chunks/stepper-progress.agent-q9InWca4.js +61 -0
- package/dist/_chunks/suggestion-chip-DhFrkRPj.js +169 -0
- package/dist/_chunks/suggestion-chip.agent-6sNWFj7m.js +46 -0
- package/dist/_chunks/switch-BYEH8I53.js +196 -0
- package/dist/_chunks/{tabs.agent-BpbVA-Zh.js → tabs.agent-h7NvsTR1.js} +146 -123
- package/dist/_chunks/{task-card-yW7tKlG4.js → task-card-CY5ztNkU.js} +2 -1
- package/dist/_chunks/task-card.agent-CUPKYd7w.js +22 -0
- package/dist/_chunks/task-tray-CCoUdorl.js +194 -0
- package/dist/_chunks/text-area-C_M8wliK.js +239 -0
- package/dist/_chunks/text-input-BX39e6T6.js +272 -0
- package/dist/_chunks/theme-toggle.agent-btmXTWdW.js +394 -0
- package/dist/_chunks/time-picker-B8AMIrX7.js +410 -0
- package/dist/_chunks/timeline.agent-CRPza9wc.js +279 -0
- package/dist/_chunks/{toast-lOhJDKOH.js → toast.agent-BjEGuq1Z.js} +403 -342
- package/dist/_chunks/{tooth-scheme.agent-BlDyu-Gx.js → tooth-scheme.agent-CWrQBjJM.js} +218 -211
- package/dist/_chunks/transcript-panel.agent-BXEYP6w-.js +337 -0
- package/dist/_chunks/{workflow-map-XeqHDFvp.js → workflow-map-D2A7rTEG.js} +465 -368
- package/dist/agent-catalog.json +2929 -268
- package/dist/components/accordion/accordion.agent.d.ts +2 -1
- package/dist/components/accordion/accordion.d.ts +6 -0
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-card/agenda-card.agent.d.ts +3 -0
- package/dist/components/agenda-card/index.d.ts +1 -0
- package/dist/components/agenda-card/index.js +3 -1
- package/dist/components/agenda-tray/agenda-tray.agent.d.ts +4 -0
- package/dist/components/agenda-tray/agenda-tray.d.ts +19 -2
- package/dist/components/agenda-tray/index.d.ts +2 -1
- package/dist/components/agenda-tray/index.js +3 -2
- package/dist/components/ai-prompt-input/ai-prompt-input.agent.d.ts +4 -0
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +18 -1
- package/dist/components/ai-prompt-input/index.d.ts +2 -1
- package/dist/components/ai-prompt-input/index.js +3 -2
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/audio-recorder/audio-recorder.agent.d.ts +4 -0
- package/dist/components/audio-recorder/audio-recorder.d.ts +10 -1
- package/dist/components/audio-recorder/index.d.ts +2 -1
- package/dist/components/audio-recorder/index.js +3 -2
- package/dist/components/autocomplete/autocomplete.agent.d.ts +2 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.agent.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +21 -2
- package/dist/components/breadcrumb/index.d.ts +2 -1
- package/dist/components/breadcrumb/index.js +5 -4
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +2 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +3 -1
- package/dist/components/chat-container/index.js +2 -2
- package/dist/components/chat-input/chat-input.agent.d.ts +4 -0
- package/dist/components/chat-input/chat-input.d.ts +10 -1
- package/dist/components/chat-input/index.d.ts +2 -1
- package/dist/components/chat-input/index.js +4 -2
- package/dist/components/checkbox/checkbox.agent.d.ts +4 -0
- package/dist/components/checkbox/checkbox.d.ts +6 -0
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.agent.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/collapsible.agent.d.ts +4 -0
- package/dist/components/collapsible/collapsible.d.ts +8 -1
- package/dist/components/collapsible/index.d.ts +2 -1
- package/dist/components/collapsible/index.js +4 -3
- package/dist/components/color-picker/color-picker.agent.d.ts +4 -0
- package/dist/components/color-picker/color-picker.d.ts +5 -0
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.agent.d.ts +2 -1
- package/dist/components/combobox/combobox.d.ts +10 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.agent.d.ts +2 -1
- package/dist/components/command-palette/command-palette.d.ts +7 -0
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.agent.d.ts +4 -0
- package/dist/components/date-picker/date-picker.d.ts +16 -1
- package/dist/components/date-picker/index.d.ts +2 -1
- package/dist/components/date-picker/index.js +3 -2
- package/dist/components/date-range-picker/date-range-picker.agent.d.ts +4 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +16 -1
- package/dist/components/date-range-picker/index.d.ts +2 -1
- package/dist/components/date-range-picker/index.js +3 -2
- package/dist/components/date-time-picker/date-time-picker.agent.d.ts +4 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +16 -1
- package/dist/components/date-time-picker/index.d.ts +2 -1
- package/dist/components/date-time-picker/index.js +3 -2
- package/dist/components/dialog/dialog.agent.d.ts +5 -6
- package/dist/components/dialog/dialog.d.ts +11 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts +2 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +10 -2
- package/dist/components/dropdown-menu/index.js +2 -2
- package/dist/components/file-upload/file-upload.agent.d.ts +2 -1
- package/dist/components/file-upload/file-upload.d.ts +12 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.agent.d.ts +4 -0
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +8 -1
- package/dist/components/freemium-paywall/index.d.ts +2 -1
- package/dist/components/freemium-paywall/index.js +3 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/index.js +5 -0
- package/dist/components/link/link.d.ts +39 -0
- package/dist/components/list/index.d.ts +2 -1
- package/dist/components/list/index.js +3 -2
- package/dist/components/list/list.agent.d.ts +4 -0
- package/dist/components/list/list.d.ts +8 -2
- package/dist/components/message-card/index.d.ts +1 -0
- package/dist/components/message-card/index.js +5 -3
- package/dist/components/message-card/message-card.agent.d.ts +3 -0
- package/dist/components/message-tray/index.d.ts +2 -1
- package/dist/components/message-tray/index.js +3 -2
- package/dist/components/message-tray/message-tray.agent.d.ts +4 -0
- package/dist/components/message-tray/message-tray.d.ts +27 -2
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.agent.d.ts +2 -1
- package/dist/components/multi-select/multi-select.d.ts +10 -0
- package/dist/components/navigation-menu/index.d.ts +2 -1
- package/dist/components/navigation-menu/index.js +7 -6
- package/dist/components/navigation-menu/navigation-menu.agent.d.ts +4 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +28 -2
- package/dist/components/notification-card/index.d.ts +1 -0
- package/dist/components/notification-card/index.js +5 -3
- package/dist/components/notification-card/notification-card.agent.d.ts +3 -0
- package/dist/components/notification-tray/index.d.ts +2 -1
- package/dist/components/notification-tray/index.js +3 -2
- package/dist/components/notification-tray/notification-tray.agent.d.ts +4 -0
- package/dist/components/notification-tray/notification-tray.d.ts +27 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.agent.d.ts +4 -0
- package/dist/components/number-input/number-input.d.ts +7 -0
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.agent.d.ts +4 -0
- package/dist/components/otp-input/otp-input.d.ts +10 -0
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination.agent.d.ts +2 -1
- package/dist/components/pagination/pagination.d.ts +7 -0
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/password-input.agent.d.ts +4 -0
- package/dist/components/password-input/password-input.d.ts +9 -0
- package/dist/components/payment-form/index.js +2 -2
- package/dist/components/payment-form/payment-form.d.ts +2 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +2 -0
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.agent.d.ts +4 -0
- package/dist/components/phone-input/phone-input.d.ts +7 -0
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.agent.d.ts +2 -1
- package/dist/components/popover/popover.d.ts +8 -1
- package/dist/components/privacy-lock/index.d.ts +2 -1
- package/dist/components/privacy-lock/index.js +3 -2
- package/dist/components/privacy-lock/privacy-lock.agent.d.ts +4 -0
- package/dist/components/privacy-lock/privacy-lock.d.ts +7 -1
- package/dist/components/progress/index.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group.agent.d.ts +4 -0
- package/dist/components/radio-group/radio-group.d.ts +5 -0
- package/dist/components/recaptcha-widget/index.d.ts +3 -0
- package/dist/components/recaptcha-widget/index.js +6 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.agent.d.ts +4 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +56 -0
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/resizable/resizable.agent.d.ts +2 -1
- package/dist/components/resizable/resizable.d.ts +6 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/search-bar/index.d.ts +2 -1
- package/dist/components/search-bar/index.js +3 -2
- package/dist/components/search-bar/search-bar.agent.d.ts +4 -0
- package/dist/components/search-bar/search-bar.d.ts +27 -1
- package/dist/components/search-input/index.d.ts +2 -1
- package/dist/components/search-input/index.js +4 -2
- package/dist/components/search-input/search-input.agent.d.ts +4 -0
- package/dist/components/search-input/search-input.d.ts +27 -0
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.agent.d.ts +4 -0
- package/dist/components/select/select.d.ts +9 -0
- package/dist/components/sheet/index.js +2 -2
- package/dist/components/sheet/sheet.agent.d.ts +2 -1
- package/dist/components/sheet/sheet.d.ts +11 -2
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sidebar/sidebar.agent.d.ts +2 -1
- package/dist/components/sidebar/sidebar.d.ts +6 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-capture/signature-capture.d.ts +2 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider.agent.d.ts +4 -0
- package/dist/components/slider/slider.d.ts +5 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-accordion/index.d.ts +2 -1
- package/dist/components/stepper-accordion/index.js +3 -2
- package/dist/components/stepper-accordion/stepper-accordion.agent.d.ts +4 -0
- package/dist/components/stepper-accordion/stepper-accordion.d.ts +19 -1
- package/dist/components/stepper-calendar/index.d.ts +2 -1
- package/dist/components/stepper-calendar/index.js +3 -2
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +4 -0
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +19 -1
- package/dist/components/stepper-progress/index.d.ts +2 -1
- package/dist/components/stepper-progress/index.js +4 -2
- package/dist/components/stepper-progress/stepper-progress.agent.d.ts +4 -0
- package/dist/components/stepper-progress/stepper-progress.d.ts +26 -1
- package/dist/components/suggestion-chip/index.d.ts +2 -1
- package/dist/components/suggestion-chip/index.js +5 -3
- package/dist/components/suggestion-chip/suggestion-chip.agent.d.ts +4 -0
- package/dist/components/suggestion-chip/suggestion-chip.d.ts +7 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.agent.d.ts +4 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs.agent.d.ts +2 -1
- package/dist/components/tabs/tabs.d.ts +4 -0
- package/dist/components/task-card/index.d.ts +1 -0
- package/dist/components/task-card/index.js +5 -3
- package/dist/components/task-card/task-card.agent.d.ts +3 -0
- package/dist/components/task-tray/index.d.ts +2 -1
- package/dist/components/task-tray/index.js +3 -2
- package/dist/components/task-tray/task-tray.agent.d.ts +4 -0
- package/dist/components/task-tray/task-tray.d.ts +25 -2
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.agent.d.ts +4 -0
- package/dist/components/text-area/text-area.d.ts +7 -0
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/text-input/text-input.agent.d.ts +4 -0
- package/dist/components/text-input/text-input.d.ts +10 -0
- package/dist/components/theme-toggle/index.d.ts +2 -1
- package/dist/components/theme-toggle/index.js +3 -2
- package/dist/components/theme-toggle/theme-toggle.agent.d.ts +4 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +9 -2
- package/dist/components/time-picker/index.d.ts +2 -1
- package/dist/components/time-picker/index.js +3 -2
- package/dist/components/time-picker/time-picker.agent.d.ts +4 -0
- package/dist/components/time-picker/time-picker.d.ts +16 -1
- package/dist/components/timeline/index.d.ts +2 -1
- package/dist/components/timeline/index.js +3 -2
- package/dist/components/timeline/timeline.agent.d.ts +4 -0
- package/dist/components/timeline/timeline.d.ts +8 -1
- package/dist/components/toast/index.d.ts +3 -2
- package/dist/components/toast/index.js +7 -5
- package/dist/components/toast/toast.agent.d.ts +4 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -0
- package/dist/components/transcript-panel/index.d.ts +2 -1
- package/dist/components/transcript-panel/index.js +3 -2
- package/dist/components/transcript-panel/transcript-panel.agent.d.ts +4 -0
- package/dist/components/transcript-panel/transcript-panel.d.ts +10 -1
- package/dist/components/workflow/index.d.ts +2 -1
- package/dist/components/workflow/index.js +10 -7
- package/dist/components/workflow/workflow-editor.d.ts +7 -1
- package/dist/components/workflow/workflow-map.d.ts +2 -0
- package/dist/components/workflow/workflow.agent.d.ts +6 -0
- package/dist/i18n/config.js +24 -11
- package/dist/i18n/resources.d.ts +7 -0
- package/dist/index.js +471 -423
- package/dist/locales/en.json +7 -0
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +18 -2
- package/dist/_chunks/accordion.agent-Cz-yglRa.js +0 -17
- package/dist/_chunks/agenda-tray-BqQZwiHc.js +0 -120
- package/dist/_chunks/ai-prompt-input-CI27KmZ1.js +0 -380
- package/dist/_chunks/audio-recorder-B-8SKgKn.js +0 -376
- package/dist/_chunks/autocomplete.agent-DqOy0_1P.js +0 -372
- package/dist/_chunks/breadcrumb-D6xpsP7n.js +0 -293
- package/dist/_chunks/checkbox-DNK4qS2_.js +0 -116
- package/dist/_chunks/checkbox-group-CWpGZEF6.js +0 -146
- package/dist/_chunks/collapsible-D4LOdLxp.js +0 -67
- package/dist/_chunks/combobox.agent-ByobCLJ_.js +0 -350
- package/dist/_chunks/date-picker-DYXNsWmM.js +0 -1726
- package/dist/_chunks/date-range-picker-BcNDJI7m.js +0 -183
- package/dist/_chunks/date-time-picker-CmGiTU__.js +0 -202
- package/dist/_chunks/dialog.agent-DEG_fVzG.js +0 -147
- package/dist/_chunks/dropdown-menu.agent-Cry4Nmes.js +0 -17
- package/dist/_chunks/freemium-paywall-CkefGLM_.js +0 -198
- package/dist/_chunks/list-B1ozIjQe.js +0 -359
- package/dist/_chunks/message-tray-VaLpQU5t.js +0 -303
- package/dist/_chunks/navigation-menu-EVFau1O2.js +0 -180
- package/dist/_chunks/notification-tray-B7U5YZYg.js +0 -328
- package/dist/_chunks/number-input-DjpT_RXJ.js +0 -249
- package/dist/_chunks/otp-input-De5_Ih7B.js +0 -189
- package/dist/_chunks/pagination.agent-oEaqmtx5.js +0 -380
- package/dist/_chunks/password-input-DJDVznWH.js +0 -193
- package/dist/_chunks/phone-input-DE_39q65.js +0 -428
- package/dist/_chunks/popover-C3CTUsqh.js +0 -227
- package/dist/_chunks/popover.agent-C0qOx9WT.js +0 -13
- package/dist/_chunks/privacy-lock-CQpgkLec.js +0 -132
- package/dist/_chunks/progress-B4Of_pzz.js +0 -252
- package/dist/_chunks/progress.agent-CXkHURjX.js +0 -22
- package/dist/_chunks/radio-group-BIUbpWml.js +0 -89
- package/dist/_chunks/resizable.agent-DBpPGNdy.js +0 -435
- package/dist/_chunks/search-bar-fcGqDFW3.js +0 -397
- package/dist/_chunks/search-input-BVMCONyN.js +0 -197
- package/dist/_chunks/select-IY_JQa-F.js +0 -321
- package/dist/_chunks/sheet.agent-DwQlBqK9.js +0 -13
- package/dist/_chunks/sidebar.agent-B0fnH9CC.js +0 -17
- package/dist/_chunks/slider-DjyRt3Mp.js +0 -274
- package/dist/_chunks/sparkline.agent-C_xp3NRB.js +0 -238
- package/dist/_chunks/stepper-accordion-CGog0JSF.js +0 -233
- package/dist/_chunks/stepper-calendar-_fLOAjus.js +0 -570
- package/dist/_chunks/stepper-progress-rE7tn7WY.js +0 -129
- package/dist/_chunks/suggestion-chip-BNJ2M8Os.js +0 -158
- package/dist/_chunks/switch-aN2EYxHh.js +0 -138
- package/dist/_chunks/task-tray-BzahI5FQ.js +0 -100
- package/dist/_chunks/text-area-DmKSd2DG.js +0 -152
- package/dist/_chunks/text-input-CRHvl5zk.js +0 -188
- package/dist/_chunks/theme-toggle-BHiMMEQN.js +0 -329
- package/dist/_chunks/time-picker-D-EueWUG.js +0 -322
- package/dist/_chunks/timeline-RgAIzpMd.js +0 -220
- package/dist/_chunks/transcript-panel-CNbVGG9L.js +0 -266
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as la, useState as ca, useCallback as ua, useRef as q, useMemo as ma } from "react";
|
|
3
|
+
import * as h from "@radix-ui/react-slider";
|
|
4
|
+
import { c as t } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as pa } from "react-i18next";
|
|
6
|
+
import { u as fa } from "./form-field-context-94LwgYTQ.js";
|
|
7
|
+
import { u as ha } from "./use-direction-D6rvvG9G.js";
|
|
8
|
+
import { c as va } from "./compose-refs-C0k0tdqF.js";
|
|
9
|
+
import { u as ba } from "./registry-C9nwlNyL.js";
|
|
10
|
+
const ga = {
|
|
11
|
+
id: "slider",
|
|
12
|
+
capabilities: ["pick", "range_pick"],
|
|
13
|
+
state: {
|
|
14
|
+
value: {
|
|
15
|
+
type: "number[]",
|
|
16
|
+
descriptionKey: "ui.agent.slider.state.value",
|
|
17
|
+
description: "Current thumb values; length 1 for a single slider, length 2 for a range.",
|
|
18
|
+
read: (d) => d.getValue()
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
actions: {
|
|
22
|
+
set_value: {
|
|
23
|
+
safety: "write",
|
|
24
|
+
argsType: "{ value: number[] }",
|
|
25
|
+
descriptionKey: "ui.agent.slider.actions.setValue",
|
|
26
|
+
description: "Replace the thumb value(s). Pass a 1-tuple for single, 2-tuple for range.",
|
|
27
|
+
invoke: (d, v) => {
|
|
28
|
+
d.setValue(v.value);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
domHooks: {
|
|
33
|
+
root: {
|
|
34
|
+
attr: "data-component",
|
|
35
|
+
value: "slider",
|
|
36
|
+
description: "Marks the Slider root."
|
|
37
|
+
},
|
|
38
|
+
instanceId: {
|
|
39
|
+
attr: "data-component-id",
|
|
40
|
+
sourceProp: "id",
|
|
41
|
+
description: "Sourced from the id prop."
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, wa = t(
|
|
45
|
+
[
|
|
46
|
+
"ds:relative ds:flex ds:touch-none ds:select-none ds:items-center",
|
|
47
|
+
"ds:data-[orientation=horizontal]:w-full",
|
|
48
|
+
"ds:data-[orientation=vertical]:flex-col ds:data-[orientation=vertical]:h-full",
|
|
49
|
+
"ds:data-[disabled]:cursor-not-allowed ds:data-[disabled]:opacity-50"
|
|
50
|
+
].join(" "),
|
|
51
|
+
{
|
|
52
|
+
variants: {
|
|
53
|
+
size: {
|
|
54
|
+
sm: "ds:data-[orientation=horizontal]:h-1 ds:data-[orientation=vertical]:w-1",
|
|
55
|
+
md: "ds:data-[orientation=horizontal]:h-2 ds:data-[orientation=vertical]:w-2",
|
|
56
|
+
lg: "ds:data-[orientation=horizontal]:h-3 ds:data-[orientation=vertical]:w-3"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: { size: "md" }
|
|
60
|
+
}
|
|
61
|
+
), xa = t(
|
|
62
|
+
[
|
|
63
|
+
"ds:relative ds:grow ds:overflow-hidden ds:rounded-[var(--radius-full)] ds:bg-muted",
|
|
64
|
+
"ds:data-[orientation=horizontal]:h-full",
|
|
65
|
+
"ds:data-[orientation=vertical]:w-full"
|
|
66
|
+
].join(" ")
|
|
67
|
+
), ya = t(
|
|
68
|
+
[
|
|
69
|
+
"ds:absolute ds:bg-primary ds:rounded-[var(--radius-full)]",
|
|
70
|
+
"ds:data-[orientation=horizontal]:h-full",
|
|
71
|
+
"ds:data-[orientation=vertical]:w-full"
|
|
72
|
+
].join(" ")
|
|
73
|
+
), za = t(
|
|
74
|
+
[
|
|
75
|
+
"ds:group/thumb",
|
|
76
|
+
"ds:relative ds:block ds:rounded-full",
|
|
77
|
+
"ds:bg-background ds:border-2 ds:border-primary ds:shadow-[var(--shadow-sm)]",
|
|
78
|
+
"ds:transition-[transform,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
79
|
+
"ds:outline-none",
|
|
80
|
+
"ds:focus-visible:shadow-[var(--shadow-focus),var(--shadow-sm)]",
|
|
81
|
+
"ds:active:shadow-[var(--shadow-sm)]",
|
|
82
|
+
"ds:data-[disabled]:cursor-not-allowed ds:data-[disabled]:opacity-50"
|
|
83
|
+
].join(" "),
|
|
84
|
+
{
|
|
85
|
+
variants: {
|
|
86
|
+
size: {
|
|
87
|
+
sm: "ds:size-4",
|
|
88
|
+
md: "ds:size-5",
|
|
89
|
+
lg: "ds:size-6"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
defaultVariants: { size: "md" }
|
|
93
|
+
}
|
|
94
|
+
), Va = t("ds:absolute ds:rounded-full", {
|
|
95
|
+
variants: {
|
|
96
|
+
size: {
|
|
97
|
+
sm: "ds:-inset-[calc((var(--min-target-size)-1rem)/2)]",
|
|
98
|
+
md: "ds:-inset-[calc((var(--min-target-size)-1.25rem)/2)]",
|
|
99
|
+
lg: "ds:-inset-[calc((var(--min-target-size)-1.5rem)/2)]"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
defaultVariants: { size: "md" }
|
|
103
|
+
}), ka = t(
|
|
104
|
+
"ds:absolute ds:flex ds:pointer-events-none ds:items-center ds:justify-center",
|
|
105
|
+
{
|
|
106
|
+
variants: {
|
|
107
|
+
orientation: {
|
|
108
|
+
horizontal: "ds:start-0 ds:end-0 ds:bottom-full",
|
|
109
|
+
vertical: "ds:top-0 ds:bottom-0 ds:start-full"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
defaultVariants: { orientation: "horizontal" }
|
|
113
|
+
}
|
|
114
|
+
), Na = t(
|
|
115
|
+
[
|
|
116
|
+
"ds:whitespace-nowrap ds:bg-foreground ds:text-background",
|
|
117
|
+
"ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
118
|
+
"ds:rounded-[var(--radius-sm)] ds:text-[length:var(--font-size-xs)] ds:tabular-nums",
|
|
119
|
+
"ds:shadow-[var(--shadow-sm)]",
|
|
120
|
+
"ds:transition-opacity ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
121
|
+
].join(" "),
|
|
122
|
+
{
|
|
123
|
+
variants: {
|
|
124
|
+
orientation: {
|
|
125
|
+
horizontal: "ds:mb-[var(--spacing-xs)]",
|
|
126
|
+
vertical: "ds:ms-[var(--spacing-xs)]"
|
|
127
|
+
},
|
|
128
|
+
alwaysShow: {
|
|
129
|
+
true: "ds:opacity-100",
|
|
130
|
+
false: "ds:opacity-0 ds:group-hover/thumb:opacity-100 ds:group-focus-visible/thumb:opacity-100"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
defaultVariants: { orientation: "horizontal", alwaysShow: !1 }
|
|
134
|
+
}
|
|
135
|
+
), Sa = t("ds:absolute ds:pointer-events-none", {
|
|
136
|
+
variants: {
|
|
137
|
+
orientation: {
|
|
138
|
+
horizontal: "ds:start-0 ds:end-0 ds:top-full",
|
|
139
|
+
vertical: "ds:top-0 ds:bottom-0 ds:start-full"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
defaultVariants: { orientation: "horizontal" }
|
|
143
|
+
}), Ra = t("ds:absolute ds:flex ds:items-center", {
|
|
144
|
+
variants: {
|
|
145
|
+
orientation: {
|
|
146
|
+
horizontal: "ds:flex-col ds:-translate-x-1/2 ds:rtl:translate-x-1/2",
|
|
147
|
+
vertical: "ds:flex-row ds:-translate-y-1/2 ds:ps-[var(--spacing-xs)]"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
defaultVariants: { orientation: "horizontal" }
|
|
151
|
+
}), Ma = t("ds:bg-border", {
|
|
152
|
+
variants: {
|
|
153
|
+
orientation: {
|
|
154
|
+
horizontal: "ds:w-px ds:h-1",
|
|
155
|
+
vertical: "ds:h-px ds:w-1"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
defaultVariants: { orientation: "horizontal" }
|
|
159
|
+
}), ja = t(
|
|
160
|
+
"ds:text-muted-foreground type-meta ds:mt-[var(--spacing-xs)]"
|
|
161
|
+
), La = t(
|
|
162
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
163
|
+
{
|
|
164
|
+
variants: {
|
|
165
|
+
orientation: {
|
|
166
|
+
horizontal: "ds:w-full ds:flex-row",
|
|
167
|
+
vertical: "ds:h-full ds:flex-col-reverse"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
defaultVariants: { orientation: "horizontal" }
|
|
171
|
+
}
|
|
172
|
+
), K = t(
|
|
173
|
+
"ds:text-muted-foreground type-meta ds:tabular-nums ds:shrink-0"
|
|
174
|
+
), Ta = la((d, v) => {
|
|
175
|
+
const {
|
|
176
|
+
value: u,
|
|
177
|
+
defaultValue: S,
|
|
178
|
+
marks: b,
|
|
179
|
+
minLabel: g,
|
|
180
|
+
maxLabel: w,
|
|
181
|
+
formatValue: C,
|
|
182
|
+
alwaysShowValue: E = !1,
|
|
183
|
+
step: H = 1,
|
|
184
|
+
largeStep: R = 10,
|
|
185
|
+
thumbLabels: m,
|
|
186
|
+
size: x = "md",
|
|
187
|
+
orientation: s = "horizontal",
|
|
188
|
+
min: n = 0,
|
|
189
|
+
max: y = 100,
|
|
190
|
+
disabled: U,
|
|
191
|
+
dir: W,
|
|
192
|
+
id: z,
|
|
193
|
+
className: _,
|
|
194
|
+
onValueChange: p,
|
|
195
|
+
onValueCommit: r,
|
|
196
|
+
onKeyDown: V,
|
|
197
|
+
...M
|
|
198
|
+
} = d, { t: j, i18n: L } = pa(), o = fa(), l = u !== void 0, [O, G] = ca(
|
|
199
|
+
u ?? S ?? [n]
|
|
200
|
+
), c = l ? u : O, k = (a) => {
|
|
201
|
+
l || G(a), p == null || p(a);
|
|
202
|
+
}, T = !!(o.disabled || U), A = o.describedBy || void 0, J = z ?? o.id, Q = ua(
|
|
203
|
+
(a) => new Intl.NumberFormat(L.language).format(a),
|
|
204
|
+
[L.language]
|
|
205
|
+
), D = C ?? Q, X = j("ui.inputs.slider.minLabel", "Minimum"), Y = j("ui.inputs.slider.maxLabel", "Maximum"), Z = M["aria-label"], aa = (a) => m != null && m[a] ? m[a] : c.length === 2 ? a === 0 ? X : Y : Z, ta = (a) => {
|
|
206
|
+
if (V == null || V(a), a.defaultPrevented || T || a.key !== "PageUp" && a.key !== "PageDown") return;
|
|
207
|
+
a.preventDefault();
|
|
208
|
+
const i = Array.from(
|
|
209
|
+
a.currentTarget.querySelectorAll('[role="slider"]')
|
|
210
|
+
), N = Math.max(
|
|
211
|
+
0,
|
|
212
|
+
i.indexOf(document.activeElement)
|
|
213
|
+
), oa = a.key === "PageUp" ? R : -R, B = c.map(
|
|
214
|
+
($, da) => da === N ? Math.max(n, Math.min(y, $ + oa)) : $
|
|
215
|
+
);
|
|
216
|
+
k(B), r == null || r(B);
|
|
217
|
+
}, ea = y - n || 1, sa = (a) => (a - n) / ea * 100, F = q(null), ra = va(v, F), ia = ha(F), I = q(c);
|
|
218
|
+
I.current = c;
|
|
219
|
+
const na = ma(
|
|
220
|
+
() => ({
|
|
221
|
+
getValue: () => I.current.slice(),
|
|
222
|
+
setValue: (a) => {
|
|
223
|
+
k(a), r == null || r(a);
|
|
224
|
+
}
|
|
225
|
+
}),
|
|
226
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
227
|
+
[l, p, r]
|
|
228
|
+
);
|
|
229
|
+
ba(ga, na, z);
|
|
230
|
+
const P = /* @__PURE__ */ f(
|
|
231
|
+
h.Root,
|
|
232
|
+
{
|
|
233
|
+
ref: ra,
|
|
234
|
+
id: J,
|
|
235
|
+
dir: W ?? ia,
|
|
236
|
+
orientation: s,
|
|
237
|
+
min: n,
|
|
238
|
+
max: y,
|
|
239
|
+
step: H,
|
|
240
|
+
disabled: T,
|
|
241
|
+
value: l ? u : void 0,
|
|
242
|
+
defaultValue: l ? void 0 : S ?? [n],
|
|
243
|
+
onValueChange: k,
|
|
244
|
+
onValueCommit: r,
|
|
245
|
+
onKeyDown: ta,
|
|
246
|
+
"aria-describedby": A,
|
|
247
|
+
"aria-invalid": o.invalid || void 0,
|
|
248
|
+
"aria-required": o.required || void 0,
|
|
249
|
+
className: wa({ size: x, className: _ }),
|
|
250
|
+
"data-component": "slider",
|
|
251
|
+
"data-component-id": z,
|
|
252
|
+
...M,
|
|
253
|
+
"aria-label": void 0,
|
|
254
|
+
children: [
|
|
255
|
+
/* @__PURE__ */ e(h.Track, { className: xa(), children: /* @__PURE__ */ e(h.Range, { className: ya() }) }),
|
|
256
|
+
b && b.length > 0 ? /* @__PURE__ */ e(
|
|
257
|
+
"span",
|
|
258
|
+
{
|
|
259
|
+
"aria-hidden": "true",
|
|
260
|
+
className: Sa({ orientation: s }),
|
|
261
|
+
children: b.map((a) => {
|
|
262
|
+
const i = sa(a.value), N = s === "vertical" ? { insetBlockEnd: `${i}%` } : { insetInlineStart: `${i}%` };
|
|
263
|
+
return /* @__PURE__ */ f(
|
|
264
|
+
"span",
|
|
265
|
+
{
|
|
266
|
+
className: Ra({ orientation: s }),
|
|
267
|
+
style: N,
|
|
268
|
+
children: [
|
|
269
|
+
/* @__PURE__ */ e("span", { className: Ma({ orientation: s }) }),
|
|
270
|
+
a.label ? /* @__PURE__ */ e("span", { className: ja(), children: a.label }) : null
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
`${a.value}-${a.label ?? ""}`
|
|
274
|
+
);
|
|
275
|
+
})
|
|
276
|
+
}
|
|
277
|
+
) : null,
|
|
278
|
+
c.map((a, i) => /* @__PURE__ */ f(
|
|
279
|
+
h.Thumb,
|
|
280
|
+
{
|
|
281
|
+
"aria-label": aa(i),
|
|
282
|
+
"aria-valuetext": D(a),
|
|
283
|
+
"aria-describedby": A,
|
|
284
|
+
"aria-invalid": o.invalid || void 0,
|
|
285
|
+
className: za({ size: x }),
|
|
286
|
+
children: [
|
|
287
|
+
/* @__PURE__ */ e("span", { "aria-hidden": "true", className: Va({ size: x }) }),
|
|
288
|
+
/* @__PURE__ */ e(
|
|
289
|
+
"span",
|
|
290
|
+
{
|
|
291
|
+
"aria-hidden": "true",
|
|
292
|
+
className: ka({ orientation: s }),
|
|
293
|
+
children: /* @__PURE__ */ e(
|
|
294
|
+
"span",
|
|
295
|
+
{
|
|
296
|
+
className: Na({
|
|
297
|
+
orientation: s,
|
|
298
|
+
alwaysShow: E
|
|
299
|
+
}),
|
|
300
|
+
children: D(a)
|
|
301
|
+
}
|
|
302
|
+
)
|
|
303
|
+
}
|
|
304
|
+
)
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
i
|
|
308
|
+
))
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
);
|
|
312
|
+
return g !== void 0 || w !== void 0 ? /* @__PURE__ */ f("div", { className: La({ orientation: s }), children: [
|
|
313
|
+
g !== void 0 ? /* @__PURE__ */ e("span", { className: K(), children: g }) : null,
|
|
314
|
+
P,
|
|
315
|
+
w !== void 0 ? /* @__PURE__ */ e("span", { className: K(), children: w }) : null
|
|
316
|
+
] }) : P;
|
|
317
|
+
});
|
|
318
|
+
Ta.displayName = "Slider";
|
|
319
|
+
export {
|
|
320
|
+
Ta as S
|
|
321
|
+
};
|
|
322
|
+
//# sourceMappingURL=slider-CcsQTZTA.js.map
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, useId as j, useMemo as S, useRef as G, useState as z, useEffect as A, useImperativeHandle as V } from "react";
|
|
3
|
+
import { c as Z } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as $ } from "react-i18next";
|
|
5
|
+
import q from "react-apexcharts";
|
|
6
|
+
import w from "apexcharts";
|
|
7
|
+
import { g as H, u as J } from "./apexcharts-theme-BkSShpEy.js";
|
|
8
|
+
function K(n) {
|
|
9
|
+
if (n.length < 2)
|
|
10
|
+
return { slope: 0, direction: "steady" };
|
|
11
|
+
const t = n.length, i = (t - 1) / 2, c = n.reduce((s, o) => s + o, 0) / t;
|
|
12
|
+
let a = 0, l = 0;
|
|
13
|
+
for (let s = 0; s < t; s++) {
|
|
14
|
+
const o = s - i;
|
|
15
|
+
a += o * (n[s] - c), l += o * o;
|
|
16
|
+
}
|
|
17
|
+
const d = l === 0 ? 0 : a / l, b = 0.01 * (Math.max(...n) - Math.min(...n) || 1), k = Math.abs(d) < b ? "steady" : d > 0 ? "increasing" : "decreasing";
|
|
18
|
+
return { slope: d, direction: k };
|
|
19
|
+
}
|
|
20
|
+
const D = Z("ds:relative ds:inline-block ds:w-full", {
|
|
21
|
+
variants: {
|
|
22
|
+
size: {
|
|
23
|
+
xs: "ds:h-6",
|
|
24
|
+
sm: "ds:h-8",
|
|
25
|
+
md: "ds:h-10"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
defaultVariants: { size: "md" }
|
|
29
|
+
}), Q = {
|
|
30
|
+
increasing: "↑",
|
|
31
|
+
decreasing: "↓",
|
|
32
|
+
steady: "→"
|
|
33
|
+
}, X = {
|
|
34
|
+
xs: 24,
|
|
35
|
+
sm: 32,
|
|
36
|
+
md: 40
|
|
37
|
+
};
|
|
38
|
+
function Y() {
|
|
39
|
+
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
40
|
+
}
|
|
41
|
+
const ee = P(
|
|
42
|
+
({
|
|
43
|
+
id: n,
|
|
44
|
+
data: t,
|
|
45
|
+
variant: i = "line",
|
|
46
|
+
size: c = "md",
|
|
47
|
+
label: a,
|
|
48
|
+
color: l,
|
|
49
|
+
showEndpoint: d = !1,
|
|
50
|
+
showTooltip: v = !1,
|
|
51
|
+
width: b,
|
|
52
|
+
height: k,
|
|
53
|
+
className: s,
|
|
54
|
+
...o
|
|
55
|
+
}, U) => {
|
|
56
|
+
var N;
|
|
57
|
+
const { t: u, i18n: R } = $(), M = j(), m = S(
|
|
58
|
+
() => `sparkline-${M.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
59
|
+
[M]
|
|
60
|
+
), p = G(null), [C, _] = z(0), { direction: y } = K(t), T = S(() => {
|
|
61
|
+
if (t.length === 0)
|
|
62
|
+
return u("ui.sparkline.noData", "No data");
|
|
63
|
+
const e = (g) => new Intl.NumberFormat(R.language).format(g), r = u(`ui.sparkline.direction.${y}`), f = {
|
|
64
|
+
min: e(Math.min(...t)),
|
|
65
|
+
max: e(Math.max(...t)),
|
|
66
|
+
current: e(t[t.length - 1]),
|
|
67
|
+
direction: r
|
|
68
|
+
};
|
|
69
|
+
return a ? u("ui.sparkline.summary", { label: a, ...f }) : u("ui.sparkline.summaryNoLabel", f);
|
|
70
|
+
}, [t, a, y, R.language, u]), [h, E] = z(() => {
|
|
71
|
+
try {
|
|
72
|
+
return H();
|
|
73
|
+
} catch {
|
|
74
|
+
return {};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
A(() => {
|
|
78
|
+
let e;
|
|
79
|
+
const r = new MutationObserver(() => {
|
|
80
|
+
clearTimeout(e), e = setTimeout(() => {
|
|
81
|
+
try {
|
|
82
|
+
E(H());
|
|
83
|
+
} catch {
|
|
84
|
+
}
|
|
85
|
+
}, 50);
|
|
86
|
+
});
|
|
87
|
+
return r.observe(document.documentElement, {
|
|
88
|
+
attributes: !0,
|
|
89
|
+
attributeFilter: ["class"]
|
|
90
|
+
}), () => {
|
|
91
|
+
clearTimeout(e), r.disconnect();
|
|
92
|
+
};
|
|
93
|
+
}, []), A(() => {
|
|
94
|
+
const e = p.current;
|
|
95
|
+
if (!e) return;
|
|
96
|
+
const r = new ResizeObserver((f) => {
|
|
97
|
+
const g = f[0];
|
|
98
|
+
g && _(Math.floor(g.contentRect.width));
|
|
99
|
+
});
|
|
100
|
+
return r.observe(e), () => r.disconnect();
|
|
101
|
+
}, []), J(p), V(U, () => ({
|
|
102
|
+
updateSeries(e) {
|
|
103
|
+
var r;
|
|
104
|
+
(r = w.getChartByID(m)) == null || r.updateSeries([{ data: e }]);
|
|
105
|
+
},
|
|
106
|
+
updateOptions(e) {
|
|
107
|
+
var r;
|
|
108
|
+
(r = w.getChartByID(m)) == null || r.updateOptions(e);
|
|
109
|
+
},
|
|
110
|
+
async dataURI() {
|
|
111
|
+
const e = w.getChartByID(m);
|
|
112
|
+
return e ? (await e.dataURI()).imgURI : "";
|
|
113
|
+
}
|
|
114
|
+
}));
|
|
115
|
+
const x = l ?? ((N = h.colors) == null ? void 0 : N[0]) ?? "currentColor";
|
|
116
|
+
if (t.length === 0)
|
|
117
|
+
return /* @__PURE__ */ I(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
ref: p,
|
|
121
|
+
role: "img",
|
|
122
|
+
"aria-label": T,
|
|
123
|
+
dir: "ltr",
|
|
124
|
+
className: D({ size: c, className: s }),
|
|
125
|
+
...o
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
const O = Y(), W = {
|
|
129
|
+
...h,
|
|
130
|
+
chart: {
|
|
131
|
+
...h.chart,
|
|
132
|
+
id: m,
|
|
133
|
+
type: i,
|
|
134
|
+
sparkline: { enabled: !0 },
|
|
135
|
+
toolbar: { show: !1 },
|
|
136
|
+
animations: {
|
|
137
|
+
enabled: !O,
|
|
138
|
+
dynamicAnimation: { enabled: !O }
|
|
139
|
+
},
|
|
140
|
+
zoom: { enabled: !1 },
|
|
141
|
+
parentHeightOffset: 0
|
|
142
|
+
},
|
|
143
|
+
colors: [x],
|
|
144
|
+
stroke: {
|
|
145
|
+
curve: "smooth",
|
|
146
|
+
width: i === "bar" ? 0 : 2
|
|
147
|
+
},
|
|
148
|
+
fill: {
|
|
149
|
+
opacity: i === "area" ? 0.15 : 1
|
|
150
|
+
},
|
|
151
|
+
xaxis: {
|
|
152
|
+
crosshairs: { show: !1 }
|
|
153
|
+
},
|
|
154
|
+
tooltip: { enabled: v },
|
|
155
|
+
markers: d ? {
|
|
156
|
+
size: [0],
|
|
157
|
+
discrete: [
|
|
158
|
+
{
|
|
159
|
+
seriesIndex: 0,
|
|
160
|
+
dataPointIndex: t.length - 1,
|
|
161
|
+
fillColor: x,
|
|
162
|
+
strokeColor: x,
|
|
163
|
+
size: 4
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
} : { size: 0 },
|
|
167
|
+
grid: {
|
|
168
|
+
...h.grid,
|
|
169
|
+
show: !1,
|
|
170
|
+
// ApexCharts grid.padding uses physical keys (not CSS logical properties).
|
|
171
|
+
// The chart wrapper enforces dir="ltr" so these always resolve correctly.
|
|
172
|
+
padding: { top: 2, right: 2, bottom: 2, left: 2 }
|
|
173
|
+
}
|
|
174
|
+
}, B = b ?? (C > 0 ? C : "100%"), F = k ?? X[c ?? "md"];
|
|
175
|
+
return /* @__PURE__ */ L(
|
|
176
|
+
"div",
|
|
177
|
+
{
|
|
178
|
+
ref: p,
|
|
179
|
+
role: "img",
|
|
180
|
+
"aria-label": T,
|
|
181
|
+
dir: "ltr",
|
|
182
|
+
className: D({ size: c, className: s }),
|
|
183
|
+
"data-component": "sparkline",
|
|
184
|
+
"data-component-id": n,
|
|
185
|
+
...o,
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ I(
|
|
188
|
+
q,
|
|
189
|
+
{
|
|
190
|
+
type: i,
|
|
191
|
+
series: [{ data: t }],
|
|
192
|
+
options: W,
|
|
193
|
+
width: B,
|
|
194
|
+
height: F,
|
|
195
|
+
"aria-hidden": "true"
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
d && /* @__PURE__ */ I(
|
|
199
|
+
"span",
|
|
200
|
+
{
|
|
201
|
+
"aria-hidden": "true",
|
|
202
|
+
className: "ds:pointer-events-none ds:absolute ds:end-0 ds:top-0 ds:text-[length:var(--font-size-xs)] ds:leading-none",
|
|
203
|
+
children: Q[y]
|
|
204
|
+
}
|
|
205
|
+
)
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
ee.displayName = "Sparkline";
|
|
212
|
+
const de = {
|
|
213
|
+
id: "sparkline",
|
|
214
|
+
capabilities: [],
|
|
215
|
+
state: {},
|
|
216
|
+
actions: {
|
|
217
|
+
update_series: {
|
|
218
|
+
safety: "read",
|
|
219
|
+
argsType: "{ data: number[] }",
|
|
220
|
+
description: "Replace the sparkline data without remounting.",
|
|
221
|
+
invoke: (n, t) => {
|
|
222
|
+
n.updateSeries(t.data);
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
export_png: {
|
|
226
|
+
safety: "read",
|
|
227
|
+
description: "Return a PNG data URI of the sparkline.",
|
|
228
|
+
invoke: (n) => n.dataURI()
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
domHooks: {
|
|
232
|
+
root: { attr: "data-component", value: "sparkline" },
|
|
233
|
+
instanceId: {
|
|
234
|
+
attr: "data-component-id",
|
|
235
|
+
sourceProp: "id",
|
|
236
|
+
description: "Sourced from the id prop."
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
export {
|
|
241
|
+
ee as S,
|
|
242
|
+
de as s,
|
|
243
|
+
K as u
|
|
244
|
+
};
|
|
245
|
+
//# sourceMappingURL=sparkline.agent-56Sj7nOP.js.map
|