react-better-html 1.1.130 → 1.1.132

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.d.mts CHANGED
@@ -725,6 +725,7 @@ type TableProps<DataItem> = {
725
725
  noDataItemsMessage?: string;
726
726
  pageSize?: number;
727
727
  pageCount?: number;
728
+ isInsideTableExpandRow?: boolean;
728
729
  onClickRow?: (item: DataItem, index: number) => void;
729
730
  onClickAllCheckboxes?: (checked: boolean) => void;
730
731
  onChangePage?: (page: number) => void;
package/dist/index.d.ts CHANGED
@@ -725,6 +725,7 @@ type TableProps<DataItem> = {
725
725
  noDataItemsMessage?: string;
726
726
  pageSize?: number;
727
727
  pageCount?: number;
728
+ isInsideTableExpandRow?: boolean;
728
729
  onClickRow?: (item: DataItem, index: number) => void;
729
730
  onClickAllCheckboxes?: (checked: boolean) => void;
730
731
  onChangePage?: (page: number) => void;
package/dist/index.js CHANGED
@@ -1603,7 +1603,7 @@ var assets = {
1603
1603
  var appConfig = {
1604
1604
  contentMaxWidth: 1100
1605
1605
  };
1606
- var defaultAlertDuration = 3e3;
1606
+ var defaultAlertDuration = 2.3 * 1e3;
1607
1607
 
1608
1608
  // src/components/alerts/AlertsHolder.tsx
1609
1609
  var import_react8 = require("react");
@@ -1955,7 +1955,7 @@ var ButtonComponent = function Button({
1955
1955
  const theme2 = useTheme();
1956
1956
  const isLoadingHook = useLoader(loaderName);
1957
1957
  const betterHtmlContext2 = useBetterHtmlContextInternal();
1958
- const isLoadingElement = isLoading ?? isLoadingHook;
1958
+ const isLoadingElement = isLoading || isLoadingHook;
1959
1959
  const styledComponentStyles = useStyledComponentStyles(
1960
1960
  {
1961
1961
  ...betterHtmlContext2.components.button?.style?.default,
@@ -7394,10 +7394,6 @@ var TableStyledComponent = import_styled_components12.default.table.withConfig({
7394
7394
  background-color: ${(props) => props.theme.colors.backgroundSecondary};
7395
7395
  }
7396
7396
 
7397
- &.isClickable {
7398
- cursor: pointer;
7399
- }
7400
-
7401
7397
  &.isExpandRow {
7402
7398
  height: 0px;
7403
7399
 
@@ -7420,6 +7416,7 @@ var TableStyledComponent = import_styled_components12.default.table.withConfig({
7420
7416
  props.theme.colors.backgroundContent,
7421
7417
  props.colorTheme === "light" ? 0.05 : 0.15
7422
7418
  )};
7419
+ cursor: pointer;
7423
7420
  }
7424
7421
  ` : ""}
7425
7422
 
@@ -7476,6 +7473,7 @@ var TableComponent = (0, import_react25.forwardRef)(function Table({
7476
7473
  noDataItemsMessage = "No data available",
7477
7474
  pageSize,
7478
7475
  pageCount,
7476
+ isInsideTableExpandRow,
7479
7477
  onClickRow,
7480
7478
  onClickAllCheckboxes,
7481
7479
  onChangePage,
@@ -7897,7 +7895,7 @@ var TableComponent = (0, import_react25.forwardRef)(function Table({
7897
7895
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7898
7896
  "tr",
7899
7897
  {
7900
- className: onClickRow || expandColumn ? "isClickable" : void 0,
7898
+ className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
7901
7899
  onClick: () => onClickRowElement(item, rowIndex),
7902
7900
  children: columns.map((column, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7903
7901
  TdStyledComponent,