ehscan-react-table 0.0.18 → 0.0.20

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.
@@ -102,7 +102,7 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
102
102
  const { tag, search, title, width } = col;
103
103
  const colTitle = title !== undefined ? title : tag;
104
104
  const thWidth = width !== undefined ? `${width}px` : "30px";
105
- return (_jsx("th", { style: { "--custom-width": thWidth }, children: _jsxs("div", { className: styles.headcolcell, children: [_jsx(HeadColSort, { tag: tag }), _jsx("div", { className: styles.headcolcellmain, children: search ? _jsx(HeadSearchBar, { content: colTitle, tag: tag }) : _jsx("div", { children: colTitle }) })] }) }));
105
+ return (_jsx("th", { style: { "--custom-width": thWidth }, children: _jsxs("div", { className: styles.headcolcell, children: [_jsx(HeadColSort, { tag: tag }), _jsx("div", { className: styles.headcolcellmain, children: search ? _jsx(HeadSearchBar, { content: colTitle, tag: tag }) : _jsx("div", { onClick: () => setOpenCol(tag), children: colTitle }) })] }) }));
106
106
  };
107
107
  const HeadCols = () => {
108
108
  return (_jsxs(_Fragment, { children: [columns.map((col, i) => {
@@ -170,10 +170,12 @@ input.headsearch:focus {
170
170
 
171
171
  input.headsearch {
172
172
  color: var(--ext-tab-input-clr, white);
173
+ font-weight: var(--ext-tab-input-font-weight, 400);
173
174
  }
174
175
 
175
176
  input.headsearch::placeholder {
176
177
  color: var(--ext-tab-input-clr, white);
178
+ font-weight: var(--ext-tab-input-font-weight, 400);
177
179
  opacity: 1;
178
180
  }
179
181
 
@@ -203,15 +205,27 @@ svg.removesearchsvg{
203
205
  background: transparent;
204
206
  border-radius: var(--ext-search-wrapper-padding, 4px);
205
207
  height: var(--ext-search-wrapper-height, 25px);
208
+ --input-padding: 1px 5px 3px 0;
206
209
  }
207
210
 
208
- .searchwrapper:hover{
209
- background: rgba(0,0,0,0.2);
210
- }
211
211
 
212
212
  .focused {
213
213
  border: var(--ext-search-wrapper-focused-border, 1px dashed white);
214
214
  color: white;
215
+ --input-padding: 1px 5px 3px 5px;
216
+ }
217
+
218
+ input.headsearch {
219
+ border: none;
220
+ border-radius: 4px;
221
+ width: 98%;
222
+ padding: var(--input-padding);
223
+ box-sizing: border-box;
224
+ background-color: transparent;
225
+ }
226
+
227
+ .searchwrapper:hover{
228
+ background: rgba(0,0,0,0.2);
215
229
  }
216
230
 
217
231
  svg {
@@ -239,15 +253,6 @@ svg {
239
253
  color: var(--ext-table-cell-clr, lightslategrey);
240
254
  }
241
255
 
242
- input.headsearch {
243
- border: none;
244
- border-radius: 4px;
245
- width: 98%;
246
- padding: 1px 6px 3px 6px;
247
- box-sizing: border-box;
248
- background-color: transparent;
249
- }
250
-
251
256
  input.headsearch:hover {
252
257
  border: none;
253
258
  cursor: pointer;
@@ -265,10 +270,13 @@ input.headsearch:focus {
265
270
  }
266
271
 
267
272
  .headcolcellmain{
273
+ color: var(--ext-tab-input-clr, white);
274
+ font-weight: var(--ext-tab-input-font-weight, 400);
275
+ line-height: 1.5;
268
276
  flex: 1;
269
277
  display: flex;
270
278
  align-items: center;
271
- justify-content: center;
279
+ justify-content: left;
272
280
  }
273
281
 
274
282
  .deftabletr > td, .trstickyhead > th {
@@ -312,6 +320,7 @@ input.headsearch:focus {
312
320
 
313
321
  .headsearchwrapper {
314
322
  position: relative;
323
+ width: 100%;
315
324
  }
316
325
 
317
326
  .sort-col {
@@ -322,11 +331,11 @@ input.headsearch:focus {
322
331
  position: fixed;
323
332
  margin-left: 6px;
324
333
  margin-top: 0;
325
- font-size: var(--ext-table-header-font-size, 50%);
334
+ font-size: var(--ext-table-header-font-size, 55%);
326
335
  background-color: var(--ext-table-header-bkc-clr, darkgoldenrod);
327
336
  color: var(--ext-table-header-clr, darkslategrey);
328
337
  border-radius: 4px;
329
- padding: 2px 5px;
338
+ padding: 0 5px;
330
339
  opacity: 0;
331
340
  transition: opacity 0.3s ease, margin-top 0.3s ease;
332
341
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ehscan-react-table",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "components",
5
5
  "main": "dist/Components.js",
6
6
  "types": "dist/Components.d.ts",