@okam/stack-ui 1.31.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/fields/Select/Select.interface.d.ts +2 -2
- package/components/fields/TextInputField/index.d.ts +5 -1
- package/components/fields/TextInputField/interface.d.ts +3 -1
- package/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index115.js +1 -1
- package/index115.mjs +1 -1
- package/index120.js +1 -1
- package/index120.mjs +1 -1
- package/index138.js +1 -1
- package/index138.mjs +52 -12
- package/index139.js +1 -1
- package/index139.mjs +12 -46
- package/index140.js +1 -1
- package/index140.mjs +46 -241
- package/index141.js +1 -2
- package/index141.mjs +241 -13
- package/index142.js +2 -1
- package/index142.mjs +12 -29
- package/index143.js +1 -1
- package/index143.mjs +30 -52
- package/index144.js +1 -1
- package/index144.mjs +1 -1
- package/index145.js +1 -1
- package/index145.mjs +4 -4
- package/index146.js +1 -1
- package/index146.mjs +3 -3
- package/index147.js +1 -1
- package/index147.mjs +1 -1
- package/index156.js +1 -1
- package/index156.mjs +3 -3
- package/index158.js +1 -1
- package/index158.mjs +1 -1
- package/index159.js +1 -1
- package/index159.mjs +7 -7
- package/index167.js +1 -1
- package/index167.mjs +1 -1
- package/index171.js +1 -1
- package/index171.mjs +1 -1
- package/index173.js +1 -1
- package/index173.mjs +1 -1
- package/index175.js +1 -1
- package/index175.mjs +1 -1
- package/index176.js +1 -1
- package/index176.mjs +1 -1
- package/index177.js +1 -1
- package/index177.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +3 -3
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index198.js +1 -1
- package/index198.mjs +1 -1
- package/index204.js +1 -1
- package/index204.mjs +2 -2
- package/index206.js +1 -1
- package/index206.mjs +2 -2
- package/index207.js +1 -1
- package/index207.mjs +2 -2
- package/index208.js +1 -1
- package/index208.mjs +2 -2
- package/index209.js +1 -1
- package/index209.mjs +2 -2
- package/index210.js +1 -1
- package/index210.mjs +3 -3
- package/index211.js +1 -1
- package/index211.mjs +4 -4
- package/index212.js +1 -1
- package/index212.mjs +1 -1
- package/index213.js +1 -1
- package/index213.mjs +2 -2
- package/index214.js +1 -1
- package/index214.mjs +1 -1
- package/index215.js +1 -1
- package/index215.mjs +3 -3
- package/index216.js +1 -1
- package/index216.mjs +1 -1
- package/index217.js +1 -1
- package/index217.mjs +2 -2
- package/index218.js +1 -1
- package/index218.mjs +1 -1
- package/index219.js +1 -1
- package/index219.mjs +2 -2
- package/index22.js +1 -1
- package/index22.mjs +148 -61
- package/index220.js +1 -1
- package/index220.mjs +1 -1
- package/index223.js +1 -1
- package/index223.mjs +4 -4
- package/index224.js +1 -1
- package/index224.mjs +2 -2
- package/index225.js +1 -1
- package/index225.mjs +5 -5
- package/index226.js +1 -1
- package/index226.mjs +4 -4
- package/index227.js +1 -1
- package/index227.mjs +5 -5
- package/index228.js +1 -1
- package/index228.mjs +5 -5
- package/index229.js +1 -1
- package/index229.mjs +2 -2
- package/index306.js +1 -1
- package/index306.mjs +23 -129
- package/index307.js +1 -1
- package/index307.mjs +38 -181
- package/index308.js +1 -1
- package/index308.mjs +5 -9
- package/index309.js +1 -1
- package/index309.mjs +6 -4
- package/index310.js +1 -1
- package/index310.mjs +14 -36
- package/index311.js +1 -1
- package/index311.mjs +24 -5
- package/index312.js +1 -1
- package/index312.mjs +27 -28
- package/index313.js +1 -1
- package/index313.mjs +31 -6
- package/index314.js +1 -1
- package/index314.mjs +26 -138
- package/index315.js +1 -1
- package/index315.mjs +9 -197
- package/index316.js +1 -1
- package/index316.mjs +5 -22
- package/index317.js +1 -1
- package/index317.mjs +7 -28
- package/index318.js +1 -1
- package/index318.mjs +13 -46
- package/index319.js +1 -1
- package/index319.mjs +7 -47
- package/index320.js +1 -1
- package/index320.mjs +125 -95
- package/index321.js +1 -1
- package/index321.mjs +189 -4
- package/index322.js +1 -1
- package/index322.mjs +10 -72
- package/index323.js +1 -1
- package/index323.mjs +3 -58
- package/index324.js +1 -1
- package/index324.mjs +36 -7
- package/index325.js +1 -1
- package/index325.mjs +5 -11
- package/index326.js +1 -1
- package/index326.mjs +28 -46
- package/index327.js +1 -1
- package/index327.mjs +6 -24
- package/index328.js +1 -1
- package/index328.mjs +141 -6
- package/index329.js +1 -1
- package/index329.mjs +197 -14
- package/index330.js +1 -1
- package/index330.mjs +22 -24
- package/index331.js +1 -1
- package/index331.mjs +44 -26
- package/index332.js +1 -1
- package/index332.mjs +46 -29
- package/index333.js +1 -1
- package/index333.mjs +99 -8
- package/index334.js +1 -1
- package/index334.mjs +72 -6
- package/index335.js +1 -1
- package/index335.mjs +58 -7
- package/index336.js +1 -1
- package/index336.mjs +7 -13
- package/index337.js +1 -1
- package/index337.mjs +11 -8
- package/index339.js +1 -1
- package/index339.mjs +1 -1
- package/index340.js +1 -1
- package/index340.mjs +2 -2
- package/index343.js +1 -1
- package/index343.mjs +1 -1
- package/index345.js +1 -1
- package/index345.mjs +117 -71
- package/index346.js +1 -1
- package/index346.mjs +71 -117
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +9 -3
package/index345.mjs
CHANGED
|
@@ -1,74 +1,120 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import P from "./index443.mjs";
|
|
26
|
-
import U from "./index444.mjs";
|
|
27
|
-
import k from "./index445.mjs";
|
|
28
|
-
import n from "./index446.mjs";
|
|
29
|
-
import v from "./index447.mjs";
|
|
30
|
-
import K from "./index448.mjs";
|
|
31
|
-
import N from "./index449.mjs";
|
|
32
|
-
import z from "./index450.mjs";
|
|
33
|
-
import A from "./index451.mjs";
|
|
34
|
-
import B from "./index452.mjs";
|
|
35
|
-
var C = {};
|
|
36
|
-
C = {
|
|
37
|
-
"ar-AE": r,
|
|
38
|
-
"bg-BG": o,
|
|
39
|
-
"cs-CZ": e,
|
|
40
|
-
"da-DK": t,
|
|
41
|
-
"de-DE": f,
|
|
42
|
-
"el-GR": p,
|
|
43
|
-
"en-US": $,
|
|
44
|
-
"es-ES": m,
|
|
45
|
-
"et-EE": c,
|
|
46
|
-
"fi-FI": b,
|
|
47
|
-
"fr-FR": s,
|
|
48
|
-
"he-IL": a,
|
|
49
|
-
"hr-HR": i,
|
|
50
|
-
"hu-HU": x,
|
|
51
|
-
"it-IT": d,
|
|
52
|
-
"ja-JP": R,
|
|
53
|
-
"ko-KR": l,
|
|
54
|
-
"lt-LT": E,
|
|
55
|
-
"lv-LV": S,
|
|
56
|
-
"nb-NO": h,
|
|
57
|
-
"nl-NL": L,
|
|
58
|
-
"pl-PL": T,
|
|
59
|
-
"pt-BR": u,
|
|
60
|
-
"pt-PT": I,
|
|
61
|
-
"ro-RO": P,
|
|
62
|
-
"ru-RU": U,
|
|
63
|
-
"sk-SK": k,
|
|
64
|
-
"sl-SI": n,
|
|
65
|
-
"sr-SP": v,
|
|
66
|
-
"sv-SE": K,
|
|
67
|
-
"tr-TR": N,
|
|
68
|
-
"uk-UA": z,
|
|
69
|
-
"zh-CN": A,
|
|
70
|
-
"zh-TW": B
|
|
1
|
+
let u = /* @__PURE__ */ new Map(), f = !1;
|
|
2
|
+
try {
|
|
3
|
+
f = new Intl.NumberFormat("de-DE", {
|
|
4
|
+
signDisplay: "exceptZero"
|
|
5
|
+
}).resolvedOptions().signDisplay === "exceptZero";
|
|
6
|
+
} catch {
|
|
7
|
+
}
|
|
8
|
+
let l = !1;
|
|
9
|
+
try {
|
|
10
|
+
l = new Intl.NumberFormat("de-DE", {
|
|
11
|
+
style: "unit",
|
|
12
|
+
unit: "degree"
|
|
13
|
+
}).resolvedOptions().style === "unit";
|
|
14
|
+
} catch {
|
|
15
|
+
}
|
|
16
|
+
const c = {
|
|
17
|
+
degree: {
|
|
18
|
+
narrow: {
|
|
19
|
+
default: "°",
|
|
20
|
+
"ja-JP": " 度",
|
|
21
|
+
"zh-TW": "度",
|
|
22
|
+
"sl-SI": " °"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
71
25
|
};
|
|
26
|
+
class d {
|
|
27
|
+
/** Formats a number value as a string, according to the locale and options provided to the constructor. */
|
|
28
|
+
format(t) {
|
|
29
|
+
let e = "";
|
|
30
|
+
if (!f && this.options.signDisplay != null ? e = m(this.numberFormatter, this.options.signDisplay, t) : e = this.numberFormatter.format(t), this.options.style === "unit" && !l) {
|
|
31
|
+
var i;
|
|
32
|
+
let { unit: a, unitDisplay: s = "short", locale: n } = this.resolvedOptions();
|
|
33
|
+
if (!a) return e;
|
|
34
|
+
let o = (i = c[a]) === null || i === void 0 ? void 0 : i[s];
|
|
35
|
+
e += o[n] || o.default;
|
|
36
|
+
}
|
|
37
|
+
return e;
|
|
38
|
+
}
|
|
39
|
+
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
|
|
40
|
+
formatToParts(t) {
|
|
41
|
+
return this.numberFormatter.formatToParts(t);
|
|
42
|
+
}
|
|
43
|
+
/** Formats a number range as a string. */
|
|
44
|
+
formatRange(t, e) {
|
|
45
|
+
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(t, e);
|
|
46
|
+
if (e < t) throw new RangeError("End date must be >= start date");
|
|
47
|
+
return `${this.format(t)} – ${this.format(e)}`;
|
|
48
|
+
}
|
|
49
|
+
/** Formats a number range as an array of parts. */
|
|
50
|
+
formatRangeToParts(t, e) {
|
|
51
|
+
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(t, e);
|
|
52
|
+
if (e < t) throw new RangeError("End date must be >= start date");
|
|
53
|
+
let i = this.numberFormatter.formatToParts(t), a = this.numberFormatter.formatToParts(e);
|
|
54
|
+
return [
|
|
55
|
+
...i.map((s) => ({
|
|
56
|
+
...s,
|
|
57
|
+
source: "startRange"
|
|
58
|
+
})),
|
|
59
|
+
{
|
|
60
|
+
type: "literal",
|
|
61
|
+
value: " – ",
|
|
62
|
+
source: "shared"
|
|
63
|
+
},
|
|
64
|
+
...a.map((s) => ({
|
|
65
|
+
...s,
|
|
66
|
+
source: "endRange"
|
|
67
|
+
}))
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
/** Returns the resolved formatting options based on the values passed to the constructor. */
|
|
71
|
+
resolvedOptions() {
|
|
72
|
+
let t = this.numberFormatter.resolvedOptions();
|
|
73
|
+
return !f && this.options.signDisplay != null && (t = {
|
|
74
|
+
...t,
|
|
75
|
+
signDisplay: this.options.signDisplay
|
|
76
|
+
}), !l && this.options.style === "unit" && (t = {
|
|
77
|
+
...t,
|
|
78
|
+
style: "unit",
|
|
79
|
+
unit: this.options.unit,
|
|
80
|
+
unitDisplay: this.options.unitDisplay
|
|
81
|
+
}), t;
|
|
82
|
+
}
|
|
83
|
+
constructor(t, e = {}) {
|
|
84
|
+
this.numberFormatter = p(t, e), this.options = e;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function p(r, t = {}) {
|
|
88
|
+
let { numberingSystem: e } = t;
|
|
89
|
+
if (e && r.includes("-nu-") && (r.includes("-u-") || (r += "-u-"), r += `-nu-${e}`), t.style === "unit" && !l) {
|
|
90
|
+
var i;
|
|
91
|
+
let { unit: n, unitDisplay: o = "short" } = t;
|
|
92
|
+
if (!n) throw new Error('unit option must be provided with style: "unit"');
|
|
93
|
+
if (!(!((i = c[n]) === null || i === void 0) && i[o])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);
|
|
94
|
+
t = {
|
|
95
|
+
...t,
|
|
96
|
+
style: "decimal"
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
let a = r + (t ? Object.entries(t).sort((n, o) => n[0] < o[0] ? -1 : 1).join() : "");
|
|
100
|
+
if (u.has(a)) return u.get(a);
|
|
101
|
+
let s = new Intl.NumberFormat(r, t);
|
|
102
|
+
return u.set(a, s), s;
|
|
103
|
+
}
|
|
104
|
+
function m(r, t, e) {
|
|
105
|
+
if (t === "auto") return r.format(e);
|
|
106
|
+
if (t === "never") return r.format(Math.abs(e));
|
|
107
|
+
{
|
|
108
|
+
let i = !1;
|
|
109
|
+
if (t === "always" ? i = e > 0 || Object.is(e, 0) : t === "exceptZero" && (Object.is(e, -0) || Object.is(e, 0) ? e = Math.abs(e) : i = e > 0), i) {
|
|
110
|
+
let a = r.format(-e), s = r.format(e), n = a.replace(s, "").replace(/\u200e|\u061C/, "");
|
|
111
|
+
return [
|
|
112
|
+
...n
|
|
113
|
+
].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), a.replace(s, "!!!").replace(n, "+").replace("!!!", s);
|
|
114
|
+
} else return r.format(e);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
72
117
|
export {
|
|
73
|
-
|
|
118
|
+
d as NumberFormatter,
|
|
119
|
+
m as numberFormatSignDisplayPolyfill
|
|
74
120
|
};
|
package/index346.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const e=require("./index419.js"),r=require("./index420.js"),t=require("./index421.js"),s=require("./index422.js"),u=require("./index423.js"),n=require("./index424.js"),i=require("./index425.js"),o=require("./index426.js"),c=require("./index427.js"),q=require("./index428.js"),R=require("./index429.js"),l=require("./index430.js"),E=require("./index431.js"),S=require("./index432.js"),h=require("./index433.js"),L=require("./index434.js"),T=require("./index435.js"),a=require("./index436.js"),I=require("./index437.js"),P=require("./index438.js"),U=require("./index439.js"),d=require("./index440.js"),f=require("./index441.js"),p=require("./index442.js"),k=require("./index443.js"),K=require("./index444.js"),N=require("./index445.js"),b=require("./index446.js"),v=require("./index447.js"),z=require("./index448.js"),A=require("./index449.js"),B=require("./index450.js"),C=require("./index451.js"),D=require("./index452.js");exports.default={};exports.default={"ar-AE":e,"bg-BG":r,"cs-CZ":t,"da-DK":s,"de-DE":u,"el-GR":n,"en-US":i,"es-ES":o,"et-EE":c,"fi-FI":q,"fr-FR":R,"he-IL":l,"hr-HR":E,"hu-HU":S,"it-IT":h,"ja-JP":L,"ko-KR":T,"lt-LT":a,"lv-LV":I,"nb-NO":P,"nl-NL":U,"pl-PL":d,"pt-BR":f,"pt-PT":p,"ro-RO":k,"ru-RU":K,"sk-SK":N,"sl-SI":b,"sr-SP":v,"sv-SE":z,"tr-TR":A,"uk-UA":B,"zh-CN":C,"zh-TW":D};module.exports=exports.default;
|
package/index346.mjs
CHANGED
|
@@ -1,120 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import r from "./index419.mjs";
|
|
2
|
+
import o from "./index420.mjs";
|
|
3
|
+
import e from "./index421.mjs";
|
|
4
|
+
import t from "./index422.mjs";
|
|
5
|
+
import f from "./index423.mjs";
|
|
6
|
+
import p from "./index424.mjs";
|
|
7
|
+
import $ from "./index425.mjs";
|
|
8
|
+
import m from "./index426.mjs";
|
|
9
|
+
import c from "./index427.mjs";
|
|
10
|
+
import b from "./index428.mjs";
|
|
11
|
+
import s from "./index429.mjs";
|
|
12
|
+
import a from "./index430.mjs";
|
|
13
|
+
import i from "./index431.mjs";
|
|
14
|
+
import x from "./index432.mjs";
|
|
15
|
+
import d from "./index433.mjs";
|
|
16
|
+
import R from "./index434.mjs";
|
|
17
|
+
import l from "./index435.mjs";
|
|
18
|
+
import E from "./index436.mjs";
|
|
19
|
+
import S from "./index437.mjs";
|
|
20
|
+
import h from "./index438.mjs";
|
|
21
|
+
import L from "./index439.mjs";
|
|
22
|
+
import T from "./index440.mjs";
|
|
23
|
+
import u from "./index441.mjs";
|
|
24
|
+
import I from "./index442.mjs";
|
|
25
|
+
import P from "./index443.mjs";
|
|
26
|
+
import U from "./index444.mjs";
|
|
27
|
+
import k from "./index445.mjs";
|
|
28
|
+
import n from "./index446.mjs";
|
|
29
|
+
import v from "./index447.mjs";
|
|
30
|
+
import K from "./index448.mjs";
|
|
31
|
+
import N from "./index449.mjs";
|
|
32
|
+
import z from "./index450.mjs";
|
|
33
|
+
import A from "./index451.mjs";
|
|
34
|
+
import B from "./index452.mjs";
|
|
35
|
+
var C = {};
|
|
36
|
+
C = {
|
|
37
|
+
"ar-AE": r,
|
|
38
|
+
"bg-BG": o,
|
|
39
|
+
"cs-CZ": e,
|
|
40
|
+
"da-DK": t,
|
|
41
|
+
"de-DE": f,
|
|
42
|
+
"el-GR": p,
|
|
43
|
+
"en-US": $,
|
|
44
|
+
"es-ES": m,
|
|
45
|
+
"et-EE": c,
|
|
46
|
+
"fi-FI": b,
|
|
47
|
+
"fr-FR": s,
|
|
48
|
+
"he-IL": a,
|
|
49
|
+
"hr-HR": i,
|
|
50
|
+
"hu-HU": x,
|
|
51
|
+
"it-IT": d,
|
|
52
|
+
"ja-JP": R,
|
|
53
|
+
"ko-KR": l,
|
|
54
|
+
"lt-LT": E,
|
|
55
|
+
"lv-LV": S,
|
|
56
|
+
"nb-NO": h,
|
|
57
|
+
"nl-NL": L,
|
|
58
|
+
"pl-PL": T,
|
|
59
|
+
"pt-BR": u,
|
|
60
|
+
"pt-PT": I,
|
|
61
|
+
"ro-RO": P,
|
|
62
|
+
"ru-RU": U,
|
|
63
|
+
"sk-SK": k,
|
|
64
|
+
"sl-SI": n,
|
|
65
|
+
"sr-SP": v,
|
|
66
|
+
"sv-SE": K,
|
|
67
|
+
"tr-TR": N,
|
|
68
|
+
"uk-UA": z,
|
|
69
|
+
"zh-CN": A,
|
|
70
|
+
"zh-TW": B
|
|
25
71
|
};
|
|
26
|
-
class d {
|
|
27
|
-
/** Formats a number value as a string, according to the locale and options provided to the constructor. */
|
|
28
|
-
format(t) {
|
|
29
|
-
let e = "";
|
|
30
|
-
if (!f && this.options.signDisplay != null ? e = m(this.numberFormatter, this.options.signDisplay, t) : e = this.numberFormatter.format(t), this.options.style === "unit" && !l) {
|
|
31
|
-
var i;
|
|
32
|
-
let { unit: a, unitDisplay: s = "short", locale: n } = this.resolvedOptions();
|
|
33
|
-
if (!a) return e;
|
|
34
|
-
let o = (i = c[a]) === null || i === void 0 ? void 0 : i[s];
|
|
35
|
-
e += o[n] || o.default;
|
|
36
|
-
}
|
|
37
|
-
return e;
|
|
38
|
-
}
|
|
39
|
-
/** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
|
|
40
|
-
formatToParts(t) {
|
|
41
|
-
return this.numberFormatter.formatToParts(t);
|
|
42
|
-
}
|
|
43
|
-
/** Formats a number range as a string. */
|
|
44
|
-
formatRange(t, e) {
|
|
45
|
-
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(t, e);
|
|
46
|
-
if (e < t) throw new RangeError("End date must be >= start date");
|
|
47
|
-
return `${this.format(t)} – ${this.format(e)}`;
|
|
48
|
-
}
|
|
49
|
-
/** Formats a number range as an array of parts. */
|
|
50
|
-
formatRangeToParts(t, e) {
|
|
51
|
-
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(t, e);
|
|
52
|
-
if (e < t) throw new RangeError("End date must be >= start date");
|
|
53
|
-
let i = this.numberFormatter.formatToParts(t), a = this.numberFormatter.formatToParts(e);
|
|
54
|
-
return [
|
|
55
|
-
...i.map((s) => ({
|
|
56
|
-
...s,
|
|
57
|
-
source: "startRange"
|
|
58
|
-
})),
|
|
59
|
-
{
|
|
60
|
-
type: "literal",
|
|
61
|
-
value: " – ",
|
|
62
|
-
source: "shared"
|
|
63
|
-
},
|
|
64
|
-
...a.map((s) => ({
|
|
65
|
-
...s,
|
|
66
|
-
source: "endRange"
|
|
67
|
-
}))
|
|
68
|
-
];
|
|
69
|
-
}
|
|
70
|
-
/** Returns the resolved formatting options based on the values passed to the constructor. */
|
|
71
|
-
resolvedOptions() {
|
|
72
|
-
let t = this.numberFormatter.resolvedOptions();
|
|
73
|
-
return !f && this.options.signDisplay != null && (t = {
|
|
74
|
-
...t,
|
|
75
|
-
signDisplay: this.options.signDisplay
|
|
76
|
-
}), !l && this.options.style === "unit" && (t = {
|
|
77
|
-
...t,
|
|
78
|
-
style: "unit",
|
|
79
|
-
unit: this.options.unit,
|
|
80
|
-
unitDisplay: this.options.unitDisplay
|
|
81
|
-
}), t;
|
|
82
|
-
}
|
|
83
|
-
constructor(t, e = {}) {
|
|
84
|
-
this.numberFormatter = p(t, e), this.options = e;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function p(r, t = {}) {
|
|
88
|
-
let { numberingSystem: e } = t;
|
|
89
|
-
if (e && r.includes("-nu-") && (r.includes("-u-") || (r += "-u-"), r += `-nu-${e}`), t.style === "unit" && !l) {
|
|
90
|
-
var i;
|
|
91
|
-
let { unit: n, unitDisplay: o = "short" } = t;
|
|
92
|
-
if (!n) throw new Error('unit option must be provided with style: "unit"');
|
|
93
|
-
if (!(!((i = c[n]) === null || i === void 0) && i[o])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);
|
|
94
|
-
t = {
|
|
95
|
-
...t,
|
|
96
|
-
style: "decimal"
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
let a = r + (t ? Object.entries(t).sort((n, o) => n[0] < o[0] ? -1 : 1).join() : "");
|
|
100
|
-
if (u.has(a)) return u.get(a);
|
|
101
|
-
let s = new Intl.NumberFormat(r, t);
|
|
102
|
-
return u.set(a, s), s;
|
|
103
|
-
}
|
|
104
|
-
function m(r, t, e) {
|
|
105
|
-
if (t === "auto") return r.format(e);
|
|
106
|
-
if (t === "never") return r.format(Math.abs(e));
|
|
107
|
-
{
|
|
108
|
-
let i = !1;
|
|
109
|
-
if (t === "always" ? i = e > 0 || Object.is(e, 0) : t === "exceptZero" && (Object.is(e, -0) || Object.is(e, 0) ? e = Math.abs(e) : i = e > 0), i) {
|
|
110
|
-
let a = r.format(-e), s = r.format(e), n = a.replace(s, "").replace(/\u200e|\u061C/, "");
|
|
111
|
-
return [
|
|
112
|
-
...n
|
|
113
|
-
].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), a.replace(s, "!!!").replace(n, "+").replace("!!!", s);
|
|
114
|
-
} else return r.format(e);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
72
|
export {
|
|
118
|
-
|
|
119
|
-
m as numberFormatSignDisplayPolyfill
|
|
73
|
+
C as default
|
|
120
74
|
};
|
package/index99.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),y=require("@react-aria/accordion"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index69.js"),F=require("./
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),y=require("@react-aria/accordion"),R=require("react"),m=require("react-aria"),T=require("react-use"),b=require("./index69.js"),F=require("./index139.js"),i=require("./index25.js"),w=require("./index6.js"),C=require("./index14.js"),I=c=>{const{item:r,tokens:l,customTheme:h}=c,{props:x,rendered:k,key:f}=r,{icon:u,title:j,onOpenChange:a,tokens:q,themeName:g}=x??{},{themeName:t=g}=c,d=R.useRef(null),{state:s,TransitionAnimation:N=F}=b.useAccordionCtx(),{buttonProps:{onClick:K,onKeyDown:B,onPointerDown:D,...$},regionProps:p}=y.useAccordionItem(c,s,d),o=s.selectionManager.selectedKeys.has(f),n={...l,isOpen:o,...q},A=P=>{P.continuePropagation(),s.selectionManager.select(r.key),s.toggleKey(r.key)};return T.useUpdateEffect(()=>{a==null||a(o)},[o]),e.jsxs(i.default,{themeName:`${t}.container`,tokens:n,customTheme:h,children:[e.jsx(m.FocusRing,{focusRingClass:"has-focus-ring",children:e.jsxs(w.ButtonWithForwardRef,{...$,"aria-expanded":o,handlePress:A,ref:d,themeName:`${t}.button`,tokens:n,children:[e.jsx(i.default,{themeName:`${t}.title`,tokens:n,children:j}),u&&e.jsx(i.default,{themeName:`${t}.icon`,tokens:n,children:e.jsx(C,{icon:u})})]})}),e.jsx(N,{isVisible:o,themeName:`${t}.region`,...p,tokens:n,children:e.jsx(i.default,{themeName:`${t}.content`,tokens:n,children:e.jsx(m.FocusScope,{autoFocus:!0,children:k})})})]})};module.exports=I;
|
package/index99.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef as F } from "react";
|
|
|
4
4
|
import { FocusRing as I, FocusScope as R } from "react-aria";
|
|
5
5
|
import { useUpdateEffect as w } from "react-use";
|
|
6
6
|
import { useAccordionCtx as B } from "./index69.mjs";
|
|
7
|
-
import C from "./
|
|
7
|
+
import C from "./index139.mjs";
|
|
8
8
|
import i from "./index25.mjs";
|
|
9
9
|
import { ButtonWithForwardRef as D } from "./index6.mjs";
|
|
10
10
|
import K from "./index14.mjs";
|
package/package.json
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okam/stack-ui",
|
|
3
3
|
"main": "./index.js",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.32.0",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"import":
|
|
9
|
-
|
|
8
|
+
"import": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"default": "./index.mjs"
|
|
11
|
+
},
|
|
12
|
+
"require": {
|
|
13
|
+
"types": "./index.d.ts",
|
|
14
|
+
"default": "./index.js"
|
|
15
|
+
}
|
|
10
16
|
}
|
|
11
17
|
},
|
|
12
18
|
"publishConfig": {
|