@purpurds/promotion-card 8.4.0 → 8.5.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.d.ts +11 -10
- package/dist/promotion-card.d.ts.map +1 -1
- package/dist/promotion-card.es.js +131 -128
- package/dist/promotion-card.es.js.map +1 -1
- package/package.json +13 -13
- package/src/promotion-card.tsx +1 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as _, jsx as l, Fragment as
|
|
2
|
-
import { forwardRef as Mr, useId as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
function
|
|
1
|
+
import { jsxs as _, jsx as l, Fragment as qr } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Mr, useId as Vr } from "react";
|
|
3
|
+
import { useTheme as zr, useApplyTheme as Wr } from "@purpurds/theme";
|
|
4
|
+
function Kr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
7
|
var rr = { exports: {} };
|
|
@@ -11,7 +11,7 @@ var rr = { exports: {} };
|
|
|
11
11
|
http://jedwatson.github.io/classnames
|
|
12
12
|
*/
|
|
13
13
|
var er;
|
|
14
|
-
function
|
|
14
|
+
function Yr() {
|
|
15
15
|
return er || (er = 1, (function(e) {
|
|
16
16
|
(function() {
|
|
17
17
|
var o = {}.hasOwnProperty;
|
|
@@ -43,8 +43,8 @@ function Kr() {
|
|
|
43
43
|
})();
|
|
44
44
|
})(rr)), rr.exports;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
const
|
|
46
|
+
var Qr = Yr();
|
|
47
|
+
const Jr = /* @__PURE__ */ Kr(Qr), Xr = {
|
|
48
48
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
49
49
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
50
50
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -52,64 +52,64 @@ const Qr = /* @__PURE__ */ Wr(Yr), Jr = {
|
|
|
52
52
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
53
53
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
54
54
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
55
|
-
},
|
|
55
|
+
}, re = Jr.bind(Xr), tr = "purpur-icon", ee = "md", te = (e) => e.filter((o) => Object.keys(o).length >= 1).map((o) => `${o.name}="${o.value}"`).join(" "), ae = ({ content: e = "", title: o } = {}) => {
|
|
56
56
|
const a = [
|
|
57
57
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
58
58
|
{ name: "fill", value: "currentColor" },
|
|
59
59
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
60
60
|
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
61
61
|
], n = o ? `<title>${o}</title>` : "";
|
|
62
|
-
return `<svg ${
|
|
63
|
-
},
|
|
64
|
-
const r =
|
|
65
|
-
content:
|
|
62
|
+
return `<svg ${te(a)}>${n}${e}</svg>`;
|
|
63
|
+
}, ie = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Gr = ({ svg: e, allyTitle: o, className: a, size: n = ee, ...p }) => {
|
|
64
|
+
const r = ae({
|
|
65
|
+
content: ie(e.svg),
|
|
66
66
|
title: o
|
|
67
|
-
}), t =
|
|
67
|
+
}), t = re(a, tr, `${tr}--${n}`);
|
|
68
68
|
return /* @__PURE__ */ l("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
69
69
|
};
|
|
70
70
|
Gr.displayName = "Icon";
|
|
71
|
-
const
|
|
71
|
+
const oe = {
|
|
72
72
|
name: "alert",
|
|
73
73
|
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>',
|
|
74
74
|
keywords: ["alert"],
|
|
75
75
|
category: "status"
|
|
76
|
-
},
|
|
76
|
+
}, ne = {
|
|
77
77
|
name: "check-circle",
|
|
78
78
|
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>',
|
|
79
79
|
keywords: ["check-circle"],
|
|
80
80
|
category: "status"
|
|
81
|
-
},
|
|
81
|
+
}, pe = {
|
|
82
82
|
name: "devices",
|
|
83
83
|
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>',
|
|
84
84
|
keywords: ["devices"],
|
|
85
85
|
category: "device"
|
|
86
|
-
},
|
|
86
|
+
}, le = {
|
|
87
87
|
name: "error",
|
|
88
88
|
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>',
|
|
89
89
|
keywords: ["error"],
|
|
90
90
|
category: "status"
|
|
91
|
-
},
|
|
91
|
+
}, ue = {
|
|
92
92
|
name: "info",
|
|
93
93
|
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>',
|
|
94
94
|
keywords: ["info"],
|
|
95
95
|
category: "status"
|
|
96
|
-
},
|
|
96
|
+
}, se = {
|
|
97
97
|
name: "offering",
|
|
98
98
|
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>',
|
|
99
99
|
keywords: ["offering"],
|
|
100
100
|
category: "other"
|
|
101
|
-
},
|
|
101
|
+
}, de = {
|
|
102
102
|
name: "question",
|
|
103
103
|
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>',
|
|
104
104
|
keywords: ["question"],
|
|
105
105
|
category: "status"
|
|
106
|
-
},
|
|
106
|
+
}, ce = {
|
|
107
107
|
name: "tag",
|
|
108
108
|
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>',
|
|
109
109
|
keywords: ["tag"],
|
|
110
110
|
category: "other"
|
|
111
111
|
};
|
|
112
|
-
function
|
|
112
|
+
function _e(e) {
|
|
113
113
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
114
114
|
}
|
|
115
115
|
var ar = { exports: {} };
|
|
@@ -119,7 +119,7 @@ var ar = { exports: {} };
|
|
|
119
119
|
http://jedwatson.github.io/classnames
|
|
120
120
|
*/
|
|
121
121
|
var ir;
|
|
122
|
-
function
|
|
122
|
+
function fe() {
|
|
123
123
|
return ir || (ir = 1, (function(e) {
|
|
124
124
|
(function() {
|
|
125
125
|
var o = {}.hasOwnProperty;
|
|
@@ -151,8 +151,8 @@ function _e() {
|
|
|
151
151
|
})();
|
|
152
152
|
})(ar)), ar.exports;
|
|
153
153
|
}
|
|
154
|
-
var
|
|
155
|
-
const or = /* @__PURE__ */
|
|
154
|
+
var he = fe();
|
|
155
|
+
const or = /* @__PURE__ */ _e(he), L = {
|
|
156
156
|
"purpur-badge": "_purpur-badge_1nup9_1",
|
|
157
157
|
"purpur-badge__icon": "_purpur-badge__icon_1nup9_13",
|
|
158
158
|
"purpur-badge--attention": "_purpur-badge--attention_1nup9_17",
|
|
@@ -174,29 +174,29 @@ const or = /* @__PURE__ */ ce(fe), L = {
|
|
|
174
174
|
SPECIAL: "special",
|
|
175
175
|
SUCCESS: "success",
|
|
176
176
|
WARNING: "warning"
|
|
177
|
-
},
|
|
177
|
+
}, ge = (e) => {
|
|
178
178
|
switch (e) {
|
|
179
179
|
case g.ATTENTION:
|
|
180
180
|
case g.SPECIAL:
|
|
181
|
-
return
|
|
181
|
+
return se;
|
|
182
182
|
case g.INFORMATION:
|
|
183
|
-
return
|
|
183
|
+
return ue;
|
|
184
184
|
case g.GENERAL:
|
|
185
|
-
return
|
|
185
|
+
return pe;
|
|
186
186
|
case g.SUCCESS:
|
|
187
|
-
return
|
|
187
|
+
return ne;
|
|
188
188
|
case g.WARNING:
|
|
189
|
-
return
|
|
189
|
+
return oe;
|
|
190
190
|
case g.ERROR:
|
|
191
|
-
return
|
|
191
|
+
return le;
|
|
192
192
|
case g.NEUTRAL:
|
|
193
|
-
return se;
|
|
194
|
-
case g.BLACK_FRIDAY:
|
|
195
193
|
return de;
|
|
194
|
+
case g.BLACK_FRIDAY:
|
|
195
|
+
return ce;
|
|
196
196
|
default:
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, me = ({
|
|
200
200
|
children: e,
|
|
201
201
|
showIcon: o = !0,
|
|
202
202
|
iconAllyTitle: a,
|
|
@@ -205,7 +205,7 @@ const or = /* @__PURE__ */ ce(fe), L = {
|
|
|
205
205
|
className: r = "",
|
|
206
206
|
...t
|
|
207
207
|
}) => {
|
|
208
|
-
const i =
|
|
208
|
+
const i = ge(n), s = or([r, L[P], L[`${P}--${n}`]]);
|
|
209
209
|
return /* @__PURE__ */ _("span", { className: s, "data-testid": p, ...t, children: [
|
|
210
210
|
o && i && /* @__PURE__ */ l(
|
|
211
211
|
Gr,
|
|
@@ -220,7 +220,7 @@ const or = /* @__PURE__ */ ce(fe), L = {
|
|
|
220
220
|
e
|
|
221
221
|
] });
|
|
222
222
|
};
|
|
223
|
-
function
|
|
223
|
+
function ve(e) {
|
|
224
224
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
225
225
|
}
|
|
226
226
|
var nr = { exports: {} };
|
|
@@ -230,7 +230,7 @@ var nr = { exports: {} };
|
|
|
230
230
|
http://jedwatson.github.io/classnames
|
|
231
231
|
*/
|
|
232
232
|
var pr;
|
|
233
|
-
function
|
|
233
|
+
function ye() {
|
|
234
234
|
return pr || (pr = 1, (function(e) {
|
|
235
235
|
(function() {
|
|
236
236
|
var o = {}.hasOwnProperty;
|
|
@@ -262,14 +262,14 @@ function ve() {
|
|
|
262
262
|
})();
|
|
263
263
|
})(nr)), nr.exports;
|
|
264
264
|
}
|
|
265
|
-
var
|
|
266
|
-
const d = /* @__PURE__ */
|
|
267
|
-
"purpur-card__container--full-height": "_purpur-card__container--full-
|
|
268
|
-
"purpur-card__container--use-container-queries": "_purpur-card__container--use-container-
|
|
269
|
-
"purpur-card": "_purpur-
|
|
270
|
-
"purpur-card__container--use-media-queries": "_purpur-card__container--use-media-
|
|
265
|
+
var xe = ye();
|
|
266
|
+
const d = /* @__PURE__ */ ve(xe), we = {
|
|
267
|
+
"purpur-card__container--full-height": "_purpur-card__container--full-height_yixx8_1",
|
|
268
|
+
"purpur-card__container--use-container-queries": "_purpur-card__container--use-container-queries_yixx8_4",
|
|
269
|
+
"purpur-card": "_purpur-card_yixx8_1",
|
|
270
|
+
"purpur-card__container--use-media-queries": "_purpur-card__container--use-media-queries_yixx8_25"
|
|
271
271
|
};
|
|
272
|
-
function
|
|
272
|
+
function be(e) {
|
|
273
273
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
274
274
|
}
|
|
275
275
|
var lr = { exports: {} };
|
|
@@ -279,7 +279,7 @@ var lr = { exports: {} };
|
|
|
279
279
|
http://jedwatson.github.io/classnames
|
|
280
280
|
*/
|
|
281
281
|
var ur;
|
|
282
|
-
function
|
|
282
|
+
function Ce() {
|
|
283
283
|
return ur || (ur = 1, (function(e) {
|
|
284
284
|
(function() {
|
|
285
285
|
var o = {}.hasOwnProperty;
|
|
@@ -311,8 +311,8 @@ function be() {
|
|
|
311
311
|
})();
|
|
312
312
|
})(lr)), lr.exports;
|
|
313
313
|
}
|
|
314
|
-
var
|
|
315
|
-
const
|
|
314
|
+
var Se = Ce();
|
|
315
|
+
const $e = /* @__PURE__ */ be(Se), Fe = {
|
|
316
316
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
317
317
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
318
318
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -320,64 +320,64 @@ const Se = /* @__PURE__ */ we(Ce), $e = {
|
|
|
320
320
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
321
321
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
322
322
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
323
|
-
},
|
|
323
|
+
}, Be = $e.bind(Fe), sr = "purpur-icon", Ae = "md", Oe = (e) => e.filter((o) => Object.keys(o).length >= 1).map((o) => `${o.name}="${o.value}"`).join(" "), ke = ({ content: e = "", title: o } = {}) => {
|
|
324
324
|
const a = [
|
|
325
325
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
326
326
|
{ name: "fill", value: "currentColor" },
|
|
327
327
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
328
328
|
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
329
329
|
], n = o ? `<title>${o}</title>` : "";
|
|
330
|
-
return `<svg ${
|
|
331
|
-
},
|
|
332
|
-
const r =
|
|
333
|
-
content:
|
|
330
|
+
return `<svg ${Oe(a)}>${n}${e}</svg>`;
|
|
331
|
+
}, Me = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Nr = ({ svg: e, allyTitle: o, className: a, size: n = Ae, ...p }) => {
|
|
332
|
+
const r = ke({
|
|
333
|
+
content: Me(e.svg),
|
|
334
334
|
title: o
|
|
335
|
-
}), t =
|
|
335
|
+
}), t = Be(a, sr, `${sr}--${n}`);
|
|
336
336
|
return /* @__PURE__ */ l("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
337
337
|
};
|
|
338
338
|
Nr.displayName = "Icon";
|
|
339
|
-
const
|
|
339
|
+
const Ge = {
|
|
340
340
|
name: "alert",
|
|
341
341
|
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>',
|
|
342
342
|
keywords: ["alert"],
|
|
343
343
|
category: "status"
|
|
344
|
-
},
|
|
344
|
+
}, Ne = {
|
|
345
345
|
name: "check-circle",
|
|
346
346
|
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>',
|
|
347
347
|
keywords: ["check-circle"],
|
|
348
348
|
category: "status"
|
|
349
|
-
},
|
|
349
|
+
}, Ze = {
|
|
350
350
|
name: "devices",
|
|
351
351
|
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>',
|
|
352
352
|
keywords: ["devices"],
|
|
353
353
|
category: "device"
|
|
354
|
-
},
|
|
354
|
+
}, Ee = {
|
|
355
355
|
name: "error",
|
|
356
356
|
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>',
|
|
357
357
|
keywords: ["error"],
|
|
358
358
|
category: "status"
|
|
359
|
-
},
|
|
359
|
+
}, Ue = {
|
|
360
360
|
name: "info",
|
|
361
361
|
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>',
|
|
362
362
|
keywords: ["info"],
|
|
363
363
|
category: "status"
|
|
364
|
-
},
|
|
364
|
+
}, Ie = {
|
|
365
365
|
name: "offering",
|
|
366
366
|
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>',
|
|
367
367
|
keywords: ["offering"],
|
|
368
368
|
category: "other"
|
|
369
|
-
},
|
|
369
|
+
}, je = {
|
|
370
370
|
name: "question",
|
|
371
371
|
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>',
|
|
372
372
|
keywords: ["question"],
|
|
373
373
|
category: "status"
|
|
374
|
-
},
|
|
374
|
+
}, De = {
|
|
375
375
|
name: "tag",
|
|
376
376
|
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>',
|
|
377
377
|
keywords: ["tag"],
|
|
378
378
|
category: "other"
|
|
379
379
|
};
|
|
380
|
-
function
|
|
380
|
+
function Re(e) {
|
|
381
381
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
382
382
|
}
|
|
383
383
|
var dr = { exports: {} };
|
|
@@ -387,7 +387,7 @@ var dr = { exports: {} };
|
|
|
387
387
|
http://jedwatson.github.io/classnames
|
|
388
388
|
*/
|
|
389
389
|
var cr;
|
|
390
|
-
function
|
|
390
|
+
function Le() {
|
|
391
391
|
return cr || (cr = 1, (function(e) {
|
|
392
392
|
(function() {
|
|
393
393
|
var o = {}.hasOwnProperty;
|
|
@@ -419,8 +419,8 @@ function Re() {
|
|
|
419
419
|
})();
|
|
420
420
|
})(dr)), dr.exports;
|
|
421
421
|
}
|
|
422
|
-
var
|
|
423
|
-
const _r = /* @__PURE__ */
|
|
422
|
+
var Pe = Le();
|
|
423
|
+
const _r = /* @__PURE__ */ Re(Pe), H = {
|
|
424
424
|
"purpur-badge": "_purpur-badge_1nup9_1",
|
|
425
425
|
"purpur-badge__icon": "_purpur-badge__icon_1nup9_13",
|
|
426
426
|
"purpur-badge--attention": "_purpur-badge--attention_1nup9_17",
|
|
@@ -442,29 +442,29 @@ const _r = /* @__PURE__ */ De(Le), H = {
|
|
|
442
442
|
SPECIAL: "special",
|
|
443
443
|
SUCCESS: "success",
|
|
444
444
|
WARNING: "warning"
|
|
445
|
-
},
|
|
445
|
+
}, He = (e) => {
|
|
446
446
|
switch (e) {
|
|
447
447
|
case m.ATTENTION:
|
|
448
448
|
case m.SPECIAL:
|
|
449
|
-
return
|
|
449
|
+
return Ie;
|
|
450
450
|
case m.INFORMATION:
|
|
451
|
-
return
|
|
451
|
+
return Ue;
|
|
452
452
|
case m.GENERAL:
|
|
453
|
-
return
|
|
453
|
+
return Ze;
|
|
454
454
|
case m.SUCCESS:
|
|
455
|
-
return
|
|
455
|
+
return Ne;
|
|
456
456
|
case m.WARNING:
|
|
457
|
-
return
|
|
457
|
+
return Ge;
|
|
458
458
|
case m.ERROR:
|
|
459
|
-
return
|
|
459
|
+
return Ee;
|
|
460
460
|
case m.NEUTRAL:
|
|
461
|
-
return Ie;
|
|
462
|
-
case m.BLACK_FRIDAY:
|
|
463
461
|
return je;
|
|
462
|
+
case m.BLACK_FRIDAY:
|
|
463
|
+
return De;
|
|
464
464
|
default:
|
|
465
465
|
return;
|
|
466
466
|
}
|
|
467
|
-
},
|
|
467
|
+
}, Te = ({
|
|
468
468
|
children: e,
|
|
469
469
|
showIcon: o = !0,
|
|
470
470
|
iconAllyTitle: a,
|
|
@@ -473,7 +473,7 @@ const _r = /* @__PURE__ */ De(Le), H = {
|
|
|
473
473
|
className: r = "",
|
|
474
474
|
...t
|
|
475
475
|
}) => {
|
|
476
|
-
const i =
|
|
476
|
+
const i = He(n), s = _r([r, H[T], H[`${T}--${n}`]]);
|
|
477
477
|
return /* @__PURE__ */ _("span", { className: s, "data-testid": p, ...t, children: [
|
|
478
478
|
o && i && /* @__PURE__ */ l(
|
|
479
479
|
Nr,
|
|
@@ -487,29 +487,29 @@ const _r = /* @__PURE__ */ De(Le), H = {
|
|
|
487
487
|
),
|
|
488
488
|
e
|
|
489
489
|
] });
|
|
490
|
-
},
|
|
490
|
+
}, qe = {
|
|
491
491
|
"purpur-card-badge": "_purpur-card-badge_k9ziu_1"
|
|
492
|
-
},
|
|
492
|
+
}, Ve = d.bind(qe), ze = "purpur-card-badge", We = ({
|
|
493
493
|
["data-testid"]: e = "purpur-card-badge",
|
|
494
494
|
variant: o,
|
|
495
495
|
text: a
|
|
496
496
|
}) => o && a ? /* @__PURE__ */ l(
|
|
497
|
-
|
|
497
|
+
Te,
|
|
498
498
|
{
|
|
499
|
-
className:
|
|
499
|
+
className: Ve(ze),
|
|
500
500
|
variant: o,
|
|
501
501
|
showIcon: !1,
|
|
502
502
|
"data-testid": e,
|
|
503
503
|
children: a
|
|
504
504
|
}
|
|
505
|
-
) : null,
|
|
505
|
+
) : null, Ke = {
|
|
506
506
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
507
|
-
},
|
|
507
|
+
}, Ye = d.bind(Ke), Qe = "purpur-card-content", Je = ({
|
|
508
508
|
["data-testid"]: e = "purpur-card-content",
|
|
509
509
|
children: o,
|
|
510
510
|
className: a,
|
|
511
511
|
...n
|
|
512
|
-
}) => /* @__PURE__ */ l("div", { className:
|
|
512
|
+
}) => /* @__PURE__ */ l("div", { className: Ye(Qe, a), "data-testid": e, ...n, children: o }), Xe = {
|
|
513
513
|
"purpur-card-content-container": "_purpur-card-content-container_2oha5_1",
|
|
514
514
|
"purpur-card-content-container--full-height": "_purpur-card-content-container--full-height_2oha5_6",
|
|
515
515
|
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_2oha5_21",
|
|
@@ -517,7 +517,7 @@ const _r = /* @__PURE__ */ De(Le), H = {
|
|
|
517
517
|
"purpur-card-content-container--gap-size--md": "_purpur-card-content-container--gap-size--md_2oha5_39",
|
|
518
518
|
"purpur-card-content-container--gap-size--lg": "_purpur-card-content-container--gap-size--lg_2oha5_42",
|
|
519
519
|
"purpur-card-content-container--gap-size--xl": "_purpur-card-content-container--gap-size--xl_2oha5_45"
|
|
520
|
-
},
|
|
520
|
+
}, rt = d.bind(Xe), O = "purpur-card-content-container", et = ({
|
|
521
521
|
["data-testid"]: e = "purpur-card-content-container",
|
|
522
522
|
children: o,
|
|
523
523
|
className: a,
|
|
@@ -528,7 +528,7 @@ const _r = /* @__PURE__ */ De(Le), H = {
|
|
|
528
528
|
}) => /* @__PURE__ */ l(
|
|
529
529
|
"div",
|
|
530
530
|
{
|
|
531
|
-
className:
|
|
531
|
+
className: rt([
|
|
532
532
|
O,
|
|
533
533
|
a,
|
|
534
534
|
`${O}--gap-size--${r}`,
|
|
@@ -542,7 +542,7 @@ const _r = /* @__PURE__ */ De(Le), H = {
|
|
|
542
542
|
children: o
|
|
543
543
|
}
|
|
544
544
|
);
|
|
545
|
-
function
|
|
545
|
+
function tt(e) {
|
|
546
546
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
547
547
|
}
|
|
548
548
|
var fr = { exports: {} };
|
|
@@ -552,7 +552,7 @@ var fr = { exports: {} };
|
|
|
552
552
|
http://jedwatson.github.io/classnames
|
|
553
553
|
*/
|
|
554
554
|
var hr;
|
|
555
|
-
function
|
|
555
|
+
function at() {
|
|
556
556
|
return hr || (hr = 1, (function(e) {
|
|
557
557
|
(function() {
|
|
558
558
|
var o = {}.hasOwnProperty;
|
|
@@ -584,27 +584,28 @@ function tt() {
|
|
|
584
584
|
})();
|
|
585
585
|
})(fr)), fr.exports;
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
const
|
|
587
|
+
var it = at();
|
|
588
|
+
const ot = /* @__PURE__ */ tt(it), nt = "_rotate_12t9p_1", pt = "_dash_12t9p_1", lt = {
|
|
589
589
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
590
|
-
rotate:
|
|
590
|
+
rotate: nt,
|
|
591
591
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
592
592
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
593
593
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
594
594
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
595
595
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
596
596
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
597
|
-
dash:
|
|
597
|
+
dash: pt,
|
|
598
598
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
599
599
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
600
|
-
}, gr =
|
|
600
|
+
}, gr = ot.bind(lt), S = "purpur-spinner", ut = {
|
|
601
601
|
SM: "sm"
|
|
602
|
-
},
|
|
602
|
+
}, Zr = ({
|
|
603
603
|
disabled: e = !1,
|
|
604
604
|
negative: o = !1,
|
|
605
|
-
size: a =
|
|
606
|
-
|
|
607
|
-
|
|
605
|
+
size: a = ut.SM,
|
|
606
|
+
className: n,
|
|
607
|
+
...p
|
|
608
|
+
}) => /* @__PURE__ */ l("div", { className: gr(S, `${S}--${a}`, n), ...p, children: /* @__PURE__ */ l("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ l(
|
|
608
609
|
"circle",
|
|
609
610
|
{
|
|
610
611
|
className: gr(`${S}__circle`, {
|
|
@@ -615,7 +616,9 @@ const it = /* @__PURE__ */ et(at), ot = "_rotate_12t9p_1", nt = "_dash_12t9p_1",
|
|
|
615
616
|
cy: "25",
|
|
616
617
|
r: "20"
|
|
617
618
|
}
|
|
618
|
-
) }) })
|
|
619
|
+
) }) });
|
|
620
|
+
Zr.displayName = "Spinner";
|
|
621
|
+
const st = {
|
|
619
622
|
"purpur-card-cta--button-styling": "_purpur-card-cta--button-styling_1stkr_1",
|
|
620
623
|
"purpur-card-cta--button-styling--xs": "_purpur-card-cta--button-styling--xs_1stkr_22",
|
|
621
624
|
"purpur-card-cta--button-styling--icon-only": "_purpur-card-cta--button-styling--icon-only_1stkr_25",
|
|
@@ -662,7 +665,7 @@ const it = /* @__PURE__ */ et(at), ot = "_rotate_12t9p_1", nt = "_dash_12t9p_1",
|
|
|
662
665
|
])} ${v}`,
|
|
663
666
|
"data-testid": e,
|
|
664
667
|
...s,
|
|
665
|
-
children: r ? /* @__PURE__ */ l(
|
|
668
|
+
children: r ? /* @__PURE__ */ l(Zr, { "data-testid": `${e}-spinner`, size: "xs", disabled: n }) : /* @__PURE__ */ _(qr, { children: [
|
|
666
669
|
p === "left" && a,
|
|
667
670
|
t,
|
|
668
671
|
p === "right" && a
|
|
@@ -728,21 +731,21 @@ const gt = /* @__PURE__ */ _t(ht), mt = {
|
|
|
728
731
|
o ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
729
732
|
], n = o ? `<title>${o}</title>` : "";
|
|
730
733
|
return `<svg ${xt(a)}>${n}${e}</svg>`;
|
|
731
|
-
}, bt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
734
|
+
}, bt = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Er = ({ svg: e, allyTitle: o, className: a, size: n = yt, ...p }) => {
|
|
732
735
|
const r = wt({
|
|
733
736
|
content: bt(e.svg),
|
|
734
737
|
title: o
|
|
735
738
|
}), t = vt(a, yr, `${yr}--${n}`);
|
|
736
739
|
return /* @__PURE__ */ l("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...p });
|
|
737
740
|
};
|
|
738
|
-
|
|
741
|
+
Er.displayName = "Icon";
|
|
739
742
|
const Ct = {
|
|
740
743
|
name: "checkmark",
|
|
741
744
|
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>',
|
|
742
745
|
keywords: ["checkmark"],
|
|
743
746
|
category: "utility"
|
|
744
|
-
},
|
|
745
|
-
|
|
747
|
+
}, Ur = (e) => /* @__PURE__ */ l(Er, { ...e, svg: Ct });
|
|
748
|
+
Ur.displayName = "IconCheckmark";
|
|
746
749
|
function St(e) {
|
|
747
750
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
748
751
|
}
|
|
@@ -833,7 +836,7 @@ const Mt = {
|
|
|
833
836
|
className: q(`${V}__list-item`),
|
|
834
837
|
"data-testid": `${e}-item`,
|
|
835
838
|
children: [
|
|
836
|
-
/* @__PURE__ */ l(
|
|
839
|
+
/* @__PURE__ */ l(Ur, { size: "xs", className: q(`${V}__icon`) }),
|
|
837
840
|
/* @__PURE__ */ l(Q, { children: a })
|
|
838
841
|
]
|
|
839
842
|
},
|
|
@@ -904,7 +907,7 @@ const Ut = /* @__PURE__ */ Nt(Et), k = {
|
|
|
904
907
|
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
905
908
|
}, It = {
|
|
906
909
|
TITLE100: "title-100"
|
|
907
|
-
}, M = "purpur-heading",
|
|
910
|
+
}, M = "purpur-heading", Ir = ({
|
|
908
911
|
children: e,
|
|
909
912
|
className: o = "",
|
|
910
913
|
enableHyphenation: a = !1,
|
|
@@ -924,7 +927,7 @@ const Ut = /* @__PURE__ */ Nt(Et), k = {
|
|
|
924
927
|
]);
|
|
925
928
|
return /* @__PURE__ */ l(i, { className: s, ...t, children: e });
|
|
926
929
|
};
|
|
927
|
-
|
|
930
|
+
Ir.displayName = "Heading";
|
|
928
931
|
const jt = {
|
|
929
932
|
"purpur-card-heading": "_purpur-card-heading_j3j6u_1",
|
|
930
933
|
"purpur-card-heading__header": "_purpur-card-heading__header_j3j6u_6",
|
|
@@ -1006,7 +1009,7 @@ const jt = {
|
|
|
1006
1009
|
/* @__PURE__ */ _("div", { className: G(`${C}__header`), children: [
|
|
1007
1010
|
n && /* @__PURE__ */ l("div", { className: G(`${C}__icon`), children: n }),
|
|
1008
1011
|
/* @__PURE__ */ l(
|
|
1009
|
-
|
|
1012
|
+
Ir,
|
|
1010
1013
|
{
|
|
1011
1014
|
tag: r,
|
|
1012
1015
|
className: G(`${C}__heading`),
|
|
@@ -1063,7 +1066,7 @@ const jt = {
|
|
|
1063
1066
|
"purpur-card-root--primary": "_purpur-card-root--primary_eupww_7",
|
|
1064
1067
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_eupww_10",
|
|
1065
1068
|
"purpur-card-root--full-height": "_purpur-card-root--full-height_eupww_13"
|
|
1066
|
-
}, r0 = d.bind(Xt), z = "purpur-card-root",
|
|
1069
|
+
}, r0 = d.bind(Xt), z = "purpur-card-root", jr = Mr(
|
|
1067
1070
|
({
|
|
1068
1071
|
["data-testid"]: e = "purpur-card-root",
|
|
1069
1072
|
children: o,
|
|
@@ -1083,8 +1086,8 @@ const jt = {
|
|
|
1083
1086
|
return /* @__PURE__ */ l("div", { className: i, "data-testid": e, ref: t, ...r, children: o });
|
|
1084
1087
|
}
|
|
1085
1088
|
);
|
|
1086
|
-
|
|
1087
|
-
const W = d.bind(
|
|
1089
|
+
jr.displayName = "CardRoot";
|
|
1090
|
+
const W = d.bind(we), F = "purpur-card", f = ({ children: e, className: o, useMediaQueries: a, ...n }) => {
|
|
1088
1091
|
const p = W([F, o]);
|
|
1089
1092
|
return /* @__PURE__ */ l(
|
|
1090
1093
|
"div",
|
|
@@ -1094,13 +1097,13 @@ const W = d.bind(xe), F = "purpur-card", f = ({ children: e, className: o, useMe
|
|
|
1094
1097
|
[`${F}__container--use-container-queries`]: !a,
|
|
1095
1098
|
[`${F}__container--use-media-queries`]: a
|
|
1096
1099
|
}),
|
|
1097
|
-
children: /* @__PURE__ */ l(
|
|
1100
|
+
children: /* @__PURE__ */ l(jr, { className: W(p), ...n, children: e })
|
|
1098
1101
|
}
|
|
1099
1102
|
);
|
|
1100
1103
|
};
|
|
1101
|
-
f.Badge =
|
|
1102
|
-
f.Content =
|
|
1103
|
-
f.ContentContainer =
|
|
1104
|
+
f.Badge = We;
|
|
1105
|
+
f.Content = Je;
|
|
1106
|
+
f.ContentContainer = et;
|
|
1104
1107
|
f.Cta = ct;
|
|
1105
1108
|
f.FeatureList = Gt;
|
|
1106
1109
|
f.Overline = Jt;
|
|
@@ -1173,7 +1176,7 @@ const i0 = /* @__PURE__ */ e0(a0), N = {
|
|
|
1173
1176
|
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
1174
1177
|
}, o0 = {
|
|
1175
1178
|
TITLE100: "title-100"
|
|
1176
|
-
}, Z = "purpur-heading",
|
|
1179
|
+
}, Z = "purpur-heading", Dr = ({
|
|
1177
1180
|
children: e,
|
|
1178
1181
|
className: o = "",
|
|
1179
1182
|
enableHyphenation: a = !1,
|
|
@@ -1193,7 +1196,7 @@ const i0 = /* @__PURE__ */ e0(a0), N = {
|
|
|
1193
1196
|
]);
|
|
1194
1197
|
return /* @__PURE__ */ l(i, { className: s, ...t, children: e });
|
|
1195
1198
|
};
|
|
1196
|
-
|
|
1199
|
+
Dr.displayName = "Heading";
|
|
1197
1200
|
function n0(e) {
|
|
1198
1201
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1199
1202
|
}
|
|
@@ -1254,7 +1257,7 @@ const u0 = /* @__PURE__ */ n0(l0), s0 = {
|
|
|
1254
1257
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
1255
1258
|
}, d0 = u0.bind(s0), c0 = {
|
|
1256
1259
|
PARAGRAPH100: "paragraph-100"
|
|
1257
|
-
}, B = "purpur-paragraph",
|
|
1260
|
+
}, B = "purpur-paragraph", Rr = ({
|
|
1258
1261
|
children: e,
|
|
1259
1262
|
className: o,
|
|
1260
1263
|
disabled: a,
|
|
@@ -1270,7 +1273,7 @@ const u0 = /* @__PURE__ */ n0(l0), s0 = {
|
|
|
1270
1273
|
});
|
|
1271
1274
|
return /* @__PURE__ */ l("p", { ...t, className: i, children: e });
|
|
1272
1275
|
};
|
|
1273
|
-
|
|
1276
|
+
Rr.displayName = "Paragraph";
|
|
1274
1277
|
function _0(e) {
|
|
1275
1278
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1276
1279
|
}
|
|
@@ -1368,10 +1371,10 @@ const g0 = /* @__PURE__ */ _0(h0), m0 = {
|
|
|
1368
1371
|
additionalText: A,
|
|
1369
1372
|
forceColorScheme: J,
|
|
1370
1373
|
...w
|
|
1371
|
-
},
|
|
1374
|
+
}, Lr) => {
|
|
1372
1375
|
let j = w, h;
|
|
1373
|
-
const X =
|
|
1374
|
-
if (
|
|
1376
|
+
const X = Vr(), { options: b, currentColorScheme: Pr } = zr();
|
|
1377
|
+
if (Wr({
|
|
1375
1378
|
cssVariablesSelector: `[data-id="${X}"]`,
|
|
1376
1379
|
currentColorScheme: J ?? (b == null ? void 0 : b.promotionCardScheme)
|
|
1377
1380
|
}), "decorativeImage" in w) {
|
|
@@ -1381,21 +1384,21 @@ const g0 = /* @__PURE__ */ _0(h0), m0 = {
|
|
|
1381
1384
|
const { productImage: D, ...R } = w;
|
|
1382
1385
|
h = D, j = R;
|
|
1383
1386
|
}
|
|
1384
|
-
const
|
|
1387
|
+
const Hr = J ?? (b == null ? void 0 : b.promotionCardScheme) ?? Pr, Tr = {
|
|
1385
1388
|
"--promotion-card-background": v0[o],
|
|
1386
1389
|
"--promotion-card-color": x0[o],
|
|
1387
|
-
"--promotion-card-background-image": h ? "none" :
|
|
1390
|
+
"--promotion-card-background-image": h ? "none" : Hr === "dark" ? y0[o] : Y[o]
|
|
1388
1391
|
};
|
|
1389
1392
|
return /* @__PURE__ */ l(
|
|
1390
1393
|
f,
|
|
1391
1394
|
{
|
|
1392
1395
|
"data-id": X,
|
|
1393
1396
|
"data-testid": e,
|
|
1394
|
-
ref:
|
|
1397
|
+
ref: Lr,
|
|
1395
1398
|
fullHeight: !0,
|
|
1396
1399
|
className: c(s, u, `${u}--${o}`),
|
|
1397
1400
|
style: {
|
|
1398
|
-
...
|
|
1401
|
+
...Tr,
|
|
1399
1402
|
...U
|
|
1400
1403
|
},
|
|
1401
1404
|
...j,
|
|
@@ -1415,7 +1418,7 @@ const g0 = /* @__PURE__ */ _0(h0), m0 = {
|
|
|
1415
1418
|
[`${u}__content--without-image`]: !h
|
|
1416
1419
|
}),
|
|
1417
1420
|
children: [
|
|
1418
|
-
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: c(`${u}__badge-wrapper`), children: /* @__PURE__ */ _(
|
|
1421
|
+
a && /* @__PURE__ */ l("div", { "data-testid": "badgeWrapper", className: c(`${u}__badge-wrapper`), children: /* @__PURE__ */ _(me, { variant: o === "primary" ? "special" : "attention", showIcon: !1, children: [
|
|
1419
1422
|
n && n,
|
|
1420
1423
|
a
|
|
1421
1424
|
] }) }),
|
|
@@ -1428,7 +1431,7 @@ const g0 = /* @__PURE__ */ _0(h0), m0 = {
|
|
|
1428
1431
|
),
|
|
1429
1432
|
children: [
|
|
1430
1433
|
/* @__PURE__ */ l(
|
|
1431
|
-
|
|
1434
|
+
Dr,
|
|
1432
1435
|
{
|
|
1433
1436
|
tag: r,
|
|
1434
1437
|
variant: t,
|
|
@@ -1441,7 +1444,7 @@ const g0 = /* @__PURE__ */ _0(h0), m0 = {
|
|
|
1441
1444
|
/* @__PURE__ */ l("div", { className: c(`${u}__child-content`), children: E }),
|
|
1442
1445
|
x && /* @__PURE__ */ l("div", { className: c(`${u}__actions`), children: x }),
|
|
1443
1446
|
A && /* @__PURE__ */ l(
|
|
1444
|
-
|
|
1447
|
+
Rr,
|
|
1445
1448
|
{
|
|
1446
1449
|
negative: !0,
|
|
1447
1450
|
variant: "additional-100",
|