@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
|
@@ -1196,7 +1196,8 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
1196
1196
|
value: isFocussed ? searchValue : selectedOption,
|
|
1197
1197
|
autoComplete: "off",
|
|
1198
1198
|
onChange: handleInput,
|
|
1199
|
-
onKeyDown: handleOnKeyDown
|
|
1199
|
+
onKeyDown: handleOnKeyDown,
|
|
1200
|
+
disabled: disabled
|
|
1200
1201
|
})), /*#__PURE__*/React__default.createElement(react.InputRightElement, {
|
|
1201
1202
|
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
1202
1203
|
onClick: function onClick() {
|
|
@@ -1574,7 +1575,6 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1574
1575
|
width: "0",
|
|
1575
1576
|
autoComplete: "off",
|
|
1576
1577
|
type: "text",
|
|
1577
|
-
ref: inputRef,
|
|
1578
1578
|
tabIndex: -1,
|
|
1579
1579
|
_focus: {
|
|
1580
1580
|
boxShadow: 'none !important'
|
|
@@ -1596,6 +1596,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1596
1596
|
optionIndex: optionIndex,
|
|
1597
1597
|
loading: loadingOptions
|
|
1598
1598
|
}, /*#__PURE__*/React__default.createElement(react.Input, {
|
|
1599
|
+
ref: inputRef,
|
|
1599
1600
|
value: searchValue,
|
|
1600
1601
|
onChange: handleInput,
|
|
1601
1602
|
disabled: loadingOptions
|
|
@@ -1947,6 +1948,10 @@ function Input(_ref) {
|
|
|
1947
1948
|
loadingOptions = _ref$loadingOptions === void 0 ? false : _ref$loadingOptions,
|
|
1948
1949
|
truncatePillLength = _ref.truncatePillLength;
|
|
1949
1950
|
function selectedInputField(onChange, onBlur, ref, value) {
|
|
1951
|
+
if (inputType === 'text') {
|
|
1952
|
+
console.log(errorText);
|
|
1953
|
+
console.log(isInvalid);
|
|
1954
|
+
}
|
|
1950
1955
|
switch (inputType) {
|
|
1951
1956
|
case 'text':
|
|
1952
1957
|
return /*#__PURE__*/React__default.createElement(StackedInput, {
|
|
@@ -1967,7 +1972,9 @@ function Input(_ref) {
|
|
|
1967
1972
|
defaultValue: defaultValue,
|
|
1968
1973
|
value: value,
|
|
1969
1974
|
variant: variant,
|
|
1970
|
-
label: label
|
|
1975
|
+
label: label,
|
|
1976
|
+
setError: setError,
|
|
1977
|
+
clearErrors: clearErrors
|
|
1971
1978
|
});
|
|
1972
1979
|
case 'radio':
|
|
1973
1980
|
return /*#__PURE__*/React__default.createElement(StackedRadioGroup, {
|
|
@@ -1994,6 +2001,8 @@ function Input(_ref) {
|
|
|
1994
2001
|
onBlur: onBlur,
|
|
1995
2002
|
setValue: setValue,
|
|
1996
2003
|
control: control,
|
|
2004
|
+
setError: setError,
|
|
2005
|
+
clearErrors: clearErrors,
|
|
1997
2006
|
ref: ref,
|
|
1998
2007
|
disabled: disabled,
|
|
1999
2008
|
value: value,
|
|
@@ -2117,7 +2126,7 @@ function Input(_ref) {
|
|
|
2117
2126
|
tooltipText: tooltipText,
|
|
2118
2127
|
label: label,
|
|
2119
2128
|
isRequired: isRequired
|
|
2120
|
-
}), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid && /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText), helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText));
|
|
2129
|
+
}), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid && /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText), helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText), errorText, " ", isInvalid == null ? void 0 : isInvalid.toString());
|
|
2121
2130
|
}
|
|
2122
2131
|
});
|
|
2123
2132
|
}
|