@thecb/components 4.1.31-beta.0 → 4.1.31-beta.1
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 +25 -19
- package/package.json +1 -1
- package/src/components/atoms/placeholder/Placeholder.js +2 -3
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +5 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js +3 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15381,10 +15381,19 @@ function _assertThisInitialized(self) {
|
|
|
15381
15381
|
return self;
|
|
15382
15382
|
}
|
|
15383
15383
|
|
|
15384
|
+
function _setPrototypeOf(o, p) {
|
|
15385
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
15386
|
+
o.__proto__ = p;
|
|
15387
|
+
return o;
|
|
15388
|
+
};
|
|
15389
|
+
|
|
15390
|
+
return _setPrototypeOf(o, p);
|
|
15391
|
+
}
|
|
15392
|
+
|
|
15384
15393
|
function _inheritsLoose(subClass, superClass) {
|
|
15385
15394
|
subClass.prototype = Object.create(superClass.prototype);
|
|
15386
15395
|
subClass.prototype.constructor = subClass;
|
|
15387
|
-
subClass
|
|
15396
|
+
_setPrototypeOf(subClass, superClass);
|
|
15388
15397
|
}
|
|
15389
15398
|
|
|
15390
15399
|
function _getPrototypeOf(o) {
|
|
@@ -15394,15 +15403,6 @@ function _getPrototypeOf(o) {
|
|
|
15394
15403
|
return _getPrototypeOf(o);
|
|
15395
15404
|
}
|
|
15396
15405
|
|
|
15397
|
-
function _setPrototypeOf(o, p) {
|
|
15398
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
15399
|
-
o.__proto__ = p;
|
|
15400
|
-
return o;
|
|
15401
|
-
};
|
|
15402
|
-
|
|
15403
|
-
return _setPrototypeOf(o, p);
|
|
15404
|
-
}
|
|
15405
|
-
|
|
15406
15406
|
function _isNativeFunction(fn) {
|
|
15407
15407
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
15408
15408
|
}
|
|
@@ -15413,7 +15413,7 @@ function _isNativeReflectConstruct() {
|
|
|
15413
15413
|
if (typeof Proxy === "function") return true;
|
|
15414
15414
|
|
|
15415
15415
|
try {
|
|
15416
|
-
|
|
15416
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
15417
15417
|
return true;
|
|
15418
15418
|
} catch (e) {
|
|
15419
15419
|
return false;
|
|
@@ -15553,7 +15553,9 @@ var ERRORS = {
|
|
|
15553
15553
|
"73": "Please provide a valid CSS variable.\n\n",
|
|
15554
15554
|
"74": "CSS variable not found and no default was provided.\n\n",
|
|
15555
15555
|
"75": "important requires a valid style object, got a %s instead.\n\n",
|
|
15556
|
-
"76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
|
|
15556
|
+
"76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",
|
|
15557
|
+
"77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
|
|
15558
|
+
"78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
|
|
15557
15559
|
};
|
|
15558
15560
|
/**
|
|
15559
15561
|
* super basic version of sprintf
|
|
@@ -21607,8 +21609,7 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
|
|
|
21607
21609
|
dataQa = _ref.dataQa;
|
|
21608
21610
|
return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
21609
21611
|
to: destination,
|
|
21610
|
-
dataQa: dataQa
|
|
21611
|
-
tabIndex: "0"
|
|
21612
|
+
dataQa: dataQa
|
|
21612
21613
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
21613
21614
|
padding: "0",
|
|
21614
21615
|
minHeight: "100%",
|
|
@@ -21618,8 +21619,7 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
|
|
|
21618
21619
|
padding: "0",
|
|
21619
21620
|
minHeight: "100%",
|
|
21620
21621
|
extraStyles: "cursor: pointer;",
|
|
21621
|
-
dataQa: dataQa
|
|
21622
|
-
tabIndex: "0"
|
|
21622
|
+
dataQa: dataQa
|
|
21623
21623
|
}, children);
|
|
21624
21624
|
};
|
|
21625
21625
|
|
|
@@ -21651,7 +21651,8 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
21651
21651
|
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
21652
21652
|
maxWidth: "300px"
|
|
21653
21653
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
21654
|
-
padding: "
|
|
21654
|
+
padding: "0",
|
|
21655
|
+
tabIndex: "0"
|
|
21655
21656
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
21656
21657
|
justify: "center",
|
|
21657
21658
|
align: "center",
|
|
@@ -40093,6 +40094,10 @@ var modalLinkHoverFocus$2 = {
|
|
|
40093
40094
|
"default": "outline: none; text-decoration: underline;",
|
|
40094
40095
|
footer: "outline: none; text-decoration: underline;"
|
|
40095
40096
|
};
|
|
40097
|
+
var accessibilityColor = {
|
|
40098
|
+
"default": "#3181E3",
|
|
40099
|
+
footer: "#3181E3"
|
|
40100
|
+
};
|
|
40096
40101
|
var fallbackValues$B = {
|
|
40097
40102
|
backgroundColor: backgroundColor$9,
|
|
40098
40103
|
linkColor: linkColor$5,
|
|
@@ -40100,7 +40105,8 @@ var fallbackValues$B = {
|
|
|
40100
40105
|
fontSize: fontSize$a,
|
|
40101
40106
|
lineHeight: lineHeight$6,
|
|
40102
40107
|
fontWeight: fontWeight$8,
|
|
40103
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
40108
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2,
|
|
40109
|
+
accessibilityColor: accessibilityColor
|
|
40104
40110
|
};
|
|
40105
40111
|
|
|
40106
40112
|
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
@@ -40150,7 +40156,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
40150
40156
|
color: themeValues.linkColor,
|
|
40151
40157
|
weight: themeValues.fontWeight,
|
|
40152
40158
|
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
40153
|
-
extraStyles: "cursor: pointer;"
|
|
40159
|
+
extraStyles: "cursor: pointer; \n &:focus { \n outline: 3px solid ".concat(themeValues.accessibilityColor, "; \n outline-offset: 2px; \n }")
|
|
40154
40160
|
}, link));
|
|
40155
40161
|
};
|
|
40156
40162
|
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ const PlaceholderContentWrapper = ({
|
|
|
21
21
|
dataQa
|
|
22
22
|
}) =>
|
|
23
23
|
isLink ? (
|
|
24
|
-
<Link to={destination} dataQa={dataQa}
|
|
24
|
+
<Link to={destination} dataQa={dataQa}>
|
|
25
25
|
<Box padding="0" minHeight="100%" extraStyles={`cursor: pointer;`}>
|
|
26
26
|
{children}
|
|
27
27
|
</Box>
|
|
@@ -33,7 +33,6 @@ const PlaceholderContentWrapper = ({
|
|
|
33
33
|
minHeight="100%"
|
|
34
34
|
extraStyles={`cursor: pointer;`}
|
|
35
35
|
dataQa={dataQa}
|
|
36
|
-
tabIndex="0"
|
|
37
36
|
>
|
|
38
37
|
{children}
|
|
39
38
|
</Box>
|
|
@@ -88,7 +87,7 @@ const Placeholder = ({
|
|
|
88
87
|
};`}
|
|
89
88
|
>
|
|
90
89
|
<Center maxWidth="300px">
|
|
91
|
-
<Box padding="
|
|
90
|
+
<Box padding="0" tabIndex="0">
|
|
92
91
|
<Cluster justify="center" align="center" minHeight="100%">
|
|
93
92
|
<Switcher maxChildren={2} childGap="0">
|
|
94
93
|
{variant === "large" && <div></div>}
|
|
@@ -47,7 +47,11 @@ const TermsAndConditionsModal = ({
|
|
|
47
47
|
color={themeValues.linkColor}
|
|
48
48
|
weight={themeValues.fontWeight}
|
|
49
49
|
hoverStyles={themeValues.modalLinkHoverFocus}
|
|
50
|
-
extraStyles={`cursor: pointer
|
|
50
|
+
extraStyles={`cursor: pointer;
|
|
51
|
+
&:focus {
|
|
52
|
+
outline: 3px solid ${themeValues.accessibilityColor};
|
|
53
|
+
outline-offset: 2px;
|
|
54
|
+
}`}
|
|
51
55
|
>
|
|
52
56
|
{link}
|
|
53
57
|
</Text>
|
package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.theme.js
CHANGED
|
@@ -16,6 +16,7 @@ const modalLinkHoverFocus = {
|
|
|
16
16
|
default: `outline: none; text-decoration: underline;`,
|
|
17
17
|
footer: `outline: none; text-decoration: underline;`
|
|
18
18
|
};
|
|
19
|
+
const accessibilityColor = { default: "#3181E3", footer: "#3181E3" };
|
|
19
20
|
|
|
20
21
|
export const fallbackValues = {
|
|
21
22
|
backgroundColor,
|
|
@@ -24,5 +25,6 @@ export const fallbackValues = {
|
|
|
24
25
|
fontSize,
|
|
25
26
|
lineHeight,
|
|
26
27
|
fontWeight,
|
|
27
|
-
modalLinkHoverFocus
|
|
28
|
+
modalLinkHoverFocus,
|
|
29
|
+
accessibilityColor
|
|
28
30
|
};
|