react-better-html 1.1.109 → 1.1.110

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
@@ -6860,7 +6860,7 @@ var ColorThemeSwitch_default = ColorThemeSwitch2;
6860
6860
  var import_react23 = require("react");
6861
6861
  var import_styled_components11 = __toESM(require("styled-components"));
6862
6862
  var import_jsx_runtime21 = require("react/jsx-runtime");
6863
- var defaultImageWidth = 120;
6863
+ var defaultImageWidth = 160;
6864
6864
  var maximumVisiblePages = 11;
6865
6865
  var TableStyledComponent = import_styled_components11.default.table.withConfig({
6866
6866
  shouldForwardProp: (prop) => !["isStriped", "withHover", "withStickyHeader", "colorTheme", "theme"].includes(prop)
@@ -7006,15 +7006,7 @@ var TableComponent = (0, import_react23.forwardRef)(function Table({
7006
7006
  }
7007
7007
  case "image": {
7008
7008
  const src = column.getImageSrc?.(item, index) ?? (column.keyName ? item[column.keyName] : void 0);
7009
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7010
- Image_default,
7011
- {
7012
- src,
7013
- width: defaultImageWidth,
7014
- borderRadius: theme2.styles.borderRadius / 2,
7015
- ...column.imageProps
7016
- }
7017
- );
7009
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Image_default, { src, width: "100%", borderRadius: theme2.styles.borderRadius / 2, ...column.imageProps });
7018
7010
  }
7019
7011
  case "checkbox": {
7020
7012
  const { onChange, ...toggleInputProps } = column.toggleInputProps ?? {};
@@ -7294,7 +7286,7 @@ var TableComponent = (0, import_react23.forwardRef)(function Table({
7294
7286
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("tr", { className: "isHeader", children: columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7295
7287
  ThStyledComponent,
7296
7288
  {
7297
- width: column.type === "image" ? defaultImageWidth : column.type === "checkbox" ? 26 : column.width,
7289
+ width: column.width ?? (column.type === "image" ? defaultImageWidth : column.type === "checkbox" ? 26 : void 0),
7298
7290
  minWidth: column.minWidth,
7299
7291
  maxWidth: column.maxWidth,
7300
7292
  textAlign: column.align,