acsi-core 0.1.4 → 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.
@@ -1,10 +1,12 @@
1
1
  import React from "react";
2
2
  interface IProps {
3
3
  open: boolean;
4
- onClose: () => void;
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
@@ -271,6 +271,9 @@
271
271
  font-size: 18px;
272
272
  font-weight: 700; }
273
273
 
274
+ ._2GdIt {
275
+ padding: 16px 24px 40px 24px !important; }
276
+
274
277
  ._1dzD7 {
275
278
  display: flex;
276
279
  flex-direction: column; }
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, null, children), footer && React__default.createElement(reactstrap.ModalFooter, null, footer));
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"};