@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/index207.js
CHANGED
|
@@ -1,361 +1,71 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
case "top":
|
|
7
|
-
v = {
|
|
8
|
-
x: h,
|
|
9
|
-
y: o.y - s.height
|
|
10
|
-
};
|
|
11
|
-
break;
|
|
12
|
-
case "bottom":
|
|
13
|
-
v = {
|
|
14
|
-
x: h,
|
|
15
|
-
y: o.y + o.height
|
|
16
|
-
};
|
|
17
|
-
break;
|
|
18
|
-
case "right":
|
|
19
|
-
v = {
|
|
20
|
-
x: o.x + o.width,
|
|
21
|
-
y: g
|
|
22
|
-
};
|
|
23
|
-
break;
|
|
24
|
-
case "left":
|
|
25
|
-
v = {
|
|
26
|
-
x: o.x - s.width,
|
|
27
|
-
y: g
|
|
28
|
-
};
|
|
29
|
-
break;
|
|
30
|
-
default: v = {
|
|
31
|
-
x: o.x,
|
|
32
|
-
y: o.y
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
switch (n(t)) {
|
|
36
|
-
case "start":
|
|
37
|
-
v[l] -= _ * (i && m ? -1 : 1);
|
|
38
|
-
break;
|
|
39
|
-
case "end":
|
|
40
|
-
v[l] += _ * (i && m ? -1 : 1);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
return v;
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { useComposedRefs as O } from "./index53.js";
|
|
3
|
+
import { useLayoutEffect as A } from "./index75.js";
|
|
4
|
+
function E(n, e) {
|
|
5
|
+
return i.useReducer((t, r) => e[t][r] ?? t, n);
|
|
44
6
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
element: await (a.isElement == null ? void 0 : a.isElement(_)) ?? !0 ? _ : _.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
49
|
-
boundary: l,
|
|
50
|
-
rootBoundary: d,
|
|
51
|
-
strategy: c
|
|
52
|
-
})), y = f === "floating" ? {
|
|
53
|
-
x: r,
|
|
54
|
-
y: i,
|
|
55
|
-
width: o.floating.width,
|
|
56
|
-
height: o.floating.height
|
|
57
|
-
} : o.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), x = await (a.isElement == null ? void 0 : a.isElement(b)) && await (a.getScale == null ? void 0 : a.getScale(b)) || {
|
|
58
|
-
x: 1,
|
|
59
|
-
y: 1
|
|
60
|
-
}, S = h(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
61
|
-
elements: s,
|
|
62
|
-
rect: y,
|
|
63
|
-
offsetParent: b,
|
|
64
|
-
strategy: c
|
|
65
|
-
}) : y);
|
|
66
|
-
return {
|
|
67
|
-
top: (v.top - S.top + g.top) / x.y,
|
|
68
|
-
bottom: (S.bottom - v.bottom + g.bottom) / x.y,
|
|
69
|
-
left: (v.left - S.left + g.left) / x.x,
|
|
70
|
-
right: (S.right - v.right + g.right) / x.x
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
var y = 50, b = async (e, t, n) => {
|
|
74
|
-
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
75
|
-
...o,
|
|
76
|
-
detectOverflow: v
|
|
77
|
-
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
78
|
-
reference: e,
|
|
79
|
-
floating: t,
|
|
80
|
-
strategy: i
|
|
81
|
-
}), { x: u, y: d } = _(l, r, c), f = r, p = 0, m = {};
|
|
82
|
-
for (let n = 0; n < a.length; n++) {
|
|
83
|
-
let h = a[n];
|
|
84
|
-
if (!h) continue;
|
|
85
|
-
let { name: g, fn: v } = h, { x: b, y: x, data: S, reset: C } = await v({
|
|
86
|
-
x: u,
|
|
87
|
-
y: d,
|
|
88
|
-
initialPlacement: r,
|
|
89
|
-
placement: f,
|
|
90
|
-
strategy: i,
|
|
91
|
-
middlewareData: m,
|
|
92
|
-
rects: l,
|
|
93
|
-
platform: s,
|
|
94
|
-
elements: {
|
|
95
|
-
reference: e,
|
|
96
|
-
floating: t
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
u = b ?? u, d = x ?? d, m[g] = {
|
|
100
|
-
...m[g],
|
|
101
|
-
...S
|
|
102
|
-
}, C && p < y && (p++, typeof C == "object" && (C.placement && (f = C.placement), C.rects && (l = C.rects === !0 ? await o.getElementRects({
|
|
103
|
-
reference: e,
|
|
104
|
-
floating: t,
|
|
105
|
-
strategy: i
|
|
106
|
-
}) : C.rects), {x: u, y: d} = _(l, f, c)), n = -1);
|
|
107
|
-
}
|
|
108
|
-
return {
|
|
109
|
-
x: u,
|
|
110
|
-
y: d,
|
|
111
|
-
placement: f,
|
|
112
|
-
strategy: i,
|
|
113
|
-
middlewareData: m
|
|
114
|
-
};
|
|
115
|
-
}, x = (i) => ({
|
|
116
|
-
name: "arrow",
|
|
117
|
-
options: i,
|
|
118
|
-
async fn(o) {
|
|
119
|
-
let { x: s, y: c, placement: l, rects: d, platform: f, elements: p, middlewareData: h } = o, { element: g, padding: _ = 0 } = t(i, o) || {};
|
|
120
|
-
if (g == null) return {};
|
|
121
|
-
let v = u(_), y = {
|
|
122
|
-
x: s,
|
|
123
|
-
y: c
|
|
124
|
-
}, b = r(l), x = a(b), S = await f.getDimensions(g), C = b === "y", w = C ? "top" : "left", T = C ? "bottom" : "right", E = C ? "clientHeight" : "clientWidth", D = d.reference[x] + d.reference[b] - y[b] - d.floating[x], O = y[b] - d.reference[b], k = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(g)), A = k ? k[E] : 0;
|
|
125
|
-
(!A || !await (f.isElement == null ? void 0 : f.isElement(k))) && (A = p.floating[E] || d.floating[x]);
|
|
126
|
-
let j = D / 2 - O / 2, M = A / 2 - S[x] / 2 - 1, N = m(v[w], M), P = m(v[T], M), F = N, I = A - S[x] - P, L = A / 2 - S[x] / 2 + j, R = e(F, L, I), z = !h.arrow && n(l) != null && L !== R && d.reference[x] / 2 - (L < F ? N : P) - S[x] / 2 < 0, B = z ? L < F ? L - F : L - I : 0;
|
|
127
|
-
return {
|
|
128
|
-
[b]: y[b] + B,
|
|
129
|
-
data: {
|
|
130
|
-
[b]: R,
|
|
131
|
-
centerOffset: L - R - B,
|
|
132
|
-
...z && { alignmentOffset: B }
|
|
133
|
-
},
|
|
134
|
-
reset: z
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
}), S = function(e) {
|
|
138
|
-
return e === void 0 && (e = {}), {
|
|
139
|
-
name: "flip",
|
|
140
|
-
options: e,
|
|
141
|
-
async fn(n) {
|
|
142
|
-
var r;
|
|
143
|
-
let { placement: a, middlewareData: s, rects: u, initialPlacement: p, platform: m, elements: h } = n, { mainAxis: g = !0, crossAxis: _ = !0, fallbackPlacements: v, fallbackStrategy: y = "bestFit", fallbackAxisSideDirection: b = "none", flipAlignment: x = !0, ...S } = t(e, n);
|
|
144
|
-
if ((r = s.arrow) != null && r.alignmentOffset) return {};
|
|
145
|
-
let C = d(a), w = f(p), T = d(p) === p, E = await (m.isRTL == null ? void 0 : m.isRTL(h.floating)), D = v || (T || !x ? [l(p)] : o(p)), O = b !== "none";
|
|
146
|
-
!v && O && D.push(...c(p, x, b, E));
|
|
147
|
-
let k = [p, ...D], A = await m.detectOverflow(n, S), j = [], M = s.flip?.overflows || [];
|
|
148
|
-
if (g && j.push(A[C]), _) {
|
|
149
|
-
let e = i(a, u, E);
|
|
150
|
-
j.push(A[e[0]], A[e[1]]);
|
|
151
|
-
}
|
|
152
|
-
if (M = [...M, {
|
|
153
|
-
placement: a,
|
|
154
|
-
overflows: j
|
|
155
|
-
}], !j.every((e) => e <= 0)) {
|
|
156
|
-
let e = (s.flip?.index || 0) + 1, t = k[e];
|
|
157
|
-
if (t && (!(_ === "alignment" && w !== f(t)) || M.every((e) => f(e.placement) === w ? e.overflows[0] > 0 : !0))) return {
|
|
158
|
-
data: {
|
|
159
|
-
index: e,
|
|
160
|
-
overflows: M
|
|
161
|
-
},
|
|
162
|
-
reset: { placement: t }
|
|
163
|
-
};
|
|
164
|
-
let n = M.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
165
|
-
if (!n) switch (y) {
|
|
166
|
-
case "bestFit": {
|
|
167
|
-
let e = M.filter((e) => {
|
|
168
|
-
if (O) {
|
|
169
|
-
let t = f(e.placement);
|
|
170
|
-
return t === w || t === "y";
|
|
171
|
-
}
|
|
172
|
-
return !0;
|
|
173
|
-
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
|
|
174
|
-
e && (n = e);
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
case "initialPlacement":
|
|
178
|
-
n = p;
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
if (a !== n) return { reset: { placement: n } };
|
|
182
|
-
}
|
|
183
|
-
return {};
|
|
184
|
-
}
|
|
185
|
-
};
|
|
7
|
+
var T = (n) => {
|
|
8
|
+
const { present: e, children: t } = n, r = R(e), a = typeof t == "function" ? t({ present: r.isPresent }) : i.Children.only(t), c = O(r.ref, v(a));
|
|
9
|
+
return typeof t == "function" || r.isPresent ? i.cloneElement(a, { ref: c }) : null;
|
|
186
10
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
11
|
+
T.displayName = "Presence";
|
|
12
|
+
function R(n) {
|
|
13
|
+
const [e, t] = i.useState(), r = i.useRef(null), a = i.useRef(n), c = i.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
|
|
14
|
+
mounted: {
|
|
15
|
+
UNMOUNT: "unmounted",
|
|
16
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
17
|
+
},
|
|
18
|
+
unmountSuspended: {
|
|
19
|
+
MOUNT: "mounted",
|
|
20
|
+
ANIMATION_END: "unmounted"
|
|
21
|
+
},
|
|
22
|
+
unmounted: {
|
|
23
|
+
MOUNT: "mounted"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
return i.useEffect(() => {
|
|
27
|
+
const o = l(r.current);
|
|
28
|
+
c.current = N === "mounted" ? o : "none";
|
|
29
|
+
}, [N]), A(() => {
|
|
30
|
+
const o = r.current, m = a.current;
|
|
31
|
+
if (m !== n) {
|
|
32
|
+
const f = c.current, u = l(o);
|
|
33
|
+
n ? s("MOUNT") : u === "none" || o?.display === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), a.current = n;
|
|
34
|
+
}
|
|
35
|
+
}, [n, s]), A(() => {
|
|
36
|
+
if (e) {
|
|
37
|
+
let o;
|
|
38
|
+
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
|
39
|
+
const g = l(r.current).includes(CSS.escape(u.animationName));
|
|
40
|
+
if (u.target === e && g && (s("ANIMATION_END"), !a.current)) {
|
|
41
|
+
const y = e.style.animationFillMode;
|
|
42
|
+
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
|
43
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = y);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}, f = (u) => {
|
|
47
|
+
u.target === e && (c.current = l(r.current));
|
|
48
|
+
};
|
|
49
|
+
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
|
50
|
+
m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
51
|
+
};
|
|
52
|
+
} else
|
|
53
|
+
s("ANIMATION_END");
|
|
54
|
+
}, [e, s]), {
|
|
55
|
+
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
|
56
|
+
ref: i.useCallback((o) => {
|
|
57
|
+
r.current = o ? getComputedStyle(o) : null, t(o);
|
|
58
|
+
}, [])
|
|
59
|
+
};
|
|
194
60
|
}
|
|
195
|
-
function
|
|
196
|
-
|
|
61
|
+
function l(n) {
|
|
62
|
+
return n?.animationName || "none";
|
|
197
63
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
options: e,
|
|
202
|
-
async fn(n) {
|
|
203
|
-
let { rects: r, platform: i } = n, { strategy: a = "referenceHidden", ...o } = t(e, n);
|
|
204
|
-
switch (a) {
|
|
205
|
-
case "referenceHidden": {
|
|
206
|
-
let e = C(await i.detectOverflow(n, {
|
|
207
|
-
...o,
|
|
208
|
-
elementContext: "reference"
|
|
209
|
-
}), r.reference);
|
|
210
|
-
return { data: {
|
|
211
|
-
referenceHiddenOffsets: e,
|
|
212
|
-
referenceHidden: w(e)
|
|
213
|
-
} };
|
|
214
|
-
}
|
|
215
|
-
case "escaped": {
|
|
216
|
-
let e = C(await i.detectOverflow(n, {
|
|
217
|
-
...o,
|
|
218
|
-
altBoundary: !0
|
|
219
|
-
}), r.floating);
|
|
220
|
-
return { data: {
|
|
221
|
-
escapedOffsets: e,
|
|
222
|
-
escaped: w(e)
|
|
223
|
-
} };
|
|
224
|
-
}
|
|
225
|
-
default: return {};
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
}, E = /* @__PURE__ */ new Set(["left", "top"]);
|
|
230
|
-
async function D(e, r) {
|
|
231
|
-
let { placement: i, platform: a, elements: o } = e, s = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), c = d(i), l = n(i), u = f(i) === "y", p = E.has(c) ? -1 : 1, m = s && u ? -1 : 1, h = t(r, e), { mainAxis: g, crossAxis: _, alignmentAxis: v } = typeof h == "number" ? {
|
|
232
|
-
mainAxis: h,
|
|
233
|
-
crossAxis: 0,
|
|
234
|
-
alignmentAxis: null
|
|
235
|
-
} : {
|
|
236
|
-
mainAxis: h.mainAxis || 0,
|
|
237
|
-
crossAxis: h.crossAxis || 0,
|
|
238
|
-
alignmentAxis: h.alignmentAxis
|
|
239
|
-
};
|
|
240
|
-
return l && typeof v == "number" && (_ = l === "end" ? v * -1 : v), u ? {
|
|
241
|
-
x: _ * m,
|
|
242
|
-
y: g * p
|
|
243
|
-
} : {
|
|
244
|
-
x: g * p,
|
|
245
|
-
y: _ * m
|
|
246
|
-
};
|
|
64
|
+
function v(n) {
|
|
65
|
+
let e = Object.getOwnPropertyDescriptor(n.props, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning;
|
|
66
|
+
return t ? n.ref : (e = Object.getOwnPropertyDescriptor(n, "ref")?.get, t = e && "isReactWarning" in e && e.isReactWarning, t ? n.props.ref : n.props.ref || n.ref);
|
|
247
67
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
name: "offset",
|
|
251
|
-
options: e,
|
|
252
|
-
async fn(t) {
|
|
253
|
-
var n;
|
|
254
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await D(t, e);
|
|
255
|
-
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
256
|
-
x: r + s.x,
|
|
257
|
-
y: i + s.y,
|
|
258
|
-
data: {
|
|
259
|
-
...s,
|
|
260
|
-
placement: a
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
}, k = function(n) {
|
|
266
|
-
return n === void 0 && (n = {}), {
|
|
267
|
-
name: "shift",
|
|
268
|
-
options: n,
|
|
269
|
-
async fn(r) {
|
|
270
|
-
let { x: i, y: a, placement: o, platform: c } = r, { mainAxis: l = !0, crossAxis: u = !1, limiter: p = { fn: (e) => {
|
|
271
|
-
let { x: t, y: n } = e;
|
|
272
|
-
return {
|
|
273
|
-
x: t,
|
|
274
|
-
y: n
|
|
275
|
-
};
|
|
276
|
-
} }, ...m } = t(n, r), h = {
|
|
277
|
-
x: i,
|
|
278
|
-
y: a
|
|
279
|
-
}, g = await c.detectOverflow(r, m), _ = f(d(o)), v = s(_), y = h[v], b = h[_];
|
|
280
|
-
if (l) {
|
|
281
|
-
let t = v === "y" ? "top" : "left", n = v === "y" ? "bottom" : "right", r = y + g[t], i = y - g[n];
|
|
282
|
-
y = e(r, y, i);
|
|
283
|
-
}
|
|
284
|
-
if (u) {
|
|
285
|
-
let t = _ === "y" ? "top" : "left", n = _ === "y" ? "bottom" : "right", r = b + g[t], i = b - g[n];
|
|
286
|
-
b = e(r, b, i);
|
|
287
|
-
}
|
|
288
|
-
let x = p.fn({
|
|
289
|
-
...r,
|
|
290
|
-
[v]: y,
|
|
291
|
-
[_]: b
|
|
292
|
-
});
|
|
293
|
-
return {
|
|
294
|
-
...x,
|
|
295
|
-
data: {
|
|
296
|
-
x: x.x - i,
|
|
297
|
-
y: x.y - a,
|
|
298
|
-
enabled: {
|
|
299
|
-
[v]: l,
|
|
300
|
-
[_]: u
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
}, A = function(e) {
|
|
307
|
-
return e === void 0 && (e = {}), {
|
|
308
|
-
options: e,
|
|
309
|
-
fn(n) {
|
|
310
|
-
let { x: r, y: i, placement: a, rects: o, middlewareData: c } = n, { offset: l = 0, mainAxis: u = !0, crossAxis: p = !0 } = t(e, n), m = {
|
|
311
|
-
x: r,
|
|
312
|
-
y: i
|
|
313
|
-
}, h = f(a), g = s(h), _ = m[g], v = m[h], y = t(l, n), b = typeof y == "number" ? {
|
|
314
|
-
mainAxis: y,
|
|
315
|
-
crossAxis: 0
|
|
316
|
-
} : {
|
|
317
|
-
mainAxis: 0,
|
|
318
|
-
crossAxis: 0,
|
|
319
|
-
...y
|
|
320
|
-
};
|
|
321
|
-
if (u) {
|
|
322
|
-
let e = g === "y" ? "height" : "width", t = o.reference[g] - o.floating[e] + b.mainAxis, n = o.reference[g] + o.reference[e] - b.mainAxis;
|
|
323
|
-
_ < t ? _ = t : _ > n && (_ = n);
|
|
324
|
-
}
|
|
325
|
-
if (p) {
|
|
326
|
-
let e = g === "y" ? "width" : "height", t = E.has(d(a)), n = o.reference[h] - o.floating[e] + (t && c.offset?.[h] || 0) + (t ? 0 : b.crossAxis), r = o.reference[h] + o.reference[e] + (t ? 0 : c.offset?.[h] || 0) - (t ? b.crossAxis : 0);
|
|
327
|
-
v < n ? v = n : v > r && (v = r);
|
|
328
|
-
}
|
|
329
|
-
return {
|
|
330
|
-
[g]: _,
|
|
331
|
-
[h]: v
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
}, j = function(e) {
|
|
336
|
-
return e === void 0 && (e = {}), {
|
|
337
|
-
name: "size",
|
|
338
|
-
options: e,
|
|
339
|
-
async fn(r) {
|
|
340
|
-
var i, a;
|
|
341
|
-
let { placement: o, rects: s, platform: c, elements: l } = r, { apply: u = () => {}, ...h } = t(e, r), g = await c.detectOverflow(r, h), _ = d(o), v = n(o), y = f(o) === "y", { width: b, height: x } = s.floating, S, C;
|
|
342
|
-
_ === "top" || _ === "bottom" ? (S = _, C = v === (await (c.isRTL == null ? void 0 : c.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (C = _, S = v === "end" ? "top" : "bottom");
|
|
343
|
-
let w = x - g.top - g.bottom, T = b - g.left - g.right, E = m(x - g[S], w), D = m(b - g[C], T), O = !r.middlewareData.shift, k = E, A = D;
|
|
344
|
-
if ((i = r.middlewareData.shift) != null && i.enabled.x && (A = T), (a = r.middlewareData.shift) != null && a.enabled.y && (k = w), O && !v) {
|
|
345
|
-
let e = p(g.left, 0), t = p(g.right, 0), n = p(g.top, 0), r = p(g.bottom, 0);
|
|
346
|
-
y ? A = b - 2 * (e !== 0 || t !== 0 ? e + t : p(g.left, g.right)) : k = x - 2 * (n !== 0 || r !== 0 ? n + r : p(g.top, g.bottom));
|
|
347
|
-
}
|
|
348
|
-
await u({
|
|
349
|
-
...r,
|
|
350
|
-
availableWidth: A,
|
|
351
|
-
availableHeight: k
|
|
352
|
-
});
|
|
353
|
-
let j = await c.getDimensions(l.floating);
|
|
354
|
-
return b !== j.width || x !== j.height ? { reset: { rects: !0 } } : {};
|
|
355
|
-
}
|
|
356
|
-
};
|
|
68
|
+
export {
|
|
69
|
+
T as Presence
|
|
357
70
|
};
|
|
358
|
-
//#
|
|
359
|
-
export { x as arrow, b as computePosition, S as flip, T as hide, A as limitShift, O as offset, k as shift, j as size };
|
|
360
|
-
|
|
361
|
-
//# sourceMappingURL=index207.js.map
|
|
71
|
+
//# sourceMappingURL=index207.js.map
|
package/dist/index207.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index207.js","names":[],"sources":["../../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs"],"sourcesContent":["import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n x,\n y,\n width: rects.floating.width,\n height: rects.floating.height\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n// Maximum number of resets that can occur before bailing to avoid infinite reset loops.\nconst MAX_RESET_COUNT = 50;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const platformWithDetectOverflow = platform.detectOverflow ? platform : {\n ...platform,\n detectOverflow\n };\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let resetCount = 0;\n const middlewareData = {};\n for (let i = 0; i < middleware.length; i++) {\n const currentMiddleware = middleware[i];\n if (!currentMiddleware) {\n continue;\n }\n const {\n name,\n fn\n } = currentMiddleware;\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform: platformWithDetectOverflow,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData[name] = {\n ...middlewareData[name],\n ...data\n };\n if (reset && resetCount < MAX_RESET_COUNT) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const initialSideAxis = getSideAxis(initialPlacement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n if (!ignoreCrossAxisOverflow ||\n // We leave the current main axis only if every placement on that axis\n // overflows the main axis.\n overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$filter2;\n const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n if (hasFallbackAxisSideDirection) {\n const currentSideAxis = getSideAxis(d.placement);\n return currentSideAxis === initialSideAxis ||\n // Create a bias to the `y` side axis due to horizontal\n // reading directions favoring greater width.\n currentSideAxis === 'y';\n }\n return true;\n }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects,\n platform\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await platform.detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await platform.detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = originSides.has(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: rawValue.mainAxis || 0,\n crossAxis: rawValue.crossAxis || 0,\n alignmentAxis: rawValue.alignmentAxis\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n platform\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y,\n enabled: {\n [mainAxis]: checkMainAxis,\n [crossAxis]: checkCrossAxis\n }\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = originSides.has(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n var _state$middlewareData, _state$middlewareData2;\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n const maximumClippingWidth = width - overflow.left - overflow.right;\n const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {\n availableWidth = maximumClippingWidth;\n }\n if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {\n availableHeight = maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n"],"x_google_ignoreList":[0],"m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Ae,SACvD,EACL,OAAO,EACL,OAAO,IACR,EACF,GAEI,EAAE;;EAEZ"}
|
|
1
|
+
{"version":3,"file":"index207.js","sources":["../../../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","mayWarn"],"mappings":";;;AASA,SAASA,EAAgBC,GAAcC,GAAS;AAC9C,SAAOC,EAAM,WAAW,CAACC,GAAOC,MACZH,EAAQE,CAAK,EAAEC,CAAK,KAClBD,GACnBH,CAAY;AACjB;AAGG,IAACK,IAAW,CAACC,MAAU;AACxB,QAAM,EAAE,SAAAC,GAAS,UAAAC,EAAQ,IAAKF,GACxBG,IAAWC,EAAYH,CAAO,GAC9BI,IAAQ,OAAOH,KAAa,aAAaA,EAAS,EAAE,SAASC,EAAS,UAAS,CAAE,IAAIG,EAAO,SAAS,KAAKJ,CAAQ,GAClHK,IAAMC,EAAgBL,EAAS,KAAKM,EAAcJ,CAAK,CAAC;AAE9D,SADmB,OAAOH,KAAa,cAClBC,EAAS,YAAYG,EAAO,aAAaD,GAAO,EAAE,KAAAE,EAAG,CAAE,IAAI;AAClF;AACAR,EAAS,cAAc;AACvB,SAASK,EAAYH,GAAS;AAC5B,QAAM,CAACS,GAAMC,CAAO,IAAIL,EAAO,SAAQ,GACjCM,IAAYN,EAAO,OAAO,IAAI,GAC9BO,IAAiBP,EAAO,OAAOL,CAAO,GACtCa,IAAuBR,EAAO,OAAO,MAAM,GAC3CZ,IAAeO,IAAU,YAAY,aACrC,CAACJ,GAAOkB,CAAI,IAAItB,EAAgBC,GA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