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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1517,7 +1517,7 @@ var assets = {
|
|
|
1517
1517
|
var appConfig = {
|
|
1518
1518
|
contentMaxWidth: 1100
|
|
1519
1519
|
};
|
|
1520
|
-
var defaultAlertDuration =
|
|
1520
|
+
var defaultAlertDuration = 2.3 * 1e3;
|
|
1521
1521
|
|
|
1522
1522
|
// src/components/alerts/AlertsHolder.tsx
|
|
1523
1523
|
import { memo as memo7 } from "react";
|
|
@@ -1869,7 +1869,7 @@ var ButtonComponent = function Button({
|
|
|
1869
1869
|
const theme2 = useTheme();
|
|
1870
1870
|
const isLoadingHook = useLoader(loaderName);
|
|
1871
1871
|
const betterHtmlContext2 = useBetterHtmlContextInternal();
|
|
1872
|
-
const isLoadingElement = isLoading
|
|
1872
|
+
const isLoadingElement = isLoading || isLoadingHook;
|
|
1873
1873
|
const styledComponentStyles = useStyledComponentStyles(
|
|
1874
1874
|
{
|
|
1875
1875
|
...betterHtmlContext2.components.button?.style?.default,
|
|
@@ -7318,10 +7318,6 @@ var TableStyledComponent = styled11.table.withConfig({
|
|
|
7318
7318
|
background-color: ${(props) => props.theme.colors.backgroundSecondary};
|
|
7319
7319
|
}
|
|
7320
7320
|
|
|
7321
|
-
&.isClickable {
|
|
7322
|
-
cursor: pointer;
|
|
7323
|
-
}
|
|
7324
|
-
|
|
7325
7321
|
&.isExpandRow {
|
|
7326
7322
|
height: 0px;
|
|
7327
7323
|
|
|
@@ -7344,6 +7340,7 @@ var TableStyledComponent = styled11.table.withConfig({
|
|
|
7344
7340
|
props.theme.colors.backgroundContent,
|
|
7345
7341
|
props.colorTheme === "light" ? 0.05 : 0.15
|
|
7346
7342
|
)};
|
|
7343
|
+
cursor: pointer;
|
|
7347
7344
|
}
|
|
7348
7345
|
` : ""}
|
|
7349
7346
|
|
|
@@ -7400,6 +7397,7 @@ var TableComponent = forwardRef15(function Table({
|
|
|
7400
7397
|
noDataItemsMessage = "No data available",
|
|
7401
7398
|
pageSize,
|
|
7402
7399
|
pageCount,
|
|
7400
|
+
isInsideTableExpandRow,
|
|
7403
7401
|
onClickRow,
|
|
7404
7402
|
onClickAllCheckboxes,
|
|
7405
7403
|
onChangePage,
|
|
@@ -7821,7 +7819,7 @@ var TableComponent = forwardRef15(function Table({
|
|
|
7821
7819
|
/* @__PURE__ */ jsx22(
|
|
7822
7820
|
"tr",
|
|
7823
7821
|
{
|
|
7824
|
-
className: onClickRow
|
|
7822
|
+
className: isInsideTableExpandRow && onClickRow === void 0 && expandColumn === void 0 ? "withoutHover" : void 0,
|
|
7825
7823
|
onClick: () => onClickRowElement(item, rowIndex),
|
|
7826
7824
|
children: columns.map((column, colIndex) => /* @__PURE__ */ jsx22(
|
|
7827
7825
|
TdStyledComponent,
|