lecom-ui 5.2.92 → 5.2.94
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.
|
@@ -187,6 +187,7 @@ const Pagination = ({
|
|
|
187
187
|
activeColor,
|
|
188
188
|
showPerPageSelector = true
|
|
189
189
|
}) => {
|
|
190
|
+
const { t } = useTranslation();
|
|
190
191
|
const mapPaginationItem = (item) => {
|
|
191
192
|
const componentProps = {
|
|
192
193
|
onClick: item.onClick,
|
|
@@ -227,6 +228,7 @@ const Pagination = ({
|
|
|
227
228
|
totalRowsSelected
|
|
228
229
|
}
|
|
229
230
|
),
|
|
231
|
+
!showPerPageSelector && totalRowsSelected > 0 && /* @__PURE__ */ React.createElement(Typography, { variant: "heading-xxsmall-600", textColor: "text-grey-800" }, totalRowsSelected, " ", t("pagination.selectedProcess")),
|
|
230
232
|
/* @__PURE__ */ React.createElement("nav", { role: "navigation", "aria-label": "pagination" }, /* @__PURE__ */ React.createElement(PaginationContent, null, itemsPage.map((item) => /* @__PURE__ */ React.createElement(PaginationItem, { key: item.id }, mapPaginationItem(item)))))
|
|
231
233
|
);
|
|
232
234
|
};
|
|
@@ -47,11 +47,9 @@ function TagInput({
|
|
|
47
47
|
setHiddenCount(children.length - count);
|
|
48
48
|
}, []);
|
|
49
49
|
React.useLayoutEffect(() => {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
}, [maxVisibleCount, calculateMaxVisible]);
|
|
50
|
+
const id = window.requestAnimationFrame(calculateMaxVisible);
|
|
51
|
+
return () => window.cancelAnimationFrame(id);
|
|
52
|
+
}, [value, calculateMaxVisible]);
|
|
55
53
|
const visibleCount = maxVisibleCount === null ? value.length : maxVisibleCount;
|
|
56
54
|
const displayTags = value.slice(0, visibleCount);
|
|
57
55
|
const currentHiddenCount = Math.max(value.length - visibleCount, 0);
|