@purpurds/card 6.3.1 → 6.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 +6 -6
- package/dist/card.cjs.js +8 -8
- package/dist/card.cjs.js.map +1 -1
- package/dist/card.es.js +234 -215
- package/dist/card.es.js.map +1 -1
- package/package.json +12 -12
package/dist/card.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as f, jsx as o, Fragment as
|
|
1
|
+
import { jsxs as f, jsx as o, Fragment as er } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as _r } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
function
|
|
5
|
+
function gr(t) {
|
|
6
6
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7
7
|
}
|
|
8
8
|
var N = { exports: {} };
|
|
@@ -12,7 +12,7 @@ var N = { exports: {} };
|
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
13
|
*/
|
|
14
14
|
var k;
|
|
15
|
-
function
|
|
15
|
+
function hr() {
|
|
16
16
|
return k || (k = 1, function(t) {
|
|
17
17
|
(function() {
|
|
18
18
|
var n = {}.hasOwnProperty;
|
|
@@ -44,22 +44,22 @@ function gr() {
|
|
|
44
44
|
})();
|
|
45
45
|
}(N)), N.exports;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
const l = /* @__PURE__ */
|
|
47
|
+
var fr = hr();
|
|
48
|
+
const l = /* @__PURE__ */ gr(fr), mr = {
|
|
49
49
|
"purpur-card": "_purpur-card_1ruml_1"
|
|
50
50
|
};
|
|
51
|
-
function
|
|
51
|
+
function vr(t) {
|
|
52
52
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var R = { exports: {} };
|
|
55
55
|
/*!
|
|
56
56
|
Copyright (c) 2018 Jed Watson.
|
|
57
57
|
Licensed under the MIT License (MIT), see
|
|
58
58
|
http://jedwatson.github.io/classnames
|
|
59
59
|
*/
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
-
return
|
|
60
|
+
var E;
|
|
61
|
+
function yr() {
|
|
62
|
+
return E || (E = 1, function(t) {
|
|
63
63
|
(function() {
|
|
64
64
|
var n = {}.hasOwnProperty;
|
|
65
65
|
function a() {
|
|
@@ -88,10 +88,10 @@ function vr() {
|
|
|
88
88
|
}
|
|
89
89
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
90
90
|
})();
|
|
91
|
-
}(
|
|
91
|
+
}(R)), R.exports;
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
const
|
|
93
|
+
var br = yr();
|
|
94
|
+
const $r = /* @__PURE__ */ vr(br), wr = {
|
|
95
95
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
96
96
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
97
97
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -99,26 +99,26 @@ const br = /* @__PURE__ */ mr(yr), $r = {
|
|
|
99
99
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
100
100
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
101
101
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
102
|
-
},
|
|
102
|
+
}, xr = $r.bind(wr), P = "purpur-icon", Nr = "md", Cr = (t) => t.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), jr = ({ content: t = "", title: n } = {}) => {
|
|
103
103
|
const a = [
|
|
104
104
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
105
105
|
{ name: "fill", value: "currentColor" },
|
|
106
106
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
107
107
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
108
108
|
], p = n ? `<title>${n}</title>` : "";
|
|
109
|
-
return `<svg ${
|
|
110
|
-
},
|
|
109
|
+
return `<svg ${Cr(a)}>${p}${t}</svg>`;
|
|
110
|
+
}, zr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), nr = ({
|
|
111
111
|
["data-testid"]: t,
|
|
112
112
|
svg: n,
|
|
113
113
|
allyTitle: a,
|
|
114
114
|
className: p,
|
|
115
|
-
size: i =
|
|
115
|
+
size: i = Nr,
|
|
116
116
|
...r
|
|
117
117
|
}) => {
|
|
118
|
-
const e =
|
|
119
|
-
content:
|
|
118
|
+
const e = jr({
|
|
119
|
+
content: zr(n.svg),
|
|
120
120
|
title: a
|
|
121
|
-
}), u =
|
|
121
|
+
}), u = xr(p, P, `${P}--${i}`);
|
|
122
122
|
return /* @__PURE__ */ o(
|
|
123
123
|
"span",
|
|
124
124
|
{
|
|
@@ -130,28 +130,33 @@ const br = /* @__PURE__ */ mr(yr), $r = {
|
|
|
130
130
|
}
|
|
131
131
|
);
|
|
132
132
|
};
|
|
133
|
-
|
|
134
|
-
const
|
|
133
|
+
nr.displayName = "Icon";
|
|
134
|
+
const Sr = {
|
|
135
135
|
name: "alert",
|
|
136
136
|
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>',
|
|
137
137
|
keywords: ["alert"],
|
|
138
138
|
category: "status"
|
|
139
|
-
},
|
|
139
|
+
}, Or = {
|
|
140
140
|
name: "check-circle",
|
|
141
141
|
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>',
|
|
142
142
|
keywords: ["check-circle"],
|
|
143
143
|
category: "status"
|
|
144
|
-
},
|
|
144
|
+
}, Ar = {
|
|
145
|
+
name: "devices",
|
|
146
|
+
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>',
|
|
147
|
+
keywords: ["devices"],
|
|
148
|
+
category: "device"
|
|
149
|
+
}, Zr = {
|
|
145
150
|
name: "error",
|
|
146
151
|
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>',
|
|
147
152
|
keywords: ["error"],
|
|
148
153
|
category: "status"
|
|
149
|
-
},
|
|
154
|
+
}, qr = {
|
|
150
155
|
name: "info",
|
|
151
156
|
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>',
|
|
152
157
|
keywords: ["info"],
|
|
153
158
|
category: "status"
|
|
154
|
-
},
|
|
159
|
+
}, Mr = {
|
|
155
160
|
name: "offering",
|
|
156
161
|
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>',
|
|
157
162
|
keywords: ["offering"],
|
|
@@ -161,24 +166,24 @@ const zr = {
|
|
|
161
166
|
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>',
|
|
162
167
|
keywords: ["question"],
|
|
163
168
|
category: "status"
|
|
164
|
-
},
|
|
169
|
+
}, Rr = {
|
|
165
170
|
name: "tag",
|
|
166
171
|
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>',
|
|
167
172
|
keywords: ["tag"],
|
|
168
173
|
category: "other"
|
|
169
174
|
};
|
|
170
|
-
function
|
|
175
|
+
function Er(t) {
|
|
171
176
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
172
177
|
}
|
|
173
|
-
var
|
|
178
|
+
var H = { exports: {} };
|
|
174
179
|
/*!
|
|
175
180
|
Copyright (c) 2018 Jed Watson.
|
|
176
181
|
Licensed under the MIT License (MIT), see
|
|
177
182
|
http://jedwatson.github.io/classnames
|
|
178
183
|
*/
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
return
|
|
184
|
+
var L;
|
|
185
|
+
function Pr() {
|
|
186
|
+
return L || (L = 1, function(t) {
|
|
182
187
|
(function() {
|
|
183
188
|
var n = {}.hasOwnProperty;
|
|
184
189
|
function a() {
|
|
@@ -207,45 +212,50 @@ function Rr() {
|
|
|
207
212
|
}
|
|
208
213
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
209
214
|
})();
|
|
210
|
-
}(
|
|
215
|
+
}(H)), H.exports;
|
|
211
216
|
}
|
|
212
|
-
var
|
|
213
|
-
const
|
|
214
|
-
"purpur-badge": "_purpur-
|
|
215
|
-
"purpur-
|
|
216
|
-
"purpur-badge--
|
|
217
|
-
"purpur-badge--
|
|
218
|
-
"purpur-badge--
|
|
219
|
-
"purpur-badge--
|
|
220
|
-
"purpur-badge--
|
|
221
|
-
"purpur-badge--
|
|
222
|
-
"purpur-badge--
|
|
223
|
-
|
|
217
|
+
var Hr = Pr();
|
|
218
|
+
const B = /* @__PURE__ */ Er(Hr), C = {
|
|
219
|
+
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
220
|
+
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
221
|
+
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
222
|
+
"purpur-badge--special": "_purpur-badge--special_1mlzj_21",
|
|
223
|
+
"purpur-badge--neutral": "_purpur-badge--neutral_1mlzj_25",
|
|
224
|
+
"purpur-badge--general": "_purpur-badge--general_1mlzj_29",
|
|
225
|
+
"purpur-badge--information": "_purpur-badge--information_1mlzj_33",
|
|
226
|
+
"purpur-badge--success": "_purpur-badge--success_1mlzj_37",
|
|
227
|
+
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
228
|
+
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
229
|
+
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
230
|
+
}, j = "purpur-badge", _ = {
|
|
224
231
|
ATTENTION: "attention",
|
|
225
|
-
|
|
226
|
-
|
|
232
|
+
BLACK_FRIDAY: "black-friday",
|
|
233
|
+
ERROR: "error",
|
|
234
|
+
GENERAL: "general",
|
|
227
235
|
INFORMATION: "information",
|
|
236
|
+
NEUTRAL: "neutral",
|
|
237
|
+
SPECIAL: "special",
|
|
228
238
|
SUCCESS: "success",
|
|
229
|
-
WARNING: "warning"
|
|
230
|
-
|
|
231
|
-
BLACK_FRIDAY: "black-friday"
|
|
232
|
-
}, Hr = (t) => {
|
|
239
|
+
WARNING: "warning"
|
|
240
|
+
}, Lr = (t) => {
|
|
233
241
|
switch (t) {
|
|
234
|
-
case
|
|
235
|
-
case
|
|
242
|
+
case _.ATTENTION:
|
|
243
|
+
case _.SPECIAL:
|
|
244
|
+
return Mr;
|
|
245
|
+
case _.INFORMATION:
|
|
236
246
|
return qr;
|
|
237
|
-
case
|
|
247
|
+
case _.GENERAL:
|
|
238
248
|
return Ar;
|
|
239
|
-
case
|
|
240
|
-
return jr;
|
|
241
|
-
case g.WARNING:
|
|
242
|
-
return zr;
|
|
243
|
-
case g.ERROR:
|
|
249
|
+
case _.SUCCESS:
|
|
244
250
|
return Or;
|
|
245
|
-
case
|
|
246
|
-
return
|
|
247
|
-
case
|
|
251
|
+
case _.WARNING:
|
|
252
|
+
return Sr;
|
|
253
|
+
case _.ERROR:
|
|
248
254
|
return Zr;
|
|
255
|
+
case _.NEUTRAL:
|
|
256
|
+
return kr;
|
|
257
|
+
case _.BLACK_FRIDAY:
|
|
258
|
+
return Rr;
|
|
249
259
|
default:
|
|
250
260
|
return;
|
|
251
261
|
}
|
|
@@ -258,38 +268,47 @@ const Er = /* @__PURE__ */ Mr(Pr), H = {
|
|
|
258
268
|
className: r = "",
|
|
259
269
|
...e
|
|
260
270
|
}) => {
|
|
261
|
-
const u =
|
|
271
|
+
const u = Lr(a), c = B([r, C[j], C[`${j}--${a}`]]);
|
|
262
272
|
return /* @__PURE__ */ f("span", { "aria-label": i, className: c, "data-testid": p, ...e, children: [
|
|
263
|
-
n && u && /* @__PURE__ */ o(
|
|
273
|
+
n && u && /* @__PURE__ */ o(
|
|
274
|
+
nr,
|
|
275
|
+
{
|
|
276
|
+
"data-testid": `${p}-icon`,
|
|
277
|
+
allyTitle: i,
|
|
278
|
+
size: "xs",
|
|
279
|
+
svg: u,
|
|
280
|
+
className: B(C[`${j}__icon`])
|
|
281
|
+
}
|
|
282
|
+
),
|
|
264
283
|
t
|
|
265
284
|
] });
|
|
266
|
-
},
|
|
285
|
+
}, Ir = {
|
|
267
286
|
"purpur-card-badge": "_purpur-card-badge_r7moe_1"
|
|
268
|
-
},
|
|
287
|
+
}, Vr = l.bind(Ir), Tr = "purpur-card-badge", Fr = ({
|
|
269
288
|
["data-testid"]: t = "purpur-card-badge",
|
|
270
289
|
variant: n,
|
|
271
290
|
text: a
|
|
272
291
|
}) => n && a ? /* @__PURE__ */ o(
|
|
273
292
|
Br,
|
|
274
293
|
{
|
|
275
|
-
className:
|
|
294
|
+
className: Vr(Tr),
|
|
276
295
|
variant: n,
|
|
277
296
|
showIcon: !1,
|
|
278
297
|
"data-testid": t,
|
|
279
298
|
children: a
|
|
280
299
|
}
|
|
281
|
-
) : null,
|
|
300
|
+
) : null, Gr = {
|
|
282
301
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
283
|
-
}, Wr = l.bind(
|
|
302
|
+
}, Wr = l.bind(Gr), Dr = "purpur-card-content", Ur = ({
|
|
284
303
|
["data-testid"]: t = "purpur-card-content",
|
|
285
304
|
children: n
|
|
286
|
-
}) => /* @__PURE__ */ o("div", { className: Wr(Dr), "data-testid": t, children: n }),
|
|
305
|
+
}) => /* @__PURE__ */ o("div", { className: Wr(Dr), "data-testid": t, children: n }), Kr = {
|
|
287
306
|
"purpur-card-content-container": "_purpur-card-content-container_putaw_1",
|
|
288
307
|
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_putaw_12",
|
|
289
308
|
"purpur-card-content-container--gap-size--sm": "_purpur-card-content-container--gap-size--sm_putaw_20",
|
|
290
309
|
"purpur-card-content-container--gap-size--md": "_purpur-card-content-container--gap-size--md_putaw_23",
|
|
291
310
|
"purpur-card-content-container--gap-size--lg": "_purpur-card-content-container--gap-size--lg_putaw_26"
|
|
292
|
-
},
|
|
311
|
+
}, Yr = l.bind(Kr), z = "purpur-card-content-container", Jr = ({
|
|
293
312
|
["data-testid"]: t = "purpur-card-content-container",
|
|
294
313
|
children: n,
|
|
295
314
|
isFooter: a = !1,
|
|
@@ -297,29 +316,29 @@ const Er = /* @__PURE__ */ Mr(Pr), H = {
|
|
|
297
316
|
}) => /* @__PURE__ */ o(
|
|
298
317
|
"div",
|
|
299
318
|
{
|
|
300
|
-
className:
|
|
301
|
-
|
|
302
|
-
`${
|
|
319
|
+
className: Yr([
|
|
320
|
+
z,
|
|
321
|
+
`${z}--gap-size--${p}`,
|
|
303
322
|
{
|
|
304
|
-
[`${
|
|
323
|
+
[`${z}--footer`]: a
|
|
305
324
|
}
|
|
306
325
|
]),
|
|
307
326
|
"data-testid": t,
|
|
308
327
|
children: n
|
|
309
328
|
}
|
|
310
329
|
);
|
|
311
|
-
function
|
|
330
|
+
function Qr(t) {
|
|
312
331
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
313
332
|
}
|
|
314
|
-
var
|
|
333
|
+
var I = { exports: {} };
|
|
315
334
|
/*!
|
|
316
335
|
Copyright (c) 2018 Jed Watson.
|
|
317
336
|
Licensed under the MIT License (MIT), see
|
|
318
337
|
http://jedwatson.github.io/classnames
|
|
319
338
|
*/
|
|
320
|
-
var
|
|
321
|
-
function
|
|
322
|
-
return
|
|
339
|
+
var V;
|
|
340
|
+
function Xr() {
|
|
341
|
+
return V || (V = 1, function(t) {
|
|
323
342
|
(function() {
|
|
324
343
|
var n = {}.hasOwnProperty;
|
|
325
344
|
function a() {
|
|
@@ -348,28 +367,28 @@ function Qr() {
|
|
|
348
367
|
}
|
|
349
368
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
350
369
|
})();
|
|
351
|
-
}(
|
|
370
|
+
}(I)), I.exports;
|
|
352
371
|
}
|
|
353
|
-
var
|
|
354
|
-
const T = /* @__PURE__ */
|
|
372
|
+
var rt = Xr();
|
|
373
|
+
const T = /* @__PURE__ */ Qr(rt), tt = "_rotate_1xozj_1", at = "_dash_1xozj_1", m = {
|
|
355
374
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
356
|
-
rotate:
|
|
375
|
+
rotate: tt,
|
|
357
376
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
358
377
|
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
|
|
359
378
|
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
|
|
360
379
|
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
|
|
361
380
|
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
|
|
362
381
|
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
|
|
363
|
-
dash:
|
|
382
|
+
dash: at,
|
|
364
383
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
|
|
365
384
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
|
|
366
|
-
}, v = "purpur-spinner",
|
|
385
|
+
}, v = "purpur-spinner", et = {
|
|
367
386
|
SM: "sm"
|
|
368
|
-
},
|
|
387
|
+
}, nt = ({
|
|
369
388
|
["data-testid"]: t,
|
|
370
389
|
disabled: n = !1,
|
|
371
390
|
negative: a = !1,
|
|
372
|
-
size: p =
|
|
391
|
+
size: p = et.SM,
|
|
373
392
|
...i
|
|
374
393
|
}) => /* @__PURE__ */ o(
|
|
375
394
|
"div",
|
|
@@ -390,7 +409,7 @@ const T = /* @__PURE__ */ Jr(Xr), rt = "_rotate_1xozj_1", tt = "_dash_1xozj_1",
|
|
|
390
409
|
}
|
|
391
410
|
) })
|
|
392
411
|
}
|
|
393
|
-
),
|
|
412
|
+
), ut = {
|
|
394
413
|
"purpur-card-cta--button-styling": "_purpur-card-cta--button-styling_1wc0z_1",
|
|
395
414
|
"purpur-card-cta--button-styling--xs": "_purpur-card-cta--button-styling--xs_1wc0z_33",
|
|
396
415
|
"purpur-card-cta--button-styling--icon-only": "_purpur-card-cta--button-styling--icon-only_1wc0z_36",
|
|
@@ -409,7 +428,7 @@ const T = /* @__PURE__ */ Jr(Xr), rt = "_rotate_1xozj_1", tt = "_dash_1xozj_1",
|
|
|
409
428
|
"purpur-card-cta--secondary": "_purpur-card-cta--secondary_1wc0z_131",
|
|
410
429
|
"purpur-card-cta--disabled": "_purpur-card-cta--disabled_1wc0z_131",
|
|
411
430
|
"purpur-card-cta--text": "_purpur-card-cta--text_1wc0z_139"
|
|
412
|
-
},
|
|
431
|
+
}, pt = l.bind(ut), g = "purpur-card-cta", it = ({
|
|
413
432
|
["data-testid"]: t = "purpur-card-cta",
|
|
414
433
|
className: n,
|
|
415
434
|
children: a,
|
|
@@ -422,40 +441,40 @@ const T = /* @__PURE__ */ Jr(Xr), rt = "_rotate_1xozj_1", tt = "_dash_1xozj_1",
|
|
|
422
441
|
}) => /* @__PURE__ */ o(
|
|
423
442
|
"div",
|
|
424
443
|
{
|
|
425
|
-
className: `${
|
|
426
|
-
|
|
444
|
+
className: `${pt([
|
|
445
|
+
g,
|
|
427
446
|
n,
|
|
428
447
|
{
|
|
429
|
-
[`${
|
|
430
|
-
[`${
|
|
431
|
-
[`${
|
|
432
|
-
[`${
|
|
433
|
-
[`${
|
|
434
|
-
[`${
|
|
435
|
-
[`${
|
|
448
|
+
[`${g}--disabled`]: p,
|
|
449
|
+
[`${g}--text`]: !!e,
|
|
450
|
+
[`${g}--cta-styling`]: u,
|
|
451
|
+
[`${g}--button-styling`]: !u,
|
|
452
|
+
[`${g}--button-styling--md`]: !u,
|
|
453
|
+
[`${g}--button-styling--secondary`]: !u,
|
|
454
|
+
[`${g}--button-styling--icon-only`]: !u && !e
|
|
436
455
|
}
|
|
437
|
-
])} ${
|
|
456
|
+
])} ${g}`,
|
|
438
457
|
"data-testid": t,
|
|
439
458
|
...c,
|
|
440
|
-
children: r ? /* @__PURE__ */ o(
|
|
459
|
+
children: r ? /* @__PURE__ */ o(nt, { "data-testid": `${t}-spinner`, size: "xs", disabled: p }) : /* @__PURE__ */ f(er, { children: [
|
|
441
460
|
i === "left" && a,
|
|
442
461
|
e,
|
|
443
462
|
i === "right" && a
|
|
444
463
|
] })
|
|
445
464
|
}
|
|
446
465
|
);
|
|
447
|
-
function
|
|
466
|
+
function ot(t) {
|
|
448
467
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
449
468
|
}
|
|
450
|
-
var
|
|
469
|
+
var F = { exports: {} };
|
|
451
470
|
/*!
|
|
452
471
|
Copyright (c) 2018 Jed Watson.
|
|
453
472
|
Licensed under the MIT License (MIT), see
|
|
454
473
|
http://jedwatson.github.io/classnames
|
|
455
474
|
*/
|
|
456
|
-
var
|
|
457
|
-
function
|
|
458
|
-
return
|
|
475
|
+
var G;
|
|
476
|
+
function st() {
|
|
477
|
+
return G || (G = 1, function(t) {
|
|
459
478
|
(function() {
|
|
460
479
|
var n = {}.hasOwnProperty;
|
|
461
480
|
function a() {
|
|
@@ -484,10 +503,10 @@ function ot() {
|
|
|
484
503
|
}
|
|
485
504
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
486
505
|
})();
|
|
487
|
-
}(
|
|
506
|
+
}(F)), F.exports;
|
|
488
507
|
}
|
|
489
|
-
var
|
|
490
|
-
const
|
|
508
|
+
var ct = st();
|
|
509
|
+
const lt = /* @__PURE__ */ ot(ct), dt = {
|
|
491
510
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
492
511
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
493
512
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -495,26 +514,26 @@ const ct = /* @__PURE__ */ it(st), lt = {
|
|
|
495
514
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
496
515
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
497
516
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
498
|
-
},
|
|
517
|
+
}, _t = lt.bind(dt), W = "purpur-icon", gt = "md", ht = (t) => t.filter((n) => Object.keys(n).length >= 1).map((n) => `${n.name}="${n.value}"`).join(" "), ft = ({ content: t = "", title: n } = {}) => {
|
|
499
518
|
const a = [
|
|
500
519
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
501
520
|
{ name: "fill", value: "currentColor" },
|
|
502
521
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
503
522
|
n ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
504
523
|
], p = n ? `<title>${n}</title>` : "";
|
|
505
|
-
return `<svg ${
|
|
506
|
-
},
|
|
524
|
+
return `<svg ${ht(a)}>${p}${t}</svg>`;
|
|
525
|
+
}, mt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), ur = ({
|
|
507
526
|
["data-testid"]: t,
|
|
508
527
|
svg: n,
|
|
509
528
|
allyTitle: a,
|
|
510
529
|
className: p,
|
|
511
|
-
size: i =
|
|
530
|
+
size: i = gt,
|
|
512
531
|
...r
|
|
513
532
|
}) => {
|
|
514
|
-
const e =
|
|
515
|
-
content:
|
|
533
|
+
const e = ft({
|
|
534
|
+
content: mt(n.svg),
|
|
516
535
|
title: a
|
|
517
|
-
}), u =
|
|
536
|
+
}), u = _t(p, W, `${W}--${i}`);
|
|
518
537
|
return /* @__PURE__ */ o(
|
|
519
538
|
"span",
|
|
520
539
|
{
|
|
@@ -526,15 +545,15 @@ const ct = /* @__PURE__ */ it(st), lt = {
|
|
|
526
545
|
}
|
|
527
546
|
);
|
|
528
547
|
};
|
|
529
|
-
|
|
530
|
-
const
|
|
548
|
+
ur.displayName = "Icon";
|
|
549
|
+
const vt = {
|
|
531
550
|
name: "checkmark",
|
|
532
551
|
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>',
|
|
533
552
|
keywords: ["checkmark"],
|
|
534
553
|
category: "utility"
|
|
535
|
-
},
|
|
536
|
-
|
|
537
|
-
function
|
|
554
|
+
}, pr = (t) => /* @__PURE__ */ o(ur, { ...t, svg: vt });
|
|
555
|
+
pr.displayName = "IconCheckmark";
|
|
556
|
+
function yt(t) {
|
|
538
557
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
539
558
|
}
|
|
540
559
|
var D = { exports: {} };
|
|
@@ -543,9 +562,9 @@ var D = { exports: {} };
|
|
|
543
562
|
Licensed under the MIT License (MIT), see
|
|
544
563
|
http://jedwatson.github.io/classnames
|
|
545
564
|
*/
|
|
546
|
-
var
|
|
547
|
-
function
|
|
548
|
-
return
|
|
565
|
+
var U;
|
|
566
|
+
function bt() {
|
|
567
|
+
return U || (U = 1, function(t) {
|
|
549
568
|
(function() {
|
|
550
569
|
var n = {}.hasOwnProperty;
|
|
551
570
|
function a() {
|
|
@@ -576,8 +595,8 @@ function yt() {
|
|
|
576
595
|
})();
|
|
577
596
|
}(D)), D.exports;
|
|
578
597
|
}
|
|
579
|
-
var
|
|
580
|
-
const
|
|
598
|
+
var $t = bt();
|
|
599
|
+
const wt = /* @__PURE__ */ yt($t), y = {
|
|
581
600
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
582
601
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
583
602
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -592,19 +611,19 @@ const $t = /* @__PURE__ */ vt(bt), y = {
|
|
|
592
611
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
593
612
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
594
613
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
595
|
-
},
|
|
614
|
+
}, xt = {
|
|
596
615
|
PARAGRAPH100: "paragraph-100"
|
|
597
|
-
}, b = "purpur-paragraph",
|
|
616
|
+
}, b = "purpur-paragraph", M = ({
|
|
598
617
|
["data-testid"]: t,
|
|
599
618
|
children: n,
|
|
600
619
|
className: a,
|
|
601
620
|
disabled: p,
|
|
602
621
|
enableHyphenation: i = !1,
|
|
603
622
|
negative: r = !1,
|
|
604
|
-
variant: e =
|
|
623
|
+
variant: e = xt.PARAGRAPH100,
|
|
605
624
|
...u
|
|
606
625
|
}) => {
|
|
607
|
-
const c =
|
|
626
|
+
const c = wt([
|
|
608
627
|
a,
|
|
609
628
|
y[b],
|
|
610
629
|
y[`${b}--${e}`],
|
|
@@ -616,37 +635,37 @@ const $t = /* @__PURE__ */ vt(bt), y = {
|
|
|
616
635
|
]);
|
|
617
636
|
return /* @__PURE__ */ o("p", { ...u, className: c, "data-testid": t, children: n });
|
|
618
637
|
};
|
|
619
|
-
|
|
620
|
-
const
|
|
638
|
+
M.displayName = "Paragraph";
|
|
639
|
+
const Nt = {
|
|
621
640
|
"purpur-card-feature-list": "_purpur-card-feature-list_198s4_1",
|
|
622
641
|
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_198s4_7"
|
|
623
|
-
},
|
|
642
|
+
}, K = l.bind(Nt), Y = "purpur-card-feature-list", Ct = ({
|
|
624
643
|
["data-testid"]: t = "purpur-card-feature-list",
|
|
625
644
|
listItems: n
|
|
626
|
-
}) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className:
|
|
645
|
+
}) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className: K(Y), "data-testid": t, children: n.map((a) => /* @__PURE__ */ f(
|
|
627
646
|
"li",
|
|
628
647
|
{
|
|
629
|
-
className:
|
|
648
|
+
className: K(`${Y}__list-item`),
|
|
630
649
|
"data-testid": `${t}-item`,
|
|
631
650
|
children: [
|
|
632
|
-
/* @__PURE__ */ o(
|
|
633
|
-
/* @__PURE__ */ o(
|
|
651
|
+
/* @__PURE__ */ o(pr, { size: "xs" }),
|
|
652
|
+
/* @__PURE__ */ o(M, { children: a })
|
|
634
653
|
]
|
|
635
654
|
},
|
|
636
655
|
a
|
|
637
656
|
)) }) : null;
|
|
638
|
-
function
|
|
657
|
+
function jt(t) {
|
|
639
658
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
640
659
|
}
|
|
641
|
-
var
|
|
660
|
+
var J = { exports: {} };
|
|
642
661
|
/*!
|
|
643
662
|
Copyright (c) 2018 Jed Watson.
|
|
644
663
|
Licensed under the MIT License (MIT), see
|
|
645
664
|
http://jedwatson.github.io/classnames
|
|
646
665
|
*/
|
|
647
|
-
var
|
|
648
|
-
function
|
|
649
|
-
return
|
|
666
|
+
var Q;
|
|
667
|
+
function zt() {
|
|
668
|
+
return Q || (Q = 1, function(t) {
|
|
650
669
|
(function() {
|
|
651
670
|
var n = {}.hasOwnProperty;
|
|
652
671
|
function a() {
|
|
@@ -675,10 +694,10 @@ function St() {
|
|
|
675
694
|
}
|
|
676
695
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
677
696
|
})();
|
|
678
|
-
}(
|
|
697
|
+
}(J)), J.exports;
|
|
679
698
|
}
|
|
680
|
-
var
|
|
681
|
-
const
|
|
699
|
+
var St = zt();
|
|
700
|
+
const Ot = /* @__PURE__ */ jt(St), $ = {
|
|
682
701
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
683
702
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
684
703
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -694,19 +713,19 @@ const jt = /* @__PURE__ */ Ct(zt), $ = {
|
|
|
694
713
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
695
714
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
696
715
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
697
|
-
},
|
|
716
|
+
}, At = {
|
|
698
717
|
TITLE100: "title-100"
|
|
699
|
-
}, w = "purpur-heading",
|
|
718
|
+
}, w = "purpur-heading", ir = ({
|
|
700
719
|
["data-testid"]: t,
|
|
701
720
|
children: n,
|
|
702
721
|
className: a = "",
|
|
703
722
|
enableHyphenation: p = !1,
|
|
704
723
|
negative: i = !1,
|
|
705
724
|
tag: r,
|
|
706
|
-
variant: e =
|
|
725
|
+
variant: e = At.TITLE100,
|
|
707
726
|
...u
|
|
708
727
|
}) => {
|
|
709
|
-
const c = r, x =
|
|
728
|
+
const c = r, x = Ot([
|
|
710
729
|
a,
|
|
711
730
|
$[w],
|
|
712
731
|
$[`${w}--${e}`],
|
|
@@ -717,41 +736,41 @@ const jt = /* @__PURE__ */ Ct(zt), $ = {
|
|
|
717
736
|
]);
|
|
718
737
|
return /* @__PURE__ */ o(c, { ...u, className: x, "data-testid": t, children: n });
|
|
719
738
|
};
|
|
720
|
-
|
|
721
|
-
const
|
|
739
|
+
ir.displayName = "Heading";
|
|
740
|
+
const Zt = {
|
|
722
741
|
"purpur-card-heading": "_purpur-card-heading_1lsjo_1",
|
|
723
742
|
"purpur-card-heading__heading": "_purpur-card-heading__heading_1lsjo_6",
|
|
724
743
|
"purpur-card-heading__icon": "_purpur-card-heading__icon_1lsjo_11"
|
|
725
|
-
}, S = l.bind(
|
|
744
|
+
}, S = l.bind(Zt), O = "purpur-card-heading", qt = ({
|
|
726
745
|
["data-testid"]: t = "purpur-card-heading",
|
|
727
746
|
title: n,
|
|
728
747
|
icon: a,
|
|
729
748
|
children: p,
|
|
730
749
|
titleTag: i = "h2"
|
|
731
|
-
}) => /* @__PURE__ */ f("div", { className: S(
|
|
732
|
-
/* @__PURE__ */ f("div", { className: S(`${
|
|
733
|
-
a && /* @__PURE__ */ o("div", { className: S(`${
|
|
734
|
-
/* @__PURE__ */ o(
|
|
750
|
+
}) => /* @__PURE__ */ f("div", { className: S(O), "data-testid": t, children: [
|
|
751
|
+
/* @__PURE__ */ f("div", { className: S(`${O}__heading`), children: [
|
|
752
|
+
a && /* @__PURE__ */ o("div", { className: S(`${O}__icon`), children: a }),
|
|
753
|
+
/* @__PURE__ */ o(ir, { tag: i, variant: "title-100", children: n })
|
|
735
754
|
] }),
|
|
736
755
|
p
|
|
737
|
-
] }),
|
|
756
|
+
] }), Mt = {
|
|
738
757
|
"purpur-card-media": "_purpur-card-media_udc1o_1"
|
|
739
|
-
},
|
|
758
|
+
}, kt = l.bind(Mt), Rt = "purpur-card-media", Et = ({
|
|
740
759
|
["data-testid"]: t = "purpur-card-media",
|
|
741
760
|
className: n,
|
|
742
761
|
children: a
|
|
743
|
-
}) => /* @__PURE__ */ o("div", { className:
|
|
762
|
+
}) => /* @__PURE__ */ o("div", { className: kt([Rt, n]), "data-testid": t, children: a }), Pt = {
|
|
744
763
|
"purpur-card-media-layout": "_purpur-card-media-layout_1yfvb_1"
|
|
745
|
-
},
|
|
764
|
+
}, Ht = l.bind(Pt), Lt = "purpur-card-media-layout", Bt = ({
|
|
746
765
|
["data-testid"]: t = "purpur-card-media-layout",
|
|
747
766
|
className: n,
|
|
748
767
|
children: a
|
|
749
|
-
}) => /* @__PURE__ */ o("div", { className:
|
|
768
|
+
}) => /* @__PURE__ */ o("div", { className: Ht([Lt, n]), "data-testid": t, children: a }), It = {
|
|
750
769
|
"purpur-card-overline": "_purpur-card-overline_192fe_1"
|
|
751
|
-
},
|
|
770
|
+
}, Vt = l.bind(It), Tt = "purpur-card-overline", Ft = ({
|
|
752
771
|
["data-testid"]: t = "purpur-card-overline",
|
|
753
772
|
overline: n
|
|
754
|
-
}) => n ? /* @__PURE__ */ o(
|
|
773
|
+
}) => n ? /* @__PURE__ */ o(M, { className: Vt(Tt), "data-testid": t, children: n }) : null, Gt = {
|
|
755
774
|
"purpur-card-root": "_purpur-card-root_bqk1d_1",
|
|
756
775
|
"purpur-card-root--primary": "_purpur-card-root--primary_bqk1d_8",
|
|
757
776
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_bqk1d_11",
|
|
@@ -761,7 +780,7 @@ const At = {
|
|
|
761
780
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_1sp43_6",
|
|
762
781
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_1sp43_11"
|
|
763
782
|
};
|
|
764
|
-
function
|
|
783
|
+
function X(t, n) {
|
|
765
784
|
if (typeof t == "function")
|
|
766
785
|
return t(n);
|
|
767
786
|
t != null && (t.current = n);
|
|
@@ -770,41 +789,41 @@ function Dt(...t) {
|
|
|
770
789
|
return (n) => {
|
|
771
790
|
let a = !1;
|
|
772
791
|
const p = t.map((i) => {
|
|
773
|
-
const r =
|
|
792
|
+
const r = X(i, n);
|
|
774
793
|
return !a && typeof r == "function" && (a = !0), r;
|
|
775
794
|
});
|
|
776
795
|
if (a)
|
|
777
796
|
return () => {
|
|
778
797
|
for (let i = 0; i < p.length; i++) {
|
|
779
798
|
const r = p[i];
|
|
780
|
-
typeof r == "function" ? r() :
|
|
799
|
+
typeof r == "function" ? r() : X(t[i], null);
|
|
781
800
|
}
|
|
782
801
|
};
|
|
783
802
|
};
|
|
784
803
|
}
|
|
785
|
-
var
|
|
786
|
-
const { children: a, ...p } = t, i = s.Children.toArray(a), r = i.find(
|
|
804
|
+
var or = s.forwardRef((t, n) => {
|
|
805
|
+
const { children: a, ...p } = t, i = s.Children.toArray(a), r = i.find(Kt);
|
|
787
806
|
if (r) {
|
|
788
807
|
const e = r.props.children, u = i.map((c) => c === r ? s.Children.count(e) > 1 ? s.Children.only(null) : s.isValidElement(e) ? e.props.children : null : c);
|
|
789
|
-
return /* @__PURE__ */ o(
|
|
808
|
+
return /* @__PURE__ */ o(q, { ...p, ref: n, children: s.isValidElement(e) ? s.cloneElement(e, void 0, u) : null });
|
|
790
809
|
}
|
|
791
|
-
return /* @__PURE__ */ o(
|
|
810
|
+
return /* @__PURE__ */ o(q, { ...p, ref: n, children: a });
|
|
792
811
|
});
|
|
793
|
-
|
|
794
|
-
var
|
|
812
|
+
or.displayName = "Slot";
|
|
813
|
+
var q = s.forwardRef((t, n) => {
|
|
795
814
|
const { children: a, ...p } = t;
|
|
796
815
|
if (s.isValidElement(a)) {
|
|
797
|
-
const i =
|
|
816
|
+
const i = Jt(a), r = Yt(p, a.props);
|
|
798
817
|
return a.type !== s.Fragment && (r.ref = n ? Dt(n, i) : i), s.cloneElement(a, r);
|
|
799
818
|
}
|
|
800
819
|
return s.Children.count(a) > 1 ? s.Children.only(null) : null;
|
|
801
820
|
});
|
|
802
|
-
|
|
803
|
-
var
|
|
804
|
-
function
|
|
805
|
-
return s.isValidElement(t) && t.type ===
|
|
821
|
+
q.displayName = "SlotClone";
|
|
822
|
+
var Ut = ({ children: t }) => /* @__PURE__ */ o(er, { children: t });
|
|
823
|
+
function Kt(t) {
|
|
824
|
+
return s.isValidElement(t) && t.type === Ut;
|
|
806
825
|
}
|
|
807
|
-
function
|
|
826
|
+
function Yt(t, n) {
|
|
808
827
|
const a = { ...n };
|
|
809
828
|
for (const p in n) {
|
|
810
829
|
const i = t[p], r = n[p];
|
|
@@ -814,12 +833,12 @@ function Kt(t, n) {
|
|
|
814
833
|
}
|
|
815
834
|
return { ...t, ...a };
|
|
816
835
|
}
|
|
817
|
-
function
|
|
836
|
+
function Jt(t) {
|
|
818
837
|
var n, a;
|
|
819
838
|
let p = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, i = p && "isReactWarning" in p && p.isReactWarning;
|
|
820
839
|
return i ? t.ref : (p = (a = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : a.get, i = p && "isReactWarning" in p && p.isReactWarning, i ? t.props.ref : t.props.ref || t.ref);
|
|
821
840
|
}
|
|
822
|
-
var
|
|
841
|
+
var Qt = [
|
|
823
842
|
"a",
|
|
824
843
|
"button",
|
|
825
844
|
"div",
|
|
@@ -836,15 +855,15 @@ var Jt = [
|
|
|
836
855
|
"span",
|
|
837
856
|
"svg",
|
|
838
857
|
"ul"
|
|
839
|
-
],
|
|
858
|
+
], Xt = Qt.reduce((t, n) => {
|
|
840
859
|
const a = s.forwardRef((p, i) => {
|
|
841
|
-
const { asChild: r, ...e } = p, u = r ?
|
|
860
|
+
const { asChild: r, ...e } = p, u = r ? or : n;
|
|
842
861
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(u, { ...e, ref: i });
|
|
843
862
|
});
|
|
844
863
|
return a.displayName = `Primitive.${n}`, { ...t, [n]: a };
|
|
845
|
-
}, {}),
|
|
864
|
+
}, {}), ra = "VisuallyHidden", sr = s.forwardRef(
|
|
846
865
|
(t, n) => /* @__PURE__ */ o(
|
|
847
|
-
|
|
866
|
+
Xt.span,
|
|
848
867
|
{
|
|
849
868
|
...t,
|
|
850
869
|
ref: n,
|
|
@@ -865,14 +884,14 @@ var Jt = [
|
|
|
865
884
|
}
|
|
866
885
|
)
|
|
867
886
|
);
|
|
868
|
-
|
|
869
|
-
var
|
|
870
|
-
const
|
|
887
|
+
sr.displayName = ra;
|
|
888
|
+
var ta = sr;
|
|
889
|
+
const rr = ({
|
|
871
890
|
asChild: t,
|
|
872
891
|
children: n,
|
|
873
892
|
className: a = "",
|
|
874
893
|
["data-testid"]: p
|
|
875
|
-
}) => /* @__PURE__ */ o(
|
|
894
|
+
}) => /* @__PURE__ */ o(ta, { asChild: t, "data-testid": p, className: a, children: n }), tr = l.bind(Wt), h = "purpur-card-trigger-item", aa = ({
|
|
876
895
|
["data-testid"]: t = "purpur-card-trigger-item",
|
|
877
896
|
disabled: n = !1,
|
|
878
897
|
href: a,
|
|
@@ -888,7 +907,7 @@ const X = ({
|
|
|
888
907
|
"a",
|
|
889
908
|
{
|
|
890
909
|
"aria-disabled": n,
|
|
891
|
-
className: `${
|
|
910
|
+
className: `${tr([
|
|
892
911
|
h,
|
|
893
912
|
{
|
|
894
913
|
[`${h}--disabled`]: n
|
|
@@ -898,14 +917,14 @@ const X = ({
|
|
|
898
917
|
href: n ? void 0 : a,
|
|
899
918
|
tabIndex: n ? 0 : void 0,
|
|
900
919
|
onClick: r,
|
|
901
|
-
children: /* @__PURE__ */ o(
|
|
920
|
+
children: /* @__PURE__ */ o(rr, { children: i })
|
|
902
921
|
}
|
|
903
922
|
)
|
|
904
923
|
) : /* @__PURE__ */ o(
|
|
905
924
|
"button",
|
|
906
925
|
{
|
|
907
926
|
"aria-disabled": n,
|
|
908
|
-
className: `${
|
|
927
|
+
className: `${tr([
|
|
909
928
|
h,
|
|
910
929
|
`${h}--button`,
|
|
911
930
|
{
|
|
@@ -915,10 +934,10 @@ const X = ({
|
|
|
915
934
|
"data-testid": t,
|
|
916
935
|
type: "button",
|
|
917
936
|
onClick: r,
|
|
918
|
-
children: /* @__PURE__ */ o(
|
|
937
|
+
children: /* @__PURE__ */ o(rr, { children: i })
|
|
919
938
|
}
|
|
920
939
|
);
|
|
921
|
-
},
|
|
940
|
+
}, ea = l.bind(Gt), A = "purpur-card-root", cr = _r(
|
|
922
941
|
({
|
|
923
942
|
["data-testid"]: t = "purpur-card-root",
|
|
924
943
|
children: n,
|
|
@@ -930,19 +949,19 @@ const X = ({
|
|
|
930
949
|
screenReaderText: u,
|
|
931
950
|
variant: c,
|
|
932
951
|
...x
|
|
933
|
-
},
|
|
934
|
-
const
|
|
935
|
-
|
|
952
|
+
}, lr) => {
|
|
953
|
+
const dr = ea([
|
|
954
|
+
A,
|
|
936
955
|
a,
|
|
937
956
|
{
|
|
938
|
-
[`${
|
|
939
|
-
[`${
|
|
957
|
+
[`${A}--${c}`]: c,
|
|
958
|
+
[`${A}--full-height`]: i
|
|
940
959
|
}
|
|
941
960
|
]);
|
|
942
|
-
return /* @__PURE__ */ f("div", { className:
|
|
961
|
+
return /* @__PURE__ */ f("div", { className: dr, "data-testid": t, ref: lr, ...x, children: [
|
|
943
962
|
n,
|
|
944
963
|
(e || r) && u && /* @__PURE__ */ o(
|
|
945
|
-
|
|
964
|
+
aa,
|
|
946
965
|
{
|
|
947
966
|
disabled: p,
|
|
948
967
|
href: r,
|
|
@@ -953,26 +972,26 @@ const X = ({
|
|
|
953
972
|
] });
|
|
954
973
|
}
|
|
955
974
|
);
|
|
956
|
-
|
|
957
|
-
const
|
|
958
|
-
const p =
|
|
959
|
-
|
|
975
|
+
cr.displayName = "CardRoot";
|
|
976
|
+
const ar = l.bind(mr), Z = "purpur-card", d = ({ children: t, className: n, ...a }) => {
|
|
977
|
+
const p = ar([
|
|
978
|
+
Z,
|
|
960
979
|
n,
|
|
961
980
|
{
|
|
962
|
-
[`${
|
|
963
|
-
[`${
|
|
981
|
+
[`${Z}--is-interactive`]: a.onClick || a.href,
|
|
982
|
+
[`${Z}--disabled`]: a.disabled
|
|
964
983
|
}
|
|
965
984
|
]);
|
|
966
|
-
return /* @__PURE__ */ o(
|
|
985
|
+
return /* @__PURE__ */ o(cr, { className: ar(p), ...a, children: t });
|
|
967
986
|
};
|
|
968
|
-
d.Badge =
|
|
969
|
-
d.Content =
|
|
970
|
-
d.ContentContainer =
|
|
971
|
-
d.Cta =
|
|
972
|
-
d.FeatureList =
|
|
973
|
-
d.Overline =
|
|
987
|
+
d.Badge = Fr;
|
|
988
|
+
d.Content = Ur;
|
|
989
|
+
d.ContentContainer = Jr;
|
|
990
|
+
d.Cta = it;
|
|
991
|
+
d.FeatureList = Ct;
|
|
992
|
+
d.Overline = Ft;
|
|
974
993
|
d.Heading = qt;
|
|
975
|
-
d.Media =
|
|
994
|
+
d.Media = Et;
|
|
976
995
|
d.MediaLayout = Bt;
|
|
977
996
|
d.displayName = "Card";
|
|
978
997
|
export {
|