@eclass/ui-kit 1.51.13 → 1.51.15
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,14 +35227,15 @@ 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
35241
|
height: "30px !important",
|
|
@@ -35242,6 +35243,12 @@ const GoToCalendar = ({
|
|
|
35242
35243
|
padding: "0 !important",
|
|
35243
35244
|
margin: "0 !important",
|
|
35244
35245
|
position: "relative",
|
|
35246
|
+
_active: {
|
|
35247
|
+
bg: activeBg,
|
|
35248
|
+
"&:hover": {
|
|
35249
|
+
bg: activeBg
|
|
35250
|
+
}
|
|
35251
|
+
},
|
|
35245
35252
|
_hover: {
|
|
35246
35253
|
bg: "rgba(96, 121, 142, 0.8)"
|
|
35247
35254
|
},
|
|
@@ -35554,7 +35561,7 @@ const CalendarDropdownContainer = ({
|
|
|
35554
35561
|
onlyToCalendar,
|
|
35555
35562
|
m: m2
|
|
35556
35563
|
}) => {
|
|
35557
|
-
var _a, _b, _c, _d, _e, _f;
|
|
35564
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
35558
35565
|
const [isMobile] = useMediaQuery("(max-width: 577px)");
|
|
35559
35566
|
const {
|
|
35560
35567
|
closeAndMarkSeen,
|
|
@@ -35646,7 +35653,7 @@ const CalendarDropdownContainer = ({
|
|
|
35646
35653
|
width: isMobile ? "100vw" : "500px",
|
|
35647
35654
|
maxHeight: isMobile ? "calc(100vh - 62px)" : "auto",
|
|
35648
35655
|
overflowY: isMobile ? "auto" : "hidden",
|
|
35649
|
-
background: "
|
|
35656
|
+
background: "transparent",
|
|
35650
35657
|
border: "none",
|
|
35651
35658
|
borderRadius: isMobile ? "0" : "10px",
|
|
35652
35659
|
boxShadow: isMobile ? "none" : "rgba(47, 47, 47, 0.2) -1px 6px 40px 0px",
|
|
@@ -35680,16 +35687,19 @@ const CalendarDropdownContainer = ({
|
|
|
35680
35687
|
children: [/* @__PURE__ */ jsx(Header, {
|
|
35681
35688
|
text: (_d = text == null ? void 0 : text.header) != null ? _d : "Pr\xF3ximas fechas importantes de tus cursos",
|
|
35682
35689
|
isMobile
|
|
35683
|
-
}),
|
|
35684
|
-
|
|
35685
|
-
|
|
35686
|
-
|
|
35687
|
-
|
|
35688
|
-
|
|
35689
|
-
|
|
35690
|
-
|
|
35691
|
-
|
|
35692
|
-
|
|
35690
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
35691
|
+
bg: (_e = vars("colors-neutral-white")) != null ? _e : "#FFF",
|
|
35692
|
+
children: loading ? /* @__PURE__ */ jsx(Loading, {
|
|
35693
|
+
text: (_f = text == null ? void 0 : text.loading) != null ? _f : "Cargando"
|
|
35694
|
+
}) : events.length === 0 || empty ? /* @__PURE__ */ jsx(Empty, {
|
|
35695
|
+
text: (_g = text == null ? void 0 : text.empty) != null ? _g : "A\xFAn no tienes eventos en tu calendario"
|
|
35696
|
+
}) : /* @__PURE__ */ jsx(Events, {
|
|
35697
|
+
colors: courseColors,
|
|
35698
|
+
events: all,
|
|
35699
|
+
text,
|
|
35700
|
+
redirecToCalendar: redirectToCalendar,
|
|
35701
|
+
isMobile
|
|
35702
|
+
})
|
|
35693
35703
|
})]
|
|
35694
35704
|
})]
|
|
35695
35705
|
})
|