@eclass/ui-kit 1.51.12 → 1.51.13

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,27 +35237,21 @@ const GoToCalendar = ({
35237
35237
  background: (_a = vars("colors-main-blueGrey")) != null ? _a : "#60798E",
35238
35238
  border: "1px solid transparent",
35239
35239
  borderRadius: "100%",
35240
- height: "30px!important",
35241
- width: "30px!important",
35240
+ height: "30px !important",
35241
+ width: "30px !important",
35242
+ padding: "0 !important",
35243
+ margin: "0 !important",
35242
35244
  position: "relative",
35243
35245
  _hover: {
35244
35246
  bg: "rgba(96, 121, 142, 0.8)"
35245
35247
  },
35246
35248
  sx: {
35247
35249
  ">span": {
35250
+ display: "grid",
35248
35251
  alignContent: "center",
35249
35252
  h: "16px!important",
35250
35253
  justifyItems: "center",
35251
- lineHeight: "0",
35252
- m: "0!important",
35253
- p: "0!important",
35254
- w: "16px!important",
35255
- svg: {
35256
- h: "16px!important",
35257
- m: "0!important",
35258
- p: "0!important",
35259
- w: "16px!important"
35260
- }
35254
+ lineHeight: "0"
35261
35255
  }
35262
35256
  },
35263
35257
  children: /* @__PURE__ */ jsx(CalendarButtonIcon, {})
@@ -35268,35 +35262,21 @@ const Header = ({
35268
35262
  text,
35269
35263
  isMobile
35270
35264
  }) => {
35271
- var _a, _b, _c;
35272
- return /* @__PURE__ */ jsxs(Fragment, {
35273
- children: [/* @__PURE__ */ jsx(Box, {
35274
- as: "header",
35275
- bg: (_a = vars("colors-neutral-davysGrey")) != null ? _a : "#5C5C5C",
35276
- borderRadius: isMobile ? "none" : "10px 10px 0 0",
35277
- color: (_b = vars("colors-neutral-white")) != null ? _b : "#FFFFFF",
35278
- fontSize: "14px",
35279
- fontWeight: "500",
35280
- lineHeight: "normal",
35281
- padding: "16px",
35282
- position: "absolute",
35283
- width: isMobile ? "100vw" : "100%",
35284
- top: 0,
35285
- zIndex: "1",
35286
- children: text != null ? text : "Pr\xF3ximas fechas importantes de tus cursos"
35287
- }), /* @__PURE__ */ jsx(Box, {
35288
- className: "arrow",
35289
- "aria-hidden": true,
35290
- borderBottom: `12px solid ${(_c = vars("colors-neutral-davysGrey")) != null ? _c : "#5C5C5C"}`,
35291
- borderLeft: "14px solid transparent",
35292
- borderRight: "14px solid transparent",
35293
- display: isMobile ? "none" : "block",
35294
- height: "0",
35295
- position: "fixed",
35296
- right: isMobile ? "71px" : "-437px",
35297
- top: isMobile ? "54px" : "-9px",
35298
- width: "0"
35299
- })]
35265
+ var _a, _b;
35266
+ return /* @__PURE__ */ jsx(Box, {
35267
+ as: "header",
35268
+ bg: (_a = vars("colors-neutral-davysGrey")) != null ? _a : "#5C5C5C",
35269
+ borderRadius: isMobile ? "none" : "10px 10px 0 0",
35270
+ color: (_b = vars("colors-neutral-white")) != null ? _b : "#FFFFFF",
35271
+ fontSize: "14px",
35272
+ fontWeight: "500",
35273
+ lineHeight: "normal",
35274
+ padding: "16px",
35275
+ position: "absolute",
35276
+ width: isMobile ? "100vw" : "100%",
35277
+ top: 0,
35278
+ zIndex: "1",
35279
+ children: text != null ? text : "Pr\xF3ximas fechas importantes de tus cursos"
35300
35280
  });
35301
35281
  };
35302
35282
  const NoEventsIcon = () => /* @__PURE__ */ jsxs("svg", {
@@ -35574,7 +35554,7 @@ const CalendarDropdownContainer = ({
35574
35554
  onlyToCalendar,
35575
35555
  m: m2
35576
35556
  }) => {
35577
- var _a, _b, _c, _d, _e;
35557
+ var _a, _b, _c, _d, _e, _f;
35578
35558
  const [isMobile] = useMediaQuery("(max-width: 577px)");
35579
35559
  const {
35580
35560
  closeAndMarkSeen,
@@ -35621,11 +35601,27 @@ const CalendarDropdownContainer = ({
35621
35601
  return /* @__PURE__ */ jsx(Box, {
35622
35602
  zIndex: 4,
35623
35603
  className: `calendarDropdown ${hasNew && !onlyToCalendar ? "hasNew" : ""}`,
35604
+ width: "30px",
35605
+ height: "30px",
35624
35606
  m: m2,
35625
35607
  position: "relative",
35626
35608
  sx: {
35609
+ "&::after": {
35610
+ content: '""',
35611
+ position: "absolute",
35612
+ width: "0",
35613
+ height: "0",
35614
+ borderColor: `transparent transparent ${(_a = vars("colors-neutral-davysGrey")) != null ? _a : "#5C5C5C"}
35615
+ transparent`,
35616
+ borderStyle: "solid",
35617
+ borderWidth: "0 11px 10px 11px",
35618
+ top: isMobile ? "30px" : "30px",
35619
+ right: isMobile ? "3px" : "15px",
35620
+ display: isMenuOpen && !isMobile ? "block" : "none",
35621
+ transform: isMobile ? "none" : "translateX(50%)"
35622
+ },
35627
35623
  "&.hasNew::before": {
35628
- background: (_a = vars("colors-secondary-pumpkin")) != null ? _a : "#FF7A14",
35624
+ background: (_b = vars("colors-secondary-pumpkin")) != null ? _b : "#FF7A14",
35629
35625
  borderRadius: "50%",
35630
35626
  content: '""',
35631
35627
  display: "block",
@@ -35645,10 +35641,13 @@ const CalendarDropdownContainer = ({
35645
35641
  ".chakra-menu__menu-list": {
35646
35642
  padding: "0",
35647
35643
  position: "absolute",
35644
+ left: isMobile ? "auto" : "-30px",
35645
+ top: isMobile ? "-6px !important" : "auto",
35648
35646
  width: isMobile ? "100vw" : "500px",
35649
35647
  maxHeight: isMobile ? "calc(100vh - 62px)" : "auto",
35650
35648
  overflowY: isMobile ? "auto" : "hidden",
35651
35649
  background: "white",
35650
+ border: "none",
35652
35651
  borderRadius: isMobile ? "0" : "10px",
35653
35652
  boxShadow: isMobile ? "none" : "rgba(47, 47, 47, 0.2) -1px 6px 40px 0px",
35654
35653
  animation: "none !important",
@@ -35673,18 +35672,18 @@ const CalendarDropdownContainer = ({
35673
35672
  onClose,
35674
35673
  children: /* @__PURE__ */ jsxs(Fragment, {
35675
35674
  children: [/* @__PURE__ */ jsx(GoToCalendar, {
35676
- text: (_b = text == null ? void 0 : text.tooltip) != null ? _b : "Ir a Mi Calendario",
35675
+ text: (_c = text == null ? void 0 : text.tooltip) != null ? _c : "Ir a Mi Calendario",
35677
35676
  tooltipDisabled: isTooltipDisabled,
35678
35677
  onlyToCalendar,
35679
35678
  onClick: redirectToCalendar
35680
35679
  }), !onlyToCalendar && /* @__PURE__ */ jsxs(MenuList, {
35681
35680
  children: [/* @__PURE__ */ jsx(Header, {
35682
- text: (_c = text == null ? void 0 : text.header) != null ? _c : "Pr\xF3ximas fechas importantes de tus cursos",
35681
+ text: (_d = text == null ? void 0 : text.header) != null ? _d : "Pr\xF3ximas fechas importantes de tus cursos",
35683
35682
  isMobile
35684
35683
  }), loading ? /* @__PURE__ */ jsx(Loading, {
35685
- text: (_d = text == null ? void 0 : text.loading) != null ? _d : "Cargando"
35684
+ text: (_e = text == null ? void 0 : text.loading) != null ? _e : "Cargando"
35686
35685
  }) : events.length === 0 || empty ? /* @__PURE__ */ jsx(Empty, {
35687
- text: (_e = text == null ? void 0 : text.empty) != null ? _e : "A\xFAn no tienes eventos en tu calendario"
35686
+ text: (_f = text == null ? void 0 : text.empty) != null ? _f : "A\xFAn no tienes eventos en tu calendario"
35688
35687
  }) : /* @__PURE__ */ jsx(Events, {
35689
35688
  colors: courseColors,
35690
35689
  events: all,