@eclass/ui-kit 1.63.0 → 1.64.0

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.
Files changed (29) hide show
  1. package/dist/atoms/Icons/Star.d.ts +7 -0
  2. package/dist/atoms/Icons/Star.d.ts.map +1 -0
  3. package/dist/atoms/Icons/index.d.ts +1 -0
  4. package/dist/atoms/Icons/index.d.ts.map +1 -1
  5. package/dist/eclass-ui-kit.es.js +354 -21
  6. package/dist/eclass-ui-kit.es.js.map +1 -1
  7. package/dist/eclass-ui-kit.umd.js +30 -30
  8. package/dist/eclass-ui-kit.umd.js.map +1 -1
  9. package/dist/index.d.ts +2 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/organisms/CourseList/Boxes/BoxImage.d.ts.map +1 -1
  12. package/dist/organisms/CourseList/Boxes/BoxTraditional.d.ts.map +1 -1
  13. package/dist/organisms/CourseList/types.d.ts +9 -1
  14. package/dist/organisms/LinkedinAndReview/ShareAndReviewModal.d.ts +9 -0
  15. package/dist/organisms/LinkedinAndReview/ShareAndReviewModal.d.ts.map +1 -0
  16. package/dist/organisms/LinkedinAndReview/components/AfterShareContent.d.ts +7 -0
  17. package/dist/organisms/LinkedinAndReview/components/AfterShareContent.d.ts.map +1 -0
  18. package/dist/organisms/LinkedinAndReview/components/CustomCloseIcon.d.ts +4 -0
  19. package/dist/organisms/LinkedinAndReview/components/CustomCloseIcon.d.ts.map +1 -0
  20. package/dist/organisms/LinkedinAndReview/components/InitialShareContent.d.ts +8 -0
  21. package/dist/organisms/LinkedinAndReview/components/InitialShareContent.d.ts.map +1 -0
  22. package/dist/organisms/LinkedinAndReview/index.d.ts +2 -0
  23. package/dist/organisms/LinkedinAndReview/index.d.ts.map +1 -0
  24. package/dist/organisms/SimpleCourseBox/SimpleCourseBox.d.ts +10 -0
  25. package/dist/organisms/SimpleCourseBox/SimpleCourseBox.d.ts.map +1 -0
  26. package/dist/organisms/SimpleCourseBox/index.d.ts +2 -0
  27. package/dist/organisms/SimpleCourseBox/index.d.ts.map +1 -0
  28. package/dist/tsconfig.types.tsbuildinfo +1 -1
  29. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function Star(props: BaseProps): JSX.Element;
4
+ export declare namespace Star {
5
+ var displayName: string;
6
+ }
7
+ //# sourceMappingURL=Star.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Star.d.ts","sourceRoot":"","sources":["../../../src/atoms/Icons/Star.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAA;AAExC,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAWlD;yBAXe,IAAI"}
@@ -14,6 +14,7 @@ export * from './Multimedia';
14
14
  export * from './Profile';
15
15
  export * from './Remote';
16
16
  export * from './Schedule';
17
+ export * from './Star';
17
18
  export * from './Time';
18
19
  export * from './TinyAlertInfo';
19
20
  export * from './TinyAlertError';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/Icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/Icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { extendTheme, Box, CircularProgress, Icon, Button, useMediaQuery, Tooltip, Flex, Stack, Center, Image, Text as Text$1, HStack, Heading, List, ListItem, Link, Modal as Modal$1, ModalContent as ModalContent$1, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, ModalOverlay, useDisclosure, LinkBox, LinkOverlay, MenuButton, MenuGroup, Menu, MenuList, MenuItem } from "@chakra-ui/react";
1
+ import { extendTheme, Box, CircularProgress, Icon, Button, useMediaQuery, Tooltip, Flex, Stack, Center, Image, Text as Text$1, HStack, Heading, List, ListItem, Link, Modal as Modal$1, ModalContent as ModalContent$1, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, ModalOverlay, useDisclosure, LinkBox, LinkOverlay, MenuButton, MenuGroup, Menu, MenuList, MenuItem, Divider, IconButton } from "@chakra-ui/react";
2
2
  import * as React$1 from "react";
