mig-schema-table 3.0.6 → 3.0.7

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.
@@ -314,5 +314,5 @@ export default function SchemaTable({ Heading = VariableSizeList, checkedIndexes
314
314
  ? rowsMaxHeight
315
315
  : rowsHeight;
316
316
  }, [maxHeight, isSearchable, rowCount, rowHeight]);
317
- return (_jsxs("div", Object.assign({ className: `schema-table${onRowClick ? " schema-table--clickable-rows" : ""}`, style: Object.assign(Object.assign({}, style), { width: rowWidth }) }, { children: [_jsxs("div", Object.assign({ className: "action-container" }, { children: [_jsx("div", Object.assign({ style: { flex: 1 } }, { children: isSearchable ? (_jsx("input", { id: "input-filter", type: "text", placeholder: searchPlaceholder || "Search...", value: searchQuery, onChange: onSearchChange, autoFocus: true })) : null })), customElement] })), _jsx(Heading, Object.assign({ height: 50, itemCount: columnCount, itemSize: getColumnWidth, layout: "horizontal", width: rowWidth, sortAsc: sortAsc, setSortAsc: setSortAsc, setSortColumn: setSortColumn, sortColumn: sortColumn, sortedRenderData: sortedRenderData, className: "schema-table__th-row" }, { children: SchemaTableTh }), `thead_${rowWidth}_${sortColumn}_${sortAsc}_${searchQuery}`), _jsx(VariableSizeGrid, Object.assign({ className: "schema-table__tbody", height: tableBodyHeight, width: rowWidth, columnWidth: getColumnWidth, rowHeight: getRowHeight, columnCount: columnCount, rowCount: rowCount }, { children: Td }), `tbody_${rowWidth}_${sortColumn}_${sortAsc}_${searchQuery}_${columnCount}`)] })));
317
+ return (_jsxs("div", Object.assign({ className: `schema-table${onRowClick ? " schema-table--clickable-rows" : ""}`, style: Object.assign(Object.assign({}, style), { width: rowWidth }) }, { children: [_jsxs("div", Object.assign({ className: "schema-table__action-container" }, { children: [_jsx("div", Object.assign({ style: { flex: 1 } }, { children: isSearchable ? (_jsx("input", { type: "text", placeholder: searchPlaceholder || "Search...", value: searchQuery, onChange: onSearchChange, autoFocus: true })) : null })), customElement] })), _jsx(Heading, Object.assign({ height: 50, itemCount: columnCount, itemSize: getColumnWidth, layout: "horizontal", width: rowWidth, sortAsc: sortAsc, setSortAsc: setSortAsc, setSortColumn: setSortColumn, sortColumn: sortColumn, sortedRenderData: sortedRenderData, className: "schema-table__th-row" }, { children: SchemaTableTh }), `thead_${rowWidth}_${sortColumn}_${sortAsc}_${searchQuery}`), _jsx(VariableSizeGrid, Object.assign({ className: "schema-table__tbody", height: tableBodyHeight, width: rowWidth, columnWidth: getColumnWidth, rowHeight: getRowHeight, columnCount: columnCount, rowCount: rowCount }, { children: Td }), `tbody_${rowWidth}_${sortColumn}_${sortAsc}_${searchQuery}_${columnCount}`)] })));
318
318
  }
package/dist/index.css CHANGED
@@ -10,11 +10,14 @@
10
10
  overflow: hidden !important;
11
11
  }
12
12
  .schema-table__th {
13
- overflow: hidden;
14
13
  background-color: #eee;
15
- padding-left: 8px;
16
14
  align-items: center;
17
15
  }
16
+ .schema-table__th div {
17
+ overflow: hidden;
18
+ white-space: nowrap;
19
+ text-overflow: ellipsis;
20
+ }
18
21
  .schema-table__th,
19
22
  .schema-table__th button {
20
23
  font-weight: bold;
@@ -54,16 +57,13 @@
54
57
  .schema-table button {
55
58
  border: 1px solid transparent;
56
59
  }
57
- .schema-table .action-container {
60
+ .schema-table__action-container {
58
61
  display: flex;
59
62
  flex-direction: row;
63
+ padding-bottom: 1rem;
60
64
  }
61
- .schema-table .action-container #input-filter {
65
+ .schema-table__action-container input {
62
66
  width: 30%;
63
67
  border-radius: 8px;
64
68
  padding: 4px 10px;
65
69
  }
66
- .schema-table .action-container img {
67
- margin-right: 1.5rem;
68
- margin-top: 5px;
69
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/"