react-table-edit 0.5.3 → 0.5.4

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
@@ -2201,7 +2201,7 @@ var TableEdit = (0, import_react13.forwardRef)((props, ref) => {
2201
2201
  },
2202
2202
  children: [
2203
2203
  item.icon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(icon_default, { iconName: item.icon, size: 16 }),
2204
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.UncontrolledTooltip, { target: `command-item-${i}`, place: "top", children: t(item.tooltip ?? "") })
2204
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.UncontrolledTooltip, { className: "r-tooltip", target: `command-item-${i}`, place: "top", children: t(item.tooltip ?? "") })
2205
2205
  ]
2206
2206
  },
2207
2207
  `command-${index}`
@@ -2700,8 +2700,15 @@ var TableEdit = (0, import_react13.forwardRef)((props, ref) => {
2700
2700
  children: [
2701
2701
  typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { id: `content-${indexRow}-${indexCol}`, className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }),
2702
2702
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { id: `error-${indexRow}-${indexCol}`, className: (0, import_classnames11.default)("cursor-pointer text-primary icon-table", { "d-none": !errorMessage }), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_becoxy_icons5.AlertCircle, { fontSize: 15.5 }) }),
2703
- !(typeDis === 1 && !refreshRow) && col.haveToolTip && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.UncontrolledTooltip, { style: { fontSize: 11 }, autohide: false, target: `content-${indexRow}-${indexCol}`, children: typeDis === 2 ? col.template(row, indexRow) : value }),
2704
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.UncontrolledTooltip, { target: `error-${indexRow}-${indexCol}`, children: errorMessage?.toString() ?? "" })
2703
+ !(typeDis === 1 && !refreshRow) && col.haveToolTip && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_reactstrap8.UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${indexRow}-${indexCol}`, children: typeDis === 2 ? col.template(row, indexRow) : value }),
2704
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2705
+ import_reactstrap8.UncontrolledTooltip,
2706
+ {
2707
+ target: `error-${indexRow}-${indexCol}`,
2708
+ className: "r-tooltip tooltip-error",
2709
+ children: errorMessage?.toString() ?? ""
2710
+ }
2711
+ )
2705
2712
  ]
2706
2713
  }
2707
2714
  )
package/dist/index.mjs CHANGED
@@ -2159,7 +2159,7 @@ var TableEdit = forwardRef2((props, ref) => {
2159
2159
  },
2160
2160
  children: [
2161
2161
  item.icon && /* @__PURE__ */ jsx13(icon_default, { iconName: item.icon, size: 16 }),
2162
- /* @__PURE__ */ jsx13(UncontrolledTooltip, { target: `command-item-${i}`, place: "top", children: t(item.tooltip ?? "") })
2162
+ /* @__PURE__ */ jsx13(UncontrolledTooltip, { className: "r-tooltip", target: `command-item-${i}`, place: "top", children: t(item.tooltip ?? "") })
2163
2163
  ]
2164
2164
  },
2165
2165
  `command-${index}`
@@ -2658,8 +2658,15 @@ var TableEdit = forwardRef2((props, ref) => {
2658
2658
  children: [
2659
2659
  typeDis === 1 && !refreshRow ? renderEdit(row, col, indexRow, indexCol) : /* @__PURE__ */ jsx13("div", { id: `content-${indexRow}-${indexCol}`, className: "r-cell-text", children: typeDis === 2 ? col.template(row, indexRow) : value }),
2660
2660
  /* @__PURE__ */ jsx13("span", { id: `error-${indexRow}-${indexCol}`, className: classnames6("cursor-pointer text-primary icon-table", { "d-none": !errorMessage }), children: /* @__PURE__ */ jsx13(AlertCircle, { fontSize: 15.5 }) }),
2661
- !(typeDis === 1 && !refreshRow) && col.haveToolTip && /* @__PURE__ */ jsx13(UncontrolledTooltip, { style: { fontSize: 11 }, autohide: false, target: `content-${indexRow}-${indexCol}`, children: typeDis === 2 ? col.template(row, indexRow) : value }),
2662
- /* @__PURE__ */ jsx13(UncontrolledTooltip, { target: `error-${indexRow}-${indexCol}`, children: errorMessage?.toString() ?? "" })
2661
+ !(typeDis === 1 && !refreshRow) && col.haveToolTip && /* @__PURE__ */ jsx13(UncontrolledTooltip, { className: "r-tooltip", autohide: false, target: `content-${indexRow}-${indexCol}`, children: typeDis === 2 ? col.template(row, indexRow) : value }),
2662
+ /* @__PURE__ */ jsx13(
2663
+ UncontrolledTooltip,
2664
+ {
2665
+ target: `error-${indexRow}-${indexCol}`,
2666
+ className: "r-tooltip tooltip-error",
2667
+ children: errorMessage?.toString() ?? ""
2668
+ }
2669
+ )
2663
2670
  ]
2664
2671
  }
2665
2672
  )
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "0.5.3",
4
+ "version": "0.5.4",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",