@thecb/components 9.2.10-beta.15 → 9.2.10-beta.17
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 +9 -20
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -20
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +3 -7
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +0 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +1 -3
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +1 -3
package/dist/index.cjs.js
CHANGED
|
@@ -22107,7 +22107,7 @@ var HiddenCheckbox = styled__default.input.attrs({
|
|
|
22107
22107
|
}).withConfig({
|
|
22108
22108
|
displayName: "Checkbox__HiddenCheckbox",
|
|
22109
22109
|
componentId: "sc-36kqbv-3"
|
|
22110
|
-
})(["border:0;clip:rect(0 0 0 0);
|
|
22110
|
+
})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
|
|
22111
22111
|
var StyledCheckbox = styled__default.div.withConfig({
|
|
22112
22112
|
displayName: "Checkbox__StyledCheckbox",
|
|
22113
22113
|
componentId: "sc-36kqbv-4"
|
|
@@ -22146,9 +22146,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22146
22146
|
extraStyles = _ref4.extraStyles,
|
|
22147
22147
|
textExtraStyles = _ref4.textExtraStyles,
|
|
22148
22148
|
_ref4$dataQa = _ref4.dataQa,
|
|
22149
|
-
dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa
|
|
22150
|
-
_ref4$checkboxAriaLab = _ref4.checkboxAriaLabel,
|
|
22151
|
-
checkboxAriaLabel = _ref4$checkboxAriaLab === void 0 ? "" : _ref4$checkboxAriaLab;
|
|
22149
|
+
dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
|
|
22152
22150
|
|
|
22153
22151
|
var _useState = React.useState(false),
|
|
22154
22152
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22184,16 +22182,14 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22184
22182
|
id: "checkbox-".concat(name),
|
|
22185
22183
|
disabled: disabled,
|
|
22186
22184
|
name: name,
|
|
22185
|
+
"aria-label": name,
|
|
22187
22186
|
checked: checked,
|
|
22188
22187
|
onChange: onChange,
|
|
22189
22188
|
tabIndex: "-1",
|
|
22190
22189
|
"aria-invalid": error,
|
|
22191
|
-
"aria-describedby": error ? "".concat(name, "-error-message") : ""
|
|
22192
|
-
"aria-hidden": true
|
|
22190
|
+
"aria-describedby": error ? "".concat(name, "-error-message") : ""
|
|
22193
22191
|
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
22194
22192
|
role: "checkbox",
|
|
22195
|
-
"aria-invalid": error,
|
|
22196
|
-
"aria-describedby": error ? "".concat(name, "-error-message") : "",
|
|
22197
22193
|
error: error,
|
|
22198
22194
|
disabled: disabled,
|
|
22199
22195
|
checked: checked,
|
|
@@ -22204,8 +22200,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
22204
22200
|
errorStyles: themeValues.errorStyles,
|
|
22205
22201
|
disabledStyles: themeValues.disabledStyles,
|
|
22206
22202
|
disabledCheckedStyles: themeValues.disabledCheckedStyles,
|
|
22207
|
-
focusedStyles: themeValues.focusedStyles
|
|
22208
|
-
"aria-label": checkboxAriaLabel
|
|
22203
|
+
focusedStyles: themeValues.focusedStyles
|
|
22209
22204
|
}, /*#__PURE__*/React__default.createElement(CheckboxIcon, {
|
|
22210
22205
|
viewBox: "0 0 24 24",
|
|
22211
22206
|
disabled: disabled,
|
|
@@ -47866,9 +47861,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47866
47861
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
47867
47862
|
linkVariant = _ref.linkVariant,
|
|
47868
47863
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47869
|
-
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele
|
|
47870
|
-
_ref$checkboxAriaLabe = _ref.checkboxAriaLabel,
|
|
47871
|
-
checkboxAriaLabel = _ref$checkboxAriaLabe === void 0 ? "" : _ref$checkboxAriaLabe;
|
|
47864
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47872
47865
|
|
|
47873
47866
|
var _useState = React.useState(false),
|
|
47874
47867
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47880,8 +47873,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
|
|
|
47880
47873
|
title: "Terms and Conditions",
|
|
47881
47874
|
error: error,
|
|
47882
47875
|
checked: isChecked,
|
|
47883
|
-
onChange: onCheck
|
|
47884
|
-
checkboxAriaLabel: checkboxAriaLabel
|
|
47876
|
+
onChange: onCheck
|
|
47885
47877
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
47886
47878
|
padding: "0 0 0 58px"
|
|
47887
47879
|
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -47923,9 +47915,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47923
47915
|
_ref$modalTitle = _ref.modalTitle,
|
|
47924
47916
|
modalTitle = _ref$modalTitle === void 0 ? "Terms and Conditions" : _ref$modalTitle,
|
|
47925
47917
|
_ref$initialFocusSele = _ref.initialFocusSelector,
|
|
47926
|
-
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele
|
|
47927
|
-
_ref$checkboxAriaLabe = _ref.checkboxAriaLabel,
|
|
47928
|
-
checkboxAriaLabel = _ref$checkboxAriaLabe === void 0 ? "" : _ref$checkboxAriaLabe;
|
|
47918
|
+
initialFocusSelector = _ref$initialFocusSele === void 0 ? "" : _ref$initialFocusSele;
|
|
47929
47919
|
|
|
47930
47920
|
var _useState = React.useState(false),
|
|
47931
47921
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -47962,8 +47952,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
|
|
|
47962
47952
|
checked: isChecked,
|
|
47963
47953
|
onChange: onCheck,
|
|
47964
47954
|
checkboxMargin: checkboxMargin,
|
|
47965
|
-
extraStyles: "align-self: flex-start;"
|
|
47966
|
-
checkboxAriaLabel: checkboxAriaLabel
|
|
47955
|
+
extraStyles: "align-self: flex-start;"
|
|
47967
47956
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
47968
47957
|
childGap: "0.25rem",
|
|
47969
47958
|
fullHeight: true
|