@thecb/components 9.2.2-beta.2 → 9.2.2-beta.4
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/index.cjs.js
CHANGED
|
@@ -23992,11 +23992,11 @@ var Dropdown = function Dropdown(_ref13) {
|
|
|
23992
23992
|
clearTimeout(timer);
|
|
23993
23993
|
setTimer(setTimeout(function () {
|
|
23994
23994
|
return setInputValue("");
|
|
23995
|
-
},
|
|
23995
|
+
}, 20000));
|
|
23996
23996
|
}
|
|
23997
23997
|
|
|
23998
23998
|
setFilteredOptions(options.filter(function (option) {
|
|
23999
|
-
return option.value.toLowerCase().match(inputValue.toLowerCase());
|
|
23999
|
+
return option.value.toLowerCase().match(inputValue.toLowerCase()) || option.text.toLowerCase().match(inputValue.toLowerCase());
|
|
24000
24000
|
}));
|
|
24001
24001
|
}, [inputValue]);
|
|
24002
24002
|
React.useEffect(function () {
|
|
@@ -24304,7 +24304,7 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24304
24304
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24305
24305
|
direction: "row",
|
|
24306
24306
|
justify: "space-between"
|
|
24307
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24307
|
+
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24308
24308
|
color: ERROR_COLOR,
|
|
24309
24309
|
variant: "pXS",
|
|
24310
24310
|
weight: themeValues.fontWeight,
|
|
@@ -24313,7 +24313,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24313
24313
|
"aria-live": "polite",
|
|
24314
24314
|
"aria-atomic": true,
|
|
24315
24315
|
"data-qa": createIdFromString(labelTextWhenNoError, "error message")
|
|
24316
|
-
},
|
|
24316
|
+
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
24317
|
+
extraStyles: "height: ".concat(themeValues.lineHeight, ";")
|
|
24318
|
+
})));
|
|
24317
24319
|
};
|
|
24318
24320
|
|
|
24319
24321
|
var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");
|