tabler-react-2 0.1.112 → 0.1.114
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/offcanvas/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var Offcanvas = exports.Offcanvas = /*#__PURE__*/_react["default"].memo(function
|
|
|
39
39
|
width: "100vw",
|
|
40
40
|
height: "100vh",
|
|
41
41
|
backgroundColor: "rgba(0,0,0,0.1)",
|
|
42
|
-
zIndex:
|
|
42
|
+
zIndex: 9999
|
|
43
43
|
};
|
|
44
44
|
}, []);
|
|
45
45
|
|
|
@@ -50,7 +50,7 @@ var Offcanvas = exports.Offcanvas = /*#__PURE__*/_react["default"].memo(function
|
|
|
50
50
|
backgroundColor: "#fff",
|
|
51
51
|
boxShadow: show ? "0 0.5rem 1rem rgba(0,0,0,0.15)" : "none",
|
|
52
52
|
transition: "transform 0.3s ease-out",
|
|
53
|
-
zIndex:
|
|
53
|
+
zIndex: 10000,
|
|
54
54
|
padding: 20,
|
|
55
55
|
overflow: "auto"
|
|
56
56
|
};
|
package/dist/table/index.js
CHANGED
|
@@ -140,7 +140,7 @@ var Table = exports.Table = function Table(_ref4) {
|
|
|
140
140
|
var sortColumn = columns.find(function (col) {
|
|
141
141
|
return col.accessor === key;
|
|
142
142
|
});
|
|
143
|
-
var sortFunction = sortColumn.sortFn || defaultSortFn;
|
|
143
|
+
var sortFunction = (sortColumn === null || sortColumn === void 0 ? void 0 : sortColumn.sortFn) || defaultSortFn;
|
|
144
144
|
return _toConsumableArray(data).sort(function (a, b) {
|
|
145
145
|
var aValue = getValueByAccessor(a, key);
|
|
146
146
|
var bValue = getValueByAccessor(b, key);
|
|
@@ -171,7 +171,7 @@ var Table = exports.Table = function Table(_ref4) {
|
|
|
171
171
|
key: index,
|
|
172
172
|
className: "".concat(column.className || "", " ").concat(column.sortable ? "sortable" : ""),
|
|
173
173
|
onClick: column.sortable ? function () {
|
|
174
|
-
return handleSort(column.accessor, column.sortFn);
|
|
174
|
+
return handleSort(column.accessor, column === null || column === void 0 ? void 0 : column.sortFn);
|
|
175
175
|
} : undefined,
|
|
176
176
|
style: {
|
|
177
177
|
cursor: column.sortable ? "pointer" : "default"
|
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
title: Changelog
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
## 0.1.113
|
|
6
|
+
|
|
7
|
+
- Fix issue with where table causes crash when the column that the table is being sorted on is suddenly removed from the columns array.
|
|
8
|
+
|
|
9
|
+
## 0.1.112
|
|
10
|
+
|
|
11
|
+
- Fix overflow issue in the `Modal` component.
|
|
12
|
+
|
|
13
|
+
## 0.1.111
|
|
14
|
+
|
|
15
|
+
- Added a class name field to the `Table` component.
|
|
16
|
+
|
|
5
17
|
## 0.1.110
|
|
6
18
|
|
|
7
19
|
- Added a class name to the `title` of the `Alert` component.
|