@clearstory/drywall-react 3.7.1 → 3.7.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { n as
|
|
2
|
+
import { n as i, h as x } from "../../index-SzwnPTHF.js";
|
|
3
3
|
import { useContext as h, useCallback as b } from "react";
|
|
4
4
|
import "../../icons/ClearstoryIcon.js";
|
|
5
5
|
import "../../icons/InternalOnlyIcon.js";
|
|
@@ -20,8 +20,8 @@ const Y = () => {
|
|
|
20
20
|
const { closeAriaLabel: n } = t;
|
|
21
21
|
return {
|
|
22
22
|
notify: b(
|
|
23
|
-
(
|
|
24
|
-
const { type: r = "info", details:
|
|
23
|
+
(c, l = {}) => {
|
|
24
|
+
const { type: r = "info", details: e, ...d } = l, s = {
|
|
25
25
|
success: "success",
|
|
26
26
|
warning: "warning",
|
|
27
27
|
error: "error",
|
|
@@ -32,13 +32,12 @@ const Y = () => {
|
|
|
32
32
|
error: /* @__PURE__ */ o(I, { sx: { marginRight: 0.5 } }),
|
|
33
33
|
info: /* @__PURE__ */ o(w, { sx: { marginRight: 0.5 } })
|
|
34
34
|
};
|
|
35
|
-
return
|
|
35
|
+
return i(
|
|
36
36
|
(a) => {
|
|
37
|
-
const u = x(
|
|
37
|
+
const u = x(c, a);
|
|
38
38
|
return /* @__PURE__ */ p(
|
|
39
39
|
k,
|
|
40
40
|
{
|
|
41
|
-
role: "alert",
|
|
42
41
|
sx: {
|
|
43
42
|
minWidth: { xs: "auto", sm: "18rem" },
|
|
44
43
|
maxWidth: "18rem"
|
|
@@ -56,7 +55,7 @@ const Y = () => {
|
|
|
56
55
|
{
|
|
57
56
|
color: "inherit",
|
|
58
57
|
size: "small",
|
|
59
|
-
onClick: () =>
|
|
58
|
+
onClick: () => i.dismiss(a.id),
|
|
60
59
|
"aria-label": n,
|
|
61
60
|
sx: {
|
|
62
61
|
marginLeft: 0.5
|
|
@@ -70,7 +69,7 @@ const Y = () => {
|
|
|
70
69
|
fontSize: "0.875rem",
|
|
71
70
|
zIndex: 2
|
|
72
71
|
},
|
|
73
|
-
!!
|
|
72
|
+
!!e && {
|
|
74
73
|
borderBottomLeftRadius: 0,
|
|
75
74
|
borderBottomRightRadius: 0
|
|
76
75
|
}
|
|
@@ -78,7 +77,7 @@ const Y = () => {
|
|
|
78
77
|
children: u
|
|
79
78
|
}
|
|
80
79
|
),
|
|
81
|
-
|
|
80
|
+
e && /* @__PURE__ */ o(
|
|
82
81
|
m,
|
|
83
82
|
{
|
|
84
83
|
role: "none",
|
|
@@ -98,7 +97,7 @@ const Y = () => {
|
|
|
98
97
|
overflowY: "auto",
|
|
99
98
|
zIndex: 1
|
|
100
99
|
}),
|
|
101
|
-
children:
|
|
100
|
+
children: e
|
|
102
101
|
}
|
|
103
102
|
)
|
|
104
103
|
]
|
|
@@ -121,8 +120,8 @@ const Y = () => {
|
|
|
121
120
|
},
|
|
122
121
|
[n]
|
|
123
122
|
),
|
|
124
|
-
dismissNotification:
|
|
125
|
-
removeNotifications:
|
|
123
|
+
dismissNotification: i.dismiss,
|
|
124
|
+
removeNotifications: i.remove
|
|
126
125
|
};
|
|
127
126
|
};
|
|
128
127
|
export {
|