@purpurds/promotion-card 4.1.1 → 4.2.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.
@@ -2,7 +2,7 @@ import { jsxs as _, jsx as d } from "react/jsx-runtime";
2
2
  function D(t) {
3
3
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
4
4
  }
5
- var b = { exports: {} };
5
+ var U = { exports: {} };
6
6
  /*!
7
7
  Copyright (c) 2018 Jed Watson.
8
8
  Licensed under the MIT License (MIT), see
@@ -10,35 +10,35 @@ var b = { exports: {} };
10
10
  */
11
11
  (function(t) {
12
12
  (function() {
13
- var i = {}.hasOwnProperty;
14
- function a() {
15
- for (var r = "", e = 0; e < arguments.length; e++) {
16
- var o = arguments[e];
17
- o && (r = n(r, l.call(this, o)));
13
+ var a = {}.hasOwnProperty;
14
+ function i() {
15
+ for (var e = "", r = 0; r < arguments.length; r++) {
16
+ var o = arguments[r];
17
+ o && (e = n(e, l.call(this, o)));
18
18
  }
19
- return r;
19
+ return e;
20
20
  }
21
- function l(r) {
22
- if (typeof r == "string" || typeof r == "number")
23
- return this && this[r] || r;
24
- if (typeof r != "object")
21
+ function l(e) {
22
+ if (typeof e == "string" || typeof e == "number")
23
+ return this && this[e] || e;
24
+ if (typeof e != "object")
25
25
  return "";
26
- if (Array.isArray(r))
27
- return a.apply(this, r);
28
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
29
- return r.toString();
30
- var e = "";
31
- for (var o in r)
32
- i.call(r, o) && r[o] && (e = n(e, this && this[o] || o));
33
- return e;
26
+ if (Array.isArray(e))
27
+ return i.apply(this, e);
28
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
29
+ return e.toString();
30
+ var r = "";
31
+ for (var o in e)
32
+ a.call(e, o) && e[o] && (r = n(r, this && this[o] || o));
33
+ return r;
34
34
  }
35
- function n(r, e) {
36
- return e ? r ? r + " " + e : r + e : r;
35
+ function n(e, r) {
36
+ return r ? e ? e + " " + r : e + r : e;
37
37
  }
38
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
38
+ t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
39
39
  })();
40
- })(b);
41
- var N = b.exports;
40
+ })(U);
41
+ var N = U.exports;
42
42
  const $ = /* @__PURE__ */ D(N), L = {
43
43
  "purpur-icon": "_purpur-icon_8u1lq_1",
44
44
  "purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
@@ -77,41 +77,41 @@ const $ = /* @__PURE__ */ D(N), L = {
77
77
  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>',
78
78
  keywords: ["question"],
79
79
  category: "status"
80
- }, V = $.bind(L), S = "purpur-icon", W = "md", z = (t) => t.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), J = ({ content: t = "", title: i } = {}) => {
81
- const a = [
80
+ }, V = $.bind(L), F = "purpur-icon", W = "md", z = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), J = ({ content: t = "", title: a } = {}) => {
81
+ const i = [
82
82
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
83
83
  { name: "fill", value: "currentColor" },
84
84
  { name: "viewBox", value: "0 0 24 24" },
85
- i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
86
- ], l = i ? `<title>${i}</title>` : "";
87
- return `<svg ${z(a)}>${l}${t}</svg>`;
85
+ a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
86
+ ], l = a ? `<title>${a}</title>` : "";
87
+ return `<svg ${z(i)}>${l}${t}</svg>`;
88
88
  }, K = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), Q = ({
89
89
  ["data-testid"]: t,
90
- svg: i,
91
- allyTitle: a,
90
+ svg: a,
91
+ allyTitle: i,
92
92
  className: l = "",
93
93
  size: n = W,
94
- ...r
94
+ ...e
95
95
  }) => {
96
- const e = J({
97
- content: K(i.svg),
98
- title: a
99
- }), o = V(l, S, `${S}--${n}`);
96
+ const r = J({
97
+ content: K(a.svg),
98
+ title: i
99
+ }), o = V(l, F, `${F}--${n}`);
100
100
  return /* @__PURE__ */ d(
101
101
  "span",
102
102
  {
103
- "aria-label": a,
103
+ "aria-label": i,
104
104
  className: o,
105
105
  "data-testid": t,
106
- dangerouslySetInnerHTML: { __html: e },
107
- ...r
106
+ dangerouslySetInnerHTML: { __html: r },
107
+ ...e
108
108
  }
109
109
  );
110
110
  };
