@bigbinary/neeto-site-blocks 1.2.2 → 1.2.4
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 +29 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +29 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2879,6 +2879,20 @@ var IMAGE_POSITIONS = {
|
|
|
2879
2879
|
left: "left",
|
|
2880
2880
|
right: "right"
|
|
2881
2881
|
};
|
|
2882
|
+
var LOGO_SIZE_VALUES = {
|
|
2883
|
+
xs: 10,
|
|
2884
|
+
sm: 14,
|
|
2885
|
+
md: 20,
|
|
2886
|
+
lg: 24,
|
|
2887
|
+
xl: 28,
|
|
2888
|
+
"2xl": 32,
|
|
2889
|
+
"3xl": 36,
|
|
2890
|
+
"4xl": 40,
|
|
2891
|
+
"5xl": 44,
|
|
2892
|
+
"6xl": 48,
|
|
2893
|
+
"7xl": 52,
|
|
2894
|
+
"8xl": 56
|
|
2895
|
+
};
|
|
2882
2896
|
|
|
2883
2897
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
2884
2898
|
__proto__: null,
|
|
@@ -2903,7 +2917,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
2903
2917
|
DEFAULT_BUTTON_STYLES: DEFAULT_BUTTON_STYLES,
|
|
2904
2918
|
DEFAULT_TYPOGRAPHY_STYLES: DEFAULT_TYPOGRAPHY_STYLES,
|
|
2905
2919
|
DEFAULT_LINK_STYLES: DEFAULT_LINK_STYLES,
|
|
2906
|
-
IMAGE_POSITIONS: IMAGE_POSITIONS
|
|
2920
|
+
IMAGE_POSITIONS: IMAGE_POSITIONS,
|
|
2921
|
+
LOGO_SIZE_VALUES: LOGO_SIZE_VALUES
|
|
2907
2922
|
});
|
|
2908
2923
|
|
|
2909
2924
|
var _excluded$1A = ["size"];
|
|
@@ -15404,9 +15419,11 @@ var Button = function Button(_ref) {
|
|
|
15404
15419
|
draftMode = _ref$draftMode === void 0 ? false : _ref$draftMode,
|
|
15405
15420
|
_ref$baseUrl = _ref.baseUrl,
|
|
15406
15421
|
baseUrl = _ref$baseUrl === void 0 ? "" : _ref$baseUrl,
|
|
15407
|
-
Link = _ref.link
|
|
15422
|
+
Link = _ref.link,
|
|
15423
|
+
_ref$disableButtonAnd = _ref.disableButtonAndLinks,
|
|
15424
|
+
disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd;
|
|
15408
15425
|
var anchorBaseClass = classnames("inline-flex transition-all duration-300 ease-in-out", {
|
|
15409
|
-
"pointer-events-none": action === ""
|
|
15426
|
+
"pointer-events-none": action === "" || disableButtonAndLinks
|
|
15410
15427
|
});
|
|
15411
15428
|
var commonProps = {
|
|
15412
15429
|
className: classnames([anchorBaseClass, className]),
|
|
@@ -15450,9 +15467,11 @@ var LinkElement = function LinkElement(_ref) {
|
|
|
15450
15467
|
baseUrl = _ref$baseUrl === void 0 ? "" : _ref$baseUrl,
|
|
15451
15468
|
_ref$draftMode = _ref.draftMode,
|
|
15452
15469
|
draftMode = _ref$draftMode === void 0 ? false : _ref$draftMode,
|
|
15453
|
-
Link = _ref.link
|
|
15470
|
+
Link = _ref.link,
|
|
15471
|
+
_ref$disableButtonAnd = _ref.disableButtonAndLinks,
|
|
15472
|
+
disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd;
|
|
15454
15473
|
var baseClass = classnames("inline-flex items-center transition-all duration-300 ease-in-out", {
|
|
15455
|
-
"pointer-events-none": action === ""
|
|
15474
|
+
"pointer-events-none": action === "" || disableButtonAndLinks
|
|
15456
15475
|
});
|
|
15457
15476
|
var commonProps = {
|
|
15458
15477
|
className: classnames([baseClass, className]),
|
|
@@ -40578,8 +40597,8 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
40578
40597
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40579
40598
|
ref: headerIntersectorRef
|
|
40580
40599
|
}), /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
40581
|
-
design: design.body,
|
|
40582
40600
|
id: id,
|
|
40601
|
+
design: design.body,
|
|
40583
40602
|
nestedClassName: baseClasses,
|
|
40584
40603
|
nestedComponent: StyledWrapper,
|
|
40585
40604
|
className: classnames({
|
|
@@ -40589,7 +40608,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
40589
40608
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
40590
40609
|
design: design.logo,
|
|
40591
40610
|
src: properties.logo.src,
|
|
40592
|
-
className: classnames("col-start-2 ml-3 flex max-h-8 justify-start sm:ml-0 sm:max-h-10 lg:col-span-3 lg:col-start-1 lg:max-h-
|
|
40611
|
+
className: classnames("col-start-2 ml-3 flex max-h-8 justify-start sm:ml-0 sm:max-h-10 lg:col-span-3 lg:col-start-1 lg:max-h-14", {
|
|
40593
40612
|
"col-span-10": isEmpty(buttons),
|
|
40594
40613
|
"col-span-3 sm:col-span-4 sm:col-start-2": neetoCist.isNotEmpty(buttons)
|
|
40595
40614
|
})
|
|
@@ -40654,8 +40673,8 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
40654
40673
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40655
40674
|
ref: headerIntersectorRef
|
|
40656
40675
|
}), /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
40657
|
-
design: design.body,
|
|
40658
40676
|
id: id,
|
|
40677
|
+
design: design.body,
|
|
40659
40678
|
nestedClassName: baseClasses,
|
|
40660
40679
|
nestedComponent: StyledWrapper,
|
|
40661
40680
|
className: classnames({
|
|
@@ -40670,7 +40689,7 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
40670
40689
|
style: design.links
|
|
40671
40690
|
}, link, otherProps));
|
|
40672
40691
|
})), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
40673
|
-
className: "col-span-6 col-start-4 m-auto flex max-h-8 justify-center sm:col-span-4 sm:col-start-5 sm:max-h-10 lg:col-span-3 lg:col-start-6 lg:max-h-
|
|
40692
|
+
className: "col-span-6 col-start-4 m-auto flex max-h-8 justify-center sm:col-span-4 sm:col-start-5 sm:max-h-10 lg:col-span-3 lg:col-start-6 lg:max-h-14",
|
|
40674
40693
|
design: design.logo,
|
|
40675
40694
|
src: properties.logo.src
|
|
40676
40695
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -40764,7 +40783,7 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
40764
40783
|
"col-span-4": neetoCist.isNotEmpty(buttons)
|
|
40765
40784
|
})
|
|
40766
40785
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
40767
|
-
className: "max-h-8 sm:max-h-10 lg:max-h-
|
|
40786
|
+
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
40768
40787
|
design: design.logo,
|
|
40769
40788
|
src: properties.logo.src
|
|
40770
40789
|
}), /*#__PURE__*/React__default["default"].createElement(Typography$1, {
|