cloudmr-ux 1.4.8 → 1.5.0

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/dist/index.js CHANGED
@@ -1,10 +1,39 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
9
  var __getProtoOf = Object.getPrototypeOf;
7
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
8
37
  var __export = (target, all) => {
9
38
  for (var name in all)
10
39
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -56,8 +85,8 @@ module.exports = __toCommonJS(src_exports);
56
85
  var import_material = require("@mui/material");
57
86
  var import_jsx_runtime = require("react/jsx-runtime");
58
87
  var CmrButton = (props) => {
59
- const { children, onClick, ...rest } = props;
60
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, { onClick, ...rest, style: { ...props.style, textTransform: "none" }, children });
88
+ const _a = props, { children, onClick } = _a, rest = __objRest(_a, ["children", "onClick"]);
89
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, __spreadProps(__spreadValues({ onClick }, rest), { style: __spreadProps(__spreadValues({}, props.style), { textTransform: "none" }), children }));
61
90
  };
62
91
  var CmrButton_default = CmrButton;
63
92
 
@@ -70,10 +99,10 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
70
99
  var import_antd = require("antd");
71
100
  var import_jsx_runtime3 = require("react/jsx-runtime");
72
101
  var CmrInput = (props) => {
73
- const { defaultValue, id, maxLength, size, value, type, prefix, bordered, onChange, onPressEnter, ...rest } = props;
102
+ const _a = props, { defaultValue, id, maxLength, size, value, type, prefix, bordered, onChange, onPressEnter } = _a, rest = __objRest(_a, ["defaultValue", "id", "maxLength", "size", "value", "type", "prefix", "bordered", "onChange", "onPressEnter"]);
74
103
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
75
104
  import_antd.Input,
76
- {
105
+ __spreadProps(__spreadValues({
77
106
  defaultValue,
78
107
  id,
79
108
  maxLength,
@@ -82,10 +111,10 @@ var CmrInput = (props) => {
82
111
  type,
83
112
  prefix,
84
113
  onChange,
85
- onPressEnter,
86
- ...rest,
114
+ onPressEnter
115
+ }, rest), {
87
116
  className: "cmr-input"
88
- }
117
+ })
89
118
  );
90
119
  };
91
120
 
@@ -282,7 +311,7 @@ var import_material6 = require("@mui/material");
282
311
  var import_jsx_runtime8 = require("react/jsx-runtime");
283
312
  var CmrLabel = (props) => {
284
313
  const { children, required = false } = props;
285
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { className: "cmr-label", style: { fontSize: "16px", ...props.style }, children: [
314
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { className: "cmr-label", style: __spreadValues({ fontSize: "16px" }, props.style), children: [
286
315
  children,
287
316
  required && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "asterik", children: "*" })
288
317
  ] });
@@ -999,17 +1028,17 @@ var import_Box2 = __toESM(require("@mui/material/Box"));
999
1028
  var import_react7 = require("react");
1000
1029
  var import_jsx_runtime15 = require("react/jsx-runtime");
1001
1030
  function CustomTabPanel(props) {
1002
- const { children, value, index, ...other } = props;
1031
+ const _a = props, { children, value, index } = _a, other = __objRest(_a, ["children", "value", "index"]);
1003
1032
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1004
1033
  "div",
1005
- {
1034
+ __spreadProps(__spreadValues({
1006
1035
  role: "tabpanel",
1007
1036
  hidden: value !== index,
1008
1037
  id: `simple-tabpanel-${index}`,
1009
- "aria-labelledby": `simple-tab-${index}`,
1010
- ...other,
1038
+ "aria-labelledby": `simple-tab-${index}`
1039
+ }, other), {
1011
1040
  children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Box2.default, { sx: { p: 0 }, style: { display: value === index ? void 0 : "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Typography2.default, { children }) })
1012
- }
1041
+ })
1013
1042
  );
1014
1043
  }
1015
1044
  function a11yProps(index) {
@@ -1048,7 +1077,7 @@ function CmrTabs(props) {
1048
1077
  backgroundColor: "#580F8B"
1049
1078
  }
1050
1079
  },
1051
- children: props.tabList.map((tab, index) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Tab.default, { sx: { color: value == index ? "#580F8B" : void 0 }, style: { fontSize: "14px", textTransform: "uppercase", fontWeight: 400 }, label: tab.text, ...a11yProps(index) }))
1080
+ children: props.tabList.map((tab, index) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Tab.default, __spreadValues({ sx: { color: value == index ? "#580F8B" : void 0 }, style: { fontSize: "14px", textTransform: "uppercase", fontWeight: 400 }, label: tab.text }, a11yProps(index))))
1052
1081
  }
