@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.esm.js CHANGED
@@ -4997,7 +4997,7 @@ var colors = /*#__PURE__*/Object.freeze({
4997
4997
  var TextSpan = styled.span.withConfig({
4998
4998
  displayName: "Textstyled__TextSpan",
4999
4999
  componentId: "sc-1oy97we-0"
5000
- })(["--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) {
5000
+ })(["--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) {
5001
5001
  var fontSize = _ref.fontSize;
5002
5002
  return fontSize;
5003
5003
  }, function (_ref2) {
@@ -5010,14 +5010,17 @@ var TextSpan = styled.span.withConfig({
5010
5010
  var color = _ref4.color;
5011
5011
  return color;
5012
5012
  }, function (_ref5) {
5013
- var hoverStyles = _ref5.hoverStyles;
5013
+ var $textWrap = _ref5.$textWrap;
5014
+ return $textWrap ? "initial" : "nowrap";
5015
+ }, function (_ref6) {
5016
+ var hoverStyles = _ref6.hoverStyles;
5014
5017
  return css(["", ""], hoverStyles);
5015
- }, ROYAL_BLUE, function (_ref6) {
5016
- var disabled = _ref6.disabled,
5017
- disabledStyles = _ref6.disabledStyles;
5018
+ }, ROYAL_BLUE, function (_ref7) {
5019
+ var disabled = _ref7.disabled,
5020
+ disabledStyles = _ref7.disabledStyles;
5018
5021
  return disabled && css(["", ""], disabledStyles);
5019
- }, function (_ref7) {
5020
- var extraStyles = _ref7.extraStyles;
5022
+ }, function (_ref8) {
5023
+ var extraStyles = _ref8.extraStyles;
5021
5024
  return extraStyles;
5022
5025
  });
5023
5026
 
@@ -6149,7 +6152,7 @@ var general = /*#__PURE__*/Object.freeze({
6149
6152
  screenReaderOnlyStyle: screenReaderOnlyStyle
6150
6153
  });
6151
6154
 
6152
- var _excluded$1 = ["themeValues", "weight", "color", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
6155
+ var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children"];
6153
6156
 
6154
6157
  var Text = function Text(_ref) {
6155
6158
  var themeValues = _ref.themeValues,
@@ -6157,6 +6160,8 @@ var Text = function Text(_ref) {
6157
6160
  weight = _ref$weight === void 0 ? FONT_WEIGHT_REGULAR : _ref$weight,
6158
6161
  _ref$color = _ref.color,
6159
6162
  color = _ref$color === void 0 ? FIREFLY_GREY : _ref$color,
6163
+ _ref$textWrap = _ref.textWrap,
6164
+ textWrap = _ref$textWrap === void 0 ? true : _ref$textWrap,
6160
6165
  _ref$extraStyles = _ref.extraStyles,
6161
6166
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles,
6162
6167
  hoverStyles = _ref.hoverStyles,
@@ -6177,7 +6182,8 @@ var Text = function Text(_ref) {
6177
6182
  hoverStyles: hoverStyles,
6178
6183
  onClick: onClick,
6179
6184
  onKeyPress: onKeyPress,
6180
- "data-qa": dataQa
6185
+ "data-qa": dataQa,
6186
+ $textWrap: textWrap
6181
6187
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
6182
6188
  };
6183
6189
 
@@ -12507,7 +12513,7 @@ var SpinnerIcon = function SpinnerIcon(_ref3) {
12507
12513
  }))))));
12508
12514
  };
12509
12515
 
12510
- var _excluded$h = ["action", "variant", "text", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children"];
12516
+ var _excluded$h = ["action", "variant", "text", "textWrap", "isLoading", "dataQa", "textExtraStyles", "contentOverride", "extraStyles", "tabIndex", "children"];
12511
12517
  var rotate$1 = posed.div({
12512
12518
  fixed: {
12513
12519
  rotate: "0deg"
@@ -12564,6 +12570,8 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
12564
12570
  _ref2$variant = _ref2.variant,
12565
12571
  variant = _ref2$variant === void 0 ? "primary" : _ref2$variant,
12566
12572
  text = _ref2.text,
12573
+ _ref2$textWrap = _ref2.textWrap,
12574
+ textWrap = _ref2$textWrap === void 0 ? false : _ref2$textWrap,
12567
12575
  _ref2$isLoading = _ref2.isLoading,
12568
12576
  isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
12569
12577
  _ref2$dataQa = _ref2.dataQa,
@@ -12608,6 +12616,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
12608
12616
  weight: themeValues.fontWeight,
12609
12617
  variant: themeValues.fontSizeVariant,
12610
12618
  color: themeValues.color,
12619
+ textWrap: textWrap,
12611
12620
  extraStyles: textExtraStyles
12612
12621
  }, text)));
12613
12622
  };
