@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.js
CHANGED
|
@@ -7166,7 +7166,8 @@ var Button = function Button(_ref) {
|
|
|
7166
7166
|
tempDiv.innerHTML = popupCode;
|
|
7167
7167
|
var nodes = Array.from(tempDiv.childNodes);
|
|
7168
7168
|
if (isEmpty(nodes)) return;
|
|
7169
|
-
nodes.forEach(function (
|
|
7169
|
+
nodes.forEach(function () {
|
|
7170
|
+
var node = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7170
7171
|
if (node.tagName === "SCRIPT") {
|
|
7171
7172
|
var script = document.createElement("script");
|
|
7172
7173
|
if (node.src) {
|
|
@@ -17121,6 +17122,7 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17121
17122
|
title = _properties$content.title,
|
|
17122
17123
|
description = _properties$content.description,
|
|
17123
17124
|
pricingPlan = _properties$content.pricingPlan,
|
|
17125
|
+
options = _properties$content.options,
|
|
17124
17126
|
_properties$tiers = properties.tiers,
|
|
17125
17127
|
tiers = _properties$tiers === void 0 ? [] : _properties$tiers,
|
|
17126
17128
|
enableAnimation = properties.enableAnimation,
|
|
@@ -17154,12 +17156,12 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17154
17156
|
}, otherProps), {}, {
|
|
17155
17157
|
children: description
|
|
17156
17158
|
}))]
|
|
17157
|
-
}), /*#__PURE__*/jsx(Toggle, {
|
|
17158
|
-
activeOption: isCurrentPricingPlanYearly ? "Yearly" : "Monthly",
|
|
17159
|
+
}), pricingPlan === PRICING_PLANS.monthly_and_yearly && /*#__PURE__*/jsx(Toggle, {
|
|
17159
17160
|
className: "col-span-8 col-start-3 md:col-span-4 md:col-start-5 lg:col-span-4 lg:col-start-5",
|
|
17160
|
-
options: [
|
|
17161
|
+
options: [options.monthly, options.yearly],
|
|
17162
|
+
activeOption: isCurrentPricingPlanYearly ? options.yearly : options.monthly,
|
|
17161
17163
|
setActiveOption: function setActiveOption(option) {
|
|
17162
|
-
return setIsCurrentPricingPlanYearly(option ===
|
|
17164
|
+
return setIsCurrentPricingPlanYearly(option === options.yearly);
|
|
17163
17165
|
}
|
|
17164
17166
|
}), /*#__PURE__*/jsx("div", {
|
|
17165
17167
|
className: "col-span-12 grid grid-cols-12 justify-center gap-4",
|
|
@@ -17237,7 +17239,10 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17237
17239
|
className: "mt-8 w-full justify-center",
|
|
17238
17240
|
style: design.tierButton
|
|
17239
17241
|
}, button), {}, {
|
|
17240
|
-
id: "pricing-in-card-view-tier-".concat(index, "-button")
|
|
17242
|
+
id: "pricing-in-card-view-tier-".concat(index, "-button"),
|
|
17243
|
+
action: isCurrentPricingPlanYearly ? button.yearly.action : button.monthly.action,
|
|
17244
|
+
label: isCurrentPricingPlanYearly ? button.yearly.label : button.monthly.label,
|
|
17245
|
+
to: isCurrentPricingPlanYearly ? button.yearly.url : button.monthly.url
|
|
17241
17246
|
}, otherProps))]
|
|
17242
17247
|
}, getUniqueKey(tierTitle, tierDescription, index));
|
|
17243
17248
|
})
|