@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.
Files changed (78) hide show
  1. package/common/styling.d.ts +12 -9
  2. package/index.d.ts +56 -59
  3. package/index.js +23481 -0
  4. package/index.js.map +1 -0
  5. package/index.mjs +23481 -0
  6. package/index.mjs.map +1 -0
  7. package/lib/accordion/accordion.d.ts +28 -28
  8. package/lib/app-header/app-header.d.ts +23 -22
  9. package/lib/app-header-menu/app-header-menu.d.ts +20 -20
  10. package/lib/badge/badge.d.ts +40 -41
  11. package/lib/block/block.d.ts +23 -22
  12. package/lib/button/button.d.ts +38 -35
  13. package/lib/button-group/button-group.d.ts +23 -23
  14. package/lib/calendar/calendar.d.ts +24 -25
  15. package/lib/callout/callout.d.ts +25 -25
  16. package/lib/checkbox/checkbox.d.ts +37 -37
  17. package/lib/chip/chip.d.ts +28 -29
  18. package/lib/circular-progress/circular-progress.d.ts +28 -27
  19. package/lib/container/container.d.ts +29 -29
  20. package/lib/date-picker/date-picker.d.ts +24 -25
  21. package/lib/details/details.d.ts +21 -20
  22. package/lib/divider/divider.d.ts +13 -13
  23. package/lib/dropdown/dropdown-item.d.ts +23 -24
  24. package/lib/dropdown/dropdown.d.ts +49 -50
  25. package/lib/file-upload-card/file-upload-card.d.ts +26 -27
  26. package/lib/file-upload-input/file-upload-input.d.ts +22 -23
  27. package/lib/footer/footer.d.ts +19 -18
  28. package/lib/footer-meta-section/footer-meta-section.d.ts +14 -13
  29. package/lib/footer-nav-section/footer-nav-section.d.ts +20 -20
  30. package/lib/{form → form-item}/form-item.d.ts +30 -30
  31. package/lib/form-step/form-step.d.ts +19 -19
  32. package/lib/form-stepper/form-stepper.d.ts +22 -21
  33. package/lib/grid/grid.d.ts +20 -21
  34. package/lib/hero-banner/hero-banner-actions.d.ts +5 -6
  35. package/lib/hero-banner/hero-banner.d.ts +27 -28
  36. package/lib/icon/icon.d.ts +41 -39
  37. package/lib/icon-button/icon-button.d.ts +31 -31
  38. package/lib/input/input.d.ts +112 -115
  39. package/lib/microsite-header/microsite-header.d.ts +30 -28
  40. package/lib/modal/modal.d.ts +36 -34
  41. package/lib/notification/notification.d.ts +27 -26
  42. package/lib/one-column-layout/one-column-layout.d.ts +14 -13
  43. package/lib/page-block/page-block.d.ts +19 -17
  44. package/lib/pages/pages.d.ts +18 -18
  45. package/lib/pagination/pagination.d.ts +26 -26
  46. package/lib/popover/popover.d.ts +27 -27
  47. package/lib/radio-group/radio-group.d.ts +32 -32
  48. package/lib/radio-group/radio.d.ts +29 -30
  49. package/lib/side-menu/side-menu.d.ts +14 -13
  50. package/lib/side-menu-group/side-menu-group.d.ts +17 -17
  51. package/lib/side-menu-heading/side-menu-heading.d.ts +19 -19
  52. package/lib/skeleton/skeleton.d.ts +27 -26
  53. package/lib/spacer/spacer.d.ts +20 -20
  54. package/lib/spinner/spinner.d.ts +25 -25
  55. package/lib/tab/tab.d.ts +17 -17
  56. package/lib/table/table-sort-header.d.ts +19 -20
  57. package/lib/table/table.d.ts +27 -25
  58. package/lib/tabs/tabs.d.ts +16 -17
  59. package/lib/textarea/textarea.d.ts +41 -39
  60. package/lib/three-column-layout/three-column-layout.d.ts +26 -26
  61. package/lib/tooltip/tooltip.d.ts +25 -23
  62. package/lib/two-column-layout/two-column-layout.d.ts +22 -22
  63. package/package.json +16 -11
  64. package/README.md +0 -34
  65. package/experimental/index.d.ts +0 -0
  66. package/experimental/package.json +0 -11
  67. package/experimental/react-components.esm.js +0 -1
  68. package/experimental/react-components.umd.js +0 -8
  69. package/lib/card/card-actions.d.ts +0 -13
  70. package/lib/card/card-content.d.ts +0 -13
  71. package/lib/card/card-group.d.ts +0 -13
  72. package/lib/card/card-image.d.ts +0 -18
  73. package/lib/card/card.d.ts +0 -22
  74. package/lib/card/index.d.ts +0 -5
  75. package/lib/form/index.d.ts +0 -1
  76. package/lib/form/validators.d.ts +0 -10
  77. package/react-components.esm.js +0 -3383
  78. package/react-components.umd.js +0 -3443
