@eclass/ui-kit 1.64.1 → 1.64.3
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 +47 -23
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +1 -1
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Modals/Modal/Modal.d.ts.map +1 -1
- package/dist/organisms/SimpleCourseBox/SimpleCourseBox.d.ts +5 -2
- 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
|
@@ -7719,6 +7719,7 @@ const useModalConfig = ({
|
|
|
7719
7719
|
}
|
|
7720
7720
|
};
|
|
7721
7721
|
};
|
|
7722
|
+
const StyledModalContent$1 = ModalContent$1;
|
|
7722
7723
|
const uiKitModalIsDesktop = 641;
|
|
7723
7724
|
const ModalPadding = {
|
|
7724
7725
|
py: "32px",
|
|
@@ -7773,7 +7774,7 @@ const Modal = ({
|
|
|
7773
7774
|
}
|
|
7774
7775
|
}
|
|
7775
7776
|
},
|
|
7776
|
-
children: /* @__PURE__ */ jsx(
|
|
7777
|
+
children: /* @__PURE__ */ jsx(StyledModalContent$1, {
|
|
7777
7778
|
...modalConfig.contentProps,
|
|
7778
7779
|
children: /* @__PURE__ */ jsx(ModalContentBase, {
|
|
7779
7780
|
fixedButtons,
|
|
@@ -9606,7 +9607,7 @@ const StandardBackground = ({
|
|
|
9606
9607
|
})]
|
|
9607
9608
|
});
|
|
9608
9609
|
};
|
|
9609
|
-
const StyledText$
|
|
9610
|
+
const StyledText$2 = Text$1;
|
|
9610
9611
|
const StyledLink$1 = Link;
|
|
9611
9612
|
const Resources = ({
|
|
9612
9613
|
id,
|
|
@@ -9688,7 +9689,7 @@ const Resources = ({
|
|
|
9688
9689
|
gap: "8px",
|
|
9689
9690
|
padding: "1rem",
|
|
9690
9691
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
9691
|
-
children: /* @__PURE__ */ jsx(StyledText$
|
|
9692
|
+
children: /* @__PURE__ */ jsx(StyledText$2, {
|
|
9692
9693
|
fontFamily: "Roboto",
|
|
9693
9694
|
fontWeight: "700",
|
|
9694
9695
|
lineHeight: "21px",
|
|
@@ -9698,7 +9699,7 @@ const Resources = ({
|
|
|
9698
9699
|
children: resourceTitle
|
|
9699
9700
|
})
|
|
9700
9701
|
}), /* @__PURE__ */ jsx(Box, {
|
|
9701
|
-
children: /* @__PURE__ */ jsx(StyledText$
|
|
9702
|
+
children: /* @__PURE__ */ jsx(StyledText$2, {
|
|
9702
9703
|
fontFamily: "Roboto",
|
|
9703
9704
|
fontWeight: "400",
|
|
9704
9705
|
lineHeight: "14px",
|
|
@@ -9711,7 +9712,7 @@ const Resources = ({
|
|
|
9711
9712
|
display: "flex",
|
|
9712
9713
|
alignItems: "center",
|
|
9713
9714
|
justifyContent: "center",
|
|
9714
|
-
children: /* @__PURE__ */ jsxs(StyledText$
|
|
9715
|
+
children: /* @__PURE__ */ jsxs(StyledText$2, {
|
|
9715
9716
|
fontFamily: "Roboto",
|
|
9716
9717
|
fontWeight: "500",
|
|
9717
9718
|
fontSize: "14px",
|
|
@@ -11328,7 +11329,7 @@ function CustomCloseIcon(props) {
|
|
|
11328
11329
|
}
|
|
11329
11330
|
const StyledImage$2 = Image;
|
|
11330
11331
|
const StyledFlex$3 = Flex;
|
|
11331
|
-
const StyledText$
|
|
11332
|
+
const StyledText$1 = Text$1;
|
|
11332
11333
|
const StyledDivider = Divider;
|
|
11333
11334
|
const StyledLink = Link;
|
|
11334
11335
|
const InitialShareContent = ({
|
|
@@ -11348,14 +11349,14 @@ const InitialShareContent = ({
|
|
|
11348
11349
|
}), /* @__PURE__ */ jsxs(StyledFlex$3, {
|
|
11349
11350
|
flexDir: "column",
|
|
11350
11351
|
gap: "8px",
|
|
11351
|
-
children: [/* @__PURE__ */ jsx(StyledText$
|
|
11352
|
+
children: [/* @__PURE__ */ jsx(StyledText$1, {
|
|
11352
11353
|
as: "h6",
|
|
11353
11354
|
fontSize: "xl",
|
|
11354
11355
|
fontWeight: "bold",
|
|
11355
11356
|
color: vars("colors-neutral-darkCharcoal"),
|
|
11356
11357
|
m: "0",
|
|
11357
11358
|
children: "\xA1Qu\xE9 bueno que quieras compartirlo!"
|
|
11358
|
-
}), /* @__PURE__ */ jsx(StyledText$
|
|
11359
|
+
}), /* @__PURE__ */ jsx(StyledText$1, {
|
|
11359
11360
|
fontSize: "md",
|
|
11360
11361
|
color: vars("colors-neutral-darkCharcoal"),
|
|
11361
11362
|
mb: "0",
|
|
@@ -11372,7 +11373,7 @@ const InitialShareContent = ({
|
|
|
11372
11373
|
children: [/* @__PURE__ */ jsx(StyledDivider, {
|
|
11373
11374
|
borderColor: vars("colors-neutral-platinum"),
|
|
11374
11375
|
m: "0"
|
|
11375
|
-
}), /* @__PURE__ */ jsx(StyledText$
|
|
11376
|
+
}), /* @__PURE__ */ jsx(StyledText$1, {
|
|
11376
11377
|
fontSize: "sm",
|
|
11377
11378
|
color: vars("colors-neutral-gray"),
|
|
11378
11379
|
whiteSpace: "nowrap",
|
|
@@ -11382,7 +11383,7 @@ const InitialShareContent = ({
|
|
|
11382
11383
|
borderColor: vars("colors-neutral-platinum"),
|
|
11383
11384
|
m: "0"
|
|
11384
11385
|
})]
|
|
11385
|
-
}), /* @__PURE__ */ jsx(StyledText$
|
|
11386
|
+
}), /* @__PURE__ */ jsx(StyledText$1, {
|
|
11386
11387
|
as: "p",
|
|
11387
11388
|
fontSize: "md",
|
|
11388
11389
|
fontWeight: "700",
|
|
@@ -11413,7 +11414,7 @@ const InitialShareContent = ({
|
|
|
11413
11414
|
};
|
|
11414
11415
|
const StyledImage$1 = Image;
|
|
11415
11416
|
const StyledFlex$2 = Flex;
|
|
11416
|
-
const StyledText
|
|
11417
|
+
const StyledText = Text$1;
|
|
11417
11418
|
const AfterShareContent = ({
|
|
11418
11419
|
onClose,
|
|
11419
11420
|
onLeaveReview
|
|
@@ -11437,14 +11438,14 @@ const AfterShareContent = ({
|
|
|
11437
11438
|
h: "70px",
|
|
11438
11439
|
alt: "cotill\xF3n de celebraci\xF3n",
|
|
11439
11440
|
src: "https://cdn.eclass.com/vendors/apps/front_v8/assets/Common/celebration.webp"
|
|
11440
|
-
}), /* @__PURE__ */ jsx(StyledText
|
|
11441
|
+
}), /* @__PURE__ */ jsx(StyledText, {
|
|
11441
11442
|
as: "h6",
|
|
11442
11443
|
fontSize: "xl",
|
|
11443
11444
|
fontWeight: "bold",
|
|
11444
11445
|
color: vars("colors-neutral-darkCharcoal"),
|
|
11445
11446
|
m: "0",
|
|
11446
11447
|
children: "\xBFYa lo compartiste en LinkedIn?"
|
|
11447
|
-
}), /* @__PURE__ */ jsxs(StyledText
|
|
11448
|
+
}), /* @__PURE__ */ jsxs(StyledText, {
|
|
11448
11449
|
fontSize: "md",
|
|
11449
11450
|
fontWeight: "400",
|
|
11450
11451
|
color: vars("colors-neutral-darkCharcoal"),
|
|
@@ -11540,35 +11541,46 @@ const ShareAndReviewModal = ({
|
|
|
11540
11541
|
})]
|
|
11541
11542
|
});
|
|
11542
11543
|
};
|
|
11543
|
-
const StyledText = Text$1;
|
|
11544
11544
|
const StyledFlex = Flex;
|
|
11545
11545
|
const StyledImage = Image;
|
|
11546
11546
|
const StyledLinkBox = LinkBox;
|
|
11547
11547
|
const StyledLinkOverlay = LinkOverlay;
|
|
11548
11548
|
const SimpleCourseBox = ({
|
|
11549
11549
|
courseName,
|
|
11550
|
+
grade,
|
|
11550
11551
|
href,
|
|
11551
11552
|
img,
|
|
11552
11553
|
icon,
|
|
11554
|
+
isApproved,
|
|
11553
11555
|
label,
|
|
11554
|
-
|
|
11556
|
+
isEnabled = true,
|
|
11557
|
+
noBorder = false
|
|
11555
11558
|
}) => {
|
|
11556
|
-
const link =
|
|
11559
|
+
const link = !isEnabled || !href || href === "" ? void 0 : href;
|
|
11560
|
+
const [isDesktop] = useMediaQuery("(min-width: 768px)");
|
|
11557
11561
|
return /* @__PURE__ */ jsx(StyledLinkBox, {
|
|
11558
|
-
p: "16px",
|
|
11559
|
-
borderBottom: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
11562
|
+
p: isDesktop ? "16px 24px" : "16px",
|
|
11563
|
+
borderBottom: noBorder ? "none" : `1px solid ${vars("colors-neutral-platinum")}`,
|
|
11560
11564
|
_hover: {
|
|
11561
11565
|
backgroundColor: link ? vars("colors-neutral-cultured2") : "none",
|
|
11562
11566
|
cursor: link ? "pointer" : "default"
|
|
11563
11567
|
},
|
|
11568
|
+
sx: {
|
|
11569
|
+
a: {
|
|
11570
|
+
textDecoration: "none",
|
|
11571
|
+
color: vars("colors-neutral-darkCharcoal")
|
|
11572
|
+
}
|
|
11573
|
+
},
|
|
11564
11574
|
children: /* @__PURE__ */ jsxs(StyledLinkOverlay, {
|
|
11565
11575
|
href: link,
|
|
11566
11576
|
display: "flex",
|
|
11577
|
+
gap: "24px",
|
|
11567
11578
|
alignItems: "center",
|
|
11568
11579
|
justifyContent: "space-between",
|
|
11569
11580
|
children: [/* @__PURE__ */ jsxs(StyledFlex, {
|
|
11570
|
-
gap: "24px",
|
|
11571
|
-
alignItems: "center",
|
|
11581
|
+
gap: isDesktop ? "24px" : "16px",
|
|
11582
|
+
alignItems: isDesktop ? "center" : "flex-start",
|
|
11583
|
+
flexDir: isDesktop ? "row" : "column",
|
|
11572
11584
|
children: [/* @__PURE__ */ jsx(StyledImage, {
|
|
11573
11585
|
src: img,
|
|
11574
11586
|
w: "150px",
|
|
@@ -11580,7 +11592,7 @@ const SimpleCourseBox = ({
|
|
|
11580
11592
|
justifyContent: "center",
|
|
11581
11593
|
children: [/* @__PURE__ */ jsx("strong", {
|
|
11582
11594
|
children: courseName
|
|
11583
|
-
}), icon && label && /* @__PURE__ */ jsxs(
|
|
11595
|
+
}), icon && label && /* @__PURE__ */ jsxs(Box, {
|
|
11584
11596
|
m: "0",
|
|
11585
11597
|
fontSize: "14px",
|
|
11586
11598
|
lineHeight: "19px",
|
|
@@ -11594,10 +11606,22 @@ const SimpleCourseBox = ({
|
|
|
11594
11606
|
},
|
|
11595
11607
|
children: [/* @__PURE__ */ jsx(IconSelection, {
|
|
11596
11608
|
type: icon
|
|
11597
|
-
}),
|
|
11609
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
11610
|
+
children: label
|
|
11611
|
+
}), grade && /* @__PURE__ */ jsx(Box, {
|
|
11612
|
+
h: "17px",
|
|
11613
|
+
w: "34px",
|
|
11614
|
+
fontSize: "12px",
|
|
11615
|
+
fontWeight: "700",
|
|
11616
|
+
textAlign: "center",
|
|
11617
|
+
borderRadius: "5px",
|
|
11618
|
+
color: vars("colors-neutral-white"),
|
|
11619
|
+
bg: isApproved ? vars("colors-alert-jadeGreen") : vars("colors-alert-red"),
|
|
11620
|
+
children: grade
|
|
11621
|
+
})]
|
|
11598
11622
|
})]
|
|
11599
11623
|
})]
|
|
11600
|
-
}), link && /* @__PURE__ */ jsx(Box, {
|
|
11624
|
+
}), isEnabled && link && /* @__PURE__ */ jsx(Box, {
|
|
11601
11625
|
children: /* @__PURE__ */ jsx(ArrowRight, {
|
|
11602
11626
|
color: "#60798E"
|
|
11603
11627
|
})
|