@gustavo-valsechi/client 1.4.205 → 1.4.206
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/src/components/types/modal/index.js +1 -1
- package/dist/src/components/types/modal/index.mjs +1 -1
- package/dist/src/components/types/modal/styles.js +4 -4
- package/dist/src/components/types/modal/styles.mjs +4 -4
- package/dist/src/interfaces/components/modal/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -50,7 +50,7 @@ function Modal(props) {
|
|
|
50
50
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
|
|
51
51
|
] }),
|
|
52
52
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `modal-content ${props.className || ""}`, children: [
|
|
53
|
-
props.onClose && !props.title && !props.header &&
|
|
53
|
+
props.onClose && !props.title && !props.header && !!props.closeIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "modal-close", onClick: props.onClose, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
|
|
54
54
|
props.children
|
|
55
55
|
] }),
|
|
56
56
|
props.buttons && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "modal-buttons", children: import_lodash.default.map(
|
|
@@ -17,7 +17,7 @@ function Modal(props) {
|
|
|
17
17
|
/* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
|
|
18
18
|
] }),
|
|
19
19
|
/* @__PURE__ */ jsxs("div", { className: `modal-content ${props.className || ""}`, children: [
|
|
20
|
-
props.onClose && !props.title && !props.header &&
|
|
20
|
+
props.onClose && !props.title && !props.header && !!props.closeIcon && /* @__PURE__ */ jsx("div", { className: "modal-close", onClick: props.onClose, children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
|
|
21
21
|
props.children
|
|
22
22
|
] }),
|
|
23
23
|
props.buttons && /* @__PURE__ */ jsx("div", { className: "modal-buttons", children: _.map(
|
|
@@ -175,22 +175,22 @@ const Container = import_styled_components.default.div`
|
|
|
175
175
|
|
|
176
176
|
@keyframes containerAnimation {
|
|
177
177
|
0% {
|
|
178
|
-
transform:
|
|
178
|
+
transform: translateX(-50%) translateY(43%);
|
|
179
179
|
opacity: ${(props) => props.position === "center" ? "0" : "1"};
|
|
180
180
|
}
|
|
181
181
|
100% {
|
|
182
|
-
transform:
|
|
182
|
+
transform: translateX(-50%) translateY(50%);
|
|
183
183
|
opacity: 1;
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
@keyframes containerMobileAnimation {
|
|
188
188
|
0% {
|
|
189
|
-
transform:
|
|
189
|
+
transform: translateX(-50%) translateY(50%);
|
|
190
190
|
opacity: ${(props) => props.position === "center" ? "0" : "1"};
|
|
191
191
|
}
|
|
192
192
|
100% {
|
|
193
|
-
transform:
|
|
193
|
+
transform: translateX(-50%) translateY(0);
|
|
194
194
|
opacity: 1;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -142,22 +142,22 @@ const Container = styled.div`
|
|
|
142
142
|
|
|
143
143
|
@keyframes containerAnimation {
|
|
144
144
|
0% {
|
|
145
|
-
transform:
|
|
145
|
+
transform: translateX(-50%) translateY(43%);
|
|
146
146
|
opacity: ${(props) => props.position === "center" ? "0" : "1"};
|
|
147
147
|
}
|
|
148
148
|
100% {
|
|
149
|
-
transform:
|
|
149
|
+
transform: translateX(-50%) translateY(50%);
|
|
150
150
|
opacity: 1;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
@keyframes containerMobileAnimation {
|
|
155
155
|
0% {
|
|
156
|
-
transform:
|
|
156
|
+
transform: translateX(-50%) translateY(50%);
|
|
157
157
|
opacity: ${(props) => props.position === "center" ? "0" : "1"};
|
|
158
158
|
}
|
|
159
159
|
100% {
|
|
160
|
-
transform:
|
|
160
|
+
transform: translateX(-50%) translateY(0);
|
|
161
161
|
opacity: 1;
|
|
162
162
|
}
|
|
163
163
|
}
|