@abgov/react-components 6.6.0-alpha.1 → 6.6.0-alpha.3

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.
@@ -30,7 +30,7 @@ declare module "react" {
30
30
  export interface GoabDropdownProps extends Margins {
31
31
  name?: string;
32
32
  value?: string[] | string;
33
- onChange: (detail: GoabDropdownOnChangeDetail) => void;
33
+ onChange?: (detail: GoabDropdownOnChangeDetail) => void;
34
34
  ariaLabel?: string;
35
35
  ariaLabelledBy?: string;
36
36
  id?: string;
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '@abgov/ui-components-common';
3
+ interface WCProps extends Margins {
4
+ ref?: React.RefObject<HTMLElement | null>;
5
+ heading?: string;
6
+ "section-title"?: string;
7
+ "action-button-text"?: string;
8
+ "button-visibility"?: string;
9
+ }
10
+ declare module "react" {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ "goa-public-subform-index": WCProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ interface GoabPublicSubformIndexProps extends Margins {
18
+ heading?: string;
19
+ sectionTitle?: string;
20
+ actionButtonText?: string;
21
+ buttonVisibility?: "visible" | "hidden";
22
+ children: ReactNode;
23
+ }
24
+ export declare function GoabPublicSubformIndex({ heading, sectionTitle, actionButtonText, buttonVisibility, children, mt, mr, mb, ml, }: GoabPublicSubformIndexProps): import("react/jsx-runtime").JSX.Element;
25
+ export default GoabPublicSubformIndex;
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '@abgov/ui-components-common';
3
+ interface WCProps extends Margins {
4
+ ref?: React.RefObject<HTMLElement | null>;
5
+ id?: string;
6
+ name?: string;
7
+ "continue-msg"?: string;
8
+ }
9
+ declare module "react" {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "goa-public-subform": WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ interface GoabPublicSubformProps extends Margins {
17
+ id?: string;
18
+ name?: string;
19
+ continueMsg?: string;
20
+ onInit?: (event: Event) => void;
21
+ onStateChange?: (event: Event) => void;
22
+ children: ReactNode;
23
+ }
24
+ export declare function GoabPublicSubform({ id, name, continueMsg, onInit, onStateChange, children, mt, mr, mb, ml, }: GoabPublicSubformProps): import("react/jsx-runtime").JSX.Element;
25
+ export default GoabPublicSubform;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { Margins } from '@abgov/ui-components-common';
2
+ import { Margins, GoabPublicFormTaskStatus } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
- status: "completed" | "not-started" | "cannot-start";
4
+ status: GoabPublicFormTaskStatus;
5
5
  }
6
6
  declare module "react" {
7
7
  namespace JSX {
@@ -11,7 +11,7 @@ declare module "react" {
11
11
  }
12
12
  }
13
13
  type GoabPublicFormTaskProps = {
14
- status: "completed" | "not-started" | "cannot-start";
14
+ status: GoabPublicFormTaskStatus;
15
15
  children: ReactNode;
16
16
  };
17
17
  export declare function GoabPublicFormTask({ status, children }: GoabPublicFormTaskProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "6.6.0-alpha.1",
3
+ "version": "6.6.0-alpha.3",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
File without changes