@ctlyst.id/internal-ui 3.3.11 → 3.3.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +12 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -944,7 +944,7 @@ var getCommonPinningStyles = (column) => {
|
|
944
944
|
zIndex: isPinned ? 1 : 0,
|
945
945
|
backgroundColor: "white",
|
946
946
|
...isLastLeftPinnedColumn ? {
|
947
|
-
padding: "16px 8px
|
947
|
+
padding: "16px 8px 16px 8px",
|
948
948
|
"&:after": {
|
949
949
|
content: "''",
|
950
950
|
position: "absolute",
|
@@ -957,7 +957,7 @@ var getCommonPinningStyles = (column) => {
|
|
957
957
|
}
|
958
958
|
} : {},
|
959
959
|
...isFirstRightPinnedColumn ? {
|
960
|
-
padding: "16px 8px
|
960
|
+
padding: "16px 8px 16px 8px",
|
961
961
|
"&:after": {
|
962
962
|
content: "''",
|
963
963
|
position: "absolute",
|
@@ -1083,25 +1083,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1083
1083
|
w: "full",
|
1084
1084
|
...container,
|
1085
1085
|
children: isLoading ? /* @__PURE__ */ jsxs8(Table, { ...styles == null ? void 0 : styles.table, "data-loading": "true", children: [
|
1086
|
-
/* @__PURE__ */ jsx24(Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx24(Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ jsx24(
|
1087
|
-
|
1086
|
+
/* @__PURE__ */ jsx24(Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx24(Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ jsx24(Th, { colSpan: header.colSpan, width: header.getSize(), ...styles == null ? void 0 : styles.tableColumnHeader, children: /* @__PURE__ */ jsx24(
|
1087
|
+
Flex2,
|
1088
1088
|
{
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
textTransform: "capitalize",
|
1097
|
-
align: "center",
|
1098
|
-
gap: 2,
|
1099
|
-
children: flexRender(header.column.columnDef.header, header.getContext())
|
1100
|
-
}
|
1101
|
-
)
|
1102
|
-
},
|
1103
|
-
header.id
|
1104
|
-
)) }, headerGroup.id)) }),
|
1089
|
+
"data-test-id": "CT_component_data-table_loader",
|
1090
|
+
textTransform: "capitalize",
|
1091
|
+
align: "center",
|
1092
|
+
gap: 2,
|
1093
|
+
children: flexRender(header.column.columnDef.header, header.getContext())
|
1094
|
+
}
|
1095
|
+
) }, header.id)) }, headerGroup.id)) }),
|
1105
1096
|
/* @__PURE__ */ jsx24(Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ jsx24(Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ jsx24(Td, { width: 210, children: /* @__PURE__ */ jsx24(Skeleton2, { startColor: "neutral.100", endColor: "neutral.200", h: "20px", w: "70%" }, i) }, i)) }, num)) })
|
1106
1097
|
] }) : /* @__PURE__ */ jsxs8(Table, { ...styles == null ? void 0 : styles.table, children: [
|
1107
1098
|
/* @__PURE__ */ jsx24(
|
@@ -1116,7 +1107,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1116
1107
|
{
|
1117
1108
|
colSpan: header.colSpan,
|
1118
1109
|
sx: getCommonPinningStyles(header.column),
|
1119
|
-
width:
|
1110
|
+
width: header.getSize(),
|
1120
1111
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1121
1112
|
children: /* @__PURE__ */ jsxs8(
|
1122
1113
|
Flex2,
|