@eclass/ui-kit 1.60.1 → 1.60.3
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/eclass-ui-kit.es.js +14 -24
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +6 -6
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts.map +1 -1
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts +1 -2
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -10216,11 +10216,11 @@ const EventsGroup = ({
|
|
|
10216
10216
|
return /* @__PURE__ */ jsx(Box, {
|
|
10217
10217
|
bg: (_a2 = vars("colors-neutral-white")) != null ? _a2 : "#FFFFFF",
|
|
10218
10218
|
border: "none",
|
|
10219
|
-
cursor: "default",
|
|
10219
|
+
cursor: eventOnClick ? "pointer" : "default",
|
|
10220
10220
|
padding: "0",
|
|
10221
10221
|
_hover: {
|
|
10222
10222
|
boxShadow: "none !important",
|
|
10223
|
-
cursor: "default !important",
|
|
10223
|
+
cursor: eventOnClick ? "pointer !important" : "default !important",
|
|
10224
10224
|
bg: "none !important"
|
|
10225
10225
|
},
|
|
10226
10226
|
_focus: {
|
|
@@ -10541,14 +10541,13 @@ const EventsList = ({
|
|
|
10541
10541
|
text: text2,
|
|
10542
10542
|
type,
|
|
10543
10543
|
unitName,
|
|
10544
|
-
unavailableLabel = "A\xFAn no disponible",
|
|
10545
10544
|
url
|
|
10546
10545
|
}) => {
|
|
10547
|
-
var _a, _b;
|
|
10546
|
+
var _a, _b, _c;
|
|
10548
10547
|
const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
|
|
10548
|
+
const hoverBg = (_b = vars("colors-neutral-cultured2")) != null ? _b : "#F8F8F8";
|
|
10549
10549
|
const hasUrl = Boolean(url);
|
|
10550
|
-
const
|
|
10551
|
-
const disabledOpacity = isAvailable ? 1 : 0.5;
|
|
10550
|
+
const isClickable = Boolean(onClick) && hasUrl;
|
|
10552
10551
|
const isCpr = type === "cpr";
|
|
10553
10552
|
const showEventLocation = !isCpr || Boolean(headquartersAddress);
|
|
10554
10553
|
const showEventDuration = ["online", "in-person", "cpr"].includes(type) && duration !== void 0 && duration > 0;
|
|
@@ -10560,7 +10559,7 @@ const EventsList = ({
|
|
|
10560
10559
|
lineHeight: "100%"
|
|
10561
10560
|
};
|
|
10562
10561
|
const detailTextStyle = {
|
|
10563
|
-
color: (
|
|
10562
|
+
color: (_c = vars("colors-neutral-gray")) != null ? _c : "#808080",
|
|
10564
10563
|
fontSize: "14px",
|
|
10565
10564
|
alignItems: "center",
|
|
10566
10565
|
display: "flex",
|
|
@@ -10579,11 +10578,13 @@ const EventsList = ({
|
|
|
10579
10578
|
borderTop: border,
|
|
10580
10579
|
display: "flex",
|
|
10581
10580
|
gap: "12px",
|
|
10582
|
-
cursor: "default",
|
|
10583
|
-
onClick: void 0,
|
|
10581
|
+
cursor: isClickable ? "pointer" : "default",
|
|
10582
|
+
onClick: isClickable ? onClick : void 0,
|
|
10584
10583
|
p: "16px",
|
|
10585
10584
|
transition: "background-color 0.2s ease",
|
|
10586
|
-
_hover:
|
|
10585
|
+
_hover: isClickable ? {
|
|
10586
|
+
bg: hoverBg
|
|
10587
|
+
} : void 0,
|
|
10587
10588
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
10588
10589
|
bg: color,
|
|
10589
10590
|
minW: "88px",
|
|
@@ -10595,7 +10596,6 @@ const EventsList = ({
|
|
|
10595
10596
|
display: "flex",
|
|
10596
10597
|
flexDirection: "column",
|
|
10597
10598
|
justifyContent: "space-around",
|
|
10598
|
-
opacity: disabledOpacity,
|
|
10599
10599
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
10600
10600
|
as: "span",
|
|
10601
10601
|
sx: dateTextStyle,
|
|
@@ -10608,25 +10608,15 @@ const EventsList = ({
|
|
|
10608
10608
|
sx: dateTextStyle,
|
|
10609
10609
|
children: time
|
|
10610
10610
|
})]
|
|
10611
|
-
}), /* @__PURE__ */
|
|
10611
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
10612
10612
|
display: "flex",
|
|
10613
10613
|
flexDirection: "column",
|
|
10614
10614
|
gap: "8px",
|
|
10615
10615
|
w: "100%",
|
|
10616
|
-
children:
|
|
10617
|
-
status: "warning",
|
|
10618
|
-
text: unavailableLabel,
|
|
10619
|
-
sx: {
|
|
10620
|
-
padding: "4px 6px",
|
|
10621
|
-
"> span": {
|
|
10622
|
-
fontSize: "12px"
|
|
10623
|
-
}
|
|
10624
|
-
}
|
|
10625
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
10616
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
10626
10617
|
display: "flex",
|
|
10627
10618
|
flexDirection: "column",
|
|
10628
10619
|
gap: "8px",
|
|
10629
|
-
opacity: disabledOpacity,
|
|
10630
10620
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
10631
10621
|
alignItems: "center",
|
|
10632
10622
|
display: "flex",
|
|
@@ -10691,7 +10681,7 @@ const EventsList = ({
|
|
|
10691
10681
|
children: unitName
|
|
10692
10682
|
})
|
|
10693
10683
|
})]
|
|
10694
|
-
})
|
|
10684
|
+
})
|
|
10695
10685
|
})]
|
|
10696
10686
|
});
|
|
10697
10687
|
};
|