@eclass/ui-kit 1.52.14 → 1.53.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.
@@ -6060,14 +6060,14 @@ const Empty = ({
6060
6060
  });
6061
6061
  };
6062
6062
  const EventsGroup = ({
6063
- title,
6063
+ colors: colors2,
6064
6064
  events,
6065
+ hasMoreNext,
6066
+ title,
6067
+ redirect,
6065
6068
  text,
6066
6069
  textSeeMore,
6067
- textLinkMore,
6068
- colors: colors2,
6069
- redirect,
6070
- hasMoreNext
6070
+ textLinkMore
6071
6071
  }) => {
6072
6072
  var _a;
6073
6073
  if (!events || events && events.length === 0)
@@ -6103,7 +6103,7 @@ const EventsGroup = ({
6103
6103
  boxShadow: "none !important"
6104
6104
  },
6105
6105
  children: /* @__PURE__ */ jsx(EventsList, {
6106
- name: event.associated_resource.name || "",
6106
+ name: event.translatedTitle,
6107
6107
  courseName: event.course.name,
6108
6108
  day: event.formatedDate.day,
6109
6109
  date: event.formatedDate.date,
@@ -6133,12 +6133,12 @@ const EventsGroup = ({
6133
6133
  });
6134
6134
  };
6135
6135
  const Events = ({
6136
+ colors: colors2,
6136
6137
  events,
6137
- text,
6138
- redirecToCalendar,
6138
+ hasMoreNext,
6139
6139
  isMobile,
6140
- colors: colors2,
6141
- hasMoreNext
6140
+ redirecToCalendar,
6141
+ text
6142
6142
  }) => {
6143
6143
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
6144
6144
  const {
@@ -6175,35 +6175,35 @@ const Events = ({
6175
6175
  })
6176
6176
  }), /* @__PURE__ */ jsx(EventsGroup, {
6177
6177
  colors: colors2,
6178
+ events: today,
6178
6179
  text: (_c = text == null ? void 0 : text.course) != null ? _c : "",
6179
- title: (_e = (_d = text == null ? void 0 : text.events) == null ? void 0 : _d.today) != null ? _e : "Hoy",
6180
- events: today
6180
+ title: (_e = (_d = text == null ? void 0 : text.events) == null ? void 0 : _d.today) != null ? _e : "Hoy"
6181
6181
  }), /* @__PURE__ */ jsx(EventsGroup, {
6182
6182
  colors: colors2,
6183
+ events: tomorrow,
6183
6184
  text: (_f = text == null ? void 0 : text.course) != null ? _f : "",
6184
- title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana",
6185
- events: tomorrow
6185
+ title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana"
6186
6186
  }), /* @__PURE__ */ jsx(EventsGroup, {
6187
- hasMoreNext,
6188
6187
  colors: colors2,
6188
+ events: next,
6189
+ hasMoreNext,
6190
+ redirect: redirecToCalendar,
6189
6191
  textSeeMore: (_i = text == null ? void 0 : text.seeMore.see) != null ? _i : "Ver m\xE1s fechas en",
6190
6192
  textLinkMore: (_j = text == null ? void 0 : text.seeMore.link) != null ? _j : "Mi calendario",
6191
6193
  text: (_k = text == null ? void 0 : text.course) != null ? _k : "",
6192
- title: (_m = (_l = text == null ? void 0 : text.events) == null ? void 0 : _l.next) != null ? _m : "Pr\xF3ximos",
6193
- events: next,
6194
- redirect: redirecToCalendar
6194
+ title: (_m = (_l = text == null ? void 0 : text.events) == null ? void 0 : _l.next) != null ? _m : "Pr\xF3ximos"
6195
6195
  })]
6196
6196
  });
6197
6197
  };
6198
6198
  const CalendarDropdownContainer = ({
6199
+ courseColors,
6199
6200
  events,
6200
6201
  loading,
6201
- text,
6202
+ m: m2,
6202
6203
  now,
6203
- redirectToCalendar,
6204
- courseColors,
6205
6204
  onlyToCalendar,
6206
- m: m2
6205
+ redirectToCalendar,
6206
+ text
6207
6207
  }) => {
6208
6208
  var _a, _b, _c, _d, _e, _f, _g;
6209
6209
  const [isMobile] = useMediaQuery("(max-width: 577px)");
@@ -6329,8 +6329,8 @@ const CalendarDropdownContainer = ({
6329
6329
  onClick: redirectToCalendar
6330
6330
  }), !onlyToCalendar && /* @__PURE__ */ jsxs(MenuList, {
6331
6331
  children: [/* @__PURE__ */ jsx(Header, {
6332
- text: (_d = text == null ? void 0 : text.header) != null ? _d : "Pr\xF3ximas fechas importantes de tus cursos",
6333
- isMobile
6332
+ isMobile,
6333
+ text: (_d = text == null ? void 0 : text.header) != null ? _d : "Pr\xF3ximas fechas importantes de tus cursos"
6334
6334
  }), /* @__PURE__ */ jsx(Box, {
6335
6335
  bg: (_e = vars("colors-neutral-white")) != null ? _e : "#FFF",
6336
6336
  children: loading ? /* @__PURE__ */ jsx(Loading, {
@@ -6338,12 +6338,12 @@ const CalendarDropdownContainer = ({
6338
6338
  }) : events.length === 0 || empty ? /* @__PURE__ */ jsx(Empty, {
6339
6339
  text: (_g = text == null ? void 0 : text.empty) != null ? _g : "A\xFAn no tienes eventos en tu calendario"
6340
6340
  }) : /* @__PURE__ */ jsx(Events, {
6341
- hasMoreNext,
6342
6341
  colors: courseColors,
6343
6342
  events: all,
6344
- text,
6343
+ hasMoreNext,
6344
+ isMobile,
6345
6345
  redirecToCalendar: redirectToCalendar,
6346
- isMobile
6346
+ text
6347
6347
  })
6348
6348
  })]
6349
6349
  })]
@@ -6359,26 +6359,26 @@ const Loading = ({
6359
6359
  });
6360
6360
  };
6361
6361
  const CalendarDropdown = ({
6362
- redirectToCalendar,
6363
- text,
6364
6362
  courseColors,
6365
- now,
6366
6363
  events,
6367
6364
  loading,
6365
+ m: m2,
6366
+ now,
6368
6367
  onlyToCalendar = false,
6369
- m: m2
6368
+ redirectToCalendar,
6369
+ text
6370
6370
  }) => {
6371
6371
  const date = new Date(now);
6372
6372
  const isoDate = date.toISOString();
6373
6373
  return /* @__PURE__ */ jsx(CalendarDropdownContainer, {
6374
- m: m2,
6374
+ courseColors,
6375
6375
  events,
6376
6376
  loading,
6377
+ m: m2,
6377
6378
  now: isoDate,
6378
- courseColors,
6379
+ onlyToCalendar,
6379
6380
  redirectToCalendar,
6380
- text,
6381
- onlyToCalendar
6381
+ text
6382
6382
  });
6383
6383
  };
6384
6384
  const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {