@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.cjs.js +9 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14252,7 +14252,8 @@ var StyledAnchor = styled__default["default"].a.attrs(function (props) {
|
|
|
14252
14252
|
var DropdownWrapper = styled__default["default"].div(function (_ref) {
|
|
14253
14253
|
var index = _ref.index,
|
|
14254
14254
|
height = _ref.height,
|
|
14255
|
-
totalLength = _ref.totalLength
|
|
14255
|
+
totalLength = _ref.totalLength,
|
|
14256
|
+
paddingHorizontal = _ref.paddingHorizontal;
|
|
14256
14257
|
var _useState = React.useState(0),
|
|
14257
14258
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
14258
14259
|
cumulativeWidth = _useState2[0],
|
|
@@ -14264,11 +14265,11 @@ var DropdownWrapper = styled__default["default"].div(function (_ref) {
|
|
|
14264
14265
|
|
|
14265
14266
|
// Calculate cumulative width of dropdowns with buffer
|
|
14266
14267
|
React.useEffect(function () {
|
|
14267
|
-
var cumulativeWidth =
|
|
14268
|
+
var cumulativeWidth = paddingHorizontal;
|
|
14268
14269
|
for (var i = totalLength - 1; i > index; i--) {
|
|
14269
14270
|
var dropdown = (iframeDocument !== null && iframeDocument !== void 0 ? iframeDocument : document).getElementById("dropdown-".concat(i));
|
|
14270
14271
|
if (dropdown) {
|
|
14271
|
-
cumulativeWidth += dropdown.offsetWidth +
|
|
14272
|
+
cumulativeWidth += dropdown.offsetWidth + 20; // buffer width
|
|
14272
14273
|
}
|
|
14273
14274
|
}
|
|
14274
14275
|
|
|
@@ -15595,7 +15596,7 @@ var Link = withConditionalRender(LinkElement, function () {
|
|
|
15595
15596
|
return !!(prop("label") || prop("icon"));
|
|
15596
15597
|
});
|
|
15597
15598
|
|
|
15598
|
-
var _excluded$h = ["link", "design", "index", "height", "className", "totalLength"];
|
|
15599
|
+
var _excluded$h = ["link", "design", "index", "height", "className", "totalLength", "paddingHorizontal"];
|
|
15599
15600
|
var Dropdown = function Dropdown(_ref) {
|
|
15600
15601
|
var link = _ref.link,
|
|
15601
15602
|
design = _ref.design,
|
|
@@ -15604,6 +15605,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
15604
15605
|
_ref$className = _ref.className,
|
|
15605
15606
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
15606
15607
|
totalLength = _ref.totalLength,
|
|
15608
|
+
_ref$paddingHorizonta = _ref.paddingHorizontal,
|
|
15609
|
+
paddingHorizontal = _ref$paddingHorizonta === void 0 ? 0 : _ref$paddingHorizonta,
|
|
15607
15610
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$h);
|
|
15608
15611
|
var _useState = React.useState(false),
|
|
15609
15612
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -15630,6 +15633,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
15630
15633
|
className: className,
|
|
15631
15634
|
height: height,
|
|
15632
15635
|
index: index,
|
|
15636
|
+
paddingHorizontal: paddingHorizontal,
|
|
15633
15637
|
totalLength: totalLength
|
|
15634
15638
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15635
15639
|
className: "flex cursor-pointer items-center justify-between lg:h-full lg:justify-center",
|
|
@@ -41916,6 +41920,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
41916
41920
|
design: design.links,
|
|
41917
41921
|
height: headerHeight,
|
|
41918
41922
|
key: getUniqueKey(link.label, link.to, index),
|
|
41923
|
+
paddingHorizontal: design.body.paddingHorizontal,
|
|
41919
41924
|
totalLength: properties.links.length
|
|
41920
41925
|
});
|
|
41921
41926
|
})), /*#__PURE__*/React__default["default"].createElement("button", {
|