@zealicsolutions/web-ui 1.0.20 → 1.0.21
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/dist/cjs/containers/hooks/useStateListenerValue.d.ts +1 -1
- package/dist/cjs/containers/hooks/useStateModifierHandler.d.ts +2 -3
- package/dist/cjs/containers/types/types.d.ts +3 -7
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Checklist/Checklist.d.ts +1 -1
- package/dist/esm/containers/hooks/useStateListenerValue.d.ts +1 -1
- package/dist/esm/containers/hooks/useStateModifierHandler.d.ts +2 -3
- package/dist/esm/containers/hooks/useStateModifierHandler.js.map +1 -1
- package/dist/esm/containers/types/types.d.ts +3 -7
- package/dist/esm/molecules/Checklist/Checklist.d.ts +1 -1
- package/dist/esm/molecules/Checklist/Checklist.js +1 -1
- package/dist/esm/molecules/Checklist/Checklist.js.map +1 -1
- package/dist/esm/molecules/Menu/Menu.js.map +1 -1
- package/dist/index.d.ts +5 -9
- package/package.json +1 -1
@@ -8,6 +8,6 @@ export declare const useStateListenerValue: ({ stateListenerId }: UseStateListen
|
|
8
8
|
} | {
|
9
9
|
isStateDisabled: boolean;
|
10
10
|
isStateVisible: boolean;
|
11
|
-
stateValue: string | true | import("..").FormDataStateConfig | import("..").ActionEventType | import("..").BaseStateValue
|
11
|
+
stateValue: string | true | import("..").FormDataStateConfig | import("..").ActionEventType | import("..").BaseStateValue;
|
12
12
|
};
|
13
13
|
export {};
|
@@ -1,8 +1,7 @@
|
|
1
|
-
|
1
|
+
import { ActionType } from 'containers';
|
2
2
|
export declare const useStateModifierHandler: () => {
|
3
3
|
onStateChange: ({ id, type }: {
|
4
4
|
id?: string | undefined;
|
5
|
-
type:
|
5
|
+
type: ActionType;
|
6
6
|
}) => void;
|
7
7
|
};
|
8
|
-
export {};
|
@@ -143,16 +143,12 @@ export declare type FormDataStateConfig = {
|
|
143
143
|
} & Record<string, {
|
144
144
|
value?: string | number;
|
145
145
|
}>;
|
146
|
-
export declare type
|
146
|
+
export declare type ActionType = 'clicked' | 'started' | 'completed' | 'closed' | 'opened' | 'checked' | 'unchecked';
|
147
|
+
export declare type ActionEventType = Record<'interacted', ActionType>;
|
147
148
|
export declare type BaseStateValue = {
|
148
149
|
visible: boolean;
|
149
|
-
started: boolean;
|
150
150
|
disabled: boolean;
|
151
|
-
completed: boolean;
|
152
|
-
};
|
153
|
-
export declare type ChecklistItemStateValue = {
|
154
|
-
checked: boolean;
|
155
151
|
};
|
156
152
|
export declare type StateConfigType = {
|
157
|
-
[stateKey: string]: null | string | boolean | FormDataStateConfig | ActionEventType | BaseStateValue
|
153
|
+
[stateKey: string]: null | string | boolean | FormDataStateConfig | ActionEventType | BaseStateValue;
|
158
154
|
};
|