@eclass/ui-kit 1.11.2 → 1.11.5

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 Download(props: BaseProps): JSX.Element;
4
+ export declare namespace Download {
5
+ var displayName: string;
6
+ }
@@ -1,8 +1,12 @@
1
+ export * from './AcademicRecord';
1
2
  export * from './AlertInfo';
2
3
  export * from './ArrowRight';
3
4
  export * from './Certificate';
4
5
  export * from './CircularCheck';
5
6
  export * from './CircularInformation';
7
+ export * from './Download';
8
+ export * from './GoBack';
9
+ export * from './Multimedia';
6
10
  export * from './Loader';
7
11
  export * from './Profile';
8
12
  export * from './Schedule';
@@ -10,11 +14,8 @@ export * from './TinyAlertInfo';
10
14
  export * from './TinyAlertError';
11
15
  export * from './TinyAlertWarning';
12
16
  export * from './TinyAlertSuccess';
13
- export * from './Multimedia';
14
- export * from './GoBack';
15
17
  export * from './Password';
16
18
  export * from './Pen';
17
19
  export * from './PlusSign';
18
20
  export * from './TrashCan';
19
21
  export * from './TextBubble';
20
- export * from './AcademicRecord';
@@ -26397,6 +26397,25 @@ function Base({
26397
26397
  }), children]
26398
26398
  });
26399
26399
  }
26400
+ function AcademicRecord(props) {
26401
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
26402
+ w: "16px",
26403
+ h: "16px",
26404
+ viewBox: "0 0 16 16",
26405
+ title: "academicRecord",
26406
+ children: [/* @__PURE__ */ jsx("path", {
26407
+ d: "M14 0H2C1.73478 0 1.48043 0.105357 1.29289 0.292893C1.10536 0.48043 1 0.734784 1 1V7C1 7.26522 1.10536 7.51957 1.29289 7.70711C1.48043 7.89464 1.73478 8 2 8H14C14.2652 8 14.5196 7.89464 14.7071 7.70711C14.8946 7.51957 15 7.26522 15 7V1C15 0.734784 14.8946 0.48043 14.7071 0.292893C14.5196 0.105357 14.2652 0 14 0V0Z",
26408
+ fill: "currentColor"
26409
+ }), /* @__PURE__ */ jsx("path", {
26410
+ d: "M15 10H1V12H15V10Z",
26411
+ fill: "currentColor"
26412
+ }), /* @__PURE__ */ jsx("path", {
26413
+ d: "M15 14H1V16H15V14Z",
26414
+ fill: "currentColor"
26415
+ })]
26416
+ }));
26417
+ }
26418
+ AcademicRecord.displayName = "AcademicRecord";
26400
26419
  function AlertInfo(props) {
26401
26420
  return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26402
26421
  children: /* @__PURE__ */ jsxs("svg", {
@@ -26506,6 +26525,55 @@ function CircularInformation(props) {
26506
26525
  }));
26507
26526
  }
26508
26527
  CircularInformation.displayName = "CircularInformation";
26528
+ function Download(props) {
26529
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
26530
+ w: "16px",
26531
+ h: "16px",
26532
+ viewBox: "0 0 16 16",
26533
+ children: [/* @__PURE__ */ jsx("path", {
26534
+ d: "M7.99998 12C8.29998 12 8.49998 11.9 8.69998 11.7L14.4 6L13 4.6L8.99998 8.6V0H6.99998V8.6L2.99998 4.6L1.59998 6L7.29998 11.7C7.49998 11.9 7.69998 12 7.99998 12Z",
26535
+ fill: "currentColor"
26536
+ }), /* @__PURE__ */ jsx("path", {
26537
+ d: "M15 14H1V16H15V14Z",
26538
+ fill: "currentColor"
26539
+ })]
26540
+ }));
26541
+ }
26542
+ Download.displayName = "Download";
26543
+ function GoBack(props) {
26544
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26545
+ w: "8px",
26546
+ h: "16px",
26547
+ viewBox: "0 0 8 16",
26548
+ title: "goBack",
26549
+ children: /* @__PURE__ */ jsx("path", {
26550
+ d: "M5.92593 2L0 8L5.92593 14L8 11.9L4.14815 8L8 4.1L5.92593 2Z",
26551
+ fill: "currentColor"
26552
+ })
26553
+ }));
26554
+ }
26555
+ GoBack.displayName = "GoBack";
26556
+ function Multimedia(props) {
26557
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
26558
+ w: "12px",
26559
+ viewBox: "0 0 14 14",
26560
+ title: "multimedia",
26561
+ children: [/* @__PURE__ */ jsx("path", {
26562
+ d: "M3 6C4.65685 6 6 4.65685 6 3C6 1.34315 4.65685 0 3 0C1.34315 0 0 1.34315 0 3C0 4.65685 1.34315 6 3 6Z",
26563
+ fill: "currentColor"
26564
+ }), /* @__PURE__ */ jsx("path", {
26565
+ d: "M11 6C12.6569 6 14 4.65685 14 3C14 1.34315 12.6569 0 11 0C9.34315 0 8 1.34315 8 3C8 4.65685 9.34315 6 11 6Z",
26566
+ fill: "currentColor"
26567
+ }), /* @__PURE__ */ jsx("path", {
26568
+ d: "M3 14C4.65685 14 6 12.6569 6 11C6 9.34315 4.65685 8 3 8C1.34315 8 0 9.34315 0 11C0 12.6569 1.34315 14 3 14Z",
26569
+ fill: "currentColor"
26570
+ }), /* @__PURE__ */ jsx("path", {
26571
+ d: "M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z",
26572
+ fill: "currentColor"
26573
+ })]
26574
+ }));
26575
+ }
26576
+ Multimedia.displayName = "Multimedia";
26509
26577
  function Loader({
26510
26578
  fill = "#fff"
26511
26579
  }) {
@@ -26694,50 +26762,16 @@ function TinyAlertSuccess(props) {
26694
26762
  }));
