@eclass/ui-kit 1.45.2 → 1.46.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.
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function Accessibility(props: BaseProps): JSX.Element;
@@ -29915,6 +29915,88 @@ const NewTooltip = ({
29915
29915
  })
29916
29916
  });
29917
29917
  };
29918
+ function Accessibility(props) {
29919
+ return /* @__PURE__ */ jsx(Base, {
29920
+ ...props,
29921
+ children: /* @__PURE__ */ jsx("svg", {
29922
+ width: "16",
29923
+ height: "16",
29924
+ viewBox: "0 0 16 16",
29925
+ fill: "none",
29926
+ children: /* @__PURE__ */ jsx("path", {
29927
+ fillRule: "evenodd",
29928
+ clipRule: "evenodd",
29929
+ d: "M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM8 5C8.82843 5 9.5 4.32843 9.5 3.5C9.5 2.67157 8.82843 2 8 2C7.17157 2 6.5 2.67157 6.5 3.5C6.5 4.32843 7.17157 5 8 5ZM2.96967 5.96967C3.11032 5.82902 3.30109 5.75 3.5 5.75H12.5C12.6989 5.75 12.8897 5.82902 13.0303 5.96967C13.171 6.11032 13.25 6.30109 13.25 6.5C13.25 6.69891 13.171 6.88968 13.0303 7.03033C12.8897 7.17098 12.6989 7.25 12.5 7.25H10.25V13.25C10.25 13.4489 10.171 13.6397 10.0303 13.7803C9.88968 13.921 9.69891 14 9.5 14C9.30109 14 9.11032 13.921 8.96967 13.7803C8.82902 13.6397 8.75 13.4489 8.75 13.25V10.25H7.25V13.25C7.25 13.4489 7.17098 13.6397 7.03033 13.7803C6.88968 13.921 6.69891 14 6.5 14C6.30109 14 6.11032 13.921 5.96967 13.7803C5.82902 13.6397 5.75 13.4489 5.75 13.25V7.25H3.5C3.30109 7.25 3.11032 7.17098 2.96967 7.03033C2.82902 6.88968 2.75 6.69891 2.75 6.5C2.75 6.30109 2.82902 6.11032 2.96967 5.96967Z",
29930
+ fill: "white"
29931
+ })
29932
+ })
29933
+ });
29934
+ }
29935
+ const waitForUserWay = async () => {
29936
+ return await new Promise((resolve, reject) => {
29937
+ const checkUserWay = () => {
29938
+ if (window.UserWay) {
29939
+ resolve();
29940
+ } else {
29941
+ requestAnimationFrame(checkUserWay);
29942
+ }
29943
+ };
29944
+ try {
29945
+ checkUserWay();
29946
+ } catch (error) {
29947
+ reject(new Error("UserWay script failed to load"));
29948
+ }
29949
+ });
29950
+ };
29951
+ function UserWay({
29952
+ accountId = "06mvMZzmO4",
29953
+ color: color2 = "#0189FF"
29954
+ }) {
29955
+ const [isUserWayReady, setIsUserWayReady] = useState(false);
29956
+ useEffect(() => {
29957
+ if (!document.getElementById("userway-script")) {
29958
+ const script = document.createElement("script");
29959
+ script.id = "userway-script";
29960
+ script.src = "https://cdn.userway.org/widget.js";
29961
+ script.async = true;
29962
+ script.setAttribute("data-account", accountId);
29963
+ script.setAttribute("data-color", color2);
29964
+ script.setAttribute("data-trigger", "customTrigger");
29965
+ document.body.appendChild(script);
29966
+ }
29967
+ waitForUserWay().then(() => {
29968
+ setIsUserWayReady(true);
29969
+ return void 0;
29970
+ }).catch((error) => {
29971
+ console.error("Failed to load UserWay:", error);
29972
+ });
29973
+ }, [accountId, color2]);
29974
+ const handleButtonClick = () => {
29975
+ var _a;
29976
+ if (isUserWayReady && ((_a = window == null ? void 0 : window.UserWay) == null ? void 0 : _a.widgetOpen)) {
29977
+ window.UserWay.widgetOpen();
29978
+ } else {
29979
+ console.error("UserWay script not loaded yet.");
29980
+ }
29981
+ };
29982
+ return /* @__PURE__ */ jsx(Box, {
29983
+ as: "button",
29984
+ alignItems: "center",
29985
+ bg: vars("colors-main-blueGrey"),
29986
+ borderRadius: "100%",
29987
+ border: "none",
29988
+ display: "flex",
29989
+ height: "30px",
29990
+ id: "customTrigger",
29991
+ justifyContent: "center",
29992
+ onClick: handleButtonClick,
29993
+ width: "30px",
29994
+ _hover: {
29995
+ background: "rgba(96, 121, 142, 0.8)"
29996
+ },
29997
+ children: /* @__PURE__ */ jsx(Accessibility, {})
29998
+ });
29999
+ }
29918
30000
  const STUDENT = 4;
