@a-ui/react 7.13.0-beta.0 → 7.13.0-beta.1
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/constants/settings.d.ts +1 -1
- package/constants/stories.settings.d.ts +11 -0
- package/index.js +1 -62
- package/index.mjs +98 -9098
- package/index10.js +1 -0
- package/index10.mjs +60 -0
- package/index100.js +1 -0
- package/index100.mjs +4 -0
- package/index101.js +1 -0
- package/index101.mjs +400 -0
- package/index102.js +5 -0
- package/index102.mjs +42 -0
- package/index103.js +1 -0
- package/index103.mjs +4 -0
- package/index104.js +1 -0
- package/index104.mjs +10 -0
- package/index105.js +2 -0
- package/index105.mjs +329 -0
- package/index106.js +1 -0
- package/index106.mjs +52 -0
- package/index107.js +1 -0
- package/index107.mjs +4 -0
- package/index108.js +1 -0
- package/index108.mjs +67 -0
- package/index109.js +1 -0
- package/index109.mjs +45 -0
- package/index11.js +1 -0
- package/index11.mjs +12 -0
- package/index110.js +10 -0
- package/index110.mjs +62 -0
- package/index111.js +1 -0
- package/index111.mjs +46 -0
- package/index112.js +1 -0
- package/index112.mjs +42 -0
- package/index113.js +1 -0
- package/index113.mjs +4 -0
- package/index114.js +1 -0
- package/index114.mjs +4 -0
- package/index115.js +1 -0
- package/index115.mjs +4 -0
- package/index116.js +1 -0
- package/index116.mjs +33 -0
- package/index117.js +5 -0
- package/index117.mjs +21 -0
- package/index118.js +9 -0
- package/index118.mjs +63 -0
- package/index119.js +1 -0
- package/index119.mjs +65 -0
- package/index12.js +1 -0
- package/index12.mjs +215 -0
- package/index120.js +1 -0
- package/index120.mjs +16 -0
- package/index121.js +1 -0
- package/index121.mjs +9 -0
- package/index122.js +1 -0
- package/index122.mjs +9 -0
- package/index123.js +1 -0
- package/index123.mjs +8 -0
- package/index124.js +1 -0
- package/index124.mjs +8 -0
- package/index125.js +1 -0
- package/index125.mjs +7 -0
- package/index126.js +1 -0
- package/index126.mjs +7 -0
- package/index127.js +1 -0
- package/index127.mjs +9 -0
- package/index128.js +1 -0
- package/index128.mjs +7 -0
- package/index129.js +1 -0
- package/index129.mjs +69 -0
- package/index13.js +1 -0
- package/index13.mjs +29 -0
- package/index130.js +1 -0
- package/index130.mjs +5 -0
- package/index131.js +1 -0
- package/index131.mjs +7 -0
- package/index132.js +1 -0
- package/index132.mjs +13 -0
- package/index133.js +1 -0
- package/index133.mjs +4 -0
- package/index134.js +1 -0
- package/index134.mjs +393 -0
- package/index135.js +1 -0
- package/index135.mjs +127 -0
- package/index136.js +1 -0
- package/index136.mjs +136 -0
- package/index137.js +1 -0
- package/index137.mjs +4 -0
- package/index138.js +1 -0
- package/index138.mjs +4 -0
- package/index139.js +8 -0
- package/index139.mjs +78 -0
- package/index14.js +1 -0
- package/index14.mjs +44 -0
- package/index140.js +8 -0
- package/index140.mjs +95 -0
- package/index141.js +5 -0
- package/index141.mjs +54 -0
- package/index142.js +1 -0
- package/index142.mjs +10 -0
- package/index143.js +1 -0
- package/index143.mjs +7 -0
- package/index144.js +1 -0
- package/index144.mjs +54 -0
- package/index145.js +11 -0
- package/index145.mjs +60 -0
- package/index146.js +1 -0
- package/index146.mjs +4 -0
- package/index147.js +1 -0
- package/index147.mjs +4 -0
- package/index148.js +1 -0
- package/index148.mjs +7 -0
- package/index149.js +1 -0
- package/index149.mjs +7 -0
- package/index15.js +1 -0
- package/index15.mjs +8 -0
- package/index150.js +1 -0
- package/index150.mjs +9 -0
- package/index151.js +1 -0
- package/index151.mjs +15 -0
- package/index152.js +1 -0
- package/index152.mjs +18 -0
- package/index153.js +1 -0
- package/index153.mjs +11 -0
- package/index154.js +1 -0
- package/index154.mjs +8 -0
- package/index155.js +1 -0
- package/index155.mjs +8 -0
- package/index156.js +1 -0
- package/index156.mjs +7 -0
- package/index157.js +1 -0
- package/index157.mjs +515 -0
- package/index158.js +1 -0
- package/index158.mjs +52 -0
- package/index159.js +1 -0
- package/index159.mjs +20 -0
- package/index16.js +1 -0
- package/index16.mjs +15 -0
- package/index160.js +1 -0
- package/index160.mjs +20 -0
- package/index161.js +1 -0
- package/index161.mjs +7 -0
- package/index162.js +1 -0
- package/index162.mjs +10 -0
- package/index163.js +1 -0
- package/index163.mjs +8 -0
- package/index164.js +1 -0
- package/index164.mjs +7 -0
- package/index165.js +1 -0
- package/index165.mjs +8 -0
- package/index166.js +1 -0
- package/index166.mjs +11 -0
- package/index167.js +1 -0
- package/index167.mjs +7 -0
- package/index168.js +1 -0
- package/index168.mjs +10 -0
- package/index169.js +1 -0
- package/index169.mjs +14 -0
- package/index17.js +1 -0
- package/index17.mjs +108 -0
- package/index170.js +1 -0
- package/index170.mjs +11 -0
- package/index171.js +1 -0
- package/index171.mjs +11 -0
- package/index172.js +1 -0
- package/index172.mjs +15 -0
- package/index173.js +1 -0
- package/index173.mjs +6 -0
- package/index174.js +1 -0
- package/index174.mjs +35 -0
- package/index175.js +1 -0
- package/index175.mjs +67 -0
- package/index176.js +1 -0
- package/index176.mjs +10 -0
- package/index177.js +1 -0
- package/index177.mjs +10 -0
- package/index178.js +1 -0
- package/index178.mjs +9 -0
- package/index179.js +1 -0
- package/index179.mjs +9 -0
- package/index18.js +1 -0
- package/index18.mjs +136 -0
- package/index180.js +1 -0
- package/index180.mjs +16 -0
- package/index181.js +1 -0
- package/index181.mjs +4 -0
- package/index182.js +1 -0
- package/index182.mjs +4 -0
- package/index183.js +1 -0
- package/index183.mjs +4 -0
- package/index184.js +1 -0
- package/index184.mjs +59 -0
- package/index185.js +1 -0
- package/index185.mjs +24 -0
- package/index186.js +1 -0
- package/index186.mjs +43 -0
- package/index187.js +1 -0
- package/index187.mjs +63 -0
- package/index188.js +1 -0
- package/index188.mjs +34 -0
- package/index189.js +1 -0
- package/index189.mjs +15 -0
- package/index19.js +1 -0
- package/index19.mjs +11 -0
- package/index190.js +1 -0
- package/index190.mjs +64 -0
- package/index191.js +1 -0
- package/index191.mjs +64 -0
- package/index192.js +1 -0
- package/index192.mjs +65 -0
- package/index193.js +1 -0
- package/index193.mjs +65 -0
- package/index194.js +1 -0
- package/index194.mjs +42 -0
- package/index195.js +1 -0
- package/index195.mjs +43 -0
- package/index196.js +1 -0
- package/index196.mjs +55 -0
- package/index197.js +1 -0
- package/index197.mjs +45 -0
- package/index198.js +1 -0
- package/index198.mjs +39 -0
- package/index199.js +1 -0
- package/index199.mjs +68 -0
- package/index2.js +1 -0
- package/index2.mjs +12 -0
- package/index20.js +1 -0
- package/index20.mjs +54 -0
- package/index200.js +1 -0
- package/index200.mjs +68 -0
- package/index201.js +1 -0
- package/index201.mjs +93 -0
- package/index202.js +1 -0
- package/index202.mjs +43 -0
- package/index203.js +1 -0
- package/index203.mjs +43 -0
- package/index204.js +1 -0
- package/index204.mjs +43 -0
- package/index205.js +1 -0
- package/index205.mjs +27 -0
- package/index206.js +1 -0
- package/index206.mjs +26 -0
- package/index207.js +1 -0
- package/index207.mjs +26 -0
- package/index208.js +1 -0
- package/index208.mjs +27 -0
- package/index209.js +1 -0
- package/index209.mjs +26 -0
- package/index21.js +1 -0
- package/index21.mjs +33 -0
- package/index210.js +1 -0
- package/index210.mjs +26 -0
- package/index211.js +1 -0
- package/index211.mjs +16 -0
- package/index212.js +1 -0
- package/index212.mjs +42 -0
- package/index213.js +1 -0
- package/index213.mjs +42 -0
- package/index214.js +1 -0
- package/index214.mjs +16 -0
- package/index215.js +1 -0
- package/index215.mjs +16 -0
- package/index216.js +1 -0
- package/index216.mjs +70 -0
- package/index217.js +1 -0
- package/index217.mjs +33 -0
- package/index218.js +1 -0
- package/index218.mjs +11 -0
- package/index219.js +1 -0
- package/index219.mjs +155 -0
- package/index22.js +1 -0
- package/index22.mjs +22 -0
- package/index220.js +1 -0
- package/index220.mjs +110 -0
- package/index221.js +1 -0
- package/index221.mjs +22 -0
- package/index222.js +1 -0
- package/index222.mjs +103 -0
- package/index223.js +1 -0
- package/index223.mjs +49 -0
- package/index224.js +1 -0
- package/index224.mjs +70 -0
- package/index225.js +1 -0
- package/index225.mjs +33 -0
- package/index226.js +1 -0
- package/index226.mjs +11 -0
- package/index227.js +1 -0
- package/index227.mjs +110 -0
- package/index228.js +1 -0
- package/index228.mjs +109 -0
- package/index229.js +1 -0
- package/index229.mjs +9 -0
- package/index23.js +1 -0
- package/index23.mjs +32 -0
- package/index230.js +1 -0
- package/index230.mjs +18 -0
- package/index231.js +1 -0
- package/index231.mjs +31 -0
- package/index232.js +1 -0
- package/index232.mjs +15 -0
- package/index233.js +1 -0
- package/index233.mjs +61 -0
- package/index234.js +1 -0
- package/index234.mjs +11 -0
- package/index235.js +1 -0
- package/index235.mjs +22 -0
- package/index24.js +2 -0
- package/index24.mjs +62 -0
- package/index25.js +1 -0
- package/index25.mjs +15 -0
- package/index26.js +1 -0
- package/index26.mjs +12 -0
- package/index27.js +1 -0
- package/index27.mjs +43 -0
- package/index28.js +1 -0
- package/index28.mjs +34 -0
- package/index29.js +1 -0
- package/index29.mjs +10 -0
- package/index3.js +1 -0
- package/index3.mjs +15 -0
- package/index30.js +1 -0
- package/index30.mjs +72 -0
- package/index31.js +1 -0
- package/index31.mjs +40 -0
- package/index32.js +1 -0
- package/index32.mjs +48 -0
- package/index33.js +1 -0
- package/index33.mjs +90 -0
- package/index34.js +1 -0
- package/index34.mjs +36 -0
- package/index35.js +1 -0
- package/index35.mjs +25 -0
- package/index36.js +1 -0
- package/index36.mjs +27 -0
- package/index37.js +1 -0
- package/index37.mjs +110 -0
- package/index38.js +1 -0
- package/index38.mjs +57 -0
- package/index39.js +1 -0
- package/index39.mjs +21 -0
- package/index4.js +1 -0
- package/index4.mjs +58 -0
- package/index40.js +1 -0
- package/index40.mjs +40 -0
- package/index41.js +1 -0
- package/index41.mjs +54 -0
- package/index42.js +1 -0
- package/index42.mjs +73 -0
- package/index43.js +1 -0
- package/index43.mjs +49 -0
- package/index44.js +1 -0
- package/index44.mjs +13 -0
- package/index45.js +1 -0
- package/index45.mjs +73 -0
- package/index46.js +1 -0
- package/index46.mjs +99 -0
- package/index47.js +1 -0
- package/index47.mjs +45 -0
- package/index48.js +1 -0
- package/index48.mjs +26 -0
- package/index49.js +1 -0
- package/index49.mjs +83 -0
- package/index5.js +1 -0
- package/index5.mjs +136 -0
- package/index50.js +1 -0
- package/index50.mjs +35 -0
- package/index51.js +1 -0
- package/index51.mjs +10 -0
- package/index52.js +1 -0
- package/index52.mjs +13 -0
- package/index53.js +1 -0
- package/index53.mjs +30 -0
- package/index54.js +1 -0
- package/index54.mjs +51 -0
- package/index55.js +1 -0
- package/index55.mjs +10 -0
- package/index56.js +1 -0
- package/index56.mjs +49 -0
- package/index58.js +1 -0
- package/index58.mjs +64 -0
- package/index59.js +1 -0
- package/index59.mjs +62 -0
- package/index6.js +1 -0
- package/index6.mjs +29 -0
- package/index60.js +1 -0
- package/index60.mjs +31 -0
- package/index61.js +1 -0
- package/index61.mjs +23 -0
- package/index62.js +1 -0
- package/index62.mjs +32 -0
- package/index63.js +1 -0
- package/index63.mjs +16 -0
- package/index64.js +1 -0
- package/index64.mjs +61 -0
- package/index65.js +1 -0
- package/index65.mjs +19 -0
- package/index66.js +7 -0
- package/index66.mjs +411 -0
- package/index7.js +1 -0
- package/index7.mjs +8 -0
- package/index70.js +1 -0
- package/index70.mjs +4 -0
- package/index71.js +1 -0
- package/index71.mjs +76 -0
- package/index72.js +1 -0
- package/index72.mjs +31 -0
- package/index73.js +1 -0
- package/index73.mjs +38 -0
- package/index74.js +1 -0
- package/index74.mjs +6 -0
- package/index75.js +1 -0
- package/index75.mjs +37 -0
- package/index76.js +1 -0
- package/index76.mjs +7 -0
- package/index77.js +1 -0
- package/index77.mjs +7 -0
- package/index78.js +1 -0
- package/index78.mjs +7 -0
- package/index79.js +1 -0
- package/index79.mjs +7 -0
- package/index8.js +1 -0
- package/index8.mjs +18 -0
- package/index80.js +1 -0
- package/index80.mjs +7 -0
- package/index81.js +1 -0
- package/index81.mjs +19 -0
- package/index82.js +1 -0
- package/index82.mjs +87 -0
- package/index83.js +1 -0
- package/index83.mjs +8 -0
- package/index84.js +1 -0
- package/index84.mjs +27 -0
- package/index85.js +1 -0
- package/index85.mjs +57 -0
- package/index87.js +1 -0
- package/index87.mjs +7 -0
- package/index88.js +1 -0
- package/index88.mjs +121 -0
- package/index89.js +1 -0
- package/index89.mjs +20 -0
- package/index9.js +1 -0
- package/index9.mjs +18 -0
- package/index90.js +1 -0
- package/index90.mjs +26 -0
- package/index91.js +1 -0
- package/index91.mjs +4 -0
- package/index92.js +1 -0
- package/index92.mjs +237 -0
- package/index93.js +1 -0
- package/index93.mjs +4 -0
- package/index94.js +1 -0
- package/index94.mjs +13 -0
- package/index95.js +1 -0
- package/index95.mjs +249 -0
- package/index96.js +1 -0
- package/index96.mjs +91 -0
- package/index97.js +1 -0
- package/index97.mjs +15 -0
- package/index98.js +1 -0
- package/index98.mjs +6 -0
- package/index99.js +1 -0
- package/index99.mjs +4 -0
- package/lib/atoms/input/text-field/TextField.d.ts +1 -1
- package/lib/atoms/select/Select.types.d.ts +1 -1
- package/lib/base/icon/Icon.d.ts +1 -1
- package/lib/molecules/datepicker/Calendar.d.ts +1 -1
- package/lib/molecules/flyout/Flyout.d.ts +1 -1
- package/lib/molecules/tag/Tag.d.ts +1 -1
- package/package.json +4 -1
- package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +1 -0
- package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +1 -0
- package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +1 -0
- package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +1 -0
- package/utils/math.utils.d.ts +1 -1
- package/index.css +0 -1
package/index206.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { numericPatterns as s } from "./index223.mjs";
|
|
2
|
+
import { Parser as o } from "./index221.mjs";
|
|
3
|
+
import { parseNDigits as a, parseNumericPattern as i } from "./index222.mjs";
|
|
4
|
+
class c extends o {
|
|
5
|
+
priority = 70;
|
|
6
|
+
parse(r, e, t) {
|
|
7
|
+
switch (e) {
|
|
8
|
+
case "H":
|
|
9
|
+
return i(s.hour23h, r);
|
|
10
|
+
case "Ho":
|
|
11
|
+
return t.ordinalNumber(r, { unit: "hour" });
|
|
12
|
+
default:
|
|
13
|
+
return a(e.length, r);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
validate(r, e) {
|
|
17
|
+
return e >= 0 && e <= 23;
|
|
18
|
+
}
|
|
19
|
+
set(r, e, t) {
|
|
20
|
+
return r.setHours(t, 0, 0, 0), r;
|
|
21
|
+
}
|
|
22
|
+
incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
c as Hour0to23Parser
|
|
26
|
+
};
|
package/index207.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index223.js"),u=require("./index221.js"),t=require("./index222.js");class i extends u.Parser{priority=70;parse(r,e,s){switch(e){case"K":return t.parseNumericPattern(o.numericPatterns.hour11h,r);case"Ko":return s.ordinalNumber(r,{unit:"hour"});default:return t.parseNDigits(e.length,r)}}validate(r,e){return e>=0&&e<=11}set(r,e,s){return r.getHours()>=12&&s<12?r.setHours(s+12,0,0,0):r.setHours(s,0,0,0),r}incompatibleTokens=["h","H","k","t","T"]}exports.Hour0To11Parser=i;
|
package/index207.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { numericPatterns as t } from "./index223.mjs";
|
|
2
|
+
import { Parser as o } from "./index221.mjs";
|
|
3
|
+
import { parseNDigits as i, parseNumericPattern as u } from "./index222.mjs";
|
|
4
|
+
class f extends o {
|
|
5
|
+
priority = 70;
|
|
6
|
+
parse(r, s, e) {
|
|
7
|
+
switch (s) {
|
|
8
|
+
case "K":
|
|
9
|
+
return u(t.hour11h, r);
|
|
10
|
+
case "Ko":
|
|
11
|
+
return e.ordinalNumber(r, { unit: "hour" });
|
|
12
|
+
default:
|
|
13
|
+
return i(s.length, r);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
validate(r, s) {
|
|
17
|
+
return s >= 0 && s <= 11;
|
|
18
|
+
}
|
|
19
|
+
set(r, s, e) {
|
|
20
|
+
return r.getHours() >= 12 && e < 12 ? r.setHours(e + 12, 0, 0, 0) : r.setHours(e, 0, 0, 0), r;
|
|
21
|
+
}
|
|
22
|
+
incompatibleTokens = ["h", "H", "k", "t", "T"];
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
f as Hour0To11Parser
|
|
26
|
+
};
|
package/index208.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index223.js"),n=require("./index221.js"),t=require("./index222.js");class a extends n.Parser{priority=70;parse(r,e,s){switch(e){case"k":return t.parseNumericPattern(u.numericPatterns.hour24h,r);case"ko":return s.ordinalNumber(r,{unit:"hour"});default:return t.parseNDigits(e.length,r)}}validate(r,e){return e>=1&&e<=24}set(r,e,s){const o=s<=24?s%24:s;return r.setHours(o,0,0,0),r}incompatibleTokens=["a","b","h","H","K","t","T"]}exports.Hour1To24Parser=a;
|
package/index208.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { numericPatterns as o } from "./index223.mjs";
|
|
2
|
+
import { Parser as i } from "./index221.mjs";
|
|
3
|
+
import { parseNDigits as a, parseNumericPattern as n } from "./index222.mjs";
|
|
4
|
+
class h extends i {
|
|
5
|
+
priority = 70;
|
|
6
|
+
parse(r, e, t) {
|
|
7
|
+
switch (e) {
|
|
8
|
+
case "k":
|
|
9
|
+
return n(o.hour24h, r);
|
|
10
|
+
case "ko":
|
|
11
|
+
return t.ordinalNumber(r, { unit: "hour" });
|
|
12
|
+
default:
|
|
13
|
+
return a(e.length, r);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
validate(r, e) {
|
|
17
|
+
return e >= 1 && e <= 24;
|
|
18
|
+
}
|
|
19
|
+
set(r, e, t) {
|
|
20
|
+
const s = t <= 24 ? t % 24 : t;
|
|
21
|
+
return r.setHours(s, 0, 0, 0), r;
|
|
22
|
+
}
|
|
23
|
+
incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
h as Hour1To24Parser
|
|
27
|
+
};
|
package/index209.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index223.js"),i=require("./index221.js"),s=require("./index222.js");class u extends i.Parser{priority=60;parse(e,r,t){switch(r){case"m":return s.parseNumericPattern(n.numericPatterns.minute,e);case"mo":return t.ordinalNumber(e,{unit:"minute"});default:return s.parseNDigits(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,t){return e.setMinutes(t,0,0),e}incompatibleTokens=["t","T"]}exports.MinuteParser=u;
|
package/index209.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { numericPatterns as s } from "./index223.mjs";
|
|
2
|
+
import { Parser as i } from "./index221.mjs";
|
|
3
|
+
import { parseNDigits as n, parseNumericPattern as m } from "./index222.mjs";
|
|
4
|
+
class c extends i {
|
|
5
|
+
priority = 60;
|
|
6
|
+
parse(r, e, t) {
|
|
7
|
+
switch (e) {
|
|
8
|
+
case "m":
|
|
9
|
+
return m(s.minute, r);
|
|
10
|
+
case "mo":
|
|
11
|
+
return t.ordinalNumber(r, { unit: "minute" });
|
|
12
|
+
default:
|
|
13
|
+
return n(e.length, r);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
validate(r, e) {
|
|
17
|
+
return e >= 0 && e <= 59;
|
|
18
|
+
}
|
|
19
|
+
set(r, e, t) {
|
|
20
|
+
return r.setMinutes(t, 0, 0), r;
|
|
21
|
+
}
|
|
22
|
+
incompatibleTokens = ["t", "T"];
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
c as MinuteParser
|
|
26
|
+
};
|
package/index21.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),d=require("react"),m=require("./index54.js"),b=require("./index10.js");function h({backToTop:t,backToTopAriaLabel:n="Terug naar omhoog",items:e=[],qa:a}){const s=()=>{window.scrollTo({top:0,behavior:"smooth"})},c=()=>e?.map((r,l)=>{const i=m.renderHTMLLink(r),u=e.length>1&&l!==e.length-1;return o.jsxs(d.Fragment,{children:[i,u?" | ":""]},r.label)});return o.jsxs("footer",{className:"o-footer","data-qa":a,children:[o.jsx("span",{className:"o-footer__label",children:c()}),t&&o.jsx(b.Button,{className:"o-footer__button a-button--secondary",addOn:{type:"icon",iconProps:{name:"arrow-up-1"}},onClick:s,ariaLabel:n})]})}exports.Footer=h;
|
package/index21.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as e, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { renderHTMLLink as p } from "./index54.mjs";
|
|
4
|
+
import { Button as f } from "./index10.mjs";
|
|
5
|
+
function L({ backToTop: t, backToTopAriaLabel: a = "Terug naar omhoog", items: o = [], qa: s }) {
|
|
6
|
+
const c = () => {
|
|
7
|
+
window.scrollTo({
|
|
8
|
+
top: 0,
|
|
9
|
+
behavior: "smooth"
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ e("footer", { className: "o-footer", "data-qa": s, children: [
|
|
13
|
+
/* @__PURE__ */ n("span", { className: "o-footer__label", children: o?.map((r, l) => {
|
|
14
|
+
const i = p(r), m = o.length > 1 && l !== o.length - 1;
|
|
15
|
+
return /* @__PURE__ */ e(d.Fragment, { children: [
|
|
16
|
+
i,
|
|
17
|
+
m ? " | " : ""
|
|
18
|
+
] }, r.label);
|
|
19
|
+
}) }),
|
|
20
|
+
t && /* @__PURE__ */ n(
|
|
21
|
+
f,
|
|
22
|
+
{
|
|
23
|
+
className: "o-footer__button a-button--secondary",
|
|
24
|
+
addOn: { type: "icon", iconProps: { name: "arrow-up-1" } },
|
|
25
|
+
onClick: c,
|
|
26
|
+
ariaLabel: a
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
] });
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
L as Footer
|
|
33
|
+
};
|
package/index210.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index223.js"),a=require("./index221.js"),t=require("./index222.js");class c extends a.Parser{priority=50;parse(e,r,s){switch(r){case"s":return t.parseNumericPattern(n.numericPatterns.second,e);case"so":return s.ordinalNumber(e,{unit:"second"});default:return t.parseNDigits(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,s){return e.setSeconds(s,0),e}incompatibleTokens=["t","T"]}exports.SecondParser=c;
|
package/index210.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { numericPatterns as t } from "./index223.mjs";
|
|
2
|
+
import { Parser as n } from "./index221.mjs";
|
|
3
|
+
import { parseNDigits as o, parseNumericPattern as a } from "./index222.mjs";
|
|
4
|
+
class u extends n {
|
|
5
|
+
priority = 50;
|
|
6
|
+
parse(r, e, s) {
|
|
7
|
+
switch (e) {
|
|
8
|
+
case "s":
|
|
9
|
+
return a(t.second, r);
|
|
10
|
+
case "so":
|
|
11
|
+
return s.ordinalNumber(r, { unit: "second" });
|
|
12
|
+
default:
|
|
13
|
+
return o(e.length, r);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
validate(r, e) {
|
|
17
|
+
return e >= 0 && e <= 59;
|
|
18
|
+
}
|
|
19
|
+
set(r, e, s) {
|
|
20
|
+
return r.setSeconds(s, 0), r;
|
|
21
|
+
}
|
|
22
|
+
incompatibleTokens = ["t", "T"];
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
u as SecondParser
|
|
26
|
+
};
|
package/index211.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index221.js"),s=require("./index222.js");class i extends n.Parser{priority=30;parse(e,r){const t=a=>Math.trunc(a*Math.pow(10,-r.length+3));return s.mapValue(s.parseNDigits(r.length,e),t)}set(e,r,t){return e.setMilliseconds(t),e}incompatibleTokens=["t","T"]}exports.FractionOfSecondParser=i;
|
package/index211.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Parser as a } from "./index221.mjs";
|
|
2
|
+
import { mapValue as o, parseNDigits as i } from "./index222.mjs";
|
|
3
|
+
class c extends a {
|
|
4
|
+
priority = 30;
|
|
5
|
+
parse(r, e) {
|
|
6
|
+
const t = (s) => Math.trunc(s * Math.pow(10, -e.length + 3));
|
|
7
|
+
return o(i(e.length, r), t);
|
|
8
|
+
}
|
|
9
|
+
set(r, e, t) {
|
|
10
|
+
return r.setMilliseconds(t), r;
|
|
11
|
+
}
|
|
12
|
+
incompatibleTokens = ["t", "T"];
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
c as FractionOfSecondParser
|
|
16
|
+
};
|
package/index212.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index148.js"),o=require("./index152.js"),t=require("./index223.js"),a=require("./index221.js"),r=require("./index222.js");class c extends a.Parser{priority=10;parse(e,n){switch(n){case"X":return r.parseTimezonePattern(t.timezonePatterns.basicOptionalMinutes,e);case"XX":return r.parseTimezonePattern(t.timezonePatterns.basic,e);case"XXXX":return r.parseTimezonePattern(t.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return r.parseTimezonePattern(t.timezonePatterns.extendedOptionalSeconds,e);case"XXX":default:return r.parseTimezonePattern(t.timezonePatterns.extended,e)}}set(e,n,s){return n.timestampIsSet?e:i.constructFrom(e,e.getTime()-o.getTimezoneOffsetInMilliseconds(e)-s)}incompatibleTokens=["t","T","x"]}exports.ISOTimezoneWithZParser=c;
|
package/index212.mjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { constructFrom as i } from "./index148.mjs";
|
|
2
|
+
import { getTimezoneOffsetInMilliseconds as n } from "./index152.mjs";
|
|
3
|
+
import { timezonePatterns as r } from "./index223.mjs";
|
|
4
|
+
import { Parser as m } from "./index221.mjs";
|
|
5
|
+
import { parseTimezonePattern as t } from "./index222.mjs";
|
|
6
|
+
class l extends m {
|
|
7
|
+
priority = 10;
|
|
8
|
+
parse(e, s) {
|
|
9
|
+
switch (s) {
|
|
10
|
+
case "X":
|
|
11
|
+
return t(
|
|
12
|
+
r.basicOptionalMinutes,
|
|
13
|
+
e
|
|
14
|
+
);
|
|
15
|
+
case "XX":
|
|
16
|
+
return t(r.basic, e);
|
|
17
|
+
case "XXXX":
|
|
18
|
+
return t(
|
|
19
|
+
r.basicOptionalSeconds,
|
|
20
|
+
e
|
|
21
|
+
);
|
|
22
|
+
case "XXXXX":
|
|
23
|
+
return t(
|
|
24
|
+
r.extendedOptionalSeconds,
|
|
25
|
+
e
|
|
26
|
+
);
|
|
27
|
+
case "XXX":
|
|
28
|
+
default:
|
|
29
|
+
return t(r.extended, e);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
set(e, s, o) {
|
|
33
|
+
return s.timestampIsSet ? e : i(
|
|
34
|
+
e,
|
|
35
|
+
e.getTime() - n(e) - o
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
incompatibleTokens = ["t", "T", "x"];
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
l as ISOTimezoneWithZParser
|
|
42
|
+
};
|
package/index213.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index148.js"),o=require("./index152.js"),t=require("./index223.js"),a=require("./index221.js"),r=require("./index222.js");class c extends a.Parser{priority=10;parse(e,n){switch(n){case"x":return r.parseTimezonePattern(t.timezonePatterns.basicOptionalMinutes,e);case"xx":return r.parseTimezonePattern(t.timezonePatterns.basic,e);case"xxxx":return r.parseTimezonePattern(t.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return r.parseTimezonePattern(t.timezonePatterns.extendedOptionalSeconds,e);case"xxx":default:return r.parseTimezonePattern(t.timezonePatterns.extended,e)}}set(e,n,s){return n.timestampIsSet?e:i.constructFrom(e,e.getTime()-o.getTimezoneOffsetInMilliseconds(e)-s)}incompatibleTokens=["t","T","X"]}exports.ISOTimezoneParser=c;
|
package/index213.mjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { constructFrom as n } from "./index148.mjs";
|
|
2
|
+
import { getTimezoneOffsetInMilliseconds as i } from "./index152.mjs";
|
|
3
|
+
import { timezonePatterns as r } from "./index223.mjs";
|
|
4
|
+
import { Parser as m } from "./index221.mjs";
|
|
5
|
+
import { parseTimezonePattern as s } from "./index222.mjs";
|
|
6
|
+
class l extends m {
|
|
7
|
+
priority = 10;
|
|
8
|
+
parse(e, t) {
|
|
9
|
+
switch (t) {
|
|
10
|
+
case "x":
|
|
11
|
+
return s(
|
|
12
|
+
r.basicOptionalMinutes,
|
|
13
|
+
e
|
|
14
|
+
);
|
|
15
|
+
case "xx":
|
|
16
|
+
return s(r.basic, e);
|
|
17
|
+
case "xxxx":
|
|
18
|
+
return s(
|
|
19
|
+
r.basicOptionalSeconds,
|
|
20
|
+
e
|
|
21
|
+
);
|
|
22
|
+
case "xxxxx":
|
|
23
|
+
return s(
|
|
24
|
+
r.extendedOptionalSeconds,
|
|
25
|
+
e
|
|
26
|
+
);
|
|
27
|
+
case "xxx":
|
|
28
|
+
default:
|
|
29
|
+
return s(r.extended, e);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
set(e, t, o) {
|
|
33
|
+
return t.timestampIsSet ? e : n(
|
|
34
|
+
e,
|
|
35
|
+
e.getTime() - i(e) - o
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
incompatibleTokens = ["t", "T", "X"];
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
l as ISOTimezoneParser
|
|
42
|
+
};
|
package/index214.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index148.js"),t=require("./index221.js"),i=require("./index222.js");class n extends t.Parser{priority=40;parse(e){return i.parseAnyDigitsSigned(e)}set(e,a,r){return[s.constructFrom(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}exports.TimestampSecondsParser=n;
|
package/index214.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { constructFrom as t } from "./index148.mjs";
|
|
2
|
+
import { Parser as s } from "./index221.mjs";
|
|
3
|
+
import { parseAnyDigitsSigned as o } from "./index222.mjs";
|
|
4
|
+
class c extends s {
|
|
5
|
+
priority = 40;
|
|
6
|
+
parse(r) {
|
|
7
|
+
return o(r);
|
|
8
|
+
}
|
|
9
|
+
set(r, m, e) {
|
|
10
|
+
return [t(r, e * 1e3), { timestampIsSet: !0 }];
|
|
11
|
+
}
|
|
12
|
+
incompatibleTokens = "*";
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
c as TimestampSecondsParser
|
|
16
|
+
};
|
package/index215.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index148.js"),t=require("./index221.js"),i=require("./index222.js");class n extends t.Parser{priority=20;parse(e){return i.parseAnyDigitsSigned(e)}set(e,a,r){return[s.constructFrom(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}exports.TimestampMillisecondsParser=n;
|
package/index215.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { constructFrom as t } from "./index148.mjs";
|
|
2
|
+
import { Parser as s } from "./index221.mjs";
|
|
3
|
+
import { parseAnyDigitsSigned as i } from "./index222.mjs";
|
|
4
|
+
class c extends s {
|
|
5
|
+
priority = 20;
|
|
6
|
+
parse(r) {
|
|
7
|
+
return i(r);
|
|
8
|
+
}
|
|
9
|
+
set(r, m, e) {
|
|
10
|
+
return [t(r, e), { timestampIsSet: !0 }];
|
|
11
|
+
}
|
|
12
|
+
incompatibleTokens = "*";
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
c as TimestampMillisecondsParser
|
|
16
|
+
};
|
package/index216.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=(s,n,t)=>{let e;const o=a[s];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};exports.formatDistance=r;
|
package/index216.mjs
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
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"
|
|
62
|
+
}
|
|
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
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
r as formatDistance
|
|
70
|
+
};
|
package/index217.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index229.js"),m={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},e={date:t.buildFormatLongFn({formats:m,defaultWidth:"full"}),time:t.buildFormatLongFn({formats:o,defaultWidth:"full"}),dateTime:t.buildFormatLongFn({formats:a,defaultWidth:"full"})};exports.formatLong=e;
|
package/index217.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { buildFormatLongFn as t } from "./index229.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
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
e as formatLong
|
|
33
|
+
};
|
package/index218.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a=(e,o,r,s)=>t[e];exports.formatRelative=a;
|
package/index218.mjs
ADDED
package/index219.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index230.js"),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},r={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},d={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},m={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},g=(i,l)=>{const n=Number(i),t=n%100;if(t>20||t<10)switch(t%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},h={ordinalNumber:g,era:e.buildLocalizeFn({values:a,defaultWidth:"wide"}),quarter:e.buildLocalizeFn({values:o,defaultWidth:"wide",argumentCallback:i=>i-1}),month:e.buildLocalizeFn({values:r,defaultWidth:"wide"}),day:e.buildLocalizeFn({values:d,defaultWidth:"wide"}),dayPeriod:e.buildLocalizeFn({values:u,defaultWidth:"wide",formattingValues:m,defaultFormattingWidth:"wide"})};exports.localize=h;
|
package/index219.mjs
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { buildLocalizeFn as e } from "./index230.mjs";
|
|
2
|
+
const a = {
|
|
3
|
+
narrow: ["B", "A"],
|
|
4
|
+
abbreviated: ["BC", "AD"],
|
|
5
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
6
|
+
}, r = {
|
|
7
|
+
narrow: ["1", "2", "3", "4"],
|
|
8
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
9
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
10
|
+
}, o = {
|
|
11
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
12
|
+
abbreviated: [
|
|
13
|
+
"Jan",
|
|
14
|
+
"Feb",
|
|
15
|
+
"Mar",
|
|
16
|
+
"Apr",
|
|
17
|
+
"May",
|
|
18
|
+
"Jun",
|
|
19
|
+
"Jul",
|
|
20
|
+
"Aug",
|
|
21
|
+
"Sep",
|
|
22
|
+
"Oct",
|
|
23
|
+
"Nov",
|
|
24
|
+
"Dec"
|
|
25
|
+
],
|
|
26
|
+
wide: [
|
|
27
|
+
"January",
|
|
28
|
+
"February",
|
|
29
|
+
"March",
|
|
30
|
+
"April",
|
|
31
|
+
"May",
|
|
32
|
+
"June",
|
|
33
|
+
"July",
|
|
34
|
+
"August",
|
|
35
|
+
"September",
|
|
36
|
+
"October",
|
|
37
|
+
"November",
|
|
38
|
+
"December"
|
|
39
|
+
]
|
|
40
|
+
}, d = {
|
|
41
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
42
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
43
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
44
|
+
wide: [
|
|
45
|
+
"Sunday",
|
|
46
|
+
"Monday",
|
|
47
|
+
"Tuesday",
|
|
48
|
+
"Wednesday",
|
|
49
|
+
"Thursday",
|
|
50
|
+
"Friday",
|
|
51
|
+
"Saturday"
|
|
52
|
+
]
|
|
53
|
+
}, m = {
|
|
54
|
+
narrow: {
|
|
55
|
+
am: "a",
|
|
56
|
+
pm: "p",
|
|
57
|
+
midnight: "mi",
|
|
58
|
+
noon: "n",
|
|
59
|
+
morning: "morning",
|
|
60
|
+
afternoon: "afternoon",
|
|
61
|
+
evening: "evening",
|
|
62
|
+
night: "night"
|
|
63
|
+
},
|
|
64
|
+
abbreviated: {
|
|
65
|
+
am: "AM",
|
|
66
|
+
pm: "PM",
|
|
67
|
+
midnight: "midnight",
|
|
68
|
+
noon: "noon",
|
|
69
|
+
morning: "morning",
|
|
70
|
+
afternoon: "afternoon",
|
|
71
|
+
evening: "evening",
|
|
72
|
+
night: "night"
|
|
73
|
+
},
|
|
74
|
+
wide: {
|
|
75
|
+
am: "a.m.",
|
|
76
|
+
pm: "p.m.",
|
|
77
|
+
midnight: "midnight",
|
|
78
|
+
noon: "noon",
|
|
79
|
+
morning: "morning",
|
|
80
|
+
afternoon: "afternoon",
|
|
81
|
+
evening: "evening",
|
|
82
|
+
night: "night"
|
|
83
|
+
}
|
|
84
|
+
}, g = {
|
|
85
|
+
narrow: {
|
|
86
|
+
am: "a",
|
|
87
|
+
pm: "p",
|
|
88
|
+
midnight: "mi",
|
|
89
|
+
noon: "n",
|
|
90
|
+
morning: "in the morning",
|
|
91
|
+
afternoon: "in the afternoon",
|
|
92
|
+
evening: "in the evening",
|
|
93
|
+
night: "at night"
|
|
94
|
+
},
|
|
95
|
+
abbreviated: {
|
|
96
|
+
am: "AM",
|
|
97
|
+
pm: "PM",
|
|
98
|
+
midnight: "midnight",
|
|
99
|
+
noon: "noon",
|
|
100
|
+
morning: "in the morning",
|
|
101
|
+
afternoon: "in the afternoon",
|
|
102
|
+
evening: "in the evening",
|
|
103
|
+
night: "at night"
|
|
104
|
+
},
|
|
105
|
+
wide: {
|
|
106
|
+
am: "a.m.",
|
|
107
|
+
pm: "p.m.",
|
|
108
|
+
midnight: "midnight",
|
|
109
|
+
noon: "noon",
|
|
110
|
+
morning: "in the morning",
|
|
111
|
+
afternoon: "in the afternoon",
|
|
112
|
+
evening: "in the evening",
|
|
113
|
+
night: "at night"
|
|
114
|
+
}
|
|
115
|
+
}, u = (i, h) => {
|
|
116
|
+
const n = Number(i), t = n % 100;
|
|
117
|
+
if (t > 20 || t < 10)
|
|
118
|
+
switch (t % 10) {
|
|
119
|
+
case 1:
|
|
120
|
+
return n + "st";
|
|
121
|
+
case 2:
|
|
122
|
+
return n + "nd";
|
|
123
|
+
case 3:
|
|
124
|
+
return n + "rd";
|
|
125
|
+
}
|
|
126
|
+
return n + "th";
|
|
127
|
+
}, l = {
|
|
128
|
+
ordinalNumber: u,
|
|
129
|
+
era: e({
|
|
130
|
+
values: a,
|
|
131
|
+
defaultWidth: "wide"
|
|
132
|
+
}),
|
|
133
|
+
quarter: e({
|
|
134
|
+
values: r,
|
|
135
|
+
defaultWidth: "wide",
|
|
136
|
+
argumentCallback: (i) => i - 1
|
|
137
|
+
}),
|
|
138
|
+
month: e({
|
|
139
|
+
values: o,
|
|
140
|
+
defaultWidth: "wide"
|
|
141
|
+
}),
|
|
142
|
+
day: e({
|
|
143
|
+
values: d,
|
|
144
|
+
defaultWidth: "wide"
|
|
145
|
+
}),
|
|
146
|
+
dayPeriod: e({
|
|
147
|
+
values: m,
|
|
148
|
+
defaultWidth: "wide",
|
|
149
|
+
formattingValues: g,
|
|
150
|
+
defaultFormattingWidth: "wide"
|
|
151
|
+
})
|
|
152
|
+
};
|
|
153
|
+
export {
|
|
154
|
+
l as localize
|
|
155
|
+
};
|
package/index22.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const k=require("react/jsx-runtime"),b=require("./index51.js"),t=require("react");function c({onItemClick:l,type:a,ordered:i,flushed:e,lined:o,children:r,qa:n}){const u=b.classNames({"a-list":a!=="avatar"&&a!=="checkbox","a-list--flushed":!!e&&a!=="avatar"&&a!=="checkbox","a-list--lined":!!o,"a-avatar-list":a==="avatar","a-avatar-list--flushed":!!(a==="avatar"&&e),"a-checkbox-list":a==="checkbox","a-checkbox-list--flushed":!!(a==="checkbox"&&e)}),d=`${i?"ol":"ul"}`;return k.jsx(d,{className:u,"data-qa":n,children:t.Children.map(r||[],s=>t.cloneElement(s,{key:s.props.id,onClick:s.props.onClick||l}))})}exports.FunctionalList=c;exports.default=c;
|