@eclass/ui-kit 1.54.6 → 1.54.7
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 +68 -6
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +28 -28
- 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/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extendTheme, Box, CircularProgress, Icon, Button, useMediaQuery, Tooltip, Flex, Stack, Center, Image, Text, HStack, Heading, List, ListItem, Link, Modal as Modal$1, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, ModalOverlay, useDisclosure, LinkBox, LinkOverlay, MenuButton, MenuGroup, Menu, MenuList } from "@chakra-ui/react";
|
|
1
|
+
import { extendTheme, Box, CircularProgress, Icon, Button, useMediaQuery, Tooltip, Flex, Stack, Center, Image, Text, HStack, Heading, List, ListItem, Link, Modal as Modal$1, ModalContent as ModalContent$1, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, ModalOverlay, useDisclosure, LinkBox, LinkOverlay, MenuButton, MenuGroup, Menu, MenuList } from "@chakra-ui/react";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useEffect, useCallback, useState } from "react";
|
|
4
4
|
const main = {
|
|
@@ -3202,7 +3202,7 @@ function PaymentModal({
|
|
|
3202
3202
|
size: "xl",
|
|
3203
3203
|
blockScrollOnMount: false,
|
|
3204
3204
|
closeOnOverlayClick: false,
|
|
3205
|
-
children: [overlay2, /* @__PURE__ */ jsxs(ModalContent, {
|
|
3205
|
+
children: [overlay2, /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
3206
3206
|
marginTop: "0",
|
|
3207
3207
|
marginBottom: ["25.75rem", "15.75rem"],
|
|
3208
3208
|
children: [/* @__PURE__ */ jsxs(ModalHeader, {
|
|
@@ -4141,7 +4141,7 @@ const Modal = ({
|
|
|
4141
4141
|
motionPreset: "scale",
|
|
4142
4142
|
onClose,
|
|
4143
4143
|
scrollBehavior: isInside ? "inside" : "outside",
|
|
4144
|
-
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent, {
|
|
4144
|
+
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4145
4145
|
maxH: isInside ? "100dvh" : "auto",
|
|
4146
4146
|
minH: isDesktop ? "300px" : "100dvh",
|
|
4147
4147
|
padding: 0,
|
|
@@ -4208,6 +4208,43 @@ const Modal = ({
|
|
|
4208
4208
|
})
|
|
4209
4209
|
});
|
|
4210
4210
|
};
|
|
4211
|
+
const StyledModalFooter = ModalFooter;
|
|
4212
|
+
const StyledModalBody = ModalBody;
|
|
4213
|
+
const ModalButtons = ({
|
|
4214
|
+
children,
|
|
4215
|
+
buttonsCenter,
|
|
4216
|
+
buttonsColumn
|
|
4217
|
+
}) => {
|
|
4218
|
+
const [isDesktop] = useMediaQuery(`(min-width: ${uiKitModalIsDesktop}px)`);
|
|
4219
|
+
const buttonFull = !isDesktop && buttonsColumn;
|
|
4220
|
+
return /* @__PURE__ */ jsx(StyledModalFooter, {
|
|
4221
|
+
as: "footer",
|
|
4222
|
+
flexDirection: buttonFull ? "column" : "row",
|
|
4223
|
+
gap: "24px",
|
|
4224
|
+
justifyContent: buttonsCenter ? "center" : "flex-start",
|
|
4225
|
+
px: 0,
|
|
4226
|
+
pt: "32px",
|
|
4227
|
+
pb: 0,
|
|
4228
|
+
className: "uikit-modalButtons",
|
|
4229
|
+
sx: {
|
|
4230
|
+
"&>div, &>div>.react-ripples, &>div>.react-ripples>button": {
|
|
4231
|
+
width: isDesktop ? "auto" : "100%"
|
|
4232
|
+
}
|
|
4233
|
+
},
|
|
4234
|
+
children
|
|
4235
|
+
});
|
|
4236
|
+
};
|
|
4237
|
+
const ModalContent = ({
|
|
4238
|
+
children,
|
|
4239
|
+
pb = "32px"
|
|
4240
|
+
}) => {
|
|
4241
|
+
return /* @__PURE__ */ jsx(StyledModalBody, {
|
|
4242
|
+
pt: 0,
|
|
4243
|
+
pb,
|
|
4244
|
+
className: "uikit-modalContent",
|
|
4245
|
+
children
|
|
4246
|
+
});
|
|
4247
|
+
};
|
|
4211
4248
|
const Loading$1 = ({
|
|
4212
4249
|
fill = vars("colors-main-deepSkyBlue")
|
|
4213
4250
|
}) => {
|
|
@@ -4267,7 +4304,7 @@ const ModalAlertNew = ({
|
|
|
4267
4304
|
motionPreset: "scale",
|
|
4268
4305
|
onClose,
|
|
4269
4306
|
closeOnEsc: type !== "loading",
|
|
4270
|
-
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent, {
|
|
4307
|
+
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4271
4308
|
borderRadius: "8px",
|
|
4272
4309
|
p: 0,
|
|
4273
4310
|
m: "10vh auto 0",
|
|
@@ -4303,6 +4340,31 @@ const ModalAlertNew = ({
|
|
|
4303
4340
|
})
|
|
4304
4341
|
});
|
|
4305
4342
|
};
|
|
4343
|
+
const ModalAlertButtons = ({
|
|
4344
|
+
children
|
|
4345
|
+
}) => {
|
|
4346
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
4347
|
+
display: "flex",
|
|
4348
|
+
w: "100%",
|
|
4349
|
+
borderTop: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
4350
|
+
sx: {
|
|
4351
|
+
button: {
|
|
4352
|
+
borderRight: `1px solid ${vars("colors-neutral-platinum")}`,
|
|
4353
|
+
fontFamily: "Roboto",
|
|
4354
|
+
fontSize: "16px",
|
|
4355
|
+
fontWeight: 500,
|
|
4356
|
+
lineHeight: "21px",
|
|
4357
|
+
p: "16px",
|
|
4358
|
+
textDecor: "none",
|
|
4359
|
+
width: "100%",
|
|
4360
|
+
"&:last-child": {
|
|
4361
|
+
borderRight: "none"
|
|
4362
|
+
}
|
|
4363
|
+
}
|
|
4364
|
+
},
|
|
4365
|
+
children
|
|
4366
|
+
});
|
|
4367
|
+
};
|
|
4306
4368
|
function ModalAlert({
|
|
4307
4369
|
showModal,
|
|
4308
4370
|
typeAlert,
|
|
@@ -4335,7 +4397,7 @@ function ModalAlert({
|
|
|
4335
4397
|
right: "0",
|
|
4336
4398
|
bottom: "0",
|
|
4337
4399
|
zIndex: "998"
|
|
4338
|
-
}), /* @__PURE__ */ jsxs(ModalContent, {
|
|
4400
|
+
}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4339
4401
|
zIndex: "999",
|
|
4340
4402
|
sx: modalStyles.content,
|
|
4341
4403
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
@@ -6755,5 +6817,5 @@ const EventsList = ({
|
|
|
6755
6817
|
})]
|
|
6756
6818
|
});
|
|
6757
6819
|
};
|
|
6758
|
-
export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index as Icons, Label, Modal, ModalAlert, ModalAlertNew, NavBarButton, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
|
|
6820
|
+
export { Alert, Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CalendarDropdown, CourseList, CourseStatus, Eventos, EventsList, FlashNotification, index as Icons, Label, Modal, ModalAlert, ModalAlertButtons, ModalAlertNew, ModalButtons, ModalContent, NavBarButton, NewTooltip, Progress, Resources, Ripples, TinyAlert, UserWay, UserWayCookie, dataFake, maxWidthCoursesList, theme, useFlashNotification, vars };
|
|
6759
6821
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|