@rpcbase/ui 0.211.0 → 0.212.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 +73 -25
- package/dist/index.js.map +1 -0
- package/dist/index10.js +666 -18
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +46 -9
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +7 -14
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +50 -10
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +233 -15
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +25 -21
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +27 -27
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +404 -9
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +609 -9
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +55 -10
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +6 -8
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +459 -1673
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +7 -8
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +17 -7
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +8 -11
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +10 -10
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +19 -37
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +6 -9
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +7 -8
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +8 -10
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +8 -12
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +6 -7
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +79 -10
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +6 -8
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +8 -7
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +27 -8
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +9 -9
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +6 -7
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +8 -7
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +8 -10
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +8 -60
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +8 -9
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +8 -23
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +23 -21
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +11 -22
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +8 -37
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +7 -8
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +7 -11
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +9 -17
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +148 -13
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +42 -9
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +7 -8
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +10 -8
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +16 -8
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +20 -194
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +16 -8
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +10 -7
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +34 -9
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +14 -24
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +13 -11
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +11 -10
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +16 -9
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +104 -9
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +23 -8
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +56 -7
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +30 -33
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +75 -8
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +12 -7
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +23 -8
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +19 -7
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +26 -7
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +9 -7
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +9 -32
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +26 -35
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +38 -19
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +19 -15
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +268 -57
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +9 -12
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +7 -19
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +7 -89
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +7 -50
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +7 -20
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +6 -11
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +9 -13
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +27 -9
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +10 -25
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +9 -10
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +179 -9
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +8 -9
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +6 -9
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +6 -7
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +7 -9
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +6 -70
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +7 -20
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +6 -15
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +6 -12
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -23
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +16 -20
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +469 -27
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +158 -59
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +33 -13
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +12 -9
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +51 -29
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +14 -29
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +47 -16
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +98 -16
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +90 -10
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +109 -27
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +55 -388
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +266 -65
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +15 -499
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +39 -132
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +11 -55
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +6 -80
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +12 -902
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +119 -22
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +21 -452
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +18 -7
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +38 -59
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +23 -64
- package/dist/index199.js.map +1 -1
- package/dist/index2.js +8 -10
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +5 -43
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +11 -63
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +22 -11
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +31 -19
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +20 -148
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +28 -7
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +32 -14
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +7 -107
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +65 -355
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +184 -99
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +49 -329
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +28 -11
- package/dist/index21.js.map +1 -1
- package/dist/index210.js +60 -212
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +12 -22
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +69 -30
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +21 -189
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +20 -21
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +9 -65
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +8 -46
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +9 -12
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +8 -28
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +9 -47
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +48 -16
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +19 -20
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +8 -6
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +7 -7
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +15 -23
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +12 -27
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +16 -70
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +16 -17
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +8 -7
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +8 -53
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +9 -8
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +37 -109
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +7 -28
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +57 -16
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +11 -12
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +8 -3
- package/dist/index233.js.map +1 -0
- package/dist/index234.js +7 -28
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +11 -71
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +8 -3
- package/dist/index236.js.map +1 -0
- package/dist/index237.js +7 -14
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +6 -53
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +13 -117
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +227 -11
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +13 -9
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +13 -16
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +13 -689
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +14 -256
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +13 -704
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +9 -7433
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +8 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +7 -15
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +8 -8
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +9 -462
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +32 -23
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +9 -41
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +19 -22
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +10 -30
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +13 -7
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +14 -62
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +24 -10
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +13 -15
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +13 -6
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +12 -19
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +7 -28
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +16 -60
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +9 -47
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +19 -16
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +12 -28
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +21 -20
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +18 -38
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +15 -8
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +32 -12
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +15 -11
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +28 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +8 -13
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +2924 -58
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +23 -10
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +8 -77
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -174
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +27 -118
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +115 -17
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +17 -82
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +528 -45
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +129 -17
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +137 -20
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +8 -103
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +6 -1
- package/dist/index28.js.map +1 -0
- package/dist/index280.js +21 -60
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +16 -112
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +65 -72
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +72 -117
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +12 -59
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +17 -47
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +69 -146
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +8 -143
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +8 -258
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +7 -244
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +40 -5
- package/dist/index29.js.map +1 -0
- package/dist/index290.js +19 -302
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +11 -8
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +8 -9
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +7 -10
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +548 -9
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +50 -10
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +20 -24
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +8 -13
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +11 -130
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +9 -167
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +181 -6
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +6 -8
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +11 -72
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +14 -112
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +12 -495
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +15 -65
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +7 -7
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +25 -30
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +6 -67
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +58 -155
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +71 -65
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +32 -563
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +128 -9
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +11 -213
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +156 -335
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +110 -271
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +26 -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 +31 -0
- package/dist/index315.js.map +1 -0
- package/dist/index316.js +8 -0
- package/dist/index316.js.map +1 -0
- package/dist/index317.js +19 -0
- package/dist/index317.js.map +1 -0
- package/dist/index318.js +32 -0
- package/dist/index318.js.map +1 -0
- package/dist/index319.js +16 -0
- package/dist/index319.js.map +1 -0
- package/dist/index32.js +234 -8
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +10 -0
- package/dist/index320.js.map +1 -0
- package/dist/index33.js +26 -10
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +54 -14
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +24 -8
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +133 -11
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +225 -12
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +94 -16
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +121 -9
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +28 -25
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +8 -9
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +847 -10
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +60 -13
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +10 -11
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +5 -9
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +14 -8
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +21 -14
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +10 -14
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +5 -11
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +26 -7
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +41 -34
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +236 -9
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +9 -9
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +36 -9
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +29 -12
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +10 -16
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +14 -9
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +5 -10
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +5 -10
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +5 -17
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +5 -11
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +469 -42
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +208 -12
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +8 -70
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +10 -10
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +8 -33
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +7 -13
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +50 -18
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +53 -203
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +10 -23
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +17 -19
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +136 -125
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +138 -224
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +13 -21
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +219 -11
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +16 -13
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +49 -16
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +52 -12
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +7 -13
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +8 -7
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +30 -44
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +52 -383
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +11 -41
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +875 -37
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +46 -21
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +8 -60
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +72 -11
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +5 -9
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +367 -9
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +265 -9
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +64 -9
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +50 -10
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +173 -10
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +113 -14
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +8 -33
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +27 -10
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +11 -10
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +7 -8
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +8 -10
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +7 -50
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +469 -108
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +188 -13
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +110 -9
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +265 -9
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +12 -8
- package/dist/index99.js.map +1 -1
- package/package.json +7 -7
package/dist/index6.js
CHANGED
|
@@ -1,43 +1,470 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import { j as h } from "./index30.js";
|
|
2
|
+
import { c as le } from "./index28.js";
|
|
3
|
+
import { CalendarDays as pe, ChevronLeft as ve, ChevronRight as xe } from "lucide-react";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { DismissableLayerBranch as me } from "./index31.js";
|
|
6
|
+
import { createPortal as ge } from "react-dom";
|
|
7
|
+
import { IMaskInput as De } from "react-imask";
|
|
8
|
+
import ke, { InputMask as Ne } from "imask";
|
|
9
|
+
import { useIsTouchDevice as Ee } from "./index21.js";
|
|
10
|
+
import { cn as ee } from "./index2.js";
|
|
11
|
+
import { DayPicker as Pe } from "./index32.js";
|
|
12
|
+
import { dateMatchModifiers as Me } from "./index33.js";
|
|
13
|
+
const de = ke;
|
|
14
|
+
typeof de.InputMask != "function" && (de.InputMask = Ne);
|
|
15
|
+
function ce(o) {
|
|
16
|
+
const e = le.c(18);
|
|
17
|
+
let l, i, w, b, x;
|
|
18
|
+
e[0] !== o ? ({
|
|
19
|
+
className: l,
|
|
20
|
+
classNames: i,
|
|
21
|
+
components: w,
|
|
22
|
+
showOutsideDays: x,
|
|
23
|
+
...b
|
|
24
|
+
} = o, e[0] = o, e[1] = l, e[2] = i, e[3] = w, e[4] = b, e[5] = x) : (l = e[1], i = e[2], w = e[3], b = e[4], x = e[5]);
|
|
25
|
+
const d = x === void 0 ? !0 : x;
|
|
26
|
+
let k;
|
|
27
|
+
e[6] !== l ? (k = ee("p-3", l), e[6] = l, e[7] = k) : k = e[7];
|
|
28
|
+
let j;
|
|
29
|
+
e[8] !== i ? (j = {
|
|
30
|
+
month: "space-y-4",
|
|
31
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-y-0 relative gap-2",
|
|
32
|
+
month_caption: "flex justify-center pt-1 relative items-center",
|
|
33
|
+
month_grid: "w-full border-collapse space-y-1",
|
|
34
|
+
caption_label: "text-sm font-medium",
|
|
35
|
+
nav: "flex items-center justify-between absolute inset-x-0 z-10",
|
|
36
|
+
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",
|
|
37
|
+
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",
|
|
38
|
+
weeks: "w-full border-collapse",
|
|
39
|
+
weekdays: "flex",
|
|
40
|
+
weekday: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
41
|
+
week: "flex w-full mt-2",
|
|
42
|
+
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",
|
|
43
|
+
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",
|
|
44
|
+
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",
|
|
45
|
+
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",
|
|
46
|
+
range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground !rounded-none",
|
|
47
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
48
|
+
day_today: "bg-accent text-accent-foreground",
|
|
49
|
+
day_outside: "day-outside text-muted-foreground aria-selected:text-muted-foreground",
|
|
50
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
51
|
+
day_hidden: "invisible",
|
|
52
|
+
selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
53
|
+
today: "bg-gray-50 text-accent-foreground !rounded-md",
|
|
54
|
+
outside: "day-outside text-muted-foreground opacity-50 !aria-selected:bg-accent/50 !aria-selected:text-muted-foreground !aria-selected:opacity-30",
|
|
55
|
+
disabled: "text-muted-foreground opacity-50",
|
|
56
|
+
hidden: "invisible",
|
|
57
|
+
...i
|
|
58
|
+
}, e[8] = i, e[9] = j) : j = e[9];
|
|
59
|
+
let N;
|
|
60
|
+
e[10] !== w ? (N = {
|
|
61
|
+
Chevron: Re,
|
|
62
|
+
...w
|
|
63
|
+
}, e[10] = w, e[11] = N) : N = e[11];
|
|
64
|
+
let I;
|
|
65
|
+
return e[12] !== b || e[13] !== d || e[14] !== k || e[15] !== j || e[16] !== N ? (I = /* @__PURE__ */ h.jsx(Pe, { weekStartsOn: 1, showOutsideDays: d, className: k, classNames: j, components: N, ...b }), e[12] = b, e[13] = d, e[14] = k, e[15] = j, e[16] = N, e[17] = I) : I = e[17], I;
|
|
66
|
+
}
|
|
67
|
+
function Re(o) {
|
|
68
|
+
return o.orientation === "left" ? /* @__PURE__ */ h.jsx(ve, { ...o, className: "h-4 w-4" }) : /* @__PURE__ */ h.jsx(xe, { ...o, className: "h-4 w-4" });
|
|
69
|
+
}
|
|
70
|
+
ce.displayName = "DayPicker";
|
|
71
|
+
function oe(o) {
|
|
72
|
+
return String(o).padStart(2, "0");
|
|
73
|
+
}
|
|
74
|
+
function S(o) {
|
|
75
|
+
const e = new Date(o);
|
|
76
|
+
return e.setHours(0, 0, 0, 0), e;
|
|
77
|
+
}
|
|
78
|
+
function U(o) {
|
|
79
|
+
return S(new Date(o.getFullYear(), o.getMonth(), 1));
|
|
80
|
+
}
|
|
81
|
+
function A(o) {
|
|
82
|
+
return `${oe(o.getDate())}/${oe(o.getMonth() + 1)}/${o.getFullYear()}`;
|
|
83
|
+
}
|
|
84
|
+
function se({
|
|
85
|
+
day: o,
|
|
86
|
+
month: e,
|
|
87
|
+
year: l
|
|
88
|
+
}) {
|
|
89
|
+
if (!Number.isFinite(o) || !Number.isFinite(e) || !Number.isFinite(l)) return null;
|
|
90
|
+
const i = new Date(l, e - 1, o);
|
|
91
|
+
return i.getFullYear() !== l || i.getMonth() !== e - 1 || i.getDate() !== o ? null : S(i);
|
|
92
|
+
}
|
|
93
|
+
function ue(o, e) {
|
|
94
|
+
const l = o.trim();
|
|
95
|
+
if (!l) return null;
|
|
96
|
+
const i = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(l);
|
|
97
|
+
if (i)
|
|
98
|
+
return se({
|
|
99
|
+
day: Number(i[1]),
|
|
100
|
+
month: Number(i[2]),
|
|
101
|
+
year: Number(i[3])
|
|
102
|
+
});
|
|
103
|
+
const w = /^(\d{2})\/(\d{2})\/(\d{2})$/.exec(l);
|
|
104
|
+
if (w) {
|
|
105
|
+
const x = Number(w[3]);
|
|
106
|
+
return Number.isFinite(x) ? se({
|
|
107
|
+
day: Number(w[1]),
|
|
108
|
+
month: Number(w[2]),
|
|
109
|
+
year: 2e3 + x
|
|
110
|
+
}) : null;
|
|
111
|
+
}
|
|
112
|
+
const b = /^(\d{2})\/(\d{2})$/.exec(l);
|
|
113
|
+
return b ? se({
|
|
114
|
+
day: Number(b[1]),
|
|
115
|
+
month: Number(b[2]),
|
|
116
|
+
year: e.getFullYear()
|
|
117
|
+
}) : null;
|
|
118
|
+
}
|
|
119
|
+
const ye = r.forwardRef(function({
|
|
120
|
+
value: e,
|
|
121
|
+
onChange: l,
|
|
122
|
+
onValueUpdate: i,
|
|
123
|
+
className: w,
|
|
124
|
+
inputClassName: b,
|
|
125
|
+
placeholder: x = "DD/MM/YYYY",
|
|
126
|
+
disabled: d,
|
|
127
|
+
readOnly: k,
|
|
128
|
+
open: j,
|
|
129
|
+
onOpenChange: N,
|
|
130
|
+
dayPickerComponent: I,
|
|
131
|
+
dayPickerProps: O,
|
|
132
|
+
onFocus: $,
|
|
133
|
+
onBlur: L,
|
|
134
|
+
onKeyDown: Y,
|
|
135
|
+
onPointerDown: z,
|
|
136
|
+
onMouseDown: H,
|
|
137
|
+
...W
|
|
138
|
+
}, p) {
|
|
139
|
+
const y = r.useRef(null), E = r.useRef(null), B = r.useRef(null), X = r.useRef(!1), te = r.useRef(!1), Z = r.useRef(!1), F = r.useRef(!1), K = r.useRef(!1), g = r.useRef(null), [P, M] = r.useState(!1), a = j ?? P, c = N ?? M;
|
|
140
|
+
te.current = a;
|
|
141
|
+
const [v, C] = r.useState(() => e ? A(e) : ""), u = r.useMemo(() => ue(v, /* @__PURE__ */ new Date()), [v]), [q, T] = r.useState(() => U(e ?? /* @__PURE__ */ new Date())), [re, ne] = r.useState(() => ({
|
|
142
|
+
left: 0,
|
|
143
|
+
top: 0
|
|
144
|
+
})), ie = r.useCallback((t) => {
|
|
145
|
+
i && i(t);
|
|
146
|
+
}, [i]), _ = r.useCallback((t) => {
|
|
147
|
+
i && i(t), l(t);
|
|
148
|
+
}, [l, i]);
|
|
149
|
+
r.useEffect(() => {
|
|
150
|
+
X.current || C(e ? A(e) : "");
|
|
151
|
+
}, [e]), r.useEffect(() => {
|
|
152
|
+
a && T(U(e ?? /* @__PURE__ */ new Date()));
|
|
153
|
+
}, [a, e]), r.useEffect(() => {
|
|
154
|
+
a && u && T(U(u));
|
|
155
|
+
}, [u, a]), r.useEffect(() => {
|
|
156
|
+
if (!a) return;
|
|
157
|
+
const t = y.current?.ownerDocument ?? document, s = t.defaultView ?? window, n = (m) => {
|
|
158
|
+
const D = m.target;
|
|
159
|
+
D instanceof Node && (y.current?.contains(D) || E.current?.contains(D) || c(!1));
|
|
160
|
+
}, f = (m) => {
|
|
161
|
+
if (m.key !== "Escape" || !te.current) return;
|
|
162
|
+
const D = m.target;
|
|
163
|
+
D instanceof Node && (!y.current?.contains(D) && !E.current?.contains(D) || (m.preventDefault(), m.stopPropagation(), c(!1)));
|
|
164
|
+
};
|
|
165
|
+
return t.addEventListener("pointerdown", n, !0), s.addEventListener("keydown", f, !0), () => {
|
|
166
|
+
t.removeEventListener("pointerdown", n, !0), s.removeEventListener("keydown", f, !0);
|
|
167
|
+
};
|
|
168
|
+
}, [a]), r.useEffect(() => {
|
|
169
|
+
if (!a || typeof window > "u" || !("IntersectionObserver" in window))
|
|
170
|
+
return;
|
|
171
|
+
const t = y.current;
|
|
172
|
+
if (!t)
|
|
173
|
+
return;
|
|
174
|
+
let s = !0;
|
|
175
|
+
const n = new IntersectionObserver((f) => {
|
|
176
|
+
if (!s)
|
|
177
|
+
return;
|
|
178
|
+
const m = f[0];
|
|
179
|
+
m && !m.isIntersecting && c(!1);
|
|
180
|
+
});
|
|
181
|
+
return n.observe(t), () => {
|
|
182
|
+
s = !1, n.disconnect();
|
|
183
|
+
};
|
|
184
|
+
}, [a]);
|
|
185
|
+
const we = r.useCallback((t) => {
|
|
186
|
+
B.current = t, typeof p == "function" ? p(t) : p && (p.current = t);
|
|
187
|
+
}, [p]), ae = () => c(!1), be = I ?? ce, G = r.useCallback(() => {
|
|
188
|
+
if (typeof window > "u") return;
|
|
189
|
+
const t = y.current, s = E.current;
|
|
190
|
+
if (!t || !s) return;
|
|
191
|
+
const n = t.getBoundingClientRect(), f = s.offsetWidth, m = s.offsetHeight, D = window.innerWidth ?? 0, J = window.innerHeight ?? 0, R = 8;
|
|
192
|
+
let V = n.left;
|
|
193
|
+
V + f > D - R && (V = Math.max(R, D - f - R)), V < R && (V = R);
|
|
194
|
+
let Q = n.bottom + R;
|
|
195
|
+
const he = Q + m > J - R, fe = n.top - m - R;
|
|
196
|
+
he && fe >= R && (Q = fe), Q < R && (Q = R), Q + m > J - R && (Q = Math.max(R, J - m - R)), ne({
|
|
197
|
+
left: V,
|
|
198
|
+
top: Q
|
|
199
|
+
});
|
|
200
|
+
}, []);
|
|
201
|
+
return r.useLayoutEffect(() => {
|
|
202
|
+
if (!a || d || typeof window > "u") return;
|
|
203
|
+
G();
|
|
204
|
+
const t = window.requestAnimationFrame(G);
|
|
205
|
+
return window.addEventListener("scroll", G, !0), window.addEventListener("resize", G), () => {
|
|
206
|
+
window.cancelAnimationFrame(t), window.removeEventListener("scroll", G, !0), window.removeEventListener("resize", G);
|
|
207
|
+
};
|
|
208
|
+
}, [d, a, G]), /* @__PURE__ */ h.jsxs("div", { ref: y, "data-slot": "day-picker-input", className: ee("relative group", w), children: [
|
|
209
|
+
/* @__PURE__ */ h.jsx(De, { ...W, "data-slot": "day-picker-input-input", disabled: d, readOnly: k, autoComplete: "off", inputRef: we, mask: [{
|
|
210
|
+
mask: "00/00",
|
|
211
|
+
lazy: !0
|
|
212
|
+
}, {
|
|
213
|
+
mask: "00/00/00",
|
|
214
|
+
lazy: !0
|
|
215
|
+
}, {
|
|
216
|
+
mask: "00/00/0000",
|
|
217
|
+
lazy: !0
|
|
218
|
+
}], dispatch: (t, s) => {
|
|
219
|
+
const n = (s.value + t).replace(/\D/g, "");
|
|
220
|
+
return n.length <= 4 ? s.compiledMasks[0] : n.length <= 6 ? s.compiledMasks[1] : s.compiledMasks[2];
|
|
221
|
+
}, placeholder: x, value: v, className: ee("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", b), onAccept: (t) => {
|
|
222
|
+
const s = typeof t == "string" ? t : String(t ?? ""), n = v.replace(/\D/g, "").length;
|
|
223
|
+
C(s), s.replace(/\D/g, "").length === 0 && (a && T(U(/* @__PURE__ */ new Date())), n !== 0 && ie(null));
|
|
224
|
+
}, onComplete: (t) => {
|
|
225
|
+
const s = typeof t == "string" ? t : String(t ?? "");
|
|
226
|
+
if (g.current === s) {
|
|
227
|
+
g.current = null;
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
const n = ue(s, /* @__PURE__ */ new Date());
|
|
231
|
+
n && (e && n.getTime() === S(e).getTime() || ie(n));
|
|
232
|
+
}, onPointerDown: (t) => {
|
|
233
|
+
Z.current = !0, F.current = typeof document < "u" && document.activeElement === t.currentTarget, z?.(t);
|
|
234
|
+
}, onMouseDown: (t) => {
|
|
235
|
+
Z.current = !0, F.current = typeof document < "u" && document.activeElement === t.currentTarget, H?.(t);
|
|
236
|
+
}, onFocus: (t) => {
|
|
237
|
+
const s = !Z.current || !F.current;
|
|
238
|
+
if (Z.current = !1, F.current = !1, X.current = !0, $?.(t), s) {
|
|
239
|
+
const n = t.currentTarget;
|
|
240
|
+
requestAnimationFrame(() => n.select());
|
|
241
|
+
}
|
|
242
|
+
d || c(!0);
|
|
243
|
+
}, onKeyDown: (t) => {
|
|
244
|
+
const s = t.defaultPrevented;
|
|
245
|
+
if (Y?.(t), !(!s && t.defaultPrevented)) {
|
|
246
|
+
if (t.key === "Enter") {
|
|
247
|
+
if (!u)
|
|
248
|
+
return;
|
|
249
|
+
if (t.preventDefault(), a) {
|
|
250
|
+
const n = `${u.getFullYear()}-${oe(u.getMonth() + 1)}-${oe(u.getDate())}`, f = E.current?.querySelector(`[data-day='${n}']:not([data-outside]) button`);
|
|
251
|
+
if (f instanceof HTMLButtonElement) {
|
|
252
|
+
if (f.disabled)
|
|
253
|
+
return;
|
|
254
|
+
f.focus();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
C(A(u)), _(u), c(!1);
|
|
258
|
+
return;
|
|
259
|
+
}
|
|
260
|
+
if (t.key === "ArrowUp" || t.key === "ArrowDown") {
|
|
261
|
+
const n = u ?? e;
|
|
262
|
+
if (!n)
|
|
263
|
+
return;
|
|
264
|
+
const f = S(new Date(n));
|
|
265
|
+
if (f.setDate(f.getDate() + (t.key === "ArrowUp" ? 1 : -1)), O?.disabled && Me(f, O.disabled))
|
|
266
|
+
return;
|
|
267
|
+
t.preventDefault();
|
|
268
|
+
const m = A(f);
|
|
269
|
+
g.current = m, C(m), ie(f);
|
|
270
|
+
}
|
|
271
|
+
a || (t.key.length === 1 || t.key === "Backspace" || t.key === "Delete" || t.key === "ArrowUp" || t.key === "ArrowDown") && !t.ctrlKey && !t.metaKey && !t.altKey && c(!0), t.key === "Tab" && !t.defaultPrevented && c(!1);
|
|
272
|
+
}
|
|
273
|
+
}, onBlur: (t) => {
|
|
274
|
+
X.current = !1, L?.(t);
|
|
275
|
+
const s = K.current;
|
|
276
|
+
if (K.current = !1, s)
|
|
277
|
+
return;
|
|
278
|
+
const n = t.relatedTarget;
|
|
279
|
+
if (n instanceof Node) {
|
|
280
|
+
const D = y.current;
|
|
281
|
+
if (!D || D.contains(n) || E.current?.contains(n))
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
a && typeof window < "u" && requestAnimationFrame(() => {
|
|
285
|
+
const D = y.current;
|
|
286
|
+
if (!D)
|
|
287
|
+
return;
|
|
288
|
+
const J = document.activeElement;
|
|
289
|
+
J && (D.contains(J) || E.current?.contains(J)) || c(!1);
|
|
290
|
+
});
|
|
291
|
+
const f = v.trim();
|
|
292
|
+
if (f === "") {
|
|
293
|
+
e && (C(""), _(null));
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
const m = ue(f, /* @__PURE__ */ new Date());
|
|
297
|
+
if (m) {
|
|
298
|
+
C(A(m)), (!e || m.getTime() !== S(e).getTime()) && _(m);
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
C(e ? A(e) : "");
|
|
302
|
+
} }),
|
|
303
|
+
/* @__PURE__ */ h.jsx("button", { type: "button", tabIndex: -1, disabled: d, "aria-label": "Open calendar", "data-slot": "day-picker-input-trigger", className: "absolute left-[13px] top-1/2 -translate-y-1/2 text-muted-foreground transition-colors group-hover:text-accent-foreground", onPointerDown: (t) => {
|
|
304
|
+
t.preventDefault(), !d && B.current?.focus({
|
|
305
|
+
preventScroll: !0
|
|
306
|
+
});
|
|
307
|
+
}, onMouseDown: (t) => {
|
|
308
|
+
t.preventDefault(), !d && B.current?.focus({
|
|
309
|
+
preventScroll: !0
|
|
310
|
+
});
|
|
311
|
+
}, onClick: () => {
|
|
312
|
+
d || (B.current?.focus({
|
|
313
|
+
preventScroll: !0
|
|
314
|
+
}), c(!0));
|
|
315
|
+
}, children: /* @__PURE__ */ h.jsx(pe, { "aria-hidden": !0, className: "size-4" }) }),
|
|
316
|
+
a && !d && (() => {
|
|
317
|
+
const t = v.trim() === "" ? void 0 : u ?? e ?? void 0, s = /* @__PURE__ */ h.jsx(me, { children: /* @__PURE__ */ h.jsx("div", { ref: E, "data-slot": "day-picker-input-popover", className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md", style: {
|
|
318
|
+
left: re.left,
|
|
319
|
+
top: re.top
|
|
320
|
+
}, onPointerDownCapture: () => {
|
|
321
|
+
K.current = !0;
|
|
322
|
+
}, onMouseDownCapture: () => {
|
|
323
|
+
K.current = !0;
|
|
324
|
+
}, children: /* @__PURE__ */ h.jsx(be, { mode: "single", month: q, onMonthChange: T, selected: t, onSelect: (n) => {
|
|
325
|
+
if (!n) {
|
|
326
|
+
e && _(null), C(""), ae();
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
const f = S(n);
|
|
330
|
+
(!e || f.getTime() !== S(e).getTime()) && _(f), C(A(f)), ae();
|
|
331
|
+
}, ...O }) }) });
|
|
332
|
+
return typeof document > "u" ? s : ge(s, document.body);
|
|
333
|
+
})()
|
|
334
|
+
] });
|
|
335
|
+
});
|
|
336
|
+
ye.displayName = "DayPickerInput";
|
|
337
|
+
function je({
|
|
338
|
+
id: o,
|
|
339
|
+
value: e,
|
|
340
|
+
onChange: l,
|
|
341
|
+
onValueUpdate: i,
|
|
342
|
+
className: w,
|
|
343
|
+
inputClassName: b,
|
|
344
|
+
placeholder: x = "DD/MM/YYYY",
|
|
345
|
+
disabled: d,
|
|
346
|
+
open: k,
|
|
347
|
+
onOpenChange: j,
|
|
348
|
+
dayPickerComponent: N,
|
|
349
|
+
dayPickerProps: I,
|
|
350
|
+
triggerTestId: O,
|
|
351
|
+
isHydrated: $
|
|
352
|
+
}) {
|
|
353
|
+
const L = r.useRef(null), Y = r.useRef(null), z = r.useRef(!1), [H, W] = r.useState(!1), p = k ?? H, y = j ?? W;
|
|
354
|
+
z.current = p;
|
|
355
|
+
const [E, B] = r.useState(() => U(e ?? /* @__PURE__ */ new Date())), [X, te] = r.useState(() => ({
|
|
356
|
+
left: 0,
|
|
357
|
+
top: 0
|
|
358
|
+
}));
|
|
359
|
+
r.useEffect(() => {
|
|
360
|
+
p && B(U(e ?? /* @__PURE__ */ new Date()));
|
|
361
|
+
}, [p, e]), r.useEffect(() => {
|
|
362
|
+
if (!p) return;
|
|
363
|
+
const g = L.current?.ownerDocument ?? document, P = g.defaultView ?? window, M = (c) => {
|
|
364
|
+
const v = c.target;
|
|
365
|
+
v instanceof Node && (L.current?.contains(v) || Y.current?.contains(v) || y(!1));
|
|
366
|
+
}, a = (c) => {
|
|
367
|
+
if (c.key !== "Escape" || !z.current) return;
|
|
368
|
+
const v = c.target;
|
|
369
|
+
v instanceof Node && (!L.current?.contains(v) && !Y.current?.contains(v) || (c.preventDefault(), c.stopPropagation(), y(!1)));
|
|
370
|
+
};
|
|
371
|
+
return g.addEventListener("pointerdown", M, !0), P.addEventListener("keydown", a, !0), () => {
|
|
372
|
+
g.removeEventListener("pointerdown", M, !0), P.removeEventListener("keydown", a, !0);
|
|
373
|
+
};
|
|
374
|
+
}, [p]), r.useEffect(() => {
|
|
375
|
+
if (!p || typeof window > "u" || !("IntersectionObserver" in window))
|
|
376
|
+
return;
|
|
377
|
+
const g = L.current;
|
|
378
|
+
if (!g)
|
|
379
|
+
return;
|
|
380
|
+
let P = !0;
|
|
381
|
+
const M = new IntersectionObserver((a) => {
|
|
382
|
+
if (!P)
|
|
383
|
+
return;
|
|
384
|
+
const c = a[0];
|
|
385
|
+
c && !c.isIntersecting && y(!1);
|
|
386
|
+
});
|
|
387
|
+
return M.observe(g), () => {
|
|
388
|
+
P = !1, M.disconnect();
|
|
389
|
+
};
|
|
390
|
+
}, [p]);
|
|
391
|
+
const Z = N ?? ce, F = r.useCallback(() => {
|
|
392
|
+
if (typeof window > "u") return;
|
|
393
|
+
const g = L.current, P = Y.current;
|
|
394
|
+
if (!g || !P) return;
|
|
395
|
+
const M = g.getBoundingClientRect(), a = P.offsetWidth, c = P.offsetHeight, v = window.innerWidth ?? 0, C = window.innerHeight ?? 0, u = 8;
|
|
396
|
+
let q = M.left;
|
|
397
|
+
q + a > v - u && (q = Math.max(u, v - a - u)), q < u && (q = u);
|
|
398
|
+
let T = M.bottom + u;
|
|
399
|
+
const re = T + c > C - u, ne = M.top - c - u;
|
|
400
|
+
re && ne >= u && (T = ne), T < u && (T = u), T + c > C - u && (T = Math.max(u, C - c - u)), te({
|
|
401
|
+
left: q,
|
|
402
|
+
top: T
|
|
403
|
+
});
|
|
404
|
+
}, []);
|
|
405
|
+
r.useLayoutEffect(() => {
|
|
406
|
+
if (!p || d || typeof window > "u") return;
|
|
407
|
+
F();
|
|
408
|
+
const g = window.requestAnimationFrame(F);
|
|
409
|
+
return window.addEventListener("scroll", F, !0), window.addEventListener("resize", F), () => {
|
|
410
|
+
window.cancelAnimationFrame(g), window.removeEventListener("scroll", F, !0), window.removeEventListener("resize", F);
|
|
411
|
+
};
|
|
412
|
+
}, [d, p, F]);
|
|
413
|
+
const K = r.useCallback((g) => {
|
|
414
|
+
i && i(g), l(g);
|
|
415
|
+
}, [l, i]);
|
|
416
|
+
return /* @__PURE__ */ h.jsxs("div", { ref: L, "data-slot": "day-picker-input", className: ee("relative group", w), children: [
|
|
417
|
+
/* @__PURE__ */ h.jsxs("button", { id: o, type: "button", disabled: d, "data-testid": O, "data-hydrated": $ ? "true" : void 0, "data-slot": "day-picker-input-input", className: ee("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", !e && "text-muted-foreground", p && "ring-2 ring-primary ring-offset-2", b), onClick: () => {
|
|
418
|
+
d || y(!p);
|
|
419
|
+
}, children: [
|
|
420
|
+
/* @__PURE__ */ h.jsx(pe, { "aria-hidden": !0, className: "mr-2 size-4 text-muted-foreground transition-colors group-hover:text-accent-foreground" }),
|
|
421
|
+
e ? A(e) : x
|
|
422
|
+
] }),
|
|
423
|
+
p && !d && (() => {
|
|
424
|
+
const g = /* @__PURE__ */ h.jsx(me, { children: /* @__PURE__ */ h.jsx("div", { ref: Y, "data-slot": "day-picker-input-popover", className: "pointer-events-auto fixed z-[60] w-max rounded-md border bg-popover text-popover-foreground shadow-md", style: {
|
|
425
|
+
left: X.left,
|
|
426
|
+
top: X.top
|
|
427
|
+
}, children: /* @__PURE__ */ h.jsx(Z, { mode: "single", month: E, onMonthChange: B, selected: e ?? void 0, onSelect: (P) => {
|
|
428
|
+
if (!P) {
|
|
429
|
+
K(null), y(!1);
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
const M = S(P);
|
|
433
|
+
(!e || M.getTime() !== S(e).getTime()) && K(M), y(!1);
|
|
434
|
+
}, ...I }) }) });
|
|
435
|
+
return typeof document > "u" ? g : ge(g, document.body);
|
|
436
|
+
})()
|
|
437
|
+
] });
|
|
438
|
+
}
|
|
439
|
+
function He(o) {
|
|
440
|
+
const e = le.c(18);
|
|
441
|
+
if (Ee()) {
|
|
442
|
+
let E;
|
|
443
|
+
return e[0] !== o ? (E = /* @__PURE__ */ h.jsx(je, { ...o }), e[0] = o, e[1] = E) : E = e[1], E;
|
|
444
|
+
}
|
|
445
|
+
const {
|
|
446
|
+
id: i,
|
|
447
|
+
value: w,
|
|
448
|
+
onChange: b,
|
|
449
|
+
onValueUpdate: x,
|
|
450
|
+
className: d,
|
|
451
|
+
inputClassName: k,
|
|
452
|
+
placeholder: j,
|
|
453
|
+
disabled: N,
|
|
454
|
+
readOnly: I,
|
|
455
|
+
dayPickerComponent: O,
|
|
456
|
+
dayPickerProps: $,
|
|
457
|
+
triggerTestId: L,
|
|
458
|
+
isHydrated: Y,
|
|
459
|
+
open: z,
|
|
460
|
+
onOpenChange: H
|
|
461
|
+
} = o, W = j === void 0 ? "DD/MM/YYYY" : j, p = Y ? "true" : void 0;
|
|
462
|
+
let y;
|
|
463
|
+
return e[2] !== d || e[3] !== O || e[4] !== $ || e[5] !== N || e[6] !== i || e[7] !== k || e[8] !== b || e[9] !== H || e[10] !== x || e[11] !== z || e[12] !== W || e[13] !== I || e[14] !== p || e[15] !== L || e[16] !== w ? (y = /* @__PURE__ */ h.jsx(ye, { id: i, value: w, onChange: b, onValueUpdate: x, className: d, inputClassName: k, placeholder: W, disabled: N, readOnly: I, open: z, onOpenChange: H, dayPickerComponent: O, dayPickerProps: $, "data-testid": L, "data-hydrated": p }), e[2] = d, e[3] = O, e[4] = $, e[5] = N, e[6] = i, e[7] = k, e[8] = b, e[9] = H, e[10] = x, e[11] = z, e[12] = W, e[13] = I, e[14] = p, e[15] = L, e[16] = w, e[17] = y) : y = e[17], y;
|
|
464
|
+
}
|
|
465
|
+
export {
|
|
466
|
+
ce as DayPicker,
|
|
467
|
+
He as DayPickerField,
|
|
468
|
+
ye as DayPickerInput
|
|
39
469
|
};
|
|
40
|
-
//#
|
|
41
|
-
export { u as useMapsLibrary };
|
|
42
|
-
|
|
43
|
-
//# sourceMappingURL=index6.js.map
|
|
470
|
+
//# sourceMappingURL=index6.js.map
|