@sps-woodland/buttons 8.24.0 → 8.24.2

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.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import * as c from "react";
2
- import Ee, { useRef as Z, useCallback as X, useEffect as q, useState as $e, useMemo as Be, useContext as Me } from "react";
2
+ import Ee, { useRef as ee, useCallback as z, useEffect as J, useState as $e, useMemo as Be, useContext as Me } from "react";
3
3
  import { I18nContext as Fe, Spinner as Ue, cl as He, Metadata as Re, Icon as Ge } from "@sps-woodland/core";
4
4
  import { useFocusable as Ve, FocusRing as We } from "@react-aria/focus";
5
- import { code as v } from "@spscommerce/utils";
5
+ import { code as y } from "@spscommerce/utils";
6
6
  const Pe = typeof document < "u" ? Ee.useLayoutEffect : () => {
7
7
  };
8
- function U(e) {
9
- const t = Z(null);
8
+ function H(e) {
9
+ const t = ee(null);
10
10
  return Pe(() => {
11
11
  t.current = e;
12
12
  }, [
13
13
  e
14
- ]), X((...r) => {
14
+ ]), z((...r) => {
15
15
  const o = t.current;
16
16
  return o == null ? void 0 : o(...r);
17
17
  }, []);
@@ -30,10 +30,10 @@ function xe(...e) {
30
30
  for (let r of e) typeof r == "function" && r(...t);
31
31
  };
32
32
  }
33
- const L = (e) => {
33
+ const I = (e) => {
34
34
  var t;
35
35
  return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
36
- }, ie = (e) => e && "window" in e && e.window === e ? e : L(e).defaultView || window;
36
+ }, ie = (e) => e && "window" in e && e.window === e ? e : I(e).defaultView || window;
37
37
  function Se(e) {
38
38
  var t, r, o = "";
39
39
  if (typeof e == "string" || typeof e == "number") o += e;
@@ -47,7 +47,7 @@ function je() {
47
47
  for (var e, t, r = 0, o = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = Se(e)) && (o && (o += " "), o += t);
48
48
  return o;
49
49
  }
50
- function R(...e) {
50
+ function G(...e) {
51
51
  let t = {
52
52
  ...e[0]
53
53
  };
@@ -84,7 +84,7 @@ function Qe(e, t = {}) {
84
84
  for (const u in e) Object.prototype.hasOwnProperty.call(e, u) && (Xe.has(u) || r && ze.has(u) || o && qe.has(u) || a != null && a.has(u) || Je.test(u)) && (d[u] = e[u]);
85
85
  return d;
86
86
  }
87
- function H(e) {
87
+ function R(e) {
88
88
  if (Ze()) e.focus({
89
89
  preventScroll: !0
90
90
  });
@@ -93,20 +93,20 @@ function H(e) {
93
93
  e.focus(), tt(t);
94
94
  }
95
95
  }
96
- let V = null;
96
+ let W = null;
97
97
  function Ze() {
98
- if (V == null) {
99
- V = !1;
98
+ if (W == null) {
99
+ W = !1;
100
100
  try {
101
101
  document.createElement("div").focus({
102
102
  get preventScroll() {
103
- return V = !0, !0;
103
+ return W = !0, !0;
104
104
  }
105
105
  });
106
106
  } catch {
107
107
  }
108
108
  }
109
- return V;
109
+ return W;
110
110
  }
111
111
  function et(e) {
112
112
  let t = e.parentNode, r = [], o = document.scrollingElement || document.documentElement;
@@ -126,7 +126,7 @@ function tt(e) {
126
126
  for (let { element: t, scrollTop: r, scrollLeft: o } of e)
127
127
  t.scrollTop = r, t.scrollLeft = o;
128
128
  }
129
- function ee(e) {
129
+ function te(e) {
130
130
  var t;
131
131
  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);
132
132
  }
@@ -134,33 +134,33 @@ function de(e) {
134
134
  var t;
135
135
  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;
136
136
  }
137
- function I(e) {
137
+ function L(e) {
138
138
  let t = null;
139
139
  return () => (t == null && (t = e()), t);
140
140
  }
141
- const J = I(function() {
141
+ const Q = L(function() {
142
142
  return de(/^Mac/i);
143
- }), nt = I(function() {
143
+ }), nt = L(function() {
144
144
  return de(/^iPhone/i);
145
- }), Ne = I(function() {
145
+ }), Ne = L(function() {
146
146
  return de(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
147
- J() && navigator.maxTouchPoints > 1;
148
- }), De = I(function() {
147
+ Q() && navigator.maxTouchPoints > 1;
148
+ }), De = L(function() {
149
149
  return nt() || Ne();
150
- }), ot = I(function() {
151
- return ee(/AppleWebKit/i) && !rt();
152
- }), rt = I(function() {
153
- return ee(/Chrome/i);
154
- }), Oe = I(function() {
155
- return ee(/Android/i);
156
- }), st = I(function() {
157
- return ee(/Firefox/i);
150
+ }), ot = L(function() {
151
+ return te(/AppleWebKit/i) && !rt();
152
+ }), rt = L(function() {
153
+ return te(/Chrome/i);
154
+ }), Oe = L(function() {
155
+ return te(/Android/i);
156
+ }), st = L(function() {
157
+ return te(/Firefox/i);
158
158
  });
159
- function G(e, t, r = !0) {
159
+ function V(e, t, r = !0) {
160
160
  var o, a;
161
161
  let { metaKey: d, ctrlKey: u, altKey: p, shiftKey: m } = t;
162
- st() && (!((a = window.event) === null || a === void 0 || (o = a.type) === null || o === void 0) && o.startsWith("key")) && e.target === "_blank" && (J() ? d = !0 : u = !0);
163
- let g = ot() && J() && !Ne() ? new KeyboardEvent("keydown", {
162
+ st() && (!((a = window.event) === null || a === void 0 || (o = a.type) === null || o === void 0) && o.startsWith("key")) && e.target === "_blank" && (Q() ? d = !0 : u = !0);
163
+ let v = ot() && Q() && !Ne() ? new KeyboardEvent("keydown", {
164
164
  keyIdentifier: "Enter",
165
165
  metaKey: d,
166
166
  ctrlKey: u,
@@ -174,10 +174,10 @@ function G(e, t, r = !0) {
174
174
  bubbles: !0,
175
175
  cancelable: !0
176
176
  });
177
- G.isOpening = r, H(e), e.dispatchEvent(g), G.isOpening = !1;
177
+ V.isOpening = r, R(e), e.dispatchEvent(v), V.isOpening = !1;
178
178
  }
179
- G.isOpening = !1;
180
- let M = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Set();
179
+ V.isOpening = !1;
180
+ let F = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Set();
181
181
  function me() {
182
182
  if (typeof window > "u") return;
183
183
  function e(o) {
@@ -185,14 +185,14 @@ function me() {
185
185
  }
186
186
  let t = (o) => {
187
187
  if (!e(o) || !o.target) return;
188
- let a = M.get(o.target);
189
- a || (a = /* @__PURE__ */ new Set(), M.set(o.target, a), o.target.addEventListener("transitioncancel", r, {
188
+ let a = F.get(o.target);
189
+ a || (a = /* @__PURE__ */ new Set(), F.set(o.target, a), o.target.addEventListener("transitioncancel", r, {
190
190
  once: !0
191
191
  })), a.add(o.propertyName);
192
192
  }, r = (o) => {
193
193
  if (!e(o) || !o.target) return;
194
- let a = M.get(o.target);
195
- if (a && (a.delete(o.propertyName), a.size === 0 && (o.target.removeEventListener("transitioncancel", r), M.delete(o.target)), M.size === 0)) {
194
+ let a = F.get(o.target);
195
+ if (a && (a.delete(o.propertyName), a.size === 0 && (o.target.removeEventListener("transitioncancel", r), F.delete(o.target)), F.size === 0)) {
196
196
  for (let d of le) d();
197
197
  le.clear();
198
198
  }
@@ -202,32 +202,32 @@ function me() {
202
202
  typeof document < "u" && (document.readyState !== "loading" ? me() : document.addEventListener("DOMContentLoaded", me));
203
203
  function at(e) {
204
204
  requestAnimationFrame(() => {
205
- M.size === 0 ? e() : le.add(e);
205
+ F.size === 0 ? e() : le.add(e);
206
206
  });
207
207
  }
208
208
  function it() {
209
- let e = Z(/* @__PURE__ */ new Map()), t = X((a, d, u, p) => {
210
- let m = p != null && p.once ? (...g) => {
211
- e.current.delete(u), u(...g);
209
+ let e = ee(/* @__PURE__ */ new Map()), t = z((a, d, u, p) => {
210
+ let m = p != null && p.once ? (...v) => {
211
+ e.current.delete(u), u(...v);
212
212
  } : u;
213
213
  e.current.set(u, {
214
214
  type: d,
215
215
  eventTarget: a,
216
216
  fn: m,
217
217
  options: p
218
- }), a.addEventListener(d, m, p);
219
- }, []), r = X((a, d, u, p) => {
218
+ }), a.addEventListener(d, u, p);
219
+ }, []), r = z((a, d, u, p) => {
220
220
  var m;
221
- let g = ((m = e.current.get(u)) === null || m === void 0 ? void 0 : m.fn) || u;
222
- a.removeEventListener(d, g, p), e.current.delete(u);
223
- }, []), o = X(() => {
221
+ let v = ((m = e.current.get(u)) === null || m === void 0 ? void 0 : m.fn) || u;
222
+ a.removeEventListener(d, v, p), e.current.delete(u);
223
+ }, []), o = z(() => {
224
224
  e.current.forEach((a, d) => {
225
225
  r(a.eventTarget, a.type, d, a.options);
226
226
  });
227
227
  }, [
228
228
  r
229
229
  ]);
230
- return q(() => o, [
230
+ return J(() => o, [
231
231
  o
232
232
  ]), {
233
233
  addGlobalListener: t,
@@ -249,30 +249,30 @@ function _e(e) {
249
249
  function ut(e) {
250
250
  return !Oe() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
251
251
  }
252
- let F = "default", ue = "", z = /* @__PURE__ */ new WeakMap();
252
+ let U = "default", ue = "", q = /* @__PURE__ */ new WeakMap();
253
253
  function be(e) {
254
254
  if (De()) {
255
- if (F === "default") {
256
- const t = L(e);
255
+ if (U === "default") {
256
+ const t = I(e);
257
257
  ue = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
258
258
  }
259
- F = "disabled";
260
- } else (e instanceof HTMLElement || e instanceof SVGElement) && (z.set(e, e.style.userSelect), e.style.userSelect = "none");
259
+ U = "disabled";
260
+ } else (e instanceof HTMLElement || e instanceof SVGElement) && (q.set(e, e.style.userSelect), e.style.userSelect = "none");
261
261
  }
262
- function W(e) {
262
+ function Y(e) {
263
263
  if (De()) {
264
- if (F !== "disabled") return;
265
- F = "restoring", setTimeout(() => {
264
+ if (U !== "disabled") return;
265
+ U = "restoring", setTimeout(() => {
266
266
  at(() => {
267
- if (F === "restoring") {
268
- const t = L(e);
269
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = ue || ""), ue = "", F = "default";
267
+ if (U === "restoring") {
268
+ const t = I(e);
269
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = ue || ""), ue = "", U = "default";
270
270
  }
271
271
  });
272
272
  }, 300);
273
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && z.has(e)) {
274
- let t = z.get(e);
275
- e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), z.delete(e);
273
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && q.has(e)) {
274
+ let t = q.get(e);
275
+ e.style.userSelect === "none" && (e.style.userSelect = t), e.getAttribute("style") === "" && e.removeAttribute("style"), q.delete(e);
276
276
  }
277
277
  }
278
278
  const Ce = Ee.createContext({
@@ -314,31 +314,31 @@ function _t(e) {
314
314
  let t = Me(Ce);
315
315
  if (t) {
316
316
  let { register: r, ...o } = t;
317
- e = R(o, e), r();
317
+ e = G(o, e), r();
318
318
  }
319
319
  return lt(t, e.ref), e;
320
320
  }
321
- var Y = /* @__PURE__ */ new WeakMap();
322
- class j {
321
+ var j = /* @__PURE__ */ new WeakMap();
322
+ class X {
323
323
  continuePropagation() {
324
- ge(this, Y, !1);
324
+ ge(this, j, !1);
325
325
  }
326
326
  get shouldStopPropagation() {
327
- return dt(this, Y);
327
+ return dt(this, j);
328
328
  }
329
329
  constructor(t, r, o, a) {
330
- ft(this, Y, {
330
+ ft(this, j, {
331
331
  writable: !0,
332
332
  value: void 0
333
- }), ge(this, Y, !0);
333
+ }), ge(this, j, !0);
334
334
  var d;
335
335
  let u = (d = a == null ? void 0 : a.target) !== null && d !== void 0 ? d : o.currentTarget;
336
336
  const p = u == null ? void 0 : u.getBoundingClientRect();
337
- let m, g = 0, b, E = null;
338
- o.clientX != null && o.clientY != null && (b = o.clientX, E = o.clientY), p && (b != null && E != null ? (m = b - p.left, g = E - p.top) : (m = p.width / 2, g = p.height / 2)), 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, this.x = m, this.y = g;
337
+ let m, v = 0, b, E = null;
338
+ o.clientX != null && o.clientY != null && (b = o.clientX, E = o.clientY), p && (b != null && E != null ? (m = b - p.left, v = E - p.top) : (m = p.width / 2, v = p.height / 2)), 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, this.x = m, this.y = v;
339
339
  }
340
340
  }
341
- const he = Symbol("linkClicked");
341
+ const ve = Symbol("linkClicked");
342
342
  function bt(e) {
343
343
  let {
344
344
  onPress: t,
@@ -349,12 +349,12 @@ function bt(e) {
349
349
  isDisabled: u,
350
350
  isPressed: p,
351
351
  preventFocusOnPress: m,
352
- shouldCancelOnPointerExit: g,
352
+ shouldCancelOnPointerExit: v,
353
353
  allowTextSelectionOnPress: b,
354
354
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
355
355
  ref: E,
356
356
  ...x
357
- } = _t(e), [_, $] = $e(!1), w = Z({
357
+ } = _t(e), [_, $] = $e(!1), w = ee({
358
358
  isPressed: !1,
359
359
  ignoreEmulatedMouseEvents: !1,
360
360
  ignoreClickAfterPress: !1,
@@ -364,83 +364,83 @@ function bt(e) {
364
364
  target: null,
365
365
  isOverTarget: !1,
366
366
  pointerType: null
367
- }), { addGlobalListener: T, removeAllGlobalListeners: S } = it(), B = U((n, f) => {
367
+ }), { addGlobalListener: T, removeAllGlobalListeners: S } = it(), B = H((n, f) => {
368
368
  let P = w.current;
369
369
  if (u || P.didFirePressStart) return !1;
370
370
  let l = !0;
371
371
  if (P.isTriggeringEvent = !0, o) {
372
- let h = new j("pressstart", f, n);
372
+ let h = new X("pressstart", f, n);
373
373
  o(h), l = h.shouldStopPropagation;
374
374
  }
375
375
  return r && r(!0), P.isTriggeringEvent = !1, P.didFirePressStart = !0, $(!0), l;
376
- }), y = U((n, f, P = !0) => {
376
+ }), k = H((n, f, P = !0) => {
377
377
  let l = w.current;
378
378
  if (!l.didFirePressStart) return !1;
379
379
  l.ignoreClickAfterPress = !0, l.didFirePressStart = !1, l.isTriggeringEvent = !0;
380
380
  let h = !0;
381
381
  if (a) {
382
- let s = new j("pressend", f, n);
382
+ let s = new X("pressend", f, n);
383
383
  a(s), h = s.shouldStopPropagation;
384
384
  }
385
385
  if (r && r(!1), $(!1), t && P && !u) {
386
- let s = new j("press", f, n);
386
+ let s = new X("press", f, n);
387
387
  t(s), h && (h = s.shouldStopPropagation);
388
388
  }
389
389
  return l.isTriggeringEvent = !1, h;
390
- }), D = U((n, f) => {
390
+ }), D = H((n, f) => {
391
391
  let P = w.current;
392
392
  if (u) return !1;
393
393
  if (d) {
394
394
  P.isTriggeringEvent = !0;
395
- let l = new j("pressup", f, n);
395
+ let l = new X("pressup", f, n);
396
396
  return d(l), P.isTriggeringEvent = !1, l.shouldStopPropagation;
397
397
  }
398
398
  return !0;
399
- }), N = U((n) => {
399
+ }), N = H((n) => {
400
400
  let f = w.current;
401
- f.isPressed && f.target && (f.isOverTarget && f.pointerType != null && y(C(f.target, n), f.pointerType, !1), f.isPressed = !1, f.isOverTarget = !1, f.activePointerId = null, f.pointerType = null, S(), b || W(f.target));
402
- }), A = U((n) => {
403
- g && N(n);
404
- }), ne = Be(() => {
401
+ f.isPressed && f.target && (f.isOverTarget && f.pointerType != null && k(C(f.target, n), f.pointerType, !1), f.isPressed = !1, f.isOverTarget = !1, f.activePointerId = null, f.pointerType = null, S(), b || Y(f.target));
402
+ }), A = H((n) => {
403
+ v && N(n);
404
+ }), oe = Be(() => {
405
405
  let n = w.current, f = {
406
406
  onKeyDown(l) {
407
- if (oe(l.nativeEvent, l.currentTarget) && l.currentTarget.contains(l.target)) {
407
+ if (re(l.nativeEvent, l.currentTarget) && l.currentTarget.contains(l.target)) {
408
408
  var h;
409
409
  ye(l.target, l.key) && l.preventDefault();
410
410
  let s = !0;
411
411
  if (!n.isPressed && !l.repeat) {
412
412
  n.target = l.currentTarget, n.isPressed = !0, s = B(l, "keyboard");
413
- let i = l.currentTarget, k = (O) => {
414
- oe(O, i) && !O.repeat && i.contains(O.target) && n.target && D(C(n.target, O), "keyboard");
413
+ let g = l.currentTarget, i = (O) => {
414
+ re(O, g) && !O.repeat && g.contains(O.target) && n.target && D(C(n.target, O), "keyboard");
415
415
  };
416
- T(L(l.currentTarget), "keyup", xe(k, P), !0);
416
+ T(I(l.currentTarget), "keyup", xe(i, P), !0);
417
417
  }
418
- s && l.stopPropagation(), l.metaKey && J() && ((h = n.metaKeyEvents) === null || h === void 0 || h.set(l.key, l.nativeEvent));
418
+ s && l.stopPropagation(), l.metaKey && Q() && ((h = n.metaKeyEvents) === null || h === void 0 || h.set(l.key, l.nativeEvent));
419
419
  } else l.key === "Meta" && (n.metaKeyEvents = /* @__PURE__ */ new Map());
420
420
  },
421
421
  onClick(l) {
422
- if (!(l && !l.currentTarget.contains(l.target)) && l && l.button === 0 && !n.isTriggeringEvent && !G.isOpening) {
422
+ if (!(l && !l.currentTarget.contains(l.target)) && l && l.button === 0 && !n.isTriggeringEvent && !V.isOpening) {
423
423
  let h = !0;
424
424
  if (u && l.preventDefault(), !n.ignoreClickAfterPress && !n.ignoreEmulatedMouseEvents && !n.isPressed && (n.pointerType === "virtual" || _e(l.nativeEvent))) {
425
- !u && !m && H(l.currentTarget);
426
- let s = B(l, "virtual"), i = D(l, "virtual"), k = y(l, "virtual");
427
- h = s && i && k;
425
+ !u && !m && R(l.currentTarget);
426
+ let s = B(l, "virtual"), g = D(l, "virtual"), i = k(l, "virtual");
427
+ h = s && g && i;
428
428
  }
429
429
  n.ignoreEmulatedMouseEvents = !1, n.ignoreClickAfterPress = !1, h && l.stopPropagation();
430
430
  }
431
431
  }
432
432
  }, P = (l) => {
433
433
  var h;
434
- if (n.isPressed && n.target && oe(l, n.target)) {
434
+ if (n.isPressed && n.target && re(l, n.target)) {
435
435
  var s;
436
436
  ye(l.target, l.key) && l.preventDefault();
437
- let k = l.target;
438
- y(C(n.target, l), "keyboard", n.target.contains(k)), S(), l.key !== "Enter" && pe(n.target) && n.target.contains(k) && !l[he] && (l[he] = !0, G(n.target, l, !1)), n.isPressed = !1, (s = n.metaKeyEvents) === null || s === void 0 || s.delete(l.key);
437
+ let i = l.target;
438
+ k(C(n.target, l), "keyboard", n.target.contains(i)), S(), l.key !== "Enter" && pe(n.target) && n.target.contains(i) && !l[ve] && (l[ve] = !0, V(n.target, l, !1)), n.isPressed = !1, (s = n.metaKeyEvents) === null || s === void 0 || s.delete(l.key);
439
439
  } else if (l.key === "Meta" && (!((h = n.metaKeyEvents) === null || h === void 0) && h.size)) {
440
- var i;
441
- let k = n.metaKeyEvents;
440
+ var g;
441
+ let i = n.metaKeyEvents;
442
442
  n.metaKeyEvents = void 0;
443
- for (let O of k.values()) (i = n.target) === null || i === void 0 || i.dispatchEvent(new KeyboardEvent("keyup", O));
443
+ for (let O of i.values()) (g = n.target) === null || g === void 0 || g.dispatchEvent(new KeyboardEvent("keyup", O));
444
444
  }
445
445
  };
446
446
  if (typeof PointerEvent < "u") {
@@ -451,29 +451,22 @@ function bt(e) {
451
451
  return;
452
452
  }
453
453
  se(i.currentTarget) && i.preventDefault(), n.pointerType = i.pointerType;
454
- let k = !0;
455
- if (!n.isPressed) {
456
- n.isPressed = !0, n.isOverTarget = !0, n.activePointerId = i.pointerId, n.target = i.currentTarget, !u && !m && H(i.currentTarget), b || be(n.target), k = B(i, n.pointerType);
457
- let O = i.target;
458
- "releasePointerCapture" in O && O.releasePointerCapture(i.pointerId), T(L(i.currentTarget), "pointerup", l, !1), T(L(i.currentTarget), "pointercancel", s, !1);
459
- }
460
- k && i.stopPropagation();
454
+ let O = !0;
455
+ n.isPressed || (n.isPressed = !0, n.isOverTarget = !0, n.activePointerId = i.pointerId, n.target = i.currentTarget, !u && !m && R(i.currentTarget), b || be(n.target), O = B(i, n.pointerType), T(I(i.currentTarget), "pointermove", l, !1), T(I(i.currentTarget), "pointerup", h, !1), T(I(i.currentTarget), "pointercancel", g, !1)), O && i.stopPropagation();
461
456
  }, f.onMouseDown = (i) => {
462
457
  i.currentTarget.contains(i.target) && i.button === 0 && (se(i.currentTarget) && i.preventDefault(), i.stopPropagation());
463
458
  }, f.onPointerUp = (i) => {
464
- !i.currentTarget.contains(i.target) || n.pointerType === "virtual" || i.button === 0 && D(i, n.pointerType || i.pointerType);
465
- }, f.onPointerEnter = (i) => {
466
- i.pointerId === n.activePointerId && n.target && !n.isOverTarget && n.pointerType != null && (n.isOverTarget = !0, B(C(n.target, i), n.pointerType));
467
- }, f.onPointerLeave = (i) => {
468
- i.pointerId === n.activePointerId && n.target && n.isOverTarget && n.pointerType != null && (n.isOverTarget = !1, y(C(n.target, i), n.pointerType, !1), A(i));
459
+ !i.currentTarget.contains(i.target) || n.pointerType === "virtual" || i.button === 0 && M(i, i.currentTarget) && D(i, n.pointerType || i.pointerType);
469
460
  };
470
461
  let l = (i) => {
471
- i.pointerId === n.activePointerId && n.isPressed && i.button === 0 && n.target && (n.target.contains(i.target) && n.pointerType != null ? y(C(n.target, i), n.pointerType) : n.isOverTarget && n.pointerType != null && y(C(n.target, i), n.pointerType, !1), n.isPressed = !1, n.isOverTarget = !1, n.activePointerId = null, n.pointerType = null, S(), b || W(n.target), "ontouchend" in n.target && i.pointerType !== "mouse" && T(n.target, "touchend", h, {
462
+ i.pointerId === n.activePointerId && (n.target && M(i, n.target) ? !n.isOverTarget && n.pointerType != null && (n.isOverTarget = !0, B(C(n.target, i), n.pointerType)) : n.target && n.isOverTarget && n.pointerType != null && (n.isOverTarget = !1, k(C(n.target, i), n.pointerType, !1), A(i)));
463
+ }, h = (i) => {
464
+ i.pointerId === n.activePointerId && n.isPressed && i.button === 0 && n.target && (M(i, n.target) && n.pointerType != null ? k(C(n.target, i), n.pointerType) : n.isOverTarget && n.pointerType != null && k(C(n.target, i), n.pointerType, !1), n.isPressed = !1, n.isOverTarget = !1, n.activePointerId = null, n.pointerType = null, S(), b || Y(n.target), "ontouchend" in n.target && i.pointerType !== "mouse" && T(n.target, "touchend", s, {
472
465
  once: !0
473
466
  }));
474
- }, h = (i) => {
475
- Ie(i.currentTarget) && i.preventDefault();
476
467
  }, s = (i) => {
468
+ Ie(i.target) && i.preventDefault();
469
+ }, g = (i) => {
477
470
  N(i);
478
471
  };
479
472
  f.onDragStart = (i) => {
@@ -486,15 +479,15 @@ function bt(e) {
486
479
  s.stopPropagation();
487
480
  return;
488
481
  }
489
- n.isPressed = !0, n.isOverTarget = !0, n.target = s.currentTarget, n.pointerType = _e(s.nativeEvent) ? "virtual" : "mouse", !u && !m && H(s.currentTarget), B(s, n.pointerType) && s.stopPropagation(), T(L(s.currentTarget), "mouseup", l, !1);
482
+ n.isPressed = !0, n.isOverTarget = !0, n.target = s.currentTarget, n.pointerType = _e(s.nativeEvent) ? "virtual" : "mouse", !u && !m && R(s.currentTarget), B(s, n.pointerType) && s.stopPropagation(), T(I(s.currentTarget), "mouseup", l, !1);
490
483
  }, f.onMouseEnter = (s) => {
491
484
  if (!s.currentTarget.contains(s.target)) return;
492
- let i = !0;
493
- n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !0, i = B(s, n.pointerType)), i && s.stopPropagation();
485
+ let g = !0;
486
+ n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !0, g = B(s, n.pointerType)), g && s.stopPropagation();
494
487
  }, f.onMouseLeave = (s) => {
495
488
  if (!s.currentTarget.contains(s.target)) return;
496
- let i = !0;
497
- n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !1, i = y(s, n.pointerType, !1), A(s)), i && s.stopPropagation();
489
+ let g = !0;
490
+ n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !1, g = k(s, n.pointerType, !1), A(s)), g && s.stopPropagation();
498
491
  }, f.onMouseUp = (s) => {
499
492
  s.currentTarget.contains(s.target) && !n.ignoreEmulatedMouseEvents && s.button === 0 && D(s, n.pointerType || "mouse");
500
493
  };
@@ -504,30 +497,30 @@ function bt(e) {
504
497
  n.ignoreEmulatedMouseEvents = !1;
505
498
  return;
506
499
  }
507
- n.target && re(s, n.target) && n.pointerType != null ? y(C(n.target, s), n.pointerType) : n.target && n.isOverTarget && n.pointerType != null && y(C(n.target, s), n.pointerType, !1), n.isOverTarget = !1;
500
+ n.target && M(s, n.target) && n.pointerType != null ? k(C(n.target, s), n.pointerType) : n.target && n.isOverTarget && n.pointerType != null && k(C(n.target, s), n.pointerType, !1), n.isOverTarget = !1;
508
501
  }
509
502
  };
510
503
  f.onTouchStart = (s) => {
511
504
  if (!s.currentTarget.contains(s.target)) return;
512
- let i = gt(s.nativeEvent);
513
- if (!i) return;
514
- n.activePointerId = i.identifier, n.ignoreEmulatedMouseEvents = !0, n.isOverTarget = !0, n.isPressed = !0, n.target = s.currentTarget, n.pointerType = "touch", !u && !m && H(s.currentTarget), b || be(n.target), B(K(n.target, s), n.pointerType) && s.stopPropagation(), T(ie(s.currentTarget), "scroll", h, !0);
505
+ let g = gt(s.nativeEvent);
506
+ if (!g) return;
507
+ n.activePointerId = g.identifier, n.ignoreEmulatedMouseEvents = !0, n.isOverTarget = !0, n.isPressed = !0, n.target = s.currentTarget, n.pointerType = "touch", !u && !m && R(s.currentTarget), b || be(n.target), B(K(n.target, s), n.pointerType) && s.stopPropagation(), T(ie(s.currentTarget), "scroll", h, !0);
515
508
  }, f.onTouchMove = (s) => {
516
509
  if (!s.currentTarget.contains(s.target)) return;
517
510
  if (!n.isPressed) {
518
511
  s.stopPropagation();
519
512
  return;
520
513
  }
521
- let i = ve(s.nativeEvent, n.activePointerId), k = !0;
522
- i && re(i, s.currentTarget) ? !n.isOverTarget && n.pointerType != null && (n.isOverTarget = !0, k = B(K(n.target, s), n.pointerType)) : n.isOverTarget && n.pointerType != null && (n.isOverTarget = !1, k = y(K(n.target, s), n.pointerType, !1), A(K(n.target, s))), k && s.stopPropagation();
514
+ let g = he(s.nativeEvent, n.activePointerId), i = !0;
515
+ g && M(g, s.currentTarget) ? !n.isOverTarget && n.pointerType != null && (n.isOverTarget = !0, i = B(K(n.target, s), n.pointerType)) : n.isOverTarget && n.pointerType != null && (n.isOverTarget = !1, i = k(K(n.target, s), n.pointerType, !1), A(K(n.target, s))), i && s.stopPropagation();
523
516
  }, f.onTouchEnd = (s) => {
524
517
  if (!s.currentTarget.contains(s.target)) return;
525
518
  if (!n.isPressed) {
526
519
  s.stopPropagation();
527
520
  return;
528
521
  }
529
- let i = ve(s.nativeEvent, n.activePointerId), k = !0;
530
- i && re(i, s.currentTarget) && n.pointerType != null ? (D(K(n.target, s), n.pointerType), k = y(K(n.target, s), n.pointerType)) : n.isOverTarget && n.pointerType != null && (k = y(K(n.target, s), n.pointerType, !1)), k && s.stopPropagation(), n.isPressed = !1, n.activePointerId = null, n.isOverTarget = !1, n.ignoreEmulatedMouseEvents = !0, n.target && !b && W(n.target), S();
522
+ let g = he(s.nativeEvent, n.activePointerId), i = !0;
523
+ g && M(g, s.currentTarget) && n.pointerType != null ? (D(K(n.target, s), n.pointerType), i = k(K(n.target, s), n.pointerType)) : n.isOverTarget && n.pointerType != null && (i = k(K(n.target, s), n.pointerType, !1)), i && s.stopPropagation(), n.isPressed = !1, n.activePointerId = null, n.isOverTarget = !1, n.ignoreEmulatedMouseEvents = !0, n.target && !b && Y(n.target), S();
531
524
  }, f.onTouchCancel = (s) => {
532
525
  s.currentTarget.contains(s.target) && (s.stopPropagation(), n.isPressed && N(K(n.target, s)));
533
526
  };
@@ -553,24 +546,24 @@ function bt(e) {
553
546
  b,
554
547
  N,
555
548
  A,
556
- y,
549
+ k,
557
550
  B,
558
551
  D
559
552
  ]);
560
- return q(() => () => {
553
+ return J(() => () => {
561
554
  var n;
562
- b || W((n = w.current.target) !== null && n !== void 0 ? n : void 0);
555
+ b || Y((n = w.current.target) !== null && n !== void 0 ? n : void 0);
563
556
  }, [
564
557
  b
565
558
  ]), {
566
559
  isPressed: p || _,
567
- pressProps: R(x, ne)
560
+ pressProps: G(x, oe)
568
561
  };
569
562
  }
570
563
  function pe(e) {
571
564
  return e.tagName === "A" && e.hasAttribute("href");
572
565
  }
573
- function oe(e, t) {
566
+ function re(e, t) {
574
567
  const { key: r, code: o } = e, a = t, d = a.getAttribute("role");
575
568
  return (r === "Enter" || r === " " || r === "Spacebar" || o === "Space") && !(a instanceof ie(a).HTMLInputElement && !Le(a, r) || a instanceof ie(a).HTMLTextAreaElement || a.isContentEditable) && // Links should only trigger with Enter key
576
569
  !((d === "link" || !d && pe(a)) && r !== "Enter");
@@ -579,7 +572,7 @@ function gt(e) {
579
572
  const { targetTouches: t } = e;
580
573
  return t.length > 0 ? t[0] : null;
581
574
  }
582
- function ve(e, t) {
575
+ function he(e, t) {
583
576
  const r = e.changedTouches;
584
577
  for (let o = 0; o < r.length; o++) {
585
578
  const a = r[o];
@@ -611,7 +604,7 @@ function C(e, t) {
611
604
  clientY: o
612
605
  };
613
606
  }
614
- function ht(e) {
607
+ function vt(e) {
615
608
  let t = 0, r = 0;
616
609
  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), {
617
610
  top: e.clientY - r,
@@ -620,12 +613,12 @@ function ht(e) {
620
613
  left: e.clientX - t
621
614
  };
622
615
  }
623
- function vt(e, t) {
616
+ function ht(e, t) {
624
617
  return !(e.left > t.right || t.left > e.right || e.top > t.bottom || t.top > e.bottom);
625
618
  }
626
- function re(e, t) {
627
- let r = t.getBoundingClientRect(), o = ht(e);
628
- return vt(r, o);
619
+ function M(e, t) {
620
+ let r = t.getBoundingClientRect(), o = vt(e);
621
+ return ht(r, o);
629
622
  }
630
623
  function se(e) {
631
624
  return !(e instanceof HTMLElement) || !e.hasAttribute("draggable");
@@ -650,10 +643,10 @@ const yt = /* @__PURE__ */ new Set([
650
643
  function Le(e, t) {
651
644
  return e.type === "checkbox" || e.type === "radio" ? t === " " : yt.has(e.type);
652
645
  }
653
- let Q = !1, ae = 0;
646
+ let Z = !1, ae = 0;
654
647
  function ce() {
655
- Q = !0, setTimeout(() => {
656
- Q = !1;
648
+ Z = !0, setTimeout(() => {
649
+ Z = !1;
657
650
  }, 50);
658
651
  }
659
652
  function ke(e) {
@@ -666,14 +659,14 @@ function kt() {
666
659
  };
667
660
  }
668
661
  function wt(e) {
669
- let { onHoverStart: t, onHoverChange: r, onHoverEnd: o, isDisabled: a } = e, [d, u] = $e(!1), p = Z({
662
+ let { onHoverStart: t, onHoverChange: r, onHoverEnd: o, isDisabled: a } = e, [d, u] = $e(!1), p = ee({
670
663
  isHovered: !1,
671
664
  ignoreEmulatedMouseEvents: !1,
672
665
  pointerType: "",
673
666
  target: null
674
667
  }).current;
675
- q(kt, []);
676
- let { hoverProps: m, triggerHoverEnd: g } = Be(() => {
668
+ J(kt, []);
669
+ let { hoverProps: m, triggerHoverEnd: v } = Be(() => {
677
670
  let b = (_, $) => {
678
671
  if (p.pointerType = $, a || $ === "touch" || p.isHovered || !_.currentTarget.contains(_.target)) return;
679
672
  p.isHovered = !0;
@@ -694,13 +687,13 @@ function wt(e) {
694
687
  }), r && r(!1), u(!1);
695
688
  }, x = {};
696
689
  return typeof PointerEvent < "u" ? (x.onPointerEnter = (_) => {
697
- Q && _.pointerType === "mouse" || b(_, _.pointerType);
690
+ Z && _.pointerType === "mouse" || b(_, _.pointerType);
698
691
  }, x.onPointerLeave = (_) => {
699
692
  !a && _.currentTarget.contains(_.target) && E(_, _.pointerType);
700
693
  }) : (x.onTouchStart = () => {
701
694
  p.ignoreEmulatedMouseEvents = !0;
702
695
  }, x.onMouseEnter = (_) => {
703
- !p.ignoreEmulatedMouseEvents && !Q && b(_, "mouse"), p.ignoreEmulatedMouseEvents = !1;
696
+ !p.ignoreEmulatedMouseEvents && !Z && b(_, "mouse"), p.ignoreEmulatedMouseEvents = !1;
704
697
  }, x.onMouseLeave = (_) => {
705
698
  !a && _.currentTarget.contains(_.target) && E(_, "mouse");
706
699
  }), {
@@ -714,8 +707,8 @@ function wt(e) {
714
707
  a,
715
708
  p
716
709
  ]);
717
- return q(() => {
718
- a && g({
710
+ return J(() => {
711
+ a && v({
719
712
  currentTarget: p.target
720
713
  }, p.pointerType);
721
714
  }, [
@@ -734,7 +727,7 @@ function Tt(e, t) {
734
727
  onPressEnd: u,
735
728
  onPressUp: p,
736
729
  onPressChange: m,
737
- preventFocusOnPress: g,
730
+ preventFocusOnPress: v,
738
731
  allowFocusWhenDisabled: b,
739
732
  // @ts-ignore
740
733
  onClick: E,
@@ -749,7 +742,7 @@ function Tt(e, t) {
749
742
  } : T = {
750
743
  role: "button",
751
744
  tabIndex: o ? void 0 : 0,
752
- href: r === "a" && !o ? x : void 0,
745
+ href: r === "a" && o ? void 0 : x,
753
746
  target: r === "a" ? _ : void 0,
754
747
  type: r === "input" ? w : void 0,
755
748
  disabled: r === "input" ? o : void 0,
@@ -763,16 +756,16 @@ function Tt(e, t) {
763
756
  onPress: a,
764
757
  onPressUp: p,
765
758
  isDisabled: o,
766
- preventFocusOnPress: g,
759
+ preventFocusOnPress: v,
767
760
  ref: t
768
- }), { focusableProps: y } = Ve(e, t);
769
- b && (y.tabIndex = o ? -1 : y.tabIndex);
770
- let D = R(y, S, Qe(e, {
761
+ }), { focusableProps: k } = Ve(e, t);
762
+ b && (k.tabIndex = o ? -1 : k.tabIndex);
763
+ let D = G(k, S, Qe(e, {
771
764
  labelable: !0
772
765
  }));
773
766
  return {
774
767
  isPressed: B,
775
- buttonProps: R(T, D, {
768
+ buttonProps: G(T, D, {
776
769
  "aria-haspopup": e["aria-haspopup"],
777
770
  "aria-expanded": e["aria-expanded"],
778
771
  "aria-controls": e["aria-controls"],
@@ -819,7 +812,7 @@ var $t = (e, t, r) => {
819
812
  return !1;
820
813
  }
821
814
  return !0;
822
- }, te = (e) => (t) => {
815
+ }, ne = (e) => (t) => {
823
816
  var r = e.defaultClassName, o = Te(Te({}, e.defaultVariants), t);
824
817
  for (var a in o) {
825
818
  var d, u = (d = o[a]) !== null && d !== void 0 ? d : e.defaultVariants[a];
@@ -833,10 +826,10 @@ var $t = (e, t, r) => {
833
826
  m && (r += " " + m);
834
827
  }
835
828
  }
836
- for (var [g, b] of e.compoundVariants)
837
- $t(g, o, e.defaultVariants) && (r += " " + b);
829
+ for (var [v, b] of e.compoundVariants)
830
+ $t(v, o, e.defaultVariants) && (r += " " + b);
838
831
  return r;
839
- }, Bt = te({ defaultClassName: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy0", variantClassNames: { disabled: { true: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy1", false: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy2" }, kind: { default: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy3", link: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy4", confirm: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy5", delete: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy6", key: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy7", icon: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy8" }, spinning: { true: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy9", false: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxya" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyb"], [{ kind: "default", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyc"], [{ kind: "confirm", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyd"], [{ kind: "delete", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxye"], [{ kind: "key", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyf"], [{ disabled: !0, spinning: !1 }, "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyg"]] }), Pt = te({ defaultClassName: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyh", variantClassNames: { disabled: { true: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyi", false: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyj" }, kind: { icon: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyk", default: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyl", delete: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxym", key: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyn", confirm: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyo", link: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyp" }, spinning: { true: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyq", false: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyr" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [] }), xt = "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy11", St = te({ defaultClassName: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy12", variantClassNames: { spinning: { true: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy13", false: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy14" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] }), Nt = te({ defaultClassName: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxys", variantClassNames: { spinning: { true: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyt", false: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyu" }, kind: { icon: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyv", default: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyw", delete: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyx", key: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyy", confirm: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxyz", link: "pkg_sps-woodland_buttons__version_8_24_0__hash_125pcxy10" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
832
+ }, Bt = ne({ defaultClassName: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy0", variantClassNames: { disabled: { true: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy1", false: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy2" }, kind: { default: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy3", link: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy4", confirm: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy5", delete: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy6", key: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy7", icon: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy8" }, spinning: { true: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy9", false: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxya" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [[{ kind: "icon", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyb"], [{ kind: "default", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyc"], [{ kind: "confirm", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyd"], [{ kind: "delete", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxye"], [{ kind: "key", spinning: !0 }, "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyf"], [{ disabled: !0, spinning: !1 }, "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyg"]] }), Pt = ne({ defaultClassName: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyh", variantClassNames: { disabled: { true: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyi", false: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyj" }, kind: { icon: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyk", default: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyl", delete: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxym", key: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyn", confirm: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyo", link: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyp" }, spinning: { true: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyq", false: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyr" } }, defaultVariants: { disabled: !1, kind: "default", spinning: !1 }, compoundVariants: [] }), xt = "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy11", St = ne({ defaultClassName: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy12", variantClassNames: { spinning: { true: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy13", false: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy14" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] }), Nt = ne({ defaultClassName: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxys", variantClassNames: { spinning: { true: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyt", false: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyu" }, kind: { icon: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyv", default: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyw", delete: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyx", key: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyy", confirm: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxyz", link: "pkg_sps-woodland_buttons__version_8_24_2__hash_125pcxy10" } }, defaultVariants: { spinning: !1 }, compoundVariants: [] });
840
833
  const Ae = c.forwardRef(
841
834
  ({
842
835
  as: e,
@@ -848,7 +841,7 @@ const Ae = c.forwardRef(
848
841
  disabled: u,
849
842
  href: p,
850
843
  icon: m,
851
- kind: g = "default",
844
+ kind: v = "default",
852
845
  spinning: b,
853
846
  spinningTitle: E,
854
847
  title: x,
@@ -859,14 +852,14 @@ const Ae = c.forwardRef(
859
852
  // the button element should be disabled if the button is marked as disabled or spinning
860
853
  isDisabled: u ?? d ?? b,
861
854
  ..._
862
- }, { "data-testid": S } = _, B = c.useRef(null), y = $ || B, { buttonProps: D } = Tt(
855
+ }, { "data-testid": S } = _, B = c.useRef(null), k = $ || B, { buttonProps: D } = Tt(
863
856
  T,
864
- y
865
- ), { hoverProps: N } = wt({ isDisabled: T.isDisabled }), { type: A, ...ne } = D, n = {
866
- ...R(ne, N),
867
- ref: y,
857
+ k
858
+ ), { hoverProps: N } = wt({ isDisabled: T.isDisabled }), { type: A, ...oe } = D, n = {
859
+ ...G(oe, N),
860
+ ref: k,
868
861
  title: x,
869
- className: p ? Nt({ spinning: b, kind: g }) : Pt({ disabled: d || u, kind: g, spinning: b }),
862
+ className: p ? Nt({ spinning: b, kind: v }) : Pt({ disabled: d || u, kind: v, spinning: b }),
870
863
  ...p ? { href: p } : { type: A },
871
864
  ..._
872
865
  }, { t: f } = c.useContext(Fe), P = m && /* @__PURE__ */ c.createElement(
@@ -879,7 +872,7 @@ const Ae = c.forwardRef(
879
872
  }
880
873
  );
881
874
  let l;
882
- g === "default" || g === "icon" || g === "link" ? l = "dark" : l = "light";
875
+ v === "default" || v === "icon" || v === "link" ? l = "dark" : l = "light";
883
876
  const h = b && /* @__PURE__ */ c.createElement(
884
877
  Ue,
885
878
  {
@@ -895,7 +888,7 @@ const Ae = c.forwardRef(
895
888
  className: He(
896
889
  Bt({
897
890
  disabled: d || u,
898
- kind: g,
891
+ kind: v,
899
892
  spinning: b
900
893
  }),
901
894
  a
@@ -938,7 +931,7 @@ const Dt = {
938
931
  examples: {
939
932
  withoutIcons: {
940
933
  description: "Without Icons",
941
- react: v`
934
+ react: y`
942
935
  import { Button } from "@sps-woodland/buttons";
943
936
  import { sprinkles } from "@sps-woodland/tokens";
944
937
 
@@ -957,7 +950,7 @@ const Dt = {
957
950
  },
958
951
  withIcons: {
959
952
  description: "With Icons",
960
- react: v`
953
+ react: y`
961
954
  import { Button } from "@sps-woodland/buttons";
962
955
  import { sprinkles } from "@sps-woodland/tokens";
963
956
 
@@ -976,7 +969,7 @@ const Dt = {
976
969
  },
977
970
  spinning: {
978
971
  description: "Spinning",
979
- react: v`
972
+ react: y`
980
973
  import { Button } from "@sps-woodland/buttons";
981
974
  import { sprinkles } from "@sps-woodland/tokens";
982
975
 
@@ -1000,7 +993,7 @@ const Dt = {
1000
993
  examples: {
1001
994
  withoutIcons: {
1002
995
  description: "Without Icons",
1003
- react: v`
996
+ react: y`
1004
997
  import { SpsDropdown } from "@spscommerce/ds-react";
1005
998
 
1006
999
  function Component() {
@@ -1042,7 +1035,7 @@ const Dt = {
1042
1035
  },
1043
1036
  withIcons: {
1044
1037
  description: "With Icons",
1045
- react: v`
1038
+ react: y`
1046
1039
  import { SpsDropdown } from "@spscommerce/ds-react";
1047
1040
 
1048
1041
  function Component() {
@@ -1089,7 +1082,7 @@ const Dt = {
1089
1082
  },
1090
1083
  spinning: {
1091
1084
  description: "Spinning",
1092
- react: v`
1085
+ react: y`
1093
1086
  import { SpsDropdown } from "@spscommerce/ds-react";
1094
1087
 
1095
1088
  function Component() {
@@ -1135,7 +1128,7 @@ const Dt = {
1135
1128
  examples: {
1136
1129
  withoutIcons: {
1137
1130
  description: "Without Icons",
1138
- react: v`
1131
+ react: y`
1139
1132
  import { SpsSplitButton } from "@spscommerce/ds-react";
1140
1133
 
1141
1134
  function Component() {
@@ -1165,7 +1158,7 @@ const Dt = {
1165
1158
  },
1166
1159
  withIcons: {
1167
1160
  description: "With Icons",
1168
- react: v`
1161
+ react: y`
1169
1162
  import { SpsSplitButton } from "@spscommerce/ds-react";
1170
1163
 
1171
1164
  function Component() {
@@ -1213,7 +1206,7 @@ const Dt = {
1213
1206
  examples: {
1214
1207
  standard: {
1215
1208
  description: "Standard Icon Buttons",
1216
- react: v`
1209
+ react: y`
1217
1210
  import { Button } from "@sps-woodland/buttons";
1218
1211
  import { sprinkles } from "@sps-woodland/tokens";
1219
1212
 
@@ -1236,7 +1229,7 @@ const Dt = {
1236
1229
  },
1237
1230
  dropdown: {
1238
1231
  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"), ".")),
1239
- react: v`
1232
+ react: y`
1240
1233
  import { SpsDropdown } from "@spscommerce/ds-react";
1241
1234
 
1242
1235
  function Component() {
@@ -1254,7 +1247,7 @@ const Dt = {
1254
1247
  },
1255
1248
  spinner: {
1256
1249
  description: "Spinner",
1257
- react: v`
1250
+ react: y`
1258
1251
  import { Button } from "@sps-woodland/buttons";
1259
1252
 
1260
1253
  function Component() {
@@ -1274,7 +1267,7 @@ const Dt = {
1274
1267
  examples: {
1275
1268
  withoutIcons: {
1276
1269
  description: "Without Icons",
1277
- react: v`
1270
+ react: y`
1278
1271
  import { Button } from "@sps-woodland/buttons";
1279
1272
  import { sprinkles } from "@sps-woodland/tokens";
1280
1273
 
@@ -1291,7 +1284,7 @@ const Dt = {
1291
1284
  },
1292
1285
  withIcons: {
1293
1286
  description: "With Icons",
1294
- react: v`
1287
+ react: y`
1295
1288
  import { Button } from "@sps-woodland/buttons";
1296
1289
  import { sprinkles } from "@sps-woodland/tokens";
1297
1290
 
@@ -1308,7 +1301,7 @@ const Dt = {
1308
1301
  },
1309
1302
  spinner: {
1310
1303
  description: "Spinner",
1311
- react: v`
1304
+ react: y`
1312
1305
  import { Button } from "@sps-woodland/buttons";
1313
1306
 
1314
1307
  function Component() {
@@ -1327,7 +1320,7 @@ const Dt = {
1327
1320
  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."),
1328
1321
  examples: {
1329
1322
  basic: {
1330
- react: v`
1323
+ react: y`
1331
1324
  import { Button } from "@sps-woodland/buttons";
1332
1325
  import { sprinkles } from "@sps-woodland/tokens";
1333
1326
 
@@ -1355,7 +1348,7 @@ const Dt = {
1355
1348
  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.",
1356
1349
  examples: {
1357
1350
  basic: {
1358
- react: v`
1351
+ react: y`
1359
1352
  import { Button } from "@sps-woodland/buttons";
1360
1353
 
1361
1354
  function Component() {
@@ -1377,7 +1370,7 @@ const Dt = {
1377
1370
  examples: {
1378
1371
  basic: {
1379
1372
  description: "Basic Button Groups",
1380
- react: v`
1373
+ react: y`
1381
1374
  import { Button } from "@sps-woodland/buttons";
1382
1375
  import { sprinkles } from "@sps-woodland/tokens";
1383
1376
 
@@ -1393,7 +1386,7 @@ const Dt = {
1393
1386
  },
1394
1387
  icon: {
1395
1388
  description: "Icon Button Groups",
1396
- react: v`
1389
+ react: y`
1397
1390
  import { Button } from "@sps-woodland/buttons";
1398
1391
 
1399
1392
  function Component() {
@@ -1408,7 +1401,7 @@ const Dt = {
1408
1401
  },
1409
1402
  textAndIcons: {
1410
1403
  description: "Text Buttons + Icon Buttons Group",
1411
- react: v`
1404
+ react: y`
1412
1405
  import { Button } from "@sps-woodland/buttons";
1413
1406
  import { sprinkles } from "@sps-woodland/tokens";
1414
1407
  import { VericalRule } from "@sps-woodland/core";
@@ -1427,7 +1420,7 @@ const Dt = {
1427
1420
  },
1428
1421
  textAndBasic: {
1429
1422
  description: "Text Buttons + Basic Buttons Group",
1430
- react: v`
1423
+ react: y`
1431
1424
  import { Button } from "@sps-woodland/buttons";
1432
1425
  import { sprinkles } from "@sps-woodland/tokens";
1433
1426
  import { VericalRule } from "@sps-woodland/core";
@@ -1447,7 +1440,7 @@ const Dt = {
1447
1440
  },
1448
1441
  iconsAndBasic: {
1449
1442
  description: "Icon Buttons + Basic Buttons Group",
1450
- react: v`
1443
+ react: y`
1451
1444
  import { Button } from "@sps-woodland/buttons";
1452
1445
  import { sprinkles } from "@sps-woodland/tokens";
1453
1446
  import { VericalRule } from "@sps-woodland/core";
@@ -1468,7 +1461,7 @@ const Dt = {
1468
1461
  },
1469
1462
  textIconsAndBasic: {
1470
1463
  description: "Text Buttons + Icon Buttons + Basic Buttons Group",
1471
- react: v`
1464
+ react: y`
1472
1465
  import { Button } from "@sps-woodland/buttons";
1473
1466
  import { sprinkles } from "@sps-woodland/tokens";
1474
1467
  import { VericalRule } from "@sps-woodland/core";