@eclass/ui-kit 1.51.8 → 1.51.10
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 +210 -196
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +44 -44
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Alerts/Alert.d.ts +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/CalendarDropdownContainer.d.ts +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/Events.d.ts +6 -21
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts +10 -0
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/GoToCalendar.d.ts +3 -2
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown.d.ts +1 -1
- package/dist/organisms/Calendar/Dropdown/types.d.ts +5 -2
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -35221,49 +35221,36 @@ const CalendarButtonIcon = () => /* @__PURE__ */ jsxs("svg", {
|
|
|
35221
35221
|
d: "M6 7H4v2h2V7ZM9 7H7v2h2V7ZM6 10H4v2h2v-2ZM9 10H7v2h2v-2ZM12 7h-2v2h2V7ZM12 10h-2v2h2v-2Z"
|
|
35222
35222
|
})]
|
|
35223
35223
|
});
|
|
35224
|
-
const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {
|
|
35225
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
35226
|
-
width: "8px",
|
|
35227
|
-
height: "9px",
|
|
35228
|
-
fill: "none",
|
|
35229
|
-
className: "notification",
|
|
35230
|
-
children: /* @__PURE__ */ jsx("circle", {
|
|
35231
|
-
cx: "4px",
|
|
35232
|
-
cy: "4.5px",
|
|
35233
|
-
r: "4px",
|
|
35234
|
-
fill: "#FF7A14"
|
|
35235
|
-
})
|
|
35236
|
-
});
|
|
35237
35224
|
const GoToCalendar = ({
|
|
35238
|
-
hasNew,
|
|
35239
35225
|
text,
|
|
35240
|
-
tooltipDisabled
|
|
35226
|
+
tooltipDisabled,
|
|
35227
|
+
onlyToCalendar,
|
|
35228
|
+
onClick
|
|
35241
35229
|
}) => {
|
|
35242
35230
|
var _a;
|
|
35243
35231
|
return /* @__PURE__ */ jsx(NewTooltip, {
|
|
35244
35232
|
label: text != null ? text : "Calendario",
|
|
35245
35233
|
m: "2px 0 0 0",
|
|
35246
35234
|
isDisabled: tooltipDisabled,
|
|
35247
|
-
children: /* @__PURE__ */
|
|
35235
|
+
children: /* @__PURE__ */ jsx(MenuButton, {
|
|
35236
|
+
onClick: () => onlyToCalendar && onClick && onClick(),
|
|
35248
35237
|
background: (_a = vars("colors-main-blueGrey")) != null ? _a : "#60798E",
|
|
35249
35238
|
border: "1px solid transparent",
|
|
35250
35239
|
borderRadius: "100%",
|
|
35251
35240
|
height: "30px",
|
|
35252
35241
|
width: "30px",
|
|
35253
35242
|
position: "relative",
|
|
35243
|
+
_hover: {
|
|
35244
|
+
bg: "rgba(96, 121, 142, 0.8)"
|
|
35245
|
+
},
|
|
35254
35246
|
sx: {
|
|
35255
35247
|
">span": {
|
|
35256
35248
|
lineHeight: "0",
|
|
35257
35249
|
justifyItems: "center",
|
|
35258
35250
|
alignContent: "center"
|
|
35259
|
-
},
|
|
35260
|
-
".notification": {
|
|
35261
|
-
position: "absolute",
|
|
35262
|
-
top: "-1px",
|
|
35263
|
-
right: "-1px"
|
|
35264
35251
|
}
|
|
35265
35252
|
},
|
|
35266
|
-
children:
|
|
35253
|
+
children: /* @__PURE__ */ jsx(CalendarButtonIcon, {})
|
|
35267
35254
|
})
|
|
35268
35255
|
});
|
|
35269
35256
|
};
|
|
@@ -35290,7 +35277,7 @@ const Header = ({
|
|
|
35290
35277
|
}), /* @__PURE__ */ jsx(Box, {
|
|
35291
35278
|
className: "arrow",
|
|
35292
35279
|
"aria-hidden": true,
|
|
35293
|
-
borderBottom:
|
|
35280
|
+
borderBottom: `12px solid ${(_c = vars("colors-neutral-davysGrey")) != null ? _c : "#5C5C5C"}`,
|
|
35294
35281
|
borderLeft: "14px solid transparent",
|
|
35295
35282
|
borderRight: "14px solid transparent",
|
|
35296
35283
|
display: isMobile ? "none" : "block",
|
|
@@ -35456,107 +35443,56 @@ const Empty = ({
|
|
|
35456
35443
|
})]
|
|
35457
35444
|
});
|
|
35458
35445
|
};
|
|
35459
|
-
|
|
35460
|
-
|
|
35461
|
-
|
|
35462
|
-
title: "Calendar",
|
|
35463
|
-
children: /* @__PURE__ */ jsxs("g", {
|
|
35464
|
-
fill: "#B0CFE0",
|
|
35465
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
35466
|
-
fill: "#B0CFE0",
|
|
35467
|
-
d: "M15 2h-2V0h-2v2H9V0H7v2H5V0H3v2H1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm-1 12H2V5h12v9z"
|
|
35468
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
35469
|
-
d: "M4 7h2v2H4zM7 7h2v2H7zM4 10h2v2H4zM7 10h2v2H7zM10 7h2v2h-2zM10 10h2v2h-2z"
|
|
35470
|
-
})]
|
|
35471
|
-
})
|
|
35472
|
-
});
|
|
35473
|
-
}
|
|
35474
|
-
Calendar.displayName = "Calendar";
|
|
35475
|
-
function Clock(props) {
|
|
35476
|
-
return /* @__PURE__ */ jsx(Base, {
|
|
35477
|
-
...props,
|
|
35478
|
-
title: "Clock",
|
|
35479
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
35480
|
-
fill: "#B0CFE0",
|
|
35481
|
-
d: "M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm4 9H7V4h2v3h3v2z"
|
|
35482
|
-
})
|
|
35483
|
-
});
|
|
35484
|
-
}
|
|
35485
|
-
Clock.displayName = "Clock";
|
|
35486
|
-
const EventsList = ({
|
|
35487
|
-
hasNotification,
|
|
35488
|
-
isDropdown,
|
|
35489
|
-
name,
|
|
35490
|
-
courseName,
|
|
35491
|
-
color: color2,
|
|
35446
|
+
const EventsGroup = ({
|
|
35447
|
+
title,
|
|
35448
|
+
events,
|
|
35492
35449
|
text,
|
|
35493
|
-
|
|
35494
|
-
hours
|
|
35450
|
+
colors: colors2
|
|
35495
35451
|
}) => {
|
|
35496
|
-
var _a
|
|
35497
|
-
|
|
35498
|
-
|
|
35452
|
+
var _a;
|
|
35453
|
+
if (!events || events && events.length === 0)
|
|
35454
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
35499
35455
|
return /* @__PURE__ */ jsx(Box, {
|
|
35500
|
-
className: "
|
|
35501
|
-
|
|
35502
|
-
|
|
35503
|
-
|
|
35504
|
-
|
|
35505
|
-
|
|
35506
|
-
|
|
35507
|
-
|
|
35508
|
-
|
|
35509
|
-
|
|
35510
|
-
|
|
35511
|
-
|
|
35512
|
-
|
|
35513
|
-
|
|
35514
|
-
|
|
35515
|
-
|
|
35516
|
-
|
|
35517
|
-
|
|
35518
|
-
|
|
35519
|
-
|
|
35520
|
-
|
|
35456
|
+
className: "calendar-events-group",
|
|
35457
|
+
_focus: {
|
|
35458
|
+
background: "none !important",
|
|
35459
|
+
border: `1px solid ${(_a = vars("colors-icon-deepSkyBlue")) != null ? _a : "#0189FF"}`
|
|
35460
|
+
},
|
|
35461
|
+
sx: {
|
|
35462
|
+
".chakra-menu__menuitem > div": {
|
|
35463
|
+
w: "100%"
|
|
35464
|
+
}
|
|
35465
|
+
},
|
|
35466
|
+
children: /* @__PURE__ */ jsx(MenuGroup, {
|
|
35467
|
+
title,
|
|
35468
|
+
children: events.map((event) => {
|
|
35469
|
+
var _a2;
|
|
35470
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
35471
|
+
bg: (_a2 = vars("colors-neutral-white")) != null ? _a2 : "#FFFFFF",
|
|
35472
|
+
border: "none",
|
|
35473
|
+
cursor: "default",
|
|
35474
|
+
padding: "0",
|
|
35475
|
+
_hover: {
|
|
35476
|
+
boxShadow: "none !important",
|
|
35477
|
+
cursor: "default !important",
|
|
35478
|
+
bg: "none !important"
|
|
35521
35479
|
},
|
|
35522
|
-
|
|
35523
|
-
|
|
35524
|
-
|
|
35525
|
-
|
|
35526
|
-
|
|
35527
|
-
|
|
35528
|
-
|
|
35529
|
-
|
|
35530
|
-
|
|
35531
|
-
|
|
35532
|
-
|
|
35533
|
-
|
|
35534
|
-
|
|
35535
|
-
|
|
35536
|
-
|
|
35537
|
-
|
|
35538
|
-
}), isDropdown && /* @__PURE__ */ jsxs(Box, {
|
|
35539
|
-
display: "flex",
|
|
35540
|
-
alignItems: "center",
|
|
35541
|
-
gap: "4px",
|
|
35542
|
-
lineHeight: "19px",
|
|
35543
|
-
children: [/* @__PURE__ */ jsx(Box, {
|
|
35544
|
-
h: "10px",
|
|
35545
|
-
w: "10px",
|
|
35546
|
-
bg: bgColor,
|
|
35547
|
-
borderRadius: "50%",
|
|
35548
|
-
display: "block",
|
|
35549
|
-
alignSelf: "flex-start",
|
|
35550
|
-
mt: "4px"
|
|
35551
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
35552
|
-
as: "span",
|
|
35553
|
-
color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
|
|
35554
|
-
fontSize: "14px",
|
|
35555
|
-
children: [/* @__PURE__ */ jsxs("strong", {
|
|
35556
|
-
children: [text != null ? text : "Curso", ":"]
|
|
35557
|
-
}), " ", courseName]
|
|
35558
|
-
})]
|
|
35559
|
-
})]
|
|
35480
|
+
_focus: {
|
|
35481
|
+
background: "none !important",
|
|
35482
|
+
boxShadow: "none !important"
|
|
35483
|
+
},
|
|
35484
|
+
children: /* @__PURE__ */ jsx(EventsList, {
|
|
35485
|
+
name: event.associated_resource.name || "",
|
|
35486
|
+
courseName: event.course.name,
|
|
35487
|
+
date: event.formatedDate.start,
|
|
35488
|
+
hours: event.formatedDate.hours,
|
|
35489
|
+
color: event.course_id && (colors2 == null ? void 0 : colors2[event.course_id]) ? colors2[event.course_id] : "#82504A",
|
|
35490
|
+
text,
|
|
35491
|
+
hasNotification: event.isNew,
|
|
35492
|
+
isDropdown: true
|
|
35493
|
+
}, event.id)
|
|
35494
|
+
}, event.id);
|
|
35495
|
+
})
|
|
35560
35496
|
})
|
|
35561
35497
|
});
|
|
35562
35498
|
};
|
|
@@ -35567,7 +35503,7 @@ const Events = ({
|
|
|
35567
35503
|
isMobile,
|
|
35568
35504
|
colors: colors2
|
|
35569
35505
|
}) => {
|
|
35570
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
35506
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
35571
35507
|
const {
|
|
35572
35508
|
today,
|
|
35573
35509
|
tomorrow,
|
|
@@ -35581,7 +35517,7 @@ const Events = ({
|
|
|
35581
35517
|
pb: "32px",
|
|
35582
35518
|
sx: {
|
|
35583
35519
|
".calendar-events-group": {
|
|
35584
|
-
borderBottom:
|
|
35520
|
+
borderBottom: `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`
|
|
35585
35521
|
}
|
|
35586
35522
|
},
|
|
35587
35523
|
children: [redirecToCalendar && /* @__PURE__ */ jsx(Box, {
|
|
@@ -35602,88 +35538,33 @@ const Events = ({
|
|
|
35602
35538
|
})
|
|
35603
35539
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
35604
35540
|
colors: colors2,
|
|
35605
|
-
text: text.course,
|
|
35606
|
-
title: (
|
|
35541
|
+
text: (_c = text == null ? void 0 : text.course) != null ? _c : "",
|
|
35542
|
+
title: (_e = (_d = text == null ? void 0 : text.events) == null ? void 0 : _d.today) != null ? _e : "Hoy",
|
|
35607
35543
|
events: today
|
|
35608
35544
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
35609
35545
|
colors: colors2,
|
|
35610
|
-
text: text.course,
|
|
35611
|
-
title: (
|
|
35546
|
+
text: (_f = text == null ? void 0 : text.course) != null ? _f : "",
|
|
35547
|
+
title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana",
|
|
35612
35548
|
events: tomorrow
|
|
35613
35549
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
35614
35550
|
colors: colors2,
|
|
35615
|
-
text: text.course,
|
|
35616
|
-
title: (
|
|
35551
|
+
text: (_i = text == null ? void 0 : text.course) != null ? _i : "",
|
|
35552
|
+
title: (_k = (_j = text == null ? void 0 : text.events) == null ? void 0 : _j.next) != null ? _k : "Pr\xF3ximos",
|
|
35617
35553
|
events: next2
|
|
35618
35554
|
})]
|
|
35619
35555
|
});
|
|
35620
35556
|
};
|
|
35621
|
-
const EventsGroup = ({
|
|
35622
|
-
title,
|
|
35623
|
-
events,
|
|
35624
|
-
text,
|
|
35625
|
-
colors: colors2
|
|
35626
|
-
}) => {
|
|
35627
|
-
var _a;
|
|
35628
|
-
if (!events || events && events.length === 0)
|
|
35629
|
-
return /* @__PURE__ */ jsx(Fragment, {});
|
|
35630
|
-
return /* @__PURE__ */ jsx(Box, {
|
|
35631
|
-
className: "calendar-events-group",
|
|
35632
|
-
_focus: {
|
|
35633
|
-
background: "none !important",
|
|
35634
|
-
border: (_a = `1px solid ${vars("colors-icon-deepSkyBlue")}`) != null ? _a : "1px solid #0189FF"
|
|
35635
|
-
},
|
|
35636
|
-
sx: {
|
|
35637
|
-
".chakra-menu__menuitem > div": {
|
|
35638
|
-
w: "100%"
|
|
35639
|
-
}
|
|
35640
|
-
},
|
|
35641
|
-
children: /* @__PURE__ */ jsx(MenuGroup, {
|
|
35642
|
-
title,
|
|
35643
|
-
children: events.map((event) => {
|
|
35644
|
-
var _a2;
|
|
35645
|
-
return /* @__PURE__ */ jsx(
|
|
35646
|
-
Box,
|
|
35647
|
-
{
|
|
35648
|
-
bg: (_a2 = vars("colors-neutral-white")) != null ? _a2 : "#FFFFFF",
|
|
35649
|
-
border: "none",
|
|
35650
|
-
cursor: "default",
|
|
35651
|
-
padding: "0",
|
|
35652
|
-
_hover: {
|
|
35653
|
-
boxShadow: "none !important",
|
|
35654
|
-
cursor: "default !important",
|
|
35655
|
-
bg: "none !important"
|
|
35656
|
-
},
|
|
35657
|
-
_focus: {
|
|
35658
|
-
background: "none !important",
|
|
35659
|
-
boxShadow: "none !important"
|
|
35660
|
-
},
|
|
35661
|
-
children: /* @__PURE__ */ jsx(EventsList, {
|
|
35662
|
-
name: event.associated_resource.name || "",
|
|
35663
|
-
courseName: event.course.name,
|
|
35664
|
-
date: event.formatedDate.start,
|
|
35665
|
-
hours: event.formatedDate.hours,
|
|
35666
|
-
color: event.course_id && (colors2 == null ? void 0 : colors2[event.course_id]),
|
|
35667
|
-
text,
|
|
35668
|
-
hasNotification: event.isNew,
|
|
35669
|
-
isDropdown: true
|
|
35670
|
-
}, event.id)
|
|
35671
|
-
},
|
|
35672
|
-
event.id
|
|
35673
|
-
);
|
|
35674
|
-
})
|
|
35675
|
-
})
|
|
35676
|
-
});
|
|
35677
|
-
};
|
|
35678
35557
|
const CalendarDropdownContainer = ({
|
|
35679
35558
|
events,
|
|
35680
35559
|
loading,
|
|
35681
35560
|
text,
|
|
35682
35561
|
now,
|
|
35683
35562
|
redirectToCalendar,
|
|
35684
|
-
courseColors
|
|
35563
|
+
courseColors,
|
|
35564
|
+
onlyToCalendar,
|
|
35685
35565
|
m: m2
|
|
35686
35566
|
}) => {
|
|
35567
|
+
var _a, _b, _c, _d, _e;
|
|
35687
35568
|
const [isMobile] = useMediaQuery("(max-width: 577px)");
|
|
35688
35569
|
const {
|
|
35689
35570
|
closeAndMarkSeen,
|
|
@@ -35702,6 +35583,8 @@ const CalendarDropdownContainer = ({
|
|
|
35702
35583
|
}
|
|
35703
35584
|
}, [isMenuOpen]);
|
|
35704
35585
|
useEffect(() => {
|
|
35586
|
+
if (!isMobile || onlyToCalendar)
|
|
35587
|
+
return;
|
|
35705
35588
|
const viewContainer = document.getElementById("ViewContainer");
|
|
35706
35589
|
if (viewContainer) {
|
|
35707
35590
|
viewContainer.style.display = isMenuOpen ? "none" : "";
|
|
@@ -35727,10 +35610,22 @@ const CalendarDropdownContainer = ({
|
|
|
35727
35610
|
};
|
|
35728
35611
|
return /* @__PURE__ */ jsx(Box, {
|
|
35729
35612
|
zIndex: 4,
|
|
35730
|
-
className:
|
|
35613
|
+
className: `calendarDropdown ${hasNew && !onlyToCalendar ? "hasNew" : ""}`,
|
|
35731
35614
|
m: m2,
|
|
35732
35615
|
position: "relative",
|
|
35733
35616
|
sx: {
|
|
35617
|
+
"&.hasNew::before": {
|
|
35618
|
+
background: (_a = vars("colors-secondary-pumpkin")) != null ? _a : "#FF7A14",
|
|
35619
|
+
borderRadius: "50%",
|
|
35620
|
+
content: '""',
|
|
35621
|
+
display: "block",
|
|
35622
|
+
height: "8px",
|
|
35623
|
+
width: "8px",
|
|
35624
|
+
position: "absolute",
|
|
35625
|
+
right: "0",
|
|
35626
|
+
top: "0",
|
|
35627
|
+
zIndex: "1"
|
|
35628
|
+
},
|
|
35734
35629
|
">div": {
|
|
35735
35630
|
position: isMobile ? "fixed !important" : "absolute",
|
|
35736
35631
|
left: isMobile ? "0 !important" : "auto",
|
|
@@ -35768,19 +35663,20 @@ const CalendarDropdownContainer = ({
|
|
|
35768
35663
|
onClose,
|
|
35769
35664
|
children: /* @__PURE__ */ jsxs(Fragment, {
|
|
35770
35665
|
children: [/* @__PURE__ */ jsx(GoToCalendar, {
|
|
35771
|
-
|
|
35772
|
-
|
|
35773
|
-
|
|
35774
|
-
|
|
35666
|
+
text: (_b = text == null ? void 0 : text.tooltip) != null ? _b : "Ir a Mi Calendario",
|
|
35667
|
+
tooltipDisabled: isTooltipDisabled,
|
|
35668
|
+
onlyToCalendar,
|
|
35669
|
+
onClick: redirectToCalendar
|
|
35670
|
+
}), !onlyToCalendar && /* @__PURE__ */ jsxs(MenuList, {
|
|
35775
35671
|
children: [/* @__PURE__ */ jsx(Header, {
|
|
35776
|
-
text: (text == null ? void 0 : text.header)
|
|
35672
|
+
text: (_c = text == null ? void 0 : text.header) != null ? _c : "Pr\xF3ximas fechas importantes de tus cursos",
|
|
35777
35673
|
isMobile
|
|
35778
35674
|
}), loading ? /* @__PURE__ */ jsx(Loading, {
|
|
35779
|
-
text: (text == null ? void 0 : text.loading)
|
|
35675
|
+
text: (_d = text == null ? void 0 : text.loading) != null ? _d : "Cargando"
|
|
35780
35676
|
}) : events.length === 0 || empty ? /* @__PURE__ */ jsx(Empty, {
|
|
35781
|
-
text: (text == null ? void 0 : text.empty)
|
|
35677
|
+
text: (_e = text == null ? void 0 : text.empty) != null ? _e : "A\xFAn no tienes eventos en tu calendario"
|
|
35782
35678
|
}) : /* @__PURE__ */ jsx(Events, {
|
|
35783
|
-
colors:
|
|
35679
|
+
colors: courseColors,
|
|
35784
35680
|
events: all,
|
|
35785
35681
|
text,
|
|
35786
35682
|
redirecToCalendar: redirectToCalendar,
|
|
@@ -35805,6 +35701,7 @@ const CalendarDropdown = ({
|
|
|
35805
35701
|
now,
|
|
35806
35702
|
events,
|
|
35807
35703
|
loading,
|
|
35704
|
+
onlyToCalendar = false,
|
|
35808
35705
|
m: m2
|
|
35809
35706
|
}) => {
|
|
35810
35707
|
const date = new Date(now);
|
|
@@ -35816,7 +35713,124 @@ const CalendarDropdown = ({
|
|
|
35816
35713
|
now: isoDate,
|
|
35817
35714
|
courseColors,
|
|
35818
35715
|
redirectToCalendar,
|
|
35819
|
-
text
|
|
35716
|
+
text,
|
|
35717
|
+
onlyToCalendar
|
|
35718
|
+
});
|
|
35719
|
+
};
|
|
35720
|
+
function Calendar(props) {
|
|
35721
|
+
return /* @__PURE__ */ jsx(Base, {
|
|
35722
|
+
...props,
|
|
35723
|
+
title: "Calendar",
|
|
35724
|
+
children: /* @__PURE__ */ jsxs("g", {
|
|
35725
|
+
fill: "#B0CFE0",
|
|
35726
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
35727
|
+
fill: "#B0CFE0",
|
|
35728
|
+
d: "M15 2h-2V0h-2v2H9V0H7v2H5V0H3v2H1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm-1 12H2V5h12v9z"
|
|
35729
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
35730
|
+
d: "M4 7h2v2H4zM7 7h2v2H7zM4 10h2v2H4zM7 10h2v2H7zM10 7h2v2h-2zM10 10h2v2h-2z"
|
|
35731
|
+
})]
|
|
35732
|
+
})
|
|
35733
|
+
});
|
|
35734
|
+
}
|
|
35735
|
+
Calendar.displayName = "Calendar";
|
|
35736
|
+
function Clock(props) {
|
|
35737
|
+
return /* @__PURE__ */ jsx(Base, {
|
|
35738
|
+
...props,
|
|
35739
|
+
title: "Clock",
|
|
35740
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
35741
|
+
fill: "#B0CFE0",
|
|
35742
|
+
d: "M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm4 9H7V4h2v3h3v2z"
|
|
35743
|
+
})
|
|
35744
|
+
});
|
|
35745
|
+
}
|
|
35746
|
+
Clock.displayName = "Clock";
|
|
35747
|
+
const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {
|
|
35748
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35749
|
+
width: "8px",
|
|
35750
|
+
height: "9px",
|
|
35751
|
+
fill: "none",
|
|
35752
|
+
className: "goToCalendarNotification",
|
|
35753
|
+
children: /* @__PURE__ */ jsx("circle", {
|
|
35754
|
+
cx: "4px",
|
|
35755
|
+
cy: "4.5px",
|
|
35756
|
+
r: "4px",
|
|
35757
|
+
fill: "#FF7A14"
|
|
35758
|
+
})
|
|
35759
|
+
});
|
|
35760
|
+
const EventsList = ({
|
|
35761
|
+
hasNotification,
|
|
35762
|
+
isDropdown,
|
|
35763
|
+
name,
|
|
35764
|
+
courseName,
|
|
35765
|
+
color: color2,
|
|
35766
|
+
text,
|
|
35767
|
+
date,
|
|
35768
|
+
hours
|
|
35769
|
+
}) => {
|
|
35770
|
+
var _a, _b;
|
|
35771
|
+
const border2 = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
|
|
35772
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
35773
|
+
className: "eventsList",
|
|
35774
|
+
borderTop: border2,
|
|
35775
|
+
padding: "16px 24px",
|
|
35776
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
35777
|
+
display: "flex",
|
|
35778
|
+
flexDirection: "column",
|
|
35779
|
+
gap: "8px",
|
|
35780
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
35781
|
+
lineHeight: "21px",
|
|
35782
|
+
display: "flex",
|
|
35783
|
+
justifyContent: "space-between",
|
|
35784
|
+
alignItems: "center",
|
|
35785
|
+
fontSize: "16px",
|
|
35786
|
+
children: [name, " ", hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
35787
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
35788
|
+
display: "flex",
|
|
35789
|
+
lineHeight: "19px",
|
|
35790
|
+
fontSize: "14px",
|
|
35791
|
+
sx: {
|
|
35792
|
+
svg: {
|
|
35793
|
+
marginRight: "4px"
|
|
35794
|
+
},
|
|
35795
|
+
span: {
|
|
35796
|
+
verticalAlign: "middle"
|
|
35797
|
+
}
|
|
35798
|
+
},
|
|
35799
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
35800
|
+
paddingRight: "8px",
|
|
35801
|
+
borderRight: border2,
|
|
35802
|
+
children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsx("span", {
|
|
35803
|
+
children: date
|
|
35804
|
+
})]
|
|
35805
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
35806
|
+
paddingLeft: "8px",
|
|
35807
|
+
children: [/* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx("span", {
|
|
35808
|
+
children: hours
|
|
35809
|
+
})]
|
|
35810
|
+
})]
|
|
35811
|
+
}), isDropdown && /* @__PURE__ */ jsxs(Box, {
|
|
35812
|
+
display: "flex",
|
|
35813
|
+
alignItems: "center",
|
|
35814
|
+
gap: "4px",
|
|
35815
|
+
lineHeight: "19px",
|
|
35816
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
35817
|
+
h: "10px",
|
|
35818
|
+
w: "10px",
|
|
35819
|
+
bg: color2,
|
|
35820
|
+
borderRadius: "50%",
|
|
35821
|
+
display: "block",
|
|
35822
|
+
alignSelf: "flex-start",
|
|
35823
|
+
mt: "4px"
|
|
35824
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
35825
|
+
as: "span",
|
|
35826
|
+
color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
|
|
35827
|
+
fontSize: "14px",
|
|
35828
|
+
children: [/* @__PURE__ */ jsxs("strong", {
|
|
35829
|
+
children: [text != null ? text : "Curso", ":"]
|
|
35830
|
+
}), " ", courseName]
|
|
35831
|
+
})]
|
|
35832
|
+
})]
|
|
35833
|
+
})
|
|
35820
35834
|
});
|
|
35821
35835
|
};
|
|
35822
35836
|
export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index as Icons, Label, ModalAlert, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
|