@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/index.es.js CHANGED
@@ -1,70 +1,73 @@
1
- import { A as xe } from "./chunks/avatar-B7CMxFNg.es.js";
2
- import { B as _e } from "./chunks/box-C8731OYq.es.js";
3
- import { B as ke } from "./chunks/button-Bg73nQk3.es.js";
4
- import { C as Se } from "./chunks/code-CieYW1ER.es.js";
5
- import { C as Le, c as Ee, b as Ae, a as De } from "./chunks/combobox-qA8TjWPw.es.js";
6
- import { D as Be } from "./chunks/dialog-CG-cCFkg.es.js";
7
- import { D as Me } from "./chunks/divider-CpctZ_-U.es.js";
8
- import { G as Ke } from "./chunks/group-BQeamedA.es.js";
9
- import { I as Fe } from "./chunks/icon-button-D2qU4Eun.es.js";
10
- import { I as Ge } from "./chunks/icon-toggle-button-wjYSiFhl.es.js";
11
- import { I as je } from "./chunks/image-B2WbQ5hi.es.js";
12
- import { K as qe } from "./chunks/kbd-CDEXQyg2.es.js";
13
- import { L as $e } from "./chunks/link-Db9S7XvR.es.js";
14
- import { L as Je, c as Qe, b as Ue, a as Xe } from "./chunks/list-x423RThD.es.js";
15
- import { S as Ze } from "./chunks/simple-grid-Crtlocqj.es.js";
16
- import { T as tt } from "./chunks/text-B2wziCK6.es.js";
17
- import { b as rt, a as nt, T as at } from "./chunks/tooltip-BLyAAnK-.es.js";
18
- import { M as it } from "./chunks/make-element-focusable-_FWEyVtG.es.js";
19
- import { z as q } from "./chunks/nimbus-provider-DEQVQ5ZH.es.js";
20
- import { N as lt } from "./chunks/nimbus-provider-DEQVQ5ZH.es.js";
21
- import { C as ct } from "./chunks/checkbox-B2yJgtOJ.es.js";
22
- import { S as mt } from "./chunks/stack-CBx-c8hI.es.js";
23
- import { V as vt } from "./chunks/visually-hidden-vh07nrZa.es.js";
24
- import { T as gt } from "./chunks/text-input-B7XCw3SS.es.js";
25
- import { N as xt } from "./chunks/number-input-CFa5dE3r.es.js";
26
- import { G as _t } from "./chunks/grid-Cdmh4YaF.es.js";
27
- import { S as kt, c as Tt, d as St, b as wt, a as Lt } from "./chunks/select-CMZAeYTf.es.js";
28
- import { A as At, d as Dt, c as Rt, e as Bt, b as It, a as Mt } from "./chunks/accordion-B9jG9fOy.es.js";
29
- import { A as Kt, d as Pt, c as Ft, e as Ot, a as Gt, b as Nt } from "./chunks/alert-BvT6yjas.es.js";
30
- import { B as Vt } from "./chunks/badge-C2elCKPp.es.js";
31
- import { C as Wt, c as $t, b as zt, a as Jt } from "./chunks/card-C7PIEqmV.es.js";
32
- import { F as Ut, d as Xt, e as Yt, f as Zt, c as eo, b as to, a as oo } from "./chunks/form-field-BgKHtyTH.es.js";
33
- import { I as no } from "./chunks/icon-DTe62Nqz.es.js";
34
- import { L as so } from "./chunks/loading-spinner-C7yZE-QF.es.js";
35
- import { P as uo } from "./chunks/password-input-XSc2MhLG.es.js";
36
- import { M as fo, S as co, c as mo, d as po, a as vo, f as yo, e as go, h as ho, g as xo, b as bo } from "./chunks/split-button-BZHi7r1E.es.js";
37
- import { T as Co } from "./chunks/time-input-DiFCm9qO.es.js";
38
- import { M as To } from "./chunks/multiline-text-input-MJPDSw2d.es.js";
39
- import { R as wo, b as Lo, a as Eo } from "./chunks/radio-input-DRDeKoG2.es.js";
40
- import { S as Do } from "./chunks/switch-BOvBbCnU.es.js";
41
- import { T as Bo } from "./chunks/tag-group-C_oBSbrz.es.js";
42
- import { T as Mo } from "./chunks/toggle-button-BpG_UgsK.es.js";
43
- import { T as Ko, b as Po, a as Fo } from "./chunks/toggle-button-group-BjQefKya.es.js";
44
- import { D as Go } from "./chunks/date-input-BSacD65z.es.js";
45
- import { C as jo } from "./chunks/calendar-Co4TTkzj.es.js";
46
- import { D as qo } from "./chunks/date-picker-COI-tlHx.es.js";
47
- import { P as $o } from "./chunks/progress-bar-DM8YmshZ.es.js";
48
- import { R as Jo } from "./chunks/range-calendar-Cup7ahCy.es.js";
49
- import { D as Uo } from "./chunks/date-range-picker-BnI3m8z-.es.js";
50
- import { T as Yo } from "./chunks/toolbar-D2CqoZzL.es.js";
51
- import { D as er, e as tr, g as or, d as rr, j as nr, i as ar, h as sr, c as ir, k as ur, a as lr, f as fr, l as cr, b as dr, u as mr } from "./chunks/data-table-BqGT7Ov4.es.js";
52
- import { s as vr } from "./chunks/index-BDmBxsjm.es.js";
53
- import { F as gr } from "./chunks/flex-B81RbgfK.es.js";
54
- import { H as xr } from "./chunks/index-0CyuQQet.es.js";
55
- import { n as _r } from "./chunks/namespace-HxAMZBwF.es.js";
56
- import { useState as K, useRef as E, useCallback as W, useLayoutEffect as $, useEffect as P, useContext as F, createContext as O } from "react";
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 A() {
59
- return A = Object.assign ? Object.assign.bind() : function(e) {
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 o = arguments[t];
62
- for (var n in o) ({}).hasOwnProperty.call(o, n) && (e[n] = o[n]);
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
- }, A.apply(null, arguments);
68
+ }, L.apply(null, arguments);
66
69
  }
