@purpurds/content-block 5.13.0 → 5.15.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,5 +1,5 @@
1
- import { HeadingTagType } from '@purpurds/heading';
2
1
  import { default as React, DetailedHTMLProps, HTMLAttributes, ReactNode } from 'react';
2
+ import { HeadingTagType } from '@purpurds/heading';
3
3
 
4
4
  type Cta = {
5
5
  href: string;
@@ -1,6 +1,6 @@
1
- import { jsxs as y, jsx as l, Fragment as K } from "react/jsx-runtime";
2
- import S, { forwardRef as Y, Children as J } from "react";
3
- function Q(t) {
1
+ import { jsxs as y, jsx as l, Fragment as Y } from "react/jsx-runtime";
2
+ import A, { forwardRef as J, Children as K } from "react";
3
+ function X(t) {
4
4
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
5
  }
6
6
  var j = { exports: {} };
@@ -39,8 +39,8 @@ var j = { exports: {} };
39
39
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
40
40
  })();
41
41
  })(j);
42
- var X = j.exports;
43
- const rr = /* @__PURE__ */ Q(X), er = {
42
+ var Q = j.exports;
43
+ const rr = /* @__PURE__ */ X(Q), er = {
44
44
  "purpur-icon": "_purpur-icon_8u1lq_1",
45
45
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
46
46
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -83,7 +83,7 @@ const rr = /* @__PURE__ */ Q(X), er = {
83
83
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 4a.9.9 0 0 1 .9-.9h6.5a.9.9 0 0 1 .636.264l10 10a.9.9 0 0 1 0 1.272l-4.5 4.5a.9.9 0 1 1-1.272-1.272L19.227 14l-9.1-9.1H4.9v5.227l9.736 9.737a.9.9 0 1 1-1.272 1.272l-10-10A.9.9 0 0 1 3.1 10.5V4ZM8 7.4a.6.6 0 1 0 0 1.2.6.6 0 0 0 0-1.2ZM5.6 8a2.4 2.4 0 1 1 4.8 0 2.4 2.4 0 0 1-4.8 0Z" clip-rule="evenodd"/></svg>',
84
84
  keywords: ["tag"],
85
85
  category: "other"
86
- }, or = rr.bind(er), A = "purpur-icon", sr = "md", cr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), dr = ({ content: t = "", title: u } = {}) => {
86
+ }, or = rr.bind(er), S = "purpur-icon", sr = "md", cr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), dr = ({ content: t = "", title: u } = {}) => {
87
87
  const n = [
88
88
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
89
89
  { name: "fill", value: "currentColor" },
@@ -102,7 +102,7 @@ const rr = /* @__PURE__ */ Q(X), er = {
102
102
  const e = dr({
103
103
  content: _r(u.svg),
104
104
  title: n
105
- }), a = or(i, A, `${A}--${p}`);
105
+ }), a = or(i, S, `${S}--${p}`);
106
106
  return /* @__PURE__ */ l(
107
107
  "span",
108
108
  {
@@ -266,12 +266,12 @@ const xr = /* @__PURE__ */ wr(br), kr = {
266
266
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.9 12a.9.9 0 0 1-.264.636l-5.5 5.5a.9.9 0 0 1-1.272-1.272l3.963-3.964H4a.9.9 0 0 1 0-1.8h13.827l-3.963-3.964a.9.9 0 1 1 1.272-1.272l5.5 5.5A.9.9 0 0 1 20.9 12Z" clip-rule="evenodd"/></svg>',
267
267
  keywords: ["arrow-right"],
268
268
  category: "utility"
269
- }, Sr = {
269
+ }, Ar = {
270
270
  name: "external",
271
271
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M15 3.4a.9.9 0 1 1 0-1.8h6.5a.9.9 0 0 1 .9.9V9a.9.9 0 1 1-1.8 0V4.673l-7.964 7.963a.9.9 0 1 1-1.272-1.272L19.327 3.4H15ZM1.6 5c0-1.05.85-1.9 1.9-1.9h6a.9.9 0 0 1 0 1.8h-6a.1.1 0 0 0-.1.1v15.5a.1.1 0 0 0 .1.1h16a.1.1 0 0 0 .1-.1V14a.9.9 0 1 1 1.8 0v6.5a1.9 1.9 0 0 1-1.9 1.9h-16a1.9 1.9 0 0 1-1.9-1.9V5Z" clip-rule="evenodd"/></svg>',
272
272
  keywords: ["external"],
273
273
  category: "media"
274
- }, Ar = {
274
+ }, Sr = {
275
275
  name: "phone",
276
276
  svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M5.341 2.228c.75-.622 1.73-.43 2.305.145l2.783 2.783a1.9 1.9 0 0 1 0 2.687L8.843 9.43a.1.1 0 0 0 0 .142l5.586 5.585a.1.1 0 0 0 .142 0l1.585-1.585a1.9 1.9 0 0 1 2.687 0l3.5 3.5c.343.342.698 1.023.31 1.742-.346.645-1.173 1.615-3.154 2.936-1.75 1.167-3.667 1.269-5.297.903-1.61-.361-3.015-1.192-3.839-2.016a.9.9 0 0 1 1.273-1.272c.573.572 1.669 1.242 2.96 1.532 1.27.285 2.656.188 3.905-.645 1.483-.989 2.137-1.68 2.418-2.06l-3.348-3.347a.1.1 0 0 0-.142 0l-1.586 1.585a1.9 1.9 0 0 1-2.687 0l-5.585-5.585a1.9 1.9 0 0 1 0-2.688l1.585-1.585a.1.1 0 0 0 0-.142L6.41 3.682c-.447.383-1.183 1.102-2.206 2.38-.878 1.097-1.14 2.08-1.127 2.951.013.898.323 1.758.732 2.59.24.488.733 1.079 1.551 1.88.561.549 1.227 1.152 2.002 1.854.344.312.71.644 1.098 1a.9.9 0 0 1-1.215 1.327c-.367-.336-.722-.658-1.061-.965a77.443 77.443 0 0 1-2.082-1.93c-.831-.813-1.523-1.586-1.909-2.372-.456-.93-.896-2.07-.916-3.356-.02-1.314.399-2.7 1.521-4.103 1.148-1.435 1.995-2.254 2.544-2.71Z" clip-rule="evenodd"/></svg>',
277
277
  keywords: ["phone"],
@@ -363,10 +363,10 @@ const Er = /* @__PURE__ */ Ir(jr), Lr = {
363
363
  "purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1mhg7_108"
364
364
  }, Pr = Er.bind(Lr), h = "purpur-cta-link", Rr = {
365
365
  forward: Nr,
366
- external: Sr,
366
+ external: Ar,
367
367
  back: $r,
368
- phone: Ar
369
- }, Cr = Y(
368
+ phone: Sr
369
+ }, Cr = J(
370
370
  ({
371
371
  children: t,
372
372
  className: u,
@@ -391,7 +391,7 @@ const Er = /* @__PURE__ */ Ir(jr), Lr = {
391
391
  [`${h}--negative`]: r,
392
392
  [`${h}--full-width`]: i
393
393
  }
394
- ), b = Rr[o], x = /* @__PURE__ */ y(K, { children: [
394
+ ), b = Rr[o], x = /* @__PURE__ */ y(Y, { children: [
395
395
  (o === "back" || o === "phone") && /* @__PURE__ */ l(q, { svg: b, size: e === "lg" ? "sm" : "xs" }),
396
396
  !p && t,
397
397
  (o === "forward" || o === "external") && /* @__PURE__ */ l(q, { svg: b, size: e === "lg" ? "sm" : "xs" })
@@ -459,7 +459,7 @@ const Vr = /* @__PURE__ */ Br(Hr), $ = {
459
459
  "purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
460
460
  "purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
461
461
  "purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
462
- }, Gr = {
462
+ }, Dr = {
463
463
  TITLE100: "title-100",
464
464
  TITLE200: "title-200",
465
465
  TITLE300: "title-300",
@@ -475,7 +475,7 @@ const Vr = /* @__PURE__ */ Br(Hr), $ = {
475
475
  enableHyphenation: i = !1,
476
476
  negative: p = !1,
477
477
  tag: r,
478
- variant: e = Gr.TITLE100,
478
+ variant: e = Dr.TITLE100,
479
479
  ...a
480
480
  }) => {
481
481
  const o = r, g = Vr([
@@ -490,7 +490,7 @@ const Vr = /* @__PURE__ */ Br(Hr), $ = {
490
490
  return /* @__PURE__ */ l(o, { ...a, className: g, "data-testid": t, children: u });
491
491
  };
492
492
  C.displayName = "Heading";
493
- function Dr(t) {
493
+ function Gr(t) {
494
494
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
495
495
  }
496
496
  var B = { exports: {} };
@@ -530,7 +530,7 @@ var B = { exports: {} };
530
530
  })();
531
531
  })(B);
532
532
  var zr = B.exports;
533
- const Fr = /* @__PURE__ */ Dr(zr), Ur = {
533
+ const Fr = /* @__PURE__ */ Gr(zr), Ur = {
534
534
  "purpur-icon": "_purpur-icon_8u1lq_1",
535
535
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
536
536
  "purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
@@ -551,26 +551,26 @@ const Fr = /* @__PURE__ */ Dr(zr), Ur = {
551
551
  }
552
552
  );
553
553
  H.displayName = "IconCheckmark";
554
- const Kr = Fr.bind(Ur), T = "purpur-icon", Yr = "md", Jr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Qr = ({ content: t = "", title: u } = {}) => {
554
+ const Yr = Fr.bind(Ur), T = "purpur-icon", Jr = "md", Kr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Xr = ({ content: t = "", title: u } = {}) => {
555
555
  const n = [
556
556
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
557
557
  { name: "fill", value: "currentColor" },
558
558
  { name: "viewBox", value: "0 0 24 24" },
559
559
  u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
560
560
  ], i = u ? `<title>${u}</title>` : "";
561
- return `<svg ${Jr(n)}>${i}${t}</svg>`;
562
- }, Xr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), re = ({
561
+ return `<svg ${Kr(n)}>${i}${t}</svg>`;
562
+ }, Qr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), re = ({
563
563
  ["data-testid"]: t,
564
564
  svg: u,
565
565
  allyTitle: n,
566
566
  className: i,
567
- size: p = Yr,
567
+ size: p = Jr,
568
568
  ...r
569
569
  }) => {
570
- const e = Qr({
571
- content: Xr(u.svg),
570
+ const e = Xr({
571
+ content: Qr(u.svg),
572
572
  title: n
573
- }), a = Kr(i, T, `${T}--${p}`);
573
+ }), a = Yr(i, T, `${T}--${p}`);
574
574
  return /* @__PURE__ */ l(
575
575
  "span",
576
576
  {
@@ -648,7 +648,7 @@ const ae = /* @__PURE__ */ ee(te), m = {
648
648
  ADDITIONAL100MEDIUM: "additional-100-medium",
649
649
  OVERLINE100: "overline-100",
650
650
  OVERLINE200: "overline-200"
651
- }, f = "purpur-paragraph", G = ({
651
+ }, f = "purpur-paragraph", D = ({
652
652
  ["data-testid"]: t,
653
653
  children: u,
654
654
  className: n,
@@ -670,11 +670,11 @@ const ae = /* @__PURE__ */ ee(te), m = {
670
670
  ]);
671
671
  return /* @__PURE__ */ l("p", { ...a, className: o, "data-testid": t, children: u });
672
672
  };
673
- G.displayName = "Paragraph";
673
+ D.displayName = "Paragraph";
674
674
  function ue(t) {
675
675
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
676
676
  }
677
- var D = { exports: {} };
677
+ var G = { exports: {} };
678
678
  /*!
679
679
  Copyright (c) 2018 Jed Watson.
680
680
  Licensed under the MIT License (MIT), see
@@ -709,8 +709,8 @@ var D = { exports: {} };
709
709
  }
710
710
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
711
711
  })();
712
- })(D);
713
- var pe = D.exports;
712
+ })(G);
713
+ var pe = G.exports;
714
714
  const z = /* @__PURE__ */ ue(pe), ie = {
715
715
  "purpur-content-block": "_purpur-content-block_1c7ua_1",
716
716
  "purpur-content-block__section": "_purpur-content-block__section_1c7ua_18",
@@ -741,7 +741,7 @@ const z = /* @__PURE__ */ ue(pe), ie = {
741
741
  [`${I}--negative`]: n
742
742
  }
743
743
  ]);
744
- return /* @__PURE__ */ l("div", { className: r, "data-testid": i, ...p, children: J.map(t, (a) => S.isValidElement(a) ? S.cloneElement(a, { negative: n }) : a) });
744
+ return /* @__PURE__ */ l("div", { className: r, "data-testid": i, ...p, children: K.map(t, (a) => A.isValidElement(a) ? A.cloneElement(a, { negative: n }) : a) });
745
745
  };
746
746
  F.displayName = "ContentBlockGroup";
747
747
  const c = z.bind(ie), s = "purpur-content-block", U = ({
@@ -782,7 +782,7 @@ const c = z.bind(ie), s = "purpur-content-block", U = ({
782
782
  className: c(`${s}__usp-list-item-icon`)
783
783
  }
784
784
  ),
785
- /* @__PURE__ */ l(G, { negative: n, children: d })
785
+ /* @__PURE__ */ l(D, { negative: n, children: d })
786
786
  ] }, d)
787
787
  ) }) : null,
788
788
  a && a.length > 0 && /* @__PURE__ */ l("div", { className: c(`${s}__links`), children: a.map(