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