@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.
@@ -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
- return /* @__PURE__ */ jsxs(StyledFlex, {
11553
- alignItems: "center",
11554
- justifyContent: "space-between",
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
- children: [/* @__PURE__ */ jsxs(StyledFlex, {
11558
- gap: "24px",
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
- children: [/* @__PURE__ */ jsx(StyledImage, {
11561
- src: img,
11562
- w: "150px",
11563
- h: "74px",
11564
- borderRadius: "10px"
11565
- }), /* @__PURE__ */ jsxs(StyledFlex, {
11566
- flexDirection: "column",
11567
- gap: "8px",
11568
- justifyContent: "center",
11569
- children: [/* @__PURE__ */ jsx("strong", {
11570
- children: courseName
11571
- }), icon && label && /* @__PURE__ */ jsxs(StyledText, {
11572
- m: "0",
11573
- fontSize: "14px",
11574
- lineHeight: "19px",
11575
- display: "flex",
11576
- gap: "10px",
11577
- maxW: "395px",
11578
- sx: {
11579
- svg: {
11580
- verticalAlign: "top"
11581
- }
11582
- },
11583
- children: [/* @__PURE__ */ jsx(IconSelection, {
11584
- type: icon
11585
- }), " ", label]
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
- }), /* @__PURE__ */ jsx(Box, {
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 };