26695
26763
  }
26696
26764
  TinyAlertSuccess.displayName = "TinyAlertSuccess";
26697
- function Multimedia(props) {
26698
- return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
26699
- w: "12px",
26700
- viewBox: "0 0 14 14",
26701
- title: "multimedia",
26702
- children: [/* @__PURE__ */ jsx("path", {
26703
- d: "M3 6C4.65685 6 6 4.65685 6 3C6 1.34315 4.65685 0 3 0C1.34315 0 0 1.34315 0 3C0 4.65685 1.34315 6 3 6Z",
26704
- fill: "currentColor"
26705
- }), /* @__PURE__ */ jsx("path", {
26706
- d: "M11 6C12.6569 6 14 4.65685 14 3C14 1.34315 12.6569 0 11 0C9.34315 0 8 1.34315 8 3C8 4.65685 9.34315 6 11 6Z",
26707
- fill: "currentColor"
26708
- }), /* @__PURE__ */ jsx("path", {
26709
- d: "M3 14C4.65685 14 6 12.6569 6 11C6 9.34315 4.65685 8 3 8C1.34315 8 0 9.34315 0 11C0 12.6569 1.34315 14 3 14Z",
26710
- fill: "currentColor"
26711
- }), /* @__PURE__ */ jsx("path", {
26712
- d: "M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z",
26713
- fill: "currentColor"
26714
- })]
26715
- }));
26716
- }
26717
- Multimedia.displayName = "Multimedia";
26718
- function GoBack(props) {
26719
- return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26720
- w: "16px",
26721
- h: "16px",
26722
- viewBox: "0 0 16 16",
26723
- title: "goBack",
26724
- children: /* @__PURE__ */ jsx("path", {
26725
- d: "M9.92593 2L4 8L9.92593 14L12 11.9L8.14815 8L12 4.1L9.92593 2Z",
26726
- fill: "currentColor"
26727
- })
26728
- }));
26729
- }
26730
- GoBack.displayName = "GoBack";
26731
26765
  function Password(props) {
26732
26766
  return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26733
- w: "16px",
26767
+ w: "14px",
26734
26768
  h: "16px",
26735
- viewBox: "0 0 16 16",
26769
+ viewBox: "0 0 14 16",
26736
26770
  title: "password",
26737
26771
  children: /* @__PURE__ */ jsx("path", {
26738
26772
  fillRule: "evenodd",
26739
26773
  clipRule: "evenodd",
26740
- d: "M8 1C5.95714 1 4.28571 2.67143 4.28571 4.71429V5.64286H2.42857C1.87143 5.64286 1.5 6.01429 1.5 6.57143V14.9286C1.5 15.4857 1.87143 15.8571 2.42857 15.8571H13.5714C14.1286 15.8571 14.5 15.4857 14.5 14.9286V6.57143C14.5 6.01429 14.1286 5.64286 13.5714 5.64286H11.7143V4.71429C11.7143 2.67143 10.0429 1 8 1ZM8.92857 11.8643V13.0714H7.07143V11.8643C6.51429 11.5857 6.14286 10.9357 6.14286 10.2857C6.14286 9.26429 6.97857 8.42857 8 8.42857C9.02143 8.42857 9.85714 9.26429 9.85714 10.2857C9.85714 10.9357 9.48571 11.5857 8.92857 11.8643ZM6.14286 4.71429V5.64286H9.85714V4.71429C9.85714 3.69286 9.02143 2.85714 8 2.85714C6.97857 2.85714 6.14286 3.69286 6.14286 4.71429Z",
26774
+ d: "M7 0C4.95714 0 3.28571 1.67143 3.28571 3.71429V4.64286H1.42857C0.871429 4.64286 0.5 5.01429 0.5 5.57143V13.9286C0.5 14.4857 0.871429 14.8571 1.42857 14.8571H12.5714C13.1286 14.8571 13.5 14.4857 13.5 13.9286V5.57143C13.5 5.01429 13.1286 4.64286 12.5714 4.64286H10.7143V3.71429C10.7143 1.67143 9.04286 0 7 0ZM7.92857 10.8643V12.0714H6.07143V10.8643C5.51429 10.5857 5.14286 9.93571 5.14286 9.28571C5.14286 8.26429 5.97857 7.42857 7 7.42857C8.02143 7.42857 8.85714 8.26429 8.85714 9.28571C8.85714 9.93571 8.48571 10.5857 7.92857 10.8643ZM5.14286 3.71429V4.64286H8.85714V3.71429C8.85714 2.69286 8.02143 1.85714 7 1.85714C5.97857 1.85714 5.14286 2.69286 5.14286 3.71429Z",
26741
26775
  fill: "currentColor"
26742
26776
  })
26743
26777
  }));
