@eclass/ui-kit 1.54.6 → 1.54.8

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.
@@ -1,4 +1,4 @@
1
- import { extendTheme, Box, CircularProgress, Icon, Button, useMediaQuery, Tooltip, Flex, Stack, Center, Image, Text, HStack, Heading, List, ListItem, Link, Modal as Modal$1, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, ModalOverlay, useDisclosure, LinkBox, LinkOverlay, MenuButton, MenuGroup, Menu, MenuList } from "@chakra-ui/react";
1
+ import { extendTheme, Box, CircularProgress, Icon, Button, useMediaQuery, Tooltip, Flex, Stack, Center, Image, Text, 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 } from "@chakra-ui/react";
2
2
  import * as React from "react";
3
3
  import React__default, { useEffect, useCallback, useState } from "react";
4
4
  const main = {
@@ -3202,7 +3202,7 @@ function PaymentModal({
3202
3202
  size: "xl",
3203
3203
  blockScrollOnMount: false,
3204
3204
  closeOnOverlayClick: false,
3205
- children: [overlay2, /* @__PURE__ */ jsxs(ModalContent, {
3205
+ children: [overlay2, /* @__PURE__ */ jsxs(ModalContent$1, {
3206
3206
  marginTop: "0",
3207
3207
  marginBottom: ["25.75rem", "15.75rem"],
3208
3208
  children: [/* @__PURE__ */ jsxs(ModalHeader, {
@@ -3280,8 +3280,11 @@ function Footer({
3280
3280
  p: "1rem",
3281
3281
  borderTop: "1px solid",
3282
3282
  borderTopColor: vars("colors-neutral-platinum"),
3283
+ tabIndex: 0,
3284
+ className: "footerButtonBox",
3283
3285
  children: [isCourseActive(action.enabled, Profile2 == null ? void 0 : Profile2.id) ? /* @__PURE__ */ jsxs(Fragment, {
3284
3286
  children: [hasFinanzeFreezed && modalPaymentText ? /* @__PURE__ */ jsx(Box, {
3287
+ className: "uno",
3285
3288
  color: vars("colors-main-deepSkyBlue"),
3286
3289
  backgroundColor: "transparent",
3287
3290
  fontWeight: "500",
@@ -3297,6 +3300,7 @@ function Footer({
3297
3300
  fontSize: "1rem !important",
3298
3301
  children: action.text
3299
3302
  }) : /* @__PURE__ */ jsx(Text, {
3303
+ className: "dos",
3300
3304
  color: vars("colors-main-deepSkyBlue"),
3301
3305
  fontWeight: "500",
3302
3306
  mr: action.hasIcon ? "1.5rem" : "0",
@@ -3308,6 +3312,7 @@ function Footer({
3308
3312
  color: vars("colors-main-deepSkyBlue")
3309
3313
  })]
3310
3314
  }) : /* @__PURE__ */ jsx(Text, {
3315
+ className: "tres",
3311
3316
  fontWeight: "500",
3312
3317
  lineHeight: "1.172rem",
3313
3318
  color: vars("colors-neutral-spanishGrey"),
@@ -3345,6 +3350,7 @@ function BoxTraditional({
3345
3350
  return /* @__PURE__ */ jsx(CourseBoxContext.Provider, {
3346
3351
  value: data,
3347
3352
  children: /* @__PURE__ */ jsx(LinkBox, {
3353
+ className: "linkBoxTraditional",
3348
3354
  as: "article",
3349
3355
  border: vars("borders-light"),
3350
3356
  borderRadius: vars("radii-big"),
@@ -3352,8 +3358,9 @@ function BoxTraditional({
3352
3358
  transition: "box-shadow .3s",
3353
3359
  _active: cssActive,
3354
3360
  _hover: cssActive,
3355
- _focus: cssActive,
3356
3361
  overflow: "hidden",
3362
+ tabIndex: 0,
3363
+ role: "link",
3357
3364
  children: /* @__PURE__ */ jsx(WithRipples$1, {
3358
3365
  enabled: isCourseActive((_b = (_a = data.action) == null ? void 0 : _a.enabled) != null ? _b : false, (_c = data.Profile) == null ? void 0 : _c.id),
3359
3366
  children: /* @__PURE__ */ jsxs(Flex, {
@@ -3364,7 +3371,9 @@ function BoxTraditional({
3364
3371
  className: "CourseList-TraditionalBox",
3365
3372
  children: [!data.hasFinanzeFreezed && isCourseActive((_e = (_d = data.action) == null ? void 0 : _d.enabled) != null ? _e : false, (_f = data.Profile) == null ? void 0 : _f.id) && /* @__PURE__ */ jsx(LinkOverlay, {
3366
3373
  href: (_g = data.action) == null ? void 0 : _g.href,
3367
- isExternal: (_h = data.action) == null ? void 0 : _h.targetBlank
3374
+ isExternal: (_h = data.action) == null ? void 0 : _h.targetBlank,
3375
+ tabIndex: -1,
3376
+ className: "linkOverlay"
3368
3377
  }), /* @__PURE__ */ jsx(Header$1, {}), /* @__PURE__ */ jsx(Section, {})]
3369
3378
  }), /* @__PURE__ */ jsx(Footer, {
3370
3379
  modalPaymentText
@@ -3493,6 +3502,7 @@ function CourseList({
3493
3502
  return null;
3494
3503
  }
3495
3504
  return /* @__PURE__ */ jsx(Box, {
3505
+ className: "courseListBox",
3496
3506
  display: "grid",
3497
3507
  gridColumnGap: `${columnGap}rem`,
3498
3508
  gridRowGap: "1.75rem",
@@ -4141,7 +4151,7 @@ const Modal = ({
4141
4151
  motionPreset: "scale",
4142
4152
  onClose,
4143
4153
  scrollBehavior: isInside ? "inside" : "outside",
4144
- children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent, {
4154
+ children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
4145
4155
  maxH: isInside ? "100dvh" : "auto",
4146
4156
  minH: isDesktop ? "300px" : "100dvh",
4147
4157
  padding: 0,
@@ -4208,6 +4218,43 @@ const Modal = ({
4208
4218
  })
4209
4219
  });
4210
4220
  };
4221
+ const StyledModalFooter = ModalFooter;
4222
+ const StyledModalBody = ModalBody;
4223
+ const ModalButtons = ({
4224
+ children,
4225
+ buttonsCenter,
4226
+ buttonsColumn
4227
+ }) => {
4228
+ const [isDesktop] = useMediaQuery(`(min-width: ${uiKitModalIsDesktop}px)`);
4229
+ const buttonFull = !isDesktop && buttonsColumn;
4230
+ return /* @__PURE__ */ jsx(StyledModalFooter, {
4231
+ as: "footer",
4232
+ flexDirection: buttonFull ? "column" : "row",
4233
+ gap: "24px",
4234
+ justifyContent: buttonsCenter ? "center" : "flex-start",
4235
+ px: 0,
4236
+ pt: "32px",
4237
+ pb: 0,
4238
+ className: "uikit-modalButtons",
4239
+ sx: {
4240
+ "&>div, &>div>.react-ripples, &>div>.react-ripples>button": {
4241
+ width: isDesktop ? "auto" : "100%"
4242
+ }
4243
+ },
4244
+ children
4245
+ });
4246
+ };
4247
+ const ModalContent = ({
4248
+ children,
4249
+ pb = "32px"
4250
+ }) => {
4251
+ return /* @__PURE__ */ jsx(StyledModalBody, {
4252
+ pt: 0,
4253
+ pb,
4254
+ className: "uikit-modalContent",
4255
+ children
4256
+ });
4257
+ };
4211
4258
  const Loading$1 = ({
4212
4259
  fill = vars("colors-main-deepSkyBlue")
4213
4260
  }) => {
@@ -4267,7 +4314,7 @@ const ModalAlertNew = ({
4267
4314
  motionPreset: "scale",
4268
4315
  onClose,
4269
4316
  closeOnEsc: type !== "loading",
4270
- children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent, {
4317
+ children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
4271
4318
  borderRadius: "8px",
4272
4319
  p: 0,
4273
4320
  m: "10vh auto 0",
@@ -4303,6 +4350,31 @@ const ModalAlertNew = ({
4303
4350
  })
4304
4351
  });
4305
4352
  };
4353
+ const ModalAlertButtons = ({
4354
+ children
4355
+ }) => {
4356
+ return /* @__PURE__ */ jsx(Box, {
4357
+ display: "flex",
4358
+ w: "100%",
4359
+ borderTop: `1px solid ${vars("colors-neutral-platinum")}`,
4360
+ sx: {
4361
+ button: {
4362
+ borderRight: `1px solid ${vars("colors-neutral-platinum")}`,
4363
+ fontFamily: "Roboto",
4364
+ fontSize: "16px",
4365
+ fontWeight: 500,
4366
+ lineHeight: "21px",
4367
+ p: "16px",
4368
+ textDecor: "none",
4369
+ width: "100%",
4370
+ "&:last-child": {
4371
+ borderRight: "none"
4372
+ }
4373
+ }
4374
+ },
4375
+ children
4376
+ });
4377
+ };
4306
4378
  function ModalAlert({
4307
4379
  showModal,
4308
4380
  typeAlert,
@@ -4335,7 +4407,7 @@ function ModalAlert({
4335
4407
  right: "0",
4336
4408
  bottom: "0",
4337
4409
  zIndex: "998"
4338
- }), /* @__PURE__ */ jsxs(ModalContent, {
4410
+ }), /* @__PURE__ */ jsxs(ModalContent$1, {
4339
4411
  zIndex: "999",
4340
4412
  sx: modalStyles.content,
4341
4413
  children: [/* @__PURE__ */ jsxs(Box, {
@@ -6755,5 +6827,5 @@ const EventsList = ({
6755
6827
  })]
6756
6828
  });
6757
6829
  };
6758
- export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index as Icons, Label, Modal, ModalAlert, ModalAlertNew, NavBarButton, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
6830
+ export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index as Icons, Label, Modal, ModalAlert, ModalAlertButtons, ModalAlertNew, ModalButtons, ModalContent, NavBarButton, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
6759
6831
  //# sourceMappingURL=eclass-ui-kit.es.js.map