@rpcbase/ui 0.287.0 → 0.289.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/sha256.worker-DNtOSCbM.js.map +1 -0
- package/dist/components/FilesUploadField/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index10.js.map +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +96 -17
- package/dist/index11.js.map +1 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js.map +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js.map +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js.map +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js.map +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index14.js.map +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js.map +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js.map +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js.map +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +18 -12
- package/dist/index170.js.map +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index18.js.map +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -3
- package/dist/index182.js.map +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js.map +1 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js.map +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js.map +1 -1
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +9 -7
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +4 -4
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +4 -15
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +13 -3
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +2 -2
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +4 -85
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +79 -54
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +68 -7
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -23
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +6 -28
- package/dist/index199.js.map +1 -1
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +4 -97
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +3 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +23 -24
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +28 -10
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +97 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -12
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +22 -19
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -6
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -15
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +10 -102
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +21 -3
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +5 -23
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +15 -28
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +101 -17
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -7
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +24 -15
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +27 -7
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +17 -24
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +6 -22
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +15 -6
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +8 -5
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +27 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +23 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -24
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +5 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +4 -24
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +4 -23
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +23 -6
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +22 -8
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -19
- package/dist/index229.js.map +1 -1
- package/dist/index23.js.map +1 -1
- package/dist/index230.js +22 -50
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +7 -20
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +9 -27
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +17 -97
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +50 -33
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +20 -119
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +28 -13
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +98 -4
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +33 -15
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -62
- package/dist/index239.js.map +1 -1
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +13 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -109
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +14 -14
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +64 -12
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +10 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +104 -318
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +14 -66
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +12 -232
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +4 -270
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +313 -309
- package/dist/index249.js.map +1 -1
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +60 -171
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +252 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +268 -41
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +316 -47
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +179 -9
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +6 -50
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +41 -51
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +50 -7
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +9 -10
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +51 -61
- package/dist/index259.js.map +1 -1
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +53 -42
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +9 -97
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +31 -47
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +61 -36
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +43 -47
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +92 -46
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +48 -20
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +33 -176
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +49 -48
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +68 -15
- package/dist/index269.js.map +1 -1
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +20 -65
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +202 -9
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +48 -40
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +60 -91
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +9 -278
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +38 -55
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +91 -10
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +278 -12
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +58 -11
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +11 -64
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +5 -5
- package/dist/index28.js.map +1 -1
- package/dist/index280.js +12 -6
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +3 -25
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +3 -25
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +12 -126
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +63 -51
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +5 -60
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +24 -48
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +24 -6
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +125 -14
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +51 -16
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +5 -7
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +56 -11
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +47 -24
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +7 -51
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +15 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +18 -148
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +12 -59
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +25 -120
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +54 -15
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +5 -866
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +148 -28
- package/dist/index299.js.map +1 -1
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +6 -8
- package/dist/index30.js.map +1 -1
- package/dist/index300.js +55 -512
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +111 -794
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +14 -7436
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +862 -6
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +28 -12
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +515 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +803 -5
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +7426 -468
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +6 -37
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +12 -19
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +5 -11
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +5 -30
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +5 -4
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +461 -51
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +36 -10
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +19 -5
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +29 -8
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +4 -12
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +60 -3
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +10 -15
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +5 -25
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +5 -5
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +9 -41
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +11 -4
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +3 -26
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +15 -18
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +22 -31
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +41 -5
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +4 -8
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +25 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +19 -9
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +34 -10
- package/dist/index329.js.map +1 -1
- package/dist/index33.js +9 -6
- package/dist/index33.js.map +1 -1
- package/dist/index330.js +5 -7
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +9 -75
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +8 -162
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +9 -114
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +10 -14
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +7 -80
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +68 -39
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +160 -11
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +113 -15
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +13 -100
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +6 -6
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +73 -49
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +34 -96
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +12 -70
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +14 -111
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +94 -48
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +50 -37
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +89 -125
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +52 -123
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +54 -197
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +44 -229
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +9 -9
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +42 -308
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +144 -5
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +142 -6
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +257 -7
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +241 -6
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +309 -6
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +5 -21
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +6 -10
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +7 -128
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +6 -42
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +12 -7
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +6 -68
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +20 -116
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +10 -490
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +128 -7
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +42 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +67 -3
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +115 -45
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +490 -11
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +8 -26
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +12 -41
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +13 -5
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +4 -36
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +45 -15
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +24 -41
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +3 -12
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +27 -11
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +40 -50
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +37 -40
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +12 -10
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +40 -4
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +7 -4
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +5 -5
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +29 -8
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +9 -303
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +57 -4
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +40 -22
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +15 -105
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +5 -22
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +10 -22
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +289 -16
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +4 -12
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +20 -112
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +6 -10
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +3 -9
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +104 -27
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +20 -9
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +20 -6
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +14 -253
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +12 -10
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +117 -11
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +8 -6
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +32 -22
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +9 -23
- package/dist/index399.js.map +1 -1
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +8 -11
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +6 -105
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +3 -15
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +251 -10
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +9 -7
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +11 -239
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -28
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +21 -37
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +21 -10
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +97 -117
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +15 -40
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +6 -7
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +11 -25
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +7 -9
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -24
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +226 -15
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +24 -11
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +38 -4
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +11 -324
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +119 -62
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +42 -4
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +25 -28
- package/dist/index419.js.map +1 -1
- package/dist/index42.js +6 -4
- package/dist/index42.js.map +1 -1
- package/dist/index420.js +11 -470
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +23 -268
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +24 -0
- package/dist/index422.js.map +1 -0
- package/dist/index423.js +17 -0
- package/dist/index423.js.map +1 -0
- package/dist/index424.js +8 -0
- package/dist/index424.js.map +1 -0
- package/dist/index425.js +328 -0
- package/dist/index425.js.map +1 -0
- package/dist/index426.js +66 -0
- package/dist/index426.js.map +1 -0
- package/dist/index427.js +7 -0
- package/dist/index427.js.map +1 -0
- package/dist/index428.js +31 -0
- package/dist/index428.js.map +1 -0
- package/dist/index429.js +474 -0
- package/dist/index429.js.map +1 -0
- package/dist/index43.js +68 -7
- package/dist/index43.js.map +1 -1
- package/dist/index430.js +272 -0
- package/dist/index430.js.map +1 -0
- package/dist/index44.js +7 -6
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +31 -7
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +10 -10
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +15 -13
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +201 -7
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +20 -6
- package/dist/index49.js.map +1 -1
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +16 -6
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +123 -14
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +19 -8
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +5 -7
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +9 -68
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +7 -7
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +9 -31
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +13 -10
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +8 -15
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +10 -201
- package/dist/index59.js.map +1 -1
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +13 -20
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +9 -16
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +10 -123
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +5 -19
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +42 -9
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +387 -9
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +37 -14
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +21 -9
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +4 -9
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +6 -4
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +3 -3
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +57 -41
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +5 -387
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +6 -37
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +5 -21
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +4 -56
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +7 -7
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +6 -5
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +6 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +11 -5
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +11 -5
- package/dist/index79.js.map +1 -1
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +7 -6
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +10 -6
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -8
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +6 -7
- package/dist/index83.js.map +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +2 -2
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +31 -31
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js.map +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +13 -13
- package/dist/assets/sha256.worker-BEf4_Y9w.js.map +0 -1
package/dist/index413.js
CHANGED
|
@@ -1,21 +1,232 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useRenderElement as e } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { useRenderElement as e } from "./index197.js";
|
|
3
|
+
import { transitionStatusMapping as t } from "./index199.js";
|
|
4
|
+
import { popupStateMapping as n } from "./index202.js";
|
|
5
|
+
import { getWindow as r } from "./index204.js";
|
|
6
|
+
import { useStableCallback as i } from "./index206.js";
|
|
7
|
+
import { useIsoLayoutEffect as a } from "./index208.js";
|
|
8
|
+
import { ownerDocument as o } from "./index211.js";
|
|
9
|
+
import { windowResize as s } from "./index214.js";
|
|
10
|
+
import { createChangeEventDetails as c } from "./index215.js";
|
|
11
|
+
import { webkit as l } from "./index224.js";
|
|
12
|
+
import { addEventListener as u } from "./index231.js";
|
|
13
|
+
import { useAnimationFrame as d } from "./index234.js";
|
|
14
|
+
import { rectToClientRect as f } from "./index237.js";
|
|
15
|
+
import { FloatingFocusManager as p } from "./index249.js";
|
|
16
|
+
import { platform as m } from "./index253.js";
|
|
17
|
+
import { useOpenChangeComplete as h } from "./index270.js";
|
|
18
|
+
import { COMPOSITE_KEYS as g } from "./index280.js";
|
|
19
|
+
import { useSelectFloatingContext as _, useSelectRootContext as v, useSelectRootPropsContext as y } from "./index372.js";
|
|
20
|
+
import { clamp as b } from "./index385.js";
|
|
21
|
+
import { getMaxScrollOffset as x } from "./index386.js";
|
|
22
|
+
import { useDirection as S } from "./index397.js";
|
|
23
|
+
import { useSelectPositionerContext as ee } from "./index403.js";
|
|
24
|
+
import { LIST_FUNCTIONAL_STYLES as te, clearStyles as C } from "./index404.js";
|
|
25
|
+
import { getDisabledMountTransitionStyles as w } from "./index405.js";
|
|
26
|
+
import { styleDisableScrollbar as T } from "./index409.js";
|
|
27
|
+
import { useToolbarRootContext as E } from "./index410.js";
|
|
28
|
+
import { useCSPContext as D } from "./index411.js";
|
|
29
|
+
import { transformOrigin as O } from "./index412.js";
|
|
30
|
+
import * as k from "react";
|
|
31
|
+
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
32
|
+
//#region ../../node_modules/@base-ui/react/select/popup/SelectPopup.mjs
|
|
33
|
+
var M = {
|
|
34
|
+
...n,
|
|
35
|
+
...t
|
|
36
|
+
}, N = /*#__PURE__*/ k.forwardRef(function(t, n) {
|
|
37
|
+
let { render: f, className: m, style: x, finalFocus: N, ...R } = t, z = v(), { multiple: ie, readOnly: ae, highlightItemOnHover: B } = y(), oe = _(), { side: se, align: ce, alignItemWithTriggerActive: V, isPositioned: H, setControlledAlignItemWithTrigger: U } = ee(), le = E(!0) != null, W = S(), { nonce: ue, disableStyleElements: de } = D(), fe = z.useState("id"), G = z.useState("open"), pe = z.useState("openMethod"), me = z.useState("mounted"), he = z.useState("popupProps"), K = z.useState("transitionStatus"), q = z.useState("triggerElement"), J = z.useState("positionerElement"), Y = z.useState("listElement"), X = k.useRef(!1), Z = k.useRef(!1), Q = k.useRef({}), ge = d(), $ = i((e) => {
|
|
38
|
+
if (!J || !z.context.popupRef.current || !Z.current) return;
|
|
39
|
+
let t = J.style.top === "0px", n = J.style.bottom === "0px";
|
|
40
|
+
if (X.current || !V || !t && !n) {
|
|
41
|
+
z.context.handleScrollArrowVisibility(e);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
let i = F(J), a = I(J.getBoundingClientRect().height, "y", i), s = o(J), c = r(J), l = c.getComputedStyle(J), u = parseFloat(l.marginTop), d = parseFloat(l.marginBottom), f = ne(c.getComputedStyle(z.context.popupRef.current)), p = Math.min(s.documentElement.clientHeight - u - d, f), m = e.scrollTop, h = P(e), g = null, _ = (e) => {
|
|
45
|
+
J.style.height = `${e}px`;
|
|
46
|
+
}, v = t ? h - m : m, y = Math.min(a + v, p);
|
|
47
|
+
if (v <= 1) {
|
|
48
|
+
let n = b(v, 0, p - a);
|
|
49
|
+
n > 0 && _(a + n), e.scrollTop = t ? h : 0, p - (a + n) <= 1 && (X.current = !0), z.context.handleScrollArrowVisibility(e);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
p - y > 1 ? g = t ? Infinity : 0 : n && m < h && (g = m - (v - (a + v - p)));
|
|
53
|
+
let x = Math.ceil(y);
|
|
54
|
+
if (x !== 0 && _(x), g != null) {
|
|
55
|
+
let t = b(g, 0, P(e));
|
|
56
|
+
Math.abs(e.scrollTop - t) > 1 && (e.scrollTop = t);
|
|
57
|
+
}
|
|
58
|
+
x >= p - 1 && (X.current = !0), z.context.handleScrollArrowVisibility(e);
|
|
15
59
|
});
|
|
60
|
+
k.useImperativeHandle(z.context.scrollHandlerRef, () => $, [$]), h({
|
|
61
|
+
open: G,
|
|
62
|
+
ref: z.context.popupRef,
|
|
63
|
+
onComplete() {
|
|
64
|
+
G && z.context.onOpenChangeComplete(!0);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
let _e = {
|
|
68
|
+
open: G,
|
|
69
|
+
transitionStatus: K,
|
|
70
|
+
side: se,
|
|
71
|
+
align: ce
|
|
72
|
+
};
|
|
73
|
+
a(() => {
|
|
74
|
+
J && z.context.popupRef.current && !Object.keys(Q.current).length && (Q.current = {
|
|
75
|
+
top: J.style.top || "0",
|
|
76
|
+
left: J.style.left || "0",
|
|
77
|
+
right: J.style.right,
|
|
78
|
+
height: J.style.height,
|
|
79
|
+
bottom: J.style.bottom,
|
|
80
|
+
minHeight: J.style.minHeight,
|
|
81
|
+
maxHeight: J.style.maxHeight,
|
|
82
|
+
marginTop: J.style.marginTop,
|
|
83
|
+
marginBottom: J.style.marginBottom
|
|
84
|
+
});
|
|
85
|
+
}, [z, J]), a(() => {
|
|
86
|
+
G || V || (Z.current = !1, X.current = !1, C(J, Q.current));
|
|
87
|
+
}, [
|
|
88
|
+
G,
|
|
89
|
+
V,
|
|
90
|
+
J
|
|
91
|
+
]), a(() => {
|
|
92
|
+
let e = z.context.popupRef.current;
|
|
93
|
+
if (!G || !q || !J || !e || V && !H || z.state.transitionStatus === "ending") return;
|
|
94
|
+
if (Z.current = !0, e.style.removeProperty(O), !V) {
|
|
95
|
+
ge.request(() => z.context.handleScrollArrowVisibility(Y || e));
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
let t = re(e);
|
|
99
|
+
try {
|
|
100
|
+
let t = z.context.selectedItemTextRef.current;
|
|
101
|
+
t?.isConnected || (t = !z.select("hasSelectedValue") && z.context.firstItemTextRef.current?.isConnected ? z.context.firstItemTextRef.current : null);
|
|
102
|
+
let n = z.context.valueRef.current, i = r(J), a = i.getComputedStyle(J), s = i.getComputedStyle(e), c = o(q), u = F(q), d = L(q.getBoundingClientRect(), u), f = L(J.getBoundingClientRect(), u), p = d.height, m = Y || e, h = m.scrollHeight, g = parseFloat(s.borderBottomWidth), _ = parseFloat(a.marginTop) || 10, v = parseFloat(a.marginBottom) || 10, y = parseFloat(a.minHeight) || 100, x = ne(s), S = c.documentElement.clientHeight - _ - v, ee = c.documentElement.clientWidth, te = S - d.bottom + p, w, T = W === "rtl" ? d.right - f.width : d.left, E = 0;
|
|
103
|
+
if (t && n) {
|
|
104
|
+
let e = L(n.getBoundingClientRect(), u);
|
|
105
|
+
w = L(t.getBoundingClientRect(), u), T = f.left + (W === "rtl" ? e.right - w.right : e.left - w.left);
|
|
106
|
+
let r = e.top - d.top + e.height / 2;
|
|
107
|
+
E = w.top - f.top + w.height / 2 - r;
|
|
108
|
+
}
|
|
109
|
+
let D = te + E + v + g, k = Math.min(S, D), A = S - _ - v, j = D - k, M = ee - 5;
|
|
110
|
+
J.style.left = `${b(T, 5, M - f.width)}px`, J.style.height = `${k}px`, J.style.maxHeight = "none", J.style.marginTop = `${_}px`, J.style.marginBottom = `${v}px`, e.style.height = "100%";
|
|
111
|
+
let N = P(m), I = j >= N - 1;
|
|
112
|
+
I && (k = Math.min(S, f.height) - (j - N));
|
|
113
|
+
let R = d.top < 20 || d.bottom > S - 20 || Math.ceil(k) + 1 < Math.min(h, y), re = (i.visualViewport?.scale ?? 1) !== 1 && l;
|
|
114
|
+
if (R || re) {
|
|
115
|
+
C(J, Q.current), U(!1);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
let ie = Math.max(y, k);
|
|
119
|
+
if (I) {
|
|
120
|
+
let e = Math.max(0, S - D);
|
|
121
|
+
J.style.top = f.height >= A ? "0" : `${e}px`, J.style.height = `${k}px`, m.scrollTop = P(m);
|
|
122
|
+
} else J.style.bottom = "0", m.scrollTop = j;
|
|
123
|
+
if (w) {
|
|
124
|
+
let t = f.top, n = f.height, r = w.top + w.height / 2, i = b(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
125
|
+
e.style.setProperty(O, `50% ${i}%`);
|
|
126
|
+
}
|
|
127
|
+
(ie === S || k >= x) && (X.current = !0), z.context.handleScrollArrowVisibility(m), B && z.state.selectedIndex === null && z.state.activeIndex === null && z.context.listRef.current[0] != null && z.set("activeIndex", 0);
|
|
128
|
+
} finally {
|
|
129
|
+
t();
|
|
130
|
+
}
|
|
131
|
+
}, [
|
|
132
|
+
z,
|
|
133
|
+
G,
|
|
134
|
+
J,
|
|
135
|
+
q,
|
|
136
|
+
V,
|
|
137
|
+
U,
|
|
138
|
+
ge,
|
|
139
|
+
Y,
|
|
140
|
+
B,
|
|
141
|
+
W,
|
|
142
|
+
H
|
|
143
|
+
]), k.useEffect(() => {
|
|
144
|
+
if (!V || !J || !G) return;
|
|
145
|
+
let e = r(J);
|
|
146
|
+
function t(e) {
|
|
147
|
+
z.context.setOpen(!1, c(s, e));
|
|
148
|
+
}
|
|
149
|
+
return u(e, "resize", t);
|
|
150
|
+
}, [
|
|
151
|
+
z,
|
|
152
|
+
V,
|
|
153
|
+
J,
|
|
154
|
+
G
|
|
155
|
+
]);
|
|
156
|
+
let ve = {
|
|
157
|
+
...Y ? { role: "presentation" } : {
|
|
158
|
+
role: "listbox",
|
|
159
|
+
"aria-multiselectable": ie || void 0,
|
|
160
|
+
"aria-readonly": ae || void 0,
|
|
161
|
+
id: `${fe}-list`
|
|
162
|
+
},
|
|
163
|
+
onKeyDown(e) {
|
|
164
|
+
le && g.has(e.key) && e.stopPropagation();
|
|
165
|
+
},
|
|
166
|
+
onScroll(e) {
|
|
167
|
+
Y || $(e.currentTarget);
|
|
168
|
+
},
|
|
169
|
+
...V && { style: Y ? { height: "100%" } : te },
|
|
170
|
+
className: !Y && V ? T.className : void 0
|
|
171
|
+
}, ye = e("div", t, {
|
|
172
|
+
ref: [n, z.context.popupRef],
|
|
173
|
+
state: _e,
|
|
174
|
+
stateAttributesMapping: M,
|
|
175
|
+
props: [
|
|
176
|
+
he,
|
|
177
|
+
ve,
|
|
178
|
+
w(K),
|
|
179
|
+
R
|
|
180
|
+
]
|
|
181
|
+
});
|
|
182
|
+
return /*#__PURE__*/ j(k.Fragment, { children: [!de && T.getElement(ue), /*#__PURE__*/ A(p, {
|
|
183
|
+
context: oe,
|
|
184
|
+
modal: !1,
|
|
185
|
+
disabled: !me,
|
|
186
|
+
openInteractionType: pe,
|
|
187
|
+
returnFocus: N,
|
|
188
|
+
restoreFocus: !0,
|
|
189
|
+
children: ye
|
|
190
|
+
})] });
|
|
16
191
|
});
|
|
17
|
-
process.env.NODE_ENV !== "production" && (
|
|
192
|
+
process.env.NODE_ENV !== "production" && (N.displayName = "SelectPopup");
|
|
193
|
+
function ne(e) {
|
|
194
|
+
let t = e.maxHeight;
|
|
195
|
+
return t.endsWith("px") && parseFloat(t) || Infinity;
|
|
196
|
+
}
|
|
197
|
+
function P(e) {
|
|
198
|
+
return x(e.scrollHeight, e.clientHeight);
|
|
199
|
+
}
|
|
200
|
+
function F(e) {
|
|
201
|
+
return m.getScale(e);
|
|
202
|
+
}
|
|
203
|
+
function I(e, t, n) {
|
|
204
|
+
return e / n[t];
|
|
205
|
+
}
|
|
206
|
+
function L(e, t) {
|
|
207
|
+
return f({
|
|
208
|
+
x: I(e.x, "x", t),
|
|
209
|
+
y: I(e.y, "y", t),
|
|
210
|
+
width: I(e.width, "x", t),
|
|
211
|
+
height: I(e.height, "y", t)
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
var R = [
|
|
215
|
+
["transform", "none"],
|
|
216
|
+
["scale", "1"],
|
|
217
|
+
["translate", "0 0"]
|
|
218
|
+
];
|
|
219
|
+
function re(e) {
|
|
220
|
+
let { style: t } = e, n = {};
|
|
221
|
+
for (let [e, r] of R) n[e] = t.getPropertyValue(e), t.setProperty(e, r, "important");
|
|
222
|
+
return () => {
|
|
223
|
+
for (let [e] of R) {
|
|
224
|
+
let r = n[e];
|
|
225
|
+
r ? t.setProperty(e, r) : t.removeProperty(e);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
18
229
|
//#endregion
|
|
19
|
-
export {
|
|
230
|
+
export { N as SelectPopup };
|
|
20
231
|
|
|
21
232
|
//# sourceMappingURL=index413.js.map
|
package/dist/index413.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index413.js","names":[],"sources":["../../../node_modules/@base-ui/react/select/group-label/SelectGroupLabel.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useBaseUiId } from \"../../internals/useBaseUiId.mjs\";\nimport { useSelectGroupContext } from \"../group/SelectGroupContext.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\n\n/**\n * An accessible label that is automatically associated with its parent group.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectGroupLabel = /*#__PURE__*/React.forwardRef(function SelectGroupLabel(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n id: idProp,\n ...elementProps\n } = componentProps;\n const {\n setLabelId\n } = useSelectGroupContext();\n const id = useBaseUiId(idProp);\n useIsoLayoutEffect(() => {\n setLabelId(id);\n return () => {\n setLabelId(currentId => currentId === id ? undefined : currentId);\n };\n }, [id, setLabelId]);\n const element = useRenderElement('div', componentProps, {\n ref: forwardedRef,\n props: [{\n id\n }, elementProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") SelectGroupLabel.displayName = \"SelectGroupLabel\";"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAcA,IAAa,IAAgC,gBAAM,WAAW,SAA0B,GAAgB,GAAc;CACpH,IAAM,EACJ,WACA,cACA,UACA,IAAI,GACJ,GAAG,MACD,GACE,EACJ,kBACE,EAAsB,GACpB,IAAK,EAAY,CAAM;CAa7B,OAZA,SACE,EAAW,CAAE,SACA;EACX,GAAW,MAAa,MAAc,IAAK,KAAA,IAAY,CAAS;CAClE,IACC,CAAC,GAAI,CAAU,CAAC,GACH,EAAiB,OAAO,GAAgB;EACtD,KAAK;EACL,OAAO,CAAC,EACN,MACF,GAAG,CAAY;CACjB,CACa;AACf,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAiB,cAAc"}
|
|
1
|
+
{"version":3,"file":"index413.js","names":["React","ownerWindow","SelectPositionerCssVars.transformOrigin","platform.engine.webkit","REASONS.windowResize","floatingPlatform","React$1","stateAttributesMapping","popupStateMapping","transitionStatusMapping","SelectPopup","elementProps","componentProps","store","useSelectRootContext","useSelectRootPropsContext","floatingRootContext","useSelectFloatingContext","useSelectPositionerContext","insideToolbar","useToolbarRootContext","direction","useDirection","useCSPContext","id","open","openMethod","mounted","popupProps","transitionStatus","triggerElement","positionerElement","listElement","reachedMaxHeightRef","initialPlacedRef","originalPositionerStylesRef","scrollArrowFrame","useAnimationFrame","handleScroll","useStableCallback","isTopPositioned","isBottomPositioned","alignItemWithTriggerActive","scroller","scale","getScale","currentHeight","normalizeSize","doc","ownerDocument","win","getWindow","positionerStyles","marginTop","marginBottom","maxPopupHeight","getMaxPopupHeight","maxAvailableHeight","scrollTop","maxScrollTop","getMaxScrollTop","nextScrollTop","setHeight","height","diff","nextHeight","heightDelta","clamp","nextPositionerHeight","target","useOpenChangeComplete","state","useIsoLayoutEffect","clearStyles","popupElement","isPositioned","transformOrigin","restoreTransformStyles","unsetTransformStyles","textElement","valueElement","popupStyles","triggerRect","normalizeRect","positionerRect","triggerHeight","scrollHeight","borderBottom","minHeight","viewportHeight","viewportWidth","availableSpaceBeneathTrigger","textRect","alignedLeft","offsetY","valueRect","valueCenterFromTriggerTop","idealHeight","maxHeight","maxRight","fallbackToAlignPopupToTrigger","isPinchZoomed","webkit","setControlledAlignItemWithTrigger","initialHeight","topOffset","popupTop","popupHeight","textCenterY","clampedY","highlightItemOnHover","handleResize","createChangeEventDetails","windowResize","event","addEventListener","defaultProps","multiple","readOnly","COMPOSITE_KEYS","LIST_FUNCTIONAL_STYLES","styleDisableScrollbar","element","useRenderElement","forwardedRef","getDisabledMountTransitionStyles","disableStyleElements","nonce","FloatingFocusManager","finalFocus","maxHeightStyle","getMaxScrollOffset","platform","size","axis","rectToClientRect","rect","TRANSFORM_STYLE_RESETS","originalStyles","property","value","style","originalValue"],"sources":["../../../node_modules/@base-ui/react/select/popup/SelectPopup.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { rectToClientRect } from '@floating-ui/utils';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { platform } from '@base-ui/utils/platform';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { ownerDocument, ownerWindow } from '@base-ui/utils/owner';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useAnimationFrame } from '@base-ui/utils/useAnimationFrame';\nimport { clamp } from '@base-ui/utils/clamp';\nimport { FloatingFocusManager, platform as floatingPlatform } from \"../../floating-ui-react/index.mjs\";\nimport { useSelectFloatingContext, useSelectRootContext, useSelectRootPropsContext } from \"../root/SelectRootContext.mjs\";\nimport { popupStateMapping } from \"../../utils/popupStateMapping.mjs\";\nimport { useSelectPositionerContext } from \"../positioner/SelectPositionerContext.mjs\";\nimport { styleDisableScrollbar } from \"../../utils/styles.mjs\";\nimport { transitionStatusMapping } from \"../../internals/stateAttributesMapping.mjs\";\nimport { useOpenChangeComplete } from \"../../internals/useOpenChangeComplete.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { clearStyles, LIST_FUNCTIONAL_STYLES } from \"./utils.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { useToolbarRootContext } from \"../../toolbar/root/ToolbarRootContext.mjs\";\nimport { COMPOSITE_KEYS } from \"../../internals/composite/composite.mjs\";\nimport { getDisabledMountTransitionStyles } from \"../../internals/getDisabledMountTransitionStyles.mjs\";\nimport { getMaxScrollOffset, SCROLL_EDGE_TOLERANCE_PX } from \"../../utils/scrollEdges.mjs\";\nimport { useCSPContext } from \"../../internals/csp-context/CSPContext.mjs\";\nimport { useDirection } from \"../../internals/direction-context/DirectionContext.mjs\";\nimport * as SelectPositionerCssVars from \"../positioner/SelectPositionerCssVars.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst stateAttributesMapping = {\n ...popupStateMapping,\n ...transitionStatusMapping\n};\n\n/**\n * A container for the select list.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Select](https://base-ui.com/react/components/select)\n */\nexport const SelectPopup = /*#__PURE__*/React.forwardRef(function SelectPopup(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n finalFocus,\n ...elementProps\n } = componentProps;\n const store = useSelectRootContext();\n const {\n multiple,\n readOnly,\n highlightItemOnHover\n } = useSelectRootPropsContext();\n const floatingRootContext = useSelectFloatingContext();\n const {\n side,\n align,\n alignItemWithTriggerActive,\n isPositioned,\n setControlledAlignItemWithTrigger\n } = useSelectPositionerContext();\n const insideToolbar = useToolbarRootContext(true) != null;\n const direction = useDirection();\n const {\n nonce,\n disableStyleElements\n } = useCSPContext();\n const id = store.useState('id');\n const open = store.useState('open');\n const openMethod = store.useState('openMethod');\n const mounted = store.useState('mounted');\n const popupProps = store.useState('popupProps');\n const transitionStatus = store.useState('transitionStatus');\n const triggerElement = store.useState('triggerElement');\n const positionerElement = store.useState('positionerElement');\n const listElement = store.useState('listElement');\n const reachedMaxHeightRef = React.useRef(false);\n const initialPlacedRef = React.useRef(false);\n const originalPositionerStylesRef = React.useRef({});\n const scrollArrowFrame = useAnimationFrame();\n const handleScroll = useStableCallback(scroller => {\n if (!positionerElement || !store.context.popupRef.current || !initialPlacedRef.current) {\n return;\n }\n const isTopPositioned = positionerElement.style.top === '0px';\n const isBottomPositioned = positionerElement.style.bottom === '0px';\n if (reachedMaxHeightRef.current || !alignItemWithTriggerActive || !isTopPositioned && !isBottomPositioned) {\n store.context.handleScrollArrowVisibility(scroller);\n return;\n }\n const scale = getScale(positionerElement);\n const currentHeight = normalizeSize(positionerElement.getBoundingClientRect().height, 'y', scale);\n const doc = ownerDocument(positionerElement);\n const win = ownerWindow(positionerElement);\n const positionerStyles = win.getComputedStyle(positionerElement);\n const marginTop = parseFloat(positionerStyles.marginTop);\n const marginBottom = parseFloat(positionerStyles.marginBottom);\n const maxPopupHeight = getMaxPopupHeight(win.getComputedStyle(store.context.popupRef.current));\n const maxAvailableHeight = Math.min(doc.documentElement.clientHeight - marginTop - marginBottom, maxPopupHeight);\n const scrollTop = scroller.scrollTop;\n const maxScrollTop = getMaxScrollTop(scroller);\n\n // `Infinity` requests a scroll to the recomputed maximum offset.\n let nextScrollTop = null;\n const setHeight = height => {\n positionerElement.style.height = `${height}px`;\n };\n const diff = isTopPositioned ? maxScrollTop - scrollTop : scrollTop;\n const nextHeight = Math.min(currentHeight + diff, maxAvailableHeight);\n if (diff <= SCROLL_EDGE_TOLERANCE_PX) {\n const heightDelta = clamp(diff, 0, maxAvailableHeight - currentHeight);\n if (heightDelta > 0) {\n // Consume the remaining scroll in height.\n setHeight(currentHeight + heightDelta);\n }\n scroller.scrollTop = isTopPositioned ? maxScrollTop : 0;\n if (maxAvailableHeight - (currentHeight + heightDelta) <= SCROLL_EDGE_TOLERANCE_PX) {\n reachedMaxHeightRef.current = true;\n }\n store.context.handleScrollArrowVisibility(scroller);\n return;\n }\n if (maxAvailableHeight - nextHeight > SCROLL_EDGE_TOLERANCE_PX) {\n nextScrollTop = isTopPositioned ? Infinity : 0;\n } else if (isBottomPositioned && scrollTop < maxScrollTop) {\n const overshoot = currentHeight + diff - maxAvailableHeight;\n nextScrollTop = scrollTop - (diff - overshoot);\n }\n const nextPositionerHeight = Math.ceil(nextHeight);\n if (nextPositionerHeight !== 0) {\n setHeight(nextPositionerHeight);\n }\n if (nextScrollTop != null) {\n // Recompute bounds after resizing (clientHeight likely changed).\n const target = clamp(nextScrollTop, 0, getMaxScrollTop(scroller));\n\n // Avoid adjustments that re-trigger scroll events forever.\n if (Math.abs(scroller.scrollTop - target) > SCROLL_EDGE_TOLERANCE_PX) {\n scroller.scrollTop = target;\n }\n }\n if (nextPositionerHeight >= maxAvailableHeight - SCROLL_EDGE_TOLERANCE_PX) {\n reachedMaxHeightRef.current = true;\n }\n store.context.handleScrollArrowVisibility(scroller);\n });\n React.useImperativeHandle(store.context.scrollHandlerRef, () => handleScroll, [handleScroll]);\n useOpenChangeComplete({\n open,\n ref: store.context.popupRef,\n onComplete() {\n if (open) {\n store.context.onOpenChangeComplete(true);\n }\n }\n });\n const state = {\n open,\n transitionStatus,\n side,\n align\n };\n useIsoLayoutEffect(() => {\n if (!positionerElement || !store.context.popupRef.current || Object.keys(originalPositionerStylesRef.current).length) {\n return;\n }\n originalPositionerStylesRef.current = {\n top: positionerElement.style.top || '0',\n left: positionerElement.style.left || '0',\n right: positionerElement.style.right,\n height: positionerElement.style.height,\n bottom: positionerElement.style.bottom,\n minHeight: positionerElement.style.minHeight,\n maxHeight: positionerElement.style.maxHeight,\n marginTop: positionerElement.style.marginTop,\n marginBottom: positionerElement.style.marginBottom\n };\n }, [store, positionerElement]);\n useIsoLayoutEffect(() => {\n if (open || alignItemWithTriggerActive) {\n return;\n }\n initialPlacedRef.current = false;\n reachedMaxHeightRef.current = false;\n clearStyles(positionerElement, originalPositionerStylesRef.current);\n }, [open, alignItemWithTriggerActive, positionerElement]);\n useIsoLayoutEffect(() => {\n const popupElement = store.context.popupRef.current;\n\n // Wait for Floating UI's first positioning pass before reading DOM geometry.\n // We replace the final coordinates for aligned selects, but still need middleware\n // like `size()` to set CSS variables such as `--anchor-width`.\n if (!open || !triggerElement || !positionerElement || !popupElement || alignItemWithTriggerActive && !isPositioned || store.state.transitionStatus === 'ending') {\n return;\n }\n initialPlacedRef.current = true;\n popupElement.style.removeProperty(SelectPositionerCssVars.transformOrigin);\n if (!alignItemWithTriggerActive) {\n // The wrapper supplies the scroller: the list owns scrolling once it has mounted, and\n // this effect re-runs (cancelling the stale frame) when that happens.\n scrollArrowFrame.request(() => store.context.handleScrollArrowVisibility(listElement || popupElement));\n return;\n }\n\n // Ensure we remove any transforms that can affect the location of the popup\n // and therefore the calculations.\n const restoreTransformStyles = unsetTransformStyles(popupElement);\n try {\n let textElement = store.context.selectedItemTextRef.current;\n if (!textElement?.isConnected) {\n const hasSelectedValue = store.select('hasSelectedValue');\n textElement = !hasSelectedValue && store.context.firstItemTextRef.current?.isConnected ? store.context.firstItemTextRef.current : null;\n }\n const valueElement = store.context.valueRef.current;\n const win = ownerWindow(positionerElement);\n const positionerStyles = win.getComputedStyle(positionerElement);\n const popupStyles = win.getComputedStyle(popupElement);\n const doc = ownerDocument(triggerElement);\n const scale = getScale(triggerElement);\n const triggerRect = normalizeRect(triggerElement.getBoundingClientRect(), scale);\n const positionerRect = normalizeRect(positionerElement.getBoundingClientRect(), scale);\n const triggerHeight = triggerRect.height;\n const scroller = listElement || popupElement;\n const scrollHeight = scroller.scrollHeight;\n const borderBottom = parseFloat(popupStyles.borderBottomWidth);\n // The `|| N` fallbacks cover an unset/`auto` value (parses to `NaN`). Note a literal `0`\n // also resolves to the fallback, so an explicit `margin: 0` or `min-height: 0` still takes\n // the default below.\n const marginTop = parseFloat(positionerStyles.marginTop) || 10;\n const marginBottom = parseFloat(positionerStyles.marginBottom) || 10;\n const minHeight = parseFloat(positionerStyles.minHeight) || 100;\n const maxPopupHeight = getMaxPopupHeight(popupStyles);\n const paddingLeft = 5;\n const paddingRight = 5;\n const triggerCollisionThreshold = 20;\n const viewportHeight = doc.documentElement.clientHeight - marginTop - marginBottom;\n const viewportWidth = doc.documentElement.clientWidth;\n const availableSpaceBeneathTrigger = viewportHeight - triggerRect.bottom + triggerHeight;\n let textRect;\n let alignedLeft = direction === 'rtl' ? triggerRect.right - positionerRect.width : triggerRect.left;\n let offsetY = 0;\n if (textElement && valueElement) {\n const valueRect = normalizeRect(valueElement.getBoundingClientRect(), scale);\n textRect = normalizeRect(textElement.getBoundingClientRect(), scale);\n alignedLeft = positionerRect.left + (direction === 'rtl' ? valueRect.right - textRect.right : valueRect.left - textRect.left);\n const valueCenterFromTriggerTop = valueRect.top - triggerRect.top + valueRect.height / 2;\n const textCenterFromPositionerTop = textRect.top - positionerRect.top + textRect.height / 2;\n offsetY = textCenterFromPositionerTop - valueCenterFromTriggerTop;\n }\n const idealHeight = availableSpaceBeneathTrigger + offsetY + marginBottom + borderBottom;\n let height = Math.min(viewportHeight, idealHeight);\n const maxHeight = viewportHeight - marginTop - marginBottom;\n const scrollTop = idealHeight - height;\n const maxRight = viewportWidth - paddingRight;\n positionerElement.style.left = `${clamp(alignedLeft, paddingLeft, maxRight - positionerRect.width)}px`;\n positionerElement.style.height = `${height}px`;\n // `none` (not the invalid `auto`) so the explicit height governs in align mode and isn't\n // clamped by a `max-height` from user CSS.\n positionerElement.style.maxHeight = 'none';\n positionerElement.style.marginTop = `${marginTop}px`;\n positionerElement.style.marginBottom = `${marginBottom}px`;\n popupElement.style.height = '100%';\n const maxScrollTop = getMaxScrollTop(scroller);\n const isTopPositioned = scrollTop >= maxScrollTop - SCROLL_EDGE_TOLERANCE_PX;\n if (isTopPositioned) {\n height = Math.min(viewportHeight, positionerRect.height) - (scrollTop - maxScrollTop);\n }\n\n // When the trigger is too close to the top or bottom of the viewport, or the minHeight is\n // reached, we fallback to aligning the popup to the trigger as the UX is poor otherwise.\n const fallbackToAlignPopupToTrigger = triggerRect.top < triggerCollisionThreshold || triggerRect.bottom > viewportHeight - triggerCollisionThreshold || Math.ceil(height) + SCROLL_EDGE_TOLERANCE_PX < Math.min(scrollHeight, minHeight);\n\n // Safari doesn't position the popup correctly when pinch-zoomed.\n const isPinchZoomed = (win.visualViewport?.scale ?? 1) !== 1 && platform.engine.webkit;\n if (fallbackToAlignPopupToTrigger || isPinchZoomed) {\n clearStyles(positionerElement, originalPositionerStylesRef.current);\n setControlledAlignItemWithTrigger(false);\n return;\n }\n const initialHeight = Math.max(minHeight, height);\n if (isTopPositioned) {\n const topOffset = Math.max(0, viewportHeight - idealHeight);\n positionerElement.style.top = positionerRect.height >= maxHeight ? '0' : `${topOffset}px`;\n positionerElement.style.height = `${height}px`;\n scroller.scrollTop = getMaxScrollTop(scroller);\n } else {\n positionerElement.style.bottom = '0';\n scroller.scrollTop = scrollTop;\n }\n if (textRect) {\n const popupTop = positionerRect.top;\n const popupHeight = positionerRect.height;\n const textCenterY = textRect.top + textRect.height / 2;\n const clampedY = clamp(popupHeight > 0 ? (textCenterY - popupTop) / popupHeight * 100 : 50, 0, 100);\n popupElement.style.setProperty(SelectPositionerCssVars.transformOrigin, `50% ${clampedY}%`);\n }\n if (initialHeight === viewportHeight || height >= maxPopupHeight) {\n reachedMaxHeightRef.current = true;\n }\n store.context.handleScrollArrowVisibility(scroller);\n if (highlightItemOnHover && store.state.selectedIndex === null && store.state.activeIndex === null && store.context.listRef.current[0] != null) {\n store.set('activeIndex', 0);\n }\n } finally {\n restoreTransformStyles();\n }\n }, [store, open, positionerElement, triggerElement, alignItemWithTriggerActive, setControlledAlignItemWithTrigger, scrollArrowFrame, listElement, highlightItemOnHover, direction, isPositioned]);\n React.useEffect(() => {\n if (!alignItemWithTriggerActive || !positionerElement || !open) {\n return undefined;\n }\n const win = ownerWindow(positionerElement);\n function handleResize(event) {\n store.context.setOpen(false, createChangeEventDetails(REASONS.windowResize, event));\n }\n return addEventListener(win, 'resize', handleResize);\n }, [store, alignItemWithTriggerActive, positionerElement, open]);\n const defaultProps = {\n ...(listElement ? {\n role: 'presentation'\n } : {\n role: 'listbox',\n 'aria-multiselectable': multiple || undefined,\n 'aria-readonly': readOnly || undefined,\n id: `${id}-list`\n }),\n onKeyDown(event) {\n if (insideToolbar && COMPOSITE_KEYS.has(event.key)) {\n event.stopPropagation();\n }\n },\n onScroll(event) {\n if (listElement) {\n return;\n }\n handleScroll(event.currentTarget);\n },\n ...(alignItemWithTriggerActive && {\n style: listElement ? {\n height: '100%'\n } : LIST_FUNCTIONAL_STYLES\n }),\n className: !listElement && alignItemWithTriggerActive ? styleDisableScrollbar.className : undefined\n };\n const element = useRenderElement('div', componentProps, {\n ref: [forwardedRef, store.context.popupRef],\n state,\n stateAttributesMapping,\n props: [popupProps, defaultProps, getDisabledMountTransitionStyles(transitionStatus), elementProps]\n });\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [!disableStyleElements && styleDisableScrollbar.getElement(nonce), /*#__PURE__*/_jsx(FloatingFocusManager, {\n context: floatingRootContext,\n modal: false,\n disabled: !mounted,\n openInteractionType: openMethod,\n returnFocus: finalFocus,\n restoreFocus: true,\n children: element\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectPopup.displayName = \"SelectPopup\";\nfunction getMaxPopupHeight(popupStyles) {\n const maxHeightStyle = popupStyles.maxHeight;\n return maxHeightStyle.endsWith('px') ? parseFloat(maxHeightStyle) || Infinity : Infinity;\n}\nfunction getMaxScrollTop(scroller) {\n return getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);\n}\nfunction getScale(element) {\n // The platform API is async-capable, but the DOM platform returns a plain scale object.\n return floatingPlatform.getScale(element);\n}\nfunction normalizeSize(size, axis, scale) {\n return size / scale[axis];\n}\nfunction normalizeRect(rect, scale) {\n return rectToClientRect({\n x: normalizeSize(rect.x, 'x', scale),\n y: normalizeSize(rect.y, 'y', scale),\n width: normalizeSize(rect.width, 'x', scale),\n height: normalizeSize(rect.height, 'y', scale)\n });\n}\nconst TRANSFORM_STYLE_RESETS = [['transform', 'none'], ['scale', '1'], ['translate', '0 0']];\nfunction unsetTransformStyles(popupElement) {\n const {\n style\n } = popupElement;\n const originalStyles = {};\n for (const [property, value] of TRANSFORM_STYLE_RESETS) {\n originalStyles[property] = style.getPropertyValue(property);\n style.setProperty(property, value, 'important');\n }\n return () => {\n for (const [property] of TRANSFORM_STYLE_RESETS) {\n const originalValue = originalStyles[property];\n if (originalValue) {\n style.setProperty(property, originalValue);\n } else {\n style.removeProperty(property);\n }\n }\n };\n}"],"ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,IAAMO,IAAyB;CAC7B,GAAGC;CACH,GAAGC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QAAQG,EAAcyF,EAAK,QAAQ,KAAK5F,CAAK;CAC/C,CAAC;AACH;AACA,IAAM6F,IAAyB;CAAC,CAAC,aAAa,MAAM;CAAG,CAAC,SAAS,GAAG;CAAG,CAAC,aAAa,KAAK;AAAC;AAC3F,SAAS3D,GAAqB,GAAc;CAC1C,IAAM,EACJ,aACEJ,GACEgE,IAAiB,CAAC;CACxB,KAAK,IAAM,CAACC,GAAUC,MAAUH,GAE9B,AADA,EAAeE,KAAYE,EAAM,iBAAiBF,CAAQ,GAC1DE,EAAM,YAAYF,GAAUC,GAAO,WAAW;CAEhD,aAAa;EACX,KAAK,IAAM,CAACD,MAAaF,GAAwB;GAC/C,IAAMK,IAAgBJ,EAAeC;GACrC,AAAIG,IACFD,EAAM,YAAYF,GAAUG,CAAa,IAEzCD,EAAM,eAAeF,CAAQ;EAEjC;CACF;AACF"}
|
package/dist/index414.js
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useRenderElement as e } from "./
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { useRenderElement as e } from "./index197.js";
|
|
3
|
+
import { useSelectRootContext as t, useSelectRootPropsContext as n } from "./index372.js";
|
|
4
|
+
import { useSelectPositionerContext as r } from "./index403.js";
|
|
5
|
+
import { LIST_FUNCTIONAL_STYLES as i } from "./index404.js";
|
|
6
|
+
import { styleDisableScrollbar as a } from "./index409.js";
|
|
7
|
+
import * as o from "react";
|
|
8
|
+
//#region ../../node_modules/@base-ui/react/select/list/SelectList.mjs
|
|
9
|
+
var s = /*#__PURE__*/ o.forwardRef(function(o, s) {
|
|
10
|
+
let { render: c, className: l, style: u, ...d } = o, f = t(), { multiple: p, readOnly: m } = n(), { alignItemWithTriggerActive: h } = r(), g = f.useState("hasScrollArrows"), _ = f.useState("openMethod"), v = {
|
|
11
|
+
id: `${f.useState("id")}-list`,
|
|
12
|
+
role: "listbox",
|
|
13
|
+
"aria-multiselectable": p || void 0,
|
|
14
|
+
"aria-readonly": m || void 0,
|
|
15
|
+
onScroll(e) {
|
|
16
|
+
f.context.scrollHandlerRef.current?.(e.currentTarget);
|
|
17
|
+
},
|
|
18
|
+
...h && { style: i },
|
|
19
|
+
className: g && _ !== "touch" ? a.className : void 0
|
|
20
|
+
}, y = f.useStateSetter("listElement");
|
|
21
|
+
return e("div", o, {
|
|
22
|
+
ref: [s, y],
|
|
23
|
+
props: [v, d]
|
|
11
24
|
});
|
|
12
25
|
});
|
|
13
|
-
process.env.NODE_ENV !== "production" && (
|
|
26
|
+
process.env.NODE_ENV !== "production" && (s.displayName = "SelectList");
|
|
14
27
|
//#endregion
|
|
15
|
-
export {
|
|
28
|
+
export { s as SelectList };
|
|
16
29
|
|
|
17
30
|
//# sourceMappingURL=index414.js.map
|
package/dist/index414.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index414.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index414.js","names":["React$1","SelectList","elementProps","componentProps","store","useSelectRootContext","useSelectRootPropsContext","useSelectPositionerContext","hasScrollArrows","openMethod","defaultProps","multiple","readOnly","event","alignItemWithTriggerActive","LIST_FUNCTIONAL_STYLES","styleDisableScrollbar","setListElement","useRenderElement","forwardedRef"],"sources":["../../../node_modules/@base-ui/react/select/list/SelectList.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useSelectRootContext, useSelectRootPropsContext } 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\";\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 store = useSelectRootContext();\n const {\n multiple,\n readOnly\n } = useSelectRootPropsContext();\n const {\n alignItemWithTriggerActive\n } = useSelectPositionerContext();\n const hasScrollArrows = store.useState('hasScrollArrows');\n const openMethod = store.useState('openMethod');\n const id = store.useState('id');\n const defaultProps = {\n id: `${id}-list`,\n role: 'listbox',\n 'aria-multiselectable': multiple || undefined,\n 'aria-readonly': readOnly || undefined,\n onScroll(event) {\n store.context.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 = store.useStateSetter('listElement');\n return useRenderElement('div', componentProps, {\n ref: [forwardedRef, setListElement],\n props: [defaultProps, elementProps]\n });\n});\nif (process.env.NODE_ENV !== \"production\") SelectList.displayName = \"SelectList\";"],"ignoreList":[0],"mappings":";;;;;;;;AAeA,IAAaC,IAA0B,gBAAM,WAAW,SAAoB,GAAgB,GAAc;CACxG,IAAM,EACJ,WACA,cACA,UACA,GAAGC,MACDC,GACEC,IAAQC,EAAqB,GAC7B,EACJ,aACA,gBACEC,EAA0B,GACxB,EACJ,kCACEC,EAA2B,GACzBC,IAAkBJ,EAAM,SAAS,iBAAiB,GAClDK,IAAaL,EAAM,SAAS,YAAY,GAExCM,IAAe;EACnB,IAAI,GAFKN,EAAM,SAAS,IAEhB,EAAE;EACV,MAAM;EACN,wBAAwBO,KAAY,KAAA;EACpC,iBAAiBC,KAAY,KAAA;EAC7B,SAAS,GAAO;GACd,EAAM,QAAQ,iBAAiB,UAAUC,EAAM,aAAa;EAC9D;EACA,GAAIC,KAA8B,EAChC,OAAOC,EACT;EACA,WAAWP,KAAmBC,MAAe,UAAUO,EAAsB,YAAY,KAAA;CAC3F,GACMC,IAAiBb,EAAM,eAAe,aAAa;CACzD,OAAOc,EAAiB,OAAOf,GAAgB;EAC7C,KAAK,CAACgB,GAAcF,CAAc;EAClC,OAAO,CAACP,GAAcR,CAAY;CACpC,CAAC;AACH,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAW,cAAc"}
|
package/dist/index415.js
CHANGED
|
@@ -1,8 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { useIsoLayoutEffect as e } from "./index208.js";
|
|
3
|
+
import { useCompositeListContext as t } from "./index395.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
//#region ../../node_modules/@base-ui/react/internals/composite/list/useCompositeListItem.mjs
|
|
6
|
+
function r(r = {}) {
|
|
7
|
+
let { guess: i, label: a, metadata: o, textRef: s, index: c } = r, { register: l, unregister: u, subscribeMapChange: d, nextIndexRef: f } = t(), p = n.useRef(-1), [m, h] = n.useState(c == null && i ? () => {
|
|
8
|
+
if (p.current === -1) {
|
|
9
|
+
let e = f.current;
|
|
10
|
+
f.current += 1, p.current = e;
|
|
11
|
+
}
|
|
12
|
+
return p.current;
|
|
13
|
+
} : -1), g = c ?? m, _ = n.useRef(null), v = n.useCallback((e) => {
|
|
14
|
+
let t = _.current;
|
|
15
|
+
t && u(t), _.current = e, e && l(e, {
|
|
16
|
+
metadata: o ?? null,
|
|
17
|
+
index: c ?? null,
|
|
18
|
+
label: a,
|
|
19
|
+
textRef: s
|
|
20
|
+
});
|
|
21
|
+
}, [
|
|
22
|
+
c,
|
|
23
|
+
l,
|
|
24
|
+
u,
|
|
25
|
+
o,
|
|
26
|
+
a,
|
|
27
|
+
s
|
|
28
|
+
]);
|
|
29
|
+
return e(() => {
|
|
30
|
+
if (c == null) return d((e) => {
|
|
31
|
+
let t = _.current ? e.get(_.current)?.index : null;
|
|
32
|
+
t != null && h(t);
|
|
33
|
+
});
|
|
34
|
+
}, [c, d]), {
|
|
35
|
+
ref: v,
|
|
36
|
+
index: g
|
|
37
|
+
};
|
|
38
|
+
}
|
|
5
39
|
//#endregion
|
|
6
|
-
export {
|
|
40
|
+
export { r as useCompositeListItem };
|
|
7
41
|
|
|
8
42
|
//# sourceMappingURL=index415.js.map
|
package/dist/index415.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index415.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index415.js","names":["React","React$1","useCompositeListItem","externalIndex","params","useCompositeListContext","indexRef","internalIndex","setInternalIndex","guess","newIndex","nextIndexRef","index","componentRef","ref","previousNode","unregister","node","register","metadata","label","textRef","useIsoLayoutEffect","subscribeMapChange","i","map"],"sources":["../../../node_modules/@base-ui/react/internals/composite/list/useCompositeListItem.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useCompositeListContext } from \"./CompositeListContext.mjs\";\n/**\n * Used to register a list item and its index (DOM position) in the `CompositeList`.\n */\nexport function useCompositeListItem(params = {}) {\n const {\n guess,\n label,\n metadata,\n textRef,\n index: externalIndex\n } = params;\n const {\n register,\n unregister,\n subscribeMapChange,\n nextIndexRef\n } = useCompositeListContext();\n\n // Guess the index from the render order. This avoids a re-render after mount for\n // flat lists rendered in DOM order; when the guess is wrong (grouped or out-of-order\n // rendering), the commit flush corrects it before paint.\n const indexRef = React.useRef(-1);\n const [internalIndex, setInternalIndex] = React.useState(externalIndex == null && guess ? () => {\n if (indexRef.current === -1) {\n const newIndex = nextIndexRef.current;\n nextIndexRef.current += 1;\n indexRef.current = newIndex;\n }\n return indexRef.current;\n } : -1);\n const index = externalIndex ?? internalIndex;\n const componentRef = React.useRef(null);\n\n // Deliberately identity-sensitive: nested items sharing one DOM node rely on ref attachment\n // order to decide which registration wins, and republishing from an effect instead would let\n // an inner item's later update silently take ownership from the outer one.\n const ref = React.useCallback(node => {\n const previousNode = componentRef.current;\n if (previousNode) {\n unregister(previousNode);\n }\n componentRef.current = node;\n if (node) {\n register(node, {\n metadata: metadata ?? null,\n index: externalIndex ?? null,\n label,\n textRef\n });\n }\n }, [externalIndex, register, unregister, metadata, label, textRef]);\n useIsoLayoutEffect(() => {\n if (externalIndex != null) {\n return undefined;\n }\n return subscribeMapChange(map => {\n const i = componentRef.current ? map.get(componentRef.current)?.index : null;\n if (i != null) {\n setInternalIndex(i);\n }\n });\n }, [externalIndex, subscribeMapChange]);\n return {\n ref,\n index\n };\n}"],"ignoreList":[0],"mappings":";;;;;AAQA,SAAgBE,EAAqB,IAAS,CAAC,GAAG;CAChD,IAAM,EACJ,UACA,UACA,aACA,YACA,OAAOC,MACLC,GACE,EACJ,aACA,eACA,uBACA,oBACEC,EAAwB,GAKtBC,IAAWN,EAAM,OAAO,EAAE,GAC1B,CAACO,GAAeC,KAAoBR,EAAM,SAASG,KAAiB,QAAQM,UAAc;EAC9F,IAAIH,EAAS,YAAY,IAAI;GAC3B,IAAMI,IAAWC,EAAa;GAE9B,AADA,EAAa,WAAW,GACxB,EAAS,UAAUD;EACrB;EACA,OAAOJ,EAAS;CAClB,IAAI,EAAE,GACAM,IAAQT,KAAiBI,GACzBM,IAAeb,EAAM,OAAO,IAAI,GAKhCc,IAAMd,EAAM,aAAY,MAAQ;EACpC,IAAMe,IAAeF,EAAa;EAKlC,AAJIE,KACFC,EAAWD,CAAY,GAEzB,EAAa,UAAUE,GACnBA,KACFC,EAASD,GAAM;GACb,UAAUE,KAAY;GACtB,OAAOhB,KAAiB;GACxB;GACA;EACF,CAAC;CAEL,GAAG;EAACA;EAAee;EAAUF;EAAYG;EAAUC;EAAOC;CAAO,CAAC;CAYlE,OAXAC,QAAyB;EACvB,IAAInB,KAAiB,MAGrB,OAAOoB,GAAmB,MAAO;GAC/B,IAAMC,IAAIX,EAAa,UAAUY,EAAI,IAAIZ,EAAa,OAAO,CAAC,EAAE,QAAQ;GACxE,AAAIW,KAAK,QACPhB,EAAiBgB,CAAC;EAEtB,CAAC;CACH,GAAG,CAACrB,GAAeoB,CAAkB,CAAC,GAC/B;EACL;EACA;CACF;AACF"}
|