@okam/stack-ui 1.29.0 → 1.29.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/components/WysiwygBlock/attributes.d.ts +2 -0
- package/index101.js +1 -1
- package/index101.mjs +3 -3
- package/index102.js +1 -1
- package/index102.mjs +1 -1
- package/index103.js +1 -1
- package/index103.mjs +52 -4
- package/index104.js +1 -1
- package/index104.mjs +4 -11
- package/index105.js +1 -1
- package/index105.mjs +11 -14
- package/index106.js +1 -1
- package/index106.mjs +13 -22
- package/index107.js +1 -1
- package/index107.mjs +19 -19
- package/index108.js +1 -1
- package/index108.mjs +22 -38
- package/index109.js +1 -2
- package/index109.mjs +38 -12
- package/index110.js +2 -1
- package/index110.mjs +12 -7
- package/index111.js +1 -1
- package/index111.mjs +7 -21
- package/index112.js +1 -1
- package/index112.mjs +21 -38
- package/index113.js +1 -1
- package/index113.mjs +38 -49
- package/index114.js +1 -1
- package/index114.mjs +49 -40
- package/index115.js +1 -1
- package/index115.mjs +40 -13
- package/index116.js +1 -1
- package/index116.mjs +14 -26
- package/index117.js +1 -1
- package/index117.mjs +23 -17
- package/index118.js +1 -1
- package/index118.mjs +19 -8
- package/index119.js +1 -1
- package/index119.mjs +9 -30
- package/index120.js +1 -1
- package/index120.mjs +30 -15
- package/index121.js +1 -1
- package/index121.mjs +13 -15
- package/index122.js +1 -1
- package/index122.mjs +17 -21
- package/index123.js +1 -1
- package/index123.mjs +21 -11
- package/index124.js +1 -2
- package/index124.mjs +11 -22
- package/index125.js +2 -1
- package/index125.mjs +22 -12
- package/index126.js +1 -1
- package/index126.mjs +12 -46
- package/index127.js +1 -1
- package/index127.mjs +46 -241
- package/index128.js +1 -2
- package/index128.mjs +241 -13
- package/index129.js +2 -1
- package/index129.mjs +12 -29
- package/index13.js +1 -1
- package/index13.mjs +8 -5
- package/index130.js +1 -1
- package/index130.mjs +30 -51
- package/index131.js +1 -1
- package/index131.mjs +49 -25
- package/index132.js +1 -1
- package/index132.mjs +25 -19
- package/index133.js +1 -1
- package/index133.mjs +17 -58
- package/index134.js +1 -1
- package/index134.mjs +57 -90
- package/index135.js +1 -1
- package/index135.mjs +91 -28
- package/index136.js +1 -1
- package/index136.mjs +30 -120
- package/index137.js +1 -1
- package/index137.mjs +119 -25
- package/index138.js +1 -1
- package/index138.mjs +25 -122
- package/index139.js +1 -1
- package/index139.mjs +122 -132
- package/index14.js +1 -1
- package/index14.mjs +3 -3
- package/index140.js +1 -1
- package/index140.mjs +132 -12
- package/index141.js +1 -1
- package/index141.mjs +12 -93
- package/index142.js +1 -1
- package/index142.mjs +87 -98
- package/index143.js +1 -1
- package/index143.mjs +106 -5
- package/index144.js +1 -1
- package/index144.mjs +5 -3
- package/index145.js +1 -1
- package/index145.mjs +3 -125
- package/index146.js +1 -1
- package/index146.mjs +117 -21
- package/index147.js +1 -1
- package/index147.mjs +15 -37
- package/index148.js +1 -1
- package/index148.mjs +41 -34
- package/index149.js +1 -1
- package/index149.mjs +32 -25
- package/index150.js +1 -1
- package/index150.mjs +22 -98
- package/index151.js +1 -1
- package/index151.mjs +99 -63
- package/index152.js +1 -1
- package/index152.mjs +55 -79
- package/index153.js +1 -1
- package/index153.mjs +102 -98
- package/index154.js +1 -1
- package/index154.mjs +98 -200
- package/index155.js +1 -1
- package/index155.mjs +186 -51
- package/index156.js +1 -1
- package/index156.mjs +51 -128
- package/index157.js +1 -1
- package/index157.mjs +129 -107
- package/index158.js +1 -1
- package/index158.mjs +101 -199
- package/index159.js +1 -1
- package/index159.mjs +198 -171
- package/index16.js +1 -1
- package/index16.mjs +2 -2
- package/index160.js +1 -1
- package/index160.mjs +182 -61
- package/index161.js +1 -1
- package/index161.mjs +60 -249
- package/index162.js +1 -1
- package/index162.mjs +249 -88
- package/index163.js +1 -1
- package/index163.mjs +93 -170
- package/index164.js +1 -1
- package/index164.mjs +170 -80
- package/index165.js +1 -1
- package/index165.mjs +75 -49
- package/index166.js +1 -1
- package/index166.mjs +49 -117
- package/index167.js +1 -1
- package/index167.mjs +118 -108
- package/index168.js +1 -1
- package/index168.mjs +106 -112
- package/index169.js +1 -1
- package/index169.mjs +113 -63
- package/index170.js +1 -1
- package/index170.mjs +70 -108
- package/index171.js +1 -1
- package/index171.mjs +108 -50
- package/index172.js +1 -1
- package/index172.mjs +34 -75
- package/index173.js +1 -1
- package/index173.mjs +71 -48
- package/index174.js +1 -1
- package/index174.mjs +57 -43
- package/index175.js +1 -1
- package/index175.mjs +43 -86
- package/index176.js +1 -5
- package/index176.mjs +81 -62
- package/index177.js +5 -1
- package/index177.mjs +72 -2003
- package/index178.js +1 -1
- package/index178.mjs +2006 -54
- package/index179.js +1 -1
- package/index179.mjs +56 -185
- package/index18.js +1 -1
- package/index18.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +188 -5
- package/index181.js +1 -1
- package/index181.mjs +5 -130
- package/index182.js +1 -1
- package/index182.mjs +123 -172
- package/index183.js +1 -1
- package/index183.mjs +178 -8
- package/index184.js +1 -1
- package/index184.mjs +9 -3
- package/index185.js +1 -1
- package/index185.mjs +3 -36
- package/index186.js +1 -1
- package/index186.mjs +36 -5
- package/index187.js +1 -1
- package/index187.mjs +5 -29
- package/index188.js +1 -1
- package/index188.mjs +29 -6
- package/index189.js +1 -1
- package/index189.mjs +6 -313
- package/index19.js +1 -1
- package/index19.mjs +2 -2
- package/index190.js +1 -1
- package/index190.mjs +301 -180
- package/index191.js +1 -1
- package/index191.mjs +192 -8
- package/index192.js +1 -1
- package/index192.mjs +7 -25
- package/index193.js +1 -1
- package/index193.mjs +26 -55
- package/index194.js +1 -1
- package/index194.mjs +55 -46
- package/index195.js +1 -1
- package/index195.mjs +45 -123
- package/index196.js +1 -1
- package/index196.mjs +124 -5
- package/index197.js +1 -1
- package/index197.mjs +5 -28
- package/index198.js +1 -1
- package/index198.mjs +28 -6
- package/index199.js +1 -1
- package/index199.mjs +7 -8
- package/index20.js +1 -1
- package/index20.mjs +1 -1
- package/index200.js +1 -1
- package/index200.mjs +6 -6
- package/index201.js +1 -1
- package/index201.mjs +6 -3
- package/index202.js +1 -1
- package/index202.mjs +4 -5
- package/index203.js +1 -1
- package/index203.mjs +5 -9
- package/index204.js +1 -0
- package/index204.mjs +12 -0
- package/index23.js +1 -1
- package/index23.mjs +3 -3
- package/index24.js +1 -1
- package/index24.mjs +4 -4
- package/index26.js +1 -1
- package/index26.mjs +2 -2
- package/index27.js +1 -1
- package/index27.mjs +3 -3
- package/index29.js +1 -1
- package/index29.mjs +1 -1
- package/index31.js +1 -1
- package/index31.mjs +2 -2
- package/index32.js +1 -1
- package/index32.mjs +1 -1
- package/index34.js +1 -1
- package/index34.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +2 -2
- package/index65.js +1 -1
- package/index65.mjs +1 -1
- package/index66.js +1 -1
- package/index66.mjs +1 -1
- package/index67.js +1 -1
- package/index67.mjs +1 -1
- package/index69.js +1 -1
- package/index69.mjs +1 -1
- package/index70.js +1 -1
- package/index70.mjs +1 -1
- package/index71.js +1 -1
- package/index71.mjs +1 -1
- package/index97.js +1 -1
- package/index97.mjs +3 -3
- package/index98.js +1 -1
- package/index98.mjs +1 -1
- package/package.json +1 -1
package/index195.mjs
CHANGED
|
@@ -1,127 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { usePress as m } from "./index190.mjs";
|
|
2
|
+
import { useGlobalListeners as g, useDescription as b, mergeProps as L } from "@react-aria/utils";
|
|
3
|
+
import { useRef as y } from "react";
|
|
4
|
+
const T = 500;
|
|
5
|
+
function E(a) {
|
|
6
|
+
let { isDisabled: o, onLongPressStart: s, onLongPressEnd: n, onLongPress: r, threshold: c = T, accessibilityDescription: u } = a;
|
|
7
|
+
const t = y();
|
|
8
|
+
let { addGlobalListener: i, removeGlobalListener: l } = g(), { pressProps: d } = m({
|
|
9
|
+
isDisabled: o,
|
|
10
|
+
onPressStart(e) {
|
|
11
|
+
if (e.continuePropagation(), (e.pointerType === "mouse" || e.pointerType === "touch") && (s && s({
|
|
12
|
+
...e,
|
|
13
|
+
type: "longpressstart"
|
|
14
|
+
}), t.current = setTimeout(() => {
|
|
15
|
+
e.target.dispatchEvent(new PointerEvent("pointercancel", {
|
|
16
|
+
bubbles: !0
|
|
17
|
+
})), r && r({
|
|
18
|
+
...e,
|
|
19
|
+
type: "longpress"
|
|
20
|
+
}), t.current = void 0;
|
|
21
|
+
}, c), e.pointerType === "touch")) {
|
|
22
|
+
let p = (P) => {
|
|
23
|
+
P.preventDefault();
|
|
24
|
+
};
|
|
25
|
+
i(e.target, "contextmenu", p, {
|
|
26
|
+
once: !0
|
|
27
|
+
}), i(window, "pointerup", () => {
|
|
28
|
+
setTimeout(() => {
|
|
29
|
+
l(e.target, "contextmenu", p);
|
|
30
|
+
}, 30);
|
|
31
|
+
}, {
|
|
32
|
+
once: !0
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
onPressEnd(e) {
|
|
37
|
+
t.current && clearTimeout(t.current), n && (e.pointerType === "mouse" || e.pointerType === "touch") && n({
|
|
38
|
+
...e,
|
|
39
|
+
type: "longpressend"
|
|
40
|
+
});
|
|
12
41
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
let e = this.collection.getItem(t);
|
|
18
|
-
if (e.type === "item" && !this.isDisabled(e)) return t;
|
|
19
|
-
t = this.collection.getKeyBefore(t);
|
|
20
|
-
}
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
findKey(t, e, i) {
|
|
24
|
-
let n = this.getItem(t);
|
|
25
|
-
if (!n) return null;
|
|
26
|
-
let l = n.getBoundingClientRect();
|
|
27
|
-
do
|
|
28
|
-
t = e(t), n = this.getItem(t);
|
|
29
|
-
while (n && i(l, n.getBoundingClientRect()));
|
|
30
|
-
return t;
|
|
31
|
-
}
|
|
32
|
-
isSameRow(t, e) {
|
|
33
|
-
return t.top === e.top || t.left !== e.left;
|
|
34
|
-
}
|
|
35
|
-
isSameColumn(t, e) {
|
|
36
|
-
return t.left === e.left || t.top !== e.top;
|
|
37
|
-
}
|
|
38
|
-
getKeyBelow(t) {
|
|
39
|
-
return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(t, (e) => this.getNextKey(e), this.isSameRow) : this.getNextKey(t);
|
|
40
|
-
}
|
|
41
|
-
getKeyAbove(t) {
|
|
42
|
-
return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(t, (e) => this.getPreviousKey(e), this.isSameRow) : this.getPreviousKey(t);
|
|
43
|
-
}
|
|
44
|
-
getNextColumn(t, e) {
|
|
45
|
-
return e ? this.getPreviousKey(t) : this.getNextKey(t);
|
|
46
|
-
}
|
|
47
|
-
getKeyRightOf(t) {
|
|
48
|
-
return this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(t, this.direction === "rtl") : this.findKey(t, (e) => this.getNextColumn(e, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(t, this.direction === "rtl") : null;
|
|
49
|
-
}
|
|
50
|
-
getKeyLeftOf(t) {
|
|
51
|
-
return this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(t, this.direction === "ltr") : this.findKey(t, (e) => this.getNextColumn(e, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(t, this.direction === "ltr") : null;
|
|
52
|
-
}
|
|
53
|
-
getFirstKey() {
|
|
54
|
-
let t = this.collection.getFirstKey();
|
|
55
|
-
for (; t != null; ) {
|
|
56
|
-
let e = this.collection.getItem(t);
|
|
57
|
-
if ((e == null ? void 0 : e.type) === "item" && !this.isDisabled(e)) return t;
|
|
58
|
-
t = this.collection.getKeyAfter(t);
|
|
59
|
-
}
|
|
60
|
-
return null;
|
|
61
|
-
}
|
|
62
|
-
getLastKey() {
|
|
63
|
-
let t = this.collection.getLastKey();
|
|
64
|
-
for (; t != null; ) {
|
|
65
|
-
let e = this.collection.getItem(t);
|
|
66
|
-
if (e.type === "item" && !this.isDisabled(e)) return t;
|
|
67
|
-
t = this.collection.getKeyBefore(t);
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
getItem(t) {
|
|
72
|
-
return t !== null ? this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`) : null;
|
|
73
|
-
}
|
|
74
|
-
getKeyPageAbove(t) {
|
|
75
|
-
let e = this.ref.current, i = this.getItem(t);
|
|
76
|
-
if (!i) return null;
|
|
77
|
-
if (!s(e)) return this.getFirstKey();
|
|
78
|
-
let n = e.getBoundingClientRect(), l = i.getBoundingClientRect();
|
|
79
|
-
if (this.orientation === "horizontal") {
|
|
80
|
-
let o = n.x - e.scrollLeft, r = Math.max(0, l.x - o + l.width - n.width);
|
|
81
|
-
for (; i && l.x - o > r; )
|
|
82
|
-
t = this.getKeyAbove(t), i = t == null ? null : this.getItem(t), l = i == null ? void 0 : i.getBoundingClientRect();
|
|
83
|
-
} else {
|
|
84
|
-
let o = n.y - e.scrollTop, r = Math.max(0, l.y - o + l.height - n.height);
|
|
85
|
-
for (; i && l.y - o > r; )
|
|
86
|
-
t = this.getKeyAbove(t), i = t == null ? null : this.getItem(t), l = i == null ? void 0 : i.getBoundingClientRect();
|
|
87
|
-
}
|
|
88
|
-
return t ?? this.getFirstKey();
|
|
89
|
-
}
|
|
90
|
-
getKeyPageBelow(t) {
|
|
91
|
-
let e = this.ref.current, i = this.getItem(t);
|
|
92
|
-
if (!i) return null;
|
|
93
|
-
if (!s(e)) return this.getLastKey();
|
|
94
|
-
let n = e.getBoundingClientRect(), l = i.getBoundingClientRect();
|
|
95
|
-
if (this.orientation === "horizontal") {
|
|
96
|
-
let o = n.x - e.scrollLeft, r = Math.min(e.scrollWidth, l.x - o - l.width + n.width);
|
|
97
|
-
for (; i && l.x - o < r; )
|
|
98
|
-
t = this.getKeyBelow(t), i = t == null ? null : this.getItem(t), l = i == null ? void 0 : i.getBoundingClientRect();
|
|
99
|
-
} else {
|
|
100
|
-
let o = n.y - e.scrollTop, r = Math.min(e.scrollHeight, l.y - o - l.height + n.height);
|
|
101
|
-
for (; i && l.y - o < r; )
|
|
102
|
-
t = this.getKeyBelow(t), i = t == null ? null : this.getItem(t), l = i == null ? void 0 : i.getBoundingClientRect();
|
|
103
|
-
}
|
|
104
|
-
return t ?? this.getLastKey();
|
|
105
|
-
}
|
|
106
|
-
getKeyForSearch(t, e) {
|
|
107
|
-
if (!this.collator) return null;
|
|
108
|
-
let i = this.collection, n = e || this.getFirstKey();
|
|
109
|
-
for (; n != null; ) {
|
|
110
|
-
let l = i.getItem(n), o = l.textValue.slice(0, t.length);
|
|
111
|
-
if (l.textValue && this.collator.compare(o, t) === 0) return n;
|
|
112
|
-
n = this.getKeyBelow(n);
|
|
113
|
-
}
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
constructor(...t) {
|
|
117
|
-
if (t.length === 1) {
|
|
118
|
-
let e = t[0];
|
|
119
|
-
this.collection = e.collection, this.ref = e.ref, this.collator = e.collator, this.disabledKeys = e.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = e.disabledBehavior || "all", this.orientation = e.orientation, this.direction = e.direction, this.layout = e.layout || "stack";
|
|
120
|
-
} else
|
|
121
|
-
this.collection = t[0], this.disabledKeys = t[1], this.ref = t[2], this.collator = t[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all";
|
|
122
|
-
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
|
|
123
|
-
}
|
|
42
|
+
}), f = b(r && !o ? u : void 0);
|
|
43
|
+
return {
|
|
44
|
+
longPressProps: L(d, f)
|
|
45
|
+
};
|
|
124
46
|
}
|
|
125
47
|
export {
|
|
126
|
-
|
|
48
|
+
E as useLongPress
|
|
127
49
|
};
|
package/index196.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@react-aria/utils");class h{isDisabled(t){var e;return this.disabledBehavior==="all"&&(((e=t.props)===null||e===void 0?void 0:e.isDisabled)||this.disabledKeys.has(t.key))}getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){let e=this.collection.getItem(t);if(e.type==="item"&&!this.isDisabled(e))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){let e=this.collection.getItem(t);if(e.type==="item"&&!this.isDisabled(e))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,e,i){let n=this.getItem(t);if(!n)return null;let l=n.getBoundingClientRect();do t=e(t),n=this.getItem(t);while(n&&i(l,n.getBoundingClientRect()));return t}isSameRow(t,e){return t.top===e.top||t.left!==e.left}isSameColumn(t,e){return t.left===e.left||t.top!==e.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,e){return e?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,e=>this.getNextColumn(e,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,e=>this.getNextColumn(e,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let e=this.collection.getItem(t);if((e==null?void 0:e.type)==="item"&&!this.isDisabled(e))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){let e=this.collection.getItem(t);if(e.type==="item"&&!this.isDisabled(e))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return t!==null?this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null}getKeyPageAbove(t){let e=this.ref.current,i=this.getItem(t);if(!i)return null;if(!s.isScrollable(e))return this.getFirstKey();let n=e.getBoundingClientRect(),l=i.getBoundingClientRect();if(this.orientation==="horizontal"){let o=n.x-e.scrollLeft,r=Math.max(0,l.x-o+l.width-n.width);for(;i&&l.x-o>r;)t=this.getKeyAbove(t),i=t==null?null:this.getItem(t),l=i==null?void 0:i.getBoundingClientRect()}else{let o=n.y-e.scrollTop,r=Math.max(0,l.y-o+l.height-n.height);for(;i&&l.y-o>r;)t=this.getKeyAbove(t),i=t==null?null:this.getItem(t),l=i==null?void 0:i.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let e=this.ref.current,i=this.getItem(t);if(!i)return null;if(!s.isScrollable(e))return this.getLastKey();let n=e.getBoundingClientRect(),l=i.getBoundingClientRect();if(this.orientation==="horizontal"){let o=n.x-e.scrollLeft,r=Math.min(e.scrollWidth,l.x-o-l.width+n.width);for(;i&&l.x-o<r;)t=this.getKeyBelow(t),i=t==null?null:this.getItem(t),l=i==null?void 0:i.getBoundingClientRect()}else{let o=n.y-e.scrollTop,r=Math.min(e.scrollHeight,l.y-o-l.height+n.height);for(;i&&l.y-o<r;)t=this.getKeyBelow(t),i=t==null?null:this.getItem(t),l=i==null?void 0:i.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,e){if(!this.collator)return null;let i=this.collection,n=e||this.getFirstKey();for(;n!=null;){let l=i.getItem(n),o=l.textValue.slice(0,t.length);if(l.textValue&&this.collator.compare(o,t)===0)return n;n=this.getKeyBelow(n)}return null}constructor(...t){if(t.length===1){let e=t[0];this.collection=e.collection,this.ref=e.ref,this.collator=e.collator,this.disabledKeys=e.disabledKeys||new Set,this.disabledBehavior=e.disabledBehavior||"all",this.orientation=e.orientation,this.direction=e.direction,this.layout=e.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}exports.ListKeyboardDelegate=h;
|
package/index196.mjs
CHANGED
|
@@ -1,8 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { isScrollable as s } from "@react-aria/utils";
|
|
2
|
+
class a {
|
|
3
|
+
isDisabled(t) {
|
|
4
|
+
var e;
|
|
5
|
+
return this.disabledBehavior === "all" && (((e = t.props) === null || e === void 0 ? void 0 : e.isDisabled) || this.disabledKeys.has(t.key));
|
|
6
|
+
}
|
|
7
|
+
getNextKey(t) {
|
|
8
|
+
for (t = this.collection.getKeyAfter(t); t != null; ) {
|
|
9
|
+
let e = this.collection.getItem(t);
|
|
10
|
+
if (e.type === "item" && !this.isDisabled(e)) return t;
|
|
11
|
+
t = this.collection.getKeyAfter(t);
|
|
12
|
+
}
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
getPreviousKey(t) {
|
|
16
|
+
for (t = this.collection.getKeyBefore(t); t != null; ) {
|
|
17
|
+
let e = this.collection.getItem(t);
|
|
18
|
+
if (e.type === "item" && !this.isDisabled(e)) return t;
|
|
19
|
+
t = this.collection.getKeyBefore(t);
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
findKey(t, e, i) {
|
|
24
|
+
let n = this.getItem(t);
|
|
25
|
+
if (!n) return null;
|
|
26
|
+
let l = n.getBoundingClientRect();
|
|
27
|
+
do
|
|
28
|
+
t = e(t), n = this.getItem(t);
|
|
29
|
+
while (n && i(l, n.getBoundingClientRect()));
|
|
30
|
+
return t;
|
|
31
|
+
}
|
|
32
|
+
isSameRow(t, e) {
|
|
33
|
+
return t.top === e.top || t.left !== e.left;
|
|
34
|
+
}
|
|
35
|
+
isSameColumn(t, e) {
|
|
36
|
+
return t.left === e.left || t.top !== e.top;
|
|
37
|
+
}
|
|
38
|
+
getKeyBelow(t) {
|
|
39
|
+
return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(t, (e) => this.getNextKey(e), this.isSameRow) : this.getNextKey(t);
|
|
40
|
+
}
|
|
41
|
+
getKeyAbove(t) {
|
|
42
|
+
return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(t, (e) => this.getPreviousKey(e), this.isSameRow) : this.getPreviousKey(t);
|
|
43
|
+
}
|
|
44
|
+
getNextColumn(t, e) {
|
|
45
|
+
return e ? this.getPreviousKey(t) : this.getNextKey(t);
|
|
46
|
+
}
|
|
47
|
+
getKeyRightOf(t) {
|
|
48
|
+
return this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(t, this.direction === "rtl") : this.findKey(t, (e) => this.getNextColumn(e, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(t, this.direction === "rtl") : null;
|
|
49
|
+
}
|
|
50
|
+
getKeyLeftOf(t) {
|
|
51
|
+
return this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(t, this.direction === "ltr") : this.findKey(t, (e) => this.getNextColumn(e, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(t, this.direction === "ltr") : null;
|
|
52
|
+
}
|
|
53
|
+
getFirstKey() {
|
|
54
|
+
let t = this.collection.getFirstKey();
|
|
55
|
+
for (; t != null; ) {
|
|
56
|
+
let e = this.collection.getItem(t);
|
|
57
|
+
if ((e == null ? void 0 : e.type) === "item" && !this.isDisabled(e)) return t;
|
|
58
|
+
t = this.collection.getKeyAfter(t);
|
|
59
|
+
}
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
getLastKey() {
|
|
63
|
+
let t = this.collection.getLastKey();
|
|
64
|
+
for (; t != null; ) {
|
|
65
|
+
let e = this.collection.getItem(t);
|
|
66
|
+
if (e.type === "item" && !this.isDisabled(e)) return t;
|
|
67
|
+
t = this.collection.getKeyBefore(t);
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
getItem(t) {
|
|
72
|
+
return t !== null ? this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`) : null;
|
|
73
|
+
}
|
|
74
|
+
getKeyPageAbove(t) {
|
|
75
|
+
let e = this.ref.current, i = this.getItem(t);
|
|
76
|
+
if (!i) return null;
|
|
77
|
+
if (!s(e)) return this.getFirstKey();
|
|
78
|
+
let n = e.getBoundingClientRect(), l = i.getBoundingClientRect();
|
|
79
|
+
if (this.orientation === "horizontal") {
|
|
80
|
+
let o = n.x - e.scrollLeft, r = Math.max(0, l.x - o + l.width - n.width);
|
|
81
|
+
for (; i && l.x - o > r; )
|
|
82
|
+
t = this.getKeyAbove(t), i = t == null ? null : this.getItem(t), l = i == null ? void 0 : i.getBoundingClientRect();
|
|
83
|
+
} else {
|
|
84
|
+
let o = n.y - e.scrollTop, r = Math.max(0, l.y - o + l.height - n.height);
|
|
85
|
+
for (; i && l.y - o > r; )
|
|
86
|
+
t = this.getKeyAbove(t), i = t == null ? null : this.getItem(t), l = i == null ? void 0 : i.getBoundingClientRect();
|
|
87
|
+
}
|
|
88
|
+
return t ?? this.getFirstKey();
|
|
89
|
+
}
|
|
90
|
+
getKeyPageBelow(t) {
|
|
91
|
+
let e = this.ref.current, i = this.getItem(t);
|
|
92
|
+
if (!i) return null;
|
|
93
|
+
if (!s(e)) return this.getLastKey();
|
|
94
|
+
let n = e.getBoundingClientRect(), l = i.getBoundingClientRect();
|
|
95
|
+
if (this.orientation === "horizontal") {
|
|
96
|
+
let o = n.x - e.scrollLeft, r = Math.min(e.scrollWidth, l.x - o - l.width + n.width);
|
|
97
|
+
for (; i && l.x - o < r; )
|
|
98
|
+
t = this.getKeyBelow(t), i = t == null ? null : this.getItem(t), l = i == null ? void 0 : i.getBoundingClientRect();
|
|
99
|
+
} else {
|
|
100
|
+
let o = n.y - e.scrollTop, r = Math.min(e.scrollHeight, l.y - o - l.height + n.height);
|
|
101
|
+
for (; i && l.y - o < r; )
|
|
102
|
+
t = this.getKeyBelow(t), i = t == null ? null : this.getItem(t), l = i == null ? void 0 : i.getBoundingClientRect();
|
|
103
|
+
}
|
|
104
|
+
return t ?? this.getLastKey();
|
|
105
|
+
}
|
|
106
|
+
getKeyForSearch(t, e) {
|
|
107
|
+
if (!this.collator) return null;
|
|
108
|
+
let i = this.collection, n = e || this.getFirstKey();
|
|
109
|
+
for (; n != null; ) {
|
|
110
|
+
let l = i.getItem(n), o = l.textValue.slice(0, t.length);
|
|
111
|
+
if (l.textValue && this.collator.compare(o, t) === 0) return n;
|
|
112
|
+
n = this.getKeyBelow(n);
|
|
113
|
+
}
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
constructor(...t) {
|
|
117
|
+
if (t.length === 1) {
|
|
118
|
+
let e = t[0];
|
|
119
|
+
this.collection = e.collection, this.ref = e.ref, this.collator = e.collator, this.disabledKeys = e.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = e.disabledBehavior || "all", this.orientation = e.orientation, this.direction = e.direction, this.layout = e.layout || "stack";
|
|
120
|
+
} else
|
|
121
|
+
this.collection = t[0], this.disabledKeys = t[1], this.ref = t[2], this.collator = t[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all";
|
|
122
|
+
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
|
|
123
|
+
}
|
|
4
124
|
}
|
|
5
125
|
export {
|
|
6
|
-
|
|
7
|
-
f as tabsIds
|
|
126
|
+
a as ListKeyboardDelegate
|
|
8
127
|
};
|
package/index197.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=new WeakMap;function f(a,e,r){return typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${t.get(a)}-${r}-${e}`}exports.generateId=f;exports.tabsIds=t;
|
package/index197.mjs
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (i()) {
|
|
5
|
-
if (n === "default") {
|
|
6
|
-
const t = c(e);
|
|
7
|
-
s = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
8
|
-
}
|
|
9
|
-
n = "disabled";
|
|
10
|
-
} else (e instanceof HTMLElement || e instanceof SVGElement) && (l.set(e, e.style.userSelect), e.style.userSelect = "none");
|
|
11
|
-
}
|
|
12
|
-
function m(e) {
|
|
13
|
-
if (i()) {
|
|
14
|
-
if (n !== "disabled") return;
|
|
15
|
-
n = "restoring", setTimeout(() => {
|
|
16
|
-
o(() => {
|
|
17
|
-
if (n === "restoring") {
|
|
18
|
-
const t = c(e);
|
|
19
|
-
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = s || ""), s = "", n = "default";
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}, 300);
|
|
23
|
-
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && l.has(e)) {
|
|
24
|
-
let t = l.get(e);
|
|
25
|
-
e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), l.delete(e);
|
|
26
|
-
}
|
|
1
|
+
const f = /* @__PURE__ */ new WeakMap();
|
|
2
|
+
function $(t, e, a) {
|
|
3
|
+
return typeof e == "string" && (e = e.replace(/\s+/g, "")), `${f.get(t)}-${a}-${e}`;
|
|
27
4
|
}
|
|
28
5
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
$ as generateId,
|
|
7
|
+
f as tabsIds
|
|
31
8
|
};
|
package/index198.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@react-aria/utils");let n="default",i="",s=new WeakMap;function c(e){if(l.isIOS()){if(n==="default"){const t=l.getOwnerDocument(e);i=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(s.set(e,e.style.userSelect),e.style.userSelect="none")}function o(e){if(l.isIOS()){if(n!=="disabled")return;n="restoring",setTimeout(()=>{l.runAfterTransition(()=>{if(n==="restoring"){const t=l.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=i||""),i="",n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&s.has(e)){let t=s.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),s.delete(e)}}exports.disableTextSelection=c;exports.restoreTextSelection=o;
|
package/index198.mjs
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { isIOS as i, getOwnerDocument as c, runAfterTransition as o } from "@react-aria/utils";
|
|
2
|
+
let n = "default", s = "", l = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function f(e) {
|
|
4
|
+
if (i()) {
|
|
5
|
+
if (n === "default") {
|
|
6
|
+
const t = c(e);
|
|
7
|
+
s = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
8
|
+
}
|
|
9
|
+
n = "disabled";
|
|
10
|
+
} else (e instanceof HTMLElement || e instanceof SVGElement) && (l.set(e, e.style.userSelect), e.style.userSelect = "none");
|
|
11
|
+
}
|
|
12
|
+
function m(e) {
|
|
13
|
+
if (i()) {
|
|
14
|
+
if (n !== "disabled") return;
|
|
15
|
+
n = "restoring", setTimeout(() => {
|
|
16
|
+
o(() => {
|
|
17
|
+
if (n === "restoring") {
|
|
18
|
+
const t = c(e);
|
|
19
|
+
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = s || ""), s = "", n = "default";
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}, 300);
|
|
23
|
+
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && l.has(e)) {
|
|
24
|
+
let t = l.get(e);
|
|
25
|
+
e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), l.delete(e);
|
|
4
26
|
}
|
|
5
|
-
}
|
|
6
|
-
t.displayName = "PressResponderContext";
|
|
27
|
+
}
|
|
7
28
|
export {
|
|
8
|
-
|
|
29
|
+
f as disableTextSelection,
|
|
30
|
+
m as restoreTextSelection
|
|
9
31
|
};
|
package/index199.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=t.createContext({register:()=>{}});e.displayName="PressResponderContext";exports.PressResponderContext=e;
|
package/index199.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import e from "react";
|
|
2
|
+
const t = e.createContext({
|
|
3
|
+
register: () => {
|
|
4
|
+
}
|
|
5
|
+
});
|
|
6
|
+
t.displayName = "PressResponderContext";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
a as _class_private_field_get
|
|
8
|
+
t as PressResponderContext
|
|
10
9
|
};
|
package/index20.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),N=require("react"),a=require("react-aria"),g=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),N=require("react"),a=require("react-aria"),g=require("./index110.js"),n=require("./index64.js"),I=require("./index14.js"),b=require("./index3.js"),R=o=>{const{id:r,ariaLabel:j,icon:i,state:l,themeName:s="checkbox",customTheme:t,tokens:f,isDisabled:h=!1,isError:u=!1,value:x,errorMessage:d,label:C}=o,k=N.useRef(null),{inputProps:$}=a.useCheckboxGroupItem(o,l,k),{isSelected:m}=l,c={...f,selected:m(x),isDisabled:h,isError:u},q=n(`${s}.container`,c,t),T=n(`${s}.checkBox`,c,t),p=n(`${s}.checkMark`,c,t),M=n(`${s}.checkMarkIcon`,c,t);return e.jsxs("div",{children:[e.jsx(a.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs("label",{className:q,htmlFor:r,"aria-label":j,"aria-disabled":h,children:[e.jsx(a.VisuallyHidden,{children:e.jsx("input",{ref:k,...$})}),e.jsx("div",{className:T,"aria-checked":m(x),role:"checkbox","aria-labelledby":r,children:e.jsx("div",{className:p,children:i&&e.jsx(I,{icon:i,customTheme:M})})}),e.jsx(b.default,{themeName:`${s}.label`,tokens:c,children:C})]})}),u&&d&&e.jsx(b.default,{themeName:`${s}.errorMessage`,tokens:c,children:d})]})},v=o=>{const r=g.useCheckboxGroupCtx();return r&&e.jsx(R,{state:r,...o})};module.exports=v;
|
package/index20.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as $ } from "react";
|
|
4
4
|
import { useCheckboxGroupItem as v, FocusRing as y, VisuallyHidden as B } from "react-aria";
|
|
5
|
-
import { useCheckboxGroupCtx as G } from "./
|
|
5
|
+
import { useCheckboxGroupCtx as G } from "./index110.mjs";
|
|
6
6
|
import a from "./index64.mjs";
|
|
7
7
|
import R from "./index14.mjs";
|
|
8
8
|
import x from "./index3.mjs";
|
package/index200.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index202.js"),c=require("./index203.js");function t(e,_){var r=c._class_extract_field_descriptor(e,_,"get");return s._class_apply_descriptor_get(e,r)}exports._=t;exports._class_private_field_get=t;
|
package/index200.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _class_extract_field_descriptor as
|
|
3
|
-
function a(r,
|
|
4
|
-
var _ =
|
|
5
|
-
return
|
|
1
|
+
import { _class_apply_descriptor_get as s } from "./index202.mjs";
|
|
2
|
+
import { _class_extract_field_descriptor as e } from "./index203.mjs";
|
|
3
|
+
function a(r, t) {
|
|
4
|
+
var _ = e(r, t, "get");
|
|
5
|
+
return s(r, _);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
8
|
a as _,
|
|
9
|
-
a as
|
|
9
|
+
a as _class_private_field_get
|
|
10
10
|
};
|
package/index201.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index204.js"),i=require("./index203.js");function t(e,_,s){var r=i._class_extract_field_descriptor(e,_,"set");return c._class_apply_descriptor_set(e,r,s),s}exports._=t;exports._class_private_field_set=t;
|
package/index201.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { _class_apply_descriptor_set as o } from "./index204.mjs";
|
|
2
|
+
import { _class_extract_field_descriptor as p } from "./index203.mjs";
|
|
3
|
+
function a(r, s, t) {
|
|
4
|
+
var _ = p(r, s, "set");
|
|
5
|
+
return o(r, _, t), t;
|
|
3
6
|
}
|
|
4
7
|
export {
|
|
5
8
|
a as _,
|
|
6
|
-
a as
|
|
9
|
+
a as _class_private_field_set
|
|
7
10
|
};
|
package/index202.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(l,e){return e.get?e.get.call(l):e.value}exports._=t;exports._class_apply_descriptor_get=t;
|
package/index202.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
return e.get(t);
|
|
1
|
+
function a(t, e) {
|
|
2
|
+
return e.get ? e.get.call(t) : e.value;
|
|
4
3
|
}
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
a as _,
|
|
6
|
+
a as _class_apply_descriptor_get
|
|
8
7
|
};
|
package/index203.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(t,e,o){if(!e.has(t))throw new TypeError("attempted to "+o+" private field on non-instance");return e.get(t)}exports._=r;exports._class_extract_field_descriptor=r;
|
package/index203.mjs
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
function
|
|
2
|
-
if (e.
|
|
3
|
-
|
|
4
|
-
if (!e.writable)
|
|
5
|
-
throw new TypeError("attempted to set read only private field");
|
|
6
|
-
e.value = t;
|
|
7
|
-
}
|
|
1
|
+
function o(t, e, n) {
|
|
2
|
+
if (!e.has(t)) throw new TypeError("attempted to " + n + " private field on non-instance");
|
|
3
|
+
return e.get(t);
|
|
8
4
|
}
|
|
9
5
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
o as _,
|
|
7
|
+
o as _class_extract_field_descriptor
|
|
12
8
|
};
|
package/index204.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(a,e,t){if(e.set)e.set.call(a,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}exports._=l;exports._class_apply_descriptor_set=l;
|
package/index204.mjs
ADDED
package/index23.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),D=require("@react-aria/datepicker"),g=require("@react-stately/datepicker"),k=require("react"),o=require("./index64.js"),R=require("./index6.js"),T=require("./index26.js"),F=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),D=require("@react-aria/datepicker"),g=require("@react-stately/datepicker"),k=require("react"),o=require("./index64.js"),R=require("./index6.js"),T=require("./index26.js"),F=require("./index111.js"),S=require("./index14.js"),w=require("./index112.js"),x=require("./index113.js");function C({popoverPlacement:p="bottom start",tokens:r,customTheme:y,themeName:s="datePicker",icon:j="ArrowDown",description:c,buttonLabel:a,...n}){const i=g.useDatePickerState({...n}),t=k.useRef(null),{groupProps:P,fieldProps:d,labelProps:h,descriptionProps:q,buttonProps:l,dialogProps:v,calendarProps:$}=D.useDatePicker({...n},i,t),{label:u}={...n},m=o(`${s}.container`,r),b=o(`${s}.dateField`,r),f=o(`${s}.label`,r);return e.jsxs("div",{className:m,children:[u&&e.jsx("span",{...h,children:u}),c&&e.jsx("div",{...q,children:c}),e.jsx("div",{...P,ref:t,children:e.jsxs(R.default,{themeName:`${s}.button`,tokens:{...r},type:"button",...l,handlePress:l.onPress,children:[a&&e.jsx("p",{className:f,children:a}),e.jsxs("div",{className:b,children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${s}.icon`,tokens:{...r},icon:j})]})}),i.isOpen&&e.jsx(w.CalendarPopover,{triggerRef:t,state:i,placement:p,children:e.jsxs(F.Dialog,{...v,children:[e.jsxs("div",{children:[e.jsx(x,{...d}),i.validationState==="invalid"&&"❌"]}),e.jsx(T,{...$})]})})]})}module.exports=C;
|
package/index23.mjs
CHANGED
|
@@ -6,10 +6,10 @@ import { useRef as S } from "react";
|
|
|
6
6
|
import l from "./index64.mjs";
|
|
7
7
|
import j from "./index6.mjs";
|
|
8
8
|
import k from "./index26.mjs";
|
|
9
|
-
import { Dialog as w } from "./
|
|
9
|
+
import { Dialog as w } from "./index111.mjs";
|
|
10
10
|
import R from "./index14.mjs";
|
|
11
|
-
import { CalendarPopover as y } from "./
|
|
12
|
-
import f from "./
|
|
11
|
+
import { CalendarPopover as y } from "./index112.mjs";
|
|
12
|
+
import f from "./index113.mjs";
|
|
13
13
|
function M({
|
|
14
14
|
popoverPlacement: h = "bottom start",
|
|
15
15
|
tokens: r,
|
package/index24.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),$=require("@react-aria/datepicker"),N=require("@react-stately/datepicker"),D=require("react"),o=require("./index64.js"),f=require("./index6.js"),F=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),$=require("@react-aria/datepicker"),N=require("@react-stately/datepicker"),D=require("react"),o=require("./index64.js"),f=require("./index6.js"),F=require("./index114.js"),C=require("./index111.js"),S=require("./index14.js"),T=require("./index112.js"),r=require("./index113.js");function w(i){const s=N.useDateRangePickerState(i),a=D.useRef(null),{labelProps:j,descriptionProps:P,groupProps:m,startFieldProps:c,endFieldProps:l,buttonProps:d,dialogProps:v,calendarProps:q}=$.useDateRangePicker(i,s,a),{label:u,buttonLabel:x,description:p,themeName:n="datePicker",tokens:t,popoverPlacement:k,icon:b}=i,g=o(`${n}.container`,t),h=o(`${n}.dateField`,t),R=o(`${n}.label`,t);return e.jsxs("div",{className:g,children:[u&&e.jsx("span",{...j,children:u}),p&&e.jsx("div",{...P,children:p}),e.jsx("div",{...m,ref:a,children:e.jsxs(f.default,{themeName:`${n}.button`,tokens:{...t},type:"button",...d,handlePress:d.onPress,children:[x&&e.jsx("p",{className:R,children:x}),e.jsxs("div",{className:h,children:[e.jsx(r,{...c})," -",e.jsx(r,{...l}),s.validationState==="invalid"&&"❌"]}),e.jsx(S,{themeName:`${n}.icon`,tokens:{...t},icon:b??"ArrowDown"})]})}),s.isOpen&&e.jsx(T.CalendarPopover,{triggerRef:a,state:s,placement:k,children:e.jsxs(C.Dialog,{...v,children:[e.jsxs("div",{className:h,children:[e.jsx(r,{...c})," -",e.jsx(r,{...l}),s.validationState==="invalid"&&"❌"]}),e.jsx(F,{...q})]})})]})}module.exports=w;
|
package/index24.mjs
CHANGED
|
@@ -5,11 +5,11 @@ import { useDateRangePickerState as x } from "@react-stately/datepicker";
|
|
|
5
5
|
import { useRef as T } from "react";
|
|
6
6
|
import s from "./index64.mjs";
|
|
7
7
|
import C from "./index6.mjs";
|
|
8
|
-
import S from "./
|
|
9
|
-
import { Dialog as j } from "./
|
|
8
|
+
import S from "./index114.mjs";
|
|
9
|
+
import { Dialog as j } from "./index111.mjs";
|
|
10
10
|
import w from "./index14.mjs";
|
|
11
|
-
import { CalendarPopover as y } from "./
|
|
12
|
-
import i from "./
|
|
11
|
+
import { CalendarPopover as y } from "./index112.mjs";
|
|
12
|
+
import i from "./index113.mjs";
|
|
13
13
|
function K(a) {
|
|
14
14
|
const t = x(a), l = T(null), {
|
|
15
15
|
labelProps: u,
|
package/index26.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),g=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),g=require("./index115.js"),m=require("@react-aria/calendar"),P=require("@react-aria/i18n"),R=require("@react-stately/calendar"),T=require("react"),c=require("./index64.js"),u=require("./index6.js"),h=require("./index14.js"),p=require("./index3.js"),w=require("./index116.js");function y({buttons:n,tokens:r,customTheme:A,themeName:a="calendar",...t}){var d,l;const{locale:x}=P.useLocale(),o=R.useCalendarState({...t,locale:x,createCalendar:g.createCalendar}),q=T.useRef(null),{calendarProps:j,prevButtonProps:s,nextButtonProps:i,title:C}=m.useCalendar({...t},o),$=c(`${a}.container`,r),f=c(`${a}.header`,r),v=c(`${a}.navigationButtonsContainer`,r);return e.jsxs("div",{...j,ref:q,className:$,children:[e.jsxs("div",{className:f,children:[e.jsx(p.default,{as:"p",tokens:{size:"h6"},children:C}),e.jsxs("div",{className:v,children:[e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...s,handlePress:s==null?void 0:s.onPress,children:e.jsx(h,{icon:((d=n==null?void 0:n.buttonPrev)==null?void 0:d.icon)??"ArrowLeft"})}),e.jsx(u.default,{themeName:`${a}.navigationButtons`,tokens:{...r},type:"button",...i,handlePress:i==null?void 0:i.onPress,children:e.jsx(h,{icon:((l=n==null?void 0:n.buttonNext)==null?void 0:l.icon)??"ArrowRight"})})]})]}),e.jsx(w,{state:o})]})}module.exports=y;
|