@pelcro/react-pelcro-js 4.0.0-alpha.71 → 4.0.0-alpha.72

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
@@ -36377,10 +36377,6 @@ const DashboardContent = ({
36377
36377
  type: CLOSE_DASHBOARD
36378
36378
  });
36379
36379
  };
36380
-
36381
- const closeSubMenusTab = () => {
36382
- switchDashboardView(null);
36383
- }; // useEffect(() => {
36384
36380
  // return () => {
36385
36381
  // document.removeEventListener("click", hideMenuIfClickedOutside);
36386
36382
  // };
@@ -36440,21 +36436,14 @@ const DashboardContent = ({
36440
36436
  title: t("labels.logout"),
36441
36437
  setActiveDashboardLink: setActiveDashboardLink,
36442
36438
  activeDashboardLink: activeDashboardLink
36443
- }))), dashboardView && isOpen && /*#__PURE__*/React__default['default'].createElement("div", {
36439
+ }))), /*#__PURE__*/React__default['default'].createElement("div", {
36444
36440
  id: "pelcro-view-dashboard-submenus",
36445
36441
  className: `plc-fixed plc-inset-y-0 plc-h-full lg:plc-w-9/12 plc-w-full plc-bg-gray-100 plc-z-max plc-overflow-auto ${dashboardLayout == "left" ? "plc-right-0" : "plc-left-0"}`
36446
- }, /*#__PURE__*/React__default['default'].createElement(DashboardViewController, null, subView !== null && subView !== void 0 && subView.length ? subView.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
36442
+ }, dashboardView && isOpen && /*#__PURE__*/React__default['default'].createElement(DashboardViewController, null, subView !== null && subView !== void 0 && subView.length ? subView.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
36447
36443
  store: store$4,
36448
36444
  key: i
36449
36445
  })) : /*#__PURE__*/React__default['default'].cloneElement(subView, {
36450
36446
  store: store$4
36451
- })), /*#__PURE__*/React__default['default'].createElement(Button, {
36452
- variant: "ghost",
36453
- type: "button",
36454
- className: `plc-text-gray-500 plc-rounded-2xl plc-absolute plc-z-max plc-top-2 md:plc-top-5 ${dashboardLayout == "left" ? "plc-right-2 md:plc-right-10" : "plc-left-2 md:plc-left-10"}`,
36455
- onClick: closeSubMenusTab
36456
- }, /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
36457
- className: "plc-fill-current"
36458
36447
  }))));
36459
36448
  };
36460
36449
 
@@ -37147,6 +37136,7 @@ const Card = ({
37147
37136
  className = "",
37148
37137
  title,
37149
37138
  requestStates,
37139
+ dashboardLayout,
37150
37140
  back,
37151
37141
  ...restProps
37152
37142
  }) => {
@@ -37154,11 +37144,16 @@ const Card = ({
37154
37144
  const {
37155
37145
  switchDashboardView
37156
37146
  } = usePelcro();
37147
+
37148
+ const closeSubMenusTab = () => {
37149
+ switchDashboardView(null);
37150
+ };
37151
+
37157
37152
  return /*#__PURE__*/React__default['default'].createElement("div", {
37158
- className: `plc-bg-white plc-border-2 plc-p-6 md:plc-p-8 plc-rounded plc-my-11 md:plc-mb-20 md:plc-mt-40 ${className}`,
37153
+ className: `plc-relative plc-bg-white plc-border-2 plc-p-6 md:plc-p-8 plc-rounded plc-my-11 md:plc-mb-20 md:plc-mt-40 ${className}`,
37159
37154
  id: "plc-dashboard-card"
37160
37155
  }, title && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
37161
- className: "plc-flex plc-items-end plc-justify-between plc-border-b-2 plc-border-primary-400 plc-pb-2 plc-mb-10"
37156
+ className: "plc-flex plc-items-end plc-justify-between plc-border-b-2 plc-border-primary-400 plc-pb-2 plc-mb-10 plc-mt-5"
37162
37157
  }, /*#__PURE__*/React__default['default'].createElement("h3", {
37163
37158
  className: "plc-font-bold plc-text-xl"
37164
37159
  }, title), (requestStates === null || requestStates === void 0 ? void 0 : requestStates.loading) && /*#__PURE__*/React__default['default'].createElement("span", {
@@ -37171,7 +37166,14 @@ const Card = ({
37171
37166
  onClick: () => {
37172
37167
  switchDashboardView(back === null || back === void 0 ? void 0 : back.target);
37173
37168
  }
37174
- }, "Back"))), children);
37169
+ }, "Back"))), children, /*#__PURE__*/React__default['default'].createElement(Button, {
37170
+ variant: "ghost",
37171
+ type: "button",
37172
+ className: "plc-text-gray-500 plc-rounded-2xl plc-absolute plc-z-max plc-top-1 plc-right-1",
37173
+ onClick: closeSubMenusTab
37174
+ }, /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
37175
+ className: "plc-fill-current"
37176
+ })));
37175
37177
  };
