@bigbinary/neeto-site-blocks 1.7.1 → 1.7.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.js CHANGED
@@ -14206,7 +14206,8 @@ var StyledAnchor = styled.a.attrs(function (props) {
14206
14206
  var DropdownWrapper = styled.div(function (_ref) {
14207
14207
  var index = _ref.index,
14208
14208
  height = _ref.height,
14209
- totalLength = _ref.totalLength;
14209
+ totalLength = _ref.totalLength,
14210
+ paddingHorizontal = _ref.paddingHorizontal;
14210
14211
  var _useState = useState(0),
14211
14212
  _useState2 = _slicedToArray(_useState, 2),
14212
14213
  cumulativeWidth = _useState2[0],
@@ -14218,11 +14219,11 @@ var DropdownWrapper = styled.div(function (_ref) {
14218
14219
 
14219
14220
  // Calculate cumulative width of dropdowns with buffer
14220
14221
  useEffect(function () {
14221
- var cumulativeWidth = 0;
14222
+ var cumulativeWidth = paddingHorizontal;
14222
14223
  for (var i = totalLength - 1; i > index; i--) {
14223
14224
  var dropdown = (iframeDocument !== null && iframeDocument !== void 0 ? iframeDocument : document).getElementById("dropdown-".concat(i));
14224
14225
  if (dropdown) {
14225
- cumulativeWidth += dropdown.offsetWidth + 15; // buffer width
14226
+ cumulativeWidth += dropdown.offsetWidth + 20; // buffer width
14226
14227
  }
14227
14228
  }
14228
14229
 
@@ -15549,7 +15550,7 @@ var Link = withConditionalRender(LinkElement, function () {
15549
15550
  return !!(prop("label") || prop("icon"));
15550
15551
  });
15551
15552
 
15552
- var _excluded$h = ["link", "design", "index", "height", "className", "totalLength"];
15553
+ var _excluded$h = ["link", "design", "index", "height", "className", "totalLength", "paddingHorizontal"];
15553
15554
  var Dropdown = function Dropdown(_ref) {
15554
15555
  var link = _ref.link,
15555
15556
  design = _ref.design,
@@ -15558,6 +15559,8 @@ var Dropdown = function Dropdown(_ref) {
15558
15559
  _ref$className = _ref.className,
15559
15560
  className = _ref$className === void 0 ? "" : _ref$className,
15560
15561
  totalLength = _ref.totalLength,
15562
+ _ref$paddingHorizonta = _ref.paddingHorizontal,
15563
+ paddingHorizontal = _ref$paddingHorizonta === void 0 ? 0 : _ref$paddingHorizonta,
15561
15564
  otherProps = _objectWithoutProperties(_ref, _excluded$h);
15562
15565
  var _useState = useState(false),
15563
15566
  _useState2 = _slicedToArray(_useState, 2),
@@ -15584,6 +15587,7 @@ var Dropdown = function Dropdown(_ref) {
15584
15587
  className: className,
15585
15588
  height: height,
15586
15589
  index: index,
15590
+ paddingHorizontal: paddingHorizontal,
15587
15591
  totalLength: totalLength
15588
15592
  }, /*#__PURE__*/React__default.createElement("div", {
15589
15593
  className: "flex cursor-pointer items-center justify-between lg:h-full lg:justify-center",
@@ -41870,6 +41874,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
41870
41874
  design: design.links,
41871
41875
  height: headerHeight,
41872
41876
  key: getUniqueKey(link.label, link.to, index),
41877
+ paddingHorizontal: design.body.paddingHorizontal,
41873
41878
  totalLength: properties.links.length
41874
41879
  });
41875
41880
  })), /*#__PURE__*/React__default.createElement("button", {