-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: internal - changed Modal to LegacyModal (exported still as …
…Modal) 7360977361
- Loading branch information
1 parent
bead0ba
commit 1c57b15
Showing
36 changed files
with
94 additions
and
75 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../__tests__/ModalContent.snapshot.test.tsx → ...ts__/LegacyModalContent.snapshot.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...ponents/Modal/ModalFooter/ModalFooter.tsx → ...l/LegacyModalFooter/LegacyModalFooter.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import React, { FC, ReactElement } from "react"; | ||
import cx from "classnames"; | ||
import VibeComponentProps from "../../../types/VibeComponentProps"; | ||
import styles from "./ModalFooter.module.scss"; | ||
import styles from "./LegacyModalFooter.module.scss"; | ||
|
||
export interface ModalFooterProps extends VibeComponentProps { | ||
export interface LegacyModalFooterProps extends VibeComponentProps { | ||
children: ReactElement | ReactElement[] | string; | ||
} | ||
|
||
const ModalFooter: FC<ModalFooterProps> = ({ className, children }) => { | ||
const LegacyModalFooter: FC<LegacyModalFooterProps> = ({ className, children }) => { | ||
return <div className={cx(styles.container, className)}>{children}</div>; | ||
}; | ||
|
||
Object.assign(ModalFooter, { | ||
Object.assign(LegacyModalFooter, { | ||
displayName: "ModalFooter" | ||
}); | ||
|
||
export default ModalFooter; | ||
export default LegacyModalFooter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ts__/ModalFooterButtons.snapshot.test.tsx → ...egacyModalFooterButtons.snapshot.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...ons/__tests__/ModalFooterButtons.test.tsx → ...tests__/LegacyModalFooterButtons.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...er/__tests__/ModalFooter.snapshot.test.js → ...ests__/LegacyModalFooter.snapshot.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...er/__tests__/ModalHeader.snapshot.test.js → ...ests__/LegacyModalHeader.snapshot.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
.../core/src/components/Modal/ModalHelper.ts → ...src/components/LegacyModal/ModalHelper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
...rc/components/Modal/__stories__/Modal.mdx → ...s/LegacyModal/__stories__/LegacyModal.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...dal/__stories__/Modal.stories.helpers.tsx → ...stories__/LegacyModal.stories.helpers.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...nents/Modal/__stories__/Modal.stories.tsx → ...Modal/__stories__/LegacyModal.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ts/Modal/__tests__/Modal.snapshot.test.js → ...al/__tests__/LegacyModal.snapshot.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../components/Modal/__tests__/Modal.test.js → ...LegacyModal/__tests__/LegacyModal.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export { default as Modal, LegacyModalProps as ModalProps } from "./LegacyModal"; | ||
export { | ||
default as ModalHeader, | ||
LegacyModalHeaderProps as ModalHeaderProps | ||
} from "./LegacyModalHeader/LegacyModalHeader"; | ||
export { | ||
default as ModalContent, | ||
LegacyModalContentProps as ModalContentProps | ||
} from "./LegacyModalContent/LegacyModalContent"; | ||
export { | ||
default as ModalFooter, | ||
LegacyModalFooterProps as ModalFooterProps | ||
} from "./LegacyModalFooter/LegacyModalFooter"; | ||
export { | ||
default as ModalFooterButtons, | ||
LegacyModalFooterButtonsProps as ModalFooterButtonsProps | ||
} from "./LegacyModalFooter/LegacyModalFooterButtons/LegacyModalFooterButtons"; | ||
|
||
export * from "./LegacyModal.types"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.