37176
37178
 
37177
37179
  const ProfileMenu = props => {
package/dist/index.esm.js CHANGED
@@ -36347,10 +36347,6 @@ const DashboardContent = ({
36347
36347
  type: CLOSE_DASHBOARD
36348
36348
  });
36349
36349
  };
36350
-
36351
- const closeSubMenusTab = () => {
36352
- switchDashboardView(null);
36353
- }; // useEffect(() => {
36354
36350
  // return () => {
36355
36351
  // document.removeEventListener("click", hideMenuIfClickedOutside);
36356
36352
  // };
@@ -36410,21 +36406,14 @@ const DashboardContent = ({
36410
36406
  title: t("labels.logout"),
36411
36407
  setActiveDashboardLink: setActiveDashboardLink,
36412
36408
  activeDashboardLink: activeDashboardLink
36413
- }))), dashboardView && isOpen && /*#__PURE__*/React__default.createElement("div", {
36409
+ }))), /*#__PURE__*/React__default.createElement("div", {
36414
36410
  id: "pelcro-view-dashboard-submenus",
36415
36411
  className: `plc-fixed plc-inset-y-0 plc-h-full lg:plc-w-9/12 plc-w-full plc-bg-gray-100 plc-z-max plc-overflow-auto ${dashboardLayout == "left" ? "plc-right-0" : "plc-left-0"}`
36416
- }, /*#__PURE__*/React__default.createElement(DashboardViewController, null, subView !== null && subView !== void 0 && subView.length ? subView.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
36412
+ }, dashboardView && isOpen && /*#__PURE__*/React__default.createElement(DashboardViewController, null, subView !== null && subView !== void 0 && subView.length ? subView.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
36417
36413
  store: store$4,
36418
36414
  key: i
36419
36415
  })) : /*#__PURE__*/React__default.cloneElement(subView, {
36420
36416
  store: store$4
36421
- })), /*#__PURE__*/React__default.createElement(Button, {
36422
- variant: "ghost",
36423
- type: "button",
36424
- className: `plc-text-gray-500 plc-rounded-2xl plc-absolute plc-z-max plc-top-2 md:plc-top-5 ${dashboardLayout == "left" ? "plc-right-2 md:plc-right-10" : "plc-left-2 md:plc-left-10"}`,
36425
- onClick: closeSubMenusTab
36426
- }, /*#__PURE__*/React__default.createElement(SvgXIcon, {
36427
- className: "plc-fill-current"
36428
36417
  }))));
36429
36418
  };
36430
36419
 
