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