tabler-react-2 0.1.35 → 0.1.36

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.
@@ -141,6 +141,11 @@ var useModal = exports.useModal = function useModal(options) {
141
141
  });
142
142
  }
143
143
  };
144
+ var update = function update() {
145
+ setModalState(_objectSpread(_objectSpread({}, modalState), {}, {
146
+ text: options.text
147
+ }));
148
+ };
144
149
  var ModalElement = /*#__PURE__*/_react["default"].createElement(Modal, {
145
150
  open: modalState.open,
146
151
  onClose: function onClose() {
@@ -160,6 +165,11 @@ var useModal = exports.useModal = function useModal(options) {
160
165
  }, modalState.text);
161
166
  return {
162
167
  modal: modal,
163
- ModalElement: ModalElement
168
+ ModalElement: ModalElement,
169
+ update: update,
170
+ close: function close() {
171
+ var v = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
172
+ return handleDecision(v);
173
+ }
164
174
  };
165
175
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabler-react-2",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "A react implementation of Tabler ui",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {