@rpcbase/ui 0.208.0 → 0.209.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -13
- package/dist/index100.js +3 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +9 -3
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -9
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +9 -4
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +18 -12
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +25 -18
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +5 -24
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +2 -2
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -3
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +3 -3
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +3 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +3 -3
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +8 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +7 -8
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +34 -7
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +7 -34
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -7
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +7 -5
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +9 -7
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +3 -7
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +4 -3
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +3 -4
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +3 -3
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +4 -3
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +3 -4
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +3 -3
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +7 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +57 -8
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +7 -57
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +19 -6
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +19 -19
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +34 -19
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +5 -34
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +8 -5
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +13 -7
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +10 -14
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +6 -10
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -5
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +5 -5
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +5 -5
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +5 -5
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +6 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +21 -7
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +9 -21
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +7 -8
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +5 -6
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +6 -6
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +4 -6
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +4 -4
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +5 -4
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +4 -5
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +5 -4
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +4 -5
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +3 -3
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +29 -5
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +33 -29
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +15 -32
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +10 -14
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +9 -11
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +16 -9
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +86 -16
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +47 -86
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +16 -46
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +8 -17
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +10 -8
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -9
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +22 -5
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +7 -22
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +6 -7
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +4 -4
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +4 -6
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +6 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +67 -6
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +17 -67
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +12 -17
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +9 -12
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +20 -9
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +14 -17
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +54 -16
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +9 -54
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +6 -10
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +26 -6
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +26 -26
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +10 -23
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -13
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +6 -13
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +23 -6
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +385 -23
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +487 -377
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +122 -487
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +53 -131
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +76 -51
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +897 -75
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +19 -899
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +446 -17
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -448
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +57 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +56 -52
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +55 -56
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +8 -60
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +15 -7
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +143 -15
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +4 -145
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +11 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +104 -10
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +347 -94
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +87 -349
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +304 -73
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +193 -309
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +19 -211
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +27 -18
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +187 -27
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +16 -186
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +62 -18
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +40 -58
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +9 -43
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +25 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +45 -25
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +17 -44
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +3 -18
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +5 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +20 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +24 -20
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +66 -23
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +14 -67
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +4 -15
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +51 -4
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -50
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +26 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +11 -24
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +8 -12
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +3 -13
- package/dist/index234.js +29 -3
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +68 -25
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -71
- package/dist/index237.js +15 -3
- package/dist/index237.js.map +1 -0
- package/dist/index238.js +51 -12
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +114 -50
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +9 -0
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +6 -115
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +13 -6
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +687 -13
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +234 -668
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +670 -222
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +7430 -700
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +7 -7431
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +12 -6
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -12
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +459 -5
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +20 -8
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +32 -454
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +18 -36
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +25 -17
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +4 -27
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +58 -4
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +7 -58
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +12 -7
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +3 -13
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +17 -3
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +23 -14
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +56 -18
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +41 -23
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +13 -43
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +25 -13
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +16 -24
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +33 -15
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -35
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +9 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +7 -8
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +9 -8
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +10 -9
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +50 -53
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +7 -10
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +73 -7
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +161 -63
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +100 -157
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +13 -113
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +78 -12
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +23 -57
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +12 -45
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +16 -13
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +98 -15
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -59
- package/dist/index280.js +50 -93
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +57 -5
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +41 -78
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +100 -58
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +46 -104
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +39 -51
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +141 -42
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +119 -122
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +222 -107
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +159 -173
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +4 -0
- package/dist/index290.js +177 -119
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -298
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +6 -5
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +7 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +5 -6
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +4 -4
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +21 -6
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +10 -21
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +126 -10
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +146 -108
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +8 -6
- package/dist/index30.js.map +1 -0
- package/dist/index300.js +55 -151
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +107 -66
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +489 -107
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +63 -492
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +4 -63
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +28 -4
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +65 -27
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +147 -60
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +56 -147
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +553 -53
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +6 -5
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +170 -521
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +327 -206
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +251 -314
- package/dist/index312.js.map +1 -1
- package/dist/index32.js +3 -3
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +7 -5
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +7 -4
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +5 -10
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +7 -5
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +8 -7
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +12 -8
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +5 -11
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +6 -6
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +5 -5
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +9 -6
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +8 -9
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +5 -8
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +2 -2
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +11 -5
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +4 -4
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +6 -10
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +4 -7
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +6 -4
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +6 -6
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +5 -5
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +8 -5
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +13 -9
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +5 -12
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +4 -4
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +4 -4
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +13 -6
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +4 -10
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +8 -7
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +68 -9
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +8 -68
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +31 -8
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +10 -31
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +16 -10
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +200 -15
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +21 -201
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +12 -16
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +123 -17
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +18 -122
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +9 -19
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +9 -8
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +11 -7
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +7 -11
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +6 -6
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +4 -9
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +42 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +368 -29
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +37 -379
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +22 -39
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +56 -20
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +7 -57
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +4 -6
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +3 -3
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +3 -3
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +3 -3
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +5 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +3 -3
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +10 -6
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +7 -10
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +6 -7
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +5 -6
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +7 -5
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +48 -8
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +104 -46
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +8 -103
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -9
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +3 -3
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +6 -7
- package/dist/index99.js.map +1 -1
- package/package.json +2 -2
- package/dist/index233.js.map +0 -1
- package/dist/index236.js.map +0 -1
- package/dist/index28.js.map +0 -1
- package/dist/index313.js +0 -272
- package/dist/index313.js.map +0 -1
package/dist/index161.js
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
//#region ../../node_modules/react-day-picker/dist/esm/helpers/
|
|
2
|
-
function e(e, t, n, r) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
o
|
|
7
|
-
}
|
|
8
|
-
return
|
|
1
|
+
//#region ../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js
|
|
2
|
+
function e(e, t, n, r, i = !1) {
|
|
3
|
+
if (!e || !t) return;
|
|
4
|
+
let { startOfYear: a, endOfYear: o, eachYearOfInterval: s, getYear: c } = r, l = s({
|
|
5
|
+
start: a(e),
|
|
6
|
+
end: o(t)
|
|
7
|
+
});
|
|
8
|
+
return i && l.reverse(), l.map((e) => {
|
|
9
|
+
let t = n.formatYearDropdown(e, r);
|
|
10
|
+
return {
|
|
11
|
+
value: c(e),
|
|
12
|
+
label: t,
|
|
13
|
+
disabled: !1
|
|
14
|
+
};
|
|
15
|
+
});
|
|
9
16
|
}
|
|
10
17
|
//#endregion
|
|
11
|
-
export { e as
|
|
18
|
+
export { e as getYearOptions };
|
|
12
19
|
|
|
13
20
|
//# sourceMappingURL=index161.js.map
|
package/dist/index161.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index161.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/helpers/
|
|
1
|
+
{"version":3,"file":"index161.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the year labels.\n * @param dateLib The date library to use for date manipulation.\n * @param reverse If true, reverses the order of the years (descending).\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib, reverse = false) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, eachYearOfInterval, getYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = eachYearOfInterval({ start: firstNavYear, end: lastNavYear });\n if (reverse)\n years.reverse();\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false,\n };\n });\n}\n"],"x_google_ignoreList":[0],"mappings":";AAcA,SAAgB,EAAe,GAAU,GAAQ,GAAY,GAAS,IAAU,IAAO;AAGnF,KAFI,CAAC,KAED,CAAC,EACD;CACJ,IAAM,EAAE,gBAAa,cAAW,uBAAoB,eAAY,GAG1D,IAAQ,EAAmB;EAAE,OAFd,EAAY,EAAS;EAEc,KADpC,EAAU,EAAO;EACqC,CAAC;AAG3E,QAFI,KACA,EAAM,SAAS,EACZ,EAAM,KAAK,MAAS;EACvB,IAAM,IAAQ,EAAW,mBAAmB,GAAM,EAAQ;AAC1D,SAAO;GACH,OAAO,EAAQ,EAAK;GACpB;GACA,UAAU;GACb;GACH"}
|
package/dist/index162.js
CHANGED
|
@@ -1,20 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
import { TZDate as e } from "./index27.js";
|
|
2
|
+
import "./index29.js";
|
|
3
|
+
import t from "./index42.js";
|
|
4
|
+
import n from "./index51.js";
|
|
5
|
+
import r from "./index72.js";
|
|
6
|
+
import i from "./index75.js";
|
|
7
|
+
//#region ../../node_modules/react-day-picker/dist/esm/noonDateLib.js
|
|
8
|
+
function a(a, o = {}) {
|
|
9
|
+
let { weekStartsOn: s, locale: c } = o, l = s ?? c?.options?.weekStartsOn ?? 0, u = (t) => {
|
|
10
|
+
let n = typeof t == "number" || typeof t == "string" ? new Date(t) : t;
|
|
11
|
+
return new e(n.getFullYear(), n.getMonth(), n.getDate(), 12, 0, 0, a);
|
|
12
|
+
}, d = (e) => {
|
|
13
|
+
let t = u(e);
|
|
14
|
+
return new Date(t.getFullYear(), t.getMonth(), t.getDate(), 0, 0, 0, 0);
|
|
15
|
+
};
|
|
16
|
+
return {
|
|
17
|
+
today: () => u(e.tz(a)),
|
|
18
|
+
newDate: (t, n, r) => new e(t, n, r, 12, 0, 0, a),
|
|
19
|
+
startOfDay: (e) => u(e),
|
|
20
|
+
startOfWeek: (e, t) => {
|
|
21
|
+
let n = u(e), r = t?.weekStartsOn ?? l, i = (n.getDay() - r + 7) % 7;
|
|
22
|
+
return n.setDate(n.getDate() - i), n;
|
|
23
|
+
},
|
|
24
|
+
startOfISOWeek: (e) => {
|
|
25
|
+
let t = u(e), n = (t.getDay() - 1 + 7) % 7;
|
|
26
|
+
return t.setDate(t.getDate() - n), t;
|
|
27
|
+
},
|
|
28
|
+
startOfMonth: (e) => {
|
|
29
|
+
let t = u(e);
|
|
30
|
+
return t.setDate(1), t;
|
|
31
|
+
},
|
|
32
|
+
startOfYear: (e) => {
|
|
33
|
+
let t = u(e);
|
|
34
|
+
return t.setMonth(0, 1), t;
|
|
35
|
+
},
|
|
36
|
+
endOfWeek: (e, t) => {
|
|
37
|
+
let n = u(e), r = (((t?.weekStartsOn ?? l) + 6) % 7 - n.getDay() + 7) % 7;
|
|
38
|
+
return n.setDate(n.getDate() + r), n;
|
|
39
|
+
},
|
|
40
|
+
endOfISOWeek: (e) => {
|
|
41
|
+
let t = u(e), n = (7 - t.getDay()) % 7;
|
|
42
|
+
return t.setDate(t.getDate() + n), t;
|
|
43
|
+
},
|
|
44
|
+
endOfMonth: (e) => {
|
|
45
|
+
let t = u(e);
|
|
46
|
+
return t.setMonth(t.getMonth() + 1, 0), t;
|
|
47
|
+
},
|
|
48
|
+
endOfYear: (e) => {
|
|
49
|
+
let t = u(e);
|
|
50
|
+
return t.setMonth(11, 31), t;
|
|
51
|
+
},
|
|
52
|
+
eachMonthOfInterval: (t) => {
|
|
53
|
+
let n = u(t.start), r = u(t.end), i = [], o = new e(n.getFullYear(), n.getMonth(), 1, 12, 0, 0, a), s = r.getFullYear() * 12 + r.getMonth();
|
|
54
|
+
for (; o.getFullYear() * 12 + o.getMonth() <= s;) i.push(new e(o, a)), o.setMonth(o.getMonth() + 1, 1);
|
|
55
|
+
return i;
|
|
56
|
+
},
|
|
57
|
+
addDays: (e, t) => {
|
|
58
|
+
let n = u(e);
|
|
59
|
+
return n.setDate(n.getDate() + t), n;
|
|
60
|
+
},
|
|
61
|
+
addWeeks: (e, t) => {
|
|
62
|
+
let n = u(e);
|
|
63
|
+
return n.setDate(n.getDate() + t * 7), n;
|
|
64
|
+
},
|
|
65
|
+
addMonths: (e, t) => {
|
|
66
|
+
let n = u(e);
|
|
67
|
+
return n.setMonth(n.getMonth() + t), n;
|
|
68
|
+
},
|
|
69
|
+
addYears: (e, t) => {
|
|
70
|
+
let n = u(e);
|
|
71
|
+
return n.setFullYear(n.getFullYear() + t), n;
|
|
72
|
+
},
|
|
73
|
+
eachYearOfInterval: (t) => {
|
|
74
|
+
let n = u(t.start), r = u(t.end), i = [], o = new e(n.getFullYear(), 0, 1, 12, 0, 0, a);
|
|
75
|
+
for (; o.getFullYear() <= r.getFullYear();) i.push(new e(o, a)), o.setFullYear(o.getFullYear() + 1, 0, 1);
|
|
76
|
+
return i;
|
|
77
|
+
},
|
|
78
|
+
getWeek: (e, t) => i(d(e), {
|
|
79
|
+
weekStartsOn: t?.weekStartsOn ?? l,
|
|
80
|
+
firstWeekContainsDate: t?.firstWeekContainsDate ?? c?.options?.firstWeekContainsDate ?? 1
|
|
81
|
+
}),
|
|
82
|
+
getISOWeek: (e) => r(d(e)),
|
|
83
|
+
differenceInCalendarDays: (e, n) => t(d(e), d(n)),
|
|
84
|
+
differenceInCalendarMonths: (e, t) => n(d(e), d(t))
|
|
85
|
+
};
|
|
16
86
|
}
|
|
17
87
|
//#endregion
|
|
18
|
-
export {
|
|
88
|
+
export { a as createNoonOverrides };
|
|
19
89
|
|
|
20
90
|
//# sourceMappingURL=index162.js.map
|
package/dist/index162.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index162.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/
|
|
1
|
+
{"version":3,"file":"index162.js","names":["getWeekFn","getISOWeekFn","differenceInCalendarDaysFn","differenceInCalendarMonthsFn"],"sources":["../../../node_modules/react-day-picker/dist/esm/noonDateLib.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { differenceInCalendarDays as differenceInCalendarDaysFn, differenceInCalendarMonths as differenceInCalendarMonthsFn, getISOWeek as getISOWeekFn, getWeek as getWeekFn, } from \"date-fns\";\n/**\n * Creates `dateLib` overrides that keep all calendar math at noon in the target\n * time zone. This avoids second-level offset changes (e.g., historical zones\n * with +03:41:12) from pushing dates backward across midnight.\n */\nexport function createNoonOverrides(timeZone, options = {}) {\n const { weekStartsOn, locale } = options;\n const fallbackWeekStartsOn = (weekStartsOn ??\n locale?.options?.weekStartsOn ??\n 0);\n // Keep all internal math anchored at noon in the target zone to avoid\n // historical second-level offsets from crossing midnight.\n const toNoonTZDate = (date) => {\n const normalizedDate = typeof date === \"number\" || typeof date === \"string\"\n ? new Date(date)\n : date;\n return new TZDate(normalizedDate.getFullYear(), normalizedDate.getMonth(), normalizedDate.getDate(), 12, 0, 0, timeZone);\n };\n // Convert a value into a host `Date` that represents the same calendar day\n // as the target-zone noon. This is useful for helpers (e.g., date-fns week\n // utilities) that expect local `Date` instances rather than `TZDate`s.\n const toCalendarDate = (date) => {\n const zoned = toNoonTZDate(date);\n return new Date(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 0, 0, 0, 0);\n };\n return {\n today: () => {\n return toNoonTZDate(TZDate.tz(timeZone));\n },\n newDate: (year, monthIndex, date) => {\n return new TZDate(year, monthIndex, date, 12, 0, 0, timeZone);\n },\n startOfDay: (date) => {\n return toNoonTZDate(date);\n },\n startOfWeek: (date, options) => {\n const base = toNoonTZDate(date);\n const weekStartsOnValue = (options?.weekStartsOn ??\n fallbackWeekStartsOn);\n const diff = (base.getDay() - weekStartsOnValue + 7) % 7;\n base.setDate(base.getDate() - diff);\n return base;\n },\n startOfISOWeek: (date) => {\n const base = toNoonTZDate(date);\n const diff = (base.getDay() - 1 + 7) % 7;\n base.setDate(base.getDate() - diff);\n return base;\n },\n startOfMonth: (date) => {\n const base = toNoonTZDate(date);\n base.setDate(1);\n return base;\n },\n startOfYear: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(0, 1);\n return base;\n },\n endOfWeek: (date, options) => {\n const base = toNoonTZDate(date);\n const weekStartsOnValue = (options?.weekStartsOn ??\n fallbackWeekStartsOn);\n const endDow = (weekStartsOnValue + 6) % 7;\n const diff = (endDow - base.getDay() + 7) % 7;\n base.setDate(base.getDate() + diff);\n return base;\n },\n endOfISOWeek: (date) => {\n const base = toNoonTZDate(date);\n const diff = (7 - base.getDay()) % 7;\n base.setDate(base.getDate() + diff);\n return base;\n },\n endOfMonth: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(base.getMonth() + 1, 0);\n return base;\n },\n endOfYear: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(11, 31);\n return base;\n },\n eachMonthOfInterval: (interval) => {\n const start = toNoonTZDate(interval.start);\n const end = toNoonTZDate(interval.end);\n const result = [];\n const cursor = new TZDate(start.getFullYear(), start.getMonth(), 1, 12, 0, 0, timeZone);\n const endKey = end.getFullYear() * 12 + end.getMonth();\n while (cursor.getFullYear() * 12 + cursor.getMonth() <= endKey) {\n result.push(new TZDate(cursor, timeZone));\n cursor.setMonth(cursor.getMonth() + 1, 1);\n }\n return result;\n },\n // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),\n // mutate the same TZDate, and return it.\n addDays: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setDate(base.getDate() + amount);\n return base;\n },\n addWeeks: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setDate(base.getDate() + amount * 7);\n return base;\n },\n addMonths: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setMonth(base.getMonth() + amount);\n return base;\n },\n addYears: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setFullYear(base.getFullYear() + amount);\n return base;\n },\n eachYearOfInterval: (interval) => {\n const start = toNoonTZDate(interval.start);\n const end = toNoonTZDate(interval.end);\n const years = [];\n const cursor = new TZDate(start.getFullYear(), 0, 1, 12, 0, 0, timeZone);\n while (cursor.getFullYear() <= end.getFullYear()) {\n years.push(new TZDate(cursor, timeZone));\n cursor.setFullYear(cursor.getFullYear() + 1, 0, 1);\n }\n return years;\n },\n getWeek: (date, options) => {\n const base = toCalendarDate(date);\n return getWeekFn(base, {\n weekStartsOn: options?.weekStartsOn ?? fallbackWeekStartsOn,\n firstWeekContainsDate: options?.firstWeekContainsDate ??\n locale?.options?.firstWeekContainsDate ??\n 1,\n });\n },\n getISOWeek: (date) => {\n const base = toCalendarDate(date);\n return getISOWeekFn(base);\n },\n differenceInCalendarDays: (dateLeft, dateRight) => {\n const left = toCalendarDate(dateLeft);\n const right = toCalendarDate(dateRight);\n return differenceInCalendarDaysFn(left, right);\n },\n differenceInCalendarMonths: (dateLeft, dateRight) => {\n const left = toCalendarDate(dateLeft);\n const right = toCalendarDate(dateRight);\n return differenceInCalendarMonthsFn(left, right);\n },\n };\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAOA,SAAgB,EAAoB,GAAU,IAAU,EAAE,EAAE;CACxD,IAAM,EAAE,iBAAc,cAAW,GAC3B,IAAwB,KAC1B,GAAQ,SAAS,gBACjB,GAGE,KAAgB,MAAS;EAC3B,IAAM,IAAiB,OAAO,KAAS,YAAY,OAAO,KAAS,WAC7D,IAAI,KAAK,EAAK,GACd;AACN,SAAO,IAAI,EAAO,EAAe,aAAa,EAAE,EAAe,UAAU,EAAE,EAAe,SAAS,EAAE,IAAI,GAAG,GAAG,EAAS;IAKtH,KAAkB,MAAS;EAC7B,IAAM,IAAQ,EAAa,EAAK;AAChC,SAAO,IAAI,KAAK,EAAM,aAAa,EAAE,EAAM,UAAU,EAAE,EAAM,SAAS,EAAE,GAAG,GAAG,GAAG,EAAE;;AAEvF,QAAO;EACH,aACW,EAAa,EAAO,GAAG,EAAS,CAAC;EAE5C,UAAU,GAAM,GAAY,MACjB,IAAI,EAAO,GAAM,GAAY,GAAM,IAAI,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EAAe,EAAK,CACR;EAE7B,2BAA2B,GAAU,MAG1BC,EAFM,EAAe,EAAS,EACvB,EAAe,EAAU,CACO;EAElD,6BAA6B,GAAU,MAG5BC,EAFM,EAAe,EAAS,EACvB,EAAe,EAAU,CACS;EAEvD"}
|
package/dist/index163.js
CHANGED
|
@@ -1,90 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
let n =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
endOfYear: (e) => {
|
|
49
|
-
let t = u(e);
|
|
50
|
-
return t.setMonth(11, 31), t;
|
|
51
|
-
},
|
|
52
|
-
eachMonthOfInterval: (t) => {
|
|
53
|
-
let n = u(t.start), r = u(t.end), i = [], o = new e(n.getFullYear(), n.getMonth(), 1, 12, 0, 0, a), s = r.getFullYear() * 12 + r.getMonth();
|
|
54
|
-
for (; o.getFullYear() * 12 + o.getMonth() <= s;) i.push(new e(o, a)), o.setMonth(o.getMonth() + 1, 1);
|
|
55
|
-
return i;
|
|
56
|
-
},
|
|
57
|
-
addDays: (e, t) => {
|
|
58
|
-
let n = u(e);
|
|
59
|
-
return n.setDate(n.getDate() + t), n;
|
|
60
|
-
},
|
|
61
|
-
addWeeks: (e, t) => {
|
|
62
|
-
let n = u(e);
|
|
63
|
-
return n.setDate(n.getDate() + t * 7), n;
|
|
64
|
-
},
|
|
65
|
-
addMonths: (e, t) => {
|
|
66
|
-
let n = u(e);
|
|
67
|
-
return n.setMonth(n.getMonth() + t), n;
|
|
68
|
-
},
|
|
69
|
-
addYears: (e, t) => {
|
|
70
|
-
let n = u(e);
|
|
71
|
-
return n.setFullYear(n.getFullYear() + t), n;
|
|
72
|
-
},
|
|
73
|
-
eachYearOfInterval: (t) => {
|
|
74
|
-
let n = u(t.start), r = u(t.end), i = [], o = new e(n.getFullYear(), 0, 1, 12, 0, 0, a);
|
|
75
|
-
for (; o.getFullYear() <= r.getFullYear();) i.push(new e(o, a)), o.setFullYear(o.getFullYear() + 1, 0, 1);
|
|
76
|
-
return i;
|
|
77
|
-
},
|
|
78
|
-
getWeek: (e, t) => i(d(e), {
|
|
79
|
-
weekStartsOn: t?.weekStartsOn ?? l,
|
|
80
|
-
firstWeekContainsDate: t?.firstWeekContainsDate ?? c?.options?.firstWeekContainsDate ?? 1
|
|
81
|
-
}),
|
|
82
|
-
getISOWeek: (e) => r(d(e)),
|
|
83
|
-
differenceInCalendarDays: (e, n) => t(d(e), d(n)),
|
|
84
|
-
differenceInCalendarMonths: (e, t) => n(d(e), d(t))
|
|
85
|
-
};
|
|
1
|
+
import { Animation as e } from "./index104.js";
|
|
2
|
+
import { useLayoutEffect as t, useRef as n } from "react";
|
|
3
|
+
//#region ../../node_modules/react-day-picker/dist/esm/useAnimation.js
|
|
4
|
+
var r = (e) => e instanceof HTMLElement ? e : null, i = (e) => [...e.querySelectorAll("[data-animated-month]") ?? []], a = (e) => r(e.querySelector("[data-animated-month]")), o = (e) => r(e.querySelector("[data-animated-caption]")), s = (e) => r(e.querySelector("[data-animated-weeks]")), c = (e) => r(e.querySelector("[data-animated-nav]")), l = (e) => r(e.querySelector("[data-animated-weekdays]"));
|
|
5
|
+
function u(r, u, { classNames: d, months: f, focused: p, dateLib: m }) {
|
|
6
|
+
let h = n(null), g = n(f), _ = n(!1);
|
|
7
|
+
t(() => {
|
|
8
|
+
let t = g.current;
|
|
9
|
+
if (g.current = f, !u || !r.current || !(r.current instanceof HTMLElement) || f.length === 0 || t.length === 0 || f.length !== t.length) return;
|
|
10
|
+
let n = m.isSameMonth(f[0].date, t[0].date), v = m.isAfter(f[0].date, t[0].date), y = v ? d[e.caption_after_enter] : d[e.caption_before_enter], b = v ? d[e.weeks_after_enter] : d[e.weeks_before_enter], x = h.current, S = r.current.cloneNode(!0);
|
|
11
|
+
if (S instanceof HTMLElement ? (i(S).forEach((e) => {
|
|
12
|
+
if (!(e instanceof HTMLElement)) return;
|
|
13
|
+
let t = a(e);
|
|
14
|
+
t && e.contains(t) && e.removeChild(t);
|
|
15
|
+
let n = o(e);
|
|
16
|
+
n && n.classList.remove(y);
|
|
17
|
+
let r = s(e);
|
|
18
|
+
r && r.classList.remove(b);
|
|
19
|
+
}), h.current = S) : h.current = null, _.current || n || p) return;
|
|
20
|
+
let C = x instanceof HTMLElement ? i(x) : [], w = i(r.current);
|
|
21
|
+
if (w?.every((e) => e instanceof HTMLElement) && C && C.every((e) => e instanceof HTMLElement)) {
|
|
22
|
+
_.current = !0;
|
|
23
|
+
let t = [];
|
|
24
|
+
r.current.style.isolation = "isolate";
|
|
25
|
+
let n = c(r.current);
|
|
26
|
+
n && (n.style.zIndex = "1"), w.forEach((i, a) => {
|
|
27
|
+
let c = C[a];
|
|
28
|
+
if (!c) return;
|
|
29
|
+
i.style.position = "relative", i.style.overflow = "hidden";
|
|
30
|
+
let u = o(i);
|
|
31
|
+
u && u.classList.add(y);
|
|
32
|
+
let f = s(i);
|
|
33
|
+
f && f.classList.add(b);
|
|
34
|
+
let p = () => {
|
|
35
|
+
_.current = !1, r.current && (r.current.style.isolation = ""), n && (n.style.zIndex = ""), u && u.classList.remove(y), f && f.classList.remove(b), i.style.position = "", i.style.overflow = "", i.contains(c) && i.removeChild(c);
|
|
36
|
+
};
|
|
37
|
+
t.push(p), c.style.pointerEvents = "none", c.style.position = "absolute", c.style.overflow = "hidden", c.setAttribute("aria-hidden", "true");
|
|
38
|
+
let m = l(c);
|
|
39
|
+
m && (m.style.opacity = "0");
|
|
40
|
+
let h = o(c);
|
|
41
|
+
h && (h.classList.add(v ? d[e.caption_before_exit] : d[e.caption_after_exit]), h.addEventListener("animationend", p));
|
|
42
|
+
let g = s(c);
|
|
43
|
+
g && g.classList.add(v ? d[e.weeks_before_exit] : d[e.weeks_after_exit]), i.insertBefore(c, i.firstChild);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
});
|
|
86
47
|
}
|
|
87
48
|
//#endregion
|
|
88
|
-
export {
|
|
49
|
+
export { u as useAnimation };
|
|
89
50
|
|
|
90
51
|
//# sourceMappingURL=index163.js.map
|
package/dist/index163.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index163.js","names":["getWeekFn","getISOWeekFn","differenceInCalendarDaysFn","differenceInCalendarMonthsFn"],"sources":["../../../node_modules/react-day-picker/dist/esm/noonDateLib.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\nimport { differenceInCalendarDays as differenceInCalendarDaysFn, differenceInCalendarMonths as differenceInCalendarMonthsFn, getISOWeek as getISOWeekFn, getWeek as getWeekFn, } from \"date-fns\";\n/**\n * Creates `dateLib` overrides that keep all calendar math at noon in the target\n * time zone. This avoids second-level offset changes (e.g., historical zones\n * with +03:41:12) from pushing dates backward across midnight.\n */\nexport function createNoonOverrides(timeZone, options = {}) {\n const { weekStartsOn, locale } = options;\n const fallbackWeekStartsOn = (weekStartsOn ??\n locale?.options?.weekStartsOn ??\n 0);\n // Keep all internal math anchored at noon in the target zone to avoid\n // historical second-level offsets from crossing midnight.\n const toNoonTZDate = (date) => {\n const normalizedDate = typeof date === \"number\" || typeof date === \"string\"\n ? new Date(date)\n : date;\n return new TZDate(normalizedDate.getFullYear(), normalizedDate.getMonth(), normalizedDate.getDate(), 12, 0, 0, timeZone);\n };\n // Convert a value into a host `Date` that represents the same calendar day\n // as the target-zone noon. This is useful for helpers (e.g., date-fns week\n // utilities) that expect local `Date` instances rather than `TZDate`s.\n const toCalendarDate = (date) => {\n const zoned = toNoonTZDate(date);\n return new Date(zoned.getFullYear(), zoned.getMonth(), zoned.getDate(), 0, 0, 0, 0);\n };\n return {\n today: () => {\n return toNoonTZDate(TZDate.tz(timeZone));\n },\n newDate: (year, monthIndex, date) => {\n return new TZDate(year, monthIndex, date, 12, 0, 0, timeZone);\n },\n startOfDay: (date) => {\n return toNoonTZDate(date);\n },\n startOfWeek: (date, options) => {\n const base = toNoonTZDate(date);\n const weekStartsOnValue = (options?.weekStartsOn ??\n fallbackWeekStartsOn);\n const diff = (base.getDay() - weekStartsOnValue + 7) % 7;\n base.setDate(base.getDate() - diff);\n return base;\n },\n startOfISOWeek: (date) => {\n const base = toNoonTZDate(date);\n const diff = (base.getDay() - 1 + 7) % 7;\n base.setDate(base.getDate() - diff);\n return base;\n },\n startOfMonth: (date) => {\n const base = toNoonTZDate(date);\n base.setDate(1);\n return base;\n },\n startOfYear: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(0, 1);\n return base;\n },\n endOfWeek: (date, options) => {\n const base = toNoonTZDate(date);\n const weekStartsOnValue = (options?.weekStartsOn ??\n fallbackWeekStartsOn);\n const endDow = (weekStartsOnValue + 6) % 7;\n const diff = (endDow - base.getDay() + 7) % 7;\n base.setDate(base.getDate() + diff);\n return base;\n },\n endOfISOWeek: (date) => {\n const base = toNoonTZDate(date);\n const diff = (7 - base.getDay()) % 7;\n base.setDate(base.getDate() + diff);\n return base;\n },\n endOfMonth: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(base.getMonth() + 1, 0);\n return base;\n },\n endOfYear: (date) => {\n const base = toNoonTZDate(date);\n base.setMonth(11, 31);\n return base;\n },\n eachMonthOfInterval: (interval) => {\n const start = toNoonTZDate(interval.start);\n const end = toNoonTZDate(interval.end);\n const result = [];\n const cursor = new TZDate(start.getFullYear(), start.getMonth(), 1, 12, 0, 0, timeZone);\n const endKey = end.getFullYear() * 12 + end.getMonth();\n while (cursor.getFullYear() * 12 + cursor.getMonth() <= endKey) {\n result.push(new TZDate(cursor, timeZone));\n cursor.setMonth(cursor.getMonth() + 1, 1);\n }\n return result;\n },\n // Normalize to noon once before arithmetic (avoid DST/midnight edge cases),\n // mutate the same TZDate, and return it.\n addDays: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setDate(base.getDate() + amount);\n return base;\n },\n addWeeks: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setDate(base.getDate() + amount * 7);\n return base;\n },\n addMonths: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setMonth(base.getMonth() + amount);\n return base;\n },\n addYears: (date, amount) => {\n const base = toNoonTZDate(date);\n base.setFullYear(base.getFullYear() + amount);\n return base;\n },\n eachYearOfInterval: (interval) => {\n const start = toNoonTZDate(interval.start);\n const end = toNoonTZDate(interval.end);\n const years = [];\n const cursor = new TZDate(start.getFullYear(), 0, 1, 12, 0, 0, timeZone);\n while (cursor.getFullYear() <= end.getFullYear()) {\n years.push(new TZDate(cursor, timeZone));\n cursor.setFullYear(cursor.getFullYear() + 1, 0, 1);\n }\n return years;\n },\n getWeek: (date, options) => {\n const base = toCalendarDate(date);\n return getWeekFn(base, {\n weekStartsOn: options?.weekStartsOn ?? fallbackWeekStartsOn,\n firstWeekContainsDate: options?.firstWeekContainsDate ??\n locale?.options?.firstWeekContainsDate ??\n 1,\n });\n },\n getISOWeek: (date) => {\n const base = toCalendarDate(date);\n return getISOWeekFn(base);\n },\n differenceInCalendarDays: (dateLeft, dateRight) => {\n const left = toCalendarDate(dateLeft);\n const right = toCalendarDate(dateRight);\n return differenceInCalendarDaysFn(left, right);\n },\n differenceInCalendarMonths: (dateLeft, dateRight) => {\n const left = toCalendarDate(dateLeft);\n const right = toCalendarDate(dateRight);\n return differenceInCalendarMonthsFn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EAAK,UAAU,GAAG,EAAO,EAChC;;EAEX,WAAW,GAAM,MAAW;GACxB,IAAM,IAAO,EAAa,EAAK;AAE/B,UADA,EAAK,YAAY,EAAK,aAAa,GAAG,EAAO,EACtC;;EAEX,qBAAqB,MAAa;GAC9B,IAAM,IAAQ,EAAa,EAAS,MAAM,EACpC,IAAM,EAAa,EAAS,IAAI,EAChC,IAAQ,EAAE,EACV,IAAS,IAAI,EAAO,EAAM,aAAa,EAAE,GAAG,GAAG,IAAI,GAAG,GAAG,EAAS;AACxE,UAAO,EAAO,aAAa,IAAI,EAAI,aAAa,EAE5C,CADA,EAAM,KAAK,IAAI,EAAO,GAAQ,EAAS,CAAC,EACxC,EAAO,YAAY,EAAO,aAAa,GAAG,GAAG,GAAG,EAAE;AAEtD,UAAO;;EAEX,UAAU,GAAM,MAELA,EADM,EAAe,EAAK,EACV;GACnB,cAAc,GAAS,gBAAgB;GACvC,uBAAuB,GAAS,yBAC5B,GAAQ,SAAS,yBACjB;GACP,CAAC;EAEN,aAAa,MAEFC,EADM,EAAe,EAAK,CACR;EAE7B,2BAA2B,GAAU,MAG1BC,EAFM,EAAe,EAAS,EACvB,EAAe,EAAU,CACO;EAElD,6BAA6B,GAAU,MAG5BC,EAFM,EAAe,EAAS,EACvB,EAAe,EAAU,CACS;EAEvD"}
|
|
1
|
+
{"version":3,"file":"index163.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? []),\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib, }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&\n previousMonthEls &&\n previousMonthEls.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAM,KAAiB,MACf,aAAmB,cACZ,IACJ,MAEL,KAAiB,MAAY,CAC/B,GAAI,EAAQ,iBAAiB,wBAAwB,IAAI,EAAE,CAC9D,EACK,KAAgB,MAAY,EAAc,EAAQ,cAAc,wBAAwB,CAAC,EACzF,KAAkB,MAAY,EAAc,EAAQ,cAAc,0BAA0B,CAAC,EAC7F,KAAgB,MAAY,EAAc,EAAQ,cAAc,wBAAwB,CAAC,EACzF,KAAc,MAAY,EAAc,EAAQ,cAAc,sBAAsB,CAAC,EACr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AU,qBACrB,EAAW,EAAU,kBAAkB,EAEjD,EAAe,aAAa,GAAiB,EAAe,WAAW;KACzE;;GAER"}
|
package/dist/index164.js
CHANGED
|
@@ -1,51 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
t && e.contains(t) && e.removeChild(t);
|
|
15
|
-
let n = o(e);
|
|
16
|
-
n && n.classList.remove(y);
|
|
17
|
-
let r = s(e);
|
|
18
|
-
r && r.classList.remove(b);
|
|
19
|
-
}), h.current = S) : h.current = null, _.current || n || p) return;
|
|
20
|
-
let C = x instanceof HTMLElement ? i(x) : [], w = i(r.current);
|
|
21
|
-
if (w?.every((e) => e instanceof HTMLElement) && C && C.every((e) => e instanceof HTMLElement)) {
|
|
22
|
-
_.current = !0;
|
|
23
|
-
let t = [];
|
|
24
|
-
r.current.style.isolation = "isolate";
|
|
25
|
-
let n = c(r.current);
|
|
26
|
-
n && (n.style.zIndex = "1"), w.forEach((i, a) => {
|
|
27
|
-
let c = C[a];
|
|
28
|
-
if (!c) return;
|
|
29
|
-
i.style.position = "relative", i.style.overflow = "hidden";
|
|
30
|
-
let u = o(i);
|
|
31
|
-
u && u.classList.add(y);
|
|
32
|
-
let f = s(i);
|
|
33
|
-
f && f.classList.add(b);
|
|
34
|
-
let p = () => {
|
|
35
|
-
_.current = !1, r.current && (r.current.style.isolation = ""), n && (n.style.zIndex = ""), u && u.classList.remove(y), f && f.classList.remove(b), i.style.position = "", i.style.overflow = "", i.contains(c) && i.removeChild(c);
|
|
36
|
-
};
|
|
37
|
-
t.push(p), c.style.pointerEvents = "none", c.style.position = "absolute", c.style.overflow = "hidden", c.setAttribute("aria-hidden", "true");
|
|
38
|
-
let m = l(c);
|
|
39
|
-
m && (m.style.opacity = "0");
|
|
40
|
-
let h = o(c);
|
|
41
|
-
h && (h.classList.add(v ? d[e.caption_before_exit] : d[e.caption_after_exit]), h.addEventListener("animationend", p));
|
|
42
|
-
let g = s(c);
|
|
43
|
-
g && g.classList.add(v ? d[e.weeks_before_exit] : d[e.weeks_after_exit]), i.insertBefore(c, i.firstChild);
|
|
44
|
-
});
|
|
1
|
+
//#region ../../node_modules/react-day-picker/dist/esm/helpers/getDates.js
|
|
2
|
+
function e(e, t, n, r) {
|
|
3
|
+
let i = e[0], a = e[e.length - 1], { ISOWeek: o, fixedWeeks: s, broadcastCalendar: c } = n ?? {}, { addDays: l, differenceInCalendarDays: u, differenceInCalendarMonths: d, endOfBroadcastWeek: f, endOfISOWeek: p, endOfMonth: m, endOfWeek: h, isAfter: g, startOfBroadcastWeek: _, startOfISOWeek: v, startOfWeek: y } = r, b = c ? _(i, r) : o ? v(i) : y(i), x = c ? f(a) : o ? p(m(a)) : h(m(a)), S = t && (c ? f(t) : o ? p(t) : h(t)), C = u(S && g(x, S) ? S : x, b), w = d(a, i) + 1, T = [];
|
|
4
|
+
for (let e = 0; e <= C; e++) {
|
|
5
|
+
let t = l(b, e);
|
|
6
|
+
T.push(t);
|
|
7
|
+
}
|
|
8
|
+
let E = (c ? 35 : 42) * w;
|
|
9
|
+
if (s && T.length < E) {
|
|
10
|
+
let e = E - T.length;
|
|
11
|
+
for (let t = 0; t < e; t++) {
|
|
12
|
+
let e = l(T[T.length - 1], 1);
|
|
13
|
+
T.push(e);
|
|
45
14
|
}
|
|
46
|
-
}
|
|
15
|
+
}
|
|
16
|
+
return T;
|
|
47
17
|
}
|
|
48
18
|
//#endregion
|
|
49
|
-
export {
|
|
19
|
+
export { e as getDates };
|
|
50
20
|
|
|
51
21
|
//# sourceMappingURL=index164.js.map
|
package/dist/index164.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index164.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? []),\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib, }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&\n previousMonthEls &&\n previousMonthEls.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAM,KAAiB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AO;IAEnD,IAAM,IAAqB,EAAgB,EAAgB;AAC3D,IAAI,MACA,EAAmB,MAAM,UAAU;IAEvC,IAAM,IAAoB,EAAe,EAAgB;AACzD,IAAI,MACA,EAAkB,UAAU,IAAI,IAC1B,EAAW,EAAU,uBACrB,EAAW,EAAU,oBAAoB,EAC/C,EAAkB,iBAAiB,gBAAgB,EAAQ;IAE/D,IAAM,IAAkB,EAAa,EAAgB;AAMrD,IALI,KACA,EAAgB,UAAU,IAAI,IACxB,EAAW,EAAU,qBACrB,EAAW,EAAU,kBAAkB,EAEjD,EAAe,aAAa,GAAiB,EAAe,WAAW;KACzE;;GAER"}
|
|
1
|
+
{"version":3,"file":"index164.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/**\n * Returns all the dates to display in the calendar.\n *\n * This function calculates the range of dates to display based on the provided\n * display months, constraints, and calendar configuration.\n *\n * @param displayMonths The months to display in the calendar.\n * @param maxDate The maximum date to include in the range.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates to display in the calendar.\n */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const displayMonthsWeekEnd = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n // If maxDate is set, clamp the grid to the end of that week.\n const constraintWeekEnd = maxDate &&\n (broadcastCalendar\n ? endOfBroadcastWeek(maxDate)\n : ISOWeek\n ? endOfISOWeek(maxDate)\n : endOfWeek(maxDate));\n // Pick the earliest week end between the displayed months and the constraint.\n const gridEndDate = constraintWeekEnd && isAfter(displayMonthsWeekEnd, constraintWeekEnd)\n ? constraintWeekEnd\n : displayMonthsWeekEnd;\n const nOfDays = differenceInCalendarDays(gridEndDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n"],"x_google_ignoreList":[0],"mappings":";AAYA,SAAgB,EAAS,GAAe,GAAS,GAAO,GAAS;CAC7D,IAAM,IAAa,EAAc,IAC3B,IAAY,EAAc,EAAc,SAAS,IACjD,EAAE,YAAS,eAAY,yBAAsB,KAAS,EAAE,EACxD,EAAE,YAAS,6BAA0B,+BAA4B,uBAAoB,iBAAc,eAAY,cAAW,YAAS,yBAAsB,mBAAgB,mBAAiB,GAC1L,IAAqB,IACrB,EAAqB,GAAY,EAAQ,GACzC,IACI,EAAe,EAAW,GAC1B,EAAY,EAAW,EAC3B,IAAuB,IACvB,EAAmB,EAAU,GAC7B,IACI,EAAa,EAAW,EAAU,CAAC,GACnC,EAAU,EAAW,EAAU,CAAC,EAEpC,IAAoB,MACrB,IACK,EAAmB,EAAQ,GAC3B,IACI,EAAa,EAAQ,GACrB,EAAU,EAAQ,GAK1B,IAAU,EAHI,KAAqB,EAAQ,GAAsB,EAAkB,GACnF,IACA,GACgD,EAAmB,EACnE,IAAY,EAA2B,GAAW,EAAW,GAAG,GAChE,IAAQ,EAAE;AAChB,MAAK,IAAI,IAAI,GAAG,KAAK,GAAS,KAAK;EAC/B,IAAM,IAAO,EAAQ,GAAoB,EAAE;AAC3C,IAAM,KAAK,EAAK;;CAIpB,IAAM,KADyB,IAAoB,KAAK,MACZ;AAC5C,KAAI,KAAc,EAAM,SAAS,GAAY;EACzC,IAAM,IAAY,IAAa,EAAM;AACrC,OAAK,IAAI,IAAI,GAAG,IAAI,GAAW,KAAK;GAChC,IAAM,IAAO,EAAQ,EAAM,EAAM,SAAS,IAAI,EAAE;AAChD,KAAM,KAAK,EAAK;;;AAGxB,QAAO"}
|
package/dist/index165.js
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
//#region ../../node_modules/react-day-picker/dist/esm/helpers/
|
|
2
|
-
function e(e
|
|
3
|
-
let
|
|
4
|
-
|
|
5
|
-
let
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
let E = (c ? 35 : 42) * w;
|
|
9
|
-
if (s && T.length < E) {
|
|
10
|
-
let e = E - T.length;
|
|
11
|
-
for (let t = 0; t < e; t++) {
|
|
12
|
-
let e = l(T[T.length - 1], 1);
|
|
13
|
-
T.push(e);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return T;
|
|
1
|
+
//#region ../../node_modules/react-day-picker/dist/esm/helpers/getDays.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = [];
|
|
4
|
+
return e.reduce((e, n) => {
|
|
5
|
+
let r = n.weeks.reduce((e, t) => e.concat(t.days.slice()), t.slice());
|
|
6
|
+
return e.concat(r.slice());
|
|
7
|
+
}, t.slice());
|
|
17
8
|
}
|
|
18
9
|
//#endregion
|
|
19
|
-
export { e as
|
|
10
|
+
export { e as getDays };
|
|
20
11
|
|
|
21
12
|
//# sourceMappingURL=index165.js.map
|
package/dist/index165.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index165.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/helpers/
|
|
1
|
+
{"version":3,"file":"index165.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return weekDays.concat(week.days.slice());\n }, initialDays.slice());\n return days.concat(weekDays.slice());\n }, initialDays.slice());\n}\n"],"x_google_ignoreList":[0],"mappings":";AAQA,SAAgB,EAAQ,GAAgB;CACpC,IAAM,IAAc,EAAE;AACtB,QAAO,EAAe,QAAQ,GAAM,MAAU;EAC1C,IAAM,IAAW,EAAM,MAAM,QAAQ,GAAU,MACpC,EAAS,OAAO,EAAK,KAAK,OAAO,CAAC,EAC1C,EAAY,OAAO,CAAC;AACvB,SAAO,EAAK,OAAO,EAAS,OAAO,CAAC;IACrC,EAAY,OAAO,CAAC"}
|
package/dist/index166.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
//#region ../../node_modules/react-day-picker/dist/esm/helpers/
|
|
2
|
-
function e(e) {
|
|
3
|
-
let
|
|
4
|
-
|
|
5
|
-
let
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region ../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js
|
|
2
|
+
function e(e, t, n, r) {
|
|
3
|
+
let { numberOfMonths: i = 1 } = n, a = [];
|
|
4
|
+
for (let n = 0; n < i; n++) {
|
|
5
|
+
let i = r.addMonths(e, n);
|
|
6
|
+
if (t && i > t) break;
|
|
7
|
+
a.push(i);
|
|
8
|
+
}
|
|
9
|
+
return a;
|
|
8
10
|
}
|
|
9
11
|
//#endregion
|
|
10
|
-
export { e as
|
|
12
|
+
export { e as getDisplayMonths };
|
|
11
13
|
|
|
12
14
|
//# sourceMappingURL=index166.js.map
|
package/dist/index166.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index166.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/helpers/
|
|
1
|
+
{"version":3,"file":"index166.js","names":[],"sources":["../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n"],"x_google_ignoreList":[0],"mappings":";AAUA,SAAgB,EAAiB,GAAqB,GAAkB,GAAO,GAAS;CACpF,IAAM,EAAE,oBAAiB,MAAM,GACzB,IAAS,EAAE;AACjB,MAAK,IAAI,IAAI,GAAG,IAAI,GAAgB,KAAK;EACrC,IAAM,IAAQ,EAAQ,UAAU,GAAqB,EAAE;AACvD,MAAI,KAAoB,IAAQ,EAC5B;AAEJ,IAAO,KAAK,EAAM;;AAEtB,QAAO"}
|
package/dist/index167.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
//#region ../../node_modules/react-day-picker/dist/esm/helpers/
|
|
1
|
+
//#region ../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
|
|
2
2
|
function e(e, t, n, r) {
|
|
3
|
-
let {
|
|
4
|
-
|
|
5
|
-
let i = r.addMonths(e, n);
|
|
6
|
-
if (t && i > t) break;
|
|
7
|
-
a.push(i);
|
|
8
|
-
}
|
|
9
|
-
return a;
|
|
3
|
+
let { month: i, defaultMonth: a, today: o = r.today(), numberOfMonths: s = 1 } = e, c = i || a || o, { differenceInCalendarMonths: l, addMonths: u, startOfMonth: d } = r;
|
|
4
|
+
return n && l(n, c) < s - 1 && (c = u(n, -1 * (s - 1))), t && l(c, t) < 0 && (c = t), d(c);
|
|
10
5
|
}
|
|
11
6
|
//#endregion
|
|
12
|
-
export { e as
|
|
7
|
+
export { e as getInitialMonth };
|
|
13
8
|
|
|
14
9
|
//# sourceMappingURL=index167.js.map
|