@thecb/components 5.9.0-beta.3 → 5.9.0-beta.6
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 +22 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +22 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- 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/placeholder/Placeholder.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/.DS_Store +0 -0
- package/src/components/molecules/.DS_Store +0 -0
- package/src/deprecated/.DS_Store +0 -0
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
|
|
|
@@ -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
|
};
|
|
@@ -15978,7 +15987,7 @@ var Title = function Title(_ref) {
|
|
|
15978
15987
|
|
|
15979
15988
|
var Title$1 = themeComponent(Title, "Title", fallbacks, "large");
|
|
15980
15989
|
|
|
15981
|
-
var color$3 = "#
|
|
15990
|
+
var color$3 = "#292A33";
|
|
15982
15991
|
var fallbackValues$6 = {
|
|
15983
15992
|
color: color$3
|
|
15984
15993
|
};
|
|
@@ -22113,7 +22122,7 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
|
|
|
22113
22122
|
dataQa = _ref.dataQa;
|
|
22114
22123
|
return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
22115
22124
|
to: destination,
|
|
22116
|
-
|
|
22125
|
+
"data-qa": dataQa
|
|
22117
22126
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
22118
22127
|
padding: "0",
|
|
22119
22128
|
minHeight: "100%",
|
|
@@ -39608,7 +39617,6 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
|
|
|
39608
39617
|
agencyName = _ref.agencyName,
|
|
39609
39618
|
configType = _ref.configType,
|
|
39610
39619
|
actions = _ref.actions;
|
|
39611
|
-
console.log("actions are", actions);
|
|
39612
39620
|
|
|
39613
39621
|
var _useState = React.useState(false),
|
|
39614
39622
|
_useState2 = _slicedToArray(_useState, 2),
|