@xqmsg/ui-core 0.24.8 → 0.24.9
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/ui-core.cjs.development.js +3 -11
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +3 -11
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/input/StackedMultiSelect/index.tsx +1 -1
- package/src/components/input/index.tsx +0 -9
package/dist/ui-core.esm.js
CHANGED
|
@@ -1568,6 +1568,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1568
1568
|
width: "0",
|
|
1569
1569
|
autoComplete: "off",
|
|
1570
1570
|
type: "text",
|
|
1571
|
+
ref: inputRef,
|
|
1571
1572
|
tabIndex: -1,
|
|
1572
1573
|
_focus: {
|
|
1573
1574
|
boxShadow: 'none !important'
|
|
@@ -1589,7 +1590,6 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1589
1590
|
optionIndex: optionIndex,
|
|
1590
1591
|
loading: loadingOptions
|
|
1591
1592
|
}, /*#__PURE__*/React__default.createElement(Input$2, {
|
|
1592
|
-
ref: inputRef,
|
|
1593
1593
|
value: searchValue,
|
|
1594
1594
|
onChange: handleInput,
|
|
1595
1595
|
disabled: loadingOptions
|
|
@@ -1941,10 +1941,6 @@ function Input(_ref) {
|
|
|
1941
1941
|
loadingOptions = _ref$loadingOptions === void 0 ? false : _ref$loadingOptions,
|
|
1942
1942
|
truncatePillLength = _ref.truncatePillLength;
|
|
1943
1943
|
function selectedInputField(onChange, onBlur, ref, value) {
|
|
1944
|
-
if (inputType === 'text') {
|
|
1945
|
-
console.log(errorText);
|
|
1946
|
-
console.log(isInvalid);
|
|
1947
|
-
}
|
|
1948
1944
|
switch (inputType) {
|
|
1949
1945
|
case 'text':
|
|
1950
1946
|
return /*#__PURE__*/React__default.createElement(StackedInput, {
|
|
@@ -1965,9 +1961,7 @@ function Input(_ref) {
|
|
|
1965
1961
|
defaultValue: defaultValue,
|
|
1966
1962
|
value: value,
|
|
1967
1963
|
variant: variant,
|
|
1968
|
-
label: label
|
|
1969
|
-
setError: setError,
|
|
1970
|
-
clearErrors: clearErrors
|
|
1964
|
+
label: label
|
|
1971
1965
|
});
|
|
1972
1966
|
case 'radio':
|
|
1973
1967
|
return /*#__PURE__*/React__default.createElement(StackedRadioGroup, {
|
|
@@ -1994,8 +1988,6 @@ function Input(_ref) {
|
|
|
1994
1988
|
onBlur: onBlur,
|
|
1995
1989
|
setValue: setValue,
|
|
1996
1990
|
control: control,
|
|
1997
|
-
setError: setError,
|
|
1998
|
-
clearErrors: clearErrors,
|
|
1999
1991
|
ref: ref,
|
|
2000
1992
|
disabled: disabled,
|
|
2001
1993
|
value: value,
|
|
@@ -2119,7 +2111,7 @@ function Input(_ref) {
|
|
|
2119
2111
|
tooltipText: tooltipText,
|
|
2120
2112
|
label: label,
|
|
2121
2113
|
isRequired: isRequired
|
|
2122
|
-
}), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid && /*#__PURE__*/React__default.createElement(FormErrorMessage, null, errorText), helperText && /*#__PURE__*/React__default.createElement(FormHelperText, null, helperText)
|
|
2114
|
+
}), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid && /*#__PURE__*/React__default.createElement(FormErrorMessage, null, errorText), helperText && /*#__PURE__*/React__default.createElement(FormHelperText, null, helperText));
|
|
2123
2115
|
}
|
|
2124
2116
|
});
|
|
2125
2117
|
}
|