@thecb/components 5.2.1 → 5.3.3-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/dist/index.cjs.js +12 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -18
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +1 -1
- package/src/components/atoms/dropdown/DropdownIcon.js +2 -7
- package/src/components/molecules/radio-section/RadioSection.js +4 -2
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +0 -5
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js +13 -5
package/dist/index.esm.js
CHANGED
|
@@ -12541,7 +12541,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12541
12541
|
activeStyles: activeStyles,
|
|
12542
12542
|
disabledStyles: disabledStyles,
|
|
12543
12543
|
as: "button",
|
|
12544
|
-
onClick:
|
|
12544
|
+
onClick: isLoading ? undefined : action,
|
|
12545
12545
|
borderRadius: "2px",
|
|
12546
12546
|
theme: themeContext,
|
|
12547
12547
|
extraStyles: "margin: 0.5rem; ".concat(extraStyles),
|
|
@@ -19280,15 +19280,12 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
19280
19280
|
transform: "translate(1 1)"
|
|
19281
19281
|
}, /*#__PURE__*/React.createElement("g", {
|
|
19282
19282
|
fillRule: "evenodd",
|
|
19283
|
-
fill: "none"
|
|
19284
|
-
id: "Symbols_1548197283918"
|
|
19283
|
+
fill: "none"
|
|
19285
19284
|
}, /*#__PURE__*/React.createElement("g", {
|
|
19286
19285
|
fill: "#333",
|
|
19287
|
-
transform: "translate(-155 -22)"
|
|
19288
|
-
id: "Dropdown/Closed_1548197283918"
|
|
19286
|
+
transform: "translate(-155 -22)"
|
|
19289
19287
|
}, /*#__PURE__*/React.createElement("polygon", {
|
|
19290
19288
|
points: "165.59 22.59 161 27.17 156.41 22.59 155 24 161 30 167 24",
|
|
19291
|
-
id: "Path_1548197283918",
|
|
19292
19289
|
vectorEffect: "non-scaling-stroke"
|
|
19293
19290
|
})))));
|
|
19294
19291
|
};
|
|
@@ -40451,7 +40448,9 @@ var fallbackValues$C = {
|
|
|
40451
40448
|
{
|
|
40452
40449
|
title: <React Component(s)>,
|
|
40453
40450
|
id: <String> "identifier of section",
|
|
40454
|
-
disabled: boolean,
|
|
40451
|
+
disabled: boolean, (displays section and grayed out radio but disables interaction)
|
|
40452
|
+
hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
|
|
40453
|
+
hidden: boolean, (hides section entirely)
|
|
40455
40454
|
dataQa: string,
|
|
40456
40455
|
content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work)
|
|
40457
40456
|
}
|
|
@@ -40571,7 +40570,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
40571
40570
|
return !section.hidden;
|
|
40572
40571
|
}).map(function (section) {
|
|
40573
40572
|
return /*#__PURE__*/React.createElement(Motion, {
|
|
40574
|
-
tabIndex: "0",
|
|
40573
|
+
tabIndex: section.hideRadioButton ? "-1" : "0",
|
|
40575
40574
|
onKeyDown: function onKeyDown(e) {
|
|
40576
40575
|
return handleKeyDown(section.id, e);
|
|
40577
40576
|
},
|
|
@@ -41109,13 +41108,10 @@ var fontWeight$8 = {
|
|
|
41109
41108
|
"default": FONT_WEIGHT_REGULAR,
|
|
41110
41109
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
41111
41110
|
};
|
|
41111
|
+
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";
|
|
41112
41112
|
var modalLinkHoverFocus$2 = {
|
|
41113
|
-
"default":
|
|
41114
|
-
footer:
|
|
41115
|
-
};
|
|
41116
|
-
var accessibilityColor = {
|
|
41117
|
-
"default": "#3181E3",
|
|
41118
|
-
footer: "#3181E3"
|
|
41113
|
+
"default": standardInteractionStyles,
|
|
41114
|
+
footer: standardInteractionStyles
|
|
41119
41115
|
};
|
|
41120
41116
|
var fallbackValues$F = {
|
|
41121
41117
|
backgroundColor: backgroundColor$9,
|
|
@@ -41124,8 +41120,7 @@ var fallbackValues$F = {
|
|
|
41124
41120
|
fontSize: fontSize$c,
|
|
41125
41121
|
lineHeight: lineHeight$6,
|
|
41126
41122
|
fontWeight: fontWeight$8,
|
|
41127
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
41128
|
-
accessibilityColor: accessibilityColor
|
|
41123
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
41129
41124
|
};
|
|
41130
41125
|
|
|
41131
41126
|
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
@@ -41174,8 +41169,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
41174
41169
|
tabIndex: "0",
|
|
41175
41170
|
color: themeValues.linkColor,
|
|
41176
41171
|
weight: themeValues.fontWeight,
|
|
41177
|
-
hoverStyles: themeValues.modalLinkHoverFocus
|
|
41178
|
-
extraStyles: "cursor: pointer; \n &:focus { \n outline: 3px solid ".concat(themeValues.accessibilityColor, "; \n outline-offset: 2px; \n }")
|
|
41172
|
+
hoverStyles: themeValues.modalLinkHoverFocus
|
|
41179
41173
|
}, link));
|
|
41180
41174
|
};
|
|
41181
41175
|
|