@eclass/ui-kit 1.7.0 → 1.7.3
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 +65 -10
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +1 -1
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/CourseList/CourseBox.d.ts +2 -1
- package/dist/organisms/CourseList/CourseList.d.ts +1 -1
- package/dist/organisms/CourseList/components/Footer.d.ts +2 -1
- package/dist/organisms/CourseList/components/Modal/PaymentModal.d.ts +4 -1
- package/dist/organisms/CourseList/types.d.ts +11 -0
- package/dist/theme/styles.d.ts +40 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -26078,6 +26078,46 @@ const styles = {
|
|
|
26078
26078
|
".react-ripples": {
|
|
26079
26079
|
h: "100%",
|
|
26080
26080
|
display: "grid!important"
|
|
26081
|
+
},
|
|
26082
|
+
".chakra-button": {
|
|
26083
|
+
borderStyle: "none"
|
|
26084
|
+
},
|
|
26085
|
+
".chakra-modal__content-container": {
|
|
26086
|
+
padding: "1.87rem",
|
|
26087
|
+
zIndex: "1400",
|
|
26088
|
+
justifyContent: "center",
|
|
26089
|
+
alignItems: "center",
|
|
26090
|
+
overflow: "auto"
|
|
26091
|
+
},
|
|
26092
|
+
".chakra-modal__content": {
|
|
26093
|
+
borderRadius: "0.5rem",
|
|
26094
|
+
background: "white",
|
|
26095
|
+
color: "inherit",
|
|
26096
|
+
zIndex: "1400",
|
|
26097
|
+
maxWidth: "36.813rem",
|
|
26098
|
+
boxShadow: "0px 4px 16px rgba(92, 92, 92, 0.2)"
|
|
26099
|
+
},
|
|
26100
|
+
".chakra-modal__header": {
|
|
26101
|
+
paddingInlineStart: "1.5rem",
|
|
26102
|
+
paddingInlineEnd: "1.5rem",
|
|
26103
|
+
fontSize: "1.25rem",
|
|
26104
|
+
fontWeight: "700",
|
|
26105
|
+
textAlign: "center",
|
|
26106
|
+
".chakra-icon": {
|
|
26107
|
+
width: "13rem"
|
|
26108
|
+
}
|
|
26109
|
+
},
|
|
26110
|
+
".chakra-modal__close-btn": {
|
|
26111
|
+
width: "2rem",
|
|
26112
|
+
height: "2rem",
|
|
26113
|
+
borderRadius: "0.5rem",
|
|
26114
|
+
fontSize: "0.75rem",
|
|
26115
|
+
position: "absolute",
|
|
26116
|
+
top: "0.5rem",
|
|
26117
|
+
right: "0.75rem",
|
|
26118
|
+
color: "#60798E",
|
|
26119
|
+
backgroundColor: "transparent",
|
|
26120
|
+
borderStyle: "none"
|
|
26081
26121
|
}
|
|
26082
26122
|
})
|
|
26083
26123
|
};
|
|
@@ -27386,8 +27426,10 @@ function maxWidthCoursesList(nCols = 4) {
|
|
|
27386
27426
|
}
|
|
27387
27427
|
function PaymentModal({
|
|
27388
27428
|
isOpen,
|
|
27429
|
+
onOpen,
|
|
27389
27430
|
onClose,
|
|
27390
|
-
showOverlay
|
|
27431
|
+
showOverlay,
|
|
27432
|
+
modalPaymentText
|
|
27391
27433
|
}) {
|
|
27392
27434
|
const cssButton = {
|
|
27393
27435
|
backgroundColor: "transparent"
|
|
@@ -27410,9 +27452,11 @@ function PaymentModal({
|
|
|
27410
27452
|
isOpen,
|
|
27411
27453
|
onClose,
|
|
27412
27454
|
size: "xl",
|
|
27455
|
+
blockScrollOnMount: false,
|
|
27456
|
+
closeOnOverlayClick: false,
|
|
27413
27457
|
children: [overlay, /* @__PURE__ */ jsxs(ModalContent, {
|
|
27414
27458
|
marginTop: "0",
|
|
27415
|
-
marginBottom: "
|
|
27459
|
+
marginBottom: ["25.75rem", "15.75rem"],
|
|
27416
27460
|
children: [/* @__PURE__ */ jsxs(ModalHeader, {
|
|
27417
27461
|
justifyContent: "center",
|
|
27418
27462
|
display: "flex",
|
|
@@ -27423,7 +27467,7 @@ function PaymentModal({
|
|
|
27423
27467
|
w: "52",
|
|
27424
27468
|
h: "45",
|
|
27425
27469
|
viewBox: "0 0 45 52"
|
|
27426
|
-
}),
|
|
27470
|
+
}), modalPaymentText.title]
|
|
27427
27471
|
}), /* @__PURE__ */ jsx(ModalCloseButton, {
|
|
27428
27472
|
size: "md",
|
|
27429
27473
|
color: vars("colors-main-blueGrey"),
|
|
@@ -27433,7 +27477,8 @@ function PaymentModal({
|
|
|
27433
27477
|
}), /* @__PURE__ */ jsx(ModalBody, {
|
|
27434
27478
|
p: "1rem 2rem 2rem 2rem",
|
|
27435
27479
|
children: /* @__PURE__ */ jsx(Text, {
|
|
27436
|
-
|
|
27480
|
+
align: "center",
|
|
27481
|
+
children: modalPaymentText.body
|
|
27437
27482
|
})
|
|
27438
27483
|
}), /* @__PURE__ */ jsx(ModalFooter, {
|
|
27439
27484
|
justifyContent: "center",
|
|
@@ -27450,14 +27495,16 @@ function PaymentModal({
|
|
|
27450
27495
|
_hover: cssButton,
|
|
27451
27496
|
_focus: cssButton,
|
|
27452
27497
|
_active: cssButton,
|
|
27453
|
-
children:
|
|
27498
|
+
children: modalPaymentText.buttonName
|
|
27454
27499
|
})
|
|
27455
27500
|
})]
|
|
27456
27501
|
})]
|
|
27457
27502
|
});
|
|
27458
27503
|
}
|
|
27459
27504
|
Modal.displayName = "Modal";
|
|
27460
|
-
function Footer(
|
|
27505
|
+
function Footer({
|
|
27506
|
+
modalPaymentText
|
|
27507
|
+
}) {
|
|
27461
27508
|
var _a;
|
|
27462
27509
|
const {
|
|
27463
27510
|
action,
|
|
@@ -27495,6 +27542,7 @@ function Footer() {
|
|
|
27495
27542
|
mr: action.hasIcon ? "1.5rem" : "0",
|
|
27496
27543
|
lineHeight: "1.172rem",
|
|
27497
27544
|
p: "0",
|
|
27545
|
+
zIndex: "inherit !important",
|
|
27498
27546
|
_hover: cssButton,
|
|
27499
27547
|
_focus: cssButton,
|
|
27500
27548
|
_active: cssButton,
|
|
@@ -27520,7 +27568,9 @@ function Footer() {
|
|
|
27520
27568
|
}), /* @__PURE__ */ jsx(PaymentModal, {
|
|
27521
27569
|
isOpen,
|
|
27522
27570
|
onClose,
|
|
27523
|
-
showOverlay: overlay
|
|
27571
|
+
showOverlay: overlay,
|
|
27572
|
+
onOpen,
|
|
27573
|
+
modalPaymentText
|
|
27524
27574
|
})]
|
|
27525
27575
|
});
|
|
27526
27576
|
}
|
|
@@ -27537,7 +27587,8 @@ function WithRipples({
|
|
|
27537
27587
|
});
|
|
27538
27588
|
}
|
|
27539
27589
|
function CourseBox({
|
|
27540
|
-
data
|
|
27590
|
+
data,
|
|
27591
|
+
modalPaymentText
|
|
27541
27592
|
}) {
|
|
27542
27593
|
var _a, _b, _c;
|
|
27543
27594
|
const cssActive = {
|
|
@@ -27563,7 +27614,9 @@ function CourseBox({
|
|
|
27563
27614
|
h: "100%",
|
|
27564
27615
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
27565
27616
|
children: [/* @__PURE__ */ jsx(Header, {}), /* @__PURE__ */ jsx(Section, {})]
|
|
27566
|
-
}), /* @__PURE__ */ jsx(Footer, {
|
|
27617
|
+
}), /* @__PURE__ */ jsx(Footer, {
|
|
27618
|
+
modalPaymentText
|
|
27619
|
+
})]
|
|
27567
27620
|
})
|
|
27568
27621
|
})
|
|
27569
27622
|
})
|
|
@@ -27574,6 +27627,7 @@ const columnGap = 1.25;
|
|
|
27574
27627
|
const wCourse = 17.8125;
|
|
27575
27628
|
function CourseList({
|
|
27576
27629
|
courses,
|
|
27630
|
+
modalPaymentText,
|
|
27577
27631
|
m: m2 = "0 auto"
|
|
27578
27632
|
}) {
|
|
27579
27633
|
if (courses === void 0) {
|
|
@@ -27587,7 +27641,8 @@ function CourseList({
|
|
|
27587
27641
|
m: m2,
|
|
27588
27642
|
w: "100%",
|
|
27589
27643
|
children: courses == null ? void 0 : courses.map((course) => /* @__PURE__ */ jsx(CourseBox, {
|
|
27590
|
-
data: course
|
|
27644
|
+
data: course,
|
|
27645
|
+
modalPaymentText
|
|
27591
27646
|
}, course.id))
|
|
27592
27647
|
});
|
|
27593
27648
|
}
|