@a-ui/react 7.13.0-beta.6 → 7.13.0-beta.8
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 -1
- package/cjs/index103.js +1 -1
- package/cjs/index104.js +1 -1
- package/cjs/index105.js +1 -1
- 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 -1
- package/cjs/index111.js +1 -1
- package/cjs/index112.js +1 -1
- package/cjs/index113.js +1 -1
- package/cjs/index114.js +1 -2
- package/cjs/index115.js +1 -1
- package/cjs/index116.js +1 -1
- package/cjs/index117.js +1 -1
- package/cjs/index118.js +1 -1
- package/cjs/index119.js +1 -10
- 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 +1 -5
- package/cjs/index127.js +1 -9
- 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/index137.js +1 -1
- package/cjs/index138.js +1 -8
- package/cjs/index139.js +1 -8
- package/cjs/index14.js +1 -1
- package/cjs/index140.js +1 -5
- package/cjs/index141.js +1 -1
- package/cjs/index142.js +1 -1
- package/cjs/index143.js +1 -1
- package/cjs/index145.js +1 -11
- 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 +2 -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 +10 -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 +5 -1
- package/cjs/index209.js +9 -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 +8 -1
- package/cjs/index224.js +8 -1
- package/cjs/index225.js +5 -1
- package/cjs/index226.js +1 -1
- package/cjs/index227.js +1 -1
- package/cjs/index228.js +1 -1
- package/cjs/index229.js +11 -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/index50.js +1 -1
- package/cjs/index51.js +7 -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 -1
- package/cjs/index57.js +1 -1
- package/cjs/index58.js +1 -1
- package/cjs/index59.js +1 -1
- package/cjs/index6.js +1 -1
- package/cjs/index60.js +1 -1
- package/cjs/index61.js +1 -7
- package/cjs/index62.js +1 -1
- package/cjs/index63.js +1 -1
- package/cjs/index64.js +1 -1
- package/cjs/index65.js +1 -1
- 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/index82.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 -1
- 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 +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 +6 -4
- package/es/index101.mjs +6 -11
- package/es/index102.mjs +6 -247
- package/es/index103.mjs +4 -88
- package/es/index104.mjs +6 -14
- package/es/index105.mjs +7 -4
- package/es/index106.mjs +5 -2
- package/es/index107.mjs +67 -2
- package/es/index108.mjs +3 -2
- package/es/index109.mjs +4 -390
- package/es/index11.mjs +1 -1
- package/es/index110.mjs +10 -124
- package/es/index111.mjs +4 -133
- package/es/index112.mjs +5 -2
- package/es/index113.mjs +7 -8
- package/es/index114.mjs +12 -326
- package/es/index115.mjs +15 -49
- package/es/index116.mjs +9 -2
- package/es/index117.mjs +5 -64
- package/es/index118.mjs +6 -43
- package/es/index119.mjs +4 -59
- package/es/index12.mjs +14 -14
- package/es/index120.mjs +512 -43
- package/es/index121.mjs +47 -37
- package/es/index122.mjs +18 -2
- package/es/index123.mjs +18 -2
- package/es/index124.mjs +5 -2
- package/es/index125.mjs +7 -30
- package/es/index126.mjs +6 -19
- package/es/index127.mjs +4 -60
- package/es/index128.mjs +5 -62
- package/es/index129.mjs +8 -13
- package/es/index13.mjs +2 -2
- package/es/index130.mjs +4 -6
- package/es/index131.mjs +7 -6
- package/es/index132.mjs +11 -5
- package/es/index133.mjs +8 -5
- package/es/index134.mjs +8 -4
- package/es/index135.mjs +12 -6
- package/es/index136.mjs +3 -4
- package/es/index137.mjs +33 -2
- package/es/index138.mjs +65 -76
- package/es/index139.mjs +7 -92
- package/es/index14.mjs +3 -3
- package/es/index140.mjs +7 -51
- package/es/index141.mjs +6 -7
- package/es/index142.mjs +6 -4
- package/es/index143.mjs +13 -51
- package/es/index145.mjs +230 -53
- package/es/index146.mjs +2 -2
- package/es/index147.mjs +57 -2
- package/es/index148.mjs +21 -4
- package/es/index149.mjs +40 -4
- package/es/index150.mjs +61 -7
- package/es/index151.mjs +31 -12
- package/es/index152.mjs +12 -15
- package/es/index153.mjs +61 -8
- package/es/index154.mjs +61 -5
- package/es/index155.mjs +62 -5
- package/es/index156.mjs +62 -4
- package/es/index157.mjs +37 -510
- package/es/index158.mjs +38 -47
- package/es/index159.mjs +52 -17
- package/es/index16.mjs +1 -1
- package/es/index160.mjs +42 -17
- package/es/index161.mjs +36 -4
- package/es/index162.mjs +65 -7
- package/es/index163.mjs +65 -5
- package/es/index164.mjs +90 -4
- package/es/index165.mjs +40 -5
- package/es/index166.mjs +40 -8
- package/es/index167.mjs +40 -4
- package/es/index168.mjs +24 -7
- package/es/index169.mjs +23 -11
- package/es/index17.mjs +4 -4
- package/es/index170.mjs +23 -8
- package/es/index171.mjs +24 -8
- package/es/index172.mjs +23 -12
- package/es/index173.mjs +23 -3
- package/es/index174.mjs +11 -30
- package/es/index175.mjs +40 -65
- package/es/index176.mjs +39 -7
- package/es/index177.mjs +13 -7
- package/es/index178.mjs +13 -6
- package/es/index179.mjs +11 -7
- package/es/index18.mjs +8 -8
- package/es/index180.mjs +247 -14
- package/es/index181.mjs +89 -2
- package/es/index182.mjs +15 -4
- package/es/index183.mjs +4 -2
- package/es/index184.mjs +2 -57
- package/es/index185.mjs +2 -22
- package/es/index186.mjs +67 -40
- package/es/index187.mjs +31 -61
- package/es/index188.mjs +9 -32
- package/es/index189.mjs +151 -11
- package/es/index190.mjs +107 -61
- package/es/index191.mjs +17 -59
- package/es/index192.mjs +97 -59
- package/es/index193.mjs +47 -63
- package/es/index194.mjs +2 -40
- package/es/index195.mjs +7 -40
- package/es/index196.mjs +324 -50
- package/es/index197.mjs +47 -40
- package/es/index198.mjs +2 -37
- package/es/index199.mjs +62 -63
- package/es/index2.mjs +1 -1
- package/es/index20.mjs +2 -2
- package/es/index200.mjs +40 -63
- package/es/index201.mjs +58 -89
- package/es/index202.mjs +44 -41
- package/es/index203.mjs +37 -38
- package/es/index204.mjs +2 -41
- package/es/index205.mjs +2 -25
- package/es/index206.mjs +2 -24
- package/es/index207.mjs +29 -22
- package/es/index208.mjs +19 -25
- package/es/index209.mjs +57 -20
- package/es/index21.mjs +1 -1
- package/es/index210.mjs +67 -23
- package/es/index211.mjs +31 -14
- package/es/index212.mjs +9 -40
- package/es/index213.mjs +107 -39
- package/es/index214.mjs +106 -13
- package/es/index215.mjs +58 -13
- package/es/index216.mjs +9 -68
- package/es/index217.mjs +20 -31
- package/es/index218.mjs +7 -9
- package/es/index219.mjs +15 -152
- package/es/index22.mjs +1 -1
- package/es/index220.mjs +29 -108
- package/es/index221.mjs +12 -19
- package/es/index222.mjs +2 -101
- package/es/index223.mjs +76 -47
- package/es/index224.mjs +93 -68
- package/es/index225.mjs +52 -31
- package/es/index226.mjs +8 -9
- package/es/index227.mjs +5 -108
- package/es/index228.mjs +51 -106
- package/es/index229.mjs +58 -59
- package/es/index230.mjs +2 -9
- package/es/index231.mjs +2 -20
- package/es/index232.mjs +2 -7
- package/es/index233.mjs +2 -16
- package/es/index234.mjs +2 -29
- package/es/index235.mjs +2 -13
- 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 +40 -38
- 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 +409 -11
- package/es/index52.mjs +11 -8
- package/es/index53.mjs +28 -21
- package/es/index54.mjs +47 -6
- package/es/index55.mjs +8 -28
- package/es/index56.mjs +27 -46
- package/es/index57.mjs +6 -47
- package/es/index58.mjs +11 -30
- package/es/index59.mjs +21 -17
- package/es/index6.mjs +3 -3
- package/es/index60.mjs +30 -29
- package/es/index61.mjs +13 -408
- package/es/index62.mjs +57 -27
- package/es/index63.mjs +47 -36
- package/es/index64.mjs +59 -17
- package/es/index65.mjs +61 -34
- package/es/index66.mjs +60 -2
- package/es/index67.mjs +27 -72
- package/es/index68.mjs +2 -29
- package/es/index69.mjs +73 -35
- package/es/index70.mjs +28 -3
- package/es/index71.mjs +34 -33
- package/es/index72.mjs +3 -4
- package/es/index73.mjs +34 -4
- package/es/index74.mjs +4 -4
- package/es/index75.mjs +4 -4
- package/es/index76.mjs +4 -4
- package/es/index77.mjs +4 -16
- package/es/index78.mjs +4 -84
- package/es/index79.mjs +16 -5
- package/es/index8.mjs +3 -3
- package/es/index80.mjs +82 -22
- package/es/index81.mjs +5 -54
- package/es/index82.mjs +22 -82
- package/es/index83.mjs +54 -4
- package/es/index84.mjs +21 -115
- package/es/index85.mjs +4 -61
- package/es/index86.mjs +117 -58
- package/es/index87.mjs +17 -14
- package/es/index88.mjs +117 -57
- package/es/index89.mjs +5 -5
- package/es/index9.mjs +1 -1
- package/es/index90.mjs +3 -3
- package/es/index91.mjs +1 -1
- package/es/index93.mjs +2 -2
- package/es/index94.mjs +380 -224
- package/es/index95.mjs +125 -2
- package/es/index96.mjs +130 -63
- package/es/index97.mjs +63 -3
- package/es/index98.mjs +13 -4
- package/es/index99.mjs +6 -10
- package/package.json +1 -1
package/es/index180.mjs
CHANGED
|
@@ -1,16 +1,249 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
1
|
+
import { __module as T } from "./index198.mjs";
|
|
2
|
+
import $ from "react";
|
|
3
|
+
import { p as V } from "./index179.mjs";
|
|
4
|
+
import "./index199.mjs";
|
|
5
|
+
import { s as z } from "./index200.mjs";
|
|
6
|
+
import "./index181.mjs";
|
|
7
|
+
import "./index201.mjs";
|
|
8
|
+
import "./index182.mjs";
|
|
9
|
+
import "./index202.mjs";
|
|
10
|
+
import "./index203.mjs";
|
|
11
|
+
import { __exports as G } from "./index184.mjs";
|
|
12
|
+
import { __exports as J } from "./index204.mjs";
|
|
13
|
+
import { __exports as Q } from "./index185.mjs";
|
|
14
|
+
import { __exports as X } from "./index205.mjs";
|
|
15
|
+
import { __exports as Y } from "./index206.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]);
|
|
25
|
+
}
|
|
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
|
+
}
|
|
37
|
+
}
|
|
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;
|
|
147
|
+
}
|
|
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;
|
|
14
247
|
export {
|
|
15
|
-
|
|
248
|
+
me as M
|
|
16
249
|
};
|
package/es/index181.mjs
CHANGED
|
@@ -1,4 +1,91 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as n } from "./index185.mjs";
|
|
2
|
+
import { w as m } from "./index207.mjs";
|
|
3
|
+
import "./index182.mjs";
|
|
4
|
+
import { __exports as c } from "./index184.mjs";
|
|
5
|
+
Object.defineProperty(n, "__esModule", {
|
|
6
|
+
value: !0
|
|
7
|
+
});
|
|
8
|
+
n.resetState = h;
|
|
9
|
+
n.log = A;
|
|
10
|
+
n.assertNodeList = f;
|
|
11
|
+
n.setElement = g;
|
|
12
|
+
n.validateElement = s;
|
|
13
|
+
n.hide = _;
|
|
14
|
+
n.show = w;
|
|
15
|
+
n.documentNotReadyOrSSRTesting = N;
|
|
16
|
+
var v = m, p = E(v), y = c;
|
|
17
|
+
function E(e) {
|
|
18
|
+
return e && e.__esModule ? e : { default: e };
|
|
19
|
+
}
|
|
20
|
+
var t = null;
|
|
21
|
+
function h() {
|
|
22
|
+
t && (t.removeAttribute ? t.removeAttribute("aria-hidden") : t.length != null ? t.forEach(function(e) {
|
|
23
|
+
return e.removeAttribute("aria-hidden");
|
|
24
|
+
}) : document.querySelectorAll(t).forEach(function(e) {
|
|
25
|
+
return e.removeAttribute("aria-hidden");
|
|
26
|
+
})), t = null;
|
|
27
|
+
}
|
|
28
|
+
function A() {
|
|
29
|
+
if (process.env.NODE_ENV !== "production") {
|
|
30
|
+
var e = t || {};
|
|
31
|
+
console.log("ariaAppHider ----------"), console.log(e.nodeName, e.className, e.id), console.log("end ariaAppHider ----------");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function f(e, r) {
|
|
35
|
+
if (!e || !e.length)
|
|
36
|
+
throw new Error("react-modal: No elements were found for selector " + r + ".");
|
|
37
|
+
}
|
|
38
|
+
function g(e) {
|
|
39
|
+
var r = e;
|
|
40
|
+
if (typeof r == "string" && y.canUseDOM) {
|
|
41
|
+
var o = document.querySelectorAll(r);
|
|
42
|
+
f(o, r), r = o;
|
|
43
|
+
}
|
|
44
|
+
return t = r || t, t;
|
|
45
|
+
}
|
|
46
|
+
function s(e) {
|
|
47
|
+
var r = e || t;
|
|
48
|
+
return r ? Array.isArray(r) || r instanceof HTMLCollection || r instanceof NodeList ? r : [r] : ((0, p.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
|
|
49
|
+
}
|
|
50
|
+
function _(e) {
|
|
51
|
+
var r = !0, o = !1, i = void 0;
|
|
52
|
+
try {
|
|
53
|
+
for (var a = s(e)[Symbol.iterator](), l; !(r = (l = a.next()).done); r = !0) {
|
|
54
|
+
var u = l.value;
|
|
55
|
+
u.setAttribute("aria-hidden", "true");
|
|
56
|
+
}
|
|
57
|
+
} catch (d) {
|
|
58
|
+
o = !0, i = d;
|
|
59
|
+
} finally {
|
|
60
|
+
try {
|
|
61
|
+
!r && a.return && a.return();
|
|
62
|
+
} finally {
|
|
63
|
+
if (o)
|
|
64
|
+
throw i;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function w(e) {
|
|
69
|
+
var r = !0, o = !1, i = void 0;
|
|
70
|
+
try {
|
|
71
|
+
for (var a = s(e)[Symbol.iterator](), l; !(r = (l = a.next()).done); r = !0) {
|
|
72
|
+
var u = l.value;
|
|
73
|
+
u.removeAttribute("aria-hidden");
|
|
74
|
+
}
|
|
75
|
+
} catch (d) {
|
|
76
|
+
o = !0, i = d;
|
|
77
|
+
} finally {
|
|
78
|
+
try {
|
|
79
|
+
!r && a.return && a.return();
|
|
80
|
+
} finally {
|
|
81
|
+
if (o)
|
|
82
|
+
throw i;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function N() {
|
|
87
|
+
t = null;
|
|
88
|
+
}
|
|
2
89
|
export {
|
|
3
|
-
|
|
90
|
+
n as default
|
|
4
91
|
};
|
package/es/index182.mjs
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __exports as e } from "./index184.mjs";
|
|
2
|
+
import { e as t } from "./index208.mjs";
|
|
3
|
+
Object.defineProperty(e, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
});
|
|
6
|
+
e.canUseDOM = e.SafeNodeList = e.SafeHTMLCollection = void 0;
|
|
7
|
+
var o = t, r = i(o);
|
|
8
|
+
function i(n) {
|
|
9
|
+
return n && n.__esModule ? n : { default: n };
|
|
10
|
+
}
|
|
11
|
+
var a = r.default, l = a.canUseDOM ? window.HTMLElement : {};
|
|
12
|
+
e.SafeHTMLCollection = a.canUseDOM ? window.HTMLCollection : {};
|
|
13
|
+
e.SafeNodeList = a.canUseDOM ? window.NodeList : {};
|
|
14
|
+
e.canUseDOM = a.canUseDOM;
|
|
15
|
+
e.default = l;
|
package/es/index183.mjs
CHANGED
package/es/index184.mjs
CHANGED
|
@@ -1,59 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const g = {
|
|
3
|
-
// Year
|
|
4
|
-
y(e, t) {
|
|
5
|
-
const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
6
|
-
return n(t === "yy" ? a % 100 : a, t.length);
|
|
7
|
-
},
|
|
8
|
-
// Month
|
|
9
|
-
M(e, t) {
|
|
10
|
-
const r = e.getMonth();
|
|
11
|
-
return t === "M" ? String(r + 1) : n(r + 1, 2);
|
|
12
|
-
},
|
|
13
|
-
// Day of the month
|
|
14
|
-
d(e, t) {
|
|
15
|
-
return n(e.getDate(), t.length);
|
|
16
|
-
},
|
|
17
|
-
// AM or PM
|
|
18
|
-
a(e, t) {
|
|
19
|
-
const r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
20
|
-
switch (t) {
|
|
21
|
-
case "a":
|
|
22
|
-
case "aa":
|
|
23
|
-
return r.toUpperCase();
|
|
24
|
-
case "aaa":
|
|
25
|
-
return r;
|
|
26
|
-
case "aaaaa":
|
|
27
|
-
return r[0];
|
|
28
|
-
case "aaaa":
|
|
29
|
-
default:
|
|
30
|
-
return r === "am" ? "a.m." : "p.m.";
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
// Hour [1-12]
|
|
34
|
-
h(e, t) {
|
|
35
|
-
return n(e.getHours() % 12 || 12, t.length);
|
|
36
|
-
},
|
|
37
|
-
// Hour [0-23]
|
|
38
|
-
H(e, t) {
|
|
39
|
-
return n(e.getHours(), t.length);
|
|
40
|
-
},
|
|
41
|
-
// Minute
|
|
42
|
-
m(e, t) {
|
|
43
|
-
return n(e.getMinutes(), t.length);
|
|
44
|
-
},
|
|
45
|
-
// Second
|
|
46
|
-
s(e, t) {
|
|
47
|
-
return n(e.getSeconds(), t.length);
|
|
48
|
-
},
|
|
49
|
-
// Fraction of second
|
|
50
|
-
S(e, t) {
|
|
51
|
-
const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
|
|
52
|
-
a * Math.pow(10, r - 3)
|
|
53
|
-
);
|
|
54
|
-
return n(s, t.length);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
1
|
+
var e = {};
|
|
57
2
|
export {
|
|
58
|
-
|
|
3
|
+
e as __exports
|
|
59
4
|
};
|
package/es/index185.mjs
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
class i extends G {
|
|
3
|
-
priority = 140;
|
|
4
|
-
parse(r, s, e) {
|
|
5
|
-
switch (s) {
|
|
6
|
-
case "G":
|
|
7
|
-
case "GG":
|
|
8
|
-
case "GGG":
|
|
9
|
-
return e.era(r, { width: "abbreviated" }) || e.era(r, { width: "narrow" });
|
|
10
|
-
case "GGGGG":
|
|
11
|
-
return e.era(r, { width: "narrow" });
|
|
12
|
-
case "GGGG":
|
|
13
|
-
default:
|
|
14
|
-
return e.era(r, { width: "wide" }) || e.era(r, { width: "abbreviated" }) || e.era(r, { width: "narrow" });
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
set(r, s, e) {
|
|
18
|
-
return s.era = e, r.setFullYear(e, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
19
|
-
}
|
|
20
|
-
incompatibleTokens = ["R", "u", "t", "T"];
|
|
21
|
-
}
|
|
1
|
+
var r = {};
|
|
22
2
|
export {
|
|
23
|
-
|
|
3
|
+
r as __exports
|
|
24
4
|
};
|
package/es/index186.mjs
CHANGED
|
@@ -1,43 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
const a = {
|
|
2
|
+
lessThanXSeconds: {
|
|
3
|
+
one: "less than a second",
|
|
4
|
+
other: "less than {{count}} seconds"
|
|
5
|
+
},
|
|
6
|
+
xSeconds: {
|
|
7
|
+
one: "1 second",
|
|
8
|
+
other: "{{count}} seconds"
|
|
9
|
+
},
|
|
10
|
+
halfAMinute: "half a minute",
|
|
11
|
+
lessThanXMinutes: {
|
|
12
|
+
one: "less than a minute",
|
|
13
|
+
other: "less than {{count}} minutes"
|
|
14
|
+
},
|
|
15
|
+
xMinutes: {
|
|
16
|
+
one: "1 minute",
|
|
17
|
+
other: "{{count}} minutes"
|
|
18
|
+
},
|
|
19
|
+
aboutXHours: {
|
|
20
|
+
one: "about 1 hour",
|
|
21
|
+
other: "about {{count}} hours"
|
|
22
|
+
},
|
|
23
|
+
xHours: {
|
|
24
|
+
one: "1 hour",
|
|
25
|
+
other: "{{count}} hours"
|
|
26
|
+
},
|
|
27
|
+
xDays: {
|
|
28
|
+
one: "1 day",
|
|
29
|
+
other: "{{count}} days"
|
|
30
|
+
},
|
|
31
|
+
aboutXWeeks: {
|
|
32
|
+
one: "about 1 week",
|
|
33
|
+
other: "about {{count}} weeks"
|
|
34
|
+
},
|
|
35
|
+
xWeeks: {
|
|
36
|
+
one: "1 week",
|
|
37
|
+
other: "{{count}} weeks"
|
|
38
|
+
},
|
|
39
|
+
aboutXMonths: {
|
|
40
|
+
one: "about 1 month",
|
|
41
|
+
other: "about {{count}} months"
|
|
42
|
+
},
|
|
43
|
+
xMonths: {
|
|
44
|
+
one: "1 month",
|
|
45
|
+
other: "{{count}} months"
|
|
46
|
+
},
|
|
47
|
+
aboutXYears: {
|
|
48
|
+
one: "about 1 year",
|
|
49
|
+
other: "about {{count}} years"
|
|
50
|
+
},
|
|
51
|
+
xYears: {
|
|
52
|
+
one: "1 year",
|
|
53
|
+
other: "{{count}} years"
|
|
54
|
+
},
|
|
55
|
+
overXYears: {
|
|
56
|
+
one: "over 1 year",
|
|
57
|
+
other: "over {{count}} years"
|
|
58
|
+
},
|
|
59
|
+
almostXYears: {
|
|
60
|
+
one: "almost 1 year",
|
|
61
|
+
other: "almost {{count}} years"
|
|
24
62
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (i.isTwoDigitYear) {
|
|
31
|
-
const n = l(
|
|
32
|
-
i.year,
|
|
33
|
-
a
|
|
34
|
-
);
|
|
35
|
-
return r.setFullYear(n, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
36
|
-
}
|
|
37
|
-
const s = !("era" in e) || e.era === 1 ? i.year : 1 - i.year;
|
|
38
|
-
return r.setFullYear(s, 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
63
|
+
}, r = (s, n, t) => {
|
|
64
|
+
let e;
|
|
65
|
+
const o = a[s];
|
|
66
|
+
return typeof o == "string" ? e = o : n === 1 ? e = o.one : e = o.other.replace("{{count}}", n.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + e : e + " ago" : e;
|
|
67
|
+
};
|
|
41
68
|
export {
|
|
42
|
-
|
|
69
|
+
r as formatDistance
|
|
43
70
|
};
|
package/es/index187.mjs
CHANGED
|
@@ -1,63 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (i.isTwoDigitYear) {
|
|
32
|
-
const m = l(
|
|
33
|
-
i.year,
|
|
34
|
-
t
|
|
35
|
-
);
|
|
36
|
-
return r.setFullYear(
|
|
37
|
-
m,
|
|
38
|
-
0,
|
|
39
|
-
a.firstWeekContainsDate
|
|
40
|
-
), r.setHours(0, 0, 0, 0), o(r, a);
|
|
41
|
-
}
|
|
42
|
-
const Y = !("era" in e) || e.era === 1 ? i.year : 1 - i.year;
|
|
43
|
-
return r.setFullYear(Y, 0, a.firstWeekContainsDate), r.setHours(0, 0, 0, 0), o(r, a);
|
|
44
|
-
}
|
|
45
|
-
incompatibleTokens = [
|
|
46
|
-
"y",
|
|
47
|
-
"R",
|
|
48
|
-
"u",
|
|
49
|
-
"Q",
|
|
50
|
-
"q",
|
|
51
|
-
"M",
|
|
52
|
-
"L",
|
|
53
|
-
"I",
|
|
54
|
-
"d",
|
|
55
|
-
"D",
|
|
56
|
-
"i",
|
|
57
|
-
"t",
|
|
58
|
-
"T"
|
|
59
|
-
];
|
|
60
|
-
}
|
|
1
|
+
import { buildFormatLongFn as t } from "./index218.mjs";
|
|
2
|
+
const m = {
|
|
3
|
+
full: "EEEE, MMMM do, y",
|
|
4
|
+
long: "MMMM do, y",
|
|
5
|
+
medium: "MMM d, y",
|
|
6
|
+
short: "MM/dd/yyyy"
|
|
7
|
+
}, a = {
|
|
8
|
+
full: "h:mm:ss a zzzz",
|
|
9
|
+
long: "h:mm:ss a z",
|
|
10
|
+
medium: "h:mm:ss a",
|
|
11
|
+
short: "h:mm a"
|
|
12
|
+
}, o = {
|
|
13
|
+
full: "{{date}} 'at' {{time}}",
|
|
14
|
+
long: "{{date}} 'at' {{time}}",
|
|
15
|
+
medium: "{{date}}, {{time}}",
|
|
16
|
+
short: "{{date}}, {{time}}"
|
|
17
|
+
}, e = {
|
|
18
|
+
date: t({
|
|
19
|
+
formats: m,
|
|
20
|
+
defaultWidth: "full"
|
|
21
|
+
}),
|
|
22
|
+
time: t({
|
|
23
|
+
formats: a,
|
|
24
|
+
defaultWidth: "full"
|
|
25
|
+
}),
|
|
26
|
+
dateTime: t({
|
|
27
|
+
formats: o,
|
|
28
|
+
defaultWidth: "full"
|
|
29
|
+
})
|
|
30
|
+
};
|
|
61
31
|
export {
|
|
62
|
-
|
|
32
|
+
e as formatLong
|
|
63
33
|
};
|