@purpurds/accordion 5.7.0 → 5.8.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.
@@ -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
- import { jsx as A, jsxs as X } from "react/jsx-runtime";
1
+ import { jsx as y, 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 A, useContext as $e, useCallback as G, forwardRef as S, Children as w, isValidElement as U, cloneElement as z, Fragment as je, useRef as C, useEffect as D, useState as re, useLayoutEffect as qe, 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;
@@ -58,7 +58,7 @@ const Ge = /* @__PURE__ */ Be(He), k = {
58
58
  "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
59
59
  "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
60
60
  "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
61
- }, Fe = {
61
+ }, ze = {
62
62
  TITLE100: "title-100",
63
63
  TITLE200: "title-200",
64
64
  TITLE300: "title-300",
@@ -74,7 +74,7 @@ const Ge = /* @__PURE__ */ Be(He), k = {
74
74
  enableHyphenation: o = !1,
75
75
  negative: c = !1,
76
76
  tag: t,
77
- variant: a = Fe.TITLE100,
77
+ variant: a = ze.TITLE100,
78
78
  ...i
79
79
  }) => {
80
80
  const l = t, s = Ge([
@@ -86,7 +86,7 @@ const Ge = /* @__PURE__ */ Be(He), k = {
86
86
  [k[`${j}--negative`]]: c
87
87
  }
88
88
  ]);
89
- return /* @__PURE__ */ A(l, { ...i, className: s, "data-testid": e, children: r });
89
+ return /* @__PURE__ */ y(l, { ...i, className: s, "data-testid": e, children: r });
90
90
  };
91
91
  function h() {
92
92
  return h = Object.assign ? Object.assign.bind() : function(e) {
@@ -111,7 +111,7 @@ function oe(e, r = []) {
111
111
  () => b,
112
112
  Object.values(b)
113
113
  );
114
- return /* @__PURE__ */ y(x.Provider, {
114
+ return /* @__PURE__ */ A(x.Provider, {
115
115
  value: g
116
116
  }, f);
117
117
  }
@@ -148,10 +148,10 @@ function oe(e, r = []) {
148
148
  };
149
149
  return c.scopeName = e, [
150
150
  o,
151
- ze(c, ...r)
151
+ Fe(c, ...r)
152
152
  ];
153
153
  }
154
- function ze(...e) {
154
+ function Fe(...e) {
155
155
  const r = e[0];
156
156
  if (e.length === 1)
157
157
  return r;
@@ -194,31 +194,31 @@ 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
- return /* @__PURE__ */ y(te, h({}, o, {
200
+ return /* @__PURE__ */ A(te, h({}, o, {
201
201
  ref: r
202
- }), /* @__PURE__ */ U(a) ? /* @__PURE__ */ F(a, void 0, i) : null);
202
+ }), /* @__PURE__ */ U(a) ? /* @__PURE__ */ z(a, void 0, i) : null);
203
203
  }
204
- return /* @__PURE__ */ y(te, h({}, o, {
204
+ return /* @__PURE__ */ A(te, h({}, o, {
205
205
  ref: r
206
206
  }), n);
207
207
  });
208
208
  B.displayName = "Slot";
209
209
  const te = /* @__PURE__ */ S((e, r) => {
210
210
  const { children: n, ...o } = e;
211
- return /* @__PURE__ */ U(n) ? /* @__PURE__ */ F(n, {
212
- ...Je(o, n.props),
211
+ return /* @__PURE__ */ U(n) ? /* @__PURE__ */ z(n, {
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__ */ A(je, 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
@@ -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,7 +332,7 @@ 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
337
  return D(() => {
338
338
  c.current !== o && (t(o), c.current = o);
@@ -364,7 +364,7 @@ const Xe = [
364
364
  const { asChild: t, ...a } = o, i = t ? B : r;
365
365
  return D(() => {
366
366
  window[Symbol.for("radix-ui")] = !0;
367
- }, []), /* @__PURE__ */ y(i, h({}, a, {
367
+ }, []), /* @__PURE__ */ A(i, h({}, a, {
368
368
  ref: c
369
369
  }));
370
370
  });
@@ -384,7 +384,7 @@ const xe = (e) => {
384
384
  const { present: r, children: n } = e, o = tt(r), c = typeof n == "function" ? n({
385
385
  present: o.isPresent
386
386
  }) : w.only(n), t = M(o.ref, c.ref);
387
- return typeof n == "function" || o.isPresent ? /* @__PURE__ */ F(c, {
387
+ return typeof n == "function" || o.isPresent ? /* @__PURE__ */ z(c, {
388
388
  ref: t
389
389
  }) : null;
390
390
  };
@@ -451,7 +451,7 @@ function q(e) {
451
451
  const nt = be.useId || (() => {
452
452
  });
453
453
  let rt = 0;
454
- function Ae(e) {
454
+ function ye(e) {
455
455
  const [r, n] = be.useState(nt());
456
456
  return H(() => {
457
457
  n(
@@ -461,16 +461,16 @@ function Ae(e) {
461
461
  e
462
462
  ]), r ? `radix-${r}` : "";
463
463
  }
464
- const ye = "Collapsible", [ot, Ce] = oe(ye), [at, ce] = ot(ye), ct = /* @__PURE__ */ S((e, r) => {
464
+ const Ae = "Collapsible", [ot, Ce] = oe(Ae), [at, ce] = ot(Ae), ct = /* @__PURE__ */ S((e, r) => {
465
465
  const { __scopeCollapsible: n, open: o, defaultOpen: c, disabled: t, onOpenChange: a, ...i } = e, [l = !1, s] = ae({
466
466
  prop: o,
467
467
  defaultProp: c,
468
468
  onChange: a
469
469
  });
470
- return /* @__PURE__ */ y(at, {
470
+ return /* @__PURE__ */ A(at, {
471
471
  scope: n,
472
472
  disabled: t,
473
- contentId: Ae(),
473
+ contentId: ye(),
474
474
  open: l,
475
475
  onOpenToggle: G(
476
476
  () => s(
@@ -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__ */ A(L.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__ */ A(L.button, h({
492
492
  type: "button",
493
493
  "aria-controls": c.contentId,
494
494
  "aria-expanded": c.open || !1,
@@ -501,12 +501,12 @@ const ye = "Collapsible", [ot, Ce] = oe(ye), [at, ce] = ot(ye), ct = /* @__PURE_
501
501
  }));
502
502
  }), Ne = "CollapsibleContent", lt = /* @__PURE__ */ S((e, r) => {
503
503
  const { forceMount: n, ...o } = e, c = ce(Ne, e.__scopeCollapsible);
504
- return /* @__PURE__ */ y(
504
+ return /* @__PURE__ */ A(
505
505
  xe,
506
506
  {
507
507
  present: n || c.open
508
508
  },
509
- ({ present: t }) => /* @__PURE__ */ y(ut, h({}, o, {
509
+ ({ present: t }) => /* @__PURE__ */ A(ut, h({}, o, {
510
510
  ref: r,
511
511
  present: t
512
512
  }))
@@ -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__ */ A(L.div, h({
535
535
  "data-state": ie(a.open),
536
536
  "data-disabled": a.disabled ? "" : void 0,
537
537
  id: a.contentId,
@@ -560,14 +560,14 @@ 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), [F, ln] = oe(I, [
564
564
  ht,
565
565
  Ce
566
566
  ]), le = Ce(), Ee = /* @__PURE__ */ u.forwardRef((e, r) => {
567
567
  const { type: n, ...o } = e, c = o, t = o;
568
568
  return /* @__PURE__ */ u.createElement(se.Provider, {
569
569
  scope: e.__scopeAccordion
570
- }, n === "multiple" ? /* @__PURE__ */ u.createElement(At, h({}, t, {
570
+ }, n === "multiple" ? /* @__PURE__ */ u.createElement(yt, h({}, t, {
571
571
  ref: r
572
572
  })) : /* @__PURE__ */ u.createElement(xt, h({}, c, {
573
573
  ref: r
@@ -582,7 +582,7 @@ Ee.propTypes = {
582
582
  ].includes(e.type) ? new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`.") : e.type === "multiple" && typeof r == "string" ? new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`.") : e.type === "single" && Array.isArray(r) ? new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`.") : null;
583
583
  }
584
584
  };
585
- const [Ie, gt] = z(I), [Pe, vt] = z(I, {
585
+ const [Ie, gt] = F(I), [Pe, vt] = F(I, {
586
586
  collapsible: !1
587
587
  }), xt = /* @__PURE__ */ u.forwardRef((e, r) => {
588
588
  const { value: n, defaultValue: o, onValueChange: c = () => {
@@ -610,7 +610,7 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
610
610
  }, /* @__PURE__ */ u.createElement(we, h({}, a, {
611
611
  ref: r
612
612
  }))));
613
- }), At = /* @__PURE__ */ u.forwardRef((e, r) => {
613
+ }), yt = /* @__PURE__ */ u.forwardRef((e, r) => {
614
614
  const { value: n, defaultValue: o, onValueChange: c = () => {
615
615
  }, ...t } = e, [a = [], i] = ae({
616
616
  prop: n,
@@ -647,16 +647,16 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
647
647
  }, /* @__PURE__ */ u.createElement(we, h({}, t, {
648
648
  ref: r
649
649
  }))));
650
- }), [yt, K] = z(I), we = /* @__PURE__ */ u.forwardRef((e, r) => {
650
+ }), [At, K] = F(I), we = /* @__PURE__ */ u.forwardRef((e, r) => {
651
651
  const { __scopeAccordion: n, disabled: o, dir: c, orientation: t = "vertical", ...a } = e, i = u.useRef(null), l = M(i, r), s = mt(n), p = $t(c) === "ltr", _ = ge(e.onKeyDown, (f) => {
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,22 +675,22 @@ 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
690
  const ke = v % $;
691
691
  (b = g[ke].ref.current) === null || b === void 0 || b.focus();
692
692
  });
693
- return /* @__PURE__ */ u.createElement(yt, {
693
+ return /* @__PURE__ */ u.createElement(At, {
694
694
  scope: n,
695
695
  disabled: o,
696
696
  direction: c,
@@ -702,8 +702,8 @@ const [Ie, gt] = z(I), [Pe, vt] = z(I, {
702
702
  ref: l,
703
703
  onKeyDown: o ? void 0 : _
704
704
  }))));
705
- }), ne = "AccordionItem", [Ct, ue] = z(ne), Nt = /* @__PURE__ */ u.forwardRef((e, r) => {
706
- const { __scopeAccordion: n, value: o, ...c } = e, t = K(ne, n), a = gt(ne, n), i = le(n), l = Ae(), s = o && a.value.includes(o) || !1, d = t.disabled || e.disabled;
705
+ }), ne = "AccordionItem", [Ct, ue] = F(ne), Nt = /* @__PURE__ */ u.forwardRef((e, r) => {
706
+ const { __scopeAccordion: n, value: o, ...c } = e, t = K(ne, n), a = gt(ne, n), i = le(n), l = ye(), s = o && a.value.includes(o) || !1, d = t.disabled || e.disabled;
707
707
  return /* @__PURE__ */ u.createElement(Ct, {
708
708
  scope: n,
709
709
  open: s,
@@ -800,8 +800,9 @@ var Oe = { exports: {} };
800
800
  })(Oe);
801
801
  var kt = Oe.exports;
802
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"
803
+ "purpur-accordion": "_purpur-accordion_1y3zx_1",
804
+ "purpur-accordion__title": "_purpur-accordion__title_1y3zx_1",
805
+ "purpur-accordion--negative": "_purpur-accordion--negative_1y3zx_11"
805
806
  };
806
807
  function qt(e) {
807
808
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -856,35 +857,35 @@ const Ut = /* @__PURE__ */ qt(Vt), Bt = {
856
857
  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>',
857
858
  keywords: ["chevron-down"],
858
859
  category: "utility"
859
- }, Me = (e) => /* @__PURE__ */ A(
860
- Yt,
860
+ }, Me = (e) => /* @__PURE__ */ y(
861
+ Wt,
861
862
  {
862
863
  ...e,
863
864
  svg: Ht
864
865
  }
865
866
  );
866
867
  Me.displayName = "IconChevronDown";
867
- const Gt = Ut.bind(Bt), de = "purpur-icon", Ft = "md", zt = (e) => e.filter((r) => Object.keys(r).length >= 1).map((r) => `${r.name}="${r.value}"`).join(" "), Kt = ({ content: e = "", title: r } = {}) => {
868
+ const Gt = Ut.bind(Bt), de = "purpur-icon", zt = "md", Ft = (e) => e.filter((r) => Object.keys(r).length >= 1).map((r) => `${r.name}="${r.value}"`).join(" "), Kt = ({ content: e = "", title: r } = {}) => {
868
869
  const n = [
869
870
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
870
871
  { name: "fill", value: "currentColor" },
871
872
  { name: "viewBox", value: "0 0 24 24" },
872
873
  r ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
873
874
  ], o = r ? `<title>${r}</title>` : "";
874
- return `<svg ${zt(n)}>${o}${e}</svg>`;
875
- }, Zt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Yt = ({
875
+ return `<svg ${Ft(n)}>${o}${e}</svg>`;
876
+ }, Zt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Wt = ({
876
877
  ["data-testid"]: e,
877
878
  svg: r,
878
879
  allyTitle: n,
879
880
  className: o = "",
880
- size: c = Ft,
881
+ size: c = zt,
881
882
  ...t
882
883
  }) => {
883
884
  const a = Kt({
884
885
  content: Zt(r.svg),
885
886
  title: n
886
887
  }), i = Gt(o, de, `${de}--${c}`);
887
- return /* @__PURE__ */ A(
888
+ return /* @__PURE__ */ y(
888
889
  "span",
889
890
  {
890
891
  "aria-label": n,
@@ -895,7 +896,7 @@ 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
902
  var De = { exports: {} };
@@ -934,8 +935,8 @@ var De = { exports: {} };
934
935
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
935
936
  })();
936
937
  })(De);
937
- var Qt = De.exports;
938
- const Wt = /* @__PURE__ */ Jt(Qt), R = {
938
+ var Jt = De.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}`],
@@ -981,7 +982,7 @@ const Wt = /* @__PURE__ */ Jt(Qt), R = {
981
982
  [R[`${T}--negative`]]: t
982
983
  }
983
984
  ]);
984
- return /* @__PURE__ */ A("p", { ...i, className: l, "data-testid": e, children: r });
985
+ return /* @__PURE__ */ y("p", { ...i, className: l, "data-testid": e, children: r });
985
986
  }, tn = "_slideDown_1vvn6_1", nn = "_slideUp_1vvn6_1", rn = {
986
987
  "purpur-accordion-item": "_purpur-accordion-item_1vvn6_1",
987
988
  "purpur-accordion-item__header": "_purpur-accordion-item__header_1vvn6_8",
@@ -1010,20 +1011,20 @@ const Wt = /* @__PURE__ */ Jt(Qt), R = {
1010
1011
  }
1011
1012
  ]);
1012
1013
  return /* @__PURE__ */ X(Rt, { className: i, value: n, ...a, children: [
1013
- /* @__PURE__ */ A(Tt, { className: P(`${E}__header`), asChild: !0, children: /* @__PURE__ */ A(me, { tag: o, variant: "title-100", className: P(`${E}__title`), children: /* @__PURE__ */ X(
1014
+ /* @__PURE__ */ y(Tt, { className: P(`${E}__header`), asChild: !0, children: /* @__PURE__ */ y(me, { tag: o, variant: "title-100", className: P(`${E}__title`), children: /* @__PURE__ */ X(
1014
1015
  Mt,
1015
1016
  {
1016
1017
  onClick: t,
1017
1018
  className: P(`${E}__trigger`, r),
1018
1019
  children: [
1019
1020
  n,
1020
- /* @__PURE__ */ A(Me, { size: "md", className: P(`${E}__icon`), "aria-hidden": !0 })
1021
+ /* @__PURE__ */ y(Me, { size: "md", className: P(`${E}__icon`), "aria-hidden": !0 })
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__ */ y(Dt, { className: P(`${E}__content`, r), children: /* @__PURE__ */ y("div", { className: P(`${E}__contentText`), children: typeof e == "string" ? /* @__PURE__ */ y(en, { variant: "paragraph-200", children: e }) : e }) })
1025
1026
  ] });
1026
- }, fe = Re.bind(jt), W = "purpur-accordion", Le = ({
1027
+ }, fe = Re.bind(jt), Q = "purpur-accordion", Le = ({
1027
1028
  ["data-testid"]: e,
1028
1029
  children: r,
1029
1030
  className: n,
@@ -1034,15 +1035,15 @@ 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
- ]), l = () => w.map(r, (s) => F(s, {
1042
+ ]), l = () => w.map(r, (s) => z(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__ */ y(me, { tag: t, variant: a, className: fe(`${Q}__title`), children: c }) : null,
1046
1047
  l()
1047
1048
  ] });
1048
1049
  };