@purpurds/notification 3.3.2 → 3.5.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 +4 -4
- package/dist/notification.cjs.js.map +1 -1
- package/dist/notification.es.js +14 -14
- package/dist/notification.es.js.map +1 -1
- package/dist/notification.system.js +4 -4
- package/dist/notification.system.js.map +1 -1
- package/package.json +7 -7
package/dist/notification.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as v, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as I } from "react";
|
|
3
3
|
const j = {
|
|
4
4
|
SM: "sm",
|
|
5
5
|
MD: "md",
|
|
@@ -45,7 +45,7 @@ var M = { exports: {} };
|
|
|
45
45
|
})();
|
|
46
46
|
})(M);
|
|
47
47
|
var k = M.exports;
|
|
48
|
-
const E = /* @__PURE__ */ V(k), H = "_rotate_7s2g1_1", F = "_dash_7s2g1_1",
|
|
48
|
+
const E = /* @__PURE__ */ V(k), H = "_rotate_7s2g1_1", F = "_dash_7s2g1_1", m = {
|
|
49
49
|
"purpur-spinner": "_purpur-spinner_7s2g1_1",
|
|
50
50
|
rotate: H,
|
|
51
51
|
"purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",
|
|
@@ -58,7 +58,7 @@ const E = /* @__PURE__ */ V(k), H = "_rotate_7s2g1_1", F = "_dash_7s2g1_1", b =
|
|
|
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
|
+
}, b = "purpur-spinner", z = {
|
|
62
62
|
PRIMARY: "primary",
|
|
63
63
|
DISABLED: "disabled",
|
|
64
64
|
NEGATIVE: "negative",
|
|
@@ -77,15 +77,15 @@ const E = /* @__PURE__ */ V(k), H = "_rotate_7s2g1_1", F = "_dash_7s2g1_1", b =
|
|
|
77
77
|
}) => /* @__PURE__ */ o(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
|
-
className: E([b
|
|
80
|
+
className: E([m[b], m[`${b}--${u}`]]),
|
|
81
81
|
"data-testid": e,
|
|
82
82
|
...i,
|
|
83
83
|
children: /* @__PURE__ */ o("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ o(
|
|
84
84
|
"circle",
|
|
85
85
|
{
|
|
86
86
|
className: E(
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
m[`${b}__circle`],
|
|
88
|
+
m[`${b}__circle--${a}`]
|
|
89
89
|
),
|
|
90
90
|
cx: "25",
|
|
91
91
|
cy: "25",
|
|
@@ -204,7 +204,7 @@ const J = /* @__PURE__ */ Y(X), f = {
|
|
|
204
204
|
]
|
|
205
205
|
}
|
|
206
206
|
);
|
|
207
|
-
}, T =
|
|
207
|
+
}, T = I(K);
|
|
208
208
|
T.displayName = "Button";
|
|
209
209
|
function Q(e) {
|
|
210
210
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -370,7 +370,7 @@ const ir = /* @__PURE__ */ ar(ur), pr = {
|
|
|
370
370
|
u ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
371
371
|
], i = u ? `<title>${u}</title>` : "";
|
|
372
372
|
return `<svg ${gr(a)}>${i}${e}</svg>`;
|
|
373
|
-
}, vr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(),
|
|
373
|
+
}, vr = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), R = ({
|
|
374
374
|
["data-testid"]: e,
|
|
375
375
|
svg: u,
|
|
376
376
|
allyTitle: a,
|
|
@@ -432,8 +432,8 @@ var C = { exports: {} };
|
|
|
432
432
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
433
433
|
})();
|
|
434
434
|
})(C);
|
|
435
|
-
var
|
|
436
|
-
const
|
|
435
|
+
var mr = C.exports;
|
|
436
|
+
const br = /* @__PURE__ */ yr(mr), w = {
|
|
437
437
|
"purpur-paragraph": "_purpur-paragraph_hwaj6_1",
|
|
438
438
|
"purpur-paragraph--disabled": "_purpur-paragraph--disabled_hwaj6_7",
|
|
439
439
|
"purpur-paragraph--hyphens": "_purpur-paragraph--hyphens_hwaj6_10",
|
|
@@ -467,7 +467,7 @@ const mr = /* @__PURE__ */ yr(br), w = {
|
|
|
467
467
|
variant: r = wr.PARAGRAPH100,
|
|
468
468
|
...t
|
|
469
469
|
}) => {
|
|
470
|
-
const n =
|
|
470
|
+
const n = br([
|
|
471
471
|
a,
|
|
472
472
|
w[x],
|
|
473
473
|
w[`${x}--${r}`],
|
|
@@ -589,7 +589,7 @@ const Ar = /* @__PURE__ */ $r(Sr), l = {
|
|
|
589
589
|
/* @__PURE__ */ v("div", { className: l[`${c}__top`], children: [
|
|
590
590
|
/* @__PURE__ */ v("div", { className: l[`${c}__header`], children: [
|
|
591
591
|
/* @__PURE__ */ o(
|
|
592
|
-
|
|
592
|
+
R,
|
|
593
593
|
{
|
|
594
594
|
"data-testid": e ? `${e}-icon` : void 0,
|
|
595
595
|
className: l[`${c}__icon`],
|
|
@@ -621,7 +621,7 @@ const Ar = /* @__PURE__ */ $r(Sr), l = {
|
|
|
621
621
|
"aria-label": p,
|
|
622
622
|
onClick: h,
|
|
623
623
|
className: l[`${c}__close-button`],
|
|
624
|
-
children: /* @__PURE__ */ o(
|
|
624
|
+
children: /* @__PURE__ */ o(R, { svg: lr, size: "sm" })
|
|
625
625
|
}
|
|
626
626
|
)
|
|
627
627
|
] }),
|
|
@@ -643,7 +643,7 @@ const Ar = /* @__PURE__ */ $r(Sr), l = {
|
|
|
643
643
|
)
|
|
644
644
|
]
|
|
645
645
|
}
|
|
646
|
-
), Lr =
|
|
646
|
+
), Lr = I(Er);
|
|
647
647
|
Lr.displayName = "Notification";
|
|
648
648
|
export {
|
|
649
649
|
Or as NOTIFICATION_ARIA_LIVE,
|