@thecb/components 11.6.5-beta.1 → 11.6.6-beta.0

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.d.ts CHANGED
@@ -67,7 +67,6 @@ declare const ROYAL_BLUE_VIVID: Color;
67
67
  declare const ASTRAL_BLUE: Color;
68
68
  declare const SAPPHIRE_BLUE: Color;
69
69
  declare const PEACOCK_BLUE: Color;
70
- declare const HAWKES_BLUE: Color;
71
70
 
72
71
  // GREEN
73
72
  declare const FOREST_GREEN: Color;
@@ -99,9 +98,6 @@ declare const FANTASY_RED: Color;
99
98
  declare const COSMOS_RED: Color;
100
99
  declare const BLUSH_RED: Color;
101
100
 
102
- // PURPLE
103
- declare const LUCKY_POINT: Color;
104
-
105
101
  declare const ERROR_COLOR: Color;
106
102
  declare const ERROR_BACKGROUND_COLOR: Color;
107
103
 
@@ -185,7 +181,6 @@ declare const colors_d_ROYAL_BLUE_VIVID: typeof ROYAL_BLUE_VIVID;
185
181
  declare const colors_d_ASTRAL_BLUE: typeof ASTRAL_BLUE;
186
182
  declare const colors_d_SAPPHIRE_BLUE: typeof SAPPHIRE_BLUE;
187
183
  declare const colors_d_PEACOCK_BLUE: typeof PEACOCK_BLUE;
188
- declare const colors_d_HAWKES_BLUE: typeof HAWKES_BLUE;
189
184
  declare const colors_d_FOREST_GREEN: typeof FOREST_GREEN;
190
185
  declare const colors_d_MEADOW_GREEN: typeof MEADOW_GREEN;
191
186
  declare const colors_d_POLAR_GREEN: typeof POLAR_GREEN;
@@ -208,7 +203,6 @@ declare const colors_d_RASPBERRY: typeof RASPBERRY;
208
203
  declare const colors_d_FANTASY_RED: typeof FANTASY_RED;
209
204
  declare const colors_d_COSMOS_RED: typeof COSMOS_RED;
210
205
  declare const colors_d_BLUSH_RED: typeof BLUSH_RED;
211
- declare const colors_d_LUCKY_POINT: typeof LUCKY_POINT;
212
206
  declare const colors_d_ERROR_COLOR: typeof ERROR_COLOR;
213
207
  declare const colors_d_ERROR_BACKGROUND_COLOR: typeof ERROR_BACKGROUND_COLOR;
214
208
  declare const colors_d_ALERT_COLORS: typeof ALERT_COLORS;
