@thecb/components 4.0.9 → 4.0.12
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 +137 -131
- package/package.json +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +3 -1
- package/src/components/atoms/card/Card.js +7 -5
- package/src/components/atoms/card/index.js +5 -5
- package/src/components/atoms/heading/Heading.js +1 -1
- package/src/components/atoms/paragraph/Paragraph.js +2 -0
- package/src/components/atoms/text/Text.js +2 -0
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +1 -1
- package/src/components/molecules/editable-list/EditableList.js +0 -1
- package/src/components/molecules/editable-table/TableListItem.js +1 -1
- package/src/components/molecules/modal/Modal.js +5 -2
- package/src/components/molecules/obligation/modules/TitleModule.js +2 -2
- package/src/components/molecules/radio-section/RadioSection.js +1 -1
- package/src/components/molecules/welcome-module/WelcomeModule.js +8 -5
package/dist/index.cjs.js
CHANGED
|
@@ -6119,15 +6119,17 @@ var Text = function Text(_ref) {
|
|
|
6119
6119
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
6120
6120
|
hoverStyles = _ref.hoverStyles,
|
|
6121
6121
|
onClick = _ref.onClick,
|
|
6122
|
+
as = _ref.as,
|
|
6122
6123
|
dataQa = _ref.dataQa,
|
|
6123
6124
|
children = _ref.children,
|
|
6124
|
-
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "extraStyles", "hoverStyles", "onClick", "dataQa", "children"]);
|
|
6125
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "extraStyles", "hoverStyles", "onClick", "as", "dataQa", "children"]);
|
|
6125
6126
|
|
|
6126
6127
|
return /*#__PURE__*/React__default.createElement(TextSpan, _extends({
|
|
6127
6128
|
fontSize: themeValues.fontSize,
|
|
6128
6129
|
weight: weight,
|
|
6129
6130
|
color: color,
|
|
6130
6131
|
fontFamily: themeValues.fontFamily,
|
|
6132
|
+
as: as,
|
|
6131
6133
|
extraStyles: extraStyles,
|
|
6132
6134
|
hoverStyles: hoverStyles,
|
|
6133
6135
|
onClick: onClick,
|
|
@@ -12630,7 +12632,7 @@ var ButtonWithAction = function ButtonWithAction(_ref) {
|
|
|
12630
12632
|
children = _ref.children;
|
|
12631
12633
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
12632
12634
|
var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
|
|
12633
|
-
var loadingExtraStyles = "".concat(extraStyles, "; padding-top: 0.75rem; padding-bottom: 0.75rem;");
|
|
12635
|
+
var loadingExtraStyles = "".concat(extraStyles, "; padding-top: 0.75rem; padding-bottom: 0.75rem; height: ").concat(themeContext.isMobile ? "50px" : "57px", " ");
|
|
12634
12636
|
var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12635
12637
|
var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
|
|
12636
12638
|
var disabledStyles = "\n background-clor: #6E727E;\n border-color: #6E727E;\n color: #FFFFFF;\n &:focus {\n box-shadow: 0 0 10px #6E727E;\n outline: none;\n }\n ";
|
|
@@ -14337,7 +14339,7 @@ var Heading = function Heading(_ref) {
|
|
|
14337
14339
|
_ref$variant = _ref.variant,
|
|
14338
14340
|
variant = _ref$variant === void 0 ? "h1" : _ref$variant,
|
|
14339
14341
|
_ref$as = _ref.as,
|
|
14340
|
-
as = _ref$as === void 0 ?
|
|
14342
|
+
as = _ref$as === void 0 ? variant : _ref$as,
|
|
14341
14343
|
dataQa = _ref.dataQa,
|
|
14342
14344
|
children = _ref.children,
|
|
14343
14345
|
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
|
|
@@ -16264,9 +16266,88 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
|
|
|
16264
16266
|
})));
|
|
16265
16267
|
};
|
|
16266
16268
|
|
|
16269
|
+
var fontFamily$3 = {
|
|
16270
|
+
p: "Public Sans",
|
|
16271
|
+
pL: "Public Sans",
|
|
16272
|
+
pS: "Public Sans",
|
|
16273
|
+
pXS: "Public Sans",
|
|
16274
|
+
pXXS: "Public Sans",
|
|
16275
|
+
pXL: "Public Sans"
|
|
16276
|
+
};
|
|
16277
|
+
var fontSize$4 = {
|
|
16278
|
+
p: "1rem",
|
|
16279
|
+
pL: "1.125rem",
|
|
16280
|
+
pS: "0.875rem",
|
|
16281
|
+
pXS: "0.75rem",
|
|
16282
|
+
pXXS: "0.65rem",
|
|
16283
|
+
pXL: "1.5rem"
|
|
16284
|
+
};
|
|
16285
|
+
var fallbackValues$9 = {
|
|
16286
|
+
fontFamily: fontFamily$3,
|
|
16287
|
+
fontSize: fontSize$4
|
|
16288
|
+
};
|
|
16289
|
+
|
|
16290
|
+
function _templateObject$j() {
|
|
16291
|
+
var data = _taggedTemplateLiteral(["\n --font-size: ", ";\n font-size: var(--font-size);\n line-height: calc(1.5 * var(--font-size));\n font-weight: ", ";\n font-family: ", ";\n color: ", ";\n margin: ", ";\n\n ", "\n"]);
|
|
16292
|
+
|
|
16293
|
+
_templateObject$j = function _templateObject() {
|
|
16294
|
+
return data;
|
|
16295
|
+
};
|
|
16296
|
+
|
|
16297
|
+
return data;
|
|
16298
|
+
}
|
|
16299
|
+
var ParagraphText = styled__default.p(_templateObject$j(), function (_ref) {
|
|
16300
|
+
var fontSize = _ref.fontSize;
|
|
16301
|
+
return fontSize;
|
|
16302
|
+
}, function (_ref2) {
|
|
16303
|
+
var weight = _ref2.weight;
|
|
16304
|
+
return weight;
|
|
16305
|
+
}, function (_ref3) {
|
|
16306
|
+
var fontFamily = _ref3.fontFamily;
|
|
16307
|
+
return fontFamily;
|
|
16308
|
+
}, function (_ref4) {
|
|
16309
|
+
var color = _ref4.color;
|
|
16310
|
+
return color;
|
|
16311
|
+
}, function (_ref5) {
|
|
16312
|
+
var margin = _ref5.margin;
|
|
16313
|
+
return margin;
|
|
16314
|
+
}, function (_ref6) {
|
|
16315
|
+
var extraStyles = _ref6.extraStyles;
|
|
16316
|
+
return extraStyles;
|
|
16317
|
+
});
|
|
16318
|
+
|
|
16319
|
+
var Paragraph = function Paragraph(_ref) {
|
|
16320
|
+
var themeValues = _ref.themeValues,
|
|
16321
|
+
_ref$weight = _ref.weight,
|
|
16322
|
+
weight = _ref$weight === void 0 ? FONT_WEIGHT_REGULAR : _ref$weight,
|
|
16323
|
+
_ref$color = _ref.color,
|
|
16324
|
+
color = _ref$color === void 0 ? FIREFLY_GREY : _ref$color,
|
|
16325
|
+
_ref$margin = _ref.margin,
|
|
16326
|
+
margin = _ref$margin === void 0 ? 0 : _ref$margin,
|
|
16327
|
+
_ref$extraStyles = _ref.extraStyles,
|
|
16328
|
+
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
16329
|
+
dataQa = _ref.dataQa,
|
|
16330
|
+
children = _ref.children,
|
|
16331
|
+
as = _ref.as,
|
|
16332
|
+
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children", "as"]);
|
|
16333
|
+
|
|
16334
|
+
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
16335
|
+
weight: weight,
|
|
16336
|
+
color: color,
|
|
16337
|
+
margin: margin,
|
|
16338
|
+
fontFamily: themeValues.fontFamily,
|
|
16339
|
+
fontSize: themeValues.fontSize,
|
|
16340
|
+
as: as,
|
|
16341
|
+
extraStyles: extraStyles,
|
|
16342
|
+
"data-qa": dataQa
|
|
16343
|
+
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
16344
|
+
};
|
|
16345
|
+
|
|
16346
|
+
var Paragraph$1 = themeComponent(Paragraph, "Paragraph", fallbackValues$9, "p");
|
|
16347
|
+
|
|
16267
16348
|
var backgroundColor$1 = WHITE;
|
|
16268
16349
|
var iconBackgroundColor = GRECIAN_GREY;
|
|
16269
|
-
var fallbackValues$
|
|
16350
|
+
var fallbackValues$a = {
|
|
16270
16351
|
backgroundColor: backgroundColor$1,
|
|
16271
16352
|
iconBackgroundColor: iconBackgroundColor
|
|
16272
16353
|
};
|
|
@@ -16376,7 +16457,7 @@ var Card = function Card(_ref2) {
|
|
|
16376
16457
|
borderRadius: "4px",
|
|
16377
16458
|
boxShadow: " 0px 1px 10px 0px rgb(246, 246, 249), 0px 2px 5px 0px rgb(202, 206, 216)",
|
|
16378
16459
|
padding: "0",
|
|
16379
|
-
maxWidth: "100%",
|
|
16460
|
+
maxWidth: variant !== "vertical" ? "100%" : "306px",
|
|
16380
16461
|
minHeight: "100%",
|
|
16381
16462
|
minWidth: variant !== "vertical" && "300px"
|
|
16382
16463
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
@@ -16384,7 +16465,7 @@ var Card = function Card(_ref2) {
|
|
|
16384
16465
|
fillCenter: true
|
|
16385
16466
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
16386
16467
|
direction: variant === "vertical" ? "column" : "row",
|
|
16387
|
-
justify: variant === "vertical" && "
|
|
16468
|
+
justify: variant === "vertical" && "space-evenly",
|
|
16388
16469
|
fullHeight: true,
|
|
16389
16470
|
childGap: "0"
|
|
16390
16471
|
}, icon && /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -16399,7 +16480,7 @@ var Card = function Card(_ref2) {
|
|
|
16399
16480
|
}, renderIcon(icon)))), /*#__PURE__*/React__default.createElement(CardVariantSwitcher, {
|
|
16400
16481
|
variant: variant
|
|
16401
16482
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
16402
|
-
padding: "
|
|
16483
|
+
padding: "1rem",
|
|
16403
16484
|
width: "100%",
|
|
16404
16485
|
extraStyles: "flex-grow: 1; width: 100%;"
|
|
16405
16486
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
@@ -16407,8 +16488,9 @@ var Card = function Card(_ref2) {
|
|
|
16407
16488
|
fillCenter: true
|
|
16408
16489
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
16409
16490
|
padding: "0"
|
|
16410
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
16411
|
-
variant: "
|
|
16491
|
+
}, /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
16492
|
+
variant: "p",
|
|
16493
|
+
weight: "600"
|
|
16412
16494
|
}, heading), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
16413
16495
|
variant: "pS"
|
|
16414
16496
|
}, text)))), /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -16423,7 +16505,7 @@ var Card = function Card(_ref2) {
|
|
|
16423
16505
|
}))))));
|
|
16424
16506
|
};
|
|
16425
16507
|
|
|
16426
|
-
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$
|
|
16508
|
+
var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$a);
|
|
16427
16509
|
|
|
16428
16510
|
var cardRegistry = {
|
|
16429
16511
|
accounts: function accounts(props) {
|
|
@@ -16431,7 +16513,7 @@ var cardRegistry = {
|
|
|
16431
16513
|
icon: "accounts",
|
|
16432
16514
|
heading: "Add an Account",
|
|
16433
16515
|
buttonText: "Add Account",
|
|
16434
|
-
text: "
|
|
16516
|
+
text: "Find and attach your accounts to make your payments simple.",
|
|
16435
16517
|
cardAction: "/profile/accounts"
|
|
16436
16518
|
}, props));
|
|
16437
16519
|
},
|
|
@@ -16440,16 +16522,16 @@ var cardRegistry = {
|
|
|
16440
16522
|
icon: "properties",
|
|
16441
16523
|
heading: "Add a Property",
|
|
16442
16524
|
buttonText: "Add Property",
|
|
16443
|
-
text: "
|
|
16525
|
+
text: "Find and attach your properties to make your payments simple.",
|
|
16444
16526
|
cardAction: "/profile/properties"
|
|
16445
16527
|
}, props));
|
|
16446
16528
|
},
|
|
16447
16529
|
payment: function payment(props) {
|
|
16448
16530
|
return /*#__PURE__*/React__default.createElement(Card$1, _extends({
|
|
16449
16531
|
icon: "payment",
|
|
16450
|
-
heading: "
|
|
16451
|
-
buttonText: "
|
|
16452
|
-
text: "
|
|
16532
|
+
heading: "Configure Your Settings",
|
|
16533
|
+
buttonText: "Configure Settings",
|
|
16534
|
+
text: "Add your personal information and payment methods to make fast payments.",
|
|
16453
16535
|
cardAction: "/profile/settings"
|
|
16454
16536
|
}, props));
|
|
16455
16537
|
}
|
|
@@ -16491,7 +16573,7 @@ var checkedStyles = {
|
|
|
16491
16573
|
var defaultStyles = {
|
|
16492
16574
|
"default": "\n background: ".concat(WHITE, "; \n border: 1px solid ").concat(GHOST_GREY, ";\n")
|
|
16493
16575
|
};
|
|
16494
|
-
var fallbackValues$
|
|
16576
|
+
var fallbackValues$b = {
|
|
16495
16577
|
backgroundColor: backgroundColor$2,
|
|
16496
16578
|
textFontSize: textFontSize,
|
|
16497
16579
|
textFontWeight: textFontWeight,
|
|
@@ -16606,16 +16688,16 @@ function _templateObject2$8() {
|
|
|
16606
16688
|
return data;
|
|
16607
16689
|
}
|
|
16608
16690
|
|
|
16609
|
-
function _templateObject$
|
|
16691
|
+
function _templateObject$k() {
|
|
16610
16692
|
var data = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n"]);
|
|
16611
16693
|
|
|
16612
|
-
_templateObject$
|
|
16694
|
+
_templateObject$k = function _templateObject() {
|
|
16613
16695
|
return data;
|
|
16614
16696
|
};
|
|
16615
16697
|
|
|
16616
16698
|
return data;
|
|
16617
16699
|
}
|
|
16618
|
-
var CheckboxContainer = styled__default.div(_templateObject$
|
|
16700
|
+
var CheckboxContainer = styled__default.div(_templateObject$k());
|
|
16619
16701
|
var CheckboxLabelContainer = styled__default.label(_templateObject2$8());
|
|
16620
16702
|
var CheckboxIcon = styled__default.svg(_templateObject3$3(), function (_ref) {
|
|
16621
16703
|
var disabled = _ref.disabled,
|
|
@@ -16696,7 +16778,7 @@ var Checkbox = function Checkbox(_ref4) {
|
|
|
16696
16778
|
}, title)));
|
|
16697
16779
|
};
|
|
16698
16780
|
|
|
16699
|
-
var Checkbox$1 = themeComponent(Checkbox, "Checkbox", fallbackValues$
|
|
16781
|
+
var Checkbox$1 = themeComponent(Checkbox, "Checkbox", fallbackValues$b, "default");
|
|
16700
16782
|
|
|
16701
16783
|
var listBackgroundColor = {
|
|
16702
16784
|
"default": "".concat(ATHENS_GREY),
|
|
@@ -16722,7 +16804,7 @@ var radioButtonInactive = {
|
|
|
16722
16804
|
"default": "".concat(GHOST_GREY),
|
|
16723
16805
|
disabled: "".concat(GHOST_GREY)
|
|
16724
16806
|
};
|
|
16725
|
-
var fallbackValues$
|
|
16807
|
+
var fallbackValues$c = {
|
|
16726
16808
|
listBackgroundColor: listBackgroundColor,
|
|
16727
16809
|
listItemColor: listItemColor,
|
|
16728
16810
|
listItemBackgroundColor: listItemBackgroundColor,
|
|
@@ -16750,10 +16832,10 @@ function _templateObject2$9() {
|
|
|
16750
16832
|
return data;
|
|
16751
16833
|
}
|
|
16752
16834
|
|
|
16753
|
-
function _templateObject$
|
|
16835
|
+
function _templateObject$l() {
|
|
16754
16836
|
var data = _taggedTemplateLiteral(["\n height: 24px;\n width: 24px;\n border: 1px solid\n ", ";\n border-radius: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 10px;\n min-width: 24px;\n min-height: 24px;\n"]);
|
|
16755
16837
|
|
|
16756
|
-
_templateObject$
|
|
16838
|
+
_templateObject$l = function _templateObject() {
|
|
16757
16839
|
return data;
|
|
16758
16840
|
};
|
|
16759
16841
|
|
|
@@ -16765,7 +16847,7 @@ var defaultTheme = {
|
|
|
16765
16847
|
inactiveColor: PEWTER_GREY$1
|
|
16766
16848
|
}
|
|
16767
16849
|
};
|
|
16768
|
-
var RadioButtonBorder = styled__default.div(_templateObject$
|
|
16850
|
+
var RadioButtonBorder = styled__default.div(_templateObject$l(), function (_ref) {
|
|
16769
16851
|
var isSelected = _ref.isSelected,
|
|
16770
16852
|
theme = _ref.theme;
|
|
16771
16853
|
return isSelected ? theme.accentColor : theme.inactiveColor;
|
|
@@ -16807,16 +16889,16 @@ function _templateObject2$a() {
|
|
|
16807
16889
|
return data;
|
|
16808
16890
|
}
|
|
16809
16891
|
|
|
16810
|
-
function _templateObject$
|
|
16892
|
+
function _templateObject$m() {
|
|
16811
16893
|
var data = _taggedTemplateLiteral(["\n width: 2rem;\n"]);
|
|
16812
16894
|
|
|
16813
|
-
_templateObject$
|
|
16895
|
+
_templateObject$m = function _templateObject() {
|
|
16814
16896
|
return data;
|
|
16815
16897
|
};
|
|
16816
16898
|
|
|
16817
16899
|
return data;
|
|
16818
16900
|
}
|
|
16819
|
-
var CheckboxItemIcon = styled__default.img(_templateObject$
|
|
16901
|
+
var CheckboxItemIcon = styled__default.img(_templateObject$m());
|
|
16820
16902
|
var HiddenCheckboxInput = styled__default.input(_templateObject2$a());
|
|
16821
16903
|
var CheckboxLabel = styled__default.label(_templateObject3$4());
|
|
16822
16904
|
|
|
@@ -16926,7 +17008,7 @@ var CheckboxList = function CheckboxList(_ref2) {
|
|
|
16926
17008
|
})));
|
|
16927
17009
|
};
|
|
16928
17010
|
|
|
16929
|
-
var CheckboxList$1 = themeComponent(CheckboxList, "CheckboxList", fallbackValues$
|
|
17011
|
+
var CheckboxList$1 = themeComponent(CheckboxList, "CheckboxList", fallbackValues$c, "default");
|
|
16930
17012
|
|
|
16931
17013
|
var DropdownIcon = function DropdownIcon() {
|
|
16932
17014
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -16956,7 +17038,7 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
16956
17038
|
|
|
16957
17039
|
var selectedColor = "".concat(MATISSE_BLUE);
|
|
16958
17040
|
var hoverColor$3 = "".concat(HOVER_LIGHT_BLUE);
|
|
16959
|
-
var fallbackValues$
|
|
17041
|
+
var fallbackValues$d = {
|
|
16960
17042
|
selectedColor: selectedColor,
|
|
16961
17043
|
hoverColor: hoverColor$3
|
|
16962
17044
|
};
|
|
@@ -16991,16 +17073,16 @@ function _templateObject2$b() {
|
|
|
16991
17073
|
return data;
|
|
16992
17074
|
}
|
|
16993
17075
|
|
|
16994
|
-
function _templateObject$
|
|
17076
|
+
function _templateObject$n() {
|
|
16995
17077
|
var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n transition: transform 0.3s ease;\n ", "\n"]);
|
|
16996
17078
|
|
|
16997
|
-
_templateObject$
|
|
17079
|
+
_templateObject$n = function _templateObject() {
|
|
16998
17080
|
return data;
|
|
16999
17081
|
};
|
|
17000
17082
|
|
|
17001
17083
|
return data;
|
|
17002
17084
|
}
|
|
17003
|
-
var IconWrapper = styled__default.div(_templateObject$
|
|
17085
|
+
var IconWrapper = styled__default.div(_templateObject$n(), function (_ref) {
|
|
17004
17086
|
var open = _ref.open;
|
|
17005
17087
|
return open ? "transform: rotate(-180deg)" : "";
|
|
17006
17088
|
});
|
|
@@ -17233,7 +17315,7 @@ var Dropdown = function Dropdown(_ref7) {
|
|
|
17233
17315
|
}))) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
|
|
17234
17316
|
};
|
|
17235
17317
|
|
|
17236
|
-
var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$
|
|
17318
|
+
var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$d);
|
|
17237
17319
|
|
|
17238
17320
|
function _templateObject4$3() {
|
|
17239
17321
|
var data = _taggedTemplateLiteral([""]);
|
|
@@ -17265,16 +17347,16 @@ function _templateObject2$c() {
|
|
|
17265
17347
|
return data;
|
|
17266
17348
|
}
|
|
17267
17349
|
|
|
17268
|
-
function _templateObject$
|
|
17350
|
+
function _templateObject$o() {
|
|
17269
17351
|
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n"]);
|
|
17270
17352
|
|
|
17271
|
-
_templateObject$
|
|
17353
|
+
_templateObject$o = function _templateObject() {
|
|
17272
17354
|
return data;
|
|
17273
17355
|
};
|
|
17274
17356
|
|
|
17275
17357
|
return data;
|
|
17276
17358
|
}
|
|
17277
|
-
var SelectContainer = styled__default.div(_templateObject$
|
|
17359
|
+
var SelectContainer = styled__default.div(_templateObject$o());
|
|
17278
17360
|
var SelectLabel = styled__default.label(_templateObject2$c(), function (_ref) {
|
|
17279
17361
|
var field = _ref.field,
|
|
17280
17362
|
showErrors = _ref.showErrors;
|
|
@@ -18111,7 +18193,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
18111
18193
|
|
|
18112
18194
|
var backgroundColor$3 = WHITE;
|
|
18113
18195
|
var boxShadow = "0px 2px 14px 0px ".concat(ATHENS_GREY, ", 0px 3px 8px 0px ").concat(GHOST_GREY);
|
|
18114
|
-
var fallbackValues$
|
|
18196
|
+
var fallbackValues$e = {
|
|
18115
18197
|
backgroundColor: backgroundColor$3,
|
|
18116
18198
|
boxShadow: boxShadow
|
|
18117
18199
|
};
|
|
@@ -18132,84 +18214,7 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
18132
18214
|
}, children));
|
|
18133
18215
|
};
|
|
18134
18216
|
|
|
18135
|
-
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$
|
|
18136
|
-
|
|
18137
|
-
var fontFamily$3 = {
|
|
18138
|
-
p: "Public Sans",
|
|
18139
|
-
pL: "Public Sans",
|
|
18140
|
-
pS: "Public Sans",
|
|
18141
|
-
pXS: "Public Sans",
|
|
18142
|
-
pXXS: "Public Sans",
|
|
18143
|
-
pXL: "Public Sans"
|
|
18144
|
-
};
|
|
18145
|
-
var fontSize$4 = {
|
|
18146
|
-
p: "1rem",
|
|
18147
|
-
pL: "1.125rem",
|
|
18148
|
-
pS: "0.875rem",
|
|
18149
|
-
pXS: "0.75rem",
|
|
18150
|
-
pXXS: "0.65rem",
|
|
18151
|
-
pXL: "1.5rem"
|
|
18152
|
-
};
|
|
18153
|
-
var fallbackValues$e = {
|
|
18154
|
-
fontFamily: fontFamily$3,
|
|
18155
|
-
fontSize: fontSize$4
|
|
18156
|
-
};
|
|
18157
|
-
|
|
18158
|
-
function _templateObject$o() {
|
|
18159
|
-
var data = _taggedTemplateLiteral(["\n --font-size: ", ";\n font-size: var(--font-size);\n line-height: calc(1.5 * var(--font-size));\n font-weight: ", ";\n font-family: ", ";\n color: ", ";\n margin: ", ";\n\n ", "\n"]);
|
|
18160
|
-
|
|
18161
|
-
_templateObject$o = function _templateObject() {
|
|
18162
|
-
return data;
|
|
18163
|
-
};
|
|
18164
|
-
|
|
18165
|
-
return data;
|
|
18166
|
-
}
|
|
18167
|
-
var ParagraphText = styled__default.p(_templateObject$o(), function (_ref) {
|
|
18168
|
-
var fontSize = _ref.fontSize;
|
|
18169
|
-
return fontSize;
|
|
18170
|
-
}, function (_ref2) {
|
|
18171
|
-
var weight = _ref2.weight;
|
|
18172
|
-
return weight;
|
|
18173
|
-
}, function (_ref3) {
|
|
18174
|
-
var fontFamily = _ref3.fontFamily;
|
|
18175
|
-
return fontFamily;
|
|
18176
|
-
}, function (_ref4) {
|
|
18177
|
-
var color = _ref4.color;
|
|
18178
|
-
return color;
|
|
18179
|
-
}, function (_ref5) {
|
|
18180
|
-
var margin = _ref5.margin;
|
|
18181
|
-
return margin;
|
|
18182
|
-
}, function (_ref6) {
|
|
18183
|
-
var extraStyles = _ref6.extraStyles;
|
|
18184
|
-
return extraStyles;
|
|
18185
|
-
});
|
|
18186
|
-
|
|
18187
|
-
var Paragraph = function Paragraph(_ref) {
|
|
18188
|
-
var themeValues = _ref.themeValues,
|
|
18189
|
-
_ref$weight = _ref.weight,
|
|
18190
|
-
weight = _ref$weight === void 0 ? FONT_WEIGHT_REGULAR : _ref$weight,
|
|
18191
|
-
_ref$color = _ref.color,
|
|
18192
|
-
color = _ref$color === void 0 ? FIREFLY_GREY : _ref$color,
|
|
18193
|
-
_ref$margin = _ref.margin,
|
|
18194
|
-
margin = _ref$margin === void 0 ? 0 : _ref$margin,
|
|
18195
|
-
_ref$extraStyles = _ref.extraStyles,
|
|
18196
|
-
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
18197
|
-
dataQa = _ref.dataQa,
|
|
18198
|
-
children = _ref.children,
|
|
18199
|
-
rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "extraStyles", "dataQa", "children"]);
|
|
18200
|
-
|
|
18201
|
-
return /*#__PURE__*/React__default.createElement(ParagraphText, _extends({
|
|
18202
|
-
weight: weight,
|
|
18203
|
-
color: color,
|
|
18204
|
-
margin: margin,
|
|
18205
|
-
fontFamily: themeValues.fontFamily,
|
|
18206
|
-
fontSize: themeValues.fontSize,
|
|
18207
|
-
extraStyles: extraStyles,
|
|
18208
|
-
"data-qa": dataQa
|
|
18209
|
-
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
18210
|
-
};
|
|
18211
|
-
|
|
18212
|
-
var Paragraph$1 = themeComponent(Paragraph, "Paragraph", fallbackValues$e, "p");
|
|
18217
|
+
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$e);
|
|
18213
18218
|
|
|
18214
18219
|
var DisplayCard = function DisplayCard(_ref) {
|
|
18215
18220
|
var title = _ref.title,
|
|
@@ -33411,7 +33416,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
33411
33416
|
variant: "h6",
|
|
33412
33417
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
33413
33418
|
color: themeValues.titleColor,
|
|
33414
|
-
|
|
33419
|
+
as: "h6"
|
|
33415
33420
|
}, title), /*#__PURE__*/React__default.createElement(Motion, {
|
|
33416
33421
|
variants: icon,
|
|
33417
33422
|
style: {
|
|
@@ -33555,8 +33560,7 @@ var EditableList = function EditableList(_ref) {
|
|
|
33555
33560
|
variant: "pL",
|
|
33556
33561
|
weight: titleWeight,
|
|
33557
33562
|
color: CHARADE_GREY,
|
|
33558
|
-
extraStyles: "letter-spacing: 0.29px;"
|
|
33559
|
-
"aria-level": "3"
|
|
33563
|
+
extraStyles: "letter-spacing: 0.29px;"
|
|
33560
33564
|
}, title)), /*#__PURE__*/React__default.createElement(Box, {
|
|
33561
33565
|
padding: "0",
|
|
33562
33566
|
borderRadius: "4px",
|
|
@@ -33799,8 +33803,7 @@ var TableListItem = function TableListItem(_ref) {
|
|
|
33799
33803
|
isMobile: isMobile
|
|
33800
33804
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
33801
33805
|
variant: "pS",
|
|
33802
|
-
color: CHARADE_GREY
|
|
33803
|
-
"aria-level": "3"
|
|
33806
|
+
color: CHARADE_GREY
|
|
33804
33807
|
}, title)), /*#__PURE__*/React__default.createElement(TableItemValue, {
|
|
33805
33808
|
isMobile: isMobile
|
|
33806
33809
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
@@ -35201,6 +35204,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
35201
35204
|
var ModalLink = _ref.ModalLink,
|
|
35202
35205
|
hideModal = _ref.hideModal,
|
|
35203
35206
|
continueAction = _ref.continueAction,
|
|
35207
|
+
cancelAction = _ref.cancelAction,
|
|
35204
35208
|
modalOpen = _ref.modalOpen,
|
|
35205
35209
|
modalHeaderText = _ref.modalHeaderText,
|
|
35206
35210
|
modalBodyText = _ref.modalBodyText,
|
|
@@ -35218,7 +35222,9 @@ var Modal$1 = function Modal(_ref) {
|
|
|
35218
35222
|
defaultWrapper = _ref$defaultWrapper === void 0 ? true : _ref$defaultWrapper,
|
|
35219
35223
|
_ref$onlyCloseButton = _ref.onlyCloseButton,
|
|
35220
35224
|
onlyCloseButton = _ref$onlyCloseButton === void 0 ? false : _ref$onlyCloseButton,
|
|
35221
|
-
maxHeight = _ref.maxHeight
|
|
35225
|
+
maxHeight = _ref.maxHeight,
|
|
35226
|
+
_ref$underlayClickExi = _ref.underlayClickExits,
|
|
35227
|
+
underlayClickExits = _ref$underlayClickExi === void 0 ? true : _ref$underlayClickExi;
|
|
35222
35228
|
|
|
35223
35229
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
35224
35230
|
isMobile = _useContext.isMobile;
|
|
@@ -35235,7 +35241,8 @@ var Modal$1 = function Modal(_ref) {
|
|
|
35235
35241
|
},
|
|
35236
35242
|
dialogStyle: {
|
|
35237
35243
|
width: "615px"
|
|
35238
|
-
}
|
|
35244
|
+
},
|
|
35245
|
+
underlayClickExits: underlayClickExits
|
|
35239
35246
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
35240
35247
|
padding: "0",
|
|
35241
35248
|
borderRadius: "2px",
|
|
@@ -35274,7 +35281,7 @@ var Modal$1 = function Modal(_ref) {
|
|
|
35274
35281
|
extraStyles: isMobile ? "flex-grow: 1" : ""
|
|
35275
35282
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
35276
35283
|
variant: "secondary",
|
|
35277
|
-
action: hideModal,
|
|
35284
|
+
action: cancelAction ? cancelAction : hideModal,
|
|
35278
35285
|
text: cancelButtonText,
|
|
35279
35286
|
dataQa: cancelButtonText,
|
|
35280
35287
|
extraStyles: "width: 100%;"
|
|
@@ -36983,11 +36990,10 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
36983
36990
|
variant: "h6",
|
|
36984
36991
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
36985
36992
|
color: titleColor,
|
|
36986
|
-
|
|
36993
|
+
as: "h2"
|
|
36987
36994
|
}, title), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
36988
36995
|
variant: "pS",
|
|
36989
|
-
color: subtitleColor
|
|
36990
|
-
"aria-level": "3"
|
|
36996
|
+
color: subtitleColor
|
|
36991
36997
|
}, subtitle)));
|
|
36992
36998
|
};
|
|
36993
36999
|
|
|
@@ -38416,8 +38422,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
38416
38422
|
padding: section.titleIcon ? "0 0 0 8px" : "0"
|
|
38417
38423
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
38418
38424
|
variant: "p",
|
|
38419
|
-
color: CHARADE_GREY
|
|
38420
|
-
"aria-level": "3"
|
|
38425
|
+
color: CHARADE_GREY
|
|
38421
38426
|
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
38422
38427
|
childGap: "0.5rem"
|
|
38423
38428
|
}, section.rightIcons.map(function (icon) {
|
|
@@ -39019,7 +39024,7 @@ var fallbackValues$A = {
|
|
|
39019
39024
|
};
|
|
39020
39025
|
|
|
39021
39026
|
function _templateObject$C() {
|
|
39022
|
-
var data = _taggedTemplateLiteral(["\n width:
|
|
39027
|
+
var data = _taggedTemplateLiteral(["\n width: auto;\n height: 215px;\n"]);
|
|
39023
39028
|
|
|
39024
39029
|
_templateObject$C = function _templateObject() {
|
|
39025
39030
|
return data;
|
|
@@ -39044,13 +39049,14 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
39044
39049
|
}, /*#__PURE__*/React__default.createElement(WelcomeImage, {
|
|
39045
39050
|
src: welcomeImage
|
|
39046
39051
|
}))), /*#__PURE__*/React__default.createElement(Box, {
|
|
39052
|
+
padding: "0.875rem 1.5rem",
|
|
39047
39053
|
background: themeValues.headerBackgroundColor
|
|
39048
39054
|
}, /*#__PURE__*/React__default.createElement(Heading$1, {
|
|
39049
|
-
variant: "
|
|
39055
|
+
variant: "h6",
|
|
39050
39056
|
weight: themeValues.fontWeight,
|
|
39051
39057
|
color: themeValues.fontColor,
|
|
39052
39058
|
textAlign: themeValues.textAlign,
|
|
39053
|
-
|
|
39059
|
+
as: "h6"
|
|
39054
39060
|
}, heading)), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
39055
39061
|
padding: "0",
|
|
39056
39062
|
background: themeValues.imageBackgroundColor
|
package/package.json
CHANGED
|
@@ -82,7 +82,9 @@ const ButtonWithAction = ({
|
|
|
82
82
|
"Button",
|
|
83
83
|
variant
|
|
84
84
|
);
|
|
85
|
-
const loadingExtraStyles = `${extraStyles}; padding-top: 0.75rem; padding-bottom: 0.75rem
|
|
85
|
+
const loadingExtraStyles = `${extraStyles}; padding-top: 0.75rem; padding-bottom: 0.75rem; height: ${
|
|
86
|
+
themeContext.isMobile ? "50px" : "57px"
|
|
87
|
+
} `;
|
|
86
88
|
const hoverStyles = `
|
|
87
89
|
outline: none;
|
|
88
90
|
background-color: ${themeValues.hoverBackgroundColor};
|
|
@@ -3,7 +3,7 @@ import { ThemeContext } from "styled-components";
|
|
|
3
3
|
import { useNavigate } from "react-router-dom";
|
|
4
4
|
import { Box, Stack, Cover } from "../layouts";
|
|
5
5
|
import Text from "../text";
|
|
6
|
-
import
|
|
6
|
+
import Paragraph from "../paragraph";
|
|
7
7
|
import ButtonWithAction from "../button-with-action";
|
|
8
8
|
import { fallbackValues } from "./Card.theme";
|
|
9
9
|
import { themeComponent } from "../../../util/themeUtils";
|
|
@@ -58,14 +58,14 @@ const Card = ({
|
|
|
58
58
|
boxShadow=" 0px 1px 10px 0px rgb(246, 246, 249),
|
|
59
59
|
0px 2px 5px 0px rgb(202, 206, 216)"
|
|
60
60
|
padding="0"
|
|
61
|
-
maxWidth="100%"
|
|
61
|
+
maxWidth={variant !== "vertical" ? "100%" : "306px"}
|
|
62
62
|
minHeight="100%"
|
|
63
63
|
minWidth={variant !== "vertical" && "300px"}
|
|
64
64
|
>
|
|
65
65
|
<Cover singleChild fillCenter>
|
|
66
66
|
<Stack
|
|
67
67
|
direction={variant === "vertical" ? "column" : "row"}
|
|
68
|
-
justify={variant === "vertical" && "
|
|
68
|
+
justify={variant === "vertical" && "space-evenly"}
|
|
69
69
|
fullHeight
|
|
70
70
|
childGap="0"
|
|
71
71
|
>
|
|
@@ -92,13 +92,15 @@ const Card = ({
|
|
|
92
92
|
)}
|
|
93
93
|
<CardVariantSwitcher variant={variant}>
|
|
94
94
|
<Box
|
|
95
|
-
padding="
|
|
95
|
+
padding="1rem"
|
|
96
96
|
width="100%"
|
|
97
97
|
extraStyles={`flex-grow: 1; width: 100%;`}
|
|
98
98
|
>
|
|
99
99
|
<Cover singleChild fillCenter>
|
|
100
100
|
<Box padding="0">
|
|
101
|
-
<
|
|
101
|
+
<Paragraph variant="p" weight="600">
|
|
102
|
+
{heading}
|
|
103
|
+
</Paragraph>
|
|
102
104
|
<Text variant="pS">{text}</Text>
|
|
103
105
|
</Box>
|
|
104
106
|
</Cover>
|
|
@@ -7,7 +7,7 @@ export const cardRegistry = {
|
|
|
7
7
|
icon="accounts"
|
|
8
8
|
heading="Add an Account"
|
|
9
9
|
buttonText="Add Account"
|
|
10
|
-
text="
|
|
10
|
+
text="Find and attach your accounts to make your payments simple."
|
|
11
11
|
cardAction="/profile/accounts"
|
|
12
12
|
{...props}
|
|
13
13
|
/>
|
|
@@ -17,7 +17,7 @@ export const cardRegistry = {
|
|
|
17
17
|
icon="properties"
|
|
18
18
|
heading="Add a Property"
|
|
19
19
|
buttonText="Add Property"
|
|
20
|
-
text="
|
|
20
|
+
text="Find and attach your properties to make your payments simple."
|
|
21
21
|
cardAction="/profile/properties"
|
|
22
22
|
{...props}
|
|
23
23
|
/>
|
|
@@ -25,9 +25,9 @@ export const cardRegistry = {
|
|
|
25
25
|
payment: props => (
|
|
26
26
|
<Card
|
|
27
27
|
icon="payment"
|
|
28
|
-
heading="
|
|
29
|
-
buttonText="
|
|
30
|
-
text="
|
|
28
|
+
heading="Configure Your Settings"
|
|
29
|
+
buttonText="Configure Settings"
|
|
30
|
+
text="Add your personal information and payment methods to make fast payments."
|
|
31
31
|
cardAction="/profile/settings"
|
|
32
32
|
{...props}
|
|
33
33
|
/>
|
|
@@ -14,6 +14,7 @@ const Paragraph = ({
|
|
|
14
14
|
extraStyles = ``,
|
|
15
15
|
dataQa,
|
|
16
16
|
children,
|
|
17
|
+
as,
|
|
17
18
|
...rest
|
|
18
19
|
}) => (
|
|
19
20
|
<ParagraphText
|
|
@@ -22,6 +23,7 @@ const Paragraph = ({
|
|
|
22
23
|
margin={margin}
|
|
23
24
|
fontFamily={themeValues.fontFamily}
|
|
24
25
|
fontSize={themeValues.fontSize}
|
|
26
|
+
as={as}
|
|
25
27
|
extraStyles={extraStyles}
|
|
26
28
|
data-qa={dataQa}
|
|
27
29
|
{...rest}
|
|
@@ -13,6 +13,7 @@ const Text = ({
|
|
|
13
13
|
extraStyles = ``,
|
|
14
14
|
hoverStyles,
|
|
15
15
|
onClick,
|
|
16
|
+
as,
|
|
16
17
|
dataQa,
|
|
17
18
|
children,
|
|
18
19
|
...rest
|
|
@@ -22,6 +23,7 @@ const Text = ({
|
|
|
22
23
|
weight={weight}
|
|
23
24
|
color={color}
|
|
24
25
|
fontFamily={themeValues.fontFamily}
|
|
26
|
+
as={as}
|
|
25
27
|
extraStyles={extraStyles}
|
|
26
28
|
hoverStyles={hoverStyles}
|
|
27
29
|
onClick={onClick}
|
|
@@ -29,7 +29,7 @@ const TableListItem = ({
|
|
|
29
29
|
<ItemWrapper>
|
|
30
30
|
<EditableTableListItem isMobile={isMobile}>
|
|
31
31
|
<TableItemKey isMobile={isMobile}>
|
|
32
|
-
<Text variant="pS" color={CHARADE_GREY}
|
|
32
|
+
<Text variant="pS" color={CHARADE_GREY}>
|
|
33
33
|
{title}
|
|
34
34
|
</Text>
|
|
35
35
|
</TableItemKey>
|
|
@@ -24,6 +24,7 @@ const Modal = ({
|
|
|
24
24
|
ModalLink,
|
|
25
25
|
hideModal,
|
|
26
26
|
continueAction,
|
|
27
|
+
cancelAction,
|
|
27
28
|
modalOpen,
|
|
28
29
|
modalHeaderText,
|
|
29
30
|
modalBodyText,
|
|
@@ -34,7 +35,8 @@ const Modal = ({
|
|
|
34
35
|
useDangerButton = false,
|
|
35
36
|
defaultWrapper = true,
|
|
36
37
|
onlyCloseButton = false,
|
|
37
|
-
maxHeight
|
|
38
|
+
maxHeight,
|
|
39
|
+
underlayClickExits = true
|
|
38
40
|
}) => {
|
|
39
41
|
const { isMobile } = useContext(ThemeContext);
|
|
40
42
|
return (
|
|
@@ -54,6 +56,7 @@ const Modal = ({
|
|
|
54
56
|
dialogStyle={{
|
|
55
57
|
width: "615px"
|
|
56
58
|
}}
|
|
59
|
+
underlayClickExits={underlayClickExits}
|
|
57
60
|
>
|
|
58
61
|
<Box
|
|
59
62
|
padding="0"
|
|
@@ -95,7 +98,7 @@ const Modal = ({
|
|
|
95
98
|
>
|
|
96
99
|
<ButtonWithAction
|
|
97
100
|
variant="secondary"
|
|
98
|
-
action={hideModal}
|
|
101
|
+
action={cancelAction ? cancelAction : hideModal}
|
|
99
102
|
text={cancelButtonText}
|
|
100
103
|
dataQa={cancelButtonText}
|
|
101
104
|
extraStyles="width: 100%;"
|
|
@@ -11,11 +11,11 @@ const TitleModule = ({ title, subtitle, titleColor, subtitleColor }) => (
|
|
|
11
11
|
variant="h6"
|
|
12
12
|
weight={FONT_WEIGHT_SEMIBOLD}
|
|
13
13
|
color={titleColor}
|
|
14
|
-
|
|
14
|
+
as="h2"
|
|
15
15
|
>
|
|
16
16
|
{title}
|
|
17
17
|
</Heading>
|
|
18
|
-
<Text variant="pS" color={subtitleColor}
|
|
18
|
+
<Text variant="pS" color={subtitleColor}>
|
|
19
19
|
{subtitle}
|
|
20
20
|
</Text>
|
|
21
21
|
</Stack>
|
|
@@ -168,7 +168,7 @@ const RadioSection = ({
|
|
|
168
168
|
<Cluster align="center">{section.titleIcon}</Cluster>
|
|
169
169
|
)}
|
|
170
170
|
<Box padding={section.titleIcon ? "0 0 0 8px" : "0"}>
|
|
171
|
-
<Text variant="p" color={CHARADE_GREY}
|
|
171
|
+
<Text variant="p" color={CHARADE_GREY}>
|
|
172
172
|
{section.title}
|
|
173
173
|
</Text>
|
|
174
174
|
</Box>
|
|
@@ -6,8 +6,8 @@ import Heading from "../../atoms/heading";
|
|
|
6
6
|
import { Box, Cluster } from "../../atoms/layouts";
|
|
7
7
|
|
|
8
8
|
const WelcomeImage = styled.img`
|
|
9
|
-
width:
|
|
10
|
-
height:
|
|
9
|
+
width: auto;
|
|
10
|
+
height: 215px;
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
const WelcomeModule = ({ heading, isMobile, themeValues }) => {
|
|
@@ -24,13 +24,16 @@ const WelcomeModule = ({ heading, isMobile, themeValues }) => {
|
|
|
24
24
|
</Cluster>
|
|
25
25
|
</Box>
|
|
26
26
|
)}
|
|
27
|
-
<Box
|
|
27
|
+
<Box
|
|
28
|
+
padding="0.875rem 1.5rem"
|
|
29
|
+
background={themeValues.headerBackgroundColor}
|
|
30
|
+
>
|
|
28
31
|
<Heading
|
|
29
|
-
variant="
|
|
32
|
+
variant="h6"
|
|
30
33
|
weight={themeValues.fontWeight}
|
|
31
34
|
color={themeValues.fontColor}
|
|
32
35
|
textAlign={themeValues.textAlign}
|
|
33
|
-
|
|
36
|
+
as="h6"
|
|
34
37
|
>
|
|
35
38
|
{heading}
|
|
36
39
|
</Heading>
|