@purpurds/accordion 5.30.1 → 5.32.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.
@@ -75,7 +75,7 @@ const B = /* @__PURE__ */ C(D), g = {
75
75
  variant: e = G.TITLE100,
76
76
  ...a
77
77
  }) => {
78
- const s = r, c = B([
78
+ const s = r, l = B([
79
79
  p,
80
80
  g[m],
81
81
  g[`${m}--${e}`],
@@ -84,7 +84,7 @@ const B = /* @__PURE__ */ C(D), g = {
84
84
  [g[`${m}--negative`]]: i
85
85
  }
86
86
  ]);
87
- return /* @__PURE__ */ o(s, { ...a, className: c, "data-testid": t, children: n });
87
+ return /* @__PURE__ */ o(s, { ...a, className: l, "data-testid": t, children: n });
88
88
  };
89
89
  y.displayName = "Heading";
90
90
  function V(t) {
@@ -325,7 +325,7 @@ const ir = {
325
325
  "purpur-accordion-item__content": "_purpur-accordion-item__content_mvbea_67",
326
326
  "purpur-accordion-item__contentText": "_purpur-accordion-item__contentText_mvbea_78",
327
327
  "purpur-accordion-item--negative": "_purpur-accordion-item--negative_mvbea_99"
328
- }, _ = N.bind(ir), l = "purpur-accordion-item", ur = ({
328
+ }, _ = N.bind(ir), c = "purpur-accordion-item", ur = ({
329
329
  children: t,
330
330
  className: n,
331
331
  title: p,
@@ -334,11 +334,11 @@ const ir = {
334
334
  onClick: r,
335
335
  ...e
336
336
  }) => {
337
- const a = k(q), s = R(), [c, E] = M(!i), L = _([
337
+ const a = k(q), s = R(), [l, E] = M(!i), L = _([
338
338
  n,
339
- l,
339
+ c,
340
340
  {
341
- [`${l}--negative`]: a
341
+ [`${c}--negative`]: a
342
342
  }
343
343
  ]);
344
344
  return /* @__PURE__ */ v("div", { className: L, ...e, children: [
@@ -347,24 +347,24 @@ const ir = {
347
347
  {
348
348
  tag: u,
349
349
  variant: "title-100",
350
- className: _([`${l}__header`, `${l}__title`]),
350
+ className: _([`${c}__header`, `${c}__title`]),
351
351
  children: /* @__PURE__ */ v(
352
352
  "button",
353
353
  {
354
354
  type: "button",
355
- "data-state": c ? "open" : "close",
355
+ "data-state": l ? "open" : "close",
356
356
  onClick: (j) => {
357
- r && r(j), E(!c);
357
+ r && r(j), E(!l);
358
358
  },
359
- className: _(`${l}__trigger`, n, {
360
- [`${l}__rotate`]: !c
359
+ className: _(`${c}__trigger`, n, {
360
+ [`${c}__rotate`]: !l
361
361
  }),
362
- "aria-expanded": !c,
362
+ "aria-expanded": !l,
363
363
  "aria-controls": s,
364
364
  id: s + "button",
365
365
  children: [
366
366
  p,
367
- /* @__PURE__ */ o(T, { size: "md", className: _(`${l}__icon`), "aria-hidden": !0 })
367
+ /* @__PURE__ */ o(T, { size: "md", className: _(`${c}__icon`), "aria-hidden": !0 })
368
368
  ]
369
369
  }
370
370
  )
@@ -373,12 +373,12 @@ const ir = {
373
373
  /* @__PURE__ */ o(
374
374
  "div",
375
375
  {
376
- className: _(`${l}__content`, n),
377
- "aria-hidden": c,
376
+ className: _(`${c}__content`, n),
377
+ "aria-hidden": l,
378
378
  id: s,
379
379
  "aria-labelledby": s + "button",
380
380
  role: "region",
381
- children: /* @__PURE__ */ o("div", { className: _(`${l}__contentText`), children: typeof t == "string" ? /* @__PURE__ */ o(O, { variant: "paragraph-200", children: t }) : t })
381
+ children: /* @__PURE__ */ o("div", { className: _(`${c}__contentText`), children: typeof t == "string" ? /* @__PURE__ */ o(O, { variant: "paragraph-200", children: t }) : t })
382
382
  }
383
383
  )
384
384
  ] });
@@ -393,14 +393,14 @@ const ir = {
393
393
  schema: a,
394
394
  ...s
395
395
  }) => {
396
- const c = x([
396
+ const l = x([
397
397
  p,
398
398
  f,
399
399
  {
400
400
  [`${f}--negative`]: u
401
401
  }
402
402
  ]);
403
- return /* @__PURE__ */ v("div", { className: c, "data-testid": t, ...s, children: [
403
+ return /* @__PURE__ */ v("div", { className: l, "data-testid": t, ...s, children: [
404
404
  i && /* @__PURE__ */ o(y, { tag: r, variant: e, className: x(`${f}__title`), children: i }),
405
405
  /* @__PURE__ */ o(q.Provider, { value: u, children: n }),
406
406
  a && /* @__PURE__ */ o(