@thecb/components 8.4.9-beta.0 → 8.4.10-beta.0

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": "8.4.9-beta.0",
3
+ "version": "8.4.10-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -96,7 +96,6 @@ const FormSelect = ({
96
96
  text-transform: uppercase;
97
97
  }`}
98
98
  id={createIdFromString(labelTextWhenNoError, "error message")}
99
- aria-live="polite"
100
99
  >
101
100
  {errorMessages[field.errors[0]]}
102
101
  </Text>
@@ -57,6 +57,7 @@ const RadioButtonWithLabel = ({
57
57
  ariaInvalid,
58
58
  themeValues,
59
59
  index,
60
+ defaultChecked,
60
61
  handleChange = noop // optional, for custom event handling in ingesting app
61
62
  }) => (
62
63
  <InputAndLabelContainer
@@ -75,7 +76,7 @@ const RadioButtonWithLabel = ({
75
76
  setValue(e.target.value);
76
77
  handleChange(e);
77
78
  }}
78
- defaultChecked={index === 0}
79
+ defaultChecked={defaultChecked || index === 0}
79
80
  />
80
81
  <Text
81
82
  as="label"
@@ -49,6 +49,7 @@ const RadioGroup = ({
49
49
  setValue={setValue}
50
50
  handleChange={handleChange}
51
51
  aria-invalid={field.dirty && field.hasErrors}
52
+ defaultChecked={field.rawValue}
52
53
  />
53
54
  ))}
54
55
  </Stack>