@rpcbase/ui 0.157.0 → 0.158.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 +67 -24680
- package/dist/index.js.map +1 -1
- package/dist/index10.js +73 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +8 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +10 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +9 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +8 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +9 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +8 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +12 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +9 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +8 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +8 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +483 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +10 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +149 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +43 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +8 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +11 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +17 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +17 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +11 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +35 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +14 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.js +130 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +14 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +12 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +17 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +105 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +23 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +57 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +76 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +13 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +24 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +20 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +79 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +27 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +10 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +9 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +27 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +38 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +19 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +10 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +8 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +8 -0
- package/dist/index138.js.map +1 -0
- package/dist/index139.js +8 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.js +735 -0
- package/dist/index14.js.map +1 -0
- package/dist/index140.js +8 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.js +7 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.js +10 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.js +27 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.js +11 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.js +10 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.js +9 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.js +7 -0
- package/dist/index147.js.map +1 -0
- package/dist/index148.js +7 -0
- package/dist/index148.js.map +1 -0
- package/dist/index149.js +8 -0
- package/dist/index149.js.map +1 -0
- package/dist/index15.js +26 -0
- package/dist/index15.js.map +1 -0
- package/dist/index150.js +7 -0
- package/dist/index150.js.map +1 -0
- package/dist/index151.js +8 -0
- package/dist/index151.js.map +1 -0
- package/dist/index152.js +7 -0
- package/dist/index152.js.map +1 -0
- package/dist/index153.js +7 -0
- package/dist/index153.js.map +1 -0
- package/dist/index154.js +7 -0
- package/dist/index154.js.map +1 -0
- package/dist/index155.js +7 -0
- package/dist/index155.js.map +1 -0
- package/dist/index156.js +37 -0
- package/dist/index156.js.map +1 -0
- package/dist/index157.js +253 -0
- package/dist/index157.js.map +1 -0
- package/dist/index158.js +118 -0
- package/dist/index158.js.map +1 -0
- package/dist/index159.js +223 -0
- package/dist/index159.js.map +1 -0
- package/dist/index16.js +21 -0
- package/dist/index16.js.map +1 -0
- package/dist/index160.js +70 -0
- package/dist/index160.js.map +1 -0
- package/dist/index161.js +24 -0
- package/dist/index161.js.map +1 -0
- package/dist/index162.js +213 -0
- package/dist/index162.js.map +1 -0
- package/dist/index163.js +323 -0
- package/dist/index163.js.map +1 -0
- package/dist/index164.js +134 -0
- package/dist/index164.js.map +1 -0
- package/dist/index165.js +24 -0
- package/dist/index165.js.map +1 -0
- package/dist/index166.js +79 -0
- package/dist/index166.js.map +1 -0
- package/dist/index167.js +22 -0
- package/dist/index167.js.map +1 -0
- package/dist/index168.js +105 -0
- package/dist/index168.js.map +1 -0
- package/dist/index169.js +8 -0
- package/dist/index169.js.map +1 -0
- package/dist/index17.js +390 -0
- package/dist/index17.js.map +1 -0
- package/dist/index170.js +18 -0
- package/dist/index170.js.map +1 -0
- package/dist/index171.js +5 -0
- package/dist/index171.js.map +1 -0
- package/dist/index172.js +11 -0
- package/dist/index172.js.map +1 -0
- package/dist/index173.js +330 -0
- package/dist/index173.js.map +1 -0
- package/dist/index174.js +53 -0
- package/dist/index174.js.map +1 -0
- package/dist/index175.js +609 -0
- package/dist/index175.js.map +1 -0
- package/dist/index176.js +50 -0
- package/dist/index176.js.map +1 -0
- package/dist/index177.js +15 -0
- package/dist/index177.js.map +1 -0
- package/dist/index178.js +209 -0
- package/dist/index178.js.map +1 -0
- package/dist/index179.js +25 -0
- package/dist/index179.js.map +1 -0
- package/dist/index18.js +662 -0
- package/dist/index18.js.map +1 -0
- package/dist/index180.js +28 -0
- package/dist/index180.js.map +1 -0
- package/dist/index181.js +403 -0
- package/dist/index181.js.map +1 -0
- package/dist/index182.js +50 -0
- package/dist/index182.js.map +1 -0
- package/dist/index183.js +9 -0
- package/dist/index183.js.map +1 -0
- package/dist/index184.js +72 -0
- package/dist/index184.js.map +1 -0
- package/dist/index185.js +5 -0
- package/dist/index185.js.map +1 -0
- package/dist/index186.js +367 -0
- package/dist/index186.js.map +1 -0
- package/dist/index187.js +265 -0
- package/dist/index187.js.map +1 -0
- package/dist/index188.js +64 -0
- package/dist/index188.js.map +1 -0
- package/dist/index189.js +50 -0
- package/dist/index189.js.map +1 -0
- package/dist/index19.js +661 -0
- package/dist/index19.js.map +1 -0
- package/dist/index190.js +173 -0
- package/dist/index190.js.map +1 -0
- package/dist/index191.js +113 -0
- package/dist/index191.js.map +1 -0
- package/dist/index192.js +28 -0
- package/dist/index192.js.map +1 -0
- package/dist/index193.js +11 -0
- package/dist/index193.js.map +1 -0
- package/dist/index194.js +8 -0
- package/dist/index194.js.map +1 -0
- package/dist/index195.js +9 -0
- package/dist/index195.js.map +1 -0
- package/dist/index196.js +8 -0
- package/dist/index196.js.map +1 -0
- package/dist/index197.js +470 -0
- package/dist/index197.js.map +1 -0
- package/dist/index198.js +189 -0
- package/dist/index198.js.map +1 -0
- package/dist/index199.js +111 -0
- package/dist/index199.js.map +1 -0
- package/dist/index2.js +9 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +204 -0
- package/dist/index20.js.map +1 -0
- package/dist/index200.js +266 -0
- package/dist/index200.js.map +1 -0
- package/dist/index201.js +13 -0
- package/dist/index201.js.map +1 -0
- package/dist/index202.js +46 -0
- package/dist/index202.js.map +1 -0
- package/dist/index203.js +8 -0
- package/dist/index203.js.map +1 -0
- package/dist/index204.js +5 -0
- package/dist/index204.js.map +1 -0
- package/dist/index205.js +71 -0
- package/dist/index205.js.map +1 -0
- package/dist/index206.js +88 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +50 -0
- package/dist/index207.js.map +1 -0
- package/dist/index208.js +11 -0
- package/dist/index208.js.map +1 -0
- package/dist/index209.js +8 -0
- package/dist/index209.js.map +1 -0
- package/dist/index21.js +8 -0
- package/dist/index21.js.map +1 -0
- package/dist/index210.js +55 -0
- package/dist/index210.js.map +1 -0
- package/dist/index211.js +20 -0
- package/dist/index211.js.map +1 -0
- package/dist/index212.js +9 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +9 -0
- package/dist/index213.js.map +1 -0
- package/dist/index214.js +62 -0
- package/dist/index214.js.map +1 -0
- package/dist/index215.js +70 -0
- package/dist/index215.js.map +1 -0
- package/dist/index216.js +10 -0
- package/dist/index216.js.map +1 -0
- package/dist/index217.js +8 -0
- package/dist/index217.js.map +1 -0
- package/dist/index218.js +11 -0
- package/dist/index218.js.map +1 -0
- package/dist/index219.js +21 -0
- package/dist/index219.js.map +1 -0
- package/dist/index22.js +38 -0
- package/dist/index22.js.map +1 -0
- package/dist/index220.js +9 -0
- package/dist/index220.js.map +1 -0
- package/dist/index221.js +9 -0
- package/dist/index221.js.map +1 -0
- package/dist/index222.js +17 -0
- package/dist/index222.js.map +1 -0
- package/dist/index223.js +14 -0
- package/dist/index223.js.map +1 -0
- package/dist/index224.js +18 -0
- package/dist/index224.js.map +1 -0
- package/dist/index225.js +18 -0
- package/dist/index225.js.map +1 -0
- package/dist/index226.js +9 -0
- package/dist/index226.js.map +1 -0
- package/dist/index227.js +10 -0
- package/dist/index227.js.map +1 -0
- package/dist/index228.js +11 -0
- package/dist/index228.js.map +1 -0
- package/dist/index229.js +10 -0
- package/dist/index229.js.map +1 -0
- package/dist/index23.js +272 -0
- package/dist/index23.js.map +1 -0
- package/dist/index230.js +13 -0
- package/dist/index230.js.map +1 -0
- package/dist/index231.js +9 -0
- package/dist/index231.js.map +1 -0
- package/dist/index232.js +9 -0
- package/dist/index232.js.map +1 -0
- package/dist/index233.js +13 -0
- package/dist/index233.js.map +1 -0
- package/dist/index234.js +9 -0
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +9 -0
- package/dist/index235.js.map +1 -0
- package/dist/index236.js +8 -0
- package/dist/index236.js.map +1 -0
- package/dist/index237.js +15 -0
- package/dist/index237.js.map +1 -0
- package/dist/index238.js +14 -0
- package/dist/index238.js.map +1 -0
- package/dist/index239.js +14 -0
- package/dist/index239.js.map +1 -0
- package/dist/index24.js +184 -0
- package/dist/index24.js.map +1 -0
- package/dist/index240.js +15 -0
- package/dist/index240.js.map +1 -0
- package/dist/index241.js +15 -0
- package/dist/index241.js.map +1 -0
- package/dist/index242.js +14 -0
- package/dist/index242.js.map +1 -0
- package/dist/index243.js +11 -0
- package/dist/index243.js.map +1 -0
- package/dist/index244.js +10 -0
- package/dist/index244.js.map +1 -0
- package/dist/index245.js +9 -0
- package/dist/index245.js.map +1 -0
- package/dist/index246.js +10 -0
- package/dist/index246.js.map +1 -0
- package/dist/index247.js +11 -0
- package/dist/index247.js.map +1 -0
- package/dist/index248.js +10 -0
- package/dist/index248.js.map +1 -0
- package/dist/index249.js +59 -0
- package/dist/index249.js.map +1 -0
- package/dist/index25.js +18 -0
- package/dist/index25.js.map +1 -0
- package/dist/index250.js +12 -0
- package/dist/index250.js.map +1 -0
- package/dist/index251.js +23 -0
- package/dist/index251.js.map +1 -0
- package/dist/index252.js +27 -0
- package/dist/index252.js.map +1 -0
- package/dist/index253.js +20 -0
- package/dist/index253.js.map +1 -0
- package/dist/index254.js +11 -0
- package/dist/index254.js.map +1 -0
- package/dist/index255.js +14 -0
- package/dist/index255.js.map +1 -0
- package/dist/index256.js +14 -0
- package/dist/index256.js.map +1 -0
- package/dist/index257.js +25 -0
- package/dist/index257.js.map +1 -0
- package/dist/index258.js +14 -0
- package/dist/index258.js.map +1 -0
- package/dist/index259.js +13 -0
- package/dist/index259.js.map +1 -0
- package/dist/index26.js +2766 -0
- package/dist/index26.js.map +1 -0
- package/dist/index260.js +13 -0
- package/dist/index260.js.map +1 -0
- package/dist/index261.js +8 -0
- package/dist/index261.js.map +1 -0
- package/dist/index262.js +9 -0
- package/dist/index262.js.map +1 -0
- package/dist/index263.js +20 -0
- package/dist/index263.js.map +1 -0
- package/dist/index264.js +13 -0
- package/dist/index264.js.map +1 -0
- package/dist/index265.js +22 -0
- package/dist/index265.js.map +1 -0
- package/dist/index266.js +19 -0
- package/dist/index266.js.map +1 -0
- package/dist/index267.js +16 -0
- package/dist/index267.js.map +1 -0
- package/dist/index268.js +33 -0
- package/dist/index268.js.map +1 -0
- package/dist/index269.js +16 -0
- package/dist/index269.js.map +1 -0
- package/dist/index27.js +40 -0
- package/dist/index27.js.map +1 -0
- package/dist/index270.js +29 -0
- package/dist/index270.js.map +1 -0
- package/dist/index271.js +9 -0
- package/dist/index271.js.map +1 -0
- package/dist/index272.js +68 -0
- package/dist/index272.js.map +1 -0
- package/dist/index273.js +52 -0
- package/dist/index273.js.map +1 -0
- package/dist/index274.js +43 -0
- package/dist/index274.js.map +1 -0
- package/dist/index275.js +104 -0
- package/dist/index275.js.map +1 -0
- package/dist/index276.js +101 -0
- package/dist/index276.js.map +1 -0
- package/dist/index277.js +103 -0
- package/dist/index277.js.map +1 -0
- package/dist/index278.js +7 -0
- package/dist/index278.js.map +1 -0
- package/dist/index279.js +71 -0
- package/dist/index279.js.map +1 -0
- package/dist/index28.js +6 -0
- package/dist/index28.js.map +1 -0
- package/dist/index280.js +184 -0
- package/dist/index280.js.map +1 -0
- package/dist/index281.js +50 -0
- package/dist/index281.js.map +1 -0
- package/dist/index282.js +28 -0
- package/dist/index282.js.map +1 -0
- package/dist/index283.js +32 -0
- package/dist/index283.js.map +1 -0
- package/dist/index284.js +8 -0
- package/dist/index284.js.map +1 -0
- package/dist/index285.js +17 -0
- package/dist/index285.js.map +1 -0
- package/dist/index286.js +158 -0
- package/dist/index286.js.map +1 -0
- package/dist/index287.js +34 -0
- package/dist/index287.js.map +1 -0
- package/dist/index288.js +13 -0
- package/dist/index288.js.map +1 -0
- package/dist/index289.js +51 -0
- package/dist/index289.js.map +1 -0
- package/dist/index29.js +51 -0
- package/dist/index29.js.map +1 -0
- package/dist/index290.js +15 -0
- package/dist/index290.js.map +1 -0
- package/dist/index291.js +48 -0
- package/dist/index291.js.map +1 -0
- package/dist/index292.js +99 -0
- package/dist/index292.js.map +1 -0
- package/dist/index293.js +90 -0
- package/dist/index293.js.map +1 -0
- package/dist/index294.js +109 -0
- package/dist/index294.js.map +1 -0
- package/dist/index295.js +56 -0
- package/dist/index295.js.map +1 -0
- package/dist/index296.js +15 -0
- package/dist/index296.js.map +1 -0
- package/dist/index297.js +41 -0
- package/dist/index297.js.map +1 -0
- package/dist/index298.js +12 -0
- package/dist/index298.js.map +1 -0
- package/dist/index299.js +120 -0
- package/dist/index299.js.map +1 -0
- package/dist/index3.js +5 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +223 -0
- package/dist/index30.js.map +1 -0
- package/dist/index300.js +21 -0
- package/dist/index300.js.map +1 -0
- package/dist/index301.js +19 -0
- package/dist/index301.js.map +1 -0
- package/dist/index302.js +7 -0
- package/dist/index302.js.map +1 -0
- package/dist/index303.js +40 -0
- package/dist/index303.js.map +1 -0
- package/dist/index304.js +24 -0
- package/dist/index304.js.map +1 -0
- package/dist/index305.js +13 -0
- package/dist/index305.js.map +1 -0
- package/dist/index306.js +12 -0
- package/dist/index306.js.map +1 -0
- package/dist/index307.js +23 -0
- package/dist/index307.js.map +1 -0
- package/dist/index308.js +32 -0
- package/dist/index308.js.map +1 -0
- package/dist/index309.js +20 -0
- package/dist/index309.js.map +1 -0
- package/dist/index31.js +47 -0
- package/dist/index31.js.map +1 -0
- package/dist/index310.js +5 -0
- package/dist/index310.js.map +1 -0
- package/dist/index311.js +5 -0
- package/dist/index311.js.map +1 -0
- package/dist/index312.js +8 -0
- package/dist/index312.js.map +1 -0
- package/dist/index313.js +22 -0
- package/dist/index313.js.map +1 -0
- package/dist/index314.js +16 -0
- package/dist/index314.js.map +1 -0
- package/dist/index315.js +8 -0
- package/dist/index315.js.map +1 -0
- package/dist/index316.js +6 -0
- package/dist/index316.js.map +1 -0
- package/dist/index317.js +27 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +116 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +19 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +44 -0
- package/dist/index32.js.map +1 -0
- package/dist/index320.js +528 -0
- package/dist/index320.js.map +1 -0
- package/dist/index321.js +131 -0
- package/dist/index321.js.map +1 -0
- package/dist/index322.js +137 -0
- package/dist/index322.js.map +1 -0
- package/dist/index323.js +24 -0
- package/dist/index323.js.map +1 -0
- package/dist/index324.js +9 -0
- package/dist/index324.js.map +1 -0
- package/dist/index325.js +9 -0
- package/dist/index325.js.map +1 -0
- package/dist/index326.js +7 -0
- package/dist/index326.js.map +1 -0
- package/dist/index327.js +19 -0
- package/dist/index327.js.map +1 -0
- package/dist/index328.js +12 -0
- package/dist/index328.js.map +1 -0
- package/dist/index329.js +9 -0
- package/dist/index329.js.map +1 -0
- package/dist/index33.js +32 -0
- package/dist/index33.js.map +1 -0
- package/dist/index330.js +8 -0
- package/dist/index330.js.map +1 -0
- package/dist/index331.js +549 -0
- package/dist/index331.js.map +1 -0
- package/dist/index332.js +50 -0
- package/dist/index332.js.map +1 -0
- package/dist/index333.js +21 -0
- package/dist/index333.js.map +1 -0
- package/dist/index334.js +10 -0
- package/dist/index334.js.map +1 -0
- package/dist/index335.js +12 -0
- package/dist/index335.js.map +1 -0
- package/dist/index336.js +11 -0
- package/dist/index336.js.map +1 -0
- package/dist/index337.js +12 -0
- package/dist/index337.js.map +1 -0
- package/dist/index338.js +16 -0
- package/dist/index338.js.map +1 -0
- package/dist/index339.js +13 -0
- package/dist/index339.js.map +1 -0
- package/dist/index34.js +49 -0
- package/dist/index34.js.map +1 -0
- package/dist/index340.js +17 -0
- package/dist/index340.js.map +1 -0
- package/dist/index341.js +72 -0
- package/dist/index341.js.map +1 -0
- package/dist/index342.js +12 -0
- package/dist/index342.js.map +1 -0
- package/dist/index343.js +17 -0
- package/dist/index343.js.map +1 -0
- package/dist/index344.js +69 -0
- package/dist/index344.js.map +1 -0
- package/dist/index345.js +68 -0
- package/dist/index345.js.map +1 -0
- package/dist/index346.js +8 -0
- package/dist/index346.js.map +1 -0
- package/dist/index347.js +59 -0
- package/dist/index347.js.map +1 -0
- package/dist/index348.js +71 -0
- package/dist/index348.js.map +1 -0
- package/dist/index349.js +34 -0
- package/dist/index349.js.map +1 -0
- package/dist/index35.js +35 -0
- package/dist/index35.js.map +1 -0
- package/dist/index350.js +12 -0
- package/dist/index350.js.map +1 -0
- package/dist/index351.js +156 -0
- package/dist/index351.js.map +1 -0
- package/dist/index352.js +111 -0
- package/dist/index352.js.map +1 -0
- package/dist/index353.js +7 -0
- package/dist/index353.js.map +1 -0
- package/dist/index354.js +26 -0
- package/dist/index354.js.map +1 -0
- package/dist/index355.js +19 -0
- package/dist/index355.js.map +1 -0
- package/dist/index356.js +32 -0
- package/dist/index356.js.map +1 -0
- package/dist/index357.js +16 -0
- package/dist/index357.js.map +1 -0
- package/dist/index358.js +10 -0
- package/dist/index358.js.map +1 -0
- package/dist/index359.js +26 -0
- package/dist/index359.js.map +1 -0
- package/dist/index36.js +31 -0
- package/dist/index36.js.map +1 -0
- package/dist/index360.js +16 -0
- package/dist/index360.js.map +1 -0
- package/dist/index361.js +31 -0
- package/dist/index361.js.map +1 -0
- package/dist/index362.js +8 -0
- package/dist/index362.js.map +1 -0
- package/dist/index37.js +26 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +132 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +235 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +27 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +54 -0
- package/dist/index40.js.map +1 -0
- package/dist/index41.js +2644 -0
- package/dist/index41.js.map +1 -0
- package/dist/index42.js +397 -0
- package/dist/index42.js.map +1 -0
- package/dist/index43.js +236 -0
- package/dist/index43.js.map +1 -0
- package/dist/index44.js +25 -0
- package/dist/index44.js.map +1 -0
- package/dist/index45.js +145 -0
- package/dist/index45.js.map +1 -0
- package/dist/index46.js +190 -0
- package/dist/index46.js.map +1 -0
- package/dist/index47.js +80 -0
- package/dist/index47.js.map +1 -0
- package/dist/index48.js +94 -0
- package/dist/index48.js.map +1 -0
- package/dist/index49.js +9 -0
- package/dist/index49.js.map +1 -0
- package/dist/index5.js +48 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +847 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +69 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +11 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +5 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +27 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +237 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +208 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +7 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +10 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +51 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +33 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +30 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +54 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +11 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +128 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +18 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +137 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +14 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +220 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +16 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +37 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +36 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +50 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +11 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +53 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +7 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +9 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +31 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +53 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +12 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +57 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +9 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +230 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +11 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +9 -0
- package/dist/index81.js.map +1 -0
- package/dist/index82.js +5 -0
- package/dist/index82.js.map +1 -0
- package/dist/index83.js +5 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +55 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +8 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +8 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +19 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +9 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +11 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +27 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +20 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +8 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +8 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +9 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +9 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +8 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +8 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +10 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +28 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +10 -0
- package/dist/index99.js.map +1 -0
- package/package.json +4 -1
package/dist/index11.js
ADDED
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
import { j as l } from "./index28.js";
|
|
2
|
+
import { ChevronLeft as fe, ChevronRight as le, CalendarDays as se } from "lucide-react";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { createPortal as ue } from "react-dom";
|
|
5
|
+
import "./index29.js";
|
|
6
|
+
import "./index30.js";
|
|
7
|
+
import "./index31.js";
|
|
8
|
+
import "./index32.js";
|
|
9
|
+
import "./index33.js";
|
|
10
|
+
import "./index34.js";
|
|
11
|
+
import "./index35.js";
|
|
12
|
+
import "./index36.js";
|
|
13
|
+
import pe from "./index37.js";
|
|
14
|
+
import "./index38.js";
|
|
15
|
+
import { useIsTouchDevice as me } from "./index4.js";
|
|
16
|
+
import { cn as J } from "./index2.js";
|
|
17
|
+
import { DayPicker as ge } from "./index39.js";
|
|
18
|
+
function te({
|
|
19
|
+
className: i,
|
|
20
|
+
classNames: t,
|
|
21
|
+
components: c,
|
|
22
|
+
showOutsideDays: d = !0,
|
|
23
|
+
...b
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ l.jsx(
|
|
26
|
+
ge,
|
|
27
|
+
{
|
|
28
|
+
weekStartsOn: 1,
|
|
29
|
+
showOutsideDays: d,
|
|
30
|
+
className: J("p-3", i),
|
|
31
|
+
classNames: {
|
|
32
|
+
month: "space-y-4",
|
|
33
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2",
|
|
34
|
+
month_caption: "flex justify-center pt-1 relative items-center",
|
|
35
|
+
month_grid: "w-full border-collapse space-y-1",
|
|
36
|
+
caption_label: "text-sm font-medium",
|
|
37
|
+
nav: "flex items-center justify-between absolute inset-x-0 z-10",
|
|
38
|
+
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",
|
|
39
|
+
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",
|
|
40
|
+
weeks: "w-full border-collapse",
|
|
41
|
+
weekdays: "flex",
|
|
42
|
+
weekday: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
43
|
+
week: "flex w-full mt-2",
|
|
44
|
+
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",
|
|
45
|
+
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",
|
|
46
|
+
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",
|
|
47
|
+
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",
|
|
48
|
+
range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none",
|
|
49
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
50
|
+
day_today: "bg-accent text-accent-foreground",
|
|
51
|
+
day_outside: "day-outside text-muted-foreground aria-selected:text-muted-foreground",
|
|
52
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
53
|
+
day_hidden: "invisible",
|
|
54
|
+
selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
55
|
+
today: "bg-gray-50 text-accent-foreground !rounded-md",
|
|
56
|
+
outside: "day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30",
|
|
57
|
+
disabled: "text-muted-foreground opacity-50",
|
|
58
|
+
hidden: "invisible",
|
|
59
|
+
...t
|
|
60
|
+
},
|
|
61
|
+
components: {
|
|
62
|
+
Chevron: (y) => y.orientation === "left" ? /* @__PURE__ */ l.jsx(fe, { ...y, className: "h-4 w-4" }) : /* @__PURE__ */ l.jsx(le, { ...y, className: "h-4 w-4" }),
|
|
63
|
+
...c
|
|
64
|
+
},
|
|
65
|
+
...b
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
te.displayName = "DayPicker";
|
|
70
|
+
function oe(i) {
|
|
71
|
+
return String(i).padStart(2, "0");
|
|
72
|
+
}
|
|
73
|
+
function P(i) {
|
|
74
|
+
const t = new Date(i);
|
|
75
|
+
return t.setHours(0, 0, 0, 0), t;
|
|
76
|
+
}
|
|
77
|
+
function G(i) {
|
|
78
|
+
return P(new Date(i.getFullYear(), i.getMonth(), 1));
|
|
79
|
+
}
|
|
80
|
+
function T(i) {
|
|
81
|
+
return `${oe(i.getDate())}/${oe(i.getMonth() + 1)}/${i.getFullYear()}`;
|
|
82
|
+
}
|
|
83
|
+
function ee({ day: i, month: t, year: c }) {
|
|
84
|
+
if (!Number.isFinite(i) || !Number.isFinite(t) || !Number.isFinite(c)) return null;
|
|
85
|
+
const d = new Date(c, t - 1, i);
|
|
86
|
+
return d.getFullYear() !== c || d.getMonth() !== t - 1 || d.getDate() !== i ? null : P(d);
|
|
87
|
+
}
|
|
88
|
+
function ie(i, t) {
|
|
89
|
+
const c = i.trim();
|
|
90
|
+
if (!c) return null;
|
|
91
|
+
const d = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(c);
|
|
92
|
+
if (d)
|
|
93
|
+
return ee({ day: Number(d[1]), month: Number(d[2]), year: Number(d[3]) });
|
|
94
|
+
const b = /^(\d{2})\/(\d{2})\/(\d{2})$/.exec(c);
|
|
95
|
+
if (b) {
|
|
96
|
+
const a = Number(b[3]);
|
|
97
|
+
return Number.isFinite(a) ? ee({ day: Number(b[1]), month: Number(b[2]), year: 2e3 + a }) : null;
|
|
98
|
+
}
|
|
99
|
+
const y = /^(\d{2})\/(\d{2})$/.exec(c);
|
|
100
|
+
return y ? ee({ day: Number(y[1]), month: Number(y[2]), year: t.getFullYear() }) : null;
|
|
101
|
+
}
|
|
102
|
+
const ce = r.forwardRef(
|
|
103
|
+
function({
|
|
104
|
+
value: t,
|
|
105
|
+
onChange: c,
|
|
106
|
+
className: d,
|
|
107
|
+
inputClassName: b,
|
|
108
|
+
placeholder: y = "DD/MM/YYYY",
|
|
109
|
+
disabled: a,
|
|
110
|
+
readOnly: C,
|
|
111
|
+
open: _,
|
|
112
|
+
onOpenChange: A,
|
|
113
|
+
dayPickerComponent: H,
|
|
114
|
+
dayPickerProps: W,
|
|
115
|
+
onFocus: $,
|
|
116
|
+
onBlur: N,
|
|
117
|
+
onKeyDown: j,
|
|
118
|
+
onPointerDown: B,
|
|
119
|
+
onMouseDown: X,
|
|
120
|
+
...w
|
|
121
|
+
}, v) {
|
|
122
|
+
const I = r.useRef(null), L = r.useRef(null), M = r.useRef(null), q = r.useRef(!1), Y = r.useRef(!1), z = r.useRef(!1), [k, p] = r.useState(!1), s = _ ?? k, u = A ?? p, [h, m] = r.useState(() => t ? T(t) : ""), [Q, R] = r.useState(() => G(t ?? /* @__PURE__ */ new Date())), [f, F] = r.useState(() => ({
|
|
123
|
+
left: 0,
|
|
124
|
+
top: 0
|
|
125
|
+
})), E = typeof window > "u" ? r.useEffect : r.useLayoutEffect;
|
|
126
|
+
r.useEffect(() => {
|
|
127
|
+
q.current || m(t ? T(t) : "");
|
|
128
|
+
}, [t]), r.useEffect(() => {
|
|
129
|
+
s && R(G(t ?? /* @__PURE__ */ new Date()));
|
|
130
|
+
}, [s, t]), r.useEffect(() => {
|
|
131
|
+
if (!s) return;
|
|
132
|
+
const e = (n) => {
|
|
133
|
+
const x = n.target;
|
|
134
|
+
x instanceof Node && (I.current?.contains(x) || L.current?.contains(x) || u(!1));
|
|
135
|
+
}, o = (n) => {
|
|
136
|
+
n.key === "Escape" && u(!1);
|
|
137
|
+
};
|
|
138
|
+
return document.addEventListener("pointerdown", e, !0), document.addEventListener("keydown", o, !0), () => {
|
|
139
|
+
document.removeEventListener("pointerdown", e, !0), document.removeEventListener("keydown", o, !0);
|
|
140
|
+
};
|
|
141
|
+
}, [s]), r.useEffect(() => {
|
|
142
|
+
if (!s || typeof window > "u" || !("IntersectionObserver" in window))
|
|
143
|
+
return;
|
|
144
|
+
const e = I.current;
|
|
145
|
+
if (!e)
|
|
146
|
+
return;
|
|
147
|
+
let o = !0;
|
|
148
|
+
const n = new IntersectionObserver((x) => {
|
|
149
|
+
if (!o)
|
|
150
|
+
return;
|
|
151
|
+
const D = x[0];
|
|
152
|
+
D && !D.isIntersecting && u(!1);
|
|
153
|
+
});
|
|
154
|
+
return n.observe(e), () => {
|
|
155
|
+
o = !1, n.disconnect();
|
|
156
|
+
};
|
|
157
|
+
}, [s]);
|
|
158
|
+
const Z = r.useCallback(
|
|
159
|
+
(e) => {
|
|
160
|
+
M.current = e, typeof v == "function" ? v(e) : v && (v.current = e);
|
|
161
|
+
},
|
|
162
|
+
[v]
|
|
163
|
+
), K = () => u(!1), ae = H ?? te, O = r.useCallback(() => {
|
|
164
|
+
if (typeof window > "u") return;
|
|
165
|
+
const e = I.current, o = L.current;
|
|
166
|
+
if (!e || !o) return;
|
|
167
|
+
const n = e.getBoundingClientRect(), x = o.offsetWidth, D = o.offsetHeight, re = window.innerWidth ?? 0, V = window.innerHeight ?? 0, g = 8;
|
|
168
|
+
let U = n.left;
|
|
169
|
+
U + x > re - g && (U = Math.max(g, re - x - g)), U < g && (U = g);
|
|
170
|
+
let S = n.bottom + g;
|
|
171
|
+
const de = S + D > V - g, ne = n.top - D - g;
|
|
172
|
+
de && ne >= g && (S = ne), S < g && (S = g), S + D > V - g && (S = Math.max(g, V - D - g)), F({ left: U, top: S });
|
|
173
|
+
}, []);
|
|
174
|
+
return E(() => {
|
|
175
|
+
if (!s || a || typeof window > "u") return;
|
|
176
|
+
O();
|
|
177
|
+
const e = window.requestAnimationFrame(O);
|
|
178
|
+
return window.addEventListener("scroll", O, !0), window.addEventListener("resize", O), () => {
|
|
179
|
+
window.cancelAnimationFrame(e), window.removeEventListener("scroll", O, !0), window.removeEventListener("resize", O);
|
|
180
|
+
};
|
|
181
|
+
}, [a, s, O]), /* @__PURE__ */ l.jsxs("div", { ref: I, "data-slot": "day-picker-input", className: J("relative group", d), children: [
|
|
182
|
+
/* @__PURE__ */ l.jsx(
|
|
183
|
+
pe,
|
|
184
|
+
{
|
|
185
|
+
...w,
|
|
186
|
+
"data-slot": "day-picker-input-input",
|
|
187
|
+
disabled: a,
|
|
188
|
+
readOnly: C,
|
|
189
|
+
inputRef: Z,
|
|
190
|
+
mask: [
|
|
191
|
+
{ mask: "00/00", lazy: !0 },
|
|
192
|
+
{ mask: "00/00/00", lazy: !0 },
|
|
193
|
+
{ mask: "00/00/0000", lazy: !0 }
|
|
194
|
+
],
|
|
195
|
+
dispatch: (e, o) => {
|
|
196
|
+
const n = (o.value + e).replace(/\D/g, "");
|
|
197
|
+
return n.length <= 4 ? o.compiledMasks[0] : n.length <= 6 ? o.compiledMasks[1] : o.compiledMasks[2];
|
|
198
|
+
},
|
|
199
|
+
placeholder: y,
|
|
200
|
+
value: h,
|
|
201
|
+
className: J(
|
|
202
|
+
"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",
|
|
203
|
+
"transition-colors group-hover:bg-accent group-hover:text-accent-foreground",
|
|
204
|
+
b
|
|
205
|
+
),
|
|
206
|
+
onAccept: (e) => {
|
|
207
|
+
const o = typeof e == "string" ? e : String(e ?? "");
|
|
208
|
+
m(o), o.replace(/\D/g, "").length === 0 && (s && R(G(/* @__PURE__ */ new Date())), t && c(null));
|
|
209
|
+
},
|
|
210
|
+
onComplete: (e) => {
|
|
211
|
+
const o = typeof e == "string" ? e : String(e ?? ""), n = ie(o, /* @__PURE__ */ new Date());
|
|
212
|
+
n && (t && n.getTime() === P(t).getTime() || c(n));
|
|
213
|
+
},
|
|
214
|
+
onPointerDown: (e) => {
|
|
215
|
+
Y.current = !0, z.current = typeof document < "u" && document.activeElement === e.currentTarget, B?.(e);
|
|
216
|
+
},
|
|
217
|
+
onMouseDown: (e) => {
|
|
218
|
+
Y.current = !0, z.current = typeof document < "u" && document.activeElement === e.currentTarget, X?.(e);
|
|
219
|
+
},
|
|
220
|
+
onFocus: (e) => {
|
|
221
|
+
const o = !Y.current || !z.current;
|
|
222
|
+
if (Y.current = !1, z.current = !1, q.current = !0, $?.(e), o) {
|
|
223
|
+
const n = e.currentTarget;
|
|
224
|
+
requestAnimationFrame(() => n.select());
|
|
225
|
+
}
|
|
226
|
+
a || u(!0);
|
|
227
|
+
},
|
|
228
|
+
onKeyDown: (e) => {
|
|
229
|
+
j?.(e), e.key === "Tab" && !e.defaultPrevented && u(!1);
|
|
230
|
+
},
|
|
231
|
+
onBlur: (e) => {
|
|
232
|
+
q.current = !1, N?.(e), s && typeof window < "u" && requestAnimationFrame(() => {
|
|
233
|
+
const x = I.current;
|
|
234
|
+
if (!x)
|
|
235
|
+
return;
|
|
236
|
+
const D = document.activeElement;
|
|
237
|
+
D && (x.contains(D) || L.current?.contains(D)) || u(!1);
|
|
238
|
+
});
|
|
239
|
+
const o = h.trim();
|
|
240
|
+
if (o === "") {
|
|
241
|
+
t && m(T(t));
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
const n = ie(o, /* @__PURE__ */ new Date());
|
|
245
|
+
if (n) {
|
|
246
|
+
m(T(n)), (!t || n.getTime() !== P(t).getTime()) && c(n);
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
m(t ? T(t) : "");
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
),
|
|
253
|
+
/* @__PURE__ */ l.jsx(
|
|
254
|
+
"button",
|
|
255
|
+
{
|
|
256
|
+
type: "button",
|
|
257
|
+
tabIndex: -1,
|
|
258
|
+
disabled: a,
|
|
259
|
+
"aria-label": "Open calendar",
|
|
260
|
+
"data-slot": "day-picker-input-trigger",
|
|
261
|
+
className: "absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground",
|
|
262
|
+
onPointerDown: (e) => {
|
|
263
|
+
e.preventDefault(), !a && M.current?.focus({ preventScroll: !0 });
|
|
264
|
+
},
|
|
265
|
+
onMouseDown: (e) => {
|
|
266
|
+
e.preventDefault(), !a && M.current?.focus({ preventScroll: !0 });
|
|
267
|
+
},
|
|
268
|
+
onClick: () => {
|
|
269
|
+
a || (M.current?.focus({ preventScroll: !0 }), u(!0));
|
|
270
|
+
},
|
|
271
|
+
children: /* @__PURE__ */ l.jsx(se, { "aria-hidden": !0, className: "size-4" })
|
|
272
|
+
}
|
|
273
|
+
),
|
|
274
|
+
s && !a && (() => {
|
|
275
|
+
const e = /* @__PURE__ */ l.jsx(
|
|
276
|
+
"div",
|
|
277
|
+
{
|
|
278
|
+
ref: L,
|
|
279
|
+
"data-slot": "day-picker-input-popover",
|
|
280
|
+
className: "fixed z-50 w-max rounded-md border bg-popover text-popover-foreground shadow-md",
|
|
281
|
+
style: { left: f.left, top: f.top },
|
|
282
|
+
children: /* @__PURE__ */ l.jsx(
|
|
283
|
+
ae,
|
|
284
|
+
{
|
|
285
|
+
mode: "single",
|
|
286
|
+
month: Q,
|
|
287
|
+
onMonthChange: R,
|
|
288
|
+
selected: t ?? void 0,
|
|
289
|
+
onSelect: (o) => {
|
|
290
|
+
if (!o) {
|
|
291
|
+
c(null), m(""), K();
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const n = P(o);
|
|
295
|
+
(!t || n.getTime() !== P(t).getTime()) && c(n), m(T(n)), K();
|
|
296
|
+
},
|
|
297
|
+
...W
|
|
298
|
+
}
|
|
299
|
+
)
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
return typeof document > "u" ? e : ue(e, document.body);
|
|
303
|
+
})()
|
|
304
|
+
] });
|
|
305
|
+
}
|
|
306
|
+
);
|
|
307
|
+
ce.displayName = "DayPickerInput";
|
|
308
|
+
function ye({
|
|
309
|
+
id: i,
|
|
310
|
+
value: t,
|
|
311
|
+
onChange: c,
|
|
312
|
+
className: d,
|
|
313
|
+
inputClassName: b,
|
|
314
|
+
placeholder: y = "DD/MM/YYYY",
|
|
315
|
+
disabled: a,
|
|
316
|
+
open: C,
|
|
317
|
+
onOpenChange: _,
|
|
318
|
+
dayPickerComponent: A,
|
|
319
|
+
dayPickerProps: H,
|
|
320
|
+
triggerTestId: W,
|
|
321
|
+
isHydrated: $
|
|
322
|
+
}) {
|
|
323
|
+
const N = r.useRef(null), j = r.useRef(null), [B, X] = r.useState(!1), w = C ?? B, v = _ ?? X, [I, L] = r.useState(() => G(t ?? /* @__PURE__ */ new Date())), [M, q] = r.useState(() => ({
|
|
324
|
+
left: 0,
|
|
325
|
+
top: 0
|
|
326
|
+
})), Y = typeof window > "u" ? r.useEffect : r.useLayoutEffect;
|
|
327
|
+
r.useEffect(() => {
|
|
328
|
+
w && L(G(t ?? /* @__PURE__ */ new Date()));
|
|
329
|
+
}, [w, t]), r.useEffect(() => {
|
|
330
|
+
if (!w) return;
|
|
331
|
+
const p = (u) => {
|
|
332
|
+
const h = u.target;
|
|
333
|
+
h instanceof Node && (N.current?.contains(h) || j.current?.contains(h) || v(!1));
|
|
334
|
+
}, s = (u) => {
|
|
335
|
+
u.key === "Escape" && v(!1);
|
|
336
|
+
};
|
|
337
|
+
return document.addEventListener("pointerdown", p, !0), document.addEventListener("keydown", s, !0), () => {
|
|
338
|
+
document.removeEventListener("pointerdown", p, !0), document.removeEventListener("keydown", s, !0);
|
|
339
|
+
};
|
|
340
|
+
}, [w]), r.useEffect(() => {
|
|
341
|
+
if (!w || typeof window > "u" || !("IntersectionObserver" in window))
|
|
342
|
+
return;
|
|
343
|
+
const p = N.current;
|
|
344
|
+
if (!p)
|
|
345
|
+
return;
|
|
346
|
+
let s = !0;
|
|
347
|
+
const u = new IntersectionObserver((h) => {
|
|
348
|
+
if (!s)
|
|
349
|
+
return;
|
|
350
|
+
const m = h[0];
|
|
351
|
+
m && !m.isIntersecting && v(!1);
|
|
352
|
+
});
|
|
353
|
+
return u.observe(p), () => {
|
|
354
|
+
s = !1, u.disconnect();
|
|
355
|
+
};
|
|
356
|
+
}, [w]);
|
|
357
|
+
const z = A ?? te, k = r.useCallback(() => {
|
|
358
|
+
if (typeof window > "u") return;
|
|
359
|
+
const p = N.current, s = j.current;
|
|
360
|
+
if (!p || !s) return;
|
|
361
|
+
const u = p.getBoundingClientRect(), h = s.offsetWidth, m = s.offsetHeight, Q = window.innerWidth ?? 0, R = window.innerHeight ?? 0, f = 8;
|
|
362
|
+
let F = u.left;
|
|
363
|
+
F + h > Q - f && (F = Math.max(f, Q - h - f)), F < f && (F = f);
|
|
364
|
+
let E = u.bottom + f;
|
|
365
|
+
const Z = E + m > R - f, K = u.top - m - f;
|
|
366
|
+
Z && K >= f && (E = K), E < f && (E = f), E + m > R - f && (E = Math.max(f, R - m - f)), q({ left: F, top: E });
|
|
367
|
+
}, []);
|
|
368
|
+
return Y(() => {
|
|
369
|
+
if (!w || a || typeof window > "u") return;
|
|
370
|
+
k();
|
|
371
|
+
const p = window.requestAnimationFrame(k);
|
|
372
|
+
return window.addEventListener("scroll", k, !0), window.addEventListener("resize", k), () => {
|
|
373
|
+
window.cancelAnimationFrame(p), window.removeEventListener("scroll", k, !0), window.removeEventListener("resize", k);
|
|
374
|
+
};
|
|
375
|
+
}, [a, w, k]), /* @__PURE__ */ l.jsxs("div", { ref: N, "data-slot": "day-picker-input", className: J("relative group", d), children: [
|
|
376
|
+
/* @__PURE__ */ l.jsxs(
|
|
377
|
+
"button",
|
|
378
|
+
{
|
|
379
|
+
id: i,
|
|
380
|
+
type: "button",
|
|
381
|
+
disabled: a,
|
|
382
|
+
"data-testid": W,
|
|
383
|
+
"data-hydrated": $ ? "true" : void 0,
|
|
384
|
+
"data-slot": "day-picker-input-input",
|
|
385
|
+
className: J(
|
|
386
|
+
"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",
|
|
387
|
+
"transition-colors group-hover:bg-accent group-hover:text-accent-foreground",
|
|
388
|
+
!t && "text-muted-foreground",
|
|
389
|
+
w && "ring-2 ring-primary ring-offset-2",
|
|
390
|
+
b
|
|
391
|
+
),
|
|
392
|
+
onClick: () => {
|
|
393
|
+
a || v(!w);
|
|
394
|
+
},
|
|
395
|
+
children: [
|
|
396
|
+
/* @__PURE__ */ l.jsx(
|
|
397
|
+
se,
|
|
398
|
+
{
|
|
399
|
+
"aria-hidden": !0,
|
|
400
|
+
className: "mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground"
|
|
401
|
+
}
|
|
402
|
+
),
|
|
403
|
+
t ? T(t) : y
|
|
404
|
+
]
|
|
405
|
+
}
|
|
406
|
+
),
|
|
407
|
+
w && !a && (() => {
|
|
408
|
+
const p = /* @__PURE__ */ l.jsx(
|
|
409
|
+
"div",
|
|
410
|
+
{
|
|
411
|
+
ref: j,
|
|
412
|
+
"data-slot": "day-picker-input-popover",
|
|
413
|
+
className: "fixed z-50 w-max rounded-md border bg-popover text-popover-foreground shadow-md",
|
|
414
|
+
style: { left: M.left, top: M.top },
|
|
415
|
+
children: /* @__PURE__ */ l.jsx(
|
|
416
|
+
z,
|
|
417
|
+
{
|
|
418
|
+
mode: "single",
|
|
419
|
+
month: I,
|
|
420
|
+
onMonthChange: L,
|
|
421
|
+
selected: t ?? void 0,
|
|
422
|
+
onSelect: (s) => {
|
|
423
|
+
if (!s) {
|
|
424
|
+
c(null), v(!1);
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
const u = P(s);
|
|
428
|
+
(!t || u.getTime() !== P(t).getTime()) && c(u), v(!1);
|
|
429
|
+
},
|
|
430
|
+
...H
|
|
431
|
+
}
|
|
432
|
+
)
|
|
433
|
+
}
|
|
434
|
+
);
|
|
435
|
+
return typeof document > "u" ? p : ue(p, document.body);
|
|
436
|
+
})()
|
|
437
|
+
] });
|
|
438
|
+
}
|
|
439
|
+
function Oe(i) {
|
|
440
|
+
if (me())
|
|
441
|
+
return /* @__PURE__ */ l.jsx(ye, { ...i });
|
|
442
|
+
const {
|
|
443
|
+
id: c,
|
|
444
|
+
value: d,
|
|
445
|
+
onChange: b,
|
|
446
|
+
className: y,
|
|
447
|
+
inputClassName: a,
|
|
448
|
+
placeholder: C = "DD/MM/YYYY",
|
|
449
|
+
disabled: _,
|
|
450
|
+
readOnly: A,
|
|
451
|
+
dayPickerComponent: H,
|
|
452
|
+
dayPickerProps: W,
|
|
453
|
+
triggerTestId: $,
|
|
454
|
+
isHydrated: N,
|
|
455
|
+
open: j,
|
|
456
|
+
onOpenChange: B
|
|
457
|
+
} = i;
|
|
458
|
+
return /* @__PURE__ */ l.jsx(
|
|
459
|
+
ce,
|
|
460
|
+
{
|
|
461
|
+
id: c,
|
|
462
|
+
value: d,
|
|
463
|
+
onChange: b,
|
|
464
|
+
className: y,
|
|
465
|
+
inputClassName: a,
|
|
466
|
+
placeholder: C,
|
|
467
|
+
disabled: _,
|
|
468
|
+
readOnly: A,
|
|
469
|
+
open: j,
|
|
470
|
+
onOpenChange: B,
|
|
471
|
+
dayPickerComponent: H,
|
|
472
|
+
dayPickerProps: W,
|
|
473
|
+
"data-testid": $,
|
|
474
|
+
"data-hydrated": N ? "true" : void 0
|
|
475
|
+
}
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
export {
|
|
479
|
+
te as DayPicker,
|
|
480
|
+
Oe as DayPickerField,
|
|
481
|
+
ce as DayPickerInput
|
|
482
|
+
};
|
|
483
|
+
//# sourceMappingURL=index11.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index11.js","sources":["../src/components/DayPicker/index.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, CalendarDays } from \"lucide-react\"\nimport * as React from \"react\"\nimport { createPortal } from \"react-dom\"\nimport { DayPicker as ReactDayPicker } from \"react-day-picker\"\nimport { IMaskInput } from \"react-imask\"\n\nimport { useIsTouchDevice } from \"@/helpers/useIsTouchDevice\"\nimport { cn } from \"@/lib/utils\"\n\n\nexport type DayPickerProps = React.ComponentProps<typeof ReactDayPicker>\n\nexport function DayPicker({\n className,\n classNames,\n components,\n showOutsideDays = true,\n ...props\n}: DayPickerProps) {\n return (\n <ReactDayPicker\n weekStartsOn={1}\n showOutsideDays={showOutsideDays}\n className={cn(\"p-3\", className)}\n classNames={{\n month: \"space-y-4\",\n months: \"flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2\",\n month_caption: \"flex justify-center pt-1 relative items-center\",\n month_grid: \"w-full border-collapse space-y-1\",\n caption_label: \"text-sm font-medium\",\n nav: \"flex items-center justify-between absolute inset-x-0 z-10\",\n button_previous:\n \"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\",\n button_next:\n \"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\",\n weeks: \"w-full border-collapse\",\n weekdays: \"flex\",\n weekday: \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\n week: \"flex w-full mt-2\",\n 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\",\n day_button:\n \"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\",\n range_start:\n \"day-range-start !bg-accent rounded-l-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_end:\n \"day-range-end !bg-accent rounded-r-md [&>button]:bg-primary [&>button]:text-primary-foreground [&>button]:hover:bg-primary [&>button]:hover:text-primary-foreground\",\n range_middle: \"aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none\",\n day_selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n day_today: \"bg-accent text-accent-foreground\",\n day_outside: \"day-outside text-muted-foreground aria-selected:text-muted-foreground\",\n day_disabled: \"text-muted-foreground opacity-50\",\n day_hidden: \"invisible\",\n selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n today: \"bg-gray-50 text-accent-foreground !rounded-md\",\n outside:\n \"day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30\",\n disabled: \"text-muted-foreground opacity-50\",\n hidden: \"invisible\",\n ...classNames,\n }}\n components={{\n Chevron: (chevronProps) =>\n chevronProps.orientation === \"left\" ? (\n <ChevronLeft {...chevronProps} className=\"h-4 w-4\" />\n ) : (\n <ChevronRight {...chevronProps} className=\"h-4 w-4\" />\n ),\n ...components,\n }}\n {...props}\n />\n )\n}\n\nDayPicker.displayName = \"DayPicker\"\n\nfunction pad2(value: number) {\n return String(value).padStart(2, \"0\")\n}\n\nfunction startOfDay(date: Date) {\n const next = new Date(date)\n next.setHours(0, 0, 0, 0)\n return next\n}\n\nfunction startOfMonth(date: Date) {\n return startOfDay(new Date(date.getFullYear(), date.getMonth(), 1))\n}\n\nfunction formatDayInput(date: Date) {\n return `${pad2(date.getDate())}/${pad2(date.getMonth() + 1)}/${date.getFullYear()}`\n}\n\nfunction buildDate({ day, month, year }: { day: number; month: number; year: number }): Date | null {\n if (!Number.isFinite(day) || !Number.isFinite(month) || !Number.isFinite(year)) return null\n\n const date = new Date(year, month - 1, day)\n if (\n date.getFullYear() !== year ||\n date.getMonth() !== month - 1 ||\n date.getDate() !== day\n ) {\n return null\n }\n\n return startOfDay(date)\n}\n\nfunction parseDayInput(value: string, now: Date): Date | null {\n const trimmed = value.trim()\n if (!trimmed) return null\n\n const full = /^(\\d{2})\\/(\\d{2})\\/(\\d{4})$/.exec(trimmed)\n if (full) {\n return buildDate({ day: Number(full[1]), month: Number(full[2]), year: Number(full[3]) })\n }\n\n const shortYear = /^(\\d{2})\\/(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (shortYear) {\n const year = Number(shortYear[3])\n if (!Number.isFinite(year)) return null\n return buildDate({ day: Number(shortYear[1]), month: Number(shortYear[2]), year: 2000 + year })\n }\n\n const noYear = /^(\\d{2})\\/(\\d{2})$/.exec(trimmed)\n if (noYear) {\n return buildDate({ day: Number(noYear[1]), month: Number(noYear[2]), year: now.getFullYear() })\n }\n\n return null\n}\n\nexport type DayPickerInputProps = Omit<\n React.ComponentProps<\"input\">,\n \"value\" | \"defaultValue\" | \"onChange\" | \"type\"\n> & {\n value: Date | null\n onChange: (value: Date | null) => void\n inputClassName?: string\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n}\n\nexport const DayPickerInput = React.forwardRef<HTMLInputElement, DayPickerInputProps>(\n function DayPickerInput(\n {\n value,\n onChange,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n onFocus,\n onBlur,\n onKeyDown,\n onPointerDown,\n onMouseDown,\n ...rest\n },\n forwardedRef,\n\t ) {\n\t const rootRef = React.useRef<HTMLDivElement | null>(null)\n\t const popoverRef = React.useRef<HTMLDivElement | null>(null)\n\t\t const inputRef = React.useRef<HTMLInputElement | null>(null)\n\t\t const isFocusedRef = React.useRef(false)\n\t\t const pointerDownOnInputRef = React.useRef(false)\n\t\t const inputWasFocusedOnPointerDownRef = React.useRef(false)\n\n\t const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n\t const open = openProp ?? uncontrolledOpen\n\t const setOpen = onOpenChange ?? setUncontrolledOpen\n\t const [draft, setDraft] = React.useState(() => (value ? formatDayInput(value) : \"\"))\n\t\t const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n\t\t const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n\t\t left: 0,\n\t top: 0,\n\t }))\n\n\t const useIsomorphicLayoutEffect = typeof window === \"undefined\" ? React.useEffect : React.useLayoutEffect\n\n React.useEffect(() => {\n if (isFocusedRef.current) return\n setDraft(value ? formatDayInput(value) : \"\")\n }, [value])\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const setRefs = React.useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node\n if (typeof forwardedRef === \"function\") {\n forwardedRef(node)\n } else if (forwardedRef) {\n forwardedRef.current = node\n }\n },\n [forwardedRef],\n )\n\n const closePopover = () => setOpen(false)\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n\t useIsomorphicLayoutEffect(() => {\n\t if (!open || disabled) return\n\t if (typeof window === \"undefined\") return\n\n\t updatePopoverPosition()\n\t const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n\t window.addEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.addEventListener(\"resize\", updatePopoverPosition)\n\t return () => {\n\t window.cancelAnimationFrame(rafId)\n\t window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n\t window.removeEventListener(\"resize\", updatePopoverPosition)\n\t }\n\t }, [disabled, open, updatePopoverPosition])\n\n\t return (\n\t <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n\t <IMaskInput\n\t {...rest}\n\t data-slot=\"day-picker-input-input\"\n disabled={disabled}\n readOnly={readOnly}\n inputRef={setRefs}\n mask={[\n { mask: \"00/00\", lazy: true },\n { mask: \"00/00/00\", lazy: true },\n { mask: \"00/00/0000\", lazy: true },\n ]}\n dispatch={(appended, dynamicMasked) => {\n const digits = (dynamicMasked.value + appended).replace(/\\D/g, \"\")\n if (digits.length <= 4) return dynamicMasked.compiledMasks[0]\n if (digits.length <= 6) return dynamicMasked.compiledMasks[1]\n return dynamicMasked.compiledMasks[2]\n }}\n\t placeholder={placeholder}\n\t value={draft}\n\t\t className={cn(\n\t\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\",\n\t\t \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n\t\t inputClassName\n\t\t )}\n onAccept={(nextValue) => {\n const next = typeof nextValue === \"string\" ? nextValue : String(nextValue ?? \"\")\n setDraft(next)\n if (next.replace(/\\D/g, \"\").length === 0) {\n if (open) {\n setMonth(startOfMonth(new Date()))\n }\n if (value) {\n onChange(null)\n }\n }\n }}\n onComplete={(completedValue) => {\n const next = typeof completedValue === \"string\"\n ? completedValue\n : String(completedValue ?? \"\")\n const parsed = parseDayInput(next, new Date())\n if (!parsed) return\n if (value && parsed.getTime() === startOfDay(value).getTime()) {\n return\n }\n onChange(parsed)\n }}\n\t onPointerDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onPointerDown?.(event)\n\t }}\n\t onMouseDown={(event) => {\n\t pointerDownOnInputRef.current = true\n\t inputWasFocusedOnPointerDownRef.current =\n\t typeof document !== \"undefined\" && document.activeElement === event.currentTarget\n\t onMouseDown?.(event)\n\t }}\n onFocus={(event) => {\n const shouldSelectAll =\n !pointerDownOnInputRef.current || !inputWasFocusedOnPointerDownRef.current\n pointerDownOnInputRef.current = false\n inputWasFocusedOnPointerDownRef.current = false\n\t isFocusedRef.current = true\n\t onFocus?.(event)\n\t if (shouldSelectAll) {\n\t const element = event.currentTarget\n\t requestAnimationFrame(() => element.select())\n }\n if (!disabled) {\n setOpen(true)\n }\n }}\n onKeyDown={(event) => {\n onKeyDown?.(event)\n if (event.key === \"Tab\" && !event.defaultPrevented) {\n setOpen(false)\n }\n }}\n\t onBlur={(event) => {\n\t isFocusedRef.current = false\n\t onBlur?.(event)\n\t if (open && typeof window !== \"undefined\") {\n\t requestAnimationFrame(() => {\n const root = rootRef.current\n if (!root) {\n return\n }\n const activeElement = document.activeElement\n if (\n activeElement &&\n (root.contains(activeElement) || popoverRef.current?.contains(activeElement))\n ) {\n return\n }\n setOpen(false)\n })\n\t }\n\t const trimmed = draft.trim()\n\t if (trimmed === \"\") {\n\t if (value) {\n\t setDraft(formatDayInput(value))\n\t }\n\t return\n\t }\n\t const parsed = parseDayInput(trimmed, new Date())\n\t if (parsed) {\n\t setDraft(formatDayInput(parsed))\n\t if (!value || parsed.getTime() !== startOfDay(value).getTime()) {\n\t onChange(parsed)\n }\n return\n }\n setDraft(value ? formatDayInput(value) : \"\")\n\t\t }}\n\t\t />\n\n <button\n type=\"button\"\n tabIndex={-1}\n disabled={disabled}\n aria-label=\"Open calendar\"\n data-slot=\"day-picker-input-trigger\"\n className=\"absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n onPointerDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onMouseDown={(event) => {\n event.preventDefault()\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n }}\n onClick={() => {\n if (disabled) {\n return\n }\n inputRef.current?.focus({ preventScroll: true })\n setOpen(true)\n }}\n >\n <CalendarDays aria-hidden className=\"size-4\" />\n </button>\n\n {open && !disabled && (() => {\n const popover = (\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"fixed z-50 w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={value ?? undefined}\n onSelect={(date) => {\n if (!date) {\n onChange(null)\n setDraft(\"\")\n closePopover()\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n onChange(normalized)\n }\n setDraft(formatDayInput(normalized))\n closePopover()\n }}\n {...dayPickerProps}\n />\n </div>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n }\n)\n\nDayPickerInput.displayName = \"DayPickerInput\"\n\nexport type DayPickerFieldProps = {\n id?: string\n value: Date | null\n onChange: (value: Date | null) => void\n className?: string\n inputClassName?: string\n placeholder?: string\n disabled?: boolean\n readOnly?: boolean\n open?: boolean\n onOpenChange?: (open: boolean) => void\n dayPickerComponent?: React.ComponentType<DayPickerProps>\n dayPickerProps?: Omit<DayPickerProps, \"mode\" | \"selected\" | \"onSelect\" | \"month\" | \"onMonthChange\">\n triggerTestId?: string\n isHydrated?: boolean\n}\n\nfunction DayPickerButtonField({\n id,\n value,\n onChange,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n open: openProp,\n onOpenChange,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n}: DayPickerFieldProps) {\n const rootRef = React.useRef<HTMLDivElement | null>(null)\n const popoverRef = React.useRef<HTMLDivElement | null>(null)\n const [uncontrolledOpen, setUncontrolledOpen] = React.useState(false)\n const open = openProp ?? uncontrolledOpen\n const setOpen = onOpenChange ?? setUncontrolledOpen\n const [month, setMonth] = React.useState(() => startOfMonth(value ?? new Date()))\n const [popoverPosition, setPopoverPosition] = React.useState(() => ({\n left: 0,\n top: 0,\n }))\n\n const useIsomorphicLayoutEffect = typeof window === \"undefined\" ? React.useEffect : React.useLayoutEffect\n\n React.useEffect(() => {\n if (!open) return\n setMonth(startOfMonth(value ?? new Date()))\n }, [open, value])\n\n React.useEffect(() => {\n if (!open) return\n\n const handlePointerDown = (event: PointerEvent) => {\n const target = event.target\n if (!(target instanceof Node)) return\n if (rootRef.current?.contains(target)) return\n if (popoverRef.current?.contains(target)) return\n setOpen(false)\n }\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\") return\n setOpen(false)\n }\n\n document.addEventListener(\"pointerdown\", handlePointerDown, true)\n document.addEventListener(\"keydown\", handleKeyDown, true)\n return () => {\n document.removeEventListener(\"pointerdown\", handlePointerDown, true)\n document.removeEventListener(\"keydown\", handleKeyDown, true)\n }\n }, [open])\n\n React.useEffect(() => {\n if (!open) {\n return\n }\n if (typeof window === \"undefined\") {\n return\n }\n if (!(\"IntersectionObserver\" in window)) {\n return\n }\n\n const root = rootRef.current\n if (!root) {\n return\n }\n\n let isActive = true\n const observer = new IntersectionObserver(entries => {\n if (!isActive) {\n return\n }\n const entry = entries[0]\n if (entry && !entry.isIntersecting) {\n setOpen(false)\n }\n })\n observer.observe(root)\n return () => {\n isActive = false\n observer.disconnect()\n }\n }, [open])\n\n const DayPickerComponent = dayPickerComponent ?? DayPicker\n\n const updatePopoverPosition = React.useCallback(() => {\n if (typeof window === \"undefined\") return\n const root = rootRef.current\n const popover = popoverRef.current\n if (!root || !popover) return\n\n const rect = root.getBoundingClientRect()\n const popoverWidth = popover.offsetWidth\n const popoverHeight = popover.offsetHeight\n const viewportWidth = window.innerWidth ?? 0\n const viewportHeight = window.innerHeight ?? 0\n const padding = 8\n\n let left = rect.left\n if (left + popoverWidth > viewportWidth - padding) {\n left = Math.max(padding, viewportWidth - popoverWidth - padding)\n }\n if (left < padding) {\n left = padding\n }\n\n let top = rect.bottom + padding\n const overflowBottom = top + popoverHeight > viewportHeight - padding\n const aboveTop = rect.top - popoverHeight - padding\n if (overflowBottom && aboveTop >= padding) {\n top = aboveTop\n }\n\n if (top < padding) {\n top = padding\n }\n if (top + popoverHeight > viewportHeight - padding) {\n top = Math.max(padding, viewportHeight - popoverHeight - padding)\n }\n\n setPopoverPosition({ left, top })\n }, [])\n\n useIsomorphicLayoutEffect(() => {\n if (!open || disabled) return\n if (typeof window === \"undefined\") return\n\n updatePopoverPosition()\n const rafId = window.requestAnimationFrame(updatePopoverPosition)\n\n window.addEventListener(\"scroll\", updatePopoverPosition, true)\n window.addEventListener(\"resize\", updatePopoverPosition)\n return () => {\n window.cancelAnimationFrame(rafId)\n window.removeEventListener(\"scroll\", updatePopoverPosition, true)\n window.removeEventListener(\"resize\", updatePopoverPosition)\n }\n }, [disabled, open, updatePopoverPosition])\n\n return (\n <div ref={rootRef} data-slot=\"day-picker-input\" className={cn(\"relative group\", className)}>\n <button\n id={id}\n type=\"button\"\n disabled={disabled}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n data-slot=\"day-picker-input-input\"\n className={cn(\n \"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\",\n \"transition-colors group-hover:bg-accent group-hover:text-accent-foreground\",\n !value && \"text-muted-foreground\",\n open && \"ring-2 ring-primary ring-offset-2\",\n inputClassName,\n )}\n onClick={() => {\n if (disabled) return\n setOpen(!open)\n }}\n >\n <CalendarDays\n aria-hidden\n className=\"mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground\"\n />\n {value ? formatDayInput(value) : placeholder}\n </button>\n\n {open && !disabled && (() => {\n const popover = (\n <div\n ref={popoverRef}\n data-slot=\"day-picker-input-popover\"\n className=\"fixed z-50 w-max rounded-md border bg-popover text-popover-foreground shadow-md\"\n style={{ left: popoverPosition.left, top: popoverPosition.top }}\n >\n <DayPickerComponent\n mode=\"single\"\n month={month}\n onMonthChange={setMonth}\n selected={value ?? undefined}\n onSelect={(date) => {\n if (!date) {\n onChange(null)\n setOpen(false)\n return\n }\n\n const normalized = startOfDay(date)\n if (!value || normalized.getTime() !== startOfDay(value).getTime()) {\n onChange(normalized)\n }\n setOpen(false)\n }}\n {...dayPickerProps}\n />\n </div>\n )\n\n if (typeof document === \"undefined\") return popover\n return createPortal(popover, document.body)\n })()}\n </div>\n )\n}\n\nexport function DayPickerField(props: DayPickerFieldProps) {\n const isTouchDevice = useIsTouchDevice()\n\n if (isTouchDevice) {\n return <DayPickerButtonField {...props} />\n }\n\n const {\n id,\n value,\n onChange,\n className,\n inputClassName,\n placeholder = \"DD/MM/YYYY\",\n disabled,\n readOnly,\n dayPickerComponent,\n dayPickerProps,\n triggerTestId,\n isHydrated,\n open,\n onOpenChange,\n } = props\n\n return (\n <DayPickerInput\n id={id}\n value={value}\n onChange={onChange}\n className={className}\n inputClassName={inputClassName}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n open={open}\n onOpenChange={onOpenChange}\n dayPickerComponent={dayPickerComponent}\n dayPickerProps={dayPickerProps}\n data-testid={triggerTestId}\n data-hydrated={isHydrated ? \"true\" : undefined}\n />\n )\n}\n"],"names":["DayPicker","className","classNames","components","showOutsideDays","props","jsx","ReactDayPicker","cn","chevronProps","ChevronLeft","ChevronRight","pad2","value","startOfDay","date","next","startOfMonth","formatDayInput","buildDate","day","month","year","parseDayInput","now","trimmed","full","shortYear","noYear","DayPickerInput","React","onChange","inputClassName","placeholder","disabled","readOnly","openProp","onOpenChange","dayPickerComponent","dayPickerProps","onFocus","onBlur","onKeyDown","onPointerDown","onMouseDown","rest","forwardedRef","rootRef","popoverRef","inputRef","isFocusedRef","pointerDownOnInputRef","inputWasFocusedOnPointerDownRef","uncontrolledOpen","setUncontrolledOpen","open","setOpen","draft","setDraft","setMonth","popoverPosition","setPopoverPosition","useIsomorphicLayoutEffect","handlePointerDown","event","target","handleKeyDown","root","isActive","observer","entries","entry","setRefs","node","closePopover","DayPickerComponent","updatePopoverPosition","popover","rect","popoverWidth","popoverHeight","viewportWidth","viewportHeight","padding","left","top","overflowBottom","aboveTop","rafId","jsxs","IMaskInput","appended","dynamicMasked","digits","nextValue","completedValue","parsed","shouldSelectAll","element","activeElement","CalendarDays","normalized","createPortal","DayPickerButtonField","id","triggerTestId","isHydrated","DayPickerField","useIsTouchDevice"],"mappings":";;;;;;;;;;;;;;;;;AAYO,SAASA,GAAU;AAAA,EACxB,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,YAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGC;AACL,GAAmB;AACjB,SACEC,gBAAAA,EAAAA;AAAAA,IAACC;AAAAA,IAAA;AAAA,MACC,cAAc;AAAA,MACd,iBAAAH;AAAA,MACA,WAAWI,EAAG,OAAOP,CAAS;AAAA,MAC9B,YAAY;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,KAAK;AAAA,QACL,iBACE;AAAA,QACF,aACE;AAAA,QACF,OAAO;AAAA,QACP,UAAU;AAAA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AAO,WAAa,MAAoBsC,IACrCyB,GAAazB,GAAS,SAAS,IAAI;AAAA,IAC5C,GAAA;AAAA,EAAG,GACL;AAEJ;AAEO,SAAS8B,GAAetG,GAA4B;AAGzD,MAFsBuG,GAAA;AAGpB,WAAOtG,gBAAAA,MAACiG,IAAA,EAAsB,GAAGlG,EAAA,CAAO;AAG1C,QAAM;AAAA,IACJ,IAAAmG;AAAA,IACA,OAAA3F;AAAA,IACA,UAAAkB;AAAA,IACA,WAAA9B;AAAA,IACA,gBAAA+B;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAG;AAAA,IACA,gBAAAC;AAAA,IACA,eAAAkE;AAAA,IACA,YAAAC;AAAA,IACA,MAAAnD;AAAA,IACA,cAAAlB;AAAA,EAAA,IACEhC;AAEJ,SACEC,gBAAAA,EAAAA;AAAAA,IAACuB;AAAA,IAAA;AAAA,MACC,IAAA2E;AAAA,MACA,OAAA3F;AAAA,MACA,UAAAkB;AAAA,MACA,WAAA9B;AAAA,MACA,gBAAA+B;AAAA,MACA,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,MAAAoB;AAAA,MACA,cAAAlB;AAAA,MACA,oBAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,eAAakE;AAAA,MACb,iBAAeC,IAAa,SAAS;AAAA,IAAA;AAAA,EAAA;AAG3C;"}
|
package/dist/index110.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index110.js","sources":["../../../node_modules/react-day-picker/dist/esm/components/YearsDropdown.js"],"sourcesContent":["import React from \"react\";\nimport { useDayPicker } from \"../useDayPicker.js\";\n/**\n * Render a dropdown to navigate between years in the calendar.\n *\n * @group Components\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function YearsDropdown(props) {\n const { components } = useDayPicker();\n return React.createElement(components.Dropdown, { ...props });\n}\n"],"names":["YearsDropdown","props","components","useDayPicker","React"],"mappings":";;AAQO,SAASA,EAAcC,GAAO;AACjC,QAAM,EAAE,YAAAC,EAAU,IAAKC,EAAY;AACnC,SAAOC,EAAM,cAAcF,EAAW,UAAU,EAAE,GAAGD,GAAO;AAChE;","x_google_ignoreList":[0]}
|