@eclass/ui-kit 1.62.0 → 1.63.0
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 +11 -3
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +13 -13
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- 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
|
@@ -10594,6 +10594,9 @@ const EventsList = ({
|
|
|
10594
10594
|
const hoverBg = (_b = vars("colors-neutral-cultured2")) != null ? _b : "#F8F8F8";
|
|
10595
10595
|
const isCpr = type === "cpr";
|
|
10596
10596
|
const showEventLocation = !isCpr || Boolean(headquartersAddress);
|
|
10597
|
+
const courseLabel = text2 || "Curso";
|
|
10598
|
+
const showCourseLabel = type !== "cv-events";
|
|
10599
|
+
const isCourse = showCourseLabel && courseLabel === "Curso";
|
|
10597
10600
|
const showEventDuration = ["online", "in-person", "cpr"].includes(type) && duration !== void 0 && duration > 0;
|
|
10598
10601
|
const initOrEnd = ["end-course", "init-course", "init-course-flexible", "end-course-flexible"].includes(type);
|
|
10599
10602
|
const dateTextStyle = {
|
|
@@ -10608,7 +10611,10 @@ const EventsList = ({
|
|
|
10608
10611
|
alignItems: "center",
|
|
10609
10612
|
display: "flex",
|
|
10610
10613
|
gap: "4px",
|
|
10611
|
-
lineHeight: "normal"
|
|
10614
|
+
lineHeight: "normal",
|
|
10615
|
+
"&.isCourse": {
|
|
10616
|
+
alignItems: "self-start"
|
|
10617
|
+
}
|
|
10612
10618
|
};
|
|
10613
10619
|
const eventIconStyle = {
|
|
10614
10620
|
alignItems: "center",
|
|
@@ -10681,9 +10687,11 @@ const EventsList = ({
|
|
|
10681
10687
|
}), hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
10682
10688
|
}), showCourse && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
|
|
10683
10689
|
as: "span",
|
|
10690
|
+
className: isCourse ? "isCourse" : void 0,
|
|
10691
|
+
"data-testid": "event-course",
|
|
10684
10692
|
sx: detailTextStyle,
|
|
10685
|
-
children: [
|
|
10686
|
-
children:
|
|
10693
|
+
children: [showCourseLabel && /* @__PURE__ */ jsxs("strong", {
|
|
10694
|
+
children: [courseLabel, ":"]
|
|
10687
10695
|
}), " ", courseName]
|
|
10688
10696
|
}), showEventDuration && /* @__PURE__ */ jsxs(Box, {
|
|
10689
10697
|
display: "flex",
|