@ctlyst.id/internal-ui 5.7.1 → 5.7.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/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4342,8 +4342,8 @@ var PaginationButton = (0, import_react63.forwardRef)(({ className, style, isAct
|
|
|
4342
4342
|
px: 3,
|
|
4343
4343
|
py: 2,
|
|
4344
4344
|
h: 8,
|
|
4345
|
-
minW:
|
|
4346
|
-
width:
|
|
4345
|
+
minW: 8,
|
|
4346
|
+
width: "auto",
|
|
4347
4347
|
background: isActive ? "primary.500" : btnBg,
|
|
4348
4348
|
color: isActive ? "white" : btnColor,
|
|
4349
4349
|
_hover: !isActive ? {
|
|
@@ -4448,13 +4448,26 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
4448
4448
|
}
|
|
4449
4449
|
),
|
|
4450
4450
|
generatePages().map((page) => {
|
|
4451
|
+
const isActive = page === current;
|
|
4451
4452
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4452
4453
|
pagination_button_default,
|
|
4453
4454
|
{
|
|
4454
4455
|
"data-test-id": "Pagination-Button",
|
|
4455
|
-
isActive
|
|
4456
|
+
isActive,
|
|
4456
4457
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
|
4457
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4458
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4459
|
+
import_react65.Text,
|
|
4460
|
+
{
|
|
4461
|
+
scale: 300,
|
|
4462
|
+
fontSize: "text.sm",
|
|
4463
|
+
lineHeight: 18,
|
|
4464
|
+
fontWeight: 500,
|
|
4465
|
+
maxW: !isActive ? 8 : void 0,
|
|
4466
|
+
textOverflow: !isActive ? "ellipsis" : void 0,
|
|
4467
|
+
overflow: !isActive ? "hidden" : void 0,
|
|
4468
|
+
children: page
|
|
4469
|
+
}
|
|
4470
|
+
)
|
|
4458
4471
|
},
|
|
4459
4472
|
page
|
|
4460
4473
|
);
|