@purpurds/content-block 5.27.3 → 5.27.5
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.
- package/dist/LICENSE.txt +5 -5
- package/dist/content-block.cjs.js +9 -9
- package/dist/content-block.cjs.js.map +1 -1
- package/dist/content-block.es.js +123 -107
- package/dist/content-block.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -8
- package/src/content-block.module.scss +1 -1
- package/src/content-block.stories.tsx +3 -0
package/dist/content-block.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as w, jsx as l, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import S, { forwardRef as X, Children as Q } from "react";
|
|
3
3
|
function rr(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var j = { exports: {} };
|
|
7
7
|
/*!
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
@@ -38,8 +38,8 @@ var I = { exports: {} };
|
|
|
38
38
|
}
|
|
39
39
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
40
40
|
})();
|
|
41
|
-
})(
|
|
42
|
-
var er =
|
|
41
|
+
})(j);
|
|
42
|
+
var er = j.exports;
|
|
43
43
|
const tr = /* @__PURE__ */ rr(er), ar = {
|
|
44
44
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
45
45
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
@@ -83,7 +83,7 @@ const tr = /* @__PURE__ */ rr(er), ar = {
|
|
|
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
|
-
}, cr = tr.bind(ar),
|
|
86
|
+
}, cr = tr.bind(ar), O = "purpur-icon", dr = "md", _r = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), gr = ({ 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" },
|
|
@@ -91,7 +91,7 @@ const tr = /* @__PURE__ */ rr(er), ar = {
|
|
|
91
91
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
92
92
|
], i = u ? `<title>${u}</title>` : "";
|
|
93
93
|
return `<svg ${_r(n)}>${i}${t}</svg>`;
|
|
94
|
-
}, hr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
94
|
+
}, hr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), E = ({
|
|
95
95
|
["data-testid"]: t,
|
|
96
96
|
svg: u,
|
|
97
97
|
allyTitle: n,
|
|
@@ -102,7 +102,7 @@ const tr = /* @__PURE__ */ rr(er), ar = {
|
|
|
102
102
|
const e = gr({
|
|
103
103
|
content: hr(u.svg),
|
|
104
104
|
title: n
|
|
105
|
-
}), a = cr(i,
|
|
105
|
+
}), a = cr(i, O, `${O}--${p}`);
|
|
106
106
|
return /* @__PURE__ */ l(
|
|
107
107
|
"span",
|
|
108
108
|
{
|
|
@@ -114,11 +114,11 @@ const tr = /* @__PURE__ */ rr(er), ar = {
|
|
|
114
114
|
}
|
|
115
115
|
);
|
|
116
116
|
};
|
|
117
|
-
|
|
117
|
+
E.displayName = "Icon";
|
|
118
118
|
function vr(t) {
|
|
119
119
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
120
120
|
}
|
|
121
|
-
var
|
|
121
|
+
var L = { exports: {} };
|
|
122
122
|
/*!
|
|
123
123
|
Copyright (c) 2018 Jed Watson.
|
|
124
124
|
Licensed under the MIT License (MIT), see
|
|
@@ -153,9 +153,9 @@ var T = { exports: {} };
|
|
|
153
153
|
}
|
|
154
154
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
155
155
|
})();
|
|
156
|
-
})(
|
|
157
|
-
var
|
|
158
|
-
const
|
|
156
|
+
})(L);
|
|
157
|
+
var mr = L.exports;
|
|
158
|
+
const fr = /* @__PURE__ */ vr(mr), M = {
|
|
159
159
|
"purpur-badge": "_purpur-badge_1r1mu_1",
|
|
160
160
|
"purpur-badge--attention": "_purpur-badge--attention_1r1mu_13",
|
|
161
161
|
"purpur-badge--special": "_purpur-badge--special_1r1mu_17",
|
|
@@ -165,7 +165,7 @@ const mr = /* @__PURE__ */ vr(fr), Z = {
|
|
|
165
165
|
"purpur-badge--warning": "_purpur-badge--warning_1r1mu_33",
|
|
166
166
|
"purpur-badge--error": "_purpur-badge--error_1r1mu_37",
|
|
167
167
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1r1mu_41"
|
|
168
|
-
},
|
|
168
|
+
}, Z = "purpur-badge", g = {
|
|
169
169
|
ATTENTION: "attention",
|
|
170
170
|
SPECIAL: "special",
|
|
171
171
|
NEUTRAL: "neutral",
|
|
@@ -203,16 +203,16 @@ const mr = /* @__PURE__ */ vr(fr), Z = {
|
|
|
203
203
|
className: r = "",
|
|
204
204
|
...e
|
|
205
205
|
}) => {
|
|
206
|
-
const a = yr(n), o =
|
|
206
|
+
const a = yr(n), o = fr([r, M[Z], M[`${Z}--${n}`]]);
|
|
207
207
|
return /* @__PURE__ */ w("span", { "aria-label": p, className: o, "data-testid": i, ...e, children: [
|
|
208
|
-
u && a && /* @__PURE__ */ l(
|
|
208
|
+
u && a && /* @__PURE__ */ l(E, { "data-testid": `${i}-icon`, allyTitle: p, size: "xs", svg: a }),
|
|
209
209
|
t
|
|
210
210
|
] });
|
|
211
211
|
};
|
|
212
212
|
function br(t) {
|
|
213
213
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var P = { exports: {} };
|
|
216
216
|
/*!
|
|
217
217
|
Copyright (c) 2018 Jed Watson.
|
|
218
218
|
Licensed under the MIT License (MIT), see
|
|
@@ -247,8 +247,8 @@ var B = { exports: {} };
|
|
|
247
247
|
}
|
|
248
248
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
249
249
|
})();
|
|
250
|
-
})(
|
|
251
|
-
var xr =
|
|
250
|
+
})(P);
|
|
251
|
+
var xr = P.exports;
|
|
252
252
|
const kr = /* @__PURE__ */ br(xr), $r = {
|
|
253
253
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
254
254
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
@@ -262,41 +262,41 @@ const kr = /* @__PURE__ */ br(xr), $r = {
|
|
|
262
262
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',
|
|
263
263
|
keywords: ["arrow-left"],
|
|
264
264
|
category: "utility"
|
|
265
|
-
},
|
|
265
|
+
}, Ar = {
|
|
266
266
|
name: "arrow-right",
|
|
267
267
|
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>',
|
|
268
268
|
keywords: ["arrow-right"],
|
|
269
269
|
category: "utility"
|
|
270
|
-
},
|
|
270
|
+
}, Sr = {
|
|
271
271
|
name: "external",
|
|
272
272
|
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>',
|
|
273
273
|
keywords: ["external"],
|
|
274
274
|
category: "media"
|
|
275
|
-
},
|
|
275
|
+
}, Or = {
|
|
276
276
|
name: "phone",
|
|
277
277
|
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>',
|
|
278
278
|
keywords: ["phone"],
|
|
279
279
|
category: "device"
|
|
280
|
-
},
|
|
280
|
+
}, Mr = kr.bind($r), q = "purpur-icon", Zr = "md", qr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Ir = ({ content: t = "", title: u } = {}) => {
|
|
281
281
|
const n = [
|
|
282
282
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
283
283
|
{ name: "fill", value: "currentColor" },
|
|
284
284
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
285
285
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
286
286
|
], i = u ? `<title>${u}</title>` : "";
|
|
287
|
-
return `<svg ${
|
|
288
|
-
},
|
|
287
|
+
return `<svg ${qr(n)}>${i}${t}</svg>`;
|
|
288
|
+
}, Tr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), A = ({
|
|
289
289
|
["data-testid"]: t,
|
|
290
290
|
svg: u,
|
|
291
291
|
allyTitle: n,
|
|
292
292
|
className: i,
|
|
293
|
-
size: p =
|
|
293
|
+
size: p = Zr,
|
|
294
294
|
...r
|
|
295
295
|
}) => {
|
|
296
|
-
const e =
|
|
297
|
-
content:
|
|
296
|
+
const e = Ir({
|
|
297
|
+
content: Tr(u.svg),
|
|
298
298
|
title: n
|
|
299
|
-
}), a =
|
|
299
|
+
}), a = Mr(i, q, `${q}--${p}`);
|
|
300
300
|
return /* @__PURE__ */ l(
|
|
301
301
|
"span",
|
|
302
302
|
{
|
|
@@ -308,11 +308,11 @@ const kr = /* @__PURE__ */ br(xr), $r = {
|
|
|
308
308
|
}
|
|
309
309
|
);
|
|
310
310
|
};
|
|
311
|
-
|
|
312
|
-
function
|
|
311
|
+
A.displayName = "Icon";
|
|
312
|
+
function jr(t) {
|
|
313
313
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
314
314
|
}
|
|
315
|
-
var
|
|
315
|
+
var R = { exports: {} };
|
|
316
316
|
/*!
|
|
317
317
|
Copyright (c) 2018 Jed Watson.
|
|
318
318
|
Licensed under the MIT License (MIT), see
|
|
@@ -347,9 +347,9 @@ var H = { exports: {} };
|
|
|
347
347
|
}
|
|
348
348
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
349
349
|
})();
|
|
350
|
-
})(
|
|
351
|
-
var
|
|
352
|
-
const
|
|
350
|
+
})(R);
|
|
351
|
+
var Er = R.exports;
|
|
352
|
+
const Lr = /* @__PURE__ */ jr(Er), Pr = {
|
|
353
353
|
"purpur-cta-link": "_purpur-cta-link_1mhg7_1",
|
|
354
354
|
"purpur-cta-link--sm": "_purpur-cta-link--sm_1mhg7_33",
|
|
355
355
|
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_1mhg7_36",
|
|
@@ -363,12 +363,12 @@ const Tr = /* @__PURE__ */ Ir(Pr), Br = {
|
|
|
363
363
|
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_1mhg7_87",
|
|
364
364
|
"purpur-cta-link--expressive": "_purpur-cta-link--expressive_1mhg7_98",
|
|
365
365
|
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1mhg7_108"
|
|
366
|
-
},
|
|
367
|
-
forward:
|
|
368
|
-
external:
|
|
366
|
+
}, Rr = Lr.bind(Pr), v = "purpur-cta-link", Cr = {
|
|
367
|
+
forward: Ar,
|
|
368
|
+
external: Sr,
|
|
369
369
|
back: Nr,
|
|
370
|
-
phone:
|
|
371
|
-
},
|
|
370
|
+
phone: Or
|
|
371
|
+
}, Br = X(
|
|
372
372
|
({
|
|
373
373
|
children: t,
|
|
374
374
|
className: u,
|
|
@@ -380,9 +380,9 @@ const Tr = /* @__PURE__ */ Ir(Pr), Br = {
|
|
|
380
380
|
size: a = "md",
|
|
381
381
|
variant: o,
|
|
382
382
|
icon: _ = "forward",
|
|
383
|
-
...
|
|
383
|
+
...m
|
|
384
384
|
}, h) => {
|
|
385
|
-
const N =
|
|
385
|
+
const N = Rr(
|
|
386
386
|
[
|
|
387
387
|
u,
|
|
388
388
|
v,
|
|
@@ -394,22 +394,22 @@ const Tr = /* @__PURE__ */ Ir(Pr), Br = {
|
|
|
394
394
|
[`${v}--negative`]: e,
|
|
395
395
|
[`${v}--full-width`]: i
|
|
396
396
|
}
|
|
397
|
-
), b =
|
|
398
|
-
r && (_ === "back" || _ === "phone") && /* @__PURE__ */ l(
|
|
397
|
+
), b = Cr[_], x = /* @__PURE__ */ w(K, { children: [
|
|
398
|
+
r && (_ === "back" || _ === "phone") && /* @__PURE__ */ l(A, { svg: b, size: a === "lg" ? "sm" : "xs" }),
|
|
399
399
|
(!p || p && !r) && t,
|
|
400
|
-
r && (_ === "forward" || _ === "external") && /* @__PURE__ */ l(
|
|
400
|
+
r && (_ === "forward" || _ === "external") && /* @__PURE__ */ l(A, { svg: b, size: a === "lg" ? "sm" : "xs" })
|
|
401
401
|
] }), s = {
|
|
402
|
-
...
|
|
402
|
+
...m,
|
|
403
403
|
className: N,
|
|
404
404
|
"data-testid": n
|
|
405
405
|
};
|
|
406
|
-
return "href" in
|
|
406
|
+
return "href" in m && m.href ? /* @__PURE__ */ l("a", { ...s, ref: h, children: x }) : /* @__PURE__ */ l("span", { ...s, ref: h, children: x });
|
|
407
407
|
}
|
|
408
408
|
);
|
|
409
|
-
function
|
|
409
|
+
function Hr(t) {
|
|
410
410
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
411
411
|
}
|
|
412
|
-
var
|
|
412
|
+
var C = { exports: {} };
|
|
413
413
|
/*!
|
|
414
414
|
Copyright (c) 2018 Jed Watson.
|
|
415
415
|
Licensed under the MIT License (MIT), see
|
|
@@ -444,9 +444,9 @@ var L = { exports: {} };
|
|
|
444
444
|
}
|
|
445
445
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
446
446
|
})();
|
|
447
|
-
})(
|
|
448
|
-
var Vr =
|
|
449
|
-
const
|
|
447
|
+
})(C);
|
|
448
|
+
var Vr = C.exports;
|
|
449
|
+
const Dr = /* @__PURE__ */ Hr(Vr), k = {
|
|
450
450
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
451
451
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
452
452
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -462,19 +462,26 @@ const zr = /* @__PURE__ */ Er(Vr), k = {
|
|
|
462
462
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
463
463
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
464
464
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
465
|
-
},
|
|
466
|
-
TITLE100: "title-100"
|
|
467
|
-
|
|
465
|
+
}, Gr = {
|
|
466
|
+
TITLE100: "title-100",
|
|
467
|
+
TITLE200: "title-200",
|
|
468
|
+
TITLE300: "title-300",
|
|
469
|
+
TITLE400: "title-400",
|
|
470
|
+
TITLE500: "title-500",
|
|
471
|
+
TITLE600: "title-600",
|
|
472
|
+
TITLE700: "title-700",
|
|
473
|
+
SUBSECTION100: "subsection-100"
|
|
474
|
+
}, $ = "purpur-heading", B = ({
|
|
468
475
|
["data-testid"]: t,
|
|
469
476
|
children: u,
|
|
470
477
|
className: n = "",
|
|
471
478
|
enableHyphenation: i = !1,
|
|
472
479
|
negative: p = !1,
|
|
473
480
|
tag: r,
|
|
474
|
-
variant: e =
|
|
481
|
+
variant: e = Gr.TITLE100,
|
|
475
482
|
...a
|
|
476
483
|
}) => {
|
|
477
|
-
const o = r, _ =
|
|
484
|
+
const o = r, _ = Dr([
|
|
478
485
|
n,
|
|
479
486
|
k[$],
|
|
480
487
|
k[`${$}--${e}`],
|
|
@@ -485,11 +492,11 @@ const zr = /* @__PURE__ */ Er(Vr), k = {
|
|
|
485
492
|
]);
|
|
486
493
|
return /* @__PURE__ */ l(o, { ...a, className: _, "data-testid": t, children: u });
|
|
487
494
|
};
|
|
488
|
-
|
|
489
|
-
function
|
|
495
|
+
B.displayName = "Heading";
|
|
496
|
+
function zr(t) {
|
|
490
497
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
491
498
|
}
|
|
492
|
-
var
|
|
499
|
+
var H = { exports: {} };
|
|
493
500
|
/*!
|
|
494
501
|
Copyright (c) 2018 Jed Watson.
|
|
495
502
|
Licensed under the MIT License (MIT), see
|
|
@@ -524,9 +531,9 @@ var E = { exports: {} };
|
|
|
524
531
|
}
|
|
525
532
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
526
533
|
})();
|
|
527
|
-
})(
|
|
528
|
-
var
|
|
529
|
-
const
|
|
534
|
+
})(H);
|
|
535
|
+
var Fr = H.exports;
|
|
536
|
+
const Ur = /* @__PURE__ */ zr(Fr), Wr = {
|
|
530
537
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
531
538
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
532
539
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -540,14 +547,14 @@ const Wr = /* @__PURE__ */ Gr(Ur), Dr = {
|
|
|
540
547
|
keywords: ["checkmark"],
|
|
541
548
|
category: "utility"
|
|
542
549
|
}, V = (t) => /* @__PURE__ */ l(
|
|
543
|
-
|
|
550
|
+
D,
|
|
544
551
|
{
|
|
545
552
|
...t,
|
|
546
553
|
svg: Yr
|
|
547
554
|
}
|
|
548
555
|
);
|
|
549
556
|
V.displayName = "IconCheckmark";
|
|
550
|
-
const Jr =
|
|
557
|
+
const Jr = Ur.bind(Wr), I = "purpur-icon", Kr = "md", Xr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), Qr = ({ content: t = "", title: u } = {}) => {
|
|
551
558
|
const n = [
|
|
552
559
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
553
560
|
{ name: "fill", value: "currentColor" },
|
|
@@ -555,7 +562,7 @@ const Jr = Wr.bind(Dr), j = "purpur-icon", Kr = "md", Xr = (t) => t.filter((u) =
|
|
|
555
562
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
556
563
|
], i = u ? `<title>${u}</title>` : "";
|
|
557
564
|
return `<svg ${Xr(n)}>${i}${t}</svg>`;
|
|
558
|
-
}, re = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
565
|
+
}, re = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), D = ({
|
|
559
566
|
["data-testid"]: t,
|
|
560
567
|
svg: u,
|
|
561
568
|
allyTitle: n,
|
|
@@ -566,7 +573,7 @@ const Jr = Wr.bind(Dr), j = "purpur-icon", Kr = "md", Xr = (t) => t.filter((u) =
|
|
|
566
573
|
const e = Qr({
|
|
567
574
|
content: re(u.svg),
|
|
568
575
|
title: n
|
|
569
|
-
}), a = Jr(i,
|
|
576
|
+
}), a = Jr(i, I, `${I}--${p}`);
|
|
570
577
|
return /* @__PURE__ */ l(
|
|
571
578
|
"span",
|
|
572
579
|
{
|
|
@@ -578,11 +585,11 @@ const Jr = Wr.bind(Dr), j = "purpur-icon", Kr = "md", Xr = (t) => t.filter((u) =
|
|
|
578
585
|
}
|
|
579
586
|
);
|
|
580
587
|
};
|
|
581
|
-
|
|
588
|
+
D.displayName = "Icon";
|
|
582
589
|
function ee(t) {
|
|
583
590
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
584
591
|
}
|
|
585
|
-
var
|
|
592
|
+
var G = { exports: {} };
|
|
586
593
|
/*!
|
|
587
594
|
Copyright (c) 2018 Jed Watson.
|
|
588
595
|
Licensed under the MIT License (MIT), see
|
|
@@ -617,9 +624,9 @@ var F = { exports: {} };
|
|
|
617
624
|
}
|
|
618
625
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
619
626
|
})();
|
|
620
|
-
})(
|
|
621
|
-
var te =
|
|
622
|
-
const ae = /* @__PURE__ */ ee(te),
|
|
627
|
+
})(G);
|
|
628
|
+
var te = G.exports;
|
|
629
|
+
const ae = /* @__PURE__ */ ee(te), f = {
|
|
623
630
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
624
631
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
625
632
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -635,8 +642,17 @@ const ae = /* @__PURE__ */ ee(te), m = {
|
|
|
635
642
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
636
643
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
637
644
|
}, ne = {
|
|
638
|
-
PARAGRAPH100: "paragraph-100"
|
|
639
|
-
|
|
645
|
+
PARAGRAPH100: "paragraph-100",
|
|
646
|
+
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
647
|
+
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
648
|
+
PARAGRAPH200: "paragraph-200",
|
|
649
|
+
PREAMBLE100: "preamble-100",
|
|
650
|
+
PREAMBLE200: "preamble-200",
|
|
651
|
+
ADDITIONAL100: "additional-100",
|
|
652
|
+
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
653
|
+
OVERLINE100: "overline-100",
|
|
654
|
+
OVERLINE200: "overline-200"
|
|
655
|
+
}, y = "purpur-paragraph", z = ({
|
|
640
656
|
["data-testid"]: t,
|
|
641
657
|
children: u,
|
|
642
658
|
className: n,
|
|
@@ -648,21 +664,21 @@ const ae = /* @__PURE__ */ ee(te), m = {
|
|
|
648
664
|
}) => {
|
|
649
665
|
const o = ae([
|
|
650
666
|
n,
|
|
651
|
-
|
|
652
|
-
|
|
667
|
+
f[y],
|
|
668
|
+
f[`${y}--${e}`],
|
|
653
669
|
{
|
|
654
|
-
[
|
|
655
|
-
[
|
|
656
|
-
[
|
|
670
|
+
[f[`${y}--hyphens`]]: p,
|
|
671
|
+
[f[`${y}--disabled`]]: i,
|
|
672
|
+
[f[`${y}--negative`]]: r
|
|
657
673
|
}
|
|
658
674
|
]);
|
|
659
675
|
return /* @__PURE__ */ l("p", { ...a, className: o, "data-testid": t, children: u });
|
|
660
676
|
};
|
|
661
|
-
|
|
677
|
+
z.displayName = "Paragraph";
|
|
662
678
|
function ue(t) {
|
|
663
679
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
664
680
|
}
|
|
665
|
-
var
|
|
681
|
+
var F = { exports: {} };
|
|
666
682
|
/*!
|
|
667
683
|
Copyright (c) 2018 Jed Watson.
|
|
668
684
|
Licensed under the MIT License (MIT), see
|
|
@@ -697,25 +713,25 @@ var U = { exports: {} };
|
|
|
697
713
|
}
|
|
698
714
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
699
715
|
})();
|
|
700
|
-
})(
|
|
701
|
-
var pe =
|
|
702
|
-
const
|
|
703
|
-
"purpur-content-block": "_purpur-content-
|
|
704
|
-
"purpur-content-block__section": "_purpur-content-
|
|
705
|
-
"purpur-content-block__image-wrapper": "_purpur-content-block__image-
|
|
706
|
-
"purpur-content-block__video-wrapper": "_purpur-content-block__video-
|
|
707
|
-
"purpur-content-block__content-wrapper": "_purpur-content-block__content-
|
|
708
|
-
"purpur-content-block__badge": "_purpur-content-
|
|
709
|
-
"purpur-content-block__content": "_purpur-content-
|
|
710
|
-
"purpur-content-block__usp-list": "_purpur-content-block__usp-
|
|
711
|
-
"purpur-content-block__usp-list-item": "_purpur-content-block__usp-list-
|
|
712
|
-
"purpur-content-block__usp-list-item-icon": "_purpur-content-block__usp-list-item-
|
|
713
|
-
"purpur-content-block__links": "_purpur-content-
|
|
714
|
-
"purpur-content-block--negative": "_purpur-content-block--
|
|
715
|
-
"purpur-content-block__text-spacing": "_purpur-content-block__text-
|
|
716
|
+
})(F);
|
|
717
|
+
var pe = F.exports;
|
|
718
|
+
const U = /* @__PURE__ */ ue(pe), ie = {
|
|
719
|
+
"purpur-content-block": "_purpur-content-block_1in4d_1",
|
|
720
|
+
"purpur-content-block__section": "_purpur-content-block__section_1in4d_18",
|
|
721
|
+
"purpur-content-block__image-wrapper": "_purpur-content-block__image-wrapper_1in4d_22",
|
|
722
|
+
"purpur-content-block__video-wrapper": "_purpur-content-block__video-wrapper_1in4d_25",
|
|
723
|
+
"purpur-content-block__content-wrapper": "_purpur-content-block__content-wrapper_1in4d_35",
|
|
724
|
+
"purpur-content-block__badge": "_purpur-content-block__badge_1in4d_40",
|
|
725
|
+
"purpur-content-block__content": "_purpur-content-block__content_1in4d_35",
|
|
726
|
+
"purpur-content-block__usp-list": "_purpur-content-block__usp-list_1in4d_46",
|
|
727
|
+
"purpur-content-block__usp-list-item": "_purpur-content-block__usp-list-item_1in4d_51",
|
|
728
|
+
"purpur-content-block__usp-list-item-icon": "_purpur-content-block__usp-list-item-icon_1in4d_59",
|
|
729
|
+
"purpur-content-block__links": "_purpur-content-block__links_1in4d_62",
|
|
730
|
+
"purpur-content-block--negative": "_purpur-content-block--negative_1in4d_73",
|
|
731
|
+
"purpur-content-block__text-spacing": "_purpur-content-block__text-spacing_1in4d_73"
|
|
716
732
|
}, le = {
|
|
717
733
|
"purpur-content-block-group": "_purpur-content-block-group_1g4rh_1"
|
|
718
|
-
}, oe =
|
|
734
|
+
}, oe = U.bind(le), T = "purpur-content-block-group", W = ({
|
|
719
735
|
children: t,
|
|
720
736
|
className: u,
|
|
721
737
|
negative: n,
|
|
@@ -724,15 +740,15 @@ const W = /* @__PURE__ */ ue(pe), ie = {
|
|
|
724
740
|
}) => {
|
|
725
741
|
const r = oe([
|
|
726
742
|
u,
|
|
727
|
-
|
|
743
|
+
T,
|
|
728
744
|
{
|
|
729
|
-
[`${
|
|
745
|
+
[`${T}--negative`]: n
|
|
730
746
|
}
|
|
731
747
|
]);
|
|
732
|
-
return /* @__PURE__ */ l("div", { className: r, "data-testid": i, ...p, children: Q.map(t, (a) =>
|
|
748
|
+
return /* @__PURE__ */ l("div", { className: r, "data-testid": i, ...p, children: Q.map(t, (a) => S.isValidElement(a) ? S.cloneElement(a, { negative: n }) : a) });
|
|
733
749
|
};
|
|
734
|
-
|
|
735
|
-
const d =
|
|
750
|
+
W.displayName = "ContentBlockGroup";
|
|
751
|
+
const d = U.bind(ie), c = "purpur-content-block", Y = ({
|
|
736
752
|
["data-testid"]: t,
|
|
737
753
|
className: u,
|
|
738
754
|
negative: n,
|
|
@@ -743,7 +759,7 @@ const d = W.bind(ie), c = "purpur-content-block", Y = ({
|
|
|
743
759
|
ctas: a,
|
|
744
760
|
usp: o,
|
|
745
761
|
headingTag: _ = "h2",
|
|
746
|
-
headingVariant:
|
|
762
|
+
headingVariant: m = "title-300",
|
|
747
763
|
onCtaClick: h,
|
|
748
764
|
children: N,
|
|
749
765
|
...b
|
|
@@ -759,7 +775,7 @@ const d = W.bind(ie), c = "purpur-content-block", Y = ({
|
|
|
759
775
|
/* @__PURE__ */ l("div", { className: d(`${c}__section`), children: p ? /* @__PURE__ */ l("div", { className: d(`${c}__video-wrapper`), children: p }) : /* @__PURE__ */ l("div", { className: d(`${c}__image-wrapper`), children: i }) }),
|
|
760
776
|
/* @__PURE__ */ l("div", { className: d(`${c}__section`), children: /* @__PURE__ */ w("div", { className: d(`${c}__content-wrapper`), children: [
|
|
761
777
|
r ? /* @__PURE__ */ l(wr, { variant: "special", className: d(`${c}__badge`), children: r }) : null,
|
|
762
|
-
e && e.trim() && /* @__PURE__ */ l(
|
|
778
|
+
e && e.trim() && /* @__PURE__ */ l(B, { variant: m, tag: _, negative: n, children: e }),
|
|
763
779
|
/* @__PURE__ */ l("div", { className: d(`${c}__content`), children: N }),
|
|
764
780
|
o != null && o.length ? /* @__PURE__ */ l("ul", { className: d(`${c}__usp-list`), children: o.map(
|
|
765
781
|
(s) => s && /* @__PURE__ */ w("li", { className: d(`${c}__usp-list-item`), children: [
|
|
@@ -770,12 +786,12 @@ const d = W.bind(ie), c = "purpur-content-block", Y = ({
|
|
|
770
786
|
className: d(`${c}__usp-list-item-icon`)
|
|
771
787
|
}
|
|
772
788
|
),
|
|
773
|
-
/* @__PURE__ */ l(
|
|
789
|
+
/* @__PURE__ */ l(z, { negative: n, children: s })
|
|
774
790
|
] }, s)
|
|
775
791
|
) }) : null,
|
|
776
792
|
a && a.length > 0 && /* @__PURE__ */ l("div", { className: d(`${c}__links`), children: a.map(
|
|
777
793
|
(s, J) => s.href && /* @__PURE__ */ l(
|
|
778
|
-
|
|
794
|
+
Br,
|
|
779
795
|
{
|
|
780
796
|
href: s.href,
|
|
781
797
|
variant: J === 0 ? "primary" : "secondary",
|
|
@@ -789,7 +805,7 @@ const d = W.bind(ie), c = "purpur-content-block", Y = ({
|
|
|
789
805
|
] }) })
|
|
790
806
|
] });
|
|
791
807
|
};
|
|
792
|
-
Y.Group =
|
|
808
|
+
Y.Group = W;
|
|
793
809
|
Y.displayName = "ContentBlock";
|
|
794
810
|
export {
|
|
795
811
|
Y as ContentBlock
|