@smart-factor/gem-ui-components 0.0.63 → 0.0.64
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/SignEditor.js +1 -1
- package/dist/components/Toast/Toast.stories.d.ts +1 -0
- package/dist/components/Toast/Toast.styles.d.ts +1 -1
- package/dist/components/Toast/ToastContent.d.ts +7 -3
- package/dist/components/Toast/errorToast.d.ts +4 -1
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/Toast/infoToast.d.ts +4 -0
- package/dist/components/Toast/successToast.d.ts +4 -1
- package/dist/main.js +626 -612
- package/dist/{theme-BDBtRh3g.js → theme-Cpftb9Qh.js} +20 -6
- package/package.json +1 -1
|
@@ -37401,7 +37401,18 @@ const SM = z(dt)`
|
|
|
37401
37401
|
shouldForwardProp: (e) => e !== "type"
|
|
37402
37402
|
})`
|
|
37403
37403
|
padding: 12px;
|
|
37404
|
-
background-color: ${({ theme: e, type: t }) =>
|
|
37404
|
+
background-color: ${({ theme: e, type: t }) => {
|
|
37405
|
+
switch (t) {
|
|
37406
|
+
case "success":
|
|
37407
|
+
return e.palette.success.main;
|
|
37408
|
+
case "error":
|
|
37409
|
+
return e.palette.error.main;
|
|
37410
|
+
case "info":
|
|
37411
|
+
return e.palette.info.main;
|
|
37412
|
+
default:
|
|
37413
|
+
return e.palette.grey[300];
|
|
37414
|
+
}
|
|
37415
|
+
}};
|
|
37405
37416
|
flex-direction: row;
|
|
37406
37417
|
align-items: center;
|
|
37407
37418
|
gap: 15px;
|
|
@@ -37422,11 +37433,14 @@ function wM({ message: e, id: t }) {
|
|
|
37422
37433
|
)
|
|
37423
37434
|
] });
|
|
37424
37435
|
}
|
|
37425
|
-
const sR = (e) => {
|
|
37426
|
-
Qd.custom(
|
|
37427
|
-
/* @__PURE__ */
|
|
37428
|
-
|
|
37429
|
-
|
|
37436
|
+
const sR = (e, t) => {
|
|
37437
|
+
Qd.custom(
|
|
37438
|
+
(o) => /* @__PURE__ */ ve(PM, { type: "error", children: [
|
|
37439
|
+
/* @__PURE__ */ v(Qv, {}),
|
|
37440
|
+
/* @__PURE__ */ v(wM, { message: e, id: o.id })
|
|
37441
|
+
] }),
|
|
37442
|
+
t
|
|
37443
|
+
);
|
|
37430
37444
|
}, TM = "Coś poszło nie tak", cR = (e) => FM(e) ? e.response.data.response.user_message : TM;
|
|
37431
37445
|
function FM(e) {
|
|
37432
37446
|
return !!qx(e, "response.data.response.user_message");
|