@eclass/ui-kit 1.43.0 → 1.45.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 +306 -56
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +50 -50
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/Events/Eventos.d.ts +3 -0
- package/dist/organisms/Events/EventsTypes.d.ts +17 -0
- package/dist/organisms/Events/Icons/Calendar.d.ts +6 -0
- package/dist/organisms/Events/Icons/Clock.d.ts +6 -0
- package/dist/organisms/Events/Icons/index.d.ts +2 -0
- package/dist/organisms/Events/TypeBox/LargeBox.d.ts +3 -0
- package/dist/organisms/Events/TypeBox/SmallBox.d.ts +3 -0
- package/dist/organisms/Events/TypeBox/index.d.ts +2 -0
- package/dist/organisms/Events/index.d.ts +1 -1
- package/dist/organisms/Resources/Resources.d.ts +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/organisms/Events/Events.d.ts +0 -2
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -31983,11 +31983,247 @@ function ModalAlert({
|
|
|
31983
31983
|
});
|
|
31984
31984
|
}
|
|
31985
31985
|
ModalAlert.displayName = "ModalAlert";
|
|
31986
|
-
const
|
|
31987
|
-
|
|
31988
|
-
|
|
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
|
+
})]
|
|
31989
32017
|
});
|
|
31990
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
|
+
})
|
|
32034
|
+
});
|
|
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: "contents",
|
|
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: vars("radii-big"),
|
|
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: vars("borders-light"),
|
|
32075
|
+
display: "flex",
|
|
32076
|
+
flexDirection: "column",
|
|
32077
|
+
cursor: "pointer",
|
|
32078
|
+
children: [/* @__PURE__ */ jsxs(Box, {
|
|
32079
|
+
width: "inherit",
|
|
32080
|
+
height: "100%",
|
|
32081
|
+
padding: "4",
|
|
32082
|
+
color: "#555555",
|
|
32083
|
+
gap: "16px",
|
|
32084
|
+
display: "grid",
|
|
32085
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
32086
|
+
fontWeight: "700",
|
|
32087
|
+
children: eventTitle
|
|
32088
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
32089
|
+
display: "flex",
|
|
32090
|
+
alignItems: "center",
|
|
32091
|
+
gap: "4px",
|
|
32092
|
+
children: [/* @__PURE__ */ jsx(Calendar, {
|
|
32093
|
+
color: vars("colors-main-ziggurat")
|
|
32094
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
32095
|
+
fontWeight: "400",
|
|
32096
|
+
children: startDate
|
|
32097
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
32098
|
+
color: vars("borders-light"),
|
|
32099
|
+
children: "|"
|
|
32100
|
+
}), /* @__PURE__ */ jsx(Clock, {
|
|
32101
|
+
color: vars("colors-main-ziggurat")
|
|
32102
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
32103
|
+
children: startTime
|
|
32104
|
+
})]
|
|
32105
|
+
})]
|
|
32106
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
32107
|
+
borderTop: `${vars("borders-light")}`,
|
|
32108
|
+
width: "100%",
|
|
32109
|
+
height: "50px",
|
|
32110
|
+
padding: "12px",
|
|
32111
|
+
backgroundColor: "white",
|
|
32112
|
+
alignItems: "center",
|
|
32113
|
+
display: "flex",
|
|
32114
|
+
justifyContent: "center",
|
|
32115
|
+
borderRadius: " 0 0 8px 8px",
|
|
32116
|
+
fontSize: "16px",
|
|
32117
|
+
fontFamily: "Roboto",
|
|
32118
|
+
color: vars("colors-main-deepSkyBlue"),
|
|
32119
|
+
fontWeight: "500",
|
|
32120
|
+
children: buttonInfo
|
|
32121
|
+
})]
|
|
32122
|
+
})]
|
|
32123
|
+
})
|
|
32124
|
+
}, id2);
|
|
32125
|
+
};
|
|
32126
|
+
const SmallBox = ({
|
|
32127
|
+
id: id2,
|
|
32128
|
+
eventTitle,
|
|
32129
|
+
startDate,
|
|
32130
|
+
startTime,
|
|
32131
|
+
buttonInfo,
|
|
32132
|
+
redirect,
|
|
32133
|
+
eventImage,
|
|
32134
|
+
targetBlank
|
|
32135
|
+
}) => {
|
|
32136
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
32137
|
+
href: redirect,
|
|
32138
|
+
_hover: {
|
|
32139
|
+
textDecoration: "none"
|
|
32140
|
+
},
|
|
32141
|
+
target: targetBlank ? "_blank" : "_self",
|
|
32142
|
+
rel: targetBlank ? "noopener noreferrer" : void 0,
|
|
32143
|
+
display: "contents",
|
|
32144
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
32145
|
+
width: "286px",
|
|
32146
|
+
height: "247px",
|
|
32147
|
+
borderRadius: vars("radii-big"),
|
|
32148
|
+
border: vars("borders-light"),
|
|
32149
|
+
justifyContent: "center",
|
|
32150
|
+
textAlign: "center",
|
|
32151
|
+
display: "flex",
|
|
32152
|
+
flexDirection: "column",
|
|
32153
|
+
cursor: "pointer",
|
|
32154
|
+
transition: "box-shadow 0.3s ease-in-out",
|
|
32155
|
+
_hover: {
|
|
32156
|
+
shadow: "sm"
|
|
32157
|
+
},
|
|
32158
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
32159
|
+
flex: "1",
|
|
32160
|
+
bgImage: `linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,1) 100%), url(${eventImage})`,
|
|
32161
|
+
backgroundSize: "cover",
|
|
32162
|
+
borderRadius: "8px 8px 0 0",
|
|
32163
|
+
margin: "0",
|
|
32164
|
+
display: "grid",
|
|
32165
|
+
alignItems: "flex-end",
|
|
32166
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
32167
|
+
color: vars("colors-neutral-white"),
|
|
32168
|
+
padding: "16px",
|
|
32169
|
+
textAlign: "initial",
|
|
32170
|
+
fontFamily: "Roboto",
|
|
32171
|
+
fontSize: "16px",
|
|
32172
|
+
lineHeight: "21px",
|
|
32173
|
+
display: "grid",
|
|
32174
|
+
gap: "8px",
|
|
32175
|
+
children: [/* @__PURE__ */ jsx(Text, {
|
|
32176
|
+
fontWeight: "700",
|
|
32177
|
+
m: "0px",
|
|
32178
|
+
children: eventTitle
|
|
32179
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
32180
|
+
display: "flex",
|
|
32181
|
+
alignItems: "center",
|
|
32182
|
+
gap: "4px",
|
|
32183
|
+
children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsx(Text, {
|
|
32184
|
+
fontWeight: "400",
|
|
32185
|
+
m: "0px",
|
|
32186
|
+
children: startDate
|
|
32187
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
32188
|
+
m: "0px",
|
|
32189
|
+
children: "|"
|
|
32190
|
+
}), /* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx(Text, {
|
|
32191
|
+
m: "0px",
|
|
32192
|
+
children: startTime
|
|
32193
|
+
})]
|
|
32194
|
+
})]
|
|
32195
|
+
})
|
|
32196
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
32197
|
+
width: "100%",
|
|
32198
|
+
height: "50px",
|
|
32199
|
+
backgroundColor: "white",
|
|
32200
|
+
alignItems: "center",
|
|
32201
|
+
display: "flex",
|
|
32202
|
+
justifyContent: "center",
|
|
32203
|
+
borderRadius: " 0 0 8px 8px",
|
|
32204
|
+
fontSize: "16px",
|
|
32205
|
+
fontFamily: "Roboto",
|
|
32206
|
+
color: vars("colors-main-deepSkyBlue"),
|
|
32207
|
+
fontWeight: "500",
|
|
32208
|
+
children: buttonInfo
|
|
32209
|
+
})]
|
|
32210
|
+
})
|
|
32211
|
+
}, id2);
|
|
32212
|
+
};
|
|
32213
|
+
const Eventos = ({
|
|
32214
|
+
typeEvent,
|
|
32215
|
+
itemsEvent
|
|
32216
|
+
}) => {
|
|
32217
|
+
if (typeEvent === "LARGE_EVENTS") {
|
|
32218
|
+
return /* @__PURE__ */ jsx(LargeBox, {
|
|
32219
|
+
...itemsEvent
|
|
32220
|
+
});
|
|
32221
|
+
} else {
|
|
32222
|
+
return /* @__PURE__ */ jsx(SmallBox, {
|
|
32223
|
+
...itemsEvent
|
|
32224
|
+
});
|
|
32225
|
+
}
|
|
32226
|
+
};
|
|
31991
32227
|
const Avi = () => {
|
|
31992
32228
|
return /* @__PURE__ */ jsxs(Icon, {
|
|
31993
32229
|
width: "32px",
|
|
@@ -32955,62 +33191,76 @@ const Resources = ({
|
|
|
32955
33191
|
resourceDetail,
|
|
32956
33192
|
resourceTextDownload,
|
|
32957
33193
|
resourceLink,
|
|
32958
|
-
|
|
33194
|
+
targetBlank
|
|
32959
33195
|
}) => {
|
|
32960
|
-
return /* @__PURE__ */
|
|
32961
|
-
|
|
32962
|
-
|
|
32963
|
-
|
|
32964
|
-
|
|
32965
|
-
|
|
32966
|
-
|
|
32967
|
-
|
|
32968
|
-
|
|
32969
|
-
|
|
32970
|
-
|
|
32971
|
-
|
|
32972
|
-
|
|
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",
|
|
33196
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
33197
|
+
href: resourceLink,
|
|
33198
|
+
target: targetBlank ? "_blank" : "_self",
|
|
33199
|
+
rel: targetBlank ? "noopener noreferrer" : void 0,
|
|
33200
|
+
_hover: {
|
|
33201
|
+
textDecoration: "none"
|
|
33202
|
+
},
|
|
33203
|
+
display: "contents",
|
|
33204
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
33205
|
+
width: "285px",
|
|
33206
|
+
height: "147px",
|
|
33207
|
+
borderRadius: vars("radii-big"),
|
|
33208
|
+
border: vars("borders-light"),
|
|
32996
33209
|
justifyContent: "center",
|
|
32997
|
-
|
|
32998
|
-
|
|
32999
|
-
|
|
33000
|
-
|
|
33001
|
-
|
|
33002
|
-
|
|
33003
|
-
|
|
33004
|
-
|
|
33005
|
-
|
|
33006
|
-
|
|
33210
|
+
textAlign: "center",
|
|
33211
|
+
display: "grid",
|
|
33212
|
+
gap: "8px",
|
|
33213
|
+
padding: "1rem",
|
|
33214
|
+
transition: "box-shadow 0.3s ease-in-out",
|
|
33215
|
+
_hover: {
|
|
33216
|
+
shadow: "sm"
|
|
33217
|
+
},
|
|
33218
|
+
cursor: "pointer",
|
|
33219
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
33220
|
+
children: /* @__PURE__ */ jsx(Icons, {
|
|
33221
|
+
type: resourceType
|
|
33222
|
+
})
|
|
33223
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
33224
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
33225
|
+
fontFamily: "Roboto",
|
|
33226
|
+
fontWeight: "700",
|
|
33227
|
+
lineHeight: "21px",
|
|
33228
|
+
fontSize: "16px",
|
|
33229
|
+
color: "#555555",
|
|
33230
|
+
m: "0px",
|
|
33231
|
+
children: resourceTitle
|
|
33232
|
+
})
|
|
33233
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
33234
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
33235
|
+
fontFamily: "Roboto",
|
|
33236
|
+
fontWeight: "400",
|
|
33237
|
+
lineHeight: "14px",
|
|
33238
|
+
fontSize: "12px",
|
|
33239
|
+
color: "#555555",
|
|
33240
|
+
m: "0px",
|
|
33241
|
+
children: resourceDetail
|
|
33242
|
+
})
|
|
33243
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
33007
33244
|
display: "flex",
|
|
33008
|
-
|
|
33009
|
-
|
|
33010
|
-
|
|
33011
|
-
|
|
33012
|
-
|
|
33245
|
+
alignItems: "center",
|
|
33246
|
+
justifyContent: "center",
|
|
33247
|
+
children: /* @__PURE__ */ jsxs(Text, {
|
|
33248
|
+
fontFamily: "Roboto",
|
|
33249
|
+
fontWeight: "500",
|
|
33250
|
+
fontSize: "14px",
|
|
33251
|
+
lineHeight: "16px",
|
|
33252
|
+
color: vars("colors-neutral-gray"),
|
|
33253
|
+
textDecoration: "underline",
|
|
33254
|
+
gap: "8px",
|
|
33255
|
+
display: "flex",
|
|
33256
|
+
m: "0px",
|
|
33257
|
+
children: [/* @__PURE__ */ jsx(Download, {
|
|
33258
|
+
color: vars("colors-main-deepSkyBlue")
|
|
33259
|
+
}), resourceTextDownload]
|
|
33260
|
+
})
|
|
33261
|
+
})]
|
|
33262
|
+
})
|
|
33013
33263
|
});
|
|
33014
33264
|
};
|
|
33015
|
-
export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus,
|
|
33265
|
+
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
33266
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|