@eclass/ui-kit 1.57.10 → 1.58.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.
@@ -9890,6 +9890,7 @@ const EventsGroup = ({
9890
9890
  colors: colors2,
9891
9891
  events,
9892
9892
  hasMoreNext,
9893
+ onClickEvent,
9893
9894
  title,
9894
9895
  redirect,
9895
9896
  text: text2,
@@ -9918,11 +9919,11 @@ const EventsGroup = ({
9918
9919
  return /* @__PURE__ */ jsx(Box, {
9919
9920
  bg: (_a2 = vars("colors-neutral-white")) != null ? _a2 : "#FFFFFF",
9920
9921
  border: "none",
9921
- cursor: "default",
9922
+ cursor: onClickEvent ? "pointer" : "default",
9922
9923
  padding: "0",
9923
9924
  _hover: {
9924
9925
  boxShadow: "none !important",
9925
- cursor: "default !important",
9926
+ cursor: onClickEvent ? "pointer !important" : "default !important",
9926
9927
  bg: "none !important"
9927
9928
  },
9928
9929
  _focus: {
@@ -9939,6 +9940,7 @@ const EventsGroup = ({
9939
9940
  text: text2,
9940
9941
  type: event.type,
9941
9942
  hasNotification: event.isNew,
9943
+ onClick: onClickEvent ? () => onClickEvent(event) : void 0,
9942
9944
  showCourse: true
9943
9945
  }, event.id)
9944
9946
  }, event.id);
@@ -9965,6 +9967,7 @@ const Events = ({
9965
9967
  events,
9966
9968
  hasMoreNext,
9967
9969
  isMobile,
9970
+ onClickEvent,
9968
9971
  redirecToCalendar,
9969
9972
  text: text2
9970
9973
  }) => {
@@ -10004,17 +10007,20 @@ const Events = ({
10004
10007
  }), /* @__PURE__ */ jsx(EventsGroup, {
10005
10008
  colors: colors2,
10006
10009
  events: today,
10010
+ onClickEvent,
10007
10011
  text: (_c = text2 == null ? void 0 : text2.course) != null ? _c : "",
10008
10012
  title: (_e = (_d = text2 == null ? void 0 : text2.events) == null ? void 0 : _d.today) != null ? _e : "Hoy"
10009
10013
  }), /* @__PURE__ */ jsx(EventsGroup, {
10010
10014
  colors: colors2,
10011
10015
  events: tomorrow,
10016
+ onClickEvent,
10012
10017
  text: (_f = text2 == null ? void 0 : text2.course) != null ? _f : "",
10013
10018
  title: (_h = (_g = text2 == null ? void 0 : text2.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana"
10014
10019
  }), /* @__PURE__ */ jsx(EventsGroup, {
10015
10020
  colors: colors2,
10016
10021
  events: next,
10017
10022
  hasMoreNext,
10023
+ onClickEvent,
10018
10024
  redirect: redirecToCalendar,
10019
10025
  textSeeMore: (_i = text2 == null ? void 0 : text2.seeMore.see) != null ? _i : "Ver m\xE1s fechas en",
10020
10026
  textLinkMore: (_j = text2 == null ? void 0 : text2.seeMore.link) != null ? _j : "Mi calendario",
@@ -10024,6 +10030,7 @@ const Events = ({
10024
10030
  });
10025
10031
  };
10026
10032
  const CalendarDropdownContainer = ({
10033
+ onClickEvent,
10027
10034
  courseColors,
10028
10035
  events,
10029
10036
  loading,
@@ -10161,6 +10168,7 @@ const CalendarDropdownContainer = ({
10161
10168
  events: all,
10162
10169
  hasMoreNext,
10163
10170
  isMobile,
10171
+ onClickEvent,
10164
10172
  redirecToCalendar: redirectToCalendar,
10165
10173
  text: text2
10166
10174
  })
@@ -10178,6 +10186,7 @@ const Loading = ({
10178
10186
  });
10179
10187
  };
10180
10188
  const CalendarDropdown = ({
10189
+ onClickEvent,
10181
10190
  courseColors,
10182
10191
  events,
10183
10192
  loading,
@@ -10191,6 +10200,7 @@ const CalendarDropdown = ({
10191
10200
  const date = new Date(now);
10192
10201
  const isoDate = date.toISOString();
10193
10202
  return /* @__PURE__ */ jsx(CalendarDropdownContainer, {
10203
+ onClickEvent,
10194
10204
  courseColors,
10195
10205
  events,
10196
10206
  loading,
@@ -10222,6 +10232,7 @@ const EventsList = ({
10222
10232
  date,
10223
10233
  name,
10224
10234
  hasNotification,
10235
+ onClick,
10225
10236
  showCourse,
10226
10237
  showUnit,
10227
10238
  time,
@@ -10248,9 +10259,11 @@ const EventsList = ({
10248
10259
  return /* @__PURE__ */ jsxs(Box, {
10249
10260
  className: "eventsList",
10250
10261
  borderTop: border,
10262
+ cursor: onClick ? "pointer" : "default",
10251
10263
  p: "16px",
10252
10264
  display: "flex",
10253
10265
  gap: "12px",
10266
+ onClick,
10254
10267
  children: [/* @__PURE__ */ jsxs(Box, {
10255
10268
  bg: color,
10256
10269
  minW: "88px",