fis-component 0.0.66 → 0.0.67
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/cjs/index.js +4 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -73644,7 +73644,10 @@ const SpanTotalSC = styled.span `
|
|
|
73644
73644
|
const LIMIT_DEFAULT = 10;
|
|
73645
73645
|
const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minimize, recordCounted, onIconPageRecordClick, showTotal, ...rest }) => {
|
|
73646
73646
|
const rangeRecords = React.useMemo(() => {
|
|
73647
|
-
return [
|
|
73647
|
+
return [
|
|
73648
|
+
(current - 1) * pageSize + 1,
|
|
73649
|
+
current * pageSize > total ? total : current * pageSize,
|
|
73650
|
+
];
|
|
73648
73651
|
}, [current, pageSize, total]);
|
|
73649
73652
|
const defaultShowTotal = (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: ["Hi\u1EC3n th\u1ECB ", rangeRecords[0], "-", rangeRecords[1], recordCounted ? (`trong ${total} bản ghi`) : (jsxRuntime.jsx(FISIconButton, { size: "xs", icon: jsxRuntime.jsx(InfoIcon, {}), variant: "tertiary-invisible", onClick: onIconPageRecordClick }))] }));
|
|
73650
73653
|
// Merge the default props with the provided props
|