@eclass/ui-kit 1.52.6 → 1.52.7

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
  })]
@@ -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",
@@ -6378,6 +6405,7 @@ const EventsList = ({
6378
6405
  type
6379
6406
  }) => {
6380
6407
  var _a, _b;
6408
+ const [isMobile] = useMediaQuery("(max-width: 580px)");
6381
6409
  const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
6382
6410
  const initOrEnd = ["end-course", "init-course", "init-course-flexible", "end-course-flexible"].includes(type);
6383
6411
  const dateTextStyle = {
@@ -6392,7 +6420,7 @@ const EventsList = ({
6392
6420
  p: "16px 24px",
6393
6421
  display: "flex",
6394
6422
  gap: "12px",
6395
- children: [/* @__PURE__ */ jsxs(Box, {
6423
+ children: [!isMobile && /* @__PURE__ */ jsxs(Box, {
6396
6424
  bg: color,
6397
6425
  minW: "80px",
6398
6426
  minH: "80px",
@@ -6428,21 +6456,48 @@ const EventsList = ({
6428
6456
  justifyContent: "space-between",
6429
6457
  alignItems: "center",
6430
6458
  fontSize: "16px",
6431
- fontWeight: "700",
6459
+ fontWeight: isMobile ? "400" : "700",
6432
6460
  children: [name, " ", hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
6433
- }), showsCourseName && !initOrEnd && /* @__PURE__ */ jsx(Box, {
6461
+ }), isMobile && /* @__PURE__ */ jsxs(Box, {
6462
+ lineHeight: "normal",
6463
+ sx: {
6464
+ ">svg": {
6465
+ marginRight: "4px"
6466
+ }
6467
+ },
6468
+ children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsxs(Box, {
6469
+ as: "span",
6470
+ verticalAlign: "middle",
6471
+ p: "0 8px 0 0",
6472
+ borderRight: `1px solid ${vars("colors-neutral-platinum")}`,
6473
+ mr: "8px",
6474
+ children: [day, " ", date]
6475
+ }), /* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx(Box, {
6476
+ as: "span",
6477
+ verticalAlign: "middle",
6478
+ children: time
6479
+ })]
6480
+ }), showsCourseName && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
6434
6481
  display: "flex",
6435
- alignItems: "center",
6436
6482
  gap: "4px",
6437
- lineHeight: "19px",
6438
- children: /* @__PURE__ */ jsxs(Box, {
6483
+ alignItems: "center",
6484
+ children: [isMobile && /* @__PURE__ */ jsx(Box, {
6485
+ height: "10px",
6486
+ width: "10px",
6487
+ bg: color,
6488
+ borderRadius: "50%"
6489
+ }), /* @__PURE__ */ jsxs(Box, {
6439
6490
  as: "span",
6440
6491
  color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
6441
6492
  fontSize: "14px",
6493
+ display: "flex",
6494
+ alignItems: "center",
6495
+ gap: "4px",
6496
+ lineHeight: "normal",
6442
6497
  children: [/* @__PURE__ */ jsx("strong", {
6443
6498
  children: text ? `${text}:` : "Curso:"
6444
6499
  }), " ", courseName]
6445
- })
6500
+ })]
6446
6501
  })]
6447
6502
  })]
6448
6503
  });