@purpurds/notification 7.6.1 → 7.8.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 +7 -7
- package/dist/notification.cjs.js.map +1 -1
- package/dist/notification.d.ts +37 -6
- package/dist/notification.d.ts.map +1 -1
- package/dist/notification.es.js +301 -324
- package/dist/notification.es.js.map +1 -1
- package/package.json +10 -10
- package/src/notification.stories.tsx +35 -3
- package/src/notification.tsx +97 -89
package/dist/notification.es.js
CHANGED
|
@@ -1,113 +1,104 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as v, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z } from "react";
|
|
3
|
+
const D = {
|
|
4
4
|
LG: "lg"
|
|
5
5
|
};
|
|
6
|
-
function
|
|
6
|
+
function U(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var A = { exports: {} };
|
|
10
10
|
/*!
|
|
11
11
|
Copyright (c) 2018 Jed Watson.
|
|
12
12
|
Licensed under the MIT License (MIT), see
|
|
13
13
|
http://jedwatson.github.io/classnames
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
return
|
|
15
|
+
var j;
|
|
16
|
+
function W() {
|
|
17
|
+
return j || (j = 1, function(e) {
|
|
18
18
|
(function() {
|
|
19
|
-
var
|
|
19
|
+
var i = {}.hasOwnProperty;
|
|
20
20
|
function p() {
|
|
21
21
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
22
22
|
var n = arguments[t];
|
|
23
|
-
n && (r =
|
|
23
|
+
n && (r = u(r, a.call(this, n)));
|
|
24
24
|
}
|
|
25
25
|
return r;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function a(r) {
|
|
28
28
|
if (typeof r == "string" || typeof r == "number")
|
|
29
|
-
return r;
|
|
29
|
+
return this && this[r] || r;
|
|
30
30
|
if (typeof r != "object")
|
|
31
31
|
return "";
|
|
32
32
|
if (Array.isArray(r))
|
|
33
|
-
return p.apply(
|
|
33
|
+
return p.apply(this, r);
|
|
34
34
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
35
35
|
return r.toString();
|
|
36
36
|
var t = "";
|
|
37
37
|
for (var n in r)
|
|
38
|
-
|
|
38
|
+
i.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function u(r, t) {
|
|
42
42
|
return t ? r ? r + " " + t : r + t : r;
|
|
43
43
|
}
|
|
44
44
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
45
45
|
})();
|
|
46
|
-
}(
|
|
46
|
+
}(A)), A.exports;
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
const
|
|
48
|
+
var X = W();
|
|
49
|
+
const Y = /* @__PURE__ */ U(X), J = "_rotate_12t9p_1", K = "_dash_12t9p_1", Q = {
|
|
50
50
|
"purpur-spinner": "_purpur-spinner_12t9p_2",
|
|
51
|
-
rotate:
|
|
51
|
+
rotate: J,
|
|
52
52
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_12t9p_6",
|
|
53
53
|
"purpur-spinner--xs": "_purpur-spinner--xs_12t9p_10",
|
|
54
54
|
"purpur-spinner--sm": "_purpur-spinner--sm_12t9p_14",
|
|
55
55
|
"purpur-spinner--md": "_purpur-spinner--md_12t9p_18",
|
|
56
56
|
"purpur-spinner--lg": "_purpur-spinner--lg_12t9p_22",
|
|
57
57
|
"purpur-spinner__circle": "_purpur-spinner__circle_12t9p_26",
|
|
58
|
-
dash:
|
|
58
|
+
dash: K,
|
|
59
59
|
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_12t9p_41",
|
|
60
60
|
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_12t9p_44"
|
|
61
|
-
},
|
|
61
|
+
}, k = Y.bind(Q), h = "purpur-spinner", rr = {
|
|
62
62
|
SM: "sm"
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
size: i = tr.SM,
|
|
63
|
+
}, tr = ({
|
|
64
|
+
disabled: e = !1,
|
|
65
|
+
negative: i = !1,
|
|
66
|
+
size: p = rr.SM,
|
|
68
67
|
...a
|
|
69
|
-
}) => /* @__PURE__ */
|
|
70
|
-
"
|
|
68
|
+
}) => /* @__PURE__ */ o("div", { className: k(h, `${h}--${p}`), ...a, children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
69
|
+
"circle",
|
|
71
70
|
{
|
|
72
|
-
className:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
[h[`${v}__circle--disabled`]]: u,
|
|
80
|
-
[h[`${v}__circle--negative`]]: p
|
|
81
|
-
}),
|
|
82
|
-
cx: "25",
|
|
83
|
-
cy: "25",
|
|
84
|
-
r: "20"
|
|
85
|
-
}
|
|
86
|
-
) })
|
|
71
|
+
className: k(`${h}__circle`, {
|
|
72
|
+
[`${h}__circle--disabled`]: e,
|
|
73
|
+
[`${h}__circle--negative`]: i
|
|
74
|
+
}),
|
|
75
|
+
cx: "25",
|
|
76
|
+
cy: "25",
|
|
77
|
+
r: "20"
|
|
87
78
|
}
|
|
88
|
-
);
|
|
89
|
-
function
|
|
79
|
+
) }) });
|
|
80
|
+
function er(e) {
|
|
90
81
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
91
82
|
}
|
|
92
|
-
var
|
|
83
|
+
var R = { exports: {} };
|
|
93
84
|
/*!
|
|
94
85
|
Copyright (c) 2018 Jed Watson.
|
|
95
86
|
Licensed under the MIT License (MIT), see
|
|
96
87
|
http://jedwatson.github.io/classnames
|
|
97
88
|
*/
|
|
98
|
-
var
|
|
99
|
-
function
|
|
100
|
-
return
|
|
89
|
+
var P;
|
|
90
|
+
function nr() {
|
|
91
|
+
return P || (P = 1, function(e) {
|
|
101
92
|
(function() {
|
|
102
|
-
var
|
|
93
|
+
var i = {}.hasOwnProperty;
|
|
103
94
|
function p() {
|
|
104
95
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
105
96
|
var n = arguments[t];
|
|
106
|
-
n && (r =
|
|
97
|
+
n && (r = u(r, a.call(this, n)));
|
|
107
98
|
}
|
|
108
99
|
return r;
|
|
109
100
|
}
|
|
110
|
-
function
|
|
101
|
+
function a(r) {
|
|
111
102
|
if (typeof r == "string" || typeof r == "number")
|
|
112
103
|
return this && this[r] || r;
|
|
113
104
|
if (typeof r != "object")
|
|
@@ -118,18 +109,18 @@ function pr() {
|
|
|
118
109
|
return r.toString();
|
|
119
110
|
var t = "";
|
|
120
111
|
for (var n in r)
|
|
121
|
-
|
|
112
|
+
i.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
|
|
122
113
|
return t;
|
|
123
114
|
}
|
|
124
|
-
function
|
|
115
|
+
function u(r, t) {
|
|
125
116
|
return t ? r ? r + " " + t : r + t : r;
|
|
126
117
|
}
|
|
127
118
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
128
119
|
})();
|
|
129
|
-
}(
|
|
120
|
+
}(R)), R.exports;
|
|
130
121
|
}
|
|
131
|
-
var
|
|
132
|
-
const
|
|
122
|
+
var pr = nr();
|
|
123
|
+
const ir = /* @__PURE__ */ er(pr), ur = {
|
|
133
124
|
"purpur-button": "_purpur-button_w455q_1",
|
|
134
125
|
"purpur-button--xs": "_purpur-button--xs_w455q_33",
|
|
135
126
|
"purpur-button--icon-only": "_purpur-button--icon-only_w455q_36",
|
|
@@ -151,80 +142,87 @@ const ar = /* @__PURE__ */ nr(ur), ir = {
|
|
|
151
142
|
"purpur-button--tertiary-purple-negative": "_purpur-button--tertiary-purple-negative_w455q_166",
|
|
152
143
|
"purpur-button--text-negative": "_purpur-button--text-negative_w455q_181",
|
|
153
144
|
"purpur-button--text": "_purpur-button--text_w455q_181"
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
145
|
+
}, ar = ir.bind(ur), c = "purpur-button", G = z(
|
|
146
|
+
({
|
|
147
|
+
children: e,
|
|
148
|
+
className: i,
|
|
149
|
+
disabled: p = !1,
|
|
150
|
+
fullWidth: a = !1,
|
|
151
|
+
iconOnly: u,
|
|
152
|
+
loading: r = !1,
|
|
153
|
+
negative: t = !1,
|
|
154
|
+
onClick: n,
|
|
155
|
+
size: _ = "md",
|
|
156
|
+
variant: s,
|
|
157
|
+
type: f = "button",
|
|
158
|
+
...b
|
|
159
|
+
}, $) => {
|
|
160
|
+
if (u && s === "destructive")
|
|
161
|
+
return null;
|
|
162
|
+
const x = ar(
|
|
163
|
+
[
|
|
164
|
+
c,
|
|
165
|
+
`${c}--${t ? `${s}-negative` : s}`,
|
|
166
|
+
`${c}--${_}`
|
|
167
|
+
],
|
|
168
|
+
{
|
|
169
|
+
[`${c}--icon-only`]: u,
|
|
170
|
+
[`${c}--negative`]: t,
|
|
171
|
+
[`${c}--full-width`]: a,
|
|
172
|
+
[`${c}--disabled`]: p || r
|
|
173
|
+
},
|
|
174
|
+
i
|
|
175
|
+
), V = (N) => {
|
|
176
|
+
p || r ? N.preventDefault() : n && n(N);
|
|
177
|
+
}, O = !!b["aria-disabled"] || p || r;
|
|
178
|
+
return /* @__PURE__ */ v(
|
|
179
|
+
"button",
|
|
180
|
+
{
|
|
181
|
+
className: x,
|
|
182
|
+
type: f,
|
|
183
|
+
ref: $,
|
|
184
|
+
"aria-disabled": O,
|
|
185
|
+
onClick: V,
|
|
186
|
+
...b,
|
|
187
|
+
children: [
|
|
188
|
+
r && /* @__PURE__ */ o(
|
|
189
|
+
tr,
|
|
190
|
+
{
|
|
191
|
+
size: _ === D.LG ? "xs" : "xxs",
|
|
192
|
+
negative: t,
|
|
193
|
+
disabled: O
|
|
194
|
+
}
|
|
195
|
+
),
|
|
196
|
+
" ",
|
|
197
|
+
e
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
G.displayName = "Button";
|
|
204
|
+
function or(e) {
|
|
207
205
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
208
206
|
}
|
|
209
|
-
var
|
|
207
|
+
var L = { exports: {} };
|
|
210
208
|
/*!
|
|
211
209
|
Copyright (c) 2018 Jed Watson.
|
|
212
210
|
Licensed under the MIT License (MIT), see
|
|
213
211
|
http://jedwatson.github.io/classnames
|
|
214
212
|
*/
|
|
215
|
-
var
|
|
216
|
-
function
|
|
217
|
-
return
|
|
213
|
+
var C;
|
|
214
|
+
function sr() {
|
|
215
|
+
return C || (C = 1, function(e) {
|
|
218
216
|
(function() {
|
|
219
|
-
var
|
|
217
|
+
var i = {}.hasOwnProperty;
|
|
220
218
|
function p() {
|
|
221
219
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
222
220
|
var n = arguments[t];
|
|
223
|
-
n && (r =
|
|
221
|
+
n && (r = u(r, a(n)));
|
|
224
222
|
}
|
|
225
223
|
return r;
|
|
226
224
|
}
|
|
227
|
-
function
|
|
225
|
+
function a(r) {
|
|
228
226
|
if (typeof r == "string" || typeof r == "number")
|
|
229
227
|
return r;
|
|
230
228
|
if (typeof r != "object")
|
|
@@ -235,18 +233,18 @@ function _r() {
|
|
|
235
233
|
return r.toString();
|
|
236
234
|
var t = "";
|
|
237
235
|
for (var n in r)
|
|
238
|
-
|
|
236
|
+
i.call(r, n) && r[n] && (t = u(t, n));
|
|
239
237
|
return t;
|
|
240
238
|
}
|
|
241
|
-
function
|
|
239
|
+
function u(r, t) {
|
|
242
240
|
return t ? r ? r + " " + t : r + t : r;
|
|
243
241
|
}
|
|
244
242
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
245
243
|
})();
|
|
246
|
-
}(
|
|
244
|
+
}(L)), L.exports;
|
|
247
245
|
}
|
|
248
|
-
var
|
|
249
|
-
const
|
|
246
|
+
var lr = sr();
|
|
247
|
+
const _r = /* @__PURE__ */ or(lr), m = {
|
|
250
248
|
"purpur-heading": "_purpur-heading_k9fhq_1",
|
|
251
249
|
"purpur-heading--hyphens": "_purpur-heading--hyphens_k9fhq_8",
|
|
252
250
|
"purpur-heading--negative": "_purpur-heading--negative_k9fhq_11",
|
|
@@ -262,51 +260,51 @@ const dr = /* @__PURE__ */ lr(cr), x = {
|
|
|
262
260
|
"purpur-heading--display-50": "_purpur-heading--display-50_k9fhq_68",
|
|
263
261
|
"purpur-heading--display-100": "_purpur-heading--display-100_k9fhq_74",
|
|
264
262
|
"purpur-heading--display-200": "_purpur-heading--display-200_k9fhq_80"
|
|
265
|
-
},
|
|
263
|
+
}, cr = {
|
|
266
264
|
TITLE100: "title-100"
|
|
267
|
-
},
|
|
265
|
+
}, w = "purpur-heading", F = ({
|
|
268
266
|
children: e,
|
|
269
|
-
className:
|
|
267
|
+
className: i = "",
|
|
270
268
|
enableHyphenation: p = !1,
|
|
271
|
-
negative:
|
|
272
|
-
tag:
|
|
273
|
-
variant: r =
|
|
269
|
+
negative: a = !1,
|
|
270
|
+
tag: u,
|
|
271
|
+
variant: r = cr.TITLE100,
|
|
274
272
|
...t
|
|
275
273
|
}) => {
|
|
276
|
-
const n =
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
274
|
+
const n = u, _ = _r([
|
|
275
|
+
i,
|
|
276
|
+
m[w],
|
|
277
|
+
m[`${w}--${r}`],
|
|
280
278
|
{
|
|
281
|
-
[
|
|
282
|
-
[
|
|
279
|
+
[m[`${w}--hyphens`]]: p,
|
|
280
|
+
[m[`${w}--negative`]]: a
|
|
283
281
|
}
|
|
284
282
|
]);
|
|
285
|
-
return /* @__PURE__ */
|
|
283
|
+
return /* @__PURE__ */ o(n, { className: _, ...t, children: e });
|
|
286
284
|
};
|
|
287
|
-
|
|
288
|
-
function
|
|
285
|
+
F.displayName = "Heading";
|
|
286
|
+
function dr(e) {
|
|
289
287
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
290
288
|
}
|
|
291
|
-
var
|
|
289
|
+
var M = { exports: {} };
|
|
292
290
|
/*!
|
|
293
291
|
Copyright (c) 2018 Jed Watson.
|
|
294
292
|
Licensed under the MIT License (MIT), see
|
|
295
293
|
http://jedwatson.github.io/classnames
|
|
296
294
|
*/
|
|
297
|
-
var
|
|
298
|
-
function
|
|
299
|
-
return
|
|
295
|
+
var E;
|
|
296
|
+
function fr() {
|
|
297
|
+
return E || (E = 1, function(e) {
|
|
300
298
|
(function() {
|
|
301
|
-
var
|
|
299
|
+
var i = {}.hasOwnProperty;
|
|
302
300
|
function p() {
|
|
303
301
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
304
302
|
var n = arguments[t];
|
|
305
|
-
n && (r =
|
|
303
|
+
n && (r = u(r, a.call(this, n)));
|
|
306
304
|
}
|
|
307
305
|
return r;
|
|
308
306
|
}
|
|
309
|
-
function
|
|
307
|
+
function a(r) {
|
|
310
308
|
if (typeof r == "string" || typeof r == "number")
|
|
311
309
|
return this && this[r] || r;
|
|
312
310
|
if (typeof r != "object")
|
|
@@ -317,18 +315,18 @@ function hr() {
|
|
|
317
315
|
return r.toString();
|
|
318
316
|
var t = "";
|
|
319
317
|
for (var n in r)
|
|
320
|
-
|
|
318
|
+
i.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
|
|
321
319
|
return t;
|
|
322
320
|
}
|
|
323
|
-
function
|
|
321
|
+
function u(r, t) {
|
|
324
322
|
return t ? r ? r + " " + t : r + t : r;
|
|
325
323
|
}
|
|
326
324
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
327
325
|
})();
|
|
328
|
-
}(
|
|
326
|
+
}(M)), M.exports;
|
|
329
327
|
}
|
|
330
|
-
var
|
|
331
|
-
const
|
|
328
|
+
var hr = fr();
|
|
329
|
+
const gr = /* @__PURE__ */ dr(hr), vr = {
|
|
332
330
|
"purpur-icon": "_purpur-icon_8u1lq_1",
|
|
333
331
|
"purpur-icon--xxs": "_purpur-icon--xxs_8u1lq_4",
|
|
334
332
|
"purpur-icon--xs": "_purpur-icon--xs_8u1lq_8",
|
|
@@ -336,107 +334,92 @@ const yr = /* @__PURE__ */ gr(vr), br = {
|
|
|
336
334
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
337
335
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
338
336
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
339
|
-
},
|
|
337
|
+
}, yr = gr.bind(vr), I = "purpur-icon", br = "md", mr = (e) => e.filter((i) => Object.keys(i).length >= 1).map((i) => `${i.name}="${i.value}"`).join(" "), wr = ({ content: e = "", title: i } = {}) => {
|
|
340
338
|
const p = [
|
|
341
339
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
342
340
|
{ name: "fill", value: "currentColor" },
|
|
343
341
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
344
|
-
|
|
345
|
-
],
|
|
346
|
-
return `<svg ${
|
|
347
|
-
},
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
...r
|
|
354
|
-
}) => {
|
|
355
|
-
const t = xr({
|
|
356
|
-
content: qr(u.svg),
|
|
357
|
-
title: p
|
|
358
|
-
}), n = mr(i, B, `${B}--${a}`);
|
|
359
|
-
return /* @__PURE__ */ s(
|
|
360
|
-
"span",
|
|
361
|
-
{
|
|
362
|
-
className: n,
|
|
363
|
-
"data-testid": e,
|
|
364
|
-
dangerouslySetInnerHTML: { __html: t },
|
|
365
|
-
...r
|
|
366
|
-
}
|
|
367
|
-
);
|
|
342
|
+
i ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
343
|
+
], a = i ? `<title>${i}</title>` : "";
|
|
344
|
+
return `<svg ${mr(p)}>${a}${e}</svg>`;
|
|
345
|
+
}, $r = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), S = ({ svg: e, allyTitle: i, className: p, size: a = br, ...u }) => {
|
|
346
|
+
const r = wr({
|
|
347
|
+
content: $r(e.svg),
|
|
348
|
+
title: i
|
|
349
|
+
}), t = yr(p, I, `${I}--${a}`);
|
|
350
|
+
return /* @__PURE__ */ o("span", { className: t, dangerouslySetInnerHTML: { __html: r }, ...u });
|
|
368
351
|
};
|
|
369
|
-
|
|
370
|
-
const
|
|
352
|
+
S.displayName = "Icon";
|
|
353
|
+
const xr = {
|
|
371
354
|
name: "alert-filled",
|
|
372
355
|
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>',
|
|
373
356
|
keywords: ["alert-filled"],
|
|
374
357
|
category: "status"
|
|
375
|
-
},
|
|
358
|
+
}, qr = {
|
|
376
359
|
name: "check-circle-filled",
|
|
377
360
|
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 10Zm4.712-12.491a.875.875 0 1 0-1.424-1.018l-4.4 6.16-2.27-2.27a.875.875 0 0 0-1.237 1.238l3 3a.875.875 0 0 0 1.331-.11l5-7Z" clip-rule="evenodd"/></svg>',
|
|
378
361
|
keywords: ["check-circle-filled"],
|
|
379
362
|
category: "status"
|
|
380
|
-
},
|
|
363
|
+
}, Sr = {
|
|
381
364
|
name: "close",
|
|
382
365
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
383
366
|
keywords: ["close"],
|
|
384
367
|
category: "utility"
|
|
385
|
-
},
|
|
368
|
+
}, Or = {
|
|
386
369
|
name: "error-filled",
|
|
387
370
|
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" fill="currentColor"><path fill-rule="evenodd" d="M14.268 3.5c-.77-1.333-2.694-1.333-3.464 0l-8.66 15c-.77 1.333.192 3 1.732 3h17.32c1.54 0 2.502-1.667 1.733-3l-8.66-15Zm-.694 5.067-.247 6.876h-1.566l-.247-6.876a1.03 1.03 0 1 1 2.06 0Zm.212 8.917c0 .649-.585 1.234-1.25 1.234-.648 0-1.25-.585-1.25-1.234 0-.633.602-1.234 1.25-1.234.665 0 1.25.601 1.25 1.234Z" clip-rule="evenodd"/></svg>',
|
|
388
371
|
keywords: ["error-filled"],
|
|
389
372
|
category: "status"
|
|
390
|
-
},
|
|
373
|
+
}, Nr = {
|
|
391
374
|
name: "info-filled",
|
|
392
375
|
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>',
|
|
393
376
|
keywords: ["info-filled"],
|
|
394
377
|
category: "status"
|
|
395
378
|
};
|
|
396
|
-
function
|
|
379
|
+
function Ar(e) {
|
|
397
380
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
398
381
|
}
|
|
399
|
-
var
|
|
382
|
+
var Z = { exports: {} };
|
|
400
383
|
/*!
|
|
401
384
|
Copyright (c) 2018 Jed Watson.
|
|
402
385
|
Licensed under the MIT License (MIT), see
|
|
403
386
|
http://jedwatson.github.io/classnames
|
|
404
387
|
*/
|
|
405
|
-
var
|
|
406
|
-
function
|
|
407
|
-
return
|
|
388
|
+
var B;
|
|
389
|
+
function jr() {
|
|
390
|
+
return B || (B = 1, function(e) {
|
|
408
391
|
(function() {
|
|
409
|
-
var
|
|
392
|
+
var i = {}.hasOwnProperty;
|
|
410
393
|
function p() {
|
|
411
394
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
412
395
|
var n = arguments[t];
|
|
413
|
-
n && (r =
|
|
396
|
+
n && (r = u(r, a.call(this, n)));
|
|
414
397
|
}
|
|
415
398
|
return r;
|
|
416
399
|
}
|
|
417
|
-
function
|
|
400
|
+
function a(r) {
|
|
418
401
|
if (typeof r == "string" || typeof r == "number")
|
|
419
|
-
return r;
|
|
402
|
+
return this && this[r] || r;
|
|
420
403
|
if (typeof r != "object")
|
|
421
404
|
return "";
|
|
422
405
|
if (Array.isArray(r))
|
|
423
|
-
return p.apply(
|
|
406
|
+
return p.apply(this, r);
|
|
424
407
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
425
408
|
return r.toString();
|
|
426
409
|
var t = "";
|
|
427
410
|
for (var n in r)
|
|
428
|
-
|
|
411
|
+
i.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
|
|
429
412
|
return t;
|
|
430
413
|
}
|
|
431
|
-
function
|
|
414
|
+
function u(r, t) {
|
|
432
415
|
return t ? r ? r + " " + t : r + t : r;
|
|
433
416
|
}
|
|
434
417
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
435
418
|
})();
|
|
436
|
-
}(
|
|
419
|
+
}(Z)), Z.exports;
|
|
437
420
|
}
|
|
438
|
-
var
|
|
439
|
-
const
|
|
421
|
+
var kr = jr();
|
|
422
|
+
const Rr = /* @__PURE__ */ Ar(kr), Pr = {
|
|
440
423
|
"purpur-paragraph": "_purpur-paragraph_1rh57_1",
|
|
441
424
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_1rh57_7",
|
|
442
425
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_1rh57_10",
|
|
@@ -451,75 +434,69 @@ const Cr = /* @__PURE__ */ kr(Pr), y = {
|
|
|
451
434
|
"purpur-paragraph--additional-100-medium": "_purpur-paragraph--additional-100-medium_1rh57_60",
|
|
452
435
|
"purpur-paragraph--overline-100": "_purpur-paragraph--overline-100_1rh57_67",
|
|
453
436
|
"purpur-paragraph--overline-200": "_purpur-paragraph--overline-200_1rh57_75"
|
|
454
|
-
}, Lr = {
|
|
437
|
+
}, Lr = Rr.bind(Pr), Cr = {
|
|
455
438
|
PARAGRAPH100: "paragraph-100"
|
|
456
|
-
},
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
disabled: i,
|
|
439
|
+
}, g = "purpur-paragraph", H = ({
|
|
440
|
+
children: e,
|
|
441
|
+
className: i,
|
|
442
|
+
disabled: p,
|
|
461
443
|
enableHyphenation: a = !1,
|
|
462
|
-
negative:
|
|
463
|
-
variant:
|
|
464
|
-
...
|
|
444
|
+
negative: u = !1,
|
|
445
|
+
variant: r = Cr.PARAGRAPH100,
|
|
446
|
+
...t
|
|
465
447
|
}) => {
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
[y[`${b}--disabled`]]: i,
|
|
473
|
-
[y[`${b}--negative`]]: r
|
|
474
|
-
}
|
|
475
|
-
]);
|
|
476
|
-
return /* @__PURE__ */ s("p", { ...n, className: c, "data-testid": e, children: u });
|
|
448
|
+
const n = Lr(i, g, `${g}--${r}`, {
|
|
449
|
+
[`${g}--hyphens`]: a,
|
|
450
|
+
[`${g}--disabled`]: p,
|
|
451
|
+
[`${g}--negative`]: u
|
|
452
|
+
});
|
|
453
|
+
return /* @__PURE__ */ o("p", { ...t, className: n, children: e });
|
|
477
454
|
};
|
|
478
|
-
|
|
455
|
+
H.displayName = "Paragraph";
|
|
479
456
|
function Mr(e) {
|
|
480
457
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
481
458
|
}
|
|
482
|
-
var
|
|
459
|
+
var q = { exports: {} };
|
|
483
460
|
/*!
|
|
484
461
|
Copyright (c) 2018 Jed Watson.
|
|
485
462
|
Licensed under the MIT License (MIT), see
|
|
486
463
|
http://jedwatson.github.io/classnames
|
|
487
464
|
*/
|
|
488
|
-
var
|
|
465
|
+
var T;
|
|
489
466
|
function Er() {
|
|
490
|
-
return
|
|
467
|
+
return T || (T = 1, function(e) {
|
|
491
468
|
(function() {
|
|
492
|
-
var
|
|
469
|
+
var i = {}.hasOwnProperty;
|
|
493
470
|
function p() {
|
|
494
471
|
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
495
472
|
var n = arguments[t];
|
|
496
|
-
n && (r =
|
|
473
|
+
n && (r = u(r, a.call(this, n)));
|
|
497
474
|
}
|
|
498
475
|
return r;
|
|
499
476
|
}
|
|
500
|
-
function
|
|
477
|
+
function a(r) {
|
|
501
478
|
if (typeof r == "string" || typeof r == "number")
|
|
502
|
-
return r;
|
|
479
|
+
return this && this[r] || r;
|
|
503
480
|
if (typeof r != "object")
|
|
504
481
|
return "";
|
|
505
482
|
if (Array.isArray(r))
|
|
506
|
-
return p.apply(
|
|
483
|
+
return p.apply(this, r);
|
|
507
484
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
508
485
|
return r.toString();
|
|
509
486
|
var t = "";
|
|
510
487
|
for (var n in r)
|
|
511
|
-
|
|
488
|
+
i.call(r, n) && r[n] && (t = u(t, this && this[n] || n));
|
|
512
489
|
return t;
|
|
513
490
|
}
|
|
514
|
-
function
|
|
491
|
+
function u(r, t) {
|
|
515
492
|
return t ? r ? r + " " + t : r + t : r;
|
|
516
493
|
}
|
|
517
494
|
e.exports ? (p.default = p, e.exports = p) : window.classNames = p;
|
|
518
495
|
})();
|
|
519
|
-
}(
|
|
496
|
+
}(q)), q.exports;
|
|
520
497
|
}
|
|
521
498
|
var Ir = Er();
|
|
522
|
-
const Zr = /* @__PURE__ */ Mr(Ir),
|
|
499
|
+
const Zr = /* @__PURE__ */ Mr(Ir), Br = {
|
|
523
500
|
"purpur-notification": "_purpur-notification_10qwf_1",
|
|
524
501
|
"purpur-notification__top": "_purpur-notification__top_10qwf_14",
|
|
525
502
|
"purpur-notification__header": "_purpur-notification__header_10qwf_20",
|
|
@@ -533,123 +510,123 @@ const Zr = /* @__PURE__ */ Mr(Ir), l = {
|
|
|
533
510
|
"purpur-notification--info": "_purpur-notification--info_10qwf_63",
|
|
534
511
|
"purpur-notification--hidden": "_purpur-notification--hidden_10qwf_72",
|
|
535
512
|
"purpur-notification--has-close-button": "_purpur-notification--has-close-button_10qwf_76"
|
|
536
|
-
},
|
|
513
|
+
}, d = Zr.bind(Br), y = {
|
|
537
514
|
SUCCESS: "success",
|
|
538
515
|
WARNING: "warning",
|
|
539
516
|
ERROR: "error",
|
|
540
517
|
INFO: "info"
|
|
541
|
-
}, Dr = Object.values(
|
|
518
|
+
}, Dr = Object.values(y), Tr = {
|
|
542
519
|
POLITE: "polite",
|
|
543
520
|
ASSERTIVE: "assertive"
|
|
544
|
-
}, Ur = Object.values(
|
|
521
|
+
}, Ur = Object.values(Tr), zr = {
|
|
545
522
|
ALERT: "alert",
|
|
546
523
|
DIALOG: "dialog",
|
|
547
524
|
ALERTDIALOG: "alertdialog"
|
|
548
|
-
}, Wr = Object.values(
|
|
525
|
+
}, Wr = Object.values(zr), l = "purpur-notification", Gr = (e) => {
|
|
549
526
|
switch (e) {
|
|
550
|
-
case
|
|
551
|
-
return jr;
|
|
552
|
-
case w.SUCCESS:
|
|
527
|
+
case y.INFO:
|
|
553
528
|
return Nr;
|
|
554
|
-
case
|
|
555
|
-
return
|
|
556
|
-
case
|
|
557
|
-
return
|
|
529
|
+
case y.SUCCESS:
|
|
530
|
+
return qr;
|
|
531
|
+
case y.WARNING:
|
|
532
|
+
return xr;
|
|
533
|
+
case y.ERROR:
|
|
534
|
+
return Or;
|
|
558
535
|
}
|
|
559
|
-
},
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
"div",
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
536
|
+
}, Fr = z(
|
|
537
|
+
({
|
|
538
|
+
["data-testid"]: e,
|
|
539
|
+
["aria-live"]: i,
|
|
540
|
+
children: p,
|
|
541
|
+
className: a,
|
|
542
|
+
closeButtonAriaLabel: u,
|
|
543
|
+
headingTag: r = "h4",
|
|
544
|
+
status: t = "info",
|
|
545
|
+
heading: n,
|
|
546
|
+
hidden: _,
|
|
547
|
+
id: s,
|
|
548
|
+
onClose: f,
|
|
549
|
+
open: b = !0,
|
|
550
|
+
...$
|
|
551
|
+
}, x) => /* @__PURE__ */ o("div", { "aria-live": i, children: b && /* @__PURE__ */ v(
|
|
552
|
+
"div",
|
|
553
|
+
{
|
|
554
|
+
id: s,
|
|
555
|
+
"aria-labelledby": s ? `${s}-heading` : void 0,
|
|
556
|
+
"aria-describedby": s ? `${s}-body` : void 0,
|
|
557
|
+
"aria-hidden": !!_,
|
|
558
|
+
className: d(a, l, `${l}--${t}`, {
|
|
559
|
+
[`${l}--hidden`]: _,
|
|
560
|
+
[`${l}--has-close-button`]: !!f
|
|
561
|
+
}),
|
|
562
|
+
"data-testid": e,
|
|
563
|
+
ref: x,
|
|
564
|
+
...$,
|
|
565
|
+
children: [
|
|
566
|
+
/* @__PURE__ */ v("div", { className: d(`${l}__top`), children: [
|
|
567
|
+
/* @__PURE__ */ v("div", { className: d(`${l}__header`), children: [
|
|
568
|
+
/* @__PURE__ */ o(
|
|
569
|
+
S,
|
|
570
|
+
{
|
|
571
|
+
"data-testid": e ? `${e}-icon` : void 0,
|
|
572
|
+
className: d(`${l}__icon`),
|
|
573
|
+
svg: Gr(t),
|
|
574
|
+
size: "md"
|
|
575
|
+
}
|
|
576
|
+
),
|
|
577
|
+
!!n && /* @__PURE__ */ o(
|
|
578
|
+
F,
|
|
579
|
+
{
|
|
580
|
+
"data-testid": e ? `${e}-heading` : void 0,
|
|
581
|
+
variant: "subsection-100",
|
|
582
|
+
tag: r,
|
|
583
|
+
className: d(`${l}__heading`),
|
|
584
|
+
children: /* @__PURE__ */ v("span", { id: s ? `${s}-heading` : void 0, children: [
|
|
585
|
+
" ",
|
|
586
|
+
n
|
|
587
|
+
] })
|
|
588
|
+
}
|
|
589
|
+
)
|
|
590
|
+
] }),
|
|
591
|
+
f && /* @__PURE__ */ o(
|
|
592
|
+
G,
|
|
603
593
|
{
|
|
604
|
-
"data-testid": e ? `${e}-
|
|
605
|
-
variant: "
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
594
|
+
"data-testid": e ? `${e}-close-button` : void 0,
|
|
595
|
+
variant: "tertiary-purple",
|
|
596
|
+
size: "sm",
|
|
597
|
+
iconOnly: !0,
|
|
598
|
+
"aria-label": u,
|
|
599
|
+
onClick: f,
|
|
600
|
+
className: d(`${l}__close-button`),
|
|
601
|
+
children: /* @__PURE__ */ o(S, { svg: Sr, size: "sm" })
|
|
612
602
|
}
|
|
613
603
|
)
|
|
614
604
|
] }),
|
|
615
|
-
|
|
616
|
-
|
|
605
|
+
p && /* @__PURE__ */ o(
|
|
606
|
+
"div",
|
|
617
607
|
{
|
|
618
|
-
"data-testid": e ? `${e}-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
608
|
+
"data-testid": e ? `${e}-body` : void 0,
|
|
609
|
+
className: d(`${l}__body`),
|
|
610
|
+
id: s ? `${s}-body` : void 0,
|
|
611
|
+
children: typeof p == "string" ? /* @__PURE__ */ o(
|
|
612
|
+
H,
|
|
613
|
+
{
|
|
614
|
+
"data-testid": e ? `${e}-paragraph` : void 0,
|
|
615
|
+
variant: "paragraph-100",
|
|
616
|
+
children: p
|
|
617
|
+
}
|
|
618
|
+
) : p
|
|
626
619
|
}
|
|
627
620
|
)
|
|
628
|
-
]
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
"data-testid": e ? `${e}-body` : void 0,
|
|
633
|
-
className: l[`${_}__body`],
|
|
634
|
-
id: o ? `${o}-body` : void 0,
|
|
635
|
-
children: typeof p == "string" ? /* @__PURE__ */ s(
|
|
636
|
-
D,
|
|
637
|
-
{
|
|
638
|
-
"data-testid": e ? `${e}-paragraph` : void 0,
|
|
639
|
-
variant: "paragraph-100",
|
|
640
|
-
children: p
|
|
641
|
-
}
|
|
642
|
-
) : p
|
|
643
|
-
}
|
|
644
|
-
)
|
|
645
|
-
]
|
|
646
|
-
}
|
|
647
|
-
), Fr = F(Gr);
|
|
621
|
+
]
|
|
622
|
+
}
|
|
623
|
+
) })
|
|
624
|
+
);
|
|
648
625
|
Fr.displayName = "Notification";
|
|
649
626
|
export {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
627
|
+
Tr as NOTIFICATION_ARIA_LIVE,
|
|
628
|
+
zr as NOTIFICATION_ROLE,
|
|
629
|
+
y as NOTIFICATION_STATUS,
|
|
653
630
|
Fr as Notification,
|
|
654
631
|
Ur as notificationAriaLiveValues,
|
|
655
632
|
Wr as notificationRoles,
|