@eclass/ui-kit 1.64.1 → 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 +42 -20
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +5 -5
- package/dist/eclass-ui-kit.umd.js.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
|
@@ -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,32 +11540,42 @@ const ShareAndReviewModal = ({
|
|
|
11540
11540
|
})]
|
|
11541
11541
|
});
|
|
11542
11542
|
};
|
|
11543
|
-
const StyledText = Text$1;
|
|
11544
11543
|
const StyledFlex = Flex;
|
|
11545
11544
|
const StyledImage = Image;
|
|
11546
11545
|
const StyledLinkBox = LinkBox;
|
|
11547
11546
|
const StyledLinkOverlay = LinkOverlay;
|
|
11548
11547
|
const SimpleCourseBox = ({
|
|
11549
11548
|
courseName,
|
|
11549
|
+
grade,
|
|
11550
11550
|
href,
|
|
11551
11551
|
img,
|
|
11552
11552
|
icon,
|
|
11553
|
+
isApproved,
|
|
11553
11554
|
label,
|
|
11554
|
-
|
|
11555
|
+
isEnabled = true,
|
|
11556
|
+
noBorder = false
|
|
11555
11557
|
}) => {
|
|
11556
|
-
const link =
|
|
11558
|
+
const link = !isEnabled || !href || href === "" ? void 0 : href;
|
|
11557
11559
|
return /* @__PURE__ */ jsx(StyledLinkBox, {
|
|
11558
|
-
p: "16px",
|
|
11559
|
-
borderBottom: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
11560
|
+
p: "16px 0",
|
|
11561
|
+
borderBottom: noBorder ? "none" : `1px solid ${vars("colors-neutral-platinum")}`,
|
|
11560
11562
|
_hover: {
|
|
11561
11563
|
backgroundColor: link ? vars("colors-neutral-cultured2") : "none",
|
|
11562
11564
|
cursor: link ? "pointer" : "default"
|
|
11563
11565
|
},
|
|
11566
|
+
sx: {
|
|
11567
|
+
a: {
|
|
11568
|
+
textDecoration: "none",
|
|
11569
|
+
color: vars("colors-neutral-darkCharcoal")
|
|
11570
|
+
}
|
|
11571
|
+
},
|
|
11564
11572
|
children: /* @__PURE__ */ jsxs(StyledLinkOverlay, {
|
|
11565
11573
|
href: link,
|
|
11566
11574
|
display: "flex",
|
|
11575
|
+
gap: "24px",
|
|
11567
11576
|
alignItems: "center",
|
|
11568
11577
|
justifyContent: "space-between",
|
|
11578
|
+
pr: "8px",
|
|
11569
11579
|
children: [/* @__PURE__ */ jsxs(StyledFlex, {
|
|
11570
11580
|
gap: "24px",
|
|
11571
11581
|
alignItems: "center",
|
|
@@ -11580,7 +11590,7 @@ const SimpleCourseBox = ({
|
|
|
11580
11590
|
justifyContent: "center",
|
|
11581
11591
|
children: [/* @__PURE__ */ jsx("strong", {
|
|
11582
11592
|
children: courseName
|
|
11583
|
-
}), icon && label && /* @__PURE__ */ jsxs(
|
|
11593
|
+
}), icon && label && /* @__PURE__ */ jsxs(Box, {
|
|
11584
11594
|
m: "0",
|
|
11585
11595
|
fontSize: "14px",
|
|
11586
11596
|
lineHeight: "19px",
|
|
@@ -11594,10 +11604,22 @@ const SimpleCourseBox = ({
|
|
|
11594
11604
|
},
|
|
11595
11605
|
children: [/* @__PURE__ */ jsx(IconSelection, {
|
|
11596
11606
|
type: icon
|
|
11597
|
-
}),
|
|
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
|
+
})]
|
|
11598
11620
|
})]
|
|
11599
11621
|
})]
|
|
11600
|
-
}), link && /* @__PURE__ */ jsx(Box, {
|
|
11622
|
+
}), isEnabled && link && /* @__PURE__ */ jsx(Box, {
|
|
11601
11623
|
children: /* @__PURE__ */ jsx(ArrowRight, {
|
|
11602
11624
|
color: "#60798E"
|
|
11603
11625
|
})
|