@eclass/ui-kit 1.51.20 → 1.52.0
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 +114 -92
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +19 -20
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/CalendarDropdownContainer.d.ts +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/CalendarDropdownContainer.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/Events.d.ts +3 -2
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/Events.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts +3 -2
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown.d.ts +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/types.d.ts +1 -0
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts +2 -1
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -35444,11 +35444,15 @@ const EventsGroup = ({
|
|
|
35444
35444
|
title,
|
|
35445
35445
|
events,
|
|
35446
35446
|
text,
|
|
35447
|
-
colors: colors2
|
|
35447
|
+
colors: colors2,
|
|
35448
|
+
clickEvent
|
|
35448
35449
|
}) => {
|
|
35449
35450
|
var _a;
|
|
35450
35451
|
if (!events || events && events.length === 0)
|
|
35451
35452
|
return /* @__PURE__ */ jsx(Fragment, {});
|
|
35453
|
+
const handleClick = (event) => {
|
|
35454
|
+
clickEvent == null ? void 0 : clickEvent(event);
|
|
35455
|
+
};
|
|
35452
35456
|
return /* @__PURE__ */ jsx(Box, {
|
|
35453
35457
|
className: "calendar-events-group",
|
|
35454
35458
|
_focus: {
|
|
@@ -35486,7 +35490,8 @@ const EventsGroup = ({
|
|
|
35486
35490
|
color: event.course_id && (colors2 == null ? void 0 : colors2[event.course_id]) ? colors2[event.course_id] : "#82504A",
|
|
35487
35491
|
text,
|
|
35488
35492
|
hasNotification: event.isNew,
|
|
35489
|
-
isDropdown: true
|
|
35493
|
+
isDropdown: true,
|
|
35494
|
+
clickEvent: () => handleClick(event)
|
|
35490
35495
|
}, event.id)
|
|
35491
35496
|
}, event.id);
|
|
35492
35497
|
})
|
|
@@ -35498,7 +35503,8 @@ const Events = ({
|
|
|
35498
35503
|
text,
|
|
35499
35504
|
redirecToCalendar,
|
|
35500
35505
|
isMobile,
|
|
35501
|
-
colors: colors2
|
|
35506
|
+
colors: colors2,
|
|
35507
|
+
clickEvent
|
|
35502
35508
|
}) => {
|
|
35503
35509
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
35504
35510
|
const {
|
|
@@ -35537,17 +35543,20 @@ const Events = ({
|
|
|
35537
35543
|
colors: colors2,
|
|
35538
35544
|
text: (_c = text == null ? void 0 : text.course) != null ? _c : "",
|
|
35539
35545
|
title: (_e = (_d = text == null ? void 0 : text.events) == null ? void 0 : _d.today) != null ? _e : "Hoy",
|
|
35540
|
-
events: today
|
|
35546
|
+
events: today,
|
|
35547
|
+
clickEvent
|
|
35541
35548
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
35542
35549
|
colors: colors2,
|
|
35543
35550
|
text: (_f = text == null ? void 0 : text.course) != null ? _f : "",
|
|
35544
35551
|
title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana",
|
|
35545
|
-
events: tomorrow
|
|
35552
|
+
events: tomorrow,
|
|
35553
|
+
clickEvent
|
|
35546
35554
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
35547
35555
|
colors: colors2,
|
|
35548
35556
|
text: (_i = text == null ? void 0 : text.course) != null ? _i : "",
|
|
35549
35557
|
title: (_k = (_j = text == null ? void 0 : text.events) == null ? void 0 : _j.next) != null ? _k : "Pr\xF3ximos",
|
|
35550
|
-
events: next2
|
|
35558
|
+
events: next2,
|
|
35559
|
+
clickEvent
|
|
35551
35560
|
})]
|
|
35552
35561
|
});
|
|
35553
35562
|
};
|
|
@@ -35559,7 +35568,8 @@ const CalendarDropdownContainer = ({
|
|
|
35559
35568
|
redirectToCalendar,
|
|
35560
35569
|
courseColors,
|
|
35561
35570
|
onlyToCalendar,
|
|
35562
|
-
m: m2
|
|
35571
|
+
m: m2,
|
|
35572
|
+
clickEvent
|
|
35563
35573
|
}) => {
|
|
35564
35574
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
35565
35575
|
const [isMobile] = useMediaQuery("(max-width: 577px)");
|
|
@@ -35614,18 +35624,17 @@ const CalendarDropdownContainer = ({
|
|
|
35614
35624
|
position: "relative",
|
|
35615
35625
|
sx: {
|
|
35616
35626
|
"&::after": {
|
|
35617
|
-
|
|
35618
|
-
position: "absolute",
|
|
35619
|
-
width: "0",
|
|
35620
|
-
height: "0",
|
|
35621
|
-
borderColor: `transparent transparent ${(_a = vars("colors-neutral-davysGrey")) != null ? _a : "#5C5C5C"}
|
|
35622
|
-
transparent`,
|
|
35627
|
+
borderColor: `transparent transparent ${(_a = vars("colors-neutral-davysGrey")) != null ? _a : "#5C5C5C"} transparent`,
|
|
35623
35628
|
borderStyle: "solid",
|
|
35624
35629
|
borderWidth: "0 11px 10px 11px",
|
|
35625
|
-
|
|
35626
|
-
right: isMobile ? "3px" : "15px",
|
|
35630
|
+
content: '""',
|
|
35627
35631
|
display: isMenuOpen ? "block" : "none",
|
|
35628
|
-
|
|
35632
|
+
height: "0",
|
|
35633
|
+
left: "50%",
|
|
35634
|
+
position: "absolute",
|
|
35635
|
+
top: "30px",
|
|
35636
|
+
transform: "translateX(-50%)",
|
|
35637
|
+
width: "0"
|
|
35629
35638
|
},
|
|
35630
35639
|
"&.hasNew::before": {
|
|
35631
35640
|
background: (_b = vars("colors-secondary-pumpkin")) != null ? _b : "#FF7A14",
|
|
@@ -35640,27 +35649,27 @@ const CalendarDropdownContainer = ({
|
|
|
35640
35649
|
zIndex: "1"
|
|
35641
35650
|
},
|
|
35642
35651
|
">div": {
|
|
35643
|
-
position: isMobile ? "fixed !important" : "absolute",
|
|
35644
35652
|
left: isMobile ? "0 !important" : "auto",
|
|
35653
|
+
position: isMobile ? "fixed !important" : "absolute",
|
|
35645
35654
|
top: isMobile ? "62px !important" : "auto",
|
|
35646
35655
|
transform: isMobile ? "none !important" : "translate3d(-409px, 38px, 0px) !important"
|
|
35647
35656
|
},
|
|
35648
35657
|
".chakra-menu__menu-list": {
|
|
35649
|
-
|
|
35650
|
-
position: "absolute",
|
|
35651
|
-
left: isMobile ? "auto" : "-30px",
|
|
35652
|
-
top: isMobile ? "-6px !important" : "auto",
|
|
35653
|
-
width: isMobile ? "100vw" : "500px",
|
|
35654
|
-
maxHeight: isMobile ? "calc(100vh - 62px)" : "auto",
|
|
35655
|
-
overflowY: isMobile ? "auto" : "hidden",
|
|
35658
|
+
animation: "none !important",
|
|
35656
35659
|
background: "transparent",
|
|
35657
35660
|
border: "none",
|
|
35658
35661
|
borderRadius: isMobile ? "0" : "10px",
|
|
35659
35662
|
boxShadow: isMobile ? "none" : "rgba(47, 47, 47, 0.2) -1px 6px 40px 0px",
|
|
35660
|
-
|
|
35661
|
-
|
|
35663
|
+
left: isMobile ? "auto" : "-30px",
|
|
35664
|
+
maxHeight: isMobile ? "calc(100vh - 62px)" : "auto",
|
|
35665
|
+
opacity: "1 !important",
|
|
35666
|
+
overflowY: isMobile ? "auto" : "hidden",
|
|
35667
|
+
padding: "0",
|
|
35668
|
+
position: "absolute",
|
|
35669
|
+
top: isMobile ? "-6px !important" : "auto",
|
|
35662
35670
|
transform: "none !important",
|
|
35663
|
-
|
|
35671
|
+
transition: "none !important",
|
|
35672
|
+
width: isMobile ? "100vw" : "500px"
|
|
35664
35673
|
},
|
|
35665
35674
|
".chakra-menu__group__title": {
|
|
35666
35675
|
fontSize: "18px",
|
|
@@ -35698,7 +35707,8 @@ const CalendarDropdownContainer = ({
|
|
|
35698
35707
|
events: all,
|
|
35699
35708
|
text,
|
|
35700
35709
|
redirecToCalendar: redirectToCalendar,
|
|
35701
|
-
isMobile
|
|
35710
|
+
isMobile,
|
|
35711
|
+
clickEvent
|
|
35702
35712
|
})
|
|
35703
35713
|
})]
|
|
35704
35714
|
})]
|
|
@@ -35721,7 +35731,8 @@ const CalendarDropdown = ({
|
|
|
35721
35731
|
events,
|
|
35722
35732
|
loading,
|
|
35723
35733
|
onlyToCalendar = false,
|
|
35724
|
-
m: m2
|
|
35734
|
+
m: m2,
|
|
35735
|
+
clickEvent
|
|
35725
35736
|
}) => {
|
|
35726
35737
|
const date = new Date(now);
|
|
35727
35738
|
const isoDate = date.toISOString();
|
|
@@ -35733,7 +35744,8 @@ const CalendarDropdown = ({
|
|
|
35733
35744
|
courseColors,
|
|
35734
35745
|
redirectToCalendar,
|
|
35735
35746
|
text,
|
|
35736
|
-
onlyToCalendar
|
|
35747
|
+
onlyToCalendar,
|
|
35748
|
+
clickEvent
|
|
35737
35749
|
});
|
|
35738
35750
|
};
|
|
35739
35751
|
function Calendar(props) {
|
|
@@ -35784,75 +35796,85 @@ const EventsList = ({
|
|
|
35784
35796
|
color: color2,
|
|
35785
35797
|
text,
|
|
35786
35798
|
date,
|
|
35787
|
-
hours
|
|
35799
|
+
hours,
|
|
35800
|
+
clickEvent
|
|
35788
35801
|
}) => {
|
|
35789
|
-
var _a, _b;
|
|
35802
|
+
var _a, _b, _c, _d;
|
|
35790
35803
|
const border2 = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
|
|
35791
|
-
|
|
35792
|
-
|
|
35793
|
-
|
|
35794
|
-
|
|
35795
|
-
|
|
35796
|
-
|
|
35797
|
-
|
|
35798
|
-
|
|
35799
|
-
|
|
35800
|
-
|
|
35801
|
-
|
|
35802
|
-
|
|
35803
|
-
|
|
35804
|
-
fontSize: "16px",
|
|
35805
|
-
children: [name, " ", hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
35806
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
35804
|
+
const handleClick = () => clickEvent == null ? void 0 : clickEvent();
|
|
35805
|
+
return /* @__PURE__ */ jsx(Ripples, {
|
|
35806
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
35807
|
+
className: "eventsList",
|
|
35808
|
+
borderTop: border2,
|
|
35809
|
+
padding: "16px 24px",
|
|
35810
|
+
onClick: handleClick,
|
|
35811
|
+
cursor: "pointer",
|
|
35812
|
+
bg: (_b = vars("colors-neutral-white")) != null ? _b : "#fff",
|
|
35813
|
+
_hover: {
|
|
35814
|
+
bg: (_c = vars("colors-neutral-cultured2")) != null ? _c : "#F8F8F8"
|
|
35815
|
+
},
|
|
35816
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
35807
35817
|
display: "flex",
|
|
35808
|
-
|
|
35809
|
-
|
|
35810
|
-
sx: {
|
|
35811
|
-
svg: {
|
|
35812
|
-
marginRight: "4px"
|
|
35813
|
-
},
|
|
35814
|
-
span: {
|
|
35815
|
-
verticalAlign: "middle"
|
|
35816
|
-
}
|
|
35817
|
-
},
|
|
35818
|
+
flexDirection: "column",
|
|
35819
|
+
gap: "8px",
|
|
35818
35820
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
35819
|
-
|
|
35820
|
-
|
|
35821
|
-
|
|
35822
|
-
|
|
35823
|
-
|
|
35824
|
-
|
|
35825
|
-
paddingLeft: "8px",
|
|
35826
|
-
children: [/* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx("span", {
|
|
35827
|
-
children: hours
|
|
35828
|
-
})]
|
|
35829
|
-
})]
|
|
35830
|
-
}), isDropdown && /* @__PURE__ */ jsxs(Box, {
|
|
35831
|
-
display: "flex",
|
|
35832
|
-
alignItems: "center",
|
|
35833
|
-
gap: "4px",
|
|
35834
|
-
lineHeight: "19px",
|
|
35835
|
-
children: [/* @__PURE__ */ jsx(Box, {
|
|
35836
|
-
alignSelf: "flex-start",
|
|
35837
|
-
bg: color2,
|
|
35838
|
-
borderRadius: "50%",
|
|
35839
|
-
display: "block",
|
|
35840
|
-
h: "10px",
|
|
35841
|
-
mt: "4px",
|
|
35842
|
-
maxH: "10px",
|
|
35843
|
-
maxW: "10px",
|
|
35844
|
-
minH: "10px",
|
|
35845
|
-
minW: "10px",
|
|
35846
|
-
w: "10px"
|
|
35821
|
+
lineHeight: "21px",
|
|
35822
|
+
display: "flex",
|
|
35823
|
+
justifyContent: "space-between",
|
|
35824
|
+
alignItems: "center",
|
|
35825
|
+
fontSize: "16px",
|
|
35826
|
+
children: [name, " ", hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
35847
35827
|
}), /* @__PURE__ */ jsxs(Box, {
|
|
35848
|
-
|
|
35849
|
-
|
|
35828
|
+
display: "flex",
|
|
35829
|
+
lineHeight: "19px",
|
|
35850
35830
|
fontSize: "14px",
|
|
35851
|
-
|
|
35852
|
-
|
|
35853
|
-
|
|
35831
|
+
sx: {
|
|
35832
|
+
svg: {
|
|
35833
|
+
marginRight: "4px"
|
|
35834
|
+
},
|
|
35835
|
+
span: {
|
|
35836
|
+
verticalAlign: "middle"
|
|
35837
|
+
}
|
|
35838
|
+
},
|
|
35839
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
35840
|
+
paddingRight: "8px",
|
|
35841
|
+
borderRight: border2,
|
|
35842
|
+
children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsx("span", {
|
|
35843
|
+
children: date
|
|
35844
|
+
})]
|
|
35845
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
35846
|
+
paddingLeft: "8px",
|
|
35847
|
+
children: [/* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx("span", {
|
|
35848
|
+
children: hours
|
|
35849
|
+
})]
|
|
35850
|
+
})]
|
|
35851
|
+
}), isDropdown && /* @__PURE__ */ jsxs(Box, {
|
|
35852
|
+
display: "flex",
|
|
35853
|
+
alignItems: "center",
|
|
35854
|
+
gap: "4px",
|
|
35855
|
+
lineHeight: "19px",
|
|
35856
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
35857
|
+
alignSelf: "flex-start",
|
|
35858
|
+
bg: color2,
|
|
35859
|
+
borderRadius: "50%",
|
|
35860
|
+
display: "block",
|
|
35861
|
+
h: "10px",
|
|
35862
|
+
mt: "4px",
|
|
35863
|
+
maxH: "10px",
|
|
35864
|
+
maxW: "10px",
|
|
35865
|
+
minH: "10px",
|
|
35866
|
+
minW: "10px",
|
|
35867
|
+
w: "10px"
|
|
35868
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
35869
|
+
as: "span",
|
|
35870
|
+
color: (_d = vars("colors-neutral-gray")) != null ? _d : "#808080",
|
|
35871
|
+
fontSize: "14px",
|
|
35872
|
+
children: [/* @__PURE__ */ jsxs("strong", {
|
|
35873
|
+
children: [text != null ? text : "Curso", ":"]
|
|
35874
|
+
}), " ", courseName]
|
|
35875
|
+
})]
|
|
35854
35876
|
})]
|
|
35855
|
-
})
|
|
35877
|
+
})
|
|
35856
35878
|
})
|
|
35857
35879
|
});
|
|
35858
35880
|
};
|