@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/index388.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
register: () => {},
|
|
6
|
-
unregister: () => {},
|
|
7
|
-
subscribeMapChange: () => () => {},
|
|
8
|
-
nextIndexRef: { current: 0 }
|
|
9
|
-
});
|
|
10
|
-
process.env.NODE_ENV !== "production" && (t.displayName = "CompositeListContext");
|
|
11
|
-
function n() {
|
|
12
|
-
return e.useContext(t);
|
|
2
|
+
//#region ../../node_modules/@base-ui/react/utils/resolveAriaLabelledBy.mjs
|
|
3
|
+
function e(e, t) {
|
|
4
|
+
return e ?? t;
|
|
13
5
|
}
|
|
14
6
|
//#endregion
|
|
15
|
-
export {
|
|
7
|
+
export { e as resolveAriaLabelledBy };
|
|
16
8
|
|
|
17
9
|
//# sourceMappingURL=index388.js.map
|
package/dist/index388.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index388.js","names":["
|
|
1
|
+
{"version":3,"file":"index388.js","names":["resolveAriaLabelledBy","fieldLabelId","localLabelId"],"sources":["../../../node_modules/@base-ui/react/utils/resolveAriaLabelledBy.mjs"],"sourcesContent":["'use client';\n\nexport function getDefaultLabelId(id) {\n return id == null ? undefined : `${id}-label`;\n}\nexport function resolveAriaLabelledBy(fieldLabelId, localLabelId) {\n return fieldLabelId ?? localLabelId;\n}"],"ignoreList":[0],"mappings":";;AAKA,SAAgBA,EAAsB,GAAc,GAAc;CAChE,OAAOC,KAAgBC;AACzB"}
|
package/dist/index389.js
CHANGED
|
@@ -1,117 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//#region ../../node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs
|
|
9
|
-
function o(o) {
|
|
10
|
-
let { children: p, elementsRef: m, labelsRef: h, onMapChange: g } = o, _ = t(g), [, v] = i.useState(!1), y = e(c).current, b = e(s).current, x = i.useRef(0), S = i.useRef(!0), C = i.useRef([]), w = i.useRef(null), T = t(() => {
|
|
11
|
-
S.current || (S.current = !0, v((e) => !e));
|
|
12
|
-
}), E = t((e, t) => {
|
|
13
|
-
b.set(e, t), T();
|
|
14
|
-
}), D = t((e) => {
|
|
15
|
-
b.delete(e), T();
|
|
16
|
-
}), O = t((e) => {
|
|
17
|
-
let t = /* @__PURE__ */ new Map();
|
|
18
|
-
return m.current.length = 0, h && (h.current.length = 0), e.forEach((e) => {
|
|
19
|
-
t.set(e.element, {
|
|
20
|
-
...e.registration.metadata ?? {},
|
|
21
|
-
index: e.index
|
|
22
|
-
}), m.current[e.index] = e.element, h && (h.current[e.index] = e.registration.label === void 0 ? e.registration.textRef?.current?.textContent ?? e.element.textContent : e.registration.label);
|
|
23
|
-
}), x.current = m.current.length, t;
|
|
24
|
-
});
|
|
25
|
-
function k(e) {
|
|
26
|
-
if (w.current?.disconnect(), w.current = null, typeof MutationObserver != "function" || e.length < 2) return;
|
|
27
|
-
let t = new MutationObserver((n) => {
|
|
28
|
-
if (!d(n)) return;
|
|
29
|
-
let r = null;
|
|
30
|
-
for (let n of e) if (n.isConnected) {
|
|
31
|
-
if (r && f(r, n) > 0) {
|
|
32
|
-
t.disconnect(), T();
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
r = n;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
w.current = t;
|
|
39
|
-
let n = /* @__PURE__ */ new Set();
|
|
40
|
-
for (let t = 1; t < e.length; t += 1) {
|
|
41
|
-
let r = u(e[t - 1], e[t]);
|
|
42
|
-
r && n.add(r);
|
|
43
|
-
}
|
|
44
|
-
n.forEach((e) => t.observe(e, { childList: !0 }));
|
|
45
|
-
}
|
|
46
|
-
let A = t(() => {
|
|
47
|
-
let [e, t] = l(b), n = O(e);
|
|
48
|
-
k(t), C.current = e, S.current = !1, y.forEach((e) => e(n)), _(n);
|
|
49
|
-
});
|
|
50
|
-
n(() => (S.current || O(C.current), () => {
|
|
51
|
-
m.current = [], h && (h.current = []);
|
|
52
|
-
}), [
|
|
53
|
-
m,
|
|
54
|
-
h,
|
|
55
|
-
O
|
|
56
|
-
]), n(() => {
|
|
57
|
-
S.current && A();
|
|
58
|
-
}), n(() => () => {
|
|
59
|
-
w.current?.disconnect(), S.current = !0;
|
|
60
|
-
}, []);
|
|
61
|
-
let j = t((e) => (y.add(e), () => {
|
|
62
|
-
y.delete(e);
|
|
63
|
-
})), M = i.useMemo(() => ({
|
|
64
|
-
register: E,
|
|
65
|
-
unregister: D,
|
|
66
|
-
subscribeMapChange: j,
|
|
67
|
-
nextIndexRef: x
|
|
68
|
-
}), [
|
|
69
|
-
E,
|
|
70
|
-
D,
|
|
71
|
-
j,
|
|
72
|
-
x
|
|
73
|
-
]);
|
|
74
|
-
return /*#__PURE__*/ a(r.Provider, {
|
|
75
|
-
value: M,
|
|
76
|
-
children: p
|
|
77
|
-
});
|
|
1
|
+
import { getWindow as e } from "./index204.js";
|
|
2
|
+
import { jsdom as t } from "./index226.js";
|
|
3
|
+
//#region ../../node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs
|
|
4
|
+
var n = 5;
|
|
5
|
+
function r(e, t) {
|
|
6
|
+
let r = i(t);
|
|
7
|
+
return e.clientX >= r.left - n && e.clientX <= r.right + n && e.clientY >= r.top - n && e.clientY <= r.bottom + n;
|
|
78
8
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
element: i,
|
|
92
|
-
registration: e
|
|
93
|
-
};
|
|
94
|
-
a === null ? r.push(o) : a >= 0 && (t.add(a), n.push(o));
|
|
95
|
-
});
|
|
96
|
-
let i = 0;
|
|
97
|
-
return r.sort((e, t) => f(e.element, t.element)), r.forEach((e) => {
|
|
98
|
-
for (; t.has(i);) i += 1;
|
|
99
|
-
e.index = i, n.push(e), i += 1;
|
|
100
|
-
}), t.size > 0 && n.sort((e, t) => e.index - t.index), [n, r.map((e) => e.element)];
|
|
101
|
-
}
|
|
102
|
-
function u(e, t) {
|
|
103
|
-
let n = e.parentElement;
|
|
104
|
-
for (; n && !n.contains(t);) n = n.parentElement;
|
|
105
|
-
return n;
|
|
106
|
-
}
|
|
107
|
-
function d(e) {
|
|
108
|
-
for (let t of e) for (let e = 0; e < t.removedNodes.length; e += 1) if (t.removedNodes[e].isConnected) return !0;
|
|
109
|
-
return !1;
|
|
110
|
-
}
|
|
111
|
-
function f(e, t) {
|
|
112
|
-
return e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
9
|
+
function i(n) {
|
|
10
|
+
let r = n.getBoundingClientRect(), i = e(n);
|
|
11
|
+
if (t) return r;
|
|
12
|
+
let a = i.getComputedStyle(n, "::before"), o = i.getComputedStyle(n, "::after");
|
|
13
|
+
if (a.content === "none" && o.content === "none") return r;
|
|
14
|
+
let s = parseFloat(a.width) || 0, c = parseFloat(a.height) || 0, l = parseFloat(o.width) || 0, u = parseFloat(o.height) || 0, d = Math.max(r.width, s, l), f = Math.max(r.height, c, u), p = d - r.width, m = f - r.height;
|
|
15
|
+
return {
|
|
16
|
+
left: r.left - p / 2,
|
|
17
|
+
right: r.right + p / 2,
|
|
18
|
+
top: r.top - m / 2,
|
|
19
|
+
bottom: r.bottom + m / 2
|
|
20
|
+
};
|
|
113
21
|
}
|
|
114
22
|
//#endregion
|
|
115
|
-
export {
|
|
23
|
+
export { i as getPseudoElementBounds, r as isMouseWithinBounds };
|
|
116
24
|
|
|
117
25
|
//# sourceMappingURL=index389.js.map
|
package/dist/index389.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index389.js","names":["React"],"sources":["../../../node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs"],"sourcesContent":["/* eslint-disable no-bitwise */\n'use client';\n\nimport * as React from 'react';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { CompositeListContext } from \"./CompositeListContext.mjs\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Provides context for a list of items in a composite component.\n */\nexport function CompositeList(props) {\n const {\n children,\n elementsRef,\n labelsRef,\n onMapChange: onMapChangeProp\n } = props;\n const onMapChange = useStableCallback(onMapChangeProp);\n const [, setMapTick] = React.useState(false);\n const listeners = useRefWithInit(createListeners).current;\n const map = useRefWithInit(createMap).current;\n const nextIndexRef = React.useRef(0);\n const isDirtyRef = React.useRef(true);\n const itemsRef = React.useRef([]);\n const mutationObserverRef = React.useRef(null);\n\n // Item effects can run without their parent rendering. Schedule one synchronous\n // parent update for the whole commit so refs are rebuilt before paint and while\n // the originating React event is still inside `act()` in tests.\n const scheduleMapUpdate = useStableCallback(() => {\n if (isDirtyRef.current) {\n return;\n }\n isDirtyRef.current = true;\n setMapTick(tick => !tick);\n });\n const register = useStableCallback((node, registration) => {\n map.set(node, registration);\n scheduleMapUpdate();\n });\n const unregister = useStableCallback(node => {\n map.delete(node);\n scheduleMapUpdate();\n });\n const syncRefs = useStableCallback(items => {\n const nextMap = new Map();\n elementsRef.current.length = 0;\n if (labelsRef) {\n labelsRef.current.length = 0;\n }\n items.forEach(item => {\n nextMap.set(item.element, {\n ...(item.registration.metadata ?? {}),\n index: item.index\n });\n elementsRef.current[item.index] = item.element;\n if (labelsRef) {\n labelsRef.current[item.index] = item.registration.label !== undefined ? item.registration.label : item.registration.textRef?.current?.textContent ?? item.element.textContent;\n }\n });\n nextIndexRef.current = elementsRef.current.length;\n return nextMap;\n });\n function observe(sortedNodes) {\n mutationObserverRef.current?.disconnect();\n mutationObserverRef.current = null;\n\n // A single item can't reorder.\n if (typeof MutationObserver !== 'function' || sortedNodes.length < 2) {\n return;\n }\n const mutationObserver = new MutationObserver(entries => {\n // Only verify the order after a move: a node that was removed and later\n // re-added within the same batch. Additions and removals alone can't\n // change the relative order of the remaining items, and items that mount\n // or unmount re-sort through `register`/`unregister`.\n if (!hasMovedNode(entries)) {\n return;\n }\n let previousConnectedNode = null;\n\n // If any connected node now appears before the previous connected node,\n // wrappers/items moved and the index map needs to be rebuilt.\n for (const node of sortedNodes) {\n if (!node.isConnected) {\n continue;\n }\n if (previousConnectedNode && sortByDocumentPosition(previousConnectedNode, node) > 0) {\n mutationObserver.disconnect();\n scheduleMapUpdate();\n return;\n }\n previousConnectedNode = node;\n }\n });\n mutationObserverRef.current = mutationObserver;\n\n // A reorder that changes item indexes must invert at least one adjacent pair\n // from the previous sorted order. Observing each pair's common parent catches\n // both direct item moves and ancestor wrapper moves at the boundary.\n const roots = new Set();\n for (let i = 1; i < sortedNodes.length; i += 1) {\n const root = getCommonAncestor(sortedNodes[i - 1], sortedNodes[i]);\n if (root) {\n roots.add(root);\n }\n }\n roots.forEach(root => mutationObserver.observe(root, {\n childList: true\n }));\n }\n const flush = useStableCallback(() => {\n const [items, automaticNodes] = getCompositeListSnapshot(map);\n const nextMap = syncRefs(items);\n observe(automaticNodes);\n itemsRef.current = items;\n isDirtyRef.current = false;\n listeners.forEach(listener => listener(nextMap));\n onMapChange(nextMap);\n });\n useIsoLayoutEffect(() => {\n // Re-copy the last committed snapshot when the ref objects change or Strict Mode replays\n // effects without reattaching callback refs.\n if (!isDirtyRef.current) {\n syncRefs(itemsRef.current);\n }\n return () => {\n elementsRef.current = [];\n if (labelsRef) {\n labelsRef.current = [];\n }\n };\n }, [elementsRef, labelsRef, syncRefs]);\n useIsoLayoutEffect(() => {\n if (isDirtyRef.current) {\n flush();\n }\n });\n useIsoLayoutEffect(() => {\n return () => {\n mutationObserverRef.current?.disconnect();\n // React 18 Strict Mode replays effects without replaying callback refs.\n // Mark the retained map dirty so the replay rebuilds refs and observation.\n isDirtyRef.current = true;\n };\n }, []);\n const subscribeMapChange = useStableCallback(fn => {\n listeners.add(fn);\n return () => {\n listeners.delete(fn);\n };\n });\n const contextValue = React.useMemo(() => ({\n register,\n unregister,\n subscribeMapChange,\n nextIndexRef\n }), [register, unregister, subscribeMapChange, nextIndexRef]);\n return /*#__PURE__*/_jsx(CompositeListContext.Provider, {\n value: contextValue,\n children: children\n });\n}\nfunction createMap() {\n return new Map();\n}\nfunction createListeners() {\n return new Set();\n}\nfunction getCompositeListSnapshot(map) {\n const reservedIndices = new Set();\n const items = [];\n const automaticItems = [];\n map.forEach((registration, node) => {\n if (!node.isConnected) {\n return;\n }\n const index = registration.index;\n const item = {\n index: index ?? -1,\n element: node,\n registration\n };\n if (index === null) {\n automaticItems.push(item);\n } else if (index >= 0) {\n reservedIndices.add(index);\n items.push(item);\n }\n });\n let nextAutomaticIndex = 0;\n automaticItems.sort((a, b) => sortByDocumentPosition(a.element, b.element));\n automaticItems.forEach(item => {\n while (reservedIndices.has(nextAutomaticIndex)) {\n nextAutomaticIndex += 1;\n }\n item.index = nextAutomaticIndex;\n items.push(item);\n nextAutomaticIndex += 1;\n });\n if (reservedIndices.size > 0) {\n items.sort((a, b) => a.index - b.index);\n }\n return [items, automaticItems.map(item => item.element)];\n}\nfunction getCommonAncestor(firstNode, lastNode) {\n let ancestor = firstNode.parentElement;\n\n // The `parentElement` walk cannot cross shadow boundaries, so the native\n // `contains` is sufficient here.\n while (ancestor && !ancestor.contains(lastNode)) {\n ancestor = ancestor.parentElement;\n }\n return ancestor;\n}\nfunction hasMovedNode(entries) {\n for (const entry of entries) {\n for (let i = 0; i < entry.removedNodes.length; i += 1) {\n if (entry.removedNodes[i].isConnected) {\n return true;\n }\n }\n }\n return false;\n}\nfunction sortByDocumentPosition(a, b) {\n // `DOCUMENT_POSITION_CONTAINED_BY` is always reported alongside `FOLLOWING`, and `CONTAINS`\n // alongside `PRECEDING`, so testing `FOLLOWING` alone orders siblings and nested items alike.\n return a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;\n}"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index389.js","names":["ownerWindow","platform.env.jsdom","BOUNDARY_OFFSET","isMouseWithinBounds","bounds","getPseudoElementBounds","element","event","elementRect","win","getWindow","jsdom","beforeStyles","afterStyles","beforeWidth","beforeHeight","afterWidth","afterHeight","totalWidth","totalHeight","widthDiff","heightDiff"],"sources":["../../../node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs"],"sourcesContent":["import { ownerWindow } from '@base-ui/utils/owner';\nimport { platform } from '@base-ui/utils/platform';\n// Tolerance around the element bounds so a fast click whose pointer drifts slightly\n// during press-release isn't mistaken for a drag-off-and-release cancellation.\n// Matches typical OS/browser drag-initiation thresholds.\nconst BOUNDARY_OFFSET = 5;\n\n/**\n * Determines if a mouse event occurred within the bounds of an element\n * (including its pseudo-elements), with a small tolerance for pointer drift.\n */\nexport function isMouseWithinBounds(event, element) {\n const bounds = getPseudoElementBounds(element);\n return event.clientX >= bounds.left - BOUNDARY_OFFSET && event.clientX <= bounds.right + BOUNDARY_OFFSET && event.clientY >= bounds.top - BOUNDARY_OFFSET && event.clientY <= bounds.bottom + BOUNDARY_OFFSET;\n}\nexport function getPseudoElementBounds(element) {\n const elementRect = element.getBoundingClientRect();\n const win = ownerWindow(element);\n\n // Avoid \"Not implemented: window.getComputedStyle(elt, pseudoElt)\" in jsdom.\n if (platform.env.jsdom) {\n return elementRect;\n }\n const beforeStyles = win.getComputedStyle(element, '::before');\n const afterStyles = win.getComputedStyle(element, '::after');\n const hasPseudoElements = beforeStyles.content !== 'none' || afterStyles.content !== 'none';\n if (!hasPseudoElements) {\n return elementRect;\n }\n\n // Get dimensions of pseudo-elements\n const beforeWidth = parseFloat(beforeStyles.width) || 0;\n const beforeHeight = parseFloat(beforeStyles.height) || 0;\n const afterWidth = parseFloat(afterStyles.width) || 0;\n const afterHeight = parseFloat(afterStyles.height) || 0;\n\n // Calculate max dimensions including pseudo-elements\n const totalWidth = Math.max(elementRect.width, beforeWidth, afterWidth);\n const totalHeight = Math.max(elementRect.height, beforeHeight, afterHeight);\n\n // Calculate the differences to extend the bounds\n const widthDiff = totalWidth - elementRect.width;\n const heightDiff = totalHeight - elementRect.height;\n return {\n left: elementRect.left - widthDiff / 2,\n right: elementRect.right + widthDiff / 2,\n top: elementRect.top - heightDiff / 2,\n bottom: elementRect.bottom + heightDiff / 2\n };\n}"],"ignoreList":[0],"mappings":";;;AAKA,IAAME,IAAkB;AAMxB,SAAgBC,EAAoB,GAAO,GAAS;CAClD,IAAMC,IAASC,EAAuBC,CAAO;CAC7C,OAAOC,EAAM,WAAWH,EAAO,OAAOF,KAAmBK,EAAM,WAAWH,EAAO,QAAQF,KAAmBK,EAAM,WAAWH,EAAO,MAAMF,KAAmBK,EAAM,WAAWH,EAAO,SAASF;AAChM;AACA,SAAgBG,EAAuB,GAAS;CAC9C,IAAMG,IAAcF,EAAQ,sBAAsB,GAC5CG,IAAMT,EAAYM,CAAO;CAG/B,IAAIL,GACF,OAAOO;CAET,IAAMI,IAAeH,EAAI,iBAAiBH,GAAS,UAAU,GACvDO,IAAcJ,EAAI,iBAAiBH,GAAS,SAAS;CAE3D,IAD0BM,EAAa,YAAY,UAAUC,EAAY,YAAY,QAEnF,OAAOL;CAIT,IAAMM,IAAc,WAAWF,EAAa,KAAK,KAAK,GAChDG,IAAe,WAAWH,EAAa,MAAM,KAAK,GAClDI,IAAa,WAAWH,EAAY,KAAK,KAAK,GAC9CI,IAAc,WAAWJ,EAAY,MAAM,KAAK,GAGhDK,IAAa,KAAK,IAAIV,EAAY,OAAOM,GAAaE,CAAU,GAChEG,IAAc,KAAK,IAAIX,EAAY,QAAQO,GAAcE,CAAW,GAGpEG,IAAYF,IAAaV,EAAY,OACrCa,IAAaF,IAAcX,EAAY;CAC7C,OAAO;EACL,MAAMA,EAAY,OAAOY,IAAY;EACrC,OAAOZ,EAAY,QAAQY,IAAY;EACvC,KAAKZ,EAAY,MAAMa,IAAa;EACpC,QAAQb,EAAY,SAASa,IAAa;CAC5C;AACF"}
|
package/dist/index39.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./
|
|
3
|
-
//#region ../../node_modules/date-fns/
|
|
1
|
+
import e from "./index25.js";
|
|
2
|
+
import { getDefaultOptions as t } from "./index38.js";
|
|
3
|
+
//#region ../../node_modules/date-fns/endOfWeek.js
|
|
4
4
|
function n(n, r) {
|
|
5
|
-
let i, a = r?.in;
|
|
6
|
-
return
|
|
7
|
-
!a && typeof n == "object" && (a = e.bind(null, n));
|
|
8
|
-
let r = t(n, a);
|
|
9
|
-
(!i || i < r || isNaN(+r)) && (i = r);
|
|
10
|
-
}), e(a, i || NaN);
|
|
5
|
+
let i = t(), a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, o = e(n, r?.in), s = o.getDay(), c = (s < a ? -7 : 0) + 6 - (s - a);
|
|
6
|
+
return o.setDate(o.getDate() + c), o.setHours(23, 59, 59, 999), o;
|
|
11
7
|
}
|
|
12
8
|
//#endregion
|
|
13
|
-
export { n as default, n as
|
|
9
|
+
export { n as default, n as endOfWeek };
|
|
14
10
|
|
|
15
11
|
//# sourceMappingURL=index39.js.map
|
package/dist/index39.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index39.js","names":[],"sources":["../../../node_modules/date-fns/
|
|
1
|
+
{"version":3,"file":"index39.js","names":["toDate","endOfWeek","defaultOptions","getDefaultOptions","weekStartsOn","options","_date","date","day","diff"],"sources":["../../../node_modules/date-fns/endOfWeek.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfWeek} function options.\n */\n\n/**\n * @name endOfWeek\n * @category Week Helpers\n * @summary Return the end of a week for the given date.\n *\n * @description\n * Return the end of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a week\n *\n * @example\n * // The end of a week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sat Sep 06 2014 23:59:59.999\n *\n * @example\n * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);\n\n _date.setDate(_date.getDate() + diff);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfWeek;\n"],"ignoreList":[0],"mappings":";;;AAkCA,SAAgBC,EAAU,GAAM,GAAS;CACvC,IAAMC,IAAiBC,EAAkB,GACnCC,IACJC,GAAS,gBACTA,GAAS,QAAQ,SAAS,gBAC1BH,EAAe,gBACfA,EAAe,QAAQ,SAAS,gBAChC,GAEII,IAAQN,EAAOO,GAAMF,GAAS,EAAE,GAChCG,IAAMF,EAAM,OAAO,GACnBG,KAAQD,IAAMJ,IAAe,KAAK,KAAK,KAAKI,IAAMJ;CAIxD,OAFAE,EAAM,QAAQA,EAAM,QAAQ,IAAIG,CAAI,GACpCH,EAAM,SAAS,IAAI,IAAI,IAAI,GAAG,GACvBA;AACT"}
|
package/dist/index390.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/@base-ui/react/internals/direction-context/DirectionContext.mjs
|
|
4
|
-
var t = /*#__PURE__*/ e.createContext(void 0);
|
|
5
|
-
process.env.NODE_ENV !== "production" && (t.displayName = "DirectionContext");
|
|
6
|
-
function n() {
|
|
7
|
-
return e.useContext(t)?.direction ?? "ltr";
|
|
8
|
-
}
|
|
1
|
+
import "./index201.js";
|
|
2
|
+
var e = "data-popup-side";
|
|
9
3
|
//#endregion
|
|
10
|
-
export {
|
|
4
|
+
export { e as popupSide };
|
|
11
5
|
|
|
12
6
|
//# sourceMappingURL=index390.js.map
|
package/dist/index390.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index390.js","names":["
|
|
1
|
+
{"version":3,"file":"index390.js","names":["CommonTriggerDataAttributes.popupOpen","CommonTriggerDataAttributes.pressed","popupSide"],"sources":["../../../node_modules/@base-ui/react/select/trigger/SelectTriggerDataAttributes.mjs"],"sourcesContent":["import { CommonTriggerDataAttributes } from \"../../utils/popupStateMapping.mjs\";\n\n/**\n * Present when the corresponding select is open.\n */\nexport const popupOpen = CommonTriggerDataAttributes.popupOpen;\n/**\n * Present when the trigger is pressed.\n */\nexport const pressed = CommonTriggerDataAttributes.pressed;\n/**\n * Present when the select is disabled.\n */\nexport const disabled = 'data-disabled';\n/**\n * Present when the select is readonly.\n */\nexport const readonly = 'data-readonly';\n/**\n * Indicates which side the corresponding popup is positioned relative to its anchor.\n * @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}\n */\nexport const popupSide = 'data-popup-side';\n/**\n * Present when the select is required.\n */\nexport const required = 'data-required';\n/**\n * Present when the select is in a valid state (when wrapped in Field.Root).\n */\nexport const valid = 'data-valid';\n/**\n * Present when the select is in an invalid state (when wrapped in Field.Root).\n */\nexport const invalid = 'data-invalid';\n/**\n * Present when the select has been touched (when wrapped in Field.Root).\n */\nexport const touched = 'data-touched';\n/**\n * Present when the select's value has changed (when wrapped in Field.Root).\n */\nexport const dirty = 'data-dirty';\n/**\n * Present when the select has a value (when wrapped in Field.Root).\n */\nexport const filled = 'data-filled';\n/**\n * Present when the select trigger is focused (when wrapped in Field.Root).\n */\nexport const focused = 'data-focused';\n/**\n * Present when the select doesn't have a value.\n */\nexport const placeholder = 'data-placeholder';"],"ignoreList":[0],"mappings":";AAsBA,IAAaE,IAAY"}
|
package/dist/index391.js
CHANGED
|
@@ -1,32 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { mergeProps as e } from "./index196.js";
|
|
3
|
+
import { useRenderElement as t } from "./index197.js";
|
|
4
|
+
import { pressableTriggerOpenStateMapping as n } from "./index202.js";
|
|
5
|
+
import { ownerDocument as ee } from "./index211.js";
|
|
6
|
+
import { useButton as r } from "./index213.js";
|
|
7
|
+
import { cancelOpen as i, none as a } from "./index214.js";
|
|
8
|
+
import { createChangeEventDetails as o } from "./index215.js";
|
|
9
|
+
import { useTimeout as s } from "./index221.js";
|
|
10
|
+
import { contains as c } from "./index228.js";
|
|
11
|
+
import { getFloatingFocusElement as l } from "./index230.js";
|
|
12
|
+
import { useValueAsRef as u } from "./index233.js";
|
|
13
|
+
import { useSelectRootContext as d, useSelectRootPropsContext as f } from "./index372.js";
|
|
14
|
+
import { fieldValidityMapping as p } from "./index374.js";
|
|
15
|
+
import { useFieldRootContext as m } from "./index375.js";
|
|
16
|
+
import { useLabelableContext as h } from "./index377.js";
|
|
17
|
+
import { useLabelableId as g } from "./index378.js";
|
|
18
|
+
import { resolveAriaLabelledBy as te } from "./index388.js";
|
|
19
|
+
import { isMouseWithinBounds as ne } from "./index389.js";
|
|
20
|
+
import { popupSide as re } from "./index390.js";
|
|
21
|
+
import * as _ from "react";
|
|
22
|
+
//#region ../../node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
|
|
23
|
+
var ie = 400, v = {
|
|
24
|
+
...n,
|
|
25
|
+
...p,
|
|
26
|
+
popupSide: (e) => e ? { [re]: e } : null,
|
|
27
|
+
value: () => null
|
|
28
|
+
}, y = /*#__PURE__*/ _.forwardRef(function(n, p) {
|
|
29
|
+
let { render: re, className: y, id: b, disabled: x = !1, nativeButton: S = !0, style: ae, ...C } = n, { setTouched: w, setFocused: T, validationMode: E, validation: D, state: O, disabled: k } = m(), { labelId: A } = h(), j = d(), { readOnly: M, required: N, disabled: P } = f(), F = k || P || x, I = j.useState("open"), oe = j.useState("mounted"), L = j.useState("value"), R = j.useState("triggerProps"), z = j.useState("positionerElement"), B = j.useState("listElement"), V = j.useState("popupSide"), H = j.useState("id"), U = j.useState("labelId"), W = j.useState("hasSelectedValue"), G = oe && z ? V : null, K = b ?? H, q = te(A, U);
|
|
30
|
+
g({ id: b });
|
|
31
|
+
let J = u(z), Y = _.useRef(null), { getButtonProps: se, buttonRef: ce } = r({
|
|
32
|
+
disabled: F,
|
|
33
|
+
native: S
|
|
34
|
+
}), le = j.useStateSetter("triggerElement"), ue = s(), X = s(), Z = s();
|
|
35
|
+
_.useEffect(() => {
|
|
36
|
+
if (I) return Z.start(ie, () => {
|
|
37
|
+
j.context.selectionRef.current.allowUnselectedMouseUp = !0, j.context.selectionRef.current.allowSelectedMouseUp = !0;
|
|
38
|
+
}), () => {
|
|
39
|
+
Z.clear();
|
|
23
40
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
41
|
+
j.context.selectionRef.current = {
|
|
42
|
+
allowSelectedMouseUp: !1,
|
|
43
|
+
allowUnselectedMouseUp: !1,
|
|
44
|
+
dragY: 0
|
|
45
|
+
}, X.clear();
|
|
46
|
+
}, [
|
|
47
|
+
I,
|
|
48
|
+
j,
|
|
49
|
+
X,
|
|
50
|
+
Z
|
|
51
|
+
]);
|
|
52
|
+
let Q = e(R, {
|
|
53
|
+
id: K,
|
|
54
|
+
role: "combobox",
|
|
55
|
+
"aria-expanded": I,
|
|
56
|
+
"aria-haspopup": "listbox",
|
|
57
|
+
"aria-controls": I ? B?.id ?? l(z)?.id : void 0,
|
|
58
|
+
"aria-labelledby": q,
|
|
59
|
+
"aria-readonly": M || void 0,
|
|
60
|
+
"aria-required": N || void 0,
|
|
61
|
+
tabIndex: F ? -1 : 0,
|
|
62
|
+
onFocus(e) {
|
|
63
|
+
T(!0), I && j.context.alignItemWithTriggerActiveRef.current && j.context.setOpen(!1, o(a, e.nativeEvent)), ue.start(0, () => {
|
|
64
|
+
j.set("forceMount", !0);
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
onBlur(e) {
|
|
68
|
+
c(z, e.relatedTarget) || (w(!0), T(!1), E === "onBlur" && D.commit(L));
|
|
69
|
+
},
|
|
70
|
+
onMouseDown(e) {
|
|
71
|
+
if (I) return;
|
|
72
|
+
let t = ee(e.currentTarget);
|
|
73
|
+
function n(e) {
|
|
74
|
+
if (!Y.current) return;
|
|
75
|
+
let t = e.target;
|
|
76
|
+
c(Y.current, t) || c(J.current, t) || ne(e, Y.current) || j.context.setOpen(!1, o(i, e));
|
|
77
|
+
}
|
|
78
|
+
X.start(0, () => {
|
|
79
|
+
t.addEventListener("mouseup", n, { once: !0 });
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}, C, se), $ = D.getValidationProps(F, Q);
|
|
83
|
+
$.role = "combobox";
|
|
84
|
+
let de = {
|
|
85
|
+
...O,
|
|
86
|
+
open: I,
|
|
87
|
+
disabled: F,
|
|
88
|
+
value: L,
|
|
89
|
+
readOnly: M,
|
|
90
|
+
popupSide: G,
|
|
91
|
+
placeholder: !W
|
|
92
|
+
};
|
|
93
|
+
return t("button", n, {
|
|
94
|
+
ref: [
|
|
95
|
+
p,
|
|
96
|
+
Y,
|
|
97
|
+
ce,
|
|
98
|
+
le
|
|
99
|
+
],
|
|
100
|
+
state: de,
|
|
101
|
+
stateAttributesMapping: v,
|
|
102
|
+
props: $
|
|
103
|
+
});
|
|
28
104
|
});
|
|
105
|
+
process.env.NODE_ENV !== "production" && (y.displayName = "SelectTrigger");
|
|
29
106
|
//#endregion
|
|
30
|
-
export {
|
|
107
|
+
export { y as SelectTrigger };
|
|
31
108
|
|
|
32
109
|
//# sourceMappingURL=index391.js.map
|
package/dist/index391.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index391.js","names":[],"sources":["../../../node_modules/@base-ui/react/floating-ui-react/middleware/arrow.mjs"],"sourcesContent":["import { clamp, evaluate, getAlignment, getAlignmentAxis, getAxisLength, getPaddingObject } from '@floating-ui/utils';\n/**\n * Fork of the original `arrow` middleware from Floating UI that allows\n * configuring the offset parent.\n */\nexport const baseArrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0,\n offsetParent = 'real'\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = offsetParent === 'real' ? await platform.getOffsetParent?.(element) : elements.floating;\n let clientSize = elements.floating[clientProp] || rects.floating[length];\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await platform.isElement?.(arrowOffsetParent))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = Math.min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = Math.min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n // eslint-disable-next-line no-nested-ternary\n const alignmentOffset = shouldAddOffset ? center < min ? center - min : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nexport const arrow = (options, deps) => ({\n ...baseArrow(options),\n options: [options, deps]\n});"],"x_google_ignoreList":[0],"mappings":";;AAKA,IAAa,KAAY,OAAY;CACnC,MAAM;CACN;CACA,MAAM,GAAG,GAAO;EACd,IAAM,EACJ,MACA,MACA,cACA,UACA,aACA,aACA,sBACE,GAEE,EACJ,YACA,aAAU,GACV,kBAAe,WACb,EAAS,GAAS,CAAK,KAAK,CAAC;EACjC,IAAI,KAAW,MACb,OAAO,CAAC;EAEV,IAAM,IAAgB,EAAiB,CAAO,GACxC,IAAS;GACb;GACA;EACF,GACM,IAAO,EAAiB,CAAS,GACjC,IAAS,EAAc,CAAI,GAC3B,IAAkB,MAAM,EAAS,cAAc,CAAO,GACtD,IAAU,MAAS,KACnB,IAAU,IAAU,QAAQ,QAC5B,IAAU,IAAU,WAAW,SAC/B,IAAa,IAAU,iBAAiB,eACxC,IAAU,EAAM,UAAU,KAAU,EAAM,UAAU,KAAQ,EAAO,KAAQ,EAAM,SAAS,IAC1F,IAAY,EAAO,KAAQ,EAAM,UAAU,IAC3C,IAAoB,MAAiB,SAAS,MAAM,EAAS,kBAAkB,CAAO,IAAI,EAAS,UACrG,IAAa,EAAS,SAAS,MAAe,EAAM,SAAS;EAGjE,CAAI,CAAC,KAAc,CAAE,MAAM,EAAS,YAAY,CAAiB,OAC/D,IAAa,EAAS,SAAS,MAAe,EAAM,SAAS;EAE/D,IAAM,IAAoB,IAAU,IAAI,IAAY,GAI9C,IAAyB,IAAa,IAAI,EAAgB,KAAU,IAAI,GACxE,IAAa,KAAK,IAAI,EAAc,IAAU,CAAsB,GACpE,IAAa,KAAK,IAAI,EAAc,IAAU,CAAsB,GAIpE,IAAM,GACN,IAAM,IAAa,EAAgB,KAAU,GAC7C,IAAS,IAAa,IAAI,EAAgB,KAAU,IAAI,GACxD,IAAS,EAAM,GAAK,GAAQ,CAAG,GAM/B,IAAkB,CAAC,EAAe,SAAS,EAAa,CAAS,KAAK,QAAQ,MAAW,KAAU,EAAM,UAAU,KAAU,KAAK,IAAS,IAAM,IAAa,KAAc,EAAgB,KAAU,IAAI,GAE1M,IAAkB,IAAkB,IAAS,IAAM,IAAS,IAAM,IAAS,IAAM;EACvF,OAAO;IACJ,IAAO,EAAO,KAAQ;GACvB,MAAM;KACH,IAAO;IACR,cAAc,IAAS,IAAS;IAChC,GAAI,KAAmB,EACrB,mBACF;GACF;GACA,OAAO;EACT;CACF;AACF,IAQa,KAAS,GAAS,OAAU;CACvC,GAAG,EAAU,CAAO;CACpB,SAAS,CAAC,GAAS,CAAI;AACzB"}
|
|
1
|
+
{"version":3,"file":"index391.js","names":["SelectTriggerDataAttributes.popupSide","React","REASONS.none","REASONS.cancelOpen","React$1","SELECTED_DELAY","stateAttributesMapping","pressableTriggerOpenStateMapping","fieldValidityMapping","side","popupSide","SelectTrigger","idProp","disabledProp","elementProps","componentProps","fieldState","fieldDisabled","useFieldRootContext","fieldLabelId","useLabelableContext","store","useSelectRootContext","selectDisabled","useSelectRootPropsContext","disabled","open","mounted","value","triggerProps","positionerElement","listElement","popupSideValue","rootId","selectLabelId","hasSelectedValue","id","ariaLabelledBy","resolveAriaLabelledBy","positionerRef","useValueAsRef","triggerRef","useButton","nativeButton","setTriggerElement","timeoutFocus","useTimeout","timeoutMouseDown","selectedDelayTimeout","mergedProps","mergeProps","getFloatingFocusElement","readOnly","required","setFocused","createChangeEventDetails","none","event","contains","setTouched","validationMode","validation","doc","ownerDocument","handleMouseUp","mouseUpTarget","mouseEvent","isMouseWithinBounds","cancelOpen","getButtonProps","props","state","useRenderElement","forwardedRef","buttonRef"],"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 { useValueAsRef } from '@base-ui/utils/useValueAsRef';\nimport { useSelectRootContext, useSelectRootPropsContext } 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 { isMouseWithinBounds } 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\";\nimport * as SelectTriggerDataAttributes from \"./SelectTriggerDataAttributes.mjs\";\nconst SELECTED_DELAY = 400;\nconst stateAttributesMapping = {\n ...pressableTriggerOpenStateMapping,\n ...fieldValidityMapping,\n popupSide: side => side ? {\n [SelectTriggerDataAttributes.popupSide]: 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 validation,\n state: fieldState,\n disabled: fieldDisabled\n } = useFieldRootContext();\n const {\n labelId: fieldLabelId\n } = useLabelableContext();\n const store = useSelectRootContext();\n const {\n readOnly,\n required,\n disabled: selectDisabled\n } = useSelectRootPropsContext();\n const disabled = fieldDisabled || selectDisabled || disabledProp;\n const open = store.useState('open');\n const mounted = store.useState('mounted');\n const value = store.useState('value');\n const triggerProps = store.useState('triggerProps');\n const positionerElement = store.useState('positionerElement');\n const listElement = store.useState('listElement');\n const popupSideValue = store.useState('popupSide');\n const rootId = store.useState('id');\n const selectLabelId = store.useState('labelId');\n const hasSelectedValue = store.useState('hasSelectedValue');\n const popupSide = mounted && positionerElement ? popupSideValue : null;\n const id = idProp ?? rootId;\n const ariaLabelledBy = resolveAriaLabelledBy(fieldLabelId, selectLabelId);\n useLabelableId({\n id: idProp\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 = store.useStateSetter('triggerElement');\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 store.context.selectionRef.current.allowUnselectedMouseUp = true;\n store.context.selectionRef.current.allowSelectedMouseUp = true;\n });\n return () => {\n selectedDelayTimeout.clear();\n };\n }\n store.context.selectionRef.current = {\n allowSelectedMouseUp: false,\n allowUnselectedMouseUp: false,\n dragY: 0\n };\n timeoutMouseDown.clear();\n return undefined;\n }, [open, store, timeoutMouseDown, selectedDelayTimeout]);\n const mergedProps = mergeProps(triggerProps, {\n id,\n role: 'combobox',\n 'aria-expanded': open,\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 && store.context.alignItemWithTriggerActiveRef.current) {\n store.context.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 if (isMouseWithinBounds(mouseEvent, triggerRef.current)) {\n return;\n }\n store.context.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\";"],"ignoreList":[0],"mappings":"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"}
|
package/dist/index392.js
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRenderElement as e } from "./index197.js";
|
|
3
|
+
import { useSelectRootContext as t } from "./index372.js";
|
|
4
|
+
import { resolveMultipleLabels as n, resolveSelectedLabel as r } from "./index382.js";
|
|
5
|
+
import * as i from "react";
|
|
6
|
+
//#region ../../node_modules/@base-ui/react/select/value/SelectValue.mjs
|
|
7
|
+
var a = { value: () => null }, o = /*#__PURE__*/ i.forwardRef(function(i, o) {
|
|
8
|
+
let { className: s, render: c, children: l, placeholder: u, style: d, ...f } = i, p = t(), m = p.useState("value"), h = p.useState("items"), g = p.useState("itemToStringLabel"), _ = p.useState("hasSelectedValue"), v = !_ && u != null && l == null, y = p.useState("hasNullItemLabel", v), b = {
|
|
9
|
+
value: m,
|
|
10
|
+
placeholder: !_
|
|
11
|
+
}, x = null;
|
|
12
|
+
return x = typeof l == "function" ? l(m) : l ?? (v && !y ? u : Array.isArray(m) ? n(m, h, g) : r(m, h, g)), e("span", i, {
|
|
13
|
+
state: b,
|
|
14
|
+
ref: [o, p.context.valueRef],
|
|
15
|
+
props: [{ children: x }, f],
|
|
16
|
+
stateAttributesMapping: a
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
process.env.NODE_ENV !== "production" && (o.displayName = "SelectValue");
|
|
9
20
|
//#endregion
|
|
10
|
-
export {
|
|
21
|
+
export { o as SelectValue };
|
|
11
22
|
|
|
12
23
|
//# sourceMappingURL=index392.js.map
|
package/dist/index392.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index392.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index392.js","names":["React$1","stateAttributesMapping","SelectValue","childrenProp","elementProps","componentProps","store","useSelectRootContext","value","items","itemToStringLabel","hasSelectedValue","shouldCheckNullItemLabel","placeholder","hasNullLabel","state","children","resolveMultipleLabels","resolveSelectedLabel","useRenderElement","forwardedRef"],"sources":["../../../node_modules/@base-ui/react/select/value/SelectValue.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { resolveMultipleLabels, resolveSelectedLabel } from \"../../internals/resolveValueLabel.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 store = useSelectRootContext();\n const value = store.useState('value');\n const items = store.useState('items');\n const itemToStringLabel = store.useState('itemToStringLabel');\n const hasSelectedValue = store.useState('hasSelectedValue');\n const shouldCheckNullItemLabel = !hasSelectedValue && placeholder != null && childrenProp == null;\n const hasNullLabel = store.useState('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 (shouldCheckNullItemLabel && !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, store.context.valueRef],\n props: [{\n children\n }, elementProps],\n stateAttributesMapping\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") SelectValue.displayName = \"SelectValue\";"],"ignoreList":[0],"mappings":";;;;;;AAMA,IAAMC,IAAyB,EAC7B,aAAa,KACf,GAQaC,IAA2B,gBAAM,WAAW,SAAqB,GAAgB,GAAc;CAC1G,IAAM,EACJ,cACA,WACA,UAAUC,GACV,gBACA,UACA,GAAGC,MACDC,GACEC,IAAQC,EAAqB,GAC7BC,IAAQF,EAAM,SAAS,OAAO,GAC9BG,IAAQH,EAAM,SAAS,OAAO,GAC9BI,IAAoBJ,EAAM,SAAS,mBAAmB,GACtDK,IAAmBL,EAAM,SAAS,kBAAkB,GACpDM,IAA2B,CAACD,KAAoBE,KAAe,QAAQV,KAAgB,MACvFW,IAAeR,EAAM,SAAS,oBAAoBM,CAAwB,GAC1EG,IAAQ;EACZ;EACA,aAAa,CAACJ;CAChB,GACIK,IAAW;CAoBf,OAnBA,AAGEA,IAHE,OAAOb,KAAiB,aACfA,EAAaK,CAAK,IACpBL,MAEAS,KAA4B,CAACE,IAC3BD,IACF,MAAM,QAAQL,CAAK,IACjBS,EAAsBT,GAAOC,GAAOC,CAAiB,IAErDQ,EAAqBV,GAAOC,GAAOC,CAAiB,IAEjDS,EAAiB,QAAQd,GAAgB;EACvD;EACA,KAAK,CAACe,GAAcd,EAAM,QAAQ,QAAQ;EAC1C,OAAO,CAAC,EACN,YACF,GAAGF,CAAY;EACf;CACF,CACa;AACf,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAY,cAAc"}
|
package/dist/index393.js
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { useRenderElement as e } from "./index197.js";
|
|
3
|
+
import { triggerOpenStateMapping as t } from "./index202.js";
|
|
4
|
+
import { useSelectRootContext as n } from "./index372.js";
|
|
5
|
+
import * as r from "react";
|
|
6
|
+
//#region ../../node_modules/@base-ui/react/select/icon/SelectIcon.mjs
|
|
7
|
+
var i = /*#__PURE__*/ r.forwardRef(function(r, i) {
|
|
8
|
+
let { render: a, className: o, style: s, ...c } = r, l = { open: n().useState("open") };
|
|
9
|
+
return e("span", r, {
|
|
10
|
+
state: l,
|
|
11
|
+
ref: i,
|
|
12
|
+
props: [{
|
|
13
|
+
"aria-hidden": !0,
|
|
14
|
+
children: "▼"
|
|
15
|
+
}, c],
|
|
16
|
+
stateAttributesMapping: t
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
process.env.NODE_ENV !== "production" && (i.displayName = "SelectIcon");
|
|
6
20
|
//#endregion
|
|
7
|
-
export {
|
|
21
|
+
export { i as SelectIcon };
|
|
8
22
|
|
|
9
23
|
//# sourceMappingURL=index393.js.map
|
package/dist/index393.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index393.js","names":[],"sources":["../../../node_modules/@base-ui/react/
|
|
1
|
+
{"version":3,"file":"index393.js","names":["React$1","SelectIcon","elementProps","componentProps","state","useSelectRootContext","useRenderElement","forwardedRef","triggerOpenStateMapping"],"sources":["../../../node_modules/@base-ui/react/select/icon/SelectIcon.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { useSelectRootContext } from \"../root/SelectRootContext.mjs\";\nimport { triggerOpenStateMapping } from \"../../utils/popupStateMapping.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 store = useSelectRootContext();\n const open = store.useState('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\";"],"ignoreList":[0],"mappings":";;;;;;AAaA,IAAaC,IAA0B,gBAAM,WAAW,SAAoB,GAAgB,GAAc;CACxG,IAAM,EACJ,WACA,cACA,UACA,GAAGC,MACDC,GAGEC,IAAQ,EACZ,MAHYC,EACG,CAAC,CAAC,SAAS,MAEvB,EACL;CAUA,OATgBC,EAAiB,QAAQH,GAAgB;EACvD;EACA,KAAKI;EACL,OAAO,CAAC;GACN,eAAe;GACf,UAAU;EACZ,GAAGL,CAAY;EACf,wBAAwBM;CAC1B,CACa;AACf,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAW,cAAc"}
|