bitz-react-admin-ui 2.0.5 → 2.0.6

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 (77) hide show
  1. package/dist/_virtual/index.mjs +2 -2
  2. package/dist/_virtual/index2.mjs +2 -2
  3. package/dist/components/BitzTable/Store/utils/index.mjs +14 -30
  4. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +36 -46
  5. package/dist/components/BitzTable/ToolBar/index.d.ts +0 -2
  6. package/dist/components/BitzTable/ToolBar/index.mjs +4 -6
  7. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  8. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  9. package/dist/style.css +1 -1
  10. package/package.json +1 -1
  11. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +0 -10
  12. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +0 -100
  13. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.d.ts +0 -10
  14. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +0 -103
  15. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +0 -13
  16. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +0 -88
  17. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +0 -14
  18. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +0 -261
  19. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +0 -6
  20. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +0 -17
  21. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.d.ts +0 -8
  22. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +0 -13
  23. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +0 -10
  24. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +0 -163
  25. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +0 -11
  26. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +0 -44
  27. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +0 -2
  28. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +0 -249
  29. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +0 -5
  30. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +0 -5
  31. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +0 -5
  32. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +0 -5
  33. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +0 -15
  34. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +0 -15
  35. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +0 -15
  36. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +0 -15
  37. package/dist/node_modules/.store/@dnd-kit_accessibility@3.1.0/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +0 -54
  38. package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +0 -2179
  39. package/dist/node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +0 -27
  40. package/dist/node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +0 -367
  41. package/dist/node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +0 -235
  42. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +0 -7
  43. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +0 -7
  44. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +0 -7
  45. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +0 -7
  46. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +0 -8
  47. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +0 -10
  48. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.mjs +0 -8
  49. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.mjs +0 -8
  50. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +0 -65
  51. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -9
  52. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +0 -9
  53. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +0 -9
  54. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +0 -14
  55. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.mjs +0 -10
  56. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_baseUnset.mjs +0 -10
  57. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +0 -8
  58. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +0 -8
  59. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +0 -8
  60. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.mjs +0 -8
  61. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.mjs +0 -8
  62. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_customOmitClone.mjs +0 -7
  63. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +0 -9
  64. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.mjs +0 -9
  65. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +0 -11
  66. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.mjs +0 -13
  67. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +0 -29
  68. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +0 -8
  69. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +0 -42
  70. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +0 -6
  71. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/_parent.mjs +0 -8
  72. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +0 -8
  73. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +0 -8
  74. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +0 -9
  75. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/last.mjs +0 -7
  76. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs +0 -24
  77. package/dist/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +0 -6
