@helpdice/ui 1.5.9 → 1.6.0
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 +6 -1
- package/dist/table/index.js +6 -1
- package/esm/table/table-head.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26333,7 +26333,12 @@ var TableHead = function TableHead(props) {
|
|
|
26333
26333
|
if (!isScalableWidth) return /*#__PURE__*/React$1.createElement("colgroup", null);
|
|
26334
26334
|
return makeColgroup(width, columns);
|
|
26335
26335
|
}, [isScalableWidth, width]);
|
|
26336
|
-
var _React$useState = React$1.useState()
|
|
26336
|
+
var _React$useState = React$1.useState(columns.reduce(function (acc, col) {
|
|
26337
|
+
if (col.filter) {
|
|
26338
|
+
acc["".concat(col.filter)] = col.filter === 'date' ? null : '';
|
|
26339
|
+
}
|
|
26340
|
+
return acc;
|
|
26341
|
+
}, {})),
|
|
26337
26342
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
26338
26343
|
filters = _React$useState2[0],
|
|
26339
26344
|
setFilters = _React$useState2[1];
|
package/dist/table/index.js
CHANGED
|
@@ -3195,7 +3195,12 @@ var TableHead = function TableHead(props) {
|
|
|
3195
3195
|
if (!isScalableWidth) return /*#__PURE__*/React.createElement("colgroup", null);
|
|
3196
3196
|
return makeColgroup(width, columns);
|
|
3197
3197
|
}, [isScalableWidth, width]);
|
|
3198
|
-
var _React$useState = React.useState()
|
|
3198
|
+
var _React$useState = React.useState(columns.reduce(function (acc, col) {
|
|
3199
|
+
if (col.filter) {
|
|
3200
|
+
acc["".concat(col.filter)] = col.filter === 'date' ? null : '';
|
|
3201
|
+
}
|
|
3202
|
+
return acc;
|
|
3203
|
+
}, {})),
|
|
3199
3204
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
3200
3205
|
filters = _React$useState2[0],
|
|
3201
3206
|
setFilters = _React$useState2[1];
|
package/esm/table/table-head.js
CHANGED
|
@@ -40,7 +40,12 @@ var TableHead = function TableHead(props) {
|
|
|
40
40
|
if (!isScalableWidth) return /*#__PURE__*/React.createElement("colgroup", null);
|
|
41
41
|
return makeColgroup(width, columns);
|
|
42
42
|
}, [isScalableWidth, width]);
|
|
43
|
-
var _React$useState = React.useState()
|
|
43
|
+
var _React$useState = React.useState(columns.reduce(function (acc, col) {
|
|
44
|
+
if (col.filter) {
|
|
45
|
+
acc["".concat(col.filter)] = col.filter === 'date' ? null : '';
|
|
46
|
+
}
|
|
47
|
+
return acc;
|
|
48
|
+
}, {})),
|
|
44
49
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
45
50
|
filters = _React$useState2[0],
|
|
46
51
|
setFilters = _React$useState2[1];
|