react-better-html 1.1.125 → 1.1.126
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 +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7069,7 +7069,7 @@ var TableComponent = (0, import_react23.forwardRef)(function Table({
|
|
|
7069
7069
|
...props
|
|
7070
7070
|
}, ref) {
|
|
7071
7071
|
const theme2 = useTheme();
|
|
7072
|
-
const
|
|
7072
|
+
const mediaQuery = useMediaQuery();
|
|
7073
7073
|
const { colorTheme } = useBetterHtmlContextInternal();
|
|
7074
7074
|
const filterModalRef = (0, import_react23.useRef)(null);
|
|
7075
7075
|
const [checkedItems, setCheckedItems] = (0, import_react23.useState)([]);
|
|
@@ -7423,7 +7423,7 @@ var TableComponent = (0, import_react23.forwardRef)(function Table({
|
|
|
7423
7423
|
},
|
|
7424
7424
|
[currentPage, setCurrentPage, pageCountInternal, setCheckedItems]
|
|
7425
7425
|
);
|
|
7426
|
-
const mobileFooterBreakingPoint =
|
|
7426
|
+
const mobileFooterBreakingPoint = mediaQuery.size700 && pageCountInternal > maximumVisiblePages / 1.4;
|
|
7427
7427
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
|
|
7428
7428
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7429
7429
|
Div_default,
|
|
@@ -7636,10 +7636,11 @@ var TableComponent = (0, import_react23.forwardRef)(function Table({
|
|
|
7636
7636
|
] }) }),
|
|
7637
7637
|
openedFilterColumn.presets && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Div_default.column, { gap: theme2.styles.gap / 2, children: [
|
|
7638
7638
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Label_default, { text: "Presets" }),
|
|
7639
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: openedFilterColumn.presets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7639
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Div_default.row, { alignItems: "center", flexWrap: "wrap", gap: theme2.styles.gap, children: openedFilterColumn.presets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
7640
7640
|
Button_default.secondary,
|
|
7641
7641
|
{
|
|
7642
7642
|
text: filterPresetsText[preset],
|
|
7643
|
+
isSmall: mediaQuery.size600,
|
|
7643
7644
|
value: preset,
|
|
7644
7645
|
onClickWithValue: onClickFilterPreset
|
|
7645
7646
|
},
|