@eclass/ui-kit 1.64.0 → 1.64.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 +56 -43
- 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 +3 -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),
|
|
@@ -11543,53 +11543,66 @@ const ShareAndReviewModal = ({
|
|
|
11543
11543
|
const StyledText = Text$1;
|
|
11544
11544
|
const StyledFlex = Flex;
|
|
11545
11545
|
const StyledImage = Image;
|
|
11546
|
+
const StyledLinkBox = LinkBox;
|
|
11547
|
+
const StyledLinkOverlay = LinkOverlay;
|
|
11546
11548
|
const SimpleCourseBox = ({
|
|
11547
|
-
img,
|
|
11548
11549
|
courseName,
|
|
11550
|
+
href,
|
|
11551
|
+
img,
|
|
11549
11552
|
icon,
|
|
11550
|
-
label
|
|
11553
|
+
label,
|
|
11554
|
+
noLink = false
|
|
11551
11555
|
}) => {
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
p: "16px 0",
|
|
11556
|
+
const link = noLink || !href || href === "" ? void 0 : href;
|
|
11557
|
+
return /* @__PURE__ */ jsx(StyledLinkBox, {
|
|
11558
|
+
p: "16px",
|
|
11556
11559
|
borderBottom: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
11557
|
-
|
|
11558
|
-
|
|
11560
|
+
_hover: {
|
|
11561
|
+
backgroundColor: link ? vars("colors-neutral-cultured2") : "none",
|
|
11562
|
+
cursor: link ? "pointer" : "default"
|
|
11563
|
+
},
|
|
11564
|
+
children: /* @__PURE__ */ jsxs(StyledLinkOverlay, {
|
|
11565
|
+
href: link,
|
|
11566
|
+
display: "flex",
|
|
11559
11567
|
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
|
-
|
|
11568
|
+
justifyContent: "space-between",
|
|
11569
|
+
children: [/* @__PURE__ */ jsxs(StyledFlex, {
|
|
11570
|
+
gap: "24px",
|
|
11571
|
+
alignItems: "center",
|
|
11572
|
+
children: [/* @__PURE__ */ jsx(StyledImage, {
|
|
11573
|
+
src: img,
|
|
11574
|
+
w: "150px",
|
|
11575
|
+
h: "74px",
|
|
11576
|
+
borderRadius: "10px"
|
|
11577
|
+
}), /* @__PURE__ */ jsxs(StyledFlex, {
|
|
11578
|
+
flexDirection: "column",
|
|
11579
|
+
gap: "8px",
|
|
11580
|
+
justifyContent: "center",
|
|
11581
|
+
children: [/* @__PURE__ */ jsx("strong", {
|
|
11582
|
+
children: courseName
|
|
11583
|
+
}), icon && label && /* @__PURE__ */ jsxs(StyledText, {
|
|
11584
|
+
m: "0",
|
|
11585
|
+
fontSize: "14px",
|
|
11586
|
+
lineHeight: "19px",
|
|
11587
|
+
display: "flex",
|
|
11588
|
+
gap: "10px",
|
|
11589
|
+
maxW: "395px",
|
|
11590
|
+
sx: {
|
|
11591
|
+
svg: {
|
|
11592
|
+
verticalAlign: "top"
|
|
11593
|
+
}
|
|
11594
|
+
},
|
|
11595
|
+
children: [/* @__PURE__ */ jsx(IconSelection, {
|
|
11596
|
+
type: icon
|
|
11597
|
+
}), " ", label]
|
|
11598
|
+
})]
|
|
11586
11599
|
})]
|
|
11600
|
+
}), link && /* @__PURE__ */ jsx(Box, {
|
|
11601
|
+
children: /* @__PURE__ */ jsx(ArrowRight, {
|
|
11602
|
+
color: "#60798E"
|
|
11603
|
+
})
|
|
11587
11604
|
})]
|
|
11588
|
-
})
|
|
11589
|
-
children: /* @__PURE__ */ jsx(ArrowRight, {
|
|
11590
|
-
color: "#60798E"
|
|
11591
|
-
})
|
|
11592
|
-
})]
|
|
11605
|
+
})
|
|
11593
11606
|
});
|
|
11594
11607
|
};
|
|
11595
11608
|
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 };
|