@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "9.2.4-beta.10",
3
+ "version": "9.2.4-beta.12",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -262,13 +262,13 @@ const Dropdown = ({
262
262
  useEffect(() => {
263
263
  if (autoEraseTypeAhead) {
264
264
  clearTimeout(timer);
265
- setTimer(setTimeout(() => setInputValue(""), 3000));
265
+ setTimer(setTimeout(() => setInputValue(""), 20000));
266
266
  }
267
267
  setFilteredOptions(
268
268
  options.filter(
269
269
  option =>
270
- option.value.toLowerCase().startsWith(inputValue.toLowerCase()) ||
271
- option.text.toLowerCase().startsWith(inputValue.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 childGap="0" role="radiogroup" aria-required={isSectionRequired}>
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={!!section?.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={!!section?.required}
186
+ isRequired={section?.required}
183
187
  />
184
188
  </Box>
185
189
  )}