tabler-react-2 0.1.130 → 0.1.132-beta.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.
@@ -121,6 +121,7 @@ var useModal = exports.useModal = function useModal(options) {
121
121
  });
122
122
  }, []);
123
123
  var handleDecision = function handleDecision(decision) {
124
+ console.log("Recieved decision", decision);
124
125
  if (modalState.resolve) {
125
126
  modalState.resolve(decision);
126
127
  setModalState(function (prevState) {
@@ -152,7 +153,9 @@ var useModal = exports.useModal = function useModal(options) {
152
153
  } // Fix onClick behavior
153
154
  };
154
155
  })
155
- }, options.modalProps || {}), modalState.text);
156
+ }, options.modalProps || {}), JSON.stringify(_objectSpread(_objectSpread({}, modalState), {}, {
157
+ text: undefined
158
+ })), modalState.text);
156
159
  return {
157
160
  modal: modal,
158
161
  ModalElement: ModalElement,
@@ -253,7 +253,7 @@ var Table = exports.Table = function Table(_ref4) {
253
253
  style: {
254
254
  marginLeft: 16
255
255
  }
256
- }, "Showing ", (currentPage - 1) * pageSize + 1, " to", " ", Math.min(currentPage * pageSize, totalRows), " of ", totalRows, " rows")), /*#__PURE__*/_react["default"].createElement(_index.DropdownInput, {
256
+ }, "Showing ", (currentPage - 1) * pageSize + 1, " to", " ", Math.min(currentPage * pageSize, sortedData.length), " of", " ", sortedData.length, " rows")), /*#__PURE__*/_react["default"].createElement(_index.DropdownInput, {
257
257
  prompt: "Rows per page",
258
258
  items: pageSizeOptions.map(function (size) {
259
259
  return {
@@ -2,6 +2,10 @@
2
2
  title: Changelog
3
3
  ---
4
4
 
5
+ # 0.1.131
6
+
7
+ - Added more feedback to the `Table` pagination.
8
+
5
9
  # 0.1.129
6
10
 
7
11
  - Added support for `tableClassName` and `paginationClassName` in the `Table` component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabler-react-2",
3
- "version": "0.1.130",
3
+ "version": "0.1.132-beta.0",
4
4
  "description": "A react implementation of Tabler ui",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {