@eclass/ui-kit 1.46.6 → 1.48.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.
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function DiagonalArrow(props: BaseProps): JSX.Element;
4
+ export declare namespace DiagonalArrow {
5
+ var displayName: string;
6
+ }
@@ -22,3 +22,4 @@ export * from './TrashCan';
22
22
  export * from './TextBubble';
23
23
  export * from './Alerts';
24
24
  export * from './Close';
25
+ export * from './DiagonalArrow';
@@ -29407,6 +29407,19 @@ function Close(props) {
29407
29407
  });
29408
29408
  }
29409
29409
  Close.displayName = "Close";
29410
+ function DiagonalArrow(props) {
29411
+ return /* @__PURE__ */ jsx(Base, {
29412
+ ...props,
29413
+ w: "16px",
29414
+ h: "16px",
29415
+ viewBox: "0 0 16 16",
29416
+ children: /* @__PURE__ */ jsx("path", {
29417
+ d: "M9.207 5.793L3 12L4.414 13.414L10.621 7.207L13.414 10V3H6.414L9.207 5.793Z",
29418
+ fill: "#0189FF"
29419
+ })
29420
+ });
29421
+ }
29422
+ DiagonalArrow.displayName = "Download";
29410
29423
  var index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
29411
29424
  __proto__: null,
29412
29425
  AcademicRecord,
@@ -29439,7 +29452,8 @@ var index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
29439
29452
  InfoColor,
29440
29453
  SuccessColor,
29441
29454
  WarningColor,
29442
- Close
29455
+ Close,
29456
+ DiagonalArrow
29443
29457
  }, Symbol.toStringTag, { value: "Module" }));
29444
29458
  function TinyAlert({
29445
29459
  status,
@@ -29964,6 +29978,36 @@ function UserWay() {
29964
29978
  children: /* @__PURE__ */ jsx(Accessibility, {})
29965
29979
  });
29966
29980
  }
29981
+ function UserWayCookie() {
29982
+ var _a;
29983
+ const cookieName = "userwayData";
29984
+ const userwayDataCookie = (_a = document.cookie.split("; ").find((row) => row.startsWith(`${cookieName}=`))) == null ? void 0 : _a.split("=")[1];
29985
+ if (userwayDataCookie) {
29986
+ try {
29987
+ const userwayData = JSON.parse(decodeURIComponent(userwayDataCookie));
29988
+ for (const [key, value] of Object.entries(userwayData)) {
29989
+ localStorage.setItem(key, value);
29990
+ }
29991
+ console.log("UserWay data restored to localStorage:", userwayData);
29992
+ } catch (error) {
29993
+ console.error("Error parsing UserWay data from cookie:", error);
29994
+ }
29995
+ }
29996
+ window.addEventListener("beforeunload", () => {
29997
+ const userwayData = {};
29998
+ for (const key in localStorage) {
29999
+ if (key.startsWith("userway-")) {
30000
+ userwayData[key] = localStorage.getItem(key);
30001
+ }
30002
+ }
30003
+ const serializedData = JSON.stringify(userwayData);
30004
+ const expiryDate = new Date();
30005
+ expiryDate.setTime(expiryDate.getTime() + 24 * 60 * 60 * 1e3);
30006
+ document.cookie = `${cookieName}=${encodeURIComponent(
30007
+ serializedData
30008
+ )};expires=${expiryDate.toUTCString()};path=/`;
30009
+ });
30010
+ }
29967
30011
  const STUDENT = 4;
29968
30012
  function Header() {
29969
30013
  const {
@@ -32604,6 +32648,8 @@ const Icons = ({
32604
32648
  return /* @__PURE__ */ jsx(Mp4, {});
32605
32649
  case "mkv":
32606
32650
  return /* @__PURE__ */ jsx(Mkv, {});
32651
+ case "url":
32652
+ return /* @__PURE__ */ jsx(Url, {});
32607
32653
  default:
32608
32654
  return null;
32609
32655
  }
@@ -33264,6 +33310,26 @@ const Xlsx = () => {
33264
33310
  })]
33265
33311
  });
33266
33312
  };
