@m4l/components 0.1.18 → 0.1.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.
Files changed (129) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.7e947996.js → index.3775989f.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.63405f6c.js → index.d69d9e0f.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.bac90f39.js → index.ca7b6952.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.6b25caed.js → index.a908e4b9.js} +170 -171
  5. package/components/DataGrid/{index.091572bf.js → index.5cbf0dd8.js} +3 -3
  6. package/components/DynamicFilter/{index.7efecd5d.js → index.8a571617.js} +80 -82
  7. package/components/HelmetPage/index.d.ts +6 -0
  8. package/components/{Page → HelmetPage}/types.d.ts +2 -2
  9. package/components/Icon/{index.cbca79b0.js → index.f569765b.js} +41 -29
  10. package/components/Icon/types.d.ts +1 -0
  11. package/components/Image/index.c9da2d5a.js +152 -0
  12. package/components/Image/index.d.ts +2 -2
  13. package/components/Image/styles.d.ts +2 -4
  14. package/components/Image/subcomponents/BasicIntersectComponent/index.d.ts +3 -0
  15. package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +3 -0
  16. package/components/Image/subcomponents/Skeleton/index.d.ts +3 -0
  17. package/components/Image/subcomponents/Skeleton/styles.d.ts +2 -0
  18. package/components/Image/subcomponents/Skeleton/types.d.ts +4 -0
  19. package/components/Image/types.d.ts +30 -15
  20. package/components/Image/utils/isIntersectionObserverAvailable.d.ts +1 -0
  21. package/components/LanguagePopover/styles.d.ts +1 -1
  22. package/components/ModalDialog/{index.0ddffae6.js → index.16024a4e.js} +3 -3
  23. package/components/NoItemSelected/{index.12f0ca67.js → index.9609a7f7.js} +1 -1
  24. package/components/NoItemSelected/styles.d.ts +1 -1
  25. package/components/ObjectLogs/{index.64f06b3d.js → index.ac2bfa48.js} +5 -5
  26. package/components/Page/index.fc660ee5.js +27 -0
  27. package/components/PaperForm/{index.d7c74064.js → index.3f8c7ef2.js} +1 -1
  28. package/components/Period/{index.8423f865.js → index.497b8df4.js} +7 -8
  29. package/components/animate/IconButtonAnimate/index.d.ts +1 -1
  30. package/components/animate/features.d.ts +2 -0
  31. package/components/animate/variants/bounce.d.ts +10 -10
  32. package/components/animate/variants/container.d.ts +1 -1
  33. package/components/animate/variants/fade.d.ts +21 -21
  34. package/components/animate/variants/transition.d.ts +6 -6
  35. package/components/{hook-form/FormProvider/index.936cbb98.js → contexts/RHFormContext/index.f8241292.js} +17 -16
  36. package/components/formatters/BooleanFormatter/{index.cca53b7f.js → index.3ec56305.js} +1 -1
  37. package/components/formatters/DateFormatter/{index.ad8d9b8e.js → index.08d8823b.js} +1 -1
  38. package/components/formatters/{index.55856d65.js → index.6959c2de.js} +1 -1
  39. package/components/hook-form/RHFAutocomplete/index.b7f11146.js +146 -0
  40. package/components/hook-form/RHFAutocomplete/index.d.ts +1 -2
  41. package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -1
  42. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +3 -0
  43. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +2 -0
  44. package/components/hook-form/RHFAutocomplete/types.d.ts +13 -7
  45. package/components/hook-form/RHFAutocompleteAsync/index.97a5a66e.js +51 -0
  46. package/components/hook-form/RHFAutocompleteAsync/index.d.ts +1 -2
  47. package/components/hook-form/RHFAutocompleteAsync/types.d.ts +3 -11
  48. package/components/hook-form/RHFCheckbox/index.6a40e25f.js +55 -0
  49. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/index.d.ts +2 -0
  50. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +2 -0
  51. package/components/hook-form/RHFDateTime/{index.fc5cbafe.js → index.5ed774e3.js} +24 -26
  52. package/components/hook-form/RHFDateTime/types.d.ts +2 -5
  53. package/components/hook-form/RHFPeriod/{index.0b982ae8.js → index.e17b1c72.js} +1 -1
  54. package/components/hook-form/RHFTextField/index.bab2a2cf.js +113 -0
  55. package/components/hook-form/RHFTextField/index.d.ts +1 -1
  56. package/components/hook-form/RHFTextField/subcomponents/Skeleton/index.d.ts +3 -0
  57. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +2 -0
  58. package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +4 -0
  59. package/components/hook-form/RHFTextField/types.d.ts +2 -5
  60. package/components/hook-form/RHFTextFieldPassword/index.d.ts +3 -0
  61. package/components/hook-form/RHFTextFieldPassword/types.d.ts +4 -0
  62. package/components/hook-form/RHFUpload/{index.ed3d739f.js → index.cbf11b68.js} +31 -36
  63. package/components/hook-form/index.d.ts +1 -2
  64. package/components/index.d.ts +2 -3
  65. package/components/mui_extended/Accordion/{index.2116e423.js → index.49f5df8e.js} +2 -2
  66. package/components/mui_extended/Avatar/index.d.ts +1 -1
  67. package/components/mui_extended/Avatar/index.dadb0528.js +37 -0
  68. package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +2 -0
  69. package/components/mui_extended/Button/index.16591787.js +144 -0
  70. package/components/mui_extended/IconButton/index.4b5ce8b5.js +103 -0
  71. package/components/mui_extended/IconButton/index.d.ts +1 -1
  72. package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +2 -0
  73. package/components/mui_extended/ImageButton/index.d.ts +3 -0
  74. package/components/mui_extended/ImageButton/types.d.ts +7 -0
  75. package/components/mui_extended/LinkWithRoute/index.16436ab8.js +26 -0
  76. package/components/mui_extended/LinkWithRoute/types.d.ts +2 -6
  77. package/components/mui_extended/LoadingButton/subcomponents/Skeleton/index.d.ts +2 -0
  78. package/components/mui_extended/LoadingButton/subcomponents/Skeleton/styles.d.ts +2 -0
  79. package/components/mui_extended/LoadingButton/types.d.ts +2 -2
  80. package/components/mui_extended/MenuActions/styles.d.ts +2 -2
  81. package/components/mui_extended/MenuActions/types.d.ts +2 -2
  82. package/components/mui_extended/Pager/{index.f0911163.js → index.80c2f8a0.js} +1 -1
  83. package/components/mui_extended/Popover/index.305f2ea5.js +218 -0
  84. package/components/mui_extended/Popover/index.d.ts +4 -0
  85. package/components/mui_extended/Popover/types.d.ts +9 -0
  86. package/components/mui_extended/Typography/index.e5494696.js +31 -0
  87. package/components/mui_extended/Typography/subcomponents/index.d.ts +3 -0
  88. package/components/mui_extended/Typography/subcomponents/types.d.ts +2 -0
  89. package/components/mui_extended/Typography/types.d.ts +3 -5
  90. package/components/mui_extended/index.d.ts +1 -1
  91. package/contexts/ModalContext/{index.1688a07c.js → index.699767c7.js} +3 -3
  92. package/contexts/RHFormContext/index.d.ts +3 -0
  93. package/{components/hook-form/FormProvider → contexts/RHFormContext}/styles.d.ts +0 -0
  94. package/{components/hook-form/FormProvider → contexts/RHFormContext}/types.d.ts +0 -0
  95. package/contexts/index.d.ts +2 -0
  96. package/hooks/useFormAddEdit/index.d.ts +1 -1
  97. package/hooks/useFormAddEdit/types.d.ts +1 -1
  98. package/hooks/useModal/{index.cdd84702.js → index.8201ccec.js} +1 -1
  99. package/index.js +148 -151
  100. package/package.json +3 -1
  101. package/utils/index.d.ts +1 -1
  102. package/components/CompanyLogo/index.d.ts +0 -3
  103. package/components/CompanyLogo/index.f81c179c.js +0 -75
  104. package/components/CompanyLogo/styles.d.ts +0 -5
  105. package/components/CompanyLogo/types.d.ts +0 -6
  106. package/components/Image/index.e790b50b.js +0 -122
  107. package/components/LanguagePopover/index.15f7dea7.js +0 -87
  108. package/components/Page/index.6d69977e.js +0 -35
  109. package/components/Page/index.d.ts +0 -3
  110. package/components/hook-form/FormProvider/index.d.ts +0 -3
  111. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
  112. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
  113. package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -4
  114. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
  115. package/components/hook-form/RHFCheckbox/styles.d.ts +0 -13
  116. package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
  117. package/components/hook-form/RHFTextField/styles.d.ts +0 -2
  118. package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
  119. package/components/mui_extended/Button/index.3debb608.js +0 -110
  120. package/components/mui_extended/Button/styles.d.ts +0 -12
  121. package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
  122. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
  123. package/components/mui_extended/LoadingButton/skeleton.d.ts +0 -2
  124. package/components/mui_extended/LoadingButton/styles.d.ts +0 -2
  125. package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
  126. package/components/mui_extended/MenuPopover/index.d.ts +0 -4
  127. package/components/mui_extended/MenuPopover/types.d.ts +0 -9
  128. package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
  129. package/react-lazy-load-image-component.45b56650.js +0 -784
