@thecb/components 4.1.16-beta.0 → 4.1.16
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 +48 -33
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +0 -1
- package/src/components/atoms/form-select/FormSelect.js +4 -6
- package/src/components/atoms/form-select/FormSelect.styled.js +17 -0
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.js +17 -15
package/dist/index.cjs.js
CHANGED
|
@@ -18374,7 +18374,7 @@ function _templateObject8() {
|
|
|
18374
18374
|
}
|
|
18375
18375
|
|
|
18376
18376
|
function _templateObject7() {
|
|
18377
|
-
var data = _taggedTemplateLiteral(["\n display: inline-block;\n
|
|
18377
|
+
var data = _taggedTemplateLiteral(["\n display: inline-block;\n width: 24px;\n height: 24px;\n border-radius: 2px;\n transition: all 150ms;\n\n ", " {\n visibility: ", ";\n }\n\n ", ";\n"]);
|
|
18378
18378
|
|
|
18379
18379
|
_templateObject7 = function _templateObject7() {
|
|
18380
18380
|
return data;
|
|
@@ -19094,9 +19094,19 @@ var Dropdown = function Dropdown(_ref9) {
|
|
|
19094
19094
|
|
|
19095
19095
|
var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$e);
|
|
19096
19096
|
|
|
19097
|
-
function
|
|
19097
|
+
function _templateObject4$3() {
|
|
19098
19098
|
var data = _taggedTemplateLiteral([""]);
|
|
19099
19099
|
|
|
19100
|
+
_templateObject4$3 = function _templateObject4() {
|
|
19101
|
+
return data;
|
|
19102
|
+
};
|
|
19103
|
+
|
|
19104
|
+
return data;
|
|
19105
|
+
}
|
|
19106
|
+
|
|
19107
|
+
function _templateObject3$6() {
|
|
19108
|
+
var data = _taggedTemplateLiteral(["\n border: 1px solid\n ", ";\n border-radius: 2px;\n height: 48px;\n width: 100%;\n padding: 0.75rem 1rem;\n min-width: 100px;\n margin: 0;\n box-sizing: border-box;\n position: relative;\n font-size: 1.1rem;\n font-family: Public Sans;\n line-height: 2rem;\n font-weight: ", ";\n background-color: ", ";\n color: ", ";\n box-shadow: none;\n\n &:focus {\n border: 1px solid ", ";\n }\n"]);
|
|
19109
|
+
|
|
19100
19110
|
_templateObject3$6 = function _templateObject3() {
|
|
19101
19111
|
return data;
|
|
19102
19112
|
};
|
|
@@ -19105,7 +19115,7 @@ function _templateObject3$6() {
|
|
|
19105
19115
|
}
|
|
19106
19116
|
|
|
19107
19117
|
function _templateObject2$c() {
|
|
19108
|
-
var data = _taggedTemplateLiteral(["\n
|
|
19118
|
+
var data = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 14px;\n line-height: 18px;\n font-weight: ", ";\n margin-bottom: 4px;\n font-family: Public Sans;\n\n &::first-letter {\n text-transform: uppercase;\n }\n"]);
|
|
19109
19119
|
|
|
19110
19120
|
_templateObject2$c = function _templateObject2() {
|
|
19111
19121
|
return data;
|
|
@@ -19124,18 +19134,23 @@ function _templateObject$o() {
|
|
|
19124
19134
|
return data;
|
|
19125
19135
|
}
|
|
19126
19136
|
var SelectContainer = styled__default.div(_templateObject$o());
|
|
19127
|
-
var
|
|
19137
|
+
var SelectLabel = styled__default.label(_templateObject2$c(), function (_ref) {
|
|
19128
19138
|
var field = _ref.field,
|
|
19129
19139
|
showErrors = _ref.showErrors;
|
|
19140
|
+
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : STORM_GREY;
|
|
19141
|
+
}, FONT_WEIGHT_REGULAR);
|
|
19142
|
+
var SelectField = styled__default.select(_templateObject3$6(), function (_ref2) {
|
|
19143
|
+
var field = _ref2.field,
|
|
19144
|
+
showErrors = _ref2.showErrors;
|
|
19130
19145
|
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : GHOST_GREY;
|
|
19131
|
-
}, FONT_WEIGHT_REGULAR, function (
|
|
19132
|
-
var themeValues = _ref2.themeValues;
|
|
19133
|
-
return themeValues.inputBackgroundColor && themeValues.inputBackgroundColor;
|
|
19134
|
-
}, function (_ref3) {
|
|
19146
|
+
}, FONT_WEIGHT_REGULAR, function (_ref3) {
|
|
19135
19147
|
var themeValues = _ref3.themeValues;
|
|
19148
|
+
return themeValues.inputBackgroundColor && themeValues.inputBackgroundColor;
|
|
19149
|
+
}, function (_ref4) {
|
|
19150
|
+
var themeValues = _ref4.themeValues;
|
|
19136
19151
|
return themeValues.color && themeValues.color;
|
|
19137
19152
|
}, MATISSE_BLUE);
|
|
19138
|
-
var SelectOption = styled__default.option(
|
|
19153
|
+
var SelectOption = styled__default.option(_templateObject4$3());
|
|
19139
19154
|
|
|
19140
19155
|
var linkColor$1 = {
|
|
19141
19156
|
"default": "".concat(MATISSE_BLUE),
|
|
@@ -19241,10 +19256,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19241
19256
|
variant: "pS",
|
|
19242
19257
|
color: themeValues.labelColor,
|
|
19243
19258
|
weight: themeValues.fontWeight,
|
|
19244
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19245
|
-
id: labelTextWhenNoError.replace(/\s+/g, "-")
|
|
19259
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19246
19260
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
19247
|
-
"aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
|
|
19248
19261
|
maxHeight: dropdownMaxHeight,
|
|
19249
19262
|
placeholder: options[0] ? options[0].text : "",
|
|
19250
19263
|
options: options,
|
|
@@ -19260,9 +19273,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19260
19273
|
onClick: function onClick() {
|
|
19261
19274
|
return setOpen(!open);
|
|
19262
19275
|
}
|
|
19263
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
19264
|
-
|
|
19265
|
-
|
|
19276
|
+
}), /*#__PURE__*/React__default.createElement(SelectLabel, {
|
|
19277
|
+
field: field,
|
|
19278
|
+
showErrors: showErrors
|
|
19266
19279
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19267
19280
|
color: ERROR_COLOR,
|
|
19268
19281
|
variant: "pXS",
|
|
@@ -20466,10 +20479,10 @@ var fallbackValues$h = {
|
|
|
20466
20479
|
hoverFocusStyles: hoverFocusStyles$1
|
|
20467
20480
|
};
|
|
20468
20481
|
|
|
20469
|
-
function _templateObject4$
|
|
20482
|
+
function _templateObject4$4() {
|
|
20470
20483
|
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
20471
20484
|
|
|
20472
|
-
_templateObject4$
|
|
20485
|
+
_templateObject4$4 = function _templateObject4() {
|
|
20473
20486
|
return data;
|
|
20474
20487
|
};
|
|
20475
20488
|
|
|
@@ -20550,7 +20563,7 @@ var FormattedInputField = styled__default(function (_ref7) {
|
|
|
20550
20563
|
return themeValues.color && themeValues.color;
|
|
20551
20564
|
}, MATISSE_BLUE, function (_ref12) {
|
|
20552
20565
|
var extraStyles = _ref12.extraStyles;
|
|
20553
|
-
return styled.css(_templateObject4$
|
|
20566
|
+
return styled.css(_templateObject4$4(), extraStyles);
|
|
20554
20567
|
});
|
|
20555
20568
|
|
|
20556
20569
|
var FormInput = function FormInput(_ref13) {
|
|
@@ -21305,10 +21318,10 @@ function _templateObject5$2() {
|
|
|
21305
21318
|
return data;
|
|
21306
21319
|
}
|
|
21307
21320
|
|
|
21308
|
-
function _templateObject4$
|
|
21321
|
+
function _templateObject4$5() {
|
|
21309
21322
|
var data = _taggedTemplateLiteral(["", " is not a valid length"]);
|
|
21310
21323
|
|
|
21311
|
-
_templateObject4$
|
|
21324
|
+
_templateObject4$5 = function _templateObject4() {
|
|
21312
21325
|
return data;
|
|
21313
21326
|
};
|
|
21314
21327
|
|
|
@@ -21384,7 +21397,7 @@ with interpolation.
|
|
|
21384
21397
|
*/
|
|
21385
21398
|
|
|
21386
21399
|
|
|
21387
|
-
var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject$t(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MAX_LENGTH_ERROR, genErrorMessage(_templateObject2$h(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EXACT_LENGTH_ERROR, genErrorMessage(_templateObject3$9(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MULTIPLE_LENGTHS_ERROR, genErrorMessage(_templateObject4$
|
|
21400
|
+
var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject$t(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MAX_LENGTH_ERROR, genErrorMessage(_templateObject2$h(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EXACT_LENGTH_ERROR, genErrorMessage(_templateObject3$9(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MULTIPLE_LENGTHS_ERROR, genErrorMessage(_templateObject4$5(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EMAIL_ERROR, genErrorMessage(_templateObject5$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_NUMBER_ERROR, genErrorMessage(_templateObject6$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_UPPERCASE_LETTER_ERROR, genErrorMessage(_templateObject7$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_LOWERCASE_LETTER_ERROR, genErrorMessage(_templateObject8$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_SPECIAL_CHARACTER_ERROR, genErrorMessage(_templateObject9$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_NUMBERS_ERROR, genErrorMessage(_templateObject10$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_LETTERS_ERROR, genErrorMessage(_templateObject11$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, REQUIRED_FIELD_ERROR, genErrorMessage(_templateObject12(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_GREATER_THAN_ERROR, genErrorMessage(_templateObject13(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_LESS_THAN_ERROR, genErrorMessage(_templateObject14(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MATCHES_FIELD_ERROR, genErrorMessage(_templateObject15(), "fieldLabel", "matchField")), _defineProperty(_DEFAULT_ERROR_MESSAG, VALID_SELECT_OPTION_ERROR, genErrorMessage(_templateObject16(), "fieldLabel")), _DEFAULT_ERROR_MESSAG); // Constants to represent an input's state
|
|
21388
21401
|
// Neutral - has not been validated
|
|
21389
21402
|
// Invalid - has been validated and has an error
|
|
21390
21403
|
// Valid - has been validated and has no error
|
|
@@ -32347,10 +32360,10 @@ var fallbackValues$r = {
|
|
|
32347
32360
|
leftLabelStyles: leftLabelStyles
|
|
32348
32361
|
};
|
|
32349
32362
|
|
|
32350
|
-
function _templateObject4$
|
|
32363
|
+
function _templateObject4$6() {
|
|
32351
32364
|
var data = _taggedTemplateLiteral(["\n position: absolute;\n width: 14px;\n height: 14px;\n top: 3px;\n left: 3px;\n right: 3px;\n bottom: 3px;\n border-radius: 50%;\n box-sizing: border-box;\n"]);
|
|
32352
32365
|
|
|
32353
|
-
_templateObject4$
|
|
32366
|
+
_templateObject4$6 = function _templateObject4() {
|
|
32354
32367
|
return data;
|
|
32355
32368
|
};
|
|
32356
32369
|
|
|
@@ -32404,7 +32417,7 @@ var VisibleSwitchComponent = styled__default.label(_templateObject2$i(), functio
|
|
|
32404
32417
|
return isMobile ? "transform: scale(0.75)" : "";
|
|
32405
32418
|
});
|
|
32406
32419
|
var ToggleSwitchMiddleRingComponent = styled__default.div(_templateObject3$a());
|
|
32407
|
-
var ToggleSwitchInnerRingComponent = styled__default.div(_templateObject4$
|
|
32420
|
+
var ToggleSwitchInnerRingComponent = styled__default.div(_templateObject4$6());
|
|
32408
32421
|
|
|
32409
32422
|
var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
32410
32423
|
var _ref6$isOn = _ref6.isOn,
|
|
@@ -34777,10 +34790,10 @@ function _templateObject5$3() {
|
|
|
34777
34790
|
return data;
|
|
34778
34791
|
}
|
|
34779
34792
|
|
|
34780
|
-
function _templateObject4$
|
|
34793
|
+
function _templateObject4$7() {
|
|
34781
34794
|
var data = _taggedTemplateLiteral(["\n color: ", ";\n align-items: center;\n font-size: 1rem;\n padding-right: 1rem;\n cursor: pointer;\n display: ", ";\n"]);
|
|
34782
34795
|
|
|
34783
|
-
_templateObject4$
|
|
34796
|
+
_templateObject4$7 = function _templateObject4() {
|
|
34784
34797
|
return data;
|
|
34785
34798
|
};
|
|
34786
34799
|
|
|
@@ -34834,7 +34847,7 @@ var EditableTableListItem = styled__default.div(_templateObject2$k(), function (
|
|
|
34834
34847
|
return isMobile ? "padding: 1rem 0.5rem" : "padding: 0 0.5rem";
|
|
34835
34848
|
});
|
|
34836
34849
|
var EditableListItemControls$1 = styled__default.div(_templateObject3$b());
|
|
34837
|
-
var EditableListAction = styled__default.div(_templateObject4$
|
|
34850
|
+
var EditableListAction = styled__default.div(_templateObject4$7(), MATISSE_BLUE, function (_ref6) {
|
|
34838
34851
|
var hide = _ref6.hide;
|
|
34839
34852
|
return hide ? "none" : "flex";
|
|
34840
34853
|
});
|
|
@@ -40055,22 +40068,24 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
40055
40068
|
showTerms = _useState2[0],
|
|
40056
40069
|
toggleShowTerms = _useState2[1];
|
|
40057
40070
|
|
|
40058
|
-
return /*#__PURE__*/React__default.createElement(DisplayBox$1, null, /*#__PURE__*/React__default.createElement(Stack,
|
|
40071
|
+
return /*#__PURE__*/React__default.createElement(DisplayBox$1, null, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40072
|
+
direction: "row"
|
|
40073
|
+
}, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40059
40074
|
name: "terms",
|
|
40060
|
-
title: "Terms and Conditions",
|
|
40061
40075
|
error: error,
|
|
40062
40076
|
checked: isChecked,
|
|
40063
40077
|
onChange: onCheck
|
|
40064
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
40065
|
-
|
|
40066
|
-
|
|
40078
|
+
}), /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
40079
|
+
variant: "p",
|
|
40080
|
+
fontWeight: FONT_WEIGHT_BOLD
|
|
40081
|
+
}, "Terms and Conditions"), /*#__PURE__*/React__default.createElement(Box, {
|
|
40067
40082
|
padding: "0"
|
|
40068
40083
|
}, html), terms && /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
40069
40084
|
link: "Learn More",
|
|
40070
40085
|
terms: terms,
|
|
40071
40086
|
isOpen: showTerms,
|
|
40072
40087
|
toggleOpen: toggleShowTerms
|
|
40073
|
-
}))))
|
|
40088
|
+
}))));
|
|
40074
40089
|
};
|
|
40075
40090
|
|
|
40076
40091
|
var Timeout = function Timeout(_ref) {
|
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@ import React, { useState, useRef, useEffect } from "react";
|
|
|
2
2
|
import Dropdown from "../dropdown";
|
|
3
3
|
import Text from "../text";
|
|
4
4
|
import { ERROR_COLOR } from "../../../constants/colors";
|
|
5
|
-
import { SelectContainer } from "./FormSelect.styled";
|
|
5
|
+
import { SelectContainer, SelectLabel } from "./FormSelect.styled";
|
|
6
6
|
import { fallbackValues } from "./FormSelect.theme";
|
|
7
7
|
import { themeComponent } from "../../../util/themeUtils";
|
|
8
|
-
import { Box, Cluster
|
|
8
|
+
import { Box, Cluster } from "../layouts";
|
|
9
9
|
|
|
10
10
|
const FormSelect = ({
|
|
11
11
|
fieldActions,
|
|
@@ -49,14 +49,12 @@ const FormSelect = ({
|
|
|
49
49
|
&::first-letter {
|
|
50
50
|
text-transform: uppercase;
|
|
51
51
|
}`}
|
|
52
|
-
id={labelTextWhenNoError.replace(/\s+/g, "-")}
|
|
53
52
|
>
|
|
54
53
|
{labelTextWhenNoError}
|
|
55
54
|
</Text>
|
|
56
55
|
</Cluster>
|
|
57
56
|
</Box>
|
|
58
57
|
<Dropdown
|
|
59
|
-
aria-labelledby={labelTextWhenNoError.replace(/\s+/g, "-")}
|
|
60
58
|
maxHeight={dropdownMaxHeight}
|
|
61
59
|
placeholder={options[0] ? options[0].text : ""}
|
|
62
60
|
options={options}
|
|
@@ -71,7 +69,7 @@ const FormSelect = ({
|
|
|
71
69
|
}
|
|
72
70
|
onClick={() => setOpen(!open)}
|
|
73
71
|
/>
|
|
74
|
-
<
|
|
72
|
+
<SelectLabel field={field} showErrors={showErrors}>
|
|
75
73
|
{(field.hasErrors && field.dirty) || (field.hasErrors && showErrors) ? (
|
|
76
74
|
<Text
|
|
77
75
|
color={ERROR_COLOR}
|
|
@@ -88,7 +86,7 @@ const FormSelect = ({
|
|
|
88
86
|
) : (
|
|
89
87
|
<Text extraStyles={`height: ${themeValues.lineHeight};`} />
|
|
90
88
|
)}
|
|
91
|
-
</
|
|
89
|
+
</SelectLabel>
|
|
92
90
|
</SelectContainer>
|
|
93
91
|
);
|
|
94
92
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import {
|
|
3
|
+
STORM_GREY,
|
|
3
4
|
GHOST_GREY,
|
|
4
5
|
ERROR_COLOR,
|
|
5
6
|
MATISSE_BLUE
|
|
@@ -17,6 +18,22 @@ export const SelectContainer = styled.div`
|
|
|
17
18
|
}
|
|
18
19
|
`;
|
|
19
20
|
|
|
21
|
+
export const SelectLabel = styled.label`
|
|
22
|
+
color: ${({ field, showErrors }) =>
|
|
23
|
+
(field.dirty && field.hasErrors) || (field.hasErrors && showErrors)
|
|
24
|
+
? ERROR_COLOR
|
|
25
|
+
: STORM_GREY};
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 18px;
|
|
28
|
+
font-weight: ${FONT_WEIGHT_REGULAR};
|
|
29
|
+
margin-bottom: 4px;
|
|
30
|
+
font-family: Public Sans;
|
|
31
|
+
|
|
32
|
+
&::first-letter {
|
|
33
|
+
text-transform: uppercase;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
|
|
20
37
|
export const SelectField = styled.select`
|
|
21
38
|
border: 1px solid
|
|
22
39
|
${({ field, showErrors }) =>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import Checkbox from "../../atoms/checkbox";
|
|
3
|
+
import Text from "../../atoms/text";
|
|
3
4
|
import { Box, Stack } from "../../atoms/layouts";
|
|
4
5
|
import DisplayBox from "../../atoms/display-box";
|
|
6
|
+
import { FONT_WEIGHT_BOLD } from "../../../constants/style_constants";
|
|
5
7
|
import TermsAndConditionsModal from "../../molecules/terms-and-conditions-modal";
|
|
6
8
|
|
|
7
9
|
const TermsAndConditions = ({
|
|
@@ -14,27 +16,27 @@ const TermsAndConditions = ({
|
|
|
14
16
|
const [showTerms, toggleShowTerms] = useState(false);
|
|
15
17
|
return (
|
|
16
18
|
<DisplayBox>
|
|
17
|
-
<Stack>
|
|
19
|
+
<Stack direction="row">
|
|
18
20
|
<Checkbox
|
|
19
21
|
name="terms"
|
|
20
|
-
title="Terms and Conditions"
|
|
21
22
|
error={error}
|
|
22
23
|
checked={isChecked}
|
|
23
24
|
onChange={onCheck}
|
|
24
25
|
/>
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
<Stack>
|
|
27
|
+
<Text variant="p" fontWeight={FONT_WEIGHT_BOLD}>
|
|
28
|
+
Terms and Conditions
|
|
29
|
+
</Text>
|
|
30
|
+
<Box padding="0">{html}</Box>
|
|
31
|
+
{terms && (
|
|
32
|
+
<TermsAndConditionsModal
|
|
33
|
+
link="Learn More"
|
|
34
|
+
terms={terms}
|
|
35
|
+
isOpen={showTerms}
|
|
36
|
+
toggleOpen={toggleShowTerms}
|
|
37
|
+
/>
|
|
38
|
+
)}
|
|
39
|
+
</Stack>
|
|
38
40
|
</Stack>
|
|
39
41
|
</DisplayBox>
|
|
40
42
|
);
|