@abgov/react-components 5.0.0-alpha.14 → 5.0.0-alpha.16

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 (91) hide show
  1. package/experimental/form/form-summary.d.ts +2 -1
  2. package/experimental/form/form.d.ts +10 -21
  3. package/experimental/form/task-list.d.ts +6 -5
  4. package/experimental/form/task.d.ts +6 -5
  5. package/experimental/index.d.ts +2 -2
  6. package/experimental/resizable-panel/ResizablePanel.d.ts +2 -1
  7. package/experimental.js +4 -4
  8. package/experimental.js.map +1 -1
  9. package/experimental.mjs +4 -4
  10. package/experimental.mjs.map +1 -1
  11. package/{icon-1IRcN4Uf.js → icon-DmXlIizF.js} +3 -3
  12. package/icon-DmXlIizF.js.map +1 -0
  13. package/{icon-DgSW1II3.mjs → icon-iZ6Uu6WB.mjs} +3 -3
  14. package/icon-iZ6Uu6WB.mjs.map +1 -0
  15. package/index.d.ts +60 -61
  16. package/index.js +241 -257
  17. package/index.js.map +1 -1
  18. package/index.mjs +241 -257
  19. package/index.mjs.map +1 -1
  20. package/lib/accordion/accordion.d.ts +11 -12
  21. package/lib/app-header/app-header.d.ts +4 -3
  22. package/lib/app-header-menu/app-header-menu.d.ts +8 -7
  23. package/lib/badge/badge.d.ts +10 -10
  24. package/lib/block/block.d.ts +9 -9
  25. package/lib/button/button.d.ts +14 -20
  26. package/lib/button-group/button-group.d.ts +9 -11
  27. package/lib/calendar/calendar.d.ts +6 -5
  28. package/lib/callout/callout.d.ts +13 -17
  29. package/lib/card/card-actions.d.ts +4 -3
  30. package/lib/card/card-content.d.ts +4 -3
  31. package/lib/card/card-group.d.ts +4 -3
  32. package/lib/card/card-image.d.ts +4 -3
  33. package/lib/card/card.d.ts +6 -4
  34. package/lib/card/index.d.ts +5 -5
  35. package/lib/checkbox/checkbox.d.ts +7 -6
  36. package/lib/chip/chip.d.ts +9 -10
  37. package/lib/circular-progress/circular-progress.d.ts +9 -11
  38. package/lib/container/container.d.ts +14 -17
  39. package/lib/date-picker/date-picker.d.ts +6 -5
  40. package/lib/details/details.d.ts +6 -6
  41. package/lib/divider/divider.d.ts +5 -4
  42. package/lib/drawer/drawer.d.ts +2 -1
  43. package/lib/dropdown/dropdown-item.d.ts +7 -6
  44. package/lib/dropdown/dropdown.d.ts +7 -7
  45. package/lib/fieldset/fieldset.d.ts +7 -6
  46. package/lib/file-upload-card/file-upload-card.d.ts +8 -6
  47. package/lib/file-upload-input/file-upload-input.d.ts +8 -7
  48. package/lib/filter-chip/filter-chip.d.ts +2 -1
  49. package/lib/footer/footer.d.ts +6 -5
  50. package/lib/footer-meta-section/footer-meta-section.d.ts +5 -5
  51. package/lib/footer-nav-section/footer-nav-section.d.ts +5 -4
  52. package/lib/form-item/form-item.d.ts +11 -12
  53. package/lib/form-step/form-step.d.ts +7 -7
  54. package/lib/form-stepper/form-stepper.d.ts +7 -7
  55. package/lib/grid/grid.d.ts +5 -4
  56. package/lib/hero-banner/hero-banner-actions.d.ts +4 -3
  57. package/lib/hero-banner/hero-banner.d.ts +4 -3
  58. package/lib/icon/icon.d.ts +11 -18
  59. package/lib/icon-button/icon-button.d.ts +10 -12
  60. package/lib/input/input.d.ts +39 -42
  61. package/lib/link/link.d.ts +7 -7
  62. package/lib/link-button/link-button.d.ts +9 -10
  63. package/lib/microsite-header/microsite-header.d.ts +12 -14
  64. package/lib/modal/modal.d.ts +12 -17
  65. package/lib/notification/notification.d.ts +9 -11
  66. package/lib/one-column-layout/one-column-layout.d.ts +6 -5
  67. package/lib/page-block/page-block.d.ts +5 -4
  68. package/lib/pages/pages.d.ts +6 -5
  69. package/lib/pagination/pagination.d.ts +7 -6
  70. package/lib/popover/popover.d.ts +8 -8
  71. package/lib/radio-group/radio-group.d.ts +9 -9
  72. package/lib/radio-group/radio.d.ts +5 -4
  73. package/lib/side-menu/side-menu.d.ts +5 -5
  74. package/lib/side-menu-group/side-menu-group.d.ts +8 -8
  75. package/lib/side-menu-heading/side-menu-heading.d.ts +8 -7
  76. package/lib/skeleton/skeleton.d.ts +10 -12
  77. package/lib/spacer/spacer.d.ts +9 -9
  78. package/lib/spinner/spinner.d.ts +10 -10
  79. package/lib/tab/tab.d.ts +3 -3
  80. package/lib/table/table-sort-header.d.ts +7 -6
  81. package/lib/table/table.d.ts +10 -11
  82. package/lib/tabs/tabs.d.ts +7 -5
  83. package/lib/text/text.d.ts +11 -16
  84. package/lib/textarea/textarea.d.ts +9 -10
  85. package/lib/three-column-layout/three-column-layout.d.ts +5 -4
  86. package/lib/tooltip/tooltip.d.ts +10 -11
  87. package/lib/two-column-layout/two-column-layout.d.ts +5 -4
  88. package/package.json +2 -2
  89. package/common/styling.d.ts +0 -12
  90. package/icon-1IRcN4Uf.js.map +0 -1
  91. package/icon-DgSW1II3.mjs.map +0 -1
