Skip to content

Commit

Permalink
feat: toast
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-kallavus committed Nov 30, 2020
1 parent 9246660 commit cccd804
Show file tree
Hide file tree
Showing 19 changed files with 296 additions and 392 deletions.
104 changes: 0 additions & 104 deletions packages/notifications/src/banner/Banner.tsx

This file was deleted.

73 changes: 0 additions & 73 deletions packages/notifications/src/banner/README.mdx

This file was deleted.

22 changes: 16 additions & 6 deletions packages/notifications/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@
* @file Automatically generated by barrelsby.
*/

export { default as Banner } from './banner/Banner';
export * from './banner/Banner';
export { default as Snackbar } from './snackbar/Snackbar';
export * from './snackbar/Snackbar';
export { default as useSnackbar } from './useSnackbar/useSnackbar';
export * from './useSnackbar/useSnackbar';
export { default as Toast } from './toast/Toast';
export * from './toast/Toast';
export { default as ToastAction } from './toast/ToastAction';
export * from './toast/ToastAction';
export { default as ToastCloseButton } from './toast/ToastCloseButton';
export * from './toast/ToastCloseButton';
export { default as ToastContainer } from './toast/ToastContainer';
export * from './toast/ToastContainer';
export { default as ToastIcon } from './toast/ToastIcon';
export * from './toast/ToastIcon';
export { default as ToastMessage } from './toast/ToastMessage';
export * from './toast/ToastMessage';
export { default as useInterval } from './useToast/useInterval';
export * from './useToast/useInterval';
export { default as useToast } from './useToast/useToast';
export * from './useToast/useToast';
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type IconProps = {
circleColor?: ColorProps;
color?: ColorProps;
};
const IconCloseSmall = styled(Svg)<IconProps>(
const IconToastClose = styled(Svg)<IconProps>(
({ backgroundColor, circleColor, color, theme }) => [
{
verticalAlign: 'middle',
Expand All @@ -48,4 +48,4 @@ const IconCloseSmall = styled(Svg)<IconProps>(
},
]
);
export default IconCloseSmall;
export default IconToastClose;
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type IconProps = {
circleColor?: ColorProps;
color?: ColorProps;
};
const IconError = styled(Svg)<IconProps>(
const IconToastError = styled(Svg)<IconProps>(
({ backgroundColor, circleColor, color, theme }) => [
{
verticalAlign: 'middle',
Expand All @@ -43,4 +43,4 @@ const IconError = styled(Svg)<IconProps>(
},
]
);
export default IconError;
export default IconToastError;
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type IconProps = {
circleColor?: ColorProps;
color?: ColorProps;
};
const IconBannerInfo = styled(Svg)<IconProps>(
const IconToastInfo = styled(Svg)<IconProps>(
({ backgroundColor, circleColor, color, theme }) => [
{
verticalAlign: 'middle',
Expand All @@ -46,4 +46,4 @@ const IconBannerInfo = styled(Svg)<IconProps>(
},
]
);
export default IconBannerInfo;
export default IconToastInfo;
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type IconProps = {
circleColor?: ColorProps;
color?: ColorProps;
};
const IconSnackbarSuccess = styled(Svg)<IconProps>(
const IconToastSuccess = styled(Svg)<IconProps>(
({ backgroundColor, circleColor, color, theme }) => [
{
verticalAlign: 'middle',
Expand All @@ -54,4 +54,4 @@ const IconSnackbarSuccess = styled(Svg)<IconProps>(
},
]
);
export default IconSnackbarSuccess;
export default IconToastSuccess;
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type IconProps = {
circleColor?: ColorProps;
color?: ColorProps;
};
const IconWarning = styled(Svg)<IconProps>(
const IconToastWarning = styled(Svg)<IconProps>(
({ backgroundColor, circleColor, color, theme }) => [
{
verticalAlign: 'middle',
Expand All @@ -47,4 +47,4 @@ const IconWarning = styled(Svg)<IconProps>(
},
]
);
export default IconWarning;
export default IconToastWarning;

0 comments on commit cccd804

Please sign in to comment.