@thecb/components 11.6.3 → 11.6.4-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.cjs.js CHANGED
@@ -356,8 +356,6 @@ var BORDER_RADIUS = {
356
356
  };
357
357
  var BORDER_THIN = "1px";
358
358
  var FONT_SIZE = {
359
- XXS: "0.625rem",
360
- // 10px
361
359
  XS: "0.750rem",
362
360
  // 12px
363
361
  SM: "0.875rem",
@@ -19725,9 +19723,6 @@ var background$1 = {
19725
19723
  info: "".concat(INFO_BLUE),
19726
19724
  warn: "".concat(HALF_COLONIAL_WHITE),
19727
19725
  primary: "".concat(CORNFLOWER_BLUE),
19728
- primaryHeadline: "".concat(CORNFLOWER_BLUE),
19729
- secondary: "".concat(ROYAL_BLUE_VIVID),
19730
- secondaryHeadline: "".concat(ROYAL_BLUE_VIVID),
19731
19726
  success: "".concat(HINT_GREEN),
19732
19727
  disabled: "".concat(GRECIAN_GREY)
19733
19728
  };
@@ -19735,48 +19730,12 @@ var color$5 = {
19735
19730
  info: "".concat(MATISSE_BLUE),
19736
19731
  warn: "".concat(ZEST_ORANGE),
19737
19732
  primary: "".concat(ROYAL_BLUE_VIVID),
19738
- primaryHeadline: "".concat(ROYAL_BLUE_VIVID),
19739
- secondary: "".concat(CORNFLOWER_BLUE),
19740
- secondaryHeadline: "".concat(CORNFLOWER_BLUE),
19741
19733
  success: "".concat(SEA_GREEN),
19742
19734
  disabled: "".concat(MANATEE_GREY)
19743
19735
  };
19744
- var fontWeight$1 = {
19745
- info: FONT_WEIGHT_REGULAR,
19746
- warn: FONT_WEIGHT_REGULAR,
19747
- primary: FONT_WEIGHT_REGULAR,
19748
- primaryHeadline: FONT_WEIGHT_SEMIBOLD,
19749
- secondary: FONT_WEIGHT_REGULAR,
19750
- secondaryHeadline: FONT_WEIGHT_SEMIBOLD,
19751
- success: FONT_WEIGHT_REGULAR,
19752
- disabled: FONT_WEIGHT_REGULAR
19753
- };
19754
- var fontSizeMobile = {
19755
- info: fallbackValues.fontSize.pXXS,
19756
- warn: fallbackValues.fontSize.pXXS,
19757
- primary: fallbackValues.fontSize.pXXS,
19758
- primaryHeadline: fallbackValues.fontSize.pXS,
19759
- secondary: fallbackValues.fontSize.pXXS,
19760
- secondaryHeadline: fallbackValues.fontSize.pXS,
19761
- success: fallbackValues.fontSize.pXXS,
19762
- disabled: fallbackValues.fontSize.pXXS
19763
- };
19764
- var fontSizeDesktop = {
19765
- info: fallbackValues.fontSize.pXS,
19766
- warn: fallbackValues.fontSize.pXS,
19767
- primary: fallbackValues.fontSize.pXS,
19768
- primaryHeadline: fallbackValues.fontSize.pS,
19769
- secondary: fallbackValues.fontSize.pXS,
19770
- secondaryHeadline: fallbackValues.fontSize.pS,
19771
- success: fallbackValues.fontSize.pXS,
19772
- disabled: fallbackValues.fontSize.pXS
19773
- };
19774
19736
  var fallbackValues$7 = {
19775
19737
  background: background$1,
19776
- color: color$5,
19777
- fontWeight: fontWeight$1,
19778
- fontSizeMobile: fontSizeMobile,
19779
- fontSizeDesktop: fontSizeDesktop
19738
+ color: color$5
19780
19739
  };
19781
19740
 
19782
19741
  var StyledBadgeContainer = styled__default(Box).withConfig({
@@ -19786,31 +19745,22 @@ var StyledBadgeContainer = styled__default(Box).withConfig({
19786
19745
  var StyledBadge = styled__default(Text$1).withConfig({
19787
19746
  displayName: "Badge__StyledBadge",
19788
19747
  componentId: "sc-1g438j-1"
19789
- })(["line-height:150%;letter-spacing:", ";white-space:nowrap;"], function (props) {
19790
- return props.isMobile ? "0.2px" : "0.24px";
19791
- });
19748
+ })(["font-family:\"Public Sans\",sans-serif;font-size:10px;font-style:normal;font-weight:400;line-height:150%;letter-spacing:0.2px;white-space:nowrap;@media screen and (min-width:1049px){font-size:12px;line-height:150%;letter-spacing:0.24px;}"]);
19792
19749
  var Badge = function Badge(_ref) {
19793
19750
  var label = _ref.label,
19794
19751
  Icon = _ref.Icon,
19795
19752
  themeValues = _ref.themeValues,
19796
19753
  _ref$iconOnLeft = _ref.iconOnLeft,
19797
19754
  iconOnLeft = _ref$iconOnLeft === void 0 ? true : _ref$iconOnLeft,
19798
- id = _ref.id,
19799
- extraStyles = _ref.extraStyles;
19800
- var _useContext = React.useContext(styled.ThemeContext),
19801
- isMobile = _useContext.isMobile;
19755
+ id = _ref.id;
19802
19756
  return /*#__PURE__*/React__default.createElement(StyledBadgeContainer, {
19803
19757
  background: themeValues.background,
19804
- id: id,
19805
- extraStyles: extraStyles
19758
+ id: id
19806
19759
  }, iconOnLeft && Icon && /*#__PURE__*/React__default.createElement(Icon, {
19807
19760
  color: themeValues.color,
19808
19761
  fill: themeValues.color
19809
19762
  }), /*#__PURE__*/React__default.createElement(StyledBadge, {
19810
- color: themeValues.color,
19811
- weight: themeValues.fontWeight,
19812
- fontSize: isMobile ? themeValues.fontSizeMobile : themeValues.fontSizeDesktop,
19813
- isMobile: isMobile
19763
+ color: themeValues.color
19814
19764
  }, label), !iconOnLeft && Icon && /*#__PURE__*/React__default.createElement(Icon, {
19815
19765
  color: themeValues.color,
19816
19766
  fill: themeValues.color
@@ -21200,7 +21150,7 @@ var activeColor$2 = "".concat(STORM_GREY$1);
21200
21150
  var activeBreadcrumbColor = "".concat(STORM_GREY$1);
21201
21151
  var fontSize$2 = "0.875rem";
21202
21152
  var lineHeight = "1.25rem";
21203
- var fontWeight$2 = "400";
21153
+ var fontWeight$1 = "400";
21204
21154
  var margin = "0.5rem";
21205
21155
  var hover = "text-decoration: ".concat(LINK_TEXT_DECORATION$2, ";");
21206
21156
  var fallbackValues$9 = {
@@ -21209,7 +21159,7 @@ var fallbackValues$9 = {
21209
21159
  activeBreadcrumbColor: activeBreadcrumbColor,
21210
21160
  fontSize: fontSize$2,
21211
21161
  lineHeight: lineHeight,
21212
- fontWeight: fontWeight$2,
21162
+ fontWeight: fontWeight$1,
21213
21163
  margin: margin,
21214
21164
  hover: hover
21215
21165
  };
@@ -23803,7 +23753,8 @@ var Dropdown = function Dropdown(_ref13) {
23803
23753
  _ref13$ariaInvalid = _ref13.ariaInvalid,
23804
23754
  ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid,
23805
23755
  _ref13$isRequired = _ref13.isRequired,
23806
- isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
23756
+ isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired,
23757
+ extraStyles = _ref13.extraStyles;
23807
23758
  var _useState = React.useState(""),
23808
23759
  _useState2 = _slicedToArray(_useState, 2),
23809
23760
  inputValue = _useState2[0],
@@ -24000,7 +23951,7 @@ var Dropdown = function Dropdown(_ref13) {
24000
23951
  return /*#__PURE__*/React__default.createElement(Box, {
24001
23952
  padding: "0",
24002
23953
  background: isOpen ? themeValues.hoverColor : WHITE,
24003
- extraStyles: "position: relative;",
23954
+ extraStyles: "position: relative;".concat(extraStyles ? " ".concat(extraStyles) : ""),
24004
23955
  minWidth: "100%",
24005
23956
  onClick: function onClick() {
24006
23957
  if (!isOpen) {
@@ -24170,7 +24121,7 @@ var errorFontSize = {
24170
24121
  "default": "0.75rem",
24171
24122
  disabled: "0.75rem"
24172
24123
  };
24173
- var fontWeight$3 = {
24124
+ var fontWeight$2 = {
24174
24125
  "default": "".concat(FONT_WEIGHT_REGULAR),
24175
24126
  disabled: "".concat(FONT_WEIGHT_REGULAR)
24176
24127
  };
@@ -24188,7 +24139,7 @@ var fallbackValues$j = {
24188
24139
  lineHeight: lineHeight$1,
24189
24140
  fontSize: fontSize$4,
24190
24141
  errorFontSize: errorFontSize,
24191
- fontWeight: fontWeight$3,
24142
+ fontWeight: fontWeight$2,
24192
24143
  hoverFocusStyles: hoverFocusStyles
24193
24144
  };
24194
24145
 
@@ -25914,7 +25865,7 @@ var errorFontSize$1 = {
25914
25865
  "default": "0.75rem",
25915
25866
  disabled: "0.75rem"
25916
25867
  };
25917
- var fontWeight$4 = {
25868
+ var fontWeight$3 = {
25918
25869
  "default": "".concat(FONT_WEIGHT_REGULAR),
25919
25870
  disabled: "".concat(FONT_WEIGHT_REGULAR)
25920
25871
  };
@@ -25935,7 +25886,7 @@ var fallbackValues$n = {
25935
25886
  lineHeight: lineHeight$2,
25936
25887
  fontSize: fontSize$6,
25937
25888
  errorFontSize: errorFontSize$1,
25938
- fontWeight: fontWeight$4,
25889
+ fontWeight: fontWeight$3,
25939
25890
  hoverFocusStyles: hoverFocusStyles$1,
25940
25891
  formFooterPanel: formFooterPanel
25941
25892
  };
@@ -26899,7 +26850,7 @@ var Jumbo = function Jumbo(_ref) {
26899
26850
  };
26900
26851
  var Jumbo$1 = withWindowSize(Jumbo);
26901
26852
 
26902
- var fontWeight$5 = {
26853
+ var fontWeight$4 = {
26903
26854
  // v1 variants
26904
26855
  "default": "600",
26905
26856
  pS: "600",
@@ -26916,7 +26867,7 @@ var fontWeight$5 = {
26916
26867
  large: "700" // fontsize Title small
26917
26868
  };
26918
26869
  var fallbackValues$t = {
26919
- fontWeight: fontWeight$5
26870
+ fontWeight: fontWeight$4
26920
26871
  };
26921
26872
 
26922
26873
  var LabeledAmountV1 = function LabeledAmountV1(_ref) {
@@ -38994,7 +38945,7 @@ var fontSize$9 = {
38994
38945
  largeTitle: "1.75rem",
38995
38946
  small: "1.25rem"
38996
38947
  };
38997
- var fontWeight$6 = {
38948
+ var fontWeight$5 = {
38998
38949
  "default": "600",
38999
38950
  largeTitle: "700",
39000
38951
  small: "600"
@@ -39041,7 +38992,7 @@ var backgroundColor$7 = {
39041
38992
  };
39042
38993
  var fallbackValues$G = {
39043
38994
  fontSize: fontSize$9,
39044
- fontWeight: fontWeight$6,
38995
+ fontWeight: fontWeight$5,
39045
38996
  fontColor: fontColor,
39046
38997
  lineHeight: lineHeight$3,
39047
38998
  textAlign: textAlign,
@@ -47682,7 +47633,7 @@ var fontSize$a = {
47682
47633
  var lineHeight$4 = {
47683
47634
  "default": "1.5rem"
47684
47635
  };
47685
- var fontWeight$7 = {
47636
+ var fontWeight$6 = {
47686
47637
  "default": FONT_WEIGHT_REGULAR
47687
47638
  };
47688
47639
  var modalLinkHoverFocus = {
@@ -47695,7 +47646,7 @@ var fallbackValues$R = {
47695
47646
  linkColor: linkColor$4,
47696
47647
  fontSize: fontSize$a,
47697
47648
  lineHeight: lineHeight$4,
47698
- fontWeight: fontWeight$7,
47649
+ fontWeight: fontWeight$6,
47699
47650
  modalLinkHoverFocus: modalLinkHoverFocus,
47700
47651
  linkTextDecoration: linkTextDecoration
47701
47652
  };
@@ -47777,7 +47728,7 @@ var lineHeight$5 = {
47777
47728
  "default": "1.5rem",
47778
47729
  footer: "1.25rem"
47779
47730
  };
47780
- var fontWeight$8 = {
47731
+ var fontWeight$7 = {
47781
47732
  "default": FONT_WEIGHT_REGULAR,
47782
47733
  footer: FONT_WEIGHT_SEMIBOLD
47783
47734
  };
@@ -47796,7 +47747,7 @@ var fallbackValues$S = {
47796
47747
  border: border$3,
47797
47748
  fontSize: fontSize$b,
47798
47749
  lineHeight: lineHeight$5,
47799
- fontWeight: fontWeight$8,
47750
+ fontWeight: fontWeight$7,
47800
47751
  modalLinkHoverFocus: modalLinkHoverFocus$1,
47801
47752
  modalLinkTextDecoration: modalLinkTextDecoration
47802
47753
  };
@@ -49653,13 +49604,13 @@ var ToastNotification = function ToastNotification(_ref) {
49653
49604
  }));
49654
49605
  };
49655
49606
 
49656
- var fontWeight$9 = "600";
49607
+ var fontWeight$8 = "600";
49657
49608
  var fontColor$1 = WHITE;
49658
49609
  var textAlign$1 = "left";
49659
49610
  var headerBackgroundColor$1 = BRIGHT_GREY;
49660
49611
  var imageBackgroundColor$1 = MATISSE_BLUE;
49661
49612
  var fallbackValues$Z = {
49662
- fontWeight: fontWeight$9,
49613
+ fontWeight: fontWeight$8,
49663
49614
  fontColor: fontColor$1,
49664
49615
  textAlign: textAlign$1,
49665
49616
  headerBackgroundColor: headerBackgroundColor$1,