tp-react-elements-dev 1.12.6 → 1.12.8
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/App.d.ts +2 -2
- package/dist/App.test.d.ts +1 -1
- package/dist/Utilities/Constants/FormConstants.d.ts +10 -10
- package/dist/Utilities/Constants/FunctionConstants.d.ts +61 -0
- package/dist/Utilities/Interface/FormInterface.d.ts +69 -70
- package/dist/components/DeleteComponent/Delete.stories.d.ts +5 -4
- package/dist/components/DeleteComponent/DeleteField.d.ts +7 -7
- package/dist/components/Form/Form.stories.d.ts +5 -4
- package/dist/components/Form/Form.styles.d.ts +43 -40
- package/dist/components/Form/FormActiveSwitch.d.ts +3 -3
- package/dist/components/Form/FormConstants.d.ts +13 -13
- package/dist/components/Form/FormContainer.d.ts +2 -2
- package/dist/components/Form/FormRender.d.ts +3 -3
- package/dist/components/Form/FormRenderConstants.d.ts +15 -15
- package/dist/components/Form/FormRenderWrapper.d.ts +18 -18
- package/dist/components/FormComponents/DatePicker/DateRangePicker.d.ts +7 -7
- package/dist/components/FormComponents/DatePicker/DatepickerWrapperV2.d.ts +6 -6
- package/dist/components/FormComponents/DatePicker/MonthPicker.d.ts +2 -2
- package/dist/components/FormComponents/DatePicker/Monthpickerrender.d.ts +6 -6
- package/dist/components/FormComponents/FileUpload/FormRenderFileUpload.d.ts +6 -6
- package/dist/components/FormComponents/FileUpload/FormRenderMultiFileUpload.d.ts +6 -6
- package/dist/components/FormComponents/FormBottomField/FormBottomField.d.ts +3 -3
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +6 -6
- package/dist/components/FormComponents/FormCheckBoxGroup/FormCheckBoxGroup.d.ts +6 -6
- package/dist/components/FormComponents/FormErrorField/FormErrorField.d.ts +3 -3
- package/dist/components/FormComponents/FormNumberField/FormNumberField.d.ts +6 -6
- package/dist/components/FormComponents/FormNumberField/FormNumberFieldDecimal.d.ts +6 -6
- package/dist/components/FormComponents/FormRadioGroup/FormRadioGroup.d.ts +6 -6
- package/dist/components/FormComponents/FormTextAreaField/FormTextAreaField.d.ts +6 -6
- package/dist/components/FormComponents/FormTextAreaField/FormTextAreaField.styles.d.ts +3 -3
- package/dist/components/FormComponents/FormTextField/FormTextField.d.ts +6 -6
- package/dist/components/FormComponents/FormTextField/FormTextField.styles.d.ts +5 -5
- package/dist/components/FormComponents/HelperText/HelperText.d.ts +3 -3
- package/dist/components/FormComponents/PasswordField/PasswordField.d.ts +6 -6
- package/dist/components/FormComponents/RichTextEditor/RichTextEditor.d.ts +5 -5
- package/dist/components/FormComponents/RichTextEditor/RichTextEditorWrapper.d.ts +6 -6
- package/dist/components/FormComponents/RichTextEditor/jodit.index.d.ts +17 -17
- package/dist/components/FormComponents/Select/MultiSelect.d.ts +2 -2
- package/dist/components/FormComponents/Select/MultiSelectv1.d.ts +5 -5
- package/dist/components/FormComponents/Select/SingleSelect.d.ts +6 -6
- package/dist/components/FormComponents/Select/SingleSelectNonAutoComplete.d.ts +6 -6
- package/dist/components/FormComponents/Select/SingleSelectSearchApi.d.ts +2 -2
- package/dist/components/FormComponents/TimePicker/TimePicker.d.ts +5 -5
- package/dist/components/FormComponents/YearPickerField/YearPickerField.d.ts +2 -2
- package/dist/components/Global.styles.d.ts +34 -35
- package/dist/components/ModalField/ConfirmationDialog.d.ts +11 -11
- package/dist/components/ModalField/ModalField.d.ts +17 -18
- package/dist/components/SelectField/MultiSelectFieldComponent.d.ts +11 -11
- package/dist/components/SessionTimeOut/SessionTimeOut.d.ts +10 -10
- package/dist/components/SessionTimeOut/SessionTimeOut.stories.d.ts +5 -4
- package/dist/components/TimePickerField/TimePickerField.d.ts +1 -1
- package/dist/components/index.d.ts +10 -10
- package/dist/index.d.ts +11 -22
- package/dist/index.esm.js +80925 -164824
- package/dist/index.js +81298 -165524
- package/dist/libraries/App.d.ts +2 -0
- package/dist/libraries/App.test.d.ts +1 -0
- package/dist/libraries/Utilities/Constants/FormConstants.d.ts +10 -0
- package/dist/libraries/Utilities/Constants/FunctionConstants.d.ts +61 -0
- package/dist/libraries/Utilities/Interface/FormInterface.d.ts +69 -0
- package/dist/libraries/axios.d.ts +1 -0
- package/dist/libraries/cache-buster.d.ts +2 -0
- package/dist/libraries/components/DeleteComponent/Delete.stories.d.ts +5 -0
- package/dist/libraries/components/DeleteComponent/DeleteField.d.ts +7 -0
- package/dist/libraries/components/Form/Form.stories.d.ts +5 -0
- package/dist/libraries/components/Form/Form.styles.d.ts +43 -0
- package/dist/libraries/components/Form/FormActiveSwitch.d.ts +3 -0
- package/dist/libraries/components/Form/FormConstants.d.ts +13 -0
- package/dist/libraries/components/Form/FormContainer.d.ts +2 -0
- package/dist/libraries/components/Form/FormRender.d.ts +3 -0
- package/dist/libraries/components/Form/FormRenderConstants.d.ts +15 -0
- package/dist/libraries/components/Form/FormRenderWrapper.d.ts +18 -0
- package/dist/libraries/components/FormComponents/DatePicker/DateRangePicker.d.ts +7 -0
- package/dist/libraries/components/FormComponents/DatePicker/DatepickerWrapperV2.d.ts +6 -0
- package/dist/libraries/components/FormComponents/DatePicker/MonthPicker.d.ts +2 -0
- package/dist/libraries/components/FormComponents/DatePicker/Monthpickerrender.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FileUpload/FormRenderFileUpload.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FileUpload/FormRenderMultiFileUpload.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FormBottomField/FormBottomField.d.ts +3 -0
- package/dist/libraries/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FormCheckBoxGroup/FormCheckBoxGroup.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FormErrorField/FormErrorField.d.ts +3 -0
- package/dist/libraries/components/FormComponents/FormNumberField/FormNumberField.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FormNumberField/FormNumberFieldDecimal.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FormRadioGroup/FormRadioGroup.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FormTextAreaField/FormTextAreaField.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FormTextAreaField/FormTextAreaField.styles.d.ts +3 -0
- package/dist/libraries/components/FormComponents/FormTextField/FormTextField.d.ts +6 -0
- package/dist/libraries/components/FormComponents/FormTextField/FormTextField.styles.d.ts +5 -0
- package/dist/libraries/components/FormComponents/HelperText/HelperText.d.ts +3 -0
- package/dist/libraries/components/FormComponents/PasswordField/PasswordField.d.ts +6 -0
- package/dist/libraries/components/FormComponents/RichTextEditor/RichTextEditor.d.ts +5 -0
- package/dist/libraries/components/FormComponents/RichTextEditor/RichTextEditorWrapper.d.ts +6 -0
- package/dist/libraries/components/FormComponents/RichTextEditor/jodit.index.d.ts +17 -0
- package/dist/libraries/components/FormComponents/Select/MultiSelect.d.ts +2 -0
- package/dist/libraries/components/FormComponents/Select/MultiSelectv1.d.ts +5 -0
- package/dist/libraries/components/FormComponents/Select/SingleSelect.d.ts +6 -0
- package/dist/libraries/components/FormComponents/Select/SingleSelectNonAutoComplete.d.ts +6 -0
- package/dist/libraries/components/FormComponents/Select/SingleSelectSearchApi.d.ts +2 -0
- package/dist/libraries/components/FormComponents/TimePicker/TimePicker.d.ts +5 -0
- package/dist/libraries/components/FormComponents/YearPickerField/YearPickerField.d.ts +2 -0
- package/dist/libraries/components/Global.styles.d.ts +34 -0
- package/dist/libraries/components/ModalField/ConfirmationDialog.d.ts +11 -0
- package/dist/libraries/components/ModalField/ModalField.d.ts +17 -0
- package/dist/libraries/components/SelectField/MultiSelectFieldComponent.d.ts +11 -0
- package/dist/libraries/components/SessionTimeOut/SessionTimeOut.d.ts +10 -0
- package/dist/libraries/components/SessionTimeOut/SessionTimeOut.stories.d.ts +5 -0
- package/dist/libraries/components/TimePickerField/TimePickerField.d.ts +1 -0
- package/dist/libraries/components/index.d.ts +10 -0
- package/dist/libraries/constants.d.ts +1 -0
- package/dist/libraries/hook-form.d.ts +3 -0
- package/dist/libraries/index.d.ts +11 -0
- package/dist/libraries/libraries/axios.d.ts +1 -0
- package/dist/libraries/libraries/cache-buster.d.ts +2 -0
- package/dist/libraries/libraries/constants.d.ts +1 -0
- package/dist/libraries/libraries/hook-form.d.ts +3 -0
- package/dist/libraries/libraries/material-react-table.d.ts +1 -0
- package/dist/libraries/libraries/material-ui.d.ts +3 -0
- package/dist/libraries/libraries/react-redux.d.ts +1 -0
- package/dist/libraries/libraries/react-router-dom.d.ts +2 -0
- package/dist/libraries/libraries/redux-toolkit.d.ts +2 -0
- package/dist/libraries/libraries/tanstack-react-query.d.ts +1 -0
- package/dist/libraries/libraries/xlsx-dayjs.d.ts +5 -0
- package/dist/libraries/material-react-table.d.ts +1 -0
- package/dist/libraries/material-ui.d.ts +3 -0
- package/dist/libraries/react-redux.d.ts +1 -0
- package/dist/libraries/react-router-dom.d.ts +2 -0
- package/dist/libraries/redux-toolkit.d.ts +2 -0
- package/dist/libraries/reportWebVitals.d.ts +3 -0
- package/dist/libraries/setupTests.d.ts +1 -0
- package/dist/libraries/styles/theme.d.ts +9 -0
- package/dist/libraries/tanstack-react-query.d.ts +1 -0
- package/dist/libraries/theme.d.ts +10 -0
- package/dist/libraries/xlsx-dayjs.d.ts +5 -0
- package/dist/material-ui.css +1 -0
- package/dist/material-ui.d.ts +2 -0
- package/dist/material-ui.esm.css +1 -0
- package/dist/material-ui.esm.js +3 -0
- package/dist/material-ui.js +20 -0
- package/dist/mui-x-date-datepicker.d.ts +1 -0
- package/dist/redux-toolkit.d.ts +1 -0
- package/dist/reportWebVitals.d.ts +3 -3
- package/dist/setupTests.d.ts +1 -1
- package/dist/styles/theme.d.ts +9 -9
- package/dist/tanstack-react-query.d.ts +1 -0
- package/dist/theme.d.ts +10 -10
- package/package.json +63 -1
package/dist/App.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const App: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export default App;
|
|
1
|
+
declare const App: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default App;
|
package/dist/App.test.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import dayjs, { Dayjs } from "dayjs";
|
|
2
|
-
import { VariantProps, FormRenderProps } from "../Interface/FormInterface";
|
|
3
|
-
export declare const renderLabel: (variant: VariantProps, props: FormRenderProps, showLabel?: boolean) => false | import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function formatDateMonthAndYear(date: any): string;
|
|
5
|
-
export declare function parseCustomTime(timeString: string): dayjs.Dayjs | null;
|
|
6
|
-
/**
|
|
7
|
-
* Formats a Day.js object into "HH:mm:ss.SSSSSSS"
|
|
8
|
-
*/
|
|
9
|
-
export declare function formatDayjsToCustomTime(date: Dayjs | null | undefined): string;
|
|
10
|
-
export declare const extractDate: (inputDateString: string | any) => string;
|
|
1
|
+
import dayjs, { Dayjs } from "dayjs";
|
|
2
|
+
import { VariantProps, FormRenderProps } from "../Interface/FormInterface";
|
|
3
|
+
export declare const renderLabel: (variant: VariantProps, props: FormRenderProps, showLabel?: boolean) => false | import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function formatDateMonthAndYear(date: any): string;
|
|
5
|
+
export declare function parseCustomTime(timeString: string): dayjs.Dayjs | null;
|
|
6
|
+
/**
|
|
7
|
+
* Formats a Day.js object into "HH:mm:ss.SSSSSSS"
|
|
8
|
+
*/
|
|
9
|
+
export declare function formatDayjsToCustomTime(date: Dayjs | null | undefined): string;
|
|
10
|
+
export declare const extractDate: (inputDateString: string | any) => string;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const handleDownloadReactTableDataExcel: (fileName: string, rowData: any[], columns?: any[], customColumns?: any[], HeaderBackGround?: string, HeaderColor?: string) => void;
|
|
2
|
+
export declare function getUsernameFromEmail(email: string): string;
|
|
3
|
+
export declare function getInitials(name: string): string;
|
|
4
|
+
export declare function findMenuHierarchy(menuData: any[], currentUrl: string, URLProjectNameWithSlash: string): any;
|
|
5
|
+
/**
|
|
6
|
+
* Calculates a date by adding/subtracting days from today or a base date
|
|
7
|
+
* @param dayOffset - Days to add (positive) or subtract (negative) (default: 0)
|
|
8
|
+
* @param baseDate - Base date in DD/MM/YYYY format (default: today)
|
|
9
|
+
* @returns Formatted date string in DD/MM/YYYY format
|
|
10
|
+
*/
|
|
11
|
+
export declare const getDesiredDate: (dayOffset?: number, baseDate?: string | null) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Calculates sum of numeric values for a specific property across array objects
|
|
14
|
+
* @param array - Array of objects to sum
|
|
15
|
+
* @param key - Property name to sum
|
|
16
|
+
* @returns Total sum of numeric values
|
|
17
|
+
*/
|
|
18
|
+
export declare function calculateTotalArrayValueTotal<T extends Record<string, any>>(array: T[], key: keyof T): number;
|
|
19
|
+
/**
|
|
20
|
+
* Checks if first date comes before second date
|
|
21
|
+
* @param dateStr1 - First date in DD/MM/YYYY format
|
|
22
|
+
* @param dateStr2 - Second date in DD/MM/YYYY format
|
|
23
|
+
* @returns True if dateStr1 is before dateStr2
|
|
24
|
+
*/
|
|
25
|
+
export declare function checkIsDateIsBefore(dateStr1: string, dateStr2: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Lightens a hex color by a specified percentage
|
|
28
|
+
* @param color - Hex color string (with or without #)
|
|
29
|
+
* @param percent - Percentage to lighten (0-100)
|
|
30
|
+
* @returns Lightened hex color string
|
|
31
|
+
*/
|
|
32
|
+
export declare function lightenColor(color: string, percent: number): string;
|
|
33
|
+
/**
|
|
34
|
+
* Gets formatted date with optional day offset
|
|
35
|
+
* @param dayOffset - Days to add (positive) or subtract (negative) from today (default: 0)
|
|
36
|
+
* @returns Date string in DD/MM/YYYY format
|
|
37
|
+
*/
|
|
38
|
+
export declare function getFormattedDate(dayOffset?: number): string;
|
|
39
|
+
/**
|
|
40
|
+
* Encrypts text or objects using AES encryption and Base64 encoding
|
|
41
|
+
* @param text - String to encrypt (objects will be JSON.stringify'd)
|
|
42
|
+
* @param SECRET_KEY - Secret key for encryption
|
|
43
|
+
* @returns Base64 encoded encrypted string
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* const encrypted = encryptText("Hello World", "myKey");
|
|
47
|
+
* const encryptedObj = encryptText({name: "John"}, "myKey");
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare const encryptText: (text: string, SECRET_KEY: string) => string;
|
|
51
|
+
/**
|
|
52
|
+
* Decrypts Base64 encoded AES encrypted text back to original string
|
|
53
|
+
* @param ciphertext - Base64 encoded encrypted string from encryptText
|
|
54
|
+
* @param SECRET_KEY - Same secret key used for encryption
|
|
55
|
+
* @returns Original decrypted text
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* const decrypted = decryptText(encryptedString, "myKey");
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare const decryptText: (ciphertext: string, SECRET_KEY: string) => string;
|
|
@@ -1,70 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
1
|
+
import { Theme } from "@emotion/react";
|
|
2
|
+
import { SxProps } from "@mui/material";
|
|
3
|
+
export interface OptionsProps {
|
|
4
|
+
label: string | boolean | number;
|
|
5
|
+
value: string | number;
|
|
6
|
+
}
|
|
7
|
+
export interface TextFieldInputProps {
|
|
8
|
+
autoComplete: "new-password" | "off";
|
|
9
|
+
}
|
|
10
|
+
export interface FormSectionPropsItem {
|
|
11
|
+
name: string;
|
|
12
|
+
label: string;
|
|
13
|
+
inputType: "text" | "password" | "number" | "select" | "datepicker" | "multiselect" | "select-v2" | "decimal" | "alpha-numerical" | "yearpicker" | "dateRangePicker" | "monthpicker" | "multiselect" | "file" | "multifile" | "textarea" | "phoneNumber" | "pincode" | "email" | "toggleSwitch" | "rich-text-editor" | "multiEmail" | "timepicker" | "checkbox-group" | "radio-group" | "checkbox" | "";
|
|
14
|
+
options?: OptionsProps[];
|
|
15
|
+
required?: boolean;
|
|
16
|
+
errorMessage?: string;
|
|
17
|
+
helperText?: string | React.ReactNode;
|
|
18
|
+
disable?: boolean;
|
|
19
|
+
onChangeFn?: (e: string | number | undefined | null | boolean) => void;
|
|
20
|
+
onBlurFn?: (e: string | number | undefined | null | boolean) => void;
|
|
21
|
+
maxLength?: number;
|
|
22
|
+
minDate?: string;
|
|
23
|
+
maxDate?: string;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
minRows?: string | number;
|
|
26
|
+
maxRows?: string | number;
|
|
27
|
+
CustomProps?: any;
|
|
28
|
+
numberOfColumns?: number;
|
|
29
|
+
monthSpan?: number;
|
|
30
|
+
variant?: VariantProps;
|
|
31
|
+
allowSpecialChars?: boolean;
|
|
32
|
+
InputProps?: TextFieldInputProps;
|
|
33
|
+
customErrorMessage?: string | null;
|
|
34
|
+
sx?: SxProps<Theme>;
|
|
35
|
+
donotAllowSpace?: boolean;
|
|
36
|
+
onInputProps?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
37
|
+
fileType?: "excel" | "pdf" | "all" | "zip" | "image" | "";
|
|
38
|
+
handleFileError?: (message: string) => void;
|
|
39
|
+
onCloseMenu?: () => void;
|
|
40
|
+
doNotAllowPaste?: boolean;
|
|
41
|
+
removeButtons?: string;
|
|
42
|
+
Fonts?: number[];
|
|
43
|
+
FontFamily?: any;
|
|
44
|
+
value1?: string | number | boolean;
|
|
45
|
+
value2?: string | number | boolean;
|
|
46
|
+
label1?: string;
|
|
47
|
+
label2?: string;
|
|
48
|
+
minTime?: string;
|
|
49
|
+
maxTime?: string;
|
|
50
|
+
ampm?: boolean;
|
|
51
|
+
settings?: FormSectionPropsItem[];
|
|
52
|
+
filesize?: number;
|
|
53
|
+
multiSelectLabelLength?: number;
|
|
54
|
+
size?: "extrasmall" | '';
|
|
55
|
+
decimalFixedTo?: number;
|
|
56
|
+
customValidation?: (value: any) => void;
|
|
57
|
+
}
|
|
58
|
+
export type VariantProps = "standard" | "outlined" | "";
|
|
59
|
+
export interface FormRenderProps {
|
|
60
|
+
item: FormSectionPropsItem;
|
|
61
|
+
register: any;
|
|
62
|
+
control: any;
|
|
63
|
+
errors: any;
|
|
64
|
+
getValues: any;
|
|
65
|
+
clearErrors: any;
|
|
66
|
+
setValue: any;
|
|
67
|
+
variant?: VariantProps;
|
|
68
|
+
fieldError?: boolean;
|
|
69
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { Meta } from "@storybook/react/*";
|
|
2
|
+
import { DeleteFieldProps } from "./DeleteField";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const DeleteFieldComponent: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react/*").ReactRenderer, DeleteFieldProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface DeleteFieldProps {
|
|
2
|
-
onClickFn: () => void;
|
|
3
|
-
tooltip: string;
|
|
4
|
-
text: string;
|
|
5
|
-
}
|
|
6
|
-
declare const DeleteField: ({ onClickFn, tooltip, text }: DeleteFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default DeleteField;
|
|
1
|
+
export interface DeleteFieldProps {
|
|
2
|
+
onClickFn: () => void;
|
|
3
|
+
tooltip: string;
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
declare const DeleteField: ({ onClickFn, tooltip, text }: DeleteFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DeleteField;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { Meta } from "@storybook/react/types-6-0";
|
|
2
|
+
import { FormRenderWrapperProps } from "./FormRenderWrapper";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const RenderFormComponent: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactRenderer, FormRenderWrapperProps>;
|
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export declare const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare const
|
|
33
|
-
ref?: ((instance:
|
|
34
|
-
},
|
|
35
|
-
export declare const
|
|
36
|
-
ref?: ((instance:
|
|
37
|
-
},
|
|
38
|
-
export declare const
|
|
39
|
-
ref?: ((instance:
|
|
40
|
-
}, "
|
|
1
|
+
export declare const FormComponent: import("@emotion/styled").StyledComponent<import("@mui/material").GridBaseProps & {
|
|
2
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
3
|
+
} & import("@mui/system").SystemProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | keyof import("@mui/material").GridBaseProps | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
|
+
export declare const FormContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
9
|
+
export declare const Formitem: import("@emotion/styled").StyledComponent<any, {}, {}>;
|
|
10
|
+
export declare const ErrorMessageComponent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
13
|
+
export declare const ContainerComponent: import("@emotion/styled").StyledComponent<import("@mui/material").ContainerOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
+
}, "maxWidth" | "style" | "className" | "children" | "sx" | "fixed" | "classes" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
16
|
+
export declare const SaveButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
18
|
+
}, "color" | "style" | "className" | "tabIndex" | "children" | "size" | "sx" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loading" | "loadingIndicator" | "loadingPosition" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
19
|
+
export declare const BackButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
20
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
21
|
+
}, "color" | "style" | "className" | "tabIndex" | "children" | "size" | "sx" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loading" | "loadingIndicator" | "loadingPosition" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
22
|
+
export declare const LabelComponent: import("@emotion/styled").StyledComponent<import("@mui/material").GridBaseProps & {
|
|
23
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
|
|
24
|
+
} & import("@mui/system").SystemProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
25
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
26
|
+
}, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | keyof import("@mui/material").GridBaseProps | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
27
|
+
export declare const ImportantMark: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGTextElementAttributes<SVGTextElement>, {}>;
|
|
28
|
+
export declare const FormWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
29
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
30
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
31
|
+
export declare const DatepickerBox: import("@emotion/styled").StyledComponent<import("@mui/x-date-pickers").DatePickerProps<unknown> & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
32
|
+
export declare const OptionRender: import("@emotion/styled").StyledComponent<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
33
|
+
ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
34
|
+
}, "style" | "autoFocus" | "className" | "tabIndex" | "children" | "sx" | "classes" | "disableGutters" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "dense" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
35
|
+
export declare const OptionsBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
36
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
37
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
38
|
+
export declare const Options: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
39
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
40
|
+
}, "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "style" | "className" | "children" | "sx" | "classes" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
41
|
+
export declare const ArrowDown: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
|
|
42
|
+
ref?: ((instance: SVGSVGElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
43
|
+
}, "color" | "fontSize" | "shapeRendering" | "style" | "className" | "children" | "sx" | "classes" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../Form/FormsStyles.scss";
|
|
2
|
-
declare const FormActiveSwitch: ({ props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default FormActiveSwitch;
|
|
1
|
+
import "../Form/FormsStyles.scss";
|
|
2
|
+
declare const FormActiveSwitch: ({ props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FormActiveSwitch;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as Yup from "yup";
|
|
2
|
-
import { FormSectionPropsItem } from "../../Utilities/Interface/FormInterface";
|
|
3
|
-
export interface InitialValues {
|
|
4
|
-
[key: string]: string | number | null | boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface ValidationShape {
|
|
7
|
-
[key: string]: Yup.Schema<any>;
|
|
8
|
-
}
|
|
9
|
-
declare const useFormValidatingContext: (formArray: FormSectionPropsItem[]) => {
|
|
10
|
-
validationSchema: any;
|
|
11
|
-
initialValues: InitialValues;
|
|
12
|
-
};
|
|
13
|
-
export default useFormValidatingContext;
|
|
1
|
+
import * as Yup from "yup";
|
|
2
|
+
import { FormSectionPropsItem } from "../../Utilities/Interface/FormInterface";
|
|
3
|
+
export interface InitialValues {
|
|
4
|
+
[key: string]: string | number | null | boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ValidationShape {
|
|
7
|
+
[key: string]: Yup.Schema<any>;
|
|
8
|
+
}
|
|
9
|
+
declare const useFormValidatingContext: (formArray: FormSectionPropsItem[]) => {
|
|
10
|
+
validationSchema: any;
|
|
11
|
+
initialValues: InitialValues;
|
|
12
|
+
};
|
|
13
|
+
export default useFormValidatingContext;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const FormContainer: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export default FormContainer;
|
|
1
|
+
declare const FormContainer: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default FormContainer;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormRenderProps } from "../../Utilities/Interface/FormInterface";
|
|
2
|
-
declare const RenderForm: (props: FormRenderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default RenderForm;
|
|
1
|
+
import { FormRenderProps } from "../../Utilities/Interface/FormInterface";
|
|
2
|
+
declare const RenderForm: (props: FormRenderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default RenderForm;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface FormsSection {
|
|
2
|
-
name: string;
|
|
3
|
-
label: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
inputType: string;
|
|
6
|
-
minDate?: any;
|
|
7
|
-
options?: any;
|
|
8
|
-
customStyles?: {};
|
|
9
|
-
mandatory?: boolean;
|
|
10
|
-
disable?: boolean;
|
|
11
|
-
settingsField?: FormsSection[];
|
|
12
|
-
setArrayUpdate?: any;
|
|
13
|
-
arrayUpdate?: any;
|
|
14
|
-
placeholderText?: string;
|
|
15
|
-
}
|
|
1
|
+
export interface FormsSection {
|
|
2
|
+
name: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
inputType: string;
|
|
6
|
+
minDate?: any;
|
|
7
|
+
options?: any;
|
|
8
|
+
customStyles?: {};
|
|
9
|
+
mandatory?: boolean;
|
|
10
|
+
disable?: boolean;
|
|
11
|
+
settingsField?: FormsSection[];
|
|
12
|
+
setArrayUpdate?: any;
|
|
13
|
+
arrayUpdate?: any;
|
|
14
|
+
placeholderText?: string;
|
|
15
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { UseFormReturn } from "react-hook-form";
|
|
2
|
-
import { FormSectionPropsItem } from "../../Utilities/Interface/FormInterface";
|
|
3
|
-
export interface FormRenderWrapperProps {
|
|
4
|
-
formArray: FormSectionPropsItem[];
|
|
5
|
-
name: string;
|
|
6
|
-
numberOfColumns?: number;
|
|
7
|
-
form: UseFormReturn<{
|
|
8
|
-
[x: string]: string | number | boolean | null;
|
|
9
|
-
[x: number]: string | number | boolean | null;
|
|
10
|
-
}, any, {
|
|
11
|
-
[x: string]: string | number | boolean | null;
|
|
12
|
-
[x: number]: string | number | boolean | null;
|
|
13
|
-
}>;
|
|
14
|
-
variant?:
|
|
15
|
-
fieldError?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const FormRenderWrapper: ({ formArray, name, numberOfColumns, form, variant, fieldError, }: FormRenderWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export default FormRenderWrapper;
|
|
1
|
+
import { UseFormReturn } from "react-hook-form";
|
|
2
|
+
import { FormSectionPropsItem, VariantProps } from "../../Utilities/Interface/FormInterface";
|
|
3
|
+
export interface FormRenderWrapperProps {
|
|
4
|
+
formArray: FormSectionPropsItem[];
|
|
5
|
+
name: string;
|
|
6
|
+
numberOfColumns?: number;
|
|
7
|
+
form: UseFormReturn<{
|
|
8
|
+
[x: string]: string | number | boolean | null;
|
|
9
|
+
[x: number]: string | number | boolean | null;
|
|
10
|
+
}, any, {
|
|
11
|
+
[x: string]: string | number | boolean | null;
|
|
12
|
+
[x: number]: string | number | boolean | null;
|
|
13
|
+
}>;
|
|
14
|
+
variant?: VariantProps;
|
|
15
|
+
fieldError?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const FormRenderWrapper: ({ formArray, name, numberOfColumns, form, variant, fieldError, }: FormRenderWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default FormRenderWrapper;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./DateRangePicker.scss";
|
|
2
|
-
import { FormRenderProps, VariantProps } from "../../../Utilities/Interface/FormInterface";
|
|
3
|
-
declare const DateRangePickerComponent: ({ props, variant, }: {
|
|
4
|
-
props: FormRenderProps;
|
|
5
|
-
variant: VariantProps;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default DateRangePickerComponent;
|
|
1
|
+
import "./DateRangePicker.scss";
|
|
2
|
+
import { FormRenderProps, VariantProps } from "../../../Utilities/Interface/FormInterface";
|
|
3
|
+
declare const DateRangePickerComponent: ({ props, variant, }: {
|
|
4
|
+
props: FormRenderProps;
|
|
5
|
+
variant: VariantProps;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DateRangePickerComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormRenderProps, VariantProps } from "../../../Utilities/Interface/FormInterface";
|
|
2
|
-
declare const DatepickerWrapperV2: ({ props, variant, }: {
|
|
3
|
-
props: FormRenderProps;
|
|
4
|
-
variant: VariantProps;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default DatepickerWrapperV2;
|
|
1
|
+
import { FormRenderProps, VariantProps } from "../../../Utilities/Interface/FormInterface";
|
|
2
|
+
declare const DatepickerWrapperV2: ({ props, variant, }: {
|
|
3
|
+
props: FormRenderProps;
|
|
4
|
+
variant: VariantProps;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default DatepickerWrapperV2;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const MonthPicker: ({ props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export default MonthPicker;
|
|
1
|
+
declare const MonthPicker: ({ props }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default MonthPicker;
|