componenteshospitais 4.3.7 → 4.3.8

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/cjs/index.js CHANGED
@@ -17030,7 +17030,7 @@ var TableStandardButtons = function (_a) {
17030
17030
  } }, m.nome))); })))),
17031
17031
  row[key].typeColumn && row[key].typeColumn === 'icon' &&
17032
17032
  React.createElement("div", { className: "".concat(styles$2.cellIcon, " ").concat(styles$2.cellIconEye, " ").concat(row[key].disabled ? styles$2.iconDisabled : ''), "data-inativo": row[key].inativo ? row[key].inativo : false, title: ((_o = row[key]) === null || _o === void 0 ? void 0 : _o.tooltip) ? (_p = row[key]) === null || _p === void 0 ? void 0 : _p.tooltip : key.charAt(0).toUpperCase() + key.slice(1) },
17033
- row[key].icon && (React.createElement("span", { className: "".concat(styles$2.icon, " ").concat(row[key].iconButton, " ").concat(row[key].disabled ? styles$2.iconDisabled : ''), onClick: function () { return handleClick(row, key); }, style: { cursor: row[key].onClick ? 'pointer' : '' } }, row[key].icon)),
17033
+ row[key].icon && (React.createElement("span", { className: "".concat(styles$2.icon, " ").concat(row[key].iconButton, " ").concat(row[key].disabled ? styles$2.iconDisabled : ''), onClick: function () { return handleClick(row, key); }, style: { cursor: row[key].onClick ? 'pointer' : '' }, "data-button": "true" }, row[key].icon)),
17034
17034
  React.createElement("div", { style: { display: "flex" } },
17035
17035
  React.createElement("div", { style: { color: row[key].colorCell ? row[key].colorCell : '' } }, row[key].value && (row[key].maxLength ? limitaTexto(row[key].value, row[key].maxLength) : row[key].value)),
17036
17036
  row[key].maxLength && row[key].value &&
package/dist/esm/index.js CHANGED
@@ -17028,7 +17028,7 @@ var TableStandardButtons = function (_a) {
17028
17028
  } }, m.nome))); })))),
17029
17029
  row[key].typeColumn && row[key].typeColumn === 'icon' &&
17030
17030
  React.createElement("div", { className: "".concat(styles$2.cellIcon, " ").concat(styles$2.cellIconEye, " ").concat(row[key].disabled ? styles$2.iconDisabled : ''), "data-inativo": row[key].inativo ? row[key].inativo : false, title: ((_o = row[key]) === null || _o === void 0 ? void 0 : _o.tooltip) ? (_p = row[key]) === null || _p === void 0 ? void 0 : _p.tooltip : key.charAt(0).toUpperCase() + key.slice(1) },
17031
- row[key].icon && (React.createElement("span", { className: "".concat(styles$2.icon, " ").concat(row[key].iconButton, " ").concat(row[key].disabled ? styles$2.iconDisabled : ''), onClick: function () { return handleClick(row, key); }, style: { cursor: row[key].onClick ? 'pointer' : '' } }, row[key].icon)),
17031
+ row[key].icon && (React.createElement("span", { className: "".concat(styles$2.icon, " ").concat(row[key].iconButton, " ").concat(row[key].disabled ? styles$2.iconDisabled : ''), onClick: function () { return handleClick(row, key); }, style: { cursor: row[key].onClick ? 'pointer' : '' }, "data-button": "true" }, row[key].icon)),
17032
17032
  React.createElement("div", { style: { display: "flex" } },
17033
17033
  React.createElement("div", { style: { color: row[key].colorCell ? row[key].colorCell : '' } }, row[key].value && (row[key].maxLength ? limitaTexto(row[key].value, row[key].maxLength) : row[key].value)),
17034
17034
  row[key].maxLength && row[key].value &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "componenteshospitais",
3
- "version": "4.3.7",
3
+ "version": "4.3.8",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -409,6 +409,7 @@ const TableStandardButtons: React.FC<TableStandardButtonsProps> = ({
409
409
  className={`${styles.icon} ${row[key].iconButton} ${row[key].disabled ? styles.iconDisabled : ''}`}
410
410
  onClick={()=>handleClick(row, key)}
411
411
  style={{cursor: row[key].onClick ? 'pointer' : ''}}
412
+ data-button="true"
412
413
  >
413
414
  {row[key].icon}
414
415
  </span>