@purpurds/notification 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.
- package/dist/LICENSE.txt +4 -4
- package/dist/notification.cjs.js +6 -6
- package/dist/notification.cjs.js.map +1 -1
- package/dist/notification.es.js +145 -139
- package/dist/notification.es.js.map +1 -1
- package/package.json +6 -6
package/dist/notification.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as M } from "react";
|
|
3
3
|
const E = {
|
|
4
4
|
SM: "sm",
|
|
@@ -20,11 +20,11 @@ var P = { exports: {} };
|
|
|
20
20
|
function a() {
|
|
21
21
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
22
22
|
var n = arguments[t];
|
|
23
|
-
n && (r =
|
|
23
|
+
n && (r = i(r, p(n)));
|
|
24
24
|
}
|
|
25
25
|
return r;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function p(r) {
|
|
28
28
|
if (typeof r == "string" || typeof r == "number")
|
|
29
29
|
return r;
|
|
30
30
|
if (typeof r != "object")
|
|
@@ -35,30 +35,30 @@ var P = { exports: {} };
|
|
|
35
35
|
return r.toString();
|
|
36
36
|
var t = "";
|
|
37
37
|
for (var n in r)
|
|
38
|
-
u.call(r, n) && r[n] && (t =
|
|
38
|
+
u.call(r, n) && r[n] && (t = i(t, n));
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function i(r, t) {
|
|
42
42
|
return t ? r ? r + " " + t : r + t : r;
|
|
43
43
|
}
|
|
44
44
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
45
45
|
})();
|
|
46
46
|
})(P);
|
|
47
47
|
var V = P.exports;
|
|
48
|
-
const
|
|
48
|
+
const R = /* @__PURE__ */ Z(V), k = "_rotate_7s2g1_1", H = "_dash_7s2g1_1", w = {
|
|
49
49
|
"purpur-spinner": "_purpur-spinner_7s2g1_1",
|
|
50
|
-
rotate:
|
|
50
|
+
rotate: k,
|
|
51
51
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",
|
|
52
52
|
"purpur-spinner--xs": "_purpur-spinner--xs_7s2g1_8",
|
|
53
53
|
"purpur-spinner--sm": "_purpur-spinner--sm_7s2g1_12",
|
|
54
54
|
"purpur-spinner--md": "_purpur-spinner--md_7s2g1_16",
|
|
55
55
|
"purpur-spinner--lg": "_purpur-spinner--lg_7s2g1_20",
|
|
56
56
|
"purpur-spinner__circle": "_purpur-spinner__circle_7s2g1_24",
|
|
57
|
-
dash:
|
|
57
|
+
dash: H,
|
|
58
58
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_7s2g1_33",
|
|
59
59
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_7s2g1_36",
|
|
60
60
|
"purpur-spinner__circle--negative-disabled": "_purpur-spinner__circle--negative-disabled_7s2g1_39"
|
|
61
|
-
},
|
|
61
|
+
}, x = "purpur-spinner", F = {
|
|
62
62
|
PRIMARY: "primary",
|
|
63
63
|
DISABLED: "disabled",
|
|
64
64
|
NEGATIVE: "negative",
|
|
@@ -72,20 +72,20 @@ const I = /* @__PURE__ */ Z(V), H = "_rotate_7s2g1_1", F = "_dash_7s2g1_1", m =
|
|
|
72
72
|
}, W = ({
|
|
73
73
|
["data-testid"]: e,
|
|
74
74
|
size: u = U.SM,
|
|
75
|
-
variant: a =
|
|
76
|
-
...
|
|
75
|
+
variant: a = F.PRIMARY,
|
|
76
|
+
...p
|
|
77
77
|
}) => /* @__PURE__ */ o(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
|
-
className:
|
|
80
|
+
className: R([w[x], w[`${x}--${u}`]]),
|
|
81
81
|
"data-testid": e,
|
|
82
|
-
...
|
|
82
|
+
...p,
|
|
83
83
|
children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
84
84
|
"circle",
|
|
85
85
|
{
|
|
86
|
-
className:
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
className: R(
|
|
87
|
+
w[`${x}__circle`],
|
|
88
|
+
w[`${x}__circle--${a}`]
|
|
89
89
|
),
|
|
90
90
|
cx: "25",
|
|
91
91
|
cy: "25",
|
|
@@ -109,11 +109,11 @@ var j = { exports: {} };
|
|
|
109
109
|
function a() {
|
|
110
110
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
111
111
|
var n = arguments[t];
|
|
112
|
-
n && (r =
|
|
112
|
+
n && (r = i(r, p(n)));
|
|
113
113
|
}
|
|
114
114
|
return r;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function p(r) {
|
|
117
117
|
if (typeof r == "string" || typeof r == "number")
|
|
118
118
|
return r;
|
|
119
119
|
if (typeof r != "object")
|
|
@@ -124,17 +124,17 @@ var j = { exports: {} };
|
|
|
124
124
|
return r.toString();
|
|
125
125
|
var t = "";
|
|
126
126
|
for (var n in r)
|
|
127
|
-
u.call(r, n) && r[n] && (t =
|
|
127
|
+
u.call(r, n) && r[n] && (t = i(t, n));
|
|
128
128
|
return t;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function i(r, t) {
|
|
131
131
|
return t ? r ? r + " " + t : r + t : r;
|
|
132
132
|
}
|
|
133
133
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
134
134
|
})();
|
|
135
135
|
})(j);
|
|
136
136
|
var X = j.exports;
|
|
137
|
-
const J = /* @__PURE__ */ Y(X),
|
|
137
|
+
const J = /* @__PURE__ */ Y(X), g = {
|
|
138
138
|
"purpur-button": "_purpur-button_1fna2_1",
|
|
139
139
|
"purpur-button--sm": "_purpur-button--sm_1fna2_33",
|
|
140
140
|
"purpur-button--icon-only": "_purpur-button--icon-only_1fna2_36",
|
|
@@ -155,48 +155,48 @@ const J = /* @__PURE__ */ Y(X), f = {
|
|
|
155
155
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_1fna2_160",
|
|
156
156
|
"purpur-button--text-negative": "_purpur-button--text-negative_1fna2_175",
|
|
157
157
|
"purpur-button--text": "_purpur-button--text_1fna2_175"
|
|
158
|
-
},
|
|
158
|
+
}, f = "purpur-button", K = ({
|
|
159
159
|
children: e,
|
|
160
160
|
className: u,
|
|
161
161
|
["data-testid"]: a,
|
|
162
|
-
disabled:
|
|
163
|
-
fullWidth:
|
|
162
|
+
disabled: p = !1,
|
|
163
|
+
fullWidth: i = !1,
|
|
164
164
|
iconOnly: r,
|
|
165
165
|
loading: t = !1,
|
|
166
166
|
onClick: n,
|
|
167
167
|
size: c = E.MD,
|
|
168
168
|
variant: d,
|
|
169
169
|
type: s = "button",
|
|
170
|
-
...
|
|
171
|
-
},
|
|
170
|
+
...v
|
|
171
|
+
}, A) => {
|
|
172
172
|
if (r && d === "destructive")
|
|
173
173
|
return null;
|
|
174
|
-
const
|
|
174
|
+
const O = J(
|
|
175
175
|
[
|
|
176
|
-
f
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
g[f],
|
|
177
|
+
g[`${f}--${d}`],
|
|
178
|
+
g[`${f}--${c}`]
|
|
179
179
|
],
|
|
180
180
|
{
|
|
181
|
-
[
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
[
|
|
181
|
+
[g[`${f}--icon-only`]]: r,
|
|
182
|
+
[g[`${f}--negative`]]: d.endsWith("negative"),
|
|
183
|
+
[g[`${f}--full-width`]]: i,
|
|
184
|
+
[g[`${f}--disabled`]]: p || t
|
|
185
185
|
},
|
|
186
186
|
u
|
|
187
187
|
), G = (N) => {
|
|
188
|
-
|
|
188
|
+
p || t ? N.preventDefault() : n && n(N);
|
|
189
189
|
}, B = () => d.endsWith("negative") ? "negative-disabled" : "disabled";
|
|
190
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ m(
|
|
191
191
|
"button",
|
|
192
192
|
{
|
|
193
|
-
className:
|
|
193
|
+
className: O,
|
|
194
194
|
"data-testid": a,
|
|
195
195
|
type: s,
|
|
196
|
-
ref:
|
|
197
|
-
"aria-disabled":
|
|
196
|
+
ref: A,
|
|
197
|
+
"aria-disabled": v["aria-disabled"] || p || t,
|
|
198
198
|
onClick: G,
|
|
199
|
-
...
|
|
199
|
+
...v,
|
|
200
200
|
children: [
|
|
201
201
|
t && /* @__PURE__ */ o(W, { size: c === E.LG ? "xs" : "xxs", variant: B() }),
|
|
202
202
|
" ",
|
|
@@ -209,7 +209,7 @@ T.displayName = "Button";
|
|
|
209
209
|
function Q(e) {
|
|
210
210
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var z = { exports: {} };
|
|
213
213
|
/*!
|
|
214
214
|
Copyright (c) 2018 Jed Watson.
|
|
215
215
|
Licensed under the MIT License (MIT), see
|
|
@@ -221,11 +221,11 @@ var k = { exports: {} };
|
|
|
221
221
|
function a() {
|
|
222
222
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
223
223
|
var n = arguments[t];
|
|
224
|
-
n && (r =
|
|
224
|
+
n && (r = i(r, p(n)));
|
|
225
225
|
}
|
|
226
226
|
return r;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function p(r) {
|
|
229
229
|
if (typeof r == "string" || typeof r == "number")
|
|
230
230
|
return r;
|
|
231
231
|
if (typeof r != "object")
|
|
@@ -236,31 +236,32 @@ var k = { exports: {} };
|
|
|
236
236
|
return r.toString();
|
|
237
237
|
var t = "";
|
|
238
238
|
for (var n in r)
|
|
239
|
-
u.call(r, n) && r[n] && (t =
|
|
239
|
+
u.call(r, n) && r[n] && (t = i(t, n));
|
|
240
240
|
return t;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function i(r, t) {
|
|
243
243
|
return t ? r ? r + " " + t : r + t : r;
|
|
244
244
|
}
|
|
245
245
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
246
246
|
})();
|
|
247
|
-
})(
|
|
248
|
-
var rr =
|
|
249
|
-
const tr = /* @__PURE__ */ Q(rr),
|
|
250
|
-
"purpur-heading": "_purpur-
|
|
251
|
-
"purpur-heading--hyphens": "_purpur-heading--
|
|
252
|
-
"purpur-heading--
|
|
253
|
-
"purpur-heading--
|
|
254
|
-
"purpur-heading--title-
|
|
255
|
-
"purpur-heading--title-
|
|
256
|
-
"purpur-heading--title-
|
|
257
|
-
"purpur-heading--title-
|
|
258
|
-
"purpur-heading--title-
|
|
259
|
-
"purpur-heading--title-
|
|
260
|
-
"purpur-heading--
|
|
261
|
-
"purpur-heading--display-
|
|
262
|
-
"purpur-heading--display-
|
|
263
|
-
"purpur-heading--display-
|
|
247
|
+
})(z);
|
|
248
|
+
var rr = z.exports;
|
|
249
|
+
const tr = /* @__PURE__ */ Q(rr), $ = {
|
|
250
|
+
"purpur-heading": "_purpur-heading_1g237_1",
|
|
251
|
+
"purpur-heading--hyphens": "_purpur-heading--hyphens_1g237_8",
|
|
252
|
+
"purpur-heading--negative": "_purpur-heading--negative_1g237_11",
|
|
253
|
+
"purpur-heading--subsection-100": "_purpur-heading--subsection-100_1g237_14",
|
|
254
|
+
"purpur-heading--title-100": "_purpur-heading--title-100_1g237_20",
|
|
255
|
+
"purpur-heading--title-200": "_purpur-heading--title-200_1g237_26",
|
|
256
|
+
"purpur-heading--title-300": "_purpur-heading--title-300_1g237_32",
|
|
257
|
+
"purpur-heading--title-400": "_purpur-heading--title-400_1g237_38",
|
|
258
|
+
"purpur-heading--title-500": "_purpur-heading--title-500_1g237_44",
|
|
259
|
+
"purpur-heading--title-600": "_purpur-heading--title-600_1g237_50",
|
|
260
|
+
"purpur-heading--title-700": "_purpur-heading--title-700_1g237_56",
|
|
261
|
+
"purpur-heading--display-25": "_purpur-heading--display-25_1g237_62",
|
|
262
|
+
"purpur-heading--display-50": "_purpur-heading--display-50_1g237_68",
|
|
263
|
+
"purpur-heading--display-100": "_purpur-heading--display-100_1g237_74",
|
|
264
|
+
"purpur-heading--display-200": "_purpur-heading--display-200_1g237_80"
|
|
264
265
|
}, er = {
|
|
265
266
|
TITLE100: "title-100",
|
|
266
267
|
TITLE200: "title-200",
|
|
@@ -270,24 +271,26 @@ const tr = /* @__PURE__ */ Q(rr), A = {
|
|
|
270
271
|
TITLE600: "title-600",
|
|
271
272
|
TITLE700: "title-700",
|
|
272
273
|
SUBSECTION100: "subsection-100"
|
|
273
|
-
},
|
|
274
|
+
}, S = "purpur-heading", nr = ({
|
|
274
275
|
["data-testid"]: e,
|
|
275
276
|
children: u,
|
|
276
277
|
className: a = "",
|
|
277
|
-
enableHyphenation:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
enableHyphenation: p = !1,
|
|
279
|
+
negative: i = !1,
|
|
280
|
+
tag: r,
|
|
281
|
+
variant: t = er.TITLE100,
|
|
282
|
+
...n
|
|
281
283
|
}) => {
|
|
282
|
-
const
|
|
284
|
+
const c = r, d = tr([
|
|
283
285
|
a,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
+
$[S],
|
|
287
|
+
$[`${S}--${t}`],
|
|
286
288
|
{
|
|
287
|
-
[
|
|
289
|
+
[$[`${S}--hyphens`]]: p,
|
|
290
|
+
[$[`${S}--negative`]]: i
|
|
288
291
|
}
|
|
289
292
|
]);
|
|
290
|
-
return /* @__PURE__ */ o(
|
|
293
|
+
return /* @__PURE__ */ o(c, { ...n, className: d, "data-testid": e, children: u });
|
|
291
294
|
};
|
|
292
295
|
function ar(e) {
|
|
293
296
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -304,11 +307,11 @@ var q = { exports: {} };
|
|
|
304
307
|
function a() {
|
|
305
308
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
306
309
|
var n = arguments[t];
|
|
307
|
-
n && (r =
|
|
310
|
+
n && (r = i(r, p.call(this, n)));
|
|
308
311
|
}
|
|
309
312
|
return r;
|
|
310
313
|
}
|
|
311
|
-
function
|
|
314
|
+
function p(r) {
|
|
312
315
|
if (typeof r == "string" || typeof r == "number")
|
|
313
316
|
return this && this[r] || r;
|
|
314
317
|
if (typeof r != "object")
|
|
@@ -319,17 +322,17 @@ var q = { exports: {} };
|
|
|
319
322
|
return r.toString();
|
|
320
323
|
var t = "";
|
|
321
324
|
for (var n in r)
|
|
322
|
-
u.call(r, n) && r[n] && (t =
|
|
325
|
+
u.call(r, n) && r[n] && (t = i(t, this && this[n] || n));
|
|
323
326
|
return t;
|
|
324
327
|
}
|
|
325
|
-
function
|
|
328
|
+
function i(r, t) {
|
|
326
329
|
return t ? r ? r + " " + t : r + t : r;
|
|
327
330
|
}
|
|
328
331
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
329
332
|
})();
|
|
330
333
|
})(q);
|
|
331
334
|
var ur = q.exports;
|
|
332
|
-
const
|
|
335
|
+
const pr = /* @__PURE__ */ ar(ur), ir = {
|
|
333
336
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
334
337
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
335
338
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -362,26 +365,26 @@ const ir = /* @__PURE__ */ ar(ur), pr = {
|
|
|
362
365
|
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 10ZM10.9 7.786c0 .591.516 1.077 1.108 1.077.576 0 1.092-.486 1.092-1.077 0-.592-.516-1.078-1.092-1.078-.592 0-1.108.486-1.108 1.078Zm.167 9.74h1.866V9.94h-1.866v7.586Z" clip-rule="evenodd"/></svg>',
|
|
363
366
|
keywords: ["info-filled"],
|
|
364
367
|
category: "status"
|
|
365
|
-
}, dr =
|
|
368
|
+
}, dr = pr.bind(ir), I = "purpur-icon", gr = "md", fr = (e) => e.filter((u) => Object.keys(u).length >= 1).map((u) => `${u.name}="${u.value}"`).join(" "), vr = ({ content: e = "", title: u } = {}) => {
|
|
366
369
|
const a = [
|
|
367
370
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
368
371
|
{ name: "fill", value: "currentColor" },
|
|
369
372
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
370
373
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
371
|
-
],
|
|
372
|
-
return `<svg ${
|
|
373
|
-
},
|
|
374
|
+
], p = u ? `<title>${u}</title>` : "";
|
|
375
|
+
return `<svg ${fr(a)}>${p}${e}</svg>`;
|
|
376
|
+
}, hr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), L = ({
|
|
374
377
|
["data-testid"]: e,
|
|
375
378
|
svg: u,
|
|
376
379
|
allyTitle: a,
|
|
377
|
-
className:
|
|
378
|
-
size:
|
|
380
|
+
className: p = "",
|
|
381
|
+
size: i = gr,
|
|
379
382
|
...r
|
|
380
383
|
}) => {
|
|
381
|
-
const t =
|
|
382
|
-
content:
|
|
384
|
+
const t = vr({
|
|
385
|
+
content: hr(u.svg),
|
|
383
386
|
title: a
|
|
384
|
-
}), n = dr(
|
|
387
|
+
}), n = dr(p, I, `${I}--${i}`);
|
|
385
388
|
return /* @__PURE__ */ o(
|
|
386
389
|
"span",
|
|
387
390
|
{
|
|
@@ -393,7 +396,7 @@ const ir = /* @__PURE__ */ ar(ur), pr = {
|
|
|
393
396
|
}
|
|
394
397
|
);
|
|
395
398
|
};
|
|
396
|
-
function
|
|
399
|
+
function yr(e) {
|
|
397
400
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
398
401
|
}
|
|
399
402
|
var D = { exports: {} };
|
|
@@ -408,11 +411,11 @@ var D = { exports: {} };
|
|
|
408
411
|
function a() {
|
|
409
412
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
410
413
|
var n = arguments[t];
|
|
411
|
-
n && (r =
|
|
414
|
+
n && (r = i(r, p(n)));
|
|
412
415
|
}
|
|
413
416
|
return r;
|
|
414
417
|
}
|
|
415
|
-
function
|
|
418
|
+
function p(r) {
|
|
416
419
|
if (typeof r == "string" || typeof r == "number")
|
|
417
420
|
return r;
|
|
418
421
|
if (typeof r != "object")
|
|
@@ -423,30 +426,31 @@ var D = { exports: {} };
|
|
|
423
426
|
return r.toString();
|
|
424
427
|
var t = "";
|
|
425
428
|
for (var n in r)
|
|
426
|
-
u.call(r, n) && r[n] && (t =
|
|
429
|
+
u.call(r, n) && r[n] && (t = i(t, n));
|
|
427
430
|
return t;
|
|
428
431
|
}
|
|
429
|
-
function
|
|
432
|
+
function i(r, t) {
|
|
430
433
|
return t ? r ? r + " " + t : r + t : r;
|
|
431
434
|
}
|
|
432
435
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
433
436
|
})();
|
|
434
437
|
})(D);
|
|
435
438
|
var mr = D.exports;
|
|
436
|
-
const
|
|
437
|
-
"purpur-paragraph": "_purpur-
|
|
438
|
-
"purpur-paragraph--disabled": "_purpur-paragraph--
|
|
439
|
-
"purpur-paragraph--hyphens": "_purpur-paragraph--
|
|
440
|
-
"purpur-paragraph--
|
|
441
|
-
"purpur-paragraph--paragraph-100
|
|
442
|
-
"purpur-paragraph--paragraph-100-
|
|
443
|
-
"purpur-paragraph--paragraph-
|
|
444
|
-
"purpur-paragraph--
|
|
445
|
-
"purpur-paragraph--preamble-
|
|
446
|
-
"purpur-paragraph--
|
|
447
|
-
"purpur-paragraph--additional-100
|
|
448
|
-
"purpur-paragraph--
|
|
449
|
-
"purpur-paragraph--overline-
|
|
439
|
+
const br = /* @__PURE__ */ yr(mr), h = {
|
|
440
|
+
"purpur-paragraph": "_purpur-paragraph_15yuz_1",
|
|
441
|
+
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_15yuz_7",
|
|
442
|
+
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_15yuz_10",
|
|
443
|
+
"purpur-paragraph--negative": "_purpur-paragraph--negative_15yuz_13",
|
|
444
|
+
"purpur-paragraph--paragraph-100": "_purpur-paragraph--paragraph-100_15yuz_16",
|
|
445
|
+
"purpur-paragraph--paragraph-100-medium": "_purpur-paragraph--paragraph-100-medium_15yuz_22",
|
|
446
|
+
"purpur-paragraph--paragraph-100-bold": "_purpur-paragraph--paragraph-100-bold_15yuz_29",
|
|
447
|
+
"purpur-paragraph--paragraph-200": "_purpur-paragraph--paragraph-200_15yuz_36",
|
|
448
|
+
"purpur-paragraph--preamble-100": "_purpur-paragraph--preamble-100_15yuz_42",
|
|
449
|
+
"purpur-paragraph--preamble-200": "_purpur-paragraph--preamble-200_15yuz_48",
|
|
450
|
+
"purpur-paragraph--additional-100": "_purpur-paragraph--additional-100_15yuz_54",
|
|
451
|
+
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_15yuz_60",
|
|
452
|
+
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_15yuz_67",
|
|
453
|
+
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_15yuz_75"
|
|
450
454
|
}, wr = {
|
|
451
455
|
PARAGRAPH100: "paragraph-100",
|
|
452
456
|
PARAGRAPH100MEDIUM: "paragraph-100-medium",
|
|
@@ -458,25 +462,27 @@ const yr = /* @__PURE__ */ br(mr), w = {
|
|
|
458
462
|
ADDITIONAL100MEDIUM: "additional-100-medium",
|
|
459
463
|
OVERLINE100: "overline-100",
|
|
460
464
|
OVERLINE200: "overline-200"
|
|
461
|
-
},
|
|
465
|
+
}, y = "purpur-paragraph", xr = ({
|
|
462
466
|
["data-testid"]: e,
|
|
463
467
|
children: u,
|
|
464
468
|
className: a = "",
|
|
465
|
-
disabled:
|
|
466
|
-
enableHyphenation:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
+
disabled: p,
|
|
470
|
+
enableHyphenation: i = !1,
|
|
471
|
+
negative: r = !1,
|
|
472
|
+
variant: t = wr.PARAGRAPH100,
|
|
473
|
+
...n
|
|
469
474
|
}) => {
|
|
470
|
-
const
|
|
475
|
+
const c = br([
|
|
471
476
|
a,
|
|
472
|
-
|
|
473
|
-
|
|
477
|
+
h[y],
|
|
478
|
+
h[`${y}--${t}`],
|
|
474
479
|
{
|
|
475
|
-
[
|
|
476
|
-
[
|
|
480
|
+
[h[`${y}--hyphens`]]: i,
|
|
481
|
+
[h[`${y}--disabled`]]: p,
|
|
482
|
+
[h[`${y}--negative`]]: r
|
|
477
483
|
}
|
|
478
484
|
]);
|
|
479
|
-
return /* @__PURE__ */ o("p", { ...
|
|
485
|
+
return /* @__PURE__ */ o("p", { ...n, className: c, "data-testid": e, children: u });
|
|
480
486
|
};
|
|
481
487
|
function $r(e) {
|
|
482
488
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -493,11 +499,11 @@ var C = { exports: {} };
|
|
|
493
499
|
function a() {
|
|
494
500
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
495
501
|
var n = arguments[t];
|
|
496
|
-
n && (r =
|
|
502
|
+
n && (r = i(r, p(n)));
|
|
497
503
|
}
|
|
498
504
|
return r;
|
|
499
505
|
}
|
|
500
|
-
function
|
|
506
|
+
function p(r) {
|
|
501
507
|
if (typeof r == "string" || typeof r == "number")
|
|
502
508
|
return r;
|
|
503
509
|
if (typeof r != "object")
|
|
@@ -508,10 +514,10 @@ var C = { exports: {} };
|
|
|
508
514
|
return r.toString();
|
|
509
515
|
var t = "";
|
|
510
516
|
for (var n in r)
|
|
511
|
-
u.call(r, n) && r[n] && (t =
|
|
517
|
+
u.call(r, n) && r[n] && (t = i(t, n));
|
|
512
518
|
return t;
|
|
513
519
|
}
|
|
514
|
-
function
|
|
520
|
+
function i(r, t) {
|
|
515
521
|
return t ? r ? r + " " + t : r + t : r;
|
|
516
522
|
}
|
|
517
523
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
@@ -555,21 +561,21 @@ const Ar = /* @__PURE__ */ $r(Sr), l = {
|
|
|
555
561
|
case b.ERROR:
|
|
556
562
|
return _r;
|
|
557
563
|
}
|
|
558
|
-
},
|
|
564
|
+
}, Rr = ({
|
|
559
565
|
["data-testid"]: e,
|
|
560
566
|
["aria-live"]: u,
|
|
561
567
|
children: a,
|
|
562
|
-
className:
|
|
563
|
-
closeButtonAllyLabel:
|
|
568
|
+
className: p,
|
|
569
|
+
closeButtonAllyLabel: i,
|
|
564
570
|
headingTag: r = "h4",
|
|
565
571
|
role: t,
|
|
566
572
|
status: n = "info",
|
|
567
573
|
heading: c,
|
|
568
574
|
hidden: d,
|
|
569
575
|
id: s,
|
|
570
|
-
onClose:
|
|
571
|
-
|
|
572
|
-
},
|
|
576
|
+
onClose: v,
|
|
577
|
+
...A
|
|
578
|
+
}, O) => /* @__PURE__ */ m(
|
|
573
579
|
"div",
|
|
574
580
|
{
|
|
575
581
|
id: s,
|
|
@@ -577,17 +583,17 @@ const Ar = /* @__PURE__ */ $r(Sr), l = {
|
|
|
577
583
|
"aria-describedby": s ? `${s}-body` : void 0,
|
|
578
584
|
"aria-live": u,
|
|
579
585
|
"aria-hidden": !!d,
|
|
580
|
-
className: Ar(
|
|
586
|
+
className: Ar(p, l[_], l[`${_}--${n}`], {
|
|
581
587
|
[l[`${_}--hidden`]]: d,
|
|
582
|
-
[l[`${_}--has-close-button`]]: !!
|
|
588
|
+
[l[`${_}--has-close-button`]]: !!v
|
|
583
589
|
}),
|
|
584
590
|
"data-testid": e,
|
|
585
|
-
ref:
|
|
591
|
+
ref: O,
|
|
586
592
|
role: t,
|
|
587
|
-
|
|
593
|
+
...A,
|
|
588
594
|
children: [
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ m("div", { className: l[`${_}__top`], children: [
|
|
596
|
+
/* @__PURE__ */ m("div", { className: l[`${_}__header`], children: [
|
|
591
597
|
/* @__PURE__ */ o(
|
|
592
598
|
L,
|
|
593
599
|
{
|
|
@@ -604,22 +610,22 @@ const Ar = /* @__PURE__ */ $r(Sr), l = {
|
|
|
604
610
|
variant: "subsection-100",
|
|
605
611
|
tag: r,
|
|
606
612
|
className: l[`${_}__heading`],
|
|
607
|
-
children: /* @__PURE__ */
|
|
613
|
+
children: /* @__PURE__ */ m("span", { id: s ? `${s}-heading` : void 0, children: [
|
|
608
614
|
" ",
|
|
609
615
|
c
|
|
610
616
|
] })
|
|
611
617
|
}
|
|
612
618
|
)
|
|
613
619
|
] }),
|
|
614
|
-
|
|
620
|
+
v && /* @__PURE__ */ o(
|
|
615
621
|
T,
|
|
616
622
|
{
|
|
617
623
|
"data-testid": e ? `${e}-close-button` : void 0,
|
|
618
624
|
variant: "tertiary-purple",
|
|
619
625
|
size: "sm",
|
|
620
626
|
iconOnly: !0,
|
|
621
|
-
"aria-label":
|
|
622
|
-
onClick:
|
|
627
|
+
"aria-label": i,
|
|
628
|
+
onClick: v,
|
|
623
629
|
className: l[`${_}__close-button`],
|
|
624
630
|
children: /* @__PURE__ */ o(L, { svg: lr, size: "sm" })
|
|
625
631
|
}
|
|
@@ -643,13 +649,13 @@ const Ar = /* @__PURE__ */ $r(Sr), l = {
|
|
|
643
649
|
)
|
|
644
650
|
]
|
|
645
651
|
}
|
|
646
|
-
),
|
|
647
|
-
|
|
652
|
+
), Ir = M(Rr);
|
|
653
|
+
Ir.displayName = "Notification";
|
|
648
654
|
export {
|
|
649
655
|
Or as NOTIFICATION_ARIA_LIVE,
|
|
650
656
|
Nr as NOTIFICATION_ROLE,
|
|
651
657
|
b as NOTIFICATION_STATUS,
|
|
652
|
-
|
|
658
|
+
Ir as Notification,
|
|
653
659
|
jr as notificationAriaLiveValues,
|
|
654
660
|
Tr as notificationRoles,
|
|
655
661
|
Pr as notificationStatuses
|