@@ -1,27 +0,0 @@
1
- import "react";
2
- function f(e, l, t) {
3
- const i = {
4
- ...e
5
- };
6
- return l.top + e.y <= t.top ? i.y = t.top - l.top : l.bottom + e.y >= t.top + t.height && (i.y = t.top + t.height - l.bottom), l.left + e.x <= t.left ? i.x = t.left - l.left : l.right + e.x >= t.left + t.width && (i.x = t.left + t.width - l.right), i;
7
- }
8
- const r = (e) => {
9
- let {
10
- transform: l
11
- } = e;
12
- return {
13
- ...l,
14
- x: 0
15
- };
16
- }, h = (e) => {
17
- let {
18
- transform: l,
19
- draggingNodeRect: t,
20
- windowRect: i
21
- } = e;
22
- return !t || !i ? l : f(l, t, i);
23
- };
24
- export {
25
- r as restrictToVerticalAxis,
26
- h as restrictToWindowEdges
27
- };
@@ -1,367 +0,0 @@
1
- import H, { useMemo as E, useRef as z, useEffect as L, useContext as le, useState as fe } from "react";
2
- import { KeyboardCode as O, useDndContext as ge, useDroppable as pe, useDraggable as ve, getClientRect as be } from "../../../../../@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
- import { useUniqueId as me, useIsomorphicLayoutEffect as K, useCombinedRefs as Ie, isKeyboardEvent as xe, CSS as U } from "../../../../../@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
4
- function V(e, n, t) {
5
- const r = e.slice();
6
- return r.splice(t < 0 ? r.length + t : t, 0, r.splice(n, 1)[0]), r;
7
- }
8
- function he(e, n) {
9
- return e.reduce((t, r, o) => {
10
- const s = n.get(r);
11
- return s && (t[o] = s), t;
12
- }, Array(e.length));
13
- }
14
- function N(e) {
15
- return e !== null && e >= 0;
16
- }
17
- function ye(e, n) {
18
- if (e === n)
19
- return !0;
20
- if (e.length !== n.length)
21
- return !1;
22
- for (let t = 0; t < e.length; t++)
23
- if (e[t] !== n[t])
24
- return !1;
25
- return !0;
26
- }
27
- function Re(e) {
28
- return typeof e == "boolean" ? {
29
- draggable: e,
30
- droppable: e
31
- } : e;
32
- }
33
- const j = (e) => {
34
- let {
35
- rects: n,
36
- activeIndex: t,
37
- overIndex: r,
38
- index: o
39
- } = e;
40
- const s = V(n, r, t), i = n[o], a = s[o];
41
- return !a || !i ? null : {
42
- x: a.left - i.left,
43
- y: a.top - i.top,
44
- scaleX: a.width / i.width,
45
- scaleY: a.height / i.height
46
- };
47
- }, A = {
48
- scaleX: 1,
49
- scaleY: 1
50
- }, ze = (e) => {
51
- var n;
52
- let {
53
- activeIndex: t,
54
- activeNodeRect: r,
55
- index: o,
56
- rects: s,
57
- overIndex: i
58
- } = e;
59
- const a = (n = s[t]) != null ? n : r;
60
- if (!a)
61
- return null;
62
- if (o === t) {
63
- const d = s[i];
64
- return d ? {
65
- x: 0,
66
- y: t < i ? d.top + d.height - (a.top + a.height) : d.top - a.top,
67
- ...A
68
- } : null;
69
- }
70
- const l = De(s, o, t);
71
- return o > t && o <= i ? {
72
- x: 0,
73
- y: -a.height - l,
74
- ...A
75
- } : o < t && o >= i ? {
76
- x: 0,
77
- y: a.height + l,
78
- ...A
79
- } : {
80
- x: 0,
81
- y: 0,
82
- ...A
83
- };
84
- };
85
- function De(e, n, t) {
86
- const r = e[n], o = e[n - 1], s = e[n + 1];
87
- return r ? t < n ? o ? r.top - (o.top + o.height) : s ? s.top - (r.top + r.height) : 0 : s ? s.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
88
- }
89
- const k = "Sortable", J = /* @__PURE__ */ H.createContext({
90
- activeIndex: -1,
91
- containerId: k,
92
- disableTransforms: !1,
93
- items: [],
94
- overIndex: -1,
95
- useDragOverlay: !1,
96
- sortedRects: [],
97
- strategy: j,
98
- disabled: {
99
- draggable: !1,
100
- droppable: !1
101
- }
102
- });
103
- function Pe(e) {
104
- let {
105
- children: n,
106
- id: t,
107
- items: r,
108
- strategy: o = j,
109
- disabled: s = !1
110
- } = e;
111
- const {
112
- active: i,
113
- dragOverlay: a,
114
- droppableRects: l,
115
- over: d,
116
- measureDroppableContainers: c
117
- } = ge(), p = me(k, t), b = a.rect !== null, f = E(() => r.map((m) => typeof m == "object" && "id" in m ? m.id : m), [r]), w = i != null, h = i ? f.indexOf(i.id) : -1, v = d ? f.indexOf(d.id) : -1, T = z(f), y = !ye(f, T.current), R = v !== -1 && h === -1 || y, g = Re(s);
118
- K(() => {
119
- y && w && c(f);
120
- }, [y, f, w, c]), L(() => {
121
- T.current = f;
122
- }, [f]);
123
- const D = E(
124
- () => ({
125
- activeIndex: h,
126
- containerId: p,
127
- disabled: g,
128
- disableTransforms: R,
129
- items: f,
130
- overIndex: v,
131
- useDragOverlay: b,
132
- sortedRects: he(f, l),
133
- strategy: o
134
- }),
135
- // eslint-disable-next-line react-hooks/exhaustive-deps
136
- [h, p, g.draggable, g.droppable, R, f, v, l, b, o]
137
- );
138
- return H.createElement(J.Provider, {
139
- value: D
140
- }, n);
141
- }
142
- const Se = (e) => {
143
- let {
144
- id: n,
145
- items: t,
146
- activeIndex: r,
147
- overIndex: o
148
- } = e;
149
- return V(t, r, o).indexOf(n);
150
- }, Ce = (e) => {
151
- let {
152
- containerId: n,
153
- isSorting: t,
154
- wasDragging: r,
155
- index: o,
156
- items: s,
157
- newIndex: i,
158
- previousItems: a,
159
- previousContainerId: l,
160
- transition: d
161
- } = e;
162
- return !d || !r || a !== s && o === i ? !1 : t ? !0 : i !== o && n === l;
163
- }, we = {
164
- duration: 200,
165
- easing: "ease"
166
- }, Q = "transform", Te = /* @__PURE__ */ U.Transition.toString({
167
- property: Q,
168
- duration: 0,
169
- easing: "linear"
170
- }), Oe = {
171
- roleDescription: "sortable"
172
- };
173
- function Ne(e) {
174
- let {
175
- disabled: n,
176
- index: t,
177
- node: r,
178
- rect: o
179
- } = e;
180
- const [s, i] = fe(null), a = z(t);
181
- return K(() => {
182
- if (!n && t !== a.current && r.current) {
183
- const l = o.current;
184
- if (l) {
185
- const d = be(r.current, {
186
- ignoreTransform: !0
187
- }), c = {
188
- x: l.left - d.left,
189
- y: l.top - d.top,
190
- scaleX: l.width / d.width,
191
- scaleY: l.height / d.height
192
- };
193
- (c.x || c.y) && i(c);
194
- }
195
- }
196
- t !== a.current && (a.current = t);
197
- }, [n, t, r, o]), L(() => {
198
- s && i(null);
199
- }, [s]), s;
200
- }
201
- function Xe(e) {
202
- let {
203
- animateLayoutChanges: n = Ce,
204
- attributes: t,
205
- disabled: r,
206
- data: o,
207
- getNewIndex: s = Se,
208
- id: i,
209
- strategy: a,
210
- resizeObserverConfig: l,
211
- transition: d = we
212
- } = e;
213
- const {
214
- items: c,
215
- containerId: p,
216
- activeIndex: b,
217
- disabled: f,
218
- disableTransforms: w,
219
- sortedRects: h,
220
- overIndex: v,
221
- useDragOverlay: T,
222
- strategy: y
223
- } = le(J), R = Ae(r, f), g = c.indexOf(i), D = E(() => ({
224
- sortable: {
225
- containerId: p,
226
- index: g,
227
- items: c
228
- },
229
- ...o
230
- }), [p, o, g, c]), m = E(() => c.slice(c.indexOf(i)), [c, i]), {
231
- rect: P,
232
- node: X,
233
- isOver: W,
234
- setNodeRef: G
235
- } = pe({
236
- id: i,
237
- data: D,
238
- disabled: R.droppable,
239
- resizeObserverConfig: {
240
- updateMeasurementsFor: m,
241
- ...l
242
- }
243
- }), {
244
- active: S,
245
- activatorEvent: Z,
246
- activeNodeRect: ee,
247
- attributes: te,
248
- setNodeRef: M,
249
- listeners: re,
250
- isDragging: _,
251
- over: ne,
252
- setActivatorNodeRef: oe,
253
- transform: ie
254
- } = ve({
255
- id: i,
256
- data: D,
257
- attributes: {
258
- ...Oe,
259
- ...t
260
- },
261
- disabled: R.draggable
262
- }), se = Ie(G, M), I = !!S, Y = I && !w && N(b) && N(v), q = !T && _, B = q && Y ? ie : null, ae = Y ? B ?? (a ?? y)({
263
- rects: h,
264
- activeNodeRect: ee,
265
- activeIndex: b,
266
- overIndex: v,
267
- index: g
268
- }) : null, C = N(b) && N(v) ? s({
269
- id: i,
270
- items: c,
271
- activeIndex: b,
272
- overIndex: v
273
- }) : g, x = S == null ? void 0 : S.id, u = z({
274
- activeId: x,
275
- items: c,
276
- newIndex: C,
277
- containerId: p
278
- }), ce = c !== u.current.items, F = n({
279
- active: S,
280
- containerId: p,
281
- isDragging: _,
282
- isSorting: I,
283
- id: i,
284
- index: g,
285
- items: c,
286
- newIndex: u.current.newIndex,
287
- previousItems: u.current.items,
288
- previousContainerId: u.current.containerId,
289
- transition: d,
290
- wasDragging: u.current.activeId != null
291
- }), $ = Ne({
292
- disabled: !F,
293
- index: g,
294
- node: X,
295
- rect: P
296
- });
297
- return L(() => {
298
- I && u.current.newIndex !== C && (u.current.newIndex = C), p !== u.current.containerId && (u.current.containerId = p), c !== u.current.items && (u.current.items = c);
299
- }, [I, C, p, c]), L(() => {
300
- if (x === u.current.activeId)
301
- return;
302
- if (x && !u.current.activeId) {
303
- u.current.activeId = x;
304
- return;
305
- }
306
- const ue = setTimeout(() => {
307
- u.current.activeId = x;
308
- }, 50);
309
- return () => clearTimeout(ue);
310
- }, [x]), {
311
- active: S,
312
- activeIndex: b,
313
- attributes: te,
314
- data: D,
315
- rect: P,
316
- index: g,
317
- newIndex: C,
318
- items: c,
319
- isOver: W,
320
- isSorting: I,
321
- isDragging: _,
322
- listeners: re,
323
- node: X,
324
- overIndex: v,
325
- over: ne,
326
- setNodeRef: se,
327
- setActivatorNodeRef: oe,
328
- setDroppableNodeRef: G,
329
- setDraggableNodeRef: M,
330
- transform: $ ?? ae,
331
- transition: de()
332
- };
333
- function de() {
334
- if (
335
- // Temporarily disable transitions for a single frame to set up derived transforms
336
- $ || // Or to prevent items jumping to back to their "new" position when items change
337
- ce && u.current.newIndex === g
338
- )
339
- return Te;
340
- if (!(q && !xe(Z) || !d) && (I || F))
341
- return U.Transition.toString({
342
- ...d,
343
- property: Q
344
- });
345
- }
346
- }
347
- function Ae(e, n) {
348
- var t, r;
349
- return typeof e == "boolean" ? {
350
- draggable: e,
351
- // Backwards compatibility
352
- droppable: !1
353
- } : {
354
- draggable: (t = e == null ? void 0 : e.draggable) != null ? t : n.draggable,
355
- droppable: (r = e == null ? void 0 : e.droppable) != null ? r : n.droppable
356
- };
357
- }
358
- O.Down, O.Right, O.Up, O.Left;
359
- export {
360
- Pe as SortableContext,
361
- V as arrayMove,
362
- Ce as defaultAnimateLayoutChanges,
363
- Se as defaultNewIndexGetter,
364
- j as rectSortingStrategy,
365
- Xe as useSortable,
366
- ze as verticalListSortingStrategy
367
- };
@@ -1,235 +0,0 @@
1
- import { useMemo as l, useLayoutEffect as R, useEffect as g, useRef as o, useCallback as i } from "react";
2
- function Y() {
3
- for (var n = arguments.length, t = new Array(n), e = 0; e < n; e++)
4
- t[e] = arguments[e];
5
- return l(
6
- () => (u) => {
7
- t.forEach((r) => r(u));
8
- },
9
- // eslint-disable-next-line react-hooks/exhaustive-deps
10
- t
11
- );
12
- }
13
- const D = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
14
- function a(n) {
15
- const t = Object.prototype.toString.call(n);
16
- return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
17
- t === "[object global]";
18
- }
19
- function b(n) {
20
- return "nodeType" in n;
21
- }
22
- function c(n) {
23
- var t, e;
24
- return n ? a(n) ? n : b(n) && (t = (e = n.ownerDocument) == null ? void 0 : e.defaultView) != null ? t : window : window;
25
- }
26
- function j(n) {
27
- const {
28
- Document: t
29
- } = c(n);
30
- return n instanceof t;
31
- }
32
- function C(n) {
33
- return a(n) ? !1 : n instanceof c(n).HTMLElement;
34
- }
35
- function L(n) {
36
- return n instanceof c(n).SVGElement;
37
- }
38
- function x(n) {
39
- return n ? a(n) ? n.document : b(n) ? j(n) ? n : C(n) || L(n) ? n.ownerDocument : document : document : document;
40
- }
41
- const E = D ? R : g;
42
- function M(n) {
43
- const t = o(n);
44
- return E(() => {
45
- t.current = n;
46
- }), i(function() {
47
- for (var e = arguments.length, u = new Array(e), r = 0; r < e; r++)
48
- u[r] = arguments[r];
49
- return t.current == null ? void 0 : t.current(...u);
50
- }, []);
51
- }
52
- function A() {
53
- const n = o(null), t = i((u, r) => {
54
- n.current = setInterval(u, r);
55
- }, []), e = i(() => {
56
- n.current !== null && (clearInterval(n.current), n.current = null);
57
- }, []);
58
- return [t, e];
59
- }
60
- function I(n, t) {
61
- t === void 0 && (t = [n]);
62
- const e = o(n);
63
- return E(() => {
64
- e.current !== n && (e.current = n);
65
- }, t), e;
66
- }
67
- function v(n, t) {
68
- const e = o();
69
- return l(
70
- () => {
71
- const u = n(e.current);
72
- return e.current = u, u;
73
- },
74
- // eslint-disable-next-line react-hooks/exhaustive-deps
75
- [...t]
76
- );
77
- }
78
- function N(n) {
79
- const t = M(n), e = o(null), u = i(
80
- (r) => {
81
- r !== e.current && (t == null || t(r, e.current)), e.current = r;
82
- },
83
- //eslint-disable-next-line
84
- []
85
- );
86
- return [e, u];
87
- }
88
- function F(n) {
89
- const t = o();
90
- return g(() => {
91
- t.current = n;
92
- }, [n]), t.current;
93
- }
94
- let f = {};
95
- function H(n, t) {
96
- return l(() => {
97
- if (t)
98
- return t;
99
- const e = f[n] == null ? 0 : f[n] + 1;
100
- return f[n] = e, n + "-" + e;
101
- }, [n, t]);
102
- }
103
- function S(n) {
104
- return function(t) {
105
- for (var e = arguments.length, u = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
106
- u[r - 1] = arguments[r];
107
- return u.reduce((s, T) => {
108
- const y = Object.entries(T);
109
- for (const [d, p] of y) {
110
- const m = s[d];
111
- m != null && (s[d] = m + n * p);
112
- }
113
- return s;
114
- }, {
115
- ...t
116
- });
117
- };
118
- }
119
- const W = /* @__PURE__ */ S(1), q = /* @__PURE__ */ S(-1);
120
- function O(n) {
121
- return "clientX" in n && "clientY" in n;
122
- }
123
- function z(n) {
124
- if (!n)
125
- return !1;
126
- const {
127
- KeyboardEvent: t
128
- } = c(n.target);
129
- return t && n instanceof t;
130
- }
131
- function V(n) {
132
- if (!n)
133
- return !1;
134
- const {
135
- TouchEvent: t
136
- } = c(n.target);
137
- return t && n instanceof t;
138
- }
139
- function G(n) {
140
- if (V(n)) {
141
- if (n.touches && n.touches.length) {
142
- const {
143
- clientX: t,
144
- clientY: e
145
- } = n.touches[0];
146
- return {
147
- x: t,
148
- y: e
149
- };
150
- } else if (n.changedTouches && n.changedTouches.length) {
151
- const {
152
- clientX: t,
153
- clientY: e
154
- } = n.changedTouches[0];
155
- return {
156
- x: t,
157
- y: e
158
- };
159
- }
160
- }
161
- return O(n) ? {
162
- x: n.clientX,
163
- y: n.clientY
164
- } : null;
165
- }
166
- const w = /* @__PURE__ */ Object.freeze({
167
- Translate: {
168
- toString(n) {
169
- if (!n)
170
- return;
171
- const {
172
- x: t,
173
- y: e
174
- } = n;
175
- return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (e ? Math.round(e) : 0) + "px, 0)";
176
- }
177
- },
178
- Scale: {
179
- toString(n) {
180
- if (!n)
181
- return;
182
- const {
183
- scaleX: t,
184
- scaleY: e
185
- } = n;
186
- return "scaleX(" + t + ") scaleY(" + e + ")";
187
- }
188
- },
189
- Transform: {
190
- toString(n) {
191
- if (n)
192
- return [w.Translate.toString(n), w.Scale.toString(n)].join(" ");
193
- }
194
- },
195
- Transition: {
196
- toString(n) {
197
- let {
198
- property: t,
199
- duration: e,
200
- easing: u
201
- } = n;
202
- return t + " " + e + "ms " + u;
203
- }
204
- }
205
- }), h = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
206
- function K(n) {
207
- return n.matches(h) ? n : n.querySelector(h);
208
- }
209
- export {
210
- w as CSS,
211
- W as add,
212
- D as canUseDOM,
213
- K as findFirstFocusableNode,
214
- G as getEventCoordinates,
215
- x as getOwnerDocument,
216
- c as getWindow,
217
- O as hasViewportRelativeCoordinates,
218
- j as isDocument,
219
- C as isHTMLElement,
220
- z as isKeyboardEvent,
221
- b as isNode,
222
- L as isSVGElement,
223
- V as isTouchEvent,
224
- a as isWindow,
225
- q as subtract,
226
- Y as useCombinedRefs,
227
- M as useEvent,
228
- A as useInterval,
229
- E as useIsomorphicLayoutEffect,
230
- I as useLatestValue,
231
- v as useLazyMemo,
232
- N as useNodeRef,
233
- F as usePrevious,
234
- H as useUniqueId
235
- };
@@ -1,7 +0,0 @@
1
- import t from "./_getNative.mjs";
2
- import a from "./_root.mjs";
3
- var o = t(a, "DataView");
4
- const i = o;
5
- export {
6
- i as default
7
- };
@@ -1,7 +0,0 @@
1
- import o from "./_getNative.mjs";
2
- import r from "./_root.mjs";
3
- var t = o(r, "Promise");
4
- const i = t;
5
- export {
6
- i as default
7
- };
@@ -1,7 +0,0 @@
1
- import t from "./_getNative.mjs";
2
- import o from "./_root.mjs";
3
- var e = t(o, "Set");
4
- const m = e;
5
- export {
6
- m as default
7
- };
@@ -1,7 +0,0 @@
1
- import a from "./_getNative.mjs";
2
- import o from "./_root.mjs";
3
- var t = a(o, "WeakMap");
4
- const p = t;
5
- export {
6
- p as default
7
- };
@@ -1,8 +0,0 @@
1
- function f(e, n) {
2
- for (var l = -1, t = e == null ? 0 : e.length; ++l < t && n(e[l], l, e) !== !1; )
3
- ;
4
- return e;
5
- }
6
- export {
7
- f as default
8
- };
@@ -1,10 +0,0 @@
1
- function d(e, i) {
2
- for (var n = -1, r = e == null ? 0 : e.length, u = 0, t = []; ++n < r; ) {
3
- var l = e[n];
4
- i(l, n, e) && (t[u++] = l);
5
- }
6
- return t;
7
- }
8
- export {
9
- d as default
10
- };
@@ -1,8 +0,0 @@
1
- import o from "./_copyObject.mjs";
2
- import e from "./keys.mjs";
3
- function m(r, t) {
4
- return r && o(t, e(t), r);
5
- }
6
- export {
7
- m as default
8
- };
@@ -1,8 +0,0 @@
1
- import t from "./_copyObject.mjs";
2
- import o from "./keysIn.mjs";
3
- function i(n, r) {
4
- return n && t(r, o(r), n);
5
- }
6
- export {
7
- i as default
8
- };