@sinco/react 1.0.4-rc.2 → 1.0.4-rc.4
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/index.js +7 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -12894,7 +12894,7 @@ const ToastContent = styled$1(Stack$1)(({
|
|
|
12894
12894
|
theme
|
|
12895
12895
|
}) => ({
|
|
12896
12896
|
marginBottom: theme.spacing(2),
|
|
12897
|
-
zIndex:
|
|
12897
|
+
zIndex: 1400,
|
|
12898
12898
|
boxShadow: '0px 5px 5px -3px rgba(24, 39, 75, 0.2), 0px 8px 10px 1px rgba(24, 39, 75, 0.14), 0px 3px 14px 2px rgba(24, 39, 75, 0.12)',
|
|
12899
12899
|
'&.flex-end': {
|
|
12900
12900
|
marginTop: 16,
|
|
@@ -13008,10 +13008,13 @@ const ToastNotification = toast => {
|
|
|
13008
13008
|
clearInterval(interval || toast.time);
|
|
13009
13009
|
};
|
|
13010
13010
|
}, [timeProgress, toast.time]);
|
|
13011
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
13011
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, openToast && /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
13012
13012
|
theme: SincoTheme
|
|
13013
|
-
},
|
|
13014
|
-
alignItems: position || 'right'
|
|
13013
|
+
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
13014
|
+
alignItems: position || 'right',
|
|
13015
|
+
zIndex: 1400,
|
|
13016
|
+
position: 'fixed',
|
|
13017
|
+
width: '100%'
|
|
13015
13018
|
}, /*#__PURE__*/React__default.createElement(ToastContent, {
|
|
13016
13019
|
width: 370,
|
|
13017
13020
|
role: "toast",
|