@eclass/ui-kit 1.52.6 → 1.52.8

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.
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function Calendar(props: BaseProps): JSX.Element;
4
+ export declare namespace Calendar {
5
+ var displayName: string;
6
+ }
7
+ //# sourceMappingURL=Calendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/atoms/Icons/Calendar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAA;AACxC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAYtD;yBAZe,QAAQ"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function Clock(props: BaseProps): JSX.Element;
4
+ export declare namespace Clock {
5
+ var displayName: string;
6
+ }
7
+ //# sourceMappingURL=Clock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Clock.d.ts","sourceRoot":"","sources":["../../../src/atoms/Icons/Clock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAA;AACxC,wBAAgB,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CASnD;yBATe,KAAK"}
@@ -4091,7 +4091,7 @@ function ModalAlert({
4091
4091
  });
4092
4092
  }
4093
4093
  ModalAlert.displayName = "ModalAlert";
4094
- const Calendar = ({
4094
+ const Calendar$1 = ({
4095
4095
  color = "white"
4096
4096
  }) => {
4097
4097
  return /* @__PURE__ */ jsxs(Icon, {
@@ -4124,7 +4124,7 @@ const Calendar = ({
4124
4124
  })]
4125
4125
  });
4126
4126
  };
4127
- const Clock = ({
4127
+ const Clock$1 = ({
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$1, {
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$1, {
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, {}), /* @__PURE__ */ jsx(Text, {
4305
+ children: [/* @__PURE__ */ jsx(Calendar$1, {}), /* @__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, {}), /* @__PURE__ */ jsx(Text, {
4312
+ }), /* @__PURE__ */ jsx(Clock$1, {}), /* @__PURE__ */ jsx(Text, {
4313
4313
  m: "0px",
4314
4314
  children: startTime
4315
4315
  })]
@@ -6103,7 +6103,7 @@ const EventsGroup = ({
6103
6103
  text,
6104
6104
  type: event.type,
6105
6105
  hasNotification: event.isNew,
6106
- showsCourseName: true
6106
+ showCourse: true
6107
6107
  }, event.id)
6108
6108
  }, event.id);
6109
6109
  })
@@ -6352,6 +6352,33 @@ 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";
6355
6382
  const NotificationIcon = () => /* @__PURE__ */ jsx("svg", {
6356
6383
  xmlns: "http://www.w3.org/2000/svg",
6357
6384
  width: "8px",
@@ -6370,14 +6397,17 @@ const EventsList = ({
6370
6397
  color,
6371
6398
  day,
6372
6399
  date,
6400
+ name,
6373
6401
  hasNotification,
6374
- showsCourseName,
6402
+ showCourse,
6403
+ showUnit,
6375
6404
  time,
6376
- name,
6377
6405
  text,
6378
- type
6406
+ type,
6407
+ unitName
6379
6408
  }) => {
6380
6409
  var _a, _b;
6410
+ const [isMobile] = useMediaQuery("(max-width: 580px)");
6381
6411
  const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
6382
6412
  const initOrEnd = ["end-course", "init-course", "init-course-flexible", "end-course-flexible"].includes(type);
6383
6413
  const dateTextStyle = {
@@ -6386,13 +6416,20 @@ const EventsList = ({
6386
6416
  color: vars("colors-neutral-white"),
6387
6417
  lineHeight: "100%"
6388
6418
  };
6419
+ const detailTextStyle = {
6420
+ color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
6421
+ fontSize: "14px",
6422
+ display: "flex",
6423
+ gap: "4px",
6424
+ lineHeight: "normal"
6425
+ };
6389
6426
  return /* @__PURE__ */ jsxs(Box, {
6390
6427
  className: "eventsList",
6391
6428
  borderTop: border,
6392
6429
  p: "16px 24px",
6393
6430
  display: "flex",
6394
6431
  gap: "12px",
6395
- children: [/* @__PURE__ */ jsxs(Box, {
6432
+ children: [!isMobile && /* @__PURE__ */ jsxs(Box, {
6396
6433
  bg: color,
6397
6434
  minW: "80px",
6398
6435
  minH: "80px",
@@ -6422,27 +6459,64 @@ const EventsList = ({
6422
6459
  display: "flex",
6423
6460
  flexDirection: "column",
6424
6461
  gap: "8px",
6462
+ w: "100%",
6425
6463
  children: [/* @__PURE__ */ jsxs(Box, {
6426
6464
  lineHeight: "21px",
6427
6465
  display: "flex",
6428
6466
  justifyContent: "space-between",
6429
6467
  alignItems: "center",
6430
6468
  fontSize: "16px",
6431
- fontWeight: "700",
6469
+ fontWeight: isMobile ? "400" : "700",
6432
6470
  children: [name, " ", hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
6433
- }), showsCourseName && !initOrEnd && /* @__PURE__ */ jsx(Box, {
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
+ }), showCourse && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
6434
6491
  display: "flex",
6435
- alignItems: "center",
6436
6492
  gap: "4px",
6437
- lineHeight: "19px",
6438
- children: /* @__PURE__ */ jsxs(Box, {
6493
+ alignItems: "baseline",
6494
+ children: [isMobile && /* @__PURE__ */ jsx(Box, {
6495
+ height: "10px",
6496
+ width: "10px",
6497
+ bg: color,
6498
+ borderRadius: "50%"
6499
+ }), /* @__PURE__ */ jsxs(Box, {
6439
6500
  as: "span",
6440
- color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
6441
- fontSize: "14px",
6501
+ sx: detailTextStyle,
6442
6502
  children: [/* @__PURE__ */ jsx("strong", {
6443
6503
  children: text ? `${text}:` : "Curso:"
6444
6504
  }), " ", courseName]
6445
- })
6505
+ })]
6506
+ }), showUnit && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
6507
+ display: "flex",
6508
+ gap: "4px",
6509
+ alignItems: "baseline",
6510
+ children: [isMobile && /* @__PURE__ */ jsx(Box, {
6511
+ height: "10px",
6512
+ width: "10px",
6513
+ bg: color,
6514
+ borderRadius: "50%"
6515
+ }), /* @__PURE__ */ jsx(Box, {
6516
+ as: "span",
6517
+ sx: detailTextStyle,
6518
+ children: unitName
6519
+ })]
6446
6520
  })]
6447
6521
  })]
6448
6522
  });