111
111
  function X(t) {
112
112
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
113
113
  }
114
- var E = { exports: {} };
114
+ var A = { exports: {} };
115
115
  /*!
116
116
  Copyright (c) 2018 Jed Watson.
117
117
  Licensed under the MIT License (MIT), see
@@ -119,36 +119,36 @@ var E = { exports: {} };
119
119
  */
120
120
  (function(t) {
121
121
  (function() {
122
- var i = {}.hasOwnProperty;
123
- function a() {
124
- for (var r = "", e = 0; e < arguments.length; e++) {
125
- var o = arguments[e];
126
- o && (r = n(r, l(o)));
122
+ var a = {}.hasOwnProperty;
123
+ function i() {
124
+ for (var e = "", r = 0; r < arguments.length; r++) {
125
+ var o = arguments[r];
126
+ o && (e = n(e, l(o)));
127
127
  }
128
- return r;
128
+ return e;
129
129
  }
130
- function l(r) {
131
- if (typeof r == "string" || typeof r == "number")
132
- return r;
133
- if (typeof r != "object")
130
+ function l(e) {
131
+ if (typeof e == "string" || typeof e == "number")
132
+ return e;
133
+ if (typeof e != "object")
134
134
  return "";
135
- if (Array.isArray(r))
136
- return a.apply(null, r);
137
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
138
- return r.toString();
139
- var e = "";
140
- for (var o in r)
141
- i.call(r, o) && r[o] && (e = n(e, o));
142
- return e;
135
+ if (Array.isArray(e))
136
+ return i.apply(null, e);
137
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
138
+ return e.toString();
139
+ var r = "";
140
+ for (var o in e)
141
+ a.call(e, o) && e[o] && (r = n(r, o));
142
+ return r;
143
143
  }
144
- function n(r, e) {
145
- return e ? r ? r + " " + e : r + e : r;
144
+ function n(e, r) {
145
+ return r ? e ? e + " " + r : e + r : e;
146
146
  }
147
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
147
+ t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
148
148
  })();
149
- })(E);
150
- var Y = E.exports;
151
- const r0 = /* @__PURE__ */ X(Y), F = {
149
+ })(A);
150
+ var Y = A.exports;
151
+ const e0 = /* @__PURE__ */ X(Y), B = {
152
152
  "purpur-badge": "_purpur-badge_yhork_1",
153
153
  "purpur-badge--attention": "_purpur-badge--attention_yhork_13",
154
154
  "purpur-badge--special": "_purpur-badge--special_yhork_17",
@@ -157,7 +157,7 @@ const r0 = /* @__PURE__ */ X(Y), F = {
157
157
  "purpur-badge--success": "_purpur-badge--success_yhork_29",
158
158
  "purpur-badge--warning": "_purpur-badge--warning_yhork_33",
159
159
  "purpur-badge--error": "_purpur-badge--error_yhork_37"
160
- }, B = "purpur-badge", f = {
160
+ }, G = "purpur-badge", f = {
161
161
  ATTENTION: "attention",
162
162
  SPECIAL: "special",
163
163
  NEUTRAL: "neutral",
@@ -165,7 +165,7 @@ const r0 = /* @__PURE__ */ X(Y), F = {
165
165
  SUCCESS: "success",
166
166
  WARNING: "warning",
167
167
  ERROR: "error"
168
- }, e0 = (t) => {
168
+ }, r0 = (t) => {
169
169
  switch (t) {
170
170
  case f.ATTENTION:
171
171
  case f.SPECIAL:
@@ -185,23 +185,23 @@ const r0 = /* @__PURE__ */ X(Y), F = {
185
185
  }
186
186
  }, t0 = ({
187
187
  children: t,
188
- showIcon: i = !0,
189
- variant: a,
188
+ showIcon: a = !0,
189
+ variant: i,
190
190
  ["data-testid"]: l,
191
191
  allyLabel: n,
192
- className: r = "",
193
- ...e
192
+ className: e = "",
193
+ ...r
194
194
  }) => {
195
- const o = e0(a), h = r0([r, F[B], F[`${B}--${a}`]]);
196
- return /* @__PURE__ */ _("span", { "aria-label": n, className: h, "data-testid": l, ...e, children: [
197
- i && o && /* @__PURE__ */ d(Q, { "data-testid": `${l}-icon`, allyTitle: n, size: "xs", svg: o }),
195
+ const o = r0(i), h = e0([e, B[G], B[`${G}--${i}`]]);
196
+ return /* @__PURE__ */ _("span", { "aria-label": n, className: h, "data-testid": l, ...r, children: [
197
+ a && o && /* @__PURE__ */ d(Q, { "data-testid": `${l}-icon`, allyTitle: n, size: "xs", svg: o }),
198
198
  t
199
199
  ] });
200
200
  };
201
201
  function o0(t) {
202
202
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
203
203
  }
204
- var U = { exports: {} };
204
+ var b = { exports: {} };
205
205
  /*!
206
206
  Copyright (c) 2018 Jed Watson.
207
207
  Licensed under the MIT License (MIT), see
@@ -209,50 +209,50 @@ var U = { exports: {} };
209
209
  */
210
210
  (function(t) {
211
211
  (function() {
212
- var i = {}.hasOwnProperty;
213
- function a() {
214
- for (var r = "", e = 0; e < arguments.length; e++) {
215
- var o = arguments[e];
216
- o && (r = n(r, l.call(this, o)));
212
+ var a = {}.hasOwnProperty;
213
+ function i() {
214
+ for (var e = "", r = 0; r < arguments.length; r++) {
215
+ var o = arguments[r];
216
+ o && (e = n(e, l.call(this, o)));
217
217
  }
218
- return r;
218
+ return e;
219
219
  }
220
- function l(r) {
221
- if (typeof r == "string" || typeof r == "number")
222
- return this && this[r] || r;
223
- if (typeof r != "object")
220
+ function l(e) {
221
+ if (typeof e == "string" || typeof e == "number")
222
+ return this && this[e] || e;
223
+ if (typeof e != "object")
224
224
  return "";
225
- if (Array.isArray(r))
226
- return a.apply(this, r);
227
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
228
- return r.toString();
229
- var e = "";
230
- for (var o in r)
231
- i.call(r, o) && r[o] && (e = n(e, this && this[o] || o));
232
- return e;
225
+ if (Array.isArray(e))
226
+ return i.apply(this, e);
227
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
228
+ return e.toString();
229
+ var r = "";
230
+ for (var o in e)
231
+ a.call(e, o) && e[o] && (r = n(r, this && this[o] || o));
232
+ return r;
233
233
  }
234
- function n(r, e) {
235
- return e ? r ? r + " " + e : r + e : r;
234
+ function n(e, r) {
235
+ return r ? e ? e + " " + r : e + r : e;
236
236
  }
237
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
237
+ t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
238
238
  })();
239
- })(U);
240
- var a0 = U.exports;
241
- const i0 = /* @__PURE__ */ o0(a0), n0 = {
239
+ })(b);
240
+ var i0 = b.exports;
241
+ const a0 = /* @__PURE__ */ o0(i0), n0 = {
242
242
  "purpur-card": "_purpur-card_172jf_1",
243
243
  "purpur-card__container": "_purpur-card__container_172jf_10"
244
- }, G = i0.bind(n0), O = "purpur-card", A = ({
244
+ }, O = a0.bind(n0), E = "purpur-card", M = ({
245
245
  ["data-testid"]: t,
246
- children: i,
247
- className: a,
246
+ children: a,
247
+ className: i,
248
248
  containerClassName: l,
249
249
  ...n
250
- }) => /* @__PURE__ */ d("div", { className: G(`${O}__container`, l), children: /* @__PURE__ */ d("div", { className: G([O, a]), "data-testid": t, ...n, children: i }) });
251
- A.displayName = "Card";
250
+ }) => /* @__PURE__ */ d("div", { className: O(`${E}__container`, l), children: /* @__PURE__ */ d("div", { className: O([E, i]), "data-testid": t, ...n, children: a }) });
251
+ M.displayName = "Card";
252
252
  function l0(t) {
253
253
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
254
254
  }
255
- var M = { exports: {} };
255
+ var k = { exports: {} };
256
256
  /*!
257
257
  Copyright (c) 2018 Jed Watson.
258
258
  Licensed under the MIT License (MIT), see
@@ -260,50 +260,51 @@ var M = { exports: {} };
260
260
  */
261
261
  (function(t) {
262
262
  (function() {
263
- var i = {}.hasOwnProperty;
264
- function a() {
265
- for (var r = "", e = 0; e < arguments.length; e++) {
266
- var o = arguments[e];
267
- o && (r = n(r, l(o)));
263
+ var a = {}.hasOwnProperty;
264
+ function i() {
265
+ for (var e = "", r = 0; r < arguments.length; r++) {
266
+ var o = arguments[r];
267
+ o && (e = n(e, l(o)));
268
268
  }
269
- return r;
269
+ return e;
270
270
  }
271
- function l(r) {
272
- if (typeof r == "string" || typeof r == "number")
273
- return r;
274
- if (typeof r != "object")
271
+ function l(e) {
272
+ if (typeof e == "string" || typeof e == "number")
273
+ return e;
274
+ if (typeof e != "object")
275
275
  return "";
276
- if (Array.isArray(r))
277
- return a.apply(null, r);
278
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
279
- return r.toString();
280
- var e = "";
281
- for (var o in r)
282
- i.call(r, o) && r[o] && (e = n(e, o));
283
- return e;
276
+ if (Array.isArray(e))
277
+ return i.apply(null, e);
278
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
279
+ return e.toString();
280
+ var r = "";
281
+ for (var o in e)
282
+ a.call(e, o) && e[o] && (r = n(r, o));
283
+ return r;
284
284
  }
285
- function n(r, e) {
286
- return e ? r ? r + " " + e : r + e : r;
285
+ function n(e, r) {
286
+ return r ? e ? e + " " + r : e + r : e;
287
287
  }
288
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
288
+ t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
289
289
  })();
290
- })(M);
291
- var s0 = M.exports;
290
+ })(k);
291
+ var s0 = k.exports;
292
292
  const p0 = /* @__PURE__ */ l0(s0), v = {
293
- "purpur-heading": "_purpur-heading_1abfh_1",
294
- "purpur-heading--hyphens": "_purpur-heading--hyphens_1abfh_8",
295
- "purpur-heading--subsection-100": "_purpur-heading--subsection-100_1abfh_11",
296
- "purpur-heading--title-100": "_purpur-heading--title-100_1abfh_17",
297
- "purpur-heading--title-200": "_purpur-heading--title-200_1abfh_23",
298
- "purpur-heading--title-300": "_purpur-heading--title-300_1abfh_29",
299
- "purpur-heading--title-400": "_purpur-heading--title-400_1abfh_35",
300
- "purpur-heading--title-500": "_purpur-heading--title-500_1abfh_41",
301
- "purpur-heading--title-600": "_purpur-heading--title-600_1abfh_47",
302
- "purpur-heading--title-700": "_purpur-heading--title-700_1abfh_53",
303
- "purpur-heading--display-25": "_purpur-heading--display-25_1abfh_59",
304
- "purpur-heading--display-50": "_purpur-heading--display-50_1abfh_65",
305
- "purpur-heading--display-100": "_purpur-heading--display-100_1abfh_71",
306
- "purpur-heading--display-200": "_purpur-heading--display-200_1abfh_77"
293
+ "purpur-heading": "_purpur-heading_1g237_1",
294
+ "purpur-heading--hyphens": "_purpur-heading--hyphens_1g237_8",
295
+ "purpur-heading--negative": "_purpur-heading--negative_1g237_11",
296
+ "purpur-heading--subsection-100": "_purpur-heading--subsection-100_1g237_14",
297
+ "purpur-heading--title-100": "_purpur-heading--title-100_1g237_20",
298
+ "purpur-heading--title-200": "_purpur-heading--title-200_1g237_26",
299
+ "purpur-heading--title-300": "_purpur-heading--title-300_1g237_32",
300
+ "purpur-heading--title-400": "_purpur-heading--title-400_1g237_38",
301
+ "purpur-heading--title-500": "_purpur-heading--title-500_1g237_44",
302
+ "purpur-heading--title-600": "_purpur-heading--title-600_1g237_50",
303
+ "purpur-heading--title-700": "_purpur-heading--title-700_1g237_56",
304
+ "purpur-heading--display-25": "_purpur-heading--display-25_1g237_62",
305
+ "purpur-heading--display-50": "_purpur-heading--display-50_1g237_68",
306
+ "purpur-heading--display-100": "_purpur-heading--display-100_1g237_74",
307
+ "purpur-heading--display-200": "_purpur-heading--display-200_1g237_80"
307
308
  }, d0 = {
308
309
  TITLE100: "title-100",
309
310
  TITLE200: "title-200",
@@ -313,29 +314,31 @@ const p0 = /* @__PURE__ */ l0(s0), v = {
313
314
  TITLE600: "title-600",
314
315
  TITLE700: "title-700",
315
316
  SUBSECTION100: "subsection-100"
316
- }, C = "purpur-heading", u0 = ({
317
+ }, w = "purpur-heading", u0 = ({
317
318
  ["data-testid"]: t,
318
- children: i,
319
- className: a = "",
319
+ children: a,
320
+ className: i = "",
320
321
  enableHyphenation: l = !1,
321
- tag: n,
322
+ negative: n = !1,
323
+ tag: e,
322
324
  variant: r = d0.TITLE100,
323
- ...e
325
+ ...o
324
326
  }) => {
325
- const o = n, h = p0([
326
- a,
327
- v[C],
328
- v[`${C}--${r}`],
327
+ const h = e, C = p0([
328
+ i,
329
+ v[w],
330
+ v[`${w}--${r}`],
329
331
  {
330
- [v[`${C}--hyphens`]]: l
332
+ [v[`${w}--hyphens`]]: l,
333
+ [v[`${w}--negative`]]: n
331
334
  }
332
335
  ]);
333
- return /* @__PURE__ */ d(o, { ...e, className: h, "data-testid": t, children: i });
336
+ return /* @__PURE__ */ d(h, { ...o, className: C, "data-testid": t, children: a });
334
337
  };
335
338
  function c0(t) {
336
339
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
337
340
  }
338
- var k = { exports: {} };
341
+ var I = { exports: {} };
339
342
  /*!
340
343
  Copyright (c) 2018 Jed Watson.
341
344
  Licensed under the MIT License (MIT), see
@@ -343,35 +346,35 @@ var k = { exports: {} };
343
346
  */
344
347
  (function(t) {
345
348
  (function() {
346
- var i = {}.hasOwnProperty;
347
- function a() {
348
- for (var r = "", e = 0; e < arguments.length; e++) {
349
- var o = arguments[e];
350
- o && (r = n(r, l.call(this, o)));
349
+ var a = {}.hasOwnProperty;
350
+ function i() {
351
+ for (var e = "", r = 0; r < arguments.length; r++) {
352
+ var o = arguments[r];
353
+ o && (e = n(e, l.call(this, o)));
351
354
  }
352
- return r;
355
+ return e;
353
356
  }
354
- function l(r) {
355
- if (typeof r == "string" || typeof r == "number")
356
- return this && this[r] || r;
357
- if (typeof r != "object")
357
+ function l(e) {
358
+ if (typeof e == "string" || typeof e == "number")
359
+ return this && this[e] || e;
360
+ if (typeof e != "object")
358
361
  return "";
359
- if (Array.isArray(r))
360
- return a.apply(this, r);
361
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
362
- return r.toString();
363
- var e = "";
364
- for (var o in r)
365
- i.call(r, o) && r[o] && (e = n(e, this && this[o] || o));
366
- return e;
362
+ if (Array.isArray(e))
363
+ return i.apply(this, e);
364
+ if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
365
+ return e.toString();
366
+ var r = "";
367
+ for (var o in e)
368
+ a.call(e, o) && e[o] && (r = n(r, this && this[o] || o));
369
+ return r;
367
370
  }
368
- function n(r, e) {
369
- return e ? r ? r + " " + e : r + e : r;
371
+ function n(e, r) {
372
+ return r ? e ? e + " " + r : e + r : e;
370
373
  }
371
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
374
+ t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
372
375
  })();
373
- })(k);
374
- var f0 = k.exports;
376
+ })(I);
377
+ var f0 = I.exports;
375
378
  const _0 = /* @__PURE__ */ c0(f0), h0 = {
376
379
  "purpur-promotion-card": "_purpur-promotion-card_1msg9_1",
377
380
  "purpur-promotion-card--without-image": "_purpur-promotion-card--without-image_1msg9_8",
@@ -389,7 +392,7 @@ const _0 = /* @__PURE__ */ c0(f0), h0 = {
389
392
  "purpur-promotion-card__image-wrapper": "_purpur-promotion-card__image-wrapper_1msg9_122",
390
393
  "purpur-promotion-card__image-wrapper--decorative": "_purpur-promotion-card__image-wrapper--decorative_1msg9_125",
391
394
  "purpur-promotion-card__image-wrapper--product": "_purpur-promotion-card__image-wrapper--product_1msg9_126"
392
- }, v0 = ["primary", "secondary", "quaternary"], g0 = {
395
+ }, w0 = ["primary", "secondary", "quaternary"], g0 = {
393
396
  primary: "var(--purpur-color-background-tone-on-tone-primary)",
394
397
  secondary: "var(--purpur-color-background-tone-on-tone-secondary)",
395
398
  quaternary: "var(--purpur-color-background-tone-on-tone-quaternary)"
@@ -403,35 +406,35 @@ const _0 = /* @__PURE__ */ c0(f0), h0 = {
403
406
  quaternary: "var(--purpur-color-text-tone-on-tone-tertiary)"
404
407
  }, p = _0.bind(h0), s = "purpur-promotion-card", x0 = ({
405
408
  ["data-testid"]: t,
406
- variant: i = "primary",
407
- badgeText: a,
409
+ variant: a = "primary",
410
+ badgeText: i,
408
411
  badgeIcon: l,
409
412
  title: n,
410
- titleTag: r = "h2",
411
- titleVariant: e = "title-300",
413
+ titleTag: e = "h2",
414
+ titleVariant: r = "title-300",
412
415
  className: o,
413
416
  children: h,
414
- style: I,
417
+ style: C,
415
418
  ...u
416
419
  }) => {
417
420
  let y = u, c, x;
418
421
  if ("decorativeImage" in u) {
419
- const { hasGradient: g, decorativeImage: m, ...w } = u;
420
- c = m, x = g, y = w;
422
+ const { hasGradient: g, decorativeImage: m, ...S } = u;
423
+ c = m, x = g, y = S;
421
424
  } else if ("productImage" in u) {
422
- const { hasGradient: g, productImage: m, ...w } = u;
423
- c = m, x = g, y = w;
425
+ const { hasGradient: g, productImage: m, ...S } = u;
426
+ c = m, x = g, y = S;
424
427
  } else if ("hasGradient" in u) {
425
428
  const { hasGradient: g, ...m } = u;
426
429
  x = g, y = m;
427
430
  }
428
431
  const Z = {
429
- "--promotion-card-background": g0[i],
430
- "--promotion-card-color": y0[i],
431
- "--promotion-card-background-image": m0[i]
432
+ "--promotion-card-background": g0[a],
433
+ "--promotion-card-color": y0[a],
434
+ "--promotion-card-background-image": m0[a]
432
435
  };
433
436
  return /* @__PURE__ */ d(
434
- A,
437
+ M,
435
438
  {
436
439
  className: p(`${s}__card`),
437
440
  containerClassName: p(`${s}__card-container`),
@@ -441,12 +444,12 @@ const _0 = /* @__PURE__ */ c0(f0), h0 = {
441
444
  "data-testid": t,
442
445
  style: {
443
446
  ...Z,
444
- ...I
447
+ ...C
445
448
  },
446
449
  className: p([
447
450
  o,
448
451
  s,
449
- `${s}--${i}`,
452
+ `${s}--${a}`,
450
453
  {
451
454
  [`${s}--with-image`]: c,
452
455
  [`${s}--without-image`]: !c
@@ -465,16 +468,16 @@ const _0 = /* @__PURE__ */ c0(f0), h0 = {
465
468
  }
466
469
  ]),
467
470
  children: [
468
- a && /* @__PURE__ */ d("div", { "data-testid": "badgeWrapper", className: p(`${s}__badge-wrapper`), children: /* @__PURE__ */ _(t0, { variant: i === "primary" ? "special" : "attention", showIcon: !1, children: [
471
+ i && /* @__PURE__ */ d("div", { "data-testid": "badgeWrapper", className: p(`${s}__badge-wrapper`), children: /* @__PURE__ */ _(t0, { variant: a === "primary" ? "special" : "attention", showIcon: !1, children: [
469
472
  l && l,
470
- a
473
+ i
471
474
  ] }) }),
472
475
  /* @__PURE__ */ _("div", { className: p(`${s}__main-content`), children: [
473
476
  /* @__PURE__ */ d(
474
477
  u0,
475
478
  {
476
- tag: r,
477
- variant: e,
479
+ tag: e,
480
+ variant: r,
478
481
  enableHyphenation: !0,
479
482
  className: p(`${s}__heading`),
480
483
  children: n
@@ -516,6 +519,6 @@ const _0 = /* @__PURE__ */ c0(f0), h0 = {
516
519
  x0.displayName = "PromotionCard";
517
520
  export {
518
521
  x0 as PromotionCard,
519
- v0 as promotionCardVariants
522
+ w0 as promotionCardVariants
520
523
  };
521
524
  //# sourceMappingURL=promotion-card.es.js.map