@rpcbase/ui 0.244.0 → 0.245.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index10.js +2 -2
- package/dist/index105.js +36 -36
- package/dist/index106.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index117.js +6 -6
- package/dist/index12.js +3 -3
- package/dist/index120.js +10 -10
- package/dist/index122.js +2 -2
- package/dist/index123.js +3 -3
- package/dist/index124.js +1 -1
- package/dist/index126.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index13.js +2 -2
- package/dist/index14.js +2 -2
- package/dist/index149.js +14 -5
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +63 -63
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +38 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +13 -385
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +23 -261
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +109 -58
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +13 -47
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -169
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +4 -110
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +5 -25
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +12 -8
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +8 -8
- package/dist/index160.js +19 -4
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +11 -6
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +176 -4
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +268 -476
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -189
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +28 -14
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +124 -105
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +63 -262
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +8 -6
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +15 -40
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +30 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +69 -58
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +5 -8
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +61 -80
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +2 -20
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +383 -14
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +260 -4
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +59 -4
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +46 -6
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +169 -4
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +7 -7
- package/dist/index180.js +109 -6
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +24 -16
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +8 -5
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +4 -4
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +5 -12
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +4 -9
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +487 -13
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +189 -13
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +13 -4
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +107 -5
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +16 -16
- package/dist/index190.js +262 -6
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +6 -5
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +39 -53
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +4 -8
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +58 -4
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +8 -4
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +87 -8
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +19 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +16 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -3
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +5 -10
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +6 -9
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +4 -9
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +6 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +16 -10
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -9
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +4 -6
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +12 -5
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +9 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +13 -5
- package/dist/index209.js.map +1 -1
- package/dist/index21.js +1 -1
- package/dist/index210.js +13 -6
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +4 -5
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -16
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +6 -7
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -10
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +54 -10
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +8 -21
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +4 -8
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +4 -9
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +8 -9
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +2 -2
- package/dist/index220.js +4 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +4 -5
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +3 -16
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +10 -9
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +9 -18
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +9 -20
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +10 -12
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +10 -29
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +9 -12
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +6 -25
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +5 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -20
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +5 -66
- 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 +16 -11
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +7 -3
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +9 -49
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +11 -4
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +20 -28
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +8 -16
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -5
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +9 -21
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +4 -53
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -20
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +16 -41
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -39
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +19 -46
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +17 -20
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +12 -19
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +1 -1
- package/dist/index250.js +28 -19
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +10 -68
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +25 -17
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +5 -3
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +66 -11
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +8 -30
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +11 -13
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +8 -18
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +5 -36
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +12 -68
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +3 -239
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +3 -252
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +96 -65
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +16 -98
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +26 -173
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +47 -79
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +6 -13
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +5 -3
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +60 -28
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +66 -16
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +131 -35
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +8 -34
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -69
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +4 -18
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +11 -3
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +17 -107
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +16 -26
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +11 -28
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +8 -4
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +142 -124
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +79 -4
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +61 -78
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +15 -273
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +20 -12
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +7 -28
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +12 -16
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +3 -10
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +49 -24
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +15 -15
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +21 -125
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +3 -56
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +53 -5
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +19 -64
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +42 -14
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +40 -14
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +46 -8
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +21 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +70 -5
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +17 -3
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +3 -10
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +13 -7
- package/dist/index299.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +242 -3
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +15 -130
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +34 -277
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +229 -389
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +253 -5
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +64 -48
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +83 -11
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +3 -27
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +29 -11
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +16 -4
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +35 -15
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +21 -239
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +18 -4
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +4 -5
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +26 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +28 -63
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +4 -9
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +75 -151
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +270 -30
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +11 -11
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +11 -50
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +24 -8
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +4 -23
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +16 -11
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +124 -42
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +5 -97
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +61 -82
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +12 -104
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +7 -52
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +5 -11
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +3 -4
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +10 -37
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -8
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +6 -3
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +385 -121
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +5 -18
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +51 -14
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +11 -3
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +25 -34
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +11 -20
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +154 -9
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +32 -8
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -24
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +46 -25
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +38 -8
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +9 -16
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +11 -4
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +43 -17
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +97 -12
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +86 -8
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +105 -11
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +51 -7
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +10 -12
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +4 -3
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +37 -3
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +74 -35
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +9 -4
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +136 -15
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +17 -11
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +15 -5
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +4 -5
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +37 -3
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +19 -7
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +9 -51
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +8 -16
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +25 -8
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +20 -74
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +28 -5
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +15 -19
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +5 -45
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +16 -16
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +13 -5
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +7 -199
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +27 -74
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +131 -117
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +10 -15
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +44 -59
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +33 -18
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +3 -66
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +21 -11
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +74 -20
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +12 -145
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +3 -79
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +73 -61
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +200 -4
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +71 -20
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +35 -4
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +7 -5
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +26 -36
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +16 -4
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +123 -15
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +4 -9
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +11 -5
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +5 -4
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +3 -546
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +20 -46
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +45 -18
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +18 -6
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +5 -8
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +21 -26
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +4 -6
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +20 -7
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +4 -11
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +4 -8
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +4 -13
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +16 -3
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +9 -3
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +6 -7
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +4 -12
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +543 -44
- package/dist/index399.js.map +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.js +56 -20
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +44 -135
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +17 -8
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +6 -27
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +7 -3
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +6 -21
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -75
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +12 -12
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +8 -3
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +12 -71
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +3 -36
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +51 -59
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +14 -15
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +491 -4
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -56
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +3 -68
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +5 -31
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +56 -9
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +61 -146
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +26 -103
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +9 -8
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +153 -2
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +21 -50
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +107 -43
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +32 -55
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +6 -6
- package/dist/index422.js.map +1 -1
- package/dist/index424.js +38 -49
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +50 -50
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +8 -3
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +2 -15
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +50 -487
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +55 -32
- package/dist/index429.js.map +1 -1
- package/dist/index43.js +127 -18
- package/dist/index43.js.map +1 -1
- package/dist/index430.js +16 -2
- package/dist/index430.js.map +1 -1
- package/dist/index431.js +29 -2
- package/dist/index431.js.map +1 -1
- package/dist/index432.js +13 -2
- package/dist/index432.js.map +1 -1
- package/dist/index433.js +7 -2
- package/dist/index433.js.map +1 -1
- package/dist/index434.js +2 -16
- package/dist/index434.js.map +1 -1
- package/dist/index435.js +2 -29
- package/dist/index435.js.map +1 -1
- package/dist/index436.js +2 -13
- package/dist/index436.js.map +1 -1
- package/dist/index437.js +2 -7
- package/dist/index437.js.map +1 -1
- package/dist/index44.js +39 -122
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +85 -42
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +123 -87
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +5 -126
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +332 -5
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +246 -321
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.js +23 -254
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +129 -25
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +24 -129
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +19 -22
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +134 -19
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +30 -133
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +24 -30
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +38 -26
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +19 -39
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +133 -18
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.js +49 -134
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +25 -48
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +57 -28
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +56 -57
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +5 -5
- package/dist/index64.js.map +1 -1
- package/dist/index66.js +22 -10
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +232 -17
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +5 -5
- package/dist/index68.js.map +1 -1
- package/dist/index7.js +11 -11
- package/dist/index70.js +10 -22
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +17 -232
- package/dist/index71.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index78.js +2 -2
- package/dist/index8.js +2 -2
- package/dist/index9.js +1 -1
- package/package.json +1 -1
package/dist/index54.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index54.js","sources":["../../../node_modules/@base-ui/react/separator/Separator.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useRenderElement } from \"../internals/useRenderElement.mjs\";\n\n/**\n * A separator element accessible to screen readers.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Separator](https://base-ui.com/react/components/separator)\n */\nexport const Separator = /*#__PURE__*/React.forwardRef(function SeparatorComponent(componentProps, forwardedRef) {\n const {\n className,\n render,\n orientation = 'horizontal',\n style,\n ...elementProps\n } = componentProps;\n const state = {\n orientation\n };\n const element = useRenderElement('div', componentProps, {\n state,\n ref: forwardedRef,\n props: [{\n role: 'separator',\n 'aria-orientation': orientation\n }, elementProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") Separator.displayName = \"Separator\";"],"names":["Separator","React","componentProps","forwardedRef","className","render","orientation","style","elementProps","useRenderElement"],"mappings":";;AAWY,MAACA,IAAyB,gBAAAC,EAAM,WAAW,SAA4BC,GAAgBC,GAAc;AAC/G,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC,IAAc;AAAA,IACd,OAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMN;AAYJ,SARgBO,EAAiB,OAAOP,GAAgB;AAAA,IACtD,OAJY;AAAA,MACZ,aAAAI;AAAA,IACJ;AAAA,IAGI,KAAKH;AAAA,IACL,OAAO,CAAC;AAAA,MACN,MAAM;AAAA,MACN,oBAAoBG;AAAA,IAC1B,GAAOE,CAAY;AAAA,EACnB,CAAG;AAEH,CAAC;AACG,QAAQ,IAAI,aAAa,iBAAcR,EAAU,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index54.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":"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","x_google_ignoreList":[0]}
|
package/dist/index55.js
CHANGED
|
@@ -1,141 +1,38 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
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
|
-
const d = 2, De = 400, he = {
|
|
24
|
-
...de,
|
|
25
|
-
...pe,
|
|
26
|
-
popupSide: (p) => p ? {
|
|
27
|
-
"data-popup-side": p
|
|
28
|
-
} : null,
|
|
1
|
+
import * as b from "react";
|
|
2
|
+
import { useRenderElement as v } from "./index150.js";
|
|
3
|
+
import { useSelectRootContext as L } from "./index289.js";
|
|
4
|
+
import { resolveMultipleLabels as N, resolveSelectedLabel as V } from "./index296.js";
|
|
5
|
+
import { selectors as s } from "./index294.js";
|
|
6
|
+
import { useStore as r } from "./index300.js";
|
|
7
|
+
const y = {
|
|
29
8
|
value: () => null
|
|
30
|
-
},
|
|
9
|
+
}, R = /* @__PURE__ */ b.forwardRef(function(c, m) {
|
|
31
10
|
const {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
disabled: A
|
|
45
|
-
} = ue(), {
|
|
46
|
-
labelId: C
|
|
47
|
-
} = ce(), {
|
|
48
|
-
store: e,
|
|
49
|
-
setOpen: R,
|
|
50
|
-
selectionRef: i,
|
|
51
|
-
validation: M,
|
|
52
|
-
readOnly: D,
|
|
53
|
-
required: N,
|
|
54
|
-
alignItemWithTriggerActiveRef: Y,
|
|
55
|
-
disabled: _
|
|
56
|
-
} = ae(), l = A || _ || U, r = o(e, t.open), q = o(e, t.mounted), h = o(e, t.value), X = o(e, t.triggerProps), a = o(e, t.positionerElement), k = o(e, t.listElement), W = o(e, t.popupSide), j = o(e, t.id), z = o(e, t.labelId), G = o(e, t.hasSelectedValue), H = q && a ? W : null, v = P ?? j, J = be(C, z);
|
|
57
|
-
ge({
|
|
58
|
-
id: v
|
|
59
|
-
});
|
|
60
|
-
const K = le(a), u = g.useRef(null), {
|
|
61
|
-
getButtonProps: Q,
|
|
62
|
-
buttonRef: Z
|
|
63
|
-
} = Se({
|
|
64
|
-
disabled: l,
|
|
65
|
-
native: w
|
|
66
|
-
}), $ = ie((n) => {
|
|
67
|
-
e.set("triggerElement", n);
|
|
68
|
-
}), ee = b(), m = b(), f = b();
|
|
69
|
-
g.useEffect(() => {
|
|
70
|
-
if (r)
|
|
71
|
-
return f.start(De, () => {
|
|
72
|
-
i.current.allowUnselectedMouseUp = !0, i.current.allowSelectedMouseUp = !0;
|
|
73
|
-
}), () => {
|
|
74
|
-
f.clear();
|
|
75
|
-
};
|
|
76
|
-
i.current = {
|
|
77
|
-
allowSelectedMouseUp: !1,
|
|
78
|
-
allowUnselectedMouseUp: !1,
|
|
79
|
-
dragY: 0
|
|
80
|
-
}, m.clear();
|
|
81
|
-
}, [r, i, m, f]);
|
|
82
|
-
const te = Ee(X, {
|
|
83
|
-
id: v,
|
|
84
|
-
role: "combobox",
|
|
85
|
-
"aria-expanded": r ? "true" : "false",
|
|
86
|
-
"aria-haspopup": "listbox",
|
|
87
|
-
"aria-controls": r ? k?.id ?? Te(a)?.id : void 0,
|
|
88
|
-
"aria-labelledby": J,
|
|
89
|
-
"aria-readonly": D || void 0,
|
|
90
|
-
"aria-required": N || void 0,
|
|
91
|
-
tabIndex: l ? -1 : 0,
|
|
92
|
-
onFocus(n) {
|
|
93
|
-
T(!0), r && Y.current && R(!1, B(Re, n.nativeEvent)), ee.start(0, () => {
|
|
94
|
-
e.set("forceMount", !0);
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
onBlur(n) {
|
|
98
|
-
S(a, n.relatedTarget) || (I(!0), T(!1), O === "onBlur" && M.commit(h));
|
|
99
|
-
},
|
|
100
|
-
onMouseDown(n) {
|
|
101
|
-
if (r)
|
|
102
|
-
return;
|
|
103
|
-
const re = se(n.currentTarget);
|
|
104
|
-
function ne(s) {
|
|
105
|
-
if (!u.current)
|
|
106
|
-
return;
|
|
107
|
-
const y = s.target;
|
|
108
|
-
if (S(u.current, y) || S(K.current, y))
|
|
109
|
-
return;
|
|
110
|
-
const c = fe(u.current);
|
|
111
|
-
s.clientX >= c.left - d && s.clientX <= c.right + d && s.clientY >= c.top - d && s.clientY <= c.bottom + d || R(!1, B(Me, s));
|
|
112
|
-
}
|
|
113
|
-
m.start(0, () => {
|
|
114
|
-
re.addEventListener("mouseup", ne, {
|
|
115
|
-
once: !0
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}, F, Q), x = M.getValidationProps(l, te);
|
|
120
|
-
x.role = "combobox";
|
|
121
|
-
const oe = {
|
|
122
|
-
...V,
|
|
123
|
-
open: r,
|
|
124
|
-
disabled: l,
|
|
125
|
-
value: h,
|
|
126
|
-
readOnly: D,
|
|
127
|
-
popupSide: H,
|
|
128
|
-
placeholder: !G
|
|
11
|
+
className: A,
|
|
12
|
+
render: E,
|
|
13
|
+
children: l,
|
|
14
|
+
placeholder: n,
|
|
15
|
+
style: x,
|
|
16
|
+
...p
|
|
17
|
+
} = c, {
|
|
18
|
+
store: t,
|
|
19
|
+
valueRef: f
|
|
20
|
+
} = L(), o = r(t, s.value), i = r(t, s.items), u = r(t, s.itemToStringLabel), a = r(t, s.hasSelectedValue), d = !a && n != null && l == null, h = r(t, s.hasNullItemLabel, d), S = {
|
|
21
|
+
value: o,
|
|
22
|
+
placeholder: !a
|
|
129
23
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
state:
|
|
133
|
-
|
|
134
|
-
props:
|
|
24
|
+
let e = null;
|
|
25
|
+
return typeof l == "function" ? e = l(o) : l != null ? e = l : !a && n != null && !h ? e = n : Array.isArray(o) ? e = N(o, i, u) : e = V(o, i, u), v("span", c, {
|
|
26
|
+
state: S,
|
|
27
|
+
ref: [m, f],
|
|
28
|
+
props: [{
|
|
29
|
+
children: e
|
|
30
|
+
}, p],
|
|
31
|
+
stateAttributesMapping: y
|
|
135
32
|
});
|
|
136
33
|
});
|
|
137
|
-
process.env.NODE_ENV !== "production" && (
|
|
34
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "SelectValue");
|
|
138
35
|
export {
|
|
139
|
-
|
|
36
|
+
R as SelectValue
|
|
140
37
|
};
|
|
141
38
|
//# sourceMappingURL=index55.js.map
|
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":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index55.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/index56.js
CHANGED
|
@@ -1,38 +1,32 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { useRenderElement as
|
|
3
|
-
import { useSelectRootContext as
|
|
4
|
-
import {
|
|
5
|
-
import { selectors as
|
|
6
|
-
import { useStore as
|
|
7
|
-
const
|
|
8
|
-
value: () => null
|
|
9
|
-
}, R = /* @__PURE__ */ b.forwardRef(function(c, m) {
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { useRenderElement as p } from "./index150.js";
|
|
3
|
+
import { useSelectRootContext as c } from "./index289.js";
|
|
4
|
+
import { triggerOpenStateMapping as i } from "./index151.js";
|
|
5
|
+
import { selectors as m } from "./index294.js";
|
|
6
|
+
import { useStore as a } from "./index300.js";
|
|
7
|
+
const l = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
10
8
|
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = c, {
|
|
18
|
-
|
|
19
|
-
valueRef: f
|
|
20
|
-
} = L(), o = r(t, s.value), i = r(t, s.items), u = r(t, s.itemToStringLabel), a = r(t, s.hasSelectedValue), d = !a && n != null && l == null, h = r(t, s.hasNullItemLabel, d), S = {
|
|
21
|
-
value: o,
|
|
22
|
-
placeholder: !a
|
|
9
|
+
render: d,
|
|
10
|
+
className: u,
|
|
11
|
+
style: S,
|
|
12
|
+
...o
|
|
13
|
+
} = e, {
|
|
14
|
+
store: r
|
|
15
|
+
} = c(), n = {
|
|
16
|
+
open: a(r, m.open)
|
|
23
17
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ref: [m, f],
|
|
18
|
+
return p("span", e, {
|
|
19
|
+
state: n,
|
|
20
|
+
ref: t,
|
|
28
21
|
props: [{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
"aria-hidden": !0,
|
|
23
|
+
children: "▼"
|
|
24
|
+
}, o],
|
|
25
|
+
stateAttributesMapping: i
|
|
32
26
|
});
|
|
33
27
|
});
|
|
34
|
-
process.env.NODE_ENV !== "production" && (
|
|
28
|
+
process.env.NODE_ENV !== "production" && (l.displayName = "SelectIcon");
|
|
35
29
|
export {
|
|
36
|
-
|
|
30
|
+
l as SelectIcon
|
|
37
31
|
};
|
|
38
32
|
//# sourceMappingURL=index56.js.map
|
package/dist/index56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index56.js","sources":["../../../node_modules/@base-ui/react/select/
|
|
1
|
+
{"version":3,"file":"index56.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/index57.js
CHANGED
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { useSelectRootContext as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { useStableCallback as S } from "./index264.js";
|
|
3
|
+
import { useSelectRootContext as N } from "./index289.js";
|
|
4
|
+
import { useSelectPositionerContext as L } from "./index317.js";
|
|
5
|
+
import { useRenderElement as b } from "./index150.js";
|
|
6
|
+
import { styleDisableScrollbar as h } from "./index324.js";
|
|
7
|
+
import { LIST_FUNCTIONAL_STYLES as E } from "./index318.js";
|
|
8
|
+
import { selectors as t } from "./index294.js";
|
|
9
|
+
import { useStore as o } from "./index300.js";
|
|
10
|
+
const R = /* @__PURE__ */ u.forwardRef(function(s, l) {
|
|
8
11
|
const {
|
|
9
|
-
render:
|
|
10
|
-
className:
|
|
11
|
-
style:
|
|
12
|
-
...
|
|
13
|
-
} =
|
|
14
|
-
store:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
12
|
+
render: g,
|
|
13
|
+
className: x,
|
|
14
|
+
style: y,
|
|
15
|
+
...i
|
|
16
|
+
} = s, {
|
|
17
|
+
store: e,
|
|
18
|
+
scrollHandlerRef: c
|
|
19
|
+
} = N(), {
|
|
20
|
+
alignItemWithTriggerActive: n
|
|
21
|
+
} = L(), m = o(e, t.hasScrollArrows), a = o(e, t.openMethod), p = o(e, t.multiple), d = {
|
|
22
|
+
id: `${o(e, t.id)}-list`,
|
|
23
|
+
role: "listbox",
|
|
24
|
+
"aria-multiselectable": p || void 0,
|
|
25
|
+
onScroll(r) {
|
|
26
|
+
c.current?.(r.currentTarget);
|
|
27
|
+
},
|
|
28
|
+
...n && {
|
|
29
|
+
style: E
|
|
30
|
+
},
|
|
31
|
+
className: m && a !== "touch" ? h.className : void 0
|
|
32
|
+
}, f = S((r) => {
|
|
33
|
+
e.set("listElement", r);
|
|
34
|
+
});
|
|
35
|
+
return b("div", s, {
|
|
36
|
+
ref: [l, f],
|
|
37
|
+
props: [d, i]
|
|
26
38
|
});
|
|
27
39
|
});
|
|
28
|
-
process.env.NODE_ENV !== "production" && (
|
|
40
|
+
process.env.NODE_ENV !== "production" && (R.displayName = "SelectList");
|
|
29
41
|
export {
|
|
30
|
-
|
|
42
|
+
R as SelectList
|
|
31
43
|
};
|
|
32
44
|
//# sourceMappingURL=index57.js.map
|
package/dist/index57.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index57.js","sources":["../../../node_modules/@base-ui/react/select/
|
|
1
|
+
{"version":3,"file":"index57.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/index58.js
CHANGED
|
@@ -1,44 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { useSelectRootContext as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import { useStore as o } from "./index257.js";
|
|
10
|
-
const R = /* @__PURE__ */ u.forwardRef(function(s, l) {
|
|
1
|
+
import * as m from "react";
|
|
2
|
+
import { SelectPortalContext as i } from "./index314.js";
|
|
3
|
+
import { useSelectRootContext as u } from "./index289.js";
|
|
4
|
+
import { selectors as t } from "./index294.js";
|
|
5
|
+
import { j as r } from "./index28.js";
|
|
6
|
+
import { useStore as e } from "./index300.js";
|
|
7
|
+
import { FloatingPortal as f } from "./index166.js";
|
|
8
|
+
const a = /* @__PURE__ */ m.forwardRef(function(n, s) {
|
|
11
9
|
const {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} = L(), m = o(e, t.hasScrollArrows), a = o(e, t.openMethod), p = o(e, t.multiple), d = {
|
|
22
|
-
id: `${o(e, t.id)}-list`,
|
|
23
|
-
role: "listbox",
|
|
24
|
-
"aria-multiselectable": p || void 0,
|
|
25
|
-
onScroll(r) {
|
|
26
|
-
c.current?.(r.currentTarget);
|
|
27
|
-
},
|
|
28
|
-
...n && {
|
|
29
|
-
style: E
|
|
30
|
-
},
|
|
31
|
-
className: m && a !== "touch" ? h.className : void 0
|
|
32
|
-
}, f = S((r) => {
|
|
33
|
-
e.set("listElement", r);
|
|
34
|
-
});
|
|
35
|
-
return b("div", s, {
|
|
36
|
-
ref: [l, f],
|
|
37
|
-
props: [d, i]
|
|
38
|
-
});
|
|
10
|
+
store: o
|
|
11
|
+
} = u(), l = e(o, t.mounted), c = e(o, t.forceMount);
|
|
12
|
+
return l || c ? /* @__PURE__ */ r.jsx(i.Provider, {
|
|
13
|
+
value: !0,
|
|
14
|
+
children: /* @__PURE__ */ r.jsx(f, {
|
|
15
|
+
ref: s,
|
|
16
|
+
...n
|
|
17
|
+
})
|
|
18
|
+
}) : null;
|
|
39
19
|
});
|
|
40
|
-
process.env.NODE_ENV !== "production" && (
|
|
20
|
+
process.env.NODE_ENV !== "production" && (a.displayName = "SelectPortal");
|
|
41
21
|
export {
|
|
42
|
-
|
|
22
|
+
a as SelectPortal
|
|
43
23
|
};
|
|
44
24
|
//# sourceMappingURL=index58.js.map
|
package/dist/index58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index58.js","sources":["../../../node_modules/@base-ui/react/select/
|
|
1
|
+
{"version":3,"file":"index58.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]}
|