@thecb/components 4.1.16 → 4.1.18
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 +68 -48
- package/package.json +1 -1
- package/src/components/atoms/checkbox/Checkbox.js +1 -0
- package/src/components/atoms/form-select/FormSelect.js +6 -4
- package/src/components/atoms/form-select/FormSelect.styled.js +0 -17
- package/src/components/atoms/icons/GenericCardLarge.js +39 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.js +15 -17
package/dist/index.cjs.js
CHANGED
|
@@ -14663,6 +14663,40 @@ var ProfileIcon = function ProfileIcon(_ref) {
|
|
|
14663
14663
|
|
|
14664
14664
|
var ProfileIcon$1 = themeComponent(ProfileIcon, "Icons", fallbackValues$2, "info");
|
|
14665
14665
|
|
|
14666
|
+
var GenericCardLarge = function GenericCardLarge() {
|
|
14667
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
14668
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14669
|
+
width: "34",
|
|
14670
|
+
height: "28",
|
|
14671
|
+
viewBox: "0 0 34 28"
|
|
14672
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14673
|
+
fill: "none",
|
|
14674
|
+
fillRule: "evenodd",
|
|
14675
|
+
stroke: "none",
|
|
14676
|
+
strokeWidth: "1"
|
|
14677
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14678
|
+
fillRule: "nonzero",
|
|
14679
|
+
transform: "translate(-142 -927)"
|
|
14680
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14681
|
+
transform: "translate(94 518)"
|
|
14682
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14683
|
+
transform: "translate(24 350)"
|
|
14684
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14685
|
+
transform: "translate(0 35)"
|
|
14686
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
14687
|
+
transform: "translate(24 24)"
|
|
14688
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
14689
|
+
fill: "#CACED8",
|
|
14690
|
+
d: "M29.259.699H3.282C1.497.699.035 2.217.035 4.074v20.25c0 1.856 1.462 3.375 3.247 3.375H29.26c1.786 0 3.247-1.52 3.247-3.375V4.074c0-1.857-1.461-3.375-3.247-3.375z"
|
|
14691
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
14692
|
+
fill: "#000",
|
|
14693
|
+
d: "M0.035 6.699H32.50599999999999V13.699H0.035z"
|
|
14694
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
14695
|
+
fill: "#000",
|
|
14696
|
+
d: "M27.51 22.699h-6.244c-.468 0-.937-.47-.937-.938v-3.125c0-.469.469-.937.937-.937h6.244c.469 0 .937.468.937.937v3.125c0 .625-.312.938-.937.938z"
|
|
14697
|
+
}))))))));
|
|
14698
|
+
};
|
|
14699
|
+
|
|
14666
14700
|
var color$2 = "#15749D";
|
|
14667
14701
|
var hoverColor$1 = "#116285";
|
|
14668
14702
|
var activeColor$1 = "#0E506D";
|
|
@@ -18374,7 +18408,7 @@ function _templateObject8() {
|
|
|
18374
18408
|
}
|
|
18375
18409
|
|
|
18376
18410
|
function _templateObject7() {
|
|
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"]);
|
|
18411
|
+
var data = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right: 16px;\n width: 24px;\n height: 24px;\n border-radius: 2px;\n transition: all 150ms;\n\n ", " {\n visibility: ", ";\n }\n\n ", ";\n"]);
|
|
18378
18412
|
|
|
18379
18413
|
_templateObject7 = function _templateObject7() {
|
|
18380
18414
|
return data;
|
|
@@ -19094,18 +19128,8 @@ var Dropdown = function Dropdown(_ref9) {
|
|
|
19094
19128
|
|
|
19095
19129
|
var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$e);
|
|
19096
19130
|
|
|
19097
|
-
function _templateObject4$3() {
|
|
19098
|
-
var data = _taggedTemplateLiteral([""]);
|
|
19099
|
-
|
|
19100
|
-
_templateObject4$3 = function _templateObject4() {
|
|
19101
|
-
return data;
|
|
19102
|
-
};
|
|
19103
|
-
|
|
19104
|
-
return data;
|
|
19105
|
-
}
|
|
19106
|
-
|
|
19107
19131
|
function _templateObject3$6() {
|
|
19108
|
-
var data = _taggedTemplateLiteral(["
|
|
19132
|
+
var data = _taggedTemplateLiteral([""]);
|
|
19109
19133
|
|
|
19110
19134
|
_templateObject3$6 = function _templateObject3() {
|
|
19111
19135
|
return data;
|
|
@@ -19115,7 +19139,7 @@ function _templateObject3$6() {
|
|
|
19115
19139
|
}
|
|
19116
19140
|
|
|
19117
19141
|
function _templateObject2$c() {
|
|
19118
|
-
var data = _taggedTemplateLiteral(["\n
|
|
19142
|
+
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"]);
|
|
19119
19143
|
|
|
19120
19144
|
_templateObject2$c = function _templateObject2() {
|
|
19121
19145
|
return data;
|
|
@@ -19134,23 +19158,18 @@ function _templateObject$o() {
|
|
|
19134
19158
|
return data;
|
|
19135
19159
|
}
|
|
19136
19160
|
var SelectContainer = styled__default.div(_templateObject$o());
|
|
19137
|
-
var
|
|
19161
|
+
var SelectField = styled__default.select(_templateObject2$c(), function (_ref) {
|
|
19138
19162
|
var field = _ref.field,
|
|
19139
19163
|
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;
|
|
19145
19164
|
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : GHOST_GREY;
|
|
19146
|
-
}, FONT_WEIGHT_REGULAR, function (
|
|
19147
|
-
var themeValues =
|
|
19165
|
+
}, FONT_WEIGHT_REGULAR, function (_ref2) {
|
|
19166
|
+
var themeValues = _ref2.themeValues;
|
|
19148
19167
|
return themeValues.inputBackgroundColor && themeValues.inputBackgroundColor;
|
|
19149
|
-
}, function (
|
|
19150
|
-
var themeValues =
|
|
19168
|
+
}, function (_ref3) {
|
|
19169
|
+
var themeValues = _ref3.themeValues;
|
|
19151
19170
|
return themeValues.color && themeValues.color;
|
|
19152
19171
|
}, MATISSE_BLUE);
|
|
19153
|
-
var SelectOption = styled__default.option(
|
|
19172
|
+
var SelectOption = styled__default.option(_templateObject3$6());
|
|
19154
19173
|
|
|
19155
19174
|
var linkColor$1 = {
|
|
19156
19175
|
"default": "".concat(MATISSE_BLUE),
|
|
@@ -19256,8 +19275,10 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19256
19275
|
variant: "pS",
|
|
19257
19276
|
color: themeValues.labelColor,
|
|
19258
19277
|
weight: themeValues.fontWeight,
|
|
19259
|
-
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19278
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
|
|
19279
|
+
id: labelTextWhenNoError.replace(/\s+/g, "-")
|
|
19260
19280
|
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
19281
|
+
"aria-labelledby": labelTextWhenNoError.replace(/\s+/g, "-"),
|
|
19261
19282
|
maxHeight: dropdownMaxHeight,
|
|
19262
19283
|
placeholder: options[0] ? options[0].text : "",
|
|
19263
19284
|
options: options,
|
|
@@ -19273,9 +19294,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19273
19294
|
onClick: function onClick() {
|
|
19274
19295
|
return setOpen(!open);
|
|
19275
19296
|
}
|
|
19276
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
19277
|
-
|
|
19278
|
-
|
|
19297
|
+
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
19298
|
+
direction: "row",
|
|
19299
|
+
justify: "space-between"
|
|
19279
19300
|
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19280
19301
|
color: ERROR_COLOR,
|
|
19281
19302
|
variant: "pXS",
|
|
@@ -20479,10 +20500,10 @@ var fallbackValues$h = {
|
|
|
20479
20500
|
hoverFocusStyles: hoverFocusStyles$1
|
|
20480
20501
|
};
|
|
20481
20502
|
|
|
20482
|
-
function _templateObject4$
|
|
20503
|
+
function _templateObject4$3() {
|
|
20483
20504
|
var data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
20484
20505
|
|
|
20485
|
-
_templateObject4$
|
|
20506
|
+
_templateObject4$3 = function _templateObject4() {
|
|
20486
20507
|
return data;
|
|
20487
20508
|
};
|
|
20488
20509
|
|
|
@@ -20563,7 +20584,7 @@ var FormattedInputField = styled__default(function (_ref7) {
|
|
|
20563
20584
|
return themeValues.color && themeValues.color;
|
|
20564
20585
|
}, MATISSE_BLUE, function (_ref12) {
|
|
20565
20586
|
var extraStyles = _ref12.extraStyles;
|
|
20566
|
-
return styled.css(_templateObject4$
|
|
20587
|
+
return styled.css(_templateObject4$3(), extraStyles);
|
|
20567
20588
|
});
|
|
20568
20589
|
|
|
20569
20590
|
var FormInput = function FormInput(_ref13) {
|
|
@@ -21318,10 +21339,10 @@ function _templateObject5$2() {
|
|
|
21318
21339
|
return data;
|
|
21319
21340
|
}
|
|
21320
21341
|
|
|
21321
|
-
function _templateObject4$
|
|
21342
|
+
function _templateObject4$4() {
|
|
21322
21343
|
var data = _taggedTemplateLiteral(["", " is not a valid length"]);
|
|
21323
21344
|
|
|
21324
|
-
_templateObject4$
|
|
21345
|
+
_templateObject4$4 = function _templateObject4() {
|
|
21325
21346
|
return data;
|
|
21326
21347
|
};
|
|
21327
21348
|
|
|
@@ -21397,7 +21418,7 @@ with interpolation.
|
|
|
21397
21418
|
*/
|
|
21398
21419
|
|
|
21399
21420
|
|
|
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$
|
|
21421
|
+
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$4(), "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
|
|
21401
21422
|
// Neutral - has not been validated
|
|
21402
21423
|
// Invalid - has been validated and has an error
|
|
21403
21424
|
// Valid - has been validated and has no error
|
|
@@ -32360,10 +32381,10 @@ var fallbackValues$r = {
|
|
|
32360
32381
|
leftLabelStyles: leftLabelStyles
|
|
32361
32382
|
};
|
|
32362
32383
|
|
|
32363
|
-
function _templateObject4$
|
|
32384
|
+
function _templateObject4$5() {
|
|
32364
32385
|
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"]);
|
|
32365
32386
|
|
|
32366
|
-
_templateObject4$
|
|
32387
|
+
_templateObject4$5 = function _templateObject4() {
|
|
32367
32388
|
return data;
|
|
32368
32389
|
};
|
|
32369
32390
|
|
|
@@ -32417,7 +32438,7 @@ var VisibleSwitchComponent = styled__default.label(_templateObject2$i(), functio
|
|
|
32417
32438
|
return isMobile ? "transform: scale(0.75)" : "";
|
|
32418
32439
|
});
|
|
32419
32440
|
var ToggleSwitchMiddleRingComponent = styled__default.div(_templateObject3$a());
|
|
32420
|
-
var ToggleSwitchInnerRingComponent = styled__default.div(_templateObject4$
|
|
32441
|
+
var ToggleSwitchInnerRingComponent = styled__default.div(_templateObject4$5());
|
|
32421
32442
|
|
|
32422
32443
|
var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
32423
32444
|
var _ref6$isOn = _ref6.isOn,
|
|
@@ -34790,10 +34811,10 @@ function _templateObject5$3() {
|
|
|
34790
34811
|
return data;
|
|
34791
34812
|
}
|
|
34792
34813
|
|
|
34793
|
-
function _templateObject4$
|
|
34814
|
+
function _templateObject4$6() {
|
|
34794
34815
|
var data = _taggedTemplateLiteral(["\n color: ", ";\n align-items: center;\n font-size: 1rem;\n padding-right: 1rem;\n cursor: pointer;\n display: ", ";\n"]);
|
|
34795
34816
|
|
|
34796
|
-
_templateObject4$
|
|
34817
|
+
_templateObject4$6 = function _templateObject4() {
|
|
34797
34818
|
return data;
|
|
34798
34819
|
};
|
|
34799
34820
|
|
|
@@ -34847,7 +34868,7 @@ var EditableTableListItem = styled__default.div(_templateObject2$k(), function (
|
|
|
34847
34868
|
return isMobile ? "padding: 1rem 0.5rem" : "padding: 0 0.5rem";
|
|
34848
34869
|
});
|
|
34849
34870
|
var EditableListItemControls$1 = styled__default.div(_templateObject3$b());
|
|
34850
|
-
var EditableListAction = styled__default.div(_templateObject4$
|
|
34871
|
+
var EditableListAction = styled__default.div(_templateObject4$6(), MATISSE_BLUE, function (_ref6) {
|
|
34851
34872
|
var hide = _ref6.hide;
|
|
34852
34873
|
return hide ? "none" : "flex";
|
|
34853
34874
|
});
|
|
@@ -40068,24 +40089,22 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
40068
40089
|
showTerms = _useState2[0],
|
|
40069
40090
|
toggleShowTerms = _useState2[1];
|
|
40070
40091
|
|
|
40071
|
-
return /*#__PURE__*/React__default.createElement(DisplayBox$1, null, /*#__PURE__*/React__default.createElement(Stack, {
|
|
40072
|
-
direction: "row"
|
|
40073
|
-
}, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40092
|
+
return /*#__PURE__*/React__default.createElement(DisplayBox$1, null, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
40074
40093
|
name: "terms",
|
|
40094
|
+
title: "Terms and Conditions",
|
|
40075
40095
|
error: error,
|
|
40076
40096
|
checked: isChecked,
|
|
40077
40097
|
onChange: onCheck
|
|
40078
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
40079
|
-
|
|
40080
|
-
|
|
40081
|
-
}, "Terms and Conditions"), /*#__PURE__*/React__default.createElement(Box, {
|
|
40098
|
+
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
40099
|
+
padding: "0 0 0 58px"
|
|
40100
|
+
}, /*#__PURE__*/React__default.createElement(Stack, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
40082
40101
|
padding: "0"
|
|
40083
40102
|
}, html), terms && /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
40084
40103
|
link: "Learn More",
|
|
40085
40104
|
terms: terms,
|
|
40086
40105
|
isOpen: showTerms,
|
|
40087
40106
|
toggleOpen: toggleShowTerms
|
|
40088
|
-
}))));
|
|
40107
|
+
})))));
|
|
40089
40108
|
};
|
|
40090
40109
|
|
|
40091
40110
|
var Timeout = function Timeout(_ref) {
|
|
@@ -40560,6 +40579,7 @@ exports.FormattedAddress = FormattedAddress$1;
|
|
|
40560
40579
|
exports.FormattedCreditCard = FormattedCreditCard$1;
|
|
40561
40580
|
exports.Frame = Frame;
|
|
40562
40581
|
exports.GenericCard = GenericCard;
|
|
40582
|
+
exports.GenericCardLarge = GenericCardLarge;
|
|
40563
40583
|
exports.GoToEmailIcon = GoToEmailIcon$1;
|
|
40564
40584
|
exports.Grid = Grid;
|
|
40565
40585
|
exports.HamburgerButton = HamburgerButton;
|
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
|
|
5
|
+
import { SelectContainer } from "./FormSelect.styled";
|
|
6
6
|
import { fallbackValues } from "./FormSelect.theme";
|
|
7
7
|
import { themeComponent } from "../../../util/themeUtils";
|
|
8
|
-
import { Box, Cluster } from "../layouts";
|
|
8
|
+
import { Box, Cluster, Stack } from "../layouts";
|
|
9
9
|
|
|
10
10
|
const FormSelect = ({
|
|
11
11
|
fieldActions,
|
|
@@ -49,12 +49,14 @@ const FormSelect = ({
|
|
|
49
49
|
&::first-letter {
|
|
50
50
|
text-transform: uppercase;
|
|
51
51
|
}`}
|
|
52
|
+
id={labelTextWhenNoError.replace(/\s+/g, "-")}
|
|
52
53
|
>
|
|
53
54
|
{labelTextWhenNoError}
|
|
54
55
|
</Text>
|
|
55
56
|
</Cluster>
|
|
56
57
|
</Box>
|
|
57
58
|
<Dropdown
|
|
59
|
+
aria-labelledby={labelTextWhenNoError.replace(/\s+/g, "-")}
|
|
58
60
|
maxHeight={dropdownMaxHeight}
|
|
59
61
|
placeholder={options[0] ? options[0].text : ""}
|
|
60
62
|
options={options}
|
|
@@ -69,7 +71,7 @@ const FormSelect = ({
|
|
|
69
71
|
}
|
|
70
72
|
onClick={() => setOpen(!open)}
|
|
71
73
|
/>
|
|
72
|
-
<
|
|
74
|
+
<Stack direction="row" justify="space-between">
|
|
73
75
|
{(field.hasErrors && field.dirty) || (field.hasErrors && showErrors) ? (
|
|
74
76
|
<Text
|
|
75
77
|
color={ERROR_COLOR}
|
|
@@ -86,7 +88,7 @@ const FormSelect = ({
|
|
|
86
88
|
) : (
|
|
87
89
|
<Text extraStyles={`height: ${themeValues.lineHeight};`} />
|
|
88
90
|
)}
|
|
89
|
-
</
|
|
91
|
+
</Stack>
|
|
90
92
|
</SelectContainer>
|
|
91
93
|
);
|
|
92
94
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import {
|
|
3
|
-
STORM_GREY,
|
|
4
3
|
GHOST_GREY,
|
|
5
4
|
ERROR_COLOR,
|
|
6
5
|
MATISSE_BLUE
|
|
@@ -18,22 +17,6 @@ export const SelectContainer = styled.div`
|
|
|
18
17
|
}
|
|
19
18
|
`;
|
|
20
19
|
|
|
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
|
-
|
|
37
20
|
export const SelectField = styled.select`
|
|
38
21
|
border: 1px solid
|
|
39
22
|
${({ field, showErrors }) =>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
const GenericCardLarge = () => {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width="34"
|
|
8
|
+
height="28"
|
|
9
|
+
viewBox="0 0 34 28"
|
|
10
|
+
>
|
|
11
|
+
<g fill="none" fillRule="evenodd" stroke="none" strokeWidth="1">
|
|
12
|
+
<g fillRule="nonzero" transform="translate(-142 -927)">
|
|
13
|
+
<g transform="translate(94 518)">
|
|
14
|
+
<g transform="translate(24 350)">
|
|
15
|
+
<g transform="translate(0 35)">
|
|
16
|
+
<g transform="translate(24 24)">
|
|
17
|
+
<path
|
|
18
|
+
fill="#CACED8"
|
|
19
|
+
d="M29.259.699H3.282C1.497.699.035 2.217.035 4.074v20.25c0 1.856 1.462 3.375 3.247 3.375H29.26c1.786 0 3.247-1.52 3.247-3.375V4.074c0-1.857-1.461-3.375-3.247-3.375z"
|
|
20
|
+
></path>
|
|
21
|
+
<path
|
|
22
|
+
fill="#000"
|
|
23
|
+
d="M0.035 6.699H32.50599999999999V13.699H0.035z"
|
|
24
|
+
></path>
|
|
25
|
+
<path
|
|
26
|
+
fill="#000"
|
|
27
|
+
d="M27.51 22.699h-6.244c-.468 0-.937-.47-.937-.938v-3.125c0-.469.469-.937.937-.937h6.244c.469 0 .937.468.937.937v3.125c0 .625-.312.938-.937.938z"
|
|
28
|
+
></path>
|
|
29
|
+
</g>
|
|
30
|
+
</g>
|
|
31
|
+
</g>
|
|
32
|
+
</g>
|
|
33
|
+
</g>
|
|
34
|
+
</g>
|
|
35
|
+
</svg>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default GenericCardLarge;
|
|
@@ -41,6 +41,7 @@ import VoidedIcon from "./VoidedIcon";
|
|
|
41
41
|
import StatusUnknownIcon from "./StatusUnknownIcon";
|
|
42
42
|
import CarrotIcon from "./CarrotIcon";
|
|
43
43
|
import ProfileIcon from "./ProfileIcon";
|
|
44
|
+
import GenericCardLarge from "./GenericCardLarge";
|
|
44
45
|
|
|
45
46
|
export {
|
|
46
47
|
AccountsIcon,
|
|
@@ -85,5 +86,6 @@ export {
|
|
|
85
86
|
VoidedIcon,
|
|
86
87
|
StatusUnknownIcon,
|
|
87
88
|
CarrotIcon,
|
|
88
|
-
ProfileIcon
|
|
89
|
+
ProfileIcon,
|
|
90
|
+
GenericCardLarge
|
|
89
91
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import Checkbox from "../../atoms/checkbox";
|
|
3
|
-
import Text from "../../atoms/text";
|
|
4
3
|
import { Box, Stack } from "../../atoms/layouts";
|
|
5
4
|
import DisplayBox from "../../atoms/display-box";
|
|
6
|
-
import { FONT_WEIGHT_BOLD } from "../../../constants/style_constants";
|
|
7
5
|
import TermsAndConditionsModal from "../../molecules/terms-and-conditions-modal";
|
|
8
6
|
|
|
9
7
|
const TermsAndConditions = ({
|
|
@@ -16,27 +14,27 @@ const TermsAndConditions = ({
|
|
|
16
14
|
const [showTerms, toggleShowTerms] = useState(false);
|
|
17
15
|
return (
|
|
18
16
|
<DisplayBox>
|
|
19
|
-
<Stack
|
|
17
|
+
<Stack>
|
|
20
18
|
<Checkbox
|
|
21
19
|
name="terms"
|
|
20
|
+
title="Terms and Conditions"
|
|
22
21
|
error={error}
|
|
23
22
|
checked={isChecked}
|
|
24
23
|
onChange={onCheck}
|
|
25
24
|
/>
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</Stack>
|
|
25
|
+
<Box padding="0 0 0 58px">
|
|
26
|
+
<Stack>
|
|
27
|
+
<Box padding="0">{html}</Box>
|
|
28
|
+
{terms && (
|
|
29
|
+
<TermsAndConditionsModal
|
|
30
|
+
link="Learn More"
|
|
31
|
+
terms={terms}
|
|
32
|
+
isOpen={showTerms}
|
|
33
|
+
toggleOpen={toggleShowTerms}
|
|
34
|
+
/>
|
|
35
|
+
)}
|
|
36
|
+
</Stack>
|
|
37
|
+
</Box>
|
|
40
38
|
</Stack>
|
|
41
39
|
</DisplayBox>
|
|
42
40
|
);
|