@eclass/ui-kit 1.52.7 → 1.52.8

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.
@@ -6103,7 +6103,7 @@ const EventsGroup = ({
6103
6103
  text,
6104
6104
  type: event.type,
6105
6105
  hasNotification: event.isNew,
6106
- showsCourseName: true
6106
+ showCourse: true
6107
6107
  }, event.id)
6108
6108
  }, event.id);
6109
6109
  })
@@ -6397,12 +6397,14 @@ const EventsList = ({
6397
6397
  color,
6398
6398
  day,
6399
6399
  date,
6400
+ name,
6400
6401
  hasNotification,
6401
- showsCourseName,
6402
+ showCourse,
6403
+ showUnit,
6402
6404
  time,
6403
- name,
6404
6405
  text,
6405
- type
6406
+ type,
6407
+ unitName
6406
6408
  }) => {
6407
6409
  var _a, _b;
6408
6410
  const [isMobile] = useMediaQuery("(max-width: 580px)");
@@ -6414,6 +6416,13 @@ const EventsList = ({
6414
6416
  color: vars("colors-neutral-white"),
6415
6417
  lineHeight: "100%"
6416
6418
  };
6419
+ const detailTextStyle = {
6420
+ color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
6421
+ fontSize: "14px",
6422
+ display: "flex",
6423
+ gap: "4px",
6424
+ lineHeight: "normal"
6425
+ };
6417
6426
  return /* @__PURE__ */ jsxs(Box, {
6418
6427
  className: "eventsList",
6419
6428
  borderTop: border,
@@ -6450,6 +6459,7 @@ const EventsList = ({
6450
6459
  display: "flex",
6451
6460
  flexDirection: "column",
6452
6461
  gap: "8px",
6462
+ w: "100%",
6453
6463
  children: [/* @__PURE__ */ jsxs(Box, {
6454
6464
  lineHeight: "21px",
6455
6465
  display: "flex",
@@ -6477,10 +6487,10 @@ const EventsList = ({
6477
6487
  verticalAlign: "middle",
6478
6488
  children: time
6479
6489
  })]
6480
- }), showsCourseName && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
6490
+ }), showCourse && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
6481
6491
  display: "flex",
6482
6492
  gap: "4px",
6483
- alignItems: "center",
6493
+ alignItems: "baseline",
6484
6494
  children: [isMobile && /* @__PURE__ */ jsx(Box, {
6485
6495
  height: "10px",
6486
6496
  width: "10px",
@@ -6488,16 +6498,25 @@ const EventsList = ({
6488
6498
  borderRadius: "50%"
6489
6499
  }), /* @__PURE__ */ jsxs(Box, {
6490
6500
  as: "span",
6491
- color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
6492
- fontSize: "14px",
6493
- display: "flex",
6494
- alignItems: "center",
6495
- gap: "4px",
6496
- lineHeight: "normal",
6501
+ sx: detailTextStyle,
6497
6502
  children: [/* @__PURE__ */ jsx("strong", {
6498
6503
  children: text ? `${text}:` : "Curso:"
6499
6504
  }), " ", courseName]
6500
6505
  })]
6506
+ }), showUnit && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
6507
+ display: "flex",
6508
+ gap: "4px",
6509
+ alignItems: "baseline",
6510
+ children: [isMobile && /* @__PURE__ */ jsx(Box, {
6511
+ height: "10px",
6512
+ width: "10px",
6513
+ bg: color,
6514
+ borderRadius: "50%"
6515
+ }), /* @__PURE__ */ jsx(Box, {
6516
+ as: "span",
6517
+ sx: detailTextStyle,
6518
+ children: unitName
6519
+ })]
6501
6520
  })]
6502
6521
  })]
6503
6522
  });