tp-react-elements-dev 1.12.15 ā 1.12.20
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/README.md +300 -90
- package/dist/Utilities/Constants/FormConstants.d.ts.map +1 -0
- package/dist/Utilities/Constants/FunctionConstants.d.ts.map +1 -0
- package/dist/Utilities/Interface/FormInterface.d.ts +2 -1
- package/dist/Utilities/Interface/FormInterface.d.ts.map +1 -0
- package/dist/Utilities/index.d.ts +4 -0
- package/dist/Utilities/index.d.ts.map +1 -0
- package/dist/assets/icons/flaticon_hvc.css +194 -0
- package/dist/assets/icons/flaticon_hvc.eot +0 -0
- package/dist/assets/icons/flaticon_hvc.html +1085 -0
- package/dist/assets/icons/flaticon_hvc.scss +241 -0
- package/dist/assets/icons/flaticon_hvc.svg +174 -0
- package/dist/assets/icons/flaticon_hvc.ttf +0 -0
- package/dist/assets/icons/flaticon_hvc.woff +0 -0
- package/dist/assets/icons/flaticon_hvc.woff2 +0 -0
- package/dist/assets/types.d.ts +62 -0
- package/dist/components/DeleteComponent/DeleteField.d.ts.map +1 -0
- package/dist/components/Form/Form.styles.d.ts +31 -40
- package/dist/components/Form/Form.styles.d.ts.map +1 -0
- package/dist/components/Form/FormActiveSwitch.d.ts.map +1 -0
- package/dist/components/Form/FormConstants.d.ts +1 -1
- package/dist/components/Form/FormConstants.d.ts.map +1 -0
- package/dist/components/Form/FormContainer.d.ts.map +1 -0
- package/dist/components/Form/FormRender.d.ts.map +1 -0
- package/dist/components/Form/FormRenderConstants.d.ts.map +1 -0
- package/dist/components/Form/FormRenderWrapper.d.ts +1 -1
- package/dist/components/Form/FormRenderWrapper.d.ts.map +1 -0
- package/dist/components/FormComponents/DatePicker/DateRangePicker.d.ts +1 -2
- package/dist/components/FormComponents/DatePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/FormComponents/DatePicker/DatepickerWrapperV2.d.ts.map +1 -0
- package/dist/components/FormComponents/DatePicker/MonthPicker.d.ts.map +1 -0
- package/dist/components/FormComponents/DatePicker/Monthpickerrender.d.ts.map +1 -0
- package/dist/components/FormComponents/FileUpload/FormRenderFileUpload.d.ts.map +1 -0
- package/dist/components/FormComponents/FileUpload/FormRenderMultiFileUpload.d.ts.map +1 -0
- package/dist/components/FormComponents/FormBottomField/FormBottomField.d.ts.map +1 -0
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -1
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts.map +1 -0
- package/dist/components/FormComponents/FormCheckBoxGroup/FormCheckBoxGroup.d.ts.map +1 -0
- package/dist/components/FormComponents/FormErrorField/FormErrorField.d.ts.map +1 -0
- package/dist/components/FormComponents/FormNumberField/FormNumberField.d.ts.map +1 -0
- package/dist/components/FormComponents/FormNumberField/FormNumberFieldDecimal.d.ts.map +1 -0
- package/dist/components/FormComponents/FormRadioGroup/FormRadioGroup.d.ts.map +1 -0
- package/dist/components/FormComponents/FormTextAreaField/FormTextAreaField.d.ts.map +1 -0
- package/dist/components/FormComponents/FormTextAreaField/FormTextAreaField.styles.d.ts +3 -1
- package/dist/components/FormComponents/FormTextAreaField/FormTextAreaField.styles.d.ts.map +1 -0
- package/dist/components/FormComponents/FormTextField/FormTextField.d.ts.map +1 -0
- package/dist/components/FormComponents/FormTextField/FormTextField.styles.d.ts +1 -1
- package/dist/components/FormComponents/FormTextField/FormTextField.styles.d.ts.map +1 -0
- package/dist/components/FormComponents/HelperText/HelperText.d.ts.map +1 -0
- package/dist/components/FormComponents/PasswordField/PasswordField.d.ts.map +1 -0
- package/dist/components/FormComponents/RichTextEditor/RichTextEditor.d.ts.map +1 -0
- package/dist/components/FormComponents/RichTextEditor/RichTextEditorWrapper.d.ts.map +1 -0
- package/dist/components/FormComponents/RichTextEditor/jodit.index.d.ts.map +1 -0
- package/dist/components/FormComponents/Select/MultiSelect.d.ts.map +1 -0
- package/dist/components/FormComponents/Select/MultiSelectv1.d.ts.map +1 -0
- package/dist/components/FormComponents/Select/SingleSelect.d.ts.map +1 -0
- package/dist/components/FormComponents/Select/SingleSelectNonAutoComplete.d.ts.map +1 -0
- package/dist/components/FormComponents/Select/SingleSelectSearchApi.d.ts.map +1 -0
- package/dist/components/FormComponents/TimePicker/TimePicker.d.ts.map +1 -0
- package/dist/components/FormComponents/YearPickerField/YearPickerField.d.ts.map +1 -0
- package/dist/components/FormComponents/index.d.ts +25 -0
- package/dist/components/FormComponents/index.d.ts.map +1 -0
- package/dist/components/Global.styles.d.ts +6 -18
- package/dist/components/Global.styles.d.ts.map +1 -0
- package/dist/components/ModalField/ConfirmationDialog.d.ts +1 -1
- package/dist/components/ModalField/ConfirmationDialog.d.ts.map +1 -0
- package/dist/components/ModalField/ModalField.d.ts +1 -1
- package/dist/components/ModalField/ModalField.d.ts.map +1 -0
- package/dist/components/SelectField/MultiSelectFieldComponent.d.ts.map +1 -0
- package/dist/components/SessionTimeOut/SessionTimeOut.d.ts +1 -1
- package/dist/components/SessionTimeOut/SessionTimeOut.d.ts.map +1 -0
- package/dist/components/TimePickerField/TimePickerField.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -10
- package/dist/components/index.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -11
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +2213 -112597
- package/dist/index.js +2226 -112600
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/hook-form.d.ts.map +1 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/{src/styles/theme.d.ts ā theme/index.d.ts} +3 -1
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +39 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/validation/schemas.d.ts +42 -0
- package/dist/validation/schemas.d.ts.map +1 -0
- package/package.json +168 -179
- package/scripts/install-deps.js +56 -0
- package/dist/App.d.ts +0 -3
- package/dist/App.test.d.ts +0 -2
- package/dist/Utilities/Constants.d.ts +0 -1
- package/dist/components/DeleteComponent/Delete.stories.d.ts +0 -6
- package/dist/components/Form/DatePicker/DateRangePicker.d.ts +0 -3
- package/dist/components/Form/DatePicker/DatepickerWrapper.d.ts +0 -2
- package/dist/components/Form/DatePicker/DatepickerWrapperV2.d.ts +0 -2
- package/dist/components/Form/DatePicker/MonthPicker.d.ts +0 -2
- package/dist/components/Form/DatePicker/Monthpickerrender.d.ts +0 -2
- package/dist/components/Form/FileUpload/FormRenderFileUpload.d.ts +0 -6
- package/dist/components/Form/FileUpload/FormRenderMultiFileUpload.d.ts +0 -6
- package/dist/components/Form/Form.stories.d.ts +0 -6
- package/dist/components/Form/PasswordField.d.ts +0 -2
- package/dist/components/Form/Select/MultiSelect.d.ts +0 -2
- package/dist/components/Form/Select/MultiSelectv1.d.ts +0 -1
- package/dist/components/Form/Select/SingleSelect.d.ts +0 -2
- package/dist/components/Form/Select/SingleSelectForPagination.d.ts +0 -2
- package/dist/components/Form/Select/SingleSelectNonAutoComplete.d.ts +0 -2
- package/dist/components/Form/Select/SingleSelectSearchApi.d.ts +0 -5
- package/dist/components/Form/TimePicker/TimePicker.d.ts +0 -4
- package/dist/components/MaterialReactTable/MaterialReactTableComponentContainer.d.ts +0 -30
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +0 -5
- package/dist/components/SessionTimeOut/SessionTimeOut.stories.d.ts +0 -6
- package/dist/libraries/App.d.ts +0 -3
- package/dist/libraries/App.test.d.ts +0 -2
- package/dist/libraries/Utilities/Constants/FormConstants.d.ts +0 -11
- package/dist/libraries/Utilities/Constants/FunctionConstants.d.ts +0 -62
- package/dist/libraries/Utilities/Interface/FormInterface.d.ts +0 -70
- package/dist/libraries/axios.d.ts +0 -2
- package/dist/libraries/cache-buster.d.ts +0 -3
- package/dist/libraries/components/DeleteComponent/Delete.stories.d.ts +0 -6
- package/dist/libraries/components/DeleteComponent/DeleteField.d.ts +0 -8
- package/dist/libraries/components/Form/Form.stories.d.ts +0 -6
- package/dist/libraries/components/Form/Form.styles.d.ts +0 -44
- package/dist/libraries/components/Form/FormActiveSwitch.d.ts +0 -4
- package/dist/libraries/components/Form/FormConstants.d.ts +0 -14
- package/dist/libraries/components/Form/FormContainer.d.ts +0 -3
- package/dist/libraries/components/Form/FormRender.d.ts +0 -4
- package/dist/libraries/components/Form/FormRenderConstants.d.ts +0 -16
- package/dist/libraries/components/Form/FormRenderWrapper.d.ts +0 -19
- package/dist/libraries/components/FormComponents/DatePicker/DateRangePicker.d.ts +0 -8
- package/dist/libraries/components/FormComponents/DatePicker/DatepickerWrapperV2.d.ts +0 -7
- package/dist/libraries/components/FormComponents/DatePicker/MonthPicker.d.ts +0 -3
- package/dist/libraries/components/FormComponents/DatePicker/Monthpickerrender.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FileUpload/FormRenderFileUpload.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FileUpload/FormRenderMultiFileUpload.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FormBottomField/FormBottomField.d.ts +0 -4
- package/dist/libraries/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FormCheckBoxGroup/FormCheckBoxGroup.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FormErrorField/FormErrorField.d.ts +0 -4
- package/dist/libraries/components/FormComponents/FormNumberField/FormNumberField.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FormNumberField/FormNumberFieldDecimal.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FormRadioGroup/FormRadioGroup.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FormTextAreaField/FormTextAreaField.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FormTextAreaField/FormTextAreaField.styles.d.ts +0 -4
- package/dist/libraries/components/FormComponents/FormTextField/FormTextField.d.ts +0 -7
- package/dist/libraries/components/FormComponents/FormTextField/FormTextField.styles.d.ts +0 -6
- package/dist/libraries/components/FormComponents/HelperText/HelperText.d.ts +0 -4
- package/dist/libraries/components/FormComponents/PasswordField/PasswordField.d.ts +0 -7
- package/dist/libraries/components/FormComponents/RichTextEditor/RichTextEditor.d.ts +0 -6
- package/dist/libraries/components/FormComponents/RichTextEditor/RichTextEditorWrapper.d.ts +0 -7
- package/dist/libraries/components/FormComponents/RichTextEditor/jodit.index.d.ts +0 -18
- package/dist/libraries/components/FormComponents/Select/MultiSelect.d.ts +0 -3
- package/dist/libraries/components/FormComponents/Select/MultiSelectv1.d.ts +0 -6
- package/dist/libraries/components/FormComponents/Select/SingleSelect.d.ts +0 -7
- package/dist/libraries/components/FormComponents/Select/SingleSelectNonAutoComplete.d.ts +0 -7
- package/dist/libraries/components/FormComponents/Select/SingleSelectSearchApi.d.ts +0 -3
- package/dist/libraries/components/FormComponents/TimePicker/TimePicker.d.ts +0 -6
- package/dist/libraries/components/FormComponents/YearPickerField/YearPickerField.d.ts +0 -3
- package/dist/libraries/components/Global.styles.d.ts +0 -35
- package/dist/libraries/components/ModalField/ConfirmationDialog.d.ts +0 -12
- package/dist/libraries/components/ModalField/ModalField.d.ts +0 -18
- package/dist/libraries/components/SelectField/MultiSelectFieldComponent.d.ts +0 -12
- package/dist/libraries/components/SessionTimeOut/SessionTimeOut.d.ts +0 -11
- package/dist/libraries/components/SessionTimeOut/SessionTimeOut.stories.d.ts +0 -6
- package/dist/libraries/components/TimePickerField/TimePickerField.d.ts +0 -2
- package/dist/libraries/components/index.d.ts +0 -11
- package/dist/libraries/index.d.ts +0 -12
- package/dist/libraries/libraries/axios.d.ts +0 -2
- package/dist/libraries/libraries/cache-buster.d.ts +0 -3
- package/dist/libraries/libraries/constants.d.ts +0 -2
- package/dist/libraries/libraries/hook-form.d.ts +0 -4
- package/dist/libraries/libraries/material-react-table.d.ts +0 -2
- package/dist/libraries/libraries/material-ui.d.ts +0 -4
- package/dist/libraries/libraries/react-redux.d.ts +0 -2
- package/dist/libraries/libraries/react-router-dom.d.ts +0 -3
- package/dist/libraries/libraries/redux-toolkit.d.ts +0 -3
- package/dist/libraries/libraries/tanstack-react-query.d.ts +0 -2
- package/dist/libraries/libraries/xlsx-dayjs.d.ts +0 -6
- package/dist/libraries/material-react-table.d.ts +0 -2
- package/dist/libraries/material-ui.d.ts +0 -4
- package/dist/libraries/react-redux.d.ts +0 -2
- package/dist/libraries/react-router-dom.d.ts +0 -3
- package/dist/libraries/redux-toolkit.d.ts +0 -3
- package/dist/libraries/reportWebVitals.d.ts +0 -4
- package/dist/libraries/setupTests.d.ts +0 -2
- package/dist/libraries/styles/theme.d.ts +0 -10
- package/dist/libraries/tanstack-react-query.d.ts +0 -2
- package/dist/libraries/theme.d.ts +0 -11
- package/dist/libraries/xlsx-dayjs.d.ts +0 -6
- package/dist/material-ui.css +0 -1
- package/dist/material-ui.d.ts +0 -2
- package/dist/material-ui.esm.css +0 -1
- package/dist/material-ui.esm.js +0 -3
- package/dist/material-ui.js +0 -20
- package/dist/mui-x-date-datepicker.d.ts +0 -1
- package/dist/redux-toolkit.d.ts +0 -1
- package/dist/reportWebVitals.d.ts +0 -4
- package/dist/setupTests.d.ts +0 -2
- package/dist/src/App.d.ts +0 -2
- package/dist/src/App.test.d.ts +0 -1
- package/dist/src/Utilities/Constants/FormConstants.d.ts +0 -10
- package/dist/src/Utilities/Constants/FunctionConstants.d.ts +0 -61
- package/dist/src/Utilities/Interface/FormInterface.d.ts +0 -69
- package/dist/src/components/DeleteComponent/Delete.stories.d.ts +0 -5
- package/dist/src/components/DeleteComponent/DeleteField.d.ts +0 -7
- package/dist/src/components/Form/Form.stories.d.ts +0 -5
- package/dist/src/components/Form/Form.styles.d.ts +0 -43
- package/dist/src/components/Form/FormActiveSwitch.d.ts +0 -3
- package/dist/src/components/Form/FormConstants.d.ts +0 -13
- package/dist/src/components/Form/FormContainer.d.ts +0 -2
- package/dist/src/components/Form/FormRender.d.ts +0 -3
- package/dist/src/components/Form/FormRenderConstants.d.ts +0 -15
- package/dist/src/components/Form/FormRenderWrapper.d.ts +0 -18
- package/dist/src/components/FormComponents/DatePicker/DateRangePicker.d.ts +0 -7
- package/dist/src/components/FormComponents/DatePicker/DatepickerWrapperV2.d.ts +0 -6
- package/dist/src/components/FormComponents/DatePicker/MonthPicker.d.ts +0 -2
- package/dist/src/components/FormComponents/DatePicker/Monthpickerrender.d.ts +0 -6
- package/dist/src/components/FormComponents/FileUpload/FormRenderFileUpload.d.ts +0 -6
- package/dist/src/components/FormComponents/FileUpload/FormRenderMultiFileUpload.d.ts +0 -6
- package/dist/src/components/FormComponents/FormBottomField/FormBottomField.d.ts +0 -3
- package/dist/src/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +0 -6
- package/dist/src/components/FormComponents/FormCheckBoxGroup/FormCheckBoxGroup.d.ts +0 -6
- package/dist/src/components/FormComponents/FormErrorField/FormErrorField.d.ts +0 -3
- package/dist/src/components/FormComponents/FormNumberField/FormNumberField.d.ts +0 -6
- package/dist/src/components/FormComponents/FormNumberField/FormNumberFieldDecimal.d.ts +0 -6
- package/dist/src/components/FormComponents/FormRadioGroup/FormRadioGroup.d.ts +0 -6
- package/dist/src/components/FormComponents/FormTextAreaField/FormTextAreaField.d.ts +0 -6
- package/dist/src/components/FormComponents/FormTextAreaField/FormTextAreaField.styles.d.ts +0 -3
- package/dist/src/components/FormComponents/FormTextField/FormTextField.d.ts +0 -6
- package/dist/src/components/FormComponents/FormTextField/FormTextField.styles.d.ts +0 -5
- package/dist/src/components/FormComponents/HelperText/HelperText.d.ts +0 -3
- package/dist/src/components/FormComponents/PasswordField/PasswordField.d.ts +0 -6
- package/dist/src/components/FormComponents/RichTextEditor/RichTextEditor.d.ts +0 -5
- package/dist/src/components/FormComponents/RichTextEditor/RichTextEditorWrapper.d.ts +0 -6
- package/dist/src/components/FormComponents/RichTextEditor/jodit.index.d.ts +0 -17
- package/dist/src/components/FormComponents/Select/MultiSelect.d.ts +0 -2
- package/dist/src/components/FormComponents/Select/MultiSelectv1.d.ts +0 -5
- package/dist/src/components/FormComponents/Select/SingleSelect.d.ts +0 -6
- package/dist/src/components/FormComponents/Select/SingleSelectNonAutoComplete.d.ts +0 -6
- package/dist/src/components/FormComponents/Select/SingleSelectSearchApi.d.ts +0 -2
- package/dist/src/components/FormComponents/TimePicker/TimePicker.d.ts +0 -5
- package/dist/src/components/FormComponents/YearPickerField/YearPickerField.d.ts +0 -2
- package/dist/src/components/Global.styles.d.ts +0 -34
- package/dist/src/components/ModalField/ConfirmationDialog.d.ts +0 -11
- package/dist/src/components/ModalField/ModalField.d.ts +0 -17
- package/dist/src/components/SelectField/MultiSelectFieldComponent.d.ts +0 -11
- package/dist/src/components/SessionTimeOut/SessionTimeOut.d.ts +0 -10
- package/dist/src/components/SessionTimeOut/SessionTimeOut.stories.d.ts +0 -5
- package/dist/src/components/TimePickerField/TimePickerField.d.ts +0 -1
- package/dist/src/components/index.d.ts +0 -10
- package/dist/src/index.d.ts +0 -37
- package/dist/src/material-ui.d.ts +0 -1
- package/dist/src/mui-x-date-datepicker.d.ts +0 -1
- package/dist/src/redux-toolkit.d.ts +0 -1
- package/dist/src/reportWebVitals.d.ts +0 -3
- package/dist/src/setupTests.d.ts +0 -1
- package/dist/src/tanstack-react-query.d.ts +0 -1
- package/dist/src/theme.d.ts +0 -10
- package/dist/styles/theme.d.ts +0 -10
- package/dist/tanstack-react-query.d.ts +0 -1
- package/dist/theme.d.ts +0 -11
- /package/dist/{libraries ā lib}/constants.d.ts +0 -0
- /package/dist/{libraries ā lib}/hook-form.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-form.d.ts","sourceRoot":"","sources":["../../src/lib/hook-form.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAC;AACxC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ThemeOptions } from
|
|
1
|
+
import { ThemeOptions } from "@mui/material/styles";
|
|
2
|
+
import "../styles/globals.css";
|
|
2
3
|
interface CustomThemeOptions extends ThemeOptions {
|
|
3
4
|
callColors?: {
|
|
4
5
|
selectedTheme?: string;
|
|
@@ -7,3 +8,4 @@ interface CustomThemeOptions extends ThemeOptions {
|
|
|
7
8
|
}
|
|
8
9
|
export declare const customTheme: CustomThemeOptions;
|
|
9
10
|
export default customTheme;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,sBAAsB,CAAC;AACjE,OAAO,uBAAuB,CAAC;AAE/B,UAAU,kBAAmB,SAAQ,YAAY;IAC/C,UAAU,CAAC,EAAE;QACX,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH;AAED,eAAO,MAAM,WAAW,EA2DlB,kBAAkB,CAAC;AAEzB,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { FieldValues, Control, RegisterOptions, FieldPath } from "react-hook-form";
|
|
3
|
+
export interface BaseFieldProps<T extends FieldValues = FieldValues> {
|
|
4
|
+
name: FieldPath<T>;
|
|
5
|
+
control?: Control<T>;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
helpText?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
validation?: RegisterOptions<T>;
|
|
13
|
+
}
|
|
14
|
+
export interface FormFieldProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface Option {
|
|
18
|
+
value: string | number;
|
|
19
|
+
label: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface SelectFieldProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
23
|
+
options: Option[];
|
|
24
|
+
multiple?: boolean;
|
|
25
|
+
searchable?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface CheckboxFieldProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
28
|
+
options?: Option[];
|
|
29
|
+
}
|
|
30
|
+
export interface RadioFieldProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
31
|
+
options: Option[];
|
|
32
|
+
inline?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface TextAreaFieldProps<T extends FieldValues = FieldValues> extends BaseFieldProps<T> {
|
|
35
|
+
rows?: number;
|
|
36
|
+
cols?: number;
|
|
37
|
+
resize?: "none" | "vertical" | "horizontal" | "both";
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EACL,WAAW,EACX,OAAO,EACP,eAAe,EACf,SAAS,EACV,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IACjE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,CACjE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,CACnE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,CACrE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,CAClE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,CACrE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;CACtD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
export declare const emailSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
|
3
|
+
export declare const passwordSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
|
4
|
+
export declare const phoneSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
|
5
|
+
export declare const requiredStringSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
|
6
|
+
export declare const optionalStringSchema: yup.StringSchema<string | undefined, yup.AnyObject, undefined, "">;
|
|
7
|
+
export declare const numberSchema: yup.NumberSchema<number, yup.AnyObject, undefined, "">;
|
|
8
|
+
export declare const optionalNumberSchema: yup.NumberSchema<number | undefined, yup.AnyObject, undefined, "">;
|
|
9
|
+
export declare const dateSchema: yup.DateSchema<Date, yup.AnyObject, undefined, "">;
|
|
10
|
+
export declare const urlSchema: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
|
11
|
+
export declare const loginSchema: yup.ObjectSchema<{
|
|
12
|
+
email: string;
|
|
13
|
+
password: string;
|
|
14
|
+
}, yup.AnyObject, {
|
|
15
|
+
email: undefined;
|
|
16
|
+
password: undefined;
|
|
17
|
+
}, "">;
|
|
18
|
+
export declare const registrationSchema: yup.ObjectSchema<{
|
|
19
|
+
firstName: string;
|
|
20
|
+
lastName: string;
|
|
21
|
+
email: string;
|
|
22
|
+
password: string;
|
|
23
|
+
confirmPassword: string;
|
|
24
|
+
}, yup.AnyObject, {
|
|
25
|
+
firstName: undefined;
|
|
26
|
+
lastName: undefined;
|
|
27
|
+
email: undefined;
|
|
28
|
+
password: undefined;
|
|
29
|
+
confirmPassword: undefined;
|
|
30
|
+
}, "">;
|
|
31
|
+
export declare const contactSchema: yup.ObjectSchema<{
|
|
32
|
+
name: string;
|
|
33
|
+
email: string;
|
|
34
|
+
phone: string | undefined;
|
|
35
|
+
message: string;
|
|
36
|
+
}, yup.AnyObject, {
|
|
37
|
+
name: undefined;
|
|
38
|
+
email: undefined;
|
|
39
|
+
phone: undefined;
|
|
40
|
+
message: undefined;
|
|
41
|
+
}, "">;
|
|
42
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/validation/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAG3B,eAAO,MAAM,WAAW,wDAGQ,CAAC;AAEjC,eAAO,MAAM,cAAc,wDAMQ,CAAC;AAEpC,eAAO,MAAM,WAAW,wDAGe,CAAC;AAExC,eAAO,MAAM,oBAAoB,wDAEI,CAAC;AAEtC,eAAO,MAAM,oBAAoB,oEAAe,CAAC;AAEjD,eAAO,MAAM,YAAY,wDAGY,CAAC;AAEtC,eAAO,MAAM,oBAAoB,oEAEU,CAAC;AAE5C,eAAO,MAAM,UAAU,oDAGQ,CAAC;AAEhC,eAAO,MAAM,SAAS,wDAGQ,CAAC;AAG/B,eAAO,MAAM,WAAW;;;;;;MAGtB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;MAS7B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;MAKxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,179 +1,168 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tp-react-elements-dev",
|
|
3
|
-
"version": "1.12.
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"date-
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"react": "^
|
|
102
|
-
"
|
|
103
|
-
"react
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"react
|
|
109
|
-
"react-
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"storybook": "
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
"npm": "
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
"resolve-url-loader": "^5.0.0",
|
|
170
|
-
"rollup": "^4.18.0",
|
|
171
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
172
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
173
|
-
"sass-loader": "^14.2.1",
|
|
174
|
-
"storybook": "^9.1.2",
|
|
175
|
-
"style-loader": "^4.0.0",
|
|
176
|
-
"typescript": "^5.9.2",
|
|
177
|
-
"webpack": "^5.91.0"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tp-react-elements-dev",
|
|
3
|
+
"version": "1.12.20",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "React form components library built with React Hook Form and Yup",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "dist/index.esm.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.esm.js",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./lib/*": {
|
|
16
|
+
"import": "./dist/lib/*.js",
|
|
17
|
+
"require": "./dist/lib/*.js"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"install-tp-form-deps": "./scripts/install-deps.js"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"scripts"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"dev": "vite",
|
|
30
|
+
"preview": "vite preview",
|
|
31
|
+
"clean": "rimraf dist",
|
|
32
|
+
"type-check": "tsc --noEmit",
|
|
33
|
+
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly && echo \"ā
TypeScript declaration files generated successfully!\"",
|
|
34
|
+
"// build:types": "Generates TypeScript declaration files using direct tsc command for reliability. See docs/typescript-declarations.md for details.",
|
|
35
|
+
"build": "npm run build:esm",
|
|
36
|
+
"build:esm": "npm run clean && rollup -c rollup.config.js",
|
|
37
|
+
"build:lib": "npm run clean && rollup -c rollup.config.js && rollup -c rollup.config.cjs.js --bundleConfigAsCjs && npm run build:types && echo \"ā
Complete library build finished! ESM + CJS builds completed successfully!\"",
|
|
38
|
+
"build:lib:esm": "npm run clean && rollup -c rollup.config.js && npm run build:types",
|
|
39
|
+
"build:lib:cjs": "rollup -c rollup.config.cjs.js --bundleConfigAsCjs",
|
|
40
|
+
"build:analyze": "npm run clean && cross-env BUNDLE_ANALYZE=true rollup -c rollup.config.js",
|
|
41
|
+
"analyze": "npm run build:analyze",
|
|
42
|
+
"build:dev:analyze": "cross-env ANALYZE_BUNDLE=true vite build",
|
|
43
|
+
"bundle-size": "npm run analyze && echo 'Bundle analysis complete! Check dist/bundle-analysis-esm.html'",
|
|
44
|
+
"bundle-size:dev": "npm run build:dev:analyze && echo 'Dev bundle analysis complete! Check dist-dev/bundle-analysis-dev.html'",
|
|
45
|
+
"test": "vitest",
|
|
46
|
+
"test:ui": "vitest --ui",
|
|
47
|
+
"test:coverage": "vitest --coverage",
|
|
48
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
49
|
+
"lint:fix": "eslint . --ext ts,tsx --fix",
|
|
50
|
+
"storybook": "storybook dev -p 6006",
|
|
51
|
+
"build-storybook": "storybook build",
|
|
52
|
+
"prepublishOnly": "npm run build:lib:esm",
|
|
53
|
+
"version:patch": "npm version patch",
|
|
54
|
+
"version:minor": "npm version minor",
|
|
55
|
+
"version:major": "npm version major",
|
|
56
|
+
"build:publish": "npm run version:patch && npm run build:esm && npm run type-check",
|
|
57
|
+
"publish:npm": "npm publish",
|
|
58
|
+
"publish:beta": "npm publish --tag beta",
|
|
59
|
+
"publish:auto": "npm run build:publish && npm publish",
|
|
60
|
+
"install-peers": "npm install react-hook-form@^7.62.0 @mui/material@^7.3.1 @mui/icons-material@^7.3.1 @emotion/react@^11.14.0 @emotion/styled@^11.14.1 @mui/x-date-pickers@^8.10.2 @hookform/error-message@^2.0.1 @hookform/resolvers@^5.2.1 crypto-js@^4.2.0 date-fns@^4.1.0 dayjs@^1.11.13 file-saver@^2.0.5 jodit@^4.6.2 jodit-react@^5.2.19 react-idle-timer@^5.7.2 xlsx-js-style@^1.2.0 yup@^1.7.0",
|
|
61
|
+
"// install-peers": "Note: React and React-DOM are not included as they're typically already installed by the consuming project (Vite, CRA, etc.)"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"@emotion/react": ">=11.14.0 <13.0.0",
|
|
65
|
+
"@emotion/styled": ">=11.14.1 <13.0.0",
|
|
66
|
+
"@hookform/error-message": ">=2.0.1 <3.0.0",
|
|
67
|
+
"@hookform/resolvers": ">=5.2.1 <6.0.0",
|
|
68
|
+
"@mui/icons-material": ">=7.3.1 <8.0.0",
|
|
69
|
+
"@mui/material": ">=7.3.1 <8.0.0",
|
|
70
|
+
"@mui/x-date-pickers": ">=8.10.2 <9.0.0",
|
|
71
|
+
"crypto-js": ">=4.2.0 <5.0.0",
|
|
72
|
+
"date-fns": ">=4.1.0 <5.0.0",
|
|
73
|
+
"dayjs": ">=1.11.13 <2.0.0",
|
|
74
|
+
"file-saver": ">=2.0.5 <3.0.0",
|
|
75
|
+
"jodit": ">=4.6.2 <5.0.0",
|
|
76
|
+
"jodit-react": ">=5.2.19 <6.0.0",
|
|
77
|
+
"react": ">=19.1.1",
|
|
78
|
+
"react-hook-form": ">=7.62.0 <8.0.0",
|
|
79
|
+
"react-idle-timer": ">=5.7.2 <6.0.0",
|
|
80
|
+
"xlsx-js-style": ">=1.2.0 <2.0.0",
|
|
81
|
+
"yup": ">=1.7.0 <2.0.0"
|
|
82
|
+
},
|
|
83
|
+
"peerDependenciesMeta": {
|
|
84
|
+
"react-idle-timer": {
|
|
85
|
+
"optional": true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@emotion/react": "^11.14.0",
|
|
90
|
+
"@emotion/styled": "^11.14.1",
|
|
91
|
+
"@hookform/error-message": "^2.0.1",
|
|
92
|
+
"@hookform/resolvers": "^5.2.1",
|
|
93
|
+
"@mui/icons-material": "^7.3.1",
|
|
94
|
+
"@mui/material": "^7.3.1",
|
|
95
|
+
"@mui/x-date-pickers": "^8.10.2",
|
|
96
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
97
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
98
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
99
|
+
"@storybook/addon-docs": "^9.1.2",
|
|
100
|
+
"@storybook/addon-links": "^9.1.2",
|
|
101
|
+
"@storybook/react-vite": "^9.1.2",
|
|
102
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
103
|
+
"@testing-library/react": "^16.0.1",
|
|
104
|
+
"@testing-library/user-event": "^14.5.2",
|
|
105
|
+
"@types/crypto-js": "^4.2.2",
|
|
106
|
+
"@types/file-saver": "^2.0.7",
|
|
107
|
+
"@types/node": "^22.11.0",
|
|
108
|
+
"@types/react": "^19.0.0",
|
|
109
|
+
"@types/react-dom": "^19.0.0",
|
|
110
|
+
"@typescript-eslint/eslint-plugin": "^8.8.0",
|
|
111
|
+
"@typescript-eslint/parser": "^8.8.0",
|
|
112
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
113
|
+
"@vitest/coverage-v8": "^3.0.0",
|
|
114
|
+
"@vitest/ui": "^3.0.0",
|
|
115
|
+
"cross-env": "^10.0.0",
|
|
116
|
+
"crypto-js": "^4.2.0",
|
|
117
|
+
"date-fns": "^4.1.0",
|
|
118
|
+
"dayjs": "^1.11.13",
|
|
119
|
+
"eslint": "^9.12.0",
|
|
120
|
+
"eslint-config-prettier": "^9.1.0",
|
|
121
|
+
"eslint-plugin-react": "^7.37.1",
|
|
122
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
123
|
+
"eslint-plugin-react-refresh": "^0.4.12",
|
|
124
|
+
"eslint-plugin-storybook": "9.1.2",
|
|
125
|
+
"file-saver": "^2.0.5",
|
|
126
|
+
"glob": "^10.4.5",
|
|
127
|
+
"jodit": "^4.6.2",
|
|
128
|
+
"jodit-react": "^5.2.19",
|
|
129
|
+
"jsdom": "^25.0.0",
|
|
130
|
+
"react": "^19.1.1",
|
|
131
|
+
"react-dom": "^19.1.1",
|
|
132
|
+
"react-hook-form": "^7.62.0",
|
|
133
|
+
"react-idle-timer": "^5.7.2",
|
|
134
|
+
"rimraf": "^5.0.7",
|
|
135
|
+
"rollup": "^4.22.4",
|
|
136
|
+
"rollup-plugin-analyzer": "^4.0.0",
|
|
137
|
+
"rollup-plugin-bundle-size": "^1.0.3",
|
|
138
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
139
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
140
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
141
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
142
|
+
"sass-embedded": "^1.90.0",
|
|
143
|
+
"storybook": "^9.1.2",
|
|
144
|
+
"typescript": "^5.5.4",
|
|
145
|
+
"vite": "^6.0.0",
|
|
146
|
+
"vitest": "^3.0.0",
|
|
147
|
+
"xlsx-js-style": "^1.2.0",
|
|
148
|
+
"yup": "^1.7.0"
|
|
149
|
+
},
|
|
150
|
+
"keywords": [
|
|
151
|
+
"react",
|
|
152
|
+
"forms",
|
|
153
|
+
"components",
|
|
154
|
+
"react-hook-form",
|
|
155
|
+
"yup",
|
|
156
|
+
"typescript"
|
|
157
|
+
],
|
|
158
|
+
"author": "Mohammad Asheesh",
|
|
159
|
+
"contributors": [
|
|
160
|
+
"Karthik Mayandi",
|
|
161
|
+
"Other Dev"
|
|
162
|
+
],
|
|
163
|
+
"license": "MIT",
|
|
164
|
+
"engines": {
|
|
165
|
+
"node": ">=22.12.0",
|
|
166
|
+
"npm": ">=10.9.0"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Installation script for tp-form-elements peer dependencies
|
|
5
|
+
* This script installs all required and optional peer dependencies
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { execSync } from "child_process";
|
|
9
|
+
|
|
10
|
+
console.log("š Installing peer dependencies for tp-form-elements...\n");
|
|
11
|
+
|
|
12
|
+
// Core dependencies (required)
|
|
13
|
+
// Note: React and React-DOM are not included as they're typically already installed by the consuming project (Vite, CRA, etc.)
|
|
14
|
+
const coreDeps = [
|
|
15
|
+
"react-hook-form@^7.62.0",
|
|
16
|
+
"@mui/material@^7.3.1",
|
|
17
|
+
"@mui/icons-material@^7.3.1",
|
|
18
|
+
"@emotion/react@^11.14.0",
|
|
19
|
+
"@emotion/styled@^11.14.1",
|
|
20
|
+
"@mui/x-date-pickers@^8.10.2",
|
|
21
|
+
"@hookform/error-message@^2.0.1",
|
|
22
|
+
"@hookform/resolvers@^5.2.1",
|
|
23
|
+
"date-fns@^4.1.0",
|
|
24
|
+
"dayjs@^1.11.13",
|
|
25
|
+
"jodit@^4.6.2",
|
|
26
|
+
"jodit-react@^5.2.19",
|
|
27
|
+
"yup@^1.7.0",
|
|
28
|
+
// NOTE: Removed mui-daterange-picker@^1.0.5 due to React 18 compatibility issues
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
// Optional dependencies
|
|
32
|
+
const optionalDeps = [
|
|
33
|
+
"react-idle-timer@^5.7.2",
|
|
34
|
+
"crypto-js@^4.2.0",
|
|
35
|
+
"file-saver@^2.0.5",
|
|
36
|
+
"xlsx-js-style@^1.2.0",
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
console.log("š¦ Installing core dependencies...");
|
|
41
|
+
const coreCommand = `npm install ${coreDeps.join(" ")}`;
|
|
42
|
+
execSync(coreCommand, { stdio: "inherit" });
|
|
43
|
+
|
|
44
|
+
console.log("\n⨠Installing optional dependencies...");
|
|
45
|
+
const optionalCommand = `npm install ${optionalDeps.join(" ")}`;
|
|
46
|
+
execSync(optionalCommand, { stdio: "inherit" });
|
|
47
|
+
|
|
48
|
+
console.log("\nā
All peer dependencies installed successfully!");
|
|
49
|
+
console.log("\nš You can now use tp-form-elements in your project.");
|
|
50
|
+
console.log("\nš Check the documentation for usage examples:");
|
|
51
|
+
console.log(" https://github.com/your-office/form-elements#readme");
|
|
52
|
+
} catch (error) {
|
|
53
|
+
console.error("\nā Error installing dependencies:");
|
|
54
|
+
console.error(error.message);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
}
|
package/dist/App.d.ts
DELETED
package/dist/App.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function handleDownloadExcelV2(data: any[], fileName: string, ColumnHeaders: any[], selectedColumns?: any[]): void;
|
|
@@ -1,6 +0,0 @@
|
|
|
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>;
|
|
6
|
-
//# sourceMappingURL=Delete.stories.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FormRenderProps } from "../FormRender";
|
|
2
|
-
declare const FormRenderMultiFileUpload: ({ props, variant, }: {
|
|
3
|
-
props: FormRenderProps;
|
|
4
|
-
variant: "standard" | "outlined" | "";
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default FormRenderMultiFileUpload;
|
|
@@ -1,6 +0,0 @@
|
|
|
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>;
|
|
6
|
-
//# sourceMappingURL=Form.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function MultiSelectV1({ props, variant }: any): import("react/jsx-runtime").JSX.Element;
|