@arkyn/components 1.3.126 → 1.3.127
Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js
CHANGED
@@ -18205,11 +18205,12 @@ var Y1 = ({ id: t, className: e, style: n, onHeightUpdate: r, children: i }) =>
|
|
18205
18205
|
}));
|
18206
18206
|
}, ui = Bt;
|
18207
18207
|
function Xw({ children: t }) {
|
18208
|
-
function e({ message: n,
|
18209
|
-
switch (
|
18208
|
+
function e({ message: n, type: r, size: i }) {
|
18209
|
+
switch (r) {
|
18210
18210
|
case "success":
|
18211
18211
|
ui.success(n, {
|
18212
18212
|
style: {
|
18213
|
+
padding: "8px 16px",
|
18213
18214
|
border: "1px solid rgba(var(--toast-success), 1)",
|
18214
18215
|
background: "rgba(var(--toast-success), 0.2)",
|
18215
18216
|
color: "var(--text-heading)"
|
@@ -18221,13 +18222,48 @@ function Xw({ children: t }) {
|
|
18221
18222
|
});
|
18222
18223
|
break;
|
18223
18224
|
case "danger":
|
18224
|
-
ui.error(n
|
18225
|
+
ui.error(n, {
|
18226
|
+
style: {
|
18227
|
+
padding: "8px 16px",
|
18228
|
+
border: "1px solid rgba(var(--toast-danger), 1)",
|
18229
|
+
background: "rgba(var(--toast-danger), 0.2)",
|
18230
|
+
color: "var(--text-heading)"
|
18231
|
+
},
|
18232
|
+
iconTheme: {
|
18233
|
+
primary: "rgba(var(--toast-danger), 1)",
|
18234
|
+
secondary: "#fff"
|
18235
|
+
}
|
18236
|
+
});
|
18225
18237
|
break;
|
18226
18238
|
case "info":
|
18227
|
-
ui(n
|
18239
|
+
ui(n, {
|
18240
|
+
icon: "ℹ️",
|
18241
|
+
style: {
|
18242
|
+
padding: "8px 16px",
|
18243
|
+
border: "1px solid rgba(var(--toast-info), 1)",
|
18244
|
+
background: "rgba(var(--toast-info), 0.2)",
|
18245
|
+
color: "var(--text-heading)"
|
18246
|
+
},
|
18247
|
+
iconTheme: {
|
18248
|
+
primary: "rgba(var(--toast-info), 1)",
|
18249
|
+
secondary: "#fff"
|
18250
|
+
}
|
18251
|
+
});
|
18228
18252
|
break;
|
18229
18253
|
case "warning":
|
18230
|
-
ui(n
|
18254
|
+
ui(n, {
|
18255
|
+
icon: "⚠️",
|
18256
|
+
style: {
|
18257
|
+
padding: "8px 16px",
|
18258
|
+
border: "1px solid rgba(var(--toast-warning), 1)",
|
18259
|
+
background: "rgba(var(--toast-warning), 0.2)",
|
18260
|
+
color: "var(--text-heading)"
|
18261
|
+
},
|
18262
|
+
iconTheme: {
|
18263
|
+
primary: "rgba(var(--toast-warning), 1)",
|
18264
|
+
secondary: "#fff"
|
18265
|
+
}
|
18266
|
+
});
|
18231
18267
|
break;
|
18232
18268
|
}
|
18233
18269
|
}
|