@eclass/ui-kit 1.59.7 → 1.60.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.
- package/dist/atoms/Icons/MapIndicator.d.ts +7 -0
- package/dist/atoms/Icons/MapIndicator.d.ts.map +1 -0
- package/dist/atoms/Icons/Remote.d.ts +7 -0
- package/dist/atoms/Icons/Remote.d.ts.map +1 -0
- package/dist/atoms/Icons/Time.d.ts +7 -0
- package/dist/atoms/Icons/Time.d.ts.map +1 -0
- package/dist/atoms/Icons/index.d.ts +4 -1
- package/dist/atoms/Icons/index.d.ts.map +1 -1
- package/dist/eclass-ui-kit.es.js +281 -68
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +30 -30
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/molecules/Buttons/BtnTertiary.d.ts +1 -1
- package/dist/molecules/Buttons/BtnTertiary.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/CalendarDropdown/Components/EventsGroup.d.ts.map +1 -1
- package/dist/organisms/Calendar/Dropdown/types.d.ts +3 -0
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts +5 -1
- package/dist/organisms/Calendar/EventsList/EventsList.d.ts.map +1 -1
- package/dist/organisms/Modals/Modal/ModalCard.d.ts +7 -0
- package/dist/organisms/Modals/Modal/ModalCard.d.ts.map +1 -0
- package/dist/organisms/Modals/Modal/ModalSimple.d.ts +4 -0
- package/dist/organisms/Modals/Modal/ModalSimple.d.ts.map +1 -0
- package/dist/organisms/Modals/index.d.ts +2 -0
- package/dist/organisms/Modals/index.d.ts.map +1 -1
- package/dist/organisms/Modals/types.d.ts +17 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapIndicator.d.ts","sourceRoot":"","sources":["../../../src/atoms/Icons/MapIndicator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAA;AAExC,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAU1D;yBAVe,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Remote.d.ts","sourceRoot":"","sources":["../../../src/atoms/Icons/Remote.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAA;AAExC,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CASpD;yBATe,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Time.d.ts","sourceRoot":"","sources":["../../../src/atoms/Icons/Time.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAA;AAExC,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CASlD;yBATe,IAAI"}
|
|
@@ -8,10 +8,13 @@ export * from './CircularInformation';
|
|
|
8
8
|
export * from './Download';
|
|
9
9
|
export * from './GoAhead';
|
|
10
10
|
export * from './GoBack';
|
|
11
|
-
export * from './Multimedia';
|
|
12
11
|
export * from './Loader';
|
|
12
|
+
export * from './MapIndicator';
|
|
13
|
+
export * from './Multimedia';
|
|
13
14
|
export * from './Profile';
|
|
15
|
+
export * from './Remote';
|
|
14
16
|
export * from './Schedule';
|
|
17
|
+
export * from './Time';
|
|
15
18
|
export * from './TinyAlertInfo';
|
|
16
19
|
export * from './TinyAlertError';
|
|
17
20
|
export * from './TinyAlertWarning';
|
|
@@ -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,cAAc,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,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"}
|
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -719,28 +719,6 @@ function GoBack(props) {
|
|
|
719
719
|
});
|
|
720
720
|
}
|
|
721
721
|
GoBack.displayName = "GoBack";
|
|
722
|
-
function Multimedia(props) {
|
|
723
|
-
return /* @__PURE__ */ jsxs(Base, {
|
|
724
|
-
...props,
|
|
725
|
-
w: "12px",
|
|
726
|
-
viewBox: "0 0 14 14",
|
|
727
|
-
title: "multimedia",
|
|
728
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
729
|
-
d: "M3 6C4.65685 6 6 4.65685 6 3C6 1.34315 4.65685 0 3 0C1.34315 0 0 1.34315 0 3C0 4.65685 1.34315 6 3 6Z",
|
|
730
|
-
fill: "currentColor"
|
|
731
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
732
|
-
d: "M11 6C12.6569 6 14 4.65685 14 3C14 1.34315 12.6569 0 11 0C9.34315 0 8 1.34315 8 3C8 4.65685 9.34315 6 11 6Z",
|
|
733
|
-
fill: "currentColor"
|
|
734
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
735
|
-
d: "M3 14C4.65685 14 6 12.6569 6 11C6 9.34315 4.65685 8 3 8C1.34315 8 0 9.34315 0 11C0 12.6569 1.34315 14 3 14Z",
|
|
736
|
-
fill: "currentColor"
|
|
737
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
738
|
-
d: "M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z",
|
|
739
|
-
fill: "currentColor"
|
|
740
|
-
})]
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
Multimedia.displayName = "Multimedia";
|
|
744
722
|
function Loader({
|
|
745
723
|
fill = "#fff"
|
|
746
724
|
}) {
|
|
@@ -786,6 +764,43 @@ function Loader({
|
|
|
786
764
|
})
|
|
787
765
|
});
|
|
788
766
|
}
|
|
767
|
+
function MapIndicator(props) {
|
|
768
|
+
return /* @__PURE__ */ jsx(Base, {
|
|
769
|
+
...props,
|
|
770
|
+
w: "16px",
|
|
771
|
+
h: "16px",
|
|
772
|
+
viewBox: "0 0 16 16",
|
|
773
|
+
title: "mapIndicator",
|
|
774
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
775
|
+
fill: "currentColor",
|
|
776
|
+
fillRule: "nonzero",
|
|
777
|
+
d: "M7 0C3.1 0 0 3.1 0 7c0 1.9.7 3.7 2.1 5 .1.1 4.1 3.7 4.2 3.8.4.3 1 .3 1.3 0 .1-.1 4.2-3.7 4.2-3.8 1.4-1.3 2.1-3.1 2.1-5 .1-3.9-3-7-6.9-7zm0 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"
|
|
778
|
+
})
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
MapIndicator.displayName = "MapIndicator";
|
|
782
|
+
function Multimedia(props) {
|
|
783
|
+
return /* @__PURE__ */ jsxs(Base, {
|
|
784
|
+
...props,
|
|
785
|
+
w: "12px",
|
|
786
|
+
viewBox: "0 0 14 14",
|
|
787
|
+
title: "multimedia",
|
|
788
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
789
|
+
d: "M3 6C4.65685 6 6 4.65685 6 3C6 1.34315 4.65685 0 3 0C1.34315 0 0 1.34315 0 3C0 4.65685 1.34315 6 3 6Z",
|
|
790
|
+
fill: "currentColor"
|
|
791
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
792
|
+
d: "M11 6C12.6569 6 14 4.65685 14 3C14 1.34315 12.6569 0 11 0C9.34315 0 8 1.34315 8 3C8 4.65685 9.34315 6 11 6Z",
|
|
793
|
+
fill: "currentColor"
|
|
794
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
795
|
+
d: "M3 14C4.65685 14 6 12.6569 6 11C6 9.34315 4.65685 8 3 8C1.34315 8 0 9.34315 0 11C0 12.6569 1.34315 14 3 14Z",
|
|
796
|
+
fill: "currentColor"
|
|
797
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
798
|
+
d: "M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z",
|
|
799
|
+
fill: "currentColor"
|
|
800
|
+
})]
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
Multimedia.displayName = "Multimedia";
|
|
789
804
|
function Profile(props) {
|
|
790
805
|
return /* @__PURE__ */ jsx(Base, {
|
|
791
806
|
...props,
|
|
@@ -799,6 +814,20 @@ function Profile(props) {
|
|
|
799
814
|
});
|
|
800
815
|
}
|
|
801
816
|
Profile.displayName = "Profile";
|
|
817
|
+
function Remote(props) {
|
|
818
|
+
return /* @__PURE__ */ jsx(Base, {
|
|
819
|
+
...props,
|
|
820
|
+
w: "16px",
|
|
821
|
+
h: "16px",
|
|
822
|
+
viewBox: "0 0 16 16",
|
|
823
|
+
title: "remote",
|
|
824
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
825
|
+
d: "M15 11V4C15 2.864 14.136 2 13 2H3C1.864 2 1 2.864 1 4V11H0V12C0 13.105 0.895 14 2 14H14C15.105 14 16 13.105 16 12V11H15ZM3 4H13V11H3V4Z",
|
|
826
|
+
fill: "currentColor"
|
|
827
|
+
})
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
Remote.displayName = "Remote";
|
|
802
831
|
function Schedule(props) {
|
|
803
832
|
return /* @__PURE__ */ jsxs(Base, {
|
|
804
833
|
...props,
|
|
@@ -829,6 +858,20 @@ function Schedule(props) {
|
|
|
829
858
|
});
|
|
830
859
|
}
|
|
831
860
|
Schedule.displayName = "Schedule";
|
|
861
|
+
function Time(props) {
|
|
862
|
+
return /* @__PURE__ */ jsx(Base, {
|
|
863
|
+
...props,
|
|
864
|
+
w: "16px",
|
|
865
|
+
h: "16px",
|
|
866
|
+
viewBox: "0 0 16 16",
|
|
867
|
+
title: "Time",
|
|
868
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
869
|
+
fill: "currentColor",
|
|
870
|
+
d: "M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm4 9H7V4h2v3h3v2z"
|
|
871
|
+
})
|
|
872
|
+
});
|
|
873
|
+
}
|
|
874
|
+
Time.displayName = "Time";
|
|
832
875
|
function TinyAlertInfo(props) {
|
|
833
876
|
return /* @__PURE__ */ jsxs(Base, {
|
|
834
877
|
...props,
|
|
@@ -1346,10 +1389,13 @@ var index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
1346
1389
|
Download,
|
|
1347
1390
|
GoAhead,
|
|
1348
1391
|
GoBack,
|
|
1349
|
-
Multimedia,
|
|
1350
1392
|
Loader,
|
|
1393
|
+
MapIndicator,
|
|
1394
|
+
Multimedia,
|
|
1351
1395
|
Profile,
|
|
1396
|
+
Remote,
|
|
1352
1397
|
Schedule,
|
|
1398
|
+
Time,
|
|
1353
1399
|
TinyAlertInfo,
|
|
1354
1400
|
TinyAlertError,
|
|
1355
1401
|
TinyAlertWarning,
|
|
@@ -1712,6 +1758,12 @@ function BtnTertiary({
|
|
|
1712
1758
|
record: /* @__PURE__ */ jsx(AcademicRecord, {
|
|
1713
1759
|
color: colorIcon
|
|
1714
1760
|
}),
|
|
1761
|
+
time: /* @__PURE__ */ jsx(Time, {
|
|
1762
|
+
color: colorIcon
|
|
1763
|
+
}),
|
|
1764
|
+
remote: /* @__PURE__ */ jsx(Remote, {
|
|
1765
|
+
color: colorIcon
|
|
1766
|
+
}),
|
|
1715
1767
|
noIcon: /* @__PURE__ */ jsx(Fragment, {})
|
|
1716
1768
|
};
|
|
1717
1769
|
let icon;
|
|
@@ -7658,6 +7710,102 @@ const Modal = ({
|
|
|
7658
7710
|
})]
|
|
7659
7711
|
});
|
|
7660
7712
|
};
|
|
7713
|
+
const ModalCard = ({
|
|
7714
|
+
children,
|
|
7715
|
+
isOpen,
|
|
7716
|
+
onClose,
|
|
7717
|
+
closeOnOverlayClick = true,
|
|
7718
|
+
closeOnEsc = true
|
|
7719
|
+
}) => {
|
|
7720
|
+
const modalConfig = useModalConfig({
|
|
7721
|
+
closeOnOverlayClick,
|
|
7722
|
+
scrollBehavior: "outside",
|
|
7723
|
+
fixedButtons: false,
|
|
7724
|
+
withoutMargin: false
|
|
7725
|
+
});
|
|
7726
|
+
return /* @__PURE__ */ jsxs(Modal$1, {
|
|
7727
|
+
closeOnOverlayClick,
|
|
7728
|
+
closeOnEsc,
|
|
7729
|
+
isOpen,
|
|
7730
|
+
motionPreset: "scale",
|
|
7731
|
+
onClose,
|
|
7732
|
+
scrollBehavior: "outside",
|
|
7733
|
+
blockScrollOnMount: false,
|
|
7734
|
+
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsx(ModalContent$1, {
|
|
7735
|
+
...modalConfig.contentProps,
|
|
7736
|
+
maxW: "355px",
|
|
7737
|
+
minW: "355px",
|
|
7738
|
+
minH: "auto",
|
|
7739
|
+
overflow: "hidden",
|
|
7740
|
+
sx: {
|
|
7741
|
+
...modalConfig.contentProps.sx,
|
|
7742
|
+
bgColor: vars("colors-neutral-white"),
|
|
7743
|
+
maxWidth: "355px"
|
|
7744
|
+
},
|
|
7745
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
7746
|
+
children
|
|
7747
|
+
})
|
|
7748
|
+
})]
|
|
7749
|
+
});
|
|
7750
|
+
};
|
|
7751
|
+
const ModalCardContent = ({
|
|
7752
|
+
children
|
|
7753
|
+
}) => {
|
|
7754
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
7755
|
+
p: "32px",
|
|
7756
|
+
children
|
|
7757
|
+
});
|
|
7758
|
+
};
|
|
7759
|
+
const ModalSimple = ({
|
|
7760
|
+
children,
|
|
7761
|
+
isOpen,
|
|
7762
|
+
onClose,
|
|
7763
|
+
closeOnOverlayClick = true,
|
|
7764
|
+
closeOnEsc,
|
|
7765
|
+
withoutMargin = false
|
|
7766
|
+
}) => {
|
|
7767
|
+
const modalConfig = useModalConfig({
|
|
7768
|
+
closeOnOverlayClick,
|
|
7769
|
+
scrollBehavior: "outside",
|
|
7770
|
+
fixedButtons: false,
|
|
7771
|
+
withoutMargin
|
|
7772
|
+
});
|
|
7773
|
+
return /* @__PURE__ */ jsxs(Modal$1, {
|
|
7774
|
+
closeOnOverlayClick: modalConfig.closeOnOverlayClick,
|
|
7775
|
+
closeOnEsc: closeOnEsc != null ? closeOnEsc : modalConfig.closeOnEsc,
|
|
7776
|
+
isOpen,
|
|
7777
|
+
motionPreset: "scale",
|
|
7778
|
+
onClose,
|
|
7779
|
+
scrollBehavior: "outside",
|
|
7780
|
+
blockScrollOnMount: false,
|
|
7781
|
+
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
7782
|
+
...modalConfig.contentProps,
|
|
7783
|
+
children: [/* @__PURE__ */ jsx(ModalCloseButton, {
|
|
7784
|
+
background: "transparent !important",
|
|
7785
|
+
border: "none",
|
|
7786
|
+
color: vars("colors-neutral-spanishGrey"),
|
|
7787
|
+
h: "12px",
|
|
7788
|
+
p: "22px",
|
|
7789
|
+
position: "absolute",
|
|
7790
|
+
right: 0,
|
|
7791
|
+
top: 0,
|
|
7792
|
+
w: "12px",
|
|
7793
|
+
zIndex: 2,
|
|
7794
|
+
_focus: {
|
|
7795
|
+
boxShadow: "none"
|
|
7796
|
+
},
|
|
7797
|
+
_focusVisible: {
|
|
7798
|
+
boxShadow: `inset 0 0 0 2px ${vars("colors-alert-deepSkyBlue")}, inset 0 0 0 4px ${vars("colors-neutral-white")}`
|
|
7799
|
+
}
|
|
7800
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
7801
|
+
"data-testid": "modal-simple-content",
|
|
7802
|
+
px: withoutMargin ? 0 : "24px",
|
|
7803
|
+
py: withoutMargin ? 0 : "32px",
|
|
7804
|
+
children
|
|
7805
|
+
})]
|
|
7806
|
+
})]
|
|
7807
|
+
});
|
|
7808
|
+
};
|
|
7661
7809
|
const StyledModalFooter = ModalFooter;
|
|
7662
7810
|
const StyledModalBody = ModalBody;
|
|
7663
7811
|
const ModalButtons = ({
|
|
@@ -10062,15 +10210,17 @@ const EventsGroup = ({
|
|
|
10062
10210
|
children: /* @__PURE__ */ jsx(MenuGroup, {
|
|
10063
10211
|
title,
|
|
10064
10212
|
children: events.map((event) => {
|
|
10065
|
-
var _a2;
|
|
10213
|
+
var _a2, _b;
|
|
10214
|
+
const hasUrl = Boolean(event.url);
|
|
10215
|
+
const eventOnClick = onClickEvent && hasUrl ? () => onClickEvent(event) : void 0;
|
|
10066
10216
|
return /* @__PURE__ */ jsx(Box, {
|
|
10067
10217
|
bg: (_a2 = vars("colors-neutral-white")) != null ? _a2 : "#FFFFFF",
|
|
10068
10218
|
border: "none",
|
|
10069
|
-
cursor:
|
|
10219
|
+
cursor: "default",
|
|
10070
10220
|
padding: "0",
|
|
10071
10221
|
_hover: {
|
|
10072
10222
|
boxShadow: "none !important",
|
|
10073
|
-
cursor:
|
|
10223
|
+
cursor: "default !important",
|
|
10074
10224
|
bg: "none !important"
|
|
10075
10225
|
},
|
|
10076
10226
|
_focus: {
|
|
@@ -10082,13 +10232,16 @@ const EventsGroup = ({
|
|
|
10082
10232
|
courseName: event.course.name,
|
|
10083
10233
|
day: event.formatedDate.day,
|
|
10084
10234
|
date: event.formatedDate.date,
|
|
10235
|
+
duration: event.duration_in_minutes,
|
|
10085
10236
|
time: event.formatedDate.time,
|
|
10086
10237
|
color: event.course_id && (colors2 == null ? void 0 : colors2[event.course_id]) ? colors2[event.course_id] : "#82504A",
|
|
10087
10238
|
text: text2,
|
|
10088
10239
|
type: event.type,
|
|
10089
10240
|
hasNotification: event.isNew,
|
|
10090
|
-
|
|
10091
|
-
|
|
10241
|
+
headquartersAddress: event.headquarters_address,
|
|
10242
|
+
onClick: eventOnClick,
|
|
10243
|
+
showCourse: true,
|
|
10244
|
+
url: (_b = event.url) != null ? _b : ""
|
|
10092
10245
|
}, event.id)
|
|
10093
10246
|
}, event.id);
|
|
10094
10247
|
})
|
|
@@ -10377,20 +10530,28 @@ const EventsList = ({
|
|
|
10377
10530
|
color,
|
|
10378
10531
|
day,
|
|
10379
10532
|
date,
|
|
10533
|
+
duration,
|
|
10380
10534
|
name,
|
|
10381
10535
|
hasNotification,
|
|
10536
|
+
headquartersAddress,
|
|
10382
10537
|
onClick,
|
|
10383
10538
|
showCourse,
|
|
10384
10539
|
showUnit,
|
|
10385
10540
|
time,
|
|
10386
10541
|
text: text2,
|
|
10387
10542
|
type,
|
|
10388
|
-
unitName
|
|
10543
|
+
unitName,
|
|
10544
|
+
unavailableLabel = "A\xFAn no disponible",
|
|
10545
|
+
url
|
|
10389
10546
|
}) => {
|
|
10390
|
-
var _a, _b
|
|
10547
|
+
var _a, _b;
|
|
10391
10548
|
const border = `1px solid ${(_a = vars("colors-neutral-platinum")) != null ? _a : "#E8E8E8"}`;
|
|
10392
|
-
const
|
|
10393
|
-
const
|
|
10549
|
+
const hasUrl = Boolean(url);
|
|
10550
|
+
const isAvailable = url === void 0 ? true : hasUrl;
|
|
10551
|
+
const disabledOpacity = isAvailable ? 1 : 0.5;
|
|
10552
|
+
const isCpr = type === "cpr";
|
|
10553
|
+
const showEventLocation = !isCpr || Boolean(headquartersAddress);
|
|
10554
|
+
const showEventDuration = ["online", "in-person", "cpr"].includes(type) && duration !== void 0 && duration > 0;
|
|
10394
10555
|
const initOrEnd = ["end-course", "init-course", "init-course-flexible", "end-course-flexible"].includes(type);
|
|
10395
10556
|
const dateTextStyle = {
|
|
10396
10557
|
color: vars("colors-neutral-white"),
|
|
@@ -10399,24 +10560,30 @@ const EventsList = ({
|
|
|
10399
10560
|
lineHeight: "100%"
|
|
10400
10561
|
};
|
|
10401
10562
|
const detailTextStyle = {
|
|
10402
|
-
color: (
|
|
10563
|
+
color: (_b = vars("colors-neutral-gray")) != null ? _b : "#808080",
|
|
10403
10564
|
fontSize: "14px",
|
|
10404
|
-
|
|
10565
|
+
alignItems: "center",
|
|
10566
|
+
display: "flex",
|
|
10405
10567
|
gap: "4px",
|
|
10406
10568
|
lineHeight: "normal"
|
|
10407
10569
|
};
|
|
10570
|
+
const eventIconStyle = {
|
|
10571
|
+
alignItems: "center",
|
|
10572
|
+
display: "inline-flex",
|
|
10573
|
+
height: "24px",
|
|
10574
|
+
justifyContent: "center",
|
|
10575
|
+
minWidth: "16px"
|
|
10576
|
+
};
|
|
10408
10577
|
return /* @__PURE__ */ jsxs(Box, {
|
|
10409
10578
|
className: "eventsList",
|
|
10410
10579
|
borderTop: border,
|
|
10411
10580
|
display: "flex",
|
|
10412
10581
|
gap: "12px",
|
|
10413
|
-
cursor:
|
|
10414
|
-
onClick,
|
|
10582
|
+
cursor: "default",
|
|
10583
|
+
onClick: void 0,
|
|
10415
10584
|
p: "16px",
|
|
10416
10585
|
transition: "background-color 0.2s ease",
|
|
10417
|
-
_hover:
|
|
10418
|
-
bg: hoverBg
|
|
10419
|
-
} : void 0,
|
|
10586
|
+
_hover: void 0,
|
|
10420
10587
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
10421
10588
|
bg: color,
|
|
10422
10589
|
minW: "88px",
|
|
@@ -10428,6 +10595,7 @@ const EventsList = ({
|
|
|
10428
10595
|
display: "flex",
|
|
10429
10596
|
flexDirection: "column",
|
|
10430
10597
|
justifyContent: "space-around",
|
|
10598
|
+
opacity: disabledOpacity,
|
|
10431
10599
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
10432
10600
|
as: "span",
|
|
10433
10601
|
sx: dateTextStyle,
|
|
@@ -10445,39 +10613,84 @@ const EventsList = ({
|
|
|
10445
10613
|
flexDirection: "column",
|
|
10446
10614
|
gap: "8px",
|
|
10447
10615
|
w: "100%",
|
|
10448
|
-
children: [/* @__PURE__ */
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
fontSize: "16px",
|
|
10452
|
-
fontWeight: "700",
|
|
10453
|
-
justifyContent: "space-between",
|
|
10454
|
-
lineHeight: "21px",
|
|
10616
|
+
children: [!isAvailable && /* @__PURE__ */ jsx(TinyAlert, {
|
|
10617
|
+
status: "warning",
|
|
10618
|
+
text: unavailableLabel,
|
|
10455
10619
|
sx: {
|
|
10456
|
-
"
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
">svg": {
|
|
10460
|
-
alignSelf: "flex-start"
|
|
10620
|
+
padding: "4px 6px",
|
|
10621
|
+
"> span": {
|
|
10622
|
+
fontSize: "12px"
|
|
10461
10623
|
}
|
|
10462
|
-
}
|
|
10463
|
-
|
|
10464
|
-
children: name
|
|
10465
|
-
}), hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
10466
|
-
}), showCourse && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
|
|
10467
|
-
as: "span",
|
|
10468
|
-
sx: detailTextStyle,
|
|
10469
|
-
children: [/* @__PURE__ */ jsx("strong", {
|
|
10470
|
-
children: text2 ? `${text2}:` : "Curso:"
|
|
10471
|
-
}), " ", courseName]
|
|
10472
|
-
}), showUnit && !initOrEnd && /* @__PURE__ */ jsx(Box, {
|
|
10624
|
+
}
|
|
10625
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
10473
10626
|
display: "flex",
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10627
|
+
flexDirection: "column",
|
|
10628
|
+
gap: "8px",
|
|
10629
|
+
opacity: disabledOpacity,
|
|
10630
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
10631
|
+
alignItems: "center",
|
|
10632
|
+
display: "flex",
|
|
10633
|
+
fontSize: "16px",
|
|
10634
|
+
fontWeight: "700",
|
|
10635
|
+
justifyContent: "space-between",
|
|
10636
|
+
lineHeight: "21px",
|
|
10637
|
+
sx: {
|
|
10638
|
+
">span": {
|
|
10639
|
+
width: "calc(100% - 12px)"
|
|
10640
|
+
},
|
|
10641
|
+
">svg": {
|
|
10642
|
+
alignSelf: "flex-start"
|
|
10643
|
+
}
|
|
10644
|
+
},
|
|
10645
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
10646
|
+
children: name
|
|
10647
|
+
}), hasNotification && /* @__PURE__ */ jsx(NotificationIcon, {})]
|
|
10648
|
+
}), showCourse && !initOrEnd && /* @__PURE__ */ jsxs(Box, {
|
|
10477
10649
|
as: "span",
|
|
10478
10650
|
sx: detailTextStyle,
|
|
10479
|
-
children:
|
|
10480
|
-
|
|
10651
|
+
children: [type === "cv-events" ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsx("strong", {
|
|
10652
|
+
children: text2 ? `${text2}:` : "Curso:"
|
|
10653
|
+
}), " ", courseName]
|
|
10654
|
+
}), showEventDuration && /* @__PURE__ */ jsxs(Box, {
|
|
10655
|
+
display: "flex",
|
|
10656
|
+
flexDirection: "row",
|
|
10657
|
+
gap: "8px",
|
|
10658
|
+
flexWrap: "wrap",
|
|
10659
|
+
children: [showEventLocation && /* @__PURE__ */ jsxs(Box, {
|
|
10660
|
+
as: "span",
|
|
10661
|
+
sx: detailTextStyle,
|
|
10662
|
+
paddingRight: "8px",
|
|
10663
|
+
borderRight: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
10664
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
10665
|
+
as: "span",
|
|
10666
|
+
sx: eventIconStyle,
|
|
10667
|
+
children: isCpr ? /* @__PURE__ */ jsx(MapIndicator, {
|
|
10668
|
+
color: vars("colors-main-ziggurat")
|
|
10669
|
+
}) : /* @__PURE__ */ jsx(Remote, {
|
|
10670
|
+
color: vars("colors-main-ziggurat")
|
|
10671
|
+
})
|
|
10672
|
+
}), isCpr ? headquartersAddress : "Link clase online"]
|
|
10673
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
10674
|
+
as: "span",
|
|
10675
|
+
sx: detailTextStyle,
|
|
10676
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
10677
|
+
as: "span",
|
|
10678
|
+
sx: eventIconStyle,
|
|
10679
|
+
children: /* @__PURE__ */ jsx(Time, {
|
|
10680
|
+
color: vars("colors-main-ziggurat")
|
|
10681
|
+
})
|
|
10682
|
+
}), duration, " min"]
|
|
10683
|
+
})]
|
|
10684
|
+
}), showUnit && !initOrEnd && /* @__PURE__ */ jsx(Box, {
|
|
10685
|
+
display: "flex",
|
|
10686
|
+
gap: "4px",
|
|
10687
|
+
alignItems: "baseline",
|
|
10688
|
+
children: /* @__PURE__ */ jsx(Box, {
|
|
10689
|
+
as: "span",
|
|
10690
|
+
sx: detailTextStyle,
|
|
10691
|
+
children: unitName
|
|
10692
|
+
})
|
|
10693
|
+
})]
|
|
10481
10694
|
})]
|
|
10482
10695
|
})]
|
|
10483
10696
|
});
|
|
@@ -11004,5 +11217,5 @@ const UserDropdown = ({
|
|
|
11004
11217
|
})
|
|
11005
11218
|
});
|
|
11006
11219
|
};
|
|
11007
|
-
export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index$1 as Icons, Label, Modal, ModalAlert, ModalAlertButtons, ModalAlertNew, ModalButtons, ModalContent, ModalMultiple, NavBarButton, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserDropdown, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
|
|
11220
|
+
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 };
|
|
11008
11221
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|