@eclass/ui-kit 1.51.8 → 1.51.9

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.
@@ -35237,7 +35237,9 @@ const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {
35237
35237
  const GoToCalendar = ({
35238
35238
  hasNew,
35239
35239
  text,
35240
- tooltipDisabled
35240
+ tooltipDisabled,
35241
+ onlyToCalendar,
35242
+ onClick
35241
35243
  }) => {
35242
35244
  var _a;
35243
35245
  return /* @__PURE__ */ jsx(NewTooltip, {
@@ -35245,6 +35247,7 @@ const GoToCalendar = ({
35245
35247
  m: "2px 0 0 0",
35246
35248
  isDisabled: tooltipDisabled,
35247
35249
  children: /* @__PURE__ */ jsxs(MenuButton, {
35250
+ onClick: () => onlyToCalendar && onClick && onClick(),
35248
35251
  background: (_a = vars("colors-main-blueGrey")) != null ? _a : "#60798E",
35249
35252
  border: "1px solid transparent",
35250
35253
  borderRadius: "100%",
@@ -35263,7 +35266,7 @@ const GoToCalendar = ({
35263
35266
  right: "-1px"
35264
35267
  }
35265
35268
  },
35266
- children: [/* @__PURE__ */ jsx(CalendarButtonIcon, {}), hasNew && /* @__PURE__ */ jsx(NotificationIcon, {})]
35269
+ children: [/* @__PURE__ */ jsx(CalendarButtonIcon, {}), !onlyToCalendar && hasNew && /* @__PURE__ */ jsx(NotificationIcon, {})]
35267
35270
  })
35268
35271
  });
35269
35272
  };
@@ -35567,7 +35570,7 @@ const Events = ({
35567
35570
  isMobile,
35568
35571
  colors: colors2
35569
35572
  }) => {
35570
- var _a, _b, _c, _d, _e, _f, _g, _h;
35573
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
35571
35574
  const {
35572
35575
  today,
35573
35576
  tomorrow,
@@ -35602,18 +35605,18 @@ const Events = ({
35602
35605
  })
35603
35606
  }), /* @__PURE__ */ jsx(EventsGroup, {
35604
35607
  colors: colors2,
35605
- text: text.course,
35606
- title: (_d = (_c = text == null ? void 0 : text.events) == null ? void 0 : _c.today) != null ? _d : "Hoy",
35608
+ text: (_c = text == null ? void 0 : text.course) != null ? _c : "",
35609
+ title: (_e = (_d = text == null ? void 0 : text.events) == null ? void 0 : _d.today) != null ? _e : "Hoy",
35607
35610
  events: today
35608
35611
  }), /* @__PURE__ */ jsx(EventsGroup, {
35609
35612
  colors: colors2,
35610
- text: text.course,
35611
- title: (_f = (_e = text == null ? void 0 : text.events) == null ? void 0 : _e.tomorrow) != null ? _f : "Ma\xF1ana",
35613
+ text: (_f = text == null ? void 0 : text.course) != null ? _f : "",
35614
+ title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana",
35612
35615
  events: tomorrow
35613
35616
  }), /* @__PURE__ */ jsx(EventsGroup, {
35614
35617
  colors: colors2,
35615
- text: text.course,
35616
- title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.next) != null ? _h : "Pr\xF3ximos",
35618
+ text: (_i = text == null ? void 0 : text.course) != null ? _i : "",
35619
+ title: (_k = (_j = text == null ? void 0 : text.events) == null ? void 0 : _j.next) != null ? _k : "Pr\xF3ximos",
35617
35620
  events: next2
35618
35621
  })]
35619
35622
  });
@@ -35682,8 +35685,10 @@ const CalendarDropdownContainer = ({
35682
35685
  now,
35683
35686
  redirectToCalendar,
35684
35687
  courseColors: colors2,
35688
+ onlyToCalendar,
35685
35689
  m: m2
35686
35690
  }) => {
35691
+ var _a, _b, _c, _d;
35687
35692
  const [isMobile] = useMediaQuery("(max-width: 577px)");
35688
35693
  const {
35689
35694
  closeAndMarkSeen,
@@ -35769,16 +35774,18 @@ const CalendarDropdownContainer = ({
35769
35774
  children: /* @__PURE__ */ jsxs(Fragment, {
35770
35775
  children: [/* @__PURE__ */ jsx(GoToCalendar, {
35771
35776
  hasNew: hasNew != null ? hasNew : false,
35772
- text: (text == null ? void 0 : text.tooltip) || "Ir a Mi Calendario",
35773
- tooltipDisabled: isTooltipDisabled
35774
- }), /* @__PURE__ */ jsxs(MenuList, {
35777
+ text: (_a = text == null ? void 0 : text.tooltip) != null ? _a : "Ir a Mi Calendario",
35778
+ tooltipDisabled: isTooltipDisabled,
35779
+ onlyToCalendar,
35780
+ onClick: redirectToCalendar
35781
+ }), !onlyToCalendar && /* @__PURE__ */ jsxs(MenuList, {
35775
35782
  children: [/* @__PURE__ */ jsx(Header, {
35776
- text: (text == null ? void 0 : text.header) || "Pr\xF3ximas fechas importantes de tus cursos",
35783
+ text: (_b = text == null ? void 0 : text.header) != null ? _b : "Pr\xF3ximas fechas importantes de tus cursos",
35777
35784
  isMobile
35778
35785
  }), loading ? /* @__PURE__ */ jsx(Loading, {
35779
- text: (text == null ? void 0 : text.loading) || "Cargando"
35786
+ text: (_c = text == null ? void 0 : text.loading) != null ? _c : "Cargando"
35780
35787
  }) : events.length === 0 || empty ? /* @__PURE__ */ jsx(Empty, {
35781
- text: (text == null ? void 0 : text.empty) || "A\xFAn no tienes eventos en tu calendario"
35788
+ text: (_d = text == null ? void 0 : text.empty) != null ? _d : "A\xFAn no tienes eventos en tu calendario"
35782
35789
  }) : /* @__PURE__ */ jsx(Events, {
35783
35790
  colors: colors2,
35784
35791
  events: all,
@@ -35805,6 +35812,7 @@ const CalendarDropdown = ({
35805
35812
  now,
35806
35813
  events,
35807
35814
  loading,
35815
+ onlyToCalendar = false,
35808
35816
  m: m2
35809
35817
  }) => {
35810
35818
  const date = new Date(now);
@@ -35816,7 +35824,8 @@ const CalendarDropdown = ({
35816
35824
  now: isoDate,
35817
35825
  courseColors,
35818
35826
  redirectToCalendar,
35819
- text
35827
+ text,
35828
+ onlyToCalendar
35820
35829
  });
35821
35830
  };
35822
35831
  export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index as Icons, Label, ModalAlert, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };