@rpcbase/ui 0.230.0 → 0.231.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/components/PhoneNumberInput/index.d.ts.map +1 -1
- package/dist/index100.js +5 -52
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +7 -3
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +5 -4
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +4 -15
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +4 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +6 -7
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +145 -16
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +39 -4
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +7 -5
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +13 -5
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +13 -4
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +7 -4
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +31 -6
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +10 -24
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +10 -6
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +8 -4
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +13 -6
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +101 -5
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +20 -5
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +53 -5
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +72 -4
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +9 -8
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +20 -5
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +16 -4
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +23 -4
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +6 -6
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +4 -144
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +23 -39
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +35 -5
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +16 -8
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +6 -13
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -13
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -7
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +4 -31
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +4 -10
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +3 -10
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +6 -8
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +24 -14
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +7 -101
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +7 -20
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +5 -53
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +3 -72
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +3 -9
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -20
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +3 -16
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +4 -23
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +3 -6
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -5
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +3 -23
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +6 -35
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +69 -16
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +2 -7
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +363 -4
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +261 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +60 -4
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +46 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +169 -3
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +109 -6
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +25 -24
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +8 -8
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +4 -6
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -5
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +4 -3
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +466 -3
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +185 -4
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +107 -3
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +262 -4
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +9 -3
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +42 -3
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +4 -3
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +11 -13
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +62 -148
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +37 -30
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +14 -10
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +23 -48
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +109 -10
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +13 -45
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +4 -95
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -87
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +247 -240
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +5 -106
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +11 -52
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +19 -11
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +13 -38
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +261 -8
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +4 -116
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +28 -18
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +126 -15
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +5 -3
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +76 -34
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +65 -19
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +8 -9
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +15 -8
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +91 -18
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +63 -26
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +44 -15
- package/dist/index195.js.map +1 -1
- package/dist/index200.js +1 -1
- package/dist/index203.js +1 -1
- package/dist/index205.js +2 -2
- package/dist/index206.js +2 -2
- package/dist/index209.js +3 -3
- package/dist/index210.js +1 -1
- package/dist/index211.js +2 -2
- package/dist/index212.js +2 -2
- package/dist/index214.js +1 -1
- package/dist/index215.js +2 -2
- package/dist/index216.js +1 -1
- package/dist/index217.js +7 -7
- package/dist/index218.js +3 -3
- package/dist/index219.js +1 -1
- package/dist/index220.js +1 -1
- package/dist/index221.js +3 -3
- package/dist/index222.js +1 -1
- package/dist/index223.js +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +1 -1
- package/dist/index228.js +2 -2
- package/dist/index229.js +2 -2
- package/dist/index230.js +3 -3
- package/dist/index231.js +2 -2
- package/dist/index232.js +1 -1
- package/dist/index234.js +1 -1
- package/dist/index235.js +2 -2
- package/dist/index236.js +1 -1
- package/dist/index247.js +1 -1
- package/dist/index248.js +1 -1
- package/dist/index250.js +1 -1
- package/dist/index252.js +1 -1
- package/dist/index253.js +1 -1
- package/dist/index254.js +3 -3
- package/dist/index255.js +2 -2
- package/dist/index259.js +11 -5
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +50 -11
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +4 -51
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +30 -4
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +12 -25
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +5 -16
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +21 -5
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +51 -21
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +25 -51
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +40 -24
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +37 -39
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +45 -40
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +21 -45
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +70 -23
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +17 -19
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +11 -20
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +26 -69
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +12 -16
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +17 -10
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +35 -26
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +261 -12
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +275 -15
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +68 -36
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +96 -62
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +77 -256
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +3 -278
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +29 -68
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +16 -45
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +34 -99
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +16 -83
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +4 -13
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +26 -3
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +26 -27
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +4 -17
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +79 -38
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +268 -33
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +11 -68
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +10 -16
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +25 -3
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +14 -108
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +119 -20
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +5 -28
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +41 -4
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +64 -125
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +14 -5
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +7 -78
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +5 -269
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -11
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +11 -28
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +8 -16
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +134 -11
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +24 -24
- package/dist/index310.js +398 -24
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +51 -15
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +11 -125
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +11 -5
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +12 -39
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +148 -59
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +30 -13
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +10 -14
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +48 -7
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +12 -13
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +3 -3
- package/dist/index320.js +44 -5
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +95 -3
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +86 -10
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +105 -7
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +48 -129
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +11 -261
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +29 -391
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +8 -52
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +3 -11
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +9 -11
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +116 -4
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +17 -11
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +16 -4
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +37 -5
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +20 -11
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +8 -78
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +16 -63
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +27 -7
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +15 -91
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +7 -19
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +4 -4
- package/dist/index340.js +11 -4
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +8 -17
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +13 -12
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +3 -8
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +3 -11
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +16 -7
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +50 -12
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +5 -3
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +122 -3
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +33 -4
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index350.js +74 -15
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +141 -7
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +61 -51
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +49 -11
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +15 -17
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +8 -5
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +4 -5
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +11 -20
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +21 -44
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +5 -18
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +10 -10
- package/dist/index360.js +17 -4
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +12 -200
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +4 -78
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +10 -121
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +16 -17
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +5 -32
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +20 -73
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +45 -143
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +17 -61
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +4 -49
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index370.js +200 -4
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +77 -11
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +20 -21
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +8 -4
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +26 -5
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +27 -4
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +136 -14
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +12 -8
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +226 -5
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +3 -4
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index380.js +19 -545
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +77 -46
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +12 -18
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +3 -5
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +71 -7
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +9 -7
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +15 -7
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +4 -11
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +4 -8
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +4 -13
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index390.js +16 -3
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +9 -3
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +5 -8
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +5 -26
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +543 -24
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +44 -135
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +16 -11
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +5 -226
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +7 -3
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +6 -19
- package/dist/index399.js.map +1 -1
- package/dist/index40.js +3 -3
- package/dist/index400.js +7 -77
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +12 -12
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +8 -3
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +12 -71
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +3 -9
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +3 -16
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +14 -4
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +490 -54
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +5 -68
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +55 -30
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index410.js +68 -9
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +26 -148
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +9 -108
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +153 -8
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +108 -2
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +7 -43
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +2 -56
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +43 -7
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +56 -2
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +7 -54
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +2 -56
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +54 -14
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +51 -487
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +2 -16
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +2 -29
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +2 -13
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +2 -7
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +16 -2
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +29 -2
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +13 -2
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +7 -2
- package/dist/index430.js.map +1 -1
- package/dist/index48.js +2 -2
- package/dist/index49.js +31 -31
- package/dist/index50.js +29 -29
- package/dist/index51.js +2 -2
- package/dist/index52.js +12 -12
- package/dist/index53.js +4 -4
- package/dist/index54.js +1 -1
- package/dist/index55.js +21 -21
- package/dist/index56.js +5 -5
- package/dist/index57.js +5 -5
- package/dist/index58.js +8 -8
- package/dist/index59.js +5 -5
- package/dist/index60.js +17 -17
- package/dist/index61.js +5 -5
- package/dist/index62.js +3 -3
- package/dist/index74.js +1 -1
- package/dist/index75.js +2 -2
- package/dist/index76.js +2 -2
- package/dist/index79.js +52 -6
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +4 -68
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +5 -2
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +15 -363
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +5 -261
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +7 -60
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +16 -46
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +4 -169
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +4 -109
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +5 -24
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +6 -8
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +4 -4
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +4 -5
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +6 -4
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +24 -466
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +6 -185
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +4 -107
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +6 -262
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -9
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +4 -42
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +5 -4
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index295.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index295.js","sources":["../../../node_modules/@base-ui/react/esm/internals/useRenderElement.js"],"sourcesContent":["import _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nimport { useMergedRefs, useMergedRefsN } from '@base-ui/utils/useMergedRefs';\nimport { getReactElementRef } from '@base-ui/utils/getReactElementRef';\nimport { mergeObjects } from '@base-ui/utils/mergeObjects';\nimport { warn } from '@base-ui/utils/warn';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getStateAttributesProps } from \"./getStateAttributesProps.js\";\nimport { resolveClassName } from \"../utils/resolveClassName.js\";\nimport { resolveStyle } from \"../utils/resolveStyle.js\";\nimport { mergeProps, mergePropsN, mergeClassNames } from \"../merge-props/index.js\";\nimport { createElement as _createElement } from \"react\";\n/**\n * Renders a Base UI element.\n *\n * @param element The default HTML element to render. Can be overridden by the `render` prop.\n * @param componentProps An object containing the `render` and `className` props to be used for element customization. Other props are ignored.\n * @param params Additional parameters for rendering the element.\n */\nexport function useRenderElement(element, componentProps, params = {}) {\n const renderProp = componentProps.render;\n const outProps = useRenderElementProps(componentProps, params);\n if (params.enabled === false) {\n return null;\n }\n const state = params.state ?? EMPTY_OBJECT;\n return evaluateRenderProp(element, renderProp, outProps, state);\n}\n\n/**\n * Computes render element final props.\n */\nfunction useRenderElementProps(componentProps, params = {}) {\n const {\n className: classNameProp,\n style: styleProp,\n render: renderProp\n } = componentProps;\n const {\n state = EMPTY_OBJECT,\n ref,\n props,\n stateAttributesMapping,\n enabled = true\n } = params;\n const className = enabled ? resolveClassName(classNameProp, state) : undefined;\n const style = enabled ? resolveStyle(styleProp, state) : undefined;\n const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT;\n const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : undefined;\n\n // Ensure outProps is always a new mutable object when enabled, never EMPTY_OBJECT.\n // This prevents potential TypeError when setting ref, className, or style properties,\n // since EMPTY_OBJECT is frozen and mutations would fail in strict mode.\n const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;\n\n // SAFETY: The `useMergedRefs` functions use a single hook to store the same value,\n // switching between them at runtime is safe. If this assertion fails, React will\n // throw at runtime anyway.\n // This also skips the `useMergedRefs` call on the server, which is fine because\n // refs are not used on the server side.\n /* eslint-disable react-hooks/rules-of-hooks */\n if (typeof document !== 'undefined') {\n if (!enabled) {\n useMergedRefs(null, null);\n } else if (Array.isArray(ref)) {\n outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);\n } else {\n outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);\n }\n }\n if (!enabled) {\n return EMPTY_OBJECT;\n }\n if (className !== undefined) {\n outProps.className = mergeClassNames(outProps.className, className);\n }\n if (style !== undefined) {\n outProps.style = mergeObjects(outProps.style, style);\n }\n return outProps;\n}\nfunction resolveRenderFunctionProps(props) {\n if (Array.isArray(props)) {\n return mergePropsN(props);\n }\n return mergeProps(undefined, props);\n}\n\n// The symbol React uses internally for lazy components\n// https://github.com/facebook/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/shared/ReactSymbols.js#L31\n//\n// TODO delete once https://github.com/facebook/react/issues/32392 is fixed\nconst REACT_LAZY_TYPE = Symbol.for('react.lazy');\nconst COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;\nconst LOWERCASE_CHARACTER_PATTERN = /[a-z]/;\nfunction evaluateRenderProp(element, render, props, state) {\n if (render) {\n if (typeof render === 'function') {\n if (process.env.NODE_ENV !== 'production') {\n warnIfRenderPropLooksLikeComponent(render);\n }\n return render(props, state);\n }\n const mergedProps = mergeProps(props, render.props);\n mergedProps.ref = props.ref;\n let newElement = render;\n\n // Workaround for https://github.com/facebook/react/issues/32392\n // This works because the toArray() logic unwrap lazy element type in\n // https://github.com/facebook/react/blob/a0566250b210499b4c5677f5ac2eedbd71d51a1b/packages/react/src/ReactChildren.js#L186\n if (newElement?.$$typeof === REACT_LAZY_TYPE) {\n const children = React.Children.toArray(render);\n newElement = children[0];\n }\n\n // There is a high number of indirections, the error message thrown by React.cloneElement() is\n // hard to use for developers, this logic provides a better context.\n //\n // Our general guideline is to never change the control flow depending on the environment.\n // However, React.cloneElement() throws if React.isValidElement() is false,\n // so we can throw before with custom message.\n if (process.env.NODE_ENV !== 'production') {\n if (! /*#__PURE__*/React.isValidElement(newElement)) {\n throw new Error(['Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.', 'A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.', 'https://base-ui.com/r/invalid-render-prop'].join('\\n'));\n }\n }\n return /*#__PURE__*/React.cloneElement(newElement, mergedProps);\n }\n if (element) {\n if (typeof element === 'string') {\n return renderTag(element, props);\n }\n }\n // Unreachable, but the typings on `useRenderElement` need to be reworked\n // to annotate it correctly.\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: Render element or function are not defined.' : _formatErrorMessage(8));\n}\nfunction warnIfRenderPropLooksLikeComponent(renderFn) {\n const functionName = renderFn.name;\n if (functionName.length === 0) {\n return;\n }\n if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {\n return;\n }\n if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {\n return;\n }\n warn(`The \\`render\\` prop received a function named \\`${functionName}\\` that starts with an uppercase letter.`, 'This usually means a React component was passed directly as `render={Component}`.', 'Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.', 'If this is an intentional render callback, rename it to start with a lowercase letter.', 'Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.', 'https://base-ui.com/r/invalid-render-prop');\n}\nfunction renderTag(Tag, props) {\n if (Tag === 'button') {\n return /*#__PURE__*/_createElement(\"button\", {\n type: \"button\",\n ...props,\n key: props.key\n });\n }\n if (Tag === 'img') {\n return /*#__PURE__*/_createElement(\"img\", {\n alt: \"\",\n ...props,\n key: props.key\n });\n }\n return /*#__PURE__*/React.createElement(Tag, props);\n}"],"names":["useRenderElement","element","componentProps","params","renderProp","outProps","useRenderElementProps","state","EMPTY_OBJECT","evaluateRenderProp","classNameProp","styleProp","ref","props","stateAttributesMapping","enabled","className","resolveClassName","style","resolveStyle","stateProps","getStateAttributesProps","resolvedProps","resolveRenderFunctionProps","mergeObjects","useMergedRefsN","getReactElementRef","useMergedRefs","mergeClassNames","mergePropsN","mergeProps","REACT_LAZY_TYPE","COMPONENT_IDENTIFIER_PATTERN","LOWERCASE_CHARACTER_PATTERN","render","warnIfRenderPropLooksLikeComponent","mergedProps","newElement","React","renderTag","_formatErrorMessage","renderFn","functionName","warn","Tag","_createElement"],"mappings":";;;;;;;;;;;;AAmBO,SAASA,EAAiBC,GAASC,GAAgBC,IAAS,CAAA,GAAI;AACrE,QAAMC,IAAaF,EAAe,QAC5BG,IAAWC,EAAsBJ,GAAgBC,CAAM;AAC7D,MAAIA,EAAO,YAAY;AACrB,WAAO;AAET,QAAMI,IAAQJ,EAAO,SAASK;AAC9B,SAAOC,EAAmBR,GAASG,GAAYC,GAAUE,CAAK;AAChE;AAKA,SAASD,EAAsBJ,GAAgBC,IAAS,IAAI;AAC1D,QAAM;AAAA,IACJ,WAAWO;AAAA,IACX,OAAOC;AAAA,IACP,QAAQP;AAAA,EACZ,IAAMF,GACE;AAAA,IACJ,OAAAK,IAAQC;AAAA,IACR,KAAAI;AAAA,IACA,OAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,EACd,IAAMZ,GACEa,IAAYD,IAAUE,EAAiBP,GAAeH,CAAK,IAAI,QAC/DW,IAAQH,IAAUI,EAAaR,GAAWJ,CAAK,IAAI,QACnDa,IAAaL,IAAUM,EAAwBd,GAAOO,CAAsB,IAAIN,GAChFc,IAAgBP,KAAWF,IAAQU,EAA2BV,CAAK,IAAI,QAKvER,IAAWU,IAAUS,EAAaJ,GAAYE,CAAa,KAAK,CAAA,IAAKd;AAiB3E,SATI,OAAO,WAAa,QACjBO,IAEM,MAAM,QAAQH,CAAG,IAC1BP,EAAS,MAAMoB,EAAe,CAACpB,EAAS,KAAKqB,EAAmBtB,CAAU,GAAG,GAAGQ,CAAG,CAAC,IAEpFP,EAAS,MAAMsB,EAActB,EAAS,KAAKqB,EAAmBtB,CAAU,GAAGQ,CAAG,IAJ9Ee,EAAc,MAAM,IAAI,IAOvBZ,K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CAA4C,qFAAqF,yGAAyG,0FAA0F,2FAA2F,2CAA2C;AAChhB;AACA,SAASH,EAAUK,GAAK/B,GAAO;AAC7B,SAAI+B,MAAQ,WACUC,gBAAAA,EAAe,UAAU;AAAA,IAC3C,MAAM;AAAA,IACN,GAAGhC;AAAA,IACH,KAAKA,EAAM;AAAA,EACjB,CAAK,IAEC+B,MAAQ,QACUC,gBAAAA,EAAe,OAAO;AAAA,IACxC,KAAK;AAAA,IACL,GAAGhC;AAAA,IACH,KAAKA,EAAM;AAAA,EACjB,CAAK,IAEiB,gBAAAyB,EAAM,cAAcM,GAAK/B,CAAK;AACpD;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index295.js","sources":["../../../node_modules/@base-ui/react/esm/select/positioner/SelectPositionerContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const SelectPositionerContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") SelectPositionerContext.displayName = \"SelectPositionerContext\";\nexport function useSelectPositionerContext() {\n const context = React.useContext(SelectPositionerContext);\n if (!context) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.' : _formatErrorMessage(59));\n }\n return context;\n}"],"names":["SelectPositionerContext","React","useSelectPositionerContext","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAuC,gBAAAC,EAAM,cAAc,MAAS;AAC7E,QAAQ,IAAI,aAAa,iBAAcD,EAAwB,cAAc;AAC1E,SAASE,IAA6B;AAC3C,QAAMC,IAAUF,EAAM,WAAWD,CAAuB;AACxD,MAAI,CAACG;AACH,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,mHAAmHC,EAAoB,EAAE,CAAC;AAEpM,SAAOD;AACT;","x_google_ignoreList":[0]}
|
package/dist/index296.js
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const t = e.getBoundingClientRect();
|
|
4
|
-
if (process.env.NODE_ENV !== "production")
|
|
5
|
-
return t;
|
|
6
|
-
const i = l(e), o = i.getComputedStyle(e, "::before"), n = i.getComputedStyle(e, "::after");
|
|
7
|
-
if (!(o.content !== "none" || n.content !== "none"))
|
|
8
|
-
return t;
|
|
9
|
-
const r = parseFloat(o.width) || 0, a = parseFloat(o.height) || 0, c = parseFloat(n.width) || 0, f = parseFloat(n.height) || 0, d = Math.max(t.width, r, c), g = Math.max(t.height, a, f), s = d - t.width, h = g - t.height;
|
|
10
|
-
return {
|
|
11
|
-
left: t.left - s / 2,
|
|
12
|
-
right: t.right + s / 2,
|
|
13
|
-
top: t.top - h / 2,
|
|
14
|
-
bottom: t.bottom + h / 2
|
|
15
|
-
};
|
|
1
|
+
function e(o, t) {
|
|
2
|
+
o && Object.assign(o.style, t);
|
|
16
3
|
}
|
|
4
|
+
const i = {
|
|
5
|
+
position: "relative",
|
|
6
|
+
maxHeight: "100%",
|
|
7
|
+
overflowX: "hidden",
|
|
8
|
+
overflowY: "auto"
|
|
9
|
+
};
|
|
17
10
|
export {
|
|
18
|
-
|
|
11
|
+
i as LIST_FUNCTIONAL_STYLES,
|
|
12
|
+
e as clearStyles
|
|
19
13
|
};
|
|
20
14
|
//# sourceMappingURL=index296.js.map
|
package/dist/index296.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index296.js","sources":["../../../node_modules/@base-ui/react/esm/utils
|
|
1
|
+
{"version":3,"file":"index296.js","sources":["../../../node_modules/@base-ui/react/esm/select/popup/utils.js"],"sourcesContent":["export function clearStyles(element, originalStyles) {\n if (element) {\n Object.assign(element.style, originalStyles);\n }\n}\nexport const LIST_FUNCTIONAL_STYLES = {\n position: 'relative',\n maxHeight: '100%',\n overflowX: 'hidden',\n overflowY: 'auto'\n};"],"names":["clearStyles","element","originalStyles","LIST_FUNCTIONAL_STYLES"],"mappings":"AAAO,SAASA,EAAYC,GAASC,GAAgB;AACnD,EAAID,KACF,OAAO,OAAOA,EAAQ,OAAOC,CAAc;AAE/C;AACY,MAACC,IAAyB;AAAA,EACpC,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AACb;","x_google_ignoreList":[0]}
|
package/dist/index297.js
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { popupStateMapping as f } from "./index173.js";
|
|
2
|
+
import { useRenderElement as m } from "./index172.js";
|
|
3
|
+
import { getDisabledMountTransitionStyles as u } from "./index305.js";
|
|
4
|
+
function M(e, o, {
|
|
5
|
+
styles: n,
|
|
6
|
+
transitionStatus: r,
|
|
7
|
+
props: i,
|
|
8
|
+
refs: p,
|
|
9
|
+
hidden: s,
|
|
10
|
+
inert: a = !1
|
|
11
|
+
}) {
|
|
12
|
+
const t = {
|
|
13
|
+
...n
|
|
14
|
+
};
|
|
15
|
+
return a && (t.pointerEvents = "none"), m("div", e, {
|
|
16
|
+
state: o,
|
|
17
|
+
ref: p,
|
|
18
|
+
props: [{
|
|
19
|
+
role: "presentation",
|
|
20
|
+
hidden: s,
|
|
21
|
+
style: t
|
|
22
|
+
}, u(r), i],
|
|
23
|
+
stateAttributesMapping: f
|
|
24
|
+
});
|
|
3
25
|
}
|
|
4
26
|
export {
|
|
5
|
-
|
|
27
|
+
M as usePositioner
|
|
6
28
|
};
|
|
7
29
|
//# sourceMappingURL=index297.js.map
|
package/dist/index297.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index297.js","sources":["../../../node_modules/@base-ui/react/esm/utils/
|
|
1
|
+
{"version":3,"file":"index297.js","sources":["../../../node_modules/@base-ui/react/esm/utils/usePositioner.js"],"sourcesContent":["'use client';\n\nimport { popupStateMapping } from \"./popupStateMapping.js\";\nimport { useRenderElement } from \"../internals/useRenderElement.js\";\nimport { getDisabledMountTransitionStyles } from \"./getDisabledMountTransitionStyles.js\";\n/**\n * Renders the shared outer Positioner element used by popup components.\n * Applies the common role, hidden state, transition styles, state attributes, and optional inert styling.\n */\nexport function usePositioner(componentProps, state, {\n styles,\n transitionStatus,\n props,\n refs,\n hidden,\n inert = false\n}) {\n const style = {\n ...styles\n };\n if (inert) {\n style.pointerEvents = 'none';\n }\n return useRenderElement('div', componentProps, {\n state,\n ref: refs,\n props: [{\n role: 'presentation',\n hidden,\n style\n }, getDisabledMountTransitionStyles(transitionStatus), props],\n stateAttributesMapping: popupStateMapping\n });\n}"],"names":["usePositioner","componentProps","state","styles","transitionStatus","props","refs","hidden","inert","style","useRenderElement","getDisabledMountTransitionStyles","popupStateMapping"],"mappings":";;;AASO,SAASA,EAAcC,GAAgBC,GAAO;AAAA,EACnD,QAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC,IAAQ;AACV,GAAG;AACD,QAAMC,IAAQ;AAAA,IACZ,GAAGN;AAAA,EACP;AACE,SAAIK,MACFC,EAAM,gBAAgB,SAEjBC,EAAiB,OAAOT,GAAgB;AAAA,IAC7C,OAAAC;AAAA,IACA,KAAKI;AAAA,IACL,OAAO,CAAC;AAAA,MACN,MAAM;AAAA,MACN,QAAAC;AAAA,MACA,OAAAE;AAAA,IACN,GAAOE,EAAiCP,CAAgB,GAAGC,CAAK;AAAA,IAC5D,wBAAwBO;AAAA,EAC5B,CAAG;AACH;","x_google_ignoreList":[0]}
|
package/dist/index298.js
CHANGED
|
@@ -1,114 +1,20 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const {
|
|
12
|
-
disabled: o = !1,
|
|
13
|
-
focusableWhenDisabled: C,
|
|
14
|
-
tabIndex: P = 0,
|
|
15
|
-
native: t = !0,
|
|
16
|
-
composite: T
|
|
17
|
-
} = a, i = l.useRef(null), E = L(!0), s = T ?? E !== void 0, {
|
|
18
|
-
props: u
|
|
19
|
-
} = W({
|
|
20
|
-
focusableWhenDisabled: C,
|
|
21
|
-
disabled: o,
|
|
22
|
-
composite: s,
|
|
23
|
-
tabIndex: P,
|
|
24
|
-
isNativeButton: t
|
|
25
|
-
});
|
|
26
|
-
process.env.NODE_ENV !== "production" && l.useEffect(() => {
|
|
27
|
-
if (!i.current)
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { ownerDocument as m } from "./index284.js";
|
|
3
|
+
import { useScrollLock as p } from "./index348.js";
|
|
4
|
+
import { useIsoLayoutEffect as h } from "./index261.js";
|
|
5
|
+
const S = 20;
|
|
6
|
+
function L(t, c, o, l) {
|
|
7
|
+
const [s, r] = e.useState(!1);
|
|
8
|
+
h(() => {
|
|
9
|
+
if (!t || !c || o == null) {
|
|
10
|
+
r(!1);
|
|
28
11
|
return;
|
|
29
|
-
const n = f(i.current);
|
|
30
|
-
if (t) {
|
|
31
|
-
if (!n) {
|
|
32
|
-
const r = B.captureOwnerStack?.() || "";
|
|
33
|
-
y(`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\`.${r}`);
|
|
34
|
-
}
|
|
35
|
-
} else if (n) {
|
|
36
|
-
const r = B.captureOwnerStack?.() || "";
|
|
37
|
-
y(`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\`.${r}`);
|
|
38
12
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
f(n) && s && o && u.disabled === void 0 && n.disabled && (n.disabled = !1);
|
|
43
|
-
}, [o, u.disabled, s]);
|
|
44
|
-
A(p, [p]);
|
|
45
|
-
const U = l.useCallback((n = {}) => {
|
|
46
|
-
const {
|
|
47
|
-
onClick: r,
|
|
48
|
-
onMouseDown: d,
|
|
49
|
-
onKeyUp: O,
|
|
50
|
-
onKeyDown: I,
|
|
51
|
-
onPointerDown: K,
|
|
52
|
-
...N
|
|
53
|
-
} = n;
|
|
54
|
-
return $({
|
|
55
|
-
type: t ? "button" : void 0,
|
|
56
|
-
onClick(e) {
|
|
57
|
-
if (o) {
|
|
58
|
-
e.preventDefault();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
r?.(e);
|
|
62
|
-
},
|
|
63
|
-
onMouseDown(e) {
|
|
64
|
-
o || d?.(e);
|
|
65
|
-
},
|
|
66
|
-
onKeyDown(e) {
|
|
67
|
-
if (o || (x(e), I?.(e), e.baseUIHandlerPrevented))
|
|
68
|
-
return;
|
|
69
|
-
const b = e.target === e.currentTarget, c = e.currentTarget, g = f(c), h = !t && V(c), k = b && (t ? g : !h), D = e.key === "Enter", w = e.key === " ", m = c.getAttribute("role"), S = m?.startsWith("menuitem") || m === "option" || m === "gridcell";
|
|
70
|
-
if (b && s && w) {
|
|
71
|
-
if (e.defaultPrevented && S)
|
|
72
|
-
return;
|
|
73
|
-
e.preventDefault(), h || t && g ? (c.click(), e.preventBaseUIHandler()) : k && (r?.(e), e.preventBaseUIHandler());
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
k && (!t && (w || D) && e.preventDefault(), !t && D && r?.(e));
|
|
77
|
-
},
|
|
78
|
-
onKeyUp(e) {
|
|
79
|
-
if (!o) {
|
|
80
|
-
if (x(e), O?.(e), e.target === e.currentTarget && t && s && f(e.currentTarget) && e.key === " ") {
|
|
81
|
-
e.preventDefault();
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
e.baseUIHandlerPrevented || e.target === e.currentTarget && !t && !s && e.key === " " && r?.(e);
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
onPointerDown(e) {
|
|
88
|
-
if (o) {
|
|
89
|
-
e.preventDefault();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
K?.(e);
|
|
93
|
-
}
|
|
94
|
-
}, t ? void 0 : {
|
|
95
|
-
role: "button"
|
|
96
|
-
}, u, N);
|
|
97
|
-
}, [o, u, s, t]), R = H((n) => {
|
|
98
|
-
i.current = n, p();
|
|
99
|
-
});
|
|
100
|
-
return {
|
|
101
|
-
getButtonProps: U,
|
|
102
|
-
buttonRef: R
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
function f(a) {
|
|
106
|
-
return M(a) && a.tagName === "BUTTON";
|
|
107
|
-
}
|
|
108
|
-
function V(a) {
|
|
109
|
-
return !!(a?.tagName === "A" && a?.href);
|
|
13
|
+
const u = m(o).documentElement.clientWidth, f = o.offsetWidth;
|
|
14
|
+
r(u > 0 && f > 0 && f >= u - S);
|
|
15
|
+
}, [t, c, o]), p(t && (!c || s), l);
|
|
110
16
|
}
|
|
111
17
|
export {
|
|
112
|
-
|
|
18
|
+
L as useAnchoredPopupScrollLock
|
|
113
19
|
};
|
|
114
20
|
//# sourceMappingURL=index298.js.map
|
package/dist/index298.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/esm/internals/use-button/useButton.js"],"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.js\";\nimport { useCompositeRootContext } from \"../composite/root/CompositeRootContext.js\";\nimport { useFocusableWhenDisabled } from \"../../utils/useFocusableWhenDisabled.js\";\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 const type = isNativeButton ? 'button' : undefined;\n return mergeProps({\n type,\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 if (isLink || isNativeButton && isButton) {\n currentTarget.click();\n event.preventBaseUIHandler();\n } else if (shouldClick) {\n externalOnClick?.(event);\n event.preventBaseUIHandler();\n }\n return;\n }\n\n // Keyboard accessibility for native and non-native elements.\n if (shouldClick) {\n if (!isNativeButton && (isSpaceKey || isEnterKey)) {\n event.preventDefault();\n }\n if (!isNativeButton && isEnterKey) {\n externalOnClick?.(event);\n }\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 if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && event.key === ' ') {\n externalOnClick?.(event);\n }\n },\n onPointerDown(event) {\n if (disabled) {\n event.preventDefault();\n return;\n }\n externalOnPointerDown?.(event);\n }\n }, !isNativeButton ? {\n role: 'button'\n } : undefined, 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 Boolean(elem?.tagName === 'A' && elem?.href);\n}"],"names":["useButton","parameters","disabled","focusableWhenDisabled","tabIndex","isNativeButton","compositeProp","elementRef","React","compositeRootContext","useCompositeRootContext","isCompositeItem","focusableWhenDisabledProps","useFocusableWhenDisabled","isButtonTag","isButtonElement","ownerStackMessage","SafeReact","error","updateDisabled","element","useIsoLayoutEffect","getButtonProps","externalProps","externalOnClick","externalOnMouseDown","externalOnKeyUp","externalOnKeyDown","externalOnPointerDown","otherExternalProps","mergeProps","event","makeEventPreventable","isCurrentTarget","currentTarget","isButton","isLink","isValidLinkElement","shouldClick","isEnterKey","isSpaceKey","role","isTextNavigationRole","buttonRef","useStableCallback","elem","isHTMLElement"],"mappings":";;;;;;;;;AAWO,SAASA,EAAUC,IAAa,IAAI;AACzC,QAAM;AAAA,IACJ,UAAAC,IAAW;AAAA,IACX,uBAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,QAAQC,IAAiB;AAAA,IACzB,WAAWC;AAAA,EACf,IAAML,GACEM,IAAaC,EAAM,OAAO,IAAI,GAC9BC,IAAuBC,EAAwB,EAAI,GACnDC,IAAkBL,KAA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,OAC/FP,IAAkBO,CAAK;AAAA;AAAA,MAE3B;AAAA,MACA,cAAcA,GAAO;AACnB,YAAI7B,GAAU;AACZ,UAAA6B,EAAM,eAAc;AACpB;AAAA,QACF;AACA,QAAAH,IAAwBG,CAAK;AAAA,MAC/B;AAAA,IACN,GAAQ1B,IAEA,SAFiB;AAAA,MACnB,MAAM;AAAA,IACZ,GAAmBO,GAA4BiB,CAAkB;AAAA,EAC/D,GAAG,CAAC3B,GAAUU,GAA4BD,GAAiBN,CAAc,CAAC,GACpEsC,IAAYC,EAAkB,CAAAxB,MAAW;AAC7C,IAAAb,EAAW,UAAUa,GACrBD,EAAc;AAAA,EAChB,CAAC;AACD,SAAO;AAAA,IACL,gBAAAG;AAAA,IACA,WAAAqB;AAAA,EACJ;AACA;AACA,SAAS5B,EAAgB8B,GAAM;AAC7B,SAAOC,EAAcD,CAAI,KAAKA,EAAK,YAAY;AACjD;AACA,SAASR,EAAmBQ,GAAM;AAChC,SAAO,GAAQA,GAAM,YAAY,OAAOA,GAAM;AAChD;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/esm/utils/useAnchoredPopupScrollLock.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\n\n// Touch-opened popups normally avoid scroll locking so users can still swipe outside to dismiss.\n// This hook re-enables scroll lock only when the popup is effectively full-width.\n// Treat popups with up to 20px of total horizontal gutter as full-width so common ~10px side\n// padding still locks scroll, since that leaves too little outside space for a reliable swipe.\nconst VIEWPORT_WIDTH_TOLERANCE_PX = 20;\n\n/**\n * Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when\n * enabled. For touch opens, scroll lock is applied only when the positioner width is effectively\n * viewport-sized.\n */\nexport function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {\n const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React.useState(false);\n useIsoLayoutEffect(() => {\n if (!enabled || !touchOpen || positionerElement == null) {\n setTouchOpenShouldLockScroll(false);\n return;\n }\n const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;\n const popupWidth = positionerElement.offsetWidth;\n setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);\n }, [enabled, touchOpen, positionerElement]);\n useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);\n}"],"names":["VIEWPORT_WIDTH_TOLERANCE_PX","useAnchoredPopupScrollLock","enabled","touchOpen","positionerElement","referenceElement","touchOpenShouldLockScroll","setTouchOpenShouldLockScroll","React","useIsoLayoutEffect","viewportWidth","ownerDocument","popupWidth","useScrollLock"],"mappings":";;;;AAWA,MAAMA,IAA8B;AAO7B,SAASC,EAA2BC,GAASC,GAAWC,GAAmBC,GAAkB;AAClG,QAAM,CAACC,GAA2BC,CAA4B,IAAIC,EAAM,SAAS,EAAK;AACtF,EAAAC,EAAmB,MAAM;AACvB,QAAI,CAACP,KAAW,CAACC,KAAaC,KAAqB,MAAM;AACvD,MAAAG,EAA6B,EAAK;AAClC;AAAA,IACF;AACA,UAAMG,IAAgBC,EAAcP,CAAiB,EAAE,gBAAgB,aACjEQ,IAAaR,EAAkB;AACrC,IAAAG,EAA6BG,IAAgB,KAAKE,IAAa,KAAKA,KAAcF,IAAgBV,CAA2B;AAAA,EAC/H,GAAG,CAACE,GAASC,GAAWC,CAAiB,CAAC,GAC1CS,EAAcX,MAAY,CAACC,KAAaG,IAA4BD,CAAgB;AACtF;","x_google_ignoreList":[0]}
|
package/dist/index299.js
CHANGED
|
@@ -1,30 +1,129 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const S = ["top", "right", "bottom", "left"], m = Math.min, h = Math.max, w = Math.round, C = Math.floor, j = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), p = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
};
|
|
10
|
+
function L(t, n, e) {
|
|
11
|
+
return h(t, m(n, e));
|
|
12
|
+
}
|
|
13
|
+
function E(t, n) {
|
|
14
|
+
return typeof t == "function" ? t(n) : t;
|
|
15
|
+
}
|
|
16
|
+
function g(t) {
|
|
17
|
+
return t.split("-")[0];
|
|
18
|
+
}
|
|
19
|
+
function a(t) {
|
|
20
|
+
return t.split("-")[1];
|
|
21
|
+
}
|
|
22
|
+
function x(t) {
|
|
23
|
+
return t === "x" ? "y" : "x";
|
|
10
24
|
}
|
|
11
25
|
function b(t) {
|
|
12
|
-
return t
|
|
26
|
+
return t === "y" ? "height" : "width";
|
|
13
27
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
28
|
+
function d(t) {
|
|
29
|
+
const n = t[0];
|
|
30
|
+
return n === "t" || n === "b" ? "y" : "x";
|
|
16
31
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
32
|
+
function A(t) {
|
|
33
|
+
return x(d(t));
|
|
34
|
+
}
|
|
35
|
+
function R(t, n, e) {
|
|
36
|
+
e === void 0 && (e = !1);
|
|
37
|
+
const r = a(t), i = A(t), o = b(i);
|
|
38
|
+
let c = i === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
39
|
+
return n.reference[o] > n.floating[o] && (c = f(c)), [c, f(c)];
|
|
19
40
|
}
|
|
20
41
|
function T(t) {
|
|
21
|
-
|
|
42
|
+
const n = f(t);
|
|
43
|
+
return [s(t), n, s(n)];
|
|
44
|
+
}
|
|
45
|
+
function s(t) {
|
|
46
|
+
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
47
|
+
}
|
|
48
|
+
const u = ["left", "right"], l = ["right", "left"], P = ["top", "bottom"], y = ["bottom", "top"];
|
|
49
|
+
function O(t, n, e) {
|
|
50
|
+
switch (t) {
|
|
51
|
+
case "top":
|
|
52
|
+
case "bottom":
|
|
53
|
+
return e ? n ? l : u : n ? u : l;
|
|
54
|
+
case "left":
|
|
55
|
+
case "right":
|
|
56
|
+
return n ? P : y;
|
|
57
|
+
default:
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function k(t, n, e, r) {
|
|
62
|
+
const i = a(t);
|
|
63
|
+
let o = O(g(t), e === "start", r);
|
|
64
|
+
return i && (o = o.map((c) => c + "-" + i), n && (o = o.concat(o.map(s)))), o;
|
|
65
|
+
}
|
|
66
|
+
function f(t) {
|
|
67
|
+
const n = g(t);
|
|
68
|
+
return p[n] + t.slice(n.length);
|
|
69
|
+
}
|
|
70
|
+
function M(t) {
|
|
71
|
+
return {
|
|
72
|
+
top: 0,
|
|
73
|
+
right: 0,
|
|
74
|
+
bottom: 0,
|
|
75
|
+
left: 0,
|
|
76
|
+
...t
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function q(t) {
|
|
80
|
+
return typeof t != "number" ? M(t) : {
|
|
81
|
+
top: t,
|
|
82
|
+
right: t,
|
|
83
|
+
bottom: t,
|
|
84
|
+
left: t
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function z(t) {
|
|
88
|
+
const {
|
|
89
|
+
x: n,
|
|
90
|
+
y: e,
|
|
91
|
+
width: r,
|
|
92
|
+
height: i
|
|
93
|
+
} = t;
|
|
94
|
+
return {
|
|
95
|
+
width: r,
|
|
96
|
+
height: i,
|
|
97
|
+
top: e,
|
|
98
|
+
left: n,
|
|
99
|
+
right: n + r,
|
|
100
|
+
bottom: e + i,
|
|
101
|
+
x: n,
|
|
102
|
+
y: e
|
|
103
|
+
};
|
|
22
104
|
}
|
|
23
105
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
106
|
+
L as clamp,
|
|
107
|
+
j as createCoords,
|
|
108
|
+
E as evaluate,
|
|
109
|
+
M as expandPaddingObject,
|
|
110
|
+
C as floor,
|
|
111
|
+
a as getAlignment,
|
|
112
|
+
A as getAlignmentAxis,
|
|
113
|
+
R as getAlignmentSides,
|
|
114
|
+
b as getAxisLength,
|
|
115
|
+
T as getExpandedPlacements,
|
|
116
|
+
s as getOppositeAlignmentPlacement,
|
|
117
|
+
x as getOppositeAxis,
|
|
118
|
+
k as getOppositeAxisPlacements,
|
|
119
|
+
f as getOppositePlacement,
|
|
120
|
+
q as getPaddingObject,
|
|
121
|
+
g as getSide,
|
|
122
|
+
d as getSideAxis,
|
|
123
|
+
h as max,
|
|
124
|
+
m as min,
|
|
125
|
+
z as rectToClientRect,
|
|
126
|
+
w as round,
|
|
127
|
+
S as sides
|
|
29
128
|
};
|
|
30
129
|
//# sourceMappingURL=index299.js.map
|
package/dist/index299.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index299.js","sources":["../../../node_modules/@
|
|
1
|
+
{"version":3,"file":"index299.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n const firstChar = placement[0];\n return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n const side = getSide(placement);\n return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["sides","min","max","round","floor","createCoords","v","oppositeSideMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","firstChar","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","x","y","width","height"],"mappings":"AAKK,MAACA,IAAQ,CAAC,OAAO,SAAS,UAAU,MAAM,GAGzCC,IAAM,KAAK,KACXC,IAAM,KAAK,KACXC,IAAQ,KAAK,OACbC,IAAQ,KAAK,OACbC,IAAe,CAAAC,OAAM;AAAA,EACzB,GAAGA;AAAA,EACH,GAAGA;AACL,IACMC,IAAkB;AAAA,EACtB,MA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A;AAAA,IACP,QAAQA;AAAA,IACR,MAAMA;AAAA,EACV;AACA;AACA,SAASE,EAAiBC,GAAM;AAC9B,QAAM;AAAA,IACJ,GAAAC;AAAA,IACA,GAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMJ;AACJ,SAAO;AAAA,IACL,OAAAG;AAAA,IACA,QAAAC;AAAA,IACA,KAAKF;AAAA,IACL,MAAMD;AAAA,IACN,OAAOA,IAAIE;AAAA,IACX,QAAQD,IAAIE;AAAA,IACZ,GAAAH;AAAA,IACA,GAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|
package/dist/index300.js
CHANGED
|
@@ -1,32 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
e = e.shadowRoot.activeElement;
|
|
6
|
-
return e;
|
|
7
|
-
}
|
|
8
|
-
function u(t, e) {
|
|
9
|
-
if (!t || !e)
|
|
10
|
-
return !1;
|
|
11
|
-
const n = e.getRootNode?.();
|
|
12
|
-
if (t.contains(e))
|
|
13
|
-
return !0;
|
|
14
|
-
if (n && r(n)) {
|
|
15
|
-
let o = e;
|
|
16
|
-
for (; o; ) {
|
|
17
|
-
if (t === o)
|
|
18
|
-
return !0;
|
|
19
|
-
o = o.parentNode || o.host;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return !1;
|
|
23
|
-
}
|
|
24
|
-
function f(t) {
|
|
25
|
-
return "composedPath" in t ? t.composedPath()[0] : t.target;
|
|
1
|
+
function t(e, n, r, d) {
|
|
2
|
+
return e.addEventListener(n, r, d), () => {
|
|
3
|
+
e.removeEventListener(n, r, d);
|
|
4
|
+
};
|
|
26
5
|
}
|
|
27
6
|
export {
|
|
28
|
-
|
|
29
|
-
u as contains,
|
|
30
|
-
f as getTarget
|
|
7
|
+
t as addEventListener
|
|
31
8
|
};
|
|
32
9
|
//# sourceMappingURL=index300.js.map
|
package/dist/index300.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index300.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index300.js","sources":["../../../node_modules/@base-ui/utils/esm/addEventListener.js"],"sourcesContent":["/**\n * Adds an event listener and returns a cleanup function to remove it.\n */\n\nexport function addEventListener(target, type, listener, options) {\n target.addEventListener(type, listener, options);\n return () => {\n target.removeEventListener(type, listener, options);\n };\n}"],"names":["addEventListener","target","type","listener","options"],"mappings":"AAIO,SAASA,EAAiBC,GAAQC,GAAMC,GAAUC,GAAS;AAChE,SAAAH,EAAO,iBAAiBC,GAAMC,GAAUC,CAAO,GACxC,MAAM;AACX,IAAAH,EAAO,oBAAoBC,GAAMC,GAAUC,CAAO;AAAA,EACpD;AACF;","x_google_ignoreList":[0]}
|
package/dist/index301.js
CHANGED
|
@@ -1,7 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const a = typeof navigator < "u", o = s(), r = f(), n = u(), c = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), m = (
|
|
2
|
+
// iPads can claim to be MacIntel
|
|
3
|
+
o.platform === "MacIntel" && o.maxTouchPoints > 1 ? !0 : /iP(hone|ad|od)|iOS/.test(o.platform)
|
|
4
|
+
), p = a && /apple/i.test(navigator.vendor), g = a && /android/i.test(r) || /android/i.test(n);
|
|
5
|
+
a && r.toLowerCase().startsWith("mac") && navigator.maxTouchPoints;
|
|
6
|
+
const d = n.includes("jsdom/");
|
|
7
|
+
function s() {
|
|
8
|
+
if (!a)
|
|
9
|
+
return {
|
|
10
|
+
platform: "",
|
|
11
|
+
maxTouchPoints: -1
|
|
12
|
+
};
|
|
13
|
+
const t = navigator.userAgentData;
|
|
14
|
+
return t?.platform ? {
|
|
15
|
+
platform: t.platform,
|
|
16
|
+
maxTouchPoints: navigator.maxTouchPoints
|
|
17
|
+
} : {
|
|
18
|
+
platform: navigator.platform ?? "",
|
|
19
|
+
maxTouchPoints: navigator.maxTouchPoints ?? -1
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function u() {
|
|
23
|
+
if (!a)
|
|
24
|
+
return "";
|
|
25
|
+
const t = navigator.userAgentData;
|
|
26
|
+
return t && Array.isArray(t.brands) ? t.brands.map(({
|
|
27
|
+
brand: i,
|
|
28
|
+
version: e
|
|
29
|
+
}) => `${i}/${e}`).join(" ") : navigator.userAgent;
|
|
30
|
+
}
|
|
31
|
+
function f() {
|
|
32
|
+
if (!a)
|
|
33
|
+
return "";
|
|
34
|
+
const t = navigator.userAgentData;
|
|
35
|
+
return t?.platform ? t.platform : navigator.platform ?? "";
|
|
36
|
+
}
|
|
4
37
|
export {
|
|
5
|
-
|
|
38
|
+
g as isAndroid,
|
|
39
|
+
m as isIOS,
|
|
40
|
+
d as isJSDOM,
|
|
41
|
+
p as isSafari,
|
|
42
|
+
c as isWebKit
|
|
6
43
|
};
|
|
7
44
|
//# sourceMappingURL=index301.js.map
|
package/dist/index301.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index301.js","sources":["../../../node_modules/@base-ui/
|
|
1
|
+
{"version":3,"file":"index301.js","sources":["../../../node_modules/@base-ui/utils/esm/detectBrowser.js"],"sourcesContent":["const hasNavigator = typeof navigator !== 'undefined';\nconst nav = getNavigatorData();\nconst platform = getPlatform();\nconst userAgent = getUserAgent();\nexport const isWebKit = typeof CSS === 'undefined' || !CSS.supports ? false : CSS.supports('-webkit-backdrop-filter:none');\nexport const isIOS =\n// iPads can claim to be MacIntel\nnav.platform === 'MacIntel' && nav.maxTouchPoints > 1 ? true : /iP(hone|ad|od)|iOS/.test(nav.platform);\nexport const isFirefox = hasNavigator && /firefox/i.test(userAgent);\nexport const isSafari = hasNavigator && /apple/i.test(navigator.vendor);\nexport const isEdge = hasNavigator && /Edg/i.test(userAgent);\nexport const isAndroid = hasNavigator && /android/i.test(platform) || /android/i.test(userAgent);\nexport const isMac = hasNavigator && platform.toLowerCase().startsWith('mac') && !navigator.maxTouchPoints;\nexport const isJSDOM = userAgent.includes('jsdom/');\n\n// Avoid Chrome DevTools blue warning.\nfunction getNavigatorData() {\n if (!hasNavigator) {\n return {\n platform: '',\n maxTouchPoints: -1\n };\n }\n const uaData = navigator.userAgentData;\n if (uaData?.platform) {\n return {\n platform: uaData.platform,\n maxTouchPoints: navigator.maxTouchPoints\n };\n }\n return {\n platform: navigator.platform ?? '',\n maxTouchPoints: navigator.maxTouchPoints ?? -1\n };\n}\nfunction getUserAgent() {\n if (!hasNavigator) {\n return '';\n }\n const uaData = navigator.userAgentData;\n if (uaData && Array.isArray(uaData.brands)) {\n return uaData.brands.map(({\n brand,\n version\n }) => `${brand}/${version}`).join(' ');\n }\n return navigator.userAgent;\n}\nfunction getPlatform() {\n if (!hasNavigator) {\n return '';\n }\n const uaData = navigator.userAgentData;\n if (uaData?.platform) {\n return uaData.platform;\n }\n return navigator.platform ?? '';\n}"],"names":["hasNavigator","nav","getNavigatorData","platform","getPlatform","userAgent","getUserAgent","isWebKit","isIOS","isSafari","isAndroid","isJSDOM","uaData","brand","version"],"mappings":"AAAA,MAAMA,IAAe,OAAO,YAAc,KACpCC,IAAMC,EAAgB,GACtBC,IAAWC,EAAW,GACtBC,IAAYC,EAAY,GACjBC,IAAW,OAAO,MAAQ,OAAe,CAAC,IAAI,WAAW,KAAQ,IAAI,SAAS,8BAA8B,GAC5GC;AAAA;AAAA,EAEbP,EAAI,aAAa,cAAcA,EAAI,iBAAiB,IAAI,KAAO,qBAAqB,KAAKA,EAAI,QAAQ;AAAA,GAExFQ,IAAWT,KAAgB,SAAS,KAAK,UAAU,MAAM,GAEzDU,IAAYV,KAAgB,WAAW,KAAKG,CAAQ,KAAK,WAAW,KAAKE,CAAS;AAC1EL,KAAgBG,EAAS,YAAW,EAAG,WAAW,KAAK,KAAM,UAAU;AAChF,MAACQ,IAAUN,EAAU,SAAS,QAAQ;AAGlD,SAASH,IAAmB;AAC1B,M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