@@ -1,115 +1,112 @@
1
- import React, { FC } from "react";
2
- import { GoAIconType } from "../..";
3
- import { Margins } from "../../common/styling";
4
- export declare type GoADate = Date | string;
5
- declare type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
6
- 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 = (name: string, value: string) => void;
64
- declare type OnFocus = (name: string, value: string) => void;
65
- declare type OnBlur = (name: string, value: string) => void;
66
- export interface InputProps extends BaseProps {
67
- onChange: OnChange;
68
- value: string;
69
- min?: number | string;
70
- max?: number | string;
71
- step?: number;
72
- onFocus?: OnFocus;
73
- onBlur?: OnBlur;
74
- }
75
- declare type OnNumberChange = (name: string, value: number) => void;
76
- declare type OnNumberFocus = (name: string, value: number) => void;
77
- declare type OnNumberBlur = (name: string, value: number) => void;
78
- interface NumberInputProps extends BaseProps {
79
- onChange: OnNumberChange;
80
- value: number;
81
- min?: number;
82
- max?: number;
83
- step?: number;
84
- onFocus?: OnNumberFocus;
85
- onBlur?: OnNumberBlur;
86
- }
87
- declare type OnDateChange = (name: string, value: GoADate) => void;
88
- declare type OnDateFocus = (name: string, value: GoADate) => void;
89
- declare type OnDateBlur = (name: string, value: GoADate) => void;
90
- interface DateInputProps extends BaseProps {
91
- onChange: OnDateChange;
92
- value: GoADate;
93
- min?: GoADate;
94
- max?: GoADate;
95
- step?: number;
96
- onFocus?: OnDateFocus;
97
- onBlur?: OnDateBlur;
98
- }
99
- export declare const GoAInput: FC<InputProps & {
100
- type?: GoAInputType;
101
- }>;
102
- export declare const GoAInputText: FC<InputProps>;
103
- export declare const GoAInputPassword: FC<InputProps>;
104
- export declare const GoAInputDate: FC<DateInputProps>;
105
- export declare const GoAInputTime: FC<InputProps>;
106
- export declare const GoAInputDateTime: FC<DateInputProps>;
107
- export declare const GoAInputEmail: FC<InputProps>;
108
- export declare const GoAInputSearch: FC<InputProps>;
109
- export declare const GoAInputUrl: FC<InputProps>;
110
- export declare const GoAInputTel: FC<InputProps>;
111
- export declare const GoAInputFile: FC<InputProps>;
112
- export declare const GoAInputMonth: FC<InputProps>;
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
- import React, { FC } from "react";
2
- declare global {
3
- namespace JSX {
4
- interface IntrinsicElements {
5
- "goa-microsite-header": WebComponentProps & React.HTMLAttributes<HTMLElement>;
6
- }
7
- }
8
- }
9
- export declare type ServiceLevel = "alpha" | "beta" | "live";
10
- interface WebComponentProps {
11
- type: ServiceLevel;
12
- version?: string;
13
- feedbackurl?: string;
14
- maxcontentwidth?: string;
15
- feedbackurltarget?: "self" | "blank";
16
- headerurltarget?: "self" | "blank";
17
- }
18
- export interface HeaderProps {
19
- type: ServiceLevel;
20
- version?: string;
21
- feedbackUrl?: string;
22
- testId?: string;
23
- maxContentWidth?: string;
24
- feedbackUrlTarget?: "self" | "blank";
25
- headerUrlTarget?: "self" | "blank";
26
- }
27
- export declare const GoAMicrositeHeader: FC<HeaderProps>;
28
- 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,34 +1,36 @@
1
- import React, { FC } from "react";
2
- export declare type ModalTransition = "fast" | "slow" | "none";
3
- export declare type CalloutVariant = "information" | "important" | "emergency" | "success" | "event";
4
- interface WCProps {
5
- ref: React.RefObject<HTMLElement>;
6
- heading?: React.ReactNode;
7
- open?: boolean;
8
- maxwidth?: string;
9
- closable?: boolean;
10
- transition?: ModalTransition;
11
- calloutVariant?: CalloutVariant;
12
- }
13
- declare global {
14
- namespace JSX {
15
- interface IntrinsicElements {
16
- "goa-modal": WCProps & React.HTMLAttributes<HTMLElement>;
17
- }
18
- }
19
- }
20
- interface Props {
21
- heading?: React.ReactNode;
22
- maxWidth?: string;
23
- actions?: React.ReactElement;
24
- onClose?: () => void;
25
- transition?: ModalTransition;
26
- children?: React.ReactNode;
27
- open?: boolean;
28
- type?: string;
29
- calloutVariant?: CalloutVariant;
30
- testId?: string;
31
- width?: string;
32
- }
33
- export declare const GoAModal: FC<Props>;
34
- 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,26 +1,27 @@
1
- import React from "react";
2
- export declare type NotificationType = "important" | "information" | "event" | "emergency";
3
- export declare type AriaLiveType = "polite" | "assertive" | "off";
4
- interface WCProps {
5
- ref: React.RefObject<HTMLElement>;
6
- type: NotificationType;
7
- maxcontentwidth?: string;
8
- arialive?: AriaLiveType;
9
- }
10
- declare global {
11
- namespace JSX {
12
- interface IntrinsicElements {
13
- "goa-notification": WCProps & React.HTMLAttributes<HTMLButtonElement>;
14
- }
15
- }
16
- }
17
- interface Props {
18
- type?: NotificationType;
19
- ariaLive?: AriaLiveType;
20
- maxContentWidth?: string;
21
- children?: React.ReactNode;
22
- onDismiss?: () => void;
23
- testId?: string;
24
- }
25
- export declare const GoANotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: Props) => JSX.Element;
26
- 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,13 +1,14 @@
1
- import React, { 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 PageProps {
10
- children?: ReactNode;
11
- }
12
- export declare function GoAOneColumnLayout(props: PageProps): JSX.Element;
13
- 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,17 +1,19 @@
1
- import React, { FC, 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 PageBlockProps {
13
- width: "full" | string;
14
- testId?: string;
15
- children?: ReactNode;
16
- }
17
- export declare const GoAPageBlock: FC<PageBlockProps>;
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 React, { 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
- interface PagesProps extends Margins {
14
- current?: number;
15
- children?: ReactNode;
16
- }
17
- export declare function GoAPages(props: PagesProps): 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,26 +1,26 @@
1
- import React from "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 PaginationProps 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 function GoAPagination(props: PaginationProps): JSX.Element;
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;
@@ -1,27 +1,27 @@
1
- import React, { FC, ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- declare type Position = "above" | "below" | "auto";
4
- interface WCProps extends Margins {
5
- maxwidth?: string;
6
- padded?: boolean;
7
- position?: 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 Props extends Margins {
18
- target?: ReactNode;
19
- testId?: string;
20
- maxWidth?: string;
21
- padded?: boolean;
22
- position?: Position;
23
- children: ReactNode;
24
- relative?: boolean;
25
- }
26
- export declare const GoAPopover: FC<Props>;
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;