@pelcro/react-pelcro-js 2.7.0-beta.4 → 2.7.0-beta.5

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 CHANGED
@@ -4526,7 +4526,11 @@ var labels$1 = {
4526
4526
  },
4527
4527
  selectProduct: "Select a product",
4528
4528
  selectPlan: "Select a plan",
4529
- startingAt: "Starting at"
4529
+ startingAt: "Starting at",
4530
+ restrictiveArticles: {
4531
+ subscribeTo: "Subscribe to one of the following options to get access to this page",
4532
+ or: "Or take a look at some of our other options below"
4533
+ }
4530
4534
  };
4531
4535
  var buttons$1 = {
4532
4536
  next: "Next",
@@ -4555,7 +4559,11 @@ var labels = {
4555
4559
  },
4556
4560
  selectProduct: "Sélectionnez un produit",
4557
4561
  selectPlan: "Sélectionnez un plan",
4558
- starningAt: "À partir de"
4562
+ starningAt: "À partir de",
4563
+ restrictiveArticles: {
4564
+ subscribeTo: "Abonnez-vous à une des options suivantes pour accéder au contenu de cette page",
4565
+ or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
4566
+ }
4559
4567
  };
4560
4568
  var buttons = {
4561
4569
  next: "Prochain",
@@ -11061,42 +11069,80 @@ class SelectModal extends React.Component {
11061
11069
  return `${startingPlan.amount_formatted}/${startingPlan.interval}`;
11062
11070
  });
11063
11071
 
