@zealicsolutions/web-ui 0.3.3-2.2125 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +31 -26
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/atoms/Buttons/Buttons.stories.d.ts +4 -4
- package/dist/cjs/src/atoms/Buttons/IconButton.d.ts +1 -1
- package/dist/cjs/src/atoms/GoogleMap/GoogleMap.d.ts +13 -2
- package/dist/cjs/src/atoms/GoogleMap/GoogleMap.stories.d.ts +12 -0
- package/dist/cjs/src/atoms/Input/Input.d.ts +1 -3
- package/dist/cjs/src/atoms/Input/Input.stories.d.ts +1 -1
- package/dist/cjs/src/atoms/Select/Select.d.ts +1 -3
- package/dist/cjs/src/containers/Container.d.ts +2 -38
- package/dist/cjs/src/containers/MoleculeItem.d.ts +1 -2
- package/dist/cjs/src/containers/mock-data.d.ts +0 -2
- package/dist/cjs/src/containers/styles.d.ts +3 -2
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +34 -96
- package/dist/cjs/src/containers/types/types.d.ts +8 -34
- package/dist/cjs/src/contexts/index.d.ts +0 -5
- package/dist/cjs/src/fieldsConfiguration/types.d.ts +1 -1
- package/dist/cjs/src/helpers/validations.d.ts +0 -9
- package/dist/cjs/src/molecules/Button/Button.d.ts +2 -1
- package/dist/cjs/src/molecules/Button/Button.stories.d.ts +2 -2
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.d.ts +3 -5
- package/dist/cjs/src/molecules/CheckboxField/CheckboxField.stories.d.ts +2 -3
- package/dist/cjs/src/molecules/Drawer/Drawer.stories.d.ts +2 -2
- package/dist/cjs/src/molecules/Image/Image.d.ts +2 -3
- package/dist/cjs/src/molecules/Image/Image.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/InputField/InputField.d.ts +1 -3
- package/dist/cjs/src/molecules/InputField/InputField.stories.d.ts +2 -3
- package/dist/cjs/src/molecules/PdfDocument/PdfDocument.d.ts +2 -1
- package/dist/cjs/src/molecules/PdfDocument/PdfDocument.stories.d.ts +9 -0
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.d.ts +2 -5
- package/dist/cjs/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +2 -3
- package/dist/cjs/src/molecules/SelectField/SelectField.d.ts +1 -3
- package/dist/cjs/src/molecules/SelectField/SelectField.stories.d.ts +2 -3
- package/dist/cjs/src/molecules/Video/Video.d.ts +1 -3
- package/dist/cjs/src/molecules/Video/Video.stories.d.ts +2 -2
- package/dist/cjs/src/molecules/index.d.ts +0 -2
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -1
- package/dist/cjs/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/Consent/Consent.d.ts +11 -0
- package/dist/cjs/src/organisms/Consent/Consent.stories.d.ts +9 -0
- package/dist/{esm/src/molecules → cjs/src/organisms}/Consent/ConsentCapture.d.ts +1 -2
- package/dist/cjs/src/{molecules → organisms}/Consent/consentMock.d.ts +2 -2
- package/dist/cjs/src/organisms/FeedContent/styles.d.ts +1 -1
- package/dist/cjs/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/cjs/src/organisms/LoginForm/LoginForm.stories.d.ts +2 -2
- package/dist/cjs/src/organisms/index.d.ts +1 -0
- package/dist/cjs/src/typescript.d.ts +0 -3
- package/dist/esm/index.js +31 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/atoms/Buttons/Buttons.stories.d.ts +4 -4
- package/dist/esm/src/atoms/Buttons/IconButton.d.ts +1 -1
- package/dist/esm/src/atoms/GoogleMap/GoogleMap.d.ts +13 -2
- package/dist/esm/src/atoms/GoogleMap/GoogleMap.stories.d.ts +12 -0
- package/dist/esm/src/atoms/Input/Input.d.ts +1 -3
- package/dist/esm/src/atoms/Input/Input.stories.d.ts +1 -1
- package/dist/esm/src/atoms/Select/Select.d.ts +1 -3
- package/dist/esm/src/containers/Container.d.ts +2 -38
- package/dist/esm/src/containers/MoleculeItem.d.ts +1 -2
- package/dist/esm/src/containers/mock-data.d.ts +0 -2
- package/dist/esm/src/containers/styles.d.ts +3 -2
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +34 -96
- package/dist/esm/src/containers/types/types.d.ts +8 -34
- package/dist/esm/src/contexts/index.d.ts +0 -5
- package/dist/esm/src/fieldsConfiguration/types.d.ts +1 -1
- package/dist/esm/src/helpers/validations.d.ts +0 -9
- package/dist/esm/src/molecules/Button/Button.d.ts +2 -1
- package/dist/esm/src/molecules/Button/Button.stories.d.ts +2 -2
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.d.ts +3 -5
- package/dist/esm/src/molecules/CheckboxField/CheckboxField.stories.d.ts +2 -3
- package/dist/esm/src/molecules/Drawer/Drawer.stories.d.ts +2 -2
- package/dist/esm/src/molecules/Image/Image.d.ts +2 -3
- package/dist/esm/src/molecules/Image/Image.stories.d.ts +1 -1
- package/dist/esm/src/molecules/InputField/InputField.d.ts +1 -3
- package/dist/esm/src/molecules/InputField/InputField.stories.d.ts +2 -3
- package/dist/esm/src/molecules/PdfDocument/PdfDocument.d.ts +2 -1
- package/dist/esm/src/molecules/PdfDocument/PdfDocument.stories.d.ts +9 -0
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.d.ts +2 -5
- package/dist/esm/src/molecules/RadioButtonField/RadioButtonField.stories.d.ts +2 -3
- package/dist/esm/src/molecules/SelectField/SelectField.d.ts +1 -3
- package/dist/esm/src/molecules/SelectField/SelectField.stories.d.ts +2 -3
- package/dist/esm/src/molecules/Video/Video.d.ts +1 -3
- package/dist/esm/src/molecules/Video/Video.stories.d.ts +2 -2
- package/dist/esm/src/molecules/index.d.ts +0 -2
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.d.ts +1 -1
- package/dist/esm/src/organisms/AcquisitionForm/AcquisitionForm.stories.d.ts +2 -2
- package/dist/esm/src/organisms/Consent/Consent.d.ts +11 -0
- package/dist/esm/src/organisms/Consent/Consent.stories.d.ts +9 -0
- package/dist/{cjs/src/molecules → esm/src/organisms}/Consent/ConsentCapture.d.ts +1 -2
- package/dist/esm/src/{molecules → organisms}/Consent/consentMock.d.ts +2 -2
- package/dist/esm/src/organisms/FeedContent/styles.d.ts +1 -1
- package/dist/esm/src/organisms/LoginForm/LoginForm.d.ts +1 -1
- package/dist/esm/src/organisms/LoginForm/LoginForm.stories.d.ts +2 -2
- package/dist/esm/src/organisms/index.d.ts +1 -0
- package/dist/esm/src/typescript.d.ts +0 -3
- package/dist/index.d.ts +157 -340
- package/package.json +5 -10
- package/dist/cjs/src/atoms/Input/helpers.d.ts +0 -18
- package/dist/cjs/src/containers/FormStepContainer.d.ts +0 -6
- package/dist/cjs/src/containers/hooks/index.d.ts +0 -1
- package/dist/cjs/src/containers/hooks/useCheckCondition.d.ts +0 -11
- package/dist/cjs/src/containers/hooks/useCheckCondition.test.d.ts +0 -1
- package/dist/cjs/src/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +0 -11
- package/dist/cjs/src/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +0 -11
- package/dist/cjs/src/contexts/FormStepContext/FormStepContext.d.ts +0 -13
- package/dist/cjs/src/contexts/FormStepContext/FormStepContextProvider.d.ts +0 -5
- package/dist/cjs/src/contexts/FormStepContext/utils.d.ts +0 -2
- package/dist/cjs/src/contexts/OrganismContext/OrganismContext.d.ts +0 -8
- package/dist/cjs/src/contexts/OrganismContext/OrganismContextProvider.d.ts +0 -6
- package/dist/cjs/src/contexts/OrganismContext/utils.d.ts +0 -5
- package/dist/cjs/src/contexts/hooks/index.d.ts +0 -4
- package/dist/cjs/src/contexts/hooks/useButtonActionsContext.d.ts +0 -1
- package/dist/cjs/src/contexts/hooks/useFormStepContext.d.ts +0 -1
- package/dist/cjs/src/contexts/hooks/useOrganismContext.d.ts +0 -1
- package/dist/cjs/src/molecules/Consent/Consent.d.ts +0 -28
- package/dist/cjs/src/molecules/Consent/Consent.stories.d.ts +0 -9
- package/dist/cjs/src/molecules/Consent/ConsentMolecule.d.ts +0 -3
- package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.d.ts +0 -20
- package/dist/cjs/src/molecules/ZealUIModal/ZealUIModal.stories.d.ts +0 -9
- package/dist/esm/src/atoms/Input/helpers.d.ts +0 -18
- package/dist/esm/src/containers/FormStepContainer.d.ts +0 -6
- package/dist/esm/src/containers/hooks/index.d.ts +0 -1
- package/dist/esm/src/containers/hooks/useCheckCondition.d.ts +0 -11
- package/dist/esm/src/containers/hooks/useCheckCondition.test.d.ts +0 -1
- package/dist/esm/src/contexts/ButtonActionsContext/ButtonActionsContext.d.ts +0 -11
- package/dist/esm/src/contexts/ButtonActionsContext/ButtonActionsContextProvider.d.ts +0 -11
- package/dist/esm/src/contexts/FormStepContext/FormStepContext.d.ts +0 -13
- package/dist/esm/src/contexts/FormStepContext/FormStepContextProvider.d.ts +0 -5
- package/dist/esm/src/contexts/FormStepContext/utils.d.ts +0 -2
- package/dist/esm/src/contexts/OrganismContext/OrganismContext.d.ts +0 -8
- package/dist/esm/src/contexts/OrganismContext/OrganismContextProvider.d.ts +0 -6
- package/dist/esm/src/contexts/OrganismContext/utils.d.ts +0 -5
- package/dist/esm/src/contexts/hooks/index.d.ts +0 -4
- package/dist/esm/src/contexts/hooks/useButtonActionsContext.d.ts +0 -1
- package/dist/esm/src/contexts/hooks/useFormStepContext.d.ts +0 -1
- package/dist/esm/src/contexts/hooks/useOrganismContext.d.ts +0 -1
- package/dist/esm/src/molecules/Consent/Consent.d.ts +0 -28
- package/dist/esm/src/molecules/Consent/Consent.stories.d.ts +0 -9
- package/dist/esm/src/molecules/Consent/ConsentMolecule.d.ts +0 -3
- package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.d.ts +0 -20
- package/dist/esm/src/molecules/ZealUIModal/ZealUIModal.stories.d.ts +0 -9
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zealicsolutions/web-ui",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.4",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"
|
@@ -53,15 +53,12 @@
|
|
53
53
|
"@swc/jest": "^0.2.22",
|
54
54
|
"@testing-library/jest-dom": "^5.16.5",
|
55
55
|
"@testing-library/react": "^13.4.0",
|
56
|
-
"@testing-library/react-hooks": "^8.0.1",
|
57
56
|
"@testing-library/user-event": "^14.4.3",
|
58
57
|
"@types/jest": "^29.0.0",
|
59
58
|
"@types/react": "^18.0.18",
|
60
59
|
"@types/react-pdf": "^6.2.0",
|
61
|
-
"@types/react-text-mask": "^5.4.11",
|
62
60
|
"@types/styled-components": "^5.1.26",
|
63
61
|
"@types/styled-system": "^5.1.15",
|
64
|
-
"@types/text-mask-addons": "^3.8.1",
|
65
62
|
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
66
63
|
"@typescript-eslint/parser": "^5.36.2",
|
67
64
|
"babel-loader": "^8.2.5",
|
@@ -88,8 +85,8 @@
|
|
88
85
|
"peerDependencies": {
|
89
86
|
"react": "^18.2.0",
|
90
87
|
"react-dom": "^18.2.0",
|
91
|
-
"
|
92
|
-
"
|
88
|
+
"styled-components": "^5.3.5",
|
89
|
+
"react-pdf": "6.2.2"
|
93
90
|
},
|
94
91
|
"dependencies": {
|
95
92
|
"@mui/material": "^5.10.4",
|
@@ -104,11 +101,9 @@
|
|
104
101
|
"react-google-maps": "^9.4.5",
|
105
102
|
"react-hook-form": "^7.34.2",
|
106
103
|
"react-pdf": "6.2.2",
|
107
|
-
"react-text-mask": "^5.5.0",
|
108
104
|
"slate": "^0.85.0",
|
109
105
|
"slate-react": "^0.83.2",
|
110
|
-
"styled-components": "^5.3.5"
|
111
|
-
"text-mask-addons": "^3.8.0"
|
106
|
+
"styled-components": "^5.3.5"
|
112
107
|
},
|
113
108
|
"resolutions": {
|
114
109
|
"@mui/styled-engine": "npm:@mui/styled-engine-sc@latest"
|
@@ -124,4 +119,4 @@
|
|
124
119
|
"homepage": "https://bitbucket.org/Zealic_Solutions/zeal-ui-web#readme",
|
125
120
|
"keywords": [],
|
126
121
|
"description": ""
|
127
|
-
}
|
122
|
+
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { MaskedInputProps } from 'react-text-mask';
|
2
|
-
import { HTMLInputTypeAttribute } from 'react';
|
3
|
-
import { ThemeColors } from 'theme';
|
4
|
-
import { InputProps } from 'atoms';
|
5
|
-
import { InputFieldTypes } from '../../fieldsConfiguration';
|
6
|
-
export declare type MaskConfig = Partial<{
|
7
|
-
maskPlaceholder: string;
|
8
|
-
dataModelFieldType: InputFieldTypes;
|
9
|
-
maskPattern: Array<string | RegExp>;
|
10
|
-
}>;
|
11
|
-
export declare const getSpecificInputProps: (type: InputFieldTypes) => {
|
12
|
-
type?: HTMLInputTypeAttribute | undefined;
|
13
|
-
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
14
|
-
};
|
15
|
-
export declare const getMaskInputProps: (type?: InputFieldTypes, config?: MaskConfig) => Pick<MaskedInputProps, 'pipe' | 'mask' | 'placeholder' | 'keepCharPositions'>;
|
16
|
-
export declare const getInputIconColor: ({ isEditMode, isFocused, isError, disabled, }: Pick<InputProps, "disabled" | "isError" | "isEditMode"> & {
|
17
|
-
isFocused: boolean;
|
18
|
-
}) => ThemeColors;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
import { FormStepContainerProps } from 'containers';
|
3
|
-
export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
|
4
|
-
id: string;
|
5
|
-
};
|
6
|
-
export declare const FormStepContainer: ({ order, id }: StepContainerProps) => JSX.Element | null;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { useCheckCondition } from './useCheckCondition';
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { ConditionConfig, ConditionCriteria } from 'containers/types/types';
|
2
|
-
import { AnyObject } from 'typescript';
|
3
|
-
/**
|
4
|
-
* @attention This hook needs to be used inside of the form container for the form fields
|
5
|
-
*/
|
6
|
-
export declare const useCheckCondition: (config?: ConditionConfig, formData?: AnyObject) => boolean;
|
7
|
-
export declare type GetEvaluateCriteriaFunctionParams = {
|
8
|
-
criteriaList?: ConditionCriteria[];
|
9
|
-
data?: AnyObject;
|
10
|
-
};
|
11
|
-
export declare const getEvaluateCriteriaFunction: ({ criteriaList, data, }: GetEvaluateCriteriaFunctionParams) => (criteria?: ConditionCriteria) => boolean;
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
import { ContainerComponentProps } from 'containers';
|
3
|
-
export declare type ButtonActionsContextType = {
|
4
|
-
actionContent?: ContainerComponentProps;
|
5
|
-
setActionContent: Dispatch<SetStateAction<ContainerComponentProps>>;
|
6
|
-
isModalVisible: boolean;
|
7
|
-
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
8
|
-
isDrawerVisible: boolean;
|
9
|
-
setDrawerVisible: Dispatch<SetStateAction<boolean>>;
|
10
|
-
};
|
11
|
-
export declare const ButtonActionsContext: import("react").Context<ButtonActionsContextType>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Dispatch, PropsWithChildren, SetStateAction } from 'react';
|
2
|
-
import { ContainerComponentProps } from 'containers';
|
3
|
-
export declare type ButtonActionsProviderProps = PropsWithChildren<Partial<{
|
4
|
-
actionContent: ContainerComponentProps;
|
5
|
-
setActionContent: Dispatch<SetStateAction<ContainerComponentProps>>;
|
6
|
-
isModalVisible: boolean;
|
7
|
-
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
8
|
-
setDrawerVisible: Dispatch<SetStateAction<boolean>>;
|
9
|
-
isDrawerVisible: boolean;
|
10
|
-
}>>;
|
11
|
-
export declare const ButtonActionsProvider: ({ children }: ButtonActionsProviderProps) => JSX.Element;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
export declare type FormStepContextType = {
|
3
|
-
steps: number;
|
4
|
-
currentStep: number;
|
5
|
-
goToNextStep: () => void;
|
6
|
-
goToPrevStep: () => void;
|
7
|
-
reset: () => void;
|
8
|
-
canGoToNextStep: boolean;
|
9
|
-
canGoToPrevStep: boolean;
|
10
|
-
setStep: Dispatch<SetStateAction<number>>;
|
11
|
-
setInitSteps: Dispatch<SetStateAction<number>>;
|
12
|
-
};
|
13
|
-
export declare const FormStepContext: import("react").Context<FormStepContextType>;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
export declare type FormStepContextProviderProps = PropsWithChildren<{
|
3
|
-
initialStepsCount?: number;
|
4
|
-
}>;
|
5
|
-
export declare const FormStepContextProvider: ({ initialStepsCount, children, }: FormStepContextProviderProps) => JSX.Element;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
-
import { GroupedStepItemsByStepContainer } from './utils';
|
4
|
-
export declare type OrganismContextType = {
|
5
|
-
items: (ContainerComponentProps | Molecule)[];
|
6
|
-
groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
|
7
|
-
};
|
8
|
-
export declare const OrganismContext: import("react").Context<OrganismContextType>;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
-
export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
4
|
-
initItems: (ContainerComponentProps | Molecule)[];
|
5
|
-
}>>;
|
6
|
-
export declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { ContainerComponentProps, Molecule } from 'containers';
|
2
|
-
declare type StepItem = ContainerComponentProps | Molecule;
|
3
|
-
export declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
|
4
|
-
export declare const groupStepItemsByStepContainer: (items: StepItem[]) => GroupedStepItemsByStepContainer;
|
5
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useButtonActionsContext: () => import("contexts/ButtonActionsContext/ButtonActionsContext").ButtonActionsContextType;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useFormStepContext: () => import("contexts/FormStepContext/FormStepContext").FormStepContextType;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useOrganismContext: () => import("contexts/OrganismContext/OrganismContext").OrganismContextType;
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CustomDescendant } from 'atoms/RichTextViewer/types';
|
3
|
-
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
4
|
-
import { CSSProperties } from 'styled-components';
|
5
|
-
export declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
|
6
|
-
export declare type DefaultSelectionType = 'confirmation' | 'rejection';
|
7
|
-
export declare type Consent = {
|
8
|
-
id: string;
|
9
|
-
name: string;
|
10
|
-
acknowledgment: CustomDescendant[];
|
11
|
-
methodOfCapture: ConsentCaptureMethod;
|
12
|
-
description: string;
|
13
|
-
language: CustomDescendant[];
|
14
|
-
expiration: string;
|
15
|
-
confirmationButtonText: string;
|
16
|
-
rejectionButtonText: string;
|
17
|
-
defaultSelection: DefaultSelectionType;
|
18
|
-
value?: DefaultSelectionType | boolean;
|
19
|
-
isRequired?: boolean;
|
20
|
-
};
|
21
|
-
export declare type ConsentProps<T extends string = string> = {
|
22
|
-
text: string;
|
23
|
-
isRequired?: boolean;
|
24
|
-
consentCaptureProps: ConsentCaptureProps<T>;
|
25
|
-
containerStyles?: CSSProperties;
|
26
|
-
clearStyles?: boolean;
|
27
|
-
};
|
28
|
-
export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
3
|
-
import { Consent as ConsentComponent } from 'molecules/Consent/Consent';
|
4
|
-
declare const _default: {
|
5
|
-
title: string;
|
6
|
-
component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("molecules/Consent/Consent").ConsentProps<T>) => JSX.Element;
|
7
|
-
};
|
8
|
-
export default _default;
|
9
|
-
export declare const Consent: StoryFn<typeof ConsentComponent>;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { ModalProps as MUIModalProps } from '@mui/material';
|
2
|
-
import React, { KeyboardEvent, PropsWithChildren } from 'react';
|
3
|
-
import { CSSProperties } from 'styled-components';
|
4
|
-
import type { Callback, OverrideStyles } from 'typescript';
|
5
|
-
export declare type ZealUIModalProps = PropsWithChildren<Pick<MUIModalProps, 'open'>> & {
|
6
|
-
padding?: number | string;
|
7
|
-
wrapperStyles?: CSSProperties;
|
8
|
-
onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
|
9
|
-
modalStyles?: CSSProperties;
|
10
|
-
onClose?: Callback;
|
11
|
-
};
|
12
|
-
export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
|
13
|
-
export declare const ModalWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, OverrideStyles, never>;
|
14
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
15
|
-
activeOpacity?: number | undefined;
|
16
|
-
withoutOpacityEffect?: boolean | undefined;
|
17
|
-
disabled?: boolean | undefined;
|
18
|
-
} & {
|
19
|
-
children?: React.ReactNode;
|
20
|
-
}, never>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
3
|
-
import { ZealUIModal as ZealUIModalComponent } from './ZealUIModal';
|
4
|
-
declare const _default: {
|
5
|
-
title: string;
|
6
|
-
component: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: import("./ZealUIModal").ZealUIModalProps) => JSX.Element;
|
7
|
-
};
|
8
|
-
export default _default;
|
9
|
-
export declare const ZealUIModal: StoryFn<typeof ZealUIModalComponent>;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { MaskedInputProps } from 'react-text-mask';
|
2
|
-
import { HTMLInputTypeAttribute } from 'react';
|
3
|
-
import { ThemeColors } from 'theme';
|
4
|
-
import { InputProps } from 'atoms';
|
5
|
-
import { InputFieldTypes } from '../../fieldsConfiguration';
|
6
|
-
export declare type MaskConfig = Partial<{
|
7
|
-
maskPlaceholder: string;
|
8
|
-
dataModelFieldType: InputFieldTypes;
|
9
|
-
maskPattern: Array<string | RegExp>;
|
10
|
-
}>;
|
11
|
-
export declare const getSpecificInputProps: (type: InputFieldTypes) => {
|
12
|
-
type?: HTMLInputTypeAttribute | undefined;
|
13
|
-
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
14
|
-
};
|
15
|
-
export declare const getMaskInputProps: (type?: InputFieldTypes, config?: MaskConfig) => Pick<MaskedInputProps, 'pipe' | 'mask' | 'placeholder' | 'keepCharPositions'>;
|
16
|
-
export declare const getInputIconColor: ({ isEditMode, isFocused, isError, disabled, }: Pick<InputProps, "disabled" | "isError" | "isEditMode"> & {
|
17
|
-
isFocused: boolean;
|
18
|
-
}) => ThemeColors;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
import { FormStepContainerProps } from 'containers';
|
3
|
-
export declare type StepContainerProps = PropsWithChildren<Partial<FormStepContainerProps>> & {
|
4
|
-
id: string;
|
5
|
-
};
|
6
|
-
export declare const FormStepContainer: ({ order, id }: StepContainerProps) => JSX.Element | null;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { useCheckCondition } from './useCheckCondition';
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { ConditionConfig, ConditionCriteria } from 'containers/types/types';
|
2
|
-
import { AnyObject } from 'typescript';
|
3
|
-
/**
|
4
|
-
* @attention This hook needs to be used inside of the form container for the form fields
|
5
|
-
*/
|
6
|
-
export declare const useCheckCondition: (config?: ConditionConfig, formData?: AnyObject) => boolean;
|
7
|
-
export declare type GetEvaluateCriteriaFunctionParams = {
|
8
|
-
criteriaList?: ConditionCriteria[];
|
9
|
-
data?: AnyObject;
|
10
|
-
};
|
11
|
-
export declare const getEvaluateCriteriaFunction: ({ criteriaList, data, }: GetEvaluateCriteriaFunctionParams) => (criteria?: ConditionCriteria) => boolean;
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
import { ContainerComponentProps } from 'containers';
|
3
|
-
export declare type ButtonActionsContextType = {
|
4
|
-
actionContent?: ContainerComponentProps;
|
5
|
-
setActionContent: Dispatch<SetStateAction<ContainerComponentProps>>;
|
6
|
-
isModalVisible: boolean;
|
7
|
-
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
8
|
-
isDrawerVisible: boolean;
|
9
|
-
setDrawerVisible: Dispatch<SetStateAction<boolean>>;
|
10
|
-
};
|
11
|
-
export declare const ButtonActionsContext: import("react").Context<ButtonActionsContextType>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Dispatch, PropsWithChildren, SetStateAction } from 'react';
|
2
|
-
import { ContainerComponentProps } from 'containers';
|
3
|
-
export declare type ButtonActionsProviderProps = PropsWithChildren<Partial<{
|
4
|
-
actionContent: ContainerComponentProps;
|
5
|
-
setActionContent: Dispatch<SetStateAction<ContainerComponentProps>>;
|
6
|
-
isModalVisible: boolean;
|
7
|
-
setModalVisible: Dispatch<SetStateAction<boolean>>;
|
8
|
-
setDrawerVisible: Dispatch<SetStateAction<boolean>>;
|
9
|
-
isDrawerVisible: boolean;
|
10
|
-
}>>;
|
11
|
-
export declare const ButtonActionsProvider: ({ children }: ButtonActionsProviderProps) => JSX.Element;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
export declare type FormStepContextType = {
|
3
|
-
steps: number;
|
4
|
-
currentStep: number;
|
5
|
-
goToNextStep: () => void;
|
6
|
-
goToPrevStep: () => void;
|
7
|
-
reset: () => void;
|
8
|
-
canGoToNextStep: boolean;
|
9
|
-
canGoToPrevStep: boolean;
|
10
|
-
setStep: Dispatch<SetStateAction<number>>;
|
11
|
-
setInitSteps: Dispatch<SetStateAction<number>>;
|
12
|
-
};
|
13
|
-
export declare const FormStepContext: import("react").Context<FormStepContextType>;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
export declare type FormStepContextProviderProps = PropsWithChildren<{
|
3
|
-
initialStepsCount?: number;
|
4
|
-
}>;
|
5
|
-
export declare const FormStepContextProvider: ({ initialStepsCount, children, }: FormStepContextProviderProps) => JSX.Element;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
-
import { GroupedStepItemsByStepContainer } from './utils';
|
4
|
-
export declare type OrganismContextType = {
|
5
|
-
items: (ContainerComponentProps | Molecule)[];
|
6
|
-
groupStepItemsByStepContainer: () => GroupedStepItemsByStepContainer;
|
7
|
-
};
|
8
|
-
export declare const OrganismContext: import("react").Context<OrganismContextType>;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
2
|
-
import { ContainerComponentProps, Molecule } from 'containers';
|
3
|
-
export declare type FormStepContextProviderProps = PropsWithChildren<Partial<{
|
4
|
-
initItems: (ContainerComponentProps | Molecule)[];
|
5
|
-
}>>;
|
6
|
-
export declare const OrganismContextProvider: ({ initItems, children, }: FormStepContextProviderProps) => JSX.Element;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { ContainerComponentProps, Molecule } from 'containers';
|
2
|
-
declare type StepItem = ContainerComponentProps | Molecule;
|
3
|
-
export declare type GroupedStepItemsByStepContainer = Map<string, StepItem[]>;
|
4
|
-
export declare const groupStepItemsByStepContainer: (items: StepItem[]) => GroupedStepItemsByStepContainer;
|
5
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useButtonActionsContext: () => import("contexts/ButtonActionsContext/ButtonActionsContext").ButtonActionsContextType;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useFormStepContext: () => import("contexts/FormStepContext/FormStepContext").FormStepContextType;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useOrganismContext: () => import("contexts/OrganismContext/OrganismContext").OrganismContextType;
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { CustomDescendant } from 'atoms/RichTextViewer/types';
|
3
|
-
import { ConsentCaptureProps } from 'molecules/Consent/ConsentCapture';
|
4
|
-
import { CSSProperties } from 'styled-components';
|
5
|
-
export declare type ConsentCaptureMethod = 'button' | 'radioButton' | 'checkbox';
|
6
|
-
export declare type DefaultSelectionType = 'confirmation' | 'rejection';
|
7
|
-
export declare type Consent = {
|
8
|
-
id: string;
|
9
|
-
name: string;
|
10
|
-
acknowledgment: CustomDescendant[];
|
11
|
-
methodOfCapture: ConsentCaptureMethod;
|
12
|
-
description: string;
|
13
|
-
language: CustomDescendant[];
|
14
|
-
expiration: string;
|
15
|
-
confirmationButtonText: string;
|
16
|
-
rejectionButtonText: string;
|
17
|
-
defaultSelection: DefaultSelectionType;
|
18
|
-
value?: DefaultSelectionType | boolean;
|
19
|
-
isRequired?: boolean;
|
20
|
-
};
|
21
|
-
export declare type ConsentProps<T extends string = string> = {
|
22
|
-
text: string;
|
23
|
-
isRequired?: boolean;
|
24
|
-
consentCaptureProps: ConsentCaptureProps<T>;
|
25
|
-
containerStyles?: CSSProperties;
|
26
|
-
clearStyles?: boolean;
|
27
|
-
};
|
28
|
-
export declare const Consent: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: ConsentProps<T>) => JSX.Element;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
3
|
-
import { Consent as ConsentComponent } from 'molecules/Consent/Consent';
|
4
|
-
declare const _default: {
|
5
|
-
title: string;
|
6
|
-
component: <T extends string>({ text, consentCaptureProps, containerStyles, clearStyles, }: import("molecules/Consent/Consent").ConsentProps<T>) => JSX.Element;
|
7
|
-
};
|
8
|
-
export default _default;
|
9
|
-
export declare const Consent: StoryFn<typeof ConsentComponent>;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { ModalProps as MUIModalProps } from '@mui/material';
|
2
|
-
import React, { KeyboardEvent, PropsWithChildren } from 'react';
|
3
|
-
import { CSSProperties } from 'styled-components';
|
4
|
-
import type { Callback, OverrideStyles } from 'typescript';
|
5
|
-
export declare type ZealUIModalProps = PropsWithChildren<Pick<MUIModalProps, 'open'>> & {
|
6
|
-
padding?: number | string;
|
7
|
-
wrapperStyles?: CSSProperties;
|
8
|
-
onKeyDown?: <T extends HTMLElement>(event: KeyboardEvent<T>) => void;
|
9
|
-
modalStyles?: CSSProperties;
|
10
|
-
onClose?: Callback;
|
11
|
-
};
|
12
|
-
export declare const ZealUIModal: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: ZealUIModalProps) => JSX.Element;
|
13
|
-
export declare const ModalWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, OverrideStyles, never>;
|
14
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
15
|
-
activeOpacity?: number | undefined;
|
16
|
-
withoutOpacityEffect?: boolean | undefined;
|
17
|
-
disabled?: boolean | undefined;
|
18
|
-
} & {
|
19
|
-
children?: React.ReactNode;
|
20
|
-
}, never>;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
3
|
-
import { ZealUIModal as ZealUIModalComponent } from './ZealUIModal';
|
4
|
-
declare const _default: {
|
5
|
-
title: string;
|
6
|
-
component: ({ children, wrapperStyles, padding, onKeyDown, modalStyles, ...rest }: import("./ZealUIModal").ZealUIModalProps) => JSX.Element;
|
7
|
-
};
|
8
|
-
export default _default;
|
9
|
-
export declare const ZealUIModal: StoryFn<typeof ZealUIModalComponent>;
|