@eclass/ui-kit 1.52.9 → 1.52.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.
@@ -4091,7 +4091,7 @@ function ModalAlert({
4091
4091
  });
4092
4092
  }
4093
4093
  ModalAlert.displayName = "ModalAlert";
4094
- const Calendar$1 = ({
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$1 = ({
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$1, {
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$1, {
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$1, {}), /* @__PURE__ */ jsx(Text, {
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$1, {}), /* @__PURE__ */ jsx(Text, {
4312
+ }), /* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx(Text, {
4313
4313
  m: "0px",
4314
4314
  children: startTime
4315
4315
  })]
@@ -6144,7 +6144,7 @@ const Events = ({
6144
6144
  minH: "fit-content"
6145
6145
  }
6146
6146
  },
6147
- children: /* @__PURE__ */ jsx(BtnSecondary, {
6147
+ children: /* @__PURE__ */ jsx(BtnPrimary, {
6148
6148
  onClick: redirecToCalendar,
6149
6149
  m: "72px 0 0 24px",
6150
6150
  id: "RedirectButton",
@@ -6352,33 +6352,6 @@ const CalendarDropdown = ({
6352
6352
  onlyToCalendar
6353
6353
  });
6354
6354
  };
6355
- function Calendar(props) {
6356
- return /* @__PURE__ */ jsx(Base, {
6357
- ...props,
6358
- title: "Calendar",
6359
- children: /* @__PURE__ */ jsxs("g", {
6360
- fill: "#B0CFE0",
6361
- children: [/* @__PURE__ */ jsx("path", {
6362
- fill: "#B0CFE0",
6363
- 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"
6364
- }), /* @__PURE__ */ jsx("path", {
6365
- d: "M4 7h2v2H4zM7 7h2v2H7zM4 10h2v2H4zM7 10h2v2H7zM10 7h2v2h-2zM10 10h2v2h-2z"
6366
- })]
6367
- })
6368
- });
6369
- }
6370
- Calendar.displayName = "Calendar";
6371
- function Clock(props) {
6372
- return /* @__PURE__ */ jsx(Base, {
6373
- ...props,
6374
- title: "Clock",
6375
- children: /* @__PURE__ */ jsx("path", {
6376
- fill: "#B0CFE0",
6377
- 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"
6378
- })
6379
- });
6380
- }
6381
- Clock.displayName = "Clock";
6382
6355
  const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {
6383
6356
  xmlns: "http://www.w3.org/2000/svg",
6384
6357
  width: "8px",
@@ -6407,7 +6380,6 @@ const EventsList = ({
6407
6380
  unitName
6408
6381
  }) => {
6409
6382
  var _a, _b;
6410
- const [isMobile] = useMediaQuery("(max-width: 580px)");
6411
6383
  const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
6412
6384
  const initOrEnd = ["end-course", "init-course", "init-course-flexible", "end-course-flexible"].includes(type);
6413
6385
  const dateTextStyle = {
@@ -6429,7 +6401,7 @@ const EventsList = ({
6429
6401
  p: "16px 24px",
6430
6402
  display: "flex",
6431
6403
  gap: "12px",
6432
- children: [!isMobile && /* @__PURE__ */ jsxs(Box, {
6404
+ children: [/* @__PURE__ */ jsxs(Box, {
6433
6405
  bg: color,
6434
6406
  minW: "80px",
6435
6407
  minH: "80px",
@@ -6453,6 +6425,7 @@ const EventsList = ({
6453
6425
  fontSize: "14px",
6454
6426
  fontWeight: "700",
6455
6427
  color: vars("colors-neutral-white"),
6428
+ lineHeight: "normal",
6456
6429
  children: time
6457
6430
  })]
6458
6431
  }), /* @__PURE__ */ jsxs(Box, {
@@ -6466,59 +6439,23 @@ const EventsList = ({
6466
6439
  justifyContent: "space-between",
6467
6440
  alignItems: "center",
6468
6441
  fontSize: "16px",
6469
- fontWeight: isMobile ? "400" : "700",
6442
+ fontWeight: "700",
6470
6443
  children: [name, " ", hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
6471
- }), isMobile && /* @__PURE__ */ jsxs(Box, {
6472
- lineHeight: "normal",
6473
- sx: {
6474
- ">svg": {
6475
- marginRight: "4px"
6476
- }
6477
- },
6478
- children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsxs(Box, {
6479
- as: "span",
6480
- verticalAlign: "middle",
6481
- p: "0 8px 0 0",
6482
- borderRight: `1px solid ${vars("colors-neutral-platinum")}`,
6483
- mr: "8px",
6484
- children: [day, " ", date]
6485
- }), /* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx(Box, {
6486
- as: "span",
6487
- verticalAlign: "middle",
6488
- children: time
6489
- })]
6490
6444
  }), showCourse && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
6445
+ as: "span",
6446
+ sx: detailTextStyle,
6447
+ children: [/* @__PURE__ */ jsx("strong", {
6448
+ children: text ? `${text}:` : "Curso:"
6449
+ }), " ", courseName]
6450
+ }), showUnit && !initOrEnd && /* @__PURE__ */ jsx(Box, {
6491
6451
  display: "flex",
6492
6452
  gap: "4px",
6493
6453
  alignItems: "baseline",
6494
- children: [isMobile && /* @__PURE__ */ jsx(Box, {
6495
- minH: "10px",
6496
- minW: "10px",
6497
- maxH: "10px",
6498
- maxW: "10px",
6499
- bg: color,
6500
- borderRadius: "50%"
6501
- }), /* @__PURE__ */ jsxs(Box, {
6502
- as: "span",
6503
- sx: detailTextStyle,
6504
- children: [/* @__PURE__ */ jsx("strong", {
6505
- children: text ? `${text}:` : "Curso:"
6506
- }), " ", courseName]
6507
- })]
6508
- }), showUnit && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
6509
- display: "flex",
6510
- gap: "4px",
6511
- alignItems: "baseline",
6512
- children: [isMobile && /* @__PURE__ */ jsx(Box, {
6513
- height: "10px",
6514
- width: "10px",
6515
- bg: color,
6516
- borderRadius: "50%"
6517
- }), /* @__PURE__ */ jsx(Box, {
6454
+ children: /* @__PURE__ */ jsx(Box, {
6518
6455
  as: "span",
6519
6456
  sx: detailTextStyle,
6520
6457
  children: unitName
6521
- })]
6458
+ })
6522
6459
  })]
6523
6460
  })]
6524
6461
  });