11072
+ _defineProperty$3(this, "renderOneProduct", (product, index, options) => {
11073
+ const isPlanMode = Boolean(this.state.mode === "plan");
11074
+ const productButtonLabel = isPlanMode ? this.locale("buttons.back") : this.locale("buttons.select");
11075
+ const productButtonCallback = isPlanMode ? this.goBack : this.selectProduct;
11076
+ return /*#__PURE__*/React__default['default'].createElement("div", {
11077
+ key: product.id,
11078
+ className: `plc-flex plc-items-start plc-p-2 plc-mt-4 plc-space-x-3 plc-text-gray-900 plc-border-solid plc-rounded plc-border-primary-500 pelcro-select-product-wrapper ${options !== null && options !== void 0 && options.emphasize ? "plc-border-2" : "plc-border"}`
11079
+ }, product.image && /*#__PURE__*/React__default['default'].createElement("img", {
11080
+ alt: `image of ${product.name}`,
11081
+ src: product.image,
11082
+ className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
11083
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
11084
+ className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
11085
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
11086
+ className: "plc-w-full pelcro-select-product-header"
11087
+ }, /*#__PURE__*/React__default['default'].createElement("p", {
11088
+ className: "plc-font-bold pelcro-select-product-title"
11089
+ }, product.name), /*#__PURE__*/React__default['default'].createElement("p", {
11090
+ className: "plc-text-xs pelcro-select-product-description"
11091
+ }, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
11092
+ className: "plc-flex plc-items-end plc-w-full plc-mt-3"
11093
+ }, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
11094
+ className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
11095
+ }, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
11096
+ onClick: productButtonCallback,
11097
+ "data-key": product.id,
11098
+ id: "pelcro-select-product-back-button",
11099
+ className: `plc-ml-auto plc-text-xs ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
11100
+ }, index === 0 && {
11101
+ autoFocus: true
11102
+ }), productButtonLabel))));
11103
+ });
11104
+
11064
11105
  _defineProperty$3(this, "renderProducts", () => {
11065
11106
  const userDidSelectProduct = Boolean(this.state.mode === "plan");
11066
11107
  const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
11067
- const productButtonLabel = userDidSelectProduct ? this.locale("buttons.back") : this.locale("buttons.select");
11068
- const productButtonCallback = userDidSelectProduct ? this.goBack : this.selectProduct;
11069
- return productsToShow.map((product, i) => {
11070
- return /*#__PURE__*/React__default['default'].createElement("div", {
11071
- key: product.id,
11072
- className: "plc-flex plc-items-start plc-p-2 plc-mt-4 plc-space-x-3 plc-text-gray-900 plc-border plc-border-solid plc-rounded plc-border-primary-500 pelcro-select-product-wrapper"
11073
- }, product.image && /*#__PURE__*/React__default['default'].createElement("img", {
11074
- alt: `image of ${product.name}`,
11075
- src: product.image,
11076
- className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
11077
- }), /*#__PURE__*/React__default['default'].createElement("div", {
11078
- className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
11079
- }, /*#__PURE__*/React__default['default'].createElement("div", {
11080
- className: "plc-w-full pelcro-select-product-header"
11081
- }, /*#__PURE__*/React__default['default'].createElement("p", {
11082
- className: "plc-font-bold pelcro-select-product-title"
11083
- }, product.name), /*#__PURE__*/React__default['default'].createElement("p", {
11084
- className: "plc-text-xs pelcro-select-product-description"
11085
- }, product.description)), /*#__PURE__*/React__default['default'].createElement("div", {
11086
- className: "plc-flex plc-items-end plc-w-full plc-mt-3"
11087
- }, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
11088
- className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
11089
- }, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
11090
- onClick: productButtonCallback,
11091
- "data-key": product.id,
11092
- id: "pelcro-select-product-back-button",
11093
- className: "plc-ml-auto plc-text-xs"
11094
- }, i === 0 && {
11095
- autoFocus: true
11096
- }), productButtonLabel))));
11108
+ return productsToShow.map((product, index) => {
11109
+ return this.renderOneProduct(product, index);
11097
11110
  });
11098
11111
  });
11099
11112
 
11113
+ _defineProperty$3(this, "renderMatchingProductsFirst", () => {
11114
+ const isPlanMode = Boolean(this.state.mode === "plan");
11115
+
11116
+ if (isPlanMode) {
11117
+ return this.renderOneProduct(this.state.product);
11118
+ }
11119
+
11120
+ const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
11121
+
11122
+ if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
11123
+ return this.renderProducts();
11124
+ }
11125
+
11126
+ return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("h3", {
11127
+ className: "plc-text-sm plc-font-semibold"
11128
+ }, this.locale("labels.restrictiveArticles.subscribeTo")), productsThatMatchArticleTag.map((product, index) => this.renderOneProduct(product, index, {
11129
+ emphasize: true
11130
+ })), (allProductsMinusMatched === null || allProductsMinusMatched === void 0 ? void 0 : allProductsMinusMatched.length) > 0 && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("hr", {
11131
+ className: "plc-my-4"
11132
+ }), /*#__PURE__*/React__default['default'].createElement("h3", {
11133
+ className: "plc-text-sm plc-font-semibold"
11134
+ }, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
11135
+
11136
+ function productsWithMatchedTaggedFirst() {
11137
+ var _window$Pelcro$produc;
11138
+
11139
+ const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
11140
+ const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
11141
+ const allProductsMinusMatched = allProducts.filter(product => productsThatMatchArticleTag.find(matchedProduct => matchedProduct.id !== product.id));
11142
+ return [productsThatMatchArticleTag, allProductsMinusMatched];
11143
+ }
11144
+ });
11145
+
11100
11146
  _defineProperty$3(this, "renderPlans", () => {
11101
11147
  return this.state.planList.map(plan => {
11102
11148
  const isChecked = this.state.plan.id === plan.id ? true : false;
@@ -11223,7 +11269,7 @@ class SelectModal extends React.Component {
11223
11269
  }
11224
11270
 
11225
11271
  render() {
11226
- var _window$Pelcro$produc, _window$Pelcro$produc2;
11272
+ var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
11227
11273
 
11228
11274
  const {
11229
11275
  disableGifting
@@ -11257,9 +11303,9 @@ class SelectModal extends React.Component {
11257
11303
  className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
11258
11304
  }, /*#__PURE__*/React__default['default'].createElement("h4", {
11259
11305
  className: "plc-text-2xl plc-font-semibold"
11260
- }, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc === void 0 ? void 0 : _window$Pelcro$produc.paywall.select_title)), /*#__PURE__*/React__default['default'].createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_subtitle))), /*#__PURE__*/React__default['default'].createElement("div", {
11306
+ }, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default['default'].createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle))), /*#__PURE__*/React__default['default'].createElement("div", {
11261
11307
  className: "pelcro-select-products-wrapper"
11262
- }, this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
11308
+ }, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
11263
11309
  className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
11264
11310
  }, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default['default'].createElement("div", {
11265
11311
  className: "plc-flex plc-justify-center plc-mt-2"
package/dist/index.esm.js CHANGED
@@ -4496,7 +4496,11 @@ var labels$1 = {
4496
4496
  },
4497
4497
  selectProduct: "Select a product",
4498
4498
  selectPlan: "Select a plan",
4499
- startingAt: "Starting at"
4499
+ startingAt: "Starting at",
4500
+ restrictiveArticles: {
4501
+ subscribeTo: "Subscribe to one of the following options to get access to this page",
4502
+ or: "Or take a look at some of our other options below"
4503
+ }
4500
4504
  };
4501
4505
  var buttons$1 = {
4502
4506
  next: "Next",
@@ -4525,7 +4529,11 @@ var labels = {
4525
4529
  },
4526
4530
  selectProduct: "Sélectionnez un produit",
4527
4531
  selectPlan: "Sélectionnez un plan",
4528
- starningAt: "À partir de"
4532
+ starningAt: "À partir de",
4533
+ restrictiveArticles: {
4534
+ subscribeTo: "Abonnez-vous à une des options suivantes pour accéder au contenu de cette page",
4535
+ or: "Sinon, jetez un coup d'oeil à d'autres offres ci-dessous"
4536
+ }
4529
4537
  };
4530
4538
  var buttons = {
4531
4539
  next: "Prochain",
@@ -11031,42 +11039,80 @@ class SelectModal extends Component {
11031
11039
  return `${startingPlan.amount_formatted}/${startingPlan.interval}`;
11032
11040
  });
11033
11041
 
11042
+ _defineProperty$3(this, "renderOneProduct", (product, index, options) => {
11043
+ const isPlanMode = Boolean(this.state.mode === "plan");
11044
+ const productButtonLabel = isPlanMode ? this.locale("buttons.back") : this.locale("buttons.select");
11045
+ const productButtonCallback = isPlanMode ? this.goBack : this.selectProduct;
11046
+ return /*#__PURE__*/React__default.createElement("div", {
11047
+ key: product.id,
11048
+ className: `plc-flex plc-items-start plc-p-2 plc-mt-4 plc-space-x-3 plc-text-gray-900 plc-border-solid plc-rounded plc-border-primary-500 pelcro-select-product-wrapper ${options !== null && options !== void 0 && options.emphasize ? "plc-border-2" : "plc-border"}`
11049
+ }, product.image && /*#__PURE__*/React__default.createElement("img", {
11050
+ alt: `image of ${product.name}`,
11051
+ src: product.image,
11052
+ className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
11053
+ }), /*#__PURE__*/React__default.createElement("div", {
11054
+ className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
11055
+ }, /*#__PURE__*/React__default.createElement("div", {
11056
+ className: "plc-w-full pelcro-select-product-header"
11057
+ }, /*#__PURE__*/React__default.createElement("p", {
11058
+ className: "plc-font-bold pelcro-select-product-title"
11059
+ }, product.name), /*#__PURE__*/React__default.createElement("p", {
11060
+ className: "plc-text-xs pelcro-select-product-description"
11061
+ }, product.description)), /*#__PURE__*/React__default.createElement("div", {
11062
+ className: "plc-flex plc-items-end plc-w-full plc-mt-3"
11063
+ }, product.plans && /*#__PURE__*/React__default.createElement("p", {
11064
+ className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
11065
+ }, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
11066
+ onClick: productButtonCallback,
11067
+ "data-key": product.id,
11068
+ id: "pelcro-select-product-back-button",
11069
+ className: `plc-ml-auto plc-text-xs ${options !== null && options !== void 0 && options.emphasize ? "plc-bg-primary-700" : ""}`
11070
+ }, index === 0 && {
11071
+ autoFocus: true
11072
+ }), productButtonLabel))));
11073
+ });
11074
+
11034
11075
  _defineProperty$3(this, "renderProducts", () => {
11035
11076
  const userDidSelectProduct = Boolean(this.state.mode === "plan");
11036
11077
  const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
11037
- const productButtonLabel = userDidSelectProduct ? this.locale("buttons.back") : this.locale("buttons.select");
11038
- const productButtonCallback = userDidSelectProduct ? this.goBack : this.selectProduct;
11039
- return productsToShow.map((product, i) => {
11040
- return /*#__PURE__*/React__default.createElement("div", {
11041
- key: product.id,
11042
- className: "plc-flex plc-items-start plc-p-2 plc-mt-4 plc-space-x-3 plc-text-gray-900 plc-border plc-border-solid plc-rounded plc-border-primary-500 pelcro-select-product-wrapper"
11043
- }, product.image && /*#__PURE__*/React__default.createElement("img", {
11044
- alt: `image of ${product.name}`,
11045
- src: product.image,
11046
- className: "plc-object-contain plc-w-1/4 pelcro-select-product-image"
11047
- }), /*#__PURE__*/React__default.createElement("div", {
11048
- className: `plc-flex plc-flex-wrap ${product.image ? "plc-w-3/4" : "plc-w-full"}`
11049
- }, /*#__PURE__*/React__default.createElement("div", {
11050
- className: "plc-w-full pelcro-select-product-header"
11051
- }, /*#__PURE__*/React__default.createElement("p", {
11052
- className: "plc-font-bold pelcro-select-product-title"
11053
- }, product.name), /*#__PURE__*/React__default.createElement("p", {
11054
- className: "plc-text-xs pelcro-select-product-description"
11055
- }, product.description)), /*#__PURE__*/React__default.createElement("div", {
11056
- className: "plc-flex plc-items-end plc-w-full plc-mt-3"
11057
- }, product.plans && /*#__PURE__*/React__default.createElement("p", {
11058
- className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
11059
- }, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
11060
- onClick: productButtonCallback,
11061
- "data-key": product.id,
11062
- id: "pelcro-select-product-back-button",
11063
- className: "plc-ml-auto plc-text-xs"
11064
- }, i === 0 && {
11065
- autoFocus: true
11066
- }), productButtonLabel))));
11078
+ return productsToShow.map((product, index) => {
11079
+ return this.renderOneProduct(product, index);
11067
11080
  });
11068
11081
  });
11069
11082
 
11083
+ _defineProperty$3(this, "renderMatchingProductsFirst", () => {
11084
+ const isPlanMode = Boolean(this.state.mode === "plan");
11085
+
11086
+ if (isPlanMode) {
11087
+ return this.renderOneProduct(this.state.product);
11088
+ }
11089
+
11090
+ const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
11091
+
11092
+ if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
11093
+ return this.renderProducts();
11094
+ }
11095
+
11096
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", {
11097
+ className: "plc-text-sm plc-font-semibold"
11098
+ }, this.locale("labels.restrictiveArticles.subscribeTo")), productsThatMatchArticleTag.map((product, index) => this.renderOneProduct(product, index, {
11099
+ emphasize: true
11100
+ })), (allProductsMinusMatched === null || allProductsMinusMatched === void 0 ? void 0 : allProductsMinusMatched.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("hr", {
11101
+ className: "plc-my-4"
11102
+ }), /*#__PURE__*/React__default.createElement("h3", {
11103
+ className: "plc-text-sm plc-font-semibold"
11104
+ }, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
11105
+
11106
+ function productsWithMatchedTaggedFirst() {
11107
+ var _window$Pelcro$produc;
11108
+
11109
+ const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
11110
+ const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
11111
+ const allProductsMinusMatched = allProducts.filter(product => productsThatMatchArticleTag.find(matchedProduct => matchedProduct.id !== product.id));
11112
+ return [productsThatMatchArticleTag, allProductsMinusMatched];
11113
+ }
11114
+ });
11115
+
11070
11116
  _defineProperty$3(this, "renderPlans", () => {
11071
11117
  return this.state.planList.map(plan => {
11072
11118
  const isChecked = this.state.plan.id === plan.id ? true : false;
@@ -11193,7 +11239,7 @@ class SelectModal extends Component {
11193
11239
  }
11194
11240
 
11195
11241
  render() {
11196
- var _window$Pelcro$produc, _window$Pelcro$produc2;
11242
+ var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
11197
11243
 
11198
11244
  const {
11199
11245
  disableGifting
@@ -11227,9 +11273,9 @@ class SelectModal extends Component {
11227
11273
  className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
11228
11274
  }, /*#__PURE__*/React__default.createElement("h4", {
11229
11275
  className: "plc-text-2xl plc-font-semibold"
11230
- }, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc === void 0 ? void 0 : _window$Pelcro$produc.paywall.select_title)), /*#__PURE__*/React__default.createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_subtitle))), /*#__PURE__*/React__default.createElement("div", {
11276
+ }, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default.createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle))), /*#__PURE__*/React__default.createElement("div", {
11231
11277
  className: "pelcro-select-products-wrapper"
11232
- }, this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
11278
+ }, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
11233
11279
  className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
11234
11280
  }, this.renderPlans()), !disableGifting && /*#__PURE__*/React__default.createElement("div", {
11235
11281
  className: "plc-flex plc-justify-center plc-mt-2"
package/dist/pelcro.css CHANGED
@@ -1765,6 +1765,10 @@ in order to scope selectors under pelcro-root
1765
1765
  background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
1766
1766
  }
1767
1767
 
1768
+ .pelcro-root .plc-bg-primary-700 {
1769
+ background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 20%));
1770
+ }
1771
+
1768
1772
  .pelcro-root .plc-bg-white {
1769
1773
  --tw-bg-opacity: 1;
1770
1774
  background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "2.7.0-beta.4",
4
+ "version": "2.7.0-beta.5",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",