@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.
@@ -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: [type === "cv-events" ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsx("strong", {
10686
- children: text2 ? `${text2}:` : "Curso:"
10693
+ children: [showCourseLabel && /* @__PURE__ */ jsxs("strong", {
10694
+ children: [courseLabel, ":"]
10687
10695
  }), " ", courseName]
10688
10696
  }), showEventDuration && /* @__PURE__ */ jsxs(Box, {
10689
10697
  display: "flex",