@eclass/ui-kit 1.43.0 → 1.44.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.
@@ -31983,11 +31983,245 @@ function ModalAlert({
31983
31983
  });
31984
31984
  }
31985
31985
  ModalAlert.displayName = "ModalAlert";
31986
- const Events = () => {
31987
- return /* @__PURE__ */ jsx("div", {
31988
- children: "Hola soy un Evento"
31986
+ const Calendar = ({
31987
+ color: color2 = "white"
31988
+ }) => {
31989
+ return /* @__PURE__ */ jsxs(Icon, {
31990
+ width: "16px",
31991
+ height: "17px",
31992
+ viewBox: "0 0 16 17",
31993
+ fill: "none",
31994
+ xmlns: "http://www.w3.org/2000/svg",
31995
+ children: [/* @__PURE__ */ jsx("path", {
31996
+ d: "M15 2.5H13V0.5H11V2.5H9V0.5H7V2.5H5V0.5H3V2.5H1C0.447 2.5 0 2.947 0 3.5V15.5C0 16.053 0.447 16.5 1 16.5H15C15.553 16.5 16 16.053 16 15.5V3.5C16 2.947 15.553 2.5 15 2.5ZM14 14.5H2V5.5H14V14.5Z",
31997
+ fill: color2
31998
+ }), /* @__PURE__ */ jsx("path", {
31999
+ d: "M6 7.5H4V9.5H6V7.5Z",
32000
+ fill: color2
32001
+ }), /* @__PURE__ */ jsx("path", {
32002
+ d: "M9 7.5H7V9.5H9V7.5Z",
32003
+ fill: color2
32004
+ }), /* @__PURE__ */ jsx("path", {
32005
+ d: "M6 10.5H4V12.5H6V10.5Z",
32006
+ fill: color2
32007
+ }), /* @__PURE__ */ jsx("path", {
32008
+ d: "M9 10.5H7V12.5H9V10.5Z",
32009
+ fill: color2
32010
+ }), /* @__PURE__ */ jsx("path", {
32011
+ d: "M12 7.5H10V9.5H12V7.5Z",
32012
+ fill: color2
32013
+ }), /* @__PURE__ */ jsx("path", {
32014
+ d: "M12 10.5H10V12.5H12V10.5Z",
32015
+ fill: color2
32016
+ })]
32017
+ });
32018
+ };
32019
+ const Clock = ({
32020
+ color: color2 = "white"
32021
+ }) => {
32022
+ return /* @__PURE__ */ jsx(Icon, {
32023
+ width: "16px",
32024
+ height: "17px",
32025
+ viewBox: "0 0 16 17",
32026
+ fill: "none",
32027
+ xmlns: "http://www.w3.org/2000/svg",
32028
+ children: /* @__PURE__ */ jsx("path", {
32029
+ fillRule: "evenodd",
32030
+ clipRule: "evenodd",
32031
+ d: "M0 8.5C0 4.1 3.6 0.5 8 0.5C12.4 0.5 16 4.1 16 8.5C16 12.9 12.4 16.5 8 16.5C3.6 16.5 0 12.9 0 8.5ZM7 9.5H12V7.5H9V4.5H7V9.5Z",
32032
+ fill: color2
32033
+ })
31989
32034
  });
31990
32035
  };
32036
+ const LargeBox = ({
32037
+ id: id2,
32038
+ eventTitle,
32039
+ startDate,
32040
+ startTime,
32041
+ buttonInfo,
32042
+ redirect,
32043
+ eventImage,
32044
+ targetBlank,
32045
+ isMobile
32046
+ }) => {
32047
+ return /* @__PURE__ */ jsx(Link, {
32048
+ href: redirect,
32049
+ _hover: {
32050
+ textDecoration: "none"
32051
+ },
32052
+ target: targetBlank ? "_blank" : "_self",
32053
+ rel: targetBlank ? "noopener noreferrer" : void 0,
32054
+ display: "inline-block",
32055
+ children: /* @__PURE__ */ jsxs(Flex, {
32056
+ cursor: "pointer",
32057
+ transition: "box-shadow 0.3s ease-in-out",
32058
+ _hover: {
32059
+ shadow: "sm"
32060
+ },
32061
+ w: "fit-content",
32062
+ borderRadius: "8px",
32063
+ display: isMobile ? "block" : "flex",
32064
+ children: [/* @__PURE__ */ jsx(Box, {
32065
+ width: "285px",
32066
+ height: isMobile ? "140px" : "168px",
32067
+ bgImage: `linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,1) 100%), url(${eventImage})`,
32068
+ backgroundSize: "cover",
32069
+ borderRadius: isMobile ? "8px 8px 0px 0px" : "8px 0 0 8px"
32070
+ }), /* @__PURE__ */ jsxs(Box, {
32071
+ width: isMobile ? "285px" : "305px",
32072
+ minHeight: isMobile ? "160px" : "168px",
32073
+ borderRadius: isMobile ? "0 0 8px 8px" : "0 8px 8px 0",
32074
+ border: "1px",
32075
+ borderColor: vars("colors-neutral-platinum"),
32076
+ display: "flex",
32077
+ flexDirection: "column",
32078
+ cursor: "pointer",
32079
+ children: [/* @__PURE__ */ jsxs(Box, {
32080
+ width: "inherit",
32081
+ height: "100%",
32082
+ padding: "4",
32083
+ color: "#555555",
32084
+ gap: "16px",
32085
+ display: "grid",
32086
+ children: [/* @__PURE__ */ jsx(Text, {
32087
+ fontWeight: "700",
32088
+ children: eventTitle
32089
+ }), /* @__PURE__ */ jsxs(Box, {
32090
+ display: "flex",
32091
+ alignItems: "center",
32092
+ gap: "4px",
32093
+ children: [/* @__PURE__ */ jsx(Calendar, {
32094
+ color: vars("colors-main-ziggurat")
32095
+ }), /* @__PURE__ */ jsx(Text, {
32096
+ fontWeight: "400",
32097
+ children: startDate
32098
+ }), /* @__PURE__ */ jsx(Text, {
32099
+ color: vars("colors-neutral-platinum"),
32100
+ children: "|"
32101
+ }), /* @__PURE__ */ jsx(Clock, {
32102
+ color: vars("colors-main-ziggurat")
32103
+ }), /* @__PURE__ */ jsx(Text, {
32104
+ children: startTime
32105
+ })]
32106
+ })]
32107
+ }), /* @__PURE__ */ jsx(Box, {
32108
+ borderTop: `1px solid ${vars("colors-neutral-platinum")}`,
32109
+ width: "100%",
32110
+ height: "50px",
32111
+ padding: "12px",
32112
+ backgroundColor: "white",
32113
+ alignItems: "center",
32114
+ display: "flex",
32115
+ justifyContent: "center",
32116
+ borderRadius: " 0 0 8px 8px",
32117
+ fontSize: "16px",
32118
+ fontFamily: "Roboto",
32119
+ color: vars("colors-main-deepSkyBlue"),
32120
+ fontWeight: "500",
32121
+ children: buttonInfo
32122
+ })]
32123
+ })]
32124
+ })
32125
+ }, id2);
32126
+ };
32127
+ const SmallBox = ({
32128
+ id: id2,
32129
+ eventTitle,
32130
+ startDate,
32131
+ startTime,
32132
+ buttonInfo,
32133
+ redirect,
32134
+ eventImage,
32135
+ targetBlank
32136
+ }) => {
32137
+ return /* @__PURE__ */ jsx(Link, {
32138
+ href: redirect,
32139
+ _hover: {
32140
+ textDecoration: "none"
32141
+ },
32142
+ target: targetBlank ? "_blank" : "_self",
32143
+ rel: targetBlank ? "noopener noreferrer" : void 0,
32144
+ display: "inline-block",
32145
+ children: /* @__PURE__ */ jsxs(Box, {
32146
+ width: "286px",
32147
+ height: "247px",
32148
+ borderRadius: "8px",
32149
+ border: "1px",
32150
+ borderColor: vars("colors-neutral-platinum"),
32151
+ justifyContent: "center",
32152
+ textAlign: "center",
32153
+ display: "flex",
32154
+ flexDirection: "column",
32155
+ cursor: "pointer",
32156
+ transition: "box-shadow 0.3s ease-in-out",
32157
+ _hover: {
32158
+ shadow: "sm"
32159
+ },
32160
+ children: [/* @__PURE__ */ jsx(Box, {
32161
+ flex: "1",
32162
+ bgImage: `linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,1) 100%), url(${eventImage})`,
32163
+ backgroundSize: "cover",
32164
+ borderRadius: "8px 8px 0 0",
32165
+ margin: "0",
32166
+ display: "grid",
32167
+ alignItems: "flex-end",
32168
+ children: /* @__PURE__ */ jsxs(Box, {
32169
+ color: vars("colors-neutral-white"),
32170
+ padding: "16px",
32171
+ textAlign: "initial",
32172
+ fontFamily: "Roboto",
32173
+ fontSize: "16px",
32174
+ lineHeight: "21px",
32175
+ display: "grid",
32176
+ gap: "8px",
32177
+ children: [/* @__PURE__ */ jsx(Text, {
32178
+ fontWeight: "700",
32179
+ children: eventTitle
32180
+ }), /* @__PURE__ */ jsxs(Box, {
32181
+ display: "flex",
32182
+ alignItems: "center",
32183
+ gap: "4px",
32184
+ children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsx(Text, {
32185
+ fontWeight: "400",
32186
+ children: startDate
32187
+ }), /* @__PURE__ */ jsx(Text, {
32188
+ children: "|"
32189
+ }), /* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx(Text, {
32190
+ children: startTime
32191
+ })]
32192
+ })]
32193
+ })
32194
+ }), /* @__PURE__ */ jsx(Box, {
32195
+ width: "100%",
32196
+ height: "50px",
32197
+ backgroundColor: "white",
32198
+ alignItems: "center",
32199
+ display: "flex",
32200
+ justifyContent: "center",
32201
+ borderRadius: " 0 0 8px 8px",
32202
+ fontSize: "16px",
32203
+ fontFamily: "Roboto",
32204
+ color: vars("colors-main-deepSkyBlue"),
32205
+ fontWeight: "500",
32206
+ children: buttonInfo
32207
+ })]
32208
+ })
32209
+ }, id2);
32210
+ };
32211
+ const Eventos = ({
32212
+ typeEvent,
32213
+ itemsEvent
32214
+ }) => {
32215
+ if (typeEvent === "LARGE_EVENTS") {
32216
+ return /* @__PURE__ */ jsx(LargeBox, {
32217
+ ...itemsEvent
32218
+ });
32219
+ } else {
32220
+ return /* @__PURE__ */ jsx(SmallBox, {
32221
+ ...itemsEvent
32222
+ });
32223
+ }
32224
+ };
31991
32225
  const Avi = () => {
31992
32226
  return /* @__PURE__ */ jsxs(Icon, {
31993
32227
  width: "32px",
@@ -32955,62 +33189,73 @@ const Resources = ({
32955
33189
  resourceDetail,
32956
33190
  resourceTextDownload,
32957
33191
  resourceLink,
32958
- resourceNameFile
33192
+ targetBlank
32959
33193
  }) => {
32960
- return /* @__PURE__ */ jsxs(Box, {
32961
- width: "285px",
32962
- height: "147px",
32963
- borderRadius: "8px",
32964
- border: "1px",
32965
- borderColor: vars("colors-neutral-platinum"),
32966
- justifyContent: "center",
32967
- textAlign: "center",
32968
- display: "grid",
32969
- gap: "8px",
32970
- padding: 4,
32971
- children: [/* @__PURE__ */ jsx(Box, {
32972
- children: /* @__PURE__ */ jsx(Icons, {
32973
- type: resourceType
32974
- })
32975
- }), /* @__PURE__ */ jsx(Box, {
32976
- children: /* @__PURE__ */ jsx(Text, {
32977
- fontFamily: "Roboto",
32978
- fontWeight: "700",
32979
- lineHeight: "21px",
32980
- fontSize: "16px",
32981
- color: "#555555",
32982
- children: resourceTitle
32983
- })
32984
- }), /* @__PURE__ */ jsx(Box, {
32985
- children: /* @__PURE__ */ jsx(Text, {
32986
- fontFamily: "Roboto",
32987
- fontWeight: "400",
32988
- lineHeight: "14px",
32989
- fontSize: "12px",
32990
- color: "#555555",
32991
- children: resourceDetail
32992
- })
32993
- }), /* @__PURE__ */ jsx(Box, {
32994
- display: "flex",
32995
- alignItems: "center",
33194
+ return /* @__PURE__ */ jsx(Link, {
33195
+ href: resourceLink,
33196
+ target: targetBlank ? "_blank" : "_self",
33197
+ rel: targetBlank ? "noopener noreferrer" : void 0,
33198
+ _hover: {
33199
+ textDecoration: "none"
33200
+ },
33201
+ children: /* @__PURE__ */ jsxs(Box, {
33202
+ width: "285px",
33203
+ height: "147px",
33204
+ borderRadius: "8px",
33205
+ border: "1px",
33206
+ borderColor: vars("colors-neutral-platinum"),
32996
33207
  justifyContent: "center",
32997
- children: /* @__PURE__ */ jsxs(Link, {
32998
- href: resourceLink,
32999
- fontFamily: "Roboto",
33000
- fontWeight: "500",
33001
- fontSize: "14px",
33002
- lineHeight: "16px",
33003
- color: vars("colors-neutral-gray"),
33004
- download: resourceNameFile,
33005
- textDecoration: "underline",
33006
- gap: "8px",
33208
+ textAlign: "center",
33209
+ display: "grid",
33210
+ gap: "8px",
33211
+ padding: 4,
33212
+ transition: "box-shadow 0.3s ease-in-out",
33213
+ _hover: {
33214
+ shadow: "sm"
33215
+ },
33216
+ cursor: "pointer",
33217
+ children: [/* @__PURE__ */ jsx(Box, {
33218
+ children: /* @__PURE__ */ jsx(Icons, {
33219
+ type: resourceType
33220
+ })
33221
+ }), /* @__PURE__ */ jsx(Box, {
33222
+ children: /* @__PURE__ */ jsx(Text, {
33223
+ fontFamily: "Roboto",
33224
+ fontWeight: "700",
33225
+ lineHeight: "21px",
33226
+ fontSize: "16px",
33227
+ color: "#555555",
33228
+ children: resourceTitle
33229
+ })
33230
+ }), /* @__PURE__ */ jsx(Box, {
33231
+ children: /* @__PURE__ */ jsx(Text, {
33232
+ fontFamily: "Roboto",
33233
+ fontWeight: "400",
33234
+ lineHeight: "14px",
33235
+ fontSize: "12px",
33236
+ color: "#555555",
33237
+ children: resourceDetail
33238
+ })
33239
+ }), /* @__PURE__ */ jsx(Box, {
33007
33240
  display: "flex",
33008
- children: [/* @__PURE__ */ jsx(Download, {
33009
- color: vars("colors-main-deepSkyBlue")
33010
- }), resourceTextDownload]
33011
- })
33012
- })]
33241
+ alignItems: "center",
33242
+ justifyContent: "center",
33243
+ children: /* @__PURE__ */ jsxs(Text, {
33244
+ fontFamily: "Roboto",
33245
+ fontWeight: "500",
33246
+ fontSize: "14px",
33247
+ lineHeight: "16px",
33248
+ color: vars("colors-neutral-gray"),
33249
+ textDecoration: "underline",
33250
+ gap: "8px",
33251
+ display: "flex",
33252
+ children: [/* @__PURE__ */ jsx(Download, {
33253
+ color: vars("colors-main-deepSkyBlue")
33254
+ }), resourceTextDownload]
33255
+ })
33256
+ })]
33257
+ })
33013
33258
  });
33014
33259
  };
33015
- export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, Events, FlashNotification, index as Icons, Label, ModalAlert, NewTooltip, Progress, Resources, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
33260
+ export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, Eventos, FlashNotification, index as Icons, Label, ModalAlert, NewTooltip, Progress, Resources, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
33016
33261
  //# sourceMappingURL=eclass-ui-kit.es.js.map