@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.
Files changed (2) hide show
  1. package/index.js +7 -4
  2. 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: 9999,
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
- }, openToast && /*#__PURE__*/React__default.createElement(Stack$1, {
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.4-rc.2",
3
+ "version": "1.0.4-rc.4",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",