@rpcbase/ui 0.251.0 → 0.253.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/components/Notifications/types.d.ts +1 -0
- package/dist/components/Notifications/types.d.ts.map +1 -1
- 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 +4 -4
- package/dist/index182.js +2 -2
- package/dist/index184.js +4 -4
- package/dist/index185.js +13 -13
- package/dist/index186.js +1 -1
- package/dist/index188.js +5 -5
- package/dist/index189.js +1 -1
- package/dist/index192.js +2 -2
- package/dist/index193.js +6 -6
- package/dist/index194.js +20 -59
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +66 -8
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +6 -87
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +5 -19
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +11 -16
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -5
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +49 -4
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +4 -7
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +29 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +16 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +5 -16
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +21 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +53 -4
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +20 -12
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +41 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +39 -13
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +46 -14
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +20 -4
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +70 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +17 -6
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +11 -54
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +13 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +18 -4
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +36 -4
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +239 -8
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +252 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +68 -4
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +99 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +83 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +3 -9
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +29 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +16 -10
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +35 -11
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +17 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -6
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +26 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +28 -4
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -6
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +78 -6
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +272 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +10 -15
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +10 -7
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +25 -10
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +16 -10
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +125 -21
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +5 -8
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +65 -9
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +14 -10
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +7 -4
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +3 -16
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +10 -9
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +7 -18
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +132 -19
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +397 -10
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +5 -30
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +52 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +11 -25
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +27 -5
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +12 -20
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +57 -65
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +8 -6
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +87 -5
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +19 -11
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +16 -3
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +4 -49
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +6 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +6 -29
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +4 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +6 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +16 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -53
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +4 -20
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +12 -41
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +9 -39
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +14 -46
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +13 -20
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +4 -70
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +5 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +6 -3
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +5 -11
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +53 -12
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +8 -18
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +4 -36
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +4 -239
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +8 -252
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +4 -68
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +4 -99
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +3 -83
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +10 -3
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +9 -29
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +9 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +11 -35
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +10 -17
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +9 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +6 -26
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -28
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -4
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +5 -78
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +6 -272
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +5 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +16 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +7 -25
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -16
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +9 -124
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +21 -5
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +8 -65
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +10 -14
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +9 -7
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +4 -5
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +5 -3
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +16 -10
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +9 -7
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +17 -132
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +18 -397
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +13 -5
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +29 -52
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +12 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +25 -27
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +5 -11
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +151 -29
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +32 -11
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +11 -49
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +49 -9
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +9 -11
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +11 -43
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +40 -94
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +87 -76
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +69 -88
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +92 -39
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +51 -10
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +11 -4
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +4 -37
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +37 -8
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +8 -154
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +3 -135
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +9 -17
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +133 -13
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +17 -3
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +12 -33
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +35 -19
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +20 -9
- package/dist/index336.js.map +1 -1
- package/dist/index338.js +2 -2
- package/dist/index341.js +1 -1
- package/dist/index348.js +5 -51
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +51 -5
- package/dist/index349.js.map +1 -1
- package/dist/index350.js +4 -4
- package/dist/index357.js +1 -1
- package/dist/index358.js +5 -5
- package/dist/index359.js +1 -1
- package/dist/index362.js +5 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +4 -18
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +3 -13
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +12 -4
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +20 -5
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +45 -3
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +17 -11
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +5 -21
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +200 -44
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +73 -17
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +124 -5
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +4 -200
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +18 -74
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +12 -123
- package/dist/index375.js.map +1 -1
- package/dist/index379.js +3 -3
- 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 +1 -1
- package/dist/index389.js +2 -2
- package/dist/index392.js +3 -5
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +3 -5
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +5 -4
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +4 -15
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +4 -9
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +15 -5
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +8 -4
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +5 -545
- package/dist/index399.js.map +1 -1
- package/dist/index400.js +5 -47
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +543 -15
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +47 -6
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +17 -7
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +5 -6
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +7 -7
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +6 -11
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +7 -8
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +11 -12
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +9 -3
- package/dist/index409.js.map +1 -1
- package/dist/index410.js +13 -3
- package/dist/index410.js.map +1 -1
- package/dist/index413.js +1 -1
- package/dist/index414.js +7 -4
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +2 -56
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +43 -67
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +56 -31
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +8 -9
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +2 -153
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +54 -107
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +55 -7
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +33 -2
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +4 -43
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +55 -55
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +68 -8
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +31 -2
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +9 -55
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +152 -55
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +107 -32
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +2 -16
- package/dist/index430.js.map +1 -1
- package/dist/index431.js +2 -29
- package/dist/index431.js.map +1 -1
- package/dist/index432.js +2 -13
- package/dist/index432.js.map +1 -1
- package/dist/index433.js +2 -7
- package/dist/index433.js.map +1 -1
- package/dist/index434.js +16 -2
- package/dist/index434.js.map +1 -1
- package/dist/index435.js +29 -2
- package/dist/index435.js.map +1 -1
- package/dist/index436.js +13 -2
- package/dist/index436.js.map +1 -1
- package/dist/index437.js +7 -2
- package/dist/index437.js.map +1 -1
- package/dist/index44.js +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 +6 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +8 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +6 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -2
- package/dist/index76.js +2 -6
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +2 -8
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -6
- package/dist/index78.js.map +1 -1
- package/package.json +1 -1
package/dist/index308.js
CHANGED
|
@@ -1,137 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
function h(t) {
|
|
19
|
-
return u() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
20
|
-
}
|
|
21
|
-
function g(t) {
|
|
22
|
-
return u() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
23
|
-
}
|
|
24
|
-
function p(t) {
|
|
25
|
-
return !u() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
26
|
-
}
|
|
27
|
-
function y(t) {
|
|
28
|
-
const {
|
|
29
|
-
overflow: n,
|
|
30
|
-
overflowX: r,
|
|
31
|
-
overflowY: c,
|
|
32
|
-
display: e
|
|
33
|
-
} = b(t);
|
|
34
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + c + r) && e !== "inline" && e !== "contents";
|
|
35
|
-
}
|
|
36
|
-
function _(t) {
|
|
37
|
-
return /^(table|td|th)$/.test(a(t));
|
|
38
|
-
}
|
|
39
|
-
function T(t) {
|
|
40
|
-
try {
|
|
41
|
-
if (t.matches(":popover-open"))
|
|
42
|
-
return !0;
|
|
43
|
-
} catch {
|
|
44
|
-
}
|
|
45
|
-
try {
|
|
46
|
-
return t.matches(":modal");
|
|
47
|
-
} catch {
|
|
48
|
-
return !1;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
const v = /transform|translate|scale|rotate|perspective|filter/, C = /paint|layout|strict|content/, o = (t) => !!t && t !== "none";
|
|
52
|
-
let s;
|
|
53
|
-
function D(t) {
|
|
54
|
-
const n = h(t) ? b(t) : t;
|
|
55
|
-
return o(n.transform) || o(n.translate) || o(n.scale) || o(n.rotate) || o(n.perspective) || !R() && (o(n.backdropFilter) || o(n.filter)) || v.test(n.willChange || "") || C.test(n.contain || "");
|
|
56
|
-
}
|
|
57
|
-
function W(t) {
|
|
58
|
-
let n = f(t);
|
|
59
|
-
for (; g(n) && !N(n); ) {
|
|
60
|
-
if (D(n))
|
|
61
|
-
return n;
|
|
62
|
-
if (T(n))
|
|
63
|
-
return null;
|
|
64
|
-
n = f(n);
|
|
65
|
-
}
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
function R() {
|
|
69
|
-
return s == null && (s = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), s;
|
|
70
|
-
}
|
|
71
|
-
function N(t) {
|
|
72
|
-
return /^(html|body|#document)$/.test(a(t));
|
|
73
|
-
}
|
|
74
|
-
function b(t) {
|
|
75
|
-
return i(t).getComputedStyle(t);
|
|
76
|
-
}
|
|
77
|
-
function $(t) {
|
|
78
|
-
return h(t) ? {
|
|
79
|
-
scrollLeft: t.scrollLeft,
|
|
80
|
-
scrollTop: t.scrollTop
|
|
81
|
-
} : {
|
|
82
|
-
scrollLeft: t.scrollX,
|
|
83
|
-
scrollTop: t.scrollY
|
|
1
|
+
import { useControlledValue as x } from "./index305.js";
|
|
2
|
+
function C(i, d) {
|
|
3
|
+
const { selected: s, required: f, onSelect: l } = i, [r, m] = x(s, l ? s : void 0), e = l ? s : r, { isSameDay: o } = d, u = (t) => e?.some((c) => o(c, t)) ?? !1, { min: S, max: a } = i;
|
|
4
|
+
return {
|
|
5
|
+
selected: e,
|
|
6
|
+
select: (t, c, h) => {
|
|
7
|
+
let n = [...e ?? []];
|
|
8
|
+
if (u(t)) {
|
|
9
|
+
if (e?.length === S || f && e?.length === 1)
|
|
10
|
+
return;
|
|
11
|
+
n = e?.filter((y) => !o(y, t));
|
|
12
|
+
} else
|
|
13
|
+
e?.length === a ? n = [t] : n = [...n, t];
|
|
14
|
+
return l || m(n), l?.(n, t, c, h), n;
|
|
15
|
+
},
|
|
16
|
+
isSelected: u
|
|
84
17
|
};
|
|
85
18
|
}
|
|
86
|
-
function f(t) {
|
|
87
|
-
if (a(t) === "html")
|
|
88
|
-
return t;
|
|
89
|
-
const n = (
|
|
90
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
-
t.assignedSlot || // DOM Element detected.
|
|
92
|
-
t.parentNode || // ShadowRoot detected.
|
|
93
|
-
p(t) && t.host || // Fallback.
|
|
94
|
-
L(t)
|
|
95
|
-
);
|
|
96
|
-
return p(n) ? n.host : n;
|
|
97
|
-
}
|
|
98
|
-
function S(t) {
|
|
99
|
-
const n = f(t);
|
|
100
|
-
return N(n) ? t.ownerDocument ? t.ownerDocument.body : t.body : g(n) && y(n) ? n : S(n);
|
|
101
|
-
}
|
|
102
|
-
function w(t, n, r) {
|
|
103
|
-
var c;
|
|
104
|
-
n === void 0 && (n = []), r === void 0 && (r = !0);
|
|
105
|
-
const e = S(t), E = e === ((c = t.ownerDocument) == null ? void 0 : c.body), l = i(e);
|
|
106
|
-
if (E) {
|
|
107
|
-
const d = k(l);
|
|
108
|
-
return n.concat(l, l.visualViewport || [], y(e) ? e : [], d && r ? w(d) : []);
|
|
109
|
-
} else
|
|
110
|
-
return n.concat(e, w(e, [], r));
|
|
111
|
-
}
|
|
112
|
-
function k(t) {
|
|
113
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
114
|
-
}
|
|
115
19
|
export {
|
|
116
|
-
|
|
117
|
-
W as getContainingBlock,
|
|
118
|
-
L as getDocumentElement,
|
|
119
|
-
k as getFrameElement,
|
|
120
|
-
S as getNearestOverflowAncestor,
|
|
121
|
-
a as getNodeName,
|
|
122
|
-
$ as getNodeScroll,
|
|
123
|
-
w as getOverflowAncestors,
|
|
124
|
-
f as getParentNode,
|
|
125
|
-
i as getWindow,
|
|
126
|
-
D as isContainingBlock,
|
|
127
|
-
h as isElement,
|
|
128
|
-
g as isHTMLElement,
|
|
129
|
-
N as isLastTraversableNode,
|
|
130
|
-
m as isNode,
|
|
131
|
-
y as isOverflowElement,
|
|
132
|
-
p as isShadowRoot,
|
|
133
|
-
_ as isTableElement,
|
|
134
|
-
T as isTopLayer,
|
|
135
|
-
R as isWebKit
|
|
20
|
+
C as useMulti
|
|
136
21
|
};
|
|
137
22
|
//# sourceMappingURL=index308.js.map
|
package/dist/index308.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index308.js","sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n try {\n if (element.matches(':popover-open')) {\n return true;\n }\n } catch (_e) {\n // no-op\n }\n try {\n return element.matches(':modal');\n } catch (_e) {\n return false;\n }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (isWebKitValue == null) {\n isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n }\n return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n } else {\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n }\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n"],"names":["hasWindow","getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isTopLayer","willChangeRe","containRe","isNotNone","isWebKitValue","isContainingBlock","elementOrCss","css","isWebKit","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index308.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":";AAUO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR,GAChBS,IAAa,CAACC,MACTH,GAAU,KAAK,CAACI,MAAMH,EAAUG,GAAGD,CAAI,CAAC,KAAK,IAElD,EAAE,KAAAE,GAAK,KAAAC,EAAG,IAAKd;AA8BrB,SAAO;AAAA,IACH,UAAAQ;AAAA,IACA,QA/BW,CAACO,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAW,CAAC,GAAIV,KAAY,CAAA,CAAG;AACnC,UAAIE,EAAWK,CAAW,GAAG;AAKzB,YAJIP,GAAU,WAAWK,KAIrBV,KAAYK,GAAU,WAAW;AAEjC;AAEJ,QAAAU,IAAWV,GAAU,OAAO,CAACI,MAAM,CAACH,EAAUG,GAAGG,CAAW,CAAC;AAAA,MACjE;AAEI,QAAIP,GAAU,WAAWM,IAErBI,IAAW,CAACH,CAAW,IAIvBG,IAAW,CAAC,GAAGA,GAAUH,CAAW;AAG5C,aAAKX,KACDE,EAAYY,CAAQ,GAExBd,IAAWc,GAAUH,GAAaC,GAAWC,CAAC,GACvCC;AAAA,IACX;AAAA,IAII,YAAAR;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
package/dist/index309.js
CHANGED
|
@@ -1,403 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return v(t) ? t : t.contextElement;
|
|
16
|
-
}
|
|
17
|
-
function F(t) {
|
|
18
|
-
const e = X(t);
|
|
19
|
-
if (!T(e))
|
|
20
|
-
return w(1);
|
|
21
|
-
const i = e.getBoundingClientRect(), {
|
|
22
|
-
width: n,
|
|
23
|
-
height: o,
|
|
24
|
-
$: r
|
|
25
|
-
} = Z(e);
|
|
26
|
-
let s = (r ? z(i.width) : i.width) / n, c = (r ? z(i.height) : i.height) / o;
|
|
27
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
|
-
x: s,
|
|
29
|
-
y: c
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const gt = /* @__PURE__ */ w(0);
|
|
33
|
-
function tt(t) {
|
|
34
|
-
const e = O(t);
|
|
35
|
-
return !Y() || !e.visualViewport ? gt : {
|
|
36
|
-
x: e.visualViewport.offsetLeft,
|
|
37
|
-
y: e.visualViewport.offsetTop
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function pt(t, e, i) {
|
|
41
|
-
return e === void 0 && (e = !1), !i || e && i !== O(t) ? !1 : e;
|
|
42
|
-
}
|
|
43
|
-
function L(t, e, i, n) {
|
|
44
|
-
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
45
|
-
const o = t.getBoundingClientRect(), r = X(t);
|
|
46
|
-
let s = w(1);
|
|
47
|
-
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
-
const c = pt(r, i, n) ? tt(r) : w(0);
|
|
49
|
-
let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, a = o.height / s.y;
|
|
50
|
-
if (r) {
|
|
51
|
-
const d = O(r), h = n && v(n) ? O(n) : n;
|
|
52
|
-
let m = d, p = U(m);
|
|
53
|
-
for (; p && n && h !== m; ) {
|
|
54
|
-
const y = F(p), g = p.getBoundingClientRect(), x = R(p), C = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * y.x, W = g.top + (p.clientTop + parseFloat(x.paddingTop)) * y.y;
|
|
55
|
-
l *= y.x, f *= y.y, u *= y.x, a *= y.y, l += C, f += W, m = O(p), p = U(m);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return J({
|
|
59
|
-
width: u,
|
|
60
|
-
height: a,
|
|
61
|
-
x: l,
|
|
62
|
-
y: f
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function I(t, e) {
|
|
66
|
-
const i = H(t).scrollLeft;
|
|
67
|
-
return e ? e.left + i : L(b(t)).left + i;
|
|
68
|
-
}
|
|
69
|
-
function et(t, e) {
|
|
70
|
-
const i = t.getBoundingClientRect(), n = i.left + e.scrollLeft - I(t, i), o = i.top + e.scrollTop;
|
|
71
|
-
return {
|
|
72
|
-
x: n,
|
|
73
|
-
y: o
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function mt(t) {
|
|
77
|
-
let {
|
|
78
|
-
elements: e,
|
|
79
|
-
rect: i,
|
|
80
|
-
offsetParent: n,
|
|
81
|
-
strategy: o
|
|
82
|
-
} = t;
|
|
83
|
-
const r = o === "fixed", s = b(n), c = e ? $(e.floating) : !1;
|
|
84
|
-
if (n === s || c && r)
|
|
85
|
-
return i;
|
|
86
|
-
let l = {
|
|
87
|
-
scrollLeft: 0,
|
|
88
|
-
scrollTop: 0
|
|
89
|
-
}, f = w(1);
|
|
90
|
-
const u = w(0), a = T(n);
|
|
91
|
-
if ((a || !a && !r) && ((_(n) !== "body" || q(s)) && (l = H(n)), a)) {
|
|
92
|
-
const h = L(n);
|
|
93
|
-
f = F(n), u.x = h.x + n.clientLeft, u.y = h.y + n.clientTop;
|
|
94
|
-
}
|
|
95
|
-
const d = s && !a && !r ? et(s, l) : w(0);
|
|
96
|
-
return {
|
|
97
|
-
width: i.width * f.x,
|
|
98
|
-
height: i.height * f.y,
|
|
99
|
-
x: i.x * f.x - l.scrollLeft * f.x + u.x + d.x,
|
|
100
|
-
y: i.y * f.y - l.scrollTop * f.y + u.y + d.y
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function yt(t) {
|
|
104
|
-
return Array.from(t.getClientRects());
|
|
105
|
-
}
|
|
106
|
-
function wt(t) {
|
|
107
|
-
const e = b(t), i = H(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
108
|
-
let s = -i.scrollLeft + I(t);
|
|
109
|
-
const c = -i.scrollTop;
|
|
110
|
-
return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
|
|
111
|
-
width: o,
|
|
112
|
-
height: r,
|
|
113
|
-
x: s,
|
|
114
|
-
y: c
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
const K = 25;
|
|
118
|
-
function xt(t, e) {
|
|
119
|
-
const i = O(t), n = b(t), o = i.visualViewport;
|
|
120
|
-
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
121
|
-
if (o) {
|
|
122
|
-
r = o.width, s = o.height;
|
|
123
|
-
const u = Y();
|
|
124
|
-
(!u || u && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
125
|
-
}
|
|
126
|
-
const f = I(n);
|
|
127
|
-
if (f <= 0) {
|
|
128
|
-
const u = n.ownerDocument, a = u.body, d = getComputedStyle(a), h = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, m = Math.abs(n.clientWidth - a.clientWidth - h);
|
|
129
|
-
m <= K && (r -= m);
|
|
130
|
-
} else f <= K && (r += f);
|
|
131
|
-
return {
|
|
132
|
-
width: r,
|
|
133
|
-
height: s,
|
|
134
|
-
x: c,
|
|
135
|
-
y: l
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
function vt(t, e) {
|
|
139
|
-
const i = L(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.left + t.clientLeft, r = T(t) ? F(t) : w(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = n * r.y;
|
|
140
|
-
return {
|
|
141
|
-
width: s,
|
|
142
|
-
height: c,
|
|
143
|
-
x: l,
|
|
144
|
-
y: f
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
function j(t, e, i) {
|
|
148
|
-
let n;
|
|
149
|
-
if (e === "viewport")
|
|
150
|
-
n = xt(t, i);
|
|
151
|
-
else if (e === "document")
|
|
152
|
-
n = wt(b(t));
|
|
153
|
-
else if (v(e))
|
|
154
|
-
n = vt(e, i);
|
|
155
|
-
else {
|
|
156
|
-
const o = tt(t);
|
|
157
|
-
n = {
|
|
158
|
-
x: e.x - o.x,
|
|
159
|
-
y: e.y - o.y,
|
|
160
|
-
width: e.width,
|
|
161
|
-
height: e.height
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
return J(n);
|
|
165
|
-
}
|
|
166
|
-
function it(t, e) {
|
|
167
|
-
const i = S(t);
|
|
168
|
-
return i === e || !v(i) || A(i) ? !1 : R(i).position === "fixed" || it(i, e);
|
|
169
|
-
}
|
|
170
|
-
function Rt(t, e) {
|
|
171
|
-
const i = e.get(t);
|
|
172
|
-
if (i)
|
|
173
|
-
return i;
|
|
174
|
-
let n = V(t, [], !1).filter((c) => v(c) && _(c) !== "body"), o = null;
|
|
175
|
-
const r = R(t).position === "fixed";
|
|
176
|
-
let s = r ? S(t) : t;
|
|
177
|
-
for (; v(s) && !A(s); ) {
|
|
178
|
-
const c = R(s), l = Q(s);
|
|
179
|
-
!l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || q(s) && !l && it(t, s)) ? n = n.filter((u) => u !== s) : o = c, s = S(s);
|
|
180
|
-
}
|
|
181
|
-
return e.set(t, n), n;
|
|
182
|
-
}
|
|
183
|
-
function bt(t) {
|
|
184
|
-
let {
|
|
185
|
-
element: e,
|
|
186
|
-
boundary: i,
|
|
187
|
-
rootBoundary: n,
|
|
188
|
-
strategy: o
|
|
189
|
-
} = t;
|
|
190
|
-
const s = [...i === "clippingAncestors" ? $(e) ? [] : Rt(e, this._c) : [].concat(i), n], c = j(e, s[0], o);
|
|
191
|
-
let l = c.top, f = c.right, u = c.bottom, a = c.left;
|
|
192
|
-
for (let d = 1; d < s.length; d++) {
|
|
193
|
-
const h = j(e, s[d], o);
|
|
194
|
-
l = E(h.top, l), f = N(h.right, f), u = N(h.bottom, u), a = E(h.left, a);
|
|
195
|
-
}
|
|
196
|
-
return {
|
|
197
|
-
width: f - a,
|
|
198
|
-
height: u - l,
|
|
199
|
-
x: a,
|
|
200
|
-
y: l
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
function Ct(t) {
|
|
204
|
-
const {
|
|
205
|
-
width: e,
|
|
206
|
-
height: i
|
|
207
|
-
} = Z(t);
|
|
208
|
-
return {
|
|
209
|
-
width: e,
|
|
210
|
-
height: i
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
function Ot(t, e, i) {
|
|
214
|
-
const n = T(e), o = b(e), r = i === "fixed", s = L(t, !0, r, e);
|
|
215
|
-
let c = {
|
|
216
|
-
scrollLeft: 0,
|
|
217
|
-
scrollTop: 0
|
|
218
|
-
};
|
|
219
|
-
const l = w(0);
|
|
220
|
-
function f() {
|
|
221
|
-
l.x = I(o);
|
|
222
|
-
}
|
|
223
|
-
if (n || !n && !r)
|
|
224
|
-
if ((_(e) !== "body" || q(o)) && (c = H(e)), n) {
|
|
225
|
-
const h = L(e, !0, r, e);
|
|
226
|
-
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
227
|
-
} else o && f();
|
|
228
|
-
r && !n && o && f();
|
|
229
|
-
const u = o && !n && !r ? et(o, c) : w(0), a = s.left + c.scrollLeft - l.x - u.x, d = s.top + c.scrollTop - l.y - u.y;
|
|
230
|
-
return {
|
|
231
|
-
x: a,
|
|
232
|
-
y: d,
|
|
233
|
-
width: s.width,
|
|
234
|
-
height: s.height
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
function M(t) {
|
|
238
|
-
return R(t).position === "static";
|
|
239
|
-
}
|
|
240
|
-
function G(t, e) {
|
|
241
|
-
if (!T(t) || R(t).position === "fixed")
|
|
242
|
-
return null;
|
|
243
|
-
if (e)
|
|
244
|
-
return e(t);
|
|
245
|
-
let i = t.offsetParent;
|
|
246
|
-
return b(t) === i && (i = i.ownerDocument.body), i;
|
|
247
|
-
}
|
|
248
|
-
function nt(t, e) {
|
|
249
|
-
const i = O(t);
|
|
250
|
-
if ($(t))
|
|
251
|
-
return i;
|
|
252
|
-
if (!T(t)) {
|
|
253
|
-
let o = S(t);
|
|
254
|
-
for (; o && !A(o); ) {
|
|
255
|
-
if (v(o) && !M(o))
|
|
256
|
-
return o;
|
|
257
|
-
o = S(o);
|
|
258
|
-
}
|
|
259
|
-
return i;
|
|
260
|
-
}
|
|
261
|
-
let n = G(t, e);
|
|
262
|
-
for (; n && at(n) && M(n); )
|
|
263
|
-
n = G(n, e);
|
|
264
|
-
return n && A(n) && M(n) && !Q(n) ? i : n || dt(t) || i;
|
|
265
|
-
}
|
|
266
|
-
const Lt = async function(t) {
|
|
267
|
-
const e = this.getOffsetParent || nt, i = this.getDimensions, n = await i(t.floating);
|
|
268
|
-
return {
|
|
269
|
-
reference: Ot(t.reference, await e(t.floating), t.strategy),
|
|
270
|
-
floating: {
|
|
271
|
-
x: 0,
|
|
272
|
-
y: 0,
|
|
273
|
-
width: n.width,
|
|
274
|
-
height: n.height
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
function Tt(t) {
|
|
279
|
-
return R(t).direction === "rtl";
|
|
280
|
-
}
|
|
281
|
-
const Et = {
|
|
282
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: mt,
|
|
283
|
-
getDocumentElement: b,
|
|
284
|
-
getClippingRect: bt,
|
|
285
|
-
getOffsetParent: nt,
|
|
286
|
-
getElementRects: Lt,
|
|
287
|
-
getClientRects: yt,
|
|
288
|
-
getDimensions: Ct,
|
|
289
|
-
getScale: F,
|
|
290
|
-
isElement: v,
|
|
291
|
-
isRTL: Tt
|
|
292
|
-
};
|
|
293
|
-
function ot(t, e) {
|
|
294
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
295
|
-
}
|
|
296
|
-
function Ft(t, e) {
|
|
297
|
-
let i = null, n;
|
|
298
|
-
const o = b(t);
|
|
299
|
-
function r() {
|
|
300
|
-
var c;
|
|
301
|
-
clearTimeout(n), (c = i) == null || c.disconnect(), i = null;
|
|
302
|
-
}
|
|
303
|
-
function s(c, l) {
|
|
304
|
-
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
305
|
-
const f = t.getBoundingClientRect(), {
|
|
306
|
-
left: u,
|
|
307
|
-
top: a,
|
|
308
|
-
width: d,
|
|
309
|
-
height: h
|
|
310
|
-
} = f;
|
|
311
|
-
if (c || e(), !d || !h)
|
|
312
|
-
return;
|
|
313
|
-
const m = D(a), p = D(o.clientWidth - (u + d)), y = D(o.clientHeight - (a + h)), g = D(u), C = {
|
|
314
|
-
rootMargin: -m + "px " + -p + "px " + -y + "px " + -g + "px",
|
|
315
|
-
threshold: E(0, N(1, l)) || 1
|
|
316
|
-
};
|
|
317
|
-
let W = !0;
|
|
318
|
-
function k(P) {
|
|
319
|
-
const B = P[0].intersectionRatio;
|
|
320
|
-
if (B !== l) {
|
|
321
|
-
if (!W)
|
|
322
|
-
return s();
|
|
323
|
-
B ? s(!1, B) : n = setTimeout(() => {
|
|
324
|
-
s(!1, 1e-7);
|
|
325
|
-
}, 1e3);
|
|
1
|
+
import { useControlledValue as T } from "./index305.js";
|
|
2
|
+
import { rangeIncludesDate as h } from "./index125.js";
|
|
3
|
+
import { addToRange as k } from "./index311.js";
|
|
4
|
+
import { rangeContainsModifiers as q } from "./index313.js";
|
|
5
|
+
function v(f, s) {
|
|
6
|
+
const { disabled: d, excludeDisabled: r, resetOnSelect: a, selected: c, required: m, onSelect: l } = f, [u, S] = T(c, l ? c : void 0), o = l ? c : u;
|
|
7
|
+
return {
|
|
8
|
+
selected: o,
|
|
9
|
+
select: (n, y, R) => {
|
|
10
|
+
const { min: p, max: x } = f;
|
|
11
|
+
let e;
|
|
12
|
+
if (n) {
|
|
13
|
+
const t = o?.from, i = o?.to, C = !!t && !!i, F = !!t && !!i && s.isSameDay(t, i) && s.isSameDay(n, t);
|
|
14
|
+
a && (C || !o?.from) ? !m && F ? e = void 0 : e = { from: n, to: void 0 } : e = k(n, o, p, x, m, s);
|
|
326
15
|
}
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
i = new IntersectionObserver(k, {
|
|
331
|
-
...C,
|
|
332
|
-
// Handle <iframe>s
|
|
333
|
-
root: o.ownerDocument
|
|
334
|
-
});
|
|
335
|
-
} catch {
|
|
336
|
-
i = new IntersectionObserver(k, C);
|
|
337
|
-
}
|
|
338
|
-
i.observe(t);
|
|
339
|
-
}
|
|
340
|
-
return s(!0), r;
|
|
341
|
-
}
|
|
342
|
-
function Dt(t, e, i, n) {
|
|
343
|
-
n === void 0 && (n = {});
|
|
344
|
-
const {
|
|
345
|
-
ancestorScroll: o = !0,
|
|
346
|
-
ancestorResize: r = !0,
|
|
347
|
-
elementResize: s = typeof ResizeObserver == "function",
|
|
348
|
-
layoutShift: c = typeof IntersectionObserver == "function",
|
|
349
|
-
animationFrame: l = !1
|
|
350
|
-
} = n, f = X(t), u = o || r ? [...f ? V(f) : [], ...e ? V(e) : []] : [];
|
|
351
|
-
u.forEach((g) => {
|
|
352
|
-
o && g.addEventListener("scroll", i, {
|
|
353
|
-
passive: !0
|
|
354
|
-
}), r && g.addEventListener("resize", i);
|
|
355
|
-
});
|
|
356
|
-
const a = f && c ? Ft(f, i) : null;
|
|
357
|
-
let d = -1, h = null;
|
|
358
|
-
s && (h = new ResizeObserver((g) => {
|
|
359
|
-
let [x] = g;
|
|
360
|
-
x && x.target === f && h && e && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
361
|
-
var C;
|
|
362
|
-
(C = h) == null || C.observe(e);
|
|
363
|
-
})), i();
|
|
364
|
-
}), f && !l && h.observe(f), e && h.observe(e));
|
|
365
|
-
let m, p = l ? L(t) : null;
|
|
366
|
-
l && y();
|
|
367
|
-
function y() {
|
|
368
|
-
const g = L(t);
|
|
369
|
-
p && !ot(p, g) && i(), p = g, m = requestAnimationFrame(y);
|
|
370
|
-
}
|
|
371
|
-
return i(), () => {
|
|
372
|
-
var g;
|
|
373
|
-
u.forEach((x) => {
|
|
374
|
-
o && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
|
|
375
|
-
}), a?.(), (g = h) == null || g.disconnect(), h = null, l && cancelAnimationFrame(m);
|
|
16
|
+
return r && d && e?.from && e.to && q({ from: e.from, to: e.to }, d, s) && (e.from = n, e.to = void 0), l || S(e), l?.(e, n, y, R), e;
|
|
17
|
+
},
|
|
18
|
+
isSelected: (n) => o && h(o, n, !1, s)
|
|
376
19
|
};
|
|
377
20
|
}
|
|
378
|
-
const zt = ft, At = ut, Ht = st, It = rt, Mt = lt, Nt = ht, Vt = (t, e, i) => {
|
|
379
|
-
const n = /* @__PURE__ */ new Map(), o = {
|
|
380
|
-
platform: Et,
|
|
381
|
-
...i
|
|
382
|
-
}, r = {
|
|
383
|
-
...o.platform,
|
|
384
|
-
_c: n
|
|
385
|
-
};
|
|
386
|
-
return ct(t, e, {
|
|
387
|
-
...o,
|
|
388
|
-
platform: r
|
|
389
|
-
});
|
|
390
|
-
};
|
|
391
21
|
export {
|
|
392
|
-
|
|
393
|
-
Vt as computePosition,
|
|
394
|
-
Ht as flip,
|
|
395
|
-
V as getOverflowAncestors,
|
|
396
|
-
Mt as hide,
|
|
397
|
-
Nt as limitShift,
|
|
398
|
-
zt as offset,
|
|
399
|
-
Et as platform,
|
|
400
|
-
At as shift,
|
|
401
|
-
It as size
|
|
22
|
+
v as useRange
|
|
402
23
|
};
|
|
403
24
|
//# sourceMappingURL=index309.js.map
|