@rpcbase/ui 0.191.0 → 0.193.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/index100.js +4 -466
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +5 -185
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +3 -106
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +8 -262
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +5 -9
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +4 -42
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +4 -4
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +6 -605
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +146 -52
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +39 -4
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +4 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +7 -15
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +13 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +13 -7
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +7 -16
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +31 -4
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +10 -4
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +10 -5
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +8 -5
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +13 -4
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +101 -4
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +20 -7
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +53 -24
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +72 -6
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +9 -4
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +20 -6
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +16 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +23 -4
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +6 -5
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +5 -4
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +23 -8
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +35 -6
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +16 -5
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +6 -4
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +4 -6
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +4 -145
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -39
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -4
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +3 -7
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +6 -13
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +24 -14
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +7 -7
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +6 -31
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +5 -10
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +3 -10
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +3 -8
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +4 -13
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +3 -101
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +5 -20
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +3 -53
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +3 -72
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +3 -9
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +45 -19
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +204 -15
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +22 -24
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +24 -6
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +399 -5
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +600 -18
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +6 -35
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +69 -16
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +2 -7
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +363 -4
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +261 -4
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +60 -4
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +46 -4
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +169 -3
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +109 -6
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +25 -24
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +8 -8
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +4 -6
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +5 -5
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +4 -3
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +466 -3
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +185 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +107 -3
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +262 -4
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +9 -3
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +42 -3
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +4 -3
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +58 -24
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +9 -29
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +67 -5
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +18 -12
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +14 -152
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +4 -29
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -9
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +6 -47
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +4 -11
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +7 -44
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +17 -95
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +405 -391
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +5 -86
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +5 -105
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +13 -52
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +10 -11
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +14 -37
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +14 -8
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +5 -116
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +6 -17
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +7 -15
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +6 -3
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +9 -36
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +5 -20
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +5 -9
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +9 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +5 -19
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +5 -28
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +4 -16
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +11 -67
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +9 -179
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +10 -46
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +11 -16
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +11 -5
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +10 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +7 -58
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +6 -66
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +5 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +6 -4
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +7 -7
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +6 -17
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +55 -5
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +16 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +7 -13
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +10 -10
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +10 -14
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +21 -14
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +10 -5
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +9 -6
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +9 -7
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +4 -6
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -9
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +16 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +9 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +18 -9
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +15 -5
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +12 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +29 -4
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +12 -11
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +25 -10
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +5 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +24 -11
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +29 -12
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -11
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +67 -7
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +180 -6
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +46 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +13 -6
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +154 -7
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +30 -6
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +9 -55
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +47 -8
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +10 -18
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +43 -28
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +94 -11
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +84 -23
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +105 -5
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +50 -14
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -7
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +35 -8
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +8 -10
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +115 -20
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +17 -10
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +15 -9
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +3 -9
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +36 -4
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +20 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +9 -16
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +8 -9
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +17 -16
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +26 -13
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +16 -12
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +5 -5
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +19 -3
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +12 -23
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +5 -113
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +3 -16
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +21 -522
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +112 -127
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +15 -133
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +523 -19
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +127 -4
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +133 -18
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +20 -12
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +5 -64
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +6 -69
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +4 -9
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +16 -14
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +8 -65
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +5 -5
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +4 -5
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +546 -4
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +47 -16
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +17 -8
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +6 -5
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +8 -4
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +7 -545
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +9 -47
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +12 -17
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +9 -6
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +13 -8
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +64 -7
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +69 -9
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +9 -13
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +14 -10
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +66 -14
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +4 -3
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +56 -23
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +68 -5
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +30 -55
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +9 -68
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +148 -26
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +5 -5
- package/dist/index310.js +108 -9
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +4 -153
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +23 -108
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +15 -12
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +26 -25
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +13 -5
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +6 -22
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +22 -15
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +12 -28
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +27 -12
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +24 -24
- package/dist/index320.js +5 -7
- package/dist/index320.js.map +1 -1
- package/dist/index33.js +3 -3
- package/dist/index36.js +1 -1
- package/dist/index37.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.js +20 -20
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +2 -4
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +2 -7
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +5 -46
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +33 -26
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +24 -48
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +7 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +8 -11
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +2 -134
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +2 -11
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +191 -203
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +4 -13
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +47 -33
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +47 -43
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +7 -7
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +13 -48
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +134 -4
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +10 -5
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +216 -27
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +13 -50
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +47 -9
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +48 -203
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +4 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +6 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +28 -6
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +50 -8
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +9 -6
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +6 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +8 -2
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +5 -11
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +1 -1
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +52 -206
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -22
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +4 -24
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +15 -399
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +5 -46
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +7 -5
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +16 -68
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +5 -2
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +4 -363
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +5 -261
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +5 -60
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +4 -46
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -169
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +6 -109
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +24 -24
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +7 -8
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +4 -4
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +6 -5
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -3
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index207.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index207.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index207.js","sources":["../../../node_modules/date-fns/isSameDay.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link isSameDay} function options.\n */\n\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same day (and year and month)\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\nexport function isSameDay(laterDate, earlierDate, options) {\n const [dateLeft_, dateRight_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return +startOfDay(dateLeft_) === +startOfDay(dateRight_);\n}\n\n// Fallback for modularized imports:\nexport default isSameDay;\n"],"names":["isSameDay","laterDate","earlierDate","options","dateLeft_","dateRight_","normalizeDates","startOfDay"],"mappings":";;AAoCO,SAASA,EAAUC,GAAWC,GAAaC,GAAS;AACzD,QAAM,CAACC,GAAWC,CAAU,IAAIC;AAAA,IAC9BH,GAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ;AACE,SAAO,CAACK,EAAWH,CAAS,KAAM,CAACG,EAAWF,CAAU;AAC1D;","x_google_ignoreList":[0]}
|
package/dist/index208.js
CHANGED
|
@@ -1,184 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { Primitive as G } from "./index62.js";
|
|
8
|
-
import { useCallbackRef as J } from "./index64.js";
|
|
9
|
-
import { useControllableState as Q } from "./index65.js";
|
|
10
|
-
import { useDirection as W } from "./index56.js";
|
|
11
|
-
import { j as d } from "./index30.js";
|
|
12
|
-
var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, I = "RovingFocusGroup", [y, N, Z] = H(I), [$, Fe] = z(
|
|
13
|
-
I,
|
|
14
|
-
[Z]
|
|
15
|
-
), [ee, oe] = $(I), O = s.forwardRef(
|
|
16
|
-
(e, r) => /* @__PURE__ */ d.jsx(y.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(y.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(te, { ...e, ref: r }) }) })
|
|
17
|
-
);
|
|
18
|
-
O.displayName = I;
|
|
19
|
-
var te = s.forwardRef((e, r) => {
|
|
20
|
-
const {
|
|
21
|
-
__scopeRovingFocusGroup: c,
|
|
22
|
-
orientation: o,
|
|
23
|
-
loop: T = !1,
|
|
24
|
-
dir: w,
|
|
25
|
-
currentTabStopId: v,
|
|
26
|
-
defaultCurrentTabStopId: C,
|
|
27
|
-
onCurrentTabStopIdChange: S,
|
|
28
|
-
onEntryFocus: m,
|
|
29
|
-
preventScrollOnEntryFocus: u = !1,
|
|
30
|
-
...b
|
|
31
|
-
} = e, F = s.useRef(null), g = V(r, F), R = W(w), [E, t] = Q({
|
|
32
|
-
prop: v,
|
|
33
|
-
defaultProp: C ?? null,
|
|
34
|
-
onChange: S,
|
|
35
|
-
caller: I
|
|
36
|
-
}), [i, h] = s.useState(!1), a = J(m), l = N(c), x = s.useRef(!1), [k, D] = s.useState(0);
|
|
37
|
-
return s.useEffect(() => {
|
|
38
|
-
const n = F.current;
|
|
39
|
-
if (n)
|
|
40
|
-
return n.addEventListener(_, a), () => n.removeEventListener(_, a);
|
|
41
|
-
}, [a]), /* @__PURE__ */ d.jsx(
|
|
42
|
-
ee,
|
|
43
|
-
{
|
|
44
|
-
scope: c,
|
|
45
|
-
orientation: o,
|
|
46
|
-
dir: R,
|
|
47
|
-
loop: T,
|
|
48
|
-
currentTabStopId: E,
|
|
49
|
-
onItemFocus: s.useCallback(
|
|
50
|
-
(n) => t(n),
|
|
51
|
-
[t]
|
|
52
|
-
),
|
|
53
|
-
onItemShiftTab: s.useCallback(() => h(!0), []),
|
|
54
|
-
onFocusableItemAdd: s.useCallback(
|
|
55
|
-
() => D((n) => n + 1),
|
|
56
|
-
[]
|
|
57
|
-
),
|
|
58
|
-
onFocusableItemRemove: s.useCallback(
|
|
59
|
-
() => D((n) => n - 1),
|
|
60
|
-
[]
|
|
61
|
-
),
|
|
62
|
-
children: /* @__PURE__ */ d.jsx(
|
|
63
|
-
G.div,
|
|
64
|
-
{
|
|
65
|
-
tabIndex: i || k === 0 ? -1 : 0,
|
|
66
|
-
"data-orientation": o,
|
|
67
|
-
...b,
|
|
68
|
-
ref: g,
|
|
69
|
-
style: { outline: "none", ...e.style },
|
|
70
|
-
onMouseDown: p(e.onMouseDown, () => {
|
|
71
|
-
x.current = !0;
|
|
72
|
-
}),
|
|
73
|
-
onFocus: p(e.onFocus, (n) => {
|
|
74
|
-
const L = !x.current;
|
|
75
|
-
if (n.target === n.currentTarget && L && !i) {
|
|
76
|
-
const P = new CustomEvent(_, X);
|
|
77
|
-
if (n.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
78
|
-
const A = l().filter((f) => f.focusable), U = A.find((f) => f.active), B = A.find((f) => f.id === E), Y = [U, B, ...A].filter(
|
|
79
|
-
Boolean
|
|
80
|
-
).map((f) => f.ref.current);
|
|
81
|
-
M(Y, u);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
x.current = !1;
|
|
85
|
-
}),
|
|
86
|
-
onBlur: p(e.onBlur, () => h(!1))
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
}
|
|
1
|
+
import { normalizeDates as o } from "./index286.js";
|
|
2
|
+
function i(a, r, n) {
|
|
3
|
+
const [e, t] = o(
|
|
4
|
+
n?.in,
|
|
5
|
+
a,
|
|
6
|
+
r
|
|
90
7
|
);
|
|
91
|
-
|
|
92
|
-
(e, r) => {
|
|
93
|
-
const {
|
|
94
|
-
__scopeRovingFocusGroup: c,
|
|
95
|
-
focusable: o = !0,
|
|
96
|
-
active: T = !1,
|
|
97
|
-
tabStopId: w,
|
|
98
|
-
children: v,
|
|
99
|
-
...C
|
|
100
|
-
} = e, S = q(), m = w || S, u = oe(K, c), b = u.currentTabStopId === m, F = N(c), { onFocusableItemAdd: g, onFocusableItemRemove: R, currentTabStopId: E } = u;
|
|
101
|
-
return s.useEffect(() => {
|
|
102
|
-
if (o)
|
|
103
|
-
return g(), () => R();
|
|
104
|
-
}, [o, g, R]), /* @__PURE__ */ d.jsx(
|
|
105
|
-
y.ItemSlot,
|
|
106
|
-
{
|
|
107
|
-
scope: c,
|
|
108
|
-
id: m,
|
|
109
|
-
focusable: o,
|
|
110
|
-
active: T,
|
|
111
|
-
children: /* @__PURE__ */ d.jsx(
|
|
112
|
-
G.span,
|
|
113
|
-
{
|
|
114
|
-
tabIndex: b ? 0 : -1,
|
|
115
|
-
"data-orientation": u.orientation,
|
|
116
|
-
...C,
|
|
117
|
-
ref: r,
|
|
118
|
-
onMouseDown: p(e.onMouseDown, (t) => {
|
|
119
|
-
o ? u.onItemFocus(m) : t.preventDefault();
|
|
120
|
-
}),
|
|
121
|
-
onFocus: p(e.onFocus, () => u.onItemFocus(m)),
|
|
122
|
-
onKeyDown: p(e.onKeyDown, (t) => {
|
|
123
|
-
if (t.key === "Tab" && t.shiftKey) {
|
|
124
|
-
u.onItemShiftTab();
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
if (t.target !== t.currentTarget) return;
|
|
128
|
-
const i = se(t, u.orientation, u.dir);
|
|
129
|
-
if (i !== void 0) {
|
|
130
|
-
if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
|
|
131
|
-
t.preventDefault();
|
|
132
|
-
let a = F().filter((l) => l.focusable).map((l) => l.ref.current);
|
|
133
|
-
if (i === "last") a.reverse();
|
|
134
|
-
else if (i === "prev" || i === "next") {
|
|
135
|
-
i === "prev" && a.reverse();
|
|
136
|
-
const l = a.indexOf(t.currentTarget);
|
|
137
|
-
a = u.loop ? ce(a, l + 1) : a.slice(l + 1);
|
|
138
|
-
}
|
|
139
|
-
setTimeout(() => M(a));
|
|
140
|
-
}
|
|
141
|
-
}),
|
|
142
|
-
children: typeof v == "function" ? v({ isCurrentTabStop: b, hasTabStop: E != null }) : v
|
|
143
|
-
}
|
|
144
|
-
)
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
j.displayName = K;
|
|
150
|
-
var re = {
|
|
151
|
-
ArrowLeft: "prev",
|
|
152
|
-
ArrowUp: "prev",
|
|
153
|
-
ArrowRight: "next",
|
|
154
|
-
ArrowDown: "next",
|
|
155
|
-
PageUp: "first",
|
|
156
|
-
Home: "first",
|
|
157
|
-
PageDown: "last",
|
|
158
|
-
End: "last"
|
|
159
|
-
};
|
|
160
|
-
function ne(e, r) {
|
|
161
|
-
return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
162
|
-
}
|
|
163
|
-
function se(e, r, c) {
|
|
164
|
-
const o = ne(e.key, c);
|
|
165
|
-
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
166
|
-
return re[o];
|
|
167
|
-
}
|
|
168
|
-
function M(e, r = !1) {
|
|
169
|
-
const c = document.activeElement;
|
|
170
|
-
for (const o of e)
|
|
171
|
-
if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
|
|
172
|
-
}
|
|
173
|
-
function ce(e, r) {
|
|
174
|
-
return e.map((c, o) => e[(r + o) % e.length]);
|
|
8
|
+
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
|
|
175
9
|
}
|
|
176
|
-
var ge = O, Re = j;
|
|
177
10
|
export {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
O as RovingFocusGroup,
|
|
181
|
-
j as RovingFocusGroupItem,
|
|
182
|
-
Fe as createRovingFocusGroupScope
|
|
11
|
+
i as default,
|
|
12
|
+
i as isSameMonth
|
|
183
13
|
};
|
|
184
14
|
//# sourceMappingURL=index208.js.map
|
package/dist/index208.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index208.js","sources":["../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId ?? null,\n onChange: onCurrentTabStopIdChange,\n caller: GROUP_NAME\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n children,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n }),\n children: typeof children === \"function\" ? children({ isCurrentTabStop, hasTabStop: currentTabStopId != null }) : children\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","children","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":";;;;;;;;;;;AAcA,IAAIA,IAAc,iCACdC,IAAgB,EAAE,SAAS,IAAO,YAAY,GAAI,GAClDC,IAAa,oBACb,CAACC,GAAYC,GAAeC,CAAqB,IAAIC,EAAiBJ,CAAU,GAChF,CAACK,GAA+BC,EAA2B,IAAIC;AAAA,EACjEP;AAAA,EACA,CAACG,CAAqB;AACxB,GACI,CAACK,IAAqBC,EAAqB,IAAIJ,EAA8BL,CAAU,GACvFU,IAAmBC,EAAM;AAAA,EAC3B,CAACC,GAAOC,MACiBC,gBAAAA,MAAIb,EAAW,UAAU,EAAE,OAAOW,EAAM,yBAAyB,UAA0BE,gBAAAA,MAAIb,EAAW,MAAM,EAAE,OAAOW,EAAM,yBAAyB,UAA0BE,gBAAAA,EAAAA,IAAIC,IAAsB,EAAE,GAAGH,GAAO,KAAKC,GAAc,EAAC,CAAE,EAAC,CAAE;AAE5Q;AACAH,EAAiB,cAAcV;AAC/B,IAAIe,KAAuBJ,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACnE,QAAM;AAAA,IACJ,yBAAAG;AAAA,IACA,aAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,KAAAC;AAAA,IACA,kBAAkBC;AAAA,IAClB,yBAAAC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AAgB,cAAc,CAAC,aAAa,YAAY,EAAE,SAAS0D,CAAG,MACtE,EAAA1D,MAAgB,gBAAgB,CAAC,WAAW,WAAW,EAAE,SAAS0D,CAAG;AACzE,WAAOF,GAAwBE,CAAG;AACpC;AACA,SAASpB,EAAWqB,GAAYC,IAAgB,IAAO;AACrD,QAAMC,IAA6B,SAAS;AAC5C,aAAWC,KAAaH;AAGtB,QAFIG,MAAcD,MAClBC,EAAU,MAAM,EAAE,eAAAF,GAAe,GAC7B,SAAS,kBAAkBC,GAA4B;AAE/D;AACA,SAASN,GAAUQ,GAAOC,GAAY;AACpC,SAAOD,EAAM,IAAI,CAACE,GAAGC,MAAUH,GAAOC,IAAaE,KAASH,EAAM,MAAM,CAAC;AAC3E;AACG,IAACI,KAAO1E,GACP2E,KAAO5B;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index208.js","sources":["../../../node_modules/date-fns/isSameMonth.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameMonth} function options.\n */\n\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same month (and year)\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport function isSameMonth(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return (\n laterDate_.getFullYear() === earlierDate_.getFullYear() &&\n laterDate_.getMonth() === earlierDate_.getMonth()\n );\n}\n\n// Fallback for modularized imports:\nexport default isSameMonth;\n"],"names":["isSameMonth","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates"],"mappings":";AA8BO,SAASA,EAAYC,GAAWC,GAAaC,GAAS;AAC3D,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,GAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ;AACE,SACEE,EAAW,YAAW,MAAOC,EAAa,YAAW,KACrDD,EAAW,eAAeC,EAAa,SAAQ;AAEnD;","x_google_ignoreList":[0]}
|
package/dist/index209.js
CHANGED
|
@@ -1,50 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
-
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
11
|
-
}
|
|
12
|
-
return /* @__PURE__ */ u.jsx(r, { ...c, ref: n, children: i });
|
|
13
|
-
});
|
|
14
|
-
return t.displayName = `${e}.Slot`, t;
|
|
15
|
-
}
|
|
16
|
-
// @__NO_SIDE_EFFECTS__
|
|
17
|
-
function y(e) {
|
|
18
|
-
const r = l.forwardRef((t, o) => {
|
|
19
|
-
const { children: n, ...i } = t;
|
|
20
|
-
if (l.isValidElement(n)) {
|
|
21
|
-
const c = R(n), s = C(i, n.props);
|
|
22
|
-
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
23
|
-
}
|
|
24
|
-
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
25
|
-
});
|
|
26
|
-
return r.displayName = `${e}.SlotClone`, r;
|
|
27
|
-
}
|
|
28
|
-
var E = /* @__PURE__ */ Symbol("radix.slottable");
|
|
29
|
-
function g(e) {
|
|
30
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === E;
|
|
31
|
-
}
|
|
32
|
-
function C(e, r) {
|
|
33
|
-
const t = { ...r };
|
|
34
|
-
for (const o in r) {
|
|
35
|
-
const n = e[o], i = r[o];
|
|
36
|
-
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
37
|
-
const a = i(...s);
|
|
38
|
-
return n(...s), a;
|
|
39
|
-
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
40
|
-
}
|
|
41
|
-
return { ...e, ...t };
|
|
42
|
-
}
|
|
43
|
-
function R(e) {
|
|
44
|
-
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
45
|
-
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
1
|
+
import { normalizeDates as i } from "./index286.js";
|
|
2
|
+
function o(e, a, r) {
|
|
3
|
+
const [t, l] = i(
|
|
4
|
+
r?.in,
|
|
5
|
+
e,
|
|
6
|
+
a
|
|
7
|
+
);
|
|
8
|
+
return t.getFullYear() === l.getFullYear();
|
|
46
9
|
}
|
|
47
10
|
export {
|
|
48
|
-
|
|
11
|
+
o as default,
|
|
12
|
+
o as isSameYear
|
|
49
13
|
};
|
|
50
14
|
//# sourceMappingURL=index209.js.map
|
package/dist/index209.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index209.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index209.js","sources":["../../../node_modules/date-fns/isSameYear.js"],"sourcesContent":["import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameYear} function options.\n */\n\n/**\n * @name isSameYear\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same year\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\nexport function isSameYear(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return laterDate_.getFullYear() === earlierDate_.getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default isSameYear;\n"],"names":["isSameYear","laterDate","earlierDate","options","laterDate_","earlierDate_","normalizeDates"],"mappings":";AAyBO,SAASA,EAAWC,GAAWC,GAAaC,GAAS;AAC1D,QAAM,CAACC,GAAYC,CAAY,IAAIC;AAAA,IACjCH,GAAS;AAAA,IACTF;AAAA,IACAC;AAAA,EACJ;AACE,SAAOE,EAAW,kBAAkBC,EAAa,YAAW;AAC9D;","x_google_ignoreList":[0]}
|
package/dist/index210.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @param day The `CalendarDay` to compare with.
|
|
11
|
-
* @returns `true` if the days are equal, otherwise `false`.
|
|
12
|
-
*/
|
|
13
|
-
isEqualTo(t) {
|
|
14
|
-
return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
|
|
15
|
-
}
|
|
1
|
+
import { constructFrom as n } from "./index282.js";
|
|
2
|
+
import { toDate as c } from "./index283.js";
|
|
3
|
+
function m(f, i) {
|
|
4
|
+
let t, o = i?.in;
|
|
5
|
+
return f.forEach((r) => {
|
|
6
|
+
!o && typeof r == "object" && (o = n.bind(null, r));
|
|
7
|
+
const e = c(r, o);
|
|
8
|
+
(!t || t < e || isNaN(+e)) && (t = e);
|
|
9
|
+
}), n(o, t || NaN);
|
|
16
10
|
}
|
|
17
11
|
export {
|
|
18
|
-
|
|
12
|
+
m as default,
|
|
13
|
+
m as max
|
|
19
14
|
};
|
|
20
15
|
//# sourceMappingURL=index210.js.map
|
package/dist/index210.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index210.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index210.js","sources":["../../../node_modules/date-fns/max.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link max} function options.\n */\n\n/**\n * @name max\n * @category Common Helpers\n * @summary Return the latest of the given dates.\n *\n * @description\n * Return the latest of the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param dates - The dates to compare\n *\n * @returns The latest of the dates\n *\n * @example\n * // Which of these dates is the latest?\n * const result = max([\n * new Date(1989, 6, 10),\n * new Date(1987, 1, 11),\n * new Date(1995, 6, 2),\n * new Date(1990, 0, 1)\n * ])\n * //=> Sun Jul 02 1995 00:00:00\n */\nexport function max(dates, options) {\n let result;\n let context = options?.in;\n\n dates.forEach((date) => {\n // Use the first date object as the context function\n if (!context && typeof date === \"object\")\n context = constructFrom.bind(null, date);\n\n const date_ = toDate(date, context);\n if (!result || result < date_ || isNaN(+date_)) result = date_;\n });\n\n return constructFrom(context, result || NaN);\n}\n\n// Fallback for modularized imports:\nexport default max;\n"],"names":["max","dates","options","result","context","date","constructFrom","date_","toDate"],"mappings":";;AAgCO,SAASA,EAAIC,GAAOC,GAAS;AAClC,MAAIC,GACAC,IAAUF,GAAS;AAEvB,SAAAD,EAAM,QAAQ,CAACI,MAAS;AAEtB,IAAI,CAACD,KAAW,OAAOC,KAAS,aAC9BD,IAAUE,EAAc,KAAK,MAAMD,CAAI;AAEzC,UAAME,IAAQC,EAAOH,GAAMD,CAAO;AAClC,KAAI,CAACD,KAAUA,IAASI,KAAS,MAAM,CAACA,CAAK,OAAGJ,IAASI;AAAA,EAC3D,CAAC,GAEMD,EAAcF,GAASD,KAAU,GAAG;AAC7C;","x_google_ignoreList":[0]}
|
package/dist/index211.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { constructFrom as e } from "./index282.js";
|
|
2
|
+
import { toDate as c } from "./index283.js";
|
|
3
|
+
function u(i, f) {
|
|
4
|
+
let t, o = f?.in;
|
|
5
|
+
return i.forEach((r) => {
|
|
6
|
+
!o && typeof r == "object" && (o = e.bind(null, r));
|
|
7
|
+
const n = c(r, o);
|
|
8
|
+
(!t || t > n || isNaN(+n)) && (t = n);
|
|
9
|
+
}), e(o, t || NaN);
|
|
5
10
|
}
|
|
6
11
|
export {
|
|
7
|
-
|
|
12
|
+
u as default,
|
|
13
|
+
u as min
|
|
8
14
|
};
|
|
9
15
|
//# sourceMappingURL=index211.js.map
|
package/dist/index211.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index211.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index211.js","sources":["../../../node_modules/date-fns/min.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link min} function options.\n */\n\n/**\n * @name min\n * @category Common Helpers\n * @summary Returns the earliest of the given dates.\n *\n * @description\n * Returns the earliest of the given dates.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param dates - The dates to compare\n *\n * @returns The earliest of the dates\n *\n * @example\n * // Which of these dates is the earliest?\n * const result = min([\n * new Date(1989, 6, 10),\n * new Date(1987, 1, 11),\n * new Date(1995, 6, 2),\n * new Date(1990, 0, 1)\n * ])\n * //=> Wed Feb 11 1987 00:00:00\n */\nexport function min(dates, options) {\n let result;\n let context = options?.in;\n\n dates.forEach((date) => {\n // Use the first date object as the context function\n if (!context && typeof date === \"object\")\n context = constructFrom.bind(null, date);\n\n const date_ = toDate(date, context);\n if (!result || result > date_ || isNaN(+date_)) result = date_;\n });\n\n return constructFrom(context, result || NaN);\n}\n\n// Fallback for modularized imports:\nexport default min;\n"],"names":["min","dates","options","result","context","date","constructFrom","date_","toDate"],"mappings":";;AAgCO,SAASA,EAAIC,GAAOC,GAAS;AAClC,MAAIC,GACAC,IAAUF,GAAS;AAEvB,SAAAD,EAAM,QAAQ,CAACI,MAAS;AAEtB,IAAI,CAACD,KAAW,OAAOC,KAAS,aAC9BD,IAAUE,EAAc,KAAK,MAAMD,CAAI;AAEzC,UAAME,IAAQC,EAAOH,GAAMD,CAAO;AAClC,KAAI,CAACD,KAAUA,IAASI,KAAS,MAAM,CAACA,CAAK,OAAGJ,IAASI;AAAA,EAC3D,CAAC,GAEMD,EAAcF,GAASD,KAAU,GAAG;AAC7C;","x_google_ignoreList":[0]}
|
package/dist/index212.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { constructFrom as m } from "./index282.js";
|
|
2
|
+
import { getDaysInMonth as i } from "./index294.js";
|
|
3
|
+
import { toDate as u } from "./index283.js";
|
|
4
|
+
function l(n, e, r) {
|
|
5
|
+
const t = u(n, r?.in), s = t.getFullYear(), a = t.getDate(), o = m(n, 0);
|
|
6
|
+
o.setFullYear(s, e, 15), o.setHours(0, 0, 0, 0);
|
|
7
|
+
const c = i(o);
|
|
8
|
+
return t.setMonth(e, Math.min(a, c)), t;
|
|
5
9
|
}
|
|
6
10
|
export {
|
|
7
|
-
|
|
11
|
+
l as default,
|
|
12
|
+
l as setMonth
|
|
8
13
|
};
|
|
9
14
|
//# sourceMappingURL=index212.js.map
|
package/dist/index212.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index212.js","sources":["../../../node_modules/
|
|
1
|
+
{"version":3,"file":"index212.js","sources":["../../../node_modules/date-fns/setMonth.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { getDaysInMonth } from \"./getDaysInMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setMonth} function options.\n */\n\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param month - The month index to set (0-11)\n * @param options - The options\n *\n * @returns The new date with the month set\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport function setMonth(date, month, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const day = _date.getDate();\n\n const midMonth = constructFrom(options?.in || date, 0);\n midMonth.setFullYear(year, month, 15);\n midMonth.setHours(0, 0, 0, 0);\n const daysInMonth = getDaysInMonth(midMonth);\n\n // Set the earlier date, allows to wrap Jan 31 to Feb 28\n _date.setMonth(month, Math.min(day, daysInMonth));\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMonth;\n"],"names":["setMonth","date","month","options","_date","toDate","year","day","midMonth","constructFrom","daysInMonth","getDaysInMonth"],"mappings":";;;AA8BO,SAASA,EAASC,GAAMC,GAAOC,GAAS;AAC7C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GACxBG,IAAMH,EAAM,QAAO,GAEnBI,IAAWC,EAA6BR,GAAM,CAAC;AACrD,EAAAO,EAAS,YAAYF,GAAMJ,GAAO,EAAE,GACpCM,EAAS,SAAS,GAAG,GAAG,GAAG,CAAC;AAC5B,QAAME,IAAcC,EAAeH,CAAQ;AAG3C,SAAAJ,EAAM,SAASF,GAAO,KAAK,IAAIK,GAAKG,CAAW,CAAC,GACzCN;AACT;","x_google_ignoreList":[0]}
|
package/dist/index213.js
CHANGED
|
@@ -1,62 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return e.length ? new o(...e, t) : new o(Date.now(), t);
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region representation
|
|
10
|
-
toISOString() {
|
|
11
|
-
const [t, e, n] = this.tzComponents(), i = `${t}${e}:${n}`;
|
|
12
|
-
return this.internal.toISOString().slice(0, -1) + i;
|
|
13
|
-
}
|
|
14
|
-
toString() {
|
|
15
|
-
return `${this.toDateString()} ${this.toTimeString()}`;
|
|
16
|
-
}
|
|
17
|
-
toDateString() {
|
|
18
|
-
const [t, e, n, i] = this.internal.toUTCString().split(" ");
|
|
19
|
-
return `${t?.slice(0, -1)} ${n} ${e} ${i}`;
|
|
20
|
-
}
|
|
21
|
-
toTimeString() {
|
|
22
|
-
const t = this.internal.toUTCString().split(" ")[4], [e, n, i] = this.tzComponents();
|
|
23
|
-
return `${t} GMT${e}${n}${i} (${r(this.timeZone, this)})`;
|
|
24
|
-
}
|
|
25
|
-
toLocaleString(t, e) {
|
|
26
|
-
return Date.prototype.toLocaleString.call(this, t, {
|
|
27
|
-
...e,
|
|
28
|
-
timeZone: e?.timeZone || this.timeZone
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
toLocaleDateString(t, e) {
|
|
32
|
-
return Date.prototype.toLocaleDateString.call(this, t, {
|
|
33
|
-
...e,
|
|
34
|
-
timeZone: e?.timeZone || this.timeZone
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
toLocaleTimeString(t, e) {
|
|
38
|
-
return Date.prototype.toLocaleTimeString.call(this, t, {
|
|
39
|
-
...e,
|
|
40
|
-
timeZone: e?.timeZone || this.timeZone
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region private
|
|
45
|
-
tzComponents() {
|
|
46
|
-
const t = this.getTimezoneOffset(), e = t > 0 ? "-" : "+", n = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), i = String(Math.abs(t) % 60).padStart(2, "0");
|
|
47
|
-
return [e, n, i];
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
withTimeZone(t) {
|
|
51
|
-
return new o(+this, t);
|
|
52
|
-
}
|
|
53
|
-
//#region date-fns integration
|
|
54
|
-
[/* @__PURE__ */ Symbol.for("constructDateFrom")](t) {
|
|
55
|
-
return new o(+new Date(t), this.timeZone);
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
1
|
+
import { constructFrom as a } from "./index282.js";
|
|
2
|
+
import { toDate as n } from "./index283.js";
|
|
3
|
+
function u(r, o, e) {
|
|
4
|
+
const t = n(r, e?.in);
|
|
5
|
+
return isNaN(+t) ? a(r, NaN) : (t.setFullYear(o), t);
|
|
58
6
|
}
|
|
59
7
|
export {
|
|
60
|
-
|
|
8
|
+
u as default,
|
|
9
|
+
u as setYear
|
|
61
10
|
};
|
|
62
11
|
//# sourceMappingURL=index213.js.map
|
package/dist/index213.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index213.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index213.js","sources":["../../../node_modules/date-fns/setYear.js"],"sourcesContent":["import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setYear} function options.\n */\n\n/**\n * @name setYear\n * @category Year Helpers\n * @summary Set the year to the given date.\n *\n * @description\n * Set the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param year - The year of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the year set\n *\n * @example\n * // Set year 2013 to 1 September 2014:\n * const result = setYear(new Date(2014, 8, 1), 2013)\n * //=> Sun Sep 01 2013 00:00:00\n */\nexport function setYear(date, year, options) {\n const date_ = toDate(date, options?.in);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+date_)) return constructFrom(options?.in || date, NaN);\n\n date_.setFullYear(year);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default setYear;\n"],"names":["setYear","date","year","options","date_","toDate","constructFrom"],"mappings":";;AA6BO,SAASA,EAAQC,GAAMC,GAAMC,GAAS;AAC3C,QAAMC,IAAQC,EAAOJ,GAAME,GAAS,EAAE;AAGtC,SAAI,MAAM,CAACC,CAAK,IAAUE,EAA6BL,GAAM,GAAG,KAEhEG,EAAM,YAAYF,CAAI,GACfE;AACT;","x_google_ignoreList":[0]}
|