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
package/README.md
CHANGED
|
@@ -1,96 +1,306 @@
|
|
|
1
|
-
|
|
2
|
-
This Library is a reusable component gives intialvalues and validation schema for useForm and you can render Form Field Components without adding any text fields.
|
|
1
|
+
# tp-form-elements
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
A comprehensive React form library built with Material-UI and React Hook Form, designed for enterprise applications.
|
|
4
|
+
|
|
5
|
+
## 🚀 Features
|
|
6
|
+
|
|
7
|
+
- **🔄 Seamless Integration** - Built on React Hook Form for performance and flexibility
|
|
8
|
+
- **🎨 Material Design** - Consistent with Material-UI design system
|
|
9
|
+
- **✅ Robust Validation** - Integrated with Yup for schema validation
|
|
10
|
+
- **♿ Accessibility First** - WCAG compliant with proper ARIA attributes
|
|
11
|
+
- **📝 TypeScript Ready** - Full type safety and IntelliSense support
|
|
12
|
+
- **📚 Rich Documentation** - Comprehensive docs with Storybook
|
|
13
|
+
- **🧪 Well Tested** - Extensive test coverage with React Testing Library
|
|
14
|
+
|
|
15
|
+
## 📋 Requirements
|
|
16
|
+
|
|
17
|
+
- **Node.js**: v22.12.0 or higher (developed with v22.12.0)
|
|
18
|
+
- **React**: v16.8.0 or higher
|
|
19
|
+
- **TypeScript**: v4.5.0 or higher (optional but recommended)
|
|
20
|
+
|
|
21
|
+
## 🔗 Supported Versions
|
|
22
|
+
|
|
23
|
+
| Package | Supported Versions |
|
|
24
|
+
| ----------------- | ------------------ |
|
|
25
|
+
| React | 16.8.0 - 19.x |
|
|
26
|
+
| React DOM | 16.8.0 - 19.x |
|
|
27
|
+
| React Hook Form | 7.x |
|
|
28
|
+
| Material-UI | 7.x |
|
|
29
|
+
| Material-UI Icons | 7.x |
|
|
30
|
+
| Emotion React | 11.14.x |
|
|
31
|
+
| Emotion Styled | 11.14.x |
|
|
32
|
+
|
|
33
|
+
## 📦 Installation
|
|
34
|
+
|
|
35
|
+
This library uses **peer dependencies** to avoid version conflicts and reduce bundle size. You need to install the required dependencies separately.
|
|
36
|
+
|
|
37
|
+
### 🚀 Quick Install (Recommended)
|
|
38
|
+
|
|
39
|
+
Install the library and run our helper script to install all peer dependencies:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install tp-form-elements
|
|
43
|
+
npm run install-peers
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Alternative:** Use our standalone installer:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npm install tp-form-elements
|
|
50
|
+
npx install-tp-form-deps
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 📋 Manual Installation
|
|
54
|
+
|
|
55
|
+
#### Step 1: Install Required Dependencies
|
|
56
|
+
|
|
57
|
+
All of these are **mandatory** for the library to function:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm install react@^19.1.1 react-dom@^19.1.1 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 date-fns@^4.1.0 dayjs@^1.11.13 jodit@^4.6.2 jodit-react@^5.2.19 yup@^1.7.0 crypto-js@^4.2.0 file-saver@^2.0.5 xlsx-js-style@^1.2.0
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#### Step 2: Install Optional Dependencies
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Only install if you need session timeout functionality
|
|
67
|
+
npm install react-idle-timer@^5.7.2
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
#### Step 3: Install the Library
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npm install tp-form-elements
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 🔄 All-in-One Installation
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npm install tp-form-elements react@^19.1.1 react-dom@^19.1.1 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 date-fns@^4.1.0 dayjs@^1.11.13 jodit@^4.6.2 jodit-react@^5.2.19 crypto-js@^4.2.0 file-saver@^2.0.5 xlsx-js-style@^1.2.0 yup@^1.7.0 react-idle-timer@^5.7.2
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 🔧 For Library Developers
|
|
83
|
+
|
|
84
|
+
If you're contributing to this library or setting up for development:
|
|
85
|
+
|
|
86
|
+
### Development Setup
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Clone the repository
|
|
90
|
+
git clone https://github.com/your-office/form-elements.git
|
|
91
|
+
cd form-elements
|
|
92
|
+
|
|
93
|
+
# Install all dependencies (including devDependencies)
|
|
94
|
+
npm install
|
|
95
|
+
|
|
96
|
+
# Start development server
|
|
97
|
+
npm run dev
|
|
98
|
+
|
|
99
|
+
# Run tests
|
|
100
|
+
npm test
|
|
101
|
+
|
|
102
|
+
# Build the library
|
|
103
|
+
npm run build
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Dependency Structure
|
|
107
|
+
|
|
108
|
+
- **`peerDependencies`**: Required by library consumers, must be installed separately
|
|
109
|
+
- **`devDependencies`**: Required for development, testing, and building the library
|
|
110
|
+
- **`dependencies`**: Empty (following library best practices)
|
|
111
|
+
|
|
112
|
+
### Why Peer Dependencies?
|
|
113
|
+
|
|
114
|
+
1. **Avoid Version Conflicts**: Prevents multiple versions of React, MUI, etc.
|
|
115
|
+
2. **Smaller Bundle Size**: No duplicate packages in consumer projects
|
|
116
|
+
3. **Version Control**: Users control which versions they use
|
|
117
|
+
4. **Industry Standard**: Same pattern used by MUI, React Hook Form, etc.
|
|
118
|
+
|
|
119
|
+
### ⚠️ Known Issues & Future Improvements
|
|
120
|
+
|
|
121
|
+
#### `DateRangePicker` Component Status
|
|
122
|
+
|
|
123
|
+
- **Current Status**: DateRangePicker component temporarily disabled
|
|
124
|
+
- **Reason**: Removed `mui-daterange-picker@1.0.5` due to React 18 compatibility issues
|
|
125
|
+
- **Impact**: DateRangePicker component will show a placeholder message
|
|
126
|
+
- **TODO**: Migrate to `@mui/x-date-pickers` DateRangePicker component for better React 18 support
|
|
127
|
+
- **Timeline**: Migration planned for next major version
|
|
128
|
+
|
|
129
|
+
**For Developers**: DateRangePicker will display a placeholder message until the migration is complete.
|
|
130
|
+
|
|
131
|
+
### 🔄 Updating Dependencies
|
|
132
|
+
|
|
133
|
+
When updating to a new version of the library:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
npm update tp-form-elements
|
|
137
|
+
npm run install-peers # Updates peer dependencies to compatible versions
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## 🎯 Quick Start
|
|
141
|
+
|
|
142
|
+
```tsx
|
|
143
|
+
import React from "react";
|
|
6
144
|
import { useForm } from "react-hook-form";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
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
|
-
label: "Date range Picker",
|
|
51
|
-
required:true,
|
|
52
|
-
inputType: "dateRangePicker",
|
|
53
|
-
monthSpan:1
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "status",
|
|
57
|
-
label: "sdf",
|
|
58
|
-
inputType: "toggleSwitch",
|
|
59
|
-
monthSpan:1
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: "yearpicker",
|
|
63
|
-
label: "Year",
|
|
64
|
-
required:true,
|
|
65
|
-
inputType: "yearpicker",
|
|
66
|
-
monthSpan:1
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: "monthpicker",
|
|
70
|
-
label: "Month Picker",
|
|
71
|
-
required:true,
|
|
72
|
-
inputType: "monthpicker",
|
|
73
|
-
monthSpan:1
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: "file",
|
|
77
|
-
label: "File Upload",
|
|
78
|
-
required:true,
|
|
79
|
-
inputType: "file",
|
|
80
|
-
monthSpan:1
|
|
81
|
-
},
|
|
82
|
-
];
|
|
83
|
-
const { initialValues, validationSchema } = useFormValidatingContext(
|
|
84
|
-
formArray
|
|
145
|
+
import { yupResolver } from "@hookform/resolvers/yup";
|
|
146
|
+
import * as yup from "yup";
|
|
147
|
+
import { Input } from "tp-form-elements";
|
|
148
|
+
import { ThemeProvider } from "@mui/material/styles";
|
|
149
|
+
import CssBaseline from "@mui/material/CssBaseline";
|
|
150
|
+
|
|
151
|
+
const schema = yup.object({
|
|
152
|
+
email: yup.string().email().required(),
|
|
153
|
+
password: yup.string().min(8).required(),
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
function LoginForm() {
|
|
157
|
+
const { control, handleSubmit } = useForm({
|
|
158
|
+
resolver: yupResolver(schema),
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
const onSubmit = (data) => {
|
|
162
|
+
console.log(data);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
return (
|
|
166
|
+
<ThemeProvider theme={customTheme}>
|
|
167
|
+
<CssBaseline />
|
|
168
|
+
<form onSubmit={handleSubmit(onSubmit)}>
|
|
169
|
+
<Input
|
|
170
|
+
name="email"
|
|
171
|
+
control={control}
|
|
172
|
+
label="Email Address"
|
|
173
|
+
type="email"
|
|
174
|
+
required
|
|
175
|
+
fullWidth
|
|
176
|
+
/>
|
|
177
|
+
<Input
|
|
178
|
+
name="password"
|
|
179
|
+
control={control}
|
|
180
|
+
label="Password"
|
|
181
|
+
type="password"
|
|
182
|
+
required
|
|
183
|
+
fullWidth
|
|
184
|
+
/>
|
|
185
|
+
<button type="submit">Sign In</button>
|
|
186
|
+
</form>
|
|
187
|
+
</ThemeProvider>
|
|
85
188
|
);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## 📋 Components
|
|
193
|
+
|
|
194
|
+
### Input
|
|
195
|
+
|
|
196
|
+
A versatile input component that handles text, email, password, number, and multiline inputs.
|
|
197
|
+
|
|
198
|
+
```tsx
|
|
199
|
+
<Input
|
|
200
|
+
name="email"
|
|
201
|
+
control={control}
|
|
202
|
+
label="Email Address"
|
|
203
|
+
type="email"
|
|
204
|
+
placeholder="your@email.com"
|
|
205
|
+
helpText="We'll never share your email"
|
|
206
|
+
required
|
|
207
|
+
fullWidth
|
|
208
|
+
/>
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
**Props:**
|
|
212
|
+
|
|
213
|
+
- `name` - Field name for form registration
|
|
214
|
+
- `control` - React Hook Form control object (optional for uncontrolled)
|
|
215
|
+
- `label` - Input label
|
|
216
|
+
- `type` - Input type (text, email, password, number, etc.)
|
|
217
|
+
- `placeholder` - Placeholder text
|
|
218
|
+
- `helpText` - Helper text shown below input
|
|
219
|
+
- `required` - Whether field is required
|
|
220
|
+
- `disabled` - Whether field is disabled
|
|
221
|
+
- `multiline` - Render as textarea
|
|
222
|
+
- `transform` - Transform function for input value
|
|
223
|
+
- All Material-UI TextField props are supported
|
|
224
|
+
|
|
225
|
+
## 🎨 Theming
|
|
226
|
+
|
|
227
|
+
The library uses Material-UI's theming system. You can customize the appearance by providing your own theme:
|
|
228
|
+
|
|
229
|
+
```tsx
|
|
230
|
+
import { createTheme, ThemeProvider } from "@mui/material/styles";
|
|
231
|
+
|
|
232
|
+
const customTheme = createTheme({
|
|
233
|
+
palette: {
|
|
234
|
+
primary: {
|
|
235
|
+
main: "#your-primary-color",
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
function App() {
|
|
90
241
|
return (
|
|
91
|
-
<
|
|
92
|
-
|
|
242
|
+
<ThemeProvider theme={customTheme}>
|
|
243
|
+
{/* Your form components */}
|
|
244
|
+
</ThemeProvider>
|
|
245
|
+
);
|
|
93
246
|
}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## 🔨 Building
|
|
250
|
+
|
|
251
|
+
The library supports multiple build formats for different environments:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
# Build complete library (ESM + CJS + TypeScript declarations)
|
|
255
|
+
npm run build:lib
|
|
256
|
+
|
|
257
|
+
# Build specific formats
|
|
258
|
+
npm run build:lib:esm # ES Module build with TypeScript declarations
|
|
259
|
+
npm run build:lib:cjs # CommonJS build only
|
|
260
|
+
npm run build:types # Generate TypeScript declarations only
|
|
261
|
+
|
|
262
|
+
# Development builds
|
|
263
|
+
npm run build # Vite build for playground
|
|
264
|
+
npm run dev # Start development server
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Build Outputs
|
|
268
|
+
|
|
269
|
+
- **ESM Build** (`dist/index.esm.js`) - For modern bundlers (Vite, Webpack 5+, Rollup)
|
|
270
|
+
- **CommonJS Build** (`dist/index.js`) - For legacy Node.js environments and older tools
|
|
271
|
+
- **TypeScript Declarations** (`dist/index.d.ts`) - Full type definitions for TypeScript projects
|
|
272
|
+
- **CSS Bundles** (`dist/index.esm.css`, `dist/index.css`) - Extracted styles for each format
|
|
273
|
+
|
|
274
|
+
For detailed information about our TypeScript declaration setup, see `docs/typescript-declarations.md`.
|
|
275
|
+
|
|
276
|
+
## 🧪 Testing
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
npm test # Run tests
|
|
280
|
+
npm run test:coverage # Run with coverage
|
|
281
|
+
npm run test:ui # Run with UI
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
## 📖 Documentation
|
|
285
|
+
|
|
286
|
+
- **Storybook**: Run `npm run storybook` for interactive component documentation
|
|
287
|
+
- **TypeScript**: Full IntelliSense support in your IDE
|
|
288
|
+
- **Playground**: Run `npm run dev` to explore components in the development environment
|
|
289
|
+
|
|
290
|
+
## 🤝 Contributing
|
|
291
|
+
|
|
292
|
+
1. Fork the repository
|
|
293
|
+
2. Create a feature branch: `git checkout -b feature/new-component`
|
|
294
|
+
3. Make your changes and add tests
|
|
295
|
+
4. Run tests: `npm test`
|
|
296
|
+
5. Submit a pull request
|
|
297
|
+
|
|
298
|
+
## 📄 License
|
|
299
|
+
|
|
300
|
+
MIT License - see LICENSE file for details.
|
|
301
|
+
|
|
302
|
+
## 🆘 Support
|
|
94
303
|
|
|
95
|
-
|
|
96
|
-
|
|
304
|
+
- Check our [Storybook documentation](https://your-storybook-url.com)
|
|
305
|
+
- File issues on [GitHub](https://github.com/your-office/form-elements/issues)
|
|
306
|
+
- Internal Slack: #form-library-support
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormConstants.d.ts","sourceRoot":"","sources":["../../../src/Utilities/Constants/FormConstants.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE3E,eAAO,MAAM,WAAW,GAAI,SAAS,YAAY,EAAE,OAAO,eAAe,EAAC,YAAU,OAAa,oDAM9F,CAAC;AACJ,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,UAc/C;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,sBAYjD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,UAIrE;AAED,eAAO,MAAM,WAAW,GAAI,iBAAiB,MAAM,GAAG,GAAG,WAaxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionConstants.d.ts","sourceRoot":"","sources":["../../../src/Utilities/Constants/FunctionConstants.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,iCAAiC,GAC5C,UAAU,MAAM,EAChB,SAAS,GAAG,EAAE,EACd,UAAS,GAAG,EAAO,EACnB,gBAAe,GAAG,EAAO,EACzB,mBAAkB,MAAmB,EACrC,cAAa,MAAiB,SA0I/B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,UAEjD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,UAQvC;AAED,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,GAAG,EAAE,EACf,UAAU,EAAE,MAAM,EAClB,uBAAuB,EAAE,MAAM,OAkChC;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,YAAW,MAAU,EACrB,WAAU,MAAM,GAAG,IAAW,KAC7B,MAQF,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzE,KAAK,EAAE,CAAC,EAAE,EACV,GAAG,EAAE,MAAM,CAAC,GACX,MAAM,CAQR;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,OAAO,CAST;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAiBnE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,GAAE,MAAU,GAAG,MAAM,CAE9D;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,YAAY,MAAM,KAAG,MAO9D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,GAAI,YAAY,MAAM,EAAE,YAAY,MAAM,KAAG,MAMpE,CAAC"}
|
|
@@ -10,7 +10,7 @@ export interface TextFieldInputProps {
|
|
|
10
10
|
export interface FormSectionPropsItem {
|
|
11
11
|
name: string;
|
|
12
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" | "";
|
|
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" | "custom" | "";
|
|
14
14
|
options?: OptionsProps[];
|
|
15
15
|
required?: boolean;
|
|
16
16
|
errorMessage?: string;
|
|
@@ -54,6 +54,7 @@ export interface FormSectionPropsItem {
|
|
|
54
54
|
size?: "extrasmall" | '';
|
|
55
55
|
decimalFixedTo?: number;
|
|
56
56
|
customValidation?: (value: any) => void;
|
|
57
|
+
FormCell?: React.ReactNode;
|
|
57
58
|
}
|
|
58
59
|
export type VariantProps = "standard" | "outlined" | "";
|
|
59
60
|
export interface FormRenderProps {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormInterface.d.ts","sourceRoot":"","sources":["../../../src/Utilities/Interface/FormInterface.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { calculateTotalArrayValueTotal, checkIsDateIsBefore, findMenuHierarchy, getDesiredDate, getFormattedDate, getInitials, getUsernameFromEmail, handleDownloadReactTableDataExcel, lightenColor, } from "./Constants/FunctionConstants";
|
|
2
|
+
export * from "./Constants/FormConstants";
|
|
3
|
+
export * from "./Interface/FormInterface";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Utilities/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,oBAAoB,EACpB,iCAAiC,EACjC,YAAY,GACb,MAAM,+BAA+B,CAAC;AAGvC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ______ _ _ _
|
|
3
|
+
* | ____| | | | (_)
|
|
4
|
+
* | |__ | | __ _| |_ _ ___ ___ _ __
|
|
5
|
+
* | __| | |/ _` | __| |/ __/ _ \| '_ \
|
|
6
|
+
* | | | | (_| | |_| | (_| (_) | | | |
|
|
7
|
+
* |_| |_|\__,_|\__|_|\___\___/|_| |_|
|
|
8
|
+
*
|
|
9
|
+
* https://www.flaticon.com
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: "flaticon_hvc";
|
|
14
|
+
src: url("./flaticon_hvc.woff2?09127989b5c99a4f290cd7bb7c4bad12") format("woff2"),
|
|
15
|
+
url("./flaticon_hvc.woff?09127989b5c99a4f290cd7bb7c4bad12") format("woff"),
|
|
16
|
+
url("./flaticon_hvc.eot?09127989b5c99a4f290cd7bb7c4bad12#iefix") format("embedded-opentype"),
|
|
17
|
+
url("./flaticon_hvc.ttf?09127989b5c99a4f290cd7bb7c4bad12") format("truetype"),
|
|
18
|
+
url("./flaticon_hvc.svg?09127989b5c99a4f290cd7bb7c4bad12#flaticon_hvc") format("svg")
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
i[class^="flaticon-"]:before, i[class*=" flaticon-"]:before {
|
|
22
|
+
font-family: flaticon_hvc !important;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: normal !important;
|
|
25
|
+
font-variant: normal;
|
|
26
|
+
text-transform: none;
|
|
27
|
+
line-height: 1;
|
|
28
|
+
-webkit-font-smoothing: antialiased;
|
|
29
|
+
-moz-osx-font-smoothing: grayscale;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.flaticon-setting:before {
|
|
33
|
+
content: "\f101";
|
|
34
|
+
}
|
|
35
|
+
.flaticon-refresh:before {
|
|
36
|
+
content: "\f102";
|
|
37
|
+
}
|
|
38
|
+
.flaticon-setting-1:before {
|
|
39
|
+
content: "\f103";
|
|
40
|
+
}
|
|
41
|
+
.flaticon-check:before {
|
|
42
|
+
content: "\f104";
|
|
43
|
+
}
|
|
44
|
+
.flaticon-bank:before {
|
|
45
|
+
content: "\f105";
|
|
46
|
+
}
|
|
47
|
+
.flaticon-user:before {
|
|
48
|
+
content: "\f106";
|
|
49
|
+
}
|
|
50
|
+
.flaticon-user-1:before {
|
|
51
|
+
content: "\f107";
|
|
52
|
+
}
|
|
53
|
+
.flaticon-info-sign:before {
|
|
54
|
+
content: "\f108";
|
|
55
|
+
}
|
|
56
|
+
.flaticon-clipboard:before {
|
|
57
|
+
content: "\f109";
|
|
58
|
+
}
|
|
59
|
+
.flaticon-right-arrow:before {
|
|
60
|
+
content: "\f10a";
|
|
61
|
+
}
|
|
62
|
+
.flaticon-home:before {
|
|
63
|
+
content: "\f10b";
|
|
64
|
+
}
|
|
65
|
+
.flaticon-search:before {
|
|
66
|
+
content: "\f10c";
|
|
67
|
+
}
|
|
68
|
+
.flaticon-eye:before {
|
|
69
|
+
content: "\f10d";
|
|
70
|
+
}
|
|
71
|
+
.flaticon-edit:before {
|
|
72
|
+
content: "\f10e";
|
|
73
|
+
}
|
|
74
|
+
.flaticon-delete:before {
|
|
75
|
+
content: "\f10f";
|
|
76
|
+
}
|
|
77
|
+
.flaticon-add-1:before {
|
|
78
|
+
content: "\f110";
|
|
79
|
+
}
|
|
80
|
+
.flaticon-plus-1:before {
|
|
81
|
+
content: "\f111";
|
|
82
|
+
}
|
|
83
|
+
.flaticon-compose:before {
|
|
84
|
+
content: "\f112";
|
|
85
|
+
}
|
|
86
|
+
.flaticon-trash:before {
|
|
87
|
+
content: "\f113";
|
|
88
|
+
}
|
|
89
|
+
.flaticon-download:before {
|
|
90
|
+
content: "\f114";
|
|
91
|
+
}
|
|
92
|
+
.flaticon-downloading:before {
|
|
93
|
+
content: "\f115";
|
|
94
|
+
}
|
|
95
|
+
.flaticon-upload:before {
|
|
96
|
+
content: "\f116";
|
|
97
|
+
}
|
|
98
|
+
.flaticon-right-arrow-1:before {
|
|
99
|
+
content: "\f117";
|
|
100
|
+
}
|
|
101
|
+
.flaticon-user-2:before {
|
|
102
|
+
content: "\f118";
|
|
103
|
+
}
|
|
104
|
+
.flaticon-man-in-suit-and-tie:before {
|
|
105
|
+
content: "\f119";
|
|
106
|
+
}
|
|
107
|
+
.flaticon-cancel:before {
|
|
108
|
+
content: "\f11a";
|
|
109
|
+
}
|
|
110
|
+
.flaticon-check-mark:before {
|
|
111
|
+
content: "\f11b";
|
|
112
|
+
}
|
|
113
|
+
.flaticon-bars:before {
|
|
114
|
+
content: "\f11c";
|
|
115
|
+
}
|
|
116
|
+
.flaticon-copy:before {
|
|
117
|
+
content: "\f11d";
|
|
118
|
+
}
|
|
119
|
+
.flaticon-printer:before {
|
|
120
|
+
content: "\f11e";
|
|
121
|
+
}
|
|
122
|
+
.flaticon-file:before {
|
|
123
|
+
content: "\f11f";
|
|
124
|
+
}
|
|
125
|
+
.flaticon-file-1:before {
|
|
126
|
+
content: "\f120";
|
|
127
|
+
}
|
|
128
|
+
.flaticon-file-2:before {
|
|
129
|
+
content: "\f121";
|
|
130
|
+
}
|
|
131
|
+
.flaticon-eye-1:before {
|
|
132
|
+
content: "\f122";
|
|
133
|
+
}
|
|
134
|
+
.flaticon-upload-1:before {
|
|
135
|
+
content: "\f123";
|
|
136
|
+
}
|
|
137
|
+
.flaticon-production:before {
|
|
138
|
+
content: "\f124";
|
|
139
|
+
}
|
|
140
|
+
.flaticon-cube:before {
|
|
141
|
+
content: "\f125";
|
|
142
|
+
}
|
|
143
|
+
.flaticon-rotation:before {
|
|
144
|
+
content: "\f126";
|
|
145
|
+
}
|
|
146
|
+
.flaticon-rotation-1:before {
|
|
147
|
+
content: "\f127";
|
|
148
|
+
}
|
|
149
|
+
.flaticon-spinning:before {
|
|
150
|
+
content: "\f128";
|
|
151
|
+
}
|
|
152
|
+
.flaticon-spinning-1:before {
|
|
153
|
+
content: "\f129";
|
|
154
|
+
}
|
|
155
|
+
.flaticon-ready-stock:before {
|
|
156
|
+
content: "\f12a";
|
|
157
|
+
}
|
|
158
|
+
.flaticon-ready-stock-1:before {
|
|
159
|
+
content: "\f12b";
|
|
160
|
+
}
|
|
161
|
+
.flaticon-visible:before {
|
|
162
|
+
content: "\f12c";
|
|
163
|
+
}
|
|
164
|
+
.flaticon-printing:before {
|
|
165
|
+
content: "\f12d";
|
|
166
|
+
}
|
|
167
|
+
.flaticon-like:before {
|
|
168
|
+
content: "\f12e";
|
|
169
|
+
}
|
|
170
|
+
.flaticon-thumb-up:before {
|
|
171
|
+
content: "\f12f";
|
|
172
|
+
}
|
|
173
|
+
.flaticon-thumbs-up:before {
|
|
174
|
+
content: "\f130";
|
|
175
|
+
}
|
|
176
|
+
.flaticon-thumb-down:before {
|
|
177
|
+
content: "\f131";
|
|
178
|
+
}
|
|
179
|
+
.flaticon-dislike:before {
|
|
180
|
+
content: "\f132";
|
|
181
|
+
}
|
|
182
|
+
.flaticon-thumb-down-1:before {
|
|
183
|
+
content: "\f133";
|
|
184
|
+
}
|
|
185
|
+
.flaticon-pointing-right:before {
|
|
186
|
+
content: "\f134";
|
|
187
|
+
}
|
|
188
|
+
.flaticon-point:before {
|
|
189
|
+
content: "\f135";
|
|
190
|
+
}
|
|
191
|
+
.flaticon-history:before {
|
|
192
|
+
content: "\f136";
|
|
193
|
+
}
|
|
194
|
+
|
|
Binary file
|