@abgov/react-components 4.17.0-alpha.1 → 4.17.0-alpha.3
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/accordion/accordion.d.ts +6 -6
- package/lib/app-header/app-header.d.ts +3 -3
- package/lib/app-header-menu/app-header-menu.d.ts +1 -1
- package/lib/badge/badge.d.ts +13 -13
- package/lib/block/block.d.ts +4 -3
- package/lib/button/button.d.ts +15 -12
- package/lib/button-group/button-group.d.ts +10 -9
- package/lib/calendar/calendar.d.ts +9 -9
- package/lib/callout/callout.d.ts +10 -9
- package/lib/card/card-actions.d.ts +3 -3
- package/lib/card/card-content.d.ts +3 -3
- package/lib/card/card-group.d.ts +3 -3
- package/lib/card/card-image.d.ts +3 -3
- package/lib/card/card.d.ts +3 -3
- package/lib/checkbox/checkbox.d.ts +6 -5
- package/lib/chip/chip.d.ts +6 -6
- package/lib/circular-progress/circular-progress.d.ts +11 -9
- package/lib/container/container.d.ts +12 -12
- package/lib/date-picker/date-picker.d.ts +9 -9
- package/lib/details/details.d.ts +4 -3
- package/lib/divider/divider.d.ts +4 -3
- package/lib/dropdown/dropdown-item.d.ts +4 -4
- package/lib/dropdown/dropdown.d.ts +3 -3
- package/lib/file-upload-card/file-upload-card.d.ts +3 -3
- package/lib/file-upload-input/file-upload-input.d.ts +6 -6
- package/lib/footer/footer.d.ts +4 -3
- package/lib/footer-meta-section/footer-meta-section.d.ts +4 -3
- package/lib/footer-nav-section/footer-nav-section.d.ts +3 -3
- package/lib/form/form-item.d.ts +9 -8
- package/lib/form-step/form-step.d.ts +4 -3
- package/lib/form-stepper/form-stepper.d.ts +4 -3
- package/lib/grid/grid.d.ts +3 -3
- package/lib/hero-banner/hero-banner-actions.d.ts +2 -2
- package/lib/hero-banner/hero-banner.d.ts +3 -3
- package/lib/icon/icon.d.ts +14 -11
- package/lib/icon-button/icon-button.d.ts +10 -9
- package/lib/input/input.d.ts +22 -21
- package/lib/microsite-header/microsite-header.d.ts +15 -12
- package/lib/modal/modal.d.ts +17 -15
- package/lib/notification/notification.d.ts +11 -9
- package/lib/one-column-layout/one-column-layout.d.ts +4 -3
- package/lib/page-block/page-block.d.ts +4 -3
- package/lib/pages/pages.d.ts +3 -3
- package/lib/pagination/pagination.d.ts +4 -3
- package/lib/popover/popover.d.ts +6 -6
- package/lib/radio-group/radio-group.d.ts +8 -7
- package/lib/radio-group/radio.d.ts +3 -3
- package/lib/side-menu/side-menu.d.ts +4 -3
- package/lib/side-menu-group/side-menu-group.d.ts +3 -3
- package/lib/side-menu-heading/side-menu-heading.d.ts +3 -3
- package/lib/skeleton/skeleton.d.ts +11 -9
- package/lib/spacer/spacer.d.ts +4 -3
- package/lib/spinner/spinner.d.ts +4 -3
- package/lib/tab/tab.d.ts +4 -3
- package/lib/table/table-sort-header.d.ts +3 -3
- package/lib/table/table.d.ts +8 -6
- package/lib/tabs/tabs.d.ts +3 -3
- package/lib/textarea/textarea.d.ts +3 -3
- package/lib/three-column-layout/three-column-layout.d.ts +3 -3
- package/lib/tooltip/tooltip.d.ts +10 -8
- package/lib/two-column-layout/two-column-layout.d.ts +3 -3
- package/package.json +1 -1
- package/react-components.esm.js +136 -136
- package/react-components.umd.js +90 -90
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
declare type
|
|
3
|
+
export declare type GoAHeadingSize = "small" | "medium";
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
open?: boolean;
|
|
6
|
-
headingSize?:
|
|
6
|
+
headingSize?: GoAHeadingSize;
|
|
7
7
|
heading: string;
|
|
8
8
|
secondaryText?: string;
|
|
9
9
|
headingContent?: ReactNode;
|
|
@@ -15,14 +15,14 @@ declare global {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
interface
|
|
18
|
+
export interface GoAAccordionProps extends Margins {
|
|
19
19
|
open?: boolean;
|
|
20
|
-
headingSize?:
|
|
20
|
+
headingSize?: GoAHeadingSize;
|
|
21
21
|
secondaryText?: string;
|
|
22
22
|
heading: string;
|
|
23
23
|
headingContent?: ReactNode;
|
|
24
24
|
testid?: string;
|
|
25
25
|
children: ReactNode;
|
|
26
26
|
}
|
|
27
|
-
export declare
|
|
27
|
+
export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, testid, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
|
|
28
28
|
export default GoAAccordion;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface WCProps {
|
|
3
3
|
heading?: string;
|
|
4
4
|
url?: string;
|
|
@@ -11,12 +11,12 @@ declare global {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
interface
|
|
14
|
+
export interface GoAAppHeaderProps {
|
|
15
15
|
heading?: string;
|
|
16
16
|
url?: string;
|
|
17
17
|
maxContentWidth?: string;
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
testId?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare
|
|
21
|
+
export declare function GoAAppHeader({ heading, url, maxContentWidth, testId, children, }: GoAAppHeaderProps): JSX.Element;
|
|
22
22
|
export default GoAAppHeader;
|
package/lib/badge/badge.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
export declare type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
|
|
4
|
-
interface GoABadgeProps extends Margins {
|
|
5
|
-
type: GoABadgeType;
|
|
6
|
-
icon?: boolean;
|
|
7
|
-
content?: string;
|
|
8
|
-
testId?: string;
|
|
9
|
-
ariaLabel?: string;
|
|
10
|
-
}
|
|
11
4
|
interface WCProps extends Margins {
|
|
12
5
|
type: GoABadgeType;
|
|
13
6
|
icon?: boolean;
|
|
@@ -21,21 +14,28 @@ declare global {
|
|
|
21
14
|
}
|
|
22
15
|
}
|
|
23
16
|
}
|
|
24
|
-
export
|
|
17
|
+
export interface GoABadgeProps extends Margins {
|
|
18
|
+
type: GoABadgeType;
|
|
19
|
+
icon?: boolean;
|
|
20
|
+
content?: string;
|
|
21
|
+
testId?: string;
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function GoABadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
25
25
|
/**
|
|
26
26
|
* @deprecated
|
|
27
27
|
*/
|
|
28
|
-
export declare
|
|
28
|
+
export declare function GoAInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
29
29
|
/**
|
|
30
30
|
* @deprecated
|
|
31
31
|
*/
|
|
32
|
-
export declare
|
|
32
|
+
export declare function GoASuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
33
33
|
/**
|
|
34
34
|
* @deprecated
|
|
35
35
|
*/
|
|
36
|
-
export declare
|
|
36
|
+
export declare function GoAImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
37
37
|
/**
|
|
38
38
|
* @deprecated
|
|
39
39
|
*/
|
|
40
|
-
export declare
|
|
40
|
+
export declare function GoAEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
|
|
41
41
|
export {};
|
package/lib/block/block.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
|
|
3
3
|
export interface WCProps extends Margins {
|
|
4
4
|
gap?: Spacing;
|
|
@@ -12,11 +12,12 @@ declare global {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface GoABlockProps extends Margins {
|
|
16
16
|
gap?: Spacing;
|
|
17
17
|
direction?: Direction;
|
|
18
18
|
alignment?: Alignment;
|
|
19
19
|
testId?: string;
|
|
20
20
|
children?: ReactNode;
|
|
21
21
|
}
|
|
22
|
-
export declare
|
|
22
|
+
export declare type BlockProps = GoABlockProps;
|
|
23
|
+
export declare function GoABlock(props: GoABlockProps): JSX.Element;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
import { GoAIconType } from "../icon/icon";
|
|
4
|
-
export declare type
|
|
5
|
-
export declare type
|
|
6
|
-
export declare type
|
|
4
|
+
export declare type GoAButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
|
|
5
|
+
export declare type GoAButtonSize = "compact" | "normal";
|
|
6
|
+
export declare type GoAButtonVariant = "normal" | "destructive";
|
|
7
|
+
export declare type ButtonType = GoAButtonType;
|
|
8
|
+
export declare type ButtonSize = GoAButtonSize;
|
|
9
|
+
export declare type ButtonVariant = GoAButtonVariant;
|
|
7
10
|
interface WCProps extends Margins {
|
|
8
|
-
type?:
|
|
9
|
-
size?:
|
|
10
|
-
variant?:
|
|
11
|
+
type?: GoAButtonType;
|
|
12
|
+
size?: GoAButtonSize;
|
|
13
|
+
variant?: GoAButtonVariant;
|
|
11
14
|
disabled?: boolean;
|
|
12
15
|
leadingicon?: string;
|
|
13
16
|
trailingicon?: string;
|
|
@@ -20,10 +23,10 @@ declare global {
|
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
|
-
interface
|
|
24
|
-
type?:
|
|
25
|
-
size?:
|
|
26
|
-
variant?:
|
|
26
|
+
export interface GoAButtonProps extends Margins {
|
|
27
|
+
type?: GoAButtonType;
|
|
28
|
+
size?: GoAButtonSize;
|
|
29
|
+
variant?: GoAButtonVariant;
|
|
27
30
|
disabled?: boolean;
|
|
28
31
|
leadingIcon?: GoAIconType;
|
|
29
32
|
trailingIcon?: GoAIconType;
|
|
@@ -31,5 +34,5 @@ interface ButtonProps extends Margins {
|
|
|
31
34
|
testId?: string;
|
|
32
35
|
children?: ReactNode;
|
|
33
36
|
}
|
|
34
|
-
export declare
|
|
37
|
+
export declare function GoAButton({ disabled, type, size, variant, leadingIcon, trailingIcon, testId, children, onClick, mt, mr, mb, ml, }: GoAButtonProps): JSX.Element;
|
|
35
38
|
export default GoAButton;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
declare type
|
|
4
|
-
export declare type
|
|
3
|
+
export declare type GoAButtonGroupAlignment = "start" | "end" | "center";
|
|
4
|
+
export declare type GoAButtonGroupGap = "relaxed" | "compact";
|
|
5
|
+
export declare type Gap = GoAButtonGroupGap;
|
|
5
6
|
interface WCProps extends Margins {
|
|
6
|
-
alignment:
|
|
7
|
-
gap?:
|
|
7
|
+
alignment: GoAButtonGroupAlignment;
|
|
8
|
+
gap?: GoAButtonGroupGap;
|
|
8
9
|
}
|
|
9
10
|
declare global {
|
|
10
11
|
namespace JSX {
|
|
@@ -13,11 +14,11 @@ declare global {
|
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
interface
|
|
17
|
-
alignment:
|
|
18
|
-
gap?:
|
|
17
|
+
export interface GoAButtonGroupProps extends Margins {
|
|
18
|
+
alignment: GoAButtonGroupAlignment;
|
|
19
|
+
gap?: GoAButtonGroupGap;
|
|
19
20
|
testId?: string;
|
|
20
21
|
children?: React.ReactNode;
|
|
21
22
|
}
|
|
22
|
-
export declare
|
|
23
|
+
export declare function GoAButtonGroup({ alignment, gap, testId, children, mt, mr, mb, ml, }: GoAButtonGroupProps): JSX.Element;
|
|
23
24
|
export default GoAButtonGroup;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
interface Props extends Margins {
|
|
4
|
-
name?: string;
|
|
5
|
-
value?: Date;
|
|
6
|
-
min?: Date;
|
|
7
|
-
max?: Date;
|
|
8
|
-
onChange: (name: string, value: Date) => void;
|
|
9
|
-
}
|
|
10
3
|
interface WCProps extends Margins {
|
|
11
4
|
ref: React.RefObject<HTMLElement>;
|
|
12
5
|
name?: string;
|
|
@@ -21,5 +14,12 @@ declare global {
|
|
|
21
14
|
}
|
|
22
15
|
}
|
|
23
16
|
}
|
|
24
|
-
export
|
|
17
|
+
export interface GoACalendarProps extends Margins {
|
|
18
|
+
name?: string;
|
|
19
|
+
value?: Date;
|
|
20
|
+
min?: Date;
|
|
21
|
+
max?: Date;
|
|
22
|
+
onChange: (name: string, value: Date) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function GoACalendar({ name, value, min, max, mt, mr, mb, ml, onChange, }: GoACalendarProps): JSX.Element;
|
|
25
25
|
export default GoACalendar;
|
package/lib/callout/callout.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
declare type
|
|
4
|
-
declare type
|
|
3
|
+
export declare type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
|
|
4
|
+
export declare type GoACalloutSize = "medium" | "large";
|
|
5
5
|
interface WCProps extends Margins {
|
|
6
6
|
heading?: string;
|
|
7
|
-
type?:
|
|
8
|
-
size?:
|
|
7
|
+
type?: GoACalloutType;
|
|
8
|
+
size?: GoACalloutSize;
|
|
9
9
|
}
|
|
10
10
|
declare global {
|
|
11
11
|
namespace JSX {
|
|
@@ -14,12 +14,13 @@ declare global {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface GoACalloutProps extends Margins {
|
|
18
18
|
heading?: string;
|
|
19
|
-
type?:
|
|
20
|
-
size?:
|
|
19
|
+
type?: GoACalloutType;
|
|
20
|
+
size?: GoACalloutSize;
|
|
21
21
|
testId?: string;
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
}
|
|
24
|
-
export declare
|
|
24
|
+
export declare type CalloutProps = GoACalloutProps;
|
|
25
|
+
export declare const GoACallout: ({ heading, type, size, testId, children, mt, mr, mb, ml, }: GoACalloutProps) => JSX.Element;
|
|
25
26
|
export default GoACallout;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare global {
|
|
3
3
|
namespace JSX {
|
|
4
4
|
interface IntrinsicElements {
|
|
@@ -6,8 +6,8 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
interface
|
|
9
|
+
export interface GoACardActionsProps {
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare function GoACardActions({ children }: GoACardActionsProps): JSX.Element;
|
|
13
13
|
export default GoACardActions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare global {
|
|
3
3
|
namespace JSX {
|
|
4
4
|
interface IntrinsicElements {
|
|
@@ -6,8 +6,8 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
interface
|
|
9
|
+
export interface GoACardContentProps {
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare function GoACardContent({ children }: GoACardContentProps): JSX.Element;
|
|
13
13
|
export default GoACardContent;
|
package/lib/card/card-group.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare global {
|
|
3
3
|
namespace JSX {
|
|
4
4
|
interface IntrinsicElements {
|
|
@@ -6,8 +6,8 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
interface
|
|
9
|
+
export interface GoACardGroupProps {
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare function GoACardGroup({ children }: GoACardGroupProps): JSX.Element;
|
|
13
13
|
export default GoACardGroup;
|
package/lib/card/card-image.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface WCProps {
|
|
3
3
|
src: string;
|
|
4
4
|
height: string;
|
|
@@ -10,9 +10,9 @@ declare global {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
13
|
+
export interface GoACardImageProps {
|
|
14
14
|
src: string;
|
|
15
15
|
height: string;
|
|
16
16
|
}
|
|
17
|
-
export declare
|
|
17
|
+
export declare function GoACardImage({ src, height }: GoACardImageProps): JSX.Element;
|
|
18
18
|
export default GoACardImage;
|
package/lib/card/card.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
elevation?: number;
|
|
@@ -12,11 +12,11 @@ declare global {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
interface
|
|
15
|
+
export interface GoACardProps extends Margins {
|
|
16
16
|
elevation?: number;
|
|
17
17
|
width?: string;
|
|
18
18
|
testId?: string;
|
|
19
19
|
children?: React.ReactNode;
|
|
20
20
|
}
|
|
21
|
-
export declare
|
|
21
|
+
export declare function GoACard({ elevation, width, mt, mr, mb, ml, testId, children, }: GoACardProps): JSX.Element;
|
|
22
22
|
export default GoACard;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
declare global {
|
|
4
4
|
namespace JSX {
|
|
5
5
|
interface IntrinsicElements {
|
|
6
|
-
"goa-checkbox":
|
|
6
|
+
"goa-checkbox": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
interface
|
|
10
|
+
interface WCProps extends Margins {
|
|
11
11
|
ref: React.RefObject<HTMLElement>;
|
|
12
12
|
id?: string;
|
|
13
13
|
name: string;
|
|
@@ -19,7 +19,7 @@ interface CheckboxProps extends Margins {
|
|
|
19
19
|
arialabel?: string;
|
|
20
20
|
description?: string;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface GoACheckboxProps extends Margins {
|
|
23
23
|
id?: string;
|
|
24
24
|
name: string;
|
|
25
25
|
checked: boolean;
|
|
@@ -33,5 +33,6 @@ export interface Props extends Margins {
|
|
|
33
33
|
description?: string;
|
|
34
34
|
onChange?: (name: string, checked: boolean, value: string) => void;
|
|
35
35
|
}
|
|
36
|
-
export declare
|
|
36
|
+
export declare type Props = GoACheckboxProps;
|
|
37
|
+
export declare function GoACheckbox({ id, name, testId, error, disabled, checked, value, text, description, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoACheckboxProps): JSX.Element;
|
|
37
38
|
export default GoACheckbox;
|
package/lib/chip/chip.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
declare type
|
|
3
|
+
export declare type GoAChipVariant = "filter";
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
ref: React.RefObject<HTMLElement>;
|
|
6
6
|
leadingicon: string;
|
|
7
7
|
error: boolean;
|
|
8
8
|
deletable: boolean;
|
|
9
9
|
content: string;
|
|
10
|
-
variant?:
|
|
10
|
+
variant?: GoAChipVariant;
|
|
11
11
|
}
|
|
12
12
|
declare global {
|
|
13
13
|
namespace JSX {
|
|
@@ -16,14 +16,14 @@ declare global {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
interface
|
|
19
|
+
export interface GoAChipProps extends Margins {
|
|
20
20
|
onClick?: () => void;
|
|
21
21
|
deletable?: boolean;
|
|
22
22
|
leadingIcon?: string;
|
|
23
23
|
error?: boolean;
|
|
24
24
|
content: string;
|
|
25
|
-
variant?:
|
|
25
|
+
variant?: GoAChipVariant;
|
|
26
26
|
testId?: string;
|
|
27
27
|
}
|
|
28
|
-
export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }:
|
|
28
|
+
export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoAChipProps) => JSX.Element;
|
|
29
29
|
export default GoAChip;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type
|
|
3
|
-
export declare type
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type GoACircularProgressVariant = "fullscreen" | "inline";
|
|
3
|
+
export declare type GoACircularProgressSize = "small" | "large";
|
|
4
|
+
export declare type CircularProgressVariant = GoACircularProgressVariant;
|
|
5
|
+
export declare type CircularProgressSize = GoACircularProgressSize;
|
|
4
6
|
interface WCProps {
|
|
5
|
-
variant?:
|
|
6
|
-
size?:
|
|
7
|
+
variant?: GoACircularProgressVariant;
|
|
8
|
+
size?: GoACircularProgressSize;
|
|
7
9
|
message?: string;
|
|
8
10
|
visible?: string;
|
|
9
11
|
progress?: number;
|
|
@@ -15,13 +17,13 @@ declare global {
|
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
|
-
export interface
|
|
19
|
-
variant?:
|
|
20
|
-
size?:
|
|
20
|
+
export interface GoACircularProgressProps {
|
|
21
|
+
variant?: GoACircularProgressVariant;
|
|
22
|
+
size?: GoACircularProgressSize;
|
|
21
23
|
message?: string;
|
|
22
24
|
visible?: boolean;
|
|
23
25
|
progress?: number;
|
|
24
26
|
testId?: string;
|
|
25
27
|
}
|
|
26
|
-
export declare const GoACircularProgress: ({ visible, message, progress, variant, size, testId, }:
|
|
28
|
+
export declare const GoACircularProgress: ({ visible, message, progress, variant, size, testId, }: GoACircularProgressProps) => JSX.Element;
|
|
27
29
|
export default GoACircularProgress;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
declare type
|
|
4
|
-
declare type
|
|
5
|
-
declare type
|
|
3
|
+
export declare type GoAContainerType = "interactive" | "non-interactive" | "info" | "error" | "success" | "important";
|
|
4
|
+
export declare type GoAContainerAccent = "thick" | "thin" | "filled";
|
|
5
|
+
export declare type GoAContainerPadding = "relaxed" | "compact";
|
|
6
6
|
interface WCProps extends Margins {
|
|
7
|
-
type?:
|
|
8
|
-
accent?:
|
|
9
|
-
padding?:
|
|
7
|
+
type?: GoAContainerType;
|
|
8
|
+
accent?: GoAContainerAccent;
|
|
9
|
+
padding?: GoAContainerPadding;
|
|
10
10
|
}
|
|
11
11
|
declare global {
|
|
12
12
|
namespace JSX {
|
|
@@ -15,15 +15,15 @@ declare global {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
interface
|
|
19
|
-
accent?:
|
|
20
|
-
type?:
|
|
18
|
+
export interface GoAContainerProps extends Margins {
|
|
19
|
+
accent?: GoAContainerAccent;
|
|
20
|
+
type?: GoAContainerType;
|
|
21
21
|
heading?: ReactNode;
|
|
22
22
|
title?: ReactNode;
|
|
23
|
-
padding?:
|
|
23
|
+
padding?: GoAContainerPadding;
|
|
24
24
|
actions?: ReactNode;
|
|
25
25
|
children?: ReactNode;
|
|
26
26
|
testId?: string;
|
|
27
27
|
}
|
|
28
|
-
export declare
|
|
28
|
+
export declare function GoAContainer({ accent, heading, title, padding, children, actions, type, mt, mr, mb, ml, testId, }: GoAContainerProps): JSX.Element;
|
|
29
29
|
export default GoAContainer;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
|
-
interface Props extends Margins {
|
|
4
|
-
name?: string;
|
|
5
|
-
value?: Date;
|
|
6
|
-
min?: Date;
|
|
7
|
-
max?: Date;
|
|
8
|
-
onChange: (name: string, value: Date) => void;
|
|
9
|
-
}
|
|
10
3
|
interface WCProps extends Margins {
|
|
11
4
|
ref: React.RefObject<HTMLElement>;
|
|
12
5
|
name?: string;
|
|
@@ -21,5 +14,12 @@ declare global {
|
|
|
21
14
|
}
|
|
22
15
|
}
|
|
23
16
|
}
|
|
24
|
-
export
|
|
17
|
+
export interface GoADatePickerProps extends Margins {
|
|
18
|
+
name?: string;
|
|
19
|
+
value?: Date;
|
|
20
|
+
min?: Date;
|
|
21
|
+
max?: Date;
|
|
22
|
+
onChange: (name: string, value: Date) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function GoADatePicker({ name, value, min, max, mt, mr, mb, ml, onChange, }: GoADatePickerProps): JSX.Element;
|
|
25
25
|
export default GoADatePicker;
|
package/lib/details/details.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
heading: string;
|
|
@@ -11,10 +11,11 @@ declare global {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface GoADetailsProps extends Margins {
|
|
15
15
|
heading: string;
|
|
16
16
|
open?: boolean;
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
}
|
|
19
|
-
export declare
|
|
19
|
+
export declare type DetailsProps = GoADetailsProps;
|
|
20
|
+
export declare function GoADetails(props: GoADetailsProps): JSX.Element;
|
|
20
21
|
export default GoADetails;
|
package/lib/divider/divider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
declare global {
|
|
4
4
|
namespace JSX {
|
|
@@ -7,7 +7,8 @@ declare global {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export interface GoADividerProps extends Margins {
|
|
11
11
|
testId?: string;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
13
|
+
export declare function GoADivider(props: GoADividerProps): JSX.Element;
|
|
13
14
|
export default GoADivider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface WCProps {
|
|
3
3
|
value: string;
|
|
4
4
|
label?: string;
|
|
@@ -12,13 +12,13 @@ declare global {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
interface
|
|
15
|
+
export interface GoADropdownItemProps {
|
|
16
16
|
value: string;
|
|
17
17
|
label?: string;
|
|
18
18
|
filter?: string;
|
|
19
19
|
testId?: string;
|
|
20
20
|
name?: string;
|
|
21
21
|
}
|
|
22
|
-
export declare function GoADropdownOption(props:
|
|
23
|
-
export declare function GoADropdownItem({ value, label, filter, name, testId }:
|
|
22
|
+
export declare function GoADropdownOption(props: GoADropdownItemProps): JSX.Element;
|
|
23
|
+
export declare function GoADropdownItem({ value, label, filter, name, testId }: GoADropdownItemProps): JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { Margins } from "../../common/styling";
|
|
3
3
|
import { GoAIconType } from "../icon/icon";
|
|
4
4
|
interface WCProps extends Margins {
|
|
@@ -26,7 +26,7 @@ declare global {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
interface
|
|
29
|
+
export interface GoADropdownProps extends Margins {
|
|
30
30
|
name?: string;
|
|
31
31
|
value?: string[] | string;
|
|
32
32
|
onChange: (name: string, values: string[] | string) => void;
|
|
@@ -46,5 +46,5 @@ interface Props extends Margins {
|
|
|
46
46
|
width?: string;
|
|
47
47
|
relative?: boolean;
|
|
48
48
|
}
|
|
49
|
-
export declare
|
|
49
|
+
export declare function GoADropdown(props: GoADropdownProps): JSX.Element;
|
|
50
50
|
export default GoADropdown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface WCProps {
|
|
3
3
|
ref: React.MutableRefObject<HTMLElement | null>;
|
|
4
4
|
filename: string;
|
|
@@ -14,7 +14,7 @@ declare global {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
interface
|
|
17
|
+
export interface GoAFileUploadCardProps {
|
|
18
18
|
filename: string;
|
|
19
19
|
size: number;
|
|
20
20
|
type?: string;
|
|
@@ -23,5 +23,5 @@ interface FileUploadCardProps {
|
|
|
23
23
|
onDelete?: () => void;
|
|
24
24
|
onCancel?: () => void;
|
|
25
25
|
}
|
|
26
|
-
export declare function GoAFileUploadCard({ filename, size, type, progress, error, onDelete, onCancel, }:
|
|
26
|
+
export declare function GoAFileUploadCard({ filename, size, type, progress, error, onDelete, onCancel, }: GoAFileUploadCardProps): JSX.Element;
|
|
27
27
|
export default GoAFileUploadCard;
|