@thecb/components 9.2.4-beta.10 → 9.2.4-beta.12
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/package.json
CHANGED
|
@@ -262,13 +262,13 @@ const Dropdown = ({
|
|
|
262
262
|
useEffect(() => {
|
|
263
263
|
if (autoEraseTypeAhead) {
|
|
264
264
|
clearTimeout(timer);
|
|
265
|
-
setTimer(setTimeout(() => setInputValue(""),
|
|
265
|
+
setTimer(setTimeout(() => setInputValue(""), 20000));
|
|
266
266
|
}
|
|
267
267
|
setFilteredOptions(
|
|
268
268
|
options.filter(
|
|
269
269
|
option =>
|
|
270
|
-
option.value.toLowerCase().
|
|
271
|
-
option.text.toLowerCase().
|
|
270
|
+
option.value.toLowerCase().match(inputValue.toLowerCase()) ||
|
|
271
|
+
option.text.toLowerCase().match(inputValue.toLowerCase())
|
|
272
272
|
)
|
|
273
273
|
);
|
|
274
274
|
}, [inputValue]);
|
|
@@ -106,7 +106,11 @@ const RadioSection = ({
|
|
|
106
106
|
borderRadius="4px"
|
|
107
107
|
extraStyles={containerStyles}
|
|
108
108
|
>
|
|
109
|
-
<Stack
|
|
109
|
+
<Stack
|
|
110
|
+
childGap="0"
|
|
111
|
+
aria-role="radiogroup"
|
|
112
|
+
aria-required={isSectionRequired}
|
|
113
|
+
>
|
|
110
114
|
{sections
|
|
111
115
|
.filter(section => !section.hidden)
|
|
112
116
|
.map(section => (
|
|
@@ -125,7 +129,7 @@ const RadioSection = ({
|
|
|
125
129
|
role="radio"
|
|
126
130
|
aria-checked={openSection === section.id}
|
|
127
131
|
aria-disabled={section.disabled}
|
|
128
|
-
aria-required={
|
|
132
|
+
aria-required={section?.required}
|
|
129
133
|
>
|
|
130
134
|
<Stack childGap="0">
|
|
131
135
|
<Box
|
|
@@ -179,7 +183,7 @@ const RadioSection = ({
|
|
|
179
183
|
: () => toggleOpenSection(section.id)
|
|
180
184
|
}
|
|
181
185
|
tabIndex="-1"
|
|
182
|
-
isRequired={
|
|
186
|
+
isRequired={section?.required}
|
|
183
187
|
/>
|
|
184
188
|
</Box>
|
|
185
189
|
)}
|