@bigbinary/neeto-site-blocks 2.0.2 → 2.0.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 +14 -17
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +14 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -13645,20 +13645,27 @@ var CtaWithEmailAction = function CtaWithEmailAction(_ref) {
|
|
|
13645
13645
|
message: successMessage,
|
|
13646
13646
|
status: "success"
|
|
13647
13647
|
});
|
|
13648
|
-
|
|
13648
|
+
if (button.action === "external") {
|
|
13649
|
+
window.open(button.url, "_blank").focus();
|
|
13650
|
+
} else if (button.action === "page") {
|
|
13651
|
+
window.location.pathname = button.url;
|
|
13652
|
+
} else if (button.action === "internal") {
|
|
13653
|
+
history.pushState(null, "", button.url);
|
|
13654
|
+
}
|
|
13655
|
+
_context.next = 14;
|
|
13649
13656
|
break;
|
|
13650
|
-
case
|
|
13651
|
-
_context.prev =
|
|
13657
|
+
case 11:
|
|
13658
|
+
_context.prev = 11;
|
|
13652
13659
|
_context.t0 = _context["catch"](4);
|
|
13653
13660
|
setResponse({
|
|
13654
13661
|
message: _context.t0.message,
|
|
13655
13662
|
status: "error"
|
|
13656
13663
|
});
|
|
13657
|
-
case
|
|
13664
|
+
case 14:
|
|
13658
13665
|
case "end":
|
|
13659
13666
|
return _context.stop();
|
|
13660
13667
|
}
|
|
13661
|
-
}, _callee, null, [[4,
|
|
13668
|
+
}, _callee, null, [[4, 11]]);
|
|
13662
13669
|
}));
|
|
13663
13670
|
return function handleSubscribe() {
|
|
13664
13671
|
return _ref2.apply(this, arguments);
|
|
@@ -17221,7 +17228,7 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17221
17228
|
return setIsCurrentPricingPlanYearly(option === options.yearly);
|
|
17222
17229
|
}
|
|
17223
17230
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
17224
|
-
className: "col-span-12
|
|
17231
|
+
className: "col-span-12 flex flex-wrap justify-center gap-4",
|
|
17225
17232
|
children: tiers.map(function (_ref2, index) {
|
|
17226
17233
|
var tierTitle = _ref2.title,
|
|
17227
17234
|
tierDescription = _ref2.description,
|
|
@@ -17230,19 +17237,9 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17230
17237
|
button = _ref2.button,
|
|
17231
17238
|
features = _ref2.features;
|
|
17232
17239
|
var pricing = renderPricing(pricingPlan, yearlyPricing, monthlyPricing);
|
|
17233
|
-
var currRow = Math.floor(index / 3) + 1;
|
|
17234
|
-
var totalRows = Math.ceil(tiers.length / 3);
|
|
17235
17240
|
return /*#__PURE__*/jsxRuntime.jsxs(StyledWrapper, {
|
|
17241
|
+
className: "w-80 max-w-full",
|
|
17236
17242
|
design: design.tierBlock,
|
|
17237
|
-
className: classnames__default["default"]("inline-flex flex-col justify-between", {
|
|
17238
|
-
// 1 tier: center it with col-start-3 and span 8
|
|
17239
|
-
"col-span-4 col-start-5": currRow === totalRows && tiers.length % 3 === 1,
|
|
17240
|
-
// 2 tiers: center them in col 3–10 (each takes 4 columns)
|
|
17241
|
-
"col-span-4 col-start-3": currRow === totalRows && tiers.length % 3 === 2 && index % 3 === 0,
|
|
17242
|
-
"col-span-4 col-start-7": currRow === totalRows && tiers.length % 3 === 2 && index % 3 === 1,
|
|
17243
|
-
// 3 tiers: natural 4-column layout across all 12
|
|
17244
|
-
"col-span-12 sm:col-span-6 lg:col-span-4": tiers.length % 3 === 0 || currRow !== totalRows
|
|
17245
|
-
}),
|
|
17246
17243
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
17247
17244
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography$1, _objectSpread$2(_objectSpread$2({
|
|
17248
17245
|
index: index,
|