@abgov/react-components 4.0.0 → 4.1.0
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.
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
import "./button-group.css";
|
|
3
|
-
declare type Alignment = "start" | "end";
|
|
3
|
+
declare type Alignment = "start" | "end" | "center";
|
|
4
|
+
export declare type Gap = "relaxed" | "compact";
|
|
4
5
|
interface WCProps {
|
|
5
|
-
alignment
|
|
6
|
+
alignment: Alignment;
|
|
7
|
+
gap?: Gap;
|
|
6
8
|
}
|
|
7
9
|
declare global {
|
|
8
10
|
namespace JSX {
|
|
@@ -13,6 +15,7 @@ declare global {
|
|
|
13
15
|
}
|
|
14
16
|
declare type ButtonGroupProps = {
|
|
15
17
|
alignment: Alignment;
|
|
18
|
+
gap?: Gap;
|
|
16
19
|
children?: React.ReactNode;
|
|
17
20
|
};
|
|
18
21
|
export declare const GoAButtonGroup: FC<ButtonGroupProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
import { IconSize, GoAIconType } from "./icon";
|
|
3
|
-
declare type IconVariant = "color" | "nocolor";
|
|
3
|
+
declare type IconVariant = "color" | "nocolor" | "dark";
|
|
4
4
|
interface WCProps {
|
|
5
5
|
ref: React.RefObject<HTMLElement>;
|
|
6
6
|
icon: GoAIconType;
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
2
|
export declare type ModalTransition = "fast" | "slow" | "none";
|
|
3
|
+
export declare type CalloutVariant = "information" | "important" | "emergency" | "success" | "event";
|
|
3
4
|
interface WCProps {
|
|
4
5
|
ref: React.RefObject<HTMLElement>;
|
|
5
6
|
heading?: string;
|
|
@@ -8,6 +9,7 @@ interface WCProps {
|
|
|
8
9
|
closable?: boolean;
|
|
9
10
|
scrollable?: boolean;
|
|
10
11
|
transition?: ModalTransition;
|
|
12
|
+
calloutVariant?: CalloutVariant;
|
|
11
13
|
}
|
|
12
14
|
declare global {
|
|
13
15
|
namespace JSX {
|
|
@@ -24,6 +26,8 @@ interface Props {
|
|
|
24
26
|
transition?: ModalTransition;
|
|
25
27
|
children?: React.ReactNode;
|
|
26
28
|
open?: boolean;
|
|
29
|
+
type?: string;
|
|
30
|
+
calloutVariant?: CalloutVariant;
|
|
27
31
|
}
|
|
28
32
|
export declare const GoAModal: FC<Props>;
|
|
29
33
|
export default GoAModal;
|