@@ -15970,7 +15979,7 @@ var Title = function Title(_ref) {
15970
15979
 
15971
15980
  var Title$1 = themeComponent(Title, "Title", fallbacks, "large");
15972
15981
 
15973
- var color$3 = "#15749D";
15982
+ var color$3 = "#292A33";
15974
15983
  var fallbackValues$6 = {
15975
15984
  color: color$3
15976
15985
  };
@@ -16937,6 +16946,7 @@ var ExternalLink = function ExternalLink(_ref) {
16937
16946
  variant = _ref$variant === void 0 ? "primary" : _ref$variant,
16938
16947
  _ref$tabIndex = _ref.tabIndex,
16939
16948
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
16949
+ dataQa = _ref.dataQa,
16940
16950
  children = _ref.children;
16941
16951
  var themeContext = useContext(ThemeContext);
16942
16952
  var themeValues = createThemeValues(themeContext, fallbackValues$9, "Link", variant);
@@ -16952,7 +16962,8 @@ var ExternalLink = function ExternalLink(_ref) {
16952
16962
  fontFamily: themeValues.fontFamily,
16953
16963
  tabIndex: tabIndex,
16954
16964
  extrastyles: extraStyles,
16955
- rel: newTab ? "noopener" : ""
16965
+ rel: newTab ? "noopener" : "",
16966
+ "data-qa": dataQa
16956
16967
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
16957
16968
  };
16958
16969
 
@@ -17022,6 +17033,7 @@ var InternalLink = function InternalLink(_ref) {
17022
17033
  margin = _ref.margin,
17023
17034
  _ref$tabIndex = _ref.tabIndex,
17024
17035
  tabIndex = _ref$tabIndex === void 0 ? "0" : _ref$tabIndex,
17036
+ dataQa = _ref.dataQa,
17025
17037
  _ref$extraStyles = _ref.extraStyles,
17026
17038
  extraStyles = _ref$extraStyles === void 0 ? "" : _ref$extraStyles;
17027
17039
  var themeContext = useContext(ThemeContext);
@@ -17038,7 +17050,8 @@ var InternalLink = function InternalLink(_ref) {
17038
17050
  hoverColor: themeValues.hoverColor,
17039
17051
  activeColor: themeValues.activeColor,
17040
17052
  tabIndex: tabIndex,
17041
- extrastyles: extraStyles
17053
+ extrastyles: extraStyles,
17054
+ "data-qa": dataQa
17042
17055
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
17043
17056
  };
17044
17057
 
@@ -18651,7 +18664,7 @@ _curry2(function test(pattern, str) {
18651
18664
 
18652
18665
  var URL_TEST = /(([a-z]{3,6}:\/\/)|(^|\s))([a-zA-Z0-9\-]+\.)+[a-z]{2,13}[\.\?\=\&\%\/\w\-]*\b([^@]|$)/;
18653
18666
 
18654
- var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab"];
18667
+ var _excluded$m = ["url", "disabled", "fileLink", "extraStyles", "linkExtraStyles", "newTab", "dataQa"];
18655
18668
 
18656
18669
  var ButtonWithLink = function ButtonWithLink(_ref) {
18657
18670
  var _ref$url = _ref.url,
@@ -18664,6 +18677,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18664
18677
  linkExtraStyles = _ref.linkExtraStyles,
18665
18678
  _ref$newTab = _ref.newTab,
18666
18679
  newTab = _ref$newTab === void 0 ? false : _ref$newTab,
18680
+ dataQa = _ref.dataQa,
18667
18681
  otherProps = _objectWithoutProperties(_ref, _excluded$m);
18668
18682
 
18669
18683
  var ButtonWithLinkWrapper = function ButtonWithLinkWrapper(_ref2) {
@@ -18671,6 +18685,7 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18671
18685
  url = _ref2.url,
18672
18686
  disabled = _ref2.disabled,
18673
18687
  newTab = _ref2.newTab,
18688
+ dataQa = _ref2.dataQa,
18674
18689
  extraStyles = _ref2.extraStyles;
18675
18690
 
18676
18691
  if (disabled) {
@@ -18681,10 +18696,12 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18681
18696
  href: url,
18682
18697
  tabIndex: "-1",
18683
18698
  newTab: newTab,
18684
- extraStyles: extraStyles
18699
+ extraStyles: extraStyles,
18700
+ dataQa: dataQa
18685
18701
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null))) : /*#__PURE__*/React.createElement(InternalLink, {
18686
18702
  to: url,
18687
18703
  tabIndex: "-1",
18704
+ dataQa: dataQa,
18688
18705
  extraStyles: extraStyles
18689
18706
  }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
18690
18707
  };
@@ -18693,7 +18710,8 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
18693
18710
  url: url,
18694
18711
  disabled: disabled,
18695
18712
  newTab: newTab,
18696
- extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }")
18713
+ extraStyles: "".concat(linkExtraStyles, " text-decoration: none; &:hover {\n text-decoration: none; }"),
18714
+ dataQa: dataQa
18697
18715
  }, /*#__PURE__*/React.createElement(ButtonWithAction, _extends({}, otherProps, {
18698
18716
  extraStyles: extraStyles
18699
18717
  })));
@@ -22105,7 +22123,7 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
22105
22123
  dataQa = _ref.dataQa;
22106
22124
  return isLink ? /*#__PURE__*/React.createElement(Link, {
22107
22125
  to: destination,
22108
- dataQa: dataQa
22126
+ "data-qa": dataQa
22109
22127
  }, /*#__PURE__*/React.createElement(Box, {
22110
22128
  padding: "0",
22111
22129
  minHeight: "100%",
@@ -39600,7 +39618,6 @@ var InactiveControlsModule = function InactiveControlsModule(_ref) {
39600
39618
  agencyName = _ref.agencyName,
39601
39619
  configType = _ref.configType,
39602
39620
  actions = _ref.actions;
39603
- console.log("actions are", actions);
39604
39621
 
39605
39622
  var _useState = useState(false),
39606
39623
  _useState2 = _slicedToArray(_useState, 2),
@@ -41763,7 +41780,8 @@ var WorkflowTile = function WorkflowTile(_ref) {
41763
41780
  minWidth: "100%",
41764
41781
  url: "/service/".concat(slug),
41765
41782
  extraStyles: "width: 100%;",
41766
- linkExtraStyles: "justify-content: center;"
41783
+ linkExtraStyles: "justify-content: center;",
41784
+ dataQa: slug
41767
41785
  }))));
41768
41786
  };
41769
41787