@abgov/react-components 4.0.0-alpha.161 → 4.0.0-alpha.163

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.
package/index.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  import "@abgov/web-components";
2
+ export * from "./lib/sidebar-group/sidebar-group";
3
+ export * from "./lib/sidebar/sidebar";
2
4
  export * from "./lib/pages/pages";
3
5
  export * from "./lib/file-upload-card/file-upload-card";
4
6
  export * from "./lib/file-upload-input/file-upload-input";
5
7
  export type { GoAIconType } from "./lib/icon/icon";
6
8
  export type { GoABadgeType } from "./lib/badge/badge";
9
+ export type { GoAFormStepStatusType } from "./lib/form-step/form-step";
7
10
  export * from "./lib/accordion/accordion";
8
11
  export * from "./lib/form-step/form-step";
9
12
  export * from "./lib/form-stepper/form-stepper";
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
- declare type Status = "complete" | "incomplete";
2
+ export declare type GoAFormStepStatusType = "complete" | "incomplete";
3
3
  interface WCProps {
4
4
  text: string;
5
- status?: Status;
5
+ status?: GoAFormStepStatusType;
6
6
  }
7
7
  declare global {
8
8
  namespace JSX {
@@ -13,7 +13,7 @@ declare global {
13
13
  }
14
14
  export interface FormStepProps {
15
15
  text: string;
16
- status?: Status;
16
+ status?: GoAFormStepStatusType;
17
17
  }
18
18
  export declare function GoAFormStep(props: FormStepProps): JSX.Element;
19
19
  export default GoAFormStep;
@@ -13,7 +13,7 @@ declare global {
13
13
  }
14
14
  export interface FormStepperProps extends Margins {
15
15
  step?: number;
16
- testId: string;
16
+ testId?: string;
17
17
  children?: ReactNode;
18
18
  onChange?: (step: number) => void;
19
19
  }
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from "react";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ "goa-sidebar": React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export interface SidebarProps {
10
+ children: ReactNode;
11
+ }
12
+ export declare function GoASidebar(props: SidebarProps): JSX.Element;
13
+ export default GoASidebar;
@@ -0,0 +1,17 @@
1
+ import React, { ReactNode } from "react";
2
+ interface WCProps {
3
+ heading: string;
4
+ }
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ "goa-sidebar-group": WCProps & React.HTMLAttributes<HTMLElement>;
9
+ }
10
+ }
11
+ }
12
+ interface SidebarGroupProps {
13
+ heading: string;
14
+ children?: ReactNode;
15
+ }
16
+ export declare function GoASidebarGroup(props: SidebarGroupProps): JSX.Element;
17
+ export default GoASidebarGroup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.161",
3
+ "version": "4.0.0-alpha.163",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"