3
3
  import React__default, { useEffect, useState, useCallback, useRef } from "react";
4
4
  const main = {
@@ -858,6 +858,19 @@ function Schedule(props) {
858
858
  });
859
859
  }
860
860
  Schedule.displayName = "Schedule";
861
+ function Star(props) {
862
+ return /* @__PURE__ */ jsx(Base, {
863
+ viewBox: "0 0 16px 16px",
864
+ ...props,
865
+ children: /* @__PURE__ */ jsx("path", {
866
+ fill: "currentColor",
867
+ fillRule: "evenodd",
868
+ d: "M8.464 12.255a1 1 0 0 0-.927 0l-2.452 1.282a1 1 0 0 1-1.45-1.053l.462-2.729a1 1 0 0 0-.286-.881L1.833 6.938a1 1 0 0 1 .554-1.704l2.738-.404a1 1 0 0 0 .75-.545l1.23-2.48a1 1 0 0 1 1.792 0l1.23 2.48a1 1 0 0 0 .75.545l2.738.404a1 1 0 0 1 .553 1.704l-1.977 1.936a1 1 0 0 0-.287.881l.462 2.73a1 1 0 0 1-1.45 1.053l-2.452-1.284Z",
869
+ clipRule: "evenodd"
870
+ })
871
+ });
872
+ }
873
+ Star.displayName = "Star";
861
874
  function Time(props) {
862
875
  return /* @__PURE__ */ jsx(Base, {
863
876
  ...props,
@@ -1395,6 +1408,7 @@ var index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
1395
1408
  Profile,
1396
1409
  Remote,
1397
1410
  Schedule,
1411
+ Star,
1398
1412
  Time,
1399
1413
  TinyAlertInfo,
1400
1414
  TinyAlertError,
@@ -3489,8 +3503,21 @@ function BoxTraditional({
3489
3503
  modalPaymentText
3490
3504
  }) {
3491
3505
  var _a, _b, _c, _d, _e, _f, _g;
3492
- const isClickable = isCourseActive((_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data.Profile) == null ? void 0 : _c.id);
3493
- const hasHref = !!((_d = data.action) == null ? void 0 : _d.href);
3506
+ const hasCustomClick = data.onClick !== void 0;
3507
+ const isClickable = hasCustomClick || isCourseActive((_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data.Profile) == null ? void 0 : _c.id);
3508
+ const hasHref = !hasCustomClick && !!((_d = data.action) == null ? void 0 : _d.href);
3509
+ const handleClick = (event) => {
3510
+ var _a2;
3511
+ event.preventDefault();
3512
+ (_a2 = data.onClick) == null ? void 0 : _a2.call(data, data);
3513
+ };
3514
+ const handleKeyDown = (event) => {
3515
+ var _a2;
3516
+ if (event.key === "Enter" || event.key === " ") {
3517
+ event.preventDefault();
3518
+ (_a2 = data.onClick) == null ? void 0 : _a2.call(data, data);
3519
+ }
3520
+ };
3494
3521
  useEnterNavigate();
3495
3522
  const cssActive = {
3496
3523
  boxShadow: `0 2px 7px 0 ${vars("colors-neutral-silverSand")}`
@@ -3510,8 +3537,9 @@ function BoxTraditional({
3510
3537
  boxShadow: `0 0 0 3px ${vars("colors-alert-deepSkyBlue")} inset`
3511
3538
  },
3512
3539
  tabIndex: 0,
3513
- role: hasHref ? "link" : void 0,
3540
+ role: hasHref ? "link" : hasCustomClick ? "button" : void 0,
3514
3541
  "data-href": hasHref ? (_e = data.action) == null ? void 0 : _e.href : void 0,
3542
+ onKeyDown: hasCustomClick ? handleKeyDown : void 0,
3515
3543
  children: /* @__PURE__ */ jsx(WithRipples$1, {
3516
3544
  enabled: isClickable,
3517
3545
  children: /* @__PURE__ */ jsxs(Flex, {
@@ -3520,11 +3548,13 @@ function BoxTraditional({
3520
3548
  h: "100%",
3521
3549
  children: [/* @__PURE__ */ jsxs(Box, {
3522
3550
  className: "CourseList-TraditionalBox",
3523
- children: [isClickable && hasHref && /* @__PURE__ */ jsx(LinkOverlay, {
3551
+ children: [isClickable && (hasHref || hasCustomClick) && /* @__PURE__ */ jsx(LinkOverlay, {
3524
3552
  className: "course-link-overlay",
3553
+ "data-testid": "course-link-overlay",
3525
3554
  bg: "gray",
3526
- href: (_f = data.action) == null ? void 0 : _f.href,
3527
- isExternal: (_g = data.action) == null ? void 0 : _g.targetBlank,
3555
+ href: hasHref ? (_f = data.action) == null ? void 0 : _f.href : void 0,
3556
+ isExternal: hasHref && ((_g = data.action) == null ? void 0 : _g.targetBlank),
3557
+ onClick: hasCustomClick ? handleClick : void 0,
3528
3558
  tabIndex: -1
3529
3559
  }), /* @__PURE__ */ jsx(Header$1, {}), /* @__PURE__ */ jsx(Section, {})]
3530
3560
  }), /* @__PURE__ */ jsx(Footer, {
@@ -3536,6 +3566,8 @@ function BoxTraditional({
3536
3566
  });
3537
3567
  }
3538
3568
  BoxTraditional.displayName = "BoxTraditional";
3569
+ const StyledLinkBox = LinkBox;
3570
+ const StyledLinkOverlay = LinkOverlay;
3539
3571
  function WithRipples({
3540
3572
  enabled,
3541
3573
  children
@@ -3553,14 +3585,29 @@ function BoxImage({
3553
3585
  size = "large",
3554
3586
  m: m2
3555
3587
  }) {
3556
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
3588
+ var _a, _b, _c, _d, _e, _f, _g;
3589
+ const hasCustomClick = (data == null ? void 0 : data.onClick) !== void 0;
3590
+ const isClickable = hasCustomClick || isCourseActive((_b = (_a = data == null ? void 0 : data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data == null ? void 0 : data.Profile) == null ? void 0 : _c.id);
3591
+ const hasHref = !hasCustomClick && !!((_d = data == null ? void 0 : data.action) == null ? void 0 : _d.href);
3592
+ const handleClick = (event) => {
3593
+ var _a2;
3594
+ event.preventDefault();
3595
+ (_a2 = data == null ? void 0 : data.onClick) == null ? void 0 : _a2.call(data, data);
3596
+ };
3597
+ const handleKeyDown = (event) => {
3598
+ var _a2;
3599
+ if (event.key === "Enter" || event.key === " ") {
3600
+ event.preventDefault();
3601
+ (_a2 = data == null ? void 0 : data.onClick) == null ? void 0 : _a2.call(data, data);
3602
+ }
3603
+ };
3557
3604
  const boxHeight = {
3558
3605
  large: "286px",
3559
3606
  small: "197px"
3560
3607
  };
3561
3608
  return /* @__PURE__ */ jsx(WithRipples, {
3562
- enabled: isCourseActive((_b = (_a = data == null ? void 0 : data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data == null ? void 0 : data.Profile) == null ? void 0 : _c.id),
3563
- children: /* @__PURE__ */ jsxs(LinkBox, {
3609
+ enabled: isClickable,
3610
+ children: /* @__PURE__ */ jsxs(StyledLinkBox, {
3564
3611
  className: "CourseList-ImageBox",
3565
3612
  _focusVisible: {
3566
3613
  boxShadow: `0 0 0 3px ${vars("colors-alert-deepSkyBlue")} inset`
@@ -3587,9 +3634,14 @@ function BoxImage({
3587
3634
  }
3588
3635
  }
3589
3636
  },
3590
- children: [!(data == null ? void 0 : data.hasFinanzeFreezed) && isCourseActive((_e = (_d = data == null ? void 0 : data.action) == null ? void 0 : _d.enabled) != null ? _e : false, (_f = data == null ? void 0 : data.Profile) == null ? void 0 : _f.id) && /* @__PURE__ */ jsx(LinkOverlay, {
3591
- href: (_g = data == null ? void 0 : data.action) == null ? void 0 : _g.href,
3592
- isExternal: (_h = data == null ? void 0 : data.action) == null ? void 0 : _h.targetBlank,
3637
+ "aria-label": hasCustomClick ? title : void 0,
3638
+ role: hasCustomClick ? "button" : void 0,
3639
+ onKeyDown: hasCustomClick ? handleKeyDown : void 0,
3640
+ children: [(hasCustomClick || !(data == null ? void 0 : data.hasFinanzeFreezed)) && isClickable && (hasHref || hasCustomClick) && /* @__PURE__ */ jsx(StyledLinkOverlay, {
3641
+ "data-testid": "course-link-overlay",
3642
+ href: hasHref ? (_e = data == null ? void 0 : data.action) == null ? void 0 : _e.href : void 0,
3643
+ isExternal: hasHref && ((_f = data == null ? void 0 : data.action) == null ? void 0 : _f.targetBlank),
3644
+ onClick: hasCustomClick ? handleClick : void 0,
3593
3645
  tabIndex: -1
3594
3646
  }), /* @__PURE__ */ jsxs(Box, {
3595
3647
  className: "textBox",
@@ -3606,7 +3658,7 @@ function BoxImage({
3606
3658
  marginBlockEnd: "0",
3607
3659
  margin: "0",
3608
3660
  children: title
3609
- }), (_i = data == null ? void 0 : data.information) == null ? void 0 : _i.map((item, index2) => item.icon === "certificate" && /* @__PURE__ */ jsx(Box, {
3661
+ }), (_g = data == null ? void 0 : data.information) == null ? void 0 : _g.map((item, index2) => item.icon === "certificate" && /* @__PURE__ */ jsx(Box, {
3610
3662
  as: "p",
3611
3663
  className: "certificateText",
3612
3664
  fontSize: "14px",
@@ -9554,8 +9606,8 @@ const StandardBackground = ({
9554
9606
  })]
9555
9607
  });
9556
9608
  };
9557
- const StyledText = Text$1;
9558
- const StyledLink = Link;
9609
+ const StyledText$3 = Text$1;
9610
+ const StyledLink$1 = Link;
9559
9611
  const Resources = ({
9560
9612
  id,
9561
9613
  resourceType,
@@ -9591,7 +9643,7 @@ const Resources = ({
9591
9643
  };
9592
9644
  return colorMap[resourceType] || "#FFBC27";
9593
9645
  };
9594
- return /* @__PURE__ */ jsx(StyledLink, {
9646
+ return /* @__PURE__ */ jsx(StyledLink$1, {
9595
9647
  href: resourceLink,
9596
9648
  target: targetBlank ? "_blank" : "_self",
9597
9649
  rel: targetBlank ? "noopener noreferrer" : void 0,
@@ -9636,7 +9688,7 @@ const Resources = ({
9636
9688
  gap: "8px",
9637
9689
  padding: "1rem",
9638
9690
  children: [/* @__PURE__ */ jsx(Box, {
9639
- children: /* @__PURE__ */ jsx(StyledText, {
9691
+ children: /* @__PURE__ */ jsx(StyledText$3, {
9640
9692
  fontFamily: "Roboto",
9641
9693
  fontWeight: "700",
9642
9694
  lineHeight: "21px",
@@ -9646,7 +9698,7 @@ const Resources = ({
9646
9698
  children: resourceTitle
9647
9699
  })
9648
9700
  }), /* @__PURE__ */ jsx(Box, {
9649
- children: /* @__PURE__ */ jsx(StyledText, {
9701
+ children: /* @__PURE__ */ jsx(StyledText$3, {
9650
9702
  fontFamily: "Roboto",
9651
9703
  fontWeight: "400",
9652
9704
  lineHeight: "14px",
@@ -9659,7 +9711,7 @@ const Resources = ({
9659
9711
  display: "flex",
9660
9712
  alignItems: "center",
9661
9713
  justifyContent: "center",
9662
- children: /* @__PURE__ */ jsxs(StyledText, {
9714
+ children: /* @__PURE__ */ jsxs(StyledText$3, {
9663
9715
  fontFamily: "Roboto",
9664
9716
  fontWeight: "500",
9665
9717
  fontSize: "14px",
@@ -11259,5 +11311,286 @@ const UserDropdown = ({
11259
11311
  })
11260
11312
  });
11261
11313
  };
11262
- 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, TinyAlert, UserDropdown, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
11314
+ function CustomCloseIcon(props) {
11315
+ return /* @__PURE__ */ jsx(Base, {
11316
+ w: "16px",
11317
+ h: "16px",
11318
+ viewBox: "0 0 16 16",
11319
+ color: "none",
11320
+ ...props,
11321
+ children: /* @__PURE__ */ jsx("path", {
11322
+ fill: "#60798E",
11323
+ fillRule: "evenodd",
11324
+ d: "M13.694 0 7.876 5.818 2.057 0 0 2.057l5.818 5.819L0 13.694l2.057 2.057 5.819-5.818 5.818 5.818 2.057-2.057-5.818-5.818 5.818-5.819L13.694 0Z",
11325
+ clipRule: "evenodd"
11326
+ })
11327
+ });
11328
+ }
11329
+ const StyledImage$2 = Image;
11330
+ const StyledFlex$3 = Flex;
11331
+ const StyledText$2 = Text$1;
11332
+ const StyledDivider = Divider;
11333
+ const StyledLink = Link;
11334
+ const InitialShareContent = ({
11335
+ handleLinkedinClick,
11336
+ onLeaveReview
11337
+ }) => {
11338
+ return /* @__PURE__ */ jsxs(Fragment, {
11339
+ children: [/* @__PURE__ */ jsxs(StyledFlex$3, {
11340
+ direction: "column",
11341
+ gap: "16px",
11342
+ alignItems: "center",
11343
+ children: [/* @__PURE__ */ jsx(StyledImage$2, {
11344
+ w: "70px",
11345
+ h: "70px",
11346
+ alt: "cotill\xF3n de celebraci\xF3n",
11347
+ src: "https://cdn.eclass.com/vendors/apps/front_v8/assets/Common/celebration.webp"
11348
+ }), /* @__PURE__ */ jsxs(StyledFlex$3, {
11349
+ flexDir: "column",
11350
+ gap: "8px",
11351
+ children: [/* @__PURE__ */ jsx(StyledText$2, {
11352
+ as: "h6",
11353
+ fontSize: "xl",
11354
+ fontWeight: "bold",
11355
+ color: vars("colors-neutral-darkCharcoal"),
11356
+ m: "0",
11357
+ children: "\xA1Qu\xE9 bueno que quieras compartirlo!"
11358
+ }), /* @__PURE__ */ jsx(StyledText$2, {
11359
+ fontSize: "md",
11360
+ color: vars("colors-neutral-darkCharcoal"),
11361
+ mb: "0",
11362
+ children: "Aprobaste tu curso. Vamos a mostrarlo en tu LinkedIn."
11363
+ })]
11364
+ })]
11365
+ }), /* @__PURE__ */ jsx(BtnPrimary, {
11366
+ onClick: handleLinkedinClick,
11367
+ children: "Continuar a LinkedIn"
11368
+ }), /* @__PURE__ */ jsxs(StyledFlex$3, {
11369
+ align: "center",
11370
+ width: "100%",
11371
+ gap: "16px",
11372
+ children: [/* @__PURE__ */ jsx(StyledDivider, {
11373
+ borderColor: vars("colors-neutral-platinum"),
11374
+ m: "0"
11375
+ }), /* @__PURE__ */ jsx(StyledText$2, {
11376
+ fontSize: "sm",
11377
+ color: vars("colors-neutral-gray"),
11378
+ whiteSpace: "nowrap",
11379
+ m: "0",
11380
+ children: "Ya que est\xE1s aqu\xED"
11381
+ }), /* @__PURE__ */ jsx(StyledDivider, {
11382
+ borderColor: vars("colors-neutral-platinum"),
11383
+ m: "0"
11384
+ })]
11385
+ }), /* @__PURE__ */ jsx(StyledText$2, {
11386
+ as: "p",
11387
+ fontSize: "md",
11388
+ fontWeight: "700",
11389
+ color: vars("colors-neutral-darkCharcoal"),
11390
+ mb: "0",
11391
+ children: "\xBFQu\xE9 tal fue aprender con nosotros?"
11392
+ }), /* @__PURE__ */ jsxs(StyledFlex$3, {
11393
+ align: "center",
11394
+ justify: "center",
11395
+ gap: "8px",
11396
+ sx: {
11397
+ svg: {
11398
+ m: "0"
11399
+ }
11400
+ },
11401
+ children: [/* @__PURE__ */ jsx(Star, {
11402
+ color: vars("colors-icon-ripeMango")
11403
+ }), /* @__PURE__ */ jsx(StyledLink, {
11404
+ fontSize: "sm",
11405
+ fontWeight: "500",
11406
+ color: vars("colors-neutral-gray"),
11407
+ textDecoration: "underline",
11408
+ onClick: onLeaveReview,
11409
+ children: "Dejar mi opini\xF3n"
11410
+ })]
11411
+ })]
11412
+ });
11413
+ };
11414
+ const StyledImage$1 = Image;
11415
+ const StyledFlex$2 = Flex;
11416
+ const StyledText$1 = Text$1;
11417
+ const AfterShareContent = ({
11418
+ onClose,
11419
+ onLeaveReview
11420
+ }) => {
11421
+ return /* @__PURE__ */ jsxs(StyledFlex$2, {
11422
+ flexDir: "column",
11423
+ alignItems: "center",
11424
+ gap: "16px",
11425
+ sx: {
11426
+ button: {
11427
+ svg: {
11428
+ m: "0"
11429
+ }
11430
+ },
11431
+ ".linkButton": {
11432
+ p: "0"
11433
+ }
11434
+ },
11435
+ children: [/* @__PURE__ */ jsx(StyledImage$1, {
11436
+ w: "70px",
11437
+ h: "70px",
11438
+ alt: "cotill\xF3n de celebraci\xF3n",
11439
+ src: "https://cdn.eclass.com/vendors/apps/front_v8/assets/Common/celebration.webp"
11440
+ }), /* @__PURE__ */ jsx(StyledText$1, {
11441
+ as: "h6",
11442
+ fontSize: "xl",
11443
+ fontWeight: "bold",
11444
+ color: vars("colors-neutral-darkCharcoal"),
11445
+ m: "0",
11446
+ children: "\xBFYa lo compartiste en LinkedIn?"
11447
+ }), /* @__PURE__ */ jsxs(StyledText$1, {
11448
+ fontSize: "md",
11449
+ fontWeight: "400",
11450
+ color: vars("colors-neutral-darkCharcoal"),
11451
+ p: "0",
11452
+ m: "0",
11453
+ children: [/* @__PURE__ */ jsx("strong", {
11454
+ children: "Ahora cu\xE9ntanos qu\xE9 tal fue aprender con nosotros."
11455
+ }), " Tu opini\xF3n ayuda a otros como t\xFA a dar el primer paso."]
11456
+ }), /* @__PURE__ */ jsx(BtnPrimary, {
11457
+ onClick: onLeaveReview,
11458
+ leftIcon: /* @__PURE__ */ jsx(Star, {
11459
+ color: vars("colors-neutral-white")
11460
+ }),
11461
+ children: "Dejar mi opini\xF3n"
11462
+ }), /* @__PURE__ */ jsx(BtnLink, {
11463
+ as: "button",
11464
+ onClick: onClose,
11465
+ children: "Quiz\xE1s m\xE1s tarde"
11466
+ })]
11467
+ });
11468
+ };
11469
+ const StyledModalContent = ModalContent$1;
11470
+ const StyledIconButton = IconButton;
11471
+ const StyledFlex$1 = Flex;
11472
+ const ShareAndReviewModal = ({
11473
+ isOpen,
11474
+ onClose,
11475
+ onContinue,
11476
+ onLeaveReview
11477
+ }) => {
11478
+ const [hasClickedLinkedin, setHasClickedLinkedin] = useState(false);
11479
+ useEffect(() => {
11480
+ if (!isOpen) {
11481
+ setHasClickedLinkedin(false);
11482
+ }
11483
+ }, [isOpen]);
11484
+ const handleLinkedinClick = () => {
11485
+ if (onContinue) {
11486
+ onContinue();
11487
+ }
11488
+ setTimeout(() => {
11489
+ setHasClickedLinkedin(true);
11490
+ }, 400);
11491
+ };
11492
+ return /* @__PURE__ */ jsxs(Modal$1, {
11493
+ isOpen,
11494
+ onClose,
11495
+ blockScrollOnMount: false,
11496
+ isCentered: true,
11497
+ children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(StyledModalContent, {
11498
+ alignSelf: "center",
11499
+ maxW: "471px",
11500
+ marginInline: "16px",
11501
+ borderRadius: "8px",
11502
+ p: "32px 16px",
11503
+ position: "relative",
11504
+ alignItems: "center",
11505
+ children: [/* @__PURE__ */ jsx(StyledIconButton, {
11506
+ "aria-label": "Cerrar",
11507
+ autoFocus: false,
11508
+ bg: "transparent",
11509
+ icon: /* @__PURE__ */ jsx(CustomCloseIcon, {}),
11510
+ onClick: onClose,
11511
+ variant: "ghost",
11512
+ size: "sm",
11513
+ h: "auto",
11514
+ minW: "16px",
11515
+ position: "absolute",
11516
+ top: "16px",
11517
+ right: "16px",
11518
+ _hover: {
11519
+ background: "none"
11520
+ },
11521
+ _focus: {
11522
+ boxShadow: "none"
11523
+ },
11524
+ _focusVisible: {
11525
+ boxShadow: `0 0 0 3px ${vars("colors-alert-deepSkyBlue")} inset`
11526
+ }
11527
+ }), /* @__PURE__ */ jsx(StyledFlex$1, {
11528
+ direction: "column",
11529
+ align: "center",
11530
+ textAlign: "center",
11531
+ gap: "16px",
11532
+ children: !hasClickedLinkedin ? /* @__PURE__ */ jsx(InitialShareContent, {
11533
+ handleLinkedinClick,
11534
+ onLeaveReview
11535
+ }) : /* @__PURE__ */ jsx(AfterShareContent, {
11536
+ onClose,
11537
+ onLeaveReview
11538
+ })
11539
+ })]
11540
+ })]
11541
+ });
11542
+ };
11543
+ const StyledText = Text$1;
11544
+ const StyledFlex = Flex;
11545
+ const StyledImage = Image;
11546
+ const SimpleCourseBox = ({
11547
+ img,
11548
+ courseName,
11549
+ icon,
11550
+ label
11551
+ }) => {
11552
+ return /* @__PURE__ */ jsxs(StyledFlex, {
11553
+ alignItems: "center",
11554
+ justifyContent: "space-between",
11555
+ p: "16px 0",
11556
+ borderBottom: `1px solid ${vars("colors-neutral-platinum")}`,
11557
+ children: [/* @__PURE__ */ jsxs(StyledFlex, {
11558
+ gap: "24px",
11559
+ 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]
11586
+ })]
11587
+ })]
11588
+ }), /* @__PURE__ */ jsx(Box, {
11589
+ children: /* @__PURE__ */ jsx(ArrowRight, {
11590
+ color: "#60798E"
11591
+ })
11592
+ })]
11593
+ });
11594
+ };
11595
+ 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 };
11263
11596
  //# sourceMappingURL=eclass-ui-kit.es.js.map