@ttoss/components 1.24.2 → 1.24.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/esm/index.js +10 -11
- package/dist/index.js +10 -11
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -139,12 +139,11 @@ ReactModal.defaultStyles = {
|
|
|
139
139
|
content: {}
|
|
140
140
|
};
|
|
141
141
|
var Modal = (props) => {
|
|
142
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
143
142
|
const { theme } = useTheme2();
|
|
144
143
|
const padding = useResponsiveValue([
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
theme.space?.[2],
|
|
145
|
+
theme.space?.[3],
|
|
146
|
+
theme.space?.[4]
|
|
148
147
|
]) || 0;
|
|
149
148
|
const style = {
|
|
150
149
|
overlay: {
|
|
@@ -158,10 +157,10 @@ var Modal = (props) => {
|
|
|
158
157
|
justifyContent: "center",
|
|
159
158
|
alignItems: "center",
|
|
160
159
|
padding,
|
|
161
|
-
...
|
|
160
|
+
...props.style?.overlay
|
|
162
161
|
},
|
|
163
162
|
content: {
|
|
164
|
-
backgroundColor:
|
|
163
|
+
backgroundColor: theme.rawColors?.background?.toString() || "#fff",
|
|
165
164
|
padding,
|
|
166
165
|
WebkitOverflowScrolling: "touch",
|
|
167
166
|
overflow: "auto",
|
|
@@ -171,11 +170,11 @@ var Modal = (props) => {
|
|
|
171
170
|
right: "0px",
|
|
172
171
|
bottom: "0px",
|
|
173
172
|
border: "2px solid",
|
|
174
|
-
borderColor:
|
|
173
|
+
borderColor: theme.rawColors?.muted?.toString() || "#fff",
|
|
175
174
|
display: "flex",
|
|
176
175
|
flexDirection: "column",
|
|
177
176
|
alignItems: "center",
|
|
178
|
-
...
|
|
177
|
+
...props.style?.content
|
|
179
178
|
}
|
|
180
179
|
};
|
|
181
180
|
return /* @__PURE__ */ jsx4(ReactModal, {
|
|
@@ -202,11 +201,11 @@ var ToastContainer = (props) => {
|
|
|
202
201
|
sx: ({ colors, fonts }) => ({
|
|
203
202
|
"--toastify-color-light": "#fff",
|
|
204
203
|
"--toastify-color-dark": "#121212",
|
|
205
|
-
"--toastify-color-info":
|
|
206
|
-
"--toastify-color-success":
|
|
204
|
+
"--toastify-color-info": colors?.info || "#3498db",
|
|
205
|
+
"--toastify-color-success": colors?.success || "#07bc0c",
|
|
207
206
|
"--toastify-color-warning": "#f1c40f",
|
|
208
207
|
"--toastify-color-error": "#e74c3c",
|
|
209
|
-
"--toastify-color-progress-light": `linear-gradient(to right, ${colors
|
|
208
|
+
"--toastify-color-progress-light": `linear-gradient(to right, ${colors?.primary}, ${colors?.secondary})`,
|
|
210
209
|
"--toastify-font-family": fonts.body
|
|
211
210
|
}),
|
|
212
211
|
children: /* @__PURE__ */ jsx5(ReactToastifyToastContainer, {
|
package/dist/index.js
CHANGED
|
@@ -168,12 +168,11 @@ import_react_modal.default.defaultStyles = {
|
|
|
168
168
|
content: {}
|
|
169
169
|
};
|
|
170
170
|
var Modal = (props) => {
|
|
171
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
172
171
|
const { theme } = (0, import_ui3.useTheme)();
|
|
173
172
|
const padding = (0, import_ui3.useResponsiveValue)([
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
theme.space?.[2],
|
|
174
|
+
theme.space?.[3],
|
|
175
|
+
theme.space?.[4]
|
|
177
176
|
]) || 0;
|
|
178
177
|
const style = {
|
|
179
178
|
overlay: {
|
|
@@ -187,10 +186,10 @@ var Modal = (props) => {
|
|
|
187
186
|
justifyContent: "center",
|
|
188
187
|
alignItems: "center",
|
|
189
188
|
padding,
|
|
190
|
-
...
|
|
189
|
+
...props.style?.overlay
|
|
191
190
|
},
|
|
192
191
|
content: {
|
|
193
|
-
backgroundColor:
|
|
192
|
+
backgroundColor: theme.rawColors?.background?.toString() || "#fff",
|
|
194
193
|
padding,
|
|
195
194
|
WebkitOverflowScrolling: "touch",
|
|
196
195
|
overflow: "auto",
|
|
@@ -200,11 +199,11 @@ var Modal = (props) => {
|
|
|
200
199
|
right: "0px",
|
|
201
200
|
bottom: "0px",
|
|
202
201
|
border: "2px solid",
|
|
203
|
-
borderColor:
|
|
202
|
+
borderColor: theme.rawColors?.muted?.toString() || "#fff",
|
|
204
203
|
display: "flex",
|
|
205
204
|
flexDirection: "column",
|
|
206
205
|
alignItems: "center",
|
|
207
|
-
...
|
|
206
|
+
...props.style?.content
|
|
208
207
|
}
|
|
209
208
|
};
|
|
210
209
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_modal.default, {
|
|
@@ -228,11 +227,11 @@ var ToastContainer = (props) => {
|
|
|
228
227
|
sx: ({ colors, fonts }) => ({
|
|
229
228
|
"--toastify-color-light": "#fff",
|
|
230
229
|
"--toastify-color-dark": "#121212",
|
|
231
|
-
"--toastify-color-info":
|
|
232
|
-
"--toastify-color-success":
|
|
230
|
+
"--toastify-color-info": colors?.info || "#3498db",
|
|
231
|
+
"--toastify-color-success": colors?.success || "#07bc0c",
|
|
233
232
|
"--toastify-color-warning": "#f1c40f",
|
|
234
233
|
"--toastify-color-error": "#e74c3c",
|
|
235
|
-
"--toastify-color-progress-light": `linear-gradient(to right, ${colors
|
|
234
|
+
"--toastify-color-progress-light": `linear-gradient(to right, ${colors?.primary}, ${colors?.secondary})`,
|
|
236
235
|
"--toastify-font-family": fonts.body
|
|
237
236
|
}),
|
|
238
237
|
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_toastify.ToastContainer, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/components",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.3",
|
|
4
4
|
"description": "React components.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"react": ">=16.8.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@ttoss/config": "^1.
|
|
36
|
-
"@ttoss/test-utils": "^1.18.
|
|
37
|
-
"@ttoss/ui": "^1.26.
|
|
35
|
+
"@ttoss/config": "^1.25.0",
|
|
36
|
+
"@ttoss/test-utils": "^1.18.3",
|
|
37
|
+
"@ttoss/ui": "^1.26.3",
|
|
38
38
|
"@types/jest": "^29.2.4",
|
|
39
39
|
"jest": "^29.3.1"
|
|
40
40
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "88b98945c469cdfdece6b12ce41243403ad2c242"
|
|
49
49
|
}
|