@thecb/components 10.2.4-beta.5 → 10.2.4-beta.6
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 +9 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -11
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/badge/Badge.theme.js +4 -4
- package/src/components/molecules/link-card/LinkCard.js +4 -5
- package/src/components/molecules/link-card/LinkCard.stories.js +2 -12
- package/src/components/molecules/link-card/LinkCard.theme.js +6 -7
package/dist/index.cjs.js
CHANGED
|
@@ -18988,14 +18988,14 @@ var background$1 = {
|
|
|
18988
18988
|
warn: "".concat(HALF_COLONIAL_WHITE),
|
|
18989
18989
|
primary: "".concat(CORNFLOWER_BLUE),
|
|
18990
18990
|
success: "".concat(HINT_GREEN),
|
|
18991
|
-
disabled: "".concat(
|
|
18991
|
+
disabled: "".concat(GRECIAN_GREY)
|
|
18992
18992
|
};
|
|
18993
18993
|
var color$4 = {
|
|
18994
18994
|
info: "".concat(MATISSE_BLUE),
|
|
18995
18995
|
warn: "".concat(ZEST_ORANGE),
|
|
18996
18996
|
primary: "".concat(ROYAL_BLUE_VIVID),
|
|
18997
18997
|
success: "".concat(SEA_GREEN),
|
|
18998
|
-
disabled: "".concat(
|
|
18998
|
+
disabled: "".concat(MANATEE_GREY)
|
|
18999
18999
|
};
|
|
19000
19000
|
var fallbackValues$7 = {
|
|
19001
19001
|
background: background$1,
|
|
@@ -42469,19 +42469,19 @@ var iconsMap = (_iconsMap = {}, _defineProperty(_defineProperty(_defineProperty(
|
|
|
42469
42469
|
|
|
42470
42470
|
var activeBackgroundColor$1 = {
|
|
42471
42471
|
primary: "".concat(CORNFLOWER_BLUE),
|
|
42472
|
-
disabled: ""
|
|
42472
|
+
disabled: "transparent"
|
|
42473
42473
|
};
|
|
42474
42474
|
var backgroundColor$9 = {
|
|
42475
42475
|
primary: "".concat(LINK_WATER),
|
|
42476
|
-
disabled: ""
|
|
42476
|
+
disabled: "transparent"
|
|
42477
42477
|
};
|
|
42478
42478
|
var borderColor$5 = {
|
|
42479
42479
|
primary: "".concat(MOON_RAKER),
|
|
42480
|
-
disabled: "".concat(
|
|
42480
|
+
disabled: "".concat(GRECIAN_GREY)
|
|
42481
42481
|
};
|
|
42482
42482
|
var color$b = {
|
|
42483
42483
|
primary: "".concat(ROYAL_BLUE_VIVID),
|
|
42484
|
-
disabled: "".concat(
|
|
42484
|
+
disabled: "".concat(MANATEE_GREY)
|
|
42485
42485
|
};
|
|
42486
42486
|
var fallbackValues$I = {
|
|
42487
42487
|
activeBackgroundColor: activeBackgroundColor$1,
|
|
@@ -42542,9 +42542,7 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42542
42542
|
extraActiveStyles = _ref$extraActiveStyle === void 0 ? "" : _ref$extraActiveStyle,
|
|
42543
42543
|
themeValues = _ref.themeValues,
|
|
42544
42544
|
_ref$titleVariant = _ref.titleVariant,
|
|
42545
|
-
titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant
|
|
42546
|
-
_ref$disabled = _ref.disabled,
|
|
42547
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
42545
|
+
titleVariant = _ref$titleVariant === void 0 ? "h3" : _ref$titleVariant;
|
|
42548
42546
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
42549
42547
|
isMobile = _useContext.isMobile;
|
|
42550
42548
|
var regex = /\W/g;
|
|
@@ -42561,8 +42559,8 @@ var LinkCard = function LinkCard(_ref) {
|
|
|
42561
42559
|
extraStyles: extraStyles,
|
|
42562
42560
|
hoverStyles: extraHoverStyles,
|
|
42563
42561
|
activeStyles: extraActiveStyles,
|
|
42564
|
-
onClick: variant === "disabled"
|
|
42565
|
-
"aria-disabled": disabled
|
|
42562
|
+
onClick: variant === "disabled" ? noop : onClick,
|
|
42563
|
+
"aria-disabled": variant === "disabled"
|
|
42566
42564
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
42567
42565
|
childGap: 0,
|
|
42568
42566
|
bottomItem: 3,
|