@alfadocs/ui-kit 0.0.20 → 0.1.0
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-BJD1aM67.js +117 -0
- package/dist/_chunks/accordion-BJD1aM67.js.map +1 -0
- package/dist/_chunks/agenda-card-Bld47Eul.js +130 -0
- package/dist/_chunks/agenda-card-Bld47Eul.js.map +1 -0
- package/dist/_chunks/agenda-tray-D86cNIJ0.js +119 -0
- package/dist/_chunks/agenda-tray-D86cNIJ0.js.map +1 -0
- package/dist/_chunks/ai-prompt-input-CdYwt2VP.js +379 -0
- package/dist/_chunks/ai-prompt-input-CdYwt2VP.js.map +1 -0
- package/dist/_chunks/{alert-C5ud6CfE.js → alert-ETrF7Q8J.js} +51 -51
- package/dist/_chunks/alert-ETrF7Q8J.js.map +1 -0
- package/dist/_chunks/apexcharts-theme-BkSShpEy.js +48 -0
- package/dist/_chunks/apexcharts-theme-BkSShpEy.js.map +1 -0
- package/dist/_chunks/{app-frame-CmIUp9BD.js → app-frame-uq2Gy0vs.js} +37 -37
- package/dist/_chunks/app-frame-uq2Gy0vs.js.map +1 -0
- package/dist/_chunks/aspect-ratio-BqU4itGW.js +56 -0
- package/dist/_chunks/aspect-ratio-BqU4itGW.js.map +1 -0
- package/dist/_chunks/{audio-recorder-GkGNtW2X.js → audio-recorder-D2UEBF9B.js} +98 -98
- package/dist/_chunks/audio-recorder-D2UEBF9B.js.map +1 -0
- package/dist/_chunks/{audio-visualiser-CIO3yy23.js → audio-visualiser-B4u4goV5.js} +46 -46
- package/dist/_chunks/audio-visualiser-B4u4goV5.js.map +1 -0
- package/dist/_chunks/{autocomplete.agent-kb0nmr6F.js → autocomplete.agent-Bi6CiRKa.js} +111 -111
- package/dist/_chunks/autocomplete.agent-Bi6CiRKa.js.map +1 -0
- package/dist/_chunks/{avatar-BsV7vRA6.js → avatar-BAhxbDEu.js} +38 -38
- package/dist/_chunks/avatar-BAhxbDEu.js.map +1 -0
- package/dist/_chunks/badge-zDghajh8.js +104 -0
- package/dist/_chunks/badge-zDghajh8.js.map +1 -0
- package/dist/_chunks/{balance-cell-renderer-BQwN51rT.js → balance-cell-renderer-BGyvZWjB.js} +123 -124
- package/dist/_chunks/balance-cell-renderer-BGyvZWjB.js.map +1 -0
- package/dist/_chunks/{breadcrumb-DnO6eHSS.js → breadcrumb-pdUacgm1.js} +40 -40
- package/dist/_chunks/breadcrumb-pdUacgm1.js.map +1 -0
- package/dist/_chunks/button-DmiGFnNA.js +119 -0
- package/dist/_chunks/button-DmiGFnNA.js.map +1 -0
- package/dist/_chunks/{button-group-CI7LFxt3.js → button-group-BtTHSyU0.js} +24 -24
- package/dist/_chunks/button-group-BtTHSyU0.js.map +1 -0
- package/dist/_chunks/{calendar-BIXVzhkL.js → calendar-BkDeDTaX.js} +333 -290
- package/dist/_chunks/calendar-BkDeDTaX.js.map +1 -0
- package/dist/_chunks/card-DeItIBcV.js +158 -0
- package/dist/_chunks/card-DeItIBcV.js.map +1 -0
- package/dist/_chunks/{chart.agent-DkmVXNsI.js → chart.agent-BdS-_8MO.js} +66 -64
- package/dist/_chunks/chart.agent-BdS-_8MO.js.map +1 -0
- package/dist/_chunks/chat-container-Co8HpB64.js +174 -0
- package/dist/_chunks/chat-container-Co8HpB64.js.map +1 -0
- package/dist/_chunks/{chat-input-aphxDjZL.js → chat-input-3rstZhHR.js} +57 -57
- package/dist/_chunks/chat-input-3rstZhHR.js.map +1 -0
- package/dist/_chunks/{chat-message-CdJSD18D.js → chat-message-dDMVSYBs.js} +66 -66
- package/dist/_chunks/chat-message-dDMVSYBs.js.map +1 -0
- package/dist/_chunks/checkbox-DMzgtnqw.js +116 -0
- package/dist/_chunks/checkbox-DMzgtnqw.js.map +1 -0
- package/dist/_chunks/{checkbox-group-D1aqVI0-.js → checkbox-group-DBnIBRT_.js} +34 -34
- package/dist/_chunks/checkbox-group-DBnIBRT_.js.map +1 -0
- package/dist/_chunks/{collapsible-jBFm7Ah8.js → collapsible-DPGQnHZh.js} +16 -16
- package/dist/_chunks/collapsible-DPGQnHZh.js.map +1 -0
- package/dist/_chunks/{color-picker-CiotzQJF.js → color-picker-OKKF3Dww.js} +158 -158
- package/dist/_chunks/color-picker-OKKF3Dww.js.map +1 -0
- package/dist/_chunks/{combobox.agent-B6RwDSct.js → combobox.agent-CfeB-IZ1.js} +107 -107
- package/dist/_chunks/combobox.agent-CfeB-IZ1.js.map +1 -0
- package/dist/_chunks/{command-palette.agent-B87_OkmC.js → command-palette.agent-XLfSGHCL.js} +27 -27
- package/dist/_chunks/command-palette.agent-XLfSGHCL.js.map +1 -0
- package/dist/_chunks/{date-picker-CdPuI3dK.js → date-picker-DXx8oSJb.js} +5 -5
- package/dist/_chunks/{date-picker-CdPuI3dK.js.map → date-picker-DXx8oSJb.js.map} +1 -1
- package/dist/_chunks/{date-range-picker-DfK4cjln.js → date-range-picker-C3CbY__H.js} +29 -29
- package/dist/_chunks/{date-range-picker-DfK4cjln.js.map → date-range-picker-C3CbY__H.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-CX_FMsLG.js → date-time-picker-Bn3FPeAc.js} +58 -58
- package/dist/_chunks/date-time-picker-Bn3FPeAc.js.map +1 -0
- package/dist/_chunks/description-list-B1CL3RTG.js +187 -0
- package/dist/_chunks/description-list-B1CL3RTG.js.map +1 -0
- package/dist/_chunks/{dialog.agent-B276rAQF.js → dialog.agent-D9WeIWi2.js} +39 -39
- package/dist/_chunks/dialog.agent-D9WeIWi2.js.map +1 -0
- package/dist/_chunks/dropdown-menu-BnVUeVG3.js +210 -0
- package/dist/_chunks/dropdown-menu-BnVUeVG3.js.map +1 -0
- package/dist/_chunks/{empty-state-DiG7vYBM.js → empty-state-DV96gCnp.js} +37 -37
- package/dist/_chunks/empty-state-DV96gCnp.js.map +1 -0
- package/dist/_chunks/{file-upload.agent-BMow5yDY.js → file-upload.agent-DYFnqdxw.js} +185 -185
- package/dist/_chunks/file-upload.agent-DYFnqdxw.js.map +1 -0
- package/dist/_chunks/{flag-ChP784EM.js → flag-C3BUEwHH.js} +14 -14
- package/dist/_chunks/{flag-ChP784EM.js.map → flag-C3BUEwHH.js.map} +1 -1
- package/dist/_chunks/floating-action-button-RigP2E7o.js +95 -0
- package/dist/_chunks/floating-action-button-RigP2E7o.js.map +1 -0
- package/dist/_chunks/form-field-DI5LY5aG.js +121 -0
- package/dist/_chunks/form-field-DI5LY5aG.js.map +1 -0
- package/dist/_chunks/freemium-paywall-D0GiUFOe.js +197 -0
- package/dist/_chunks/freemium-paywall-D0GiUFOe.js.map +1 -0
- package/dist/_chunks/{header-BpKaSL_v.js → header-CW2oRd5H.js} +111 -111
- package/dist/_chunks/header-CW2oRd5H.js.map +1 -0
- package/dist/_chunks/icon-button-C482ii4y.js +45 -0
- package/dist/_chunks/icon-button-C482ii4y.js.map +1 -0
- package/dist/_chunks/{icon-button-group-tERESY-n.js → icon-button-group-BnhkUWUg.js} +56 -56
- package/dist/_chunks/icon-button-group-BnhkUWUg.js.map +1 -0
- package/dist/_chunks/{kbd-0iPlQjgC.js → kbd-DTcIjYA7.js} +52 -52
- package/dist/_chunks/kbd-DTcIjYA7.js.map +1 -0
- package/dist/_chunks/{key-value-pair--Je59tAF.js → key-value-pair-DDhSYdDL.js} +26 -26
- package/dist/_chunks/key-value-pair-DDhSYdDL.js.map +1 -0
- package/dist/_chunks/leo-sidebar-gXXcGPKk.js +755 -0
- package/dist/_chunks/leo-sidebar-gXXcGPKk.js.map +1 -0
- package/dist/_chunks/{list-n8vI8Yvn.js → list-Cwe8mcmh.js} +96 -96
- package/dist/_chunks/list-Cwe8mcmh.js.map +1 -0
- package/dist/_chunks/live-region-COggO6x6.js +57 -0
- package/dist/_chunks/live-region-COggO6x6.js.map +1 -0
- package/dist/_chunks/{logo-UNWYb9p7.js → logo-3wrZGpwg.js} +29 -29
- package/dist/_chunks/logo-3wrZGpwg.js.map +1 -0
- package/dist/_chunks/{matrix-rain-Q7xTEpKu.js → matrix-rain-gsHqSvW7.js} +75 -75
- package/dist/_chunks/matrix-rain-gsHqSvW7.js.map +1 -0
- package/dist/_chunks/message-card-DID3cXUW.js +275 -0
- package/dist/_chunks/message-card-DID3cXUW.js.map +1 -0
- package/dist/_chunks/message-tray-CVMLBnVp.js +302 -0
- package/dist/_chunks/message-tray-CVMLBnVp.js.map +1 -0
- package/dist/_chunks/{multi-select.agent-Cf4pU636.js → multi-select.agent-BUKYZJfp.js} +126 -126
- package/dist/_chunks/multi-select.agent-BUKYZJfp.js.map +1 -0
- package/dist/_chunks/{navigation-menu-DBDsAmXc.js → navigation-menu-NjwxyshT.js} +68 -97
- package/dist/_chunks/navigation-menu-NjwxyshT.js.map +1 -0
- package/dist/_chunks/notification-card-BZ33fq8H.js +255 -0
- package/dist/_chunks/notification-card-BZ33fq8H.js.map +1 -0
- package/dist/_chunks/{notification-tray-CNWPuPZp.js → notification-tray-CnEd7B2q.js} +96 -96
- package/dist/_chunks/notification-tray-CnEd7B2q.js.map +1 -0
- package/dist/_chunks/{number-input-B1Th0DdC.js → number-input-D7rSa_ef.js} +73 -73
- package/dist/_chunks/number-input-D7rSa_ef.js.map +1 -0
- package/dist/_chunks/{otp-input-CmoBuZ4K.js → otp-input-C9R9sC74.js} +42 -42
- package/dist/_chunks/otp-input-C9R9sC74.js.map +1 -0
- package/dist/_chunks/{pagination.agent-B5KLDCMN.js → pagination.agent-D75FB6XP.js} +106 -106
- package/dist/_chunks/pagination.agent-D75FB6XP.js.map +1 -0
- package/dist/_chunks/{password-input-DnjNh-hQ.js → password-input-C6PvKyQV.js} +59 -59
- package/dist/_chunks/password-input-C6PvKyQV.js.map +1 -0
- package/dist/_chunks/{patient-shell-D0RaWDMR.js → patient-shell-CGsmI5LJ.js} +9 -9
- package/dist/_chunks/{patient-shell-D0RaWDMR.js.map → patient-shell-CGsmI5LJ.js.map} +1 -1
- package/dist/_chunks/{payment-form-Cf7U6r5L.js → payment-form-l3j-gA-t.js} +108 -108
- package/dist/_chunks/payment-form-l3j-gA-t.js.map +1 -0
- package/dist/_chunks/{pdf-viewer.agent-DXjgDItg.js → pdf-viewer.agent-DuGfSoep.js} +234 -233
- package/dist/_chunks/pdf-viewer.agent-DuGfSoep.js.map +1 -0
- package/dist/_chunks/{phone-input-C2dtIuxW.js → phone-input-ZWa_FU4R.js} +112 -112
- package/dist/_chunks/phone-input-ZWa_FU4R.js.map +1 -0
- package/dist/_chunks/{popover-D1woU9mP.js → popover-CMr1pTPO.js} +58 -58
- package/dist/_chunks/popover-CMr1pTPO.js.map +1 -0
- package/dist/_chunks/{privacy-lock-C1X42Sit.js → privacy-lock-Br5k7Rul.js} +36 -36
- package/dist/_chunks/privacy-lock-Br5k7Rul.js.map +1 -0
- package/dist/_chunks/{progress-DL3-izuO.js → progress-D4ELgHG3.js} +43 -43
- package/dist/_chunks/progress-D4ELgHG3.js.map +1 -0
- package/dist/_chunks/radio-B_gvGU29.js +106 -0
- package/dist/_chunks/radio-B_gvGU29.js.map +1 -0
- package/dist/_chunks/radio-group-Bn8Wt0yc.js +88 -0
- package/dist/_chunks/radio-group-Bn8Wt0yc.js.map +1 -0
- package/dist/_chunks/{react-day-picker-DQKDiJ37.js → react-day-picker-d0MHsyCj.js} +174 -174
- package/dist/_chunks/{react-day-picker-DQKDiJ37.js.map → react-day-picker-d0MHsyCj.js.map} +1 -1
- package/dist/_chunks/{resizable.agent-DVk_jJur.js → resizable.agent-DBpPGNdy.js} +122 -122
- package/dist/_chunks/resizable.agent-DBpPGNdy.js.map +1 -0
- package/dist/_chunks/{rich-text-editor.agent-BOjF4Xao.js → rich-text-editor.agent-C1_E7_7t.js} +225 -225
- package/dist/_chunks/rich-text-editor.agent-C1_E7_7t.js.map +1 -0
- package/dist/_chunks/scroll-area-Ba99pJ_R.js +144 -0
- package/dist/_chunks/scroll-area-Ba99pJ_R.js.map +1 -0
- package/dist/_chunks/{search-bar-DgSOAajC.js → search-bar-VoTqJhRp.js} +131 -131
- package/dist/_chunks/search-bar-VoTqJhRp.js.map +1 -0
- package/dist/_chunks/search-input-D6rarD0_.js +197 -0
- package/dist/_chunks/search-input-D6rarD0_.js.map +1 -0
- package/dist/_chunks/select-DbxWF3O_.js +320 -0
- package/dist/_chunks/select-DbxWF3O_.js.map +1 -0
- package/dist/_chunks/{separator-DExI4amU.js → separator-BRQHi8s0.js} +17 -17
- package/dist/_chunks/separator-BRQHi8s0.js.map +1 -0
- package/dist/_chunks/sheet-DyWqluiS.js +188 -0
- package/dist/_chunks/sheet-DyWqluiS.js.map +1 -0
- package/dist/_chunks/sidebar-B52iGGNV.js +1076 -0
- package/dist/_chunks/sidebar-B52iGGNV.js.map +1 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-BBL11-Rt.js → sign-in-with-alfadocs-button-BU7MP5Hg.js} +4 -4
- package/dist/_chunks/{sign-in-with-alfadocs-button-BBL11-Rt.js.map → sign-in-with-alfadocs-button-BU7MP5Hg.js.map} +1 -1
- package/dist/_chunks/{signature-capture.agent-L_1_-zVR.js → signature-capture.agent-4htVctJ2.js} +163 -163
- package/dist/_chunks/signature-capture.agent-4htVctJ2.js.map +1 -0
- package/dist/_chunks/skeleton-ClO1v5GE.js +95 -0
- package/dist/_chunks/skeleton-ClO1v5GE.js.map +1 -0
- package/dist/_chunks/skip-link-CASJkBOe.js +68 -0
- package/dist/_chunks/skip-link-CASJkBOe.js.map +1 -0
- package/dist/_chunks/slider-n8JWpJvT.js +273 -0
- package/dist/_chunks/slider-n8JWpJvT.js.map +1 -0
- package/dist/_chunks/slot-grid-BRAkqChA.js +491 -0
- package/dist/_chunks/slot-grid-BRAkqChA.js.map +1 -0
- package/dist/_chunks/{sparkline.agent-BDTXzTy9.js → sparkline.agent-BLY1IMyW.js} +45 -45
- package/dist/_chunks/sparkline.agent-BLY1IMyW.js.map +1 -0
- package/dist/_chunks/{spinner-77xUGpuX.js → spinner-CoAOGcDa.js} +40 -40
- package/dist/_chunks/spinner-CoAOGcDa.js.map +1 -0
- package/dist/_chunks/stat-D76MNHzK.js +208 -0
- package/dist/_chunks/stat-D76MNHzK.js.map +1 -0
- package/dist/_chunks/{stepper-accordion-BkvqQWPI.js → stepper-accordion-DHQ80A4v.js} +33 -33
- package/dist/_chunks/stepper-accordion-DHQ80A4v.js.map +1 -0
- package/dist/_chunks/{stepper-calendar-BQMjrwzo.js → stepper-calendar-vtWwa2bY.js} +159 -159
- package/dist/_chunks/stepper-calendar-vtWwa2bY.js.map +1 -0
- package/dist/_chunks/stepper-progress-DMZ5w5VR.js +128 -0
- package/dist/_chunks/stepper-progress-DMZ5w5VR.js.map +1 -0
- package/dist/_chunks/streaming-text-D0cW8pwq.js +104 -0
- package/dist/_chunks/streaming-text-D0cW8pwq.js.map +1 -0
- package/dist/_chunks/suggestion-chip-BgNFpPEE.js +157 -0
- package/dist/_chunks/suggestion-chip-BgNFpPEE.js.map +1 -0
- package/dist/_chunks/switch-DtLPKO0p.js +137 -0
- package/dist/_chunks/switch-DtLPKO0p.js.map +1 -0
- package/dist/_chunks/{tabs.agent-FsGU3sZL.js → tabs.agent-BDUlyPbJ.js} +101 -101
- package/dist/_chunks/tabs.agent-BDUlyPbJ.js.map +1 -0
- package/dist/_chunks/tag-CfSZZN2f.js +194 -0
- package/dist/_chunks/tag-CfSZZN2f.js.map +1 -0
- package/dist/_chunks/task-card-B5xfiFg5.js +112 -0
- package/dist/_chunks/task-card-B5xfiFg5.js.map +1 -0
- package/dist/_chunks/task-tray-BnpiodZ4.js +99 -0
- package/dist/_chunks/task-tray-BnpiodZ4.js.map +1 -0
- package/dist/_chunks/text-area-BqbruBWx.js +152 -0
- package/dist/_chunks/text-area-BqbruBWx.js.map +1 -0
- package/dist/_chunks/text-input-lh6kRXZS.js +187 -0
- package/dist/_chunks/text-input-lh6kRXZS.js.map +1 -0
- package/dist/_chunks/theme-toggle-BHKMiORD.js +326 -0
- package/dist/_chunks/theme-toggle-BHKMiORD.js.map +1 -0
- package/dist/_chunks/{time-picker-BapZq0OY.js → time-picker-DbpAmPux.js} +102 -102
- package/dist/_chunks/time-picker-DbpAmPux.js.map +1 -0
- package/dist/_chunks/timeline-vjsUeuq1.js +219 -0
- package/dist/_chunks/timeline-vjsUeuq1.js.map +1 -0
- package/dist/_chunks/{timestamp-BLM-jjdw.js → timestamp-DmSt92P1.js} +30 -30
- package/dist/_chunks/timestamp-DmSt92P1.js.map +1 -0
- package/dist/_chunks/{toast-DSCqnDRl.js → toast-DllSITLf.js} +151 -151
- package/dist/_chunks/{toast-DSCqnDRl.js.map → toast-DllSITLf.js.map} +1 -1
- package/dist/_chunks/{tooltip-DF6WjD1r.js → tooltip-Dp3u8jGz.js} +30 -30
- package/dist/_chunks/tooltip-Dp3u8jGz.js.map +1 -0
- package/dist/_chunks/{tooth-scheme.agent-CFKl3iQr.js → tooth-scheme.agent-BRqxWa1D.js} +75 -75
- package/dist/_chunks/tooth-scheme.agent-BRqxWa1D.js.map +1 -0
- package/dist/_chunks/transcript-panel-Bg1BTMSr.js +265 -0
- package/dist/_chunks/transcript-panel-Bg1BTMSr.js.map +1 -0
- package/dist/_chunks/typing-indicator-BRg22Rqr.js +81 -0
- package/dist/_chunks/typing-indicator-BRg22Rqr.js.map +1 -0
- package/dist/_chunks/use-locale-BuXR_Zl9.js +32 -0
- package/dist/_chunks/use-locale-BuXR_Zl9.js.map +1 -0
- package/dist/_chunks/visually-hidden-Y3jcdCv-.js +21 -0
- package/dist/_chunks/visually-hidden-Y3jcdCv-.js.map +1 -0
- package/dist/_chunks/{warning-stack-Cyf_81SL.js → warning-stack-B9N9yWet.js} +38 -38
- package/dist/_chunks/warning-stack-B9N9yWet.js.map +1 -0
- package/dist/_chunks/{workflow-map-Uf-hHAO3.js → workflow-map-gBhL_Wrs.js} +385 -385
- package/dist/_chunks/workflow-map-gBhL_Wrs.js.map +1 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/index.d.ts.map +1 -1
- package/dist/components/_shared/use-focus-trap.d.ts +32 -0
- package/dist/components/_shared/use-focus-trap.d.ts.map +1 -0
- package/dist/components/_shared/use-neutralize-hidden-focus.d.ts +3 -0
- package/dist/components/_shared/use-neutralize-hidden-focus.d.ts.map +1 -0
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/flag/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/icon-button/index.d.ts +3 -0
- package/dist/components/icon-button/index.d.ts.map +1 -0
- package/dist/components/icon-button/index.js +5 -0
- package/dist/components/icon-button/index.js.map +1 -0
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +8 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/live-region/index.d.ts +3 -0
- package/dist/components/live-region/index.d.ts.map +1 -0
- package/dist/components/live-region/index.js +5 -0
- package/dist/components/live-region/index.js.map +1 -0
- package/dist/components/live-region/live-region.d.ts +49 -0
- package/dist/components/live-region/live-region.d.ts.map +1 -0
- package/dist/components/logo/index.js +1 -1
- package/dist/components/matrix-rain/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.d.ts +4 -2
- package/dist/components/navigation-menu/index.d.ts.map +1 -1
- package/dist/components/navigation-menu/index.js +3 -2
- package/dist/components/navigation-menu/index.js.map +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -6
- package/dist/components/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +5 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/radio-group/index.js +4 -3
- package/dist/components/radio-group/index.js.map +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/separator/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skip-link/index.d.ts +2 -0
- package/dist/components/skip-link/index.d.ts.map +1 -0
- package/dist/components/skip-link/index.js +5 -0
- package/dist/components/skip-link/index.js.map +1 -0
- package/dist/components/skip-link/skip-link.d.ts +34 -0
- package/dist/components/skip-link/skip-link.d.ts.map +1 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts.map +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-calendar/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.d.ts +3 -0
- package/dist/components/theme-toggle/index.d.ts.map +1 -0
- package/dist/components/theme-toggle/index.js +5 -0
- package/dist/components/theme-toggle/index.js.map +1 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +34 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts.map +1 -0
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/visually-hidden/index.d.ts +2 -0
- package/dist/components/visually-hidden/index.d.ts.map +1 -0
- package/dist/components/visually-hidden/index.js +5 -0
- package/dist/components/visually-hidden/index.js.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +11 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +10 -7
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-locale.d.ts +27 -0
- package/dist/hooks/use-locale.d.ts.map +1 -0
- package/dist/hooks/use-media-query.d.ts +17 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/i18n/config.js +59 -2
- package/dist/i18n/config.js.map +1 -1
- package/dist/i18n/resources.d.ts +57 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- package/dist/index.js +442 -431
- package/dist/index.js.map +1 -1
- package/dist/locales/de.json +19 -0
- package/dist/locales/en.json +19 -0
- package/dist/locales/it.json +19 -0
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +4 -2
- package/dist/_chunks/accordion-Dgcd38U_.js +0 -117
- package/dist/_chunks/accordion-Dgcd38U_.js.map +0 -1
- package/dist/_chunks/agenda-card-B2gq-gTq.js +0 -130
- package/dist/_chunks/agenda-card-B2gq-gTq.js.map +0 -1
- package/dist/_chunks/agenda-tray-twa8g_87.js +0 -119
- package/dist/_chunks/agenda-tray-twa8g_87.js.map +0 -1
- package/dist/_chunks/ai-prompt-input-C6IY_Eds.js +0 -379
- package/dist/_chunks/ai-prompt-input-C6IY_Eds.js.map +0 -1
- package/dist/_chunks/alert-C5ud6CfE.js.map +0 -1
- package/dist/_chunks/apexcharts-theme-cpBYmCcr.js +0 -17
- package/dist/_chunks/apexcharts-theme-cpBYmCcr.js.map +0 -1
- package/dist/_chunks/app-frame-CmIUp9BD.js.map +0 -1
- package/dist/_chunks/aspect-ratio-Bo3cZXmR.js +0 -56
- package/dist/_chunks/aspect-ratio-Bo3cZXmR.js.map +0 -1
- package/dist/_chunks/audio-recorder-GkGNtW2X.js.map +0 -1
- package/dist/_chunks/audio-visualiser-CIO3yy23.js.map +0 -1
- package/dist/_chunks/autocomplete.agent-kb0nmr6F.js.map +0 -1
- package/dist/_chunks/avatar-BsV7vRA6.js.map +0 -1
- package/dist/_chunks/badge--CmSr7ok.js +0 -104
- package/dist/_chunks/badge--CmSr7ok.js.map +0 -1
- package/dist/_chunks/balance-cell-renderer-BQwN51rT.js.map +0 -1
- package/dist/_chunks/breadcrumb-DnO6eHSS.js.map +0 -1
- package/dist/_chunks/button-CXL8bA8G.js +0 -119
- package/dist/_chunks/button-CXL8bA8G.js.map +0 -1
- package/dist/_chunks/button-group-CI7LFxt3.js.map +0 -1
- package/dist/_chunks/calendar-BIXVzhkL.js.map +0 -1
- package/dist/_chunks/card-n97MNPP2.js +0 -158
- package/dist/_chunks/card-n97MNPP2.js.map +0 -1
- package/dist/_chunks/chart.agent-DkmVXNsI.js.map +0 -1
- package/dist/_chunks/chat-container-SR3UWxbL.js +0 -174
- package/dist/_chunks/chat-container-SR3UWxbL.js.map +0 -1
- package/dist/_chunks/chat-input-aphxDjZL.js.map +0 -1
- package/dist/_chunks/chat-message-CdJSD18D.js.map +0 -1
- package/dist/_chunks/checkbox-CfiZ0FZc.js +0 -116
- package/dist/_chunks/checkbox-CfiZ0FZc.js.map +0 -1
- package/dist/_chunks/checkbox-group-D1aqVI0-.js.map +0 -1
- package/dist/_chunks/collapsible-jBFm7Ah8.js.map +0 -1
- package/dist/_chunks/color-picker-CiotzQJF.js.map +0 -1
- package/dist/_chunks/combobox.agent-B6RwDSct.js.map +0 -1
- package/dist/_chunks/command-palette.agent-B87_OkmC.js.map +0 -1
- package/dist/_chunks/date-time-picker-CX_FMsLG.js.map +0 -1
- package/dist/_chunks/description-list-C5UPZgX6.js +0 -187
- package/dist/_chunks/description-list-C5UPZgX6.js.map +0 -1
- package/dist/_chunks/dialog.agent-B276rAQF.js.map +0 -1
- package/dist/_chunks/dropdown-menu-CJKvK7VG.js +0 -210
- package/dist/_chunks/dropdown-menu-CJKvK7VG.js.map +0 -1
- package/dist/_chunks/empty-state-DiG7vYBM.js.map +0 -1
- package/dist/_chunks/file-upload.agent-BMow5yDY.js.map +0 -1
- package/dist/_chunks/floating-action-button-BM9ib-Wf.js +0 -95
- package/dist/_chunks/floating-action-button-BM9ib-Wf.js.map +0 -1
- package/dist/_chunks/form-field-B4bwrccN.js +0 -121
- package/dist/_chunks/form-field-B4bwrccN.js.map +0 -1
- package/dist/_chunks/freemium-paywall-DVyNsQHS.js +0 -197
- package/dist/_chunks/freemium-paywall-DVyNsQHS.js.map +0 -1
- package/dist/_chunks/header-BpKaSL_v.js.map +0 -1
- package/dist/_chunks/icon-button-C1vpylg3.js +0 -45
- package/dist/_chunks/icon-button-C1vpylg3.js.map +0 -1
- package/dist/_chunks/icon-button-group-tERESY-n.js.map +0 -1
- package/dist/_chunks/kbd-0iPlQjgC.js.map +0 -1
- package/dist/_chunks/key-value-pair--Je59tAF.js.map +0 -1
- package/dist/_chunks/leo-sidebar-9A9AWBxX.js +0 -755
- package/dist/_chunks/leo-sidebar-9A9AWBxX.js.map +0 -1
- package/dist/_chunks/list-n8vI8Yvn.js.map +0 -1
- package/dist/_chunks/logo-UNWYb9p7.js.map +0 -1
- package/dist/_chunks/matrix-rain-Q7xTEpKu.js.map +0 -1
- package/dist/_chunks/message-card-g5VS5Q80.js +0 -275
- package/dist/_chunks/message-card-g5VS5Q80.js.map +0 -1
- package/dist/_chunks/message-tray-CAk-iibU.js +0 -302
- package/dist/_chunks/message-tray-CAk-iibU.js.map +0 -1
- package/dist/_chunks/multi-select.agent-Cf4pU636.js.map +0 -1
- package/dist/_chunks/navigation-menu-DBDsAmXc.js.map +0 -1
- package/dist/_chunks/notification-card-CQxJporb.js +0 -255
- package/dist/_chunks/notification-card-CQxJporb.js.map +0 -1
- package/dist/_chunks/notification-tray-CNWPuPZp.js.map +0 -1
- package/dist/_chunks/number-input-B1Th0DdC.js.map +0 -1
- package/dist/_chunks/otp-input-CmoBuZ4K.js.map +0 -1
- package/dist/_chunks/pagination.agent-B5KLDCMN.js.map +0 -1
- package/dist/_chunks/password-input-DnjNh-hQ.js.map +0 -1
- package/dist/_chunks/payment-form-Cf7U6r5L.js.map +0 -1
- package/dist/_chunks/pdf-viewer.agent-DXjgDItg.js.map +0 -1
- package/dist/_chunks/phone-input-C2dtIuxW.js.map +0 -1
- package/dist/_chunks/popover-D1woU9mP.js.map +0 -1
- package/dist/_chunks/privacy-lock-C1X42Sit.js.map +0 -1
- package/dist/_chunks/progress-DL3-izuO.js.map +0 -1
- package/dist/_chunks/radio-group-CXN9qNPe.js +0 -185
- package/dist/_chunks/radio-group-CXN9qNPe.js.map +0 -1
- package/dist/_chunks/resizable.agent-DVk_jJur.js.map +0 -1
- package/dist/_chunks/rich-text-editor.agent-BOjF4Xao.js.map +0 -1
- package/dist/_chunks/scroll-area-DXn-YWHY.js +0 -144
- package/dist/_chunks/scroll-area-DXn-YWHY.js.map +0 -1
- package/dist/_chunks/search-bar-DgSOAajC.js.map +0 -1
- package/dist/_chunks/search-input-D4tC_Prn.js +0 -197
- package/dist/_chunks/search-input-D4tC_Prn.js.map +0 -1
- package/dist/_chunks/select-B4m4upMg.js +0 -320
- package/dist/_chunks/select-B4m4upMg.js.map +0 -1
- package/dist/_chunks/separator-DExI4amU.js.map +0 -1
- package/dist/_chunks/sheet-D6XOx0fK.js +0 -188
- package/dist/_chunks/sheet-D6XOx0fK.js.map +0 -1
- package/dist/_chunks/sidebar-r645O-k9.js +0 -1076
- package/dist/_chunks/sidebar-r645O-k9.js.map +0 -1
- package/dist/_chunks/signature-capture.agent-L_1_-zVR.js.map +0 -1
- package/dist/_chunks/skeleton-vbTWUntB.js +0 -95
- package/dist/_chunks/skeleton-vbTWUntB.js.map +0 -1
- package/dist/_chunks/slider-B3DBwmcm.js +0 -273
- package/dist/_chunks/slider-B3DBwmcm.js.map +0 -1
- package/dist/_chunks/slot-grid-DL_Tuj0p.js +0 -491
- package/dist/_chunks/slot-grid-DL_Tuj0p.js.map +0 -1
- package/dist/_chunks/sparkline.agent-BDTXzTy9.js.map +0 -1
- package/dist/_chunks/spinner-77xUGpuX.js.map +0 -1
- package/dist/_chunks/stat-CrumvZWf.js +0 -208
- package/dist/_chunks/stat-CrumvZWf.js.map +0 -1
- package/dist/_chunks/stepper-accordion-BkvqQWPI.js.map +0 -1
- package/dist/_chunks/stepper-calendar-BQMjrwzo.js.map +0 -1
- package/dist/_chunks/stepper-progress-Bwfl-0rV.js +0 -128
- package/dist/_chunks/stepper-progress-Bwfl-0rV.js.map +0 -1
- package/dist/_chunks/streaming-text-Cu9YQe_1.js +0 -104
- package/dist/_chunks/streaming-text-Cu9YQe_1.js.map +0 -1
- package/dist/_chunks/suggestion-chip-XkxDJiPW.js +0 -157
- package/dist/_chunks/suggestion-chip-XkxDJiPW.js.map +0 -1
- package/dist/_chunks/switch-DyC0ThNT.js +0 -137
- package/dist/_chunks/switch-DyC0ThNT.js.map +0 -1
- package/dist/_chunks/tabs.agent-FsGU3sZL.js.map +0 -1
- package/dist/_chunks/tag-BucAvfTX.js +0 -194
- package/dist/_chunks/tag-BucAvfTX.js.map +0 -1
- package/dist/_chunks/task-card-uxjApfcg.js +0 -112
- package/dist/_chunks/task-card-uxjApfcg.js.map +0 -1
- package/dist/_chunks/task-tray-BdfM3p8N.js +0 -99
- package/dist/_chunks/task-tray-BdfM3p8N.js.map +0 -1
- package/dist/_chunks/text-area-CKxZ7cS3.js +0 -152
- package/dist/_chunks/text-area-CKxZ7cS3.js.map +0 -1
- package/dist/_chunks/text-input-D16CcMlL.js +0 -187
- package/dist/_chunks/text-input-D16CcMlL.js.map +0 -1
- package/dist/_chunks/time-picker-BapZq0OY.js.map +0 -1
- package/dist/_chunks/timeline-D3VOf4RT.js +0 -219
- package/dist/_chunks/timeline-D3VOf4RT.js.map +0 -1
- package/dist/_chunks/timestamp-BLM-jjdw.js.map +0 -1
- package/dist/_chunks/tooltip-DF6WjD1r.js.map +0 -1
- package/dist/_chunks/tooth-scheme.agent-CFKl3iQr.js.map +0 -1
- package/dist/_chunks/transcript-panel-aI14fHYA.js +0 -265
- package/dist/_chunks/transcript-panel-aI14fHYA.js.map +0 -1
- package/dist/_chunks/typing-indicator-BTVDEpnd.js +0 -81
- package/dist/_chunks/typing-indicator-BTVDEpnd.js.map +0 -1
- package/dist/_chunks/warning-stack-Cyf_81SL.js.map +0 -1
- package/dist/_chunks/workflow-map-Uf-hHAO3.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as a, jsxs as Z } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
2
|
+
import { forwardRef as Ae, useId as Re, useMemo as Oe, useState as h, useEffect as x, useRef as R, useCallback as L, useImperativeHandle as je } from "react";
|
|
3
|
+
import * as ie from "pdfjs-dist";
|
|
4
4
|
import { c as W } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { useTranslation as
|
|
5
|
+
import { useTranslation as de } from "react-i18next";
|
|
6
6
|
import * as X from "@radix-ui/react-popover";
|
|
7
|
-
import
|
|
8
|
-
import { S as Ve } from "./spinner-
|
|
9
|
-
import { A as ge } from "./alert-
|
|
7
|
+
import ke from "pdfjs-dist/build/pdf.worker.min.mjs?url";
|
|
8
|
+
import { S as Ve } from "./spinner-CoAOGcDa.js";
|
|
9
|
+
import { A as ge } from "./alert-ETrF7Q8J.js";
|
|
10
10
|
import { X as Fe } from "./x-CCcI3eJp.js";
|
|
11
11
|
import { C as Ee } from "./chevron-left-CX1jqD2M.js";
|
|
12
12
|
import { C as _e } from "./chevron-right-BrpYejk0.js";
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as ze } from "./createLucideIcon-CrFbzy84.js";
|
|
14
14
|
import { S as Le } from "./search-BonnQsHv.js";
|
|
15
15
|
import { P as Ze } from "./printer-CeVEWfQq.js";
|
|
16
16
|
/**
|
|
@@ -24,7 +24,7 @@ const Be = [
|
|
|
24
24
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
25
25
|
["line", { x1: "11", x2: "11", y1: "8", y2: "14", key: "1vmskp" }],
|
|
26
26
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
27
|
-
], Ke =
|
|
27
|
+
], Ke = ze("zoom-in", Be);
|
|
28
28
|
/**
|
|
29
29
|
* @license lucide-react v1.8.0 - ISC
|
|
30
30
|
*
|
|
@@ -35,84 +35,84 @@ const He = [
|
|
|
35
35
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
36
36
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
37
37
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
38
|
-
], Qe =
|
|
39
|
-
|
|
38
|
+
], Qe = ze("zoom-out", He);
|
|
39
|
+
ie.GlobalWorkerOptions.workerSrc = ke;
|
|
40
40
|
const ve = W(
|
|
41
41
|
[
|
|
42
|
-
"pdf-viewer-alfadocs flex flex-col",
|
|
43
|
-
"gap-[var(--spacing-sm)]",
|
|
44
|
-
"bg-[var(--background)] text-[var(--foreground)]",
|
|
45
|
-
"rounded-[var(--radius-md)] border border-[color:var(--border)]",
|
|
46
|
-
"overflow-hidden",
|
|
47
|
-
"focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
48
|
-
"focus-visible:outline-solid",
|
|
49
|
-
"focus-visible:outline-[var(--ring)]",
|
|
50
|
-
"forced-colors:focus-visible:outline-[CanvasText]"
|
|
42
|
+
"ds:pdf-viewer-alfadocs ds:flex ds:flex-col",
|
|
43
|
+
"ds:gap-[var(--spacing-sm)]",
|
|
44
|
+
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
45
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
46
|
+
"ds:overflow-hidden",
|
|
47
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
48
|
+
"ds:focus-visible:outline-solid",
|
|
49
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
50
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
51
51
|
].join(" ")
|
|
52
52
|
), We = W(
|
|
53
53
|
[
|
|
54
|
-
"flex flex-wrap items-center gap-[var(--spacing-xs)]",
|
|
55
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]",
|
|
56
|
-
"pt-[var(--spacing-xs)] pb-[var(--spacing-xs)]",
|
|
57
|
-
"bg-[var(--background)]",
|
|
58
|
-
"border-b border-[color:var(--border)]"
|
|
54
|
+
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
55
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
56
|
+
"ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]",
|
|
57
|
+
"ds:bg-[var(--background)]",
|
|
58
|
+
"ds:border-b ds:border-[color:var(--border)]"
|
|
59
59
|
].join(" ")
|
|
60
60
|
), be = W(
|
|
61
61
|
[
|
|
62
|
-
"inline-flex items-center justify-center",
|
|
63
|
-
"min-block-size-[var(--min-target-size)]",
|
|
64
|
-
"min-inline-size-[var(--min-target-size)]",
|
|
65
|
-
"gap-[var(--spacing-xs)]",
|
|
66
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]",
|
|
67
|
-
"rounded-[var(--radius-sm)] bg-transparent text-[var(--foreground)]",
|
|
68
|
-
"transition-colors duration-[var(--animation-duration)] motion-reduce:transition-none",
|
|
69
|
-
"hover:bg-[var(--muted)]",
|
|
70
|
-
"focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
71
|
-
"focus-visible:outline-solid",
|
|
72
|
-
"focus-visible:outline-[var(--ring)]",
|
|
73
|
-
"focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
74
|
-
"forced-colors:focus-visible:outline-[CanvasText]",
|
|
75
|
-
"aria-disabled:opacity-[var(--opacity-50)] aria-disabled:cursor-not-allowed"
|
|
62
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
63
|
+
"ds:min-block-size-[var(--min-target-size)]",
|
|
64
|
+
"ds:min-inline-size-[var(--min-target-size)]",
|
|
65
|
+
"ds:gap-[var(--spacing-xs)]",
|
|
66
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
67
|
+
"ds:rounded-[var(--radius-sm)] ds:bg-transparent ds:text-[var(--foreground)]",
|
|
68
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
69
|
+
"ds:hover:bg-[var(--muted)]",
|
|
70
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
71
|
+
"ds:focus-visible:outline-solid",
|
|
72
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
73
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
74
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
75
|
+
"ds:aria-disabled:opacity-[var(--opacity-50)] ds:aria-disabled:cursor-not-allowed"
|
|
76
76
|
].join(" ")
|
|
77
77
|
), ye = W(
|
|
78
78
|
[
|
|
79
|
-
"min-block-size-[var(--min-target-size)]",
|
|
80
|
-
"inline-size-[4rem] text-center",
|
|
81
|
-
"ps-[var(--spacing-xs)] pe-[var(--spacing-xs)]",
|
|
82
|
-
"rounded-[var(--radius-sm)] border border-[color:var(--border)]",
|
|
83
|
-
"bg-[var(--background)] text-[var(--foreground)]",
|
|
84
|
-
"focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
85
|
-
"focus-visible:outline-solid",
|
|
86
|
-
"focus-visible:outline-[var(--ring)]",
|
|
87
|
-
"forced-colors:focus-visible:outline-[CanvasText]"
|
|
79
|
+
"ds:min-block-size-[var(--min-target-size)]",
|
|
80
|
+
"ds:inline-size-[4rem] ds:text-center",
|
|
81
|
+
"ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
82
|
+
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)]",
|
|
83
|
+
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
84
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
85
|
+
"ds:focus-visible:outline-solid",
|
|
86
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
87
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
88
88
|
].join(" ")
|
|
89
89
|
), qe = W(
|
|
90
90
|
[
|
|
91
|
-
"min-block-size-[var(--min-target-size)]",
|
|
92
|
-
"ps-[var(--spacing-sm)] pe-[var(--spacing-sm)]",
|
|
93
|
-
"rounded-[var(--radius-sm)] border border-[color:var(--border)]",
|
|
94
|
-
"bg-[var(--background)] text-[var(--foreground)]",
|
|
95
|
-
"focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
96
|
-
"focus-visible:outline-solid",
|
|
97
|
-
"focus-visible:outline-[var(--ring)]",
|
|
98
|
-
"forced-colors:focus-visible:outline-[CanvasText]"
|
|
91
|
+
"ds:min-block-size-[var(--min-target-size)]",
|
|
92
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
93
|
+
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)]",
|
|
94
|
+
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
95
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
96
|
+
"ds:focus-visible:outline-solid",
|
|
97
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
98
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
99
99
|
].join(" ")
|
|
100
100
|
), Ue = W(
|
|
101
101
|
[
|
|
102
|
-
"relative flex flex-col items-center",
|
|
103
|
-
"gap-[var(--spacing-md)]",
|
|
104
|
-
"p-[var(--spacing-md)]",
|
|
105
|
-
"bg-[var(--muted)]",
|
|
106
|
-
"overflow-auto",
|
|
107
|
-
"min-block-size-[30rem]",
|
|
108
|
-
"max-block-size-[80vh]"
|
|
102
|
+
"ds:relative ds:flex ds:flex-col ds:items-center",
|
|
103
|
+
"ds:gap-[var(--spacing-md)]",
|
|
104
|
+
"ds:p-[var(--spacing-md)]",
|
|
105
|
+
"ds:bg-[var(--muted)]",
|
|
106
|
+
"ds:overflow-auto",
|
|
107
|
+
"ds:min-block-size-[30rem]",
|
|
108
|
+
"ds:max-block-size-[80vh]"
|
|
109
109
|
].join(" ")
|
|
110
110
|
), Je = W(
|
|
111
111
|
[
|
|
112
|
-
"relative flex items-center justify-center",
|
|
113
|
-
"bg-[var(--background)]",
|
|
114
|
-
"shadow-[var(--shadow-md)]",
|
|
115
|
-
"rounded-[var(--radius-sm)]"
|
|
112
|
+
"ds:relative ds:flex ds:items-center ds:justify-center",
|
|
113
|
+
"ds:bg-[var(--background)]",
|
|
114
|
+
"ds:shadow-[var(--shadow-md)]",
|
|
115
|
+
"ds:rounded-[var(--radius-sm)]"
|
|
116
116
|
].join(" ")
|
|
117
117
|
), $e = [
|
|
118
118
|
"fit-width",
|
|
@@ -125,18 +125,18 @@ const ve = W(
|
|
|
125
125
|
1.5,
|
|
126
126
|
2
|
|
127
127
|
];
|
|
128
|
-
function J(
|
|
129
|
-
return typeof
|
|
128
|
+
function J(s) {
|
|
129
|
+
return typeof s == "number";
|
|
130
130
|
}
|
|
131
|
-
function xe(
|
|
132
|
-
if (J(
|
|
133
|
-
if (
|
|
131
|
+
function xe(s, t, u) {
|
|
132
|
+
if (J(s)) return s;
|
|
133
|
+
if (s === "actual-size" || !u) return 1;
|
|
134
134
|
const f = window.getComputedStyle(u), m = parseFloat(f.paddingInlineStart || "0") + parseFloat(f.paddingInlineEnd || "0"), g = parseFloat(f.paddingBlockStart || "0") + parseFloat(f.paddingBlockEnd || "0"), N = Math.max(u.clientWidth - m, 1), p = Math.max(u.clientHeight - g, 1), D = t.width, I = t.height;
|
|
135
|
-
return
|
|
135
|
+
return s === "fit-width" ? N / D : Math.min(N / D, p / I);
|
|
136
136
|
}
|
|
137
|
-
const Xe =
|
|
137
|
+
const Xe = Ae(
|
|
138
138
|
({
|
|
139
|
-
src:
|
|
139
|
+
src: s,
|
|
140
140
|
initialPage: t = 1,
|
|
141
141
|
initialZoom: u = "fit-width",
|
|
142
142
|
onPageChange: f,
|
|
@@ -146,7 +146,7 @@ const Xe = Te(
|
|
|
146
146
|
ariaLabel: p,
|
|
147
147
|
className: D
|
|
148
148
|
}, I) => {
|
|
149
|
-
const { t: v } =
|
|
149
|
+
const { t: v } = de(), q = Re(), B = Oe(
|
|
150
150
|
() => `pdf-${q.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
151
151
|
[q]
|
|
152
152
|
), [z, V] = h(!1), [K, b] = h(!1);
|
|
@@ -156,9 +156,9 @@ const Xe = Te(
|
|
|
156
156
|
const e = window.matchMedia("(prefers-reduced-motion: reduce)"), r = () => b(e.matches);
|
|
157
157
|
return r(), e.addEventListener("change", r), () => e.removeEventListener("change", r);
|
|
158
158
|
}, []);
|
|
159
|
-
const [
|
|
159
|
+
const [o, F] = h(null), [E, l] = h(null), [d, w] = h(t), [P, S] = h(u), [O, j] = h(
|
|
160
160
|
{ start: Math.max(1, t - 1), end: t + 1 }
|
|
161
|
-
), [M, n] = h(""), [y, k] = h(!1), [
|
|
161
|
+
), [M, n] = h(""), [y, k] = h(!1), [ce, le] = h(""), [Pe, Se] = h(
|
|
162
162
|
{ current: 0, total: 0 }
|
|
163
163
|
), G = R(f), Y = R(m), ee = R(g);
|
|
164
164
|
x(() => {
|
|
@@ -166,80 +166,80 @@ const Xe = Te(
|
|
|
166
166
|
}, [f, m, g]);
|
|
167
167
|
const ae = R(null);
|
|
168
168
|
x(() => {
|
|
169
|
-
ae.current =
|
|
170
|
-
}, [
|
|
169
|
+
ae.current = o;
|
|
170
|
+
}, [o]), x(() => {
|
|
171
171
|
let e = !1;
|
|
172
|
-
F(null),
|
|
172
|
+
F(null), l(null);
|
|
173
173
|
const r = {
|
|
174
174
|
disableJavaScript: !0,
|
|
175
175
|
isEvalSupported: !1
|
|
176
|
-
},
|
|
177
|
-
typeof
|
|
176
|
+
}, c = ie.getDocument(
|
|
177
|
+
typeof s == "string" ? { url: s, ...r } : s instanceof Uint8Array ? { data: s, ...r } : { data: new Uint8Array(s), ...r }
|
|
178
178
|
);
|
|
179
|
-
return
|
|
180
|
-
async (
|
|
179
|
+
return c.promise.then(
|
|
180
|
+
async (i) => {
|
|
181
181
|
var H;
|
|
182
182
|
if (e) return;
|
|
183
183
|
let C;
|
|
184
184
|
try {
|
|
185
|
-
const Q = await
|
|
185
|
+
const Q = await i.getMetadata(), A = Q == null ? void 0 : Q.info;
|
|
186
186
|
C = A == null ? void 0 : A.Title;
|
|
187
187
|
} catch {
|
|
188
188
|
C = void 0;
|
|
189
189
|
}
|
|
190
190
|
if (e) {
|
|
191
191
|
try {
|
|
192
|
-
await
|
|
192
|
+
await i.destroy();
|
|
193
193
|
} catch {
|
|
194
194
|
}
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
const _ = { doc:
|
|
198
|
-
F(_), (H = Y.current) == null || H.call(Y, { numPages:
|
|
197
|
+
const _ = { doc: i, numPages: i.numPages, title: C };
|
|
198
|
+
F(_), (H = Y.current) == null || H.call(Y, { numPages: i.numPages, title: C });
|
|
199
199
|
},
|
|
200
|
-
(
|
|
200
|
+
(i) => {
|
|
201
201
|
var _;
|
|
202
202
|
if (e) return;
|
|
203
|
-
const C =
|
|
204
|
-
|
|
203
|
+
const C = i instanceof Error ? i : new Error(String(i));
|
|
204
|
+
l(C), (_ = ee.current) == null || _.call(ee, C);
|
|
205
205
|
}
|
|
206
206
|
), () => {
|
|
207
|
-
e = !0,
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
207
|
+
e = !0, c.destroy();
|
|
208
|
+
const i = ae.current;
|
|
209
|
+
if (i) {
|
|
210
210
|
try {
|
|
211
|
-
|
|
211
|
+
i.doc.destroy();
|
|
212
212
|
} catch {
|
|
213
213
|
}
|
|
214
214
|
ae.current = null;
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
|
-
}, [
|
|
217
|
+
}, [s]), x(() => {
|
|
218
218
|
var e;
|
|
219
|
-
|
|
220
|
-
v("pdf.pageOf", { current:
|
|
221
|
-
), (e = G.current) == null || e.call(G,
|
|
222
|
-
}, [
|
|
223
|
-
const te = R(null),
|
|
219
|
+
o && (n(
|
|
220
|
+
v("pdf.pageOf", { current: d, total: o.numPages })
|
|
221
|
+
), (e = G.current) == null || e.call(G, d));
|
|
222
|
+
}, [d, o, v]);
|
|
223
|
+
const te = R(null), se = R([]), T = L(
|
|
224
224
|
(e) => {
|
|
225
|
-
if (!
|
|
226
|
-
const r = Math.max(1, Math.min(e,
|
|
225
|
+
if (!o) return;
|
|
226
|
+
const r = Math.max(1, Math.min(e, o.numPages));
|
|
227
227
|
w(r);
|
|
228
|
-
const
|
|
229
|
-
|
|
228
|
+
const c = se.current[r - 1];
|
|
229
|
+
c && c.scrollIntoView({
|
|
230
230
|
behavior: "auto",
|
|
231
231
|
block: "start"
|
|
232
232
|
});
|
|
233
233
|
},
|
|
234
|
-
[
|
|
234
|
+
[o, K]
|
|
235
235
|
), ue = L((e) => {
|
|
236
236
|
S(e);
|
|
237
237
|
}, []), $ = L(() => {
|
|
238
238
|
typeof window < "u" && window.print();
|
|
239
239
|
}, []), fe = L((e) => {
|
|
240
|
-
|
|
240
|
+
le(e), k(e.length > 0);
|
|
241
241
|
}, []);
|
|
242
|
-
|
|
242
|
+
je(
|
|
243
243
|
I,
|
|
244
244
|
() => ({
|
|
245
245
|
goToPage: T,
|
|
@@ -249,16 +249,16 @@ const Xe = Te(
|
|
|
249
249
|
}),
|
|
250
250
|
[T, ue, fe, $]
|
|
251
251
|
);
|
|
252
|
-
const
|
|
252
|
+
const Me = L(
|
|
253
253
|
(e) => {
|
|
254
|
-
if (!
|
|
254
|
+
if (!o) return;
|
|
255
255
|
const r = e.metaKey || e.ctrlKey;
|
|
256
256
|
if (e.key === "PageDown") {
|
|
257
|
-
e.preventDefault(), T(
|
|
257
|
+
e.preventDefault(), T(d + 1);
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
if (e.key === "PageUp") {
|
|
261
|
-
e.preventDefault(), T(
|
|
261
|
+
e.preventDefault(), T(d - 1);
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
264
|
if (e.key === "Home") {
|
|
@@ -266,7 +266,7 @@ const Xe = Te(
|
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
268
|
if (e.key === "End") {
|
|
269
|
-
e.preventDefault(), T(
|
|
269
|
+
e.preventDefault(), T(o.numPages);
|
|
270
270
|
return;
|
|
271
271
|
}
|
|
272
272
|
if (r && e.key.toLowerCase() === "f") {
|
|
@@ -274,11 +274,11 @@ const Xe = Te(
|
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
276
|
if (r && (e.key === "+" || e.key === "=")) {
|
|
277
|
-
e.preventDefault(), S((
|
|
277
|
+
e.preventDefault(), S((c) => J(c) ? Math.min(c * 1.25, 4) : 1.25);
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
280
|
if (r && e.key === "-") {
|
|
281
|
-
e.preventDefault(), S((
|
|
281
|
+
e.preventDefault(), S((c) => J(c) ? Math.max(c / 1.25, 0.25) : 0.75);
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
if (r && e.key === "0") {
|
|
@@ -287,46 +287,46 @@ const Xe = Te(
|
|
|
287
287
|
}
|
|
288
288
|
r && e.key.toLowerCase() === "p" && (e.preventDefault(), $());
|
|
289
289
|
},
|
|
290
|
-
[
|
|
291
|
-
),
|
|
290
|
+
[d, T, $, o]
|
|
291
|
+
), oe = R(d);
|
|
292
292
|
x(() => {
|
|
293
|
-
|
|
294
|
-
}, [
|
|
295
|
-
if (!
|
|
293
|
+
oe.current = d;
|
|
294
|
+
}, [d]), x(() => {
|
|
295
|
+
if (!o) return;
|
|
296
296
|
const e = te.current;
|
|
297
297
|
if (!e) return;
|
|
298
|
-
const r = /* @__PURE__ */ new Map(),
|
|
299
|
-
(
|
|
300
|
-
for (const A of
|
|
298
|
+
const r = /* @__PURE__ */ new Map(), c = new IntersectionObserver(
|
|
299
|
+
(i) => {
|
|
300
|
+
for (const A of i) {
|
|
301
301
|
const U = A.target.dataset.pageNumber;
|
|
302
302
|
if (!U) continue;
|
|
303
|
-
const
|
|
304
|
-
r.set(
|
|
303
|
+
const Te = Number(U);
|
|
304
|
+
r.set(Te, A.intersectionRatio);
|
|
305
305
|
}
|
|
306
|
-
let C =
|
|
306
|
+
let C = oe.current, _ = 0, H = 1 / 0, Q = -1 / 0;
|
|
307
307
|
for (const [A, U] of r.entries())
|
|
308
308
|
U > _ && (C = A, _ = U), U > 0 && (H = Math.min(H, A), Q = Math.max(Q, A));
|
|
309
|
-
_ > 0 && C !==
|
|
309
|
+
_ > 0 && C !== oe.current && w(C), H !== 1 / 0 && j({
|
|
310
310
|
start: Math.max(1, H - 1),
|
|
311
|
-
end: Math.min(
|
|
311
|
+
end: Math.min(o.numPages, Q + 1)
|
|
312
312
|
});
|
|
313
313
|
},
|
|
314
314
|
{ root: e, threshold: [0, 0.25, 0.5, 0.75, 1] }
|
|
315
315
|
);
|
|
316
|
-
return
|
|
317
|
-
|
|
318
|
-
}), () =>
|
|
319
|
-
}, [
|
|
320
|
-
const [
|
|
316
|
+
return se.current.forEach((i) => {
|
|
317
|
+
i && c.observe(i);
|
|
318
|
+
}), () => c.disconnect();
|
|
319
|
+
}, [o]);
|
|
320
|
+
const [Ce, Ne] = h(0);
|
|
321
321
|
x(() => {
|
|
322
322
|
const e = te.current;
|
|
323
323
|
if (!e || typeof ResizeObserver > "u") return;
|
|
324
324
|
const r = new ResizeObserver(() => {
|
|
325
|
-
(P === "fit-width" || P === "fit-page") &&
|
|
325
|
+
(P === "fit-width" || P === "fit-page") && Ne((c) => c + 1);
|
|
326
326
|
});
|
|
327
327
|
return r.observe(e), () => r.disconnect();
|
|
328
328
|
}, [P]);
|
|
329
|
-
const pe = R([]), [re, me] = h(0),
|
|
329
|
+
const pe = R([]), [re, me] = h(0), De = L(
|
|
330
330
|
(e) => (r) => {
|
|
331
331
|
pe.current[e] = r;
|
|
332
332
|
},
|
|
@@ -334,11 +334,11 @@ const Xe = Te(
|
|
|
334
334
|
), he = L((e) => {
|
|
335
335
|
const r = pe.current[e];
|
|
336
336
|
r && r.focus();
|
|
337
|
-
}, []), ne = 8,
|
|
337
|
+
}, []), ne = 8, Ie = L(
|
|
338
338
|
(e) => {
|
|
339
|
-
const r = z ? "ArrowLeft" : "ArrowRight",
|
|
340
|
-
let
|
|
341
|
-
e.key === r ?
|
|
339
|
+
const r = z ? "ArrowLeft" : "ArrowRight", c = z ? "ArrowRight" : "ArrowLeft";
|
|
340
|
+
let i = null;
|
|
341
|
+
e.key === r ? i = (re + 1) % ne : e.key === c ? i = (re - 1 + ne) % ne : e.key === "Home" ? i = 0 : e.key === "End" && (i = ne - 1), i !== null && (e.preventDefault(), me(i), he(i));
|
|
342
342
|
},
|
|
343
343
|
[he, z, re]
|
|
344
344
|
);
|
|
@@ -347,7 +347,7 @@ const Xe = Te(
|
|
|
347
347
|
{
|
|
348
348
|
className: [ve(), D].filter(Boolean).join(" "),
|
|
349
349
|
"aria-label": p ?? v("pdf.error"),
|
|
350
|
-
children: /* @__PURE__ */ a("div", { className: "p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(ge, { variant: "error", live: "polite", children: /* @__PURE__ */ Z(ge.Description, { children: [
|
|
350
|
+
children: /* @__PURE__ */ a("div", { className: "ds:p-[var(--spacing-lg)]", children: /* @__PURE__ */ a(ge, { variant: "error", live: "polite", children: /* @__PURE__ */ Z(ge.Description, { children: [
|
|
351
351
|
v("pdf.error"),
|
|
352
352
|
": ",
|
|
353
353
|
E.message
|
|
@@ -361,18 +361,19 @@ const Xe = Te(
|
|
|
361
361
|
"aria-label": p ?? v("pdf.toolbarLabel"),
|
|
362
362
|
className: [ve(), D].filter(Boolean).join(" "),
|
|
363
363
|
dir: z ? "rtl" : void 0,
|
|
364
|
-
onKeyDown:
|
|
364
|
+
onKeyDown: Me,
|
|
365
365
|
tabIndex: -1,
|
|
366
366
|
"data-component": "pdf-viewer",
|
|
367
|
+
"data-pdfjs-worker-src": ke,
|
|
367
368
|
children: [
|
|
368
369
|
N ? /* @__PURE__ */ a(
|
|
369
370
|
Ge,
|
|
370
371
|
{
|
|
371
|
-
currentPage:
|
|
372
|
-
numPages: (
|
|
372
|
+
currentPage: d,
|
|
373
|
+
numPages: (o == null ? void 0 : o.numPages) ?? 0,
|
|
373
374
|
zoom: P,
|
|
374
|
-
onPrev: () => T(
|
|
375
|
-
onNext: () => T(
|
|
375
|
+
onPrev: () => T(d - 1),
|
|
376
|
+
onNext: () => T(d + 1),
|
|
376
377
|
onJump: (e) => T(e),
|
|
377
378
|
onZoomIn: () => {
|
|
378
379
|
S(
|
|
@@ -389,15 +390,15 @@ const Xe = Te(
|
|
|
389
390
|
onPrint: $,
|
|
390
391
|
searchOpen: y,
|
|
391
392
|
onSearchOpenChange: k,
|
|
392
|
-
searchQuery:
|
|
393
|
+
searchQuery: ce,
|
|
393
394
|
onSearchQueryChange: (e) => {
|
|
394
|
-
|
|
395
|
+
le(e);
|
|
395
396
|
},
|
|
396
|
-
searchMatches:
|
|
397
|
-
register:
|
|
397
|
+
searchMatches: Pe,
|
|
398
|
+
register: De,
|
|
398
399
|
focusIndex: re,
|
|
399
400
|
setFocusIndex: me,
|
|
400
|
-
onToolbarKeyDown:
|
|
401
|
+
onToolbarKeyDown: Ie,
|
|
401
402
|
isRtl: z
|
|
402
403
|
}
|
|
403
404
|
) : null,
|
|
@@ -406,7 +407,7 @@ const Xe = Te(
|
|
|
406
407
|
{
|
|
407
408
|
"aria-live": "polite",
|
|
408
409
|
"aria-atomic": "true",
|
|
409
|
-
className: "sr-only",
|
|
410
|
+
className: "ds:sr-only",
|
|
410
411
|
children: M
|
|
411
412
|
}
|
|
412
413
|
),
|
|
@@ -416,25 +417,25 @@ const Xe = Te(
|
|
|
416
417
|
ref: te,
|
|
417
418
|
className: Ue(),
|
|
418
419
|
"data-testid": "pdf-pages-container",
|
|
419
|
-
children:
|
|
420
|
+
children: o ? Array.from({ length: o.numPages }, (e, r) => r + 1).map(
|
|
420
421
|
(e) => /* @__PURE__ */ a(
|
|
421
422
|
Ye,
|
|
422
423
|
{
|
|
423
424
|
pageNumber: e,
|
|
424
|
-
totalPages:
|
|
425
|
-
doc:
|
|
425
|
+
totalPages: o.numPages,
|
|
426
|
+
doc: o.doc,
|
|
426
427
|
zoom: P,
|
|
427
428
|
container: te.current,
|
|
428
|
-
resizeTick:
|
|
429
|
+
resizeTick: Ce,
|
|
429
430
|
shouldRender: e >= O.start && e <= O.end,
|
|
430
431
|
registerRef: (r) => {
|
|
431
|
-
|
|
432
|
+
se.current[e - 1] = r;
|
|
432
433
|
},
|
|
433
|
-
searchQuery:
|
|
434
|
+
searchQuery: ce,
|
|
434
435
|
onMatchCount: (r) => {
|
|
435
|
-
|
|
436
|
-
current: Math.min(
|
|
437
|
-
total: Math.max(
|
|
436
|
+
Se((c) => r === 0 && c.total === 0 ? c : {
|
|
437
|
+
current: Math.min(c.current || 1, r || 1),
|
|
438
|
+
total: Math.max(c.total, r)
|
|
438
439
|
});
|
|
439
440
|
}
|
|
440
441
|
},
|
|
@@ -443,7 +444,7 @@ const Xe = Te(
|
|
|
443
444
|
) : /* @__PURE__ */ Z(
|
|
444
445
|
"div",
|
|
445
446
|
{
|
|
446
|
-
className: "inline-flex items-center gap-[var(--spacing-sm)] text-[var(--muted-foreground)] p-[var(--spacing-lg)]",
|
|
447
|
+
className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)] ds:text-[var(--muted-foreground)] ds:p-[var(--spacing-lg)]",
|
|
447
448
|
children: [
|
|
448
449
|
/* @__PURE__ */ a(Ve, { size: "sm", label: v("pdf.loading") }),
|
|
449
450
|
/* @__PURE__ */ a("span", { children: v("pdf.loading") })
|
|
@@ -458,8 +459,8 @@ const Xe = Te(
|
|
|
458
459
|
}
|
|
459
460
|
);
|
|
460
461
|
Xe.displayName = "PDFViewer";
|
|
461
|
-
function Ge(
|
|
462
|
-
const { t } =
|
|
462
|
+
function Ge(s) {
|
|
463
|
+
const { t } = de(), {
|
|
463
464
|
currentPage: u,
|
|
464
465
|
numPages: f,
|
|
465
466
|
zoom: m,
|
|
@@ -475,12 +476,12 @@ function Ge(o) {
|
|
|
475
476
|
onSearchOpenChange: V,
|
|
476
477
|
searchQuery: K,
|
|
477
478
|
onSearchQueryChange: b,
|
|
478
|
-
searchMatches:
|
|
479
|
+
searchMatches: o,
|
|
479
480
|
register: F,
|
|
480
481
|
focusIndex: E,
|
|
481
|
-
setFocusIndex:
|
|
482
|
-
onToolbarKeyDown:
|
|
483
|
-
} =
|
|
482
|
+
setFocusIndex: l,
|
|
483
|
+
onToolbarKeyDown: d
|
|
484
|
+
} = s, [w, P] = h(String(u));
|
|
484
485
|
x(() => {
|
|
485
486
|
P(String(u));
|
|
486
487
|
}, [u]);
|
|
@@ -496,8 +497,8 @@ function Ge(o) {
|
|
|
496
497
|
type: "button",
|
|
497
498
|
ref: F(n.index),
|
|
498
499
|
tabIndex: n.index === E ? 0 : -1,
|
|
499
|
-
onFocus: () =>
|
|
500
|
-
onKeyDown:
|
|
500
|
+
onFocus: () => l(n.index),
|
|
501
|
+
onKeyDown: d,
|
|
501
502
|
"aria-label": n.label,
|
|
502
503
|
"aria-disabled": n.disabled || void 0,
|
|
503
504
|
title: n.label,
|
|
@@ -529,7 +530,7 @@ function Ge(o) {
|
|
|
529
530
|
Ee,
|
|
530
531
|
{
|
|
531
532
|
"aria-hidden": "true",
|
|
532
|
-
className: "block-size-4 inline-size-4 rtl:rotate-180"
|
|
533
|
+
className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
|
|
533
534
|
}
|
|
534
535
|
)
|
|
535
536
|
}),
|
|
@@ -542,7 +543,7 @@ function Ge(o) {
|
|
|
542
543
|
_e,
|
|
543
544
|
{
|
|
544
545
|
"aria-hidden": "true",
|
|
545
|
-
className: "block-size-4 inline-size-4 rtl:rotate-180"
|
|
546
|
+
className: "ds:block-size-4 ds:inline-size-4 ds:rtl:rotate-180"
|
|
546
547
|
}
|
|
547
548
|
)
|
|
548
549
|
}),
|
|
@@ -558,7 +559,7 @@ function Ge(o) {
|
|
|
558
559
|
n.key === "Enter" && (n.preventDefault(), j());
|
|
559
560
|
},
|
|
560
561
|
onBlur: j,
|
|
561
|
-
onFocus: () =>
|
|
562
|
+
onFocus: () => l(2),
|
|
562
563
|
ref: F(2),
|
|
563
564
|
tabIndex: E === 2 ? 0 : -1,
|
|
564
565
|
"aria-label": t("pdf.currentPageInput"),
|
|
@@ -569,7 +570,7 @@ function Ge(o) {
|
|
|
569
570
|
"span",
|
|
570
571
|
{
|
|
571
572
|
"aria-hidden": "true",
|
|
572
|
-
className: "type-body-sm text-[var(--muted-foreground)]",
|
|
573
|
+
className: "type-body-sm ds:text-[var(--muted-foreground)]",
|
|
573
574
|
children: t("pdf.pageOf", { current: u, total: f || 0 })
|
|
574
575
|
}
|
|
575
576
|
),
|
|
@@ -577,20 +578,20 @@ function Ge(o) {
|
|
|
577
578
|
"span",
|
|
578
579
|
{
|
|
579
580
|
"aria-hidden": "true",
|
|
580
|
-
className: "inline-block block-size-6 inline-size-px bg-[var(--border)] ms-[var(--spacing-xs)] me-[var(--spacing-xs)]"
|
|
581
|
+
className: "ds:inline-block ds:block-size-6 ds:inline-size-px ds:bg-[var(--border)] ds:ms-[var(--spacing-xs)] ds:me-[var(--spacing-xs)]"
|
|
581
582
|
}
|
|
582
583
|
),
|
|
583
584
|
M({
|
|
584
585
|
index: 3,
|
|
585
586
|
label: t("pdf.zoom.out"),
|
|
586
587
|
onActivate: I,
|
|
587
|
-
icon: /* @__PURE__ */ a(Qe, { "aria-hidden": "true", className: "block-size-4 inline-size-4" })
|
|
588
|
+
icon: /* @__PURE__ */ a(Qe, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
588
589
|
}),
|
|
589
590
|
M({
|
|
590
591
|
index: 4,
|
|
591
592
|
label: t("pdf.zoom.in"),
|
|
592
593
|
onActivate: D,
|
|
593
|
-
icon: /* @__PURE__ */ a(Ke, { "aria-hidden": "true", className: "block-size-4 inline-size-4" })
|
|
594
|
+
icon: /* @__PURE__ */ a(Ke, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
594
595
|
}),
|
|
595
596
|
/* @__PURE__ */ Z(
|
|
596
597
|
"select",
|
|
@@ -608,8 +609,8 @@ function Ge(o) {
|
|
|
608
609
|
},
|
|
609
610
|
ref: F(5),
|
|
610
611
|
tabIndex: E === 5 ? 0 : -1,
|
|
611
|
-
onFocus: () =>
|
|
612
|
-
onKeyDown:
|
|
612
|
+
onFocus: () => l(5),
|
|
613
|
+
onKeyDown: d,
|
|
613
614
|
className: qe(),
|
|
614
615
|
children: [
|
|
615
616
|
/* @__PURE__ */ a("option", { value: "fit-width", children: t("pdf.zoom.fitWidth") }),
|
|
@@ -624,19 +625,19 @@ function Ge(o) {
|
|
|
624
625
|
index: 6,
|
|
625
626
|
label: t("pdf.search.open"),
|
|
626
627
|
onActivate: q,
|
|
627
|
-
icon: /* @__PURE__ */ a(Le, { "aria-hidden": "true", className: "block-size-4 inline-size-4" })
|
|
628
|
+
icon: /* @__PURE__ */ a(Le, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
628
629
|
}) }),
|
|
629
630
|
/* @__PURE__ */ a(X.Portal, { children: /* @__PURE__ */ Z(
|
|
630
631
|
X.Content,
|
|
631
632
|
{
|
|
632
633
|
sideOffset: 8,
|
|
633
634
|
className: [
|
|
634
|
-
"z-[var(--z-popover)]",
|
|
635
|
-
"bg-[var(--popover)] text-[var(--popover-foreground)]",
|
|
636
|
-
"rounded-[var(--radius-md)] border border-[color:var(--border)]",
|
|
637
|
-
"shadow-[var(--shadow-lg)]",
|
|
638
|
-
"p-[var(--spacing-sm)]",
|
|
639
|
-
"flex items-center gap-[var(--spacing-xs)]"
|
|
635
|
+
"ds:z-[var(--z-popover)]",
|
|
636
|
+
"ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
|
|
637
|
+
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
638
|
+
"ds:shadow-[var(--shadow-lg)]",
|
|
639
|
+
"ds:p-[var(--spacing-sm)]",
|
|
640
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-xs)]"
|
|
640
641
|
].join(" "),
|
|
641
642
|
children: [
|
|
642
643
|
/* @__PURE__ */ a(
|
|
@@ -655,10 +656,10 @@ function Ge(o) {
|
|
|
655
656
|
"span",
|
|
656
657
|
{
|
|
657
658
|
"aria-live": "polite",
|
|
658
|
-
className: "type-meta text-[var(--muted-foreground)]",
|
|
659
|
-
children:
|
|
660
|
-
current:
|
|
661
|
-
total:
|
|
659
|
+
className: "type-meta ds:text-[var(--muted-foreground)]",
|
|
660
|
+
children: o.total > 0 ? t("pdf.search.countOfTotal", {
|
|
661
|
+
current: o.current,
|
|
662
|
+
total: o.total
|
|
662
663
|
}) : K ? t("pdf.search.noResults") : ""
|
|
663
664
|
}
|
|
664
665
|
),
|
|
@@ -668,7 +669,7 @@ function Ge(o) {
|
|
|
668
669
|
type: "button",
|
|
669
670
|
"aria-label": t("pdf.search.close"),
|
|
670
671
|
className: be(),
|
|
671
|
-
children: /* @__PURE__ */ a(Fe, { "aria-hidden": "true", className: "block-size-4 inline-size-4" })
|
|
672
|
+
children: /* @__PURE__ */ a(Fe, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
672
673
|
}
|
|
673
674
|
) })
|
|
674
675
|
]
|
|
@@ -679,13 +680,13 @@ function Ge(o) {
|
|
|
679
680
|
index: 7,
|
|
680
681
|
label: t("pdf.print"),
|
|
681
682
|
onActivate: B,
|
|
682
|
-
icon: /* @__PURE__ */ a(Ze, { "aria-hidden": "true", className: "block-size-4 inline-size-4" })
|
|
683
|
+
icon: /* @__PURE__ */ a(Ze, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
683
684
|
})
|
|
684
685
|
]
|
|
685
686
|
}
|
|
686
687
|
);
|
|
687
688
|
}
|
|
688
|
-
function Ye(
|
|
689
|
+
function Ye(s) {
|
|
689
690
|
const {
|
|
690
691
|
pageNumber: t,
|
|
691
692
|
totalPages: u,
|
|
@@ -697,20 +698,20 @@ function Ye(o) {
|
|
|
697
698
|
registerRef: D,
|
|
698
699
|
searchQuery: I,
|
|
699
700
|
onMatchCount: v
|
|
700
|
-
} =
|
|
701
|
+
} = s, { t: q } = de(), B = R(null), z = R(null), [V, K] = h({
|
|
701
702
|
width: 612,
|
|
702
703
|
height: 792
|
|
703
|
-
}), [b,
|
|
704
|
+
}), [b, o] = h(null);
|
|
704
705
|
x(() => {
|
|
705
|
-
let
|
|
706
|
-
return f.getPage(t).then((
|
|
707
|
-
|
|
706
|
+
let l = !1;
|
|
707
|
+
return f.getPage(t).then((d) => {
|
|
708
|
+
l || o(d);
|
|
708
709
|
}), () => {
|
|
709
|
-
|
|
710
|
+
l = !0;
|
|
710
711
|
};
|
|
711
712
|
}, [f, t]), x(() => {
|
|
712
713
|
if (!b) return;
|
|
713
|
-
const
|
|
714
|
+
const l = b.getViewport({ scale: 1 }), d = xe(m, l, g), w = b.getViewport({ scale: d });
|
|
714
715
|
K({ width: Math.floor(w.width), height: Math.floor(w.height) });
|
|
715
716
|
}, [b, m, g, N]), x(() => {
|
|
716
717
|
if (!b || !p) {
|
|
@@ -718,27 +719,27 @@ function Ye(o) {
|
|
|
718
719
|
k && !p && (k.width = 0);
|
|
719
720
|
return;
|
|
720
721
|
}
|
|
721
|
-
const
|
|
722
|
-
if (!
|
|
723
|
-
const w =
|
|
722
|
+
const l = B.current, d = z.current;
|
|
723
|
+
if (!l) return;
|
|
724
|
+
const w = l.getContext("2d");
|
|
724
725
|
if (!w) return;
|
|
725
726
|
const P = b.getViewport({ scale: 1 }), S = xe(m, P, g), O = b.getViewport({ scale: S }), j = Math.max(1, window.devicePixelRatio || 1);
|
|
726
|
-
|
|
727
|
+
l.width = Math.floor(O.width * j), l.height = Math.floor(O.height * j), w.setTransform(j, 0, 0, j, 0, 0);
|
|
727
728
|
const M = b.render({
|
|
728
|
-
canvas:
|
|
729
|
+
canvas: l,
|
|
729
730
|
canvasContext: w,
|
|
730
731
|
viewport: O
|
|
731
732
|
});
|
|
732
733
|
let n = !1, y = null;
|
|
733
734
|
return M.promise.then(async () => {
|
|
734
|
-
if (n || !
|
|
735
|
-
|
|
735
|
+
if (n || !d) return;
|
|
736
|
+
d.textContent = "";
|
|
736
737
|
const k = await b.getTextContent();
|
|
737
|
-
n || (y = new
|
|
738
|
+
n || (y = new ie.TextLayer({
|
|
738
739
|
textContentSource: k,
|
|
739
|
-
container:
|
|
740
|
+
container: d,
|
|
740
741
|
viewport: O
|
|
741
|
-
}), await y.render(), we(
|
|
742
|
+
}), await y.render(), we(d, I, v));
|
|
742
743
|
}).catch(() => {
|
|
743
744
|
}), () => {
|
|
744
745
|
n = !0;
|
|
@@ -754,8 +755,8 @@ function Ye(o) {
|
|
|
754
755
|
};
|
|
755
756
|
}, [b, p, m, g, N, I, v]), x(() => {
|
|
756
757
|
if (!p) return;
|
|
757
|
-
const
|
|
758
|
-
|
|
758
|
+
const l = z.current;
|
|
759
|
+
l && we(l, I, v);
|
|
759
760
|
}, [I, p, v]);
|
|
760
761
|
const F = {
|
|
761
762
|
width: V.width,
|
|
@@ -767,8 +768,8 @@ function Ye(o) {
|
|
|
767
768
|
return /* @__PURE__ */ Z(
|
|
768
769
|
"article",
|
|
769
770
|
{
|
|
770
|
-
ref: (
|
|
771
|
-
D(
|
|
771
|
+
ref: (l) => {
|
|
772
|
+
D(l);
|
|
772
773
|
},
|
|
773
774
|
"data-page-number": t,
|
|
774
775
|
"aria-label": q("pdf.pageOf", { current: t, total: u }),
|
|
@@ -782,14 +783,14 @@ function Ye(o) {
|
|
|
782
783
|
ref: z,
|
|
783
784
|
"aria-hidden": "false",
|
|
784
785
|
className: [
|
|
785
|
-
"absolute inset-0",
|
|
786
|
-
"overflow-hidden",
|
|
787
|
-
"select-text",
|
|
788
|
-
"opacity-100",
|
|
789
|
-
"[&>span]:absolute [&>span]:whitespace-pre",
|
|
790
|
-
"[&>span]:text-transparent [&>span]:origin-[0_0]",
|
|
791
|
-
"[&_[data-match=true]]:bg-[color-mix(in_srgb,var(--warning)_35%,transparent)]",
|
|
792
|
-
"[&_[data-match=current]]:bg-[color-mix(in_srgb,var(--warning)_60%,transparent)]"
|
|
786
|
+
"ds:absolute ds:inset-0",
|
|
787
|
+
"ds:overflow-hidden",
|
|
788
|
+
"ds:select-text",
|
|
789
|
+
"ds:opacity-100",
|
|
790
|
+
"ds:[&>span]:absolute ds:[&>span]:whitespace-pre",
|
|
791
|
+
"ds:[&>span]:text-transparent ds:[&>span]:origin-[0_0]",
|
|
792
|
+
"ds:[&_[data-match=true]]:bg-[color-mix(in_srgb,var(--warning)_35%,transparent)]",
|
|
793
|
+
"ds:[&_[data-match=current]]:bg-[color-mix(in_srgb,var(--warning)_60%,transparent)]"
|
|
793
794
|
].join(" ")
|
|
794
795
|
}
|
|
795
796
|
)
|
|
@@ -797,8 +798,8 @@ function Ye(o) {
|
|
|
797
798
|
}
|
|
798
799
|
);
|
|
799
800
|
}
|
|
800
|
-
function we(
|
|
801
|
-
if (
|
|
801
|
+
function we(s, t, u) {
|
|
802
|
+
if (s.querySelectorAll("[data-match]").forEach((p) => {
|
|
802
803
|
p.removeAttribute("data-match");
|
|
803
804
|
}), !t) {
|
|
804
805
|
u(0);
|
|
@@ -806,7 +807,7 @@ function we(o, t, u) {
|
|
|
806
807
|
}
|
|
807
808
|
const m = t.toLowerCase();
|
|
808
809
|
let g = 0;
|
|
809
|
-
|
|
810
|
+
s.querySelectorAll("span").forEach((p) => {
|
|
810
811
|
(p.textContent ?? "").toLowerCase().includes(m) && (p.setAttribute("data-match", "true"), g += 1);
|
|
811
812
|
}), u(g);
|
|
812
813
|
}
|
|
@@ -819,31 +820,31 @@ const pt = {
|
|
|
819
820
|
safety: "read",
|
|
820
821
|
argsType: "{ page: number }",
|
|
821
822
|
description: "Navigate to a specific 1-indexed page.",
|
|
822
|
-
invoke: (
|
|
823
|
-
|
|
823
|
+
invoke: (s, t) => {
|
|
824
|
+
s.goToPage(t.page);
|
|
824
825
|
}
|
|
825
826
|
},
|
|
826
827
|
set_zoom: {
|
|
827
828
|
safety: "read",
|
|
828
829
|
argsType: "{ zoom: PDFZoomPreset }",
|
|
829
830
|
description: "Apply a zoom preset.",
|
|
830
|
-
invoke: (
|
|
831
|
-
|
|
831
|
+
invoke: (s, t) => {
|
|
832
|
+
s.setZoom(t.zoom);
|
|
832
833
|
}
|
|
833
834
|
},
|
|
834
835
|
search: {
|
|
835
836
|
safety: "read",
|
|
836
837
|
argsType: "{ query: string }",
|
|
837
838
|
description: "Search the document for the given query and highlight matches.",
|
|
838
|
-
invoke: (
|
|
839
|
-
|
|
839
|
+
invoke: (s, t) => {
|
|
840
|
+
s.search(t.query);
|
|
840
841
|
}
|
|
841
842
|
},
|
|
842
843
|
print: {
|
|
843
844
|
safety: "read",
|
|
844
845
|
description: "Open the browser print dialog for the document.",
|
|
845
|
-
invoke: (
|
|
846
|
-
|
|
846
|
+
invoke: (s) => {
|
|
847
|
+
s.print();
|
|
847
848
|
}
|
|
848
849
|
}
|
|
849
850
|
},
|
|
@@ -855,4 +856,4 @@ export {
|
|
|
855
856
|
Xe as P,
|
|
856
857
|
pt as p
|
|
857
858
|
};
|
|
858
|
-
//# sourceMappingURL=pdf-viewer.agent-
|
|
859
|
+
//# sourceMappingURL=pdf-viewer.agent-DuGfSoep.js.map
|