acsi-core 0.1.5 → 0.1.6
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/CoreModal/index.d.ts +3 -1
- package/dist/index.css +3 -0
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface IProps {
|
|
3
3
|
open: boolean;
|
|
4
|
-
onClose
|
|
4
|
+
onClose?: () => void;
|
|
5
5
|
children: JSX.Element;
|
|
6
6
|
title: string;
|
|
7
7
|
footer?: JSX.Element;
|
|
8
|
+
handleSubmit?: any;
|
|
9
|
+
onSubmit?: any;
|
|
8
10
|
}
|
|
9
11
|
declare const CoreModal: (props: IProps) => React.JSX.Element;
|
|
10
12
|
export default CoreModal;
|
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -1328,23 +1328,29 @@ var CoreRadio = function CoreRadio(props) {
|
|
|
1328
1328
|
})));
|
|
1329
1329
|
};
|
|
1330
1330
|
|
|
1331
|
-
var styles$6 = {"core-modal-header":"_2y5ln"};
|
|
1331
|
+
var styles$6 = {"core-modal-header":"_2y5ln","core-modal-body":"_2GdIt"};
|
|
1332
1332
|
|
|
1333
1333
|
var CoreModal = function CoreModal(props) {
|
|
1334
1334
|
var open = props.open,
|
|
1335
1335
|
onClose = props.onClose,
|
|
1336
1336
|
children = props.children,
|
|
1337
1337
|
title = props.title,
|
|
1338
|
-
footer = props.footer
|
|
1338
|
+
footer = props.footer,
|
|
1339
|
+
handleSubmit = props.handleSubmit,
|
|
1340
|
+
onSubmit = props.onSubmit;
|
|
1339
1341
|
return React__default.createElement(reactstrap.Modal, {
|
|
1340
1342
|
isOpen: open,
|
|
1341
1343
|
toggle: onClose,
|
|
1342
1344
|
centered: true,
|
|
1343
1345
|
className: styles$6["core-modal"]
|
|
1346
|
+
}, React__default.createElement("form", {
|
|
1347
|
+
onSubmit: onSubmit ? handleSubmit(onSubmit) : undefined
|
|
1344
1348
|
}, React__default.createElement(reactstrap.ModalHeader, {
|
|
1345
1349
|
toggle: onClose,
|
|
1346
1350
|
className: styles$6["core-modal-header"]
|
|
1347
|
-
}, title), React__default.createElement(reactstrap.ModalBody,
|
|
1351
|
+
}, title), React__default.createElement(reactstrap.ModalBody, {
|
|
1352
|
+
className: styles$6['core-modal-body']
|
|
1353
|
+
}, children), footer && React__default.createElement(reactstrap.ModalFooter, null, footer)));
|
|
1348
1354
|
};
|
|
1349
1355
|
|
|
1350
1356
|
var styles$7 = {"core-range":"_1dzD7"};
|