@thecb/components 5.2.2 → 5.3.3
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 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -11
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/radio-section/RadioSection.js +4 -2
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +1 -5
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js +13 -5
package/dist/index.cjs.js
CHANGED
|
@@ -40456,7 +40456,9 @@ var fallbackValues$C = {
|
|
|
40456
40456
|
{
|
|
40457
40457
|
title: <React Component(s)>,
|
|
40458
40458
|
id: <String> "identifier of section",
|
|
40459
|
-
disabled: boolean,
|
|
40459
|
+
disabled: boolean, (displays section and grayed out radio but disables interaction)
|
|
40460
|
+
hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
|
|
40461
|
+
hidden: boolean, (hides section entirely)
|
|
40460
40462
|
dataQa: string,
|
|
40461
40463
|
content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work)
|
|
40462
40464
|
}
|
|
@@ -40576,7 +40578,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
40576
40578
|
return !section.hidden;
|
|
40577
40579
|
}).map(function (section) {
|
|
40578
40580
|
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
40579
|
-
tabIndex: "0",
|
|
40581
|
+
tabIndex: section.hideRadioButton ? "-1" : "0",
|
|
40580
40582
|
onKeyDown: function onKeyDown(e) {
|
|
40581
40583
|
return handleKeyDown(section.id, e);
|
|
40582
40584
|
},
|
|
@@ -41114,13 +41116,10 @@ var fontWeight$8 = {
|
|
|
41114
41116
|
"default": FONT_WEIGHT_REGULAR,
|
|
41115
41117
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
41116
41118
|
};
|
|
41119
|
+
var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
|
|
41117
41120
|
var modalLinkHoverFocus$2 = {
|
|
41118
|
-
"default":
|
|
41119
|
-
footer:
|
|
41120
|
-
};
|
|
41121
|
-
var accessibilityColor = {
|
|
41122
|
-
"default": "#3181E3",
|
|
41123
|
-
footer: "#3181E3"
|
|
41121
|
+
"default": standardInteractionStyles,
|
|
41122
|
+
footer: standardInteractionStyles
|
|
41124
41123
|
};
|
|
41125
41124
|
var fallbackValues$F = {
|
|
41126
41125
|
backgroundColor: backgroundColor$9,
|
|
@@ -41129,8 +41128,7 @@ var fallbackValues$F = {
|
|
|
41129
41128
|
fontSize: fontSize$c,
|
|
41130
41129
|
lineHeight: lineHeight$6,
|
|
41131
41130
|
fontWeight: fontWeight$8,
|
|
41132
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
41133
|
-
accessibilityColor: accessibilityColor
|
|
41131
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
41134
41132
|
};
|
|
41135
41133
|
|
|
41136
41134
|
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
@@ -41180,7 +41178,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
41180
41178
|
color: themeValues.linkColor,
|
|
41181
41179
|
weight: themeValues.fontWeight,
|
|
41182
41180
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
41183
|
-
extraStyles: "
|
|
41181
|
+
extraStyles: "display: inline-block; width: fit-content;"
|
|
41184
41182
|
}, link));
|
|
41185
41183
|
};
|
|
41186
41184
|
|