@app-studio/web 0.3.45 → 0.3.46
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/components/Message/Message.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/web.cjs.development.js +12 -1
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +10 -2
- package/dist/web.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -4432,6 +4432,15 @@ var useModalStore = /*#__PURE__*/zustand.create(function (set) {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
};
|
|
4434
4434
|
});
|
|
4435
|
+
var showModal = function showModal(modal, modalProps, overlayProps) {
|
|
4436
|
+
if (modalProps === void 0) {
|
|
4437
|
+
modalProps = {};
|
|
4438
|
+
}
|
|
4439
|
+
if (overlayProps === void 0) {
|
|
4440
|
+
overlayProps = {};
|
|
4441
|
+
}
|
|
4442
|
+
useModalStore.getState().show(modal, modalProps, overlayProps);
|
|
4443
|
+
};
|
|
4435
4444
|
var hideModal = function hideModal() {
|
|
4436
4445
|
useModalStore.getState().hide();
|
|
4437
4446
|
};
|
|
@@ -4502,7 +4511,6 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
4502
4511
|
onClick: handleClick,
|
|
4503
4512
|
visibility: isOpen ? 'visible' : 'hidden'
|
|
4504
4513
|
}, React__default.createElement(View, Object.assign({
|
|
4505
|
-
cursor: "pointer",
|
|
4506
4514
|
position: "absolute",
|
|
4507
4515
|
top: 0,
|
|
4508
4516
|
left: 0,
|
|
@@ -4695,4 +4703,7 @@ exports.TextField = TextField;
|
|
|
4695
4703
|
exports.Top = Top;
|
|
4696
4704
|
exports.Vertical = Vertical;
|
|
4697
4705
|
exports.View = View;
|
|
4706
|
+
exports.hideModal = hideModal;
|
|
4707
|
+
exports.showModal = showModal;
|
|
4708
|
+
exports.useModalStore = useModalStore;
|
|
4698
4709
|
//# sourceMappingURL=web.cjs.development.js.map
|