@ostack.tech/ui 0.3.1 → 0.3.2
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/ostack-ui.js
CHANGED
|
@@ -4977,6 +4977,8 @@ const PagedDataTablePagination = forwardRef(function PagedDataTablePagination2({
|
|
|
4977
4977
|
rowsRange,
|
|
4978
4978
|
previousPageButtonLabel,
|
|
4979
4979
|
nextPageButtonLabel,
|
|
4980
|
+
previousPageButtonProps,
|
|
4981
|
+
nextPageButtonProps,
|
|
4980
4982
|
className,
|
|
4981
4983
|
...otherProps
|
|
4982
4984
|
}, forwardedRef) {
|
|
@@ -5026,19 +5028,29 @@ const PagedDataTablePagination = forwardRef(function PagedDataTablePagination2({
|
|
|
5026
5028
|
/* @__PURE__ */ jsx(
|
|
5027
5029
|
IconButton,
|
|
5028
5030
|
{
|
|
5031
|
+
variant: "subtle",
|
|
5029
5032
|
icon: faArrowLeft,
|
|
5030
5033
|
label: previousPageButtonLabel ?? "",
|
|
5031
|
-
|
|
5032
|
-
|
|
5034
|
+
...previousPageButtonProps,
|
|
5035
|
+
disabled: currentPage === 0 || previousPageButtonProps?.disabled,
|
|
5036
|
+
onClick: combineEventHandlers(
|
|
5037
|
+
(() => setOffsetWithTransition((currentPage - 1) * limit)),
|
|
5038
|
+
previousPageButtonProps?.onClick
|
|
5039
|
+
)
|
|
5033
5040
|
}
|
|
5034
5041
|
),
|
|
5035
5042
|
/* @__PURE__ */ jsx(
|
|
5036
5043
|
IconButton,
|
|
5037
5044
|
{
|
|
5045
|
+
variant: "subtle",
|
|
5038
5046
|
icon: faArrowRight,
|
|
5039
5047
|
label: nextPageButtonLabel ?? "",
|
|
5040
|
-
|
|
5041
|
-
|
|
5048
|
+
...nextPageButtonProps,
|
|
5049
|
+
disabled: currentPage === lastPage || nextPageButtonProps?.disabled,
|
|
5050
|
+
onClick: combineEventHandlers(
|
|
5051
|
+
(() => setOffsetWithTransition((currentPage + 1) * limit)),
|
|
5052
|
+
nextPageButtonProps?.onClick
|
|
5053
|
+
)
|
|
5042
5054
|
}
|
|
5043
5055
|
)
|
|
5044
5056
|
] })
|
|
@@ -5074,7 +5086,14 @@ const ScrolledDataTablePagination = forwardRef(function ScrolledDataTablePaginat
|
|
|
5074
5086
|
}
|
|
5075
5087
|
);
|
|
5076
5088
|
});
|
|
5077
|
-
const DataTablePagination = forwardRef(function DataTablePagination2({
|
|
5089
|
+
const DataTablePagination = forwardRef(function DataTablePagination2({
|
|
5090
|
+
rowsRange,
|
|
5091
|
+
previousPageButtonLabel,
|
|
5092
|
+
nextPageButtonLabel,
|
|
5093
|
+
previousPageButtonProps,
|
|
5094
|
+
nextPageButtonProps,
|
|
5095
|
+
...otherProps
|
|
5096
|
+
}, forwardedRef) {
|
|
5078
5097
|
const [locale] = useLocale();
|
|
5079
5098
|
rowsRange ??= locale.DataTablePagination.rowsRange;
|
|
5080
5099
|
previousPageButtonLabel ??= locale.DataTablePagination.previousPageButtonLabel;
|
|
@@ -5087,6 +5106,8 @@ const DataTablePagination = forwardRef(function DataTablePagination2({ rowsRange
|
|
|
5087
5106
|
rowsRange,
|
|
5088
5107
|
previousPageButtonLabel,
|
|
5089
5108
|
nextPageButtonLabel,
|
|
5109
|
+
previousPageButtonProps,
|
|
5110
|
+
nextPageButtonProps,
|
|
5090
5111
|
ref: forwardedRef
|
|
5091
5112
|
}
|
|
5092
5113
|
) : /* @__PURE__ */ jsx(
|