@thecb/components 4.1.12 → 4.1.14
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 +218 -137
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/FormLayouts.theme.js +2 -2
- package/src/components/atoms/form-select/FormSelect.js +50 -15
- package/src/components/atoms/form-select/FormSelect.stories.js +4 -2
- package/src/components/atoms/form-select/FormSelect.styled.js +6 -6
- package/src/components/atoms/form-select/FormSelect.theme.js +52 -0
- package/src/components/molecules/highlight-tab-row/HighlightTabRow.js +33 -31
package/dist/index.cjs.js
CHANGED
|
@@ -19202,7 +19202,7 @@ function _templateObject2$c() {
|
|
|
19202
19202
|
}
|
|
19203
19203
|
|
|
19204
19204
|
function _templateObject$o() {
|
|
19205
|
-
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n"]);
|
|
19205
|
+
var data = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n > * + * {\n margin-top: 0.25rem;\n }\n"]);
|
|
19206
19206
|
|
|
19207
19207
|
_templateObject$o = function _templateObject() {
|
|
19208
19208
|
return data;
|
|
@@ -19221,14 +19221,74 @@ var SelectField = styled__default.select(_templateObject3$6(), function (_ref2)
|
|
|
19221
19221
|
showErrors = _ref2.showErrors;
|
|
19222
19222
|
return field.dirty && field.hasErrors || field.hasErrors && showErrors ? ERROR_COLOR : GHOST_GREY;
|
|
19223
19223
|
}, FONT_WEIGHT_REGULAR, function (_ref3) {
|
|
19224
|
-
var
|
|
19225
|
-
return
|
|
19224
|
+
var themeValues = _ref3.themeValues;
|
|
19225
|
+
return themeValues.inputBackgroundColor && themeValues.inputBackgroundColor;
|
|
19226
19226
|
}, function (_ref4) {
|
|
19227
|
-
var
|
|
19228
|
-
return
|
|
19227
|
+
var themeValues = _ref4.themeValues;
|
|
19228
|
+
return themeValues.color && themeValues.color;
|
|
19229
19229
|
}, MATISSE_BLUE);
|
|
19230
19230
|
var SelectOption = styled__default.option(_templateObject4$3());
|
|
19231
19231
|
|
|
19232
|
+
var linkColor$1 = {
|
|
19233
|
+
"default": "".concat(MATISSE_BLUE),
|
|
19234
|
+
disabled: "".concat(MATISSE_BLUE)
|
|
19235
|
+
};
|
|
19236
|
+
var formBackgroundColor = {
|
|
19237
|
+
"default": "".concat(WHITE),
|
|
19238
|
+
disabled: "".concat(WHITE),
|
|
19239
|
+
checkout: "".concat(ATHENS_GREY),
|
|
19240
|
+
collapsible: "".concat(ATHENS_GREY)
|
|
19241
|
+
};
|
|
19242
|
+
var inputBackgroundColor = {
|
|
19243
|
+
"default": "".concat(WHITE),
|
|
19244
|
+
disabled: "".concat(SEASHELL_WHITE)
|
|
19245
|
+
};
|
|
19246
|
+
var color$5 = {
|
|
19247
|
+
"default": "".concat(MINESHAFT_GREY),
|
|
19248
|
+
disabled: "".concat(DUSTY_GREY)
|
|
19249
|
+
};
|
|
19250
|
+
var labelColor = {
|
|
19251
|
+
"default": "".concat(CHARADE_GREY),
|
|
19252
|
+
disabled: "".concat(CHARADE_GREY)
|
|
19253
|
+
};
|
|
19254
|
+
var borderColor = {
|
|
19255
|
+
"default": "".concat(GREY_CHATEAU),
|
|
19256
|
+
disabled: "".concat(GREY_CHATEAU)
|
|
19257
|
+
};
|
|
19258
|
+
var lineHeight$2 = {
|
|
19259
|
+
"default": "1rem",
|
|
19260
|
+
disabled: "1rem"
|
|
19261
|
+
};
|
|
19262
|
+
var fontSize$5 = {
|
|
19263
|
+
"default": "0.875rem",
|
|
19264
|
+
disabled: "0.875rem"
|
|
19265
|
+
};
|
|
19266
|
+
var errorFontSize = {
|
|
19267
|
+
"default": "0.75rem",
|
|
19268
|
+
disabled: "0.75rem"
|
|
19269
|
+
};
|
|
19270
|
+
var fontWeight$2 = {
|
|
19271
|
+
"default": "".concat(FONT_WEIGHT_REGULAR),
|
|
19272
|
+
disabled: "".concat(FONT_WEIGHT_REGULAR)
|
|
19273
|
+
};
|
|
19274
|
+
var hoverFocusStyles = {
|
|
19275
|
+
"default": "color: #0E506D; outline: none; text-decoration: underline; ",
|
|
19276
|
+
disabled: "color: #6E727E;"
|
|
19277
|
+
};
|
|
19278
|
+
var fallbackValues$f = {
|
|
19279
|
+
linkColor: linkColor$1,
|
|
19280
|
+
formBackgroundColor: formBackgroundColor,
|
|
19281
|
+
inputBackgroundColor: inputBackgroundColor,
|
|
19282
|
+
color: color$5,
|
|
19283
|
+
labelColor: labelColor,
|
|
19284
|
+
borderColor: borderColor,
|
|
19285
|
+
lineHeight: lineHeight$2,
|
|
19286
|
+
fontSize: fontSize$5,
|
|
19287
|
+
errorFontSize: errorFontSize,
|
|
19288
|
+
fontWeight: fontWeight$2,
|
|
19289
|
+
hoverFocusStyles: hoverFocusStyles
|
|
19290
|
+
};
|
|
19291
|
+
|
|
19232
19292
|
var FormSelect = function FormSelect(_ref) {
|
|
19233
19293
|
var fieldActions = _ref.fieldActions,
|
|
19234
19294
|
labelTextWhenNoError = _ref.labelTextWhenNoError,
|
|
@@ -19237,7 +19297,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19237
19297
|
field = _ref.field,
|
|
19238
19298
|
showErrors = _ref.showErrors,
|
|
19239
19299
|
onChange = _ref.onChange,
|
|
19240
|
-
dropdownMaxHeight = _ref.dropdownMaxHeight
|
|
19300
|
+
dropdownMaxHeight = _ref.dropdownMaxHeight,
|
|
19301
|
+
disabledValues = _ref.disabledValues,
|
|
19302
|
+
themeValues = _ref.themeValues;
|
|
19241
19303
|
|
|
19242
19304
|
var _useState = React.useState(false),
|
|
19243
19305
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -19260,18 +19322,26 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19260
19322
|
});
|
|
19261
19323
|
return /*#__PURE__*/React__default.createElement(SelectContainer, {
|
|
19262
19324
|
ref: dropdownRef
|
|
19325
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
19326
|
+
padding: "0",
|
|
19327
|
+
minWidth: "100%"
|
|
19328
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
19329
|
+
justify: "space-between",
|
|
19330
|
+
align: "center"
|
|
19263
19331
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19332
|
+
as: "label",
|
|
19264
19333
|
variant: "pS",
|
|
19265
|
-
color:
|
|
19266
|
-
weight:
|
|
19267
|
-
extraStyles: "
|
|
19268
|
-
}, labelTextWhenNoError), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
19334
|
+
color: themeValues.labelColor,
|
|
19335
|
+
weight: themeValues.fontWeight,
|
|
19336
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19337
|
+
}, labelTextWhenNoError))), /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
19269
19338
|
maxHeight: dropdownMaxHeight,
|
|
19270
19339
|
placeholder: options[0] ? options[0].text : "",
|
|
19271
19340
|
options: options,
|
|
19272
19341
|
value: field.rawValue,
|
|
19342
|
+
disabledValues: disabledValues,
|
|
19273
19343
|
isOpen: open,
|
|
19274
|
-
isError:
|
|
19344
|
+
isError: field.hasErrors && field.dirty || field.hasErrors && showErrors,
|
|
19275
19345
|
onSelect: onChange ? function (value) {
|
|
19276
19346
|
return onChange(value);
|
|
19277
19347
|
} : function (value) {
|
|
@@ -19283,9 +19353,18 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
19283
19353
|
}), /*#__PURE__*/React__default.createElement(SelectLabel, {
|
|
19284
19354
|
field: field,
|
|
19285
19355
|
showErrors: showErrors
|
|
19286
|
-
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ?
|
|
19356
|
+
}, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19357
|
+
color: ERROR_COLOR,
|
|
19358
|
+
variant: "pXS",
|
|
19359
|
+
weight: themeValues.fontWeight,
|
|
19360
|
+
extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }"
|
|
19361
|
+
}, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
|
|
19362
|
+
extraStyles: "height: ".concat(themeValues.lineHeight, ";")
|
|
19363
|
+
})));
|
|
19287
19364
|
};
|
|
19288
19365
|
|
|
19366
|
+
var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$f, "default");
|
|
19367
|
+
|
|
19289
19368
|
var options = [{
|
|
19290
19369
|
text: "Afghanistan",
|
|
19291
19370
|
value: "AF"
|
|
@@ -20036,7 +20115,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
20036
20115
|
fieldActions = _ref.fieldActions,
|
|
20037
20116
|
showErrors = _ref.showErrors,
|
|
20038
20117
|
onChange = _ref.onChange;
|
|
20039
|
-
return /*#__PURE__*/React__default.createElement(FormSelect, {
|
|
20118
|
+
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
20040
20119
|
options: options,
|
|
20041
20120
|
field: field,
|
|
20042
20121
|
fieldActions: fieldActions,
|
|
@@ -20049,7 +20128,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
20049
20128
|
|
|
20050
20129
|
var backgroundColor$3 = WHITE;
|
|
20051
20130
|
var boxShadow = "0px 2px 14px 0px ".concat(ATHENS_GREY, ", 0px 3px 8px 0px ").concat(GHOST_GREY);
|
|
20052
|
-
var fallbackValues$
|
|
20131
|
+
var fallbackValues$g = {
|
|
20053
20132
|
backgroundColor: backgroundColor$3,
|
|
20054
20133
|
boxShadow: boxShadow
|
|
20055
20134
|
};
|
|
@@ -20070,7 +20149,7 @@ var DisplayBox = function DisplayBox(_ref) {
|
|
|
20070
20149
|
}, children));
|
|
20071
20150
|
};
|
|
20072
20151
|
|
|
20073
|
-
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$
|
|
20152
|
+
var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$g);
|
|
20074
20153
|
|
|
20075
20154
|
var DisplayCard = function DisplayCard(_ref) {
|
|
20076
20155
|
var title = _ref.title,
|
|
@@ -20417,64 +20496,64 @@ var src_1 = src.FormattedInput;
|
|
|
20417
20496
|
var src_2 = src.createFormat;
|
|
20418
20497
|
var src_3 = src.format;
|
|
20419
20498
|
|
|
20420
|
-
var linkColor$
|
|
20499
|
+
var linkColor$2 = {
|
|
20421
20500
|
"default": "".concat(MATISSE_BLUE),
|
|
20422
20501
|
disabled: "".concat(MATISSE_BLUE)
|
|
20423
20502
|
};
|
|
20424
|
-
var formBackgroundColor = {
|
|
20503
|
+
var formBackgroundColor$1 = {
|
|
20425
20504
|
"default": "".concat(WHITE),
|
|
20426
20505
|
disabled: "".concat(WHITE),
|
|
20427
20506
|
checkout: "".concat(ATHENS_GREY),
|
|
20428
20507
|
collapsible: "".concat(ATHENS_GREY)
|
|
20429
20508
|
};
|
|
20430
|
-
var inputBackgroundColor = {
|
|
20509
|
+
var inputBackgroundColor$1 = {
|
|
20431
20510
|
"default": "".concat(WHITE),
|
|
20432
20511
|
disabled: "".concat(SEASHELL_WHITE)
|
|
20433
20512
|
};
|
|
20434
|
-
var color$
|
|
20513
|
+
var color$6 = {
|
|
20435
20514
|
"default": "".concat(MINESHAFT_GREY),
|
|
20436
20515
|
disabled: "".concat(DUSTY_GREY)
|
|
20437
20516
|
};
|
|
20438
|
-
var labelColor = {
|
|
20439
|
-
"default": "".concat(
|
|
20440
|
-
disabled: "".concat(
|
|
20517
|
+
var labelColor$1 = {
|
|
20518
|
+
"default": "".concat(CHARADE_GREY),
|
|
20519
|
+
disabled: "".concat(CHARADE_GREY)
|
|
20441
20520
|
};
|
|
20442
|
-
var borderColor = {
|
|
20521
|
+
var borderColor$1 = {
|
|
20443
20522
|
"default": "".concat(GREY_CHATEAU),
|
|
20444
20523
|
disabled: "".concat(GREY_CHATEAU)
|
|
20445
20524
|
};
|
|
20446
|
-
var lineHeight$
|
|
20525
|
+
var lineHeight$3 = {
|
|
20447
20526
|
"default": "1rem",
|
|
20448
20527
|
disabled: "1rem"
|
|
20449
20528
|
};
|
|
20450
|
-
var fontSize$
|
|
20529
|
+
var fontSize$6 = {
|
|
20451
20530
|
"default": "0.875rem",
|
|
20452
20531
|
disabled: "0.875rem"
|
|
20453
20532
|
};
|
|
20454
|
-
var errorFontSize = {
|
|
20533
|
+
var errorFontSize$1 = {
|
|
20455
20534
|
"default": "0.75rem",
|
|
20456
20535
|
disabled: "0.75rem"
|
|
20457
20536
|
};
|
|
20458
|
-
var fontWeight$
|
|
20537
|
+
var fontWeight$3 = {
|
|
20459
20538
|
"default": "".concat(FONT_WEIGHT_REGULAR),
|
|
20460
20539
|
disabled: "".concat(FONT_WEIGHT_REGULAR)
|
|
20461
20540
|
};
|
|
20462
|
-
var hoverFocusStyles = {
|
|
20541
|
+
var hoverFocusStyles$1 = {
|
|
20463
20542
|
"default": "color: #0E506D; outline: none; text-decoration: underline; ",
|
|
20464
20543
|
disabled: "color: #6E727E;"
|
|
20465
20544
|
};
|
|
20466
|
-
var fallbackValues$
|
|
20467
|
-
linkColor: linkColor$
|
|
20468
|
-
formBackgroundColor: formBackgroundColor,
|
|
20469
|
-
inputBackgroundColor: inputBackgroundColor,
|
|
20470
|
-
color: color$
|
|
20471
|
-
labelColor: labelColor,
|
|
20472
|
-
borderColor: borderColor,
|
|
20473
|
-
lineHeight: lineHeight$
|
|
20474
|
-
fontSize: fontSize$
|
|
20475
|
-
errorFontSize: errorFontSize,
|
|
20476
|
-
fontWeight: fontWeight$
|
|
20477
|
-
hoverFocusStyles: hoverFocusStyles
|
|
20545
|
+
var fallbackValues$h = {
|
|
20546
|
+
linkColor: linkColor$2,
|
|
20547
|
+
formBackgroundColor: formBackgroundColor$1,
|
|
20548
|
+
inputBackgroundColor: inputBackgroundColor$1,
|
|
20549
|
+
color: color$6,
|
|
20550
|
+
labelColor: labelColor$1,
|
|
20551
|
+
borderColor: borderColor$1,
|
|
20552
|
+
lineHeight: lineHeight$3,
|
|
20553
|
+
fontSize: fontSize$6,
|
|
20554
|
+
errorFontSize: errorFontSize$1,
|
|
20555
|
+
fontWeight: fontWeight$3,
|
|
20556
|
+
hoverFocusStyles: hoverFocusStyles$1
|
|
20478
20557
|
};
|
|
20479
20558
|
|
|
20480
20559
|
function _templateObject4$4() {
|
|
@@ -20690,7 +20769,7 @@ var FormInput = function FormInput(_ref13) {
|
|
|
20690
20769
|
}, decorator)));
|
|
20691
20770
|
};
|
|
20692
20771
|
|
|
20693
|
-
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$
|
|
20772
|
+
var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$h, "default");
|
|
20694
20773
|
|
|
20695
20774
|
var FormInputRow = function FormInputRow(_ref) {
|
|
20696
20775
|
var _ref$breakpoint = _ref.breakpoint,
|
|
@@ -20740,9 +20819,9 @@ var FormContainer = function FormContainer(_ref) {
|
|
|
20740
20819
|
}, rest), children);
|
|
20741
20820
|
};
|
|
20742
20821
|
|
|
20743
|
-
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$
|
|
20822
|
+
var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$h, "default");
|
|
20744
20823
|
|
|
20745
|
-
var fontSize$
|
|
20824
|
+
var fontSize$7 = {
|
|
20746
20825
|
"default": "1rem",
|
|
20747
20826
|
radio: "1.0625rem"
|
|
20748
20827
|
};
|
|
@@ -20750,14 +20829,14 @@ var padding$1 = {
|
|
|
20750
20829
|
"default": "0",
|
|
20751
20830
|
radio: "0.625rem 0"
|
|
20752
20831
|
};
|
|
20753
|
-
var color$
|
|
20832
|
+
var color$7 = {
|
|
20754
20833
|
"default": "".concat(CHARADE_GREY),
|
|
20755
20834
|
radio: "".concat(MINESHAFT_GREY)
|
|
20756
20835
|
};
|
|
20757
|
-
var fallbackValues$
|
|
20758
|
-
fontSize: fontSize$
|
|
20836
|
+
var fallbackValues$i = {
|
|
20837
|
+
fontSize: fontSize$7,
|
|
20759
20838
|
padding: padding$1,
|
|
20760
|
-
color: color$
|
|
20839
|
+
color: color$7
|
|
20761
20840
|
};
|
|
20762
20841
|
|
|
20763
20842
|
var FormattedAddress = function FormattedAddress(_ref) {
|
|
@@ -20797,11 +20876,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
|
|
|
20797
20876
|
}, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
|
|
20798
20877
|
};
|
|
20799
20878
|
|
|
20800
|
-
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$
|
|
20879
|
+
var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$i, "default");
|
|
20801
20880
|
|
|
20802
20881
|
var textColor$1 = "".concat(CHARADE_GREY);
|
|
20803
20882
|
var autopayTextColor = "".concat(REGENT_GREY);
|
|
20804
|
-
var fallbackValues$
|
|
20883
|
+
var fallbackValues$j = {
|
|
20805
20884
|
textColor: textColor$1,
|
|
20806
20885
|
autopayTextColor: autopayTextColor
|
|
20807
20886
|
};
|
|
@@ -20854,7 +20933,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
|
|
|
20854
20933
|
}, "Autopay Enabled")));
|
|
20855
20934
|
};
|
|
20856
20935
|
|
|
20857
|
-
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$
|
|
20936
|
+
var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$j, "default");
|
|
20858
20937
|
|
|
20859
20938
|
function _templateObject3$8() {
|
|
20860
20939
|
var data = _taggedTemplateLiteral(["\n display: block;\n top: auto;\n bottom: 6px;\n left: 2px;\n transition-duration: 0.13s;\n transition-delay: 0.13s;\n transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n margin-top: 12px;\n background-color: ", ";\n\n &, &::before, &::after {\n background-color: ", ";\n width: 30px;\n height: 3px;\n position: absolute;\n transition-property: transform;\n transition-duration: 0.15s;\n transition-timing-function: ease;\n }\n\n &::before, &::after {\n content: \"\";\n display: block;\n }\n\n &::before {\n top: -10px;\n transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);\n }\n\n &::after {\n bottom: -10px;\n top: -20px;\n transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n opacity 0.1s linear;\n }\n\n &.active, &.active::before, &.active::after {\n background-color: ", ";\n }\n\n &.active {\n transform: translate3d(0, -10px, 0) rotate(-45deg);\n transition-delay: 0.22s;\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n\n &.active::after {\n top: 0;\n opacity: 0;\n transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n opacity: 0.1s 0.22s linear;\n }\n\n &.active::before {\n top: 0;\n transform: rotate(-90deg);\n transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n"]);
|
|
@@ -20971,14 +21050,14 @@ var Jumbo = function Jumbo(_ref) {
|
|
|
20971
21050
|
|
|
20972
21051
|
var Jumbo$1 = withWindowSize(Jumbo);
|
|
20973
21052
|
|
|
20974
|
-
var fontWeight$
|
|
21053
|
+
var fontWeight$4 = {
|
|
20975
21054
|
"default": "600",
|
|
20976
21055
|
p: "600",
|
|
20977
21056
|
pL: "600",
|
|
20978
21057
|
h6: "700"
|
|
20979
21058
|
};
|
|
20980
|
-
var fallbackValues$
|
|
20981
|
-
fontWeight: fontWeight$
|
|
21059
|
+
var fallbackValues$k = {
|
|
21060
|
+
fontWeight: fontWeight$4
|
|
20982
21061
|
};
|
|
20983
21062
|
|
|
20984
21063
|
var LabeledAmount = function LabeledAmount(_ref) {
|
|
@@ -21004,7 +21083,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
|
|
|
21004
21083
|
}, amount));
|
|
21005
21084
|
};
|
|
21006
21085
|
|
|
21007
|
-
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$
|
|
21086
|
+
var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$k, "default");
|
|
21008
21087
|
|
|
21009
21088
|
var weightTitle = {
|
|
21010
21089
|
"default": "600",
|
|
@@ -21014,7 +21093,7 @@ var paragraphVariant = {
|
|
|
21014
21093
|
"default": "pL",
|
|
21015
21094
|
small: "p"
|
|
21016
21095
|
};
|
|
21017
|
-
var fallbackValues$
|
|
21096
|
+
var fallbackValues$l = {
|
|
21018
21097
|
weightTitle: weightTitle,
|
|
21019
21098
|
paragraphVariant: paragraphVariant
|
|
21020
21099
|
};
|
|
@@ -21043,11 +21122,11 @@ var LineItem = function LineItem(_ref) {
|
|
|
21043
21122
|
}, amount));
|
|
21044
21123
|
};
|
|
21045
21124
|
|
|
21046
|
-
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$
|
|
21125
|
+
var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$l, "default");
|
|
21047
21126
|
|
|
21048
|
-
var color$
|
|
21049
|
-
var fallbackValues$
|
|
21050
|
-
color: color$
|
|
21127
|
+
var color$8 = "#15749D";
|
|
21128
|
+
var fallbackValues$m = {
|
|
21129
|
+
color: color$8
|
|
21051
21130
|
};
|
|
21052
21131
|
|
|
21053
21132
|
function _templateObject2$g() {
|
|
@@ -21098,7 +21177,7 @@ var Spinner$1 = function Spinner(_ref4) {
|
|
|
21098
21177
|
})));
|
|
21099
21178
|
};
|
|
21100
21179
|
|
|
21101
|
-
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$
|
|
21180
|
+
var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$m);
|
|
21102
21181
|
|
|
21103
21182
|
var Loading = function Loading() {
|
|
21104
21183
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -21512,7 +21591,7 @@ var PasswordRequirements = function PasswordRequirements(_ref) {
|
|
|
21512
21591
|
}))));
|
|
21513
21592
|
};
|
|
21514
21593
|
|
|
21515
|
-
var color$
|
|
21594
|
+
var color$9 = {
|
|
21516
21595
|
"default": "".concat(CHARADE_GREY),
|
|
21517
21596
|
large: "".concat(BRIGHT_GREY)
|
|
21518
21597
|
};
|
|
@@ -21520,8 +21599,8 @@ var height$1 = {
|
|
|
21520
21599
|
"default": "3rem",
|
|
21521
21600
|
large: "192px"
|
|
21522
21601
|
};
|
|
21523
|
-
var fallbackValues$
|
|
21524
|
-
color: color$
|
|
21602
|
+
var fallbackValues$n = {
|
|
21603
|
+
color: color$9,
|
|
21525
21604
|
height: height$1
|
|
21526
21605
|
};
|
|
21527
21606
|
|
|
@@ -21609,12 +21688,12 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
21609
21688
|
}, text)))))))))));
|
|
21610
21689
|
};
|
|
21611
21690
|
|
|
21612
|
-
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$
|
|
21691
|
+
var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$n, "default");
|
|
21613
21692
|
|
|
21614
21693
|
var backgroundColor$4 = {
|
|
21615
21694
|
"default": "".concat(WHITE)
|
|
21616
21695
|
};
|
|
21617
|
-
var fallbackValues$
|
|
21696
|
+
var fallbackValues$o = {
|
|
21618
21697
|
backgroundColor: backgroundColor$4
|
|
21619
21698
|
};
|
|
21620
21699
|
|
|
@@ -21642,11 +21721,11 @@ var ProcessingFee = function ProcessingFee(_ref) {
|
|
|
21642
21721
|
}));
|
|
21643
21722
|
};
|
|
21644
21723
|
|
|
21645
|
-
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$
|
|
21724
|
+
var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$o, "default");
|
|
21646
21725
|
|
|
21647
21726
|
var activeColor$4 = "".concat(MATISSE_BLUE);
|
|
21648
21727
|
var inactiveColor = "".concat(GREY_CHATEAU);
|
|
21649
|
-
var fallbackValues$
|
|
21728
|
+
var fallbackValues$p = {
|
|
21650
21729
|
activeColor: activeColor$4,
|
|
21651
21730
|
inactiveColor: inactiveColor
|
|
21652
21731
|
};
|
|
@@ -21742,16 +21821,16 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
21742
21821
|
})));
|
|
21743
21822
|
};
|
|
21744
21823
|
|
|
21745
|
-
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$
|
|
21824
|
+
var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$p);
|
|
21746
21825
|
|
|
21747
|
-
var borderColor$
|
|
21826
|
+
var borderColor$2 = {
|
|
21748
21827
|
"default": "".concat(GREY_CHATEAU)
|
|
21749
21828
|
};
|
|
21750
21829
|
var borderSize = {
|
|
21751
21830
|
"default": "1px"
|
|
21752
21831
|
};
|
|
21753
|
-
var fallbackValues$
|
|
21754
|
-
borderColor: borderColor$
|
|
21832
|
+
var fallbackValues$q = {
|
|
21833
|
+
borderColor: borderColor$2,
|
|
21755
21834
|
borderSize: borderSize
|
|
21756
21835
|
};
|
|
21757
21836
|
|
|
@@ -21767,7 +21846,7 @@ var SolidDivider = function SolidDivider(_ref) {
|
|
|
21767
21846
|
});
|
|
21768
21847
|
};
|
|
21769
21848
|
|
|
21770
|
-
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$
|
|
21849
|
+
var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$q, "default");
|
|
21771
21850
|
|
|
21772
21851
|
var placeHolderOptionUS = {
|
|
21773
21852
|
text: "Please select state",
|
|
@@ -32332,7 +32411,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
32332
32411
|
countryCode = _ref.countryCode;
|
|
32333
32412
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
32334
32413
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
32335
|
-
return /*#__PURE__*/React__default.createElement(FormSelect, {
|
|
32414
|
+
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
32336
32415
|
options: options,
|
|
32337
32416
|
field: field,
|
|
32338
32417
|
fieldActions: fieldActions,
|
|
@@ -32349,7 +32428,7 @@ var offBackground = "".concat(REGENT_GREY);
|
|
|
32349
32428
|
var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
|
|
32350
32429
|
var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
|
|
32351
32430
|
var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
|
|
32352
|
-
var fallbackValues$
|
|
32431
|
+
var fallbackValues$r = {
|
|
32353
32432
|
onBackground: onBackground,
|
|
32354
32433
|
disabledBackground: disabledBackground,
|
|
32355
32434
|
white: white,
|
|
@@ -32551,7 +32630,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
32551
32630
|
}, label))));
|
|
32552
32631
|
};
|
|
32553
32632
|
|
|
32554
|
-
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$
|
|
32633
|
+
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$r);
|
|
32555
32634
|
|
|
32556
32635
|
var background$1 = "".concat(ATHENS_GREY);
|
|
32557
32636
|
var white$1 = "".concat(WHITE);
|
|
@@ -34483,7 +34562,7 @@ ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
|
34483
34562
|
var titleColor = "#292A33";
|
|
34484
34563
|
var headingBackgroundColor = "transparent";
|
|
34485
34564
|
var bodyBackgroundColor = "transparent";
|
|
34486
|
-
var fallbackValues$
|
|
34565
|
+
var fallbackValues$s = {
|
|
34487
34566
|
titleColor: titleColor,
|
|
34488
34567
|
headingBackgroundColor: headingBackgroundColor,
|
|
34489
34568
|
bodyBackgroundColor: bodyBackgroundColor
|
|
@@ -34584,7 +34663,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
|
|
|
34584
34663
|
}, children))));
|
|
34585
34664
|
};
|
|
34586
34665
|
|
|
34587
|
-
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$
|
|
34666
|
+
var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$s);
|
|
34588
34667
|
|
|
34589
34668
|
var EditNameForm = function EditNameForm(_ref) {
|
|
34590
34669
|
var fields = _ref.fields,
|
|
@@ -35119,7 +35198,7 @@ ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
|
|
|
35119
35198
|
|
|
35120
35199
|
var textColor$2 = "#ffffff";
|
|
35121
35200
|
var backgroundColor$5 = "#182848";
|
|
35122
|
-
var fallbackValues$
|
|
35201
|
+
var fallbackValues$t = {
|
|
35123
35202
|
textColor: textColor$2,
|
|
35124
35203
|
backgroundColor: backgroundColor$5
|
|
35125
35204
|
};
|
|
@@ -35140,10 +35219,12 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
35140
35219
|
boxShadow: "0px 0px 4px 0px rgb(110, 114, 126)",
|
|
35141
35220
|
role: "region",
|
|
35142
35221
|
"aria-label": "Payment step"
|
|
35222
|
+
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
35223
|
+
maxWidth: "76.5rem"
|
|
35143
35224
|
}, /*#__PURE__*/React__default.createElement(Reel, {
|
|
35144
35225
|
padding: "0",
|
|
35145
|
-
childGap: "
|
|
35146
|
-
childWidth: "
|
|
35226
|
+
childGap: "4.5rem",
|
|
35227
|
+
childWidth: "11rem",
|
|
35147
35228
|
justifyContent: "space-evenly",
|
|
35148
35229
|
disableScroll: true
|
|
35149
35230
|
}, repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesBefore), tabs.map(function (t, i) {
|
|
@@ -35160,10 +35241,10 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
|
|
|
35160
35241
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
35161
35242
|
extraStyles: "display: block; white-space: nowrap;"
|
|
35162
35243
|
}, t));
|
|
35163
|
-
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter)));
|
|
35244
|
+
}), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter))));
|
|
35164
35245
|
};
|
|
35165
35246
|
|
|
35166
|
-
var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$
|
|
35247
|
+
var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$t));
|
|
35167
35248
|
|
|
35168
35249
|
var LoginForm = function LoginForm(_ref) {
|
|
35169
35250
|
var _emailErrorMessages;
|
|
@@ -36498,11 +36579,11 @@ var Modal$1 = function Modal(_ref) {
|
|
|
36498
36579
|
})))))))));
|
|
36499
36580
|
};
|
|
36500
36581
|
|
|
36501
|
-
var fontSize$
|
|
36582
|
+
var fontSize$8 = {
|
|
36502
36583
|
"default": "1.375rem",
|
|
36503
36584
|
largeTitle: "1.75rem"
|
|
36504
36585
|
};
|
|
36505
|
-
var fontWeight$
|
|
36586
|
+
var fontWeight$5 = {
|
|
36506
36587
|
"default": "600",
|
|
36507
36588
|
largeTitle: "700"
|
|
36508
36589
|
};
|
|
@@ -36510,7 +36591,7 @@ var fontColor = {
|
|
|
36510
36591
|
"default": CHARADE_GREY,
|
|
36511
36592
|
largeTitle: CHARADE_GREY
|
|
36512
36593
|
};
|
|
36513
|
-
var lineHeight$
|
|
36594
|
+
var lineHeight$4 = {
|
|
36514
36595
|
"default": "2rem",
|
|
36515
36596
|
largeTitle: "2rem"
|
|
36516
36597
|
};
|
|
@@ -36538,11 +36619,11 @@ var backgroundColor$6 = {
|
|
|
36538
36619
|
"default": WHITE,
|
|
36539
36620
|
largeTitle: WHITE
|
|
36540
36621
|
};
|
|
36541
|
-
var fallbackValues$
|
|
36542
|
-
fontSize: fontSize$
|
|
36543
|
-
fontWeight: fontWeight$
|
|
36622
|
+
var fallbackValues$u = {
|
|
36623
|
+
fontSize: fontSize$8,
|
|
36624
|
+
fontWeight: fontWeight$5,
|
|
36544
36625
|
fontColor: fontColor,
|
|
36545
|
-
lineHeight: lineHeight$
|
|
36626
|
+
lineHeight: lineHeight$4,
|
|
36546
36627
|
textAlign: textAlign,
|
|
36547
36628
|
titleType: titleType,
|
|
36548
36629
|
titleSpacing: titleSpacing,
|
|
@@ -36579,7 +36660,7 @@ var Module = function Module(_ref) {
|
|
|
36579
36660
|
}, children)));
|
|
36580
36661
|
};
|
|
36581
36662
|
|
|
36582
|
-
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$
|
|
36663
|
+
var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$u, "default"));
|
|
36583
36664
|
|
|
36584
36665
|
var backgroundColor$7 = {
|
|
36585
36666
|
profile: "#3b414d",
|
|
@@ -36589,7 +36670,7 @@ var shadowColor = {
|
|
|
36589
36670
|
profile: "#292A33",
|
|
36590
36671
|
cms: "#292A33"
|
|
36591
36672
|
};
|
|
36592
|
-
var fallbackValues$
|
|
36673
|
+
var fallbackValues$v = {
|
|
36593
36674
|
backgroundColor: backgroundColor$7,
|
|
36594
36675
|
shadowColor: shadowColor
|
|
36595
36676
|
};
|
|
@@ -36630,7 +36711,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
36630
36711
|
}, menuContent));
|
|
36631
36712
|
};
|
|
36632
36713
|
|
|
36633
|
-
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$
|
|
36714
|
+
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$v, "profile");
|
|
36634
36715
|
|
|
36635
36716
|
function _templateObject$B() {
|
|
36636
36717
|
var data = _taggedTemplateLiteral(["\n position: fixed;\n top: 72px;\n"]);
|
|
@@ -36692,7 +36773,7 @@ var NavMenuMobile = function NavMenuMobile(_ref) {
|
|
|
36692
36773
|
}, menuContent));
|
|
36693
36774
|
};
|
|
36694
36775
|
|
|
36695
|
-
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$
|
|
36776
|
+
var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$v, "profile");
|
|
36696
36777
|
|
|
36697
36778
|
var AccountBillIcon = function AccountBillIcon() {
|
|
36698
36779
|
return /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -38191,11 +38272,11 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
38191
38272
|
}, subtitle)));
|
|
38192
38273
|
};
|
|
38193
38274
|
|
|
38194
|
-
var color$
|
|
38275
|
+
var color$a = "#15749D";
|
|
38195
38276
|
var hoverColor$4 = "#116285";
|
|
38196
38277
|
var activeColor$5 = "#0E506D";
|
|
38197
|
-
var fallbackValues$
|
|
38198
|
-
color: color$
|
|
38278
|
+
var fallbackValues$w = {
|
|
38279
|
+
color: color$a,
|
|
38199
38280
|
hoverColor: hoverColor$4,
|
|
38200
38281
|
activeColor: activeColor$5
|
|
38201
38282
|
};
|
|
@@ -38265,7 +38346,7 @@ var AutopayModal = function AutopayModal(_ref) {
|
|
|
38265
38346
|
}, modalExtraProps));
|
|
38266
38347
|
};
|
|
38267
38348
|
|
|
38268
|
-
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$
|
|
38349
|
+
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$w);
|
|
38269
38350
|
|
|
38270
38351
|
var AmountModule = function AmountModule(_ref) {
|
|
38271
38352
|
var totalAmountDue = _ref.totalAmountDue,
|
|
@@ -38822,7 +38903,7 @@ var labeledAmountTotal = {
|
|
|
38822
38903
|
"default": "h6",
|
|
38823
38904
|
small: "pL"
|
|
38824
38905
|
};
|
|
38825
|
-
var fallbackValues$
|
|
38906
|
+
var fallbackValues$x = {
|
|
38826
38907
|
backgroundColor: backgroundColor$8,
|
|
38827
38908
|
lineItem: lineItem,
|
|
38828
38909
|
labeledAmountSubtotal: labeledAmountSubtotal,
|
|
@@ -38998,21 +39079,21 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
38998
39079
|
});
|
|
38999
39080
|
};
|
|
39000
39081
|
|
|
39001
|
-
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$
|
|
39082
|
+
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$x, "default");
|
|
39002
39083
|
|
|
39003
|
-
var linkColor$
|
|
39084
|
+
var linkColor$3 = {
|
|
39004
39085
|
"default": "#357fb8",
|
|
39005
39086
|
footer: "#ffffff"
|
|
39006
39087
|
};
|
|
39007
|
-
var fontSize$
|
|
39088
|
+
var fontSize$9 = {
|
|
39008
39089
|
"default": "1rem",
|
|
39009
39090
|
footer: "0.875rem"
|
|
39010
39091
|
};
|
|
39011
|
-
var lineHeight$
|
|
39092
|
+
var lineHeight$5 = {
|
|
39012
39093
|
"default": "1.5rem",
|
|
39013
39094
|
footer: "1.25rem"
|
|
39014
39095
|
};
|
|
39015
|
-
var fontWeight$
|
|
39096
|
+
var fontWeight$6 = {
|
|
39016
39097
|
"default": FONT_WEIGHT_REGULAR,
|
|
39017
39098
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
39018
39099
|
};
|
|
@@ -39020,11 +39101,11 @@ var modalLinkHoverFocus = {
|
|
|
39020
39101
|
"default": "",
|
|
39021
39102
|
footer: "outline: none; text-decoration: underline;"
|
|
39022
39103
|
};
|
|
39023
|
-
var fallbackValues$
|
|
39024
|
-
linkColor: linkColor$
|
|
39025
|
-
fontSize: fontSize$
|
|
39026
|
-
lineHeight: lineHeight$
|
|
39027
|
-
fontWeight: fontWeight$
|
|
39104
|
+
var fallbackValues$y = {
|
|
39105
|
+
linkColor: linkColor$3,
|
|
39106
|
+
fontSize: fontSize$9,
|
|
39107
|
+
lineHeight: lineHeight$5,
|
|
39108
|
+
fontWeight: fontWeight$6,
|
|
39028
39109
|
modalLinkHoverFocus: modalLinkHoverFocus
|
|
39029
39110
|
};
|
|
39030
39111
|
|
|
@@ -39083,7 +39164,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
39083
39164
|
});
|
|
39084
39165
|
};
|
|
39085
39166
|
|
|
39086
|
-
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$
|
|
39167
|
+
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$y, "default");
|
|
39087
39168
|
|
|
39088
39169
|
function _templateObject2$l() {
|
|
39089
39170
|
var data = _taggedTemplateLiteral(["\n outline: none;\n"]);
|
|
@@ -39247,7 +39328,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
39247
39328
|
onKeyDown: function onKeyDown(e) {
|
|
39248
39329
|
return e.key === "Enter" && handleSubmit(e);
|
|
39249
39330
|
}
|
|
39250
|
-
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect, {
|
|
39331
|
+
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
39251
39332
|
labelTextWhenNoError: "Account type",
|
|
39252
39333
|
options: [{
|
|
39253
39334
|
text: "Select account type",
|
|
@@ -39607,13 +39688,13 @@ PhoneForm.mapDispatchToProps = mapDispatchToProps$8;
|
|
|
39607
39688
|
var headingBackgroundColor$1 = "".concat(WHITE);
|
|
39608
39689
|
var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
39609
39690
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
39610
|
-
var borderColor$
|
|
39691
|
+
var borderColor$3 = "".concat(GREY_CHATEAU);
|
|
39611
39692
|
var focusStyles = "outline: none;";
|
|
39612
|
-
var fallbackValues$
|
|
39693
|
+
var fallbackValues$z = {
|
|
39613
39694
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
39614
39695
|
headingDisabledColor: headingDisabledColor,
|
|
39615
39696
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
39616
|
-
borderColor: borderColor$
|
|
39697
|
+
borderColor: borderColor$3,
|
|
39617
39698
|
focusStyles: focusStyles
|
|
39618
39699
|
};
|
|
39619
39700
|
|
|
@@ -39800,7 +39881,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
39800
39881
|
})));
|
|
39801
39882
|
};
|
|
39802
39883
|
|
|
39803
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
39884
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$z);
|
|
39804
39885
|
|
|
39805
39886
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
39806
39887
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -40089,7 +40170,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
40089
40170
|
var activeTabBackground = "#FFFFFF";
|
|
40090
40171
|
var activeTabAccent = "#15749D";
|
|
40091
40172
|
var activeTabHover = "#B8D5E1";
|
|
40092
|
-
var fallbackValues$
|
|
40173
|
+
var fallbackValues$A = {
|
|
40093
40174
|
activeTabBackground: activeTabBackground,
|
|
40094
40175
|
activeTabAccent: activeTabAccent,
|
|
40095
40176
|
activeTabHover: activeTabHover
|
|
@@ -40145,13 +40226,13 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
40145
40226
|
})));
|
|
40146
40227
|
};
|
|
40147
40228
|
|
|
40148
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
40229
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$A);
|
|
40149
40230
|
|
|
40150
40231
|
var backgroundColor$9 = {
|
|
40151
40232
|
"default": "#ffffff",
|
|
40152
40233
|
footer: "#ffffff"
|
|
40153
40234
|
};
|
|
40154
|
-
var linkColor$
|
|
40235
|
+
var linkColor$4 = {
|
|
40155
40236
|
"default": "#357fb8",
|
|
40156
40237
|
footer: "#ffffff"
|
|
40157
40238
|
};
|
|
@@ -40159,15 +40240,15 @@ var border$2 = {
|
|
|
40159
40240
|
"default": "#cdcdcd",
|
|
40160
40241
|
footer: "#cdcdcd"
|
|
40161
40242
|
};
|
|
40162
|
-
var fontSize$
|
|
40243
|
+
var fontSize$a = {
|
|
40163
40244
|
"default": "1rem",
|
|
40164
40245
|
footer: "0.875rem"
|
|
40165
40246
|
};
|
|
40166
|
-
var lineHeight$
|
|
40247
|
+
var lineHeight$6 = {
|
|
40167
40248
|
"default": "1.5rem",
|
|
40168
40249
|
footer: "1.25rem"
|
|
40169
40250
|
};
|
|
40170
|
-
var fontWeight$
|
|
40251
|
+
var fontWeight$7 = {
|
|
40171
40252
|
"default": FONT_WEIGHT_REGULAR,
|
|
40172
40253
|
footer: FONT_WEIGHT_SEMIBOLD
|
|
40173
40254
|
};
|
|
@@ -40175,13 +40256,13 @@ var modalLinkHoverFocus$1 = {
|
|
|
40175
40256
|
"default": "",
|
|
40176
40257
|
footer: "outline: none; text-decoration: underline;"
|
|
40177
40258
|
};
|
|
40178
|
-
var fallbackValues$
|
|
40259
|
+
var fallbackValues$B = {
|
|
40179
40260
|
backgroundColor: backgroundColor$9,
|
|
40180
|
-
linkColor: linkColor$
|
|
40261
|
+
linkColor: linkColor$4,
|
|
40181
40262
|
border: border$2,
|
|
40182
|
-
fontSize: fontSize$
|
|
40183
|
-
lineHeight: lineHeight$
|
|
40184
|
-
fontWeight: fontWeight$
|
|
40263
|
+
fontSize: fontSize$a,
|
|
40264
|
+
lineHeight: lineHeight$6,
|
|
40265
|
+
fontWeight: fontWeight$7,
|
|
40185
40266
|
modalLinkHoverFocus: modalLinkHoverFocus$1
|
|
40186
40267
|
};
|
|
40187
40268
|
|
|
@@ -40239,7 +40320,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
40239
40320
|
});
|
|
40240
40321
|
};
|
|
40241
40322
|
|
|
40242
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$
|
|
40323
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$B, "default");
|
|
40243
40324
|
|
|
40244
40325
|
function _templateObject2$m() {
|
|
40245
40326
|
var data = _taggedTemplateLiteral([""]);
|
|
@@ -40363,13 +40444,13 @@ var Timeout = function Timeout(_ref) {
|
|
|
40363
40444
|
|
|
40364
40445
|
var Timeout$1 = withWindowSize(Timeout);
|
|
40365
40446
|
|
|
40366
|
-
var fontWeight$
|
|
40447
|
+
var fontWeight$8 = "600";
|
|
40367
40448
|
var fontColor$1 = WHITE;
|
|
40368
40449
|
var textAlign$1 = "left";
|
|
40369
40450
|
var headerBackgroundColor = BRIGHT_GREY;
|
|
40370
40451
|
var imageBackgroundColor = MATISSE_BLUE;
|
|
40371
|
-
var fallbackValues$
|
|
40372
|
-
fontWeight: fontWeight$
|
|
40452
|
+
var fallbackValues$C = {
|
|
40453
|
+
fontWeight: fontWeight$8,
|
|
40373
40454
|
fontColor: fontColor$1,
|
|
40374
40455
|
textAlign: textAlign$1,
|
|
40375
40456
|
headerBackgroundColor: headerBackgroundColor,
|
|
@@ -40421,7 +40502,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
40421
40502
|
})))));
|
|
40422
40503
|
};
|
|
40423
40504
|
|
|
40424
|
-
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
40505
|
+
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$C));
|
|
40425
40506
|
|
|
40426
40507
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
40427
40508
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -40469,7 +40550,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
40469
40550
|
};
|
|
40470
40551
|
|
|
40471
40552
|
var pageBackground = "#F6F6F9";
|
|
40472
|
-
var fallbackValues$
|
|
40553
|
+
var fallbackValues$D = {
|
|
40473
40554
|
pageBackground: pageBackground
|
|
40474
40555
|
};
|
|
40475
40556
|
|
|
@@ -40516,7 +40597,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
40516
40597
|
})));
|
|
40517
40598
|
};
|
|
40518
40599
|
|
|
40519
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
40600
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$D));
|
|
40520
40601
|
|
|
40521
40602
|
var CenterStack = function CenterStack(_ref) {
|
|
40522
40603
|
var header = _ref.header,
|
|
@@ -40558,7 +40639,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
40558
40639
|
})));
|
|
40559
40640
|
};
|
|
40560
40641
|
|
|
40561
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
40642
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$D));
|
|
40562
40643
|
|
|
40563
40644
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
40564
40645
|
var header = _ref.header,
|
|
@@ -40598,7 +40679,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
40598
40679
|
})));
|
|
40599
40680
|
};
|
|
40600
40681
|
|
|
40601
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
40682
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$D));
|
|
40602
40683
|
|
|
40603
40684
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
40604
40685
|
var header = _ref.header,
|
|
@@ -40652,7 +40733,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
40652
40733
|
})));
|
|
40653
40734
|
};
|
|
40654
40735
|
|
|
40655
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
40736
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$D));
|
|
40656
40737
|
|
|
40657
40738
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
40658
40739
|
var header = _ref.header,
|
|
@@ -40723,7 +40804,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
40723
40804
|
})));
|
|
40724
40805
|
};
|
|
40725
40806
|
|
|
40726
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
40807
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$D));
|
|
40727
40808
|
|
|
40728
40809
|
|
|
40729
40810
|
|
|
@@ -40793,7 +40874,7 @@ exports.FormContainer = FormContainer$1;
|
|
|
40793
40874
|
exports.FormInput = FormInput$1;
|
|
40794
40875
|
exports.FormInputColumn = FormInputColumn;
|
|
40795
40876
|
exports.FormInputRow = FormInputRow;
|
|
40796
|
-
exports.FormSelect = FormSelect;
|
|
40877
|
+
exports.FormSelect = FormSelect$1;
|
|
40797
40878
|
exports.FormattedAddress = FormattedAddress$1;
|
|
40798
40879
|
exports.FormattedCreditCard = FormattedCreditCard$1;
|
|
40799
40880
|
exports.Frame = Frame;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
CHARADE_GREY,
|
|
3
3
|
MATISSE_BLUE,
|
|
4
4
|
WHITE,
|
|
5
5
|
SEASHELL_WHITE,
|
|
@@ -23,7 +23,7 @@ const inputBackgroundColor = {
|
|
|
23
23
|
disabled: `${SEASHELL_WHITE}`
|
|
24
24
|
};
|
|
25
25
|
const color = { default: `${MINESHAFT_GREY}`, disabled: `${DUSTY_GREY}` };
|
|
26
|
-
const labelColor = { default: `${
|
|
26
|
+
const labelColor = { default: `${CHARADE_GREY}`, disabled: `${CHARADE_GREY}` };
|
|
27
27
|
const borderColor = { default: `${GREY_CHATEAU}`, disabled: `${GREY_CHATEAU}` };
|
|
28
28
|
const lineHeight = { default: "1rem", disabled: "1rem" };
|
|
29
29
|
const fontSize = { default: "0.875rem", disabled: "0.875rem" };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from "react";
|
|
2
2
|
import Dropdown from "../dropdown";
|
|
3
3
|
import Text from "../text";
|
|
4
|
-
import {
|
|
4
|
+
import { ERROR_COLOR } from "../../../constants/colors";
|
|
5
5
|
import { SelectContainer, SelectLabel } from "./FormSelect.styled";
|
|
6
|
+
import { fallbackValues } from "./FormSelect.theme";
|
|
7
|
+
import { themeComponent } from "../../../util/themeUtils";
|
|
8
|
+
import { Box, Cluster } from "../layouts";
|
|
6
9
|
|
|
7
10
|
const FormSelect = ({
|
|
8
11
|
fieldActions,
|
|
@@ -12,7 +15,9 @@ const FormSelect = ({
|
|
|
12
15
|
field,
|
|
13
16
|
showErrors,
|
|
14
17
|
onChange,
|
|
15
|
-
dropdownMaxHeight
|
|
18
|
+
dropdownMaxHeight,
|
|
19
|
+
disabledValues,
|
|
20
|
+
themeValues
|
|
16
21
|
}) => {
|
|
17
22
|
const [open, setOpen] = useState(false);
|
|
18
23
|
const dropdownRef = useRef(null);
|
|
@@ -32,33 +37,63 @@ const FormSelect = ({
|
|
|
32
37
|
|
|
33
38
|
return (
|
|
34
39
|
<SelectContainer ref={dropdownRef}>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
<Box padding="0" minWidth="100%">
|
|
41
|
+
<Cluster justify="space-between" align="center">
|
|
42
|
+
<Text
|
|
43
|
+
as="label"
|
|
44
|
+
variant="pS"
|
|
45
|
+
color={themeValues.labelColor}
|
|
46
|
+
weight={themeValues.fontWeight}
|
|
47
|
+
extraStyles={`word-break: break-word;
|
|
48
|
+
font-family: Public Sans;
|
|
49
|
+
&::first-letter {
|
|
50
|
+
text-transform: uppercase;
|
|
51
|
+
}`}
|
|
52
|
+
>
|
|
53
|
+
{labelTextWhenNoError}
|
|
54
|
+
</Text>
|
|
55
|
+
</Cluster>
|
|
56
|
+
</Box>
|
|
43
57
|
<Dropdown
|
|
44
58
|
maxHeight={dropdownMaxHeight}
|
|
45
59
|
placeholder={options[0] ? options[0].text : ""}
|
|
46
60
|
options={options}
|
|
47
61
|
value={field.rawValue}
|
|
62
|
+
disabledValues={disabledValues}
|
|
48
63
|
isOpen={open}
|
|
49
|
-
isError={
|
|
64
|
+
isError={
|
|
65
|
+
(field.hasErrors && field.dirty) || (field.hasErrors && showErrors)
|
|
66
|
+
}
|
|
50
67
|
onSelect={
|
|
51
68
|
onChange ? value => onChange(value) : value => fieldActions.set(value)
|
|
52
69
|
}
|
|
53
70
|
onClick={() => setOpen(!open)}
|
|
54
71
|
/>
|
|
55
72
|
<SelectLabel field={field} showErrors={showErrors}>
|
|
56
|
-
{(field.hasErrors && field.dirty) || (field.hasErrors && showErrors)
|
|
57
|
-
|
|
58
|
-
|
|
73
|
+
{(field.hasErrors && field.dirty) || (field.hasErrors && showErrors) ? (
|
|
74
|
+
<Text
|
|
75
|
+
color={ERROR_COLOR}
|
|
76
|
+
variant="pXS"
|
|
77
|
+
weight={themeValues.fontWeight}
|
|
78
|
+
extraStyles={`word-break: break-word;
|
|
79
|
+
font-family: Public Sans;
|
|
80
|
+
&::first-letter {
|
|
81
|
+
text-transform: uppercase;
|
|
82
|
+
}`}
|
|
83
|
+
>
|
|
84
|
+
{errorMessages[field.errors[0]]}
|
|
85
|
+
</Text>
|
|
86
|
+
) : (
|
|
87
|
+
<Text extraStyles={`height: ${themeValues.lineHeight};`} />
|
|
88
|
+
)}
|
|
59
89
|
</SelectLabel>
|
|
60
90
|
</SelectContainer>
|
|
61
91
|
);
|
|
62
92
|
};
|
|
63
93
|
|
|
64
|
-
export default
|
|
94
|
+
export default themeComponent(
|
|
95
|
+
FormSelect,
|
|
96
|
+
"FormSelect",
|
|
97
|
+
fallbackValues,
|
|
98
|
+
"default"
|
|
99
|
+
);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
|
-
import { boolean } from "@storybook/addon-knobs";
|
|
4
3
|
import { createFormState, required } from "redux-freeform";
|
|
5
4
|
|
|
6
5
|
import FormSelect from "./FormSelect";
|
|
@@ -18,7 +17,8 @@ const options = [
|
|
|
18
17
|
{ value: "", text: "choose name" },
|
|
19
18
|
{ value: "foo", text: "foo" },
|
|
20
19
|
{ value: "bar", text: "bar" },
|
|
21
|
-
{ value: "baz", text: "baz" }
|
|
20
|
+
{ value: "baz", text: "baz" },
|
|
21
|
+
{ value: "disabled", text: "disabled" }
|
|
22
22
|
];
|
|
23
23
|
|
|
24
24
|
const story = page({
|
|
@@ -32,10 +32,12 @@ const story = page({
|
|
|
32
32
|
|
|
33
33
|
const FormWrapper = ({ fields, actions }) => (
|
|
34
34
|
<FormSelect
|
|
35
|
+
labelTextWhenNoError="Form Select"
|
|
35
36
|
errorMessages={errorMessages}
|
|
36
37
|
options={options}
|
|
37
38
|
field={fields.thing}
|
|
38
39
|
fieldActions={actions.fields.thing}
|
|
40
|
+
disabledValues={["disabled"]}
|
|
39
41
|
/>
|
|
40
42
|
);
|
|
41
43
|
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import {
|
|
3
|
-
MINESHAFT_GREY,
|
|
4
3
|
STORM_GREY,
|
|
5
|
-
WHITE,
|
|
6
|
-
SEASHELL_WHITE,
|
|
7
|
-
DUSTY_GREY,
|
|
8
4
|
GHOST_GREY,
|
|
9
5
|
ERROR_COLOR,
|
|
10
6
|
MATISSE_BLUE
|
|
@@ -17,6 +13,9 @@ export const SelectContainer = styled.div`
|
|
|
17
13
|
flex-direction: column;
|
|
18
14
|
justify-content: space-between;
|
|
19
15
|
align-items: flex-start;
|
|
16
|
+
> * + * {
|
|
17
|
+
margin-top: 0.25rem;
|
|
18
|
+
}
|
|
20
19
|
`;
|
|
21
20
|
|
|
22
21
|
export const SelectLabel = styled.label`
|
|
@@ -53,8 +52,9 @@ export const SelectField = styled.select`
|
|
|
53
52
|
font-family: Public Sans;
|
|
54
53
|
line-height: 2rem;
|
|
55
54
|
font-weight: ${FONT_WEIGHT_REGULAR};
|
|
56
|
-
background-color: ${({
|
|
57
|
-
|
|
55
|
+
background-color: ${({ themeValues }) =>
|
|
56
|
+
themeValues.inputBackgroundColor && themeValues.inputBackgroundColor};
|
|
57
|
+
color: ${({ themeValues }) => themeValues.color && themeValues.color};
|
|
58
58
|
box-shadow: none;
|
|
59
59
|
|
|
60
60
|
&:focus {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CHARADE_GREY,
|
|
3
|
+
MATISSE_BLUE,
|
|
4
|
+
WHITE,
|
|
5
|
+
SEASHELL_WHITE,
|
|
6
|
+
MINESHAFT_GREY,
|
|
7
|
+
DUSTY_GREY,
|
|
8
|
+
GREY_CHATEAU,
|
|
9
|
+
ATHENS_GREY
|
|
10
|
+
} from "../../../constants/colors";
|
|
11
|
+
import { FONT_WEIGHT_REGULAR } from "../../../constants/style_constants";
|
|
12
|
+
|
|
13
|
+
const linkColor = { default: `${MATISSE_BLUE}`, disabled: `${MATISSE_BLUE}` };
|
|
14
|
+
const formBackgroundColor = {
|
|
15
|
+
default: `${WHITE}`,
|
|
16
|
+
disabled: `${WHITE}`,
|
|
17
|
+
checkout: `${ATHENS_GREY}`,
|
|
18
|
+
collapsible: `${ATHENS_GREY}`
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const inputBackgroundColor = {
|
|
22
|
+
default: `${WHITE}`,
|
|
23
|
+
disabled: `${SEASHELL_WHITE}`
|
|
24
|
+
};
|
|
25
|
+
const color = { default: `${MINESHAFT_GREY}`, disabled: `${DUSTY_GREY}` };
|
|
26
|
+
const labelColor = { default: `${CHARADE_GREY}`, disabled: `${CHARADE_GREY}` };
|
|
27
|
+
const borderColor = { default: `${GREY_CHATEAU}`, disabled: `${GREY_CHATEAU}` };
|
|
28
|
+
const lineHeight = { default: "1rem", disabled: "1rem" };
|
|
29
|
+
const fontSize = { default: "0.875rem", disabled: "0.875rem" };
|
|
30
|
+
const errorFontSize = { default: "0.75rem", disabled: "0.75rem" };
|
|
31
|
+
const fontWeight = {
|
|
32
|
+
default: `${FONT_WEIGHT_REGULAR}`,
|
|
33
|
+
disabled: `${FONT_WEIGHT_REGULAR}`
|
|
34
|
+
};
|
|
35
|
+
const hoverFocusStyles = {
|
|
36
|
+
default: `color: #0E506D; outline: none; text-decoration: underline; `,
|
|
37
|
+
disabled: `color: #6E727E;`
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const fallbackValues = {
|
|
41
|
+
linkColor,
|
|
42
|
+
formBackgroundColor,
|
|
43
|
+
inputBackgroundColor,
|
|
44
|
+
color,
|
|
45
|
+
labelColor,
|
|
46
|
+
borderColor,
|
|
47
|
+
lineHeight,
|
|
48
|
+
fontSize,
|
|
49
|
+
errorFontSize,
|
|
50
|
+
fontWeight,
|
|
51
|
+
hoverFocusStyles
|
|
52
|
+
};
|
|
@@ -3,7 +3,7 @@ import { repeat } from "ramda";
|
|
|
3
3
|
|
|
4
4
|
import { fallbackValues } from "./HighlightTabRow.theme";
|
|
5
5
|
import { themeComponent } from "../../../util/themeUtils";
|
|
6
|
-
import { Reel, Box } from "../../atoms/layouts";
|
|
6
|
+
import { Reel, Box, Center } from "../../atoms/layouts";
|
|
7
7
|
import Text from "../../atoms/text";
|
|
8
8
|
import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
|
|
9
9
|
|
|
@@ -28,37 +28,39 @@ const HighlightTabRow = ({ tabs, highlightIndex, themeValues, isMobile }) => {
|
|
|
28
28
|
role="region"
|
|
29
29
|
aria-label="Payment step"
|
|
30
30
|
>
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<Text
|
|
50
|
-
variant="p"
|
|
51
|
-
textAlign="center"
|
|
52
|
-
color={themeValues.textColor}
|
|
53
|
-
weight={FONT_WEIGHT_SEMIBOLD}
|
|
54
|
-
extraStyles="display: block; white-space: nowrap;"
|
|
31
|
+
<Center maxWidth="76.5rem">
|
|
32
|
+
<Reel
|
|
33
|
+
padding="0"
|
|
34
|
+
childGap="4.5rem"
|
|
35
|
+
childWidth="11rem"
|
|
36
|
+
justifyContent="space-evenly"
|
|
37
|
+
disableScroll
|
|
38
|
+
>
|
|
39
|
+
{repeat(<Box />, boxesBefore)}
|
|
40
|
+
{tabs.map((t, i) => (
|
|
41
|
+
<Box
|
|
42
|
+
key={t}
|
|
43
|
+
borderSize="3px"
|
|
44
|
+
borderColor={
|
|
45
|
+
highlightIndex == i ? themeValues.textColor : "transparent"
|
|
46
|
+
}
|
|
47
|
+
borderWidthOverride="0 0 3px 0"
|
|
48
|
+
extraStyles="text-align: center;"
|
|
55
49
|
>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
50
|
+
<Text
|
|
51
|
+
variant="p"
|
|
52
|
+
textAlign="center"
|
|
53
|
+
color={themeValues.textColor}
|
|
54
|
+
weight={FONT_WEIGHT_SEMIBOLD}
|
|
55
|
+
extraStyles="display: block; white-space: nowrap;"
|
|
56
|
+
>
|
|
57
|
+
{t}
|
|
58
|
+
</Text>
|
|
59
|
+
</Box>
|
|
60
|
+
))}
|
|
61
|
+
{repeat(<Box />, boxesAfter)}
|
|
62
|
+
</Reel>
|
|
63
|
+
</Center>
|
|
62
64
|
</Box>
|
|
63
65
|
);
|
|
64
66
|
};
|