@rpcbase/ui 0.245.0 → 0.247.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/index10.js +2 -2
- package/dist/index105.js +36 -36
- package/dist/index106.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index117.js +6 -6
- package/dist/index12.js +3 -3
- package/dist/index120.js +10 -10
- package/dist/index122.js +2 -2
- package/dist/index123.js +3 -3
- package/dist/index124.js +1 -1
- package/dist/index126.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index13.js +2 -2
- package/dist/index14.js +2 -2
- package/dist/index149.js +5 -14
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +63 -63
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -38
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +385 -13
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +261 -23
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +58 -109
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +47 -13
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +169 -4
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +110 -4
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +25 -5
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +8 -12
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +8 -8
- package/dist/index160.js +4 -19
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -11
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +4 -176
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +476 -268
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +189 -4
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +14 -28
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +105 -124
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +262 -63
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +6 -8
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +40 -15
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +4 -30
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +58 -69
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -5
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +80 -61
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +20 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +14 -383
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +4 -260
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +4 -59
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -46
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +4 -169
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +7 -7
- package/dist/index180.js +6 -109
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +16 -24
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +5 -8
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +4 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +12 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -487
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +13 -189
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +4 -13
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +5 -107
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +16 -16
- package/dist/index190.js +6 -262
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +5 -6
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +53 -39
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -4
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +4 -58
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -8
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +8 -87
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -19
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +4 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -5
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +10 -5
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +9 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +9 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +10 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +10 -16
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +9 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +6 -4
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +5 -12
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +5 -13
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +6 -13
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -4
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +16 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +7 -6
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +10 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +10 -54
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +21 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +8 -4
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +9 -4
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +9 -8
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +2 -2
- package/dist/index220.js +4 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +5 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +16 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +9 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +18 -9
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +20 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +12 -10
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +29 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +12 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +25 -6
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +14 -4
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +68 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +38 -7
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +14 -6
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +23 -16
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +111 -7
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +13 -11
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +4 -22
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +5 -9
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +11 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +19 -9
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +11 -5
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +176 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +278 -15
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +4 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +28 -19
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +124 -18
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +63 -12
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -1
- package/dist/index250.js +8 -29
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +15 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +30 -25
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +69 -5
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +146 -58
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +32 -8
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +48 -7
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -5
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +11 -13
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +43 -3
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +97 -3
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +74 -87
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +104 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +50 -27
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +11 -51
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +37 -5
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +8 -61
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +3 -66
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +9 -133
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +134 -7
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +18 -5
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +16 -4
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +36 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +20 -21
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +8 -16
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +24 -11
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +29 -8
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +14 -142
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +19 -79
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +65 -60
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +7 -15
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +6 -20
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +11 -6
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +3 -11
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +50 -3
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +4 -51
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +25 -12
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +14 -19
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +56 -3
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +5 -53
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +21 -20
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +53 -41
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +19 -38
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +42 -46
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +38 -19
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +46 -71
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +20 -17
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +70 -3
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +16 -12
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +3 -242
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +3 -18
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +11 -36
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +12 -238
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +15 -249
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +35 -67
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +233 -77
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +252 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +68 -29
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +99 -16
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +82 -33
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +239 -21
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +3 -17
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +29 -3
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +16 -26
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +34 -28
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +18 -4
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +3 -78
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +23 -269
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +27 -10
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +4 -11
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +77 -24
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +23 -4
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +271 -15
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +11 -125
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +10 -5
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +24 -64
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +17 -14
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +125 -7
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +5 -5
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +65 -3
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +13 -10
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -7
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +3 -6
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +5 -399
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +4 -5
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +10 -52
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +6 -10
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +128 -22
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +399 -11
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +5 -155
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +51 -31
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -11
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +23 -45
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +8 -38
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +11 -9
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +4 -11
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +17 -43
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +12 -97
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +8 -86
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +11 -105
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +7 -51
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +12 -10
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +3 -4
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +3 -37
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +35 -74
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +17 -8
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +5 -135
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +51 -17
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +60 -14
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +66 -3
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +7 -35
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +5 -21
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +11 -9
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +21 -8
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +14 -22
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +74 -20
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +8 -29
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +142 -14
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +79 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +61 -17
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +15 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +4 -8
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +21 -27
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +4 -138
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +5 -12
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +3 -47
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +18 -33
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +11 -3
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +19 -20
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +44 -75
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +17 -11
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +5 -4
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +197 -70
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +70 -197
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +118 -66
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +4 -35
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +5 -7
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +36 -26
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +4 -16
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +15 -123
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +9 -4
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +5 -11
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +4 -5
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +546 -3
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +46 -20
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +18 -45
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +6 -18
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +8 -5
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +26 -21
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +6 -4
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +7 -20
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +11 -4
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +8 -4
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +13 -4
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +8 -15
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +27 -9
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +137 -5
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +12 -4
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +44 -543
- package/dist/index399.js.map +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.js +20 -56
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +4 -47
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +21 -17
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +75 -5
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +12 -8
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +3 -6
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +71 -7
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +35 -11
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +7 -9
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +15 -12
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +3 -3
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +59 -51
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +3 -15
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +4 -491
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +56 -3
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +68 -3
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +31 -5
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +9 -56
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +146 -61
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +103 -26
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +15 -9
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +3 -153
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +50 -21
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +490 -106
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +7 -32
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +2 -8
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +44 -2
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +52 -40
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +7 -55
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +2 -8
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +55 -2
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +53 -52
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +32 -55
- package/dist/index429.js.map +1 -1
- package/dist/index43.js +18 -127
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +122 -39
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +42 -85
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +87 -123
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +126 -5
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +5 -332
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +321 -246
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.js +254 -23
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +25 -129
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +129 -24
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +22 -19
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +19 -134
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +133 -30
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +30 -24
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +26 -38
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +39 -19
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +18 -133
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +134 -49
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +48 -25
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +28 -57
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +57 -56
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -5
- package/dist/index64.js.map +1 -1
- package/dist/index66.js +10 -22
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +17 -232
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +5 -5
- package/dist/index68.js.map +1 -1
- package/dist/index7.js +11 -11
- package/dist/index70.js +22 -10
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +232 -17
- package/dist/index71.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index78.js +2 -2
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index49.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index49.js","sources":["../../../node_modules/@base-ui/react/select/popup/SelectPopup.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { rectToClientRect } from '@floating-ui/utils';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { platform } from '@base-ui/utils/platform';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStore } from '@base-ui/utils/store';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { FloatingFocusManager, platform as floatingPlatform } from \"../../floating-ui-react/index.mjs\";\nimport { useSelectFloatingContext, useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { popupStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useSelectPositionerContext } from \"../positioner/SelectPositionerContext.mjs\";\nimport { styleDisableScrollbar } from \"../../utils/styles.mjs\";\nimport { transitionStatusMapping } from \"../../internals/stateAttributesMapping.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { clearStyles, LIST_FUNCTIONAL_STYLES } from \"./utils.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useToolbarRootContext } from \"../../toolbar/root/ToolbarRootContext.mjs\";\nimport { COMPOSITE_KEYS } from \"../../internals/composite/composite.mjs\";\nimport { getDisabledMountTransitionStyles } from \"../../utils/getDisabledMountTransitionStyles.mjs\";\nimport { clamp } from \"../../internals/clamp.mjs\";\nimport { getMaxScrollOffset, SCROLL_EDGE_TOLERANCE_PX } from \"../../utils/scrollEdges.mjs\";\nimport { useCSPContext } from \"../../internals/csp-context/CSPContext.mjs\";\nimport { useDirection } from \"../../internals/direction-context/DirectionContext.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst stateAttributesMapping = {\n ...popupStateMapping,\n ...transitionStatusMapping\n};\n\n/**\n * A container for the select list.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectPopup = /*#__PURE__*/React.forwardRef(function SelectPopup(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n finalFocus,\n ...elementProps\n } = componentProps;\n const {\n store,\n popupRef,\n onOpenChangeComplete,\n setOpen,\n valueRef,\n firstItemTextRef,\n selectedItemTextRef,\n multiple,\n handleScrollArrowVisibility,\n scrollHandlerRef,\n listRef,\n highlightItemOnHover\n } = useSelectRootContext();\n const {\n side,\n align,\n alignItemWithTriggerActive,\n isPositioned,\n setControlledAlignItemWithTrigger\n } = useSelectPositionerContext();\n const insideToolbar = useToolbarRootContext(true) != null;\n const floatingRootContext = useSelectFloatingContext();\n const direction = useDirection();\n const {\n nonce,\n disableStyleElements\n } = useCSPContext();\n const id = useStore(store, selectors.id);\n const open = useStore(store, selectors.open);\n const openMethod = useStore(store, selectors.openMethod);\n const mounted = useStore(store, selectors.mounted);\n const popupProps = useStore(store, selectors.popupProps);\n const transitionStatus = useStore(store, selectors.transitionStatus);\n const triggerElement = useStore(store, selectors.triggerElement);\n const positionerElement = useStore(store, selectors.positionerElement);\n const listElement = useStore(store, selectors.listElement);\n const reachedMaxHeightRef = React.useRef(false);\n const initialPlacedRef = React.useRef(false);\n const originalPositionerStylesRef = React.useRef({});\n const scrollArrowFrame = useAnimationFrame();\n const handleScroll = useStableCallback(scroller => {\n if (!positionerElement || !popupRef.current || !initialPlacedRef.current) {\n return;\n }\n if (reachedMaxHeightRef.current || !alignItemWithTriggerActive) {\n handleScrollArrowVisibility();\n return;\n }\n const isTopPositioned = positionerElement.style.top === '0px';\n const isBottomPositioned = positionerElement.style.bottom === '0px';\n if (!isTopPositioned && !isBottomPositioned) {\n handleScrollArrowVisibility();\n return;\n }\n const scale = getScale(positionerElement);\n const currentHeight = normalizeSize(positionerElement.getBoundingClientRect().height, 'y', scale);\n const doc = ownerDocument(positionerElement);\n const win = ownerWindow(positionerElement);\n const positionerStyles = win.getComputedStyle(positionerElement);\n const marginTop = parseFloat(positionerStyles.marginTop);\n const marginBottom = parseFloat(positionerStyles.marginBottom);\n const maxPopupHeight = getMaxPopupHeight(win.getComputedStyle(popupRef.current));\n const maxAvailableHeight = Math.min(doc.documentElement.clientHeight - marginTop - marginBottom, maxPopupHeight);\n const scrollTop = scroller.scrollTop;\n const maxScrollTop = getMaxScrollTop(scroller);\n let nextPositionerHeight = 0;\n let nextScrollTop = null;\n let setReachedMax = false;\n let scrollToMax = false;\n const setHeight = height => {\n positionerElement.style.height = `${height}px`;\n };\n const handleSmallDiff = (diff, targetScrollTop) => {\n const heightDelta = clamp(diff, 0, maxAvailableHeight - currentHeight);\n if (heightDelta > 0) {\n // Consume the remaining scroll in height.\n setHeight(currentHeight + heightDelta);\n }\n scroller.scrollTop = targetScrollTop;\n if (maxAvailableHeight - (currentHeight + heightDelta) <= SCROLL_EDGE_TOLERANCE_PX) {\n reachedMaxHeightRef.current = true;\n }\n handleScrollArrowVisibility();\n };\n const diff = isTopPositioned ? maxScrollTop - scrollTop : scrollTop;\n const nextHeight = Math.min(currentHeight + diff, maxAvailableHeight);\n nextPositionerHeight = nextHeight;\n if (diff <= SCROLL_EDGE_TOLERANCE_PX) {\n handleSmallDiff(diff, isTopPositioned ? maxScrollTop : 0);\n return;\n }\n if (maxAvailableHeight - nextHeight > SCROLL_EDGE_TOLERANCE_PX) {\n if (isTopPositioned) {\n scrollToMax = true;\n } else {\n nextScrollTop = 0;\n }\n } else {\n setReachedMax = true;\n if (isBottomPositioned && scrollTop < maxScrollTop) {\n const overshoot = currentHeight + diff - maxAvailableHeight;\n nextScrollTop = scrollTop - (diff - overshoot);\n }\n }\n nextPositionerHeight = Math.ceil(nextPositionerHeight);\n if (nextPositionerHeight !== 0) {\n setHeight(nextPositionerHeight);\n }\n if (scrollToMax || nextScrollTop != null) {\n // Recompute bounds after resizing (clientHeight likely changed).\n const nextMaxScrollTop = getMaxScrollTop(scroller);\n const target = scrollToMax ? nextMaxScrollTop : clamp(nextScrollTop, 0, nextMaxScrollTop);\n\n // Avoid adjustments that re-trigger scroll events forever.\n if (Math.abs(scroller.scrollTop - target) > SCROLL_EDGE_TOLERANCE_PX) {\n scroller.scrollTop = target;\n }\n }\n if (setReachedMax || nextPositionerHeight >= maxAvailableHeight - SCROLL_EDGE_TOLERANCE_PX) {\n reachedMaxHeightRef.current = true;\n }\n handleScrollArrowVisibility();\n });\n React.useImperativeHandle(scrollHandlerRef, () => handleScroll, [handleScroll]);\n useOpenChangeComplete({\n open,\n ref: popupRef,\n onComplete() {\n if (open) {\n onOpenChangeComplete?.(true);\n }\n }\n });\n const state = {\n open,\n transitionStatus,\n side,\n align\n };\n useIsoLayoutEffect(() => {\n if (!positionerElement || !popupRef.current || Object.keys(originalPositionerStylesRef.current).length) {\n return;\n }\n originalPositionerStylesRef.current = {\n top: positionerElement.style.top || '0',\n left: positionerElement.style.left || '0',\n right: positionerElement.style.right,\n height: positionerElement.style.height,\n bottom: positionerElement.style.bottom,\n minHeight: positionerElement.style.minHeight,\n maxHeight: positionerElement.style.maxHeight,\n marginTop: positionerElement.style.marginTop,\n marginBottom: positionerElement.style.marginBottom\n };\n }, [popupRef, positionerElement]);\n useIsoLayoutEffect(() => {\n if (open || alignItemWithTriggerActive) {\n return;\n }\n initialPlacedRef.current = false;\n reachedMaxHeightRef.current = false;\n clearStyles(positionerElement, originalPositionerStylesRef.current);\n }, [open, alignItemWithTriggerActive, positionerElement, popupRef]);\n useIsoLayoutEffect(() => {\n const popupElement = popupRef.current;\n\n // Wait for Floating UI's first positioning pass before reading DOM geometry.\n // We replace the final coordinates for aligned selects, but still need middleware\n // like `size()` to set CSS variables such as `--anchor-width`.\n if (!open || !triggerElement || !positionerElement || !popupElement || alignItemWithTriggerActive && !isPositioned || store.state.transitionStatus === 'ending') {\n return;\n }\n if (!alignItemWithTriggerActive) {\n initialPlacedRef.current = true;\n scrollArrowFrame.request(handleScrollArrowVisibility);\n popupElement.style.removeProperty('--transform-origin');\n return;\n }\n\n // Ensure we remove any transforms that can affect the location of the popup\n // and therefore the calculations.\n const restoreTransformStyles = unsetTransformStyles(popupElement);\n popupElement.style.removeProperty('--transform-origin');\n try {\n let textElement = selectedItemTextRef.current;\n if (!textElement?.isConnected) {\n const hasSelectedValue = selectors.hasSelectedValue(store.state);\n textElement = !hasSelectedValue && firstItemTextRef.current?.isConnected ? firstItemTextRef.current : null;\n }\n const valueElement = valueRef.current;\n const win = ownerWindow(positionerElement);\n const positionerStyles = win.getComputedStyle(positionerElement);\n const popupStyles = win.getComputedStyle(popupElement);\n const doc = ownerDocument(triggerElement);\n const scale = getScale(triggerElement);\n const triggerRect = normalizeRect(triggerElement.getBoundingClientRect(), scale);\n const positionerRect = normalizeRect(positionerElement.getBoundingClientRect(), scale);\n const triggerHeight = triggerRect.height;\n const scroller = listElement || popupElement;\n const scrollHeight = scroller.scrollHeight;\n const borderBottom = parseFloat(popupStyles.borderBottomWidth);\n // The `|| N` fallbacks cover an unset/`auto` value (parses to `NaN`). Note a literal `0`\n // also resolves to the fallback, so an explicit `margin: 0` or `min-height: 0` still takes\n // the default below.\n const marginTop = parseFloat(positionerStyles.marginTop) || 10;\n const marginBottom = parseFloat(positionerStyles.marginBottom) || 10;\n const minHeight = parseFloat(positionerStyles.minHeight) || 100;\n const maxPopupHeight = getMaxPopupHeight(popupStyles);\n const paddingLeft = 5;\n const paddingRight = 5;\n const triggerCollisionThreshold = 20;\n const viewportHeight = doc.documentElement.clientHeight - marginTop - marginBottom;\n const viewportWidth = doc.documentElement.clientWidth;\n const availableSpaceBeneathTrigger = viewportHeight - triggerRect.bottom + triggerHeight;\n let textRect;\n let alignedLeft = direction === 'rtl' ? triggerRect.right - positionerRect.width : triggerRect.left;\n let offsetY = 0;\n if (textElement && valueElement) {\n const valueRect = normalizeRect(valueElement.getBoundingClientRect(), scale);\n textRect = normalizeRect(textElement.getBoundingClientRect(), scale);\n alignedLeft = positionerRect.left + (direction === 'rtl' ? valueRect.right - textRect.right : valueRect.left - textRect.left);\n const valueCenterFromTriggerTop = valueRect.top - triggerRect.top + valueRect.height / 2;\n const textCenterFromPositionerTop = textRect.top - positionerRect.top + textRect.height / 2;\n offsetY = textCenterFromPositionerTop - valueCenterFromTriggerTop;\n }\n const idealHeight = availableSpaceBeneathTrigger + offsetY + marginBottom + borderBottom;\n let height = Math.min(viewportHeight, idealHeight);\n const maxHeight = viewportHeight - marginTop - marginBottom;\n const scrollTop = idealHeight - height;\n const maxRight = viewportWidth - paddingRight;\n positionerElement.style.left = `${clamp(alignedLeft, paddingLeft, maxRight - positionerRect.width)}px`;\n positionerElement.style.height = `${height}px`;\n // `none` (not the invalid `auto`) so the explicit height governs in align mode and isn't\n // clamped by a `max-height` from user CSS.\n positionerElement.style.maxHeight = 'none';\n positionerElement.style.marginTop = `${marginTop}px`;\n positionerElement.style.marginBottom = `${marginBottom}px`;\n popupElement.style.height = '100%';\n const maxScrollTop = getMaxScrollTop(scroller);\n const isTopPositioned = scrollTop >= maxScrollTop - SCROLL_EDGE_TOLERANCE_PX;\n if (isTopPositioned) {\n height = Math.min(viewportHeight, positionerRect.height) - (scrollTop - maxScrollTop);\n }\n\n // When the trigger is too close to the top or bottom of the viewport, or the minHeight is\n // reached, we fallback to aligning the popup to the trigger as the UX is poor otherwise.\n const fallbackToAlignPopupToTrigger = triggerRect.top < triggerCollisionThreshold || triggerRect.bottom > viewportHeight - triggerCollisionThreshold || Math.ceil(height) + SCROLL_EDGE_TOLERANCE_PX < Math.min(scrollHeight, minHeight);\n\n // Safari doesn't position the popup correctly when pinch-zoomed.\n const isPinchZoomed = (win.visualViewport?.scale ?? 1) !== 1 && platform.engine.webkit;\n if (fallbackToAlignPopupToTrigger || isPinchZoomed) {\n initialPlacedRef.current = true;\n clearStyles(positionerElement, originalPositionerStylesRef.current);\n setControlledAlignItemWithTrigger(false);\n return;\n }\n const initialHeight = Math.max(minHeight, height);\n if (isTopPositioned) {\n const topOffset = Math.max(0, viewportHeight - idealHeight);\n positionerElement.style.top = positionerRect.height >= maxHeight ? '0' : `${topOffset}px`;\n positionerElement.style.height = `${height}px`;\n scroller.scrollTop = getMaxScrollTop(scroller);\n } else {\n positionerElement.style.bottom = '0';\n scroller.scrollTop = scrollTop;\n }\n if (textRect) {\n const popupTop = positionerRect.top;\n const popupHeight = positionerRect.height;\n const textCenterY = textRect.top + textRect.height / 2;\n const transformOriginY = popupHeight > 0 ? (textCenterY - popupTop) / popupHeight * 100 : 50;\n const clampedY = clamp(transformOriginY, 0, 100);\n popupElement.style.setProperty('--transform-origin', `50% ${clampedY}%`);\n }\n if (initialHeight === viewportHeight || height >= maxPopupHeight) {\n reachedMaxHeightRef.current = true;\n }\n handleScrollArrowVisibility();\n if (highlightItemOnHover && store.state.selectedIndex === null && store.state.activeIndex === null && listRef.current[0] != null) {\n store.set('activeIndex', 0);\n }\n initialPlacedRef.current = true;\n } finally {\n restoreTransformStyles();\n }\n }, [store, open, positionerElement, triggerElement, valueRef, firstItemTextRef, selectedItemTextRef, popupRef, handleScrollArrowVisibility, alignItemWithTriggerActive, setControlledAlignItemWithTrigger, scrollArrowFrame, listElement, listRef, highlightItemOnHover, direction, isPositioned]);\n React.useEffect(() => {\n if (!alignItemWithTriggerActive || !positionerElement || !open) {\n return undefined;\n }\n const win = ownerWindow(positionerElement);\n function handleResize(event) {\n setOpen(false, createChangeEventDetails(REASONS.windowResize, event));\n }\n return addEventListener(win, 'resize', handleResize);\n }, [setOpen, alignItemWithTriggerActive, positionerElement, open]);\n const defaultProps = {\n ...(listElement ? {\n role: 'presentation',\n 'aria-orientation': undefined\n } : {\n role: 'listbox',\n 'aria-multiselectable': multiple || undefined,\n id: `${id}-list`\n }),\n onKeyDown(event) {\n if (insideToolbar && COMPOSITE_KEYS.has(event.key)) {\n event.stopPropagation();\n }\n },\n onScroll(event) {\n if (listElement) {\n return;\n }\n handleScroll(event.currentTarget);\n },\n ...(alignItemWithTriggerActive && {\n style: listElement ? {\n height: '100%'\n } : LIST_FUNCTIONAL_STYLES\n })\n };\n const element = useRenderElement('div', componentProps, {\n ref: [forwardedRef, popupRef],\n state,\n stateAttributesMapping,\n props: [popupProps, defaultProps, getDisabledMountTransitionStyles(transitionStatus), {\n className: !listElement && alignItemWithTriggerActive ? styleDisableScrollbar.className : undefined\n }, elementProps]\n });\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [!disableStyleElements && styleDisableScrollbar.getElement(nonce), /*#__PURE__*/_jsx(FloatingFocusManager, {\n context: floatingRootContext,\n modal: false,\n disabled: !mounted,\n openInteractionType: openMethod,\n returnFocus: finalFocus,\n restoreFocus: true,\n children: element\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectPopup.displayName = \"SelectPopup\";\nfunction getMaxPopupHeight(popupStyles) {\n const maxHeightStyle = popupStyles.maxHeight || '';\n return maxHeightStyle.endsWith('px') ? parseFloat(maxHeightStyle) || Infinity : Infinity;\n}\nfunction getMaxScrollTop(scroller) {\n return getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);\n}\nfunction getScale(element) {\n // The platform API is async-capable, but the DOM platform returns a plain scale object.\n return floatingPlatform.getScale(element);\n}\nfunction normalizeSize(size, axis, scale) {\n return size / scale[axis];\n}\nfunction normalizeRect(rect, scale) {\n return rectToClientRect({\n x: normalizeSize(rect.x, 'x', scale),\n y: normalizeSize(rect.y, 'y', scale),\n width: normalizeSize(rect.width, 'x', scale),\n height: normalizeSize(rect.height, 'y', scale)\n });\n}\nconst TRANSFORM_STYLE_RESETS = [['transform', 'none'], ['scale', '1'], ['translate', '0 0']];\nfunction unsetTransformStyles(popupElement) {\n const {\n style\n } = popupElement;\n const originalStyles = {};\n for (const [property, value] of TRANSFORM_STYLE_RESETS) {\n originalStyles[property] = style.getPropertyValue(property);\n style.setProperty(property, value, 'important');\n }\n return () => {\n for (const [property] of TRANSFORM_STYLE_RESETS) {\n const originalValue = originalStyles[property];\n if (originalValue) {\n style.setProperty(property, originalValue);\n } else {\n style.removeProperty(property);\n }\n }\n };\n}"],"names":["stateAttributesMapping","popupStateMapping","transitionStatusMapping","SelectPopup","React","componentProps","forwardedRef","render","className","style","finalFocus","elementProps","store","popupRef","onOpenChangeComplete","setOpen","valueRef","firstItemTextRef","selectedItemTextRef","multiple","handleScrollArrowVisibility","scrollHandlerRef","listRef","highlightItemOnHover","useSelectRootContext","side","align","alignItemWithTriggerActive","isPositioned","setControlledAlignItemWithTrigger","useSelectPositionerContext","insideToolbar","useToolbarRootContext","floatingRootContext","useSelectFloatingContext","direction","useDirection","nonce","disableStyleElements","useCSPContext","id","useStore","selectors","open","openMethod","mounted","popupProps","transitionStatus","triggerElement","positionerElement","listElement","reachedMaxHeightRef","initialPlacedRef","originalPositionerStylesRef","scrollArrowFrame","useAnimationFrame","handleScroll","useStableCallback","scroller","isTopPositioned","isBottomPositioned","scale","getScale","currentHeight","normalizeSize","doc","ownerDocument","win","ownerWindow","positionerStyles","marginTop","marginBottom","maxPopupHeight","getMaxPopupHeight","maxAvailableHeight","scrollTop","maxScrollTop","getMaxScrollTop","nextPositionerHeight","nextScrollTop","setReachedMax","scrollToMax","setHeight","height","handleSmallDiff","diff","targetScrollTop","heightDelta","clamp","SCROLL_EDGE_TOLERANCE_PX","nextHeight","overshoot","nextMaxScrollTop","target","useOpenChangeComplete","state","useIsoLayoutEffect","clearStyles","popupElement","restoreTransformStyles","unsetTransformStyles","textElement","valueElement","popupStyles","triggerRect","normalizeRect","positionerRect","triggerHeight","scrollHeight","borderBottom","minHeight","paddingLeft","paddingRight","triggerCollisionThreshold","viewportHeight","viewportWidth","availableSpaceBeneathTrigger","textRect","alignedLeft","offsetY","valueRect","valueCenterFromTriggerTop","idealHeight","maxHeight","maxRight","fallbackToAlignPopupToTrigger","isPinchZoomed","platform.engine.webkit","initialHeight","topOffset","popupTop","popupHeight","textCenterY","transformOriginY","clampedY","handleResize","event","createChangeEventDetails","REASONS.windowResize","addEventListener","defaultProps","COMPOSITE_KEYS","LIST_FUNCTIONAL_STYLES","element","useRenderElement","getDisabledMountTransitionStyles","styleDisableScrollbar","_jsxs","_jsx","FloatingFocusManager","maxHeightStyle","getMaxScrollOffset","floatingPlatform","size","axis","rect","rectToClientRect","TRANSFORM_STYLE_RESETS","originalStyles","property","value","originalValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMA,KAAyB;AAAA,EAC7B,GAAGC;AAAA,EACH,GAAGC;AACL,GAQaC,KAA2B,gBAAAC,EAAM,WAAW,SAAqBC,GAAgBC,GAAc;AAC1G,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMN,GACE;AAAA,IACJ,OAAAO;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,kBA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aAAa,KAAK,CAAC;AAC3F,SAASzD,GAAqBF,GAAc;AAC1C,QAAM;AAAA,IACJ,OAAAzF;AAAA,EACJ,IAAMyF,GACE4D,IAAiB,CAAA;AACvB,aAAW,CAACC,GAAUC,CAAK,KAAKH;AAC9B,IAAAC,EAAeC,CAAQ,IAAItJ,EAAM,iBAAiBsJ,CAAQ,GAC1DtJ,EAAM,YAAYsJ,GAAUC,GAAO,WAAW;AAEhD,SAAO,MAAM;AACX,eAAW,CAACD,CAAQ,KAAKF,IAAwB;AAC/C,YAAMI,IAAgBH,EAAeC,CAAQ;AAC7C,MAAIE,IACFxJ,EAAM,YAAYsJ,GAAUE,CAAa,IAEzCxJ,EAAM,eAAesJ,CAAQ;AAAA,IAEjC;AAAA,EACF;AACF;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index49.js","sources":["../../../node_modules/@base-ui/react/select/root/SelectRoot.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { visuallyHidden, visuallyHiddenInput } from '@base-ui/utils/visuallyHidden';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useOnFirstRender } from '@base-ui/utils/useOnFirstRender';\nimport { usePreviousValue } from '@base-ui/utils/usePreviousValue';\nimport { isElementDisabled } from '@base-ui/utils/isElementDisabled';\nimport { useControlled } from '@base-ui/utils/useControlled';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStore, Store } from '@base-ui/utils/store';\nimport { EMPTY_ARRAY, EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { useClick, useDismiss, useFloatingRootContext, useListNavigation, useTypeahead } from \"../../floating-ui-react/index.mjs\";\nimport { SelectRootContext, SelectFloatingContext } from \"./SelectRootContext.mjs\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.mjs\";\nimport { useRegisterFieldControl } from \"../../internals/field-register-control/useRegisterFieldControl.mjs\";\nimport { useLabelableId } from \"../../internals/labelable-provider/useLabelableId.mjs\";\nimport { useTransitionStatus } from \"../../internals/useTransitionStatus.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useFormContext } from \"../../internals/form-context/FormContext.mjs\";\nimport { stringifyAsLabel, stringifyAsValue } from \"../../internals/resolveValueLabel.mjs\";\nimport { compareItemEquality, defaultItemEquality, findItemIndex } from \"../../internals/itemEquality.mjs\";\nimport { areArraysEqual } from \"../../internals/areArraysEqual.mjs\";\nimport { useValueChanged } from \"../../internals/useValueChanged.mjs\";\nimport { useOpenInteractionType } from \"../../utils/useOpenInteractionType.mjs\";\nimport { getMaxScrollOffset, normalizeScrollOffset } from \"../../utils/scrollEdges.mjs\";\nimport { FOCUSABLE_POPUP_PROPS } from \"../../utils/popups/index.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\n\n/**\n * Groups all parts of the select.\n * Doesn't render its own HTML element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function SelectRoot(props) {\n const {\n id,\n value: valueProp,\n defaultValue = null,\n onValueChange,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n name: nameProp,\n form,\n autoComplete,\n disabled: disabledProp = false,\n readOnly = false,\n required = false,\n modal = true,\n actionsRef,\n inputRef,\n onOpenChangeComplete,\n items,\n multiple = false,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue = defaultItemEquality,\n highlightItemOnHover = true,\n children\n } = props;\n const {\n clearErrors\n } = useFormContext();\n const {\n setDirty,\n setTouched,\n setFocused,\n validityData,\n setFilled,\n name: fieldName,\n disabled: fieldDisabled,\n validation,\n validationMode\n } = useFieldRootContext();\n const generatedId = useLabelableId({\n id\n });\n const disabled = fieldDisabled || disabledProp;\n const name = fieldName ?? nameProp;\n const [value, setValueUnwrapped] = useControlled({\n controlled: valueProp,\n default: multiple ? defaultValue ?? EMPTY_ARRAY : defaultValue,\n name: 'Select',\n state: 'value'\n });\n const [open, setOpenUnwrapped] = useControlled({\n controlled: openProp,\n default: defaultOpen,\n name: 'Select',\n state: 'open'\n });\n const listRef = React.useRef([]);\n const labelsRef = React.useRef([]);\n const popupRef = React.useRef(null);\n const scrollHandlerRef = React.useRef(null);\n const scrollArrowsMountedCountRef = React.useRef(0);\n const valueRef = React.useRef(null);\n const valuesRef = React.useRef([]);\n const typingRef = React.useRef(false);\n const firstItemTextRef = React.useRef(null);\n const selectedItemTextRef = React.useRef(null);\n const selectionRef = React.useRef({\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n });\n const alignItemWithTriggerActiveRef = React.useRef(false);\n const {\n mounted,\n setMounted,\n transitionStatus\n } = useTransitionStatus(open);\n const {\n openMethod,\n triggerProps: interactionTypeProps\n } = useOpenInteractionType(open);\n const store = useRefWithInit(() => new Store({\n id: generatedId,\n labelId: undefined,\n modal,\n multiple,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n value,\n open,\n mounted,\n transitionStatus,\n items,\n forceMount: false,\n openMethod: null,\n activeIndex: null,\n selectedIndex: null,\n popupProps: {},\n triggerProps: {},\n triggerElement: null,\n positionerElement: null,\n listElement: null,\n popupSide: null,\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false,\n hasScrollArrows: false\n })).current;\n const activeIndex = useStore(store, selectors.activeIndex);\n const selectedIndex = useStore(store, selectors.selectedIndex);\n const triggerElement = useStore(store, selectors.triggerElement);\n const positionerElement = useStore(store, selectors.positionerElement);\n const previousOpenMethod = usePreviousValue(openMethod);\n const renderedOpenMethod = openMethod ?? previousOpenMethod ?? null;\n const serializedValue = React.useMemo(() => {\n // In multiple mode the shared input is nameless; per-value entries are submitted via\n // `hiddenInputs`. Its value is therefore irrelevant, and passing the whole array to\n // `stringifyAsValue` would invoke a user `itemToStringValue` with an array it doesn't expect.\n if (multiple) {\n return '';\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const fieldStringValue = React.useMemo(() => {\n if (multiple && Array.isArray(value)) {\n return value.map(currentValue => stringifyAsValue(currentValue, itemToStringValue));\n }\n return stringifyAsValue(value, itemToStringValue);\n }, [multiple, value, itemToStringValue]);\n const controlRef = useValueAsRef(store.state.triggerElement);\n const getStringifiedValueForForm = useStableCallback(() => fieldStringValue);\n useRegisterFieldControl(controlRef, generatedId, value, getStringifiedValueForForm, !disabled, nameProp);\n const initialValueRef = React.useRef(value);\n // Mirror the `hasSelectedValue` store selector so the Field's filled state agrees with the\n // trigger/value placeholder semantics (a value serializing to `''` counts as empty).\n const hasSelectedValue = multiple ? Array.isArray(value) && value.length > 0 : value != null && stringifyAsValue(value, itemToStringValue) !== '';\n useIsoLayoutEffect(() => {\n // Ensure the values and labels are registered for programmatic value changes.\n if (value !== initialValueRef.current) {\n store.set('forceMount', true);\n }\n }, [store, value]);\n useIsoLayoutEffect(() => {\n setFilled(hasSelectedValue);\n }, [hasSelectedValue, setFilled]);\n useIsoLayoutEffect(function syncSelectedIndex() {\n const registry = valuesRef.current;\n let nextIndex;\n if (multiple) {\n const currentValue = Array.isArray(value) ? value : [];\n if (currentValue.length === 0) {\n nextIndex = null;\n } else {\n const lastValue = currentValue[currentValue.length - 1];\n const lastIndex = findItemIndex(registry, lastValue, isItemEqualToValue);\n nextIndex = lastIndex === -1 ? null : lastIndex;\n }\n } else {\n const index = findItemIndex(registry, value, isItemEqualToValue);\n nextIndex = index === -1 ? null : index;\n }\n if (nextIndex === null) {\n selectedItemTextRef.current = null;\n }\n if (open) {\n return;\n }\n store.set('selectedIndex', nextIndex);\n }, [hasSelectedValue, multiple, open, value, valuesRef, isItemEqualToValue, store, selectedItemTextRef]);\n function isSelectedValueDirty(currentValue) {\n const initialValue = validityData.initialValue;\n if (Array.isArray(currentValue) && Array.isArray(initialValue)) {\n return !areArraysEqual(currentValue, initialValue, (itemValue, initialItemValue) => compareItemEquality(itemValue, initialItemValue, isItemEqualToValue));\n }\n return currentValue !== initialValue;\n }\n useValueChanged(value, () => {\n clearErrors(name);\n setDirty(isSelectedValueDirty(value));\n validation.change(value);\n });\n const setOpen = useStableCallback((nextOpen, eventDetails) => {\n onOpenChange?.(nextOpen, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setOpenUnwrapped(nextOpen);\n if (!nextOpen && (eventDetails.reason === REASONS.focusOut || eventDetails.reason === REASONS.outsidePress)) {\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(value);\n }\n }\n });\n const handleUnmount = useStableCallback(() => {\n setMounted(false);\n store.update({\n activeIndex: null,\n openMethod: null\n });\n onOpenChangeComplete?.(false);\n });\n useOpenChangeComplete({\n enabled: !actionsRef,\n open,\n ref: popupRef,\n onComplete() {\n if (!open) {\n handleUnmount();\n }\n }\n });\n React.useImperativeHandle(actionsRef, () => ({\n unmount: handleUnmount\n }), [handleUnmount]);\n const setValue = useStableCallback((nextValue, eventDetails) => {\n onValueChange?.(nextValue, eventDetails);\n if (eventDetails.isCanceled) {\n return;\n }\n setValueUnwrapped(nextValue);\n });\n const handleScrollArrowVisibility = useStableCallback(() => {\n const scroller = store.state.listElement || popupRef.current;\n if (!scroller) {\n return;\n }\n const maxScrollTop = getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);\n const scrollTop = normalizeScrollOffset(scroller.scrollTop, maxScrollTop);\n const shouldShowUp = scrollTop > 0;\n const shouldShowDown = scrollTop < maxScrollTop;\n if (store.state.scrollUpArrowVisible !== shouldShowUp) {\n store.set('scrollUpArrowVisible', shouldShowUp);\n }\n if (store.state.scrollDownArrowVisible !== shouldShowDown) {\n store.set('scrollDownArrowVisible', shouldShowDown);\n }\n });\n const floatingContext = useFloatingRootContext({\n open,\n onOpenChange: setOpen,\n elements: {\n reference: triggerElement,\n floating: positionerElement\n }\n });\n const click = useClick(floatingContext, {\n enabled: !readOnly && !disabled,\n event: 'mousedown'\n });\n const dismiss = useDismiss(floatingContext);\n const listNavigation = useListNavigation(floatingContext, {\n enabled: !readOnly && !disabled,\n listRef,\n activeIndex,\n selectedIndex,\n disabledIndices: EMPTY_ARRAY,\n onNavigate(nextActiveIndex) {\n // Retain the highlight while transitioning out.\n if (nextActiveIndex === null && !open) {\n return;\n }\n store.set('activeIndex', nextActiveIndex);\n },\n focusItemOnHover: highlightItemOnHover\n });\n const typeahead = useTypeahead(floatingContext, {\n enabled: !readOnly && !disabled && (open || !multiple),\n listRef: labelsRef,\n activeIndex,\n selectedIndex,\n // Skip disabled items while matching so typeahead advances to the next selectable item\n // (a click can never select a disabled item and native `<select>` skips them too). Resolve\n // the disabled state from the element via the attribute-only `isElementDisabled` so the\n // hidden, force-mounted items used for closed-trigger typeahead aren't dropped by the\n // `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.\n disabledIndices: index => isElementDisabled(listRef.current[index]),\n onMatch(index) {\n if (open) {\n store.set('activeIndex', index);\n } else {\n setValue(valuesRef.current[index], createChangeEventDetails('none'));\n }\n },\n onTyping(typing) {\n typingRef.current = typing;\n }\n });\n const mergedTriggerProps = React.useMemo(() => {\n const triggerInteractionProps = mergeProps(typeahead.reference, listNavigation.reference, dismiss.reference, click.reference, interactionTypeProps);\n if (generatedId) {\n triggerInteractionProps.id = generatedId;\n }\n return triggerInteractionProps;\n }, [click.reference, typeahead.reference, listNavigation.reference, dismiss.reference, interactionTypeProps, generatedId]);\n const popupProps = React.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, typeahead.floating, listNavigation.floating, dismiss.floating), [typeahead.floating, listNavigation.floating, dismiss.floating]);\n const itemProps = listNavigation.item ?? EMPTY_OBJECT;\n useOnFirstRender(() => {\n store.update({\n popupProps,\n triggerProps: mergedTriggerProps\n });\n });\n useIsoLayoutEffect(() => {\n store.update({\n id: generatedId,\n modal,\n multiple,\n value,\n open,\n mounted,\n transitionStatus,\n popupProps,\n triggerProps: mergedTriggerProps,\n items,\n itemToStringLabel,\n itemToStringValue,\n isItemEqualToValue,\n openMethod: renderedOpenMethod\n });\n }, [store, generatedId, modal, multiple, value, open, mounted, transitionStatus, popupProps, mergedTriggerProps, items, itemToStringLabel, itemToStringValue, isItemEqualToValue, renderedOpenMethod]);\n const contextValue = React.useMemo(() => ({\n store,\n name,\n required,\n disabled,\n readOnly,\n multiple,\n highlightItemOnHover,\n setValue,\n setOpen,\n listRef,\n popupRef,\n scrollHandlerRef,\n handleScrollArrowVisibility,\n scrollArrowsMountedCountRef,\n itemProps,\n valueRef,\n valuesRef,\n labelsRef,\n typingRef,\n selectionRef,\n firstItemTextRef,\n selectedItemTextRef,\n validation,\n onOpenChangeComplete,\n alignItemWithTriggerActiveRef,\n initialValueRef\n }), [store, name, required, disabled, readOnly, multiple, highlightItemOnHover, setValue, setOpen, itemProps, validation, onOpenChangeComplete, handleScrollArrowVisibility]);\n const ref = useMergedRefs(inputRef, validation.inputRef);\n const hasMultipleSelection = multiple && Array.isArray(value) && value.length > 0;\n const hiddenInputName = multiple ? undefined : name;\n const hiddenInputs = React.useMemo(() => {\n if (!multiple || !Array.isArray(value) || !name) {\n return null;\n }\n return value.map(v => {\n const currentSerializedValue = stringifyAsValue(v, itemToStringValue);\n return /*#__PURE__*/_jsx(\"input\", {\n type: \"hidden\",\n form: form,\n name: name,\n value: currentSerializedValue,\n disabled: disabled\n }, currentSerializedValue);\n });\n }, [multiple, value, form, name, itemToStringValue, disabled]);\n return /*#__PURE__*/_jsx(SelectRootContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsxs(SelectFloatingContext.Provider, {\n value: floatingContext,\n children: [children, /*#__PURE__*/_jsx(\"input\", {\n ...validation.getValidationProps(disabled, {\n onFocus() {\n // Move focus to the trigger element when the hidden input is focused.\n store.state.triggerElement?.focus({\n // Supported in Chrome from 144 (January 2026)\n focusVisible: true\n });\n },\n // Handle browser autofill.\n onChange(event) {\n // Workaround for https://github.com/facebook/react/issues/9023\n if (event.nativeEvent.defaultPrevented || disabled || readOnly) {\n return;\n }\n const nextValue = event.currentTarget.value;\n const details = createChangeEventDetails(REASONS.none, event.nativeEvent);\n function handleChange() {\n if (multiple) {\n // Browser autofill only writes a single scalar value.\n return;\n }\n\n // Preserve the original serialized matching, then fall back to rendered text,\n // which browsers can autofill for primitive values like `value=\"US\">United States`.\n const nextValueLower = nextValue.toLowerCase();\n let matchingIndex = valuesRef.current.findIndex(candidate => stringifyAsValue(candidate, itemToStringValue).toLowerCase() === nextValueLower || stringifyAsLabel(candidate, itemToStringLabel).toLowerCase() === nextValueLower);\n if (matchingIndex === -1) {\n matchingIndex = valuesRef.current.findIndex((_, index) => {\n const renderedLabel = labelsRef.current[index];\n return renderedLabel != null && renderedLabel.toLowerCase() === nextValueLower;\n });\n }\n const matchingValue = matchingIndex === -1 ? undefined : valuesRef.current[matchingIndex];\n if (matchingValue != null) {\n // `setValue` may be canceled by `onValueChange`; rely on `useValueChanged` to\n // mark the field dirty and run validation only when the value actually changes.\n setValue(matchingValue, details);\n }\n }\n store.set('forceMount', true);\n queueMicrotask(handleChange);\n }\n }),\n id: generatedId && hiddenInputName == null ? `${generatedId}-hidden-input` : undefined,\n form: form,\n name: hiddenInputName,\n autoComplete: autoComplete,\n value: serializedValue,\n disabled: disabled,\n required: required && !hasMultipleSelection,\n readOnly: readOnly,\n ref: ref,\n style: name ? visuallyHiddenInput : visuallyHidden,\n tabIndex: -1,\n \"aria-hidden\": true,\n suppressHydrationWarning: true\n }), hiddenInputs]\n })\n });\n}"],"names":["SelectRoot","props","id","valueProp","defaultValue","onValueChange","openProp","defaultOpen","onOpenChange","nameProp","form","autoComplete","disabledProp","readOnly","required","modal","actionsRef","inputRef","onOpenChangeComplete","items","multiple","itemToStringLabel","itemToStringValue","isItemEqualToValue","defaultItemEquality","highlightItemOnHover","children","clearErrors","useFormContext","setDirty","setTouched","setFocused","validityData","setFilled","fieldName","fieldDisabled","validation","validationMode","useFieldRootContext","generatedId","useLabelableId","disabled","name","value","setValueUnwrapped","useControlled","EMPTY_ARRAY","open","setOpenUnwrapped","listRef","React","labelsRef","popupRef","scrollHandlerRef","scrollArrowsMountedCountRef","valueRef","valuesRef","typingRef","firstItemTextRef","selectedItemTextRef","selectionRef","alignItemWithTriggerActiveRef","mounted","setMounted","transitionStatus","useTransitionStatus","openMethod","interactionTypeProps","useOpenInteractionType","store","useRefWithInit","Store","activeIndex","useStore","selectors","selectedIndex","triggerElement","positionerElement","previousOpenMethod","usePreviousValue","renderedOpenMethod","serializedValue","stringifyAsValue","fieldStringValue","currentValue","controlRef","useValueAsRef","getStringifiedValueForForm","useStableCallback","useRegisterFieldControl","initialValueRef","hasSelectedValue","useIsoLayoutEffect","registry","nextIndex","lastValue","lastIndex","findItemIndex","index","isSelectedValueDirty","initialValue","areArraysEqual","itemValue","initialItemValue","compareItemEquality","useValueChanged","setOpen","nextOpen","eventDetails","REASONS.focusOut","REASONS.outsidePress","handleUnmount","useOpenChangeComplete","setValue","nextValue","handleScrollArrowVisibility","scroller","maxScrollTop","getMaxScrollOffset","scrollTop","normalizeScrollOffset","shouldShowUp","shouldShowDown","floatingContext","useFloatingRootContext","click","useClick","dismiss","useDismiss","listNavigation","useListNavigation","nextActiveIndex","typeahead","useTypeahead","isElementDisabled","createChangeEventDetails","typing","mergedTriggerProps","triggerInteractionProps","mergeProps","popupProps","FOCUSABLE_POPUP_PROPS","itemProps","EMPTY_OBJECT","useOnFirstRender","contextValue","ref","useMergedRefs","hasMultipleSelection","hiddenInputName","hiddenInputs","v","currentSerializedValue","_jsx","SelectRootContext","_jsxs","SelectFloatingContext","event","details","REASONS.none","handleChange","nextValueLower","matchingIndex","candidate","stringifyAsLabel","_","renderedLabel","matchingValue","visuallyHiddenInput","visuallyHidden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AAM6I,IAAiB/C,EAAU,YAAW;AAC5C,kBAAIgD,IAAgB1G,EAAU,QAAQ,UAAU,CAAA2G,MAAajF,EAAiBiF,GAAW7I,CAAiB,EAAE,YAAW,MAAO2I,KAAkBG,GAAiBD,GAAW9I,CAAiB,EAAE,YAAW,MAAO4I,CAAc;AAC/N,cAAIC,MAAkB,OACpBA,IAAgB1G,EAAU,QAAQ,UAAU,CAAC6G,GAAGnE,OAAU;AACxD,sBAAMoE,KAAgBnH,EAAU,QAAQ+C,EAAK;AAC7C,uBAAOoE,MAAiB,QAAQA,GAAc,YAAW,MAAOL;AAAA,cAClE,CAAC;AAEH,oBAAMM,KAAgBL,MAAkB,KAAK,SAAY1G,EAAU,QAAQ0G,CAAa;AACxF,cAAIK,MAAiB,QAGnBtD,EAASsD,IAAeT,CAAO;AAAA,YAEnC;AACA,YAAAzF,EAAM,IAAI,cAAc,EAAI,GAC5B,eAAe2F,CAAY;AAAA,UAC7B;AAAA,QACV,CAAS;AAAA,QACD,IAAIzH,KAAe8G,MAAmB,OAAO,GAAG9G,CAAW,kBAAkB;AAAA,QAC7E,MAAM7B;AAAA,QACN,MAAM2I;AAAA,QACN,cAAc1I;AAAA,QACd,OAAOsE;AAAA,QACP,UAAUxC;AAAA,QACV,UAAU3B,KAAY,CAACsI;AAAA,QACvB,UAAUvI;AAAA,QACV,KAAKqI;AAAA,QACL,OAAOxG,IAAO8H,KAAsBC;AAAA,QACpC,UAAU;AAAA,QACV,eAAe;AAAA,QACf,0BAA0B;AAAA,MAClC,CAAO,GAAGnB,EAAY;AAAA,IACtB,CAAK;AAAA,EACL,CAAG;AACH;","x_google_ignoreList":[0]}
|
package/dist/index5.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as m } from "./
|
|
2
|
-
import { c as y } from "./
|
|
1
|
+
import { j as m } from "./index30.js";
|
|
2
|
+
import { c as y } from "./index28.js";
|
|
3
3
|
import { cn as f } from "./index2.js";
|
|
4
4
|
const g = {
|
|
5
5
|
red: "checked:border-red-700 checked:bg-red-700 indeterminate:border-red-700 indeterminate:bg-red-700 focus-visible:outline-red-700",
|
package/dist/index50.js
CHANGED
|
@@ -1,30 +1,261 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import * as M from "react";
|
|
2
|
+
import { rectToClientRect as Jt } from "./index325.js";
|
|
3
|
+
import { addEventListener as Qt } from "./index326.js";
|
|
4
|
+
import { useStableCallback as te } from "./index288.js";
|
|
5
|
+
import { ownerDocument as Tt } from "./index310.js";
|
|
6
|
+
import { useIsoLayoutEffect as rt } from "./index287.js";
|
|
7
|
+
import { useAnimationFrame as ee } from "./index327.js";
|
|
8
|
+
import { useSelectRootContext as oe, useSelectFloatingContext as ne } from "./index291.js";
|
|
9
|
+
import { popupStateMapping as re } from "./index233.js";
|
|
10
|
+
import { useSelectPositionerContext as ie } from "./index321.js";
|
|
11
|
+
import { styleDisableScrollbar as Rt } from "./index328.js";
|
|
12
|
+
import { transitionStatusMapping as se } from "./index234.js";
|
|
13
|
+
import { useOpenChangeComplete as le } from "./index242.js";
|
|
14
|
+
import { useRenderElement as ce } from "./index232.js";
|
|
15
|
+
import { selectors as a } from "./index296.js";
|
|
16
|
+
import { clearStyles as Ct, LIST_FUNCTIONAL_STYLES as ae } from "./index322.js";
|
|
17
|
+
import { createChangeEventDetails as pe } from "./index235.js";
|
|
18
|
+
import { useToolbarRootContext as me } from "./index329.js";
|
|
19
|
+
import { COMPOSITE_KEYS as ue } from "./index243.js";
|
|
20
|
+
import { getDisabledMountTransitionStyles as ge } from "./index330.js";
|
|
21
|
+
import { clamp as U } from "./index331.js";
|
|
22
|
+
import { SCROLL_EDGE_TOLERANCE_PX as v, getMaxScrollOffset as fe } from "./index302.js";
|
|
23
|
+
import { useCSPContext as he } from "./index332.js";
|
|
24
|
+
import { useDirection as de } from "./index333.js";
|
|
25
|
+
import { j as Ht } from "./index30.js";
|
|
26
|
+
import { useStore as d } from "./index303.js";
|
|
27
|
+
import { getWindow as it } from "./index334.js";
|
|
28
|
+
import { FloatingFocusManager as ye } from "./index245.js";
|
|
29
|
+
import { platform as xe } from "./index335.js";
|
|
30
|
+
import { webkit as Se } from "./index336.js";
|
|
31
|
+
import { windowResize as Te } from "./index237.js";
|
|
32
|
+
const Re = {
|
|
33
|
+
...re,
|
|
34
|
+
...se
|
|
35
|
+
}, Ce = /* @__PURE__ */ M.forwardRef(function(o, F) {
|
|
6
36
|
const {
|
|
7
|
-
render:
|
|
8
|
-
className:
|
|
9
|
-
style:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
render: y,
|
|
38
|
+
className: A,
|
|
39
|
+
style: Ee,
|
|
40
|
+
finalFocus: Mt,
|
|
41
|
+
...vt
|
|
42
|
+
} = o, {
|
|
43
|
+
store: i,
|
|
44
|
+
popupRef: p,
|
|
45
|
+
onOpenChangeComplete: Ft,
|
|
46
|
+
setOpen: st,
|
|
47
|
+
valueRef: lt,
|
|
48
|
+
firstItemTextRef: J,
|
|
49
|
+
selectedItemTextRef: ct,
|
|
50
|
+
multiple: wt,
|
|
51
|
+
handleScrollArrowVisibility: H,
|
|
52
|
+
scrollHandlerRef: Bt,
|
|
53
|
+
listRef: at,
|
|
54
|
+
highlightItemOnHover: pt
|
|
55
|
+
} = oe(), {
|
|
56
|
+
side: It,
|
|
57
|
+
align: Ot,
|
|
58
|
+
alignItemWithTriggerActive: s,
|
|
59
|
+
isPositioned: mt,
|
|
60
|
+
setControlledAlignItemWithTrigger: ut
|
|
61
|
+
} = ie(), At = me() != null, Lt = ne(), Q = de(), {
|
|
62
|
+
nonce: Dt,
|
|
63
|
+
disableStyleElements: Nt
|
|
64
|
+
} = he(), _t = d(i, a.id), m = d(i, a.open), $t = d(i, a.openMethod), Vt = d(i, a.mounted), Wt = d(i, a.popupProps), gt = d(i, a.transitionStatus), L = d(i, a.triggerElement), t = d(i, a.positionerElement), w = d(i, a.listElement), D = M.useRef(!1), N = M.useRef(!1), k = M.useRef({}), ft = ee(), tt = te((e) => {
|
|
65
|
+
if (!t || !p.current || !N.current)
|
|
66
|
+
return;
|
|
67
|
+
if (D.current || !s) {
|
|
68
|
+
H();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const x = t.style.top === "0px", u = t.style.bottom === "0px";
|
|
72
|
+
if (!x && !u) {
|
|
73
|
+
H();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const K = Pt(t), g = j(t.getBoundingClientRect().height, "y", K), _ = Tt(t), $ = it(t), V = $.getComputedStyle(t), B = parseFloat(V.marginTop), f = parseFloat(V.marginBottom), l = Et($.getComputedStyle(p.current)), S = Math.min(_.documentElement.clientHeight - B - f, l), c = e.scrollTop, W = X(e);
|
|
77
|
+
let T = 0, R = null, E = !1, I = !1;
|
|
78
|
+
const q = (r) => {
|
|
79
|
+
t.style.height = `${r}px`;
|
|
80
|
+
}, et = (r, O) => {
|
|
81
|
+
const z = U(r, 0, S - g);
|
|
82
|
+
z > 0 && q(g + z), e.scrollTop = O, S - (g + z) <= v && (D.current = !0), H();
|
|
83
|
+
}, P = x ? W - c : c, Y = Math.min(g + P, S);
|
|
84
|
+
if (T = Y, P <= v) {
|
|
85
|
+
et(P, x ? W : 0);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (S - Y > v)
|
|
89
|
+
x ? I = !0 : R = 0;
|
|
90
|
+
else if (E = !0, u && c < W) {
|
|
91
|
+
const r = g + P - S;
|
|
92
|
+
R = c - (P - r);
|
|
93
|
+
}
|
|
94
|
+
if (T = Math.ceil(T), T !== 0 && q(T), I || R != null) {
|
|
95
|
+
const r = X(e), O = I ? r : U(R, 0, r);
|
|
96
|
+
Math.abs(e.scrollTop - O) > v && (e.scrollTop = O);
|
|
97
|
+
}
|
|
98
|
+
(E || T >= S - v) && (D.current = !0), H();
|
|
20
99
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
100
|
+
M.useImperativeHandle(Bt, () => tt, [tt]), le({
|
|
101
|
+
open: m,
|
|
102
|
+
ref: p,
|
|
103
|
+
onComplete() {
|
|
104
|
+
m && Ft?.(!0);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
const Yt = {
|
|
108
|
+
open: m,
|
|
109
|
+
transitionStatus: gt,
|
|
110
|
+
side: It,
|
|
111
|
+
align: Ot
|
|
112
|
+
};
|
|
113
|
+
rt(() => {
|
|
114
|
+
!t || !p.current || Object.keys(k.current).length || (k.current = {
|
|
115
|
+
top: t.style.top || "0",
|
|
116
|
+
left: t.style.left || "0",
|
|
117
|
+
right: t.style.right,
|
|
118
|
+
height: t.style.height,
|
|
119
|
+
bottom: t.style.bottom,
|
|
120
|
+
minHeight: t.style.minHeight,
|
|
121
|
+
maxHeight: t.style.maxHeight,
|
|
122
|
+
marginTop: t.style.marginTop,
|
|
123
|
+
marginBottom: t.style.marginBottom
|
|
124
|
+
});
|
|
125
|
+
}, [p, t]), rt(() => {
|
|
126
|
+
m || s || (N.current = !1, D.current = !1, Ct(t, k.current));
|
|
127
|
+
}, [m, s, t, p]), rt(() => {
|
|
128
|
+
const e = p.current;
|
|
129
|
+
if (!m || !L || !t || !e || s && !mt || i.state.transitionStatus === "ending")
|
|
130
|
+
return;
|
|
131
|
+
if (!s) {
|
|
132
|
+
N.current = !0, ft.request(H), e.style.removeProperty("--transform-origin");
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const x = He(e);
|
|
136
|
+
e.style.removeProperty("--transform-origin");
|
|
137
|
+
try {
|
|
138
|
+
let u = ct.current;
|
|
139
|
+
u?.isConnected || (u = !a.hasSelectedValue(i.state) && J.current?.isConnected ? J.current : null);
|
|
140
|
+
const K = lt.current, g = it(t), _ = g.getComputedStyle(t), $ = g.getComputedStyle(e), V = Tt(L), B = Pt(L), f = Z(L.getBoundingClientRect(), B), l = Z(t.getBoundingClientRect(), B), S = f.height, c = w || e, W = c.scrollHeight, T = parseFloat($.borderBottomWidth), R = parseFloat(_.marginTop) || 10, E = parseFloat(_.marginBottom) || 10, I = parseFloat(_.minHeight) || 100, q = Et($), et = 5, P = 5, Y = 20, r = V.documentElement.clientHeight - R - E, O = V.documentElement.clientWidth, z = r - f.bottom + S;
|
|
141
|
+
let C, ht = Q === "rtl" ? f.right - l.width : f.left, dt = 0;
|
|
142
|
+
if (u && K) {
|
|
143
|
+
const h = Z(K.getBoundingClientRect(), B);
|
|
144
|
+
C = Z(u.getBoundingClientRect(), B), ht = l.left + (Q === "rtl" ? h.right - C.right : h.left - C.left);
|
|
145
|
+
const G = h.top - f.top + h.height / 2;
|
|
146
|
+
dt = C.top - l.top + C.height / 2 - G;
|
|
147
|
+
}
|
|
148
|
+
const ot = z + dt + E + T;
|
|
149
|
+
let b = Math.min(r, ot);
|
|
150
|
+
const kt = r - R - E, nt = ot - b, Kt = O - P;
|
|
151
|
+
t.style.left = `${U(ht, et, Kt - l.width)}px`, t.style.height = `${b}px`, t.style.maxHeight = "none", t.style.marginTop = `${R}px`, t.style.marginBottom = `${E}px`, e.style.height = "100%";
|
|
152
|
+
const yt = X(c), xt = nt >= yt - v;
|
|
153
|
+
xt && (b = Math.min(r, l.height) - (nt - yt));
|
|
154
|
+
const qt = f.top < Y || f.bottom > r - Y || Math.ceil(b) + v < Math.min(W, I), Gt = (g.visualViewport?.scale ?? 1) !== 1 && Se;
|
|
155
|
+
if (qt || Gt) {
|
|
156
|
+
N.current = !0, Ct(t, k.current), ut(!1);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const Ut = Math.max(I, b);
|
|
160
|
+
if (xt) {
|
|
161
|
+
const h = Math.max(0, r - ot);
|
|
162
|
+
t.style.top = l.height >= kt ? "0" : `${h}px`, t.style.height = `${b}px`, c.scrollTop = X(c);
|
|
163
|
+
} else
|
|
164
|
+
t.style.bottom = "0", c.scrollTop = nt;
|
|
165
|
+
if (C) {
|
|
166
|
+
const h = l.top, G = l.height, St = C.top + C.height / 2, Xt = G > 0 ? (St - h) / G * 100 : 50, Zt = U(Xt, 0, 100);
|
|
167
|
+
e.style.setProperty("--transform-origin", `50% ${Zt}%`);
|
|
168
|
+
}
|
|
169
|
+
(Ut === r || b >= q) && (D.current = !0), H(), pt && i.state.selectedIndex === null && i.state.activeIndex === null && at.current[0] != null && i.set("activeIndex", 0), N.current = !0;
|
|
170
|
+
} finally {
|
|
171
|
+
x();
|
|
172
|
+
}
|
|
173
|
+
}, [i, m, t, L, lt, J, ct, p, H, s, ut, ft, w, at, pt, Q, mt]), M.useEffect(() => {
|
|
174
|
+
if (!s || !t || !m)
|
|
175
|
+
return;
|
|
176
|
+
const e = it(t);
|
|
177
|
+
function x(u) {
|
|
178
|
+
st(!1, pe(Te, u));
|
|
179
|
+
}
|
|
180
|
+
return Qt(e, "resize", x);
|
|
181
|
+
}, [st, s, t, m]);
|
|
182
|
+
const zt = {
|
|
183
|
+
...w ? {
|
|
184
|
+
role: "presentation",
|
|
185
|
+
"aria-orientation": void 0
|
|
186
|
+
} : {
|
|
187
|
+
role: "listbox",
|
|
188
|
+
"aria-multiselectable": wt || void 0,
|
|
189
|
+
id: `${_t}-list`
|
|
190
|
+
},
|
|
191
|
+
onKeyDown(e) {
|
|
192
|
+
At && ue.has(e.key) && e.stopPropagation();
|
|
193
|
+
},
|
|
194
|
+
onScroll(e) {
|
|
195
|
+
w || tt(e.currentTarget);
|
|
196
|
+
},
|
|
197
|
+
...s && {
|
|
198
|
+
style: w ? {
|
|
199
|
+
height: "100%"
|
|
200
|
+
} : ae
|
|
201
|
+
}
|
|
202
|
+
}, jt = ce("div", o, {
|
|
203
|
+
ref: [F, p],
|
|
204
|
+
state: Yt,
|
|
205
|
+
stateAttributesMapping: Re,
|
|
206
|
+
props: [Wt, zt, ge(gt), {
|
|
207
|
+
className: !w && s ? Rt.className : void 0
|
|
208
|
+
}, vt]
|
|
209
|
+
});
|
|
210
|
+
return /* @__PURE__ */ Ht.jsxs(M.Fragment, {
|
|
211
|
+
children: [!Nt && Rt.getElement(Dt), /* @__PURE__ */ Ht.jsx(ye, {
|
|
212
|
+
context: Lt,
|
|
213
|
+
modal: !1,
|
|
214
|
+
disabled: !Vt,
|
|
215
|
+
openInteractionType: $t,
|
|
216
|
+
returnFocus: Mt,
|
|
217
|
+
restoreFocus: !0,
|
|
218
|
+
children: jt
|
|
219
|
+
})]
|
|
24
220
|
});
|
|
25
221
|
});
|
|
26
|
-
process.env.NODE_ENV !== "production" && (
|
|
222
|
+
process.env.NODE_ENV !== "production" && (Ce.displayName = "SelectPopup");
|
|
223
|
+
function Et(n) {
|
|
224
|
+
const o = n.maxHeight || "";
|
|
225
|
+
return o.endsWith("px") && parseFloat(o) || 1 / 0;
|
|
226
|
+
}
|
|
227
|
+
function X(n) {
|
|
228
|
+
return fe(n.scrollHeight, n.clientHeight);
|
|
229
|
+
}
|
|
230
|
+
function Pt(n) {
|
|
231
|
+
return xe.getScale(n);
|
|
232
|
+
}
|
|
233
|
+
function j(n, o, F) {
|
|
234
|
+
return n / F[o];
|
|
235
|
+
}
|
|
236
|
+
function Z(n, o) {
|
|
237
|
+
return Jt({
|
|
238
|
+
x: j(n.x, "x", o),
|
|
239
|
+
y: j(n.y, "y", o),
|
|
240
|
+
width: j(n.width, "x", o),
|
|
241
|
+
height: j(n.height, "y", o)
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
const bt = [["transform", "none"], ["scale", "1"], ["translate", "0 0"]];
|
|
245
|
+
function He(n) {
|
|
246
|
+
const {
|
|
247
|
+
style: o
|
|
248
|
+
} = n, F = {};
|
|
249
|
+
for (const [y, A] of bt)
|
|
250
|
+
F[y] = o.getPropertyValue(y), o.setProperty(y, A, "important");
|
|
251
|
+
return () => {
|
|
252
|
+
for (const [y] of bt) {
|
|
253
|
+
const A = F[y];
|
|
254
|
+
A ? o.setProperty(y, A) : o.removeProperty(y);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
}
|
|
27
258
|
export {
|
|
28
|
-
|
|
259
|
+
Ce as SelectPopup
|
|
29
260
|
};
|
|
30
261
|
//# sourceMappingURL=index50.js.map
|
package/dist/index50.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index50.js","sources":["../../../node_modules/@base-ui/react/select/group/SelectGroup.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { SelectGroupContext } from \"./SelectGroupContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\n\n/**\n * Groups related select items with the corresponding label.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const SelectGroup = /*#__PURE__*/React.forwardRef(function SelectGroup(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const [labelId, setLabelId] = React.useState();\n const contextValue = React.useMemo(() => ({\n labelId,\n setLabelId\n }), [labelId, setLabelId]);\n const element = useRenderElement('div', componentProps, {\n ref: forwardedRef,\n props: [{\n role: 'group',\n 'aria-labelledby': labelId\n }, elementProps]\n });\n return /*#__PURE__*/_jsx(SelectGroupContext.Provider, {\n value: contextValue,\n children: element\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectGroup.displayName = \"SelectGroup\";"],"names":["SelectGroup","React","componentProps","forwardedRef","render","className","style","elementProps","labelId","setLabelId","contextValue","element","useRenderElement","_jsx","SelectGroupContext"],"mappings":";;;;AAaY,MAACA,IAA2B,gBAAAC,EAAM,WAAW,SAAqBC,GAAgBC,GAAc;AAC1G,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAML,GACE,CAACM,GAASC,CAAU,IAAIR,EAAM,SAAQ,GACtCS,IAAeT,EAAM,QAAQ,OAAO;AAAA,IACxC,SAAAO;AAAA,IACA,YAAAC;AAAA,EACJ,IAAM,CAACD,GAASC,CAAU,CAAC,GACnBE,IAAUC,EAAiB,OAAOV,GAAgB;AAAA,IACtD,KAAKC;AAAA,IACL,OAAO,CAAC;AAAA,MACN,MAAM;AAAA,MACN,mBAAmBK;AAAA,IACzB,GAAOD,CAAY;AAAA,EACnB,CAAG;AACD,SAAoBM,gBAAAA,EAAAA,IAAKC,EAAmB,UAAU;AAAA,IACpD,OAAOJ;AAAA,IACP,UAAUC;AAAA,EACd,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcX,EAAY,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index50.js","sources":["../../../node_modules/@base-ui/react/select/popup/SelectPopup.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { rectToClientRect } from '@floating-ui/utils';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { platform } from '@base-ui/utils/platform';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStore } from '@base-ui/utils/store';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { FloatingFocusManager, platform as floatingPlatform } from \"../../floating-ui-react/index.mjs\";\nimport { useSelectFloatingContext, useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { popupStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useSelectPositionerContext } from \"../positioner/SelectPositionerContext.mjs\";\nimport { styleDisableScrollbar } from \"../../utils/styles.mjs\";\nimport { transitionStatusMapping } from \"../../internals/stateAttributesMapping.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { clearStyles, LIST_FUNCTIONAL_STYLES } from \"./utils.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useToolbarRootContext } from \"../../toolbar/root/ToolbarRootContext.mjs\";\nimport { COMPOSITE_KEYS } from \"../../internals/composite/composite.mjs\";\nimport { getDisabledMountTransitionStyles } from \"../../utils/getDisabledMountTransitionStyles.mjs\";\nimport { clamp } from \"../../internals/clamp.mjs\";\nimport { getMaxScrollOffset, SCROLL_EDGE_TOLERANCE_PX } from \"../../utils/scrollEdges.mjs\";\nimport { useCSPContext } from \"../../internals/csp-context/CSPContext.mjs\";\nimport { useDirection } from \"../../internals/direction-context/DirectionContext.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst stateAttributesMapping = {\n ...popupStateMapping,\n ...transitionStatusMapping\n};\n\n/**\n * A container for the select list.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectPopup = /*#__PURE__*/React.forwardRef(function SelectPopup(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n finalFocus,\n ...elementProps\n } = componentProps;\n const {\n store,\n popupRef,\n onOpenChangeComplete,\n setOpen,\n valueRef,\n firstItemTextRef,\n selectedItemTextRef,\n multiple,\n handleScrollArrowVisibility,\n scrollHandlerRef,\n listRef,\n highlightItemOnHover\n } = useSelectRootContext();\n const {\n side,\n align,\n alignItemWithTriggerActive,\n isPositioned,\n setControlledAlignItemWithTrigger\n } = useSelectPositionerContext();\n const insideToolbar = useToolbarRootContext(true) != null;\n const floatingRootContext = useSelectFloatingContext();\n const direction = useDirection();\n const {\n nonce,\n disableStyleElements\n } = useCSPContext();\n const id = useStore(store, selectors.id);\n const open = useStore(store, selectors.open);\n const openMethod = useStore(store, selectors.openMethod);\n const mounted = useStore(store, selectors.mounted);\n const popupProps = useStore(store, selectors.popupProps);\n const transitionStatus = useStore(store, selectors.transitionStatus);\n const triggerElement = useStore(store, selectors.triggerElement);\n const positionerElement = useStore(store, selectors.positionerElement);\n const listElement = useStore(store, selectors.listElement);\n const reachedMaxHeightRef = React.useRef(false);\n const initialPlacedRef = React.useRef(false);\n const originalPositionerStylesRef = React.useRef({});\n const scrollArrowFrame = useAnimationFrame();\n const handleScroll = useStableCallback(scroller => {\n if (!positionerElement || !popupRef.current || !initialPlacedRef.current) {\n return;\n }\n if (reachedMaxHeightRef.current || !alignItemWithTriggerActive) {\n handleScrollArrowVisibility();\n return;\n }\n const isTopPositioned = positionerElement.style.top === '0px';\n const isBottomPositioned = positionerElement.style.bottom === '0px';\n if (!isTopPositioned && !isBottomPositioned) {\n handleScrollArrowVisibility();\n return;\n }\n const scale = getScale(positionerElement);\n const currentHeight = normalizeSize(positionerElement.getBoundingClientRect().height, 'y', scale);\n const doc = ownerDocument(positionerElement);\n const win = ownerWindow(positionerElement);\n const positionerStyles = win.getComputedStyle(positionerElement);\n const marginTop = parseFloat(positionerStyles.marginTop);\n const marginBottom = parseFloat(positionerStyles.marginBottom);\n const maxPopupHeight = getMaxPopupHeight(win.getComputedStyle(popupRef.current));\n const maxAvailableHeight = Math.min(doc.documentElement.clientHeight - marginTop - marginBottom, maxPopupHeight);\n const scrollTop = scroller.scrollTop;\n const maxScrollTop = getMaxScrollTop(scroller);\n let nextPositionerHeight = 0;\n let nextScrollTop = null;\n let setReachedMax = false;\n let scrollToMax = false;\n const setHeight = height => {\n positionerElement.style.height = `${height}px`;\n };\n const handleSmallDiff = (diff, targetScrollTop) => {\n const heightDelta = clamp(diff, 0, maxAvailableHeight - currentHeight);\n if (heightDelta > 0) {\n // Consume the remaining scroll in height.\n setHeight(currentHeight + heightDelta);\n }\n scroller.scrollTop = targetScrollTop;\n if (maxAvailableHeight - (currentHeight + heightDelta) <= SCROLL_EDGE_TOLERANCE_PX) {\n reachedMaxHeightRef.current = true;\n }\n handleScrollArrowVisibility();\n };\n const diff = isTopPositioned ? maxScrollTop - scrollTop : scrollTop;\n const nextHeight = Math.min(currentHeight + diff, maxAvailableHeight);\n nextPositionerHeight = nextHeight;\n if (diff <= SCROLL_EDGE_TOLERANCE_PX) {\n handleSmallDiff(diff, isTopPositioned ? maxScrollTop : 0);\n return;\n }\n if (maxAvailableHeight - nextHeight > SCROLL_EDGE_TOLERANCE_PX) {\n if (isTopPositioned) {\n scrollToMax = true;\n } else {\n nextScrollTop = 0;\n }\n } else {\n setReachedMax = true;\n if (isBottomPositioned && scrollTop < maxScrollTop) {\n const overshoot = currentHeight + diff - maxAvailableHeight;\n nextScrollTop = scrollTop - (diff - overshoot);\n }\n }\n nextPositionerHeight = Math.ceil(nextPositionerHeight);\n if (nextPositionerHeight !== 0) {\n setHeight(nextPositionerHeight);\n }\n if (scrollToMax || nextScrollTop != null) {\n // Recompute bounds after resizing (clientHeight likely changed).\n const nextMaxScrollTop = getMaxScrollTop(scroller);\n const target = scrollToMax ? nextMaxScrollTop : clamp(nextScrollTop, 0, nextMaxScrollTop);\n\n // Avoid adjustments that re-trigger scroll events forever.\n if (Math.abs(scroller.scrollTop - target) > SCROLL_EDGE_TOLERANCE_PX) {\n scroller.scrollTop = target;\n }\n }\n if (setReachedMax || nextPositionerHeight >= maxAvailableHeight - SCROLL_EDGE_TOLERANCE_PX) {\n reachedMaxHeightRef.current = true;\n }\n handleScrollArrowVisibility();\n });\n React.useImperativeHandle(scrollHandlerRef, () => handleScroll, [handleScroll]);\n useOpenChangeComplete({\n open,\n ref: popupRef,\n onComplete() {\n if (open) {\n onOpenChangeComplete?.(true);\n }\n }\n });\n const state = {\n open,\n transitionStatus,\n side,\n align\n };\n useIsoLayoutEffect(() => {\n if (!positionerElement || !popupRef.current || Object.keys(originalPositionerStylesRef.current).length) {\n return;\n }\n originalPositionerStylesRef.current = {\n top: positionerElement.style.top || '0',\n left: positionerElement.style.left || '0',\n right: positionerElement.style.right,\n height: positionerElement.style.height,\n bottom: positionerElement.style.bottom,\n minHeight: positionerElement.style.minHeight,\n maxHeight: positionerElement.style.maxHeight,\n marginTop: positionerElement.style.marginTop,\n marginBottom: positionerElement.style.marginBottom\n };\n }, [popupRef, positionerElement]);\n useIsoLayoutEffect(() => {\n if (open || alignItemWithTriggerActive) {\n return;\n }\n initialPlacedRef.current = false;\n reachedMaxHeightRef.current = false;\n clearStyles(positionerElement, originalPositionerStylesRef.current);\n }, [open, alignItemWithTriggerActive, positionerElement, popupRef]);\n useIsoLayoutEffect(() => {\n const popupElement = popupRef.current;\n\n // Wait for Floating UI's first positioning pass before reading DOM geometry.\n // We replace the final coordinates for aligned selects, but still need middleware\n // like `size()` to set CSS variables such as `--anchor-width`.\n if (!open || !triggerElement || !positionerElement || !popupElement || alignItemWithTriggerActive && !isPositioned || store.state.transitionStatus === 'ending') {\n return;\n }\n if (!alignItemWithTriggerActive) {\n initialPlacedRef.current = true;\n scrollArrowFrame.request(handleScrollArrowVisibility);\n popupElement.style.removeProperty('--transform-origin');\n return;\n }\n\n // Ensure we remove any transforms that can affect the location of the popup\n // and therefore the calculations.\n const restoreTransformStyles = unsetTransformStyles(popupElement);\n popupElement.style.removeProperty('--transform-origin');\n try {\n let textElement = selectedItemTextRef.current;\n if (!textElement?.isConnected) {\n const hasSelectedValue = selectors.hasSelectedValue(store.state);\n textElement = !hasSelectedValue && firstItemTextRef.current?.isConnected ? firstItemTextRef.current : null;\n }\n const valueElement = valueRef.current;\n const win = ownerWindow(positionerElement);\n const positionerStyles = win.getComputedStyle(positionerElement);\n const popupStyles = win.getComputedStyle(popupElement);\n const doc = ownerDocument(triggerElement);\n const scale = getScale(triggerElement);\n const triggerRect = normalizeRect(triggerElement.getBoundingClientRect(), scale);\n const positionerRect = normalizeRect(positionerElement.getBoundingClientRect(), scale);\n const triggerHeight = triggerRect.height;\n const scroller = listElement || popupElement;\n const scrollHeight = scroller.scrollHeight;\n const borderBottom = parseFloat(popupStyles.borderBottomWidth);\n // The `|| N` fallbacks cover an unset/`auto` value (parses to `NaN`). Note a literal `0`\n // also resolves to the fallback, so an explicit `margin: 0` or `min-height: 0` still takes\n // the default below.\n const marginTop = parseFloat(positionerStyles.marginTop) || 10;\n const marginBottom = parseFloat(positionerStyles.marginBottom) || 10;\n const minHeight = parseFloat(positionerStyles.minHeight) || 100;\n const maxPopupHeight = getMaxPopupHeight(popupStyles);\n const paddingLeft = 5;\n const paddingRight = 5;\n const triggerCollisionThreshold = 20;\n const viewportHeight = doc.documentElement.clientHeight - marginTop - marginBottom;\n const viewportWidth = doc.documentElement.clientWidth;\n const availableSpaceBeneathTrigger = viewportHeight - triggerRect.bottom + triggerHeight;\n let textRect;\n let alignedLeft = direction === 'rtl' ? triggerRect.right - positionerRect.width : triggerRect.left;\n let offsetY = 0;\n if (textElement && valueElement) {\n const valueRect = normalizeRect(valueElement.getBoundingClientRect(), scale);\n textRect = normalizeRect(textElement.getBoundingClientRect(), scale);\n alignedLeft = positionerRect.left + (direction === 'rtl' ? valueRect.right - textRect.right : valueRect.left - textRect.left);\n const valueCenterFromTriggerTop = valueRect.top - triggerRect.top + valueRect.height / 2;\n const textCenterFromPositionerTop = textRect.top - positionerRect.top + textRect.height / 2;\n offsetY = textCenterFromPositionerTop - valueCenterFromTriggerTop;\n }\n const idealHeight = availableSpaceBeneathTrigger + offsetY + marginBottom + borderBottom;\n let height = Math.min(viewportHeight, idealHeight);\n const maxHeight = viewportHeight - marginTop - marginBottom;\n const scrollTop = idealHeight - height;\n const maxRight = viewportWidth - paddingRight;\n positionerElement.style.left = `${clamp(alignedLeft, paddingLeft, maxRight - positionerRect.width)}px`;\n positionerElement.style.height = `${height}px`;\n // `none` (not the invalid `auto`) so the explicit height governs in align mode and isn't\n // clamped by a `max-height` from user CSS.\n positionerElement.style.maxHeight = 'none';\n positionerElement.style.marginTop = `${marginTop}px`;\n positionerElement.style.marginBottom = `${marginBottom}px`;\n popupElement.style.height = '100%';\n const maxScrollTop = getMaxScrollTop(scroller);\n const isTopPositioned = scrollTop >= maxScrollTop - SCROLL_EDGE_TOLERANCE_PX;\n if (isTopPositioned) {\n height = Math.min(viewportHeight, positionerRect.height) - (scrollTop - maxScrollTop);\n }\n\n // When the trigger is too close to the top or bottom of the viewport, or the minHeight is\n // reached, we fallback to aligning the popup to the trigger as the UX is poor otherwise.\n const fallbackToAlignPopupToTrigger = triggerRect.top < triggerCollisionThreshold || triggerRect.bottom > viewportHeight - triggerCollisionThreshold || Math.ceil(height) + SCROLL_EDGE_TOLERANCE_PX < Math.min(scrollHeight, minHeight);\n\n // Safari doesn't position the popup correctly when pinch-zoomed.\n const isPinchZoomed = (win.visualViewport?.scale ?? 1) !== 1 && platform.engine.webkit;\n if (fallbackToAlignPopupToTrigger || isPinchZoomed) {\n initialPlacedRef.current = true;\n clearStyles(positionerElement, originalPositionerStylesRef.current);\n setControlledAlignItemWithTrigger(false);\n return;\n }\n const initialHeight = Math.max(minHeight, height);\n if (isTopPositioned) {\n const topOffset = Math.max(0, viewportHeight - idealHeight);\n positionerElement.style.top = positionerRect.height >= maxHeight ? '0' : `${topOffset}px`;\n positionerElement.style.height = `${height}px`;\n scroller.scrollTop = getMaxScrollTop(scroller);\n } else {\n positionerElement.style.bottom = '0';\n scroller.scrollTop = scrollTop;\n }\n if (textRect) {\n const popupTop = positionerRect.top;\n const popupHeight = positionerRect.height;\n const textCenterY = textRect.top + textRect.height / 2;\n const transformOriginY = popupHeight > 0 ? (textCenterY - popupTop) / popupHeight * 100 : 50;\n const clampedY = clamp(transformOriginY, 0, 100);\n popupElement.style.setProperty('--transform-origin', `50% ${clampedY}%`);\n }\n if (initialHeight === viewportHeight || height >= maxPopupHeight) {\n reachedMaxHeightRef.current = true;\n }\n handleScrollArrowVisibility();\n if (highlightItemOnHover && store.state.selectedIndex === null && store.state.activeIndex === null && listRef.current[0] != null) {\n store.set('activeIndex', 0);\n }\n initialPlacedRef.current = true;\n } finally {\n restoreTransformStyles();\n }\n }, [store, open, positionerElement, triggerElement, valueRef, firstItemTextRef, selectedItemTextRef, popupRef, handleScrollArrowVisibility, alignItemWithTriggerActive, setControlledAlignItemWithTrigger, scrollArrowFrame, listElement, listRef, highlightItemOnHover, direction, isPositioned]);\n React.useEffect(() => {\n if (!alignItemWithTriggerActive || !positionerElement || !open) {\n return undefined;\n }\n const win = ownerWindow(positionerElement);\n function handleResize(event) {\n setOpen(false, createChangeEventDetails(REASONS.windowResize, event));\n }\n return addEventListener(win, 'resize', handleResize);\n }, [setOpen, alignItemWithTriggerActive, positionerElement, open]);\n const defaultProps = {\n ...(listElement ? {\n role: 'presentation',\n 'aria-orientation': undefined\n } : {\n role: 'listbox',\n 'aria-multiselectable': multiple || undefined,\n id: `${id}-list`\n }),\n onKeyDown(event) {\n if (insideToolbar && COMPOSITE_KEYS.has(event.key)) {\n event.stopPropagation();\n }\n },\n onScroll(event) {\n if (listElement) {\n return;\n }\n handleScroll(event.currentTarget);\n },\n ...(alignItemWithTriggerActive && {\n style: listElement ? {\n height: '100%'\n } : LIST_FUNCTIONAL_STYLES\n })\n };\n const element = useRenderElement('div', componentProps, {\n ref: [forwardedRef, popupRef],\n state,\n stateAttributesMapping,\n props: [popupProps, defaultProps, getDisabledMountTransitionStyles(transitionStatus), {\n className: !listElement && alignItemWithTriggerActive ? styleDisableScrollbar.className : undefined\n }, elementProps]\n });\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [!disableStyleElements && styleDisableScrollbar.getElement(nonce), /*#__PURE__*/_jsx(FloatingFocusManager, {\n context: floatingRootContext,\n modal: false,\n disabled: !mounted,\n openInteractionType: openMethod,\n returnFocus: finalFocus,\n restoreFocus: true,\n children: element\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectPopup.displayName = \"SelectPopup\";\nfunction getMaxPopupHeight(popupStyles) {\n const maxHeightStyle = popupStyles.maxHeight || '';\n return maxHeightStyle.endsWith('px') ? parseFloat(maxHeightStyle) || Infinity : Infinity;\n}\nfunction getMaxScrollTop(scroller) {\n return getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);\n}\nfunction getScale(element) {\n // The platform API is async-capable, but the DOM platform returns a plain scale object.\n return floatingPlatform.getScale(element);\n}\nfunction normalizeSize(size, axis, scale) {\n return size / scale[axis];\n}\nfunction normalizeRect(rect, scale) {\n return rectToClientRect({\n x: normalizeSize(rect.x, 'x', scale),\n y: normalizeSize(rect.y, 'y', scale),\n width: normalizeSize(rect.width, 'x', scale),\n height: normalizeSize(rect.height, 'y', scale)\n });\n}\nconst TRANSFORM_STYLE_RESETS = [['transform', 'none'], ['scale', '1'], ['translate', '0 0']];\nfunction unsetTransformStyles(popupElement) {\n const {\n style\n } = popupElement;\n const originalStyles = {};\n for (const [property, value] of TRANSFORM_STYLE_RESETS) {\n originalStyles[property] = style.getPropertyValue(property);\n style.setProperty(property, value, 'important');\n }\n return () => {\n for (const [property] of TRANSFORM_STYLE_RESETS) {\n const originalValue = originalStyles[property];\n if (originalValue) {\n style.setProperty(property, originalValue);\n } else {\n style.removeProperty(property);\n }\n }\n };\n}"],"names":["stateAttributesMapping","popupStateMapping","transitionStatusMapping","SelectPopup","React","componentProps","forwardedRef","render","className","style","finalFocus","elementProps","store","popupRef","onOpenChangeComplete","setOpen","valueRef","firstItemTextRef","selectedItemTextRef","multiple","handleScrollArrowVisibility","scrollHandlerRef","listRef","highlightItemOnHover","useSelectRootContext","side","align","alignItemWithTriggerActive","isPositioned","setControlledAlignItemWithTrigger","useSelectPositionerContext","insideToolbar","useToolbarRootContext","floatingRootContext","useSelectFloatingContext","direction","useDirection","nonce","disableStyleElements","useCSPContext","id","useStore","selectors","open","openMethod","mounted","popupProps","transitionStatus","triggerElement","positionerElement","listElement","reachedMaxHeightRef","initialPlacedRef","originalPositionerStylesRef","scrollArrowFrame","useAnimationFrame","handleScroll","useStableCallback","scroller","isTopPositioned","isBottomPositioned","scale","getScale","currentHeight","normalizeSize","doc","ownerDocument","win","ownerWindow","positionerStyles","marginTop","marginBottom","maxPopupHeight","getMaxPopupHeight","maxAvailableHeight","scrollTop","maxScrollTop","getMaxScrollTop","nextPositionerHeight","nextScrollTop","setReachedMax","scrollToMax","setHeight","height","handleSmallDiff","diff","targetScrollTop","heightDelta","clamp","SCROLL_EDGE_TOLERANCE_PX","nextHeight","overshoot","nextMaxScrollTop","target","useOpenChangeComplete","state","useIsoLayoutEffect","clearStyles","popupElement","restoreTransformStyles","unsetTransformStyles","textElement","valueElement","popupStyles","triggerRect","normalizeRect","positionerRect","triggerHeight","scrollHeight","borderBottom","minHeight","paddingLeft","paddingRight","triggerCollisionThreshold","viewportHeight","viewportWidth","availableSpaceBeneathTrigger","textRect","alignedLeft","offsetY","valueRect","valueCenterFromTriggerTop","idealHeight","maxHeight","maxRight","fallbackToAlignPopupToTrigger","isPinchZoomed","platform.engine.webkit","initialHeight","topOffset","popupTop","popupHeight","textCenterY","transformOriginY","clampedY","handleResize","event","createChangeEventDetails","REASONS.windowResize","addEventListener","defaultProps","COMPOSITE_KEYS","LIST_FUNCTIONAL_STYLES","element","useRenderElement","getDisabledMountTransitionStyles","styleDisableScrollbar","_jsxs","_jsx","FloatingFocusManager","maxHeightStyle","getMaxScrollOffset","floatingPlatform","size","axis","rect","rectToClientRect","TRANSFORM_STYLE_RESETS","originalStyles","property","value","originalValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAMA,KAAyB;AAAA,EAC7B,GAAGC;AAAA,EACH,GAAGC;AACL,GAQaC,KAA2B,gBAAAC,EAAM,WAAW,SAAqBC,GAAgBC,GAAc;AAC1G,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMN,GACE;AAAA,IACJ,OAAAO;AAAA,IACA,UAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,6BAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,SAAAC;AAAA,I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