67
- var G = ["shift", "alt", "meta", "mod", "ctrl"], z = {
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 T(e) {
89
- return (e && z[e] || e || "").trim().toLowerCase().replace(/key|digit|numpad|arrow/, "");
91
+ function S(e) {
92
+ return (e && Y[e] || e || "").trim().toLowerCase().replace(/key|digit|numpad|arrow/, "");
90
93
  }
91
- function J(e) {
92
- return G.includes(e);
94
+ function Z(e) {
95
+ return V.includes(e);
93
96
  }
94
- function w(e, t) {
97
+ function D(e, t) {
95
98
  return t === void 0 && (t = ","), e.split(t);
96
99
  }
97
- function L(e, t, o) {
100
+ function R(e, t, r) {
98
101
  t === void 0 && (t = "+");
99
- var n = e.toLocaleLowerCase().split(t).map(function(c) {
100
- return T(c);
101
- }), i = {
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
- }, l = n.filter(function(c) {
108
- return !G.includes(c);
110
+ }, a = n.filter(function(s) {
111
+ return !V.includes(s);
109
112
  });
110
- return A({}, i, {
111
- keys: l,
112
- description: o,
113
+ return L({}, l, {
114
+ keys: a,
115
+ description: r,
113
116
  hotkey: e
114
117
  });
115
118
  }
116
- var m = /* @__PURE__ */ new Set();
117
- function D(e) {
119
+ var b = /* @__PURE__ */ new Set();
120
+ function P(e) {
118
121
  return Array.isArray(e);
119
122
  }
120
- function Q(e, t) {
123
+ function ee(e, t) {
121
124
  t === void 0 && (t = ",");
122
- var o = D(e) ? e : e.split(t);
123
- return o.every(function(n) {
124
- return m.has(n.trim().toLowerCase());
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 U(e) {
130
+ function te(e) {
128
131
  var t = Array.isArray(e) ? e : [e];
129
- m.has("meta") && m.forEach(function(o) {
130
- return !J(o) && m.delete(o.toLowerCase());
131
- }), t.forEach(function(o) {
132
- return m.add(o.toLowerCase());
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 X(e) {
138
+ function re(e) {
136
139
  var t = Array.isArray(e) ? e : [e];
137
- e === "meta" ? m.clear() : t.forEach(function(o) {
138
- return m.delete(o.toLowerCase());
140
+ e === "meta" ? b.clear() : t.forEach(function(r) {
141
+ return b.delete(r.toLowerCase());
139
142
  });
140
143
  }
141
- function Y(e, t, o) {
142
- (typeof o == "function" && o(e, t) || o === !0) && e.preventDefault();
144
+ function oe(e, t, r) {
145
+ (typeof r == "function" && r(e, t) || r === !0) && e.preventDefault();
143
146
  }
144
- function Z(e, t, o) {
145
- return typeof o == "function" ? o(e, t) : o === !0 || o === void 0;
147
+ function ne(e, t, r) {
148
+ return typeof r == "function" ? r(e, t) : r === !0 || r === void 0;
146
149
  }
147
- function ee(e) {
148
- return N(e, ["input", "textarea", "select"]);
150
+ function ae(e) {
151
+ return z(e, ["input", "textarea", "select"]);
149
152
  }
150
- function N(e, t) {
153
+ function z(e, t) {
151
154
  t === void 0 && (t = !1);
152
- var o = e.target, n = e.composed, i = null;
153
- return te(o) && n ? i = e.composedPath()[0] && e.composedPath()[0].tagName : i = o && o.tagName, D(t) ? !!(i && t && t.some(function(l) {
154
- var c;
155
- return l.toLowerCase() === ((c = i) == null ? void 0 : c.toLowerCase());
156
- })) : !!(i && t && t);
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 te(e) {
161
+ function se(e) {
159
162
  return !!e.tagName && !e.tagName.startsWith("-") && e.tagName.includes("-");
160
163
  }
161
- function oe(e, t) {
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(o) {
163
- return t.includes(o);
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 re = function(t, o, n) {
169
+ var ue = function(t, r, n) {
167
170
  n === void 0 && (n = !1);
168
- var i = o.alt, l = o.meta, c = o.mod, y = o.shift, u = o.ctrl, s = o.keys, g = t.key, x = t.code, p = t.ctrlKey, r = t.metaKey, S = t.shiftKey, b = t.altKey, d = T(x), f = g.toLowerCase();
169
- if (!(s != null && s.includes(d)) && !(s != null && s.includes(f)) && !["ctrl", "control", "unknown", "meta", "alt", "shift", "os"].includes(d))
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 (i === !b && f !== "alt" || y === !S && f !== "shift")
175
+ if (l === !p && v !== "alt" || f === !h && v !== "shift")
173
176
  return !1;
174
- if (c) {
175
- if (!r && !p)
177
+ if (s) {
178
+ if (!o && !u)
176
179
  return !1;
177
- } else if (l === !r && f !== "meta" && f !== "os" || u === !p && f !== "ctrl" && f !== "control")
180
+ } else if (a === !o && v !== "meta" && v !== "os" || i === !u && v !== "ctrl" && v !== "control")
178
181
  return !1;
179
182
  }
180
- return s && s.length === 1 && (s.includes(f) || s.includes(d)) ? !0 : s ? Q(s) : !s;
181
- }, ne = /* @__PURE__ */ O(void 0), ae = function() {
182
- return F(ne);
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 j(e, t) {
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(o, n) {
187
- return o && j(e[n], t[n]);
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 se = /* @__PURE__ */ O({
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
- }), ie = function() {
200
- return F(se);
202
+ }), de = function() {
203
+ return G(fe);
201
204
  };
202
- function ue(e) {
203
- var t = E(void 0);
204
- return j(t.current, e) || (t.current = e), t.current;
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 H = function(t) {
209
+ var N = function(t) {
207
210
  t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation();
208
- }, le = typeof window < "u" ? $ : P;
209
- function pe(e, t, o, n) {
210
- var i = K(null), l = i[0], c = i[1], y = E(!1), u = o instanceof Array ? n instanceof Array ? void 0 : n : o, s = D(e) ? e.join(u?.splitKey) : e, g = o instanceof Array ? o : n instanceof Array ? n : void 0, x = W(t, g ?? []), p = E(x);
211
- g ? p.current = x : p.current = t;
212
- var r = ue(u), S = ie(), b = S.enabledScopes, d = ae();
213
- return le(function() {
214
- if (!(r?.enabled === !1 || !oe(b, r?.scopes))) {
215
- var f = function(a, C) {
216
- var I;
217
- if (C === void 0 && (C = !1), !(ee(a) && !N(a, r?.enableOnFormTags))) {
218
- if (l !== null) {
219
- var k = l.getRootNode();
220
- if ((k instanceof Document || k instanceof ShadowRoot) && k.activeElement !== l && !l.contains(k.activeElement)) {
221
- H(a);
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
- (I = a.target) != null && I.isContentEditable && !(r != null && r.enableOnContentEditable) || w(s, r?.splitKey).forEach(function(V) {
226
- var M, h = L(V, r?.combinationKey);
227
- if (re(a, h, r?.ignoreModifiers) || (M = h.keys) != null && M.includes("*")) {
228
- if (r != null && r.ignoreEventWhen != null && r.ignoreEventWhen(a) || C && y.current)
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 (Y(a, h, r?.preventDefault), !Z(a, h, r?.enabled)) {
231
- H(a);
233
+ if (oe(d, x, o?.preventDefault), !ne(d, x, o?.enabled)) {
234
+ N(d);
232
235
  return;
233
236
  }
234
- p.current(a, h), C || (y.current = !0);
237
+ u.current(d, x), w || (f.current = !0);
235
238
  }
236
239
  });
237
240
  }
238
- }, R = function(a) {
239
- a.key !== void 0 && (U(T(a.code)), (r?.keydown === void 0 && r?.keyup !== !0 || r != null && r.keydown) && f(a));
240
- }, B = function(a) {
241
- a.key !== void 0 && (X(T(a.code)), y.current = !1, r != null && r.keyup && f(a, !0));
242
- }, _ = l || u?.document || document;
243
- return _.addEventListener("keyup", B, u?.eventListenerOptions), _.addEventListener("keydown", R, u?.eventListenerOptions), d && w(s, r?.splitKey).forEach(function(v) {
244
- return d.addHotkey(L(v, r?.combinationKey, r?.description));
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", B, u?.eventListenerOptions), _.removeEventListener("keydown", R, u?.eventListenerOptions), d && w(s, r?.splitKey).forEach(function(v) {
247
- return d.removeHotkey(L(v, r?.combinationKey, r?.description));
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
- }, [l, s, r, b]), c;
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
- function ve() {
254
- const [e, t] = K(o());
255
- function o() {
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 P(() => {
259
- const n = document.documentElement, i = new MutationObserver(() => {
260
- const l = o();
261
- t(l);
394
+ return B(() => {
395
+ const n = document.documentElement, l = new MutationObserver(() => {
396
+ const a = r();
397
+ t(a);
262
398
  });
263
- return i.observe(n, {
399
+ return l.observe(n, {
264
400
  attributes: !0,
265
401
  attributeFilter: ["style"]
266
- }), () => i.disconnect();
402
+ }), () => l.disconnect();
267
403
  }, []), e;
268
404
  }
269
- function fe() {
270
- const { resolvedTheme: e, setTheme: t } = q();
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 ye(e, t) {
280
- const { colorMode: o } = fe();
281
- return o === "light" ? e : t;
415
+ function De(e, t) {
416
+ const { colorMode: r } = xe();
417
+ return r === "light" ? e : t;
282
418
  }
283
419
  export {
284
- At as Accordion,
285
- Kt as Alert,
286
- xe as Avatar,
287
- Vt as Badge,
288
- _e as Box,
289
- ke as Button,
290
- jo as Calendar,
291
- Wt as Card,
292
- ct as Checkbox,
293
- Se as Code,
294
- Le as ComboBox,
295
- er as DataTable,
296
- Go as DateInput,
297
- qo as DatePicker,
298
- Uo as DateRangePicker,
299
- Be as Dialog,
300
- Me as Divider,
301
- gr as Flex,
302
- Ut as FormField,
303
- _t as Grid,
304
- Ke as Group,
305
- xr as Heading,
306
- no as Icon,
307
- Fe as IconButton,
308
- Ge as IconToggleButton,
309
- je as Image,
310
- qe as Kbd,
311
- $e as Link,
312
- Je as List,
313
- so as LoadingSpinner,
314
- it as MakeElementFocusable,
315
- fo as Menu,
316
- To as MultilineTextInput,
317
- lt as NimbusProvider,
318
- xt as NumberInput,
319
- uo as PasswordInput,
320
- $o as ProgressBar,
321
- wo as RadioInput,
322
- Jo as RangeCalendar,
323
- kt as Select,
324
- Ze as SimpleGrid,
325
- co as SplitButton,
326
- mt as Stack,
327
- Do as Switch,
328
- _r as Table,
329
- Bo as TagGroup,
330
- tt as Text,
331
- gt as TextInput,
332
- Co as TimeInput,
333
- Mo as ToggleButton,
334
- Ko as ToggleButtonGroup,
335
- Yo as Toolbar,
336
- rt as Tooltip,
337
- vt as VisuallyHidden,
338
- Dt as _AccordionContent,
339
- Rt as _AccordionHeader,
340
- Bt as _AccordionHeaderRightContent,
341
- It as _AccordionItem,
342
- Mt as _AccordionRoot,
343
- Pt as _AlertActions,
344
- Ft as _AlertDescription,
345
- Ot as _AlertDismissButton,
346
- Gt as _AlertRoot,
347
- Nt as _AlertTitle,
348
- $t as _CardContent,
349
- zt as _CardHeader,
350
- Jt as _CardRoot,
351
- Ee as _ComboBoxOption,
352
- Ae as _ComboBoxOptionGroup,
353
- De as _ComboBoxRoot,
354
- tr as _DataTableBody,
355
- or as _DataTableCell,
356
- rr as _DataTableColumn,
357
- nr as _DataTableDetailsButton,
358
- ar as _DataTableExpandButton,
359
- sr as _DataTableFooter,
360
- ir as _DataTableHeader,
361
- ur as _DataTableNestedIcon,
362
- lr as _DataTableRoot,
363
- fr as _DataTableRow,
364
- cr as _DataTableSelectionCell,
365
- dr as _DataTableTable,
366
- Xt as _FormFieldDescription,
367
- Yt as _FormFieldError,
368
- Zt as _FormFieldInfoBox,
369
- eo as _FormFieldInput,
370
- to as _FormFieldLabel,
371
- oo as _FormFieldRoot,
372
- Qe as _ListIndicator,
373
- Ue as _ListItem,
374
- Xe as _ListRoot,
375
- mo as _MenuContent,
376
- po as _MenuItem,
377
- vo as _MenuRoot,
378
- yo as _MenuSection,
379
- go as _MenuSeparator,
380
- ho as _MenuSubmenu,
381
- xo as _MenuSubmenuTrigger,
382
- bo as _MenuTrigger,
383
- Lo as _RadioInputOption,
384
- Eo as _RadioInputRoot,
385
- Tt as _SelectOption,
386
- St as _SelectOptionGroup,
387
- wt as _SelectOptions,
388
- Lt as _SelectRoot,
389
- Po as _ToggleButtonGroupButton,
390
- Fo as _ToggleButtonGroupRoot,
391
- nt as _TooltipContent,
392
- at as _TooltipRoot,
393
- vr as system,
394
- fe as useColorMode,
395
- ye as useColorModeValue,
396
- ve as useColorScheme,
397
- mr as useCopyToClipboard,
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