@eclass/ui-kit 1.11.1 → 1.11.4
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/index.d.ts +4 -2
- package/dist/eclass-ui-kit.es.js +96 -42
- 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/BtnTertiary.d.ts +1 -1
- 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,8 +14,6 @@ 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';
|
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",
|
|
@@ -26920,6 +26954,7 @@ function Btn({
|
|
|
26920
26954
|
if (!children && !rightIcon && !leftIcon) {
|
|
26921
26955
|
showChildren = "Button";
|
|
26922
26956
|
}
|
|
26957
|
+
const paddingTopBottom = ".75rem";
|
|
26923
26958
|
const borderRadius = rounded ? "12px" : vars("radii-small");
|
|
26924
26959
|
const colorMain = (_a = bg2 == null ? void 0 : bg2.main) != null ? _a : vars("colors-main-deepSkyBlue");
|
|
26925
26960
|
const touchColor = touchDark ? "rgba(160, 160, 160, 0.2)" : "rgba(255, 255, 255, 0.2)";
|
|
@@ -26954,8 +26989,8 @@ function Btn({
|
|
|
26954
26989
|
},
|
|
26955
26990
|
type,
|
|
26956
26991
|
tabIndex,
|
|
26957
|
-
paddingTop: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
|
|
26958
|
-
paddingBottom: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
|
|
26992
|
+
paddingTop: size2 === "regular" ? paddingTopBottom : onlyIcon ? vars("space-xs") : vars("space-xxs"),
|
|
26993
|
+
paddingBottom: size2 === "regular" ? paddingTopBottom : onlyIcon ? vars("space-xs") : vars("space-xxs"),
|
|
26959
26994
|
paddingLeft: size2 === "regular" ? vars("space-s") : vars("space-xs"),
|
|
26960
26995
|
paddingRight: size2 === "regular" ? vars("space-s") : vars("space-xs"),
|
|
26961
26996
|
position: "relative",
|
|
@@ -27078,7 +27113,7 @@ function BtnTertiary({
|
|
|
27078
27113
|
const gray = vars("colors-neutral-gray");
|
|
27079
27114
|
const blue = vars("colors-main-deepSkyBlue");
|
|
27080
27115
|
const white = vars("colors-neutral-white");
|
|
27081
|
-
const colorIcon = withoutColor ?
|
|
27116
|
+
const colorIcon = withoutColor ? vars("colors-main-blueGrey") : blue;
|
|
27082
27117
|
const btnIcons = {
|
|
27083
27118
|
answer: /* @__PURE__ */ jsx(TextBubble, {
|
|
27084
27119
|
color: colorIcon
|
|
@@ -27086,21 +27121,28 @@ function BtnTertiary({
|
|
|
27086
27121
|
back: /* @__PURE__ */ jsx(GoBack, {
|
|
27087
27122
|
color: colorIcon
|
|
27088
27123
|
}),
|
|
27089
|
-
|
|
27124
|
+
delete: /* @__PURE__ */ jsx(TrashCan, {
|
|
27090
27125
|
color: colorIcon
|
|
27091
27126
|
}),
|
|
27092
|
-
|
|
27127
|
+
download: /* @__PURE__ */ jsx(Download, {
|
|
27128
|
+
color: colorIcon
|
|
27129
|
+
}),
|
|
27130
|
+
edit: /* @__PURE__ */ jsx(Pen, {
|
|
27093
27131
|
color: colorIcon
|
|
27094
27132
|
}),
|
|
27095
27133
|
more: /* @__PURE__ */ jsx(PlusSign, {
|
|
27096
27134
|
color: colorIcon
|
|
27097
27135
|
}),
|
|
27136
|
+
multimedia: /* @__PURE__ */ jsx(Multimedia, {
|
|
27137
|
+
color: colorIcon
|
|
27138
|
+
}),
|
|
27098
27139
|
password: /* @__PURE__ */ jsx(Password, {
|
|
27099
27140
|
color: colorIcon
|
|
27100
27141
|
}),
|
|
27101
|
-
|
|
27142
|
+
record: /* @__PURE__ */ jsx(AcademicRecord, {
|
|
27102
27143
|
color: colorIcon
|
|
27103
|
-
})
|
|
27144
|
+
}),
|
|
27145
|
+
noIcon: /* @__PURE__ */ jsx(Fragment, {})
|
|
27104
27146
|
};
|
|
27105
27147
|
const icon = (_a = btnIcons[iconStatus]) != null ? _a : btnIcons.multimedia;
|
|
27106
27148
|
const rIcon = rightIcon ? icon : void 0;
|
|
@@ -27118,6 +27160,10 @@ function BtnTertiary({
|
|
|
27118
27160
|
lineHeight: "16px",
|
|
27119
27161
|
textDecorationLine: "underline",
|
|
27120
27162
|
borderRadius: "12px",
|
|
27163
|
+
paddingTop: vars("space-xxs"),
|
|
27164
|
+
paddingBottom: vars("space-xxs"),
|
|
27165
|
+
paddingLeft: vars("space-xs"),
|
|
27166
|
+
paddingRight: vars("space-xs"),
|
|
27121
27167
|
color: gray,
|
|
27122
27168
|
rightIcon: rIcon,
|
|
27123
27169
|
leftIcon: lIcon,
|
|
@@ -27126,9 +27172,15 @@ function BtnTertiary({
|
|
|
27126
27172
|
_hover: {
|
|
27127
27173
|
color: blue
|
|
27128
27174
|
},
|
|
27129
|
-
|
|
27175
|
+
_focusVisible: {
|
|
27130
27176
|
boxShadow: `inset 0 0 0 2px ${blue}, inset 0 0 0 4px ${white}`
|
|
27131
27177
|
},
|
|
27178
|
+
_focus: {
|
|
27179
|
+
boxShadow: "none"
|
|
27180
|
+
},
|
|
27181
|
+
_active: {
|
|
27182
|
+
bg: "transparent"
|
|
27183
|
+
},
|
|
27132
27184
|
sx: {
|
|
27133
27185
|
"&:hover": {
|
|
27134
27186
|
"svg path": {
|
|
@@ -27149,6 +27201,8 @@ function BtnLink({
|
|
|
27149
27201
|
return /* @__PURE__ */ jsx(Box, {
|
|
27150
27202
|
as: "button",
|
|
27151
27203
|
id: id2,
|
|
27204
|
+
backgroundColor: "transparent",
|
|
27205
|
+
borderStyle: "none",
|
|
27152
27206
|
width: "fit-content",
|
|
27153
27207
|
padding: ".25em",
|
|
27154
27208
|
fontFamily: "Roboto",
|