@eclass/ui-kit 1.52.13 → 1.53.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 +41 -45
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +5 -5
- 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/Components/Events.d.ts +5 -5
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/Events.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts +5 -5
- 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/types.d.ts +7 -6
- 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
|
@@ -6060,14 +6060,14 @@ const Empty = ({
|
|
|
6060
6060
|
});
|
|
6061
6061
|
};
|
|
6062
6062
|
const EventsGroup = ({
|
|
6063
|
-
|
|
6063
|
+
colors: colors2,
|
|
6064
6064
|
events,
|
|
6065
|
+
hasMoreNext,
|
|
6066
|
+
title,
|
|
6067
|
+
redirect,
|
|
6065
6068
|
text,
|
|
6066
6069
|
textSeeMore,
|
|
6067
|
-
textLinkMore
|
|
6068
|
-
colors: colors2,
|
|
6069
|
-
redirect,
|
|
6070
|
-
hasMoreNext
|
|
6070
|
+
textLinkMore
|
|
6071
6071
|
}) => {
|
|
6072
6072
|
var _a;
|
|
6073
6073
|
if (!events || events && events.length === 0)
|
|
@@ -6103,7 +6103,7 @@ const EventsGroup = ({
|
|
|
6103
6103
|
boxShadow: "none !important"
|
|
6104
6104
|
},
|
|
6105
6105
|
children: /* @__PURE__ */ jsx(EventsList, {
|
|
6106
|
-
name: event.
|
|
6106
|
+
name: event.translatedTitle,
|
|
6107
6107
|
courseName: event.course.name,
|
|
6108
6108
|
day: event.formatedDate.day,
|
|
6109
6109
|
date: event.formatedDate.date,
|
|
@@ -6133,12 +6133,12 @@ const EventsGroup = ({
|
|
|
6133
6133
|
});
|
|
6134
6134
|
};
|
|
6135
6135
|
const Events = ({
|
|
6136
|
+
colors: colors2,
|
|
6136
6137
|
events,
|
|
6137
|
-
|
|
6138
|
-
redirecToCalendar,
|
|
6138
|
+
hasMoreNext,
|
|
6139
6139
|
isMobile,
|
|
6140
|
-
|
|
6141
|
-
|
|
6140
|
+
redirecToCalendar,
|
|
6141
|
+
text
|
|
6142
6142
|
}) => {
|
|
6143
6143
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
6144
6144
|
const {
|
|
@@ -6175,35 +6175,35 @@ const Events = ({
|
|
|
6175
6175
|
})
|
|
6176
6176
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
6177
6177
|
colors: colors2,
|
|
6178
|
+
events: today,
|
|
6178
6179
|
text: (_c = text == null ? void 0 : text.course) != null ? _c : "",
|
|
6179
|
-
title: (_e = (_d = text == null ? void 0 : text.events) == null ? void 0 : _d.today) != null ? _e : "Hoy"
|
|
6180
|
-
events: today
|
|
6180
|
+
title: (_e = (_d = text == null ? void 0 : text.events) == null ? void 0 : _d.today) != null ? _e : "Hoy"
|
|
6181
6181
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
6182
6182
|
colors: colors2,
|
|
6183
|
+
events: tomorrow,
|
|
6183
6184
|
text: (_f = text == null ? void 0 : text.course) != null ? _f : "",
|
|
6184
|
-
title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana"
|
|
6185
|
-
events: tomorrow
|
|
6185
|
+
title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana"
|
|
6186
6186
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
6187
|
-
hasMoreNext,
|
|
6188
6187
|
colors: colors2,
|
|
6188
|
+
events: next,
|
|
6189
|
+
hasMoreNext,
|
|
6190
|
+
redirect: redirecToCalendar,
|
|
6189
6191
|
textSeeMore: (_i = text == null ? void 0 : text.seeMore.see) != null ? _i : "Ver m\xE1s fechas en",
|
|
6190
6192
|
textLinkMore: (_j = text == null ? void 0 : text.seeMore.link) != null ? _j : "Mi calendario",
|
|
6191
6193
|
text: (_k = text == null ? void 0 : text.course) != null ? _k : "",
|
|
6192
|
-
title: (_m = (_l = text == null ? void 0 : text.events) == null ? void 0 : _l.next) != null ? _m : "Pr\xF3ximos"
|
|
6193
|
-
events: next,
|
|
6194
|
-
redirect: redirecToCalendar
|
|
6194
|
+
title: (_m = (_l = text == null ? void 0 : text.events) == null ? void 0 : _l.next) != null ? _m : "Pr\xF3ximos"
|
|
6195
6195
|
})]
|
|
6196
6196
|
});
|
|
6197
6197
|
};
|
|
6198
6198
|
const CalendarDropdownContainer = ({
|
|
6199
|
+
courseColors,
|
|
6199
6200
|
events,
|
|
6200
6201
|
loading,
|
|
6201
|
-
|
|
6202
|
+
m: m2,
|
|
6202
6203
|
now,
|
|
6203
|
-
redirectToCalendar,
|
|
6204
|
-
courseColors,
|
|
6205
6204
|
onlyToCalendar,
|
|
6206
|
-
|
|
6205
|
+
redirectToCalendar,
|
|
6206
|
+
text
|
|
6207
6207
|
}) => {
|
|
6208
6208
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
6209
6209
|
const [isMobile] = useMediaQuery("(max-width: 577px)");
|
|
@@ -6329,8 +6329,8 @@ const CalendarDropdownContainer = ({
|
|
|
6329
6329
|
onClick: redirectToCalendar
|
|
6330
6330
|
}), !onlyToCalendar && /* @__PURE__ */ jsxs(MenuList, {
|
|
6331
6331
|
children: [/* @__PURE__ */ jsx(Header, {
|
|
6332
|
-
|
|
6333
|
-
|
|
6332
|
+
isMobile,
|
|
6333
|
+
text: (_d = text == null ? void 0 : text.header) != null ? _d : "Pr\xF3ximas fechas importantes de tus cursos"
|
|
6334
6334
|
}), /* @__PURE__ */ jsx(Box, {
|
|
6335
6335
|
bg: (_e = vars("colors-neutral-white")) != null ? _e : "#FFF",
|
|
6336
6336
|
children: loading ? /* @__PURE__ */ jsx(Loading, {
|
|
@@ -6338,12 +6338,12 @@ const CalendarDropdownContainer = ({
|
|
|
6338
6338
|
}) : events.length === 0 || empty ? /* @__PURE__ */ jsx(Empty, {
|
|
6339
6339
|
text: (_g = text == null ? void 0 : text.empty) != null ? _g : "A\xFAn no tienes eventos en tu calendario"
|
|
6340
6340
|
}) : /* @__PURE__ */ jsx(Events, {
|
|
6341
|
-
hasMoreNext,
|
|
6342
6341
|
colors: courseColors,
|
|
6343
6342
|
events: all,
|
|
6344
|
-
|
|
6343
|
+
hasMoreNext,
|
|
6344
|
+
isMobile,
|
|
6345
6345
|
redirecToCalendar: redirectToCalendar,
|
|
6346
|
-
|
|
6346
|
+
text
|
|
6347
6347
|
})
|
|
6348
6348
|
})]
|
|
6349
6349
|
})]
|
|
@@ -6359,26 +6359,26 @@ const Loading = ({
|
|
|
6359
6359
|
});
|
|
6360
6360
|
};
|
|
6361
6361
|
const CalendarDropdown = ({
|
|
6362
|
-
redirectToCalendar,
|
|
6363
|
-
text,
|
|
6364
6362
|
courseColors,
|
|
6365
|
-
now,
|
|
6366
6363
|
events,
|
|
6367
6364
|
loading,
|
|
6365
|
+
m: m2,
|
|
6366
|
+
now,
|
|
6368
6367
|
onlyToCalendar = false,
|
|
6369
|
-
|
|
6368
|
+
redirectToCalendar,
|
|
6369
|
+
text
|
|
6370
6370
|
}) => {
|
|
6371
6371
|
const date = new Date(now);
|
|
6372
6372
|
const isoDate = date.toISOString();
|
|
6373
6373
|
return /* @__PURE__ */ jsx(CalendarDropdownContainer, {
|
|
6374
|
-
|
|
6374
|
+
courseColors,
|
|
6375
6375
|
events,
|
|
6376
6376
|
loading,
|
|
6377
|
+
m: m2,
|
|
6377
6378
|
now: isoDate,
|
|
6378
|
-
|
|
6379
|
+
onlyToCalendar,
|
|
6379
6380
|
redirectToCalendar,
|
|
6380
|
-
text
|
|
6381
|
-
onlyToCalendar
|
|
6381
|
+
text
|
|
6382
6382
|
});
|
|
6383
6383
|
};
|
|
6384
6384
|
const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {
|
|
@@ -6412,7 +6412,7 @@ const EventsList = ({
|
|
|
6412
6412
|
const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
|
|
6413
6413
|
const initOrEnd = ["end-course", "init-course", "init-course-flexible", "end-course-flexible"].includes(type);
|
|
6414
6414
|
const dateTextStyle = {
|
|
6415
|
-
fontSize: "
|
|
6415
|
+
fontSize: "14px",
|
|
6416
6416
|
fontWeight: "700",
|
|
6417
6417
|
color: vars("colors-neutral-white"),
|
|
6418
6418
|
lineHeight: "100%"
|
|
@@ -6432,10 +6432,10 @@ const EventsList = ({
|
|
|
6432
6432
|
gap: "12px",
|
|
6433
6433
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
6434
6434
|
bg: color,
|
|
6435
|
-
minW: "
|
|
6436
|
-
minH: "
|
|
6437
|
-
maxW: "
|
|
6438
|
-
maxH: "
|
|
6435
|
+
minW: "88px",
|
|
6436
|
+
minH: "74px",
|
|
6437
|
+
maxW: "88px",
|
|
6438
|
+
maxH: "72px",
|
|
6439
6439
|
borderRadius: "4px",
|
|
6440
6440
|
p: "8px",
|
|
6441
6441
|
display: "flex",
|
|
@@ -6450,11 +6450,7 @@ const EventsList = ({
|
|
|
6450
6450
|
sx: dateTextStyle,
|
|
6451
6451
|
children: date
|
|
6452
6452
|
}), /* @__PURE__ */ jsx(Box, {
|
|
6453
|
-
|
|
6454
|
-
fontSize: "14px",
|
|
6455
|
-
fontWeight: "700",
|
|
6456
|
-
color: vars("colors-neutral-white"),
|
|
6457
|
-
lineHeight: "normal",
|
|
6453
|
+
sx: dateTextStyle,
|
|
6458
6454
|
children: time
|
|
6459
6455
|
})]
|
|
6460
6456
|
}), /* @__PURE__ */ jsxs(Box, {
|