@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.js CHANGED
@@ -7206,7 +7206,10 @@ var Button = function Button(_ref) {
7206
7206
  };
7207
7207
  var Button$1 = withConditionalRender(Button, prop("label"));
7208
7208
 
7209
- var createStyledIcon = function createStyledIcon(IconComponent) {
7209
+ var createStyledIcon = function createStyledIcon() {
7210
+ var IconComponent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
7211
+ return /*#__PURE__*/jsx("span", {});
7212
+ };
7210
7213
  return styled(IconComponent)(function (_ref) {
7211
7214
  var fill = _ref.fill,
7212
7215
  hoverColor = _ref.hoverColor;
@@ -17118,6 +17121,7 @@ var PricingInCardView = function PricingInCardView(_ref) {
17118
17121
  title = _properties$content.title,
17119
17122
  description = _properties$content.description,
17120
17123
  pricingPlan = _properties$content.pricingPlan,
17124
+ options = _properties$content.options,
17121
17125
  _properties$tiers = properties.tiers,
17122
17126
  tiers = _properties$tiers === void 0 ? [] : _properties$tiers,
17123
17127
  enableAnimation = properties.enableAnimation,
@@ -17151,12 +17155,12 @@ var PricingInCardView = function PricingInCardView(_ref) {
17151
17155
  }, otherProps), {}, {
17152
17156
  children: description
17153
17157
  }))]
17154
- }), /*#__PURE__*/jsx(Toggle, {
17155
- activeOption: isCurrentPricingPlanYearly ? "Yearly" : "Monthly",
17158
+ }), pricingPlan === PRICING_PLANS.monthly_and_yearly && /*#__PURE__*/jsx(Toggle, {
17156
17159
  className: "col-span-8 col-start-3 md:col-span-4 md:col-start-5 lg:col-span-4 lg:col-start-5",
17157
- options: ["Monthly", "Yearly"],
17160
+ options: [options.monthly, options.yearly],
17161
+ activeOption: isCurrentPricingPlanYearly ? options.yearly : options.monthly,
17158
17162
  setActiveOption: function setActiveOption(option) {
17159
- return setIsCurrentPricingPlanYearly(option === "Yearly");
17163
+ return setIsCurrentPricingPlanYearly(option === options.yearly);
17160
17164
  }
17161
17165
  }), /*#__PURE__*/jsx("div", {
17162
17166
  className: "col-span-12 grid grid-cols-12 justify-center gap-4",
@@ -17234,7 +17238,10 @@ var PricingInCardView = function PricingInCardView(_ref) {
17234
17238
  className: "mt-8 w-full justify-center",
17235
17239
  style: design.tierButton
17236
17240
  }, button), {}, {
17237
- id: "pricing-in-card-view-tier-".concat(index, "-button")
17241
+ id: "pricing-in-card-view-tier-".concat(index, "-button"),
17242
+ action: isCurrentPricingPlanYearly ? button.yearly.action : button.monthly.action,
17243
+ label: isCurrentPricingPlanYearly ? button.yearly.label : button.monthly.label,
17244
+ to: isCurrentPricingPlanYearly ? button.yearly.url : button.monthly.url
17238
17245
  }, otherProps))]
17239
17246
  }, getUniqueKey(tierTitle, tierDescription, index));
17240
17247
  })