@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.js
CHANGED
|
@@ -13626,20 +13626,27 @@ var CtaWithEmailAction = function CtaWithEmailAction(_ref) {
|
|
|
13626
13626
|
message: successMessage,
|
|
13627
13627
|
status: "success"
|
|
13628
13628
|
});
|
|
13629
|
-
|
|
13629
|
+
if (button.action === "external") {
|
|
13630
|
+
window.open(button.url, "_blank").focus();
|
|
13631
|
+
} else if (button.action === "page") {
|
|
13632
|
+
window.location.pathname = button.url;
|
|
13633
|
+
} else if (button.action === "internal") {
|
|
13634
|
+
history.pushState(null, "", button.url);
|
|
13635
|
+
}
|
|
13636
|
+
_context.next = 14;
|
|
13630
13637
|
break;
|
|
13631
|
-
case
|
|
13632
|
-
_context.prev =
|
|
13638
|
+
case 11:
|
|
13639
|
+
_context.prev = 11;
|
|
13633
13640
|
_context.t0 = _context["catch"](4);
|
|
13634
13641
|
setResponse({
|
|
13635
13642
|
message: _context.t0.message,
|
|
13636
13643
|
status: "error"
|
|
13637
13644
|
});
|
|
13638
|
-
case
|
|
13645
|
+
case 14:
|
|
13639
13646
|
case "end":
|
|
13640
13647
|
return _context.stop();
|
|
13641
13648
|
}
|
|
13642
|
-
}, _callee, null, [[4,
|
|
13649
|
+
}, _callee, null, [[4, 11]]);
|
|
13643
13650
|
}));
|
|
13644
13651
|
return function handleSubscribe() {
|
|
13645
13652
|
return _ref2.apply(this, arguments);
|
|
@@ -17202,7 +17209,7 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17202
17209
|
return setIsCurrentPricingPlanYearly(option === options.yearly);
|
|
17203
17210
|
}
|
|
17204
17211
|
}), /*#__PURE__*/jsx("div", {
|
|
17205
|
-
className: "col-span-12
|
|
17212
|
+
className: "col-span-12 flex flex-wrap justify-center gap-4",
|
|
17206
17213
|
children: tiers.map(function (_ref2, index) {
|
|
17207
17214
|
var tierTitle = _ref2.title,
|
|
17208
17215
|
tierDescription = _ref2.description,
|
|
@@ -17211,19 +17218,9 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17211
17218
|
button = _ref2.button,
|
|
17212
17219
|
features = _ref2.features;
|
|
17213
17220
|
var pricing = renderPricing(pricingPlan, yearlyPricing, monthlyPricing);
|
|
17214
|
-
var currRow = Math.floor(index / 3) + 1;
|
|
17215
|
-
var totalRows = Math.ceil(tiers.length / 3);
|
|
17216
17221
|
return /*#__PURE__*/jsxs(StyledWrapper, {
|
|
17222
|
+
className: "w-80 max-w-full",
|
|
17217
17223
|
design: design.tierBlock,
|
|
17218
|
-
className: classnames("inline-flex flex-col justify-between", {
|
|
17219
|
-
// 1 tier: center it with col-start-3 and span 8
|
|
17220
|
-
"col-span-4 col-start-5": currRow === totalRows && tiers.length % 3 === 1,
|
|
17221
|
-
// 2 tiers: center them in col 3–10 (each takes 4 columns)
|
|
17222
|
-
"col-span-4 col-start-3": currRow === totalRows && tiers.length % 3 === 2 && index % 3 === 0,
|
|
17223
|
-
"col-span-4 col-start-7": currRow === totalRows && tiers.length % 3 === 2 && index % 3 === 1,
|
|
17224
|
-
// 3 tiers: natural 4-column layout across all 12
|
|
17225
|
-
"col-span-12 sm:col-span-6 lg:col-span-4": tiers.length % 3 === 0 || currRow !== totalRows
|
|
17226
|
-
}),
|
|
17227
17224
|
children: [/*#__PURE__*/jsxs("div", {
|
|
17228
17225
|
children: [/*#__PURE__*/jsx(Typography$1, _objectSpread$2(_objectSpread$2({
|
|
17229
17226
|
index: index,
|