@@ -26803,25 +26837,6 @@ function TextBubble(props) {
26803
26837
  }));
26804
26838
  }
26805
26839
  TextBubble.displayName = "TextBubble";
26806
- function AcademicRecord(props) {
26807
- return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
26808
- w: "16px",
26809
- h: "16px",
26810
- viewBox: "0 0 16 16",
26811
- title: "academicRecord",
26812
- children: [/* @__PURE__ */ jsx("path", {
26813
- d: "M14 0H2C1.73478 0 1.48043 0.105357 1.29289 0.292893C1.10536 0.48043 1 0.734784 1 1V7C1 7.26522 1.10536 7.51957 1.29289 7.70711C1.48043 7.89464 1.73478 8 2 8H14C14.2652 8 14.5196 7.89464 14.7071 7.70711C14.8946 7.51957 15 7.26522 15 7V1C15 0.734784 14.8946 0.48043 14.7071 0.292893C14.5196 0.105357 14.2652 0 14 0V0Z",
26814
- fill: "currentColor"
26815
- }), /* @__PURE__ */ jsx("path", {
26816
- d: "M15 10H1V12H15V10Z",
26817
- fill: "currentColor"
26818
- }), /* @__PURE__ */ jsx("path", {
26819
- d: "M15 14H1V16H15V14Z",
26820
- fill: "currentColor"
26821
- })]
26822
- }));
26823
- }
26824
- AcademicRecord.displayName = "AcademicRecord";
26825
26840
  function TinyAlert({
26826
26841
  status,
26827
26842
  text,
@@ -27098,7 +27113,7 @@ function BtnTertiary({
27098
27113
  const gray = vars("colors-neutral-gray");
27099
27114
  const blue = vars("colors-main-deepSkyBlue");
27100
27115
  const white = vars("colors-neutral-white");
27101
- const colorIcon = withoutColor ? gray : blue;
27116
+ const colorIcon = withoutColor ? vars("colors-main-blueGrey") : blue;
27102
27117
  const btnIcons = {
27103
27118
  answer: /* @__PURE__ */ jsx(TextBubble, {
27104
27119
  color: colorIcon
@@ -27106,24 +27121,28 @@ function BtnTertiary({
27106
27121
  back: /* @__PURE__ */ jsx(GoBack, {
27107
27122
  color: colorIcon
27108
27123
  }),
27109
- edit: /* @__PURE__ */ jsx(Pen, {
27124
+ delete: /* @__PURE__ */ jsx(TrashCan, {
27110
27125
  color: colorIcon
27111
27126
  }),
27112
- delete: /* @__PURE__ */ jsx(TrashCan, {
27127
+ download: /* @__PURE__ */ jsx(Download, {
27113
27128
  color: colorIcon
27114
27129
  }),
27115
- more: /* @__PURE__ */ jsx(PlusSign, {
27130
+ edit: /* @__PURE__ */ jsx(Pen, {
27116
27131
  color: colorIcon
27117
27132
  }),
27118
- password: /* @__PURE__ */ jsx(Password, {
27133
+ more: /* @__PURE__ */ jsx(PlusSign, {
27119
27134
  color: colorIcon
27120
27135
  }),
27121
27136
  multimedia: /* @__PURE__ */ jsx(Multimedia, {
27122
27137
  color: colorIcon
27123
27138
  }),
27139
+ password: /* @__PURE__ */ jsx(Password, {
27140
+ color: colorIcon
27141
+ }),
27124
27142
  record: /* @__PURE__ */ jsx(AcademicRecord, {
27125
27143
  color: colorIcon
27126
- })
27144
+ }),
27145
+ noIcon: /* @__PURE__ */ jsx(Fragment, {})
27127
27146
  };
27128
27147
  const icon = (_a = btnIcons[iconStatus]) != null ? _a : btnIcons.multimedia;
27129
27148
  const rIcon = rightIcon ? icon : void 0;
@@ -27153,9 +27172,15 @@ function BtnTertiary({
27153
27172
  _hover: {
27154
27173
  color: blue
27155
27174
  },
27156
- _focus: {
27175
+ _focusVisible: {
27157
27176
  boxShadow: `inset 0 0 0 2px ${blue}, inset 0 0 0 4px ${white}`
27158
27177
  },
27178
+ _focus: {
27179
+ boxShadow: "none"
27180
+ },
27181
+ _active: {
27182
+ bg: "transparent"
27183
+ },
27159
27184
  sx: {
27160
27185
  "&:hover": {
27161
27186
  "svg path": {