@bigbinary/neeto-site-blocks 1.16.23 → 1.17.0
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 +9 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -17140,6 +17140,7 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17140
17140
|
title = _properties$content.title,
|
|
17141
17141
|
description = _properties$content.description,
|
|
17142
17142
|
pricingPlan = _properties$content.pricingPlan,
|
|
17143
|
+
options = _properties$content.options,
|
|
17143
17144
|
_properties$tiers = properties.tiers,
|
|
17144
17145
|
tiers = _properties$tiers === void 0 ? [] : _properties$tiers,
|
|
17145
17146
|
enableAnimation = properties.enableAnimation,
|
|
@@ -17173,12 +17174,12 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17173
17174
|
}, otherProps), {}, {
|
|
17174
17175
|
children: description
|
|
17175
17176
|
}))]
|
|
17176
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Toggle, {
|
|
17177
|
-
activeOption: isCurrentPricingPlanYearly ? "Yearly" : "Monthly",
|
|
17177
|
+
}), pricingPlan === PRICING_PLANS.monthly_and_yearly && /*#__PURE__*/jsxRuntime.jsx(Toggle, {
|
|
17178
17178
|
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: [
|
|
17179
|
+
options: [options.monthly, options.yearly],
|
|
17180
|
+
activeOption: isCurrentPricingPlanYearly ? options.yearly : options.monthly,
|
|
17180
17181
|
setActiveOption: function setActiveOption(option) {
|
|
17181
|
-
return setIsCurrentPricingPlanYearly(option ===
|
|
17182
|
+
return setIsCurrentPricingPlanYearly(option === options.yearly);
|
|
17182
17183
|
}
|
|
17183
17184
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
17184
17185
|
className: "col-span-12 grid grid-cols-12 justify-center gap-4",
|
|
@@ -17256,7 +17257,10 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17256
17257
|
className: "mt-8 w-full justify-center",
|
|
17257
17258
|
style: design.tierButton
|
|
17258
17259
|
}, button), {}, {
|
|
17259
|
-
id: "pricing-in-card-view-tier-".concat(index, "-button")
|
|
17260
|
+
id: "pricing-in-card-view-tier-".concat(index, "-button"),
|
|
17261
|
+
action: isCurrentPricingPlanYearly ? button.yearly.action : button.monthly.action,
|
|
17262
|
+
label: isCurrentPricingPlanYearly ? button.yearly.label : button.monthly.label,
|
|
17263
|
+
to: isCurrentPricingPlanYearly ? button.yearly.url : button.monthly.url
|
|
17260
17264
|
}, otherProps))]
|
|
17261
17265
|
}, getUniqueKey(tierTitle, tierDescription, index));
|
|
17262
17266
|
})
|