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