@rpcbase/ui 0.287.0 → 0.289.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/assets/sha256.worker-DNtOSCbM.js.map +1 -0
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index10.js.map +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +96 -17
- package/dist/index11.js.map +1 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js.map +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js.map +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js.map +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js.map +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index14.js.map +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js.map +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js.map +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +18 -12
- package/dist/index170.js.map +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -3
- package/dist/index182.js.map +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js.map +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js.map +1 -1
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +9 -7
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +4 -4
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +4 -15
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +13 -3
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +2 -2
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -85
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +79 -54
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +68 -7
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -23
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +6 -28
- package/dist/index199.js.map +1 -1
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +4 -97
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +3 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +23 -24
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +28 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +97 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -12
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +22 -19
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -6
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -15
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +10 -102
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +21 -3
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -23
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +15 -28
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +101 -17
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -7
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +24 -15
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +27 -7
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +17 -24
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +6 -22
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +15 -6
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +8 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +27 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +23 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -24
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +5 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +4 -24
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +4 -23
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +23 -6
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +22 -8
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -19
- package/dist/index229.js.map +1 -1
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +22 -50
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -20
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -27
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +17 -97
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +50 -33
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +20 -119
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +28 -13
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +98 -4
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +33 -15
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -62
- package/dist/index239.js.map +1 -1
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +13 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -109
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +14 -14
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +64 -12
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +10 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +104 -318
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +14 -66
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +12 -232
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +4 -270
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +313 -309
- package/dist/index249.js.map +1 -1
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +60 -171
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +252 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +268 -41
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +316 -47
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +179 -9
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +6 -50
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +41 -51
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +50 -7
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -10
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +51 -61
- package/dist/index259.js.map +1 -1
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +53 -42
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +9 -97
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +31 -47
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +61 -36
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +43 -47
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +92 -46
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +48 -20
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +33 -176
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +49 -48
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +68 -15
- package/dist/index269.js.map +1 -1
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +20 -65
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +202 -9
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +48 -40
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +60 -91
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +9 -278
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +38 -55
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +91 -10
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +278 -12
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +58 -11
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +11 -64
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +5 -5
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +12 -6
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +3 -25
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +3 -25
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +12 -126
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +63 -51
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +5 -60
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +24 -48
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +24 -6
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +125 -14
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +51 -16
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +5 -7
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +56 -11
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +47 -24
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +7 -51
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +15 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +18 -148
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +12 -59
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +25 -120
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +54 -15
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +5 -866
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +148 -28
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +6 -8
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +55 -512
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +111 -794
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +14 -7436
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +862 -6
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +28 -12
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +515 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +803 -5
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +7426 -468
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +6 -37
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +12 -19
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +5 -11
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +5 -30
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +5 -4
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +461 -51
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +36 -10
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +19 -5
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +29 -8
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +4 -12
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +60 -3
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +10 -15
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +5 -25
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +5 -5
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +9 -41
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +11 -4
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +3 -26
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +15 -18
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +22 -31
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +41 -5
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +4 -8
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +25 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +19 -9
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +34 -10
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +9 -6
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +5 -7
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +9 -75
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +8 -162
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +9 -114
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +10 -14
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +7 -80
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +68 -39
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +160 -11
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +113 -15
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +13 -100
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +6 -6
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +73 -49
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +34 -96
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +12 -70
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +14 -111
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +94 -48
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +50 -37
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +89 -125
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +52 -123
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +54 -197
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +44 -229
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +9 -9
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +42 -308
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +144 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +142 -6
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +257 -7
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +241 -6
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +309 -6
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +5 -21
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +6 -10
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +7 -128
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +6 -42
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +12 -7
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +6 -68
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +20 -116
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +10 -490
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +128 -7
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +42 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +67 -3
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +115 -45
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +490 -11
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +8 -26
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +12 -41
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +13 -5
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +4 -36
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +45 -15
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +24 -41
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +3 -12
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +27 -11
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +40 -50
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +37 -40
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +12 -10
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +40 -4
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +7 -4
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +5 -5
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +29 -8
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +9 -303
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +57 -4
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +40 -22
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +15 -105
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +5 -22
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +10 -22
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +289 -16
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +4 -12
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +20 -112
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +6 -10
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +3 -9
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +104 -27
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +20 -9
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +20 -6
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +14 -253
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +12 -10
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +117 -11
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +8 -6
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +32 -22
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +9 -23
- package/dist/index399.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +8 -11
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +6 -105
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +3 -15
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +251 -10
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +9 -7
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +11 -239
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -28
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +21 -37
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +21 -10
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +97 -117
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +15 -40
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +6 -7
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +11 -25
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +7 -9
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -24
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +226 -15
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +24 -11
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +38 -4
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +11 -324
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +119 -62
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +42 -4
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +25 -28
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +6 -4
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +11 -470
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +23 -268
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +24 -0
- package/dist/index422.js.map +1 -0
- package/dist/index423.js +17 -0
- package/dist/index423.js.map +1 -0
- package/dist/index424.js +8 -0
- package/dist/index424.js.map +1 -0
- package/dist/index425.js +328 -0
- package/dist/index425.js.map +1 -0
- package/dist/index426.js +66 -0
- package/dist/index426.js.map +1 -0
- package/dist/index427.js +7 -0
- package/dist/index427.js.map +1 -0
- package/dist/index428.js +31 -0
- package/dist/index428.js.map +1 -0
- package/dist/index429.js +474 -0
- package/dist/index429.js.map +1 -0
- package/dist/index43.js +68 -7
- package/dist/index43.js.map +1 -1
- package/dist/index430.js +272 -0
- package/dist/index430.js.map +1 -0
- package/dist/index44.js +7 -6
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +31 -7
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +10 -10
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +15 -13
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +201 -7
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +20 -6
- package/dist/index49.js.map +1 -1
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +16 -6
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +123 -14
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +19 -8
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +5 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +9 -68
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +7 -7
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +9 -31
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +13 -10
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +8 -15
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +10 -201
- package/dist/index59.js.map +1 -1
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +13 -20
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +9 -16
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +10 -123
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +5 -19
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +42 -9
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +387 -9
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +37 -14
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +21 -9
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +4 -9
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +6 -4
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +3 -3
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +57 -41
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +5 -387
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +6 -37
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +5 -21
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +4 -56
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +7 -7
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +6 -5
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +6 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +11 -5
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +11 -5
- package/dist/index79.js.map +1 -1
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +7 -6
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +10 -6
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -8
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +6 -7
- package/dist/index83.js.map +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +2 -2
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +31 -31
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +13 -13
- package/dist/assets/sha256.worker-BEf4_Y9w.js.map +0 -1
package/dist/index273.js
CHANGED
|
@@ -1,96 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { EMPTY_OBJECT as e } from "./index192.js";
|
|
2
|
+
import { FloatingRootStore as t } from "./index266.js";
|
|
3
|
+
//#region ../../node_modules/@base-ui/react/utils/popups/store.mjs
|
|
4
|
+
function n(n, r, i = !1) {
|
|
5
|
+
return {
|
|
6
|
+
open: !1,
|
|
7
|
+
openProp: void 0,
|
|
8
|
+
mounted: !1,
|
|
9
|
+
transitionStatus: void 0,
|
|
10
|
+
floatingRootContext: new t({
|
|
11
|
+
open: !1,
|
|
12
|
+
transitionStatus: void 0,
|
|
13
|
+
floatingElement: null,
|
|
14
|
+
referenceElement: null,
|
|
15
|
+
triggerElements: n,
|
|
16
|
+
floatingId: r,
|
|
17
|
+
syncOnly: !0,
|
|
18
|
+
nested: i,
|
|
19
|
+
onOpenChange: void 0
|
|
20
|
+
}),
|
|
21
|
+
floatingId: r,
|
|
22
|
+
triggerCount: 0,
|
|
23
|
+
preventUnmountingOnClose: !1,
|
|
24
|
+
payload: void 0,
|
|
25
|
+
activeTriggerId: null,
|
|
26
|
+
activeTriggerElement: null,
|
|
27
|
+
triggerIdProp: void 0,
|
|
28
|
+
popupElement: null,
|
|
29
|
+
positionerElement: null,
|
|
30
|
+
activeTriggerProps: e,
|
|
31
|
+
inactiveTriggerProps: e,
|
|
32
|
+
popupProps: e
|
|
33
|
+
};
|
|
10
34
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
floating: u,
|
|
15
|
-
domReference: d
|
|
16
|
-
}), [
|
|
17
|
-
l,
|
|
18
|
-
u,
|
|
19
|
-
d
|
|
20
|
-
]), C = r({
|
|
21
|
-
...a,
|
|
22
|
-
elements: {
|
|
23
|
-
...S,
|
|
24
|
-
...m && { reference: m }
|
|
25
|
-
}
|
|
26
|
-
}), w = e(g) ? g : null, T = v === void 0 ? o.state.floatingElement : v;
|
|
27
|
-
o.useSyncedValue("referenceElement", g ?? null), o.useSyncedValue("domReferenceElement", g === void 0 ? d : w), o.useSyncedValue("floatingElement", T);
|
|
28
|
-
let E = i.useCallback((t) => {
|
|
29
|
-
let n = e(t) ? {
|
|
30
|
-
getBoundingClientRect: () => t.getBoundingClientRect(),
|
|
31
|
-
getClientRects: () => t.getClientRects(),
|
|
32
|
-
contextElement: t
|
|
33
|
-
} : t;
|
|
34
|
-
h(n), C.refs.setReference(n);
|
|
35
|
-
}, [C.refs]), D = i.useCallback((t) => {
|
|
36
|
-
(e(t) || t === null) && (b.current = t, _(t)), (e(C.refs.reference.current) || C.refs.reference.current === null || t !== null && !e(t)) && C.refs.setReference(t);
|
|
37
|
-
}, [C.refs, _]), O = i.useCallback((e) => {
|
|
38
|
-
y(e), C.refs.setFloating(e);
|
|
39
|
-
}, [C.refs]), k = i.useMemo(() => ({
|
|
40
|
-
...C.refs,
|
|
41
|
-
setReference: D,
|
|
42
|
-
setFloating: O,
|
|
43
|
-
setPositionReference: E,
|
|
44
|
-
domReference: b
|
|
45
|
-
}), [
|
|
46
|
-
C.refs,
|
|
47
|
-
D,
|
|
48
|
-
O,
|
|
49
|
-
E
|
|
50
|
-
]), A = i.useMemo(() => ({
|
|
51
|
-
...C.elements,
|
|
52
|
-
domReference: d
|
|
53
|
-
}), [C.elements, d]), j = i.useMemo(() => ({
|
|
54
|
-
...C,
|
|
55
|
-
dataRef: o.context.dataRef,
|
|
56
|
-
open: f,
|
|
57
|
-
onOpenChange: o.setOpen,
|
|
58
|
-
events: o.context.events,
|
|
59
|
-
floatingId: p,
|
|
60
|
-
refs: k,
|
|
61
|
-
elements: A,
|
|
62
|
-
nodeId: s,
|
|
63
|
-
rootStore: o
|
|
64
|
-
}), [
|
|
65
|
-
C,
|
|
66
|
-
k,
|
|
67
|
-
A,
|
|
68
|
-
s,
|
|
69
|
-
o,
|
|
70
|
-
f,
|
|
71
|
-
p
|
|
72
|
-
]);
|
|
73
|
-
return t(() => {
|
|
74
|
-
d && (b.current = d);
|
|
75
|
-
}, [d]), t(() => {
|
|
76
|
-
o.context.dataRef.current.floatingContext = j;
|
|
77
|
-
let e = x?.nodesRef.current.find((e) => e.id === s);
|
|
78
|
-
e && (e.context = j);
|
|
79
|
-
}), i.useMemo(() => ({
|
|
80
|
-
...C,
|
|
81
|
-
context: j,
|
|
82
|
-
refs: k,
|
|
83
|
-
elements: A,
|
|
84
|
-
rootStore: o
|
|
85
|
-
}), [
|
|
86
|
-
C,
|
|
87
|
-
k,
|
|
88
|
-
A,
|
|
89
|
-
j,
|
|
90
|
-
o
|
|
91
|
-
]);
|
|
35
|
+
var r = (e) => e.triggerIdProp ?? e.activeTriggerId, i = (e) => e.openProp ?? e.open, a = (e) => (e.popupElement?.id ?? e.floatingId) || void 0;
|
|
36
|
+
function o(e, t) {
|
|
37
|
+
return t !== void 0 && i(e) && r(e) === t;
|
|
92
38
|
}
|
|
39
|
+
function s(e, t) {
|
|
40
|
+
return o(e, t) ? !0 : t !== void 0 && i(e) && r(e) == null && e.triggerCount === 1;
|
|
41
|
+
}
|
|
42
|
+
var c = {
|
|
43
|
+
open: i,
|
|
44
|
+
mounted: (e) => e.mounted,
|
|
45
|
+
transitionStatus: (e) => e.transitionStatus,
|
|
46
|
+
floatingRootContext: (e) => e.floatingRootContext,
|
|
47
|
+
triggerCount: (e) => e.triggerCount,
|
|
48
|
+
preventUnmountingOnClose: (e) => e.preventUnmountingOnClose,
|
|
49
|
+
payload: (e) => e.payload,
|
|
50
|
+
activeTriggerId: r,
|
|
51
|
+
activeTriggerElement: (e) => e.mounted ? e.activeTriggerElement : null,
|
|
52
|
+
popupId: a,
|
|
53
|
+
isTriggerActive: (e, t) => t !== void 0 && r(e) === t,
|
|
54
|
+
isOpenedByTrigger: (e, t) => o(e, t),
|
|
55
|
+
isMountedByTrigger: (e, t) => t !== void 0 && r(e) === t && e.mounted,
|
|
56
|
+
triggerProps: (e, t) => t ? e.activeTriggerProps : e.inactiveTriggerProps,
|
|
57
|
+
triggerPopupId: (e, t) => s(e, t) ? a(e) : void 0,
|
|
58
|
+
popupProps: (e) => e.popupProps,
|
|
59
|
+
popupElement: (e) => e.popupElement,
|
|
60
|
+
positionerElement: (e) => e.positionerElement
|
|
61
|
+
};
|
|
93
62
|
//#endregion
|
|
94
|
-
export {
|
|
63
|
+
export { n as createInitialPopupStoreState, c as popupStoreSelectors };
|
|
95
64
|
|
|
96
65
|
//# sourceMappingURL=index273.js.map
|
package/dist/index273.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index273.js","names":["
|
|
1
|
+
{"version":3,"file":"index273.js","names":["createInitialPopupStoreState","FloatingRootStore","EMPTY_OBJECT","activeTriggerIdSelector","state","openSelector","popupIdSelector","triggerOwnsOpenPopup","triggerId","triggerOwnsOpenPopupOrIsOnlyTrigger","popupStoreSelectors","isActive"],"sources":["../../../node_modules/@base-ui/react/utils/popups/store.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { FloatingRootStore } from \"../../floating-ui-react/components/FloatingRootStore.mjs\";\n\n/**\n * State common to all popup stores.\n */\n\nexport function createInitialPopupStoreState(triggerElements, floatingId, nested = false) {\n return {\n open: false,\n openProp: undefined,\n mounted: false,\n transitionStatus: undefined,\n floatingRootContext: new FloatingRootStore({\n open: false,\n transitionStatus: undefined,\n floatingElement: null,\n referenceElement: null,\n triggerElements,\n floatingId,\n syncOnly: true,\n nested,\n onOpenChange: undefined\n }),\n floatingId,\n triggerCount: 0,\n preventUnmountingOnClose: false,\n payload: undefined,\n activeTriggerId: null,\n activeTriggerElement: null,\n triggerIdProp: undefined,\n popupElement: null,\n positionerElement: null,\n activeTriggerProps: EMPTY_OBJECT,\n inactiveTriggerProps: EMPTY_OBJECT,\n popupProps: EMPTY_OBJECT\n };\n}\nconst activeTriggerIdSelector = state => state.triggerIdProp ?? state.activeTriggerId;\nconst openSelector = state => state.openProp ?? state.open;\nconst popupIdSelector = state => {\n const popupId = state.popupElement?.id ?? state.floatingId;\n return popupId || undefined;\n};\nfunction triggerOwnsOpenPopup(state, triggerId) {\n return triggerId !== undefined && openSelector(state) && activeTriggerIdSelector(state) === triggerId;\n}\nfunction triggerOwnsOpenPopupOrIsOnlyTrigger(state, triggerId) {\n if (triggerOwnsOpenPopup(state, triggerId)) {\n return true;\n }\n return triggerId !== undefined && openSelector(state) && activeTriggerIdSelector(state) == null && state.triggerCount === 1;\n}\nexport const popupStoreSelectors = {\n open: openSelector,\n mounted: state => state.mounted,\n transitionStatus: state => state.transitionStatus,\n floatingRootContext: state => state.floatingRootContext,\n triggerCount: state => state.triggerCount,\n preventUnmountingOnClose: state => state.preventUnmountingOnClose,\n payload: state => state.payload,\n activeTriggerId: activeTriggerIdSelector,\n activeTriggerElement: state => state.mounted ? state.activeTriggerElement : null,\n popupId: popupIdSelector,\n /**\n * Whether the trigger with the given ID was used to open the popup.\n */\n isTriggerActive: (state, triggerId) => triggerId !== undefined && activeTriggerIdSelector(state) === triggerId,\n /**\n * Whether the popup is open and was activated by a trigger with the given ID.\n */\n isOpenedByTrigger: (state, triggerId) => triggerOwnsOpenPopup(state, triggerId),\n /**\n * Whether the popup is mounted and was activated by a trigger with the given ID.\n */\n isMountedByTrigger: (state, triggerId) => triggerId !== undefined && activeTriggerIdSelector(state) === triggerId && state.mounted,\n triggerProps: (state, isActive) => isActive ? state.activeTriggerProps : state.inactiveTriggerProps,\n /**\n * Popup id for the trigger that currently owns the open popup.\n */\n triggerPopupId: (state, triggerId) => triggerOwnsOpenPopupOrIsOnlyTrigger(state, triggerId) ? popupIdSelector(state) : undefined,\n popupProps: state => state.popupProps,\n popupElement: state => state.popupElement,\n positionerElement: state => state.positionerElement\n};\n\n/**\n * Store members a detached handle-backed trigger reads or invokes for trigger registration and data\n * forwarding. `set`/`update` are included only for trigger-count and trigger-data bookkeeping; on a\n * detached (inert) store they are intentionally no-ops, so a write through them is not guaranteed to\n * be durable. Component handle-store views Pick these from their concrete store (preserving its\n * context and selectors) and add any component-specific trigger-invoked members such as `setOpen`.\n */\n\n/**\n * The subset of a popup store that trigger registration and data forwarding rely on. Narrow enough\n * that an inert store can be passed while detached.\n */"],"ignoreList":[0],"mappings":";;;AAOA,SAAgBA,EAA6B,GAAiB,GAAY,IAAS,IAAO;CACxF,OAAO;EACL,MAAM;EACN,UAAU,KAAA;EACV,SAAS;EACT,kBAAkB,KAAA;EAClB,qBAAqB,IAAIC,EAAkB;GACzC,MAAM;GACN,kBAAkB,KAAA;GAClB,iBAAiB;GACjB,kBAAkB;GAClB;GACA;GACA,UAAU;GACV;GACA,cAAc,KAAA;EAChB,CAAC;EACD;EACA,cAAc;EACd,0BAA0B;EAC1B,SAAS,KAAA;EACT,iBAAiB;EACjB,sBAAsB;EACtB,eAAe,KAAA;EACf,cAAc;EACd,mBAAmB;EACnB,oBAAoBC;EACpB,sB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3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { ARROW_DOWN as ne, ARROW_LEFT as l, ARROW_RIGHT as u, ARROW_UP as re } from "./index224.js";
|
|
11
|
-
import { activeElement as d, contains as f, getTarget as ie } from "./index225.js";
|
|
12
|
-
import { getFloatingFocusElement as ae, isTypeableCombobox as oe } from "./index226.js";
|
|
13
|
-
import { useValueAsRef as p } from "./index229.js";
|
|
14
|
-
import { useAnimationFrame as se } from "./index230.js";
|
|
15
|
-
import { findNonDisabledListIndex as m, getMaxListIndex as ce, getMinListIndex as le, isIndexOutOfListBounds as ue } from "./index234.js";
|
|
16
|
-
import { enqueueFocus as de } from "./index238.js";
|
|
17
|
-
import { useFloatingParentNodeId as fe, useFloatingTree as pe } from "./index243.js";
|
|
18
|
-
import * as h from "react";
|
|
19
|
-
//#region ../../node_modules/@base-ui/react/floating-ui-react/hooks/useListNavigation.mjs
|
|
20
|
-
var g = "Escape";
|
|
21
|
-
function me(e) {
|
|
22
|
-
return s && e.movementX === 0 && e.movementY === 0;
|
|
23
|
-
}
|
|
24
|
-
function _(e, t, n) {
|
|
25
|
-
switch (e) {
|
|
26
|
-
case "vertical": return t;
|
|
27
|
-
case "horizontal": return n;
|
|
28
|
-
default: return t || n;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function v(e, t) {
|
|
32
|
-
return _(t, e === "ArrowUp" || e === "ArrowDown", e === "ArrowLeft" || e === "ArrowRight");
|
|
33
|
-
}
|
|
34
|
-
function y(e, t, n) {
|
|
35
|
-
return _(t, e === "ArrowDown", n ? e === "ArrowLeft" : e === "ArrowRight") || e === "Enter" || e === " " || e === "";
|
|
36
|
-
}
|
|
37
|
-
function he(e, t, n) {
|
|
38
|
-
return _(t, n ? e === l : e === u, e === ne);
|
|
39
|
-
}
|
|
40
|
-
function ge(e, t, n, r) {
|
|
41
|
-
return t === "both" || t === "horizontal" && r ? e === g : _(t, n ? e === u : e === l, e === re);
|
|
42
|
-
}
|
|
43
|
-
function b(s, ne) {
|
|
44
|
-
let { listRef: l, activeIndex: u, onNavigate: re = () => {}, enabled: g = !0, selectedIndex: _ = null, allowEscape: b = !1, loopFocus: x = !1, nested: S = !1, rtl: C = !1, virtual: w = !1, focusItemOnOpen: T = "auto", focusItemOnHover: _e = !0, openOnArrowKeyDown: E = !0, disabledIndices: D = void 0, orientation: O = "vertical", parentOrientation: ve, id: ye, resetOnPointerLeave: be = !0, externalTree: xe, grid: k } = ne, Se = k != null;
|
|
45
|
-
process.env.NODE_ENV !== "production" && (b && (x || console.warn("`useListNavigation` looping must be enabled to allow escaping."), w || console.warn("`useListNavigation` must be virtual to allow escaping.")), O === "vertical" && Se && console.warn("In grid list navigation mode, the `orientation` should", "be either \"horizontal\" or \"both\"."));
|
|
46
|
-
let A = "rootStore" in s ? s.rootStore : s, j = A.useState("open"), M = A.useState("floatingElement"), N = A.useState("domReferenceElement"), Ce = A.context.dataRef, we = ae(M), P = oe(N), F = p(we), I = fe(), L = pe(xe), R = h.useRef(T), z = h.useRef(_ ?? -1), B = h.useRef(null), V = h.useRef(!0), H = t((e) => {
|
|
47
|
-
re(z.current === -1 ? null : z.current, e);
|
|
48
|
-
}), U = h.useRef(!!M), Te = h.useRef(j), W = h.useRef(!1), G = h.useRef(!1), K = h.useRef(null), Ee = p(D), q = p(j), J = p(_), De = p(be), Oe = se(), ke = se(), Ae = t(() => {
|
|
49
|
-
function e(e) {
|
|
50
|
-
w ? L?.events.emit("virtualfocus", e) : K.current = de(e, {
|
|
51
|
-
sync: W.current,
|
|
52
|
-
preventScroll: !0
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
let t = l.current[z.current], n = G.current;
|
|
56
|
-
t && e(t), (W.current ? (e) => e() : (e) => Oe.request(e))(() => {
|
|
57
|
-
let r = l.current[z.current] || t;
|
|
58
|
-
r && (t || e(r), Ne && (n || !V.current) && r.scrollIntoView?.({
|
|
59
|
-
block: "nearest",
|
|
60
|
-
inline: "nearest"
|
|
61
|
-
}));
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
n(() => {
|
|
65
|
-
Ce.current.orientation = O;
|
|
66
|
-
}, [Ce, O]), n(() => {
|
|
67
|
-
g && (j && M ? (z.current = _ ?? -1, R.current && _ != null && (G.current = !0, H())) : U.current && (z.current = -1, H()));
|
|
68
|
-
}, [
|
|
69
|
-
g,
|
|
70
|
-
j,
|
|
71
|
-
M,
|
|
72
|
-
_,
|
|
73
|
-
H
|
|
74
|
-
]), n(() => {
|
|
75
|
-
if (g) {
|
|
76
|
-
if (!j) {
|
|
77
|
-
W.current = !1;
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
if (M) {
|
|
81
|
-
if (u == null) {
|
|
82
|
-
if (W.current = !1, J.current != null) return;
|
|
83
|
-
if (U.current && (z.current = -1, Ae()), (!Te.current || !U.current) && R.current && (B.current != null || R.current === !0 && B.current == null)) {
|
|
84
|
-
let e = 0, t = () => {
|
|
85
|
-
l.current[0] == null ? (e < 2 && (e ? (e) => ke.request(e) : queueMicrotask)(t), e += 1) : (z.current = B.current == null || y(B.current, O, C) || S ? le(l) : ce(l), B.current = null, H());
|
|
86
|
-
};
|
|
87
|
-
t();
|
|
88
|
-
}
|
|
89
|
-
} else ue(l.current, u) || (z.current = u, Ae(), G.current = !1);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}, [
|
|
93
|
-
g,
|
|
94
|
-
j,
|
|
95
|
-
M,
|
|
96
|
-
u,
|
|
97
|
-
J,
|
|
98
|
-
S,
|
|
99
|
-
l,
|
|
100
|
-
O,
|
|
101
|
-
C,
|
|
102
|
-
H,
|
|
103
|
-
Ae,
|
|
104
|
-
ke
|
|
105
|
-
]), n(() => {
|
|
106
|
-
if (!g || M || !L || w || !U.current) return;
|
|
107
|
-
let e = L.nodesRef.current, t = e.find((e) => e.id === I)?.context?.elements.floating, n = d(r(N ?? t ?? null)), i = e.some((e) => e.context && f(e.context.elements.floating, n));
|
|
108
|
-
t && !i && V.current && t.focus({ preventScroll: !0 });
|
|
109
|
-
}, [
|
|
110
|
-
g,
|
|
111
|
-
M,
|
|
112
|
-
N,
|
|
113
|
-
L,
|
|
114
|
-
I,
|
|
115
|
-
w
|
|
116
|
-
]), n(() => {
|
|
117
|
-
Te.current = j, U.current = !!M;
|
|
118
|
-
}), n(() => {
|
|
119
|
-
j || (B.current = null, R.current = T);
|
|
120
|
-
}, [j, T]);
|
|
121
|
-
let je = u != null, Y = t((e) => {
|
|
122
|
-
if (!q.current) return;
|
|
123
|
-
let t = l.current.indexOf(e.currentTarget);
|
|
124
|
-
t !== -1 && (z.current !== t || u !== t) && (z.current = t, H(e));
|
|
125
|
-
}), X = t(() => ve ?? L?.nodesRef.current.find((e) => e.id === I)?.context?.dataRef?.current.orientation), Me = t(() => le(l, Ee.current)), Z = t((t) => {
|
|
126
|
-
if (V.current = !1, W.current = !0, t.which === 229 || !q.current && t.currentTarget === F.current) return;
|
|
127
|
-
if (S && ge(t.key, O, C, Se)) {
|
|
128
|
-
v(t.key, X()) || c(t), A.setOpen(!1, o(a, t.nativeEvent)), e(N) && (w ? L?.events.emit("virtualfocus", N) : N.focus());
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
let n = z.current, r = le(l, D), i = ce(l, D);
|
|
132
|
-
if (P || (t.key === "Home" && (c(t), z.current = r, H(t)), t.key === "End" && (c(t), z.current = i, H(t))), k != null) {
|
|
133
|
-
let e = k(t, z.current, l, O, x, C, D, r, i);
|
|
134
|
-
if (e != null && (z.current = e, H(t)), O === "both") return;
|
|
135
|
-
}
|
|
136
|
-
if (v(t.key, O)) {
|
|
137
|
-
if (c(t), j && !w && d(t.currentTarget.ownerDocument) === t.currentTarget) {
|
|
138
|
-
z.current = y(t.key, O, C) ? r : i, H(t);
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
y(t.key, O, C) ? x ? n >= i ? b && n !== l.current.length ? z.current = -1 : (W.current = !1, z.current = r) : z.current = m(l.current, {
|
|
142
|
-
startingIndex: n,
|
|
143
|
-
disabledIndices: D
|
|
144
|
-
}) : z.current = Math.min(i, m(l.current, {
|
|
145
|
-
startingIndex: n,
|
|
146
|
-
disabledIndices: D
|
|
147
|
-
})) : x ? n <= r ? b && n !== -1 ? z.current = l.current.length : (W.current = !1, z.current = i) : z.current = m(l.current, {
|
|
148
|
-
startingIndex: n,
|
|
149
|
-
decrement: !0,
|
|
150
|
-
disabledIndices: D
|
|
151
|
-
}) : z.current = Math.max(r, m(l.current, {
|
|
152
|
-
startingIndex: n,
|
|
153
|
-
decrement: !0,
|
|
154
|
-
disabledIndices: D
|
|
155
|
-
})), ue(l.current, z.current) && (z.current = -1), H(t);
|
|
156
|
-
}
|
|
157
|
-
}), Ne = h.useMemo(() => ({
|
|
158
|
-
onFocus(e) {
|
|
159
|
-
W.current = !0, Y(e);
|
|
160
|
-
},
|
|
161
|
-
onClick: ({ currentTarget: e }) => e.focus({ preventScroll: !0 }),
|
|
162
|
-
onMouseMove(e) {
|
|
163
|
-
me(e) || (W.current = !0, G.current = !1, _e && Y(e));
|
|
164
|
-
},
|
|
165
|
-
onPointerLeave(e) {
|
|
166
|
-
if (!q.current || !V.current || e.pointerType === "touch") return;
|
|
167
|
-
W.current = !0;
|
|
168
|
-
let t = e.relatedTarget;
|
|
169
|
-
if (!(!_e || l.current.includes(t)) && De.current && (K.current?.(), K.current = null, z.current = -1, H(e), !w)) {
|
|
170
|
-
let e = F.current, t = d(r(e));
|
|
171
|
-
e && f(e, t) && e.focus({ preventScroll: !0 });
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}), [
|
|
175
|
-
Y,
|
|
176
|
-
q,
|
|
177
|
-
F,
|
|
178
|
-
_e,
|
|
179
|
-
l,
|
|
180
|
-
H,
|
|
181
|
-
De,
|
|
182
|
-
w
|
|
183
|
-
]), Q = h.useMemo(() => w && j && je && { "aria-activedescendant": `${ye}-${u}` }, [
|
|
184
|
-
w,
|
|
185
|
-
j,
|
|
186
|
-
je,
|
|
187
|
-
ye,
|
|
188
|
-
u
|
|
189
|
-
]), Pe = h.useMemo(() => ({
|
|
190
|
-
"aria-orientation": O === "both" ? void 0 : O,
|
|
191
|
-
...P ? {} : Q,
|
|
192
|
-
onKeyDown(t) {
|
|
193
|
-
if (t.key === "Tab" && t.shiftKey && j && !w) {
|
|
194
|
-
let n = ie(t.nativeEvent);
|
|
195
|
-
if (n && !f(F.current, n)) return;
|
|
196
|
-
c(t), A.setOpen(!1, o(i, t.nativeEvent)), e(N) && N.focus();
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
Z(t);
|
|
200
|
-
},
|
|
201
|
-
onPointerMove(e) {
|
|
202
|
-
me(e) || (V.current = !0);
|
|
203
|
-
}
|
|
204
|
-
}), [
|
|
205
|
-
Q,
|
|
206
|
-
Z,
|
|
207
|
-
F,
|
|
208
|
-
O,
|
|
209
|
-
P,
|
|
210
|
-
A,
|
|
211
|
-
j,
|
|
212
|
-
w,
|
|
213
|
-
N
|
|
214
|
-
]), $ = h.useMemo(() => {
|
|
215
|
-
function e(e) {
|
|
216
|
-
A.setOpen(!0, o(a, e.nativeEvent, e.currentTarget));
|
|
217
|
-
}
|
|
218
|
-
function t(e) {
|
|
219
|
-
T === "auto" && ee(e.nativeEvent) && (R.current = !w);
|
|
220
|
-
}
|
|
221
|
-
function n(e) {
|
|
222
|
-
R.current = T, T === "auto" && te(e.nativeEvent) && (R.current = !0);
|
|
223
|
-
}
|
|
224
|
-
return {
|
|
225
|
-
onKeyDown(t) {
|
|
226
|
-
let n = A.select("open");
|
|
227
|
-
V.current = !1;
|
|
228
|
-
let r = t.key.startsWith("Arrow"), i = he(t.key, X(), C), a = v(t.key, O), o = (S ? i : a) || t.key === "Enter" || t.key.trim() === "";
|
|
229
|
-
if (w && n) return Z(t);
|
|
230
|
-
if (!(!n && !E && r)) {
|
|
231
|
-
if (o) {
|
|
232
|
-
let e = v(t.key, X());
|
|
233
|
-
B.current = S && e ? null : t.key;
|
|
234
|
-
}
|
|
235
|
-
if (S) {
|
|
236
|
-
i && (c(t), n ? (z.current = Me(), H(t)) : e(t));
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
a && (J.current != null && (z.current = J.current), c(t), !n && E ? e(t) : Z(t), n && H(t));
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
onFocus(e) {
|
|
243
|
-
A.select("open") && !w && (z.current = -1, H(e));
|
|
244
|
-
},
|
|
245
|
-
onPointerDown: n,
|
|
246
|
-
onPointerEnter: n,
|
|
247
|
-
onMouseDown: t,
|
|
248
|
-
onClick: t
|
|
249
|
-
};
|
|
250
|
-
}, [
|
|
251
|
-
Z,
|
|
252
|
-
T,
|
|
253
|
-
Me,
|
|
254
|
-
S,
|
|
255
|
-
H,
|
|
256
|
-
A,
|
|
257
|
-
E,
|
|
258
|
-
O,
|
|
259
|
-
X,
|
|
260
|
-
C,
|
|
261
|
-
J,
|
|
262
|
-
w
|
|
263
|
-
]), Fe = h.useMemo(() => ({
|
|
264
|
-
...Q,
|
|
265
|
-
...$
|
|
266
|
-
}), [Q, $]);
|
|
267
|
-
return h.useMemo(() => g ? {
|
|
268
|
-
reference: Fe,
|
|
269
|
-
floating: Pe,
|
|
270
|
-
item: Ne,
|
|
271
|
-
trigger: $
|
|
272
|
-
} : {}, [
|
|
273
|
-
g,
|
|
274
|
-
Fe,
|
|
275
|
-
Pe,
|
|
276
|
-
$,
|
|
277
|
-
Ne
|
|
278
|
-
]);
|
|
2
|
+
import { NOOP as e } from "./index192.js";
|
|
3
|
+
import { require_shim as t } from "./index258.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
//#region ../../node_modules/@base-ui/react/utils/popups/usePopupHandleStore.mjs
|
|
6
|
+
var r = t();
|
|
7
|
+
function i(t) {
|
|
8
|
+
let i = n.useCallback((n) => t === void 0 ? e : t.subscribeStore(n), [t]), a = n.useCallback(() => t === void 0 ? void 0 : t.store, [t]);
|
|
9
|
+
return (0, r.useSyncExternalStore)(i, a, () => t?.serverStore);
|
|
279
10
|
}
|
|
280
11
|
//#endregion
|
|
281
|
-
export {
|
|
12
|
+
export { i as usePopupHandleStore };
|
|
282
13
|
|
|
283
14
|
//# sourceMappingURL=index274.js.map
|
package/dist/index274.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index274.js","names":["platform.engine.webkit","React","REASONS.listNavigation","REASONS.focusOut"],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/hooks/useListNavigation.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { platform } from '@base-ui/utils/platform';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useFloatingParentNodeId, useFloatingTree } from \"../components/FloatingTree.mjs\";\nimport { findNonDisabledListIndex, getMaxListIndex, getMinListIndex, isIndexOutOfListBounds } from \"../utils/composite.mjs\";\nimport { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP } from \"../utils/constants.mjs\";\nimport { activeElement, contains, getFloatingFocusElement, getTarget, isTypeableCombobox } from \"../utils/element.mjs\";\nimport { enqueueFocus } from \"../utils/enqueueFocus.mjs\";\nimport { isVirtualClick, isVirtualPointerEvent, stopEvent } from \"../utils/event.mjs\";\nexport const ESCAPE = 'Escape';\n\n// WebKit fires zero-delta `mousemove`/`pointermove` events when the list scrolls\n// beneath a stationary pointer, moving the highlight during keyboard navigation.\n// https://github.com/mui/base-ui/issues/4002\nfunction isStationaryWebKitPointer(event) {\n return platform.engine.webkit && event.movementX === 0 && event.movementY === 0;\n}\nfunction doSwitch(orientation, vertical, horizontal) {\n switch (orientation) {\n case 'vertical':\n return vertical;\n case 'horizontal':\n return horizontal;\n default:\n return vertical || horizontal;\n }\n}\nfunction isMainOrientationKey(key, orientation) {\n const vertical = key === ARROW_UP || key === ARROW_DOWN;\n const horizontal = key === ARROW_LEFT || key === ARROW_RIGHT;\n return doSwitch(orientation, vertical, horizontal);\n}\nfunction isMainOrientationToEndKey(key, orientation, rtl) {\n const vertical = key === ARROW_DOWN;\n const horizontal = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT;\n return doSwitch(orientation, vertical, horizontal) || key === 'Enter' || key === ' ' || key === '';\n}\nfunction isCrossOrientationOpenKey(key, orientation, rtl) {\n const vertical = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT;\n const horizontal = key === ARROW_DOWN;\n return doSwitch(orientation, vertical, horizontal);\n}\nfunction isCrossOrientationCloseKey(key, orientation, rtl, grid) {\n const vertical = rtl ? key === ARROW_RIGHT : key === ARROW_LEFT;\n const horizontal = key === ARROW_UP;\n if (orientation === 'both' || orientation === 'horizontal' && grid) {\n return key === ESCAPE;\n }\n return doSwitch(orientation, vertical, horizontal);\n}\n/**\n * Adds arrow key-based navigation of a list of items, either using real DOM\n * focus or virtual focus.\n * @see https://floating-ui.com/docs/useListNavigation\n */\nexport function useListNavigation(context, props) {\n const {\n listRef,\n activeIndex,\n onNavigate: onNavigateProp = () => {},\n enabled = true,\n selectedIndex = null,\n allowEscape = false,\n loopFocus = false,\n nested = false,\n rtl = false,\n virtual = false,\n focusItemOnOpen = 'auto',\n focusItemOnHover = true,\n openOnArrowKeyDown = true,\n disabledIndices = undefined,\n orientation = 'vertical',\n parentOrientation,\n id,\n resetOnPointerLeave = true,\n externalTree,\n grid: navigateGrid\n } = props;\n const isGrid = navigateGrid != null;\n if (process.env.NODE_ENV !== 'production') {\n if (allowEscape) {\n if (!loopFocus) {\n console.warn('`useListNavigation` looping must be enabled to allow escaping.');\n }\n if (!virtual) {\n console.warn('`useListNavigation` must be virtual to allow escaping.');\n }\n }\n if (orientation === 'vertical' && isGrid) {\n console.warn('In grid list navigation mode, the `orientation` should', 'be either \"horizontal\" or \"both\".');\n }\n }\n const store = 'rootStore' in context ? context.rootStore : context;\n const open = store.useState('open');\n const floatingElement = store.useState('floatingElement');\n const domReferenceElement = store.useState('domReferenceElement');\n const dataRef = store.context.dataRef;\n const floatingFocusElement = getFloatingFocusElement(floatingElement);\n const typeableComboboxReference = isTypeableCombobox(domReferenceElement);\n const floatingFocusElementRef = useValueAsRef(floatingFocusElement);\n const parentId = useFloatingParentNodeId();\n const tree = useFloatingTree(externalTree);\n const focusItemOnOpenRef = React.useRef(focusItemOnOpen);\n const indexRef = React.useRef(selectedIndex ?? -1);\n const keyRef = React.useRef(null);\n const isPointerModalityRef = React.useRef(true);\n const onNavigate = useStableCallback(event => {\n onNavigateProp(indexRef.current === -1 ? null : indexRef.current, event);\n });\n const previousMountedRef = React.useRef(!!floatingElement);\n const previousOpenRef = React.useRef(open);\n const forceSyncFocusRef = React.useRef(false);\n const forceScrollIntoViewRef = React.useRef(false);\n const cancelQueuedFocusRef = React.useRef(null);\n const disabledIndicesRef = useValueAsRef(disabledIndices);\n const latestOpenRef = useValueAsRef(open);\n const selectedIndexRef = useValueAsRef(selectedIndex);\n const resetOnPointerLeaveRef = useValueAsRef(resetOnPointerLeave);\n const focusFrame = useAnimationFrame();\n const waitForListPopulatedFrame = useAnimationFrame();\n const focusItem = useStableCallback(() => {\n function runFocus(item) {\n if (virtual) {\n tree?.events.emit('virtualfocus', item);\n } else {\n cancelQueuedFocusRef.current = enqueueFocus(item, {\n sync: forceSyncFocusRef.current,\n preventScroll: true\n });\n }\n }\n const initialItem = listRef.current[indexRef.current];\n const forceScrollIntoView = forceScrollIntoViewRef.current;\n if (initialItem) {\n runFocus(initialItem);\n }\n const scheduler = forceSyncFocusRef.current ? callback => callback() : callback => focusFrame.request(callback);\n scheduler(() => {\n const waitedItem = listRef.current[indexRef.current] || initialItem;\n if (!waitedItem) {\n return;\n }\n if (!initialItem) {\n runFocus(waitedItem);\n }\n const shouldScrollIntoView =\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n item && (forceScrollIntoView || !isPointerModalityRef.current);\n if (shouldScrollIntoView) {\n // JSDOM doesn't support `.scrollIntoView()` but it's widely supported\n // by all browsers.\n waitedItem.scrollIntoView?.({\n block: 'nearest',\n inline: 'nearest'\n });\n }\n });\n });\n useIsoLayoutEffect(() => {\n dataRef.current.orientation = orientation;\n }, [dataRef, orientation]);\n\n // Sync `selectedIndex` to be the `activeIndex` upon opening the floating\n // element. Also, reset `activeIndex` upon closing the floating element.\n useIsoLayoutEffect(() => {\n if (!enabled) {\n return;\n }\n if (open && floatingElement) {\n indexRef.current = selectedIndex ?? -1;\n if (focusItemOnOpenRef.current && selectedIndex != null) {\n // Regardless of the pointer modality, we want to ensure the selected\n // item comes into view when the floating element is opened.\n forceScrollIntoViewRef.current = true;\n onNavigate();\n }\n } else if (previousMountedRef.current) {\n // Reset the active index when the list is no longer open and mounted (closing or\n // unmounting). `onNavigate` is a stable callback that always forwards to the latest\n // `onNavigate` prop.\n indexRef.current = -1;\n onNavigate();\n }\n }, [enabled, open, floatingElement, selectedIndex, onNavigate]);\n\n // Sync `activeIndex` to be the focused item while the floating element is\n // open.\n useIsoLayoutEffect(() => {\n if (!enabled) {\n return;\n }\n if (!open) {\n forceSyncFocusRef.current = false;\n return;\n }\n if (!floatingElement) {\n return;\n }\n if (activeIndex == null) {\n forceSyncFocusRef.current = false;\n if (selectedIndexRef.current != null) {\n return;\n }\n\n // Reset while the floating element was open (e.g. the list changed).\n if (previousMountedRef.current) {\n indexRef.current = -1;\n focusItem();\n }\n\n // Initial sync.\n if ((!previousOpenRef.current || !previousMountedRef.current) && focusItemOnOpenRef.current && (keyRef.current != null || focusItemOnOpenRef.current === true && keyRef.current == null)) {\n let runs = 0;\n const waitForListPopulated = () => {\n if (listRef.current[0] == null) {\n // Avoid letting the browser paint if possible on the first try,\n // otherwise use rAF. Don't try more than twice, since something\n // is wrong otherwise.\n if (runs < 2) {\n const scheduler = runs ? callback => waitForListPopulatedFrame.request(callback) : queueMicrotask;\n scheduler(waitForListPopulated);\n }\n runs += 1;\n } else {\n // Initially focus the first non-disabled item. `disabledIndices` is deliberately\n // omitted here so attribute-disabled items (`disabled`/`aria-disabled`) are skipped\n // on open even when the consumer passes an empty `disabledIndices` array. Passing it\n // would regress that behavior (see mui/base-ui#2604).\n indexRef.current = keyRef.current == null || isMainOrientationToEndKey(keyRef.current, orientation, rtl) || nested ? getMinListIndex(listRef) : getMaxListIndex(listRef);\n keyRef.current = null;\n onNavigate();\n }\n };\n waitForListPopulated();\n }\n } else if (!isIndexOutOfListBounds(listRef.current, activeIndex)) {\n indexRef.current = activeIndex;\n focusItem();\n forceScrollIntoViewRef.current = false;\n }\n }, [enabled, open, floatingElement, activeIndex, selectedIndexRef, nested, listRef, orientation, rtl, onNavigate, focusItem, waitForListPopulatedFrame]);\n\n // Ensure the parent floating element has focus when a nested child closes\n // to allow arrow key navigation to work after the pointer leaves the child.\n useIsoLayoutEffect(() => {\n if (!enabled || floatingElement || !tree || virtual || !previousMountedRef.current) {\n return;\n }\n const nodes = tree.nodesRef.current;\n const parent = nodes.find(node => node.id === parentId)?.context?.elements.floating;\n // `floatingElement` is null here (see the guard above), so resolve the owner document from an\n // in-DOM element for realm-safety (shadow DOM/iframes): the reference element, falling back to\n // the parent floating element when the reference is virtual (`domReferenceElement` is null).\n const activeEl = activeElement(ownerDocument(domReferenceElement ?? parent ?? null));\n const treeContainsActiveEl = nodes.some(node => node.context && contains(node.context.elements.floating, activeEl));\n if (parent && !treeContainsActiveEl && isPointerModalityRef.current) {\n parent.focus({\n preventScroll: true\n });\n }\n }, [enabled, floatingElement, domReferenceElement, tree, parentId, virtual]);\n useIsoLayoutEffect(() => {\n previousOpenRef.current = open;\n previousMountedRef.current = !!floatingElement;\n });\n useIsoLayoutEffect(() => {\n if (!open) {\n keyRef.current = null;\n focusItemOnOpenRef.current = focusItemOnOpen;\n }\n }, [open, focusItemOnOpen]);\n const hasActiveIndex = activeIndex != null;\n const syncCurrentTarget = useStableCallback(event => {\n if (!latestOpenRef.current) {\n return;\n }\n const index = listRef.current.indexOf(event.currentTarget);\n if (index !== -1 && (indexRef.current !== index || activeIndex !== index)) {\n indexRef.current = index;\n onNavigate(event);\n }\n });\n const getParentOrientation = useStableCallback(() => {\n return parentOrientation ?? tree?.nodesRef.current.find(node => node.id === parentId)?.context?.dataRef?.current.orientation;\n });\n const getMinEnabledIndex = useStableCallback(() => {\n return getMinListIndex(listRef, disabledIndicesRef.current);\n });\n const commonOnKeyDown = useStableCallback(event => {\n isPointerModalityRef.current = false;\n forceSyncFocusRef.current = true;\n\n // When composing a character, Chrome fires ArrowDown twice. Firefox/Safari\n // don't appear to suffer from this. `event.isComposing` is avoided due to\n // Safari not supporting it properly (although it's not needed in the first\n // place for Safari, just avoiding any possible issues).\n if (event.which === 229) {\n return;\n }\n\n // If the floating element is animating out, ignore navigation. Otherwise,\n // the `activeIndex` gets set to 0 despite not being open so the next time\n // the user ArrowDowns, the first item won't be focused.\n if (!latestOpenRef.current && event.currentTarget === floatingFocusElementRef.current) {\n return;\n }\n if (nested && isCrossOrientationCloseKey(event.key, orientation, rtl, isGrid)) {\n // If the nested list's close key is also the parent navigation key,\n // let the parent navigate. Otherwise, stop propagating the event.\n if (!isMainOrientationKey(event.key, getParentOrientation())) {\n stopEvent(event);\n }\n store.setOpen(false, createChangeEventDetails(REASONS.listNavigation, event.nativeEvent));\n if (isHTMLElement(domReferenceElement)) {\n if (virtual) {\n tree?.events.emit('virtualfocus', domReferenceElement);\n } else {\n domReferenceElement.focus();\n }\n }\n return;\n }\n const currentIndex = indexRef.current;\n const minIndex = getMinListIndex(listRef, disabledIndices);\n const maxIndex = getMaxListIndex(listRef, disabledIndices);\n if (!typeableComboboxReference) {\n if (event.key === 'Home') {\n stopEvent(event);\n indexRef.current = minIndex;\n onNavigate(event);\n }\n if (event.key === 'End') {\n stopEvent(event);\n indexRef.current = maxIndex;\n onNavigate(event);\n }\n }\n\n // Grid navigation is injected by grid-capable consumers so non-grid\n // consumers (menu, select) tree-shake the grid helpers out.\n if (navigateGrid != null) {\n const index = navigateGrid(event, indexRef.current, listRef, orientation, loopFocus, rtl, disabledIndices, minIndex, maxIndex);\n if (index != null) {\n indexRef.current = index;\n onNavigate(event);\n }\n if (orientation === 'both') {\n return;\n }\n }\n if (isMainOrientationKey(event.key, orientation)) {\n stopEvent(event);\n\n // Reset the index if no item is focused.\n if (open && !virtual && activeElement(event.currentTarget.ownerDocument) === event.currentTarget) {\n indexRef.current = isMainOrientationToEndKey(event.key, orientation, rtl) ? minIndex : maxIndex;\n onNavigate(event);\n return;\n }\n if (isMainOrientationToEndKey(event.key, orientation, rtl)) {\n if (loopFocus) {\n if (currentIndex >= maxIndex) {\n if (allowEscape && currentIndex !== listRef.current.length) {\n indexRef.current = -1;\n } else {\n // Give time for virtualizers to update the listRef.\n forceSyncFocusRef.current = false;\n indexRef.current = minIndex;\n }\n } else {\n indexRef.current = findNonDisabledListIndex(listRef.current, {\n startingIndex: currentIndex,\n disabledIndices\n });\n }\n } else {\n indexRef.current = Math.min(maxIndex, findNonDisabledListIndex(listRef.current, {\n startingIndex: currentIndex,\n disabledIndices\n }));\n }\n } else if (loopFocus) {\n if (currentIndex <= minIndex) {\n if (allowEscape && currentIndex !== -1) {\n indexRef.current = listRef.current.length;\n } else {\n // Give time for virtualizers to update the listRef.\n forceSyncFocusRef.current = false;\n indexRef.current = maxIndex;\n }\n } else {\n indexRef.current = findNonDisabledListIndex(listRef.current, {\n startingIndex: currentIndex,\n decrement: true,\n disabledIndices\n });\n }\n } else {\n indexRef.current = Math.max(minIndex, findNonDisabledListIndex(listRef.current, {\n startingIndex: currentIndex,\n decrement: true,\n disabledIndices\n }));\n }\n if (isIndexOutOfListBounds(listRef.current, indexRef.current)) {\n indexRef.current = -1;\n }\n onNavigate(event);\n }\n });\n const item = React.useMemo(() => {\n const itemProps = {\n onFocus(event) {\n forceSyncFocusRef.current = true;\n syncCurrentTarget(event);\n },\n onClick: ({\n currentTarget\n }) => currentTarget.focus({\n preventScroll: true\n }),\n // Safari\n onMouseMove(event) {\n if (isStationaryWebKitPointer(event)) {\n return;\n }\n forceSyncFocusRef.current = true;\n forceScrollIntoViewRef.current = false;\n if (focusItemOnHover) {\n syncCurrentTarget(event);\n }\n },\n onPointerLeave(event) {\n if (!latestOpenRef.current || !isPointerModalityRef.current || event.pointerType === 'touch') {\n return;\n }\n forceSyncFocusRef.current = true;\n const relatedTarget = event.relatedTarget;\n if (!focusItemOnHover || listRef.current.includes(relatedTarget)) {\n return;\n }\n if (!resetOnPointerLeaveRef.current) {\n return;\n }\n cancelQueuedFocusRef.current?.();\n cancelQueuedFocusRef.current = null;\n indexRef.current = -1;\n onNavigate(event);\n if (!virtual) {\n const floatingFocusEl = floatingFocusElementRef.current;\n const activeEl = activeElement(ownerDocument(floatingFocusEl));\n if (floatingFocusEl && contains(floatingFocusEl, activeEl)) {\n floatingFocusEl.focus({\n preventScroll: true\n });\n }\n }\n }\n };\n return itemProps;\n }, [syncCurrentTarget, latestOpenRef, floatingFocusElementRef, focusItemOnHover, listRef, onNavigate, resetOnPointerLeaveRef, virtual]);\n const ariaActiveDescendantProp = React.useMemo(() => {\n return virtual && open && hasActiveIndex && {\n 'aria-activedescendant': `${id}-${activeIndex}`\n };\n }, [virtual, open, hasActiveIndex, id, activeIndex]);\n const floating = React.useMemo(() => {\n return {\n 'aria-orientation': orientation === 'both' ? undefined : orientation,\n ...(!typeableComboboxReference ? ariaActiveDescendantProp : {}),\n onKeyDown(event) {\n // Close submenu on Shift+Tab\n if (event.key === 'Tab' && event.shiftKey && open && !virtual) {\n // If the event originated from within a nested element (e.g., a Dialog opened from\n // within the menu), don't close the menu. The nested element has its own focus\n // management and should handle the Tab key.\n const target = getTarget(event.nativeEvent);\n if (target && !contains(floatingFocusElementRef.current, target)) {\n return;\n }\n stopEvent(event);\n store.setOpen(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent));\n if (isHTMLElement(domReferenceElement)) {\n domReferenceElement.focus();\n }\n return;\n }\n commonOnKeyDown(event);\n },\n onPointerMove(event) {\n if (isStationaryWebKitPointer(event)) {\n return;\n }\n isPointerModalityRef.current = true;\n }\n };\n }, [ariaActiveDescendantProp, commonOnKeyDown, floatingFocusElementRef, orientation, typeableComboboxReference, store, open, virtual, domReferenceElement]);\n const trigger = React.useMemo(() => {\n function openOnNavigationKeyDown(event) {\n store.setOpen(true, createChangeEventDetails(REASONS.listNavigation, event.nativeEvent, event.currentTarget));\n }\n function checkVirtualMouse(event) {\n if (focusItemOnOpen === 'auto' && isVirtualClick(event.nativeEvent)) {\n focusItemOnOpenRef.current = !virtual;\n }\n }\n function checkVirtualPointer(event) {\n // `pointerdown` fires first, reset the state then perform the checks.\n focusItemOnOpenRef.current = focusItemOnOpen;\n if (focusItemOnOpen === 'auto' && isVirtualPointerEvent(event.nativeEvent)) {\n focusItemOnOpenRef.current = true;\n }\n }\n return {\n onKeyDown(event) {\n // non-reactive open state (to prevent re-creation of the handler)\n const currentOpen = store.select('open');\n isPointerModalityRef.current = false;\n const isArrowKey = event.key.startsWith('Arrow');\n const isParentCrossOpenKey = isCrossOrientationOpenKey(event.key, getParentOrientation(), rtl);\n const isMainKey = isMainOrientationKey(event.key, orientation);\n const isNavigationKey = (nested ? isParentCrossOpenKey : isMainKey) || event.key === 'Enter' || event.key.trim() === '';\n if (virtual && currentOpen) {\n return commonOnKeyDown(event);\n }\n\n // If a floating element should not open on arrow key down, avoid\n // setting `activeIndex` while it's closed.\n if (!currentOpen && !openOnArrowKeyDown && isArrowKey) {\n return undefined;\n }\n if (isNavigationKey) {\n const isParentMainKey = isMainOrientationKey(event.key, getParentOrientation());\n keyRef.current = nested && isParentMainKey ? null : event.key;\n }\n if (nested) {\n if (isParentCrossOpenKey) {\n stopEvent(event);\n if (currentOpen) {\n indexRef.current = getMinEnabledIndex();\n onNavigate(event);\n } else {\n openOnNavigationKeyDown(event);\n }\n }\n return undefined;\n }\n if (isMainKey) {\n if (selectedIndexRef.current != null) {\n indexRef.current = selectedIndexRef.current;\n }\n stopEvent(event);\n if (!currentOpen && openOnArrowKeyDown) {\n openOnNavigationKeyDown(event);\n } else {\n commonOnKeyDown(event);\n }\n if (currentOpen) {\n onNavigate(event);\n }\n }\n return undefined;\n },\n onFocus(event) {\n if (store.select('open') && !virtual) {\n indexRef.current = -1;\n onNavigate(event);\n }\n },\n onPointerDown: checkVirtualPointer,\n onPointerEnter: checkVirtualPointer,\n onMouseDown: checkVirtualMouse,\n onClick: checkVirtualMouse\n };\n }, [commonOnKeyDown, focusItemOnOpen, getMinEnabledIndex, nested, onNavigate, store, openOnArrowKeyDown, orientation, getParentOrientation, rtl, selectedIndexRef, virtual]);\n const reference = React.useMemo(() => {\n return {\n ...ariaActiveDescendantProp,\n ...trigger\n };\n }, [ariaActiveDescendantProp, trigger]);\n return React.useMemo(() => enabled ? {\n reference,\n floating,\n item,\n trigger\n } : {}, [enabled, reference, floating, trigger, item]);\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,IAAa,IAAS;AAKtB,SAAS,GAA0B,GAAO;CACxC,OAAOA,KAA0B,EAAM,cAAc,KAAK,EAAM,cAAc;AAChF;AACA,SAAS,EAAS,GAAa,GAAU,GAAY;CACnD,QAAQ,GAAR;EACE,KAAK,YACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,SACE,OAAO,KAAY;CACvB;AACF;AACA,SAAS,EAAqB,GAAK,GAAa;CAG9C,OAAO,EAAS,GAFC,MAAA,aAAoB,MAAA,aAClB,MAAA,eAAsB,MAAA,YACQ;AACnD;AACA,SAAS,EAA0B,GAAK,GAAa,GAAK;CAGxD,OAAO,EAAS,GAFC,MAAA,aACE,IAAM,MAAA,cAAqB,MAAA,YACG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,MACE,EAAiB,WAAW,SAC9B,EAAS,UAAU,EAAiB,UAEtC,EAAU,CAAK,GACX,CAAC,KAAe,IAClB,EAAwB,CAAK,IAE7B,EAAgB,CAAK,GAEnB,KACF,EAAW,CAAK;IAxBpB;GA4BF;GACA,QAAQ,GAAO;IACb,AAAI,EAAM,OAAO,MAAM,KAAK,CAAC,MAC3B,EAAS,UAAU,IACnB,EAAW,CAAK;GAEpB;GACA,eAAe;GACf,gBAAgB;GAChB,aAAa;GACb,SAAS;EACX;CACF,GAAG;EAAC;EAAiB;EAAiB;EAAoB;EAAQ;EAAY;EAAO;EAAoB;EAAa;EAAsB;EAAK;EAAkB;CAAO,CAAC,GACrK,KAAYD,EAAM,eACf;EACL,GAAG;EACH,GAAG;CACL,IACC,CAAC,GAA0B,CAAO,CAAC;CACtC,OAAOA,EAAM,cAAc,IAAU;EACnC;EACA;EACA;EACA;CACF,IAAI,CAAC,GAAG;EAAC;EAAS;EAAW;EAAU;EAAS;CAAI,CAAC;AACvD"}
|
|
1
|
+
{"version":3,"file":"index274.js","names":["React","useSyncExternalStore","React$1","import_shim","require_shim","usePopupHandleStore","subscribe","handle","NOOP","listener","getSnapshot"],"sources":["../../../node_modules/@base-ui/react/utils/popups/usePopupHandleStore.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { NOOP } from '@base-ui/utils/empty';\n/**\n * Reads the store currently exposed by a popup handle and subscribes to store-pointer changes.\n * Detached triggers use this to follow a handle as a root attaches or detaches: while no root is\n * attached, the handle exposes its fallback store; once a root attaches, subscribers re-render and\n * read from the live root store.\n *\n * Returns `undefined` when no handle is provided so callers can fall back to their root context.\n *\n * @param handle The popup handle to read from, or `undefined` when the trigger is not handle-bound.\n */\nexport function usePopupHandleStore(handle) {\n const subscribe = React.useCallback(listener => {\n if (handle === undefined) {\n return NOOP;\n }\n return handle.subscribeStore(listener);\n }, [handle]);\n const getSnapshot = React.useCallback(() => {\n return handle === undefined ? undefined : handle.store;\n }, [handle]);\n return useSyncExternalStore(subscribe, getSnapshot, () => handle?.serverStore);\n}"],"ignoreList":[0],"mappings":";;;;;;AAeA,SAAgBK,EAAoB,GAAQ;CAC1C,IAAMC,IAAYN,EAAM,aAAY,MAC9BO,MAAW,KAAA,IACNC,IAEFD,EAAO,eAAeE,CAAQ,GACpC,CAACF,CAAM,CAAC,GACLG,IAAcV,EAAM,kBACjBO,MAAW,KAAA,IAAY,KAAA,IAAYA,EAAO,OAChD,CAACA,CAAM,CAAC;CACX,QAAA,GAAON,EAAAA,qBAAAA,CAAqBK,GAAWI,SAAmBH,GAAQ,WAAW;AAC/E"}
|