@ctlyst.id/internal-ui 5.7.0 → 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 +20 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1739,17 +1739,17 @@ var DataTable = React6.forwardRef((props, ref) => {
|
|
|
1739
1739
|
"data-test-id": `CT_Container_TableHeader_${header.id}`,
|
|
1740
1740
|
userSelect: "none",
|
|
1741
1741
|
align: "center",
|
|
1742
|
-
gap: 2,
|
|
1743
1742
|
children: [
|
|
1744
1743
|
(0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()),
|
|
1745
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1744
|
+
header.column.getCanSort() && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1746
1745
|
import_react31.Box,
|
|
1747
1746
|
{
|
|
1748
1747
|
as: "span",
|
|
1749
1748
|
cursor: header.column.getCanSort() ? "pointer" : "default",
|
|
1750
1749
|
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
|
1751
1750
|
onClick: header.column.getToggleSortingHandler(),
|
|
1752
|
-
|
|
1751
|
+
ml: 2,
|
|
1752
|
+
children: (_b2 = {
|
|
1753
1753
|
asc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronUpIcon, { h: 4, w: 4, color: "neutral.500" }),
|
|
1754
1754
|
desc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronDownIcon, { h: 4, w: 4, color: "neutral.500" })
|
|
1755
1755
|
}[header.column.getIsSorted()]) != null ? _b2 : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react31.Box, { display: "flex", justifyContent: "center", alignItems: "center", boxSize: 4, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.UpDownIcon, { color: "neutral.500" }) })
|
|
@@ -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
|
);
|