@abgov/ui-components-common 1.5.0-alpha.2 → 1.5.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.
package/lib/common.d.ts CHANGED
@@ -38,6 +38,7 @@ export type GoabDatePickerOnChangeDetail = {
38
38
  name?: string;
39
39
  value: string | Date | undefined;
40
40
  };
41
+ export type GoabDatePickerInputType = "calendar" | "input";
41
42
  export type GoabChipVariant = "filter";
42
43
  export type GoabChipTheme = "outline" | "filled";
43
44
  export type GoabFilterChipTheme = "outline" | "filled";
@@ -57,7 +58,7 @@ export type GoabPaginationOnChangeDetail = {
57
58
  page: number;
58
59
  };
59
60
  export type GoabFormStepperType = "constrained" | "free";
60
- export type GoabFormStepStatus = "complete" | "incomplete" | "unstarted";
61
+ export type GoabFormStepStatus = "complete" | "incomplete" | "not-started";
61
62
  export type GoabFormItemLabelSize = "regular" | "large";
62
63
  export type GoabFormItemRequirement = "optional" | "required";
63
64
  export type GoabFileUploadInputVariant = "dragdrop" | "button";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/ui-components-common",
3
- "version": "1.5.0-alpha.2",
3
+ "version": "1.5.0-alpha.4",
4
4
  "bugs": {
5
5
  "url": "https://github.com/GovAlta/ui-components/issues"
6
6
  },
@@ -1,14 +0,0 @@
1
- import { PublicFormController, AppState } from './public-form-controller';
2
- import { GoabFieldsetItemValue } from './common';
3
- import { FieldValidator } from './validators';
4
- export declare function usePublicFormController<T>(type?: "details" | "list"): {
5
- state: AppState<T> | AppState<T>[] | undefined;
6
- init: (e: Event) => void;
7
- initList: (e: Event) => void;
8
- initState: (state?: string | AppState<T> | AppState<T>[], callback?: () => void) => void;
9
- continueTo: (next: T | undefined) => void;
10
- validate: (e: Event, field: string, validators: FieldValidator[]) => [boolean, GoabFieldsetItemValue];
11
- getStateValue: (group: string, key: string) => string;
12
- getStateList: () => Record<string, string>[];
13
- controller: PublicFormController<T>;
14
- };