@aloudata/aloudata-design 0.2.0-beta.14 → 0.2.0-beta.15

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/es/Table/index.js CHANGED
@@ -113,7 +113,9 @@ function Table(_ref, ref) {
113
113
  return columns.map(function (column) {
114
114
  return _objectSpread(_objectSpread({}, column), {}, {
115
115
  width: initialColumnsWidthMap.columnMap.get(column.dataIndex) || initialColumnsWidthMap.averageWidth,
116
- Header: column.title,
116
+ Header: column.title ? column.title : function () {
117
+ return null;
118
+ },
117
119
  disableSortBy: !sortable || typeof column.sorter === 'boolean',
118
120
  accessor: column.dataIndex,
119
121
  Cell: function Cell(_ref2) {
@@ -6,7 +6,7 @@ export interface ISort<T> {
6
6
  desc?: boolean;
7
7
  }
8
8
  export interface IColumn<T extends object> {
9
- title: string;
9
+ title: string | null;
10
10
  dataIndex: string;
11
11
  render?: (value: any, row: Record<string, T>, index: number) => React.ReactNode;
12
12
  width?: number;
@@ -135,7 +135,9 @@ function Table(_ref, ref) {
135
135
  return columns.map(function (column) {
136
136
  return _objectSpread(_objectSpread({}, column), {}, {
137
137
  width: initialColumnsWidthMap.columnMap.get(column.dataIndex) || initialColumnsWidthMap.averageWidth,
138
- Header: column.title,
138
+ Header: column.title ? column.title : function () {
139
+ return null;
140
+ },
139
141
  disableSortBy: !sortable || typeof column.sorter === 'boolean',
140
142
  accessor: column.dataIndex,
141
143
  Cell: function Cell(_ref2) {
@@ -6,7 +6,7 @@ export interface ISort<T> {
6
6
  desc?: boolean;
7
7
  }
8
8
  export interface IColumn<T extends object> {
9
- title: string;
9
+ title: string | null;
10
10
  dataIndex: string;
11
11
  render?: (value: any, row: Record<string, T>, index: number) => React.ReactNode;
12
12
  width?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "0.2.0-beta.14",
3
+ "version": "0.2.0-beta.15",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",