@nypl/design-system-react-components 3.1.1-modal-rc → 3.1.1-modal-rc-2
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.
|
@@ -27,7 +27,7 @@ export interface DefaultModalProps {
|
|
|
27
27
|
closeButtonLabel?: string;
|
|
28
28
|
onClose?: () => void;
|
|
29
29
|
/** The `Modal` variant to render. */
|
|
30
|
-
type
|
|
30
|
+
type: "default";
|
|
31
31
|
/** The label for the confirm button. This prop is not used
|
|
32
32
|
* in the default variant. */
|
|
33
33
|
confirmButtonLabel?: never;
|
|
@@ -46,7 +46,7 @@ export interface ModalProps {
|
|
|
46
46
|
modalProps: BaseModalProps;
|
|
47
47
|
}
|
|
48
48
|
export declare function isDefaultType(type: BaseModalProps["type"]): type is "default";
|
|
49
|
-
export declare const BaseModal: ChakraComponent<React.
|
|
49
|
+
export declare const BaseModal: ChakraComponent<React.FunctionComponent<BaseModalProps>, BaseModalProps>;
|
|
50
50
|
/**
|
|
51
51
|
* The `ModalTrigger` component renders a button that you click to open the
|
|
52
52
|
* internal `Modal` component. Note that props to update the internal `Modal`
|