@eclass/ui-kit 1.51.11 → 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,17 +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",
35241
- width: "30px",
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": {
35248
- lineHeight: "0",
35250
+ display: "grid",
35251
+ alignContent: "center",
35252
+ h: "16px!important",
35249
35253
  justifyItems: "center",
35250
- alignContent: "center"
35254
+ lineHeight: "0"
35251
35255
  }
35252
35256
  },
35253
35257
  children: /* @__PURE__ */ jsx(CalendarButtonIcon, {})
@@ -35258,35 +35262,21 @@ const Header = ({
35258
35262
  text,
35259
35263
  isMobile
35260
35264
  }) => {
35261
- var _a, _b, _c;
35262
- return /* @__PURE__ */ jsxs(Fragment, {
35263
- children: [/* @__PURE__ */ jsx(Box, {
35264
- as: "header",
35265
- bg: (_a = vars("colors-neutral-davysGrey")) != null ? _a : "#5C5C5C",
35266
- borderRadius: isMobile ? "none" : "10px 10px 0 0",
35267
- color: (_b = vars("colors-neutral-white")) != null ? _b : "#FFFFFF",
35268
- fontSize: "14px",
35269
- fontWeight: "500",
35270
- lineHeight: "normal",
35271
- padding: "16px",
35272
- position: "absolute",
35273
- width: isMobile ? "100vw" : "100%",
35274
- top: 0,
35275
- zIndex: "1",
35276
- children: text != null ? text : "Pr\xF3ximas fechas importantes de tus cursos"
35277
- }), /* @__PURE__ */ jsx(Box, {
35278
- className: "arrow",
35279
- "aria-hidden": true,
35280
- borderBottom: `12px solid ${(_c = vars("colors-neutral-davysGrey")) != null ? _c : "#5C5C5C"}`,
35281
- borderLeft: "14px solid transparent",
35282
- borderRight: "14px solid transparent",
35283
- display: isMobile ? "none" : "block",
35284
- height: "0",
35285
- position: "fixed",
35286
- right: isMobile ? "71px" : "-437px",
35287
- top: isMobile ? "54px" : "-9px",
35288
- width: "0"
35289
- })]
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"
35290
35280
  });
35291
35281
  };
35292
35282
  const NoEventsIcon = () => /* @__PURE__ */ jsxs("svg", {
@@ -35564,7 +35554,7 @@ const CalendarDropdownContainer = ({
35564
35554
  onlyToCalendar,
35565
35555
  m: m2
35566
35556
  }) => {
35567
- var _a, _b, _c, _d, _e;
35557
+ var _a, _b, _c, _d, _e, _f;
35568
35558
  const [isMobile] = useMediaQuery("(max-width: 577px)");
35569
35559
  const {
35570
35560
  closeAndMarkSeen,
@@ -35611,11 +35601,27 @@ const CalendarDropdownContainer = ({
35611
35601
  return /* @__PURE__ */ jsx(Box, {
35612
35602
  zIndex: 4,
35613
35603
  className: `calendarDropdown ${hasNew && !onlyToCalendar ? "hasNew" : ""}`,
35604
+ width: "30px",
35605
+ height: "30px",
35614
35606
  m: m2,
35615
35607
  position: "relative",
35616
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
+ },
35617
35623
  "&.hasNew::before": {
35618
- background: (_a = vars("colors-secondary-pumpkin")) != null ? _a : "#FF7A14",
35624
+ background: (_b = vars("colors-secondary-pumpkin")) != null ? _b : "#FF7A14",
35619
35625
  borderRadius: "50%",
35620
35626
  content: '""',
35621
35627
  display: "block",
@@ -35635,10 +35641,13 @@ const CalendarDropdownContainer = ({
35635
35641
  ".chakra-menu__menu-list": {
35636
35642
  padding: "0",
35637
35643
  position: "absolute",
35644
+ left: isMobile ? "auto" : "-30px",
35645
+ top: isMobile ? "-6px !important" : "auto",
35638
35646
  width: isMobile ? "100vw" : "500px",
35639
35647
  maxHeight: isMobile ? "calc(100vh - 62px)" : "auto",
35640
35648
  overflowY: isMobile ? "auto" : "hidden",
35641
35649
  background: "white",
35650
+ border: "none",
35642
35651
  borderRadius: isMobile ? "0" : "10px",
35643
35652
  boxShadow: isMobile ? "none" : "rgba(47, 47, 47, 0.2) -1px 6px 40px 0px",
35644
35653
  animation: "none !important",
@@ -35663,18 +35672,18 @@ const CalendarDropdownContainer = ({
35663
35672
  onClose,
35664
35673
  children: /* @__PURE__ */ jsxs(Fragment, {
35665
35674
  children: [/* @__PURE__ */ jsx(GoToCalendar, {
35666
- 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",
35667
35676
  tooltipDisabled: isTooltipDisabled,
35668
35677
  onlyToCalendar,
35669
35678
  onClick: redirectToCalendar
35670
35679
  }), !onlyToCalendar && /* @__PURE__ */ jsxs(MenuList, {
35671
35680
  children: [/* @__PURE__ */ jsx(Header, {
35672
- 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",
35673
35682
  isMobile
35674
35683
  }), loading ? /* @__PURE__ */ jsx(Loading, {
35675
- text: (_d = text == null ? void 0 : text.loading) != null ? _d : "Cargando"
35684
+ text: (_e = text == null ? void 0 : text.loading) != null ? _e : "Cargando"
35676
35685
  }) : events.length === 0 || empty ? /* @__PURE__ */ jsx(Empty, {
35677
- 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"
35678
35687
  }) : /* @__PURE__ */ jsx(Events, {
35679
35688
  colors: courseColors,
35680
35689
  events: all,