@ctlyst.id/internal-ui 5.6.1 → 5.6.3

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.mjs CHANGED
@@ -1320,24 +1320,25 @@ var DataTable = React5.forwardRef((props, ref) => {
1320
1320
  ...((_e = columnPinning == null ? void 0 : columnPinning.right) == null ? void 0 : _e.length) && hasScroll ? { "data-pin-right": true } : {},
1321
1321
  ...container,
1322
1322
  children: isLoading ? /* @__PURE__ */ jsxs8(Table, { ...styles == null ? void 0 : styles.table, "data-loading": "true", children: [
1323
- /* @__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(
1323
+ /* @__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, { ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ jsx24(
1324
1324
  Th,
1325
1325
  {
1326
1326
  colSpan: header.colSpan,
1327
- width: `${header.getSize()}px`,
1328
1327
  _first: { paddingLeft: `${paddingRowX + 8}px` },
1329
1328
  _last: { paddingRight: `${paddingRowX + 8}px` },
1330
1329
  ...styles == null ? void 0 : styles.tableColumnHeader,
1330
+ ...getTableHeaderSize(header, index, headerGroup.headers.length),
1331
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()) })
1332
1332
  },
1333
1333
  header.id
1334
1334
  )) }, headerGroup.id)) }),
1335
- /* @__PURE__ */ jsx24(Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ jsx24(Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ jsx24(
1335
+ /* @__PURE__ */ jsx24(Tbody, { ...styles == null ? void 0 : styles.tableBody, children: [...Array(5)].map((num) => /* @__PURE__ */ jsx24(Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ jsx24(
1336
1336
  Td,
1337
1337
  {
1338
- width: 210,
1338
+ width: "100%",
1339
1339
  _first: { paddingLeft: `${paddingRowX + 8}px` },
1340
1340
  _last: { paddingRight: `${paddingRowX + 8}px` },
1341
+ ...styles == null ? void 0 : styles.tableCell,
1341
1342
  children: /* @__PURE__ */ jsx24(Skeleton2, { startColor: "neutral.100", endColor: "neutral.200", h: "20px", w: "70%" }, i)
1342
1343
  },
1343
1344
  i
@@ -1373,17 +1374,17 @@ var DataTable = React5.forwardRef((props, ref) => {
1373
1374
  gap: 2,
1374
1375
  children: [
1375
1376
  flexRender(header.column.columnDef.header, header.getContext()),
1376
- (_b2 = header.column.getCanSort() && {
1377
- asc: /* @__PURE__ */ jsx24(ChevronUpIcon, { h: 4, w: 4, color: "neutral.500" }),
1378
- desc: /* @__PURE__ */ jsx24(ChevronDownIcon, { h: 4, w: 4, color: "neutral.500" })
1379
- }[header.column.getIsSorted()]) != null ? _b2 : /* @__PURE__ */ jsx24(
1377
+ /* @__PURE__ */ jsx24(
1380
1378
  Box11,
1381
1379
  {
1382
1380
  as: "span",
1383
1381
  cursor: header.column.getCanSort() ? "pointer" : "default",
1384
1382
  "data-test-id": `CT_Container_SortingIcon_${header.id}`,
1385
1383
  onClick: header.column.getToggleSortingHandler(),
1386
- children: /* @__PURE__ */ jsx24(Box11, { display: "flex", justifyContent: "center", alignItems: "center", boxSize: 4, children: /* @__PURE__ */ jsx24(UpDownIcon, { color: "neutral.500" }) })
1384
+ children: (_b2 = header.column.getCanSort() && {
1385
+ asc: /* @__PURE__ */ jsx24(ChevronUpIcon, { h: 4, w: 4, color: "neutral.500" }),
1386
+ desc: /* @__PURE__ */ jsx24(ChevronDownIcon, { h: 4, w: 4, color: "neutral.500" })
1387
+ }[header.column.getIsSorted()]) != null ? _b2 : /* @__PURE__ */ jsx24(Box11, { display: "flex", justifyContent: "center", alignItems: "center", boxSize: 4, children: /* @__PURE__ */ jsx24(UpDownIcon, { color: "neutral.500" }) })
1387
1388
  }
1388
1389
  )
1389
1390
  ]
@@ -8509,6 +8510,7 @@ export {
8509
8510
  useDataTable,
8510
8511
  useDimensions,
8511
8512
  useDisclosure2 as useDisclosure,
8513
+ useDragOrClick,
8512
8514
  useDrawerContext,
8513
8515
  useFetcher,
8514
8516
  useImage,