@a-ui/react 7.13.0-beta.3 → 7.13.0-beta.5
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/cjs/index10.js +1 -1
- package/cjs/index100.js +1 -1
- package/cjs/index101.js +1 -1
- package/cjs/index102.js +1 -5
- package/cjs/index103.js +1 -1
- package/cjs/index104.js +1 -1
- package/cjs/index105.js +1 -2
- package/cjs/index106.js +1 -1
- package/cjs/index107.js +1 -1
- package/cjs/index108.js +1 -1
- package/cjs/index109.js +1 -1
- package/cjs/index11.js +1 -1
- package/cjs/index110.js +1 -10
- package/cjs/index111.js +1 -1
- package/cjs/index112.js +1 -1
- package/cjs/index113.js +1 -1
- package/cjs/index114.js +2 -1
- package/cjs/index115.js +1 -1
- package/cjs/index116.js +1 -1
- package/cjs/index117.js +1 -5
- package/cjs/index118.js +1 -9
- package/cjs/index119.js +10 -1
- package/cjs/index12.js +1 -1
- package/cjs/index120.js +1 -1
- package/cjs/index121.js +1 -1
- package/cjs/index122.js +1 -1
- package/cjs/index123.js +1 -1
- package/cjs/index124.js +1 -1
- package/cjs/index125.js +1 -1
- package/cjs/index126.js +5 -1
- package/cjs/index127.js +9 -1
- package/cjs/index128.js +1 -1
- package/cjs/index129.js +1 -1
- package/cjs/index13.js +1 -1
- package/cjs/index130.js +1 -1
- package/cjs/index131.js +1 -1
- package/cjs/index132.js +1 -1
- package/cjs/index133.js +1 -1
- package/cjs/index134.js +1 -1
- package/cjs/index135.js +1 -1
- package/cjs/index136.js +1 -1
- package/cjs/index138.js +6 -9
- package/cjs/index139.js +8 -1
- package/cjs/index14.js +1 -1
- package/cjs/index140.js +5 -1
- package/cjs/index141.js +1 -1
- package/cjs/index142.js +1 -8
- package/cjs/index143.js +1 -8
- package/cjs/index144.js +1 -5
- package/cjs/index145.js +11 -1
- package/cjs/index146.js +1 -1
- package/cjs/index147.js +1 -1
- package/cjs/index148.js +1 -1
- package/cjs/index149.js +1 -1
- package/cjs/index150.js +1 -1
- package/cjs/index151.js +1 -1
- package/cjs/index152.js +1 -1
- package/cjs/index153.js +1 -1
- package/cjs/index154.js +1 -1
- package/cjs/index155.js +1 -1
- package/cjs/index156.js +1 -1
- package/cjs/index157.js +1 -1
- package/cjs/index158.js +1 -1
- package/cjs/index159.js +1 -1
- package/cjs/index16.js +1 -1
- package/cjs/index160.js +1 -1
- package/cjs/index161.js +1 -1
- package/cjs/index162.js +1 -1
- package/cjs/index163.js +1 -1
- package/cjs/index164.js +1 -1
- package/cjs/index165.js +1 -1
- package/cjs/index166.js +1 -1
- package/cjs/index167.js +1 -1
- package/cjs/index168.js +1 -1
- package/cjs/index169.js +1 -1
- package/cjs/index17.js +1 -1
- package/cjs/index170.js +1 -1
- package/cjs/index171.js +1 -1
- package/cjs/index172.js +1 -1
- package/cjs/index173.js +1 -1
- package/cjs/index174.js +1 -1
- package/cjs/index175.js +1 -1
- package/cjs/index176.js +1 -1
- package/cjs/index177.js +1 -1
- package/cjs/index178.js +1 -1
- package/cjs/index179.js +1 -1
- package/cjs/index18.js +1 -1
- package/cjs/index180.js +1 -1
- package/cjs/index181.js +1 -1
- package/cjs/index182.js +1 -1
- package/cjs/index183.js +1 -1
- package/cjs/index184.js +1 -1
- package/cjs/index185.js +1 -1
- package/cjs/index186.js +1 -1
- package/cjs/index187.js +1 -1
- package/cjs/index188.js +1 -1
- package/cjs/index189.js +1 -1
- package/cjs/index190.js +1 -1
- package/cjs/index191.js +1 -1
- package/cjs/index192.js +1 -1
- package/cjs/index193.js +1 -1
- package/cjs/index194.js +1 -1
- package/cjs/index195.js +1 -1
- package/cjs/index196.js +1 -1
- package/cjs/index197.js +1 -1
- package/cjs/index198.js +1 -1
- package/cjs/index199.js +1 -1
- package/cjs/index2.js +1 -1
- package/cjs/index20.js +1 -1
- package/cjs/index200.js +1 -1
- package/cjs/index201.js +1 -1
- package/cjs/index202.js +1 -1
- package/cjs/index203.js +1 -1
- package/cjs/index204.js +1 -1
- package/cjs/index205.js +1 -1
- package/cjs/index206.js +1 -1
- package/cjs/index207.js +1 -1
- package/cjs/index208.js +1 -1
- package/cjs/index209.js +1 -1
- package/cjs/index21.js +1 -1
- package/cjs/index210.js +1 -1
- package/cjs/index211.js +1 -1
- package/cjs/index212.js +1 -1
- package/cjs/index213.js +1 -1
- package/cjs/index214.js +1 -1
- package/cjs/index215.js +1 -1
- package/cjs/index216.js +1 -1
- package/cjs/index217.js +1 -1
- package/cjs/index218.js +1 -1
- package/cjs/index219.js +1 -1
- package/cjs/index22.js +1 -1
- package/cjs/index220.js +1 -1
- package/cjs/index221.js +1 -1
- package/cjs/index222.js +1 -1
- package/cjs/index223.js +1 -1
- package/cjs/index224.js +1 -1
- package/cjs/index225.js +1 -1
- package/cjs/index226.js +1 -1
- package/cjs/index227.js +1 -1
- package/cjs/index228.js +1 -1
- package/cjs/index229.js +1 -1
- package/cjs/index230.js +1 -1
- package/cjs/index231.js +1 -1
- package/cjs/index232.js +1 -1
- package/cjs/index233.js +1 -1
- package/cjs/index234.js +1 -1
- package/cjs/index235.js +1 -1
- package/cjs/index24.js +1 -1
- package/cjs/index25.js +1 -1
- package/cjs/index26.js +1 -1
- package/cjs/index27.js +1 -1
- package/cjs/index28.js +1 -1
- package/cjs/index3.js +1 -1
- package/cjs/index30.js +1 -1
- package/cjs/index31.js +1 -1
- package/cjs/index32.js +1 -1
- package/cjs/index33.js +1 -1
- package/cjs/index34.js +1 -1
- package/cjs/index36.js +1 -1
- package/cjs/index37.js +1 -1
- package/cjs/index38.js +1 -1
- package/cjs/index39.js +1 -1
- package/cjs/index4.js +1 -1
- package/cjs/index40.js +1 -1
- package/cjs/index41.js +1 -1
- package/cjs/index42.js +1 -1
- package/cjs/index43.js +1 -1
- package/cjs/index44.js +1 -1
- package/cjs/index45.js +1 -1
- package/cjs/index46.js +1 -1
- package/cjs/index47.js +1 -1
- package/cjs/index48.js +1 -1
- package/cjs/index49.js +1 -1
- package/cjs/index5.js +1 -1
- package/cjs/index50.js +1 -1
- package/cjs/index51.js +1 -1
- package/cjs/index52.js +1 -1
- package/cjs/index53.js +1 -1
- package/cjs/index54.js +1 -1
- package/cjs/index55.js +1 -1
- package/cjs/index56.js +1 -0
- package/cjs/index57.js +1 -1
- package/cjs/index58.js +1 -1
- package/cjs/index59.js +1 -0
- package/cjs/index6.js +1 -1
- package/cjs/index60.js +1 -1
- package/cjs/index61.js +7 -1
- package/cjs/index62.js +1 -1
- package/cjs/index63.js +1 -7
- package/cjs/index64.js +1 -0
- package/cjs/index65.js +1 -0
- package/cjs/index66.js +1 -1
- package/cjs/index67.js +1 -1
- package/cjs/index68.js +1 -1
- package/cjs/index69.js +1 -1
- package/cjs/index70.js +1 -1
- package/cjs/index71.js +1 -1
- package/cjs/index72.js +1 -1
- package/cjs/index73.js +1 -1
- package/cjs/index74.js +1 -1
- package/cjs/index75.js +1 -1
- package/cjs/index76.js +1 -1
- package/cjs/index77.js +1 -1
- package/cjs/index78.js +1 -1
- package/cjs/index79.js +1 -1
- package/cjs/index8.js +1 -1
- package/cjs/index80.js +1 -1
- package/cjs/index81.js +1 -1
- package/cjs/index83.js +1 -1
- package/cjs/index84.js +1 -1
- package/cjs/index85.js +1 -1
- package/cjs/index86.js +1 -0
- package/cjs/index87.js +1 -1
- package/cjs/index88.js +1 -1
- package/cjs/index89.js +1 -1
- package/cjs/index9.js +1 -1
- package/cjs/index90.js +1 -1
- package/cjs/index91.js +5 -1
- package/cjs/index92.js +1 -1
- package/cjs/index93.js +1 -1
- package/cjs/index94.js +1 -1
- package/cjs/index95.js +1 -1
- package/cjs/index96.js +1 -1
- package/cjs/index97.js +1 -1
- package/cjs/index98.js +1 -1
- package/cjs/index99.js +1 -1
- package/es/index10.mjs +4 -4
- package/es/index100.mjs +5 -2
- package/es/index101.mjs +11 -398
- package/es/index102.mjs +244 -37
- package/es/index103.mjs +89 -2
- package/es/index104.mjs +14 -9
- package/es/index105.mjs +4 -327
- package/es/index106.mjs +2 -50
- package/es/index107.mjs +2 -2
- package/es/index108.mjs +2 -65
- package/es/index109.mjs +385 -37
- package/es/index11.mjs +1 -1
- package/es/index110.mjs +123 -58
- package/es/index111.mjs +136 -46
- package/es/index112.mjs +2 -40
- package/es/index113.mjs +8 -2
- package/es/index114.mjs +327 -2
- package/es/index115.mjs +50 -2
- package/es/index116.mjs +2 -31
- package/es/index117.mjs +65 -19
- package/es/index118.mjs +40 -58
- package/es/index119.mjs +59 -62
- package/es/index12.mjs +14 -14
- package/es/index120.mjs +45 -15
- package/es/index121.mjs +39 -6
- package/es/index122.mjs +2 -7
- package/es/index123.mjs +2 -6
- package/es/index124.mjs +2 -6
- package/es/index125.mjs +30 -4
- package/es/index126.mjs +19 -5
- package/es/index127.mjs +60 -6
- package/es/index128.mjs +62 -4
- package/es/index129.mjs +13 -66
- package/es/index13.mjs +2 -2
- package/es/index130.mjs +7 -3
- package/es/index131.mjs +6 -4
- package/es/index132.mjs +5 -10
- package/es/index133.mjs +6 -2
- package/es/index134.mjs +4 -390
- package/es/index135.mjs +6 -124
- package/es/index136.mjs +4 -133
- package/es/index138.mjs +73 -55
- package/es/index139.mjs +93 -2
- package/es/index14.mjs +3 -3
- package/es/index140.mjs +52 -2
- package/es/index141.mjs +8 -2
- package/es/index142.mjs +4 -75
- package/es/index143.mjs +48 -89
- package/es/index144.mjs +2 -52
- package/es/index145.mjs +58 -8
- package/es/index146.mjs +2 -5
- package/es/index147.mjs +2 -52
- package/es/index148.mjs +5 -2
- package/es/index149.mjs +5 -2
- package/es/index150.mjs +7 -2
- package/es/index151.mjs +12 -4
- package/es/index152.mjs +15 -4
- package/es/index153.mjs +9 -7
- package/es/index154.mjs +5 -12
- package/es/index155.mjs +5 -15
- package/es/index156.mjs +4 -8
- package/es/index157.mjs +512 -5
- package/es/index158.mjs +50 -6
- package/es/index159.mjs +17 -4
- package/es/index16.mjs +1 -1
- package/es/index160.mjs +16 -511
- package/es/index161.mjs +5 -50
- package/es/index162.mjs +7 -17
- package/es/index163.mjs +6 -18
- package/es/index164.mjs +4 -4
- package/es/index165.mjs +5 -7
- package/es/index166.mjs +8 -5
- package/es/index167.mjs +4 -4
- package/es/index168.mjs +7 -5
- package/es/index169.mjs +11 -8
- package/es/index17.mjs +4 -4
- package/es/index170.mjs +8 -4
- package/es/index171.mjs +8 -7
- package/es/index172.mjs +12 -11
- package/es/index173.mjs +3 -8
- package/es/index174.mjs +32 -8
- package/es/index175.mjs +65 -13
- package/es/index176.mjs +7 -3
- package/es/index177.mjs +7 -32
- package/es/index178.mjs +7 -65
- package/es/index179.mjs +6 -7
- package/es/index18.mjs +8 -8
- package/es/index180.mjs +13 -7
- package/es/index181.mjs +2 -7
- package/es/index182.mjs +2 -7
- package/es/index183.mjs +2 -14
- package/es/index184.mjs +55 -66
- package/es/index185.mjs +22 -31
- package/es/index186.mjs +41 -9
- package/es/index187.mjs +58 -150
- package/es/index188.mjs +31 -107
- package/es/index189.mjs +12 -67
- package/es/index190.mjs +62 -31
- package/es/index191.mjs +62 -9
- package/es/index192.mjs +62 -107
- package/es/index193.mjs +62 -106
- package/es/index194.mjs +37 -54
- package/es/index195.mjs +36 -17
- package/es/index196.mjs +45 -33
- package/es/index197.mjs +24 -42
- package/es/index198.mjs +34 -29
- package/es/index199.mjs +63 -10
- package/es/index2.mjs +1 -1
- package/es/index20.mjs +2 -2
- package/es/index200.mjs +43 -39
- package/es/index201.mjs +70 -41
- package/es/index202.mjs +28 -50
- package/es/index203.mjs +32 -54
- package/es/index204.mjs +35 -34
- package/es/index205.mjs +19 -35
- package/es/index206.mjs +13 -42
- package/es/index207.mjs +18 -37
- package/es/index208.mjs +19 -31
- package/es/index209.mjs +18 -60
- package/es/index21.mjs +1 -1
- package/es/index210.mjs +18 -60
- package/es/index211.mjs +11 -88
- package/es/index212.mjs +35 -36
- package/es/index213.mjs +35 -36
- package/es/index214.mjs +11 -38
- package/es/index215.mjs +11 -22
- package/es/index216.mjs +67 -23
- package/es/index217.mjs +31 -24
- package/es/index218.mjs +9 -25
- package/es/index219.mjs +151 -22
- package/es/index22.mjs +1 -1
- package/es/index220.mjs +107 -23
- package/es/index221.mjs +17 -11
- package/es/index222.mjs +98 -37
- package/es/index223.mjs +47 -40
- package/es/index224.mjs +67 -13
- package/es/index225.mjs +31 -14
- package/es/index226.mjs +9 -16
- package/es/index227.mjs +108 -29
- package/es/index228.mjs +107 -13
- package/es/index229.mjs +58 -6
- package/es/index230.mjs +8 -19
- package/es/index231.mjs +17 -98
- package/es/index232.mjs +7 -47
- package/es/index233.mjs +15 -58
- package/es/index234.mjs +28 -8
- package/es/index235.mjs +12 -19
- package/es/index24.mjs +4 -4
- package/es/index25.mjs +2 -2
- package/es/index26.mjs +1 -1
- package/es/index27.mjs +1 -1
- package/es/index28.mjs +1 -1
- package/es/index3.mjs +1 -1
- package/es/index30.mjs +3 -3
- package/es/index31.mjs +2 -2
- package/es/index32.mjs +2 -2
- package/es/index33.mjs +3 -3
- package/es/index34.mjs +1 -1
- package/es/index36.mjs +3 -3
- package/es/index37.mjs +3 -3
- package/es/index38.mjs +3 -3
- package/es/index39.mjs +3 -3
- package/es/index4.mjs +2 -2
- package/es/index40.mjs +2 -2
- package/es/index41.mjs +1 -1
- package/es/index42.mjs +4 -4
- package/es/index43.mjs +1 -1
- package/es/index44.mjs +2 -2
- package/es/index45.mjs +3 -3
- package/es/index46.mjs +3 -3
- package/es/index47.mjs +2 -2
- package/es/index48.mjs +1 -1
- package/es/index49.mjs +2 -2
- package/es/index50.mjs +1 -1
- package/es/index51.mjs +11 -8
- package/es/index52.mjs +6 -47
- package/es/index53.mjs +21 -11
- package/es/index54.mjs +8 -28
- package/es/index55.mjs +27 -29
- package/es/index56.mjs +49 -0
- package/es/index57.mjs +47 -6
- package/es/index58.mjs +29 -46
- package/es/index59.mjs +19 -0
- package/es/index6.mjs +3 -3
- package/es/index60.mjs +29 -17
- package/es/index61.mjs +406 -26
- package/es/index62.mjs +28 -20
- package/es/index63.mjs +34 -407
- package/es/index64.mjs +19 -0
- package/es/index65.mjs +37 -0
- package/es/index66.mjs +2 -14
- package/es/index67.mjs +71 -56
- package/es/index68.mjs +28 -61
- package/es/index69.mjs +33 -57
- package/es/index70.mjs +4 -2
- package/es/index71.mjs +33 -72
- package/es/index72.mjs +4 -28
- package/es/index73.mjs +4 -35
- package/es/index74.mjs +4 -3
- package/es/index75.mjs +4 -34
- package/es/index76.mjs +4 -4
- package/es/index77.mjs +16 -4
- package/es/index78.mjs +84 -4
- package/es/index79.mjs +5 -4
- package/es/index8.mjs +3 -3
- package/es/index80.mjs +24 -4
- package/es/index81.mjs +53 -15
- package/es/index83.mjs +4 -5
- package/es/index84.mjs +115 -21
- package/es/index85.mjs +60 -53
- package/es/index86.mjs +62 -0
- package/es/index87.mjs +13 -4
- package/es/index88.mjs +57 -117
- package/es/index89.mjs +5 -5
- package/es/index9.mjs +1 -1
- package/es/index90.mjs +395 -21
- package/es/index91.mjs +40 -2
- package/es/index92.mjs +23 -234
- package/es/index93.mjs +2 -2
- package/es/index94.mjs +236 -12
- package/es/index95.mjs +2 -247
- package/es/index96.mjs +60 -82
- package/es/index97.mjs +5 -15
- package/es/index98.mjs +5 -4
- package/es/index99.mjs +11 -2
- package/package.json +7 -5
package/es/index101.mjs
CHANGED
|
@@ -1,400 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
$: c
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function X(t) {
|
|
15
|
-
return v(t) ? t : t.contextElement;
|
|
16
|
-
}
|
|
17
|
-
function F(t) {
|
|
18
|
-
const e = X(t);
|
|
19
|
-
if (!T(e))
|
|
20
|
-
return m(1);
|
|
21
|
-
const o = e.getBoundingClientRect(), {
|
|
22
|
-
width: n,
|
|
23
|
-
height: i,
|
|
24
|
-
$: r
|
|
25
|
-
} = Z(e);
|
|
26
|
-
let s = (r ? A(o.width) : o.width) / n, c = (r ? A(o.height) : o.height) / i;
|
|
27
|
-
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
|
-
x: s,
|
|
29
|
-
y: c
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const ht = /* @__PURE__ */ m(0);
|
|
33
|
-
function tt(t) {
|
|
34
|
-
const e = O(t);
|
|
35
|
-
return !Y() || !e.visualViewport ? ht : {
|
|
36
|
-
x: e.visualViewport.offsetLeft,
|
|
37
|
-
y: e.visualViewport.offsetTop
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function dt(t, e, o) {
|
|
41
|
-
return e === void 0 && (e = !1), !o || e && o !== O(t) ? !1 : e;
|
|
42
|
-
}
|
|
43
|
-
function L(t, e, o, n) {
|
|
44
|
-
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
45
|
-
const i = t.getBoundingClientRect(), r = X(t);
|
|
46
|
-
let s = m(1);
|
|
47
|
-
e && (n ? v(n) && (s = F(n)) : s = F(t));
|
|
48
|
-
const c = dt(r, o, n) ? tt(r) : m(0);
|
|
49
|
-
let l = (i.left + c.x) / s.x, f = (i.top + c.y) / s.y, u = i.width / s.x, h = i.height / s.y;
|
|
50
|
-
if (r) {
|
|
51
|
-
const d = O(r), a = n && v(n) ? O(n) : n;
|
|
52
|
-
let w = d, p = U(w);
|
|
53
|
-
for (; p && n && a !== w; ) {
|
|
54
|
-
const y = F(p), g = p.getBoundingClientRect(), x = R(p), C = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * y.x, S = g.top + (p.clientTop + parseFloat(x.paddingTop)) * y.y;
|
|
55
|
-
l *= y.x, f *= y.y, u *= y.x, h *= y.y, l += C, f += S, w = O(p), p = U(w);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return J({
|
|
59
|
-
width: u,
|
|
60
|
-
height: h,
|
|
61
|
-
x: l,
|
|
62
|
-
y: f
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function M(t, e) {
|
|
66
|
-
const o = I(t).scrollLeft;
|
|
67
|
-
return e ? e.left + o : L(b(t)).left + o;
|
|
68
|
-
}
|
|
69
|
-
function et(t, e) {
|
|
70
|
-
const o = t.getBoundingClientRect(), n = o.left + e.scrollLeft - M(t, o), i = o.top + e.scrollTop;
|
|
71
|
-
return {
|
|
72
|
-
x: n,
|
|
73
|
-
y: i
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function gt(t) {
|
|
77
|
-
let {
|
|
78
|
-
elements: e,
|
|
79
|
-
rect: o,
|
|
80
|
-
offsetParent: n,
|
|
81
|
-
strategy: i
|
|
82
|
-
} = t;
|
|
83
|
-
const r = i === "fixed", s = b(n), c = e ? $(e.floating) : !1;
|
|
84
|
-
if (n === s || c && r)
|
|
85
|
-
return o;
|
|
86
|
-
let l = {
|
|
87
|
-
scrollLeft: 0,
|
|
88
|
-
scrollTop: 0
|
|
89
|
-
}, f = m(1);
|
|
90
|
-
const u = m(0), h = T(n);
|
|
91
|
-
if ((h || !h && !r) && ((_(n) !== "body" || q(s)) && (l = I(n)), h)) {
|
|
92
|
-
const a = L(n);
|
|
93
|
-
f = F(n), u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
|
|
94
|
-
}
|
|
95
|
-
const d = s && !h && !r ? et(s, l) : m(0);
|
|
96
|
-
return {
|
|
97
|
-
width: o.width * f.x,
|
|
98
|
-
height: o.height * f.y,
|
|
99
|
-
x: o.x * f.x - l.scrollLeft * f.x + u.x + d.x,
|
|
100
|
-
y: o.y * f.y - l.scrollTop * f.y + u.y + d.y
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function pt(t) {
|
|
104
|
-
return Array.from(t.getClientRects());
|
|
105
|
-
}
|
|
106
|
-
function wt(t) {
|
|
107
|
-
const e = b(t), o = I(t), n = t.ownerDocument.body, i = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
108
|
-
let s = -o.scrollLeft + M(t);
|
|
109
|
-
const c = -o.scrollTop;
|
|
110
|
-
return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - i), {
|
|
111
|
-
width: i,
|
|
112
|
-
height: r,
|
|
113
|
-
x: s,
|
|
114
|
-
y: c
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
const K = 25;
|
|
118
|
-
function yt(t, e) {
|
|
119
|
-
const o = O(t), n = b(t), i = o.visualViewport;
|
|
120
|
-
let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
|
|
121
|
-
if (i) {
|
|
122
|
-
r = i.width, s = i.height;
|
|
123
|
-
const u = Y();
|
|
124
|
-
(!u || u && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
|
|
125
|
-
}
|
|
126
|
-
const f = M(n);
|
|
127
|
-
if (f <= 0) {
|
|
128
|
-
const u = n.ownerDocument, h = u.body, d = getComputedStyle(h), a = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, w = Math.abs(n.clientWidth - h.clientWidth - a);
|
|
129
|
-
w <= K && (r -= w);
|
|
130
|
-
} else f <= K && (r += f);
|
|
131
|
-
return {
|
|
132
|
-
width: r,
|
|
133
|
-
height: s,
|
|
134
|
-
x: c,
|
|
135
|
-
y: l
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
function mt(t, e) {
|
|
139
|
-
const o = L(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = T(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * 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, o) {
|
|
148
|
-
let n;
|
|
149
|
-
if (e === "viewport")
|
|
150
|
-
n = yt(t, o);
|
|
151
|
-
else if (e === "document")
|
|
152
|
-
n = wt(b(t));
|
|
153
|
-
else if (v(e))
|
|
154
|
-
n = mt(e, o);
|
|
155
|
-
else {
|
|
156
|
-
const i = tt(t);
|
|
157
|
-
n = {
|
|
158
|
-
x: e.x - i.x,
|
|
159
|
-
y: e.y - i.y,
|
|
160
|
-
width: e.width,
|
|
161
|
-
height: e.height
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
return J(n);
|
|
165
|
-
}
|
|
166
|
-
function ot(t, e) {
|
|
167
|
-
const o = W(t);
|
|
168
|
-
return o === e || !v(o) || H(o) ? !1 : R(o).position === "fixed" || ot(o, e);
|
|
169
|
-
}
|
|
170
|
-
function xt(t, e) {
|
|
171
|
-
const o = e.get(t);
|
|
172
|
-
if (o)
|
|
173
|
-
return o;
|
|
174
|
-
let n = z(t, [], !1).filter((c) => v(c) && _(c) !== "body"), i = null;
|
|
175
|
-
const r = R(t).position === "fixed";
|
|
176
|
-
let s = r ? W(t) : t;
|
|
177
|
-
for (; v(s) && !H(s); ) {
|
|
178
|
-
const c = R(s), l = Q(s);
|
|
179
|
-
!l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || q(s) && !l && ot(t, s)) ? n = n.filter((u) => u !== s) : i = c, s = W(s);
|
|
180
|
-
}
|
|
181
|
-
return e.set(t, n), n;
|
|
182
|
-
}
|
|
183
|
-
function vt(t) {
|
|
184
|
-
let {
|
|
185
|
-
element: e,
|
|
186
|
-
boundary: o,
|
|
187
|
-
rootBoundary: n,
|
|
188
|
-
strategy: i
|
|
189
|
-
} = t;
|
|
190
|
-
const s = [...o === "clippingAncestors" ? $(e) ? [] : xt(e, this._c) : [].concat(o), n], c = j(e, s[0], i);
|
|
191
|
-
let l = c.top, f = c.right, u = c.bottom, h = c.left;
|
|
192
|
-
for (let d = 1; d < s.length; d++) {
|
|
193
|
-
const a = j(e, s[d], i);
|
|
194
|
-
l = E(a.top, l), f = V(a.right, f), u = V(a.bottom, u), h = E(a.left, h);
|
|
195
|
-
}
|
|
196
|
-
return {
|
|
197
|
-
width: f - h,
|
|
198
|
-
height: u - l,
|
|
199
|
-
x: h,
|
|
200
|
-
y: l
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
function Rt(t) {
|
|
204
|
-
const {
|
|
205
|
-
width: e,
|
|
206
|
-
height: o
|
|
207
|
-
} = Z(t);
|
|
208
|
-
return {
|
|
209
|
-
width: e,
|
|
210
|
-
height: o
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
function bt(t, e, o) {
|
|
214
|
-
const n = T(e), i = b(e), r = o === "fixed", s = L(t, !0, r, e);
|
|
215
|
-
let c = {
|
|
216
|
-
scrollLeft: 0,
|
|
217
|
-
scrollTop: 0
|
|
218
|
-
};
|
|
219
|
-
const l = m(0);
|
|
220
|
-
function f() {
|
|
221
|
-
l.x = M(i);
|
|
222
|
-
}
|
|
223
|
-
if (n || !n && !r)
|
|
224
|
-
if ((_(e) !== "body" || q(i)) && (c = I(e)), n) {
|
|
225
|
-
const a = L(e, !0, r, e);
|
|
226
|
-
l.x = a.x + e.clientLeft, l.y = a.y + e.clientTop;
|
|
227
|
-
} else i && f();
|
|
228
|
-
r && !n && i && f();
|
|
229
|
-
const u = i && !n && !r ? et(i, c) : m(0), h = s.left + c.scrollLeft - l.x - u.x, d = s.top + c.scrollTop - l.y - u.y;
|
|
230
|
-
return {
|
|
231
|
-
x: h,
|
|
232
|
-
y: d,
|
|
233
|
-
width: s.width,
|
|
234
|
-
height: s.height
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
function N(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 o = t.offsetParent;
|
|
246
|
-
return b(t) === o && (o = o.ownerDocument.body), o;
|
|
247
|
-
}
|
|
248
|
-
function nt(t, e) {
|
|
249
|
-
const o = O(t);
|
|
250
|
-
if ($(t))
|
|
251
|
-
return o;
|
|
252
|
-
if (!T(t)) {
|
|
253
|
-
let i = W(t);
|
|
254
|
-
for (; i && !H(i); ) {
|
|
255
|
-
if (v(i) && !N(i))
|
|
256
|
-
return i;
|
|
257
|
-
i = W(i);
|
|
258
|
-
}
|
|
259
|
-
return o;
|
|
260
|
-
}
|
|
261
|
-
let n = G(t, e);
|
|
262
|
-
for (; n && ut(n) && N(n); )
|
|
263
|
-
n = G(n, e);
|
|
264
|
-
return n && H(n) && N(n) && !Q(n) ? o : n || at(t) || o;
|
|
265
|
-
}
|
|
266
|
-
const Ct = async function(t) {
|
|
267
|
-
const e = this.getOffsetParent || nt, o = this.getDimensions, n = await o(t.floating);
|
|
268
|
-
return {
|
|
269
|
-
reference: bt(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 Ot(t) {
|
|
279
|
-
return R(t).direction === "rtl";
|
|
280
|
-
}
|
|
281
|
-
const Lt = {
|
|
282
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: gt,
|
|
283
|
-
getDocumentElement: b,
|
|
284
|
-
getClippingRect: vt,
|
|
285
|
-
getOffsetParent: nt,
|
|
286
|
-
getElementRects: Ct,
|
|
287
|
-
getClientRects: pt,
|
|
288
|
-
getDimensions: Rt,
|
|
289
|
-
getScale: F,
|
|
290
|
-
isElement: v,
|
|
291
|
-
isRTL: Ot
|
|
292
|
-
};
|
|
293
|
-
function it(t, e) {
|
|
294
|
-
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
295
|
-
}
|
|
296
|
-
function Tt(t, e) {
|
|
297
|
-
let o = null, n;
|
|
298
|
-
const i = b(t);
|
|
299
|
-
function r() {
|
|
300
|
-
var c;
|
|
301
|
-
clearTimeout(n), (c = o) == null || c.disconnect(), o = 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: h,
|
|
308
|
-
width: d,
|
|
309
|
-
height: a
|
|
310
|
-
} = f;
|
|
311
|
-
if (c || e(), !d || !a)
|
|
312
|
-
return;
|
|
313
|
-
const w = D(h), p = D(i.clientWidth - (u + d)), y = D(i.clientHeight - (h + a)), g = D(u), C = {
|
|
314
|
-
rootMargin: -w + "px " + -p + "px " + -y + "px " + -g + "px",
|
|
315
|
-
threshold: E(0, V(1, l)) || 1
|
|
316
|
-
};
|
|
317
|
-
let S = !0;
|
|
318
|
-
function k(P) {
|
|
319
|
-
const B = P[0].intersectionRatio;
|
|
320
|
-
if (B !== l) {
|
|
321
|
-
if (!S)
|
|
322
|
-
return s();
|
|
323
|
-
B ? s(!1, B) : n = setTimeout(() => {
|
|
324
|
-
s(!1, 1e-7);
|
|
325
|
-
}, 1e3);
|
|
326
|
-
}
|
|
327
|
-
B === 1 && !it(f, t.getBoundingClientRect()) && s(), S = !1;
|
|
328
|
-
}
|
|
329
|
-
try {
|
|
330
|
-
o = new IntersectionObserver(k, {
|
|
331
|
-
...C,
|
|
332
|
-
// Handle <iframe>s
|
|
333
|
-
root: i.ownerDocument
|
|
334
|
-
});
|
|
335
|
-
} catch {
|
|
336
|
-
o = new IntersectionObserver(k, C);
|
|
337
|
-
}
|
|
338
|
-
o.observe(t);
|
|
339
|
-
}
|
|
340
|
-
return s(!0), r;
|
|
341
|
-
}
|
|
342
|
-
function St(t, e, o, n) {
|
|
343
|
-
n === void 0 && (n = {});
|
|
344
|
-
const {
|
|
345
|
-
ancestorScroll: i = !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 = i || r ? [...f ? z(f) : [], ...e ? z(e) : []] : [];
|
|
351
|
-
u.forEach((g) => {
|
|
352
|
-
i && g.addEventListener("scroll", o, {
|
|
353
|
-
passive: !0
|
|
354
|
-
}), r && g.addEventListener("resize", o);
|
|
355
|
-
});
|
|
356
|
-
const h = f && c ? Tt(f, o) : null;
|
|
357
|
-
let d = -1, a = null;
|
|
358
|
-
s && (a = new ResizeObserver((g) => {
|
|
359
|
-
let [x] = g;
|
|
360
|
-
x && x.target === f && a && e && (a.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
361
|
-
var C;
|
|
362
|
-
(C = a) == null || C.observe(e);
|
|
363
|
-
})), o();
|
|
364
|
-
}), f && !l && a.observe(f), e && a.observe(e));
|
|
365
|
-
let w, p = l ? L(t) : null;
|
|
366
|
-
l && y();
|
|
367
|
-
function y() {
|
|
368
|
-
const g = L(t);
|
|
369
|
-
p && !it(p, g) && o(), p = g, w = requestAnimationFrame(y);
|
|
370
|
-
}
|
|
371
|
-
return o(), () => {
|
|
372
|
-
var g;
|
|
373
|
-
u.forEach((x) => {
|
|
374
|
-
i && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
|
|
375
|
-
}), h?.(), (g = a) == null || g.disconnect(), a = null, l && cancelAnimationFrame(w);
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
const Bt = ct, Dt = ft, At = lt, Ht = st, It = (t, e, o) => {
|
|
379
|
-
const n = /* @__PURE__ */ new Map(), i = {
|
|
380
|
-
platform: Lt,
|
|
381
|
-
...o
|
|
382
|
-
}, r = {
|
|
383
|
-
...i.platform,
|
|
384
|
-
_c: n
|
|
385
|
-
};
|
|
386
|
-
return rt(t, e, {
|
|
387
|
-
...i,
|
|
388
|
-
platform: r
|
|
389
|
-
});
|
|
390
|
-
};
|
|
1
|
+
import { __module as r } from "./index112.mjs";
|
|
2
|
+
import { __require as e } from "./index113.mjs";
|
|
3
|
+
import { __require as o } from "./index114.mjs";
|
|
4
|
+
import { __require as p } from "./index115.mjs";
|
|
5
|
+
if (process.env.NODE_ENV !== "production") {
|
|
6
|
+
var s = e(), i = !0;
|
|
7
|
+
r.exports = o()(s.isElement, i);
|
|
8
|
+
} else
|
|
9
|
+
r.exports = p()();
|
|
10
|
+
var _ = r.exports;
|
|
391
11
|
export {
|
|
392
|
-
|
|
393
|
-
St as autoUpdate,
|
|
394
|
-
It as computePosition,
|
|
395
|
-
At as flip,
|
|
396
|
-
z as getOverflowAncestors,
|
|
397
|
-
Bt as offset,
|
|
398
|
-
Lt as platform,
|
|
399
|
-
Dt as shift
|
|
12
|
+
_ as p
|
|
400
13
|
};
|
package/es/index102.mjs
CHANGED
|
@@ -1,42 +1,249 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { __module as T } from "./index116.mjs";
|
|
2
|
+
import $ from "react";
|
|
3
|
+
import { p as V } from "./index101.mjs";
|
|
4
|
+
import "./index117.mjs";
|
|
5
|
+
import { s as z } from "./index118.mjs";
|
|
6
|
+
import "./index103.mjs";
|
|
7
|
+
import "./index119.mjs";
|
|
8
|
+
import "./index104.mjs";
|
|
9
|
+
import "./index120.mjs";
|
|
10
|
+
import "./index121.mjs";
|
|
11
|
+
import { __exports as G } from "./index106.mjs";
|
|
12
|
+
import { __exports as J } from "./index122.mjs";
|
|
13
|
+
import { __exports as Q } from "./index107.mjs";
|
|
14
|
+
import { __exports as X } from "./index123.mjs";
|
|
15
|
+
import { __exports as Y } from "./index124.mjs";
|
|
16
|
+
(function(E, O) {
|
|
17
|
+
Object.defineProperty(O, "__esModule", {
|
|
18
|
+
value: !0
|
|
19
|
+
});
|
|
20
|
+
var c = Object.assign || function(a) {
|
|
21
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
22
|
+
var s = arguments[n];
|
|
23
|
+
for (var e in s)
|
|
24
|
+
Object.prototype.hasOwnProperty.call(s, e) && (a[e] = s[e]);
|
|
17
25
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
f.call(t, n) && t[n] && (r = s(r, n));
|
|
30
|
-
return r;
|
|
26
|
+
return a;
|
|
27
|
+
}, A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
|
|
28
|
+
return typeof a;
|
|
29
|
+
} : function(a) {
|
|
30
|
+
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
|
|
31
|
+
}, R = /* @__PURE__ */ function() {
|
|
32
|
+
function a(n, s) {
|
|
33
|
+
for (var e = 0; e < s.length; e++) {
|
|
34
|
+
var t = s[e];
|
|
35
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(n, t.key, t);
|
|
36
|
+
}
|
|
31
37
|
}
|
|
32
|
-
function s
|
|
33
|
-
return
|
|
38
|
+
return function(n, s, e) {
|
|
39
|
+
return s && a(n.prototype, s), e && a(n, e), n;
|
|
40
|
+
};
|
|
41
|
+
}(), w = $, g = V, o = m(g), D = Y, p = C(D), F = z, H = m(F), k = Q, N = C(k), x = J, d = C(x), v = G, S = m(v), L = X, M = m(L);
|
|
42
|
+
function C(a) {
|
|
43
|
+
if (a && a.__esModule)
|
|
44
|
+
return a;
|
|
45
|
+
var n = {};
|
|
46
|
+
if (a != null)
|
|
47
|
+
for (var s in a)
|
|
48
|
+
Object.prototype.hasOwnProperty.call(a, s) && (n[s] = a[s]);
|
|
49
|
+
return n.default = a, n;
|
|
50
|
+
}
|
|
51
|
+
function m(a) {
|
|
52
|
+
return a && a.__esModule ? a : { default: a };
|
|
53
|
+
}
|
|
54
|
+
function P(a, n) {
|
|
55
|
+
if (!(a instanceof n))
|
|
56
|
+
throw new TypeError("Cannot call a class as a function");
|
|
57
|
+
}
|
|
58
|
+
function q(a, n) {
|
|
59
|
+
if (!a)
|
|
60
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
61
|
+
return n && (typeof n == "object" || typeof n == "function") ? n : a;
|
|
62
|
+
}
|
|
63
|
+
function W(a, n) {
|
|
64
|
+
if (typeof n != "function" && n !== null)
|
|
65
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof n);
|
|
66
|
+
a.prototype = Object.create(n && n.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), n && (Object.setPrototypeOf ? Object.setPrototypeOf(a, n) : a.__proto__ = n);
|
|
67
|
+
}
|
|
68
|
+
var b = {
|
|
69
|
+
overlay: "ReactModal__Overlay",
|
|
70
|
+
content: "ReactModal__Content"
|
|
71
|
+
}, j = function(n) {
|
|
72
|
+
return n.code === "Tab" || n.keyCode === 9;
|
|
73
|
+
}, I = function(n) {
|
|
74
|
+
return n.code === "Escape" || n.keyCode === 27;
|
|
75
|
+
}, h = 0, _ = function(a) {
|
|
76
|
+
W(n, a);
|
|
77
|
+
function n(s) {
|
|
78
|
+
P(this, n);
|
|
79
|
+
var e = q(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, s));
|
|
80
|
+
return e.setOverlayRef = function(t) {
|
|
81
|
+
e.overlay = t, e.props.overlayRef && e.props.overlayRef(t);
|
|
82
|
+
}, e.setContentRef = function(t) {
|
|
83
|
+
e.content = t, e.props.contentRef && e.props.contentRef(t);
|
|
84
|
+
}, e.afterClose = function() {
|
|
85
|
+
var t = e.props, l = t.appElement, i = t.ariaHideApp, r = t.htmlOpenClassName, u = t.bodyOpenClassName, f = t.parentSelector, y = f && f().ownerDocument || document;
|
|
86
|
+
u && d.remove(y.body, u), r && d.remove(y.getElementsByTagName("html")[0], r), i && h > 0 && (h -= 1, h === 0 && N.show(l)), e.props.shouldFocusAfterRender && (e.props.shouldReturnFocusAfterClose ? (p.returnFocus(e.props.preventScroll), p.teardownScopedFocus()) : p.popWithoutFocus()), e.props.onAfterClose && e.props.onAfterClose(), M.default.deregister(e);
|
|
87
|
+
}, e.open = function() {
|
|
88
|
+
e.beforeOpen(), e.state.afterOpen && e.state.beforeClose ? (clearTimeout(e.closeTimer), e.setState({ beforeClose: !1 })) : (e.props.shouldFocusAfterRender && (p.setupScopedFocus(e.node), p.markForFocusLater()), e.setState({ isOpen: !0 }, function() {
|
|
89
|
+
e.openAnimationFrame = requestAnimationFrame(function() {
|
|
90
|
+
e.setState({ afterOpen: !0 }), e.props.isOpen && e.props.onAfterOpen && e.props.onAfterOpen({
|
|
91
|
+
overlayEl: e.overlay,
|
|
92
|
+
contentEl: e.content
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}));
|
|
96
|
+
}, e.close = function() {
|
|
97
|
+
e.props.closeTimeoutMS > 0 ? e.closeWithTimeout() : e.closeWithoutTimeout();
|
|
98
|
+
}, e.focusContent = function() {
|
|
99
|
+
return e.content && !e.contentHasFocus() && e.content.focus({ preventScroll: !0 });
|
|
100
|
+
}, e.closeWithTimeout = function() {
|
|
101
|
+
var t = Date.now() + e.props.closeTimeoutMS;
|
|
102
|
+
e.setState({ beforeClose: !0, closesAt: t }, function() {
|
|
103
|
+
e.closeTimer = setTimeout(e.closeWithoutTimeout, e.state.closesAt - Date.now());
|
|
104
|
+
});
|
|
105
|
+
}, e.closeWithoutTimeout = function() {
|
|
106
|
+
e.setState({
|
|
107
|
+
beforeClose: !1,
|
|
108
|
+
isOpen: !1,
|
|
109
|
+
afterOpen: !1,
|
|
110
|
+
closesAt: null
|
|
111
|
+
}, e.afterClose);
|
|
112
|
+
}, e.handleKeyDown = function(t) {
|
|
113
|
+
j(t) && (0, H.default)(e.content, t), e.props.shouldCloseOnEsc && I(t) && (t.stopPropagation(), e.requestClose(t));
|
|
114
|
+
}, e.handleOverlayOnClick = function(t) {
|
|
115
|
+
e.shouldClose === null && (e.shouldClose = !0), e.shouldClose && e.props.shouldCloseOnOverlayClick && (e.ownerHandlesClose() ? e.requestClose(t) : e.focusContent()), e.shouldClose = null;
|
|
116
|
+
}, e.handleContentOnMouseUp = function() {
|
|
117
|
+
e.shouldClose = !1;
|
|
118
|
+
}, e.handleOverlayOnMouseDown = function(t) {
|
|
119
|
+
!e.props.shouldCloseOnOverlayClick && t.target == e.overlay && t.preventDefault();
|
|
120
|
+
}, e.handleContentOnClick = function() {
|
|
121
|
+
e.shouldClose = !1;
|
|
122
|
+
}, e.handleContentOnMouseDown = function() {
|
|
123
|
+
e.shouldClose = !1;
|
|
124
|
+
}, e.requestClose = function(t) {
|
|
125
|
+
return e.ownerHandlesClose() && e.props.onRequestClose(t);
|
|
126
|
+
}, e.ownerHandlesClose = function() {
|
|
127
|
+
return e.props.onRequestClose;
|
|
128
|
+
}, e.shouldBeClosed = function() {
|
|
129
|
+
return !e.state.isOpen && !e.state.beforeClose;
|
|
130
|
+
}, e.contentHasFocus = function() {
|
|
131
|
+
return document.activeElement === e.content || e.content.contains(document.activeElement);
|
|
132
|
+
}, e.buildClassName = function(t, l) {
|
|
133
|
+
var i = (typeof l > "u" ? "undefined" : A(l)) === "object" ? l : {
|
|
134
|
+
base: b[t],
|
|
135
|
+
afterOpen: b[t] + "--after-open",
|
|
136
|
+
beforeClose: b[t] + "--before-close"
|
|
137
|
+
}, r = i.base;
|
|
138
|
+
return e.state.afterOpen && (r = r + " " + i.afterOpen), e.state.beforeClose && (r = r + " " + i.beforeClose), typeof l == "string" && l ? r + " " + l : r;
|
|
139
|
+
}, e.attributesFromObject = function(t, l) {
|
|
140
|
+
return Object.keys(l).reduce(function(i, r) {
|
|
141
|
+
return i[t + "-" + r] = l[r], i;
|
|
142
|
+
}, {});
|
|
143
|
+
}, e.state = {
|
|
144
|
+
afterOpen: !1,
|
|
145
|
+
beforeClose: !1
|
|
146
|
+
}, e.shouldClose = null, e.moveFromContentToOverlay = null, e;
|
|
34
147
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
148
|
+
return R(n, [{
|
|
149
|
+
key: "componentDidMount",
|
|
150
|
+
value: function() {
|
|
151
|
+
this.props.isOpen && this.open();
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "componentDidUpdate",
|
|
155
|
+
value: function(e, t) {
|
|
156
|
+
process.env.NODE_ENV !== "production" && (e.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), e.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !e.isOpen ? this.open() : !this.props.isOpen && e.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !t.isOpen && this.focusContent();
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "componentWillUnmount",
|
|
160
|
+
value: function() {
|
|
161
|
+
this.state.isOpen && this.afterClose(), clearTimeout(this.closeTimer), cancelAnimationFrame(this.openAnimationFrame);
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
key: "beforeOpen",
|
|
165
|
+
value: function() {
|
|
166
|
+
var e = this.props, t = e.appElement, l = e.ariaHideApp, i = e.htmlOpenClassName, r = e.bodyOpenClassName, u = e.parentSelector, f = u && u().ownerDocument || document;
|
|
167
|
+
r && d.add(f.body, r), i && d.add(f.getElementsByTagName("html")[0], i), l && (h += 1, N.hide(t)), M.default.register(this);
|
|
168
|
+
}
|
|
169
|
+
// Don't steal focus from inner elements
|
|
170
|
+
}, {
|
|
171
|
+
key: "render",
|
|
172
|
+
value: function() {
|
|
173
|
+
var e = this.props, t = e.id, l = e.className, i = e.overlayClassName, r = e.defaultStyles, u = e.children, f = l ? {} : r.content, y = i ? {} : r.overlay;
|
|
174
|
+
if (this.shouldBeClosed())
|
|
175
|
+
return null;
|
|
176
|
+
var K = {
|
|
177
|
+
ref: this.setOverlayRef,
|
|
178
|
+
className: this.buildClassName("overlay", i),
|
|
179
|
+
style: c({}, y, this.props.style.overlay),
|
|
180
|
+
onClick: this.handleOverlayOnClick,
|
|
181
|
+
onMouseDown: this.handleOverlayOnMouseDown
|
|
182
|
+
}, U = c({
|
|
183
|
+
id: t,
|
|
184
|
+
ref: this.setContentRef,
|
|
185
|
+
style: c({}, f, this.props.style.content),
|
|
186
|
+
className: this.buildClassName("content", l),
|
|
187
|
+
tabIndex: "-1",
|
|
188
|
+
onKeyDown: this.handleKeyDown,
|
|
189
|
+
onMouseDown: this.handleContentOnMouseDown,
|
|
190
|
+
onMouseUp: this.handleContentOnMouseUp,
|
|
191
|
+
onClick: this.handleContentOnClick,
|
|
192
|
+
role: this.props.role,
|
|
193
|
+
"aria-label": this.props.contentLabel
|
|
194
|
+
}, this.attributesFromObject("aria", c({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
195
|
+
"data-testid": this.props.testId
|
|
196
|
+
}), B = this.props.contentElement(U, u);
|
|
197
|
+
return this.props.overlayElement(K, B);
|
|
198
|
+
}
|
|
199
|
+
}]), n;
|
|
200
|
+
}(w.Component);
|
|
201
|
+
_.defaultProps = {
|
|
202
|
+
style: {
|
|
203
|
+
overlay: {},
|
|
204
|
+
content: {}
|
|
205
|
+
},
|
|
206
|
+
defaultStyles: {}
|
|
207
|
+
}, _.propTypes = {
|
|
208
|
+
isOpen: o.default.bool.isRequired,
|
|
209
|
+
defaultStyles: o.default.shape({
|
|
210
|
+
content: o.default.object,
|
|
211
|
+
overlay: o.default.object
|
|
212
|
+
}),
|
|
213
|
+
style: o.default.shape({
|
|
214
|
+
content: o.default.object,
|
|
215
|
+
overlay: o.default.object
|
|
216
|
+
}),
|
|
217
|
+
className: o.default.oneOfType([o.default.string, o.default.object]),
|
|
218
|
+
overlayClassName: o.default.oneOfType([o.default.string, o.default.object]),
|
|
219
|
+
parentSelector: o.default.func,
|
|
220
|
+
bodyOpenClassName: o.default.string,
|
|
221
|
+
htmlOpenClassName: o.default.string,
|
|
222
|
+
ariaHideApp: o.default.bool,
|
|
223
|
+
appElement: o.default.oneOfType([o.default.instanceOf(S.default), o.default.instanceOf(v.SafeHTMLCollection), o.default.instanceOf(v.SafeNodeList), o.default.arrayOf(o.default.instanceOf(S.default))]),
|
|
224
|
+
onAfterOpen: o.default.func,
|
|
225
|
+
onAfterClose: o.default.func,
|
|
226
|
+
onRequestClose: o.default.func,
|
|
227
|
+
closeTimeoutMS: o.default.number,
|
|
228
|
+
shouldFocusAfterRender: o.default.bool,
|
|
229
|
+
shouldCloseOnOverlayClick: o.default.bool,
|
|
230
|
+
shouldReturnFocusAfterClose: o.default.bool,
|
|
231
|
+
preventScroll: o.default.bool,
|
|
232
|
+
role: o.default.string,
|
|
233
|
+
contentLabel: o.default.string,
|
|
234
|
+
aria: o.default.object,
|
|
235
|
+
data: o.default.object,
|
|
236
|
+
children: o.default.node,
|
|
237
|
+
shouldCloseOnEsc: o.default.bool,
|
|
238
|
+
overlayRef: o.default.func,
|
|
239
|
+
contentRef: o.default.func,
|
|
240
|
+
id: o.default.string,
|
|
241
|
+
overlayElement: o.default.func,
|
|
242
|
+
contentElement: o.default.func,
|
|
243
|
+
testId: o.default.string
|
|
244
|
+
}, O.default = _, E.exports = O.default;
|
|
245
|
+
})(T, T.exports);
|
|
246
|
+
var me = T.exports;
|
|
40
247
|
export {
|
|
41
|
-
|
|
248
|
+
me as M
|
|
42
249
|
};
|