@commercetools/nimbus 0.0.0-canary-20250825075613 → 0.0.0-canary-20250825172014
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/dist/chunks/data-table-D6qEg2qp.cjs.js +2 -0
- package/dist/chunks/data-table-D6qEg2qp.cjs.js.map +1 -0
- package/dist/chunks/{data-table-BqGT7Ov4.es.js → data-table-D7Gq4ZYT.es.js} +1346 -1556
- package/dist/chunks/data-table-D7Gq4ZYT.es.js.map +1 -0
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +34 -35
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +10 -11
- package/dist/components/popover.cjs +2 -0
- package/dist/components/popover.cjs.map +1 -0
- package/dist/components/popover.es.js +26 -0
- package/dist/components/popover.es.js.map +1 -0
- package/dist/components.d.ts +0 -7
- package/dist/data-table.d.ts +0 -7
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.es.js +421 -286
- package/dist/index.es.js.map +1 -1
- package/dist/popover.d.ts +18 -0
- package/package.json +5 -5
- package/dist/chunks/data-table-BqGT7Ov4.es.js.map +0 -1
- package/dist/chunks/data-table-CjXjfeLi.cjs.js +0 -2
- package/dist/chunks/data-table-CjXjfeLi.cjs.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,70 +1,73 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { C as
|
|
5
|
-
import { C as
|
|
6
|
-
import { D as
|
|
7
|
-
import { D as
|
|
8
|
-
import { G as
|
|
9
|
-
import { I as
|
|
10
|
-
import { I as
|
|
11
|
-
import { I as
|
|
12
|
-
import { K as
|
|
13
|
-
import { L as
|
|
14
|
-
import { L as
|
|
15
|
-
import { S as
|
|
16
|
-
import { T as
|
|
17
|
-
import { b as
|
|
18
|
-
import { M as
|
|
19
|
-
import { z as
|
|
20
|
-
import { N as
|
|
21
|
-
import { C as
|
|
22
|
-
import { S as
|
|
23
|
-
import { V as
|
|
24
|
-
import { T as
|
|
25
|
-
import { N as
|
|
26
|
-
import { G as
|
|
27
|
-
import { S as
|
|
28
|
-
import { A as
|
|
29
|
-
import { A as
|
|
30
|
-
import { B as
|
|
31
|
-
import { C as
|
|
32
|
-
import { F as
|
|
33
|
-
import { I as
|
|
34
|
-
import { L as
|
|
35
|
-
import { P as
|
|
36
|
-
import { M as
|
|
37
|
-
import { T as
|
|
38
|
-
import { M as
|
|
39
|
-
import { R as
|
|
40
|
-
import { S as
|
|
41
|
-
import { T as
|
|
42
|
-
import { T as
|
|
43
|
-
import { T as
|
|
44
|
-
import { D as
|
|
45
|
-
import { C as
|
|
46
|
-
import { D as
|
|
47
|
-
import { P as
|
|
48
|
-
import { R as
|
|
49
|
-
import { D as
|
|
50
|
-
import { T as
|
|
51
|
-
import { D as
|
|
52
|
-
import { s as
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
1
|
+
import { A as Ie } from "./chunks/avatar-B7CMxFNg.es.js";
|
|
2
|
+
import { B as Me } from "./chunks/box-C8731OYq.es.js";
|
|
3
|
+
import { B as Pe } from "./chunks/button-Bg73nQk3.es.js";
|
|
4
|
+
import { C as Ke } from "./chunks/code-CieYW1ER.es.js";
|
|
5
|
+
import { C as Oe, c as Ne, b as je, a as Ue } from "./chunks/combobox-qA8TjWPw.es.js";
|
|
6
|
+
import { D as qe } from "./chunks/dialog-CG-cCFkg.es.js";
|
|
7
|
+
import { D as ze } from "./chunks/divider-CpctZ_-U.es.js";
|
|
8
|
+
import { G as $e } from "./chunks/group-BQeamedA.es.js";
|
|
9
|
+
import { I as Je } from "./chunks/icon-button-D2qU4Eun.es.js";
|
|
10
|
+
import { I as Ye } from "./chunks/icon-toggle-button-wjYSiFhl.es.js";
|
|
11
|
+
import { I as et } from "./chunks/image-B2WbQ5hi.es.js";
|
|
12
|
+
import { K as rt } from "./chunks/kbd-CDEXQyg2.es.js";
|
|
13
|
+
import { L as nt } from "./chunks/link-Db9S7XvR.es.js";
|
|
14
|
+
import { L as st, c as it, b as ut, a as lt } from "./chunks/list-x423RThD.es.js";
|
|
15
|
+
import { S as ft } from "./chunks/simple-grid-Crtlocqj.es.js";
|
|
16
|
+
import { T as pt } from "./chunks/text-B2wziCK6.es.js";
|
|
17
|
+
import { b as yt, a as vt, T as gt } from "./chunks/tooltip-BLyAAnK-.es.js";
|
|
18
|
+
import { M as Ct } from "./chunks/make-element-focusable-_FWEyVtG.es.js";
|
|
19
|
+
import { z as X } from "./chunks/nimbus-provider-DEQVQ5ZH.es.js";
|
|
20
|
+
import { N as xt } from "./chunks/nimbus-provider-DEQVQ5ZH.es.js";
|
|
21
|
+
import { C as wt } from "./chunks/checkbox-B2yJgtOJ.es.js";
|
|
22
|
+
import { S as kt } from "./chunks/stack-CBx-c8hI.es.js";
|
|
23
|
+
import { V as Et } from "./chunks/visually-hidden-vh07nrZa.es.js";
|
|
24
|
+
import { T as Rt } from "./chunks/text-input-B7XCw3SS.es.js";
|
|
25
|
+
import { N as It } from "./chunks/number-input-CFa5dE3r.es.js";
|
|
26
|
+
import { G as Mt } from "./chunks/grid-Cdmh4YaF.es.js";
|
|
27
|
+
import { S as Pt, c as Ht, d as Kt, b as Ft, a as Ot } from "./chunks/select-CMZAeYTf.es.js";
|
|
28
|
+
import { A as jt, d as Ut, c as Gt, e as qt, b as Vt, a as zt } from "./chunks/accordion-B9jG9fOy.es.js";
|
|
29
|
+
import { A as $t, d as Xt, c as Jt, e as Qt, a as Yt, b as Zt } from "./chunks/alert-BvT6yjas.es.js";
|
|
30
|
+
import { B as tr } from "./chunks/badge-C2elCKPp.es.js";
|
|
31
|
+
import { C as or, c as nr, b as ar, a as sr } from "./chunks/card-C7PIEqmV.es.js";
|
|
32
|
+
import { F as ur, d as lr, e as cr, f as fr, c as dr, b as pr, a as mr } from "./chunks/form-field-BgKHtyTH.es.js";
|
|
33
|
+
import { I as vr } from "./chunks/icon-DTe62Nqz.es.js";
|
|
34
|
+
import { L as br } from "./chunks/loading-spinner-C7yZE-QF.es.js";
|
|
35
|
+
import { P as hr } from "./chunks/password-input-XSc2MhLG.es.js";
|
|
36
|
+
import { M as _r, S as wr, c as Tr, d as kr, a as Sr, f as Er, e as Dr, h as Rr, g as Ar, b as Ir } from "./chunks/split-button-BZHi7r1E.es.js";
|
|
37
|
+
import { T as Mr } from "./chunks/time-input-DiFCm9qO.es.js";
|
|
38
|
+
import { M as Pr } from "./chunks/multiline-text-input-MJPDSw2d.es.js";
|
|
39
|
+
import { R as Kr, b as Fr, a as Or } from "./chunks/radio-input-DRDeKoG2.es.js";
|
|
40
|
+
import { S as jr } from "./chunks/switch-BOvBbCnU.es.js";
|
|
41
|
+
import { T as Gr } from "./chunks/tag-group-C_oBSbrz.es.js";
|
|
42
|
+
import { T as Vr } from "./chunks/toggle-button-BpG_UgsK.es.js";
|
|
43
|
+
import { T as Wr, b as $r, a as Xr } from "./chunks/toggle-button-group-BjQefKya.es.js";
|
|
44
|
+
import { D as Qr } from "./chunks/date-input-BSacD65z.es.js";
|
|
45
|
+
import { C as Zr } from "./chunks/calendar-Co4TTkzj.es.js";
|
|
46
|
+
import { D as to } from "./chunks/date-picker-COI-tlHx.es.js";
|
|
47
|
+
import { P as oo } from "./chunks/progress-bar-DM8YmshZ.es.js";
|
|
48
|
+
import { R as ao } from "./chunks/range-calendar-Cup7ahCy.es.js";
|
|
49
|
+
import { D as io } from "./chunks/date-range-picker-BnI3m8z-.es.js";
|
|
50
|
+
import { T as lo } from "./chunks/toolbar-D2CqoZzL.es.js";
|
|
51
|
+
import { D as fo, e as po, g as mo, d as yo, i as vo, h as go, c as bo, j as Co, a as ho, f as xo, k as _o, b as wo } from "./chunks/data-table-D7Gq4ZYT.es.js";
|
|
52
|
+
import { s as ko } from "./chunks/index-BDmBxsjm.es.js";
|
|
53
|
+
import { useState as M, useRef as k, useCallback as E, useLayoutEffect as J, useEffect as B, useContext as G, createContext as q } from "react";
|
|
54
|
+
import { F as Eo } from "./chunks/flex-B81RbgfK.es.js";
|
|
55
|
+
import { H as Ro } from "./chunks/index-0CyuQQet.es.js";
|
|
56
|
+
import { n as Io } from "./chunks/namespace-HxAMZBwF.es.js";
|
|
57
57
|
import "react/jsx-runtime";
|
|
58
|
-
function
|
|
59
|
-
return
|
|
58
|
+
function Q(e) {
|
|
59
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
60
|
+
}
|
|
61
|
+
function L() {
|
|
62
|
+
return L = Object.assign ? Object.assign.bind() : function(e) {
|
|
60
63
|
for (var t = 1; t < arguments.length; t++) {
|
|
61
|
-
var
|
|
62
|
-
for (var n in
|
|
64
|
+
var r = arguments[t];
|
|
65
|
+
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
63
66
|
}
|
|
64
67
|
return e;
|
|
65
|
-
},
|
|
68
|
+
}, L.apply(null, arguments);
|
|
66
69
|
}
|
|
67
|
-
var
|
|
70
|
+
var V = ["shift", "alt", "meta", "mod", "ctrl"], Y = {
|
|
68
71
|
esc: "escape",
|
|
69
72
|
return: "enter",
|
|
70
73
|
".": "period",
|
|
@@ -85,109 +88,109 @@ var G = ["shift", "alt", "meta", "mod", "ctrl"], z = {
|
|
|
85
88
|
ControlLeft: "ctrl",
|
|
86
89
|
ControlRight: "ctrl"
|
|
87
90
|
};
|
|
88
|
-
function
|
|
89
|
-
return (e &&
|
|
91
|
+
function S(e) {
|
|
92
|
+
return (e && Y[e] || e || "").trim().toLowerCase().replace(/key|digit|numpad|arrow/, "");
|
|
90
93
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
94
|
+
function Z(e) {
|
|
95
|
+
return V.includes(e);
|
|
93
96
|
}
|
|
94
|
-
function
|
|
97
|
+
function D(e, t) {
|
|
95
98
|
return t === void 0 && (t = ","), e.split(t);
|
|
96
99
|
}
|
|
97
|
-
function
|
|
100
|
+
function R(e, t, r) {
|
|
98
101
|
t === void 0 && (t = "+");
|
|
99
|
-
var n = e.toLocaleLowerCase().split(t).map(function(
|
|
100
|
-
return
|
|
101
|
-
}),
|
|
102
|
+
var n = e.toLocaleLowerCase().split(t).map(function(s) {
|
|
103
|
+
return S(s);
|
|
104
|
+
}), l = {
|
|
102
105
|
alt: n.includes("alt"),
|
|
103
106
|
ctrl: n.includes("ctrl") || n.includes("control"),
|
|
104
107
|
shift: n.includes("shift"),
|
|
105
108
|
meta: n.includes("meta"),
|
|
106
109
|
mod: n.includes("mod")
|
|
107
|
-
},
|
|
108
|
-
return !
|
|
110
|
+
}, a = n.filter(function(s) {
|
|
111
|
+
return !V.includes(s);
|
|
109
112
|
});
|
|
110
|
-
return
|
|
111
|
-
keys:
|
|
112
|
-
description:
|
|
113
|
+
return L({}, l, {
|
|
114
|
+
keys: a,
|
|
115
|
+
description: r,
|
|
113
116
|
hotkey: e
|
|
114
117
|
});
|
|
115
118
|
}
|
|
116
|
-
var
|
|
117
|
-
function
|
|
119
|
+
var b = /* @__PURE__ */ new Set();
|
|
120
|
+
function P(e) {
|
|
118
121
|
return Array.isArray(e);
|
|
119
122
|
}
|
|
120
|
-
function
|
|
123
|
+
function ee(e, t) {
|
|
121
124
|
t === void 0 && (t = ",");
|
|
122
|
-
var
|
|
123
|
-
return
|
|
124
|
-
return
|
|
125
|
+
var r = P(e) ? e : e.split(t);
|
|
126
|
+
return r.every(function(n) {
|
|
127
|
+
return b.has(n.trim().toLowerCase());
|
|
125
128
|
});
|
|
126
129
|
}
|
|
127
|
-
function
|
|
130
|
+
function te(e) {
|
|
128
131
|
var t = Array.isArray(e) ? e : [e];
|
|
129
|
-
|
|
130
|
-
return !
|
|
131
|
-
}), t.forEach(function(
|
|
132
|
-
return
|
|
132
|
+
b.has("meta") && b.forEach(function(r) {
|
|
133
|
+
return !Z(r) && b.delete(r.toLowerCase());
|
|
134
|
+
}), t.forEach(function(r) {
|
|
135
|
+
return b.add(r.toLowerCase());
|
|
133
136
|
});
|
|
134
137
|
}
|
|
135
|
-
function
|
|
138
|
+
function re(e) {
|
|
136
139
|
var t = Array.isArray(e) ? e : [e];
|
|
137
|
-
e === "meta" ?
|
|
138
|
-
return
|
|
140
|
+
e === "meta" ? b.clear() : t.forEach(function(r) {
|
|
141
|
+
return b.delete(r.toLowerCase());
|
|
139
142
|
});
|
|
140
143
|
}
|
|
141
|
-
function
|
|
142
|
-
(typeof
|
|
144
|
+
function oe(e, t, r) {
|
|
145
|
+
(typeof r == "function" && r(e, t) || r === !0) && e.preventDefault();
|
|
143
146
|
}
|
|
144
|
-
function
|
|
145
|
-
return typeof
|
|
147
|
+
function ne(e, t, r) {
|
|
148
|
+
return typeof r == "function" ? r(e, t) : r === !0 || r === void 0;
|
|
146
149
|
}
|
|
147
|
-
function
|
|
148
|
-
return
|
|
150
|
+
function ae(e) {
|
|
151
|
+
return z(e, ["input", "textarea", "select"]);
|
|
149
152
|
}
|
|
150
|
-
function
|
|
153
|
+
function z(e, t) {
|
|
151
154
|
t === void 0 && (t = !1);
|
|
152
|
-
var
|
|
153
|
-
return
|
|
154
|
-
var
|
|
155
|
-
return
|
|
156
|
-
})) : !!(
|
|
155
|
+
var r = e.target, n = e.composed, l = null;
|
|
156
|
+
return se(r) && n ? l = e.composedPath()[0] && e.composedPath()[0].tagName : l = r && r.tagName, P(t) ? !!(l && t && t.some(function(a) {
|
|
157
|
+
var s;
|
|
158
|
+
return a.toLowerCase() === ((s = l) == null ? void 0 : s.toLowerCase());
|
|
159
|
+
})) : !!(l && t && t);
|
|
157
160
|
}
|
|
158
|
-
function
|
|
161
|
+
function se(e) {
|
|
159
162
|
return !!e.tagName && !e.tagName.startsWith("-") && e.tagName.includes("-");
|
|
160
163
|
}
|
|
161
|
-
function
|
|
162
|
-
return e.length === 0 && t ? (console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'), !0) : t ? e.some(function(
|
|
163
|
-
return t.includes(
|
|
164
|
+
function ie(e, t) {
|
|
165
|
+
return e.length === 0 && t ? (console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'), !0) : t ? e.some(function(r) {
|
|
166
|
+
return t.includes(r);
|
|
164
167
|
}) || e.includes("*") : !0;
|
|
165
168
|
}
|
|
166
|
-
var
|
|
169
|
+
var ue = function(t, r, n) {
|
|
167
170
|
n === void 0 && (n = !1);
|
|
168
|
-
var
|
|
169
|
-
if (!(
|
|
171
|
+
var l = r.alt, a = r.meta, s = r.mod, f = r.shift, i = r.ctrl, c = r.keys, g = t.key, y = t.code, u = t.ctrlKey, o = t.metaKey, h = t.shiftKey, p = t.altKey, m = S(y), v = g.toLowerCase();
|
|
172
|
+
if (!(c != null && c.includes(m)) && !(c != null && c.includes(v)) && !["ctrl", "control", "unknown", "meta", "alt", "shift", "os"].includes(m))
|
|
170
173
|
return !1;
|
|
171
174
|
if (!n) {
|
|
172
|
-
if (
|
|
175
|
+
if (l === !p && v !== "alt" || f === !h && v !== "shift")
|
|
173
176
|
return !1;
|
|
174
|
-
if (
|
|
175
|
-
if (!
|
|
177
|
+
if (s) {
|
|
178
|
+
if (!o && !u)
|
|
176
179
|
return !1;
|
|
177
|
-
} else if (
|
|
180
|
+
} else if (a === !o && v !== "meta" && v !== "os" || i === !u && v !== "ctrl" && v !== "control")
|
|
178
181
|
return !1;
|
|
179
182
|
}
|
|
180
|
-
return
|
|
181
|
-
},
|
|
182
|
-
return
|
|
183
|
+
return c && c.length === 1 && (c.includes(v) || c.includes(m)) ? !0 : c ? ee(c) : !c;
|
|
184
|
+
}, le = /* @__PURE__ */ q(void 0), ce = function() {
|
|
185
|
+
return G(le);
|
|
183
186
|
};
|
|
184
|
-
function
|
|
187
|
+
function W(e, t) {
|
|
185
188
|
return e && t && typeof e == "object" && typeof t == "object" ? Object.keys(e).length === Object.keys(t).length && //@ts-ignore
|
|
186
|
-
Object.keys(e).reduce(function(
|
|
187
|
-
return
|
|
189
|
+
Object.keys(e).reduce(function(r, n) {
|
|
190
|
+
return r && W(e[n], t[n]);
|
|
188
191
|
}, !0) : e === t;
|
|
189
192
|
}
|
|
190
|
-
var
|
|
193
|
+
var fe = /* @__PURE__ */ q({
|
|
191
194
|
hotkeys: [],
|
|
192
195
|
enabledScopes: [],
|
|
193
196
|
toggleScope: function() {
|
|
@@ -196,78 +199,211 @@ var se = /* @__PURE__ */ O({
|
|
|
196
199
|
},
|
|
197
200
|
disableScope: function() {
|
|
198
201
|
}
|
|
199
|
-
}),
|
|
200
|
-
return
|
|
202
|
+
}), de = function() {
|
|
203
|
+
return G(fe);
|
|
201
204
|
};
|
|
202
|
-
function
|
|
203
|
-
var t =
|
|
204
|
-
return
|
|
205
|
+
function pe(e) {
|
|
206
|
+
var t = k(void 0);
|
|
207
|
+
return W(t.current, e) || (t.current = e), t.current;
|
|
205
208
|
}
|
|
206
|
-
var
|
|
209
|
+
var N = function(t) {
|
|
207
210
|
t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation();
|
|
208
|
-
},
|
|
209
|
-
function
|
|
210
|
-
var
|
|
211
|
-
g ?
|
|
212
|
-
var
|
|
213
|
-
return
|
|
214
|
-
if (!(
|
|
215
|
-
var
|
|
216
|
-
var
|
|
217
|
-
if (
|
|
218
|
-
if (
|
|
219
|
-
var
|
|
220
|
-
if ((
|
|
221
|
-
|
|
211
|
+
}, me = typeof window < "u" ? J : B;
|
|
212
|
+
function ke(e, t, r, n) {
|
|
213
|
+
var l = M(null), a = l[0], s = l[1], f = k(!1), i = r instanceof Array ? n instanceof Array ? void 0 : n : r, c = P(e) ? e.join(i?.splitKey) : e, g = r instanceof Array ? r : n instanceof Array ? n : void 0, y = E(t, g ?? []), u = k(y);
|
|
214
|
+
g ? u.current = y : u.current = t;
|
|
215
|
+
var o = pe(i), h = de(), p = h.enabledScopes, m = ce();
|
|
216
|
+
return me(function() {
|
|
217
|
+
if (!(o?.enabled === !1 || !ie(p, o?.scopes))) {
|
|
218
|
+
var v = function(d, w) {
|
|
219
|
+
var F;
|
|
220
|
+
if (w === void 0 && (w = !1), !(ae(d) && !z(d, o?.enableOnFormTags))) {
|
|
221
|
+
if (a !== null) {
|
|
222
|
+
var T = a.getRootNode();
|
|
223
|
+
if ((T instanceof Document || T instanceof ShadowRoot) && T.activeElement !== a && !a.contains(T.activeElement)) {
|
|
224
|
+
N(d);
|
|
222
225
|
return;
|
|
223
226
|
}
|
|
224
227
|
}
|
|
225
|
-
(
|
|
226
|
-
var
|
|
227
|
-
if (
|
|
228
|
-
if (
|
|
228
|
+
(F = d.target) != null && F.isContentEditable && !(o != null && o.enableOnContentEditable) || D(c, o?.splitKey).forEach(function($) {
|
|
229
|
+
var O, x = R($, o?.combinationKey);
|
|
230
|
+
if (ue(d, x, o?.ignoreModifiers) || (O = x.keys) != null && O.includes("*")) {
|
|
231
|
+
if (o != null && o.ignoreEventWhen != null && o.ignoreEventWhen(d) || w && f.current)
|
|
229
232
|
return;
|
|
230
|
-
if (
|
|
231
|
-
|
|
233
|
+
if (oe(d, x, o?.preventDefault), !ne(d, x, o?.enabled)) {
|
|
234
|
+
N(d);
|
|
232
235
|
return;
|
|
233
236
|
}
|
|
234
|
-
|
|
237
|
+
u.current(d, x), w || (f.current = !0);
|
|
235
238
|
}
|
|
236
239
|
});
|
|
237
240
|
}
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
}, _ =
|
|
243
|
-
return _.addEventListener("keyup",
|
|
244
|
-
return
|
|
241
|
+
}, H = function(d) {
|
|
242
|
+
d.key !== void 0 && (te(S(d.code)), (o?.keydown === void 0 && o?.keyup !== !0 || o != null && o.keydown) && v(d));
|
|
243
|
+
}, K = function(d) {
|
|
244
|
+
d.key !== void 0 && (re(S(d.code)), f.current = !1, o != null && o.keyup && v(d, !0));
|
|
245
|
+
}, _ = a || i?.document || document;
|
|
246
|
+
return _.addEventListener("keyup", K, i?.eventListenerOptions), _.addEventListener("keydown", H, i?.eventListenerOptions), m && D(c, o?.splitKey).forEach(function(C) {
|
|
247
|
+
return m.addHotkey(R(C, o?.combinationKey, o?.description));
|
|
245
248
|
}), function() {
|
|
246
|
-
_.removeEventListener("keyup",
|
|
247
|
-
return
|
|
249
|
+
_.removeEventListener("keyup", K, i?.eventListenerOptions), _.removeEventListener("keydown", H, i?.eventListenerOptions), m && D(c, o?.splitKey).forEach(function(C) {
|
|
250
|
+
return m.removeHotkey(R(C, o?.combinationKey, o?.description));
|
|
248
251
|
});
|
|
249
252
|
};
|
|
250
253
|
}
|
|
251
|
-
}, [
|
|
254
|
+
}, [a, c, o, p]), s;
|
|
255
|
+
}
|
|
256
|
+
function ye() {
|
|
257
|
+
var e = k(!1), t = E(function() {
|
|
258
|
+
return e.current;
|
|
259
|
+
}, []);
|
|
260
|
+
return B(function() {
|
|
261
|
+
return e.current = !0, function() {
|
|
262
|
+
e.current = !1;
|
|
263
|
+
};
|
|
264
|
+
}, []), t;
|
|
265
|
+
}
|
|
266
|
+
var ve = function(e) {
|
|
267
|
+
e === void 0 && (e = {});
|
|
268
|
+
var t = M(e), r = t[0], n = t[1], l = E(function(a) {
|
|
269
|
+
n(function(s) {
|
|
270
|
+
return Object.assign({}, s, a instanceof Function ? a(s) : a);
|
|
271
|
+
});
|
|
272
|
+
}, []);
|
|
273
|
+
return [r, l];
|
|
274
|
+
}, A, j;
|
|
275
|
+
function ge() {
|
|
276
|
+
return j || (j = 1, A = function() {
|
|
277
|
+
var e = document.getSelection();
|
|
278
|
+
if (!e.rangeCount)
|
|
279
|
+
return function() {
|
|
280
|
+
};
|
|
281
|
+
for (var t = document.activeElement, r = [], n = 0; n < e.rangeCount; n++)
|
|
282
|
+
r.push(e.getRangeAt(n));
|
|
283
|
+
switch (t.tagName.toUpperCase()) {
|
|
284
|
+
// .toUpperCase handles XHTML
|
|
285
|
+
case "INPUT":
|
|
286
|
+
case "TEXTAREA":
|
|
287
|
+
t.blur();
|
|
288
|
+
break;
|
|
289
|
+
default:
|
|
290
|
+
t = null;
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
return e.removeAllRanges(), function() {
|
|
294
|
+
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || r.forEach(function(l) {
|
|
295
|
+
e.addRange(l);
|
|
296
|
+
}), t && t.focus();
|
|
297
|
+
};
|
|
298
|
+
}), A;
|
|
252
299
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
300
|
+
var I, U;
|
|
301
|
+
function be() {
|
|
302
|
+
if (U) return I;
|
|
303
|
+
U = 1;
|
|
304
|
+
var e = ge(), t = {
|
|
305
|
+
"text/plain": "Text",
|
|
306
|
+
"text/html": "Url",
|
|
307
|
+
default: "Text"
|
|
308
|
+
}, r = "Copy to clipboard: #{key}, Enter";
|
|
309
|
+
function n(a) {
|
|
310
|
+
var s = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
311
|
+
return a.replace(/#{\s*key\s*}/g, s);
|
|
312
|
+
}
|
|
313
|
+
function l(a, s) {
|
|
314
|
+
var f, i, c, g, y, u, o = !1;
|
|
315
|
+
s || (s = {}), f = s.debug || !1;
|
|
316
|
+
try {
|
|
317
|
+
c = e(), g = document.createRange(), y = document.getSelection(), u = document.createElement("span"), u.textContent = a, u.ariaHidden = "true", u.style.all = "unset", u.style.position = "fixed", u.style.top = 0, u.style.clip = "rect(0, 0, 0, 0)", u.style.whiteSpace = "pre", u.style.webkitUserSelect = "text", u.style.MozUserSelect = "text", u.style.msUserSelect = "text", u.style.userSelect = "text", u.addEventListener("copy", function(p) {
|
|
318
|
+
if (p.stopPropagation(), s.format)
|
|
319
|
+
if (p.preventDefault(), typeof p.clipboardData > "u") {
|
|
320
|
+
f && console.warn("unable to use e.clipboardData"), f && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
|
321
|
+
var m = t[s.format] || t.default;
|
|
322
|
+
window.clipboardData.setData(m, a);
|
|
323
|
+
} else
|
|
324
|
+
p.clipboardData.clearData(), p.clipboardData.setData(s.format, a);
|
|
325
|
+
s.onCopy && (p.preventDefault(), s.onCopy(p.clipboardData));
|
|
326
|
+
}), document.body.appendChild(u), g.selectNodeContents(u), y.addRange(g);
|
|
327
|
+
var h = document.execCommand("copy");
|
|
328
|
+
if (!h)
|
|
329
|
+
throw new Error("copy command was unsuccessful");
|
|
330
|
+
o = !0;
|
|
331
|
+
} catch (p) {
|
|
332
|
+
f && console.error("unable to copy using execCommand: ", p), f && console.warn("trying IE specific stuff");
|
|
333
|
+
try {
|
|
334
|
+
window.clipboardData.setData(s.format || "text", a), s.onCopy && s.onCopy(window.clipboardData), o = !0;
|
|
335
|
+
} catch (m) {
|
|
336
|
+
f && console.error("unable to copy using clipboardData: ", m), f && console.error("falling back to prompt"), i = n("message" in s ? s.message : r), window.prompt(i, a);
|
|
337
|
+
}
|
|
338
|
+
} finally {
|
|
339
|
+
y && (typeof y.removeRange == "function" ? y.removeRange(g) : y.removeAllRanges()), u && document.body.removeChild(u), c();
|
|
340
|
+
}
|
|
341
|
+
return o;
|
|
342
|
+
}
|
|
343
|
+
return I = l, I;
|
|
344
|
+
}
|
|
345
|
+
var Ce = /* @__PURE__ */ be();
|
|
346
|
+
const he = /* @__PURE__ */ Q(Ce);
|
|
347
|
+
var Se = function() {
|
|
348
|
+
var e = ye(), t = ve({
|
|
349
|
+
value: void 0,
|
|
350
|
+
error: void 0,
|
|
351
|
+
noUserInteraction: !0
|
|
352
|
+
}), r = t[0], n = t[1], l = E(function(a) {
|
|
353
|
+
if (e()) {
|
|
354
|
+
var s, f;
|
|
355
|
+
try {
|
|
356
|
+
if (typeof a != "string" && typeof a != "number") {
|
|
357
|
+
var i = new Error("Cannot copy typeof " + typeof a + " to clipboard, must be a string");
|
|
358
|
+
process.env.NODE_ENV === "development" && console.error(i), n({
|
|
359
|
+
value: a,
|
|
360
|
+
error: i,
|
|
361
|
+
noUserInteraction: !0
|
|
362
|
+
});
|
|
363
|
+
return;
|
|
364
|
+
} else if (a === "") {
|
|
365
|
+
var i = new Error("Cannot copy empty string to clipboard.");
|
|
366
|
+
process.env.NODE_ENV === "development" && console.error(i), n({
|
|
367
|
+
value: a,
|
|
368
|
+
error: i,
|
|
369
|
+
noUserInteraction: !0
|
|
370
|
+
});
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
f = a.toString(), s = he(f), n({
|
|
374
|
+
value: f,
|
|
375
|
+
error: void 0,
|
|
376
|
+
noUserInteraction: s
|
|
377
|
+
});
|
|
378
|
+
} catch (c) {
|
|
379
|
+
n({
|
|
380
|
+
value: f,
|
|
381
|
+
error: c,
|
|
382
|
+
noUserInteraction: s
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}, []);
|
|
387
|
+
return [r, l];
|
|
388
|
+
};
|
|
389
|
+
function Ee() {
|
|
390
|
+
const [e, t] = M(r());
|
|
391
|
+
function r() {
|
|
256
392
|
return document.documentElement.style.getPropertyValue("color-scheme") || localStorage.getItem("theme") || "light";
|
|
257
393
|
}
|
|
258
|
-
return
|
|
259
|
-
const n = document.documentElement,
|
|
260
|
-
const
|
|
261
|
-
t(
|
|
394
|
+
return B(() => {
|
|
395
|
+
const n = document.documentElement, l = new MutationObserver(() => {
|
|
396
|
+
const a = r();
|
|
397
|
+
t(a);
|
|
262
398
|
});
|
|
263
|
-
return
|
|
399
|
+
return l.observe(n, {
|
|
264
400
|
attributes: !0,
|
|
265
401
|
attributeFilter: ["style"]
|
|
266
|
-
}), () =>
|
|
402
|
+
}), () => l.disconnect();
|
|
267
403
|
}, []), e;
|
|
268
404
|
}
|
|
269
|
-
function
|
|
270
|
-
const { resolvedTheme: e, setTheme: t } =
|
|
405
|
+
function xe() {
|
|
406
|
+
const { resolvedTheme: e, setTheme: t } = X();
|
|
271
407
|
return {
|
|
272
408
|
colorMode: e,
|
|
273
409
|
setColorMode: t,
|
|
@@ -276,125 +412,124 @@ function fe() {
|
|
|
276
412
|
}
|
|
277
413
|
};
|
|
278
414
|
}
|
|
279
|
-
function
|
|
280
|
-
const { colorMode:
|
|
281
|
-
return
|
|
415
|
+
function De(e, t) {
|
|
416
|
+
const { colorMode: r } = xe();
|
|
417
|
+
return r === "light" ? e : t;
|
|
282
418
|
}
|
|
283
419
|
export {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
pe as useHotkeys
|
|
420
|
+
jt as Accordion,
|
|
421
|
+
$t as Alert,
|
|
422
|
+
Ie as Avatar,
|
|
423
|
+
tr as Badge,
|
|
424
|
+
Me as Box,
|
|
425
|
+
Pe as Button,
|
|
426
|
+
Zr as Calendar,
|
|
427
|
+
or as Card,
|
|
428
|
+
wt as Checkbox,
|
|
429
|
+
Ke as Code,
|
|
430
|
+
Oe as ComboBox,
|
|
431
|
+
fo as DataTable,
|
|
432
|
+
Qr as DateInput,
|
|
433
|
+
to as DatePicker,
|
|
434
|
+
io as DateRangePicker,
|
|
435
|
+
qe as Dialog,
|
|
436
|
+
ze as Divider,
|
|
437
|
+
Eo as Flex,
|
|
438
|
+
ur as FormField,
|
|
439
|
+
Mt as Grid,
|
|
440
|
+
$e as Group,
|
|
441
|
+
Ro as Heading,
|
|
442
|
+
vr as Icon,
|
|
443
|
+
Je as IconButton,
|
|
444
|
+
Ye as IconToggleButton,
|
|
445
|
+
et as Image,
|
|
446
|
+
rt as Kbd,
|
|
447
|
+
nt as Link,
|
|
448
|
+
st as List,
|
|
449
|
+
br as LoadingSpinner,
|
|
450
|
+
Ct as MakeElementFocusable,
|
|
451
|
+
_r as Menu,
|
|
452
|
+
Pr as MultilineTextInput,
|
|
453
|
+
xt as NimbusProvider,
|
|
454
|
+
It as NumberInput,
|
|
455
|
+
hr as PasswordInput,
|
|
456
|
+
oo as ProgressBar,
|
|
457
|
+
Kr as RadioInput,
|
|
458
|
+
ao as RangeCalendar,
|
|
459
|
+
Pt as Select,
|
|
460
|
+
ft as SimpleGrid,
|
|
461
|
+
wr as SplitButton,
|
|
462
|
+
kt as Stack,
|
|
463
|
+
jr as Switch,
|
|
464
|
+
Io as Table,
|
|
465
|
+
Gr as TagGroup,
|
|
466
|
+
pt as Text,
|
|
467
|
+
Rt as TextInput,
|
|
468
|
+
Mr as TimeInput,
|
|
469
|
+
Vr as ToggleButton,
|
|
470
|
+
Wr as ToggleButtonGroup,
|
|
471
|
+
lo as Toolbar,
|
|
472
|
+
yt as Tooltip,
|
|
473
|
+
Et as VisuallyHidden,
|
|
474
|
+
Ut as _AccordionContent,
|
|
475
|
+
Gt as _AccordionHeader,
|
|
476
|
+
qt as _AccordionHeaderRightContent,
|
|
477
|
+
Vt as _AccordionItem,
|
|
478
|
+
zt as _AccordionRoot,
|
|
479
|
+
Xt as _AlertActions,
|
|
480
|
+
Jt as _AlertDescription,
|
|
481
|
+
Qt as _AlertDismissButton,
|
|
482
|
+
Yt as _AlertRoot,
|
|
483
|
+
Zt as _AlertTitle,
|
|
484
|
+
nr as _CardContent,
|
|
485
|
+
ar as _CardHeader,
|
|
486
|
+
sr as _CardRoot,
|
|
487
|
+
Ne as _ComboBoxOption,
|
|
488
|
+
je as _ComboBoxOptionGroup,
|
|
489
|
+
Ue as _ComboBoxRoot,
|
|
490
|
+
po as _DataTableBody,
|
|
491
|
+
mo as _DataTableCell,
|
|
492
|
+
yo as _DataTableColumn,
|
|
493
|
+
vo as _DataTableExpandButton,
|
|
494
|
+
go as _DataTableFooter,
|
|
495
|
+
bo as _DataTableHeader,
|
|
496
|
+
Co as _DataTableNestedIcon,
|
|
497
|
+
ho as _DataTableRoot,
|
|
498
|
+
xo as _DataTableRow,
|
|
499
|
+
_o as _DataTableSelectionCell,
|
|
500
|
+
wo as _DataTableTable,
|
|
501
|
+
lr as _FormFieldDescription,
|
|
502
|
+
cr as _FormFieldError,
|
|
503
|
+
fr as _FormFieldInfoBox,
|
|
504
|
+
dr as _FormFieldInput,
|
|
505
|
+
pr as _FormFieldLabel,
|
|
506
|
+
mr as _FormFieldRoot,
|
|
507
|
+
it as _ListIndicator,
|
|
508
|
+
ut as _ListItem,
|
|
509
|
+
lt as _ListRoot,
|
|
510
|
+
Tr as _MenuContent,
|
|
511
|
+
kr as _MenuItem,
|
|
512
|
+
Sr as _MenuRoot,
|
|
513
|
+
Er as _MenuSection,
|
|
514
|
+
Dr as _MenuSeparator,
|
|
515
|
+
Rr as _MenuSubmenu,
|
|
516
|
+
Ar as _MenuSubmenuTrigger,
|
|
517
|
+
Ir as _MenuTrigger,
|
|
518
|
+
Fr as _RadioInputOption,
|
|
519
|
+
Or as _RadioInputRoot,
|
|
520
|
+
Ht as _SelectOption,
|
|
521
|
+
Kt as _SelectOptionGroup,
|
|
522
|
+
Ft as _SelectOptions,
|
|
523
|
+
Ot as _SelectRoot,
|
|
524
|
+
$r as _ToggleButtonGroupButton,
|
|
525
|
+
Xr as _ToggleButtonGroupRoot,
|
|
526
|
+
vt as _TooltipContent,
|
|
527
|
+
gt as _TooltipRoot,
|
|
528
|
+
ko as system,
|
|
529
|
+
xe as useColorMode,
|
|
530
|
+
De as useColorModeValue,
|
|
531
|
+
Ee as useColorScheme,
|
|
532
|
+
Se as useCopyToClipboard,
|
|
533
|
+
ke as useHotkeys
|
|
399
534
|
};
|
|
400
535
|
//# sourceMappingURL=index.es.js.map
|