@smart-factor/gem-ui-components 0.0.115 → 0.0.116

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.
@@ -2,7 +2,7 @@ import './assets/SignEditor.css';var N4 = Object.defineProperty;
2
2
  var I4 = (o, e, t) => e in o ? N4(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var Eu = (o, e, t) => I4(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as Vt, jsxs as ia, Fragment as o_ } from "react/jsx-runtime";
5
- import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./theme-Dfrivrji.js";
5
+ import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./theme-C-wZOSrn.js";
6
6
  import { q as XE, s as Di, I as tu, J as r_, H as YE, S as lp } from "./Stack-Bsa5WF4E.js";
7
7
  import { createContext as U4, useContext as z4, useState as vl, useCallback as zu, useEffect as oc, useMemo as cp, useRef as K4 } from "react";
8
8
  import "react-dom";
package/dist/licenses.txt CHANGED
@@ -1171,7 +1171,7 @@ SOFTWARE.
1171
1171
  ---
1172
1172
 
1173
1173
  Name: @mui/x-date-pickers
1174
- Version: 7.29.2
1174
+ Version: 7.29.1
1175
1175
  License: MIT
1176
1176
  Private: false
1177
1177
  Description: The community edition of the Date and Time Picker components (MUI X).
@@ -2322,7 +2322,7 @@ SOFTWARE.
2322
2322
  ---
2323
2323
 
2324
2324
  Name: @mui/x-data-grid
2325
- Version: 7.29.2
2325
+ Version: 7.29.1
2326
2326
  License: MIT
2327
2327
  Private: false
2328
2328
  Description: The Community plan edition of the Data Grid components (MUI X).
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as d, jsxs as j, Fragment as bt } from "react/jsx-runtime";
2
2
  import { P as l, R as zn, U as Bn, V as Yn, W as Fn, y as Un, X as Vn, q as te, T as Me, Y as Gn, Z as Hn, $ as qn, c as yt, g as vt, e as ye, A as Oe, k as Ae, s as re, l as Ee, o as ie, t as Wn, a0 as Vr, D as Jn, F as X, N as Pe, a1 as Zn, a2 as Kn, a3 as Ut, a4 as Vt, J as we, a5 as cr, a6 as Xn, L as Qn, w as be, K as Fe, H as Gr, i as St, I as ce, a7 as eo, S as Gt, a8 as Ge, _ as to } from "./Stack-Bsa5WF4E.js";
3
- import { l as ro, r as no, L as oo, m as so, n as Ke, S as ao, o as io, p as co, q as lo, t as uo, v as wt, w as fo, x as po, B as Be, j as ho, d as lr, y as mo, C as He, E as ve, H as Hr, J as qr, M as go, N as ee, O as Se, P as bo, R as $e, V as Ht, W as ut, X as Wr, Y as Le, Z as ft, _ as E, z as Jr, b as yo, e as vo, G as So, $ as To, K as Co, a0 as xo, a1 as ne, a2 as Zr, a3 as qt, i as Kr, a4 as De, a5 as wo, a6 as Mo, a7 as Oo, a8 as Po, F as $o, a9 as Tt, aa as Ao, ab as Eo, ac as Lo, ad as Xr, ae as Do, af as Qr, ag as en, ah as jo, ai as Io, aj as _o, ak as tn, al as No, am as ko, an as Ro, ao as zo, ap as Bo, aq as Yo, ar as Fo, as as Uo, at as Vo, au as Go, h as Ho, av as qo, aw as rn, ax as nn, ay as on, az as Wo, aA as Jo } from "./theme-Dfrivrji.js";
4
- import { aI as Xu, A as Qu, D as ef, aJ as tf, g as rf, aK as nf, aB as of, I as sf, aC as af, aD as cf, aE as lf, aF as df, aG as uf, T as ff, U as pf, aL as hf, aN as mf, aH as gf, aM as bf } from "./theme-Dfrivrji.js";
3
+ import { l as ro, r as no, L as oo, m as so, n as Ke, S as ao, o as io, p as co, q as lo, t as uo, v as wt, w as fo, x as po, B as Be, j as ho, d as lr, y as mo, C as He, E as ve, H as Hr, J as qr, M as go, N as ee, O as Se, P as bo, R as $e, V as Ht, W as ut, X as Wr, Y as Le, Z as ft, _ as E, z as Jr, b as yo, e as vo, G as So, $ as To, K as Co, a0 as xo, a1 as ne, a2 as Zr, a3 as qt, i as Kr, a4 as De, a5 as wo, a6 as Mo, a7 as Oo, a8 as Po, F as $o, a9 as Tt, aa as Ao, ab as Eo, ac as Lo, ad as Xr, ae as Do, af as Qr, ag as en, ah as jo, ai as Io, aj as _o, ak as tn, al as No, am as ko, an as Ro, ao as zo, ap as Bo, aq as Yo, ar as Fo, as as Uo, at as Vo, au as Go, h as Ho, av as qo, aw as rn, ax as nn, ay as on, az as Wo, aA as Jo } from "./theme-C-wZOSrn.js";
4
+ import { aI as Xu, A as Qu, D as ef, aJ as tf, g as rf, aK as nf, aB as of, I as sf, aC as af, aD as cf, aE as lf, aF as df, aG as uf, T as ff, U as pf, aL as hf, aN as mf, aH as gf, aM as bf } from "./theme-C-wZOSrn.js";
5
5
  import * as w from "react";
6
6
  import { useState as V, useCallback as le, useEffect as je, useLayoutEffect as Ue, useMemo as ae } from "react";
7
7
  import { e as sn, P as an, i as Zo } from "./Drawer-DbJg-t8M.js";