33313
+ const Url = () => {
33314
+ const id2 = `clip${uniqueId()}`;
33315
+ return /* @__PURE__ */ jsx(Icon, {
33316
+ width: "33px",
33317
+ height: "32px",
33318
+ viewBox: "0 0 33 32",
33319
+ fill: "none",
33320
+ xmlns: "http://www.w3.org/2000/svg",
33321
+ children: /* @__PURE__ */ jsxs("g", {
33322
+ clipPath: `url(#${id2})`,
33323
+ children: [/* @__PURE__ */ jsx("path", {
33324
+ d: "M18.119 10.138L15.878 12.378C15.818 12.439 15.778 12.508 15.72 12.571C16.7848 12.7178 17.7731 13.2067 18.536 13.964C19.472 14.9028 19.9976 16.1743 19.9976 17.5C19.9976 18.8257 19.472 20.0972 18.536 21.036L13.036 26.536C12.0982 27.4738 10.8262 28.0007 9.49996 28.0007C8.1737 28.0007 6.90177 27.4738 5.96396 26.536C5.02616 25.5982 4.4993 24.3263 4.4993 23C4.4993 21.6737 5.02616 20.4018 5.96396 19.464L8.34896 17.079C8.00322 15.7711 7.92499 14.4069 8.11896 13.068L3.84296 17.343C2.34263 18.8433 1.49976 20.8782 1.49976 23C1.49976 25.1218 2.34263 27.1567 3.84296 28.657C5.34329 30.1573 7.37818 31.0002 9.49996 31.0002C11.6217 31.0002 13.6566 30.1573 15.157 28.657L20.657 23.157C21.5848 22.2315 22.2707 21.092 22.6543 19.8389C23.0379 18.5858 23.1074 17.2576 22.8566 15.9713C22.6059 14.685 22.0426 13.4802 21.2164 12.4629C20.3902 11.4456 19.3265 10.6472 18.119 10.138Z",
33325
+ fill: "#B0CFE0"
33326
+ }), /* @__PURE__ */ jsx("path", {
33327
+ d: "M17.8429 3.34301L12.3429 8.84301C11.4151 9.76851 10.7292 10.908 10.3456 12.1611C9.96196 13.4142 9.89248 14.7424 10.1432 16.0287C10.394 17.315 10.9573 18.5199 11.7835 19.5371C12.6097 20.5544 13.6734 21.3528 14.8809 21.862L17.1219 19.622C17.1819 19.561 17.2289 19.493 17.2839 19.429C16.2175 19.2834 15.2276 18.7944 14.4639 18.036C13.5279 17.0972 13.0023 15.8257 13.0023 14.5C13.0023 13.1743 13.5279 11.9028 14.4639 10.964L19.9639 5.46401C20.9017 4.5262 22.1737 3.99935 23.4999 3.99935C24.1566 3.99935 24.8069 4.12869 25.4136 4.38C26.0203 4.63131 26.5716 4.99965 27.0359 5.46401C27.5003 5.92836 27.8686 6.47963 28.1199 7.08634C28.3712 7.69305 28.5006 8.34331 28.5006 9.00001C28.5006 9.6567 28.3712 10.307 28.1199 10.9137C27.8686 11.5204 27.5003 12.0717 27.0359 12.536L24.6529 14.918C25 16.2218 25.0819 17.582 24.8939 18.918L29.1569 14.655C30.6293 13.149 31.4485 11.123 31.4365 9.01685C31.4245 6.91066 30.5824 4.89416 29.093 3.40496C27.6035 1.91577 25.5869 1.07404 23.4807 1.06244C21.3745 1.05084 19.3487 1.87031 17.8429 3.34301Z",
33328
+ fill: "#B0CFE0"
33329
+ })]
33330
+ })
33331
+ });
33332
+ };
33267
33333
  const Resources = ({
33268
33334
  id: id2,
33269
33335
  resourceType,
@@ -33335,7 +33401,9 @@ const Resources = ({
33335
33401
  gap: "8px",
33336
33402
  display: "flex",
33337
33403
  m: "0px",
33338
- children: [/* @__PURE__ */ jsx(Download, {
33404
+ children: [resourceType === "url" ? /* @__PURE__ */ jsx(DiagonalArrow, {
33405
+ color: vars("colors-main-deepSkyBlue")
33406
+ }) : /* @__PURE__ */ jsx(Download, {
33339
33407
  color: vars("colors-main-deepSkyBlue")
33340
33408
  }), resourceTextDownload]
33341
33409
  })
@@ -33344,5 +33412,5 @@ const Resources = ({
33344
33412
  })
33345
33413
  });
33346
33414
  };
33347
- export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, Eventos, FlashNotification, index as Icons, Label, ModalAlert, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
33415
+ export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, Eventos, FlashNotification, index as Icons, Label, ModalAlert, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
33348
33416
  //# sourceMappingURL=eclass-ui-kit.es.js.map