@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/index263.js
CHANGED
|
@@ -1,40 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import * as
|
|
6
|
-
//#region ../../node_modules/@base-ui/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { isReactVersionAtLeast as e } from "./index187.js";
|
|
2
|
+
import { require_shim as t } from "./index258.js";
|
|
3
|
+
import { require_with_selector as n } from "./index261.js";
|
|
4
|
+
import { getInstance as r, register as i } from "./index262.js";
|
|
5
|
+
import * as a from "react";
|
|
6
|
+
//#region ../../node_modules/@base-ui/utils/store/useStore.mjs
|
|
7
|
+
var o = t(), s = n(), c = e(19) ? d : f;
|
|
8
|
+
function l(e, t, n, r, i) {
|
|
9
|
+
return c(e, t, n, r, i);
|
|
10
|
+
}
|
|
11
|
+
function u(e, t, n, r, i) {
|
|
12
|
+
let s = a.useCallback(() => t(e.getSnapshot(), n, r, i), [
|
|
13
|
+
e,
|
|
14
|
+
t,
|
|
15
|
+
n,
|
|
16
|
+
r,
|
|
17
|
+
i
|
|
18
|
+
]);
|
|
19
|
+
return (0, o.useSyncExternalStore)(e.subscribe, s, s);
|
|
20
|
+
}
|
|
21
|
+
i({
|
|
22
|
+
before(e) {
|
|
23
|
+
e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
|
|
24
|
+
let t = !1;
|
|
25
|
+
for (let n = 0; n < e.syncHooks.length; n += 1) {
|
|
26
|
+
let r = e.syncHooks[n], i = r.selector(r.store.state, r.a1, r.a2, r.a3);
|
|
27
|
+
Object.is(r.value, i) || (t = !0, r.value = i);
|
|
28
|
+
}
|
|
29
|
+
return t && (e.syncTick += 1), e.syncTick;
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
after(e) {
|
|
33
|
+
e.syncHooks.length > 0 && (e.didChangeStore && (e.didChangeStore = !1, e.subscribe = (t) => {
|
|
34
|
+
let n = /* @__PURE__ */ new Set();
|
|
35
|
+
for (let t of e.syncHooks) n.add(t.store);
|
|
36
|
+
let r = [];
|
|
37
|
+
for (let e of n) r.push(e.subscribe(t));
|
|
38
|
+
return () => {
|
|
39
|
+
for (let e of r) e();
|
|
40
|
+
};
|
|
41
|
+
}), (0, o.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
function d(e, t, n, i, a) {
|
|
45
|
+
let o = r();
|
|
46
|
+
if (!o) return u(e, t, n, i, a);
|
|
47
|
+
let s = o.syncIndex;
|
|
48
|
+
o.syncIndex += 1;
|
|
49
|
+
let c;
|
|
50
|
+
return o.didInitialize ? (c = o.syncHooks[s], (c.store !== e || c.selector !== t || !Object.is(c.a1, n) || !Object.is(c.a2, i) || !Object.is(c.a3, a)) && (c.store !== e && (o.didChangeStore = !0), c.store = e, c.selector = t, c.a1 = n, c.a2 = i, c.a3 = a, c.value = t(e.getSnapshot(), n, i, a))) : (c = {
|
|
51
|
+
store: e,
|
|
52
|
+
selector: t,
|
|
53
|
+
a1: n,
|
|
54
|
+
a2: i,
|
|
55
|
+
a3: a,
|
|
56
|
+
value: t(e.getSnapshot(), n, i, a)
|
|
57
|
+
}, o.syncHooks.push(c)), c.value;
|
|
58
|
+
}
|
|
59
|
+
function f(e, t, n, r, i) {
|
|
60
|
+
return (0, s.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
|
|
36
61
|
}
|
|
37
62
|
//#endregion
|
|
38
|
-
export {
|
|
63
|
+
export { l as useStore };
|
|
39
64
|
|
|
40
65
|
//# sourceMappingURL=index263.js.map
|
package/dist/index263.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index263.js","names":["React"],"sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index263.js","names":["React","useSyncExternalStore","useSyncExternalStoreWithSelector","React$1","import_shim","require_shim","import_with_selector","require_with_selector","useStoreImplementation","isReactVersionAtLeast","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","register","instance","didChange","i","hook","value","stores","unsubscribes","onStoreChange","unsubscribe","getInstance","index","state"],"sources":["../../../node_modules/@base-ui/utils/store/useStore.mjs"],"sourcesContent":["import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.mjs\";\nimport { register, getInstance } from \"../fastHooks.mjs\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (!Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3)\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.value = selector(store.getSnapshot(), a1, a2, a3);\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}"],"ignoreList":[0],"mappings":"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"}
|
package/dist/index264.js
CHANGED
|
@@ -1,53 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { useStore as e } from "./index263.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/utils/store/Store.mjs
|
|
3
|
+
var t = class {
|
|
4
|
+
static create(e) {
|
|
5
|
+
return new this(e);
|
|
6
|
+
}
|
|
7
|
+
constructor(e) {
|
|
8
|
+
this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
9
|
+
}
|
|
10
|
+
subscribe = (e) => (this.listeners.add(e), () => {
|
|
11
|
+
this.listeners.delete(e);
|
|
12
|
+
});
|
|
13
|
+
getSnapshot = () => this.state;
|
|
14
|
+
setState(e) {
|
|
15
|
+
if (this.state === e) return;
|
|
16
|
+
this.state = e, this.updateTick += 1;
|
|
17
|
+
let t = this.updateTick;
|
|
18
|
+
for (let n of this.listeners) {
|
|
19
|
+
if (t !== this.updateTick) return;
|
|
20
|
+
n(e);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
update(e) {
|
|
24
|
+
for (let t in e) if (!Object.is(this.state[t], e[t])) {
|
|
25
|
+
this.setState({
|
|
26
|
+
...this.state,
|
|
27
|
+
...e
|
|
12
28
|
});
|
|
13
|
-
return
|
|
14
|
-
t.cancel(e);
|
|
15
|
-
};
|
|
29
|
+
return;
|
|
16
30
|
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
]), e(() => {
|
|
23
|
-
if (!r || i) return;
|
|
24
|
-
let e = t.request(() => {
|
|
25
|
-
s(void 0);
|
|
26
|
-
});
|
|
27
|
-
return () => {
|
|
28
|
-
t.cancel(e);
|
|
29
|
-
};
|
|
30
|
-
}, [i, r]), e(() => {
|
|
31
|
-
if (!r || !i) return;
|
|
32
|
-
r && c && o !== "idle" && s("starting");
|
|
33
|
-
let e = t.request(() => {
|
|
34
|
-
s("idle");
|
|
31
|
+
}
|
|
32
|
+
set(e, t) {
|
|
33
|
+
Object.is(this.state[e], t) || this.setState({
|
|
34
|
+
...this.state,
|
|
35
|
+
[e]: t
|
|
35
36
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
mounted: c,
|
|
46
|
-
setMounted: l,
|
|
47
|
-
transitionStatus: o
|
|
48
|
-
};
|
|
49
|
-
}
|
|
37
|
+
}
|
|
38
|
+
notifyAll() {
|
|
39
|
+
let e = { ...this.state };
|
|
40
|
+
this.setState(e);
|
|
41
|
+
}
|
|
42
|
+
use(t, n, r, i) {
|
|
43
|
+
return e(this, t, n, r, i);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
50
46
|
//#endregion
|
|
51
|
-
export {
|
|
47
|
+
export { t as Store };
|
|
52
48
|
|
|
53
49
|
//# sourceMappingURL=index264.js.map
|
package/dist/index264.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index264.js","names":["
|
|
1
|
+
{"version":3,"file":"index264.js","names":["Store","state","fn","newState","currentTick","listener","key","changes","value","useStore","selector","a1","a2","a3"],"sources":["../../../node_modules/@base-ui/utils/store/Store.mjs"],"sourcesContent":["import { useStore } from \"./useStore.mjs\";\n/**\n * A data store implementation that allows subscribing to state changes and updating the state.\n * It uses an observer pattern to notify subscribers when the state changes.\n */\nexport class Store {\n /**\n * Creates a store with the given initial state, constructing the class it is called on.\n * Calling it on a generic base class (e.g. `ReactStore.create(...)`) constructs that\n * class but degrades the inferred instance type to `Store`; use `new` there instead.\n */\n static create(state) {\n return new this(state);\n }\n\n /**\n * The current state of the store.\n * This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.\n * To subscribe to state changes, use the {@link useState} method. The value returned by {@link useState} is updated after the component renders (similarly to React's useState).\n * The values can be used directly (to avoid subscribing to the store) in effects or event handlers.\n *\n * Do not modify properties in state directly. Instead, use the provided methods to ensure proper state management and listener notification.\n */\n\n // Internal state to handle recursive `setState()` calls\n\n constructor(state) {\n this.state = state;\n this.listeners = new Set();\n this.updateTick = 0;\n }\n\n /**\n * Registers a listener that will be called whenever the store's state changes.\n *\n * @param fn The listener function to be called on state changes.\n * @returns A function to unsubscribe the listener.\n */\n subscribe = fn => {\n this.listeners.add(fn);\n return () => {\n this.listeners.delete(fn);\n };\n };\n\n /**\n * Returns the current state of the store.\n */\n getSnapshot = () => {\n return this.state;\n };\n\n /**\n * Updates the entire store's state and notifies all registered listeners.\n *\n * @param newState The new state to set for the store.\n */\n setState(newState) {\n if (this.state === newState) {\n return;\n }\n this.state = newState;\n this.updateTick += 1;\n const currentTick = this.updateTick;\n for (const listener of this.listeners) {\n if (currentTick !== this.updateTick) {\n // If the tick has changed, a recursive `setState` call has been made,\n // and it has already notified all listeners.\n return;\n }\n listener(newState);\n }\n }\n\n /**\n * Merges the provided changes into the current state and notifies listeners if there are changes.\n * Each value must match its state key. Pass an exact known subset rather than a broad\n * `Partial<State>`, which may contain `undefined` for required state fields.\n *\n * @param changes An object containing the changes to apply to the current state.\n */\n update(changes) {\n for (const key in changes) {\n if (!Object.is(this.state[key], changes[key])) {\n this.setState({\n ...this.state,\n ...changes\n });\n return;\n }\n }\n }\n\n /**\n * Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.\n *\n * @param key The key in the store's state to update.\n * @param value The new value to set for the specified key.\n */\n set(key, value) {\n if (!Object.is(this.state[key], value)) {\n this.setState({\n ...this.state,\n [key]: value\n });\n }\n }\n\n /**\n * Gives the state a new reference and updates all registered listeners.\n */\n notifyAll() {\n const newState = {\n ...this.state\n };\n this.setState(newState);\n }\n use(selector, a1, a2, a3) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStore(this, selector, a1, a2, a3);\n }\n}"],"ignoreList":[0],"mappings":";;AAKA,IAAaA,IAAb,MAAmB;CAMjB,OAAO,OAAO,GAAO;EACnB,OAAO,IAAI,KAAKC,CAAK;CACvB;CAaA,YAAY,GAAO;EAGjB,AAFA,KAAK,QAAQA,GACb,KAAK,4BAAY,IAAI,IAAI,GACzB,KAAK,aAAa;CACpB;CAQA,aAAY,OACV,KAAK,UAAU,IAAIC,CAAE,SACR;EACX,KAAK,UAAU,OAAOA,CAAE;CAC1B;CAMF,oBACS,KAAK;CAQd,SAAS,GAAU;EACjB,IAAI,KAAK,UAAUC,GACjB;EAGF,AADA,KAAK,QAAQA,GACb,KAAK,cAAc;EACnB,IAAMC,IAAc,KAAK;EACzB,KAAK,IAAMC,KAAY,KAAK,WAAW;GACrC,IAAID,MAAgB,KAAK,YAGvB;GAEF,EAASD,CAAQ;EACnB;CACF;CASA,OAAO,GAAS;EACd,KAAK,IAAMG,KAAOC,GAChB,IAAI,CAAC,OAAO,GAAG,KAAK,MAAMD,IAAMC,EAAQD,EAAI,GAAG;GAC7C,KAAK,SAAS;IACZ,GAAG,KAAK;IACR,GAAGC;GACL,CAAC;GACD;EACF;CAEJ;CAQA,IAAI,GAAK,GAAO;EACd,AAAK,OAAO,GAAG,KAAK,MAAMD,IAAME,CAAK,KACnC,KAAK,SAAS;GACZ,GAAG,KAAK;IACPF,IAAME;EACT,CAAC;CAEL;CAKA,YAAY;EACV,IAAML,IAAW,EACf,GAAG,KAAK,MACV;EACA,KAAK,SAASA,CAAQ;CACxB;CACA,IAAI,GAAU,GAAI,GAAI,GAAI;EAExB,OAAOM,EAAS,MAAMC,GAAUC,GAAIC,GAAIC,CAAE;CAC5C;AACF"}
|
package/dist/index265.js
CHANGED
|
@@ -1,54 +1,100 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
e();
|
|
18
|
-
|
|
2
|
+
import { NOOP as e } from "./index192.js";
|
|
3
|
+
import { useStableCallback as t } from "./index206.js";
|
|
4
|
+
import { useIsoLayoutEffect as n } from "./index208.js";
|
|
5
|
+
import { useStore as r } from "./index263.js";
|
|
6
|
+
import { Store as i } from "./index264.js";
|
|
7
|
+
import * as a from "react";
|
|
8
|
+
//#region ../../node_modules/@base-ui/utils/store/ReactStore.mjs
|
|
9
|
+
var o = class extends i {
|
|
10
|
+
constructor(e, t = {}, n) {
|
|
11
|
+
super(e), this.context = t, this.selectors = n;
|
|
12
|
+
}
|
|
13
|
+
useSyncedValue(e, t) {
|
|
14
|
+
a.useDebugValue(e);
|
|
15
|
+
let r = this;
|
|
16
|
+
n(() => {
|
|
17
|
+
r.state[e] !== t && r.set(e, t);
|
|
18
|
+
}, [
|
|
19
|
+
r,
|
|
20
|
+
e,
|
|
21
|
+
t
|
|
22
|
+
]);
|
|
23
|
+
}
|
|
24
|
+
useSyncedValueWithCleanup(e, t) {
|
|
25
|
+
let r = this;
|
|
26
|
+
n(() => (r.state[e] !== t && r.set(e, t), () => {
|
|
27
|
+
r.set(e, void 0);
|
|
28
|
+
}), [
|
|
29
|
+
r,
|
|
30
|
+
e,
|
|
31
|
+
t
|
|
32
|
+
]);
|
|
33
|
+
}
|
|
34
|
+
useSyncedValues(e) {
|
|
35
|
+
let t = this;
|
|
36
|
+
if (process.env.NODE_ENV !== "production") {
|
|
37
|
+
a.useDebugValue(e, (e) => Object.keys(e));
|
|
38
|
+
let t = a.useRef(Object.keys(e)).current, n = Object.keys(e);
|
|
39
|
+
(t.length !== n.length || t.some((e, t) => e !== n[t])) && console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
|
|
19
40
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
let r = Object.values(e);
|
|
42
|
+
n(() => {
|
|
43
|
+
t.update(e);
|
|
44
|
+
}, [t, ...r]);
|
|
45
|
+
}
|
|
46
|
+
useControlledProp(e, t) {
|
|
47
|
+
a.useDebugValue(e);
|
|
48
|
+
let r = this, i = t !== void 0;
|
|
49
|
+
if (n(() => {
|
|
50
|
+
i && !Object.is(r.state[e], t) && r.setState({
|
|
51
|
+
...r.state,
|
|
52
|
+
[e]: t
|
|
31
53
|
});
|
|
54
|
+
}, [
|
|
55
|
+
r,
|
|
56
|
+
e,
|
|
57
|
+
t,
|
|
58
|
+
i
|
|
59
|
+
]), process.env.NODE_ENV !== "production") {
|
|
60
|
+
let t = this.controlledValues ??= /* @__PURE__ */ new Map();
|
|
61
|
+
t.has(e) || t.set(e, i);
|
|
62
|
+
let n = t.get(e);
|
|
63
|
+
n !== void 0 && n !== i && console.error(`A component is changing the ${i ? "" : "un"}controlled state of ${e.toString()} to be ${i ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
|
|
32
64
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
65
|
+
}
|
|
66
|
+
select(e, t, n, r) {
|
|
67
|
+
let i = this.selectors[e];
|
|
68
|
+
return i(this.state, t, n, r);
|
|
69
|
+
}
|
|
70
|
+
useState(e, t, n, i) {
|
|
71
|
+
return a.useDebugValue(e), r(this, this.selectors[e], t, n, i);
|
|
72
|
+
}
|
|
73
|
+
useContextCallback(n, r) {
|
|
74
|
+
a.useDebugValue(n);
|
|
75
|
+
let i = t(r ?? e);
|
|
76
|
+
this.context[n] = i;
|
|
77
|
+
}
|
|
78
|
+
useStateSetter(e) {
|
|
79
|
+
let t = a.useRef(void 0);
|
|
80
|
+
return t.current === void 0 && (t.current = (t) => {
|
|
81
|
+
this.set(e, t);
|
|
82
|
+
}), t.current;
|
|
83
|
+
}
|
|
84
|
+
observe(e, t) {
|
|
85
|
+
let n;
|
|
86
|
+
n = typeof e == "function" ? e : this.selectors[e];
|
|
87
|
+
let r = n(this.state);
|
|
88
|
+
return t(r, r, this), this.subscribe((e) => {
|
|
89
|
+
let i = n(e);
|
|
90
|
+
if (!Object.is(r, i)) {
|
|
91
|
+
let e = r;
|
|
92
|
+
r = i, t(i, e, this);
|
|
38
93
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
n.observe(c, {
|
|
43
|
-
attributes: !0,
|
|
44
|
-
attributeFilter: [e]
|
|
45
|
-
}), t?.addEventListener("abort", () => n.disconnect(), { once: !0 });
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
o.request(u);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
};
|
|
51
97
|
//#endregion
|
|
52
|
-
export {
|
|
98
|
+
export { o as ReactStore };
|
|
53
99
|
|
|
54
100
|
//# sourceMappingURL=index265.js.map
|
package/dist/index265.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index265.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/useAnimationsFinished.mjs"],"sourcesContent":["'use client';\n\nimport * as ReactDOM from 'react-dom';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { resolveRef } from \"../utils/resolveRef.mjs\";\n\n/**\n * Executes a function once all animations have finished on the provided element.\n * If an animation is canceled, waits for any replacement animations before executing.\n * @param elementOrRef - The element to watch for animations.\n * @param waitForStartingStyleRemoved - Whether to wait for [data-starting-style] to be removed before checking for animations.\n * @returns A function that takes a callback to execute once all animations have finished, and an optional AbortSignal to abort the callback\n */\nexport function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false) {\n const frame = useAnimationFrame();\n return useStableCallback((fnToExecute,\n /**\n * An optional [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) that\n * can be used to abort `fnToExecute` before all the animations have finished.\n * @default null\n */\n signal = null) => {\n frame.cancel();\n const element = resolveRef(elementOrRef);\n if (element == null) {\n return;\n }\n const resolvedElement = element;\n const done = () => {\n // Synchronously flush the unmounting of the component so that the browser doesn't\n // paint: https://github.com/mui/base-ui/issues/979\n ReactDOM.flushSync(fnToExecute);\n };\n if (typeof resolvedElement.getAnimations !== 'function' || globalThis.BASE_UI_ANIMATIONS_DISABLED) {\n fnToExecute();\n return;\n }\n function exec() {\n Promise.all(resolvedElement.getAnimations().map(animation => animation.finished)).then(() => {\n if (!signal?.aborted) {\n done();\n }\n }, () => {\n if (signal?.aborted) {\n return;\n }\n const currentAnimations = resolvedElement.getAnimations();\n if (currentAnimations.some(animation => animation.pending || animation.playState !== 'finished')) {\n // Sometimes animations can be aborted because a property they depend on changes while the animation plays.\n // In such cases, we need to re-check if any new animations have started.\n exec();\n return;\n }\n done();\n });\n }\n if (waitForStartingStyleRemoved) {\n const startingStyleAttribute = 'data-starting-style';\n\n // If `[data-starting-style]` isn't present, fall back to waiting one more frame\n // to give \"open\" animations a chance to be registered.\n if (!resolvedElement.hasAttribute(startingStyleAttribute)) {\n frame.request(exec);\n return;\n }\n\n // Wait for `[data-starting-style]` to have been removed.\n const attributeObserver = new MutationObserver(() => {\n if (!resolvedElement.hasAttribute(startingStyleAttribute)) {\n attributeObserver.disconnect();\n exec();\n }\n });\n attributeObserver.observe(resolvedElement, {\n attributes: true,\n attributeFilter: [startingStyleAttribute]\n });\n signal?.addEventListener('abort', () => attributeObserver.disconnect(), {\n once: true\n });\n return;\n }\n frame.request(exec);\n });\n}"],"x_google_ignoreList":[0],"mappings":";;;;;;AAcA,SAAgB,EAAsB,GAAc,IAA8B,IAAO;CACvF,IAAM,IAAQ,EAAkB;CAChC,OAAO,GAAmB,GAM1B,IAAS,SAAS;EAChB,EAAM,OAAO;EACb,IAAM,IAAU,EAAW,CAAY;EACvC,IAAI,KAAW,MACb;EAEF,IAAM,IAAkB,GAClB,UAAa;GAGjB,EAAS,UAAU,CAAW;EAChC;EACA,IAAI,OAAO,EAAgB,iBAAkB,cAAc,WAAW,6BAA6B;GACjG,EAAY;GACZ;EACF;EACA,SAAS,IAAO;GACd,QAAQ,IAAI,EAAgB,cAAc,CAAC,CAAC,KAAI,MAAa,EAAU,QAAQ,CAAC,CAAC,CAAC,WAAW;IAC3F,AAAK,GAAQ,WACX,EAAK;GAET,SAAS;IACH,QAAQ,SAIZ;SAD0B,EAAgB,cACtB,CAAC,CAAC,MAAK,MAAa,EAAU,WAAW,EAAU,cAAc,UAAU,GAAG;MAGhG,EAAK;MACL;KACF;KACA,EAAK;IADL;GAEF,CAAC;EACH;EACA,IAAI,GAA6B;GAC/B,IAAM,IAAyB;GAI/B,IAAI,CAAC,EAAgB,aAAa,CAAsB,GAAG;IACzD,EAAM,QAAQ,CAAI;IAClB;GACF;GAGA,IAAM,IAAoB,IAAI,uBAAuB;IACnD,AAAK,EAAgB,aAAa,CAAsB,MACtD,EAAkB,WAAW,GAC7B,EAAK;GAET,CAAC;GAKD,AAJA,EAAkB,QAAQ,GAAiB;IACzC,YAAY;IACZ,iBAAiB,CAAC,CAAsB;GAC1C,CAAC,GACD,GAAQ,iBAAiB,eAAe,EAAkB,WAAW,GAAG,EACtE,MAAM,GACR,CAAC;GACD;EACF;EACA,EAAM,QAAQ,CAAI;CACpB,CAAC;AACH"}
|
|
1
|
+
{"version":3,"file":"index265.js","names":["React","React$1","ReactStore","Store","state","context","selectors","key","store","value","statePart","p","keys","nextKeys","index","dependencies","isControlled","controlled","useIsoLayoutEffect","cache","previouslyControlled","selector","a1","a2","a3","useStore","stableFunction","useStableCallback","fn","NOOP","ref","selectFn","prevValue","listener","nextValue","nextState","oldValue"],"sources":["../../../node_modules/@base-ui/utils/store/ReactStore.mjs"],"sourcesContent":["/* False positives - ESLint thinks we're calling a hook from a class component. */\n/* eslint-disable react-hooks/rules-of-hooks */\n'use client';\n\nimport * as React from 'react';\nimport { Store } from \"./Store.mjs\";\nimport { useStore } from \"./useStore.mjs\";\nimport { useStableCallback } from \"../useStableCallback.mjs\";\nimport { useIsoLayoutEffect } from \"../useIsoLayoutEffect.mjs\";\nimport { NOOP } from \"../empty.mjs\";\n\n/**\n * A Store that supports controlled state keys, non-reactive values and provides utility methods for React.\n */\nexport class ReactStore extends Store {\n /**\n * Creates a new ReactStore instance.\n *\n * @param state Initial state of the store.\n * @param context Non-reactive context values.\n * @param selectors Optional selectors for use with `useState`.\n */\n constructor(state, context = {}, selectors) {\n super(state);\n this.context = context;\n this.selectors = selectors;\n }\n\n /**\n * Non-reactive values such as refs, callbacks, etc.\n */\n\n /**\n * Synchronizes a single external value into the store.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValue(key, value) {\n React.useDebugValue(key);\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes a single external value into the store and\n * cleans it up (sets to `undefined`) on unmount.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValueWithCleanup(key, value) {\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n return () => {\n store.set(key, undefined);\n };\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes multiple external values into the store.\n * Each value must match its state key. Pass an exact known subset rather than a broad\n * `Partial<State>`, which may contain `undefined` for required state fields.\n *\n * Note that the while the values in `state` are updated immediately, the values returned\n * by `useState` are updated before the next render (similarly to React's `useState`).\n *\n * @param statePart An exact subset of state fields to synchronize. Unknown keys are not accepted.\n */\n useSyncedValues(statePart) {\n // eslint-disable-next-line consistent-this\n const store = this;\n if (process.env.NODE_ENV !== 'production') {\n // Check that an object with the same shape is passed on every render\n React.useDebugValue(statePart, p => Object.keys(p));\n const keys = React.useRef(Object.keys(statePart)).current;\n const nextKeys = Object.keys(statePart);\n if (keys.length !== nextKeys.length || keys.some((key, index) => key !== nextKeys[index])) {\n console.error('ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.');\n }\n }\n const dependencies = Object.values(statePart);\n useIsoLayoutEffect(() => {\n store.update(statePart);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [store, ...dependencies]);\n }\n\n /**\n * Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`\n * is non-undefined, the store's state at `key` is updated to match `controlled`.\n */\n useControlledProp(key, controlled) {\n React.useDebugValue(key);\n // eslint-disable-next-line consistent-this\n const store = this;\n const isControlled = controlled !== undefined;\n useIsoLayoutEffect(() => {\n if (isControlled && !Object.is(store.state[key], controlled)) {\n // Set the internal state to match the controlled value.\n store.setState({\n ...store.state,\n [key]: controlled\n });\n }\n }, [store, key, controlled, isControlled]);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n const cache = this.controlledValues ??= new Map();\n if (!cache.has(key)) {\n cache.set(key, isControlled);\n }\n const previouslyControlled = cache.get(key);\n if (previouslyControlled !== undefined && previouslyControlled !== isControlled) {\n console.error(`A component is changing the ${isControlled ? '' : 'un'}controlled state of ${key.toString()} to be ${isControlled ? 'un' : ''}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);\n }\n }\n }\n\n /** Gets the current value from the store using a selector with the provided key.\n *\n * @param key Key of the selector to use.\n */\n\n select(key, a1, a2, a3) {\n const selector = this.selectors[key];\n return selector(this.state, a1, a2, a3);\n }\n\n /**\n * Returns a value from the store's state using a selector function.\n * Used to subscribe to specific parts of the state.\n * This methods causes a rerender whenever the selected state changes.\n *\n * @param key Key of the selector to use.\n */\n\n useState(key, a1, a2, a3) {\n React.useDebugValue(key);\n return useStore(this, this.selectors[key], a1, a2, a3);\n }\n\n /**\n * Wraps a function with `useStableCallback` to ensure it has a stable reference\n * and assigns it to the context.\n *\n * @param key Key of the event callback. Must be a function in the context.\n * @param fn Function to assign.\n */\n useContextCallback(key, fn) {\n React.useDebugValue(key);\n const stableFunction = useStableCallback(fn ?? NOOP);\n this.context[key] = stableFunction;\n }\n\n /**\n * Returns a stable setter function for a specific key in the store's state.\n * It's commonly used to pass as a ref callback to React elements.\n *\n * @param key Key of the state to set.\n */\n useStateSetter(key) {\n const ref = React.useRef(undefined);\n if (ref.current === undefined) {\n ref.current = value => {\n this.set(key, value);\n };\n }\n return ref.current;\n }\n\n /**\n * Observes changes derived from the store's selectors and calls the listener when the selected value changes.\n *\n * @param key Key of the selector to observe.\n * @param listener Listener function called when the selector result changes.\n */\n\n observe(selector, listener) {\n let selectFn;\n if (typeof selector === 'function') {\n selectFn = selector;\n } else {\n selectFn = this.selectors[selector];\n }\n let prevValue = selectFn(this.state);\n listener(prevValue, prevValue, this);\n return this.subscribe(nextState => {\n const nextValue = selectFn(nextState);\n if (!Object.is(prevValue, nextValue)) {\n const oldValue = prevValue;\n prevValue = nextValue;\n listener(nextValue, oldValue, this);\n }\n });\n }\n}"],"ignoreList":[0],"mappings":"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"}
|
package/dist/index266.js
CHANGED
|
@@ -1,24 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { isClickLikeEvent as e } from "./index227.js";
|
|
2
|
+
import { createEventEmitter as t } from "./index246.js";
|
|
3
|
+
import { ReactStore as n } from "./index265.js";
|
|
4
|
+
//#region ../../node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs
|
|
5
|
+
var r = {
|
|
6
|
+
open: (e) => e.open,
|
|
7
|
+
transitionStatus: (e) => e.transitionStatus,
|
|
8
|
+
domReferenceElement: (e) => e.domReferenceElement,
|
|
9
|
+
referenceElement: (e) => e.positionReference ?? e.referenceElement,
|
|
10
|
+
floatingElement: (e) => e.floatingElement,
|
|
11
|
+
floatingId: (e) => e.floatingId
|
|
12
|
+
}, i = class extends n {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
let { syncOnly: n, nested: i, onOpenChange: a, triggerElements: o, ...s } = e;
|
|
15
|
+
super({
|
|
16
|
+
...s,
|
|
17
|
+
positionReference: s.referenceElement,
|
|
18
|
+
domReferenceElement: s.referenceElement
|
|
19
|
+
}, {
|
|
20
|
+
onOpenChange: a,
|
|
21
|
+
dataRef: { current: {} },
|
|
22
|
+
events: t(),
|
|
23
|
+
nested: i,
|
|
24
|
+
triggerElements: o
|
|
25
|
+
}, r), this.syncOnly = n;
|
|
26
|
+
}
|
|
27
|
+
syncOpenEvent = (t, n) => {
|
|
28
|
+
(!t || !this.state.open || n != null && e(n)) && (this.context.dataRef.current.openEvent = t ? n : void 0);
|
|
29
|
+
};
|
|
30
|
+
dispatchOpenChange = (e, t) => {
|
|
31
|
+
this.syncOpenEvent(e, t.event);
|
|
32
|
+
let n = {
|
|
33
|
+
open: e,
|
|
34
|
+
reason: t.reason,
|
|
35
|
+
nativeEvent: t.event,
|
|
36
|
+
nested: this.context.nested,
|
|
37
|
+
triggerElement: t.trigger
|
|
13
38
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
39
|
+
this.context.events.emit("openchange", n);
|
|
40
|
+
};
|
|
41
|
+
setOpen = (e, t) => {
|
|
42
|
+
if (this.syncOnly) {
|
|
43
|
+
this.context.onOpenChange?.(e, t);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
this.dispatchOpenChange(e, t), this.context.onOpenChange?.(e, t);
|
|
47
|
+
};
|
|
48
|
+
};
|
|
21
49
|
//#endregion
|
|
22
|
-
export {
|
|
50
|
+
export { i as FloatingRootStore };
|
|
23
51
|
|
|
24
52
|
//# sourceMappingURL=index266.js.map
|
package/dist/index266.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index266.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index266.js","names":["selectors","state","FloatingRootStore","ReactStore","initialState","options","createEventEmitter","syncOnly","newOpen","event","isClickLikeEvent","eventDetails","details"],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs"],"sourcesContent":["import { ReactStore } from '@base-ui/utils/store';\nimport { createEventEmitter } from \"../utils/createEventEmitter.mjs\";\nimport { isClickLikeEvent } from \"../utils.mjs\";\nconst selectors = {\n open: state => state.open,\n transitionStatus: state => state.transitionStatus,\n domReferenceElement: state => state.domReferenceElement,\n referenceElement: state => state.positionReference ?? state.referenceElement,\n floatingElement: state => state.floatingElement,\n floatingId: state => state.floatingId\n};\nexport class FloatingRootStore extends ReactStore {\n constructor(options) {\n const {\n syncOnly,\n nested,\n onOpenChange,\n triggerElements,\n ...initialState\n } = options;\n super({\n ...initialState,\n positionReference: initialState.referenceElement,\n domReferenceElement: initialState.referenceElement\n }, {\n onOpenChange,\n dataRef: {\n current: {}\n },\n events: createEventEmitter(),\n nested,\n triggerElements\n }, selectors);\n this.syncOnly = syncOnly;\n }\n\n /**\n * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.\n */\n syncOpenEvent = (newOpen, event) => {\n if (!newOpen || !this.state.open ||\n // Prevent a pending hover-open from overwriting a click-open event, while allowing\n // click events to upgrade a hover-open.\n event != null && isClickLikeEvent(event)) {\n this.context.dataRef.current.openEvent = newOpen ? event : undefined;\n }\n };\n\n /**\n * Runs the root-owned side effects for an open state change.\n */\n dispatchOpenChange = (newOpen, eventDetails) => {\n this.syncOpenEvent(newOpen, eventDetails.event);\n const details = {\n open: newOpen,\n reason: eventDetails.reason,\n nativeEvent: eventDetails.event,\n nested: this.context.nested,\n triggerElement: eventDetails.trigger\n };\n this.context.events.emit('openchange', details);\n };\n\n /**\n * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.\n *\n * @param newOpen The new open state.\n * @param eventDetails Details about the event that triggered the open state change.\n */\n setOpen = (newOpen, eventDetails) => {\n if (this.syncOnly) {\n this.context.onOpenChange?.(newOpen, eventDetails);\n return;\n }\n this.dispatchOpenChange(newOpen, eventDetails);\n this.context.onOpenChange?.(newOpen, eventDetails);\n };\n}"],"ignoreList":[0],"mappings":";;;;AAGA,IAAMA,IAAY;CAChB,OAAM,MAASC,EAAM;CACrB,mBAAkB,MAASA,EAAM;CACjC,sBAAqB,MAASA,EAAM;CACpC,mBAAkB,MAASA,EAAM,qBAAqBA,EAAM;CAC5D,kBAAiB,MAASA,EAAM;CAChC,aAAY,MAASA,EAAM;AAC7B,GACaC,IAAb,cAAuCC,EAAW;CAChD,YAAY,GAAS;EACnB,IAAM,EACJ,aACA,WACA,iBACA,oBACA,GAAGC,MACDC;EAcJ,AAbA,MAAM;GACJ,GAAGD;GACH,mBAAmBA,EAAa;GAChC,qBAAqBA,EAAa;EACpC,GAAG;GACD;GACA,SAAS,EACP,SAAS,CAAC,EACZ;GACA,QAAQE,EAAmB;GAC3B;GACA;EACF,GAAGN,CAAS,GACZ,KAAK,WAAWO;CAClB;CAKA,iBAAiB,GAAS,MAAU;EAClC,CAAI,CAACC,KAAW,CAAC,KAAK,MAAM,QAG5BC,KAAS,QAAQC,EAAiBD,CAAK,OACrC,KAAK,QAAQ,QAAQ,QAAQ,YAAYD,IAAUC,IAAQ,KAAA;CAE/D;CAKA,sBAAsB,GAAS,MAAiB;EAC9C,KAAK,cAAcD,GAASG,EAAa,KAAK;EAC9C,IAAMC,IAAU;GACd,MAAMJ;GACN,QAAQG,EAAa;GACrB,aAAaA,EAAa;GAC1B,QAAQ,KAAK,QAAQ;GACrB,gBAAgBA,EAAa;EAC/B;EACA,KAAK,QAAQ,OAAO,KAAK,cAAcC,CAAO;CAChD;CAQA,WAAW,GAAS,MAAiB;EACnC,IAAI,KAAK,UAAU;GACjB,KAAK,QAAQ,eAAeJ,GAASG,CAAY;GACjD;EACF;EAEA,AADA,KAAK,mBAAmBH,GAASG,CAAY,GAC7C,KAAK,QAAQ,eAAeH,GAASG,CAAY;CACnD;AACF"}
|