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.
package/dist/modal/modal.js
CHANGED
|
@@ -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
|
|
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,
|
package/dist/table/index.js
CHANGED
|
@@ -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,
|
|
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 {
|