@abgov/react-components 5.4.1 → 6.0.0-alpha.1

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 +4 -4
  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,17 +1,16 @@
1
- import React, { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- export type GoAHeadingSize = "small" | "medium";
4
- export type GoAIconPosition = "left" | "right";
1
+ import { GoabAccordionHeadingSize, GoabAccordionIconPosition, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+ import { ReactNode } from 'react';
3
+
5
4
  interface WCProps extends Margins {
6
5
  ref: React.RefObject<HTMLElement>;
7
6
  open?: boolean;
8
- headingSize?: GoAHeadingSize;
7
+ headingsize?: GoabAccordionHeadingSize;
9
8
  heading: string;
10
- secondaryText?: string;
9
+ secondarytext?: string;
11
10
  headingContent?: ReactNode;
12
11
  maxwidth?: string;
13
12
  testid?: string;
14
- iconposition?: GoAIconPosition;
13
+ iconposition?: GoabAccordionIconPosition;
15
14
  }
16
15
  declare global {
17
16
  namespace JSX {
@@ -20,17 +19,17 @@ declare global {
20
19
  }
21
20
  }
22
21
  }
23
- export interface GoAAccordionProps extends Margins {
22
+ export interface GoabAccordionProps extends Margins {
24
23
  open?: boolean;
25
- headingSize?: GoAHeadingSize;
24
+ headingSize?: GoabAccordionHeadingSize;
26
25
  secondaryText?: string;
27
26
  heading: string;
28
27
  headingContent?: ReactNode;
29
28
  maxWidth?: string;
30
29
  testid?: string;
31
- iconPosition?: GoAIconPosition;
30
+ iconPosition?: GoabAccordionIconPosition;
32
31
  onChange?: (open: boolean) => void;
33
32
  children: ReactNode;
34
33
  }
35
- export declare function GoAAccordion({ open, heading, headingSize, secondaryText, headingContent, iconPosition, maxWidth, testid, onChange, children, mt, mr, mb, ml, }: GoAAccordionProps): JSX.Element;
36
- export default GoAAccordion;
34
+ export declare function GoabAccordion({ open, heading, headingSize, secondaryText, headingContent, iconPosition, maxWidth, testid, onChange, children, mt, mr, mb, ml, }: GoabAccordionProps): JSX.Element;
35
+ export default GoabAccordion;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface WCProps {
2
3
  heading?: string;
3
4
  url?: string;
@@ -14,7 +15,7 @@ declare global {
14
15
  }
15
16
  }
16
17
  }
17
- export interface GoAAppHeaderProps {
18
+ export interface GoabAppHeaderProps {
18
19
  heading?: string;
19
20
  url?: string;
20
21
  maxContentWidth?: string;
@@ -23,5 +24,5 @@ export interface GoAAppHeaderProps {
23
24
  onMenuClick?: () => void;
24
25
  testId?: string;
25
26
  }
26
- export declare function GoAAppHeader({ heading, url, maxContentWidth, fullMenuBreakpoint, testId, children, onMenuClick, }: GoAAppHeaderProps): JSX.Element;
27
- export default GoAAppHeader;
27
+ export declare function GoabAppHeader({ heading, url, maxContentWidth, fullMenuBreakpoint, testId, children, onMenuClick, }: GoabAppHeaderProps): JSX.Element;
28
+ export default GoabAppHeader;
@@ -1,13 +1,14 @@
1
- import { ReactNode } from "react";
2
- import { GoAIconType } from "../icon/icon";
1
+ import { GoabIconType } from '../../../../../dist/libs/common/index.d.ts';
2
+ import { ReactNode } from 'react';
3
+
3
4
  interface WCProps {
4
5
  heading: string;
5
- leadingicon?: GoAIconType;
6
+ leadingicon?: GoabIconType;
6
7
  testid?: string;
7
8
  }
8
- export interface GoAAppHeaderMenuProps {
9
+ export interface GoabAppHeaderMenuProps {
9
10
  heading: string;
10
- leadingIcon?: GoAIconType;
11
+ leadingIcon?: GoabIconType;
11
12
  testId?: string;
12
13
  children?: ReactNode;
13
14
  }
@@ -18,5 +19,5 @@ declare global {
18
19
  }
19
20
  }
20
21
  }
21
- export declare function GoAAppHeaderMenu(props: GoAAppHeaderMenuProps): import("react/jsx-runtime").JSX.Element;
22
- export default GoAAppHeaderMenu;
22
+ export declare function GoabAppHeaderMenu(props: GoabAppHeaderMenuProps): import("react/jsx-runtime").JSX.Element;
23
+ export default GoabAppHeaderMenu;
@@ -1,7 +1,7 @@
1
- import { Margins } from "../../common/styling";
2
- export type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
1
+ import { GoabBadgeType, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
3
3
  interface WCProps extends Margins {
4
- type: GoABadgeType;
4
+ type: GoabBadgeType;
5
5
  icon?: boolean;
6
6
  content?: string;
7
7
  arialabel?: string;
@@ -14,28 +14,28 @@ declare global {
14
14
  }
15
15
  }
16
16
  }
17
- export interface GoABadgeProps extends Margins {
18
- type: GoABadgeType;
17
+ export interface GoabBadgeProps extends Margins {
18
+ type: GoabBadgeType;
19
19
  icon?: boolean;
20
20
  content?: string;
21
21
  testId?: string;
22
22
  ariaLabel?: string;
23
23
  }
24
- export declare function GoABadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
24
+ export declare function GoabBadge({ type, content, icon, testId, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
25
25
  /**
26
26
  * @deprecated
27
27
  */
28
- export declare function GoAInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
28
+ export declare function GoabInfoBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
29
29
  /**
30
30
  * @deprecated
31
31
  */
32
- export declare function GoASuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
32
+ export declare function GoabSuccessBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
33
33
  /**
34
34
  * @deprecated
35
35
  */
36
- export declare function GoAImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
36
+ export declare function GoabImportantBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
37
37
  /**
38
38
  * @deprecated
39
39
  */
40
- export declare function GoAEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoABadgeProps): JSX.Element;
40
+ export declare function GoabEmergencyBadge({ content, testId, icon, mt, mr, mb, ml, ariaLabel, }: GoabBadgeProps): JSX.Element;
41
41
  export {};
@@ -1,9 +1,10 @@
1
- import { ReactNode } from "react";
2
- import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { GoabBlockAlignment, GoabBlockDirection, Margins, Spacing } from '../../../../../dist/libs/common/index.d.ts';
3
+
3
4
  export interface WCProps extends Margins {
4
5
  gap?: Spacing;
5
- direction?: Direction;
6
- alignment?: Alignment;
6
+ direction?: GoabBlockDirection;
7
+ alignment?: GoabBlockAlignment;
7
8
  testid?: string;
8
9
  }
9
10
  declare global {
@@ -13,12 +14,11 @@ declare global {
13
14
  }
14
15
  }
15
16
  }
16
- export interface GoABlockProps extends Margins {
17
+ export interface GoabBlockProps extends Margins {
17
18
  gap?: Spacing;
18
- direction?: Direction;
19
- alignment?: Alignment;
19
+ direction?: GoabBlockDirection;
20
+ alignment?: GoabBlockAlignment;
20
21
  testId?: string;
21
22
  children?: ReactNode;
22
23
  }
23
- export type BlockProps = GoABlockProps;
24
- export declare function GoABlock(props: GoABlockProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function GoabBlock(props: GoabBlockProps): import("react/jsx-runtime").JSX.Element;
@@ -1,16 +1,10 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- import { GoAIconType } from "../icon/icon";
4
- export type GoAButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
5
- export type GoAButtonSize = "compact" | "normal";
6
- export type GoAButtonVariant = "normal" | "destructive";
7
- export type ButtonType = GoAButtonType;
8
- export type ButtonSize = GoAButtonSize;
9
- export type ButtonVariant = GoAButtonVariant;
1
+ import { GoabButtonSize, GoabButtonType, GoabButtonVariant, GoabIconType, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+ import { ReactNode } from 'react';
3
+
10
4
  interface WCProps extends Margins {
11
- type?: GoAButtonType;
12
- size?: GoAButtonSize;
13
- variant?: GoAButtonVariant;
5
+ type?: GoabButtonType;
6
+ size?: GoabButtonSize;
7
+ variant?: GoabButtonVariant;
14
8
  disabled?: boolean;
15
9
  leadingicon?: string;
16
10
  trailingicon?: string;
@@ -25,17 +19,17 @@ declare global {
25
19
  }
26
20
  }
27
21
  }
28
- export interface GoAButtonProps extends Margins {
29
- type?: GoAButtonType;
30
- size?: GoAButtonSize;
31
- variant?: GoAButtonVariant;
22
+ export interface GoabButtonProps extends Margins {
23
+ type?: GoabButtonType;
24
+ size?: GoabButtonSize;
25
+ variant?: GoabButtonVariant;
32
26
  disabled?: boolean;
33
- leadingIcon?: GoAIconType;
34
- trailingIcon?: GoAIconType;
27
+ leadingIcon?: GoabIconType;
28
+ trailingIcon?: GoabIconType;
35
29
  width?: string;
36
30
  onClick?: () => void;
37
31
  testId?: string;
38
32
  children?: ReactNode;
39
33
  }
40
- export declare function GoAButton({ disabled, type, size, variant, leadingIcon, trailingIcon, width, testId, children, onClick, mt, mr, mb, ml, }: GoAButtonProps): JSX.Element;
41
- export default GoAButton;
34
+ export declare function GoabButton({ disabled, type, size, variant, leadingIcon, trailingIcon, width, testId, children, onClick, mt, mr, mb, ml, }: GoabButtonProps): JSX.Element;
35
+ export default GoabButton;
@@ -1,10 +1,8 @@
1
- import { Margins } from "../../common/styling";
2
- export type GoAButtonGroupAlignment = "start" | "end" | "center";
3
- export type GoAButtonGroupGap = "relaxed" | "compact";
4
- export type Gap = GoAButtonGroupGap;
1
+ import { GoabButtonGroupAlignment, GoabButtonGroupGap, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
5
3
  interface WCProps extends Margins {
6
- alignment: GoAButtonGroupAlignment;
7
- gap?: GoAButtonGroupGap;
4
+ alignment: GoabButtonGroupAlignment;
5
+ gap?: GoabButtonGroupGap;
8
6
  testid?: string;
9
7
  }
10
8
  declare global {
@@ -14,11 +12,11 @@ declare global {
14
12
  }
15
13
  }
16
14
  }
17
- export interface GoAButtonGroupProps extends Margins {
18
- alignment: GoAButtonGroupAlignment;
19
- gap?: GoAButtonGroupGap;
15
+ export interface GoabButtonGroupProps extends Margins {
16
+ alignment: GoabButtonGroupAlignment;
17
+ gap?: GoabButtonGroupGap;
20
18
  testId?: string;
21
19
  children?: React.ReactNode;
22
20
  }
23
- export declare function GoAButtonGroup({ alignment, gap, testId, children, mt, mr, mb, ml, }: GoAButtonGroupProps): JSX.Element;
24
- export default GoAButtonGroup;
21
+ export declare function GoabButtonGroup({ alignment, gap, testId, children, mt, mr, mb, ml, }: GoabButtonGroupProps): JSX.Element;
22
+ export default GoabButtonGroup;
@@ -1,4 +1,5 @@
1
- import { Margins } from "../../common/styling";
1
+ import { GoabCalendarOnChangeDetail, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
2
3
  interface WCProps extends Margins {
3
4
  ref: React.RefObject<HTMLElement>;
4
5
  name?: string;
@@ -14,13 +15,13 @@ declare global {
14
15
  }
15
16
  }
16
17
  }
17
- export interface GoACalendarProps extends Margins {
18
+ export interface GoabCalendarProps extends Margins {
18
19
  name?: string;
19
20
  value?: Date;
20
21
  min?: Date;
21
22
  max?: Date;
22
23
  testId?: string;
23
- onChange: (name: string, value: Date) => void;
24
+ onChange: (details: GoabCalendarOnChangeDetail) => void;
24
25
  }
25
- export declare function GoACalendar({ name, value, min, max, testId, mt, mr, mb, ml, onChange, }: GoACalendarProps): JSX.Element;
26
- export default GoACalendar;
26
+ export declare function GoabCalendar({ name, value, min, max, testId, mt, mr, mb, ml, onChange, }: GoabCalendarProps): JSX.Element;
27
+ export default GoabCalendar;
@@ -1,15 +1,12 @@
1
- import { Margins } from "../../common/styling";
2
- export type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
3
- export type GoACalloutSize = "medium" | "large";
4
- export type GoACalloutAriaLive = "off" | "polite" | "assertive";
5
- export type GoACalloutIconTheme = "outline" | "filled";
1
+ import { GoabCalloutAriaLive, GoabCalloutSize, GoabCalloutType, GoabCalloutIconTheme, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
6
3
  interface WCProps extends Margins {
7
4
  heading?: string;
8
- type?: GoACalloutType;
9
- size?: GoACalloutSize;
5
+ type?: GoabCalloutType;
6
+ size?: GoabCalloutSize;
7
+ arialive?: GoabCalloutAriaLive;
10
8
  maxwidth?: string;
11
- arialive?: GoACalloutAriaLive;
12
- icontheme?: GoACalloutIconTheme;
9
+ icontheme?: GoabCalloutIconTheme;
13
10
  testid?: string;
14
11
  }
15
12
  declare global {
@@ -19,16 +16,15 @@ declare global {
19
16
  }
20
17
  }
21
18
  }
22
- export interface GoACalloutProps extends Margins {
19
+ export interface GoabCalloutProps extends Margins {
23
20
  heading?: string;
24
- type?: GoACalloutType;
25
- size?: GoACalloutSize;
26
- iconTheme?: GoACalloutIconTheme;
21
+ type?: GoabCalloutType;
22
+ size?: GoabCalloutSize;
23
+ iconTheme?: GoabCalloutIconTheme;
27
24
  maxWidth?: string;
28
25
  testId?: string;
29
- ariaLive?: GoACalloutAriaLive;
26
+ ariaLive?: GoabCalloutAriaLive;
30
27
  children?: React.ReactNode;
31
28
  }
32
- export type CalloutProps = GoACalloutProps;
33
- export declare const GoACallout: ({ heading, type, iconTheme, size, maxWidth, testId, ariaLive, children, mt, mr, mb, ml, }: GoACalloutProps) => import("react/jsx-runtime").JSX.Element;
34
- export default GoACallout;
29
+ export declare const GoabCallout: ({ heading, type, iconTheme, size, maxWidth, testId, ariaLive, children, mt, mr, mb, ml, }: GoabCalloutProps) => import("react/jsx-runtime").JSX.Element;
30
+ export default GoabCallout;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare global {
2
3
  namespace JSX {
3
4
  interface IntrinsicElements {
@@ -5,8 +6,8 @@ declare global {
5
6
  }
6
7
  }
7
8
  }
8
- export interface GoACardActionsProps {
9
+ export interface GoabCardActionsProps {
9
10
  children?: React.ReactNode;
10
11
  }
11
- export declare function GoACardActions({ children }: GoACardActionsProps): JSX.Element;
12
- export default GoACardActions;
12
+ export declare function GoabCardActions({ children }: GoabCardActionsProps): JSX.Element;
13
+ export default GoabCardActions;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare global {
2
3
  namespace JSX {
3
4
  interface IntrinsicElements {
@@ -5,8 +6,8 @@ declare global {
5
6
  }
6
7
  }
7
8
  }
8
- export interface GoACardContentProps {
9
+ export interface GoabCardContentProps {
9
10
  children?: React.ReactNode;
10
11
  }
11
- export declare function GoACardContent({ children }: GoACardContentProps): JSX.Element;
12
- export default GoACardContent;
12
+ export declare function GoabCardContent({ children }: GoabCardContentProps): JSX.Element;
13
+ export default GoabCardContent;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare global {
2
3
  namespace JSX {
3
4
  interface IntrinsicElements {
@@ -5,8 +6,8 @@ declare global {
5
6
  }
6
7
  }
7
8
  }
8
- export interface GoACardGroupProps {
9
+ export interface GoabCardGroupProps {
9
10
  children?: React.ReactNode;
10
11
  }
11
- export declare function GoACardGroup({ children }: GoACardGroupProps): JSX.Element;
12
- export default GoACardGroup;
12
+ export declare function GoabCardGroup({ children }: GoabCardGroupProps): JSX.Element;
13
+ export default GoabCardGroup;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface WCProps {
2
3
  src: string;
3
4
  height: string;
@@ -9,9 +10,9 @@ declare global {
9
10
  }
10
11
  }
11
12
  }
12
- export interface GoACardImageProps {
13
+ export interface GoabCardImageProps {
13
14
  src: string;
14
15
  height: string;
15
16
  }
16
- export declare function GoACardImage({ src, height }: GoACardImageProps): JSX.Element;
17
- export default GoACardImage;
17
+ export declare function GoabCardImage({ src, height }: GoabCardImageProps): JSX.Element;
18
+ export default GoabCardImage;
@@ -1,8 +1,10 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
2
3
  interface WCProps extends Margins {
3
4
  elevation?: number;
4
5
  width?: string;
5
6
  children: React.ReactNode;
7
+ testid?: string;
6
8
  }
7
9
  declare global {
8
10
  namespace JSX {
@@ -11,11 +13,11 @@ declare global {
11
13
  }
12
14
  }
13
15
  }
14
- export interface GoACardProps extends Margins {
16
+ export interface GoabCardProps extends Margins {
15
17
  elevation?: number;
16
18
  width?: string;
17
19
  testId?: string;
18
20
  children?: React.ReactNode;
19
21
  }
20
- export declare function GoACard({ elevation, width, mt, mr, mb, ml, testId, children, }: GoACardProps): JSX.Element;
21
- export default GoACard;
22
+ export declare function GoabCard({ elevation, width, mt, mr, mb, ml, testId, children, }: GoabCardProps): JSX.Element;
23
+ export default GoabCard;
@@ -1,5 +1,5 @@
1
- export * from "./card-content";
2
- export * from "./card-image";
3
- export * from "./card-actions";
4
- export * from "./card-group";
5
- export * from "./card";
1
+ export * from './card-content';
2
+ export * from './card-image';
3
+ export * from './card-actions';
4
+ export * from './card-group';
5
+ export * from './card';
@@ -1,4 +1,5 @@
1
- import { Margins } from "../../common/styling";
1
+ import { GoabCheckboxOnChangeDetail, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
2
3
  declare global {
3
4
  namespace JSX {
4
5
  interface IntrinsicElements {
@@ -20,7 +21,7 @@ interface WCProps extends Margins {
20
21
  maxwidth?: string;
21
22
  testid?: string;
22
23
  }
23
- export interface GoACheckboxProps extends Margins {
24
+ export interface GoabCheckboxProps extends Margins {
24
25
  id?: string;
25
26
  name: string;
26
27
  checked?: boolean;
@@ -33,8 +34,8 @@ export interface GoACheckboxProps extends Margins {
33
34
  ariaLabel?: string;
34
35
  description?: string | React.ReactNode;
35
36
  maxWidth?: string;
36
- onChange?: (name: string, checked: boolean, value: string) => void;
37
+ onChange?: (detail: GoabCheckboxOnChangeDetail) => void;
37
38
  }
38
- export type Props = GoACheckboxProps;
39
- export declare function GoACheckbox({ id, name, testId, error, disabled, checked, value, text, description, maxWidth, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoACheckboxProps): JSX.Element;
40
- export default GoACheckbox;
39
+ export type Props = GoabCheckboxProps;
40
+ export declare function GoabCheckbox({ id, name, testId, error, disabled, checked, value, text, description, maxWidth, children, onChange, ariaLabel, mt, mr, mb, ml, }: GoabCheckboxProps): JSX.Element;
41
+ export default GoabCheckbox;
@@ -1,14 +1,13 @@
1
- import { Margins } from "../../common/styling";
2
- export type GoAChipVariant = "filter";
3
- export type GoAChipTheme = "outline" | "filled" | "sharp";
1
+ import { GoabChipTheme, GoabChipVariant, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
4
3
  interface WCProps extends Margins {
5
4
  ref: React.RefObject<HTMLElement>;
6
5
  leadingicon: string;
7
- icontheme: GoAChipTheme;
6
+ icontheme: GoabChipTheme;
8
7
  error: boolean;
9
8
  deletable: boolean;
10
9
  content: string;
11
- variant?: GoAChipVariant;
10
+ variant?: GoabChipVariant;
12
11
  testid?: string;
13
12
  }
14
13
  declare global {
@@ -18,15 +17,15 @@ declare global {
18
17
  }
19
18
  }
20
19
  }
21
- export interface GoAChipProps extends Margins {
20
+ export interface GoabChipProps extends Margins {
22
21
  onClick?: () => void;
23
22
  deletable?: boolean;
24
23
  leadingIcon?: string;
25
- iconTheme?: GoAChipTheme;
24
+ iconTheme?: GoabChipTheme;
26
25
  error?: boolean;
27
26
  content: string;
28
- variant?: GoAChipVariant;
27
+ variant?: GoabChipVariant;
29
28
  testId?: string;
30
29
  }
31
- export declare const GoAChip: ({ leadingIcon, iconTheme, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoAChipProps) => import("react/jsx-runtime").JSX.Element;
32
- export default GoAChip;
30
+ export declare const GoabChip: ({ leadingIcon, iconTheme, deletable, error, variant, content, onClick, mt, mr, mb, ml, testId, }: GoabChipProps) => import("react/jsx-runtime").JSX.Element;
31
+ export default GoabChip;
@@ -1,10 +1,8 @@
1
- export type GoACircularProgressVariant = "fullscreen" | "inline";
2
- export type GoACircularProgressSize = "small" | "large";
3
- export type CircularProgressVariant = GoACircularProgressVariant;
4
- export type CircularProgressSize = GoACircularProgressSize;
1
+ import { GoabCircularProgressSize, GoabCircularProgressVariant } from '../../../../../dist/libs/common/index.d.ts';
2
+
5
3
  interface WCProps {
6
- variant?: GoACircularProgressVariant;
7
- size?: GoACircularProgressSize;
4
+ variant?: GoabCircularProgressVariant;
5
+ size?: GoabCircularProgressSize;
8
6
  message?: string;
9
7
  visible?: string;
10
8
  progress?: number;
@@ -17,13 +15,13 @@ declare global {
17
15
  }
18
16
  }
19
17
  }
20
- export interface GoACircularProgressProps {
21
- variant?: GoACircularProgressVariant;
22
- size?: GoACircularProgressSize;
18
+ export interface GoabCircularProgressProps {
19
+ variant?: GoabCircularProgressVariant;
20
+ size?: GoabCircularProgressSize;
23
21
  message?: string;
24
22
  visible?: boolean;
25
23
  progress?: number;
26
24
  testId?: string;
27
25
  }
28
- export declare const GoACircularProgress: ({ visible, message, progress, variant, size, testId, }: GoACircularProgressProps) => import("react/jsx-runtime").JSX.Element;
29
- export default GoACircularProgress;
26
+ export declare const GoabCircularProgress: ({ visible, message, progress, variant, size, testId, }: GoabCircularProgressProps) => import("react/jsx-runtime").JSX.Element;
27
+ export default GoabCircularProgress;
@@ -1,14 +1,11 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- export type GoAContainerType = "interactive" | "non-interactive" | "info" | "error" | "success" | "important";
4
- export type GoAContainerAccent = "thick" | "thin" | "filled";
5
- export type GoAContainerPadding = "relaxed" | "compact";
6
- export type GoAContainerWidth = "full" | "content";
1
+ import { ReactNode } from 'react';
2
+ import { GoabContainerAccent, GoabContainerPadding, GoabContainerType, GoabContainerWidth, Margins } from '../../../../../dist/libs/common/index.d.ts';
3
+
7
4
  interface WCProps extends Margins {
8
- type?: GoAContainerType;
9
- accent?: GoAContainerAccent;
10
- padding?: GoAContainerPadding;
11
- width?: GoAContainerWidth;
5
+ type?: GoabContainerType;
6
+ accent?: GoabContainerAccent;
7
+ padding?: GoabContainerPadding;
8
+ width?: GoabContainerWidth;
12
9
  maxwidth?: string;
13
10
  testid?: string;
14
11
  }
@@ -19,17 +16,17 @@ declare global {
19
16
  }
20
17
  }
21
18
  }
22
- export interface GoAContainerProps extends Margins {
23
- accent?: GoAContainerAccent;
24
- type?: GoAContainerType;
19
+ export interface GoabContainerProps extends Margins {
20
+ accent?: GoabContainerAccent;
21
+ type?: GoabContainerType;
25
22
  heading?: ReactNode;
26
23
  title?: ReactNode;
27
- padding?: GoAContainerPadding;
24
+ padding?: GoabContainerPadding;
28
25
  actions?: ReactNode;
29
26
  children?: ReactNode;
30
- width?: GoAContainerWidth;
27
+ width?: GoabContainerWidth;
31
28
  maxWidth?: string;
32
29
  testId?: string;
33
30
  }
34
- export declare function GoAContainer({ accent, heading, title, padding, children, actions, type, width, maxWidth, mt, mr, mb, ml, testId, }: GoAContainerProps): JSX.Element;
35
- export default GoAContainer;
31
+ export declare function GoabContainer({ accent, heading, title, padding, children, actions, type, width, maxWidth, mt, mr, mb, ml, testId, }: GoabContainerProps): JSX.Element;
32
+ export default GoabContainer;
@@ -1,4 +1,5 @@
1
- import { Margins } from "../../common/styling";
1
+ import { GoabDatePickerOnChangeDetail, Margins } from '../../../../../dist/libs/common/index.d.ts';
2
+
2
3
  interface WCProps extends Margins {
3
4
  ref: React.RefObject<HTMLElement>;
4
5
  name?: string;
@@ -17,7 +18,7 @@ declare global {
17
18
  }
18
19
  }
19
20
  }
20
- export interface GoADatePickerProps extends Margins {
21
+ export interface GoabDatePickerProps extends Margins {
21
22
  name?: string;
22
23
  value?: Date;
23
24
  error?: boolean;
@@ -26,7 +27,7 @@ export interface GoADatePickerProps extends Margins {
26
27
  testId?: string;
27
28
  relative?: boolean;
28
29
  disabled?: boolean;
29
- onChange?: (name: string, value: Date | undefined) => void;
30
+ onChange: (detail: GoabDatePickerOnChangeDetail) => void;
30
31
  }
31
- export declare function GoADatePicker({ name, value, error, min, max, testId, disabled, mt, mr, mb, ml, relative, onChange, }: GoADatePickerProps): JSX.Element;
32
- export default GoADatePicker;
32
+ export declare function GoabDatePicker({ name, value, error, min, max, testId, disabled, mt, mr, mb, ml, relative, onChange, }: GoabDatePickerProps): JSX.Element;
33
+ export default GoabDatePicker;
@@ -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
  heading: string;
5
6
  open?: boolean;
@@ -13,13 +14,12 @@ declare global {
13
14
  }
14
15
  }
15
16
  }
16
- export interface GoADetailsProps extends Margins {
17
+ export interface GoabDetailsProps extends Margins {
17
18
  heading: string;
18
19
  open?: boolean;
19
20
  maxWidth?: string;
20
21
  testId?: string;
21
22
  children: ReactNode;
22
23
  }
23
- export type DetailsProps = GoADetailsProps;
24
- export declare function GoADetails(props: GoADetailsProps): import("react/jsx-runtime").JSX.Element;
25
- export default GoADetails;
24
+ export declare function GoabDetails(props: GoabDetailsProps): import("react/jsx-runtime").JSX.Element;
25
+ export default GoabDetails;