cloudmr-ux 1.3.3 → 1.3.5

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.css CHANGED
@@ -146,15 +146,13 @@
146
146
 
147
147
  /* src/CmrComponents/input-number/InputNumber.css */
148
148
 
149
+ /* src/CmrComponents/tooltip/Tooltip.css */
150
+
149
151
  /* src/CmrTable/CmrTable.css */
150
152
  .css-1lymaxv-MuiDataGrid-root .MuiDataGrid-columnHeader:focus-within,
151
153
  .css-1lymaxv-MuiDataGrid-root .MuiDataGrid-cell:focus-within {
152
154
  outline: none !important;
153
155
  }
154
- .MuiTablePagination-selectLabel,
155
- .MuiTablePagination-displayedRows {
156
- margin-bottom: 0;
157
- }
158
156
  .MuiDataGrid-columnHeaders {
159
157
  background: rgba(88, 15, 139, 0.08);
160
158
  color: #333;
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import { SizeType } from 'antd/lib/config-provider/SizeContext';
6
6
  import { CollapsibleType } from 'antd/es/collapse/CollapsePanel';
7
7
  import { ExpandIconPosition } from 'antd/es/collapse/Collapse';
8
8
  import { AxiosRequestConfig, AxiosResponse } from 'axios';
9
+ import { TooltipPlacement } from 'antd/lib/tooltip';
9
10
  import { DataGridProps } from '@mui/x-data-grid';
10
11
 
11
12
  declare const CmrButton: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
@@ -282,6 +283,21 @@ interface UploadWindowProps {
282
283
  }
283
284
  declare function CmrUploadWindow({ upload, open, setOpen, fileExtension, template, }: UploadWindowProps): react_jsx_runtime.JSX.Element;
284
285
 
286
+ interface CmrTooltipProps {
287
+ arrowPointAtCenter?: boolean;
288
+ autoAdjustOverflow?: boolean;
289
+ color?: string;
290
+ defaultVisible?: boolean;
291
+ mouseEnterDelay?: number;
292
+ mouseLeaveDelay?: number;
293
+ overlayClassName?: string;
294
+ placement?: TooltipPlacement;
295
+ visible?: boolean;
296
+ title: React__default.ReactNode;
297
+ overlay?: React__default.ReactNode;
298
+ }
299
+ declare const CmrTooltip: (props: CmrTooltipProps) => react_jsx_runtime.JSX.Element;
300
+
285
301
  interface CmrTableProps extends Omit<DataGridProps, 'rows'> {
286
302
  dataSource: any[];
287
303
  idAlias?: string;
@@ -292,4 +308,4 @@ interface CmrTableProps extends Omit<DataGridProps, 'rows'> {
292
308
 
293
309
  declare const CmrTable: FC<CmrTableProps>;
294
310
 
295
- export { CMRSelectUpload, CmrUpload as CMRUpload, CmrButton, CmrCheckbox, CmrCollapse, CmrConfirmation, CmrDeletionDialog, CmrEditConfirmation, CmrInput, CmrInputNumber, CmrLabel, CmrNameDialog, CmrPanel, CmrRadioGroup, CmrSelect, CmrTable, CmrTableProps, CmrTabs, CmrUploadWindow, LambdaFile };
311
+ export { CMRSelectUpload, CmrUpload as CMRUpload, CmrButton, CmrCheckbox, CmrCollapse, CmrConfirmation, CmrDeletionDialog, CmrEditConfirmation, CmrInput, CmrInputNumber, CmrLabel, CmrNameDialog, CmrPanel, CmrRadioGroup, CmrSelect, CmrTable, CmrTableProps, CmrTabs, CmrTooltip, CmrUploadWindow, LambdaFile };
package/dist/index.js CHANGED
@@ -47,6 +47,7 @@ __export(src_exports, {
47
47
  CmrSelect: () => CmrSelect_default,
48
48
  CmrTable: () => CmrTable2,
49
49
  CmrTabs: () => CmrTabs,
50
+ CmrTooltip: () => Tooltip_default,
50
51
  CmrUploadWindow: () => CmrUploadWindow
51
52
  });
52
53
  module.exports = __toCommonJS(src_exports);
@@ -856,7 +857,7 @@ function CmrConfirmation({
856
857
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_DialogContent3.default, { sx: { width }, children: [
857
858
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_DialogContentText2.default, { alignContent: "center", children: message }),
858
859
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_DialogActions3.default, { className: "mt-4", children: [
859
- cancellable && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CmrButton_default, { variant: "outlined", color: "inherit", sx: { color: "#333" }, onClick: handleCancel, children: cancelText }),
860
+ cancellable && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CmrButton_default, { variant: "outlined", onClick: handleCancel, children: cancelText }),
860
861
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CmrButton_default, { variant: "contained", color, onClick: handleConfirm, children: confirmText })
861
862
  ] })
862
863
  ] })
@@ -1183,9 +1184,43 @@ var CMRSelectUpload = (props) => {
1183
1184
  };
1184
1185
  var SelectUpload_default = CMRSelectUpload;
1185
1186
 
