@thecb/components 10.12.2-beta.0 → 10.12.2-beta.2

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
@@ -18860,9 +18860,9 @@ var AgencyIcon = function AgencyIcon(_ref) {
18860
18860
  var _excluded$m = ["width", "height", "color"];
18861
18861
  var PersonIcon = function PersonIcon(_ref) {
18862
18862
  var _ref$width = _ref.width,
18863
- width = _ref$width === void 0 ? "14" : _ref$width,
18863
+ width = _ref$width === void 0 ? "20" : _ref$width,
18864
18864
  _ref$height = _ref.height,
18865
- height = _ref$height === void 0 ? "15" : _ref$height,
18865
+ height = _ref$height === void 0 ? "21" : _ref$height,
18866
18866
  _ref$color = _ref.color,
18867
18867
  color = _ref$color === void 0 ? CHARADE_GREY : _ref$color,
18868
18868
  props = _objectWithoutProperties(_ref, _excluded$m);
@@ -18875,7 +18875,7 @@ var PersonIcon = function PersonIcon(_ref) {
18875
18875
  }, props), /*#__PURE__*/React__default.createElement("path", {
18876
18876
  fillRule: "evenodd",
18877
18877
  clipRule: "evenodd",
18878
- d: "M12.25 1.8125H1.75C1.50838 1.8125 1.3125 2.00838 1.3125 2.25V12.75C1.3125 12.9916 1.50838 13.1875 1.75 13.1875H2.625V11.7778C2.625 9.89848 4.02411 8.375 5.75 8.375H8.25C9.97589 8.375 11.375 9.89848 11.375 11.7778V13.1875H12.25C12.4916 13.1875 12.6875 12.9916 12.6875 12.75V2.25C12.6875 2.00838 12.4916 1.8125 12.25 1.8125ZM1.75 14.5H2.625H11.375H12.25C13.2165 14.5 14 13.7165 14 12.75V2.25C14 1.2835 13.2165 0.5 12.25 0.5H1.75C0.783502 0.5 0 1.2835 0 2.25V12.75C0 13.7165 0.783502 14.5 1.75 14.5ZM7 7.5C8.20812 7.5 9.1875 6.52062 9.1875 5.3125C9.1875 4.10438 8.20812 3.125 7 3.125C5.79188 3.125 4.8125 4.10438 4.8125 5.3125C4.8125 6.52062 5.79188 7.5 7 7.5Z",
18878
+ d: "M15.25 4.8125H4.75C4.50838 4.8125 4.3125 5.00838 4.3125 5.25V15.75C4.3125 15.9916 4.50838 16.1875 4.75 16.1875H5.625V14.7778C5.625 12.8985 7.02411 11.375 8.75 11.375H11.25C12.9759 11.375 14.375 12.8985 14.375 14.7778V16.1875H15.25C15.4916 16.1875 15.6875 15.9916 15.6875 15.75V5.25C15.6875 5.00838 15.4916 4.8125 15.25 4.8125ZM4.75 17.5H5.625H14.375H15.25C16.2165 17.5 17 16.7165 17 15.75V5.25C17 4.2835 16.2165 3.5 15.25 3.5H4.75C3.7835 3.5 3 4.2835 3 5.25V15.75C3 16.7165 3.7835 17.5 4.75 17.5ZM10 10.5C11.2081 10.5 12.1875 9.52062 12.1875 8.3125C12.1875 7.10438 11.2081 6.125 10 6.125C8.79188 6.125 7.8125 7.10438 7.8125 8.3125C7.8125 9.52062 8.79188 10.5 10 10.5Z",
18879
18879
  fill: color
18880
18880
  }));
18881
18881
  };
@@ -23205,7 +23205,7 @@ var errorStyles = {
23205
23205
  "default": "border: 1px solid ".concat(RED, ";")
23206
23206
  };
23207
23207
  var focusedStyles = {
23208
- "default": "box-shadow: 0 0 5px 0 ".concat(MATISSE_BLUE, ";")
23208
+ "default": "\n outline: 3px solid ".concat(ROYAL_BLUE, "; \n outline-offset: 3px;\n ")
23209
23209
  };
