@eclass/ui-kit 1.52.4 → 1.52.6
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 +92 -138
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +28 -28
- 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 +2 -3
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/Events.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts +2 -3
- 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 +4 -3
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts +8 -7
- 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/atoms/Icons/Calendar.d.ts +0 -7
- package/dist/atoms/Icons/Calendar.d.ts.map +0 -1
- package/dist/atoms/Icons/Clock.d.ts +0 -7
- package/dist/atoms/Icons/Clock.d.ts.map +0 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -4091,7 +4091,7 @@ function ModalAlert({
|
|
|
4091
4091
|
});
|
|
4092
4092
|
}
|
|
4093
4093
|
ModalAlert.displayName = "ModalAlert";
|
|
4094
|
-
const Calendar
|
|
4094
|
+
const Calendar = ({
|
|
4095
4095
|
color = "white"
|
|
4096
4096
|
}) => {
|
|
4097
4097
|
return /* @__PURE__ */ jsxs(Icon, {
|
|
@@ -4124,7 +4124,7 @@ const Calendar$1 = ({
|
|
|
4124
4124
|
})]
|
|
4125
4125
|
});
|
|
4126
4126
|
};
|
|
4127
|
-
const Clock
|
|
4127
|
+
const Clock = ({
|
|
4128
4128
|
color = "white"
|
|
4129
4129
|
}) => {
|
|
4130
4130
|
return /* @__PURE__ */ jsx(Icon, {
|
|
@@ -4201,7 +4201,7 @@ const LargeBox = ({
|
|
|
4201
4201
|
display: "flex",
|
|
4202
4202
|
alignItems: "center",
|
|
4203
4203
|
gap: "4px",
|
|
4204
|
-
children: [/* @__PURE__ */ jsx(Calendar
|
|
4204
|
+
children: [/* @__PURE__ */ jsx(Calendar, {
|
|
4205
4205
|
color: vars("colors-main-ziggurat")
|
|
4206
4206
|
}), /* @__PURE__ */ jsx(Text, {
|
|
4207
4207
|
fontWeight: "400",
|
|
@@ -4213,7 +4213,7 @@ const LargeBox = ({
|
|
|
4213
4213
|
m: "0px",
|
|
4214
4214
|
p: "0px",
|
|
4215
4215
|
children: "|"
|
|
4216
|
-
}), /* @__PURE__ */ jsx(Clock
|
|
4216
|
+
}), /* @__PURE__ */ jsx(Clock, {
|
|
4217
4217
|
color: vars("colors-main-ziggurat")
|
|
4218
4218
|
}), /* @__PURE__ */ jsx(Text, {
|
|
4219
4219
|
m: "0px",
|
|
@@ -4302,14 +4302,14 @@ const SmallBox = ({
|
|
|
4302
4302
|
display: "flex",
|
|
4303
4303
|
alignItems: "center",
|
|
4304
4304
|
gap: "4px",
|
|
4305
|
-
children: [/* @__PURE__ */ jsx(Calendar
|
|
4305
|
+
children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsx(Text, {
|
|
4306
4306
|
fontWeight: "400",
|
|
4307
4307
|
m: "0px",
|
|
4308
4308
|
children: startDate
|
|
4309
4309
|
}), /* @__PURE__ */ jsx(Text, {
|
|
4310
4310
|
m: "0px",
|
|
4311
4311
|
children: "|"
|
|
4312
|
-
}), /* @__PURE__ */ jsx(Clock
|
|
4312
|
+
}), /* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx(Text, {
|
|
4313
4313
|
m: "0px",
|
|
4314
4314
|
children: startTime
|
|
4315
4315
|
})]
|
|
@@ -6059,15 +6059,11 @@ const EventsGroup = ({
|
|
|
6059
6059
|
title,
|
|
6060
6060
|
events,
|
|
6061
6061
|
text,
|
|
6062
|
-
colors: colors2
|
|
6063
|
-
clickEvent
|
|
6062
|
+
colors: colors2
|
|
6064
6063
|
}) => {
|
|
6065
6064
|
var _a;
|
|
6066
6065
|
if (!events || events && events.length === 0)
|
|
6067
6066
|
return /* @__PURE__ */ jsx(Fragment, {});
|
|
6068
|
-
const handleClick = (event) => {
|
|
6069
|
-
clickEvent == null ? void 0 : clickEvent(event);
|
|
6070
|
-
};
|
|
6071
6067
|
return /* @__PURE__ */ jsx(Box, {
|
|
6072
6068
|
className: "calendar-events-group",
|
|
6073
6069
|
_focus: {
|
|
@@ -6100,13 +6096,14 @@ const EventsGroup = ({
|
|
|
6100
6096
|
children: /* @__PURE__ */ jsx(EventsList, {
|
|
6101
6097
|
name: event.associated_resource.name || "",
|
|
6102
6098
|
courseName: event.course.name,
|
|
6103
|
-
|
|
6104
|
-
|
|
6099
|
+
day: event.formatedDate.day,
|
|
6100
|
+
date: event.formatedDate.date,
|
|
6101
|
+
time: event.formatedDate.time,
|
|
6105
6102
|
color: event.course_id && (colors2 == null ? void 0 : colors2[event.course_id]) ? colors2[event.course_id] : "#82504A",
|
|
6106
6103
|
text,
|
|
6104
|
+
type: event.type,
|
|
6107
6105
|
hasNotification: event.isNew,
|
|
6108
|
-
|
|
6109
|
-
clickEvent: () => handleClick(event)
|
|
6106
|
+
showsCourseName: true
|
|
6110
6107
|
}, event.id)
|
|
6111
6108
|
}, event.id);
|
|
6112
6109
|
})
|
|
@@ -6118,8 +6115,7 @@ const Events = ({
|
|
|
6118
6115
|
text,
|
|
6119
6116
|
redirecToCalendar,
|
|
6120
6117
|
isMobile,
|
|
6121
|
-
colors: colors2
|
|
6122
|
-
clickEvent
|
|
6118
|
+
colors: colors2
|
|
6123
6119
|
}) => {
|
|
6124
6120
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
6125
6121
|
const {
|
|
@@ -6158,20 +6154,17 @@ const Events = ({
|
|
|
6158
6154
|
colors: colors2,
|
|
6159
6155
|
text: (_c = text == null ? void 0 : text.course) != null ? _c : "",
|
|
6160
6156
|
title: (_e = (_d = text == null ? void 0 : text.events) == null ? void 0 : _d.today) != null ? _e : "Hoy",
|
|
6161
|
-
events: today
|
|
6162
|
-
clickEvent
|
|
6157
|
+
events: today
|
|
6163
6158
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
6164
6159
|
colors: colors2,
|
|
6165
6160
|
text: (_f = text == null ? void 0 : text.course) != null ? _f : "",
|
|
6166
6161
|
title: (_h = (_g = text == null ? void 0 : text.events) == null ? void 0 : _g.tomorrow) != null ? _h : "Ma\xF1ana",
|
|
6167
|
-
events: tomorrow
|
|
6168
|
-
clickEvent
|
|
6162
|
+
events: tomorrow
|
|
6169
6163
|
}), /* @__PURE__ */ jsx(EventsGroup, {
|
|
6170
6164
|
colors: colors2,
|
|
6171
6165
|
text: (_i = text == null ? void 0 : text.course) != null ? _i : "",
|
|
6172
6166
|
title: (_k = (_j = text == null ? void 0 : text.events) == null ? void 0 : _j.next) != null ? _k : "Pr\xF3ximos",
|
|
6173
|
-
events: next
|
|
6174
|
-
clickEvent
|
|
6167
|
+
events: next
|
|
6175
6168
|
})]
|
|
6176
6169
|
});
|
|
6177
6170
|
};
|
|
@@ -6183,8 +6176,7 @@ const CalendarDropdownContainer = ({
|
|
|
6183
6176
|
redirectToCalendar,
|
|
6184
6177
|
courseColors,
|
|
6185
6178
|
onlyToCalendar,
|
|
6186
|
-
m: m2
|
|
6187
|
-
clickEvent
|
|
6179
|
+
m: m2
|
|
6188
6180
|
}) => {
|
|
6189
6181
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
6190
6182
|
const [isMobile] = useMediaQuery("(max-width: 577px)");
|
|
@@ -6322,8 +6314,7 @@ const CalendarDropdownContainer = ({
|
|
|
6322
6314
|
events: all,
|
|
6323
6315
|
text,
|
|
6324
6316
|
redirecToCalendar: redirectToCalendar,
|
|
6325
|
-
isMobile
|
|
6326
|
-
clickEvent
|
|
6317
|
+
isMobile
|
|
6327
6318
|
})
|
|
6328
6319
|
})]
|
|
6329
6320
|
})]
|
|
@@ -6346,8 +6337,7 @@ const CalendarDropdown = ({
|
|
|
6346
6337
|
events,
|
|
6347
6338
|
loading,
|
|
6348
6339
|
onlyToCalendar = false,
|
|
6349
|
-
m: m2
|
|
6350
|
-
clickEvent
|
|
6340
|
+
m: m2
|
|
6351
6341
|
}) => {
|
|
6352
6342
|
const date = new Date(now);
|
|
6353
6343
|
const isoDate = date.toISOString();
|
|
@@ -6359,37 +6349,9 @@ const CalendarDropdown = ({
|
|
|
6359
6349
|
courseColors,
|
|
6360
6350
|
redirectToCalendar,
|
|
6361
6351
|
text,
|
|
6362
|
-
onlyToCalendar
|
|
6363
|
-
clickEvent
|
|
6352
|
+
onlyToCalendar
|
|
6364
6353
|
});
|
|
6365
6354
|
};
|
|
6366
|
-
function Calendar(props) {
|
|
6367
|
-
return /* @__PURE__ */ jsx(Base, {
|
|
6368
|
-
...props,
|
|
6369
|
-
title: "Calendar",
|
|
6370
|
-
children: /* @__PURE__ */ jsxs("g", {
|
|
6371
|
-
fill: "#B0CFE0",
|
|
6372
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
6373
|
-
fill: "#B0CFE0",
|
|
6374
|
-
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"
|
|
6375
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
6376
|
-
d: "M4 7h2v2H4zM7 7h2v2H7zM4 10h2v2H4zM7 10h2v2H7zM10 7h2v2h-2zM10 10h2v2h-2z"
|
|
6377
|
-
})]
|
|
6378
|
-
})
|
|
6379
|
-
});
|
|
6380
|
-
}
|
|
6381
|
-
Calendar.displayName = "Calendar";
|
|
6382
|
-
function Clock(props) {
|
|
6383
|
-
return /* @__PURE__ */ jsx(Base, {
|
|
6384
|
-
...props,
|
|
6385
|
-
title: "Clock",
|
|
6386
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
6387
|
-
fill: "#B0CFE0",
|
|
6388
|
-
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"
|
|
6389
|
-
})
|
|
6390
|
-
});
|
|
6391
|
-
}
|
|
6392
|
-
Clock.displayName = "Clock";
|
|
6393
6355
|
const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {
|
|
6394
6356
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6395
6357
|
width: "8px",
|
|
@@ -6404,93 +6366,85 @@ const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {
|
|
|
6404
6366
|
})
|
|
6405
6367
|
});
|
|
6406
6368
|
const EventsList = ({
|
|
6407
|
-
hasNotification,
|
|
6408
|
-
isDropdown,
|
|
6409
|
-
name,
|
|
6410
6369
|
courseName,
|
|
6411
6370
|
color,
|
|
6412
|
-
|
|
6371
|
+
day,
|
|
6413
6372
|
date,
|
|
6414
|
-
|
|
6415
|
-
|
|
6373
|
+
hasNotification,
|
|
6374
|
+
showsCourseName,
|
|
6375
|
+
time,
|
|
6376
|
+
name,
|
|
6377
|
+
text,
|
|
6378
|
+
type
|
|
6416
6379
|
}) => {
|
|
6417
|
-
var _a, _b
|
|
6380
|
+
var _a, _b;
|
|
6418
6381
|
const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
|
|
6419
|
-
const
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6382
|
+
const initOrEnd = ["end-course", "init-course", "init-course-flexible", "end-course-flexible"].includes(type);
|
|
6383
|
+
const dateTextStyle = {
|
|
6384
|
+
fontSize: "18px",
|
|
6385
|
+
fontWeight: "700",
|
|
6386
|
+
color: vars("colors-neutral-white"),
|
|
6387
|
+
lineHeight: "100%"
|
|
6388
|
+
};
|
|
6389
|
+
return /* @__PURE__ */ jsxs(Box, {
|
|
6390
|
+
className: "eventsList",
|
|
6391
|
+
borderTop: border,
|
|
6392
|
+
p: "16px 24px",
|
|
6393
|
+
display: "flex",
|
|
6394
|
+
gap: "12px",
|
|
6395
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
6396
|
+
bg: color,
|
|
6397
|
+
minW: "80px",
|
|
6398
|
+
minH: "80px",
|
|
6399
|
+
maxW: "80px",
|
|
6400
|
+
maxH: "80px",
|
|
6401
|
+
borderRadius: "4px",
|
|
6402
|
+
p: "8px",
|
|
6403
|
+
display: "flex",
|
|
6404
|
+
flexDirection: "column",
|
|
6405
|
+
justifyContent: "space-around",
|
|
6406
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
6407
|
+
as: "span",
|
|
6408
|
+
sx: dateTextStyle,
|
|
6409
|
+
children: day
|
|
6410
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
6411
|
+
as: "span",
|
|
6412
|
+
sx: dateTextStyle,
|
|
6413
|
+
children: date
|
|
6414
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
6415
|
+
as: "span",
|
|
6416
|
+
fontSize: "14px",
|
|
6417
|
+
fontWeight: "700",
|
|
6418
|
+
color: vars("colors-neutral-white"),
|
|
6419
|
+
children: time
|
|
6420
|
+
})]
|
|
6421
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
6422
|
+
display: "flex",
|
|
6423
|
+
flexDirection: "column",
|
|
6424
|
+
gap: "8px",
|
|
6425
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
6426
|
+
lineHeight: "21px",
|
|
6432
6427
|
display: "flex",
|
|
6433
|
-
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6428
|
+
justifyContent: "space-between",
|
|
6429
|
+
alignItems: "center",
|
|
6430
|
+
fontSize: "16px",
|
|
6431
|
+
fontWeight: "700",
|
|
6432
|
+
children: [name, " ", hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
6433
|
+
}), showsCourseName && !initOrEnd && /* @__PURE__ */ jsx(Box, {
|
|
6434
|
+
display: "flex",
|
|
6435
|
+
alignItems: "center",
|
|
6436
|
+
gap: "4px",
|
|
6437
|
+
lineHeight: "19px",
|
|
6438
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
6439
|
+
as: "span",
|
|
6440
|
+
color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
|
|
6445
6441
|
fontSize: "14px",
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
}
|
|
6453
|
-
},
|
|
6454
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
6455
|
-
paddingRight: "8px",
|
|
6456
|
-
borderRight: border,
|
|
6457
|
-
children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsx("span", {
|
|
6458
|
-
children: date
|
|
6459
|
-
})]
|
|
6460
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
6461
|
-
paddingLeft: "8px",
|
|
6462
|
-
children: [/* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx("span", {
|
|
6463
|
-
children: hours
|
|
6464
|
-
})]
|
|
6465
|
-
})]
|
|
6466
|
-
}), isDropdown && /* @__PURE__ */ jsxs(Box, {
|
|
6467
|
-
display: "flex",
|
|
6468
|
-
alignItems: "center",
|
|
6469
|
-
gap: "4px",
|
|
6470
|
-
lineHeight: "19px",
|
|
6471
|
-
children: [/* @__PURE__ */ jsx(Box, {
|
|
6472
|
-
alignSelf: "flex-start",
|
|
6473
|
-
bg: color,
|
|
6474
|
-
borderRadius: "50%",
|
|
6475
|
-
display: "block",
|
|
6476
|
-
h: "10px",
|
|
6477
|
-
mt: "4px",
|
|
6478
|
-
maxH: "10px",
|
|
6479
|
-
maxW: "10px",
|
|
6480
|
-
minH: "10px",
|
|
6481
|
-
minW: "10px",
|
|
6482
|
-
w: "10px"
|
|
6483
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
6484
|
-
as: "span",
|
|
6485
|
-
color: (_d = vars("colors-neutral-gray")) != null ? _d : "#808080",
|
|
6486
|
-
fontSize: "14px",
|
|
6487
|
-
children: [/* @__PURE__ */ jsxs("strong", {
|
|
6488
|
-
children: [text != null ? text : "Curso", ":"]
|
|
6489
|
-
}), " ", courseName]
|
|
6490
|
-
})]
|
|
6491
|
-
})]
|
|
6492
|
-
})
|
|
6493
|
-
})
|
|
6442
|
+
children: [/* @__PURE__ */ jsx("strong", {
|
|
6443
|
+
children: text ? `${text}:` : "Curso:"
|
|
6444
|
+
}), " ", courseName]
|
|
6445
|
+
})
|
|
6446
|
+
})]
|
|
6447
|
+
})]
|
|
6494
6448
|
});
|
|
6495
6449
|
};
|
|
6496
6450
|
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 };
|