mui-design-system 0.0.21 → 0.0.22

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.
Files changed (243) hide show
  1. package/package.json +1 -1
  2. package/dist/colors/index.d.ts +0 -4
  3. package/dist/colors/index.js +0 -93
  4. package/dist/colors/type.d.ts +0 -5
  5. package/dist/colors/type.js +0 -1
  6. package/dist/components/checkbox-list/CheckboxList.d.ts +0 -21
  7. package/dist/components/checkbox-list/CheckboxList.js +0 -31
  8. package/dist/components/custom-auto-complete/CustomAutoComplete.d.ts +0 -27
  9. package/dist/components/custom-auto-complete/CustomAutoComplete.js +0 -75
  10. package/dist/components/custom-auto-complete/components/AutoCompleteInput.d.ts +0 -21
  11. package/dist/components/custom-auto-complete/components/AutoCompleteInput.js +0 -29
  12. package/dist/components/custom-auto-complete/components/ListBox.d.ts +0 -5
  13. package/dist/components/custom-auto-complete/components/ListBox.js +0 -62
  14. package/dist/components/custom-auto-complete/components/ListRow.d.ts +0 -2
  15. package/dist/components/custom-auto-complete/components/ListRow.js +0 -21
  16. package/dist/components/custom-auto-complete-advanced/CustomAutoComplete.d.ts +0 -28
  17. package/dist/components/custom-auto-complete-advanced/CustomAutoComplete.js +0 -92
  18. package/dist/components/custom-auto-complete-advanced/components/ListBox.d.ts +0 -6
  19. package/dist/components/custom-auto-complete-advanced/components/ListBox.js +0 -76
  20. package/dist/components/custom-auto-complete-advanced/components/ListRow.d.ts +0 -2
  21. package/dist/components/custom-auto-complete-advanced/components/ListRow.js +0 -17
  22. package/dist/components/custom-auto-complete-advanced/components/RenderInput.d.ts +0 -23
  23. package/dist/components/custom-auto-complete-advanced/components/RenderInput.js +0 -51
  24. package/dist/components/custom-auto-complete-advanced/components/RenderTags.d.ts +0 -9
  25. package/dist/components/custom-auto-complete-advanced/components/RenderTags.js +0 -22
  26. package/dist/components/custom-breadcrumbs/CustomBreadcrumbs.d.ts +0 -17
  27. package/dist/components/custom-breadcrumbs/CustomBreadcrumbs.js +0 -11
  28. package/dist/components/custom-card/CustomHorizontalCard.d.ts +0 -3
  29. package/dist/components/custom-card/CustomHorizontalCard.js +0 -9
  30. package/dist/components/custom-card/CustomVerticalCard.d.ts +0 -3
  31. package/dist/components/custom-card/CustomVerticalCard.js +0 -9
  32. package/dist/components/custom-chip/CustomChip.d.ts +0 -12
  33. package/dist/components/custom-chip/CustomChip.js +0 -10
  34. package/dist/components/custom-date-picker/CustomComponent.d.ts +0 -17
  35. package/dist/components/custom-date-picker/CustomComponent.js +0 -36
  36. package/dist/components/custom-date-picker/CustomDatePicker.d.ts +0 -14
  37. package/dist/components/custom-date-picker/CustomDatePicker.js +0 -55
  38. package/dist/components/custom-dialog/CustomDialog.d.ts +0 -41
  39. package/dist/components/custom-dialog/CustomDialog.js +0 -38
  40. package/dist/components/custom-input/CustomNumericInput.d.ts +0 -9
  41. package/dist/components/custom-input/CustomNumericInput.js +0 -32
  42. package/dist/components/custom-mobile-date-picker/CustomBottomSheet.d.ts +0 -9
  43. package/dist/components/custom-mobile-date-picker/CustomBottomSheet.js +0 -29
  44. package/dist/components/custom-mobile-date-picker/CustomMobileDatePicker.d.ts +0 -19
  45. package/dist/components/custom-mobile-date-picker/CustomMobileDatePicker.js +0 -98
  46. package/dist/components/custom-mobile-date-picker/DatePickerBottomSheet.d.ts +0 -19
  47. package/dist/components/custom-mobile-date-picker/DatePickerBottomSheet.js +0 -40
  48. package/dist/components/custom-mobile-date-picker/ItemPicker.d.ts +0 -10
  49. package/dist/components/custom-mobile-date-picker/ItemPicker.js +0 -72
  50. package/dist/components/custom-modal/CustomModal.d.ts +0 -21
  51. package/dist/components/custom-modal/CustomModal.js +0 -38
  52. package/dist/components/custom-pagination/custom-pagination-1/CustomPagination1.d.ts +0 -9
  53. package/dist/components/custom-pagination/custom-pagination-1/CustomPagination1.js +0 -13
  54. package/dist/components/custom-pagination/custom-pagination-2/CustomPagination2.d.ts +0 -20
  55. package/dist/components/custom-pagination/custom-pagination-2/CustomPagination2.js +0 -33
  56. package/dist/components/custom-progress/LinearBufferProgress.d.ts +0 -6
  57. package/dist/components/custom-progress/LinearBufferProgress.js +0 -14
  58. package/dist/components/custom-stepper/CustomStepper.d.ts +0 -31
  59. package/dist/components/custom-stepper/CustomStepper.js +0 -170
  60. package/dist/components/custom-table/CustomTable.d.ts +0 -55
  61. package/dist/components/custom-table/CustomTable.js +0 -50
  62. package/dist/components/custom-table/components/CustomTableBody.d.ts +0 -21
  63. package/dist/components/custom-table/components/CustomTableBody.js +0 -11
  64. package/dist/components/custom-table/components/CustomTableCell.d.ts +0 -8
  65. package/dist/components/custom-table/components/CustomTableCell.js +0 -23
  66. package/dist/components/custom-table/components/CustomTableHead.d.ts +0 -17
  67. package/dist/components/custom-table/components/CustomTableHead.js +0 -63
  68. package/dist/components/custom-table/components/CustomTableRow.d.ts +0 -26
  69. package/dist/components/custom-table/components/CustomTableRow.js +0 -102
  70. package/dist/components/custom-table/components/useTable.d.ts +0 -24
  71. package/dist/components/custom-table/components/useTable.js +0 -77
  72. package/dist/components/custom-tabs/CustomTabs.d.ts +0 -22
  73. package/dist/components/custom-tabs/CustomTabs.js +0 -70
  74. package/dist/components/custom-uploader/CustomUploader.d.ts +0 -23
  75. package/dist/components/custom-uploader/CustomUploader.js +0 -68
  76. package/dist/components/error boundary/ErrorComponent.d.ts +0 -7
  77. package/dist/components/error boundary/ErrorComponent.js +0 -6
  78. package/dist/components/error boundary/withErrorBoundary.d.ts +0 -7
  79. package/dist/components/error boundary/withErrorBoundary.js +0 -10
  80. package/dist/components/index.d.ts +0 -183
  81. package/dist/components/index.js +0 -70
  82. package/dist/components/input-list/Form.d.ts +0 -21
  83. package/dist/components/input-list/Form.js +0 -19
  84. package/dist/components/input-list/InputListWithUseForm.d.ts +0 -22
  85. package/dist/components/input-list/InputListWithUseForm.js +0 -22
  86. package/dist/components/input-list/UseFormInput.d.ts +0 -11
  87. package/dist/components/input-list/UseFormInput.js +0 -50
  88. package/dist/components/input-list/checkbox-list/CheckboxList.d.ts +0 -19
  89. package/dist/components/input-list/checkbox-list/CheckboxList.js +0 -30
  90. package/dist/components/input-list/components/UFAutoComplete.d.ts +0 -9
  91. package/dist/components/input-list/components/UFAutoComplete.js +0 -41
  92. package/dist/components/input-list/components/UFCheckbox.d.ts +0 -19
  93. package/dist/components/input-list/components/UFCheckbox.js +0 -21
  94. package/dist/components/input-list/components/UFCurrency.d.ts +0 -9
  95. package/dist/components/input-list/components/UFCurrency.js +0 -47
  96. package/dist/components/input-list/components/UFDatePicker.d.ts +0 -9
  97. package/dist/components/input-list/components/UFDatePicker.js +0 -17
  98. package/dist/components/input-list/components/UFDatePickerMobile.d.ts +0 -9
  99. package/dist/components/input-list/components/UFDatePickerMobile.js +0 -6
  100. package/dist/components/input-list/components/UFMultiCheckbox.d.ts +0 -9
  101. package/dist/components/input-list/components/UFMultiCheckbox.js +0 -17
  102. package/dist/components/input-list/components/UFMultiSelect.d.ts +0 -9
  103. package/dist/components/input-list/components/UFMultiSelect.js +0 -56
  104. package/dist/components/input-list/components/UFRadio.d.ts +0 -9
  105. package/dist/components/input-list/components/UFRadio.js +0 -19
  106. package/dist/components/input-list/components/UFSelect.d.ts +0 -9
  107. package/dist/components/input-list/components/UFSelect.js +0 -19
  108. package/dist/components/input-list/components/UFSwitch.d.ts +0 -19
  109. package/dist/components/input-list/components/UFSwitch.js +0 -99
  110. package/dist/components/input-list/components/UFTextArea.d.ts +0 -9
  111. package/dist/components/input-list/components/UFTextArea.js +0 -12
  112. package/dist/components/input-list/components/UFTextField.d.ts +0 -11
  113. package/dist/components/input-list/components/UFTextField.js +0 -29
  114. package/dist/components/input-list/components/UFTime.d.ts +0 -10
  115. package/dist/components/input-list/components/UFTime.js +0 -93
  116. package/dist/components/input-list/components/UFUploader.d.ts +0 -9
  117. package/dist/components/input-list/components/UFUploader.js +0 -41
  118. package/dist/components/input-list/type.d.ts +0 -165
  119. package/dist/components/input-list/type.js +0 -1
  120. package/dist/components/otp-input/OTPInput.d.ts +0 -19
  121. package/dist/components/otp-input/OTPInput.js +0 -161
  122. package/dist/components/rich-tooltip/RichTooltip.d.ts +0 -18
  123. package/dist/components/rich-tooltip/RichTooltip.js +0 -32
  124. package/dist/context/FormContext.d.ts +0 -16
  125. package/dist/context/FormContext.js +0 -8
  126. package/dist/icons/Add.d.ts +0 -7
  127. package/dist/icons/Add.js +0 -3
  128. package/dist/icons/ArrowDown.d.ts +0 -7
  129. package/dist/icons/ArrowDown.js +0 -3
  130. package/dist/icons/ArrowLeft1.d.ts +0 -7
  131. package/dist/icons/ArrowLeft1.js +0 -3
  132. package/dist/icons/ArrowRight1.d.ts +0 -7
  133. package/dist/icons/ArrowRight1.js +0 -3
  134. package/dist/icons/Calendar.d.ts +0 -7
  135. package/dist/icons/Calendar.js +0 -3
  136. package/dist/icons/CloseCircle.d.ts +0 -7
  137. package/dist/icons/CloseCircle.js +0 -3
  138. package/dist/icons/DocumentDownload.d.ts +0 -7
  139. package/dist/icons/DocumentDownload.js +0 -3
  140. package/dist/icons/Eye.d.ts +0 -7
  141. package/dist/icons/Eye.js +0 -3
  142. package/dist/icons/EyeSlash.d.ts +0 -7
  143. package/dist/icons/EyeSlash.js +0 -3
  144. package/dist/icons/FolderAdd.d.ts +0 -7
  145. package/dist/icons/FolderAdd.js +0 -3
  146. package/dist/icons/InfoCircle.d.ts +0 -7
  147. package/dist/icons/InfoCircle.js +0 -3
  148. package/dist/icons/Tick.d.ts +0 -7
  149. package/dist/icons/Tick.js +0 -3
  150. package/dist/icons/Trash.d.ts +0 -7
  151. package/dist/icons/Trash.js +0 -3
  152. package/dist/icons/Union.d.ts +0 -7
  153. package/dist/icons/Union.js +0 -3
  154. package/dist/icons/Warning2.d.ts +0 -7
  155. package/dist/icons/Warning2.js +0 -3
  156. package/dist/index.d.ts +0 -8
  157. package/dist/index.js +0 -8
  158. package/dist/methods/debounce.d.ts +0 -3
  159. package/dist/methods/debounce.js +0 -20
  160. package/dist/methods/general.d.ts +0 -2
  161. package/dist/methods/general.js +0 -32
  162. package/dist/mui/Alert/Alert.d.ts +0 -2
  163. package/dist/mui/Alert/Alert.js +0 -13
  164. package/dist/mui/AutoComplete/MuiAutoComplete.d.ts +0 -2
  165. package/dist/mui/AutoComplete/MuiAutoComplete.js +0 -27
  166. package/dist/mui/BreadCrumbs/MuiBreadCrumbs.d.ts +0 -2
  167. package/dist/mui/BreadCrumbs/MuiBreadCrumbs.js +0 -31
  168. package/dist/mui/Button/MuiButton.d.ts +0 -7
  169. package/dist/mui/Button/MuiButton.js +0 -185
  170. package/dist/mui/Card/MuiCard.d.ts +0 -2
  171. package/dist/mui/Card/MuiCard.js +0 -7
  172. package/dist/mui/Checkbox/Checkbox.d.ts +0 -2
  173. package/dist/mui/Checkbox/Checkbox.js +0 -31
  174. package/dist/mui/Checkbox/assets/CheckedIcon.d.ts +0 -8
  175. package/dist/mui/Checkbox/assets/CheckedIcon.js +0 -12
  176. package/dist/mui/Checkbox/assets/IntermediateIcon.d.ts +0 -8
  177. package/dist/mui/Checkbox/assets/IntermediateIcon.js +0 -10
  178. package/dist/mui/Checkbox/assets/UnChekedIcon.d.ts +0 -7
  179. package/dist/mui/Checkbox/assets/UnChekedIcon.js +0 -9
  180. package/dist/mui/Chip/MuiChip.d.ts +0 -10
  181. package/dist/mui/Chip/MuiChip.js +0 -35
  182. package/dist/mui/Dialog/MuiDialog.d.ts +0 -7
  183. package/dist/mui/Dialog/MuiDialog.js +0 -22
  184. package/dist/mui/FormControl/MuiFormControlLabel.d.ts +0 -2
  185. package/dist/mui/FormControl/MuiFormControlLabel.js +0 -13
  186. package/dist/mui/IconButton/MuiIconButon.d.ts +0 -2
  187. package/dist/mui/IconButton/MuiIconButon.js +0 -7
  188. package/dist/mui/InputAdornment/MuiInputAdornment.d.ts +0 -2
  189. package/dist/mui/InputAdornment/MuiInputAdornment.js +0 -6
  190. package/dist/mui/InputLabel/MuiInputLabel.d.ts +0 -2
  191. package/dist/mui/InputLabel/MuiInputLabel.js +0 -43
  192. package/dist/mui/Pagination/MuiPagination.d.ts +0 -2
  193. package/dist/mui/Pagination/MuiPagination.js +0 -15
  194. package/dist/mui/Pagination/MuiPaginationItem.d.ts +0 -2
  195. package/dist/mui/Pagination/MuiPaginationItem.js +0 -15
  196. package/dist/mui/Radio/MuiRadio.d.ts +0 -2
  197. package/dist/mui/Radio/MuiRadio.js +0 -17
  198. package/dist/mui/Select/MuiSelect.d.ts +0 -2
  199. package/dist/mui/Select/MuiSelect.js +0 -47
  200. package/dist/mui/Switch/MuiSwitch.d.ts +0 -2
  201. package/dist/mui/Switch/MuiSwitch.js +0 -83
  202. package/dist/mui/Tabs/MuiTabs.d.ts +0 -2
  203. package/dist/mui/Tabs/MuiTabs.js +0 -21
  204. package/dist/mui/Tabs/Tab/MuiTab.d.ts +0 -2
  205. package/dist/mui/Tabs/Tab/MuiTab.js +0 -26
  206. package/dist/mui/TextField/MuiFilledInput.d.ts +0 -2
  207. package/dist/mui/TextField/MuiFilledInput.js +0 -91
  208. package/dist/mui/TextField/MuiOutlinedInput.d.ts +0 -2
  209. package/dist/mui/TextField/MuiOutlinedInput.js +0 -66
  210. package/dist/mui/TextField/TextField.d.ts +0 -2
  211. package/dist/mui/TextField/TextField.js +0 -78
  212. package/dist/mui/Tooltip/MuiTooltip.d.ts +0 -2
  213. package/dist/mui/Tooltip/MuiTooltip.js +0 -26
  214. package/dist/mui/Typography/MuiTypography.d.ts +0 -2
  215. package/dist/mui/Typography/MuiTypography.js +0 -9
  216. package/dist/mui/Typography/index.d.ts +0 -2
  217. package/dist/mui/Typography/index.js +0 -138
  218. package/dist/mui/accordion/MuiAccodrion.d.ts +0 -2
  219. package/dist/mui/accordion/MuiAccodrion.js +0 -13
  220. package/dist/mui/breakpoints/index.d.ts +0 -9
  221. package/dist/mui/breakpoints/index.js +0 -9
  222. package/dist/mui/menu/MuiMenu.d.ts +0 -2
  223. package/dist/mui/menu/MuiMenu.js +0 -8
  224. package/dist/mui/menu/MuiMenuItem.d.ts +0 -2
  225. package/dist/mui/menu/MuiMenuItem.js +0 -14
  226. package/dist/mui/mui-css-baseline/index.d.ts +0 -3
  227. package/dist/mui/mui-css-baseline/index.js +0 -37
  228. package/dist/mui/palette/dark/darkPalette.d.ts +0 -2
  229. package/dist/mui/palette/dark/darkPalette.js +0 -135
  230. package/dist/mui/palette/light/lightPalette.d.ts +0 -2
  231. package/dist/mui/palette/light/lightPalette.js +0 -135
  232. package/dist/nextjs/NextCacheProvider.d.ts +0 -7
  233. package/dist/nextjs/NextCacheProvider.js +0 -13
  234. package/dist/react/ReactCacheProvider.d.ts +0 -7
  235. package/dist/react/ReactCacheProvider.js +0 -15
  236. package/dist/theme/theme.d.ts +0 -3
  237. package/dist/theme/theme.js +0 -75
  238. package/dist/types/palette.d.ts +0 -60
  239. package/dist/types/palette.js +0 -1
  240. package/dist/types/types.d.ts +0 -102
  241. package/dist/types/types.js +0 -4
  242. package/dist/types/typography.d.ts +0 -71
  243. package/dist/types/typography.js +0 -1