@@ -267,7 +261,6 @@ declare namespace colors_d {
267
261
  colors_d_ASTRAL_BLUE as ASTRAL_BLUE,
268
262
  colors_d_SAPPHIRE_BLUE as SAPPHIRE_BLUE,
269
263
  colors_d_PEACOCK_BLUE as PEACOCK_BLUE,
270
- colors_d_HAWKES_BLUE as HAWKES_BLUE,
271
264
  colors_d_FOREST_GREEN as FOREST_GREEN,
272
265
  colors_d_MEADOW_GREEN as MEADOW_GREEN,
273
266
  colors_d_POLAR_GREEN as POLAR_GREEN,
@@ -290,7 +283,6 @@ declare namespace colors_d {
290
283
  colors_d_FANTASY_RED as FANTASY_RED,
291
284
  colors_d_COSMOS_RED as COSMOS_RED,
292
285
  colors_d_BLUSH_RED as BLUSH_RED,
293
- colors_d_LUCKY_POINT as LUCKY_POINT,
294
286
  colors_d_ERROR_COLOR as ERROR_COLOR,
295
287
  colors_d_ERROR_BACKGROUND_COLOR as ERROR_BACKGROUND_COLOR,
296
288
  colors_d_ALERT_COLORS as ALERT_COLORS,
package/dist/index.esm.js CHANGED
@@ -11722,15 +11722,14 @@ var index = /*#__PURE__*/Object.freeze({
11722
11722
 
11723
11723
  var WHITE$1 = WHITE,
11724
11724
  TRANSPARENT$1 = TRANSPARENT,
11725
+ SAPPHIRE_BLUE$1 = SAPPHIRE_BLUE,
11725
11726
  PEACOCK_BLUE$1 = PEACOCK_BLUE,
11726
11727
  MANATEE_GREY$1 = MANATEE_GREY,
11727
- LUCKY_POINT$1 = LUCKY_POINT,
11728
+ MATISSE_BLUE$1 = MATISSE_BLUE,
11728
11729
  HINT_GREEN$1 = HINT_GREEN,
11729
11730
  SEA_GREEN$1 = SEA_GREEN,
11730
11731
  RASPBERRY$1 = RASPBERRY,
11731
- ERROR_COLOR$1 = ERROR_COLOR,
11732
- LUCKY_POINT_DARK$1 = LUCKY_POINT_DARK,
11733
- HAWKES_BLUE$1 = HAWKES_BLUE;
11732
+ ERROR_COLOR$1 = ERROR_COLOR;
11734
11733
  var LINK_TEXT_DECORATION$1 = LINK_TEXT_DECORATION;
11735
11734
  var disabledBorderColor = {
11736
11735
  primary: MANATEE_GREY$1,
@@ -11798,13 +11797,13 @@ var padding = {
11798
11797
  };
11799
11798
  var color$2 = {
11800
11799
  primary: WHITE$1,
11801
- secondary: LUCKY_POINT$1,
11802
- back: LUCKY_POINT$1,
11800
+ secondary: MATISSE_BLUE$1,
11801
+ back: MATISSE_BLUE$1,
11803
11802
  smallPrimary: WHITE$1,
11804
- smallSecondary: LUCKY_POINT$1,
11805
- smallGhost: LUCKY_POINT$1,
11806
- ghost: LUCKY_POINT$1,
11807
- tertiary: LUCKY_POINT$1,
11803
+ smallSecondary: MATISSE_BLUE$1,
11804
+ smallGhost: MATISSE_BLUE$1,
11805
+ ghost: MATISSE_BLUE$1,
11806
+ tertiary: MATISSE_BLUE$1,
11808
11807
  danger: WHITE$1,
11809
11808
  dangerSecondary: ERROR_COLOR$1,
11810
11809
  whitePrimary: WHITE$1,
@@ -11893,10 +11892,10 @@ var textDecoration = {
11893
11892
  greenSecondary: "none"
11894
11893
  };
11895
11894
  var backgroundColor = {
11896
- primary: LUCKY_POINT$1,
11895
+ primary: MATISSE_BLUE$1,
11897
11896
  secondary: TRANSPARENT$1,
11898
11897
  back: TRANSPARENT$1,
11899
- smallPrimary: LUCKY_POINT$1,
11898
+ smallPrimary: MATISSE_BLUE$1,
11900
11899
  smallSecondary: TRANSPARENT$1,
11901
11900
  smallGhost: TRANSPARENT$1,
11902
11901
  ghost: TRANSPARENT$1,
@@ -11909,11 +11908,11 @@ var backgroundColor = {
11909
11908
  greenSecondary: TRANSPARENT$1
11910
11909
  };
11911
11910
  var border = {
11912
- primary: "2px solid " + LUCKY_POINT$1,
11913
- secondary: "2px solid " + LUCKY_POINT$1,
11914
- back: "2px solid " + LUCKY_POINT$1,
11915
- smallPrimary: "2px solid " + LUCKY_POINT$1,
11916
- smallSecondary: "2px solid " + LUCKY_POINT$1,
11911
+ primary: "2px solid " + MATISSE_BLUE$1,
11912
+ secondary: "2px solid " + MATISSE_BLUE$1,
11913
+ back: "2px solid " + MATISSE_BLUE$1,
11914
+ smallPrimary: "2px solid " + MATISSE_BLUE$1,
11915
+ smallSecondary: "2px solid " + MATISSE_BLUE$1,
11917
11916
  smallGhost: "none",
11918
11917
  ghost: "none",
11919
11918
  tertiary: "none",
@@ -11925,11 +11924,11 @@ var border = {
11925
11924
  greenSecondary: "2px solid " + SEA_GREEN$1
11926
11925
  };
11927
11926
  var hoverBackgroundColor = {
11928
- primary: LUCKY_POINT_DARK$1,
11929
- secondary: HAWKES_BLUE$1,
11927
+ primary: SAPPHIRE_BLUE$1,
11928
+ secondary: "#DBEAF0",
11930
11929
  back: TRANSPARENT$1,
11931
- smallPrimary: LUCKY_POINT_DARK$1,
11932
- smallSecondary: HAWKES_BLUE$1,
11930
+ smallPrimary: SAPPHIRE_BLUE$1,
11931
+ smallSecondary: "#DBEAF0",
11933
11932
  smallGhost: TRANSPARENT$1,
11934
11933
  ghost: TRANSPARENT$1,
11935
11934
  tertiary: TRANSPARENT$1,
@@ -11941,11 +11940,11 @@ var hoverBackgroundColor = {
11941
11940
  greenSecondary: HINT_GREEN$1
11942
11941
  };
11943
11942
  var hoverBorderColor = {
11944
- primary: LUCKY_POINT_DARK$1,
11945
- secondary: LUCKY_POINT$1,
11943
+ primary: SAPPHIRE_BLUE$1,
11944
+ secondary: MATISSE_BLUE$1,
11946
11945
  back: "#DCEAF1",
11947
- smallPrimary: LUCKY_POINT_DARK$1,
11948
- smallSecondary: LUCKY_POINT$1,
11946
+ smallPrimary: SAPPHIRE_BLUE$1,
11947
+ smallSecondary: MATISSE_BLUE$1,
11949
11948
  smallGhost: TRANSPARENT$1,
11950
11949
  ghost: TRANSPARENT$1,
11951
11950
  tertiary: TRANSPARENT$1,
@@ -11958,13 +11957,13 @@ var hoverBorderColor = {
11958
11957
  };
11959
11958
  var hoverColor = {
11960
11959
  primary: WHITE$1,
11961
- secondary: LUCKY_POINT$1,
11962
- back: LUCKY_POINT$1,
11960
+ secondary: SAPPHIRE_BLUE$1,
11961
+ back: SAPPHIRE_BLUE$1,
11963
11962
  smallPrimary: WHITE$1,
11964
- smallSecondary: LUCKY_POINT$1,
11965
- smallGhost: LUCKY_POINT$1,
11966
- ghost: LUCKY_POINT$1,
11967
- tertiary: LUCKY_POINT$1,
11963
+ smallSecondary: SAPPHIRE_BLUE$1,
11964
+ smallGhost: SAPPHIRE_BLUE$1,
11965
+ ghost: SAPPHIRE_BLUE$1,
11966
+ tertiary: SAPPHIRE_BLUE$1,
11968
11967
  danger: WHITE$1,
11969
11968
  dangerSecondary: "#B10541",
11970
11969
  whitePrimary: WHITE$1,
@@ -11973,11 +11972,11 @@ var hoverColor = {
11973
11972
  greenSecondary: SEA_GREEN$1
11974
11973
  };
11975
11974
  var activeBackgroundColor = {
11976
- primary: LUCKY_POINT_DARK$1,
11977
- secondary: adjustHexColor(HAWKES_BLUE$1, 10, "darken"),
11975
+ primary: PEACOCK_BLUE$1,
11976
+ secondary: "#B8D5E1",
11978
11977
  back: TRANSPARENT$1,
11979
- smallPrimary: LUCKY_POINT_DARK$1,
11980
- smallSecondary: adjustHexColor(HAWKES_BLUE$1, 10, "darken"),
11978
+ smallPrimary: PEACOCK_BLUE$1,
11979
+ smallSecondary: "#B8D5E1",
11981
11980
  smallGhost: TRANSPARENT$1,
11982
11981
  ghost: TRANSPARENT$1,
11983
11982
  tertiary: TRANSPARENT$1,
@@ -11989,11 +11988,11 @@ var activeBackgroundColor = {
11989
11988
  greenSecondary: adjustHexColor(HINT_GREEN$1, 5, "darken")
11990
11989
  };
11991
11990
  var activeBorderColor = {
11992
- primary: adjustHexColor(LUCKY_POINT_DARK$1, 10, "darken"),
11993
- secondary: LUCKY_POINT$1,
11991
+ primary: PEACOCK_BLUE$1,
11992
+ secondary: MATISSE_BLUE$1,
11994
11993
  back: PEACOCK_BLUE$1,
11995
- smallPrimary: adjustHexColor(LUCKY_POINT_DARK$1, 10, "darken"),
11996
- smallSecondary: LUCKY_POINT$1,
11994
+ smallPrimary: PEACOCK_BLUE$1,
11995
+ smallSecondary: MATISSE_BLUE$1,
11997
11996
  smallGhost: TRANSPARENT$1,
11998
11997
  ghost: TRANSPARENT$1,
11999
11998
  tertiary: TRANSPARENT$1,
@@ -12006,7 +12005,7 @@ var activeBorderColor = {
12006
12005
  };
12007
12006
  var activeColor = {
12008
12007
  primary: WHITE$1,
12009
- secondary: LUCKY_POINT$1,
12008
+ secondary: MATISSE_BLUE$1,
12010
12009
  back: PEACOCK_BLUE$1,
12011
12010
  smallPrimary: WHITE$1,
12012
12011
  smallSecondary: PEACOCK_BLUE$1,
@@ -16192,7 +16191,7 @@ var PeriscopeFailedIcon = function PeriscopeFailedIcon() {
16192
16191
  }, /*#__PURE__*/React__default.createElement("g", {
16193
16192
  transform: "translate(288 64)"
16194
16193
  }, /*#__PURE__*/React__default.createElement("path", {
16195
- fill: "#281978",
16194
+ fill: "#15749D",
16196
16195
  fillOpacity: "0.3",
16197
16196
  d: "M302.247 310.746c36.612 0 66.292 6.549 66.292 14.627S338.86 340 302.247 340c-36.613 0-66.292-6.55-66.292-14.627 0-8.078 29.68-14.627 66.292-14.627zM65.904 208.318c6.071 0 11.057 4.655 11.608 10.6a6.983 6.983 0 014.09-1.321c3.885 0 7.034 3.159 7.034 7.055 0 3.818-3.022 6.926-6.798 7.051l-.237.004H49.756c-4.548 0-8.234-3.696-8.234-8.256 0-4.56 3.686-8.257 8.234-8.257 1.848 0 3.549.618 4.923 1.65 1.378-4.919 5.88-8.526 11.225-8.526zm195.894-57.546c16.134 0 29.213 13.097 29.213 29.254 0 16.157-13.08 29.254-29.213 29.254-16.134 0-29.214-13.097-29.214-29.254 0-16.157 13.08-29.254 29.214-29.254zm80.899 0c16.134 0 29.213 13.097 29.213 29.254 0 16.157-13.08 29.254-29.213 29.254-16.135 0-29.214-13.097-29.214-29.254 0-16.157 13.08-29.254 29.214-29.254zm-80.899 22.503c-5.514 0-10.317 3.673-12.173 9.018a3.377 3.377 0 002.077 4.297 3.37 3.37 0 004.29-2.08l.16-.42c1.027-2.474 3.233-4.064 5.646-4.064 2.547 0 4.863 1.771 5.805 4.484l.12.302a3.37 3.37 0 004.17 1.778 3.377 3.377 0 002.077-4.297c-1.855-5.345-6.658-9.018-12.172-9.018zm80.9 0c-5.515 0-10.318 3.673-12.174 9.018a3.377 3.377 0 002.077 4.297 3.37 3.37 0 004.29-2.08l.16-.42c1.027-2.474 3.233-4.064 5.646-4.064 2.547 0 4.863 1.771 5.805 4.484l.12.302a3.37 3.37 0 004.17 1.778 3.377 3.377 0 002.077-4.297c-1.855-5.345-6.659-9.018-12.172-9.018zM519.99 12.426c12.578 0 22.908 9.642 24.048 21.958a14.473 14.473 0 018.471-2.737c8.049 0 14.575 6.544 14.575 14.617 0 7.966-6.358 14.445-14.262 14.612l-.313.003H486.54c-9.42 0-17.057-7.658-17.057-17.106 0-9.446 7.637-17.104 17.057-17.104 3.83 0 7.352 1.281 10.2 3.418 2.855-10.189 12.179-17.66 23.252-17.66zM170.591 0c6.61 0 12.239 4.15 14.476 9.99a6.571 6.571 0 011.792-.252c2.114 0 3.994.996 5.208 2.543a9.767 9.767 0 014.028-.872c5.431 0 9.833 4.414 9.833 9.86 0 5.354-4.254 9.712-9.557 9.858l-.276.004h-42.442c-5.43 0-9.833-4.415-9.833-9.861 0-5.447 4.403-9.861 9.833-9.861.666 0 1.315.068 1.942.194C157.345 4.93 163.386 0 170.59 0z"
16198
16197
  }), /*#__PURE__*/React__default.createElement("path", {
@@ -16210,7 +16209,7 @@ var PeriscopeFailedIcon = function PeriscopeFailedIcon() {
16210
16209
  filter: "url(#periscope-failed-filter-2)",
16211
16210
  xlinkHref: "#periscope-failed-path-1"
16212
16211
  }), /*#__PURE__*/React__default.createElement("use", {
16213
- fill: "#281978",
16212
+ fill: "#15749D",
16214
16213
  xlinkHref: "#periscope-failed-path-1"
16215
16214
  })), /*#__PURE__*/React__default.createElement("g", {
16216
16215
  transform: "translate(0 96.764)"
@@ -19242,7 +19241,7 @@ var AlertInfoIcon = function AlertInfoIcon() {
19242
19241
  xlinkHref: "#path-1"
19243
19242
  })), /*#__PURE__*/React__default.createElement("use", {
19244
19243
  id: "background-2",
19245
- fill: "#281978",
19244
+ fill: "#15749d",
19246
19245
  fillRule: "nonzero",
19247
19246
  xlinkHref: "#path-1"
19248
19247
  })))));
@@ -19393,13 +19392,13 @@ var AlertIcons = {
19393
19392
  };
19394
19393
 
19395
19394
  var background = {
19396
- info: "".concat(HAWKES_BLUE),
19395
+ info: "".concat(INFO_BLUE),
19397
19396
  warn: "".concat(APRICOT_ORANGE),
19398
19397
  error: "".concat(BLUSH_RED),
19399
19398
  success: "".concat(HINT_GREEN)
19400
19399
  };
19401
19400
  var border$1 = {
19402
- info: "".concat(LUCKY_POINT),
19401
+ info: "".concat(MATISSE_BLUE),
19403
19402
  warn: "".concat(ZEST_ORANGE),
19404
19403
  error: "".concat(RAZZMATAZZ_RED),
19405
19404
  success: "".concat(EMERALD_GREEN)
@@ -21179,7 +21178,7 @@ var BoxWithShadow = function BoxWithShadow(_ref) {
21179
21178
  var BoxWithShadow$1 = themeComponent(BoxWithShadow, "BoxWithShadow", fallbackValues$8);
21180
21179
 
21181
21180
  // import theme from "styled-theming";
21182
- var MATISSE_BLUE$1 = MATISSE_BLUE,
21181
+ var MATISSE_BLUE$2 = MATISSE_BLUE,
21183
21182
  STORM_GREY$1 = STORM_GREY;
21184
21183
  var LINK_TEXT_DECORATION$2 = LINK_TEXT_DECORATION;
21185
21184
 
@@ -21188,7 +21187,7 @@ var LINK_TEXT_DECORATION$2 = LINK_TEXT_DECORATION;
21188
21187
  for colors/values that should be used here instead
21189
21188
  */
21190
21189
 
21191
- var color$6 = "".concat(MATISSE_BLUE$1);
21190
+ var color$6 = "".concat(MATISSE_BLUE$2);
21192
21191
  var activeColor$2 = "".concat(STORM_GREY$1);
21193
21192
  var activeBreadcrumbColor = "".concat(STORM_GREY$1);
21194
21193
  var fontSize$2 = "0.875rem";
@@ -23696,9 +23695,9 @@ exportTypedArrayMethod$1('at', function at(index) {
23696
23695
  return (k < 0 || k >= len) ? undefined : O[k];
23697
23696
  });
23698
23697
 
23699
- var selectedColor = "".concat(LUCKY_POINT);
23700
- var hoverColor$3 = "".concat(HAWKES_BLUE);
23701
- var focusColor = "".concat(LUCKY_POINT_DARK);
23698
+ var selectedColor = "".concat(MATISSE_BLUE);
23699
+ var hoverColor$3 = "".concat(HOVER_LIGHT_BLUE);
23700
+ var focusColor = "".concat(MATISSE_BLUE_DARK);
23702
23701
  var fallbackValues$i = {
23703
23702
  selectedColor: selectedColor,
23704
23703
  hoverColor: hoverColor$3,
@@ -24120,15 +24119,15 @@ var SelectField = styled.select.withConfig({
24120
24119
  }, function (_ref3) {
24121
24120
  var themeValues = _ref3.themeValues;
24122
24121
  return themeValues.color && themeValues.color;
24123
- }, LUCKY_POINT);
24122
+ }, MATISSE_BLUE);
24124
24123
  var SelectOption = styled.option.withConfig({
24125
24124
  displayName: "FormSelectstyled__SelectOption",
24126
24125
  componentId: "sc-hkrqrv-2"
24127
24126
  })([""]);
24128
24127
 
24129
24128
  var linkColor$1 = {
24130
- "default": "".concat(LUCKY_POINT),
24131
- disabled: "".concat(LUCKY_POINT)
24129
+ "default": "".concat(MATISSE_BLUE),
24130
+ disabled: "".concat(MATISSE_BLUE)
24132
24131
  };
24133
24132
  var formBackgroundColor = {
24134
24133
  "default": "".concat(WHITE),
@@ -24169,7 +24168,7 @@ var fontWeight$3 = {
24169
24168
  disabled: "".concat(FONT_WEIGHT_REGULAR)
24170
24169
  };
24171
24170
  var hoverFocusStyles = {
24172
- "default": "color: ".concat(LUCKY_POINT_DARK, "; outline: none; text-decoration: underline; "),
24171
+ "default": "color: #0E506D; outline: none; text-decoration: underline; ",
24173
24172
  disabled: "color: #6D717E;"
24174
24173
  };
24175
24174
  var fallbackValues$j = {
@@ -47232,13 +47231,18 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
47232
47231
  backButtonTestId = _ref$backButtonTestId === void 0 ? null : _ref$backButtonTestId;
47233
47232
  var _useContext = useContext(ThemeContext),
47234
47233
  isMobile = _useContext.isMobile;
47235
- var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
47234
+
47235
+ // cancel URLs are external (back to client system)
47236
+ var handleCancel = function handleCancel() {
47237
+ window.location.href = cancelURL;
47238
+ };
47239
+ var backButton = !!cancelURL && !!cancelText ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
47236
47240
  text: cancelText,
47237
- url: cancelURL,
47241
+ action: handleCancel,
47238
47242
  variant: backButtonVariant,
47239
47243
  extraStyles: isMobile && "flex-grow: 1",
47240
47244
  dataQa: backButtonTestId || cancelText,
47241
- "aria-labelledby": "".concat(kebabCaseString(cancelText), "-button"),
47245
+ "aria-label": "".concat(cancelText, ", navigate back to previous site"),
47242
47246
  role: "link"
47243
47247
  }) : backButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
47244
47248
  text: "Back",
@@ -47246,7 +47250,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
47246
47250
  action: backButtonAction,
47247
47251
  extraStyles: isMobile && "flex-grow: 1",
47248
47252
  dataQa: "Back",
47249
- "aria-labelledby": "back-button",
47253
+ "aria-label": "Back, navigate to previous page",
47250
47254
  role: "link"
47251
47255
  });
47252
47256
  var forwardButton = !!redirectURL ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {