@eclass/ui-kit 1.60.1 → 1.60.2
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 +3 -18
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +14 -14
- package/dist/eclass-ui-kit.umd.js.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
|
@@ -10541,14 +10541,10 @@ const EventsList = ({
|
|
|
10541
10541
|
text: text2,
|
|
10542
10542
|
type,
|
|
10543
10543
|
unitName,
|
|
10544
|
-
unavailableLabel = "A\xFAn no disponible",
|
|
10545
10544
|
url
|
|
10546
10545
|
}) => {
|
|
10547
10546
|
var _a, _b;
|
|
10548
10547
|
const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
|
|
10549
|
-
const hasUrl = Boolean(url);
|
|
10550
|
-
const isAvailable = url === void 0 ? true : hasUrl;
|
|
10551
|
-
const disabledOpacity = isAvailable ? 1 : 0.5;
|
|
10552
10548
|
const isCpr = type === "cpr";
|
|
10553
10549
|
const showEventLocation = !isCpr || Boolean(headquartersAddress);
|
|
10554
10550
|
const showEventDuration = ["online", "in-person", "cpr"].includes(type) && duration !== void 0 && duration > 0;
|
|
@@ -10595,7 +10591,6 @@ const EventsList = ({
|
|
|
10595
10591
|
display: "flex",
|
|
10596
10592
|
flexDirection: "column",
|
|
10597
10593
|
justifyContent: "space-around",
|
|
10598
|
-
opacity: disabledOpacity,
|
|
10599
10594
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
10600
10595
|
as: "span",
|
|
10601
10596
|
sx: dateTextStyle,
|
|
@@ -10608,25 +10603,15 @@ const EventsList = ({
|
|
|
10608
10603
|
sx: dateTextStyle,
|
|
10609
10604
|
children: time
|
|
10610
10605
|
})]
|
|
10611
|
-
}), /* @__PURE__ */
|
|
10606
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
10612
10607
|
display: "flex",
|
|
10613
10608
|
flexDirection: "column",
|
|
10614
10609
|
gap: "8px",
|
|
10615
10610
|
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, {
|
|
10611
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
10626
10612
|
display: "flex",
|
|
10627
10613
|
flexDirection: "column",
|
|
10628
10614
|
gap: "8px",
|
|
10629
|
-
opacity: disabledOpacity,
|
|
10630
10615
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
10631
10616
|
alignItems: "center",
|
|
10632
10617
|
display: "flex",
|
|
@@ -10691,7 +10676,7 @@ const EventsList = ({
|
|
|
10691
10676
|
children: unitName
|
|
10692
10677
|
})
|
|
10693
10678
|
})]
|
|
10694
|
-
})
|
|
10679
|
+
})
|
|
10695
10680
|
})]
|
|
10696
10681
|
});
|
|
10697
10682
|
};
|