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