@eclass/ui-kit 1.64.0 → 1.64.2
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 +90 -55
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +7 -7
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/SimpleCourseBox/SimpleCourseBox.d.ts +6 -1
- package/dist/organisms/SimpleCourseBox/SimpleCourseBox.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -3566,8 +3566,8 @@ function BoxTraditional({
|
|
|
3566
3566
|
});
|
|
3567
3567
|
}
|
|
3568
3568
|
BoxTraditional.displayName = "BoxTraditional";
|
|
3569
|
-
const StyledLinkBox = LinkBox;
|
|
3570
|
-
const StyledLinkOverlay = LinkOverlay;
|
|
3569
|
+
const StyledLinkBox$1 = LinkBox;
|
|
3570
|
+
const StyledLinkOverlay$1 = LinkOverlay;
|
|
3571
3571
|
function WithRipples({
|
|
3572
3572
|
enabled,
|
|
3573
3573
|
children
|
|
@@ -3607,7 +3607,7 @@ function BoxImage({
|
|
|
3607
3607
|
};
|
|
3608
3608
|
return /* @__PURE__ */ jsx(WithRipples, {
|
|
3609
3609
|
enabled: isClickable,
|
|
3610
|
-
children: /* @__PURE__ */ jsxs(StyledLinkBox, {
|
|
3610
|
+
children: /* @__PURE__ */ jsxs(StyledLinkBox$1, {
|
|
3611
3611
|
className: "CourseList-ImageBox",
|
|
3612
3612
|
_focusVisible: {
|
|
3613
3613
|
boxShadow: `0 0 0 3px ${vars("colors-alert-deepSkyBlue")} inset`
|
|
@@ -3637,7 +3637,7 @@ function BoxImage({
|
|
|
3637
3637
|
"aria-label": hasCustomClick ? title : void 0,
|
|
3638
3638
|
role: hasCustomClick ? "button" : void 0,
|
|
3639
3639
|
onKeyDown: hasCustomClick ? handleKeyDown : void 0,
|
|
3640
|
-
children: [(hasCustomClick || !(data == null ? void 0 : data.hasFinanzeFreezed)) && isClickable && (hasHref || hasCustomClick) && /* @__PURE__ */ jsx(StyledLinkOverlay, {
|
|
3640
|
+
children: [(hasCustomClick || !(data == null ? void 0 : data.hasFinanzeFreezed)) && isClickable && (hasHref || hasCustomClick) && /* @__PURE__ */ jsx(StyledLinkOverlay$1, {
|
|
3641
3641
|
"data-testid": "course-link-overlay",
|
|
3642
3642
|
href: hasHref ? (_e = data == null ? void 0 : data.action) == null ? void 0 : _e.href : void 0,
|
|
3643
3643
|
isExternal: hasHref && ((_f = data == null ? void 0 : data.action) == null ? void 0 : _f.targetBlank),
|
|
@@ -9606,7 +9606,7 @@ const StandardBackground = ({
|
|
|
9606
9606
|
})]
|
|
9607
9607
|
});
|
|
9608
9608
|
};
|
|
9609
|
-
const StyledText$
|
|
9609
|
+
const StyledText$2 = Text$1;
|
|
9610
9610
|
const StyledLink$1 = Link;
|
|
9611
9611
|
const Resources = ({
|
|
9612
9612
|
id,
|
|
@@ -9688,7 +9688,7 @@ const Resources = ({
|
|
|
9688
9688
|
gap: "8px",
|
|
9689
9689
|
padding: "1rem",
|
|
9690
9690
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
9691
|
-
children: /* @__PURE__ */ jsx(StyledText$
|
|
9691
|
+
children: /* @__PURE__ */ jsx(StyledText$2, {
|
|
9692
9692
|
fontFamily: "Roboto",
|
|
9693
9693
|
fontWeight: "700",
|
|
9694
9694
|
lineHeight: "21px",
|
|
@@ -9698,7 +9698,7 @@ const Resources = ({
|
|
|
9698
9698
|
children: resourceTitle
|
|
9699
9699
|
})
|
|
9700
9700
|
}), /* @__PURE__ */ jsx(Box, {
|
|
9701
|
-
children: /* @__PURE__ */ jsx(StyledText$
|
|
9701
|
+
children: /* @__PURE__ */ jsx(StyledText$2, {
|
|
9702
9702
|
fontFamily: "Roboto",
|
|
9703
9703
|
fontWeight: "400",
|
|
9704
9704
|
lineHeight: "14px",
|
|
@@ -9711,7 +9711,7 @@ const Resources = ({
|
|
|
9711
9711
|
display: "flex",
|
|
9712
9712
|
alignItems: "center",
|
|
9713
9713
|
justifyContent: "center",
|
|
9714
|
-
children: /* @__PURE__ */ jsxs(StyledText$
|
|
9714
|
+
children: /* @__PURE__ */ jsxs(StyledText$2, {
|
|
9715
9715
|
fontFamily: "Roboto",
|
|
9716
9716
|
fontWeight: "500",
|
|
9717
9717
|
fontSize: "14px",
|
|
@@ -11328,7 +11328,7 @@ function CustomCloseIcon(props) {
|
|
|
11328
11328
|
}
|
|
11329
11329
|
const StyledImage$2 = Image;
|
|
11330
11330
|
const StyledFlex$3 = Flex;
|
|
11331
|
-
const StyledText$
|
|
11331
|
+
const StyledText$1 = Text$1;
|
|
11332
11332
|
const StyledDivider = Divider;
|
|
11333
11333
|
const StyledLink = Link;
|
|
11334
11334
|
const InitialShareContent = ({
|
|
@@ -11348,14 +11348,14 @@ const InitialShareContent = ({
|
|
|
11348
11348
|
}), /* @__PURE__ */ jsxs(StyledFlex$3, {
|
|
11349
11349
|
flexDir: "column",
|
|
11350
11350
|
gap: "8px",
|
|
11351
|
-
children: [/* @__PURE__ */ jsx(StyledText$
|
|
11351
|
+
children: [/* @__PURE__ */ jsx(StyledText$1, {
|
|
11352
11352
|
as: "h6",
|
|
11353
11353
|
fontSize: "xl",
|
|
11354
11354
|
fontWeight: "bold",
|
|
11355
11355
|
color: vars("colors-neutral-darkCharcoal"),
|
|
11356
11356
|
m: "0",
|
|
11357
11357
|
children: "\xA1Qu\xE9 bueno que quieras compartirlo!"
|
|
11358
|
-
}), /* @__PURE__ */ jsx(StyledText$
|
|
11358
|
+
}), /* @__PURE__ */ jsx(StyledText$1, {
|
|
11359
11359
|
fontSize: "md",
|
|
11360
11360
|
color: vars("colors-neutral-darkCharcoal"),
|
|
11361
11361
|
mb: "0",
|
|
@@ -11372,7 +11372,7 @@ const InitialShareContent = ({
|
|
|
11372
11372
|
children: [/* @__PURE__ */ jsx(StyledDivider, {
|
|
11373
11373
|
borderColor: vars("colors-neutral-platinum"),
|
|
11374
11374
|
m: "0"
|
|
11375
|
-
}), /* @__PURE__ */ jsx(StyledText$
|
|
11375
|
+
}), /* @__PURE__ */ jsx(StyledText$1, {
|
|
11376
11376
|
fontSize: "sm",
|
|
11377
11377
|
color: vars("colors-neutral-gray"),
|
|
11378
11378
|
whiteSpace: "nowrap",
|
|
@@ -11382,7 +11382,7 @@ const InitialShareContent = ({
|
|
|
11382
11382
|
borderColor: vars("colors-neutral-platinum"),
|
|
11383
11383
|
m: "0"
|
|
11384
11384
|
})]
|
|
11385
|
-
}), /* @__PURE__ */ jsx(StyledText$
|
|
11385
|
+
}), /* @__PURE__ */ jsx(StyledText$1, {
|
|
11386
11386
|
as: "p",
|
|
11387
11387
|
fontSize: "md",
|
|
11388
11388
|
fontWeight: "700",
|
|
@@ -11413,7 +11413,7 @@ const InitialShareContent = ({
|
|
|
11413
11413
|
};
|
|
11414
11414
|
const StyledImage$1 = Image;
|
|
11415
11415
|
const StyledFlex$2 = Flex;
|
|
11416
|
-
const StyledText
|
|
11416
|
+
const StyledText = Text$1;
|
|
11417
11417
|
const AfterShareContent = ({
|
|
11418
11418
|
onClose,
|
|
11419
11419
|
onLeaveReview
|
|
@@ -11437,14 +11437,14 @@ const AfterShareContent = ({
|
|
|
11437
11437
|
h: "70px",
|
|
11438
11438
|
alt: "cotill\xF3n de celebraci\xF3n",
|
|
11439
11439
|
src: "https://cdn.eclass.com/vendors/apps/front_v8/assets/Common/celebration.webp"
|
|
11440
|
-
}), /* @__PURE__ */ jsx(StyledText
|
|
11440
|
+
}), /* @__PURE__ */ jsx(StyledText, {
|
|
11441
11441
|
as: "h6",
|
|
11442
11442
|
fontSize: "xl",
|
|
11443
11443
|
fontWeight: "bold",
|
|
11444
11444
|
color: vars("colors-neutral-darkCharcoal"),
|
|
11445
11445
|
m: "0",
|
|
11446
11446
|
children: "\xBFYa lo compartiste en LinkedIn?"
|
|
11447
|
-
}), /* @__PURE__ */ jsxs(StyledText
|
|
11447
|
+
}), /* @__PURE__ */ jsxs(StyledText, {
|
|
11448
11448
|
fontSize: "md",
|
|
11449
11449
|
fontWeight: "400",
|
|
11450
11450
|
color: vars("colors-neutral-darkCharcoal"),
|
|
@@ -11540,56 +11540,91 @@ const ShareAndReviewModal = ({
|
|
|
11540
11540
|
})]
|
|
11541
11541
|
});
|
|
11542
11542
|
};
|
|
11543
|
-
const StyledText = Text$1;
|
|
11544
11543
|
const StyledFlex = Flex;
|
|
11545
11544
|
const StyledImage = Image;
|
|
11545
|
+
const StyledLinkBox = LinkBox;
|
|
11546
|
+
const StyledLinkOverlay = LinkOverlay;
|
|
11546
11547
|
const SimpleCourseBox = ({
|
|
11547
|
-
img,
|
|
11548
11548
|
courseName,
|
|
11549
|
+
grade,
|
|
11550
|
+
href,
|
|
11551
|
+
img,
|
|
11549
11552
|
icon,
|
|
11550
|
-
|
|
11553
|
+
isApproved,
|
|
11554
|
+
label,
|
|
11555
|
+
isEnabled = true,
|
|
11556
|
+
noBorder = false
|
|
11551
11557
|
}) => {
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
justifyContent: "space-between",
|
|
11558
|
+
const link = !isEnabled || !href || href === "" ? void 0 : href;
|
|
11559
|
+
return /* @__PURE__ */ jsx(StyledLinkBox, {
|
|
11555
11560
|
p: "16px 0",
|
|
11556
|
-
borderBottom: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
11557
|
-
|
|
11561
|
+
borderBottom: noBorder ? "none" : `1px solid ${vars("colors-neutral-platinum")}`,
|
|
11562
|
+
_hover: {
|
|
11563
|
+
backgroundColor: link ? vars("colors-neutral-cultured2") : "none",
|
|
11564
|
+
cursor: link ? "pointer" : "default"
|
|
11565
|
+
},
|
|
11566
|
+
sx: {
|
|
11567
|
+
a: {
|
|
11568
|
+
textDecoration: "none",
|
|
11569
|
+
color: vars("colors-neutral-darkCharcoal")
|
|
11570
|
+
}
|
|
11571
|
+
},
|
|
11572
|
+
children: /* @__PURE__ */ jsxs(StyledLinkOverlay, {
|
|
11573
|
+
href: link,
|
|
11574
|
+
display: "flex",
|
|
11558
11575
|
gap: "24px",
|
|
11559
11576
|
alignItems: "center",
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11577
|
+
justifyContent: "space-between",
|
|
11578
|
+
pr: "8px",
|
|
11579
|
+
children: [/* @__PURE__ */ jsxs(StyledFlex, {
|
|
11580
|
+
gap: "24px",
|
|
11581
|
+
alignItems: "center",
|
|
11582
|
+
children: [/* @__PURE__ */ jsx(StyledImage, {
|
|
11583
|
+
src: img,
|
|
11584
|
+
w: "150px",
|
|
11585
|
+
h: "74px",
|
|
11586
|
+
borderRadius: "10px"
|
|
11587
|
+
}), /* @__PURE__ */ jsxs(StyledFlex, {
|
|
11588
|
+
flexDirection: "column",
|
|
11589
|
+
gap: "8px",
|
|
11590
|
+
justifyContent: "center",
|
|
11591
|
+
children: [/* @__PURE__ */ jsx("strong", {
|
|
11592
|
+
children: courseName
|
|
11593
|
+
}), icon && label && /* @__PURE__ */ jsxs(Box, {
|
|
11594
|
+
m: "0",
|
|
11595
|
+
fontSize: "14px",
|
|
11596
|
+
lineHeight: "19px",
|
|
11597
|
+
display: "flex",
|
|
11598
|
+
gap: "10px",
|
|
11599
|
+
maxW: "395px",
|
|
11600
|
+
sx: {
|
|
11601
|
+
svg: {
|
|
11602
|
+
verticalAlign: "top"
|
|
11603
|
+
}
|
|
11604
|
+
},
|
|
11605
|
+
children: [/* @__PURE__ */ jsx(IconSelection, {
|
|
11606
|
+
type: icon
|
|
11607
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
11608
|
+
children: label
|
|
11609
|
+
}), grade && /* @__PURE__ */ jsx(Box, {
|
|
11610
|
+
h: "17px",
|
|
11611
|
+
w: "34px",
|
|
11612
|
+
fontSize: "12px",
|
|
11613
|
+
fontWeight: "700",
|
|
11614
|
+
textAlign: "center",
|
|
11615
|
+
borderRadius: "5px",
|
|
11616
|
+
color: vars("colors-neutral-white"),
|
|
11617
|
+
bg: isApproved ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
|
|
11618
|
+
children: grade
|
|
11619
|
+
})]
|
|
11620
|
+
})]
|
|
11586
11621
|
})]
|
|
11622
|
+
}), isEnabled && link && /* @__PURE__ */ jsx(Box, {
|
|
11623
|
+
children: /* @__PURE__ */ jsx(ArrowRight, {
|
|
11624
|
+
color: "#60798E"
|
|
11625
|
+
})
|
|
11587
11626
|
})]
|
|
11588
|
-
})
|
|
11589
|
-
children: /* @__PURE__ */ jsx(ArrowRight, {
|
|
11590
|
-
color: "#60798E"
|
|
11591
|
-
})
|
|
11592
|
-
})]
|
|
11627
|
+
})
|
|
11593
11628
|
});
|
|
11594
11629
|
};
|
|
11595
11630
|
export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index$1 as Icons, Label, Modal, ModalAlert, ModalAlertButtons, ModalAlertNew, ModalButtons, ModalCard, ModalCardContent, ModalContent, ModalMultiple, ModalSimple, NavBarButton, NewTooltip, Progress, Resources, Ripples, ShareAndReviewModal, SimpleCourseBox, TinyAlert, UserDropdown, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
|