@m4l/components 0.1.0 → 0.1.3
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/components/DynamicFilter/index.js +1 -2
- package/components/Icon/index.js +0 -3
- package/components/LanguagePopover/index.js +50 -5
- package/components/Page/index.js +11 -2
- package/components/PaperForm/index.js +1 -2
- package/components/Resizeable/styles.d.ts +1 -1
- package/components/hook-form/FormProvider/index.js +5 -1
- package/components/hook-form/RHFAutocompleteAsync/index.js +1 -1
- package/components/hook-form/RHFUpload.js +3 -7
- package/core-js.js +13 -8
- package/index.js +2 -1
- package/node_modules.js +1 -1307
- package/package.json +11 -4
- package/vendor.js +2 -4
package/package.json
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@m4l/core": "*",
|
|
7
7
|
"@m4l/graphics": "*",
|
|
8
|
+
"react-helmet-async": "^1.3.0",
|
|
9
|
+
"react-hook-form": "^7.33.1",
|
|
10
|
+
"react-router-dom": "^6.3.0",
|
|
11
|
+
"yup": "^0.32.11"
|
|
12
|
+
},
|
|
13
|
+
"peerDependencies": {
|
|
8
14
|
"@mui/lab": "^5.0.0-alpha.89",
|
|
9
|
-
"@mui/material": "^5.
|
|
10
|
-
"@
|
|
15
|
+
"@mui/material": "^5.10.4",
|
|
16
|
+
"@types/react": "^17.0.0 || ^18.0.0",
|
|
17
|
+
"@types/react-dom": "^17.0.0 || ^18.0.0",
|
|
11
18
|
"framer-motion": "^6.5.0",
|
|
12
|
-
"react": "^17.0.0 || 18.
|
|
19
|
+
"react-dom": "^17.0.0 || ^18.0.0",
|
|
13
20
|
"react-dropzone": "^14.2.2",
|
|
14
21
|
"react-helmet-async": "^1.3.0",
|
|
15
22
|
"react-hook-form": "^7.33.1",
|
package/vendor.js
CHANGED
|
@@ -12,6 +12,7 @@ import "./components/hook-form/RHFDateTime.js";
|
|
|
12
12
|
import "@mui/x-date-pickers";
|
|
13
13
|
import "./components/hook-form/RHFTextField/index.js";
|
|
14
14
|
import "./lodash.js";
|
|
15
|
+
import "react-dropzone";
|
|
15
16
|
import { styled } from "@mui/material/styles";
|
|
16
17
|
import "./react-lazy-load-image-component.js";
|
|
17
18
|
import "./components/Image/index.js";
|
|
@@ -182,7 +183,7 @@ function RHFAutocomplete(props) {
|
|
|
182
183
|
onChange(val);
|
|
183
184
|
},
|
|
184
185
|
loadingText: "",
|
|
185
|
-
noOptionsText: getLabel("component_no_options"),
|
|
186
|
+
noOptionsText: getLabel("rhf_autocomplete.component_no_options"),
|
|
186
187
|
renderInput: (params) => {
|
|
187
188
|
return /* @__PURE__ */ jsx(TextField, {
|
|
188
189
|
...params,
|
|
@@ -207,9 +208,7 @@ function RHFAutocomplete(props) {
|
|
|
207
208
|
}
|
|
208
209
|
const getPaletteColor = function(palette, s) {
|
|
209
210
|
s = s.replace(/\[(\w+)\]/g, ".$1");
|
|
210
|
-
console.log("value of s first", s, palette);
|
|
211
211
|
s = s.replace(/^\./, "");
|
|
212
|
-
console.log("value of s second", s);
|
|
213
212
|
let o = palette;
|
|
214
213
|
const a = s.split(".");
|
|
215
214
|
console.log();
|
|
@@ -217,7 +216,6 @@ const getPaletteColor = function(palette, s) {
|
|
|
217
216
|
const k = a[i];
|
|
218
217
|
if (k in o) {
|
|
219
218
|
o = o[k];
|
|
220
|
-
console.log("value of lenght", o);
|
|
221
219
|
} else {
|
|
222
220
|
return palette.action.active;
|
|
223
221
|
}
|