@thecb/components 10.2.4-beta.13 → 10.2.4-beta.15

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
@@ -12560,6 +12560,7 @@ var Reel = function Reel(_ref) {
12560
12560
  var padding = {
12561
12561
  primary: "0.75rem 1.5rem",
12562
12562
  secondary: "0.75rem 1.5rem",
12563
+ disabledSecondary: "0.75rem 1.5rem",
12563
12564
  back: "0.75rem 1.5rem",
12564
12565
  smallPrimary: "0.75rem 1rem",
12565
12566
  smallSecondary: "0.75rem 1rem",
@@ -12574,6 +12575,7 @@ var padding = {
12574
12575
  var color$1 = {
12575
12576
  primary: WHITE,
12576
12577
  secondary: MATISSE_BLUE,
12578
+ disabledSecondary: MANATEE_GREY,
12577
12579
  back: MATISSE_BLUE,
12578
12580
  smallPrimary: WHITE,
12579
12581
  smallSecondary: MATISSE_BLUE,
@@ -12588,6 +12590,7 @@ var color$1 = {
12588
12590
  var fontSizeVariant = {
12589
12591
  primary: "pS",
12590
12592
  secondary: "pS",
12593
+ disabledSecondary: "pS",
12591
12594
  back: "pS",
12592
12595
  smallPrimary: "pS",
12593
12596
  smallSecondary: "pS",
@@ -12602,6 +12605,7 @@ var fontSizeVariant = {
12602
12605
  var fontWeight = {
12603
12606
  primary: "600",
12604
12607
  secondary: "600",
12608
+ disabledSecondary: "600",
12605
12609
  back: "600",
12606
12610
  smallPrimary: "600",
12607
12611
  smallSecondary: "600",
@@ -12616,6 +12620,7 @@ var fontWeight = {
12616
12620
  var height = {
12617
12621
  primary: "3rem",
12618
12622
  secondary: "3rem",
12623
+ disabledSecondary: "3rem",
12619
12624
  back: "3rem",
12620
12625
  smallPrimary: "2.5rem",
12621
12626
  smallSecondary: "2.5rem",
@@ -12630,6 +12635,7 @@ var height = {
12630
12635
  var minWidth = {
12631
12636
  primary: "130px",
12632
12637
  secondary: "130px",
12638
+ disabledSecondary: "130px",
12633
12639
  back: "130px",
12634
12640
  smallPrimary: "100px",
12635
12641
  smallSecondary: "100px",
@@ -12644,6 +12650,7 @@ var minWidth = {
12644
12650
  var backgroundColor = {
12645
12651
  primary: MATISSE_BLUE,
12646
12652
  secondary: TRANSPARENT,
12653
+ disabledSecondary: TRANSPARENT,
12647
12654
  back: TRANSPARENT,
12648
12655
  smallPrimary: MATISSE_BLUE,
12649
12656
  smallSecondary: TRANSPARENT,
@@ -12658,6 +12665,7 @@ var backgroundColor = {
12658
12665
  var border = {
12659
12666
  primary: "2px solid " + MATISSE_BLUE,
12660
12667
  secondary: "2px solid " + MATISSE_BLUE,
12668
+ disabledSecondary: "2px solid " + MANATEE_GREY,
12661
12669
  back: "2px solid " + MATISSE_BLUE,
12662
12670
  smallPrimary: "2px solid " + MATISSE_BLUE,
12663
12671
  smallSecondary: "2px solid " + MATISSE_BLUE,
@@ -12672,6 +12680,7 @@ var border = {
12672
12680
  var hoverBackgroundColor = {
12673
12681
  primary: SAPPHIRE_BLUE,
12674
12682
  secondary: "#DBEAF0",
12683
+ disabledSecondary: TRANSPARENT,
12675
12684
  back: TRANSPARENT,
12676
12685
  smallPrimary: SAPPHIRE_BLUE,
12677
12686
  smallSecondary: "#DBEAF0",
@@ -12686,6 +12695,7 @@ var hoverBackgroundColor = {
12686
12695
  var hoverBorderColor = {
12687
12696
  primary: SAPPHIRE_BLUE,
12688
12697
  secondary: MATISSE_BLUE,
12698
+ disabledSecondary: MANATEE_GREY,
12689
12699
  back: "#DCEAF1",
12690
12700
  smallPrimary: SAPPHIRE_BLUE,
12691
12701
  smallSecondary: MATISSE_BLUE,
@@ -12700,6 +12710,7 @@ var hoverBorderColor = {
12700
12710
  var hoverColor = {
12701
12711
  primary: WHITE,
12702
12712
  secondary: SAPPHIRE_BLUE,
12713
+ disabledSecondary: MANATEE_GREY,
12703
12714
  back: SAPPHIRE_BLUE,
12704
12715
  smallPrimary: WHITE,
12705
12716
  smallSecondary: SAPPHIRE_BLUE,
@@ -12714,6 +12725,7 @@ var hoverColor = {
12714
12725
  var activeBackgroundColor = {
12715
12726
  primary: PEACOCK_BLUE,
12716
12727
  secondary: "#B8D5E1",
12728
+ disabledSecondary: TRANSPARENT,
12717
12729
  back: TRANSPARENT,
12718
12730
  smallPrimary: PEACOCK_BLUE,
12719
12731
  smallSecondary: "#B8D5E1",
@@ -12728,6 +12740,7 @@ var activeBackgroundColor = {
12728
12740
  var activeBorderColor = {
12729
12741
  primary: PEACOCK_BLUE,
12730
12742
  secondary: MATISSE_BLUE,
12743
+ disabledSecondary: MANATEE_GREY,
12731
12744
  back: PEACOCK_BLUE,
12732
12745
  smallPrimary: PEACOCK_BLUE,
12733
12746
  smallSecondary: MATISSE_BLUE,
@@ -12742,6 +12755,7 @@ var activeBorderColor = {
12742
12755
  var activeColor = {
12743
12756
  primary: WHITE,
12744
12757
  secondary: MATISSE_BLUE,
12758
+ disabledSecondary: MANATEE_GREY,
12745
12759
  back: PEACOCK_BLUE,
12746
12760
  smallPrimary: WHITE,
12747
12761
  smallSecondary: PEACOCK_BLUE,
@@ -12911,13 +12925,12 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12911
12925
  children = _ref2.children,
12912
12926
  extraDisabledStyles = _ref2.extraDisabledStyles,
12913
12927
  rest = _objectWithoutProperties(_ref2, _excluded$h);
12914
- var isGhostVariant = variant === "ghost" || variant === "smallGhost";
12915
12928
  var themeContext = React.useContext(styled.ThemeContext);
12916
12929
  var themeValues = createThemeValues(themeContext, fallbackValues$1, "Button", variant);
12917
12930
  var isMobile = themeContext.isMobile;
12918
- var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n cursor: pointer;\n ");
12919
- var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
12920
- var disabledStyles = "\n background-color: ".concat(isGhostVariant ? "transparent;" : "#6D717E;", ";\n border-color: ").concat(isGhostVariant ? "transparent;" : "#6D717E;", ";\n color: ").concat(isGhostVariant ? "#6D717E;" : "#FFFFFF", ";\n cursor: default;\n &:focus {\n outline: 3px solid #6D717E;\n outline-offset: 2px;\n }\n ").concat(extraDisabledStyles, "\n ");
12931
+ var hoverStyles = "\n outline: none;\n background-color: ".concat(themeValues.hoverBackgroundColor, ";\n border-color: ").concat(themeValues.hoverBorderColor, ";\n color: ").concat(themeValues.hoverColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n cursor: pointer;\n ");
12932
+ var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
12933
+ var disabledStyles = "\n background-color: #6D717E;\n border-color: #6D717E;\n color: #FFFFFF;\n cursor: default;\n &:focus {\n outline: 3px solid #6D717E;\n outline-offset: 2px;\n }\n ".concat(extraDisabledStyles, "\n ");
12921
12934
  return /*#__PURE__*/React__default.createElement(Box, _extends({
12922
12935
  ref: ref,
12923
12936
  variant: variant,
@@ -12931,7 +12944,7 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12931
12944
  disabledStyles: disabledStyles,
12932
12945
  "aria-disabled": disabled,
12933
12946
  as: "button",
12934
- onClick: isLoading || disabled ? noop : action,
12947
+ onClick: isLoading || disabled ? undefined : action,
12935
12948
  borderRadius: "2px",
12936
12949
  theme: themeContext,
12937
12950
  extraStyles: "margin: 0.5rem; ".concat(extraStyles),
@@ -12948,7 +12961,7 @@ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12948
12961
  variant: themeValues.fontSizeVariant,
12949
12962
  color: themeValues.color,
12950
12963
  textWrap: textWrap,
12951
- extraStyles: disabled ? textExtraStyles + disabledStyles : textExtraStyles
12964
+ extraStyles: textExtraStyles
12952
12965
  }, text)));
12953
12966
  });
12954
12967