@eclass/ui-kit 1.54.5 → 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 +74 -8
- 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/organisms/Modals/Modal/Modal.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,
|
|
@@ -4153,19 +4153,23 @@ const Modal = ({
|
|
|
4153
4153
|
marginX: isDesktop ? "auto" : 0,
|
|
4154
4154
|
mb: 0,
|
|
4155
4155
|
maxH: isInside ? "calc(100dvh - 96px)" : "auto",
|
|
4156
|
-
maxWidth: isDesktop ? "
|
|
4156
|
+
maxWidth: isDesktop ? "690px" : "100%",
|
|
4157
4157
|
...fixedButtons && {
|
|
4158
4158
|
".uikit-modalContent": {
|
|
4159
4159
|
pb: 0
|
|
4160
4160
|
},
|
|
4161
4161
|
".uikit-modalButtons": {
|
|
4162
|
-
py
|
|
4162
|
+
py,
|
|
4163
|
+
px
|
|
4163
4164
|
}
|
|
4164
4165
|
},
|
|
4165
4166
|
...withoutMargin && {
|
|
4166
4167
|
".uikit-modalContent": {
|
|
4167
4168
|
pt: 0,
|
|
4168
4169
|
px: 0
|
|
4170
|
+
},
|
|
4171
|
+
".uikit-modalButtons": {
|
|
4172
|
+
px
|
|
4169
4173
|
}
|
|
4170
4174
|
}
|
|
4171
4175
|
},
|
|
@@ -4204,6 +4208,43 @@ const Modal = ({
|
|
|
4204
4208
|
})
|
|
4205
4209
|
});
|
|
4206
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
|
+
};
|
|
4207
4248
|
const Loading$1 = ({
|
|
4208
4249
|
fill = vars("colors-main-deepSkyBlue")
|
|
4209
4250
|
}) => {
|
|
@@ -4263,7 +4304,7 @@ const ModalAlertNew = ({
|
|
|
4263
4304
|
motionPreset: "scale",
|
|
4264
4305
|
onClose,
|
|
4265
4306
|
closeOnEsc: type !== "loading",
|
|
4266
|
-
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent, {
|
|
4307
|
+
children: [/* @__PURE__ */ jsx(ModalOverlay, {}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4267
4308
|
borderRadius: "8px",
|
|
4268
4309
|
p: 0,
|
|
4269
4310
|
m: "10vh auto 0",
|
|
@@ -4299,6 +4340,31 @@ const ModalAlertNew = ({
|
|
|
4299
4340
|
})
|
|
4300
4341
|
});
|
|
4301
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
|
+
};
|
|
4302
4368
|
function ModalAlert({
|
|
4303
4369
|
showModal,
|
|
4304
4370
|
typeAlert,
|
|
@@ -4331,7 +4397,7 @@ function ModalAlert({
|
|
|
4331
4397
|
right: "0",
|
|
4332
4398
|
bottom: "0",
|
|
4333
4399
|
zIndex: "998"
|
|
4334
|
-
}), /* @__PURE__ */ jsxs(ModalContent, {
|
|
4400
|
+
}), /* @__PURE__ */ jsxs(ModalContent$1, {
|
|
4335
4401
|
zIndex: "999",
|
|
4336
4402
|
sx: modalStyles.content,
|
|
4337
4403
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
@@ -6751,5 +6817,5 @@ const EventsList = ({
|
|
|
6751
6817
|
})]
|
|
6752
6818
|
});
|
|
6753
6819
|
};
|
|
6754
|
-
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 };
|
|
6755
6821
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|