@smart-factor/gem-ui-components 0.0.63 → 0.0.65

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.
@@ -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 }) => t === "success" ? e.palette.success.main : e.palette.error.main};
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((t) => /* @__PURE__ */ ve(PM, { type: "error", children: [
37427
- /* @__PURE__ */ v(Qv, {}),
37428
- /* @__PURE__ */ v(wM, { message: e, id: t.id })
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-factor/gem-ui-components",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "private": false,
5
5
  "description": "Gem UI Components",
6
6
  "type": "module",