@abgov/react-components 4.9.0 → 4.10.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.
- package/index.d.ts +1 -0
- package/lib/callout/callout.d.ts +4 -1
- package/lib/hero-banner/hero-banner.d.ts +2 -0
- package/lib/microsite-header/microsite-header.d.ts +2 -0
- package/lib/notification/notification.d.ts +3 -1
- package/lib/popover/popover.d.ts +3 -2
- package/lib/three-column-layout/three-column-layout.d.ts +25 -0
- package/package.json +1 -1
- package/react-components.esm.js +787 -266
- package/react-components.umd.js +794 -269
package/index.d.ts
CHANGED
package/lib/callout/callout.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
declare type CalloutType = "important" | "information" | "event" | "success" | "emergency";
|
|
4
|
+
declare type CalloutSize = "medium" | "large";
|
|
4
5
|
interface WCProps extends Margins {
|
|
5
6
|
heading?: string;
|
|
6
7
|
type?: CalloutType;
|
|
8
|
+
size?: CalloutSize;
|
|
7
9
|
}
|
|
8
10
|
declare global {
|
|
9
11
|
namespace JSX {
|
|
@@ -15,8 +17,9 @@ declare global {
|
|
|
15
17
|
export interface CalloutProps extends Margins {
|
|
16
18
|
heading?: string;
|
|
17
19
|
type?: CalloutType;
|
|
20
|
+
size?: CalloutSize;
|
|
18
21
|
testId?: string;
|
|
19
22
|
children?: React.ReactNode;
|
|
20
23
|
}
|
|
21
|
-
export declare const GoACallout: ({ heading, type, testId, children, mt, mr, mb, ml, }: CalloutProps) => JSX.Element;
|
|
24
|
+
export declare const GoACallout: ({ heading, type, size, testId, children, mt, mr, mb, ml, }: CalloutProps) => JSX.Element;
|
|
22
25
|
export default GoACallout;
|
|
@@ -3,6 +3,7 @@ interface WCProps {
|
|
|
3
3
|
heading: string;
|
|
4
4
|
backgroundurl: string;
|
|
5
5
|
minheight?: string;
|
|
6
|
+
maxcontentwidth?: string;
|
|
6
7
|
}
|
|
7
8
|
declare global {
|
|
8
9
|
namespace JSX {
|
|
@@ -17,6 +18,7 @@ interface Props {
|
|
|
17
18
|
minHeight?: string;
|
|
18
19
|
testId?: string;
|
|
19
20
|
children?: React.ReactNode;
|
|
21
|
+
maxContentWidth?: string;
|
|
20
22
|
}
|
|
21
23
|
export declare const GoAHeroBanner: FC<Props>;
|
|
22
24
|
export default GoAHeroBanner;
|
|
@@ -11,12 +11,14 @@ interface WebComponentProps {
|
|
|
11
11
|
type: ServiceLevel;
|
|
12
12
|
version?: string;
|
|
13
13
|
feedbackurl?: string;
|
|
14
|
+
maxcontentwidth?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface HeaderProps {
|
|
16
17
|
type: ServiceLevel;
|
|
17
18
|
version?: string;
|
|
18
19
|
feedbackUrl?: string;
|
|
19
20
|
testId?: string;
|
|
21
|
+
maxContentWidth?: string;
|
|
20
22
|
}
|
|
21
23
|
export declare const GoAMicrositeHeader: FC<HeaderProps>;
|
|
22
24
|
export default GoAMicrositeHeader;
|
|
@@ -3,6 +3,7 @@ export declare type NotificationType = "important" | "information" | "event" | "
|
|
|
3
3
|
interface WCProps {
|
|
4
4
|
ref: React.RefObject<HTMLElement>;
|
|
5
5
|
type: NotificationType;
|
|
6
|
+
maxcontentwidth?: string;
|
|
6
7
|
}
|
|
7
8
|
declare global {
|
|
8
9
|
namespace JSX {
|
|
@@ -13,9 +14,10 @@ declare global {
|
|
|
13
14
|
}
|
|
14
15
|
interface Props {
|
|
15
16
|
type?: NotificationType;
|
|
17
|
+
maxContentWidth?: string;
|
|
16
18
|
children?: React.ReactNode;
|
|
17
19
|
onDismiss?: () => void;
|
|
18
20
|
testId?: string;
|
|
19
21
|
}
|
|
20
|
-
export declare const GoANotification: ({ type, children, testId, onDismiss, }: Props) => JSX.Element;
|
|
22
|
+
export declare const GoANotification: ({ type, maxContentWidth, children, testId, onDismiss, }: Props) => JSX.Element;
|
|
21
23
|
export default GoANotification;
|
package/lib/popover/popover.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from "react";
|
|
2
|
-
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
3
4
|
maxwidth?: string;
|
|
4
5
|
padded?: boolean;
|
|
5
6
|
}
|
|
@@ -10,7 +11,7 @@ declare global {
|
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
interface Props {
|
|
14
|
+
interface Props extends Margins {
|
|
14
15
|
target?: ReactNode;
|
|
15
16
|
testId?: string;
|
|
16
17
|
maxWidth?: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
leftcolumnwidth?: string;
|
|
4
|
+
maxcontentwidth?: string;
|
|
5
|
+
rightcolumnwidth?: string;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-three-column-layout": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
leftColumnWidth?: string;
|
|
16
|
+
rightColumnWidth?: string;
|
|
17
|
+
maxContentWidth?: string;
|
|
18
|
+
header: ReactNode;
|
|
19
|
+
footer: ReactNode;
|
|
20
|
+
nav: ReactNode;
|
|
21
|
+
sidebar: ReactNode;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function GoAThreeColumnLayout(props: Props): JSX.Element;
|
|
25
|
+
export default GoAThreeColumnLayout;
|