@arcadeai/design-system 3.39.0 → 3.39.2
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/CompositeItem-CniPsjzP.js +30 -0
- package/dist/CompositeList-yq5K_yj6.js +81 -0
- package/dist/CompositeRoot-Dy-5A-Je.js +206 -0
- package/dist/DialogRoot-DDokfJcO.js +57 -0
- package/dist/DialogTrigger-CFUE8YsM.js +402 -0
- package/dist/DirectionContext-BSOheMwC.js +10 -0
- package/dist/FieldItemContext-CF2fRwBC.js +12 -0
- package/dist/FloatingPortalLite-BHsRx4XN.js +29 -0
- package/dist/InternalBackdrop-BVEfe6O1.js +610 -0
- package/dist/LabelableContext-Dzw1DWuj.js +171 -0
- package/dist/Separator-CswSYAXX.js +25 -0
- package/dist/ToolbarRootContext-D7EsmJ5f.js +10 -0
- package/dist/andromeeda-B-gfN00q.js +4 -0
- package/dist/angular-html-dA1qUKRV.js +32 -0
- package/dist/angular-ts-CXyBC0vY.js +21 -0
- package/dist/apl-CjNiDgad.js +3 -3
- package/dist/assets/icons/telegram.js +10 -0
- package/dist/assets/images/arcade-grid.d.ts.map +1 -1
- package/dist/assets/images/arcade-grid.js +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/tokens.css +1 -1
- package/dist/assets/variables.css +1 -1
- package/dist/astro--3ZkKqYU.js +18 -0
- package/dist/astro-CFFExE8Q.js +5 -5
- package/dist/aurora-x-B56eICma.js +4 -0
- package/dist/ayu-dark-DJSOaKig.js +4 -0
- package/dist/ayu-light-BPfFt4v-.js +4 -0
- package/dist/ayu-mirage-DmPLRBj7.js +4 -0
- package/dist/blade-BoRuQEEj.js +20 -0
- package/dist/blade-D0HyNvCw.js +4 -4
- package/dist/c-C4SM8H98.js +6 -0
- package/dist/cairo-DM6WF2e3.js +1 -1
- package/dist/{calendar-DreAgQKY.js → calendar-CLEnvrbp.js} +483 -482
- package/dist/catppuccin-frappe-CA5k7W3u.js +4 -0
- package/dist/catppuccin-latte-CYfkUW5v.js +4 -0
- package/dist/catppuccin-macchiato-BOj_4I3g.js +4 -0
- package/dist/catppuccin-mocha-BXpUXme4.js +4 -0
- package/dist/clamp-BxE4ZAuA.js +17 -0
- package/dist/cobol-HihOMwht.js +1 -1
- package/dist/coffee-D8Swy5yR.js +8 -0
- package/dist/components/index.js +665 -644
- package/dist/components/ui/atoms/accordion.d.ts +9 -7
- package/dist/components/ui/atoms/accordion.d.ts.map +1 -1
- package/dist/components/ui/atoms/accordion.js +454 -243
- package/dist/components/ui/atoms/alert-dialog.d.ts +13 -9
- package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/atoms/alert-dialog.js +149 -183
- package/dist/components/ui/atoms/alert.d.ts +2 -1
- package/dist/components/ui/atoms/alert.d.ts.map +1 -1
- package/dist/components/ui/atoms/alert.js +36 -25
- package/dist/components/ui/atoms/avatar.d.ts +10 -5
- package/dist/components/ui/atoms/avatar.d.ts.map +1 -1
- package/dist/components/ui/atoms/avatar.js +198 -205
- package/dist/components/ui/atoms/badge.d.ts +4 -5
- package/dist/components/ui/atoms/badge.d.ts.map +1 -1
- package/dist/components/ui/atoms/badge.js +31 -22
- package/dist/components/ui/atoms/breadcrumb.d.ts +4 -5
- package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/atoms/breadcrumb.js +46 -29
- package/dist/components/ui/atoms/button.d.ts +4 -6
- package/dist/components/ui/atoms/button.d.ts.map +1 -1
- package/dist/components/ui/atoms/button.js +59 -28
- package/dist/components/ui/atoms/byoc-badge.d.ts +2 -2
- package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -1
- package/dist/components/ui/atoms/byoc-badge.js +14 -8
- package/dist/components/ui/atoms/calendar.d.ts +6 -16
- package/dist/components/ui/atoms/calendar.d.ts.map +1 -1
- package/dist/components/ui/atoms/calendar.js +1 -1
- package/dist/components/ui/atoms/card.d.ts +4 -2
- package/dist/components/ui/atoms/card.d.ts.map +1 -1
- package/dist/components/ui/atoms/card.js +46 -35
- package/dist/components/ui/atoms/chart.d.ts +24 -48
- package/dist/components/ui/atoms/chart.d.ts.map +1 -1
- package/dist/components/ui/atoms/chart.js +179 -148
- package/dist/components/ui/atoms/checkbox.d.ts +2 -3
- package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
- package/dist/components/ui/atoms/checkbox.js +269 -249
- package/dist/components/ui/atoms/code-block.js +1 -1
- package/dist/components/ui/atoms/collapsible.d.ts +5 -5
- package/dist/components/ui/atoms/collapsible.d.ts.map +1 -1
- package/dist/components/ui/atoms/collapsible.js +208 -23
- package/dist/components/ui/atoms/command.d.ts +4 -3
- package/dist/components/ui/atoms/command.d.ts.map +1 -1
- package/dist/components/ui/atoms/command.js +1655 -348
- package/dist/components/ui/atoms/dialog.d.ts +12 -10
- package/dist/components/ui/atoms/dialog.d.ts.map +1 -1
- package/dist/components/ui/atoms/dialog.js +91 -80
- package/dist/components/ui/atoms/dropdown-menu.d.ts +21 -17
- package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/atoms/dropdown-menu.js +1507 -899
- package/dist/components/ui/atoms/form.d.ts +5 -3
- package/dist/components/ui/atoms/form.d.ts.map +1 -1
- package/dist/components/ui/atoms/form.js +36 -42
- package/dist/components/ui/atoms/hover-card.d.ts +5 -6
- package/dist/components/ui/atoms/hover-card.d.ts.map +1 -1
- package/dist/components/ui/atoms/hover-card.js +355 -193
- package/dist/components/ui/atoms/icons/index.d.ts +1 -0
- package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/icons/index.js +58 -56
- package/dist/components/ui/atoms/icons/telegram.d.ts +4 -0
- package/dist/components/ui/atoms/icons/telegram.d.ts.map +1 -0
- package/dist/components/ui/atoms/icons/telegram.js +37 -0
- package/dist/components/ui/atoms/index.d.ts +1 -0
- package/dist/components/ui/atoms/index.d.ts.map +1 -1
- package/dist/components/ui/atoms/index.js +566 -545
- package/dist/components/ui/atoms/input-group.d.ts +20 -0
- package/dist/components/ui/atoms/input-group.d.ts.map +1 -0
- package/dist/components/ui/atoms/input-group.js +136 -0
- package/dist/components/ui/atoms/input.d.ts.map +1 -1
- package/dist/components/ui/atoms/input.js +113 -13
- package/dist/components/ui/atoms/label.d.ts +1 -2
- package/dist/components/ui/atoms/label.d.ts.map +1 -1
- package/dist/components/ui/atoms/label.js +18 -31
- package/dist/components/ui/atoms/markdown.js +1 -1
- package/dist/components/ui/atoms/mobile-tooltip.js +4 -3
- package/dist/components/ui/atoms/popover.d.ts +8 -6
- package/dist/components/ui/atoms/popover.d.ts.map +1 -1
- package/dist/components/ui/atoms/popover.js +617 -245
- package/dist/components/ui/atoms/pro-badge.js +1 -1
- package/dist/components/ui/atoms/progress.d.ts +7 -4
- package/dist/components/ui/atoms/progress.d.ts.map +1 -1
- package/dist/components/ui/atoms/progress.js +236 -92
- package/dist/components/ui/atoms/radio-group.d.ts +4 -4
- package/dist/components/ui/atoms/radio-group.d.ts.map +1 -1
- package/dist/components/ui/atoms/radio-group.js +355 -251
- package/dist/components/ui/atoms/resizable.d.ts +3 -4
- package/dist/components/ui/atoms/resizable.d.ts.map +1 -1
- package/dist/components/ui/atoms/resizable.js +25 -27
- package/dist/components/ui/atoms/scroll-area.d.ts +5 -5
- package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/atoms/scroll-area.js +611 -526
- package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
- package/dist/components/ui/atoms/scroll-button.js +27 -22
- package/dist/components/ui/atoms/select.d.ts +11 -11
- package/dist/components/ui/atoms/select.d.ts.map +1 -1
- package/dist/components/ui/atoms/select.js +1525 -889
- package/dist/components/ui/atoms/separator.d.ts +2 -3
- package/dist/components/ui/atoms/separator.d.ts.map +1 -1
- package/dist/components/ui/atoms/separator.js +16 -35
- package/dist/components/ui/atoms/sheet.d.ts +9 -9
- package/dist/components/ui/atoms/sheet.d.ts.map +1 -1
- package/dist/components/ui/atoms/sheet.js +65 -64
- package/dist/components/ui/atoms/sidebar.d.ts +9 -15
- package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
- package/dist/components/ui/atoms/sidebar.js +288 -283
- package/dist/components/ui/atoms/skeleton.js +4 -4
- package/dist/components/ui/atoms/slider.d.ts +2 -3
- package/dist/components/ui/atoms/slider.d.ts.map +1 -1
- package/dist/components/ui/atoms/slider.js +886 -440
- package/dist/components/ui/atoms/switch.d.ts +4 -5
- package/dist/components/ui/atoms/switch.d.ts.map +1 -1
- package/dist/components/ui/atoms/switch.js +218 -151
- package/dist/components/ui/atoms/table.d.ts +2 -4
- package/dist/components/ui/atoms/table.d.ts.map +1 -1
- package/dist/components/ui/atoms/table.js +35 -36
- package/dist/components/ui/atoms/tabs.d.ts +11 -7
- package/dist/components/ui/atoms/tabs.d.ts.map +1 -1
- package/dist/components/ui/atoms/tabs.js +492 -186
- package/dist/components/ui/atoms/textarea.d.ts.map +1 -1
- package/dist/components/ui/atoms/textarea.js +7 -7
- package/dist/components/ui/atoms/toggle.d.ts +2 -3
- package/dist/components/ui/atoms/toggle.d.ts.map +1 -1
- package/dist/components/ui/atoms/toggle.js +92 -45
- package/dist/components/ui/atoms/tooltip.d.ts +6 -9
- package/dist/components/ui/atoms/tooltip.d.ts.map +1 -1
- package/dist/components/ui/atoms/tooltip.js +625 -343
- package/dist/components/ui/atoms/view-tools-control.js +16 -15
- package/dist/components/ui/atoms/virtualized-grid.d.ts +11 -4
- package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
- package/dist/components/ui/atoms/virtualized-grid.js +365 -333
- package/dist/components/ui/index.js +665 -644
- package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -1
- package/dist/components/ui/molecules/chat-history-item.js +47 -40
- package/dist/components/ui/molecules/command-bar.js +1 -1
- package/dist/components/ui/molecules/confirm-popover.d.ts +2 -2
- package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -1
- package/dist/components/ui/molecules/confirm-popover.js +26 -24
- package/dist/components/ui/molecules/date-time-picker.d.ts.map +1 -1
- package/dist/components/ui/molecules/date-time-picker.js +17 -11
- package/dist/components/ui/molecules/index.js +1 -1
- package/dist/components/ui/molecules/message.d.ts +2 -3
- package/dist/components/ui/molecules/message.d.ts.map +1 -1
- package/dist/components/ui/molecules/message.js +10 -16
- package/dist/components/ui/molecules/prompt-input.d.ts +1 -1
- package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
- package/dist/components/ui/molecules/prompt-input.js +21 -22
- package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
- package/dist/components/ui/molecules/requirement-badges.js +3 -3
- package/dist/components/ui/molecules/steps-progress.js +1 -0
- package/dist/components/ui/molecules/tool-call-accordion.js +1 -0
- package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/tool-card.js +60 -47
- package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
- package/dist/components/ui/molecules/toolkit-card.js +1 -1
- package/dist/components/ui/molecules/user-nav.d.ts.map +1 -1
- package/dist/components/ui/molecules/user-nav.js +62 -57
- package/dist/components/ui/templates/auth-template.js +5 -5
- package/dist/composite-BASdnlNo.js +220 -0
- package/dist/composite-BSpUD7nI.js +66 -0
- package/dist/cpp-CA4iM_wM.js +18 -0
- package/dist/createBaseUIEventDetails-CqidROtw.js +55 -0
- package/dist/crystal-CRJyc4G-.js +4 -4
- package/dist/css-M7EaDHN_.js +6 -0
- package/dist/csv-B7yqA61e.js +6 -0
- package/dist/dark-plus-B4vfALTw.js +4 -0
- package/dist/detectBrowser-Dn2N72k1.js +42 -0
- package/dist/dracula-Cb59ZzY3.js +4 -0
- package/dist/dracula-soft-aaEmszbU.js +4 -0
- package/dist/edge-BYQkOzbF.js +1 -1
- package/dist/element-DSo91iOi.js +88 -0
- package/dist/elm-BtNbw_Cd.js +1 -1
- package/dist/erlang-DNcDT8Hi.js +1 -1
- package/dist/event-BCa0Un_3.js +30 -0
- package/dist/everforest-dark-CLp_21RJ.js +4 -0
- package/dist/everforest-light-CZ0NCAAv.js +4 -0
- package/dist/floating-ui.utils-48URp89E.js +126 -0
- package/dist/floating-ui.utils.dom-jr2suqy2.js +135 -0
- package/dist/fsharp-CYOiIVNx.js +1 -1
- package/dist/getDisabledMountTransitionStyles-fmnaQYVj.js +1539 -0
- package/dist/getPseudoElementBounds-B4_miSEJ.js +364 -0
- package/dist/git-rebase-ZWUFO_T4.js +1 -1
- package/dist/github-dark-BD3lImVS.js +4 -0
- package/dist/github-dark-default-ID_nBUwl.js +4 -0
- package/dist/github-dark-dimmed-Cw4rFgde.js +4 -0
- package/dist/github-dark-high-contrast-DSby9de8.js +4 -0
- package/dist/github-light-W396yAFe.js +4 -0
- package/dist/github-light-default-DCAQ2px1.js +4 -0
- package/dist/github-light-high-contrast-ChWJGEvx.js +4 -0
- package/dist/glimmer-js-DkxNrfPT.js +2 -2
- package/dist/glimmer-ts-D6YZEmK_.js +2 -2
- package/dist/glsl-CgdqkyFp.js +8 -0
- package/dist/graphql-Bv26LTzG.js +14 -0
- package/dist/gruvbox-dark-hard-BC1GRqFa.js +4 -0
- package/dist/gruvbox-dark-medium-COLy2cDY.js +4 -0
- package/dist/gruvbox-dark-soft-B8MALL4f.js +4 -0
- package/dist/gruvbox-light-hard-Bzxr_AnB.js +4 -0
- package/dist/gruvbox-light-medium-D2fqu3Kj.js +4 -0
- package/dist/gruvbox-light-soft-atzRH3-n.js +4 -0
- package/dist/hack-ItRNKiEb.js +1 -1
- package/dist/haml-B1t5q1Sv.js +10 -0
- package/dist/haml-NZLVzu_R.js +1 -1
- package/dist/handlebars-B2fb61mr.js +14 -0
- package/dist/handlebars-mxStpSE7.js +2 -2
- package/dist/highlighted-body-OFNGDK62-Df6AJMbs.js +20 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mobile.js +11 -12
- package/dist/horizon-PFtq58ZB.js +4 -0
- package/dist/horizon-bright-2WzHy-Vo.js +4 -0
- package/dist/houston-BEqUWhHr.js +4 -0
- package/dist/html-B50bmoVb.js +1 -1
- package/dist/html-CPZ3oZQ7.js +10 -0
- package/dist/html-derivative-B2qv7eyt.js +8 -0
- package/dist/http-BQ2t9cn1.js +14 -0
- package/dist/hurl-RyCMCa80.js +12 -0
- package/dist/imba-DpB-wtPB.js +6 -0
- package/dist/index-3rscXtm3.js +4708 -0
- package/dist/inertValue-kpZZDBEy.js +7 -0
- package/dist/integrations/rhf/index.js +6 -5
- package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
- package/dist/java-CbphP4lz.js +6 -0
- package/dist/javascript-CgYd5l7W.js +6 -0
- package/dist/jinja-DFCUirAg.js +11 -0
- package/dist/jison-CTEI_s6O.js +8 -0
- package/dist/json-B5-prx4F.js +6 -0
- package/dist/json5-CZ8R1oUY.js +6 -0
- package/dist/jsonc-DMboCKBJ.js +6 -0
- package/dist/jsonl-YgIUi4Dg.js +6 -0
- package/dist/jsx-D4q4E1UD.js +6 -0
- package/dist/julia-2ubi2n9a.js +16 -0
- package/dist/just-CEK2SJ_k.js +4 -4
- package/dist/kanagawa-dragon-DuYaOBBk.js +4 -0
- package/dist/kanagawa-lotus-CyjAihYC.js +4 -0
- package/dist/kanagawa-wave-BVdXUMj5.js +4 -0
- package/dist/laserwave-B_2VVKNJ.js +4 -0
- package/dist/less-MoGo8xoS.js +6 -0
- package/dist/light-plus-IB4fPeJj.js +4 -0
- package/dist/liquid-CHzkx3jT.js +2 -2
- package/dist/lua-Bp3IRv7I.js +1 -1
- package/dist/main.js +691 -670
- package/dist/markdown-B-zRtm0x.js +6 -0
- package/dist/{markdown-D0xxRbwP.js → markdown-B71Eurda.js} +10329 -8108
- package/dist/marko-BlmC3dqW.js +14 -0
- package/dist/marko-CJBA24Ri.js +2 -2
- package/dist/material-theme-CjsSdYF2.js +4 -0
- package/dist/material-theme-darker-DEk0vgdS.js +4 -0
- package/dist/material-theme-lighter-DEVB_7K5.js +4 -0
- package/dist/material-theme-ocean-DK6jm24j.js +4 -0
- package/dist/material-theme-palenight-CNkXNpHv.js +4 -0
- package/dist/mdc-C9YSUwVC.js +2 -2
- package/dist/mdc-CLNk3q28.js +12 -0
- package/dist/mdx-CiUWpBB_.js +6 -0
- package/dist/mermaid-GHXKKRXX-BkplG-MI.js +5 -0
- package/dist/metadata/toolkit-icons.d.ts.map +1 -1
- package/dist/metadata/toolkit-icons.js +40 -38
- package/dist/metadata/toolkits.d.ts.map +1 -1
- package/dist/metadata/toolkits.js +13 -0
- package/dist/min-dark-CJcHUHwu.js +4 -0
- package/dist/min-light-BAN2UR75.js +4 -0
- package/dist/monokai-BbXwpjKl.js +4 -0
- package/dist/night-owl-csViJ7u4.js +4 -0
- package/dist/night-owl-light-BC-NuMC3.js +4 -0
- package/dist/nim-QAjRdh9w.js +5 -5
- package/dist/nord-B8Sq-VQ0.js +4 -0
- package/dist/one-dark-pro-DTdrcl-J.js +4 -0
- package/dist/one-light-kPHTChCU.js +4 -0
- package/dist/owner-rKN292Q9.js +6 -0
- package/dist/perl-DkVrgJBg.js +3 -3
- package/dist/php-BIzsF_5x.js +4 -4
- package/dist/php-Kn-vgdBD.js +18 -0
- package/dist/plastic-DDweBgVs.js +4 -0
- package/dist/poimandres-Dqvs16BQ.js +4 -0
- package/dist/popupStateMapping-BT9Y_jIq.js +1849 -0
- package/dist/postcss-CwL8bLZI.js +6 -0
- package/dist/pug-CTOOvSEH.js +12 -0
- package/dist/pug-XOw9Q1Ho.js +1 -1
- package/dist/python-jjYlTiSH.js +6 -0
- package/dist/qml-rTNXsquU.js +1 -1
- package/dist/r-C8zl4zMO.js +6 -0
- package/dist/react-resizable-panels-BqIpIFl2.js +2017 -0
- package/dist/red-DBDwQkX-.js +4 -0
- package/dist/regexp-Dpy_RgoJ.js +6 -0
- package/dist/resolveAriaLabelledBy-B5vw-szP.js +11 -0
- package/dist/rose-pine-DGHrTu7e.js +4 -0
- package/dist/rose-pine-dawn-DfRVdapG.js +4 -0
- package/dist/rose-pine-moon-DFpJm5Rd.js +4 -0
- package/dist/rst-DM32Wy3O.js +5 -5
- package/dist/ruby-BeqCs27h.js +8 -8
- package/dist/safePolygon-CJcmMc0u.js +389 -0
- package/dist/safeReact-DKq-628G.js +7 -0
- package/dist/sas-fpEvgATw.js +1 -1
- package/dist/sass-BmupNt-w.js +6 -0
- package/dist/scss-BZYVIVaN.js +8 -0
- package/dist/serializeValue-BebmSzW3.js +14 -0
- package/dist/shellscript-fMxXshxv.js +6 -0
- package/dist/shellsession-DiDJNQdy.js +1 -1
- package/dist/slack-dark-noeC6QPl.js +4 -0
- package/dist/slack-ochin-3_2idqLR.js +4 -0
- package/dist/snazzy-light-B9cV359v.js +4 -0
- package/dist/solarized-dark-B6X0ILWr.js +4 -0
- package/dist/solarized-light-LxOemn3c.js +4 -0
- package/dist/sql-D30Zid36.js +6 -0
- package/dist/stata-B8c5fTjX.js +1 -1
- package/dist/styles-DU5BO7fS.js +16 -0
- package/dist/stylus-BoBcEBjx.js +6 -0
- package/dist/surrealql-CQi7GQN7.js +1 -1
- package/dist/svelte-b9PAcyUe.js +14 -0
- package/dist/svelte-rYri41WT.js +3 -3
- package/dist/synthwave-84-DzQeMpV0.js +4 -0
- package/dist/templ-Crs9Ui8q.js +1 -1
- package/dist/tex-AHxmLTL0.js +1 -1
- package/dist/tokyo-night-CLM-V_Re.js +4 -0
- package/dist/{toolkit-card-CB1oiaei.js → toolkit-card-DhpOY80l.js} +56 -36
- package/dist/ts-tags-CP1b-4Z2.js +41 -0
- package/dist/ts-tags-ioVe2PKw.js +5 -5
- package/dist/tsx-QNpb2qLW.js +6 -0
- package/dist/twig-DwV2Fi4L.js +2 -2
- package/dist/typescript-AhniRyfZ.js +6 -0
- package/dist/useAnimationFrame-DIc6eFHa.js +69 -0
- package/dist/useAriaLabelledBy-VklrCmKp.js +34 -0
- package/dist/useBaseUiId-C8Dq0BQq.js +25 -0
- package/dist/useButton-JYPKQKj4.js +150 -0
- package/dist/useCollapsiblePanel-9pDlDh3R.js +257 -0
- package/dist/useCompositeItem-D00ALGkT.js +35 -0
- package/dist/useCompositeListItem-CYQrZg5-.js +74 -0
- package/dist/useControlled-Sx-_x7Sz.js +32 -0
- package/dist/useFocus-Aj9ShMQu.js +97 -0
- package/dist/useIsoLayoutEffect-DpJo20by.js +7 -0
- package/dist/useLabelableId-DF_d91GP.js +44 -0
- package/dist/useOnFirstRender-B4aruaIA.js +9 -0
- package/dist/useOnMount-JHtE6teb.js +9 -0
- package/dist/useOpenChangeComplete-DkeH9FGJ.js +130 -0
- package/dist/useRender-BNXBkp2o.js +7 -0
- package/dist/useRenderElement-DNB2vtF1.js +274 -0
- package/dist/useRole-N-RCRzo1.js +76 -0
- package/dist/useStableCallback-CudqoENs.js +33 -0
- package/dist/useSyncedFloatingRootContext-Bc90zSTy.js +185 -0
- package/dist/useTimeout-DAqPwigF.js +33 -0
- package/dist/useValueAsRef-LhoZc6As.js +20 -0
- package/dist/useValueChanged-Bissqjjn.js +15 -0
- package/dist/valueToPercent-BBgE4D3L.js +27 -0
- package/dist/vesper-BmV7KiQ0.js +4 -0
- package/dist/visuallyHidden-PuyyGHVF.js +22 -0
- package/dist/vitesse-black-CxZz3C4s.js +4 -0
- package/dist/vitesse-dark-DVUJ0sy2.js +4 -0
- package/dist/vitesse-light-BDJohtUr.js +4 -0
- package/dist/vue-CY6W2ID0.js +31 -0
- package/dist/vue-DXEmyXn9.js +3 -3
- package/dist/vue-html-DYXHAJ2G.js +8 -0
- package/dist/vue-vine-D41-N99t.js +4 -4
- package/dist/vue-vine-DiWTpMwZ.js +18 -0
- package/dist/wasm-3y0A1Y71.js +6 -0
- package/dist/wasm-Dm9SFfrx.js +7 -0
- package/dist/web-BbvN_Lei.js +2846 -0
- package/dist/wgsl-SXl3EZUN.js +6 -0
- package/dist/wit-Cw0CTVY0.js +6 -0
- package/dist/xml-CNXGTZ6Z.js +8 -0
- package/dist/xsl-BmSZphgC.js +1 -1
- package/dist/yaml-DZqZ2PBD.js +6 -0
- package/package.json +37 -34
- package/dist/highlighted-body-TPN3WLV5-D6UnKGod.js +0 -19
- package/dist/index-0ioNhtNM.js +0 -10
- package/dist/index-437EL2iq.js +0 -52
- package/dist/index-B695uy69.js +0 -9
- package/dist/index-BEZCAdXQ.js +0 -1568
- package/dist/index-BGQepRFJ.js +0 -27
- package/dist/index-BZPx6jYI.js +0 -8
- package/dist/index-BaLuVb4t.js +0 -70
- package/dist/index-Bw62B28F.js +0 -31
- package/dist/index-By-GFSsC.js +0 -245
- package/dist/index-ByaXH_ih.js +0 -10
- package/dist/index-CCKe-Mpx.js +0 -6
- package/dist/index-Cv867SGx.js +0 -13
- package/dist/index-CvA4FcaC.js +0 -677
- package/dist/index-D2LZVjSn.js +0 -82
- package/dist/index-DFZozV_h.js +0 -68
- package/dist/index-DJQkmo5O.js +0 -49
- package/dist/index-DLohNuco.js +0 -36
- package/dist/index-DrFfdHac.js +0 -144
- package/dist/index-DrlYGDRT.js +0 -119
- package/dist/index-Dz8CQngS.js +0 -181
- package/dist/index-cd1ceFJg.js +0 -6973
- package/dist/index-rKs9bXHr.js +0 -6
- package/dist/mermaid-O7DHMXV3-gUrB-Xs1.js +0 -4
- package/dist/react-resizable-panels.browser-DYl0LXfw.js +0 -1510
- package/dist/web-BwFNdl01.js +0 -697
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { ChevronLeftIcon as Cn, ChevronRightIcon as Nn,
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as oe } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronLeftIcon as Cn, ChevronRightIcon as Nn, ChevronDownIcon as xn } from "lucide-react";
|
|
3
|
+
import * as $e from "react";
|
|
4
|
+
import f, { createContext as Yn, useContext as Tn, useCallback as R, useRef as Ce, useLayoutEffect as _n, useState as Qe, useEffect as Pn, useMemo as Ne } from "react";
|
|
5
|
+
import { buttonVariants as ut, Button as En } from "./components/ui/atoms/button.js";
|
|
5
6
|
import { cn as Y } from "./lib/utils.js";
|
|
6
7
|
function Fn(e, t, n = "long") {
|
|
7
8
|
return new Intl.DateTimeFormat("en-US", {
|
|
@@ -18,22 +19,22 @@ function ce(e, t) {
|
|
|
18
19
|
timeZone: e,
|
|
19
20
|
timeZoneName: "longOffset"
|
|
20
21
|
}).format)(t).split("GMT")[1];
|
|
21
|
-
return r in be ? be[r] :
|
|
22
|
+
return r in be ? be[r] : lt(r, r.split(":"));
|
|
22
23
|
} catch {
|
|
23
24
|
if (e in be) return be[e];
|
|
24
25
|
const n = e?.match(In);
|
|
25
|
-
return n ?
|
|
26
|
+
return n ? lt(e, n.slice(1)) : NaN;
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
const In = /([+-]\d\d):?(\d\d)?/;
|
|
29
|
-
function
|
|
30
|
+
function lt(e, t) {
|
|
30
31
|
const n = +(t[0] || 0), r = +(t[1] || 0), o = +(t[2] || 0) / 60;
|
|
31
32
|
return be[e] = n * 60 + r > 0 ? n * 60 + r + o : n * 60 - r - o;
|
|
32
33
|
}
|
|
33
34
|
class J extends Date {
|
|
34
35
|
//#region static
|
|
35
36
|
constructor(...t) {
|
|
36
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ce(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), vt(this),
|
|
37
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ce(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), vt(this), Xe(this)) : this.setTime(Date.now());
|
|
37
38
|
}
|
|
38
39
|
static tz(t, ...n) {
|
|
39
40
|
return n.length ? new J(...n, t) : new J(Date.now(), t);
|
|
@@ -50,7 +51,7 @@ class J extends Date {
|
|
|
50
51
|
//#endregion
|
|
51
52
|
//#region time
|
|
52
53
|
setTime(t) {
|
|
53
|
-
return Date.prototype.setTime.apply(this, arguments),
|
|
54
|
+
return Date.prototype.setTime.apply(this, arguments), Xe(this), +this;
|
|
54
55
|
}
|
|
55
56
|
//#endregion
|
|
56
57
|
//#region date-fns integration
|
|
@@ -68,10 +69,10 @@ Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
|
|
|
68
69
|
} : (J.prototype[e] = function() {
|
|
69
70
|
return Date.prototype[t].apply(this.internal, arguments), Hn(this), +this;
|
|
70
71
|
}, J.prototype[t] = function() {
|
|
71
|
-
return Date.prototype[t].apply(this, arguments),
|
|
72
|
+
return Date.prototype[t].apply(this, arguments), Xe(this), +this;
|
|
72
73
|
}));
|
|
73
74
|
});
|
|
74
|
-
function
|
|
75
|
+
function Xe(e) {
|
|
75
76
|
e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-ce(e.timeZone, e) * 60));
|
|
76
77
|
}
|
|
77
78
|
function Hn(e) {
|
|
@@ -86,12 +87,12 @@ function vt(e) {
|
|
|
86
87
|
c && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + c);
|
|
87
88
|
const u = /* @__PURE__ */ new Date(+e);
|
|
88
89
|
u.setUTCSeconds(0);
|
|
89
|
-
const
|
|
90
|
-
(
|
|
90
|
+
const d = o > 0 ? u.getSeconds() : (u.getSeconds() - 60) % 60, l = Math.round(-(ce(e.timeZone, e) * 60)) % 60;
|
|
91
|
+
(l || d) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + l), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + l + d));
|
|
91
92
|
const h = ce(e.timeZone, e), g = h > 0 ? Math.floor(h) : Math.ceil(h), C = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - g, v = g !== n, T = C - c;
|
|
92
93
|
if (v && T) {
|
|
93
94
|
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + T);
|
|
94
|
-
const M = ce(e.timeZone, e),
|
|
95
|
+
const M = ce(e.timeZone, e), w = M > 0 ? Math.floor(M) : Math.ceil(M), k = g - w;
|
|
95
96
|
k && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + k), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + k));
|
|
96
97
|
}
|
|
97
98
|
}
|
|
@@ -151,19 +152,19 @@ class A extends J {
|
|
|
151
152
|
}
|
|
152
153
|
//#endregion
|
|
153
154
|
}
|
|
154
|
-
const Ot = 6048e5, An = 864e5,
|
|
155
|
+
const Ot = 6048e5, An = 864e5, ft = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
155
156
|
function I(e, t) {
|
|
156
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
157
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && ft in e ? e[ft](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
157
158
|
}
|
|
158
|
-
function
|
|
159
|
+
function P(e, t) {
|
|
159
160
|
return I(t || e, e);
|
|
160
161
|
}
|
|
161
162
|
function Wt(e, t, n) {
|
|
162
|
-
const r =
|
|
163
|
+
const r = P(e, n?.in);
|
|
163
164
|
return isNaN(t) ? I(e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
164
165
|
}
|
|
165
166
|
function St(e, t, n) {
|
|
166
|
-
const r =
|
|
167
|
+
const r = P(e, n?.in);
|
|
167
168
|
if (isNaN(t)) return I(e, NaN);
|
|
168
169
|
if (!t)
|
|
169
170
|
return r;
|
|
@@ -177,26 +178,26 @@ function St(e, t, n) {
|
|
|
177
178
|
), r);
|
|
178
179
|
}
|
|
179
180
|
let qn = {};
|
|
180
|
-
function
|
|
181
|
+
function ke() {
|
|
181
182
|
return qn;
|
|
182
183
|
}
|
|
183
184
|
function he(e, t) {
|
|
184
|
-
const n =
|
|
185
|
+
const n = ke(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = P(e, t?.in), s = o.getDay(), i = (s < r ? 7 : 0) + s - r;
|
|
185
186
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function pe(e, t) {
|
|
188
189
|
return he(e, { ...t, weekStartsOn: 1 });
|
|
189
190
|
}
|
|
190
191
|
function Ct(e, t) {
|
|
191
|
-
const n =
|
|
192
|
+
const n = P(e, t?.in), r = n.getFullYear(), o = I(n, 0);
|
|
192
193
|
o.setFullYear(r + 1, 0, 4), o.setHours(0, 0, 0, 0);
|
|
193
|
-
const s =
|
|
194
|
+
const s = pe(o), i = I(n, 0);
|
|
194
195
|
i.setFullYear(r, 0, 4), i.setHours(0, 0, 0, 0);
|
|
195
|
-
const a =
|
|
196
|
+
const a = pe(i);
|
|
196
197
|
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= a.getTime() ? r : r - 1;
|
|
197
198
|
}
|
|
198
|
-
function
|
|
199
|
-
const t =
|
|
199
|
+
function ht(e) {
|
|
200
|
+
const t = P(e), n = new Date(
|
|
200
201
|
Date.UTC(
|
|
201
202
|
t.getFullYear(),
|
|
202
203
|
t.getMonth(),
|
|
@@ -216,8 +217,8 @@ function me(e, ...t) {
|
|
|
216
217
|
);
|
|
217
218
|
return t.map(n);
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
-
const n =
|
|
220
|
+
function Me(e, t) {
|
|
221
|
+
const n = P(e, t?.in);
|
|
221
222
|
return n.setHours(0, 0, 0, 0), n;
|
|
222
223
|
}
|
|
223
224
|
function Ue(e, t, n) {
|
|
@@ -225,12 +226,12 @@ function Ue(e, t, n) {
|
|
|
225
226
|
n?.in,
|
|
226
227
|
e,
|
|
227
228
|
t
|
|
228
|
-
), s =
|
|
229
|
+
), s = Me(r), i = Me(o), a = +s - ht(s), c = +i - ht(i);
|
|
229
230
|
return Math.round((a - c) / An);
|
|
230
231
|
}
|
|
231
232
|
function zn(e, t) {
|
|
232
233
|
const n = Ct(e, t), r = I(e, 0);
|
|
233
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
234
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), pe(r);
|
|
234
235
|
}
|
|
235
236
|
function jn(e, t, n) {
|
|
236
237
|
return Wt(e, t * 7, n);
|
|
@@ -238,19 +239,19 @@ function jn(e, t, n) {
|
|
|
238
239
|
function Gn(e, t, n) {
|
|
239
240
|
return St(e, t * 12, n);
|
|
240
241
|
}
|
|
241
|
-
function
|
|
242
|
+
function Rn(e, t) {
|
|
242
243
|
let n, r = t?.in;
|
|
243
244
|
return e.forEach((o) => {
|
|
244
245
|
!r && typeof o == "object" && (r = I.bind(null, o));
|
|
245
|
-
const s =
|
|
246
|
+
const s = P(o, r);
|
|
246
247
|
(!n || n < s || isNaN(+s)) && (n = s);
|
|
247
248
|
}), I(r, n || NaN);
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
+
function $n(e, t) {
|
|
250
251
|
let n, r = t?.in;
|
|
251
252
|
return e.forEach((o) => {
|
|
252
253
|
!r && typeof o == "object" && (r = I.bind(null, o));
|
|
253
|
-
const s =
|
|
254
|
+
const s = P(o, r);
|
|
254
255
|
(!n || n > s || isNaN(+s)) && (n = s);
|
|
255
256
|
}), I(r, n || NaN);
|
|
256
257
|
}
|
|
@@ -260,13 +261,13 @@ function Qn(e, t, n) {
|
|
|
260
261
|
e,
|
|
261
262
|
t
|
|
262
263
|
);
|
|
263
|
-
return +
|
|
264
|
+
return +Me(r) == +Me(o);
|
|
264
265
|
}
|
|
265
266
|
function Nt(e) {
|
|
266
267
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
267
268
|
}
|
|
268
|
-
function
|
|
269
|
-
return !(!Nt(e) && typeof e != "number" || isNaN(+
|
|
269
|
+
function Xn(e) {
|
|
270
|
+
return !(!Nt(e) && typeof e != "number" || isNaN(+P(e)));
|
|
270
271
|
}
|
|
271
272
|
function xt(e, t, n) {
|
|
272
273
|
const [r, o] = me(
|
|
@@ -276,8 +277,8 @@ function xt(e, t, n) {
|
|
|
276
277
|
), s = r.getFullYear() - o.getFullYear(), i = r.getMonth() - o.getMonth();
|
|
277
278
|
return s * 12 + i;
|
|
278
279
|
}
|
|
279
|
-
function
|
|
280
|
-
const n =
|
|
280
|
+
function Un(e, t) {
|
|
281
|
+
const n = P(e, t?.in), r = n.getMonth();
|
|
281
282
|
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
282
283
|
}
|
|
283
284
|
function Yt(e, t) {
|
|
@@ -296,15 +297,15 @@ function Vn(e, t) {
|
|
|
296
297
|
return o ? c.reverse() : c;
|
|
297
298
|
}
|
|
298
299
|
function Zn(e, t) {
|
|
299
|
-
const n =
|
|
300
|
+
const n = P(e, t?.in);
|
|
300
301
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
301
302
|
}
|
|
302
303
|
function Kn(e, t) {
|
|
303
|
-
const n =
|
|
304
|
+
const n = P(e, t?.in), r = n.getFullYear();
|
|
304
305
|
return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
|
|
305
306
|
}
|
|
306
307
|
function Tt(e, t) {
|
|
307
|
-
const n =
|
|
308
|
+
const n = P(e, t?.in);
|
|
308
309
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
309
310
|
}
|
|
310
311
|
function Jn(e, t) {
|
|
@@ -319,7 +320,7 @@ function Jn(e, t) {
|
|
|
319
320
|
return o ? c.reverse() : c;
|
|
320
321
|
}
|
|
321
322
|
function _t(e, t) {
|
|
322
|
-
const n =
|
|
323
|
+
const n = ke(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = P(e, t?.in), s = o.getDay(), i = (s < r ? -7 : 0) + 6 - (s - r);
|
|
323
324
|
return o.setDate(o.getDate() + i), o.setHours(23, 59, 59, 999), o;
|
|
324
325
|
}
|
|
325
326
|
function Ln(e, t) {
|
|
@@ -457,7 +458,7 @@ const cr = {
|
|
|
457
458
|
narrow: ["1", "2", "3", "4"],
|
|
458
459
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
459
460
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
460
|
-
},
|
|
461
|
+
}, lr = {
|
|
461
462
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
462
463
|
abbreviated: [
|
|
463
464
|
"Jan",
|
|
@@ -487,7 +488,7 @@ const cr = {
|
|
|
487
488
|
"November",
|
|
488
489
|
"December"
|
|
489
490
|
]
|
|
490
|
-
},
|
|
491
|
+
}, dr = {
|
|
491
492
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
492
493
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
493
494
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -586,11 +587,11 @@ const cr = {
|
|
|
586
587
|
argumentCallback: (e) => e - 1
|
|
587
588
|
}),
|
|
588
589
|
month: ye({
|
|
589
|
-
values:
|
|
590
|
+
values: lr,
|
|
590
591
|
defaultWidth: "wide"
|
|
591
592
|
}),
|
|
592
593
|
day: ye({
|
|
593
|
-
values:
|
|
594
|
+
values: dr,
|
|
594
595
|
defaultWidth: "wide"
|
|
595
596
|
}),
|
|
596
597
|
dayPeriod: ye({
|
|
@@ -605,17 +606,17 @@ function ge(e) {
|
|
|
605
606
|
const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
|
|
606
607
|
if (!s)
|
|
607
608
|
return null;
|
|
608
|
-
const i = s[0], a = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(a) ? br(a, (
|
|
609
|
+
const i = s[0], a = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(a) ? br(a, (l) => l.test(i)) : (
|
|
609
610
|
// [TODO] -- I challenge you to fix the type
|
|
610
|
-
gr(a, (
|
|
611
|
+
gr(a, (l) => l.test(i))
|
|
611
612
|
);
|
|
612
613
|
let u;
|
|
613
614
|
u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
|
|
614
615
|
// [TODO] -- I challenge you to fix the type
|
|
615
616
|
n.valueCallback(u)
|
|
616
617
|
) : u;
|
|
617
|
-
const
|
|
618
|
-
return { value: u, rest:
|
|
618
|
+
const d = t.slice(i.length);
|
|
619
|
+
return { value: u, rest: d };
|
|
619
620
|
};
|
|
620
621
|
}
|
|
621
622
|
function gr(e, t) {
|
|
@@ -628,7 +629,7 @@ function br(e, t) {
|
|
|
628
629
|
if (t(e[n]))
|
|
629
630
|
return n;
|
|
630
631
|
}
|
|
631
|
-
function
|
|
632
|
+
function wr(e) {
|
|
632
633
|
return (t, n = {}) => {
|
|
633
634
|
const r = t.match(e.matchPattern);
|
|
634
635
|
if (!r) return null;
|
|
@@ -640,7 +641,7 @@ function pr(e) {
|
|
|
640
641
|
return { value: i, rest: a };
|
|
641
642
|
};
|
|
642
643
|
}
|
|
643
|
-
const
|
|
644
|
+
const pr = /^(\d+)(th|st|nd|rd)?/i, Mr = /\d+/i, kr = {
|
|
644
645
|
narrow: /^(b|a)/i,
|
|
645
646
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
646
647
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
@@ -708,8 +709,8 @@ const wr = /^(\d+)(th|st|nd|rd)?/i, Mr = /\d+/i, kr = {
|
|
|
708
709
|
night: /night/i
|
|
709
710
|
}
|
|
710
711
|
}, Tr = {
|
|
711
|
-
ordinalNumber:
|
|
712
|
-
matchPattern:
|
|
712
|
+
ordinalNumber: wr({
|
|
713
|
+
matchPattern: pr,
|
|
713
714
|
parsePattern: Mr,
|
|
714
715
|
valueCallback: (e) => parseInt(e, 10)
|
|
715
716
|
}),
|
|
@@ -757,27 +758,27 @@ const wr = /^(\d+)(th|st|nd|rd)?/i, Mr = /\d+/i, kr = {
|
|
|
757
758
|
}
|
|
758
759
|
};
|
|
759
760
|
function _r(e, t) {
|
|
760
|
-
const n =
|
|
761
|
+
const n = P(e, t?.in);
|
|
761
762
|
return Ue(n, Tt(n)) + 1;
|
|
762
763
|
}
|
|
763
|
-
function
|
|
764
|
-
const n =
|
|
764
|
+
function Ve(e, t) {
|
|
765
|
+
const n = P(e, t?.in), r = +pe(n) - +zn(n);
|
|
765
766
|
return Math.round(r / Ot) + 1;
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
-
const n =
|
|
768
|
+
function Pt(e, t) {
|
|
769
|
+
const n = P(e, t?.in), r = n.getFullYear(), o = ke(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, i = I(t?.in || e, 0);
|
|
769
770
|
i.setFullYear(r + 1, 0, s), i.setHours(0, 0, 0, 0);
|
|
770
771
|
const a = he(i, t), c = I(t?.in || e, 0);
|
|
771
772
|
c.setFullYear(r, 0, s), c.setHours(0, 0, 0, 0);
|
|
772
773
|
const u = he(c, t);
|
|
773
774
|
return +n >= +a ? r + 1 : +n >= +u ? r : r - 1;
|
|
774
775
|
}
|
|
775
|
-
function
|
|
776
|
-
const n =
|
|
776
|
+
function Pr(e, t) {
|
|
777
|
+
const n = ke(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, o = Pt(e, t), s = I(t?.in || e, 0);
|
|
777
778
|
return s.setFullYear(o, 0, r), s.setHours(0, 0, 0, 0), he(s, t);
|
|
778
779
|
}
|
|
779
|
-
function
|
|
780
|
-
const n =
|
|
780
|
+
function Ze(e, t) {
|
|
781
|
+
const n = P(e, t?.in), r = +he(n, t) - +Pr(n, t);
|
|
781
782
|
return Math.round(r / Ot) + 1;
|
|
782
783
|
}
|
|
783
784
|
function _(e, t) {
|
|
@@ -837,14 +838,14 @@ const se = {
|
|
|
837
838
|
);
|
|
838
839
|
return _(o, t.length);
|
|
839
840
|
}
|
|
840
|
-
},
|
|
841
|
+
}, le = {
|
|
841
842
|
midnight: "midnight",
|
|
842
843
|
noon: "noon",
|
|
843
844
|
morning: "morning",
|
|
844
845
|
afternoon: "afternoon",
|
|
845
846
|
evening: "evening",
|
|
846
847
|
night: "night"
|
|
847
|
-
},
|
|
848
|
+
}, mt = {
|
|
848
849
|
// Era
|
|
849
850
|
G: function(e, t, n) {
|
|
850
851
|
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -871,7 +872,7 @@ const se = {
|
|
|
871
872
|
},
|
|
872
873
|
// Local week-numbering year
|
|
873
874
|
Y: function(e, t, n, r) {
|
|
874
|
-
const o =
|
|
875
|
+
const o = Pt(e, r), s = o > 0 ? o : 1 - o;
|
|
875
876
|
if (t === "YY") {
|
|
876
877
|
const i = s % 100;
|
|
877
878
|
return _(i, 2);
|
|
@@ -1017,12 +1018,12 @@ const se = {
|
|
|
1017
1018
|
},
|
|
1018
1019
|
// Local week of year
|
|
1019
1020
|
w: function(e, t, n, r) {
|
|
1020
|
-
const o =
|
|
1021
|
+
const o = Ze(e, r);
|
|
1021
1022
|
return t === "wo" ? n.ordinalNumber(o, { unit: "week" }) : _(o, t.length);
|
|
1022
1023
|
},
|
|
1023
1024
|
// ISO week of year
|
|
1024
1025
|
I: function(e, t, n) {
|
|
1025
|
-
const r =
|
|
1026
|
+
const r = Ve(e);
|
|
1026
1027
|
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : _(r, t.length);
|
|
1027
1028
|
},
|
|
1028
1029
|
// Day of the month
|
|
@@ -1208,7 +1209,7 @@ const se = {
|
|
|
1208
1209
|
b: function(e, t, n) {
|
|
1209
1210
|
const r = e.getHours();
|
|
1210
1211
|
let o;
|
|
1211
|
-
switch (r === 12 ? o =
|
|
1212
|
+
switch (r === 12 ? o = le.noon : r === 0 ? o = le.midnight : o = r / 12 >= 1 ? "pm" : "am", t) {
|
|
1212
1213
|
case "b":
|
|
1213
1214
|
case "bb":
|
|
1214
1215
|
return n.dayPeriod(o, {
|
|
@@ -1236,7 +1237,7 @@ const se = {
|
|
|
1236
1237
|
B: function(e, t, n) {
|
|
1237
1238
|
const r = e.getHours();
|
|
1238
1239
|
let o;
|
|
1239
|
-
switch (r >= 17 ? o =
|
|
1240
|
+
switch (r >= 17 ? o = le.evening : r >= 12 ? o = le.afternoon : r >= 4 ? o = le.morning : o = le.night, t) {
|
|
1240
1241
|
case "B":
|
|
1241
1242
|
case "BB":
|
|
1242
1243
|
case "BBB":
|
|
@@ -1298,7 +1299,7 @@ const se = {
|
|
|
1298
1299
|
switch (t) {
|
|
1299
1300
|
// Hours and optional minutes
|
|
1300
1301
|
case "X":
|
|
1301
|
-
return
|
|
1302
|
+
return gt(r);
|
|
1302
1303
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1303
1304
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1304
1305
|
// so this token always has the same output as `XX`
|
|
@@ -1316,7 +1317,7 @@ const se = {
|
|
|
1316
1317
|
switch (t) {
|
|
1317
1318
|
// Hours and optional minutes
|
|
1318
1319
|
case "x":
|
|
1319
|
-
return
|
|
1320
|
+
return gt(r);
|
|
1320
1321
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1321
1322
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1322
1323
|
// so this token always has the same output as `xx`
|
|
@@ -1336,7 +1337,7 @@ const se = {
|
|
|
1336
1337
|
case "O":
|
|
1337
1338
|
case "OO":
|
|
1338
1339
|
case "OOO":
|
|
1339
|
-
return "GMT" +
|
|
1340
|
+
return "GMT" + yt(r, ":");
|
|
1340
1341
|
default:
|
|
1341
1342
|
return "GMT" + ie(r, ":");
|
|
1342
1343
|
}
|
|
@@ -1349,7 +1350,7 @@ const se = {
|
|
|
1349
1350
|
case "z":
|
|
1350
1351
|
case "zz":
|
|
1351
1352
|
case "zzz":
|
|
1352
|
-
return "GMT" +
|
|
1353
|
+
return "GMT" + yt(r, ":");
|
|
1353
1354
|
default:
|
|
1354
1355
|
return "GMT" + ie(r, ":");
|
|
1355
1356
|
}
|
|
@@ -1364,18 +1365,18 @@ const se = {
|
|
|
1364
1365
|
return _(+e, t.length);
|
|
1365
1366
|
}
|
|
1366
1367
|
};
|
|
1367
|
-
function
|
|
1368
|
+
function yt(e, t = "") {
|
|
1368
1369
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = Math.trunc(r / 60), s = r % 60;
|
|
1369
1370
|
return s === 0 ? n + String(o) : n + String(o) + t + _(s, 2);
|
|
1370
1371
|
}
|
|
1371
|
-
function
|
|
1372
|
+
function gt(e, t) {
|
|
1372
1373
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + _(Math.abs(e) / 60, 2) : ie(e, t);
|
|
1373
1374
|
}
|
|
1374
1375
|
function ie(e, t = "") {
|
|
1375
1376
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), o = _(Math.trunc(r / 60), 2), s = _(r % 60, 2);
|
|
1376
1377
|
return n + o + t + s;
|
|
1377
1378
|
}
|
|
1378
|
-
const
|
|
1379
|
+
const bt = (e, t) => {
|
|
1379
1380
|
switch (e) {
|
|
1380
1381
|
case "P":
|
|
1381
1382
|
return t.date({ width: "short" });
|
|
@@ -1386,7 +1387,7 @@ const gt = (e, t) => {
|
|
|
1386
1387
|
default:
|
|
1387
1388
|
return t.date({ width: "full" });
|
|
1388
1389
|
}
|
|
1389
|
-
},
|
|
1390
|
+
}, Et = (e, t) => {
|
|
1390
1391
|
switch (e) {
|
|
1391
1392
|
case "p":
|
|
1392
1393
|
return t.time({ width: "short" });
|
|
@@ -1397,10 +1398,10 @@ const gt = (e, t) => {
|
|
|
1397
1398
|
default:
|
|
1398
1399
|
return t.time({ width: "full" });
|
|
1399
1400
|
}
|
|
1400
|
-
},
|
|
1401
|
+
}, Er = (e, t) => {
|
|
1401
1402
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], o = n[2];
|
|
1402
1403
|
if (!o)
|
|
1403
|
-
return
|
|
1404
|
+
return bt(e, t);
|
|
1404
1405
|
let s;
|
|
1405
1406
|
switch (r) {
|
|
1406
1407
|
case "P":
|
|
@@ -1416,10 +1417,10 @@ const gt = (e, t) => {
|
|
|
1416
1417
|
s = t.dateTime({ width: "full" });
|
|
1417
1418
|
break;
|
|
1418
1419
|
}
|
|
1419
|
-
return s.replace("{{date}}",
|
|
1420
|
+
return s.replace("{{date}}", bt(r, t)).replace("{{time}}", Et(o, t));
|
|
1420
1421
|
}, Fr = {
|
|
1421
|
-
p:
|
|
1422
|
-
P:
|
|
1422
|
+
p: Et,
|
|
1423
|
+
P: Er
|
|
1423
1424
|
}, Br = /^D+$/, Ir = /^Y+$/, Hr = ["D", "DD", "YY", "YYYY"];
|
|
1424
1425
|
function Ar(e) {
|
|
1425
1426
|
return Br.test(e);
|
|
@@ -1435,31 +1436,31 @@ function jr(e, t, n) {
|
|
|
1435
1436
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1436
1437
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1437
1438
|
}
|
|
1438
|
-
const Gr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
|
|
1439
|
-
function
|
|
1440
|
-
const r =
|
|
1441
|
-
if (!
|
|
1439
|
+
const Gr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Rr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $r = /^'([^]*?)'?$/, Qr = /''/g, Xr = /[a-zA-Z]/;
|
|
1440
|
+
function we(e, t, n) {
|
|
1441
|
+
const r = ke(), o = n?.locale ?? r.locale ?? fe, s = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, i = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = P(e, n?.in);
|
|
1442
|
+
if (!Xn(a))
|
|
1442
1443
|
throw new RangeError("Invalid time value");
|
|
1443
|
-
let c = t.match(
|
|
1444
|
-
const
|
|
1445
|
-
if (
|
|
1446
|
-
const h = Fr[
|
|
1447
|
-
return h(
|
|
1444
|
+
let c = t.match(Rr).map((d) => {
|
|
1445
|
+
const l = d[0];
|
|
1446
|
+
if (l === "p" || l === "P") {
|
|
1447
|
+
const h = Fr[l];
|
|
1448
|
+
return h(d, o.formatLong);
|
|
1448
1449
|
}
|
|
1449
|
-
return
|
|
1450
|
-
}).join("").match(Gr).map((
|
|
1451
|
-
if (
|
|
1450
|
+
return d;
|
|
1451
|
+
}).join("").match(Gr).map((d) => {
|
|
1452
|
+
if (d === "''")
|
|
1452
1453
|
return { isToken: !1, value: "'" };
|
|
1453
|
-
const
|
|
1454
|
-
if (
|
|
1455
|
-
return { isToken: !1, value:
|
|
1456
|
-
if (
|
|
1457
|
-
return { isToken: !0, value:
|
|
1458
|
-
if (
|
|
1454
|
+
const l = d[0];
|
|
1455
|
+
if (l === "'")
|
|
1456
|
+
return { isToken: !1, value: Ur(d) };
|
|
1457
|
+
if (mt[l])
|
|
1458
|
+
return { isToken: !0, value: d };
|
|
1459
|
+
if (l.match(Xr))
|
|
1459
1460
|
throw new RangeError(
|
|
1460
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1461
|
+
"Format string contains an unescaped latin alphabet character `" + l + "`"
|
|
1461
1462
|
);
|
|
1462
|
-
return { isToken: !1, value:
|
|
1463
|
+
return { isToken: !1, value: d };
|
|
1463
1464
|
});
|
|
1464
1465
|
o.localize.preprocessor && (c = o.localize.preprocessor(a, c));
|
|
1465
1466
|
const u = {
|
|
@@ -1467,33 +1468,33 @@ function pe(e, t, n) {
|
|
|
1467
1468
|
weekStartsOn: i,
|
|
1468
1469
|
locale: o
|
|
1469
1470
|
};
|
|
1470
|
-
return c.map((
|
|
1471
|
-
if (!
|
|
1472
|
-
const
|
|
1473
|
-
(!n?.useAdditionalWeekYearTokens && qr(
|
|
1474
|
-
const h =
|
|
1475
|
-
return h(a,
|
|
1471
|
+
return c.map((d) => {
|
|
1472
|
+
if (!d.isToken) return d.value;
|
|
1473
|
+
const l = d.value;
|
|
1474
|
+
(!n?.useAdditionalWeekYearTokens && qr(l) || !n?.useAdditionalDayOfYearTokens && Ar(l)) && zr(l, t, String(e));
|
|
1475
|
+
const h = mt[l[0]];
|
|
1476
|
+
return h(a, l, o.localize, u);
|
|
1476
1477
|
}).join("");
|
|
1477
1478
|
}
|
|
1478
|
-
function
|
|
1479
|
-
const t = e.match(
|
|
1479
|
+
function Ur(e) {
|
|
1480
|
+
const t = e.match($r);
|
|
1480
1481
|
return t ? t[1].replace(Qr, "'") : e;
|
|
1481
1482
|
}
|
|
1482
1483
|
function Vr(e, t) {
|
|
1483
|
-
const n =
|
|
1484
|
+
const n = P(e, t?.in), r = n.getFullYear(), o = n.getMonth(), s = I(n, 0);
|
|
1484
1485
|
return s.setFullYear(r, o + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
1485
1486
|
}
|
|
1486
1487
|
function Zr(e, t) {
|
|
1487
|
-
return
|
|
1488
|
+
return P(e, t?.in).getMonth();
|
|
1488
1489
|
}
|
|
1489
1490
|
function Kr(e, t) {
|
|
1490
|
-
return
|
|
1491
|
+
return P(e, t?.in).getFullYear();
|
|
1491
1492
|
}
|
|
1492
1493
|
function Jr(e, t) {
|
|
1493
|
-
return +
|
|
1494
|
+
return +P(e) > +P(t);
|
|
1494
1495
|
}
|
|
1495
1496
|
function Lr(e, t) {
|
|
1496
|
-
return +
|
|
1497
|
+
return +P(e) < +P(t);
|
|
1497
1498
|
}
|
|
1498
1499
|
function eo(e, t, n) {
|
|
1499
1500
|
const [r, o] = me(
|
|
@@ -1512,19 +1513,19 @@ function to(e, t, n) {
|
|
|
1512
1513
|
return r.getFullYear() === o.getFullYear();
|
|
1513
1514
|
}
|
|
1514
1515
|
function no(e, t, n) {
|
|
1515
|
-
const r =
|
|
1516
|
+
const r = P(e, n?.in), o = r.getFullYear(), s = r.getDate(), i = I(e, 0);
|
|
1516
1517
|
i.setFullYear(o, t, 15), i.setHours(0, 0, 0, 0);
|
|
1517
1518
|
const a = Vr(i);
|
|
1518
1519
|
return r.setMonth(t, Math.min(s, a)), r;
|
|
1519
1520
|
}
|
|
1520
1521
|
function ro(e, t, n) {
|
|
1521
|
-
const r =
|
|
1522
|
+
const r = P(e, n?.in);
|
|
1522
1523
|
return isNaN(+r) ? I(e, NaN) : (r.setFullYear(t), r);
|
|
1523
1524
|
}
|
|
1524
|
-
const
|
|
1525
|
+
const wt = 5, oo = 4;
|
|
1525
1526
|
function ao(e, t) {
|
|
1526
|
-
const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, o = t.addDays(e, -r + 1), s = t.addDays(o,
|
|
1527
|
-
return t.getMonth(e) === t.getMonth(s) ?
|
|
1527
|
+
const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, o = t.addDays(e, -r + 1), s = t.addDays(o, wt * 7 - 1);
|
|
1528
|
+
return t.getMonth(e) === t.getMonth(s) ? wt : oo;
|
|
1528
1529
|
}
|
|
1529
1530
|
function Ft(e, t) {
|
|
1530
1531
|
const n = t.startOfMonth(e), r = n.getDay();
|
|
@@ -1539,7 +1540,7 @@ const Bt = {
|
|
|
1539
1540
|
labels: {
|
|
1540
1541
|
labelDayButton: (e, t, n, r) => {
|
|
1541
1542
|
let o;
|
|
1542
|
-
r && typeof r.format == "function" ? o = r.format.bind(r) : o = (i, a) =>
|
|
1543
|
+
r && typeof r.format == "function" ? o = r.format.bind(r) : o = (i, a) => we(i, a, { locale: fe, ...n });
|
|
1543
1544
|
let s = o(e, "PPPP");
|
|
1544
1545
|
return t.today && (s = `Today, ${s}`), t.selected && (s = `${s}, selected`), s;
|
|
1545
1546
|
},
|
|
@@ -1550,11 +1551,11 @@ const Bt = {
|
|
|
1550
1551
|
labelYearDropdown: "Choose the Year",
|
|
1551
1552
|
labelGrid: (e, t, n) => {
|
|
1552
1553
|
let r;
|
|
1553
|
-
return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (o, s) =>
|
|
1554
|
+
return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (o, s) => we(o, s, { locale: fe, ...t }), r(e, "LLLL yyyy");
|
|
1554
1555
|
},
|
|
1555
1556
|
labelGridcell: (e, t, n, r) => {
|
|
1556
1557
|
let o;
|
|
1557
|
-
r && typeof r.format == "function" ? o = r.format.bind(r) : o = (i, a) =>
|
|
1558
|
+
r && typeof r.format == "function" ? o = r.format.bind(r) : o = (i, a) => we(i, a, { locale: fe, ...n });
|
|
1558
1559
|
let s = o(e, "PPPP");
|
|
1559
1560
|
return t?.today && (s = `Today, ${s}`), s;
|
|
1560
1561
|
},
|
|
@@ -1562,7 +1563,7 @@ const Bt = {
|
|
|
1562
1563
|
labelWeekNumberHeader: "Week Number",
|
|
1563
1564
|
labelWeekday: (e, t, n) => {
|
|
1564
1565
|
let r;
|
|
1565
|
-
return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (o, s) =>
|
|
1566
|
+
return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (o, s) => we(o, s, { locale: fe, ...t }), r(e, "cccc");
|
|
1566
1567
|
}
|
|
1567
1568
|
}
|
|
1568
1569
|
};
|
|
@@ -1582,10 +1583,10 @@ class j {
|
|
|
1582
1583
|
return s.forEach((a) => {
|
|
1583
1584
|
i.push(new Date(a, 0, 1));
|
|
1584
1585
|
}), i;
|
|
1585
|
-
}, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : so(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Ln(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) :
|
|
1586
|
-
const i = this.overrides?.format ? this.overrides.format(r, o, this.options) :
|
|
1586
|
+
}, this.endOfBroadcastWeek = (r) => this.overrides?.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : so(r, this), this.endOfISOWeek = (r) => this.overrides?.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Ln(r), this.endOfMonth = (r) => this.overrides?.endOfMonth ? this.overrides.endOfMonth(r) : Un(r), this.endOfWeek = (r, o) => this.overrides?.endOfWeek ? this.overrides.endOfWeek(r, o) : _t(r, this.options), this.endOfYear = (r) => this.overrides?.endOfYear ? this.overrides.endOfYear(r) : Kn(r), this.format = (r, o, s) => {
|
|
1587
|
+
const i = this.overrides?.format ? this.overrides.format(r, o, this.options) : we(r, o, this.options);
|
|
1587
1588
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(i) : i;
|
|
1588
|
-
}, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) :
|
|
1589
|
+
}, this.getISOWeek = (r) => this.overrides?.getISOWeek ? this.overrides.getISOWeek(r) : Ve(r), this.getMonth = (r, o) => this.overrides?.getMonth ? this.overrides.getMonth(r, this.options) : Zr(r, this.options), this.getYear = (r, o) => this.overrides?.getYear ? this.overrides.getYear(r, this.options) : Kr(r, this.options), this.getWeek = (r, o) => this.overrides?.getWeek ? this.overrides.getWeek(r, this.options) : Ze(r, this.options), this.isAfter = (r, o) => this.overrides?.isAfter ? this.overrides.isAfter(r, o) : Jr(r, o), this.isBefore = (r, o) => this.overrides?.isBefore ? this.overrides.isBefore(r, o) : Lr(r, o), this.isDate = (r) => this.overrides?.isDate ? this.overrides.isDate(r) : Nt(r), this.isSameDay = (r, o) => this.overrides?.isSameDay ? this.overrides.isSameDay(r, o) : Qn(r, o), this.isSameMonth = (r, o) => this.overrides?.isSameMonth ? this.overrides.isSameMonth(r, o) : eo(r, o), this.isSameYear = (r, o) => this.overrides?.isSameYear ? this.overrides.isSameYear(r, o) : to(r, o), this.max = (r) => this.overrides?.max ? this.overrides.max(r) : Rn(r), this.min = (r) => this.overrides?.min ? this.overrides.min(r) : $n(r), this.setMonth = (r, o) => this.overrides?.setMonth ? this.overrides.setMonth(r, o) : no(r, o), this.setYear = (r, o) => this.overrides?.setYear ? this.overrides.setYear(r, o) : ro(r, o), this.startOfBroadcastWeek = (r, o) => this.overrides?.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : Ft(r, this), this.startOfDay = (r) => this.overrides?.startOfDay ? this.overrides.startOfDay(r) : Me(r), this.startOfISOWeek = (r) => this.overrides?.startOfISOWeek ? this.overrides.startOfISOWeek(r) : pe(r), this.startOfMonth = (r) => this.overrides?.startOfMonth ? this.overrides.startOfMonth(r) : Zn(r), this.startOfWeek = (r, o) => this.overrides?.startOfWeek ? this.overrides.startOfWeek(r, this.options) : he(r, this.options), this.startOfYear = (r) => this.overrides?.startOfYear ? this.overrides.startOfYear(r) : Tt(r), this.options = { locale: Bt, ...t }, this.overrides = n;
|
|
1589
1590
|
}
|
|
1590
1591
|
/**
|
|
1591
1592
|
* Generates a mapping of Arabic digits (0-9) to the target numbering system
|
|
@@ -1748,7 +1749,7 @@ function yo(e) {
|
|
|
1748
1749
|
return f.createElement(
|
|
1749
1750
|
"span",
|
|
1750
1751
|
{ "data-disabled": s.disabled, className: o[y.DropdownRoot] },
|
|
1751
|
-
f.createElement(r.Select, { className: i, ...s }, t?.map(({ value: c, label: u, disabled:
|
|
1752
|
+
f.createElement(r.Select, { className: i, ...s }, t?.map(({ value: c, label: u, disabled: d }) => f.createElement(r.Option, { key: c, value: c, disabled: d }, u))),
|
|
1752
1753
|
f.createElement(
|
|
1753
1754
|
"span",
|
|
1754
1755
|
{ className: o[y.CaptionLabel], "aria-hidden": !0 },
|
|
@@ -1763,11 +1764,11 @@ function go(e) {
|
|
|
1763
1764
|
function bo(e) {
|
|
1764
1765
|
return f.createElement("div", { ...e });
|
|
1765
1766
|
}
|
|
1766
|
-
function
|
|
1767
|
+
function wo(e) {
|
|
1767
1768
|
const { calendarMonth: t, displayIndex: n, ...r } = e;
|
|
1768
1769
|
return f.createElement("div", { ...r }, e.children);
|
|
1769
1770
|
}
|
|
1770
|
-
function
|
|
1771
|
+
function po(e) {
|
|
1771
1772
|
const { calendarMonth: t, displayIndex: n, ...r } = e;
|
|
1772
1773
|
return f.createElement("div", { ...r });
|
|
1773
1774
|
}
|
|
@@ -1777,21 +1778,21 @@ function Mo(e) {
|
|
|
1777
1778
|
function ko(e) {
|
|
1778
1779
|
return f.createElement("div", { ...e });
|
|
1779
1780
|
}
|
|
1780
|
-
const Ht =
|
|
1781
|
-
function
|
|
1782
|
-
const e =
|
|
1781
|
+
const Ht = Yn(void 0);
|
|
1782
|
+
function De() {
|
|
1783
|
+
const e = Tn(Ht);
|
|
1783
1784
|
if (e === void 0)
|
|
1784
1785
|
throw new Error("useDayPicker() must be used within a custom component.");
|
|
1785
1786
|
return e;
|
|
1786
1787
|
}
|
|
1787
1788
|
function Do(e) {
|
|
1788
|
-
const { components: t } =
|
|
1789
|
+
const { components: t } = De();
|
|
1789
1790
|
return f.createElement(t.Dropdown, { ...e });
|
|
1790
1791
|
}
|
|
1791
1792
|
function vo(e) {
|
|
1792
|
-
const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: o, ...s } = e, { components: i, classNames: a, labels: { labelPrevious: c, labelNext: u } } =
|
|
1793
|
+
const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: o, ...s } = e, { components: i, classNames: a, labels: { labelPrevious: c, labelNext: u } } = De(), d = R((h) => {
|
|
1793
1794
|
o && n?.(h);
|
|
1794
|
-
}, [o, n]),
|
|
1795
|
+
}, [o, n]), l = R((h) => {
|
|
1795
1796
|
r && t?.(h);
|
|
1796
1797
|
}, [r, t]);
|
|
1797
1798
|
return f.createElement(
|
|
@@ -1799,25 +1800,25 @@ function vo(e) {
|
|
|
1799
1800
|
{ ...s },
|
|
1800
1801
|
f.createElement(
|
|
1801
1802
|
i.PreviousMonthButton,
|
|
1802
|
-
{ type: "button", className: a[y.PreviousMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": c(r), onClick:
|
|
1803
|
+
{ type: "button", className: a[y.PreviousMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": c(r), onClick: l },
|
|
1803
1804
|
f.createElement(i.Chevron, { disabled: r ? void 0 : !0, className: a[y.Chevron], orientation: "left" })
|
|
1804
1805
|
),
|
|
1805
1806
|
f.createElement(
|
|
1806
1807
|
i.NextMonthButton,
|
|
1807
|
-
{ type: "button", className: a[y.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": u(o), onClick:
|
|
1808
|
+
{ type: "button", className: a[y.NextMonthButton], tabIndex: o ? void 0 : -1, "aria-disabled": o ? void 0 : !0, "aria-label": u(o), onClick: d },
|
|
1808
1809
|
f.createElement(i.Chevron, { disabled: o ? void 0 : !0, orientation: "right", className: a[y.Chevron] })
|
|
1809
1810
|
)
|
|
1810
1811
|
);
|
|
1811
1812
|
}
|
|
1812
1813
|
function Oo(e) {
|
|
1813
|
-
const { components: t } =
|
|
1814
|
+
const { components: t } = De();
|
|
1814
1815
|
return f.createElement(t.Button, { ...e });
|
|
1815
1816
|
}
|
|
1816
1817
|
function Wo(e) {
|
|
1817
1818
|
return f.createElement("option", { ...e });
|
|
1818
1819
|
}
|
|
1819
1820
|
function So(e) {
|
|
1820
|
-
const { components: t } =
|
|
1821
|
+
const { components: t } = De();
|
|
1821
1822
|
return f.createElement(t.Button, { ...e });
|
|
1822
1823
|
}
|
|
1823
1824
|
function Co(e) {
|
|
@@ -1845,14 +1846,14 @@ function _o(e) {
|
|
|
1845
1846
|
const { week: t, ...n } = e;
|
|
1846
1847
|
return f.createElement("th", { ...n });
|
|
1847
1848
|
}
|
|
1848
|
-
function
|
|
1849
|
+
function Po(e) {
|
|
1849
1850
|
return f.createElement("th", { ...e });
|
|
1850
1851
|
}
|
|
1851
|
-
function
|
|
1852
|
+
function Eo(e) {
|
|
1852
1853
|
return f.createElement("tbody", { ...e });
|
|
1853
1854
|
}
|
|
1854
1855
|
function Fo(e) {
|
|
1855
|
-
const { components: t } =
|
|
1856
|
+
const { components: t } = De();
|
|
1856
1857
|
return f.createElement(t.Dropdown, { ...e });
|
|
1857
1858
|
}
|
|
1858
1859
|
const Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1865,8 +1866,8 @@ const Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1865
1866
|
Dropdown: yo,
|
|
1866
1867
|
DropdownNav: go,
|
|
1867
1868
|
Footer: bo,
|
|
1868
|
-
Month:
|
|
1869
|
-
MonthCaption:
|
|
1869
|
+
Month: wo,
|
|
1870
|
+
MonthCaption: po,
|
|
1870
1871
|
MonthGrid: Mo,
|
|
1871
1872
|
Months: ko,
|
|
1872
1873
|
MonthsDropdown: Do,
|
|
@@ -1878,27 +1879,27 @@ const Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1878
1879
|
Select: No,
|
|
1879
1880
|
Week: xo,
|
|
1880
1881
|
WeekNumber: _o,
|
|
1881
|
-
WeekNumberHeader:
|
|
1882
|
+
WeekNumberHeader: Po,
|
|
1882
1883
|
Weekday: Yo,
|
|
1883
1884
|
Weekdays: To,
|
|
1884
|
-
Weeks:
|
|
1885
|
+
Weeks: Eo,
|
|
1885
1886
|
YearsDropdown: Fo
|
|
1886
1887
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1887
|
-
function
|
|
1888
|
+
function ne(e, t, n = !1, r = L) {
|
|
1888
1889
|
let { from: o, to: s } = e;
|
|
1889
1890
|
const { differenceInCalendarDays: i, isSameDay: a } = r;
|
|
1890
1891
|
return o && s ? (i(s, o) < 0 && ([o, s] = [s, o]), i(t, o) >= (n ? 1 : 0) && i(s, t) >= (n ? 1 : 0)) : !n && s ? a(s, t) : !n && o ? a(o, t) : !1;
|
|
1891
1892
|
}
|
|
1892
|
-
function
|
|
1893
|
+
function Ke(e) {
|
|
1893
1894
|
return !!(e && typeof e == "object" && "before" in e && "after" in e);
|
|
1894
1895
|
}
|
|
1895
1896
|
function xe(e) {
|
|
1896
1897
|
return !!(e && typeof e == "object" && "from" in e);
|
|
1897
1898
|
}
|
|
1898
|
-
function
|
|
1899
|
+
function Je(e) {
|
|
1899
1900
|
return !!(e && typeof e == "object" && "after" in e);
|
|
1900
1901
|
}
|
|
1901
|
-
function
|
|
1902
|
+
function Le(e) {
|
|
1902
1903
|
return !!(e && typeof e == "object" && "before" in e);
|
|
1903
1904
|
}
|
|
1904
1905
|
function At(e) {
|
|
@@ -1907,7 +1908,7 @@ function At(e) {
|
|
|
1907
1908
|
function qt(e, t) {
|
|
1908
1909
|
return Array.isArray(e) && e.every(t.isDate);
|
|
1909
1910
|
}
|
|
1910
|
-
function
|
|
1911
|
+
function re(e, t, n = L) {
|
|
1911
1912
|
const r = Array.isArray(t) ? t : [t], { isSameDay: o, differenceInCalendarDays: s, isAfter: i } = n;
|
|
1912
1913
|
return r.some((a) => {
|
|
1913
1914
|
if (typeof a == "boolean")
|
|
@@ -1917,18 +1918,18 @@ function oe(e, t, n = L) {
|
|
|
1917
1918
|
if (qt(a, n))
|
|
1918
1919
|
return a.some((c) => o(e, c));
|
|
1919
1920
|
if (xe(a))
|
|
1920
|
-
return
|
|
1921
|
+
return ne(a, e, !1, n);
|
|
1921
1922
|
if (At(a))
|
|
1922
1923
|
return Array.isArray(a.dayOfWeek) ? a.dayOfWeek.includes(e.getDay()) : a.dayOfWeek === e.getDay();
|
|
1923
|
-
if (
|
|
1924
|
-
const c = s(a.before, e), u = s(a.after, e),
|
|
1925
|
-
return i(a.before, a.after) ?
|
|
1924
|
+
if (Ke(a)) {
|
|
1925
|
+
const c = s(a.before, e), u = s(a.after, e), d = c > 0, l = u < 0;
|
|
1926
|
+
return i(a.before, a.after) ? l && d : d || l;
|
|
1926
1927
|
}
|
|
1927
|
-
return
|
|
1928
|
+
return Je(a) ? s(e, a.after) > 0 : Le(a) ? s(a.before, e) > 0 : typeof a == "function" ? a(e) : !1;
|
|
1928
1929
|
});
|
|
1929
1930
|
}
|
|
1930
1931
|
function Io(e, t, n, r, o) {
|
|
1931
|
-
const { disabled: s, hidden: i, modifiers: a, showOutsideDays: c, broadcastCalendar: u, today:
|
|
1932
|
+
const { disabled: s, hidden: i, modifiers: a, showOutsideDays: c, broadcastCalendar: u, today: d = o.today() } = t, { isSameDay: l, isSameMonth: h, startOfMonth: g, isBefore: O, endOfMonth: C, isAfter: v } = o, T = n && g(n), M = r && C(r), w = {
|
|
1932
1933
|
[F.focused]: [],
|
|
1933
1934
|
[F.outside]: [],
|
|
1934
1935
|
[F.disabled]: [],
|
|
@@ -1936,11 +1937,11 @@ function Io(e, t, n, r, o) {
|
|
|
1936
1937
|
[F.today]: []
|
|
1937
1938
|
}, k = {};
|
|
1938
1939
|
for (const b of e) {
|
|
1939
|
-
const { date: m, displayMonth: W } = b,
|
|
1940
|
-
!u && !c &&
|
|
1941
|
-
|
|
1940
|
+
const { date: m, displayMonth: W } = b, E = !!(W && !h(m, W)), H = !!(T && O(m, T)), B = !!(M && v(m, M)), Z = !!(s && re(m, s, o)), ae = !!(i && re(m, i, o)) || H || B || // Broadcast calendar will show outside days as default
|
|
1941
|
+
!u && !c && E || u && c === !1 && E, ee = l(m, d);
|
|
1942
|
+
E && w.outside.push(b), Z && w.disabled.push(b), ae && w.hidden.push(b), ee && w.today.push(b), a && Object.keys(a).forEach((G) => {
|
|
1942
1943
|
const ue = a?.[G];
|
|
1943
|
-
ue &&
|
|
1944
|
+
ue && re(m, ue, o) && (k[G] ? k[G].push(b) : k[G] = [b]);
|
|
1944
1945
|
});
|
|
1945
1946
|
}
|
|
1946
1947
|
return (b) => {
|
|
@@ -1951,12 +1952,12 @@ function Io(e, t, n, r, o) {
|
|
|
1951
1952
|
[F.outside]: !1,
|
|
1952
1953
|
[F.today]: !1
|
|
1953
1954
|
}, W = {};
|
|
1954
|
-
for (const
|
|
1955
|
-
const H =
|
|
1956
|
-
m[
|
|
1955
|
+
for (const E in w) {
|
|
1956
|
+
const H = w[E];
|
|
1957
|
+
m[E] = H.some((B) => B === b);
|
|
1957
1958
|
}
|
|
1958
|
-
for (const
|
|
1959
|
-
W[
|
|
1959
|
+
for (const E in k)
|
|
1960
|
+
W[E] = k[E].some((H) => H === b);
|
|
1960
1961
|
return {
|
|
1961
1962
|
...m,
|
|
1962
1963
|
// custom modifiers should override all the previous ones
|
|
@@ -1986,7 +1987,7 @@ function qo(e) {
|
|
|
1986
1987
|
n.startsWith("data-") && (t[n] = r);
|
|
1987
1988
|
}), t;
|
|
1988
1989
|
}
|
|
1989
|
-
function
|
|
1990
|
+
function et() {
|
|
1990
1991
|
const e = {};
|
|
1991
1992
|
for (const t in y)
|
|
1992
1993
|
e[y[t]] = `rdp-${y[t]}`;
|
|
@@ -2008,10 +2009,10 @@ function jo(e, t, n) {
|
|
|
2008
2009
|
function Go(e, t = L) {
|
|
2009
2010
|
return t.format(e, "LLLL");
|
|
2010
2011
|
}
|
|
2011
|
-
function
|
|
2012
|
+
function Ro(e, t, n) {
|
|
2012
2013
|
return (n ?? new j(t)).format(e, "cccccc");
|
|
2013
2014
|
}
|
|
2014
|
-
function
|
|
2015
|
+
function $o(e, t = L) {
|
|
2015
2016
|
return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
|
|
2016
2017
|
}
|
|
2017
2018
|
function Qo() {
|
|
@@ -2020,51 +2021,51 @@ function Qo() {
|
|
|
2020
2021
|
function jt(e, t = L) {
|
|
2021
2022
|
return t.format(e, "yyyy");
|
|
2022
2023
|
}
|
|
2023
|
-
const
|
|
2024
|
+
const Xo = jt, Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2024
2025
|
__proto__: null,
|
|
2025
2026
|
formatCaption: zt,
|
|
2026
2027
|
formatDay: jo,
|
|
2027
2028
|
formatMonthCaption: zo,
|
|
2028
2029
|
formatMonthDropdown: Go,
|
|
2029
|
-
formatWeekNumber:
|
|
2030
|
+
formatWeekNumber: $o,
|
|
2030
2031
|
formatWeekNumberHeader: Qo,
|
|
2031
|
-
formatWeekdayName:
|
|
2032
|
-
formatYearCaption:
|
|
2032
|
+
formatWeekdayName: Ro,
|
|
2033
|
+
formatYearCaption: Xo,
|
|
2033
2034
|
formatYearDropdown: jt
|
|
2034
2035
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2035
2036
|
function Vo(e) {
|
|
2036
2037
|
return e?.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e?.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
|
|
2037
|
-
...
|
|
2038
|
+
...Uo,
|
|
2038
2039
|
...e
|
|
2039
2040
|
};
|
|
2040
2041
|
}
|
|
2041
|
-
function
|
|
2042
|
+
function tt(e, t, n, r) {
|
|
2042
2043
|
let o = (r ?? new j(n)).format(e, "PPPP");
|
|
2043
2044
|
return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
|
|
2044
2045
|
}
|
|
2045
|
-
const Zo =
|
|
2046
|
-
function
|
|
2046
|
+
const Zo = tt;
|
|
2047
|
+
function nt(e, t, n) {
|
|
2047
2048
|
return (n ?? new j(t)).formatMonthYear(e);
|
|
2048
2049
|
}
|
|
2049
|
-
const Ko =
|
|
2050
|
+
const Ko = nt;
|
|
2050
2051
|
function Gt(e, t, n, r) {
|
|
2051
2052
|
let o = (r ?? new j(n)).format(e, "PPPP");
|
|
2052
2053
|
return t?.today && (o = `Today, ${o}`), o;
|
|
2053
2054
|
}
|
|
2054
|
-
function
|
|
2055
|
+
function Rt(e) {
|
|
2055
2056
|
return "Choose the Month";
|
|
2056
2057
|
}
|
|
2057
|
-
function
|
|
2058
|
+
function $t() {
|
|
2058
2059
|
return "";
|
|
2059
2060
|
}
|
|
2060
2061
|
const Jo = "Go to the Next Month";
|
|
2061
2062
|
function Qt(e, t) {
|
|
2062
2063
|
return Jo;
|
|
2063
2064
|
}
|
|
2064
|
-
function
|
|
2065
|
+
function Xt(e) {
|
|
2065
2066
|
return "Go to the Previous Month";
|
|
2066
2067
|
}
|
|
2067
|
-
function
|
|
2068
|
+
function Ut(e, t, n) {
|
|
2068
2069
|
return (n ?? new j(t)).format(e, "cccc");
|
|
2069
2070
|
}
|
|
2070
2071
|
function Vt(e, t) {
|
|
@@ -2080,34 +2081,34 @@ const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2080
2081
|
__proto__: null,
|
|
2081
2082
|
labelCaption: Ko,
|
|
2082
2083
|
labelDay: Zo,
|
|
2083
|
-
labelDayButton:
|
|
2084
|
-
labelGrid:
|
|
2084
|
+
labelDayButton: tt,
|
|
2085
|
+
labelGrid: nt,
|
|
2085
2086
|
labelGridcell: Gt,
|
|
2086
|
-
labelMonthDropdown:
|
|
2087
|
-
labelNav:
|
|
2087
|
+
labelMonthDropdown: Rt,
|
|
2088
|
+
labelNav: $t,
|
|
2088
2089
|
labelNext: Qt,
|
|
2089
|
-
labelPrevious:
|
|
2090
|
+
labelPrevious: Xt,
|
|
2090
2091
|
labelWeekNumber: Vt,
|
|
2091
2092
|
labelWeekNumberHeader: Zt,
|
|
2092
|
-
labelWeekday:
|
|
2093
|
+
labelWeekday: Ut,
|
|
2093
2094
|
labelYearDropdown: Kt
|
|
2094
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2095
|
+
}, Symbol.toStringTag, { value: "Module" })), U = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
|
|
2095
2096
|
function ea(e, t) {
|
|
2096
2097
|
const n = t.locale?.labels ?? {};
|
|
2097
2098
|
return {
|
|
2098
2099
|
...Lo,
|
|
2099
2100
|
...e ?? {},
|
|
2100
|
-
labelDayButton:
|
|
2101
|
-
labelMonthDropdown:
|
|
2102
|
-
labelNext:
|
|
2103
|
-
labelPrevious:
|
|
2104
|
-
labelWeekNumber:
|
|
2105
|
-
labelYearDropdown:
|
|
2106
|
-
labelGrid:
|
|
2107
|
-
labelGridcell:
|
|
2108
|
-
labelNav:
|
|
2109
|
-
labelWeekNumberHeader:
|
|
2110
|
-
labelWeekday:
|
|
2101
|
+
labelDayButton: U(tt, e?.labelDayButton, n.labelDayButton),
|
|
2102
|
+
labelMonthDropdown: U(Rt, e?.labelMonthDropdown, n.labelMonthDropdown),
|
|
2103
|
+
labelNext: U(Qt, e?.labelNext, n.labelNext),
|
|
2104
|
+
labelPrevious: U(Xt, e?.labelPrevious, n.labelPrevious),
|
|
2105
|
+
labelWeekNumber: U(Vt, e?.labelWeekNumber, n.labelWeekNumber),
|
|
2106
|
+
labelYearDropdown: U(Kt, e?.labelYearDropdown, n.labelYearDropdown),
|
|
2107
|
+
labelGrid: U(nt, e?.labelGrid, n.labelGrid),
|
|
2108
|
+
labelGridcell: U(Gt, e?.labelGridcell, n.labelGridcell),
|
|
2109
|
+
labelNav: U($t, e?.labelNav, n.labelNav),
|
|
2110
|
+
labelWeekNumberHeader: U(Zt, e?.labelWeekNumberHeader, n.labelWeekNumberHeader),
|
|
2111
|
+
labelWeekday: U(Ut, e?.labelWeekday, n.labelWeekday)
|
|
2111
2112
|
};
|
|
2112
2113
|
}
|
|
2113
2114
|
function ta(e, t, n, r, o) {
|
|
@@ -2140,8 +2141,8 @@ function ra(e, t, n, r) {
|
|
|
2140
2141
|
function oa(e, t, n, r, o = !1) {
|
|
2141
2142
|
if (!e || !t)
|
|
2142
2143
|
return;
|
|
2143
|
-
const { startOfYear: s, endOfYear: i, eachYearOfInterval: a, getYear: c } = r, u = s(e),
|
|
2144
|
-
return o &&
|
|
2144
|
+
const { startOfYear: s, endOfYear: i, eachYearOfInterval: a, getYear: c } = r, u = s(e), d = i(t), l = a({ start: u, end: d });
|
|
2145
|
+
return o && l.reverse(), l.map((h) => {
|
|
2145
2146
|
const g = n.formatYearDropdown(h, r);
|
|
2146
2147
|
return {
|
|
2147
2148
|
value: c(h),
|
|
@@ -2163,8 +2164,8 @@ function aa(e, t = {}) {
|
|
|
2163
2164
|
newDate: (a, c, u) => new A(a, c, u, 12, 0, 0, e),
|
|
2164
2165
|
startOfDay: (a) => s(a),
|
|
2165
2166
|
startOfWeek: (a, c) => {
|
|
2166
|
-
const u = s(a),
|
|
2167
|
-
return u.setDate(u.getDate() -
|
|
2167
|
+
const u = s(a), d = c?.weekStartsOn ?? o, l = (u.getDay() - d + 7) % 7;
|
|
2168
|
+
return u.setDate(u.getDate() - l), u;
|
|
2168
2169
|
},
|
|
2169
2170
|
startOfISOWeek: (a) => {
|
|
2170
2171
|
const c = s(a), u = (c.getDay() - 1 + 7) % 7;
|
|
@@ -2195,10 +2196,10 @@ function aa(e, t = {}) {
|
|
|
2195
2196
|
return c.setMonth(11, 31), c;
|
|
2196
2197
|
},
|
|
2197
2198
|
eachMonthOfInterval: (a) => {
|
|
2198
|
-
const c = s(a.start), u = s(a.end),
|
|
2199
|
-
for (;
|
|
2200
|
-
|
|
2201
|
-
return
|
|
2199
|
+
const c = s(a.start), u = s(a.end), d = [], l = new A(c.getFullYear(), c.getMonth(), 1, 12, 0, 0, e), h = u.getFullYear() * 12 + u.getMonth();
|
|
2200
|
+
for (; l.getFullYear() * 12 + l.getMonth() <= h; )
|
|
2201
|
+
d.push(new A(l, e)), l.setMonth(l.getMonth() + 1, 1);
|
|
2202
|
+
return d;
|
|
2202
2203
|
},
|
|
2203
2204
|
// Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
|
|
2204
2205
|
// mutate the same TZDate, and return it.
|
|
@@ -2219,86 +2220,86 @@ function aa(e, t = {}) {
|
|
|
2219
2220
|
return u.setFullYear(u.getFullYear() + c), u;
|
|
2220
2221
|
},
|
|
2221
2222
|
eachYearOfInterval: (a) => {
|
|
2222
|
-
const c = s(a.start), u = s(a.end),
|
|
2223
|
-
for (;
|
|
2224
|
-
|
|
2225
|
-
return
|
|
2223
|
+
const c = s(a.start), u = s(a.end), d = [], l = new A(c.getFullYear(), 0, 1, 12, 0, 0, e);
|
|
2224
|
+
for (; l.getFullYear() <= u.getFullYear(); )
|
|
2225
|
+
d.push(new A(l, e)), l.setFullYear(l.getFullYear() + 1, 0, 1);
|
|
2226
|
+
return d;
|
|
2226
2227
|
},
|
|
2227
2228
|
getWeek: (a, c) => {
|
|
2228
2229
|
const u = i(a);
|
|
2229
|
-
return
|
|
2230
|
+
return Ze(u, {
|
|
2230
2231
|
weekStartsOn: c?.weekStartsOn ?? o,
|
|
2231
2232
|
firstWeekContainsDate: c?.firstWeekContainsDate ?? r?.options?.firstWeekContainsDate ?? 1
|
|
2232
2233
|
});
|
|
2233
2234
|
},
|
|
2234
2235
|
getISOWeek: (a) => {
|
|
2235
2236
|
const c = i(a);
|
|
2236
|
-
return
|
|
2237
|
+
return Ve(c);
|
|
2237
2238
|
},
|
|
2238
2239
|
differenceInCalendarDays: (a, c) => {
|
|
2239
|
-
const u = i(a),
|
|
2240
|
-
return Ue(u,
|
|
2240
|
+
const u = i(a), d = i(c);
|
|
2241
|
+
return Ue(u, d);
|
|
2241
2242
|
},
|
|
2242
2243
|
differenceInCalendarMonths: (a, c) => {
|
|
2243
|
-
const u = i(a),
|
|
2244
|
-
return xt(u,
|
|
2244
|
+
const u = i(a), d = i(c);
|
|
2245
|
+
return xt(u, d);
|
|
2245
2246
|
}
|
|
2246
2247
|
};
|
|
2247
2248
|
}
|
|
2248
|
-
const
|
|
2249
|
+
const ve = (e) => e instanceof HTMLElement ? e : null, ze = (e) => [
|
|
2249
2250
|
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
2250
|
-
], sa = (e) =>
|
|
2251
|
+
], sa = (e) => ve(e.querySelector("[data-animated-month]")), je = (e) => ve(e.querySelector("[data-animated-caption]")), Ge = (e) => ve(e.querySelector("[data-animated-weeks]")), ia = (e) => ve(e.querySelector("[data-animated-nav]")), ca = (e) => ve(e.querySelector("[data-animated-weekdays]"));
|
|
2251
2252
|
function ua(e, t, { classNames: n, months: r, focused: o, dateLib: s }) {
|
|
2252
|
-
const i =
|
|
2253
|
-
|
|
2253
|
+
const i = Ce(null), a = Ce(r), c = Ce(!1);
|
|
2254
|
+
_n(() => {
|
|
2254
2255
|
const u = a.current;
|
|
2255
2256
|
if (a.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
|
|
2256
2257
|
!(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
2257
2258
|
r.length === 0 || u.length === 0 || r.length !== u.length)
|
|
2258
2259
|
return;
|
|
2259
|
-
const
|
|
2260
|
-
if (C instanceof HTMLElement ? (ze(C).forEach((
|
|
2261
|
-
if (!(
|
|
2260
|
+
const d = s.isSameMonth(r[0].date, u[0].date), l = s.isAfter(r[0].date, u[0].date), h = l ? n[z.caption_after_enter] : n[z.caption_before_enter], g = l ? n[z.weeks_after_enter] : n[z.weeks_before_enter], O = i.current, C = e.current.cloneNode(!0);
|
|
2261
|
+
if (C instanceof HTMLElement ? (ze(C).forEach((w) => {
|
|
2262
|
+
if (!(w instanceof HTMLElement))
|
|
2262
2263
|
return;
|
|
2263
|
-
const k = sa(
|
|
2264
|
-
k &&
|
|
2265
|
-
const b = je(
|
|
2264
|
+
const k = sa(w);
|
|
2265
|
+
k && w.contains(k) && w.removeChild(k);
|
|
2266
|
+
const b = je(w);
|
|
2266
2267
|
b && b.classList.remove(h);
|
|
2267
|
-
const m = Ge(
|
|
2268
|
+
const m = Ge(w);
|
|
2268
2269
|
m && m.classList.remove(g);
|
|
2269
|
-
}), i.current = C) : i.current = null, c.current ||
|
|
2270
|
+
}), i.current = C) : i.current = null, c.current || d || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
2270
2271
|
o)
|
|
2271
2272
|
return;
|
|
2272
2273
|
const v = O instanceof HTMLElement ? ze(O) : [], T = ze(e.current);
|
|
2273
2274
|
if (T?.every((M) => M instanceof HTMLElement) && v && v.every((M) => M instanceof HTMLElement)) {
|
|
2274
2275
|
c.current = !0, e.current.style.isolation = "isolate";
|
|
2275
2276
|
const M = ia(e.current);
|
|
2276
|
-
M && (M.style.zIndex = "1"), T.forEach((
|
|
2277
|
+
M && (M.style.zIndex = "1"), T.forEach((w, k) => {
|
|
2277
2278
|
const b = v[k];
|
|
2278
2279
|
if (!b)
|
|
2279
2280
|
return;
|
|
2280
|
-
|
|
2281
|
-
const m = je(
|
|
2281
|
+
w.style.position = "relative", w.style.overflow = "hidden";
|
|
2282
|
+
const m = je(w);
|
|
2282
2283
|
m && m.classList.add(h);
|
|
2283
|
-
const W = Ge(
|
|
2284
|
+
const W = Ge(w);
|
|
2284
2285
|
W && W.classList.add(g);
|
|
2285
|
-
const
|
|
2286
|
-
c.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), m && m.classList.remove(h), W && W.classList.remove(g),
|
|
2286
|
+
const E = () => {
|
|
2287
|
+
c.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), m && m.classList.remove(h), W && W.classList.remove(g), w.style.position = "", w.style.overflow = "", w.contains(b) && w.removeChild(b);
|
|
2287
2288
|
};
|
|
2288
2289
|
b.style.pointerEvents = "none", b.style.position = "absolute", b.style.overflow = "hidden", b.setAttribute("aria-hidden", "true");
|
|
2289
2290
|
const H = ca(b);
|
|
2290
2291
|
H && (H.style.opacity = "0");
|
|
2291
2292
|
const B = je(b);
|
|
2292
|
-
B && (B.classList.add(
|
|
2293
|
+
B && (B.classList.add(l ? n[z.caption_before_exit] : n[z.caption_after_exit]), B.addEventListener("animationend", E));
|
|
2293
2294
|
const Z = Ge(b);
|
|
2294
|
-
Z && Z.classList.add(
|
|
2295
|
+
Z && Z.classList.add(l ? n[z.weeks_before_exit] : n[z.weeks_after_exit]), w.insertBefore(b, w.firstChild);
|
|
2295
2296
|
});
|
|
2296
2297
|
}
|
|
2297
2298
|
});
|
|
2298
2299
|
}
|
|
2299
|
-
function
|
|
2300
|
-
const o = e[0], s = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays:
|
|
2301
|
-
for (let ee = 0; ee <=
|
|
2300
|
+
function la(e, t, n, r) {
|
|
2301
|
+
const o = e[0], s = e[e.length - 1], { ISOWeek: i, fixedWeeks: a, broadcastCalendar: c } = n ?? {}, { addDays: u, differenceInCalendarDays: d, differenceInCalendarMonths: l, endOfBroadcastWeek: h, endOfISOWeek: g, endOfMonth: O, endOfWeek: C, isAfter: v, startOfBroadcastWeek: T, startOfISOWeek: M, startOfWeek: w } = r, k = c ? T(o, r) : i ? M(o) : w(o), b = c ? h(s) : i ? g(O(s)) : C(O(s)), m = t && (c ? h(t) : i ? g(t) : C(t)), W = m && v(b, m) ? m : b, E = d(W, k), H = l(s, o) + 1, B = [];
|
|
2302
|
+
for (let ee = 0; ee <= E; ee++) {
|
|
2302
2303
|
const G = u(k, ee);
|
|
2303
2304
|
B.push(G);
|
|
2304
2305
|
}
|
|
@@ -2312,7 +2313,7 @@ function da(e, t, n, r) {
|
|
|
2312
2313
|
}
|
|
2313
2314
|
return B;
|
|
2314
2315
|
}
|
|
2315
|
-
function
|
|
2316
|
+
function da(e) {
|
|
2316
2317
|
const t = [];
|
|
2317
2318
|
return e.reduce((n, r) => {
|
|
2318
2319
|
const o = r.weeks.reduce((s, i) => s.concat(i.days.slice()), t.slice());
|
|
@@ -2332,25 +2333,25 @@ function fa(e, t, n, r) {
|
|
|
2332
2333
|
function pt(e, t, n, r) {
|
|
2333
2334
|
const { month: o, defaultMonth: s, today: i = r.today(), numberOfMonths: a = 1 } = e;
|
|
2334
2335
|
let c = o || s || i;
|
|
2335
|
-
const { differenceInCalendarMonths: u, addMonths:
|
|
2336
|
+
const { differenceInCalendarMonths: u, addMonths: d, startOfMonth: l } = r;
|
|
2336
2337
|
if (n && u(n, c) < a - 1) {
|
|
2337
2338
|
const h = -1 * (a - 1);
|
|
2338
|
-
c =
|
|
2339
|
+
c = d(n, h);
|
|
2339
2340
|
}
|
|
2340
|
-
return t && u(c, t) < 0 && (c = t),
|
|
2341
|
+
return t && u(c, t) < 0 && (c = t), l(c);
|
|
2341
2342
|
}
|
|
2342
2343
|
function ha(e, t, n, r) {
|
|
2343
|
-
const { addDays: o, endOfBroadcastWeek: s, endOfISOWeek: i, endOfMonth: a, endOfWeek: c, getISOWeek: u, getWeek:
|
|
2344
|
-
const T = n.broadcastCalendar ?
|
|
2345
|
-
if (n.fixedWeeks &&
|
|
2346
|
-
const W = t.filter((
|
|
2347
|
-
const H = k -
|
|
2348
|
-
return
|
|
2344
|
+
const { addDays: o, endOfBroadcastWeek: s, endOfISOWeek: i, endOfMonth: a, endOfWeek: c, getISOWeek: u, getWeek: d, startOfBroadcastWeek: l, startOfISOWeek: h, startOfWeek: g } = r, O = e.reduce((C, v) => {
|
|
2345
|
+
const T = n.broadcastCalendar ? l(v, r) : n.ISOWeek ? h(v) : g(v), M = n.broadcastCalendar ? s(v) : n.ISOWeek ? i(a(v)) : c(a(v)), w = t.filter((W) => W >= T && W <= M), k = n.broadcastCalendar ? 35 : 42;
|
|
2346
|
+
if (n.fixedWeeks && w.length < k) {
|
|
2347
|
+
const W = t.filter((E) => {
|
|
2348
|
+
const H = k - w.length;
|
|
2349
|
+
return E > M && E <= o(M, H);
|
|
2349
2350
|
});
|
|
2350
|
-
|
|
2351
|
+
w.push(...W);
|
|
2351
2352
|
}
|
|
2352
|
-
const b =
|
|
2353
|
-
const H = n.ISOWeek ? u(
|
|
2353
|
+
const b = w.reduce((W, E) => {
|
|
2354
|
+
const H = n.ISOWeek ? u(E) : d(E), B = W.find((ae) => ae.weekNumber === H), Z = new It(E, v, r);
|
|
2354
2355
|
return B ? B.days.push(Z) : W.push(new co(H, [Z])), W;
|
|
2355
2356
|
}, []), m = new io(v, b);
|
|
2356
2357
|
return C.push(m), C;
|
|
@@ -2359,10 +2360,10 @@ function ha(e, t, n, r) {
|
|
|
2359
2360
|
}
|
|
2360
2361
|
function ma(e, t) {
|
|
2361
2362
|
let { startMonth: n, endMonth: r } = e;
|
|
2362
|
-
const { startOfYear: o, startOfDay: s, startOfMonth: i, endOfMonth: a, addYears: c, endOfYear: u, newDate:
|
|
2363
|
-
!n && O && (n = O), !n && h && (n = t.newDate(h, 0, 1)), !r && C && (r = C), !r && g && (r =
|
|
2363
|
+
const { startOfYear: o, startOfDay: s, startOfMonth: i, endOfMonth: a, addYears: c, endOfYear: u, newDate: d, today: l } = t, { fromYear: h, toYear: g, fromMonth: O, toMonth: C } = e;
|
|
2364
|
+
!n && O && (n = O), !n && h && (n = t.newDate(h, 0, 1)), !r && C && (r = C), !r && g && (r = d(g, 11, 31));
|
|
2364
2365
|
const v = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
|
|
2365
|
-
return n ? n = i(n) : h ? n =
|
|
2366
|
+
return n ? n = i(n) : h ? n = d(h, 0, 1) : !n && v && (n = o(c(e.today ?? l(), -100))), r ? r = a(r) : g ? r = d(g, 11, 31) : !r && v && (r = u(e.today ?? l())), [
|
|
2366
2367
|
n && s(n),
|
|
2367
2368
|
r && s(r)
|
|
2368
2369
|
];
|
|
@@ -2370,41 +2371,41 @@ function ma(e, t) {
|
|
|
2370
2371
|
function ya(e, t, n, r) {
|
|
2371
2372
|
if (n.disableNavigation)
|
|
2372
2373
|
return;
|
|
2373
|
-
const { pagedNavigation: o, numberOfMonths: s = 1 } = n, { startOfMonth: i, addMonths: a, differenceInCalendarMonths: c } = r, u = o ? s : 1,
|
|
2374
|
+
const { pagedNavigation: o, numberOfMonths: s = 1 } = n, { startOfMonth: i, addMonths: a, differenceInCalendarMonths: c } = r, u = o ? s : 1, d = i(e);
|
|
2374
2375
|
if (!t)
|
|
2375
|
-
return a(
|
|
2376
|
+
return a(d, u);
|
|
2376
2377
|
if (!(c(t, e) < s))
|
|
2377
|
-
return a(
|
|
2378
|
+
return a(d, u);
|
|
2378
2379
|
}
|
|
2379
2380
|
function ga(e, t, n, r) {
|
|
2380
2381
|
if (n.disableNavigation)
|
|
2381
2382
|
return;
|
|
2382
|
-
const { pagedNavigation: o, numberOfMonths: s } = n, { startOfMonth: i, addMonths: a, differenceInCalendarMonths: c } = r, u = o ? s ?? 1 : 1,
|
|
2383
|
+
const { pagedNavigation: o, numberOfMonths: s } = n, { startOfMonth: i, addMonths: a, differenceInCalendarMonths: c } = r, u = o ? s ?? 1 : 1, d = i(e);
|
|
2383
2384
|
if (!t)
|
|
2384
|
-
return a(
|
|
2385
|
-
if (!(c(
|
|
2386
|
-
return a(
|
|
2385
|
+
return a(d, -u);
|
|
2386
|
+
if (!(c(d, t) <= 0))
|
|
2387
|
+
return a(d, -u);
|
|
2387
2388
|
}
|
|
2388
2389
|
function ba(e) {
|
|
2389
2390
|
const t = [];
|
|
2390
2391
|
return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
|
|
2391
2392
|
}
|
|
2392
2393
|
function Ye(e, t) {
|
|
2393
|
-
const [n, r] =
|
|
2394
|
+
const [n, r] = Qe(e);
|
|
2394
2395
|
return [t === void 0 ? n : t, r];
|
|
2395
2396
|
}
|
|
2396
|
-
function
|
|
2397
|
+
function wa(e, t) {
|
|
2397
2398
|
const [n, r] = ma(e, t), { startOfMonth: o, endOfMonth: s } = t, i = pt(e, n, r, t), [a, c] = Ye(
|
|
2398
2399
|
i,
|
|
2399
2400
|
// initialMonth is always computed from props.month if provided
|
|
2400
2401
|
e.month ? i : void 0
|
|
2401
2402
|
);
|
|
2402
|
-
|
|
2403
|
+
Pn(() => {
|
|
2403
2404
|
const k = pt(e, n, r, t);
|
|
2404
2405
|
c(k);
|
|
2405
2406
|
}, [e.timeZone]);
|
|
2406
|
-
const { months: u, weeks:
|
|
2407
|
-
const k = fa(a, r, { numberOfMonths: e.numberOfMonths }, t), b =
|
|
2407
|
+
const { months: u, weeks: d, days: l, previousMonth: h, nextMonth: g } = Ne(() => {
|
|
2408
|
+
const k = fa(a, r, { numberOfMonths: e.numberOfMonths }, t), b = la(k, e.endMonth ? s(e.endMonth) : void 0, {
|
|
2408
2409
|
ISOWeek: e.ISOWeek,
|
|
2409
2410
|
fixedWeeks: e.fixedWeeks,
|
|
2410
2411
|
broadcastCalendar: e.broadcastCalendar
|
|
@@ -2413,11 +2414,11 @@ function pa(e, t) {
|
|
|
2413
2414
|
fixedWeeks: e.fixedWeeks,
|
|
2414
2415
|
ISOWeek: e.ISOWeek,
|
|
2415
2416
|
reverseMonths: e.reverseMonths
|
|
2416
|
-
}, t), W = ba(m),
|
|
2417
|
+
}, t), W = ba(m), E = da(m), H = ga(a, n, e, t), B = ya(a, r, e, t);
|
|
2417
2418
|
return {
|
|
2418
2419
|
months: m,
|
|
2419
2420
|
weeks: W,
|
|
2420
|
-
days:
|
|
2421
|
+
days: E,
|
|
2421
2422
|
previousMonth: H,
|
|
2422
2423
|
nextMonth: B
|
|
2423
2424
|
};
|
|
@@ -2434,7 +2435,7 @@ function pa(e, t) {
|
|
|
2434
2435
|
e.numberOfMonths,
|
|
2435
2436
|
e.pagedNavigation,
|
|
2436
2437
|
e.reverseMonths
|
|
2437
|
-
]), { disableNavigation: O, onMonthChange: C } = e, v = (k) =>
|
|
2438
|
+
]), { disableNavigation: O, onMonthChange: C } = e, v = (k) => d.some((b) => b.days.some((m) => m.isEqualTo(k))), T = (k) => {
|
|
2438
2439
|
if (O)
|
|
2439
2440
|
return;
|
|
2440
2441
|
let b = o(k);
|
|
@@ -2442,8 +2443,8 @@ function pa(e, t) {
|
|
|
2442
2443
|
};
|
|
2443
2444
|
return {
|
|
2444
2445
|
months: u,
|
|
2445
|
-
weeks:
|
|
2446
|
-
days:
|
|
2446
|
+
weeks: d,
|
|
2447
|
+
days: l,
|
|
2447
2448
|
navStart: n,
|
|
2448
2449
|
navEnd: r,
|
|
2449
2450
|
previousMonth: h,
|
|
@@ -2458,25 +2459,25 @@ var K;
|
|
|
2458
2459
|
(function(e) {
|
|
2459
2460
|
e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
|
|
2460
2461
|
})(K || (K = {}));
|
|
2461
|
-
function
|
|
2462
|
+
function Mt(e) {
|
|
2462
2463
|
return !e[F.disabled] && !e[F.hidden] && !e[F.outside];
|
|
2463
2464
|
}
|
|
2464
|
-
function
|
|
2465
|
+
function pa(e, t, n, r) {
|
|
2465
2466
|
let o, s = -1;
|
|
2466
2467
|
for (const i of e) {
|
|
2467
2468
|
const a = t(i);
|
|
2468
|
-
|
|
2469
|
+
Mt(a) && (a[F.focused] && s < K.FocusedModifier ? (o = i, s = K.FocusedModifier) : r?.isEqualTo(i) && s < K.LastFocused ? (o = i, s = K.LastFocused) : n(i.date) && s < K.Selected ? (o = i, s = K.Selected) : a[F.today] && s < K.Today && (o = i, s = K.Today));
|
|
2469
2470
|
}
|
|
2470
|
-
return o || (o = e.find((i) =>
|
|
2471
|
+
return o || (o = e.find((i) => Mt(t(i)))), o;
|
|
2471
2472
|
}
|
|
2472
2473
|
function Ma(e, t, n, r, o, s, i) {
|
|
2473
|
-
const { ISOWeek: a, broadcastCalendar: c } = s, { addDays: u, addMonths:
|
|
2474
|
+
const { ISOWeek: a, broadcastCalendar: c } = s, { addDays: u, addMonths: d, addWeeks: l, addYears: h, endOfBroadcastWeek: g, endOfISOWeek: O, endOfWeek: C, max: v, min: T, startOfBroadcastWeek: M, startOfISOWeek: w, startOfWeek: k } = i;
|
|
2474
2475
|
let m = {
|
|
2475
2476
|
day: u,
|
|
2476
|
-
week:
|
|
2477
|
-
month:
|
|
2477
|
+
week: l,
|
|
2478
|
+
month: d,
|
|
2478
2479
|
year: h,
|
|
2479
|
-
startOfWeek: (W) => c ? M(W, i) : a ?
|
|
2480
|
+
startOfWeek: (W) => c ? M(W, i) : a ? w(W) : k(W),
|
|
2480
2481
|
endOfWeek: (W) => c ? g(W) : a ? O(W) : C(W)
|
|
2481
2482
|
}[e](n, t === "after" ? 1 : -1);
|
|
2482
2483
|
return t === "before" && r ? m = v([r, m]) : t === "after" && o && (m = T([o, m])), m;
|
|
@@ -2484,70 +2485,70 @@ function Ma(e, t, n, r, o, s, i) {
|
|
|
2484
2485
|
function Jt(e, t, n, r, o, s, i, a = 0) {
|
|
2485
2486
|
if (a > 365)
|
|
2486
2487
|
return;
|
|
2487
|
-
const c = Ma(e, t, n.date, r, o, s, i), u = !!(s.disabled &&
|
|
2488
|
-
return !u && !
|
|
2488
|
+
const c = Ma(e, t, n.date, r, o, s, i), u = !!(s.disabled && re(c, s.disabled, i)), d = !!(s.hidden && re(c, s.hidden, i)), l = c, h = new It(c, l, i);
|
|
2489
|
+
return !u && !d ? h : Jt(e, t, h, r, o, s, i, a + 1);
|
|
2489
2490
|
}
|
|
2490
2491
|
function ka(e, t, n, r, o) {
|
|
2491
|
-
const { autoFocus: s } = e, [i, a] =
|
|
2492
|
+
const { autoFocus: s } = e, [i, a] = Qe(), c = pa(t.days, n, r || (() => !1), i), [u, d] = Qe(s ? c : void 0);
|
|
2492
2493
|
return {
|
|
2493
2494
|
isFocusTarget: (C) => !!c?.isEqualTo(C),
|
|
2494
|
-
setFocused:
|
|
2495
|
+
setFocused: d,
|
|
2495
2496
|
focused: u,
|
|
2496
2497
|
blur: () => {
|
|
2497
|
-
a(u),
|
|
2498
|
+
a(u), d(void 0);
|
|
2498
2499
|
},
|
|
2499
2500
|
moveFocus: (C, v) => {
|
|
2500
2501
|
if (!u)
|
|
2501
2502
|
return;
|
|
2502
2503
|
const T = Jt(C, v, u, t.navStart, t.navEnd, e, o);
|
|
2503
|
-
T && (e.disableNavigation && !t.days.some((
|
|
2504
|
+
T && (e.disableNavigation && !t.days.some((w) => w.isEqualTo(T)) || (t.goToDay(T), d(T)));
|
|
2504
2505
|
}
|
|
2505
2506
|
};
|
|
2506
2507
|
}
|
|
2507
2508
|
function Da(e, t) {
|
|
2508
|
-
const { selected: n, required: r, onSelect: o } = e, [s, i] = Ye(n, o ? n : void 0), a = o ? n : s, { isSameDay: c } = t, u = (g) => a?.some((O) => c(O, g)) ?? !1, { min:
|
|
2509
|
+
const { selected: n, required: r, onSelect: o } = e, [s, i] = Ye(n, o ? n : void 0), a = o ? n : s, { isSameDay: c } = t, u = (g) => a?.some((O) => c(O, g)) ?? !1, { min: d, max: l } = e;
|
|
2509
2510
|
return {
|
|
2510
2511
|
selected: a,
|
|
2511
2512
|
select: (g, O, C) => {
|
|
2512
2513
|
let v = [...a ?? []];
|
|
2513
2514
|
if (u(g)) {
|
|
2514
|
-
if (a?.length ===
|
|
2515
|
+
if (a?.length === d || r && a?.length === 1)
|
|
2515
2516
|
return;
|
|
2516
2517
|
v = a?.filter((T) => !c(T, g));
|
|
2517
2518
|
} else
|
|
2518
|
-
a?.length ===
|
|
2519
|
+
a?.length === l ? v = [g] : v = [...v, g];
|
|
2519
2520
|
return o || i(v), o?.(v, g, O, C), v;
|
|
2520
2521
|
},
|
|
2521
2522
|
isSelected: u
|
|
2522
2523
|
};
|
|
2523
2524
|
}
|
|
2524
2525
|
function va(e, t, n = 0, r = 0, o = !1, s = L) {
|
|
2525
|
-
const { from: i, to: a } = t || {}, { isSameDay: c, isAfter: u, isBefore:
|
|
2526
|
-
let
|
|
2526
|
+
const { from: i, to: a } = t || {}, { isSameDay: c, isAfter: u, isBefore: d } = s;
|
|
2527
|
+
let l;
|
|
2527
2528
|
if (!i && !a)
|
|
2528
|
-
|
|
2529
|
+
l = { from: e, to: n > 0 ? void 0 : e };
|
|
2529
2530
|
else if (i && !a)
|
|
2530
|
-
c(i, e) ? n === 0 ?
|
|
2531
|
+
c(i, e) ? n === 0 ? l = { from: i, to: e } : o ? l = { from: i, to: void 0 } : l = void 0 : d(e, i) ? l = { from: e, to: i } : l = { from: i, to: e };
|
|
2531
2532
|
else if (i && a)
|
|
2532
2533
|
if (c(i, e) && c(a, e))
|
|
2533
|
-
o ?
|
|
2534
|
+
o ? l = { from: i, to: a } : l = void 0;
|
|
2534
2535
|
else if (c(i, e))
|
|
2535
|
-
|
|
2536
|
+
l = { from: i, to: n > 0 ? void 0 : e };
|
|
2536
2537
|
else if (c(a, e))
|
|
2537
|
-
|
|
2538
|
-
else if (
|
|
2539
|
-
|
|
2538
|
+
l = { from: e, to: n > 0 ? void 0 : e };
|
|
2539
|
+
else if (d(e, i))
|
|
2540
|
+
l = { from: e, to: a };
|
|
2540
2541
|
else if (u(e, i))
|
|
2541
|
-
|
|
2542
|
+
l = { from: i, to: e };
|
|
2542
2543
|
else if (u(e, a))
|
|
2543
|
-
|
|
2544
|
+
l = { from: i, to: e };
|
|
2544
2545
|
else
|
|
2545
2546
|
throw new Error("Invalid range");
|
|
2546
|
-
if (
|
|
2547
|
-
const h = s.differenceInCalendarDays(
|
|
2548
|
-
r > 0 && h > r ?
|
|
2547
|
+
if (l?.from && l?.to) {
|
|
2548
|
+
const h = s.differenceInCalendarDays(l.to, l.from);
|
|
2549
|
+
r > 0 && h > r ? l = { from: e, to: void 0 } : n > 1 && h < n && (l = { from: e, to: void 0 });
|
|
2549
2550
|
}
|
|
2550
|
-
return
|
|
2551
|
+
return l;
|
|
2551
2552
|
}
|
|
2552
2553
|
function Oa(e, t, n = L) {
|
|
2553
2554
|
const r = Array.isArray(t) ? t : [t];
|
|
@@ -2560,22 +2561,22 @@ function Oa(e, t, n = L) {
|
|
|
2560
2561
|
}
|
|
2561
2562
|
return !1;
|
|
2562
2563
|
}
|
|
2563
|
-
function
|
|
2564
|
-
return
|
|
2564
|
+
function kt(e, t, n = L) {
|
|
2565
|
+
return ne(e, t.from, !1, n) || ne(e, t.to, !1, n) || ne(t, e.from, !1, n) || ne(t, e.to, !1, n);
|
|
2565
2566
|
}
|
|
2566
2567
|
function Wa(e, t, n = L) {
|
|
2567
2568
|
const r = Array.isArray(t) ? t : [t];
|
|
2568
|
-
if (r.filter((a) => typeof a != "function").some((a) => typeof a == "boolean" ? a : n.isDate(a) ?
|
|
2569
|
+
if (r.filter((a) => typeof a != "function").some((a) => typeof a == "boolean" ? a : n.isDate(a) ? ne(e, a, !1, n) : qt(a, n) ? a.some((c) => ne(e, c, !1, n)) : xe(a) ? a.from && a.to ? kt(e, { from: a.from, to: a.to }, n) : !1 : At(a) ? Oa(e, a.dayOfWeek, n) : Ke(a) ? n.isAfter(a.before, a.after) ? kt(e, {
|
|
2569
2570
|
from: n.addDays(a.after, 1),
|
|
2570
2571
|
to: n.addDays(a.before, -1)
|
|
2571
|
-
}, n) :
|
|
2572
|
+
}, n) : re(e.from, a, n) || re(e.to, a, n) : Je(a) || Le(a) ? re(e.from, a, n) || re(e.to, a, n) : !1))
|
|
2572
2573
|
return !0;
|
|
2573
2574
|
const i = r.filter((a) => typeof a == "function");
|
|
2574
2575
|
if (i.length) {
|
|
2575
2576
|
let a = e.from;
|
|
2576
2577
|
const c = n.differenceInCalendarDays(e.to, e.from);
|
|
2577
2578
|
for (let u = 0; u <= c; u++) {
|
|
2578
|
-
if (i.some((
|
|
2579
|
+
if (i.some((d) => d(a)))
|
|
2579
2580
|
return !0;
|
|
2580
2581
|
a = n.addDays(a, 1);
|
|
2581
2582
|
}
|
|
@@ -2583,30 +2584,30 @@ function Wa(e, t, n = L) {
|
|
|
2583
2584
|
return !1;
|
|
2584
2585
|
}
|
|
2585
2586
|
function Sa(e, t) {
|
|
2586
|
-
const { disabled: n, excludeDisabled: r, resetOnSelect: o, selected: s, required: i, onSelect: a } = e, [c, u] = Ye(s, a ? s : void 0),
|
|
2587
|
+
const { disabled: n, excludeDisabled: r, resetOnSelect: o, selected: s, required: i, onSelect: a } = e, [c, u] = Ye(s, a ? s : void 0), d = a ? s : c;
|
|
2587
2588
|
return {
|
|
2588
|
-
selected:
|
|
2589
|
+
selected: d,
|
|
2589
2590
|
select: (g, O, C) => {
|
|
2590
2591
|
const { min: v, max: T } = e;
|
|
2591
2592
|
let M;
|
|
2592
2593
|
if (g) {
|
|
2593
|
-
const
|
|
2594
|
-
o && (b || !
|
|
2594
|
+
const w = d?.from, k = d?.to, b = !!w && !!k, m = !!w && !!k && t.isSameDay(w, k) && t.isSameDay(g, w);
|
|
2595
|
+
o && (b || !d?.from) ? !i && m ? M = void 0 : M = { from: g, to: void 0 } : M = va(g, d, v, T, i, t);
|
|
2595
2596
|
}
|
|
2596
2597
|
return r && n && M?.from && M.to && Wa({ from: M.from, to: M.to }, n, t) && (M.from = g, M.to = void 0), a || u(M), a?.(M, g, O, C), M;
|
|
2597
2598
|
},
|
|
2598
|
-
isSelected: (g) =>
|
|
2599
|
+
isSelected: (g) => d && ne(d, g, !1, t)
|
|
2599
2600
|
};
|
|
2600
2601
|
}
|
|
2601
2602
|
function Ca(e, t) {
|
|
2602
2603
|
const { selected: n, required: r, onSelect: o } = e, [s, i] = Ye(n, o ? n : void 0), a = o ? n : s, { isSameDay: c } = t;
|
|
2603
2604
|
return {
|
|
2604
2605
|
selected: a,
|
|
2605
|
-
select: (
|
|
2606
|
-
let O =
|
|
2607
|
-
return !r && a && a && c(
|
|
2606
|
+
select: (l, h, g) => {
|
|
2607
|
+
let O = l;
|
|
2608
|
+
return !r && a && a && c(l, a) && (O = void 0), o || i(O), o?.(O, l, h, g), O;
|
|
2608
2609
|
},
|
|
2609
|
-
isSelected: (
|
|
2610
|
+
isSelected: (l) => a ? c(a, l) : !1
|
|
2610
2611
|
};
|
|
2611
2612
|
}
|
|
2612
2613
|
function Na(e, t) {
|
|
@@ -2622,28 +2623,28 @@ function Na(e, t) {
|
|
|
2622
2623
|
return;
|
|
2623
2624
|
}
|
|
2624
2625
|
}
|
|
2625
|
-
function
|
|
2626
|
+
function $(e, t) {
|
|
2626
2627
|
return e instanceof A && e.timeZone === t ? e : new A(e, t);
|
|
2627
2628
|
}
|
|
2628
|
-
function
|
|
2629
|
-
return
|
|
2629
|
+
function de(e, t, n) {
|
|
2630
|
+
return $(e, t);
|
|
2630
2631
|
}
|
|
2631
|
-
function
|
|
2632
|
-
return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ?
|
|
2632
|
+
function Dt(e, t, n) {
|
|
2633
|
+
return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? de(e, t) : Array.isArray(e) ? e.map((r) => r instanceof Date ? de(r, t) : r) : xe(e) ? {
|
|
2633
2634
|
...e,
|
|
2634
|
-
from: e.from ?
|
|
2635
|
-
to: e.to ?
|
|
2636
|
-
} : Ze(e) ? {
|
|
2637
|
-
before: le(e.before, t),
|
|
2638
|
-
after: le(e.after, t)
|
|
2635
|
+
from: e.from ? $(e.from, t) : e.from,
|
|
2636
|
+
to: e.to ? $(e.to, t) : e.to
|
|
2639
2637
|
} : Ke(e) ? {
|
|
2640
|
-
|
|
2638
|
+
before: de(e.before, t),
|
|
2639
|
+
after: de(e.after, t)
|
|
2641
2640
|
} : Je(e) ? {
|
|
2642
|
-
|
|
2641
|
+
after: de(e.after, t)
|
|
2642
|
+
} : Le(e) ? {
|
|
2643
|
+
before: de(e.before, t)
|
|
2643
2644
|
} : e;
|
|
2644
2645
|
}
|
|
2645
|
-
function
|
|
2646
|
-
return e && (Array.isArray(e) ? e.map((r) =>
|
|
2646
|
+
function Re(e, t, n) {
|
|
2647
|
+
return e && (Array.isArray(e) ? e.map((r) => Dt(r, t)) : Dt(e, t));
|
|
2647
2648
|
}
|
|
2648
2649
|
function xa(e) {
|
|
2649
2650
|
let t = e;
|
|
@@ -2651,20 +2652,20 @@ function xa(e) {
|
|
|
2651
2652
|
if (n && (t = {
|
|
2652
2653
|
...e,
|
|
2653
2654
|
timeZone: n
|
|
2654
|
-
}, t.today && (t.today =
|
|
2655
|
-
from: t.selected.from ?
|
|
2656
|
-
to: t.selected.to ?
|
|
2657
|
-
}), t.disabled !== void 0 && (t.disabled =
|
|
2655
|
+
}, t.today && (t.today = $(t.today, n)), t.month && (t.month = $(t.month, n)), t.defaultMonth && (t.defaultMonth = $(t.defaultMonth, n)), t.startMonth && (t.startMonth = $(t.startMonth, n)), t.endMonth && (t.endMonth = $(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = $(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = t.selected?.map((D) => $(D, n)) : t.mode === "range" && t.selected && (t.selected = {
|
|
2656
|
+
from: t.selected.from ? $(t.selected.from, n) : t.selected.from,
|
|
2657
|
+
to: t.selected.to ? $(t.selected.to, n) : t.selected.to
|
|
2658
|
+
}), t.disabled !== void 0 && (t.disabled = Re(t.disabled, n)), t.hidden !== void 0 && (t.hidden = Re(t.hidden, n)), t.modifiers)) {
|
|
2658
2659
|
const D = {};
|
|
2659
2660
|
Object.keys(t.modifiers).forEach((x) => {
|
|
2660
|
-
D[x] =
|
|
2661
|
+
D[x] = Re(t.modifiers?.[x], n);
|
|
2661
2662
|
}), t.modifiers = D;
|
|
2662
2663
|
}
|
|
2663
2664
|
const { components: r, formatters: o, labels: s, dateLib: i, locale: a, classNames: c } = Ne(() => {
|
|
2664
|
-
const D = { ...Bt, ...t.locale }, x = t.broadcastCalendar ? 1 : t.weekStartsOn,
|
|
2665
|
+
const D = { ...Bt, ...t.locale }, x = t.broadcastCalendar ? 1 : t.weekStartsOn, p = t.noonSafe && t.timeZone ? aa(t.timeZone, {
|
|
2665
2666
|
weekStartsOn: x,
|
|
2666
2667
|
locale: D
|
|
2667
|
-
}) : void 0, N = t.dateLib &&
|
|
2668
|
+
}) : void 0, N = t.dateLib && p ? { ...p, ...t.dateLib } : t.dateLib ?? p, q = new j({
|
|
2668
2669
|
locale: D,
|
|
2669
2670
|
weekStartsOn: x,
|
|
2670
2671
|
firstWeekContainsDate: t.firstWeekContainsDate,
|
|
@@ -2679,7 +2680,7 @@ function xa(e) {
|
|
|
2679
2680
|
formatters: Vo(t.formatters),
|
|
2680
2681
|
labels: ea(t.labels, q.options),
|
|
2681
2682
|
locale: D,
|
|
2682
|
-
classNames: { ...
|
|
2683
|
+
classNames: { ...et(), ...t.classNames }
|
|
2683
2684
|
};
|
|
2684
2685
|
}, [
|
|
2685
2686
|
t.locale,
|
|
@@ -2698,69 +2699,69 @@ function xa(e) {
|
|
|
2698
2699
|
t.classNames
|
|
2699
2700
|
]);
|
|
2700
2701
|
t.today || (t = { ...t, today: i.today() });
|
|
2701
|
-
const { captionLayout: u, mode:
|
|
2702
|
+
const { captionLayout: u, mode: d, navLayout: l, numberOfMonths: h = 1, onDayBlur: g, onDayClick: O, onDayFocus: C, onDayKeyDown: v, onDayMouseEnter: T, onDayMouseLeave: M, onNextClick: w, onPrevClick: k, showWeekNumber: b, styles: m } = t, { formatCaption: W, formatDay: E, formatMonthDropdown: H, formatWeekNumber: B, formatWeekNumberHeader: Z, formatWeekdayName: ae, formatYearDropdown: ee } = o, G = wa(t, i), { days: ue, months: Oe, navStart: Te, navEnd: _e, previousMonth: Q, nextMonth: X, goToMonth: te } = G, Pe = Io(ue, t, Te, _e, i), { isSelected: Ee, select: Fe, selected: We } = Na(t, i) ?? {}, { blur: rt, focused: ot, isFocusTarget: Lt, moveFocus: at, setFocused: Se } = ka(t, G, Pe, Ee ?? (() => !1), i), { labelDayButton: en, labelGridcell: tn, labelGrid: nn, labelMonthDropdown: rn, labelNav: st, labelPrevious: on, labelNext: an, labelWeekday: sn, labelWeekNumber: cn, labelWeekNumberHeader: un, labelYearDropdown: ln } = s, dn = Ne(() => ra(i, t.ISOWeek, t.broadcastCalendar, t.today), [i, t.ISOWeek, t.broadcastCalendar, t.today]), it = d !== void 0 || O !== void 0, Be = R(() => {
|
|
2702
2703
|
Q && (te(Q), k?.(Q));
|
|
2703
|
-
}, [Q, te, k]), Ie =
|
|
2704
|
-
|
|
2705
|
-
}, [te,
|
|
2706
|
-
|
|
2707
|
-
}, [Fe, O,
|
|
2708
|
-
|
|
2709
|
-
}, [C,
|
|
2710
|
-
|
|
2711
|
-
}, [
|
|
2704
|
+
}, [Q, te, k]), Ie = R(() => {
|
|
2705
|
+
X && (te(X), w?.(X));
|
|
2706
|
+
}, [te, X, w]), fn = R((D, x) => (p) => {
|
|
2707
|
+
p.preventDefault(), p.stopPropagation(), Se(D), !x.disabled && (Fe?.(D.date, x, p), O?.(D.date, x, p));
|
|
2708
|
+
}, [Fe, O, Se]), hn = R((D, x) => (p) => {
|
|
2709
|
+
Se(D), C?.(D.date, x, p);
|
|
2710
|
+
}, [C, Se]), mn = R((D, x) => (p) => {
|
|
2711
|
+
rt(), g?.(D.date, x, p);
|
|
2712
|
+
}, [rt, g]), yn = R((D, x) => (p) => {
|
|
2712
2713
|
const N = {
|
|
2713
2714
|
ArrowLeft: [
|
|
2714
|
-
|
|
2715
|
+
p.shiftKey ? "month" : "day",
|
|
2715
2716
|
t.dir === "rtl" ? "after" : "before"
|
|
2716
2717
|
],
|
|
2717
2718
|
ArrowRight: [
|
|
2718
|
-
|
|
2719
|
+
p.shiftKey ? "month" : "day",
|
|
2719
2720
|
t.dir === "rtl" ? "before" : "after"
|
|
2720
2721
|
],
|
|
2721
|
-
ArrowDown: [
|
|
2722
|
-
ArrowUp: [
|
|
2723
|
-
PageUp: [
|
|
2724
|
-
PageDown: [
|
|
2722
|
+
ArrowDown: [p.shiftKey ? "year" : "week", "after"],
|
|
2723
|
+
ArrowUp: [p.shiftKey ? "year" : "week", "before"],
|
|
2724
|
+
PageUp: [p.shiftKey ? "year" : "month", "before"],
|
|
2725
|
+
PageDown: [p.shiftKey ? "year" : "month", "after"],
|
|
2725
2726
|
Home: ["startOfWeek", "before"],
|
|
2726
2727
|
End: ["endOfWeek", "after"]
|
|
2727
2728
|
};
|
|
2728
|
-
if (N[
|
|
2729
|
-
|
|
2730
|
-
const [q, S] = N[
|
|
2731
|
-
|
|
2729
|
+
if (N[p.key]) {
|
|
2730
|
+
p.preventDefault(), p.stopPropagation();
|
|
2731
|
+
const [q, S] = N[p.key];
|
|
2732
|
+
at(q, S);
|
|
2732
2733
|
}
|
|
2733
|
-
v?.(D.date, x,
|
|
2734
|
-
}, [
|
|
2735
|
-
T?.(D.date, x,
|
|
2736
|
-
}, [T]), bn =
|
|
2737
|
-
M?.(D.date, x,
|
|
2738
|
-
}, [M]),
|
|
2739
|
-
const
|
|
2734
|
+
v?.(D.date, x, p);
|
|
2735
|
+
}, [at, v, t.dir]), gn = R((D, x) => (p) => {
|
|
2736
|
+
T?.(D.date, x, p);
|
|
2737
|
+
}, [T]), bn = R((D, x) => (p) => {
|
|
2738
|
+
M?.(D.date, x, p);
|
|
2739
|
+
}, [M]), wn = R((D) => (x) => {
|
|
2740
|
+
const p = Number(x.target.value), N = i.setMonth(i.startOfMonth(D), p);
|
|
2740
2741
|
te(N);
|
|
2741
|
-
}, [i, te]),
|
|
2742
|
-
const
|
|
2742
|
+
}, [i, te]), pn = R((D) => (x) => {
|
|
2743
|
+
const p = Number(x.target.value), N = i.setYear(i.startOfMonth(D), p);
|
|
2743
2744
|
te(N);
|
|
2744
2745
|
}, [i, te]), { className: Mn, style: kn } = Ne(() => ({
|
|
2745
2746
|
className: [c[y.Root], t.className].filter(Boolean).join(" "),
|
|
2746
2747
|
style: { ...m?.[y.Root], ...t.style }
|
|
2747
|
-
}), [c, t.className, t.style, m]), Dn = qo(t),
|
|
2748
|
-
ua(
|
|
2748
|
+
}), [c, t.className, t.style, m]), Dn = qo(t), ct = Ce(null);
|
|
2749
|
+
ua(ct, !!t.animate, {
|
|
2749
2750
|
classNames: c,
|
|
2750
|
-
months:
|
|
2751
|
-
focused:
|
|
2751
|
+
months: Oe,
|
|
2752
|
+
focused: ot,
|
|
2752
2753
|
dateLib: i
|
|
2753
2754
|
});
|
|
2754
2755
|
const vn = {
|
|
2755
2756
|
dayPickerProps: t,
|
|
2756
|
-
selected:
|
|
2757
|
+
selected: We,
|
|
2757
2758
|
select: Fe,
|
|
2758
|
-
isSelected:
|
|
2759
|
-
months:
|
|
2760
|
-
nextMonth:
|
|
2759
|
+
isSelected: Ee,
|
|
2760
|
+
months: Oe,
|
|
2761
|
+
nextMonth: X,
|
|
2761
2762
|
previousMonth: Q,
|
|
2762
2763
|
goToMonth: te,
|
|
2763
|
-
getModifiers:
|
|
2764
|
+
getModifiers: Pe,
|
|
2764
2765
|
components: r,
|
|
2765
2766
|
classNames: c,
|
|
2766
2767
|
styles: m,
|
|
@@ -2772,12 +2773,12 @@ function xa(e) {
|
|
|
2772
2773
|
{ value: vn },
|
|
2773
2774
|
f.createElement(
|
|
2774
2775
|
r.Root,
|
|
2775
|
-
{ rootRef: t.animate ?
|
|
2776
|
+
{ rootRef: t.animate ? ct : void 0, className: Mn, style: kn, dir: t.dir, id: t.id, lang: t.lang ?? a.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...Dn },
|
|
2776
2777
|
f.createElement(
|
|
2777
2778
|
r.Months,
|
|
2778
2779
|
{ className: c[y.Months], style: m?.[y.Months] },
|
|
2779
|
-
!t.hideNavigation && !
|
|
2780
|
-
|
|
2780
|
+
!t.hideNavigation && !l && f.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[y.Nav], style: m?.[y.Nav], "aria-label": st(), onPreviousClick: Be, onNextClick: Ie, previousMonth: Q, nextMonth: X }),
|
|
2781
|
+
Oe.map((D, x) => f.createElement(
|
|
2781
2782
|
r.Month,
|
|
2782
2783
|
{
|
|
2783
2784
|
"data-animated-month": t.animate ? "true" : void 0,
|
|
@@ -2788,7 +2789,7 @@ function xa(e) {
|
|
|
2788
2789
|
displayIndex: x,
|
|
2789
2790
|
calendarMonth: D
|
|
2790
2791
|
},
|
|
2791
|
-
|
|
2792
|
+
l === "around" && !t.hideNavigation && x === 0 && f.createElement(
|
|
2792
2793
|
r.PreviousMonthButton,
|
|
2793
2794
|
{ type: "button", className: c[y.PreviousMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": on(Q), onClick: Be, "data-animated-button": t.animate ? "true" : void 0 },
|
|
2794
2795
|
f.createElement(r.Chevron, { disabled: Q ? void 0 : !0, className: c[y.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
|
|
@@ -2797,8 +2798,8 @@ function xa(e) {
|
|
|
2797
2798
|
r.DropdownNav,
|
|
2798
2799
|
{ className: c[y.Dropdowns], style: m?.[y.Dropdowns] },
|
|
2799
2800
|
(() => {
|
|
2800
|
-
const
|
|
2801
|
-
return i.getMonthYearOrder() === "year-first" ? [N,
|
|
2801
|
+
const p = u === "dropdown" || u === "dropdown-months" ? f.createElement(r.MonthsDropdown, { key: "month", className: c[y.MonthsDropdown], "aria-label": rn(), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: wn(D.date), options: ta(D.date, Te, _e, o, i), style: m?.[y.Dropdown], value: i.getMonth(D.date) }) : f.createElement("span", { key: "month" }, H(D.date, i)), N = u === "dropdown" || u === "dropdown-years" ? f.createElement(r.YearsDropdown, { key: "year", className: c[y.YearsDropdown], "aria-label": ln(i.options), classNames: c, components: r, disabled: !!t.disableNavigation, onChange: pn(D.date), options: oa(Te, _e, o, i, !!t.reverseYears), style: m?.[y.Dropdown], value: i.getYear(D.date) }) : f.createElement("span", { key: "year" }, ee(D.date, i));
|
|
2802
|
+
return i.getMonthYearOrder() === "year-first" ? [N, p] : [p, N];
|
|
2802
2803
|
})(),
|
|
2803
2804
|
f.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
2804
2805
|
border: 0,
|
|
@@ -2813,35 +2814,35 @@ function xa(e) {
|
|
|
2813
2814
|
wordWrap: "normal"
|
|
2814
2815
|
} }, W(D.date, i.options, i))
|
|
2815
2816
|
) : f.createElement(r.CaptionLabel, { className: c[y.CaptionLabel], role: "status", "aria-live": "polite" }, W(D.date, i.options, i))),
|
|
2816
|
-
|
|
2817
|
+
l === "around" && !t.hideNavigation && x === h - 1 && f.createElement(
|
|
2817
2818
|
r.NextMonthButton,
|
|
2818
|
-
{ type: "button", className: c[y.NextMonthButton], tabIndex:
|
|
2819
|
-
f.createElement(r.Chevron, { disabled:
|
|
2819
|
+
{ type: "button", className: c[y.NextMonthButton], tabIndex: X ? void 0 : -1, "aria-disabled": X ? void 0 : !0, "aria-label": an(X), onClick: Ie, "data-animated-button": t.animate ? "true" : void 0 },
|
|
2820
|
+
f.createElement(r.Chevron, { disabled: X ? void 0 : !0, className: c[y.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
|
|
2820
2821
|
),
|
|
2821
|
-
x === h - 1 &&
|
|
2822
|
+
x === h - 1 && l === "after" && !t.hideNavigation && f.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: c[y.Nav], style: m?.[y.Nav], "aria-label": st(), onPreviousClick: Be, onNextClick: Ie, previousMonth: Q, nextMonth: X }),
|
|
2822
2823
|
f.createElement(
|
|
2823
2824
|
r.MonthGrid,
|
|
2824
|
-
{ role: "grid", "aria-multiselectable":
|
|
2825
|
+
{ role: "grid", "aria-multiselectable": d === "multiple" || d === "range", "aria-label": nn(D.date, i.options, i) || void 0, className: c[y.MonthGrid], style: m?.[y.MonthGrid] },
|
|
2825
2826
|
!t.hideWeekdays && f.createElement(
|
|
2826
2827
|
r.Weekdays,
|
|
2827
2828
|
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: c[y.Weekdays], style: m?.[y.Weekdays] },
|
|
2828
2829
|
b && f.createElement(r.WeekNumberHeader, { "aria-label": un(i.options), className: c[y.WeekNumberHeader], style: m?.[y.WeekNumberHeader], scope: "col" }, Z()),
|
|
2829
|
-
|
|
2830
|
+
dn.map((p) => f.createElement(r.Weekday, { "aria-label": sn(p, i.options, i), className: c[y.Weekday], key: String(p), style: m?.[y.Weekday], scope: "col" }, ae(p, i.options, i)))
|
|
2830
2831
|
),
|
|
2831
|
-
f.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[y.Weeks], style: m?.[y.Weeks] }, D.weeks.map((
|
|
2832
|
+
f.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: c[y.Weeks], style: m?.[y.Weeks] }, D.weeks.map((p) => f.createElement(
|
|
2832
2833
|
r.Week,
|
|
2833
|
-
{ className: c[y.Week], key:
|
|
2834
|
-
b && f.createElement(r.WeekNumber, { week:
|
|
2834
|
+
{ className: c[y.Week], key: p.weekNumber, style: m?.[y.Week], week: p },
|
|
2835
|
+
b && f.createElement(r.WeekNumber, { week: p, style: m?.[y.WeekNumber], "aria-label": cn(p.weekNumber, {
|
|
2835
2836
|
locale: a
|
|
2836
|
-
}), className: c[y.WeekNumber], scope: "row", role: "rowheader" }, B(
|
|
2837
|
-
|
|
2838
|
-
const { date: q } = N, S =
|
|
2839
|
-
if (S[F.focused] = !S.hidden && !!
|
|
2840
|
-
const { from: He, to: Ae } =
|
|
2841
|
-
S[V.range_start] = !!(He && Ae && i.isSameDay(q, He)), S[V.range_end] = !!(He && Ae && i.isSameDay(q, Ae)), S[V.range_middle] =
|
|
2837
|
+
}), className: c[y.WeekNumber], scope: "row", role: "rowheader" }, B(p.weekNumber, i)),
|
|
2838
|
+
p.days.map((N) => {
|
|
2839
|
+
const { date: q } = N, S = Pe(N);
|
|
2840
|
+
if (S[F.focused] = !S.hidden && !!ot?.isEqualTo(N), S[V.selected] = Ee?.(q) || S.selected, xe(We)) {
|
|
2841
|
+
const { from: He, to: Ae } = We;
|
|
2842
|
+
S[V.range_start] = !!(He && Ae && i.isSameDay(q, He)), S[V.range_end] = !!(He && Ae && i.isSameDay(q, Ae)), S[V.range_middle] = ne(We, q, !0, i);
|
|
2842
2843
|
}
|
|
2843
|
-
const On = na(S, m, t.modifiersStyles), Wn = Ho(S, c, t.modifiersClassNames), Sn = !
|
|
2844
|
-
return f.createElement(r.Day, { key: `${N.isoDate}_${N.displayMonthId}`, day: N, modifiers: S, className: Wn.join(" "), style: On, role: "gridcell", "aria-selected": S.selected || void 0, "aria-label": Sn, "data-day": N.isoDate, "data-month": N.outside ? N.dateMonthId : void 0, "data-selected": S.selected || void 0, "data-disabled": S.disabled || void 0, "data-hidden": S.hidden || void 0, "data-outside": N.outside || void 0, "data-focused": S.focused || void 0, "data-today": S.today || void 0 }, !S.hidden &&
|
|
2844
|
+
const On = na(S, m, t.modifiersStyles), Wn = Ho(S, c, t.modifiersClassNames), Sn = !it && !S.hidden ? tn(q, S, i.options, i) : void 0;
|
|
2845
|
+
return f.createElement(r.Day, { key: `${N.isoDate}_${N.displayMonthId}`, day: N, modifiers: S, className: Wn.join(" "), style: On, role: "gridcell", "aria-selected": S.selected || void 0, "aria-label": Sn, "data-day": N.isoDate, "data-month": N.outside ? N.dateMonthId : void 0, "data-selected": S.selected || void 0, "data-disabled": S.disabled || void 0, "data-hidden": S.hidden || void 0, "data-outside": N.outside || void 0, "data-focused": S.focused || void 0, "data-today": S.today || void 0 }, !S.hidden && it ? f.createElement(r.DayButton, { className: c[y.DayButton], style: m?.[y.DayButton], type: "button", day: N, modifiers: S, disabled: !S.focused && S.disabled || void 0, "aria-disabled": S.focused && S.disabled || void 0, tabIndex: Lt(N) ? 0 : -1, "aria-label": en(q, S, i.options, i), onClick: fn(N, S), onBlur: mn(N, S), onFocus: hn(N, S), onKeyDown: yn(N, S), onMouseEnter: gn(N, S), onMouseLeave: bn(N, S) }, E(q, i.options, i)) : !S.hidden && E(N.date, i.options, i));
|
|
2845
2846
|
})
|
|
2846
2847
|
)))
|
|
2847
2848
|
)
|
|
@@ -2856,10 +2857,10 @@ function Ya({
|
|
|
2856
2857
|
rootRef: t,
|
|
2857
2858
|
...n
|
|
2858
2859
|
}) {
|
|
2859
|
-
return /* @__PURE__ */
|
|
2860
|
+
return /* @__PURE__ */ oe(
|
|
2860
2861
|
"div",
|
|
2861
2862
|
{
|
|
2862
|
-
className: e,
|
|
2863
|
+
className: Y(e),
|
|
2863
2864
|
"data-slot": "calendar",
|
|
2864
2865
|
ref: t,
|
|
2865
2866
|
...n
|
|
@@ -2871,25 +2872,13 @@ function Ta({
|
|
|
2871
2872
|
orientation: t,
|
|
2872
2873
|
...n
|
|
2873
2874
|
}) {
|
|
2874
|
-
return t === "left" ? /* @__PURE__ */
|
|
2875
|
-
Cn,
|
|
2876
|
-
{
|
|
2877
|
-
className: Y("size-4", e),
|
|
2878
|
-
...n
|
|
2879
|
-
}
|
|
2880
|
-
) : t === "right" ? /* @__PURE__ */ ne(
|
|
2881
|
-
Nn,
|
|
2882
|
-
{
|
|
2883
|
-
className: Y("size-4", e),
|
|
2884
|
-
...n
|
|
2885
|
-
}
|
|
2886
|
-
) : t === "up" ? /* @__PURE__ */ ne(xn, { className: Y("size-4", e), ...n }) : /* @__PURE__ */ ne(Yn, { className: Y("size-4", e), ...n });
|
|
2875
|
+
return t === "left" ? /* @__PURE__ */ oe(Cn, { className: Y("size-4", e), ...n }) : t === "right" ? /* @__PURE__ */ oe(Nn, { className: Y("size-4", e), ...n }) : /* @__PURE__ */ oe(xn, { className: Y("size-4", e), ...n });
|
|
2887
2876
|
}
|
|
2888
2877
|
function _a({
|
|
2889
|
-
|
|
2878
|
+
children: e,
|
|
2890
2879
|
...t
|
|
2891
2880
|
}) {
|
|
2892
|
-
return /* @__PURE__ */
|
|
2881
|
+
return /* @__PURE__ */ oe("td", { ...t, children: /* @__PURE__ */ oe("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: e }) });
|
|
2893
2882
|
}
|
|
2894
2883
|
function Aa({
|
|
2895
2884
|
className: e,
|
|
@@ -2897,151 +2886,163 @@ function Aa({
|
|
|
2897
2886
|
showOutsideDays: n = !0,
|
|
2898
2887
|
captionLayout: r = "label",
|
|
2899
2888
|
buttonVariant: o = "ghost",
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2889
|
+
locale: s,
|
|
2890
|
+
formatters: i,
|
|
2891
|
+
components: a,
|
|
2892
|
+
...c
|
|
2903
2893
|
}) {
|
|
2904
|
-
const
|
|
2905
|
-
|
|
2894
|
+
const u = et(), d = $e.useMemo(
|
|
2895
|
+
() => function({
|
|
2896
|
+
...h
|
|
2897
|
+
}) {
|
|
2898
|
+
return /* @__PURE__ */ oe(Pa, { locale: s, ...h });
|
|
2899
|
+
},
|
|
2900
|
+
[s]
|
|
2901
|
+
);
|
|
2902
|
+
return /* @__PURE__ */ oe(
|
|
2906
2903
|
xa,
|
|
2907
2904
|
{
|
|
2908
2905
|
captionLayout: r,
|
|
2909
2906
|
className: Y(
|
|
2910
|
-
"group/calendar bg-background
|
|
2907
|
+
"group/calendar bg-background in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)]",
|
|
2911
2908
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
2912
2909
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
2913
2910
|
e
|
|
2914
2911
|
),
|
|
2915
2912
|
classNames: {
|
|
2916
|
-
root: Y("w-fit",
|
|
2913
|
+
root: Y("w-fit", u.root),
|
|
2917
2914
|
months: Y(
|
|
2918
2915
|
"relative flex flex-col gap-4 md:flex-row",
|
|
2919
|
-
|
|
2916
|
+
u.months
|
|
2920
2917
|
),
|
|
2921
|
-
month: Y("flex w-full flex-col gap-4",
|
|
2918
|
+
month: Y("flex w-full flex-col gap-4", u.month),
|
|
2922
2919
|
nav: Y(
|
|
2923
2920
|
"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
|
|
2924
|
-
|
|
2921
|
+
u.nav
|
|
2925
2922
|
),
|
|
2926
2923
|
button_previous: Y(
|
|
2927
|
-
|
|
2924
|
+
ut({ variant: o }),
|
|
2928
2925
|
"size-(--cell-size) select-none p-0 aria-disabled:opacity-50",
|
|
2929
|
-
|
|
2926
|
+
u.button_previous
|
|
2930
2927
|
),
|
|
2931
2928
|
button_next: Y(
|
|
2932
|
-
|
|
2929
|
+
ut({ variant: o }),
|
|
2933
2930
|
"size-(--cell-size) select-none p-0 aria-disabled:opacity-50",
|
|
2934
|
-
|
|
2931
|
+
u.button_next
|
|
2935
2932
|
),
|
|
2936
2933
|
month_caption: Y(
|
|
2937
2934
|
"flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",
|
|
2938
|
-
|
|
2935
|
+
u.month_caption
|
|
2939
2936
|
),
|
|
2940
2937
|
dropdowns: Y(
|
|
2941
2938
|
"flex h-(--cell-size) w-full items-center justify-center gap-1.5 font-medium text-sm",
|
|
2942
|
-
|
|
2939
|
+
u.dropdowns
|
|
2943
2940
|
),
|
|
2944
2941
|
dropdown_root: Y(
|
|
2945
|
-
"relative rounded-
|
|
2946
|
-
|
|
2942
|
+
"relative rounded-(--cell-radius)",
|
|
2943
|
+
u.dropdown_root
|
|
2947
2944
|
),
|
|
2948
2945
|
dropdown: Y(
|
|
2949
2946
|
"absolute inset-0 bg-popover opacity-0",
|
|
2950
|
-
|
|
2947
|
+
u.dropdown
|
|
2951
2948
|
),
|
|
2952
2949
|
caption_label: Y(
|
|
2953
2950
|
"select-none font-medium",
|
|
2954
|
-
r === "label" ? "text-sm" : "flex
|
|
2955
|
-
|
|
2951
|
+
r === "label" ? "text-sm" : "flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",
|
|
2952
|
+
u.caption_label
|
|
2956
2953
|
),
|
|
2957
2954
|
table: "w-full border-collapse",
|
|
2958
|
-
weekdays: Y("flex",
|
|
2955
|
+
weekdays: Y("flex", u.weekdays),
|
|
2959
2956
|
weekday: Y(
|
|
2960
|
-
"flex-1 select-none rounded-
|
|
2961
|
-
|
|
2957
|
+
"flex-1 select-none rounded-(--cell-radius) font-normal text-[0.8rem] text-muted-foreground",
|
|
2958
|
+
u.weekday
|
|
2962
2959
|
),
|
|
2963
|
-
week: Y("mt-2 flex w-full",
|
|
2960
|
+
week: Y("mt-2 flex w-full", u.week),
|
|
2964
2961
|
week_number_header: Y(
|
|
2965
2962
|
"w-(--cell-size) select-none",
|
|
2966
|
-
|
|
2963
|
+
u.week_number_header
|
|
2967
2964
|
),
|
|
2968
2965
|
week_number: Y(
|
|
2969
2966
|
"select-none text-[0.8rem] text-muted-foreground",
|
|
2970
|
-
|
|
2967
|
+
u.week_number
|
|
2971
2968
|
),
|
|
2972
2969
|
day: Y(
|
|
2973
|
-
"group/day relative aspect-square h-full w-full select-none p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-
|
|
2974
|
-
|
|
2975
|
-
|
|
2970
|
+
"group/day relative aspect-square h-full w-full select-none rounded-(--cell-radius) p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)",
|
|
2971
|
+
c.showWeekNumber ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)" : "[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)",
|
|
2972
|
+
u.day
|
|
2976
2973
|
),
|
|
2977
2974
|
range_start: Y(
|
|
2978
|
-
"rounded-l-
|
|
2979
|
-
|
|
2975
|
+
"relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted",
|
|
2976
|
+
u.range_start
|
|
2977
|
+
),
|
|
2978
|
+
range_middle: Y("rounded-none", u.range_middle),
|
|
2979
|
+
range_end: Y(
|
|
2980
|
+
"relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted",
|
|
2981
|
+
u.range_end
|
|
2980
2982
|
),
|
|
2981
|
-
range_middle: Y("rounded-none", c.range_middle),
|
|
2982
|
-
range_end: Y("rounded-r-md bg-accent", c.range_end),
|
|
2983
2983
|
today: Y(
|
|
2984
|
-
"rounded-
|
|
2985
|
-
|
|
2984
|
+
"rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none data-[selected=true]:bg-transparent",
|
|
2985
|
+
u.today
|
|
2986
2986
|
),
|
|
2987
2987
|
outside: Y(
|
|
2988
2988
|
"text-muted-foreground aria-selected:text-muted-foreground",
|
|
2989
|
-
|
|
2989
|
+
u.outside
|
|
2990
2990
|
),
|
|
2991
2991
|
disabled: Y(
|
|
2992
2992
|
"text-muted-foreground opacity-50",
|
|
2993
|
-
|
|
2993
|
+
u.disabled
|
|
2994
2994
|
),
|
|
2995
|
-
hidden: Y("invisible",
|
|
2995
|
+
hidden: Y("invisible", u.hidden),
|
|
2996
2996
|
...t
|
|
2997
2997
|
},
|
|
2998
2998
|
components: {
|
|
2999
2999
|
Root: Ya,
|
|
3000
3000
|
Chevron: Ta,
|
|
3001
|
-
DayButton:
|
|
3001
|
+
DayButton: d,
|
|
3002
3002
|
WeekNumber: _a,
|
|
3003
|
-
...
|
|
3003
|
+
...a
|
|
3004
3004
|
},
|
|
3005
3005
|
formatters: {
|
|
3006
|
-
formatMonthDropdown: (
|
|
3007
|
-
...
|
|
3006
|
+
formatMonthDropdown: (l) => l.toLocaleString(s?.code, { month: "short" }),
|
|
3007
|
+
...i
|
|
3008
3008
|
},
|
|
3009
|
+
locale: s,
|
|
3009
3010
|
showOutsideDays: n,
|
|
3010
|
-
...
|
|
3011
|
+
...c
|
|
3011
3012
|
}
|
|
3012
3013
|
);
|
|
3013
3014
|
}
|
|
3014
|
-
function
|
|
3015
|
+
function Pa({
|
|
3015
3016
|
className: e,
|
|
3016
3017
|
day: t,
|
|
3017
3018
|
modifiers: n,
|
|
3018
|
-
|
|
3019
|
+
locale: r,
|
|
3020
|
+
...o
|
|
3019
3021
|
}) {
|
|
3020
|
-
const
|
|
3021
|
-
return
|
|
3022
|
-
n.focused &&
|
|
3023
|
-
}, [n.focused]), /* @__PURE__ */
|
|
3024
|
-
|
|
3022
|
+
const s = et(), i = $e.useRef(null);
|
|
3023
|
+
return $e.useEffect(() => {
|
|
3024
|
+
n.focused && i.current?.focus();
|
|
3025
|
+
}, [n.focused]), /* @__PURE__ */ oe(
|
|
3026
|
+
En,
|
|
3025
3027
|
{
|
|
3026
3028
|
className: Y(
|
|
3027
|
-
"flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-
|
|
3028
|
-
|
|
3029
|
+
"relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 font-normal leading-none data-[range-end=true]:rounded-(--cell-radius) data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-end=true]:bg-primary data-[range-middle=true]:bg-muted data-[range-start=true]:bg-primary data-[selected-single=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:text-foreground data-[range-start=true]:text-primary-foreground data-[selected-single=true]:text-primary-foreground group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70",
|
|
3030
|
+
s.day,
|
|
3029
3031
|
e
|
|
3030
3032
|
),
|
|
3031
|
-
"data-day": t.date.toLocaleDateString(),
|
|
3033
|
+
"data-day": t.date.toLocaleDateString(r?.code),
|
|
3032
3034
|
"data-range-end": n.range_end,
|
|
3033
3035
|
"data-range-middle": n.range_middle,
|
|
3034
3036
|
"data-range-start": n.range_start,
|
|
3035
3037
|
"data-selected-single": n.selected && !n.range_start && !n.range_end && !n.range_middle,
|
|
3036
|
-
ref: s,
|
|
3037
3038
|
size: "icon",
|
|
3038
3039
|
variant: "ghost",
|
|
3039
|
-
...
|
|
3040
|
+
...o
|
|
3040
3041
|
}
|
|
3041
3042
|
);
|
|
3042
3043
|
}
|
|
3043
3044
|
export {
|
|
3044
3045
|
Aa as C,
|
|
3045
|
-
|
|
3046
|
-
|
|
3046
|
+
Pa as a,
|
|
3047
|
+
we as f
|
|
3047
3048
|
};
|