@@ -261824,23 +261824,23 @@ const NotificationItemWrapper = styled(Stack$1)`
261824
261824
  };
261825
261825
  L("x-auth-token"), L("x-auth-login"), L("roles"), sessionStorage.clear(), localStorage.clear();
261826
261826
  }, logout = async () => {
261827
- await api.user.logout(), clearCookiesAndStorage(), window.location.href = "/";
261827
+ api.user.logout(), clearCookiesAndStorage();
261828
261828
  }, useLogout = (L) => useMutation({
261829
261829
  mutationFn: logout,
261830
261830
  ...L
261831
261831
  }), SidebarLogoutButton = ({
261832
261832
  isMinified: L,
261833
- onLogout: H
261833
+ onLogout: H = () => {
261834
+ window.location.href = "/";
261835
+ }
261834
261836
  }) => {
261835
- const { mutateAsync: N, isPending: t0 } = useLogout({
261836
- onSuccess: () => {
261837
- clearCookiesAndStorage(), H == null || H();
261838
- }
261839
- });
261837
+ const { mutateAsync: N, isPending: t0 } = useLogout(), u0 = () => {
261838
+ N(), H();
261839
+ };
261840
261840
  return L ? /* @__PURE__ */ jsx(
261841
261841
  IconButton,
261842
261842
  {
261843
- onClick: () => N(),
261843
+ onClick: u0,
261844
261844
  disabled: t0,
261845
261845
  sx: { fontSize: 16, color: "white" },
261846
261846
  children: /* @__PURE__ */ jsx(Logout, {})
@@ -261849,7 +261849,7 @@ const NotificationItemWrapper = styled(Stack$1)`
261849
261849
  Button$2,
261850
261850
  {
261851
261851
  startIcon: /* @__PURE__ */ jsx(Logout, {}),
261852
- onClick: () => N(),
261852
+ onClick: u0,
261853
261853
  disabled: t0,
261854
261854
  sx: { fontSize: 16, color: "white" },
261855
261855
  children: "Wyloguj"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-factor/gem-ui-components",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "private": false,
5
5
  "description": "Gem UI Components",
6
6
  "type": "module",
@@ -42,14 +42,22 @@
42
42
  "@mui/x-data-grid-pro": "7.29.1",
43
43
  "@mui/x-date-pickers": "7.29.1",
44
44
  "@mui/x-tree-view": "7.29.1",
45
+ "@tanstack/react-query": "5.75.2",
45
46
  "react": "18.3.1",
46
47
  "react-dom": "18.3.1",
47
48
  "react-hook-form": "7.56.2",
49
+ "react-router": "6.26.0",
48
50
  "react-router-dom": "6.26.0"
49
51
  },
50
52
  "devDependencies": {
51
53
  "@chromatic-com/storybook": "^3.2.6",
52
54
  "@eslint/js": "^9.26.0",
55
+ "@mui/icons-material": "7.0.2",
56
+ "@mui/material": "7.0.2",
57
+ "@mui/system": "7.0.2",
58
+ "@mui/x-data-grid-pro": "7.29.1",
59
+ "@mui/x-date-pickers": "7.29.1",
60
+ "@mui/x-tree-view": "7.29.1",
53
61
  "@storybook/addon-essentials": "^8.6.9",
54
62
  "@storybook/addon-interactions": "^8.6.9",
55
63
  "@storybook/addon-links": "^8.6.9",
@@ -58,6 +66,7 @@
58
66
  "@storybook/react-vite": "^8.6.9",
59
67
  "@storybook/test": "^8.6.9",
60
68
  "@svgdotjs/svg.js": "^3.2.4",
69
+ "@tanstack/react-query": "5.75.2",
61
70
  "@testing-library/react": "^16.2.0",
62
71
  "@testing-library/user-event": "^14.6.1",
63
72
  "@types/lodash-es": "^4.17.12",
@@ -77,6 +86,11 @@
77
86
  "glob": "11.0.1",
78
87
  "globals": "^16.0.0",
79
88
  "jsdom": "^26.0.0",
89
+ "react": "18.3.1",
90
+ "react-dom": "18.3.1",
91
+ "react-hook-form": "7.56.2",
92
+ "react-router": "6.26.0",
93
+ "react-router-dom": "6.26.0",
80
94
  "rollup-plugin-license": "^3.6.0",
81
95
  "storybook": "^8.6.9",
82
96
  "tiff.js": "^1.0.0",
@@ -91,13 +105,6 @@
91
105
  "@emotion/react": "^11.14.0",
92
106
  "@emotion/styled": "^11.14.0",
93
107
  "@hookform/resolvers": "^4.1.2",
94
- "@mui/icons-material": "^7.0.2",
95
- "@mui/material": "^7.0.2",
96
- "@mui/system": "^7.0.2",
97
- "@mui/x-data-grid-pro": "^7.29.1",
98
- "@mui/x-date-pickers": "^7.29.1",
99
- "@mui/x-tree-view": "^7.29.1",
100
- "@tanstack/react-query": "^5.75.2",
101
108
  "axios": "^1.8.4",
102
109
  "dayjs": "^1.11.13",
103
110
  "http-proxy-middleware": "^3.0.3",
@@ -109,10 +116,8 @@
109
116
  "qs": "^6.14.0",
110
117
  "react-dropzone": "^14.3.8",
111
118
  "react-error-boundary": "^6.0.0",
112
- "react-hook-form": "7.56.2",
113
119
  "react-hot-toast": "^2.5.2",
114
120
  "react-intersection-observer": "^9.16.0",
115
- "react-router-dom": "^6.26.0",
116
121
  "sass": "^1.86.0",
117
122
  "svgedit-pl": "^7.3.18",
118
123
  "swagger-typescript-api": "^13.0.27",