@eclass/ui-kit 1.11.0 → 1.11.3
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.
- package/dist/atoms/Icons/AcademicRecord.d.ts +6 -0
- package/dist/atoms/Icons/Download.d.ts +6 -0
- package/dist/atoms/Icons/VerticalLine.d.ts +6 -0
- package/dist/atoms/Icons/index.d.ts +5 -2
- package/dist/eclass-ui-kit.es.js +147 -46
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +27 -27
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/molecules/Buttons/BtnLink.d.ts +11 -0
- package/dist/molecules/Buttons/BtnTertiary.d.ts +3 -2
- package/dist/molecules/index.d.ts +4 -3
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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,10 +14,9 @@ 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';
|
|
22
|
+
export * from './VerticalLine';
|
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -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: "16px",
|
|
26546
|
+
h: "16px",
|
|
26547
|
+
viewBox: "0 0 16 16",
|
|
26548
|
+
title: "goBack",
|
|
26549
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
26550
|
+
d: "M9.92593 2L4 8L9.92593 14L12 11.9L8.14815 8L12 4.1L9.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,40 +26762,6 @@ 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
26767
|
w: "16px",
|
|
@@ -26803,6 +26837,21 @@ function TextBubble(props) {
|
|
|
26803
26837
|
}));
|
|
26804
26838
|
}
|
|
26805
26839
|
TextBubble.displayName = "TextBubble";
|
|
26840
|
+
function VerticalLine(props) {
|
|
26841
|
+
return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
|
|
26842
|
+
w: "1px",
|
|
26843
|
+
h: "15px",
|
|
26844
|
+
viewBox: "0 0 1 15",
|
|
26845
|
+
title: "verticalLine",
|
|
26846
|
+
children: /* @__PURE__ */ jsx("rect", {
|
|
26847
|
+
y: "-1",
|
|
26848
|
+
width: "1",
|
|
26849
|
+
height: "16",
|
|
26850
|
+
fill: "#D8D8D8"
|
|
26851
|
+
})
|
|
26852
|
+
}));
|
|
26853
|
+
}
|
|
26854
|
+
VerticalLine.displayName = "VerticalLine";
|
|
26806
26855
|
function TinyAlert({
|
|
26807
26856
|
status,
|
|
26808
26857
|
text,
|
|
@@ -26920,6 +26969,7 @@ function Btn({
|
|
|
26920
26969
|
if (!children && !rightIcon && !leftIcon) {
|
|
26921
26970
|
showChildren = "Button";
|
|
26922
26971
|
}
|
|
26972
|
+
const paddingTopBottom = ".75rem";
|
|
26923
26973
|
const borderRadius = rounded ? "12px" : vars("radii-small");
|
|
26924
26974
|
const colorMain = (_a = bg2 == null ? void 0 : bg2.main) != null ? _a : vars("colors-main-deepSkyBlue");
|
|
26925
26975
|
const touchColor = touchDark ? "rgba(160, 160, 160, 0.2)" : "rgba(255, 255, 255, 0.2)";
|
|
@@ -26954,8 +27004,8 @@ function Btn({
|
|
|
26954
27004
|
},
|
|
26955
27005
|
type,
|
|
26956
27006
|
tabIndex,
|
|
26957
|
-
paddingTop: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
|
|
26958
|
-
paddingBottom: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
|
|
27007
|
+
paddingTop: size2 === "regular" ? paddingTopBottom : onlyIcon ? vars("space-xs") : vars("space-xxs"),
|
|
27008
|
+
paddingBottom: size2 === "regular" ? paddingTopBottom : onlyIcon ? vars("space-xs") : vars("space-xxs"),
|
|
26959
27009
|
paddingLeft: size2 === "regular" ? vars("space-s") : vars("space-xs"),
|
|
26960
27010
|
paddingRight: size2 === "regular" ? vars("space-s") : vars("space-xs"),
|
|
26961
27011
|
position: "relative",
|
|
@@ -27072,13 +27122,14 @@ function BtnTertiary({
|
|
|
27072
27122
|
type = "button",
|
|
27073
27123
|
tabIndex,
|
|
27074
27124
|
id: id2,
|
|
27125
|
+
separation = false,
|
|
27075
27126
|
onClick
|
|
27076
27127
|
}) {
|
|
27077
27128
|
var _a;
|
|
27078
27129
|
const gray = vars("colors-neutral-gray");
|
|
27079
27130
|
const blue = vars("colors-main-deepSkyBlue");
|
|
27080
27131
|
const white = vars("colors-neutral-white");
|
|
27081
|
-
const colorIcon = withoutColor ?
|
|
27132
|
+
const colorIcon = withoutColor ? vars("colors-main-blueGrey") : blue;
|
|
27082
27133
|
const btnIcons = {
|
|
27083
27134
|
answer: /* @__PURE__ */ jsx(TextBubble, {
|
|
27084
27135
|
color: colorIcon
|
|
@@ -27086,31 +27137,41 @@ function BtnTertiary({
|
|
|
27086
27137
|
back: /* @__PURE__ */ jsx(GoBack, {
|
|
27087
27138
|
color: colorIcon
|
|
27088
27139
|
}),
|
|
27089
|
-
|
|
27140
|
+
delete: /* @__PURE__ */ jsx(TrashCan, {
|
|
27090
27141
|
color: colorIcon
|
|
27091
27142
|
}),
|
|
27092
|
-
|
|
27143
|
+
download: /* @__PURE__ */ jsx(Download, {
|
|
27144
|
+
color: colorIcon
|
|
27145
|
+
}),
|
|
27146
|
+
edit: /* @__PURE__ */ jsx(Pen, {
|
|
27093
27147
|
color: colorIcon
|
|
27094
27148
|
}),
|
|
27095
27149
|
more: /* @__PURE__ */ jsx(PlusSign, {
|
|
27096
27150
|
color: colorIcon
|
|
27097
27151
|
}),
|
|
27152
|
+
multimedia: /* @__PURE__ */ jsx(Multimedia, {
|
|
27153
|
+
color: colorIcon
|
|
27154
|
+
}),
|
|
27098
27155
|
password: /* @__PURE__ */ jsx(Password, {
|
|
27099
27156
|
color: colorIcon
|
|
27100
27157
|
}),
|
|
27101
|
-
|
|
27158
|
+
record: /* @__PURE__ */ jsx(AcademicRecord, {
|
|
27102
27159
|
color: colorIcon
|
|
27103
|
-
})
|
|
27160
|
+
}),
|
|
27161
|
+
noIcon: /* @__PURE__ */ jsx(Fragment, {})
|
|
27104
27162
|
};
|
|
27105
27163
|
const icon = (_a = btnIcons[iconStatus]) != null ? _a : btnIcons.multimedia;
|
|
27106
27164
|
const rIcon = rightIcon ? icon : void 0;
|
|
27107
27165
|
const lIcon = !rightIcon ? icon : void 0;
|
|
27108
|
-
|
|
27166
|
+
const verticalLine = separation ? /* @__PURE__ */ jsx(VerticalLine, {
|
|
27167
|
+
m: "0 0 0 8px"
|
|
27168
|
+
}) : void 0;
|
|
27169
|
+
return /* @__PURE__ */ jsxs(Button, {
|
|
27109
27170
|
id: id2,
|
|
27110
27171
|
type,
|
|
27111
27172
|
tabIndex,
|
|
27112
27173
|
height: "24px",
|
|
27113
|
-
background:
|
|
27174
|
+
background: "transparent",
|
|
27114
27175
|
fontFamily: "Roboto",
|
|
27115
27176
|
fontStyle: "normal",
|
|
27116
27177
|
fontWeight: "500",
|
|
@@ -27118,6 +27179,10 @@ function BtnTertiary({
|
|
|
27118
27179
|
lineHeight: "16px",
|
|
27119
27180
|
textDecorationLine: "underline",
|
|
27120
27181
|
borderRadius: "12px",
|
|
27182
|
+
paddingTop: vars("space-xxs"),
|
|
27183
|
+
paddingBottom: vars("space-xxs"),
|
|
27184
|
+
paddingLeft: !separation ? vars("space-xs") : "0",
|
|
27185
|
+
paddingRight: vars("space-xs"),
|
|
27121
27186
|
color: gray,
|
|
27122
27187
|
rightIcon: rIcon,
|
|
27123
27188
|
leftIcon: lIcon,
|
|
@@ -27126,9 +27191,15 @@ function BtnTertiary({
|
|
|
27126
27191
|
_hover: {
|
|
27127
27192
|
color: blue
|
|
27128
27193
|
},
|
|
27129
|
-
|
|
27194
|
+
_focusVisible: {
|
|
27130
27195
|
boxShadow: `inset 0 0 0 2px ${blue}, inset 0 0 0 4px ${white}`
|
|
27131
27196
|
},
|
|
27197
|
+
_focus: {
|
|
27198
|
+
boxShadow: "none"
|
|
27199
|
+
},
|
|
27200
|
+
_active: {
|
|
27201
|
+
bg: "transparent"
|
|
27202
|
+
},
|
|
27132
27203
|
sx: {
|
|
27133
27204
|
"&:hover": {
|
|
27134
27205
|
"svg path": {
|
|
@@ -27136,10 +27207,40 @@ function BtnTertiary({
|
|
|
27136
27207
|
}
|
|
27137
27208
|
}
|
|
27138
27209
|
},
|
|
27139
|
-
children
|
|
27210
|
+
children: [children, verticalLine]
|
|
27140
27211
|
});
|
|
27141
27212
|
}
|
|
27142
27213
|
BtnTertiary.displayName = "BtnTertiary";
|
|
27214
|
+
function BtnLink({
|
|
27215
|
+
children,
|
|
27216
|
+
m: m2 = "0",
|
|
27217
|
+
onClick,
|
|
27218
|
+
id: id2
|
|
27219
|
+
}) {
|
|
27220
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
27221
|
+
as: "button",
|
|
27222
|
+
id: id2,
|
|
27223
|
+
backgroundColor: "transparent",
|
|
27224
|
+
borderStyle: "none",
|
|
27225
|
+
width: "fit-content",
|
|
27226
|
+
padding: ".25em",
|
|
27227
|
+
fontFamily: "Roboto",
|
|
27228
|
+
fontStyle: "normal",
|
|
27229
|
+
fontWeight: "500",
|
|
27230
|
+
fontSize: ".875rem",
|
|
27231
|
+
lineHeight: "1rem",
|
|
27232
|
+
textDecorationLine: "underline",
|
|
27233
|
+
color: vars("colors-main-deepSkyBlue"),
|
|
27234
|
+
m: m2,
|
|
27235
|
+
onClick,
|
|
27236
|
+
_hover: {
|
|
27237
|
+
color: vars("colors-neutral-darkCharcoal"),
|
|
27238
|
+
cursor: "pointer"
|
|
27239
|
+
},
|
|
27240
|
+
children
|
|
27241
|
+
});
|
|
27242
|
+
}
|
|
27243
|
+
BtnLink.displayName = "BtnLink";
|
|
27143
27244
|
const STUDENT = 4;
|
|
27144
27245
|
function Header() {
|
|
27145
27246
|
const {
|
|
@@ -28311,5 +28412,5 @@ function CourseList({
|
|
|
28311
28412
|
});
|
|
28312
28413
|
}
|
|
28313
28414
|
CourseList.displayName = "CourseList";
|
|
28314
|
-
export { Btn, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
|
|
28415
|
+
export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
|
|
28315
28416
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|