ehscan-react-table 0.0.40 → 0.0.41

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.
@@ -138,8 +138,7 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
138
138
  var _a, _b;
139
139
  const { tag, search, title, width } = col;
140
140
  const colTitle = title !== undefined ? title : tag;
141
- const thWidth = width !== undefined ? `${width}px` : "30px";
142
- return (_jsx("th", { ref: measureColElements.includes(tag) ? (el) => { colRefs.current[tag] = el; } : undefined, style: { "--custom-width": thWidth }, children: _jsxs("div", { className: styles.headcolcell, children: [_jsx(HeadColSort, { tag: tag }), _jsx("div", { className: styles.headcolcellmain, children: search
141
+ return (_jsx("th", { ref: measureColElements.includes(tag) ? (el) => { colRefs.current[tag] = el; } : undefined, style: { width: `${width}px` }, children: _jsxs("div", { className: styles.headcolcell, children: [_jsx(HeadColSort, { tag: tag }), _jsx("div", { className: styles.headcolcellmain, children: search
143
142
  ? _jsx(HeadSearchBar, { content: colTitle, tag: tag })
144
143
  : _jsx("div", { onClick: () => setOpenCol(tag), children: (_b = (_a = HeadColMainLit[colTitle]) === null || _a === void 0 ? void 0 : _a.call(HeadColMainLit, colTitle)) !== null && _b !== void 0 ? _b : colTitle }) })] }) }));
145
144
  };
@@ -244,8 +244,6 @@ input.headsearch:focus {
244
244
  box-sizing: border-box;
245
245
  font-size: var(--ext-table-cell-font-size, 100%);
246
246
  padding: 5px 5px 5px 0;
247
- width: var(--custom-width) !important;
248
- min-width: 30px;
249
247
  }
250
248
 
251
249
  .deftabletr > td:first-child{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ehscan-react-table",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "components",
5
5
  "main": "dist/Components.js",
6
6
  "types": "dist/Components.d.ts",