-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:coveo/plasma into next
- Loading branch information
Showing
32 changed files
with
1,597 additions
and
1,664 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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,9 @@ | ||
.footer { | ||
border-top: 1px solid var(--mantine-color-gray-3); | ||
} | ||
|
||
.modalFooterSticky { | ||
padding-bottom: 0; | ||
margin: var(--mb-padding) calc(-1 * var(--mb-padding)) calc(var(--mantine-spacing-md) - var(--mb-padding)) | ||
calc(-1 * var(--mb-padding)); | ||
} |
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,33 @@ | ||
import { | ||
factory, | ||
Modal as MantineModal, | ||
ModalFactory as MantineModalFactory, | ||
ModalProps as MantineModalProps, | ||
} from '@mantine/core'; | ||
import {ModalFooter as PlasmaModalFooter} from './ModalFooter'; | ||
|
||
// Need to redeclare the factory to override and add footer to the props type | ||
type PlasmaModalFactory = Omit<MantineModalFactory, 'staticComponents'> & { | ||
staticComponents: MantineModalFactory['staticComponents'] & { | ||
Footer: typeof PlasmaModalFooter; | ||
}; | ||
}; | ||
|
||
const PlasmaModal = factory<PlasmaModalFactory>((props: MantineModalProps, ref) => ( | ||
<MantineModal ref={ref} {...props} /> | ||
)); | ||
|
||
PlasmaModal.displayName = '@coveord/plasma-mantine/Modal'; | ||
PlasmaModal.Root = MantineModal.Root; | ||
PlasmaModal.Body = MantineModal.Body; | ||
PlasmaModal.Overlay = MantineModal.Overlay; | ||
PlasmaModal.Content = MantineModal.Content; | ||
PlasmaModal.Header = MantineModal.Header; | ||
PlasmaModal.Title = MantineModal.Title; | ||
PlasmaModal.CloseButton = MantineModal.CloseButton; | ||
PlasmaModal.Stack = MantineModal.Stack; | ||
PlasmaModal.Footer = PlasmaModalFooter; | ||
|
||
export const Modal = PlasmaModal; | ||
|
||
export type ModalFactory = PlasmaModalFactory; |
Oops, something went wrong.