@purpurds/card 6.7.2 → 6.8.1
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.map +1 -1
- package/dist/card.es.js +107 -106
- package/dist/card.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +11 -11
- package/src/card-badge.module.scss +3 -3
- package/src/card-heading.module.scss +2 -0
- package/src/card-root.module.scss +1 -2
- package/src/card.module.scss +5 -2
- package/src/card.tsx +5 -3
package/dist/card.es.js
CHANGED
|
@@ -5,15 +5,15 @@ import "react-dom";
|
|
|
5
5
|
function gr(t) {
|
|
6
6
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var z = { exports: {} };
|
|
9
9
|
/*!
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
14
|
+
var R;
|
|
15
15
|
function hr() {
|
|
16
|
-
return
|
|
16
|
+
return R || (R = 1, function(t) {
|
|
17
17
|
(function() {
|
|
18
18
|
var n = {}.hasOwnProperty;
|
|
19
19
|
function a() {
|
|
@@ -42,24 +42,25 @@ function hr() {
|
|
|
42
42
|
}
|
|
43
43
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
44
44
|
})();
|
|
45
|
-
}(
|
|
45
|
+
}(z)), z.exports;
|
|
46
46
|
}
|
|
47
47
|
var fr = hr();
|
|
48
48
|
const l = /* @__PURE__ */ gr(fr), mr = {
|
|
49
|
-
"purpur-
|
|
49
|
+
"purpur-card__container": "_purpur-card__container_2maou_1",
|
|
50
|
+
"purpur-card": "_purpur-card_2maou_1"
|
|
50
51
|
};
|
|
51
52
|
function vr(t) {
|
|
52
53
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
53
54
|
}
|
|
54
|
-
var
|
|
55
|
+
var E = { exports: {} };
|
|
55
56
|
/*!
|
|
56
57
|
Copyright (c) 2018 Jed Watson.
|
|
57
58
|
Licensed under the MIT License (MIT), see
|
|
58
59
|
http://jedwatson.github.io/classnames
|
|
59
60
|
*/
|
|
60
|
-
var
|
|
61
|
+
var P;
|
|
61
62
|
function yr() {
|
|
62
|
-
return
|
|
63
|
+
return P || (P = 1, function(t) {
|
|
63
64
|
(function() {
|
|
64
65
|
var n = {}.hasOwnProperty;
|
|
65
66
|
function a() {
|
|
@@ -88,10 +89,10 @@ function yr() {
|
|
|
88
89
|
}
|
|
89
90
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
90
91
|
})();
|
|
91
|
-
}(
|
|
92
|
+
}(E)), E.exports;
|
|
92
93
|
}
|
|
93
|
-
var
|
|
94
|
-
const
|
|
94
|
+
var $r = yr();
|
|
95
|
+
const br = /* @__PURE__ */ vr($r), wr = {
|
|
95
96
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
96
97
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
97
98
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -99,7 +100,7 @@ const $r = /* @__PURE__ */ vr(br), wr = {
|
|
|
99
100
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
100
101
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
101
102
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
102
|
-
}, xr =
|
|
103
|
+
}, xr = br.bind(wr), H = "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
104
|
const a = [
|
|
104
105
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
105
106
|
{ name: "fill", value: "currentColor" },
|
|
@@ -118,7 +119,7 @@ const $r = /* @__PURE__ */ vr(br), wr = {
|
|
|
118
119
|
const e = jr({
|
|
119
120
|
content: zr(n.svg),
|
|
120
121
|
title: a
|
|
121
|
-
}), u = xr(p,
|
|
122
|
+
}), u = xr(p, H, `${H}--${i}`);
|
|
122
123
|
return /* @__PURE__ */ o(
|
|
123
124
|
"span",
|
|
124
125
|
{
|
|
@@ -151,12 +152,12 @@ const Sr = {
|
|
|
151
152
|
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>',
|
|
152
153
|
keywords: ["error"],
|
|
153
154
|
category: "status"
|
|
154
|
-
},
|
|
155
|
+
}, Mr = {
|
|
155
156
|
name: "info",
|
|
156
157
|
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>',
|
|
157
158
|
keywords: ["info"],
|
|
158
159
|
category: "status"
|
|
159
|
-
},
|
|
160
|
+
}, qr = {
|
|
160
161
|
name: "offering",
|
|
161
162
|
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>',
|
|
162
163
|
keywords: ["offering"],
|
|
@@ -175,15 +176,15 @@ const Sr = {
|
|
|
175
176
|
function Er(t) {
|
|
176
177
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
177
178
|
}
|
|
178
|
-
var
|
|
179
|
+
var L = { exports: {} };
|
|
179
180
|
/*!
|
|
180
181
|
Copyright (c) 2018 Jed Watson.
|
|
181
182
|
Licensed under the MIT License (MIT), see
|
|
182
183
|
http://jedwatson.github.io/classnames
|
|
183
184
|
*/
|
|
184
|
-
var
|
|
185
|
+
var B;
|
|
185
186
|
function Pr() {
|
|
186
|
-
return
|
|
187
|
+
return B || (B = 1, function(t) {
|
|
187
188
|
(function() {
|
|
188
189
|
var n = {}.hasOwnProperty;
|
|
189
190
|
function a() {
|
|
@@ -212,10 +213,10 @@ function Pr() {
|
|
|
212
213
|
}
|
|
213
214
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
214
215
|
})();
|
|
215
|
-
}(
|
|
216
|
+
}(L)), L.exports;
|
|
216
217
|
}
|
|
217
218
|
var Hr = Pr();
|
|
218
|
-
const
|
|
219
|
+
const I = /* @__PURE__ */ Er(Hr), S = {
|
|
219
220
|
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
220
221
|
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
221
222
|
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
@@ -227,7 +228,7 @@ const B = /* @__PURE__ */ Er(Hr), z = {
|
|
|
227
228
|
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
228
229
|
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
229
230
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
230
|
-
},
|
|
231
|
+
}, O = "purpur-badge", _ = {
|
|
231
232
|
ATTENTION: "attention",
|
|
232
233
|
BLACK_FRIDAY: "black-friday",
|
|
233
234
|
ERROR: "error",
|
|
@@ -241,9 +242,9 @@ const B = /* @__PURE__ */ Er(Hr), z = {
|
|
|
241
242
|
switch (t) {
|
|
242
243
|
case _.ATTENTION:
|
|
243
244
|
case _.SPECIAL:
|
|
244
|
-
return Mr;
|
|
245
|
-
case _.INFORMATION:
|
|
246
245
|
return qr;
|
|
246
|
+
case _.INFORMATION:
|
|
247
|
+
return Mr;
|
|
247
248
|
case _.GENERAL:
|
|
248
249
|
return Ar;
|
|
249
250
|
case _.SUCCESS:
|
|
@@ -268,7 +269,7 @@ const B = /* @__PURE__ */ Er(Hr), z = {
|
|
|
268
269
|
className: r = "",
|
|
269
270
|
...e
|
|
270
271
|
}) => {
|
|
271
|
-
const u = Lr(a), c =
|
|
272
|
+
const u = Lr(a), c = I([r, S[O], S[`${O}--${a}`]]);
|
|
272
273
|
return /* @__PURE__ */ f("span", { "aria-label": i, className: c, "data-testid": p, ...e, children: [
|
|
273
274
|
n && u && /* @__PURE__ */ o(
|
|
274
275
|
nr,
|
|
@@ -277,13 +278,13 @@ const B = /* @__PURE__ */ Er(Hr), z = {
|
|
|
277
278
|
allyTitle: i,
|
|
278
279
|
size: "xs",
|
|
279
280
|
svg: u,
|
|
280
|
-
className:
|
|
281
|
+
className: I(S[`${O}__icon`])
|
|
281
282
|
}
|
|
282
283
|
),
|
|
283
284
|
t
|
|
284
285
|
] });
|
|
285
286
|
}, Ir = {
|
|
286
|
-
"purpur-card-badge": "_purpur-card-
|
|
287
|
+
"purpur-card-badge": "_purpur-card-badge_k9ziu_1"
|
|
287
288
|
}, Vr = l.bind(Ir), Tr = "purpur-card-badge", Fr = ({
|
|
288
289
|
["data-testid"]: t = "purpur-card-badge",
|
|
289
290
|
variant: n,
|
|
@@ -308,7 +309,7 @@ const B = /* @__PURE__ */ Er(Hr), z = {
|
|
|
308
309
|
"purpur-card-content-container--gap-size--sm": "_purpur-card-content-container--gap-size--sm_putaw_20",
|
|
309
310
|
"purpur-card-content-container--gap-size--md": "_purpur-card-content-container--gap-size--md_putaw_23",
|
|
310
311
|
"purpur-card-content-container--gap-size--lg": "_purpur-card-content-container--gap-size--lg_putaw_26"
|
|
311
|
-
}, Yr = l.bind(Kr),
|
|
312
|
+
}, Yr = l.bind(Kr), A = "purpur-card-content-container", Jr = ({
|
|
312
313
|
["data-testid"]: t = "purpur-card-content-container",
|
|
313
314
|
children: n,
|
|
314
315
|
isFooter: a = !1,
|
|
@@ -317,10 +318,10 @@ const B = /* @__PURE__ */ Er(Hr), z = {
|
|
|
317
318
|
"div",
|
|
318
319
|
{
|
|
319
320
|
className: Yr([
|
|
320
|
-
|
|
321
|
-
`${
|
|
321
|
+
A,
|
|
322
|
+
`${A}--gap-size--${p}`,
|
|
322
323
|
{
|
|
323
|
-
[`${
|
|
324
|
+
[`${A}--footer`]: a
|
|
324
325
|
}
|
|
325
326
|
]),
|
|
326
327
|
"data-testid": t,
|
|
@@ -330,15 +331,15 @@ const B = /* @__PURE__ */ Er(Hr), z = {
|
|
|
330
331
|
function Qr(t) {
|
|
331
332
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
332
333
|
}
|
|
333
|
-
var
|
|
334
|
+
var V = { exports: {} };
|
|
334
335
|
/*!
|
|
335
336
|
Copyright (c) 2018 Jed Watson.
|
|
336
337
|
Licensed under the MIT License (MIT), see
|
|
337
338
|
http://jedwatson.github.io/classnames
|
|
338
339
|
*/
|
|
339
|
-
var
|
|
340
|
+
var T;
|
|
340
341
|
function Xr() {
|
|
341
|
-
return
|
|
342
|
+
return T || (T = 1, function(t) {
|
|
342
343
|
(function() {
|
|
343
344
|
var n = {}.hasOwnProperty;
|
|
344
345
|
function a() {
|
|
@@ -367,10 +368,10 @@ function Xr() {
|
|
|
367
368
|
}
|
|
368
369
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
369
370
|
})();
|
|
370
|
-
}(
|
|
371
|
+
}(V)), V.exports;
|
|
371
372
|
}
|
|
372
373
|
var rt = Xr();
|
|
373
|
-
const
|
|
374
|
+
const F = /* @__PURE__ */ Qr(rt), tt = "_rotate_1xozj_1", at = "_dash_1xozj_1", m = {
|
|
374
375
|
"purpur-spinner": "_purpur-spinner_1xozj_1",
|
|
375
376
|
rotate: tt,
|
|
376
377
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
|
|
@@ -393,13 +394,13 @@ const T = /* @__PURE__ */ Qr(rt), tt = "_rotate_1xozj_1", at = "_dash_1xozj_1",
|
|
|
393
394
|
}) => /* @__PURE__ */ o(
|
|
394
395
|
"div",
|
|
395
396
|
{
|
|
396
|
-
className:
|
|
397
|
+
className: F([m[v], m[`${v}--${p}`]]),
|
|
397
398
|
"data-testid": t,
|
|
398
399
|
...i,
|
|
399
400
|
children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
400
401
|
"circle",
|
|
401
402
|
{
|
|
402
|
-
className:
|
|
403
|
+
className: F(m[`${v}__circle`], {
|
|
403
404
|
[m[`${v}__circle--disabled`]]: n,
|
|
404
405
|
[m[`${v}__circle--negative`]]: a
|
|
405
406
|
}),
|
|
@@ -466,15 +467,15 @@ const T = /* @__PURE__ */ Qr(rt), tt = "_rotate_1xozj_1", at = "_dash_1xozj_1",
|
|
|
466
467
|
function ot(t) {
|
|
467
468
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
468
469
|
}
|
|
469
|
-
var
|
|
470
|
+
var G = { exports: {} };
|
|
470
471
|
/*!
|
|
471
472
|
Copyright (c) 2018 Jed Watson.
|
|
472
473
|
Licensed under the MIT License (MIT), see
|
|
473
474
|
http://jedwatson.github.io/classnames
|
|
474
475
|
*/
|
|
475
|
-
var
|
|
476
|
+
var W;
|
|
476
477
|
function st() {
|
|
477
|
-
return
|
|
478
|
+
return W || (W = 1, function(t) {
|
|
478
479
|
(function() {
|
|
479
480
|
var n = {}.hasOwnProperty;
|
|
480
481
|
function a() {
|
|
@@ -503,7 +504,7 @@ function st() {
|
|
|
503
504
|
}
|
|
504
505
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
505
506
|
})();
|
|
506
|
-
}(
|
|
507
|
+
}(G)), G.exports;
|
|
507
508
|
}
|
|
508
509
|
var ct = st();
|
|
509
510
|
const lt = /* @__PURE__ */ ot(ct), dt = {
|
|
@@ -514,7 +515,7 @@ const lt = /* @__PURE__ */ ot(ct), dt = {
|
|
|
514
515
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
515
516
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
516
517
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
517
|
-
}, _t = lt.bind(dt),
|
|
518
|
+
}, _t = lt.bind(dt), D = "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 } = {}) => {
|
|
518
519
|
const a = [
|
|
519
520
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
520
521
|
{ name: "fill", value: "currentColor" },
|
|
@@ -533,7 +534,7 @@ const lt = /* @__PURE__ */ ot(ct), dt = {
|
|
|
533
534
|
const e = ft({
|
|
534
535
|
content: mt(n.svg),
|
|
535
536
|
title: a
|
|
536
|
-
}), u = _t(p,
|
|
537
|
+
}), u = _t(p, D, `${D}--${i}`);
|
|
537
538
|
return /* @__PURE__ */ o(
|
|
538
539
|
"span",
|
|
539
540
|
{
|
|
@@ -556,15 +557,15 @@ pr.displayName = "IconCheckmark";
|
|
|
556
557
|
function yt(t) {
|
|
557
558
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
558
559
|
}
|
|
559
|
-
var
|
|
560
|
+
var U = { exports: {} };
|
|
560
561
|
/*!
|
|
561
562
|
Copyright (c) 2018 Jed Watson.
|
|
562
563
|
Licensed under the MIT License (MIT), see
|
|
563
564
|
http://jedwatson.github.io/classnames
|
|
564
565
|
*/
|
|
565
|
-
var
|
|
566
|
-
function
|
|
567
|
-
return
|
|
566
|
+
var K;
|
|
567
|
+
function $t() {
|
|
568
|
+
return K || (K = 1, function(t) {
|
|
568
569
|
(function() {
|
|
569
570
|
var n = {}.hasOwnProperty;
|
|
570
571
|
function a() {
|
|
@@ -593,10 +594,10 @@ function bt() {
|
|
|
593
594
|
}
|
|
594
595
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
595
596
|
})();
|
|
596
|
-
}(
|
|
597
|
+
}(U)), U.exports;
|
|
597
598
|
}
|
|
598
|
-
var
|
|
599
|
-
const wt = /* @__PURE__ */ yt(
|
|
599
|
+
var bt = $t();
|
|
600
|
+
const wt = /* @__PURE__ */ yt(bt), y = {
|
|
600
601
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
601
602
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
602
603
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -613,7 +614,7 @@ const wt = /* @__PURE__ */ yt($t), y = {
|
|
|
613
614
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
614
615
|
}, xt = {
|
|
615
616
|
PARAGRAPH100: "paragraph-100"
|
|
616
|
-
},
|
|
617
|
+
}, $ = "purpur-paragraph", k = ({
|
|
617
618
|
["data-testid"]: t,
|
|
618
619
|
children: n,
|
|
619
620
|
className: a,
|
|
@@ -625,31 +626,31 @@ const wt = /* @__PURE__ */ yt($t), y = {
|
|
|
625
626
|
}) => {
|
|
626
627
|
const c = wt([
|
|
627
628
|
a,
|
|
628
|
-
y[
|
|
629
|
-
y[`${
|
|
629
|
+
y[$],
|
|
630
|
+
y[`${$}--${e}`],
|
|
630
631
|
{
|
|
631
|
-
[y[`${
|
|
632
|
-
[y[`${
|
|
633
|
-
[y[`${
|
|
632
|
+
[y[`${$}--hyphens`]]: i,
|
|
633
|
+
[y[`${$}--disabled`]]: p,
|
|
634
|
+
[y[`${$}--negative`]]: r
|
|
634
635
|
}
|
|
635
636
|
]);
|
|
636
637
|
return /* @__PURE__ */ o("p", { ...u, className: c, "data-testid": t, children: n });
|
|
637
638
|
};
|
|
638
|
-
|
|
639
|
+
k.displayName = "Paragraph";
|
|
639
640
|
const Nt = {
|
|
640
641
|
"purpur-card-feature-list": "_purpur-card-feature-list_198s4_1",
|
|
641
642
|
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_198s4_7"
|
|
642
|
-
},
|
|
643
|
+
}, Y = l.bind(Nt), J = "purpur-card-feature-list", Ct = ({
|
|
643
644
|
["data-testid"]: t = "purpur-card-feature-list",
|
|
644
645
|
listItems: n
|
|
645
|
-
}) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className:
|
|
646
|
+
}) => n && n.length > 0 ? /* @__PURE__ */ o("ul", { className: Y(J), "data-testid": t, children: n.map((a) => /* @__PURE__ */ f(
|
|
646
647
|
"li",
|
|
647
648
|
{
|
|
648
|
-
className:
|
|
649
|
+
className: Y(`${J}__list-item`),
|
|
649
650
|
"data-testid": `${t}-item`,
|
|
650
651
|
children: [
|
|
651
652
|
/* @__PURE__ */ o(pr, { size: "xs" }),
|
|
652
|
-
/* @__PURE__ */ o(
|
|
653
|
+
/* @__PURE__ */ o(k, { children: a })
|
|
653
654
|
]
|
|
654
655
|
},
|
|
655
656
|
a
|
|
@@ -657,15 +658,15 @@ const Nt = {
|
|
|
657
658
|
function jt(t) {
|
|
658
659
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
659
660
|
}
|
|
660
|
-
var
|
|
661
|
+
var Q = { exports: {} };
|
|
661
662
|
/*!
|
|
662
663
|
Copyright (c) 2018 Jed Watson.
|
|
663
664
|
Licensed under the MIT License (MIT), see
|
|
664
665
|
http://jedwatson.github.io/classnames
|
|
665
666
|
*/
|
|
666
|
-
var
|
|
667
|
+
var X;
|
|
667
668
|
function zt() {
|
|
668
|
-
return
|
|
669
|
+
return X || (X = 1, function(t) {
|
|
669
670
|
(function() {
|
|
670
671
|
var n = {}.hasOwnProperty;
|
|
671
672
|
function a() {
|
|
@@ -694,10 +695,10 @@ function zt() {
|
|
|
694
695
|
}
|
|
695
696
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
696
697
|
})();
|
|
697
|
-
}(
|
|
698
|
+
}(Q)), Q.exports;
|
|
698
699
|
}
|
|
699
700
|
var St = zt();
|
|
700
|
-
const Ot = /* @__PURE__ */ jt(St),
|
|
701
|
+
const Ot = /* @__PURE__ */ jt(St), b = {
|
|
701
702
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
702
703
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
703
704
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -725,24 +726,24 @@ const Ot = /* @__PURE__ */ jt(St), $ = {
|
|
|
725
726
|
variant: e = At.TITLE100,
|
|
726
727
|
...u
|
|
727
728
|
}) => {
|
|
728
|
-
const c = r,
|
|
729
|
+
const c = r, j = Ot([
|
|
729
730
|
a,
|
|
730
|
-
|
|
731
|
-
|
|
731
|
+
b[w],
|
|
732
|
+
b[`${w}--${e}`],
|
|
732
733
|
{
|
|
733
|
-
[
|
|
734
|
-
[
|
|
734
|
+
[b[`${w}--hyphens`]]: p,
|
|
735
|
+
[b[`${w}--negative`]]: i
|
|
735
736
|
}
|
|
736
737
|
]);
|
|
737
|
-
return /* @__PURE__ */ o(c, { ...u, className:
|
|
738
|
+
return /* @__PURE__ */ o(c, { ...u, className: j, "data-testid": t, children: n });
|
|
738
739
|
};
|
|
739
740
|
ir.displayName = "Heading";
|
|
740
741
|
const Zt = {
|
|
741
|
-
"purpur-card-heading": "_purpur-card-
|
|
742
|
-
"purpur-card-heading__header": "_purpur-card-
|
|
743
|
-
"purpur-card-heading__heading": "_purpur-card-
|
|
744
|
-
"purpur-card-heading__icon": "_purpur-card-
|
|
745
|
-
}, x = l.bind(Zt), N = "purpur-card-heading",
|
|
742
|
+
"purpur-card-heading": "_purpur-card-heading_j3j6u_1",
|
|
743
|
+
"purpur-card-heading__header": "_purpur-card-heading__header_j3j6u_6",
|
|
744
|
+
"purpur-card-heading__heading": "_purpur-card-heading__heading_j3j6u_11",
|
|
745
|
+
"purpur-card-heading__icon": "_purpur-card-heading__icon_j3j6u_14"
|
|
746
|
+
}, x = l.bind(Zt), N = "purpur-card-heading", Mt = ({
|
|
746
747
|
["data-testid"]: t = "purpur-card-heading",
|
|
747
748
|
title: n,
|
|
748
749
|
icon: a,
|
|
@@ -764,9 +765,9 @@ const Zt = {
|
|
|
764
765
|
)
|
|
765
766
|
] }),
|
|
766
767
|
p
|
|
767
|
-
] }),
|
|
768
|
+
] }), qt = {
|
|
768
769
|
"purpur-card-media": "_purpur-card-media_udc1o_1"
|
|
769
|
-
}, kt = l.bind(
|
|
770
|
+
}, kt = l.bind(qt), Rt = "purpur-card-media", Et = ({
|
|
770
771
|
["data-testid"]: t = "purpur-card-media",
|
|
771
772
|
className: n,
|
|
772
773
|
children: a
|
|
@@ -781,17 +782,17 @@ const Zt = {
|
|
|
781
782
|
}, Vt = l.bind(It), Tt = "purpur-card-overline", Ft = ({
|
|
782
783
|
["data-testid"]: t = "purpur-card-overline",
|
|
783
784
|
overline: n
|
|
784
|
-
}) => n ? /* @__PURE__ */ o(
|
|
785
|
-
"purpur-card-root": "_purpur-card-
|
|
786
|
-
"purpur-card-root--primary": "_purpur-card-root--
|
|
787
|
-
"purpur-card-root--secondary": "_purpur-card-root--
|
|
788
|
-
"purpur-card-root--full-height": "_purpur-card-root--full-
|
|
785
|
+
}) => n ? /* @__PURE__ */ o(k, { className: Vt(Tt), "data-testid": t, children: n }) : null, Gt = {
|
|
786
|
+
"purpur-card-root": "_purpur-card-root_eupww_1",
|
|
787
|
+
"purpur-card-root--primary": "_purpur-card-root--primary_eupww_7",
|
|
788
|
+
"purpur-card-root--secondary": "_purpur-card-root--secondary_eupww_10",
|
|
789
|
+
"purpur-card-root--full-height": "_purpur-card-root--full-height_eupww_13"
|
|
789
790
|
}, Wt = {
|
|
790
791
|
"purpur-card-trigger-item": "_purpur-card-trigger-item_1sp43_1",
|
|
791
792
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_1sp43_6",
|
|
792
793
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_1sp43_11"
|
|
793
794
|
};
|
|
794
|
-
function
|
|
795
|
+
function rr(t, n) {
|
|
795
796
|
if (typeof t == "function")
|
|
796
797
|
return t(n);
|
|
797
798
|
t != null && (t.current = n);
|
|
@@ -800,14 +801,14 @@ function Dt(...t) {
|
|
|
800
801
|
return (n) => {
|
|
801
802
|
let a = !1;
|
|
802
803
|
const p = t.map((i) => {
|
|
803
|
-
const r =
|
|
804
|
+
const r = rr(i, n);
|
|
804
805
|
return !a && typeof r == "function" && (a = !0), r;
|
|
805
806
|
});
|
|
806
807
|
if (a)
|
|
807
808
|
return () => {
|
|
808
809
|
for (let i = 0; i < p.length; i++) {
|
|
809
810
|
const r = p[i];
|
|
810
|
-
typeof r == "function" ? r() :
|
|
811
|
+
typeof r == "function" ? r() : rr(t[i], null);
|
|
811
812
|
}
|
|
812
813
|
};
|
|
813
814
|
};
|
|
@@ -897,12 +898,12 @@ var Qt = [
|
|
|
897
898
|
);
|
|
898
899
|
sr.displayName = ra;
|
|
899
900
|
var ta = sr;
|
|
900
|
-
const
|
|
901
|
+
const tr = ({
|
|
901
902
|
asChild: t,
|
|
902
903
|
children: n,
|
|
903
904
|
className: a = "",
|
|
904
905
|
["data-testid"]: p
|
|
905
|
-
}) => /* @__PURE__ */ o(ta, { asChild: t, "data-testid": p, className: a, children: n }),
|
|
906
|
+
}) => /* @__PURE__ */ o(ta, { asChild: t, "data-testid": p, className: a, children: n }), ar = l.bind(Wt), h = "purpur-card-trigger-item", aa = ({
|
|
906
907
|
["data-testid"]: t = "purpur-card-trigger-item",
|
|
907
908
|
disabled: n = !1,
|
|
908
909
|
href: a,
|
|
@@ -918,7 +919,7 @@ const rr = ({
|
|
|
918
919
|
"a",
|
|
919
920
|
{
|
|
920
921
|
"aria-disabled": n,
|
|
921
|
-
className: `${
|
|
922
|
+
className: `${ar([
|
|
922
923
|
h,
|
|
923
924
|
{
|
|
924
925
|
[`${h}--disabled`]: n
|
|
@@ -928,14 +929,14 @@ const rr = ({
|
|
|
928
929
|
href: n ? void 0 : a,
|
|
929
930
|
tabIndex: n ? 0 : void 0,
|
|
930
931
|
onClick: r,
|
|
931
|
-
children: /* @__PURE__ */ o(
|
|
932
|
+
children: /* @__PURE__ */ o(tr, { children: i })
|
|
932
933
|
}
|
|
933
934
|
)
|
|
934
935
|
) : /* @__PURE__ */ o(
|
|
935
936
|
"button",
|
|
936
937
|
{
|
|
937
938
|
"aria-disabled": n,
|
|
938
|
-
className: `${
|
|
939
|
+
className: `${ar([
|
|
939
940
|
h,
|
|
940
941
|
`${h}--button`,
|
|
941
942
|
{
|
|
@@ -945,10 +946,10 @@ const rr = ({
|
|
|
945
946
|
"data-testid": t,
|
|
946
947
|
type: "button",
|
|
947
948
|
onClick: r,
|
|
948
|
-
children: /* @__PURE__ */ o(
|
|
949
|
+
children: /* @__PURE__ */ o(tr, { children: i })
|
|
949
950
|
}
|
|
950
951
|
);
|
|
951
|
-
}, ea = l.bind(Gt),
|
|
952
|
+
}, ea = l.bind(Gt), Z = "purpur-card-root", cr = _r(
|
|
952
953
|
({
|
|
953
954
|
["data-testid"]: t = "purpur-card-root",
|
|
954
955
|
children: n,
|
|
@@ -959,17 +960,17 @@ const rr = ({
|
|
|
959
960
|
onClick: e,
|
|
960
961
|
screenReaderText: u,
|
|
961
962
|
variant: c,
|
|
962
|
-
...
|
|
963
|
+
...j
|
|
963
964
|
}, lr) => {
|
|
964
965
|
const dr = ea([
|
|
965
|
-
|
|
966
|
+
Z,
|
|
966
967
|
a,
|
|
967
968
|
{
|
|
968
|
-
[`${
|
|
969
|
-
[`${
|
|
969
|
+
[`${Z}--${c}`]: c,
|
|
970
|
+
[`${Z}--full-height`]: i
|
|
970
971
|
}
|
|
971
972
|
]);
|
|
972
|
-
return /* @__PURE__ */ f("div", { className: dr, "data-testid": t, ref: lr, ...
|
|
973
|
+
return /* @__PURE__ */ f("div", { className: dr, "data-testid": t, ref: lr, ...j, children: [
|
|
973
974
|
n,
|
|
974
975
|
(e || r) && u && /* @__PURE__ */ o(
|
|
975
976
|
aa,
|
|
@@ -984,16 +985,16 @@ const rr = ({
|
|
|
984
985
|
}
|
|
985
986
|
);
|
|
986
987
|
cr.displayName = "CardRoot";
|
|
987
|
-
const
|
|
988
|
-
const p =
|
|
989
|
-
|
|
988
|
+
const M = l.bind(mr), C = "purpur-card", d = ({ children: t, className: n, ...a }) => {
|
|
989
|
+
const p = M([
|
|
990
|
+
C,
|
|
990
991
|
n,
|
|
991
992
|
{
|
|
992
|
-
[`${
|
|
993
|
-
[`${
|
|
993
|
+
[`${C}--is-interactive`]: a.onClick || a.href,
|
|
994
|
+
[`${C}--disabled`]: a.disabled
|
|
994
995
|
}
|
|
995
996
|
]);
|
|
996
|
-
return /* @__PURE__ */ o(cr, { className:
|
|
997
|
+
return /* @__PURE__ */ o("div", { className: M(`${C}__container`), children: /* @__PURE__ */ o(cr, { className: M(p), ...a, children: t }) });
|
|
997
998
|
};
|
|
998
999
|
d.Badge = Fr;
|
|
999
1000
|
d.Content = Ur;
|
|
@@ -1001,7 +1002,7 @@ d.ContentContainer = Jr;
|
|
|
1001
1002
|
d.Cta = it;
|
|
1002
1003
|
d.FeatureList = Ct;
|
|
1003
1004
|
d.Overline = Ft;
|
|
1004
|
-
d.Heading =
|
|
1005
|
+
d.Heading = Mt;
|
|
1005
1006
|
d.Media = Et;
|
|
1006
1007
|
d.MediaLayout = Bt;
|
|
1007
1008
|
d.displayName = "Card";
|