@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/index209.js
CHANGED
|
@@ -1,107 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import * as u from "react";
|
|
12
|
-
//#region ../../node_modules/@base-ui/react/internals/use-button/useButton.mjs
|
|
13
|
-
function d(n = {}) {
|
|
14
|
-
let { disabled: d = !1, focusableWhenDisabled: m, tabIndex: h = 0, native: g = !0, composite: _ } = n, v = u.useRef(null), y = s(!0), b = _ ?? y !== void 0, { props: x } = c({
|
|
15
|
-
focusableWhenDisabled: m,
|
|
16
|
-
disabled: d,
|
|
17
|
-
composite: b,
|
|
18
|
-
tabIndex: h,
|
|
19
|
-
isNativeButton: g
|
|
20
|
-
});
|
|
21
|
-
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
22
|
-
if (!v.current) return;
|
|
23
|
-
let e = f(v.current);
|
|
24
|
-
if (g) {
|
|
25
|
-
if (!e) {
|
|
26
|
-
let e = r.captureOwnerStack?.() || "";
|
|
27
|
-
a(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${e}`);
|
|
28
|
-
}
|
|
29
|
-
} else if (e) {
|
|
30
|
-
let e = r.captureOwnerStack?.() || "";
|
|
31
|
-
a(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${e}`);
|
|
32
|
-
}
|
|
33
|
-
}, [g]);
|
|
34
|
-
let S = u.useCallback(() => {
|
|
35
|
-
let e = v.current;
|
|
36
|
-
f(e) && b && d && x.disabled === void 0 && e.disabled && (e.disabled = !1);
|
|
37
|
-
}, [
|
|
38
|
-
d,
|
|
39
|
-
x.disabled,
|
|
40
|
-
b
|
|
41
|
-
]);
|
|
42
|
-
return o(S, [S]), {
|
|
43
|
-
getButtonProps: u.useCallback((n = {}) => {
|
|
44
|
-
let { onClick: r, onMouseDown: i, onKeyUp: a, onKeyDown: o, onPointerDown: s, ...c } = n;
|
|
45
|
-
return t({
|
|
46
|
-
onClick(e) {
|
|
47
|
-
if (d) {
|
|
48
|
-
e.preventDefault();
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
r?.(e);
|
|
52
|
-
},
|
|
53
|
-
onMouseDown(e) {
|
|
54
|
-
d || i?.(e);
|
|
55
|
-
},
|
|
56
|
-
onKeyDown(t) {
|
|
57
|
-
if (d || (e(t), o?.(t), t.baseUIHandlerPrevented)) return;
|
|
58
|
-
let n = t.target === t.currentTarget, r = t.currentTarget, i = f(r), a = !g && p(r), s = n && (g ? i : !a), c = t.key === "Enter", u = t.key === " ", m = r.getAttribute("role"), h = m?.startsWith("menuitem") || m === "option" || m === "gridcell";
|
|
59
|
-
if (n && b && u) {
|
|
60
|
-
if (t.defaultPrevented && h) return;
|
|
61
|
-
t.preventDefault(), (!g || i) && (t.preventBaseUIHandler(), l(r, t));
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
if (!s || g || !u && !c) {
|
|
65
|
-
n && a && u && t.preventDefault();
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
t.defaultPrevented || (t.preventDefault(), c && (t.preventBaseUIHandler(), l(r, t)));
|
|
69
|
-
},
|
|
70
|
-
onKeyUp(t) {
|
|
71
|
-
if (!d) {
|
|
72
|
-
if (e(t), a?.(t), t.target === t.currentTarget && g && b && f(t.currentTarget) && t.key === " ") {
|
|
73
|
-
t.preventDefault();
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
t.baseUIHandlerPrevented || t.target === t.currentTarget && !g && !b && !t.defaultPrevented && t.key === " " && (t.preventBaseUIHandler(), l(t.currentTarget, t));
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
onPointerDown(e) {
|
|
80
|
-
if (d) {
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
s?.(e);
|
|
85
|
-
}
|
|
86
|
-
}, g ? { type: "button" } : { role: "button" }, x, c);
|
|
87
|
-
}, [
|
|
88
|
-
d,
|
|
89
|
-
x,
|
|
90
|
-
b,
|
|
91
|
-
g
|
|
92
|
-
]),
|
|
93
|
-
buttonRef: i((e) => {
|
|
94
|
-
v.current = e, S();
|
|
95
|
-
})
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function f(e) {
|
|
99
|
-
return n(e) && e.tagName === "BUTTON";
|
|
100
|
-
}
|
|
101
|
-
function p(e) {
|
|
102
|
-
return n(e) && e.tagName === "A" && !!e.href;
|
|
2
|
+
import e from "./index183.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
//#region ../../node_modules/@base-ui/react/internals/composite/root/CompositeRootContext.mjs
|
|
5
|
+
var n = /*#__PURE__*/ t.createContext(void 0);
|
|
6
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "CompositeRootContext");
|
|
7
|
+
function r(r = !1) {
|
|
8
|
+
let i = t.useContext(n);
|
|
9
|
+
if (i === void 0 && !r) throw Error(process.env.NODE_ENV === "production" ? e(16) : "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");
|
|
10
|
+
return i;
|
|
103
11
|
}
|
|
104
12
|
//#endregion
|
|
105
|
-
export {
|
|
13
|
+
export { n as CompositeRootContext, r as useCompositeRootContext };
|
|
106
14
|
|
|
107
15
|
//# sourceMappingURL=index209.js.map
|
package/dist/index209.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index209.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/use-button/useButton.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { error } from '@base-ui/utils/error';\nimport { SafeReact } from '@base-ui/utils/safeReact';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { makeEventPreventable, mergeProps } from \"../../merge-props/index.mjs\";\nimport { useCompositeRootContext } from \"../composite/root/CompositeRootContext.mjs\";\nimport { useFocusableWhenDisabled } from \"../../utils/useFocusableWhenDisabled.mjs\";\nimport { dispatchClickWithModifiers } from \"../../utils/dispatchClickWithModifiers.mjs\";\nexport function useButton(parameters = {}) {\n const {\n disabled = false,\n focusableWhenDisabled,\n tabIndex = 0,\n native: isNativeButton = true,\n composite: compositeProp\n } = parameters;\n const elementRef = React.useRef(null);\n const compositeRootContext = useCompositeRootContext(true);\n const isCompositeItem = compositeProp ?? compositeRootContext !== undefined;\n const {\n props: focusableWhenDisabledProps\n } = useFocusableWhenDisabled({\n focusableWhenDisabled,\n disabled,\n composite: isCompositeItem,\n tabIndex,\n isNativeButton\n });\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!elementRef.current) {\n return;\n }\n const isButtonTag = isButtonElement(elementRef.current);\n if (isNativeButton) {\n if (!isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a native <button> because the ' + '`nativeButton` prop is true. Rendering a non-<button> removes native button ' + 'semantics, which can impact forms and accessibility. Use a real <button> in the ' + '`render` prop, or set `nativeButton` to `false`.';\n error(`${message}${ownerStackMessage}`);\n }\n } else if (isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a non-<button> because the `nativeButton` ' + 'prop is false. Rendering a <button> keeps native behavior while Base UI applies ' + 'non-native attributes and handlers, which can add unintended extra attributes (such ' + 'as `role` or `aria-disabled`). Use a non-<button> in the `render` prop, or set ' + '`nativeButton` to `true`.';\n error(`${message}${ownerStackMessage}`);\n }\n }, [isNativeButton]);\n }\n\n // handles a disabled composite button rendering another button, e.g.\n // <Toolbar.Button disabled render={<Menu.Trigger />} />\n // the `disabled` prop needs to pass through 2 `useButton`s then finally\n // delete the `disabled` attribute from DOM\n const updateDisabled = React.useCallback(() => {\n const element = elementRef.current;\n if (!isButtonElement(element)) {\n return;\n }\n if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === undefined && element.disabled) {\n element.disabled = false;\n }\n }, [disabled, focusableWhenDisabledProps.disabled, isCompositeItem]);\n useIsoLayoutEffect(updateDisabled, [updateDisabled]);\n const getButtonProps = React.useCallback((externalProps = {}) => {\n const {\n onClick: externalOnClick,\n onMouseDown: externalOnMouseDown,\n onKeyUp: externalOnKeyUp,\n onKeyDown: externalOnKeyDown,\n onPointerDown: externalOnPointerDown,\n ...otherExternalProps\n } = externalProps;\n return mergeProps({\n onClick(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnClick?.(event);\n },\n onMouseDown(event) {\n if (!disabled) {\n externalOnMouseDown?.(event);\n }\n },\n onKeyDown(event) {\n if (disabled) {\n return;\n }\n makeEventPreventable(event);\n externalOnKeyDown?.(event);\n if (event.baseUIHandlerPrevented) {\n return;\n }\n const isCurrentTarget = event.target === event.currentTarget;\n const currentTarget = event.currentTarget;\n const isButton = isButtonElement(currentTarget);\n const isLink = !isNativeButton && isValidLinkElement(currentTarget);\n const shouldClick = isCurrentTarget && (isNativeButton ? isButton : !isLink);\n const isEnterKey = event.key === 'Enter';\n const isSpaceKey = event.key === ' ';\n const role = currentTarget.getAttribute('role');\n const isTextNavigationRole = role?.startsWith('menuitem') || role === 'option' || role === 'gridcell';\n if (isCurrentTarget && isCompositeItem && isSpaceKey) {\n if (event.defaultPrevented && isTextNavigationRole) {\n return;\n }\n event.preventDefault();\n\n // Only a native-mode item that isn't a real <button> is excluded.\n if (!isNativeButton || isButton) {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(currentTarget, event);\n }\n return;\n }\n\n // Keyboard accessibility for native and non-native elements.\n if (!shouldClick || isNativeButton || !isSpaceKey && !isEnterKey) {\n // Space activates links on keyup (`role=\"button\"` semantics, matching the\n // composite path); prevent the page scroll Space would otherwise trigger.\n // Enter is left to the browser's native link activation.\n if (isCurrentTarget && isLink && isSpaceKey) {\n event.preventDefault();\n }\n return;\n }\n\n // Match native buttons: preventing the keydown's default cancels activation.\n if (event.defaultPrevented) {\n return;\n }\n event.preventDefault();\n if (isEnterKey) {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(currentTarget, event);\n }\n },\n onKeyUp(event) {\n if (disabled) {\n return;\n }\n\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n makeEventPreventable(event);\n externalOnKeyUp?.(event);\n if (event.target === event.currentTarget && isNativeButton && isCompositeItem && isButtonElement(event.currentTarget) && event.key === ' ') {\n event.preventDefault();\n return;\n }\n if (event.baseUIHandlerPrevented) {\n return;\n }\n\n // Keyboard accessibility for non interactive elements.\n // Match native buttons: preventing the keyup's default cancels Space activation.\n // Limitation: unlike a native <button>, a prevented *keydown* cannot cancel the\n // activation — no state is kept between keydown and keyup, so we can't tell\n // whether the keydown was prevented or even happened on this element.\n if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && !event.defaultPrevented && event.key === ' ') {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(event.currentTarget, event);\n }\n },\n onPointerDown(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnPointerDown?.(event);\n }\n }, isNativeButton ? {\n type: 'button'\n } : {\n role: 'button'\n }, focusableWhenDisabledProps, otherExternalProps);\n }, [disabled, focusableWhenDisabledProps, isCompositeItem, isNativeButton]);\n const buttonRef = useStableCallback(element => {\n elementRef.current = element;\n updateDisabled();\n });\n return {\n getButtonProps,\n buttonRef\n };\n}\nfunction isButtonElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'BUTTON';\n}\nfunction isValidLinkElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'A' && Boolean(elem.href);\n}"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index209.js","names":["React","_formatErrorMessage","formatErrorMessage","React$1","CompositeRootContext","useCompositeRootContext","context","optional"],"sources":["../../../node_modules/@base-ui/react/internals/composite/root/CompositeRootContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const CompositeRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CompositeRootContext.displayName = \"CompositeRootContext\";\nexport function useCompositeRootContext(optional = false) {\n const context = React.useContext(CompositeRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.' : _formatErrorMessage(16));\n }\n return context;\n}"],"ignoreList":[0],"mappings":";;;;AAIA,IAAaI,IAAoC,gBAAM,cAAc,KAAA,CAAS;AAC9E,QAAA,IAAA,aAA6B,iBAAc,EAAqB,cAAc;AAC9E,SAAgBC,EAAwB,IAAW,IAAO;CACxD,IAAMC,IAAUN,EAAM,WAAWI,CAAoB;CACrD,IAAIE,MAAY,KAAA,KAAa,CAACC,GAC5B,MAAU,MAAA,QAAA,IAAA,aAA+B,eAAqHN,EAAoB,EAAE,IAA5H,mGAA6H;CAEvL,OAAOK;AACT"}
|
package/dist/index210.js
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
//#region ../../node_modules/@base-ui/react/utils/useFocusableWhenDisabled.mjs
|
|
4
|
+
function t(t) {
|
|
5
|
+
let { focusableWhenDisabled: n, disabled: r, composite: i = !1, tabIndex: a = 0, isNativeButton: o } = t, s = i && n !== !1, c = i && n === !1;
|
|
6
|
+
return { props: e.useMemo(() => {
|
|
7
|
+
let e = { onKeyDown(e) {
|
|
8
|
+
r && n && e.key !== "Tab" && e.preventDefault();
|
|
9
|
+
} };
|
|
10
|
+
return i || (e.tabIndex = a, !o && r && (e.tabIndex = n ? a : -1)), (o && (n || s) || !o && r) && (e["aria-disabled"] = r), o && (!n || c) && (e.disabled = r), e;
|
|
11
|
+
}, [
|
|
12
|
+
i,
|
|
13
|
+
r,
|
|
14
|
+
n,
|
|
15
|
+
s,
|
|
16
|
+
c,
|
|
17
|
+
o,
|
|
18
|
+
a
|
|
19
|
+
]) };
|
|
20
|
+
}
|
|
3
21
|
//#endregion
|
|
4
|
-
export {
|
|
22
|
+
export { t as useFocusableWhenDisabled };
|
|
5
23
|
|
|
6
24
|
//# sourceMappingURL=index210.js.map
|
package/dist/index210.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index210.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index210.js","names":["React","React$1","useFocusableWhenDisabled","tabIndexProp","parameters","isFocusableComposite","composite","focusableWhenDisabled","isNonFocusableComposite","additionalProps","disabled","event","isNativeButton"],"sources":["../../../node_modules/@base-ui/react/utils/useFocusableWhenDisabled.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nexport function useFocusableWhenDisabled(parameters) {\n const {\n focusableWhenDisabled,\n disabled,\n composite = false,\n tabIndex: tabIndexProp = 0,\n isNativeButton\n } = parameters;\n const isFocusableComposite = composite && focusableWhenDisabled !== false;\n const isNonFocusableComposite = composite && focusableWhenDisabled === false;\n\n // we can't explicitly assign `undefined` to any of these props because it\n // would otherwise prevent subsequently merged props from setting them\n const props = React.useMemo(() => {\n const additionalProps = {\n // allow Tabbing away from focusableWhenDisabled elements\n onKeyDown(event) {\n if (disabled && focusableWhenDisabled && event.key !== 'Tab') {\n event.preventDefault();\n }\n }\n };\n if (!composite) {\n additionalProps.tabIndex = tabIndexProp;\n if (!isNativeButton && disabled) {\n additionalProps.tabIndex = focusableWhenDisabled ? tabIndexProp : -1;\n }\n }\n if (isNativeButton && (focusableWhenDisabled || isFocusableComposite) || !isNativeButton && disabled) {\n additionalProps['aria-disabled'] = disabled;\n }\n if (isNativeButton && (!focusableWhenDisabled || isNonFocusableComposite)) {\n additionalProps.disabled = disabled;\n }\n return additionalProps;\n }, [composite, disabled, focusableWhenDisabled, isFocusableComposite, isNonFocusableComposite, isNativeButton, tabIndexProp]);\n return {\n props\n };\n}"],"ignoreList":[0],"mappings":";;;AAGA,SAAgBE,EAAyB,GAAY;CACnD,IAAM,EACJ,0BACA,aACA,eAAY,IACZ,UAAUC,IAAe,GACzB,sBACEC,GACEC,IAAuBC,KAAaC,MAA0B,IAC9DC,IAA0BF,KAAaC,MAA0B;CA2BvE,OAAO,EACL,OAxBYP,EAAM,cAAc;EAChC,IAAMS,IAAkB,EAEtB,UAAU,GAAO;GACf,AAAIC,KAAYH,KAAyBI,EAAM,QAAQ,SACrDA,EAAM,eAAe;EAEzB,EACF;EAaA,OAZKL,MACH,EAAgB,WAAWH,GACvB,CAACS,KAAkBF,MACrB,EAAgB,WAAWH,IAAwBJ,IAAe,OAGlES,MAAmBL,KAAyBF,MAAyB,CAACO,KAAkBF,OAC1F,EAAgB,mBAAmBA,IAEjCE,MAAmB,CAACL,KAAyBC,OAC/C,EAAgB,WAAWE,IAEtBD;CACT,GAAG;EAACH;EAAWI;EAAUH;EAAuBF;EAAsBG;EAAyBI;EAAgBT;CAAY,CAErH,EACN;AACF"}
|
package/dist/index211.js
CHANGED
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/@base-ui/
|
|
3
|
-
function t(
|
|
4
|
-
|
|
5
|
-
return {
|
|
6
|
-
reason: t,
|
|
7
|
-
event: n ?? new Event("base-ui"),
|
|
8
|
-
cancel() {
|
|
9
|
-
a = !0;
|
|
10
|
-
},
|
|
11
|
-
allowPropagation() {
|
|
12
|
-
o = !0;
|
|
13
|
-
},
|
|
14
|
-
get isCanceled() {
|
|
15
|
-
return a;
|
|
16
|
-
},
|
|
17
|
-
get isPropagationAllowed() {
|
|
18
|
-
return o;
|
|
19
|
-
},
|
|
20
|
-
trigger: r,
|
|
21
|
-
...s
|
|
22
|
-
};
|
|
1
|
+
import { getWindow as e } from "./index204.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/utils/owner.mjs
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e?.ownerDocument || document;
|
|
23
5
|
}
|
|
24
6
|
//#endregion
|
|
25
|
-
export { t as
|
|
7
|
+
export { t as ownerDocument, e as ownerWindow };
|
|
26
8
|
|
|
27
9
|
//# sourceMappingURL=index211.js.map
|
package/dist/index211.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index211.js","names":[],"sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index211.js","names":["ownerDocument","node","getWindow"],"sources":["../../../node_modules/@base-ui/utils/owner.mjs"],"sourcesContent":["export { getWindow as ownerWindow } from '@floating-ui/utils/dom';\nexport function ownerDocument(node) {\n return node?.ownerDocument || document;\n}"],"ignoreList":[0],"mappings":";;AACA,SAAgBA,EAAc,GAAM;CAClC,OAAOC,GAAM,iBAAiB;AAChC"}
|
package/dist/index212.js
CHANGED
|
@@ -1,31 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
m && p.setOpen(!1, i(r, e.nativeEvent));
|
|
16
|
-
}
|
|
17
|
-
return t("button", a, {
|
|
18
|
-
state: _,
|
|
19
|
-
ref: [o, g],
|
|
20
|
-
props: [
|
|
21
|
-
{ onClick: v },
|
|
22
|
-
f,
|
|
23
|
-
h
|
|
24
|
-
]
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
process.env.NODE_ENV !== "production" && (o.displayName = "DialogClose");
|
|
1
|
+
import { getWindow as e } from "./index204.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs
|
|
3
|
+
function t(t, n, { detail: r = 0 } = {}) {
|
|
4
|
+
t.dispatchEvent(new (e(t)).PointerEvent("click", {
|
|
5
|
+
bubbles: !0,
|
|
6
|
+
cancelable: !0,
|
|
7
|
+
composed: !0,
|
|
8
|
+
detail: r,
|
|
9
|
+
shiftKey: n.shiftKey,
|
|
10
|
+
ctrlKey: n.ctrlKey,
|
|
11
|
+
altKey: n.altKey,
|
|
12
|
+
metaKey: n.metaKey
|
|
13
|
+
}));
|
|
14
|
+
}
|
|
28
15
|
//#endregion
|
|
29
|
-
export {
|
|
16
|
+
export { t as dispatchClickWithModifiers };
|
|
30
17
|
|
|
31
18
|
//# sourceMappingURL=index212.js.map
|
package/dist/index212.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index212.js","names":["
|
|
1
|
+
{"version":3,"file":"index212.js","names":["ownerWindow","dispatchClickWithModifiers","getWindow","target","sourceEvent"],"sources":["../../../node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs"],"sourcesContent":["import { ownerWindow } from '@base-ui/utils/owner';\n/**\n * Dispatches a constructed click on the target so it carries the source event's\n * modifier state, which `click()` always reports as unpressed. Like `click()`,\n * the untrusted click still runs native activation behavior (form submission,\n * link navigation).\n * `detail` defaults to 0 (the native convention for keyboard-generated clicks);\n * pass `detail: 1` when the click represents a mouse gesture so consumers keying\n * off `detail === 0` don't classify it as a keyboard activation.\n */\nexport function dispatchClickWithModifiers(target, sourceEvent, {\n detail = 0\n} = {}) {\n target.dispatchEvent(new (ownerWindow(target).PointerEvent)('click', {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail,\n shiftKey: sourceEvent.shiftKey,\n ctrlKey: sourceEvent.ctrlKey,\n altKey: sourceEvent.altKey,\n metaKey: sourceEvent.metaKey\n }));\n}"],"ignoreList":[0],"mappings":";;AAUA,SAAgBC,EAA2B,GAAQ,GAAa,EAC9D,YAAS,MACP,CAAC,GAAG;CACN,EAAO,cAAc,KAAKD,EAAYG,CAAM,EAAA,CAAE,aAAc,SAAS;EACnE,SAAS;EACT,YAAY;EACZ,UAAU;EACV;EACA,UAAUC,EAAY;EACtB,SAASA,EAAY;EACrB,QAAQA,EAAY;EACpB,SAASA,EAAY;CACvB,CAAC,CAAC;AACJ"}
|
package/dist/index213.js
CHANGED
|
@@ -1,23 +1,107 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { makeEventPreventable as e, mergeProps as t } from "./index196.js";
|
|
3
|
+
import { isHTMLElement as n } from "./index204.js";
|
|
4
|
+
import { SafeReact as r } from "./index205.js";
|
|
5
|
+
import { useStableCallback as i } from "./index206.js";
|
|
6
|
+
import { error as a } from "./index207.js";
|
|
7
|
+
import { useIsoLayoutEffect as o } from "./index208.js";
|
|
8
|
+
import { useCompositeRootContext as s } from "./index209.js";
|
|
9
|
+
import { useFocusableWhenDisabled as c } from "./index210.js";
|
|
10
|
+
import { dispatchClickWithModifiers as l } from "./index212.js";
|
|
11
|
+
import * as u from "react";
|
|
12
|
+
//#region ../../node_modules/@base-ui/react/internals/use-button/useButton.mjs
|
|
13
|
+
function d(n = {}) {
|
|
14
|
+
let { disabled: d = !1, focusableWhenDisabled: m, tabIndex: h = 0, native: g = !0, composite: _ } = n, v = u.useRef(null), y = s(!0), b = _ ?? y !== void 0, { props: x } = c({
|
|
15
|
+
focusableWhenDisabled: m,
|
|
16
|
+
disabled: d,
|
|
17
|
+
composite: b,
|
|
18
|
+
tabIndex: h,
|
|
19
|
+
isNativeButton: g
|
|
20
|
+
});
|
|
21
|
+
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
22
|
+
if (!v.current) return;
|
|
23
|
+
let e = f(v.current);
|
|
24
|
+
if (g) {
|
|
25
|
+
if (!e) {
|
|
26
|
+
let e = r.captureOwnerStack?.() || "";
|
|
27
|
+
a(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${e}`);
|
|
28
|
+
}
|
|
29
|
+
} else if (e) {
|
|
30
|
+
let e = r.captureOwnerStack?.() || "";
|
|
31
|
+
a(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${e}`);
|
|
32
|
+
}
|
|
33
|
+
}, [g]);
|
|
34
|
+
let S = u.useCallback(() => {
|
|
35
|
+
let e = v.current;
|
|
36
|
+
f(e) && b && d && x.disabled === void 0 && e.disabled && (e.disabled = !1);
|
|
37
|
+
}, [
|
|
38
|
+
d,
|
|
39
|
+
x.disabled,
|
|
40
|
+
b
|
|
41
|
+
]);
|
|
42
|
+
return o(S, [S]), {
|
|
43
|
+
getButtonProps: u.useCallback((n = {}) => {
|
|
44
|
+
let { onClick: r, onMouseDown: i, onKeyUp: a, onKeyDown: o, onPointerDown: s, ...c } = n;
|
|
45
|
+
return t({
|
|
46
|
+
onClick(e) {
|
|
47
|
+
if (d) {
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
r?.(e);
|
|
52
|
+
},
|
|
53
|
+
onMouseDown(e) {
|
|
54
|
+
d || i?.(e);
|
|
55
|
+
},
|
|
56
|
+
onKeyDown(t) {
|
|
57
|
+
if (d || (e(t), o?.(t), t.baseUIHandlerPrevented)) return;
|
|
58
|
+
let n = t.target === t.currentTarget, r = t.currentTarget, i = f(r), a = !g && p(r), s = n && (g ? i : !a), c = t.key === "Enter", u = t.key === " ", m = r.getAttribute("role"), h = m?.startsWith("menuitem") || m === "option" || m === "gridcell";
|
|
59
|
+
if (n && b && u) {
|
|
60
|
+
if (t.defaultPrevented && h) return;
|
|
61
|
+
t.preventDefault(), (!g || i) && (t.preventBaseUIHandler(), l(r, t));
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (!s || g || !u && !c) {
|
|
65
|
+
n && a && u && t.preventDefault();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
t.defaultPrevented || (t.preventDefault(), c && (t.preventBaseUIHandler(), l(r, t)));
|
|
69
|
+
},
|
|
70
|
+
onKeyUp(t) {
|
|
71
|
+
if (!d) {
|
|
72
|
+
if (e(t), a?.(t), t.target === t.currentTarget && g && b && f(t.currentTarget) && t.key === " ") {
|
|
73
|
+
t.preventDefault();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
t.baseUIHandlerPrevented || t.target === t.currentTarget && !g && !b && !t.defaultPrevented && t.key === " " && (t.preventBaseUIHandler(), l(t.currentTarget, t));
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
onPointerDown(e) {
|
|
80
|
+
if (d) {
|
|
81
|
+
e.preventDefault();
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
s?.(e);
|
|
85
|
+
}
|
|
86
|
+
}, g ? { type: "button" } : { role: "button" }, x, c);
|
|
87
|
+
}, [
|
|
88
|
+
d,
|
|
89
|
+
x,
|
|
90
|
+
b,
|
|
91
|
+
g
|
|
92
|
+
]),
|
|
93
|
+
buttonRef: i((e) => {
|
|
94
|
+
v.current = e, S();
|
|
95
|
+
})
|
|
96
|
+
};
|
|
11
97
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return r(e, t);
|
|
98
|
+
function f(e) {
|
|
99
|
+
return n(e) && e.tagName === "BUTTON";
|
|
100
|
+
}
|
|
101
|
+
function p(e) {
|
|
102
|
+
return n(e) && e.tagName === "A" && !!e.href;
|
|
19
103
|
}
|
|
20
104
|
//#endregion
|
|
21
|
-
export {
|
|
105
|
+
export { d as useButton };
|
|
22
106
|
|
|
23
107
|
//# sourceMappingURL=index213.js.map
|
package/dist/index213.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index213.js","names":["React"],"sources":["../../../node_modules/@base-ui/utils/useId.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { SafeReact } from \"./safeReact.mjs\";\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride, prefix = 'mui') {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`${prefix}-${globalId}`);\n }\n }, [defaultId, prefix]);\n return id;\n}\nconst maybeReactUseId = SafeReact.useId;\n\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport function useId(idOverride, prefix) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? (prefix ? `${prefix}-${reactId}` : reactId);\n }\n\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride, prefix);\n}"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAI,IAAW;AAGf,SAAS,EAAY,GAAY,IAAS,OAAO;CAC/C,IAAM,CAAC,GAAW,KAAgBA,EAAM,SAAS,CAAU,GACrD,IAAK,KAAc;CAWzB,OAVA,EAAM,gBAAgB;EACpB,AAAI,MAKF,KAAY,GACZ,EAAa,GAAG,EAAO,GAAG,GAAU;CAExC,GAAG,CAAC,GAAW,CAAM,CAAC,GACf;AACT;AACA,IAAM,IAAkB,EAAU;AAQlC,SAAgB,EAAM,GAAY,GAAQ;CAExC,IAAI,MAAoB,KAAA,GAAW;EACjC,IAAM,IAAU,EAAgB;EAChC,OAAO,MAAe,IAAS,GAAG,EAAO,GAAG,MAAY;CAC1D;CAIA,OAAO,EAAY,GAAY,CAAM;AACvC"}
|
|
1
|
+
{"version":3,"file":"index213.js","names":["React","React$1","useButton","isNativeButton","compositeProp","parameters","elementRef","compositeRootContext","useCompositeRootContext","isCompositeItem","focusableWhenDisabledProps","useFocusableWhenDisabled","isButtonTag","isButtonElement","ownerStackMessage","SafeReact","updateDisabled","element","disabled","useIsoLayoutEffect","externalOnClick","externalOnMouseDown","externalOnKeyUp","externalOnKeyDown","externalOnPointerDown","otherExternalProps","externalProps","mergeProps","event","makeEventPreventable","isCurrentTarget","currentTarget","isButton","isLink","isValidLinkElement","shouldClick","isEnterKey","isSpaceKey","role","isTextNavigationRole","dispatchClickWithModifiers","useStableCallback","isHTMLElement","elem"],"sources":["../../../node_modules/@base-ui/react/internals/use-button/useButton.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { isHTMLElement } from '@floating-ui/utils/dom';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { error } from '@base-ui/utils/error';\nimport { SafeReact } from '@base-ui/utils/safeReact';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { makeEventPreventable, mergeProps } from \"../../merge-props/index.mjs\";\nimport { useCompositeRootContext } from \"../composite/root/CompositeRootContext.mjs\";\nimport { useFocusableWhenDisabled } from \"../../utils/useFocusableWhenDisabled.mjs\";\nimport { dispatchClickWithModifiers } from \"../../utils/dispatchClickWithModifiers.mjs\";\nexport function useButton(parameters = {}) {\n const {\n disabled = false,\n focusableWhenDisabled,\n tabIndex = 0,\n native: isNativeButton = true,\n composite: compositeProp\n } = parameters;\n const elementRef = React.useRef(null);\n const compositeRootContext = useCompositeRootContext(true);\n const isCompositeItem = compositeProp ?? compositeRootContext !== undefined;\n const {\n props: focusableWhenDisabledProps\n } = useFocusableWhenDisabled({\n focusableWhenDisabled,\n disabled,\n composite: isCompositeItem,\n tabIndex,\n isNativeButton\n });\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (!elementRef.current) {\n return;\n }\n const isButtonTag = isButtonElement(elementRef.current);\n if (isNativeButton) {\n if (!isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a native <button> because the ' + '`nativeButton` prop is true. Rendering a non-<button> removes native button ' + 'semantics, which can impact forms and accessibility. Use a real <button> in the ' + '`render` prop, or set `nativeButton` to `false`.';\n error(`${message}${ownerStackMessage}`);\n }\n } else if (isButtonTag) {\n const ownerStackMessage = SafeReact.captureOwnerStack?.() || '';\n const message = 'A component that acts as a button expected a non-<button> because the `nativeButton` ' + 'prop is false. Rendering a <button> keeps native behavior while Base UI applies ' + 'non-native attributes and handlers, which can add unintended extra attributes (such ' + 'as `role` or `aria-disabled`). Use a non-<button> in the `render` prop, or set ' + '`nativeButton` to `true`.';\n error(`${message}${ownerStackMessage}`);\n }\n }, [isNativeButton]);\n }\n\n // handles a disabled composite button rendering another button, e.g.\n // <Toolbar.Button disabled render={<Menu.Trigger />} />\n // the `disabled` prop needs to pass through 2 `useButton`s then finally\n // delete the `disabled` attribute from DOM\n const updateDisabled = React.useCallback(() => {\n const element = elementRef.current;\n if (!isButtonElement(element)) {\n return;\n }\n if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === undefined && element.disabled) {\n element.disabled = false;\n }\n }, [disabled, focusableWhenDisabledProps.disabled, isCompositeItem]);\n useIsoLayoutEffect(updateDisabled, [updateDisabled]);\n const getButtonProps = React.useCallback((externalProps = {}) => {\n const {\n onClick: externalOnClick,\n onMouseDown: externalOnMouseDown,\n onKeyUp: externalOnKeyUp,\n onKeyDown: externalOnKeyDown,\n onPointerDown: externalOnPointerDown,\n ...otherExternalProps\n } = externalProps;\n return mergeProps({\n onClick(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnClick?.(event);\n },\n onMouseDown(event) {\n if (!disabled) {\n externalOnMouseDown?.(event);\n }\n },\n onKeyDown(event) {\n if (disabled) {\n return;\n }\n makeEventPreventable(event);\n externalOnKeyDown?.(event);\n if (event.baseUIHandlerPrevented) {\n return;\n }\n const isCurrentTarget = event.target === event.currentTarget;\n const currentTarget = event.currentTarget;\n const isButton = isButtonElement(currentTarget);\n const isLink = !isNativeButton && isValidLinkElement(currentTarget);\n const shouldClick = isCurrentTarget && (isNativeButton ? isButton : !isLink);\n const isEnterKey = event.key === 'Enter';\n const isSpaceKey = event.key === ' ';\n const role = currentTarget.getAttribute('role');\n const isTextNavigationRole = role?.startsWith('menuitem') || role === 'option' || role === 'gridcell';\n if (isCurrentTarget && isCompositeItem && isSpaceKey) {\n if (event.defaultPrevented && isTextNavigationRole) {\n return;\n }\n event.preventDefault();\n\n // Only a native-mode item that isn't a real <button> is excluded.\n if (!isNativeButton || isButton) {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(currentTarget, event);\n }\n return;\n }\n\n // Keyboard accessibility for native and non-native elements.\n if (!shouldClick || isNativeButton || !isSpaceKey && !isEnterKey) {\n // Space activates links on keyup (`role=\"button\"` semantics, matching the\n // composite path); prevent the page scroll Space would otherwise trigger.\n // Enter is left to the browser's native link activation.\n if (isCurrentTarget && isLink && isSpaceKey) {\n event.preventDefault();\n }\n return;\n }\n\n // Match native buttons: preventing the keydown's default cancels activation.\n if (event.defaultPrevented) {\n return;\n }\n event.preventDefault();\n if (isEnterKey) {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(currentTarget, event);\n }\n },\n onKeyUp(event) {\n if (disabled) {\n return;\n }\n\n // calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed\n // https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0\n makeEventPreventable(event);\n externalOnKeyUp?.(event);\n if (event.target === event.currentTarget && isNativeButton && isCompositeItem && isButtonElement(event.currentTarget) && event.key === ' ') {\n event.preventDefault();\n return;\n }\n if (event.baseUIHandlerPrevented) {\n return;\n }\n\n // Keyboard accessibility for non interactive elements.\n // Match native buttons: preventing the keyup's default cancels Space activation.\n // Limitation: unlike a native <button>, a prevented *keydown* cannot cancel the\n // activation — no state is kept between keydown and keyup, so we can't tell\n // whether the keydown was prevented or even happened on this element.\n if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && !event.defaultPrevented && event.key === ' ') {\n event.preventBaseUIHandler();\n dispatchClickWithModifiers(event.currentTarget, event);\n }\n },\n onPointerDown(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnPointerDown?.(event);\n }\n }, isNativeButton ? {\n type: 'button'\n } : {\n role: 'button'\n }, focusableWhenDisabledProps, otherExternalProps);\n }, [disabled, focusableWhenDisabledProps, isCompositeItem, isNativeButton]);\n const buttonRef = useStableCallback(element => {\n elementRef.current = element;\n updateDisabled();\n });\n return {\n getButtonProps,\n buttonRef\n };\n}\nfunction isButtonElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'BUTTON';\n}\nfunction isValidLinkElement(elem) {\n return isHTMLElement(elem) && elem.tagName === 'A' && Boolean(elem.href);\n}"],"ignoreList":[0],"mappings":"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"}
|
package/dist/index214.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/@base-ui/react/internals/useBaseUiId.mjs
|
|
4
|
-
function t(t) {
|
|
5
|
-
return e(t, "base-ui");
|
|
6
|
-
}
|
|
1
|
+
//#region ../../node_modules/@base-ui/react/internals/reason-parts.mjs
|
|
2
|
+
var e = "none", t = "trigger-press", n = "trigger-hover", r = "outside-press", i = "item-press", a = "close-press", o = "focus-out", s = "escape-key", c = "list-navigation", l = "cancel-open", u = "imperative-action", d = "window-resize";
|
|
7
3
|
//#endregion
|
|
8
|
-
export { t as
|
|
4
|
+
export { l as cancelOpen, a as closePress, s as escapeKey, o as focusOut, u as imperativeAction, i as itemPress, c as listNavigation, e as none, r as outsidePress, n as triggerHover, t as triggerPress, d as windowResize };
|
|
9
5
|
|
|
10
6
|
//# sourceMappingURL=index214.js.map
|
package/dist/index214.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index214.js","names":[],"sources":["../../../node_modules/@base-ui/react/internals/
|
|
1
|
+
{"version":3,"file":"index214.js","names":["none","triggerPress","triggerHover","outsidePress","itemPress","closePress","focusOut","escapeKey","listNavigation","cancelOpen","imperativeAction","windowResize"],"sources":["../../../node_modules/@base-ui/react/internals/reason-parts.mjs"],"sourcesContent":["export const none = 'none';\nexport const triggerPress = 'trigger-press';\nexport const triggerHover = 'trigger-hover';\nexport const triggerFocus = 'trigger-focus';\nexport const outsidePress = 'outside-press';\nexport const itemPress = 'item-press';\nexport const closePress = 'close-press';\nexport const linkPress = 'link-press';\nexport const clearPress = 'clear-press';\nexport const chipRemovePress = 'chip-remove-press';\nexport const trackPress = 'track-press';\nexport const incrementPress = 'increment-press';\nexport const decrementPress = 'decrement-press';\nexport const inputChange = 'input-change';\nexport const inputClear = 'input-clear';\nexport const inputBlur = 'input-blur';\nexport const inputPaste = 'input-paste';\nexport const inputPress = 'input-press';\nexport const focusOut = 'focus-out';\nexport const escapeKey = 'escape-key';\nexport const closeWatcher = 'close-watcher';\nexport const listNavigation = 'list-navigation';\nexport const keyboard = 'keyboard';\nexport const pointer = 'pointer';\nexport const drag = 'drag';\nexport const wheel = 'wheel';\nexport const scrub = 'scrub';\nexport const cancelOpen = 'cancel-open';\nexport const siblingOpen = 'sibling-open';\nexport const disabled = 'disabled';\nexport const missing = 'missing';\nexport const initial = 'initial';\nexport const imperativeAction = 'imperative-action';\nexport const swipe = 'swipe';\nexport const windowResize = 'window-resize';"],"ignoreList":[0],"mappings":";AAAA,IAAaA,IAAO,QACPC,IAAe,iBACfC,IAAe,iBAEfC,IAAe,iBACfC,IAAY,cACZC,IAAa,eAYbC,IAAW,aACXC,IAAY,cAEZC,IAAiB,mBAMjBC,IAAa,eAKbC,IAAmB,qBAEnBC,IAAe"}
|
package/dist/index215.js
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
1
|
+
import { EMPTY_OBJECT as e } from "./index192.js";
|
|
2
|
+
//#region ../../node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs
|
|
3
|
+
function t(t, n, r, i) {
|
|
4
|
+
let a = !1, o = !1, s = i ?? e;
|
|
5
|
+
return {
|
|
6
|
+
reason: t,
|
|
7
|
+
event: n ?? new Event("base-ui"),
|
|
8
|
+
cancel() {
|
|
9
|
+
a = !0;
|
|
10
|
+
},
|
|
11
|
+
allowPropagation() {
|
|
12
|
+
o = !0;
|
|
13
|
+
},
|
|
14
|
+
get isCanceled() {
|
|
15
|
+
return a;
|
|
16
|
+
},
|
|
17
|
+
get isPropagationAllowed() {
|
|
18
|
+
return o;
|
|
19
|
+
},
|
|
20
|
+
trigger: r,
|
|
21
|
+
...s
|
|
22
|
+
};
|
|
23
|
+
}
|
|
15
24
|
//#endregion
|
|
16
|
-
export {
|
|
25
|
+
export { t as createChangeEventDetails };
|
|
17
26
|
|
|
18
27
|
//# sourceMappingURL=index215.js.map
|
package/dist/index215.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index215.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index215.js","names":["createChangeEventDetails","canceled","allowPropagation","custom","customProperties","EMPTY_OBJECT","event"],"sources":["../../../node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { REASONS } from \"./reasons.mjs\";\n\n/**\n * Maps a change `reason` string to the corresponding native event type.\n */\n\n/**\n * Details of custom change events emitted by Base UI components.\n */\n\n/**\n * Details of custom generic events emitted by Base UI components.\n */\n\n/**\n * Creates a Base UI event details object with the given reason and utilities\n * for preventing Base UI's internal event handling.\n */\nexport function createChangeEventDetails(reason, event, trigger, customProperties) {\n let canceled = false;\n let allowPropagation = false;\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n cancel() {\n canceled = true;\n },\n allowPropagation() {\n allowPropagation = true;\n },\n get isCanceled() {\n return canceled;\n },\n get isPropagationAllowed() {\n return allowPropagation;\n },\n trigger,\n ...custom\n };\n return details;\n}\nexport function createGenericEventDetails(reason, event, customProperties) {\n const custom = customProperties ?? EMPTY_OBJECT;\n const details = {\n reason,\n event: event ?? new Event('base-ui'),\n ...custom\n };\n return details;\n}"],"ignoreList":[0],"mappings":";;AAmBA,SAAgBA,EAAyB,GAAQ,GAAO,GAAS,GAAkB;CACjF,IAAIC,IAAW,IACXC,IAAmB,IACjBC,IAASC,KAAoBC;CAmBnC,OAAO;EAjBL;EACA,OAAOC,KAAS,IAAI,MAAM,SAAS;EACnC,SAAS;GACP,IAAW;EACb;EACA,mBAAmB;GACjB,IAAmB;EACrB;EACA,IAAI,aAAa;GACf,OAAOL;EACT;EACA,IAAI,uBAAuB;GACzB,OAAOC;EACT;EACA;EACA,GAAGC;CAEQ;AACf"}
|
package/dist/index216.js
CHANGED
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { useDialogRootContext as e } from "./index184.js";
|
|
3
|
+
import { useRenderElement as t } from "./index197.js";
|
|
4
|
+
import { useButton as n } from "./index213.js";
|
|
5
|
+
import { closePress as r } from "./index214.js";
|
|
6
|
+
import { createChangeEventDetails as i } from "./index215.js";
|
|
7
|
+
import * as a from "react";
|
|
8
|
+
//#region ../../node_modules/@base-ui/react/dialog/close/DialogClose.mjs
|
|
9
|
+
var o = /*#__PURE__*/ a.forwardRef(function(a, o) {
|
|
10
|
+
let { render: s, className: c, style: l, disabled: u = !1, nativeButton: d = !0, ...f } = a, p = e(), m = p.useState("open"), { getButtonProps: h, buttonRef: g } = n({
|
|
11
|
+
disabled: u,
|
|
12
|
+
native: d
|
|
13
|
+
}), _ = { disabled: u };
|
|
14
|
+
function v(e) {
|
|
15
|
+
m && p.setOpen(!1, i(r, e.nativeEvent));
|
|
16
|
+
}
|
|
17
|
+
return t("button", a, {
|
|
18
|
+
state: _,
|
|
19
|
+
ref: [o, g],
|
|
20
|
+
props: [
|
|
21
|
+
{ onClick: v },
|
|
22
|
+
f,
|
|
23
|
+
h
|
|
24
|
+
]
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
process.env.NODE_ENV !== "production" && (o.displayName = "DialogClose");
|
|
8
28
|
//#endregion
|
|
9
|
-
export {
|
|
29
|
+
export { o as DialogClose };
|
|
10
30
|
|
|
11
31
|
//# sourceMappingURL=index216.js.map
|
package/dist/index216.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index216.js","names":[],"sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index216.js","names":["REASONS.closePress","React$1","DialogClose","elementProps","componentProps","store","useDialogRootContext","open","useButton","nativeButton","state","handleClick","createChangeEventDetails","closePress","event","useRenderElement","forwardedRef","buttonRef","getButtonProps"],"sources":["../../../node_modules/@base-ui/react/dialog/close/DialogClose.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useDialogRootContext } from \"../root/DialogRootContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useButton } from \"../../internals/use-button/index.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\n\n/**\n * A button that closes the dialog.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)\n */\nexport const DialogClose = /*#__PURE__*/React.forwardRef(function DialogClose(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n disabled = false,\n nativeButton = true,\n ...elementProps\n } = componentProps;\n const store = useDialogRootContext();\n const open = store.useState('open');\n const {\n getButtonProps,\n buttonRef\n } = useButton({\n disabled,\n native: nativeButton\n });\n const state = {\n disabled\n };\n function handleClick(event) {\n if (open) {\n store.setOpen(false, createChangeEventDetails(REASONS.closePress, event.nativeEvent));\n }\n }\n return useRenderElement('button', componentProps, {\n state,\n ref: [forwardedRef, buttonRef],\n props: [{\n onClick: handleClick\n }, elementProps, getButtonProps]\n });\n});\nif (process.env.NODE_ENV !== \"production\") DialogClose.displayName = \"DialogClose\";"],"ignoreList":[0],"mappings":";;;;;;;;AAeA,IAAaE,IAA2B,gBAAM,WAAW,SAAqB,GAAgB,GAAc;CAC1G,IAAM,EACJ,WACA,cACA,UACA,cAAW,IACX,kBAAe,IACf,GAAGC,MACDC,GACEC,IAAQC,EAAqB,GAC7BC,IAAOF,EAAM,SAAS,MAAM,GAC5B,EACJ,mBACA,iBACEG,EAAU;EACZ;EACA,QAAQC;CACV,CAAC,GACKC,IAAQ,EACZ,YACF;CACA,SAASC,EAAY,GAAO;EAC1B,AAAIJ,KACFF,EAAM,QAAQ,IAAOO,EAAyBZ,GAAoBc,EAAM,WAAW,CAAC;CAExF;CACA,OAAOC,EAAiB,UAAUX,GAAgB;EAChD;EACA,KAAK,CAACY,GAAcC,CAAS;EAC7B,OAAO;GAAC,EACN,SAASN,EACX;GAAGR;GAAce;EAAc;CACjC,CAAC;AACH,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAY,cAAc"}
|