@@ -1,15 +1,12 @@
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";
1
+ import { GoabAutoCapitalize, GoabDate, GoabIconType, GoaInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
6
3
  interface WCProps extends Margins {
7
4
  ref?: React.MutableRefObject<HTMLInputElement | null>;
8
- type?: GoAInputType;
5
+ type?: GoabInputType;
9
6
  name: string;
10
7
  value?: string;
11
8
  id?: string;
12
- autocapitalize?: GoAAutoCapitalize;
9
+ autocapitalize?: GoabAutoCapitalize;
13
10
  debounce?: number;
14
11
  placeholder?: string;
15
12
  leadingicon?: string;
@@ -42,10 +39,10 @@ interface BaseProps extends Margins {
42
39
  id?: string;
43
40
  debounce?: number;
44
41
  disabled?: boolean;
45
- autoCapitalize?: GoAAutoCapitalize;
42
+ autoCapitalize?: GoabAutoCapitalize;
46
43
  placeholder?: string;
47
- leadingIcon?: GoAIconType;
48
- trailingIcon?: GoAIconType;
44
+ leadingIcon?: GoabIconType;
45
+ trailingIcon?: GoabIconType;
49
46
  onTrailingIconClick?: () => void;
50
47
  variant?: "goa" | "bare";
51
48
  focused?: boolean;
@@ -60,12 +57,12 @@ interface BaseProps extends Margins {
60
57
  trailingContent?: React.ReactNode;
61
58
  maxLength?: number;
62
59
  }
63
- type OnChange<T = string> = (name: string, value: T) => void;
64
- type OnFocus<T = string> = (name: string, value: T) => void;
65
- type OnBlur<T = string> = (name: string, value: T) => void;
66
- type OnKeyPress<T = string> = (name: string, value: T, key: string) => void;
67
- export interface GoAInputProps extends BaseProps {
68
- onChange?: OnChange<string>;
60
+ type OnChange<T = string> = (detail: GoabInputOnChangeDetail<T>) => void;
61
+ type OnFocus<T = string> = (detail: GoabInputOnFocusDetail<T>) => void;
62
+ type OnBlur<T = string> = (detail: GoaInputOnBlurDetail<T>) => void;
63
+ type OnKeyPress<T = string> = (detail: GoabInputOnKeyPressDetail<T>) => void;
64
+ export interface GoabInputProps extends BaseProps {
65
+ onChange: OnChange<string>;
69
66
  value?: string;
70
67
  min?: number | string;
71
68
  max?: number | string;
@@ -74,8 +71,8 @@ export interface GoAInputProps extends BaseProps {
74
71
  onBlur?: OnBlur<string>;
75
72
  onKeyPress?: OnKeyPress<string>;
76
73
  }
77
- interface GoANumberInputProps extends BaseProps {
78
- onChange?: OnChange<number>;
74
+ interface GoabNumberInputProps extends BaseProps {
75
+ onChange: OnChange<number>;
79
76
  value?: number;
80
77
  min?: number;
81
78
  max?: number;
@@ -84,30 +81,30 @@ interface GoANumberInputProps extends BaseProps {
84
81
  onBlur?: OnBlur<number>;
85
82
  onKeyPress?: OnKeyPress<number>;
86
83
  }
87
- interface GoADateInputProps extends BaseProps {
88
- onChange?: OnChange<GoADate>;
89
- value?: GoADate;
90
- min?: GoADate;
91
- max?: GoADate;
84
+ interface GoabDateInputProps extends BaseProps {
85
+ onChange: OnChange<GoabDate>;
86
+ value?: GoabDate;
87
+ min?: GoabDate;
88
+ max?: GoabDate;
92
89
  step?: number;
93
- onFocus?: OnFocus<GoADate>;
94
- onBlur?: OnBlur<GoADate>;
95
- onKeyPress?: OnKeyPress<GoADate>;
90
+ onFocus?: OnFocus<GoabDate>;
91
+ onBlur?: OnBlur<GoabDate>;
92
+ onKeyPress?: OnKeyPress<GoabDate>;
96
93
  }
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;
94
+ export declare function GoabInput({ 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, }: GoabInputProps & {
95
+ type?: GoabInputType;
99
96
  }): 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;
97
+ export declare function GoabInputText(props: GoabInputProps): JSX.Element;
98
+ export declare function GoabInputPassword(props: GoabInputProps): JSX.Element;
99
+ export declare function GoabInputDate({ value, min, max, ...props }: GoabDateInputProps): JSX.Element;
100
+ export declare function GoabInputTime({ value, min, max, ...props }: GoabInputProps): JSX.Element;
101
+ export declare function GoabInputDateTime({ value, min, max, ...props }: GoabDateInputProps): JSX.Element;
102
+ export declare function GoabInputEmail(props: GoabInputProps): JSX.Element;
103
+ export declare function GoabInputSearch(props: GoabInputProps): JSX.Element;
104
+ export declare function GoabInputUrl(props: GoabInputProps): JSX.Element;
105
+ export declare function GoabInputTel(props: GoabInputProps): JSX.Element;
106
+ export declare function GoabInputFile(props: GoabInputProps): JSX.Element;
107
+ export declare function GoabInputMonth(props: GoabInputProps): JSX.Element;
108
+ export declare function GoabInputNumber({ min, max, value, ...props }: GoabNumberInputProps): JSX.Element;
109
+ export declare function GoabInputRange(props: GoabInputProps): JSX.Element;
110
+ export default GoabInput;
@@ -1,9 +1,9 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- import { GoAIconType } from "../icon/icon";
1
+ import { GoabIconType, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+ import { ReactNode } from 'react';
3
+
4
4
  interface WCProps extends Margins {
5
- leadingicon?: GoAIconType;
6
- trailingicon?: GoAIconType;
5
+ leadingicon?: GoabIconType;
6
+ trailingicon?: GoabIconType;
7
7
  }
8
8
  declare global {
9
9
  namespace JSX {
@@ -13,8 +13,8 @@ declare global {
13
13
  }
14
14
  }
15
15
  interface GoALinkProps extends Margins {
16
- leadingIcon?: GoAIconType;
17
- trailingIcon?: GoAIconType;
16
+ leadingIcon?: GoabIconType;
17
+ trailingIcon?: GoabIconType;
18
18
  children: ReactNode;
19
19
  }
20
20
  export declare function GoALink(props: GoALinkProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- import { GoAIconType } from "../icon/icon";
4
- export type GoALinkButtonType = "start" | "primary" | "secondary" | "tertiary";
1
+ import { GoabIconType, GoabLinkButtonType, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+ import { ReactNode } from 'react';
3
+
5
4
  interface WCProps extends Margins {
6
- type?: GoALinkButtonType;
7
- leadingicon?: GoAIconType;
8
- trailingicon?: GoAIconType;
5
+ type?: GoabLinkButtonType;
6
+ leadingicon?: GoabIconType;
7
+ trailingicon?: GoabIconType;
9
8
  }
10
9
  declare global {
11
10
  namespace JSX {
@@ -15,9 +14,9 @@ declare global {
15
14
  }
16
15
  }
17
16
  interface GoALinkButtonProps extends Margins {
18
- type?: GoALinkButtonType;
19
- leadingIcon?: GoAIconType;
20
- trailingIcon?: GoAIconType;
17
+ type?: GoabLinkButtonType;
18
+ leadingIcon?: GoabIconType;
19
+ trailingIcon?: GoabIconType;
21
20
  children: ReactNode;
22
21
  }
23
22
  export declare function GoALinkButton({ type, ...props }: GoALinkButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,5 @@
1
+ import { GoabLinkTarget, GoabServiceLevel } from '../../../../../dist/libs/common/index.d.ts';
2
+
1
3
  declare global {
2
4
  namespace JSX {
3
5
  interface IntrinsicElements {
@@ -5,30 +7,26 @@ declare global {
5
7
  }
6
8
  }
7
9
  }
8
- export type GoAServiceLevel = "alpha" | "beta" | "live";
9
- export type GoALinkTarget = "self" | "blank";
10
- export type ServiceLevel = GoAServiceLevel;
11
10
  interface WCProps {
12
- type: GoAServiceLevel;
11
+ type: GoabServiceLevel;
13
12
  version?: string;
14
13
  feedbackurl?: string;
15
14
  maxcontentwidth?: string;
16
- feedbackurltarget?: GoALinkTarget;
17
- headerurltarget?: GoALinkTarget;
15
+ feedbackurltarget?: GoabLinkTarget;
16
+ headerurltarget?: GoabLinkTarget;
18
17
  hasfeedbackhandler?: boolean;
19
18
  ref: React.RefObject<HTMLElement>;
20
19
  testid?: string;
21
20
  }
22
- export interface GoAHeaderProps {
23
- type: GoAServiceLevel;
24
- version?: React.ReactNode;
21
+ export interface GoabHeaderProps {
22
+ type: GoabServiceLevel;
23
+ version?: string | React.ReactNode;
25
24
  feedbackUrl?: string;
26
25
  testId?: string;
27
26
  maxContentWidth?: string;
28
- feedbackUrlTarget?: GoALinkTarget;
29
- headerUrlTarget?: GoALinkTarget;
27
+ feedbackUrlTarget?: GoabLinkTarget;
28
+ headerUrlTarget?: GoabLinkTarget;
30
29
  onFeedbackClick?: () => void;
31
30
  }
32
- export type HeaderProps = GoAHeaderProps;
33
- export declare function GoAMicrositeHeader({ type, version, feedbackUrl, maxContentWidth, feedbackUrlTarget, headerUrlTarget, testId, onFeedbackClick, }: GoAHeaderProps): JSX.Element;
34
- export default GoAMicrositeHeader;
31
+ export declare function GoabMicrositeHeader({ type, version, feedbackUrl, maxContentWidth, feedbackUrlTarget, headerUrlTarget, testId, onFeedbackClick, }: GoabHeaderProps): JSX.Element;
32
+ export default GoabMicrositeHeader;
@@ -1,18 +1,15 @@
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 GoAModalRole = "dialog" | "alertdialog";
5
- export type ModalTransition = GoAModalTransition;
6
- export type CalloutVariant = GoAModalCalloutVariant;
1
+ import { ReactElement, ReactNode, RefObject } from 'react';
2
+ import { GoabModalCalloutVariant, GoabModalRole, GoabModalTransition } from '../../../../../dist/libs/common/index.d.ts';
3
+
7
4
  interface WCProps {
8
5
  ref: RefObject<HTMLElement>;
9
6
  heading?: ReactNode;
10
7
  open?: boolean;
11
8
  maxwidth?: string;
12
9
  closable?: boolean;
13
- transition?: GoAModalTransition;
14
- calloutvariant?: GoAModalCalloutVariant;
15
- role?: GoAModalRole;
10
+ role?: GoabModalRole;
11
+ transition?: GoabModalTransition;
12
+ calloutvariant?: GoabModalCalloutVariant;
16
13
  testid?: string;
17
14
  }
18
15
  declare global {
@@ -22,19 +19,17 @@ declare global {
22
19
  }
23
20
  }
24
21
  }
25
- export interface GoAModalProps {
22
+ export interface GoabModalProps {
26
23
  heading?: ReactNode;
27
24
  maxWidth?: string;
28
25
  actions?: ReactElement;
29
26
  onClose?: () => void;
30
- transition?: GoAModalTransition;
27
+ transition?: GoabModalTransition;
31
28
  children?: ReactNode;
32
29
  open?: boolean;
33
- calloutVariant?: GoAModalCalloutVariant;
30
+ calloutVariant?: GoabModalCalloutVariant;
34
31
  testId?: string;
35
- role?: GoAModalRole;
36
- width?: string;
37
- type?: string;
32
+ role?: GoabModalRole;
38
33
  }
39
- export declare function GoAModal({ heading, children, maxWidth, open, actions, transition, type, calloutVariant, onClose, testId, role, width, }: GoAModalProps): JSX.Element;
40
- export default GoAModal;
34
+ export declare function GoabModal({ heading, children, maxWidth, open, actions, transition, calloutVariant, onClose, testId, role, }: GoabModalProps): JSX.Element;
35
+ export default GoabModal;
@@ -1,12 +1,10 @@
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;
1
+ import { GoabAriaLiveType, GoabNotificationType } from '../../../../../dist/libs/common/index.d.ts';
2
+
5
3
  interface WCProps {
6
4
  ref: React.RefObject<HTMLElement>;
7
- type: GoANotificationType;
5
+ type: GoabNotificationType;
8
6
  maxcontentwidth?: string;
9
- arialive?: GoAAriaLiveType;
7
+ arialive?: GoabAriaLiveType;
10
8
  testid?: string;
11
9
  }
12
10
  declare global {
@@ -16,13 +14,13 @@ declare global {
16
14
  }
17
15
  }
18
16
  }
19
- export interface GoANotificationProps {
20
- type?: GoANotificationType;
21
- ariaLive?: GoAAriaLiveType;
17
+ export interface GoabNotificationProps {
18
+ type?: GoabNotificationType;
19
+ ariaLive?: GoabAriaLiveType;
22
20
  maxContentWidth?: string;
23
21
  children?: React.ReactNode;
24
22
  onDismiss?: () => void;
25
23
  testId?: string;
26
24
  }
27
- export declare const GoANotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: GoANotificationProps) => import("react/jsx-runtime").JSX.Element;
28
- export default GoANotification;
25
+ export declare const GoabNotification: ({ type, ariaLive, maxContentWidth, children, testId, onDismiss, }: GoabNotificationProps) => import("react/jsx-runtime").JSX.Element;
26
+ export default GoabNotification;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  declare global {
3
4
  namespace JSX {
4
5
  interface IntrinsicElements {
@@ -6,9 +7,9 @@ declare global {
6
7
  }
7
8
  }
8
9
  }
9
- export interface GoAPageProps {
10
+ export interface GoabPageProps {
10
11
  children?: ReactNode;
11
12
  }
12
- export type PageProps = GoAPageProps;
13
- export declare function GoAOneColumnLayout(props: GoAPageProps): JSX.Element;
14
- export default GoAOneColumnLayout;
13
+ export type PageProps = GoabPageProps;
14
+ export declare function GoabOneColumnLayout(props: GoabPageProps): JSX.Element;
15
+ export default GoabOneColumnLayout;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface WCProps {
3
4
  width: "full" | string;
4
5
  testid?: string;
@@ -10,11 +11,11 @@ declare global {
10
11
  }
11
12
  }
12
13
  }
13
- export interface GoAPageBlockProps {
14
+ export interface GoabPageBlockProps {
14
15
  width: "full" | string;
15
16
  testId?: string;
16
17
  children?: ReactNode;
17
18
  }
18
- export type PageBlockProps = GoAPageBlockProps;
19
- export declare function GoAPageBlock(props: PageBlockProps): JSX.Element;
19
+ export type PageBlockProps = GoabPageBlockProps;
20
+ export declare function GoabPageBlock(props: PageBlockProps): JSX.Element;
20
21
  export {};
@@ -1,5 +1,6 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../../../../dist/libs/common/index.d.ts';
3
+
3
4
  interface WCProps extends Margins {
4
5
  current?: number;
5
6
  }
@@ -10,9 +11,9 @@ declare global {
10
11
  }
11
12
  }
12
13
  }
13
- export interface GoAPagesProps extends Margins {
14
+ export interface GoabPagesProps extends Margins {
14
15
  current?: number;
15
16
  children?: ReactNode;
16
17
  }
17
- export declare function GoAPages(props: GoAPagesProps): JSX.Element;
18
- export default GoAPages;
18
+ export declare function GoabPages(props: GoabPagesProps): JSX.Element;
19
+ export default GoabPages;
@@ -1,4 +1,5 @@
1
- import { Margins } from "../../common/styling";
1
+ import { GoabPaginationOnChangeDetail, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
2
3
  interface WCProps extends Margins {
3
4
  ref?: React.MutableRefObject<HTMLElement | undefined>;
4
5
  itemcount: number;
@@ -14,14 +15,14 @@ declare global {
14
15
  }
15
16
  }
16
17
  }
17
- export interface GoAPaginationProps extends Margins {
18
+ export interface GoabPaginationProps extends Margins {
18
19
  itemCount: number;
19
20
  perPageCount?: number;
20
21
  pageNumber: number;
21
22
  variant?: "all" | "links-only";
22
- onChange: (page: number) => void;
23
+ onChange: (detail: GoabPaginationOnChangeDetail) => void;
23
24
  testId?: string;
24
25
  }
25
- export type PaginationProps = GoAPaginationProps;
26
- export declare function GoAPagination({ onChange, ...props }: GoAPaginationProps): import("react/jsx-runtime").JSX.Element;
27
- export default GoAPagination;
26
+ export type PaginationProps = GoabPaginationProps;
27
+ export declare function GoabPagination({ onChange, ...props }: GoabPaginationProps): import("react/jsx-runtime").JSX.Element;
28
+ export default GoabPagination;
@@ -1,11 +1,11 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- export type GoAPosition = "above" | "below" | "auto";
1
+ import { ReactNode } from 'react';
2
+ import { GoabPopoverPosition, Margins } from '../../../../../dist/libs/common/index.d.ts';
3
+
4
4
  interface WCProps extends Margins {
5
5
  maxwidth?: string;
6
6
  minwidth?: string;
7
7
  padded?: boolean;
8
- position?: GoAPosition;
8
+ position?: GoabPopoverPosition;
9
9
  relative?: boolean;
10
10
  testid?: string;
11
11
  }
@@ -16,15 +16,15 @@ declare global {
16
16
  }
17
17
  }
18
18
  }
19
- export interface GoAPopoverProps extends Margins {
19
+ export interface GoabPopoverProps extends Margins {
20
20
  target?: ReactNode;
21
21
  testId?: string;
22
22
  maxWidth?: string;
23
23
  minWidth?: string;
24
24
  padded?: boolean;
25
- position?: GoAPosition;
25
+ position?: GoabPopoverPosition;
26
26
  children: ReactNode;
27
27
  relative?: boolean;
28
28
  }
29
- export declare function GoAPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoAPopoverProps): JSX.Element;
30
- export default GoAPopover;
29
+ export declare function GoabPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoabPopoverProps): JSX.Element;
30
+ export default GoabPopover;
@@ -1,11 +1,11 @@
1
- import { Margins } from "../../common/styling";
2
- export * from "./radio";
3
- export type GoARadioGroupOrientation = "horizontal" | "vertical";
1
+ import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
3
+ export * from './radio';
4
4
  interface WCProps extends Margins {
5
5
  ref: React.RefObject<HTMLElement>;
6
6
  name: string;
7
7
  value?: string;
8
- orientation?: GoARadioGroupOrientation;
8
+ orientation?: GoabRadioGroupOrientation;
9
9
  disabled?: boolean;
10
10
  error?: boolean;
11
11
  arialabel?: string;
@@ -18,16 +18,16 @@ declare global {
18
18
  }
19
19
  }
20
20
  }
21
- export interface GoARadioGroupProps extends Margins {
21
+ export interface GoabRadioGroupProps extends Margins {
22
22
  name: string;
23
23
  value?: string;
24
24
  disabled?: boolean;
25
- orientation?: GoARadioGroupOrientation;
25
+ orientation?: GoabRadioGroupOrientation;
26
26
  testId?: string;
27
27
  error?: boolean;
28
28
  ariaLabel?: string;
29
29
  children?: React.ReactNode;
30
- onChange?: (name: string, value: string) => void;
30
+ onChange: (detail: GoabRadioGroupOnChangeDetail) => void;
31
31
  }
32
- export declare function GoARadioGroup({ name, value, children, orientation, disabled, error, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoARadioGroupProps): JSX.Element;
33
- export default GoARadioGroup;
32
+ export declare function GoabRadioGroup({ name, value, children, orientation, disabled, error, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoabRadioGroupProps): JSX.Element;
33
+ export default GoabRadioGroup;
@@ -1,4 +1,5 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
2
3
  interface RadioItemProps extends Margins {
3
4
  name?: string;
4
5
  value?: string;
@@ -17,7 +18,7 @@ declare global {
17
18
  }
18
19
  }
19
20
  }
20
- export interface GoARadioItemProps extends Margins {
21
+ export interface GoabRadioItemProps extends Margins {
21
22
  value?: string;
22
23
  label?: string;
23
24
  name?: string;
@@ -30,5 +31,5 @@ export interface GoARadioItemProps extends Margins {
30
31
  testId?: string;
31
32
  ariaLabel?: string;
32
33
  }
33
- export declare function GoARadioItem({ name, label, value, description, maxWidth, disabled, checked, error, testId, ariaLabel, children, mt, mr, mb, ml, }: GoARadioItemProps): JSX.Element;
34
- export default GoARadioItem;
34
+ export declare function GoabRadioItem({ name, label, value, description, maxWidth, disabled, checked, error, testId, ariaLabel, children, mt, mr, mb, ml, }: GoabRadioItemProps): JSX.Element;
35
+ export default GoabRadioItem;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface WCProps {
3
4
  testid?: string;
4
5
  }
@@ -9,10 +10,9 @@ declare global {
9
10
  }
10
11
  }
11
12
  }
12
- export interface GoASideMenuProps {
13
+ export interface GoabSideMenuProps {
13
14
  testId?: string;
14
15
  children: ReactNode;
15
16
  }
16
- export type SideMenuProps = GoASideMenuProps;
17
- export declare function GoASideMenu(props: GoASideMenuProps): JSX.Element;
18
- export default GoASideMenu;
17
+ export declare function GoabSideMenu(props: GoabSideMenuProps): JSX.Element;
18
+ export default GoabSideMenu;
@@ -1,9 +1,9 @@
1
- import { ReactNode } from "react";
2
- import { GoAIconType } from "../icon/icon";
3
- import { Margins } from "../../common/styling";
1
+ import { GoabIconType, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+ import { ReactNode } from 'react';
3
+
4
4
  interface WCProps extends Margins {
5
5
  heading: string;
6
- icon?: GoAIconType;
6
+ icon?: GoabIconType;
7
7
  testid?: string;
8
8
  }
9
9
  declare global {
@@ -13,11 +13,11 @@ declare global {
13
13
  }
14
14
  }
15
15
  }
16
- export interface GoASideMenuGroupProps extends Margins {
16
+ export interface GoabSideMenuGroupProps extends Margins {
17
17
  heading: string;
18
- icon?: GoAIconType;
18
+ icon?: GoabIconType;
19
19
  testId?: string;
20
20
  children?: ReactNode;
21
21
  }
22
- export declare function GoASideMenuGroup(props: GoASideMenuGroupProps): JSX.Element;
23
- export default GoASideMenuGroup;
22
+ export declare function GoabSideMenuGroup(props: GoabSideMenuGroupProps): JSX.Element;
23
+ export default GoabSideMenuGroup;
@@ -1,8 +1,9 @@
1
- import { ReactNode } from "react";
2
- import { GoAIconType } from "../icon/icon";
1
+ import { ReactNode } from 'react';
2
+ import { GoabIconType } from '../../../../../dist/libs/common/index.d.ts';
3
+
3
4
  interface WCProps {
4
- icon?: GoAIconType;
5
5
  testid?: string;
6
+ icon?: GoabIconType;
6
7
  }
7
8
  declare global {
8
9
  namespace JSX {
@@ -11,11 +12,11 @@ declare global {
11
12
  }
12
13
  }
13
14
  }
14
- export interface GoASideMenuHeadingProps {
15
+ export interface GoabSideMenuHeadingProps {
15
16
  meta?: ReactNode;
16
- icon?: GoAIconType;
17
17
  testId?: string;
18
+ icon?: GoabIconType;
18
19
  children?: ReactNode;
19
20
  }
20
- export declare function GoASideMenuHeading(props: GoASideMenuHeadingProps): import("react/jsx-runtime").JSX.Element;
21
- export default GoASideMenuHeading;
21
+ export declare function GoabSideMenuHeading(props: GoabSideMenuHeadingProps): import("react/jsx-runtime").JSX.Element;
22
+ export default GoabSideMenuHeading;
@@ -1,12 +1,10 @@
1
- import { Margins } from "../../common/styling";
2
- export type GoASkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile" | "article";
3
- export type GoASkeletonSize = 1 | 2 | 3 | 4;
4
- export type SkeletonType = GoASkeletonType;
1
+ import { GoabSkeletonSize, GoabSkeletonType, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
5
3
  interface WCProps extends Margins {
6
4
  maxwidth?: string;
7
- size?: GoASkeletonSize;
5
+ size?: GoabSkeletonSize;
8
6
  linecount?: number;
9
- type: GoASkeletonType;
7
+ type: GoabSkeletonType;
10
8
  testid?: string;
11
9
  }
12
10
  declare global {
@@ -16,13 +14,13 @@ declare global {
16
14
  }
17
15
  }
18
16
  }
19
- export interface GoASkeletonProps extends Margins {
17
+ export interface GoabSkeletonProps extends Margins {
20
18
  maxWidth?: string;
21
- size?: GoASkeletonSize;
19
+ size?: GoabSkeletonSize;
22
20
  lineCount?: number;
23
- type: GoASkeletonType;
21
+ type: GoabSkeletonType;
24
22
  testId?: string;
25
23
  }
26
- export type SkeletonProps = GoASkeletonProps;
27
- export declare const GoASkeleton: ({ maxWidth, size, lineCount, type, testId, mt, mr, mb, ml, }: GoASkeletonProps) => import("react/jsx-runtime").JSX.Element;
28
- export default GoASkeleton;
24
+ export type SkeletonProps = GoabSkeletonProps;
25
+ export declare const GoabSkeleton: ({ maxWidth, size, lineCount, type, testId, mt, mr, mb, ml, }: GoabSkeletonProps) => import("react/jsx-runtime").JSX.Element;
26
+ export default GoabSkeleton;