@ukpc-lib/react 0.3.3 → 0.3.4
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/components/GlobalMenu/components/MenuItem.d.ts +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +3 -3
- package/dist/index-2ca7cc99.js +636 -0
- package/dist/index-5840ed79.cjs +1 -0
- package/dist/{index.module-be2c9027.cjs → index.module-28c2f9be.cjs} +116 -116
- package/dist/{index.module-fcfb53fb.js → index.module-d03675ea.js} +6673 -7185
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.d.ts +1 -1
- package/dist/share/index.js +26 -25
- package/dist/theme/Theme.d.ts +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.d.ts +26 -3
- package/dist/theme/index.js +7 -459
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +2 -2
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-ff7fd2be.cjs → index-12495706.cjs} +1 -1
- package/web-components-bundle/{index-8081b070.js → index-21a54132.js} +1 -1
- package/web-components-bundle/{index-c311c558.cjs → index-25f216cc.cjs} +16 -16
- package/web-components-bundle/{index-feebf9bf.js → index-c5021c14.js} +856 -882
- package/dist/index-5bc96a1f.js +0 -147
- package/dist/index-b3ac4c73.cjs +0 -1
- package/dist/share/BrandThemeProvider/Colors.d.ts +0 -33
- package/dist/share/BrandThemeProvider/Theme.d.ts +0 -21
- package/dist/share/BrandThemeProvider/index.d.ts +0 -15
- package/dist/theme/SaasThemeProvider.d.ts +0 -2
package/dist/share/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index.module-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index.module-28c2f9be.cjs"),g=require("axios"),i=require("react/jsx-runtime"),d=require("react");require("moment");require("@r2wc/react-to-web-component");require("@mui/material");const R=require("react-router-dom"),T=require("../index-5840ed79.cjs");function v({config:n,pushError:o=r.pushError}){const t=g.create(n);t.interceptors.request.use(async e=>(e.headers={Accept:"application/json","Content-Type":"application/json"},e),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,async e=>s(e));async function s(e){var l,h,P,p;console.error("Error 🚨:",e);const a=e.config,u=(h=(l=e.response)==null?void 0:l.data)==null?void 0:h.errorMessage,m=u===r.ERROR_MESSAGE.TOKEN_EXPIRED;return((P=e.response)==null?void 0:P.status)===401?m&&!a._retry?(a._retry=!0,t.post("/authentication/api/v1/auth/refresh-token").then(()=>t(a)).catch(()=>r.login(n.baseURL))):((!u||!m)&&r.login(n.baseURL),Promise.reject("Unauthorized! Please login again.")):(((p=e.response)==null?void 0:p.status)===403?o(r.t("errorMessage.403")):o(r.t(`${u}`)||"Something went wrong!"),Promise.reject(e.response.data))}return t}const f=n=>{const[o,t]=d.useState([]);return d.useEffect(()=>{g.get(`${n}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>t(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[n]),o},c=n=>(o,t)=>{const s=f(n);return t?o.every(e=>s==null?void 0:s.includes(e)):o.some(e=>s==null?void 0:s.includes(e))},q=({baseUrl:n,accessWith:o,requireAll:t,children:s})=>c(n)(o,t)?i.jsx(i.Fragment,{children:s}):null,x=({accessWith:n,requireAll:o,baseUrl:t,unAuthorizedPath:s,children:e})=>c(t)(n,o)?i.jsx(i.Fragment,{children:e}):i.jsx(R.Navigate,{to:s,replace:!0});exports.AuthProvider=r.AuthProvider;exports.TranslationProvider=r.TranslationProvider;exports.search=r.search;exports.translate=r.translate;exports.translationConfig=r.translationConfig;exports.useAuth=r.useAuth;exports.useCustomTranslation=r.useCustomTranslation;exports.useTranslation=r.useTranslation$1;exports.SaasThemeProvider=T.SaasThemeProvider;exports.useTheme=T.useTheme;exports.HasPermission=q;exports.PermissionRoute=x;exports.getAxiosInstance=v;exports.getUseHasPermission=c;exports.useGetPermission=f;
|
package/dist/share/index.d.ts
CHANGED
package/dist/share/index.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { B as l, E as f, p as E, F as R } from "../index.module-
|
|
2
|
-
import { H as
|
|
1
|
+
import { B as l, E as f, p as E, F as R } from "../index.module-d03675ea.js";
|
|
2
|
+
import { H as q, T as F, m as K, M as L, K as O, J as b, u as z, N as B } from "../index.module-d03675ea.js";
|
|
3
3
|
import P from "axios";
|
|
4
|
-
import { jsx as i, Fragment as
|
|
4
|
+
import { jsx as i, Fragment as g } from "react/jsx-runtime";
|
|
5
5
|
import { useState as T, useEffect as v } from "react";
|
|
6
6
|
import "moment";
|
|
7
7
|
import "@r2wc/react-to-web-component";
|
|
8
8
|
import "@mui/material";
|
|
9
|
-
import { Navigate as
|
|
10
|
-
|
|
9
|
+
import { Navigate as x } from "react-router-dom";
|
|
10
|
+
import { S as J, u as X } from "../index-2ca7cc99.js";
|
|
11
|
+
function H({
|
|
11
12
|
config: t,
|
|
12
13
|
pushError: n = E
|
|
13
14
|
}) {
|
|
@@ -30,7 +31,7 @@ function G({
|
|
|
30
31
|
}
|
|
31
32
|
return r;
|
|
32
33
|
}
|
|
33
|
-
const
|
|
34
|
+
const y = (t) => {
|
|
34
35
|
const [n, r] = T([]);
|
|
35
36
|
return v(() => {
|
|
36
37
|
P.get(`${t}/user-management/api/v1/users/my-account/permissions`, {
|
|
@@ -39,39 +40,39 @@ const x = (t) => {
|
|
|
39
40
|
console.error("Getting user permission error:", s);
|
|
40
41
|
});
|
|
41
42
|
}, [t]), n;
|
|
42
|
-
},
|
|
43
|
-
const s =
|
|
43
|
+
}, d = (t) => (n, r) => {
|
|
44
|
+
const s = y(t);
|
|
44
45
|
return r ? n.every(
|
|
45
46
|
(e) => s == null ? void 0 : s.includes(e)
|
|
46
47
|
) : n.some(
|
|
47
48
|
(e) => s == null ? void 0 : s.includes(e)
|
|
48
49
|
);
|
|
49
|
-
},
|
|
50
|
+
}, I = ({
|
|
50
51
|
baseUrl: t,
|
|
51
52
|
accessWith: n,
|
|
52
53
|
requireAll: r,
|
|
53
54
|
children: s
|
|
54
|
-
}) =>
|
|
55
|
+
}) => d(t)(n, r) ? /* @__PURE__ */ i(g, { children: s }) : null, N = ({
|
|
55
56
|
accessWith: t,
|
|
56
57
|
requireAll: n,
|
|
57
58
|
baseUrl: r,
|
|
58
59
|
unAuthorizedPath: s,
|
|
59
60
|
children: e
|
|
60
|
-
}) =>
|
|
61
|
+
}) => d(r)(t, n) ? /* @__PURE__ */ i(g, { children: e }) : /* @__PURE__ */ i(x, { to: s, replace: !0 });
|
|
61
62
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
q as AuthProvider,
|
|
64
|
+
I as HasPermission,
|
|
65
|
+
N as PermissionRoute,
|
|
66
|
+
J as SaasThemeProvider,
|
|
67
|
+
F as TranslationProvider,
|
|
68
|
+
H as getAxiosInstance,
|
|
69
|
+
d as getUseHasPermission,
|
|
70
|
+
K as search,
|
|
71
|
+
L as translate,
|
|
72
|
+
O as translationConfig,
|
|
72
73
|
b as useAuth,
|
|
73
|
-
z as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
z as useCustomTranslation,
|
|
75
|
+
y as useGetPermission,
|
|
76
|
+
X as useTheme,
|
|
77
|
+
B as useTranslation
|
|
77
78
|
};
|
package/dist/theme/Theme.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ declare module '@mui/material/Button' {
|
|
|
17
17
|
type ThemeProps = {
|
|
18
18
|
colors?: ColorsType;
|
|
19
19
|
};
|
|
20
|
-
export declare const createCustomTheme: (
|
|
20
|
+
export declare const createCustomTheme: (props: ThemeProps) => import("@mui/material").Theme;
|
|
21
21
|
export {};
|
package/dist/theme/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("@mui/material");require("react");require("react-query");const e=require("../index-5840ed79.cjs");exports.SaasThemeProvider=e.SaasThemeProvider;exports.useTheme=e.useTheme;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { ColorsType } from './Colors';
|
|
4
|
+
type B = {
|
|
5
|
+
url: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const useTheme: () => {
|
|
9
|
+
colors: ColorsType;
|
|
10
|
+
theme: Theme;
|
|
11
|
+
logo: any;
|
|
12
|
+
isFetching: boolean;
|
|
13
|
+
};
|
|
14
|
+
type P = {
|
|
15
|
+
brandTheme: B;
|
|
16
|
+
customTheme?: never;
|
|
17
|
+
} | {
|
|
18
|
+
brandTheme?: never;
|
|
19
|
+
customTheme: Partial<Theme>;
|
|
20
|
+
} | {
|
|
21
|
+
brandTheme?: never;
|
|
22
|
+
customTheme?: never;
|
|
23
|
+
};
|
|
24
|
+
type BrandThemeProps = PropsWithChildren<P>;
|
|
25
|
+
export declare const SaasThemeProvider: (props: BrandThemeProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
package/dist/theme/index.js
CHANGED
|
@@ -1,461 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ n(a, { theme: r, children: e.children });
|
|
7
|
-
}, p = ({ colors: e = i }) => d({
|
|
8
|
-
palette: {
|
|
9
|
-
primary: {
|
|
10
|
-
main: e.primary300
|
|
11
|
-
},
|
|
12
|
-
secondary: {
|
|
13
|
-
main: e.secondary
|
|
14
|
-
},
|
|
15
|
-
warning: {
|
|
16
|
-
main: e.warning
|
|
17
|
-
},
|
|
18
|
-
error: {
|
|
19
|
-
main: e.danger
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
typography: {
|
|
23
|
-
fontFamily: "TT Firs Neue Trl",
|
|
24
|
-
button: {
|
|
25
|
-
textTransform: "none",
|
|
26
|
-
// padding: '0.75rem 1rem',
|
|
27
|
-
fontSize: "0.875rem",
|
|
28
|
-
// lineHeight: '1rem',
|
|
29
|
-
// height: 'fit-content',
|
|
30
|
-
// // fontFamily: '',
|
|
31
|
-
// borderRadius: 5,
|
|
32
|
-
fontWeight: 400,
|
|
33
|
-
boxShadow: "none"
|
|
34
|
-
},
|
|
35
|
-
body1: {
|
|
36
|
-
fontSize: "0.875rem",
|
|
37
|
-
fontWeight: 400
|
|
38
|
-
},
|
|
39
|
-
body2: {
|
|
40
|
-
fontSize: "0.75rem"
|
|
41
|
-
},
|
|
42
|
-
h6: {
|
|
43
|
-
fontSize: "0.875rem",
|
|
44
|
-
fontWeight: 500
|
|
45
|
-
},
|
|
46
|
-
h5: {
|
|
47
|
-
fontSize: "1rem",
|
|
48
|
-
fontWeight: 500
|
|
49
|
-
},
|
|
50
|
-
h4: {
|
|
51
|
-
fontSize: "1.25rem",
|
|
52
|
-
fontWeight: 500
|
|
53
|
-
},
|
|
54
|
-
h3: {
|
|
55
|
-
fontSize: "1.5rem",
|
|
56
|
-
fontWeight: 500
|
|
57
|
-
},
|
|
58
|
-
h2: {
|
|
59
|
-
fontSize: "2rem",
|
|
60
|
-
fontWeight: 500
|
|
61
|
-
},
|
|
62
|
-
h1: {
|
|
63
|
-
fontSize: "2.5rem",
|
|
64
|
-
fontWeight: 500
|
|
65
|
-
},
|
|
66
|
-
subtitle1: {
|
|
67
|
-
fontSize: "0.75rem"
|
|
68
|
-
},
|
|
69
|
-
subtitle2: {
|
|
70
|
-
fontSize: "0.625rem"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
components: {
|
|
74
|
-
MuiIconButton: {
|
|
75
|
-
styleOverrides: {
|
|
76
|
-
root: {},
|
|
77
|
-
sizeSmall: {}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
MuiButton: {
|
|
81
|
-
styleOverrides: {
|
|
82
|
-
root: {
|
|
83
|
-
boxShadow: "none !important",
|
|
84
|
-
padding: "8px 32px",
|
|
85
|
-
borderWidth: 1,
|
|
86
|
-
borderRadius: 3,
|
|
87
|
-
fontWeight: 400
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
variants: [
|
|
91
|
-
{
|
|
92
|
-
props: { variant: "primary" },
|
|
93
|
-
style: {
|
|
94
|
-
backgroundColor: e.primary300,
|
|
95
|
-
color: e.buttonText,
|
|
96
|
-
"&:hover": {
|
|
97
|
-
backgroundColor: e.primary500,
|
|
98
|
-
color: e.white
|
|
99
|
-
},
|
|
100
|
-
"&.Mui-disabled": {
|
|
101
|
-
backgroundColor: e.grey200
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
props: { variant: "confirm" },
|
|
107
|
-
style: {
|
|
108
|
-
backgroundColor: e.danger,
|
|
109
|
-
color: e.white,
|
|
110
|
-
"&:hover": {
|
|
111
|
-
backgroundColor: e.dangerDark
|
|
112
|
-
},
|
|
113
|
-
"&.Mui-disabled": {
|
|
114
|
-
backgroundColor: e.grey200
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
props: { variant: "cancel" },
|
|
120
|
-
style: {
|
|
121
|
-
backgroundColor: e.grey300,
|
|
122
|
-
color: e.textPrimary,
|
|
123
|
-
"&:hover": {
|
|
124
|
-
backgroundColor: e.grey400
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
props: { variant: "outlined" },
|
|
130
|
-
style: {
|
|
131
|
-
color: e.primary500,
|
|
132
|
-
border: "1px solid",
|
|
133
|
-
borderColor: e.primary400,
|
|
134
|
-
"&:hover": {
|
|
135
|
-
backgroundColor: "inherit"
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
props: { variant: "outlinedPrimary" },
|
|
141
|
-
style: {
|
|
142
|
-
color: e.primary500,
|
|
143
|
-
border: "1px solid",
|
|
144
|
-
borderColor: e.primary400,
|
|
145
|
-
"&:hover": {
|
|
146
|
-
backgroundColor: "inherit"
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
props: { variant: "outLinedDanger" },
|
|
152
|
-
style: {
|
|
153
|
-
color: e.danger,
|
|
154
|
-
border: "1px solid",
|
|
155
|
-
borderColor: e.danger,
|
|
156
|
-
"&:hover": {
|
|
157
|
-
backgroundColor: "inherit"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
},
|
|
163
|
-
MuiAppBar: {
|
|
164
|
-
styleOverrides: {
|
|
165
|
-
root: {
|
|
166
|
-
backgroundColor: e.appBarBgColor,
|
|
167
|
-
color: e.appBarColor
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
MuiSelect: {
|
|
172
|
-
defaultProps: {
|
|
173
|
-
MenuProps: {
|
|
174
|
-
PaperProps: {
|
|
175
|
-
sx: {
|
|
176
|
-
boxShadow: "none",
|
|
177
|
-
border: 1,
|
|
178
|
-
borderStyle: "solid",
|
|
179
|
-
borderColor: e.grey300,
|
|
180
|
-
mt: "5px"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
MenuListProps: {
|
|
184
|
-
sx: {
|
|
185
|
-
padding: "5px",
|
|
186
|
-
"& .MuiMenuItem-root": {
|
|
187
|
-
fontWeight: 400,
|
|
188
|
-
minHeight: 0,
|
|
189
|
-
borderRadius: "5px",
|
|
190
|
-
"&:hover": {
|
|
191
|
-
backgroundColor: e.grey100
|
|
192
|
-
},
|
|
193
|
-
"&.Mui-selected": {
|
|
194
|
-
// fontWeight: 500,
|
|
195
|
-
// color: color.darkPrimary,
|
|
196
|
-
backgroundColor: e.primary200
|
|
197
|
-
}
|
|
198
|
-
// [breakpoints.down('sm')]: {
|
|
199
|
-
// padding:0
|
|
200
|
-
// },
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
styleOverrides: {
|
|
207
|
-
select: {
|
|
208
|
-
padding: "9.94px 5px 9.94px 15px"
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
MuiPaginationItem: {
|
|
213
|
-
defaultProps: {
|
|
214
|
-
components: {
|
|
215
|
-
previous: o,
|
|
216
|
-
next: t
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
styleOverrides: {
|
|
220
|
-
root: {
|
|
221
|
-
"& svg": {
|
|
222
|
-
width: "10px"
|
|
223
|
-
},
|
|
224
|
-
border: "none",
|
|
225
|
-
fontSize: "14px",
|
|
226
|
-
lineHeight: "1.5rem",
|
|
227
|
-
borderRadius: "7px",
|
|
228
|
-
"&.Mui-selected": {
|
|
229
|
-
backgroundColor: e.primary200
|
|
230
|
-
},
|
|
231
|
-
"&.MuiPaginationItem-previousNext": {
|
|
232
|
-
backgroundColor: e.grey200
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
MuiChip: {
|
|
238
|
-
styleOverrides: {
|
|
239
|
-
root: {
|
|
240
|
-
borderRadius: "5px",
|
|
241
|
-
fontSize: "10px",
|
|
242
|
-
lineHeight: "12px",
|
|
243
|
-
fontWeight: 400,
|
|
244
|
-
"& .MuiChip-label": {
|
|
245
|
-
lineHeight: "normal"
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
avatar: {
|
|
249
|
-
width: "10px"
|
|
250
|
-
},
|
|
251
|
-
colorSuccess: {
|
|
252
|
-
color: e.success,
|
|
253
|
-
backgroundColor: e.successLight
|
|
254
|
-
},
|
|
255
|
-
colorWarning: {
|
|
256
|
-
color: e.warning,
|
|
257
|
-
backgroundColor: e.warningLight
|
|
258
|
-
},
|
|
259
|
-
colorError: {
|
|
260
|
-
color: e.danger,
|
|
261
|
-
backgroundColor: e.dangerLight
|
|
262
|
-
},
|
|
263
|
-
colorSecondary: {
|
|
264
|
-
color: e.linkPrimary,
|
|
265
|
-
backgroundColor: e.linkLight
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
MuiTab: {
|
|
270
|
-
styleOverrides: {
|
|
271
|
-
root: {
|
|
272
|
-
background: e.grey200,
|
|
273
|
-
borderTopLeftRadius: "8px",
|
|
274
|
-
borderTopRightRadius: "8px",
|
|
275
|
-
marginRight: "5px",
|
|
276
|
-
minWidth: "200px",
|
|
277
|
-
flexDirection: "row",
|
|
278
|
-
alignContent: "center",
|
|
279
|
-
gap: "8px",
|
|
280
|
-
textTransform: "capitalize",
|
|
281
|
-
"& svg": {
|
|
282
|
-
mb: "0 !important"
|
|
283
|
-
},
|
|
284
|
-
padding: 0,
|
|
285
|
-
height: "32px",
|
|
286
|
-
minHeight: "auto",
|
|
287
|
-
fontSize: "12px",
|
|
288
|
-
"& .chart-icon": {
|
|
289
|
-
fill: e.grey600
|
|
290
|
-
},
|
|
291
|
-
"& .detail-icon": {
|
|
292
|
-
stroke: e.grey600
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
MuiDrawer: {
|
|
298
|
-
defaultProps: {},
|
|
299
|
-
styleOverrides: {
|
|
300
|
-
root: {
|
|
301
|
-
"&.MuiDrawer-paper": {
|
|
302
|
-
overflowY: "unset"
|
|
303
|
-
},
|
|
304
|
-
"& .MuiDrawer-paper": {
|
|
305
|
-
zIndex: 9
|
|
306
|
-
},
|
|
307
|
-
"&.MuiPaper-root": {
|
|
308
|
-
border: "none",
|
|
309
|
-
background: e.grey100,
|
|
310
|
-
pt: 12,
|
|
311
|
-
zIndex: 9
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
MuiTextField: {
|
|
317
|
-
defaultProps: {
|
|
318
|
-
InputProps: {
|
|
319
|
-
sx: {
|
|
320
|
-
"& .Mui-disabled": {
|
|
321
|
-
background: e.grey200
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
InputLabelProps: {
|
|
326
|
-
shrink: !0
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
styleOverrides: {
|
|
330
|
-
root: {
|
|
331
|
-
backgroundColor: e.white,
|
|
332
|
-
"& .MuiOutlinedInput-input": {
|
|
333
|
-
padding: "0px 16px 0px 12px",
|
|
334
|
-
fontWeight: 400,
|
|
335
|
-
height: 40,
|
|
336
|
-
fontSize: "14px",
|
|
337
|
-
border: 1,
|
|
338
|
-
borderRadius: 4,
|
|
339
|
-
"&::placeholder": {
|
|
340
|
-
color: e.grey600
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
"& .MuiFormLabel-root": {
|
|
344
|
-
color: e.textPrimary
|
|
345
|
-
},
|
|
346
|
-
"& .MuiFormLabel-asterisk": {
|
|
347
|
-
color: e.danger
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
MuiFormGroup: {
|
|
353
|
-
styleOverrides: {
|
|
354
|
-
root: {
|
|
355
|
-
// position: 'relative',
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
MuiFormHelperText: {
|
|
360
|
-
defaultProps: {
|
|
361
|
-
sx: {
|
|
362
|
-
fontSize: 12
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
styleOverrides: {}
|
|
366
|
-
},
|
|
367
|
-
MuiAutocomplete: {
|
|
368
|
-
defaultProps: {
|
|
369
|
-
sx: {
|
|
370
|
-
"& .MuiPaper-root": {
|
|
371
|
-
padding: "5px"
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
styleOverrides: {
|
|
376
|
-
root: {
|
|
377
|
-
"& .MuiSvgIcon-root": {
|
|
378
|
-
width: "20px",
|
|
379
|
-
height: "20px"
|
|
380
|
-
},
|
|
381
|
-
"& .MuiAutocomplete-tag": {
|
|
382
|
-
margin: 0
|
|
383
|
-
},
|
|
384
|
-
"& .MuiButtonBase-root": {
|
|
385
|
-
marginRight: "2px !important",
|
|
386
|
-
height: "max-content",
|
|
387
|
-
padding: "2px"
|
|
388
|
-
},
|
|
389
|
-
"& .MuiOutlinedInput-root": {
|
|
390
|
-
padding: "7.45px 55px 7.45px 10px !important"
|
|
391
|
-
},
|
|
392
|
-
"& svg": {},
|
|
393
|
-
"& #checkboxes-tags-demo": {
|
|
394
|
-
padding: "6px 4px"
|
|
395
|
-
},
|
|
396
|
-
"& .MuiAutocomplete-endAdornment": {
|
|
397
|
-
top: "calc(50% - 12px)"
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
MuiTableHead: {
|
|
403
|
-
styleOverrides: {
|
|
404
|
-
root: {
|
|
405
|
-
"& th": {
|
|
406
|
-
fontSize: "14px",
|
|
407
|
-
padding: "8px 16px"
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
MuiTableBody: {
|
|
413
|
-
styleOverrides: {
|
|
414
|
-
root: {
|
|
415
|
-
"& th,td": {
|
|
416
|
-
fontSize: "14px",
|
|
417
|
-
padding: "8px 16px",
|
|
418
|
-
height: "45px"
|
|
419
|
-
},
|
|
420
|
-
"& .MuiTableCell-root": {
|
|
421
|
-
borderBottom: `1px solid ${e.grey300}`
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
MuiRadio: {
|
|
427
|
-
defaultProps: {
|
|
428
|
-
sx: {
|
|
429
|
-
"&.MuiButtonBase-root": {
|
|
430
|
-
padding: "5px"
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
styleOverrides: {
|
|
435
|
-
root: {
|
|
436
|
-
"& .MuiSvgIcon-root": {
|
|
437
|
-
fontSize: 16
|
|
438
|
-
},
|
|
439
|
-
color: e.grey600,
|
|
440
|
-
"&.Mui-checked": {
|
|
441
|
-
color: e.success
|
|
442
|
-
},
|
|
443
|
-
"&.Mui-disabled": {
|
|
444
|
-
color: e.grey600
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
|
-
MuiTooltip: {
|
|
450
|
-
defaultProps: {
|
|
451
|
-
placement: "top",
|
|
452
|
-
arrow: !0
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@mui/material";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-query";
|
|
5
|
+
import { S as t, u as a } from "../index-2ca7cc99.js";
|
|
457
6
|
export {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
p as createCustomTheme
|
|
7
|
+
t as SaasThemeProvider,
|
|
8
|
+
a as useTheme
|
|
461
9
|
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-3847ebf5.cjs");const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-3847ebf5.cjs");const e=require("../index-25f216cc.cjs");exports.GlobalMenu=e.GlobalMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-3847ebf5.cjs");require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-3847ebf5.cjs");require("../index-25f216cc.cjs");const e=require("../index-12495706.cjs");require("../index-389a5bed.cjs");exports.TopBar=e.TopBar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../react-to-web-component-469d91d4.js";
|
|
2
|
-
import "../index-
|
|
3
|
-
import { T as i } from "../index-
|
|
2
|
+
import "../index-c5021c14.js";
|
|
3
|
+
import { T as i } from "../index-21a54132.js";
|
|
4
4
|
import "../index-bf404503.js";
|
|
5
5
|
export {
|
|
6
6
|
i as TopBar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-3847ebf5.cjs");const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../react-to-web-component-3847ebf5.cjs");const e=require("../index-12495706.cjs");require("../index-25f216cc.cjs");require("../index-389a5bed.cjs");exports.HasPermission=e.HasPermission;exports.getUseHasPermission=e.getUseHasPermission;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../react-to-web-component-469d91d4.js";
|
|
2
|
-
import { H as e, g as t } from "../index-
|
|
3
|
-
import "../index-
|
|
2
|
+
import { H as e, g as t } from "../index-21a54132.js";
|
|
3
|
+
import "../index-c5021c14.js";
|
|
4
4
|
import "../index-bf404503.js";
|
|
5
5
|
export {
|
|
6
6
|
e as HasPermission,
|