@@ -1,5 +1,5 @@
1
1
  import { VariantsType } from '../type';
2
- export declare const varFade: (props?: VariantsType) => {
2
+ export declare const varFade: (props?: VariantsType | undefined) => {
3
3
  in: {
4
4
  initial: {
5
5
  opacity: number;
@@ -8,14 +8,14 @@ export declare const varFade: (props?: VariantsType) => {
8
8
  opacity: number;
9
9
  transition: (props?: import("../type").TranEnterType | undefined) => {
10
10
  duration: number;
11
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
11
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
12
12
  };
13
13
  };
14
14
  exit: {
15
15
  opacity: number;
16
16
  transition: (props?: import("../type").TranExitType | undefined) => {
17
17
  duration: number;
18
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
18
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
19
19
  };
20
20
  };
21
21
  };
@@ -29,7 +29,7 @@ export declare const varFade: (props?: VariantsType) => {
29
29
  opacity: number;
30
30
  transition: {
31
31
  duration: number;
32
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
32
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
33
33
  };
34
34
  };
35
35
  exit: {
@@ -37,7 +37,7 @@ export declare const varFade: (props?: VariantsType) => {
37
37
  opacity: number;
38
38
  transition: {
39
39
  duration: number;
40
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
40
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
41
41
  };
42
42
  };
43
43
  };
@@ -51,7 +51,7 @@ export declare const varFade: (props?: VariantsType) => {
51
51
  opacity: number;
52
52
  transition: {
53
53
  duration: number;
54
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
54
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
55
55
  };
56
56
  };
57
57
  exit: {
@@ -59,7 +59,7 @@ export declare const varFade: (props?: VariantsType) => {
59
59
  opacity: number;
60
60
  transition: {
61
61
  duration: number;
62
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
62
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
63
63
  };
64
64
  };
65
65
  };
@@ -73,7 +73,7 @@ export declare const varFade: (props?: VariantsType) => {
73
73
  opacity: number;
74
74
  transition: {
75
75
  duration: number;
76
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
76
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
77
77
  };
78
78
  };
79
79
  exit: {
@@ -81,7 +81,7 @@ export declare const varFade: (props?: VariantsType) => {
81
81
  opacity: number;
82
82
  transition: {
83
83
  duration: number;
84
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
84
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
85
85
  };
86
86
  };
87
87
  };
@@ -95,7 +95,7 @@ export declare const varFade: (props?: VariantsType) => {
95
95
  opacity: number;
96
96
  transition: {
97
97
  duration: number;
98
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
98
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
99
99
  };
100
100
  };
101
101
  exit: {
@@ -103,7 +103,7 @@ export declare const varFade: (props?: VariantsType) => {
103
103
  opacity: number;
104
104
  transition: {
105
105
  duration: number;
106
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
106
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
107
107
  };
108
108
  };
109
109
  };
@@ -115,14 +115,14 @@ export declare const varFade: (props?: VariantsType) => {
115
115
  opacity: number;
116
116
  transition: {
117
117
  duration: number;
118
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
118
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
119
119
  };
120
120
  };
121
121
  exit: {
122
122
  opacity: number;
123
123
  transition: {
124
124
  duration: number;
125
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
125
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
126
126
  };
127
127
  };
128
128
  };
@@ -136,7 +136,7 @@ export declare const varFade: (props?: VariantsType) => {
136
136
  opacity: number;
137
137
  transition: {
138
138
  duration: number;
139
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
139
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
140
140
  };
141
141
  };
142
142
  exit: {
@@ -144,7 +144,7 @@ export declare const varFade: (props?: VariantsType) => {
144
144
  opacity: number;
145
145
  transition: {
146
146
  duration: number;
147
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
147
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
148
148
  };
149
149
  };
150
150
  };
@@ -158,7 +158,7 @@ export declare const varFade: (props?: VariantsType) => {
158
158
  opacity: number;
159
159
  transition: {
160
160
  duration: number;
161
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
161
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
162
162
  };
163
163
  };
164
164
  exit: {
@@ -166,7 +166,7 @@ export declare const varFade: (props?: VariantsType) => {
166
166
  opacity: number;
167
167
  transition: {
168
168
  duration: number;
169
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
169
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
170
170
  };
171
171
  };
172
172
  };
@@ -180,7 +180,7 @@ export declare const varFade: (props?: VariantsType) => {
180
180
  opacity: number;
181
181
  transition: {
182
182
  duration: number;
183
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
183
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
184
184
  };
185
185
  };
186
186
  exit: {
@@ -188,7 +188,7 @@ export declare const varFade: (props?: VariantsType) => {
188
188
  opacity: number;
189
189
  transition: {
190
190
  duration: number;
191
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
191
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
192
192
  };
193
193
  };
194
194
  };
@@ -202,7 +202,7 @@ export declare const varFade: (props?: VariantsType) => {
202
202
  opacity: number;
203
203
  transition: {
204
204
  duration: number;
205
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
205
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
206
206
  };
207
207
  };
208
208
  exit: {
@@ -210,7 +210,7 @@ export declare const varFade: (props?: VariantsType) => {
210
210
  opacity: number;
211
211
  transition: {
212
212
  duration: number;
213
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
213
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
214
214
  };
215
215
  };
216
216
  };
@@ -1,13 +1,13 @@
1
1
  import { TranHoverType, TranEnterType, TranExitType } from '../type';
2
- export declare const varTranHover: (props?: TranHoverType) => {
2
+ export declare const varTranHover: (props?: TranHoverType | undefined) => {
3
3
  duration: number;
4
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
4
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
5
5
  };
6
- export declare const varTranEnter: (props?: TranEnterType) => {
6
+ export declare const varTranEnter: (props?: TranEnterType | undefined) => {
7
7
  duration: number;
8
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
8
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
9
9
  };
10
- export declare const varTranExit: (props?: TranExitType) => {
10
+ export declare const varTranExit: (props?: TranExitType | undefined) => {
11
11
  duration: number;
12
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
12
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
13
13
  };
@@ -1,19 +1,20 @@
1
- import { useEffect as l } from "react";
1
+ import { useEffect as t } from "react";
2
2
  import { useForm as f, FormProvider as m } from "react-hook-form";
3
- import { o as c } from "../../../node_modules.168cb897.js";
4
- import { styled as n } from "@mui/material/styles";
5
- import { jsx as a } from "react/jsx-runtime";
6
- const h = n("form")(({
3
+ import { o as n } from "../../../node_modules.168cb897.js";
4
+ import { styled as c } from "@mui/material/styles";
5
+ import { jsx as l } from "react/jsx-runtime";
6
+ const h = c("form")(({
7
7
  theme: e
8
8
  }) => ({
9
9
  display: "flex",
10
10
  marginBottom: e.spacing(1),
11
11
  flexDirection: "column",
12
12
  width: "100%",
13
- overflow: "scroll",
14
- maxWidth: e.stretch ? "unset" : "900px"
13
+ overflow: "auto",
14
+ maxWidth: e.stretch ? "unset" : "900px",
15
+ padding: e.spacing(3)
15
16
  }));
16
- function V(e) {
17
+ function P(e) {
17
18
  const {
18
19
  children: d,
19
20
  onSubmit: i,
@@ -21,13 +22,13 @@ function V(e) {
21
22
  validationSchema: u,
22
23
  statusLoad: o = "ready"
23
24
  } = e, r = f({
24
- resolver: c(u),
25
+ resolver: n(u),
25
26
  defaultValues: s
26
27
  });
27
- return l(() => {
28
+ return t(() => {
28
29
  if (console.log("useEffect FormProvider reload_values_provider===", o), o === "reload_values_provider") {
29
- Object.keys(s).forEach((t) => {
30
- r.setValue(t, s[t], {
30
+ Object.keys(s).forEach((a) => {
31
+ r.setValue(a, s[a], {
31
32
  shouldValidate: !1,
32
33
  shouldDirty: !1,
33
34
  shouldTouch: !1
@@ -35,15 +36,15 @@ function V(e) {
35
36
  });
36
37
  return;
37
38
  }
38
- }, [r, o, s]), l(() => {
39
+ }, [r, o, s]), t(() => {
39
40
  o === "ready" && (console.log("useEffect FormProvider Ready", o), r.setValue("statusLoad", "ready", {
40
41
  shouldValidate: !1,
41
42
  shouldDirty: !1,
42
43
  shouldTouch: !1
43
44
  }));
44
- }, [o]), /* @__PURE__ */ a(m, {
45
+ }, [o]), /* @__PURE__ */ l(m, {
45
46
  ...r,
46
- children: /* @__PURE__ */ a(h, {
47
+ children: /* @__PURE__ */ l(h, {
47
48
  id: "formProvider",
48
49
  onSubmit: r.handleSubmit(i),
49
50
  children: d
@@ -51,5 +52,5 @@ function V(e) {
51
52
  });
52
53
  }
53
54
  export {
54
- V as F
55
+ P as R
55
56
  };
@@ -1,6 +1,6 @@
1
1
  import { useModuleDictionary as u, useEnvironment as _, getPropertyByString as p } from "@m4l/core";
2
2
  import l from "react";
3
- import { I as d } from "../../Icon/index.cbca79b0.js";
3
+ import { I as d } from "../../Icon/index.f569765b.js";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  function g(r) {
6
6
  const {
@@ -1,6 +1,6 @@
1
1
  import c from "react";
2
2
  import { useEnvironment as p, useHostTools as u, getPropertyByString as d } from "@m4l/core";
3
- import "../../Icon/index.cbca79b0.js";
3
+ import "../../Icon/index.f569765b.js";
4
4
  import "@mui/material/styles";
5
5
  import { jsx as f, Fragment as y } from "react/jsx-runtime";
6
6
  function g(a) {
@@ -1,7 +1,7 @@
1
1
  import l from "react";
2
2
  import { jsx as m, Fragment as u } from "react/jsx-runtime";
3
3
  import { getPropertyByString as i } from "@m4l/core";
4
- import "../Icon/index.cbca79b0.js";
4
+ import "../Icon/index.f569765b.js";
5
5
  import "@mui/material/styles";
6
6
  function _(e) {
7
7
  const {
@@ -0,0 +1,146 @@
1
+ import { useModuleDictionary as F, useModuleSkeleton as H } from "@m4l/core";
2
+ import { useFormContext as M, Controller as $ } from "react-hook-form";
3
+ import { Skeleton as O, Autocomplete as q, TextField as E } from "@mui/material";
4
+ import { styled as l } from "@mui/material/styles";
5
+ import { I as w } from "../../Image/index.c9da2d5a.js";
6
+ import { useMemo as V } from "react";
7
+ import { jsxs as T, jsx as i } from "react/jsx-runtime";
8
+ const j = l("div")(() => ({
9
+ display: "flex",
10
+ width: "100%",
11
+ flexDirection: "column"
12
+ })), D = l("div")(({
13
+ theme: e
14
+ }) => ({
15
+ width: "100%",
16
+ display: "grid",
17
+ gridTemplateColumns: "1fr auto",
18
+ gridGap: e.spacing(2),
19
+ alignItems: "center",
20
+ height: `${e.spacing(4.5)}`,
21
+ border: `1px solid ${e.palette.divider}`,
22
+ borderRadius: `${e.spacing(1)}`,
23
+ padding: `0 ${e.spacing(2)}`,
24
+ [e.breakpoints.down("md")]: {
25
+ width: "100%"
26
+ }
27
+ })), K = l("div")(({
28
+ theme: e
29
+ }) => ({
30
+ display: "flex",
31
+ width: "100%",
32
+ "& .MuiAutocomplete-root": {
33
+ width: "100%"
34
+ },
35
+ "& .m4l_image": {
36
+ marginLeft: e.spacing(1.5)
37
+ }
38
+ })), P = l("li")(({
39
+ theme: e
40
+ }) => ({
41
+ "& .m4l_image": {
42
+ marginRight: e.spacing(1.5)
43
+ }
44
+ }));
45
+ function U(e, a, d) {
46
+ return function(n, s) {
47
+ return /* @__PURE__ */ T(P, {
48
+ ...n,
49
+ children: [/* @__PURE__ */ i(w, {
50
+ src: e(s),
51
+ width: a,
52
+ height: d
53
+ }), n.key]
54
+ });
55
+ };
56
+ }
57
+ function Y(e) {
58
+ const {
59
+ name: a,
60
+ getOptionLabel: d,
61
+ isOptionEqualToValue: u,
62
+ label: n,
63
+ skeletonWidth: s = 100,
64
+ skeletonHeight: b = "18px",
65
+ options: I,
66
+ disabled: v,
67
+ getOptionUrlImage: r,
68
+ imageWidth: c = "24px",
69
+ imageHeight: m = "24px",
70
+ onOpen: k,
71
+ onClose: _,
72
+ loading: L,
73
+ ...C
74
+ } = e, {
75
+ getLabel: g
76
+ } = F(), R = H(), {
77
+ control: S
78
+ } = M(), h = V(() => r !== void 0, [r]), y = (t) => t == null ? "" : d(t), f = (t) => t == null || r === void 0 ? "" : r(t), A = (t, o) => o == null || t === null ? !1 : u(t, o);
79
+ return R ? /* @__PURE__ */ i(j, {
80
+ children: /* @__PURE__ */ T(D, {
81
+ children: [/* @__PURE__ */ i(O, {
82
+ variant: "text",
83
+ width: s,
84
+ height: b
85
+ }, "sk1"), /* @__PURE__ */ i(O, {
86
+ variant: "circular",
87
+ width: 16,
88
+ height: 16
89
+ }, "sk2")]
90
+ })
91
+ }) : /* @__PURE__ */ i($, {
92
+ name: a,
93
+ control: S,
94
+ render: ({
95
+ field: {
96
+ onChange: t,
97
+ value: o
98
+ },
99
+ fieldState: {
100
+ error: x
101
+ }
102
+ }) => /* @__PURE__ */ i(K, {
103
+ className: "m4l_rhf_autocomplete",
104
+ children: /* @__PURE__ */ i(q, {
105
+ options: I,
106
+ getOptionLabel: y,
107
+ isOptionEqualToValue: A,
108
+ disableClearable: !0,
109
+ value: o || null,
110
+ onOpen: k,
111
+ onClose: _,
112
+ onChange: (p, W) => {
113
+ t(W);
114
+ },
115
+ loading: L,
116
+ loadingText: g("rhf_autocomplete.loading_options"),
117
+ disabled: v,
118
+ noOptionsText: g("rhf_autocomplete.no_options"),
119
+ renderOption: h ? U(f, c, m) : void 0,
120
+ renderInput: (p) => /* @__PURE__ */ i(E, {
121
+ ...p,
122
+ label: n,
123
+ fullWidth: !0,
124
+ SelectProps: {
125
+ native: !0
126
+ },
127
+ InputProps: {
128
+ ...p.InputProps,
129
+ startAdornment: h && o ? /* @__PURE__ */ i(w, {
130
+ src: f(o),
131
+ width: c,
132
+ height: m
133
+ }, "ImageTextField") : null
134
+ },
135
+ autoComplete: "off",
136
+ error: !!x,
137
+ helperText: x?.message,
138
+ ...C
139
+ })
140
+ })
141
+ })
142
+ });
143
+ }
144
+ export {
145
+ Y as R
146
+ };
@@ -1,4 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { TextFieldProps } from '@mui/material';
3
2
  import type { RHFAutocompleteProps } from './types';
4
- export declare function RHFAutocomplete<T>(props: RHFAutocompleteProps<T> & TextFieldProps): JSX.Element;
3
+ export declare function RHFAutocomplete<T>(props: RHFAutocompleteProps<T>): JSX.Element;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const SKTRHFAutocompleteWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const PropertieValueLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
3
  export declare const SKTInputText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
4
  export declare const WrapperAutocomplete: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { GetOptionString } from '../../types';
3
+ export declare function withRenderOption<T>(getUrlImage: GetOptionString<T>, imageWidth: string, imageHeight: string): (optionProps: HTMLAttributes<HTMLLIElement>, option: T) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperOption: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
@@ -1,12 +1,18 @@
1
- export interface SkeletonProps {
2
- width?: string | number;
3
- height?: string | number;
4
- }
5
- export interface RHFAutocompleteProps<T> {
1
+ /// <reference types="react" />
2
+ import { AutocompleteCloseReason, TextFieldProps } from '@mui/material';
3
+ export declare type GetOptionString<T> = (option: T | null) => string;
4
+ export declare type RHFAutocompleteProps<T> = {
6
5
  name: string;
7
6
  options: Array<T>;
8
7
  getOptionLabel: (option: T) => string;
8
+ getOptionUrlImage?: (option: T) => string;
9
9
  isOptionEqualToValue: (option: T, value: T) => boolean;
10
- skeletonProps?: SkeletonProps;
10
+ skeletonWidth?: string | number;
11
+ skeletonHeight?: string | number;
11
12
  label: string;
12
- }
13
+ imageWidth?: string;
14
+ imageHeight?: string;
15
+ loading?: boolean;
16
+ onOpen?: (event: React.SyntheticEvent) => void;
17
+ onClose?: (event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void;
18
+ } & TextFieldProps;
@@ -0,0 +1,51 @@
1
+ import { useState as o, useEffect as p } from "react";
2
+ import { useNetwork as y, getPropertyByString as A } from "@m4l/core";
3
+ import { useFormContext as L } from "react-hook-form";
4
+ import { R as k } from "../RHFAutocomplete/index.b7f11146.js";
5
+ import { jsx as w } from "react/jsx-runtime";
6
+ function j(l) {
7
+ const {
8
+ name: n,
9
+ endPoint: e,
10
+ timeout: f = 5e3,
11
+ parms: s,
12
+ resultField: c = "data",
13
+ isRemote: d = !0,
14
+ ...g
15
+ } = l, {
16
+ setValue: O
17
+ } = L(), {
18
+ networkOperation: R
19
+ } = y(), [F, r] = o([]), [h, i] = o(!1), [m, u] = o(!1), t = h && !m && !!e;
20
+ return p(() => {
21
+ m && (u(!1), r([]), O(n, null));
22
+ }, [s, e]), p(() => {
23
+ let a = !0;
24
+ if (!!t)
25
+ return R({
26
+ method: "GET",
27
+ endPoint: e,
28
+ timeout: f,
29
+ parms: s,
30
+ isRemote: d
31
+ }).then((x) => {
32
+ a && (r(A(x, c)), u(!0));
33
+ }), () => {
34
+ a = !1;
35
+ };
36
+ }, [t]), console.log("Loading", t), /* @__PURE__ */ w(k, {
37
+ name: n,
38
+ loading: t,
39
+ options: F,
40
+ onOpen: () => {
41
+ i(!0);
42
+ },
43
+ onClose: () => {
44
+ i(!1);
45
+ },
46
+ ...g
47
+ });
48
+ }
49
+ export {
50
+ j as R
51
+ };
@@ -1,4 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { TextFieldProps } from '@mui/material';
3
2
  import type { RHFAutocompleteAsyncProps } from './types';
4
- export declare function RHFAutocompleteAsync<T>(props: RHFAutocompleteAsyncProps<T> & TextFieldProps): JSX.Element;
3
+ export declare function RHFAutocompleteAsync<T>(props: RHFAutocompleteAsyncProps<T>): JSX.Element;
@@ -1,16 +1,8 @@
1
- export interface SkeletonProps {
2
- width?: string | number;
3
- height?: string | number;
4
- }
5
- export interface RHFAutocompleteAsyncProps<T> {
6
- name: string;
7
- getOptionLabel: (option: T) => string;
8
- isOptionEqualToValue: (option: T, value: T) => boolean;
9
- skeletonProps?: SkeletonProps;
1
+ import { RHFAutocompleteProps } from '../RHFAutocomplete/types';
2
+ export declare type RHFAutocompleteAsyncProps<T> = {
10
3
  endPoint: string;
11
4
  timeout?: number;
12
5
  parms?: Record<string, any>;
13
6
  resultField?: string;
14
- label: string;
15
7
  isRemote?: boolean;
16
- }
8
+ } & Omit<RHFAutocompleteProps<T>, 'options'>;
@@ -0,0 +1,55 @@
1
+ import { useFormContext as i, Controller as c } from "react-hook-form";
2
+ import { styled as m } from "@mui/material/styles";
3
+ import { styled as p, Skeleton as d, FormControlLabel as u, Checkbox as f } from "@mui/material";
4
+ import { useModuleSkeleton as g } from "@m4l/core";
5
+ import { jsx as e, jsxs as k, Fragment as x } from "react/jsx-runtime";
6
+ const h = p("div")(() => ({
7
+ display: "flex",
8
+ justifyContent: "center",
9
+ alignItems: "center",
10
+ padding: "8px"
11
+ })), C = () => /* @__PURE__ */ e(h, {
12
+ children: /* @__PURE__ */ e(d, {
13
+ variant: "rectangular"
14
+ })
15
+ }), y = m("p")(({
16
+ theme: r
17
+ }) => ({
18
+ ...r.typography.caption,
19
+ color: r.palette.error.main,
20
+ marginRight: 14,
21
+ marginLeft: 14
22
+ }));
23
+ function L({
24
+ name: r,
25
+ sizeCheck: n = "small",
26
+ ...l
27
+ }) {
28
+ const {
29
+ control: s
30
+ } = i(), a = g();
31
+ return /* @__PURE__ */ e(u, {
32
+ control: /* @__PURE__ */ e(c, {
33
+ name: r,
34
+ control: s,
35
+ render: ({
36
+ field: t,
37
+ fieldState: {
38
+ error: o
39
+ }
40
+ }) => a ? /* @__PURE__ */ e(C, {}) : /* @__PURE__ */ k(x, {
41
+ children: [/* @__PURE__ */ e(f, {
42
+ size: n,
43
+ ...t,
44
+ checked: t.value
45
+ }), o?.message && /* @__PURE__ */ e(y, {
46
+ children: o?.message + ""
47
+ })]
48
+ })
49
+ }),
50
+ ...l
51
+ });
52
+ }
53
+ export {
54
+ L as R
55
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const SkeletonCheckBox: () => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const WrapperSkeletonCheckBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;