@bigbinary/neeto-site-blocks 1.16.23 → 1.17.1
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 +11 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7185,7 +7185,8 @@ var Button = function Button(_ref) {
|
|
|
7185
7185
|
tempDiv.innerHTML = popupCode;
|
|
7186
7186
|
var nodes = Array.from(tempDiv.childNodes);
|
|
7187
7187
|
if (ramda.isEmpty(nodes)) return;
|
|
7188
|
-
nodes.forEach(function (
|
|
7188
|
+
nodes.forEach(function () {
|
|
7189
|
+
var node = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7189
7190
|
if (node.tagName === "SCRIPT") {
|
|
7190
7191
|
var script = document.createElement("script");
|
|
7191
7192
|
if (node.src) {
|
|
@@ -17140,6 +17141,7 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17140
17141
|
title = _properties$content.title,
|
|
17141
17142
|
description = _properties$content.description,
|
|
17142
17143
|
pricingPlan = _properties$content.pricingPlan,
|
|
17144
|
+
options = _properties$content.options,
|
|
17143
17145
|
_properties$tiers = properties.tiers,
|
|
17144
17146
|
tiers = _properties$tiers === void 0 ? [] : _properties$tiers,
|
|
17145
17147
|
enableAnimation = properties.enableAnimation,
|
|
@@ -17173,12 +17175,12 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17173
17175
|
}, otherProps), {}, {
|
|
17174
17176
|
children: description
|
|
17175
17177
|
}))]
|
|
17176
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Toggle, {
|
|
17177
|
-
activeOption: isCurrentPricingPlanYearly ? "Yearly" : "Monthly",
|
|
17178
|
+
}), pricingPlan === PRICING_PLANS.monthly_and_yearly && /*#__PURE__*/jsxRuntime.jsx(Toggle, {
|
|
17178
17179
|
className: "col-span-8 col-start-3 md:col-span-4 md:col-start-5 lg:col-span-4 lg:col-start-5",
|
|
17179
|
-
options: [
|
|
17180
|
+
options: [options.monthly, options.yearly],
|
|
17181
|
+
activeOption: isCurrentPricingPlanYearly ? options.yearly : options.monthly,
|
|
17180
17182
|
setActiveOption: function setActiveOption(option) {
|
|
17181
|
-
return setIsCurrentPricingPlanYearly(option ===
|
|
17183
|
+
return setIsCurrentPricingPlanYearly(option === options.yearly);
|
|
17182
17184
|
}
|
|
17183
17185
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
17184
17186
|
className: "col-span-12 grid grid-cols-12 justify-center gap-4",
|
|
@@ -17256,7 +17258,10 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17256
17258
|
className: "mt-8 w-full justify-center",
|
|
17257
17259
|
style: design.tierButton
|
|
17258
17260
|
}, button), {}, {
|
|
17259
|
-
id: "pricing-in-card-view-tier-".concat(index, "-button")
|
|
17261
|
+
id: "pricing-in-card-view-tier-".concat(index, "-button"),
|
|
17262
|
+
action: isCurrentPricingPlanYearly ? button.yearly.action : button.monthly.action,
|
|
17263
|
+
label: isCurrentPricingPlanYearly ? button.yearly.label : button.monthly.label,
|
|
17264
|
+
to: isCurrentPricingPlanYearly ? button.yearly.url : button.monthly.url
|
|
17260
17265
|
}, otherProps))]
|
|
17261
17266
|
}, getUniqueKey(tierTitle, tierDescription, index));
|
|
17262
17267
|
})
|