@zenkigen-inc/component-ui 1.9.3 → 1.9.4
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.esm.js +5 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -31909,6 +31909,8 @@ function PaginationSelect({
|
|
|
31909
31909
|
label: value
|
|
31910
31910
|
};
|
|
31911
31911
|
});
|
|
31912
|
+
const minCount = totalSize ? (currentPage - 1) * sizePerPage + 1 : 0;
|
|
31913
|
+
const maxCount = currentPage * sizePerPage > totalSize ? totalSize : currentPage * sizePerPage;
|
|
31912
31914
|
return /*#__PURE__*/jsxs("nav", {
|
|
31913
31915
|
"aria-label": "pagination",
|
|
31914
31916
|
className: "flex items-center gap-x-1",
|
|
@@ -31916,13 +31918,14 @@ function PaginationSelect({
|
|
|
31916
31918
|
className: "flex items-center gap-x-2",
|
|
31917
31919
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31918
31920
|
className: "typography-label2regular text-text01",
|
|
31919
|
-
children: [
|
|
31921
|
+
children: [minCount > 0 && `${minCount} - `, maxCount, countLabel]
|
|
31920
31922
|
}), /*#__PURE__*/jsx(Select, {
|
|
31921
31923
|
size: "medium",
|
|
31922
31924
|
variant: "outline",
|
|
31923
31925
|
selectedOption: optionsList.find(option => option.value === currentPage.toString()),
|
|
31924
31926
|
optionListMaxHeight: optionListMaxHeight,
|
|
31925
31927
|
onChange: option => option && onChange(Number(option.value)),
|
|
31928
|
+
isDisabled: pageMax === 0,
|
|
31926
31929
|
children: optionsList && optionsList.map(option => /*#__PURE__*/jsx(Select.Option, {
|
|
31927
31930
|
option: option
|
|
31928
31931
|
}, option.id))
|
|
@@ -31942,7 +31945,7 @@ function PaginationSelect({
|
|
|
31942
31945
|
variant: "text",
|
|
31943
31946
|
icon: "angle-right",
|
|
31944
31947
|
size: "small",
|
|
31945
|
-
isDisabled: currentPage === pageMax,
|
|
31948
|
+
isDisabled: currentPage === pageMax || pageMax === 0,
|
|
31946
31949
|
onClick: onClickNextButton
|
|
31947
31950
|
})]
|
|
31948
31951
|
})]
|