@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,6 +1,6 @@
|
|
|
1
1
|
import { c as rn } from "./createLucideIcon-CrFbzy84.js";
|
|
2
2
|
import h, { createContext as on, useContext as sn, useCallback as $, useRef as ke, useLayoutEffect as an, useState as Be, useEffect as fn, useMemo as De } from "react";
|
|
3
|
-
import { c as rt, a as ot, g as
|
|
3
|
+
import { c as rt, a as ot, g as dn, m as ae, f as de, d as st, k as at, j as it, r as ln, i as cn, h as un, s as hn, b as yn, t as mn } from "./isSameMonth-5wNF2f4I.js";
|
|
4
4
|
import { c as te, t as F, n as Pe, i as Mn, s as kn } from "./isSameDay-ecuM8PBB.js";
|
|
5
5
|
import { jsx as Ze } from "react/jsx-runtime";
|
|
6
6
|
import { C as Dn } from "./chevron-left-CX1jqD2M.js";
|
|
@@ -26,16 +26,16 @@ function bn(e, t, r = "long") {
|
|
|
26
26
|
timeZoneName: r
|
|
27
27
|
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
28
28
|
}
|
|
29
|
-
const Ye = {},
|
|
29
|
+
const Ye = {}, le = {};
|
|
30
30
|
function re(e, t) {
|
|
31
31
|
try {
|
|
32
32
|
const n = (Ye[e] || (Ye[e] = new Intl.DateTimeFormat("en-US", {
|
|
33
33
|
timeZone: e,
|
|
34
34
|
timeZoneName: "longOffset"
|
|
35
35
|
}).format))(t).split("GMT")[1];
|
|
36
|
-
return n in
|
|
36
|
+
return n in le ? le[n] : Je(n, n.split(":"));
|
|
37
37
|
} catch {
|
|
38
|
-
if (e in
|
|
38
|
+
if (e in le) return le[e];
|
|
39
39
|
const r = e == null ? void 0 : e.match(On);
|
|
40
40
|
return r ? Je(e, r.slice(1)) : NaN;
|
|
41
41
|
}
|
|
@@ -43,7 +43,7 @@ function re(e, t) {
|
|
|
43
43
|
const On = /([+-]\d\d):?(\d\d)?/;
|
|
44
44
|
function Je(e, t) {
|
|
45
45
|
const r = +(t[0] || 0), n = +(t[1] || 0), o = +(t[2] || 0) / 60;
|
|
46
|
-
return
|
|
46
|
+
return le[e] = r * 60 + n > 0 ? r * 60 + n + o : r * 60 - n - o;
|
|
47
47
|
}
|
|
48
48
|
class Z extends Date {
|
|
49
49
|
//#region static
|
|
@@ -99,10 +99,10 @@ function ft(e) {
|
|
|
99
99
|
a && i && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + a);
|
|
100
100
|
const f = o - r;
|
|
101
101
|
f && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + f);
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
(u ||
|
|
102
|
+
const d = /* @__PURE__ */ new Date(+e);
|
|
103
|
+
d.setUTCSeconds(0);
|
|
104
|
+
const l = o > 0 ? d.getSeconds() : (d.getSeconds() - 60) % 60, u = Math.round(-(re(e.timeZone, e) * 60)) % 60;
|
|
105
|
+
(u || l) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + u), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + u + l));
|
|
106
106
|
const y = re(e.timeZone, e), m = y > 0 ? Math.floor(y) : Math.ceil(y), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - m, b = m !== r, S = W - f;
|
|
107
107
|
if (b && S) {
|
|
108
108
|
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + S);
|
|
@@ -188,7 +188,7 @@ function Cn(e, t) {
|
|
|
188
188
|
(!r || r > s || isNaN(+s)) && (r = s);
|
|
189
189
|
}), te(n, r || NaN);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function dt(e, t, r) {
|
|
192
192
|
const [n, o] = Pe(
|
|
193
193
|
r == null ? void 0 : r.in,
|
|
194
194
|
e,
|
|
@@ -200,12 +200,12 @@ function Sn(e, t) {
|
|
|
200
200
|
const r = F(e, t == null ? void 0 : t.in), n = r.getMonth();
|
|
201
201
|
return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(23, 59, 59, 999), r;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function lt(e, t) {
|
|
204
204
|
const [r, n] = Pe(e, t.start, t.end);
|
|
205
205
|
return { start: r, end: n };
|
|
206
206
|
}
|
|
207
207
|
function Yn(e, t) {
|
|
208
|
-
const { start: r, end: n } =
|
|
208
|
+
const { start: r, end: n } = lt(t == null ? void 0 : t.in, e);
|
|
209
209
|
let o = +r > +n;
|
|
210
210
|
const s = o ? +r : +n, a = o ? n : r;
|
|
211
211
|
a.setHours(0, 0, 0, 0), a.setDate(1);
|
|
@@ -220,7 +220,7 @@ function _n(e, t) {
|
|
|
220
220
|
return r.setFullYear(n + 1, 0, 0), r.setHours(23, 59, 59, 999), r;
|
|
221
221
|
}
|
|
222
222
|
function Tn(e, t) {
|
|
223
|
-
const { start: r, end: n } =
|
|
223
|
+
const { start: r, end: n } = lt(t == null ? void 0 : t.in, e);
|
|
224
224
|
let o = +r > +n;
|
|
225
225
|
const s = o ? +r : +n, a = o ? n : r;
|
|
226
226
|
a.setHours(0, 0, 0, 0), a.setMonth(0, 1);
|
|
@@ -231,8 +231,8 @@ function Tn(e, t) {
|
|
|
231
231
|
return o ? f.reverse() : f;
|
|
232
232
|
}
|
|
233
233
|
function ct(e, t) {
|
|
234
|
-
var i, f,
|
|
235
|
-
const r =
|
|
234
|
+
var i, f, d, l;
|
|
235
|
+
const r = dn(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : f.weekStartsOn) ?? r.weekStartsOn ?? ((l = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : l.weekStartsOn) ?? 0, o = F(e, t == null ? void 0 : t.in), s = o.getDay(), a = (s < n ? -7 : 0) + 6 - (s - n);
|
|
236
236
|
return o.setDate(o.getDate() + a), o.setHours(23, 59, 59, 999), o;
|
|
237
237
|
}
|
|
238
238
|
function En(e, t) {
|
|
@@ -290,7 +290,7 @@ const ht = {
|
|
|
290
290
|
labels: {
|
|
291
291
|
labelDayButton: (e, t, r, n) => {
|
|
292
292
|
let o;
|
|
293
|
-
n && typeof n.format == "function" ? o = n.format.bind(n) : o = (a, i) =>
|
|
293
|
+
n && typeof n.format == "function" ? o = n.format.bind(n) : o = (a, i) => de(a, i, { locale: ae, ...r });
|
|
294
294
|
let s = o(e, "PPPP");
|
|
295
295
|
return t.today && (s = `Today, ${s}`), t.selected && (s = `${s}, selected`), s;
|
|
296
296
|
},
|
|
@@ -301,11 +301,11 @@ const ht = {
|
|
|
301
301
|
labelYearDropdown: "Choose the Year",
|
|
302
302
|
labelGrid: (e, t, r) => {
|
|
303
303
|
let n;
|
|
304
|
-
return r && typeof r.format == "function" ? n = r.format.bind(r) : n = (o, s) =>
|
|
304
|
+
return r && typeof r.format == "function" ? n = r.format.bind(r) : n = (o, s) => de(o, s, { locale: ae, ...t }), n(e, "LLLL yyyy");
|
|
305
305
|
},
|
|
306
306
|
labelGridcell: (e, t, r, n) => {
|
|
307
307
|
let o;
|
|
308
|
-
n && typeof n.format == "function" ? o = n.format.bind(n) : o = (a, i) =>
|
|
308
|
+
n && typeof n.format == "function" ? o = n.format.bind(n) : o = (a, i) => de(a, i, { locale: ae, ...r });
|
|
309
309
|
let s = o(e, "PPPP");
|
|
310
310
|
return t != null && t.today && (s = `Today, ${s}`), s;
|
|
311
311
|
},
|
|
@@ -313,7 +313,7 @@ const ht = {
|
|
|
313
313
|
labelWeekNumberHeader: "Week Number",
|
|
314
314
|
labelWeekday: (e, t, r) => {
|
|
315
315
|
let n;
|
|
316
|
-
return r && typeof r.format == "function" ? n = r.format.bind(r) : n = (o, s) =>
|
|
316
|
+
return r && typeof r.format == "function" ? n = r.format.bind(r) : n = (o, s) => de(o, s, { locale: ae, ...t }), n(e, "cccc");
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
};
|
|
@@ -348,7 +348,7 @@ class z {
|
|
|
348
348
|
return (s = this.overrides) != null && s.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, o) : st(n, o);
|
|
349
349
|
}, this.differenceInCalendarMonths = (n, o) => {
|
|
350
350
|
var s;
|
|
351
|
-
return (s = this.overrides) != null && s.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, o) :
|
|
351
|
+
return (s = this.overrides) != null && s.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, o) : dt(n, o);
|
|
352
352
|
}, this.eachMonthOfInterval = (n) => {
|
|
353
353
|
var o;
|
|
354
354
|
return (o = this.overrides) != null && o.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : Yn(n);
|
|
@@ -378,7 +378,7 @@ class z {
|
|
|
378
378
|
return (o = this.overrides) != null && o.endOfYear ? this.overrides.endOfYear(n) : _n(n);
|
|
379
379
|
}, this.format = (n, o, s) => {
|
|
380
380
|
var i;
|
|
381
|
-
const a = (i = this.overrides) != null && i.format ? this.overrides.format(n, o, this.options) :
|
|
381
|
+
const a = (i = this.overrides) != null && i.format ? this.overrides.format(n, o, this.options) : de(n, o, this.options);
|
|
382
382
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(a) : a;
|
|
383
383
|
}, this.getISOWeek = (n) => {
|
|
384
384
|
var o;
|
|
@@ -400,7 +400,7 @@ class z {
|
|
|
400
400
|
return (s = this.overrides) != null && s.isBefore ? this.overrides.isBefore(n, o) : Pn(n, o);
|
|
401
401
|
}, this.isDate = (n) => {
|
|
402
402
|
var o;
|
|
403
|
-
return (o = this.overrides) != null && o.isDate ? this.overrides.isDate(n) :
|
|
403
|
+
return (o = this.overrides) != null && o.isDate ? this.overrides.isDate(n) : ln(n);
|
|
404
404
|
}, this.isSameDay = (n, o) => {
|
|
405
405
|
var s;
|
|
406
406
|
return (s = this.overrides) != null && s.isSameDay ? this.overrides.isSameDay(n, o) : Mn(n, o);
|
|
@@ -605,7 +605,7 @@ function Qn(e) {
|
|
|
605
605
|
return h.createElement(
|
|
606
606
|
"span",
|
|
607
607
|
{ "data-disabled": s.disabled, className: o[M.DropdownRoot] },
|
|
608
|
-
h.createElement(n.Select, { className: a, ...s }, t == null ? void 0 : t.map(({ value: f, label:
|
|
608
|
+
h.createElement(n.Select, { className: a, ...s }, t == null ? void 0 : t.map(({ value: f, label: d, disabled: l }) => h.createElement(n.Option, { key: f, value: f, disabled: l }, d))),
|
|
609
609
|
h.createElement(
|
|
610
610
|
"span",
|
|
611
611
|
{ className: o[M.CaptionLabel], "aria-hidden": !0 },
|
|
@@ -646,7 +646,7 @@ function or(e) {
|
|
|
646
646
|
return h.createElement(t.Dropdown, { ...e });
|
|
647
647
|
}
|
|
648
648
|
function sr(e) {
|
|
649
|
-
const { onPreviousClick: t, onNextClick: r, previousMonth: n, nextMonth: o, ...s } = e, { components: a, classNames: i, labels: { labelPrevious: f, labelNext:
|
|
649
|
+
const { onPreviousClick: t, onNextClick: r, previousMonth: n, nextMonth: o, ...s } = e, { components: a, classNames: i, labels: { labelPrevious: f, labelNext: d } } = ce(), l = $((y) => {
|
|
650
650
|
o && (r == null || r(y));
|
|
651
651
|
}, [o, r]), u = $((y) => {
|
|
652
652
|
n && (t == null || t(y));
|
|
@@ -661,7 +661,7 @@ function sr(e) {
|
|
|
661
661
|
),
|
|
662
662
|
h.createElement(
|
|
663
663
|
a.NextMonthButton,
|
|
664
|
-
{ type: "button", className: i[M.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label":
|
|
664
|
+
{ type: "button", className: i[M.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": d(o), onClick: l },
|
|
665
665
|
h.createElement(a.Chevron, { disabled: o ? void 0 : !0, orientation: "right", className: i[M.Chevron] })
|
|
666
666
|
)
|
|
667
667
|
);
|
|
@@ -677,11 +677,11 @@ function fr(e) {
|
|
|
677
677
|
const { components: t } = ce();
|
|
678
678
|
return h.createElement(t.Button, { ...e });
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function dr(e) {
|
|
681
681
|
const { rootRef: t, ...r } = e;
|
|
682
682
|
return h.createElement("div", { ...r, ref: t });
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function lr(e) {
|
|
685
685
|
return h.createElement("select", { ...e });
|
|
686
686
|
}
|
|
687
687
|
function cr(e) {
|
|
@@ -731,8 +731,8 @@ const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
731
731
|
NextMonthButton: ar,
|
|
732
732
|
Option: ir,
|
|
733
733
|
PreviousMonthButton: fr,
|
|
734
|
-
Root:
|
|
735
|
-
Select:
|
|
734
|
+
Root: dr,
|
|
735
|
+
Select: lr,
|
|
736
736
|
Week: cr,
|
|
737
737
|
WeekNumber: yr,
|
|
738
738
|
WeekNumberHeader: mr,
|
|
@@ -778,14 +778,14 @@ function ee(e, t, r = J) {
|
|
|
778
778
|
if (Mt(i))
|
|
779
779
|
return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
|
|
780
780
|
if (Ae(i)) {
|
|
781
|
-
const f = s(i.before, e),
|
|
782
|
-
return a(i.before, i.after) ? u &&
|
|
781
|
+
const f = s(i.before, e), d = s(i.after, e), l = f > 0, u = d < 0;
|
|
782
|
+
return a(i.before, i.after) ? u && l : l || u;
|
|
783
783
|
}
|
|
784
784
|
return ze(i) ? s(e, i.after) > 0 : He(i) ? s(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
787
|
function vr(e, t, r, n, o) {
|
|
788
|
-
const { disabled: s, hidden: a, modifiers: i, showOutsideDays: f, broadcastCalendar:
|
|
788
|
+
const { disabled: s, hidden: a, modifiers: i, showOutsideDays: f, broadcastCalendar: d, today: l = o.today() } = t, { isSameDay: u, isSameMonth: y, startOfMonth: m, isBefore: p, endOfMonth: W, isAfter: b } = o, S = r && m(r), g = n && W(n), D = {
|
|
789
789
|
[E.focused]: [],
|
|
790
790
|
[E.outside]: [],
|
|
791
791
|
[E.disabled]: [],
|
|
@@ -794,7 +794,7 @@ function vr(e, t, r, n, o) {
|
|
|
794
794
|
}, N = {};
|
|
795
795
|
for (const v of e) {
|
|
796
796
|
const { date: c, displayMonth: w } = v, T = !!(w && !y(c, w)), I = !!(S && p(c, S)), x = !!(g && b(c, g)), H = !!(s && ee(c, s, o)), ne = !!(a && ee(c, a, o)) || I || x || // Broadcast calendar will show outside days as default
|
|
797
|
-
!
|
|
797
|
+
!d && !f && T || d && f === !1 && T, Q = u(c, l);
|
|
798
798
|
T && D.outside.push(v), H && D.disabled.push(v), ne && D.hidden.push(v), Q && D.today.push(v), i && Object.keys(i).forEach((j) => {
|
|
799
799
|
const oe = i == null ? void 0 : i[j];
|
|
800
800
|
oe && ee(c, oe, o) && (N[j] ? N[j].push(v) : N[j] = [v]);
|
|
@@ -969,12 +969,12 @@ function Pr(e, t) {
|
|
|
969
969
|
};
|
|
970
970
|
}
|
|
971
971
|
function Ar(e, t, r, n, o) {
|
|
972
|
-
const { startOfMonth: s, startOfYear: a, endOfYear: i, eachMonthOfInterval: f, getMonth:
|
|
972
|
+
const { startOfMonth: s, startOfYear: a, endOfYear: i, eachMonthOfInterval: f, getMonth: d } = o;
|
|
973
973
|
return f({
|
|
974
974
|
start: a(e),
|
|
975
975
|
end: i(e)
|
|
976
976
|
}).map((y) => {
|
|
977
|
-
const m = n.formatMonthDropdown(y, o), p =
|
|
977
|
+
const m = n.formatMonthDropdown(y, o), p = d(y), W = t && y < s(t) || r && y > s(r) || !1;
|
|
978
978
|
return { value: p, label: m, disabled: W };
|
|
979
979
|
});
|
|
980
980
|
}
|
|
@@ -998,7 +998,7 @@ function Hr(e, t, r, n) {
|
|
|
998
998
|
function jr(e, t, r, n, o = !1) {
|
|
999
999
|
if (!e || !t)
|
|
1000
1000
|
return;
|
|
1001
|
-
const { startOfYear: s, endOfYear: a, eachYearOfInterval: i, getYear: f } = n,
|
|
1001
|
+
const { startOfYear: s, endOfYear: a, eachYearOfInterval: i, getYear: f } = n, d = s(e), l = a(t), u = i({ start: d, end: l });
|
|
1002
1002
|
return o && u.reverse(), u.map((y) => {
|
|
1003
1003
|
const m = r.formatYearDropdown(y, n);
|
|
1004
1004
|
return {
|
|
@@ -1011,97 +1011,97 @@ function jr(e, t, r, n, o = !1) {
|
|
|
1011
1011
|
function $r(e, t = {}) {
|
|
1012
1012
|
var i;
|
|
1013
1013
|
const { weekStartsOn: r, locale: n } = t, o = r ?? ((i = n == null ? void 0 : n.options) == null ? void 0 : i.weekStartsOn) ?? 0, s = (f) => {
|
|
1014
|
-
const
|
|
1015
|
-
return new B(
|
|
1014
|
+
const d = typeof f == "number" || typeof f == "string" ? new Date(f) : f;
|
|
1015
|
+
return new B(d.getFullYear(), d.getMonth(), d.getDate(), 12, 0, 0, e);
|
|
1016
1016
|
}, a = (f) => {
|
|
1017
|
-
const
|
|
1018
|
-
return new Date(
|
|
1017
|
+
const d = s(f);
|
|
1018
|
+
return new Date(d.getFullYear(), d.getMonth(), d.getDate(), 0, 0, 0, 0);
|
|
1019
1019
|
};
|
|
1020
1020
|
return {
|
|
1021
1021
|
today: () => s(B.tz(e)),
|
|
1022
|
-
newDate: (f,
|
|
1022
|
+
newDate: (f, d, l) => new B(f, d, l, 12, 0, 0, e),
|
|
1023
1023
|
startOfDay: (f) => s(f),
|
|
1024
|
-
startOfWeek: (f,
|
|
1025
|
-
const
|
|
1026
|
-
return
|
|
1024
|
+
startOfWeek: (f, d) => {
|
|
1025
|
+
const l = s(f), u = (d == null ? void 0 : d.weekStartsOn) ?? o, y = (l.getDay() - u + 7) % 7;
|
|
1026
|
+
return l.setDate(l.getDate() - y), l;
|
|
1027
1027
|
},
|
|
1028
1028
|
startOfISOWeek: (f) => {
|
|
1029
|
-
const
|
|
1030
|
-
return
|
|
1029
|
+
const d = s(f), l = (d.getDay() - 1 + 7) % 7;
|
|
1030
|
+
return d.setDate(d.getDate() - l), d;
|
|
1031
1031
|
},
|
|
1032
1032
|
startOfMonth: (f) => {
|
|
1033
|
-
const
|
|
1034
|
-
return
|
|
1033
|
+
const d = s(f);
|
|
1034
|
+
return d.setDate(1), d;
|
|
1035
1035
|
},
|
|
1036
1036
|
startOfYear: (f) => {
|
|
1037
|
-
const
|
|
1038
|
-
return
|
|
1037
|
+
const d = s(f);
|
|
1038
|
+
return d.setMonth(0, 1), d;
|
|
1039
1039
|
},
|
|
1040
|
-
endOfWeek: (f,
|
|
1041
|
-
const
|
|
1042
|
-
return
|
|
1040
|
+
endOfWeek: (f, d) => {
|
|
1041
|
+
const l = s(f), m = ((((d == null ? void 0 : d.weekStartsOn) ?? o) + 6) % 7 - l.getDay() + 7) % 7;
|
|
1042
|
+
return l.setDate(l.getDate() + m), l;
|
|
1043
1043
|
},
|
|
1044
1044
|
endOfISOWeek: (f) => {
|
|
1045
|
-
const
|
|
1046
|
-
return
|
|
1045
|
+
const d = s(f), l = (7 - d.getDay()) % 7;
|
|
1046
|
+
return d.setDate(d.getDate() + l), d;
|
|
1047
1047
|
},
|
|
1048
1048
|
endOfMonth: (f) => {
|
|
1049
|
-
const
|
|
1050
|
-
return
|
|
1049
|
+
const d = s(f);
|
|
1050
|
+
return d.setMonth(d.getMonth() + 1, 0), d;
|
|
1051
1051
|
},
|
|
1052
1052
|
endOfYear: (f) => {
|
|
1053
|
-
const
|
|
1054
|
-
return
|
|
1053
|
+
const d = s(f);
|
|
1054
|
+
return d.setMonth(11, 31), d;
|
|
1055
1055
|
},
|
|
1056
1056
|
eachMonthOfInterval: (f) => {
|
|
1057
|
-
const
|
|
1057
|
+
const d = s(f.start), l = s(f.end), u = [], y = new B(d.getFullYear(), d.getMonth(), 1, 12, 0, 0, e), m = l.getFullYear() * 12 + l.getMonth();
|
|
1058
1058
|
for (; y.getFullYear() * 12 + y.getMonth() <= m; )
|
|
1059
1059
|
u.push(new B(y, e)), y.setMonth(y.getMonth() + 1, 1);
|
|
1060
1060
|
return u;
|
|
1061
1061
|
},
|
|
1062
1062
|
// Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
|
|
1063
1063
|
// mutate the same TZDate, and return it.
|
|
1064
|
-
addDays: (f,
|
|
1065
|
-
const
|
|
1066
|
-
return
|
|
1064
|
+
addDays: (f, d) => {
|
|
1065
|
+
const l = s(f);
|
|
1066
|
+
return l.setDate(l.getDate() + d), l;
|
|
1067
1067
|
},
|
|
1068
|
-
addWeeks: (f,
|
|
1069
|
-
const
|
|
1070
|
-
return
|
|
1068
|
+
addWeeks: (f, d) => {
|
|
1069
|
+
const l = s(f);
|
|
1070
|
+
return l.setDate(l.getDate() + d * 7), l;
|
|
1071
1071
|
},
|
|
1072
|
-
addMonths: (f,
|
|
1073
|
-
const
|
|
1074
|
-
return
|
|
1072
|
+
addMonths: (f, d) => {
|
|
1073
|
+
const l = s(f);
|
|
1074
|
+
return l.setMonth(l.getMonth() + d), l;
|
|
1075
1075
|
},
|
|
1076
|
-
addYears: (f,
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1076
|
+
addYears: (f, d) => {
|
|
1077
|
+
const l = s(f);
|
|
1078
|
+
return l.setFullYear(l.getFullYear() + d), l;
|
|
1079
1079
|
},
|
|
1080
1080
|
eachYearOfInterval: (f) => {
|
|
1081
|
-
const
|
|
1082
|
-
for (; y.getFullYear() <=
|
|
1081
|
+
const d = s(f.start), l = s(f.end), u = [], y = new B(d.getFullYear(), 0, 1, 12, 0, 0, e);
|
|
1082
|
+
for (; y.getFullYear() <= l.getFullYear(); )
|
|
1083
1083
|
u.push(new B(y, e)), y.setFullYear(y.getFullYear() + 1, 0, 1);
|
|
1084
1084
|
return u;
|
|
1085
1085
|
},
|
|
1086
|
-
getWeek: (f,
|
|
1086
|
+
getWeek: (f, d) => {
|
|
1087
1087
|
var u;
|
|
1088
|
-
const
|
|
1089
|
-
return it(
|
|
1090
|
-
weekStartsOn: (
|
|
1091
|
-
firstWeekContainsDate: (
|
|
1088
|
+
const l = a(f);
|
|
1089
|
+
return it(l, {
|
|
1090
|
+
weekStartsOn: (d == null ? void 0 : d.weekStartsOn) ?? o,
|
|
1091
|
+
firstWeekContainsDate: (d == null ? void 0 : d.firstWeekContainsDate) ?? ((u = n == null ? void 0 : n.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1
|
|
1092
1092
|
});
|
|
1093
1093
|
},
|
|
1094
1094
|
getISOWeek: (f) => {
|
|
1095
|
-
const
|
|
1096
|
-
return at(
|
|
1095
|
+
const d = a(f);
|
|
1096
|
+
return at(d);
|
|
1097
1097
|
},
|
|
1098
|
-
differenceInCalendarDays: (f,
|
|
1099
|
-
const
|
|
1100
|
-
return st(
|
|
1098
|
+
differenceInCalendarDays: (f, d) => {
|
|
1099
|
+
const l = a(f), u = a(d);
|
|
1100
|
+
return st(l, u);
|
|
1101
1101
|
},
|
|
1102
|
-
differenceInCalendarMonths: (f,
|
|
1103
|
-
const
|
|
1104
|
-
return
|
|
1102
|
+
differenceInCalendarMonths: (f, d) => {
|
|
1103
|
+
const l = a(f), u = a(d);
|
|
1104
|
+
return dt(l, u);
|
|
1105
1105
|
}
|
|
1106
1106
|
};
|
|
1107
1107
|
}
|
|
@@ -1111,12 +1111,12 @@ const ue = (e) => e instanceof HTMLElement ? e : null, _e = (e) => [
|
|
|
1111
1111
|
function Ur(e, t, { classNames: r, months: n, focused: o, dateLib: s }) {
|
|
1112
1112
|
const a = ke(null), i = ke(n), f = ke(!1);
|
|
1113
1113
|
an(() => {
|
|
1114
|
-
const
|
|
1114
|
+
const d = i.current;
|
|
1115
1115
|
if (i.current = n, !t || !e.current || // safety check because the ref can be set to anything by consumers
|
|
1116
1116
|
!(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
1117
|
-
n.length === 0 ||
|
|
1117
|
+
n.length === 0 || d.length === 0 || n.length !== d.length)
|
|
1118
1118
|
return;
|
|
1119
|
-
const
|
|
1119
|
+
const l = s.isSameMonth(n[0].date, d[0].date), u = s.isAfter(n[0].date, d[0].date), y = u ? r[A.caption_after_enter] : r[A.caption_before_enter], m = u ? r[A.weeks_after_enter] : r[A.weeks_before_enter], p = a.current, W = e.current.cloneNode(!0);
|
|
1120
1120
|
if (W instanceof HTMLElement ? (_e(W).forEach((D) => {
|
|
1121
1121
|
if (!(D instanceof HTMLElement))
|
|
1122
1122
|
return;
|
|
@@ -1126,7 +1126,7 @@ function Ur(e, t, { classNames: r, months: n, focused: o, dateLib: s }) {
|
|
|
1126
1126
|
v && v.classList.remove(y);
|
|
1127
1127
|
const c = Ee(D);
|
|
1128
1128
|
c && c.classList.remove(m);
|
|
1129
|
-
}), a.current = W) : a.current = null, f.current ||
|
|
1129
|
+
}), a.current = W) : a.current = null, f.current || l || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
1130
1130
|
o)
|
|
1131
1131
|
return;
|
|
1132
1132
|
const b = p instanceof HTMLElement ? _e(p) : [], S = _e(e.current);
|
|
@@ -1157,16 +1157,16 @@ function Ur(e, t, { classNames: r, months: n, focused: o, dateLib: s }) {
|
|
|
1157
1157
|
});
|
|
1158
1158
|
}
|
|
1159
1159
|
function Vr(e, t, r, n) {
|
|
1160
|
-
const o = e[0], s = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: f } = r ?? {}, { addDays:
|
|
1160
|
+
const o = e[0], s = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: f } = r ?? {}, { addDays: d, differenceInCalendarDays: l, differenceInCalendarMonths: u, endOfBroadcastWeek: y, endOfISOWeek: m, endOfMonth: p, endOfWeek: W, isAfter: b, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: D } = n, N = f ? S(o, n) : a ? g(o) : D(o), v = f ? y(s) : a ? m(p(s)) : W(p(s)), c = t && (f ? y(t) : a ? m(t) : W(t)), w = c && b(v, c) ? c : v, T = l(w, N), I = u(s, o) + 1, x = [];
|
|
1161
1161
|
for (let Q = 0; Q <= T; Q++) {
|
|
1162
|
-
const j =
|
|
1162
|
+
const j = d(N, Q);
|
|
1163
1163
|
x.push(j);
|
|
1164
1164
|
}
|
|
1165
1165
|
const ne = (f ? 35 : 42) * I;
|
|
1166
1166
|
if (i && x.length < ne) {
|
|
1167
1167
|
const Q = ne - x.length;
|
|
1168
1168
|
for (let j = 0; j < Q; j++) {
|
|
1169
|
-
const oe =
|
|
1169
|
+
const oe = d(x[x.length - 1], 1);
|
|
1170
1170
|
x.push(oe);
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
@@ -1192,15 +1192,15 @@ function Zr(e, t, r, n) {
|
|
|
1192
1192
|
function Le(e, t, r, n) {
|
|
1193
1193
|
const { month: o, defaultMonth: s, today: a = n.today(), numberOfMonths: i = 1 } = e;
|
|
1194
1194
|
let f = o || s || a;
|
|
1195
|
-
const { differenceInCalendarMonths:
|
|
1196
|
-
if (r &&
|
|
1195
|
+
const { differenceInCalendarMonths: d, addMonths: l, startOfMonth: u } = n;
|
|
1196
|
+
if (r && d(r, f) < i - 1) {
|
|
1197
1197
|
const y = -1 * (i - 1);
|
|
1198
|
-
f =
|
|
1198
|
+
f = l(r, y);
|
|
1199
1199
|
}
|
|
1200
|
-
return t &&
|
|
1200
|
+
return t && d(f, t) < 0 && (f = t), u(f);
|
|
1201
1201
|
}
|
|
1202
1202
|
function Jr(e, t, r, n) {
|
|
1203
|
-
const { addDays: o, endOfBroadcastWeek: s, endOfISOWeek: a, endOfMonth: i, endOfWeek: f, getISOWeek:
|
|
1203
|
+
const { addDays: o, endOfBroadcastWeek: s, endOfISOWeek: a, endOfMonth: i, endOfWeek: f, getISOWeek: d, getWeek: l, startOfBroadcastWeek: u, startOfISOWeek: y, startOfWeek: m } = n, p = e.reduce((W, b) => {
|
|
1204
1204
|
const S = r.broadcastCalendar ? u(b, n) : r.ISOWeek ? y(b) : m(b), g = r.broadcastCalendar ? s(b) : r.ISOWeek ? a(i(b)) : f(i(b)), D = t.filter((w) => w >= S && w <= g), N = r.broadcastCalendar ? 35 : 42;
|
|
1205
1205
|
if (r.fixedWeeks && D.length < N) {
|
|
1206
1206
|
const w = t.filter((T) => {
|
|
@@ -1210,7 +1210,7 @@ function Jr(e, t, r, n) {
|
|
|
1210
1210
|
D.push(...w);
|
|
1211
1211
|
}
|
|
1212
1212
|
const v = D.reduce((w, T) => {
|
|
1213
|
-
const I = r.ISOWeek ?
|
|
1213
|
+
const I = r.ISOWeek ? d(T) : l(T), x = w.find((ne) => ne.weekNumber === I), H = new yt(T, b, n);
|
|
1214
1214
|
return x ? x.days.push(H) : w.push(new Rn(I, [H])), w;
|
|
1215
1215
|
}, []), c = new Gn(b, v);
|
|
1216
1216
|
return W.push(c), W;
|
|
@@ -1219,10 +1219,10 @@ function Jr(e, t, r, n) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
function Qr(e, t) {
|
|
1221
1221
|
let { startMonth: r, endMonth: n } = e;
|
|
1222
|
-
const { startOfYear: o, startOfDay: s, startOfMonth: a, endOfMonth: i, addYears: f, endOfYear:
|
|
1223
|
-
!r && p && (r = p), !r && y && (r = t.newDate(y, 0, 1)), !n && W && (n = W), !n && m && (n =
|
|
1222
|
+
const { startOfYear: o, startOfDay: s, startOfMonth: a, endOfMonth: i, addYears: f, endOfYear: d, newDate: l, today: u } = t, { fromYear: y, toYear: m, fromMonth: p, toMonth: W } = e;
|
|
1223
|
+
!r && p && (r = p), !r && y && (r = t.newDate(y, 0, 1)), !n && W && (n = W), !n && m && (n = l(m, 11, 31));
|
|
1224
1224
|
const b = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
|
|
1225
|
-
return r ? r = a(r) : y ? r =
|
|
1225
|
+
return r ? r = a(r) : y ? r = l(y, 0, 1) : !r && b && (r = o(f(e.today ?? u(), -100))), n ? n = i(n) : m ? n = l(m, 11, 31) : !n && b && (n = d(e.today ?? u())), [
|
|
1226
1226
|
r && s(r),
|
|
1227
1227
|
n && s(n)
|
|
1228
1228
|
];
|
|
@@ -1230,20 +1230,20 @@ function Qr(e, t) {
|
|
|
1230
1230
|
function Xr(e, t, r, n) {
|
|
1231
1231
|
if (r.disableNavigation)
|
|
1232
1232
|
return;
|
|
1233
|
-
const { pagedNavigation: o, numberOfMonths: s = 1 } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: f } = n,
|
|
1233
|
+
const { pagedNavigation: o, numberOfMonths: s = 1 } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: f } = n, d = o ? s : 1, l = a(e);
|
|
1234
1234
|
if (!t)
|
|
1235
|
-
return i(
|
|
1235
|
+
return i(l, d);
|
|
1236
1236
|
if (!(f(t, e) < s))
|
|
1237
|
-
return i(
|
|
1237
|
+
return i(l, d);
|
|
1238
1238
|
}
|
|
1239
1239
|
function Lr(e, t, r, n) {
|
|
1240
1240
|
if (r.disableNavigation)
|
|
1241
1241
|
return;
|
|
1242
|
-
const { pagedNavigation: o, numberOfMonths: s } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: f } = n,
|
|
1242
|
+
const { pagedNavigation: o, numberOfMonths: s } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: f } = n, d = o ? s ?? 1 : 1, l = a(e);
|
|
1243
1243
|
if (!t)
|
|
1244
|
-
return i(
|
|
1245
|
-
if (!(f(
|
|
1246
|
-
return i(
|
|
1244
|
+
return i(l, -d);
|
|
1245
|
+
if (!(f(l, t) <= 0))
|
|
1246
|
+
return i(l, -d);
|
|
1247
1247
|
}
|
|
1248
1248
|
function eo(e) {
|
|
1249
1249
|
const t = [];
|
|
@@ -1264,7 +1264,7 @@ function to(e, t) {
|
|
|
1264
1264
|
const v = Le(e, r, n, t);
|
|
1265
1265
|
f(v);
|
|
1266
1266
|
}, [e.timeZone]);
|
|
1267
|
-
const { months:
|
|
1267
|
+
const { months: d, weeks: l, days: u, previousMonth: y, nextMonth: m } = De(() => {
|
|
1268
1268
|
const v = Zr(i, n, { numberOfMonths: e.numberOfMonths }, t), c = Vr(v, e.endMonth ? s(e.endMonth) : void 0, {
|
|
1269
1269
|
ISOWeek: e.ISOWeek,
|
|
1270
1270
|
fixedWeeks: e.fixedWeeks,
|
|
@@ -1295,15 +1295,15 @@ function to(e, t) {
|
|
|
1295
1295
|
e.numberOfMonths,
|
|
1296
1296
|
e.pagedNavigation,
|
|
1297
1297
|
e.reverseMonths
|
|
1298
|
-
]), { disableNavigation: p, onMonthChange: W } = e, b = (v) =>
|
|
1298
|
+
]), { disableNavigation: p, onMonthChange: W } = e, b = (v) => l.some((c) => c.days.some((w) => w.isEqualTo(v))), S = (v) => {
|
|
1299
1299
|
if (p)
|
|
1300
1300
|
return;
|
|
1301
1301
|
let c = o(v);
|
|
1302
1302
|
r && c < o(r) && (c = o(r)), n && c > o(n) && (c = o(n)), f(c), W == null || W(c);
|
|
1303
1303
|
};
|
|
1304
1304
|
return {
|
|
1305
|
-
months:
|
|
1306
|
-
weeks:
|
|
1305
|
+
months: d,
|
|
1306
|
+
weeks: l,
|
|
1307
1307
|
days: u,
|
|
1308
1308
|
navStart: r,
|
|
1309
1309
|
navEnd: n,
|
|
@@ -1331,11 +1331,11 @@ function no(e, t, r, n) {
|
|
|
1331
1331
|
return o || (o = e.find((a) => et(t(a)))), o;
|
|
1332
1332
|
}
|
|
1333
1333
|
function ro(e, t, r, n, o, s, a) {
|
|
1334
|
-
const { ISOWeek: i, broadcastCalendar: f } = s, { addDays:
|
|
1334
|
+
const { ISOWeek: i, broadcastCalendar: f } = s, { addDays: d, addMonths: l, addWeeks: u, addYears: y, endOfBroadcastWeek: m, endOfISOWeek: p, endOfWeek: W, max: b, min: S, startOfBroadcastWeek: g, startOfISOWeek: D, startOfWeek: N } = a;
|
|
1335
1335
|
let c = {
|
|
1336
|
-
day:
|
|
1336
|
+
day: d,
|
|
1337
1337
|
week: u,
|
|
1338
|
-
month:
|
|
1338
|
+
month: l,
|
|
1339
1339
|
year: y,
|
|
1340
1340
|
startOfWeek: (w) => f ? g(w, a) : i ? D(w) : N(w),
|
|
1341
1341
|
endOfWeek: (w) => f ? m(w) : i ? p(w) : W(w)
|
|
@@ -1345,50 +1345,50 @@ function ro(e, t, r, n, o, s, a) {
|
|
|
1345
1345
|
function Yt(e, t, r, n, o, s, a, i = 0) {
|
|
1346
1346
|
if (i > 365)
|
|
1347
1347
|
return;
|
|
1348
|
-
const f = ro(e, t, r.date, n, o, s, a),
|
|
1349
|
-
return !
|
|
1348
|
+
const f = ro(e, t, r.date, n, o, s, a), d = !!(s.disabled && ee(f, s.disabled, a)), l = !!(s.hidden && ee(f, s.hidden, a)), u = f, y = new yt(f, u, a);
|
|
1349
|
+
return !d && !l ? y : Yt(e, t, y, n, o, s, a, i + 1);
|
|
1350
1350
|
}
|
|
1351
1351
|
function oo(e, t, r, n, o) {
|
|
1352
|
-
const { autoFocus: s } = e, [a, i] = Be(), f = no(t.days, r, n || (() => !1), a), [
|
|
1352
|
+
const { autoFocus: s } = e, [a, i] = Be(), f = no(t.days, r, n || (() => !1), a), [d, l] = Be(s ? f : void 0);
|
|
1353
1353
|
return {
|
|
1354
1354
|
isFocusTarget: (W) => !!(f != null && f.isEqualTo(W)),
|
|
1355
|
-
setFocused:
|
|
1356
|
-
focused:
|
|
1355
|
+
setFocused: l,
|
|
1356
|
+
focused: d,
|
|
1357
1357
|
blur: () => {
|
|
1358
|
-
i(
|
|
1358
|
+
i(d), l(void 0);
|
|
1359
1359
|
},
|
|
1360
1360
|
moveFocus: (W, b) => {
|
|
1361
|
-
if (!
|
|
1361
|
+
if (!d)
|
|
1362
1362
|
return;
|
|
1363
|
-
const S = Yt(W, b,
|
|
1364
|
-
S && (e.disableNavigation && !t.days.some((D) => D.isEqualTo(S)) || (t.goToDay(S),
|
|
1363
|
+
const S = Yt(W, b, d, t.navStart, t.navEnd, e, o);
|
|
1364
|
+
S && (e.disableNavigation && !t.days.some((D) => D.isEqualTo(S)) || (t.goToDay(S), l(S)));
|
|
1365
1365
|
}
|
|
1366
1366
|
};
|
|
1367
1367
|
}
|
|
1368
1368
|
function so(e, t) {
|
|
1369
|
-
const { selected: r, required: n, onSelect: o } = e, [s, a] = be(r, o ? r : void 0), i = o ? r : s, { isSameDay: f } = t,
|
|
1369
|
+
const { selected: r, required: n, onSelect: o } = e, [s, a] = be(r, o ? r : void 0), i = o ? r : s, { isSameDay: f } = t, d = (m) => (i == null ? void 0 : i.some((p) => f(p, m))) ?? !1, { min: l, max: u } = e;
|
|
1370
1370
|
return {
|
|
1371
1371
|
selected: i,
|
|
1372
1372
|
select: (m, p, W) => {
|
|
1373
1373
|
let b = [...i ?? []];
|
|
1374
|
-
if (
|
|
1375
|
-
if ((i == null ? void 0 : i.length) ===
|
|
1374
|
+
if (d(m)) {
|
|
1375
|
+
if ((i == null ? void 0 : i.length) === l || n && (i == null ? void 0 : i.length) === 1)
|
|
1376
1376
|
return;
|
|
1377
1377
|
b = i == null ? void 0 : i.filter((S) => !f(S, m));
|
|
1378
1378
|
} else
|
|
1379
1379
|
(i == null ? void 0 : i.length) === u ? b = [m] : b = [...b, m];
|
|
1380
1380
|
return o || a(b), o == null || o(b, m, p, W), b;
|
|
1381
1381
|
},
|
|
1382
|
-
isSelected:
|
|
1382
|
+
isSelected: d
|
|
1383
1383
|
};
|
|
1384
1384
|
}
|
|
1385
1385
|
function ao(e, t, r = 0, n = 0, o = !1, s = J) {
|
|
1386
|
-
const { from: a, to: i } = t || {}, { isSameDay: f, isAfter:
|
|
1386
|
+
const { from: a, to: i } = t || {}, { isSameDay: f, isAfter: d, isBefore: l } = s;
|
|
1387
1387
|
let u;
|
|
1388
1388
|
if (!a && !i)
|
|
1389
1389
|
u = { from: e, to: r > 0 ? void 0 : e };
|
|
1390
1390
|
else if (a && !i)
|
|
1391
|
-
f(a, e) ? r === 0 ? u = { from: a, to: e } : o ? u = { from: a, to: void 0 } : u = void 0 :
|
|
1391
|
+
f(a, e) ? r === 0 ? u = { from: a, to: e } : o ? u = { from: a, to: void 0 } : u = void 0 : l(e, a) ? u = { from: e, to: a } : u = { from: a, to: e };
|
|
1392
1392
|
else if (a && i)
|
|
1393
1393
|
if (f(a, e) && f(i, e))
|
|
1394
1394
|
o ? u = { from: a, to: i } : u = void 0;
|
|
@@ -1396,11 +1396,11 @@ function ao(e, t, r = 0, n = 0, o = !1, s = J) {
|
|
|
1396
1396
|
u = { from: a, to: r > 0 ? void 0 : e };
|
|
1397
1397
|
else if (f(i, e))
|
|
1398
1398
|
u = { from: e, to: r > 0 ? void 0 : e };
|
|
1399
|
-
else if (d(e, a))
|
|
1400
|
-
u = { from: e, to: i };
|
|
1401
1399
|
else if (l(e, a))
|
|
1400
|
+
u = { from: e, to: i };
|
|
1401
|
+
else if (d(e, a))
|
|
1402
1402
|
u = { from: a, to: e };
|
|
1403
|
-
else if (
|
|
1403
|
+
else if (d(e, i))
|
|
1404
1404
|
u = { from: a, to: e };
|
|
1405
1405
|
else
|
|
1406
1406
|
throw new Error("Invalid range");
|
|
@@ -1435,8 +1435,8 @@ function fo(e, t, r = J) {
|
|
|
1435
1435
|
if (a.length) {
|
|
1436
1436
|
let i = e.from;
|
|
1437
1437
|
const f = r.differenceInCalendarDays(e.to, e.from);
|
|
1438
|
-
for (let
|
|
1439
|
-
if (a.some((
|
|
1438
|
+
for (let d = 0; d <= f; d++) {
|
|
1439
|
+
if (a.some((l) => l(i)))
|
|
1440
1440
|
return !0;
|
|
1441
1441
|
i = r.addDays(i, 1);
|
|
1442
1442
|
}
|
|
@@ -1444,19 +1444,19 @@ function fo(e, t, r = J) {
|
|
|
1444
1444
|
return !1;
|
|
1445
1445
|
}
|
|
1446
1446
|
function lo(e, t) {
|
|
1447
|
-
const { disabled: r, excludeDisabled: n, resetOnSelect: o, selected: s, required: a, onSelect: i } = e, [f,
|
|
1447
|
+
const { disabled: r, excludeDisabled: n, resetOnSelect: o, selected: s, required: a, onSelect: i } = e, [f, d] = be(s, i ? s : void 0), l = i ? s : f;
|
|
1448
1448
|
return {
|
|
1449
|
-
selected:
|
|
1449
|
+
selected: l,
|
|
1450
1450
|
select: (m, p, W) => {
|
|
1451
1451
|
const { min: b, max: S } = e;
|
|
1452
1452
|
let g;
|
|
1453
1453
|
if (m) {
|
|
1454
|
-
const D =
|
|
1455
|
-
o && (v || !(
|
|
1454
|
+
const D = l == null ? void 0 : l.from, N = l == null ? void 0 : l.to, v = !!D && !!N, c = !!D && !!N && t.isSameDay(D, N) && t.isSameDay(m, D);
|
|
1455
|
+
o && (v || !(l != null && l.from)) ? !a && c ? g = void 0 : g = { from: m, to: void 0 } : g = ao(m, l, b, S, a, t);
|
|
1456
1456
|
}
|
|
1457
|
-
return n && r && (g != null && g.from) && g.to && fo({ from: g.from, to: g.to }, r, t) && (g.from = m, g.to = void 0), i ||
|
|
1457
|
+
return n && r && (g != null && g.from) && g.to && fo({ from: g.from, to: g.to }, r, t) && (g.from = m, g.to = void 0), i || d(g), i == null || i(g, m, p, W), g;
|
|
1458
1458
|
},
|
|
1459
|
-
isSelected: (m) =>
|
|
1459
|
+
isSelected: (m) => l && L(l, m, !1, t)
|
|
1460
1460
|
};
|
|
1461
1461
|
}
|
|
1462
1462
|
function co(e, t) {
|
|
@@ -1561,7 +1561,7 @@ function Oo(e) {
|
|
|
1561
1561
|
t.classNames
|
|
1562
1562
|
]);
|
|
1563
1563
|
t.today || (t = { ...t, today: a.today() });
|
|
1564
|
-
const { captionLayout:
|
|
1564
|
+
const { captionLayout: d, mode: l, navLayout: u, numberOfMonths: y = 1, onDayBlur: m, onDayClick: p, onDayFocus: W, onDayKeyDown: b, onDayMouseEnter: S, onDayMouseLeave: g, onNextClick: D, onPrevClick: N, showWeekNumber: v, styles: c } = t, { formatCaption: w, formatDay: T, formatMonthDropdown: I, formatWeekNumber: x, formatWeekNumberHeader: H, formatWeekdayName: ne, formatYearDropdown: Q } = o, j = to(t, a), { days: oe, months: he, navStart: Oe, navEnd: pe, previousMonth: G, nextMonth: R, goToMonth: X } = j, we = vr(oe, t, Oe, pe, a), { isSelected: ie, select: fe, selected: ye } = uo(t, a) ?? {}, { blur: qe, focused: me, isFocusTarget: _t, moveFocus: Ge, setFocused: Me } = oo(t, j, we, ie ?? (() => !1), a), { labelDayButton: Tt, labelGridcell: Et, labelGrid: xt, labelMonthDropdown: It, labelNav: Re, labelPrevious: Bt, labelNext: Ft, labelWeekday: Pt, labelWeekNumber: At, labelWeekNumberHeader: zt, labelYearDropdown: Ht } = s, jt = De(() => Hr(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), Ue = l !== void 0 || p !== void 0, We = $(() => {
|
|
1565
1565
|
G && (X(G), N == null || N(G));
|
|
1566
1566
|
}, [G, X, N]), Ne = $(() => {
|
|
1567
1567
|
R && (X(R), D == null || D(R));
|
|
@@ -1656,11 +1656,11 @@ function Oo(e) {
|
|
|
1656
1656
|
{ type: "button", className: f[M.PreviousMonthButton], tabIndex: G ? void 0 : -1, "aria-disabled": G ? void 0 : !0, "aria-label": Bt(G), onClick: We, "data-animated-button": t.animate ? "true" : void 0 },
|
|
1657
1657
|
h.createElement(n.Chevron, { disabled: G ? void 0 : !0, className: f[M.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
|
|
1658
1658
|
),
|
|
1659
|
-
h.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: f[M.MonthCaption], style: c == null ? void 0 : c[M.MonthCaption], calendarMonth: O, displayIndex: _ },
|
|
1659
|
+
h.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: f[M.MonthCaption], style: c == null ? void 0 : c[M.MonthCaption], calendarMonth: O, displayIndex: _ }, d != null && d.startsWith("dropdown") ? h.createElement(
|
|
1660
1660
|
n.DropdownNav,
|
|
1661
1661
|
{ className: f[M.Dropdowns], style: c == null ? void 0 : c[M.Dropdowns] },
|
|
1662
1662
|
(() => {
|
|
1663
|
-
const k =
|
|
1663
|
+
const k = d === "dropdown" || d === "dropdown-months" ? h.createElement(n.MonthsDropdown, { key: "month", className: f[M.MonthsDropdown], "aria-label": It(), classNames: f, components: n, disabled: !!t.disableNavigation, onChange: Kt(O.date), options: Ar(O.date, Oe, pe, o, a), style: c == null ? void 0 : c[M.Dropdown], value: a.getMonth(O.date) }) : h.createElement("span", { key: "month" }, I(O.date, a)), Y = d === "dropdown" || d === "dropdown-years" ? h.createElement(n.YearsDropdown, { key: "year", className: f[M.YearsDropdown], "aria-label": Ht(a.options), classNames: f, components: n, disabled: !!t.disableNavigation, onChange: Zt(O.date), options: jr(Oe, pe, o, a, !!t.reverseYears), style: c == null ? void 0 : c[M.Dropdown], value: a.getYear(O.date) }) : h.createElement("span", { key: "year" }, Q(O.date, a));
|
|
1664
1664
|
return a.getMonthYearOrder() === "year-first" ? [Y, k] : [k, Y];
|
|
1665
1665
|
})(),
|
|
1666
1666
|
h.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -1684,7 +1684,7 @@ function Oo(e) {
|
|
|
1684
1684
|
_ === y - 1 && u === "after" && !t.hideNavigation && h.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: f[M.Nav], style: c == null ? void 0 : c[M.Nav], "aria-label": Re(), onPreviousClick: We, onNextClick: Ne, previousMonth: G, nextMonth: R }),
|
|
1685
1685
|
h.createElement(
|
|
1686
1686
|
n.MonthGrid,
|
|
1687
|
-
{ role: "grid", "aria-multiselectable":
|
|
1687
|
+
{ role: "grid", "aria-multiselectable": l === "multiple" || l === "range", "aria-label": xt(O.date, a.options, a) || void 0, className: f[M.MonthGrid], style: c == null ? void 0 : c[M.MonthGrid] },
|
|
1688
1688
|
!t.hideWeekdays && h.createElement(
|
|
1689
1689
|
n.Weekdays,
|
|
1690
1690
|
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: f[M.Weekdays], style: c == null ? void 0 : c[M.Weekdays] },
|
|
@@ -1747,28 +1747,28 @@ function Wo(e, t, r) {
|
|
|
1747
1747
|
return e && n.push({ before: e }), t && n.push({ after: t }), Array.isArray(r) ? n.push(...r) : typeof r == "function" && n.push(r), n.length === 1 ? n[0] : n;
|
|
1748
1748
|
}
|
|
1749
1749
|
function No({ orientation: e }) {
|
|
1750
|
-
return e === "left" ? /* @__PURE__ */ Ze(Dn, { className: "size-4 rtl:-scale-x-100" }) : /* @__PURE__ */ Ze(vn, { className: "size-4 rtl:-scale-x-100" });
|
|
1750
|
+
return e === "left" ? /* @__PURE__ */ Ze(Dn, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ Ze(vn, { className: "ds:size-4 ds:rtl:-scale-x-100" });
|
|
1751
1751
|
}
|
|
1752
1752
|
const Co = ve(
|
|
1753
1753
|
[
|
|
1754
|
-
"relative flex items-center w-full",
|
|
1755
|
-
"rounded-[var(--radius-sm)] border bg-background text-foreground",
|
|
1756
|
-
"placeholder:text-muted-foreground",
|
|
1757
|
-
"transition-colors duration-[var(--animation-duration)] motion-reduce:transition-none",
|
|
1758
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
1759
|
-
"focus-visible:outline-ring focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1760
|
-
"disabled:cursor-not-allowed disabled:opacity-50"
|
|
1754
|
+
"ds:relative ds:flex ds:items-center ds:w-full",
|
|
1755
|
+
"ds:rounded-[var(--radius-sm)] ds:border ds:bg-background ds:text-foreground",
|
|
1756
|
+
"ds:placeholder:text-muted-foreground",
|
|
1757
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
1758
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
1759
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1760
|
+
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
1761
1761
|
].join(" "),
|
|
1762
1762
|
{
|
|
1763
1763
|
variants: {
|
|
1764
1764
|
size: {
|
|
1765
|
-
sm: "h-8 text-[var(--font-size-sm)] ps-3 pe-10",
|
|
1766
|
-
md: "h-[var(--min-target-size)] text-[var(--font-size-base)] ps-3 pe-10",
|
|
1767
|
-
lg: "h-12 text-[var(--font-size-lg)] ps-4 pe-12"
|
|
1765
|
+
sm: "ds:h-8 ds:text-[var(--font-size-sm)] ds:ps-3 ds:pe-10",
|
|
1766
|
+
md: "ds:h-[var(--min-target-size)] ds:text-[var(--font-size-base)] ds:ps-3 ds:pe-10",
|
|
1767
|
+
lg: "ds:h-12 ds:text-[var(--font-size-lg)] ds:ps-4 ds:pe-12"
|
|
1768
1768
|
},
|
|
1769
1769
|
tone: {
|
|
1770
|
-
default: "border-border",
|
|
1771
|
-
error: "border-destructive"
|
|
1770
|
+
default: "ds:border-border",
|
|
1771
|
+
error: "ds:border-destructive"
|
|
1772
1772
|
}
|
|
1773
1773
|
},
|
|
1774
1774
|
defaultVariants: {
|
|
@@ -1777,31 +1777,31 @@ const Co = ve(
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
), So = ve(
|
|
1780
|
-
"absolute inset-y-0 end-0 flex items-center pointer-events-none text-muted-foreground",
|
|
1780
|
+
"ds:absolute ds:inset-y-0 ds:end-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground",
|
|
1781
1781
|
{
|
|
1782
1782
|
variants: {
|
|
1783
1783
|
size: {
|
|
1784
|
-
sm: "pe-3 [&_svg]:size-4",
|
|
1785
|
-
md: "pe-3 [&_svg]:size-4",
|
|
1786
|
-
lg: "pe-4 [&_svg]:size-5"
|
|
1784
|
+
sm: "ds:pe-3 ds:[&_svg]:size-4",
|
|
1785
|
+
md: "ds:pe-3 ds:[&_svg]:size-4",
|
|
1786
|
+
lg: "ds:pe-4 ds:[&_svg]:size-5"
|
|
1787
1787
|
}
|
|
1788
1788
|
},
|
|
1789
1789
|
defaultVariants: { size: "md" }
|
|
1790
1790
|
}
|
|
1791
1791
|
), Yo = ve(
|
|
1792
1792
|
[
|
|
1793
|
-
"z-[var(--z-popover)] rounded-[var(--radius-md)]",
|
|
1794
|
-
"border border-border bg-background shadow-[var(--shadow-lg)]",
|
|
1795
|
-
"p-[var(--spacing-md)]"
|
|
1793
|
+
"ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
|
|
1794
|
+
"ds:border ds:border-border ds:bg-background ds:shadow-[var(--shadow-lg)]",
|
|
1795
|
+
"ds:p-[var(--spacing-md)]"
|
|
1796
1796
|
].join(" ")
|
|
1797
1797
|
), _o = ve(
|
|
1798
1798
|
[
|
|
1799
|
-
"w-full text-start ps-[var(--spacing-sm)] pe-[var(--spacing-sm)] py-[var(--spacing-xs)]",
|
|
1800
|
-
"rounded-[var(--radius-sm)] text-[var(--font-size-sm)] text-foreground",
|
|
1801
|
-
"hover:bg-muted cursor-pointer",
|
|
1802
|
-
"transition-colors duration-[var(--animation-duration)] motion-reduce:transition-none",
|
|
1803
|
-
"focus-visible:outline-[length:var(--focus-ring-width)] focus-visible:outline-solid",
|
|
1804
|
-
"focus-visible:outline-ring focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
1799
|
+
"ds:w-full ds:text-start ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
1800
|
+
"ds:rounded-[var(--radius-sm)] ds:text-[var(--font-size-sm)] ds:text-foreground",
|
|
1801
|
+
"ds:hover:bg-muted ds:cursor-pointer",
|
|
1802
|
+
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
1803
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
1804
|
+
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
1805
1805
|
].join(" ")
|
|
1806
1806
|
);
|
|
1807
1807
|
export {
|
|
@@ -1821,4 +1821,4 @@ export {
|
|
|
1821
1821
|
_o as p,
|
|
1822
1822
|
Co as t
|
|
1823
1823
|
};
|
|
1824
|
-
//# sourceMappingURL=react-day-picker-
|
|
1824
|
+
//# sourceMappingURL=react-day-picker-d0MHsyCj.js.map
|