@eclass/ui-kit 1.7.6 → 1.8.1
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/eclass-ui-kit.es.js
CHANGED
|
@@ -26639,7 +26639,7 @@ function Section() {
|
|
|
26639
26639
|
p: "0 .9375rem",
|
|
26640
26640
|
children: [(dateStatus == null ? void 0 : dateStatus.hasDates) && /* @__PURE__ */ jsxs(HStack, {
|
|
26641
26641
|
direction: "row",
|
|
26642
|
-
divider: dateStatus.init !== void 0 && dateStatus.init.length > 0 && dateStatus.end !== void 0 && dateStatus.end.length > 0 ? /* @__PURE__ */ jsx(Box, {
|
|
26642
|
+
divider: dateStatus.init !== void 0 && dateStatus.init.length > 0 && dateStatus.end !== void 0 && progress2.icon !== null && dateStatus.end.length > 0 ? /* @__PURE__ */ jsx(Box, {
|
|
26643
26643
|
h: ".5rem",
|
|
26644
26644
|
w: "1px",
|
|
26645
26645
|
bg: vars("colors-neutral-silverSand"),
|
|
@@ -26792,18 +26792,64 @@ const dataStates = {
|
|
|
26792
26792
|
dateStatus: __spreadProps(__spreadValues({}, dataBase.dateStatus), {
|
|
26793
26793
|
hasDates: false
|
|
26794
26794
|
}),
|
|
26795
|
-
information:
|
|
26795
|
+
information: null,
|
|
26796
|
+
action: __spreadProps(__spreadValues({}, dataBase.action), {
|
|
26797
|
+
href: "#",
|
|
26798
|
+
text: "Ver informaci\xF3n del curso"
|
|
26799
|
+
}),
|
|
26800
|
+
labels: []
|
|
26801
|
+
}),
|
|
26802
|
+
inscripcionFutura: __spreadProps(__spreadValues({}, dataBase), {
|
|
26803
|
+
id: 1,
|
|
26804
|
+
hasFinanzeFreezed: false,
|
|
26805
|
+
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
26806
|
+
id: 1,
|
|
26807
|
+
name: "noHabilitado"
|
|
26808
|
+
}),
|
|
26809
|
+
progress: __spreadProps(__spreadValues({}, dataBase.progress), {
|
|
26810
|
+
label: "Podr\xE1s inscribirte a partir del 31 de marzo de 2022",
|
|
26811
|
+
icon: "circularInformation"
|
|
26812
|
+
}),
|
|
26813
|
+
dateStatus: __spreadProps(__spreadValues({}, dataBase.dateStatus), {
|
|
26814
|
+
hasDates: false
|
|
26815
|
+
}),
|
|
26816
|
+
information: null,
|
|
26817
|
+
action: __spreadProps(__spreadValues({}, dataBase.action), {
|
|
26818
|
+
href: "#",
|
|
26819
|
+
text: "Ver informaci\xF3n del curso"
|
|
26820
|
+
}),
|
|
26821
|
+
labels: [
|
|
26796
26822
|
{
|
|
26797
|
-
|
|
26798
|
-
text: "
|
|
26799
|
-
href: null
|
|
26823
|
+
id: "NEW",
|
|
26824
|
+
text: "Nuevo"
|
|
26800
26825
|
}
|
|
26801
|
-
]
|
|
26826
|
+
]
|
|
26827
|
+
}),
|
|
26828
|
+
inscripcionFinalizo: __spreadProps(__spreadValues({}, dataBase), {
|
|
26829
|
+
id: 1,
|
|
26830
|
+
hasFinanzeFreezed: false,
|
|
26831
|
+
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
26832
|
+
id: 1,
|
|
26833
|
+
name: "noHabilitado"
|
|
26834
|
+
}),
|
|
26835
|
+
progress: __spreadProps(__spreadValues({}, dataBase.progress), {
|
|
26836
|
+
label: "El per\xEDodo de inscripci\xF3n finaliz\xF3 el 31 de marzo de 2022",
|
|
26837
|
+
icon: "circularInformation"
|
|
26838
|
+
}),
|
|
26839
|
+
dateStatus: __spreadProps(__spreadValues({}, dataBase.dateStatus), {
|
|
26840
|
+
hasDates: false
|
|
26841
|
+
}),
|
|
26842
|
+
information: null,
|
|
26802
26843
|
action: __spreadProps(__spreadValues({}, dataBase.action), {
|
|
26803
26844
|
href: "#",
|
|
26804
26845
|
text: "Ver informaci\xF3n del curso"
|
|
26805
26846
|
}),
|
|
26806
|
-
labels: [
|
|
26847
|
+
labels: [
|
|
26848
|
+
{
|
|
26849
|
+
id: "NEW",
|
|
26850
|
+
text: "Nuevo"
|
|
26851
|
+
}
|
|
26852
|
+
]
|
|
26807
26853
|
}),
|
|
26808
26854
|
preInscripcion: __spreadProps(__spreadValues({}, dataBase), {
|
|
26809
26855
|
logo: "https://cdn.eclass.com/img/productos/logos/logo-utec-square.jpg",
|
|
@@ -26843,7 +26889,7 @@ const dataStates = {
|
|
|
26843
26889
|
name: "preInscripcion"
|
|
26844
26890
|
}),
|
|
26845
26891
|
progress: __spreadProps(__spreadValues({}, dataBase.progress), {
|
|
26846
|
-
label: "
|
|
26892
|
+
label: "Estamos procesando tu solicitud de inscripci\xF3n",
|
|
26847
26893
|
icon: "circularInformation"
|
|
26848
26894
|
}),
|
|
26849
26895
|
dateStatus: __spreadProps(__spreadValues({}, dataBase.dateStatus), {
|
|
@@ -27278,7 +27324,7 @@ const dataStates = {
|
|
|
27278
27324
|
name: "pendiente"
|
|
27279
27325
|
}),
|
|
27280
27326
|
progress: __spreadProps(__spreadValues({}, dataBase.progress), {
|
|
27281
|
-
label: "
|
|
27327
|
+
label: "\xA1Curso finalizado! Estamos calculando tu promedio final",
|
|
27282
27328
|
icon: "circularInformation"
|
|
27283
27329
|
}),
|
|
27284
27330
|
dateStatus: {
|
|
@@ -27307,11 +27353,11 @@ const dataStates = {
|
|
|
27307
27353
|
id: 16,
|
|
27308
27354
|
hasFinanzeFreezed: false,
|
|
27309
27355
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
27310
|
-
id:
|
|
27311
|
-
name: "
|
|
27356
|
+
id: 7,
|
|
27357
|
+
name: "QUALIFIED"
|
|
27312
27358
|
}),
|
|
27313
27359
|
progress: __spreadProps(__spreadValues({}, dataBase.progress), {
|
|
27314
|
-
label: "Curso
|
|
27360
|
+
label: "Curso aprobado con nota",
|
|
27315
27361
|
icon: "circularCheck",
|
|
27316
27362
|
isApproved: true,
|
|
27317
27363
|
finalGrade: "6,5"
|
|
@@ -27347,11 +27393,11 @@ const dataStates = {
|
|
|
27347
27393
|
name: "Administrador"
|
|
27348
27394
|
},
|
|
27349
27395
|
status: __spreadProps(__spreadValues({}, dataBase.status), {
|
|
27350
|
-
id:
|
|
27351
|
-
name: "
|
|
27396
|
+
id: 7,
|
|
27397
|
+
name: "QUALIFIED"
|
|
27352
27398
|
}),
|
|
27353
27399
|
progress: __spreadProps(__spreadValues({}, dataBase.progress), {
|
|
27354
|
-
label: "Curso
|
|
27400
|
+
label: "Curso reprobado con nota",
|
|
27355
27401
|
icon: "circularCheck",
|
|
27356
27402
|
isApproved: false,
|
|
27357
27403
|
finalGrade: "3,5"
|
|
@@ -27438,8 +27484,8 @@ function PaymentModal({
|
|
|
27438
27484
|
};
|
|
27439
27485
|
function OverlayTwo() {
|
|
27440
27486
|
return /* @__PURE__ */ jsx(ModalOverlay, {
|
|
27441
|
-
bg: "#
|
|
27442
|
-
opacity: ".
|
|
27487
|
+
bg: "#2F2F2F",
|
|
27488
|
+
opacity: "0.32 !important",
|
|
27443
27489
|
backdropBlur: "2px"
|
|
27444
27490
|
});
|
|
27445
27491
|
}
|
|
@@ -27535,7 +27581,7 @@ function Footer({
|
|
|
27535
27581
|
borderTop: "1px solid",
|
|
27536
27582
|
borderTopColor: vars("colors-neutral-platinum"),
|
|
27537
27583
|
children: [isCourseActive(action.enabled, Profile2 == null ? void 0 : Profile2.id) ? /* @__PURE__ */ jsxs(Fragment, {
|
|
27538
|
-
children: [hasFinanzeFreezed ? /* @__PURE__ */ jsx(
|
|
27584
|
+
children: [hasFinanzeFreezed ? /* @__PURE__ */ jsx(Box, {
|
|
27539
27585
|
color: vars("colors-main-deepSkyBlue"),
|
|
27540
27586
|
backgroundColor: "transparent",
|
|
27541
27587
|
fontWeight: "500",
|
|
@@ -27549,13 +27595,11 @@ function Footer({
|
|
|
27549
27595
|
_active: cssButton,
|
|
27550
27596
|
onClick: () => handleClick(),
|
|
27551
27597
|
children: action.text
|
|
27552
|
-
}) : /* @__PURE__ */ jsx(
|
|
27553
|
-
href: action.href,
|
|
27598
|
+
}) : /* @__PURE__ */ jsx(Text, {
|
|
27554
27599
|
color: vars("colors-main-deepSkyBlue"),
|
|
27555
27600
|
fontWeight: "500",
|
|
27556
27601
|
mr: action.hasIcon ? "1.5rem" : "0",
|
|
27557
27602
|
lineHeight: "1.172rem",
|
|
27558
|
-
isExternal: action.targetBlank,
|
|
27559
27603
|
children: action.text
|
|
27560
27604
|
}), action.hasIcon && /* @__PURE__ */ jsx(ArrowRight, {
|
|
27561
27605
|
color: vars("colors-main-deepSkyBlue")
|
|
@@ -27591,7 +27635,7 @@ function CourseBox({
|
|
|
27591
27635
|
data,
|
|
27592
27636
|
modalPaymentText
|
|
27593
27637
|
}) {
|
|
27594
|
-
var _a, _b, _c;
|
|
27638
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
27595
27639
|
const cssActive = {
|
|
27596
27640
|
boxShadow: `0 2px 7px 0 ${vars("colors-neutral-silverSand")}`
|
|
27597
27641
|
};
|
|
@@ -27614,7 +27658,10 @@ function CourseBox({
|
|
|
27614
27658
|
justify: "space-between",
|
|
27615
27659
|
h: "100%",
|
|
27616
27660
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
27617
|
-
children: [
|
|
27661
|
+
children: [!data.hasFinanzeFreezed && isCourseActive((_e = (_d = data.action) == null ? void 0 : _d.enabled) != null ? _e : false, (_f = data.Profile) == null ? void 0 : _f.id) && /* @__PURE__ */ jsx(LinkOverlay, {
|
|
27662
|
+
href: (_g = data.action) == null ? void 0 : _g.href,
|
|
27663
|
+
isExternal: (_h = data.action) == null ? void 0 : _h.targetBlank
|
|
27664
|
+
}), /* @__PURE__ */ jsx(Header, {}), /* @__PURE__ */ jsx(Section, {})]
|
|
27618
27665
|
}), /* @__PURE__ */ jsx(Footer, {
|
|
27619
27666
|
modalPaymentText
|
|
27620
27667
|
})]
|