@hievilmath/browser-formidavim 1.2.4 → 1.2.5
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.js +276 -199
- package/index.mjs +3079 -2928
- package/lib/components/inputs/TitrationSelect.d.ts +10 -0
- package/lib/hooks/useFlowStore.d.ts +4 -0
- package/lib/state/slices/flow.slice.d.ts +21 -1
- package/lib/styled-components/uiComponents.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
|
|
3
|
+
export interface TitrationSelectProps {
|
|
4
|
+
label: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
propertyId: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const TitrationSelect: FC<{
|
|
9
|
+
formComponent: Partial<FormComponent>;
|
|
10
|
+
}>;
|
|
@@ -4,6 +4,10 @@ export declare const useFlowStore: () => {
|
|
|
4
4
|
setFlowValues: (values: Record<string, any>) => void;
|
|
5
5
|
getFlowValue: (field: string) => any;
|
|
6
6
|
getAllFlowData: () => Record<string, any>;
|
|
7
|
+
setFlowError: (field: string, error: string | null) => void;
|
|
8
|
+
getFlowError: (field: string) => any;
|
|
9
|
+
setDisableSubmitValue: (disabled: boolean) => void;
|
|
10
|
+
getDisableSubmitValue: () => boolean;
|
|
7
11
|
setPatientValue: (field: string, value: any) => void;
|
|
8
12
|
setPatientValues: (profile: any) => void;
|
|
9
13
|
getPatientValue: (field: string) => string | undefined;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
export interface FlowSliceState {
|
|
3
3
|
inputValues: Record<string, any>;
|
|
4
|
+
inputErrors: Record<string, any>;
|
|
5
|
+
disableSubmit: boolean;
|
|
4
6
|
}
|
|
5
7
|
export declare const flowSlice: import('@reduxjs/toolkit').Slice<FlowSliceState, {
|
|
6
8
|
setInputValue: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<{
|
|
@@ -8,15 +10,33 @@ export declare const flowSlice: import('@reduxjs/toolkit').Slice<FlowSliceState,
|
|
|
8
10
|
value: any;
|
|
9
11
|
}>) => void;
|
|
10
12
|
setInputValues: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<Record<string, any>>) => void;
|
|
13
|
+
setInputError: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<{
|
|
14
|
+
field: string;
|
|
15
|
+
error: string | null;
|
|
16
|
+
}>) => void;
|
|
17
|
+
setDisableSubmit: (state: import('immer').WritableDraft<FlowSliceState>, action: PayloadAction<boolean>) => void;
|
|
11
18
|
}, "flow", "flow", {
|
|
12
19
|
selectInputValues: (state: FlowSliceState) => Record<string, any>;
|
|
20
|
+
selectInputErrors: (state: FlowSliceState) => Record<string, any>;
|
|
21
|
+
selectDisableSubmit: (state: FlowSliceState) => boolean;
|
|
13
22
|
}>;
|
|
14
23
|
export declare const setInputValue: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
15
24
|
field: string;
|
|
16
25
|
value: any;
|
|
17
|
-
}, "flow/setInputValue">, setInputValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<Record<string, any>, "flow/setInputValues"
|
|
26
|
+
}, "flow/setInputValue">, setInputValues: import('@reduxjs/toolkit').ActionCreatorWithPayload<Record<string, any>, "flow/setInputValues">, setInputError: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
27
|
+
field: string;
|
|
28
|
+
error: string | null;
|
|
29
|
+
}, "flow/setInputError">, setDisableSubmit: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "flow/setDisableSubmit">;
|
|
18
30
|
export declare const selectInputValues: import('reselect').Selector<{
|
|
19
31
|
flow: FlowSliceState;
|
|
20
32
|
}, Record<string, any>, []> & {
|
|
21
33
|
unwrapped: (state: FlowSliceState) => Record<string, any>;
|
|
34
|
+
}, selectInputErrors: import('reselect').Selector<{
|
|
35
|
+
flow: FlowSliceState;
|
|
36
|
+
}, Record<string, any>, []> & {
|
|
37
|
+
unwrapped: (state: FlowSliceState) => Record<string, any>;
|
|
38
|
+
}, selectDisableSubmit: import('reselect').Selector<{
|
|
39
|
+
flow: FlowSliceState;
|
|
40
|
+
}, boolean, []> & {
|
|
41
|
+
unwrapped: (state: FlowSliceState) => boolean;
|
|
22
42
|
};
|
|
@@ -94,6 +94,13 @@ interface FlowBtnWrapperDesktopProps {
|
|
|
94
94
|
$align?: string;
|
|
95
95
|
$borderOff?: boolean;
|
|
96
96
|
}
|
|
97
|
+
interface FormHeaderMobileProps {
|
|
98
|
+
$tracker?: boolean;
|
|
99
|
+
}
|
|
100
|
+
interface FlowStepTrackerBarProps {
|
|
101
|
+
$currentStep: number;
|
|
102
|
+
$totalSteps: number;
|
|
103
|
+
}
|
|
97
104
|
export declare const MdBtn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, BaseButtonProps>> & string;
|
|
98
105
|
export declare const SmBtn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, SmallButtonProps>> & string;
|
|
99
106
|
export declare const MdBtnA: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, BaseButtonProps>> & string;
|
|
@@ -132,4 +139,9 @@ export declare const StyledImage: import('styled-components/dist/types').IStyled
|
|
|
132
139
|
$margin?: string;
|
|
133
140
|
}>> & string;
|
|
134
141
|
export declare const StyledRadioLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
142
|
+
export declare const FormHeaderDesktop: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
143
|
+
export declare const FlowStepTrackerContainerMobile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
144
|
+
export declare const FormHeaderMobile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormHeaderMobileProps>> & string;
|
|
145
|
+
export declare const FlowStepTrackerBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FlowStepTrackerBarProps>> & string;
|
|
146
|
+
export declare const FlowBtnWrapperMobile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
135
147
|
export {};
|