1187
+ // src/CmrComponents/tooltip/Tooltip.tsx
1188
+ var import_antd3 = require("antd");
1189
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1190
+ var CmrTooltip = (props) => {
1191
+ const {
1192
+ arrowPointAtCenter,
1193
+ autoAdjustOverflow,
1194
+ color,
1195
+ defaultVisible,
1196
+ mouseEnterDelay,
1197
+ mouseLeaveDelay,
1198
+ overlayClassName,
1199
+ placement,
1200
+ visible,
1201
+ ...rest
1202
+ } = props;
1203
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1204
+ import_antd3.Tooltip,
1205
+ {
1206
+ arrowPointAtCenter,
1207
+ autoAdjustOverflow,
1208
+ color,
1209
+ defaultVisible,
1210
+ mouseEnterDelay,
1211
+ mouseLeaveDelay,
1212
+ overlayClassName,
1213
+ placement,
1214
+ visible,
1215
+ ...rest
1216
+ }
1217
+ );
1218
+ };
1219
+ var Tooltip_default = CmrTooltip;
1220
+
1186
1221
  // src/CmrTable/CmrTable.tsx
1187
1222
  var import_x_data_grid = require("@mui/x-data-grid");
1188
- var import_jsx_runtime19 = require("react/jsx-runtime");
1223
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1189
1224
  var CmrTable = (props) => {
1190
1225
  const {
1191
1226
  dataSource,
@@ -1197,7 +1232,7 @@ var CmrTable = (props) => {
1197
1232
  showCheckbox = true,
1198
1233
  ...rest
1199
1234
  } = props;
1200
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { style: style ?? { height: "400px", width: "100%" }, className: className ?? "", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1235
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { style: style ?? { height: "400px", width: "100%" }, className: className ?? "", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1201
1236
  import_x_data_grid.DataGrid,
1202
1237
  {
1203
1238
  rows: dataSource ? dataSource.map((row) => ({
@@ -1240,5 +1275,6 @@ var CmrTable2 = CmrTable_default;
1240
1275
  CmrSelect,
1241
1276
  CmrTable,
1242
1277
  CmrTabs,
1278
+ CmrTooltip,
1243
1279
  CmrUploadWindow
1244
1280
  });
package/dist/index.mjs CHANGED
@@ -809,7 +809,7 @@ function CmrConfirmation({
809
809
  /* @__PURE__ */ jsxs8(DialogContent3, { sx: { width }, children: [
810
810
  /* @__PURE__ */ jsx12(DialogContentText2, { alignContent: "center", children: message }),
811
811
  /* @__PURE__ */ jsxs8(DialogActions3, { className: "mt-4", children: [
812
- cancellable && /* @__PURE__ */ jsx12(CmrButton_default, { variant: "outlined", color: "inherit", sx: { color: "#333" }, onClick: handleCancel, children: cancelText }),
812
+ cancellable && /* @__PURE__ */ jsx12(CmrButton_default, { variant: "outlined", onClick: handleCancel, children: cancelText }),
813
813
  /* @__PURE__ */ jsx12(CmrButton_default, { variant: "contained", color, onClick: handleConfirm, children: confirmText })
814
814
  ] })
815
815
  ] })
@@ -1136,9 +1136,43 @@ var CMRSelectUpload = (props) => {
1136
1136
  };
1137
1137
  var SelectUpload_default = CMRSelectUpload;
1138
1138
 
1139
+ // src/CmrComponents/tooltip/Tooltip.tsx
1140
+ import { Tooltip } from "antd";
1141
+ import { jsx as jsx19 } from "react/jsx-runtime";
1142
+ var CmrTooltip = (props) => {
1143
+ const {
1144
+ arrowPointAtCenter,
1145
+ autoAdjustOverflow,
1146
+ color,
1147
+ defaultVisible,
1148
+ mouseEnterDelay,
1149
+ mouseLeaveDelay,
1150
+ overlayClassName,
1151
+ placement,
1152
+ visible,
1153
+ ...rest
1154
+ } = props;
1155
+ return /* @__PURE__ */ jsx19(
1156
+ Tooltip,
1157
+ {
1158
+ arrowPointAtCenter,
1159
+ autoAdjustOverflow,
1160
+ color,
1161
+ defaultVisible,
1162
+ mouseEnterDelay,
1163
+ mouseLeaveDelay,
1164
+ overlayClassName,
1165
+ placement,
1166
+ visible,
1167
+ ...rest
1168
+ }
1169
+ );
1170
+ };
1171
+ var Tooltip_default = CmrTooltip;
1172
+
1139
1173
  // src/CmrTable/CmrTable.tsx
1140
1174
  import { DataGrid } from "@mui/x-data-grid";
1141
- import { jsx as jsx19 } from "react/jsx-runtime";
1175
+ import { jsx as jsx20 } from "react/jsx-runtime";
1142
1176
  var CmrTable = (props) => {
1143
1177
  const {
1144
1178
  dataSource,
@@ -1150,7 +1184,7 @@ var CmrTable = (props) => {
1150
1184
  showCheckbox = true,
1151
1185
  ...rest
1152
1186
  } = props;
1153
- return /* @__PURE__ */ jsx19("div", { style: style ?? { height: "400px", width: "100%" }, className: className ?? "", children: /* @__PURE__ */ jsx19(
1187
+ return /* @__PURE__ */ jsx20("div", { style: style ?? { height: "400px", width: "100%" }, className: className ?? "", children: /* @__PURE__ */ jsx20(
1154
1188
  DataGrid,
1155
1189
  {
1156
1190
  rows: dataSource ? dataSource.map((row) => ({
@@ -1192,5 +1226,6 @@ export {
1192
1226
  CmrSelect_default as CmrSelect,
1193
1227
  CmrTable2 as CmrTable,
1194
1228
  CmrTabs,
1229
+ Tooltip_default as CmrTooltip,
1195
1230
  CmrUploadWindow
1196
1231
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",