acsi-core 0.1.13 → 0.1.15
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/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -974,7 +974,7 @@ var CustomPagination = function CustomPagination(_ref) {
|
|
|
974
974
|
})));
|
|
975
975
|
};
|
|
976
976
|
|
|
977
|
-
var styles = {"core-button":"_xvNBN","primary":"_U9Qyp","secondary":"_1VzMy","text":"_pZNuj"};
|
|
977
|
+
var styles = {"core-button":"_xvNBN","primary":"_U9Qyp","secondary":"_1VzMy","text":"_pZNuj","danger":"_2uYm1"};
|
|
978
978
|
|
|
979
979
|
var CoreButton = function CoreButton(props) {
|
|
980
980
|
var _props$type = props.type,
|
|
@@ -1340,14 +1340,15 @@ var CoreModal = function CoreModal(props) {
|
|
|
1340
1340
|
handleSubmit = props.handleSubmit,
|
|
1341
1341
|
onSubmit = props.onSubmit,
|
|
1342
1342
|
_props$bodyPadding = props.bodyPadding,
|
|
1343
|
-
bodyPadding = _props$bodyPadding === void 0 ? "24px" : _props$bodyPadding
|
|
1343
|
+
bodyPadding = _props$bodyPadding === void 0 ? "24px" : _props$bodyPadding,
|
|
1344
|
+
className = props.className;
|
|
1344
1345
|
return React__default.createElement(reactstrap.Modal, {
|
|
1345
1346
|
isOpen: open,
|
|
1346
1347
|
toggle: onClose,
|
|
1347
1348
|
centered: true
|
|
1348
1349
|
}, React__default.createElement("form", {
|
|
1349
1350
|
onSubmit: onSubmit ? handleSubmit(onSubmit) : undefined,
|
|
1350
|
-
className: styles$6["core-modal-container"]
|
|
1351
|
+
className: styles$6["core-modal-container"] + " " + className
|
|
1351
1352
|
}, React__default.createElement(reactstrap.ModalHeader, {
|
|
1352
1353
|
toggle: onClose,
|
|
1353
1354
|
className: styles$6["core-modal-header"]
|
|
@@ -1499,11 +1500,20 @@ var CoreTextArea = function CoreTextArea(props) {
|
|
|
1499
1500
|
return setIsOpenTooltip(!isOpenTooltip);
|
|
1500
1501
|
};
|
|
1501
1502
|
React.useEffect(function () {
|
|
1503
|
+
var _textareaRef$current2;
|
|
1502
1504
|
if (textareaRef.current) {
|
|
1503
1505
|
var _textareaRef$current;
|
|
1504
1506
|
textareaRef.current.style.height = "auto";
|
|
1505
1507
|
textareaRef.current.style.height = ((_textareaRef$current = textareaRef.current) === null || _textareaRef$current === void 0 ? void 0 : _textareaRef$current.scrollHeight) + "px";
|
|
1506
1508
|
}
|
|
1509
|
+
if (((_textareaRef$current2 = textareaRef.current) === null || _textareaRef$current2 === void 0 ? void 0 : _textareaRef$current2.scrollHeight) == 0 && value.length > 0) {
|
|
1510
|
+
setTimeout(function () {
|
|
1511
|
+
if (textareaRef.current) {
|
|
1512
|
+
var _textareaRef$current3;
|
|
1513
|
+
textareaRef.current.style.height = ((_textareaRef$current3 = textareaRef.current) === null || _textareaRef$current3 === void 0 ? void 0 : _textareaRef$current3.scrollHeight) + "px";
|
|
1514
|
+
}
|
|
1515
|
+
}, 0);
|
|
1516
|
+
}
|
|
1507
1517
|
}, [value]);
|
|
1508
1518
|
return React__default.createElement("div", {
|
|
1509
1519
|
className: styles$8["core-text-area"],
|