@@ -1,183 +0,0 @@
1
- /// <reference types="react" />
2
- export { default as useTable } from './custom-table/components/useTable';
3
- export declare const CustomTable: import("react").FC<import("./custom-table/CustomTable").ICustomTable & {
4
- skeletonWidth?: string | number | undefined;
5
- skeletonHeight?: string | number | undefined;
6
- }>;
7
- export declare const UFUploader: import("react").FC<import("./input-list/type").IUploaderForm & {
8
- form: import("react-hook-form").UseFormReturn<any>;
9
- error: any;
10
- } & {
11
- skeletonWidth?: string | number | undefined;
12
- skeletonHeight?: string | number | undefined;
13
- }>;
14
- export declare const CustomUploader: import("react").FC<import("./custom-uploader/CustomUploader").ICustomUploaderProps & {
15
- skeletonWidth?: string | number | undefined;
16
- skeletonHeight?: string | number | undefined;
17
- }>;
18
- export declare const CustomAutoComplete: import("react").FC<import("./custom-auto-complete-advanced/CustomAutoComplete").CustomAutocompleteAdvancedProps & {
19
- skeletonWidth?: string | number | undefined;
20
- skeletonHeight?: string | number | undefined;
21
- }>;
22
- export declare const CustomBreadcrumbs: import("react").FC<import("./custom-breadcrumbs/CustomBreadcrumbs").ICustomBreadcrumbsProps & {
23
- skeletonWidth?: string | number | undefined;
24
- skeletonHeight?: string | number | undefined;
25
- }>;
26
- export declare const CustomHorizontalCard: import("react").FC<import("./custom-card/types").CustomCardProps & {
27
- skeletonWidth?: string | number | undefined;
28
- skeletonHeight?: string | number | undefined;
29
- }>;
30
- export declare const CustomVerticalCard: import("react").FC<import("./custom-card/types").CustomCardProps & {
31
- skeletonWidth?: string | number | undefined;
32
- skeletonHeight?: string | number | undefined;
33
- }>;
34
- export declare const CustomChip: import("react").FC<import("./custom-chip/CustomChip").ICustomChipProps & {
35
- skeletonWidth?: string | number | undefined;
36
- skeletonHeight?: string | number | undefined;
37
- }>;
38
- export declare const CustomDatePicker: import("react").FC<import("./custom-date-picker/CustomDatePicker").ICustomDatePickerProps & {
39
- skeletonWidth?: string | number | undefined;
40
- skeletonHeight?: string | number | undefined;
41
- }>;
42
- export declare const CustomDatePickerMobile: import("react").FC<import("./input-list/type").IDatePickerMobileForm & {
43
- form: import("react-hook-form").UseFormReturn<any>;
44
- error?: any;
45
- } & {
46
- skeletonWidth?: string | number | undefined;
47
- skeletonHeight?: string | number | undefined;
48
- }>;
49
- export declare const CustomDialog: import("react").FC<import("./custom-dialog/CustomDialog").ICustomDialog & {
50
- skeletonWidth?: string | number | undefined;
51
- skeletonHeight?: string | number | undefined;
52
- }>;
53
- export declare const CustomNumericInput: import("react").FC<import("./custom-input/CustomNumericInput").ICustomNumericInputProps & {
54
- skeletonWidth?: string | number | undefined;
55
- skeletonHeight?: string | number | undefined;
56
- }>;
57
- export declare const CustomModal: import("react").FC<import("./custom-modal/CustomModal").CustomModalProps & {
58
- skeletonWidth?: string | number | undefined;
59
- skeletonHeight?: string | number | undefined;
60
- }>;
61
- export declare const CustomTabs: import("react").FC<import("./custom-tabs/CustomTabs").CustomTabsProps & {
62
- skeletonWidth?: string | number | undefined;
63
- skeletonHeight?: string | number | undefined;
64
- }>;
65
- export declare const UFAutoComplete: import("react").FC<import("./input-list/type").IAutoCompleteForm & {
66
- form: import("react-hook-form").UseFormReturn<any>;
67
- error: any;
68
- } & {
69
- skeletonWidth?: string | number | undefined;
70
- skeletonHeight?: string | number | undefined;
71
- }>;
72
- export declare const UFCheckbox: import("react").FC<import("./input-list/type").ICheckboxForm & {
73
- form: import("react-hook-form").UseFormReturn<any>;
74
- error: any;
75
- } & {
76
- skeletonWidth?: string | number | undefined;
77
- skeletonHeight?: string | number | undefined;
78
- }>;
79
- export declare const UFRadio: import("react").FC<import("./input-list/type").IRadioForm & {
80
- form: import("react-hook-form").UseFormReturn<any>;
81
- error: any;
82
- } & {
83
- skeletonWidth?: string | number | undefined;
84
- skeletonHeight?: string | number | undefined;
85
- }>;
86
- export declare const UFSwitch: import("react").FC<import("./input-list/type").ISwitchForm & {
87
- form: import("react-hook-form").UseFormReturn<any>;
88
- error?: any;
89
- } & {
90
- skeletonWidth?: string | number | undefined;
91
- skeletonHeight?: string | number | undefined;
92
- }>;
93
- export declare const UFCurrency: import("react").FC<import("./input-list/type").ICurrencyForm & {
94
- form: import("react-hook-form").UseFormReturn<any>;
95
- error: any;
96
- } & {
97
- skeletonWidth?: string | number | undefined;
98
- skeletonHeight?: string | number | undefined;
99
- }>;
100
- export declare const UFDatePicker: import("react").FC<import("./input-list/type").IDatePickerForm & {
101
- form: import("react-hook-form").UseFormReturn<any>;
102
- error: any;
103
- } & {
104
- skeletonWidth?: string | number | undefined;
105
- skeletonHeight?: string | number | undefined;
106
- }>;
107
- export declare const UFDatePickerMobile: import("react").FC<import("./input-list/type").IDatePickerMobileForm & {
108
- form: import("react-hook-form").UseFormReturn<any>;
109
- error: any;
110
- } & {
111
- skeletonWidth?: string | number | undefined;
112
- skeletonHeight?: string | number | undefined;
113
- }>;
114
- export declare const UFTime: import("react").FC<import("./input-list/type").ITimeForm & {
115
- form: import("react-hook-form").UseFormReturn<any>;
116
- error: any;
117
- } & {
118
- skeletonWidth?: string | number | undefined;
119
- skeletonHeight?: string | number | undefined;
120
- }>;
121
- export declare const UFMultiSelect: import("react").FC<import("./input-list/type").IMultiSelectForm & {
122
- form: import("react-hook-form").UseFormReturn<any>;
123
- error: any;
124
- } & {
125
- skeletonWidth?: string | number | undefined;
126
- skeletonHeight?: string | number | undefined;
127
- }>;
128
- export declare const UFSelect: import("react").FC<import("./input-list/type").ISelectForm & {
129
- form: import("react-hook-form").UseFormReturn<any>;
130
- error: any;
131
- } & {
132
- skeletonWidth?: string | number | undefined;
133
- skeletonHeight?: string | number | undefined;
134
- }>;
135
- export declare const UFTextArea: import("react").FC<import("./input-list/type").ITextAreaForm & {
136
- form: import("react-hook-form").UseFormReturn<any>;
137
- error: any;
138
- } & {
139
- skeletonWidth?: string | number | undefined;
140
- skeletonHeight?: string | number | undefined;
141
- }>;
142
- export declare const UFTextField: import("react").FC<import("./input-list/type").ITextFieldForm & {
143
- form: import("react-hook-form").UseFormReturn<any>;
144
- error: any;
145
- } & {
146
- skeletonWidth?: string | number | undefined;
147
- skeletonHeight?: string | number | undefined;
148
- }>;
149
- export declare const UFMultiCheckbox: import("react").FC<import("./input-list/type").IMultiCheckboxForm & {
150
- form: import("react-hook-form").UseFormReturn<any>;
151
- error: any;
152
- } & {
153
- skeletonWidth?: string | number | undefined;
154
- skeletonHeight?: string | number | undefined;
155
- }>;
156
- export declare const CheckboxList: import("react").FC<import("./checkbox-list/CheckboxList").CheckboxListProps & {
157
- skeletonWidth?: string | number | undefined;
158
- skeletonHeight?: string | number | undefined;
159
- }>;
160
- export declare const RichTooltip: import("react").FC<import("./rich-tooltip/RichTooltip").IRichTooltipProps & {
161
- skeletonWidth?: string | number | undefined;
162
- skeletonHeight?: string | number | undefined;
163
- }>;
164
- export declare const OTPInput: import("react").FC<import("./otp-input/OTPInput").OTPInputProps & {
165
- skeletonWidth?: string | number | undefined;
166
- skeletonHeight?: string | number | undefined;
167
- }>;
168
- export declare const CustomPagination1: import("react").FC<import("./custom-pagination/custom-pagination-1/CustomPagination1").CustomPagination1Props & {
169
- skeletonWidth?: string | number | undefined;
170
- skeletonHeight?: string | number | undefined;
171
- }>;
172
- export declare const CustomPagination2: import("react").FC<import("./custom-pagination/custom-pagination-2/CustomPagination2").ITableFooterProps & {
173
- skeletonWidth?: string | number | undefined;
174
- skeletonHeight?: string | number | undefined;
175
- }>;
176
- export declare const CustomStepper: import("react").FC<import("./custom-stepper/CustomStepper").ICustomStepper & {
177
- skeletonWidth?: string | number | undefined;
178
- skeletonHeight?: string | number | undefined;
179
- }>;
180
- export declare const Form: import("react").FC<import("./input-list/Form").FormProps & {
181
- skeletonWidth?: string | number | undefined;
182
- skeletonHeight?: string | number | undefined;
183
- }>;
@@ -1,70 +0,0 @@
1
- import CustomTableComponent from './custom-table/CustomTable';
2
- import UFUploaderComponent from './input-list/components/UFUploader';
3
- import CustomUploaderComponent from './custom-uploader/CustomUploader';
4
- import CustomAutoCompleteComponent from './custom-auto-complete-advanced/CustomAutoComplete';
5
- import CustomBreadcrumbsComponent from './custom-breadcrumbs/CustomBreadcrumbs';
6
- import CustomHorizontalCardComponent from './custom-card/CustomHorizontalCard';
7
- import CustomVerticalCardComponent from './custom-card/CustomVerticalCard';
8
- import CustomChipComponent from './custom-chip/CustomChip';
9
- import CustomDatePickerComponent from './custom-date-picker/CustomDatePicker';
10
- import CustomDatePickerMobileComponent from './custom-mobile-date-picker/CustomMobileDatePicker';
11
- import CustomDialogComponent from './custom-dialog/CustomDialog';
12
- import CustomNumericInputComponent from './custom-input/CustomNumericInput';
13
- import CustomModalComponent from './custom-modal/CustomModal';
14
- import CustomTabsComponent from './custom-tabs/CustomTabs';
15
- import UFAutoCompleteComponent from './input-list/components/UFAutoComplete';
16
- import UFCheckboxComponent from './input-list/components/UFCheckbox';
17
- import UFRadioComponent from './input-list/components/UFRadio';
18
- import UFSwitchComponent from './input-list/components/UFSwitch';
19
- import UFCurrencyComponent from './input-list/components/UFCurrency';
20
- import UFDatePickerComponent from './input-list/components/UFDatePicker';
21
- import UFDatePickerMobileComponent from './input-list/components/UFDatePickerMobile';
22
- import UFTimeComponent from './input-list/components/UFTime';
23
- import UFMultiSelectComponent from './input-list/components/UFMultiSelect';
24
- import UFSelectComponent from './input-list/components/UFSelect';
25
- import UFTextAreaComponent from './input-list/components/UFTextArea';
26
- import UFTextFieldComponent from './input-list/components/UFTextField';
27
- import UFMultiCheckboxComponent from './input-list/components/UFMultiCheckbox';
28
- import CheckboxListComponent from './checkbox-list/CheckboxList';
29
- import RichTooltipComponent from './rich-tooltip/RichTooltip';
30
- import OTPInputComponent from './otp-input/OTPInput';
31
- import CustomPagination1Component from './custom-pagination/custom-pagination-1/CustomPagination1';
32
- import CustomPagination2Component from './custom-pagination/custom-pagination-2/CustomPagination2';
33
- import CustomStepperComponent from './custom-stepper/CustomStepper';
34
- import withErrorBoundary from './error boundary/withErrorBoundary';
35
- import FormComponent from './input-list/Form';
36
- export { default as useTable } from './custom-table/components/useTable';
37
- export const CustomTable = withErrorBoundary(CustomTableComponent);
38
- export const UFUploader = withErrorBoundary(UFUploaderComponent);
39
- export const CustomUploader = withErrorBoundary(CustomUploaderComponent);
40
- export const CustomAutoComplete = withErrorBoundary(CustomAutoCompleteComponent);
41
- export const CustomBreadcrumbs = withErrorBoundary(CustomBreadcrumbsComponent);
42
- export const CustomHorizontalCard = withErrorBoundary(CustomHorizontalCardComponent);
43
- export const CustomVerticalCard = withErrorBoundary(CustomVerticalCardComponent);
44
- export const CustomChip = withErrorBoundary(CustomChipComponent);
45
- export const CustomDatePicker = withErrorBoundary(CustomDatePickerComponent);
46
- export const CustomDatePickerMobile = withErrorBoundary(CustomDatePickerMobileComponent);
47
- export const CustomDialog = withErrorBoundary(CustomDialogComponent);
48
- export const CustomNumericInput = withErrorBoundary(CustomNumericInputComponent);
49
- export const CustomModal = withErrorBoundary(CustomModalComponent);
50
- export const CustomTabs = withErrorBoundary(CustomTabsComponent);
51
- export const UFAutoComplete = withErrorBoundary(UFAutoCompleteComponent);
52
- export const UFCheckbox = withErrorBoundary(UFCheckboxComponent);
53
- export const UFRadio = withErrorBoundary(UFRadioComponent);
54
- export const UFSwitch = withErrorBoundary(UFSwitchComponent);
55
- export const UFCurrency = withErrorBoundary(UFCurrencyComponent);
56
- export const UFDatePicker = withErrorBoundary(UFDatePickerComponent);
57
- export const UFDatePickerMobile = withErrorBoundary(UFDatePickerMobileComponent);
58
- export const UFTime = withErrorBoundary(UFTimeComponent);
59
- export const UFMultiSelect = withErrorBoundary(UFMultiSelectComponent);
60
- export const UFSelect = withErrorBoundary(UFSelectComponent);
61
- export const UFTextArea = withErrorBoundary(UFTextAreaComponent);
62
- export const UFTextField = withErrorBoundary(UFTextFieldComponent);
63
- export const UFMultiCheckbox = withErrorBoundary(UFMultiCheckboxComponent);
64
- export const CheckboxList = withErrorBoundary(CheckboxListComponent);
65
- export const RichTooltip = withErrorBoundary(RichTooltipComponent);
66
- export const OTPInput = withErrorBoundary(OTPInputComponent);
67
- export const CustomPagination1 = withErrorBoundary(CustomPagination1Component);
68
- export const CustomPagination2 = withErrorBoundary(CustomPagination2Component);
69
- export const CustomStepper = withErrorBoundary(CustomStepperComponent);
70
- export const Form = withErrorBoundary(FormComponent);
@@ -1,21 +0,0 @@
1
- import { FC } from "react";
2
- import { UseFormReturn } from "react-hook-form";
3
- import { GridProps } from "@mui/material/Grid";
4
- import { TypographyProps } from "@mui/material/Typography";
5
- import { TFormSchema, TInputLabelMode } from "./type";
6
- import { TextFieldProps } from "@mui/material/TextField";
7
- export interface FormProps {
8
- schema: TFormSchema;
9
- form: UseFormReturn<any, any, any>;
10
- gridContainerProps?: GridProps;
11
- gridItemProps?: GridProps;
12
- itemProps?: any;
13
- labelsProps?: Partial<TypographyProps<"label", {}>> | undefined;
14
- hideRequiredStar?: boolean;
15
- inputLabelMode?: TInputLabelMode;
16
- inputVariants?: TextFieldProps["variant"];
17
- withoutHelperText?: boolean;
18
- disabled?: boolean;
19
- }
20
- declare const Form: FC<FormProps>;
21
- export default Form;
@@ -1,19 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { isValidElement } from "react";
3
- //------------------------------------------------------------------------
4
- //@Mui
5
- import Box from "@mui/material/Box";
6
- import Grid from "@mui/material/Grid";
7
- import Stack from "@mui/material/Stack";
8
- import Typography from "@mui/material/Typography";
9
- import UseFormInput from "./UseFormInput";
10
- import { deepMerge, result } from "../../methods/general";
11
- const Form = ({ schema, form, gridItemProps, gridContainerProps, labelsProps, itemProps, hideRequiredStar = false, inputLabelMode = "relative", inputVariants = "outlined", withoutHelperText, disabled, }) => {
12
- console.log('inputLabelMode', inputLabelMode);
13
- return (_jsx(Grid, { container: true, columnSpacing: 4, rowSpacing: 0, rowGap: 2, alignItems: "flex-start", ...gridContainerProps, children: schema?.map((inputProp) => (_jsxs(Grid, { item: true, xs: 4, width: "100%", height: "auto", position: "relative", ...deepMerge(gridItemProps, inputProp.gridItemProp), children: [inputLabelMode === "static" && inputProp.type !== "checkbox" && (_jsx(Box, { display: "flex", children: _jsx(Typography, { flexGrow: 1, width: 0, component: "label", display: "inline-block", mb: 2, htmlFor: inputProp.name, color: result(form?.formState?.errors, `${inputProp.name}`)
14
- ? "error"
15
- : "text.16", noWrap: true, title: !isValidElement(inputProp?.label)
16
- ? inputProp?.label?.toString() || ""
17
- : "", ...deepMerge(labelsProps, inputProp.labelProps), children: _jsxs(Stack, { direction: "row", children: [inputProp.label, inputProp.rules?.required && !hideRequiredStar && (_jsx(Typography, { component: "span", color: "error", fontSize: 12, children: "*" }))] }) }) })), _jsx(UseFormInput, { form: form, itemProps: itemProps, error: result(form?.formState?.errors, `${inputProp.name}`), inputLabelMode: inputLabelMode, inputVariants: inputVariants, withoutHelperText: withoutHelperText, disabled: disabled, ...inputProp })] }, inputProp.name))) }));
18
- };
19
- export default Form;
@@ -1,22 +0,0 @@
1
- import { FC } from 'react';
2
- import { UseFormReturn } from 'react-hook-form';
3
- import { BoxProps } from '@mui/material/Box';
4
- import { GridProps } from '@mui/material/Grid';
5
- import { TypographyProps } from '@mui/material/Typography';
6
- import { IUseFormInput, TInputLabelMode } from './type';
7
- import { TextFieldProps } from '@mui/material/TextField';
8
- export interface InputListWithUseFormProps {
9
- inputList: IUseFormInput[];
10
- form: UseFormReturn<any, any, any>;
11
- gridContainerProps?: GridProps;
12
- gridItemProps?: GridProps;
13
- itemProps?: any;
14
- labelsProps?: Partial<TypographyProps<'label', {}>> | undefined;
15
- errorProps?: BoxProps;
16
- hideRequiredStar?: boolean;
17
- inputLabelMode?: TInputLabelMode;
18
- inputVariants?: TextFieldProps['variant'];
19
- withoutHelperText?: boolean;
20
- }
21
- declare const InputListWithUseForm: FC<InputListWithUseFormProps>;
22
- export default InputListWithUseForm;
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { isValidElement } from 'react';
3
- //@3rd Party
4
- import lodash from 'lodash';
5
- //------------------------------------------------------------------------
6
- //@Mui
7
- import Box from '@mui/material/Box';
8
- import Grid from '@mui/material/Grid';
9
- import Stack from '@mui/material/Stack';
10
- import Typography from '@mui/material/Typography';
11
- import UseFormInput from './UseFormInput';
12
- import { deepMerge } from "../../methods/general";
13
- const InputListWithUseForm = ({ inputList, form, gridItemProps, gridContainerProps, labelsProps, errorProps, itemProps, hideRequiredStar = false, inputLabelMode = 'static', inputVariants = 'outlined', withoutHelperText, }) => {
14
- return (_jsx(Grid, { container: true, columnSpacing: 4, rowSpacing: 0, rowGap: 2, alignItems: 'flex-start', ...gridContainerProps, children: inputList?.map((inputProp) => (_jsxs(Grid, { item: true, width: '100%', position: 'relative', height: '100%', xs: 4, ...deepMerge(gridItemProps, inputProp.gridItemProp), children: [inputLabelMode === 'static' &&
15
- inputProp.type !== 'checkbox' &&
16
- inputProp.type !== 'switch' && (_jsx(Box, { display: 'flex', children: _jsx(Typography, { variant: 'caption3', flexGrow: 1, width: 0, component: 'label', display: 'inline-block', mb: 2, htmlFor: inputProp.name, color: lodash.result(form?.formState?.errors, `${inputProp.name}`)
17
- ? 'error'
18
- : 'text.16', noWrap: true, title: !isValidElement(inputProp?.label)
19
- ? inputProp?.label?.toString() || ''
20
- : '', ...labelsProps, ...inputProp.labelProps, children: _jsxs(Stack, { direction: 'row', children: [inputProp.label, inputProp.rules?.required && !hideRequiredStar && (_jsx(Typography, { variant: 'caption3.bold', component: 'span', color: 'error', fontSize: 12, children: "*" }))] }) }) })), _jsx(UseFormInput, { ...inputProp, form: form, itemProps: itemProps, error: lodash.result(form?.formState?.errors, `${inputProp.name}`), inputLabelMode: inputLabelMode, inputVariants: inputVariants, withoutHelperText: withoutHelperText || inputProp.withoutHelperText })] }, inputProp.name))) }));
21
- };
22
- export default InputListWithUseForm;
@@ -1,11 +0,0 @@
1
- import { FC } from 'react';
2
- import { UseFormReturn } from 'react-hook-form';
3
- import { TSchema } from './type';
4
- import { TextFieldProps } from '@mui/material/TextField';
5
- type IUseFormInputProps = TSchema & {
6
- form: UseFormReturn<any>;
7
- error?: any;
8
- inputVariants?: TextFieldProps['variant'];
9
- };
10
- declare const UseFormInput: FC<IUseFormInputProps>;
11
- export default UseFormInput;
@@ -1,50 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- //----------------------------------------------------------------------------------------------
3
- // @Components
4
- import { UFTextField } from '../index';
5
- import { UFSelect } from '../index';
6
- import { UFCheckbox } from '../index';
7
- import { UFDatePicker } from '../index';
8
- import { UFDatePickerMobile } from '../index';
9
- import { UFTextArea } from '../index';
10
- import { UFCurrency } from '../index';
11
- import { UFMultiSelect } from '../index';
12
- import { UFAutoComplete } from '../index';
13
- import { UFRadio } from '../index';
14
- import { UFSwitch } from '../index';
15
- import { UFMultiCheckbox } from '../index';
16
- import { UFUploader } from '../index';
17
- import { UFTime } from '../index';
18
- const UseFormInput = ({ form, error, inputVariants, type, ...inputFormProps }) => {
19
- switch (type) {
20
- case 'radio':
21
- return (_jsx(UFRadio, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
22
- case 'switch':
23
- return (_jsx(UFSwitch, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
24
- case 'select':
25
- return (_jsx(UFSelect, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
26
- case 'multi-select':
27
- return (_jsx(UFMultiSelect, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
28
- case 'auto-complete':
29
- return (_jsx(UFAutoComplete, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
30
- case 'checkbox':
31
- return (_jsx(UFCheckbox, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
32
- case 'date-picker':
33
- return (_jsx(UFDatePicker, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
34
- case 'date-picker-mobile':
35
- return (_jsx(UFDatePickerMobile, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
36
- case 'time':
37
- return (_jsx(UFTime, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
38
- case 'text-area':
39
- return (_jsx(UFTextArea, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
40
- case 'currency':
41
- return (_jsx(UFCurrency, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
42
- case 'multi-checkbox':
43
- return (_jsx(UFMultiCheckbox, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
44
- case 'uploader':
45
- return (_jsx(UFUploader, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
46
- default:
47
- return (_jsx(UFTextField, { ...inputFormProps, form: form, error: error, type: type, variant: inputFormProps.variant ?? inputVariants }));
48
- }
49
- };
50
- export default UseFormInput;
@@ -1,19 +0,0 @@
1
- import { FC } from 'react';
2
- import { CheckboxProps, StackProps } from '@mui/material';
3
- import { FormControlLabelProps } from '@mui/material/FormControlLabel';
4
- import { IFormOption } from '../type';
5
- export interface ICheckboxValue {
6
- label: string;
7
- value: string | number;
8
- }
9
- export interface CheckboxListProps {
10
- options: IFormOption[];
11
- value?: ICheckboxValue[];
12
- onChange: (values: ICheckboxValue[]) => void;
13
- multiple?: boolean;
14
- stackProps?: StackProps;
15
- checkboxProps?: CheckboxProps;
16
- formControlLabelProps?: Omit<FormControlLabelProps, 'label' | 'control'>;
17
- }
18
- declare const CheckboxList: FC<CheckboxListProps>;
19
- export default CheckboxList;
@@ -1,30 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { FormControlLabel, Stack, } from '@mui/material';
3
- import Checkbox from '@mui/material/Checkbox';
4
- const CheckboxList = ({ options = [], value = [], onChange, multiple, checkboxProps, stackProps, formControlLabelProps, }) => {
5
- // console.log('values', values)
6
- const handleChange = (event, changedValue) => {
7
- const newValues = [...value];
8
- if (multiple) {
9
- if (event.target.checked) {
10
- newValues.push(changedValue);
11
- onChange(newValues);
12
- }
13
- else {
14
- const index = newValues.findIndex((v) => v.value === changedValue.value);
15
- newValues.splice(index, 1);
16
- onChange(newValues);
17
- }
18
- }
19
- else {
20
- if (event.target.checked) {
21
- onChange([changedValue]);
22
- }
23
- else {
24
- onChange([]);
25
- }
26
- }
27
- };
28
- return (_jsx(Stack, { ...stackProps, children: options.map((option) => (_jsx(FormControlLabel, { control: _jsx(Checkbox, { ...checkboxProps, checked: value?.findIndex((v) => v.value === option.value) > -1, onChange: (e) => handleChange(e, option) }), label: option.label, slotProps: { typography: option?.labelProp }, ...formControlLabelProps }, option.value))) }));
29
- };
30
- export default CheckboxList;
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- import { UseFormReturn } from 'react-hook-form';
3
- import { IAutoCompleteForm } from '../type';
4
- type Props = IAutoCompleteForm & {
5
- form: UseFormReturn<any>;
6
- error: any;
7
- };
8
- declare const UFAutoComplete: FC<Props>;
9
- export default UFAutoComplete;
@@ -1,41 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Controller } from 'react-hook-form';
3
- import CustomAutoComplete from "../../custom-auto-complete/CustomAutoComplete";
4
- import { deepMerge } from "../../../methods/general";
5
- import { useFormContext } from "../../../context/FormContext";
6
- const UFAutoComplete = ({ form, label, error, placeholder, rules, disabled, name, options, defaultValue, readonly, props, helperText, isLoading = false, inputLabelMode, variant, itemProps, onReachEnd }) => {
7
- const { theme } = useFormContext();
8
- // Convert defaultValue if it's an array of strings
9
- const convertDefaultValue = (defaultValue, options) => {
10
- // Check if options are undefined or null, return an empty array or default value
11
- if (!options || !Array.isArray(options)) {
12
- return []; // or some other default value
13
- }
14
- // Convert value to corresponding object with label and value
15
- if (Array.isArray(defaultValue)) {
16
- return defaultValue.map(val => {
17
- const matchedOption = options.find(option => option.value === val);
18
- return matchedOption ? matchedOption : null;
19
- }).filter(Boolean);
20
- }
21
- else {
22
- const matchedOption = options.find(option => option.value === defaultValue);
23
- return matchedOption ? matchedOption : null;
24
- }
25
- };
26
- return (_jsx(Controller, { control: form?.control, name: name, rules: { ...rules }, defaultValue: convertDefaultValue(defaultValue, options), render: ({ field }) => (_jsx(CustomAutoComplete, { ...field, label: label, hideLabel: true, placeholder: typeof label === "string" ? label : placeholder, inputLabelMode: inputLabelMode, helperText: error?.message ?? helperText, options: options || [], selectedOptions: field.value, value: convertDefaultValue(field?.value, options), sx: { width: '100%' }, inputMaxHeight: '120px', limitTags: 2, validation: { isInvalid: !!error, message: error?.message }, disabled: disabled, id: name, readOnly: readonly, variant: variant, isLoading: isLoading, isOptionEqualToValue: (option, value) => {
27
- return option?.value === value?.value;
28
- }, onReachEnd: onReachEnd, onChange: (_, newValue) => {
29
- const isMultiple = Array.isArray(newValue);
30
- if (isMultiple) {
31
- // Handle multiple selection
32
- const valuesArray = newValue.map(item => item.value);
33
- field.onChange(valuesArray);
34
- }
35
- else {
36
- // Handle single selection
37
- field.onChange(newValue ? newValue.value : "");
38
- }
39
- }, ...deepMerge(theme?.autoComplete?.autoCompleteProps, itemProps, props) })) }));
40
- };
41
- export default UFAutoComplete;
@@ -1,19 +0,0 @@
1
- import { FC } from "react";
2
- import { ICheckboxForm } from "../type";
3
- import { CheckboxProps } from "@mui/material";
4
- import { UseFormReturn } from "react-hook-form";
5
- import { SwitchBaseProps } from "@mui/material/internal/SwitchBase";
6
- import { TypographyProps } from "@mui/material/Typography";
7
- export interface ICustomCheckboxProps {
8
- inputProps: SwitchBaseProps["inputProps"];
9
- slotProps: {
10
- typography?: TypographyProps;
11
- };
12
- checkBoxProps: CheckboxProps;
13
- }
14
- type Props = ICheckboxForm & {
15
- form: UseFormReturn<any>;
16
- error: any;
17
- };
18
- declare const UFCheckbox: FC<Props>;
19
- export default UFCheckbox;
@@ -1,21 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import Checkbox from "@mui/material/Checkbox";
3
- import FormControl from "@mui/material/FormControl";
4
- import { Controller } from "react-hook-form";
5
- import FormControlLabel from "@mui/material/FormControlLabel";
6
- import Typography from "@mui/material/Typography";
7
- import { useFormContext } from "../../../context/FormContext";
8
- import { deepMerge } from "../../../methods/general";
9
- const UFCheckbox = ({ form, name, label, rules, error, helperText, withoutHelperText, props, disabled, itemProps, formControlLabelProps, }) => {
10
- const { theme } = useFormContext();
11
- return (_jsx(Controller, { control: form?.control, name: name, rules: { ...rules }, render: ({ field: { onChange, name, value = false } }) => (_jsxs(FormControl, { sx: { display: "flex", ...(disabled && { filter: "contrast(0.3)" }) }, children: [_jsx(FormControlLabel, { slotProps: {
12
- typography: {
13
- ...props?.slotProps?.typography,
14
- },
15
- }, control: _jsx(Checkbox, { color: "primary", checked: value, onChange: onChange, disabled: disabled, name: name, ...deepMerge(theme?.checkbox?.checkboxProps, itemProps, props) }), label: label, ...deepMerge(theme?.checkbox?.formControlLabelProps, formControlLabelProps) }), !withoutHelperText && (_jsx(Typography, { sx: {
16
- height: 23,
17
- width: "max-content",
18
- color: error ? "error.4" : "text.primary",
19
- }, children: error?.message ?? helperText ?? " " }))] })) }));
20
- };
21
- export default UFCheckbox;
@@ -1,9 +0,0 @@
1
- import { FC } from "react";
2
- import { UseFormReturn } from "react-hook-form";
3
- import { ICurrencyForm } from "../type";
4
- type Props = ICurrencyForm & {
5
- form: UseFormReturn<any>;
6
- error: any;
7
- };
8
- declare const UfCurrency: FC<Props>;
9
- export default UfCurrency;
@@ -1,47 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Controller } from "react-hook-form";
3
- import CustomNumericInput from "../../custom-input/CustomNumericInput";
4
- import { useTheme } from "@mui/material";
5
- import Typography from "@mui/material/Typography";
6
- import { useFormContext } from "../../../context/FormContext";
7
- import { deepMerge } from "../../../methods/general";
8
- const UfCurrency = ({ form, name, defaultValue, rules, readonly, disabled, placeholder, error, itemProps, props, helperText, withoutHelperText, variant, currencyIcon = _jsx(Typography, { children: "\u062A\u0648\u0645\u0627\u0646" }), inputLabelMode, label, }) => {
9
- const { theme } = useFormContext();
10
- const { direction } = useTheme();
11
- const currencyMergedProps = deepMerge(theme?.currency?.currencyProps, itemProps, props);
12
- return (_jsx(Controller, { control: form?.control, name: name, rules: { ...rules }, defaultValue: defaultValue, render: ({ field: { onChange, name, value, onBlur } }) => (_jsx(CustomNumericInput, { value: value, onChange: (value) => {
13
- onChange({
14
- target: { value: value },
15
- });
16
- }, onBlur: onBlur, fullWidth: true, id: name, error: !!error, placeholder: placeholder, disabled: disabled, variant: variant, ...(inputLabelMode === "static" && { hiddenLabel: true }), ...(inputLabelMode === "relative" && { label: label }), helperText: withoutHelperText ? undefined : error?.message ?? helperText ?? " ", "aria-readonly": readonly, inputProps: { readOnly: readonly }, ...currencyMergedProps, sx: {
17
- ".MuiInputBase-root": {
18
- px: (theme) => theme.spacing(2),
19
- },
20
- ...(direction === "rtl"
21
- ? {
22
- ".MuiFilledInput-input": {
23
- py: "16px !important",
24
- textAlign: "right !important",
25
- pr: "3px !important",
26
- },
27
- }
28
- : {
29
- ".MuiFilledInput-input": {
30
- pl: "3px !important",
31
- },
32
- }),
33
- backgroundColor: readonly ? "background.paper" : "unset",
34
- borderRadius: "8px",
35
- pointerEvents: readonly ? "none" : "unset",
36
- "& .MuiOutlinedInput-input": {
37
- backgroundColor: readonly ? "background.paper" : "unset",
38
- color: readonly ? "text.secondary" : "unset",
39
- },
40
- ...currencyMergedProps.sx
41
- }, InputProps: {
42
- sx: { gap: 2 },
43
- endAdornment: props?.currencyIcon ?? currencyIcon,
44
- ...currencyMergedProps.InputProps
45
- } })) }));
46
- };
47
- export default UfCurrency;
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- import { IDatePickerForm } from '../type';
3
- import { UseFormReturn } from 'react-hook-form';
4
- type Props = IDatePickerForm & {
5
- form: UseFormReturn<any>;
6
- error: any;
7
- };
8
- declare const UFDatePicker: FC<Props>;
9
- export default UFDatePicker;