@eclass/ui-kit 1.61.0 → 1.63.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.
- package/dist/eclass-ui-kit.es.js +17 -3
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +13 -13
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts.map +1 -1
- package/dist/organisms/Modals/Modal/Modal.d.ts +1 -1
- package/dist/organisms/Modals/Modal/Modal.d.ts.map +1 -1
- package/dist/organisms/Modals/ModalAlert/ModalAlert.d.ts +1 -1
- package/dist/organisms/Modals/ModalAlert/ModalAlert.d.ts.map +1 -1
- package/dist/organisms/Modals/ModalMultiple/ModalMultiple.d.ts +1 -0
- package/dist/organisms/Modals/ModalMultiple/ModalMultiple.d.ts.map +1 -1
- package/dist/organisms/Modals/types.d.ts +2 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -7683,6 +7683,7 @@ const Modal = ({
|
|
|
7683
7683
|
scrollBehavior = "outside",
|
|
7684
7684
|
fixedButtons = false,
|
|
7685
7685
|
autoFocus = false,
|
|
7686
|
+
returnFocusOnClose = true,
|
|
7686
7687
|
minWidth,
|
|
7687
7688
|
maxWidth,
|
|
7688
7689
|
minHeight,
|
|
@@ -7707,6 +7708,7 @@ const Modal = ({
|
|
|
7707
7708
|
onClose,
|
|
7708
7709
|
scrollBehavior: isInside ? "inside" : "outside",
|
|
7709
7710
|
autoFocus,
|
|
7711
|
+
returnFocusOnClose,
|
|
7710
7712
|
blockScrollOnMount: false,
|
|
7711
7713
|
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsx(Box, {
|
|
7712
7714
|
sx: {
|
|
@@ -7993,6 +7995,7 @@ const useModalAlertConfig = () => {
|
|
|
7993
7995
|
const ModalAlertNew = ({
|
|
7994
7996
|
autoFocus = false,
|
|
7995
7997
|
type,
|
|
7998
|
+
returnFocusOnClose = true,
|
|
7996
7999
|
isOpen,
|
|
7997
8000
|
onClose,
|
|
7998
8001
|
children,
|
|
@@ -8009,6 +8012,7 @@ const ModalAlertNew = ({
|
|
|
8009
8012
|
onClose,
|
|
8010
8013
|
closeOnEsc: type !== "loading",
|
|
8011
8014
|
autoFocus,
|
|
8015
|
+
returnFocusOnClose,
|
|
8012
8016
|
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsx(ModalContent$1, {
|
|
8013
8017
|
...modalConfig.contentProps,
|
|
8014
8018
|
children: /* @__PURE__ */ jsx(ModalAlertContent, {
|
|
@@ -8084,6 +8088,7 @@ const ModalMultiple = (props) => {
|
|
|
8084
8088
|
isOpen,
|
|
8085
8089
|
onClose,
|
|
8086
8090
|
autoFocus = false,
|
|
8091
|
+
returnFocusOnClose = true,
|
|
8087
8092
|
children,
|
|
8088
8093
|
title,
|
|
8089
8094
|
closeOnOverlayClick = true,
|
|
@@ -8139,6 +8144,7 @@ const ModalMultiple = (props) => {
|
|
|
8139
8144
|
onClose,
|
|
8140
8145
|
motionPreset: "scale",
|
|
8141
8146
|
autoFocus,
|
|
8147
|
+
returnFocusOnClose,
|
|
8142
8148
|
closeOnOverlayClick: modalConfig.closeOnOverlayClick,
|
|
8143
8149
|
closeOnEsc: modalConfig.closeOnEsc,
|
|
8144
8150
|
scrollBehavior: modalConfig.scrollBehavior,
|
|
@@ -10588,6 +10594,9 @@ const EventsList = ({
|
|
|
10588
10594
|
const hoverBg = (_b = vars("colors-neutral-cultured2")) != null ? _b : "#F8F8F8";
|
|
10589
10595
|
const isCpr = type === "cpr";
|
|
10590
10596
|
const showEventLocation = !isCpr || Boolean(headquartersAddress);
|
|
10597
|
+
const courseLabel = text2 || "Curso";
|
|
10598
|
+
const showCourseLabel = type !== "cv-events";
|
|
10599
|
+
const isCourse = showCourseLabel && courseLabel === "Curso";
|
|
10591
10600
|
const showEventDuration = ["online", "in-person", "cpr"].includes(type) && duration !== void 0 && duration > 0;
|
|
10592
10601
|
const initOrEnd = ["end-course", "init-course", "init-course-flexible", "end-course-flexible"].includes(type);
|
|
10593
10602
|
const dateTextStyle = {
|
|
@@ -10602,7 +10611,10 @@ const EventsList = ({
|
|
|
10602
10611
|
alignItems: "center",
|
|
10603
10612
|
display: "flex",
|
|
10604
10613
|
gap: "4px",
|
|
10605
|
-
lineHeight: "normal"
|
|
10614
|
+
lineHeight: "normal",
|
|
10615
|
+
"&.isCourse": {
|
|
10616
|
+
alignItems: "self-start"
|
|
10617
|
+
}
|
|
10606
10618
|
};
|
|
10607
10619
|
const eventIconStyle = {
|
|
10608
10620
|
alignItems: "center",
|
|
@@ -10675,9 +10687,11 @@ const EventsList = ({
|
|
|
10675
10687
|
}), hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
10676
10688
|
}), showCourse && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
|
|
10677
10689
|
as: "span",
|
|
10690
|
+
className: isCourse ? "isCourse" : void 0,
|
|
10691
|
+
"data-testid": "event-course",
|
|
10678
10692
|
sx: detailTextStyle,
|
|
10679
|
-
children: [
|
|
10680
|
-
children:
|
|
10693
|
+
children: [showCourseLabel && /* @__PURE__ */ jsxs("strong", {
|
|
10694
|
+
children: [courseLabel, ":"]
|
|
10681
10695
|
}), " ", courseName]
|
|
10682
10696
|
}), showEventDuration && /* @__PURE__ */ jsxs(Box, {
|
|
10683
10697
|
display: "flex",
|