@rpcbase/ui 0.202.0 → 0.203.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 +25 -73
- package/dist/index10.js +18 -28
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +8 -8
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +8 -7
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +14 -7
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +9 -9
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +14 -148
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +21 -43
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +27 -7
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +8 -10
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +8 -16
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +9 -16
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +1674 -41
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +9 -10
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +8 -34
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +8 -13
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +11 -13
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +10 -11
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +37 -16
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +10 -104
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +9 -23
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +10 -56
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +12 -75
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +10 -470
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +8 -12
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +9 -23
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +8 -19
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +8 -26
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +9 -9
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +8 -8
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +9 -27
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +11 -38
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +60 -19
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +9 -9
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +22 -140
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +23 -8
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +22 -7
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +37 -7
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +8 -7
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +11 -6
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +17 -9
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +14 -27
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +9 -10
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +8 -9
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +8 -8
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +194 -78
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +8 -6
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +8 -6
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +7 -7
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +9 -6
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +24 -8
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +11 -6
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +10 -6
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +9 -6
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +9 -8
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +7 -10
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +33 -874
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +7 -8
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +9 -50
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +8 -50
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +9 -209
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +8 -25
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +7 -27
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +8 -403
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +32 -609
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +35 -19
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +18 -8
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +57 -23
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +14 -8
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +12 -61
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +19 -69
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +89 -9
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +50 -7
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +20 -10
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +11 -20
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +13 -8
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +8 -8
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +25 -16
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +9 -20
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +10 -13
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +9 -17
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +9 -17
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +7 -8
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +9 -9
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +70 -10
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +20 -9
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +15 -12
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +12 -8
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +23 -8
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +27 -460
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +20 -12
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +58 -8
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +13 -8
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +9 -7
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +29 -14
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +29 -13
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +16 -13
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +16 -14
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +9 -14
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +26 -13
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +65 -666
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +388 -10
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +499 -10
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +134 -9
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +55 -9
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +80 -10
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +902 -9
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +22 -58
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +452 -12
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +7 -22
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +60 -32
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +10 -8
- package/dist/index20.js +43 -469
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +63 -15
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +11 -28
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +19 -8
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +148 -20
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +7 -11
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +13 -13
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +107 -13
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +359 -23
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +99 -14
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +329 -12
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +12 -266
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +213 -12
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +22 -8
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +30 -8
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +189 -18
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +21 -13
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +46 -21
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +12 -18
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +28 -16
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +47 -8
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +19 -70
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +16 -8
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +6 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +8 -367
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +24 -265
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +27 -63
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +68 -47
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +17 -172
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +7 -113
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +53 -27
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +8 -10
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +28 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +109 -30
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +16 -8
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +12 -7
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +3 -470
- package/dist/index233.js +28 -188
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +68 -107
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +3 -266
- package/dist/index236.js +14 -12
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +53 -45
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +117 -7
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +9 -28
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +3 -269
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +15 -31
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +689 -7
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +256 -71
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +704 -184
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +7433 -49
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +9 -7
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +16 -22
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +8 -15
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +462 -16
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +41 -158
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +11 -179
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +21 -32
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +30 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +8 -52
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +62 -15
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +10 -47
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +14 -97
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +6 -90
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +20 -109
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +28 -55
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +47 -15
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +22 -16
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +16 -40
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +28 -11
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +20 -119
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +38 -20
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +8 -18
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +12 -6
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +11 -39
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +12 -23
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +13 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +10 -11
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +61 -2924
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +76 -22
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +174 -31
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +118 -20
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +18 -8
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +83 -5
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +49 -26
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +15 -114
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +19 -18
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +98 -523
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +60 -131
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +58 -5
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +109 -134
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +75 -9
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +117 -9
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +59 -7
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +46 -18
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +146 -12
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +143 -9
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +258 -8
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +241 -546
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +302 -50
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +1 -40
- package/dist/index290.js +9 -21
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +9 -9
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +10 -11
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +9 -10
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +9 -11
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +24 -15
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +13 -12
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +130 -17
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +167 -23
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +69 -65
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +6 -5
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +6 -6
- package/dist/index300.js +113 -72
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +495 -12
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +65 -16
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +7 -69
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +30 -7
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +68 -58
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +155 -70
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +563 -32
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +213 -11
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +335 -156
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +8 -128
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +271 -110
- package/dist/index310.js.map +1 -1
- package/dist/index32.js +8 -234
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +8 -26
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +11 -54
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +13 -24
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +9 -133
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +11 -225
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +12 -94
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +15 -121
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +24 -28
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +9 -8
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +10 -847
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +10 -60
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +12 -10
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +12 -5
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +8 -14
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +8 -21
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +14 -10
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +15 -5
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +10 -26
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +34 -48
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +7 -236
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +9 -9
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +9 -36
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +9 -29
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +12 -10
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +16 -14
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +10 -5
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +10 -5
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +10 -5
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +17 -5
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +42 -227
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +11 -208
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +11 -6
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +70 -50
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +10 -53
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +33 -10
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +13 -18
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +19 -137
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +203 -13
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +22 -218
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +20 -16
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +225 -37
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +125 -49
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +21 -52
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +12 -7
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +12 -8
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +17 -31
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +13 -53
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +13 -12
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +8 -55
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +44 -7
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +383 -7
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +36 -32
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +41 -18
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +25 -9
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +60 -10
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +10 -19
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +8 -7
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +8 -7
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +8 -8
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +8 -8
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +9 -7
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +9 -7
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +33 -181
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +13 -9
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +10 -27
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +9 -9
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +8 -7
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +10 -9
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +50 -8
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +108 -7
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +13 -8
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +9 -7
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +9 -11
- package/dist/index99.js.map +1 -1
- package/package.json +6 -6
- package/dist/index.js.map +0 -1
- package/dist/index2.js.map +0 -1
- package/dist/index232.js.map +0 -1
- package/dist/index235.js.map +0 -1
- package/dist/index29.js.map +0 -1
- package/dist/index30.js.map +0 -1
- package/dist/index311.js +0 -7
- package/dist/index311.js.map +0 -1
- package/dist/index312.js +0 -26
- package/dist/index312.js.map +0 -1
- package/dist/index313.js +0 -19
- package/dist/index313.js.map +0 -1
- package/dist/index314.js +0 -32
- package/dist/index314.js.map +0 -1
- package/dist/index315.js +0 -16
- package/dist/index315.js.map +0 -1
- package/dist/index316.js +0 -10
- package/dist/index316.js.map +0 -1
- package/dist/index317.js +0 -26
- package/dist/index317.js.map +0 -1
- package/dist/index318.js +0 -16
- package/dist/index318.js.map +0 -1
- package/dist/index319.js +0 -31
- package/dist/index319.js.map +0 -1
- package/dist/index320.js +0 -8
- package/dist/index320.js.map +0 -1
package/dist/index190.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index190.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]}
|
|
1
|
+
{"version":3,"file":"index190.js","names":["defaultLocale"],"sources":["../../../node_modules/react-day-picker/dist/esm/DayPicker.js"],"sourcesContent":["import React, { useCallback, useMemo, useRef } from \"react\";\nimport { DateLib, defaultLocale } from \"./classes/DateLib.js\";\nimport { createGetModifiers } from \"./helpers/createGetModifiers.js\";\nimport { getClassNamesForModifiers } from \"./helpers/getClassNamesForModifiers.js\";\nimport { getComponents } from \"./helpers/getComponents.js\";\nimport { getDataAttributes } from \"./helpers/getDataAttributes.js\";\nimport { getDefaultClassNames } from \"./helpers/getDefaultClassNames.js\";\nimport { getFormatters } from \"./helpers/getFormatters.js\";\nimport { getLabels } from \"./helpers/getLabels.js\";\nimport { getMonthOptions } from \"./helpers/getMonthOptions.js\";\nimport { getStyleForModifiers } from \"./helpers/getStyleForModifiers.js\";\nimport { getWeekdays } from \"./helpers/getWeekdays.js\";\nimport { getYearOptions } from \"./helpers/getYearOptions.js\";\nimport { createNoonOverrides } from \"./noonDateLib.js\";\nimport { DayFlag, SelectionState, UI } from \"./UI.js\";\nimport { useAnimation } from \"./useAnimation.js\";\nimport { useCalendar } from \"./useCalendar.js\";\nimport { dayPickerContext } from \"./useDayPicker.js\";\nimport { useFocus } from \"./useFocus.js\";\nimport { useSelection } from \"./useSelection.js\";\nimport { convertMatchersToTimeZone } from \"./utils/convertMatchersToTimeZone.js\";\nimport { rangeIncludesDate } from \"./utils/rangeIncludesDate.js\";\nimport { toTimeZone } from \"./utils/toTimeZone.js\";\nimport { isDateRange } from \"./utils/typeguards.js\";\n/**\n * Renders the DayPicker calendar component.\n *\n * @param initialProps - The props for the DayPicker component.\n * @returns The rendered DayPicker component.\n * @group DayPicker\n * @see https://daypicker.dev\n */\nexport function DayPicker(initialProps) {\n let props = initialProps;\n const timeZone = props.timeZone;\n if (timeZone) {\n props = {\n ...initialProps,\n timeZone,\n };\n if (props.today) {\n props.today = toTimeZone(props.today, timeZone);\n }\n if (props.month) {\n props.month = toTimeZone(props.month, timeZone);\n }\n if (props.defaultMonth) {\n props.defaultMonth = toTimeZone(props.defaultMonth, timeZone);\n }\n if (props.startMonth) {\n props.startMonth = toTimeZone(props.startMonth, timeZone);\n }\n if (props.endMonth) {\n props.endMonth = toTimeZone(props.endMonth, timeZone);\n }\n if (props.mode === \"single\" && props.selected) {\n props.selected = toTimeZone(props.selected, timeZone);\n }\n else if (props.mode === \"multiple\" && props.selected) {\n props.selected = props.selected?.map((date) => toTimeZone(date, timeZone));\n }\n else if (props.mode === \"range\" && props.selected) {\n props.selected = {\n from: props.selected.from\n ? toTimeZone(props.selected.from, timeZone)\n : props.selected.from,\n to: props.selected.to\n ? toTimeZone(props.selected.to, timeZone)\n : props.selected.to,\n };\n }\n if (props.disabled !== undefined) {\n props.disabled = convertMatchersToTimeZone(props.disabled, timeZone);\n }\n if (props.hidden !== undefined) {\n props.hidden = convertMatchersToTimeZone(props.hidden, timeZone);\n }\n if (props.modifiers) {\n const nextModifiers = {};\n Object.keys(props.modifiers).forEach((key) => {\n nextModifiers[key] = convertMatchersToTimeZone(props.modifiers?.[key], timeZone);\n });\n props.modifiers = nextModifiers;\n }\n }\n const { components, formatters, labels, dateLib, locale, classNames } = useMemo(() => {\n const locale = { ...defaultLocale, ...props.locale };\n const weekStartsOn = props.broadcastCalendar ? 1 : props.weekStartsOn;\n const noonOverrides = props.noonSafe && props.timeZone\n ? createNoonOverrides(props.timeZone, {\n weekStartsOn,\n locale,\n })\n : undefined;\n const overrides = props.dateLib && noonOverrides\n ? { ...noonOverrides, ...props.dateLib }\n : (props.dateLib ?? noonOverrides);\n const dateLib = new DateLib({\n locale,\n weekStartsOn,\n firstWeekContainsDate: props.firstWeekContainsDate,\n useAdditionalWeekYearTokens: props.useAdditionalWeekYearTokens,\n useAdditionalDayOfYearTokens: props.useAdditionalDayOfYearTokens,\n timeZone: props.timeZone,\n numerals: props.numerals,\n }, overrides);\n return {\n dateLib,\n components: getComponents(props.components),\n formatters: getFormatters(props.formatters),\n labels: getLabels(props.labels, dateLib.options),\n locale,\n classNames: { ...getDefaultClassNames(), ...props.classNames },\n };\n }, [\n props.locale,\n props.broadcastCalendar,\n props.weekStartsOn,\n props.firstWeekContainsDate,\n props.useAdditionalWeekYearTokens,\n props.useAdditionalDayOfYearTokens,\n props.timeZone,\n props.numerals,\n props.dateLib,\n props.noonSafe,\n props.components,\n props.formatters,\n props.labels,\n props.classNames,\n ]);\n if (!props.today) {\n props = { ...props, today: dateLib.today() };\n }\n const { captionLayout, mode, navLayout, numberOfMonths = 1, onDayBlur, onDayClick, onDayFocus, onDayKeyDown, onDayMouseEnter, onDayMouseLeave, onNextClick, onPrevClick, showWeekNumber, styles, } = props;\n const { formatCaption, formatDay, formatMonthDropdown, formatWeekNumber, formatWeekNumberHeader, formatWeekdayName, formatYearDropdown, } = formatters;\n const calendar = useCalendar(props, dateLib);\n const { days, months, navStart, navEnd, previousMonth, nextMonth, goToMonth, } = calendar;\n const getModifiers = createGetModifiers(days, props, navStart, navEnd, dateLib);\n const { isSelected, select, selected: selectedValue, } = useSelection(props, dateLib) ?? {};\n const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);\n const { labelDayButton, labelGridcell, labelGrid, labelMonthDropdown, labelNav, labelPrevious, labelNext, labelWeekday, labelWeekNumber, labelWeekNumberHeader, labelYearDropdown, } = labels;\n const weekdays = useMemo(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);\n const isInteractive = mode !== undefined || onDayClick !== undefined;\n const handlePreviousClick = useCallback(() => {\n if (!previousMonth)\n return;\n goToMonth(previousMonth);\n onPrevClick?.(previousMonth);\n }, [previousMonth, goToMonth, onPrevClick]);\n const handleNextClick = useCallback(() => {\n if (!nextMonth)\n return;\n goToMonth(nextMonth);\n onNextClick?.(nextMonth);\n }, [goToMonth, nextMonth, onNextClick]);\n const handleDayClick = useCallback((day, m) => (e) => {\n e.preventDefault();\n e.stopPropagation();\n setFocused(day);\n if (m.disabled) {\n return;\n }\n select?.(day.date, m, e);\n onDayClick?.(day.date, m, e);\n }, [select, onDayClick, setFocused]);\n const handleDayFocus = useCallback((day, m) => (e) => {\n setFocused(day);\n onDayFocus?.(day.date, m, e);\n }, [onDayFocus, setFocused]);\n const handleDayBlur = useCallback((day, m) => (e) => {\n blur();\n onDayBlur?.(day.date, m, e);\n }, [blur, onDayBlur]);\n const handleDayKeyDown = useCallback((day, modifiers) => (e) => {\n const keyMap = {\n ArrowLeft: [\n e.shiftKey ? \"month\" : \"day\",\n props.dir === \"rtl\" ? \"after\" : \"before\",\n ],\n ArrowRight: [\n e.shiftKey ? \"month\" : \"day\",\n props.dir === \"rtl\" ? \"before\" : \"after\",\n ],\n ArrowDown: [e.shiftKey ? \"year\" : \"week\", \"after\"],\n ArrowUp: [e.shiftKey ? \"year\" : \"week\", \"before\"],\n PageUp: [e.shiftKey ? \"year\" : \"month\", \"before\"],\n PageDown: [e.shiftKey ? \"year\" : \"month\", \"after\"],\n Home: [\"startOfWeek\", \"before\"],\n End: [\"endOfWeek\", \"after\"],\n };\n if (keyMap[e.key]) {\n e.preventDefault();\n e.stopPropagation();\n const [moveBy, moveDir] = keyMap[e.key];\n moveFocus(moveBy, moveDir);\n }\n onDayKeyDown?.(day.date, modifiers, e);\n }, [moveFocus, onDayKeyDown, props.dir]);\n const handleDayMouseEnter = useCallback((day, modifiers) => (e) => {\n onDayMouseEnter?.(day.date, modifiers, e);\n }, [onDayMouseEnter]);\n const handleDayMouseLeave = useCallback((day, modifiers) => (e) => {\n onDayMouseLeave?.(day.date, modifiers, e);\n }, [onDayMouseLeave]);\n const handleMonthChange = useCallback((date) => (e) => {\n const selectedMonth = Number(e.target.value);\n const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);\n goToMonth(month);\n }, [dateLib, goToMonth]);\n const handleYearChange = useCallback((date) => (e) => {\n const selectedYear = Number(e.target.value);\n const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);\n goToMonth(month);\n }, [dateLib, goToMonth]);\n const { className, style } = useMemo(() => ({\n className: [classNames[UI.Root], props.className]\n .filter(Boolean)\n .join(\" \"),\n style: { ...styles?.[UI.Root], ...props.style },\n }), [classNames, props.className, props.style, styles]);\n const dataAttributes = getDataAttributes(props);\n const rootElRef = useRef(null);\n useAnimation(rootElRef, Boolean(props.animate), {\n classNames,\n months,\n focused,\n dateLib,\n });\n const contextValue = {\n dayPickerProps: props,\n selected: selectedValue,\n select: select,\n isSelected,\n months,\n nextMonth,\n previousMonth,\n goToMonth,\n getModifiers,\n components,\n classNames,\n styles,\n labels,\n formatters,\n };\n return (React.createElement(dayPickerContext.Provider, { value: contextValue },\n React.createElement(components.Root, { rootRef: props.animate ? rootElRef : undefined, className: className, style: style, dir: props.dir, id: props.id, lang: props.lang ?? locale.code, nonce: props.nonce, title: props.title, role: props.role, \"aria-label\": props[\"aria-label\"], \"aria-labelledby\": props[\"aria-labelledby\"], ...dataAttributes },\n React.createElement(components.Months, { className: classNames[UI.Months], style: styles?.[UI.Months] },\n !props.hideNavigation && !navLayout && (React.createElement(components.Nav, { \"data-animated-nav\": props.animate ? \"true\" : undefined, className: classNames[UI.Nav], style: styles?.[UI.Nav], \"aria-label\": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth: previousMonth, nextMonth: nextMonth })),\n months.map((calendarMonth, displayIndex) => {\n return (React.createElement(components.Month, { \"data-animated-month\": props.animate ? \"true\" : undefined, className: classNames[UI.Month], style: styles?.[UI.Month], \n // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation\n key: displayIndex, displayIndex: displayIndex, calendarMonth: calendarMonth },\n navLayout === \"around\" &&\n !props.hideNavigation &&\n displayIndex === 0 && (React.createElement(components.PreviousMonthButton, { type: \"button\", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? undefined : -1, \"aria-disabled\": previousMonth ? undefined : true, \"aria-label\": labelPrevious(previousMonth), onClick: handlePreviousClick, \"data-animated-button\": props.animate ? \"true\" : undefined },\n React.createElement(components.Chevron, { disabled: previousMonth ? undefined : true, className: classNames[UI.Chevron], orientation: props.dir === \"rtl\" ? \"right\" : \"left\" }))),\n React.createElement(components.MonthCaption, { \"data-animated-caption\": props.animate ? \"true\" : undefined, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth: calendarMonth, displayIndex: displayIndex }, captionLayout?.startsWith(\"dropdown\") ? (React.createElement(components.DropdownNav, { className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },\n (() => {\n const monthControl = captionLayout === \"dropdown\" ||\n captionLayout === \"dropdown-months\" ? (React.createElement(components.MonthsDropdown, { key: \"month\", className: classNames[UI.MonthsDropdown], \"aria-label\": labelMonthDropdown(), classNames: classNames, components: components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters, dateLib), style: styles?.[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) })) : (React.createElement(\"span\", { key: \"month\" }, formatMonthDropdown(calendarMonth.date, dateLib)));\n const yearControl = captionLayout === \"dropdown\" ||\n captionLayout === \"dropdown-years\" ? (React.createElement(components.YearsDropdown, { key: \"year\", className: classNames[UI.YearsDropdown], \"aria-label\": labelYearDropdown(dateLib.options), classNames: classNames, components: components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters, dateLib, Boolean(props.reverseYears)), style: styles?.[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) })) : (React.createElement(\"span\", { key: \"year\" }, formatYearDropdown(calendarMonth.date, dateLib)));\n const controls = dateLib.getMonthYearOrder() === \"year-first\"\n ? [yearControl, monthControl]\n : [monthControl, yearControl];\n return controls;\n })(),\n React.createElement(\"span\", { role: \"status\", \"aria-live\": \"polite\", style: {\n border: 0,\n clip: \"rect(0 0 0 0)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: 0,\n position: \"absolute\",\n width: \"1px\",\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\",\n } }, formatCaption(calendarMonth.date, dateLib.options, dateLib)))) : (React.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: \"status\", \"aria-live\": \"polite\" }, formatCaption(calendarMonth.date, dateLib.options, dateLib)))),\n navLayout === \"around\" &&\n !props.hideNavigation &&\n displayIndex === numberOfMonths - 1 && (React.createElement(components.NextMonthButton, { type: \"button\", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? undefined : -1, \"aria-disabled\": nextMonth ? undefined : true, \"aria-label\": labelNext(nextMonth), onClick: handleNextClick, \"data-animated-button\": props.animate ? \"true\" : undefined },\n React.createElement(components.Chevron, { disabled: nextMonth ? undefined : true, className: classNames[UI.Chevron], orientation: props.dir === \"rtl\" ? \"left\" : \"right\" }))),\n displayIndex === numberOfMonths - 1 &&\n navLayout === \"after\" &&\n !props.hideNavigation && (React.createElement(components.Nav, { \"data-animated-nav\": props.animate ? \"true\" : undefined, className: classNames[UI.Nav], style: styles?.[UI.Nav], \"aria-label\": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth: previousMonth, nextMonth: nextMonth })),\n React.createElement(components.MonthGrid, { role: \"grid\", \"aria-multiselectable\": mode === \"multiple\" || mode === \"range\", \"aria-label\": labelGrid(calendarMonth.date, dateLib.options, dateLib) ||\n undefined, className: classNames[UI.MonthGrid], style: styles?.[UI.MonthGrid] },\n !props.hideWeekdays && (React.createElement(components.Weekdays, { \"data-animated-weekdays\": props.animate ? \"true\" : undefined, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },\n showWeekNumber && (React.createElement(components.WeekNumberHeader, { \"aria-label\": labelWeekNumberHeader(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: \"col\" }, formatWeekNumberHeader())),\n weekdays.map((weekday) => (React.createElement(components.Weekday, { \"aria-label\": labelWeekday(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: \"col\" }, formatWeekdayName(weekday, dateLib.options, dateLib)))))),\n React.createElement(components.Weeks, { \"data-animated-weeks\": props.animate ? \"true\" : undefined, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {\n return (React.createElement(components.Week, { className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week: week },\n showWeekNumber && (React.createElement(components.WeekNumber, { week: week, style: styles?.[UI.WeekNumber], \"aria-label\": labelWeekNumber(week.weekNumber, {\n locale,\n }), className: classNames[UI.WeekNumber], scope: \"row\", role: \"rowheader\" }, formatWeekNumber(week.weekNumber, dateLib))),\n week.days.map((day) => {\n const { date } = day;\n const modifiers = getModifiers(day);\n modifiers[DayFlag.focused] =\n !modifiers.hidden &&\n Boolean(focused?.isEqualTo(day));\n modifiers[SelectionState.selected] =\n isSelected?.(date) || modifiers.selected;\n if (isDateRange(selectedValue)) {\n // add range modifiers\n const { from, to } = selectedValue;\n modifiers[SelectionState.range_start] = Boolean(from && to && dateLib.isSameDay(date, from));\n modifiers[SelectionState.range_end] = Boolean(from && to && dateLib.isSameDay(date, to));\n modifiers[SelectionState.range_middle] =\n rangeIncludesDate(selectedValue, date, true, dateLib);\n }\n const style = getStyleForModifiers(modifiers, styles, props.modifiersStyles);\n const className = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);\n const ariaLabel = !isInteractive && !modifiers.hidden\n ? labelGridcell(date, modifiers, dateLib.options, dateLib)\n : undefined;\n return (React.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day: day, modifiers: modifiers, className: className.join(\" \"), style: style, role: \"gridcell\", \"aria-selected\": modifiers.selected || undefined, \"aria-label\": ariaLabel, \"data-day\": day.isoDate, \"data-month\": day.outside ? day.dateMonthId : undefined, \"data-selected\": modifiers.selected || undefined, \"data-disabled\": modifiers.disabled || undefined, \"data-hidden\": modifiers.hidden || undefined, \"data-outside\": day.outside || undefined, \"data-focused\": modifiers.focused || undefined, \"data-today\": modifiers.today || undefined }, !modifiers.hidden && isInteractive ? (React.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: \"button\", day: day, modifiers: modifiers, disabled: (!modifiers.focused &&\n modifiers.disabled) ||\n undefined, \"aria-disabled\": (modifiers.focused &&\n modifiers.disabled) ||\n undefined, tabIndex: isFocusTarget(day) ? 0 : -1, \"aria-label\": labelDayButton(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay(date, dateLib.options, dateLib))) : (!modifiers.hidden &&\n formatDay(day.date, dateLib.options, dateLib))));\n })));\n })))));\n })),\n props.footer && (React.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: \"status\", \"aria-live\": \"polite\" }, props.footer)))));\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,SAAgB,EAAU,GAAc;CACpC,IAAI,IAAQ,GACN,IAAW,EAAM;AACvB,KAAI,MACA,IAAQ;EACJ,GAAG;EACH;EACH,EACD,AACI,EAAM,UAAQ,EAAW,EAAM,OAAO,EAAS,EAEnD,AACI,EAAM,UAAQ,EAAW,EAAM,OAAO,EAAS,EAEnD,AACI,EAAM,iBAAe,EAAW,EAAM,cAAc,EAAS,EAEjE,AACI,EAAM,eAAa,EAAW,EAAM,YAAY,EAAS,EAE7D,AACI,EAAM,aAAW,EAAW,EAAM,UAAU,EAAS,EAErD,EAAM,SAAS,YAAY,EAAM,WACjC,EAAM,WAAW,EAAW,EAAM,UAAU,EAAS,GAEhD,EAAM,SAAS,cAAc,EAAM,WACxC,EAAM,WAAW,EAAM,UAAU,KAAK,MAAS,EAAW,GAAM,EAAS,CAAC,GAErE,EAAM,SAAS,WAAW,EAAM,aACrC,EAAM,WAAW;EACb,MAAM,EAAM,SAAS,OACf,EAAW,EAAM,SAAS,MAAM,EAAS,GACzC,EAAM,SAAS;EACrB,IAAI,EAAM,SAAS,KACb,EAAW,EAAM,SAAS,IAAI,EAAS,GACvC,EAAM,SAAS;EACxB,GAED,EAAM,aAAa,KAAA,MACnB,EAAM,WAAW,EAA0B,EAAM,UAAU,EAAS,GAEpE,EAAM,WAAW,KAAA,MACjB,EAAM,SAAS,EAA0B,EAAM,QAAQ,EAAS,GAEhE,EAAM,YAAW;EACjB,IAAM,IAAgB,EAAE;AAIxB,EAHA,OAAO,KAAK,EAAM,UAAU,CAAC,SAAS,MAAQ;AAC1C,KAAc,KAAO,EAA0B,EAAM,YAAY,IAAM,EAAS;IAClF,EACF,EAAM,YAAY;;CAG1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AS,EAAG;GAAY,MAAM;GAAe;GAAgB;GAAW,UAAW,CAAC,EAAU,WACt0B,EAAU,YACV,KAAA;GAAW,iBAAkB,EAAU,WACvC,EAAU,YACV,KAAA;GAAW,UAAU,GAAc,EAAI,GAAG,IAAI;GAAI,cAAc,GAAe,GAAM,GAAW,EAAQ,SAAS,EAAQ;GAAE,SAAS,GAAe,GAAK,EAAU;GAAE,QAAQ,GAAc,GAAK,EAAU;GAAE,SAAS,GAAe,GAAK,EAAU;GAAE,WAAW,GAAiB,GAAK,EAAU;GAAE,cAAc,GAAoB,GAAK,EAAU;GAAE,cAAc,GAAoB,GAAK,EAAU;GAAE,EAAE,GAAU,GAAM,EAAQ,SAAS,EAAQ,CAAC,GAAK,CAAC,EAAU,UACvc,GAAU,EAAI,MAAM,EAAQ,SAAS,EAAQ,CAAE;GACrD,CAAC,CACT,CAAC,CAAC,CAAC,CACf,CAAC,EACP,EAAM,UAAW,EAAM,cAAc,EAAW,QAAQ;EAAE,WAAW,EAAW,EAAG;EAAS,OAAO,IAAS,EAAG;EAAS,MAAM;EAAU,aAAa;EAAU,EAAE,EAAM,OAAO,CAAE,CAAC"}
|
package/dist/index191.js
CHANGED
|
@@ -1,10 +1,499 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
1
|
+
import { useIsTouchDevice as e } from "./index4.js";
|
|
2
|
+
import { cn as t } from "./index12.js";
|
|
3
|
+
import { DismissableLayerBranch as n } from "./index23.js";
|
|
4
|
+
import { dateMatchModifiers as r } from "./index131.js";
|
|
5
|
+
import { DayPicker as i } from "./index190.js";
|
|
6
|
+
import { c as a } from "react/compiler-runtime";
|
|
7
|
+
import * as o from "react";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
import { CalendarDays as l, ChevronLeft as u, ChevronRight as d } from "lucide-react";
|
|
10
|
+
import { createPortal as f } from "react-dom";
|
|
11
|
+
import { IMaskInput as p } from "react-imask";
|
|
12
|
+
import m, { InputMask as h } from "imask";
|
|
13
|
+
//#region src/components/DayPickerField/index.tsx
|
|
14
|
+
var g = m;
|
|
15
|
+
typeof g.InputMask != "function" && (g.InputMask = h);
|
|
16
|
+
function _(e) {
|
|
17
|
+
let n = a(18), r, o, c, l, u;
|
|
18
|
+
n[0] === e ? (r = n[1], o = n[2], c = n[3], l = n[4], u = n[5]) : ({className: r, classNames: o, components: c, showOutsideDays: u, ...l} = e, n[0] = e, n[1] = r, n[2] = o, n[3] = c, n[4] = l, n[5] = u);
|
|
19
|
+
let d = u === void 0 ? !0 : u, f;
|
|
20
|
+
n[6] === r ? f = n[7] : (f = t("p-3", r), n[6] = r, n[7] = f);
|
|
21
|
+
let p;
|
|
22
|
+
n[8] === o ? p = n[9] : (p = {
|
|
23
|
+
month: "space-y-4",
|
|
24
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2",
|
|
25
|
+
month_caption: "flex justify-center pt-1 relative items-center",
|
|
26
|
+
month_grid: "w-full border-collapse space-y-1",
|
|
27
|
+
caption_label: "text-sm font-medium",
|
|
28
|
+
nav: "flex items-center justify-between absolute inset-x-0 z-10",
|
|
29
|
+
button_previous: "inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10",
|
|
30
|
+
button_next: "inline-flex h-7 w-7 items-center justify-center rounded-md border border-input bg-transparent p-0 opacity-50 shadow-sm transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 z-10",
|
|
31
|
+
weeks: "w-full border-collapse",
|
|
32
|
+
weekdays: "flex",
|
|
33
|
+
weekday: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
34
|
+
week: "flex w-full mt-2",
|
|
35
|
+
day: "h-9 w-9 p-0 font-normal aria-selected:opacity-100 rounded-md first:aria-selected:rounded-l-md last:aria-selected:rounded-r-md",
|
|
36
|
+
day_button: "inline-flex h-9 w-9 items-center justify-center rounded-md p-0 text-center text-sm font-normal transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
37
|
+
range_start: "day-range-start !bg-accent rounded-l-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground",
|
|
38
|
+
range_end: "day-range-end !bg-accent rounded-r-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground",
|
|
39
|
+
range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none",
|
|
40
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
41
|
+
day_today: "bg-accent text-accent-foreground",
|
|
42
|
+
day_outside: "day-outside text-muted-foreground aria-selected:text-muted-foreground",
|
|
43
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
44
|
+
day_hidden: "invisible",
|
|
45
|
+
selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
46
|
+
today: "bg-gray-50 text-accent-foreground !rounded-md",
|
|
47
|
+
outside: "day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30",
|
|
48
|
+
disabled: "text-muted-foreground opacity-50",
|
|
49
|
+
hidden: "invisible",
|
|
50
|
+
...o
|
|
51
|
+
}, n[8] = o, n[9] = p);
|
|
52
|
+
let m;
|
|
53
|
+
n[10] === c ? m = n[11] : (m = {
|
|
54
|
+
Chevron: v,
|
|
55
|
+
...c
|
|
56
|
+
}, n[10] = c, n[11] = m);
|
|
57
|
+
let h;
|
|
58
|
+
return n[12] !== l || n[13] !== d || n[14] !== f || n[15] !== p || n[16] !== m ? (h = /* @__PURE__ */ s(i, {
|
|
59
|
+
weekStartsOn: 1,
|
|
60
|
+
showOutsideDays: d,
|
|
61
|
+
className: f,
|
|
62
|
+
classNames: p,
|
|
63
|
+
components: m,
|
|
64
|
+
...l
|
|
65
|
+
}), n[12] = l, n[13] = d, n[14] = f, n[15] = p, n[16] = m, n[17] = h) : h = n[17], h;
|
|
66
|
+
}
|
|
67
|
+
function v(e) {
|
|
68
|
+
return e.orientation === "left" ? /* @__PURE__ */ s(u, {
|
|
69
|
+
...e,
|
|
70
|
+
className: "h-4 w-4"
|
|
71
|
+
}) : /* @__PURE__ */ s(d, {
|
|
72
|
+
...e,
|
|
73
|
+
className: "h-4 w-4"
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
_.displayName = "DayPicker";
|
|
77
|
+
function y(e) {
|
|
78
|
+
return String(e).padStart(2, "0");
|
|
79
|
+
}
|
|
80
|
+
function b(e) {
|
|
81
|
+
let t = new Date(e);
|
|
82
|
+
return t.setHours(0, 0, 0, 0), t;
|
|
83
|
+
}
|
|
84
|
+
function x(e) {
|
|
85
|
+
return b(new Date(e.getFullYear(), e.getMonth(), 1));
|
|
86
|
+
}
|
|
87
|
+
function S(e) {
|
|
88
|
+
return `${y(e.getDate())}/${y(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
89
|
+
}
|
|
90
|
+
function C({ day: e, month: t, year: n }) {
|
|
91
|
+
if (!Number.isFinite(e) || !Number.isFinite(t) || !Number.isFinite(n)) return null;
|
|
92
|
+
let r = new Date(n, t - 1, e);
|
|
93
|
+
return r.getFullYear() !== n || r.getMonth() !== t - 1 || r.getDate() !== e ? null : b(r);
|
|
94
|
+
}
|
|
95
|
+
function w(e, t) {
|
|
96
|
+
let n = e.trim();
|
|
97
|
+
if (!n) return null;
|
|
98
|
+
let r = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(n);
|
|
99
|
+
if (r) return C({
|
|
100
|
+
day: Number(r[1]),
|
|
101
|
+
month: Number(r[2]),
|
|
102
|
+
year: Number(r[3])
|
|
103
|
+
});
|
|
104
|
+
let i = /^(\d{2})\/(\d{2})\/(\d{2})$/.exec(n);
|
|
105
|
+
if (i) {
|
|
106
|
+
let e = Number(i[3]);
|
|
107
|
+
return Number.isFinite(e) ? C({
|
|
108
|
+
day: Number(i[1]),
|
|
109
|
+
month: Number(i[2]),
|
|
110
|
+
year: 2e3 + e
|
|
111
|
+
}) : null;
|
|
112
|
+
}
|
|
113
|
+
let a = /^(\d{2})\/(\d{2})$/.exec(n);
|
|
114
|
+
return a ? C({
|
|
115
|
+
day: Number(a[1]),
|
|
116
|
+
month: Number(a[2]),
|
|
117
|
+
year: t.getFullYear()
|
|
118
|
+
}) : null;
|
|
119
|
+
}
|
|
120
|
+
var T = o.forwardRef(function({ value: e, onChange: i, onValueUpdate: a, className: u, inputClassName: d, placeholder: m = "DD/MM/YYYY", disabled: h, readOnly: g, open: v, onOpenChange: C, dayPickerComponent: T, dayPickerProps: E, onFocus: D, onBlur: O, onKeyDown: k, onPointerDown: A, onMouseDown: j, ...M }, N) {
|
|
121
|
+
let P = o.useRef(null), F = o.useRef(null), I = o.useRef(null), L = o.useRef(!1), R = o.useRef(!1), z = o.useRef(!1), B = o.useRef(!1), V = o.useRef(!1), H = o.useRef(null), [ee, te] = o.useState(!1), U = v ?? ee, W = C ?? te;
|
|
122
|
+
R.current = U;
|
|
123
|
+
let [G, K] = o.useState(() => e ? S(e) : ""), q = o.useMemo(() => w(G, /* @__PURE__ */ new Date()), [G]), [ne, J] = o.useState(() => x(e ?? /* @__PURE__ */ new Date())), [Y, re] = o.useState(() => ({
|
|
124
|
+
left: 0,
|
|
125
|
+
top: 0
|
|
126
|
+
})), X = o.useCallback((e) => {
|
|
127
|
+
a && a(e);
|
|
128
|
+
}, [a]), Z = o.useCallback((e) => {
|
|
129
|
+
a && a(e), i(e);
|
|
130
|
+
}, [i, a]);
|
|
131
|
+
o.useEffect(() => {
|
|
132
|
+
L.current || K(e ? S(e) : "");
|
|
133
|
+
}, [e]), o.useEffect(() => {
|
|
134
|
+
U && J(x(e ?? /* @__PURE__ */ new Date()));
|
|
135
|
+
}, [U, e]), o.useEffect(() => {
|
|
136
|
+
U && q && J(x(q));
|
|
137
|
+
}, [q, U]), o.useEffect(() => {
|
|
138
|
+
if (!U) return;
|
|
139
|
+
let e = P.current?.ownerDocument ?? document, t = e.defaultView ?? window, n = (e) => {
|
|
140
|
+
let t = e.target;
|
|
141
|
+
t instanceof Node && (P.current?.contains(t) || F.current?.contains(t) || W(!1));
|
|
142
|
+
}, r = (e) => {
|
|
143
|
+
if (e.key !== "Escape" || !R.current) return;
|
|
144
|
+
let t = e.target;
|
|
145
|
+
t instanceof Node && (!P.current?.contains(t) && !F.current?.contains(t) || (e.preventDefault(), e.stopPropagation(), W(!1)));
|
|
146
|
+
};
|
|
147
|
+
return e.addEventListener("pointerdown", n, !0), t.addEventListener("keydown", r, !0), () => {
|
|
148
|
+
e.removeEventListener("pointerdown", n, !0), t.removeEventListener("keydown", r, !0);
|
|
149
|
+
};
|
|
150
|
+
}, [U]), o.useEffect(() => {
|
|
151
|
+
if (!U || typeof window > "u" || !("IntersectionObserver" in window)) return;
|
|
152
|
+
let e = P.current;
|
|
153
|
+
if (!e) return;
|
|
154
|
+
let t = !0, n = new IntersectionObserver((e) => {
|
|
155
|
+
if (!t) return;
|
|
156
|
+
let n = e[0];
|
|
157
|
+
n && !n.isIntersecting && W(!1);
|
|
158
|
+
});
|
|
159
|
+
return n.observe(e), () => {
|
|
160
|
+
t = !1, n.disconnect();
|
|
161
|
+
};
|
|
162
|
+
}, [U]);
|
|
163
|
+
let ie = o.useCallback((e) => {
|
|
164
|
+
I.current = e, typeof N == "function" ? N(e) : N && (N.current = e);
|
|
165
|
+
}, [N]), Q = () => W(!1), ae = T ?? _, $ = o.useCallback(() => {
|
|
166
|
+
if (typeof window > "u") return;
|
|
167
|
+
let e = P.current, t = F.current;
|
|
168
|
+
if (!e || !t) return;
|
|
169
|
+
let n = e.getBoundingClientRect(), r = t.offsetWidth, i = t.offsetHeight, a = window.innerWidth ?? 0, o = window.innerHeight ?? 0, s = n.left;
|
|
170
|
+
s + r > a - 8 && (s = Math.max(8, a - r - 8)), s < 8 && (s = 8);
|
|
171
|
+
let c = n.bottom + 8, l = c + i > o - 8, u = n.top - i - 8;
|
|
172
|
+
l && u >= 8 && (c = u), c < 8 && (c = 8), c + i > o - 8 && (c = Math.max(8, o - i - 8)), re({
|
|
173
|
+
left: s,
|
|
174
|
+
top: c
|
|
175
|
+
});
|
|
176
|
+
}, []);
|
|
177
|
+
return o.useLayoutEffect(() => {
|
|
178
|
+
if (!U || h || typeof window > "u") return;
|
|
179
|
+
$();
|
|
180
|
+
let e = window.requestAnimationFrame($);
|
|
181
|
+
return window.addEventListener("scroll", $, !0), window.addEventListener("resize", $), () => {
|
|
182
|
+
window.cancelAnimationFrame(e), window.removeEventListener("scroll", $, !0), window.removeEventListener("resize", $);
|
|
183
|
+
};
|
|
184
|
+
}, [
|
|
185
|
+
h,
|
|
186
|
+
U,
|
|
187
|
+
$
|
|
188
|
+
]), /* @__PURE__ */ c("div", {
|
|
189
|
+
ref: P,
|
|
190
|
+
"data-slot": "day-picker-input",
|
|
191
|
+
className: t("relative group", u),
|
|
192
|
+
children: [
|
|
193
|
+
/* @__PURE__ */ s(p, {
|
|
194
|
+
...M,
|
|
195
|
+
"data-slot": "day-picker-input-input",
|
|
196
|
+
disabled: h,
|
|
197
|
+
readOnly: g,
|
|
198
|
+
autoComplete: "off",
|
|
199
|
+
inputRef: ie,
|
|
200
|
+
mask: [
|
|
201
|
+
{
|
|
202
|
+
mask: "00/00",
|
|
203
|
+
lazy: !0
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
mask: "00/00/00",
|
|
207
|
+
lazy: !0
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
mask: "00/00/0000",
|
|
211
|
+
lazy: !0
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
dispatch: (e, t) => {
|
|
215
|
+
let n = (t.value + e).replace(/\D/g, "");
|
|
216
|
+
return n.length <= 4 ? t.compiledMasks[0] : n.length <= 6 ? t.compiledMasks[1] : t.compiledMasks[2];
|
|
217
|
+
},
|
|
218
|
+
placeholder: m,
|
|
219
|
+
value: G,
|
|
220
|
+
className: t("flex h-10 w-full rounded-md border border-input bg-background py-2 pr-3 pl-[37px] text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "transition-colors group-hover:bg-accent group-hover:text-accent-foreground", d),
|
|
221
|
+
onAccept: (e) => {
|
|
222
|
+
let t = typeof e == "string" ? e : String(e ?? ""), n = G.replace(/\D/g, "").length;
|
|
223
|
+
K(t), t.replace(/\D/g, "").length === 0 && (U && J(x(/* @__PURE__ */ new Date())), n !== 0 && X(null));
|
|
224
|
+
},
|
|
225
|
+
onComplete: (t) => {
|
|
226
|
+
let n = typeof t == "string" ? t : String(t ?? "");
|
|
227
|
+
if (H.current === n) {
|
|
228
|
+
H.current = null;
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
let r = w(n, /* @__PURE__ */ new Date());
|
|
232
|
+
r && (e && r.getTime() === b(e).getTime() || X(r));
|
|
233
|
+
},
|
|
234
|
+
onPointerDown: (e) => {
|
|
235
|
+
z.current = !0, B.current = typeof document < "u" && document.activeElement === e.currentTarget, A?.(e);
|
|
236
|
+
},
|
|
237
|
+
onMouseDown: (e) => {
|
|
238
|
+
z.current = !0, B.current = typeof document < "u" && document.activeElement === e.currentTarget, j?.(e);
|
|
239
|
+
},
|
|
240
|
+
onFocus: (e) => {
|
|
241
|
+
let t = !z.current || !B.current;
|
|
242
|
+
if (z.current = !1, B.current = !1, L.current = !0, D?.(e), t) {
|
|
243
|
+
let t = e.currentTarget;
|
|
244
|
+
requestAnimationFrame(() => t.select());
|
|
245
|
+
}
|
|
246
|
+
h || W(!0);
|
|
247
|
+
},
|
|
248
|
+
onKeyDown: (t) => {
|
|
249
|
+
let n = t.defaultPrevented;
|
|
250
|
+
if (k?.(t), !(!n && t.defaultPrevented)) {
|
|
251
|
+
if (t.key === "Enter") {
|
|
252
|
+
if (!q) return;
|
|
253
|
+
if (t.preventDefault(), U) {
|
|
254
|
+
let e = `${q.getFullYear()}-${y(q.getMonth() + 1)}-${y(q.getDate())}`, t = F.current?.querySelector(`[data-day='${e}']:not([data-outside]) button`);
|
|
255
|
+
if (t instanceof HTMLButtonElement) {
|
|
256
|
+
if (t.disabled) return;
|
|
257
|
+
t.focus();
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
K(S(q)), Z(q), W(!1);
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
if (t.key === "ArrowUp" || t.key === "ArrowDown") {
|
|
264
|
+
let n = q ?? e;
|
|
265
|
+
if (!n) return;
|
|
266
|
+
let i = b(new Date(n));
|
|
267
|
+
if (i.setDate(i.getDate() + (t.key === "ArrowUp" ? 1 : -1)), E?.disabled && r(i, E.disabled)) return;
|
|
268
|
+
t.preventDefault();
|
|
269
|
+
let a = S(i);
|
|
270
|
+
H.current = a, K(a), X(i);
|
|
271
|
+
}
|
|
272
|
+
U || (t.key.length === 1 || t.key === "Backspace" || t.key === "Delete" || t.key === "ArrowUp" || t.key === "ArrowDown") && !t.ctrlKey && !t.metaKey && !t.altKey && W(!0), t.key === "Tab" && !t.defaultPrevented && W(!1);
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
onBlur: (t) => {
|
|
276
|
+
L.current = !1, O?.(t);
|
|
277
|
+
let n = V.current;
|
|
278
|
+
if (V.current = !1, n) return;
|
|
279
|
+
let r = t.relatedTarget;
|
|
280
|
+
if (r instanceof Node) {
|
|
281
|
+
let e = P.current;
|
|
282
|
+
if (!e || e.contains(r) || F.current?.contains(r)) return;
|
|
283
|
+
}
|
|
284
|
+
U && typeof window < "u" && requestAnimationFrame(() => {
|
|
285
|
+
let e = P.current;
|
|
286
|
+
if (!e) return;
|
|
287
|
+
let t = document.activeElement;
|
|
288
|
+
t && (e.contains(t) || F.current?.contains(t)) || W(!1);
|
|
289
|
+
});
|
|
290
|
+
let i = G.trim();
|
|
291
|
+
if (i === "") {
|
|
292
|
+
e && (K(""), Z(null));
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
let a = w(i, /* @__PURE__ */ new Date());
|
|
296
|
+
if (a) {
|
|
297
|
+
K(S(a)), (!e || a.getTime() !== b(e).getTime()) && Z(a);
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
K(e ? S(e) : "");
|
|
301
|
+
}
|
|
302
|
+
}),
|
|
303
|
+
/* @__PURE__ */ s("button", {
|
|
304
|
+
type: "button",
|
|
305
|
+
tabIndex: -1,
|
|
306
|
+
disabled: h,
|
|
307
|
+
"aria-label": "Open calendar",
|
|
308
|
+
"data-slot": "day-picker-input-trigger",
|
|
309
|
+
className: "absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground",
|
|
310
|
+
onPointerDown: (e) => {
|
|
311
|
+
e.preventDefault(), !h && I.current?.focus({ preventScroll: !0 });
|
|
312
|
+
},
|
|
313
|
+
onMouseDown: (e) => {
|
|
314
|
+
e.preventDefault(), !h && I.current?.focus({ preventScroll: !0 });
|
|
315
|
+
},
|
|
316
|
+
onClick: () => {
|
|
317
|
+
h || (I.current?.focus({ preventScroll: !0 }), W(!0));
|
|
318
|
+
},
|
|
319
|
+
children: /* @__PURE__ */ s(l, {
|
|
320
|
+
"aria-hidden": !0,
|
|
321
|
+
className: "size-4"
|
|
322
|
+
})
|
|
323
|
+
}),
|
|
324
|
+
U && !h && (() => {
|
|
325
|
+
let t = G.trim() === "" ? void 0 : q ?? e ?? void 0, r = /* @__PURE__ */ s(n, { children: /* @__PURE__ */ s("div", {
|
|
326
|
+
ref: F,
|
|
327
|
+
"data-slot": "day-picker-input-popover",
|
|
328
|
+
className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md",
|
|
329
|
+
style: {
|
|
330
|
+
left: Y.left,
|
|
331
|
+
top: Y.top
|
|
332
|
+
},
|
|
333
|
+
onPointerDownCapture: () => {
|
|
334
|
+
V.current = !0;
|
|
335
|
+
},
|
|
336
|
+
onMouseDownCapture: () => {
|
|
337
|
+
V.current = !0;
|
|
338
|
+
},
|
|
339
|
+
children: /* @__PURE__ */ s(ae, {
|
|
340
|
+
mode: "single",
|
|
341
|
+
month: ne,
|
|
342
|
+
onMonthChange: J,
|
|
343
|
+
selected: t,
|
|
344
|
+
onSelect: (t) => {
|
|
345
|
+
if (!t) {
|
|
346
|
+
e && Z(null), K(""), Q();
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
let n = b(t);
|
|
350
|
+
(!e || n.getTime() !== b(e).getTime()) && Z(n), K(S(n)), Q();
|
|
351
|
+
},
|
|
352
|
+
...E
|
|
353
|
+
})
|
|
354
|
+
}) });
|
|
355
|
+
return typeof document > "u" ? r : f(r, document.body);
|
|
356
|
+
})()
|
|
357
|
+
]
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
T.displayName = "DayPickerInput";
|
|
361
|
+
function E({ id: e, value: r, onChange: i, onValueUpdate: a, className: u, inputClassName: d, placeholder: p = "DD/MM/YYYY", disabled: m, open: h, onOpenChange: g, dayPickerComponent: v, dayPickerProps: y, triggerTestId: C, isHydrated: w }) {
|
|
362
|
+
let T = o.useRef(null), E = o.useRef(null), D = o.useRef(!1), [O, k] = o.useState(!1), A = h ?? O, j = g ?? k;
|
|
363
|
+
D.current = A;
|
|
364
|
+
let [M, N] = o.useState(() => x(r ?? /* @__PURE__ */ new Date())), [P, F] = o.useState(() => ({
|
|
365
|
+
left: 0,
|
|
366
|
+
top: 0
|
|
367
|
+
}));
|
|
368
|
+
o.useEffect(() => {
|
|
369
|
+
A && N(x(r ?? /* @__PURE__ */ new Date()));
|
|
370
|
+
}, [A, r]), o.useEffect(() => {
|
|
371
|
+
if (!A) return;
|
|
372
|
+
let e = T.current?.ownerDocument ?? document, t = e.defaultView ?? window, n = (e) => {
|
|
373
|
+
let t = e.target;
|
|
374
|
+
t instanceof Node && (T.current?.contains(t) || E.current?.contains(t) || j(!1));
|
|
375
|
+
}, r = (e) => {
|
|
376
|
+
if (e.key !== "Escape" || !D.current) return;
|
|
377
|
+
let t = e.target;
|
|
378
|
+
t instanceof Node && (!T.current?.contains(t) && !E.current?.contains(t) || (e.preventDefault(), e.stopPropagation(), j(!1)));
|
|
379
|
+
};
|
|
380
|
+
return e.addEventListener("pointerdown", n, !0), t.addEventListener("keydown", r, !0), () => {
|
|
381
|
+
e.removeEventListener("pointerdown", n, !0), t.removeEventListener("keydown", r, !0);
|
|
382
|
+
};
|
|
383
|
+
}, [A]), o.useEffect(() => {
|
|
384
|
+
if (!A || typeof window > "u" || !("IntersectionObserver" in window)) return;
|
|
385
|
+
let e = T.current;
|
|
386
|
+
if (!e) return;
|
|
387
|
+
let t = !0, n = new IntersectionObserver((e) => {
|
|
388
|
+
if (!t) return;
|
|
389
|
+
let n = e[0];
|
|
390
|
+
n && !n.isIntersecting && j(!1);
|
|
391
|
+
});
|
|
392
|
+
return n.observe(e), () => {
|
|
393
|
+
t = !1, n.disconnect();
|
|
394
|
+
};
|
|
395
|
+
}, [A]);
|
|
396
|
+
let I = v ?? _, L = o.useCallback(() => {
|
|
397
|
+
if (typeof window > "u") return;
|
|
398
|
+
let e = T.current, t = E.current;
|
|
399
|
+
if (!e || !t) return;
|
|
400
|
+
let n = e.getBoundingClientRect(), r = t.offsetWidth, i = t.offsetHeight, a = window.innerWidth ?? 0, o = window.innerHeight ?? 0, s = n.left;
|
|
401
|
+
s + r > a - 8 && (s = Math.max(8, a - r - 8)), s < 8 && (s = 8);
|
|
402
|
+
let c = n.bottom + 8, l = c + i > o - 8, u = n.top - i - 8;
|
|
403
|
+
l && u >= 8 && (c = u), c < 8 && (c = 8), c + i > o - 8 && (c = Math.max(8, o - i - 8)), F({
|
|
404
|
+
left: s,
|
|
405
|
+
top: c
|
|
406
|
+
});
|
|
407
|
+
}, []);
|
|
408
|
+
o.useLayoutEffect(() => {
|
|
409
|
+
if (!A || m || typeof window > "u") return;
|
|
410
|
+
L();
|
|
411
|
+
let e = window.requestAnimationFrame(L);
|
|
412
|
+
return window.addEventListener("scroll", L, !0), window.addEventListener("resize", L), () => {
|
|
413
|
+
window.cancelAnimationFrame(e), window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L);
|
|
414
|
+
};
|
|
415
|
+
}, [
|
|
416
|
+
m,
|
|
417
|
+
A,
|
|
418
|
+
L
|
|
419
|
+
]);
|
|
420
|
+
let R = o.useCallback((e) => {
|
|
421
|
+
a && a(e), i(e);
|
|
422
|
+
}, [i, a]);
|
|
423
|
+
return /* @__PURE__ */ c("div", {
|
|
424
|
+
ref: T,
|
|
425
|
+
"data-slot": "day-picker-input",
|
|
426
|
+
className: t("relative group", u),
|
|
427
|
+
children: [/* @__PURE__ */ c("button", {
|
|
428
|
+
id: e,
|
|
429
|
+
type: "button",
|
|
430
|
+
disabled: m,
|
|
431
|
+
"data-testid": C,
|
|
432
|
+
"data-hydrated": w ? "true" : void 0,
|
|
433
|
+
"data-slot": "day-picker-input-input",
|
|
434
|
+
className: t("flex h-10 w-full items-center rounded-md border border-input bg-background px-3 py-2 text-left text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "transition-colors group-hover:bg-accent group-hover:text-accent-foreground", !r && "text-muted-foreground", A && "ring-2 ring-primary ring-offset-2", d),
|
|
435
|
+
onClick: () => {
|
|
436
|
+
m || j(!A);
|
|
437
|
+
},
|
|
438
|
+
children: [/* @__PURE__ */ s(l, {
|
|
439
|
+
"aria-hidden": !0,
|
|
440
|
+
className: "mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground"
|
|
441
|
+
}), r ? S(r) : p]
|
|
442
|
+
}), A && !m && (() => {
|
|
443
|
+
let e = /* @__PURE__ */ s(n, { children: /* @__PURE__ */ s("div", {
|
|
444
|
+
ref: E,
|
|
445
|
+
"data-slot": "day-picker-input-popover",
|
|
446
|
+
className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md",
|
|
447
|
+
style: {
|
|
448
|
+
left: P.left,
|
|
449
|
+
top: P.top
|
|
450
|
+
},
|
|
451
|
+
children: /* @__PURE__ */ s(I, {
|
|
452
|
+
mode: "single",
|
|
453
|
+
month: M,
|
|
454
|
+
onMonthChange: N,
|
|
455
|
+
selected: r ?? void 0,
|
|
456
|
+
onSelect: (e) => {
|
|
457
|
+
if (!e) {
|
|
458
|
+
R(null), j(!1);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
let t = b(e);
|
|
462
|
+
(!r || t.getTime() !== b(r).getTime()) && R(t), j(!1);
|
|
463
|
+
},
|
|
464
|
+
...y
|
|
465
|
+
})
|
|
466
|
+
}) });
|
|
467
|
+
return typeof document > "u" ? e : f(e, document.body);
|
|
468
|
+
})()]
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
function D(t) {
|
|
472
|
+
let n = a(18);
|
|
473
|
+
if (e()) {
|
|
474
|
+
let e;
|
|
475
|
+
return n[0] === t ? e = n[1] : (e = /* @__PURE__ */ s(E, { ...t }), n[0] = t, n[1] = e), e;
|
|
476
|
+
}
|
|
477
|
+
let { id: r, value: i, onChange: o, onValueUpdate: c, className: l, inputClassName: u, placeholder: d, disabled: f, readOnly: p, dayPickerComponent: m, dayPickerProps: h, triggerTestId: g, isHydrated: _, open: v, onOpenChange: y } = t, b = d === void 0 ? "DD/MM/YYYY" : d, x = _ ? "true" : void 0, S;
|
|
478
|
+
return n[2] !== l || n[3] !== m || n[4] !== h || n[5] !== f || n[6] !== r || n[7] !== u || n[8] !== o || n[9] !== y || n[10] !== c || n[11] !== v || n[12] !== b || n[13] !== p || n[14] !== x || n[15] !== g || n[16] !== i ? (S = /* @__PURE__ */ s(T, {
|
|
479
|
+
id: r,
|
|
480
|
+
value: i,
|
|
481
|
+
onChange: o,
|
|
482
|
+
onValueUpdate: c,
|
|
483
|
+
className: l,
|
|
484
|
+
inputClassName: u,
|
|
485
|
+
placeholder: b,
|
|
486
|
+
disabled: f,
|
|
487
|
+
readOnly: p,
|
|
488
|
+
open: v,
|
|
489
|
+
onOpenChange: y,
|
|
490
|
+
dayPickerComponent: m,
|
|
491
|
+
dayPickerProps: h,
|
|
492
|
+
"data-testid": g,
|
|
493
|
+
"data-hydrated": x
|
|
494
|
+
}), n[2] = l, n[3] = m, n[4] = h, n[5] = f, n[6] = r, n[7] = u, n[8] = o, n[9] = y, n[10] = c, n[11] = v, n[12] = b, n[13] = p, n[14] = x, n[15] = g, n[16] = i, n[17] = S) : S = n[17], S;
|
|
495
|
+
}
|
|
496
|
+
//#endregion
|
|
497
|
+
export { _ as DayPicker, D as DayPickerField, T as DayPickerInput };
|
|
498
|
+
|
|
499
|
+
//# sourceMappingURL=index191.js.map
|