@abgov/react-components 4.0.0-alpha.82 → 4.0.0-alpha.84
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.
- package/lib/modal/modal.d.ts +1 -3
- package/package.json +1 -1
- package/react-components.esm.js +122 -157
- package/react-components.umd.js +122 -157
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
export declare type ModalTransition = "fast" | "slow" | "none";
|
|
3
3
|
export declare type CalloutVariant = "information" | "important" | "emergency" | "success" | "event";
|
|
4
|
-
export declare type ModalType = "default" | "callout";
|
|
5
4
|
interface WCProps {
|
|
6
5
|
ref: React.RefObject<HTMLElement>;
|
|
7
6
|
heading?: string;
|
|
@@ -10,7 +9,6 @@ interface WCProps {
|
|
|
10
9
|
closable?: boolean;
|
|
11
10
|
scrollable?: boolean;
|
|
12
11
|
transition?: ModalTransition;
|
|
13
|
-
type?: ModalType;
|
|
14
12
|
calloutVariant?: CalloutVariant;
|
|
15
13
|
}
|
|
16
14
|
declare global {
|
|
@@ -28,7 +26,7 @@ interface Props {
|
|
|
28
26
|
transition?: ModalTransition;
|
|
29
27
|
children?: React.ReactNode;
|
|
30
28
|
open?: boolean;
|
|
31
|
-
type?:
|
|
29
|
+
type?: string;
|
|
32
30
|
calloutVariant?: CalloutVariant;
|
|
33
31
|
}
|
|
34
32
|
export declare const GoAModal: FC<Props>;
|
package/package.json
CHANGED