@helpdice/ui 1.4.7 → 1.4.8

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.js CHANGED
@@ -42229,7 +42229,8 @@ var TableHead = function TableHead(props) {
42229
42229
  // textAlign: `${column?.align} !important`,
42230
42230
  // paddingLeft: '0.3rem',
42231
42231
  // paddingRight: '0.3rem',
42232
- color: "".concat(column !== null && column !== undefined && column.color ? column === null || column === undefined ? undefined : column.color : '#fff'),
42232
+ backgroundColor: '#fff',
42233
+ color: "".concat(column !== null && column !== undefined && column.color ? column === null || column === undefined ? undefined : column.color : '#333'),
42233
42234
  whiteSpace: column !== null && column !== undefined && column.noWrap ? 'nowrap' : 'normal'
42234
42235
  }, column === null || column === undefined ? undefined : column.style),
42235
42236
  key: "table-th-".concat(column.prop.toString(), "-").concat(index),
@@ -43396,6 +43397,7 @@ var TableColumn = function TableColumn(columnProps) {
43396
43397
  noWrap = _ref.noWrap,
43397
43398
  align = _ref.align,
43398
43399
  style = _ref.style,
43400
+ color = _ref.color,
43399
43401
  _ref$fontSize = _ref.fontSize,
43400
43402
  fontSize = _ref$fontSize === undefined ? 'smaller' : _ref$fontSize,
43401
43403
  _ref$className = _ref.className,
@@ -43415,13 +43417,14 @@ var TableColumn = function TableColumn(columnProps) {
43415
43417
  options: options,
43416
43418
  prop: safeProp,
43417
43419
  width: width,
43420
+ color: color,
43418
43421
  align: align,
43419
43422
  fontSize: fontSize,
43420
43423
  className: className,
43421
43424
  style: style,
43422
43425
  renderHandler: function renderHandler() {}
43423
43426
  });
43424
- }, [children, noWrap, style, fontSize, align, filter, options, label, prop, width, className, renderHandler]);
43427
+ }, [children, noWrap, color, style, fontSize, align, filter, options, label, prop, width, className, renderHandler]);
43425
43428
  return null;
43426
43429
  };
43427
43430
  TableColumn.displayName = 'TableColumn';
@@ -19987,7 +19987,8 @@ var TableHead = function TableHead(props) {
19987
19987
  // textAlign: `${column?.align} !important`,
19988
19988
  // paddingLeft: '0.3rem',
19989
19989
  // paddingRight: '0.3rem',
19990
- color: "".concat(column !== null && column !== undefined && column.color ? column === null || column === undefined ? undefined : column.color : '#fff'),
19990
+ backgroundColor: '#fff',
19991
+ color: "".concat(column !== null && column !== undefined && column.color ? column === null || column === undefined ? undefined : column.color : '#333'),
19991
19992
  whiteSpace: column !== null && column !== undefined && column.noWrap ? 'nowrap' : 'normal'
19992
19993
  }, column === null || column === undefined ? undefined : column.style),
19993
19994
  key: "table-th-".concat(column.prop.toString(), "-").concat(index),
@@ -32142,6 +32143,7 @@ var TableColumn = function TableColumn(columnProps) {
32142
32143
  noWrap = _ref.noWrap,
32143
32144
  align = _ref.align,
32144
32145
  style = _ref.style,
32146
+ color = _ref.color,
32145
32147
  _ref$fontSize = _ref.fontSize,
32146
32148
  fontSize = _ref$fontSize === undefined ? 'smaller' : _ref$fontSize,
32147
32149
  _ref$className = _ref.className,
@@ -32161,13 +32163,14 @@ var TableColumn = function TableColumn(columnProps) {
32161
32163
  options: options,
32162
32164
  prop: safeProp,
32163
32165
  width: width,
32166
+ color: color,
32164
32167
  align: align,
32165
32168
  fontSize: fontSize,
32166
32169
  className: className,
32167
32170
  style: style,
32168
32171
  renderHandler: function renderHandler() {}
32169
32172
  });
32170
- }, [children, noWrap, style, fontSize, align, filter, options, label, prop, width, className, renderHandler]);
32173
+ }, [children, noWrap, color, style, fontSize, align, filter, options, label, prop, width, className, renderHandler]);
32171
32174
  return null;
32172
32175
  };
32173
32176
  TableColumn.displayName = 'TableColumn';
@@ -9,6 +9,7 @@ export type TableColumnProps<TableDataItem extends TableDataItemBase> = {
9
9
  className?: string;
10
10
  noWrap?: boolean;
11
11
  align?: string;
12
+ color?: string;
12
13
  style?: CSSProperties;
13
14
  fontSize?: string | number;
14
15
  render?: TableColumnRender<TableDataItem>;
@@ -9,6 +9,7 @@ export type TableColumnProps<TableDataItem extends TableDataItemBase> = {
9
9
  className?: string;
10
10
  noWrap?: boolean;
11
11
  align?: string;
12
+ color?: string;
12
13
  style?: CSSProperties;
13
14
  fontSize?: string | number;
14
15
  render?: TableColumnRender<TableDataItem>;
@@ -14,6 +14,7 @@ var TableColumn = function TableColumn(columnProps) {
14
14
  noWrap = _ref.noWrap,
15
15
  align = _ref.align,
16
16
  style = _ref.style,
17
+ color = _ref.color,
17
18
  _ref$fontSize = _ref.fontSize,
18
19
  fontSize = _ref$fontSize === void 0 ? 'smaller' : _ref$fontSize,
19
20
  _ref$className = _ref.className,
@@ -33,13 +34,14 @@ var TableColumn = function TableColumn(columnProps) {
33
34
  options: options,
34
35
  prop: safeProp,
35
36
  width: width,
37
+ color: color,
36
38
  align: align,
37
39
  fontSize: fontSize,
38
40
  className: className,
39
41
  style: style,
40
42
  renderHandler: function renderHandler() {}
41
43
  });
42
- }, [children, noWrap, style, fontSize, align, filter, options, label, prop, width, className, renderHandler]);
44
+ }, [children, noWrap, color, style, fontSize, align, filter, options, label, prop, width, className, renderHandler]);
43
45
  return null;
44
46
  };
45
47
  TableColumn.displayName = 'TableColumn';
@@ -141,7 +141,8 @@ var TableHead = function TableHead(props) {
141
141
  // textAlign: `${column?.align} !important`,
142
142
  // paddingLeft: '0.3rem',
143
143
  // paddingRight: '0.3rem',
144
- color: "".concat(column !== null && column !== void 0 && column.color ? column === null || column === void 0 ? void 0 : column.color : '#fff'),
144
+ backgroundColor: '#fff',
145
+ color: "".concat(column !== null && column !== void 0 && column.color ? column === null || column === void 0 ? void 0 : column.color : '#333'),
145
146
  whiteSpace: column !== null && column !== void 0 && column.noWrap ? 'nowrap' : 'normal'
146
147
  }, column === null || column === void 0 ? void 0 : column.style),
147
148
  key: "table-th-".concat(column.prop.toString(), "-").concat(index),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpdice/ui",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "unpkg": "dist/index.min.js",