@eclass/ui-kit 1.52.14 → 1.53.1

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