@eclass/ui-kit 1.10.2 → 1.11.2

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 AcademicRecord(props: BaseProps): JSX.Element;
4
+ export declare namespace AcademicRecord {
5
+ var displayName: string;
6
+ }
@@ -17,3 +17,4 @@ export * from './Pen';
17
17
  export * from './PlusSign';
18
18
  export * from './TrashCan';
19
19
  export * from './TextBubble';
20
+ export * from './AcademicRecord';
@@ -26803,6 +26803,25 @@ function TextBubble(props) {
26803
26803
  }));
26804
26804
  }
26805
26805
  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";
26806
26825
  function TinyAlert({
26807
26826
  status,
26808
26827
  text,
@@ -26920,6 +26939,7 @@ function Btn({
26920
26939
  if (!children && !rightIcon && !leftIcon) {
26921
26940
  showChildren = "Button";
26922
26941
  }
26942
+ const paddingTopBottom = ".75rem";
26923
26943
  const borderRadius = rounded ? "12px" : vars("radii-small");
26924
26944
  const colorMain = (_a = bg2 == null ? void 0 : bg2.main) != null ? _a : vars("colors-main-deepSkyBlue");
26925
26945
  const touchColor = touchDark ? "rgba(160, 160, 160, 0.2)" : "rgba(255, 255, 255, 0.2)";
@@ -26954,8 +26974,8 @@ function Btn({
26954
26974
  },
26955
26975
  type,
26956
26976
  tabIndex,
26957
- paddingTop: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
26958
- paddingBottom: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
26977
+ paddingTop: size2 === "regular" ? paddingTopBottom : onlyIcon ? vars("space-xs") : vars("space-xxs"),
26978
+ paddingBottom: size2 === "regular" ? paddingTopBottom : onlyIcon ? vars("space-xs") : vars("space-xxs"),
26959
26979
  paddingLeft: size2 === "regular" ? vars("space-s") : vars("space-xs"),
26960
26980
  paddingRight: size2 === "regular" ? vars("space-s") : vars("space-xs"),
26961
26981
  position: "relative",
@@ -27089,7 +27109,7 @@ function BtnTertiary({
27089
27109
  edit: /* @__PURE__ */ jsx(Pen, {
27090
27110
  color: colorIcon
27091
27111
  }),
27092
- eliminate: /* @__PURE__ */ jsx(TrashCan, {
27112
+ delete: /* @__PURE__ */ jsx(TrashCan, {
27093
27113
  color: colorIcon
27094
27114
  }),
27095
27115
  more: /* @__PURE__ */ jsx(PlusSign, {
@@ -27100,6 +27120,9 @@ function BtnTertiary({
27100
27120
  }),
27101
27121
  multimedia: /* @__PURE__ */ jsx(Multimedia, {
27102
27122
  color: colorIcon
27123
+ }),
27124
+ record: /* @__PURE__ */ jsx(AcademicRecord, {
27125
+ color: colorIcon
27103
27126
  })
27104
27127
  };
27105
27128
  const icon = (_a = btnIcons[iconStatus]) != null ? _a : btnIcons.multimedia;
@@ -27110,7 +27133,7 @@ function BtnTertiary({
27110
27133
  type,
27111
27134
  tabIndex,
27112
27135
  height: "24px",
27113
- background: white,
27136
+ background: "transparent",
27114
27137
  fontFamily: "Roboto",
27115
27138
  fontStyle: "normal",
27116
27139
  fontWeight: "500",
@@ -27118,6 +27141,10 @@ function BtnTertiary({
27118
27141
  lineHeight: "16px",
27119
27142
  textDecorationLine: "underline",
27120
27143
  borderRadius: "12px",
27144
+ paddingTop: vars("space-xxs"),
27145
+ paddingBottom: vars("space-xxs"),
27146
+ paddingLeft: vars("space-xs"),
27147
+ paddingRight: vars("space-xs"),
27121
27148
  color: gray,
27122
27149
  rightIcon: rIcon,
27123
27150
  leftIcon: lIcon,
@@ -27140,6 +27167,36 @@ function BtnTertiary({
27140
27167
  });
27141
27168
  }
27142
27169
  BtnTertiary.displayName = "BtnTertiary";
27170
+ function BtnLink({
27171
+ children,
27172
+ m: m2 = "0",
27173
+ onClick,
27174
+ id: id2
27175
+ }) {
27176
+ return /* @__PURE__ */ jsx(Box, {
27177
+ as: "button",
27178
+ id: id2,
27179
+ backgroundColor: "transparent",
27180
+ borderStyle: "none",
27181
+ width: "fit-content",
27182
+ padding: ".25em",
27183
+ fontFamily: "Roboto",
27184
+ fontStyle: "normal",
27185
+ fontWeight: "500",
27186
+ fontSize: ".875rem",
27187
+ lineHeight: "1rem",
27188
+ textDecorationLine: "underline",
27189
+ color: vars("colors-main-deepSkyBlue"),
27190
+ m: m2,
27191
+ onClick,
27192
+ _hover: {
27193
+ color: vars("colors-neutral-darkCharcoal"),
27194
+ cursor: "pointer"
27195
+ },
27196
+ children
27197
+ });
27198
+ }
27199
+ BtnLink.displayName = "BtnLink";
27143
27200
  const STUDENT = 4;
27144
27201
  function Header() {
27145
27202
  const {
@@ -28311,5 +28368,5 @@ function CourseList({
28311
28368
  });
28312
28369
  }
28313
28370
  CourseList.displayName = "CourseList";
28314
- export { Btn, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
28371
+ export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
28315
28372
  //# sourceMappingURL=eclass-ui-kit.es.js.map