@purpurds/accordion 5.7.0 → 5.8.1

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.
@@ -27,4 +27,5 @@ export declare const Accordion: {
27
27
  Item: ({ children, className, title, titleTag, negative, onClick, ...props }: import('./accordion-item').AccordionItemProps) => React.JSX.Element;
28
28
  displayName: string;
29
29
  };
30
+ export type { AccordionItemOnClickEvent, AccordionItemProps } from './accordion-item';
30
31
  //# sourceMappingURL=accordion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../src/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAW,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAW9E,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;SAEK;IACL,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;SAEK;IACL,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B;;SAEK;IACL,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,SAAS;qGAQnB,cAAc;;;CA2BhB,CAAC"}
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../src/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAW,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAU9E,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;SAEK;IACL,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;SAEK;IACL,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B;;SAEK;IACL,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,SAAS;qGAQnB,cAAc;;;CA2BhB,CAAC;AAKF,YAAY,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as A, jsxs as X } from "react/jsx-runtime";
2
2
  import * as be from "react";
3
- import u, { createContext as ee, useMemo as V, createElement as y, useContext as $e, useCallback as G, forwardRef as S, Children as w, isValidElement as U, cloneElement as F, Fragment as je, useRef as C, useEffect as D, useState as re, useLayoutEffect as qe, useReducer as Ve } from "react";
3
+ import u, { createContext as ee, useMemo as V, createElement as y, useContext as $e, useCallback as G, forwardRef as S, Children as w, isValidElement as U, cloneElement as F, Fragment as ke, useRef as C, useEffect as q, useState as re, useLayoutEffect as je, useReducer as Ve } from "react";
4
4
  import { flushSync as Ue } 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 _e = { exports: {} };
42
42
  })();
43
43
  })(_e);
44
44
  var He = _e.exports;
