@abgov/ui-components-common 1.5.0-alpha.3 → 1.5.0
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.cjs +1 -38
- package/index.d.ts +0 -1
- package/index.js +180 -1596
- package/lib/common.d.ts +6 -2
- package/package.json +1 -1
- package/lib/use-public-form-controller.d.ts +0 -14
package/lib/common.d.ts
CHANGED
|
@@ -8,8 +8,12 @@ export type GoabInputOnChangeDetail<T = string> = {
|
|
|
8
8
|
name: string;
|
|
9
9
|
value: T;
|
|
10
10
|
};
|
|
11
|
+
export type GoaInputOnBlurDetail = GoabInputOnBlurDetail;
|
|
12
|
+
export type GoabInputOnBlurDetail<T = string> = {
|
|
13
|
+
name: string;
|
|
14
|
+
value: T;
|
|
15
|
+
};
|
|
11
16
|
export type GoabInputOnFocusDetail<T = string> = GoabInputOnChangeDetail<T>;
|
|
12
|
-
export type GoaInputOnBlurDetail<T = string> = GoabInputOnChangeDetail<T>;
|
|
13
17
|
export type GoabInputAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
|
|
14
18
|
export type GoabInputOnKeyPressDetail<T = string> = {
|
|
15
19
|
name: string;
|
|
@@ -58,7 +62,7 @@ export type GoabPaginationOnChangeDetail = {
|
|
|
58
62
|
page: number;
|
|
59
63
|
};
|
|
60
64
|
export type GoabFormStepperType = "constrained" | "free";
|
|
61
|
-
export type GoabFormStepStatus = "complete" | "incomplete" | "
|
|
65
|
+
export type GoabFormStepStatus = "complete" | "incomplete" | "not-started";
|
|
62
66
|
export type GoabFormItemLabelSize = "regular" | "large";
|
|
63
67
|
export type GoabFormItemRequirement = "optional" | "required";
|
|
64
68
|
export type GoabFileUploadInputVariant = "dragdrop" | "button";
|
package/package.json
CHANGED
|
@@ -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
|
-
};
|