@eclass/ui-kit 1.11.2 → 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/Download.d.ts +6 -0
- package/dist/atoms/Icons/VerticalLine.d.ts +6 -0
- package/dist/atoms/Icons/index.d.ts +5 -3
- package/dist/eclass-ui-kit.es.js +105 -61
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +26 -26
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/molecules/Buttons/BtnTertiary.d.ts +3 -2
- 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,11 +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';
|
|
20
|
-
export * from './
|
|
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,25 +26837,21 @@ function TextBubble(props) {
|
|
|
26803
26837
|
}));
|
|
26804
26838
|
}
|
|
26805
26839
|
TextBubble.displayName = "TextBubble";
|
|
26806
|
-
function
|
|
26807
|
-
return /* @__PURE__ */
|
|
26808
|
-
w: "
|
|
26809
|
-
h: "
|
|
26810
|
-
viewBox: "0 0
|
|
26811
|
-
title: "
|
|
26812
|
-
children:
|
|
26813
|
-
|
|
26814
|
-
|
|
26815
|
-
|
|
26816
|
-
|
|
26817
|
-
|
|
26818
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
26819
|
-
d: "M15 14H1V16H15V14Z",
|
|
26820
|
-
fill: "currentColor"
|
|
26821
|
-
})]
|
|
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
|
+
})
|
|
26822
26852
|
}));
|
|
26823
26853
|
}
|
|
26824
|
-
|
|
26854
|
+
VerticalLine.displayName = "VerticalLine";
|
|
26825
26855
|
function TinyAlert({
|
|
26826
26856
|
status,
|
|
26827
26857
|
text,
|
|
@@ -27092,13 +27122,14 @@ function BtnTertiary({
|
|
|
27092
27122
|
type = "button",
|
|
27093
27123
|
tabIndex,
|
|
27094
27124
|
id: id2,
|
|
27125
|
+
separation = false,
|
|
27095
27126
|
onClick
|
|
27096
27127
|
}) {
|
|
27097
27128
|
var _a;
|
|
27098
27129
|
const gray = vars("colors-neutral-gray");
|
|
27099
27130
|
const blue = vars("colors-main-deepSkyBlue");
|
|
27100
27131
|
const white = vars("colors-neutral-white");
|
|
27101
|
-
const colorIcon = withoutColor ?
|
|
27132
|
+
const colorIcon = withoutColor ? vars("colors-main-blueGrey") : blue;
|
|
27102
27133
|
const btnIcons = {
|
|
27103
27134
|
answer: /* @__PURE__ */ jsx(TextBubble, {
|
|
27104
27135
|
color: colorIcon
|
|
@@ -27106,29 +27137,36 @@ function BtnTertiary({
|
|
|
27106
27137
|
back: /* @__PURE__ */ jsx(GoBack, {
|
|
27107
27138
|
color: colorIcon
|
|
27108
27139
|
}),
|
|
27109
|
-
|
|
27140
|
+
delete: /* @__PURE__ */ jsx(TrashCan, {
|
|
27110
27141
|
color: colorIcon
|
|
27111
27142
|
}),
|
|
27112
|
-
|
|
27143
|
+
download: /* @__PURE__ */ jsx(Download, {
|
|
27113
27144
|
color: colorIcon
|
|
27114
27145
|
}),
|
|
27115
|
-
|
|
27146
|
+
edit: /* @__PURE__ */ jsx(Pen, {
|
|
27116
27147
|
color: colorIcon
|
|
27117
27148
|
}),
|
|
27118
|
-
|
|
27149
|
+
more: /* @__PURE__ */ jsx(PlusSign, {
|
|
27119
27150
|
color: colorIcon
|
|
27120
27151
|
}),
|
|
27121
27152
|
multimedia: /* @__PURE__ */ jsx(Multimedia, {
|
|
27122
27153
|
color: colorIcon
|
|
27123
27154
|
}),
|
|
27155
|
+
password: /* @__PURE__ */ jsx(Password, {
|
|
27156
|
+
color: colorIcon
|
|
27157
|
+
}),
|
|
27124
27158
|
record: /* @__PURE__ */ jsx(AcademicRecord, {
|
|
27125
27159
|
color: colorIcon
|
|
27126
|
-
})
|
|
27160
|
+
}),
|
|
27161
|
+
noIcon: /* @__PURE__ */ jsx(Fragment, {})
|
|
27127
27162
|
};
|
|
27128
27163
|
const icon = (_a = btnIcons[iconStatus]) != null ? _a : btnIcons.multimedia;
|
|
27129
27164
|
const rIcon = rightIcon ? icon : void 0;
|
|
27130
27165
|
const lIcon = !rightIcon ? icon : void 0;
|
|
27131
|
-
|
|
27166
|
+
const verticalLine = separation ? /* @__PURE__ */ jsx(VerticalLine, {
|
|
27167
|
+
m: "0 0 0 8px"
|
|
27168
|
+
}) : void 0;
|
|
27169
|
+
return /* @__PURE__ */ jsxs(Button, {
|
|
27132
27170
|
id: id2,
|
|
27133
27171
|
type,
|
|
27134
27172
|
tabIndex,
|
|
@@ -27143,7 +27181,7 @@ function BtnTertiary({
|
|
|
27143
27181
|
borderRadius: "12px",
|
|
27144
27182
|
paddingTop: vars("space-xxs"),
|
|
27145
27183
|
paddingBottom: vars("space-xxs"),
|
|
27146
|
-
paddingLeft: vars("space-xs"),
|
|
27184
|
+
paddingLeft: !separation ? vars("space-xs") : "0",
|
|
27147
27185
|
paddingRight: vars("space-xs"),
|
|
27148
27186
|
color: gray,
|
|
27149
27187
|
rightIcon: rIcon,
|
|
@@ -27153,9 +27191,15 @@ function BtnTertiary({
|
|
|
27153
27191
|
_hover: {
|
|
27154
27192
|
color: blue
|
|
27155
27193
|
},
|
|
27156
|
-
|
|
27194
|
+
_focusVisible: {
|
|
27157
27195
|
boxShadow: `inset 0 0 0 2px ${blue}, inset 0 0 0 4px ${white}`
|
|
27158
27196
|
},
|
|
27197
|
+
_focus: {
|
|
27198
|
+
boxShadow: "none"
|
|
27199
|
+
},
|
|
27200
|
+
_active: {
|
|
27201
|
+
bg: "transparent"
|
|
27202
|
+
},
|
|
27159
27203
|
sx: {
|
|
27160
27204
|
"&:hover": {
|
|
27161
27205
|
"svg path": {
|
|
@@ -27163,7 +27207,7 @@ function BtnTertiary({
|
|
|
27163
27207
|
}
|
|
27164
27208
|
}
|
|
27165
27209
|
},
|
|
27166
|
-
children
|
|
27210
|
+
children: [children, verticalLine]
|
|
27167
27211
|
});
|
|
27168
27212
|
}
|
|
27169
27213
|
BtnTertiary.displayName = "BtnTertiary";
|