@thecb/components 9.2.10-beta.12 → 9.2.10-beta.13
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 +6 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +6 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22180,8 +22180,8 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22180
22180
|
id: "checkbox-".concat(name),
|
|
22181
22181
|
disabled: disabled,
|
|
22182
22182
|
name: name,
|
|
22183
|
-
"aria-label": checkboxAriaLabel || "".concat(title, " checkbox"),
|
|
22184
22183
|
checked: checked,
|
|
22184
|
+
hidden: true,
|
|
22185
22185
|
onChange: onChange,
|
|
22186
22186
|
tabIndex: "-1",
|
|
22187
22187
|
"aria-invalid": error,
|
|
@@ -22201,7 +22201,9 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22201
22201
|
errorStyles: themeValues.errorStyles,
|
|
22202
22202
|
disabledStyles: themeValues.disabledStyles,
|
|
22203
22203
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
22204
|
-
focusedStyles: themeValues.focusedStyles
|
|
22204
|
+
focusedStyles: themeValues.focusedStyles,
|
|
22205
|
+
"aria-describedby": error ? "".concat(name, "-error-message") : "",
|
|
22206
|
+
"aria-labelledby": !checkboxAriaLabel ? "".concat(name, "_checkbox_title") : undefined
|
|
22205
22207
|
}, checkboxProps), /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
22206
22208
|
viewBox: "0 0 24 24",
|
|
22207
22209
|
disabled: disabled,
|
|
@@ -22211,6 +22213,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22211
22213
|
points: "20 6 9 17 4 12"
|
|
22212
22214
|
})))), title && /*#__PURE__*/React.createElement(Text$1, {
|
|
22213
22215
|
variant: "p",
|
|
22216
|
+
id: "".concat(name, "_checkbox_title"),
|
|
22214
22217
|
weight: themeValues.textFontWeight,
|
|
22215
22218
|
color: themeValues.textColor,
|
|
22216
22219
|
extraStyles: textExtraStyles ? "".concat(textExtraStyles, " ").concat(disabled && "color: #6e727e; background-color: #f7f7f7;", " ") : "margin-left: 1rem ".concat(disabled && "color: #6e727e; background-color: #f7f7f7;")
|
|
@@ -47877,7 +47880,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47877
47880
|
error: error,
|
|
47878
47881
|
checked: isChecked,
|
|
47879
47882
|
onChange: onCheck,
|
|
47880
|
-
|
|
47883
|
+
checkboxAriaLabel: checkboxAriaLabel
|
|
47881
47884
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
47882
47885
|
padding: "0 0 0 58px"
|
|
47883
47886
|
}, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Box, {
|