23210
23210
  var disabledCheckedStyles = {
23211
23211
  "default": "\n background: #6d717e;\n border: 1px solid #6d717e;\n"
@@ -23251,7 +23251,7 @@ var CheckboxContainer = styled__default.span.withConfig({
23251
23251
  var CheckboxLabelContainer = styled__default.label.withConfig({
23252
23252
  displayName: "Checkbox__CheckboxLabelContainer",
23253
23253
  componentId: "sc-36kqbv-1"
23254
- })(["display:flex;align-items:center;column-gap:1rem;"]);
23254
+ })(["display:flex;align-items:center;column-gap:1rem;cursor:pointer;"]);
23255
23255
  var CheckboxIcon = styled__default.svg.withConfig({
23256
23256
  displayName: "Checkbox__CheckboxIcon",
23257
23257
  componentId: "sc-36kqbv-2"
@@ -23341,7 +23341,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
23341
23341
  },
23342
23342
  hiddenStyles: hidden,
23343
23343
  background: themeValues.backgroundColor,
23344
- extraStyles: "outline: none; ".concat(extraStyles, "; margin: ").concat(checkboxMargin, ";")
23344
+ extraStyles: "\n :focus {\n outline: 0;\n }\n ".concat(extraStyles, "; \n margin: ").concat(checkboxMargin, ";\n ")
23345
23345
  }, rest), /*#__PURE__*/React__default.createElement(CheckboxLabelContainer, {
23346
23346
  "data-qa": dataQa
23347
23347
  }, /*#__PURE__*/React__default.createElement(CheckboxContainer, {
@@ -50518,11 +50518,15 @@ var PopupMenu = function PopupMenu(_ref) {
50518
50518
  };
50519
50519
  var PopupMenu$1 = themeComponent(PopupMenu, "PopupMenu", fallbackValues$Z);
50520
50520
 
50521
- var primaryColor$1 = INFO_BLUE;
50521
+ var primaryColor$1 = WHITE;
50522
+ var primaryHoverColor = INFO_BLUE;
50522
50523
  var secondaryColor = MATISSE_BLUE;
50524
+ var secondaryHoverColor = "#115D7E";
50523
50525
  var fallbackValues$_ = {
50524
50526
  primaryColor: primaryColor$1,
50525
- secondaryColor: secondaryColor
50527
+ primaryHoverColor: primaryHoverColor,
50528
+ secondaryColor: secondaryColor,
50529
+ secondaryHoverColor: secondaryHoverColor
50526
50530
  };
50527
50531
 
50528
50532
  var StyledFilterContainer = styled__default(Box).withConfig({
@@ -50547,11 +50551,15 @@ var FilterButton = styled__default(ButtonWithAction).withConfig({
50547
50551
  displayName: "MultipleSelectFilterstyled__FilterButton",
50548
50552
  componentId: "sc-126xgc2-2"
50549
50553
  })(["min-width:auto;min-height:2.3125rem;margin:0;padding:0.5rem;border-radius:0.25rem;box-shadow:0px 1px 2px 0px rgba(41,42,51,0.1);", " ", ""], function (_ref) {
50550
- var textColor = _ref.textColor;
50551
- return "\n color: ".concat(textColor, ";\n ");
50554
+ var opened = _ref.opened,
50555
+ textColor = _ref.textColor,
50556
+ textHoverColor = _ref.textHoverColor;
50557
+ return "\n color: ".concat(opened ? textHoverColor : textColor, ";\n :hover,\n :active,\n :focus {\n color: ").concat(textHoverColor, ";\n > * {\n color: ").concat(textHoverColor, ";\n }\n }\n ");
50552
50558
  }, function (_ref2) {
50553
- var backgroundColor = _ref2.backgroundColor;
50554
- return "\n background-color: ".concat(backgroundColor, ";\n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundColor, ";\n }\n ");
50559
+ var opened = _ref2.opened,
50560
+ backgroundColor = _ref2.backgroundColor,
50561
+ backgroundHoverColor = _ref2.backgroundHoverColor;
50562
+ return "\n background-color: ".concat(opened ? backgroundHoverColor : backgroundColor, "; \n :hover,\n :active,\n :focus {\n background-color: ").concat(backgroundHoverColor, ";\n }\n ");
50555
50563
  });
50556
50564
  var StyledFilterButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
50557
50565
  return /*#__PURE__*/React__default.createElement(FilterButton, _extends({
@@ -50630,7 +50638,9 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50630
50638
  action = _ref$action === void 0 ? noop$1 : _ref$action,
50631
50639
  opened = _ref.opened,
50632
50640
  backgroundColor = _ref.backgroundColor,
50633
- contentColor = _ref.contentColor,
50641
+ backgroundHoverColor = _ref.backgroundHoverColor,
50642
+ textColor = _ref.textColor,
50643
+ textHoverColor = _ref.textHoverColor,
50634
50644
  name = _ref.name,
50635
50645
  filterDropdownID = _ref.filterDropdownID,
50636
50646
  _ref$hasIcon = _ref.hasIcon,
@@ -50650,6 +50660,10 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50650
50660
  "aria-expanded": opened,
50651
50661
  "aria-controls": filterDropdownID,
50652
50662
  backgroundColor: backgroundColor,
50663
+ backgroundHoverColor: backgroundHoverColor,
50664
+ textColor: textColor,
50665
+ textHoverColor: textHoverColor,
50666
+ opened: opened,
50653
50667
  dataQa: "".concat(name, "-filter-button"),
50654
50668
  extraStyles: extraStyles,
50655
50669
  "aria-label": "".concat(filterLabel, " Filter: ").concat(btnTextFilterDescription, " ").concat(btnTextItemsDescription),
@@ -50662,7 +50676,7 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50662
50676
  },
50663
50677
  intrinsic: true
50664
50678
  }, hasIcon && /*#__PURE__*/React__default.createElement(Icon, {
50665
- color: contentColor
50679
+ color: opened ? textHoverColor : textColor
50666
50680
  }), /*#__PURE__*/React__default.createElement(Center, {
50667
50681
  as: "span",
50668
50682
  style: {
@@ -50673,13 +50687,13 @@ var FilterButton$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50673
50687
  intrinsic: true
50674
50688
  }, /*#__PURE__*/React__default.createElement(Text$1, {
50675
50689
  variant: "pS",
50676
- color: contentColor,
50690
+ color: opened ? textHoverColor : textColor,
50677
50691
  extraStyles: "\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ".concat(truncateBtnTextWidth && "max-width:" + truncateBtnTextWidth, "\n ")
50678
50692
  }, btnTextFilterDescription), /*#__PURE__*/React__default.createElement(Text$1, {
50679
- color: contentColor,
50693
+ color: opened ? textHoverColor : textColor,
50680
50694
  variant: "pS"
50681
50695
  }, btnTextItemsDescription)), /*#__PURE__*/React__default.createElement(DropdownIconV2, {
50682
- color: contentColor
50696
+ color: opened ? textHoverColor : textColor
50683
50697
  })));
50684
50698
  });
50685
50699
 
@@ -50794,7 +50808,7 @@ var FilterableListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50794
50808
  },
50795
50809
  textExtraStyles: "font-size: 0.875rem; margin: 0;",
50796
50810
  disabled: disabled,
50797
- extraStyles: "\n padding: 0.375rem 0.625rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryColor, ";\n outline-offset: -3px;\n }\n ").concat(showDivider && dividerStyles, "\n ").concat(extraStyles, "\n "),
50811
+ extraStyles: "\n padding: 0.375rem 0.625rem; \n margin: 0;\n :hover,\n :active,\n :focus {\n background-color: ".concat(themeValues.primaryHoverColor, ";\n }\n ").concat(showDivider && dividerStyles, "\n ").concat(extraStyles, "\n "),
50798
50812
  checkboxMargin: showDivider ? "0 0 1rem" : "0",
50799
50813
  hasIconOverride: true,
50800
50814
  icon: CheckboxCheckmarkIcon,
@@ -51102,8 +51116,10 @@ var MultipleSelectFilter = function MultipleSelectFilter(_ref) {
51102
51116
  setOpened(!opened);
51103
51117
  },
51104
51118
  opened: opened,
51105
- backgroundColor: opened ? themeValues.primaryColor : selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? themeValues.secondaryColor : WHITE,
51106
- contentColor: !opened && selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.length ? WHITE : CHARADE_GREY,
51119
+ backgroundHoverColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryHoverColor : themeValues.primaryHoverColor,
51120
+ backgroundColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? themeValues.secondaryColor : themeValues.primaryColor,
51121
+ textColor: appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length ? WHITE : CHARADE_GREY,
51122
+ textHoverColor: opened && !(appliedOptions !== null && appliedOptions !== void 0 && appliedOptions.length) ? CHARADE_GREY : WHITE,
51107
51123
  name: name,
51108
51124
  filterDropdownID: filterDropdownID,
51109
51125
  hasIcon: hasIcon,