@sps-woodland/buttons 8.4.1 → 8.4.3

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/lib/index.es.js CHANGED
@@ -1,68 +1,69 @@
1
- import * as d from "react";
2
- import de, { useRef as X, useCallback as _, useEffect as pe, useState as Ye, useMemo as ze, useContext as De } from "react";
3
- import { I18nContext as Xe, Spinner as qe, cl as Je, Metadata as Qe, Icon as Ze } from "@sps-woodland/core";
4
- import { code as g } from "@spscommerce/utils";
5
- function Oe(e) {
6
- var t, n, r = "";
1
+ import * as c from "react";
2
+ import Ne, { useRef as re, useCallback as Q, useEffect as ee, useState as Oe, useMemo as De, useContext as je } from "react";
3
+ import { Metadata as Ye, I18nContext as ze, Spinner as Xe, cl as qe, Icon as Je } from "@sps-woodland/core";
4
+ import { useFocusable as Qe, FocusRing as Ze } from "@react-aria/focus";
5
+ import { code as y } from "@spscommerce/utils";
6
+ function Le(e) {
7
+ var t, r, o = "";
7
8
  if (typeof e == "string" || typeof e == "number")
8
- r += e;
9
+ o += e;
9
10
  else if (typeof e == "object")
10
11
  if (Array.isArray(e)) {
11
- var s = e.length;
12
- for (t = 0; t < s; t++)
13
- e[t] && (n = Oe(e[t])) && (r && (r += " "), r += n);
12
+ var i = e.length;
13
+ for (t = 0; t < i; t++)
14
+ e[t] && (r = Le(e[t])) && (o && (o += " "), o += r);
14
15
  } else
15
- for (n in e)
16
- e[n] && (r && (r += " "), r += n);
17
- return r;
16
+ for (r in e)
17
+ e[r] && (o && (o += " "), o += r);
18
+ return o;
18
19
  }
19
20
  function et() {
20
- for (var e, t, n = 0, r = "", s = arguments.length; n < s; n++)
21
- (e = arguments[n]) && (t = Oe(e)) && (r && (r += " "), r += t);
22
- return r;
21
+ for (var e, t, r = 0, o = "", i = arguments.length; r < i; r++)
22
+ (e = arguments[r]) && (t = Le(e)) && (o && (o += " "), o += t);
23
+ return o;
23
24
  }
24
- const fe = typeof document < "u" ? de.useLayoutEffect : () => {
25
+ const Ce = typeof document < "u" ? Ne.useLayoutEffect : () => {
25
26
  };
26
- function U(e) {
27
- const t = X(null);
28
- return fe(() => {
27
+ function R(e) {
28
+ const t = re(null);
29
+ return Ce(() => {
29
30
  t.current = e;
30
31
  }, [
31
32
  e
32
- ]), _((...n) => {
33
- const r = t.current;
34
- return r == null ? void 0 : r(...n);
33
+ ]), Q((...r) => {
34
+ const o = t.current;
35
+ return o == null ? void 0 : o(...r);
35
36
  }, []);
36
37
  }
37
38
  let ye = /* @__PURE__ */ new Map();
38
39
  function tt(e, t) {
39
40
  if (e === t)
40
41
  return e;
41
- let n = ye.get(e);
42
- if (n)
43
- return n(t), t;
44
- let r = ye.get(t);
45
- return r ? (r(e), e) : t;
42
+ let r = ye.get(e);
43
+ if (r)
44
+ return r(t), t;
45
+ let o = ye.get(t);
46
+ return o ? (o(e), e) : t;
46
47
  }
47
- function Ce(...e) {
48
+ function _e(...e) {
48
49
  return (...t) => {
49
- for (let n of e)
50
- typeof n == "function" && n(...t);
50
+ for (let r of e)
51
+ typeof r == "function" && r(...t);
51
52
  };
52
53
  }
53
- const x = (e) => {
54
+ const D = (e) => {
54
55
  var t;
55
56
  return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
56
- }, W = (e) => e && "window" in e && e.window === e ? e : x(e).defaultView || window;
57
- function H(...e) {
57
+ }, H = (e) => e && "window" in e && e.window === e ? e : D(e).defaultView || window;
58
+ function W(...e) {
58
59
  let t = {
59
60
  ...e[0]
60
61
  };
61
- for (let n = 1; n < e.length; n++) {
62
- let r = e[n];
63
- for (let s in r) {
64
- let l = t[s], u = r[s];
65
- typeof l == "function" && typeof u == "function" && s[0] === "o" && s[1] === "n" && s.charCodeAt(2) >= 65 && s.charCodeAt(2) <= 90 ? t[s] = Ce(l, u) : (s === "className" || s === "UNSAFE_className") && typeof l == "string" && typeof u == "string" ? t[s] = et(l, u) : s === "id" && l && u ? t.id = tt(l, u) : t[s] = u !== void 0 ? u : l;
62
+ for (let r = 1; r < e.length; r++) {
63
+ let o = e[r];
64
+ for (let i in o) {
65
+ let d = t[i], u = o[i];
66
+ typeof d == "function" && typeof u == "function" && i[0] === "o" && i[1] === "n" && i.charCodeAt(2) >= 65 && i.charCodeAt(2) <= 90 ? t[i] = _e(d, u) : (i === "className" || i === "UNSAFE_className") && typeof d == "string" && typeof u == "string" ? t[i] = et(d, u) : i === "id" && d && u ? t.id = tt(d, u) : t[i] = u !== void 0 ? u : d;
66
67
  }
67
68
  }
68
69
  return t;
@@ -82,14 +83,14 @@ const nt = /* @__PURE__ */ new Set([
82
83
  "ping",
83
84
  "referrerPolicy"
84
85
  ]), st = /^(data-.*)$/;
85
- function at(e, t = {}) {
86
- let { labelable: n, isLink: r, propNames: s } = t, l = {};
86
+ function it(e, t = {}) {
87
+ let { labelable: r, isLink: o, propNames: i } = t, d = {};
87
88
  for (const u in e)
88
- Object.prototype.hasOwnProperty.call(e, u) && (nt.has(u) || n && rt.has(u) || r && ot.has(u) || (s == null ? void 0 : s.has(u)) || st.test(u)) && (l[u] = e[u]);
89
- return l;
89
+ Object.prototype.hasOwnProperty.call(e, u) && (nt.has(u) || r && rt.has(u) || o && ot.has(u) || (i == null ? void 0 : i.has(u)) || st.test(u)) && (d[u] = e[u]);
90
+ return d;
90
91
  }
91
- function K(e) {
92
- if (it())
92
+ function G(e) {
93
+ if (at())
93
94
  e.focus({
94
95
  preventScroll: !0
95
96
  });
@@ -98,272 +99,272 @@ function K(e) {
98
99
  e.focus(), ut(t);
99
100
  }
100
101
  }
101
- let J = null;
102
- function it() {
103
- if (J == null) {
104
- J = !1;
102
+ let z = null;
103
+ function at() {
104
+ if (z == null) {
105
+ z = !1;
105
106
  try {
106
107
  document.createElement("div").focus({
107
108
  get preventScroll() {
108
- return J = !0, !0;
109
+ return z = !0, !0;
109
110
  }
110
111
  });
111
112
  } catch {
112
113
  }
113
114
  }
114
- return J;
115
+ return z;
115
116
  }
116
117
  function lt(e) {
117
- let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
118
- for (; t instanceof HTMLElement && t !== r; )
119
- (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
118
+ let t = e.parentNode, r = [], o = document.scrollingElement || document.documentElement;
119
+ for (; t instanceof HTMLElement && t !== o; )
120
+ (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && r.push({
120
121
  element: t,
121
122
  scrollTop: t.scrollTop,
122
123
  scrollLeft: t.scrollLeft
123
124
  }), t = t.parentNode;
124
- return r instanceof HTMLElement && n.push({
125
- element: r,
126
- scrollTop: r.scrollTop,
127
- scrollLeft: r.scrollLeft
128
- }), n;
125
+ return o instanceof HTMLElement && r.push({
126
+ element: o,
127
+ scrollTop: o.scrollTop,
128
+ scrollLeft: o.scrollLeft
129
+ }), r;
129
130
  }
130
131
  function ut(e) {
131
- for (let { element: t, scrollTop: n, scrollLeft: r } of e)
132
- t.scrollTop = n, t.scrollLeft = r;
132
+ for (let { element: t, scrollTop: r, scrollLeft: o } of e)
133
+ t.scrollTop = r, t.scrollLeft = o;
133
134
  }
134
- function re(e) {
135
+ function oe(e) {
135
136
  var t;
136
- return typeof window > "u" || window.navigator == null ? !1 : ((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands.some((n) => e.test(n.brand))) || e.test(window.navigator.userAgent);
137
+ return typeof window > "u" || window.navigator == null ? !1 : ((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands.some((r) => e.test(r.brand))) || e.test(window.navigator.userAgent);
137
138
  }
138
- function me(e) {
139
+ function be(e) {
139
140
  var t;
140
141
  return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
141
142
  }
142
- function Y() {
143
- return me(/^Mac/i);
143
+ function j() {
144
+ return be(/^Mac/i);
144
145
  }
145
146
  function ct() {
146
- return me(/^iPhone/i);
147
- }
148
- function Le() {
149
- return me(/^iPad/i) || Y() && navigator.maxTouchPoints > 1;
147
+ return be(/^iPhone/i);
150
148
  }
151
149
  function Ke() {
152
- return ct() || Le();
150
+ return be(/^iPad/i) || j() && navigator.maxTouchPoints > 1;
151
+ }
152
+ function Ie() {
153
+ return ct() || Ke();
153
154
  }
154
155
  function dt() {
155
- return re(/AppleWebKit/i) && !pt();
156
+ return oe(/AppleWebKit/i) && !pt();
156
157
  }
157
158
  function pt() {
158
- return re(/Chrome/i);
159
+ return oe(/Chrome/i);
159
160
  }
160
- function _e() {
161
- return re(/Android/i);
161
+ function Ae() {
162
+ return oe(/Android/i);
162
163
  }
163
164
  function ft() {
164
- return re(/Firefox/i);
165
+ return oe(/Firefox/i);
165
166
  }
166
- function z(e, t, n = !0) {
167
- var r, s;
168
- let { metaKey: l, ctrlKey: u, altKey: m, shiftKey: p } = t;
169
- ft() && ((s = window.event) === null || s === void 0 || (r = s.type) === null || r === void 0 ? void 0 : r.startsWith("key")) && e.target === "_blank" && (Y() ? l = !0 : u = !0);
170
- let h = dt() && Y() && !Le() ? new KeyboardEvent("keydown", {
167
+ function Y(e, t, r = !0) {
168
+ var o, i;
169
+ let { metaKey: d, ctrlKey: u, altKey: p, shiftKey: b } = t;
170
+ ft() && ((i = window.event) === null || i === void 0 || (o = i.type) === null || o === void 0 ? void 0 : o.startsWith("key")) && e.target === "_blank" && (j() ? d = !0 : u = !0);
171
+ let E = dt() && j() && !Ke() ? new KeyboardEvent("keydown", {
171
172
  keyIdentifier: "Enter",
172
- metaKey: l,
173
+ metaKey: d,
173
174
  ctrlKey: u,
174
- altKey: m,
175
- shiftKey: p
175
+ altKey: p,
176
+ shiftKey: b
176
177
  }) : new MouseEvent("click", {
177
- metaKey: l,
178
+ metaKey: d,
178
179
  ctrlKey: u,
179
- altKey: m,
180
- shiftKey: p,
180
+ altKey: p,
181
+ shiftKey: b,
181
182
  bubbles: !0,
182
183
  cancelable: !0
183
184
  });
184
- z.isOpening = n, K(e), e.dispatchEvent(h), z.isOpening = !1;
185
+ Y.isOpening = r, G(e), e.dispatchEvent(E), Y.isOpening = !1;
185
186
  }
186
- z.isOpening = !1;
187
- let V = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Set();
187
+ Y.isOpening = !1;
188
+ let F = /* @__PURE__ */ new Map(), ce = /* @__PURE__ */ new Set();
188
189
  function he() {
189
190
  if (typeof window > "u")
190
191
  return;
191
- function e(r) {
192
- return "propertyName" in r;
192
+ function e(o) {
193
+ return "propertyName" in o;
193
194
  }
194
- let t = (r) => {
195
- if (!e(r) || !r.target)
195
+ let t = (o) => {
196
+ if (!e(o) || !o.target)
196
197
  return;
197
- let s = V.get(r.target);
198
- s || (s = /* @__PURE__ */ new Set(), V.set(r.target, s), r.target.addEventListener("transitioncancel", n, {
198
+ let i = F.get(o.target);
199
+ i || (i = /* @__PURE__ */ new Set(), F.set(o.target, i), o.target.addEventListener("transitioncancel", r, {
199
200
  once: !0
200
- })), s.add(r.propertyName);
201
- }, n = (r) => {
202
- if (!e(r) || !r.target)
201
+ })), i.add(o.propertyName);
202
+ }, r = (o) => {
203
+ if (!e(o) || !o.target)
203
204
  return;
204
- let s = V.get(r.target);
205
- if (!!s && (s.delete(r.propertyName), s.size === 0 && (r.target.removeEventListener("transitioncancel", n), V.delete(r.target)), V.size === 0)) {
206
- for (let l of ie)
207
- l();
208
- ie.clear();
205
+ let i = F.get(o.target);
206
+ if (!!i && (i.delete(o.propertyName), i.size === 0 && (o.target.removeEventListener("transitioncancel", r), F.delete(o.target)), F.size === 0)) {
207
+ for (let d of ce)
208
+ d();
209
+ ce.clear();
209
210
  }
210
211
  };
211
- document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
212
+ document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", r);
212
213
  }
213
214
  typeof document < "u" && (document.readyState !== "loading" ? he() : document.addEventListener("DOMContentLoaded", he));
214
- function Ie(e) {
215
+ function mt(e) {
215
216
  requestAnimationFrame(() => {
216
- V.size === 0 ? e() : ie.add(e);
217
+ F.size === 0 ? e() : ce.add(e);
217
218
  });
218
219
  }
219
- function mt() {
220
- let e = X(/* @__PURE__ */ new Map()), t = _((s, l, u, m) => {
221
- let p = m != null && m.once ? (...h) => {
222
- e.current.delete(u), u(...h);
220
+ function bt() {
221
+ let e = re(/* @__PURE__ */ new Map()), t = Q((i, d, u, p) => {
222
+ let b = p != null && p.once ? (...E) => {
223
+ e.current.delete(u), u(...E);
223
224
  } : u;
224
225
  e.current.set(u, {
225
- type: l,
226
- eventTarget: s,
227
- fn: p,
228
- options: m
229
- }), s.addEventListener(l, u, m);
230
- }, []), n = _((s, l, u, m) => {
231
- var p;
232
- let h = ((p = e.current.get(u)) === null || p === void 0 ? void 0 : p.fn) || u;
233
- s.removeEventListener(l, h, m), e.current.delete(u);
234
- }, []), r = _(() => {
235
- e.current.forEach((s, l) => {
236
- n(s.eventTarget, s.type, l, s.options);
226
+ type: d,
227
+ eventTarget: i,
228
+ fn: b,
229
+ options: p
230
+ }), i.addEventListener(d, u, p);
231
+ }, []), r = Q((i, d, u, p) => {
232
+ var b;
233
+ let E = ((b = e.current.get(u)) === null || b === void 0 ? void 0 : b.fn) || u;
234
+ i.removeEventListener(d, E, p), e.current.delete(u);
235
+ }, []), o = Q(() => {
236
+ e.current.forEach((i, d) => {
237
+ r(i.eventTarget, i.type, d, i.options);
237
238
  });
238
239
  }, [
239
- n
240
- ]);
241
- return pe(() => r, [
242
240
  r
241
+ ]);
242
+ return ee(() => o, [
243
+ o
243
244
  ]), {
244
245
  addGlobalListener: t,
245
- removeGlobalListener: n,
246
- removeAllGlobalListeners: r
246
+ removeGlobalListener: r,
247
+ removeAllGlobalListeners: o
247
248
  };
248
249
  }
249
- function Me(e, t) {
250
- fe(() => {
250
+ function gt(e, t) {
251
+ Ce(() => {
251
252
  if (e && e.ref && t)
252
253
  return e.ref.current = t.current, () => {
253
254
  e.ref && (e.ref.current = null);
254
255
  };
255
256
  });
256
257
  }
257
- function le(e) {
258
- return e.mozInputSource === 0 && e.isTrusted ? !0 : _e() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
258
+ function de(e) {
259
+ return e.mozInputSource === 0 && e.isTrusted ? !0 : Ae() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
259
260
  }
260
- function bt(e) {
261
- return !_e() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
261
+ function vt(e) {
262
+ return !Ae() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
262
263
  }
263
- function gt(e, t) {
264
+ function yt(e, t) {
264
265
  return t.get ? t.get.call(e) : t.value;
265
266
  }
266
- function Ae(e, t, n) {
267
+ function Me(e, t, r) {
267
268
  if (!t.has(e))
268
- throw new TypeError("attempted to " + n + " private field on non-instance");
269
+ throw new TypeError("attempted to " + r + " private field on non-instance");
269
270
  return t.get(e);
270
271
  }
271
- function vt(e, t) {
272
- var n = Ae(e, t, "get");
273
- return gt(e, n);
272
+ function ht(e, t) {
273
+ var r = Me(e, t, "get");
274
+ return yt(e, r);
274
275
  }
275
- function yt(e, t) {
276
+ function Et(e, t) {
276
277
  if (t.has(e))
277
278
  throw new TypeError("Cannot initialize the same private elements twice on an object");
278
279
  }
279
- function ht(e, t, n) {
280
- yt(e, t), t.set(e, n);
280
+ function $t(e, t, r) {
281
+ Et(e, t), t.set(e, r);
281
282
  }
282
- function $t(e, t, n) {
283
+ function kt(e, t, r) {
283
284
  if (t.set)
284
- t.set.call(e, n);
285
+ t.set.call(e, r);
285
286
  else {
286
287
  if (!t.writable)
287
288
  throw new TypeError("attempted to set read only private field");
288
- t.value = n;
289
+ t.value = r;
289
290
  }
290
291
  }
291
- function $e(e, t, n) {
292
- var r = Ae(e, t, "set");
293
- return $t(e, r, n), n;
292
+ function Ee(e, t, r) {
293
+ var o = Me(e, t, "set");
294
+ return kt(e, o, r), r;
294
295
  }
295
- let G = "default", ue = "", te = /* @__PURE__ */ new WeakMap();
296
- function ke(e) {
297
- if (Ke()) {
298
- if (G === "default") {
299
- const t = x(e);
300
- ue = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
296
+ let U = "default", pe = "", Z = /* @__PURE__ */ new WeakMap();
297
+ function $e(e) {
298
+ if (Ie()) {
299
+ if (U === "default") {
300
+ const t = D(e);
301
+ pe = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
301
302
  }
302
- G = "disabled";
303
+ U = "disabled";
303
304
  } else
304
- (e instanceof HTMLElement || e instanceof SVGElement) && (te.set(e, e.style.userSelect), e.style.userSelect = "none");
305
+ (e instanceof HTMLElement || e instanceof SVGElement) && (Z.set(e, e.style.userSelect), e.style.userSelect = "none");
305
306
  }
306
- function Q(e) {
307
- if (Ke()) {
308
- if (G !== "disabled")
307
+ function X(e) {
308
+ if (Ie()) {
309
+ if (U !== "disabled")
309
310
  return;
310
- G = "restoring", setTimeout(() => {
311
- Ie(() => {
312
- if (G === "restoring") {
313
- const t = x(e);
314
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = ue || ""), ue = "", G = "default";
311
+ U = "restoring", setTimeout(() => {
312
+ mt(() => {
313
+ if (U === "restoring") {
314
+ const t = D(e);
315
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = pe || ""), pe = "", U = "default";
315
316
  }
316
317
  });
317
318
  }, 300);
318
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && te.has(e)) {
319
- let t = te.get(e);
320
- e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), te.delete(e);
319
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Z.has(e)) {
320
+ let t = Z.get(e);
321
+ e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Z.delete(e);
321
322
  }
322
323
  }
323
- const Fe = de.createContext({
324
+ const Fe = Ne.createContext({
324
325
  register: () => {
325
326
  }
326
327
  });
327
328
  Fe.displayName = "PressResponderContext";
328
- function kt(e) {
329
- let t = De(Fe);
329
+ function wt(e) {
330
+ let t = je(Fe);
330
331
  if (t) {
331
- let { register: n, ...r } = t;
332
- e = H(r, e), n();
332
+ let { register: r, ...o } = t;
333
+ e = W(o, e), r();
333
334
  }
334
- return Me(t, e.ref), e;
335
+ return gt(t, e.ref), e;
335
336
  }
336
- var Z = /* @__PURE__ */ new WeakMap();
337
- class ee {
337
+ var q = /* @__PURE__ */ new WeakMap();
338
+ class J {
338
339
  continuePropagation() {
339
- $e(this, Z, !1);
340
+ Ee(this, q, !1);
340
341
  }
341
342
  get shouldStopPropagation() {
342
- return vt(this, Z);
343
+ return ht(this, q);
343
344
  }
344
- constructor(t, n, r) {
345
- ht(this, Z, {
345
+ constructor(t, r, o) {
346
+ $t(this, q, {
346
347
  writable: !0,
347
348
  value: void 0
348
- }), $e(this, Z, !0), this.type = t, this.pointerType = n, this.target = r.currentTarget, this.shiftKey = r.shiftKey, this.metaKey = r.metaKey, this.ctrlKey = r.ctrlKey, this.altKey = r.altKey;
349
+ }), Ee(this, q, !0), this.type = t, this.pointerType = r, this.target = o.currentTarget, this.shiftKey = o.shiftKey, this.metaKey = o.metaKey, this.ctrlKey = o.ctrlKey, this.altKey = o.altKey;
349
350
  }
350
351
  }
351
- const we = Symbol("linkClicked");
352
- function wt(e) {
352
+ const ke = Symbol("linkClicked");
353
+ function Tt(e) {
353
354
  let {
354
355
  onPress: t,
355
- onPressChange: n,
356
- onPressStart: r,
357
- onPressEnd: s,
358
- onPressUp: l,
356
+ onPressChange: r,
357
+ onPressStart: o,
358
+ onPressEnd: i,
359
+ onPressUp: d,
359
360
  isDisabled: u,
360
- isPressed: m,
361
- preventFocusOnPress: p,
362
- shouldCancelOnPointerExit: h,
363
- allowTextSelectionOnPress: $,
364
- ref: M,
365
- ...O
366
- } = kt(e), [C, A] = Ye(!1), E = X({
361
+ isPressed: p,
362
+ preventFocusOnPress: b,
363
+ shouldCancelOnPointerExit: E,
364
+ allowTextSelectionOnPress: v,
365
+ ref: C,
366
+ ...x
367
+ } = wt(e), [m, P] = Oe(!1), k = re({
367
368
  isPressed: !1,
368
369
  ignoreEmulatedMouseEvents: !1,
369
370
  ignoreClickAfterPress: !1,
@@ -373,232 +374,232 @@ function wt(e) {
373
374
  target: null,
374
375
  isOverTarget: !1,
375
376
  pointerType: null
376
- }), { addGlobalListener: k, removeAllGlobalListeners: N } = mt(), w = U((o, f) => {
377
- let S = E.current;
378
- if (u || S.didFirePressStart)
377
+ }), { addGlobalListener: T, removeAllGlobalListeners: N } = bt(), B = R((n, f) => {
378
+ let w = k.current;
379
+ if (u || w.didFirePressStart)
379
380
  return !1;
380
- let c = !0;
381
- if (S.isTriggeringEvent = !0, r) {
382
- let b = new ee("pressstart", f, o);
383
- r(b), c = b.shouldStopPropagation;
381
+ let l = !0;
382
+ if (w.isTriggeringEvent = !0, o) {
383
+ let g = new J("pressstart", f, n);
384
+ o(g), l = g.shouldStopPropagation;
384
385
  }
385
- return n && n(!0), S.isTriggeringEvent = !1, S.didFirePressStart = !0, A(!0), c;
386
- }), v = U((o, f, S = !0) => {
387
- let c = E.current;
388
- if (!c.didFirePressStart)
386
+ return r && r(!0), w.isTriggeringEvent = !1, w.didFirePressStart = !0, P(!0), l;
387
+ }), $ = R((n, f, w = !0) => {
388
+ let l = k.current;
389
+ if (!l.didFirePressStart)
389
390
  return !1;
390
- c.ignoreClickAfterPress = !0, c.didFirePressStart = !1, c.isTriggeringEvent = !0;
391
- let b = !0;
392
- if (s) {
393
- let a = new ee("pressend", f, o);
394
- s(a), b = a.shouldStopPropagation;
391
+ l.ignoreClickAfterPress = !0, l.didFirePressStart = !1, l.isTriggeringEvent = !0;
392
+ let g = !0;
393
+ if (i) {
394
+ let s = new J("pressend", f, n);
395
+ i(s), g = s.shouldStopPropagation;
395
396
  }
396
- if (n && n(!1), A(!1), t && S && !u) {
397
- let a = new ee("press", f, o);
398
- t(a), b && (b = a.shouldStopPropagation);
397
+ if (r && r(!1), P(!1), t && w && !u) {
398
+ let s = new J("press", f, n);
399
+ t(s), g && (g = s.shouldStopPropagation);
399
400
  }
400
- return c.isTriggeringEvent = !1, b;
401
- }), T = U((o, f) => {
402
- let S = E.current;
401
+ return l.isTriggeringEvent = !1, g;
402
+ }), L = R((n, f) => {
403
+ let w = k.current;
403
404
  if (u)
404
405
  return !1;
405
- if (l) {
406
- S.isTriggeringEvent = !0;
407
- let c = new ee("pressup", f, o);
408
- return l(c), S.isTriggeringEvent = !1, c.shouldStopPropagation;
406
+ if (d) {
407
+ w.isTriggeringEvent = !0;
408
+ let l = new J("pressup", f, n);
409
+ return d(l), w.isTriggeringEvent = !1, l.shouldStopPropagation;
409
410
  }
410
411
  return !0;
411
- }), B = U((o) => {
412
- let f = E.current;
413
- f.isPressed && f.target && (f.isOverTarget && f.pointerType != null && v(D(f.target, o), f.pointerType, !1), f.isPressed = !1, f.isOverTarget = !1, f.activePointerId = null, f.pointerType = null, N(), $ || Q(f.target));
414
- }), L = U((o) => {
415
- h && B(o);
416
- }), je = ze(() => {
417
- let o = E.current, f = {
418
- onKeyDown(c) {
419
- if (se(c.nativeEvent, c.currentTarget) && c.currentTarget.contains(c.target)) {
420
- var b;
421
- Te(c.target, c.key) && c.preventDefault();
422
- let a = !0;
423
- if (!o.isPressed && !c.repeat) {
424
- o.target = c.currentTarget, o.isPressed = !0, a = w(c, "keyboard");
425
- let i = c.currentTarget, y = (F) => {
426
- se(F, i) && !F.repeat && i.contains(F.target) && o.target && T(D(o.target, F), "keyboard");
412
+ }), O = R((n) => {
413
+ let f = k.current;
414
+ f.isPressed && f.target && (f.isOverTarget && f.pointerType != null && $(_(f.target, n), f.pointerType, !1), f.isPressed = !1, f.isOverTarget = !1, f.activePointerId = null, f.pointerType = null, N(), v || X(f.target));
415
+ }), I = R((n) => {
416
+ E && O(n);
417
+ }), ie = De(() => {
418
+ let n = k.current, f = {
419
+ onKeyDown(l) {
420
+ if (ae(l.nativeEvent, l.currentTarget) && l.currentTarget.contains(l.target)) {
421
+ var g;
422
+ Te(l.target, l.key) && l.preventDefault();
423
+ let s = !0;
424
+ if (!n.isPressed && !l.repeat) {
425
+ n.target = l.currentTarget, n.isPressed = !0, s = B(l, "keyboard");
426
+ let a = l.currentTarget, h = (A) => {
427
+ ae(A, a) && !A.repeat && a.contains(A.target) && n.target && L(_(n.target, A), "keyboard");
427
428
  };
428
- k(x(c.currentTarget), "keyup", Ce(y, S), !0);
429
+ T(D(l.currentTarget), "keyup", _e(h, w), !0);
429
430
  }
430
- a && c.stopPropagation(), c.metaKey && Y() && ((b = o.metaKeyEvents) === null || b === void 0 || b.set(c.key, c.nativeEvent));
431
+ s && l.stopPropagation(), l.metaKey && j() && ((g = n.metaKeyEvents) === null || g === void 0 || g.set(l.key, l.nativeEvent));
431
432
  } else
432
- c.key === "Meta" && (o.metaKeyEvents = /* @__PURE__ */ new Map());
433
+ l.key === "Meta" && (n.metaKeyEvents = /* @__PURE__ */ new Map());
433
434
  },
434
- onClick(c) {
435
- if (!(c && !c.currentTarget.contains(c.target)) && c && c.button === 0 && !o.isTriggeringEvent && !z.isOpening) {
436
- let b = !0;
437
- if (u && c.preventDefault(), !o.ignoreClickAfterPress && !o.ignoreEmulatedMouseEvents && !o.isPressed && (o.pointerType === "virtual" || le(c.nativeEvent))) {
438
- !u && !p && K(c.currentTarget);
439
- let a = w(c, "virtual"), i = T(c, "virtual"), y = v(c, "virtual");
440
- b = a && i && y;
435
+ onClick(l) {
436
+ if (!(l && !l.currentTarget.contains(l.target)) && l && l.button === 0 && !n.isTriggeringEvent && !Y.isOpening) {
437
+ let g = !0;
438
+ if (u && l.preventDefault(), !n.ignoreClickAfterPress && !n.ignoreEmulatedMouseEvents && !n.isPressed && (n.pointerType === "virtual" || de(l.nativeEvent))) {
439
+ !u && !b && G(l.currentTarget);
440
+ let s = B(l, "virtual"), a = L(l, "virtual"), h = $(l, "virtual");
441
+ g = s && a && h;
441
442
  }
442
- o.ignoreEmulatedMouseEvents = !1, o.ignoreClickAfterPress = !1, b && c.stopPropagation();
443
+ n.ignoreEmulatedMouseEvents = !1, n.ignoreClickAfterPress = !1, g && l.stopPropagation();
443
444
  }
444
445
  }
445
- }, S = (c) => {
446
- var b;
447
- if (o.isPressed && o.target && se(c, o.target)) {
446
+ }, w = (l) => {
447
+ var g;
448
+ if (n.isPressed && n.target && ae(l, n.target)) {
449
+ var s;
450
+ Te(l.target, l.key) && l.preventDefault();
451
+ let h = l.target;
452
+ $(_(n.target, l), "keyboard", n.target.contains(h)), N(), l.key !== "Enter" && ge(n.target) && n.target.contains(h) && !l[ke] && (l[ke] = !0, Y(n.target, l, !1)), n.isPressed = !1, (s = n.metaKeyEvents) === null || s === void 0 || s.delete(l.key);
453
+ } else if (l.key === "Meta" && ((g = n.metaKeyEvents) === null || g === void 0 ? void 0 : g.size)) {
448
454
  var a;
449
- Te(c.target, c.key) && c.preventDefault();
450
- let y = c.target;
451
- v(D(o.target, c), "keyboard", o.target.contains(y)), N(), c.key !== "Enter" && be(o.target) && o.target.contains(y) && !c[we] && (c[we] = !0, z(o.target, c, !1)), o.isPressed = !1, (a = o.metaKeyEvents) === null || a === void 0 || a.delete(c.key);
452
- } else if (c.key === "Meta" && ((b = o.metaKeyEvents) === null || b === void 0 ? void 0 : b.size)) {
453
- var i;
454
- let y = o.metaKeyEvents;
455
- o.metaKeyEvents = void 0;
456
- for (let F of y.values())
457
- (i = o.target) === null || i === void 0 || i.dispatchEvent(new KeyboardEvent("keyup", F));
455
+ let h = n.metaKeyEvents;
456
+ n.metaKeyEvents = void 0;
457
+ for (let A of h.values())
458
+ (a = n.target) === null || a === void 0 || a.dispatchEvent(new KeyboardEvent("keyup", A));
458
459
  }
459
460
  };
460
461
  if (typeof PointerEvent < "u") {
461
- f.onPointerDown = (i) => {
462
- if (i.button !== 0 || !i.currentTarget.contains(i.target))
462
+ f.onPointerDown = (a) => {
463
+ if (a.button !== 0 || !a.currentTarget.contains(a.target))
463
464
  return;
464
- if (bt(i.nativeEvent)) {
465
- o.pointerType = "virtual";
465
+ if (vt(a.nativeEvent)) {
466
+ n.pointerType = "virtual";
466
467
  return;
467
468
  }
468
- ae(i.currentTarget) && i.preventDefault(), o.pointerType = i.pointerType;
469
- let y = !0;
470
- o.isPressed || (o.isPressed = !0, o.isOverTarget = !0, o.activePointerId = i.pointerId, o.target = i.currentTarget, !u && !p && K(i.currentTarget), $ || ke(o.target), y = w(i, o.pointerType), k(x(i.currentTarget), "pointermove", c, !1), k(x(i.currentTarget), "pointerup", b, !1), k(x(i.currentTarget), "pointercancel", a, !1)), y && i.stopPropagation();
471
- }, f.onMouseDown = (i) => {
472
- !i.currentTarget.contains(i.target) || i.button === 0 && (ae(i.currentTarget) && i.preventDefault(), i.stopPropagation());
473
- }, f.onPointerUp = (i) => {
474
- !i.currentTarget.contains(i.target) || o.pointerType === "virtual" || i.button === 0 && R(i, i.currentTarget) && T(i, o.pointerType || i.pointerType);
469
+ le(a.currentTarget) && a.preventDefault(), n.pointerType = a.pointerType;
470
+ let h = !0;
471
+ n.isPressed || (n.isPressed = !0, n.isOverTarget = !0, n.activePointerId = a.pointerId, n.target = a.currentTarget, !u && !b && G(a.currentTarget), v || $e(n.target), h = B(a, n.pointerType), T(D(a.currentTarget), "pointermove", l, !1), T(D(a.currentTarget), "pointerup", g, !1), T(D(a.currentTarget), "pointercancel", s, !1)), h && a.stopPropagation();
472
+ }, f.onMouseDown = (a) => {
473
+ !a.currentTarget.contains(a.target) || a.button === 0 && (le(a.currentTarget) && a.preventDefault(), a.stopPropagation());
474
+ }, f.onPointerUp = (a) => {
475
+ !a.currentTarget.contains(a.target) || n.pointerType === "virtual" || a.button === 0 && M(a, a.currentTarget) && L(a, n.pointerType || a.pointerType);
475
476
  };
476
- let c = (i) => {
477
- i.pointerId === o.activePointerId && (o.target && R(i, o.target) ? !o.isOverTarget && o.pointerType != null && (o.isOverTarget = !0, w(D(o.target, i), o.pointerType)) : o.target && o.isOverTarget && o.pointerType != null && (o.isOverTarget = !1, v(D(o.target, i), o.pointerType, !1), L(i)));
478
- }, b = (i) => {
479
- i.pointerId === o.activePointerId && o.isPressed && i.button === 0 && o.target && (R(i, o.target) && o.pointerType != null ? v(D(o.target, i), o.pointerType) : o.isOverTarget && o.pointerType != null && v(D(o.target, i), o.pointerType, !1), o.isPressed = !1, o.isOverTarget = !1, o.activePointerId = null, o.pointerType = null, N(), $ || Q(o.target));
480
- }, a = (i) => {
481
- B(i);
477
+ let l = (a) => {
478
+ a.pointerId === n.activePointerId && (n.target && M(a, n.target) ? !n.isOverTarget && n.pointerType != null && (n.isOverTarget = !0, B(_(n.target, a), n.pointerType)) : n.target && n.isOverTarget && n.pointerType != null && (n.isOverTarget = !1, $(_(n.target, a), n.pointerType, !1), I(a)));
479
+ }, g = (a) => {
480
+ a.pointerId === n.activePointerId && n.isPressed && a.button === 0 && n.target && (M(a, n.target) && n.pointerType != null ? $(_(n.target, a), n.pointerType) : n.isOverTarget && n.pointerType != null && $(_(n.target, a), n.pointerType, !1), n.isPressed = !1, n.isOverTarget = !1, n.activePointerId = null, n.pointerType = null, N(), v || X(n.target));
481
+ }, s = (a) => {
482
+ O(a);
482
483
  };
483
- f.onDragStart = (i) => {
484
- !i.currentTarget.contains(i.target) || B(i);
484
+ f.onDragStart = (a) => {
485
+ !a.currentTarget.contains(a.target) || O(a);
485
486
  };
486
487
  } else {
487
- f.onMouseDown = (a) => {
488
- if (a.button !== 0 || !a.currentTarget.contains(a.target))
488
+ f.onMouseDown = (s) => {
489
+ if (s.button !== 0 || !s.currentTarget.contains(s.target))
489
490
  return;
490
- if (ae(a.currentTarget) && a.preventDefault(), o.ignoreEmulatedMouseEvents) {
491
- a.stopPropagation();
491
+ if (le(s.currentTarget) && s.preventDefault(), n.ignoreEmulatedMouseEvents) {
492
+ s.stopPropagation();
492
493
  return;
493
494
  }
494
- o.isPressed = !0, o.isOverTarget = !0, o.target = a.currentTarget, o.pointerType = le(a.nativeEvent) ? "virtual" : "mouse", !u && !p && K(a.currentTarget), w(a, o.pointerType) && a.stopPropagation(), k(x(a.currentTarget), "mouseup", c, !1);
495
- }, f.onMouseEnter = (a) => {
496
- if (!a.currentTarget.contains(a.target))
495
+ n.isPressed = !0, n.isOverTarget = !0, n.target = s.currentTarget, n.pointerType = de(s.nativeEvent) ? "virtual" : "mouse", !u && !b && G(s.currentTarget), B(s, n.pointerType) && s.stopPropagation(), T(D(s.currentTarget), "mouseup", l, !1);
496
+ }, f.onMouseEnter = (s) => {
497
+ if (!s.currentTarget.contains(s.target))
497
498
  return;
498
- let i = !0;
499
- o.isPressed && !o.ignoreEmulatedMouseEvents && o.pointerType != null && (o.isOverTarget = !0, i = w(a, o.pointerType)), i && a.stopPropagation();
500
- }, f.onMouseLeave = (a) => {
501
- if (!a.currentTarget.contains(a.target))
499
+ let a = !0;
500
+ n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !0, a = B(s, n.pointerType)), a && s.stopPropagation();
501
+ }, f.onMouseLeave = (s) => {
502
+ if (!s.currentTarget.contains(s.target))
502
503
  return;
503
- let i = !0;
504
- o.isPressed && !o.ignoreEmulatedMouseEvents && o.pointerType != null && (o.isOverTarget = !1, i = v(a, o.pointerType, !1), L(a)), i && a.stopPropagation();
505
- }, f.onMouseUp = (a) => {
506
- !a.currentTarget.contains(a.target) || !o.ignoreEmulatedMouseEvents && a.button === 0 && T(a, o.pointerType || "mouse");
504
+ let a = !0;
505
+ n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !1, a = $(s, n.pointerType, !1), I(s)), a && s.stopPropagation();
506
+ }, f.onMouseUp = (s) => {
507
+ !s.currentTarget.contains(s.target) || !n.ignoreEmulatedMouseEvents && s.button === 0 && L(s, n.pointerType || "mouse");
507
508
  };
508
- let c = (a) => {
509
- if (a.button === 0) {
510
- if (o.isPressed = !1, N(), o.ignoreEmulatedMouseEvents) {
511
- o.ignoreEmulatedMouseEvents = !1;
509
+ let l = (s) => {
510
+ if (s.button === 0) {
511
+ if (n.isPressed = !1, N(), n.ignoreEmulatedMouseEvents) {
512
+ n.ignoreEmulatedMouseEvents = !1;
512
513
  return;
513
514
  }
514
- o.target && R(a, o.target) && o.pointerType != null ? v(D(o.target, a), o.pointerType) : o.target && o.isOverTarget && o.pointerType != null && v(D(o.target, a), o.pointerType, !1), o.isOverTarget = !1;
515
+ n.target && M(s, n.target) && n.pointerType != null ? $(_(n.target, s), n.pointerType) : n.target && n.isOverTarget && n.pointerType != null && $(_(n.target, s), n.pointerType, !1), n.isOverTarget = !1;
515
516
  }
516
517
  };
517
- f.onTouchStart = (a) => {
518
- if (!a.currentTarget.contains(a.target))
518
+ f.onTouchStart = (s) => {
519
+ if (!s.currentTarget.contains(s.target))
519
520
  return;
520
- let i = Et(a.nativeEvent);
521
- if (!i)
521
+ let a = Bt(s.nativeEvent);
522
+ if (!a)
522
523
  return;
523
- o.activePointerId = i.identifier, o.ignoreEmulatedMouseEvents = !0, o.isOverTarget = !0, o.isPressed = !0, o.target = a.currentTarget, o.pointerType = "touch", !u && !p && K(a.currentTarget), $ || ke(o.target), w(a, o.pointerType) && a.stopPropagation(), k(W(a.currentTarget), "scroll", b, !0);
524
- }, f.onTouchMove = (a) => {
525
- if (!a.currentTarget.contains(a.target))
524
+ n.activePointerId = a.identifier, n.ignoreEmulatedMouseEvents = !0, n.isOverTarget = !0, n.isPressed = !0, n.target = s.currentTarget, n.pointerType = "touch", !u && !b && G(s.currentTarget), v || $e(n.target), B(s, n.pointerType) && s.stopPropagation(), T(H(s.currentTarget), "scroll", g, !0);
525
+ }, f.onTouchMove = (s) => {
526
+ if (!s.currentTarget.contains(s.target))
526
527
  return;
527
- if (!o.isPressed) {
528
- a.stopPropagation();
528
+ if (!n.isPressed) {
529
+ s.stopPropagation();
529
530
  return;
530
531
  }
531
- let i = Ee(a.nativeEvent, o.activePointerId), y = !0;
532
- i && R(i, a.currentTarget) ? !o.isOverTarget && o.pointerType != null && (o.isOverTarget = !0, y = w(a, o.pointerType)) : o.isOverTarget && o.pointerType != null && (o.isOverTarget = !1, y = v(a, o.pointerType, !1), L(a)), y && a.stopPropagation();
533
- }, f.onTouchEnd = (a) => {
534
- if (!a.currentTarget.contains(a.target))
532
+ let a = we(s.nativeEvent, n.activePointerId), h = !0;
533
+ a && M(a, s.currentTarget) ? !n.isOverTarget && n.pointerType != null && (n.isOverTarget = !0, h = B(s, n.pointerType)) : n.isOverTarget && n.pointerType != null && (n.isOverTarget = !1, h = $(s, n.pointerType, !1), I(s)), h && s.stopPropagation();
534
+ }, f.onTouchEnd = (s) => {
535
+ if (!s.currentTarget.contains(s.target))
535
536
  return;
536
- if (!o.isPressed) {
537
- a.stopPropagation();
537
+ if (!n.isPressed) {
538
+ s.stopPropagation();
538
539
  return;
539
540
  }
540
- let i = Ee(a.nativeEvent, o.activePointerId), y = !0;
541
- i && R(i, a.currentTarget) && o.pointerType != null ? (T(a, o.pointerType), y = v(a, o.pointerType)) : o.isOverTarget && o.pointerType != null && (y = v(a, o.pointerType, !1)), y && a.stopPropagation(), o.isPressed = !1, o.activePointerId = null, o.isOverTarget = !1, o.ignoreEmulatedMouseEvents = !0, o.target && !$ && Q(o.target), N();
542
- }, f.onTouchCancel = (a) => {
543
- !a.currentTarget.contains(a.target) || (a.stopPropagation(), o.isPressed && B(a));
541
+ let a = we(s.nativeEvent, n.activePointerId), h = !0;
542
+ a && M(a, s.currentTarget) && n.pointerType != null ? (L(s, n.pointerType), h = $(s, n.pointerType)) : n.isOverTarget && n.pointerType != null && (h = $(s, n.pointerType, !1)), h && s.stopPropagation(), n.isPressed = !1, n.activePointerId = null, n.isOverTarget = !1, n.ignoreEmulatedMouseEvents = !0, n.target && !v && X(n.target), N();
543
+ }, f.onTouchCancel = (s) => {
544
+ !s.currentTarget.contains(s.target) || (s.stopPropagation(), n.isPressed && O(s));
544
545
  };
545
- let b = (a) => {
546
- o.isPressed && a.target.contains(o.target) && B({
547
- currentTarget: o.target,
546
+ let g = (s) => {
547
+ n.isPressed && s.target.contains(n.target) && O({
548
+ currentTarget: n.target,
548
549
  shiftKey: !1,
549
550
  ctrlKey: !1,
550
551
  metaKey: !1,
551
552
  altKey: !1
552
553
  });
553
554
  };
554
- f.onDragStart = (a) => {
555
- !a.currentTarget.contains(a.target) || B(a);
555
+ f.onDragStart = (s) => {
556
+ !s.currentTarget.contains(s.target) || O(s);
556
557
  };
557
558
  }
558
559
  return f;
559
560
  }, [
560
- k,
561
+ T,
561
562
  u,
562
- p,
563
+ b,
563
564
  N,
565
+ v,
566
+ O,
567
+ I,
564
568
  $,
565
569
  B,
566
- L,
567
- v,
568
- w,
569
- T
570
+ L
570
571
  ]);
571
- return pe(() => () => {
572
- var o;
573
- $ || Q((o = E.current.target) !== null && o !== void 0 ? o : void 0);
572
+ return ee(() => () => {
573
+ var n;
574
+ v || X((n = k.current.target) !== null && n !== void 0 ? n : void 0);
574
575
  }, [
575
- $
576
+ v
576
577
  ]), {
577
- isPressed: m || C,
578
- pressProps: H(O, je)
578
+ isPressed: p || m,
579
+ pressProps: W(x, ie)
579
580
  };
580
581
  }
581
- function be(e) {
582
+ function ge(e) {
582
583
  return e.tagName === "A" && e.hasAttribute("href");
583
584
  }
584
- function se(e, t) {
585
- const { key: n, code: r } = e, s = t, l = s.getAttribute("role");
586
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(s instanceof W(s).HTMLInputElement && !Re(s, n) || s instanceof W(s).HTMLTextAreaElement || s.isContentEditable) && !((l === "link" || !l && be(s)) && n !== "Enter");
585
+ function ae(e, t) {
586
+ const { key: r, code: o } = e, i = t, d = i.getAttribute("role");
587
+ return (r === "Enter" || r === " " || r === "Spacebar" || o === "Space") && !(i instanceof H(i).HTMLInputElement && !Ue(i, r) || i instanceof H(i).HTMLTextAreaElement || i.isContentEditable) && !((d === "link" || !d && ge(i)) && r !== "Enter");
587
588
  }
588
- function Et(e) {
589
+ function Bt(e) {
589
590
  const { targetTouches: t } = e;
590
591
  return t.length > 0 ? t[0] : null;
591
592
  }
592
- function Ee(e, t) {
593
- const n = e.changedTouches;
594
- for (let r = 0; r < n.length; r++) {
595
- const s = n[r];
596
- if (s.identifier === t)
597
- return s;
593
+ function we(e, t) {
594
+ const r = e.changedTouches;
595
+ for (let o = 0; o < r.length; o++) {
596
+ const i = r[o];
597
+ if (i.identifier === t)
598
+ return i;
598
599
  }
599
600
  return null;
600
601
  }
601
- function D(e, t) {
602
+ function _(e, t) {
602
603
  return {
603
604
  currentTarget: e,
604
605
  shiftKey: t.shiftKey,
@@ -607,29 +608,29 @@ function D(e, t) {
607
608
  altKey: t.altKey
608
609
  };
609
610
  }
610
- function Tt(e) {
611
- let t = 0, n = 0;
612
- return e.width !== void 0 ? t = e.width / 2 : e.radiusX !== void 0 && (t = e.radiusX), e.height !== void 0 ? n = e.height / 2 : e.radiusY !== void 0 && (n = e.radiusY), {
613
- top: e.clientY - n,
611
+ function Pt(e) {
612
+ let t = 0, r = 0;
613
+ return e.width !== void 0 ? t = e.width / 2 : e.radiusX !== void 0 && (t = e.radiusX), e.height !== void 0 ? r = e.height / 2 : e.radiusY !== void 0 && (r = e.radiusY), {
614
+ top: e.clientY - r,
614
615
  right: e.clientX + t,
615
- bottom: e.clientY + n,
616
+ bottom: e.clientY + r,
616
617
  left: e.clientX - t
617
618
  };
618
619
  }
619
- function Bt(e, t) {
620
+ function xt(e, t) {
620
621
  return !(e.left > t.right || t.left > e.right || e.top > t.bottom || t.top > e.bottom);
621
622
  }
622
- function R(e, t) {
623
- let n = t.getBoundingClientRect(), r = Tt(e);
624
- return Bt(n, r);
623
+ function M(e, t) {
624
+ let r = t.getBoundingClientRect(), o = Pt(e);
625
+ return xt(r, o);
625
626
  }
626
- function ae(e) {
627
+ function le(e) {
627
628
  return !(e instanceof HTMLElement) || !e.hasAttribute("draggable");
628
629
  }
629
630
  function Te(e, t) {
630
- return e instanceof HTMLInputElement ? !Re(e, t) : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !be(e);
631
+ return e instanceof HTMLInputElement ? !Ue(e, t) : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ge(e);
631
632
  }
632
- const Pt = /* @__PURE__ */ new Set([
633
+ const St = /* @__PURE__ */ new Set([
633
634
  "checkbox",
634
635
  "radio",
635
636
  "range",
@@ -640,450 +641,308 @@ const Pt = /* @__PURE__ */ new Set([
640
641
  "submit",
641
642
  "reset"
642
643
  ]);
643
- function Re(e, t) {
644
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Pt.has(e.type);
644
+ function Ue(e, t) {
645
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : St.has(e.type);
645
646
  }
646
- class xt {
647
- isDefaultPrevented() {
648
- return this.nativeEvent.defaultPrevented;
649
- }
650
- preventDefault() {
651
- this.defaultPrevented = !0, this.nativeEvent.preventDefault();
652
- }
653
- stopPropagation() {
654
- this.nativeEvent.stopPropagation(), this.isPropagationStopped = () => !0;
655
- }
656
- isPropagationStopped() {
657
- return !1;
658
- }
659
- persist() {
660
- }
661
- constructor(t, n) {
662
- this.nativeEvent = n, this.target = n.target, this.currentTarget = n.currentTarget, this.relatedTarget = n.relatedTarget, this.bubbles = n.bubbles, this.cancelable = n.cancelable, this.defaultPrevented = n.defaultPrevented, this.eventPhase = n.eventPhase, this.isTrusted = n.isTrusted, this.timeStamp = n.timeStamp, this.type = t;
663
- }
664
- }
665
- function St(e) {
666
- let t = X({
667
- isFocused: !1,
668
- observer: null
669
- });
670
- fe(() => {
671
- const r = t.current;
672
- return () => {
673
- r.observer && (r.observer.disconnect(), r.observer = null);
674
- };
675
- }, []);
676
- let n = U((r) => {
677
- e == null || e(r);
678
- });
679
- return _((r) => {
680
- if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
681
- t.current.isFocused = !0;
682
- let s = r.target, l = (u) => {
683
- t.current.isFocused = !1, s.disabled && n(new xt("blur", u)), t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
684
- };
685
- s.addEventListener("focusout", l, {
686
- once: !0
687
- }), t.current.observer = new MutationObserver(() => {
688
- if (t.current.isFocused && s.disabled) {
689
- var u;
690
- (u = t.current.observer) === null || u === void 0 || u.disconnect();
691
- let m = s === document.activeElement ? null : document.activeElement;
692
- s.dispatchEvent(new FocusEvent("blur", {
693
- relatedTarget: m
694
- })), s.dispatchEvent(new FocusEvent("focusout", {
695
- bubbles: !0,
696
- relatedTarget: m
697
- }));
698
- }
699
- }), t.current.observer.observe(s, {
700
- attributes: !0,
701
- attributeFilter: [
702
- "disabled"
703
- ]
704
- });
705
- }
706
- }, [
707
- n
708
- ]);
709
- }
710
- function Nt(e) {
711
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: s } = e;
712
- const l = _((p) => {
713
- if (p.target === p.currentTarget)
714
- return r && r(p), s && s(!1), !0;
715
- }, [
716
- r,
717
- s
718
- ]), u = St(l), m = _((p) => {
719
- p.target === p.currentTarget && document.activeElement === p.target && (n && n(p), s && s(!0), u(p));
720
- }, [
721
- s,
722
- n,
723
- u
724
- ]);
725
- return {
726
- focusProps: {
727
- onFocus: !t && (n || s || r) ? m : void 0,
728
- onBlur: !t && (r || s) ? l : void 0
729
- }
730
- };
731
- }
732
- let q = null, Dt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), I = !1, ce = !1;
733
- function ge(e, t) {
734
- for (let n of Dt)
735
- n(e, t);
647
+ let Nt = /* @__PURE__ */ new Set(), V = /* @__PURE__ */ new Map(), K = !1, fe = !1;
648
+ function ve(e, t) {
649
+ for (let r of Nt)
650
+ r(e, t);
736
651
  }
737
652
  function Ot(e) {
738
- return !(e.metaKey || !Y() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
653
+ return !(e.metaKey || !j() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
739
654
  }
740
- function ne(e) {
741
- I = !0, Ot(e) && (q = "keyboard", ge("keyboard", e));
655
+ function te(e) {
656
+ K = !0, Ot(e) && ve("keyboard", e);
742
657
  }
743
- function P(e) {
744
- q = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (I = !0, ge("pointer", e));
658
+ function S(e) {
659
+ (e.type === "mousedown" || e.type === "pointerdown") && (K = !0, ve("pointer", e));
745
660
  }
746
- function Ue(e) {
747
- le(e) && (I = !0, q = "virtual");
661
+ function He(e) {
662
+ de(e) && (K = !0);
748
663
  }
749
- function Ve(e) {
750
- e.target === window || e.target === document || (!I && !ce && (q = "virtual", ge("virtual", e)), I = !1, ce = !1);
664
+ function Re(e) {
665
+ e.target === window || e.target === document || (!K && !fe && ve("virtual", e), K = !1, fe = !1);
751
666
  }
752
667
  function Ge() {
753
- I = !1, ce = !0;
668
+ K = !1, fe = !0;
754
669
  }
755
670
  function Be(e) {
756
- if (typeof window > "u" || j.get(W(e)))
671
+ if (typeof window > "u" || V.get(H(e)))
757
672
  return;
758
- const t = W(e), n = x(e);
759
- let r = t.HTMLElement.prototype.focus;
673
+ const t = H(e), r = D(e);
674
+ let o = t.HTMLElement.prototype.focus;
760
675
  t.HTMLElement.prototype.focus = function() {
761
- I = !0, r.apply(this, arguments);
762
- }, n.addEventListener("keydown", ne, !0), n.addEventListener("keyup", ne, !0), n.addEventListener("click", Ue, !0), t.addEventListener("focus", Ve, !0), t.addEventListener("blur", Ge, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", P, !0), n.addEventListener("pointermove", P, !0), n.addEventListener("pointerup", P, !0)) : (n.addEventListener("mousedown", P, !0), n.addEventListener("mousemove", P, !0), n.addEventListener("mouseup", P, !0)), t.addEventListener("beforeunload", () => {
763
- We(e);
676
+ K = !0, o.apply(this, arguments);
677
+ }, r.addEventListener("keydown", te, !0), r.addEventListener("keyup", te, !0), r.addEventListener("click", He, !0), t.addEventListener("focus", Re, !0), t.addEventListener("blur", Ge, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown", S, !0), r.addEventListener("pointermove", S, !0), r.addEventListener("pointerup", S, !0)) : (r.addEventListener("mousedown", S, !0), r.addEventListener("mousemove", S, !0), r.addEventListener("mouseup", S, !0)), t.addEventListener("beforeunload", () => {
678
+ Ve(e);
764
679
  }, {
765
680
  once: !0
766
- }), j.set(t, {
767
- focus: r
681
+ }), V.set(t, {
682
+ focus: o
768
683
  });
769
684
  }
770
- const We = (e, t) => {
771
- const n = W(e), r = x(e);
772
- t && r.removeEventListener("DOMContentLoaded", t), j.has(n) && (n.HTMLElement.prototype.focus = j.get(n).focus, r.removeEventListener("keydown", ne, !0), r.removeEventListener("keyup", ne, !0), r.removeEventListener("click", Ue, !0), n.removeEventListener("focus", Ve, !0), n.removeEventListener("blur", Ge, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", P, !0), r.removeEventListener("pointermove", P, !0), r.removeEventListener("pointerup", P, !0)) : (r.removeEventListener("mousedown", P, !0), r.removeEventListener("mousemove", P, !0), r.removeEventListener("mouseup", P, !0)), j.delete(n));
685
+ const Ve = (e, t) => {
686
+ const r = H(e), o = D(e);
687
+ t && o.removeEventListener("DOMContentLoaded", t), V.has(r) && (r.HTMLElement.prototype.focus = V.get(r).focus, o.removeEventListener("keydown", te, !0), o.removeEventListener("keyup", te, !0), o.removeEventListener("click", He, !0), r.removeEventListener("focus", Re, !0), r.removeEventListener("blur", Ge, !1), typeof PointerEvent < "u" ? (o.removeEventListener("pointerdown", S, !0), o.removeEventListener("pointermove", S, !0), o.removeEventListener("pointerup", S, !0)) : (o.removeEventListener("mousedown", S, !0), o.removeEventListener("mousemove", S, !0), o.removeEventListener("mouseup", S, !0)), V.delete(r));
773
688
  };
774
- function Ct(e) {
775
- const t = x(e);
776
- let n;
777
- return t.readyState !== "loading" ? Be(e) : (n = () => {
689
+ function Dt(e) {
690
+ const t = D(e);
691
+ let r;
692
+ return t.readyState !== "loading" ? Be(e) : (r = () => {
778
693
  Be(e);
779
- }, t.addEventListener("DOMContentLoaded", n)), () => We(e, n);
694
+ }, t.addEventListener("DOMContentLoaded", r)), () => Ve(e, r);
780
695
  }
781
- typeof document < "u" && Ct();
782
- function Lt() {
783
- return q;
696
+ typeof document < "u" && Dt();
697
+ let ne = !1, ue = 0;
698
+ function me() {
699
+ ne = !0, setTimeout(() => {
700
+ ne = !1;
701
+ }, 50);
784
702
  }
785
703
  function Pe(e) {
786
- if (!e)
787
- return;
788
- let t = !0;
789
- return (n) => {
790
- let r = {
791
- ...n,
792
- preventDefault() {
793
- n.preventDefault();
794
- },
795
- isDefaultPrevented() {
796
- return n.isDefaultPrevented();
797
- },
798
- stopPropagation() {
799
- console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
800
- },
801
- continuePropagation() {
802
- t = !1;
803
- }
804
- };
805
- e(r), t && n.stopPropagation();
806
- };
807
- }
808
- function Kt(e) {
809
- return {
810
- keyboardProps: e.isDisabled ? {} : {
811
- onKeyDown: Pe(e.onKeyDown),
812
- onKeyUp: Pe(e.onKeyUp)
813
- }
814
- };
815
- }
816
- function _t(e) {
817
- const t = x(e);
818
- if (Lt() === "virtual") {
819
- let n = t.activeElement;
820
- Ie(() => {
821
- t.activeElement === n && e.isConnected && K(e);
822
- });
823
- } else
824
- K(e);
825
- }
826
- function It(e, t) {
827
- return !e || !t ? !1 : t.some((n) => n.contains(e));
828
- }
829
- class ve {
830
- get size() {
831
- return this.fastMap.size;
832
- }
833
- getTreeNode(t) {
834
- return this.fastMap.get(t);
835
- }
836
- addTreeNode(t, n, r) {
837
- let s = this.fastMap.get(n != null ? n : null);
838
- if (!s)
839
- return;
840
- let l = new xe({
841
- scopeRef: t
842
- });
843
- s.addChild(l), l.parent = s, this.fastMap.set(t, l), r && (l.nodeToRestore = r);
844
- }
845
- addNode(t) {
846
- this.fastMap.set(t.scopeRef, t);
847
- }
848
- removeTreeNode(t) {
849
- if (t === null)
850
- return;
851
- let n = this.fastMap.get(t);
852
- if (!n)
853
- return;
854
- let r = n.parent;
855
- for (let l of this.traverse())
856
- l !== n && n.nodeToRestore && l.nodeToRestore && n.scopeRef && n.scopeRef.current && It(l.nodeToRestore, n.scopeRef.current) && (l.nodeToRestore = n.nodeToRestore);
857
- let s = n.children;
858
- r && (r.removeChild(n), s.size > 0 && s.forEach((l) => r && r.addChild(l))), this.fastMap.delete(n.scopeRef);
859
- }
860
- *traverse(t = this.root) {
861
- if (t.scopeRef != null && (yield t), t.children.size > 0)
862
- for (let n of t.children)
863
- yield* this.traverse(n);
864
- }
865
- clone() {
866
- var t;
867
- let n = new ve();
868
- var r;
869
- for (let s of this.traverse())
870
- n.addTreeNode(s.scopeRef, (r = (t = s.parent) === null || t === void 0 ? void 0 : t.scopeRef) !== null && r !== void 0 ? r : null, s.nodeToRestore);
871
- return n;
872
- }
873
- constructor() {
874
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new xe({
875
- scopeRef: null
876
- }), this.fastMap.set(null, this.root);
877
- }
704
+ e.pointerType === "touch" && me();
878
705
  }
879
- class xe {
880
- addChild(t) {
881
- this.children.add(t), t.parent = this;
882
- }
883
- removeChild(t) {
884
- this.children.delete(t), t.parent = void 0;
885
- }
886
- constructor(t) {
887
- this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = t.scopeRef;
888
- }
889
- }
890
- new ve();
891
- let Mt = /* @__PURE__ */ de.createContext(null);
892
- function At(e) {
893
- let t = De(Mt) || {};
894
- Me(t, e);
895
- let { ref: n, ...r } = t;
896
- return r;
706
+ function Lt() {
707
+ if (!(typeof document > "u"))
708
+ return typeof PointerEvent < "u" ? document.addEventListener("pointerup", Pe) : document.addEventListener("touchend", me), ue++, () => {
709
+ ue--, !(ue > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Pe) : document.removeEventListener("touchend", me));
710
+ };
897
711
  }
898
- function Ft(e, t) {
899
- let { focusProps: n } = Nt(e), { keyboardProps: r } = Kt(e), s = H(n, r), l = At(t), u = e.isDisabled ? {} : l, m = X(e.autoFocus);
900
- return pe(() => {
901
- m.current && t.current && _t(t.current), m.current = !1;
712
+ function Ct(e) {
713
+ let { onHoverStart: t, onHoverChange: r, onHoverEnd: o, isDisabled: i } = e, [d, u] = Oe(!1), p = re({
714
+ isHovered: !1,
715
+ ignoreEmulatedMouseEvents: !1,
716
+ pointerType: "",
717
+ target: null
718
+ }).current;
719
+ ee(Lt, []);
720
+ let { hoverProps: b, triggerHoverEnd: E } = De(() => {
721
+ let v = (m, P) => {
722
+ if (p.pointerType = P, i || P === "touch" || p.isHovered || !m.currentTarget.contains(m.target))
723
+ return;
724
+ p.isHovered = !0;
725
+ let k = m.currentTarget;
726
+ p.target = k, t && t({
727
+ type: "hoverstart",
728
+ target: k,
729
+ pointerType: P
730
+ }), r && r(!0), u(!0);
731
+ }, C = (m, P) => {
732
+ if (p.pointerType = "", p.target = null, P === "touch" || !p.isHovered)
733
+ return;
734
+ p.isHovered = !1;
735
+ let k = m.currentTarget;
736
+ o && o({
737
+ type: "hoverend",
738
+ target: k,
739
+ pointerType: P
740
+ }), r && r(!1), u(!1);
741
+ }, x = {};
742
+ return typeof PointerEvent < "u" ? (x.onPointerEnter = (m) => {
743
+ ne && m.pointerType === "mouse" || v(m, m.pointerType);
744
+ }, x.onPointerLeave = (m) => {
745
+ !i && m.currentTarget.contains(m.target) && C(m, m.pointerType);
746
+ }) : (x.onTouchStart = () => {
747
+ p.ignoreEmulatedMouseEvents = !0;
748
+ }, x.onMouseEnter = (m) => {
749
+ !p.ignoreEmulatedMouseEvents && !ne && v(m, "mouse"), p.ignoreEmulatedMouseEvents = !1;
750
+ }, x.onMouseLeave = (m) => {
751
+ !i && m.currentTarget.contains(m.target) && C(m, "mouse");
752
+ }), {
753
+ hoverProps: x,
754
+ triggerHoverEnd: C
755
+ };
756
+ }, [
757
+ t,
758
+ r,
759
+ o,
760
+ i,
761
+ p
762
+ ]);
763
+ return ee(() => {
764
+ i && E({
765
+ currentTarget: p.target
766
+ }, p.pointerType);
902
767
  }, [
903
- t
768
+ i
904
769
  ]), {
905
- focusableProps: H({
906
- ...s,
907
- tabIndex: e.excludeFromTabOrder && !e.isDisabled ? -1 : void 0
908
- }, u)
770
+ hoverProps: b,
771
+ isHovered: d
909
772
  };
910
773
  }
911
- function Rt(e, t) {
774
+ function _t(e, t) {
912
775
  let {
913
- elementType: n = "button",
914
- isDisabled: r,
915
- onPress: s,
916
- onPressStart: l,
776
+ elementType: r = "button",
777
+ isDisabled: o,
778
+ onPress: i,
779
+ onPressStart: d,
917
780
  onPressEnd: u,
918
- onPressUp: m,
919
- onPressChange: p,
920
- preventFocusOnPress: h,
921
- allowFocusWhenDisabled: $,
922
- onClick: M,
923
- href: O,
924
- target: C,
925
- rel: A,
926
- type: E = "button"
927
- } = e, k;
928
- n === "button" ? k = {
929
- type: E,
930
- disabled: r
931
- } : k = {
781
+ onPressUp: p,
782
+ onPressChange: b,
783
+ preventFocusOnPress: E,
784
+ allowFocusWhenDisabled: v,
785
+ onClick: C,
786
+ href: x,
787
+ target: m,
788
+ rel: P,
789
+ type: k = "button"
790
+ } = e, T;
791
+ r === "button" ? T = {
792
+ type: k,
793
+ disabled: o
794
+ } : T = {
932
795
  role: "button",
933
- tabIndex: r ? void 0 : 0,
934
- href: n === "a" && r ? void 0 : O,
935
- target: n === "a" ? C : void 0,
936
- type: n === "input" ? E : void 0,
937
- disabled: n === "input" ? r : void 0,
938
- "aria-disabled": !r || n === "input" ? void 0 : r,
939
- rel: n === "a" ? A : void 0
796
+ tabIndex: o ? void 0 : 0,
797
+ href: r === "a" && o ? void 0 : x,
798
+ target: r === "a" ? m : void 0,
799
+ type: r === "input" ? k : void 0,
800
+ disabled: r === "input" ? o : void 0,
801
+ "aria-disabled": !o || r === "input" ? void 0 : o,
802
+ rel: r === "a" ? P : void 0
940
803
  };
941
- let { pressProps: N, isPressed: w } = wt({
942
- onPressStart: l,
804
+ let { pressProps: N, isPressed: B } = Tt({
805
+ onPressStart: d,
943
806
  onPressEnd: u,
944
- onPressChange: p,
945
- onPress: s,
946
- onPressUp: m,
947
- isDisabled: r,
948
- preventFocusOnPress: h,
807
+ onPressChange: b,
808
+ onPress: i,
809
+ onPressUp: p,
810
+ isDisabled: o,
811
+ preventFocusOnPress: E,
949
812
  ref: t
950
- }), { focusableProps: v } = Ft(e, t);
951
- $ && (v.tabIndex = r ? -1 : v.tabIndex);
952
- let T = H(v, N, at(e, {
813
+ }), { focusableProps: $ } = Qe(e, t);
814
+ v && ($.tabIndex = o ? -1 : $.tabIndex);
815
+ let L = W($, N, it(e, {
953
816
  labelable: !0
954
817
  }));
955
818
  return {
956
- isPressed: w,
957
- buttonProps: H(k, T, {
819
+ isPressed: B,
820
+ buttonProps: W(T, L, {
958
821
  "aria-haspopup": e["aria-haspopup"],
959
822
  "aria-expanded": e["aria-expanded"],
960
823
  "aria-controls": e["aria-controls"],
961
824
  "aria-pressed": e["aria-pressed"],
962
- onClick: (B) => {
963
- M && (M(B), console.warn("onClick is deprecated, please use onPress"));
825
+ onClick: (O) => {
826
+ C && (C(O), console.warn("onClick is deprecated, please use onPress"));
964
827
  }
965
828
  })
966
829
  };
967
830
  }
968
- function Ut(e, t, n) {
831
+ function Kt(e, t, r) {
969
832
  return t in e ? Object.defineProperty(e, t, {
970
- value: n,
833
+ value: r,
971
834
  enumerable: !0,
972
835
  configurable: !0,
973
836
  writable: !0
974
- }) : e[t] = n, e;
837
+ }) : e[t] = r, e;
975
838
  }
976
- function Se(e, t) {
977
- var n = Object.keys(e);
839
+ function xe(e, t) {
840
+ var r = Object.keys(e);
978
841
  if (Object.getOwnPropertySymbols) {
979
- var r = Object.getOwnPropertySymbols(e);
980
- t && (r = r.filter(function(s) {
981
- return Object.getOwnPropertyDescriptor(e, s).enumerable;
982
- })), n.push.apply(n, r);
842
+ var o = Object.getOwnPropertySymbols(e);
843
+ t && (o = o.filter(function(i) {
844
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
845
+ })), r.push.apply(r, o);
983
846
  }
984
- return n;
847
+ return r;
985
848
  }
986
- function Ne(e) {
849
+ function Se(e) {
987
850
  for (var t = 1; t < arguments.length; t++) {
988
- var n = arguments[t] != null ? arguments[t] : {};
989
- t % 2 ? Se(Object(n), !0).forEach(function(r) {
990
- Ut(e, r, n[r]);
991
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Se(Object(n)).forEach(function(r) {
992
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
851
+ var r = arguments[t] != null ? arguments[t] : {};
852
+ t % 2 ? xe(Object(r), !0).forEach(function(o) {
853
+ Kt(e, o, r[o]);
854
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : xe(Object(r)).forEach(function(o) {
855
+ Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(r, o));
993
856
  });
994
857
  }
995
858
  return e;
996
859
  }
997
- var Vt = (e, t, n) => {
998
- for (var r of Object.keys(e)) {
999
- var s;
1000
- if (e[r] !== ((s = t[r]) !== null && s !== void 0 ? s : n[r]))
860
+ var It = (e, t, r) => {
861
+ for (var o of Object.keys(e)) {
862
+ var i;
863
+ if (e[o] !== ((i = t[o]) !== null && i !== void 0 ? i : r[o]))
1001
864
  return !1;
1002
865
  }
1003
866
  return !0;
1004
- }, oe = (e) => (t) => {
1005
- var n = e.defaultClassName, r = Ne(Ne({}, e.defaultVariants), t);
1006
- for (var s in r) {
1007
- var l, u = (l = r[s]) !== null && l !== void 0 ? l : e.defaultVariants[s];
867
+ }, se = (e) => (t) => {
868
+ var r = e.defaultClassName, o = Se(Se({}, e.defaultVariants), t);
869
+ for (var i in o) {
870
+ var d, u = (d = o[i]) !== null && d !== void 0 ? d : e.defaultVariants[i];
1008
871
  if (u != null) {
1009
- var m = u;
1010
- typeof m == "boolean" && (m = m === !0 ? "true" : "false");
1011
- var p = e.variantClassNames[s][m];
1012
- p && (n += " " + p);
872
+ var p = u;
873
+ typeof p == "boolean" && (p = p === !0 ? "true" : "false");
874
+ var b = e.variantClassNames[i][p];
875
+ b && (r += " " + b);
1013
876
  }
1014
877
  }
1015
- for (var [h, $] of e.compoundVariants)
1016
- Vt(h, r, e.defaultVariants) && (n += " " + $);
1017
- return n;
1018
- }, Gt = oe({ defaultClassName: "_125pcxy0", variantClassNames: { disabled: { true: "_125pcxy1", false: "_125pcxy2" }, kind: { default: "_125pcxy3", link: "_125pcxy4", confirm: "_125pcxy5", delete: "_125pcxy6", key: "_125pcxy7", icon: "_125pcxy8" }, spinning: { true: "_125pcxy9", false: "_125pcxya" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "_125pcxyb"], [{ kind: "default", spinning: !0 }, "_125pcxyc"], [{ kind: "confirm", spinning: !0 }, "_125pcxyd"], [{ kind: "delete", spinning: !0 }, "_125pcxye"], [{ kind: "key", spinning: !0 }, "_125pcxyf"], [{ disabled: !0, spinning: !1 }, "_125pcxyg"]] }), Wt = oe({ defaultClassName: "_125pcxyh", variantClassNames: { disabled: { true: "_125pcxyi", false: "_125pcxyj" }, kind: { icon: "_125pcxyk", default: "_125pcxyl", delete: "_125pcxym", key: "_125pcxyn", confirm: "_125pcxyo", link: "_125pcxyp" }, spinning: { true: "_125pcxyq", false: "_125pcxyr" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [] }), Ht = "_125pcxyv", jt = oe({ defaultClassName: "_125pcxyw", variantClassNames: { spinning: { true: "_125pcxyx", false: "_125pcxyy" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] }), Yt = oe({ defaultClassName: "_125pcxys", variantClassNames: { spinning: { true: "_125pcxyt", false: "_125pcxyu" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
1019
- const He = d.forwardRef(
1020
- ({
1021
- onClick: e,
1022
- onPress: t,
1023
- children: n,
1024
- className: r,
1025
- isDisabled: s,
1026
- disabled: l,
1027
- href: u,
1028
- icon: m,
1029
- kind: p = "default",
1030
- spinning: h,
1031
- spinningTitle: $,
1032
- title: M,
1033
- ...O
1034
- }, C) => {
1035
- var L;
1036
- const A = {
1037
- onPress: t != null ? t : e,
1038
- isDisabled: (L = l != null ? l : s) != null ? L : h,
1039
- ...O
1040
- }, { "data-testid": E } = O, k = C != null ? C : d.useRef(null), { buttonProps: N } = Rt(A, k), { t: w } = d.useContext(Xe), v = m && /* @__PURE__ */ d.createElement(
1041
- Ze,
1042
- {
1043
- className: Ht,
1044
- icon: m,
1045
- "aria-hidden": "true",
1046
- "data-testid": `${E}__${m}-icon`
1047
- }
1048
- );
1049
- let T;
1050
- p === "default" || p === "icon" || p === "link" ? T = "dark" : T = "light";
1051
- const B = h && /* @__PURE__ */ d.createElement(
1052
- qe,
1053
- {
1054
- color: T,
1055
- className: jt({ spinning: h }),
1056
- title: $ || w("design-system:button.spinningTitle"),
1057
- "data-testid": `${E}__spinner`
1058
- }
1059
- );
1060
- return /* @__PURE__ */ d.createElement("div", { className: Je(Gt({ disabled: s || l, kind: p, spinning: h }), r) }, u ? /* @__PURE__ */ d.createElement(
1061
- "a",
1062
- {
1063
- className: Yt({ spinning: h }),
1064
- ...O,
1065
- href: u,
1066
- title: M
1067
- },
1068
- v,
1069
- n,
1070
- B
1071
- ) : /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
1072
- "button",
1073
- {
1074
- className: Wt({ disabled: s || l, kind: p, spinning: h }),
1075
- disabled: s,
1076
- ...N,
1077
- ref: k,
1078
- title: M
1079
- },
1080
- v,
1081
- n ? /* @__PURE__ */ d.createElement("span", null, n) : "",
1082
- B
1083
- )));
1084
- }
1085
- );
1086
- Qe.set(He, {
878
+ for (var [E, v] of e.compoundVariants)
879
+ It(E, o, e.defaultVariants) && (r += " " + v);
880
+ return r;
881
+ }, At = se({ defaultClassName: "_125pcxy0", variantClassNames: { disabled: { true: "_125pcxy1", false: "_125pcxy2" }, kind: { default: "_125pcxy3", link: "_125pcxy4", confirm: "_125pcxy5", delete: "_125pcxy6", key: "_125pcxy7", icon: "_125pcxy8" }, spinning: { true: "_125pcxy9", false: "_125pcxya" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "_125pcxyb"], [{ kind: "default", spinning: !0 }, "_125pcxyc"], [{ kind: "confirm", spinning: !0 }, "_125pcxyd"], [{ kind: "delete", spinning: !0 }, "_125pcxye"], [{ kind: "key", spinning: !0 }, "_125pcxyf"], [{ disabled: !0, spinning: !1 }, "_125pcxyg"]] }), Mt = se({ defaultClassName: "_125pcxyh", variantClassNames: { disabled: { true: "_125pcxyi", false: "_125pcxyj" }, kind: { icon: "_125pcxyk", default: "_125pcxyl", delete: "_125pcxym", key: "_125pcxyn", confirm: "_125pcxyo", link: "_125pcxyp" }, spinning: { true: "_125pcxyq", false: "_125pcxyr" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [] }), Ft = "_125pcxyv", Ut = se({ defaultClassName: "_125pcxyw", variantClassNames: { spinning: { true: "_125pcxyx", false: "_125pcxyy" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] }), Ht = se({ defaultClassName: "_125pcxys", variantClassNames: { spinning: { true: "_125pcxyt", false: "_125pcxyu" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
882
+ function Rt({
883
+ as: e,
884
+ onClick: t,
885
+ onPress: r,
886
+ children: o,
887
+ className: i,
888
+ isDisabled: d,
889
+ disabled: u,
890
+ href: p,
891
+ icon: b,
892
+ kind: E = "default",
893
+ spinning: v,
894
+ spinningTitle: C,
895
+ title: x,
896
+ ...m
897
+ }, P) {
898
+ var g;
899
+ const k = e != null ? e : p ? "a" : "button", T = {
900
+ onPress: r != null ? r : t,
901
+ isDisabled: (g = u != null ? u : d) != null ? g : v,
902
+ ...m
903
+ }, { "data-testid": N } = m, B = P || c.useRef(null), { buttonProps: $ } = _t(T, B), { hoverProps: L } = Ct({ isDisabled: T.isDisabled }), { type: O, ...I } = $, ie = {
904
+ ...W(I, L),
905
+ ref: B,
906
+ title: x,
907
+ className: p ? Ht({ spinning: v }) : Mt({ disabled: d || u, kind: E, spinning: v }),
908
+ ...p ? { href: p } : { type: O }
909
+ }, { t: n } = c.useContext(ze), f = b && /* @__PURE__ */ c.createElement(
910
+ Je,
911
+ {
912
+ className: Ft,
913
+ icon: b,
914
+ "aria-hidden": "true",
915
+ "data-testid": `${N}__${b}-icon`
916
+ }
917
+ );
918
+ let w;
919
+ E === "default" || E === "icon" || E === "link" ? w = "dark" : w = "light";
920
+ const l = v && /* @__PURE__ */ c.createElement(
921
+ Xe,
922
+ {
923
+ color: w,
924
+ className: Ut({ spinning: v }),
925
+ title: C || n("design-system:button.spinningTitle"),
926
+ "data-testid": `${N}__spinner`
927
+ }
928
+ );
929
+ return /* @__PURE__ */ c.createElement(Ze, null, /* @__PURE__ */ c.createElement(
930
+ "div",
931
+ {
932
+ className: qe(
933
+ At({
934
+ disabled: d || u,
935
+ kind: E,
936
+ spinning: v
937
+ }),
938
+ i
939
+ )
940
+ },
941
+ /* @__PURE__ */ c.createElement(k, { ...ie }, f, o ? /* @__PURE__ */ c.createElement("span", null, o) : "", l)
942
+ ));
943
+ }
944
+ const We = c.forwardRef(Rt);
945
+ Ye.set(We, {
1087
946
  name: "Button",
1088
947
  props: {
1089
948
  disabled: "boolean",
@@ -1099,17 +958,17 @@ Qe.set(He, {
1099
958
  },
1100
959
  panellable: !0
1101
960
  });
1102
- const zt = {
1103
- components: [He],
1104
- description: () => /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("div", { className: "sps-body-14" }, "Buttons are used to initiate events or actions. The labels and/or icons describe what the button will do."), /* @__PURE__ */ d.createElement("br", null), /* @__PURE__ */ d.createElement("h5", null, "Variants"), /* @__PURE__ */ d.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ d.createElement("span", { className: "sps-text-semibold" }, "Default: "), "For tertiary actions or actions of lower importance on a page."), /* @__PURE__ */ d.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ d.createElement("span", { className: "sps-text-semibold" }, "Key: "), "For primary or important actions on a page."), /* @__PURE__ */ d.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ d.createElement("span", { className: "sps-text-semibold" }, "Confirm: "), "For the main call to action on a page. There should only be one Confirm button per screen."), /* @__PURE__ */ d.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ d.createElement("span", { className: "sps-text-semibold" }, "Delete: "), "For deleting information or another destructive action. These should always be paired with a Delete Confirmation Modal."), /* @__PURE__ */ d.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ d.createElement("span", { className: "sps-text-semibold" }, "Disabled: "), "For actions that are not permitted in a particular state. These can be accompanied by a Tooltip on hover describing why it\u2019s disabled."), /* @__PURE__ */ d.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ d.createElement("span", { className: "sps-text-semibold" }, "With an Icon: "), "For further illustrating the action. Example: Pencil icon in an Edit button. There can also be Icon Buttons without text.")),
961
+ const Gt = {
962
+ components: [We],
963
+ description: () => /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("div", { className: "sps-body-14" }, "Buttons are used to initiate events or actions. The labels and/or icons describe what the button will do."), /* @__PURE__ */ c.createElement("br", null), /* @__PURE__ */ c.createElement("h5", null, "Variants"), /* @__PURE__ */ c.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ c.createElement("span", { className: "sps-text-semibold" }, "Default: "), "For tertiary actions or actions of lower importance on a page."), /* @__PURE__ */ c.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ c.createElement("span", { className: "sps-text-semibold" }, "Key: "), "For primary or important actions on a page."), /* @__PURE__ */ c.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ c.createElement("span", { className: "sps-text-semibold" }, "Confirm: "), "For the main call to action on a page. There should only be one Confirm button per screen."), /* @__PURE__ */ c.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ c.createElement("span", { className: "sps-text-semibold" }, "Delete: "), "For deleting information or another destructive action. These should always be paired with a Delete Confirmation Modal."), /* @__PURE__ */ c.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ c.createElement("span", { className: "sps-text-semibold" }, "Disabled: "), "For actions that are not permitted in a particular state. These can be accompanied by a Tooltip on hover describing why it\u2019s disabled."), /* @__PURE__ */ c.createElement("div", { className: "sps-body-14" }, /* @__PURE__ */ c.createElement("span", { className: "sps-text-semibold" }, "With an Icon: "), "For further illustrating the action. Example: Pencil icon in an Edit button. There can also be Icon Buttons without text.")),
1105
964
  examples: {
1106
965
  basic: {
1107
966
  label: "Basic Buttons",
1108
- description: ({ NavigateTo: e }) => /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("p", null, "The most common type of button that can be used in most cases. Example: Basic Buttons in a ", /* @__PURE__ */ d.createElement(e, { to: "modals" }, "Modal"), ".")),
967
+ description: ({ NavigateTo: e }) => /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("p", null, "The most common type of button that can be used in most cases. Example: Basic Buttons in a ", /* @__PURE__ */ c.createElement(e, { to: "modals" }, "Modal"), ".")),
1109
968
  examples: {
1110
969
  withoutIcons: {
1111
970
  description: "Without Icons",
1112
- react: g`
971
+ react: y`
1113
972
  import { Button } from "@sps-woodland/buttons";
1114
973
  import { sprinkles } from "@sps-woodland/tokens";
1115
974
 
@@ -1128,7 +987,7 @@ const zt = {
1128
987
  },
1129
988
  withIcons: {
1130
989
  description: "With Icons",
1131
- react: g`
990
+ react: y`
1132
991
  import { Button } from "@sps-woodland/buttons";
1133
992
  import { sprinkles } from "@sps-woodland/tokens";
1134
993
 
@@ -1147,7 +1006,7 @@ const zt = {
1147
1006
  },
1148
1007
  spinning: {
1149
1008
  description: "Spinning",
1150
- react: g`
1009
+ react: y`
1151
1010
  import { Button } from "@sps-woodland/buttons";
1152
1011
  import { sprinkles } from "@sps-woodland/tokens";
1153
1012
 
@@ -1171,7 +1030,7 @@ const zt = {
1171
1030
  examples: {
1172
1031
  withoutIcons: {
1173
1032
  description: "Without Icons",
1174
- react: g`
1033
+ react: y`
1175
1034
  import { SpsDropdown } from "@spscommerce/ds-react";
1176
1035
 
1177
1036
  function Component() {
@@ -1213,7 +1072,7 @@ const zt = {
1213
1072
  },
1214
1073
  withIcons: {
1215
1074
  description: "With Icons",
1216
- react: g`
1075
+ react: y`
1217
1076
  import { SpsDropdown } from "@spscommerce/ds-react";
1218
1077
 
1219
1078
  function Component() {
@@ -1260,7 +1119,7 @@ const zt = {
1260
1119
  },
1261
1120
  spinning: {
1262
1121
  description: "Spinning",
1263
- react: g`
1122
+ react: y`
1264
1123
  import { SpsDropdown } from "@spscommerce/ds-react";
1265
1124
 
1266
1125
  function Component() {
@@ -1306,7 +1165,7 @@ const zt = {
1306
1165
  examples: {
1307
1166
  withoutIcons: {
1308
1167
  description: "Without Icons",
1309
- react: g`
1168
+ react: y`
1310
1169
  import { SpsSplitButton } from "@spscommerce/ds-react";
1311
1170
 
1312
1171
  function Component() {
@@ -1336,7 +1195,7 @@ const zt = {
1336
1195
  },
1337
1196
  withIcons: {
1338
1197
  description: "With Icons",
1339
- react: g`
1198
+ react: y`
1340
1199
  import { SpsSplitButton } from "@spscommerce/ds-react";
1341
1200
 
1342
1201
  function Component() {
@@ -1380,11 +1239,11 @@ const zt = {
1380
1239
  },
1381
1240
  iconButtons: {
1382
1241
  label: "Icon Buttons",
1383
- description: ({ NavigateTo: e, Link: t }) => /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("p", null, "Use these for quick actions that can clearly be articulated by the use of an icon. Example: A Print button in the", " ", /* @__PURE__ */ d.createElement(e, { to: "list-action-bar" }, "List Action Bar"), ". Do not use an icon that doesn't have a universally understood meaning; instead use a Basic Button or a Basic Button with an icon. ", /* @__PURE__ */ d.createElement(t, { to: "/style-and-layout/icons/" }, "View All Icons"))),
1242
+ description: ({ NavigateTo: e, Link: t }) => /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("p", null, "Use these for quick actions that can clearly be articulated by the use of an icon. Example: A Print button in the", " ", /* @__PURE__ */ c.createElement(e, { to: "list-action-bar" }, "List Action Bar"), ". Do not use an icon that doesn't have a universally understood meaning; instead use a Basic Button or a Basic Button with an icon. ", /* @__PURE__ */ c.createElement(t, { to: "/style-and-layout/icons/" }, "View All Icons"))),
1384
1243
  examples: {
1385
1244
  standard: {
1386
1245
  description: "Standard Icon Buttons",
1387
- react: g`
1246
+ react: y`
1388
1247
  import { Button } from "@sps-woodland/buttons";
1389
1248
  import { sprinkles } from "@sps-woodland/tokens";
1390
1249
 
@@ -1406,8 +1265,8 @@ const zt = {
1406
1265
  `
1407
1266
  },
1408
1267
  dropdown: {
1409
- description: ({ NavigateTo: e }) => /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("h5", null, "Dropdown Icon Buttons"), /* @__PURE__ */ d.createElement("p", null, "Use these when there are several options available for action. Example: Dropdown Icon Button in a ", /* @__PURE__ */ d.createElement(e, { to: "content-rows" }, "Content Row"), ".")),
1410
- react: g`
1268
+ description: ({ NavigateTo: e }) => /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("h5", null, "Dropdown Icon Buttons"), /* @__PURE__ */ c.createElement("p", null, "Use these when there are several options available for action. Example: Dropdown Icon Button in a ", /* @__PURE__ */ c.createElement(e, { to: "content-rows" }, "Content Row"), ".")),
1269
+ react: y`
1411
1270
  import { SpsDropdown } from "@spscommerce/ds-react";
1412
1271
 
1413
1272
  function Component() {
@@ -1425,7 +1284,7 @@ const zt = {
1425
1284
  },
1426
1285
  spinner: {
1427
1286
  description: "Spinner",
1428
- react: g`
1287
+ react: y`
1429
1288
  import { Button } from "@sps-woodland/buttons";
1430
1289
 
1431
1290
  function Component() {
@@ -1441,11 +1300,11 @@ const zt = {
1441
1300
  },
1442
1301
  textButtons: {
1443
1302
  label: "Text Buttons",
1444
- description: ({ NavigateTo: e }) => /* @__PURE__ */ d.createElement("p", null, "Use for less important actions, or ones that aren't taken as frequently. They should not appear inline with other copy. Example: Advanced Search button in the", " ", /* @__PURE__ */ d.createElement(e, { to: "list-toolbar" }, "List Toolbar")),
1303
+ description: ({ NavigateTo: e }) => /* @__PURE__ */ c.createElement("p", null, "Use for less important actions, or ones that aren't taken as frequently. They should not appear inline with other copy. Example: Advanced Search button in the", " ", /* @__PURE__ */ c.createElement(e, { to: "list-toolbar" }, "List Toolbar")),
1445
1304
  examples: {
1446
1305
  withoutIcons: {
1447
1306
  description: "Without Icons",
1448
- react: g`
1307
+ react: y`
1449
1308
  import { Button } from "@sps-woodland/buttons";
1450
1309
  import { sprinkles } from "@sps-woodland/tokens";
1451
1310
 
@@ -1462,7 +1321,7 @@ const zt = {
1462
1321
  },
1463
1322
  withIcons: {
1464
1323
  description: "With Icons",
1465
- react: g`
1324
+ react: y`
1466
1325
  import { Button } from "@sps-woodland/buttons";
1467
1326
  import { sprinkles } from "@sps-woodland/tokens";
1468
1327
 
@@ -1479,7 +1338,7 @@ const zt = {
1479
1338
  },
1480
1339
  spinner: {
1481
1340
  description: "Spinner",
1482
- react: g`
1341
+ react: y`
1483
1342
  import { Button } from "@sps-woodland/buttons";
1484
1343
 
1485
1344
  function Component() {
@@ -1495,10 +1354,10 @@ const zt = {
1495
1354
  },
1496
1355
  submitButtons: {
1497
1356
  label: "Submit Buttons",
1498
- description: ({ NavigateTo: e }) => /* @__PURE__ */ d.createElement("p", null, "Use to submit a form. There can be a number of visual variations, for example a", " ", /* @__PURE__ */ d.createElement(e, { to: "modals" }, "Modal"), " uses Basic Button (Key) as its Submit Button."),
1357
+ description: ({ NavigateTo: e }) => /* @__PURE__ */ c.createElement("p", null, "Use to submit a form. There can be a number of visual variations, for example a", " ", /* @__PURE__ */ c.createElement(e, { to: "modals" }, "Modal"), " uses Basic Button (Key) as its Submit Button."),
1499
1358
  examples: {
1500
1359
  basic: {
1501
- react: g`
1360
+ react: y`
1502
1361
  import { Button } from "@sps-woodland/buttons";
1503
1362
  import { sprinkles } from "@sps-woodland/tokens";
1504
1363
 
@@ -1526,7 +1385,7 @@ const zt = {
1526
1385
  description: "Used to link to another page, such as an external website. They may open in the same window or in a new one. It should only be used when a Text Button doesn't provide enough visual emphasis.",
1527
1386
  examples: {
1528
1387
  basic: {
1529
- react: g`
1388
+ react: y`
1530
1389
  import { Button } from "@sps-woodland/buttons";
1531
1390
 
1532
1391
  function Component() {
@@ -1544,11 +1403,11 @@ const zt = {
1544
1403
  },
1545
1404
  buttonGroups: {
1546
1405
  label: "Button Groups",
1547
- description: ({ NavigateTo: e }) => /* @__PURE__ */ d.createElement("p", null, "Use button groups when there are a number of actions that can be taken in a view. When there are multiple button types in a group, they are separated using dividers. Example: Button groups in ", /* @__PURE__ */ d.createElement(e, { to: "List Action Bar" }, "List Action Bar"), "."),
1406
+ description: ({ NavigateTo: e }) => /* @__PURE__ */ c.createElement("p", null, "Use button groups when there are a number of actions that can be taken in a view. When there are multiple button types in a group, they are separated using dividers. Example: Button groups in ", /* @__PURE__ */ c.createElement(e, { to: "List Action Bar" }, "List Action Bar"), "."),
1548
1407
  examples: {
1549
1408
  basic: {
1550
1409
  description: "Basic Button Groups",
1551
- react: g`
1410
+ react: y`
1552
1411
  import { Button } from "@sps-woodland/buttons";
1553
1412
  import { sprinkles } from "@sps-woodland/tokens";
1554
1413
 
@@ -1564,7 +1423,7 @@ const zt = {
1564
1423
  },
1565
1424
  icon: {
1566
1425
  description: "Icon Button Groups",
1567
- react: g`
1426
+ react: y`
1568
1427
  import { Button } from "@sps-woodland/buttons";
1569
1428
 
1570
1429
  function Component() {
@@ -1579,7 +1438,7 @@ const zt = {
1579
1438
  },
1580
1439
  textAndIcons: {
1581
1440
  description: "Text Buttons + Icon Buttons Group",
1582
- react: g`
1441
+ react: y`
1583
1442
  import { Button } from "@sps-woodland/buttons";
1584
1443
  import { sprinkles } from "@sps-woodland/tokens";
1585
1444
  import { VericalRule } from "@sps-woodland/core";
@@ -1598,7 +1457,7 @@ const zt = {
1598
1457
  },
1599
1458
  textAndBasic: {
1600
1459
  description: "Text Buttons + Basic Buttons Group",
1601
- react: g`
1460
+ react: y`
1602
1461
  import { Button } from "@sps-woodland/buttons";
1603
1462
  import { sprinkles } from "@sps-woodland/tokens";
1604
1463
  import { VericalRule } from "@sps-woodland/core";
@@ -1618,7 +1477,7 @@ const zt = {
1618
1477
  },
1619
1478
  iconsAndBasic: {
1620
1479
  description: "Icon Buttons + Basic Buttons Group",
1621
- react: g`
1480
+ react: y`
1622
1481
  import { Button } from "@sps-woodland/buttons";
1623
1482
  import { sprinkles } from "@sps-woodland/tokens";
1624
1483
  import { VericalRule } from "@sps-woodland/core";
@@ -1639,7 +1498,7 @@ const zt = {
1639
1498
  },
1640
1499
  textIconsAndBasic: {
1641
1500
  description: "Text Buttons + Icon Buttons + Basic Buttons Group",
1642
- react: g`
1501
+ react: y`
1643
1502
  import { Button } from "@sps-woodland/buttons";
1644
1503
  import { sprinkles } from "@sps-woodland/tokens";
1645
1504
  import { VericalRule } from "@sps-woodland/core";
@@ -1663,10 +1522,10 @@ const zt = {
1663
1522
  }
1664
1523
  }
1665
1524
  }
1666
- }, Qt = {
1667
- Buttons: zt
1525
+ }, zt = {
1526
+ Buttons: Gt
1668
1527
  };
1669
1528
  export {
1670
- He as Button,
1671
- Qt as MANIFEST
1529
+ We as Button,
1530
+ zt as MANIFEST
1672
1531
  };