1053
1082
  ) }),
1054
1083
  props.tabList.map(
@@ -1066,7 +1095,7 @@ var import_material10 = require("@mui/material");
1066
1095
  var import_material11 = require("@mui/material");
1067
1096
  var import_jsx_runtime16 = require("react/jsx-runtime");
1068
1097
  var CmrCheckbox = (props) => {
1069
- const { defaultChecked, onChange, children, ...rest } = props;
1098
+ const _a = props, { defaultChecked, onChange, children } = _a, rest = __objRest(_a, ["defaultChecked", "onChange", "children"]);
1070
1099
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1071
1100
  import_material11.FormControlLabel,
1072
1101
  {
@@ -1086,8 +1115,8 @@ var Checkbox_default = CmrCheckbox;
1086
1115
  var import_antd2 = require("antd");
1087
1116
  var import_jsx_runtime17 = require("react/jsx-runtime");
1088
1117
  var CmrInputNumber = (props) => {
1089
- const { defaultValue, style, max, min, value, onChange, children, ...rest } = props;
1090
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd2.InputNumber, { defaultValue, max, style, min, value, onChange, ...rest, children });
1118
+ const _a = props, { defaultValue, style, max, min, value, onChange, children } = _a, rest = __objRest(_a, ["defaultValue", "style", "max", "min", "value", "onChange", "children"]);
1119
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_antd2.InputNumber, __spreadProps(__spreadValues({ defaultValue, max, style, min, value, onChange }, rest), { children }));
1091
1120
  };
1092
1121
  var InputNumber_default = CmrInputNumber;
1093
1122
 
@@ -1143,8 +1172,7 @@ var CMRSelectUpload = (props) => {
1143
1172
  fileIndex !== -1 && !uploading && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_material12.Button, { fullWidth: true, sx: { marginLeft: "8px" }, variant: "contained", onClick: onSet, children: "OK" }),
1144
1173
  fileIndex == -1 && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1145
1174
  Upload_default,
1146
- {
1147
- ...props,
1175
+ __spreadProps(__spreadValues({}, props), {
1148
1176
  color: "info",
1149
1177
  fullWidth: true,
1150
1178
  onUploaded: (res, file) => {
@@ -1165,13 +1193,13 @@ var CMRSelectUpload = (props) => {
1165
1193
  setProgress(progress2);
1166
1194
  },
1167
1195
  uploadEnded: () => setUploading(false)
1168
- }
1196
+ })
1169
1197
  )
1170
1198
  ] })
1171
1199
  ] })
1172
1200
  ] });
