@bigbinary/neeto-site-blocks 1.16.22 → 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 +13 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7225,7 +7225,10 @@ var Button = function Button(_ref) {
|
|
|
7225
7225
|
};
|
|
7226
7226
|
var Button$1 = withConditionalRender(Button, ramda.prop("label"));
|
|
7227
7227
|
|
|
7228
|
-
var createStyledIcon = function createStyledIcon(
|
|
7228
|
+
var createStyledIcon = function createStyledIcon() {
|
|
7229
|
+
var IconComponent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
|
|
7230
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", {});
|
|
7231
|
+
};
|
|
7229
7232
|
return styled__default["default"](IconComponent)(function (_ref) {
|
|
7230
7233
|
var fill = _ref.fill,
|
|
7231
7234
|
hoverColor = _ref.hoverColor;
|
|
@@ -17137,6 +17140,7 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17137
17140
|
title = _properties$content.title,
|
|
17138
17141
|
description = _properties$content.description,
|
|
17139
17142
|
pricingPlan = _properties$content.pricingPlan,
|
|
17143
|
+
options = _properties$content.options,
|
|
17140
17144
|
_properties$tiers = properties.tiers,
|
|
17141
17145
|
tiers = _properties$tiers === void 0 ? [] : _properties$tiers,
|
|
17142
17146
|
enableAnimation = properties.enableAnimation,
|
|
@@ -17170,12 +17174,12 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17170
17174
|
}, otherProps), {}, {
|
|
17171
17175
|
children: description
|
|
17172
17176
|
}))]
|
|
17173
|
-
}), /*#__PURE__*/jsxRuntime.jsx(Toggle, {
|
|
17174
|
-
activeOption: isCurrentPricingPlanYearly ? "Yearly" : "Monthly",
|
|
17177
|
+
}), pricingPlan === PRICING_PLANS.monthly_and_yearly && /*#__PURE__*/jsxRuntime.jsx(Toggle, {
|
|
17175
17178
|
className: "col-span-8 col-start-3 md:col-span-4 md:col-start-5 lg:col-span-4 lg:col-start-5",
|
|
17176
|
-
options: [
|
|
17179
|
+
options: [options.monthly, options.yearly],
|
|
17180
|
+
activeOption: isCurrentPricingPlanYearly ? options.yearly : options.monthly,
|
|
17177
17181
|
setActiveOption: function setActiveOption(option) {
|
|
17178
|
-
return setIsCurrentPricingPlanYearly(option ===
|
|
17182
|
+
return setIsCurrentPricingPlanYearly(option === options.yearly);
|
|
17179
17183
|
}
|
|
17180
17184
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
17181
17185
|
className: "col-span-12 grid grid-cols-12 justify-center gap-4",
|
|
@@ -17253,7 +17257,10 @@ var PricingInCardView = function PricingInCardView(_ref) {
|
|
|
17253
17257
|
className: "mt-8 w-full justify-center",
|
|
17254
17258
|
style: design.tierButton
|
|
17255
17259
|
}, button), {}, {
|
|
17256
|
-
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
|
|
17257
17264
|
}, otherProps))]
|
|
17258
17265
|
}, getUniqueKey(tierTitle, tierDescription, index));
|
|
17259
17266
|
})
|