@abgov/react-components 5.0.0-alpha.6 → 5.0.0-alpha.7

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 (50) hide show
  1. package/index.js +46 -46
  2. package/index.js.map +1 -1
  3. package/index.mjs +46 -46
  4. package/index.mjs.map +1 -1
  5. package/lib/accordion/accordion.d.ts +1 -0
  6. package/lib/app-header/app-header.d.ts +1 -0
  7. package/lib/app-header-menu/app-header-menu.d.ts +1 -0
  8. package/lib/badge/badge.d.ts +1 -0
  9. package/lib/block/block.d.ts +1 -0
  10. package/lib/button/button.d.ts +1 -0
  11. package/lib/button-group/button-group.d.ts +1 -0
  12. package/lib/calendar/calendar.d.ts +1 -0
  13. package/lib/callout/callout.d.ts +1 -0
  14. package/lib/checkbox/checkbox.d.ts +1 -0
  15. package/lib/chip/chip.d.ts +1 -0
  16. package/lib/circular-progress/circular-progress.d.ts +1 -0
  17. package/lib/container/container.d.ts +1 -0
  18. package/lib/date-picker/date-picker.d.ts +1 -0
  19. package/lib/details/details.d.ts +1 -0
  20. package/lib/divider/divider.d.ts +4 -1
  21. package/lib/dropdown/dropdown.d.ts +1 -0
  22. package/lib/file-upload-card/file-upload-card.d.ts +1 -0
  23. package/lib/file-upload-input/file-upload-input.d.ts +1 -0
  24. package/lib/footer/footer.d.ts +1 -0
  25. package/lib/footer-meta-section/footer-meta-section.d.ts +4 -1
  26. package/lib/footer-nav-section/footer-nav-section.d.ts +1 -0
  27. package/lib/form-item/form-item.d.ts +1 -0
  28. package/lib/form-stepper/form-stepper.d.ts +1 -0
  29. package/lib/grid/grid.d.ts +1 -0
  30. package/lib/hero-banner/hero-banner.d.ts +1 -0
  31. package/lib/icon-button/icon-button.d.ts +1 -0
  32. package/lib/input/input.d.ts +1 -0
  33. package/lib/microsite-header/microsite-header.d.ts +1 -0
  34. package/lib/modal/modal.d.ts +1 -0
  35. package/lib/notification/notification.d.ts +1 -0
  36. package/lib/page-block/page-block.d.ts +1 -0
  37. package/lib/pagination/pagination.d.ts +1 -0
  38. package/lib/popover/popover.d.ts +1 -0
  39. package/lib/radio-group/radio-group.d.ts +1 -0
  40. package/lib/side-menu/side-menu.d.ts +4 -1
  41. package/lib/side-menu-group/side-menu-group.d.ts +1 -0
  42. package/lib/side-menu-heading/side-menu-heading.d.ts +1 -0
  43. package/lib/skeleton/skeleton.d.ts +1 -0
  44. package/lib/spacer/spacer.d.ts +1 -0
  45. package/lib/spinner/spinner.d.ts +1 -0
  46. package/lib/table/table.d.ts +1 -0
  47. package/lib/tabs/tabs.d.ts +1 -0
  48. package/lib/textarea/textarea.d.ts +1 -0
  49. package/lib/tooltip/tooltip.d.ts +1 -0
  50. package/package.json +1 -1
@@ -8,6 +8,7 @@ interface WCProps extends Margins {
8
8
  secondaryText?: string;
9
9
  headingContent?: ReactNode;
10
10
  maxwidth?: string;
11
+ testid?: string;
11
12
  }
