@bigbinary/neeto-site-blocks 1.4.4 → 1.4.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 CHANGED
@@ -2697,7 +2697,11 @@ var SPACING_VALUES = {
2697
2697
  "6xl": 80,
2698
2698
  "7xl": 96,
2699
2699
  "8xl": 112,
2700
- "9xl": 128
2700
+ "9xl": 128,
2701
+ "10xl": 144,
2702
+ "11xl": 160,
2703
+ "12xl": 176,
2704
+ "13xl": 192
2701
2705
  };
2702
2706
  var BACKGROUND_IMAGE_SIZE_VALUES = {
2703
2707
  auto: "auto",
@@ -4701,9 +4705,10 @@ var StyledWrapper = styled__default["default"].div.attrs(function (props) {
4701
4705
  borderWidth: (_design$border2 = design.border) === null || _design$border2 === void 0 ? void 0 : _design$border2.borderWidth
4702
4706
  };
4703
4707
  var borderColorStyles = pickBy(identity, borderColors);
4704
- var backgroundStyles = {
4708
+ var backgroundStyles = _objectSpread$7({
4705
4709
  position: "relative",
4706
- zIndex: 0,
4710
+ zIndex: 0
4711
+ }, backgroundImage.src ? {
4707
4712
  "&::before": _objectSpread$7({
4708
4713
  content: "''",
4709
4714
  position: "absolute",
@@ -4715,7 +4720,7 @@ var StyledWrapper = styled__default["default"].div.attrs(function (props) {
4715
4720
  zIndex: -1,
4716
4721
  opacity: backgroundImage.opacity || 1
4717
4722
  }, backgroundImage)
4718
- };
4723
+ } : {});
4719
4724
  return mergeAll([design, borderColorStyles, backgroundStyles]);
4720
4725
  });
4721
4726
 
@@ -14208,10 +14213,28 @@ var StyledAnchor = styled__default["default"].a.attrs(function (props) {
14208
14213
  color0: design.backgroundColor,
14209
14214
  percentage: percentage
14210
14215
  }),
14211
- color: !isButton && blendColors({
14216
+ "&:before": {
14217
+ width: "100%",
14218
+ display: isButton && "none",
14219
+ transitionProperty: "all",
14220
+ transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
14221
+ transitionDuration: ".2s"
14222
+ }
14223
+ },
14224
+ "&:before": {
14225
+ content: '""',
14226
+ position: "absolute",
14227
+ bottom: "-0.225rem",
14228
+ left: 0,
14229
+ width: 0,
14230
+ height: "1px",
14231
+ backgroundColor: blendColors({
14212
14232
  color0: design.color,
14213
14233
  percentage: percentage
14214
- })
14234
+ }),
14235
+ transitionProperty: "all",
14236
+ transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
14237
+ transitionDuration: ".2s"
14215
14238
  }
14216
14239
  };
14217
14240
  return mergeAll([design, borderColorStyles, anchorStyles]);
@@ -15444,11 +15467,11 @@ var Button = function Button(_ref) {
15444
15467
  className: classnames([anchorBaseClass, className]),
15445
15468
  design: style,
15446
15469
  href: to !== null && to !== void 0 ? to : "",
15447
- rel: "noreferrer"
15470
+ rel: "noreferrer",
15471
+ isButton: true
15448
15472
  };
15449
15473
  if (action === "external") {
15450
15474
  return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
15451
- isButton: true,
15452
15475
  target: "_blank"
15453
15476
  }), label);
15454
15477
  }
@@ -15461,9 +15484,7 @@ var Button = function Button(_ref) {
15461
15484
  to: pageUrl
15462
15485
  }), label);
15463
15486
  }
15464
- return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
15465
- isButton: true
15466
- }), label);
15487
+ return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, commonProps, label);
15467
15488
  };
15468
15489
  var Button$1 = withConditionalRender(Button, prop("label"));
15469
15490
 
@@ -15489,7 +15510,7 @@ var LinkElement = function LinkElement(_ref) {
15489
15510
  disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd,
15490
15511
  _ref$children = _ref.children,
15491
15512
  children = _ref$children === void 0 ? null : _ref$children;
15492
- var baseClass = classnames("inline-flex items-center transition-all duration-300 ease-in-out", {
15513
+ var baseClass = classnames("inline-flex items-center transition-all duration-300 ease-in-out relative", {
15493
15514
  "pointer-events-none": action === "" || disableButtonAndLinks
15494
15515
  });
15495
15516
  var commonProps = {