@variamosple/variamos-components 0.0.19
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/README.md +50 -0
- package/dist/AbstractModalHeader-UzCRSxIO.js +1690 -0
- package/dist/Anchor-DJG5WYYF.js +40 -0
- package/dist/Button-DWo2Fl71.js +78 -0
- package/dist/Button-GQJKgb76.js +33 -0
- package/dist/Common/Events.d.ts +9 -0
- package/dist/Common/Events.js +18 -0
- package/dist/Common/index.d.ts +1 -0
- package/dist/Common/index.js +4 -0
- package/dist/Components/AuthWrapper/index.d.ts +7 -0
- package/dist/Components/AuthWrapper/index.js +52 -0
- package/dist/Components/ConfirmationModal/index.d.ts +12 -0
- package/dist/Components/ConfirmationModal/index.js +293 -0
- package/dist/Components/Footer/index.d.ts +5 -0
- package/dist/Components/Footer/index.js +11 -0
- package/dist/Components/Header/HeaderOptions.d.ts +2 -0
- package/dist/Components/Header/HeaderOptions.js +39 -0
- package/dist/Components/Header/MenuItem.d.ts +3 -0
- package/dist/Components/Header/MenuItem.js +51 -0
- package/dist/Components/Header/SubHeader.d.ts +2 -0
- package/dist/Components/Header/SubHeader.js +12 -0
- package/dist/Components/Header/index.d.ts +7 -0
- package/dist/Components/Header/index.js +46 -0
- package/dist/Components/NotAuthorized/index.d.ts +5 -0
- package/dist/Components/NotAuthorized/index.js +18 -0
- package/dist/Components/Paginator/index.d.ts +7 -0
- package/dist/Components/Paginator/index.js +156 -0
- package/dist/Components/ProtectedRoute/index.d.ts +8 -0
- package/dist/Components/ProtectedRoute/index.js +32 -0
- package/dist/Components/index.d.ts +7 -0
- package/dist/Components/index.js +16 -0
- package/dist/Container-BLjzOisH.js +22 -0
- package/dist/Context/AnalyticsContext.d.ts +9 -0
- package/dist/Context/AnalyticsContext.js +23 -0
- package/dist/Context/MenuContext.d.ts +15 -0
- package/dist/Context/MenuContext.js +61 -0
- package/dist/Context/RouterContext.d.ts +15 -0
- package/dist/Context/RouterContext.js +18 -0
- package/dist/Context/SessionsContext.d.ts +22 -0
- package/dist/Context/SessionsContext.js +81 -0
- package/dist/Context/index.d.ts +4 -0
- package/dist/Context/index.js +18 -0
- package/dist/HOC/WithPageVisit.d.ts +2 -0
- package/dist/HOC/WithPageVisit.js +12 -0
- package/dist/HOC/index.d.ts +1 -0
- package/dist/HOC/index.js +4 -0
- package/dist/Hooks/index.d.ts +4 -0
- package/dist/Hooks/index.js +10 -0
- package/dist/Hooks/useDebouncedValue.d.ts +1 -0
- package/dist/Hooks/useDebouncedValue.js +19 -0
- package/dist/Hooks/usePageVisibility.d.ts +1 -0
- package/dist/Hooks/usePageVisibility.js +15 -0
- package/dist/Hooks/usePaginatedQuery.d.ts +21 -0
- package/dist/Hooks/usePaginatedQuery.js +38 -0
- package/dist/Hooks/useQuery.d.ts +15 -0
- package/dist/Hooks/useQuery.js +22 -0
- package/dist/Model/Credentials.d.ts +5 -0
- package/dist/Model/Credentials.js +13 -0
- package/dist/Model/Menu.d.ts +28 -0
- package/dist/Model/Menu.js +1 -0
- package/dist/Model/PagedModel.d.ts +5 -0
- package/dist/Model/PagedModel.js +8 -0
- package/dist/Model/ResponseModel.d.ts +10 -0
- package/dist/Model/ResponseModel.js +14 -0
- package/dist/Model/Router.d.ts +3 -0
- package/dist/Model/Router.js +9 -0
- package/dist/Model/SessionUser.d.ts +8 -0
- package/dist/Model/SessionUser.js +1 -0
- package/dist/Model/SingInResponse.d.ts +4 -0
- package/dist/Model/SingInResponse.js +1 -0
- package/dist/Model/UserRegistration.d.ts +6 -0
- package/dist/Model/UserRegistration.js +9 -0
- package/dist/Model/index.d.ts +8 -0
- package/dist/Model/index.js +12 -0
- package/dist/Nav-CdxSljzW.js +144 -0
- package/dist/NavDropdown-AuV3RgfC.js +1764 -0
- package/dist/NavLink-ebvp1HCw.js +173 -0
- package/dist/SubHeader-DNc4qWBV.js +481 -0
- package/dist/ThemeProvider-Q3gZ4GF2.js +72 -0
- package/dist/assets/index.css +1 -0
- package/dist/jsx-runtime-Drh4NO5G.js +633 -0
- package/dist/main.d.ts +6 -0
- package/dist/main.js +54 -0
- package/dist/useEventCallback-Bfo0-hwZ.js +16 -0
- package/dist/useMergedRefs-BpAaCckn.js +16 -0
- package/dist/useWindow-rGE2GXIv.js +118 -0
- package/package.json +50 -0
package/dist/main.d.ts
ADDED
package/dist/main.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Events as r } from "./Common/Events.js";
|
|
2
|
+
import { AuthWrapper as p } from "./Components/AuthWrapper/index.js";
|
|
3
|
+
import { confirmationModalDefaultProps as s } from "./Components/ConfirmationModal/index.js";
|
|
4
|
+
import { Footer as m } from "./Components/Footer/index.js";
|
|
5
|
+
import { Header as a } from "./Components/Header/index.js";
|
|
6
|
+
import { NotAuthorized as n } from "./Components/NotAuthorized/index.js";
|
|
7
|
+
import { Paginator as P } from "./Components/Paginator/index.js";
|
|
8
|
+
import { ProtectedRoute as g } from "./Components/ProtectedRoute/index.js";
|
|
9
|
+
import { AnalyticsContext as M, AnalyticsProvider as c, PAGE_VISIT_EVENT as y } from "./Context/AnalyticsContext.js";
|
|
10
|
+
import { MenuContext as R, MenuContextProvider as V, useMenu as b } from "./Context/MenuContext.js";
|
|
11
|
+
import { RouterContext as v, getBasePath as E, isAbsoluteUrl as T, useRouter as S } from "./Context/RouterContext.js";
|
|
12
|
+
import { SessionProvider as I, useSession as N } from "./Context/SessionsContext.js";
|
|
13
|
+
import { withPageVisit as U } from "./HOC/WithPageVisit.js";
|
|
14
|
+
import { useDebouncedValue as _ } from "./Hooks/useDebouncedValue.js";
|
|
15
|
+
import { usePageVisibility as z } from "./Hooks/usePageVisibility.js";
|
|
16
|
+
import { usePaginatedQuery as F } from "./Hooks/usePaginatedQuery.js";
|
|
17
|
+
import { useQuery as H } from "./Hooks/useQuery.js";
|
|
18
|
+
import { Credentials as k } from "./Model/Credentials.js";
|
|
19
|
+
import { PagedModel as J } from "./Model/PagedModel.js";
|
|
20
|
+
import { ResponseModel as L } from "./Model/ResponseModel.js";
|
|
21
|
+
import { mapToWebTarget as X } from "./Model/Router.js";
|
|
22
|
+
import { UserRegistration as Z } from "./Model/UserRegistration.js";
|
|
23
|
+
export {
|
|
24
|
+
M as AnalyticsContext,
|
|
25
|
+
c as AnalyticsProvider,
|
|
26
|
+
p as AuthWrapper,
|
|
27
|
+
k as Credentials,
|
|
28
|
+
r as Events,
|
|
29
|
+
m as Footer,
|
|
30
|
+
a as Header,
|
|
31
|
+
R as MenuContext,
|
|
32
|
+
V as MenuContextProvider,
|
|
33
|
+
n as NotAuthorized,
|
|
34
|
+
y as PAGE_VISIT_EVENT,
|
|
35
|
+
J as PagedModel,
|
|
36
|
+
P as Paginator,
|
|
37
|
+
g as ProtectedRoute,
|
|
38
|
+
L as ResponseModel,
|
|
39
|
+
v as RouterContext,
|
|
40
|
+
I as SessionProvider,
|
|
41
|
+
Z as UserRegistration,
|
|
42
|
+
s as confirmationModalDefaultProps,
|
|
43
|
+
E as getBasePath,
|
|
44
|
+
T as isAbsoluteUrl,
|
|
45
|
+
X as mapToWebTarget,
|
|
46
|
+
_ as useDebouncedValue,
|
|
47
|
+
b as useMenu,
|
|
48
|
+
z as usePageVisibility,
|
|
49
|
+
F as usePaginatedQuery,
|
|
50
|
+
H as useQuery,
|
|
51
|
+
S as useRouter,
|
|
52
|
+
N as useSession,
|
|
53
|
+
U as withPageVisit
|
|
54
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useRef as n, useEffect as u, useCallback as c } from "react";
|
|
2
|
+
function f(r) {
|
|
3
|
+
const e = n(r);
|
|
4
|
+
return u(() => {
|
|
5
|
+
e.current = r;
|
|
6
|
+
}, [r]), e;
|
|
7
|
+
}
|
|
8
|
+
function s(r) {
|
|
9
|
+
const e = f(r);
|
|
10
|
+
return c(function(...t) {
|
|
11
|
+
return e.current && e.current(...t);
|
|
12
|
+
}, [e]);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
s as u
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useMemo as c } from "react";
|
|
2
|
+
const u = (n) => !n || typeof n == "function" ? n : (t) => {
|
|
3
|
+
n.current = t;
|
|
4
|
+
};
|
|
5
|
+
function i(n, t) {
|
|
6
|
+
const o = u(n), e = u(t);
|
|
7
|
+
return (s) => {
|
|
8
|
+
o && o(s), e && e(s);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function f(n, t) {
|
|
12
|
+
return c(() => i(n, t), [n, t]);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
f as u
|
|
16
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { useMemo as _, useRef as o, useEffect as a, useCallback as P, useContext as y, createContext as L } from "react";
|
|
2
|
+
function O(t, e) {
|
|
3
|
+
if (t == null) return {};
|
|
4
|
+
var r = {};
|
|
5
|
+
for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
|
|
6
|
+
if (e.indexOf(n) !== -1) continue;
|
|
7
|
+
r[n] = t[n];
|
|
8
|
+
}
|
|
9
|
+
return r;
|
|
10
|
+
}
|
|
11
|
+
function T(t) {
|
|
12
|
+
return t && t.ownerDocument || document;
|
|
13
|
+
}
|
|
14
|
+
const m = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
15
|
+
var s = !1, f = !1;
|
|
16
|
+
try {
|
|
17
|
+
var i = {
|
|
18
|
+
get passive() {
|
|
19
|
+
return s = !0;
|
|
20
|
+
},
|
|
21
|
+
get once() {
|
|
22
|
+
return f = s = !0;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
m && (window.addEventListener("test", i, i), window.removeEventListener("test", i, !0));
|
|
26
|
+
} catch {
|
|
27
|
+
}
|
|
28
|
+
function R(t, e, r, n) {
|
|
29
|
+
if (n && typeof n != "boolean" && !f) {
|
|
30
|
+
var u = n.once, d = n.capture, c = r;
|
|
31
|
+
!f && u && (c = r.__once || function E(w) {
|
|
32
|
+
this.removeEventListener(e, E, d), r.call(this, w);
|
|
33
|
+
}, r.__once = c), t.addEventListener(e, c, s ? n : d);
|
|
34
|
+
}
|
|
35
|
+
t.addEventListener(e, r, n);
|
|
36
|
+
}
|
|
37
|
+
function b(t, e, r, n) {
|
|
38
|
+
var u = n && typeof n != "boolean" ? n.capture : n;
|
|
39
|
+
t.removeEventListener(e, r, u), r.__once && t.removeEventListener(e, r.__once, u);
|
|
40
|
+
}
|
|
41
|
+
function $(t, e, r, n) {
|
|
42
|
+
return R(t, e, r, n), function() {
|
|
43
|
+
b(t, e, r, n);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const v = (t) => !t || typeof t == "function" ? t : (e) => {
|
|
47
|
+
t.current = e;
|
|
48
|
+
};
|
|
49
|
+
function p(t, e) {
|
|
50
|
+
const r = v(t), n = v(e);
|
|
51
|
+
return (u) => {
|
|
52
|
+
r && r(u), n && n(u);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function q(t, e) {
|
|
56
|
+
return _(() => p(t, e), [t, e]);
|
|
57
|
+
}
|
|
58
|
+
function C(t) {
|
|
59
|
+
const e = o(t);
|
|
60
|
+
return a(() => {
|
|
61
|
+
e.current = t;
|
|
62
|
+
}, [t]), e;
|
|
63
|
+
}
|
|
64
|
+
function A(t) {
|
|
65
|
+
const e = C(t);
|
|
66
|
+
return P(function(...r) {
|
|
67
|
+
return e.current && e.current(...r);
|
|
68
|
+
}, [e]);
|
|
69
|
+
}
|
|
70
|
+
function I() {
|
|
71
|
+
const t = o(!0), e = o(() => t.current);
|
|
72
|
+
return a(() => (t.current = !0, () => {
|
|
73
|
+
t.current = !1;
|
|
74
|
+
}), []), e.current;
|
|
75
|
+
}
|
|
76
|
+
function S(t) {
|
|
77
|
+
const e = o(null);
|
|
78
|
+
return a(() => {
|
|
79
|
+
e.current = t;
|
|
80
|
+
}), e.current;
|
|
81
|
+
}
|
|
82
|
+
var g = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
83
|
+
function U(t, e) {
|
|
84
|
+
return g(t.querySelectorAll(e));
|
|
85
|
+
}
|
|
86
|
+
function k(t, e) {
|
|
87
|
+
if (t.contains) return t.contains(e);
|
|
88
|
+
if (t.compareDocumentPosition) return t === e || !!(t.compareDocumentPosition(e) & 16);
|
|
89
|
+
}
|
|
90
|
+
const D = "data-rr-ui-", F = "rrUi";
|
|
91
|
+
function W(t) {
|
|
92
|
+
return `${D}${t}`;
|
|
93
|
+
}
|
|
94
|
+
function X(t) {
|
|
95
|
+
return `${F}${t}`;
|
|
96
|
+
}
|
|
97
|
+
const l = /* @__PURE__ */ L(m ? window : void 0);
|
|
98
|
+
l.Provider;
|
|
99
|
+
function j() {
|
|
100
|
+
return y(l);
|
|
101
|
+
}
|
|
102
|
+
export {
|
|
103
|
+
O as _,
|
|
104
|
+
X as a,
|
|
105
|
+
A as b,
|
|
106
|
+
m as c,
|
|
107
|
+
W as d,
|
|
108
|
+
R as e,
|
|
109
|
+
j as f,
|
|
110
|
+
I as g,
|
|
111
|
+
S as h,
|
|
112
|
+
k as i,
|
|
113
|
+
$ as l,
|
|
114
|
+
T as o,
|
|
115
|
+
U as q,
|
|
116
|
+
b as r,
|
|
117
|
+
q as u
|
|
118
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@variamosple/variamos-components",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.19",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/main.js",
|
|
7
|
+
"types": "dist/main.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"**/*.css"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"dev": "vite",
|
|
16
|
+
"build": "tsc --p ./tsconfig.lib.json && vite build",
|
|
17
|
+
"lint": "eslint .",
|
|
18
|
+
"preview": "vite preview",
|
|
19
|
+
"prepack": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": "^18.3.1",
|
|
23
|
+
"react-bootstrap": "^2.10.9",
|
|
24
|
+
"react-bootstrap-icons": "^1.11.5",
|
|
25
|
+
"react-dom": "^18.3.1"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@variamosple/variamos-components": "file:"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@eslint/js": "^9.19.0",
|
|
32
|
+
"@types/node": "^22.13.4",
|
|
33
|
+
"@types/react": "^18.3.18",
|
|
34
|
+
"@types/react-bootstrap": "^0.32.37",
|
|
35
|
+
"@types/react-dom": "^18.3.5",
|
|
36
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
37
|
+
"eslint": "^9.19.0",
|
|
38
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
39
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
|
40
|
+
"glob": "^11.0.1",
|
|
41
|
+
"globals": "^15.14.0",
|
|
42
|
+
"react": "^18.3.1",
|
|
43
|
+
"react-dom": "^18.3.1",
|
|
44
|
+
"typescript": "~5.7.2",
|
|
45
|
+
"typescript-eslint": "^8.22.0",
|
|
46
|
+
"vite": "^6.1.0",
|
|
47
|
+
"vite-plugin-dts": "^4.5.0",
|
|
48
|
+
"vite-plugin-lib-inject-css": "^2.2.1"
|
|
49
|
+
}
|
|
50
|
+
}
|