@m4l/components 0.0.35 → 0.0.36

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.
@@ -59,7 +59,7 @@ const CompanyLogo = (props) => {
59
59
  const width = size === "small" ? "50px" : "380px";
60
60
  const {
61
61
  host_static_assets,
62
- environment
62
+ environment_assets
63
63
  } = useEnvironment();
64
64
  const mdUp = useResponsive("up", "md");
65
65
  if (isSkeleton) {
@@ -72,7 +72,7 @@ const CompanyLogo = (props) => {
72
72
  });
73
73
  }
74
74
  return /* @__PURE__ */ jsx(Image, {
75
- src: `${host_static_assets}/${environment}/frontend/commons/assets/icons/${size === "small" ? "isotipo_m4l.svg" : "logotipo_m4l.svg"}`,
75
+ src: `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/${size === "small" ? "isotipo_m4l.svg" : "logotipo_m4l.svg"}`,
76
76
  effect: "opacity",
77
77
  width,
78
78
  height,
@@ -968,7 +968,7 @@ function Filter() {
968
968
  } = useFilters();
969
969
  const {
970
970
  host_static_assets,
971
- environment
971
+ environment_assets
972
972
  } = useEnvironment();
973
973
  const toggleIcon = () => {
974
974
  setActiveFilters(!activeFilters);
@@ -986,7 +986,7 @@ function Filter() {
986
986
  dictionaryTooltip: activeFilters ? "grid.filter_hide" : "grid.filter_show",
987
987
  onClick: toggleIcon,
988
988
  "aria-label": "filter",
989
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/filter.svg`
989
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/filter.svg`
990
990
  });
991
991
  }
992
992
  const WrapperColumnsConfig = styled("div")(({ theme }) => ({
@@ -1075,7 +1075,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
1075
1075
  const divRef = useRef(null);
1076
1076
  const {
1077
1077
  host_static_assets,
1078
- environment
1078
+ environment_assets
1079
1079
  } = useEnvironment();
1080
1080
  useImperativeHandle(ref, () => ({
1081
1081
  onClickIntro: handleIntro,
@@ -1258,40 +1258,40 @@ const ColumnsConfig = forwardRef((props, ref) => {
1258
1258
  onClick: handleMoveFirst,
1259
1259
  "aria-label": "move first place",
1260
1260
  disabled: rowSelectedIndex < 1,
1261
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/move_first_place.svg`
1261
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/move_first_place.svg`
1262
1262
  }), /* @__PURE__ */ jsx(IconButton, {
1263
1263
  dictionaryTooltip: "grid.settings_move_up",
1264
1264
  onClick: () => handleMoveUpDownd(-1),
1265
1265
  "aria-label": "move up place",
1266
1266
  disabled: rowSelectedIndex < 1,
1267
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/move_up_place.svg`
1267
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/move_up_place.svg`
1268
1268
  }), /* @__PURE__ */ jsx(IconButton, {
1269
1269
  dictionaryTooltip: "grid.settings_move_last",
1270
1270
  onClick: handleMoveLast,
1271
1271
  "aria-label": "move last place",
1272
1272
  disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
1273
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/move_last_place.svg`
1273
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/move_last_place.svg`
1274
1274
  }), /* @__PURE__ */ jsx(IconButton, {
1275
1275
  dictionaryTooltip: "grid.settings_move_down",
1276
1276
  onClick: () => handleMoveUpDownd(1),
1277
1277
  "aria-label": "move down place",
1278
1278
  disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
1279
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/move_down_place.svg`
1279
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/move_down_place.svg`
1280
1280
  }), /* @__PURE__ */ jsx(IconButton, {
1281
1281
  dictionaryTooltip: "grid.settings_visible_all",
1282
1282
  onClick: checkAll,
1283
1283
  "aria-label": "check visible all",
1284
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/check_all.svg`
1284
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/check_all.svg`
1285
1285
  }), /* @__PURE__ */ jsx(IconButton, {
1286
1286
  dictionaryTooltip: "grid.settings_no_visible_all",
1287
1287
  onClick: unCheckAll,
1288
1288
  "aria-label": "un check all",
1289
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/uncheck_all.svg`
1289
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/uncheck_all.svg`
1290
1290
  }), /* @__PURE__ */ jsx(IconButton, {
1291
1291
  dictionaryTooltip: "grid.settings_restore",
1292
1292
  onClick: restoreAll,
1293
1293
  "aria-label": "Restore columns",
1294
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/restore_columns.svg`
1294
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/restore_columns.svg`
1295
1295
  })]
1296
1296
  })]
1297
1297
  });
@@ -1319,7 +1319,7 @@ function Settings() {
1319
1319
  } = useModuleDictionary();
1320
1320
  const {
1321
1321
  host_static_assets,
1322
- environment
1322
+ environment_assets
1323
1323
  } = useEnvironment();
1324
1324
  const ref = useRef(null);
1325
1325
  const onCloseSettings = useCallback(() => {
@@ -1362,7 +1362,7 @@ function Settings() {
1362
1362
  dictionaryTooltip: "grid.settings_tooltip",
1363
1363
  onClick: onClickSettings,
1364
1364
  "aria-label": "settings",
1365
- src: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/configuration.svg`
1365
+ src: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/configuration.svg`
1366
1366
  });
1367
1367
  }
1368
1368
  const Container = styled("div")(() => ({
@@ -1429,7 +1429,7 @@ const SKTWrapperDensity = styled("div")(({ theme }) => ({
1429
1429
  function Density() {
1430
1430
  const {
1431
1431
  host_static_assets,
1432
- environment
1432
+ environment_assets
1433
1433
  } = useEnvironment();
1434
1434
  const {
1435
1435
  rowHeights,
@@ -1445,31 +1445,31 @@ function Density() {
1445
1445
  return [];
1446
1446
  }
1447
1447
  return [{
1448
- urlIcon: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/compact.svg`,
1448
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/compact.svg`,
1449
1449
  onClick: () => setRowHeightVariant("compact"),
1450
1450
  disabled: currentRowHeightVariant === "compact",
1451
1451
  dictionaryField: "grid.density_compact"
1452
1452
  }, {
1453
- urlIcon: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/standard.svg`,
1453
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/standard.svg`,
1454
1454
  onClick: () => setRowHeightVariant("standard"),
1455
1455
  disabled: currentRowHeightVariant === "standard",
1456
1456
  dictionaryField: "grid.density_standard"
1457
1457
  }, {
1458
- urlIcon: `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/confortable.svg`,
1458
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/confortable.svg`,
1459
1459
  onClick: () => setRowHeightVariant("confortable"),
1460
1460
  disabled: currentRowHeightVariant === "confortable",
1461
1461
  dictionaryField: "grid.density_confortable"
1462
1462
  }];
1463
- }, [rowHeights, currentRowHeightVariant, setRowHeightVariant, host_static_assets, environment]);
1463
+ }, [rowHeights, currentRowHeightVariant, setRowHeightVariant, host_static_assets, environment_assets]);
1464
1464
  const currenViewIcon = useMemo(() => {
1465
1465
  if (currentRowHeightVariant === "compact") {
1466
- return `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/compact.svg`;
1466
+ return `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/compact.svg`;
1467
1467
  }
1468
1468
  if (currentRowHeightVariant === "standard") {
1469
- return `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/standard.svg`;
1469
+ return `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/standard.svg`;
1470
1470
  }
1471
- return `${host_static_assets}/${environment}/frontend/components/grid/assets/icons/confortable.svg`;
1472
- }, [currentRowHeightVariant, host_static_assets, environment]);
1471
+ return `${host_static_assets}/${environment_assets}/frontend/components/grid/assets/icons/confortable.svg`;
1472
+ }, [currentRowHeightVariant, host_static_assets, environment_assets]);
1473
1473
  if (menuActions.length === 0) {
1474
1474
  return /* @__PURE__ */ jsx(Fragment, {});
1475
1475
  }
@@ -1,7 +1,7 @@
1
1
  import { S as ScrollBar } from "../ScrollBar/index.js";
2
2
  import { styled } from "@mui/material/styles";
3
3
  import { useRef, useState, useMemo, useCallback, useEffect, createContext, useContext } from "react";
4
- import { useModuleDictionary, voidFunction, useHostTools, useEnvironment, useFlagsPresent } from "@m4l/core";
4
+ import { useModuleDictionary, useEnvironment, voidFunction, useHostTools, useFlagsPresent } from "@m4l/core";
5
5
  import * as Yup from "yup";
6
6
  import { useFormContext, useWatch } from "react-hook-form";
7
7
  import { F as FormProvider } from "../hook-form/FormProvider/index.js";
@@ -282,6 +282,11 @@ function DateTimeFilter() {
282
282
  const {
283
283
  getLabel
284
284
  } = useModuleDictionary();
285
+ const {
286
+ dfnsFormat: {
287
+ datetime_format
288
+ }
289
+ } = useEnvironment();
285
290
  const {
286
291
  popupData: {
287
292
  filter,
@@ -316,10 +321,10 @@ function DateTimeFilter() {
316
321
  };
317
322
  if (data.valueOperator.id === "b") {
318
323
  newFilter.operand2 = data.valueOperand2.toISOString();
319
- newFilter.labelOperands = `${format(data.valueOperand1, "yyyy-MM-dd HH:mm:ss")} - ${format(data.valueOperand2, "yyyy-MM-dd HH:mm:ss")}`;
324
+ newFilter.labelOperands = `${format(data.valueOperand1, datetime_format)} - ${format(data.valueOperand2, datetime_format)}`;
320
325
  } else {
321
326
  newFilter.operand2 = newFilter.operand2 ? newFilter.operand2 : newFilter.operand1;
322
- newFilter.labelOperands = format(data.valueOperand1, "yyyy-MM-dd HH:mm:ss");
327
+ newFilter.labelOperands = format(data.valueOperand1, datetime_format);
323
328
  }
324
329
  return newFilter;
325
330
  }, []);
@@ -620,12 +625,17 @@ function BaseProvider(props) {
620
625
  } = useModuleDictionary();
621
626
  const [popupValidationSchema, setInternalPopupValidationSchema] = useState(Yup.object().shape({}));
622
627
  const [fnTransformFormValuesIntoRawValues, setInternalfnTransormFormValuesIntoRawValues] = useState(() => void 0);
628
+ const {
629
+ host_static_assets,
630
+ environment_assets
631
+ } = useEnvironment();
623
632
  const all_fields = useMemo(() => {
624
633
  return {
625
634
  ...ALL_FIELDS,
626
- label: getLabel("filter.all_fields")
635
+ label: getLabel("filter.all_fields"),
636
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/filter/assets/icons/all_fields.svg`
627
637
  };
628
- }, [getLabel]);
638
+ }, [getLabel, host_static_assets, environment_assets]);
629
639
  const [inEdition, setInEdition] = useState(false);
630
640
  const [isDirty, setIsDirty] = useState(!automatic);
631
641
  const [isValid, setIsValid] = useState(false);
@@ -882,7 +892,7 @@ function ApplyedFilter(props) {
882
892
  } = useBase();
883
893
  const {
884
894
  host_static_assets,
885
- environment
895
+ environment_assets
886
896
  } = useEnvironment();
887
897
  console.log("fieldName by ApplyedFilter 1", getFieldByName(fieldName));
888
898
  const field = useMemo(() => {
@@ -924,7 +934,7 @@ function ApplyedFilter(props) {
924
934
  children: labelOperands
925
935
  })]
926
936
  }), !fixed && /* @__PURE__ */ jsx(IconButton, {
927
- src: `${host_static_assets}/${environment}/frontend/components/dynamic_filter/assets/icons/close.svg`,
937
+ src: `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/close.svg`,
928
938
  onClick: onDelete
929
939
  })]
930
940
  });
@@ -971,7 +981,7 @@ const WrapperClearFilters = styled$1("div")(({
971
981
  const ClearFilters = () => {
972
982
  const {
973
983
  host_static_assets,
974
- environment
984
+ environment_assets
975
985
  } = useEnvironment();
976
986
  const {
977
987
  clearFilters,
@@ -991,7 +1001,7 @@ const ClearFilters = () => {
991
1001
  if (applyedFilters.findIndex((f) => f.fixed == false) > -1) {
992
1002
  return /* @__PURE__ */ jsx(WrapperClearFilters, {
993
1003
  children: /* @__PURE__ */ jsx(IconButton, {
994
- src: `${host_static_assets}/${environment}/frontend/components/dynamic_filter/assets/icons/clear.svg`,
1004
+ src: `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/clear.svg`,
995
1005
  onClick: clearFilters
996
1006
  })
997
1007
  });
@@ -1040,7 +1050,7 @@ function FilterButton() {
1040
1050
  } = useBase();
1041
1051
  const {
1042
1052
  host_static_assets,
1043
- environment
1053
+ environment_assets
1044
1054
  } = useEnvironment();
1045
1055
  console.log("Render isDirty", isDirty, automatic);
1046
1056
  if (isSkeleton) {
@@ -1068,7 +1078,7 @@ function FilterButton() {
1068
1078
  dictionaryTooltip: "filter.filter_tooltip",
1069
1079
  onClick: () => fireOnChangeFilters(),
1070
1080
  "aria-label": "settings",
1071
- src: `${host_static_assets}/${environment}/frontend/components/dynamic_filter/assets/icons/${automatic ? "refresh" : "search"}.svg`
1081
+ src: `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/${automatic ? "refresh" : "search"}.svg`
1072
1082
  })
1073
1083
  });
1074
1084
  }
@@ -34,9 +34,10 @@ function Icon(props) {
34
34
  (async function networkOperation() {
35
35
  await fetch(src).then((response) => {
36
36
  if (mounted) {
37
+ console.log("Icon***", response.body);
37
38
  setResource(response.url);
38
39
  }
39
- }).catch((err) => {
40
+ }).catch((_err) => {
40
41
  });
41
42
  })();
42
43
  return function clenUp() {
@@ -50,7 +51,7 @@ function Icon(props) {
50
51
  width,
51
52
  height,
52
53
  children: resource ? /* @__PURE__ */ jsx(MaskIcon, {
53
- src,
54
+ src: resource,
54
55
  width,
55
56
  height,
56
57
  bgColor
@@ -54,7 +54,7 @@ const ModalTitle = styled("div")(({ theme, variant }) => ({
54
54
  const Header = (props) => {
55
55
  const {
56
56
  host_static_assets,
57
- environment
57
+ environment_assets
58
58
  } = useEnvironment();
59
59
  const {
60
60
  variant,
@@ -63,10 +63,10 @@ const Header = (props) => {
63
63
  withClose,
64
64
  onCloseModal
65
65
  } = props;
66
- const iconSrcWarning = `${host_static_assets}/${environment}/frontend/components/dialog/assets/icons/warning.svg`;
67
- const iconSrcError = `${host_static_assets}/${environment}/frontend/components/dialog/assets/icons/error.svg`;
68
- const iconSrcInfo = `${host_static_assets}/${environment}/frontend/components/dialog/assets/icons/info.svg`;
69
- const iconDefault = `${host_static_assets}/${environment}/frontend/components/dialog/assets/icons/icon_bar_tittle.svg`;
66
+ const iconSrcWarning = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/warning.svg`;
67
+ const iconSrcError = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/error.svg`;
68
+ const iconSrcInfo = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/info.svg`;
69
+ const iconDefault = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/icon_bar_tittle.svg`;
70
70
  return /* @__PURE__ */ jsxs(Header$1, {
71
71
  id: "Header",
72
72
  children: [/* @__PURE__ */ jsxs(IconTitleContainer, {
@@ -84,7 +84,7 @@ const Header = (props) => {
84
84
  onClick: onCloseModal,
85
85
  "aria-label": "click",
86
86
  children: /* @__PURE__ */ jsx(Icon, {
87
- src: `${host_static_assets}/${environment}/frontend/components/dialog/assets/icons/close.svg`
87
+ src: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/close.svg`
88
88
  })
89
89
  })]
90
90
  });
@@ -50,12 +50,12 @@ const Label = styled("span")(({
50
50
  function NoItemSelected() {
51
51
  const {
52
52
  host_static_assets,
53
- environment
53
+ environment_assets
54
54
  } = useEnvironment();
55
55
  const {
56
56
  getLabel
57
57
  } = useModuleDictionary();
58
- const src = `${host_static_assets}/${environment}/frontend/components/no_item_selected/assets/icons/no_selected.svg`;
58
+ const src = `${host_static_assets}/${environment_assets}/frontend/components/no_item_selected/assets/icons/no_selected.svg`;
59
59
  return /* @__PURE__ */ jsxs(WrapperNoItemSelected, {
60
60
  id: "Wrapper",
61
61
  children: [/* @__PURE__ */ jsx(Image, {
@@ -96,7 +96,7 @@ function DetailFormatter(props) {
96
96
  } = useModuleDictionary();
97
97
  const {
98
98
  host_static_assets,
99
- environment
99
+ environment_assets
100
100
  } = useEnvironment();
101
101
  const onClickDetail = () => {
102
102
  openModal({
@@ -116,7 +116,7 @@ function DetailFormatter(props) {
116
116
  onClick: onClickDetail,
117
117
  "aria-label": "filter",
118
118
  children: /* @__PURE__ */ jsx(Icon, {
119
- src: `${host_static_assets}/${environment}/frontend/components/object_logs/assets/icons/search.svg`
119
+ src: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/search.svg`
120
120
  })
121
121
  })
122
122
  });
@@ -196,7 +196,7 @@ function ObjectLogs(props) {
196
196
  children: [/* @__PURE__ */ jsx(Actions, {
197
197
  id: "objectLogsActions",
198
198
  children: /* @__PURE__ */ jsx(DynamicFilter, {
199
- withAllField: false,
199
+ withAllField: true,
200
200
  onChangeFilter,
201
201
  automatic: false,
202
202
  fields: [{
@@ -206,6 +206,13 @@ function ObjectLogs(props) {
206
206
  multiple: false,
207
207
  fixed: true,
208
208
  urlIcon: "https://s3.amazonaws.com/static.made4labs/environments/d1/frontend/components/icon/assets/icons/default.svg"
209
+ }, {
210
+ name: "user_logs.log_detail",
211
+ label: getLabel("object_logs.log_detail"),
212
+ type: "string",
213
+ multiple: false,
214
+ fixed: false,
215
+ urlIcon: "https://s3.amazonaws.com/static.made4labs/environments/d1/frontend/components/icon/assets/icons/default.svg"
209
216
  }],
210
217
  initialFilters: []
211
218
  })
@@ -2,6 +2,7 @@ import { useFormContext, Controller } from "react-hook-form";
2
2
  import { Skeleton, TextField } from "@mui/material";
3
3
  import { styled } from "@mui/material/styles";
4
4
  import { DateTimePicker } from "@mui/x-date-pickers";
5
+ import { useEnvironment } from "@m4l/core";
5
6
  import { jsx } from "react/jsx-runtime";
6
7
  const SKTRHFWrapperTextField = styled("div")(({
7
8
  theme
@@ -27,6 +28,12 @@ function RHFDateTime(props) {
27
28
  const {
28
29
  control
29
30
  } = useFormContext();
31
+ const {
32
+ dfnsFormat: {
33
+ datetime_format,
34
+ datetime_mask
35
+ }
36
+ } = useEnvironment();
30
37
  if (isSkeleton) {
31
38
  return /* @__PURE__ */ jsx(SKTRHFWrapperTextField, {
32
39
  children: /* @__PURE__ */ jsx(Skeleton, {
@@ -47,8 +54,8 @@ function RHFDateTime(props) {
47
54
  }) => {
48
55
  return /* @__PURE__ */ jsx(DateTimePicker, {
49
56
  ampm: false,
50
- inputFormat: "yyyy-MM-dd HH:mm:ss",
51
- mask: "____-__-__ __:__:__",
57
+ inputFormat: datetime_format,
58
+ mask: datetime_mask,
52
59
  label: "",
53
60
  value: field.value,
54
61
  onChange: (value) => {
@@ -133,7 +133,7 @@ function UploadImage({
133
133
  });
134
134
  const {
135
135
  host_static_assets,
136
- environment
136
+ environment_assets
137
137
  } = useEnvironment();
138
138
  const {
139
139
  getLabel
@@ -183,7 +183,7 @@ function UploadImage({
183
183
  className: "ContainerUploadBody",
184
184
  children: [/* @__PURE__ */ jsx(WrapperImage, {
185
185
  children: /* @__PURE__ */ jsx(Image, {
186
- src: `${host_static_assets}/${environment}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
186
+ src: `${host_static_assets}/${environment_assets}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
187
187
  effect: "opacity",
188
188
  width: "100%",
189
189
  height: "auto",
@@ -5,7 +5,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
5
5
  function Accordion(props) {
6
6
  const {
7
7
  host_static_assets,
8
- environment
8
+ environment_assets
9
9
  } = useEnvironment();
10
10
  const {
11
11
  label,
@@ -29,7 +29,7 @@ function Accordion(props) {
29
29
  disableTouchRipple: false,
30
30
  expandIcon: /* @__PURE__ */ jsx(IconButton, {
31
31
  "aria-label": "settings",
32
- src: `${host_static_assets}/${environment}/frontend/components/accordion/assets/icons/expanded.svg`
32
+ src: `${host_static_assets}/${environment_assets}/frontend/components/accordion/assets/icons/expanded.svg`
33
33
  }),
34
34
  ...summaryProps,
35
35
  children: isSkeleton ? /* @__PURE__ */ jsx(Skeleton, {
@@ -30,7 +30,7 @@ function MenuActions(props) {
30
30
  } = props;
31
31
  const {
32
32
  host_static_assets,
33
- environment
33
+ environment_assets
34
34
  } = useEnvironment();
35
35
  const {
36
36
  getLabel
@@ -42,8 +42,8 @@ function MenuActions(props) {
42
42
  const urlFinalIcon = useMemo(() => {
43
43
  if (urlIcon)
44
44
  return urlIcon;
45
- return `${host_static_assets}/${environment}/frontend/commons/assets/icons/more_vertical.svg`;
46
- }, [urlIcon, host_static_assets, environment]);
45
+ return `${host_static_assets}/${environment_assets}/frontend/commons/assets/icons/more_vertical.svg`;
46
+ }, [urlIcon, host_static_assets, environment_assets]);
47
47
  const handleClose = () => {
48
48
  setOpen(null);
49
49
  };
@@ -24,7 +24,7 @@ function PagerActions(props) {
24
24
  } = props;
25
25
  const {
26
26
  host_static_assets,
27
- environment
27
+ environment_assets
28
28
  } = useEnvironment();
29
29
  const handleFirstPageButtonClick = (event) => {
30
30
  onPageChange(event, 0);
@@ -45,25 +45,25 @@ function PagerActions(props) {
45
45
  onClick: handleFirstPageButtonClick,
46
46
  disabled: page === 0,
47
47
  "aria-label": "first page",
48
- src: `${host_static_assets}/${environment}/frontend/components/pager/assets/icons/first.svg`
48
+ src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/first.svg`
49
49
  }), /* @__PURE__ */ jsx(IconButton, {
50
50
  dictionaryTooltip: "pager.previous",
51
51
  onClick: handleBackButtonClick,
52
52
  disabled: page === 0,
53
53
  "aria-label": "first page",
54
- src: `${host_static_assets}/${environment}/frontend/components/pager/assets/icons/previous.svg`
54
+ src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/previous.svg`
55
55
  }), /* @__PURE__ */ jsx(IconButton, {
56
56
  dictionaryTooltip: "pager.next",
57
57
  onClick: handleNextButtonClick,
58
58
  disabled: page >= Math.ceil(count / rowsPerPage) - 1,
59
59
  "aria-label": "next page",
60
- src: `${host_static_assets}/${environment}/frontend/components/pager/assets/icons/next.svg`
60
+ src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/next.svg`
61
61
  }), /* @__PURE__ */ jsx(IconButton, {
62
62
  dictionaryTooltip: "pager.last",
63
63
  onClick: handleLastPageButtonClick,
64
64
  disabled: page >= Math.ceil(count / rowsPerPage) - 1,
65
65
  "aria-label": "last page",
66
- src: `${host_static_assets}/${environment}/frontend/components/pager/assets/icons/last.svg`
66
+ src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/last.svg`
67
67
  })]
68
68
  });
69
69
  }
@@ -47,11 +47,11 @@ const ContentConfirm = (props) => {
47
47
  } = props;
48
48
  const {
49
49
  host_static_assets,
50
- environment
50
+ environment_assets
51
51
  } = useEnvironment();
52
- const illustrationWarning = `${host_static_assets}/${environment}/frontend/components/dialog/assets/icons/illustration_confirm_warning.svg`;
53
- const illustrationError = `${host_static_assets}/${environment}/frontend/components/dialog/assets/icons/illustration_confirm_danger.svg`;
54
- const illustrationInfo = `${host_static_assets}/${environment}/frontend/components/dialog/assets/icons/illustration_confirm_info.svg`;
52
+ const illustrationWarning = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_warning.svg`;
53
+ const illustrationError = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_danger.svg`;
54
+ const illustrationInfo = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/illustration_confirm_info.svg`;
55
55
  return /* @__PURE__ */ jsx(WrapperContentConfirm, {
56
56
  children: /* @__PURE__ */ jsxs(ModalContent, {
57
57
  children: [/* @__PURE__ */ jsx(IllustrationContainer, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
3
  "private": false,
4
- "version": "0.0.35",
4
+ "version": "0.0.36",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -14,14 +14,13 @@
14
14
  "format": "npm run prettier:fix && npm run lint:fix"
15
15
  },
16
16
  "dependencies": {
17
+ "@m4l/graphics": "^0.0.28",
17
18
  "react": "^17.0.0 || 18.x",
18
19
  "react-dom": "^18.0.0",
19
20
  "react-draggable": "^4.4.5"
20
21
  },
21
22
  "peerDependencies": {
22
23
  "@hookform/resolvers": "^2.9.5",
23
- "@m4l/core": "^0.0.32",
24
- "@m4l/graphics": "^0.0.24",
25
24
  "@mui/lab": "^5.0.0-alpha.89",
26
25
  "@mui/material": "^5.8.7",
27
26
  "@mui/x-date-pickers": "^5.0.0-beta.0",
@@ -42,8 +41,6 @@
42
41
  "devDependencies": {
43
42
  "@emotion/styled": "^11.9.3",
44
43
  "@hookform/resolvers": "^2.9.5",
45
- "@m4l/core": "^0.0.32",
46
- "@m4l/graphics": "^0.0.24",
47
44
  "@mui/lab": "^5.0.0-alpha.89",
48
45
  "@mui/material": "^5.8.7",
49
46
  "@mui/x-date-pickers": "^5.0.0-beta.0",