1173
1201
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_react8.Fragment, { children: [
1174
- uploading ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_material12.Button, { variant: "contained", style: { ...props.style, textTransform: "none" }, sx: { overflowWrap: "inherit" }, color: "primary", disabled: uploading, children: [
1202
+ uploading ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_material12.Button, { variant: "contained", style: __spreadProps(__spreadValues({}, props.style), { textTransform: "none" }), sx: { overflowWrap: "inherit" }, color: "primary", disabled: uploading, children: [
1175
1203
  "Uploading ",
1176
1204
  progress,
1177
1205
  "%"
@@ -1182,7 +1210,7 @@ var CMRSelectUpload = (props) => {
1182
1210
  color: "info",
1183
1211
  onClick: handleClickOpen,
1184
1212
  sx: { marginRight: "10pt" },
1185
- style: { ...props.style, textTransform: "none" },
1213
+ style: __spreadProps(__spreadValues({}, props.style), { textTransform: "none" }),
1186
1214
  children: props.chosenFile == void 0 ? props.buttonText ? props.buttonText : "Choose" : props.chosenFile
1187
1215
  }
1188
1216
  ),
@@ -1195,7 +1223,7 @@ var SelectUpload_default = CMRSelectUpload;
1195
1223
  var import_antd3 = require("antd");
1196
1224
  var import_jsx_runtime19 = require("react/jsx-runtime");
1197
1225
  var CmrTooltip = (props) => {
1198
- const {
1226
+ const _a = props, {
1199
1227
  arrowPointAtCenter,
1200
1228
  autoAdjustOverflow,
1201
1229
  color,
@@ -1204,12 +1232,21 @@ var CmrTooltip = (props) => {
1204
1232
  mouseLeaveDelay,
1205
1233
  overlayClassName,
1206
1234
  placement,
1207
- visible,
1208
- ...rest
1209
- } = props;
1235
+ visible
1236
+ } = _a, rest = __objRest(_a, [
1237
+ "arrowPointAtCenter",
1238
+ "autoAdjustOverflow",
1239
+ "color",
1240
+ "defaultVisible",
1241
+ "mouseEnterDelay",
1242
+ "mouseLeaveDelay",
1243
+ "overlayClassName",
1244
+ "placement",
1245
+ "visible"
1246
+ ]);
1210
1247
  return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1211
1248
  import_antd3.Tooltip,
1212
- {
1249
+ __spreadValues({
1213
1250
  arrowPointAtCenter,
1214
1251
  autoAdjustOverflow,
1215
1252
  color,
@@ -1218,9 +1255,8 @@ var CmrTooltip = (props) => {
1218
1255
  mouseLeaveDelay,
1219
1256
  overlayClassName,
1220
1257
  placement,
1221
- visible,
1222
- ...rest
1223
- }
1258
+ visible
1259
+ }, rest)
1224
1260
  );
1225
1261
  };
1226
1262
  var Tooltip_default = CmrTooltip;
@@ -1229,23 +1265,29 @@ var Tooltip_default = CmrTooltip;
1229
1265
  var import_x_data_grid = require("@mui/x-data-grid");
1230
1266
  var import_jsx_runtime20 = require("react/jsx-runtime");
1231
1267
  var CmrTable = (props) => {
1232
- const {
1268
+ const _a = props, {
1233
1269
  dataSource,
1234
1270
  columns,
1235
1271
  idAlias,
1236
1272
  className,
1237
1273
  onRowSelectionModelChange,
1238
1274
  style,
1239
- showCheckbox = true,
1240
- ...rest
1241
- } = props;
1242
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: style ?? { height: "400px", width: "100%" }, className: className ?? "", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1275
+ showCheckbox = true
1276
+ } = _a, rest = __objRest(_a, [
1277
+ "dataSource",
1278
+ "columns",
1279
+ "idAlias",
1280
+ "className",
1281
+ "onRowSelectionModelChange",
1282
+ "style",
1283
+ "showCheckbox"
1284
+ ]);
1285
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: style != null ? style : { height: "400px", width: "100%" }, className: className != null ? className : "", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1243
1286
  import_x_data_grid.DataGrid,
1244
- {
1245
- rows: dataSource ? dataSource.map((row) => ({
1246
- id: idAlias ? row[idAlias] : row["id"],
1247
- ...row
1248
- })) : [],
1287
+ __spreadValues({
1288
+ rows: dataSource ? dataSource.map((row) => __spreadValues({
1289
+ id: idAlias ? row[idAlias] : row["id"]
1290
+ }, row)) : [],
1249
1291
  columns,
1250
1292
  checkboxSelection: showCheckbox,
1251
1293
  onRowSelectionModelChange,
@@ -1254,9 +1296,8 @@ var CmrTable = (props) => {
1254
1296
  paginationModel: { pageSize: 50, page: 0 }
1255
1297
  }
1256
1298
  },
1257
- localeText: { noRowsLabel: "" },
1258
- ...rest
1259
- }
1299
+ localeText: { noRowsLabel: "" }
1300
+ }, rest)
1260
1301
  ) });
1261
1302
  };
1262
1303
  var CmrTable_default = CmrTable;
package/dist/index.mjs CHANGED
@@ -1,9 +1,41 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+
1
33
  // src/CmrComponents/CmrButton/CmrButton.tsx
2
34
  import { Button } from "@mui/material";
3
35
  import { jsx } from "react/jsx-runtime";
4
36
  var CmrButton = (props) => {
5
- const { children, onClick, ...rest } = props;
6
- return /* @__PURE__ */ jsx(Button, { onClick, ...rest, style: { ...props.style, textTransform: "none" }, children });
37
+ const _a = props, { children, onClick } = _a, rest = __objRest(_a, ["children", "onClick"]);
38
+ return /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({ onClick }, rest), { style: __spreadProps(__spreadValues({}, props.style), { textTransform: "none" }), children }));
7
39
  };
