@purpurds/promotion-card 7.1.0 → 7.3.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 -4
- package/dist/promotion-card.cjs.js +13 -13
- package/dist/promotion-card.cjs.js.map +1 -1
- package/dist/promotion-card.es.js +295 -279
- package/dist/promotion-card.es.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as c, jsx as u, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
function
|
|
1
|
+
import { jsxs as c, jsx as u, Fragment as Pr } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Mr } from "react";
|
|
3
|
+
function Dr(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var er = { 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 tr;
|
|
13
|
+
function Hr() {
|
|
14
|
+
return tr || (tr = 1, function(e) {
|
|
15
15
|
(function() {
|
|
16
16
|
var n = {}.hasOwnProperty;
|
|
17
17
|
function a() {
|
|
@@ -40,10 +40,10 @@ function Dr() {
|
|
|
40
40
|
}
|
|
41
41
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
42
42
|
})();
|
|
43
|
-
}(
|
|
43
|
+
}(er)), er.exports;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const
|
|
45
|
+
var Tr = Hr();
|
|
46
|
+
const Vr = /* @__PURE__ */ Dr(Tr), Wr = {
|
|
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 Tr = /* @__PURE__ */ Pr(Hr), 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
|
+
}, Kr = Vr.bind(Wr), ar = "purpur-icon", Yr = "md", Jr = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Qr = ({ content: e = "", title: n } = {}) => {
|
|
55
55
|
const a = [
|
|
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
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
60
60
|
], o = n ? `<title>${n}</title>` : "";
|
|
61
|
-
return `<svg ${
|
|
62
|
-
},
|
|
61
|
+
return `<svg ${Jr(a)}>${o}${e}</svg>`;
|
|
62
|
+
}, Xr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Gr = ({
|
|
63
63
|
["data-testid"]: e,
|
|
64
64
|
svg: n,
|
|
65
65
|
allyTitle: a,
|
|
66
66
|
className: o,
|
|
67
|
-
size: p =
|
|
67
|
+
size: p = Yr,
|
|
68
68
|
...r
|
|
69
69
|
}) => {
|
|
70
|
-
const t =
|
|
71
|
-
content:
|
|
70
|
+
const t = Qr({
|
|
71
|
+
content: Xr(n.svg),
|
|
72
72
|
title: a
|
|
73
|
-
}), i =
|
|
73
|
+
}), i = Kr(o, ar, `${ar}--${p}`);
|
|
74
74
|
return /* @__PURE__ */ u(
|
|
75
75
|
"span",
|
|
76
76
|
{
|
|
@@ -81,60 +81,60 @@ const Tr = /* @__PURE__ */ Pr(Hr), Vr = {
|
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
const
|
|
84
|
+
Gr.displayName = "Icon";
|
|
85
|
+
const re = {
|
|
86
86
|
name: "alert",
|
|
87
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>',
|
|
88
88
|
keywords: ["alert"],
|
|
89
89
|
category: "status"
|
|
90
|
-
},
|
|
90
|
+
}, ee = {
|
|
91
91
|
name: "check-circle",
|
|
92
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>',
|
|
93
93
|
keywords: ["check-circle"],
|
|
94
94
|
category: "status"
|
|
95
|
-
},
|
|
95
|
+
}, te = {
|
|
96
96
|
name: "devices",
|
|
97
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>',
|
|
98
98
|
keywords: ["devices"],
|
|
99
99
|
category: "device"
|
|
100
|
-
},
|
|
100
|
+
}, ae = {
|
|
101
101
|
name: "error",
|
|
102
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>',
|
|
103
103
|
keywords: ["error"],
|
|
104
104
|
category: "status"
|
|
105
|
-
},
|
|
105
|
+
}, ie = {
|
|
106
106
|
name: "info",
|
|
107
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>',
|
|
108
108
|
keywords: ["info"],
|
|
109
109
|
category: "status"
|
|
110
|
-
},
|
|
110
|
+
}, ne = {
|
|
111
111
|
name: "offering",
|
|
112
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>',
|
|
113
113
|
keywords: ["offering"],
|
|
114
114
|
category: "other"
|
|
115
|
-
},
|
|
115
|
+
}, oe = {
|
|
116
116
|
name: "question",
|
|
117
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>',
|
|
118
118
|
keywords: ["question"],
|
|
119
119
|
category: "status"
|
|
120
|
-
},
|
|
120
|
+
}, pe = {
|
|
121
121
|
name: "tag",
|
|
122
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>',
|
|
123
123
|
keywords: ["tag"],
|
|
124
124
|
category: "other"
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function ue(e) {
|
|
127
127
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var ir = { exports: {} };
|
|
130
130
|
/*!
|
|
131
131
|
Copyright (c) 2018 Jed Watson.
|
|
132
132
|
Licensed under the MIT License (MIT), see
|
|
133
133
|
http://jedwatson.github.io/classnames
|
|
134
134
|
*/
|
|
135
|
-
var
|
|
136
|
-
function
|
|
137
|
-
return
|
|
135
|
+
var nr;
|
|
136
|
+
function le() {
|
|
137
|
+
return nr || (nr = 1, function(e) {
|
|
138
138
|
(function() {
|
|
139
139
|
var n = {}.hasOwnProperty;
|
|
140
140
|
function a() {
|
|
@@ -163,10 +163,10 @@ function ue() {
|
|
|
163
163
|
}
|
|
164
164
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
165
165
|
})();
|
|
166
|
-
}(
|
|
166
|
+
}(ir)), ir.exports;
|
|
167
167
|
}
|
|
168
|
-
var
|
|
169
|
-
const
|
|
168
|
+
var se = le();
|
|
169
|
+
const or = /* @__PURE__ */ ue(se), D = {
|
|
170
170
|
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
171
171
|
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
172
172
|
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
@@ -178,7 +178,7 @@ const ir = /* @__PURE__ */ pe(le), P = {
|
|
|
178
178
|
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
179
179
|
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
180
180
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
181
|
-
},
|
|
181
|
+
}, H = "purpur-badge", g = {
|
|
182
182
|
ATTENTION: "attention",
|
|
183
183
|
BLACK_FRIDAY: "black-friday",
|
|
184
184
|
ERROR: "error",
|
|
@@ -188,29 +188,29 @@ const ir = /* @__PURE__ */ pe(le), P = {
|
|
|
188
188
|
SPECIAL: "special",
|
|
189
189
|
SUCCESS: "success",
|
|
190
190
|
WARNING: "warning"
|
|
191
|
-
},
|
|
191
|
+
}, de = (e) => {
|
|
192
192
|
switch (e) {
|
|
193
193
|
case g.ATTENTION:
|
|
194
194
|
case g.SPECIAL:
|
|
195
|
-
return
|
|
195
|
+
return ne;
|
|
196
196
|
case g.INFORMATION:
|
|
197
|
-
return
|
|
197
|
+
return ie;
|
|
198
198
|
case g.GENERAL:
|
|
199
|
-
return
|
|
199
|
+
return te;
|
|
200
200
|
case g.SUCCESS:
|
|
201
|
-
return
|
|
201
|
+
return ee;
|
|
202
202
|
case g.WARNING:
|
|
203
|
-
return
|
|
203
|
+
return re;
|
|
204
204
|
case g.ERROR:
|
|
205
|
-
return
|
|
205
|
+
return ae;
|
|
206
206
|
case g.NEUTRAL:
|
|
207
|
-
return ne;
|
|
208
|
-
case g.BLACK_FRIDAY:
|
|
209
207
|
return oe;
|
|
208
|
+
case g.BLACK_FRIDAY:
|
|
209
|
+
return pe;
|
|
210
210
|
default:
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, ce = ({
|
|
214
214
|
children: e,
|
|
215
215
|
showIcon: n = !0,
|
|
216
216
|
iconAllyTitle: a,
|
|
@@ -219,33 +219,33 @@ const ir = /* @__PURE__ */ pe(le), P = {
|
|
|
219
219
|
className: r = "",
|
|
220
220
|
...t
|
|
221
221
|
}) => {
|
|
222
|
-
const i =
|
|
222
|
+
const i = de(o), l = or([r, D[H], D[`${H}--${o}`]]);
|
|
223
223
|
return /* @__PURE__ */ c("span", { className: l, "data-testid": p, ...t, children: [
|
|
224
224
|
n && i && /* @__PURE__ */ u(
|
|
225
|
-
|
|
225
|
+
Gr,
|
|
226
226
|
{
|
|
227
227
|
"data-testid": `${p}-icon`,
|
|
228
228
|
allyTitle: a,
|
|
229
229
|
size: "xs",
|
|
230
230
|
svg: i,
|
|
231
|
-
className:
|
|
231
|
+
className: or(D[`${H}__icon`])
|
|
232
232
|
}
|
|
233
233
|
),
|
|
234
234
|
e
|
|
235
235
|
] });
|
|
236
236
|
};
|
|
237
|
-
function
|
|
237
|
+
function _e(e) {
|
|
238
238
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
240
|
+
var pr = { exports: {} };
|
|
241
241
|
/*!
|
|
242
242
|
Copyright (c) 2018 Jed Watson.
|
|
243
243
|
Licensed under the MIT License (MIT), see
|
|
244
244
|
http://jedwatson.github.io/classnames
|
|
245
245
|
*/
|
|
246
|
-
var
|
|
247
|
-
function
|
|
248
|
-
return
|
|
246
|
+
var ur;
|
|
247
|
+
function fe() {
|
|
248
|
+
return ur || (ur = 1, function(e) {
|
|
249
249
|
(function() {
|
|
250
250
|
var n = {}.hasOwnProperty;
|
|
251
251
|
function a() {
|
|
@@ -274,26 +274,26 @@ function _e() {
|
|
|
274
274
|
}
|
|
275
275
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
276
276
|
})();
|
|
277
|
-
}(
|
|
277
|
+
}(pr)), pr.exports;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
const _ = /* @__PURE__ */
|
|
279
|
+
var he = fe();
|
|
280
|
+
const _ = /* @__PURE__ */ _e(he), ge = {
|
|
281
281
|
"purpur-card__container": "_purpur-card__container_fwz6v_1",
|
|
282
282
|
"purpur-card__container--full-height": "_purpur-card__container--full-height_fwz6v_4",
|
|
283
283
|
"purpur-card": "_purpur-card_fwz6v_1"
|
|
284
284
|
};
|
|
285
|
-
function
|
|
285
|
+
function me(e) {
|
|
286
286
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
288
|
+
var lr = { exports: {} };
|
|
289
289
|
/*!
|
|
290
290
|
Copyright (c) 2018 Jed Watson.
|
|
291
291
|
Licensed under the MIT License (MIT), see
|
|
292
292
|
http://jedwatson.github.io/classnames
|
|
293
293
|
*/
|
|
294
|
-
var
|
|
295
|
-
function
|
|
296
|
-
return
|
|
294
|
+
var sr;
|
|
295
|
+
function ve() {
|
|
296
|
+
return sr || (sr = 1, function(e) {
|
|
297
297
|
(function() {
|
|
298
298
|
var n = {}.hasOwnProperty;
|
|
299
299
|
function a() {
|
|
@@ -322,10 +322,10 @@ function me() {
|
|
|
322
322
|
}
|
|
323
323
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
324
324
|
})();
|
|
325
|
-
}(
|
|
325
|
+
}(lr)), lr.exports;
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
const
|
|
327
|
+
var ye = ve();
|
|
328
|
+
const we = /* @__PURE__ */ me(ye), xe = {
|
|
329
329
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
330
330
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
331
331
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -333,26 +333,26 @@ const ye = /* @__PURE__ */ ge(ve), we = {
|
|
|
333
333
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
334
334
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
335
335
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
336
|
-
},
|
|
336
|
+
}, be = we.bind(xe), dr = "purpur-icon", Ce = "md", Se = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), $e = ({ content: e = "", title: n } = {}) => {
|
|
337
337
|
const a = [
|
|
338
338
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
339
339
|
{ name: "fill", value: "currentColor" },
|
|
340
340
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
341
341
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
342
342
|
], o = n ? `<title>${n}</title>` : "";
|
|
343
|
-
return `<svg ${
|
|
344
|
-
},
|
|
343
|
+
return `<svg ${Se(a)}>${o}${e}</svg>`;
|
|
344
|
+
}, Ae = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), jr = ({
|
|
345
345
|
["data-testid"]: e,
|
|
346
346
|
svg: n,
|
|
347
347
|
allyTitle: a,
|
|
348
348
|
className: o,
|
|
349
|
-
size: p =
|
|
349
|
+
size: p = Ce,
|
|
350
350
|
...r
|
|
351
351
|
}) => {
|
|
352
|
-
const t =
|
|
353
|
-
content:
|
|
352
|
+
const t = $e({
|
|
353
|
+
content: Ae(n.svg),
|
|
354
354
|
title: a
|
|
355
|
-
}), i =
|
|
355
|
+
}), i = be(o, dr, `${dr}--${p}`);
|
|
356
356
|
return /* @__PURE__ */ u(
|
|
357
357
|
"span",
|
|
358
358
|
{
|
|
@@ -363,23 +363,23 @@ const ye = /* @__PURE__ */ ge(ve), we = {
|
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
365
|
};
|
|
366
|
-
|
|
367
|
-
const
|
|
366
|
+
jr.displayName = "Icon";
|
|
367
|
+
const Fe = {
|
|
368
368
|
name: "alert",
|
|
369
369
|
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>',
|
|
370
370
|
keywords: ["alert"],
|
|
371
371
|
category: "status"
|
|
372
|
-
},
|
|
372
|
+
}, Be = {
|
|
373
373
|
name: "check-circle",
|
|
374
374
|
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>',
|
|
375
375
|
keywords: ["check-circle"],
|
|
376
376
|
category: "status"
|
|
377
|
-
},
|
|
377
|
+
}, ke = {
|
|
378
378
|
name: "devices",
|
|
379
379
|
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>',
|
|
380
380
|
keywords: ["devices"],
|
|
381
381
|
category: "device"
|
|
382
|
-
},
|
|
382
|
+
}, Ne = {
|
|
383
383
|
name: "error",
|
|
384
384
|
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>',
|
|
385
385
|
keywords: ["error"],
|
|
@@ -389,34 +389,34 @@ const Ae = {
|
|
|
389
389
|
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>',
|
|
390
390
|
keywords: ["info"],
|
|
391
391
|
category: "status"
|
|
392
|
-
},
|
|
392
|
+
}, Me = {
|
|
393
393
|
name: "offering",
|
|
394
394
|
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>',
|
|
395
395
|
keywords: ["offering"],
|
|
396
396
|
category: "other"
|
|
397
|
-
},
|
|
397
|
+
}, Ge = {
|
|
398
398
|
name: "question",
|
|
399
399
|
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>',
|
|
400
400
|
keywords: ["question"],
|
|
401
401
|
category: "status"
|
|
402
|
-
},
|
|
402
|
+
}, je = {
|
|
403
403
|
name: "tag",
|
|
404
404
|
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>',
|
|
405
405
|
keywords: ["tag"],
|
|
406
406
|
category: "other"
|
|
407
407
|
};
|
|
408
|
-
function
|
|
408
|
+
function Ze(e) {
|
|
409
409
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
410
410
|
}
|
|
411
|
-
var
|
|
411
|
+
var cr = { exports: {} };
|
|
412
412
|
/*!
|
|
413
413
|
Copyright (c) 2018 Jed Watson.
|
|
414
414
|
Licensed under the MIT License (MIT), see
|
|
415
415
|
http://jedwatson.github.io/classnames
|
|
416
416
|
*/
|
|
417
|
-
var
|
|
418
|
-
function
|
|
419
|
-
return
|
|
417
|
+
var _r;
|
|
418
|
+
function Ee() {
|
|
419
|
+
return _r || (_r = 1, function(e) {
|
|
420
420
|
(function() {
|
|
421
421
|
var n = {}.hasOwnProperty;
|
|
422
422
|
function a() {
|
|
@@ -445,10 +445,10 @@ function Ze() {
|
|
|
445
445
|
}
|
|
446
446
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
447
447
|
})();
|
|
448
|
-
}(
|
|
448
|
+
}(cr)), cr.exports;
|
|
449
449
|
}
|
|
450
|
-
var
|
|
451
|
-
const
|
|
450
|
+
var Ue = Ee();
|
|
451
|
+
const fr = /* @__PURE__ */ Ze(Ue), T = {
|
|
452
452
|
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
453
453
|
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
454
454
|
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
@@ -460,7 +460,7 @@ const cr = /* @__PURE__ */ je(Ee), H = {
|
|
|
460
460
|
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
461
461
|
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
462
462
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
463
|
-
},
|
|
463
|
+
}, V = "purpur-badge", m = {
|
|
464
464
|
ATTENTION: "attention",
|
|
465
465
|
BLACK_FRIDAY: "black-friday",
|
|
466
466
|
ERROR: "error",
|
|
@@ -470,29 +470,29 @@ const cr = /* @__PURE__ */ je(Ee), H = {
|
|
|
470
470
|
SPECIAL: "special",
|
|
471
471
|
SUCCESS: "success",
|
|
472
472
|
WARNING: "warning"
|
|
473
|
-
},
|
|
473
|
+
}, Ie = (e) => {
|
|
474
474
|
switch (e) {
|
|
475
475
|
case m.ATTENTION:
|
|
476
476
|
case m.SPECIAL:
|
|
477
|
-
return
|
|
477
|
+
return Me;
|
|
478
478
|
case m.INFORMATION:
|
|
479
479
|
return Oe;
|
|
480
480
|
case m.GENERAL:
|
|
481
|
-
return
|
|
481
|
+
return ke;
|
|
482
482
|
case m.SUCCESS:
|
|
483
|
-
return
|
|
483
|
+
return Be;
|
|
484
484
|
case m.WARNING:
|
|
485
|
-
return
|
|
485
|
+
return Fe;
|
|
486
486
|
case m.ERROR:
|
|
487
|
-
return
|
|
487
|
+
return Ne;
|
|
488
488
|
case m.NEUTRAL:
|
|
489
|
-
return Me;
|
|
490
|
-
case m.BLACK_FRIDAY:
|
|
491
489
|
return Ge;
|
|
490
|
+
case m.BLACK_FRIDAY:
|
|
491
|
+
return je;
|
|
492
492
|
default:
|
|
493
493
|
return;
|
|
494
494
|
}
|
|
495
|
-
},
|
|
495
|
+
}, qe = ({
|
|
496
496
|
children: e,
|
|
497
497
|
showIcon: n = !0,
|
|
498
498
|
iconAllyTitle: a,
|
|
@@ -501,81 +501,86 @@ const cr = /* @__PURE__ */ je(Ee), H = {
|
|
|
501
501
|
className: r = "",
|
|
502
502
|
...t
|
|
503
503
|
}) => {
|
|
504
|
-
const i =
|
|
504
|
+
const i = Ie(o), l = fr([r, T[V], T[`${V}--${o}`]]);
|
|
505
505
|
return /* @__PURE__ */ c("span", { className: l, "data-testid": p, ...t, children: [
|
|
506
506
|
n && i && /* @__PURE__ */ u(
|
|
507
|
-
|
|
507
|
+
jr,
|
|
508
508
|
{
|
|
509
509
|
"data-testid": `${p}-icon`,
|
|
510
510
|
allyTitle: a,
|
|
511
511
|
size: "xs",
|
|
512
512
|
svg: i,
|
|
513
|
-
className:
|
|
513
|
+
className: fr(T[`${V}__icon`])
|
|
514
514
|
}
|
|
515
515
|
),
|
|
516
516
|
e
|
|
517
517
|
] });
|
|
518
|
-
},
|
|
518
|
+
}, ze = {
|
|
519
519
|
"purpur-card-badge": "_purpur-card-badge_k9ziu_1"
|
|
520
|
-
},
|
|
520
|
+
}, Re = _.bind(ze), Le = "purpur-card-badge", Pe = ({
|
|
521
521
|
["data-testid"]: e = "purpur-card-badge",
|
|
522
522
|
variant: n,
|
|
523
523
|
text: a
|
|
524
524
|
}) => n && a ? /* @__PURE__ */ u(
|
|
525
|
-
|
|
525
|
+
qe,
|
|
526
526
|
{
|
|
527
|
-
className:
|
|
527
|
+
className: Re(Le),
|
|
528
528
|
variant: n,
|
|
529
529
|
showIcon: !1,
|
|
530
530
|
"data-testid": e,
|
|
531
531
|
children: a
|
|
532
532
|
}
|
|
533
|
-
) : null,
|
|
533
|
+
) : null, De = {
|
|
534
534
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
535
|
-
},
|
|
535
|
+
}, He = _.bind(De), Te = "purpur-card-content", Ve = ({
|
|
536
536
|
["data-testid"]: e = "purpur-card-content",
|
|
537
|
-
children: n
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
"purpur-card-content-container
|
|
542
|
-
"purpur-card-content-container--
|
|
543
|
-
"purpur-card-content-container--
|
|
544
|
-
|
|
537
|
+
children: n,
|
|
538
|
+
className: a,
|
|
539
|
+
...o
|
|
540
|
+
}) => /* @__PURE__ */ u("div", { className: He(Te, a), "data-testid": e, ...o, children: n }), We = {
|
|
541
|
+
"purpur-card-content-container": "_purpur-card-content-container_5c1mb_1",
|
|
542
|
+
"purpur-card-content-container--full-height": "_purpur-card-content-container--full-height_5c1mb_6",
|
|
543
|
+
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_5c1mb_14",
|
|
544
|
+
"purpur-card-content-container--gap-size--sm": "_purpur-card-content-container--gap-size--sm_5c1mb_22",
|
|
545
|
+
"purpur-card-content-container--gap-size--md": "_purpur-card-content-container--gap-size--md_5c1mb_25",
|
|
546
|
+
"purpur-card-content-container--gap-size--lg": "_purpur-card-content-container--gap-size--lg_5c1mb_28"
|
|
547
|
+
}, Ke = _.bind(We), j = "purpur-card-content-container", Ye = ({
|
|
545
548
|
["data-testid"]: e = "purpur-card-content-container",
|
|
546
549
|
children: n,
|
|
547
550
|
className: a,
|
|
548
551
|
isFooter: o = !1,
|
|
549
|
-
|
|
550
|
-
|
|
552
|
+
fullHeight: p = !1,
|
|
553
|
+
gapSize: r = "md",
|
|
554
|
+
...t
|
|
551
555
|
}) => /* @__PURE__ */ u(
|
|
552
556
|
"div",
|
|
553
557
|
{
|
|
554
|
-
className:
|
|
555
|
-
|
|
558
|
+
className: Ke([
|
|
559
|
+
j,
|
|
556
560
|
a,
|
|
557
|
-
`${
|
|
561
|
+
`${j}--gap-size--${r}`,
|
|
558
562
|
{
|
|
559
|
-
[`${
|
|
563
|
+
[`${j}--full-height`]: p,
|
|
564
|
+
[`${j}--footer`]: o
|
|
560
565
|
}
|
|
561
566
|
]),
|
|
562
567
|
"data-testid": e,
|
|
563
|
-
...
|
|
568
|
+
...t,
|
|
564
569
|
children: n
|
|
565
570
|
}
|
|
566
571
|
);
|
|
567
|
-
function
|
|
572
|
+
function Je(e) {
|
|
568
573
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
569
574
|
}
|
|
570
|
-
var
|
|
575
|
+
var hr = { exports: {} };
|
|
571
576
|
/*!
|
|
572
577
|
Copyright (c) 2018 Jed Watson.
|
|
573
578
|
Licensed under the MIT License (MIT), see
|
|
574
579
|
http://jedwatson.github.io/classnames
|
|
575
580
|
*/
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
-
return
|
|
581
|
+
var gr;
|
|
582
|
+
function Qe() {
|
|
583
|
+
return gr || (gr = 1, function(e) {
|
|
579
584
|
(function() {
|
|
580
585
|
var n = {}.hasOwnProperty;
|
|
581
586
|
function a() {
|
|
@@ -604,39 +609,39 @@ function Je() {
|
|
|
604
609
|
}
|
|
605
610
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
606
611
|
})();
|
|
607
|
-
}(
|
|
612
|
+
}(hr)), hr.exports;
|
|
608
613
|
}
|
|
609
|
-
var
|
|
610
|
-
const
|
|
614
|
+
var Xe = Qe();
|
|
615
|
+
const mr = /* @__PURE__ */ Je(Xe), rt = "_rotate_12t9p_1", et = "_dash_12t9p_1", $ = {
|
|
611
616
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
612
|
-
rotate:
|
|
617
|
+
rotate: rt,
|
|
613
618
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
614
619
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
615
620
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
616
621
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
617
622
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
618
623
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
619
|
-
dash:
|
|
624
|
+
dash: et,
|
|
620
625
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
621
626
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
622
|
-
}, A = "purpur-spinner",
|
|
627
|
+
}, A = "purpur-spinner", tt = {
|
|
623
628
|
SM: "sm"
|
|
624
|
-
},
|
|
629
|
+
}, at = ({
|
|
625
630
|
["data-testid"]: e,
|
|
626
631
|
disabled: n = !1,
|
|
627
632
|
negative: a = !1,
|
|
628
|
-
size: o =
|
|
633
|
+
size: o = tt.SM,
|
|
629
634
|
...p
|
|
630
635
|
}) => /* @__PURE__ */ u(
|
|
631
636
|
"div",
|
|
632
637
|
{
|
|
633
|
-
className:
|
|
638
|
+
className: mr([$[A], $[`${A}--${o}`]]),
|
|
634
639
|
"data-testid": e,
|
|
635
640
|
...p,
|
|
636
641
|
children: /* @__PURE__ */ u("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ u(
|
|
637
642
|
"circle",
|
|
638
643
|
{
|
|
639
|
-
className:
|
|
644
|
+
className: mr($[`${A}__circle`], {
|
|
640
645
|
[$[`${A}__circle--disabled`]]: n,
|
|
641
646
|
[$[`${A}__circle--negative`]]: a
|
|
642
647
|
}),
|
|
@@ -646,7 +651,7 @@ const hr = /* @__PURE__ */ Ye(Qe), Xe = "_rotate_12t9p_1", rt = "_dash_12t9p_1",
|
|
|
646
651
|
}
|
|
647
652
|
) })
|
|
648
653
|
}
|
|
649
|
-
),
|
|
654
|
+
), it = {
|
|
650
655
|
"purpur-card-cta--button-styling": "_purpur-card-cta--button-styling_1wc0z_1",
|
|
651
656
|
"purpur-card-cta--button-styling--xs": "_purpur-card-cta--button-styling--xs_1wc0z_33",
|
|
652
657
|
"purpur-card-cta--button-styling--icon-only": "_purpur-card-cta--button-styling--icon-only_1wc0z_36",
|
|
@@ -665,7 +670,7 @@ const hr = /* @__PURE__ */ Ye(Qe), Xe = "_rotate_12t9p_1", rt = "_dash_12t9p_1",
|
|
|
665
670
|
"purpur-card-cta--secondary": "_purpur-card-cta--secondary_1wc0z_131",
|
|
666
671
|
"purpur-card-cta--disabled": "_purpur-card-cta--disabled_1wc0z_131",
|
|
667
672
|
"purpur-card-cta--text": "_purpur-card-cta--text_1wc0z_139"
|
|
668
|
-
},
|
|
673
|
+
}, nt = _.bind(it), v = "purpur-card-cta", ot = ({
|
|
669
674
|
["data-testid"]: e = "purpur-card-cta",
|
|
670
675
|
className: n,
|
|
671
676
|
children: a,
|
|
@@ -678,7 +683,7 @@ const hr = /* @__PURE__ */ Ye(Qe), Xe = "_rotate_12t9p_1", rt = "_dash_12t9p_1",
|
|
|
678
683
|
}) => /* @__PURE__ */ u(
|
|
679
684
|
"div",
|
|
680
685
|
{
|
|
681
|
-
className: `${
|
|
686
|
+
className: `${nt([
|
|
682
687
|
v,
|
|
683
688
|
n,
|
|
684
689
|
{
|
|
@@ -693,25 +698,25 @@ const hr = /* @__PURE__ */ Ye(Qe), Xe = "_rotate_12t9p_1", rt = "_dash_12t9p_1",
|
|
|
693
698
|
])} ${v}`,
|
|
694
699
|
"data-testid": e,
|
|
695
700
|
...l,
|
|
696
|
-
children: r ? /* @__PURE__ */ u(
|
|
701
|
+
children: r ? /* @__PURE__ */ u(at, { "data-testid": `${e}-spinner`, size: "xs", disabled: o }) : /* @__PURE__ */ c(Pr, { children: [
|
|
697
702
|
p === "left" && a,
|
|
698
703
|
t,
|
|
699
704
|
p === "right" && a
|
|
700
705
|
] })
|
|
701
706
|
}
|
|
702
707
|
);
|
|
703
|
-
function
|
|
708
|
+
function pt(e) {
|
|
704
709
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
705
710
|
}
|
|
706
|
-
var
|
|
711
|
+
var vr = { exports: {} };
|
|
707
712
|
/*!
|
|
708
713
|
Copyright (c) 2018 Jed Watson.
|
|
709
714
|
Licensed under the MIT License (MIT), see
|
|
710
715
|
http://jedwatson.github.io/classnames
|
|
711
716
|
*/
|
|
712
|
-
var
|
|
713
|
-
function
|
|
714
|
-
return
|
|
717
|
+
var yr;
|
|
718
|
+
function ut() {
|
|
719
|
+
return yr || (yr = 1, function(e) {
|
|
715
720
|
(function() {
|
|
716
721
|
var n = {}.hasOwnProperty;
|
|
717
722
|
function a() {
|
|
@@ -740,10 +745,10 @@ function pt() {
|
|
|
740
745
|
}
|
|
741
746
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
742
747
|
})();
|
|
743
|
-
}(
|
|
748
|
+
}(vr)), vr.exports;
|
|
744
749
|
}
|
|
745
|
-
var
|
|
746
|
-
const
|
|
750
|
+
var lt = ut();
|
|
751
|
+
const st = /* @__PURE__ */ pt(lt), dt = {
|
|
747
752
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
748
753
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
749
754
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -751,26 +756,26 @@ const lt = /* @__PURE__ */ ot(ut), st = {
|
|
|
751
756
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
752
757
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
753
758
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
754
|
-
},
|
|
759
|
+
}, ct = st.bind(dt), wr = "purpur-icon", _t = "md", ft = (e) => e.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), ht = ({ content: e = "", title: n } = {}) => {
|
|
755
760
|
const a = [
|
|
756
761
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
757
762
|
{ name: "fill", value: "currentColor" },
|
|
758
763
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
759
764
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
760
765
|
], o = n ? `<title>${n}</title>` : "";
|
|
761
|
-
return `<svg ${
|
|
762
|
-
},
|
|
766
|
+
return `<svg ${ft(a)}>${o}${e}</svg>`;
|
|
767
|
+
}, gt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Zr = ({
|
|
763
768
|
["data-testid"]: e,
|
|
764
769
|
svg: n,
|
|
765
770
|
allyTitle: a,
|
|
766
771
|
className: o,
|
|
767
|
-
size: p =
|
|
772
|
+
size: p = _t,
|
|
768
773
|
...r
|
|
769
774
|
}) => {
|
|
770
|
-
const t =
|
|
771
|
-
content:
|
|
775
|
+
const t = ht({
|
|
776
|
+
content: gt(n.svg),
|
|
772
777
|
title: a
|
|
773
|
-
}), i =
|
|
778
|
+
}), i = ct(o, wr, `${wr}--${p}`);
|
|
774
779
|
return /* @__PURE__ */ u(
|
|
775
780
|
"span",
|
|
776
781
|
{
|
|
@@ -781,26 +786,26 @@ const lt = /* @__PURE__ */ ot(ut), st = {
|
|
|
781
786
|
}
|
|
782
787
|
);
|
|
783
788
|
};
|
|
784
|
-
|
|
785
|
-
const
|
|
789
|
+
Zr.displayName = "Icon";
|
|
790
|
+
const mt = {
|
|
786
791
|
name: "checkmark",
|
|
787
792
|
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>',
|
|
788
793
|
keywords: ["checkmark"],
|
|
789
794
|
category: "utility"
|
|
790
|
-
},
|
|
791
|
-
|
|
792
|
-
function
|
|
795
|
+
}, Er = (e) => /* @__PURE__ */ u(Zr, { ...e, svg: mt });
|
|
796
|
+
Er.displayName = "IconCheckmark";
|
|
797
|
+
function vt(e) {
|
|
793
798
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
794
799
|
}
|
|
795
|
-
var
|
|
800
|
+
var xr = { exports: {} };
|
|
796
801
|
/*!
|
|
797
802
|
Copyright (c) 2018 Jed Watson.
|
|
798
803
|
Licensed under the MIT License (MIT), see
|
|
799
804
|
http://jedwatson.github.io/classnames
|
|
800
805
|
*/
|
|
801
|
-
var
|
|
802
|
-
function
|
|
803
|
-
return
|
|
806
|
+
var br;
|
|
807
|
+
function yt() {
|
|
808
|
+
return br || (br = 1, function(e) {
|
|
804
809
|
(function() {
|
|
805
810
|
var n = {}.hasOwnProperty;
|
|
806
811
|
function a() {
|
|
@@ -829,10 +834,10 @@ function vt() {
|
|
|
829
834
|
}
|
|
830
835
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
831
836
|
})();
|
|
832
|
-
}(
|
|
837
|
+
}(xr)), xr.exports;
|
|
833
838
|
}
|
|
834
|
-
var
|
|
835
|
-
const
|
|
839
|
+
var wt = yt();
|
|
840
|
+
const xt = /* @__PURE__ */ vt(wt), F = {
|
|
836
841
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
837
842
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
838
843
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -847,19 +852,19 @@ const wt = /* @__PURE__ */ mt(yt), F = {
|
|
|
847
852
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
848
853
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
849
854
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
850
|
-
},
|
|
855
|
+
}, bt = {
|
|
851
856
|
PARAGRAPH100: "paragraph-100"
|
|
852
|
-
}, B = "purpur-paragraph",
|
|
857
|
+
}, B = "purpur-paragraph", rr = ({
|
|
853
858
|
["data-testid"]: e,
|
|
854
859
|
children: n,
|
|
855
860
|
className: a,
|
|
856
861
|
disabled: o,
|
|
857
862
|
enableHyphenation: p = !1,
|
|
858
863
|
negative: r = !1,
|
|
859
|
-
variant: t =
|
|
864
|
+
variant: t = bt.PARAGRAPH100,
|
|
860
865
|
...i
|
|
861
866
|
}) => {
|
|
862
|
-
const l =
|
|
867
|
+
const l = xt([
|
|
863
868
|
a,
|
|
864
869
|
F[B],
|
|
865
870
|
F[`${B}--${t}`],
|
|
@@ -871,26 +876,27 @@ const wt = /* @__PURE__ */ mt(yt), F = {
|
|
|
871
876
|
]);
|
|
872
877
|
return /* @__PURE__ */ u("p", { ...i, className: l, "data-testid": e, children: n });
|
|
873
878
|
};
|
|
874
|
-
|
|
875
|
-
const
|
|
876
|
-
"purpur-card-feature-list": "_purpur-card-feature-
|
|
877
|
-
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-
|
|
878
|
-
|
|
879
|
+
rr.displayName = "Paragraph";
|
|
880
|
+
const Ct = {
|
|
881
|
+
"purpur-card-feature-list": "_purpur-card-feature-list_1hnss_1",
|
|
882
|
+
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_1hnss_7",
|
|
883
|
+
"purpur-card-feature-list__icon": "_purpur-card-feature-list__icon_1hnss_12"
|
|
884
|
+
}, W = _.bind(Ct), K = "purpur-card-feature-list", St = ({
|
|
879
885
|
["data-testid"]: e = "purpur-card-feature-list",
|
|
880
886
|
listItems: n
|
|
881
|
-
}) => n && n.length > 0 ? /* @__PURE__ */ u("ul", { className:
|
|
887
|
+
}) => n && n.length > 0 ? /* @__PURE__ */ u("ul", { className: W(K), "data-testid": e, children: n.map((a) => /* @__PURE__ */ c(
|
|
882
888
|
"li",
|
|
883
889
|
{
|
|
884
|
-
className:
|
|
890
|
+
className: W(`${K}__list-item`),
|
|
885
891
|
"data-testid": `${e}-item`,
|
|
886
892
|
children: [
|
|
887
|
-
/* @__PURE__ */ u(
|
|
888
|
-
/* @__PURE__ */ u(
|
|
893
|
+
/* @__PURE__ */ u(Er, { size: "xs", className: W(`${K}__icon`) }),
|
|
894
|
+
/* @__PURE__ */ u(rr, { children: a })
|
|
889
895
|
]
|
|
890
896
|
},
|
|
891
897
|
a
|
|
892
898
|
)) }) : null;
|
|
893
|
-
function
|
|
899
|
+
function $t(e) {
|
|
894
900
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
895
901
|
}
|
|
896
902
|
var Cr = { exports: {} };
|
|
@@ -900,7 +906,7 @@ var Cr = { exports: {} };
|
|
|
900
906
|
http://jedwatson.github.io/classnames
|
|
901
907
|
*/
|
|
902
908
|
var Sr;
|
|
903
|
-
function
|
|
909
|
+
function At() {
|
|
904
910
|
return Sr || (Sr = 1, function(e) {
|
|
905
911
|
(function() {
|
|
906
912
|
var n = {}.hasOwnProperty;
|
|
@@ -932,8 +938,8 @@ function $t() {
|
|
|
932
938
|
})();
|
|
933
939
|
}(Cr)), Cr.exports;
|
|
934
940
|
}
|
|
935
|
-
var
|
|
936
|
-
const
|
|
941
|
+
var Ft = At();
|
|
942
|
+
const Bt = /* @__PURE__ */ $t(Ft), Z = {
|
|
937
943
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
938
944
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
939
945
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -949,30 +955,30 @@ const Ft = /* @__PURE__ */ St(At), j = {
|
|
|
949
955
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
950
956
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
951
957
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
952
|
-
},
|
|
958
|
+
}, kt = {
|
|
953
959
|
TITLE100: "title-100"
|
|
954
|
-
},
|
|
960
|
+
}, E = "purpur-heading", Ur = ({
|
|
955
961
|
children: e,
|
|
956
962
|
className: n = "",
|
|
957
963
|
enableHyphenation: a = !1,
|
|
958
964
|
negative: o = !1,
|
|
959
965
|
tag: p,
|
|
960
|
-
variant: r =
|
|
966
|
+
variant: r = kt.TITLE100,
|
|
961
967
|
...t
|
|
962
968
|
}) => {
|
|
963
|
-
const i = p, l =
|
|
969
|
+
const i = p, l = Bt([
|
|
964
970
|
n,
|
|
965
|
-
|
|
966
|
-
|
|
971
|
+
Z[E],
|
|
972
|
+
Z[`${E}--${r}`],
|
|
967
973
|
{
|
|
968
|
-
[
|
|
969
|
-
[
|
|
974
|
+
[Z[`${E}--hyphens`]]: a,
|
|
975
|
+
[Z[`${E}--negative`]]: o
|
|
970
976
|
}
|
|
971
977
|
]);
|
|
972
978
|
return /* @__PURE__ */ u(i, { className: l, ...t, children: e });
|
|
973
979
|
};
|
|
974
|
-
|
|
975
|
-
const
|
|
980
|
+
Ur.displayName = "Heading";
|
|
981
|
+
const Nt = {
|
|
976
982
|
"purpur-card-heading": "_purpur-card-heading_j3j6u_1",
|
|
977
983
|
"purpur-card-heading__header": "_purpur-card-heading__header_j3j6u_6",
|
|
978
984
|
"purpur-card-heading__heading": "_purpur-card-heading__heading_j3j6u_11",
|
|
@@ -982,7 +988,7 @@ const kt = {
|
|
|
982
988
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_t6ena_5",
|
|
983
989
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_t6ena_18",
|
|
984
990
|
"purpur-card-trigger-item": "_purpur-card-trigger-item_t6ena_1"
|
|
985
|
-
}, $r = _.bind(Ot), w = "purpur-card-trigger-item",
|
|
991
|
+
}, $r = _.bind(Ot), w = "purpur-card-trigger-item", Mt = ({
|
|
986
992
|
["data-testid"]: e = "purpur-card-trigger-item",
|
|
987
993
|
["aria-label"]: n,
|
|
988
994
|
disabled: a = !1,
|
|
@@ -1030,7 +1036,7 @@ const kt = {
|
|
|
1030
1036
|
children: r
|
|
1031
1037
|
}
|
|
1032
1038
|
);
|
|
1033
|
-
},
|
|
1039
|
+
}, U = _.bind(Nt), b = "purpur-card-heading", Gt = ({
|
|
1034
1040
|
["data-testid"]: e = "purpur-card-heading",
|
|
1035
1041
|
["aria-label"]: n,
|
|
1036
1042
|
title: a,
|
|
@@ -1041,33 +1047,33 @@ const kt = {
|
|
|
1041
1047
|
onClick: i = void 0,
|
|
1042
1048
|
href: l = void 0,
|
|
1043
1049
|
disabled: x = !1,
|
|
1044
|
-
linkElement:
|
|
1045
|
-
variant:
|
|
1046
|
-
...
|
|
1050
|
+
linkElement: z = "a",
|
|
1051
|
+
variant: R = "title-100",
|
|
1052
|
+
...L
|
|
1047
1053
|
}) => {
|
|
1048
|
-
const
|
|
1054
|
+
const O = U(b, {
|
|
1049
1055
|
[`${b}--is-interactive`]: i || l,
|
|
1050
1056
|
[`${b}--disabled`]: x
|
|
1051
1057
|
});
|
|
1052
|
-
return /* @__PURE__ */ c("div", { className:
|
|
1053
|
-
/* @__PURE__ */ c("div", { className:
|
|
1054
|
-
o && /* @__PURE__ */ u("div", { className:
|
|
1058
|
+
return /* @__PURE__ */ c("div", { className: O, "data-testid": e, children: [
|
|
1059
|
+
/* @__PURE__ */ c("div", { className: U(`${b}__header`), children: [
|
|
1060
|
+
o && /* @__PURE__ */ u("div", { className: U(`${b}__icon`), children: o }),
|
|
1055
1061
|
/* @__PURE__ */ u(
|
|
1056
|
-
|
|
1062
|
+
Ur,
|
|
1057
1063
|
{
|
|
1058
1064
|
tag: r,
|
|
1059
|
-
className:
|
|
1060
|
-
variant:
|
|
1065
|
+
className: U(`${b}__heading`),
|
|
1066
|
+
variant: R,
|
|
1061
1067
|
enableHyphenation: t,
|
|
1062
|
-
...
|
|
1068
|
+
...L,
|
|
1063
1069
|
children: i || l ? /* @__PURE__ */ u(
|
|
1064
|
-
|
|
1070
|
+
Mt,
|
|
1065
1071
|
{
|
|
1066
1072
|
"aria-label": n,
|
|
1067
1073
|
disabled: x,
|
|
1068
1074
|
href: l,
|
|
1069
1075
|
onClick: i,
|
|
1070
|
-
linkElement:
|
|
1076
|
+
linkElement: z,
|
|
1071
1077
|
children: a
|
|
1072
1078
|
}
|
|
1073
1079
|
) : a
|
|
@@ -1076,31 +1082,41 @@ const kt = {
|
|
|
1076
1082
|
] }),
|
|
1077
1083
|
p
|
|
1078
1084
|
] });
|
|
1079
|
-
},
|
|
1085
|
+
}, jt = {
|
|
1080
1086
|
"purpur-card-media": "_purpur-card-media_udc1o_1"
|
|
1081
|
-
},
|
|
1087
|
+
}, Zt = _.bind(jt), Et = "purpur-card-media", Ut = ({
|
|
1082
1088
|
["data-testid"]: e = "purpur-card-media",
|
|
1083
1089
|
className: n,
|
|
1084
1090
|
children: a,
|
|
1085
1091
|
...o
|
|
1086
|
-
}) => /* @__PURE__ */ u("div", { ...o, className:
|
|
1087
|
-
"purpur-card-media-layout": "_purpur-card-media-
|
|
1088
|
-
|
|
1092
|
+
}) => /* @__PURE__ */ u("div", { ...o, className: Zt([Et, n]), "data-testid": e, children: a }), It = {
|
|
1093
|
+
"purpur-card-media-layout": "_purpur-card-media-layout_1tkaa_1",
|
|
1094
|
+
"purpur-card-media-layout--image-top": "_purpur-card-media-layout--image-top_1tkaa_11"
|
|
1095
|
+
}, qt = _.bind(It), Ar = "purpur-card-media-layout", zt = ({
|
|
1089
1096
|
["data-testid"]: e = "purpur-card-media-layout",
|
|
1090
1097
|
className: n,
|
|
1091
1098
|
children: a,
|
|
1092
|
-
|
|
1093
|
-
|
|
1099
|
+
imageTop: o = !1,
|
|
1100
|
+
...p
|
|
1101
|
+
}) => /* @__PURE__ */ u(
|
|
1102
|
+
"div",
|
|
1103
|
+
{
|
|
1104
|
+
...p,
|
|
1105
|
+
className: qt(Ar, n, { [`${Ar}--image-top`]: o }),
|
|
1106
|
+
"data-testid": e,
|
|
1107
|
+
children: a
|
|
1108
|
+
}
|
|
1109
|
+
), Rt = {
|
|
1094
1110
|
"purpur-card-overline": "_purpur-card-overline_qhfj0_1"
|
|
1095
1111
|
}, Lt = _.bind(Rt), Pt = "purpur-card-overline", Dt = ({
|
|
1096
1112
|
["data-testid"]: e = "purpur-card-overline",
|
|
1097
1113
|
overline: n
|
|
1098
|
-
}) => n ? /* @__PURE__ */ u(
|
|
1114
|
+
}) => n ? /* @__PURE__ */ u(rr, { variant: "overline-100", className: Lt(Pt), "data-testid": e, children: n }) : null, Ht = {
|
|
1099
1115
|
"purpur-card-root": "_purpur-card-root_eupww_1",
|
|
1100
1116
|
"purpur-card-root--primary": "_purpur-card-root--primary_eupww_7",
|
|
1101
1117
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_eupww_10",
|
|
1102
1118
|
"purpur-card-root--full-height": "_purpur-card-root--full-height_eupww_13"
|
|
1103
|
-
}, Tt = _.bind(Ht),
|
|
1119
|
+
}, Tt = _.bind(Ht), Y = "purpur-card-root", Ir = Mr(
|
|
1104
1120
|
({
|
|
1105
1121
|
["data-testid"]: e = "purpur-card-root",
|
|
1106
1122
|
children: n,
|
|
@@ -1110,51 +1126,51 @@ const kt = {
|
|
|
1110
1126
|
...r
|
|
1111
1127
|
}, t) => {
|
|
1112
1128
|
const i = Tt([
|
|
1113
|
-
|
|
1129
|
+
Y,
|
|
1114
1130
|
a,
|
|
1115
1131
|
{
|
|
1116
|
-
[`${
|
|
1117
|
-
[`${
|
|
1132
|
+
[`${Y}--${p}`]: p,
|
|
1133
|
+
[`${Y}--full-height`]: o
|
|
1118
1134
|
}
|
|
1119
1135
|
]);
|
|
1120
1136
|
return /* @__PURE__ */ u("div", { className: i, "data-testid": e, ref: t, ...r, children: n });
|
|
1121
1137
|
}
|
|
1122
1138
|
);
|
|
1123
|
-
|
|
1124
|
-
const
|
|
1125
|
-
const o =
|
|
1139
|
+
Ir.displayName = "CardRoot";
|
|
1140
|
+
const J = _.bind(ge), Q = "purpur-card", f = ({ children: e, className: n, ...a }) => {
|
|
1141
|
+
const o = J([Q, n]);
|
|
1126
1142
|
return /* @__PURE__ */ u(
|
|
1127
1143
|
"div",
|
|
1128
1144
|
{
|
|
1129
|
-
className:
|
|
1130
|
-
[`${
|
|
1145
|
+
className: J(`${Q}__container`, {
|
|
1146
|
+
[`${Q}__container--full-height`]: a.fullHeight
|
|
1131
1147
|
}),
|
|
1132
|
-
children: /* @__PURE__ */ u(
|
|
1148
|
+
children: /* @__PURE__ */ u(Ir, { className: J(o), ...a, children: e })
|
|
1133
1149
|
}
|
|
1134
1150
|
);
|
|
1135
1151
|
};
|
|
1136
|
-
f.Badge =
|
|
1137
|
-
f.Content =
|
|
1138
|
-
f.ContentContainer =
|
|
1139
|
-
f.Cta =
|
|
1140
|
-
f.FeatureList =
|
|
1152
|
+
f.Badge = Pe;
|
|
1153
|
+
f.Content = Ve;
|
|
1154
|
+
f.ContentContainer = Ye;
|
|
1155
|
+
f.Cta = ot;
|
|
1156
|
+
f.FeatureList = St;
|
|
1141
1157
|
f.Overline = Dt;
|
|
1142
|
-
f.Heading =
|
|
1143
|
-
f.Media =
|
|
1158
|
+
f.Heading = Gt;
|
|
1159
|
+
f.Media = Ut;
|
|
1144
1160
|
f.MediaLayout = zt;
|
|
1145
1161
|
f.displayName = "Card";
|
|
1146
1162
|
function Vt(e) {
|
|
1147
1163
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1148
1164
|
}
|
|
1149
|
-
var
|
|
1165
|
+
var Fr = { exports: {} };
|
|
1150
1166
|
/*!
|
|
1151
1167
|
Copyright (c) 2018 Jed Watson.
|
|
1152
1168
|
Licensed under the MIT License (MIT), see
|
|
1153
1169
|
http://jedwatson.github.io/classnames
|
|
1154
1170
|
*/
|
|
1155
|
-
var
|
|
1171
|
+
var Br;
|
|
1156
1172
|
function Wt() {
|
|
1157
|
-
return
|
|
1173
|
+
return Br || (Br = 1, function(e) {
|
|
1158
1174
|
(function() {
|
|
1159
1175
|
var n = {}.hasOwnProperty;
|
|
1160
1176
|
function a() {
|
|
@@ -1183,10 +1199,10 @@ function Wt() {
|
|
|
1183
1199
|
}
|
|
1184
1200
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1185
1201
|
})();
|
|
1186
|
-
}(
|
|
1202
|
+
}(Fr)), Fr.exports;
|
|
1187
1203
|
}
|
|
1188
1204
|
var Kt = Wt();
|
|
1189
|
-
const Yt = /* @__PURE__ */ Vt(Kt),
|
|
1205
|
+
const Yt = /* @__PURE__ */ Vt(Kt), I = {
|
|
1190
1206
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
1191
1207
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
1192
1208
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -1204,7 +1220,7 @@ const Yt = /* @__PURE__ */ Vt(Kt), U = {
|
|
|
1204
1220
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
1205
1221
|
}, Jt = {
|
|
1206
1222
|
TITLE100: "title-100"
|
|
1207
|
-
},
|
|
1223
|
+
}, q = "purpur-heading", qr = ({
|
|
1208
1224
|
children: e,
|
|
1209
1225
|
className: n = "",
|
|
1210
1226
|
enableHyphenation: a = !1,
|
|
@@ -1215,28 +1231,28 @@ const Yt = /* @__PURE__ */ Vt(Kt), U = {
|
|
|
1215
1231
|
}) => {
|
|
1216
1232
|
const i = p, l = Yt([
|
|
1217
1233
|
n,
|
|
1218
|
-
|
|
1219
|
-
|
|
1234
|
+
I[q],
|
|
1235
|
+
I[`${q}--${r}`],
|
|
1220
1236
|
{
|
|
1221
|
-
[
|
|
1222
|
-
[
|
|
1237
|
+
[I[`${q}--hyphens`]]: a,
|
|
1238
|
+
[I[`${q}--negative`]]: o
|
|
1223
1239
|
}
|
|
1224
1240
|
]);
|
|
1225
1241
|
return /* @__PURE__ */ u(i, { className: l, ...t, children: e });
|
|
1226
1242
|
};
|
|
1227
|
-
|
|
1243
|
+
qr.displayName = "Heading";
|
|
1228
1244
|
function Qt(e) {
|
|
1229
1245
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1230
1246
|
}
|
|
1231
|
-
var
|
|
1247
|
+
var kr = { exports: {} };
|
|
1232
1248
|
/*!
|
|
1233
1249
|
Copyright (c) 2018 Jed Watson.
|
|
1234
1250
|
Licensed under the MIT License (MIT), see
|
|
1235
1251
|
http://jedwatson.github.io/classnames
|
|
1236
1252
|
*/
|
|
1237
|
-
var
|
|
1253
|
+
var Nr;
|
|
1238
1254
|
function Xt() {
|
|
1239
|
-
return
|
|
1255
|
+
return Nr || (Nr = 1, function(e) {
|
|
1240
1256
|
(function() {
|
|
1241
1257
|
var n = {}.hasOwnProperty;
|
|
1242
1258
|
function a() {
|
|
@@ -1265,7 +1281,7 @@ function Xt() {
|
|
|
1265
1281
|
}
|
|
1266
1282
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1267
1283
|
})();
|
|
1268
|
-
}(
|
|
1284
|
+
}(kr)), kr.exports;
|
|
1269
1285
|
}
|
|
1270
1286
|
var ra = Xt();
|
|
1271
1287
|
const ea = /* @__PURE__ */ Qt(ra), k = {
|
|
@@ -1285,7 +1301,7 @@ const ea = /* @__PURE__ */ Qt(ra), k = {
|
|
|
1285
1301
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1286
1302
|
}, ta = {
|
|
1287
1303
|
PARAGRAPH100: "paragraph-100"
|
|
1288
|
-
},
|
|
1304
|
+
}, N = "purpur-paragraph", zr = ({
|
|
1289
1305
|
["data-testid"]: e,
|
|
1290
1306
|
children: n,
|
|
1291
1307
|
className: a,
|
|
@@ -1297,21 +1313,21 @@ const ea = /* @__PURE__ */ Qt(ra), k = {
|
|
|
1297
1313
|
}) => {
|
|
1298
1314
|
const l = ea([
|
|
1299
1315
|
a,
|
|
1300
|
-
k[
|
|
1301
|
-
k[`${
|
|
1316
|
+
k[N],
|
|
1317
|
+
k[`${N}--${t}`],
|
|
1302
1318
|
{
|
|
1303
|
-
[k[`${
|
|
1304
|
-
[k[`${
|
|
1305
|
-
[k[`${
|
|
1319
|
+
[k[`${N}--hyphens`]]: p,
|
|
1320
|
+
[k[`${N}--disabled`]]: o,
|
|
1321
|
+
[k[`${N}--negative`]]: r
|
|
1306
1322
|
}
|
|
1307
1323
|
]);
|
|
1308
1324
|
return /* @__PURE__ */ u("p", { ...i, className: l, "data-testid": e, children: n });
|
|
1309
1325
|
};
|
|
1310
|
-
|
|
1326
|
+
zr.displayName = "Paragraph";
|
|
1311
1327
|
function aa(e) {
|
|
1312
1328
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1313
1329
|
}
|
|
1314
|
-
var
|
|
1330
|
+
var X = { exports: {} };
|
|
1315
1331
|
/*!
|
|
1316
1332
|
Copyright (c) 2018 Jed Watson.
|
|
1317
1333
|
Licensed under the MIT License (MIT), see
|
|
@@ -1348,7 +1364,7 @@ function ia() {
|
|
|
1348
1364
|
}
|
|
1349
1365
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1350
1366
|
})();
|
|
1351
|
-
}(
|
|
1367
|
+
}(X)), X.exports;
|
|
1352
1368
|
}
|
|
1353
1369
|
var na = ia();
|
|
1354
1370
|
const oa = /* @__PURE__ */ aa(na), pa = {
|
|
@@ -1395,35 +1411,35 @@ const oa = /* @__PURE__ */ aa(na), pa = {
|
|
|
1395
1411
|
enableTitleHyphenation: i = !1,
|
|
1396
1412
|
className: l,
|
|
1397
1413
|
actions: x,
|
|
1398
|
-
children:
|
|
1399
|
-
style:
|
|
1400
|
-
alignment:
|
|
1401
|
-
additionalText:
|
|
1414
|
+
children: z,
|
|
1415
|
+
style: R,
|
|
1416
|
+
alignment: L = "space-between",
|
|
1417
|
+
additionalText: O,
|
|
1402
1418
|
...h
|
|
1403
|
-
},
|
|
1419
|
+
}, Rr) => {
|
|
1404
1420
|
let M = h, y, G;
|
|
1405
1421
|
if ("decorativeImage" in h) {
|
|
1406
|
-
const { hasGradient: C, decorativeImage: S, ...
|
|
1407
|
-
y = S, G = C, M =
|
|
1422
|
+
const { hasGradient: C, decorativeImage: S, ...P } = h;
|
|
1423
|
+
y = S, G = C, M = P;
|
|
1408
1424
|
} else if ("productImage" in h) {
|
|
1409
|
-
const { hasGradient: C, productImage: S, ...
|
|
1410
|
-
y = S, G = C, M =
|
|
1425
|
+
const { hasGradient: C, productImage: S, ...P } = h;
|
|
1426
|
+
y = S, G = C, M = P;
|
|
1411
1427
|
} else if ("hasGradient" in h) {
|
|
1412
1428
|
const { hasGradient: C, ...S } = h;
|
|
1413
1429
|
G = C, M = S;
|
|
1414
1430
|
}
|
|
1415
|
-
const
|
|
1431
|
+
const Lr = {
|
|
1416
1432
|
"--promotion-card-background": ua[n],
|
|
1417
1433
|
"--promotion-card-color": sa[n],
|
|
1418
1434
|
"--promotion-card-background-image": la[n]
|
|
1419
1435
|
};
|
|
1420
|
-
return /* @__PURE__ */ u(f, { ref:
|
|
1436
|
+
return /* @__PURE__ */ u(f, { ref: Rr, className: d(`${s}__card`), fullHeight: !0, children: /* @__PURE__ */ c(
|
|
1421
1437
|
"div",
|
|
1422
1438
|
{
|
|
1423
1439
|
"data-testid": e,
|
|
1424
1440
|
style: {
|
|
1425
|
-
...
|
|
1426
|
-
...
|
|
1441
|
+
...Lr,
|
|
1442
|
+
...R
|
|
1427
1443
|
},
|
|
1428
1444
|
className: d([
|
|
1429
1445
|
l,
|
|
@@ -1447,7 +1463,7 @@ const oa = /* @__PURE__ */ aa(na), pa = {
|
|
|
1447
1463
|
}
|
|
1448
1464
|
]),
|
|
1449
1465
|
children: [
|
|
1450
|
-
a && /* @__PURE__ */ u("div", { "data-testid": "badgeWrapper", className: d(`${s}__badge-wrapper`), children: /* @__PURE__ */ c(
|
|
1466
|
+
a && /* @__PURE__ */ u("div", { "data-testid": "badgeWrapper", className: d(`${s}__badge-wrapper`), children: /* @__PURE__ */ c(ce, { variant: n === "primary" ? "special" : "attention", showIcon: !1, children: [
|
|
1451
1467
|
o && o,
|
|
1452
1468
|
a
|
|
1453
1469
|
] }) }),
|
|
@@ -1456,11 +1472,11 @@ const oa = /* @__PURE__ */ aa(na), pa = {
|
|
|
1456
1472
|
{
|
|
1457
1473
|
className: d(
|
|
1458
1474
|
`${s}__main-content`,
|
|
1459
|
-
`${s}__main-content--${
|
|
1475
|
+
`${s}__main-content--${L}`
|
|
1460
1476
|
),
|
|
1461
1477
|
children: [
|
|
1462
1478
|
/* @__PURE__ */ u(
|
|
1463
|
-
|
|
1479
|
+
qr,
|
|
1464
1480
|
{
|
|
1465
1481
|
tag: r,
|
|
1466
1482
|
variant: t,
|
|
@@ -1470,15 +1486,15 @@ const oa = /* @__PURE__ */ aa(na), pa = {
|
|
|
1470
1486
|
}
|
|
1471
1487
|
),
|
|
1472
1488
|
/* @__PURE__ */ c("div", { className: d(`${s}__body`), children: [
|
|
1473
|
-
/* @__PURE__ */ u("div", { className: d(`${s}__child-content`), children:
|
|
1489
|
+
/* @__PURE__ */ u("div", { className: d(`${s}__child-content`), children: z }),
|
|
1474
1490
|
x && /* @__PURE__ */ u("div", { className: d(`${s}__actions`), children: x }),
|
|
1475
|
-
|
|
1476
|
-
|
|
1491
|
+
O && /* @__PURE__ */ u(
|
|
1492
|
+
zr,
|
|
1477
1493
|
{
|
|
1478
1494
|
negative: !0,
|
|
1479
1495
|
variant: "additional-100",
|
|
1480
1496
|
className: d(`${s}__additional-text`),
|
|
1481
|
-
children:
|
|
1497
|
+
children: O
|
|
1482
1498
|
}
|
|
1483
1499
|
)
|
|
1484
1500
|
] })
|
|
@@ -1513,7 +1529,7 @@ const oa = /* @__PURE__ */ aa(na), pa = {
|
|
|
1513
1529
|
]
|
|
1514
1530
|
}
|
|
1515
1531
|
) });
|
|
1516
|
-
}, ca =
|
|
1532
|
+
}, ca = Mr(da);
|
|
1517
1533
|
ca.displayName = "PromotionCard";
|
|
1518
1534
|
export {
|
|
1519
1535
|
ca as PromotionCard,
|