@purpurds/content-block 6.9.0 → 6.11.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 +5 -5
- package/dist/content-block-group.d.ts +1 -2
- package/dist/content-block-group.d.ts.map +1 -1
- package/dist/content-block.cjs.js +9 -9
- package/dist/content-block.cjs.js.map +1 -1
- package/dist/content-block.d.ts +2 -4
- package/dist/content-block.d.ts.map +1 -1
- package/dist/content-block.es.js +221 -224
- package/dist/content-block.es.js.map +1 -1
- package/eslint.config.mjs +2 -0
- package/package.json +11 -15
- package/src/content-block-group.tsx +1 -3
- package/src/content-block.test.tsx +1 -1
- package/src/content-block.tsx +1 -4
package/dist/content-block.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as w, jsx as i, Fragment as
|
|
2
|
-
import
|
|
3
|
-
function
|
|
1
|
+
import { jsxs as w, jsx as i, Fragment as ir } from "react/jsx-runtime";
|
|
2
|
+
import q, { forwardRef as or, Children as sr } from "react";
|
|
3
|
+
function cr(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var M = { 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 C;
|
|
13
|
+
function dr() {
|
|
14
|
+
return C || (C = 1, function(t) {
|
|
15
15
|
(function() {
|
|
16
16
|
var u = {}.hasOwnProperty;
|
|
17
17
|
function n() {
|
|
@@ -40,10 +40,10 @@ function _r() {
|
|
|
40
40
|
}
|
|
41
41
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
42
42
|
})();
|
|
43
|
-
}(
|
|
43
|
+
}(M)), M.exports;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const
|
|
45
|
+
var _r = dr();
|
|
46
|
+
const gr = /* @__PURE__ */ cr(_r), hr = {
|
|
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,26 +51,26 @@ const hr = /* @__PURE__ */ dr(gr), vr = {
|
|
|
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
|
+
}, vr = gr.bind(hr), B = "purpur-icon", fr = "md", mr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), yr = ({ content: t = "", title: u } = {}) => {
|
|
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
59
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
60
60
|
], l = u ? `<title>${u}</title>` : "";
|
|
61
|
-
return `<svg ${
|
|
62
|
-
},
|
|
61
|
+
return `<svg ${mr(n)}>${l}${t}</svg>`;
|
|
62
|
+
}, wr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Q = ({
|
|
63
63
|
["data-testid"]: t,
|
|
64
64
|
svg: u,
|
|
65
65
|
allyTitle: n,
|
|
66
66
|
className: l,
|
|
67
|
-
size: p =
|
|
67
|
+
size: p = fr,
|
|
68
68
|
...r
|
|
69
69
|
}) => {
|
|
70
|
-
const e =
|
|
71
|
-
content:
|
|
70
|
+
const e = yr({
|
|
71
|
+
content: wr(u.svg),
|
|
72
72
|
title: n
|
|
73
|
-
}), a =
|
|
73
|
+
}), a = vr(l, B, `${B}--${p}`);
|
|
74
74
|
return /* @__PURE__ */ i(
|
|
75
75
|
"span",
|
|
76
76
|
{
|
|
@@ -82,60 +82,60 @@ const hr = /* @__PURE__ */ dr(gr), vr = {
|
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
84
|
};
|
|
85
|
-
|
|
86
|
-
const
|
|
85
|
+
Q.displayName = "Icon";
|
|
86
|
+
const br = {
|
|
87
87
|
name: "alert",
|
|
88
88
|
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
89
|
keywords: ["alert"],
|
|
90
90
|
category: "status"
|
|
91
|
-
},
|
|
91
|
+
}, $r = {
|
|
92
92
|
name: "check-circle",
|
|
93
93
|
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
94
|
keywords: ["check-circle"],
|
|
95
95
|
category: "status"
|
|
96
|
-
},
|
|
96
|
+
}, xr = {
|
|
97
97
|
name: "devices",
|
|
98
98
|
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
99
|
keywords: ["devices"],
|
|
100
100
|
category: "device"
|
|
101
|
-
},
|
|
101
|
+
}, kr = {
|
|
102
102
|
name: "error",
|
|
103
103
|
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
104
|
keywords: ["error"],
|
|
105
105
|
category: "status"
|
|
106
|
-
},
|
|
106
|
+
}, Nr = {
|
|
107
107
|
name: "info",
|
|
108
108
|
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
109
|
keywords: ["info"],
|
|
110
110
|
category: "status"
|
|
111
|
-
},
|
|
111
|
+
}, jr = {
|
|
112
112
|
name: "offering",
|
|
113
113
|
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
114
|
keywords: ["offering"],
|
|
115
115
|
category: "other"
|
|
116
|
-
},
|
|
116
|
+
}, Sr = {
|
|
117
117
|
name: "question",
|
|
118
118
|
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
119
|
keywords: ["question"],
|
|
120
120
|
category: "status"
|
|
121
|
-
},
|
|
121
|
+
}, Ar = {
|
|
122
122
|
name: "tag",
|
|
123
123
|
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
124
|
keywords: ["tag"],
|
|
125
125
|
category: "other"
|
|
126
126
|
};
|
|
127
|
-
function
|
|
127
|
+
function Or(t) {
|
|
128
128
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var H = { exports: {} };
|
|
131
131
|
/*!
|
|
132
132
|
Copyright (c) 2018 Jed Watson.
|
|
133
133
|
Licensed under the MIT License (MIT), see
|
|
134
134
|
http://jedwatson.github.io/classnames
|
|
135
135
|
*/
|
|
136
|
-
var
|
|
137
|
-
function
|
|
138
|
-
return
|
|
136
|
+
var I;
|
|
137
|
+
function Zr() {
|
|
138
|
+
return I || (I = 1, function(t) {
|
|
139
139
|
(function() {
|
|
140
140
|
var u = {}.hasOwnProperty;
|
|
141
141
|
function n() {
|
|
@@ -164,10 +164,10 @@ function qr() {
|
|
|
164
164
|
}
|
|
165
165
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
166
166
|
})();
|
|
167
|
-
}(
|
|
167
|
+
}(H)), H.exports;
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
const
|
|
169
|
+
var qr = Zr();
|
|
170
|
+
const L = /* @__PURE__ */ Or(qr), j = {
|
|
171
171
|
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
172
172
|
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
173
173
|
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
@@ -179,7 +179,7 @@ const R = /* @__PURE__ */ Zr(Mr), S = {
|
|
|
179
179
|
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
180
180
|
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
181
181
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
182
|
-
},
|
|
182
|
+
}, S = "purpur-badge", _ = {
|
|
183
183
|
ATTENTION: "attention",
|
|
184
184
|
BLACK_FRIDAY: "black-friday",
|
|
185
185
|
ERROR: "error",
|
|
@@ -189,29 +189,29 @@ const R = /* @__PURE__ */ Zr(Mr), S = {
|
|
|
189
189
|
SPECIAL: "special",
|
|
190
190
|
SUCCESS: "success",
|
|
191
191
|
WARNING: "warning"
|
|
192
|
-
},
|
|
192
|
+
}, Mr = (t) => {
|
|
193
193
|
switch (t) {
|
|
194
|
-
case
|
|
195
|
-
case
|
|
196
|
-
return Sr;
|
|
197
|
-
case g.INFORMATION:
|
|
194
|
+
case _.ATTENTION:
|
|
195
|
+
case _.SPECIAL:
|
|
198
196
|
return jr;
|
|
199
|
-
case
|
|
200
|
-
return
|
|
201
|
-
case
|
|
197
|
+
case _.INFORMATION:
|
|
198
|
+
return Nr;
|
|
199
|
+
case _.GENERAL:
|
|
202
200
|
return xr;
|
|
203
|
-
case
|
|
201
|
+
case _.SUCCESS:
|
|
204
202
|
return $r;
|
|
205
|
-
case
|
|
206
|
-
return
|
|
207
|
-
case
|
|
203
|
+
case _.WARNING:
|
|
204
|
+
return br;
|
|
205
|
+
case _.ERROR:
|
|
206
|
+
return kr;
|
|
207
|
+
case _.NEUTRAL:
|
|
208
|
+
return Sr;
|
|
209
|
+
case _.BLACK_FRIDAY:
|
|
208
210
|
return Ar;
|
|
209
|
-
case g.BLACK_FRIDAY:
|
|
210
|
-
return Or;
|
|
211
211
|
default:
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
},
|
|
214
|
+
}, Cr = ({
|
|
215
215
|
children: t,
|
|
216
216
|
showIcon: u = !0,
|
|
217
217
|
variant: n,
|
|
@@ -220,33 +220,33 @@ const R = /* @__PURE__ */ Zr(Mr), S = {
|
|
|
220
220
|
className: r = "",
|
|
221
221
|
...e
|
|
222
222
|
}) => {
|
|
223
|
-
const a =
|
|
224
|
-
return /* @__PURE__ */ w("span", { "aria-label": p, className:
|
|
223
|
+
const a = Mr(n), c = L([r, j[S], j[`${S}--${n}`]]);
|
|
224
|
+
return /* @__PURE__ */ w("span", { "aria-label": p, className: c, "data-testid": l, ...e, children: [
|
|
225
225
|
u && a && /* @__PURE__ */ i(
|
|
226
|
-
|
|
226
|
+
Q,
|
|
227
227
|
{
|
|
228
228
|
"data-testid": `${l}-icon`,
|
|
229
229
|
allyTitle: p,
|
|
230
230
|
size: "xs",
|
|
231
231
|
svg: a,
|
|
232
|
-
className:
|
|
232
|
+
className: L(j[`${S}__icon`])
|
|
233
233
|
}
|
|
234
234
|
),
|
|
235
235
|
t
|
|
236
236
|
] });
|
|
237
237
|
};
|
|
238
|
-
function
|
|
238
|
+
function Br(t) {
|
|
239
239
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var R = { exports: {} };
|
|
242
242
|
/*!
|
|
243
243
|
Copyright (c) 2018 Jed Watson.
|
|
244
244
|
Licensed under the MIT License (MIT), see
|
|
245
245
|
http://jedwatson.github.io/classnames
|
|
246
246
|
*/
|
|
247
|
-
var
|
|
248
|
-
function
|
|
249
|
-
return
|
|
247
|
+
var P;
|
|
248
|
+
function Hr() {
|
|
249
|
+
return P || (P = 1, function(t) {
|
|
250
250
|
(function() {
|
|
251
251
|
var u = {}.hasOwnProperty;
|
|
252
252
|
function n() {
|
|
@@ -275,10 +275,10 @@ function Ir() {
|
|
|
275
275
|
}
|
|
276
276
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
277
277
|
})();
|
|
278
|
-
}(
|
|
278
|
+
}(R)), R.exports;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
const
|
|
280
|
+
var Ir = Hr();
|
|
281
|
+
const Lr = /* @__PURE__ */ Br(Ir), Rr = {
|
|
282
282
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
283
283
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
284
284
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -286,26 +286,26 @@ const Rr = /* @__PURE__ */ Hr(Lr), Pr = {
|
|
|
286
286
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
287
287
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
288
288
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
289
|
-
},
|
|
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
290
|
const n = [
|
|
291
291
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
292
292
|
{ name: "fill", value: "currentColor" },
|
|
293
293
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
294
294
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
295
295
|
], l = u ? `<title>${u}</title>` : "";
|
|
296
|
-
return `<svg ${
|
|
297
|
-
},
|
|
296
|
+
return `<svg ${Er(n)}>${l}${t}</svg>`;
|
|
297
|
+
}, Vr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({
|
|
298
298
|
["data-testid"]: t,
|
|
299
299
|
svg: u,
|
|
300
300
|
allyTitle: n,
|
|
301
301
|
className: l,
|
|
302
|
-
size: p =
|
|
302
|
+
size: p = Tr,
|
|
303
303
|
...r
|
|
304
304
|
}) => {
|
|
305
|
-
const e =
|
|
306
|
-
content:
|
|
305
|
+
const e = zr({
|
|
306
|
+
content: Vr(u.svg),
|
|
307
307
|
title: n
|
|
308
|
-
}), a =
|
|
308
|
+
}), a = Pr(l, T, `${T}--${p}`);
|
|
309
309
|
return /* @__PURE__ */ i(
|
|
310
310
|
"span",
|
|
311
311
|
{
|
|
@@ -317,40 +317,40 @@ const Rr = /* @__PURE__ */ Hr(Lr), Pr = {
|
|
|
317
317
|
}
|
|
318
318
|
);
|
|
319
319
|
};
|
|
320
|
-
|
|
321
|
-
const
|
|
320
|
+
O.displayName = "Icon";
|
|
321
|
+
const Gr = {
|
|
322
322
|
name: "arrow-left",
|
|
323
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
324
|
keywords: ["arrow-left"],
|
|
325
325
|
category: "utility"
|
|
326
|
-
},
|
|
326
|
+
}, Fr = {
|
|
327
327
|
name: "arrow-right",
|
|
328
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
329
|
keywords: ["arrow-right"],
|
|
330
330
|
category: "utility"
|
|
331
|
-
},
|
|
331
|
+
}, Dr = {
|
|
332
332
|
name: "external",
|
|
333
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
334
|
keywords: ["external"],
|
|
335
335
|
category: "media"
|
|
336
|
-
},
|
|
336
|
+
}, Ur = {
|
|
337
337
|
name: "phone",
|
|
338
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
339
|
keywords: ["phone"],
|
|
340
340
|
category: "device"
|
|
341
341
|
};
|
|
342
|
-
function
|
|
342
|
+
function Wr(t) {
|
|
343
343
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
344
344
|
}
|
|
345
|
-
var
|
|
345
|
+
var E = { exports: {} };
|
|
346
346
|
/*!
|
|
347
347
|
Copyright (c) 2018 Jed Watson.
|
|
348
348
|
Licensed under the MIT License (MIT), see
|
|
349
349
|
http://jedwatson.github.io/classnames
|
|
350
350
|
*/
|
|
351
|
-
var
|
|
352
|
-
function
|
|
353
|
-
return
|
|
351
|
+
var z;
|
|
352
|
+
function Kr() {
|
|
353
|
+
return z || (z = 1, function(t) {
|
|
354
354
|
(function() {
|
|
355
355
|
var u = {}.hasOwnProperty;
|
|
356
356
|
function n() {
|
|
@@ -379,10 +379,10 @@ function Yr() {
|
|
|
379
379
|
}
|
|
380
380
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
381
381
|
})();
|
|
382
|
-
}(
|
|
382
|
+
}(E)), E.exports;
|
|
383
383
|
}
|
|
384
|
-
var
|
|
385
|
-
const
|
|
384
|
+
var Yr = Kr();
|
|
385
|
+
const Jr = /* @__PURE__ */ Wr(Yr), Qr = {
|
|
386
386
|
"purpur-cta-link": "_purpur-cta-link_1e75l_1",
|
|
387
387
|
"purpur-cta-link--xs": "_purpur-cta-link--xs_1e75l_33",
|
|
388
388
|
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_1e75l_36",
|
|
@@ -397,12 +397,12 @@ const Qr = /* @__PURE__ */ Kr(Jr), Xr = {
|
|
|
397
397
|
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_1e75l_93",
|
|
398
398
|
"purpur-cta-link--expressive": "_purpur-cta-link--expressive_1e75l_104",
|
|
399
399
|
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1e75l_114"
|
|
400
|
-
},
|
|
401
|
-
forward:
|
|
402
|
-
external:
|
|
403
|
-
back:
|
|
404
|
-
phone:
|
|
405
|
-
},
|
|
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
406
|
({
|
|
407
407
|
children: t,
|
|
408
408
|
className: u,
|
|
@@ -412,47 +412,47 @@ const Qr = /* @__PURE__ */ Kr(Jr), Xr = {
|
|
|
412
412
|
showIcon: r = !0,
|
|
413
413
|
negative: e = !1,
|
|
414
414
|
size: a = "md",
|
|
415
|
-
variant:
|
|
416
|
-
icon:
|
|
417
|
-
...
|
|
418
|
-
},
|
|
419
|
-
const
|
|
415
|
+
variant: c,
|
|
416
|
+
icon: g = "forward",
|
|
417
|
+
...h
|
|
418
|
+
}, b) => {
|
|
419
|
+
const N = Xr(
|
|
420
420
|
[
|
|
421
421
|
u,
|
|
422
|
-
|
|
423
|
-
`${
|
|
424
|
-
`${
|
|
422
|
+
f,
|
|
423
|
+
`${f}--${e ? `${c}-negative` : c}`,
|
|
424
|
+
`${f}--${a}`
|
|
425
425
|
],
|
|
426
426
|
{
|
|
427
|
-
[`${
|
|
428
|
-
[`${
|
|
429
|
-
[`${
|
|
427
|
+
[`${f}--icon-only`]: p,
|
|
428
|
+
[`${f}--negative`]: e,
|
|
429
|
+
[`${f}--full-width`]: l
|
|
430
430
|
}
|
|
431
|
-
),
|
|
432
|
-
r && (
|
|
431
|
+
), $ = re[g], d = /* @__PURE__ */ w(ir, { children: [
|
|
432
|
+
r && (g === "back" || g === "phone") && /* @__PURE__ */ i(O, { svg: $, size: a === "lg" ? "sm" : "xs" }),
|
|
433
433
|
(!p || p && !r) && t,
|
|
434
|
-
r && (
|
|
435
|
-
] }),
|
|
436
|
-
...
|
|
437
|
-
className:
|
|
434
|
+
r && (g === "forward" || g === "external") && /* @__PURE__ */ i(O, { svg: $, size: a === "lg" ? "sm" : "xs" })
|
|
435
|
+
] }), v = {
|
|
436
|
+
...h,
|
|
437
|
+
className: N,
|
|
438
438
|
"data-testid": n
|
|
439
439
|
};
|
|
440
|
-
return "href" in
|
|
440
|
+
return "href" in h && h.href ? /* @__PURE__ */ i("a", { ...v, ref: b, children: d }) : /* @__PURE__ */ i("span", { ...v, ref: b, children: d });
|
|
441
441
|
}
|
|
442
442
|
);
|
|
443
|
-
|
|
444
|
-
function
|
|
443
|
+
X.displayName = "CtaLink";
|
|
444
|
+
function ee(t) {
|
|
445
445
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
446
446
|
}
|
|
447
|
-
var
|
|
447
|
+
var V = { exports: {} };
|
|
448
448
|
/*!
|
|
449
449
|
Copyright (c) 2018 Jed Watson.
|
|
450
450
|
Licensed under the MIT License (MIT), see
|
|
451
451
|
http://jedwatson.github.io/classnames
|
|
452
452
|
*/
|
|
453
|
-
var
|
|
454
|
-
function
|
|
455
|
-
return
|
|
453
|
+
var G;
|
|
454
|
+
function te() {
|
|
455
|
+
return G || (G = 1, function(t) {
|
|
456
456
|
(function() {
|
|
457
457
|
var u = {}.hasOwnProperty;
|
|
458
458
|
function n() {
|
|
@@ -481,10 +481,10 @@ function ae() {
|
|
|
481
481
|
}
|
|
482
482
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
483
483
|
})();
|
|
484
|
-
}(
|
|
484
|
+
}(V)), V.exports;
|
|
485
485
|
}
|
|
486
|
-
var
|
|
487
|
-
const
|
|
486
|
+
var ae = te();
|
|
487
|
+
const ne = /* @__PURE__ */ ee(ae), x = {
|
|
488
488
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
489
489
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
490
490
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -500,42 +500,41 @@ const ue = /* @__PURE__ */ te(ne), k = {
|
|
|
500
500
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
501
501
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
502
502
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
503
|
-
},
|
|
503
|
+
}, ue = {
|
|
504
504
|
TITLE100: "title-100"
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
...a
|
|
505
|
+
}, k = "purpur-heading", rr = ({
|
|
506
|
+
children: t,
|
|
507
|
+
className: u = "",
|
|
508
|
+
enableHyphenation: n = !1,
|
|
509
|
+
negative: l = !1,
|
|
510
|
+
tag: p,
|
|
511
|
+
variant: r = ue.TITLE100,
|
|
512
|
+
...e
|
|
514
513
|
}) => {
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
k
|
|
518
|
-
|
|
514
|
+
const a = p, c = ne([
|
|
515
|
+
u,
|
|
516
|
+
x[k],
|
|
517
|
+
x[`${k}--${r}`],
|
|
519
518
|
{
|
|
520
|
-
[
|
|
521
|
-
[
|
|
519
|
+
[x[`${k}--hyphens`]]: n,
|
|
520
|
+
[x[`${k}--negative`]]: l
|
|
522
521
|
}
|
|
523
522
|
]);
|
|
524
|
-
return /* @__PURE__ */ i(
|
|
523
|
+
return /* @__PURE__ */ i(a, { className: c, ...e, children: t });
|
|
525
524
|
};
|
|
526
|
-
|
|
527
|
-
function
|
|
525
|
+
rr.displayName = "Heading";
|
|
526
|
+
function pe(t) {
|
|
528
527
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
529
528
|
}
|
|
530
|
-
var
|
|
529
|
+
var F = { exports: {} };
|
|
531
530
|
/*!
|
|
532
531
|
Copyright (c) 2018 Jed Watson.
|
|
533
532
|
Licensed under the MIT License (MIT), see
|
|
534
533
|
http://jedwatson.github.io/classnames
|
|
535
534
|
*/
|
|
536
|
-
var
|
|
537
|
-
function
|
|
538
|
-
return
|
|
535
|
+
var D;
|
|
536
|
+
function le() {
|
|
537
|
+
return D || (D = 1, function(t) {
|
|
539
538
|
(function() {
|
|
540
539
|
var u = {}.hasOwnProperty;
|
|
541
540
|
function n() {
|
|
@@ -564,10 +563,10 @@ function ie() {
|
|
|
564
563
|
}
|
|
565
564
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
566
565
|
})();
|
|
567
|
-
}(
|
|
566
|
+
}(F)), F.exports;
|
|
568
567
|
}
|
|
569
|
-
var
|
|
570
|
-
const
|
|
568
|
+
var ie = le();
|
|
569
|
+
const oe = /* @__PURE__ */ pe(ie), se = {
|
|
571
570
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
572
571
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
573
572
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -575,26 +574,26 @@ const se = /* @__PURE__ */ le(oe), ce = {
|
|
|
575
574
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
576
575
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
577
576
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
578
|
-
},
|
|
577
|
+
}, ce = oe.bind(se), U = "purpur-icon", de = "md", _e = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), ge = ({ content: t = "", title: u } = {}) => {
|
|
579
578
|
const n = [
|
|
580
579
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
581
580
|
{ name: "fill", value: "currentColor" },
|
|
582
581
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
583
582
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
584
583
|
], l = u ? `<title>${u}</title>` : "";
|
|
585
|
-
return `<svg ${
|
|
586
|
-
},
|
|
584
|
+
return `<svg ${_e(n)}>${l}${t}</svg>`;
|
|
585
|
+
}, he = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), er = ({
|
|
587
586
|
["data-testid"]: t,
|
|
588
587
|
svg: u,
|
|
589
588
|
allyTitle: n,
|
|
590
589
|
className: l,
|
|
591
|
-
size: p =
|
|
590
|
+
size: p = de,
|
|
592
591
|
...r
|
|
593
592
|
}) => {
|
|
594
|
-
const e =
|
|
595
|
-
content:
|
|
593
|
+
const e = ge({
|
|
594
|
+
content: he(u.svg),
|
|
596
595
|
title: n
|
|
597
|
-
}), a =
|
|
596
|
+
}), a = ce(l, U, `${U}--${p}`);
|
|
598
597
|
return /* @__PURE__ */ i(
|
|
599
598
|
"span",
|
|
600
599
|
{
|
|
@@ -606,26 +605,26 @@ const se = /* @__PURE__ */ le(oe), ce = {
|
|
|
606
605
|
}
|
|
607
606
|
);
|
|
608
607
|
};
|
|
609
|
-
|
|
610
|
-
const
|
|
608
|
+
er.displayName = "Icon";
|
|
609
|
+
const ve = {
|
|
611
610
|
name: "checkmark",
|
|
612
611
|
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>',
|
|
613
612
|
keywords: ["checkmark"],
|
|
614
613
|
category: "utility"
|
|
615
|
-
},
|
|
616
|
-
|
|
617
|
-
function
|
|
614
|
+
}, tr = (t) => /* @__PURE__ */ i(er, { ...t, svg: ve });
|
|
615
|
+
tr.displayName = "IconCheckmark";
|
|
616
|
+
function fe(t) {
|
|
618
617
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
619
618
|
}
|
|
620
|
-
var
|
|
619
|
+
var W = { exports: {} };
|
|
621
620
|
/*!
|
|
622
621
|
Copyright (c) 2018 Jed Watson.
|
|
623
622
|
Licensed under the MIT License (MIT), see
|
|
624
623
|
http://jedwatson.github.io/classnames
|
|
625
624
|
*/
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return
|
|
625
|
+
var K;
|
|
626
|
+
function me() {
|
|
627
|
+
return K || (K = 1, function(t) {
|
|
629
628
|
(function() {
|
|
630
629
|
var u = {}.hasOwnProperty;
|
|
631
630
|
function n() {
|
|
@@ -654,10 +653,10 @@ function ye() {
|
|
|
654
653
|
}
|
|
655
654
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
656
655
|
})();
|
|
657
|
-
}(
|
|
656
|
+
}(W)), W.exports;
|
|
658
657
|
}
|
|
659
|
-
var
|
|
660
|
-
const
|
|
658
|
+
var ye = me();
|
|
659
|
+
const we = /* @__PURE__ */ fe(ye), m = {
|
|
661
660
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
662
661
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
663
662
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -672,19 +671,19 @@ const be = /* @__PURE__ */ me(we), m = {
|
|
|
672
671
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
673
672
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
674
673
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
675
|
-
},
|
|
674
|
+
}, be = {
|
|
676
675
|
PARAGRAPH100: "paragraph-100"
|
|
677
|
-
}, y = "purpur-paragraph",
|
|
676
|
+
}, y = "purpur-paragraph", ar = ({
|
|
678
677
|
["data-testid"]: t,
|
|
679
678
|
children: u,
|
|
680
679
|
className: n,
|
|
681
680
|
disabled: l,
|
|
682
681
|
enableHyphenation: p = !1,
|
|
683
682
|
negative: r = !1,
|
|
684
|
-
variant: e =
|
|
683
|
+
variant: e = be.PARAGRAPH100,
|
|
685
684
|
...a
|
|
686
685
|
}) => {
|
|
687
|
-
const
|
|
686
|
+
const c = we([
|
|
688
687
|
n,
|
|
689
688
|
m[y],
|
|
690
689
|
m[`${y}--${e}`],
|
|
@@ -694,21 +693,21 @@ const be = /* @__PURE__ */ me(we), m = {
|
|
|
694
693
|
[m[`${y}--negative`]]: r
|
|
695
694
|
}
|
|
696
695
|
]);
|
|
697
|
-
return /* @__PURE__ */ i("p", { ...a, className:
|
|
696
|
+
return /* @__PURE__ */ i("p", { ...a, className: c, "data-testid": t, children: u });
|
|
698
697
|
};
|
|
699
|
-
|
|
700
|
-
function
|
|
698
|
+
ar.displayName = "Paragraph";
|
|
699
|
+
function $e(t) {
|
|
701
700
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
702
701
|
}
|
|
703
|
-
var
|
|
702
|
+
var A = { exports: {} };
|
|
704
703
|
/*!
|
|
705
704
|
Copyright (c) 2018 Jed Watson.
|
|
706
705
|
Licensed under the MIT License (MIT), see
|
|
707
706
|
http://jedwatson.github.io/classnames
|
|
708
707
|
*/
|
|
709
|
-
var
|
|
710
|
-
function
|
|
711
|
-
return
|
|
708
|
+
var Y;
|
|
709
|
+
function xe() {
|
|
710
|
+
return Y || (Y = 1, function(t) {
|
|
712
711
|
(function() {
|
|
713
712
|
var u = {}.hasOwnProperty;
|
|
714
713
|
function n() {
|
|
@@ -737,10 +736,10 @@ function ke() {
|
|
|
737
736
|
}
|
|
738
737
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
739
738
|
})();
|
|
740
|
-
}(
|
|
739
|
+
}(A)), A.exports;
|
|
741
740
|
}
|
|
742
|
-
var
|
|
743
|
-
const
|
|
741
|
+
var ke = xe();
|
|
742
|
+
const nr = /* @__PURE__ */ $e(ke), Ne = {
|
|
744
743
|
"purpur-content-block": "_purpur-content-block_1nd7j_1",
|
|
745
744
|
"purpur-content-block__section": "_purpur-content-block__section_1nd7j_17",
|
|
746
745
|
"purpur-content-block__image-wrapper": "_purpur-content-block__image-wrapper_1nd7j_25",
|
|
@@ -754,86 +753,84 @@ const ur = /* @__PURE__ */ xe(Ne), je = {
|
|
|
754
753
|
"purpur-content-block__links": "_purpur-content-block__links_1nd7j_65",
|
|
755
754
|
"purpur-content-block--negative": "_purpur-content-block--negative_1nd7j_76",
|
|
756
755
|
"purpur-content-block__text-spacing": "_purpur-content-block__text-spacing_1nd7j_76"
|
|
757
|
-
},
|
|
756
|
+
}, je = {
|
|
758
757
|
"purpur-content-block-group": "_purpur-content-block-group_1g4rh_1"
|
|
759
|
-
},
|
|
758
|
+
}, Se = nr.bind(je), J = "purpur-content-block-group", ur = ({
|
|
760
759
|
children: t,
|
|
761
760
|
className: u,
|
|
762
761
|
negative: n,
|
|
763
|
-
|
|
764
|
-
...p
|
|
762
|
+
...l
|
|
765
763
|
}) => {
|
|
766
|
-
const
|
|
764
|
+
const p = Se([
|
|
767
765
|
u,
|
|
768
|
-
|
|
766
|
+
J,
|
|
769
767
|
{
|
|
770
|
-
[`${
|
|
768
|
+
[`${J}--negative`]: n
|
|
771
769
|
}
|
|
772
770
|
]);
|
|
773
|
-
return /* @__PURE__ */ i("div", { className:
|
|
771
|
+
return /* @__PURE__ */ i("div", { className: p, ...l, children: sr.map(t, (e) => q.isValidElement(e) ? q.cloneElement(e, { negative: n }) : e) });
|
|
774
772
|
};
|
|
775
|
-
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
headingVariant: f = "title-300",
|
|
773
|
+
ur.displayName = "ContentBlockGroup";
|
|
774
|
+
const s = nr.bind(Ne), o = "purpur-content-block", pr = ({
|
|
775
|
+
className: t,
|
|
776
|
+
negative: u,
|
|
777
|
+
image: n,
|
|
778
|
+
video: l,
|
|
779
|
+
tagline: p,
|
|
780
|
+
title: r,
|
|
781
|
+
ctas: e,
|
|
782
|
+
usp: a,
|
|
783
|
+
headingTag: c = "h2",
|
|
784
|
+
headingVariant: g = "title-300",
|
|
788
785
|
onCtaClick: h,
|
|
789
|
-
children:
|
|
790
|
-
...
|
|
786
|
+
children: b,
|
|
787
|
+
...N
|
|
791
788
|
}) => {
|
|
792
|
-
const $ =
|
|
793
|
-
|
|
794
|
-
|
|
789
|
+
const $ = s([
|
|
790
|
+
t,
|
|
791
|
+
o,
|
|
795
792
|
{
|
|
796
|
-
[`${
|
|
793
|
+
[`${o}--negative`]: u
|
|
797
794
|
}
|
|
798
795
|
]);
|
|
799
|
-
return /* @__PURE__ */ w("div", {
|
|
800
|
-
/* @__PURE__ */ i("div", { className:
|
|
801
|
-
/* @__PURE__ */ i("div", { className:
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
/* @__PURE__ */ i("div", { className:
|
|
805
|
-
|
|
806
|
-
(d) => d && /* @__PURE__ */ w("li", { className:
|
|
796
|
+
return /* @__PURE__ */ w("div", { className: $, ...N, children: [
|
|
797
|
+
/* @__PURE__ */ i("div", { className: s(`${o}__section`), children: l ? /* @__PURE__ */ i("div", { className: s(`${o}__video-wrapper`), children: l }) : /* @__PURE__ */ i("div", { className: s(`${o}__image-wrapper`), children: n }) }),
|
|
798
|
+
/* @__PURE__ */ i("div", { className: s(`${o}__section`), children: /* @__PURE__ */ w("div", { className: s(`${o}__content-wrapper`), children: [
|
|
799
|
+
p ? /* @__PURE__ */ i(Cr, { variant: "special", className: s(`${o}__badge`), children: p }) : null,
|
|
800
|
+
r && r.trim() && /* @__PURE__ */ i(rr, { variant: g, tag: c, negative: u, children: r }),
|
|
801
|
+
/* @__PURE__ */ i("div", { className: s(`${o}__content`), children: b }),
|
|
802
|
+
a != null && a.length ? /* @__PURE__ */ i("ul", { className: s(`${o}__usp-list`), children: a.map(
|
|
803
|
+
(d) => d && /* @__PURE__ */ w("li", { className: s(`${o}__usp-list-item`), children: [
|
|
807
804
|
/* @__PURE__ */ i(
|
|
808
|
-
|
|
805
|
+
tr,
|
|
809
806
|
{
|
|
810
807
|
size: "xs",
|
|
811
|
-
className:
|
|
808
|
+
className: s(`${o}__usp-list-item-icon`)
|
|
812
809
|
}
|
|
813
810
|
),
|
|
814
|
-
/* @__PURE__ */ i(
|
|
811
|
+
/* @__PURE__ */ i(ar, { negative: u, children: d })
|
|
815
812
|
] }, d)
|
|
816
813
|
) }) : null,
|
|
817
|
-
|
|
818
|
-
({ text: d, href:
|
|
819
|
-
|
|
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,
|
|
820
817
|
{
|
|
821
|
-
href:
|
|
822
|
-
variant:
|
|
823
|
-
negative:
|
|
824
|
-
onClick: () => h == null ? void 0 : h({ text: d, href:
|
|
825
|
-
...
|
|
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,
|
|
826
823
|
children: d
|
|
827
824
|
},
|
|
828
|
-
d +
|
|
825
|
+
d + v
|
|
829
826
|
)
|
|
830
827
|
) })
|
|
831
828
|
] }) })
|
|
832
829
|
] });
|
|
833
830
|
};
|
|
834
|
-
|
|
835
|
-
|
|
831
|
+
pr.Group = ur;
|
|
832
|
+
pr.displayName = "ContentBlock";
|
|
836
833
|
export {
|
|
837
|
-
|
|
834
|
+
pr as ContentBlock
|
|
838
835
|
};
|
|
839
836
|
//# sourceMappingURL=content-block.es.js.map
|