@thecb/components 5.9.0-beta.2 → 5.9.0-beta.5
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 +28 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +28 -18
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/add-obligation/AddObligation.js +3 -1
- package/src/components/atoms/amount-callout/AmountCallout.theme.js +1 -1
- package/src/components/atoms/button-with-action/ButtonWithAction.js +2 -0
- package/src/components/atoms/layouts/Cluster.js +1 -1
- package/src/components/atoms/layouts/Cluster.styled.js +1 -1
- package/src/components/atoms/text/Text.js +2 -0
- package/src/components/atoms/text/Text.styled.js +1 -0
- package/src/components/molecules/obligation/modules/InactiveControlsModule.js +0 -1
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5005,7 +5005,7 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
5005
5005
|
var TextSpan = styled__default.span.withConfig({
|
|
5006
5006
|
displayName: "Textstyled__TextSpan",
|
|
5007
5007
|
componentId: "sc-1oy97we-0"
|
|
5008
|
-
})(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
|
|
5008
|
+
})(["--font-size:", ";font-size:var(--font-size);line-height:calc(1.5 * var(--font-size));font-weight:", ";font-family:", ";color:", ";white-space:", ";&:hover{", "}&:focus{outline:3px solid ", ";outline-offset:2px;}", " ", ""], function (_ref) {
|
|
5009
5009
|
var fontSize = _ref.fontSize;
|
|
5010
5010
|
return fontSize;
|
|
5011
5011
|
}, function (_ref2) {
|
|
@@ -5018,14 +5018,17 @@ var TextSpan = styled__default.span.withConfig({
|
|
|
5018
5018
|
var color = _ref4.color;
|
|
5019
5019
|
return color;
|
|
5020
5020
|
}, function (_ref5) {
|
|
5021
|
-
var
|
|
5021
|
+
var $textWrap = _ref5.$textWrap;
|
|
5022
|
+
return $textWrap ? "initial" : "nowrap";
|
|
5023
|
+
}, function (_ref6) {
|
|
5024
|
+
var hoverStyles = _ref6.hoverStyles;
|
|
5022
5025
|
return styled.css(["", ""], hoverStyles);
|
|
5023
|
-
}, ROYAL_BLUE, function (
|
|
5024
|
-
var disabled =
|
|
5025
|
-
disabledStyles =
|
|
5026
|
+
}, ROYAL_BLUE, function (_ref7) {
|
|
5027
|
+
var disabled = _ref7.disabled,
|
|
5028
|
+
disabledStyles = _ref7.disabledStyles;
|
|
5026
5029
|
return disabled && styled.css(["", ""], disabledStyles);
|
|
5027
|
-
}, function (
|
|
5028
|
-
var extraStyles =
|
|
5030
|
+
}, function (_ref8) {
|
|
5031
|
+
var extraStyles = _ref8.extraStyles;
|
|
5029
5032
|
return extraStyles;
|
|
5030
5033
|
});
|
|
5031
5034
|
|
|
@@ -6157,7 +6160,7 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6157
6160
|
screenReaderOnlyStyle: screenReaderOnlyStyle
|
|
6158
6161
|
});
|
|
6159
6162
|
|
|
6160
|
-
var _excluded$1 = ["themeValues", "weight", "color", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
6163
|
+
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
|
|
6161
6164
|
|
|
6162
6165
|
var Text = function Text(_ref) {
|
|
6163
6166
|
var themeValues = _ref.themeValues,
|
|
@@ -6165,6 +6168,8 @@ var Text = function Text(_ref) {
|
|
|
6165
6168
|
weight = _ref$weight === void 0 ? FONT_WEIGHT_REGULAR : _ref$weight,
|
|
6166
6169
|
_ref$color = _ref.color,
|
|
6167
6170
|
color = _ref$color === void 0 ? FIREFLY_GREY : _ref$color,
|
|
6171
|
+
_ref$textWrap = _ref.textWrap,
|
|
6172
|
+
textWrap = _ref$textWrap === void 0 ? true : _ref$textWrap,
|
|
6168
6173
|
_ref$extraStyles = _ref.extraStyles,
|
|
6169
6174
|
extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
|
|
6170
6175
|
hoverStyles = _ref.hoverStyles,
|
|
@@ -6185,7 +6190,8 @@ var Text = function Text(_ref) {
|
|
|
6185
6190
|
hoverStyles: hoverStyles,
|
|
6186
6191
|
onClick: onClick,
|
|
6187
6192
|
onKeyPress: onKeyPress,
|
|
6188
|
-
"data-qa": dataQa
|
|
6193
|
+
"data-qa": dataQa,
|
|
6194
|
+
$textWrap: textWrap
|
|
6189
6195
|
}, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
|
|
6190
6196
|
};
|
|
6191
6197
|
|
|
@@ -6447,8 +6453,8 @@ var ClusterInnerWrapper = styled__default.div.withConfig({
|
|
|
6447
6453
|
displayName: "Clusterstyled__ClusterInnerWrapper",
|
|
6448
6454
|
componentId: "sc-1dkqsm7-1"
|
|
6449
6455
|
})(["box-sizing:border-box;display:flex;flex-wrap:", ";justify-content:", ";align-items:", ";margin:calc(", " / 2 * -1);min-height:", ";min-width:", ";> *{margin:calc(", " / 2);}"], function (_ref7) {
|
|
6450
|
-
var nowrap = _ref7
|
|
6451
|
-
return nowrap ? "nowrap" : "wrap";
|
|
6456
|
+
var $nowrap = _ref7.$nowrap;
|
|
6457
|
+
return $nowrap ? "nowrap" : "wrap";
|
|
6452
6458
|
}, function (_ref8) {
|
|
6453
6459
|
var justify = _ref8.justify;
|
|
6454
6460
|
return justify;
|
|
@@ -6508,7 +6514,7 @@ var Cluster = function Cluster(_ref) {
|
|
|
6508
6514
|
childGap: childGap,
|
|
6509
6515
|
minHeight: minHeight,
|
|
6510
6516
|
minWidth: minWidth,
|
|
6511
|
-
nowrap: nowrap
|
|
6517
|
+
$nowrap: nowrap
|
|
6512
6518
|
}, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
|
|
6513
6519
|
};
|
|
6514
6520
|
|
|
@@ -12515,7 +12521,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
|
|
|
12515
12521
|
}))))));
|
|
12516
12522
|
};
|
|
12517
12523
|
|
|
12518
|
-
var _excluded$h = ["action", "variant", "text", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children"];
|
|
12524
|
+
var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children"];
|
|
12519
12525
|
var rotate$1 = posed.div({
|
|
12520
12526
|
fixed: {
|
|
12521
12527
|
rotate: "0deg"
|
|
@@ -12572,6 +12578,8 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12572
12578
|
_ref2$variant = _ref2.variant,
|
|
12573
12579
|
variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
|
|
12574
12580
|
text = _ref2.text,
|
|
12581
|
+
_ref2$textWrap = _ref2.textWrap,
|
|
12582
|
+
textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
|
|
12575
12583
|
_ref2$isLoading = _ref2.isLoading,
|
|
12576
12584
|
isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
|
|
12577
12585
|
_ref2$dataQa = _ref2.dataQa,
|
|
@@ -12616,6 +12624,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
|
|
|
12616
12624
|
weight: themeValues.fontWeight,
|
|
12617
12625
|
variant: themeValues.fontSizeVariant,
|
|
12618
12626
|
color: themeValues.color,
|
|
12627
|
+
textWrap: textWrap,
|
|
12619
12628
|
extraStyles: textExtraStyles
|
|
12620
12629
|
}, text)));
|
|
12621
12630
|
};
|
|
@@ -15355,7 +15364,8 @@ var AddObligation = function AddObligation(_ref) {
|
|
|
15355
15364
|
action = _ref.action,
|
|
15356
15365
|
themeValues = _ref.themeValues,
|
|
15357
15366
|
extraStyles = _ref.extraStyles,
|
|
15358
|
-
textExtraStyles = _ref.textExtraStyles
|
|
15367
|
+
textExtraStyles = _ref.textExtraStyles,
|
|
15368
|
+
dataQa = _ref.dataQa;
|
|
15359
15369
|
var hoverStyles = "\n &:hover {\n .fill { fill: ".concat(themeValues.hoverColor, "; }\n .stroke { stroke: ").concat(themeValues.hoverColor, "; }\n button { text-decoration: underline; text-decoration-color: ").concat(themeValues.hoverColor, "; }\n span { color: ").concat(themeValues.hoverColor, "; }\n }");
|
|
15360
15370
|
var activeStyles = "\n &:active {\n .fill { fill: ".concat(themeValues.activeColor, "; }\n .stroke { stroke: ").concat(themeValues.activeColor, "; }\n button { text-decoration: underline; text-decoration-color: ").concat(themeValues.activeColor, "; }\n span { color: ").concat(themeValues.activeColor, "; }\n }");
|
|
15361
15371
|
var defaultStyles = "\n min-height: 0;\n .fill { fill: ".concat(themeValues.color, "; }\n .stroke { stroke: ").concat(themeValues.color, "; }\n &:focus {\n outline: 3px solid ").concat(ROYAL_BLUE, ";\n outline-offset: 2px;\n }\n ");
|
|
@@ -15366,7 +15376,8 @@ var AddObligation = function AddObligation(_ref) {
|
|
|
15366
15376
|
activeStyles: activeStyles,
|
|
15367
15377
|
extraStyles: defaultStyles,
|
|
15368
15378
|
onClick: action,
|
|
15369
|
-
tabIndex: "0"
|
|
15379
|
+
tabIndex: "0",
|
|
15380
|
+
dataQa: dataQa
|
|
15370
15381
|
}, /*#__PURE__*/React__default.createElement(Cover, {
|
|
15371
15382
|
singleChild: true,
|
|
15372
15383
|
minHeight: "100%"
|
|
@@ -15978,7 +15989,7 @@ var Title = function Title(_ref) {
|
|
|
15978
15989
|
|
|
15979
15990
|
var Title$1 = themeComponent(Title, "Title", fallbacks, "large");
|
|
15980
15991
|
|
|
15981
|
-
var color$3 = "#
|
|
15992
|
+
var color$3 = "#292A33";
|
|
15982
15993
|
var fallbackValues$6 = {
|
|
15983
15994
|
color: color$3
|
|
15984
15995
|
};
|
|
@@ -39500,7 +39511,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
39500
39511
|
variant: "tertiary",
|
|
39501
39512
|
text: "Set Up ".concat(planType),
|
|
39502
39513
|
action: function action() {
|
|
39503
|
-
setDetailedObligation(obligations, config);
|
|
39514
|
+
setDetailedObligation(obligations, config, obligationAssocID);
|
|
39504
39515
|
handleAutopayAction();
|
|
39505
39516
|
},
|
|
39506
39517
|
dataQa: "Set Up Autopay",
|
|
@@ -39608,7 +39619,6 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
39608
39619
|
agencyName = _ref.agencyName,
|
|
39609
39620
|
configType = _ref.configType,
|
|
39610
39621
|
actions = _ref.actions;
|
|
39611
|
-
console.log("actions are", actions);
|
|
39612
39622
|
|
|
39613
39623
|
var _useState = React.useState(false),
|
|
39614
39624
|
_useState2 = _slicedToArray(_useState, 2),
|