@pelcro/react-pelcro-js 3.11.0-beta.3 → 3.11.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
@@ -12987,6 +12987,10 @@ class SelectModal extends React.Component {
12987
12987
  });
12988
12988
  }
12989
12989
 
12990
+ if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
12991
+ this.props.setView('register');
12992
+ }
12993
+
12990
12994
  document.addEventListener("keydown", this.handleSubmit);
12991
12995
  });
12992
12996
 
@@ -25751,14 +25755,14 @@ const SubscriptionsItems = ({
25751
25755
  onClick: onRenewClick,
25752
25756
  disabled: disableSubmit,
25753
25757
  "data-key": sub.id
25754
- }, t("labels.renew")), sub.shipments_suspended_until && isDateBeforeToday(sub.shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default['default'].createElement(Button, {
25758
+ }, t("labels.renew")), sub.shipments_suspended_until && !isDateBeforeToday(sub.shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default['default'].createElement(Button, {
25755
25759
  variant: "ghost",
25756
25760
  className: "plc-text-blue-400 pelcro-dashboard-sub-suspend-button",
25757
25761
  icon: /*#__PURE__*/React__default['default'].createElement(SvgXIconSolid, null),
25758
25762
  onClick: onUnSuspendClick,
25759
25763
  disabled: disableSubmit,
25760
25764
  "data-key": sub.id
25761
- }, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || sub.shipments_suspended_until && !isDateBeforeToday(sub.shipments_suspended_until)) && /*#__PURE__*/React__default['default'].createElement(Button, {
25765
+ }, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || sub.shipments_suspended_until && isDateBeforeToday(sub.shipments_suspended_until)) && /*#__PURE__*/React__default['default'].createElement(Button, {
25762
25766
  variant: "ghost",
25763
25767
  className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-suspend-button",
25764
25768
  icon: /*#__PURE__*/React__default['default'].createElement(SvgCalendar, null),
package/dist/index.esm.js CHANGED
@@ -12957,6 +12957,10 @@ class SelectModal extends Component {
12957
12957
  });
12958
12958
  }
12959
12959
 
12960
+ if (this.state.productList.length === 0 && !window.Pelcro.user.isAuthenticated()) {
12961
+ this.props.setView('register');
12962
+ }
12963
+
12960
12964
  document.addEventListener("keydown", this.handleSubmit);
12961
12965
  });
12962
12966
 
@@ -25721,14 +25725,14 @@ const SubscriptionsItems = ({
25721
25725
  onClick: onRenewClick,
25722
25726
  disabled: disableSubmit,
25723
25727
  "data-key": sub.id
25724
- }, t("labels.renew")), sub.shipments_suspended_until && isDateBeforeToday(sub.shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default.createElement(Button, {
25728
+ }, t("labels.renew")), sub.shipments_suspended_until && !isDateBeforeToday(sub.shipments_suspended_until) && sub.shipments_remaining > 0 && /*#__PURE__*/React__default.createElement(Button, {
25725
25729
  variant: "ghost",
25726
25730
  className: "plc-text-blue-400 pelcro-dashboard-sub-suspend-button",
25727
25731
  icon: /*#__PURE__*/React__default.createElement(SvgXIconSolid, null),
25728
25732
  onClick: onUnSuspendClick,
25729
25733
  disabled: disableSubmit,
25730
25734
  "data-key": sub.id
25731
- }, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || sub.shipments_suspended_until && !isDateBeforeToday(sub.shipments_suspended_until)) && /*#__PURE__*/React__default.createElement(Button, {
25735
+ }, t("labels.unsuspend")), (!sub.shipments_suspended_until && sub.shipments_remaining > 0 || sub.shipments_suspended_until && isDateBeforeToday(sub.shipments_suspended_until)) && /*#__PURE__*/React__default.createElement(Button, {
25732
25736
  variant: "ghost",
25733
25737
  className: "plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-suspend-button",
25734
25738
  icon: /*#__PURE__*/React__default.createElement(SvgCalendar, null),
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": "3.11.0-beta.3",
4
+ "version": "3.11.0-beta.5",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",