@purpurds/notification 8.16.3 → 8.17.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 +4 -4
- package/dist/notification.cjs.js +1 -1
- package/dist/notification.cjs.js.map +1 -1
- package/dist/notification.d.ts +3 -0
- package/dist/notification.d.ts.map +1 -1
- package/dist/notification.es.js +134 -129
- package/dist/notification.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +7 -7
- package/src/notification.module.scss +5 -0
- package/src/notification.stories.tsx +1 -1
- package/src/notification.tsx +69 -57
package/dist/notification.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as w, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as H } from "react";
|
|
3
3
|
const W = {
|
|
4
4
|
LG: "lg"
|
|
5
5
|
};
|
|
6
6
|
function Y(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var z = { exports: {} }, R;
|
|
10
10
|
function J() {
|
|
11
|
-
return
|
|
11
|
+
return R || (R = 1, (function(e) {
|
|
12
12
|
(function() {
|
|
13
13
|
var i = {}.hasOwnProperty;
|
|
14
14
|
function p() {
|
|
@@ -37,7 +37,7 @@ function J() {
|
|
|
37
37
|
}
|
|
38
38
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
39
39
|
})();
|
|
40
|
-
})(
|
|
40
|
+
})(z)), z.exports;
|
|
41
41
|
}
|
|
42
42
|
var K = J();
|
|
43
43
|
const Q = /* @__PURE__ */ Y(K), X = "_rotate_12t9p_1", rr = "_dash_12t9p_1", tr = {
|
|
@@ -52,7 +52,7 @@ const Q = /* @__PURE__ */ Y(K), X = "_rotate_12t9p_1", rr = "_dash_12t9p_1", tr
|
|
|
52
52
|
dash: rr,
|
|
53
53
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
54
54
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
55
|
-
},
|
|
55
|
+
}, P = Q.bind(tr), v = "purpur-spinner", er = {
|
|
56
56
|
SM: "sm"
|
|
57
57
|
}, F = ({
|
|
58
58
|
disabled: e = !1,
|
|
@@ -60,12 +60,12 @@ const Q = /* @__PURE__ */ Y(K), X = "_rotate_12t9p_1", rr = "_dash_12t9p_1", tr
|
|
|
60
60
|
size: p = er.SM,
|
|
61
61
|
className: a,
|
|
62
62
|
...u
|
|
63
|
-
}) => /* @__PURE__ */ o("div", { className:
|
|
63
|
+
}) => /* @__PURE__ */ o("div", { className: P(v, `${v}--${p}`, a), ...u, children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
64
64
|
"circle",
|
|
65
65
|
{
|
|
66
|
-
className:
|
|
67
|
-
[`${
|
|
68
|
-
[`${
|
|
66
|
+
className: P(`${v}__circle`, {
|
|
67
|
+
[`${v}__circle--disabled`]: e,
|
|
68
|
+
[`${v}__circle--negative`]: i
|
|
69
69
|
}),
|
|
70
70
|
cx: "25",
|
|
71
71
|
cy: "25",
|
|
@@ -76,9 +76,9 @@ F.displayName = "Spinner";
|
|
|
76
76
|
function nr(e) {
|
|
77
77
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
78
78
|
}
|
|
79
|
-
var
|
|
79
|
+
var L = { exports: {} }, M;
|
|
80
80
|
function pr() {
|
|
81
|
-
return
|
|
81
|
+
return M || (M = 1, (function(e) {
|
|
82
82
|
(function() {
|
|
83
83
|
var i = {}.hasOwnProperty;
|
|
84
84
|
function p() {
|
|
@@ -107,7 +107,7 @@ function pr() {
|
|
|
107
107
|
}
|
|
108
108
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
109
109
|
})();
|
|
110
|
-
})(
|
|
110
|
+
})(L)), L.exports;
|
|
111
111
|
}
|
|
112
112
|
var ir = pr();
|
|
113
113
|
const ur = /* @__PURE__ */ nr(ir), ar = {
|
|
@@ -133,7 +133,7 @@ const ur = /* @__PURE__ */ nr(ir), ar = {
|
|
|
133
133
|
"purpur-button--text-negative": "_purpur-button--text-negative_10jh0_185",
|
|
134
134
|
"purpur-button--text": "_purpur-button--text_10jh0_185",
|
|
135
135
|
"purpur-button__spinner": "_purpur-button__spinner_10jh0_235"
|
|
136
|
-
},
|
|
136
|
+
}, C = ur.bind(ar), _ = "purpur-button", V = H(
|
|
137
137
|
({
|
|
138
138
|
children: e,
|
|
139
139
|
className: i,
|
|
@@ -147,10 +147,10 @@ const ur = /* @__PURE__ */ nr(ir), ar = {
|
|
|
147
147
|
variant: s,
|
|
148
148
|
type: g = "button",
|
|
149
149
|
...b
|
|
150
|
-
},
|
|
150
|
+
}, m) => {
|
|
151
151
|
if (u && s === "destructive")
|
|
152
152
|
return null;
|
|
153
|
-
const
|
|
153
|
+
const S = C(
|
|
154
154
|
[
|
|
155
155
|
_,
|
|
156
156
|
`${_}--${t ? `${s}-negative` : s}`,
|
|
@@ -163,17 +163,17 @@ const ur = /* @__PURE__ */ nr(ir), ar = {
|
|
|
163
163
|
[`${_}--disabled`]: p || r
|
|
164
164
|
},
|
|
165
165
|
i
|
|
166
|
-
),
|
|
167
|
-
p || r ?
|
|
168
|
-
},
|
|
169
|
-
return /* @__PURE__ */
|
|
166
|
+
), j = (A) => {
|
|
167
|
+
p || r ? A.preventDefault() : n && n(A);
|
|
168
|
+
}, h = !!b["aria-disabled"] || p || r;
|
|
169
|
+
return /* @__PURE__ */ w(
|
|
170
170
|
"button",
|
|
171
171
|
{
|
|
172
|
-
className:
|
|
172
|
+
className: S,
|
|
173
173
|
type: g,
|
|
174
|
-
ref:
|
|
175
|
-
"aria-disabled":
|
|
176
|
-
onClick:
|
|
174
|
+
ref: m,
|
|
175
|
+
"aria-disabled": h,
|
|
176
|
+
onClick: j,
|
|
177
177
|
...b,
|
|
178
178
|
children: [
|
|
179
179
|
r && /* @__PURE__ */ o(
|
|
@@ -181,8 +181,8 @@ const ur = /* @__PURE__ */ nr(ir), ar = {
|
|
|
181
181
|
{
|
|
182
182
|
size: c === W.LG ? "xs" : "xxs",
|
|
183
183
|
negative: t,
|
|
184
|
-
disabled:
|
|
185
|
-
className:
|
|
184
|
+
disabled: h,
|
|
185
|
+
className: C(`${_}__spinner`)
|
|
186
186
|
}
|
|
187
187
|
),
|
|
188
188
|
" ",
|
|
@@ -192,13 +192,13 @@ const ur = /* @__PURE__ */ nr(ir), ar = {
|
|
|
192
192
|
);
|
|
193
193
|
}
|
|
194
194
|
);
|
|
195
|
-
|
|
195
|
+
V.displayName = "Button";
|
|
196
196
|
function or(e) {
|
|
197
197
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
198
198
|
}
|
|
199
|
-
var
|
|
199
|
+
var E = { exports: {} }, I;
|
|
200
200
|
function sr() {
|
|
201
|
-
return
|
|
201
|
+
return I || (I = 1, (function(e) {
|
|
202
202
|
(function() {
|
|
203
203
|
var i = {}.hasOwnProperty;
|
|
204
204
|
function p() {
|
|
@@ -227,10 +227,10 @@ function sr() {
|
|
|
227
227
|
}
|
|
228
228
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
229
229
|
})();
|
|
230
|
-
})(
|
|
230
|
+
})(E)), E.exports;
|
|
231
231
|
}
|
|
232
232
|
var lr = sr();
|
|
233
|
-
const _r = /* @__PURE__ */ or(lr),
|
|
233
|
+
const _r = /* @__PURE__ */ or(lr), $ = {
|
|
234
234
|
"purpur-heading": "_purpur-heading_vo751_1",
|
|
235
235
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_vo751_8",
|
|
236
236
|
"purpur-heading--negative": "_purpur-heading--negative_vo751_11",
|
|
@@ -252,7 +252,7 @@ const _r = /* @__PURE__ */ or(lr), m = {
|
|
|
252
252
|
"purpur-heading--display-200": "_purpur-heading--display-200_vo751_104"
|
|
253
253
|
}, cr = {
|
|
254
254
|
TITLE100: "title-100"
|
|
255
|
-
},
|
|
255
|
+
}, x = "purpur-heading", D = ({
|
|
256
256
|
children: e,
|
|
257
257
|
className: i = "",
|
|
258
258
|
enableHyphenation: p = !1,
|
|
@@ -263,22 +263,22 @@ const _r = /* @__PURE__ */ or(lr), m = {
|
|
|
263
263
|
}) => {
|
|
264
264
|
const n = u, c = _r([
|
|
265
265
|
i,
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
$[x],
|
|
267
|
+
$[`${x}--${r}`],
|
|
268
268
|
{
|
|
269
|
-
[
|
|
270
|
-
[
|
|
269
|
+
[$[`${x}--hyphens`]]: p,
|
|
270
|
+
[$[`${x}--negative`]]: a
|
|
271
271
|
}
|
|
272
272
|
]);
|
|
273
273
|
return /* @__PURE__ */ o(n, { className: c, ...t, children: e });
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
D.displayName = "Heading";
|
|
276
276
|
function dr(e) {
|
|
277
277
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
279
|
+
var Z = { exports: {} }, B;
|
|
280
280
|
function gr() {
|
|
281
|
-
return
|
|
281
|
+
return B || (B = 1, (function(e) {
|
|
282
282
|
(function() {
|
|
283
283
|
var i = {}.hasOwnProperty;
|
|
284
284
|
function p() {
|
|
@@ -307,10 +307,10 @@ function gr() {
|
|
|
307
307
|
}
|
|
308
308
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
309
309
|
})();
|
|
310
|
-
})(
|
|
310
|
+
})(Z)), Z.exports;
|
|
311
311
|
}
|
|
312
312
|
var hr = gr();
|
|
313
|
-
const
|
|
313
|
+
const vr = /* @__PURE__ */ dr(hr), fr = {
|
|
314
314
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
315
315
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
316
316
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -318,7 +318,7 @@ const fr = /* @__PURE__ */ dr(hr), vr = {
|
|
|
318
318
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
319
319
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
320
320
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
321
|
-
}, yr =
|
|
321
|
+
}, yr = vr.bind(fr), q = "purpur-icon", br = "md", mr = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), $r = ({ content: e = "", title: i } = {}) => {
|
|
322
322
|
const p = [
|
|
323
323
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
324
324
|
{ name: "fill", value: "currentColor" },
|
|
@@ -326,15 +326,15 @@ const fr = /* @__PURE__ */ dr(hr), vr = {
|
|
|
326
326
|
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
327
327
|
], a = i ? `<title>${i}</title>` : "";
|
|
328
328
|
return `<svg ${mr(p)}>${a}${e}</svg>`;
|
|
329
|
-
},
|
|
330
|
-
const r =
|
|
331
|
-
content:
|
|
329
|
+
}, xr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), O = ({ svg: e, allyTitle: i, className: p, size: a = br, ...u }) => {
|
|
330
|
+
const r = $r({
|
|
331
|
+
content: xr(e.svg),
|
|
332
332
|
title: i
|
|
333
|
-
}), t = yr(
|
|
333
|
+
}), t = yr(q, `${q}--${a}`, p);
|
|
334
334
|
return /* @__PURE__ */ o("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...u });
|
|
335
335
|
};
|
|
336
|
-
|
|
337
|
-
const
|
|
336
|
+
O.displayName = "Icon";
|
|
337
|
+
const wr = {
|
|
338
338
|
name: "alert-filled",
|
|
339
339
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm1.038-14.81-.247 6.875h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.916c0 .649-.585 1.234-1.25 1.234-.649 0-1.25-.585-1.25-1.234 0-.633.601-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
|
|
340
340
|
keywords: ["alert-filled"],
|
|
@@ -363,9 +363,9 @@ const xr = {
|
|
|
363
363
|
function Ar(e) {
|
|
364
364
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
365
365
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
368
|
-
return
|
|
366
|
+
var G = { exports: {} }, T;
|
|
367
|
+
function zr() {
|
|
368
|
+
return T || (T = 1, (function(e) {
|
|
369
369
|
(function() {
|
|
370
370
|
var i = {}.hasOwnProperty;
|
|
371
371
|
function p() {
|
|
@@ -394,10 +394,10 @@ function qr() {
|
|
|
394
394
|
}
|
|
395
395
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
396
396
|
})();
|
|
397
|
-
})(
|
|
397
|
+
})(G)), G.exports;
|
|
398
398
|
}
|
|
399
|
-
var
|
|
400
|
-
const
|
|
399
|
+
var Rr = zr();
|
|
400
|
+
const Pr = /* @__PURE__ */ Ar(Rr), Lr = {
|
|
401
401
|
"purpur-paragraph": "_purpur-paragraph_1vz75_1",
|
|
402
402
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1vz75_7",
|
|
403
403
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1vz75_10",
|
|
@@ -413,9 +413,9 @@ const Rr = /* @__PURE__ */ Ar(zr), Pr = {
|
|
|
413
413
|
"purpur-paragraph--additional-100-bold": "_purpur-paragraph--additional-100-bold_1vz75_67",
|
|
414
414
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1vz75_74",
|
|
415
415
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1vz75_82"
|
|
416
|
-
},
|
|
416
|
+
}, Mr = Pr.bind(Lr), Cr = {
|
|
417
417
|
PARAGRAPH100: "paragraph-100"
|
|
418
|
-
}, f = "purpur-paragraph",
|
|
418
|
+
}, f = "purpur-paragraph", U = ({
|
|
419
419
|
children: e,
|
|
420
420
|
className: i,
|
|
421
421
|
disabled: p,
|
|
@@ -424,21 +424,21 @@ const Rr = /* @__PURE__ */ Ar(zr), Pr = {
|
|
|
424
424
|
variant: r = Cr.PARAGRAPH100,
|
|
425
425
|
...t
|
|
426
426
|
}) => {
|
|
427
|
-
const n =
|
|
427
|
+
const n = Mr(i, f, `${f}--${r}`, {
|
|
428
428
|
[`${f}--hyphens`]: a,
|
|
429
429
|
[`${f}--disabled`]: p,
|
|
430
430
|
[`${f}--negative`]: u
|
|
431
431
|
});
|
|
432
432
|
return /* @__PURE__ */ o("p", { ...t, className: n, children: e });
|
|
433
433
|
};
|
|
434
|
-
|
|
435
|
-
function
|
|
434
|
+
U.displayName = "Paragraph";
|
|
435
|
+
function Er(e) {
|
|
436
436
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
437
437
|
}
|
|
438
|
-
var
|
|
439
|
-
var
|
|
440
|
-
function
|
|
441
|
-
return
|
|
438
|
+
var N = { exports: {} };
|
|
439
|
+
var k;
|
|
440
|
+
function Ir() {
|
|
441
|
+
return k || (k = 1, (function(e) {
|
|
442
442
|
(function() {
|
|
443
443
|
var i = {}.hasOwnProperty;
|
|
444
444
|
function p() {
|
|
@@ -467,24 +467,25 @@ function Er() {
|
|
|
467
467
|
}
|
|
468
468
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
469
469
|
})();
|
|
470
|
-
})(
|
|
470
|
+
})(N)), N.exports;
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
const
|
|
474
|
-
"purpur-notification": "_purpur-
|
|
475
|
-
"purpur-notification__top": "_purpur-
|
|
476
|
-
"purpur-notification__header": "_purpur-
|
|
477
|
-
"purpur-notification__close-button": "_purpur-notification__close-
|
|
478
|
-
"purpur-notification__icon": "_purpur-
|
|
479
|
-
"purpur-notification__body": "_purpur-
|
|
480
|
-
"purpur-
|
|
481
|
-
"purpur-
|
|
482
|
-
"purpur-
|
|
483
|
-
"purpur-notification--
|
|
484
|
-
"purpur-notification--
|
|
485
|
-
"purpur-notification--
|
|
486
|
-
"purpur-notification--
|
|
487
|
-
|
|
472
|
+
var Zr = Ir();
|
|
473
|
+
const Br = /* @__PURE__ */ Er(Zr), qr = {
|
|
474
|
+
"purpur-notification": "_purpur-notification_53c05_1",
|
|
475
|
+
"purpur-notification__top": "_purpur-notification__top_53c05_14",
|
|
476
|
+
"purpur-notification__header": "_purpur-notification__header_53c05_20",
|
|
477
|
+
"purpur-notification__close-button": "_purpur-notification__close-button_53c05_25",
|
|
478
|
+
"purpur-notification__icon": "_purpur-notification__icon_53c05_30",
|
|
479
|
+
"purpur-notification__body": "_purpur-notification__body_53c05_33",
|
|
480
|
+
"purpur-notification__body--extra-padding": "_purpur-notification__body--extra-padding_53c05_36",
|
|
481
|
+
"purpur-notification--success": "_purpur-notification--success_53c05_39",
|
|
482
|
+
"purpur-notification__heading": "_purpur-notification__heading_53c05_42",
|
|
483
|
+
"purpur-notification--warning": "_purpur-notification--warning_53c05_48",
|
|
484
|
+
"purpur-notification--error": "_purpur-notification--error_53c05_57",
|
|
485
|
+
"purpur-notification--info": "_purpur-notification--info_53c05_66",
|
|
486
|
+
"purpur-notification--hidden": "_purpur-notification--hidden_53c05_75",
|
|
487
|
+
"purpur-notification--has-close-button": "_purpur-notification--has-close-button_53c05_79"
|
|
488
|
+
}, d = Br.bind(qr), y = {
|
|
488
489
|
SUCCESS: "success",
|
|
489
490
|
WARNING: "warning",
|
|
490
491
|
ERROR: "error",
|
|
@@ -503,11 +504,11 @@ const Zr = /* @__PURE__ */ Mr(Ir), Br = {
|
|
|
503
504
|
case y.SUCCESS:
|
|
504
505
|
return Sr;
|
|
505
506
|
case y.WARNING:
|
|
506
|
-
return
|
|
507
|
+
return wr;
|
|
507
508
|
case y.ERROR:
|
|
508
509
|
return Nr;
|
|
509
510
|
}
|
|
510
|
-
},
|
|
511
|
+
}, Hr = H(
|
|
511
512
|
({
|
|
512
513
|
["data-testid"]: e,
|
|
513
514
|
["aria-live"]: i,
|
|
@@ -521,26 +522,28 @@ const Zr = /* @__PURE__ */ Mr(Ir), Br = {
|
|
|
521
522
|
id: s,
|
|
522
523
|
onClose: g,
|
|
523
524
|
open: b = !0,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
"
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
525
|
+
hideIcon: m,
|
|
526
|
+
...S
|
|
527
|
+
}, j) => {
|
|
528
|
+
const h = !!n || !m;
|
|
529
|
+
return /* @__PURE__ */ o("div", { "aria-live": i, children: b && /* @__PURE__ */ w(
|
|
530
|
+
"div",
|
|
531
|
+
{
|
|
532
|
+
id: s,
|
|
533
|
+
"aria-labelledby": s ? `${s}-heading` : void 0,
|
|
534
|
+
"aria-describedby": s ? `${s}-body` : void 0,
|
|
535
|
+
"aria-hidden": !!c,
|
|
536
|
+
className: d(a, l, `${l}--${t}`, {
|
|
537
|
+
[`${l}--hidden`]: c,
|
|
538
|
+
[`${l}--has-close-button`]: !!g
|
|
539
|
+
}),
|
|
540
|
+
"data-testid": e,
|
|
541
|
+
ref: j,
|
|
542
|
+
...S,
|
|
543
|
+
children: [
|
|
544
|
+
h && /* @__PURE__ */ o("div", { className: d(`${l}__top`), children: /* @__PURE__ */ w("div", { className: d(`${l}__header`), children: [
|
|
545
|
+
!m && /* @__PURE__ */ o(
|
|
546
|
+
O,
|
|
544
547
|
{
|
|
545
548
|
"data-testid": e ? `${e}-icon` : void 0,
|
|
546
549
|
className: d(`${l}__icon`),
|
|
@@ -549,21 +552,21 @@ const Zr = /* @__PURE__ */ Mr(Ir), Br = {
|
|
|
549
552
|
}
|
|
550
553
|
),
|
|
551
554
|
!!n && /* @__PURE__ */ o(
|
|
552
|
-
|
|
555
|
+
D,
|
|
553
556
|
{
|
|
554
557
|
"data-testid": e ? `${e}-heading` : void 0,
|
|
555
558
|
variant: "subsection-100",
|
|
556
559
|
tag: r,
|
|
557
560
|
className: d(`${l}__heading`),
|
|
558
|
-
children: /* @__PURE__ */
|
|
561
|
+
children: /* @__PURE__ */ w("span", { id: s ? `${s}-heading` : void 0, children: [
|
|
559
562
|
" ",
|
|
560
563
|
n
|
|
561
564
|
] })
|
|
562
565
|
}
|
|
563
566
|
)
|
|
564
|
-
] }),
|
|
567
|
+
] }) }),
|
|
565
568
|
g && /* @__PURE__ */ o(
|
|
566
|
-
|
|
569
|
+
V,
|
|
567
570
|
{
|
|
568
571
|
"data-testid": e ? `${e}-close-button` : void 0,
|
|
569
572
|
variant: "tertiary-purple",
|
|
@@ -572,36 +575,38 @@ const Zr = /* @__PURE__ */ Mr(Ir), Br = {
|
|
|
572
575
|
"aria-label": u,
|
|
573
576
|
onClick: g,
|
|
574
577
|
className: d(`${l}__close-button`),
|
|
575
|
-
children: /* @__PURE__ */ o(
|
|
578
|
+
children: /* @__PURE__ */ o(O, { svg: jr, size: "sm" })
|
|
579
|
+
}
|
|
580
|
+
),
|
|
581
|
+
p && /* @__PURE__ */ o(
|
|
582
|
+
"div",
|
|
583
|
+
{
|
|
584
|
+
"data-testid": e ? `${e}-body` : void 0,
|
|
585
|
+
className: d(`${l}__body`, {
|
|
586
|
+
[`${l}__body--extra-padding`]: !h && !!g
|
|
587
|
+
}),
|
|
588
|
+
id: s ? `${s}-body` : void 0,
|
|
589
|
+
children: typeof p == "string" ? /* @__PURE__ */ o(
|
|
590
|
+
U,
|
|
591
|
+
{
|
|
592
|
+
"data-testid": e ? `${e}-paragraph` : void 0,
|
|
593
|
+
variant: "paragraph-100",
|
|
594
|
+
children: p
|
|
595
|
+
}
|
|
596
|
+
) : p
|
|
576
597
|
}
|
|
577
598
|
)
|
|
578
|
-
]
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
"data-testid": e ? `${e}-body` : void 0,
|
|
583
|
-
className: d(`${l}__body`),
|
|
584
|
-
id: s ? `${s}-body` : void 0,
|
|
585
|
-
children: typeof p == "string" ? /* @__PURE__ */ o(
|
|
586
|
-
D,
|
|
587
|
-
{
|
|
588
|
-
"data-testid": e ? `${e}-paragraph` : void 0,
|
|
589
|
-
variant: "paragraph-100",
|
|
590
|
-
children: p
|
|
591
|
-
}
|
|
592
|
-
) : p
|
|
593
|
-
}
|
|
594
|
-
)
|
|
595
|
-
]
|
|
596
|
-
}
|
|
597
|
-
) })
|
|
599
|
+
]
|
|
600
|
+
}
|
|
601
|
+
) });
|
|
602
|
+
}
|
|
598
603
|
);
|
|
599
|
-
|
|
604
|
+
Hr.displayName = "Notification";
|
|
600
605
|
export {
|
|
601
606
|
Gr as NOTIFICATION_ARIA_LIVE,
|
|
602
607
|
Tr as NOTIFICATION_ROLE,
|
|
603
608
|
y as NOTIFICATION_STATUS,
|
|
604
|
-
|
|
609
|
+
Hr as Notification,
|
|
605
610
|
Ur as notificationAriaLiveValues,
|
|
606
611
|
Wr as notificationRoles,
|
|
607
612
|
Dr as notificationStatuses
|