@xqmsg/ui-core 0.24.6 → 0.24.8

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.
@@ -1189,7 +1189,8 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
1189
1189
  value: isFocussed ? searchValue : selectedOption,
1190
1190
  autoComplete: "off",
1191
1191
  onChange: handleInput,
1192
- onKeyDown: handleOnKeyDown
1192
+ onKeyDown: handleOnKeyDown,
1193
+ disabled: disabled
1193
1194
  })), /*#__PURE__*/React__default.createElement(InputRightElement, {
1194
1195
  cursor: disabled ? 'not-allowed' : 'pointer',
1195
1196
  onClick: function onClick() {
@@ -1358,7 +1359,8 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1358
1359
  }
1359
1360
  }, [boundingClientRect]);
1360
1361
  useOnClickOutside(dropdownRef, function () {
1361
- return setIsFocussed(false);
1362
+ setSearchValue('');
1363
+ setIsFocussed(false);
1362
1364
  });
1363
1365
  // gets latest watched form value (common delimited) from RHF state and creates a list
1364
1366
  useEffect(function () {
@@ -1566,7 +1568,6 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1566
1568
  width: "0",
1567
1569
  autoComplete: "off",
1568
1570
  type: "text",
1569
- ref: inputRef,
1570
1571
  tabIndex: -1,
1571
1572
  _focus: {
1572
1573
  boxShadow: 'none !important'
@@ -1588,6 +1589,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1588
1589
  optionIndex: optionIndex,
1589
1590
  loading: loadingOptions
1590
1591
  }, /*#__PURE__*/React__default.createElement(Input$2, {
1592
+ ref: inputRef,
1591
1593
  value: searchValue,
1592
1594
  onChange: handleInput,
1593
1595
  disabled: loadingOptions
@@ -1796,7 +1798,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
1796
1798
  }
1797
1799
  },
1798
1800
  ref: scrollRef,
1799
- zIndex: 100,
1801
+ zIndex: 99,
1800
1802
  onKeyDown: onHandleKeyDown
1801
1803
  }, lastestFormValueToArray.length ? lastestFormValueToArray.map(function (label, index) {
1802
1804
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -1939,6 +1941,10 @@ function Input(_ref) {
1939
1941
  loadingOptions = _ref$loadingOptions === void 0 ? false : _ref$loadingOptions,
1940
1942
  truncatePillLength = _ref.truncatePillLength;
1941
1943
  function selectedInputField(onChange, onBlur, ref, value) {
1944
+ if (inputType === 'text') {
1945
+ console.log(errorText);
1946
+ console.log(isInvalid);
1947
+ }
1942
1948
  switch (inputType) {
1943
1949
  case 'text':
1944
1950
  return /*#__PURE__*/React__default.createElement(StackedInput, {
@@ -1959,7 +1965,9 @@ function Input(_ref) {
1959
1965
  defaultValue: defaultValue,
1960
1966
  value: value,
1961
1967
  variant: variant,
1962
- label: label
1968
+ label: label,
1969
+ setError: setError,
1970
+ clearErrors: clearErrors
1963
1971
  });
1964
1972
  case 'radio':
1965
1973
  return /*#__PURE__*/React__default.createElement(StackedRadioGroup, {
@@ -1986,6 +1994,8 @@ function Input(_ref) {
1986
1994
  onBlur: onBlur,
1987
1995
  setValue: setValue,
1988
1996
  control: control,
1997
+ setError: setError,
1998
+ clearErrors: clearErrors,
1989
1999
  ref: ref,
1990
2000
  disabled: disabled,
1991
2001
  value: value,
@@ -2109,7 +2119,7 @@ function Input(_ref) {
2109
2119
  tooltipText: tooltipText,
2110
2120
  label: label,
2111
2121
  isRequired: isRequired
2112
- }), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid && /*#__PURE__*/React__default.createElement(FormErrorMessage, null, errorText), helperText && /*#__PURE__*/React__default.createElement(FormHelperText, null, helperText));
2122
+ }), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid && /*#__PURE__*/React__default.createElement(FormErrorMessage, null, errorText), helperText && /*#__PURE__*/React__default.createElement(FormHelperText, null, helperText), errorText, " ", isInvalid == null ? void 0 : isInvalid.toString());
2113
2123
  }
2114
2124
  });
2115
2125
  }