@@ -37117,6 +37106,7 @@ const Card = ({
37117
37106
  className = "",
37118
37107
  title,
37119
37108
  requestStates,
37109
+ dashboardLayout,
37120
37110
  back,
37121
37111
  ...restProps
37122
37112
  }) => {
@@ -37124,11 +37114,16 @@ const Card = ({
37124
37114
  const {
37125
37115
  switchDashboardView
37126
37116
  } = usePelcro();
37117
+
37118
+ const closeSubMenusTab = () => {
37119
+ switchDashboardView(null);
37120
+ };
37121
+
37127
37122
  return /*#__PURE__*/React__default.createElement("div", {
37128
- className: `plc-bg-white plc-border-2 plc-p-6 md:plc-p-8 plc-rounded plc-my-11 md:plc-mb-20 md:plc-mt-40 ${className}`,
37123
+ className: `plc-relative plc-bg-white plc-border-2 plc-p-6 md:plc-p-8 plc-rounded plc-my-11 md:plc-mb-20 md:plc-mt-40 ${className}`,
37129
37124
  id: "plc-dashboard-card"
37130
37125
  }, title && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
37131
- className: "plc-flex plc-items-end plc-justify-between plc-border-b-2 plc-border-primary-400 plc-pb-2 plc-mb-10"
37126
+ className: "plc-flex plc-items-end plc-justify-between plc-border-b-2 plc-border-primary-400 plc-pb-2 plc-mb-10 plc-mt-5"
37132
37127
  }, /*#__PURE__*/React__default.createElement("h3", {
37133
37128
  className: "plc-font-bold plc-text-xl"
37134
37129
  }, title), (requestStates === null || requestStates === void 0 ? void 0 : requestStates.loading) && /*#__PURE__*/React__default.createElement("span", {
@@ -37141,7 +37136,14 @@ const Card = ({
37141
37136
  onClick: () => {
37142
37137
  switchDashboardView(back === null || back === void 0 ? void 0 : back.target);
37143
37138
  }
37144
- }, "Back"))), children);
37139
+ }, "Back"))), children, /*#__PURE__*/React__default.createElement(Button, {
37140
+ variant: "ghost",
37141
+ type: "button",
37142
+ className: "plc-text-gray-500 plc-rounded-2xl plc-absolute plc-z-max plc-top-1 plc-right-1",
37143
+ onClick: closeSubMenusTab
37144
+ }, /*#__PURE__*/React__default.createElement(SvgXIcon, {
37145
+ className: "plc-fill-current"
37146
+ })));
37145
37147
  };
37146
37148
 
37147
37149
  const ProfileMenu = props => {
package/dist/pelcro.css CHANGED
@@ -2044,10 +2044,6 @@ apple-pay-button {
2044
2044
  top: 0.25rem;
2045
2045
  }
2046
2046
 
2047
- .pelcro-root .plc-top-2{
2048
- top: 0.5rem;
2049
- }
2050
-
2051
2047
  .pelcro-root .plc-top-4{
2052
2048
  top: 1rem;
2053
2049
  }
@@ -2120,10 +2116,6 @@ apple-pay-button {
2120
2116
  left: 0px;
2121
2117
  }
2122
2118
 
2123
- .pelcro-root .plc-left-2{
2124
- left: 0.5rem;
2125
- }
2126
-
2127
2119
  .pelcro-root .plc-left-4{
2128
2120
  left: 1rem;
2129
2121
  }
@@ -3852,18 +3844,6 @@ apple-pay-button {
3852
3844
  }
3853
3845
 
3854
3846
  @media (min-width: 768px){
3855
- .pelcro-root .md\:plc-top-5{
3856
- top: 1.25rem;
3857
- }
3858
-
3859
- .pelcro-root .md\:plc-right-10{
3860
- right: 2.5rem;
3861
- }
3862
-
3863
- .pelcro-root .md\:plc-left-10{
3864
- left: 2.5rem;
3865
- }
3866
-
3867
3847
  .pelcro-root .md\:plc-mx-auto{
3868
3848
  margin-left: auto;
3869
3849
  margin-right: auto;
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": "4.0.0-alpha.71",
4
+ "version": "4.0.0-alpha.72",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",