45
- const Ge = /* @__PURE__ */ Be(He), k = {
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), k = {
67
67
  TITLE600: "title-600",
68
68
  TITLE700: "title-700",
69
69
  SUBSECTION100: "subsection-100"
70
- }, j = "purpur-heading", me = ({
70
+ }, k = "purpur-heading", me = ({
71
71
  ["data-testid"]: e,
72
72
  children: r,
73
73
  className: n = "",
@@ -79,11 +79,11 @@ const Ge = /* @__PURE__ */ Be(He), k = {
79
79
  }) => {
80
80
  const l = t, s = Ge([
81
81
  n,
82
- k[j],
83
- k[`${j}--${a}`],
82
+ L[k],
83
+ L[`${k}--${a}`],
84
84
  {
85
- [k[`${j}--hyphens`]]: o,
86
- [k[`${j}--negative`]]: c
85
+ [L[`${k}--hyphens`]]: o,
86
+ [L[`${k}--negative`]]: c
87
87
  }
88
88
  ]);
89
89
  return /* @__PURE__ */ A(l, { ...i, className: s, "data-testid": e, children: r });
@@ -194,7 +194,7 @@ function M(...e) {
194
194
  return G(he(...e), e);
195
195
  }
196
196
  const B = /* @__PURE__ */ S((e, r) => {
197
- const { children: n, ...o } = e, c = w.toArray(n), t = c.find(Ye);
197
+ const { children: n, ...o } = e, c = w.toArray(n), t = c.find(We);
198
198
  if (t) {
199
199
  const a = t.props.children, i = c.map((l) => l === t ? w.count(a) > 1 ? w.only(null) : /* @__PURE__ */ U(a) ? a.props.children : null : l);
200
200
  return /* @__PURE__ */ y(te, h({}, o, {
@@ -209,16 +209,16 @@ B.displayName = "Slot";
209
209
  const te = /* @__PURE__ */ S((e, r) => {
210
210
  const { children: n, ...o } = e;
211
211
  return /* @__PURE__ */ U(n) ? /* @__PURE__ */ F(n, {
212
- ...Je(o, n.props),
212
+ ...Ye(o, n.props),
213
213
  ref: r ? he(r, n.ref) : n.ref
214
214
  }) : w.count(n) > 1 ? w.only(null) : null;
215
215
  });
216
216
  te.displayName = "SlotClone";
217
- const Ze = ({ children: e }) => /* @__PURE__ */ y(je, null, e);
218
- function Ye(e) {
217
+ const Ze = ({ children: e }) => /* @__PURE__ */ y(ke, null, e);
218
+ function We(e) {
219
219
  return /* @__PURE__ */ U(e) && e.type === Ze;
220
220
  }
221
- function Je(e, r) {
221
+ function Ye(e, r) {
222
222
  const n = {
223
223
  ...r
224
224
  };
@@ -239,7 +239,7 @@ function Je(e, r) {
239
239
  ...n
240
240
  };
241
241
  }
242
- function Qe(e) {
242
+ function Je(e) {
243
243
  const r = e + "CollectionProvider", [n, o] = oe(r), [c, t] = n(r, {
244
244
  collectionRef: {
245
245
  current: null
@@ -300,7 +300,7 @@ function ge(e, r, { checkForDefaultPrevented: n = !0 } = {}) {
300
300
  }
301
301
  function ve(e) {
302
302
  const r = C(e);
303
- return D(() => {
303
+ return q(() => {
304
304
  r.current = e;
305
305
  }), V(
306
306
  () => (...n) => {
@@ -312,7 +312,7 @@ function ve(e) {
312
312
  }
313
313
  function ae({ prop: e, defaultProp: r, onChange: n = () => {
314
314
  } }) {
315
- const [o, c] = We({
315
+ const [o, c] = Qe({
316
316
  defaultProp: r,
317
317
  onChange: n
318
318
  }), t = e !== void 0, a = t ? e : o, i = ve(n), l = G((s) => {
@@ -332,9 +332,9 @@ function ae({ prop: e, defaultProp: r, onChange: n = () => {
332
332
  l
333
333
  ];
334
334
  }
335
- function We({ defaultProp: e, onChange: r }) {
335
+ function Qe({ defaultProp: e, onChange: r }) {
336
336
  const n = re(e), [o] = n, c = C(o), t = ve(r);
337
- return D(() => {
337
+ return q(() => {
338
338
  c.current !== o && (t(o), c.current = o);
339
339
  }, [
340
340
  o,
@@ -359,10 +359,10 @@ const Xe = [
359
359
  "span",
360
360
  "svg",
361
361
  "ul"
362
- ], L = Xe.reduce((e, r) => {
362
+ ], D = Xe.reduce((e, r) => {
363
363
  const n = /* @__PURE__ */ S((o, c) => {
364
364
  const { asChild: t, ...a } = o, i = t ? B : r;
365
- return D(() => {
365
+ return q(() => {
366
366
  window[Symbol.for("radix-ui")] = !0;
367
367
  }, []), /* @__PURE__ */ y(i, h({}, a, {
368
368
  ref: c
@@ -372,7 +372,7 @@ const Xe = [
372
372
  ...e,
373
373
  [r]: n
374
374
  };
375
- }, {}), H = globalThis != null && globalThis.document ? qe : () => {
375
+ }, {}), H = globalThis != null && globalThis.document ? je : () => {
376
376
  };
377
377
  function et(e, r) {
378
378
  return Ve((n, o) => {
@@ -403,15 +403,15 @@ function tt(e) {
403
403
  MOUNT: "mounted"
404
404
  }
405
405
  });
406
- return D(() => {
407
- const s = q(o.current);
406
+ return q(() => {
407
+ const s = j(o.current);
408
408
  t.current = i === "mounted" ? s : "none";
409
409
  }, [
410
410
  i
411
411
  ]), H(() => {
412
412
  const s = o.current, d = c.current;
413
413
  if (d !== e) {
414
- const _ = t.current, f = q(s);
414
+ const _ = t.current, f = j(s);
415
415
  e ? l("MOUNT") : f === "none" || (s == null ? void 0 : s.display) === "none" ? l("UNMOUNT") : l(d && _ !== f ? "ANIMATION_OUT" : "UNMOUNT"), c.current = e;
416
416
  }
417
417
  }, [
@@ -420,12 +420,12 @@ function tt(e) {
420
420
  ]), H(() => {
421
421
  if (r) {
422
422
  const s = (p) => {
423
- const f = q(o.current).includes(p.animationName);
423
+ const f = j(o.current).includes(p.animationName);
424
424
  p.target === r && f && Ue(
425
425
  () => l("ANIMATION_END")
426
426
  );
427
427
  }, d = (p) => {
428
- p.target === r && (t.current = q(o.current));
428
+ p.target === r && (t.current = j(o.current));
429
429
  };
430
430
  return r.addEventListener("animationstart", d), r.addEventListener("animationcancel", s), r.addEventListener("animationend", s), () => {
431
431
  r.removeEventListener("animationstart", d), r.removeEventListener("animationcancel", s), r.removeEventListener("animationend", s);
@@ -445,7 +445,7 @@ function tt(e) {
445
445
  }, [])
446
446
  };
447
447
  }
448
- function q(e) {
448
+ function j(e) {
449
449
  return (e == null ? void 0 : e.animationName) || "none";
450
450
  }
451
451
  const nt = be.useId || (() => {
@@ -480,7 +480,7 @@ const ye = "Collapsible", [ot, Ce] = oe(ye), [at, ce] = ot(ye), ct = /* @__PURE_
480
480
  s
481
481
  ]
482
482
  )
483
- }, /* @__PURE__ */ y(L.div, h({
483
+ }, /* @__PURE__ */ y(D.div, h({
484
484
  "data-state": ie(l),
485
485
  "data-disabled": t ? "" : void 0
486
486
  }, i, {
@@ -488,7 +488,7 @@ const ye = "Collapsible", [ot, Ce] = oe(ye), [at, ce] = ot(ye), ct = /* @__PURE_
488
488
  })));
489
489
  }), it = "CollapsibleTrigger", st = /* @__PURE__ */ S((e, r) => {
490
490
  const { __scopeCollapsible: n, ...o } = e, c = ce(it, n);
491
- return /* @__PURE__ */ y(L.button, h({
491
+ return /* @__PURE__ */ y(D.button, h({
492
492
  type: "button",
493
493
  "aria-controls": c.contentId,
494
494
  "aria-expanded": c.open || !1,
@@ -513,7 +513,7 @@ const ye = "Collapsible", [ot, Ce] = oe(ye), [at, ce] = ot(ye), ct = /* @__PURE_
513
513
  );
514
514
  }), ut = /* @__PURE__ */ S((e, r) => {
515
515
  const { __scopeCollapsible: n, present: o, children: c, ...t } = e, a = ce(Ne, n), [i, l] = re(o), s = C(null), d = M(r, s), p = C(0), _ = p.current, f = C(0), b = f.current, x = a.open || i, g = C(x), m = C();
516
- return D(() => {
516
+ return q(() => {
517
517
  const $ = requestAnimationFrame(
518
518
  () => g.current = !1
519
519
  );
@@ -531,7 +531,7 @@ const ye = "Collapsible", [ot, Ce] = oe(ye), [at, ce] = ot(ye), ct = /* @__PURE_
531
531
  }, [
532
532
  a.open,
533
533
  o
534
- ]), /* @__PURE__ */ y(L.div, h({
534
+ ]), /* @__PURE__ */ y(D.div, h({
535
535
  "data-state": ie(a.open),
536
536
  "data-disabled": a.disabled ? "" : void 0,
537
537
  id: a.contentId,
@@ -560,7 +560,7 @@ const I = "Accordion", _t = [
560
560
  "ArrowUp",
561
561
  "ArrowLeft",
562
562
  "ArrowRight"
563
- ], [se, mt, ht] = Qe(I), [z, ln] = oe(I, [
563
+ ], [se, mt, ht] = Je(I), [z, ln] = oe(I, [
564
564
  ht,
565
565
  Ce
566
566
  ]), le = Ce(), Ee = /* @__PURE__ */ u.forwardRef((e, r) => {
@@ -652,11 +652,11 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
652
652
  var b;
653
653
  if (!_t.includes(f.key))
654
654
  return;
655
- const x = f.target, g = s().filter((J) => {
656
- var Q;
657
- return !((Q = J.ref.current) !== null && Q !== void 0 && Q.disabled);
655
+ const x = f.target, g = s().filter((Y) => {
656
+ var J;
657
+ return !((J = Y.ref.current) !== null && J !== void 0 && J.disabled);
658
658
  }), m = g.findIndex(
659
- (J) => J.ref.current === x
659
+ (Y) => Y.ref.current === x
660
660
  ), $ = g.length;
661
661
  if (m === -1)
662
662
  return;
@@ -664,7 +664,7 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
664
664
  let v = m;
665
665
  const N = 0, O = $ - 1, Z = () => {
666
666
  v = m + 1, v > O && (v = N);
667
- }, Y = () => {
667
+ }, W = () => {
668
668
  v = m - 1, v < N && (v = O);
669
669
  };
670
670
  switch (f.key) {
@@ -675,20 +675,20 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
675
675
  v = O;
676
676
  break;
677
677
  case "ArrowRight":
678
- t === "horizontal" && (p ? Z() : Y());
678
+ t === "horizontal" && (p ? Z() : W());
679
679
  break;
680
680
  case "ArrowDown":
681
681
  t === "vertical" && Z();
682
682
  break;
683
683
  case "ArrowLeft":
684
- t === "horizontal" && (p ? Y() : Z());
684
+ t === "horizontal" && (p ? W() : Z());
685
685
  break;
686
686
  case "ArrowUp":
687
- t === "vertical" && Y();
687
+ t === "vertical" && W();
688
688
  break;
689
689
  }
690
- const ke = v % $;
691
- (b = g[ke].ref.current) === null || b === void 0 || b.focus();
690
+ const Le = v % $;
691
+ (b = g[Le].ref.current) === null || b === void 0 || b.focus();
692
692
  });
693
693
  return /* @__PURE__ */ u.createElement(yt, {
694
694
  scope: n,
@@ -697,7 +697,7 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
697
697
  orientation: t
698
698
  }, /* @__PURE__ */ u.createElement(se.Slot, {
699
699
  scope: n
700
- }, /* @__PURE__ */ u.createElement(L.div, h({}, a, {
700
+ }, /* @__PURE__ */ u.createElement(D.div, h({}, a, {
701
701
  "data-orientation": t,
702
702
  ref: l,
703
703
  onKeyDown: o ? void 0 : _
@@ -722,7 +722,7 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
722
722
  })));
723
723
  }), Et = "AccordionHeader", It = /* @__PURE__ */ u.forwardRef((e, r) => {
724
724
  const { __scopeAccordion: n, ...o } = e, c = K(I, n), t = ue(Et, n);
725
- return /* @__PURE__ */ u.createElement(L.h3, h({
725
+ return /* @__PURE__ */ u.createElement(D.h3, h({
726
726
  "data-orientation": c.orientation,
727
727
  "data-state": Se(t.open),
728
728
  "data-disabled": t.disabled ? "" : void 0
@@ -758,8 +758,8 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
758
758
  function Se(e) {
759
759
  return e ? "open" : "closed";
760
760
  }
761
- const Ot = Ee, Rt = Nt, Tt = It, Mt = Pt, Dt = St;
762
- function Lt(e) {
761
+ const Ot = Ee, Rt = Nt, Tt = It, Mt = Pt, qt = St;
762
+ function Dt(e) {
763
763
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
764
764
  }
765
765
  var Oe = { exports: {} };
@@ -798,12 +798,13 @@ var Oe = { exports: {} };
798
798
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
799
799
  })();
800
800
  })(Oe);
801
- var kt = Oe.exports;
802
- const Re = /* @__PURE__ */ Lt(kt), jt = {
803
- "purpur-accordion__title": "_purpur-accordion__title_1ower_1",
804
- "purpur-accordion--negative": "_purpur-accordion--negative_1ower_10"
801
+ var Lt = Oe.exports;
802
+ const Re = /* @__PURE__ */ Dt(Lt), kt = {
803
+ "purpur-accordion": "_purpur-accordion_1dpt9_1",
804
+ "purpur-accordion__title": "_purpur-accordion__title_1dpt9_1",
805
+ "purpur-accordion--negative": "_purpur-accordion--negative_1dpt9_10"
805
806
  };
806
- function qt(e) {
807
+ function jt(e) {
807
808
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
808
809
  }
809
810
  var Te = { exports: {} };
@@ -843,7 +844,7 @@ var Te = { exports: {} };
843
844
  })();
844
845
  })(Te);
845
846
  var Vt = Te.exports;
846
- const Ut = /* @__PURE__ */ qt(Vt), Bt = {
847
+ const Ut = /* @__PURE__ */ jt(Vt), Bt = {
847
848
  "purpur-icon": "_purpur-icon_8u1lq_1",
848
849
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
849
850
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -857,7 +858,7 @@ const Ut = /* @__PURE__ */ qt(Vt), Bt = {
857
858
  keywords: ["chevron-down"],
858
859
  category: "utility"
859
860
  }, Me = (e) => /* @__PURE__ */ A(
860
- Yt,
861
+ Wt,
861
862
  {
862
863
  ...e,
863
864
  svg: Ht
@@ -872,7 +873,7 @@ const Gt = Ut.bind(Bt), de = "purpur-icon", Ft = "md", zt = (e) => e.filter((r)
872
873
  r ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
873
874
  ], o = r ? `<title>${r}</title>` : "";
874
875
  return `<svg ${zt(n)}>${o}${e}</svg>`;
875
- }, Zt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yt = ({
876
+ }, Zt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Wt = ({
876
877
  ["data-testid"]: e,
877
878
  svg: r,
878
879
  allyTitle: n,
@@ -895,10 +896,10 @@ const Gt = Ut.bind(Bt), de = "purpur-icon", Ft = "md", zt = (e) => e.filter((r)
895
896
  }
896
897
  );
897
898
  };
898
- function Jt(e) {
899
+ function Yt(e) {
899
900
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
900
901
  }
901
- var De = { exports: {} };
902
+ var qe = { exports: {} };
902
903
  /*!
903
904
  Copyright (c) 2018 Jed Watson.
904
905
  Licensed under the MIT License (MIT), see
@@ -933,9 +934,9 @@ var De = { exports: {} };
933
934
  }
934
935
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
935
936
  })();
936
- })(De);
937
- var Qt = De.exports;
938
- const Wt = /* @__PURE__ */ Jt(Qt), R = {
937
+ })(qe);
938
+ var Jt = qe.exports;
939
+ const Qt = /* @__PURE__ */ Yt(Jt), R = {
939
940
  "purpur-paragraph": "_purpur-paragraph_1rh57_1",
940
941
  "purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
941
942
  "purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
@@ -971,7 +972,7 @@ const Wt = /* @__PURE__ */ Jt(Qt), R = {
971
972
  variant: a = Xt.PARAGRAPH100,
972
973
  ...i
973
974
  }) => {
974
- const l = Wt([
975
+ const l = Qt([
975
976
  n,
976
977
  R[T],
977
978
  R[`${T}--${a}`],
@@ -982,17 +983,17 @@ const Wt = /* @__PURE__ */ Jt(Qt), R = {
982
983
  }
983
984
  ]);
984
985
  return /* @__PURE__ */ A("p", { ...i, className: l, "data-testid": e, children: r });
985
- }, tn = "_slideDown_1vvn6_1", nn = "_slideUp_1vvn6_1", rn = {
986
- "purpur-accordion-item": "_purpur-accordion-item_1vvn6_1",
987
- "purpur-accordion-item__header": "_purpur-accordion-item__header_1vvn6_8",
988
- "purpur-accordion-item__trigger": "_purpur-accordion-item__trigger_1vvn6_11",
989
- "purpur-accordion-item__content": "_purpur-accordion-item__content_1vvn6_39",
986
+ }, tn = "_slideDown_1oq6q_1", nn = "_slideUp_1oq6q_1", rn = {
987
+ "purpur-accordion-item": "_purpur-accordion-item_1oq6q_1",
988
+ "purpur-accordion-item__header": "_purpur-accordion-item__header_1oq6q_8",
989
+ "purpur-accordion-item__trigger": "_purpur-accordion-item__trigger_1oq6q_11",
990
+ "purpur-accordion-item__content": "_purpur-accordion-item__content_1oq6q_39",
990
991
  slideDown: tn,
991
992
  slideUp: nn,
992
- "purpur-accordion-item__contentText": "_purpur-accordion-item__contentText_1vvn6_48",
993
- "purpur-accordion-item__icon": "_purpur-accordion-item__icon_1vvn6_52",
994
- "purpur-accordion-item__title": "_purpur-accordion-item__title_1vvn6_65",
995
- "purpur-accordion-item--negative": "_purpur-accordion-item--negative_1vvn6_86"
993
+ "purpur-accordion-item__contentText": "_purpur-accordion-item__contentText_1oq6q_48",
994
+ "purpur-accordion-item__icon": "_purpur-accordion-item__icon_1oq6q_52",
995
+ "purpur-accordion-item__title": "_purpur-accordion-item__title_1oq6q_65",
996
+ "purpur-accordion-item--negative": "_purpur-accordion-item--negative_1oq6q_87"
996
997
  }, P = Re.bind(rn), E = "purpur-accordion-item", on = ({
997
998
  children: e,
998
999
  className: r,
@@ -1021,9 +1022,9 @@ const Wt = /* @__PURE__ */ Jt(Qt), R = {
1021
1022
  ]
1022
1023
  }
1023
1024
  ) }) }),
1024
- /* @__PURE__ */ A(Dt, { className: P(`${E}__content`, r), children: /* @__PURE__ */ A("div", { className: P(`${E}__contentText`), children: typeof e == "string" ? /* @__PURE__ */ A(en, { variant: "paragraph-200", children: e }) : e }) })
1025
+ /* @__PURE__ */ A(qt, { className: P(`${E}__content`, r), children: /* @__PURE__ */ A("div", { className: P(`${E}__contentText`), children: typeof e == "string" ? /* @__PURE__ */ A(en, { variant: "paragraph-200", children: e }) : e }) })
1025
1026
  ] });
1026
- }, fe = Re.bind(jt), W = "purpur-accordion", Le = ({
1027
+ }, fe = Re.bind(kt), Q = "purpur-accordion", De = ({
1027
1028
  ["data-testid"]: e,
1028
1029
  children: r,
1029
1030
  className: n,
@@ -1034,21 +1035,21 @@ const Wt = /* @__PURE__ */ Jt(Qt), R = {
1034
1035
  }) => {
1035
1036
  const i = fe([
1036
1037
  n,
1037
- W,
1038
+ Q,
1038
1039
  {
1039
- [`${W}--negative`]: o
1040
+ [`${Q}--negative`]: o
1040
1041
  }
1041
1042
  ]), l = () => w.map(r, (s) => F(s, {
1042
1043
  negative: o
1043
1044
  }));
1044
1045
  return /* @__PURE__ */ X(Ot, { className: i, type: "multiple", "data-testid": e, children: [
1045
- c ? /* @__PURE__ */ A(me, { tag: t, variant: a, className: fe(`${W}__title`), children: c }) : null,
1046
+ c ? /* @__PURE__ */ A(me, { tag: t, variant: a, className: fe(`${Q}__title`), children: c }) : null,
1046
1047
  l()
1047
1048
  ] });
1048
1049
  };
1049
- Le.Item = on;
1050
- Le.displayName = "Accordion";
1050
+ De.Item = on;
1051
+ De.displayName = "Accordion";
1051
1052
  export {
1052
- Le as Accordion
1053
+ De as Accordion
1053
1054
  };
1054
1055
  //# sourceMappingURL=accordion.es.js.map