29919
30001
  function Header() {
29920
30002
  const {
@@ -32049,80 +32131,80 @@ const LargeBox = ({
32049
32131
  };
32050
32132
  return /* @__PURE__ */ jsx(Link, {
32051
32133
  href: redirect,
32052
- _hover: {
32053
- textDecoration: "none"
32054
- },
32055
32134
  target: targetBlank ? "_blank" : "_self",
32056
32135
  rel: targetBlank ? "noopener noreferrer" : void 0,
32057
- display: "contents",
32058
- children: /* @__PURE__ */ jsxs(Flex, {
32059
- cursor: "pointer",
32060
- transition: "box-shadow .3s",
32061
- _active: cssActive,
32062
- _hover: cssActive,
32063
- _focus: cssActive,
32064
- w: "fit-content",
32065
- borderRadius: vars("radii-big"),
32066
- display: isMobile ? "block" : "flex",
32067
- children: [/* @__PURE__ */ jsx(Box, {
32068
- width: "285px",
32069
- height: isMobile ? "140px" : "168px",
32070
- bgImage: `linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,1) 100%), url(${eventImage})`,
32071
- backgroundSize: "cover",
32072
- borderRadius: isMobile ? "8px 8px 0px 0px" : "8px 0 0 8px"
32073
- }), /* @__PURE__ */ jsxs(Box, {
32074
- width: isMobile ? "285px" : "305px",
32075
- minHeight: isMobile ? "160px" : "168px",
32076
- borderRadius: isMobile ? "0 0 8px 8px" : "0 8px 8px 0",
32077
- border: vars("borders-light"),
32078
- display: "flex",
32079
- flexDirection: "column",
32136
+ w: "fit-content",
32137
+ h: "fit-content",
32138
+ transition: "box-shadow .3s",
32139
+ borderRadius: vars("radii-big"),
32140
+ _active: cssActive,
32141
+ _hover: cssActive,
32142
+ _focus: cssActive,
32143
+ children: /* @__PURE__ */ jsx(Ripples, {
32144
+ children: /* @__PURE__ */ jsxs(Flex, {
32080
32145
  cursor: "pointer",
32081
- children: [/* @__PURE__ */ jsxs(Box, {
32082
- width: "inherit",
32083
- height: "100%",
32084
- padding: "4",
32085
- color: "#555555",
32086
- gap: "16px",
32087
- display: "grid",
32088
- children: [/* @__PURE__ */ jsx(Text, {
32089
- fontWeight: "700",
32090
- children: eventTitle
32091
- }), /* @__PURE__ */ jsxs(Box, {
32092
- display: "flex",
32093
- alignItems: "center",
32094
- gap: "4px",
32095
- children: [/* @__PURE__ */ jsx(Calendar, {
32096
- color: vars("colors-main-ziggurat")
32097
- }), /* @__PURE__ */ jsx(Text, {
32098
- fontWeight: "400",
32099
- children: startDate
32100
- }), /* @__PURE__ */ jsx(Text, {
32101
- color: vars("borders-light"),
32102
- children: "|"
32103
- }), /* @__PURE__ */ jsx(Clock, {
32104
- color: vars("colors-main-ziggurat")
32105
- }), /* @__PURE__ */ jsx(Text, {
32106
- children: startTime
32146
+ w: "fit-content",
32147
+ display: isMobile ? "block" : "flex",
32148
+ children: [/* @__PURE__ */ jsx(Box, {
32149
+ width: "285px",
32150
+ height: isMobile ? "140px" : "168px",
32151
+ bgImage: `linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,1) 100%), url(${eventImage})`,
32152
+ backgroundSize: "cover",
32153
+ borderRadius: isMobile ? "8px 8px 0px 0px" : "8px 0 0 8px"
32154
+ }), /* @__PURE__ */ jsxs(Box, {
32155
+ width: isMobile ? "285px" : "305px",
32156
+ minHeight: isMobile ? "160px" : "168px",
32157
+ borderRadius: isMobile ? "0 0 8px 8px" : "0 8px 8px 0",
32158
+ border: vars("borders-light"),
32159
+ display: "flex",
32160
+ flexDirection: "column",
32161
+ cursor: "pointer",
32162
+ children: [/* @__PURE__ */ jsxs(Box, {
32163
+ width: "inherit",
32164
+ height: "100%",
32165
+ padding: "4",
32166
+ color: "#555555",
32167
+ gap: "16px",
32168
+ display: "grid",
32169
+ children: [/* @__PURE__ */ jsx(Text, {
32170
+ fontWeight: "700",
32171
+ children: eventTitle
32172
+ }), /* @__PURE__ */ jsxs(Box, {
32173
+ display: "flex",
32174
+ alignItems: "center",
32175
+ gap: "4px",
32176
+ children: [/* @__PURE__ */ jsx(Calendar, {
32177
+ color: vars("colors-main-ziggurat")
32178
+ }), /* @__PURE__ */ jsx(Text, {
32179
+ fontWeight: "400",
32180
+ children: startDate
32181
+ }), /* @__PURE__ */ jsx(Text, {
32182
+ color: vars("borders-light"),
32183
+ children: "|"
32184
+ }), /* @__PURE__ */ jsx(Clock, {
32185
+ color: vars("colors-main-ziggurat")
32186
+ }), /* @__PURE__ */ jsx(Text, {
32187
+ children: startTime
32188
+ })]
32107
32189
  })]
32190
+ }), /* @__PURE__ */ jsx(Box, {
32191
+ borderTop: `${vars("borders-light")}`,
32192
+ width: "100%",
32193
+ height: "50px",
32194
+ padding: "12px",
32195
+ backgroundColor: "white",
32196
+ alignItems: "center",
32197
+ display: "flex",
32198
+ justifyContent: "center",
32199
+ borderRadius: " 0 0 8px 8px",
32200
+ fontSize: "16px",
32201
+ fontFamily: "Roboto",
32202
+ color: vars("colors-main-deepSkyBlue"),
32203
+ fontWeight: "500",
32204
+ children: buttonInfo
32108
32205
  })]
32109
- }), /* @__PURE__ */ jsx(Box, {
32110
- borderTop: `${vars("borders-light")}`,
32111
- width: "100%",
32112
- height: "50px",
32113
- padding: "12px",
32114
- backgroundColor: "white",
32115
- alignItems: "center",
32116
- display: "flex",
32117
- justifyContent: "center",
32118
- borderRadius: " 0 0 8px 8px",
32119
- fontSize: "16px",
32120
- fontFamily: "Roboto",
32121
- color: vars("colors-main-deepSkyBlue"),
32122
- fontWeight: "500",
32123
- children: buttonInfo
32124
32206
  })]
32125
- })]
32207
+ })
32126
32208
  })
32127
32209
  }, id2);
32128
32210
  };
@@ -32141,78 +32223,79 @@ const SmallBox = ({
32141
32223
  };
32142
32224
  return /* @__PURE__ */ jsx(Link, {
32143
32225
  href: redirect,
32144
- _hover: {
32145
- textDecoration: "none"
32146
- },
32147
32226
  target: targetBlank ? "_blank" : "_self",
32148
32227
  rel: targetBlank ? "noopener noreferrer" : void 0,
32149
- display: "contents",
32150
- children: /* @__PURE__ */ jsxs(Box, {
32151
- width: "286px",
32152
- height: "247px",
32153
- borderRadius: vars("radii-big"),
32154
- border: vars("borders-light"),
32155
- justifyContent: "center",
32156
- textAlign: "center",
32157
- display: "flex",
32158
- flexDirection: "column",
32159
- cursor: "pointer",
32160
- transition: "box-shadow .3s",
32161
- _active: cssActive,
32162
- _hover: cssActive,
32163
- _focus: cssActive,
32164
- children: [/* @__PURE__ */ jsx(Box, {
32165
- flex: "1",
32166
- bgImage: `linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,1) 100%), url(${eventImage})`,
32167
- backgroundSize: "cover",
32168
- borderRadius: "8px 8px 0 0",
32169
- margin: "0",
32170
- display: "grid",
32171
- alignItems: "flex-end",
32172
- children: /* @__PURE__ */ jsxs(Box, {
32173
- color: vars("colors-neutral-white"),
32174
- padding: "16px",
32175
- textAlign: "initial",
32176
- fontFamily: "Roboto",
32177
- fontSize: "16px",
32178
- lineHeight: "21px",
32228
+ transition: "box-shadow .3s",
32229
+ _active: cssActive,
32230
+ _hover: cssActive,
32231
+ _focus: cssActive,
32232
+ width: "286px",
32233
+ height: "247px",
32234
+ borderRadius: vars("radii-big"),
32235
+ children: /* @__PURE__ */ jsx(Ripples, {
32236
+ children: /* @__PURE__ */ jsxs(Box, {
32237
+ width: "286px",
32238
+ height: "247px",
32239
+ borderRadius: vars("radii-big"),
32240
+ border: vars("borders-light"),
32241
+ justifyContent: "center",
32242
+ textAlign: "center",
32243
+ display: "flex",
32244
+ flexDirection: "column",
32245
+ cursor: "pointer",
32246
+ children: [/* @__PURE__ */ jsx(Box, {
32247
+ flex: "1",
32248
+ bgImage: `linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,1) 100%), url(${eventImage})`,
32249
+ backgroundSize: "cover",
32250
+ borderRadius: "8px 8px 0 0",
32251
+ margin: "0",
32179
32252
  display: "grid",
32180
- gap: "8px",
32181
- children: [/* @__PURE__ */ jsx(Text, {
32182
- fontWeight: "700",
32183
- m: "0px",
32184
- children: eventTitle
32185
- }), /* @__PURE__ */ jsxs(Box, {
32186
- display: "flex",
32187
- alignItems: "center",
32188
- gap: "4px",
32189
- children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsx(Text, {
32190
- fontWeight: "400",
32191
- m: "0px",
32192
- children: startDate
32193
- }), /* @__PURE__ */ jsx(Text, {
32194
- m: "0px",
32195
- children: "|"
32196
- }), /* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx(Text, {
32253
+ alignItems: "flex-end",
32254
+ children: /* @__PURE__ */ jsxs(Box, {
32255
+ color: vars("colors-neutral-white"),
32256
+ padding: "16px",
32257
+ textAlign: "initial",
32258
+ fontFamily: "Roboto",
32259
+ fontSize: "16px",
32260
+ lineHeight: "21px",
32261
+ display: "grid",
32262
+ gap: "8px",
32263
+ children: [/* @__PURE__ */ jsx(Text, {
32264
+ fontWeight: "700",
32197
32265
  m: "0px",
32198
- children: startTime
32266
+ children: eventTitle
32267
+ }), /* @__PURE__ */ jsxs(Box, {
32268
+ display: "flex",
32269
+ alignItems: "center",
32270
+ gap: "4px",
32271
+ children: [/* @__PURE__ */ jsx(Calendar, {}), /* @__PURE__ */ jsx(Text, {
32272
+ fontWeight: "400",
32273
+ m: "0px",
32274
+ children: startDate
32275
+ }), /* @__PURE__ */ jsx(Text, {
32276
+ m: "0px",
32277
+ children: "|"
32278
+ }), /* @__PURE__ */ jsx(Clock, {}), /* @__PURE__ */ jsx(Text, {
32279
+ m: "0px",
32280
+ children: startTime
32281
+ })]
32199
32282
  })]
32200
- })]
32201
- })
32202
- }), /* @__PURE__ */ jsx(Box, {
32203
- width: "100%",
32204
- height: "50px",
32205
- backgroundColor: "white",
32206
- alignItems: "center",
32207
- display: "flex",
32208
- justifyContent: "center",
32209
- borderRadius: " 0 0 8px 8px",
32210
- fontSize: "16px",
32211
- fontFamily: "Roboto",
32212
- color: vars("colors-main-deepSkyBlue"),
32213
- fontWeight: "500",
32214
- children: buttonInfo
32215
- })]
32283
+ })
32284
+ }), /* @__PURE__ */ jsx(Box, {
32285
+ width: "100%",
32286
+ height: "50px",
32287
+ backgroundColor: "white",
32288
+ alignItems: "center",
32289
+ display: "flex",
32290
+ justifyContent: "center",
32291
+ borderRadius: " 0 0 8px 8px",
32292
+ fontSize: "16px",
32293
+ fontFamily: "Roboto",
32294
+ color: vars("colors-main-deepSkyBlue"),
32295
+ fontWeight: "500",
32296
+ children: buttonInfo
32297
+ })]
32298
+ })
32216
32299
  })
32217
32300
  }, id2);
32218
32301
  };
@@ -33270,5 +33353,5 @@ const Resources = ({
33270
33353
  })
33271
33354
  });
33272
33355
  };
33273
- 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 };
33356
+ export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, CourseStatus, Eventos, FlashNotification, index as Icons, Label, ModalAlert, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
33274
33357
  //# sourceMappingURL=eclass-ui-kit.es.js.map