@himanshu-sorathiya/react-kit 1.0.29 → 1.0.30
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/index.d.ts +1 -24
- package/dist/index.js +2 -2
- package/dist/ui.d.ts +0 -24
- package/dist/ui.js +2 -2
- package/dist/ui2.js +52 -108
- package/package.json +2 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import React$1 from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Key, RefObject } from 'react';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The native event that triggered a `useClickOutside` handler. Determined
|
|
@@ -2122,15 +2122,6 @@ export interface FuzzyHighlighterProps {
|
|
|
2122
2122
|
caseSensitive?: boolean;
|
|
2123
2123
|
}
|
|
2124
2124
|
export declare function FuzzyHighlighter({ text, query, className, caseSensitive, }: FuzzyHighlighterProps): React$1.JSX.Element;
|
|
2125
|
-
export interface ModalLayoutProps {
|
|
2126
|
-
modalId: string;
|
|
2127
|
-
children: React$1.ReactNode;
|
|
2128
|
-
wrapperClassName?: string;
|
|
2129
|
-
wrapperStyle?: React$1.CSSProperties;
|
|
2130
|
-
containerClassName?: string;
|
|
2131
|
-
containerStyle?: React$1.CSSProperties;
|
|
2132
|
-
}
|
|
2133
|
-
export declare function ModalLayout({ modalId, children, wrapperClassName, wrapperStyle, containerClassName, containerStyle, }: ModalLayoutProps): import("react").ReactPortal | null;
|
|
2134
2125
|
export type ExpansionId = string | number;
|
|
2135
2126
|
export interface UseExpansionReturn<T> {
|
|
2136
2127
|
expandedIds: ExpansionId[];
|
|
@@ -2150,20 +2141,6 @@ export declare function useExpansion<T = unknown>(options?: {
|
|
|
2150
2141
|
initialExpandedIds?: ExpansionId[];
|
|
2151
2142
|
multiple?: boolean;
|
|
2152
2143
|
}): UseExpansionReturn<T>;
|
|
2153
|
-
export interface UseModalStateReturn<TData> {
|
|
2154
|
-
isOpen: boolean;
|
|
2155
|
-
id: string | null;
|
|
2156
|
-
data: TData | undefined;
|
|
2157
|
-
}
|
|
2158
|
-
export interface UseModalActionsReturn {
|
|
2159
|
-
openModal: <T = unknown>(id: string, data?: T) => void;
|
|
2160
|
-
closeModal: () => void;
|
|
2161
|
-
clearModal: () => void;
|
|
2162
|
-
}
|
|
2163
|
-
export type UseModalReturn<TData> = UseModalStateReturn<TData> & UseModalActionsReturn;
|
|
2164
|
-
export declare function useModalState<TData = unknown>(): UseModalStateReturn<TData>;
|
|
2165
|
-
export declare function useModalActions(): UseModalActionsReturn;
|
|
2166
|
-
export declare function useModal<TData = unknown>(): UseModalReturn<TData>;
|
|
2167
2144
|
export type PinId = string | number;
|
|
2168
2145
|
export interface UsePinReturn<T> {
|
|
2169
2146
|
pinnedIds: PinId[];
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,5 @@ import { n as t, t as n } from "./events2.js";
|
|
|
3
3
|
import { a as r, c as i, d as a, f as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _ } from "./performance2.js";
|
|
4
4
|
import { a as v, c as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./state2.js";
|
|
5
5
|
import { a as E, i as D, n as O, o as k, r as A, s as j, t as M } from "./storage2.js";
|
|
6
|
-
import {
|
|
7
|
-
export {
|
|
6
|
+
import { i as N, n as P, r as F, t as I } from "./ui2.js";
|
|
7
|
+
export { N as FuzzyHighlighter, A as bigIntSerializer, D as dateSerializer, E as defaultSerializer, k as mapSerializer, j as setSerializer, s as useBatcher, t as useClickOutside, p as useDebouncedCallback, o as useDebouncedState, a as useDebouncedValue, u as useDebouncer, e as useEventListener, F as useExpansion, y as useFilter, w as useFuzzySearch, S as useGrouping, n as useKey, O as useLocalStorage, v as useMultipleSelection, b as useOrder, C as usePagination, P as usePin, l as useRateLimitedCallback, i as useRateLimitedState, h as useRateLimitedValue, _ as useRateLimiter, M as useSessionStorage, x as useSingleSelection, T as useSort, r as useThrottledCallback, c as useThrottledState, m as useThrottledValue, f as useThrottler, d as useVirtualGrid, g as useVirtualList, I as useVisibility };
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import React$1 from 'react';
|
|
4
|
-
import { CSSProperties } from 'react';
|
|
5
4
|
|
|
6
5
|
export interface FuzzyHighlighterProps {
|
|
7
6
|
text: string;
|
|
@@ -10,15 +9,6 @@ export interface FuzzyHighlighterProps {
|
|
|
10
9
|
caseSensitive?: boolean;
|
|
11
10
|
}
|
|
12
11
|
export declare function FuzzyHighlighter({ text, query, className, caseSensitive, }: FuzzyHighlighterProps): React$1.JSX.Element;
|
|
13
|
-
export interface ModalLayoutProps {
|
|
14
|
-
modalId: string;
|
|
15
|
-
children: React$1.ReactNode;
|
|
16
|
-
wrapperClassName?: string;
|
|
17
|
-
wrapperStyle?: React$1.CSSProperties;
|
|
18
|
-
containerClassName?: string;
|
|
19
|
-
containerStyle?: React$1.CSSProperties;
|
|
20
|
-
}
|
|
21
|
-
export declare function ModalLayout({ modalId, children, wrapperClassName, wrapperStyle, containerClassName, containerStyle, }: ModalLayoutProps): import("react").ReactPortal | null;
|
|
22
12
|
export type ExpansionId = string | number;
|
|
23
13
|
export interface UseExpansionReturn<T> {
|
|
24
14
|
expandedIds: ExpansionId[];
|
|
@@ -38,20 +28,6 @@ export declare function useExpansion<T = unknown>(options?: {
|
|
|
38
28
|
initialExpandedIds?: ExpansionId[];
|
|
39
29
|
multiple?: boolean;
|
|
40
30
|
}): UseExpansionReturn<T>;
|
|
41
|
-
export interface UseModalStateReturn<TData> {
|
|
42
|
-
isOpen: boolean;
|
|
43
|
-
id: string | null;
|
|
44
|
-
data: TData | undefined;
|
|
45
|
-
}
|
|
46
|
-
export interface UseModalActionsReturn {
|
|
47
|
-
openModal: <T = unknown>(id: string, data?: T) => void;
|
|
48
|
-
closeModal: () => void;
|
|
49
|
-
clearModal: () => void;
|
|
50
|
-
}
|
|
51
|
-
export type UseModalReturn<TData> = UseModalStateReturn<TData> & UseModalActionsReturn;
|
|
52
|
-
export declare function useModalState<TData = unknown>(): UseModalStateReturn<TData>;
|
|
53
|
-
export declare function useModalActions(): UseModalActionsReturn;
|
|
54
|
-
export declare function useModal<TData = unknown>(): UseModalReturn<TData>;
|
|
55
31
|
export type PinId = string | number;
|
|
56
32
|
export interface UsePinReturn<T> {
|
|
57
33
|
pinnedIds: PinId[];
|
package/dist/ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./ui2.js";
|
|
2
|
+
export { e as FuzzyHighlighter, n as useExpansion, t as usePin, r as useVisibility };
|
package/dist/ui2.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { createPortal as u } from "react-dom";
|
|
2
|
+
import { useCallback as t, useMemo as n, useRef as r, useState as i } from "react";
|
|
3
|
+
import { Fragment as a, jsx as o } from "react/jsx-runtime";
|
|
5
4
|
//#region src/ui/FuzzyHighlighter/FuzzyHighlighter.tsx
|
|
6
|
-
function
|
|
7
|
-
let i = String(t || "").trim(),
|
|
8
|
-
if (!i || !
|
|
9
|
-
let
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
5
|
+
function s({ text: e, query: t, className: n = "", caseSensitive: r = !1 }) {
|
|
6
|
+
let i = String(t || "").trim(), s = String(e || "");
|
|
7
|
+
if (!i || !s) return /* @__PURE__ */ o(a, { children: s });
|
|
8
|
+
let c = i.split(/\s+/).filter((e) => e.length > 0);
|
|
9
|
+
if (c.length === 0) return /* @__PURE__ */ o(a, { children: s });
|
|
10
|
+
let l = `fuzzy-highlight ${n}`.trim(), u = [...c].sort((e, t) => t.length - e.length).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")), d = [...u];
|
|
12
11
|
if (u.length > 1) {
|
|
13
|
-
let e =
|
|
12
|
+
let e = c.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("\\s+");
|
|
14
13
|
d.unshift(e);
|
|
15
14
|
}
|
|
16
15
|
if (i.length > 1 && i === i.toUpperCase() && /^[A-Z]+$/.test(i)) {
|
|
@@ -18,108 +17,53 @@ function d({ text: e, query: t, className: n = "", caseSensitive: r = !1 }) {
|
|
|
18
17
|
d.unshift(e);
|
|
19
18
|
}
|
|
20
19
|
let f = `(${d.join("|")})`, p = new RegExp(f, r ? "g" : "gi");
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
className:
|
|
20
|
+
return /* @__PURE__ */ o(a, { children: s.split(p).map((e, t) => p.test(e) ? /* @__PURE__ */ o("strong", {
|
|
21
|
+
className: l,
|
|
23
22
|
children: e
|
|
24
23
|
}, t) : e) });
|
|
25
24
|
}
|
|
26
25
|
//#endregion
|
|
27
|
-
//#region src/ui/useModal/ModalContext.tsx
|
|
28
|
-
var f = t(null), p = t(null);
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/ui/useModal/useModal.ts
|
|
31
|
-
function m() {
|
|
32
|
-
let e = r(f);
|
|
33
|
-
if (!e) throw Error("useModalState must be used within a ModalProvider");
|
|
34
|
-
return e;
|
|
35
|
-
}
|
|
36
|
-
function h() {
|
|
37
|
-
let e = r(p);
|
|
38
|
-
if (!e) throw Error("useModalActions must be used within a ModalProvider");
|
|
39
|
-
return e;
|
|
40
|
-
}
|
|
41
|
-
function g() {
|
|
42
|
-
return {
|
|
43
|
-
...m(),
|
|
44
|
-
...h()
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/ui/useModal/ModalLayout.tsx
|
|
49
|
-
function _({ modalId: e, children: t, wrapperClassName: n = "", wrapperStyle: r, containerClassName: a = "", containerStyle: c }) {
|
|
50
|
-
let { isOpen: d, id: f } = m(), { closeModal: p, clearModal: g } = h(), [_, v] = s(!1), y = o(null), b = o(null), x = f === e, S = d && x;
|
|
51
|
-
return i(() => {
|
|
52
|
-
let e = y.current;
|
|
53
|
-
e && (S && !e.open ? (document.activeElement && (b.current = document.activeElement), v(!1), e.showModal()) : !S && e.open && v(!0));
|
|
54
|
-
}, [S]), typeof document > "u" || !x && !_ ? null : u(/* @__PURE__ */ l("dialog", {
|
|
55
|
-
ref: y,
|
|
56
|
-
onCancel: (e) => {
|
|
57
|
-
e.preventDefault(), p();
|
|
58
|
-
},
|
|
59
|
-
onClose: p,
|
|
60
|
-
onClick: (e) => {
|
|
61
|
-
let t = y.current;
|
|
62
|
-
if (!t) return;
|
|
63
|
-
let n = t.getBoundingClientRect();
|
|
64
|
-
(e.clientX < n.x || e.clientX > n.x + n.width || e.clientY < n.y || e.clientY > n.y + n.height) && p();
|
|
65
|
-
},
|
|
66
|
-
onAnimationEnd: () => {
|
|
67
|
-
if (_) {
|
|
68
|
-
let e = y.current;
|
|
69
|
-
e && e.close(), v(!1), x && g(), b.current &&= (b.current.focus(), null);
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
className: `universal-modal ${n}`.trim(),
|
|
73
|
-
style: r,
|
|
74
|
-
children: /* @__PURE__ */ l("div", {
|
|
75
|
-
className: `modal-container ${a}`.trim(),
|
|
76
|
-
style: c,
|
|
77
|
-
children: t
|
|
78
|
-
})
|
|
79
|
-
}), document.body);
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
26
|
//#region src/ui/useExpansion/useExpansion.ts
|
|
83
|
-
function
|
|
84
|
-
let
|
|
27
|
+
function c(a = {}) {
|
|
28
|
+
let o = a || {}, s = n(() => Array.isArray(o.items) ? o.items : [], [o.items]), c = Array.isArray(o.initialExpandedIds) ? o.initialExpandedIds : [], l = o.field, u = !!o.multiple, d = r(c), [f, p] = i(() => new Set(c)), m = t((t) => {
|
|
85
29
|
let n = e(t, l);
|
|
86
30
|
return f.has(n);
|
|
87
|
-
}, [f, l]), h =
|
|
31
|
+
}, [f, l]), h = t((t) => {
|
|
88
32
|
p((n) => {
|
|
89
33
|
let r = e(t, l);
|
|
90
34
|
if (n.has(r)) return n;
|
|
91
35
|
let i = u ? new Set(n) : /* @__PURE__ */ new Set();
|
|
92
36
|
return i.add(r), i;
|
|
93
37
|
});
|
|
94
|
-
}, [l, u]), g =
|
|
38
|
+
}, [l, u]), g = t((t) => {
|
|
95
39
|
p((n) => {
|
|
96
40
|
let r = e(t, l);
|
|
97
41
|
if (!n.has(r)) return n;
|
|
98
42
|
let i = new Set(n);
|
|
99
43
|
return i.delete(r), i;
|
|
100
44
|
});
|
|
101
|
-
}, [l]), _ =
|
|
45
|
+
}, [l]), _ = t((t) => {
|
|
102
46
|
p((n) => {
|
|
103
47
|
let r = e(t, l), i = u ? new Set(n) : /* @__PURE__ */ new Set();
|
|
104
48
|
return n.has(r) ? u && i.delete(r) : i.add(r), i;
|
|
105
49
|
});
|
|
106
|
-
}, [l, u]), v =
|
|
50
|
+
}, [l, u]), v = t(() => {
|
|
107
51
|
if (!u) return;
|
|
108
|
-
let t = (Array.isArray(
|
|
52
|
+
let t = (Array.isArray(s) ? s : []).map((t) => e(t, l));
|
|
109
53
|
p(new Set(t));
|
|
110
54
|
}, [
|
|
111
|
-
|
|
55
|
+
s,
|
|
112
56
|
l,
|
|
113
57
|
u
|
|
114
|
-
]), y =
|
|
58
|
+
]), y = t(() => {
|
|
115
59
|
p(/* @__PURE__ */ new Set());
|
|
116
|
-
}, []), b =
|
|
60
|
+
}, []), b = t(() => {
|
|
117
61
|
p(new Set(d.current));
|
|
118
|
-
}, []), x =
|
|
62
|
+
}, []), x = t((t) => {
|
|
119
63
|
let n = (Array.isArray(t) ? t : []).map((t) => e(t, l));
|
|
120
64
|
p(new Set(n));
|
|
121
|
-
}, [l]), S =
|
|
122
|
-
|
|
65
|
+
}, [l]), S = n(() => (Array.isArray(s) ? s : []).filter((t) => f.has(e(t, l))), [
|
|
66
|
+
s,
|
|
123
67
|
l,
|
|
124
68
|
f
|
|
125
69
|
]);
|
|
@@ -138,19 +82,19 @@ function v(t = {}) {
|
|
|
138
82
|
}
|
|
139
83
|
//#endregion
|
|
140
84
|
//#region src/ui/usePin/usePin.ts
|
|
141
|
-
function
|
|
142
|
-
let
|
|
85
|
+
function l(a = {}) {
|
|
86
|
+
let o = a || {}, s = n(() => Array.isArray(o.items) ? o.items : [], [o.items]), c = Array.isArray(o.initialPinnedIds) ? o.initialPinnedIds : [], l = o.field, u = typeof o.maxPins == "number" && !isNaN(o.maxPins) ? Math.max(1, o.maxPins) : 2 ** 53 - 1, d = r(c), [f, p] = i(() => new Set(c)), m = t((t) => {
|
|
143
87
|
p((n) => {
|
|
144
88
|
if (n.size >= u) return n;
|
|
145
89
|
let r = new Set(n), i = e(t, l);
|
|
146
90
|
return r.add(i), r;
|
|
147
91
|
});
|
|
148
|
-
}, [l, u]), h =
|
|
92
|
+
}, [l, u]), h = t((t) => {
|
|
149
93
|
p((n) => {
|
|
150
94
|
let r = new Set(n), i = e(t, l);
|
|
151
95
|
return r.delete(i), r;
|
|
152
96
|
});
|
|
153
|
-
}, [l]), g =
|
|
97
|
+
}, [l]), g = t((t) => {
|
|
154
98
|
p((n) => {
|
|
155
99
|
let r = new Set(n), i = e(t, l);
|
|
156
100
|
if (r.has(i)) r.delete(i);
|
|
@@ -160,13 +104,13 @@ function y(t = {}) {
|
|
|
160
104
|
}
|
|
161
105
|
return r;
|
|
162
106
|
});
|
|
163
|
-
}, [l, u]), _ =
|
|
107
|
+
}, [l, u]), _ = t((t) => {
|
|
164
108
|
let n = e(t, l);
|
|
165
109
|
return f.has(n);
|
|
166
|
-
}, [f, l]), v =
|
|
110
|
+
}, [f, l]), v = t(() => p(/* @__PURE__ */ new Set()), []), y = t(() => p(new Set(d.current)), [d]), b = t((t) => {
|
|
167
111
|
let n = (Array.isArray(t) ? t : []).map((t) => e(t, l));
|
|
168
112
|
p(new Set(n.slice(0, u)));
|
|
169
|
-
}, [l, u]), x =
|
|
113
|
+
}, [l, u]), x = t((t) => {
|
|
170
114
|
p((n) => {
|
|
171
115
|
let r = new Set(n), i = (Array.isArray(t) ? t : []).map((t) => e(t, l));
|
|
172
116
|
for (let e of i) {
|
|
@@ -175,23 +119,23 @@ function y(t = {}) {
|
|
|
175
119
|
}
|
|
176
120
|
return r;
|
|
177
121
|
});
|
|
178
|
-
}, [l, u]), S =
|
|
122
|
+
}, [l, u]), S = t((t) => {
|
|
179
123
|
p((n) => {
|
|
180
124
|
let r = new Set(n);
|
|
181
125
|
return (Array.isArray(t) ? t : []).map((t) => e(t, l)).forEach((e) => r.delete(e)), r;
|
|
182
126
|
});
|
|
183
|
-
}, [l]), C =
|
|
127
|
+
}, [l]), C = n(() => (Array.isArray(s) ? s : []).filter((t) => {
|
|
184
128
|
let n = e(t, l);
|
|
185
129
|
return f.has(n);
|
|
186
130
|
}), [
|
|
187
|
-
|
|
131
|
+
s,
|
|
188
132
|
l,
|
|
189
133
|
f
|
|
190
|
-
]), w =
|
|
134
|
+
]), w = n(() => (Array.isArray(s) ? s : []).filter((t) => {
|
|
191
135
|
let n = e(t, l);
|
|
192
136
|
return !f.has(n);
|
|
193
137
|
}), [
|
|
194
|
-
|
|
138
|
+
s,
|
|
195
139
|
l,
|
|
196
140
|
f
|
|
197
141
|
]);
|
|
@@ -215,56 +159,56 @@ function y(t = {}) {
|
|
|
215
159
|
}
|
|
216
160
|
//#endregion
|
|
217
161
|
//#region src/ui/useVisibility/useVisibility.ts
|
|
218
|
-
function
|
|
219
|
-
let
|
|
162
|
+
function u(a = {}) {
|
|
163
|
+
let o = a || {}, s = n(() => Array.isArray(o.items) ? o.items : [], [o.items]), c = Array.isArray(o.initialVisibleIds) ? o.initialVisibleIds : [], l = o.field, u = r(c), [d, f] = i(() => new Set(c)), p = t((t) => {
|
|
220
164
|
let n = e(t, l);
|
|
221
165
|
return d.has(n);
|
|
222
|
-
}, [d, l]), m =
|
|
166
|
+
}, [d, l]), m = t((t) => {
|
|
223
167
|
f((n) => {
|
|
224
168
|
let r = new Set(n), i = e(t, l);
|
|
225
169
|
return r.add(i), r;
|
|
226
170
|
});
|
|
227
|
-
}, [l]), h =
|
|
171
|
+
}, [l]), h = t((t) => {
|
|
228
172
|
f((n) => {
|
|
229
173
|
let r = new Set(n), i = e(t, l);
|
|
230
174
|
return r.delete(i), r;
|
|
231
175
|
});
|
|
232
|
-
}, [l]), g =
|
|
176
|
+
}, [l]), g = t((t) => {
|
|
233
177
|
f((n) => {
|
|
234
178
|
let r = new Set(n), i = e(t, l);
|
|
235
179
|
return r.has(i) ? r.delete(i) : r.add(i), r;
|
|
236
180
|
});
|
|
237
|
-
}, [l]), _ =
|
|
181
|
+
}, [l]), _ = t((t) => {
|
|
238
182
|
f((n) => {
|
|
239
183
|
let r = new Set(n);
|
|
240
|
-
return (Array.isArray(t) ? t : Array.isArray(
|
|
184
|
+
return (Array.isArray(t) ? t : Array.isArray(s) ? s : []).forEach((t) => {
|
|
241
185
|
r.add(e(t, l));
|
|
242
186
|
}), r;
|
|
243
187
|
});
|
|
244
|
-
}, [
|
|
188
|
+
}, [s, l]), v = t((t) => {
|
|
245
189
|
f((n) => {
|
|
246
190
|
let r = new Set(n);
|
|
247
|
-
return (Array.isArray(t) ? t : Array.isArray(
|
|
191
|
+
return (Array.isArray(t) ? t : Array.isArray(s) ? s : []).forEach((t) => {
|
|
248
192
|
r.delete(e(t, l));
|
|
249
193
|
}), r;
|
|
250
194
|
});
|
|
251
|
-
}, [
|
|
195
|
+
}, [s, l]), y = t(() => {
|
|
252
196
|
f(() => new Set(u.current));
|
|
253
|
-
}, []), b =
|
|
197
|
+
}, []), b = t((t) => {
|
|
254
198
|
let n = (Array.isArray(t) ? t : []).map((t) => e(t, l));
|
|
255
199
|
f(() => new Set(n));
|
|
256
|
-
}, [l]), x =
|
|
200
|
+
}, [l]), x = n(() => (Array.isArray(s) ? s : []).filter((t) => {
|
|
257
201
|
let n = e(t, l);
|
|
258
202
|
return d.has(n);
|
|
259
203
|
}), [
|
|
260
|
-
|
|
204
|
+
s,
|
|
261
205
|
l,
|
|
262
206
|
d
|
|
263
|
-
]), S =
|
|
207
|
+
]), S = n(() => (Array.isArray(s) ? s : []).filter((t) => {
|
|
264
208
|
let n = e(t, l);
|
|
265
209
|
return !d.has(n);
|
|
266
210
|
}), [
|
|
267
|
-
|
|
211
|
+
s,
|
|
268
212
|
l,
|
|
269
213
|
d
|
|
270
214
|
]);
|
|
@@ -284,4 +228,4 @@ function b(t = {}) {
|
|
|
284
228
|
};
|
|
285
229
|
}
|
|
286
230
|
//#endregion
|
|
287
|
-
export {
|
|
231
|
+
export { s as i, l as n, c as r, u as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@himanshu-sorathiya/react-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
4
4
|
"description": "An opinionated collection of react hooks, and reusable UI components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
"./storage": {
|
|
33
33
|
"types": "./dist/storage.d.ts",
|
|
34
34
|
"import": "./dist/storage.js"
|
|
35
|
-
}
|
|
36
|
-
"./styles.css": "./dist/index.css"
|
|
35
|
+
}
|
|
37
36
|
},
|
|
38
37
|
"scripts": {
|
|
39
38
|
"dev": "vite",
|
|
@@ -64,9 +63,6 @@
|
|
|
64
63
|
"typescript-eslint": "^8.59.2",
|
|
65
64
|
"vite": "^8.1.4"
|
|
66
65
|
},
|
|
67
|
-
"sideEffects": [
|
|
68
|
-
"**/*.css"
|
|
69
|
-
],
|
|
70
66
|
"keywords": [
|
|
71
67
|
"react",
|
|
72
68
|
"react-kit",
|