tabler-react-2 0.1.111 → 0.1.113

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.
@@ -65,7 +65,8 @@ var Modal = exports.Modal = function Modal(_ref) {
65
65
  }), /*#__PURE__*/_react["default"].createElement("div", {
66
66
  className: "modal-body",
67
67
  style: _objectSpread({
68
- maxHeight: "80dvh"
68
+ maxHeight: "80dvh",
69
+ overflow: "auto"
69
70
  }, modalBodyStyle)
70
71
  }, children), /*#__PURE__*/_react["default"].createElement("div", {
71
72
  className: "modal-footer"
@@ -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,14 @@
2
2
  title: Changelog
3
3
  ---
4
4
 
5
+ ## 0.1.112
6
+
7
+ - Fix overflow issue in the `Modal` component.
8
+
9
+ ## 0.1.111
10
+
11
+ - Added a class name field to the `Table` component.
12
+
5
13
  ## 0.1.110
6
14
 
7
15
  - Added a class name to the `title` of the `Alert` component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabler-react-2",
3
- "version": "0.1.111",
3
+ "version": "0.1.113",
4
4
  "description": "A react implementation of Tabler ui",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {