@eclass/ui-kit 1.53.8 → 1.54.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 +21 -44
- 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/molecules/Buttons/Btn.d.ts.map +1 -1
- package/dist/organisms/Modals/resetStyleModal.d.ts +9 -0
- package/dist/organisms/Modals/resetStyleModal.d.ts.map +1 -0
- package/dist/organisms/Modals/types.d.ts +39 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/styles.d.ts +0 -40
- package/dist/theme/styles.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +9 -5
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -51,46 +51,6 @@ const styles = {
|
|
|
51
51
|
".react-ripples": {
|
|
52
52
|
h: "100%",
|
|
53
53
|
display: "grid!important"
|
|
54
|
-
},
|
|
55
|
-
".chakra-button": {
|
|
56
|
-
borderStyle: "none"
|
|
57
|
-
},
|
|
58
|
-
".chakra-modal__content-container": {
|
|
59
|
-
padding: "1.87rem",
|
|
60
|
-
zIndex: "1400",
|
|
61
|
-
justifyContent: "center",
|
|
62
|
-
alignItems: "center",
|
|
63
|
-
overflow: "auto"
|
|
64
|
-
},
|
|
65
|
-
".chakra-modal__content": {
|
|
66
|
-
borderRadius: "0.5rem",
|
|
67
|
-
background: "white",
|
|
68
|
-
color: "inherit",
|
|
69
|
-
zIndex: "1400",
|
|
70
|
-
maxWidth: "36.813rem",
|
|
71
|
-
boxShadow: "0px 4px 16px rgba(92, 92, 92, 0.2)"
|
|
72
|
-
},
|
|
73
|
-
".chakra-modal__header": {
|
|
74
|
-
paddingInlineStart: "1.5rem",
|
|
75
|
-
paddingInlineEnd: "1.5rem",
|
|
76
|
-
fontSize: "1.25rem",
|
|
77
|
-
fontWeight: "700",
|
|
78
|
-
textAlign: "center",
|
|
79
|
-
".chakra-icon": {
|
|
80
|
-
width: "13rem"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
".chakra-modal__close-btn": {
|
|
84
|
-
width: "2rem",
|
|
85
|
-
height: "2rem",
|
|
86
|
-
borderRadius: "0.5rem",
|
|
87
|
-
fontSize: "0.75rem",
|
|
88
|
-
position: "absolute",
|
|
89
|
-
top: "0.5rem",
|
|
90
|
-
right: "0.75rem",
|
|
91
|
-
color: "#60798E",
|
|
92
|
-
backgroundColor: "transparent",
|
|
93
|
-
borderStyle: "none"
|
|
94
54
|
}
|
|
95
55
|
})
|
|
96
56
|
};
|
|
@@ -139,10 +99,26 @@ const typography = {
|
|
|
139
99
|
outstanding: "Lora"
|
|
140
100
|
}
|
|
141
101
|
};
|
|
102
|
+
const overlay = {
|
|
103
|
+
background: colors.neutral.darkCharcoal,
|
|
104
|
+
opacity: ".3!important"
|
|
105
|
+
};
|
|
106
|
+
const dialog = {
|
|
107
|
+
boxShadow: shadows.lg,
|
|
108
|
+
borderRadius: radii.big
|
|
109
|
+
};
|
|
142
110
|
const theme = extendTheme({
|
|
143
111
|
colors,
|
|
144
112
|
...utils,
|
|
145
113
|
...typography,
|
|
114
|
+
components: {
|
|
115
|
+
Modal: {
|
|
116
|
+
baseStyle: {
|
|
117
|
+
overlay,
|
|
118
|
+
dialog
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
},
|
|
146
122
|
styles
|
|
147
123
|
});
|
|
148
124
|
const vars = (value) => `var(--chakra-${value})`;
|
|
@@ -1494,6 +1470,7 @@ function Btn({
|
|
|
1494
1470
|
return /* @__PURE__ */ jsx(Box, {
|
|
1495
1471
|
margin: m2,
|
|
1496
1472
|
sx: {
|
|
1473
|
+
w: isFullWidth ? "100%" : "auto",
|
|
1497
1474
|
".react-ripples": {
|
|
1498
1475
|
borderRadius,
|
|
1499
1476
|
display: `${isFullWidth ? "grid" : "inline-flex!important"}`
|
|
@@ -3207,7 +3184,7 @@ function PaymentModal({
|
|
|
3207
3184
|
backdropBlur: "2px"
|
|
3208
3185
|
});
|
|
3209
3186
|
}
|
|
3210
|
-
const [
|
|
3187
|
+
const [overlay2, setOverlay] = React.useState(/* @__PURE__ */ jsx(OverlayTwo, {}));
|
|
3211
3188
|
React.useEffect(() => {
|
|
3212
3189
|
if (showOverlay) {
|
|
3213
3190
|
setOverlay(/* @__PURE__ */ jsx(OverlayTwo, {}));
|
|
@@ -3220,7 +3197,7 @@ function PaymentModal({
|
|
|
3220
3197
|
size: "xl",
|
|
3221
3198
|
blockScrollOnMount: false,
|
|
3222
3199
|
closeOnOverlayClick: false,
|
|
3223
|
-
children: [
|
|
3200
|
+
children: [overlay2, /* @__PURE__ */ jsxs(ModalContent, {
|
|
3224
3201
|
marginTop: "0",
|
|
3225
3202
|
marginBottom: ["25.75rem", "15.75rem"],
|
|
3226
3203
|
children: [/* @__PURE__ */ jsxs(ModalHeader, {
|
|
@@ -3281,7 +3258,7 @@ function Footer({
|
|
|
3281
3258
|
onOpen,
|
|
3282
3259
|
onClose
|
|
3283
3260
|
} = useDisclosure();
|
|
3284
|
-
const [
|
|
3261
|
+
const [overlay2, setOverlay] = React.useState(false);
|
|
3285
3262
|
const cssButton = {
|
|
3286
3263
|
backgroundColor: "transparent"
|
|
3287
3264
|
};
|
|
@@ -3334,7 +3311,7 @@ function Footer({
|
|
|
3334
3311
|
}), modalPaymentText && /* @__PURE__ */ jsx(PaymentModal, {
|
|
3335
3312
|
isOpen,
|
|
3336
3313
|
onClose,
|
|
3337
|
-
showOverlay:
|
|
3314
|
+
showOverlay: overlay2,
|
|
3338
3315
|
onOpen,
|
|
3339
3316
|
modalPaymentText
|
|
3340
3317
|
})]
|