@pantheon-systems/pds-toolkit-react 1.11.0 → 1.11.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.
|
@@ -6,9 +6,9 @@ import './toaster.css';
|
|
|
6
6
|
*/
|
|
7
7
|
interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
8
|
/**
|
|
9
|
-
* Duration in milliseconds before the toast will auto-close.
|
|
9
|
+
* Duration in milliseconds before the toast will auto-close. Set to `false` to disable auto-close (default).
|
|
10
10
|
*/
|
|
11
|
-
autoCloseDuration?: number;
|
|
11
|
+
autoCloseDuration?: number | false;
|
|
12
12
|
/**
|
|
13
13
|
* Additional class names
|
|
14
14
|
*/
|
package/_dist/index.js
CHANGED
|
@@ -10653,7 +10653,7 @@ const x1 = 0.125, S1 = 0.25, V1 = 0.328, I1 = 0.41, Lt = 0.512, A1 = 0.64, Ht =
|
|
|
10653
10653
|
/* @__PURE__ */ e.createElement("div", { className: `${a}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n), s)
|
|
10654
10654
|
);
|
|
10655
10655
|
}, Wn = ({
|
|
10656
|
-
autoCloseDuration: s =
|
|
10656
|
+
autoCloseDuration: s = !1,
|
|
10657
10657
|
className: c,
|
|
10658
10658
|
limit: t = 5,
|
|
10659
10659
|
position: l = "bottom-right"
|
|
@@ -10683,14 +10683,9 @@ const qn = () => {
|
|
|
10683
10683
|
};
|
|
10684
10684
|
return t === "critical" && (i = {
|
|
10685
10685
|
...i,
|
|
10686
|
-
autoClose: !1,
|
|
10687
10686
|
role: "alert"
|
|
10688
|
-
}), t === "warning" && (i = {
|
|
10689
|
-
...i,
|
|
10690
|
-
autoClose: !1
|
|
10691
10687
|
}), t === "working" && (i = {
|
|
10692
10688
|
...i,
|
|
10693
|
-
autoClose: !1,
|
|
10694
10689
|
closeButton: !1,
|
|
10695
10690
|
closeOnClick: !1
|
|
10696
10691
|
}), m2(a, i);
|