@ctlyst.id/internal-ui 5.6.3 → 5.6.5

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
@@ -965,7 +965,7 @@ var counter_default = Counter;
965
965
 
966
966
  // src/components/data-table/components/data-table.tsx
967
967
  import { ChevronDownIcon, ChevronUpIcon, UpDownIcon } from "@chakra-ui/icons";
968
- import { Box as Box11, Flex as Flex2, Skeleton as Skeleton2, Table, Tbody, Td, Th, Thead, Tr, useColorModeValue } from "@chakra-ui/react";
968
+ import { Box as Box11, Flex as Flex2, keyframes, Skeleton as Skeleton2, Table, Tbody, Td, Th, Thead, Tr, useColorModeValue } from "@chakra-ui/react";
969
969
  import { css } from "@emotion/react";
970
970
  import { flexRender, getCoreRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
971
971
  import * as React5 from "react";
@@ -1109,6 +1109,10 @@ var getCommonPinningStyles = (column, paddingRowX) => {
1109
1109
  } : {}
1110
1110
  };
1111
1111
  };
1112
+ var fadeIn = keyframes`
1113
+ from { opacity: 0; }
1114
+ to { opacity: 1; }
1115
+ `;
1112
1116
  var useDataTable = ({
1113
1117
  columns,
1114
1118
  dataSource = [],
@@ -1326,22 +1330,24 @@ var DataTable = React5.forwardRef((props, ref) => {
1326
1330
  colSpan: header.colSpan,
1327
1331
  _first: { paddingLeft: `${paddingRowX + 8}px` },
1328
1332
  _last: { paddingRight: `${paddingRowX + 8}px` },
1333
+ sx: getCommonPinningStyles(header.column, paddingRowX),
1329
1334
  ...styles == null ? void 0 : styles.tableColumnHeader,
1330
1335
  ...getTableHeaderSize(header, index, headerGroup.headers.length),
1331
1336
  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
1337
  },
1333
1338
  header.id
1334
1339
  )) }, headerGroup.id)) }),
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(
1340
+ /* @__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: table.getAllLeafColumns().map((column) => /* @__PURE__ */ jsx24(
1336
1341
  Td,
1337
1342
  {
1338
1343
  width: "100%",
1339
1344
  _first: { paddingLeft: `${paddingRowX + 8}px` },
1340
1345
  _last: { paddingRight: `${paddingRowX + 8}px` },
1346
+ sx: getCommonPinningStyles(column, paddingRowX),
1341
1347
  ...styles == null ? void 0 : styles.tableCell,
1342
- children: /* @__PURE__ */ jsx24(Skeleton2, { startColor: "neutral.100", endColor: "neutral.200", h: "20px", w: "70%" }, i)
1348
+ children: /* @__PURE__ */ jsx24(Skeleton2, { startColor: "neutral.100", endColor: "neutral.200", h: "20px", w: "70%" })
1343
1349
  },
1344
- i
1350
+ column.id
1345
1351
  )) }, num)) })
1346
1352
  ] }) : /* @__PURE__ */ jsxs8(Table, { ...styles == null ? void 0 : styles.table, children: [
1347
1353
  /* @__PURE__ */ jsx24(
@@ -1396,7 +1402,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1396
1402
  }) }, headerGroup.id))
1397
1403
  }
1398
1404
  ),
1399
- /* @__PURE__ */ jsx24(Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row, index) => {
1405
+ /* @__PURE__ */ jsx24(Tbody, { ...styles == null ? void 0 : styles.tableBody, animation: `${fadeIn} 0.15s ease-out`, children: table.getRowModel().rows.map((row, index) => {
1400
1406
  const isDisabledRow = disabledRow && disabledRow(row.original);
1401
1407
  const isHighlightedRow = Object.keys(selectedRow != null ? selectedRow : {}).filter((key) => selectedRow == null ? void 0 : selectedRow[key]).includes(row.id) || highlightedRow && highlightedRow(row.original);
1402
1408
  return /* @__PURE__ */ jsx24(
@@ -7310,8 +7316,8 @@ var input_default = Input4;
7310
7316
 
7311
7317
  // src/config/theme/components/loader.ts
7312
7318
  import { defineStyleConfig as defineStyleConfig4 } from "@chakra-ui/styled-system";
7313
- import { keyframes } from "@emotion/react";
7314
- var rotate = keyframes({
7319
+ import { keyframes as keyframes2 } from "@emotion/react";
7320
+ var rotate = keyframes2({
7315
7321
  "0%": {
7316
7322
  transform: "rotate(0deg)"
7317
7323
  },