@thecb/components 5.9.0-beta.4 → 5.9.0-beta.7

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 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 hoverStyles = _ref5.hoverStyles;
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 (_ref6) {
5024
- var disabled = _ref6.disabled,
5025
- disabledStyles = _ref6.disabledStyles;
5026
+ }, ROYAL_BLUE, function (_ref7) {
5027
+ var disabled = _ref7.disabled,
5028
+ disabledStyles = _ref7.disabledStyles;
5026
5029
  return disabled && styled.css(["", ""], disabledStyles);
5027
- }, function (_ref7) {
5028
- var extraStyles = _ref7.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
 
@@ -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 = "#15749D";
15990
+ var color$3 = "#292A33";
15982
15991
  var fallbackValues$6 = {
15983
15992
  color: color$3
15984
15993
  };
@@ -16945,6 +16954,7 @@ var ExternalLink = function ExternalLink(_ref) {
16945
16954
  variant = _ref$variant === void 0 ? "primary" : _ref$variant,
16946
16955
  _ref$tabIndex = _ref.tabIndex,
16947
16956
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
16957
+ dataQa = _ref.dataQa,
16948
16958
  children = _ref.children;
16949
16959
  var themeContext = React.useContext(styled.ThemeContext);
16950
16960
  var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
@@ -16960,7 +16970,8 @@ var ExternalLink = function ExternalLink(_ref) {
16960
16970
  fontFamily: themeValues.fontFamily,
16961
16971
  tabIndex: tabIndex,
16962
16972
  extrastyles: extraStyles,
16963
- rel: newTab ? "noopener" : ""
16973
+ rel: newTab ? "noopener" : "",
16974
+ "data-qa": dataQa
16964
16975
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
16965
16976
  };
16966
16977
 
@@ -17030,6 +17041,7 @@ var InternalLink = function InternalLink(_ref) {
17030
17041
  margin = _ref.margin,
17031
17042
  _ref$tabIndex = _ref.tabIndex,
17032
17043
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
17044
+ dataQa = _ref.dataQa,
17033
17045
  _ref$extraStyles = _ref.extraStyles,
17034
17046
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
17035
17047
  var themeContext = React.useContext(styled.ThemeContext);
@@ -17046,7 +17058,8 @@ var InternalLink = function InternalLink(_ref) {
17046
17058
  hoverColor: themeValues.hoverColor,
17047
17059
  activeColor: themeValues.activeColor,
17048
17060
  tabIndex: tabIndex,
17049
- extrastyles: extraStyles
17061
+ extrastyles: extraStyles,
17062
+ "data-qa": dataQa
17050
17063
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
17051
17064
  };
17052
17065
 
@@ -18659,7 +18672,7 @@ _curry2(function test(pattern, str) {
18659
18672
 
18660
18673
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
18661
18674
 
18662
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"];
18675
+ var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
18663
18676
 
18664
18677
  var ButtonWithLink = function ButtonWithLink(_ref) {
18665
18678
  var _ref$url = _ref.url,
@@ -18672,6 +18685,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18672
18685
  linkExtraStyles = _ref.linkExtraStyles,
18673
18686
  _ref$newTab = _ref.newTab,
18674
18687
  newTab = _ref$newTab === void 0 ? false : _ref$newTab,
18688
+ dataQa = _ref.dataQa,
18675
18689
  otherProps = _objectWithoutProperties(_ref, _excluded$m);
18676
18690
 
18677
18691
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
@@ -18679,6 +18693,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18679
18693
  url = _ref2.url,
18680
18694
  disabled = _ref2.disabled,
18681
18695
  newTab = _ref2.newTab,
18696
+ dataQa = _ref2.dataQa,
18682
18697
  extraStyles = _ref2.extraStyles;
18683
18698
 
18684
18699
  if (disabled) {
@@ -18689,10 +18704,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18689
18704
  href: url,
18690
18705
  tabIndex: "-1",
18691
18706
  newTab: newTab,
18692
- extraStyles: extraStyles
18707
+ extraStyles: extraStyles,
18708
+ dataQa: dataQa
18693
18709
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null))) : /*#__PURE__*/React__default.createElement(InternalLink, {
18694
18710
  to: url,
18695
18711
  tabIndex: "-1",
18712
+ dataQa: dataQa,
18696
18713
  extraStyles: extraStyles
18697
18714
  }, safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
18698
18715
  };
@@ -18701,7 +18718,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18701
18718
  url: url,
18702
18719
  disabled: disabled,
18703
18720
  newTab: newTab,
18704
- extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }")
18721
+ extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
18722
+ dataQa: dataQa
18705
18723
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, _extends({}, otherProps, {
18706
18724
  extraStyles: extraStyles
18707
18725
  })));
@@ -22113,7 +22131,7 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
22113
22131
  dataQa = _ref.dataQa;
22114
22132
  return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
22115
22133
  to: destination,
22116
- dataQa: dataQa
22134
+ "data-qa": dataQa
22117
22135
  }, /*#__PURE__*/React__default.createElement(Box, {
22118
22136
  padding: "0",
22119
22137
  minHeight: "100%",
@@ -39608,7 +39626,6 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
39608
39626
  agencyName = _ref.agencyName,
39609
39627
  configType = _ref.configType,
39610
39628
  actions = _ref.actions;
39611
- console.log("actions are", actions);
39612
39629
 
39613
39630
  var _useState = React.useState(false),
39614
39631
  _useState2 = _slicedToArray(_useState, 2),
@@ -41771,7 +41788,8 @@ var WorkflowTile = function WorkflowTile(_ref) {
41771
41788
  minWidth: "100%",
41772
41789
  url: "/service/".concat(slug),
41773
41790
  extraStyles: "width: 100%;",
41774
- linkExtraStyles: "justify-content: center;"
41791
+ linkExtraStyles: "justify-content: center;",
41792
+ dataQa: slug
41775
41793
  }))));
41776
41794
  };
41777
41795