@purpurds/card 7.1.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.txt +5 -5
- package/dist/card-content-container.d.ts +2 -1
- package/dist/card-content-container.d.ts.map +1 -1
- package/dist/card-content.d.ts +2 -2
- package/dist/card-content.d.ts.map +1 -1
- package/dist/card-media-layout.d.ts +2 -1
- package/dist/card-media-layout.d.ts.map +1 -1
- package/dist/card.cjs.js +8 -8
- package/dist/card.cjs.js.map +1 -1
- package/dist/card.es.js +214 -198
- package/dist/card.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +11 -11
- package/src/card-content-container.module.scss +6 -4
- package/src/card-content-container.tsx +3 -0
- package/src/card-content.tsx +4 -2
- package/src/card-feature-list.module.scss +6 -0
- package/src/card-feature-list.tsx +1 -1
- package/src/card-media-layout.module.scss +17 -5
- package/src/card-media-layout.tsx +7 -1
- package/src/card-media.module.scss +1 -1
package/dist/card.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as b, jsx as s, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
function
|
|
1
|
+
import { jsxs as b, jsx as s, Fragment as cr } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as or } from "react";
|
|
3
|
+
function lr(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var S = { exports: {} };
|
|
7
7
|
/*!
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
10
10
|
http://jedwatson.github.io/classnames
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return
|
|
12
|
+
var R;
|
|
13
|
+
function dr() {
|
|
14
|
+
return R || (R = 1, function(t) {
|
|
15
15
|
(function() {
|
|
16
16
|
var u = {}.hasOwnProperty;
|
|
17
17
|
function e() {
|
|
@@ -40,26 +40,26 @@ function lr() {
|
|
|
40
40
|
}
|
|
41
41
|
t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
|
|
42
42
|
})();
|
|
43
|
-
}(
|
|
43
|
+
}(S)), S.exports;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const o = /* @__PURE__ */
|
|
45
|
+
var _r = dr();
|
|
46
|
+
const o = /* @__PURE__ */ lr(_r), gr = {
|
|
47
47
|
"purpur-card__container": "_purpur-card__container_fwz6v_1",
|
|
48
48
|
"purpur-card__container--full-height": "_purpur-card__container--full-height_fwz6v_4",
|
|
49
49
|
"purpur-card": "_purpur-card_fwz6v_1"
|
|
50
50
|
};
|
|
51
|
-
function
|
|
51
|
+
function hr(t) {
|
|
52
52
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var H = { 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 P;
|
|
61
|
+
function fr() {
|
|
62
|
+
return P || (P = 1, function(t) {
|
|
63
63
|
(function() {
|
|
64
64
|
var u = {}.hasOwnProperty;
|
|
65
65
|
function e() {
|
|
@@ -88,10 +88,10 @@ function hr() {
|
|
|
88
88
|
}
|
|
89
89
|
t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
|
|
90
90
|
})();
|
|
91
|
-
}(
|
|
91
|
+
}(H)), H.exports;
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
const vr = /* @__PURE__ */
|
|
93
|
+
var mr = fr();
|
|
94
|
+
const vr = /* @__PURE__ */ hr(mr), yr = {
|
|
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 vr = /* @__PURE__ */ gr(fr), mr = {
|
|
|
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
|
+
}, br = vr.bind(yr), E = "purpur-icon", $r = "md", wr = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), xr = ({ content: t = "", title: u } = {}) => {
|
|
103
103
|
const e = [
|
|
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
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
108
108
|
], p = u ? `<title>${u}</title>` : "";
|
|
109
|
-
return `<svg ${
|
|
110
|
-
},
|
|
109
|
+
return `<svg ${wr(e)}>${p}${t}</svg>`;
|
|
110
|
+
}, Nr = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), rr = ({
|
|
111
111
|
["data-testid"]: t,
|
|
112
112
|
svg: u,
|
|
113
113
|
allyTitle: e,
|
|
114
114
|
className: p,
|
|
115
|
-
size: i =
|
|
115
|
+
size: i = $r,
|
|
116
116
|
...r
|
|
117
117
|
}) => {
|
|
118
|
-
const a =
|
|
119
|
-
content:
|
|
118
|
+
const a = xr({
|
|
119
|
+
content: Nr(u.svg),
|
|
120
120
|
title: e
|
|
121
|
-
}), n =
|
|
121
|
+
}), n = br(p, E, `${E}--${i}`);
|
|
122
122
|
return /* @__PURE__ */ s(
|
|
123
123
|
"span",
|
|
124
124
|
{
|
|
@@ -129,60 +129,60 @@ const vr = /* @__PURE__ */ gr(fr), mr = {
|
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
131
|
};
|
|
132
|
-
|
|
133
|
-
const
|
|
132
|
+
rr.displayName = "Icon";
|
|
133
|
+
const Cr = {
|
|
134
134
|
name: "alert",
|
|
135
135
|
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>',
|
|
136
136
|
keywords: ["alert"],
|
|
137
137
|
category: "status"
|
|
138
|
-
},
|
|
138
|
+
}, Sr = {
|
|
139
139
|
name: "check-circle",
|
|
140
140
|
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>',
|
|
141
141
|
keywords: ["check-circle"],
|
|
142
142
|
category: "status"
|
|
143
|
-
},
|
|
143
|
+
}, jr = {
|
|
144
144
|
name: "devices",
|
|
145
145
|
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>',
|
|
146
146
|
keywords: ["devices"],
|
|
147
147
|
category: "device"
|
|
148
|
-
},
|
|
148
|
+
}, zr = {
|
|
149
149
|
name: "error",
|
|
150
150
|
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>',
|
|
151
151
|
keywords: ["error"],
|
|
152
152
|
category: "status"
|
|
153
|
-
},
|
|
153
|
+
}, Ar = {
|
|
154
154
|
name: "info",
|
|
155
155
|
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>',
|
|
156
156
|
keywords: ["info"],
|
|
157
157
|
category: "status"
|
|
158
|
-
},
|
|
158
|
+
}, Or = {
|
|
159
159
|
name: "offering",
|
|
160
160
|
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>',
|
|
161
161
|
keywords: ["offering"],
|
|
162
162
|
category: "other"
|
|
163
|
-
},
|
|
163
|
+
}, Zr = {
|
|
164
164
|
name: "question",
|
|
165
165
|
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>',
|
|
166
166
|
keywords: ["question"],
|
|
167
167
|
category: "status"
|
|
168
|
-
},
|
|
168
|
+
}, Mr = {
|
|
169
169
|
name: "tag",
|
|
170
170
|
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>',
|
|
171
171
|
keywords: ["tag"],
|
|
172
172
|
category: "other"
|
|
173
173
|
};
|
|
174
|
-
function
|
|
174
|
+
function kr(t) {
|
|
175
175
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var L = { exports: {} };
|
|
178
178
|
/*!
|
|
179
179
|
Copyright (c) 2018 Jed Watson.
|
|
180
180
|
Licensed under the MIT License (MIT), see
|
|
181
181
|
http://jedwatson.github.io/classnames
|
|
182
182
|
*/
|
|
183
|
-
var
|
|
184
|
-
function
|
|
185
|
-
return
|
|
183
|
+
var T;
|
|
184
|
+
function qr() {
|
|
185
|
+
return T || (T = 1, function(t) {
|
|
186
186
|
(function() {
|
|
187
187
|
var u = {}.hasOwnProperty;
|
|
188
188
|
function e() {
|
|
@@ -211,10 +211,10 @@ function kr() {
|
|
|
211
211
|
}
|
|
212
212
|
t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
|
|
213
213
|
})();
|
|
214
|
-
}(
|
|
214
|
+
}(L)), L.exports;
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
const
|
|
216
|
+
var Rr = qr();
|
|
217
|
+
const B = /* @__PURE__ */ kr(Rr), j = {
|
|
218
218
|
"purpur-badge": "_purpur-badge_1mlzj_1",
|
|
219
219
|
"purpur-badge__icon": "_purpur-badge__icon_1mlzj_13",
|
|
220
220
|
"purpur-badge--attention": "_purpur-badge--attention_1mlzj_17",
|
|
@@ -226,7 +226,7 @@ const L = /* @__PURE__ */ Mr(qr), S = {
|
|
|
226
226
|
"purpur-badge--warning": "_purpur-badge--warning_1mlzj_41",
|
|
227
227
|
"purpur-badge--error": "_purpur-badge--error_1mlzj_45",
|
|
228
228
|
"purpur-badge--black-friday": "_purpur-badge--black-friday_1mlzj_49"
|
|
229
|
-
},
|
|
229
|
+
}, z = "purpur-badge", d = {
|
|
230
230
|
ATTENTION: "attention",
|
|
231
231
|
BLACK_FRIDAY: "black-friday",
|
|
232
232
|
ERROR: "error",
|
|
@@ -236,29 +236,29 @@ const L = /* @__PURE__ */ Mr(qr), S = {
|
|
|
236
236
|
SPECIAL: "special",
|
|
237
237
|
SUCCESS: "success",
|
|
238
238
|
WARNING: "warning"
|
|
239
|
-
},
|
|
239
|
+
}, Hr = (t) => {
|
|
240
240
|
switch (t) {
|
|
241
241
|
case d.ATTENTION:
|
|
242
242
|
case d.SPECIAL:
|
|
243
|
-
return
|
|
243
|
+
return Or;
|
|
244
244
|
case d.INFORMATION:
|
|
245
|
-
return
|
|
245
|
+
return Ar;
|
|
246
246
|
case d.GENERAL:
|
|
247
|
-
return
|
|
247
|
+
return jr;
|
|
248
248
|
case d.SUCCESS:
|
|
249
|
-
return
|
|
249
|
+
return Sr;
|
|
250
250
|
case d.WARNING:
|
|
251
|
-
return
|
|
251
|
+
return Cr;
|
|
252
252
|
case d.ERROR:
|
|
253
|
-
return
|
|
253
|
+
return zr;
|
|
254
254
|
case d.NEUTRAL:
|
|
255
|
-
return Or;
|
|
256
|
-
case d.BLACK_FRIDAY:
|
|
257
255
|
return Zr;
|
|
256
|
+
case d.BLACK_FRIDAY:
|
|
257
|
+
return Mr;
|
|
258
258
|
default:
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
|
-
},
|
|
261
|
+
}, Pr = ({
|
|
262
262
|
children: t,
|
|
263
263
|
showIcon: u = !0,
|
|
264
264
|
iconAllyTitle: e,
|
|
@@ -267,81 +267,86 @@ const L = /* @__PURE__ */ Mr(qr), S = {
|
|
|
267
267
|
className: r = "",
|
|
268
268
|
...a
|
|
269
269
|
}) => {
|
|
270
|
-
const n =
|
|
270
|
+
const n = Hr(p), c = B([r, j[z], j[`${z}--${p}`]]);
|
|
271
271
|
return /* @__PURE__ */ b("span", { className: c, "data-testid": i, ...a, children: [
|
|
272
272
|
u && n && /* @__PURE__ */ s(
|
|
273
|
-
|
|
273
|
+
rr,
|
|
274
274
|
{
|
|
275
275
|
"data-testid": `${i}-icon`,
|
|
276
276
|
allyTitle: e,
|
|
277
277
|
size: "xs",
|
|
278
278
|
svg: n,
|
|
279
|
-
className:
|
|
279
|
+
className: B(j[`${z}__icon`])
|
|
280
280
|
}
|
|
281
281
|
),
|
|
282
282
|
t
|
|
283
283
|
] });
|
|
284
|
-
},
|
|
284
|
+
}, Er = {
|
|
285
285
|
"purpur-card-badge": "_purpur-card-badge_k9ziu_1"
|
|
286
|
-
},
|
|
286
|
+
}, Lr = o.bind(Er), Tr = "purpur-card-badge", Br = ({
|
|
287
287
|
["data-testid"]: t = "purpur-card-badge",
|
|
288
288
|
variant: u,
|
|
289
289
|
text: e
|
|
290
290
|
}) => u && e ? /* @__PURE__ */ s(
|
|
291
|
-
|
|
291
|
+
Pr,
|
|
292
292
|
{
|
|
293
|
-
className:
|
|
293
|
+
className: Lr(Tr),
|
|
294
294
|
variant: u,
|
|
295
295
|
showIcon: !1,
|
|
296
296
|
"data-testid": t,
|
|
297
297
|
children: e
|
|
298
298
|
}
|
|
299
|
-
) : null,
|
|
299
|
+
) : null, Ir = {
|
|
300
300
|
"purpur-card-content": "_purpur-card-content_2uc00_1"
|
|
301
|
-
},
|
|
301
|
+
}, Vr = o.bind(Ir), Fr = "purpur-card-content", Gr = ({
|
|
302
302
|
["data-testid"]: t = "purpur-card-content",
|
|
303
|
-
children: u
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
"purpur-card-content-container
|
|
308
|
-
"purpur-card-content-container--
|
|
309
|
-
"purpur-card-content-container--
|
|
310
|
-
|
|
303
|
+
children: u,
|
|
304
|
+
className: e,
|
|
305
|
+
...p
|
|
306
|
+
}) => /* @__PURE__ */ s("div", { className: Vr(Fr, e), "data-testid": t, ...p, children: u }), Dr = {
|
|
307
|
+
"purpur-card-content-container": "_purpur-card-content-container_5c1mb_1",
|
|
308
|
+
"purpur-card-content-container--full-height": "_purpur-card-content-container--full-height_5c1mb_6",
|
|
309
|
+
"purpur-card-content-container--footer": "_purpur-card-content-container--footer_5c1mb_14",
|
|
310
|
+
"purpur-card-content-container--gap-size--sm": "_purpur-card-content-container--gap-size--sm_5c1mb_22",
|
|
311
|
+
"purpur-card-content-container--gap-size--md": "_purpur-card-content-container--gap-size--md_5c1mb_25",
|
|
312
|
+
"purpur-card-content-container--gap-size--lg": "_purpur-card-content-container--gap-size--lg_5c1mb_28"
|
|
313
|
+
}, Ur = o.bind(Dr), w = "purpur-card-content-container", Kr = ({
|
|
311
314
|
["data-testid"]: t = "purpur-card-content-container",
|
|
312
315
|
children: u,
|
|
313
316
|
className: e,
|
|
314
317
|
isFooter: p = !1,
|
|
315
|
-
|
|
316
|
-
|
|
318
|
+
fullHeight: i = !1,
|
|
319
|
+
gapSize: r = "md",
|
|
320
|
+
...a
|
|
317
321
|
}) => /* @__PURE__ */ s(
|
|
318
322
|
"div",
|
|
319
323
|
{
|
|
320
|
-
className:
|
|
321
|
-
|
|
324
|
+
className: Ur([
|
|
325
|
+
w,
|
|
322
326
|
e,
|
|
323
|
-
`${
|
|
327
|
+
`${w}--gap-size--${r}`,
|
|
324
328
|
{
|
|
325
|
-
[`${
|
|
329
|
+
[`${w}--full-height`]: i,
|
|
330
|
+
[`${w}--footer`]: p
|
|
326
331
|
}
|
|
327
332
|
]),
|
|
328
333
|
"data-testid": t,
|
|
329
|
-
...
|
|
334
|
+
...a,
|
|
330
335
|
children: u
|
|
331
336
|
}
|
|
332
337
|
);
|
|
333
|
-
function
|
|
338
|
+
function Wr(t) {
|
|
334
339
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
335
340
|
}
|
|
336
|
-
var
|
|
341
|
+
var I = { exports: {} };
|
|
337
342
|
/*!
|
|
338
343
|
Copyright (c) 2018 Jed Watson.
|
|
339
344
|
Licensed under the MIT License (MIT), see
|
|
340
345
|
http://jedwatson.github.io/classnames
|
|
341
346
|
*/
|
|
342
|
-
var
|
|
343
|
-
function
|
|
344
|
-
return
|
|
347
|
+
var V;
|
|
348
|
+
function Yr() {
|
|
349
|
+
return V || (V = 1, function(t) {
|
|
345
350
|
(function() {
|
|
346
351
|
var u = {}.hasOwnProperty;
|
|
347
352
|
function e() {
|
|
@@ -370,41 +375,41 @@ function Wr() {
|
|
|
370
375
|
}
|
|
371
376
|
t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
|
|
372
377
|
})();
|
|
373
|
-
}(
|
|
378
|
+
}(I)), I.exports;
|
|
374
379
|
}
|
|
375
|
-
var
|
|
376
|
-
const
|
|
380
|
+
var Jr = Yr();
|
|
381
|
+
const F = /* @__PURE__ */ Wr(Jr), Qr = "_rotate_12t9p_1", Xr = "_dash_12t9p_1", f = {
|
|
377
382
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
378
|
-
rotate:
|
|
383
|
+
rotate: Qr,
|
|
379
384
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
380
385
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
381
386
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
382
387
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
383
388
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
384
389
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
385
|
-
dash:
|
|
390
|
+
dash: Xr,
|
|
386
391
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
387
392
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
388
|
-
},
|
|
393
|
+
}, m = "purpur-spinner", rt = {
|
|
389
394
|
SM: "sm"
|
|
390
|
-
},
|
|
395
|
+
}, tt = ({
|
|
391
396
|
["data-testid"]: t,
|
|
392
397
|
disabled: u = !1,
|
|
393
398
|
negative: e = !1,
|
|
394
|
-
size: p =
|
|
399
|
+
size: p = rt.SM,
|
|
395
400
|
...i
|
|
396
401
|
}) => /* @__PURE__ */ s(
|
|
397
402
|
"div",
|
|
398
403
|
{
|
|
399
|
-
className:
|
|
404
|
+
className: F([f[m], f[`${m}--${p}`]]),
|
|
400
405
|
"data-testid": t,
|
|
401
406
|
...i,
|
|
402
407
|
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ s(
|
|
403
408
|
"circle",
|
|
404
409
|
{
|
|
405
|
-
className:
|
|
406
|
-
[f[`${
|
|
407
|
-
[f[`${
|
|
410
|
+
className: F(f[`${m}__circle`], {
|
|
411
|
+
[f[`${m}__circle--disabled`]]: u,
|
|
412
|
+
[f[`${m}__circle--negative`]]: e
|
|
408
413
|
}),
|
|
409
414
|
cx: "25",
|
|
410
415
|
cy: "25",
|
|
@@ -412,7 +417,7 @@ const I = /* @__PURE__ */ Kr(Yr), Jr = "_rotate_12t9p_1", Qr = "_dash_12t9p_1",
|
|
|
412
417
|
}
|
|
413
418
|
) })
|
|
414
419
|
}
|
|
415
|
-
),
|
|
420
|
+
), at = {
|
|
416
421
|
"purpur-card-cta--button-styling": "_purpur-card-cta--button-styling_1wc0z_1",
|
|
417
422
|
"purpur-card-cta--button-styling--xs": "_purpur-card-cta--button-styling--xs_1wc0z_33",
|
|
418
423
|
"purpur-card-cta--button-styling--icon-only": "_purpur-card-cta--button-styling--icon-only_1wc0z_36",
|
|
@@ -431,7 +436,7 @@ const I = /* @__PURE__ */ Kr(Yr), Jr = "_rotate_12t9p_1", Qr = "_dash_12t9p_1",
|
|
|
431
436
|
"purpur-card-cta--secondary": "_purpur-card-cta--secondary_1wc0z_131",
|
|
432
437
|
"purpur-card-cta--disabled": "_purpur-card-cta--disabled_1wc0z_131",
|
|
433
438
|
"purpur-card-cta--text": "_purpur-card-cta--text_1wc0z_139"
|
|
434
|
-
},
|
|
439
|
+
}, et = o.bind(at), _ = "purpur-card-cta", nt = ({
|
|
435
440
|
["data-testid"]: t = "purpur-card-cta",
|
|
436
441
|
className: u,
|
|
437
442
|
children: e,
|
|
@@ -444,7 +449,7 @@ const I = /* @__PURE__ */ Kr(Yr), Jr = "_rotate_12t9p_1", Qr = "_dash_12t9p_1",
|
|
|
444
449
|
}) => /* @__PURE__ */ s(
|
|
445
450
|
"div",
|
|
446
451
|
{
|
|
447
|
-
className: `${
|
|
452
|
+
className: `${et([
|
|
448
453
|
_,
|
|
449
454
|
u,
|
|
450
455
|
{
|
|
@@ -459,25 +464,25 @@ const I = /* @__PURE__ */ Kr(Yr), Jr = "_rotate_12t9p_1", Qr = "_dash_12t9p_1",
|
|
|
459
464
|
])} ${_}`,
|
|
460
465
|
"data-testid": t,
|
|
461
466
|
...c,
|
|
462
|
-
children: r ? /* @__PURE__ */ s(
|
|
467
|
+
children: r ? /* @__PURE__ */ s(tt, { "data-testid": `${t}-spinner`, size: "xs", disabled: p }) : /* @__PURE__ */ b(cr, { children: [
|
|
463
468
|
i === "left" && e,
|
|
464
469
|
a,
|
|
465
470
|
i === "right" && e
|
|
466
471
|
] })
|
|
467
472
|
}
|
|
468
473
|
);
|
|
469
|
-
function
|
|
474
|
+
function ut(t) {
|
|
470
475
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
471
476
|
}
|
|
472
|
-
var
|
|
477
|
+
var G = { exports: {} };
|
|
473
478
|
/*!
|
|
474
479
|
Copyright (c) 2018 Jed Watson.
|
|
475
480
|
Licensed under the MIT License (MIT), see
|
|
476
481
|
http://jedwatson.github.io/classnames
|
|
477
482
|
*/
|
|
478
|
-
var
|
|
479
|
-
function
|
|
480
|
-
return
|
|
483
|
+
var D;
|
|
484
|
+
function pt() {
|
|
485
|
+
return D || (D = 1, function(t) {
|
|
481
486
|
(function() {
|
|
482
487
|
var u = {}.hasOwnProperty;
|
|
483
488
|
function e() {
|
|
@@ -506,10 +511,10 @@ function ut() {
|
|
|
506
511
|
}
|
|
507
512
|
t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
|
|
508
513
|
})();
|
|
509
|
-
}(
|
|
514
|
+
}(G)), G.exports;
|
|
510
515
|
}
|
|
511
|
-
var
|
|
512
|
-
const
|
|
516
|
+
var it = pt();
|
|
517
|
+
const st = /* @__PURE__ */ ut(it), ct = {
|
|
513
518
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
514
519
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
515
520
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -517,26 +522,26 @@ const it = /* @__PURE__ */ nt(pt), st = {
|
|
|
517
522
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
518
523
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
519
524
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
520
|
-
},
|
|
525
|
+
}, ot = st.bind(ct), U = "purpur-icon", lt = "md", dt = (t) => t.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), _t = ({ content: t = "", title: u } = {}) => {
|
|
521
526
|
const e = [
|
|
522
527
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
523
528
|
{ name: "fill", value: "currentColor" },
|
|
524
529
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
525
530
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
526
531
|
], p = u ? `<title>${u}</title>` : "";
|
|
527
|
-
return `<svg ${
|
|
528
|
-
},
|
|
532
|
+
return `<svg ${dt(e)}>${p}${t}</svg>`;
|
|
533
|
+
}, gt = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), tr = ({
|
|
529
534
|
["data-testid"]: t,
|
|
530
535
|
svg: u,
|
|
531
536
|
allyTitle: e,
|
|
532
537
|
className: p,
|
|
533
|
-
size: i =
|
|
538
|
+
size: i = lt,
|
|
534
539
|
...r
|
|
535
540
|
}) => {
|
|
536
|
-
const a =
|
|
537
|
-
content:
|
|
541
|
+
const a = _t({
|
|
542
|
+
content: gt(u.svg),
|
|
538
543
|
title: e
|
|
539
|
-
}), n =
|
|
544
|
+
}), n = ot(p, U, `${U}--${i}`);
|
|
540
545
|
return /* @__PURE__ */ s(
|
|
541
546
|
"span",
|
|
542
547
|
{
|
|
@@ -547,26 +552,26 @@ const it = /* @__PURE__ */ nt(pt), st = {
|
|
|
547
552
|
}
|
|
548
553
|
);
|
|
549
554
|
};
|
|
550
|
-
|
|
551
|
-
const
|
|
555
|
+
tr.displayName = "Icon";
|
|
556
|
+
const ht = {
|
|
552
557
|
name: "checkmark",
|
|
553
558
|
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>',
|
|
554
559
|
keywords: ["checkmark"],
|
|
555
560
|
category: "utility"
|
|
556
|
-
},
|
|
557
|
-
|
|
558
|
-
function
|
|
561
|
+
}, ar = (t) => /* @__PURE__ */ s(tr, { ...t, svg: ht });
|
|
562
|
+
ar.displayName = "IconCheckmark";
|
|
563
|
+
function ft(t) {
|
|
559
564
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
560
565
|
}
|
|
561
|
-
var
|
|
566
|
+
var K = { exports: {} };
|
|
562
567
|
/*!
|
|
563
568
|
Copyright (c) 2018 Jed Watson.
|
|
564
569
|
Licensed under the MIT License (MIT), see
|
|
565
570
|
http://jedwatson.github.io/classnames
|
|
566
571
|
*/
|
|
567
|
-
var
|
|
568
|
-
function
|
|
569
|
-
return
|
|
572
|
+
var W;
|
|
573
|
+
function mt() {
|
|
574
|
+
return W || (W = 1, function(t) {
|
|
570
575
|
(function() {
|
|
571
576
|
var u = {}.hasOwnProperty;
|
|
572
577
|
function e() {
|
|
@@ -595,10 +600,10 @@ function ft() {
|
|
|
595
600
|
}
|
|
596
601
|
t.exports ? (e.default = e, t.exports = e) : window.classNames = e;
|
|
597
602
|
})();
|
|
598
|
-
}(
|
|
603
|
+
}(K)), K.exports;
|
|
599
604
|
}
|
|
600
|
-
var vt =
|
|
601
|
-
const
|
|
605
|
+
var vt = mt();
|
|
606
|
+
const yt = /* @__PURE__ */ ft(vt), v = {
|
|
602
607
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
603
608
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
604
609
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -613,50 +618,51 @@ const mt = /* @__PURE__ */ ht(vt), m = {
|
|
|
613
618
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
614
619
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
615
620
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
616
|
-
},
|
|
621
|
+
}, bt = {
|
|
617
622
|
PARAGRAPH100: "paragraph-100"
|
|
618
|
-
}, y = "purpur-paragraph",
|
|
623
|
+
}, y = "purpur-paragraph", q = ({
|
|
619
624
|
["data-testid"]: t,
|
|
620
625
|
children: u,
|
|
621
626
|
className: e,
|
|
622
627
|
disabled: p,
|
|
623
628
|
enableHyphenation: i = !1,
|
|
624
629
|
negative: r = !1,
|
|
625
|
-
variant: a =
|
|
630
|
+
variant: a = bt.PARAGRAPH100,
|
|
626
631
|
...n
|
|
627
632
|
}) => {
|
|
628
|
-
const c =
|
|
633
|
+
const c = yt([
|
|
629
634
|
e,
|
|
630
|
-
|
|
631
|
-
|
|
635
|
+
v[y],
|
|
636
|
+
v[`${y}--${a}`],
|
|
632
637
|
{
|
|
633
|
-
[
|
|
634
|
-
[
|
|
635
|
-
[
|
|
638
|
+
[v[`${y}--hyphens`]]: i,
|
|
639
|
+
[v[`${y}--disabled`]]: p,
|
|
640
|
+
[v[`${y}--negative`]]: r
|
|
636
641
|
}
|
|
637
642
|
]);
|
|
638
643
|
return /* @__PURE__ */ s("p", { ...n, className: c, "data-testid": t, children: u });
|
|
639
644
|
};
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
"purpur-card-feature-list": "_purpur-card-feature-
|
|
643
|
-
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-
|
|
644
|
-
|
|
645
|
+
q.displayName = "Paragraph";
|
|
646
|
+
const $t = {
|
|
647
|
+
"purpur-card-feature-list": "_purpur-card-feature-list_1hnss_1",
|
|
648
|
+
"purpur-card-feature-list__list-item": "_purpur-card-feature-list__list-item_1hnss_7",
|
|
649
|
+
"purpur-card-feature-list__icon": "_purpur-card-feature-list__icon_1hnss_12"
|
|
650
|
+
}, A = o.bind($t), O = "purpur-card-feature-list", wt = ({
|
|
645
651
|
["data-testid"]: t = "purpur-card-feature-list",
|
|
646
652
|
listItems: u
|
|
647
|
-
}) => u && u.length > 0 ? /* @__PURE__ */ s("ul", { className:
|
|
653
|
+
}) => u && u.length > 0 ? /* @__PURE__ */ s("ul", { className: A(O), "data-testid": t, children: u.map((e) => /* @__PURE__ */ b(
|
|
648
654
|
"li",
|
|
649
655
|
{
|
|
650
|
-
className:
|
|
656
|
+
className: A(`${O}__list-item`),
|
|
651
657
|
"data-testid": `${t}-item`,
|
|
652
658
|
children: [
|
|
653
|
-
/* @__PURE__ */ s(
|
|
654
|
-
/* @__PURE__ */ s(
|
|
659
|
+
/* @__PURE__ */ s(ar, { size: "xs", className: A(`${O}__icon`) }),
|
|
660
|
+
/* @__PURE__ */ s(q, { children: e })
|
|
655
661
|
]
|
|
656
662
|
},
|
|
657
663
|
e
|
|
658
664
|
)) }) : null;
|
|
659
|
-
function
|
|
665
|
+
function xt(t) {
|
|
660
666
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
661
667
|
}
|
|
662
668
|
var Y = { exports: {} };
|
|
@@ -666,7 +672,7 @@ var Y = { exports: {} };
|
|
|
666
672
|
http://jedwatson.github.io/classnames
|
|
667
673
|
*/
|
|
668
674
|
var J;
|
|
669
|
-
function
|
|
675
|
+
function Nt() {
|
|
670
676
|
return J || (J = 1, function(t) {
|
|
671
677
|
(function() {
|
|
672
678
|
var u = {}.hasOwnProperty;
|
|
@@ -698,8 +704,8 @@ function xt() {
|
|
|
698
704
|
})();
|
|
699
705
|
}(Y)), Y.exports;
|
|
700
706
|
}
|
|
701
|
-
var
|
|
702
|
-
const
|
|
707
|
+
var Ct = Nt();
|
|
708
|
+
const St = /* @__PURE__ */ xt(Ct), x = {
|
|
703
709
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
704
710
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
705
711
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -715,40 +721,40 @@ const Ct = /* @__PURE__ */ wt(Nt), w = {
|
|
|
715
721
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
716
722
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
717
723
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
718
|
-
},
|
|
724
|
+
}, jt = {
|
|
719
725
|
TITLE100: "title-100"
|
|
720
|
-
},
|
|
726
|
+
}, N = "purpur-heading", er = ({
|
|
721
727
|
children: t,
|
|
722
728
|
className: u = "",
|
|
723
729
|
enableHyphenation: e = !1,
|
|
724
730
|
negative: p = !1,
|
|
725
731
|
tag: i,
|
|
726
|
-
variant: r =
|
|
732
|
+
variant: r = jt.TITLE100,
|
|
727
733
|
...a
|
|
728
734
|
}) => {
|
|
729
|
-
const n = i, c =
|
|
735
|
+
const n = i, c = St([
|
|
730
736
|
u,
|
|
731
|
-
|
|
732
|
-
|
|
737
|
+
x[N],
|
|
738
|
+
x[`${N}--${r}`],
|
|
733
739
|
{
|
|
734
|
-
[
|
|
735
|
-
[
|
|
740
|
+
[x[`${N}--hyphens`]]: e,
|
|
741
|
+
[x[`${N}--negative`]]: p
|
|
736
742
|
}
|
|
737
743
|
]);
|
|
738
744
|
return /* @__PURE__ */ s(n, { className: c, ...a, children: t });
|
|
739
745
|
};
|
|
740
|
-
|
|
741
|
-
const
|
|
746
|
+
er.displayName = "Heading";
|
|
747
|
+
const zt = {
|
|
742
748
|
"purpur-card-heading": "_purpur-card-heading_j3j6u_1",
|
|
743
749
|
"purpur-card-heading__header": "_purpur-card-heading__header_j3j6u_6",
|
|
744
750
|
"purpur-card-heading__heading": "_purpur-card-heading__heading_j3j6u_11",
|
|
745
751
|
"purpur-card-heading__icon": "_purpur-card-heading__icon_j3j6u_14"
|
|
746
|
-
},
|
|
752
|
+
}, At = {
|
|
747
753
|
"purpur-card-trigger-item--link": "_purpur-card-trigger-item--link_t6ena_1",
|
|
748
754
|
"purpur-card-trigger-item--button": "_purpur-card-trigger-item--button_t6ena_5",
|
|
749
755
|
"purpur-card-trigger-item--disabled": "_purpur-card-trigger-item--disabled_t6ena_18",
|
|
750
756
|
"purpur-card-trigger-item": "_purpur-card-trigger-item_t6ena_1"
|
|
751
|
-
}, Q = o.bind(
|
|
757
|
+
}, Q = o.bind(At), g = "purpur-card-trigger-item", Ot = ({
|
|
752
758
|
["data-testid"]: t = "purpur-card-trigger-item",
|
|
753
759
|
["aria-label"]: u,
|
|
754
760
|
disabled: e = !1,
|
|
@@ -796,7 +802,7 @@ const jt = {
|
|
|
796
802
|
children: r
|
|
797
803
|
}
|
|
798
804
|
);
|
|
799
|
-
},
|
|
805
|
+
}, C = o.bind(zt), h = "purpur-card-heading", Zt = ({
|
|
800
806
|
["data-testid"]: t = "purpur-card-heading",
|
|
801
807
|
["aria-label"]: u,
|
|
802
808
|
title: e,
|
|
@@ -807,33 +813,33 @@ const jt = {
|
|
|
807
813
|
onClick: n = void 0,
|
|
808
814
|
href: c = void 0,
|
|
809
815
|
disabled: $ = !1,
|
|
810
|
-
linkElement:
|
|
811
|
-
variant:
|
|
812
|
-
...
|
|
816
|
+
linkElement: ur = "a",
|
|
817
|
+
variant: pr = "title-100",
|
|
818
|
+
...ir
|
|
813
819
|
}) => {
|
|
814
|
-
const
|
|
820
|
+
const sr = C(h, {
|
|
815
821
|
[`${h}--is-interactive`]: n || c,
|
|
816
822
|
[`${h}--disabled`]: $
|
|
817
823
|
});
|
|
818
|
-
return /* @__PURE__ */ b("div", { className:
|
|
819
|
-
/* @__PURE__ */ b("div", { className:
|
|
820
|
-
p && /* @__PURE__ */ s("div", { className:
|
|
824
|
+
return /* @__PURE__ */ b("div", { className: sr, "data-testid": t, children: [
|
|
825
|
+
/* @__PURE__ */ b("div", { className: C(`${h}__header`), children: [
|
|
826
|
+
p && /* @__PURE__ */ s("div", { className: C(`${h}__icon`), children: p }),
|
|
821
827
|
/* @__PURE__ */ s(
|
|
822
|
-
|
|
828
|
+
er,
|
|
823
829
|
{
|
|
824
830
|
tag: r,
|
|
825
|
-
className:
|
|
826
|
-
variant:
|
|
831
|
+
className: C(`${h}__heading`),
|
|
832
|
+
variant: pr,
|
|
827
833
|
enableHyphenation: a,
|
|
828
|
-
...
|
|
834
|
+
...ir,
|
|
829
835
|
children: n || c ? /* @__PURE__ */ s(
|
|
830
|
-
|
|
836
|
+
Ot,
|
|
831
837
|
{
|
|
832
838
|
"aria-label": u,
|
|
833
839
|
disabled: $,
|
|
834
840
|
href: c,
|
|
835
841
|
onClick: n,
|
|
836
|
-
linkElement:
|
|
842
|
+
linkElement: ur,
|
|
837
843
|
children: e
|
|
838
844
|
}
|
|
839
845
|
) : e
|
|
@@ -842,31 +848,41 @@ const jt = {
|
|
|
842
848
|
] }),
|
|
843
849
|
i
|
|
844
850
|
] });
|
|
845
|
-
},
|
|
851
|
+
}, Mt = {
|
|
846
852
|
"purpur-card-media": "_purpur-card-media_udc1o_1"
|
|
847
|
-
},
|
|
853
|
+
}, kt = o.bind(Mt), qt = "purpur-card-media", Rt = ({
|
|
848
854
|
["data-testid"]: t = "purpur-card-media",
|
|
849
855
|
className: u,
|
|
850
856
|
children: e,
|
|
851
857
|
...p
|
|
852
|
-
}) => /* @__PURE__ */ s("div", { ...p, className:
|
|
853
|
-
"purpur-card-media-layout": "_purpur-card-media-
|
|
854
|
-
|
|
858
|
+
}) => /* @__PURE__ */ s("div", { ...p, className: kt([qt, u]), "data-testid": t, children: e }), Ht = {
|
|
859
|
+
"purpur-card-media-layout": "_purpur-card-media-layout_1tkaa_1",
|
|
860
|
+
"purpur-card-media-layout--image-top": "_purpur-card-media-layout--image-top_1tkaa_11"
|
|
861
|
+
}, Pt = o.bind(Ht), X = "purpur-card-media-layout", Et = ({
|
|
855
862
|
["data-testid"]: t = "purpur-card-media-layout",
|
|
856
863
|
className: u,
|
|
857
864
|
children: e,
|
|
858
|
-
|
|
859
|
-
|
|
865
|
+
imageTop: p = !1,
|
|
866
|
+
...i
|
|
867
|
+
}) => /* @__PURE__ */ s(
|
|
868
|
+
"div",
|
|
869
|
+
{
|
|
870
|
+
...i,
|
|
871
|
+
className: Pt(X, u, { [`${X}--image-top`]: p }),
|
|
872
|
+
"data-testid": t,
|
|
873
|
+
children: e
|
|
874
|
+
}
|
|
875
|
+
), Lt = {
|
|
860
876
|
"purpur-card-overline": "_purpur-card-overline_qhfj0_1"
|
|
861
877
|
}, Tt = o.bind(Lt), Bt = "purpur-card-overline", It = ({
|
|
862
878
|
["data-testid"]: t = "purpur-card-overline",
|
|
863
879
|
overline: u
|
|
864
|
-
}) => u ? /* @__PURE__ */ s(
|
|
880
|
+
}) => u ? /* @__PURE__ */ s(q, { variant: "overline-100", className: Tt(Bt), "data-testid": t, children: u }) : null, Vt = {
|
|
865
881
|
"purpur-card-root": "_purpur-card-root_eupww_1",
|
|
866
882
|
"purpur-card-root--primary": "_purpur-card-root--primary_eupww_7",
|
|
867
883
|
"purpur-card-root--secondary": "_purpur-card-root--secondary_eupww_10",
|
|
868
884
|
"purpur-card-root--full-height": "_purpur-card-root--full-height_eupww_13"
|
|
869
|
-
}, Ft = o.bind(Vt),
|
|
885
|
+
}, Ft = o.bind(Vt), Z = "purpur-card-root", nr = or(
|
|
870
886
|
({
|
|
871
887
|
["data-testid"]: t = "purpur-card-root",
|
|
872
888
|
children: u,
|
|
@@ -876,37 +892,37 @@ const jt = {
|
|
|
876
892
|
...r
|
|
877
893
|
}, a) => {
|
|
878
894
|
const n = Ft([
|
|
879
|
-
|
|
895
|
+
Z,
|
|
880
896
|
e,
|
|
881
897
|
{
|
|
882
|
-
[`${
|
|
883
|
-
[`${
|
|
898
|
+
[`${Z}--${i}`]: i,
|
|
899
|
+
[`${Z}--full-height`]: p
|
|
884
900
|
}
|
|
885
901
|
]);
|
|
886
902
|
return /* @__PURE__ */ s("div", { className: n, "data-testid": t, ref: a, ...r, children: u });
|
|
887
903
|
}
|
|
888
904
|
);
|
|
889
|
-
|
|
890
|
-
const
|
|
891
|
-
const p =
|
|
905
|
+
nr.displayName = "CardRoot";
|
|
906
|
+
const M = o.bind(gr), k = "purpur-card", l = ({ children: t, className: u, ...e }) => {
|
|
907
|
+
const p = M([k, u]);
|
|
892
908
|
return /* @__PURE__ */ s(
|
|
893
909
|
"div",
|
|
894
910
|
{
|
|
895
|
-
className:
|
|
896
|
-
[`${
|
|
911
|
+
className: M(`${k}__container`, {
|
|
912
|
+
[`${k}__container--full-height`]: e.fullHeight
|
|
897
913
|
}),
|
|
898
|
-
children: /* @__PURE__ */ s(
|
|
914
|
+
children: /* @__PURE__ */ s(nr, { className: M(p), ...e, children: t })
|
|
899
915
|
}
|
|
900
916
|
);
|
|
901
917
|
};
|
|
902
|
-
l.Badge =
|
|
903
|
-
l.Content =
|
|
904
|
-
l.ContentContainer =
|
|
905
|
-
l.Cta =
|
|
906
|
-
l.FeatureList =
|
|
918
|
+
l.Badge = Br;
|
|
919
|
+
l.Content = Gr;
|
|
920
|
+
l.ContentContainer = Kr;
|
|
921
|
+
l.Cta = nt;
|
|
922
|
+
l.FeatureList = wt;
|
|
907
923
|
l.Overline = It;
|
|
908
|
-
l.Heading =
|
|
909
|
-
l.Media =
|
|
924
|
+
l.Heading = Zt;
|
|
925
|
+
l.Media = Rt;
|
|
910
926
|
l.MediaLayout = Et;
|
|
911
927
|
l.displayName = "Card";
|
|
912
928
|
export {
|