@eclass/ui-kit 1.47.0 → 1.49.0
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/DiagonalArrow.d.ts +6 -0
- package/dist/atoms/Icons/index.d.ts +1 -0
- package/dist/eclass-ui-kit.es.js +126 -24
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +49 -49
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/CourseList/Boxes/BoxImage.d.ts +1 -1
- package/dist/organisms/CourseList/Boxes/BoxTraditional.d.ts +2 -2
- package/dist/organisms/CourseList/Boxes/Boxes.d.ts +2 -2
- package/dist/organisms/CourseList/types.d.ts +6 -1
- package/dist/organisms/Resources/Icons/Url.d.ts +2 -0
- package/dist/organisms/Resources/Icons/index.d.ts +1 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -29407,6 +29407,19 @@ function Close(props) {
|
|
|
29407
29407
|
});
|
|
29408
29408
|
}
|
|
29409
29409
|
Close.displayName = "Close";
|
|
29410
|
+
function DiagonalArrow(props) {
|
|
29411
|
+
return /* @__PURE__ */ jsx(Base, {
|
|
29412
|
+
...props,
|
|
29413
|
+
w: "16px",
|
|
29414
|
+
h: "16px",
|
|
29415
|
+
viewBox: "0 0 16 16",
|
|
29416
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
29417
|
+
d: "M9.207 5.793L3 12L4.414 13.414L10.621 7.207L13.414 10V3H6.414L9.207 5.793Z",
|
|
29418
|
+
fill: "#0189FF"
|
|
29419
|
+
})
|
|
29420
|
+
});
|
|
29421
|
+
}
|
|
29422
|
+
DiagonalArrow.displayName = "Download";
|
|
29410
29423
|
var index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29411
29424
|
__proto__: null,
|
|
29412
29425
|
AcademicRecord,
|
|
@@ -29439,7 +29452,8 @@ var index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
29439
29452
|
InfoColor,
|
|
29440
29453
|
SuccessColor,
|
|
29441
29454
|
WarningColor,
|
|
29442
|
-
Close
|
|
29455
|
+
Close,
|
|
29456
|
+
DiagonalArrow
|
|
29443
29457
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
29444
29458
|
function TinyAlert({
|
|
29445
29459
|
status,
|
|
@@ -29996,23 +30010,39 @@ function UserWayCookie() {
|
|
|
29996
30010
|
}
|
|
29997
30011
|
const STUDENT = 4;
|
|
29998
30012
|
function Header() {
|
|
30013
|
+
var _a;
|
|
29999
30014
|
const {
|
|
30000
30015
|
background: background2,
|
|
30001
30016
|
labels,
|
|
30002
30017
|
logo,
|
|
30003
30018
|
logoAlt,
|
|
30004
|
-
Profile: profile
|
|
30019
|
+
Profile: profile,
|
|
30020
|
+
soonCourse
|
|
30005
30021
|
} = React.useContext(CourseBoxContext);
|
|
30006
30022
|
return /* @__PURE__ */ jsxs(Box, {
|
|
30007
30023
|
as: "header",
|
|
30008
|
-
bgImg: background2,
|
|
30009
30024
|
bgPos: "center",
|
|
30010
30025
|
bgSize: "cover",
|
|
30011
30026
|
height: "8.75rem",
|
|
30012
30027
|
borderBottom: vars("borders-light"),
|
|
30013
30028
|
pos: "relative",
|
|
30029
|
+
_before: {
|
|
30030
|
+
content: '""',
|
|
30031
|
+
position: "absolute",
|
|
30032
|
+
top: 0,
|
|
30033
|
+
left: 0,
|
|
30034
|
+
width: "100%",
|
|
30035
|
+
height: "100%",
|
|
30036
|
+
backgroundImage: background2,
|
|
30037
|
+
backgroundSize: "cover",
|
|
30038
|
+
backgroundPosition: "center",
|
|
30039
|
+
opacity: ((_a = soonCourse == null ? void 0 : soonCourse.show) != null ? _a : false) ? 0.3 : 1,
|
|
30040
|
+
zIndex: -1
|
|
30041
|
+
},
|
|
30014
30042
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
30015
30043
|
p: "1rem",
|
|
30044
|
+
display: "flex",
|
|
30045
|
+
gap: "0.625rem",
|
|
30016
30046
|
children: [(profile == null ? void 0 : profile.id) !== STUDENT && /* @__PURE__ */ jsx(Label, {
|
|
30017
30047
|
bg: vars("colors-neutral-white"),
|
|
30018
30048
|
m: "0 0 .625rem 0",
|
|
@@ -30029,6 +30059,13 @@ function Header() {
|
|
|
30029
30059
|
bg: item.id === "NEW" ? vars("colors-secondary-pumpkin") : void 0,
|
|
30030
30060
|
children: item.text
|
|
30031
30061
|
}, index2))
|
|
30062
|
+
}), (soonCourse == null ? void 0 : soonCourse.show) && (soonCourse == null ? void 0 : soonCourse.text) && /* @__PURE__ */ jsx(Stack, {
|
|
30063
|
+
direction: "row",
|
|
30064
|
+
spacing: ".625rem",
|
|
30065
|
+
wrap: "wrap",
|
|
30066
|
+
children: /* @__PURE__ */ jsx(Label, {
|
|
30067
|
+
children: soonCourse.text
|
|
30068
|
+
})
|
|
30032
30069
|
})]
|
|
30033
30070
|
}), logo !== void 0 && logo.length > 0 && /* @__PURE__ */ jsx(Center, {
|
|
30034
30071
|
pos: "absolute",
|
|
@@ -30284,7 +30321,7 @@ const dataStates = {
|
|
|
30284
30321
|
},
|
|
30285
30322
|
inscripcionFutura: {
|
|
30286
30323
|
...dataBase,
|
|
30287
|
-
id:
|
|
30324
|
+
id: 2,
|
|
30288
30325
|
hasFinanzeFreezed: false,
|
|
30289
30326
|
status: {
|
|
30290
30327
|
...dataBase.status,
|
|
@@ -30315,7 +30352,7 @@ const dataStates = {
|
|
|
30315
30352
|
},
|
|
30316
30353
|
inscripcionFinalizo: {
|
|
30317
30354
|
...dataBase,
|
|
30318
|
-
id:
|
|
30355
|
+
id: 3,
|
|
30319
30356
|
hasFinanzeFreezed: false,
|
|
30320
30357
|
status: {
|
|
30321
30358
|
...dataBase.status,
|
|
@@ -30348,7 +30385,7 @@ const dataStates = {
|
|
|
30348
30385
|
...dataBase,
|
|
30349
30386
|
logo: "https://cdn.eclass.com/img/productos/logos/logo-utec-square.jpg",
|
|
30350
30387
|
background: "https://cdn.eclass.com/img/cursos/default1.png",
|
|
30351
|
-
id:
|
|
30388
|
+
id: 4,
|
|
30352
30389
|
hasFinanzeFreezed: false,
|
|
30353
30390
|
status: {
|
|
30354
30391
|
...dataBase.status,
|
|
@@ -30380,7 +30417,7 @@ const dataStates = {
|
|
|
30380
30417
|
},
|
|
30381
30418
|
preInscripcion2: {
|
|
30382
30419
|
...dataBase,
|
|
30383
|
-
id:
|
|
30420
|
+
id: 5,
|
|
30384
30421
|
hasFinanzeFreezed: false,
|
|
30385
30422
|
logo: "",
|
|
30386
30423
|
status: {
|
|
@@ -30414,7 +30451,7 @@ const dataStates = {
|
|
|
30414
30451
|
inscripcion: {
|
|
30415
30452
|
...dataBase,
|
|
30416
30453
|
background: "https://cdn.eclass.com/img/cursos/default2.png",
|
|
30417
|
-
id:
|
|
30454
|
+
id: 6,
|
|
30418
30455
|
hasFinanzeFreezed: false,
|
|
30419
30456
|
status: {
|
|
30420
30457
|
...dataBase.status,
|
|
@@ -30445,7 +30482,7 @@ const dataStates = {
|
|
|
30445
30482
|
},
|
|
30446
30483
|
inscripcion2: {
|
|
30447
30484
|
...dataBase,
|
|
30448
|
-
id:
|
|
30485
|
+
id: 7,
|
|
30449
30486
|
hasFinanzeFreezed: false,
|
|
30450
30487
|
status: {
|
|
30451
30488
|
...dataBase.status,
|
|
@@ -30480,7 +30517,7 @@ const dataStates = {
|
|
|
30480
30517
|
},
|
|
30481
30518
|
noDisponible: {
|
|
30482
30519
|
...dataBase,
|
|
30483
|
-
id:
|
|
30520
|
+
id: 8,
|
|
30484
30521
|
hasFinanzeFreezed: false,
|
|
30485
30522
|
logo: "",
|
|
30486
30523
|
background: "https://cdn.eclass.com/img/cursos/default2.png",
|
|
@@ -30517,7 +30554,7 @@ const dataStates = {
|
|
|
30517
30554
|
...dataBase,
|
|
30518
30555
|
background: "https://cdn.eclass.com/img/cursos/default3.png",
|
|
30519
30556
|
logo: "https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",
|
|
30520
|
-
id:
|
|
30557
|
+
id: 9,
|
|
30521
30558
|
hasFinanzeFreezed: false,
|
|
30522
30559
|
status: {
|
|
30523
30560
|
...dataBase.status,
|
|
@@ -30551,7 +30588,7 @@ const dataStates = {
|
|
|
30551
30588
|
...dataBase,
|
|
30552
30589
|
background: "https://cdn.eclass.com/img/cursos/default3.png",
|
|
30553
30590
|
logo: "https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",
|
|
30554
|
-
id:
|
|
30591
|
+
id: 10,
|
|
30555
30592
|
hasFinanzeFreezed: false,
|
|
30556
30593
|
Profile: {
|
|
30557
30594
|
id: 1,
|
|
@@ -30587,7 +30624,7 @@ const dataStates = {
|
|
|
30587
30624
|
},
|
|
30588
30625
|
activado: {
|
|
30589
30626
|
...dataBase,
|
|
30590
|
-
id:
|
|
30627
|
+
id: 11,
|
|
30591
30628
|
hasFinanzeFreezed: false,
|
|
30592
30629
|
status: {
|
|
30593
30630
|
...dataBase.status,
|
|
@@ -30627,7 +30664,7 @@ const dataStates = {
|
|
|
30627
30664
|
},
|
|
30628
30665
|
sinEstudiar: {
|
|
30629
30666
|
...dataBase,
|
|
30630
|
-
id:
|
|
30667
|
+
id: 12,
|
|
30631
30668
|
hasFinanzeFreezed: false,
|
|
30632
30669
|
logo: "",
|
|
30633
30670
|
status: {
|
|
@@ -30668,7 +30705,7 @@ const dataStates = {
|
|
|
30668
30705
|
},
|
|
30669
30706
|
sinEstudiar2: {
|
|
30670
30707
|
...dataBase,
|
|
30671
|
-
id:
|
|
30708
|
+
id: 13,
|
|
30672
30709
|
hasFinanzeFreezed: false,
|
|
30673
30710
|
background: "https://cdn.eclass.com/img/cursos/default2.png",
|
|
30674
30711
|
status: {
|
|
@@ -30709,7 +30746,7 @@ const dataStates = {
|
|
|
30709
30746
|
},
|
|
30710
30747
|
sinEstudiar3: {
|
|
30711
30748
|
...dataBase,
|
|
30712
|
-
id:
|
|
30749
|
+
id: 14,
|
|
30713
30750
|
hasFinanzeFreezed: false,
|
|
30714
30751
|
status: {
|
|
30715
30752
|
...dataBase.status,
|
|
@@ -30750,7 +30787,7 @@ const dataStates = {
|
|
|
30750
30787
|
sinEstudiar4: {
|
|
30751
30788
|
...dataBase,
|
|
30752
30789
|
logo: "https://cdn.eclass.com/img/productos/logos/logo-uandes-square.jpg",
|
|
30753
|
-
id:
|
|
30790
|
+
id: 15,
|
|
30754
30791
|
hasFinanzeFreezed: false,
|
|
30755
30792
|
status: {
|
|
30756
30793
|
...dataBase.status,
|
|
@@ -30790,7 +30827,7 @@ const dataStates = {
|
|
|
30790
30827
|
},
|
|
30791
30828
|
continuar: {
|
|
30792
30829
|
...dataBase,
|
|
30793
|
-
id:
|
|
30830
|
+
id: 16,
|
|
30794
30831
|
hasFinanzeFreezed: true,
|
|
30795
30832
|
status: {
|
|
30796
30833
|
...dataBase.status,
|
|
@@ -30831,7 +30868,7 @@ const dataStates = {
|
|
|
30831
30868
|
},
|
|
30832
30869
|
continuar2: {
|
|
30833
30870
|
...dataBase,
|
|
30834
|
-
id:
|
|
30871
|
+
id: 17,
|
|
30835
30872
|
hasFinanzeFreezed: false,
|
|
30836
30873
|
status: {
|
|
30837
30874
|
...dataBase.status,
|
|
@@ -30871,7 +30908,7 @@ const dataStates = {
|
|
|
30871
30908
|
pendiente: {
|
|
30872
30909
|
...dataBase,
|
|
30873
30910
|
background: "https://cdn.eclass.com/img/cursos/default3.png",
|
|
30874
|
-
id:
|
|
30911
|
+
id: 18,
|
|
30875
30912
|
hasFinanzeFreezed: false,
|
|
30876
30913
|
status: {
|
|
30877
30914
|
...dataBase.status,
|
|
@@ -30908,7 +30945,7 @@ const dataStates = {
|
|
|
30908
30945
|
},
|
|
30909
30946
|
terminado: {
|
|
30910
30947
|
...dataBase,
|
|
30911
|
-
id:
|
|
30948
|
+
id: 19,
|
|
30912
30949
|
hasFinanzeFreezed: false,
|
|
30913
30950
|
status: {
|
|
30914
30951
|
...dataBase.status,
|
|
@@ -30948,7 +30985,7 @@ const dataStates = {
|
|
|
30948
30985
|
terminado2: {
|
|
30949
30986
|
...dataBase,
|
|
30950
30987
|
logo: "https://cdn.eclass.com/img/productos/logos/logo-eclass-academy-square.jpg",
|
|
30951
|
-
id:
|
|
30988
|
+
id: 20,
|
|
30952
30989
|
hasFinanzeFreezed: false,
|
|
30953
30990
|
Profile: {
|
|
30954
30991
|
id: 1,
|
|
@@ -30991,7 +31028,7 @@ const dataStates = {
|
|
|
30991
31028
|
},
|
|
30992
31029
|
terminado3: {
|
|
30993
31030
|
...dataBase,
|
|
30994
|
-
id:
|
|
31031
|
+
id: 21,
|
|
30995
31032
|
hasFinanzeFreezed: false,
|
|
30996
31033
|
logo: "",
|
|
30997
31034
|
status: {
|
|
@@ -31026,6 +31063,47 @@ const dataStates = {
|
|
|
31026
31063
|
text: "Ir a mi curso"
|
|
31027
31064
|
},
|
|
31028
31065
|
labels: []
|
|
31066
|
+
},
|
|
31067
|
+
proximamente: {
|
|
31068
|
+
...dataBase,
|
|
31069
|
+
id: 22,
|
|
31070
|
+
hasFinanzeFreezed: false,
|
|
31071
|
+
status: {
|
|
31072
|
+
...dataBase.status,
|
|
31073
|
+
id: 3,
|
|
31074
|
+
name: "inscripcion"
|
|
31075
|
+
},
|
|
31076
|
+
progress: {
|
|
31077
|
+
...dataBase.progress,
|
|
31078
|
+
label: "Tu curso iniciara el Lunes 16 de Enero de 2023",
|
|
31079
|
+
icon: "schedule"
|
|
31080
|
+
},
|
|
31081
|
+
dateStatus: {
|
|
31082
|
+
...dataBase.dateStatus,
|
|
31083
|
+
hasDates: true
|
|
31084
|
+
},
|
|
31085
|
+
information: [
|
|
31086
|
+
{
|
|
31087
|
+
icon: "certificate",
|
|
31088
|
+
text: "Certificado por ACHS",
|
|
31089
|
+
href: ""
|
|
31090
|
+
}
|
|
31091
|
+
],
|
|
31092
|
+
action: {
|
|
31093
|
+
...dataBase.action,
|
|
31094
|
+
text: "Ver informacion del curso",
|
|
31095
|
+
targetBlank: true
|
|
31096
|
+
},
|
|
31097
|
+
soonCourse: {
|
|
31098
|
+
show: true,
|
|
31099
|
+
text: "Pr\xF3ximamente"
|
|
31100
|
+
},
|
|
31101
|
+
labels: [
|
|
31102
|
+
{
|
|
31103
|
+
id: "OBLIGATORY",
|
|
31104
|
+
text: "Obligatorio"
|
|
31105
|
+
}
|
|
31106
|
+
]
|
|
31029
31107
|
}
|
|
31030
31108
|
};
|
|
31031
31109
|
const dataFake = Object.keys(dataStates).map((key) => dataStates[key]);
|
|
@@ -32634,6 +32712,8 @@ const Icons = ({
|
|
|
32634
32712
|
return /* @__PURE__ */ jsx(Mp4, {});
|
|
32635
32713
|
case "mkv":
|
|
32636
32714
|
return /* @__PURE__ */ jsx(Mkv, {});
|
|
32715
|
+
case "url":
|
|
32716
|
+
return /* @__PURE__ */ jsx(Url, {});
|
|
32637
32717
|
default:
|
|
32638
32718
|
return null;
|
|
32639
32719
|
}
|
|
@@ -33294,6 +33374,26 @@ const Xlsx = () => {
|
|
|
33294
33374
|
})]
|
|
33295
33375
|
});
|
|
33296
33376
|
};
|
|
33377
|
+
const Url = () => {
|
|
33378
|
+
const id2 = `clip${uniqueId()}`;
|
|
33379
|
+
return /* @__PURE__ */ jsx(Icon, {
|
|
33380
|
+
width: "33px",
|
|
33381
|
+
height: "32px",
|
|
33382
|
+
viewBox: "0 0 33 32",
|
|
33383
|
+
fill: "none",
|
|
33384
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33385
|
+
children: /* @__PURE__ */ jsxs("g", {
|
|
33386
|
+
clipPath: `url(#${id2})`,
|
|
33387
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
33388
|
+
d: "M18.119 10.138L15.878 12.378C15.818 12.439 15.778 12.508 15.72 12.571C16.7848 12.7178 17.7731 13.2067 18.536 13.964C19.472 14.9028 19.9976 16.1743 19.9976 17.5C19.9976 18.8257 19.472 20.0972 18.536 21.036L13.036 26.536C12.0982 27.4738 10.8262 28.0007 9.49996 28.0007C8.1737 28.0007 6.90177 27.4738 5.96396 26.536C5.02616 25.5982 4.4993 24.3263 4.4993 23C4.4993 21.6737 5.02616 20.4018 5.96396 19.464L8.34896 17.079C8.00322 15.7711 7.92499 14.4069 8.11896 13.068L3.84296 17.343C2.34263 18.8433 1.49976 20.8782 1.49976 23C1.49976 25.1218 2.34263 27.1567 3.84296 28.657C5.34329 30.1573 7.37818 31.0002 9.49996 31.0002C11.6217 31.0002 13.6566 30.1573 15.157 28.657L20.657 23.157C21.5848 22.2315 22.2707 21.092 22.6543 19.8389C23.0379 18.5858 23.1074 17.2576 22.8566 15.9713C22.6059 14.685 22.0426 13.4802 21.2164 12.4629C20.3902 11.4456 19.3265 10.6472 18.119 10.138Z",
|
|
33389
|
+
fill: "#B0CFE0"
|
|
33390
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
33391
|
+
d: "M17.8429 3.34301L12.3429 8.84301C11.4151 9.76851 10.7292 10.908 10.3456 12.1611C9.96196 13.4142 9.89248 14.7424 10.1432 16.0287C10.394 17.315 10.9573 18.5199 11.7835 19.5371C12.6097 20.5544 13.6734 21.3528 14.8809 21.862L17.1219 19.622C17.1819 19.561 17.2289 19.493 17.2839 19.429C16.2175 19.2834 15.2276 18.7944 14.4639 18.036C13.5279 17.0972 13.0023 15.8257 13.0023 14.5C13.0023 13.1743 13.5279 11.9028 14.4639 10.964L19.9639 5.46401C20.9017 4.5262 22.1737 3.99935 23.4999 3.99935C24.1566 3.99935 24.8069 4.12869 25.4136 4.38C26.0203 4.63131 26.5716 4.99965 27.0359 5.46401C27.5003 5.92836 27.8686 6.47963 28.1199 7.08634C28.3712 7.69305 28.5006 8.34331 28.5006 9.00001C28.5006 9.6567 28.3712 10.307 28.1199 10.9137C27.8686 11.5204 27.5003 12.0717 27.0359 12.536L24.6529 14.918C25 16.2218 25.0819 17.582 24.8939 18.918L29.1569 14.655C30.6293 13.149 31.4485 11.123 31.4365 9.01685C31.4245 6.91066 30.5824 4.89416 29.093 3.40496C27.6035 1.91577 25.5869 1.07404 23.4807 1.06244C21.3745 1.05084 19.3487 1.87031 17.8429 3.34301Z",
|
|
33392
|
+
fill: "#B0CFE0"
|
|
33393
|
+
})]
|
|
33394
|
+
})
|
|
33395
|
+
});
|
|
33396
|
+
};
|
|
33297
33397
|
const Resources = ({
|
|
33298
33398
|
id: id2,
|
|
33299
33399
|
resourceType,
|
|
@@ -33365,7 +33465,9 @@ const Resources = ({
|
|
|
33365
33465
|
gap: "8px",
|
|
33366
33466
|
display: "flex",
|
|
33367
33467
|
m: "0px",
|
|
33368
|
-
children: [/* @__PURE__ */ jsx(
|
|
33468
|
+
children: [resourceType === "url" ? /* @__PURE__ */ jsx(DiagonalArrow, {
|
|
33469
|
+
color: vars("colors-main-deepSkyBlue")
|
|
33470
|
+
}) : /* @__PURE__ */ jsx(Download, {
|
|
33369
33471
|
color: vars("colors-main-deepSkyBlue")
|
|
33370
33472
|
}), resourceTextDownload]
|
|
33371
33473
|
})
|