@thecb/components 9.2.4-beta.7 → 9.2.4-beta.9

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.7",
3
+ "version": "9.2.4-beta.9",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -125,7 +125,7 @@ const RadioSection = ({
125
125
  role="radio"
126
126
  aria-checked={openSection === section.id}
127
127
  aria-disabled={section.disabled}
128
- required={!!section?.required}
128
+ aria-required={!!section?.required}
129
129
  >
130
130
  <Stack childGap="0">
131
131
  <Box
@@ -20,7 +20,8 @@ const RadioButton = ({
20
20
  themeValues,
21
21
  ariaLabelledBy = "",
22
22
  ariaLabel = null,
23
- isRequired = false
23
+ isRequired = false,
24
+ ...rest
24
25
  }) => {
25
26
  const buttonBorder = {
26
27
  onFocused: {
@@ -65,7 +66,7 @@ const RadioButton = ({
65
66
  width: "0px"
66
67
  }
67
68
  };
68
- const extraProps = {};
69
+ const extraProps = rest?.length ? rest : {};
69
70
  if (ariaLabelledBy && ariaLabelledBy.length) {
70
71
  extraProps["aria-labelledby"] = ariaLabelledBy;
71
72
  } else if (ariaLabel && ariaLabel !== null) {