acsi-core 0.1.18 → 0.1.20

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.
@@ -1776,6 +1776,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
1776
1776
 
1777
1777
  var styles$b = {"core-input-compact":"_1qmXW","label":"_1argp","icon":"_3DPRG"};
1778
1778
 
1779
+ var _excluded = ["name", "value", "onChange", "disabled", "label", "width", "placeholder", "error", "tooltip", "onKeyDown"];
1779
1780
  var CoreInputCompact = function CoreInputCompact(props) {
1780
1781
  var _props$name = props.name,
1781
1782
  name = _props$name === void 0 ? "" : _props$name,
@@ -1788,7 +1789,9 @@ var CoreInputCompact = function CoreInputCompact(props) {
1788
1789
  _props$placeholder = props.placeholder,
1789
1790
  placeholder = _props$placeholder === void 0 ? "Type here" : _props$placeholder,
1790
1791
  error = props.error,
1791
- tooltip = props.tooltip;
1792
+ tooltip = props.tooltip,
1793
+ _onKeyDown = props.onKeyDown,
1794
+ rest = _objectWithoutPropertiesLoose(props, _excluded);
1792
1795
  var _useState = useState(false),
1793
1796
  isOpenTooltip = _useState[0],
1794
1797
  setIsOpenTooltip = _useState[1];
@@ -1805,7 +1808,7 @@ var CoreInputCompact = function CoreInputCompact(props) {
1805
1808
  }, React.createElement("label", null, label), tooltip ? React.createElement("div", {
1806
1809
  id: name,
1807
1810
  className: styles$b["icon"]
1808
- }, React.createElement(Info, null)) : null), React.createElement("input", {
1811
+ }, React.createElement(Info, null)) : null), React.createElement("input", Object.assign({
1809
1812
  style: {
1810
1813
  backgroundColor: error ? COLORS.lightYellow : "transparent"
1811
1814
  },
@@ -1815,8 +1818,11 @@ var CoreInputCompact = function CoreInputCompact(props) {
1815
1818
  return _onChange(name, e.target.value);
1816
1819
  },
1817
1820
  disabled: disabled,
1818
- placeholder: placeholder
1819
- }), tooltip && React.createElement(Tooltip, {
1821
+ placeholder: placeholder,
1822
+ onKeyDown: function onKeyDown(e) {
1823
+ _onKeyDown && _onKeyDown(e);
1824
+ }
1825
+ }, rest)), tooltip && React.createElement(Tooltip, {
1820
1826
  target: name,
1821
1827
  isOpen: isOpenTooltip,
1822
1828
  toggle: toggleTooltip
@@ -1837,7 +1843,8 @@ var CoreTitleInput = function CoreTitleInput(props) {
1837
1843
  placeholder = _props$placeholder === void 0 ? "Type here" : _props$placeholder,
1838
1844
  error = props.error,
1839
1845
  _props$size = props.size,
1840
- size = _props$size === void 0 ? "h1" : _props$size;
1846
+ size = _props$size === void 0 ? "h1" : _props$size,
1847
+ maxLength = props.maxLength;
1841
1848
  return React.createElement("div", {
1842
1849
  className: "" + styles$c["core-label-input"],
1843
1850
  style: {
@@ -1854,7 +1861,8 @@ var CoreTitleInput = function CoreTitleInput(props) {
1854
1861
  return _onChange(name, e.target.value);
1855
1862
  },
1856
1863
  disabled: disabled,
1857
- placeholder: placeholder
1864
+ placeholder: placeholder,
1865
+ maxLength: maxLength
1858
1866
  }));
1859
1867
  };
1860
1868
 
@@ -1923,7 +1931,7 @@ var CustomOption = function CustomOption(props) {
1923
1931
  }, props.data.label));
1924
1932
  };
1925
1933
 
1926
- var _excluded = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
1934
+ var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
1927
1935
  var CustomSelect = function CustomSelect(_ref) {
1928
1936
  var isDefault = _ref.isDefault,
1929
1937
  options = _ref.options,
@@ -1931,7 +1939,7 @@ var CustomSelect = function CustomSelect(_ref) {
1931
1939
  scrollBottom = _ref.scrollBottom,
1932
1940
  value = _ref.value,
1933
1941
  isMulti = _ref.isMulti,
1934
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
1942
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
1935
1943
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
1936
1944
  return value.includes(i.value);
1937
1945
  }) : isMulti ? options === null || options === void 0 ? void 0 : options.filter(function (i) {
@@ -1958,7 +1966,7 @@ var CustomSelect = function CustomSelect(_ref) {
1958
1966
  }, rest));
1959
1967
  };
1960
1968
 
1961
- var _excluded$1 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
1969
+ var _excluded$2 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
1962
1970
  var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
1963
1971
  var isDefault = _ref.isDefault,
1964
1972
  options = _ref.options,
@@ -1966,7 +1974,7 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
1966
1974
  scrollBottom = _ref.scrollBottom,
1967
1975
  value = _ref.value,
1968
1976
  isMulti = _ref.isMulti,
1969
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
1977
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
1970
1978
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
1971
1979
  return value.includes(i.value);
1972
1980
  }) : isMulti ? options.filter(function (i) {
@@ -1993,14 +2001,14 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
1993
2001
  }, rest));
1994
2002
  };
1995
2003
 
1996
- var _excluded$2 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2004
+ var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
1997
2005
  var CustomCreatable = function CustomCreatable(_ref) {
1998
2006
  var options = _ref.options,
1999
2007
  isDisabled = _ref.isDisabled,
2000
2008
  scrollBottom = _ref.scrollBottom,
2001
2009
  value = _ref.value,
2002
2010
  isMulti = _ref.isMulti,
2003
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
2011
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
2004
2012
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
2005
2013
  return value.includes(i.value);
2006
2014
  }) : isMulti ? options.filter(function (i) {
@@ -2027,7 +2035,7 @@ var CustomCreatable = function CustomCreatable(_ref) {
2027
2035
  }, rest));
2028
2036
  };
2029
2037
 
2030
- var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2038
+ var _excluded$4 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2031
2039
  var CustomSelectOption = function CustomSelectOption(_ref) {
2032
2040
  var defaultValue = _ref.defaultValue,
2033
2041
  options = _ref.options,
@@ -2035,7 +2043,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
2035
2043
  scrollBottom = _ref.scrollBottom,
2036
2044
  value = _ref.value,
2037
2045
  isMulti = _ref.isMulti,
2038
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
2046
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2039
2047
  var initialValues = defaultValue !== null && typeof defaultValue !== "undefined" ? options.find(function (option) {
2040
2048
  return option.value === defaultValue;
2041
2049
  }) || null : null;