@datawire-ai/busyfile-design-library 1.30.4 → 1.30.5
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/index100.js +15 -11
- package/dist/index101.js +13 -217
- package/dist/index102.js +7 -13
- package/dist/index103.js +50 -30
- package/dist/index104.js +633 -118
- package/dist/index105.js +13 -15
- package/dist/index106.js +227 -9
- package/dist/index107.js +219 -49
- package/dist/index108.js +30 -11
- package/dist/index109.js +11 -4
- package/dist/index110.js +4 -13
- package/dist/index111.js +12 -3
- package/dist/index112.js +3 -46
- package/dist/index113.js +46 -14
- package/dist/index114.js +7 -650
- package/dist/index115.js +14 -13
- package/dist/index116.js +178 -223
- package/dist/index121.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.js +3 -3
- package/dist/index127.js +3 -3
- package/dist/index128.js +3 -3
- package/dist/index200.js +5 -525
- package/dist/index201.js +3 -128
- package/dist/index202.js +22 -132
- package/dist/index203.js +110 -5
- package/dist/index204.js +16 -3
- package/dist/index205.js +522 -21
- package/dist/index206.js +127 -109
- package/dist/index207.js +133 -15
- package/dist/index217.js +2 -2
- package/dist/index218.js +2 -2
- package/dist/index221.js +3 -3
- package/dist/index222.js +1 -1
- package/dist/index223.js +2 -2
- package/dist/index225.js +1 -1
- package/dist/index226.js +2 -2
- package/dist/index227.js +1 -1
- package/dist/index228.js +6 -6
- package/dist/index229.js +3 -3
- package/dist/index230.js +1 -1
- package/dist/index231.js +1 -1
- package/dist/index232.js +3 -3
- package/dist/index233.js +1 -1
- package/dist/index234.js +1 -1
- package/dist/index236.js +1 -1
- package/dist/index237.js +1 -1
- package/dist/index238.js +1 -1
- package/dist/index239.js +2 -2
- package/dist/index240.js +2 -2
- package/dist/index241.js +3 -3
- package/dist/index242.js +2 -2
- package/dist/index243.js +1 -1
- package/dist/index245.js +1 -1
- package/dist/index246.js +2 -2
- package/dist/index247.js +1 -1
- package/dist/index269.js +1 -1
- package/dist/index274.js +1 -1
- package/dist/index276.js +1 -1
- package/dist/index277.js +2 -2
- package/dist/index282.js +6 -5
- package/dist/index283.js +15 -5
- package/dist/index284.js +29 -4
- package/dist/index285.js +12 -15
- package/dist/index286.js +5 -8
- package/dist/index287.js +5 -5
- package/dist/index288.js +4 -5
- package/dist/index289.js +15 -512
- package/dist/index290.js +9 -50
- package/dist/index291.js +5 -17
- package/dist/index292.js +4 -6
- package/dist/index293.js +512 -8
- package/dist/index294.js +50 -8
- package/dist/index295.js +17 -8
- package/dist/index296.js +6 -12
- package/dist/index297.js +8 -10
- package/dist/index298.js +7 -14
- package/dist/index299.js +8 -6
- package/dist/index300.js +12 -15
- package/dist/index301.js +10 -28
- package/dist/index302.js +14 -12
- package/dist/index33.js +89 -73
- package/dist/index40.js +1 -1
- package/dist/index42.js +4 -4
- package/dist/index44.js +7 -7
- package/dist/index46.js +5 -5
- package/dist/index49.js +12 -12
- package/dist/index52.js +10 -10
- package/dist/index59.js +5 -5
- package/dist/index63.js +1 -1
- package/dist/index75.js +7 -7
- package/dist/index80.js +2 -2
- package/dist/index82.js +19 -19
- package/dist/index83.js +5 -5
- package/dist/index85.js +13 -13
- package/dist/index86.js +4 -4
- package/dist/index87.js +6 -6
- package/dist/index89.js +25 -5
- package/dist/index90.js +64 -23
- package/dist/index91.js +5 -66
- package/dist/index92.js +1 -1
- package/dist/index94.js +1 -1
- package/dist/index95.js +68 -32
- package/dist/index96.js +33 -181
- package/dist/index97.js +10 -7
- package/dist/index98.js +120 -64
- package/dist/index99.js +126 -116
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +4 -1
- package/package.json +1 -1
package/dist/index112.js
CHANGED
|
@@ -1,49 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { createContextScope as y } from "./index91.js";
|
|
4
|
-
import { useComposedRefs as M } from "./index90.js";
|
|
5
|
-
import { createSlot as x } from "./index40.js";
|
|
6
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
7
|
-
function g(s) {
|
|
8
|
-
const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
|
|
9
|
-
m,
|
|
10
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
11
|
-
), p = (c) => {
|
|
12
|
-
const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
13
|
-
return /* @__PURE__ */ u(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
|
14
|
-
};
|
|
15
|
-
p.displayName = m;
|
|
16
|
-
const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
|
|
17
|
-
(c, e) => {
|
|
18
|
-
const { scope: l, children: o } = c, t = f(a, l), n = M(e, t.collectionRef);
|
|
19
|
-
return /* @__PURE__ */ u(E, { ref: n, children: o });
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
C.displayName = a;
|
|
23
|
-
const d = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(d), I = r.forwardRef(
|
|
24
|
-
(c, e) => {
|
|
25
|
-
const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(d, l);
|
|
26
|
-
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ u(T, { [R]: "", ref: S, children: o });
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
I.displayName = d;
|
|
30
|
-
function O(c) {
|
|
31
|
-
const e = f(s + "CollectionConsumer", c);
|
|
32
|
-
return r.useCallback(() => {
|
|
33
|
-
const o = e.collectionRef.current;
|
|
34
|
-
if (!o) return [];
|
|
35
|
-
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
|
36
|
-
return Array.from(e.itemMap.values()).sort(
|
|
37
|
-
(i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
|
|
38
|
-
);
|
|
39
|
-
}, [e.collectionRef, e.itemMap]);
|
|
40
|
-
}
|
|
41
|
-
return [
|
|
42
|
-
{ Provider: p, Slot: C, ItemSlot: I },
|
|
43
|
-
O,
|
|
44
|
-
N
|
|
45
|
-
];
|
|
1
|
+
function m(t, [a, n]) {
|
|
2
|
+
return Math.min(n, Math.max(a, t));
|
|
46
3
|
}
|
|
47
4
|
export {
|
|
48
|
-
|
|
5
|
+
m as clamp
|
|
49
6
|
};
|
package/dist/index113.js
CHANGED
|
@@ -1,17 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { createContextScope as y } from "./index90.js";
|
|
4
|
+
import { useComposedRefs as M } from "./index89.js";
|
|
5
|
+
import { createSlot as x } from "./index40.js";
|
|
6
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
7
|
+
function g(s) {
|
|
8
|
+
const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
|
|
9
|
+
m,
|
|
10
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
11
|
+
), p = (c) => {
|
|
12
|
+
const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
13
|
+
return /* @__PURE__ */ u(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
|
14
|
+
};
|
|
15
|
+
p.displayName = m;
|
|
16
|
+
const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
|
|
17
|
+
(c, e) => {
|
|
18
|
+
const { scope: l, children: o } = c, t = f(a, l), n = M(e, t.collectionRef);
|
|
19
|
+
return /* @__PURE__ */ u(E, { ref: n, children: o });
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
C.displayName = a;
|
|
23
|
+
const d = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(d), I = r.forwardRef(
|
|
24
|
+
(c, e) => {
|
|
25
|
+
const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(d, l);
|
|
26
|
+
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ u(T, { [R]: "", ref: S, children: o });
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
I.displayName = d;
|
|
30
|
+
function O(c) {
|
|
31
|
+
const e = f(s + "CollectionConsumer", c);
|
|
32
|
+
return r.useCallback(() => {
|
|
33
|
+
const o = e.collectionRef.current;
|
|
34
|
+
if (!o) return [];
|
|
35
|
+
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
|
36
|
+
return Array.from(e.itemMap.values()).sort(
|
|
37
|
+
(i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
|
|
38
|
+
);
|
|
39
|
+
}, [e.collectionRef, e.itemMap]);
|
|
40
|
+
}
|
|
41
|
+
return [
|
|
42
|
+
{ Provider: p, Slot: C, ItemSlot: I },
|
|
43
|
+
O,
|
|
44
|
+
N
|
|
45
|
+
];
|
|
14
46
|
}
|
|
15
47
|
export {
|
|
16
|
-
|
|
48
|
+
g as createCollection
|
|
17
49
|
};
|