@purpurds/accordion 5.13.0 → 5.14.0

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.
@@ -1,6 +1,6 @@
1
- import { jsx as y, jsxs as X } from "react/jsx-runtime";
1
+ import { jsx as A, jsxs as W } from "react/jsx-runtime";
2
2
  import * as $e from "react";
3
- import u, { createContext as ee, useMemo as U, createElement as A, useContext as _e, useCallback as H, forwardRef as I, Children as S, isValidElement as V, cloneElement as G, Fragment as qe, useRef as C, useEffect as k, useState as re, useLayoutEffect as Ue, useReducer as Ve } from "react";
3
+ import u, { createContext as ee, useMemo as V, createElement as y, useContext as _e, useCallback as H, forwardRef as I, Children as S, isValidElement as U, cloneElement as G, Fragment as qe, useRef as C, useEffect as k, useState as re, useLayoutEffect as Ve, useReducer as Ue } from "react";
4
4
  import { flushSync as ze } from "react-dom";
5
5
  function Be(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -42,7 +42,7 @@ var me = { exports: {} };
42
42
  })();
43
43
  })(me);
44
44
  var He = me.exports;
45
- const Ge = /* @__PURE__ */ Be(He), j = {
45
+ const Ge = /* @__PURE__ */ Be(He), L = {
46
46
  "purpur-heading": "_purpur-heading_k9fhq_1",
47
47
  "purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
48
48
  "purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
@@ -67,7 +67,7 @@ const Ge = /* @__PURE__ */ Be(He), j = {
67
67
  TITLE600: "title-600",
68
68
  TITLE700: "title-700",
69
69
  SUBSECTION100: "subsection-100"
70
- }, L = "purpur-heading", oe = ({
70
+ }, j = "purpur-heading", oe = ({
71
71
  ["data-testid"]: e,
72
72
  children: r,
73
73
  className: n = "",
@@ -79,14 +79,14 @@ const Ge = /* @__PURE__ */ Be(He), j = {
79
79
  }) => {
80
80
  const s = t, l = Ge([
81
81
  n,
82
- j[L],
83
- j[`${L}--${a}`],
82
+ L[j],
83
+ L[`${j}--${a}`],
84
84
  {
85
- [j[`${L}--hyphens`]]: o,
86
- [j[`${L}--negative`]]: c
85
+ [L[`${j}--hyphens`]]: o,
86
+ [L[`${j}--negative`]]: c
87
87
  }
88
88
  ]);
89
- return /* @__PURE__ */ y(s, { ...i, className: l, "data-testid": e, children: r });
89
+ return /* @__PURE__ */ A(s, { ...i, className: l, "data-testid": e, children: r });
90
90
  };
91
91
  oe.displayName = "Heading";
92
92
  function h() {
@@ -108,11 +108,11 @@ function ae(e, r = []) {
108
108
  a
109
109
  ];
110
110
  function l(p) {
111
- const { scope: _, children: f, ...b } = p, x = (_ == null ? void 0 : _[e][s]) || i, g = U(
111
+ const { scope: _, children: f, ...b } = p, x = (_ == null ? void 0 : _[e][s]) || i, g = V(
112
112
  () => b,
113
113
  Object.values(b)
114
114
  );
115
- return /* @__PURE__ */ A(x.Provider, {
115
+ return /* @__PURE__ */ y(x.Provider, {
116
116
  value: g
117
117
  }, f);
118
118
  }
@@ -131,7 +131,7 @@ function ae(e, r = []) {
131
131
  const t = n.map((a) => /* @__PURE__ */ ee(a));
132
132
  return function(i) {
133
133
  const s = (i == null ? void 0 : i[e]) || t;
134
- return U(
134
+ return V(
135
135
  () => ({
136
136
  [`__scope${e}`]: {
137
137
  ...i,
@@ -168,7 +168,7 @@ function Ke(...e) {
168
168
  ...p
169
169
  };
170
170
  }, {});
171
- return U(
171
+ return V(
172
172
  () => ({
173
173
  [`__scope${r.scopeName}`]: a
174
174
  }),
@@ -180,43 +180,43 @@ function Ke(...e) {
180
180
  };
181
181
  return n.scopeName = r.scopeName, n;
182
182
  }
183
- function Ze(e, r) {
183
+ function Ye(e, r) {
184
184
  typeof e == "function" ? e(r) : e != null && (e.current = r);
185
185
  }
186
186
  function he(...e) {
187
187
  return (r) => e.forEach(
188
- (n) => Ze(n, r)
188
+ (n) => Ye(n, r)
189
189
  );
190
190
  }
191
191
  function M(...e) {
192
192
  return H(he(...e), e);
193
193
  }
194
194
  const z = /* @__PURE__ */ I((e, r) => {
195
- const { children: n, ...o } = e, c = S.toArray(n), t = c.find(Ye);
195
+ const { children: n, ...o } = e, c = S.toArray(n), t = c.find(Je);
196
196
  if (t) {
197
- const a = t.props.children, i = c.map((s) => s === t ? S.count(a) > 1 ? S.only(null) : /* @__PURE__ */ V(a) ? a.props.children : null : s);
198
- return /* @__PURE__ */ A(te, h({}, o, {
197
+ const a = t.props.children, i = c.map((s) => s === t ? S.count(a) > 1 ? S.only(null) : /* @__PURE__ */ U(a) ? a.props.children : null : s);
198
+ return /* @__PURE__ */ y(te, h({}, o, {
199
199
  ref: r
200
- }), /* @__PURE__ */ V(a) ? /* @__PURE__ */ G(a, void 0, i) : null);
200
+ }), /* @__PURE__ */ U(a) ? /* @__PURE__ */ G(a, void 0, i) : null);
201
201
  }
202
- return /* @__PURE__ */ A(te, h({}, o, {
202
+ return /* @__PURE__ */ y(te, h({}, o, {
203
203
  ref: r
204
204
  }), n);
205
205
  });
206
206
  z.displayName = "Slot";
207
207
  const te = /* @__PURE__ */ I((e, r) => {
208
208
  const { children: n, ...o } = e;
209
- return /* @__PURE__ */ V(n) ? /* @__PURE__ */ G(n, {
210
- ...Je(o, n.props),
209
+ return /* @__PURE__ */ U(n) ? /* @__PURE__ */ G(n, {
210
+ ...Xe(o, n.props),
211
211
  ref: r ? he(r, n.ref) : n.ref
212
212
  }) : S.count(n) > 1 ? S.only(null) : null;
213
213
  });
214
214
  te.displayName = "SlotClone";
215
- const We = ({ children: e }) => /* @__PURE__ */ A(qe, null, e);
216
- function Ye(e) {
217
- return /* @__PURE__ */ V(e) && e.type === We;
215
+ const Ze = ({ children: e }) => /* @__PURE__ */ y(qe, null, e);
216
+ function Je(e) {
217
+ return /* @__PURE__ */ U(e) && e.type === Ze;
218
218
  }
219
- function Je(e, r) {
219
+ function Xe(e, r) {
220
220
  const n = {
221
221
  ...r
222
222
  };
@@ -298,7 +298,7 @@ function ve(e) {
298
298
  const r = C(e);
299
299
  return k(() => {
300
300
  r.current = e;
301
- }), U(
301
+ }), V(
302
302
  () => (...n) => {
303
303
  var o;
304
304
  return (o = r.current) === null || o === void 0 ? void 0 : o.call(r, ...n);
@@ -308,7 +308,7 @@ function ve(e) {
308
308
  }
309
309
  function ce({ prop: e, defaultProp: r, onChange: n = () => {
310
310
  } }) {
311
- const [o, c] = Xe({
311
+ const [o, c] = We({
312
312
  defaultProp: r,
313
313
  onChange: n
314
314
  }), t = e !== void 0, a = t ? e : o, i = ve(n), s = H((l) => {
@@ -327,7 +327,7 @@ function ce({ prop: e, defaultProp: r, onChange: n = () => {
327
327
  s
328
328
  ];
329
329
  }
330
- function Xe({ defaultProp: e, onChange: r }) {
330
+ function We({ defaultProp: e, onChange: r }) {
331
331
  const n = re(e), [o] = n, c = C(o), t = ve(r);
332
332
  return k(() => {
333
333
  c.current !== o && (t(o), c.current = o);
@@ -359,7 +359,7 @@ const et = [
359
359
  const { asChild: t, ...a } = o, i = t ? z : r;
360
360
  return k(() => {
361
361
  window[Symbol.for("radix-ui")] = !0;
362
- }, []), /* @__PURE__ */ A(i, h({}, a, {
362
+ }, []), /* @__PURE__ */ y(i, h({}, a, {
363
363
  ref: c
364
364
  }));
365
365
  });
@@ -367,10 +367,10 @@ const et = [
367
367
  ...e,
368
368
  [r]: n
369
369
  };
370
- }, {}), B = globalThis != null && globalThis.document ? Ue : () => {
370
+ }, {}), B = globalThis != null && globalThis.document ? Ve : () => {
371
371
  };
372
372
  function tt(e, r) {
373
- return Ve((n, o) => {
373
+ return Ue((n, o) => {
374
374
  const c = r[n][o];
375
375
  return c ?? n;
376
376
  }, e);
@@ -446,7 +446,7 @@ function q(e) {
446
446
  const rt = $e.useId || (() => {
447
447
  });
448
448
  let ot = 0;
449
- function ye(e) {
449
+ function Ae(e) {
450
450
  const [r, n] = $e.useState(rt());
451
451
  return B(() => {
452
452
  n(
@@ -456,16 +456,16 @@ function ye(e) {
456
456
  e
457
457
  ]), r ? `radix-${r}` : "";
458
458
  }
459
- const Ae = "Collapsible", [at, Ce] = ae(Ae), [ct, ie] = at(Ae), it = /* @__PURE__ */ I((e, r) => {
459
+ const ye = "Collapsible", [at, Ce] = ae(ye), [ct, ie] = at(ye), it = /* @__PURE__ */ I((e, r) => {
460
460
  const { __scopeCollapsible: n, open: o, defaultOpen: c, disabled: t, onOpenChange: a, ...i } = e, [s = !1, l] = ce({
461
461
  prop: o,
462
462
  defaultProp: c,
463
463
  onChange: a
464
464
  });
465
- return /* @__PURE__ */ A(ct, {
465
+ return /* @__PURE__ */ y(ct, {
466
466
  scope: n,
467
467
  disabled: t,
468
- contentId: ye(),
468
+ contentId: Ae(),
469
469
  open: s,
470
470
  onOpenToggle: H(
471
471
  () => l(
@@ -475,7 +475,7 @@ const Ae = "Collapsible", [at, Ce] = ae(Ae), [ct, ie] = at(Ae), it = /* @__PURE_
475
475
  l
476
476
  ]
477
477
  )
478
- }, /* @__PURE__ */ A(D.div, h({
478
+ }, /* @__PURE__ */ y(D.div, h({
479
479
  "data-state": se(s),
480
480
  "data-disabled": t ? "" : void 0
481
481
  }, i, {
@@ -483,7 +483,7 @@ const Ae = "Collapsible", [at, Ce] = ae(Ae), [ct, ie] = at(Ae), it = /* @__PURE_
483
483
  })));
484
484
  }), st = "CollapsibleTrigger", lt = /* @__PURE__ */ I((e, r) => {
485
485
  const { __scopeCollapsible: n, ...o } = e, c = ie(st, n);
486
- return /* @__PURE__ */ A(D.button, h({
486
+ return /* @__PURE__ */ y(D.button, h({
487
487
  type: "button",
488
488
  "aria-controls": c.contentId,
489
489
  "aria-expanded": c.open || !1,
@@ -496,12 +496,12 @@ const Ae = "Collapsible", [at, Ce] = ae(Ae), [ct, ie] = at(Ae), it = /* @__PURE_
496
496
  }));
497
497
  }), Ne = "CollapsibleContent", ut = /* @__PURE__ */ I((e, r) => {
498
498
  const { forceMount: n, ...o } = e, c = ie(Ne, e.__scopeCollapsible);
499
- return /* @__PURE__ */ A(
499
+ return /* @__PURE__ */ y(
500
500
  xe,
501
501
  {
502
502
  present: n || c.open
503
503
  },
504
- ({ present: t }) => /* @__PURE__ */ A(pt, h({}, o, {
504
+ ({ present: t }) => /* @__PURE__ */ y(pt, h({}, o, {
505
505
  ref: r,
506
506
  present: t
507
507
  }))
@@ -526,7 +526,7 @@ const Ae = "Collapsible", [at, Ce] = ae(Ae), [ct, ie] = at(Ae), it = /* @__PURE_
526
526
  }, [
527
527
  a.open,
528
528
  o
529
- ]), /* @__PURE__ */ A(D.div, h({
529
+ ]), /* @__PURE__ */ y(D.div, h({
530
530
  "data-state": se(a.open),
531
531
  "data-disabled": a.disabled ? "" : void 0,
532
532
  id: a.contentId,
@@ -562,9 +562,9 @@ const P = "Accordion", mt = [
562
562
  const { type: n, ...o } = e, c = o, t = o;
563
563
  return /* @__PURE__ */ u.createElement(le.Provider, {
564
564
  scope: e.__scopeAccordion
565
- }, n === "multiple" ? /* @__PURE__ */ u.createElement(At, h({}, t, {
565
+ }, n === "multiple" ? /* @__PURE__ */ u.createElement(yt, h({}, t, {
566
566
  ref: r
567
- })) : /* @__PURE__ */ u.createElement(yt, h({}, c, {
567
+ })) : /* @__PURE__ */ u.createElement(At, h({}, c, {
568
568
  ref: r
569
569
  })));
570
570
  });
@@ -579,7 +579,7 @@ Ee.propTypes = {
579
579
  };
580
580
  const [Ie, vt] = F(P), [Pe, xt] = F(P, {
581
581
  collapsible: !1
582
- }), yt = /* @__PURE__ */ u.forwardRef((e, r) => {
582
+ }), At = /* @__PURE__ */ u.forwardRef((e, r) => {
583
583
  const { value: n, defaultValue: o, onValueChange: c = () => {
584
584
  }, collapsible: t = !1, ...a } = e, [i, s] = ce({
585
585
  prop: n,
@@ -605,7 +605,7 @@ const [Ie, vt] = F(P), [Pe, xt] = F(P, {
605
605
  }, /* @__PURE__ */ u.createElement(we, h({}, a, {
606
606
  ref: r
607
607
  }))));
608
- }), At = /* @__PURE__ */ u.forwardRef((e, r) => {
608
+ }), yt = /* @__PURE__ */ u.forwardRef((e, r) => {
609
609
  const { value: n, defaultValue: o, onValueChange: c = () => {
610
610
  }, ...t } = e, [a = [], i] = ce({
611
611
  prop: n,
@@ -646,18 +646,18 @@ const [Ie, vt] = F(P), [Pe, xt] = F(P, {
646
646
  const { __scopeAccordion: n, disabled: o, dir: c, orientation: t = "vertical", ...a } = e, i = u.useRef(null), s = M(i, r), l = ht(n), p = _t(c) === "ltr", _ = ge(e.onKeyDown, (f) => {
647
647
  var b;
648
648
  if (!mt.includes(f.key)) return;
649
- const x = f.target, g = l().filter((Y) => {
650
- var J;
651
- return !((J = Y.ref.current) !== null && J !== void 0 && J.disabled);
649
+ const x = f.target, g = l().filter((J) => {
650
+ var X;
651
+ return !((X = J.ref.current) !== null && X !== void 0 && X.disabled);
652
652
  }), m = g.findIndex(
653
- (Y) => Y.ref.current === x
653
+ (J) => J.ref.current === x
654
654
  ), $ = g.length;
655
655
  if (m === -1) return;
656
656
  f.preventDefault();
657
657
  let v = m;
658
- const N = 0, O = $ - 1, Z = () => {
658
+ const N = 0, O = $ - 1, Y = () => {
659
659
  v = m + 1, v > O && (v = N);
660
- }, W = () => {
660
+ }, Z = () => {
661
661
  v = m - 1, v < N && (v = O);
662
662
  };
663
663
  switch (f.key) {
@@ -668,20 +668,20 @@ const [Ie, vt] = F(P), [Pe, xt] = F(P, {
668
668
  v = O;
669
669
  break;
670
670
  case "ArrowRight":
671
- t === "horizontal" && (p ? Z() : W());
671
+ t === "horizontal" && (p ? Y() : Z());
672
672
  break;
673
673
  case "ArrowDown":
674
- t === "vertical" && Z();
674
+ t === "vertical" && Y();
675
675
  break;
676
676
  case "ArrowLeft":
677
- t === "horizontal" && (p ? W() : Z());
677
+ t === "horizontal" && (p ? Z() : Y());
678
678
  break;
679
679
  case "ArrowUp":
680
- t === "vertical" && W();
680
+ t === "vertical" && Z();
681
681
  break;
682
682
  }
683
- const Le = v % $;
684
- (b = g[Le].ref.current) === null || b === void 0 || b.focus();
683
+ const je = v % $;
684
+ (b = g[je].ref.current) === null || b === void 0 || b.focus();
685
685
  });
686
686
  return /* @__PURE__ */ u.createElement(Ct, {
687
687
  scope: n,
@@ -696,7 +696,7 @@ const [Ie, vt] = F(P), [Pe, xt] = F(P, {
696
696
  onKeyDown: o ? void 0 : _
697
697
  }))));
698
698
  }), ne = "AccordionItem", [Nt, pe] = F(ne), Et = /* @__PURE__ */ u.forwardRef((e, r) => {
699
- const { __scopeAccordion: n, value: o, ...c } = e, t = K(ne, n), a = vt(ne, n), i = ue(n), s = ye(), l = o && a.value.includes(o) || !1, d = t.disabled || e.disabled;
699
+ const { __scopeAccordion: n, value: o, ...c } = e, t = K(ne, n), a = vt(ne, n), i = ue(n), s = Ae(), l = o && a.value.includes(o) || !1, d = t.disabled || e.disabled;
700
700
  return /* @__PURE__ */ u.createElement(Nt, {
701
701
  scope: n,
702
702
  open: l,
@@ -752,7 +752,7 @@ function Se(e) {
752
752
  return e ? "open" : "closed";
753
753
  }
754
754
  const Rt = Ee, Tt = Et, Mt = Pt, kt = wt, Dt = Ot;
755
- function jt(e) {
755
+ function Lt(e) {
756
756
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
757
757
  }
758
758
  var Oe = { exports: {} };
@@ -791,13 +791,13 @@ var Oe = { exports: {} };
791
791
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
792
792
  })();
793
793
  })(Oe);
794
- var Lt = Oe.exports;
795
- const Re = /* @__PURE__ */ jt(Lt), qt = {
794
+ var jt = Oe.exports;
795
+ const Re = /* @__PURE__ */ Lt(jt), qt = {
796
796
  "purpur-accordion": "_purpur-accordion_u887g_1",
797
797
  "purpur-accordion__title": "_purpur-accordion__title_u887g_4",
798
798
  "purpur-accordion--negative": "_purpur-accordion--negative_u887g_13"
799
799
  };
800
- function Ut(e) {
800
+ function Vt(e) {
801
801
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
802
802
  }
803
803
  var Te = { exports: {} };
@@ -836,8 +836,8 @@ var Te = { exports: {} };
836
836
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
837
837
  })();
838
838
  })(Te);
839
- var Vt = Te.exports;
840
- const zt = /* @__PURE__ */ Ut(Vt), Bt = {
839
+ var Ut = Te.exports;
840
+ const zt = /* @__PURE__ */ Vt(Ut), Bt = {
841
841
  "purpur-icon": "_purpur-icon_8u1lq_1",
842
842
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
843
843
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -850,15 +850,15 @@ const zt = /* @__PURE__ */ Ut(Vt), Bt = {
850
850
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.136 7.864a.9.9 0 0 0-1.272 0L12 14.727 5.136 7.864a.9.9 0 0 0-1.272 1.272l7.5 7.5a.9.9 0 0 0 1.272 0l7.5-7.5a.9.9 0 0 0 0-1.272Z" clip-rule="evenodd"/></svg>',
851
851
  keywords: ["chevron-down"],
852
852
  category: "utility"
853
- }, Me = (e) => /* @__PURE__ */ y(
854
- Yt,
853
+ }, Me = (e) => /* @__PURE__ */ A(
854
+ Jt,
855
855
  {
856
856
  ...e,
857
857
  svg: Ht
858
858
  }
859
859
  );
860
860
  Me.displayName = "IconChevronDown";
861
- const Gt = zt.bind(Bt), fe = "purpur-icon", Ft = "md", Kt = (e) => e.filter((r) => Object.keys(r).length >= 1).map((r) => `${r.name}="${r.value}"`).join(" "), Zt = ({ content: e = "", title: r } = {}) => {
861
+ const Gt = zt.bind(Bt), fe = "purpur-icon", Ft = "md", Kt = (e) => e.filter((r) => Object.keys(r).length >= 1).map((r) => `${r.name}="${r.value}"`).join(" "), Yt = ({ content: e = "", title: r } = {}) => {
862
862
  const n = [
863
863
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
864
864
  { name: "fill", value: "currentColor" },
@@ -866,7 +866,7 @@ const Gt = zt.bind(Bt), fe = "purpur-icon", Ft = "md", Kt = (e) => e.filter((r)
866
866
  r ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
867
867
  ], o = r ? `<title>${r}</title>` : "";
868
868
  return `<svg ${Kt(n)}>${o}${e}</svg>`;
869
- }, Wt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yt = ({
869
+ }, Zt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Jt = ({
870
870
  ["data-testid"]: e,
871
871
  svg: r,
872
872
  allyTitle: n,
@@ -874,11 +874,11 @@ const Gt = zt.bind(Bt), fe = "purpur-icon", Ft = "md", Kt = (e) => e.filter((r)
874
874
  size: c = Ft,
875
875
  ...t
876
876
  }) => {
877
- const a = Zt({
878
- content: Wt(r.svg),
877
+ const a = Yt({
878
+ content: Zt(r.svg),
879
879
  title: n
880
880
  }), i = Gt(o, fe, `${fe}--${c}`);
881
- return /* @__PURE__ */ y(
881
+ return /* @__PURE__ */ A(
882
882
  "span",
883
883
  {
884
884
  "aria-label": n,
@@ -889,7 +889,7 @@ const Gt = zt.bind(Bt), fe = "purpur-icon", Ft = "md", Kt = (e) => e.filter((r)
889
889
  }
890
890
  );
891
891
  };
892
- function Jt(e) {
892
+ function Xt(e) {
893
893
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
894
894
  }
895
895
  var ke = { exports: {} };
@@ -929,7 +929,7 @@ var ke = { exports: {} };
929
929
  })();
930
930
  })(ke);
931
931
  var Qt = ke.exports;
932
- const Xt = /* @__PURE__ */ Jt(Qt), R = {
932
+ const Wt = /* @__PURE__ */ Xt(Qt), R = {
933
933
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
934
934
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
935
935
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -965,7 +965,7 @@ const Xt = /* @__PURE__ */ Jt(Qt), R = {
965
965
  variant: a = en.PARAGRAPH100,
966
966
  ...i
967
967
  }) => {
968
- const s = Xt([
968
+ const s = Wt([
969
969
  n,
970
970
  R[T],
971
971
  R[`${T}--${a}`],
@@ -975,7 +975,7 @@ const Xt = /* @__PURE__ */ Jt(Qt), R = {
975
975
  [R[`${T}--negative`]]: t
976
976
  }
977
977
  ]);
978
- return /* @__PURE__ */ y("p", { ...i, className: s, "data-testid": e, children: r });
978
+ return /* @__PURE__ */ A("p", { ...i, className: s, "data-testid": e, children: r });
979
979
  };
980
980
  De.displayName = "Paragraph";
981
981
  const tn = "_slideDown_aukzj_1", nn = "_slideUp_aukzj_1", rn = {
@@ -1006,8 +1006,8 @@ const tn = "_slideDown_aukzj_1", nn = "_slideUp_aukzj_1", rn = {
1006
1006
  [`${E}--negative`]: c
1007
1007
  }
1008
1008
  ]);
1009
- return /* @__PURE__ */ X(Tt, { className: s, value: n, ...a, children: [
1010
- /* @__PURE__ */ y(Mt, { className: w(`${E}__header`), asChild: !0, children: /* @__PURE__ */ y(oe, { tag: o, variant: "title-100", className: w(`${E}__title`), children: /* @__PURE__ */ X(
1009
+ return /* @__PURE__ */ W(Tt, { className: s, value: n, ...a, children: [
1010
+ /* @__PURE__ */ A(Mt, { className: w(`${E}__header`), asChild: !0, children: /* @__PURE__ */ A(oe, { tag: o, variant: "title-100", className: w(`${E}__title`), children: /* @__PURE__ */ W(
1011
1011
  kt,
1012
1012
  {
1013
1013
  ref: i,
@@ -1015,14 +1015,14 @@ const tn = "_slideDown_aukzj_1", nn = "_slideUp_aukzj_1", rn = {
1015
1015
  className: w(`${E}__trigger`, r),
1016
1016
  children: [
1017
1017
  n,
1018
- /* @__PURE__ */ y(Me, { size: "md", className: w(`${E}__icon`), "aria-hidden": !0 })
1018
+ /* @__PURE__ */ A(Me, { size: "md", className: w(`${E}__icon`), "aria-hidden": !0 })
1019
1019
  ]
1020
1020
  }
1021
1021
  ) }) }),
1022
- /* @__PURE__ */ y(Dt, { className: w(`${E}__content`, r), children: /* @__PURE__ */ y("div", { className: w(`${E}__contentText`), children: typeof e == "string" ? /* @__PURE__ */ y(De, { variant: "paragraph-200", children: e }) : e }) })
1022
+ /* @__PURE__ */ A(Dt, { className: w(`${E}__content`, r), children: /* @__PURE__ */ A("div", { className: w(`${E}__contentText`), children: typeof e == "string" ? /* @__PURE__ */ A(De, { variant: "paragraph-200", children: e }) : e }) })
1023
1023
  ] });
1024
1024
  }
1025
- ), be = Re.bind(qt), Q = "purpur-accordion", je = ({
1025
+ ), be = Re.bind(qt), Q = "purpur-accordion", Le = ({
1026
1026
  ["data-testid"]: e,
1027
1027
  children: r,
1028
1028
  className: n,
@@ -1040,14 +1040,14 @@ const tn = "_slideDown_aukzj_1", nn = "_slideUp_aukzj_1", rn = {
1040
1040
  ]), s = () => S.map(r, (l) => G(l, {
1041
1041
  negative: o
1042
1042
  }));
1043
- return /* @__PURE__ */ X(Rt, { className: i, type: "multiple", "data-testid": e, children: [
1044
- c ? /* @__PURE__ */ y(oe, { tag: t, variant: a, className: be(`${Q}__title`), children: c }) : null,
1043
+ return /* @__PURE__ */ W(Rt, { className: i, type: "multiple", "data-testid": e, children: [
1044
+ c ? /* @__PURE__ */ A(oe, { tag: t, variant: a, className: be(`${Q}__title`), children: c }) : null,
1045
1045
  s()
1046
1046
  ] });
1047
1047
  };
1048
- je.Item = on;
1049
- je.displayName = "Accordion";
1048
+ Le.Item = on;
1049
+ Le.displayName = "Accordion";
1050
1050
  export {
1051
- je as Accordion
1051
+ Le as Accordion
1052
1052
  };
1053
1053
  //# sourceMappingURL=accordion.es.js.map