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/esm/index.js
CHANGED
|
@@ -73624,7 +73624,10 @@ const SpanTotalSC = styled.span `
|
|
|
73624
73624
|
const LIMIT_DEFAULT = 10;
|
|
73625
73625
|
const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minimize, recordCounted, onIconPageRecordClick, showTotal, ...rest }) => {
|
|
73626
73626
|
const rangeRecords = useMemo$1(() => {
|
|
73627
|
-
return [
|
|
73627
|
+
return [
|
|
73628
|
+
(current - 1) * pageSize + 1,
|
|
73629
|
+
current * pageSize > total ? total : current * pageSize,
|
|
73630
|
+
];
|
|
73628
73631
|
}, [current, pageSize, total]);
|
|
73629
73632
|
const defaultShowTotal = (jsxs(Fragment, { children: ["Hi\u1EC3n th\u1ECB ", rangeRecords[0], "-", rangeRecords[1], recordCounted ? (`trong ${total} bản ghi`) : (jsx(FISIconButton, { size: "xs", icon: jsx(InfoIcon, {}), variant: "tertiary-invisible", onClick: onIconPageRecordClick }))] }));
|
|
73630
73633
|
// Merge the default props with the provided props
|