@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/index283.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index283.js","names":["ownerWindow","platform.engine.webkit","platform.os.ios"],"sources":["../../../node_modules/@base-ui/utils/useScrollLock.mjs"],"sourcesContent":["'use client';\n\nimport { isOverflowElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from \"./addEventListener.mjs\";\nimport { platform } from \"./platform/index.mjs\";\nimport { ownerDocument, ownerWindow } from \"./owner.mjs\";\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.mjs\";\nimport { Timeout } from \"./useTimeout.mjs\";\nimport { AnimationFrame } from \"./useAnimationFrame.mjs\";\nlet originalHtmlStyles = {};\nlet originalBodyStyles = {};\nlet originalHtmlScrollBehavior = '';\n\n// The viewport's overflow comes from <html> when it establishes its own scroll container, and\n// propagates from <body> otherwise. An `overflow` style on the other element doesn't lock the page.\nfunction getViewportScroller(html, body) {\n return isOverflowElement(html) ? html : body;\n}\nfunction isPageScrollLocked(win, html, body) {\n return /hidden|clip/.test(win.getComputedStyle(getViewportScroller(html, body)).overflowY);\n}\nfunction hasInsetScrollbars(referenceElement) {\n if (typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const win = ownerWindow(doc);\n return win.innerWidth - doc.documentElement.clientWidth > 0;\n}\nfunction supportsStableScrollbarGutter(referenceElement) {\n const supported = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('scrollbar-gutter', 'stable');\n if (!supported || typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const scrollContainer = getViewportScroller(html, body);\n const originalScrollContainerOverflowY = scrollContainer.style.overflowY;\n const originalHtmlStyleGutter = html.style.scrollbarGutter;\n html.style.scrollbarGutter = 'stable';\n scrollContainer.style.overflowY = 'scroll';\n const before = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = 'hidden';\n const after = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = originalScrollContainerOverflowY;\n html.style.scrollbarGutter = originalHtmlStyleGutter;\n return before === after;\n}\nfunction preventScrollOverlayScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n\n // If an `overflow` style is present on <html>, we need to lock it, because a lock on <body>\n // won't have any effect.\n // But if <body> has an `overflow` style (like `overflow-x: hidden`), we need to lock it\n // instead, as sticky elements shift otherwise.\n const elementToLock = getViewportScroller(html, body);\n const originalElementToLockStyles = {\n overflowY: elementToLock.style.overflowY,\n overflowX: elementToLock.style.overflowX\n };\n Object.assign(elementToLock.style, {\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n return () => {\n Object.assign(elementToLock.style, originalElementToLockStyles);\n };\n}\nfunction preventScrollInsetScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const win = ownerWindow(html);\n let scrollTop = 0;\n let scrollLeft = 0;\n let updateGutterOnly = false;\n const resizeFrame = AnimationFrame.create();\n\n // Pinch-zoom in Safari causes a shift. Just don't lock scroll if there's any pinch-zoom.\n if (platform.engine.webkit && (win.visualViewport?.scale ?? 1) !== 1) {\n return () => {};\n }\n function lockScroll() {\n /* DOM reads: */\n\n const htmlStyles = win.getComputedStyle(html);\n const bodyStyles = win.getComputedStyle(body);\n const htmlScrollbarGutterValue = htmlStyles.scrollbarGutter || '';\n const hasBothEdges = htmlScrollbarGutterValue.includes('both-edges');\n const scrollbarGutterValue = hasBothEdges ? 'stable both-edges' : 'stable';\n scrollTop = html.scrollTop;\n scrollLeft = html.scrollLeft;\n originalHtmlStyles = {\n scrollbarGutter: html.style.scrollbarGutter,\n overflowY: html.style.overflowY,\n overflowX: html.style.overflowX\n };\n originalHtmlScrollBehavior = html.style.scrollBehavior;\n originalBodyStyles = {\n position: body.style.position,\n height: body.style.height,\n width: body.style.width,\n boxSizing: body.style.boxSizing,\n overflowY: body.style.overflowY,\n overflowX: body.style.overflowX,\n scrollBehavior: body.style.scrollBehavior\n };\n const isScrollableY = html.scrollHeight > html.clientHeight;\n const isScrollableX = html.scrollWidth > html.clientWidth;\n const hasConstantOverflowY = htmlStyles.overflowY === 'scroll' || bodyStyles.overflowY === 'scroll';\n const hasConstantOverflowX = htmlStyles.overflowX === 'scroll' || bodyStyles.overflowX === 'scroll';\n\n // Values can be negative in Firefox\n const scrollbarWidth = Math.max(0, win.innerWidth - body.clientWidth);\n const scrollbarHeight = Math.max(0, win.innerHeight - body.clientHeight);\n\n // Avoid shift due to the default <body> margin. This does cause elements to be clipped\n // with whitespace. Warn if <body> has margins?\n const marginY = parseFloat(bodyStyles.marginTop) + parseFloat(bodyStyles.marginBottom);\n const marginX = parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight);\n const elementToLock = getViewportScroller(html, body);\n updateGutterOnly = supportsStableScrollbarGutter(referenceElement);\n\n /*\n * DOM writes:\n * Do not read the DOM past this point!\n */\n\n if (updateGutterOnly) {\n html.style.scrollbarGutter = scrollbarGutterValue;\n elementToLock.style.overflowY = 'hidden';\n elementToLock.style.overflowX = 'hidden';\n return;\n }\n Object.assign(html.style, {\n scrollbarGutter: scrollbarGutterValue,\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n if (isScrollableY || hasConstantOverflowY) {\n html.style.overflowY = 'scroll';\n }\n if (isScrollableX || hasConstantOverflowX) {\n html.style.overflowX = 'scroll';\n }\n Object.assign(body.style, {\n position: 'relative',\n height: marginY || scrollbarHeight ? `calc(100dvh - ${marginY + scrollbarHeight}px)` : '100dvh',\n width: marginX || scrollbarWidth ? `calc(100vw - ${marginX + scrollbarWidth}px)` : '100vw',\n boxSizing: 'border-box',\n // Assign the longhands that `cleanup` restores, so nothing is left behind.\n overflowY: 'hidden',\n overflowX: 'hidden',\n scrollBehavior: 'unset'\n });\n body.scrollTop = scrollTop;\n body.scrollLeft = scrollLeft;\n html.setAttribute('data-base-ui-scroll-locked', '');\n html.style.scrollBehavior = 'unset';\n }\n function cleanup() {\n Object.assign(html.style, originalHtmlStyles);\n Object.assign(body.style, originalBodyStyles);\n if (!updateGutterOnly) {\n html.scrollTop = scrollTop;\n html.scrollLeft = scrollLeft;\n html.removeAttribute('data-base-ui-scroll-locked');\n html.style.scrollBehavior = originalHtmlScrollBehavior;\n }\n }\n function handleResize() {\n cleanup();\n resizeFrame.request(lockScroll);\n }\n lockScroll();\n const unsubscribeResize = addEventListener(win, 'resize', handleResize);\n return () => {\n resizeFrame.cancel();\n cleanup();\n // Sometimes this cleanup can run after test teardown because it is called\n // in a `setTimeout(fn, 0)`. Guard the returned cleanup to avoid calling\n // `removeEventListener` when it is no longer available in tests.\n if (typeof win.removeEventListener === 'function') {\n unsubscribeResize();\n }\n };\n}\nclass ScrollLocker {\n lockCount = 0;\n restore = null;\n timeoutLock = Timeout.create();\n timeoutUnlock = Timeout.create();\n acquire(referenceElement) {\n this.lockCount += 1;\n if (this.lockCount === 1 && this.restore === null) {\n this.timeoutLock.start(0, () => this.lock(referenceElement));\n }\n return this.release;\n }\n release = () => {\n this.lockCount -= 1;\n if (this.lockCount === 0 && this.restore) {\n this.timeoutUnlock.start(0, this.unlock);\n }\n };\n unlock = () => {\n if (this.lockCount === 0 && this.restore) {\n this.restore?.();\n this.restore = null;\n }\n };\n lock(referenceElement) {\n if (this.lockCount === 0 || this.restore !== null) {\n return;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const win = ownerWindow(html);\n\n // The page is already locked, either by the site author or by a non-Base UI overlay that\n // hasn't cleaned up yet. Leave it alone and wait for the lock to clear before taking over,\n // otherwise we'd snapshot the locked state and restore it after our own lock is released.\n if (isPageScrollLocked(win, html, body)) {\n const observer = new win.MutationObserver(() => {\n if (isPageScrollLocked(win, html, body)) {\n return;\n }\n observer.disconnect();\n this.restore = null;\n this.lock(referenceElement);\n });\n\n // Watch every attribute: locks are applied through inline styles, classes, or attributes\n // paired with a stylesheet (`data-scroll-locked` in react-remove-scroll, for example).\n const options = {\n attributes: true\n };\n observer.observe(html, options);\n observer.observe(body, options);\n this.restore = () => observer.disconnect();\n return;\n }\n const hasOverlayScrollbars = platform.os.ios || !hasInsetScrollbars(referenceElement);\n\n // On iOS, scroll locking does not work if the navbar is collapsed. Due to numerous\n // side effects and bugs that arise on iOS, it must be researched extensively before\n // being enabled to ensure it doesn't cause the following issues:\n // - Textboxes must scroll into view when focused, nor cause a glitchy scroll animation.\n // - The navbar must not force itself into view and cause layout shift.\n // - Scroll containers must not flicker upon closing a popup when it has an exit animation.\n this.restore = hasOverlayScrollbars ? preventScrollOverlayScrollbars(referenceElement) : preventScrollInsetScrollbars(referenceElement);\n }\n}\nconst SCROLL_LOCKER = new ScrollLocker();\n\n/**\n * Locks the scroll of the document when enabled.\n *\n * @param enabled - Whether to enable the scroll lock.\n * @param referenceElement - Element to use as a reference for lock calculations.\n */\nexport function useScrollLock(enabled = true, referenceElement = null) {\n useIsoLayoutEffect(() => {\n if (!enabled) {\n return undefined;\n }\n return SC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KAAK,KAAK,YAAY,QAC3C,KAAK,YAAY,MAAM,SAAS,KAAK,KAAK,CAAgB,CAAC,GAEtD,KAAK;CACd;CACA,gBAAgB;EAEd,AADA,OAAK,WACD,KAAK,cAAc,KAAK,KAAK,WAC/B,KAAK,cAAc,MAAM,GAAG,KAAK,MAAM;CAE3C;CACA,eAAe;EACb,AAAI,KAAK,cAAc,KAAK,KAAK,YAC/B,KAAK,UAAU,GACf,KAAK,UAAU;CAEnB;CACA,KAAK,GAAkB;EACrB,IAAI,KAAK,cAAc,KAAK,KAAK,YAAY,MAC3C;EAEF,IAAM,IAAM,EAAc,CAAgB,GACpC,IAAO,EAAI,iBACX,IAAO,EAAI,MACX,IAAMD,EAAY,CAAI;EAK5B,IAAI,EAAmB,GAAK,GAAM,CAAI,GAAG;GACvC,IAAM,IAAW,IAAI,EAAI,uBAAuB;IAC1C,EAAmB,GAAK,GAAM,CAAI,MAGtC,EAAS,WAAW,GACpB,KAAK,UAAU,MACf,KAAK,KAAK,CAAgB;GAC5B,CAAC,GAIK,IAAU,EACd,YAAY,GACd;GAGA,AAFA,EAAS,QAAQ,GAAM,CAAO,GAC9B,EAAS,QAAQ,GAAM,CAAO,GAC9B,KAAK,gBAAgB,EAAS,WAAW;GACzC;EACF;EACA,IAAM,IAAuBE,KAAmB,CAAC,EAAmB,CAAgB;EAQpF,KAAK,UAAU,IAAuB,EAA+B,CAAgB,IAAI,EAA6B,CAAgB;CACxI;AACF,EACuC;AAQvC,SAAgB,EAAc,IAAU,IAAM,IAAmB,MAAM;CACrE,QAAyB;EAClB,OAGL,OAAO,EAAc,QAAQ,CAAgB;CAC/C,GAAG,CAAC,GAAS,CAAgB,CAAC;AAChC"}
|
|
1
|
+
{"version":3,"file":"index283.js","names":["DialogPopupDataAttributes.nestedDialogOpen","dialogStateAttributesMapping","popupStateMapping","transitionStatusMapping","value","nestedDialogOpen"],"sources":["../../../node_modules/@base-ui/react/dialog/utils/stateAttributesMapping.mjs"],"sourcesContent":["import { transitionStatusMapping } from \"../../internals/stateAttributesMapping.mjs\";\nimport { popupStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport * as DialogPopupDataAttributes from \"../popup/DialogPopupDataAttributes.mjs\";\n\n/**\n * Shared by `Dialog.Popup` and `Dialog.Viewport`, whose states have the same shape.\n * `nested` is not mapped: unmapped `true` booleans already render as `data-nested`.\n */\nexport const dialogStateAttributesMapping = {\n ...popupStateMapping,\n ...transitionStatusMapping,\n nestedDialogOpen(value) {\n return value ? {\n [DialogPopupDataAttributes.nestedDialogOpen]: ''\n } : null;\n }\n};"],"ignoreList":[0],"mappings":";;;;AAQA,IAAaC,IAA+B;CAC1C,GAAGC;CACH,GAAGC;CACH,iBAAiB,GAAO;EACtB,OAAOC,IAAQ,GACZJ,IAA6C,GAChD,IAAI;CACN;AACF"}
|
package/dist/index284.js
CHANGED
|
@@ -1,57 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
return !0;
|
|
31
|
-
}
|
|
32
|
-
return !1;
|
|
2
|
+
import { useDialogRootContext as e } from "./index184.js";
|
|
3
|
+
import { useRenderElement as t } from "./index197.js";
|
|
4
|
+
import { FloatingFocusManager as n } from "./index249.js";
|
|
5
|
+
import { useOpenChangeComplete as r } from "./index270.js";
|
|
6
|
+
import { FOCUSABLE_POPUP_PROPS as i, createDefaultInitialFocus as a } from "./index271.js";
|
|
7
|
+
import { useDialogPortalContext as o } from "./index279.js";
|
|
8
|
+
import { COMPOSITE_KEYS as s } from "./index280.js";
|
|
9
|
+
import { nestedDialogs as c } from "./index281.js";
|
|
10
|
+
import { dialogStateAttributesMapping as l } from "./index283.js";
|
|
11
|
+
import * as u from "react";
|
|
12
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../node_modules/@base-ui/react/dialog/popup/DialogPopup.mjs
|
|
14
|
+
var f = /*#__PURE__*/ u.forwardRef(function(u, f) {
|
|
15
|
+
let { render: p, className: m, style: h, finalFocus: g, initialFocus: _, ...v } = u, y = e(), b = y.useState("descriptionElementId"), x = y.useState("disablePointerDismissal"), S = y.useState("floatingRootContext"), C = y.useState("popupProps"), w = y.useState("modal"), T = y.useState("mounted"), E = y.useState("nested"), D = y.useState("nestedOpenDialogCount"), O = y.useState("open"), k = y.useState("openMethod"), A = y.useState("titleElementId"), j = y.useState("transitionStatus"), M = y.useState("role"), N = S.useState("floatingId");
|
|
16
|
+
o(), r({
|
|
17
|
+
open: O,
|
|
18
|
+
ref: y.context.popupRef,
|
|
19
|
+
onComplete() {
|
|
20
|
+
O && y.context.onOpenChangeComplete?.(!0);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
let P = _ === void 0 ? a(y.context.popupRef) : _, F = D > 0, I = y.useStateSetter("popupElement"), L = t("div", u, {
|
|
24
|
+
state: {
|
|
25
|
+
open: O,
|
|
26
|
+
nested: E,
|
|
27
|
+
transitionStatus: j,
|
|
28
|
+
nestedDialogOpen: F
|
|
33
29
|
},
|
|
34
|
-
|
|
30
|
+
props: [
|
|
31
|
+
C,
|
|
32
|
+
{
|
|
33
|
+
id: N,
|
|
34
|
+
"aria-labelledby": A,
|
|
35
|
+
"aria-describedby": b,
|
|
36
|
+
role: M,
|
|
37
|
+
...i,
|
|
38
|
+
hidden: !T,
|
|
39
|
+
onKeyDown(e) {
|
|
40
|
+
s.has(e.key) && e.stopPropagation();
|
|
41
|
+
},
|
|
42
|
+
style: { [c]: D }
|
|
43
|
+
},
|
|
44
|
+
v
|
|
45
|
+
],
|
|
46
|
+
ref: [
|
|
47
|
+
f,
|
|
48
|
+
y.context.popupRef,
|
|
49
|
+
I
|
|
50
|
+
],
|
|
51
|
+
stateAttributesMapping: l
|
|
52
|
+
});
|
|
53
|
+
return /*#__PURE__*/ d(n, {
|
|
54
|
+
context: S,
|
|
55
|
+
openInteractionType: k,
|
|
56
|
+
disabled: !T,
|
|
57
|
+
closeOnFocusOut: !x,
|
|
58
|
+
initialFocus: P,
|
|
59
|
+
returnFocus: g,
|
|
60
|
+
modal: w !== !1,
|
|
61
|
+
restoreFocus: "popup",
|
|
62
|
+
children: L
|
|
35
63
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}), e(() => (c?.onNestedDialogOpen && (u ? c.onNestedDialogOpen(h + 1, _ + +!!l) : c.onNestedDialogOpen(0, 0)), () => {
|
|
39
|
-
c?.onNestedDialogOpen && u && c.onNestedDialogOpen(0, 0);
|
|
40
|
-
}), [
|
|
41
|
-
l,
|
|
42
|
-
u,
|
|
43
|
-
h,
|
|
44
|
-
_,
|
|
45
|
-
c
|
|
46
|
-
]), i(s, {
|
|
47
|
-
activeTriggerProps: b.reference,
|
|
48
|
-
inactiveTriggerProps: b.trigger,
|
|
49
|
-
popupProps: b.floating,
|
|
50
|
-
nestedOpenDialogCount: h,
|
|
51
|
-
nestedOpenDrawerCount: _
|
|
52
|
-
}), null;
|
|
53
|
-
}
|
|
64
|
+
});
|
|
65
|
+
process.env.NODE_ENV !== "production" && (f.displayName = "DialogPopup");
|
|
54
66
|
//#endregion
|
|
55
|
-
export {
|
|
67
|
+
export { f as DialogPopup };
|
|
56
68
|
|
|
57
69
|
//# sourceMappingURL=index284.js.map
|
package/dist/index284.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index284.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/dialog/
|
|
1
|
+
{"version":3,"file":"index284.js","names":["DialogPopupCssVars.nestedDialogs","React$1","DialogPopup","elementProps","componentProps","store","useDialogRootContext","descriptionElementId","disablePointerDismissal","floatingRootContext","rootPopupProps","modal","mounted","nested","nestedOpenDialogCount","open","openMethod","titleElementId","transitionStatus","role","floatingId","useDialogPortalContext","useOpenChangeComplete","resolvedInitialFocus","initialFocus","createDefaultInitialFocus","nestedDialogOpen","setPopupElement","element","useRenderElement","FOCUSABLE_POPUP_PROPS","COMPOSITE_KEYS","event","nestedDialogs","forwardedRef","dialogStateAttributesMapping","FloatingFocusManager","finalFocus"],"sources":["../../../node_modules/@base-ui/react/dialog/popup/DialogPopup.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { FloatingFocusManager } from \"../../floating-ui-react/index.mjs\";\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useDialogPortalContext } from \"../portal/DialogPortalContext.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { COMPOSITE_KEYS } from \"../../internals/composite/composite.mjs\";\nimport { FOCUSABLE_POPUP_PROPS, createDefaultInitialFocus } from \"../../utils/popups/index.mjs\";\nimport * as DialogPopupCssVars from \"./DialogPopupCssVars.mjs\";\nimport { dialogStateAttributesMapping } from \"../utils/stateAttributesMapping.mjs\";\n\n/**\n * A container for the dialog contents.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const DialogPopup = /*#__PURE__*/React.forwardRef(function DialogPopup(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n finalFocus,\n initialFocus,\n ...elementProps\n } = componentProps;\n const store = useDialogRootContext();\n const descriptionElementId = store.useState('descriptionElementId');\n const disablePointerDismissal = store.useState('disablePointerDismissal');\n const floatingRootContext = store.useState('floatingRootContext');\n const rootPopupProps = store.useState('popupProps');\n const modal = store.useState('modal');\n const mounted = store.useState('mounted');\n const nested = store.useState('nested');\n const nestedOpenDialogCount = store.useState('nestedOpenDialogCount');\n const open = store.useState('open');\n const openMethod = store.useState('openMethod');\n const titleElementId = store.useState('titleElementId');\n const transitionStatus = store.useState('transitionStatus');\n const role = store.useState('role');\n const floatingId = floatingRootContext.useState('floatingId');\n useDialogPortalContext();\n useOpenChangeComplete({\n open,\n ref: store.context.popupRef,\n onComplete() {\n if (open) {\n store.context.onOpenChangeComplete?.(true);\n }\n }\n });\n const resolvedInitialFocus = initialFocus === undefined ? createDefaultInitialFocus(store.context.popupRef) : initialFocus;\n const nestedDialogOpen = nestedOpenDialogCount > 0;\n const setPopupElement = store.useStateSetter('popupElement');\n const state = {\n open,\n nested,\n transitionStatus,\n nestedDialogOpen\n };\n const element = useRenderElement('div', componentProps, {\n state,\n props: [rootPopupProps, {\n id: floatingId,\n 'aria-labelledby': titleElementId,\n 'aria-describedby': descriptionElementId,\n role,\n ...FOCUSABLE_POPUP_PROPS,\n hidden: !mounted,\n onKeyDown(event) {\n if (COMPOSITE_KEYS.has(event.key)) {\n event.stopPropagation();\n }\n },\n style: {\n [DialogPopupCssVars.nestedDialogs]: nestedOpenDialogCount\n }\n }, elementProps],\n ref: [forwardedRef, store.context.popupRef, setPopupElement],\n stateAttributesMapping: dialogStateAttributesMapping\n });\n return /*#__PURE__*/_jsx(FloatingFocusManager, {\n context: floatingRootContext,\n openInteractionType: openMethod,\n disabled: !mounted,\n closeOnFocusOut: !disablePointerDismissal,\n initialFocus: resolvedInitialFocus,\n returnFocus: finalFocus,\n modal: modal !== false,\n restoreFocus: \"popup\",\n children: element\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogPopup.displayName = \"DialogPopup\";"],"ignoreList":[0],"mappings":";;;;;;;;;;;;;AAoBA,IAAaE,IAA2B,gBAAM,WAAW,SAAqB,GAAgB,GAAc;CAC1G,IAAM,EACJ,WACA,cACA,UACA,eACA,iBACA,GAAGC,MACDC,GACEC,IAAQC,EAAqB,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BAAqBO;EACrB,UAAU,CAACJ;EACX,iBAAiB,CAACJ;EAClB,cAAce;EACd,aAAac;EACb,OAAO1B,MAAU;EACjB,cAAc;EACd,UAAUiB;CACZ,CAAC;AACH,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAY,cAAc"}
|
package/dist/index285.js
CHANGED
|
@@ -1,64 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import * as o from "react";
|
|
6
|
-
//#region ../../node_modules/@base-ui/react/dialog/store/DialogStore.mjs
|
|
7
|
-
var s = {
|
|
8
|
-
...a,
|
|
9
|
-
modal: (e) => e.modal,
|
|
10
|
-
nested: (e) => e.nested,
|
|
11
|
-
nestedOpenDialogCount: (e) => e.nestedOpenDialogCount,
|
|
12
|
-
nestedOpenDrawerCount: (e) => e.nestedOpenDrawerCount,
|
|
13
|
-
disablePointerDismissal: (e) => e.disablePointerDismissal,
|
|
14
|
-
openMethod: (e) => e.openMethod,
|
|
15
|
-
descriptionElementId: (e) => e.descriptionElementId,
|
|
16
|
-
titleElementId: (e) => e.titleElementId,
|
|
17
|
-
viewportElement: (e) => e.viewportElement,
|
|
18
|
-
role: (e) => e.role
|
|
19
|
-
}, c = class extends e {
|
|
20
|
-
constructor(e, t, r) {
|
|
21
|
-
let i = new n(), a = l(e, i, t, r);
|
|
22
|
-
super(a, u(i), s);
|
|
23
|
-
}
|
|
24
|
-
setOpen = (e, n) => {
|
|
25
|
-
if (n.preventUnmountOnClose = () => {
|
|
26
|
-
this.set("preventUnmountingOnClose", !0);
|
|
27
|
-
}, !e && n.trigger == null && this.state.activeTriggerId != null && (n.trigger = this.state.activeTriggerElement ?? void 0), this.context.onOpenChange?.(e, n), n.isCanceled) return;
|
|
28
|
-
this.state.floatingRootContext.dispatchOpenChange(e, n);
|
|
29
|
-
let r = { open: e };
|
|
30
|
-
t(r, e, n.trigger), this.update(r);
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
function l(e, t, n, a = !1) {
|
|
34
|
-
let o = {
|
|
35
|
-
...r(),
|
|
36
|
-
modal: !0,
|
|
37
|
-
disablePointerDismissal: !1,
|
|
38
|
-
viewportElement: null,
|
|
39
|
-
descriptionElementId: void 0,
|
|
40
|
-
titleElementId: void 0,
|
|
41
|
-
openMethod: null,
|
|
42
|
-
nested: !1,
|
|
43
|
-
nestedOpenDialogCount: 0,
|
|
44
|
-
nestedOpenDrawerCount: 0,
|
|
45
|
-
role: "dialog",
|
|
46
|
-
...e
|
|
47
|
-
};
|
|
48
|
-
return o.floatingRootContext = i(t, n, a), o;
|
|
49
|
-
}
|
|
50
|
-
function u(e) {
|
|
51
|
-
return {
|
|
52
|
-
popupRef: /*#__PURE__*/ o.createRef(),
|
|
53
|
-
backdropRef: /*#__PURE__*/ o.createRef(),
|
|
54
|
-
internalBackdropRef: /*#__PURE__*/ o.createRef(),
|
|
55
|
-
outsidePressEnabledRef: { current: !0 },
|
|
56
|
-
triggerElements: e,
|
|
57
|
-
onOpenChange: void 0,
|
|
58
|
-
onOpenChangeComplete: void 0
|
|
59
|
-
};
|
|
1
|
+
import { isReactVersionAtLeast as e } from "./index187.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/utils/inertValue.mjs
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e(19) ? t : t ? "true" : void 0;
|
|
60
5
|
}
|
|
61
6
|
//#endregion
|
|
62
|
-
export {
|
|
7
|
+
export { t as inertValue };
|
|
63
8
|
|
|
64
9
|
//# sourceMappingURL=index285.js.map
|
package/dist/index285.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index285.js","names":[],"sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index285.js","names":["inertValue","isReactVersionAtLeast","value"],"sources":["../../../node_modules/@base-ui/utils/inertValue.mjs"],"sourcesContent":["import { isReactVersionAtLeast } from \"./reactVersion.mjs\";\nexport function inertValue(value) {\n if (isReactVersionAtLeast(19)) {\n return value;\n }\n // compatibility with React < 19\n return value ? 'true' : undefined;\n}"],"ignoreList":[0],"mappings":";;AACA,SAAgBA,EAAW,GAAO;CAKhC,OAJIC,EAAsB,EAAE,IACnBC,IAGFA,IAAQ,SAAS,KAAA;AAC1B"}
|
package/dist/index286.js
CHANGED
|
@@ -1,52 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...N
|
|
23
|
-
}, e, t), !0);
|
|
24
|
-
P.useControlledProp("openProp", _), P.useControlledProp("triggerIdProp", T), P.useSyncedValues(N), P.useContextCallback("onOpenChange", y), P.useContextCallback("onOpenChangeComplete", b);
|
|
25
|
-
let F = P.useState("open"), I = P.useState("mounted"), L = P.useState("payload");
|
|
26
|
-
c(P, F), a(P);
|
|
27
|
-
let { forceUnmount: R } = o(F, P);
|
|
28
|
-
d.useImperativeHandle(C, () => ({
|
|
29
|
-
unmount: R,
|
|
30
|
-
close: () => P.setOpen(!1, r(n))
|
|
31
|
-
}), [R, P]);
|
|
32
|
-
let z = F || I;
|
|
33
|
-
return /*#__PURE__*/ p(e.Provider, {
|
|
34
|
-
value: P,
|
|
35
|
-
children: [
|
|
36
|
-
w && /*#__PURE__*/ f(i, {
|
|
37
|
-
handle: w,
|
|
38
|
-
store: P
|
|
39
|
-
}),
|
|
40
|
-
z && /*#__PURE__*/ f(l, {
|
|
41
|
-
store: P,
|
|
42
|
-
parentContext: M?.context,
|
|
43
|
-
isDrawer: D
|
|
44
|
-
}),
|
|
45
|
-
typeof g == "function" ? g({ payload: L }) : g
|
|
46
|
-
]
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/@base-ui/react/utils/InternalBackdrop.mjs
|
|
4
|
+
var n = /*#__PURE__*/ e.forwardRef(function(e, n) {
|
|
5
|
+
let { cutout: r, ...i } = e, a;
|
|
6
|
+
if (r) {
|
|
7
|
+
let e = r.getBoundingClientRect();
|
|
8
|
+
a = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`;
|
|
9
|
+
}
|
|
10
|
+
return /*#__PURE__*/ t("div", {
|
|
11
|
+
ref: n,
|
|
12
|
+
role: "presentation",
|
|
13
|
+
"data-base-ui-inert": "",
|
|
14
|
+
...i,
|
|
15
|
+
style: {
|
|
16
|
+
position: "fixed",
|
|
17
|
+
inset: 0,
|
|
18
|
+
userSelect: "none",
|
|
19
|
+
WebkitUserSelect: "none",
|
|
20
|
+
clipPath: a
|
|
21
|
+
}
|
|
47
22
|
});
|
|
48
|
-
}
|
|
23
|
+
});
|
|
24
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "InternalBackdrop");
|
|
49
25
|
//#endregion
|
|
50
|
-
export {
|
|
26
|
+
export { n as InternalBackdrop };
|
|
51
27
|
|
|
52
28
|
//# sourceMappingURL=index286.js.map
|
package/dist/index286.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index286.js","names":["
|
|
1
|
+
{"version":3,"file":"index286.js","names":["React$1","InternalBackdrop","otherProps","props","clipPath","cutout","rect"],"sources":["../../../node_modules/@base-ui/react/utils/InternalBackdrop.mjs"],"sourcesContent":["import * as React from 'react';\n\n/**\n * @internal\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const InternalBackdrop = /*#__PURE__*/React.forwardRef(function InternalBackdrop(props, ref) {\n const {\n cutout,\n ...otherProps\n } = props;\n let clipPath;\n if (cutout) {\n const rect = cutout.getBoundingClientRect();\n clipPath = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${rect.left}px ${rect.top}px,${rect.left}px ${rect.bottom}px,${rect.right}px ${rect.bottom}px,${rect.right}px ${rect.top}px,${rect.left}px ${rect.top}px)`;\n }\n return /*#__PURE__*/_jsx(\"div\", {\n ref: ref,\n role: \"presentation\"\n // Ensures Floating UI's outside press detection runs, as it considers\n // it an element that existed when the popup rendered.\n ,\n \"data-base-ui-inert\": \"\",\n ...otherProps,\n style: {\n position: 'fixed',\n inset: 0,\n userSelect: 'none',\n WebkitUserSelect: 'none',\n clipPath\n }\n });\n});\nif (process.env.NODE_ENV !== \"production\") InternalBackdrop.displayName = \"InternalBackdrop\";"],"ignoreList":[0],"mappings":";;;AAMA,IAAaC,IAAgC,gBAAM,WAAW,SAA0B,GAAO,GAAK;CAClG,IAAM,EACJ,WACA,GAAGC,MACDC,GACAC;CACJ,IAAIC,GAAQ;EACV,IAAMC,IAAOD,EAAO,sBAAsB;EAC1C,IAAW,iDAAiDC,EAAK,KAAK,KAAKA,EAAK,IAAI,KAAKA,EAAK,KAAK,KAAKA,EAAK,OAAO,KAAKA,EAAK,MAAM,KAAKA,EAAK,OAAO,KAAKA,EAAK,MAAM,KAAKA,EAAK,IAAI,KAAKA,EAAK,KAAK,KAAKA,EAAK,IAAI;CAClN;CACA,OAAoB,gBAAK,OAAO;EACzB;EACL,MAAM;EAIN,sBAAsB;EACtB,GAAGJ;EACH,OAAO;GACL,UAAU;GACV,OAAO;GACP,YAAY;GACZ,kBAAkB;GAClB;EACF;CACF,CAAC;AACH,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAiB,cAAc"}
|
package/dist/index287.js
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
2
|
+
import { useDialogRootContext as e } from "./index184.js";
|
|
3
|
+
import { FloatingPortal as t } from "./index245.js";
|
|
4
|
+
import { DialogPortalContext as n } from "./index279.js";
|
|
5
|
+
import { inertValue as r } from "./index285.js";
|
|
6
|
+
import { InternalBackdrop as i } from "./index286.js";
|
|
7
|
+
import * as a from "react";
|
|
8
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
|
+
//#region ../../node_modules/@base-ui/react/dialog/portal/DialogPortal.mjs
|
|
10
|
+
var c = /*#__PURE__*/ a.forwardRef(function(a, c) {
|
|
11
|
+
let { keepMounted: l = !1, ...u } = a, d = e(), f = d.useState("mounted"), p = d.useState("modal"), m = d.useState("open");
|
|
12
|
+
return f || l ? /*#__PURE__*/ o(n.Provider, {
|
|
13
|
+
value: l,
|
|
14
|
+
children: /*#__PURE__*/ s(t, {
|
|
15
|
+
ref: c,
|
|
16
|
+
...u,
|
|
17
|
+
children: [f && p === !0 && /*#__PURE__*/ o(i, {
|
|
18
|
+
ref: d.context.internalBackdropRef,
|
|
19
|
+
inert: r(!m)
|
|
20
|
+
}), a.children]
|
|
21
|
+
})
|
|
22
|
+
}) : null;
|
|
23
|
+
});
|
|
24
|
+
process.env.NODE_ENV !== "production" && (c.displayName = "DialogPortal");
|
|
7
25
|
//#endregion
|
|
8
|
-
export {
|
|
26
|
+
export { c as DialogPortal };
|
|
9
27
|
|
|
10
28
|
//# sourceMappingURL=index287.js.map
|
package/dist/index287.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index287.js","names":[],"sources":["../../../node_modules/@base-ui/react/dialog/
|
|
1
|
+
{"version":3,"file":"index287.js","names":["React$1","DialogPortal","portalProps","props","store","useDialogRootContext","mounted","modal","open","keepMounted","DialogPortalContext","FloatingPortal","forwardedRef","InternalBackdrop","inertValue"],"sources":["../../../node_modules/@base-ui/react/dialog/portal/DialogPortal.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { inertValue } from '@base-ui/utils/inertValue';\nimport { FloatingPortal } from \"../../floating-ui-react/index.mjs\";\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { DialogPortalContext } from \"./DialogPortalContext.mjs\";\nimport { InternalBackdrop } from \"../../utils/InternalBackdrop.mjs\";\n\n/**\n * A portal element that moves the popup to a different part of the DOM.\n * By default, the portal element is appended to `<body>`.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DialogPortal = /*#__PURE__*/React.forwardRef(function DialogPortal(props, forwardedRef) {\n const {\n keepMounted = false,\n ...portalProps\n } = props;\n const store = useDialogRootContext();\n const mounted = store.useState('mounted');\n const modal = store.useState('modal');\n const open = store.useState('open');\n const shouldRender = mounted || keepMounted;\n if (!shouldRender) {\n return null;\n }\n return /*#__PURE__*/_jsx(DialogPortalContext.Provider, {\n value: keepMounted,\n children: /*#__PURE__*/_jsxs(FloatingPortal, {\n ref: forwardedRef,\n ...portalProps,\n children: [mounted && modal === true && /*#__PURE__*/_jsx(InternalBackdrop, {\n ref: store.context.internalBackdropRef,\n inert: inertValue(!open)\n }), props.children]\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogPortal.displayName = \"DialogPortal\";"],"ignoreList":[0],"mappings":";;;;;;;;;AAiBA,IAAaC,IAA4B,gBAAM,WAAW,SAAsB,GAAO,GAAc;CACnG,IAAM,EACJ,iBAAc,IACd,GAAGC,MACDC,GACEC,IAAQC,EAAqB,GAC7BC,IAAUF,EAAM,SAAS,SAAS,GAClCG,IAAQH,EAAM,SAAS,OAAO,GAC9BI,IAAOJ,EAAM,SAAS,MAAM;CAKlC,OAJqBE,KAAWG,IAIZ,gBAAKC,EAAoB,UAAU;EACrD,OAAOD;EACP,UAAuB,gBAAME,GAAgB;GAC3C,KAAKC;GACL,GAAGV;GACH,UAAU,CAACI,KAAWC,MAAU,MAAqB,gBAAKM,GAAkB;IAC1E,KAAKT,EAAM,QAAQ;IACnB,OAAOU,EAAW,CAACN,CAAI;GACzB,CAAC,GAAGL,EAAM,QAAQ;EACpB,CAAC;CACH,CAAC,IAZQ;AAaX,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAa,cAAc"}
|
package/dist/index288.js
CHANGED
|
@@ -1,18 +1,129 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { getWindow as e, isOverflowElement as t } from "./index204.js";
|
|
3
|
+
import { useIsoLayoutEffect as n } from "./index208.js";
|
|
4
|
+
import { ownerDocument as r } from "./index211.js";
|
|
5
|
+
import { Timeout as i } from "./index221.js";
|
|
6
|
+
import { ios as a } from "./index223.js";
|
|
7
|
+
import { webkit as o } from "./index224.js";
|
|
8
|
+
import { addEventListener as s } from "./index231.js";
|
|
9
|
+
import { AnimationFrame as c } from "./index234.js";
|
|
10
|
+
//#region ../../node_modules/@base-ui/utils/useScrollLock.mjs
|
|
11
|
+
var l = {}, u = {}, d = "";
|
|
12
|
+
function f(e, n) {
|
|
13
|
+
return t(e) ? e : n;
|
|
14
|
+
}
|
|
15
|
+
function p(e, t, n) {
|
|
16
|
+
return /hidden|clip/.test(e.getComputedStyle(f(t, n)).overflowY);
|
|
17
|
+
}
|
|
18
|
+
function m(t) {
|
|
19
|
+
if (typeof document > "u") return !1;
|
|
20
|
+
let n = r(t);
|
|
21
|
+
return e(n).innerWidth - n.documentElement.clientWidth > 0;
|
|
22
|
+
}
|
|
23
|
+
function h(e) {
|
|
24
|
+
if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
|
|
25
|
+
let t = r(e), n = t.documentElement, i = t.body, a = f(n, i), o = a.style.overflowY, s = n.style.scrollbarGutter;
|
|
26
|
+
n.style.scrollbarGutter = "stable", a.style.overflowY = "scroll";
|
|
27
|
+
let c = a.offsetWidth;
|
|
28
|
+
a.style.overflowY = "hidden";
|
|
29
|
+
let l = a.offsetWidth;
|
|
30
|
+
return a.style.overflowY = o, n.style.scrollbarGutter = s, c === l;
|
|
31
|
+
}
|
|
32
|
+
function g(e) {
|
|
33
|
+
let t = r(e), n = t.documentElement, i = t.body, a = f(n, i), o = {
|
|
34
|
+
overflowY: a.style.overflowY,
|
|
35
|
+
overflowX: a.style.overflowX
|
|
36
|
+
};
|
|
37
|
+
return Object.assign(a.style, {
|
|
38
|
+
overflowY: "hidden",
|
|
39
|
+
overflowX: "hidden"
|
|
40
|
+
}), () => {
|
|
41
|
+
Object.assign(a.style, o);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function _(t) {
|
|
45
|
+
let n = r(t), i = n.documentElement, a = n.body, p = e(i), m = 0, g = 0, _ = !1, v = c.create();
|
|
46
|
+
if (o && (p.visualViewport?.scale ?? 1) !== 1) return () => {};
|
|
47
|
+
function y() {
|
|
48
|
+
let e = p.getComputedStyle(i), n = p.getComputedStyle(a), r = (e.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
49
|
+
m = i.scrollTop, g = i.scrollLeft, l = {
|
|
50
|
+
scrollbarGutter: i.style.scrollbarGutter,
|
|
51
|
+
overflowY: i.style.overflowY,
|
|
52
|
+
overflowX: i.style.overflowX
|
|
53
|
+
}, d = i.style.scrollBehavior, u = {
|
|
54
|
+
position: a.style.position,
|
|
55
|
+
height: a.style.height,
|
|
56
|
+
width: a.style.width,
|
|
57
|
+
boxSizing: a.style.boxSizing,
|
|
58
|
+
overflowY: a.style.overflowY,
|
|
59
|
+
overflowX: a.style.overflowX,
|
|
60
|
+
scrollBehavior: a.style.scrollBehavior
|
|
61
|
+
};
|
|
62
|
+
let o = i.scrollHeight > i.clientHeight, s = i.scrollWidth > i.clientWidth, c = e.overflowY === "scroll" || n.overflowY === "scroll", v = e.overflowX === "scroll" || n.overflowX === "scroll", y = Math.max(0, p.innerWidth - a.clientWidth), b = Math.max(0, p.innerHeight - a.clientHeight), x = parseFloat(n.marginTop) + parseFloat(n.marginBottom), S = parseFloat(n.marginLeft) + parseFloat(n.marginRight), C = f(i, a);
|
|
63
|
+
if (_ = h(t), _) {
|
|
64
|
+
i.style.scrollbarGutter = r, C.style.overflowY = "hidden", C.style.overflowX = "hidden";
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
Object.assign(i.style, {
|
|
68
|
+
scrollbarGutter: r,
|
|
69
|
+
overflowY: "hidden",
|
|
70
|
+
overflowX: "hidden"
|
|
71
|
+
}), (o || c) && (i.style.overflowY = "scroll"), (s || v) && (i.style.overflowX = "scroll"), Object.assign(a.style, {
|
|
72
|
+
position: "relative",
|
|
73
|
+
height: x || b ? `calc(100dvh - ${x + b}px)` : "100dvh",
|
|
74
|
+
width: S || y ? `calc(100vw - ${S + y}px)` : "100vw",
|
|
75
|
+
boxSizing: "border-box",
|
|
76
|
+
overflowY: "hidden",
|
|
77
|
+
overflowX: "hidden",
|
|
78
|
+
scrollBehavior: "unset"
|
|
79
|
+
}), a.scrollTop = m, a.scrollLeft = g, i.setAttribute("data-base-ui-scroll-locked", ""), i.style.scrollBehavior = "unset";
|
|
80
|
+
}
|
|
81
|
+
function b() {
|
|
82
|
+
Object.assign(i.style, l), Object.assign(a.style, u), _ || (i.scrollTop = m, i.scrollLeft = g, i.removeAttribute("data-base-ui-scroll-locked"), i.style.scrollBehavior = d);
|
|
83
|
+
}
|
|
84
|
+
function x() {
|
|
85
|
+
b(), v.request(y);
|
|
86
|
+
}
|
|
87
|
+
y();
|
|
88
|
+
let S = s(p, "resize", x);
|
|
89
|
+
return () => {
|
|
90
|
+
v.cancel(), b(), typeof p.removeEventListener == "function" && S();
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
var v = new class {
|
|
94
|
+
lockCount = 0;
|
|
95
|
+
restore = null;
|
|
96
|
+
timeoutLock = i.create();
|
|
97
|
+
timeoutUnlock = i.create();
|
|
98
|
+
acquire(e) {
|
|
99
|
+
return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
|
|
100
|
+
}
|
|
101
|
+
release = () => {
|
|
102
|
+
--this.lockCount, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
|
|
103
|
+
};
|
|
104
|
+
unlock = () => {
|
|
105
|
+
this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
|
|
106
|
+
};
|
|
107
|
+
lock(t) {
|
|
108
|
+
if (this.lockCount === 0 || this.restore !== null) return;
|
|
109
|
+
let n = r(t), i = n.documentElement, o = n.body, s = e(i);
|
|
110
|
+
if (p(s, i, o)) {
|
|
111
|
+
let e = new s.MutationObserver(() => {
|
|
112
|
+
p(s, i, o) || (e.disconnect(), this.restore = null, this.lock(t));
|
|
113
|
+
}), n = { attributes: !0 };
|
|
114
|
+
e.observe(i, n), e.observe(o, n), this.restore = () => e.disconnect();
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
let c = a || !m(t);
|
|
118
|
+
this.restore = c ? g(t) : _(t);
|
|
119
|
+
}
|
|
120
|
+
}();
|
|
121
|
+
function y(e = !0, t = null) {
|
|
122
|
+
n(() => {
|
|
123
|
+
if (e) return v.acquire(t);
|
|
124
|
+
}, [e, t]);
|
|
125
|
+
}
|
|
15
126
|
//#endregion
|
|
16
|
-
export {
|
|
127
|
+
export { y as useScrollLock };
|
|
17
128
|
|
|
18
129
|
//# sourceMappingURL=index288.js.map
|