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