@eclass/ui-kit 1.51.12 → 1.51.14
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.
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -35227,37 +35227,38 @@ const GoToCalendar = ({
|
|
|
35227
35227
|
onlyToCalendar,
|
|
35228
35228
|
onClick
|
|
35229
35229
|
}) => {
|
|
35230
|
-
var _a;
|
|
35230
|
+
var _a, _b;
|
|
35231
|
+
const activeBg = (_a = vars("colors-main-deepSkyBlue")) != null ? _a : "#0189FF";
|
|
35231
35232
|
return /* @__PURE__ */ jsx(NewTooltip, {
|
|
35232
35233
|
label: text != null ? text : "Calendario",
|
|
35233
35234
|
m: "2px 0 0 0",
|
|
35234
35235
|
isDisabled: tooltipDisabled,
|
|
35235
35236
|
children: /* @__PURE__ */ jsx(MenuButton, {
|
|
35236
35237
|
onClick: () => onlyToCalendar && onClick && onClick(),
|
|
35237
|
-
background: (
|
|
35238
|
+
background: (_b = vars("colors-main-blueGrey")) != null ? _b : "#60798E",
|
|
35238
35239
|
border: "1px solid transparent",
|
|
35239
35240
|
borderRadius: "100%",
|
|
35240
|
-
height: "30px!important",
|
|
35241
|
-
width: "30px!important",
|
|
35241
|
+
height: "30px !important",
|
|
35242
|
+
width: "30px !important",
|
|
35243
|
+
padding: "0 !important",
|
|
35244
|
+
margin: "0 !important",
|
|
35242
35245
|
position: "relative",
|
|
35246
|
+
_active: {
|
|
35247
|
+
bg: activeBg,
|
|
35248
|
+
"&:hover": {
|
|
35249
|
+
bg: activeBg
|
|
35250
|
+
}
|
|
35251
|
+
},
|
|
35243
35252
|
_hover: {
|
|
35244
35253
|
bg: "rgba(96, 121, 142, 0.8)"
|
|
35245
35254
|
},
|
|
35246
35255
|
sx: {
|
|
35247
35256
|
">span": {
|
|
35257
|
+
display: "grid",
|
|
35248
35258
|
alignContent: "center",
|
|
35249
35259
|
h: "16px!important",
|
|
35250
35260
|
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
|
-
}
|
|
35261
|
+
lineHeight: "0"
|
|
35261
35262
|
}
|
|
35262
35263
|
},
|
|
35263
35264
|
children: /* @__PURE__ */ jsx(CalendarButtonIcon, {})
|
|
@@ -35268,35 +35269,21 @@ const Header = ({
|
|
|
35268
35269
|
text,
|
|
35269
35270
|
isMobile
|
|
35270
35271
|
}) => {
|
|
35271
|
-
var _a, _b
|
|
35272
|
-
return /* @__PURE__ */
|
|
35273
|
-
|
|
35274
|
-
|
|
35275
|
-
|
|
35276
|
-
|
|
35277
|
-
|
|
35278
|
-
|
|
35279
|
-
|
|
35280
|
-
|
|
35281
|
-
|
|
35282
|
-
|
|
35283
|
-
|
|
35284
|
-
|
|
35285
|
-
|
|
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
|
-
})]
|
|
35272
|
+
var _a, _b;
|
|
35273
|
+
return /* @__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"
|
|
35300
35287
|
});
|
|
35301
35288
|
};
|
|
35302
35289
|
const NoEventsIcon = () => /* @__PURE__ */ jsxs("svg", {
|
|
@@ -35574,7 +35561,7 @@ const CalendarDropdownContainer = ({
|
|
|
35574
35561
|
onlyToCalendar,
|
|
35575
35562
|
m: m2
|
|
35576
35563
|
}) => {
|
|
35577
|
-
var _a, _b, _c, _d, _e;
|
|
35564
|
+
var _a, _b, _c, _d, _e, _f;
|
|
35578
35565
|
const [isMobile] = useMediaQuery("(max-width: 577px)");
|
|
35579
35566
|
const {
|
|
35580
35567
|
closeAndMarkSeen,
|
|
@@ -35621,11 +35608,27 @@ const CalendarDropdownContainer = ({
|
|
|
35621
35608
|
return /* @__PURE__ */ jsx(Box, {
|
|
35622
35609
|
zIndex: 4,
|
|
35623
35610
|
className: `calendarDropdown ${hasNew && !onlyToCalendar ? "hasNew" : ""}`,
|
|
35611
|
+
width: "30px",
|
|
35612
|
+
height: "30px",
|
|
35624
35613
|
m: m2,
|
|
35625
35614
|
position: "relative",
|
|
35626
35615
|
sx: {
|
|
35616
|
+
"&::after": {
|
|
35617
|
+
content: '""',
|
|
35618
|
+
position: "absolute",
|
|
35619
|
+
width: "0",
|
|
35620
|
+
height: "0",
|
|
35621
|
+
borderColor: `transparent transparent ${(_a = vars("colors-neutral-davysGrey")) != null ? _a : "#5C5C5C"}
|
|
35622
|
+
transparent`,
|
|
35623
|
+
borderStyle: "solid",
|
|
35624
|
+
borderWidth: "0 11px 10px 11px",
|
|
35625
|
+
top: isMobile ? "30px" : "30px",
|
|
35626
|
+
right: isMobile ? "3px" : "15px",
|
|
35627
|
+
display: isMenuOpen && !isMobile ? "block" : "none",
|
|
35628
|
+
transform: isMobile ? "none" : "translateX(50%)"
|
|
35629
|
+
},
|
|
35627
35630
|
"&.hasNew::before": {
|
|
35628
|
-
background: (
|
|
35631
|
+
background: (_b = vars("colors-secondary-pumpkin")) != null ? _b : "#FF7A14",
|
|
35629
35632
|
borderRadius: "50%",
|
|
35630
35633
|
content: '""',
|
|
35631
35634
|
display: "block",
|
|
@@ -35645,10 +35648,13 @@ const CalendarDropdownContainer = ({
|
|
|
35645
35648
|
".chakra-menu__menu-list": {
|
|
35646
35649
|
padding: "0",
|
|
35647
35650
|
position: "absolute",
|
|
35651
|
+
left: isMobile ? "auto" : "-30px",
|
|
35652
|
+
top: isMobile ? "-6px !important" : "auto",
|
|
35648
35653
|
width: isMobile ? "100vw" : "500px",
|
|
35649
35654
|
maxHeight: isMobile ? "calc(100vh - 62px)" : "auto",
|
|
35650
35655
|
overflowY: isMobile ? "auto" : "hidden",
|
|
35651
35656
|
background: "white",
|
|
35657
|
+
border: "none",
|
|
35652
35658
|
borderRadius: isMobile ? "0" : "10px",
|
|
35653
35659
|
boxShadow: isMobile ? "none" : "rgba(47, 47, 47, 0.2) -1px 6px 40px 0px",
|
|
35654
35660
|
animation: "none !important",
|
|
@@ -35673,18 +35679,18 @@ const CalendarDropdownContainer = ({
|
|
|
35673
35679
|
onClose,
|
|
35674
35680
|
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
35675
35681
|
children: [/* @__PURE__ */ jsx(GoToCalendar, {
|
|
35676
|
-
text: (
|
|
35682
|
+
text: (_c = text == null ? void 0 : text.tooltip) != null ? _c : "Ir a Mi Calendario",
|
|
35677
35683
|
tooltipDisabled: isTooltipDisabled,
|
|
35678
35684
|
onlyToCalendar,
|
|
35679
35685
|
onClick: redirectToCalendar
|
|
35680
35686
|
}), !onlyToCalendar && /* @__PURE__ */ jsxs(MenuList, {
|
|
35681
35687
|
children: [/* @__PURE__ */ jsx(Header, {
|
|
35682
|
-
text: (
|
|
35688
|
+
text: (_d = text == null ? void 0 : text.header) != null ? _d : "Pr\xF3ximas fechas importantes de tus cursos",
|
|
35683
35689
|
isMobile
|
|
35684
35690
|
}), loading ? /* @__PURE__ */ jsx(Loading, {
|
|
35685
|
-
text: (
|
|
35691
|
+
text: (_e = text == null ? void 0 : text.loading) != null ? _e : "Cargando"
|
|
35686
35692
|
}) : events.length === 0 || empty ? /* @__PURE__ */ jsx(Empty, {
|
|
35687
|
-
text: (
|
|
35693
|
+
text: (_f = text == null ? void 0 : text.empty) != null ? _f : "A\xFAn no tienes eventos en tu calendario"
|
|
35688
35694
|
}) : /* @__PURE__ */ jsx(Events, {
|
|
35689
35695
|
colors: courseColors,
|
|
35690
35696
|
events: all,
|