8
40
  var CmrButton_default = CmrButton;
9
41
 
@@ -16,10 +48,10 @@ import { jsx as jsx2 } from "react/jsx-runtime";
16
48
  import { Input } from "antd";
17
49
  import { jsx as jsx3 } from "react/jsx-runtime";
18
50
  var CmrInput = (props) => {
19
- const { defaultValue, id, maxLength, size, value, type, prefix, bordered, onChange, onPressEnter, ...rest } = props;
51
+ const _a = props, { defaultValue, id, maxLength, size, value, type, prefix, bordered, onChange, onPressEnter } = _a, rest = __objRest(_a, ["defaultValue", "id", "maxLength", "size", "value", "type", "prefix", "bordered", "onChange", "onPressEnter"]);
20
52
  return /* @__PURE__ */ jsx3(
21
53
  Input,
22
- {
54
+ __spreadProps(__spreadValues({
23
55
  defaultValue,
24
56
  id,
25
57
  maxLength,
@@ -28,10 +60,10 @@ var CmrInput = (props) => {
28
60
  type,
29
61
  prefix,
30
62
  onChange,
31
- onPressEnter,
32
- ...rest,
63
+ onPressEnter
64
+ }, rest), {
33
65
  className: "cmr-input"
34
- }
66
+ })
35
67
  );
36
68
  };
37
69
 
@@ -234,7 +266,7 @@ import { Alert, Collapse, MenuItem as MenuItem2 } from "@mui/material";
234
266
  import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
235
267
  var CmrLabel = (props) => {
236
268
  const { children, required = false } = props;
237
- return /* @__PURE__ */ jsxs4("label", { className: "cmr-label", style: { fontSize: "16px", ...props.style }, children: [
269
+ return /* @__PURE__ */ jsxs4("label", { className: "cmr-label", style: __spreadValues({ fontSize: "16px" }, props.style), children: [
238
270
  children,
239
271
  required && /* @__PURE__ */ jsx8("span", { className: "asterik", children: "*" })
240
272
  ] });
@@ -951,17 +983,17 @@ import Box3 from "@mui/material/Box";
951
983
  import { cloneElement as cloneElement2 } from "react";
952
984
  import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
953
985
  function CustomTabPanel(props) {
954
- const { children, value, index, ...other } = props;
986
+ const _a = props, { children, value, index } = _a, other = __objRest(_a, ["children", "value", "index"]);
955
987
  return /* @__PURE__ */ jsx15(
956
988
  "div",
957
- {
989
+ __spreadProps(__spreadValues({
958
990
  role: "tabpanel",
959
991
  hidden: value !== index,
960
992
  id: `simple-tabpanel-${index}`,
961
- "aria-labelledby": `simple-tab-${index}`,
962
- ...other,
993
+ "aria-labelledby": `simple-tab-${index}`
994
+ }, other), {
963
995
  children: /* @__PURE__ */ jsx15(Box3, { sx: { p: 0 }, style: { display: value === index ? void 0 : "none" }, children: /* @__PURE__ */ jsx15(Typography3, { children }) })
964
- }
996
+ })
965
997
  );
966
998
  }
967
999
  function a11yProps(index) {
@@ -1000,7 +1032,7 @@ function CmrTabs(props) {
1000
1032
  backgroundColor: "#580F8B"
1001
1033
  }
1002
1034
  },
1003
- children: props.tabList.map((tab, index) => /* @__PURE__ */ jsx15(Tab, { sx: { color: value == index ? "#580F8B" : void 0 }, style: { fontSize: "14px", textTransform: "uppercase", fontWeight: 400 }, label: tab.text, ...a11yProps(index) }))
1035
+ children: props.tabList.map((tab, index) => /* @__PURE__ */ jsx15(Tab, __spreadValues({ sx: { color: value == index ? "#580F8B" : void 0 }, style: { fontSize: "14px", textTransform: "uppercase", fontWeight: 400 }, label: tab.text }, a11yProps(index))))
1004
1036
  }
1005
1037
  ) }),
1006
1038
  props.tabList.map(
@@ -1018,7 +1050,7 @@ import { Checkbox as Checkbox2 } from "@mui/material";
1018
1050
  import { FormControlLabel as FormControlLabel3 } from "@mui/material";
1019
1051
  import { jsx as jsx16 } from "react/jsx-runtime";
1020
1052
  var CmrCheckbox = (props) => {
1021
- const { defaultChecked, onChange, children, ...rest } = props;
1053
+ const _a = props, { defaultChecked, onChange, children } = _a, rest = __objRest(_a, ["defaultChecked", "onChange", "children"]);
1022
1054
  return /* @__PURE__ */ jsx16(
1023
1055
  FormControlLabel3,
1024
1056
  {
@@ -1038,8 +1070,8 @@ var Checkbox_default = CmrCheckbox;
1038
1070
  import { InputNumber } from "antd";
1039
1071
  import { jsx as jsx17 } from "react/jsx-runtime";
1040
1072
  var CmrInputNumber = (props) => {
1041
- const { defaultValue, style, max, min, value, onChange, children, ...rest } = props;
1042
- return /* @__PURE__ */ jsx17(InputNumber, { defaultValue, max, style, min, value, onChange, ...rest, children });
1073
+ const _a = props, { defaultValue, style, max, min, value, onChange, children } = _a, rest = __objRest(_a, ["defaultValue", "style", "max", "min", "value", "onChange", "children"]);
1074
+ return /* @__PURE__ */ jsx17(InputNumber, __spreadProps(__spreadValues({ defaultValue, max, style, min, value, onChange }, rest), { children }));
1043
1075
  };
1044
1076
  var InputNumber_default = CmrInputNumber;
1045
1077
 
@@ -1095,8 +1127,7 @@ var CMRSelectUpload = (props) => {
1095
1127
  fileIndex !== -1 && !uploading && /* @__PURE__ */ jsx18(Button4, { fullWidth: true, sx: { marginLeft: "8px" }, variant: "contained", onClick: onSet, children: "OK" }),
1096
1128
  fileIndex == -1 && /* @__PURE__ */ jsx18(
1097
1129
  Upload_default,
1098
- {
1099
- ...props,
1130
+ __spreadProps(__spreadValues({}, props), {
1100
1131
  color: "info",
1101
1132
  fullWidth: true,
1102
1133
  onUploaded: (res, file) => {
@@ -1117,13 +1148,13 @@ var CMRSelectUpload = (props) => {
1117
1148
  setProgress(progress2);
1118
1149
  },
1119
1150
  uploadEnded: () => setUploading(false)
1120
- }
1151
+ })
1121
1152
  )
1122
1153
  ] })
1123
1154
  ] })
1124
1155
  ] });
