@rpcbase/ui 0.249.0 → 0.251.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index105.js +36 -36
- package/dist/index117.js +6 -6
- package/dist/index120.js +10 -10
- package/dist/index122.js +2 -2
- package/dist/index123.js +3 -3
- package/dist/index124.js +1 -1
- package/dist/index126.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index150.js +3 -3
- package/dist/index156.js +1 -1
- package/dist/index163.js +2 -2
- package/dist/index164.js +7 -7
- package/dist/index167.js +1 -1
- package/dist/index169.js +1 -1
- package/dist/index172.js +3 -3
- package/dist/index175.js +1 -1
- package/dist/index176.js +8 -8
- package/dist/index182.js +1 -1
- package/dist/index184.js +4 -4
- package/dist/index185.js +13 -13
- package/dist/index188.js +5 -5
- package/dist/index189.js +1 -1
- package/dist/index192.js +4 -4
- package/dist/index193.js +6 -6
- package/dist/index194.js +59 -20
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +8 -66
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +87 -6
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +19 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +16 -11
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +5 -3
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +4 -49
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +7 -4
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +4 -29
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +6 -16
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +16 -5
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +4 -21
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +4 -53
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +12 -20
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +9 -41
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +13 -39
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +14 -46
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +4 -20
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -70
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +6 -17
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -3
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +54 -11
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +8 -13
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +4 -18
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +4 -36
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +8 -239
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +4 -252
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +4 -68
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +3 -99
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +10 -83
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +9 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +9 -29
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +10 -16
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +11 -35
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +9 -17
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +6 -3
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +5 -26
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +4 -28
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +6 -4
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +6 -78
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -272
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +15 -10
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +7 -10
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +10 -25
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +10 -16
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +21 -125
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +8 -5
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -65
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +10 -14
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +4 -7
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +16 -3
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +9 -10
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +18 -7
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +19 -132
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +10 -397
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +30 -5
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +12 -52
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +25 -11
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +5 -27
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +20 -12
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +65 -57
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +6 -8
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -87
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +11 -19
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +3 -16
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +49 -4
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +4 -6
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +29 -6
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +16 -4
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +5 -6
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +21 -16
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +53 -4
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +20 -4
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +41 -12
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +39 -9
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +46 -14
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +20 -13
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +70 -4
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +17 -5
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +3 -6
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +11 -5
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +12 -53
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +18 -8
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +36 -4
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +239 -4
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +252 -8
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +68 -4
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +99 -4
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +83 -3
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +3 -10
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +29 -9
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +16 -9
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +35 -11
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +17 -10
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +3 -9
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +26 -6
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +28 -5
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +4 -5
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +78 -5
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +272 -6
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +11 -5
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +10 -29
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +25 -12
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +15 -24
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +125 -5
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +5 -16
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +65 -7
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +13 -10
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +7 -10
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +5 -21
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +3 -8
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +10 -9
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +7 -9
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +133 -4
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +399 -5
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +5 -17
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +52 -9
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +11 -18
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +27 -20
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +11 -12
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +29 -151
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +11 -32
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +49 -11
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +9 -49
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +11 -9
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +43 -11
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +94 -40
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +76 -87
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +88 -69
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +39 -92
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +10 -51
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +4 -11
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +37 -4
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +8 -37
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +154 -8
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +135 -3
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +16 -134
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +15 -17
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +3 -15
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +1 -1
- package/dist/index335.js +1 -1
- package/dist/index336.js +8 -7
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +7 -8
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +1 -1
- package/dist/index347.js +1 -1
- package/dist/index348.js +2 -2
- package/dist/index350.js +4 -4
- package/dist/index351.js +4 -4
- package/dist/index352.js +7 -143
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +4 -79
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +11 -61
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +22 -15
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +16 -8
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +8 -5
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +144 -11
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +77 -19
- package/dist/index359.js.map +1 -1
- package/dist/index360.js +61 -16
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +15 -8
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +5 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +18 -6
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +13 -3
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +4 -12
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +5 -20
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +3 -45
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +11 -17
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +21 -5
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +44 -200
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +17 -73
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +5 -124
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +200 -4
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +74 -18
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +123 -12
- package/dist/index375.js.map +1 -1
- package/dist/index379.js +4 -4
- package/dist/index380.js +3 -3
- package/dist/index382.js +1 -1
- package/dist/index384.js +1 -1
- package/dist/index385.js +2 -2
- package/dist/index388.js +4 -4
- package/dist/index389.js +2 -2
- package/dist/index391.js +1 -1
- package/dist/index392.js +5 -3
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +5 -3
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +4 -5
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +15 -4
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +9 -4
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +5 -15
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +4 -8
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +545 -5
- package/dist/index399.js.map +1 -1
- package/dist/index400.js +47 -5
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +15 -543
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +6 -47
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +7 -17
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +6 -5
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -7
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +11 -6
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +8 -7
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +12 -11
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +3 -9
- package/dist/index409.js.map +1 -1
- package/dist/index410.js +3 -13
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +15 -3
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +3 -15
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +1 -1
- package/dist/index414.js +4 -7
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +56 -2
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +67 -43
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +31 -56
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +9 -8
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +153 -2
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +107 -54
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +7 -55
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +2 -33
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +43 -4
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +55 -55
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +8 -68
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +2 -31
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +55 -9
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +55 -152
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +32 -107
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +16 -2
- package/dist/index430.js.map +1 -1
- package/dist/index431.js +29 -2
- package/dist/index431.js.map +1 -1
- package/dist/index432.js +13 -2
- package/dist/index432.js.map +1 -1
- package/dist/index433.js +7 -2
- package/dist/index433.js.map +1 -1
- package/dist/index434.js +2 -16
- package/dist/index434.js.map +1 -1
- package/dist/index435.js +2 -29
- package/dist/index435.js.map +1 -1
- package/dist/index436.js +2 -13
- package/dist/index436.js.map +1 -1
- package/dist/index437.js +2 -7
- package/dist/index437.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.js +2 -2
- package/dist/index49.js +30 -30
- package/dist/index50.js +21 -21
- package/dist/index51.js +1 -1
- package/dist/index52.js +8 -8
- package/dist/index53.js +2 -2
- package/dist/index55.js +16 -16
- package/dist/index56.js +4 -4
- package/dist/index57.js +3 -3
- package/dist/index58.js +7 -7
- package/dist/index59.js +4 -4
- package/dist/index60.js +12 -12
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/dist/index66.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.js +2 -6
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -8
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +2 -6
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -2
- package/dist/index76.js +6 -2
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +8 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +6 -2
- package/dist/index78.js.map +1 -1
- package/package.json +1 -1
package/dist/index298.js
CHANGED
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
|
|
13
|
-
return !0;
|
|
14
|
-
const i = e.filter((o) => typeof o == "function");
|
|
15
|
-
if (i.length) {
|
|
16
|
-
let o = n.from;
|
|
17
|
-
const r = f.differenceInCalendarDays(n.to, n.from);
|
|
18
|
-
for (let u = 0; u <= r; u++) {
|
|
19
|
-
if (i.some((D) => D(o)))
|
|
20
|
-
return !0;
|
|
21
|
-
o = f.addDays(o, 1);
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { ownerDocument as m } from "./index284.js";
|
|
3
|
+
import { useScrollLock as p } from "./index375.js";
|
|
4
|
+
import { useIsoLayoutEffect as h } from "./index261.js";
|
|
5
|
+
const S = 20;
|
|
6
|
+
function L(t, c, o, l) {
|
|
7
|
+
const [s, r] = e.useState(!1);
|
|
8
|
+
h(() => {
|
|
9
|
+
if (!t || !c || o == null) {
|
|
10
|
+
r(!1);
|
|
11
|
+
return;
|
|
22
12
|
}
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
const u = m(o).documentElement.clientWidth, f = o.offsetWidth;
|
|
14
|
+
r(u > 0 && f > 0 && f >= u - S);
|
|
15
|
+
}, [t, c, o]), p(t && (!c || s), l);
|
|
25
16
|
}
|
|
26
17
|
export {
|
|
27
|
-
|
|
18
|
+
L as useAnchoredPopupScrollLock
|
|
28
19
|
};
|
|
29
20
|
//# sourceMappingURL=index298.js.map
|
package/dist/index298.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index298.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index298.js","sources":["../../../node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { useScrollLock } from '@base-ui/utils/useScrollLock';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\n\n// Touch-opened popups normally avoid scroll locking so users can still swipe outside to dismiss.\n// This hook re-enables scroll lock only when the popup is effectively full-width.\n// Treat popups with up to 20px of total horizontal gutter as full-width so common ~10px side\n// padding still locks scroll, since that leaves too little outside space for a reliable swipe.\nconst VIEWPORT_WIDTH_TOLERANCE_PX = 20;\n\n/**\n * Manages scroll lock for anchored popups. For non-touch opens, scroll lock is applied when\n * enabled. For touch opens, scroll lock is applied only when the positioner width is effectively\n * viewport-sized.\n */\nexport function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {\n const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React.useState(false);\n useIsoLayoutEffect(() => {\n if (!enabled || !touchOpen || positionerElement == null) {\n setTouchOpenShouldLockScroll(false);\n return;\n }\n const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;\n const popupWidth = positionerElement.offsetWidth;\n setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);\n }, [enabled, touchOpen, positionerElement]);\n useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);\n}"],"names":["VIEWPORT_WIDTH_TOLERANCE_PX","useAnchoredPopupScrollLock","enabled","touchOpen","positionerElement","referenceElement","touchOpenShouldLockScroll","setTouchOpenShouldLockScroll","React","useIsoLayoutEffect","viewportWidth","ownerDocument","popupWidth","useScrollLock"],"mappings":";;;;AAWA,MAAMA,IAA8B;AAO7B,SAASC,EAA2BC,GAASC,GAAWC,GAAmBC,GAAkB;AAClG,QAAM,CAACC,GAA2BC,CAA4B,IAAIC,EAAM,SAAS,EAAK;AACtF,EAAAC,EAAmB,MAAM;AACvB,QAAI,CAACP,KAAW,CAACC,KAAaC,KAAqB,MAAM;AACvD,MAAAG,EAA6B,EAAK;AAClC;AAAA,IACF;AACA,UAAMG,IAAgBC,EAAcP,CAAiB,EAAE,gBAAgB,aACjEQ,IAAaR,EAAkB;AACrC,IAAAG,EAA6BG,IAAgB,KAAKE,IAAa,KAAKA,KAAcF,IAAgBV,CAA2B;AAAA,EAC/H,GAAG,CAACE,GAASC,GAAWC,CAAiB,CAAC,GAC1CS,EAAcX,MAAY,CAACC,KAAaG,IAA4BD,CAAgB;AACtF;","x_google_ignoreList":[0]}
|
package/dist/index299.js
CHANGED
|
@@ -1,9 +1,129 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const S = ["top", "right", "bottom", "left"], m = Math.min, h = Math.max, w = Math.round, C = Math.floor, j = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), p = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
};
|
|
10
|
+
function L(t, n, e) {
|
|
11
|
+
return h(t, m(n, e));
|
|
12
|
+
}
|
|
13
|
+
function E(t, n) {
|
|
14
|
+
return typeof t == "function" ? t(n) : t;
|
|
15
|
+
}
|
|
16
|
+
function g(t) {
|
|
17
|
+
return t.split("-")[0];
|
|
18
|
+
}
|
|
19
|
+
function a(t) {
|
|
20
|
+
return t.split("-")[1];
|
|
21
|
+
}
|
|
22
|
+
function x(t) {
|
|
23
|
+
return t === "x" ? "y" : "x";
|
|
24
|
+
}
|
|
25
|
+
function b(t) {
|
|
26
|
+
return t === "y" ? "height" : "width";
|
|
27
|
+
}
|
|
28
|
+
function d(t) {
|
|
29
|
+
const n = t[0];
|
|
30
|
+
return n === "t" || n === "b" ? "y" : "x";
|
|
31
|
+
}
|
|
32
|
+
function A(t) {
|
|
33
|
+
return x(d(t));
|
|
34
|
+
}
|
|
35
|
+
function R(t, n, e) {
|
|
36
|
+
e === void 0 && (e = !1);
|
|
37
|
+
const r = a(t), i = A(t), o = b(i);
|
|
38
|
+
let c = i === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
39
|
+
return n.reference[o] > n.floating[o] && (c = f(c)), [c, f(c)];
|
|
40
|
+
}
|
|
41
|
+
function T(t) {
|
|
42
|
+
const n = f(t);
|
|
43
|
+
return [s(t), n, s(n)];
|
|
44
|
+
}
|
|
45
|
+
function s(t) {
|
|
46
|
+
return t.includes("start") ? t.replace("start", "end") : t.replace("end", "start");
|
|
47
|
+
}
|
|
48
|
+
const u = ["left", "right"], l = ["right", "left"], P = ["top", "bottom"], y = ["bottom", "top"];
|
|
49
|
+
function O(t, n, e) {
|
|
50
|
+
switch (t) {
|
|
51
|
+
case "top":
|
|
52
|
+
case "bottom":
|
|
53
|
+
return e ? n ? l : u : n ? u : l;
|
|
54
|
+
case "left":
|
|
55
|
+
case "right":
|
|
56
|
+
return n ? P : y;
|
|
57
|
+
default:
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function k(t, n, e, r) {
|
|
62
|
+
const i = a(t);
|
|
63
|
+
let o = O(g(t), e === "start", r);
|
|
64
|
+
return i && (o = o.map((c) => c + "-" + i), n && (o = o.concat(o.map(s)))), o;
|
|
65
|
+
}
|
|
66
|
+
function f(t) {
|
|
67
|
+
const n = g(t);
|
|
68
|
+
return p[n] + t.slice(n.length);
|
|
69
|
+
}
|
|
70
|
+
function M(t) {
|
|
71
|
+
return {
|
|
72
|
+
top: 0,
|
|
73
|
+
right: 0,
|
|
74
|
+
bottom: 0,
|
|
75
|
+
left: 0,
|
|
76
|
+
...t
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function q(t) {
|
|
80
|
+
return typeof t != "number" ? M(t) : {
|
|
81
|
+
top: t,
|
|
82
|
+
right: t,
|
|
83
|
+
bottom: t,
|
|
84
|
+
left: t
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function z(t) {
|
|
88
|
+
const {
|
|
89
|
+
x: n,
|
|
90
|
+
y: e,
|
|
91
|
+
width: r,
|
|
92
|
+
height: i
|
|
93
|
+
} = t;
|
|
94
|
+
return {
|
|
95
|
+
width: r,
|
|
96
|
+
height: i,
|
|
97
|
+
top: e,
|
|
98
|
+
left: n,
|
|
99
|
+
right: n + r,
|
|
100
|
+
bottom: e + i,
|
|
101
|
+
x: n,
|
|
102
|
+
y: e
|
|
103
|
+
};
|
|
5
104
|
}
|
|
6
105
|
export {
|
|
7
|
-
|
|
106
|
+
L as clamp,
|
|
107
|
+
j as createCoords,
|
|
108
|
+
E as evaluate,
|
|
109
|
+
M as expandPaddingObject,
|
|
110
|
+
C as floor,
|
|
111
|
+
a as getAlignment,
|
|
112
|
+
A as getAlignmentAxis,
|
|
113
|
+
R as getAlignmentSides,
|
|
114
|
+
b as getAxisLength,
|
|
115
|
+
T as getExpandedPlacements,
|
|
116
|
+
s as getOppositeAlignmentPlacement,
|
|
117
|
+
x as getOppositeAxis,
|
|
118
|
+
k as getOppositeAxisPlacements,
|
|
119
|
+
f as getOppositePlacement,
|
|
120
|
+
q as getPaddingObject,
|
|
121
|
+
g as getSide,
|
|
122
|
+
d as getSideAxis,
|
|
123
|
+
h as max,
|
|
124
|
+
m as min,
|
|
125
|
+
z as rectToClientRect,
|
|
126
|
+
w as round,
|
|
127
|
+
S as sides
|
|
8
128
|
};
|
|
9
129
|
//# sourceMappingURL=index299.js.map
|
package/dist/index299.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index299.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index299.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n const firstChar = placement[0];\n return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n const side = getSide(placement);\n return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":["sides","min","max","round","floor","createCoords","v","oppositeSideMap","clamp","start","value","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","firstChar","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","direction","list","expandPaddingObject","padding","getPaddingObject","rectToClientRect","rect","x","y","width","height"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index300.js
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
e.push(d);
|
|
6
|
-
}
|
|
7
|
-
const y = (a ? 35 : 42) * B;
|
|
8
|
-
if (u && e.length < y) {
|
|
9
|
-
const t = y - e.length;
|
|
10
|
-
for (let d = 0; d < t; d++) {
|
|
11
|
-
const T = i(e[e.length - 1], 1);
|
|
12
|
-
e.push(T);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return e;
|
|
1
|
+
function t(e, n, r, d) {
|
|
2
|
+
return e.addEventListener(n, r, d), () => {
|
|
3
|
+
e.removeEventListener(n, r, d);
|
|
4
|
+
};
|
|
16
5
|
}
|
|
17
6
|
export {
|
|
18
|
-
|
|
7
|
+
t as addEventListener
|
|
19
8
|
};
|
|
20
9
|
//# sourceMappingURL=index300.js.map
|
package/dist/index300.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index300.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index300.js","sources":["../../../node_modules/@base-ui/utils/addEventListener.mjs"],"sourcesContent":["/**\n * Adds an event listener and returns a cleanup function to remove it.\n */\n\nexport function addEventListener(target, type, listener, options) {\n target.addEventListener(type, listener, options);\n return () => {\n target.removeEventListener(type, listener, options);\n };\n}"],"names":["addEventListener","target","type","listener","options"],"mappings":"AAIO,SAASA,EAAiBC,GAAQC,GAAMC,GAAUC,GAAS;AAChE,SAAAH,EAAO,iBAAiBC,GAAMC,GAAUC,CAAO,GACxC,MAAM;AACX,IAAAH,EAAO,oBAAoBC,GAAMC,GAAUC,CAAO;AAAA,EACpD;AACF;","x_google_ignoreList":[0]}
|
package/dist/index301.js
CHANGED
|
@@ -1,11 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useRefWithInit as u } from "./index256.js";
|
|
2
|
+
import { useOnMount as h } from "./index366.js";
|
|
3
|
+
const s = null;
|
|
4
|
+
let l = globalThis.requestAnimationFrame;
|
|
5
|
+
class o {
|
|
6
|
+
/* This implementation uses an array as a backing data-structure for frame callbacks.
|
|
7
|
+
* It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
|
|
8
|
+
* never calls the native `cancelAnimationFrame` if there are no frames left. This can
|
|
9
|
+
* be much more efficient if there is a call pattern that alterns as
|
|
10
|
+
* "request-cancel-request-cancel-…".
|
|
11
|
+
* But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
|
|
12
|
+
* frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
|
|
13
|
+
callbacks = [];
|
|
14
|
+
callbacksCount = 0;
|
|
15
|
+
nextId = 1;
|
|
16
|
+
startId = 1;
|
|
17
|
+
isScheduled = !1;
|
|
18
|
+
tick = (t) => {
|
|
19
|
+
this.isScheduled = !1;
|
|
20
|
+
const e = this.callbacks, r = this.callbacksCount;
|
|
21
|
+
if (this.callbacks = [], this.callbacksCount = 0, this.startId = this.nextId, r > 0)
|
|
22
|
+
for (let i = 0; i < e.length; i += 1)
|
|
23
|
+
e[i]?.(t);
|
|
24
|
+
};
|
|
25
|
+
request(t) {
|
|
26
|
+
const e = this.nextId;
|
|
27
|
+
this.nextId += 1, this.callbacks.push(t), this.callbacksCount += 1;
|
|
28
|
+
const r = process.env.NODE_ENV !== "production" && l !== requestAnimationFrame && (l = requestAnimationFrame, !0);
|
|
29
|
+
return (!this.isScheduled || r) && (requestAnimationFrame(this.tick), this.isScheduled = !0), e;
|
|
30
|
+
}
|
|
31
|
+
cancel(t) {
|
|
32
|
+
const e = t - this.startId;
|
|
33
|
+
e < 0 || e >= this.callbacks.length || (this.callbacks[e] = null, this.callbacksCount -= 1);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const c = new o();
|
|
37
|
+
class a {
|
|
38
|
+
static create() {
|
|
39
|
+
return new a();
|
|
40
|
+
}
|
|
41
|
+
static request(t) {
|
|
42
|
+
return c.request(t);
|
|
43
|
+
}
|
|
44
|
+
static cancel(t) {
|
|
45
|
+
return c.cancel(t);
|
|
46
|
+
}
|
|
47
|
+
currentId = s;
|
|
48
|
+
/**
|
|
49
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
50
|
+
*/
|
|
51
|
+
request(t) {
|
|
52
|
+
this.cancel(), this.currentId = c.request(() => {
|
|
53
|
+
this.currentId = s, t();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
cancel = () => {
|
|
57
|
+
this.currentId !== s && (c.cancel(this.currentId), this.currentId = s);
|
|
58
|
+
};
|
|
59
|
+
disposeEffect = () => this.cancel;
|
|
60
|
+
}
|
|
61
|
+
function k() {
|
|
62
|
+
const n = u(a.create).current;
|
|
63
|
+
return h(n.disposeEffect), n;
|
|
7
64
|
}
|
|
8
65
|
export {
|
|
9
|
-
a as
|
|
66
|
+
a as AnimationFrame,
|
|
67
|
+
k as useAnimationFrame
|
|
10
68
|
};
|
|
11
69
|
//# sourceMappingURL=index301.js.map
|
package/dist/index301.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index301.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index301.js","sources":["../../../node_modules/@base-ui/utils/useAnimationFrame.mjs"],"sourcesContent":["'use client';\n\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nimport { useOnMount } from \"./useOnMount.mjs\";\n/** Unlike `setTimeout`, rAF doesn't guarantee a positive integer return value, so we can't have\n * a monomorphic `uint` type with `0` meaning empty.\n * See warning note at:\n * https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame#return_value */\nconst EMPTY = null;\nlet LAST_RAF = globalThis.requestAnimationFrame;\nclass Scheduler {\n /* This implementation uses an array as a backing data-structure for frame callbacks.\n * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it\n * never calls the native `cancelAnimationFrame` if there are no frames left. This can\n * be much more efficient if there is a call pattern that alterns as\n * \"request-cancel-request-cancel-…\".\n * But in the case of \"request-request-…-cancel-cancel-…\", it leaves the final animation\n * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */\n\n callbacks = [];\n callbacksCount = 0;\n nextId = 1;\n startId = 1;\n isScheduled = false;\n tick = timestamp => {\n this.isScheduled = false;\n const currentCallbacks = this.callbacks;\n const currentCallbacksCount = this.callbacksCount;\n\n // Update these before iterating, callbacks could call `requestAnimationFrame` again.\n this.callbacks = [];\n this.callbacksCount = 0;\n this.startId = this.nextId;\n if (currentCallbacksCount > 0) {\n for (let i = 0; i < currentCallbacks.length; i += 1) {\n currentCallbacks[i]?.(timestamp);\n }\n }\n };\n request(fn) {\n const id = this.nextId;\n this.nextId += 1;\n this.callbacks.push(fn);\n this.callbacksCount += 1;\n\n /* In a test environment with fake timers, a fake `requestAnimationFrame` can be called\n * but there's no guarantee that the animation frame will actually run before the fake\n * timers are teared, which leaves `isScheduled` set, but won't run our `tick()`. */\n const didRAFChange = process.env.NODE_ENV !== 'production' && LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true);\n if (!this.isScheduled || didRAFChange) {\n requestAnimationFrame(this.tick);\n this.isScheduled = true;\n }\n return id;\n }\n cancel(id) {\n const index = id - this.startId;\n if (index < 0 || index >= this.callbacks.length) {\n return;\n }\n this.callbacks[index] = null;\n this.callbacksCount -= 1;\n }\n}\nconst scheduler = new Scheduler();\nexport class AnimationFrame {\n static create() {\n return new AnimationFrame();\n }\n static request(fn) {\n return scheduler.request(fn);\n }\n static cancel(id) {\n return scheduler.cancel(id);\n }\n currentId = EMPTY;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n request(fn) {\n this.cancel();\n this.currentId = scheduler.request(() => {\n this.currentId = EMPTY;\n fn();\n });\n }\n cancel = () => {\n if (this.currentId !== EMPTY) {\n scheduler.cancel(this.currentId);\n this.currentId = EMPTY;\n }\n };\n disposeEffect = () => {\n return this.cancel;\n };\n}\n\n/**\n * A `requestAnimationFrame` with automatic cleanup and guard.\n */\nexport function useAnimationFrame() {\n const timeout = useRefWithInit(AnimationFrame.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}"],"names":["EMPTY","LAST_RAF","Scheduler","timestamp","currentCallbacks","currentCallbacksCount","fn","id","didRAFChange","index","scheduler","AnimationFrame","useAnimationFrame","timeout","useRefWithInit","useOnMount"],"mappings":";;AAQA,MAAMA,IAAQ;AACd,IAAIC,IAAW,WAAW;AAC1B,MAAMC,EAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASd,YAAY,CAAA;AAAA,EACZ,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO,CAAAC,MAAa;AAClB,SAAK,cAAc;AACnB,UAAMC,IAAmB,KAAK,WACxBC,IAAwB,KAAK;AAMnC,QAHA,KAAK,YAAY,CAAA,GACjB,KAAK,iBAAiB,GACtB,KAAK,UAAU,KAAK,QAChBA,IAAwB;AAC1B,eAAS,IAAI,GAAG,IAAID,EAAiB,QAAQ,KAAK;AAChD,QAAAA,EAAiB,CAAC,IAAID,CAAS;AAAA,EAGrC;AAAA,EACA,QAAQG,GAAI;AACV,UAAMC,IAAK,KAAK;AAChB,SAAK,UAAU,GACf,KAAK,UAAU,KAAKD,CAAE,GACtB,KAAK,kBAAkB;AAKvB,UAAME,IAAe,QAAQ,IAAI,aAAa,gBAAgBP,MAAa,0BAA0BA,IAAW,uBAAuB;AACvI,YAAI,CAAC,KAAK,eAAeO,OACvB,sBAAsB,KAAK,IAAI,GAC/B,KAAK,cAAc,KAEdD;AAAA,EACT;AAAA,EACA,OAAOA,GAAI;AACT,UAAME,IAAQF,IAAK,KAAK;AACxB,IAAIE,IAAQ,KAAKA,KAAS,KAAK,UAAU,WAGzC,KAAK,UAAUA,CAAK,IAAI,MACxB,KAAK,kBAAkB;AAAA,EACzB;AACF;AACA,MAAMC,IAAY,IAAIR,EAAS;AACxB,MAAMS,EAAe;AAAA,EAC1B,OAAO,SAAS;AACd,WAAO,IAAIA,EAAc;AAAA,EAC3B;AAAA,EACA,OAAO,QAAQL,GAAI;AACjB,WAAOI,EAAU,QAAQJ,CAAE;AAAA,EAC7B;AAAA,EACA,OAAO,OAAOC,GAAI;AAChB,WAAOG,EAAU,OAAOH,CAAE;AAAA,EAC5B;AAAA,EACA,YAAYP;AAAA;AAAA;AAAA;AAAA,EAKZ,QAAQM,GAAI;AACV,SAAK,OAAM,GACX,KAAK,YAAYI,EAAU,QAAQ,MAAM;AACvC,WAAK,YAAYV,GACjBM,EAAE;AAAA,IACJ,CAAC;AAAA,EACH;AAAA,EACA,SAAS,MAAM;AACb,IAAI,KAAK,cAAcN,MACrBU,EAAU,OAAO,KAAK,SAAS,GAC/B,KAAK,YAAYV;AAAA,EAErB;AAAA,EACA,gBAAgB,MACP,KAAK;AAEhB;AAKO,SAASY,IAAoB;AAClC,QAAMC,IAAUC,EAAeH,EAAe,MAAM,EAAE;AACtD,SAAAI,EAAWF,EAAQ,aAAa,GACzBA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index302.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { j as s } from "./index30.js";
|
|
2
|
+
const e = "base-ui-disable-scrollbar", r = {
|
|
3
|
+
className: e,
|
|
4
|
+
getElement(l) {
|
|
5
|
+
return /* @__PURE__ */ s.jsx("style", {
|
|
6
|
+
nonce: l,
|
|
7
|
+
href: e,
|
|
8
|
+
precedence: "base-ui:low",
|
|
9
|
+
children: `.${e}{scrollbar-width:none}.${e}::-webkit-scrollbar{display:none}`
|
|
10
|
+
});
|
|
8
11
|
}
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
};
|
|
13
|
+
process.env.NODE_ENV !== "production" && (r.getElement.displayName = "styleDisableScrollbar.getElement");
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
r as styleDisableScrollbar
|
|
13
16
|
};
|
|
14
17
|
//# sourceMappingURL=index302.js.map
|
package/dist/index302.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index302.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index302.js","sources":["../../../node_modules/@base-ui/react/utils/styles.mjs"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nconst DISABLE_SCROLLBAR_CLASS_NAME = 'base-ui-disable-scrollbar';\nexport const styleDisableScrollbar = {\n className: DISABLE_SCROLLBAR_CLASS_NAME,\n getElement(nonce) {\n return /*#__PURE__*/_jsx(\"style\", {\n nonce: nonce,\n href: DISABLE_SCROLLBAR_CLASS_NAME,\n precedence: \"base-ui:low\",\n children: `.${DISABLE_SCROLLBAR_CLASS_NAME}{scrollbar-width:none}.${DISABLE_SCROLLBAR_CLASS_NAME}::-webkit-scrollbar{display:none}`\n });\n }\n};\nif (process.env.NODE_ENV !== \"production\") styleDisableScrollbar.getElement.displayName = \"styleDisableScrollbar.getElement\";"],"names":["DISABLE_SCROLLBAR_CLASS_NAME","styleDisableScrollbar","nonce","_jsx"],"mappings":";AACA,MAAMA,IAA+B,6BACxBC,IAAwB;AAAA,EACnC,WAAWD;AAAA,EACX,WAAWE,GAAO;AAChB,WAAoBC,gBAAAA,EAAAA,IAAK,SAAS;AAAA,MAChC,OAAOD;AAAA,MACP,MAAMF;AAAA,MACN,YAAY;AAAA,MACZ,UAAU,IAAIA,CAA4B,0BAA0BA,CAA4B;AAAA,IACtG,CAAK;AAAA,EACH;AACF;AACI,QAAQ,IAAI,aAAa,iBAAcC,EAAsB,WAAW,cAAc;","x_google_ignoreList":[0]}
|
package/dist/index303.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const d = -1 * (f - 1);
|
|
7
|
-
t = l(n, d);
|
|
8
|
-
}
|
|
9
|
-
return o && h(t, o) < 0 && (t = o), r(t);
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
const t = /* @__PURE__ */ o.createContext(void 0);
|
|
3
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "ToolbarRootContext");
|
|
4
|
+
function r(e) {
|
|
5
|
+
return o.useContext(t);
|
|
10
6
|
}
|
|
11
7
|
export {
|
|
12
|
-
|
|
8
|
+
t as ToolbarRootContext,
|
|
9
|
+
r as useToolbarRootContext
|
|
13
10
|
};
|
|
14
11
|
//# sourceMappingURL=index303.js.map
|
package/dist/index303.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index303.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index303.js","sources":["../../../node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const ToolbarRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") ToolbarRootContext.displayName = \"ToolbarRootContext\";\nexport function useToolbarRootContext(optional) {\n const context = React.useContext(ToolbarRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.' : _formatErrorMessage(69));\n }\n return context;\n}"],"names":["ToolbarRootContext","React","useToolbarRootContext","optional"],"mappings":";AAIY,MAACA,IAAkC,gBAAAC,EAAM,cAAc,MAAS;AACxE,QAAQ,IAAI,aAAa,iBAAcD,EAAmB,cAAc;AACrE,SAASE,EAAsBC,GAAU;AAK9C,SAJgBF,EAAM,WAAWD,CAAkB;AAKrD;","x_google_ignoreList":[0]}
|
package/dist/index304.js
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const { addDays: y, endOfBroadcastWeek: D, endOfISOWeek: h, endOfMonth: k, endOfWeek: C, getISOWeek: I, getWeek: M, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: w } = c, o = l.reduce((W, t) => {
|
|
6
|
-
const x = e.broadcastCalendar ? S(t, c) : e.ISOWeek ? g(t) : w(t), d = e.broadcastCalendar ? D(t) : e.ISOWeek ? h(k(t)) : C(k(t)), a = f.filter((r) => r >= x && r <= d), O = e.broadcastCalendar ? 35 : 42;
|
|
7
|
-
if (e.fixedWeeks && a.length < O) {
|
|
8
|
-
const r = f.filter((n) => {
|
|
9
|
-
const s = O - a.length;
|
|
10
|
-
return n > d && n <= y(d, s);
|
|
11
|
-
});
|
|
12
|
-
a.push(...r);
|
|
13
|
-
}
|
|
14
|
-
const b = a.reduce((r, n) => {
|
|
15
|
-
const s = e.ISOWeek ? I(n) : M(n), i = r.find((B) => B.weekNumber === s), u = new F(n, t, c);
|
|
16
|
-
return i ? i.days.push(u) : r.push(new N(s, [u])), r;
|
|
17
|
-
}, []), v = new P(t, b);
|
|
18
|
-
return W.push(v), W;
|
|
19
|
-
}, []);
|
|
20
|
-
return e.reverseMonths ? o.reverse() : o;
|
|
1
|
+
import { EMPTY_OBJECT as r } from "./index264.js";
|
|
2
|
+
import { DISABLED_TRANSITIONS_STYLE as o } from "./index191.js";
|
|
3
|
+
function T(t) {
|
|
4
|
+
return t === "starting" ? o : r;
|
|
21
5
|
}
|
|
22
6
|
export {
|
|
23
|
-
|
|
7
|
+
T as getDisabledMountTransitionStyles
|
|
24
8
|
};
|
|
25
9
|
//# sourceMappingURL=index304.js.map
|
package/dist/index304.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index304.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index304.js","sources":["../../../node_modules/@base-ui/react/utils/getDisabledMountTransitionStyles.mjs"],"sourcesContent":["import { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { DISABLED_TRANSITIONS_STYLE } from \"../internals/constants.mjs\";\nexport function getDisabledMountTransitionStyles(transitionStatus) {\n return transitionStatus === 'starting' ? DISABLED_TRANSITIONS_STYLE : EMPTY_OBJECT;\n}"],"names":["getDisabledMountTransitionStyles","transitionStatus","DISABLED_TRANSITIONS_STYLE","EMPTY_OBJECT"],"mappings":";;AAEO,SAASA,EAAiCC,GAAkB;AACjE,SAAOA,MAAqB,aAAaC,IAA6BC;AACxE;","x_google_ignoreList":[0]}
|
package/dist/index305.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
const { startOfYear: f, startOfDay: o, startOfMonth: s, endOfMonth: i, addYears: y, endOfYear: h, today: e } = r, d = n.captionLayout === "dropdown" || n.captionLayout === "dropdown-years";
|
|
4
|
-
return t ? t = s(t) : !t && d && (t = f(y(n.today ?? e(), -100))), a ? a = i(a) : !a && d && (a = h(n.today ?? e())), [
|
|
5
|
-
t && o(t),
|
|
6
|
-
a && o(a)
|
|
7
|
-
];
|
|
1
|
+
function t(E, m = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
2
|
+
return Math.max(m, Math.min(E, r));
|
|
8
3
|
}
|
|
9
4
|
export {
|
|
10
|
-
|
|
5
|
+
t as clamp
|
|
11
6
|
};
|
|
12
7
|
//# sourceMappingURL=index305.js.map
|
package/dist/index305.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index305.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index305.js","sources":["../../../node_modules/@base-ui/react/internals/clamp.mjs"],"sourcesContent":["export function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}"],"names":["clamp","val","min","max"],"mappings":"AAAO,SAASA,EAAMC,GAAKC,IAAM,OAAO,kBAAkBC,IAAM,OAAO,kBAAkB;AACvF,SAAO,KAAK,IAAID,GAAK,KAAK,IAAID,GAAKE,CAAG,CAAC;AACzC;","x_google_ignoreList":[0]}
|
package/dist/index306.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const t = /* @__PURE__ */ e.createContext(void 0);
|
|
3
|
+
process.env.NODE_ENV !== "production" && (t.displayName = "CSPContext");
|
|
4
|
+
const n = {
|
|
5
|
+
disableStyleElements: !1
|
|
6
|
+
};
|
|
7
|
+
function o() {
|
|
8
|
+
return e.useContext(t) ?? n;
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
t as CSPContext,
|
|
12
|
+
o as useCSPContext
|
|
12
13
|
};
|
|
13
14
|
//# sourceMappingURL=index306.js.map
|
package/dist/index306.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index306.js","sources":["../../../node_modules/react
|
|
1
|
+
{"version":3,"file":"index306.js","sources":["../../../node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n/**\n * @internal\n */\nexport const CSPContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CSPContext.displayName = \"CSPContext\";\nconst DEFAULT_CSP_CONTEXT_VALUE = {\n disableStyleElements: false\n};\n\n/**\n * @internal\n */\nexport function useCSPContext() {\n return React.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;\n}"],"names":["CSPContext","React","DEFAULT_CSP_CONTEXT_VALUE","useCSPContext"],"mappings":";AAMY,MAACA,IAA0B,gBAAAC,EAAM,cAAc,MAAS;AAChE,QAAQ,IAAI,aAAa,iBAAcD,EAAW,cAAc;AACpE,MAAME,IAA4B;AAAA,EAChC,sBAAsB;AACxB;AAKO,SAASC,IAAgB;AAC9B,SAAOF,EAAM,WAAWD,CAAU,KAAKE;AACzC;","x_google_ignoreList":[0]}
|
package/dist/index307.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return f(n, -o);
|
|
7
|
-
if (!(a(n, t) <= 0))
|
|
8
|
-
return f(n, -o);
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const e = /* @__PURE__ */ t.createContext(void 0);
|
|
3
|
+
process.env.NODE_ENV !== "production" && (e.displayName = "DirectionContext");
|
|
4
|
+
function o() {
|
|
5
|
+
return t.useContext(e)?.direction ?? "ltr";
|
|
9
6
|
}
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
e as DirectionContext,
|
|
9
|
+
o as useDirection
|
|
12
10
|
};
|
|
13
11
|
//# sourceMappingURL=index307.js.map
|