@me1a/ui 1.2.6 → 1.2.8
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.
|
@@ -12639,51 +12639,6 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes
|
|
|
12639
12639
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
12640
12640
|
} : void 0;
|
|
12641
12641
|
|
|
12642
|
-
// ----------------------------------------------------------------------
|
|
12643
|
-
const StyledNotistack = styled(MaterialDesignContent$1)(({
|
|
12644
|
-
theme
|
|
12645
|
-
}) => {
|
|
12646
|
-
const isLight = theme.palette.mode === 'light';
|
|
12647
|
-
return {
|
|
12648
|
-
'& #notistack-snackbar': {
|
|
12649
|
-
...theme.typography.subtitle2,
|
|
12650
|
-
padding: 0,
|
|
12651
|
-
flexGrow: 1
|
|
12652
|
-
},
|
|
12653
|
-
'&.notistack-MuiContent': {
|
|
12654
|
-
padding: theme.spacing(0.5),
|
|
12655
|
-
paddingRight: theme.spacing(2),
|
|
12656
|
-
color: theme.palette.text.primary,
|
|
12657
|
-
boxShadow: theme.customShadows.z8,
|
|
12658
|
-
borderRadius: theme.shape.borderRadius,
|
|
12659
|
-
backgroundColor: theme.palette.background.paper
|
|
12660
|
-
},
|
|
12661
|
-
'&.notistack-MuiContent-default': {
|
|
12662
|
-
padding: theme.spacing(1),
|
|
12663
|
-
color: isLight ? theme.palette.common.white : theme.palette.grey[800],
|
|
12664
|
-
backgroundColor: isLight ? theme.palette.grey[800] : theme.palette.common.white
|
|
12665
|
-
}
|
|
12666
|
-
// '&.notistack-MuiContent-info': {},
|
|
12667
|
-
// '&.notistack-MuiContent-success': {},
|
|
12668
|
-
// '&.notistack-MuiContent-warning': {},
|
|
12669
|
-
// '&.notistack-MuiContent-error': {},
|
|
12670
|
-
};
|
|
12671
|
-
});
|
|
12672
|
-
const StyledIcon = styled('span')(({
|
|
12673
|
-
color,
|
|
12674
|
-
theme
|
|
12675
|
-
}) => ({
|
|
12676
|
-
width: 44,
|
|
12677
|
-
height: 44,
|
|
12678
|
-
display: 'flex',
|
|
12679
|
-
alignItems: 'center',
|
|
12680
|
-
justifyContent: 'center',
|
|
12681
|
-
marginRight: theme.spacing(1.5),
|
|
12682
|
-
color: theme.palette[color].main,
|
|
12683
|
-
borderRadius: theme.shape.borderRadius,
|
|
12684
|
-
backgroundColor: alpha(theme.palette[color].main, 0.16)
|
|
12685
|
-
}));
|
|
12686
|
-
|
|
12687
12642
|
function SnackbarProvider({
|
|
12688
12643
|
children
|
|
12689
12644
|
}) {
|
|
@@ -12699,43 +12654,6 @@ function SnackbarProvider({
|
|
|
12699
12654
|
vertical: "top",
|
|
12700
12655
|
horizontal: "right"
|
|
12701
12656
|
},
|
|
12702
|
-
iconVariant: {
|
|
12703
|
-
info: jsxRuntimeExports.jsx(StyledIcon, {
|
|
12704
|
-
color: "info",
|
|
12705
|
-
children: jsxRuntimeExports.jsx(Iconify, {
|
|
12706
|
-
icon: "eva:info-fill",
|
|
12707
|
-
width: 24
|
|
12708
|
-
})
|
|
12709
|
-
}),
|
|
12710
|
-
success: jsxRuntimeExports.jsx(StyledIcon, {
|
|
12711
|
-
color: "success",
|
|
12712
|
-
children: jsxRuntimeExports.jsx(Iconify, {
|
|
12713
|
-
icon: "eva:checkmark-circle-2-fill",
|
|
12714
|
-
width: 24
|
|
12715
|
-
})
|
|
12716
|
-
}),
|
|
12717
|
-
warning: jsxRuntimeExports.jsx(StyledIcon, {
|
|
12718
|
-
color: "warning",
|
|
12719
|
-
children: jsxRuntimeExports.jsx(Iconify, {
|
|
12720
|
-
icon: "eva:alert-triangle-fill",
|
|
12721
|
-
width: 24
|
|
12722
|
-
})
|
|
12723
|
-
}),
|
|
12724
|
-
error: jsxRuntimeExports.jsx(StyledIcon, {
|
|
12725
|
-
color: "error",
|
|
12726
|
-
children: jsxRuntimeExports.jsx(Iconify, {
|
|
12727
|
-
icon: "solar:danger-bold",
|
|
12728
|
-
width: 24
|
|
12729
|
-
})
|
|
12730
|
-
})
|
|
12731
|
-
},
|
|
12732
|
-
Components: {
|
|
12733
|
-
default: StyledNotistack,
|
|
12734
|
-
info: StyledNotistack,
|
|
12735
|
-
success: StyledNotistack,
|
|
12736
|
-
warning: StyledNotistack,
|
|
12737
|
-
error: StyledNotistack
|
|
12738
|
-
},
|
|
12739
12657
|
// with close as default
|
|
12740
12658
|
action: snackbarId => jsxRuntimeExports.jsx(IconButton, {
|
|
12741
12659
|
size: "small",
|