@purpurds/card 5.35.0 → 6.0.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 +6 -6
- package/dist/card.cjs.js +8 -8
- package/dist/card.cjs.js.map +1 -1
- package/dist/card.d.ts +0 -2
- package/dist/card.d.ts.map +1 -1
- package/dist/card.es.js +330 -387
- package/dist/card.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +11 -11
- package/src/card-feature-list.tsx +1 -1
- package/src/card.stories.tsx +3 -1
- package/src/card.tsx +0 -3
- package/dist/card-link-arrow.d.ts +0 -22
- package/dist/card-link-arrow.d.ts.map +0 -1
- package/src/card-cta.test.tsx +0 -47
- package/src/card-link-arrow.module.scss +0 -16
- package/src/card-link-arrow.test.tsx +0 -49
- package/src/card-link-arrow.tsx +0 -62
package/dist/card.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as h, jsx as s, Fragment as ir } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x, Children as $, isValidElement as S, createElement as w, cloneElement as F, useEffect as sr, Fragment as or } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
function
|
|
5
|
-
return
|
|
4
|
+
function cr(t) {
|
|
5
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var G = { exports: {} };
|
|
8
8
|
/*!
|
|
9
9
|
Copyright (c) 2018 Jed Watson.
|
|
10
10
|
Licensed under the MIT License (MIT), see
|
|
11
11
|
http://jedwatson.github.io/classnames
|
|
12
12
|
*/
|
|
13
|
-
(function(
|
|
13
|
+
(function(t) {
|
|
14
14
|
(function() {
|
|
15
15
|
var n = {}.hasOwnProperty;
|
|
16
|
-
function
|
|
16
|
+
function a() {
|
|
17
17
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
18
18
|
var u = arguments[e];
|
|
19
19
|
u && (r = i(r, p.call(this, u)));
|
|
@@ -26,7 +26,7 @@ var X = { exports: {} };
|
|
|
26
26
|
if (typeof r != "object")
|
|
27
27
|
return "";
|
|
28
28
|
if (Array.isArray(r))
|
|
29
|
-
return
|
|
29
|
+
return a.apply(this, r);
|
|
30
30
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
31
31
|
return r.toString();
|
|
32
32
|
var e = "";
|
|
@@ -37,26 +37,26 @@ var X = { exports: {} };
|
|
|
37
37
|
function i(r, e) {
|
|
38
38
|
return e ? r ? r + " " + e : r + e : r;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
41
41
|
})();
|
|
42
|
-
})(
|
|
43
|
-
var
|
|
44
|
-
const c = /* @__PURE__ */
|
|
42
|
+
})(G);
|
|
43
|
+
var lr = G.exports;
|
|
44
|
+
const c = /* @__PURE__ */ cr(lr), dr = {
|
|
45
45
|
"purpur-card": "_purpur-card_1ruml_1"
|
|
46
46
|
};
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function _r(t) {
|
|
48
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var U = { exports: {} };
|
|
51
51
|
/*!
|
|
52
52
|
Copyright (c) 2018 Jed Watson.
|
|
53
53
|
Licensed under the MIT License (MIT), see
|
|
54
54
|
http://jedwatson.github.io/classnames
|
|
55
55
|
*/
|
|
56
|
-
(function(
|
|
56
|
+
(function(t) {
|
|
57
57
|
(function() {
|
|
58
58
|
var n = {}.hasOwnProperty;
|
|
59
|
-
function
|
|
59
|
+
function a() {
|
|
60
60
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
61
61
|
var u = arguments[e];
|
|
62
62
|
u && (r = i(r, p.call(this, u)));
|
|
@@ -69,7 +69,7 @@ var K = { exports: {} };
|
|
|
69
69
|
if (typeof r != "object")
|
|
70
70
|
return "";
|
|
71
71
|
if (Array.isArray(r))
|
|
72
|
-
return
|
|
72
|
+
return a.apply(this, r);
|
|
73
73
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
74
74
|
return r.toString();
|
|
75
75
|
var e = "";
|
|
@@ -80,11 +80,11 @@ var K = { exports: {} };
|
|
|
80
80
|
function i(r, e) {
|
|
81
81
|
return e ? r ? r + " " + e : r + e : r;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
84
84
|
})();
|
|
85
|
-
})(
|
|
86
|
-
var
|
|
87
|
-
const
|
|
85
|
+
})(U);
|
|
86
|
+
var gr = U.exports;
|
|
87
|
+
const hr = /* @__PURE__ */ _r(gr), fr = {
|
|
88
88
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
89
89
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
90
90
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -92,86 +92,87 @@ const vr = /* @__PURE__ */ mr(fr), yr = {
|
|
|
92
92
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
93
93
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
94
94
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
95
|
-
}, br = {
|
|
95
|
+
}, mr = hr.bind(fr), Z = "purpur-icon", vr = "md", yr = (t) => t.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), br = ({ content: t = "", title: n } = {}) => {
|
|
96
|
+
const a = [
|
|
97
|
+
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
98
|
+
{ name: "fill", value: "currentColor" },
|
|
99
|
+
{ name: "viewBox", value: "0 0 24 24" },
|
|
100
|
+
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
101
|
+
], p = n ? `<title>${n}</title>` : "";
|
|
102
|
+
return `<svg ${yr(a)}>${p}${t}</svg>`;
|
|
103
|
+
}, $r = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), W = ({
|
|
104
|
+
["data-testid"]: t,
|
|
105
|
+
svg: n,
|
|
106
|
+
allyTitle: a,
|
|
107
|
+
className: p,
|
|
108
|
+
size: i = vr,
|
|
109
|
+
...r
|
|
110
|
+
}) => {
|
|
111
|
+
const e = br({
|
|
112
|
+
content: $r(n.svg),
|
|
113
|
+
title: a
|
|
114
|
+
}), u = mr(p, Z, `${Z}--${i}`);
|
|
115
|
+
return /* @__PURE__ */ s(
|
|
116
|
+
"span",
|
|
117
|
+
{
|
|
118
|
+
"aria-label": a,
|
|
119
|
+
className: u,
|
|
120
|
+
"data-testid": t,
|
|
121
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
122
|
+
...r
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
};
|
|
126
|
+
W.displayName = "Icon";
|
|
127
|
+
const wr = {
|
|
96
128
|
name: "alert",
|
|
97
129
|
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>',
|
|
98
130
|
keywords: ["alert"],
|
|
99
131
|
category: "status"
|
|
100
|
-
},
|
|
132
|
+
}, xr = {
|
|
101
133
|
name: "check-circle",
|
|
102
134
|
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>',
|
|
103
135
|
keywords: ["check-circle"],
|
|
104
136
|
category: "status"
|
|
105
|
-
},
|
|
137
|
+
}, Nr = {
|
|
106
138
|
name: "error",
|
|
107
139
|
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>',
|
|
108
140
|
keywords: ["error"],
|
|
109
141
|
category: "status"
|
|
110
|
-
},
|
|
142
|
+
}, Cr = {
|
|
111
143
|
name: "info",
|
|
112
144
|
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>',
|
|
113
145
|
keywords: ["info"],
|
|
114
146
|
category: "status"
|
|
115
|
-
},
|
|
147
|
+
}, Sr = {
|
|
116
148
|
name: "offering",
|
|
117
149
|
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>',
|
|
118
150
|
keywords: ["offering"],
|
|
119
151
|
category: "other"
|
|
120
|
-
},
|
|
152
|
+
}, Ar = {
|
|
121
153
|
name: "question",
|
|
122
154
|
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>',
|
|
123
155
|
keywords: ["question"],
|
|
124
156
|
category: "status"
|
|
125
|
-
},
|
|
157
|
+
}, zr = {
|
|
126
158
|
name: "tag",
|
|
127
159
|
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>',
|
|
128
160
|
keywords: ["tag"],
|
|
129
161
|
category: "other"
|
|
130
|
-
}, Ar = vr.bind(yr), I = "purpur-icon", Sr = "md", zr = (a) => a.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), Or = ({ content: a = "", title: n } = {}) => {
|
|
131
|
-
const t = [
|
|
132
|
-
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
133
|
-
{ name: "fill", value: "currentColor" },
|
|
134
|
-
{ name: "viewBox", value: "0 0 24 24" },
|
|
135
|
-
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
136
|
-
], p = n ? `<title>${n}</title>` : "";
|
|
137
|
-
return `<svg ${zr(t)}>${p}${a}</svg>`;
|
|
138
|
-
}, jr = (a) => a.replace(/<(\/?)svg([^>]*)>/g, "").trim(), W = ({
|
|
139
|
-
["data-testid"]: a,
|
|
140
|
-
svg: n,
|
|
141
|
-
allyTitle: t,
|
|
142
|
-
className: p,
|
|
143
|
-
size: i = Sr,
|
|
144
|
-
...r
|
|
145
|
-
}) => {
|
|
146
|
-
const e = Or({
|
|
147
|
-
content: jr(n.svg),
|
|
148
|
-
title: t
|
|
149
|
-
}), u = Ar(p, I, `${I}--${i}`);
|
|
150
|
-
return /* @__PURE__ */ s(
|
|
151
|
-
"span",
|
|
152
|
-
{
|
|
153
|
-
"aria-label": t,
|
|
154
|
-
className: u,
|
|
155
|
-
"data-testid": a,
|
|
156
|
-
dangerouslySetInnerHTML: { __html: e },
|
|
157
|
-
...r
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
162
|
};
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
163
|
+
function Or(t) {
|
|
164
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
164
165
|
}
|
|
165
|
-
var
|
|
166
|
+
var X = { exports: {} };
|
|
166
167
|
/*!
|
|
167
168
|
Copyright (c) 2018 Jed Watson.
|
|
168
169
|
Licensed under the MIT License (MIT), see
|
|
169
170
|
http://jedwatson.github.io/classnames
|
|
170
171
|
*/
|
|
171
|
-
(function(
|
|
172
|
+
(function(t) {
|
|
172
173
|
(function() {
|
|
173
174
|
var n = {}.hasOwnProperty;
|
|
174
|
-
function
|
|
175
|
+
function a() {
|
|
175
176
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
176
177
|
var u = arguments[e];
|
|
177
178
|
u && (r = i(r, p(u)));
|
|
@@ -184,7 +185,7 @@ var Y = { exports: {} };
|
|
|
184
185
|
if (typeof r != "object")
|
|
185
186
|
return "";
|
|
186
187
|
if (Array.isArray(r))
|
|
187
|
-
return
|
|
188
|
+
return a.apply(null, r);
|
|
188
189
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
189
190
|
return r.toString();
|
|
190
191
|
var e = "";
|
|
@@ -195,11 +196,11 @@ var Y = { exports: {} };
|
|
|
195
196
|
function i(r, e) {
|
|
196
197
|
return e ? r ? r + " " + e : r + e : r;
|
|
197
198
|
}
|
|
198
|
-
|
|
199
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
199
200
|
})();
|
|
200
|
-
})(
|
|
201
|
-
var
|
|
202
|
-
const
|
|
201
|
+
})(X);
|
|
202
|
+
var jr = X.exports;
|
|
203
|
+
const Mr = /* @__PURE__ */ Or(jr), I = {
|
|
203
204
|
"purpur-badge": "_purpur-badge_19vzu_1",
|
|
204
205
|
"purpur-badge--attention": "_purpur-badge--attention_19vzu_13",
|
|
205
206
|
"purpur-badge--special": "_purpur-badge--special_19vzu_17",
|
|
@@ -209,7 +210,7 @@ const qr = /* @__PURE__ */ Mr(Er), P = {
|
|
|
209
210
|
"purpur-badge--warning": "_purpur-badge--warning_19vzu_33",
|
|
210
211
|
"purpur-badge--error": "_purpur-badge--error_19vzu_37",
|
|
211
212
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_19vzu_41"
|
|
212
|
-
},
|
|
213
|
+
}, L = "purpur-badge", _ = {
|
|
213
214
|
ATTENTION: "attention",
|
|
214
215
|
SPECIAL: "special",
|
|
215
216
|
NEUTRAL: "neutral",
|
|
@@ -218,98 +219,98 @@ const qr = /* @__PURE__ */ Mr(Er), P = {
|
|
|
218
219
|
WARNING: "warning",
|
|
219
220
|
ERROR: "error",
|
|
220
221
|
BLACK_FRIDAY: "black-friday"
|
|
221
|
-
},
|
|
222
|
-
switch (
|
|
222
|
+
}, qr = (t) => {
|
|
223
|
+
switch (t) {
|
|
223
224
|
case _.ATTENTION:
|
|
224
225
|
case _.SPECIAL:
|
|
225
|
-
return
|
|
226
|
+
return Sr;
|
|
226
227
|
case _.INFORMATION:
|
|
227
|
-
return
|
|
228
|
+
return Cr;
|
|
228
229
|
case _.SUCCESS:
|
|
229
|
-
return
|
|
230
|
+
return xr;
|
|
230
231
|
case _.WARNING:
|
|
231
|
-
return
|
|
232
|
+
return wr;
|
|
232
233
|
case _.ERROR:
|
|
233
|
-
return
|
|
234
|
+
return Nr;
|
|
234
235
|
case _.NEUTRAL:
|
|
235
|
-
return
|
|
236
|
+
return Ar;
|
|
236
237
|
case _.BLACK_FRIDAY:
|
|
237
|
-
return
|
|
238
|
+
return zr;
|
|
238
239
|
default:
|
|
239
240
|
return;
|
|
240
241
|
}
|
|
241
|
-
},
|
|
242
|
-
children:
|
|
242
|
+
}, Er = ({
|
|
243
|
+
children: t,
|
|
243
244
|
showIcon: n = !0,
|
|
244
|
-
variant:
|
|
245
|
+
variant: a,
|
|
245
246
|
["data-testid"]: p,
|
|
246
247
|
allyLabel: i,
|
|
247
248
|
className: r = "",
|
|
248
249
|
...e
|
|
249
250
|
}) => {
|
|
250
|
-
const u =
|
|
251
|
-
return /* @__PURE__ */
|
|
251
|
+
const u = qr(a), o = Mr([r, I[L], I[`${L}--${a}`]]);
|
|
252
|
+
return /* @__PURE__ */ h("span", { "aria-label": i, className: o, "data-testid": p, ...e, children: [
|
|
252
253
|
n && u && /* @__PURE__ */ s(W, { "data-testid": `${p}-icon`, allyTitle: i, size: "xs", svg: u }),
|
|
253
|
-
|
|
254
|
+
t
|
|
254
255
|
] });
|
|
255
|
-
},
|
|
256
|
+
}, kr = {
|
|
256
257
|
"purpur-card-badge": "_purpur-card-badge_r7moe_1"
|
|
257
|
-
},
|
|
258
|
-
["data-testid"]:
|
|
258
|
+
}, Zr = c.bind(kr), Ir = "purpur-card-badge", Lr = ({
|
|
259
|
+
["data-testid"]: t = "purpur-card-badge",
|
|
259
260
|
variant: n,
|
|
260
|
-
text:
|
|
261
|
-
}) => n &&
|
|
262
|
-
|
|
261
|
+
text: a
|
|
262
|
+
}) => n && a ? /* @__PURE__ */ s(
|
|
263
|
+
Er,
|
|
263
264
|
{
|
|
264
|
-
className:
|
|
265
|
+
className: Zr(Ir),
|
|
265
266
|
variant: n,
|
|
266
267
|
showIcon: !1,
|
|
267
|
-
"data-testid":
|
|
268
|
-
children:
|
|
268
|
+
"data-testid": t,
|
|
269
|
+
children: a
|
|
269
270
|
}
|
|
270
|
-
) : null,
|
|
271
|
+
) : null, Tr = {
|
|
271
272
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
272
|
-
},
|
|
273
|
-
["data-testid"]:
|
|
273
|
+
}, Pr = c.bind(Tr), Rr = "purpur-card-content", Hr = ({
|
|
274
|
+
["data-testid"]: t = "purpur-card-content",
|
|
274
275
|
children: n
|
|
275
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
276
|
+
}) => /* @__PURE__ */ s("div", { className: Pr(Rr), "data-testid": t, children: n }), Br = {
|
|
276
277
|
"purpur-card-content-container": "_purpur-card-content-container_putaw_1",
|
|
277
278
|
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_putaw_12",
|
|
278
279
|
"purpur-card-content-container--gap-size--sm": "_purpur-card-content-container--gap-size--sm_putaw_20",
|
|
279
280
|
"purpur-card-content-container--gap-size--md": "_purpur-card-content-container--gap-size--md_putaw_23",
|
|
280
281
|
"purpur-card-content-container--gap-size--lg": "_purpur-card-content-container--gap-size--lg_putaw_26"
|
|
281
|
-
},
|
|
282
|
-
["data-testid"]:
|
|
282
|
+
}, Dr = c.bind(Br), z = "purpur-card-content-container", Vr = ({
|
|
283
|
+
["data-testid"]: t = "purpur-card-content-container",
|
|
283
284
|
children: n,
|
|
284
|
-
isFooter:
|
|
285
|
+
isFooter: a = !1,
|
|
285
286
|
gapSize: p = "md"
|
|
286
287
|
}) => /* @__PURE__ */ s(
|
|
287
288
|
"div",
|
|
288
289
|
{
|
|
289
|
-
className:
|
|
290
|
+
className: Dr([
|
|
290
291
|
z,
|
|
291
292
|
`${z}--gap-size--${p}`,
|
|
292
293
|
{
|
|
293
|
-
[`${z}--footer`]:
|
|
294
|
+
[`${z}--footer`]: a
|
|
294
295
|
}
|
|
295
296
|
]),
|
|
296
|
-
"data-testid":
|
|
297
|
+
"data-testid": t,
|
|
297
298
|
children: n
|
|
298
299
|
}
|
|
299
300
|
);
|
|
300
|
-
function
|
|
301
|
-
return
|
|
301
|
+
function Fr(t) {
|
|
302
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
302
303
|
}
|
|
303
|
-
var
|
|
304
|
+
var K = { exports: {} };
|
|
304
305
|
/*!
|
|
305
306
|
Copyright (c) 2018 Jed Watson.
|
|
306
307
|
Licensed under the MIT License (MIT), see
|
|
307
308
|
http://jedwatson.github.io/classnames
|
|
308
309
|
*/
|
|
309
|
-
(function(
|
|
310
|
+
(function(t) {
|
|
310
311
|
(function() {
|
|
311
312
|
var n = {}.hasOwnProperty;
|
|
312
|
-
function
|
|
313
|
+
function a() {
|
|
313
314
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
314
315
|
var u = arguments[e];
|
|
315
316
|
u && (r = i(r, p(u)));
|
|
@@ -322,7 +323,7 @@ var J = { exports: {} };
|
|
|
322
323
|
if (typeof r != "object")
|
|
323
324
|
return "";
|
|
324
325
|
if (Array.isArray(r))
|
|
325
|
-
return
|
|
326
|
+
return a.apply(null, r);
|
|
326
327
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
327
328
|
return r.toString();
|
|
328
329
|
var e = "";
|
|
@@ -333,46 +334,46 @@ var J = { exports: {} };
|
|
|
333
334
|
function i(r, e) {
|
|
334
335
|
return e ? r ? r + " " + e : r + e : r;
|
|
335
336
|
}
|
|
336
|
-
|
|
337
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
337
338
|
})();
|
|
338
|
-
})(
|
|
339
|
-
var
|
|
340
|
-
const T = /* @__PURE__ */
|
|
339
|
+
})(K);
|
|
340
|
+
var Gr = K.exports;
|
|
341
|
+
const T = /* @__PURE__ */ Fr(Gr), Ur = "_rotate_1xozj_1", Wr = "_dash_1xozj_1", m = {
|
|
341
342
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
342
|
-
rotate:
|
|
343
|
+
rotate: Ur,
|
|
343
344
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
344
345
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
345
346
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
346
347
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
347
348
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
348
349
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
349
|
-
dash:
|
|
350
|
+
dash: Wr,
|
|
350
351
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
351
352
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
352
|
-
},
|
|
353
|
+
}, v = "purpur-spinner", Xr = {
|
|
353
354
|
XXS: "xxs",
|
|
354
355
|
XS: "xs",
|
|
355
356
|
SM: "sm",
|
|
356
357
|
MD: "md",
|
|
357
358
|
LG: "lg"
|
|
358
|
-
},
|
|
359
|
-
["data-testid"]:
|
|
359
|
+
}, Kr = ({
|
|
360
|
+
["data-testid"]: t,
|
|
360
361
|
disabled: n = !1,
|
|
361
|
-
negative:
|
|
362
|
-
size: p =
|
|
362
|
+
negative: a = !1,
|
|
363
|
+
size: p = Xr.SM,
|
|
363
364
|
...i
|
|
364
365
|
}) => /* @__PURE__ */ s(
|
|
365
366
|
"div",
|
|
366
367
|
{
|
|
367
|
-
className: T([v
|
|
368
|
-
"data-testid":
|
|
368
|
+
className: T([m[v], m[`${v}--${p}`]]),
|
|
369
|
+
"data-testid": t,
|
|
369
370
|
...i,
|
|
370
371
|
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
371
372
|
"circle",
|
|
372
373
|
{
|
|
373
|
-
className: T(
|
|
374
|
-
[
|
|
375
|
-
[
|
|
374
|
+
className: T(m[`${v}__circle`], {
|
|
375
|
+
[m[`${v}__circle--disabled`]]: n,
|
|
376
|
+
[m[`${v}__circle--negative`]]: a
|
|
376
377
|
}),
|
|
377
378
|
cx: "25",
|
|
378
379
|
cy: "25",
|
|
@@ -380,7 +381,7 @@ const T = /* @__PURE__ */ Xr(Kr), Wr = "_rotate_1xozj_1", Yr = "_dash_1xozj_1",
|
|
|
380
381
|
}
|
|
381
382
|
) })
|
|
382
383
|
}
|
|
383
|
-
),
|
|
384
|
+
), Yr = {
|
|
384
385
|
"purpur-card-cta--button-styling": "_purpur-card-cta--button-styling_1wc0z_1",
|
|
385
386
|
"purpur-card-cta--button-styling--xs": "_purpur-card-cta--button-styling--xs_1wc0z_33",
|
|
386
387
|
"purpur-card-cta--button-styling--icon-only": "_purpur-card-cta--button-styling--icon-only_1wc0z_36",
|
|
@@ -399,10 +400,10 @@ const T = /* @__PURE__ */ Xr(Kr), Wr = "_rotate_1xozj_1", Yr = "_dash_1xozj_1",
|
|
|
399
400
|
"purpur-card-cta--secondary": "_purpur-card-cta--secondary_1wc0z_131",
|
|
400
401
|
"purpur-card-cta--disabled": "_purpur-card-cta--disabled_1wc0z_131",
|
|
401
402
|
"purpur-card-cta--text": "_purpur-card-cta--text_1wc0z_139"
|
|
402
|
-
},
|
|
403
|
-
["data-testid"]:
|
|
403
|
+
}, Jr = c.bind(Yr), d = "purpur-card-cta", Qr = ({
|
|
404
|
+
["data-testid"]: t = "purpur-card-cta",
|
|
404
405
|
className: n,
|
|
405
|
-
children:
|
|
406
|
+
children: a,
|
|
406
407
|
disabled: p = !1,
|
|
407
408
|
iconPosition: i = "right",
|
|
408
409
|
loading: r = !1,
|
|
@@ -412,7 +413,7 @@ const T = /* @__PURE__ */ Xr(Kr), Wr = "_rotate_1xozj_1", Yr = "_dash_1xozj_1",
|
|
|
412
413
|
}) => /* @__PURE__ */ s(
|
|
413
414
|
"div",
|
|
414
415
|
{
|
|
415
|
-
className: `${
|
|
416
|
+
className: `${Jr([
|
|
416
417
|
d,
|
|
417
418
|
n,
|
|
418
419
|
{
|
|
@@ -425,28 +426,28 @@ const T = /* @__PURE__ */ Xr(Kr), Wr = "_rotate_1xozj_1", Yr = "_dash_1xozj_1",
|
|
|
425
426
|
[`${d}--button-styling--icon-only`]: !u && !e
|
|
426
427
|
}
|
|
427
428
|
])} ${d}`,
|
|
428
|
-
"data-testid":
|
|
429
|
+
"data-testid": t,
|
|
429
430
|
...o,
|
|
430
|
-
children: r ? /* @__PURE__ */ s(
|
|
431
|
-
i === "left" &&
|
|
431
|
+
children: r ? /* @__PURE__ */ s(Kr, { "data-testid": `${t}-spinner`, size: "xs", disabled: p }) : /* @__PURE__ */ h(ir, { children: [
|
|
432
|
+
i === "left" && a,
|
|
432
433
|
e,
|
|
433
|
-
i === "right" &&
|
|
434
|
+
i === "right" && a
|
|
434
435
|
] })
|
|
435
436
|
}
|
|
436
437
|
);
|
|
437
|
-
function
|
|
438
|
-
return
|
|
438
|
+
function rt(t) {
|
|
439
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
439
440
|
}
|
|
440
|
-
var
|
|
441
|
+
var Y = { exports: {} };
|
|
441
442
|
/*!
|
|
442
443
|
Copyright (c) 2018 Jed Watson.
|
|
443
444
|
Licensed under the MIT License (MIT), see
|
|
444
445
|
http://jedwatson.github.io/classnames
|
|
445
446
|
*/
|
|
446
|
-
(function(
|
|
447
|
+
(function(t) {
|
|
447
448
|
(function() {
|
|
448
449
|
var n = {}.hasOwnProperty;
|
|
449
|
-
function
|
|
450
|
+
function a() {
|
|
450
451
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
451
452
|
var u = arguments[e];
|
|
452
453
|
u && (r = i(r, p.call(this, u)));
|
|
@@ -459,7 +460,7 @@ var rr = { exports: {} };
|
|
|
459
460
|
if (typeof r != "object")
|
|
460
461
|
return "";
|
|
461
462
|
if (Array.isArray(r))
|
|
462
|
-
return
|
|
463
|
+
return a.apply(this, r);
|
|
463
464
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
464
465
|
return r.toString();
|
|
465
466
|
var e = "";
|
|
@@ -470,11 +471,11 @@ var rr = { exports: {} };
|
|
|
470
471
|
function i(r, e) {
|
|
471
472
|
return e ? r ? r + " " + e : r + e : r;
|
|
472
473
|
}
|
|
473
|
-
|
|
474
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
474
475
|
})();
|
|
475
|
-
})(
|
|
476
|
-
var
|
|
477
|
-
const
|
|
476
|
+
})(Y);
|
|
477
|
+
var tt = Y.exports;
|
|
478
|
+
const at = /* @__PURE__ */ rt(tt), et = {
|
|
478
479
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
479
480
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
480
481
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -482,77 +483,58 @@ const na = /* @__PURE__ */ ta(ea), ua = {
|
|
|
482
483
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
483
484
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
484
485
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.9 12a.9.9 0 0 1-.264.636l-5.5 5.5a.9.9 0 0 1-1.272-1.272l3.963-3.964H4a.9.9 0 0 1 0-1.8h13.827l-3.963-3.964a.9.9 0 1 1 1.272-1.272l5.5 5.5A.9.9 0 0 1 20.9 12Z" clip-rule="evenodd"/></svg>',
|
|
488
|
-
keywords: ["arrow-right"],
|
|
489
|
-
category: "utility"
|
|
490
|
-
}, ia = {
|
|
491
|
-
name: "checkmark",
|
|
492
|
-
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>',
|
|
493
|
-
keywords: ["checkmark"],
|
|
494
|
-
category: "utility"
|
|
495
|
-
}, ar = (a) => /* @__PURE__ */ s(
|
|
496
|
-
L,
|
|
497
|
-
{
|
|
498
|
-
...a,
|
|
499
|
-
svg: pa
|
|
500
|
-
}
|
|
501
|
-
);
|
|
502
|
-
ar.displayName = "IconArrowRight";
|
|
503
|
-
const tr = (a) => /* @__PURE__ */ s(
|
|
504
|
-
L,
|
|
505
|
-
{
|
|
506
|
-
...a,
|
|
507
|
-
svg: ia
|
|
508
|
-
}
|
|
509
|
-
);
|
|
510
|
-
tr.displayName = "IconCheckmark";
|
|
511
|
-
const sa = na.bind(ua), H = "purpur-icon", oa = "md", ca = (a) => a.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), la = ({ content: a = "", title: n } = {}) => {
|
|
512
|
-
const t = [
|
|
486
|
+
}, nt = at.bind(et), P = "purpur-icon", ut = "md", pt = (t) => t.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), it = ({ content: t = "", title: n } = {}) => {
|
|
487
|
+
const a = [
|
|
513
488
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
514
489
|
{ name: "fill", value: "currentColor" },
|
|
515
490
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
516
491
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
517
492
|
], p = n ? `<title>${n}</title>` : "";
|
|
518
|
-
return `<svg ${
|
|
519
|
-
},
|
|
520
|
-
["data-testid"]:
|
|
493
|
+
return `<svg ${pt(a)}>${p}${t}</svg>`;
|
|
494
|
+
}, st = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), J = ({
|
|
495
|
+
["data-testid"]: t,
|
|
521
496
|
svg: n,
|
|
522
|
-
allyTitle:
|
|
497
|
+
allyTitle: a,
|
|
523
498
|
className: p,
|
|
524
|
-
size: i =
|
|
499
|
+
size: i = ut,
|
|
525
500
|
...r
|
|
526
501
|
}) => {
|
|
527
|
-
const e =
|
|
528
|
-
content:
|
|
529
|
-
title:
|
|
530
|
-
}), u =
|
|
502
|
+
const e = it({
|
|
503
|
+
content: st(n.svg),
|
|
504
|
+
title: a
|
|
505
|
+
}), u = nt(p, P, `${P}--${i}`);
|
|
531
506
|
return /* @__PURE__ */ s(
|
|
532
507
|
"span",
|
|
533
508
|
{
|
|
534
|
-
"aria-label":
|
|
509
|
+
"aria-label": a,
|
|
535
510
|
className: u,
|
|
536
|
-
"data-testid":
|
|
511
|
+
"data-testid": t,
|
|
537
512
|
dangerouslySetInnerHTML: { __html: e },
|
|
538
513
|
...r
|
|
539
514
|
}
|
|
540
515
|
);
|
|
541
516
|
};
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
517
|
+
J.displayName = "Icon";
|
|
518
|
+
const ot = {
|
|
519
|
+
name: "checkmark",
|
|
520
|
+
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>',
|
|
521
|
+
keywords: ["checkmark"],
|
|
522
|
+
category: "utility"
|
|
523
|
+
}, Q = (t) => /* @__PURE__ */ s(J, { ...t, svg: ot });
|
|
524
|
+
Q.displayName = "IconCheckmark";
|
|
525
|
+
function ct(t) {
|
|
526
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
545
527
|
}
|
|
546
|
-
var
|
|
528
|
+
var rr = { exports: {} };
|
|
547
529
|
/*!
|
|
548
530
|
Copyright (c) 2018 Jed Watson.
|
|
549
531
|
Licensed under the MIT License (MIT), see
|
|
550
532
|
http://jedwatson.github.io/classnames
|
|
551
533
|
*/
|
|
552
|
-
(function(
|
|
534
|
+
(function(t) {
|
|
553
535
|
(function() {
|
|
554
536
|
var n = {}.hasOwnProperty;
|
|
555
|
-
function
|
|
537
|
+
function a() {
|
|
556
538
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
557
539
|
var u = arguments[e];
|
|
558
540
|
u && (r = i(r, p(u)));
|
|
@@ -565,7 +547,7 @@ var er = { exports: {} };
|
|
|
565
547
|
if (typeof r != "object")
|
|
566
548
|
return "";
|
|
567
549
|
if (Array.isArray(r))
|
|
568
|
-
return
|
|
550
|
+
return a.apply(null, r);
|
|
569
551
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
570
552
|
return r.toString();
|
|
571
553
|
var e = "";
|
|
@@ -576,11 +558,11 @@ var er = { exports: {} };
|
|
|
576
558
|
function i(r, e) {
|
|
577
559
|
return e ? r ? r + " " + e : r + e : r;
|
|
578
560
|
}
|
|
579
|
-
|
|
561
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
580
562
|
})();
|
|
581
|
-
})(
|
|
582
|
-
var
|
|
583
|
-
const
|
|
563
|
+
})(rr);
|
|
564
|
+
var lt = rr.exports;
|
|
565
|
+
const dt = /* @__PURE__ */ ct(lt), y = {
|
|
584
566
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
585
567
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
586
568
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -595,7 +577,7 @@ const ha = /* @__PURE__ */ _a(ga), b = {
|
|
|
595
577
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
596
578
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
597
579
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
598
|
-
},
|
|
580
|
+
}, _t = {
|
|
599
581
|
PARAGRAPH100: "paragraph-100",
|
|
600
582
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
601
583
|
PARAGRAPH100BOLD: "paragraph-100-bold",
|
|
@@ -606,60 +588,60 @@ const ha = /* @__PURE__ */ _a(ga), b = {
|
|
|
606
588
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
607
589
|
OVERLINE100: "overline-100",
|
|
608
590
|
OVERLINE200: "overline-200"
|
|
609
|
-
},
|
|
610
|
-
["data-testid"]:
|
|
591
|
+
}, b = "purpur-paragraph", k = ({
|
|
592
|
+
["data-testid"]: t,
|
|
611
593
|
children: n,
|
|
612
|
-
className:
|
|
594
|
+
className: a,
|
|
613
595
|
disabled: p,
|
|
614
596
|
enableHyphenation: i = !1,
|
|
615
597
|
negative: r = !1,
|
|
616
|
-
variant: e =
|
|
598
|
+
variant: e = _t.PARAGRAPH100,
|
|
617
599
|
...u
|
|
618
600
|
}) => {
|
|
619
|
-
const o =
|
|
620
|
-
|
|
621
|
-
b
|
|
622
|
-
|
|
601
|
+
const o = dt([
|
|
602
|
+
a,
|
|
603
|
+
y[b],
|
|
604
|
+
y[`${b}--${e}`],
|
|
623
605
|
{
|
|
624
|
-
[
|
|
625
|
-
[
|
|
626
|
-
[
|
|
606
|
+
[y[`${b}--hyphens`]]: i,
|
|
607
|
+
[y[`${b}--disabled`]]: p,
|
|
608
|
+
[y[`${b}--negative`]]: r
|
|
627
609
|
}
|
|
628
610
|
]);
|
|
629
|
-
return /* @__PURE__ */ s("p", { ...u, className: o, "data-testid":
|
|
611
|
+
return /* @__PURE__ */ s("p", { ...u, className: o, "data-testid": t, children: n });
|
|
630
612
|
};
|
|
631
|
-
|
|
632
|
-
const
|
|
613
|
+
k.displayName = "Paragraph";
|
|
614
|
+
const gt = {
|
|
633
615
|
"purpur-card-feature-list": "_purpur-card-feature-list_ej4qm_1",
|
|
634
616
|
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_ej4qm_6"
|
|
635
|
-
},
|
|
636
|
-
["data-testid"]:
|
|
617
|
+
}, R = c.bind(gt), H = "purpur-card-feature-list", ht = ({
|
|
618
|
+
["data-testid"]: t = "purpur-card-feature-list",
|
|
637
619
|
listItems: n
|
|
638
|
-
}) => n && n.length > 0 ? /* @__PURE__ */ s("ul", { className:
|
|
620
|
+
}) => n && n.length > 0 ? /* @__PURE__ */ s("ul", { className: R(H), "data-testid": t, children: n.map((a) => /* @__PURE__ */ h(
|
|
639
621
|
"li",
|
|
640
622
|
{
|
|
641
|
-
className:
|
|
642
|
-
"data-testid": `${
|
|
623
|
+
className: R(`${H}__list-item`),
|
|
624
|
+
"data-testid": `${t}-item`,
|
|
643
625
|
children: [
|
|
644
|
-
/* @__PURE__ */ s(
|
|
645
|
-
/* @__PURE__ */ s(
|
|
626
|
+
/* @__PURE__ */ s(Q, { size: "xs" }),
|
|
627
|
+
/* @__PURE__ */ s(k, { children: a })
|
|
646
628
|
]
|
|
647
629
|
},
|
|
648
|
-
|
|
630
|
+
a
|
|
649
631
|
)) }) : null;
|
|
650
|
-
function
|
|
651
|
-
return
|
|
632
|
+
function ft(t) {
|
|
633
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
652
634
|
}
|
|
653
|
-
var
|
|
635
|
+
var tr = { exports: {} };
|
|
654
636
|
/*!
|
|
655
637
|
Copyright (c) 2018 Jed Watson.
|
|
656
638
|
Licensed under the MIT License (MIT), see
|
|
657
639
|
http://jedwatson.github.io/classnames
|
|
658
640
|
*/
|
|
659
|
-
(function(
|
|
641
|
+
(function(t) {
|
|
660
642
|
(function() {
|
|
661
643
|
var n = {}.hasOwnProperty;
|
|
662
|
-
function
|
|
644
|
+
function a() {
|
|
663
645
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
664
646
|
var u = arguments[e];
|
|
665
647
|
u && (r = i(r, p(u)));
|
|
@@ -672,7 +654,7 @@ var nr = { exports: {} };
|
|
|
672
654
|
if (typeof r != "object")
|
|
673
655
|
return "";
|
|
674
656
|
if (Array.isArray(r))
|
|
675
|
-
return
|
|
657
|
+
return a.apply(null, r);
|
|
676
658
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
677
659
|
return r.toString();
|
|
678
660
|
var e = "";
|
|
@@ -683,11 +665,11 @@ var nr = { exports: {} };
|
|
|
683
665
|
function i(r, e) {
|
|
684
666
|
return e ? r ? r + " " + e : r + e : r;
|
|
685
667
|
}
|
|
686
|
-
|
|
668
|
+
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
687
669
|
})();
|
|
688
|
-
})(
|
|
689
|
-
var
|
|
690
|
-
const
|
|
670
|
+
})(tr);
|
|
671
|
+
var mt = tr.exports;
|
|
672
|
+
const vt = /* @__PURE__ */ ft(mt), N = {
|
|
691
673
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
692
674
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
693
675
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -703,7 +685,7 @@ const wa = /* @__PURE__ */ ya(ba), k = {
|
|
|
703
685
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
704
686
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
705
687
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
706
|
-
},
|
|
688
|
+
}, yt = {
|
|
707
689
|
TITLE100: "title-100",
|
|
708
690
|
TITLE200: "title-200",
|
|
709
691
|
TITLE300: "title-300",
|
|
@@ -712,173 +694,135 @@ const wa = /* @__PURE__ */ ya(ba), k = {
|
|
|
712
694
|
TITLE600: "title-600",
|
|
713
695
|
TITLE700: "title-700",
|
|
714
696
|
SUBSECTION100: "subsection-100"
|
|
715
|
-
}, C = "purpur-heading",
|
|
716
|
-
["data-testid"]:
|
|
697
|
+
}, C = "purpur-heading", ar = ({
|
|
698
|
+
["data-testid"]: t,
|
|
717
699
|
children: n,
|
|
718
|
-
className:
|
|
700
|
+
className: a = "",
|
|
719
701
|
enableHyphenation: p = !1,
|
|
720
702
|
negative: i = !1,
|
|
721
703
|
tag: r,
|
|
722
|
-
variant: e =
|
|
704
|
+
variant: e = yt.TITLE100,
|
|
723
705
|
...u
|
|
724
706
|
}) => {
|
|
725
|
-
const o = r,
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
707
|
+
const o = r, A = vt([
|
|
708
|
+
a,
|
|
709
|
+
N[C],
|
|
710
|
+
N[`${C}--${e}`],
|
|
729
711
|
{
|
|
730
|
-
[
|
|
731
|
-
[
|
|
712
|
+
[N[`${C}--hyphens`]]: p,
|
|
713
|
+
[N[`${C}--negative`]]: i
|
|
732
714
|
}
|
|
733
715
|
]);
|
|
734
|
-
return /* @__PURE__ */ s(o, { ...u, className:
|
|
716
|
+
return /* @__PURE__ */ s(o, { ...u, className: A, "data-testid": t, children: n });
|
|
735
717
|
};
|
|
736
|
-
|
|
737
|
-
const
|
|
718
|
+
ar.displayName = "Heading";
|
|
719
|
+
const bt = {
|
|
738
720
|
"purpur-card-heading": "_purpur-card-heading_8heg4_1",
|
|
739
721
|
"purpur-card-heading__heading": "_purpur-card-heading__heading_8heg4_6",
|
|
740
722
|
"purpur-card-heading__icon": "_purpur-card-heading__icon_8heg4_11"
|
|
741
|
-
}, O = c.bind(
|
|
742
|
-
["data-testid"]:
|
|
723
|
+
}, O = c.bind(bt), j = "purpur-card-heading", $t = ({
|
|
724
|
+
["data-testid"]: t = "purpur-card-heading",
|
|
743
725
|
title: n,
|
|
744
|
-
icon:
|
|
726
|
+
icon: a,
|
|
745
727
|
children: p,
|
|
746
728
|
titleTag: i = "h2"
|
|
747
|
-
}) => /* @__PURE__ */
|
|
748
|
-
/* @__PURE__ */
|
|
749
|
-
|
|
750
|
-
/* @__PURE__ */ s(
|
|
729
|
+
}) => /* @__PURE__ */ h("div", { className: O(j), "data-testid": t, children: [
|
|
730
|
+
/* @__PURE__ */ h("div", { className: O(`${j}__heading`), children: [
|
|
731
|
+
a && /* @__PURE__ */ s("div", { className: O(`${j}__icon`), children: a }),
|
|
732
|
+
/* @__PURE__ */ s(ar, { tag: i, variant: "title-100", children: n })
|
|
751
733
|
] }),
|
|
752
734
|
p
|
|
753
|
-
] }),
|
|
754
|
-
"purpur-card-link-arrow": "_purpur-card-link-arrow_blsmb_1",
|
|
755
|
-
"purpur-card-link-arrow--xs": "_purpur-card-link-arrow--xs_blsmb_33",
|
|
756
|
-
"purpur-card-link-arrow--icon-only": "_purpur-card-link-arrow--icon-only_blsmb_36",
|
|
757
|
-
"purpur-card-link-arrow--sm": "_purpur-card-link-arrow--sm_blsmb_39",
|
|
758
|
-
"purpur-card-link-arrow--md": "_purpur-card-link-arrow--md_blsmb_45",
|
|
759
|
-
"purpur-card-link-arrow--lg": "_purpur-card-link-arrow--lg_blsmb_51",
|
|
760
|
-
"purpur-card-link-arrow--full-width": "_purpur-card-link-arrow--full-width_blsmb_57",
|
|
761
|
-
"purpur-card-link-arrow--primary": "_purpur-card-link-arrow--primary_blsmb_60",
|
|
762
|
-
"purpur-card-link-arrow--disabled": "_purpur-card-link-arrow--disabled_blsmb_64",
|
|
763
|
-
"purpur-card-link-arrow--primary-negative": "_purpur-card-link-arrow--primary-negative_blsmb_70",
|
|
764
|
-
"purpur-card-link-arrow--secondary": "_purpur-card-link-arrow--secondary_blsmb_82",
|
|
765
|
-
"purpur-card-link-arrow--secondary-negative": "_purpur-card-link-arrow--secondary-negative_blsmb_93",
|
|
766
|
-
"purpur-card-link-arrow--expressive": "_purpur-card-link-arrow--expressive_blsmb_104",
|
|
767
|
-
"purpur-card-link-arrow--expressive-negative": "_purpur-card-link-arrow--expressive-negative_blsmb_114"
|
|
768
|
-
}, Ca = c.bind(ka), h = "purpur-card-link-arrow", Aa = ({
|
|
769
|
-
["data-testid"]: a = "purpur-card-link-arrow",
|
|
770
|
-
className: n,
|
|
771
|
-
disabled: t = !1,
|
|
772
|
-
loading: p = !1,
|
|
773
|
-
...i
|
|
774
|
-
}) => /* @__PURE__ */ s(
|
|
775
|
-
"div",
|
|
776
|
-
{
|
|
777
|
-
className: `${Ca([
|
|
778
|
-
h,
|
|
779
|
-
n,
|
|
780
|
-
`${h}--md`,
|
|
781
|
-
`${h}--icon-only`,
|
|
782
|
-
`${h}--secondary`,
|
|
783
|
-
{
|
|
784
|
-
[`${h}--disabled`]: t
|
|
785
|
-
}
|
|
786
|
-
])} ${h}`,
|
|
787
|
-
"data-testid": a,
|
|
788
|
-
...i,
|
|
789
|
-
children: p ? /* @__PURE__ */ s(Q, { "data-testid": `${a}-spinner`, size: "xs", disabled: t }) : /* @__PURE__ */ s(ar, { "data-testid": `${a}-arrow`, size: "md" })
|
|
790
|
-
}
|
|
791
|
-
), Sa = {
|
|
735
|
+
] }), wt = {
|
|
792
736
|
"purpur-card-media": "_purpur-card-media_udc1o_1"
|
|
793
|
-
},
|
|
794
|
-
["data-testid"]:
|
|
737
|
+
}, xt = c.bind(wt), Nt = "purpur-card-media", Ct = ({
|
|
738
|
+
["data-testid"]: t = "purpur-card-media",
|
|
795
739
|
className: n,
|
|
796
|
-
children:
|
|
797
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
740
|
+
children: a
|
|
741
|
+
}) => /* @__PURE__ */ s("div", { className: xt([Nt, n]), "data-testid": t, children: a }), St = {
|
|
798
742
|
"purpur-card-media-layout": "_purpur-card-media-layout_1yfvb_1"
|
|
799
|
-
},
|
|
800
|
-
["data-testid"]:
|
|
743
|
+
}, At = c.bind(St), zt = "purpur-card-media-layout", Ot = ({
|
|
744
|
+
["data-testid"]: t = "purpur-card-media-layout",
|
|
801
745
|
className: n,
|
|
802
|
-
children:
|
|
803
|
-
}) => /* @__PURE__ */ s("div", { className:
|
|
746
|
+
children: a
|
|
747
|
+
}) => /* @__PURE__ */ s("div", { className: At([zt, n]), "data-testid": t, children: a }), jt = {
|
|
804
748
|
"purpur-card-overline": "_purpur-card-overline_192fe_1"
|
|
805
|
-
},
|
|
806
|
-
["data-testid"]:
|
|
749
|
+
}, Mt = c.bind(jt), qt = "purpur-card-overline", Et = ({
|
|
750
|
+
["data-testid"]: t = "purpur-card-overline",
|
|
807
751
|
overline: n
|
|
808
|
-
}) => n ? /* @__PURE__ */ s(
|
|
752
|
+
}) => n ? /* @__PURE__ */ s(k, { className: Mt(qt), "data-testid": t, children: n }) : null, kt = {
|
|
809
753
|
"purpur-card-root": "_purpur-card-root_bqk1d_1",
|
|
810
754
|
"purpur-card-root--primary": "_purpur-card-root--primary_bqk1d_8",
|
|
811
755
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_bqk1d_11",
|
|
812
756
|
"purpur-card-root--full-height": "_purpur-card-root--full-height_bqk1d_14"
|
|
813
|
-
},
|
|
757
|
+
}, Zt = {
|
|
814
758
|
"purpur-card-trigger-item": "_purpur-card-trigger-item_1sp43_1",
|
|
815
759
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_1sp43_6",
|
|
816
760
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_1sp43_11"
|
|
817
761
|
};
|
|
818
762
|
function f() {
|
|
819
|
-
return f = Object.assign ? Object.assign.bind() : function(
|
|
763
|
+
return f = Object.assign ? Object.assign.bind() : function(t) {
|
|
820
764
|
for (var n = 1; n < arguments.length; n++) {
|
|
821
|
-
var
|
|
822
|
-
for (var p in
|
|
765
|
+
var a = arguments[n];
|
|
766
|
+
for (var p in a) ({}).hasOwnProperty.call(a, p) && (t[p] = a[p]);
|
|
823
767
|
}
|
|
824
|
-
return
|
|
768
|
+
return t;
|
|
825
769
|
}, f.apply(null, arguments);
|
|
826
770
|
}
|
|
827
|
-
function
|
|
828
|
-
typeof
|
|
771
|
+
function It(t, n) {
|
|
772
|
+
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
829
773
|
}
|
|
830
|
-
function
|
|
831
|
-
return (n) =>
|
|
832
|
-
(
|
|
774
|
+
function Lt(...t) {
|
|
775
|
+
return (n) => t.forEach(
|
|
776
|
+
(a) => It(a, n)
|
|
833
777
|
);
|
|
834
778
|
}
|
|
835
|
-
const
|
|
836
|
-
const { children:
|
|
779
|
+
const er = /* @__PURE__ */ x((t, n) => {
|
|
780
|
+
const { children: a, ...p } = t, i = $.toArray(a), r = i.find(Pt);
|
|
837
781
|
if (r) {
|
|
838
|
-
const e = r.props.children, u = i.map((o) => o === r ? $.count(e) > 1 ? $.only(null) : /* @__PURE__ */
|
|
839
|
-
return /* @__PURE__ */
|
|
782
|
+
const e = r.props.children, u = i.map((o) => o === r ? $.count(e) > 1 ? $.only(null) : /* @__PURE__ */ S(e) ? e.props.children : null : o);
|
|
783
|
+
return /* @__PURE__ */ w(E, f({}, p, {
|
|
840
784
|
ref: n
|
|
841
|
-
}), /* @__PURE__ */
|
|
785
|
+
}), /* @__PURE__ */ S(e) ? /* @__PURE__ */ F(e, void 0, u) : null);
|
|
842
786
|
}
|
|
843
|
-
return /* @__PURE__ */
|
|
787
|
+
return /* @__PURE__ */ w(E, f({}, p, {
|
|
844
788
|
ref: n
|
|
845
|
-
}),
|
|
789
|
+
}), a);
|
|
846
790
|
});
|
|
847
|
-
|
|
848
|
-
const
|
|
849
|
-
const { children:
|
|
850
|
-
return /* @__PURE__ */
|
|
851
|
-
...
|
|
852
|
-
ref: n ?
|
|
853
|
-
}) : $.count(
|
|
791
|
+
er.displayName = "Slot";
|
|
792
|
+
const E = /* @__PURE__ */ x((t, n) => {
|
|
793
|
+
const { children: a, ...p } = t;
|
|
794
|
+
return /* @__PURE__ */ S(a) ? /* @__PURE__ */ F(a, {
|
|
795
|
+
...Rt(p, a.props),
|
|
796
|
+
ref: n ? Lt(n, a.ref) : a.ref
|
|
797
|
+
}) : $.count(a) > 1 ? $.only(null) : null;
|
|
854
798
|
});
|
|
855
|
-
|
|
856
|
-
const
|
|
857
|
-
function
|
|
858
|
-
return /* @__PURE__ */
|
|
799
|
+
E.displayName = "SlotClone";
|
|
800
|
+
const Tt = ({ children: t }) => /* @__PURE__ */ w(or, null, t);
|
|
801
|
+
function Pt(t) {
|
|
802
|
+
return /* @__PURE__ */ S(t) && t.type === Tt;
|
|
859
803
|
}
|
|
860
|
-
function
|
|
861
|
-
const
|
|
804
|
+
function Rt(t, n) {
|
|
805
|
+
const a = {
|
|
862
806
|
...n
|
|
863
807
|
};
|
|
864
808
|
for (const p in n) {
|
|
865
|
-
const i =
|
|
866
|
-
/^on[A-Z]/.test(p) ? i && r ?
|
|
809
|
+
const i = t[p], r = n[p];
|
|
810
|
+
/^on[A-Z]/.test(p) ? i && r ? a[p] = (...e) => {
|
|
867
811
|
r(...e), i(...e);
|
|
868
|
-
} : i && (
|
|
812
|
+
} : i && (a[p] = i) : p === "style" ? a[p] = {
|
|
869
813
|
...i,
|
|
870
814
|
...r
|
|
871
|
-
} : p === "className" && (
|
|
815
|
+
} : p === "className" && (a[p] = [
|
|
872
816
|
i,
|
|
873
817
|
r
|
|
874
818
|
].filter(Boolean).join(" "));
|
|
875
819
|
}
|
|
876
820
|
return {
|
|
877
|
-
...
|
|
878
|
-
...
|
|
821
|
+
...t,
|
|
822
|
+
...a
|
|
879
823
|
};
|
|
880
824
|
}
|
|
881
|
-
const
|
|
825
|
+
const Ht = [
|
|
882
826
|
"a",
|
|
883
827
|
"button",
|
|
884
828
|
"div",
|
|
@@ -895,20 +839,20 @@ const Ua = [
|
|
|
895
839
|
"span",
|
|
896
840
|
"svg",
|
|
897
841
|
"ul"
|
|
898
|
-
],
|
|
899
|
-
const
|
|
900
|
-
const { asChild: r, ...e } = p, u = r ?
|
|
901
|
-
return
|
|
842
|
+
], Bt = Ht.reduce((t, n) => {
|
|
843
|
+
const a = /* @__PURE__ */ x((p, i) => {
|
|
844
|
+
const { asChild: r, ...e } = p, u = r ? er : n;
|
|
845
|
+
return sr(() => {
|
|
902
846
|
window[Symbol.for("radix-ui")] = !0;
|
|
903
|
-
}, []), /* @__PURE__ */
|
|
847
|
+
}, []), /* @__PURE__ */ w(u, f({}, e, {
|
|
904
848
|
ref: i
|
|
905
849
|
}));
|
|
906
850
|
});
|
|
907
|
-
return
|
|
908
|
-
...
|
|
909
|
-
[n]:
|
|
851
|
+
return a.displayName = `Primitive.${n}`, {
|
|
852
|
+
...t,
|
|
853
|
+
[n]: a
|
|
910
854
|
};
|
|
911
|
-
}, {}),
|
|
855
|
+
}, {}), Dt = /* @__PURE__ */ x((t, n) => /* @__PURE__ */ w(Bt.span, f({}, t, {
|
|
912
856
|
ref: n,
|
|
913
857
|
style: {
|
|
914
858
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -922,84 +866,84 @@ const Ua = [
|
|
|
922
866
|
clip: "rect(0, 0, 0, 0)",
|
|
923
867
|
whiteSpace: "nowrap",
|
|
924
868
|
wordWrap: "normal",
|
|
925
|
-
...
|
|
869
|
+
...t.style
|
|
926
870
|
}
|
|
927
|
-
}))),
|
|
928
|
-
asChild:
|
|
871
|
+
}))), Vt = Dt, B = ({
|
|
872
|
+
asChild: t,
|
|
929
873
|
children: n,
|
|
930
|
-
className:
|
|
874
|
+
className: a = "",
|
|
931
875
|
["data-testid"]: p
|
|
932
|
-
}) => /* @__PURE__ */ s(
|
|
933
|
-
["data-testid"]:
|
|
876
|
+
}) => /* @__PURE__ */ s(Vt, { asChild: t, "data-testid": p, className: a, children: n }), D = c.bind(Zt), g = "purpur-card-trigger-item", Ft = ({
|
|
877
|
+
["data-testid"]: t = "purpur-card-trigger-item",
|
|
934
878
|
disabled: n = !1,
|
|
935
|
-
href:
|
|
879
|
+
href: a,
|
|
936
880
|
onClick: p,
|
|
937
881
|
screenReaderText: i
|
|
938
882
|
}) => {
|
|
939
883
|
const r = (u) => {
|
|
940
884
|
n ? u.preventDefault() : p && p();
|
|
941
885
|
}, e = `${g} ${n ? `${g}--disabled` : ""}`;
|
|
942
|
-
return
|
|
886
|
+
return a ? (
|
|
943
887
|
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
944
888
|
/* @__PURE__ */ s(
|
|
945
889
|
"a",
|
|
946
890
|
{
|
|
947
891
|
"aria-disabled": n,
|
|
948
|
-
className: `${
|
|
892
|
+
className: `${D([
|
|
949
893
|
g,
|
|
950
894
|
{
|
|
951
895
|
[`${g}--disabled`]: n
|
|
952
896
|
}
|
|
953
897
|
])} ${e}`,
|
|
954
|
-
"data-testid":
|
|
955
|
-
href: n ? void 0 :
|
|
898
|
+
"data-testid": t,
|
|
899
|
+
href: n ? void 0 : a,
|
|
956
900
|
tabIndex: n ? 0 : void 0,
|
|
957
901
|
onClick: r,
|
|
958
|
-
children: /* @__PURE__ */ s(
|
|
902
|
+
children: /* @__PURE__ */ s(B, { children: i })
|
|
959
903
|
}
|
|
960
904
|
)
|
|
961
905
|
) : /* @__PURE__ */ s(
|
|
962
906
|
"button",
|
|
963
907
|
{
|
|
964
908
|
"aria-disabled": n,
|
|
965
|
-
className: `${
|
|
909
|
+
className: `${D([
|
|
966
910
|
g,
|
|
967
911
|
`${g}--button`,
|
|
968
912
|
{
|
|
969
913
|
[`${g}--disabled`]: n
|
|
970
914
|
}
|
|
971
915
|
])} ${e}`,
|
|
972
|
-
"data-testid":
|
|
916
|
+
"data-testid": t,
|
|
973
917
|
type: "button",
|
|
974
918
|
onClick: r,
|
|
975
|
-
children: /* @__PURE__ */ s(
|
|
919
|
+
children: /* @__PURE__ */ s(B, { children: i })
|
|
976
920
|
}
|
|
977
921
|
);
|
|
978
|
-
},
|
|
922
|
+
}, Gt = c.bind(kt), M = "purpur-card-root", nr = x(
|
|
979
923
|
({
|
|
980
|
-
["data-testid"]:
|
|
924
|
+
["data-testid"]: t = "purpur-card-root",
|
|
981
925
|
children: n,
|
|
982
|
-
className:
|
|
926
|
+
className: a,
|
|
983
927
|
disabled: p,
|
|
984
928
|
fullHeight: i,
|
|
985
929
|
href: r,
|
|
986
930
|
onClick: e,
|
|
987
931
|
screenReaderText: u,
|
|
988
932
|
variant: o,
|
|
989
|
-
...
|
|
990
|
-
},
|
|
991
|
-
const
|
|
933
|
+
...A
|
|
934
|
+
}, ur) => {
|
|
935
|
+
const pr = Gt([
|
|
992
936
|
M,
|
|
993
|
-
|
|
937
|
+
a,
|
|
994
938
|
{
|
|
995
939
|
[`${M}--${o}`]: o,
|
|
996
940
|
[`${M}--full-height`]: i
|
|
997
941
|
}
|
|
998
942
|
]);
|
|
999
|
-
return /* @__PURE__ */
|
|
943
|
+
return /* @__PURE__ */ h("div", { className: pr, "data-testid": t, ref: ur, ...A, children: [
|
|
1000
944
|
n,
|
|
1001
945
|
(e || r) && u && /* @__PURE__ */ s(
|
|
1002
|
-
|
|
946
|
+
Ft,
|
|
1003
947
|
{
|
|
1004
948
|
disabled: p,
|
|
1005
949
|
href: r,
|
|
@@ -1010,28 +954,27 @@ const Ua = [
|
|
|
1010
954
|
] });
|
|
1011
955
|
}
|
|
1012
956
|
);
|
|
1013
|
-
|
|
1014
|
-
const
|
|
1015
|
-
const p =
|
|
1016
|
-
|
|
957
|
+
nr.displayName = "CardRoot";
|
|
958
|
+
const V = c.bind(dr), q = "purpur-card", l = ({ children: t, className: n, ...a }) => {
|
|
959
|
+
const p = V([
|
|
960
|
+
q,
|
|
1017
961
|
n,
|
|
1018
962
|
{
|
|
1019
|
-
[`${
|
|
1020
|
-
[`${
|
|
963
|
+
[`${q}--is-interactive`]: a.onClick || a.href,
|
|
964
|
+
[`${q}--disabled`]: a.disabled
|
|
1021
965
|
}
|
|
1022
966
|
]);
|
|
1023
|
-
return /* @__PURE__ */ s(
|
|
967
|
+
return /* @__PURE__ */ s(nr, { className: V(p), ...a, children: t });
|
|
1024
968
|
};
|
|
1025
|
-
l.Badge =
|
|
1026
|
-
l.
|
|
1027
|
-
l.
|
|
1028
|
-
l.
|
|
1029
|
-
l.
|
|
1030
|
-
l.
|
|
1031
|
-
l.
|
|
1032
|
-
l.
|
|
1033
|
-
l.
|
|
1034
|
-
l.MediaLayout = La;
|
|
969
|
+
l.Badge = Lr;
|
|
970
|
+
l.Content = Hr;
|
|
971
|
+
l.ContentContainer = Vr;
|
|
972
|
+
l.Cta = Qr;
|
|
973
|
+
l.FeatureList = ht;
|
|
974
|
+
l.Overline = Et;
|
|
975
|
+
l.Heading = $t;
|
|
976
|
+
l.Media = Ct;
|
|
977
|
+
l.MediaLayout = Ot;
|
|
1035
978
|
l.displayName = "Card";
|
|
1036
979
|
export {
|
|
1037
980
|
l as Card
|