@purpurds/content-block 6.12.5 → 7.1.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.
- package/dist/LICENSE.txt +4 -11
- package/dist/content-block.cjs.js +7 -15
- package/dist/content-block.cjs.js.map +1 -1
- package/dist/content-block.d.ts +3 -10
- package/dist/content-block.d.ts.map +1 -1
- package/dist/content-block.es.js +226 -454
- package/dist/content-block.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +8 -8
- package/src/content-block-group.test.tsx +4 -14
- package/src/content-block.module.scss +5 -5
- package/src/content-block.stories.tsx +18 -19
- package/src/content-block.test.tsx +21 -24
- package/src/content-block.tsx +14 -43
package/dist/content-block.es.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
function
|
|
1
|
+
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import k, { Children as Y } from "react";
|
|
3
|
+
function J(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var $ = { exports: {} };
|
|
7
7
|
/*!
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
10
10
|
http://jedwatson.github.io/classnames
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return
|
|
12
|
+
var x;
|
|
13
|
+
function Q() {
|
|
14
|
+
return x || (x = 1, function(t) {
|
|
15
15
|
(function() {
|
|
16
|
-
var
|
|
16
|
+
var p = {}.hasOwnProperty;
|
|
17
17
|
function n() {
|
|
18
18
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
19
19
|
var a = arguments[e];
|
|
20
|
-
a && (r =
|
|
20
|
+
a && (r = u(r, o.call(this, a)));
|
|
21
21
|
}
|
|
22
22
|
return r;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function o(r) {
|
|
25
25
|
if (typeof r == "string" || typeof r == "number")
|
|
26
26
|
return this && this[r] || r;
|
|
27
27
|
if (typeof r != "object")
|
|
@@ -32,18 +32,18 @@ function dr() {
|
|
|
32
32
|
return r.toString();
|
|
33
33
|
var e = "";
|
|
34
34
|
for (var a in r)
|
|
35
|
-
|
|
35
|
+
p.call(r, a) && r[a] && (e = u(e, this && this[a] || a));
|
|
36
36
|
return e;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function u(r, e) {
|
|
39
39
|
return e ? r ? r + " " + e : r + e : r;
|
|
40
40
|
}
|
|
41
41
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
42
42
|
})();
|
|
43
|
-
}(
|
|
43
|
+
}($)), $.exports;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const
|
|
45
|
+
var X = Q();
|
|
46
|
+
const rr = /* @__PURE__ */ J(X), er = {
|
|
47
47
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
48
48
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
49
49
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -51,30 +51,29 @@ const gr = /* @__PURE__ */ cr(_r), hr = {
|
|
|
51
51
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
52
52
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
53
53
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
54
|
-
},
|
|
54
|
+
}, tr = rr.bind(er), N = "purpur-icon", ar = "md", nr = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), pr = ({ content: t = "", title: p } = {}) => {
|
|
55
55
|
const n = [
|
|
56
56
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
57
57
|
{ name: "fill", value: "currentColor" },
|
|
58
58
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
59
|
-
|
|
60
|
-
],
|
|
61
|
-
return `<svg ${
|
|
62
|
-
},
|
|
59
|
+
p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
60
|
+
], o = p ? `<title>${p}</title>` : "";
|
|
61
|
+
return `<svg ${nr(n)}>${o}${t}</svg>`;
|
|
62
|
+
}, ur = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), H = ({
|
|
63
63
|
["data-testid"]: t,
|
|
64
|
-
svg:
|
|
64
|
+
svg: p,
|
|
65
65
|
allyTitle: n,
|
|
66
|
-
className:
|
|
67
|
-
size:
|
|
66
|
+
className: o,
|
|
67
|
+
size: u = ar,
|
|
68
68
|
...r
|
|
69
69
|
}) => {
|
|
70
|
-
const e =
|
|
71
|
-
content:
|
|
70
|
+
const e = pr({
|
|
71
|
+
content: ur(p.svg),
|
|
72
72
|
title: n
|
|
73
|
-
}), a =
|
|
73
|
+
}), a = tr(o, N, `${N}--${u}`);
|
|
74
74
|
return /* @__PURE__ */ i(
|
|
75
75
|
"span",
|
|
76
76
|
{
|
|
77
|
-
"aria-label": n,
|
|
78
77
|
className: a,
|
|
79
78
|
"data-testid": t,
|
|
80
79
|
dangerouslySetInnerHTML: { __html: e },
|
|
@@ -82,70 +81,70 @@ const gr = /* @__PURE__ */ cr(_r), hr = {
|
|
|
82
81
|
}
|
|
83
82
|
);
|
|
84
83
|
};
|
|
85
|
-
|
|
86
|
-
const
|
|
84
|
+
H.displayName = "Icon";
|
|
85
|
+
const or = {
|
|
87
86
|
name: "alert",
|
|
88
87
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="m13.038 7.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.586 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.664 0 1.25.601 1.25 1.234Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
89
88
|
keywords: ["alert"],
|
|
90
89
|
category: "status"
|
|
91
|
-
},
|
|
90
|
+
}, ir = {
|
|
92
91
|
name: "check-circle",
|
|
93
92
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M16.487 9.514a.872.872 0 1 0-1.42-1.014l-4.248 5.948-2.18-2.18a.872.872 0 0 0-1.233 1.234l2.908 2.908a.872.872 0 0 0 1.326-.11l4.847-6.786Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
94
93
|
keywords: ["check-circle"],
|
|
95
94
|
category: "status"
|
|
96
|
-
},
|
|
95
|
+
}, lr = {
|
|
97
96
|
name: "devices",
|
|
98
97
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10 3.4a.1.1 0 0 0-.1.1V4a.9.9 0 0 1-1.8 0v-.5c0-1.05.85-1.9 1.9-1.9h10c1.05 0 1.9.85 1.9 1.9v15a1.9 1.9 0 0 1-1.9 1.9h-6a.9.9 0 1 1 0-1.8h6a.1.1 0 0 0 .1-.1v-15a.1.1 0 0 0-.1-.1H10ZM2.1 8c0-1.05.85-1.9 1.9-1.9h6c1.05 0 1.9.85 1.9 1.9v12a1.9 1.9 0 0 1-1.9 1.9H4A1.9 1.9 0 0 1 2.1 20V8ZM4 7.9a.1.1 0 0 0-.1.1v12a.1.1 0 0 0 .1.1h6a.1.1 0 0 0 .1-.1V8a.1.1 0 0 0-.1-.1H4ZM14.6 17a.9.9 0 0 1 .9-.9h.5a.9.9 0 1 1 0 1.8h-.5a.9.9 0 0 1-.9-.9Zm-8.5 1.5a.9.9 0 0 1 .9-.9h.5a.9.9 0 1 1 0 1.8H7a.9.9 0 0 1-.9-.9Z" clip-rule="evenodd"/></svg>',
|
|
99
98
|
keywords: ["devices"],
|
|
100
99
|
category: "device"
|
|
101
|
-
},
|
|
100
|
+
}, cr = {
|
|
102
101
|
name: "error",
|
|
103
102
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.354 3.05c.732-1.267 2.56-1.267 3.291 0l8.66 15c.732 1.267-.182 2.85-1.645 2.85H3.34c-1.463 0-2.377-1.583-1.646-2.85l8.66-15Zm1.595.862a.092.092 0 0 0-.036.038l-8.66 15a.092.092 0 0 0-.015.05c0 .014.005.032.015.05a.11.11 0 0 0 .036.038.09.09 0 0 0 .05.012H20.66a.088.088 0 0 0 .05-.012.106.106 0 0 0 .037-.038.105.105 0 0 0 .015-.05.092.092 0 0 0-.015-.05l-8.66-15a.092.092 0 0 0-.036-.038A.106.106 0 0 0 12 3.9a.105.105 0 0 0-.05.012Z" clip-rule="evenodd"/><path d="m12.523 14.922.412-6.25a.936.936 0 1 0-1.868 0l.421 6.25h1.035ZM12 17.52c.44 0 .826-.387.826-.815 0-.418-.387-.816-.826-.816-.428 0-.825.398-.825.816 0 .428.397.815.825.815Z"/><path fill-rule="evenodd" d="M12.691 15.096h-1.37l-.431-6.53a1 1 0 0 1 .997-1.066h.227a1 1 0 0 1 .998 1.064l-.42 6.532Zm.244-6.425a.936.936 0 1 0-1.868.002l.421 6.249h1.035l.412-6.25ZM13 16.706c0 .526-.466.99-1 .99-.522 0-1-.463-1-.99 0-.264.125-.51.304-.689.18-.178.429-.301.696-.301.536 0 1 .475 1 .99Zm-.174 0c0 .428-.387.815-.826.815-.428 0-.825-.387-.825-.815 0-.418.397-.816.825-.816.44 0 .826.398.826.816Z" clip-rule="evenodd"/></svg>',
|
|
104
103
|
keywords: ["error"],
|
|
105
104
|
category: "status"
|
|
106
|
-
},
|
|
105
|
+
}, sr = {
|
|
107
106
|
name: "info",
|
|
108
107
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 8.18c0 .537.469.979 1.007.979.524 0 .993-.442.993-.98s-.469-.979-.993-.979c-.538 0-1.007.441-1.007.98Zm.152 1.958v6.897h1.696v-6.897h-1.696Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
109
108
|
keywords: ["info"],
|
|
110
109
|
category: "status"
|
|
111
|
-
},
|
|
110
|
+
}, _r = {
|
|
112
111
|
name: "offering",
|
|
113
112
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M7.118 4.6H7a1.9 1.9 0 0 0-1.9 1.9V8a1.9 1.9 0 0 0 1.5 1.858v.642a.9.9 0 1 0 1.8 0v-.6h3.2v.6a.9.9 0 0 0 1.8 0v-.6h3.7V11a.9.9 0 0 0 1.8 0V9.858A1.9 1.9 0 0 0 20.4 8V6.5a1.9 1.9 0 0 0-1.9-1.9h-.618c-.063-.708-.3-1.394-.756-1.943-.56-.674-1.384-1.057-2.376-1.057-.92 0-1.696.33-2.25.915-.554-.585-1.33-.915-2.25-.915-.992 0-1.816.383-2.376 1.057-.457.549-.693 1.235-.756 1.943Zm1.812 0h2.64c-.053-.34-.174-.607-.328-.792-.192-.232-.493-.408-.992-.408s-.8.176-.992.408c-.154.185-.275.452-.328.792Zm4.5 0h2.64c-.053-.34-.174-.607-.328-.792-.192-.232-.493-.408-.992-.408s-.8.176-.992.408c-.154.185-.275.452-.328.792Zm-.03 3.5h5.1a.1.1 0 0 0 .1-.1V6.5a.1.1 0 0 0-.1-.1h-5.1v1.7Zm-1.8-1.7H7a.1.1 0 0 0-.1.1V8a.1.1 0 0 0 .1.1h4.6V6.4Zm8.335 5.147c.743-.107 1.52.135 2.201.817.474.473.695 1.011.708 1.548.012.508-.163.927-.318 1.2-.185.326-.47.607-.634.77l-.049.047-4.414 4.414a1.9 1.9 0 0 1-1.343.557H7.914a.1.1 0 0 0-.07.03l-.5.5a1.9 1.9 0 0 1-2.687 0L2.57 19.342a1.9 1.9 0 0 1 0-2.686l4-4a1.9 1.9 0 0 1 1.343-.557H14.5v.9-.9h.041l.065.004a2.73 2.73 0 0 1 .79.185 2.665 2.665 0 0 1 1.46 1.417c.188-.162.375-.324.551-.479.46-.401.815-.722.957-.863.338-.34.882-.719 1.571-.817ZM15.088 15.1a1.06 1.06 0 0 0 .08-.145c.1-.207.113-.38.027-.553a.867.867 0 0 0-.668-.497.628.628 0 0 0-.042-.005h-6.57a.1.1 0 0 0-.071.03l-4 4a.1.1 0 0 0 0 .14l2.085 2.087a.1.1 0 0 0 .142 0l.5-.5a1.9 1.9 0 0 1 1.343-.557h8.172a.1.1 0 0 0 .07-.03l4.415-4.414c.225-.225.334-.335.39-.434a.539.539 0 0 0 .083-.266.283.283 0 0 0-.026-.11.712.712 0 0 0-.154-.21c-.319-.318-.542-.326-.674-.307-.186.026-.392.146-.554.307-.191.192-.595.553-1.043.946-.904.79-2.143 1.838-2.561 2.144l-.238.174H10.5a.9.9 0 0 1 0-1.8h4.588Z" clip-rule="evenodd"/></svg>',
|
|
114
113
|
keywords: ["offering"],
|
|
115
114
|
category: "other"
|
|
116
|
-
},
|
|
115
|
+
}, dr = {
|
|
117
116
|
name: "question",
|
|
118
117
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13.672 12.056c-.635.547-1.242 1.07-1.164 2.062h-1.385c-.309-1.553.504-2.214 1.23-2.805.514-.419.986-.802.986-1.442 0-.593-.489-1.068-1.267-1.068-.764 0-1.345.422-1.872 1.187L9 9.067C9.712 7.92 10.807 7.3 12.086 7.3 13.906 7.3 15 8.42 15 9.78c0 1.133-.678 1.717-1.328 2.277Zm-.822 3.763c0 .54-.487 1.028-1.041 1.028-.554 0-1.042-.488-1.042-1.028 0-.528.488-1.029 1.042-1.029s1.042.501 1.042 1.029Z"/><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.75 0a8.25 8.25 0 1 1-16.5 0 8.25 8.25 0 0 1 16.5 0Z" clip-rule="evenodd"/></svg>',
|
|
119
118
|
keywords: ["question"],
|
|
120
119
|
category: "status"
|
|
121
|
-
},
|
|
120
|
+
}, gr = {
|
|
122
121
|
name: "tag",
|
|
123
122
|
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>',
|
|
124
123
|
keywords: ["tag"],
|
|
125
124
|
category: "other"
|
|
126
125
|
};
|
|
127
|
-
function
|
|
126
|
+
function hr(t) {
|
|
128
127
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
129
128
|
}
|
|
130
|
-
var
|
|
129
|
+
var j = { exports: {} };
|
|
131
130
|
/*!
|
|
132
131
|
Copyright (c) 2018 Jed Watson.
|
|
133
132
|
Licensed under the MIT License (MIT), see
|
|
134
133
|
http://jedwatson.github.io/classnames
|
|
135
134
|
*/
|
|
136
|
-
var
|
|
137
|
-
function
|
|
138
|
-
return
|
|
135
|
+
var S;
|
|
136
|
+
function vr() {
|
|
137
|
+
return S || (S = 1, function(t) {
|
|
139
138
|
(function() {
|
|
140
|
-
var
|
|
139
|
+
var p = {}.hasOwnProperty;
|
|
141
140
|
function n() {
|
|
142
141
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
143
142
|
var a = arguments[e];
|
|
144
|
-
a && (r =
|
|
143
|
+
a && (r = u(r, o(a)));
|
|
145
144
|
}
|
|
146
145
|
return r;
|
|
147
146
|
}
|
|
148
|
-
function
|
|
147
|
+
function o(r) {
|
|
149
148
|
if (typeof r == "string" || typeof r == "number")
|
|
150
149
|
return r;
|
|
151
150
|
if (typeof r != "object")
|
|
@@ -156,18 +155,18 @@ function Zr() {
|
|
|
156
155
|
return r.toString();
|
|
157
156
|
var e = "";
|
|
158
157
|
for (var a in r)
|
|
159
|
-
|
|
158
|
+
p.call(r, a) && r[a] && (e = u(e, a));
|
|
160
159
|
return e;
|
|
161
160
|
}
|
|
162
|
-
function
|
|
161
|
+
function u(r, e) {
|
|
163
162
|
return e ? r ? r + " " + e : r + e : r;
|
|
164
163
|
}
|
|
165
164
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
166
165
|
})();
|
|
167
|
-
}(
|
|
166
|
+
}(j)), j.exports;
|
|
168
167
|
}
|
|
169
|
-
var
|
|
170
|
-
const
|
|
168
|
+
var fr = vr();
|
|
169
|
+
const A = /* @__PURE__ */ hr(fr), b = {
|
|
171
170
|
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
172
171
|
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
173
172
|
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
@@ -179,7 +178,7 @@ const L = /* @__PURE__ */ Or(qr), j = {
|
|
|
179
178
|
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
180
179
|
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
181
180
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
182
|
-
},
|
|
181
|
+
}, y = "purpur-badge", s = {
|
|
183
182
|
ATTENTION: "attention",
|
|
184
183
|
BLACK_FRIDAY: "black-friday",
|
|
185
184
|
ERROR: "error",
|
|
@@ -189,280 +188,74 @@ const L = /* @__PURE__ */ Or(qr), j = {
|
|
|
189
188
|
SPECIAL: "special",
|
|
190
189
|
SUCCESS: "success",
|
|
191
190
|
WARNING: "warning"
|
|
192
|
-
},
|
|
191
|
+
}, mr = (t) => {
|
|
193
192
|
switch (t) {
|
|
194
|
-
case
|
|
195
|
-
case
|
|
196
|
-
return
|
|
197
|
-
case
|
|
198
|
-
return
|
|
199
|
-
case
|
|
200
|
-
return
|
|
201
|
-
case
|
|
202
|
-
return
|
|
203
|
-
case
|
|
204
|
-
return
|
|
205
|
-
case
|
|
206
|
-
return
|
|
207
|
-
case
|
|
208
|
-
return
|
|
209
|
-
case
|
|
210
|
-
return
|
|
193
|
+
case s.ATTENTION:
|
|
194
|
+
case s.SPECIAL:
|
|
195
|
+
return _r;
|
|
196
|
+
case s.INFORMATION:
|
|
197
|
+
return sr;
|
|
198
|
+
case s.GENERAL:
|
|
199
|
+
return lr;
|
|
200
|
+
case s.SUCCESS:
|
|
201
|
+
return ir;
|
|
202
|
+
case s.WARNING:
|
|
203
|
+
return or;
|
|
204
|
+
case s.ERROR:
|
|
205
|
+
return cr;
|
|
206
|
+
case s.NEUTRAL:
|
|
207
|
+
return dr;
|
|
208
|
+
case s.BLACK_FRIDAY:
|
|
209
|
+
return gr;
|
|
211
210
|
default:
|
|
212
211
|
return;
|
|
213
212
|
}
|
|
214
|
-
},
|
|
213
|
+
}, br = ({
|
|
215
214
|
children: t,
|
|
216
|
-
showIcon:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
showIcon: p = !0,
|
|
216
|
+
iconAllyTitle: n,
|
|
217
|
+
variant: o,
|
|
218
|
+
["data-testid"]: u,
|
|
220
219
|
className: r = "",
|
|
221
220
|
...e
|
|
222
221
|
}) => {
|
|
223
|
-
const a =
|
|
224
|
-
return /* @__PURE__ */
|
|
225
|
-
|
|
226
|
-
|
|
222
|
+
const a = mr(o), _ = A([r, b[y], b[`${y}--${o}`]]);
|
|
223
|
+
return /* @__PURE__ */ f("span", { className: _, "data-testid": u, ...e, children: [
|
|
224
|
+
p && a && /* @__PURE__ */ i(
|
|
225
|
+
H,
|
|
227
226
|
{
|
|
228
|
-
"data-testid": `${
|
|
229
|
-
allyTitle:
|
|
227
|
+
"data-testid": `${u}-icon`,
|
|
228
|
+
allyTitle: n,
|
|
230
229
|
size: "xs",
|
|
231
230
|
svg: a,
|
|
232
|
-
className:
|
|
231
|
+
className: A(b[`${y}__icon`])
|
|
233
232
|
}
|
|
234
233
|
),
|
|
235
234
|
t
|
|
236
235
|
] });
|
|
237
236
|
};
|
|
238
|
-
function
|
|
237
|
+
function yr(t) {
|
|
239
238
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
240
239
|
}
|
|
241
|
-
var
|
|
240
|
+
var Z = { exports: {} };
|
|
242
241
|
/*!
|
|
243
242
|
Copyright (c) 2018 Jed Watson.
|
|
244
243
|
Licensed under the MIT License (MIT), see
|
|
245
244
|
http://jedwatson.github.io/classnames
|
|
246
245
|
*/
|
|
247
|
-
var
|
|
248
|
-
function
|
|
249
|
-
return
|
|
246
|
+
var O;
|
|
247
|
+
function wr() {
|
|
248
|
+
return O || (O = 1, function(t) {
|
|
250
249
|
(function() {
|
|
251
|
-
var
|
|
250
|
+
var p = {}.hasOwnProperty;
|
|
252
251
|
function n() {
|
|
253
252
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
254
253
|
var a = arguments[e];
|
|
255
|
-
a && (r =
|
|
254
|
+
a && (r = u(r, o(a)));
|
|
256
255
|
}
|
|
257
256
|
return r;
|
|
258
257
|
}
|
|
259
|
-
function
|
|
260
|
-
if (typeof r == "string" || typeof r == "number")
|
|
261
|
-
return this && this[r] || r;
|
|
262
|
-
if (typeof r != "object")
|
|
263
|
-
return "";
|
|
264
|
-
if (Array.isArray(r))
|
|
265
|
-
return n.apply(this, r);
|
|
266
|
-
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
267
|
-
return r.toString();
|
|
268
|
-
var e = "";
|
|
269
|
-
for (var a in r)
|
|
270
|
-
u.call(r, a) && r[a] && (e = p(e, this && this[a] || a));
|
|
271
|
-
return e;
|
|
272
|
-
}
|
|
273
|
-
function p(r, e) {
|
|
274
|
-
return e ? r ? r + " " + e : r + e : r;
|
|
275
|
-
}
|
|
276
|
-
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
277
|
-
})();
|
|
278
|
-
}(R)), R.exports;
|
|
279
|
-
}
|
|
280
|
-
var Ir = Hr();
|
|
281
|
-
const Lr = /* @__PURE__ */ Br(Ir), Rr = {
|
|
282
|
-
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
283
|
-
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
284
|
-
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
285
|
-
"purpur-icon--sm": "_purpur-icon--sm_8u1lq_12",
|
|
286
|
-
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
287
|
-
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
288
|
-
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
289
|
-
}, Pr = Lr.bind(Rr), T = "purpur-icon", Tr = "md", Er = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), zr = ({ content: t = "", title: u } = {}) => {
|
|
290
|
-
const n = [
|
|
291
|
-
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
292
|
-
{ name: "fill", value: "currentColor" },
|
|
293
|
-
{ name: "viewBox", value: "0 0 24 24" },
|
|
294
|
-
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
295
|
-
], l = u ? `<title>${u}</title>` : "";
|
|
296
|
-
return `<svg ${Er(n)}>${l}${t}</svg>`;
|
|
297
|
-
}, Vr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
|
|
298
|
-
["data-testid"]: t,
|
|
299
|
-
svg: u,
|
|
300
|
-
allyTitle: n,
|
|
301
|
-
className: l,
|
|
302
|
-
size: p = Tr,
|
|
303
|
-
...r
|
|
304
|
-
}) => {
|
|
305
|
-
const e = zr({
|
|
306
|
-
content: Vr(u.svg),
|
|
307
|
-
title: n
|
|
308
|
-
}), a = Pr(l, T, `${T}--${p}`);
|
|
309
|
-
return /* @__PURE__ */ i(
|
|
310
|
-
"span",
|
|
311
|
-
{
|
|
312
|
-
"aria-label": n,
|
|
313
|
-
className: a,
|
|
314
|
-
"data-testid": t,
|
|
315
|
-
dangerouslySetInnerHTML: { __html: e },
|
|
316
|
-
...r
|
|
317
|
-
}
|
|
318
|
-
);
|
|
319
|
-
};
|
|
320
|
-
O.displayName = "Icon";
|
|
321
|
-
const Gr = {
|
|
322
|
-
name: "arrow-left",
|
|
323
|
-
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>',
|
|
324
|
-
keywords: ["arrow-left"],
|
|
325
|
-
category: "utility"
|
|
326
|
-
}, Fr = {
|
|
327
|
-
name: "arrow-right",
|
|
328
|
-
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>',
|
|
329
|
-
keywords: ["arrow-right"],
|
|
330
|
-
category: "utility"
|
|
331
|
-
}, Dr = {
|
|
332
|
-
name: "external",
|
|
333
|
-
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>',
|
|
334
|
-
keywords: ["external"],
|
|
335
|
-
category: "media"
|
|
336
|
-
}, Ur = {
|
|
337
|
-
name: "phone",
|
|
338
|
-
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>',
|
|
339
|
-
keywords: ["phone"],
|
|
340
|
-
category: "device"
|
|
341
|
-
};
|
|
342
|
-
function Wr(t) {
|
|
343
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
344
|
-
}
|
|
345
|
-
var E = { exports: {} };
|
|
346
|
-
/*!
|
|
347
|
-
Copyright (c) 2018 Jed Watson.
|
|
348
|
-
Licensed under the MIT License (MIT), see
|
|
349
|
-
http://jedwatson.github.io/classnames
|
|
350
|
-
*/
|
|
351
|
-
var z;
|
|
352
|
-
function Kr() {
|
|
353
|
-
return z || (z = 1, function(t) {
|
|
354
|
-
(function() {
|
|
355
|
-
var u = {}.hasOwnProperty;
|
|
356
|
-
function n() {
|
|
357
|
-
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
358
|
-
var a = arguments[e];
|
|
359
|
-
a && (r = p(r, l.call(this, a)));
|
|
360
|
-
}
|
|
361
|
-
return r;
|
|
362
|
-
}
|
|
363
|
-
function l(r) {
|
|
364
|
-
if (typeof r == "string" || typeof r == "number")
|
|
365
|
-
return this && this[r] || r;
|
|
366
|
-
if (typeof r != "object")
|
|
367
|
-
return "";
|
|
368
|
-
if (Array.isArray(r))
|
|
369
|
-
return n.apply(this, r);
|
|
370
|
-
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
371
|
-
return r.toString();
|
|
372
|
-
var e = "";
|
|
373
|
-
for (var a in r)
|
|
374
|
-
u.call(r, a) && r[a] && (e = p(e, this && this[a] || a));
|
|
375
|
-
return e;
|
|
376
|
-
}
|
|
377
|
-
function p(r, e) {
|
|
378
|
-
return e ? r ? r + " " + e : r + e : r;
|
|
379
|
-
}
|
|
380
|
-
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
381
|
-
})();
|
|
382
|
-
}(E)), E.exports;
|
|
383
|
-
}
|
|
384
|
-
var Yr = Kr();
|
|
385
|
-
const Jr = /* @__PURE__ */ Wr(Yr), Qr = {
|
|
386
|
-
"purpur-cta-link": "_purpur-cta-link_1e75l_1",
|
|
387
|
-
"purpur-cta-link--xs": "_purpur-cta-link--xs_1e75l_33",
|
|
388
|
-
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_1e75l_36",
|
|
389
|
-
"purpur-cta-link--sm": "_purpur-cta-link--sm_1e75l_39",
|
|
390
|
-
"purpur-cta-link--md": "_purpur-cta-link--md_1e75l_45",
|
|
391
|
-
"purpur-cta-link--lg": "_purpur-cta-link--lg_1e75l_51",
|
|
392
|
-
"purpur-cta-link--full-width": "_purpur-cta-link--full-width_1e75l_57",
|
|
393
|
-
"purpur-cta-link--primary": "_purpur-cta-link--primary_1e75l_60",
|
|
394
|
-
"purpur-cta-link--disabled": "_purpur-cta-link--disabled_1e75l_64",
|
|
395
|
-
"purpur-cta-link--primary-negative": "_purpur-cta-link--primary-negative_1e75l_70",
|
|
396
|
-
"purpur-cta-link--secondary": "_purpur-cta-link--secondary_1e75l_82",
|
|
397
|
-
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_1e75l_93",
|
|
398
|
-
"purpur-cta-link--expressive": "_purpur-cta-link--expressive_1e75l_104",
|
|
399
|
-
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1e75l_114"
|
|
400
|
-
}, Xr = Jr.bind(Qr), f = "purpur-cta-link", re = {
|
|
401
|
-
forward: Fr,
|
|
402
|
-
external: Dr,
|
|
403
|
-
back: Gr,
|
|
404
|
-
phone: Ur
|
|
405
|
-
}, X = or(
|
|
406
|
-
({
|
|
407
|
-
children: t,
|
|
408
|
-
className: u,
|
|
409
|
-
["data-testid"]: n,
|
|
410
|
-
fullWidth: l = !1,
|
|
411
|
-
iconOnly: p = !1,
|
|
412
|
-
showIcon: r = !0,
|
|
413
|
-
negative: e = !1,
|
|
414
|
-
size: a = "md",
|
|
415
|
-
variant: c,
|
|
416
|
-
icon: g = "forward",
|
|
417
|
-
...h
|
|
418
|
-
}, b) => {
|
|
419
|
-
const N = Xr(
|
|
420
|
-
[
|
|
421
|
-
u,
|
|
422
|
-
f,
|
|
423
|
-
`${f}--${e ? `${c}-negative` : c}`,
|
|
424
|
-
`${f}--${a}`
|
|
425
|
-
],
|
|
426
|
-
{
|
|
427
|
-
[`${f}--icon-only`]: p,
|
|
428
|
-
[`${f}--negative`]: e,
|
|
429
|
-
[`${f}--full-width`]: l
|
|
430
|
-
}
|
|
431
|
-
), $ = re[g], d = /* @__PURE__ */ w(ir, { children: [
|
|
432
|
-
r && (g === "back" || g === "phone") && /* @__PURE__ */ i(O, { svg: $, size: a === "lg" ? "sm" : "xs" }),
|
|
433
|
-
(!p || p && !r) && t,
|
|
434
|
-
r && (g === "forward" || g === "external") && /* @__PURE__ */ i(O, { svg: $, size: a === "lg" ? "sm" : "xs" })
|
|
435
|
-
] }), v = {
|
|
436
|
-
...h,
|
|
437
|
-
className: N,
|
|
438
|
-
"data-testid": n
|
|
439
|
-
};
|
|
440
|
-
return "href" in h && h.href ? /* @__PURE__ */ i("a", { ...v, ref: b, children: d }) : /* @__PURE__ */ i("span", { ...v, ref: b, children: d });
|
|
441
|
-
}
|
|
442
|
-
);
|
|
443
|
-
X.displayName = "CtaLink";
|
|
444
|
-
function ee(t) {
|
|
445
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
446
|
-
}
|
|
447
|
-
var V = { exports: {} };
|
|
448
|
-
/*!
|
|
449
|
-
Copyright (c) 2018 Jed Watson.
|
|
450
|
-
Licensed under the MIT License (MIT), see
|
|
451
|
-
http://jedwatson.github.io/classnames
|
|
452
|
-
*/
|
|
453
|
-
var G;
|
|
454
|
-
function te() {
|
|
455
|
-
return G || (G = 1, function(t) {
|
|
456
|
-
(function() {
|
|
457
|
-
var u = {}.hasOwnProperty;
|
|
458
|
-
function n() {
|
|
459
|
-
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
460
|
-
var a = arguments[e];
|
|
461
|
-
a && (r = p(r, l(a)));
|
|
462
|
-
}
|
|
463
|
-
return r;
|
|
464
|
-
}
|
|
465
|
-
function l(r) {
|
|
258
|
+
function o(r) {
|
|
466
259
|
if (typeof r == "string" || typeof r == "number")
|
|
467
260
|
return r;
|
|
468
261
|
if (typeof r != "object")
|
|
@@ -473,18 +266,18 @@ function te() {
|
|
|
473
266
|
return r.toString();
|
|
474
267
|
var e = "";
|
|
475
268
|
for (var a in r)
|
|
476
|
-
|
|
269
|
+
p.call(r, a) && r[a] && (e = u(e, a));
|
|
477
270
|
return e;
|
|
478
271
|
}
|
|
479
|
-
function
|
|
272
|
+
function u(r, e) {
|
|
480
273
|
return e ? r ? r + " " + e : r + e : r;
|
|
481
274
|
}
|
|
482
275
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
483
276
|
})();
|
|
484
|
-
}(
|
|
277
|
+
}(Z)), Z.exports;
|
|
485
278
|
}
|
|
486
|
-
var
|
|
487
|
-
const
|
|
279
|
+
var kr = wr();
|
|
280
|
+
const $r = /* @__PURE__ */ yr(kr), h = {
|
|
488
281
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
489
282
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
490
283
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -500,51 +293,51 @@ const ne = /* @__PURE__ */ ee(ae), x = {
|
|
|
500
293
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
501
294
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
502
295
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
503
|
-
},
|
|
296
|
+
}, xr = {
|
|
504
297
|
TITLE100: "title-100"
|
|
505
|
-
},
|
|
298
|
+
}, v = "purpur-heading", P = ({
|
|
506
299
|
children: t,
|
|
507
|
-
className:
|
|
300
|
+
className: p = "",
|
|
508
301
|
enableHyphenation: n = !1,
|
|
509
|
-
negative:
|
|
510
|
-
tag:
|
|
511
|
-
variant: r =
|
|
302
|
+
negative: o = !1,
|
|
303
|
+
tag: u,
|
|
304
|
+
variant: r = xr.TITLE100,
|
|
512
305
|
...e
|
|
513
306
|
}) => {
|
|
514
|
-
const a =
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
307
|
+
const a = u, _ = $r([
|
|
308
|
+
p,
|
|
309
|
+
h[v],
|
|
310
|
+
h[`${v}--${r}`],
|
|
518
311
|
{
|
|
519
|
-
[
|
|
520
|
-
[
|
|
312
|
+
[h[`${v}--hyphens`]]: n,
|
|
313
|
+
[h[`${v}--negative`]]: o
|
|
521
314
|
}
|
|
522
315
|
]);
|
|
523
|
-
return /* @__PURE__ */ i(a, { className:
|
|
316
|
+
return /* @__PURE__ */ i(a, { className: _, ...e, children: t });
|
|
524
317
|
};
|
|
525
|
-
|
|
526
|
-
function
|
|
318
|
+
P.displayName = "Heading";
|
|
319
|
+
function Nr(t) {
|
|
527
320
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
528
321
|
}
|
|
529
|
-
var
|
|
322
|
+
var q = { exports: {} };
|
|
530
323
|
/*!
|
|
531
324
|
Copyright (c) 2018 Jed Watson.
|
|
532
325
|
Licensed under the MIT License (MIT), see
|
|
533
326
|
http://jedwatson.github.io/classnames
|
|
534
327
|
*/
|
|
535
|
-
var
|
|
536
|
-
function
|
|
537
|
-
return
|
|
328
|
+
var M;
|
|
329
|
+
function jr() {
|
|
330
|
+
return M || (M = 1, function(t) {
|
|
538
331
|
(function() {
|
|
539
|
-
var
|
|
332
|
+
var p = {}.hasOwnProperty;
|
|
540
333
|
function n() {
|
|
541
334
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
542
335
|
var a = arguments[e];
|
|
543
|
-
a && (r =
|
|
336
|
+
a && (r = u(r, o.call(this, a)));
|
|
544
337
|
}
|
|
545
338
|
return r;
|
|
546
339
|
}
|
|
547
|
-
function
|
|
340
|
+
function o(r) {
|
|
548
341
|
if (typeof r == "string" || typeof r == "number")
|
|
549
342
|
return this && this[r] || r;
|
|
550
343
|
if (typeof r != "object")
|
|
@@ -555,18 +348,18 @@ function le() {
|
|
|
555
348
|
return r.toString();
|
|
556
349
|
var e = "";
|
|
557
350
|
for (var a in r)
|
|
558
|
-
|
|
351
|
+
p.call(r, a) && r[a] && (e = u(e, this && this[a] || a));
|
|
559
352
|
return e;
|
|
560
353
|
}
|
|
561
|
-
function
|
|
354
|
+
function u(r, e) {
|
|
562
355
|
return e ? r ? r + " " + e : r + e : r;
|
|
563
356
|
}
|
|
564
357
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
565
358
|
})();
|
|
566
|
-
}(
|
|
359
|
+
}(q)), q.exports;
|
|
567
360
|
}
|
|
568
|
-
var
|
|
569
|
-
const
|
|
361
|
+
var Sr = jr();
|
|
362
|
+
const Ar = /* @__PURE__ */ Nr(Sr), Zr = {
|
|
570
363
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
571
364
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
572
365
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -574,30 +367,29 @@ const oe = /* @__PURE__ */ pe(ie), se = {
|
|
|
574
367
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
575
368
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
576
369
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
577
|
-
},
|
|
370
|
+
}, Or = Ar.bind(Zr), C = "purpur-icon", qr = "md", Mr = (t) => t.filter((p) => Object.keys(p).length >= 1).map((p) => `${p.name}="${p.value}"`).join(" "), Cr = ({ content: t = "", title: p } = {}) => {
|
|
578
371
|
const n = [
|
|
579
372
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
580
373
|
{ name: "fill", value: "currentColor" },
|
|
581
374
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
582
|
-
|
|
583
|
-
],
|
|
584
|
-
return `<svg ${
|
|
585
|
-
},
|
|
375
|
+
p ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
376
|
+
], o = p ? `<title>${p}</title>` : "";
|
|
377
|
+
return `<svg ${Mr(n)}>${o}${t}</svg>`;
|
|
378
|
+
}, Rr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), L = ({
|
|
586
379
|
["data-testid"]: t,
|
|
587
|
-
svg:
|
|
380
|
+
svg: p,
|
|
588
381
|
allyTitle: n,
|
|
589
|
-
className:
|
|
590
|
-
size:
|
|
382
|
+
className: o,
|
|
383
|
+
size: u = qr,
|
|
591
384
|
...r
|
|
592
385
|
}) => {
|
|
593
|
-
const e =
|
|
594
|
-
content:
|
|
386
|
+
const e = Cr({
|
|
387
|
+
content: Rr(p.svg),
|
|
595
388
|
title: n
|
|
596
|
-
}), a =
|
|
389
|
+
}), a = Or(o, C, `${C}--${u}`);
|
|
597
390
|
return /* @__PURE__ */ i(
|
|
598
391
|
"span",
|
|
599
392
|
{
|
|
600
|
-
"aria-label": n,
|
|
601
393
|
className: a,
|
|
602
394
|
"data-testid": t,
|
|
603
395
|
dangerouslySetInnerHTML: { __html: e },
|
|
@@ -605,36 +397,36 @@ const oe = /* @__PURE__ */ pe(ie), se = {
|
|
|
605
397
|
}
|
|
606
398
|
);
|
|
607
399
|
};
|
|
608
|
-
|
|
609
|
-
const
|
|
400
|
+
L.displayName = "Icon";
|
|
401
|
+
const Tr = {
|
|
610
402
|
name: "checkmark",
|
|
611
403
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M21.06 3.795a.9.9 0 0 1 .145 1.264l-11.5 14.5a.9.9 0 0 1-1.341.077l-6-6a.9.9 0 0 1 1.272-1.272l5.286 5.286L19.795 3.94a.9.9 0 0 1 1.264-.145Z" clip-rule="evenodd"/></svg>',
|
|
612
404
|
keywords: ["checkmark"],
|
|
613
405
|
category: "utility"
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
function
|
|
406
|
+
}, z = (t) => /* @__PURE__ */ i(L, { ...t, svg: Tr });
|
|
407
|
+
z.displayName = "IconCheckmark";
|
|
408
|
+
function Er(t) {
|
|
617
409
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
618
410
|
}
|
|
619
|
-
var
|
|
411
|
+
var R = { exports: {} };
|
|
620
412
|
/*!
|
|
621
413
|
Copyright (c) 2018 Jed Watson.
|
|
622
414
|
Licensed under the MIT License (MIT), see
|
|
623
415
|
http://jedwatson.github.io/classnames
|
|
624
416
|
*/
|
|
625
|
-
var
|
|
626
|
-
function
|
|
627
|
-
return
|
|
417
|
+
var T;
|
|
418
|
+
function Br() {
|
|
419
|
+
return T || (T = 1, function(t) {
|
|
628
420
|
(function() {
|
|
629
|
-
var
|
|
421
|
+
var p = {}.hasOwnProperty;
|
|
630
422
|
function n() {
|
|
631
423
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
632
424
|
var a = arguments[e];
|
|
633
|
-
a && (r =
|
|
425
|
+
a && (r = u(r, o(a)));
|
|
634
426
|
}
|
|
635
427
|
return r;
|
|
636
428
|
}
|
|
637
|
-
function
|
|
429
|
+
function o(r) {
|
|
638
430
|
if (typeof r == "string" || typeof r == "number")
|
|
639
431
|
return r;
|
|
640
432
|
if (typeof r != "object")
|
|
@@ -645,18 +437,18 @@ function me() {
|
|
|
645
437
|
return r.toString();
|
|
646
438
|
var e = "";
|
|
647
439
|
for (var a in r)
|
|
648
|
-
|
|
440
|
+
p.call(r, a) && r[a] && (e = u(e, a));
|
|
649
441
|
return e;
|
|
650
442
|
}
|
|
651
|
-
function
|
|
443
|
+
function u(r, e) {
|
|
652
444
|
return e ? r ? r + " " + e : r + e : r;
|
|
653
445
|
}
|
|
654
446
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
655
447
|
})();
|
|
656
|
-
}(
|
|
448
|
+
}(R)), R.exports;
|
|
657
449
|
}
|
|
658
|
-
var
|
|
659
|
-
const
|
|
450
|
+
var Hr = Br();
|
|
451
|
+
const Pr = /* @__PURE__ */ Er(Hr), d = {
|
|
660
452
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
661
453
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
662
454
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -671,53 +463,53 @@ const we = /* @__PURE__ */ fe(ye), m = {
|
|
|
671
463
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
672
464
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
673
465
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
674
|
-
},
|
|
466
|
+
}, Lr = {
|
|
675
467
|
PARAGRAPH100: "paragraph-100"
|
|
676
|
-
},
|
|
468
|
+
}, g = "purpur-paragraph", I = ({
|
|
677
469
|
["data-testid"]: t,
|
|
678
|
-
children:
|
|
470
|
+
children: p,
|
|
679
471
|
className: n,
|
|
680
|
-
disabled:
|
|
681
|
-
enableHyphenation:
|
|
472
|
+
disabled: o,
|
|
473
|
+
enableHyphenation: u = !1,
|
|
682
474
|
negative: r = !1,
|
|
683
|
-
variant: e =
|
|
475
|
+
variant: e = Lr.PARAGRAPH100,
|
|
684
476
|
...a
|
|
685
477
|
}) => {
|
|
686
|
-
const
|
|
478
|
+
const _ = Pr([
|
|
687
479
|
n,
|
|
688
|
-
|
|
689
|
-
|
|
480
|
+
d[g],
|
|
481
|
+
d[`${g}--${e}`],
|
|
690
482
|
{
|
|
691
|
-
[
|
|
692
|
-
[
|
|
693
|
-
[
|
|
483
|
+
[d[`${g}--hyphens`]]: u,
|
|
484
|
+
[d[`${g}--disabled`]]: o,
|
|
485
|
+
[d[`${g}--negative`]]: r
|
|
694
486
|
}
|
|
695
487
|
]);
|
|
696
|
-
return /* @__PURE__ */ i("p", { ...a, className:
|
|
488
|
+
return /* @__PURE__ */ i("p", { ...a, className: _, "data-testid": t, children: p });
|
|
697
489
|
};
|
|
698
|
-
|
|
699
|
-
function
|
|
490
|
+
I.displayName = "Paragraph";
|
|
491
|
+
function zr(t) {
|
|
700
492
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
701
493
|
}
|
|
702
|
-
var
|
|
494
|
+
var w = { exports: {} };
|
|
703
495
|
/*!
|
|
704
496
|
Copyright (c) 2018 Jed Watson.
|
|
705
497
|
Licensed under the MIT License (MIT), see
|
|
706
498
|
http://jedwatson.github.io/classnames
|
|
707
499
|
*/
|
|
708
|
-
var
|
|
709
|
-
function
|
|
710
|
-
return
|
|
500
|
+
var E;
|
|
501
|
+
function Ir() {
|
|
502
|
+
return E || (E = 1, function(t) {
|
|
711
503
|
(function() {
|
|
712
|
-
var
|
|
504
|
+
var p = {}.hasOwnProperty;
|
|
713
505
|
function n() {
|
|
714
506
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
715
507
|
var a = arguments[e];
|
|
716
|
-
a && (r =
|
|
508
|
+
a && (r = u(r, o.call(this, a)));
|
|
717
509
|
}
|
|
718
510
|
return r;
|
|
719
511
|
}
|
|
720
|
-
function
|
|
512
|
+
function o(r) {
|
|
721
513
|
if (typeof r == "string" || typeof r == "number")
|
|
722
514
|
return this && this[r] || r;
|
|
723
515
|
if (typeof r != "object")
|
|
@@ -728,109 +520,89 @@ function xe() {
|
|
|
728
520
|
return r.toString();
|
|
729
521
|
var e = "";
|
|
730
522
|
for (var a in r)
|
|
731
|
-
|
|
523
|
+
p.call(r, a) && r[a] && (e = u(e, this && this[a] || a));
|
|
732
524
|
return e;
|
|
733
525
|
}
|
|
734
|
-
function
|
|
526
|
+
function u(r, e) {
|
|
735
527
|
return e ? r ? r + " " + e : r + e : r;
|
|
736
528
|
}
|
|
737
529
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
738
530
|
})();
|
|
739
|
-
}(
|
|
531
|
+
}(w)), w.exports;
|
|
740
532
|
}
|
|
741
|
-
var
|
|
742
|
-
const
|
|
743
|
-
"purpur-content-block": "_purpur-content-
|
|
744
|
-
"purpur-content-block__section": "_purpur-content-
|
|
745
|
-
"purpur-content-block__image-wrapper": "_purpur-content-block__image-
|
|
746
|
-
"purpur-content-block__video-wrapper": "_purpur-content-block__video-
|
|
747
|
-
"purpur-content-block__content-wrapper": "_purpur-content-block__content-
|
|
748
|
-
"purpur-content-block__badge": "_purpur-content-
|
|
749
|
-
"purpur-content-block__content": "_purpur-content-
|
|
750
|
-
"purpur-content-
|
|
751
|
-
"purpur-content-
|
|
752
|
-
"purpur-content-
|
|
753
|
-
"purpur-content-
|
|
754
|
-
"purpur-content-block--negative": "_purpur-content-block--
|
|
755
|
-
"purpur-content-block__text-spacing": "_purpur-content-block__text-
|
|
756
|
-
},
|
|
533
|
+
var Vr = Ir();
|
|
534
|
+
const V = /* @__PURE__ */ zr(Vr), Gr = {
|
|
535
|
+
"purpur-content-block": "_purpur-content-block_bj66k_1",
|
|
536
|
+
"purpur-content-block__section": "_purpur-content-block__section_bj66k_17",
|
|
537
|
+
"purpur-content-block__image-wrapper": "_purpur-content-block__image-wrapper_bj66k_25",
|
|
538
|
+
"purpur-content-block__video-wrapper": "_purpur-content-block__video-wrapper_bj66k_28",
|
|
539
|
+
"purpur-content-block__content-wrapper": "_purpur-content-block__content-wrapper_bj66k_38",
|
|
540
|
+
"purpur-content-block__badge": "_purpur-content-block__badge_bj66k_43",
|
|
541
|
+
"purpur-content-block__content": "_purpur-content-block__content_bj66k_38",
|
|
542
|
+
"purpur-content-block__list": "_purpur-content-block__list_bj66k_49",
|
|
543
|
+
"purpur-content-block__list-item": "_purpur-content-block__list-item_bj66k_54",
|
|
544
|
+
"purpur-content-block__list-item-icon": "_purpur-content-block__list-item-icon_bj66k_62",
|
|
545
|
+
"purpur-content-block__actions": "_purpur-content-block__actions_bj66k_65",
|
|
546
|
+
"purpur-content-block--negative": "_purpur-content-block--negative_bj66k_76",
|
|
547
|
+
"purpur-content-block__text-spacing": "_purpur-content-block__text-spacing_bj66k_76"
|
|
548
|
+
}, Fr = {
|
|
757
549
|
"purpur-content-block-group": "_purpur-content-block-group_1g4rh_1"
|
|
758
|
-
},
|
|
550
|
+
}, Ur = V.bind(Fr), B = "purpur-content-block-group", G = ({
|
|
759
551
|
children: t,
|
|
760
|
-
className:
|
|
552
|
+
className: p,
|
|
761
553
|
negative: n,
|
|
762
|
-
...
|
|
554
|
+
...o
|
|
763
555
|
}) => {
|
|
764
|
-
const
|
|
765
|
-
|
|
766
|
-
|
|
556
|
+
const u = Ur([
|
|
557
|
+
p,
|
|
558
|
+
B,
|
|
767
559
|
{
|
|
768
|
-
[`${
|
|
560
|
+
[`${B}--negative`]: n
|
|
769
561
|
}
|
|
770
562
|
]);
|
|
771
|
-
return /* @__PURE__ */ i("div", { className:
|
|
563
|
+
return /* @__PURE__ */ i("div", { className: u, ...o, children: Y.map(t, (e) => k.isValidElement(e) ? k.cloneElement(e, { negative: n }) : e) });
|
|
772
564
|
};
|
|
773
|
-
|
|
774
|
-
const
|
|
565
|
+
G.displayName = "ContentBlockGroup";
|
|
566
|
+
const c = V.bind(Gr), l = "purpur-content-block", F = ({
|
|
775
567
|
className: t,
|
|
776
|
-
negative:
|
|
568
|
+
negative: p,
|
|
777
569
|
image: n,
|
|
778
|
-
video:
|
|
779
|
-
tagline:
|
|
570
|
+
video: o,
|
|
571
|
+
tagline: u,
|
|
780
572
|
title: r,
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
headingTag:
|
|
784
|
-
headingVariant:
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
...N
|
|
573
|
+
actions: e,
|
|
574
|
+
listItems: a,
|
|
575
|
+
headingTag: _ = "h2",
|
|
576
|
+
headingVariant: U = "title-300",
|
|
577
|
+
children: D,
|
|
578
|
+
...K
|
|
788
579
|
}) => {
|
|
789
|
-
const
|
|
580
|
+
const W = c([
|
|
790
581
|
t,
|
|
791
|
-
|
|
582
|
+
l,
|
|
792
583
|
{
|
|
793
|
-
[`${
|
|
584
|
+
[`${l}--negative`]: p
|
|
794
585
|
}
|
|
795
586
|
]);
|
|
796
|
-
return /* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */ i("div", { className:
|
|
798
|
-
/* @__PURE__ */ i("div", { className:
|
|
799
|
-
|
|
800
|
-
r
|
|
801
|
-
/* @__PURE__ */ i("div", { className:
|
|
802
|
-
a != null && a.length
|
|
803
|
-
(
|
|
804
|
-
/* @__PURE__ */ i(
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
}
|
|
810
|
-
),
|
|
811
|
-
/* @__PURE__ */ i(ar, { negative: u, children: d })
|
|
812
|
-
] }, d)
|
|
813
|
-
) }) : null,
|
|
814
|
-
e && e.length > 0 && /* @__PURE__ */ i("div", { className: s(`${o}__links`), children: e.map(
|
|
815
|
-
({ text: d, href: v, ...Z }, lr) => v && /* @__PURE__ */ i(
|
|
816
|
-
X,
|
|
817
|
-
{
|
|
818
|
-
href: v,
|
|
819
|
-
variant: lr === 0 ? "primary" : "secondary",
|
|
820
|
-
negative: u,
|
|
821
|
-
onClick: () => h == null ? void 0 : h({ text: d, href: v, ...Z }),
|
|
822
|
-
...Z,
|
|
823
|
-
children: d
|
|
824
|
-
},
|
|
825
|
-
d + v
|
|
826
|
-
)
|
|
827
|
-
) })
|
|
587
|
+
return /* @__PURE__ */ f("div", { className: W, ...K, children: [
|
|
588
|
+
/* @__PURE__ */ i("div", { className: c(`${l}__section`), children: o ? /* @__PURE__ */ i("div", { className: c(`${l}__video-wrapper`), children: o }) : /* @__PURE__ */ i("div", { className: c(`${l}__image-wrapper`), children: n }) }),
|
|
589
|
+
/* @__PURE__ */ i("div", { className: c(`${l}__section`), children: /* @__PURE__ */ f("div", { className: c(`${l}__content-wrapper`), children: [
|
|
590
|
+
u ? /* @__PURE__ */ i(br, { variant: "special", className: c(`${l}__badge`), children: u }) : null,
|
|
591
|
+
(r == null ? void 0 : r.trim()) && /* @__PURE__ */ i(P, { variant: U, tag: _, negative: p, children: r }),
|
|
592
|
+
/* @__PURE__ */ i("div", { className: c(`${l}__content`), children: D }),
|
|
593
|
+
!!(a != null && a.length) && /* @__PURE__ */ i("ul", { className: c(`${l}__list`), children: a.map(
|
|
594
|
+
(m) => m && /* @__PURE__ */ f("li", { className: c(`${l}__list-item`), children: [
|
|
595
|
+
/* @__PURE__ */ i(z, { size: "xs", className: c(`${l}__list-item-icon`) }),
|
|
596
|
+
/* @__PURE__ */ i(I, { negative: p, children: m })
|
|
597
|
+
] }, m)
|
|
598
|
+
) }),
|
|
599
|
+
e && /* @__PURE__ */ i("div", { className: c(`${l}__actions`), children: e })
|
|
828
600
|
] }) })
|
|
829
601
|
] });
|
|
830
602
|
};
|
|
831
|
-
|
|
832
|
-
|
|
603
|
+
F.Group = G;
|
|
604
|
+
F.displayName = "ContentBlock";
|
|
833
605
|
export {
|
|
834
|
-
|
|
606
|
+
F as ContentBlock
|
|
835
607
|
};
|
|
836
608
|
//# sourceMappingURL=content-block.es.js.map
|