@registrucentras/rc-ses-react-components 2.0.0-rc.4 → 2.0.0-rc.5
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/dist/assets/icons/WarningCircleIcon.d.ts +1 -1
- package/dist/components/common/Alert/index.d.ts +8 -2
- package/dist/registrucentras-rc-ses-react-components.cjs +1 -1
- package/dist/registrucentras-rc-ses-react-components.js +1549 -1447
- package/dist/stories/components/feedback/Alert.stories.d.ts +4 -0
- package/package.json +1 -1
- package/src/assets/icons/WarningCircleIcon.tsx +8 -2
- package/src/components/common/Alert/index.test.tsx +157 -2
- package/src/components/common/Alert/index.tsx +144 -10
- package/src/stories/components/feedback/Alert.stories.tsx +135 -4
- package/src/theme/light/MuiAlert.tsx +28 -20
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as IconProps } from '../IconProps';
|
|
2
|
-
declare function WarningCircleIcon({ className, size, fillColor, ...rest }: IconProps): import("react").JSX.Element;
|
|
2
|
+
declare function WarningCircleIcon({ className, size, fillColor, weight, ...rest }: IconProps): import("react").JSX.Element;
|
|
3
3
|
export default WarningCircleIcon;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ContainerProps, AlertProps as MuiAlertProps } from '@mui/material';
|
|
2
|
-
type Props = MuiAlertProps & {
|
|
2
|
+
type Props = Omit<MuiAlertProps, 'onClose'> & {
|
|
3
3
|
container?: boolean | ContainerProps;
|
|
4
|
+
showIcon?: boolean;
|
|
5
|
+
showAction?: boolean;
|
|
6
|
+
showClose?: boolean;
|
|
7
|
+
actionLabel?: string;
|
|
8
|
+
onActionClick?: () => void;
|
|
9
|
+
onClose?: () => void;
|
|
4
10
|
};
|
|
5
|
-
declare function RcSesAlert({ container, children, sx, ...props }: Props): import("react").JSX.Element;
|
|
11
|
+
declare function RcSesAlert({ container, children, icon, showIcon, showAction, showClose, actionLabel, onActionClick, onClose, action, severity, role, 'aria-live': ariaLive, sx, ...props }: Props): import("react").JSX.Element;
|
|
6
12
|
export default RcSesAlert;
|