1125
1156
  return /* @__PURE__ */ jsxs12(Fragment, { children: [
1126
- uploading ? /* @__PURE__ */ jsxs12(Button4, { variant: "contained", style: { ...props.style, textTransform: "none" }, sx: { overflowWrap: "inherit" }, color: "primary", disabled: uploading, children: [
1157
+ uploading ? /* @__PURE__ */ jsxs12(Button4, { variant: "contained", style: __spreadProps(__spreadValues({}, props.style), { textTransform: "none" }), sx: { overflowWrap: "inherit" }, color: "primary", disabled: uploading, children: [
1127
1158
  "Uploading ",
1128
1159
  progress,
1129
1160
  "%"
@@ -1134,7 +1165,7 @@ var CMRSelectUpload = (props) => {
1134
1165
  color: "info",
1135
1166
  onClick: handleClickOpen,
1136
1167
  sx: { marginRight: "10pt" },
1137
- style: { ...props.style, textTransform: "none" },
1168
+ style: __spreadProps(__spreadValues({}, props.style), { textTransform: "none" }),
1138
1169
  children: props.chosenFile == void 0 ? props.buttonText ? props.buttonText : "Choose" : props.chosenFile
1139
1170
  }
1140
1171
  ),
@@ -1147,7 +1178,7 @@ var SelectUpload_default = CMRSelectUpload;
1147
1178
  import { Tooltip } from "antd";
1148
1179
  import { jsx as jsx19 } from "react/jsx-runtime";
1149
1180
  var CmrTooltip = (props) => {
1150
- const {
1181
+ const _a = props, {
1151
1182
  arrowPointAtCenter,
1152
1183
  autoAdjustOverflow,
1153
1184
  color,
@@ -1156,12 +1187,21 @@ var CmrTooltip = (props) => {
1156
1187
  mouseLeaveDelay,
1157
1188
  overlayClassName,
1158
1189
  placement,
1159
- visible,
1160
- ...rest
1161
- } = props;
1190
+ visible
1191
+ } = _a, rest = __objRest(_a, [
1192
+ "arrowPointAtCenter",
1193
+ "autoAdjustOverflow",
1194
+ "color",
1195
+ "defaultVisible",
1196
+ "mouseEnterDelay",
1197
+ "mouseLeaveDelay",
1198
+ "overlayClassName",
1199
+ "placement",
1200
+ "visible"
1201
+ ]);
1162
1202
  return /* @__PURE__ */ jsx19(
1163
1203
  Tooltip,
1164
- {
1204
+ __spreadValues({
1165
1205
  arrowPointAtCenter,
1166
1206
  autoAdjustOverflow,
1167
1207
  color,
@@ -1170,9 +1210,8 @@ var CmrTooltip = (props) => {
1170
1210
  mouseLeaveDelay,
1171
1211
  overlayClassName,
1172
1212
  placement,
1173
- visible,
1174
- ...rest
1175
- }
1213
+ visible
1214
+ }, rest)
1176
1215
  );
1177
1216
  };
1178
1217
  var Tooltip_default = CmrTooltip;
@@ -1181,23 +1220,29 @@ var Tooltip_default = CmrTooltip;
1181
1220
  import { DataGrid } from "@mui/x-data-grid";
1182
1221
  import { jsx as jsx20 } from "react/jsx-runtime";
1183
1222
  var CmrTable = (props) => {
1184
- const {
1223
+ const _a = props, {
1185
1224
  dataSource,
1186
1225
  columns,
1187
1226
  idAlias,
1188
1227
  className,
1189
1228
  onRowSelectionModelChange,
1190
1229
  style,
1191
- showCheckbox = true,
1192
- ...rest
1193
- } = props;
1194
- return /* @__PURE__ */ jsx20("div", { style: style ?? { height: "400px", width: "100%" }, className: className ?? "", children: /* @__PURE__ */ jsx20(
1230
+ showCheckbox = true
1231
+ } = _a, rest = __objRest(_a, [
1232
+ "dataSource",
1233
+ "columns",
1234
+ "idAlias",
1235
+ "className",
1236
+ "onRowSelectionModelChange",
1237
+ "style",
1238
+ "showCheckbox"
1239
+ ]);
1240
+ return /* @__PURE__ */ jsx20("div", { style: style != null ? style : { height: "400px", width: "100%" }, className: className != null ? className : "", children: /* @__PURE__ */ jsx20(
1195
1241
  DataGrid,
1196
- {
1197
- rows: dataSource ? dataSource.map((row) => ({
1198
- id: idAlias ? row[idAlias] : row["id"],
1199
- ...row
1200
- })) : [],
1242
+ __spreadValues({
1243
+ rows: dataSource ? dataSource.map((row) => __spreadValues({
1244
+ id: idAlias ? row[idAlias] : row["id"]
1245
+ }, row)) : [],
1201
1246
  columns,
1202
1247
  checkboxSelection: showCheckbox,
1203
1248
  onRowSelectionModelChange,
@@ -1206,9 +1251,8 @@ var CmrTable = (props) => {
1206
1251
  paginationModel: { pageSize: 50, page: 0 }
1207
1252
  }
1208
1253
  },
1209
- localeText: { noRowsLabel: "" },
1210
- ...rest
1211
- }
1254
+ localeText: { noRowsLabel: "" }
1255
+ }, rest)
1212
1256
  ) });
1213
1257
  };
1214
1258
  var CmrTable_default = CmrTable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "1.4.8",
3
+ "version": "1.5.0",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "scripts": {
14
14
  "build": "tsup src/index.ts --format cjs,esm --external react,react-dom",
15
- "build:typed": "tsup src/index.ts --format cjs,esm --dts --external react,react-dom"
15
+ "build:typed": "tsup src/index.ts --format cjs,esm --dts --external react,react-dom,axios"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": "^18.0.0",