mig-schema-table 3.0.86 → 3.0.88

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.
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { oas31 } from "openapi3-ts";
3
3
  import { IColumnConfig, IRenderData } from "../../types";
4
- import "./index.scss";
5
4
  interface ITdProps<T> {
6
5
  checkedIndexes?: number[];
7
6
  disabledCheckedIndexes?: number[];
@@ -3,7 +3,6 @@ import React from "react";
3
3
  import { SELECT_ALL_COLUMN_NAME } from "../constants";
4
4
  import { localeFormatInTimeZone, timeZone } from "../../inc/date";
5
5
  import { DEFAULT_DATE_TIME_FORMAT } from "../../inc/constant";
6
- import "./index.scss";
7
6
  function Td({ checkedIndexes, disabledCheckedIndexes, columnIndex, data, getRowClassName, getRowSelected, onCheckedIndexesChange, onRowClick, onRowDoubleClick, propConfig, propName, propSchema, rowIndex, sortedRenderData, style, translate, }) {
8
7
  const onTdClick = React.useCallback((e) => {
9
8
  if (!sortedRenderData || !onRowClick) {
package/dist/index.css CHANGED
@@ -151,3 +151,21 @@
151
151
  .schema-table-menu li:hover {
152
152
  background-color: #eff6fb;
153
153
  }
154
+
155
+ .schema-table__td {
156
+ overflow: hidden;
157
+ white-space: nowrap;
158
+ text-overflow: ellipsis;
159
+ padding-left: 8px;
160
+ padding-right: 8px;
161
+ align-content: center;
162
+ }
163
+ .schema-table__td--odd {
164
+ background-color: var(--bs-gray-100, #f8f9fa);
165
+ }
166
+ .schema-table__td--even {
167
+ background-color: var(--bs-white, #fff);
168
+ }
169
+ .schema-table__td--selected {
170
+ background-color: var(--bs-gray-300, #dee2e6);
171
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "3.0.86",
3
+ "version": "3.0.88",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/"
@@ -10,7 +10,6 @@
10
10
  "dependencies": {
11
11
  "@types/file-saver": "^2.0.7",
12
12
  "@types/jest": "^27.5.2",
13
- "@types/node": "^16.18.31",
14
13
  "@types/papaparse": "^5.3.14",
15
14
  "@types/react": "^18.2.6",
16
15
  "@types/react-datepicker": "^4.11.2",
@@ -53,6 +52,7 @@
53
52
  ]
54
53
  },
55
54
  "devDependencies": {
55
+ "@types/node": "^20.12.5",
56
56
  "@testing-library/jest-dom": "^5.16.5",
57
57
  "@testing-library/react": "^13.4.0",
58
58
  "@types/date-fns": "^2.6.0",