@variamosple/variamos-components 0.0.23 → 0.1.0

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.
Files changed (34) hide show
  1. package/dist/Components/AuthWrapper/index.js +18 -38
  2. package/dist/Components/ConfirmationModal/index.d.ts +1 -1
  3. package/dist/Components/ConfirmationModal/index.js +19 -280
  4. package/dist/Components/Footer/index.js +6 -6
  5. package/dist/Components/Header/BugFormModal.d.ts +14 -0
  6. package/dist/Components/Header/BugFormModal.js +100 -0
  7. package/dist/Components/Header/HeaderOptions.js +85 -31
  8. package/dist/Components/Header/MenuItem.js +19 -20
  9. package/dist/Components/Header/SubHeader.js +35 -9
  10. package/dist/Components/Header/index.js +24 -25
  11. package/dist/Components/NotAuthorized/index.js +10 -11
  12. package/dist/Components/Paginator/index.js +56 -128
  13. package/dist/Components/ProtectedRoute/index.js +10 -10
  14. package/dist/Context/AnalyticsContext.js +7 -7
  15. package/dist/Context/MenuContext.js +16 -16
  16. package/dist/Context/SessionContext.js +35 -35
  17. package/dist/HOC/WithPageVisit.d.ts +1 -1
  18. package/dist/HOC/WithPageVisit.js +6 -6
  19. package/dist/assets/index.css +1 -1
  20. package/package.json +10 -7
  21. package/dist/AbstractModalHeader-UzCRSxIO.js +0 -1690
  22. package/dist/Anchor-DJG5WYYF.js +0 -40
  23. package/dist/Button-DWo2Fl71.js +0 -78
  24. package/dist/Button-GQJKgb76.js +0 -33
  25. package/dist/Container-BLjzOisH.js +0 -22
  26. package/dist/Nav-CdxSljzW.js +0 -144
  27. package/dist/NavDropdown-AuV3RgfC.js +0 -1764
  28. package/dist/NavLink-ebvp1HCw.js +0 -173
  29. package/dist/SubHeader-gTVD9DIX.js +0 -481
  30. package/dist/ThemeProvider-Q3gZ4GF2.js +0 -72
  31. package/dist/jsx-runtime-Drh4NO5G.js +0 -633
  32. package/dist/useEventCallback-Bfo0-hwZ.js +0 -16
  33. package/dist/useMergedRefs-BpAaCckn.js +0 -16
  34. package/dist/useWindow-rGE2GXIv.js +0 -118
@@ -1,16 +0,0 @@
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
- };
@@ -1,16 +0,0 @@
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
- };
@@ -1,118 +0,0 @@
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
- };