@abgov/react-components 4.17.0-alpha.2 → 4.17.0-alpha.20
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/common/styling.d.ts +12 -9
- package/index.d.ts +56 -59
- package/index.js +23481 -0
- package/index.js.map +1 -0
- package/index.mjs +23481 -0
- package/index.mjs.map +1 -0
- package/lib/accordion/accordion.d.ts +28 -28
- package/lib/app-header/app-header.d.ts +23 -22
- package/lib/app-header-menu/app-header-menu.d.ts +20 -20
- package/lib/badge/badge.d.ts +40 -41
- package/lib/block/block.d.ts +23 -22
- package/lib/button/button.d.ts +38 -35
- package/lib/button-group/button-group.d.ts +23 -23
- package/lib/calendar/calendar.d.ts +24 -25
- package/lib/callout/callout.d.ts +25 -25
- package/lib/checkbox/checkbox.d.ts +37 -37
- package/lib/chip/chip.d.ts +28 -29
- package/lib/circular-progress/circular-progress.d.ts +28 -27
- package/lib/container/container.d.ts +29 -29
- package/lib/date-picker/date-picker.d.ts +24 -25
- package/lib/details/details.d.ts +21 -20
- package/lib/divider/divider.d.ts +13 -13
- package/lib/dropdown/dropdown-item.d.ts +23 -24
- package/lib/dropdown/dropdown.d.ts +49 -50
- package/lib/file-upload-card/file-upload-card.d.ts +26 -27
- package/lib/file-upload-input/file-upload-input.d.ts +22 -23
- package/lib/footer/footer.d.ts +19 -18
- package/lib/footer-meta-section/footer-meta-section.d.ts +14 -13
- package/lib/footer-nav-section/footer-nav-section.d.ts +20 -20
- package/lib/{form → form-item}/form-item.d.ts +30 -30
- package/lib/form-step/form-step.d.ts +19 -19
- package/lib/form-stepper/form-stepper.d.ts +22 -21
- package/lib/grid/grid.d.ts +20 -21
- package/lib/hero-banner/hero-banner-actions.d.ts +5 -6
- package/lib/hero-banner/hero-banner.d.ts +27 -28
- package/lib/icon/icon.d.ts +41 -39
- package/lib/icon-button/icon-button.d.ts +31 -31
- package/lib/input/input.d.ts +112 -115
- package/lib/microsite-header/microsite-header.d.ts +30 -28
- package/lib/modal/modal.d.ts +36 -34
- package/lib/notification/notification.d.ts +27 -26
- package/lib/one-column-layout/one-column-layout.d.ts +14 -13
- package/lib/page-block/page-block.d.ts +19 -17
- package/lib/pages/pages.d.ts +18 -18
- package/lib/pagination/pagination.d.ts +26 -26
- package/lib/popover/popover.d.ts +27 -27
- package/lib/radio-group/radio-group.d.ts +32 -32
- package/lib/radio-group/radio.d.ts +29 -30
- package/lib/side-menu/side-menu.d.ts +14 -13
- package/lib/side-menu-group/side-menu-group.d.ts +17 -17
- package/lib/side-menu-heading/side-menu-heading.d.ts +19 -19
- package/lib/skeleton/skeleton.d.ts +27 -26
- package/lib/spacer/spacer.d.ts +20 -20
- package/lib/spinner/spinner.d.ts +25 -25
- package/lib/tab/tab.d.ts +17 -17
- package/lib/table/table-sort-header.d.ts +19 -20
- package/lib/table/table.d.ts +27 -25
- package/lib/tabs/tabs.d.ts +16 -17
- package/lib/textarea/textarea.d.ts +41 -39
- package/lib/three-column-layout/three-column-layout.d.ts +26 -26
- package/lib/tooltip/tooltip.d.ts +25 -23
- package/lib/two-column-layout/two-column-layout.d.ts +22 -22
- package/package.json +16 -11
- package/README.md +0 -34
- package/experimental/index.d.ts +0 -0
- package/experimental/package.json +0 -11
- package/experimental/react-components.esm.js +0 -1
- package/experimental/react-components.umd.js +0 -8
- package/lib/card/card-actions.d.ts +0 -13
- package/lib/card/card-content.d.ts +0 -13
- package/lib/card/card-group.d.ts +0 -13
- package/lib/card/card-image.d.ts +0 -18
- package/lib/card/card.d.ts +0 -22
- package/lib/card/index.d.ts +0 -5
- package/lib/form/index.d.ts +0 -1
- package/lib/form/validators.d.ts +0 -10
- package/react-components.esm.js +0 -3383
- package/react-components.umd.js +0 -3443
package/lib/input/input.d.ts
CHANGED
|
@@ -1,115 +1,112 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
export interface
|
|
67
|
-
onChange: OnChange
|
|
68
|
-
value
|
|
69
|
-
min?: number | string;
|
|
70
|
-
max?: number | string;
|
|
71
|
-
step?: number;
|
|
72
|
-
onFocus?: OnFocus
|
|
73
|
-
onBlur?: OnBlur
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
export declare
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
export declare
|
|
103
|
-
export declare
|
|
104
|
-
export declare
|
|
105
|
-
export declare
|
|
106
|
-
export declare
|
|
107
|
-
export declare
|
|
108
|
-
export declare
|
|
109
|
-
export declare
|
|
110
|
-
export declare
|
|
111
|
-
export declare
|
|
112
|
-
export
|
|
113
|
-
export declare const GoAInputNumber: FC<NumberInputProps>;
|
|
114
|
-
export declare const GoAInputRange: FC<InputProps>;
|
|
115
|
-
export default GoAInput;
|
|
1
|
+
import { GoAIconType } from "../..";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
export type GoADate = Date | string;
|
|
4
|
+
export type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
5
|
+
export type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
|
|
6
|
+
interface WCProps extends Margins {
|
|
7
|
+
ref?: React.MutableRefObject<HTMLInputElement | null>;
|
|
8
|
+
type?: GoAInputType;
|
|
9
|
+
name: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
autocapitalize?: GoAAutoCapitalize;
|
|
13
|
+
debounce?: number;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
leadingicon?: string;
|
|
16
|
+
trailingicon?: string;
|
|
17
|
+
variant: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
error?: boolean;
|
|
20
|
+
readonly?: boolean;
|
|
21
|
+
focused?: boolean;
|
|
22
|
+
handletrailingiconclick: boolean;
|
|
23
|
+
width?: string;
|
|
24
|
+
prefix?: string;
|
|
25
|
+
suffix?: string;
|
|
26
|
+
arialabel?: string;
|
|
27
|
+
min?: string | number;
|
|
28
|
+
max?: string | number;
|
|
29
|
+
step?: number;
|
|
30
|
+
maxlength?: number;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
namespace JSX {
|
|
34
|
+
interface IntrinsicElements {
|
|
35
|
+
"goa-input": WCProps & React.HTMLAttributes<HTMLInputElement>;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
interface BaseProps extends Margins {
|
|
40
|
+
name: string;
|
|
41
|
+
id?: string;
|
|
42
|
+
debounce?: number;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
autoCapitalize?: GoAAutoCapitalize;
|
|
45
|
+
placeholder?: string;
|
|
46
|
+
leadingIcon?: GoAIconType;
|
|
47
|
+
trailingIcon?: GoAIconType;
|
|
48
|
+
onTrailingIconClick?: () => void;
|
|
49
|
+
variant?: "goa" | "bare";
|
|
50
|
+
focused?: boolean;
|
|
51
|
+
readonly?: boolean;
|
|
52
|
+
error?: boolean;
|
|
53
|
+
width?: string;
|
|
54
|
+
prefix?: string;
|
|
55
|
+
suffix?: string;
|
|
56
|
+
testId?: string;
|
|
57
|
+
ariaLabel?: string;
|
|
58
|
+
leadingContent?: React.ReactNode;
|
|
59
|
+
trailingContent?: React.ReactNode;
|
|
60
|
+
maxLength?: number;
|
|
61
|
+
}
|
|
62
|
+
type OnChange<T = string> = (name: string, value: T) => void;
|
|
63
|
+
type OnFocus<T = string> = (name: string, value: T) => void;
|
|
64
|
+
type OnBlur<T = string> = (name: string, value: T) => void;
|
|
65
|
+
type OnKeyPress<T = string> = (name: string, value: T, key: string) => void;
|
|
66
|
+
export interface GoAInputProps extends BaseProps {
|
|
67
|
+
onChange: OnChange<string>;
|
|
68
|
+
value?: string;
|
|
69
|
+
min?: number | string;
|
|
70
|
+
max?: number | string;
|
|
71
|
+
step?: number;
|
|
72
|
+
onFocus?: OnFocus<string>;
|
|
73
|
+
onBlur?: OnBlur<string>;
|
|
74
|
+
onKeyPress?: OnKeyPress<string>;
|
|
75
|
+
}
|
|
76
|
+
interface GoANumberInputProps extends BaseProps {
|
|
77
|
+
onChange: OnChange<number>;
|
|
78
|
+
value?: number;
|
|
79
|
+
min?: number;
|
|
80
|
+
max?: number;
|
|
81
|
+
step?: number;
|
|
82
|
+
onFocus?: OnFocus<number>;
|
|
83
|
+
onBlur?: OnBlur<number>;
|
|
84
|
+
onKeyPress?: OnKeyPress<number>;
|
|
85
|
+
}
|
|
86
|
+
interface GoADateInputProps extends BaseProps {
|
|
87
|
+
onChange: OnChange<GoADate>;
|
|
88
|
+
value?: GoADate;
|
|
89
|
+
min?: GoADate;
|
|
90
|
+
max?: GoADate;
|
|
91
|
+
step?: number;
|
|
92
|
+
onFocus?: OnFocus<GoADate>;
|
|
93
|
+
onBlur?: OnBlur<GoADate>;
|
|
94
|
+
onKeyPress?: OnKeyPress<GoADate>;
|
|
95
|
+
}
|
|
96
|
+
export declare function GoAInput({ id, debounce, name, type, autoCapitalize, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoAInputProps & {
|
|
97
|
+
type?: GoAInputType;
|
|
98
|
+
}): JSX.Element;
|
|
99
|
+
export declare function GoAInputText(props: GoAInputProps): JSX.Element;
|
|
100
|
+
export declare function GoAInputPassword(props: GoAInputProps): JSX.Element;
|
|
101
|
+
export declare function GoAInputDate({ value, min, max, ...props }: GoADateInputProps): JSX.Element;
|
|
102
|
+
export declare function GoAInputTime({ value, min, max, ...props }: GoAInputProps): JSX.Element;
|
|
103
|
+
export declare function GoAInputDateTime({ value, min, max, ...props }: GoADateInputProps): JSX.Element;
|
|
104
|
+
export declare function GoAInputEmail(props: GoAInputProps): JSX.Element;
|
|
105
|
+
export declare function GoAInputSearch(props: GoAInputProps): JSX.Element;
|
|
106
|
+
export declare function GoAInputUrl(props: GoAInputProps): JSX.Element;
|
|
107
|
+
export declare function GoAInputTel(props: GoAInputProps): JSX.Element;
|
|
108
|
+
export declare function GoAInputFile(props: GoAInputProps): JSX.Element;
|
|
109
|
+
export declare function GoAInputMonth(props: GoAInputProps): JSX.Element;
|
|
110
|
+
export declare function GoAInputNumber({ min, max, value, ...props }: GoANumberInputProps): JSX.Element;
|
|
111
|
+
export declare function GoAInputRange(props: GoAInputProps): JSX.Element;
|
|
112
|
+
export default GoAInput;
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export
|
|
1
|
+
declare global {
|
|
2
|
+
namespace JSX {
|
|
3
|
+
interface IntrinsicElements {
|
|
4
|
+
"goa-microsite-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type GoAServiceLevel = "alpha" | "beta" | "live";
|
|
9
|
+
export type GoALinkTarget = "self" | "blank";
|
|
10
|
+
export type ServiceLevel = GoAServiceLevel;
|
|
11
|
+
interface WCProps {
|
|
12
|
+
type: GoAServiceLevel;
|
|
13
|
+
version?: string;
|
|
14
|
+
feedbackurl?: string;
|
|
15
|
+
maxcontentwidth?: string;
|
|
16
|
+
feedbackurltarget?: GoALinkTarget;
|
|
17
|
+
headerurltarget?: GoALinkTarget;
|
|
18
|
+
}
|
|
19
|
+
export interface GoAHeaderProps {
|
|
20
|
+
type: GoAServiceLevel;
|
|
21
|
+
version?: string;
|
|
22
|
+
feedbackUrl?: string;
|
|
23
|
+
testId?: string;
|
|
24
|
+
maxContentWidth?: string;
|
|
25
|
+
feedbackUrlTarget?: GoALinkTarget;
|
|
26
|
+
headerUrlTarget?: GoALinkTarget;
|
|
27
|
+
}
|
|
28
|
+
export type HeaderProps = GoAHeaderProps;
|
|
29
|
+
export declare function GoAMicrositeHeader({ type, version, feedbackUrl, maxContentWidth, feedbackUrlTarget, headerUrlTarget, testId, }: GoAHeaderProps): JSX.Element;
|
|
30
|
+
export default GoAMicrositeHeader;
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { ReactElement, ReactNode, RefObject } from "react";
|
|
2
|
+
export type GoAModalTransition = "fast" | "slow" | "none";
|
|
3
|
+
export type GoAModalCalloutVariant = "information" | "important" | "emergency" | "success" | "event";
|
|
4
|
+
export type ModalTransition = GoAModalTransition;
|
|
5
|
+
export type CalloutVariant = GoAModalCalloutVariant;
|
|
6
|
+
interface WCProps {
|
|
7
|
+
ref: RefObject<HTMLElement>;
|
|
8
|
+
heading?: ReactNode;
|
|
9
|
+
open?: boolean;
|
|
10
|
+
maxwidth?: string;
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
transition?: GoAModalTransition;
|
|
13
|
+
calloutvariant?: GoAModalCalloutVariant;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
namespace JSX {
|
|
17
|
+
interface IntrinsicElements {
|
|
18
|
+
"goa-modal": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export interface GoAModalProps {
|
|
23
|
+
heading?: ReactNode;
|
|
24
|
+
maxWidth?: string;
|
|
25
|
+
actions?: ReactElement;
|
|
26
|
+
onClose?: () => void;
|
|
27
|
+
transition?: GoAModalTransition;
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
open?: boolean;
|
|
30
|
+
calloutVariant?: GoAModalCalloutVariant;
|
|
31
|
+
testId?: string;
|
|
32
|
+
width?: string;
|
|
33
|
+
type?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function GoAModal({ heading, children, maxWidth, open, actions, transition, type, calloutVariant, onClose, testId, width, }: GoAModalProps): JSX.Element;
|
|
36
|
+
export default GoAModal;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export
|
|
1
|
+
export type GoANotificationType = "important" | "information" | "event" | "emergency";
|
|
2
|
+
export type GoAAriaLiveType = "polite" | "assertive" | "off";
|
|
3
|
+
export type NotificationType = GoANotificationType;
|
|
4
|
+
export type AriaLiveType = GoAAriaLiveType;
|
|
5
|
+
interface WCProps {
|
|
6
|
+
ref: React.RefObject<HTMLElement>;
|
|
7
|
+
type: GoANotificationType;
|
|
8
|
+
maxcontentwidth?: string;
|
|
9
|
+
arialive?: GoAAriaLiveType;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-notification": WCProps & React.HTMLAttributes<HTMLButtonElement>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export interface GoANotificationProps {
|
|
19
|
+
type?: GoANotificationType;
|
|
20
|
+
ariaLive?: GoAAriaLiveType;
|
|
21
|
+
maxContentWidth?: string;
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
onDismiss?: () => void;
|
|
24
|
+
testId?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const GoANotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: GoANotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default GoANotification;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare global {
|
|
3
|
-
namespace JSX {
|
|
4
|
-
interface IntrinsicElements {
|
|
5
|
-
"goa-one-column-layout": React.HTMLAttributes<HTMLElement>;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export interface
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
13
|
-
export
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
"goa-one-column-layout": React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export interface GoAPageProps {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export type PageProps = GoAPageProps;
|
|
13
|
+
export declare function GoAOneColumnLayout(props: GoAPageProps): JSX.Element;
|
|
14
|
+
export default GoAOneColumnLayout;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
width: "full" | string;
|
|
4
|
-
}
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
"goa-page-block":
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export interface
|
|
13
|
-
width: "full" | string;
|
|
14
|
-
testId?: string;
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
export
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
width: "full" | string;
|
|
4
|
+
}
|
|
5
|
+
declare global {
|
|
6
|
+
namespace JSX {
|
|
7
|
+
interface IntrinsicElements {
|
|
8
|
+
"goa-page-block": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export interface GoAPageBlockProps {
|
|
13
|
+
width: "full" | string;
|
|
14
|
+
testId?: string;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export type PageBlockProps = GoAPageBlockProps;
|
|
18
|
+
export declare function GoAPageBlock(props: PageBlockProps): JSX.Element;
|
|
19
|
+
export {};
|
package/lib/pages/pages.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Margins } from "../../common/styling";
|
|
3
|
-
interface WCProps extends Margins {
|
|
4
|
-
current?: number;
|
|
5
|
-
}
|
|
6
|
-
declare global {
|
|
7
|
-
namespace JSX {
|
|
8
|
-
interface IntrinsicElements {
|
|
9
|
-
"goa-pages": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
interface
|
|
14
|
-
current?: number;
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
export declare function GoAPages(props:
|
|
18
|
-
export default GoAPages;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
current?: number;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-pages": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface GoAPagesProps extends Margins {
|
|
14
|
+
current?: number;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function GoAPages(props: GoAPagesProps): JSX.Element;
|
|
18
|
+
export default GoAPages;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare function GoAPagination(props:
|
|
26
|
-
export default GoAPagination;
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
interface WCProps extends Margins {
|
|
3
|
+
ref?: React.MutableRefObject<HTMLElement | undefined>;
|
|
4
|
+
itemcount: number;
|
|
5
|
+
perpagecount?: number;
|
|
6
|
+
pagenumber: number;
|
|
7
|
+
variant?: "all" | "links-only";
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-pagination": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export interface GoAPaginationProps extends Margins {
|
|
17
|
+
itemCount: number;
|
|
18
|
+
perPageCount?: number;
|
|
19
|
+
pageNumber: number;
|
|
20
|
+
variant?: "all" | "links-only";
|
|
21
|
+
onChange: (page: number) => void;
|
|
22
|
+
testId?: string;
|
|
23
|
+
}
|
|
24
|
+
export type PaginationProps = GoAPaginationProps;
|
|
25
|
+
export declare function GoAPagination({ onChange, ...props }: GoAPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default GoAPagination;
|
package/lib/popover/popover.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Margins } from "../../common/styling";
|
|
3
|
-
|
|
4
|
-
interface WCProps extends Margins {
|
|
5
|
-
maxwidth?: string;
|
|
6
|
-
padded?: boolean;
|
|
7
|
-
position?:
|
|
8
|
-
relative?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare global {
|
|
11
|
-
namespace JSX {
|
|
12
|
-
interface IntrinsicElements {
|
|
13
|
-
"goa-popover": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
interface
|
|
18
|
-
target?: ReactNode;
|
|
19
|
-
testId?: string;
|
|
20
|
-
maxWidth?: string;
|
|
21
|
-
padded?: boolean;
|
|
22
|
-
position?:
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
relative?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare
|
|
27
|
-
export default GoAPopover;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
export type GoAPosition = "above" | "below" | "auto";
|
|
4
|
+
interface WCProps extends Margins {
|
|
5
|
+
maxwidth?: string;
|
|
6
|
+
padded?: boolean;
|
|
7
|
+
position?: GoAPosition;
|
|
8
|
+
relative?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
namespace JSX {
|
|
12
|
+
interface IntrinsicElements {
|
|
13
|
+
"goa-popover": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export interface GoAPopoverProps extends Margins {
|
|
18
|
+
target?: ReactNode;
|
|
19
|
+
testId?: string;
|
|
20
|
+
maxWidth?: string;
|
|
21
|
+
padded?: boolean;
|
|
22
|
+
position?: GoAPosition;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
relative?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function GoAPopover({ target, testId, maxWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoAPopoverProps): JSX.Element;
|
|
27
|
+
export default GoAPopover;
|