@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,8 +1,8 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as i, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as pt, useId as gt, useMemo as Z, useState as G, useEffect as nt, useRef as vt, useCallback as U, useImperativeHandle as xt } from "react";
|
|
3
|
+
import * as D from "@radix-ui/react-tooltip";
|
|
4
4
|
import { c as M } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as
|
|
5
|
+
import { useTranslation as ct } from "react-i18next";
|
|
6
6
|
const X = [
|
|
7
7
|
// upper
|
|
8
8
|
"18",
|
|
@@ -62,17 +62,17 @@ const X = [
|
|
|
62
62
|
"74",
|
|
63
63
|
"75"
|
|
64
64
|
];
|
|
65
|
-
function
|
|
65
|
+
function wt(n) {
|
|
66
66
|
return n <= 2 ? "incisor" : n === 3 ? "canine" : n <= 5 ? "premolar" : "molar";
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function yt(n) {
|
|
69
69
|
return n <= 2 ? "incisor" : n === 3 ? "canine" : "molar";
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function bt(n, e) {
|
|
72
72
|
const r = (n - 1) % 4 + 1;
|
|
73
73
|
return `${r === 1 ? "UR" : r === 2 ? "UL" : r === 3 ? "LL" : "LR"}${e}`;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ct(n, e) {
|
|
76
76
|
switch (n) {
|
|
77
77
|
case 1:
|
|
78
78
|
return String(1 + (8 - e));
|
|
@@ -86,7 +86,7 @@ function bt(n, e) {
|
|
|
86
86
|
return "";
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Tt(n, e) {
|
|
90
90
|
const r = "ABCDEFGHIJKLMNOPQRST";
|
|
91
91
|
let a = -1;
|
|
92
92
|
switch (n) {
|
|
@@ -107,35 +107,35 @@ function Ct(n, e) {
|
|
|
107
107
|
}
|
|
108
108
|
return a >= 0 ? r[a] : "";
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
const e = Number(n[0]), r = Number(n[1]), a = e >= 5,
|
|
110
|
+
function kt(n) {
|
|
111
|
+
const e = Number(n[0]), r = Number(n[1]), a = e >= 5, h = a ? yt(r) : wt(r), N = e === 1 || e === 2 || e === 5 || e === 6 ? "upper" : "lower", w = e === 1 || e === 4 || e === 5 || e === 8 ? "right" : "left", u = a ? Tt(e, r) : Ct(e, r), v = bt(e, r);
|
|
112
112
|
return {
|
|
113
113
|
fdi: n,
|
|
114
|
-
universal:
|
|
115
|
-
palmer:
|
|
114
|
+
universal: u,
|
|
115
|
+
palmer: v,
|
|
116
116
|
quadrant: e,
|
|
117
117
|
positionInQuadrant: r,
|
|
118
|
-
anatomy:
|
|
119
|
-
arch:
|
|
120
|
-
side:
|
|
118
|
+
anatomy: h,
|
|
119
|
+
arch: N,
|
|
120
|
+
side: w,
|
|
121
121
|
dentition: a ? "primary" : "permanent"
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const b = [
|
|
125
125
|
...X,
|
|
126
126
|
...J
|
|
127
|
-
].reduce((n, e) => (n[e] =
|
|
128
|
-
Object.entries(
|
|
129
|
-
),
|
|
130
|
-
Object.entries(
|
|
131
|
-
),
|
|
127
|
+
].reduce((n, e) => (n[e] = kt(e), n), {}), Lt = Object.fromEntries(
|
|
128
|
+
Object.entries(b).map(([n, e]) => [n, e.universal])
|
|
129
|
+
), Ot = Object.fromEntries(
|
|
130
|
+
Object.entries(b).map(([n, e]) => [n, e.palmer])
|
|
131
|
+
), It = {
|
|
132
132
|
caries: "--destructive",
|
|
133
133
|
filled: "--info",
|
|
134
134
|
crowned: "--warning",
|
|
135
135
|
missing: "--muted-foreground",
|
|
136
136
|
implant: "--accent",
|
|
137
137
|
rootCanal: "--primary"
|
|
138
|
-
},
|
|
138
|
+
}, $ = {
|
|
139
139
|
caries: "var(--destructive)",
|
|
140
140
|
filled: "var(--info)",
|
|
141
141
|
crowned: "var(--warning)",
|
|
@@ -176,55 +176,55 @@ const y = [
|
|
|
176
176
|
path: "M4 4 C4 2 6 0 8 0 L24 0 C26 0 28 2 28 4 L30 44 C30 47 28 50 24 50 L8 50 C4 50 2 47 2 44 Z",
|
|
177
177
|
innerPath: "M6 32 L26 32 M16 22 L16 42"
|
|
178
178
|
}
|
|
179
|
-
},
|
|
180
|
-
function
|
|
179
|
+
}, _ = 4, rt = 24, O = 4;
|
|
180
|
+
function St(n) {
|
|
181
181
|
const e = n === "primary" ? J : n === "mixed" ? [...X, ...J] : X, r = [], a = [];
|
|
182
|
-
for (const
|
|
183
|
-
|
|
184
|
-
const
|
|
185
|
-
function
|
|
186
|
-
const
|
|
187
|
-
const x = K[y
|
|
188
|
-
return
|
|
189
|
-
}, 0),
|
|
182
|
+
for (const o of e)
|
|
183
|
+
b[o].arch === "upper" ? r.push(o) : a.push(o);
|
|
184
|
+
const h = 50, N = Math.max(r.length, a.length);
|
|
185
|
+
function w(o, p) {
|
|
186
|
+
const E = o.reduce((g, y) => {
|
|
187
|
+
const x = K[b[y].anatomy];
|
|
188
|
+
return g + x.width + _;
|
|
189
|
+
}, 0), q = o.length > 0 ? E - _ : 0;
|
|
190
190
|
let C = ((function() {
|
|
191
|
-
return (r.length >= a.length ? r : a).reduce((
|
|
192
|
-
const
|
|
193
|
-
return
|
|
194
|
-
}, 0) -
|
|
195
|
-
})() -
|
|
196
|
-
return
|
|
197
|
-
const
|
|
198
|
-
fdi:
|
|
199
|
-
meta:
|
|
191
|
+
return (r.length >= a.length ? r : a).reduce((T, V) => {
|
|
192
|
+
const R = K[b[V].anatomy];
|
|
193
|
+
return T + R.width + _;
|
|
194
|
+
}, 0) - _;
|
|
195
|
+
})() - q) / 2;
|
|
196
|
+
return o.map((g) => {
|
|
197
|
+
const y = b[g], x = K[y.anatomy], T = {
|
|
198
|
+
fdi: g,
|
|
199
|
+
meta: y,
|
|
200
200
|
shape: x,
|
|
201
201
|
x: C,
|
|
202
|
-
y:
|
|
202
|
+
y: p
|
|
203
203
|
};
|
|
204
|
-
return C += x.width +
|
|
204
|
+
return C += x.width + _, T;
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
),
|
|
211
|
-
return { teeth: [...
|
|
207
|
+
const u = w(r, 0), v = w(a, h + rt), j = Math.max(
|
|
208
|
+
u.reduce((o, p) => Math.max(o, p.x + p.shape.width), 0),
|
|
209
|
+
v.reduce((o, p) => Math.max(o, p.x + p.shape.width), 0)
|
|
210
|
+
), H = j > 0 ? j : N * 30, F = h * 2 + rt;
|
|
211
|
+
return { teeth: [...u, ...v], width: H, height: F };
|
|
212
212
|
}
|
|
213
|
-
function
|
|
213
|
+
function at(n, e) {
|
|
214
214
|
switch (e) {
|
|
215
215
|
case "universal":
|
|
216
|
-
return kt[n] ?? n;
|
|
217
|
-
case "palmer":
|
|
218
216
|
return Lt[n] ?? n;
|
|
217
|
+
case "palmer":
|
|
218
|
+
return Ot[n] ?? n;
|
|
219
219
|
case "fdi":
|
|
220
220
|
default:
|
|
221
221
|
return n;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Vt() {
|
|
225
225
|
return {};
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function st(n) {
|
|
228
228
|
const e = {};
|
|
229
229
|
for (const [r, a] of Object.entries(n))
|
|
230
230
|
!a || a.length === 0 || (e[r] = { conditions: a, surfaces: [] });
|
|
@@ -237,37 +237,37 @@ const $t = M(
|
|
|
237
237
|
"ds:gap-[var(--spacing-sm)]",
|
|
238
238
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]"
|
|
239
239
|
].join(" ")
|
|
240
|
-
),
|
|
240
|
+
), Mt = M(
|
|
241
241
|
[
|
|
242
242
|
"ds:block ds:max-w-full ds:h-auto",
|
|
243
243
|
"ds:text-[var(--foreground)]"
|
|
244
244
|
].join(" ")
|
|
245
|
-
),
|
|
245
|
+
), Nt = M(
|
|
246
246
|
[
|
|
247
247
|
"ds:group ds:cursor-pointer",
|
|
248
248
|
"ds:focus:outline-none",
|
|
249
249
|
"ds:transition-[fill,stroke,opacity] ds:duration-[var(--animation-duration)]",
|
|
250
250
|
"ds:motion-reduce:transition-none"
|
|
251
251
|
].join(" ")
|
|
252
|
-
),
|
|
252
|
+
), Rt = M(
|
|
253
253
|
[
|
|
254
254
|
"ds:flex ds:flex-wrap ds:items-center",
|
|
255
255
|
"ds:gap-[var(--spacing-sm)]",
|
|
256
256
|
"type-meta ds:text-[var(--muted-foreground)]"
|
|
257
257
|
].join(" ")
|
|
258
|
-
),
|
|
258
|
+
), At = M(
|
|
259
259
|
[
|
|
260
260
|
"ds:inline-flex ds:items-center",
|
|
261
261
|
"ds:gap-[var(--spacing-xs)]"
|
|
262
262
|
].join(" ")
|
|
263
|
-
),
|
|
263
|
+
), Dt = M(
|
|
264
264
|
[
|
|
265
265
|
"ds:inline-block",
|
|
266
266
|
"ds:inline-size-[0.75rem] ds:block-size-[0.75rem]",
|
|
267
267
|
"ds:rounded-[var(--radius-xs)]",
|
|
268
268
|
"ds:border ds:border-[color:var(--border)]"
|
|
269
269
|
].join(" ")
|
|
270
|
-
),
|
|
270
|
+
), Pt = M(
|
|
271
271
|
[
|
|
272
272
|
"ds:sr-only"
|
|
273
273
|
].join(" ")
|
|
@@ -275,18 +275,18 @@ const $t = M(
|
|
|
275
275
|
function Q(n) {
|
|
276
276
|
return n.value !== void 0;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function it() {
|
|
279
279
|
return { conditions: [], surfaces: [] };
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function ot(n) {
|
|
282
282
|
return !n || n.length === 0 ? ["caries"] : [];
|
|
283
283
|
}
|
|
284
284
|
function Et(n) {
|
|
285
285
|
return n.replace(/[^a-zA-Z0-9-_]/g, "");
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function _t({ idPrefix: n }) {
|
|
288
288
|
const e = (r) => `${n}-${r}`;
|
|
289
|
-
return /* @__PURE__ */
|
|
289
|
+
return /* @__PURE__ */ S("defs", { children: [
|
|
290
290
|
/* @__PURE__ */ i(
|
|
291
291
|
"pattern",
|
|
292
292
|
{
|
|
@@ -302,7 +302,7 @@ function Pt({ idPrefix: n }) {
|
|
|
302
302
|
y1: "0",
|
|
303
303
|
x2: "0",
|
|
304
304
|
y2: "6",
|
|
305
|
-
stroke:
|
|
305
|
+
stroke: $.caries,
|
|
306
306
|
strokeWidth: "2"
|
|
307
307
|
}
|
|
308
308
|
)
|
|
@@ -315,7 +315,7 @@ function Pt({ idPrefix: n }) {
|
|
|
315
315
|
patternUnits: "userSpaceOnUse",
|
|
316
316
|
width: "5",
|
|
317
317
|
height: "5",
|
|
318
|
-
children: /* @__PURE__ */ i("circle", { cx: "2.5", cy: "2.5", r: "1", fill:
|
|
318
|
+
children: /* @__PURE__ */ i("circle", { cx: "2.5", cy: "2.5", r: "1", fill: $.filled })
|
|
319
319
|
}
|
|
320
320
|
),
|
|
321
321
|
/* @__PURE__ */ i(
|
|
@@ -329,7 +329,7 @@ function Pt({ idPrefix: n }) {
|
|
|
329
329
|
"path",
|
|
330
330
|
{
|
|
331
331
|
d: "M0 0 L6 6 M6 0 L0 6",
|
|
332
|
-
stroke:
|
|
332
|
+
stroke: $.crowned,
|
|
333
333
|
strokeWidth: "1"
|
|
334
334
|
}
|
|
335
335
|
)
|
|
@@ -349,7 +349,7 @@ function Pt({ idPrefix: n }) {
|
|
|
349
349
|
y1: "0",
|
|
350
350
|
x2: "1",
|
|
351
351
|
y2: "4",
|
|
352
|
-
stroke:
|
|
352
|
+
stroke: $.implant,
|
|
353
353
|
strokeWidth: "1"
|
|
354
354
|
}
|
|
355
355
|
)
|
|
@@ -369,7 +369,7 @@ function Pt({ idPrefix: n }) {
|
|
|
369
369
|
y1: "1",
|
|
370
370
|
x2: "4",
|
|
371
371
|
y2: "1",
|
|
372
|
-
stroke:
|
|
372
|
+
stroke: $.rootCanal,
|
|
373
373
|
strokeWidth: "1"
|
|
374
374
|
}
|
|
375
375
|
)
|
|
@@ -377,7 +377,7 @@ function Pt({ idPrefix: n }) {
|
|
|
377
377
|
)
|
|
378
378
|
] });
|
|
379
379
|
}
|
|
380
|
-
const
|
|
380
|
+
const jt = [
|
|
381
381
|
"caries",
|
|
382
382
|
"filled",
|
|
383
383
|
"crowned",
|
|
@@ -385,22 +385,22 @@ const _t = [
|
|
|
385
385
|
"implant",
|
|
386
386
|
"rootCanal"
|
|
387
387
|
];
|
|
388
|
-
function
|
|
389
|
-
const { t: e } =
|
|
388
|
+
function Wt({ idPrefix: n }) {
|
|
389
|
+
const { t: e } = ct();
|
|
390
390
|
return /* @__PURE__ */ i(
|
|
391
391
|
"ul",
|
|
392
392
|
{
|
|
393
|
-
className:
|
|
393
|
+
className: Rt(),
|
|
394
394
|
"data-testid": "tooth-scheme-legend",
|
|
395
395
|
"aria-label": e("toothScheme.legendLabel"),
|
|
396
|
-
children:
|
|
396
|
+
children: jt.map((r) => /* @__PURE__ */ S("li", { className: At(), children: [
|
|
397
397
|
/* @__PURE__ */ i(
|
|
398
398
|
"span",
|
|
399
399
|
{
|
|
400
|
-
className:
|
|
400
|
+
className: Dt(),
|
|
401
401
|
"aria-hidden": "true",
|
|
402
402
|
"data-condition": r,
|
|
403
|
-
"data-token":
|
|
403
|
+
"data-token": It[r],
|
|
404
404
|
"data-testid": `tooth-scheme-legend-swatch-${r}`
|
|
405
405
|
}
|
|
406
406
|
),
|
|
@@ -409,78 +409,79 @@ function jt({ idPrefix: n }) {
|
|
|
409
409
|
}
|
|
410
410
|
);
|
|
411
411
|
}
|
|
412
|
-
const
|
|
412
|
+
const Ut = pt(
|
|
413
413
|
({
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
414
|
+
id: n,
|
|
415
|
+
dentition: e = "permanent",
|
|
416
|
+
numbering: r = "fdi",
|
|
417
|
+
mode: a = "interactive",
|
|
418
|
+
value: h,
|
|
419
|
+
defaultValue: N,
|
|
420
|
+
onChange: w,
|
|
420
421
|
onSelect: u,
|
|
421
|
-
conditions:
|
|
422
|
-
ariaLabel:
|
|
423
|
-
className:
|
|
424
|
-
},
|
|
425
|
-
const { t:
|
|
426
|
-
() => `ts-${Et(
|
|
427
|
-
[
|
|
428
|
-
), [
|
|
429
|
-
|
|
430
|
-
Q({ value:
|
|
431
|
-
}, [
|
|
432
|
-
const
|
|
433
|
-
() =>
|
|
434
|
-
[
|
|
435
|
-
),
|
|
436
|
-
|
|
437
|
-
(!
|
|
438
|
-
}, [
|
|
439
|
-
const [
|
|
422
|
+
conditions: v,
|
|
423
|
+
ariaLabel: j,
|
|
424
|
+
className: H
|
|
425
|
+
}, F) => {
|
|
426
|
+
const { t: o } = ct(), p = gt(), E = Z(
|
|
427
|
+
() => `ts-${Et(p)}`,
|
|
428
|
+
[p]
|
|
429
|
+
), [q, z] = G(() => h !== void 0 ? h : N !== void 0 ? N : v ? st(v) : {}), f = Q({ value: h }) ? h : q;
|
|
430
|
+
nt(() => {
|
|
431
|
+
Q({ value: h }) || v !== void 0 && z(st(v));
|
|
432
|
+
}, [v, h]);
|
|
433
|
+
const C = Z(() => St(e), [e]), g = Z(
|
|
434
|
+
() => C.teeth.map((t) => t.fdi),
|
|
435
|
+
[C]
|
|
436
|
+
), y = g[0], [x, T] = G(y);
|
|
437
|
+
nt(() => {
|
|
438
|
+
(!x || !g.includes(x)) && T(y);
|
|
439
|
+
}, [y, x, g]);
|
|
440
|
+
const [V, R] = G(""), Y = vt(null), W = U(
|
|
440
441
|
(t) => {
|
|
441
|
-
Q({ value:
|
|
442
|
+
Q({ value: h }) || z(t), w == null || w(t);
|
|
442
443
|
},
|
|
443
|
-
[
|
|
444
|
-
),
|
|
445
|
-
const
|
|
446
|
-
if (!
|
|
447
|
-
const s =
|
|
448
|
-
s && (s.focus(),
|
|
444
|
+
[w, h]
|
|
445
|
+
), k = U((t) => {
|
|
446
|
+
const c = Y.current;
|
|
447
|
+
if (!c) return;
|
|
448
|
+
const s = c.querySelector(`g[data-fdi="${t}"]`);
|
|
449
|
+
s && (s.focus(), T(t));
|
|
449
450
|
}, []);
|
|
450
|
-
|
|
451
|
-
|
|
451
|
+
xt(
|
|
452
|
+
F,
|
|
452
453
|
() => ({
|
|
453
454
|
focusTooth: (t) => {
|
|
454
|
-
|
|
455
|
+
k(t);
|
|
455
456
|
},
|
|
456
|
-
getChart: () =>
|
|
457
|
+
getChart: () => f
|
|
457
458
|
}),
|
|
458
|
-
[
|
|
459
|
+
[f, k]
|
|
459
460
|
);
|
|
460
|
-
const
|
|
461
|
-
(t,
|
|
462
|
-
var
|
|
463
|
-
if (
|
|
464
|
-
const s =
|
|
461
|
+
const dt = U(
|
|
462
|
+
(t, c) => {
|
|
463
|
+
var A;
|
|
464
|
+
if (a !== "interactive") return;
|
|
465
|
+
const s = b[c];
|
|
465
466
|
if (!s) return;
|
|
466
|
-
const d =
|
|
467
|
+
const d = g, I = d.indexOf(c);
|
|
467
468
|
switch (t.key) {
|
|
468
469
|
case "ArrowRight": {
|
|
469
470
|
t.preventDefault();
|
|
470
471
|
const l = Math.min(d.length - 1, I + 1);
|
|
471
|
-
|
|
472
|
+
k(d[l]);
|
|
472
473
|
return;
|
|
473
474
|
}
|
|
474
475
|
case "ArrowLeft": {
|
|
475
476
|
t.preventDefault();
|
|
476
477
|
const l = Math.max(0, I - 1);
|
|
477
|
-
|
|
478
|
+
k(d[l]);
|
|
478
479
|
return;
|
|
479
480
|
}
|
|
480
481
|
case "ArrowUp":
|
|
481
482
|
case "ArrowDown": {
|
|
482
483
|
t.preventDefault();
|
|
483
|
-
const
|
|
484
|
+
const m = {
|
|
484
485
|
1: 4,
|
|
485
486
|
4: 1,
|
|
486
487
|
2: 3,
|
|
@@ -490,101 +491,102 @@ const Wt = mt(
|
|
|
490
491
|
6: 7,
|
|
491
492
|
7: 6
|
|
492
493
|
}[s.quadrant];
|
|
493
|
-
if (!
|
|
494
|
-
const
|
|
495
|
-
d.includes(
|
|
494
|
+
if (!m) return;
|
|
495
|
+
const L = `${m}${s.positionInQuadrant}`;
|
|
496
|
+
d.includes(L) && k(L);
|
|
496
497
|
return;
|
|
497
498
|
}
|
|
498
499
|
case "Home": {
|
|
499
500
|
t.preventDefault();
|
|
500
501
|
const l = d.filter(
|
|
501
|
-
(
|
|
502
|
+
(m) => b[m].quadrant === s.quadrant
|
|
502
503
|
);
|
|
503
|
-
l.length > 0 &&
|
|
504
|
+
l.length > 0 && k(l[0]);
|
|
504
505
|
return;
|
|
505
506
|
}
|
|
506
507
|
case "End": {
|
|
507
508
|
t.preventDefault();
|
|
508
509
|
const l = d.filter(
|
|
509
|
-
(
|
|
510
|
+
(m) => b[m].quadrant === s.quadrant
|
|
510
511
|
);
|
|
511
|
-
l.length > 0 &&
|
|
512
|
+
l.length > 0 && k(l[l.length - 1]);
|
|
512
513
|
return;
|
|
513
514
|
}
|
|
514
515
|
case " ":
|
|
515
516
|
case "Enter": {
|
|
516
517
|
t.preventDefault();
|
|
517
|
-
const l = (
|
|
518
|
-
|
|
519
|
-
...
|
|
520
|
-
conditions:
|
|
521
|
-
},
|
|
522
|
-
|
|
523
|
-
id:
|
|
524
|
-
conditions:
|
|
518
|
+
const l = (A = f[c]) == null ? void 0 : A.conditions, m = ot(l), L = { ...f };
|
|
519
|
+
m.length === 0 ? (delete L[c], R(o("toothScheme.deselected", { id: c }))) : (L[c] = {
|
|
520
|
+
...f[c] ?? it(),
|
|
521
|
+
conditions: m
|
|
522
|
+
}, R(
|
|
523
|
+
o("toothScheme.selected", {
|
|
524
|
+
id: c,
|
|
525
|
+
conditions: m.map((B) => o(`toothScheme.condition.${B}`)).join(", ")
|
|
525
526
|
})
|
|
526
|
-
)),
|
|
527
|
+
)), W(L), u == null || u(c);
|
|
527
528
|
return;
|
|
528
529
|
}
|
|
529
530
|
default:
|
|
530
531
|
return;
|
|
531
532
|
}
|
|
532
533
|
},
|
|
533
|
-
[
|
|
534
|
-
),
|
|
534
|
+
[f, W, k, a, u, o, g]
|
|
535
|
+
), lt = U(
|
|
535
536
|
(t) => {
|
|
536
537
|
var I;
|
|
537
|
-
if (
|
|
538
|
-
|
|
539
|
-
const
|
|
540
|
-
s.length === 0 ? (delete d[t],
|
|
541
|
-
...
|
|
538
|
+
if (a !== "interactive") return;
|
|
539
|
+
T(t);
|
|
540
|
+
const c = (I = f[t]) == null ? void 0 : I.conditions, s = ot(c), d = { ...f };
|
|
541
|
+
s.length === 0 ? (delete d[t], R(o("toothScheme.deselected", { id: t }))) : (d[t] = {
|
|
542
|
+
...f[t] ?? it(),
|
|
542
543
|
conditions: s
|
|
543
|
-
},
|
|
544
|
-
|
|
544
|
+
}, R(
|
|
545
|
+
o("toothScheme.selected", {
|
|
545
546
|
id: t,
|
|
546
|
-
conditions: s.map((
|
|
547
|
+
conditions: s.map((A) => o(`toothScheme.condition.${A}`)).join(", ")
|
|
547
548
|
})
|
|
548
|
-
)),
|
|
549
|
+
)), W(d), u == null || u(t);
|
|
549
550
|
},
|
|
550
|
-
[
|
|
551
|
-
),
|
|
552
|
-
return /* @__PURE__ */ i(
|
|
551
|
+
[f, W, a, u, o]
|
|
552
|
+
), ht = C.width + 4, ut = C.height + 4, tt = j ?? o("toothScheme.ariaLabel");
|
|
553
|
+
return /* @__PURE__ */ i(D.Provider, { delayDuration: 200, children: /* @__PURE__ */ S(
|
|
553
554
|
"div",
|
|
554
555
|
{
|
|
555
556
|
role: "region",
|
|
556
|
-
"aria-label":
|
|
557
|
-
className: [$t(),
|
|
557
|
+
"aria-label": tt,
|
|
558
|
+
className: [$t(), H].filter(Boolean).join(" "),
|
|
558
559
|
"data-component": "tooth-scheme",
|
|
560
|
+
"data-component-id": n,
|
|
559
561
|
"data-testid": "tooth-scheme-root",
|
|
560
|
-
"data-dentition":
|
|
561
|
-
"data-numbering":
|
|
562
|
-
"data-mode":
|
|
562
|
+
"data-dentition": e,
|
|
563
|
+
"data-numbering": r,
|
|
564
|
+
"data-mode": a,
|
|
563
565
|
children: [
|
|
564
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ S(
|
|
565
567
|
"svg",
|
|
566
568
|
{
|
|
567
|
-
ref:
|
|
568
|
-
viewBox: `0 0 ${
|
|
569
|
-
className:
|
|
569
|
+
ref: Y,
|
|
570
|
+
viewBox: `0 0 ${ht} ${ut}`,
|
|
571
|
+
className: Mt(),
|
|
570
572
|
role: "group",
|
|
571
|
-
"aria-label":
|
|
573
|
+
"aria-label": tt,
|
|
572
574
|
"data-testid": "tooth-scheme-svg",
|
|
573
575
|
focusable: "false",
|
|
574
576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
575
577
|
children: [
|
|
576
|
-
/* @__PURE__ */ i(
|
|
577
|
-
|
|
578
|
-
var
|
|
579
|
-
const
|
|
578
|
+
/* @__PURE__ */ i(_t, { idPrefix: E }),
|
|
579
|
+
C.teeth.map((t) => {
|
|
580
|
+
var et;
|
|
581
|
+
const c = f[t.fdi], s = (et = c == null ? void 0 : c.conditions) == null ? void 0 : et[0], d = o(
|
|
580
582
|
`toothScheme.anatomy.${t.meta.anatomy}`
|
|
581
|
-
), I = s ? `, ${
|
|
582
|
-
id:
|
|
583
|
+
), I = s ? `, ${o(`toothScheme.condition.${s}`)}` : "", A = o("toothScheme.toothLabel", {
|
|
584
|
+
id: at(t.fdi, r),
|
|
583
585
|
anatomy: d,
|
|
584
586
|
conditionSuffix: I
|
|
585
|
-
}), l =
|
|
586
|
-
return /* @__PURE__ */
|
|
587
|
-
/* @__PURE__ */ i(
|
|
587
|
+
}), l = a === "interactive" ? t.fdi === x ? 0 : -1 : void 0, m = s && s !== "missing" ? `url(#${E}-${P[s]})` : "var(--muted)", L = s && s !== "missing" ? $[s] : "var(--border)", B = s ? `${d} · ${o(`toothScheme.condition.${s}`)}` : d, ft = at(t.fdi, r);
|
|
588
|
+
return /* @__PURE__ */ S(D.Root, { children: [
|
|
589
|
+
/* @__PURE__ */ i(D.Trigger, { asChild: !0, children: /* @__PURE__ */ S(
|
|
588
590
|
"g",
|
|
589
591
|
{
|
|
590
592
|
"data-fdi": t.fdi,
|
|
@@ -596,21 +598,21 @@ const Wt = mt(
|
|
|
596
598
|
"data-testid": `tooth-${t.fdi}`,
|
|
597
599
|
transform: `translate(${t.x}, ${t.y})`,
|
|
598
600
|
tabIndex: l,
|
|
599
|
-
role:
|
|
600
|
-
"aria-label":
|
|
601
|
-
"aria-pressed":
|
|
602
|
-
className:
|
|
603
|
-
onClick:
|
|
604
|
-
onFocus: () =>
|
|
605
|
-
onKeyDown: (
|
|
601
|
+
role: a === "interactive" ? "button" : void 0,
|
|
602
|
+
"aria-label": A,
|
|
603
|
+
"aria-pressed": a === "interactive" ? s !== void 0 : void 0,
|
|
604
|
+
className: Nt(),
|
|
605
|
+
onClick: a === "interactive" ? () => lt(t.fdi) : void 0,
|
|
606
|
+
onFocus: () => T(t.fdi),
|
|
607
|
+
onKeyDown: (mt) => dt(mt, t.fdi),
|
|
606
608
|
children: [
|
|
607
609
|
/* @__PURE__ */ i(
|
|
608
610
|
"rect",
|
|
609
611
|
{
|
|
610
|
-
x: -
|
|
611
|
-
y: -
|
|
612
|
-
width: t.shape.width +
|
|
613
|
-
height: t.shape.height +
|
|
612
|
+
x: -O,
|
|
613
|
+
y: -O,
|
|
614
|
+
width: t.shape.width + O * 2,
|
|
615
|
+
height: t.shape.height + O * 2,
|
|
614
616
|
fill: "transparent"
|
|
615
617
|
}
|
|
616
618
|
),
|
|
@@ -618,8 +620,8 @@ const Wt = mt(
|
|
|
618
620
|
"path",
|
|
619
621
|
{
|
|
620
622
|
d: t.shape.path,
|
|
621
|
-
fill:
|
|
622
|
-
stroke:
|
|
623
|
+
fill: m,
|
|
624
|
+
stroke: L,
|
|
623
625
|
strokeWidth: "1.5",
|
|
624
626
|
vectorEffect: "non-scaling-stroke"
|
|
625
627
|
}
|
|
@@ -637,10 +639,10 @@ const Wt = mt(
|
|
|
637
639
|
/* @__PURE__ */ i(
|
|
638
640
|
"rect",
|
|
639
641
|
{
|
|
640
|
-
x: -
|
|
641
|
-
y: -
|
|
642
|
-
width: t.shape.width +
|
|
643
|
-
height: t.shape.height +
|
|
642
|
+
x: -O,
|
|
643
|
+
y: -O,
|
|
644
|
+
width: t.shape.width + O * 2,
|
|
645
|
+
height: t.shape.height + O * 2,
|
|
644
646
|
fill: "none",
|
|
645
647
|
stroke: "var(--ring)",
|
|
646
648
|
strokeWidth: "var(--focus-ring-width)",
|
|
@@ -658,7 +660,7 @@ const Wt = mt(
|
|
|
658
660
|
"path",
|
|
659
661
|
{
|
|
660
662
|
d: `M2 2 L${t.shape.width - 2} ${t.shape.height - 2} M${t.shape.width - 2} 2 L2 ${t.shape.height - 2}`,
|
|
661
|
-
stroke:
|
|
663
|
+
stroke: $.missing,
|
|
662
664
|
strokeWidth: "2",
|
|
663
665
|
fill: "none"
|
|
664
666
|
}
|
|
@@ -673,21 +675,21 @@ const Wt = mt(
|
|
|
673
675
|
fill: "var(--muted-foreground)",
|
|
674
676
|
className: "ds:select-none",
|
|
675
677
|
"aria-hidden": "true",
|
|
676
|
-
children:
|
|
678
|
+
children: ft
|
|
677
679
|
}
|
|
678
680
|
)
|
|
679
681
|
]
|
|
680
682
|
}
|
|
681
683
|
) }),
|
|
682
|
-
/* @__PURE__ */ i(
|
|
683
|
-
|
|
684
|
+
/* @__PURE__ */ i(D.Portal, { children: /* @__PURE__ */ S(
|
|
685
|
+
D.Content,
|
|
684
686
|
{
|
|
685
687
|
side: "top",
|
|
686
688
|
sideOffset: 6,
|
|
687
689
|
className: "ds:z-[var(--z-tooltip)] ds:rounded-[var(--radius-sm)] ds:bg-[var(--foreground)] ds:text-[var(--background)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:pt-[calc(var(--spacing-xs)/2)] ds:pb-[calc(var(--spacing-xs)/2)] ds:text-[length:var(--font-size-xs)]",
|
|
688
690
|
children: [
|
|
689
691
|
B,
|
|
690
|
-
/* @__PURE__ */ i(
|
|
692
|
+
/* @__PURE__ */ i(D.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
691
693
|
]
|
|
692
694
|
}
|
|
693
695
|
) })
|
|
@@ -696,15 +698,15 @@ const Wt = mt(
|
|
|
696
698
|
]
|
|
697
699
|
}
|
|
698
700
|
),
|
|
699
|
-
/* @__PURE__ */ i(
|
|
701
|
+
/* @__PURE__ */ i(Wt, { idPrefix: E }),
|
|
700
702
|
/* @__PURE__ */ i(
|
|
701
703
|
"div",
|
|
702
704
|
{
|
|
703
|
-
className:
|
|
705
|
+
className: Pt(),
|
|
704
706
|
"aria-live": "polite",
|
|
705
707
|
"aria-atomic": "true",
|
|
706
708
|
"data-testid": "tooth-scheme-live",
|
|
707
|
-
children:
|
|
709
|
+
children: V
|
|
708
710
|
}
|
|
709
711
|
)
|
|
710
712
|
]
|
|
@@ -712,8 +714,8 @@ const Wt = mt(
|
|
|
712
714
|
) });
|
|
713
715
|
}
|
|
714
716
|
);
|
|
715
|
-
|
|
716
|
-
const
|
|
717
|
+
Ut.displayName = "ToothScheme";
|
|
718
|
+
const Bt = {
|
|
717
719
|
id: "tooth-scheme",
|
|
718
720
|
capabilities: ["pick"],
|
|
719
721
|
state: {
|
|
@@ -735,6 +737,11 @@ const Vt = {
|
|
|
735
737
|
},
|
|
736
738
|
domHooks: {
|
|
737
739
|
root: { attr: "data-component", value: "tooth-scheme" },
|
|
740
|
+
instanceId: {
|
|
741
|
+
attr: "data-component-id",
|
|
742
|
+
sourceProp: "id",
|
|
743
|
+
description: "Sourced from the id prop."
|
|
744
|
+
},
|
|
738
745
|
item: {
|
|
739
746
|
attr: "data-fdi",
|
|
740
747
|
description: 'Each rendered tooth `<g>` carries its FDI id as `data-fdi`. Tests still use `data-testid="tooth-<fdi>"` separately.'
|
|
@@ -742,21 +749,21 @@ const Vt = {
|
|
|
742
749
|
}
|
|
743
750
|
};
|
|
744
751
|
export {
|
|
745
|
-
|
|
746
|
-
|
|
752
|
+
$ as C,
|
|
753
|
+
b as F,
|
|
747
754
|
X as P,
|
|
748
755
|
K as T,
|
|
749
756
|
P as a,
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
757
|
+
It as b,
|
|
758
|
+
Ot as c,
|
|
759
|
+
Lt as d,
|
|
753
760
|
J as e,
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
761
|
+
Ut as f,
|
|
762
|
+
st as g,
|
|
763
|
+
Vt as h,
|
|
764
|
+
St as i,
|
|
765
|
+
at as l,
|
|
759
766
|
$t as r,
|
|
760
|
-
|
|
767
|
+
Bt as t
|
|
761
768
|
};
|
|
762
|
-
//# sourceMappingURL=tooth-scheme.agent-
|
|
769
|
+
//# sourceMappingURL=tooth-scheme.agent-CWrQBjJM.js.map
|