Skip to content

Commit

Permalink
feat: add export el-class-name
Browse files Browse the repository at this point in the history
  • Loading branch information
imagine10255 committed Sep 2, 2023
1 parent 269f1af commit eabee71
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 25 deletions.
23 changes: 0 additions & 23 deletions src/Toaster/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,4 @@ const Message = ({
};

export default Message;
//
// const Content = styled.div`
//
// `;


// const StatusIcon = styled.div`
// margin-right: 5px;
// `;
//
// const MessageRoot = styled.button`
// display: inline-flex;
// flex-direction: row;
// align-items: center;
// justify-content: center;
//
// background: #55a532;
// padding: 10px;
// color: #fff;
// border-radius: 5px;
// width: auto;
// margin: 0 auto;
//
// `;
1 change: 0 additions & 1 deletion src/Toaster/Toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ interface IProps {


const Toaster = ({
isVisible = false,
onEntered = () => {},
status,
message,
Expand Down
1 change: 0 additions & 1 deletion src/Toaster/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export {default} from './Toaster';
// export {default as Message} from './Message';
14 changes: 14 additions & 0 deletions src/el-class-name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* css class setting
*/
export default {
portal: 'bear-react-toaster__portal',
message: 'bear-react-toaster__message',
content: 'bear-react-toaster__content',
messageStatusSuccess: 'bear-react-toaster__message-status-success',
messageStatusWarning: 'bear-react-toaster__message-status-warning',
messageStatusError: 'bear-react-toaster__message-status-error',
messageStatusInfo: 'bear-react-toaster__message-status-info',
messageIcon: 'bear-bear-react-toaster__message-icon',
messageAnimation: 'bear-react-toaster__message-animation',
};
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export {default as ToasterPortal, toast} from './ToasterPortal';
export {default as elClassName} from './el-class-name';
export * from './types';

0 comments on commit eabee71

Please sign in to comment.