@rpcbase/ui 0.243.0 → 0.244.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/index105.js +36 -36
- package/dist/index117.js +6 -6
- 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/index149.js.map +1 -1
- package/dist/index150.js +3 -3
- package/dist/index150.js.map +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +2 -2
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +7 -7
- package/dist/index164.js.map +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -4
- package/dist/index167.js.map +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +58 -14
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +8 -68
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +87 -37
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +19 -13
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +16 -23
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +5 -111
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +6 -13
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +6 -4
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +5 -4
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +7 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +16 -11
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +4 -19
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +5 -11
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +12 -176
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +9 -279
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -4
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +14 -28
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +4 -126
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +5 -63
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +6 -8
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +6 -16
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +53 -29
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +8 -69
- 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/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/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/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +20 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +66 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +6 -6
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +11 -16
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +3 -7
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +49 -9
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -11
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +28 -20
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +16 -8
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +21 -9
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +53 -4
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +20 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +41 -16
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +39 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +46 -19
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +20 -17
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +19 -12
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +19 -28
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +68 -10
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +17 -25
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +3 -5
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +11 -154
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +29 -31
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +13 -11
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +15 -46
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +36 -9
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +69 -11
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +238 -42
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +245 -90
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +66 -84
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +86 -92
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +175 -51
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +83 -11
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +13 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +3 -37
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +29 -8
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +16 -135
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +38 -18
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +34 -15
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +68 -3
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +15 -34
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +3 -20
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +111 -8
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +26 -9
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +27 -23
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +4 -29
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +125 -15
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +5 -20
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +75 -63
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +272 -6
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +10 -4
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +27 -11
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +16 -4
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +10 -50
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +26 -4
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +15 -28
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +124 -15
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +5 -5
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +64 -20
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +13 -53
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +14 -21
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +7 -41
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +11 -40
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +6 -46
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +3 -20
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -70
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +7 -17
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +133 -3
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +279 -11
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +398 -12
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +5 -19
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +51 -35
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +11 -239
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +22 -247
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +11 -68
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +4 -99
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +14 -83
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +4 -4
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +5 -30
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +10 -15
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +64 -35
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +7 -16
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +154 -3
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +31 -25
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +11 -28
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +50 -4
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +9 -78
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +10 -271
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +43 -11
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +97 -10
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +86 -25
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +104 -15
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +50 -123
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +11 -5
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +4 -65
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +37 -13
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +8 -7
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +135 -5
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +17 -3
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +15 -10
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +3 -7
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +32 -129
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +18 -397
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +10 -5
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +8 -52
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +24 -11
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +28 -27
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +2 -2
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +16 -11
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +4 -8
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +18 -12
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +12 -8
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +8 -13
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +11 -3
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +8 -3
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +12 -16
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +3 -61
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +3 -66
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +4 -52
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +15 -6
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +10 -7
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +6 -5
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +4 -11
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +3 -22
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +8 -16
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +52 -8
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +15 -143
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +8 -80
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +11 -11
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +5 -61
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +21 -15
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +45 -5
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +16 -16
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +5 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +200 -4
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +73 -20
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +124 -4
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +16 -10
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +61 -5
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +67 -3
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +11 -20
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +21 -44
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +143 -16
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +79 -4
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +59 -198
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +4 -73
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +19 -122
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +4 -8
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +5 -27
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +4 -138
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +15 -12
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +8 -46
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +5 -3
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +4 -21
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +542 -72
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +46 -11
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +17 -3
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +5 -71
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +7 -35
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +7 -7
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +7 -15
- 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 +3 -16
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +3 -9
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +7 -6
- 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/index40.js +3 -3
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +135 -44
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +8 -17
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +27 -6
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +3 -7
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +21 -6
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +75 -7
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +12 -12
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +3 -8
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +71 -12
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +36 -3
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +16 -3
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +4 -14
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +56 -3
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +66 -490
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +30 -67
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +9 -31
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +153 -9
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +97 -142
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +8 -108
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +2 -5
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +42 -54
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +55 -7
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +8 -2
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +2 -44
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +54 -55
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +55 -7
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +3 -2
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +14 -54
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +487 -51
- package/dist/index428.js.map +1 -1
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +2 -16
- package/dist/index430.js.map +1 -1
- package/dist/index431.js +2 -29
- package/dist/index431.js.map +1 -1
- package/dist/index432.js +2 -13
- package/dist/index432.js.map +1 -1
- package/dist/index433.js +2 -7
- package/dist/index433.js.map +1 -1
- package/dist/index434.js +16 -2
- package/dist/index434.js.map +1 -1
- package/dist/index435.js +29 -2
- package/dist/index435.js.map +1 -1
- package/dist/index436.js +13 -2
- package/dist/index436.js.map +1 -1
- package/dist/index437.js +7 -2
- package/dist/index437.js.map +1 -1
- package/dist/index44.js.map +1 -1
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +36 -36
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +29 -29
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +2 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +12 -12
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +4 -4
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +1 -1
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +21 -21
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +5 -5
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +5 -5
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +8 -8
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +5 -5
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +17 -17
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +5 -5
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +3 -3
- package/dist/index62.js.map +1 -1
- package/dist/index77.js.map +1 -1
- package/dist/index78.js.map +1 -1
- package/package.json +1 -1
package/dist/index55.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as g from "react";
|
|
2
|
-
import { ownerDocument as se } from "./
|
|
3
|
-
import { useTimeout as b } from "./
|
|
4
|
-
import { useStableCallback as ie } from "./
|
|
5
|
-
import { useValueAsRef as le } from "./
|
|
6
|
-
import { useSelectRootContext as ae } from "./
|
|
7
|
-
import { useFieldRootContext as ue } from "./
|
|
8
|
-
import { useLabelableContext as ce } from "./
|
|
9
|
-
import { pressableTriggerOpenStateMapping as de } from "./
|
|
10
|
-
import { fieldValidityMapping as pe } from "./
|
|
11
|
-
import { useRenderElement as me } from "./
|
|
12
|
-
import { selectors as t } from "./
|
|
13
|
-
import { getPseudoElementBounds as fe } from "./
|
|
14
|
-
import { createChangeEventDetails as B } from "./
|
|
15
|
-
import { useLabelableId as ge } from "./
|
|
16
|
-
import { resolveAriaLabelledBy as be } from "./
|
|
17
|
-
import { useStore as o } from "./
|
|
18
|
-
import { useButton as Se } from "./
|
|
19
|
-
import { mergeProps as Ee } from "./
|
|
20
|
-
import { getFloatingFocusElement as Te } from "./
|
|
21
|
-
import { contains as S } from "./
|
|
22
|
-
import { none as Re, cancelOpen as Me } from "./
|
|
2
|
+
import { ownerDocument as se } from "./index267.js";
|
|
3
|
+
import { useTimeout as b } from "./index268.js";
|
|
4
|
+
import { useStableCallback as ie } from "./index239.js";
|
|
5
|
+
import { useValueAsRef as le } from "./index240.js";
|
|
6
|
+
import { useSelectRootContext as ae } from "./index242.js";
|
|
7
|
+
import { useFieldRootContext as ue } from "./index243.js";
|
|
8
|
+
import { useLabelableContext as ce } from "./index269.js";
|
|
9
|
+
import { pressableTriggerOpenStateMapping as de } from "./index270.js";
|
|
10
|
+
import { fieldValidityMapping as pe } from "./index271.js";
|
|
11
|
+
import { useRenderElement as me } from "./index272.js";
|
|
12
|
+
import { selectors as t } from "./index247.js";
|
|
13
|
+
import { getPseudoElementBounds as fe } from "./index273.js";
|
|
14
|
+
import { createChangeEventDetails as B } from "./index248.js";
|
|
15
|
+
import { useLabelableId as ge } from "./index245.js";
|
|
16
|
+
import { resolveAriaLabelledBy as be } from "./index274.js";
|
|
17
|
+
import { useStore as o } from "./index257.js";
|
|
18
|
+
import { useButton as Se } from "./index275.js";
|
|
19
|
+
import { mergeProps as Ee } from "./index263.js";
|
|
20
|
+
import { getFloatingFocusElement as Te } from "./index276.js";
|
|
21
|
+
import { contains as S } from "./index277.js";
|
|
22
|
+
import { none as Re, cancelOpen as Me } from "./index266.js";
|
|
23
23
|
const d = 2, De = 400, he = {
|
|
24
24
|
...de,
|
|
25
25
|
...pe,
|
package/dist/index55.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index55.js","sources":["../node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStore } from '@base-ui/utils/store';\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.mjs\";\nimport { useLabelableContext } from \"../../internals/labelable-provider/LabelableContext.mjs\";\nimport { pressableTriggerOpenStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { fieldValidityMapping } from \"../../internals/field-constants/constants.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { getPseudoElementBounds } from \"../../utils/getPseudoElementBounds.mjs\";\nimport { contains, getFloatingFocusElement } from \"../../floating-ui-react/utils.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\nimport { useButton } from \"../../internals/use-button/index.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useLabelableId } from \"../../internals/labelable-provider/useLabelableId.mjs\";\nimport { resolveAriaLabelledBy } from \"../../utils/resolveAriaLabelledBy.mjs\";\nconst BOUNDARY_OFFSET = 2;\nconst SELECTED_DELAY = 400;\nconst stateAttributesMapping = {\n ...pressableTriggerOpenStateMapping,\n ...fieldValidityMapping,\n popupSide: side => side ? {\n 'data-popup-side': side\n } : null,\n value: () => null\n};\n\n/**\n * A button that opens the select popup.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectTrigger = /*#__PURE__*/React.forwardRef(function SelectTrigger(componentProps, forwardedRef) {\n const {\n render,\n className,\n id: idProp,\n disabled: disabledProp = false,\n nativeButton = true,\n style,\n ...elementProps\n } = componentProps;\n const {\n setTouched,\n setFocused,\n validationMode,\n state: fieldState,\n disabled: fieldDisabled\n } = useFieldRootContext();\n const {\n labelId: fieldLabelId\n } = useLabelableContext();\n const {\n store,\n setOpen,\n selectionRef,\n validation,\n readOnly,\n required,\n alignItemWithTriggerActiveRef,\n disabled: selectDisabled\n } = useSelectRootContext();\n const disabled = fieldDisabled || selectDisabled || disabledProp;\n const open = useStore(store, selectors.open);\n const mounted = useStore(store, selectors.mounted);\n const value = useStore(store, selectors.value);\n const triggerProps = useStore(store, selectors.triggerProps);\n const positionerElement = useStore(store, selectors.positionerElement);\n const listElement = useStore(store, selectors.listElement);\n const popupSideValue = useStore(store, selectors.popupSide);\n const rootId = useStore(store, selectors.id);\n const selectLabelId = useStore(store, selectors.labelId);\n const hasSelectedValue = useStore(store, selectors.hasSelectedValue);\n const popupSide = mounted && positionerElement ? popupSideValue : null;\n const id = idProp ?? rootId;\n const ariaLabelledBy = resolveAriaLabelledBy(fieldLabelId, selectLabelId);\n useLabelableId({\n id\n });\n const positionerRef = useValueAsRef(positionerElement);\n const triggerRef = React.useRef(null);\n const {\n getButtonProps,\n buttonRef\n } = useButton({\n disabled,\n native: nativeButton\n });\n const setTriggerElement = useStableCallback(element => {\n store.set('triggerElement', element);\n });\n const timeoutFocus = useTimeout();\n const timeoutMouseDown = useTimeout();\n const selectedDelayTimeout = useTimeout();\n React.useEffect(() => {\n if (open) {\n // A mousedown on the trigger can open the popup under the cursor. Keep mouseup selection\n // disabled briefly so releasing over either the selected item or a neighboring item doesn't\n // commit an accidental selection. SelectItem can still opt into unselected mouseup sooner\n // after a real drag over the item.\n selectedDelayTimeout.start(SELECTED_DELAY, () => {\n selectionRef.current.allowUnselectedMouseUp = true;\n selectionRef.current.allowSelectedMouseUp = true;\n });\n return () => {\n selectedDelayTimeout.clear();\n };\n }\n selectionRef.current = {\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n };\n timeoutMouseDown.clear();\n return undefined;\n }, [open, selectionRef, timeoutMouseDown, selectedDelayTimeout]);\n const mergedProps = mergeProps(triggerProps, {\n id,\n role: 'combobox',\n 'aria-expanded': open ? 'true' : 'false',\n 'aria-haspopup': 'listbox',\n 'aria-controls': open ? listElement?.id ?? getFloatingFocusElement(positionerElement)?.id : undefined,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-readonly': readOnly || undefined,\n 'aria-required': required || undefined,\n tabIndex: disabled ? -1 : 0,\n onFocus(event) {\n setFocused(true);\n\n // The popup element shouldn't obscure the focused trigger.\n if (open && alignItemWithTriggerActiveRef.current) {\n setOpen(false, createChangeEventDetails(REASONS.none, event.nativeEvent));\n }\n\n // Saves a re-render on initial click: `forceMount === true` mounts\n // the items before `open === true`. We could sync those cycles better\n // without a timeout, but this is enough for now.\n timeoutFocus.start(0, () => {\n store.set('forceMount', true);\n });\n },\n onBlur(event) {\n // If focus is moving into the popup, don't count it as a blur.\n if (contains(positionerElement, event.relatedTarget)) {\n return;\n }\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(value);\n }\n },\n onMouseDown(event) {\n if (open) {\n return;\n }\n const doc = ownerDocument(event.currentTarget);\n function handleMouseUp(mouseEvent) {\n if (!triggerRef.current) {\n return;\n }\n const mouseUpTarget = mouseEvent.target;\n\n // Don't treat the release as an outside press when it lands on the trigger or inside\n // the popup positioner (or their children).\n if (contains(triggerRef.current, mouseUpTarget) || contains(positionerRef.current, mouseUpTarget)) {\n return;\n }\n const bounds = getPseudoElementBounds(triggerRef.current);\n if (mouseEvent.clientX >= bounds.left - BOUNDARY_OFFSET && mouseEvent.clientX <= bounds.right + BOUNDARY_OFFSET && mouseEvent.clientY >= bounds.top - BOUNDARY_OFFSET && mouseEvent.clientY <= bounds.bottom + BOUNDARY_OFFSET) {\n return;\n }\n setOpen(false, createChangeEventDetails(REASONS.cancelOpen, mouseEvent));\n }\n\n // Firefox can fire this upon mousedown\n timeoutMouseDown.start(0, () => {\n doc.addEventListener('mouseup', handleMouseUp, {\n once: true\n });\n });\n }\n }, elementProps, getButtonProps);\n const props = validation.getValidationProps(disabled, mergedProps);\n\n // ensure nested useButton does not overwrite the combobox role:\n // <Toolbar.Button render={<Select.Trigger />} />\n props.role = 'combobox';\n const state = {\n ...fieldState,\n open,\n disabled,\n value,\n readOnly,\n popupSide,\n placeholder: !hasSelectedValue\n };\n return useRenderElement('button', componentProps, {\n ref: [forwardedRef, triggerRef, buttonRef, setTriggerElement],\n state,\n stateAttributesMapping,\n props\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectTrigger.displayName = \"SelectTrigger\";"],"names":["BOUNDARY_OFFSET","SELECTED_DELAY","stateAttributesMapping","pressableTriggerOpenStateMapping","fieldValidityMapping","side","SelectTrigger","React","componentProps","forwardedRef","render","className","idProp","disabledProp","nativeButton","style","elementProps","setTouched","setFocused","validationMode","fieldState","fieldDisabled","useFieldRootContext","fieldLabelId","useLabelableContext","store","setOpen","selectionRef","validation","readOnly","required","alignItemWithTriggerActiveRef","selectDisabled","useSelectRootContext","disabled","open","useStore","selectors","mounted","value","triggerProps","positionerElement","listElement","popupSideValue","rootId","selectLabelId","hasSelectedValue","popupSide","id","ariaLabelledBy","resolveAriaLabelledBy","useLabelableId","positionerRef","useValueAsRef","triggerRef","getButtonProps","buttonRef","useButton","setTriggerElement","useStableCallback","element","timeoutFocus","useTimeout","timeoutMouseDown","selectedDelayTimeout","mergedProps","mergeProps","getFloatingFocusElement","event","createChangeEventDetails","REASONS.none","contains","doc","ownerDocument","handleMouseUp","mouseEvent","mouseUpTarget","bounds","getPseudoElementBounds","REASONS.cancelOpen","props","state","useRenderElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,IAAkB,GAClBC,KAAiB,KACjBC,KAAyB;AAAA,EAC7B,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,WAAW,CAAAC,MAAQA,IAAO;AAAA,IACxB,mBAAmBA;AAAA,EACvB,IAAM;AAAA,EACJ,OAAO,MAAM;AACf,GAQaC,KAA6B,gBAAAC,EAAM,WAAW,SAAuBC,GAAgBC,GAAc;AAC9G,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,IAAIC;AAAA,IACJ,UAAUC,IAAe;AAAA,IACzB,cAAAC,IAAe;AAAA,IACf,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMR,GACE;AAAA,IACJ,YAAAS;AAAA,IACA,YAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,OAAO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AAY;AACjC,YAAI,CAACrB,EAAW;AACd;AAEF,cAAMsB,IAAgBD,EAAW;AAIjC,YAAIJ,EAASjB,EAAW,SAASsB,CAAa,KAAKL,EAASnB,EAAc,SAASwB,CAAa;AAC9F;AAEF,cAAMC,IAASC,GAAuBxB,EAAW,OAAO;AACxD,QAAIqB,EAAW,WAAWE,EAAO,OAAO7E,KAAmB2E,EAAW,WAAWE,EAAO,QAAQ7E,KAAmB2E,EAAW,WAAWE,EAAO,MAAM7E,KAAmB2E,EAAW,WAAWE,EAAO,SAAS7E,KAG/M0B,EAAQ,IAAO2C,EAAyBU,IAAoBJ,CAAU,CAAC;AAAA,MACzE;AAGA,MAAAZ,EAAiB,MAAM,GAAG,MAAM;AAC9B,QAAAS,GAAI,iBAAiB,WAAWE,IAAe;AAAA,UAC7C,MAAM;AAAA,QAChB,CAAS;AAAA,MACH,CAAC;AAAA,IACH;AAAA,EACJ,GAAK1D,GAAcuC,CAAc,GACzByB,IAAQpD,EAAW,mBAAmBM,GAAU+B,EAAW;AAIjE,EAAAe,EAAM,OAAO;AACb,QAAMC,KAAQ;AAAA,IACZ,GAAG7D;AAAA,IACH,MAAAe;AAAA,IACA,UAAAD;AAAA,IACA,OAAAK;AAAA,IACA,UAAAV;AAAA,IACA,WAAAkB;AAAA,IACA,aAAa,CAACD;AAAA,EAClB;AACE,SAAOoC,GAAiB,UAAU1E,GAAgB;AAAA,IAChD,KAAK,CAACC,GAAc6C,GAAYE,GAAWE,CAAiB;AAAA,IAC5D,OAAAuB;AAAA,IACA,wBAAA/E;AAAA,IACA,OAAA8E;AAAA,EACJ,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAc1E,GAAc,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index55.js","sources":["../../../node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useTimeout } from '@base-ui/utils/useTimeout';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useStore } from '@base-ui/utils/store';\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { useFieldRootContext } from \"../../internals/field-root-context/FieldRootContext.mjs\";\nimport { useLabelableContext } from \"../../internals/labelable-provider/LabelableContext.mjs\";\nimport { pressableTriggerOpenStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { fieldValidityMapping } from \"../../internals/field-constants/constants.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { getPseudoElementBounds } from \"../../utils/getPseudoElementBounds.mjs\";\nimport { contains, getFloatingFocusElement } from \"../../floating-ui-react/utils.mjs\";\nimport { mergeProps } from \"../../merge-props/index.mjs\";\nimport { useButton } from \"../../internals/use-button/index.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useLabelableId } from \"../../internals/labelable-provider/useLabelableId.mjs\";\nimport { resolveAriaLabelledBy } from \"../../utils/resolveAriaLabelledBy.mjs\";\nconst BOUNDARY_OFFSET = 2;\nconst SELECTED_DELAY = 400;\nconst stateAttributesMapping = {\n ...pressableTriggerOpenStateMapping,\n ...fieldValidityMapping,\n popupSide: side => side ? {\n 'data-popup-side': side\n } : null,\n value: () => null\n};\n\n/**\n * A button that opens the select popup.\n * Renders a `<button>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectTrigger = /*#__PURE__*/React.forwardRef(function SelectTrigger(componentProps, forwardedRef) {\n const {\n render,\n className,\n id: idProp,\n disabled: disabledProp = false,\n nativeButton = true,\n style,\n ...elementProps\n } = componentProps;\n const {\n setTouched,\n setFocused,\n validationMode,\n state: fieldState,\n disabled: fieldDisabled\n } = useFieldRootContext();\n const {\n labelId: fieldLabelId\n } = useLabelableContext();\n const {\n store,\n setOpen,\n selectionRef,\n validation,\n readOnly,\n required,\n alignItemWithTriggerActiveRef,\n disabled: selectDisabled\n } = useSelectRootContext();\n const disabled = fieldDisabled || selectDisabled || disabledProp;\n const open = useStore(store, selectors.open);\n const mounted = useStore(store, selectors.mounted);\n const value = useStore(store, selectors.value);\n const triggerProps = useStore(store, selectors.triggerProps);\n const positionerElement = useStore(store, selectors.positionerElement);\n const listElement = useStore(store, selectors.listElement);\n const popupSideValue = useStore(store, selectors.popupSide);\n const rootId = useStore(store, selectors.id);\n const selectLabelId = useStore(store, selectors.labelId);\n const hasSelectedValue = useStore(store, selectors.hasSelectedValue);\n const popupSide = mounted && positionerElement ? popupSideValue : null;\n const id = idProp ?? rootId;\n const ariaLabelledBy = resolveAriaLabelledBy(fieldLabelId, selectLabelId);\n useLabelableId({\n id\n });\n const positionerRef = useValueAsRef(positionerElement);\n const triggerRef = React.useRef(null);\n const {\n getButtonProps,\n buttonRef\n } = useButton({\n disabled,\n native: nativeButton\n });\n const setTriggerElement = useStableCallback(element => {\n store.set('triggerElement', element);\n });\n const timeoutFocus = useTimeout();\n const timeoutMouseDown = useTimeout();\n const selectedDelayTimeout = useTimeout();\n React.useEffect(() => {\n if (open) {\n // A mousedown on the trigger can open the popup under the cursor. Keep mouseup selection\n // disabled briefly so releasing over either the selected item or a neighboring item doesn't\n // commit an accidental selection. SelectItem can still opt into unselected mouseup sooner\n // after a real drag over the item.\n selectedDelayTimeout.start(SELECTED_DELAY, () => {\n selectionRef.current.allowUnselectedMouseUp = true;\n selectionRef.current.allowSelectedMouseUp = true;\n });\n return () => {\n selectedDelayTimeout.clear();\n };\n }\n selectionRef.current = {\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n };\n timeoutMouseDown.clear();\n return undefined;\n }, [open, selectionRef, timeoutMouseDown, selectedDelayTimeout]);\n const mergedProps = mergeProps(triggerProps, {\n id,\n role: 'combobox',\n 'aria-expanded': open ? 'true' : 'false',\n 'aria-haspopup': 'listbox',\n 'aria-controls': open ? listElement?.id ?? getFloatingFocusElement(positionerElement)?.id : undefined,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-readonly': readOnly || undefined,\n 'aria-required': required || undefined,\n tabIndex: disabled ? -1 : 0,\n onFocus(event) {\n setFocused(true);\n\n // The popup element shouldn't obscure the focused trigger.\n if (open && alignItemWithTriggerActiveRef.current) {\n setOpen(false, createChangeEventDetails(REASONS.none, event.nativeEvent));\n }\n\n // Saves a re-render on initial click: `forceMount === true` mounts\n // the items before `open === true`. We could sync those cycles better\n // without a timeout, but this is enough for now.\n timeoutFocus.start(0, () => {\n store.set('forceMount', true);\n });\n },\n onBlur(event) {\n // If focus is moving into the popup, don't count it as a blur.\n if (contains(positionerElement, event.relatedTarget)) {\n return;\n }\n setTouched(true);\n setFocused(false);\n if (validationMode === 'onBlur') {\n validation.commit(value);\n }\n },\n onMouseDown(event) {\n if (open) {\n return;\n }\n const doc = ownerDocument(event.currentTarget);\n function handleMouseUp(mouseEvent) {\n if (!triggerRef.current) {\n return;\n }\n const mouseUpTarget = mouseEvent.target;\n\n // Don't treat the release as an outside press when it lands on the trigger or inside\n // the popup positioner (or their children).\n if (contains(triggerRef.current, mouseUpTarget) || contains(positionerRef.current, mouseUpTarget)) {\n return;\n }\n const bounds = getPseudoElementBounds(triggerRef.current);\n if (mouseEvent.clientX >= bounds.left - BOUNDARY_OFFSET && mouseEvent.clientX <= bounds.right + BOUNDARY_OFFSET && mouseEvent.clientY >= bounds.top - BOUNDARY_OFFSET && mouseEvent.clientY <= bounds.bottom + BOUNDARY_OFFSET) {\n return;\n }\n setOpen(false, createChangeEventDetails(REASONS.cancelOpen, mouseEvent));\n }\n\n // Firefox can fire this upon mousedown\n timeoutMouseDown.start(0, () => {\n doc.addEventListener('mouseup', handleMouseUp, {\n once: true\n });\n });\n }\n }, elementProps, getButtonProps);\n const props = validation.getValidationProps(disabled, mergedProps);\n\n // ensure nested useButton does not overwrite the combobox role:\n // <Toolbar.Button render={<Select.Trigger />} />\n props.role = 'combobox';\n const state = {\n ...fieldState,\n open,\n disabled,\n value,\n readOnly,\n popupSide,\n placeholder: !hasSelectedValue\n };\n return useRenderElement('button', componentProps, {\n ref: [forwardedRef, triggerRef, buttonRef, setTriggerElement],\n state,\n stateAttributesMapping,\n props\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectTrigger.displayName = \"SelectTrigger\";"],"names":["BOUNDARY_OFFSET","SELECTED_DELAY","stateAttributesMapping","pressableTriggerOpenStateMapping","fieldValidityMapping","side","SelectTrigger","React","componentProps","forwardedRef","render","className","idProp","disabledProp","nativeButton","style","elementProps","setTouched","setFocused","validationMode","fieldState","fieldDisabled","useFieldRootContext","fieldLabelId","useLabelableContext","store","setOpen","selectionRef","validation","readOnly","required","alignItemWithTriggerActiveRef","selectDisabled","useSelectRootContext","disabled","open","useStore","selectors","mounted","value","triggerProps","positionerElement","listElement","popupSideValue","rootId","selectLabelId","hasSelectedValue","popupSide","id","ariaLabelledBy","resolveAriaLabelledBy","useLabelableId","positionerRef","useValueAsRef","triggerRef","getButtonProps","buttonRef","useButton","setTriggerElement","useStableCallback","element","timeoutFocus","useTimeout","timeoutMouseDown","selectedDelayTimeout","mergedProps","mergeProps","getFloatingFocusElement","event","createChangeEventDetails","REASONS.none","contains","doc","ownerDocument","handleMouseUp","mouseEvent","mouseUpTarget","bounds","getPseudoElementBounds","REASONS.cancelOpen","props","state","useRenderElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,IAAkB,GAClBC,KAAiB,KACjBC,KAAyB;AAAA,EAC7B,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,WAAW,CAAAC,MAAQA,IAAO;AAAA,IACxB,mBAAmBA;AAAA,EACvB,IAAM;AAAA,EACJ,OAAO,MAAM;AACf,GAQaC,KAA6B,gBAAAC,EAAM,WAAW,SAAuBC,GAAgBC,GAAc;AAC9G,QAAM;AAAA,IACJ,QAAAC;AA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AAQ,IAAI,aAAa,iBAAc1E,GAAc,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index56.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as b from "react";
|
|
2
|
-
import { useRenderElement as v } from "./
|
|
3
|
-
import { useSelectRootContext as L } from "./
|
|
4
|
-
import { resolveMultipleLabels as N, resolveSelectedLabel as V } from "./
|
|
5
|
-
import { selectors as s } from "./
|
|
6
|
-
import { useStore as r } from "./
|
|
2
|
+
import { useRenderElement as v } from "./index272.js";
|
|
3
|
+
import { useSelectRootContext as L } from "./index242.js";
|
|
4
|
+
import { resolveMultipleLabels as N, resolveSelectedLabel as V } from "./index251.js";
|
|
5
|
+
import { selectors as s } from "./index247.js";
|
|
6
|
+
import { useStore as r } from "./index257.js";
|
|
7
7
|
const y = {
|
|
8
8
|
value: () => null
|
|
9
9
|
}, R = /* @__PURE__ */ b.forwardRef(function(c, m) {
|
package/dist/index56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index56.js","sources":["
|
|
1
|
+
{"version":3,"file":"index56.js","sources":["../../../node_modules/@base-ui/react/select/value/SelectValue.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStore } from '@base-ui/utils/store';\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { resolveMultipleLabels, resolveSelectedLabel } from \"../../internals/resolveValueLabel.mjs\";\nimport { selectors } from \"../store.mjs\";\nconst stateAttributesMapping = {\n value: () => null\n};\n\n/**\n * A text label of the currently selected item.\n * Renders a `<span>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectValue = /*#__PURE__*/React.forwardRef(function SelectValue(componentProps, forwardedRef) {\n const {\n className,\n render,\n children: childrenProp,\n placeholder,\n style,\n ...elementProps\n } = componentProps;\n const {\n store,\n valueRef\n } = useSelectRootContext();\n const value = useStore(store, selectors.value);\n const items = useStore(store, selectors.items);\n const itemToStringLabel = useStore(store, selectors.itemToStringLabel);\n const hasSelectedValue = useStore(store, selectors.hasSelectedValue);\n const shouldCheckNullItemLabel = !hasSelectedValue && placeholder != null && childrenProp == null;\n const hasNullLabel = useStore(store, selectors.hasNullItemLabel, shouldCheckNullItemLabel);\n const state = {\n value,\n placeholder: !hasSelectedValue\n };\n let children = null;\n if (typeof childrenProp === 'function') {\n children = childrenProp(value);\n } else if (childrenProp != null) {\n children = childrenProp;\n } else if (!hasSelectedValue && placeholder != null && !hasNullLabel) {\n children = placeholder;\n } else if (Array.isArray(value)) {\n children = resolveMultipleLabels(value, items, itemToStringLabel);\n } else {\n children = resolveSelectedLabel(value, items, itemToStringLabel);\n }\n const element = useRenderElement('span', componentProps, {\n state,\n ref: [forwardedRef, valueRef],\n props: [{\n children\n }, elementProps],\n stateAttributesMapping\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") SelectValue.displayName = \"SelectValue\";"],"names":["stateAttributesMapping","SelectValue","React","componentProps","forwardedRef","className","render","childrenProp","placeholder","style","elementProps","store","valueRef","useSelectRootContext","value","useStore","selectors","items","itemToStringLabel","hasSelectedValue","shouldCheckNullItemLabel","hasNullLabel","state","children","resolveMultipleLabels","resolveSelectedLabel","useRenderElement"],"mappings":";;;;;;AAQA,MAAMA,IAAyB;AAAA,EAC7B,OAAO,MAAM;AACf,GAQaC,IAA2B,gBAAAC,EAAM,WAAW,SAAqBC,GAAgBC,GAAc;AAC1G,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAUC;AAAA,IACV,aAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMP,GACE;AAAA,IACJ,OAAAQ;AAAA,IACA,UAAAC;AAAA,EACJ,IAAMC,EAAoB,GAClBC,IAAQC,EAASJ,GAAOK,EAAU,KAAK,GACvCC,IAAQF,EAASJ,GAAOK,EAAU,KAAK,GACvCE,IAAoBH,EAASJ,GAAOK,EAAU,iBAAiB,GAC/DG,IAAmBJ,EAASJ,GAAOK,EAAU,gBAAgB,GAC7DI,IAA2B,CAACD,KAAoBX,KAAe,QAAQD,KAAgB,MACvFc,IAAeN,EAASJ,GAAOK,EAAU,kBAAkBI,CAAwB,GACnFE,IAAQ;AAAA,IACZ,OAAAR;AAAA,IACA,aAAa,CAACK;AAAA,EAClB;AACE,MAAII,IAAW;AACf,SAAI,OAAOhB,KAAiB,aAC1BgB,IAAWhB,EAAaO,CAAK,IACpBP,KAAgB,OACzBgB,IAAWhB,IACF,CAACY,KAAoBX,KAAe,QAAQ,CAACa,IACtDE,IAAWf,IACF,MAAM,QAAQM,CAAK,IAC5BS,IAAWC,EAAsBV,GAAOG,GAAOC,CAAiB,IAEhEK,IAAWE,EAAqBX,GAAOG,GAAOC,CAAiB,GAEjDQ,EAAiB,QAAQvB,GAAgB;AAAA,IACvD,OAAAmB;AAAA,IACA,KAAK,CAAClB,GAAcQ,CAAQ;AAAA,IAC5B,OAAO,CAAC;AAAA,MACN,UAAAW;AAAA,IACN,GAAOb,CAAY;AAAA,IACf,wBAAAV;AAAA,EACJ,CAAG;AAEH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcC,EAAY,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index57.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { useRenderElement as p } from "./
|
|
3
|
-
import { useSelectRootContext as c } from "./
|
|
4
|
-
import { triggerOpenStateMapping as i } from "./
|
|
5
|
-
import { selectors as m } from "./
|
|
6
|
-
import { useStore as a } from "./
|
|
2
|
+
import { useRenderElement as p } from "./index272.js";
|
|
3
|
+
import { useSelectRootContext as c } from "./index242.js";
|
|
4
|
+
import { triggerOpenStateMapping as i } from "./index270.js";
|
|
5
|
+
import { selectors as m } from "./index247.js";
|
|
6
|
+
import { useStore as a } from "./index257.js";
|
|
7
7
|
const l = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
8
8
|
const {
|
|
9
9
|
render: d,
|
package/dist/index57.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index57.js","sources":["
|
|
1
|
+
{"version":3,"file":"index57.js","sources":["../../../node_modules/@base-ui/react/select/icon/SelectIcon.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStore } from '@base-ui/utils/store';\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { triggerOpenStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { selectors } from \"../store.mjs\";\n\n/**\n * An icon that indicates that the trigger button opens a select popup.\n * Renders a `<span>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectIcon = /*#__PURE__*/React.forwardRef(function SelectIcon(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const {\n store\n } = useSelectRootContext();\n const open = useStore(store, selectors.open);\n const state = {\n open\n };\n const element = useRenderElement('span', componentProps, {\n state,\n ref: forwardedRef,\n props: [{\n 'aria-hidden': true,\n children: '▼'\n }, elementProps],\n stateAttributesMapping: triggerOpenStateMapping\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") SelectIcon.displayName = \"SelectIcon\";"],"names":["SelectIcon","React","componentProps","forwardedRef","render","className","style","elementProps","store","useSelectRootContext","state","useStore","selectors","useRenderElement","triggerOpenStateMapping"],"mappings":";;;;;;AAeY,MAACA,IAA0B,gBAAAC,EAAM,WAAW,SAAoBC,GAAgBC,GAAc;AACxG,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAML,GACE;AAAA,IACJ,OAAAM;AAAA,EACJ,IAAMC,EAAoB,GAElBC,IAAQ;AAAA,IACZ,MAFWC,EAASH,GAAOI,EAAU,IAAI;AAAA,EAG7C;AAUE,SATgBC,EAAiB,QAAQX,GAAgB;AAAA,IACvD,OAAAQ;AAAA,IACA,KAAKP;AAAA,IACL,OAAO,CAAC;AAAA,MACN,eAAe;AAAA,MACf,UAAU;AAAA,IAChB,GAAOI,CAAY;AAAA,IACf,wBAAwBO;AAAA,EAC5B,CAAG;AAEH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcd,EAAW,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index58.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
|
-
import { useStableCallback as S } from "./
|
|
3
|
-
import { useSelectRootContext as N } from "./
|
|
4
|
-
import { useSelectPositionerContext as L } from "./
|
|
5
|
-
import { useRenderElement as b } from "./
|
|
6
|
-
import { styleDisableScrollbar as h } from "./
|
|
7
|
-
import { LIST_FUNCTIONAL_STYLES as E } from "./
|
|
8
|
-
import { selectors as t } from "./
|
|
9
|
-
import { useStore as o } from "./
|
|
2
|
+
import { useStableCallback as S } from "./index239.js";
|
|
3
|
+
import { useSelectRootContext as N } from "./index242.js";
|
|
4
|
+
import { useSelectPositionerContext as L } from "./index283.js";
|
|
5
|
+
import { useRenderElement as b } from "./index272.js";
|
|
6
|
+
import { styleDisableScrollbar as h } from "./index292.js";
|
|
7
|
+
import { LIST_FUNCTIONAL_STYLES as E } from "./index286.js";
|
|
8
|
+
import { selectors as t } from "./index247.js";
|
|
9
|
+
import { useStore as o } from "./index257.js";
|
|
10
10
|
const R = /* @__PURE__ */ u.forwardRef(function(s, l) {
|
|
11
11
|
const {
|
|
12
12
|
render: g,
|
package/dist/index58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index58.js","sources":["
|
|
1
|
+
{"version":3,"file":"index58.js","sources":["../../../node_modules/@base-ui/react/select/list/SelectList.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useStore } from '@base-ui/utils/store';\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { useSelectPositionerContext } from \"../positioner/SelectPositionerContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { styleDisableScrollbar } from \"../../utils/styles.mjs\";\nimport { LIST_FUNCTIONAL_STYLES } from \"../popup/utils.mjs\";\nimport { selectors } from \"../store.mjs\";\n\n/**\n * A container for the select items.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectList = /*#__PURE__*/React.forwardRef(function SelectList(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const {\n store,\n scrollHandlerRef\n } = useSelectRootContext();\n const {\n alignItemWithTriggerActive\n } = useSelectPositionerContext();\n const hasScrollArrows = useStore(store, selectors.hasScrollArrows);\n const openMethod = useStore(store, selectors.openMethod);\n const multiple = useStore(store, selectors.multiple);\n const id = useStore(store, selectors.id);\n const defaultProps = {\n id: `${id}-list`,\n role: 'listbox',\n 'aria-multiselectable': multiple || undefined,\n onScroll(event) {\n scrollHandlerRef.current?.(event.currentTarget);\n },\n ...(alignItemWithTriggerActive && {\n style: LIST_FUNCTIONAL_STYLES\n }),\n className: hasScrollArrows && openMethod !== 'touch' ? styleDisableScrollbar.className : undefined\n };\n const setListElement = useStableCallback(element => {\n store.set('listElement', element);\n });\n return useRenderElement('div', componentProps, {\n ref: [forwardedRef, setListElement],\n props: [defaultProps, elementProps]\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectList.displayName = \"SelectList\";"],"names":["SelectList","React","componentProps","forwardedRef","render","className","style","elementProps","store","scrollHandlerRef","useSelectRootContext","alignItemWithTriggerActive","useSelectPositionerContext","hasScrollArrows","useStore","selectors","openMethod","multiple","defaultProps","event","LIST_FUNCTIONAL_STYLES","styleDisableScrollbar","setListElement","useStableCallback","element","useRenderElement"],"mappings":";;;;;;;;;AAkBY,MAACA,IAA0B,gBAAAC,EAAM,WAAW,SAAoBC,GAAgBC,GAAc;AACxG,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAML,GACE;AAAA,IACJ,OAAAM;AAAA,IACA,kBAAAC;AAAA,EACJ,IAAMC,EAAoB,GAClB;AAAA,IACJ,4BAAAC;AAAA,EACJ,IAAMC,EAA0B,GACxBC,IAAkBC,EAASN,GAAOO,EAAU,eAAe,GAC3DC,IAAaF,EAASN,GAAOO,EAAU,UAAU,GACjDE,IAAWH,EAASN,GAAOO,EAAU,QAAQ,GAE7CG,IAAe;AAAA,IACnB,IAAI,GAFKJ,EAASN,GAAOO,EAAU,EAAE,CAE5B;AAAA,IACT,MAAM;AAAA,IACN,wBAAwBE,KAAY;AAAA,IACpC,SAASE,GAAO;AACd,MAAAV,EAAiB,UAAUU,EAAM,aAAa;AAAA,IAChD;AAAA,IACA,GAAIR,KAA8B;AAAA,MAChC,OAAOS;AAAA,IACb;AAAA,IACI,WAAWP,KAAmBG,MAAe,UAAUK,EAAsB,YAAY;AAAA,EAC7F,GACQC,IAAiBC,EAAkB,CAAAC,MAAW;AAClD,IAAAhB,EAAM,IAAI,eAAegB,CAAO;AAAA,EAClC,CAAC;AACD,SAAOC,EAAiB,OAAOvB,GAAgB;AAAA,IAC7C,KAAK,CAACC,GAAcmB,CAAc;AAAA,IAClC,OAAO,CAACJ,GAAcX,CAAY;AAAA,EACtC,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcP,EAAW,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index59.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import { SelectPortalContext as i } from "./
|
|
3
|
-
import { useSelectRootContext as u } from "./
|
|
4
|
-
import { selectors as t } from "./
|
|
2
|
+
import { SelectPortalContext as i } from "./index278.js";
|
|
3
|
+
import { useSelectRootContext as u } from "./index242.js";
|
|
4
|
+
import { selectors as t } from "./index247.js";
|
|
5
5
|
import { j as r } from "./index30.js";
|
|
6
|
-
import { useStore as e } from "./
|
|
7
|
-
import { FloatingPortal as f } from "./
|
|
6
|
+
import { useStore as e } from "./index257.js";
|
|
7
|
+
import { FloatingPortal as f } from "./index279.js";
|
|
8
8
|
const a = /* @__PURE__ */ m.forwardRef(function(n, s) {
|
|
9
9
|
const {
|
|
10
10
|
store: o
|
package/dist/index59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.js","sources":["
|
|
1
|
+
{"version":3,"file":"index59.js","sources":["../../../node_modules/@base-ui/react/select/portal/SelectPortal.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStore } from '@base-ui/utils/store';\nimport { FloatingPortal } from \"../../floating-ui-react/index.mjs\";\nimport { SelectPortalContext } from \"./SelectPortalContext.mjs\";\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { selectors } from \"../store.mjs\";\n\n/**\n * A portal element that moves the popup to a different part of the DOM.\n * By default, the portal element is appended to `<body>`.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const SelectPortal = /*#__PURE__*/React.forwardRef(function SelectPortal(portalProps, forwardedRef) {\n const {\n store\n } = useSelectRootContext();\n const mounted = useStore(store, selectors.mounted);\n const forceMount = useStore(store, selectors.forceMount);\n const shouldRender = mounted || forceMount;\n if (!shouldRender) {\n return null;\n }\n return /*#__PURE__*/_jsx(SelectPortalContext.Provider, {\n value: true,\n children: /*#__PURE__*/_jsx(FloatingPortal, {\n ref: forwardedRef,\n ...portalProps\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectPortal.displayName = \"SelectPortal\";"],"names":["SelectPortal","React","portalProps","forwardedRef","store","useSelectRootContext","mounted","useStore","selectors","forceMount","_jsx","SelectPortalContext","FloatingPortal"],"mappings":";;;;;;;AAiBY,MAACA,IAA4B,gBAAAC,EAAM,WAAW,SAAsBC,GAAaC,GAAc;AACzG,QAAM;AAAA,IACJ,OAAAC;AAAA,EACJ,IAAMC,EAAoB,GAClBC,IAAUC,EAASH,GAAOI,EAAU,OAAO,GAC3CC,IAAaF,EAASH,GAAOI,EAAU,UAAU;AAEvD,SADqBF,KAAWG,IAIZC,gBAAAA,EAAAA,IAAKC,EAAoB,UAAU;AAAA,IACrD,OAAO;AAAA,IACP,UAAuBD,gBAAAA,EAAAA,IAAKE,GAAgB;AAAA,MAC1C,KAAKT;AAAA,MACL,GAAGD;AAAA,IACT,CAAK;AAAA,EACL,CAAG,IARQ;AASX,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcF,EAAa,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index60.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import { inertValue as ue } from "./
|
|
3
|
-
import { useIsoLayoutEffect as M } from "./
|
|
4
|
-
import { useStableCallback as O } from "./
|
|
5
|
-
import { useSelectRootContext as fe, useSelectFloatingContext as me } from "./
|
|
6
|
-
import { CompositeList as de } from "./
|
|
7
|
-
import { useAnchorPositioning as pe } from "./
|
|
8
|
-
import { SelectPositionerContext as ge } from "./
|
|
9
|
-
import { InternalBackdrop as he } from "./
|
|
10
|
-
import { DROPDOWN_COLLISION_AVOIDANCE as Ie } from "./
|
|
11
|
-
import { clearStyles as k } from "./
|
|
12
|
-
import { selectors as t } from "./
|
|
13
|
-
import { createChangeEventDetails as Ae } from "./
|
|
14
|
-
import { findItemIndex as S, selectedValueIncludes as Re } from "./
|
|
15
|
-
import { usePositioner as Se } from "./
|
|
16
|
-
import { useAnchoredPopupScrollLock as Ve } from "./
|
|
2
|
+
import { inertValue as ue } from "./index280.js";
|
|
3
|
+
import { useIsoLayoutEffect as M } from "./index238.js";
|
|
4
|
+
import { useStableCallback as O } from "./index239.js";
|
|
5
|
+
import { useSelectRootContext as fe, useSelectFloatingContext as me } from "./index242.js";
|
|
6
|
+
import { CompositeList as de } from "./index281.js";
|
|
7
|
+
import { useAnchorPositioning as pe } from "./index282.js";
|
|
8
|
+
import { SelectPositionerContext as ge } from "./index283.js";
|
|
9
|
+
import { InternalBackdrop as he } from "./index284.js";
|
|
10
|
+
import { DROPDOWN_COLLISION_AVOIDANCE as Ie } from "./index285.js";
|
|
11
|
+
import { clearStyles as k } from "./index286.js";
|
|
12
|
+
import { selectors as t } from "./index247.js";
|
|
13
|
+
import { createChangeEventDetails as Ae } from "./index248.js";
|
|
14
|
+
import { findItemIndex as S, selectedValueIncludes as Re } from "./index252.js";
|
|
15
|
+
import { usePositioner as Se } from "./index287.js";
|
|
16
|
+
import { useAnchoredPopupScrollLock as Ve } from "./index288.js";
|
|
17
17
|
import { j as V } from "./index30.js";
|
|
18
|
-
import { useStore as o } from "./
|
|
19
|
-
import { none as xe } from "./
|
|
18
|
+
import { useStore as o } from "./index257.js";
|
|
19
|
+
import { none as xe } from "./index266.js";
|
|
20
20
|
const be = {
|
|
21
21
|
position: "fixed"
|
|
22
22
|
}, Ee = /* @__PURE__ */ l.forwardRef(function(x, N) {
|
package/dist/index60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index60.js","sources":["../node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { inertValue } from '@base-ui/utils/inertValue';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useStore } from '@base-ui/utils/store';\nimport { useSelectRootContext, useSelectFloatingContext } from \"../root/SelectRootContext.mjs\";\nimport { CompositeList } from \"../../internals/composite/list/CompositeList.mjs\";\nimport { useAnchorPositioning } from \"../../utils/useAnchorPositioning.mjs\";\nimport { SelectPositionerContext } from \"./SelectPositionerContext.mjs\";\nimport { InternalBackdrop } from \"../../utils/InternalBackdrop.mjs\";\nimport { DROPDOWN_COLLISION_AVOIDANCE } from \"../../internals/constants.mjs\";\nimport { clearStyles } from \"../popup/utils.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { findItemIndex, selectedValueIncludes } from \"../../internals/itemEquality.mjs\";\nimport { usePositioner } from \"../../utils/usePositioner.mjs\";\nimport { useAnchoredPopupScrollLock } from \"../../utils/useAnchoredPopupScrollLock.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst FIXED = {\n position: 'fixed'\n};\n\n/**\n * Positions the select popup.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectPositioner = /*#__PURE__*/React.forwardRef(function SelectPositioner(componentProps, forwardedRef) {\n const {\n anchor,\n positionMethod = 'absolute',\n className,\n render,\n side = 'bottom',\n align = 'center',\n sideOffset = 0,\n alignOffset = 0,\n collisionBoundary = 'clipping-ancestors',\n collisionPadding,\n arrowPadding = 5,\n sticky = false,\n disableAnchorTracking,\n alignItemWithTrigger = true,\n collisionAvoidance = DROPDOWN_COLLISION_AVOIDANCE,\n style,\n ...elementProps\n } = componentProps;\n const {\n store,\n listRef,\n labelsRef,\n alignItemWithTriggerActiveRef,\n selectedItemTextRef,\n valuesRef,\n initialValueRef,\n popupRef,\n setValue\n } = useSelectRootContext();\n const floatingRootContext = useSelectFloatingContext();\n const open = useStore(store, selectors.open);\n const mounted = useStore(store, selectors.mounted);\n const modal = useStore(store, selectors.modal);\n const value = useStore(store, selectors.value);\n const openMethod = useStore(store, selectors.openMethod);\n const positionerElement = useStore(store, selectors.positionerElement);\n const triggerElement = useStore(store, selectors.triggerElement);\n const isItemEqualToValue = useStore(store, selectors.isItemEqualToValue);\n const transitionStatus = useStore(store, selectors.transitionStatus);\n const scrollUpArrowRef = React.useRef(null);\n const scrollDownArrowRef = React.useRef(null);\n const [controlledAlignItemWithTrigger, setControlledAlignItemWithTrigger] = React.useState(alignItemWithTrigger);\n const alignItemWithTriggerActive = mounted && controlledAlignItemWithTrigger && openMethod !== 'touch';\n if (!mounted && controlledAlignItemWithTrigger !== alignItemWithTrigger) {\n setControlledAlignItemWithTrigger(alignItemWithTrigger);\n }\n useIsoLayoutEffect(() => {\n if (!mounted) {\n if (selectors.scrollUpArrowVisible(store.state)) {\n store.set('scrollUpArrowVisible', false);\n }\n if (selectors.scrollDownArrowVisible(store.state)) {\n store.set('scrollDownArrowVisible', false);\n }\n }\n }, [store, mounted]);\n React.useImperativeHandle(alignItemWithTriggerActiveRef, () => alignItemWithTriggerActive);\n useAnchoredPopupScrollLock((alignItemWithTriggerActive || modal) && open, openMethod === 'touch', positionerElement, triggerElement);\n const positioning = useAnchorPositioning({\n anchor,\n floatingRootContext,\n positionMethod,\n mounted,\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n disableAnchorTracking: disableAnchorTracking ?? alignItemWithTriggerActive,\n collisionAvoidance,\n keepMounted: true\n });\n const renderedSide = alignItemWithTriggerActive ? 'none' : positioning.side;\n const positionerStyles = alignItemWithTriggerActive ? FIXED : positioning.positionerStyles;\n const state = {\n open,\n side: renderedSide,\n align: positioning.align,\n anchorHidden: positioning.anchorHidden\n };\n useIsoLayoutEffect(() => {\n store.set('popupSide', positioning.side);\n }, [store, positioning.side]);\n const setPositionerElement = useStableCallback(element => {\n store.set('positionerElement', element);\n });\n const element = usePositioner(componentProps, state, {\n styles: positionerStyles,\n transitionStatus,\n props: elementProps,\n refs: [forwardedRef, setPositionerElement],\n hidden: !mounted,\n inert: !open\n });\n const prevMapSizeRef = React.useRef(0);\n const onMapChange = useStableCallback(map => {\n if (map.size === 0 && prevMapSizeRef.current === 0) {\n return;\n }\n if (valuesRef.current.length === 0) {\n return;\n }\n const prevSize = prevMapSizeRef.current;\n prevMapSizeRef.current = map.size;\n if (map.size === prevSize) {\n return;\n }\n const eventDetails = createChangeEventDetails(REASONS.none);\n if (prevSize !== 0 && !store.state.multiple && value !== null) {\n const selectedValueIndex = findItemIndex(valuesRef.current, value, isItemEqualToValue);\n if (selectedValueIndex === -1) {\n const initialSelectedValue = initialValueRef.current;\n const hasInitial = initialSelectedValue != null && findItemIndex(valuesRef.current, initialSelectedValue, isItemEqualToValue) !== -1;\n const nextValue = hasInitial ? initialSelectedValue : null;\n setValue(nextValue, eventDetails);\n if (nextValue === null) {\n store.set('selectedIndex', null);\n selectedItemTextRef.current = null;\n }\n }\n }\n if (prevSize !== 0 && store.state.multiple && Array.isArray(value)) {\n const hasVisibleItem = selectedItemValue => findItemIndex(valuesRef.current, selectedItemValue, isItemEqualToValue) !== -1;\n const nextValue = value.filter(selectedItemValue => hasVisibleItem(selectedItemValue));\n if (nextValue.length !== value.length || nextValue.some(selectedItemValue => !selectedValueIncludes(value, selectedItemValue, isItemEqualToValue))) {\n setValue(nextValue, eventDetails);\n if (nextValue.length === 0) {\n store.set('selectedIndex', null);\n selectedItemTextRef.current = null;\n }\n }\n }\n if (open && alignItemWithTriggerActive) {\n store.update({\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false\n });\n const stylesToClear = {\n height: ''\n };\n clearStyles(positionerElement, stylesToClear);\n clearStyles(popupRef.current, stylesToClear);\n }\n });\n const contextValue = React.useMemo(() => ({\n ...positioning,\n side: renderedSide,\n alignItemWithTriggerActive,\n setControlledAlignItemWithTrigger,\n scrollUpArrowRef,\n scrollDownArrowRef\n }), [positioning, renderedSide, alignItemWithTriggerActive, setControlledAlignItemWithTrigger]);\n return /*#__PURE__*/_jsx(CompositeList, {\n elementsRef: listRef,\n labelsRef: labelsRef,\n onMapChange: onMapChange,\n children: /*#__PURE__*/_jsxs(SelectPositionerContext.Provider, {\n value: contextValue,\n children: [mounted && modal && /*#__PURE__*/_jsx(InternalBackdrop, {\n inert: inertValue(!open),\n cutout: triggerElement\n }), element]\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectPositioner.displayName = \"SelectPositioner\";"],"names":["FIXED","SelectPositioner","React","componentProps","forwardedRef","anchor","positionMethod","className","render","side","align","sideOffset","alignOffset","collisionBoundary","collisionPadding","arrowPadding","sticky","disableAnchorTracking","alignItemWithTrigger","collisionAvoidance","DROPDOWN_COLLISION_AVOIDANCE","style","elementProps","store","listRef","labelsRef","alignItemWithTriggerActiveRef","selectedItemTextRef","valuesRef","initialValueRef","popupRef","setValue","useSelectRootContext","floatingRootContext","useSelectFloatingContext","open","useStore","selectors","mounted","modal","value","openMethod","positionerElement","triggerElement","isItemEqualToValue","transitionStatus","scrollUpArrowRef","scrollDownArrowRef","controlledAlignItemWithTrigger","setControlledAlignItemWithTrigger","alignItemWithTriggerActive","useIsoLayoutEffect","useAnchoredPopupScrollLock","positioning","useAnchorPositioning","renderedSide","positionerStyles","state","setPositionerElement","useStableCallback","element","usePositioner","prevMapSizeRef","onMapChange","map","prevSize","eventDetails","createChangeEventDetails","REASONS.none","findItemIndex","initialSelectedValue","nextValue","hasVisibleItem","selectedItemValue","selectedValueIncludes","stylesToClear","clearStyles","contextValue","_jsx","CompositeList","_jsxs","SelectPositionerContext","InternalBackdrop","inertValue"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,KAAQ;AAAA,EACZ,UAAU;AACZ,GAQaC,KAAgC,gBAAAC,EAAM,WAAW,SAA0BC,GAAgBC,GAAc;AACpH,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,gBAAAC,IAAiB;AAAA,IACjB,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,OAAAC,IAAQ;AAAA,IACR,YAAAC,IAAa;AAAA,IACb,aAAAC,IAAc;AAAA,IACd,mBAAAC,IAAoB;AAAA,IACpB,kBAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,QAAAC,IAAS;AAAA,IACT,uBAAAC;AAAA,IACA,sBAAAC,IAA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BAAAH;AAAA,IACA,oBAAAC;AAAA,EACJ,IAAM,CAACM,GAAaE,GAAcL,GAA4BD,CAAiC,CAAC;AAC9F,SAAoB6B,gBAAAA,EAAAA,IAAKC,IAAe;AAAA,IACtC,aAAavD;AAAA,IACb,WAAWC;AAAA,IACX,aAAasC;AAAA,IACb,UAAuBiB,gBAAAA,EAAAA,KAAMC,GAAwB,UAAU;AAAA,MAC7D,OAAOJ;AAAA,MACP,UAAU,CAACvC,KAAWC,KAAsBuC,gBAAAA,EAAAA,IAAKI,IAAkB;AAAA,QACjE,OAAOC,GAAW,CAAChD,CAAI;AAAA,QACvB,QAAQQ;AAAA,MAChB,CAAO,GAAGiB,EAAO;AAAA,IACjB,CAAK;AAAA,EACL,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAc3D,GAAiB,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index60.js","sources":["../../../node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { inertValue } from '@base-ui/utils/inertValue';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useStore } from '@base-ui/utils/store';\nimport { useSelectRootContext, useSelectFloatingContext } from \"../root/SelectRootContext.mjs\";\nimport { CompositeList } from \"../../internals/composite/list/CompositeList.mjs\";\nimport { useAnchorPositioning } from \"../../utils/useAnchorPositioning.mjs\";\nimport { SelectPositionerContext } from \"./SelectPositionerContext.mjs\";\nimport { InternalBackdrop } from \"../../utils/InternalBackdrop.mjs\";\nimport { DROPDOWN_COLLISION_AVOIDANCE } from \"../../internals/constants.mjs\";\nimport { clearStyles } from \"../popup/utils.mjs\";\nimport { selectors } from \"../store.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { findItemIndex, selectedValueIncludes } from \"../../internals/itemEquality.mjs\";\nimport { usePositioner } from \"../../utils/usePositioner.mjs\";\nimport { useAnchoredPopupScrollLock } from \"../../utils/useAnchoredPopupScrollLock.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst FIXED = {\n position: 'fixed'\n};\n\n/**\n * Positions the select popup.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectPositioner = /*#__PURE__*/React.forwardRef(function SelectPositioner(componentProps, forwardedRef) {\n const {\n anchor,\n positionMethod = 'absolute',\n className,\n render,\n side = 'bottom',\n align = 'center',\n sideOffset = 0,\n alignOffset = 0,\n collisionBoundary = 'clipping-ancestors',\n collisionPadding,\n arrowPadding = 5,\n sticky = false,\n disableAnchorTracking,\n alignItemWithTrigger = true,\n collisionAvoidance = DROPDOWN_COLLISION_AVOIDANCE,\n style,\n ...elementProps\n } = componentProps;\n const {\n store,\n listRef,\n labelsRef,\n alignItemWithTriggerActiveRef,\n selectedItemTextRef,\n valuesRef,\n initialValueRef,\n popupRef,\n setValue\n } = useSelectRootContext();\n const floatingRootContext = useSelectFloatingContext();\n const open = useStore(store, selectors.open);\n const mounted = useStore(store, selectors.mounted);\n const modal = useStore(store, selectors.modal);\n const value = useStore(store, selectors.value);\n const openMethod = useStore(store, selectors.openMethod);\n const positionerElement = useStore(store, selectors.positionerElement);\n const triggerElement = useStore(store, selectors.triggerElement);\n const isItemEqualToValue = useStore(store, selectors.isItemEqualToValue);\n const transitionStatus = useStore(store, selectors.transitionStatus);\n const scrollUpArrowRef = React.useRef(null);\n const scrollDownArrowRef = React.useRef(null);\n const [controlledAlignItemWithTrigger, setControlledAlignItemWithTrigger] = React.useState(alignItemWithTrigger);\n const alignItemWithTriggerActive = mounted && controlledAlignItemWithTrigger && openMethod !== 'touch';\n if (!mounted && controlledAlignItemWithTrigger !== alignItemWithTrigger) {\n setControlledAlignItemWithTrigger(alignItemWithTrigger);\n }\n useIsoLayoutEffect(() => {\n if (!mounted) {\n if (selectors.scrollUpArrowVisible(store.state)) {\n store.set('scrollUpArrowVisible', false);\n }\n if (selectors.scrollDownArrowVisible(store.state)) {\n store.set('scrollDownArrowVisible', false);\n }\n }\n }, [store, mounted]);\n React.useImperativeHandle(alignItemWithTriggerActiveRef, () => alignItemWithTriggerActive);\n useAnchoredPopupScrollLock((alignItemWithTriggerActive || modal) && open, openMethod === 'touch', positionerElement, triggerElement);\n const positioning = useAnchorPositioning({\n anchor,\n floatingRootContext,\n positionMethod,\n mounted,\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n disableAnchorTracking: disableAnchorTracking ?? alignItemWithTriggerActive,\n collisionAvoidance,\n keepMounted: true\n });\n const renderedSide = alignItemWithTriggerActive ? 'none' : positioning.side;\n const positionerStyles = alignItemWithTriggerActive ? FIXED : positioning.positionerStyles;\n const state = {\n open,\n side: renderedSide,\n align: positioning.align,\n anchorHidden: positioning.anchorHidden\n };\n useIsoLayoutEffect(() => {\n store.set('popupSide', positioning.side);\n }, [store, positioning.side]);\n const setPositionerElement = useStableCallback(element => {\n store.set('positionerElement', element);\n });\n const element = usePositioner(componentProps, state, {\n styles: positionerStyles,\n transitionStatus,\n props: elementProps,\n refs: [forwardedRef, setPositionerElement],\n hidden: !mounted,\n inert: !open\n });\n const prevMapSizeRef = React.useRef(0);\n const onMapChange = useStableCallback(map => {\n if (map.size === 0 && prevMapSizeRef.current === 0) {\n return;\n }\n if (valuesRef.current.length === 0) {\n return;\n }\n const prevSize = prevMapSizeRef.current;\n prevMapSizeRef.current = map.size;\n if (map.size === prevSize) {\n return;\n }\n const eventDetails = createChangeEventDetails(REASONS.none);\n if (prevSize !== 0 && !store.state.multiple && value !== null) {\n const selectedValueIndex = findItemIndex(valuesRef.current, value, isItemEqualToValue);\n if (selectedValueIndex === -1) {\n const initialSelectedValue = initialValueRef.current;\n const hasInitial = initialSelectedValue != null && findItemIndex(valuesRef.current, initialSelectedValue, isItemEqualToValue) !== -1;\n const nextValue = hasInitial ? initialSelectedValue : null;\n setValue(nextValue, eventDetails);\n if (nextValue === null) {\n store.set('selectedIndex', null);\n selectedItemTextRef.current = null;\n }\n }\n }\n if (prevSize !== 0 && store.state.multiple && Array.isArray(value)) {\n const hasVisibleItem = selectedItemValue => findItemIndex(valuesRef.current, selectedItemValue, isItemEqualToValue) !== -1;\n const nextValue = value.filter(selectedItemValue => hasVisibleItem(selectedItemValue));\n if (nextValue.length !== value.length || nextValue.some(selectedItemValue => !selectedValueIncludes(value, selectedItemValue, isItemEqualToValue))) {\n setValue(nextValue, eventDetails);\n if (nextValue.length === 0) {\n store.set('selectedIndex', null);\n selectedItemTextRef.current = null;\n }\n }\n }\n if (open && alignItemWithTriggerActive) {\n store.update({\n scrollUpArrowVisible: false,\n scrollDownArrowVisible: false\n });\n const stylesToClear = {\n height: ''\n };\n clearStyles(positionerElement, stylesToClear);\n clearStyles(popupRef.current, stylesToClear);\n }\n });\n const contextValue = React.useMemo(() => ({\n ...positioning,\n side: renderedSide,\n alignItemWithTriggerActive,\n setControlledAlignItemWithTrigger,\n scrollUpArrowRef,\n scrollDownArrowRef\n }), [positioning, renderedSide, alignItemWithTriggerActive, setControlledAlignItemWithTrigger]);\n return /*#__PURE__*/_jsx(CompositeList, {\n elementsRef: listRef,\n labelsRef: labelsRef,\n onMapChange: onMapChange,\n children: /*#__PURE__*/_jsxs(SelectPositionerContext.Provider, {\n value: contextValue,\n children: [mounted && modal && /*#__PURE__*/_jsx(InternalBackdrop, {\n inert: inertValue(!open),\n cutout: triggerElement\n }), element]\n })\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectPositioner.displayName = \"SelectPositioner\";"],"names":["FIXED","SelectPositioner","React","componentProps","forwardedRef","anchor","positionMethod","className","render","side","align","sideOffset","alignOffset","collisionBoundary","collisionPadding","arrowPadding","sticky","disableAnchorTracking","alignItemWithTrigger","collisionAvoidance","DROPDOWN_COLLISION_AVOIDANCE","style","elementProps","store","listRef","labelsRef","alignItemWithTriggerActiveRef","selectedItemTextRef","valuesRef","initialValueRef","popupRef","setValue","useSelectRootContext","floatingRootContext","useSelectFloatingContext","open","useStore","selectors","mounted","modal","value","openMethod","positionerElement","triggerElement","isItemEqualToValue","transitionStatus","scrollUpArrowRef","scrollDownArrowRef","controlledAlignItemWithTrigger","setControlledAlignItemWithTrigger","alignItemWithTriggerActive","useIsoLayoutEffect","useAnchoredPopupScrollLock","positioning","useAnchorPositioning","renderedSide","positionerStyles","state","setPositionerElement","useStableCallback","element","usePositioner","prevMapSizeRef","onMapChange","map","prevSize","eventDetails","createChangeEventDetails","REASONS.none","findItemIndex","initialSelectedValue","nextValue","hasVisibleItem","selectedItemValue","selectedValueIncludes","stylesToClear","clearStyles","contextValue","_jsx","CompositeList","_jsxs","SelectPositionerContext","InternalBackdrop","inertValue"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,KAAQ;AAAA,EACZ,UAAU;AACZ,GAQaC,KAAgC,gBAAAC,EAAM,WAAW,SAA0BC,GAAgBC,GAAc;AACpH,QAAM;AAAA,IACJ,QAAAC;AAAA,IACA,gBAAAC,IAAiB;AAAA,IACjB,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,OAAAC,IAAQ;AAAA,IACR,YAAAC,IAAa;AAAA,IACb,aAAAC,IAAc;AAAA,IACd,mBAAAC,IAAoB;AAAA,IACpB,kBAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,IACf,QAAAC,IAAS;AAAA,IACT,uBAAAC;AAAA,IACA,sBAAAC,IAAuB;AAAA,IACvB,oBAAAC,IAAqBC;AAAA,IACrB,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMnB,GACE;AAAA,IACJ,OAAAoB;AAAA,IACA,SAAAC;AAAA,IACA,WAAAC;AAAA,IACA,+BAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,iBAAA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KAAMC,GAAwB,UAAU;AAAA,MAC7D,OAAOJ;AAAA,MACP,UAAU,CAACvC,KAAWC,KAAsBuC,gBAAAA,EAAAA,IAAKI,IAAkB;AAAA,QACjE,OAAOC,GAAW,CAAChD,CAAI;AAAA,QACvB,QAAQQ;AAAA,MAChB,CAAO,GAAGiB,EAAO;AAAA,IACjB,CAAK;AAAA,EACL,CAAG;AACH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAc3D,GAAiB,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index61.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import { useSelectItemContext as c } from "./
|
|
3
|
-
import { useTransitionStatus as I } from "./
|
|
4
|
-
import { useOpenChangeComplete as R } from "./
|
|
5
|
-
import { useRenderElement as N } from "./
|
|
6
|
-
import { transitionStatusMapping as S } from "./
|
|
2
|
+
import { useSelectItemContext as c } from "./index305.js";
|
|
3
|
+
import { useTransitionStatus as I } from "./index246.js";
|
|
4
|
+
import { useOpenChangeComplete as R } from "./index249.js";
|
|
5
|
+
import { useRenderElement as N } from "./index272.js";
|
|
6
|
+
import { transitionStatusMapping as S } from "./index293.js";
|
|
7
7
|
import { j as E } from "./index30.js";
|
|
8
8
|
const M = /* @__PURE__ */ n.forwardRef(function(e, r) {
|
|
9
9
|
const s = e.keepMounted ?? !1, {
|
package/dist/index61.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index61.js","sources":["
|
|
1
|
+
{"version":3,"file":"index61.js","sources":["../../../node_modules/@base-ui/react/select/item-indicator/SelectItemIndicator.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useSelectItemContext } from \"../item/SelectItemContext.mjs\";\nimport { useTransitionStatus } from \"../../internals/useTransitionStatus.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { transitionStatusMapping } from \"../../internals/stateAttributesMapping.mjs\";\n\n/**\n * Indicates whether the select item is selected.\n * Renders a `<span>` 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 SelectItemIndicator = /*#__PURE__*/React.forwardRef(function SelectItemIndicator(componentProps, forwardedRef) {\n const keepMounted = componentProps.keepMounted ?? false;\n const {\n selected\n } = useSelectItemContext();\n const shouldRender = keepMounted || selected;\n if (!shouldRender) {\n return null;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n return /*#__PURE__*/_jsx(Inner, {\n ...componentProps,\n ref: forwardedRef\n });\n});\n\n// Split the core implementation to avoid paying the hook costs unless the element needs to mount.\nif (process.env.NODE_ENV !== \"production\") SelectItemIndicator.displayName = \"SelectItemIndicator\";\nconst Inner = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef((componentProps, forwardedRef) => {\n const {\n render,\n className,\n style,\n keepMounted,\n ...elementProps\n } = componentProps;\n const {\n selected\n } = useSelectItemContext();\n const indicatorRef = React.useRef(null);\n const {\n transitionStatus,\n setMounted\n } = useTransitionStatus(selected);\n const state = {\n selected,\n transitionStatus\n };\n const element = useRenderElement('span', componentProps, {\n ref: [forwardedRef, indicatorRef],\n state,\n props: [{\n 'aria-hidden': true,\n children: '✔️'\n }, elementProps],\n stateAttributesMapping: transitionStatusMapping\n });\n useOpenChangeComplete({\n open: selected,\n ref: indicatorRef,\n onComplete() {\n if (!selected) {\n setMounted(false);\n }\n }\n });\n return element;\n}));\nif (process.env.NODE_ENV !== \"production\") Inner.displayName = \"Inner\";"],"names":["SelectItemIndicator","React","componentProps","forwardedRef","keepMounted","selected","useSelectItemContext","_jsx","Inner","render","className","style","elementProps","indicatorRef","transitionStatus","setMounted","useTransitionStatus","element","useRenderElement","transitionStatusMapping","useOpenChangeComplete"],"mappings":";;;;;;;AAgBY,MAACA,IAAmC,gBAAAC,EAAM,WAAW,SAA6BC,GAAgBC,GAAc;AAC1H,QAAMC,IAAcF,EAAe,eAAe,IAC5C;AAAA,IACJ,UAAAG;AAAA,EACJ,IAAMC,EAAoB;AAExB,SADqBF,KAAeC,IAMhBE,gBAAAA,EAAAA,IAAKC,GAAO;AAAA,IAC9B,GAAGN;AAAA,IACH,KAAKC;AAAA,EACT,CAAG,IAPQ;AAQX,CAAC;AAGG,QAAQ,IAAI,aAAa,iBAAcH,EAAoB,cAAc;AAC7E,MAAMQ,IAAqB,gBAAAP,EAAM,KAAkB,gBAAAA,EAAM,WAAW,CAACC,GAAgBC,MAAiB;AACpG,QAAM;AAAA,IACJ,QAAAM;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAP;AAAA,IACA,GAAGQ;AAAA,EACP,IAAMV,GACE;AAAA,IACJ,UAAAG;AAAA,EACJ,IAAMC,EAAoB,GAClBO,IAAeZ,EAAM,OAAO,IAAI,GAChC;AAAA,IACJ,kBAAAa;AAAA,IACA,YAAAC;AAAA,EACJ,IAAMC,EAAoBX,CAAQ,GAK1BY,IAAUC,EAAiB,QAAQhB,GAAgB;AAAA,IACvD,KAAK,CAACC,GAAcU,CAAY;AAAA,IAChC,OANY;AAAA,MACZ,UAAAR;AAAA,MACA,kBAAAS;AAAA,IACJ;AAAA,IAII,OAAO,CAAC;AAAA,MACN,eAAe;AAAA,MACf,UAAU;AAAA,IAChB,GAAOF,CAAY;AAAA,IACf,wBAAwBO;AAAA,EAC5B,CAAG;AACD,SAAAC,EAAsB;AAAA,IACpB,MAAMf;AAAA,IACN,KAAKQ;AAAA,IACL,aAAa;AACX,MAAKR,KACHU,EAAW,EAAK;AAAA,IAEpB;AAAA,EACJ,CAAG,GACME;AACT,CAAC,CAAC;AACE,QAAQ,IAAI,aAAa,iBAAcT,EAAM,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index62.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
|
-
import { useSelectRootContext as u } from "./
|
|
3
|
-
import { useSelectItemContext as x } from "./
|
|
4
|
-
import { useRenderElement as p } from "./
|
|
2
|
+
import { useSelectRootContext as u } from "./index242.js";
|
|
3
|
+
import { useSelectItemContext as x } from "./index305.js";
|
|
4
|
+
import { useRenderElement as p } from "./index272.js";
|
|
5
5
|
const R = /* @__PURE__ */ r.memo(/* @__PURE__ */ r.forwardRef(function(o, l) {
|
|
6
6
|
const {
|
|
7
7
|
index: s,
|
package/dist/index62.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index62.js","sources":["
|
|
1
|
+
{"version":3,"file":"index62.js","sources":["../../../node_modules/@base-ui/react/select/item-text/SelectItemText.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { useSelectItemContext } from \"../item/SelectItemContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\n\n/**\n * A text label of the select item.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectItemText = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function SelectItemText(componentProps, forwardedRef) {\n const {\n index,\n textRef,\n selectedByFocus,\n hasRegistered\n } = useSelectItemContext();\n const {\n firstItemTextRef,\n selectedItemTextRef\n } = useSelectRootContext();\n const {\n render,\n className,\n style,\n ...elementProps\n } = componentProps;\n const localRef = React.useCallback(node => {\n if (!node) {\n return;\n }\n if (hasRegistered && index === 0) {\n firstItemTextRef.current = node;\n }\n if (hasRegistered && selectedByFocus) {\n selectedItemTextRef.current = node;\n }\n }, [firstItemTextRef, selectedItemTextRef, index, selectedByFocus, hasRegistered]);\n const element = useRenderElement('div', componentProps, {\n ref: [localRef, forwardedRef, textRef],\n props: elementProps\n });\n return element;\n}));\nif (process.env.NODE_ENV !== \"production\") SelectItemText.displayName = \"SelectItemText\";"],"names":["SelectItemText","React","componentProps","forwardedRef","index","textRef","selectedByFocus","hasRegistered","useSelectItemContext","firstItemTextRef","selectedItemTextRef","useSelectRootContext","render","className","style","elementProps","localRef","node","useRenderElement"],"mappings":";;;;AAaY,MAACA,IAA8B,gBAAAC,EAAM,KAAkB,gBAAAA,EAAM,WAAW,SAAwBC,GAAgBC,GAAc;AACxI,QAAM;AAAA,IACJ,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,eAAAC;AAAA,EACJ,IAAMC,EAAoB,GAClB;AAAA,IACJ,kBAAAC;AAAA,IACA,qBAAAC;AAAA,EACJ,IAAMC,EAAoB,GAClB;AAAA,IACJ,QAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMb,GACEc,IAAWf,EAAM,YAAY,CAAAgB,MAAQ;AACzC,IAAKA,MAGDV,KAAiBH,MAAU,MAC7BK,EAAiB,UAAUQ,IAEzBV,KAAiBD,MACnBI,EAAoB,UAAUO;AAAA,EAElC,GAAG,CAACR,GAAkBC,GAAqBN,GAAOE,GAAiBC,CAAa,CAAC;AAKjF,SAJgBW,EAAiB,OAAOhB,GAAgB;AAAA,IACtD,KAAK,CAACc,GAAUb,GAAcE,CAAO;AAAA,IACrC,OAAOU;AAAA,EACX,CAAG;AAEH,CAAC,CAAC;AACE,QAAQ,IAAI,aAAa,iBAAcf,EAAe,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index77.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index77.js","sources":["
|
|
1
|
+
{"version":3,"file":"index77.js","sources":["../../../node_modules/libphonenumber-js/min/exports/AsYouType.js"],"sourcesContent":["// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\r\n// importing system which is even uncapable of importing \"*.json\" files.\r\nimport metadata from '../../metadata.min.json.js'\r\n\r\nimport { AsYouType as _AsYouType } from '../../core/index.js'\r\n\r\nexport function AsYouType(country) {\r\n\treturn _AsYouType.call(this, country, metadata)\r\n}\r\n\r\nAsYouType.prototype = Object.create(_AsYouType.prototype, {})\r\nAsYouType.prototype.constructor = AsYouType"],"names":["AsYouType","country","_AsYouType","metadata"],"mappings":";;AAMO,SAASA,EAAUC,GAAS;AAClC,SAAOC,EAAW,KAAK,MAAMD,GAASE,CAAQ;AAC/C;AAEAH,EAAU,YAAY,OAAO,OAAOE,EAAW,WAAW,CAAA,CAAE;AAC5DF,EAAU,UAAU,cAAcA;","x_google_ignoreList":[0]}
|
package/dist/index78.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index78.js","sources":["
|
|
1
|
+
{"version":3,"file":"index78.js","sources":["../../../node_modules/libphonenumber-js/min/exports/validatePhoneNumberLength.js"],"sourcesContent":["import withMetadataArgument from './withMetadataArgument.js'\r\nimport { validatePhoneNumberLength as _validatePhoneNumberLength } from '../../core/index.js'\r\n\r\nexport function validatePhoneNumberLength() {\r\n\treturn withMetadataArgument(_validatePhoneNumberLength, arguments)\r\n}"],"names":["validatePhoneNumberLength","withMetadataArgument","_validatePhoneNumberLength"],"mappings":";;AAGO,SAASA,IAA4B;AAC3C,SAAOC,EAAqBC,GAA4B,SAAS;AAClE;","x_google_ignoreList":[0]}
|