@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.js
CHANGED
|
@@ -2833,6 +2833,20 @@ var IMAGE_POSITIONS = {
|
|
|
2833
2833
|
left: "left",
|
|
2834
2834
|
right: "right"
|
|
2835
2835
|
};
|
|
2836
|
+
var LOGO_SIZE_VALUES = {
|
|
2837
|
+
xs: 10,
|
|
2838
|
+
sm: 14,
|
|
2839
|
+
md: 20,
|
|
2840
|
+
lg: 24,
|
|
2841
|
+
xl: 28,
|
|
2842
|
+
"2xl": 32,
|
|
2843
|
+
"3xl": 36,
|
|
2844
|
+
"4xl": 40,
|
|
2845
|
+
"5xl": 44,
|
|
2846
|
+
"6xl": 48,
|
|
2847
|
+
"7xl": 52,
|
|
2848
|
+
"8xl": 56
|
|
2849
|
+
};
|
|
2836
2850
|
|
|
2837
2851
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
2838
2852
|
__proto__: null,
|
|
@@ -2857,7 +2871,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
2857
2871
|
DEFAULT_BUTTON_STYLES: DEFAULT_BUTTON_STYLES,
|
|
2858
2872
|
DEFAULT_TYPOGRAPHY_STYLES: DEFAULT_TYPOGRAPHY_STYLES,
|
|
2859
2873
|
DEFAULT_LINK_STYLES: DEFAULT_LINK_STYLES,
|
|
2860
|
-
IMAGE_POSITIONS: IMAGE_POSITIONS
|
|
2874
|
+
IMAGE_POSITIONS: IMAGE_POSITIONS,
|
|
2875
|
+
LOGO_SIZE_VALUES: LOGO_SIZE_VALUES
|
|
2861
2876
|
});
|
|
2862
2877
|
|
|
2863
2878
|
var _excluded$1A = ["size"];
|
|
@@ -15358,9 +15373,11 @@ var Button = function Button(_ref) {
|
|
|
15358
15373
|
draftMode = _ref$draftMode === void 0 ? false : _ref$draftMode,
|
|
15359
15374
|
_ref$baseUrl = _ref.baseUrl,
|
|
15360
15375
|
baseUrl = _ref$baseUrl === void 0 ? "" : _ref$baseUrl,
|
|
15361
|
-
Link = _ref.link
|
|
15376
|
+
Link = _ref.link,
|
|
15377
|
+
_ref$disableButtonAnd = _ref.disableButtonAndLinks,
|
|
15378
|
+
disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd;
|
|
15362
15379
|
var anchorBaseClass = classnames("inline-flex transition-all duration-300 ease-in-out", {
|
|
15363
|
-
"pointer-events-none": action === ""
|
|
15380
|
+
"pointer-events-none": action === "" || disableButtonAndLinks
|
|
15364
15381
|
});
|
|
15365
15382
|
var commonProps = {
|
|
15366
15383
|
className: classnames([anchorBaseClass, className]),
|
|
@@ -15404,9 +15421,11 @@ var LinkElement = function LinkElement(_ref) {
|
|
|
15404
15421
|
baseUrl = _ref$baseUrl === void 0 ? "" : _ref$baseUrl,
|
|
15405
15422
|
_ref$draftMode = _ref.draftMode,
|
|
15406
15423
|
draftMode = _ref$draftMode === void 0 ? false : _ref$draftMode,
|
|
15407
|
-
Link = _ref.link
|
|
15424
|
+
Link = _ref.link,
|
|
15425
|
+
_ref$disableButtonAnd = _ref.disableButtonAndLinks,
|
|
15426
|
+
disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd;
|
|
15408
15427
|
var baseClass = classnames("inline-flex items-center transition-all duration-300 ease-in-out", {
|
|
15409
|
-
"pointer-events-none": action === ""
|
|
15428
|
+
"pointer-events-none": action === "" || disableButtonAndLinks
|
|
15410
15429
|
});
|
|
15411
15430
|
var commonProps = {
|
|
15412
15431
|
className: classnames([baseClass, className]),
|
|
@@ -40532,8 +40551,8 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
40532
40551
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
40533
40552
|
ref: headerIntersectorRef
|
|
40534
40553
|
}), /*#__PURE__*/React__default.createElement(BlockWrapper, {
|
|
40535
|
-
design: design.body,
|
|
40536
40554
|
id: id,
|
|
40555
|
+
design: design.body,
|
|
40537
40556
|
nestedClassName: baseClasses,
|
|
40538
40557
|
nestedComponent: StyledWrapper,
|
|
40539
40558
|
className: classnames({
|
|
@@ -40543,7 +40562,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
40543
40562
|
}, /*#__PURE__*/React__default.createElement(StyledImage$1, {
|
|
40544
40563
|
design: design.logo,
|
|
40545
40564
|
src: properties.logo.src,
|
|
40546
|
-
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-
|
|
40565
|
+
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", {
|
|
40547
40566
|
"col-span-10": isEmpty(buttons),
|
|
40548
40567
|
"col-span-3 sm:col-span-4 sm:col-start-2": isNotEmpty(buttons)
|
|
40549
40568
|
})
|
|
@@ -40608,8 +40627,8 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
40608
40627
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
40609
40628
|
ref: headerIntersectorRef
|
|
40610
40629
|
}), /*#__PURE__*/React__default.createElement(BlockWrapper, {
|
|
40611
|
-
design: design.body,
|
|
40612
40630
|
id: id,
|
|
40631
|
+
design: design.body,
|
|
40613
40632
|
nestedClassName: baseClasses,
|
|
40614
40633
|
nestedComponent: StyledWrapper,
|
|
40615
40634
|
className: classnames({
|
|
@@ -40624,7 +40643,7 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
40624
40643
|
style: design.links
|
|
40625
40644
|
}, link, otherProps));
|
|
40626
40645
|
})), /*#__PURE__*/React__default.createElement(StyledImage$1, {
|
|
40627
|
-
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-
|
|
40646
|
+
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",
|
|
40628
40647
|
design: design.logo,
|
|
40629
40648
|
src: properties.logo.src
|
|
40630
40649
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -40718,7 +40737,7 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
40718
40737
|
"col-span-4": isNotEmpty(buttons)
|
|
40719
40738
|
})
|
|
40720
40739
|
}, /*#__PURE__*/React__default.createElement(StyledImage$1, {
|
|
40721
|
-
className: "max-h-8 sm:max-h-10 lg:max-h-
|
|
40740
|
+
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
40722
40741
|
design: design.logo,
|
|
40723
40742
|
src: properties.logo.src
|
|
40724
40743
|
}), /*#__PURE__*/React__default.createElement(Typography$1, {
|