@eclass/ui-kit 1.7.0 → 1.7.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.
@@ -26078,6 +26078,43 @@ const styles = {
26078
26078
  ".react-ripples": {
26079
26079
  h: "100%",
26080
26080
  display: "grid!important"
26081
+ },
26082
+ ".chakra-button": {
26083
+ borderStyle: "none"
26084
+ },
26085
+ ".chakra-modal__content-container": {
26086
+ zIndex: "1400",
26087
+ justifyContent: "center",
26088
+ alignItems: "center",
26089
+ overflow: "auto"
26090
+ },
26091
+ ".chakra-modal__content": {
26092
+ borderRadius: "8px",
26093
+ background: "white",
26094
+ color: "inherit",
26095
+ zIndex: "1400",
26096
+ maxWidth: "589px"
26097
+ },
26098
+ ".chakra-modal__header": {
26099
+ paddingInlineStart: "1.5rem",
26100
+ paddingInlineEnd: "1.5rem",
26101
+ fontSize: "1.25rem",
26102
+ fontWeight: "700",
26103
+ ".chakra-icon": {
26104
+ width: "13rem"
26105
+ }
26106
+ },
26107
+ ".chakra-modal__close-btn": {
26108
+ width: "2rem",
26109
+ height: "2rem",
26110
+ borderRadius: "8px",
26111
+ fontSize: "0.75rem",
26112
+ position: "absolute",
26113
+ top: "0.5rem",
26114
+ right: "0.75rem",
26115
+ color: "#60798E",
26116
+ backgroundColor: "transparent",
26117
+ borderStyle: "none"
26081
26118
  }
26082
26119
  })
26083
26120
  };
@@ -27386,8 +27423,10 @@ function maxWidthCoursesList(nCols = 4) {
27386
27423
  }
27387
27424
  function PaymentModal({
27388
27425
  isOpen,
27426
+ onOpen,
27389
27427
  onClose,
27390
- showOverlay
27428
+ showOverlay,
27429
+ modalPaymentText
27391
27430
  }) {
27392
27431
  const cssButton = {
27393
27432
  backgroundColor: "transparent"
@@ -27410,6 +27449,7 @@ function PaymentModal({
27410
27449
  isOpen,
27411
27450
  onClose,
27412
27451
  size: "xl",
27452
+ blockScrollOnMount: false,
27413
27453
  children: [overlay, /* @__PURE__ */ jsxs(ModalContent, {
27414
27454
  marginTop: "0",
27415
27455
  marginBottom: "10.75rem",
@@ -27423,7 +27463,7 @@ function PaymentModal({
27423
27463
  w: "52",
27424
27464
  h: "45",
27425
27465
  viewBox: "0 0 45 52"
27426
- }), "Curso congelado por pagos pendientes"]
27466
+ }), modalPaymentText.title]
27427
27467
  }), /* @__PURE__ */ jsx(ModalCloseButton, {
27428
27468
  size: "md",
27429
27469
  color: vars("colors-main-blueGrey"),
@@ -27433,7 +27473,7 @@ function PaymentModal({
27433
27473
  }), /* @__PURE__ */ jsx(ModalBody, {
27434
27474
  p: "1rem 2rem 2rem 2rem",
27435
27475
  children: /* @__PURE__ */ jsx(Text, {
27436
- children: "Para regularizar esta situaci\xF3n y continuar estudiando, comun\xEDcate cuanto antes con regularizacion@eclass.com, de lo contrario tu curso ser\xE1 deshabilitado."
27476
+ children: modalPaymentText.body
27437
27477
  })
27438
27478
  }), /* @__PURE__ */ jsx(ModalFooter, {
27439
27479
  justifyContent: "center",
@@ -27457,7 +27497,9 @@ function PaymentModal({
27457
27497
  });
27458
27498
  }
27459
27499
  Modal.displayName = "Modal";
27460
- function Footer() {
27500
+ function Footer({
27501
+ modalPaymentText
27502
+ }) {
27461
27503
  var _a;
27462
27504
  const {
27463
27505
  action,
@@ -27520,7 +27562,9 @@ function Footer() {
27520
27562
  }), /* @__PURE__ */ jsx(PaymentModal, {
27521
27563
  isOpen,
27522
27564
  onClose,
27523
- showOverlay: overlay
27565
+ showOverlay: overlay,
27566
+ onOpen,
27567
+ modalPaymentText
27524
27568
  })]
27525
27569
  });
27526
27570
  }
@@ -27537,7 +27581,8 @@ function WithRipples({
27537
27581
  });
27538
27582
  }
27539
27583
  function CourseBox({
27540
- data
27584
+ data,
27585
+ modalPaymentText
27541
27586
  }) {
27542
27587
  var _a, _b, _c;
27543
27588
  const cssActive = {
@@ -27563,7 +27608,9 @@ function CourseBox({
27563
27608
  h: "100%",
27564
27609
  children: [/* @__PURE__ */ jsxs(Box, {
27565
27610
  children: [/* @__PURE__ */ jsx(Header, {}), /* @__PURE__ */ jsx(Section, {})]
27566
- }), /* @__PURE__ */ jsx(Footer, {})]
27611
+ }), /* @__PURE__ */ jsx(Footer, {
27612
+ modalPaymentText
27613
+ })]
27567
27614
  })
27568
27615
  })
27569
27616
  })
@@ -27574,6 +27621,7 @@ const columnGap = 1.25;
27574
27621
  const wCourse = 17.8125;
27575
27622
  function CourseList({
27576
27623
  courses,
27624
+ modalPaymentText,
27577
27625
  m: m2 = "0 auto"
27578
27626
  }) {
27579
27627
  if (courses === void 0) {
@@ -27587,7 +27635,8 @@ function CourseList({
27587
27635
  m: m2,
27588
27636
  w: "100%",
27589
27637
  children: courses == null ? void 0 : courses.map((course) => /* @__PURE__ */ jsx(CourseBox, {
27590
- data: course
27638
+ data: course,
27639
+ modalPaymentText
27591
27640
  }, course.id))
27592
27641
  });
27593
27642
  }