@abgov/react-components 6.6.0-alpha.2 → 6.6.0-alpha.4

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.
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { GoabFieldsetOnChangeDetail, GoabFieldsetOnContinueDetail, GoabFormDispatchOn, Margins } from '@abgov/ui-components-common';
3
- interface WCProps extends Margins {
2
+ import { GoabFieldsetOnContinueDetail, GoabFormDispatchOn } from '@abgov/ui-components-common';
3
+ interface WCProps {
4
4
  ref?: React.RefObject<HTMLElement | null>;
5
5
  id?: string;
6
6
  "section-title"?: string;
@@ -13,13 +13,12 @@ declare module "react" {
13
13
  }
14
14
  }
15
15
  }
16
- interface GoabFieldsetProps extends Margins {
16
+ interface GoabFieldsetProps {
17
17
  id?: string;
18
18
  sectionTitle?: string;
19
19
  dispatchOn?: GoabFormDispatchOn;
20
20
  onContinue?: (event: GoabFieldsetOnContinueDetail) => void;
21
- onChange?: (event: GoabFieldsetOnChangeDetail) => void;
22
21
  children: ReactNode;
23
22
  }
24
- export declare function GoabFieldset({ id, sectionTitle, dispatchOn, onContinue, onChange, children, }: GoabFieldsetProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function GoabFieldset({ id, sectionTitle, dispatchOn, onContinue, children, }: GoabFieldsetProps): import("react/jsx-runtime").JSX.Element;
25
24
  export default GoabFieldset;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { GoabPublicFormPageButtonVisibility, GoabPublicFormPageOnFieldsetChangeDetail, GoabPublicFormPageOnCompleteDetail, GoabPublicFormPageStep, Margins } from '@abgov/ui-components-common';
2
+ import { GoabPublicFormPageButtonVisibility, GoabPublicFormPageStep, Margins } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
4
  ref?: React.RefObject<HTMLElement | null>;
5
5
  id?: string;
@@ -10,8 +10,6 @@ interface WCProps extends Margins {
10
10
  type?: string;
11
11
  "button-text"?: string;
12
12
  "button-visibility"?: string;
13
- first?: boolean;
14
- last?: boolean;
15
13
  "summary-heading"?: string;
16
14
  }
17
15
  declare module "react" {
@@ -31,29 +29,12 @@ interface GoabPublicFormPageProps extends Margins {
31
29
  type?: GoabPublicFormPageStep;
32
30
  buttonText?: string;
33
31
  buttonVisibility?: GoabPublicFormPageButtonVisibility;
34
- first?: boolean;
35
- last?: boolean;
36
32
  /**
37
33
  * Triggered when the form page continues to the next step
38
34
  * @param event - The continue event details
39
35
  */
40
36
  onContinue?: (event: Event) => void;
41
- /**
42
- * Triggered when the user clicks the back link
43
- * @param event: The back event details
44
- */
45
- onBack?: (event: Event) => void;
46
- /**
47
- * Triggered when the form fieldset content changes
48
- * @param event - The fieldset change event details
49
- */
50
- onFieldsetChange?: (event: GoabPublicFormPageOnFieldsetChangeDetail) => void;
51
- /**
52
- * Triggered when the form is completed
53
- * @param event - The complete event details
54
- */
55
- onComplete?: (event: GoabPublicFormPageOnCompleteDetail) => void;
56
37
  children: ReactNode;
57
38
  }
58
- export declare function GoabPublicFormPage({ id, heading, subHeading, summaryHeading, sectionTitle, backUrl, type, buttonText, buttonVisibility, first, last, onContinue, onBack, onFieldsetChange, onComplete, children, mt, mr, mb, ml, }: GoabPublicFormPageProps): import("react/jsx-runtime").JSX.Element;
39
+ export declare function GoabPublicFormPage({ id, heading, subHeading, summaryHeading, sectionTitle, backUrl, type, buttonText, buttonVisibility, onContinue, children, mt, mr, mb, ml, }: GoabPublicFormPageProps): import("react/jsx-runtime").JSX.Element;
59
40
  export default GoabPublicFormPage;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Margins } from '@abgov/ui-components-common';
3
3
  interface WCProps extends Margins {
4
- heading: string;
4
+ heading?: string;
5
5
  }
6
6
  declare module "react" {
7
7
  namespace JSX {
@@ -10,9 +10,9 @@ declare module "react" {
10
10
  }
11
11
  }
12
12
  }
13
- type GoabPublicFormTaskListProps = {
14
- heading: string;
13
+ interface GoabPublicFormTaskListProps extends Margins {
14
+ heading?: string;
15
15
  children: ReactNode;
16
- };
17
- export declare function GoabPublicFormTaskList({ heading, children, }: GoabPublicFormTaskListProps): import("react/jsx-runtime").JSX.Element;
16
+ }
17
+ export declare function GoabPublicFormTaskList({ heading, children, mt, mr, mb, ml, }: GoabPublicFormTaskListProps): import("react/jsx-runtime").JSX.Element;
18
18
  export default GoabPublicFormTaskList;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
- import { Margins, GoabPublicFormTaskStatus } from '@abgov/ui-components-common';
3
- interface WCProps extends Margins {
4
- status: GoabPublicFormTaskStatus;
2
+ import { GoabPublicFormTaskStatus } from '@abgov/ui-components-common';
3
+ interface WCProps {
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: GoabPublicFormTaskStatus;
14
+ status?: GoabPublicFormTaskStatus;
15
15
  children: ReactNode;
16
16
  };
17
17
  export declare function GoabPublicFormTask({ status, children }: GoabPublicFormTaskProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ type SnackbarType = "basic" | "success" | "failure";
3
+ type AnimationDirection = "up" | "down";
4
+ interface WCProps {
5
+ ref: React.RefObject<HTMLElement | null>;
6
+ message?: string;
7
+ type?: SnackbarType;
8
+ duration?: number;
9
+ progress?: number;
10
+ testid?: string;
11
+ "action-text"?: string;
12
+ visible?: boolean;
13
+ "animation-direction"?: AnimationDirection;
14
+ }
15
+ declare module "react" {
16
+ namespace JSX {
17
+ interface IntrinsicElements {
18
+ "goa-temp-notification": WCProps & React.HTMLAttributes<HTMLElement>;
19
+ }
20
+ }
21
+ }
22
+ export interface GoabTemporaryNotificationProps {
23
+ message?: string;
24
+ type?: SnackbarType;
25
+ duration?: number;
26
+ progress?: number;
27
+ testId?: string;
28
+ actionText?: string;
29
+ visible?: boolean;
30
+ animationDirection?: AnimationDirection;
31
+ }
32
+ export declare const GoabTemporaryNotification: ({ message, type, duration, progress, testId, actionText, visible, animationDirection, }: GoabTemporaryNotificationProps) => import("react/jsx-runtime").JSX.Element;
33
+ export default GoabTemporaryNotification;
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ type SnackbarVerticalPosition = "top" | "bottom";
3
+ type SnackbarHorizontalPosition = "left" | "center" | "right";
4
+ interface WCProps {
5
+ ref: React.RefObject<HTMLElement | null>;
6
+ verticalPosition?: SnackbarVerticalPosition;
7
+ horizontalPosition?: SnackbarHorizontalPosition;
8
+ testid?: string;
9
+ }
10
+ declare module "react" {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ "goa-temp-notification-ctrl": WCProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ export interface GoabTemporaryNotificationCtrlProps {
18
+ verticalPosition?: SnackbarVerticalPosition;
19
+ horizontalPosition?: SnackbarHorizontalPosition;
20
+ testId?: string;
21
+ }
22
+ export declare const GoabTemporaryNotificationCtrl: ({ verticalPosition, horizontalPosition, testId, }: GoabTemporaryNotificationCtrlProps) => import("react/jsx-runtime").JSX.Element;
23
+ export default GoabTemporaryNotificationCtrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "6.6.0-alpha.2",
3
+ "version": "6.6.0-alpha.4",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"