12
13
  declare global {
13
14
  namespace JSX {
@@ -3,6 +3,7 @@ interface WCProps {
3
3
  url?: string;
4
4
  maxcontentwidth?: string;
5
5
  fullmenubreakpoint?: number;
6
+ testid?: string;
6
7
  }
7
8
  declare global {
8
9
  namespace JSX {
@@ -3,6 +3,7 @@ import { GoAIconType } from "../icon/icon";
3
3
  interface WCProps {
4
4
  heading: string;
5
5
  leadingicon?: GoAIconType;
6
+ testid?: string;
6
7
  }
7
8
  export interface GoAAppHeaderMenuProps {
8
9
  heading: string;
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
5
5
  icon?: boolean;
6
6
  content?: string;
7
7
  arialabel?: string;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -4,6 +4,7 @@ export interface WCProps extends Margins {
4
4
  gap?: Spacing;
5
5
  direction?: Direction;
6
6
  alignment?: Alignment;
7
+ testid?: string;
7
8
  }
8
9
  declare global {
9
10
  namespace JSX {
@@ -14,6 +14,7 @@ interface WCProps extends Margins {
14
14
  disabled?: boolean;
15
15
  leadingicon?: string;
16
16
  trailingicon?: string;
17
+ testid?: string;
17
18
  ref: React.RefObject<HTMLElement>;
18
19
  }
19
20
  declare global {
@@ -5,6 +5,7 @@ export type Gap = GoAButtonGroupGap;
5
5
  interface WCProps extends Margins {
6
6
  alignment: GoAButtonGroupAlignment;
7
7
  gap?: GoAButtonGroupGap;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
5
5
  value?: string;
6
6
  min?: string;
7
7
  max?: string;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -8,6 +8,7 @@ interface WCProps extends Margins {
8
8
  size?: GoACalloutSize;
9
9
  maxwidth?: string;
10
10
  arialive?: GoACalloutAriaLive;
11
+ testid?: string;
11
12
  }
12
13
  declare global {
13
14
  namespace JSX {
@@ -18,6 +18,7 @@ interface WCProps extends Margins {
18
18
  arialabel?: string;
19
19
  description?: string | React.ReactNode;
20
20
  maxwidth?: string;
21
+ testid?: string;
21
22
  }
22
23
  export interface GoACheckboxProps extends Margins {
23
24
  id?: string;
@@ -9,6 +9,7 @@ interface WCProps extends Margins {
9
9
  deletable: boolean;
10
10
  content: string;
11
11
  variant?: GoAChipVariant;
12
+ testid?: string;
12
13
  }
13
14
  declare global {
14
15
  namespace JSX {
@@ -8,6 +8,7 @@ interface WCProps {
8
8
  message?: string;
9
9
  visible?: string;
10
10
  progress?: number;
11
+ testid?: string;
11
12
  }
12
13
  declare global {
13
14
  namespace JSX {
@@ -10,6 +10,7 @@ interface WCProps extends Margins {
10
10
  padding?: GoAContainerPadding;
11
11
  width?: GoAContainerWidth;
12
12
  maxwidth?: string;
13
+ testid?: string;
13
14
  }
14
15
  declare global {
15
16
  namespace JSX {
@@ -8,6 +8,7 @@ interface WCProps extends Margins {
8
8
  max?: string;
9
9
  relative?: boolean;
10
10
  disabled?: boolean;
11
+ testid?: string;
11
12
  }
12
13
  declare global {
13
14
  namespace JSX {
@@ -4,6 +4,7 @@ interface WCProps extends Margins {
4
4
  heading: string;
5
5
  open?: boolean;
6
6
  maxwidth?: string;
7
+ testid?: string;
7
8
  }
8
9
  declare global {
9
10
  namespace JSX {
@@ -1,8 +1,11 @@
1
1
  import { Margins } from "../../common/styling";
2
+ interface WCProps extends Margins {
3
+ testid?: string;
4
+ }
2
5
  declare global {
3
6
  namespace JSX {
4
7
  interface IntrinsicElements {
5
- "goa-divider": Margins & React.HTMLAttributes<HTMLElement>;
8
+ "goa-divider": WCProps & React.HTMLAttributes<HTMLElement>;
6
9
  }
7
10
  }
8
11
  }
@@ -17,6 +17,7 @@ interface WCProps extends Margins {
17
17
  width?: string;
18
18
  relative?: boolean;
19
19
  id?: string;
20
+ testid?: string;
20
21
  }
21
22
  declare global {
22
23
  namespace JSX {
@@ -5,6 +5,7 @@ interface WCProps {
5
5
  type?: string;
6
6
  progress?: number;
7
7
  error?: string;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -4,6 +4,7 @@ interface WCProps {
4
4
  variant?: GoAFileUploadInputVariant;
5
5
  accept?: string;
6
6
  maxfilesize?: string;
7
+ testid?: string;
7
8
  }
8
9
  declare global {
9
10
  namespace JSX {
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  maxcontentwidth?: string;
4
+ testid?: string;
4
5
  }
5
6
  declare global {
6
7
  namespace JSX {
@@ -1,8 +1,11 @@
1
1
  import { ReactNode } from "react";
2
+ interface WCProps {
3
+ testid?: string;
4
+ }
2
5
  declare global {
3
6
  namespace JSX {
4
7
  interface IntrinsicElements {
5
- "goa-app-footer-meta-section": React.HTMLAttributes<HTMLElement>;
8
+ "goa-app-footer-meta-section": WCProps & React.HTMLAttributes<HTMLElement>;
6
9
  }
7
10
  }
8
11
  }
@@ -2,6 +2,7 @@ import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  maxcolumncount?: number;
4
4
  heading?: string;
5
+ testid?: string;
5
6
  }
6
7
  declare global {
7
8
  namespace JSX {
@@ -9,6 +9,7 @@ interface WCProps extends Margins {
9
9
  helptext?: string;
10
10
  maxwidth?: string;
11
11
  id?: string;
12
+ testid?: string;
12
13
  }
13
14
  declare global {
14
15
  namespace JSX {
@@ -3,6 +3,7 @@ import { Margins } from "../../common/styling";
3
3
  interface WCProps extends Margins {
4
4
  ref?: React.MutableRefObject<HTMLElement | null>;
5
5
  step?: number;
6
+ testid?: string;
6
7
  }
7
8
  declare global {
8
9
  namespace JSX {
@@ -2,6 +2,7 @@ import { Margins, Spacing } from "../../common/styling";
2
2
  interface WCProps extends Margins {
3
3
  gap?: Spacing;
4
4
  minchildwidth: string;
5
+ testid?: string;
5
6
  }
6
7
  declare global {
7
8
  namespace JSX {
@@ -5,6 +5,7 @@ interface WCProps {
5
5
  maxcontentwidth?: string;
6
6
  backgroundcolor?: string;
7
7
  textcolor?: string;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -10,6 +10,7 @@ interface WCProps extends Margins {
10
10
  title?: string;
11
11
  disabled?: boolean;
12
12
  arialabel?: string;
13
+ testid?: string;
13
14
  }
14
15
  declare global {
15
16
  namespace JSX {
@@ -24,6 +24,7 @@ interface WCProps extends Margins {
24
24
  prefix?: string;
25
25
  suffix?: string;
26
26
  arialabel?: string;
27
+ testid?: string;
27
28
  min?: string | number;
28
29
  max?: string | number;
29
30
  step?: number;
@@ -17,6 +17,7 @@ interface WCProps {
17
17
  headerurltarget?: GoALinkTarget;
18
18
  hasfeedbackhandler?: boolean;
19
19
  ref: React.RefObject<HTMLElement>;
20
+ testid?: string;
20
21
  }
21
22
  export interface GoAHeaderProps {
22
23
  type: GoAServiceLevel;
@@ -13,6 +13,7 @@ interface WCProps {
13
13
  transition?: GoAModalTransition;
14
14
  calloutvariant?: GoAModalCalloutVariant;
15
15
  role?: GoAModalRole;
16
+ testid?: string;
16
17
  }
17
18
  declare global {
18
19
  namespace JSX {
@@ -7,6 +7,7 @@ interface WCProps {
7
7
  type: GoANotificationType;
8
8
  maxcontentwidth?: string;
9
9
  arialive?: GoAAriaLiveType;
10
+ testid?: string;
10
11
  }
11
12
  declare global {
12
13
  namespace JSX {
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  width: "full" | string;
4
+ testid?: string;
4
5
  }
5
6
  declare global {
6
7
  namespace JSX {
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
5
5
  perpagecount?: number;
6
6
  pagenumber: number;
7
7
  variant?: "all" | "links-only";
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -7,6 +7,7 @@ interface WCProps extends Margins {
7
7
  padded?: boolean;
8
8
  position?: GoAPosition;
9
9
  relative?: boolean;
10
+ testid?: string;
10
11
  }
11
12
  declare global {
12
13
  namespace JSX {
@@ -9,6 +9,7 @@ interface WCProps extends Margins {
9
9
  disabled?: boolean;
10
10
  error?: boolean;
11
11
  arialabel?: string;
12
+ testid?: string;
12
13
  }
13
14
  declare global {
14
15
  namespace JSX {
@@ -1,8 +1,11 @@
1
1
  import { ReactNode } from "react";
2
+ interface WCProps {
3
+ testid?: string;
4
+ }
2
5
  declare global {
3
6
  namespace JSX {
4
7
  interface IntrinsicElements {
5
- "goa-side-menu": React.HTMLAttributes<HTMLElement>;
8
+ "goa-side-menu": WCProps & React.HTMLAttributes<HTMLElement>;
6
9
  }
7
10
  }
8
11
  }
@@ -1,6 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  interface WCProps {
3
3
  heading: string;
4
+ testid?: string;
4
5
  }
5
6
  declare global {
6
7
  namespace JSX {
@@ -2,6 +2,7 @@ import { ReactNode } from "react";
2
2
  import { GoAIconType } from "../icon/icon";
3
3
  interface WCProps {
4
4
  icon?: GoAIconType;
5
+ testid?: string;
5
6
  }
6
7
  declare global {
7
8
  namespace JSX {
@@ -7,6 +7,7 @@ interface WCProps extends Margins {
7
7
  size?: GoASkeletonSize;
8
8
  linecount?: number;
9
9
  type: GoASkeletonType;
10
+ testid?: string;
10
11
  }
11
12
  declare global {
12
13
  namespace JSX {
@@ -2,6 +2,7 @@ import { Spacing } from "../../common/styling";
2
2
  interface WCProps {
3
3
  hspacing?: Spacing | "fill";
4
4
  vspacing?: Spacing;
5
+ testid?: string;
5
6
  }
6
7
  declare global {
7
8
  namespace JSX {
@@ -5,6 +5,7 @@ interface WCProps {
5
5
  type: SpinnerType;
6
6
  invert?: boolean;
7
7
  progress?: number;
8
+ testid?: string;
8
9
  }
9
10
  declare global {
10
11
  namespace JSX {
@@ -7,6 +7,7 @@ interface WCProps extends Margins {
7
7
  width?: string;
8
8
  stickyheader?: boolean;
9
9
  variant?: GoATableVariant;
10
+ testid?: string;
10
11
  }
11
12
  declare global {
12
13
  namespace JSX {
@@ -3,6 +3,7 @@ interface WCProps {
3
3
  initialtab?: number;
4
4
  ref: React.RefObject<HTMLElement>;
5
5
  onChange?: (tab: number) => void;
6
+ testid?: string;
6
7
  }
7
8
  declare global {
8
9
  namespace JSX {
@@ -13,6 +13,7 @@ interface WCProps extends Margins {
13
13
  arialabel?: string;
14
14
  countby?: CountBy;
15
15
  maxcount?: number;
16
+ testid?: string;
16
17
  }
17
18
  declare global {
18
19
  namespace JSX {
@@ -6,6 +6,7 @@ interface WCProps extends Margins {
6
6
  position?: GoATooltipPosition;
7
7
  content?: string;
8
8
  halign?: GoATooltipHorizontalAlignment;
9
+ testid?: string;
9
10
  }
10
11
  declare global {
11
12
  namespace JSX {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "5.0.0-alpha.6",
3
+ "version": "5.0.0-alpha.7",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"