acsi-core 0.1.13 → 0.1.14
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 +1 -0
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -982,15 +982,21 @@ var CoreButton = function CoreButton(props) {
|
|
|
982
982
|
children = props.children,
|
|
983
983
|
onClick = props.onClick,
|
|
984
984
|
icon = props.icon,
|
|
985
|
+
background = props.background,
|
|
985
986
|
_props$disabled = props.disabled,
|
|
986
987
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
988
|
+
color = props.color,
|
|
987
989
|
_props$htmlType = props.htmlType,
|
|
988
990
|
htmlType = _props$htmlType === void 0 ? "button" : _props$htmlType;
|
|
989
991
|
return React__default.createElement("button", {
|
|
990
992
|
className: styles["core-button"] + " " + styles[type],
|
|
991
993
|
onClick: onClick,
|
|
992
994
|
disabled: disabled,
|
|
993
|
-
type: htmlType
|
|
995
|
+
type: htmlType,
|
|
996
|
+
style: {
|
|
997
|
+
background: background,
|
|
998
|
+
color: color
|
|
999
|
+
}
|
|
994
1000
|
}, icon && icon, children);
|
|
995
1001
|
};
|
|
996
1002
|
|
|
@@ -1340,14 +1346,15 @@ var CoreModal = function CoreModal(props) {
|
|
|
1340
1346
|
handleSubmit = props.handleSubmit,
|
|
1341
1347
|
onSubmit = props.onSubmit,
|
|
1342
1348
|
_props$bodyPadding = props.bodyPadding,
|
|
1343
|
-
bodyPadding = _props$bodyPadding === void 0 ? "24px" : _props$bodyPadding
|
|
1349
|
+
bodyPadding = _props$bodyPadding === void 0 ? "24px" : _props$bodyPadding,
|
|
1350
|
+
className = props.className;
|
|
1344
1351
|
return React__default.createElement(reactstrap.Modal, {
|
|
1345
1352
|
isOpen: open,
|
|
1346
1353
|
toggle: onClose,
|
|
1347
1354
|
centered: true
|
|
1348
1355
|
}, React__default.createElement("form", {
|
|
1349
1356
|
onSubmit: onSubmit ? handleSubmit(onSubmit) : undefined,
|
|
1350
|
-
className: styles$6["core-modal-container"]
|
|
1357
|
+
className: styles$6["core-modal-container"] + " " + className
|
|
1351
1358
|
}, React__default.createElement(reactstrap.ModalHeader, {
|
|
1352
1359
|
toggle: onClose,
|
|
1353
1360
|
className: styles$6["core-modal-header"]
|
|
@@ -1499,11 +1506,20 @@ var CoreTextArea = function CoreTextArea(props) {
|
|
|
1499
1506
|
return setIsOpenTooltip(!isOpenTooltip);
|
|
1500
1507
|
};
|
|
1501
1508
|
React.useEffect(function () {
|
|
1509
|
+
var _textareaRef$current2;
|
|
1502
1510
|
if (textareaRef.current) {
|
|
1503
1511
|
var _textareaRef$current;
|
|
1504
1512
|
textareaRef.current.style.height = "auto";
|
|
1505
1513
|
textareaRef.current.style.height = ((_textareaRef$current = textareaRef.current) === null || _textareaRef$current === void 0 ? void 0 : _textareaRef$current.scrollHeight) + "px";
|
|
1506
1514
|
}
|
|
1515
|
+
if (((_textareaRef$current2 = textareaRef.current) === null || _textareaRef$current2 === void 0 ? void 0 : _textareaRef$current2.scrollHeight) == 0 && value.length > 0) {
|
|
1516
|
+
setTimeout(function () {
|
|
1517
|
+
if (textareaRef.current) {
|
|
1518
|
+
var _textareaRef$current3;
|
|
1519
|
+
textareaRef.current.style.height = ((_textareaRef$current3 = textareaRef.current) === null || _textareaRef$current3 === void 0 ? void 0 : _textareaRef$current3.scrollHeight) + "px";
|
|
1520
|
+
}
|
|
1521
|
+
}, 0);
|
|
1522
|
+
}
|
|
1507
1523
|
}, [value]);
|
|
1508
1524
|
return React__default.createElement("div", {
|
|
1509
1525
|
className: styles$8["core-text-area"],
|