@ctlyst.id/internal-ui 5.6.0 → 5.6.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.d.mts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +9 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1328,16 +1328,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
1328
1328
|
_first: { paddingLeft: `${paddingRowX + 8}px` },
|
|
1329
1329
|
_last: { paddingRight: `${paddingRowX + 8}px` },
|
|
1330
1330
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
|
1331
|
-
children: /* @__PURE__ */ jsx24(
|
|
1332
|
-
Flex2,
|
|
1333
|
-
{
|
|
1334
|
-
"data-test-id": "CT_component_data-table_loader",
|
|
1335
|
-
textTransform: "capitalize",
|
|
1336
|
-
align: "center",
|
|
1337
|
-
gap: 2,
|
|
1338
|
-
children: flexRender(header.column.columnDef.header, header.getContext())
|
|
1339
|
-
}
|
|
1340
|
-
)
|
|
1331
|
+
children: /* @__PURE__ */ jsx24(Flex2, { "data-test-id": "CT_component_data-table_loader", align: "center", gap: 2, children: flexRender(header.column.columnDef.header, header.getContext()) })
|
|
1341
1332
|
},
|
|
1342
1333
|
header.id
|
|
1343
1334
|
)) }, headerGroup.id)) }),
|
|
@@ -1377,23 +1368,22 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
1377
1368
|
backgroundColor: "white",
|
|
1378
1369
|
height: "100%",
|
|
1379
1370
|
"data-test-id": `CT_Container_TableHeader_${header.id}`,
|
|
1380
|
-
textTransform: "capitalize",
|
|
1381
1371
|
userSelect: "none",
|
|
1382
1372
|
align: "center",
|
|
1383
1373
|
gap: 2,
|
|
1384
1374
|
children: [
|
|
1385
1375
|
flexRender(header.column.columnDef.header, header.getContext()),
|
|
1386
|
-
|
|
1387
|
-
asc: /* @__PURE__ */ jsx24(ChevronUpIcon, { h: 4, w: 4, color: "neutral.500" }),
|
|
1388
|
-
desc: /* @__PURE__ */ jsx24(ChevronDownIcon, { h: 4, w: 4, color: "neutral.500" })
|
|
1389
|
-
}[header.column.getIsSorted()]) != null ? _b2 : /* @__PURE__ */ jsx24(
|
|
1376
|
+
/* @__PURE__ */ jsx24(
|
|
1390
1377
|
Box11,
|
|
1391
1378
|
{
|
|
1392
1379
|
as: "span",
|
|
1393
1380
|
cursor: header.column.getCanSort() ? "pointer" : "default",
|
|
1394
1381
|
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
|
1395
1382
|
onClick: header.column.getToggleSortingHandler(),
|
|
1396
|
-
children:
|
|
1383
|
+
children: (_b2 = header.column.getCanSort() && {
|
|
1384
|
+
asc: /* @__PURE__ */ jsx24(ChevronUpIcon, { h: 4, w: 4, color: "neutral.500" }),
|
|
1385
|
+
desc: /* @__PURE__ */ jsx24(ChevronDownIcon, { h: 4, w: 4, color: "neutral.500" })
|
|
1386
|
+
}[header.column.getIsSorted()]) != null ? _b2 : /* @__PURE__ */ jsx24(Box11, { display: "flex", justifyContent: "center", alignItems: "center", boxSize: 4, children: /* @__PURE__ */ jsx24(UpDownIcon, { color: "neutral.500" }) })
|
|
1397
1387
|
}
|
|
1398
1388
|
)
|
|
1399
1389
|
]
|
|
@@ -7733,7 +7723,7 @@ var baseStyle11 = definePartsStyle10({
|
|
|
7733
7723
|
th: {
|
|
7734
7724
|
fontFamily: "heading",
|
|
7735
7725
|
fontWeight: "semibold",
|
|
7736
|
-
textTransform: "
|
|
7726
|
+
textTransform: "capitalize",
|
|
7737
7727
|
letterSpacing: "normal",
|
|
7738
7728
|
textAlign: "start",
|
|
7739
7729
|
height: "50px",
|
|
@@ -8519,6 +8509,7 @@ export {
|
|
|
8519
8509
|
useDataTable,
|
|
8520
8510
|
useDimensions,
|
|
8521
8511
|
useDisclosure2 as useDisclosure,
|
|
8512
|
+
useDragOrClick,
|
|
8522
8513
|
useDrawerContext,
|
|
8523
8514
|
useFetcher,
|
|
8524
8515
|
useImage,
|