@datawire-ai/busyfile-design-library 1.30.10 → 1.31.1
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 +4 -4
- package/dist/index101.js +2 -2
- package/dist/index102.js +2 -2
- package/dist/index103.js +13 -67
- package/dist/index104.js +8 -15
- package/dist/index105.js +50 -9
- package/dist/index106.js +219 -49
- package/dist/index107.js +29 -219
- package/dist/index108.js +15 -30
- package/dist/index109.js +10 -181
- package/dist/index110.js +3 -7
- package/dist/index111.js +12 -13
- package/dist/index112.js +3 -226
- package/dist/index113.js +46 -3
- package/dist/index114.js +13 -46
- package/dist/index115.js +221 -645
- package/dist/index116.js +648 -12
- package/dist/index12.js +150 -85
- package/dist/index121.js +12 -6
- package/dist/index122.js +204 -10
- package/dist/index123.js +20 -204
- package/dist/index124.js +399 -21
- package/dist/index125.js +6 -400
- package/dist/index126.js +25 -2
- package/dist/index127.js +29 -53
- package/dist/index128.js +5 -65
- package/dist/index129.js +2 -25
- package/dist/index130.js +53 -29
- package/dist/index131.js +65 -5
- package/dist/index200.js +5 -2
- package/dist/index201.js +3 -2
- package/dist/index202.js +24 -5
- package/dist/index203.js +110 -3
- package/dist/index204.js +15 -23
- package/dist/index205.js +518 -103
- package/dist/index206.js +126 -14
- package/dist/index207.js +125 -516
- package/dist/index208.js +2 -128
- package/dist/index209.js +2 -134
- package/dist/index26.js +31 -17
- package/dist/index268.js +69 -65
- package/dist/index269.js +8 -68
- package/dist/index270.js +14 -9
- package/dist/index271.js +66 -14
- package/dist/index272.js +64 -65
- package/dist/index42.js +5 -5
- package/dist/index44.js +8 -8
- package/dist/index46.js +6 -6
- package/dist/index49.js +7 -7
- package/dist/index52.js +6 -6
- package/dist/index53.js +17 -17
- package/dist/index59.js +4 -4
- package/dist/index63.js +1 -1
- package/dist/index74.js +1 -1
- package/dist/index75.js +6 -6
- package/dist/index80.js +2 -2
- package/dist/index82.js +14 -14
- package/dist/index85.js +8 -8
- package/dist/index86.js +2 -2
- package/dist/index87.js +4 -4
- package/dist/index91.js +6 -10
- package/dist/index92.js +52 -4
- package/dist/index93.js +5 -33
- package/dist/index94.js +24 -12
- package/dist/index95.js +68 -5
- package/dist/index96.js +33 -51
- package/dist/index97.js +181 -5
- package/dist/index98.js +7 -24
- package/dist/index99.js +1 -1
- package/dist/style.css +1 -1
- package/dist/theme.css +1 -1
- package/dist/types/index.d.ts +9 -4
- package/package.json +1 -1
package/dist/index272.js
CHANGED
|
@@ -1,68 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { __assign as d } from "./index126.js";
|
|
2
|
+
function l(r) {
|
|
3
|
+
return r;
|
|
4
|
+
}
|
|
5
|
+
function h(r, t) {
|
|
6
|
+
t === void 0 && (t = l);
|
|
7
|
+
var e = [], o = !1, c = {
|
|
8
|
+
read: function() {
|
|
9
|
+
if (o)
|
|
10
|
+
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
11
|
+
return e.length ? e[e.length - 1] : r;
|
|
12
|
+
},
|
|
13
|
+
useMedium: function(u) {
|
|
14
|
+
var n = t(u, o);
|
|
15
|
+
return e.push(n), function() {
|
|
16
|
+
e = e.filter(function(i) {
|
|
17
|
+
return i !== n;
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
assignSyncMedium: function(u) {
|
|
22
|
+
for (o = !0; e.length; ) {
|
|
23
|
+
var n = e;
|
|
24
|
+
e = [], n.forEach(u);
|
|
25
|
+
}
|
|
26
|
+
e = {
|
|
27
|
+
push: function(i) {
|
|
28
|
+
return u(i);
|
|
29
|
+
},
|
|
30
|
+
filter: function() {
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
assignMedium: function(u) {
|
|
36
|
+
o = !0;
|
|
37
|
+
var n = [];
|
|
38
|
+
if (e.length) {
|
|
39
|
+
var i = e;
|
|
40
|
+
e = [], i.forEach(u), n = e;
|
|
41
|
+
}
|
|
42
|
+
var s = function() {
|
|
43
|
+
var f = n;
|
|
44
|
+
n = [], f.forEach(u);
|
|
45
|
+
}, a = function() {
|
|
46
|
+
return Promise.resolve().then(s);
|
|
47
|
+
};
|
|
48
|
+
a(), e = {
|
|
49
|
+
push: function(f) {
|
|
50
|
+
n.push(f), a();
|
|
51
|
+
},
|
|
52
|
+
filter: function(f) {
|
|
53
|
+
return n = n.filter(f), e;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
25
56
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
l
|
|
35
|
-
];
|
|
36
|
-
}, p = function(r) {
|
|
37
|
-
var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
|
|
38
|
-
return [
|
|
39
|
-
e,
|
|
40
|
-
t,
|
|
41
|
-
l
|
|
42
|
-
];
|
|
43
|
-
}, g = function(r, e) {
|
|
44
|
-
return r === "v" ? D(e) : E(e);
|
|
45
|
-
}, m = function(r, e) {
|
|
46
|
-
return r === "v" ? H(e) : p(e);
|
|
47
|
-
}, B = function(r, e) {
|
|
48
|
-
return r === "h" && e === "rtl" ? -1 : 1;
|
|
49
|
-
}, V = function(r, e, t, l, f) {
|
|
50
|
-
var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
|
|
51
|
-
do {
|
|
52
|
-
if (!o)
|
|
53
|
-
break;
|
|
54
|
-
var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
|
|
55
|
-
(v || w) && g(r, o) && (h += w, S += v);
|
|
56
|
-
var a = o.parentNode;
|
|
57
|
-
o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
|
|
58
|
-
} while (
|
|
59
|
-
// portaled content
|
|
60
|
-
!d && o !== document.body || // self content
|
|
61
|
-
d && (e.contains(o) || e === o)
|
|
62
|
-
);
|
|
63
|
-
return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
|
|
64
|
-
};
|
|
57
|
+
};
|
|
58
|
+
return c;
|
|
59
|
+
}
|
|
60
|
+
function v(r) {
|
|
61
|
+
r === void 0 && (r = {});
|
|
62
|
+
var t = h(null);
|
|
63
|
+
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
64
|
+
}
|
|
65
65
|
export {
|
|
66
|
-
|
|
67
|
-
T as locationCouldBeScrolled
|
|
66
|
+
v as createSidecarMedium
|
|
68
67
|
};
|
package/dist/index42.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { composeEventHandlers as T } from "./
|
|
3
|
+
import { composeEventHandlers as T } from "./index91.js";
|
|
4
4
|
import { useComposedRefs as P } from "./index89.js";
|
|
5
5
|
import { createContextScope as I } from "./index90.js";
|
|
6
|
-
import { useControllableState as M } from "./
|
|
7
|
-
import { usePrevious as H } from "./
|
|
8
|
-
import { useSize as j } from "./
|
|
9
|
-
import { Primitive as y } from "./
|
|
6
|
+
import { useControllableState as M } from "./index92.js";
|
|
7
|
+
import { usePrevious as H } from "./index93.js";
|
|
8
|
+
import { useSize as j } from "./index94.js";
|
|
9
|
+
import { Primitive as y } from "./index96.js";
|
|
10
10
|
import { jsxs as A, jsx as m } from "react/jsx-runtime";
|
|
11
11
|
var h = "Switch", [U, Q] = I(h), [q, z] = U(h), R = r.forwardRef(
|
|
12
12
|
(t, a) => {
|
package/dist/index44.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { composeEventHandlers as I } from "./
|
|
3
|
+
import { composeEventHandlers as I } from "./index91.js";
|
|
4
4
|
import { useComposedRefs as E } from "./index89.js";
|
|
5
5
|
import { createContextScope as w } from "./index90.js";
|
|
6
|
-
import { Primitive as b } from "./
|
|
7
|
-
import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./
|
|
8
|
-
import { useControllableState as K } from "./
|
|
9
|
-
import { useDirection as T } from "./
|
|
10
|
-
import { useSize as U } from "./
|
|
11
|
-
import { usePrevious as V } from "./
|
|
12
|
-
import { Presence as j } from "./
|
|
6
|
+
import { Primitive as b } from "./index96.js";
|
|
7
|
+
import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index97.js";
|
|
8
|
+
import { useControllableState as K } from "./index92.js";
|
|
9
|
+
import { useDirection as T } from "./index98.js";
|
|
10
|
+
import { useSize as U } from "./index94.js";
|
|
11
|
+
import { usePrevious as V } from "./index93.js";
|
|
12
|
+
import { Presence as j } from "./index95.js";
|
|
13
13
|
import { jsx as p, jsxs as z } from "react/jsx-runtime";
|
|
14
14
|
var _ = "Radio", [H, G] = w(_), [W, X] = H(_), S = i.forwardRef(
|
|
15
15
|
(a, d) => {
|
package/dist/index46.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { useComposedRefs as B } from "./index89.js";
|
|
4
4
|
import { createContextScope as L } from "./index90.js";
|
|
5
|
-
import { composeEventHandlers as S } from "./
|
|
6
|
-
import { useControllableState as O } from "./
|
|
7
|
-
import { usePrevious as j } from "./
|
|
8
|
-
import { useSize as H } from "./
|
|
9
|
-
import { Presence as z } from "./
|
|
10
|
-
import { Primitive as P } from "./
|
|
5
|
+
import { composeEventHandlers as S } from "./index91.js";
|
|
6
|
+
import { useControllableState as O } from "./index92.js";
|
|
7
|
+
import { usePrevious as j } from "./index93.js";
|
|
8
|
+
import { useSize as H } from "./index94.js";
|
|
9
|
+
import { Presence as z } from "./index95.js";
|
|
10
|
+
import { Primitive as P } from "./index96.js";
|
|
11
11
|
import { jsx as b, jsxs as G, Fragment as K } from "react/jsx-runtime";
|
|
12
12
|
var g = "Checkbox", [U, se] = L(g), [X, E] = U(g);
|
|
13
13
|
function J(t) {
|
package/dist/index49.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { composeEventHandlers as p } from "./
|
|
3
|
+
import { composeEventHandlers as p } from "./index91.js";
|
|
4
4
|
import { useComposedRefs as _ } from "./index89.js";
|
|
5
5
|
import { createContextScope as V, createContext as q } from "./index90.js";
|
|
6
6
|
import { useId as R } from "./index99.js";
|
|
7
|
-
import { useControllableState as K } from "./
|
|
7
|
+
import { useControllableState as K } from "./index92.js";
|
|
8
8
|
import { DismissableLayer as U } from "./index100.js";
|
|
9
9
|
import { FocusScope as Y } from "./index101.js";
|
|
10
10
|
import { Portal as Z } from "./index102.js";
|
|
11
|
-
import { Presence as h } from "./
|
|
12
|
-
import { Primitive as m } from "./
|
|
13
|
-
import { useFocusGuards as z } from "./
|
|
14
|
-
import J from "./
|
|
15
|
-
import { hideOthers as Q } from "./
|
|
11
|
+
import { Presence as h } from "./index95.js";
|
|
12
|
+
import { Primitive as m } from "./index96.js";
|
|
13
|
+
import { useFocusGuards as z } from "./index103.js";
|
|
14
|
+
import J from "./index104.js";
|
|
15
|
+
import { hideOthers as Q } from "./index105.js";
|
|
16
16
|
import { createSlot as X } from "./index40.js";
|
|
17
17
|
import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
|
|
18
18
|
var v = "Dialog", [I, Ne] = V(v), [ee, u] = I(v), x = (e) => {
|
package/dist/index52.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { composeEventHandlers as g } from "./
|
|
3
|
+
import { composeEventHandlers as g } from "./index91.js";
|
|
4
4
|
import { useComposedRefs as N } from "./index89.js";
|
|
5
5
|
import { createContextScope as W } from "./index90.js";
|
|
6
6
|
import { DismissableLayer as $ } from "./index100.js";
|
|
7
7
|
import { useId as z } from "./index99.js";
|
|
8
|
-
import { createPopperScope as S, Root as J, Anchor as Q, Arrow as Z, Content as ee } from "./
|
|
8
|
+
import { createPopperScope as S, Root as J, Anchor as Q, Arrow as Z, Content as ee } from "./index106.js";
|
|
9
9
|
import { Portal as te } from "./index102.js";
|
|
10
|
-
import { Presence as G } from "./
|
|
11
|
-
import { Primitive as oe } from "./
|
|
10
|
+
import { Presence as G } from "./index95.js";
|
|
11
|
+
import { Primitive as oe } from "./index96.js";
|
|
12
12
|
import { createSlottable as re } from "./index40.js";
|
|
13
|
-
import { useControllableState as ne } from "./
|
|
14
|
-
import { Root as se } from "./
|
|
13
|
+
import { useControllableState as ne } from "./index92.js";
|
|
14
|
+
import { Root as se } from "./index107.js";
|
|
15
15
|
import { jsx as f, jsxs as ie } from "react/jsx-runtime";
|
|
16
16
|
var [A, He] = W("Tooltip", [
|
|
17
17
|
S
|
package/dist/index53.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsxs as f, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "./index37.js";
|
|
3
3
|
import { Input as u } from "./index26.js";
|
|
4
4
|
import { InputLabel as d } from "./index24.js";
|
|
5
5
|
const N = ({
|
|
6
6
|
label: s,
|
|
7
7
|
helperText: a,
|
|
8
8
|
errorText: t,
|
|
9
|
-
startSlot:
|
|
10
|
-
endSlot:
|
|
11
|
-
size:
|
|
9
|
+
startSlot: c,
|
|
10
|
+
endSlot: e,
|
|
11
|
+
size: i = "medium",
|
|
12
12
|
className: n,
|
|
13
13
|
disabled: l = !1,
|
|
14
|
-
labelClassName:
|
|
15
|
-
...
|
|
16
|
-
}) => /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ m(d, { className:
|
|
14
|
+
labelClassName: o,
|
|
15
|
+
...p
|
|
16
|
+
}) => /* @__PURE__ */ f("div", { className: "flex flex-col gap-1", children: [
|
|
17
|
+
/* @__PURE__ */ m(d, { className: o, children: s }),
|
|
18
18
|
/* @__PURE__ */ m(
|
|
19
19
|
u,
|
|
20
20
|
{
|
|
21
|
-
size:
|
|
21
|
+
size: i,
|
|
22
22
|
status: t ? "error" : l ? "disabled" : "default",
|
|
23
|
-
startSlot:
|
|
24
|
-
endSlot:
|
|
23
|
+
startSlot: c,
|
|
24
|
+
endSlot: e,
|
|
25
25
|
disabled: l,
|
|
26
26
|
className: n,
|
|
27
|
-
...
|
|
27
|
+
...p
|
|
28
28
|
}
|
|
29
29
|
),
|
|
30
30
|
(a || t) && /* @__PURE__ */ m(
|
|
31
31
|
"p",
|
|
32
32
|
{
|
|
33
|
-
className:
|
|
34
|
-
"text-
|
|
35
|
-
|
|
36
|
-
),
|
|
33
|
+
className: r("text-sm mt-1", {
|
|
34
|
+
"text-error-1": t,
|
|
35
|
+
"text-neutral-black-2": !t
|
|
36
|
+
}),
|
|
37
37
|
children: t || a
|
|
38
38
|
}
|
|
39
39
|
)
|
package/dist/index59.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import { createContextScope as C } from "./index90.js";
|
|
4
|
-
import { useCallbackRef as h } from "./
|
|
5
|
-
import { useLayoutEffect as f } from "./
|
|
6
|
-
import { Primitive as v } from "./
|
|
7
|
-
import { useIsHydrated as _ } from "./
|
|
4
|
+
import { useCallbackRef as h } from "./index109.js";
|
|
5
|
+
import { useLayoutEffect as f } from "./index110.js";
|
|
6
|
+
import { Primitive as v } from "./index96.js";
|
|
7
|
+
import { useIsHydrated as _ } from "./index111.js";
|
|
8
8
|
import { jsx as l } from "react/jsx-runtime";
|
|
9
9
|
var m = "Avatar", [y, H] = C(m), [x, A] = y(m), L = i.forwardRef(
|
|
10
10
|
(t, e) => {
|
package/dist/index63.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import { Primitive as v } from "./
|
|
2
|
+
import { Primitive as v } from "./index96.js";
|
|
3
3
|
import { jsx as m } from "react/jsx-runtime";
|
|
4
4
|
var d = "Separator", a = "horizontal", l = ["horizontal", "vertical"], i = p.forwardRef((r, n) => {
|
|
5
5
|
const { decorative: e, orientation: t = a, ...s } = r, o = f(t) ? t : a, c = e ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
|
package/dist/index74.js
CHANGED
|
@@ -9,7 +9,7 @@ const e = r(
|
|
|
9
9
|
},
|
|
10
10
|
status: {
|
|
11
11
|
default: "border-neutral-black-4 text-foreground focus-within:ring-4 focus-within:ring-neutral-black-4",
|
|
12
|
-
error: "border-error-1 text-
|
|
12
|
+
error: "border-error-1 text-error-1 focus-within:ring-4 focus-within:ring-error-1",
|
|
13
13
|
disabled: "border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"
|
|
14
14
|
}
|
|
15
15
|
},
|
package/dist/index75.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as v from "react";
|
|
3
|
-
import { composeEventHandlers as g } from "./
|
|
3
|
+
import { composeEventHandlers as g } from "./index91.js";
|
|
4
4
|
import { createContextScope as x } from "./index90.js";
|
|
5
|
-
import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./
|
|
6
|
-
import { Presence as w } from "./
|
|
7
|
-
import { Primitive as b } from "./
|
|
8
|
-
import { useDirection as D } from "./
|
|
9
|
-
import { useControllableState as V } from "./
|
|
5
|
+
import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index97.js";
|
|
6
|
+
import { Presence as w } from "./index95.js";
|
|
7
|
+
import { Primitive as b } from "./index96.js";
|
|
8
|
+
import { useDirection as D } from "./index98.js";
|
|
9
|
+
import { useControllableState as V } from "./index92.js";
|
|
10
10
|
import { useId as G } from "./index99.js";
|
|
11
11
|
import { jsx as l } from "react/jsx-runtime";
|
|
12
12
|
var p = "Tabs", [L, Q] = x(p, [
|
package/dist/index80.js
CHANGED
|
@@ -4,8 +4,8 @@ import * as m from "react";
|
|
|
4
4
|
import { cn as e } from "./index37.js";
|
|
5
5
|
import { Button as x } from "./index3.js";
|
|
6
6
|
import { buttonVariants as f } from "./index41.js";
|
|
7
|
-
import { getDefaultClassNames as p } from "./
|
|
8
|
-
import { DayPicker as w } from "./
|
|
7
|
+
import { getDefaultClassNames as p } from "./index114.js";
|
|
8
|
+
import { DayPicker as w } from "./index115.js";
|
|
9
9
|
import h from "./index81.js";
|
|
10
10
|
import _ from "./index70.js";
|
|
11
11
|
import v from "./index57.js";
|
package/dist/index82.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import * as be from "react-dom";
|
|
4
|
-
import { clamp as Re } from "./
|
|
5
|
-
import { composeEventHandlers as E } from "./
|
|
6
|
-
import { createCollection as st } from "./
|
|
4
|
+
import { clamp as Re } from "./index112.js";
|
|
5
|
+
import { composeEventHandlers as E } from "./index91.js";
|
|
6
|
+
import { createCollection as st } from "./index113.js";
|
|
7
7
|
import { useComposedRefs as B } from "./index89.js";
|
|
8
8
|
import { createContextScope as lt } from "./index90.js";
|
|
9
|
-
import { useDirection as ct } from "./
|
|
9
|
+
import { useDirection as ct } from "./index98.js";
|
|
10
10
|
import { DismissableLayer as it } from "./index100.js";
|
|
11
|
-
import { useFocusGuards as at } from "./
|
|
11
|
+
import { useFocusGuards as at } from "./index103.js";
|
|
12
12
|
import { FocusScope as dt } from "./index101.js";
|
|
13
13
|
import { useId as Ie } from "./index99.js";
|
|
14
|
-
import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./
|
|
14
|
+
import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./index106.js";
|
|
15
15
|
import { Portal as ht } from "./index102.js";
|
|
16
|
-
import { Primitive as M } from "./
|
|
16
|
+
import { Primitive as M } from "./index96.js";
|
|
17
17
|
import { createSlot as vt } from "./index40.js";
|
|
18
|
-
import { useCallbackRef as gt } from "./
|
|
19
|
-
import { useControllableState as Ee } from "./
|
|
20
|
-
import { useLayoutEffect as Y } from "./
|
|
21
|
-
import { usePrevious as St } from "./
|
|
22
|
-
import { VISUALLY_HIDDEN_STYLES as wt } from "./
|
|
23
|
-
import { hideOthers as Ct } from "./
|
|
24
|
-
import yt from "./
|
|
18
|
+
import { useCallbackRef as gt } from "./index109.js";
|
|
19
|
+
import { useControllableState as Ee } from "./index92.js";
|
|
20
|
+
import { useLayoutEffect as Y } from "./index110.js";
|
|
21
|
+
import { usePrevious as St } from "./index93.js";
|
|
22
|
+
import { VISUALLY_HIDDEN_STYLES as wt } from "./index107.js";
|
|
23
|
+
import { hideOthers as Ct } from "./index105.js";
|
|
24
|
+
import yt from "./index104.js";
|
|
25
25
|
import { jsx as m, Fragment as Te, jsxs as ce } from "react/jsx-runtime";
|
|
26
26
|
var xt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ae, de, Tt] = st(J), [te, uo] = lt(J, [
|
|
27
27
|
Tt,
|
package/dist/index85.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { composeEventHandlers as P } from "./
|
|
3
|
+
import { composeEventHandlers as P } from "./index91.js";
|
|
4
4
|
import { useComposedRefs as O } from "./index89.js";
|
|
5
5
|
import { createContextScope as G } from "./index90.js";
|
|
6
6
|
import { DismissableLayer as H } from "./index100.js";
|
|
7
|
-
import { useFocusGuards as K } from "./
|
|
7
|
+
import { useFocusGuards as K } from "./index103.js";
|
|
8
8
|
import { FocusScope as $ } from "./index101.js";
|
|
9
9
|
import { useId as j } from "./index99.js";
|
|
10
|
-
import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./
|
|
10
|
+
import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./index106.js";
|
|
11
11
|
import { Portal as Z } from "./index102.js";
|
|
12
|
-
import { Presence as w } from "./
|
|
13
|
-
import { Primitive as E } from "./
|
|
12
|
+
import { Presence as w } from "./index95.js";
|
|
13
|
+
import { Primitive as E } from "./index96.js";
|
|
14
14
|
import { createSlot as q } from "./index40.js";
|
|
15
|
-
import { useControllableState as z } from "./
|
|
16
|
-
import { hideOthers as B } from "./
|
|
17
|
-
import J from "./
|
|
15
|
+
import { useControllableState as z } from "./index92.js";
|
|
16
|
+
import { hideOthers as B } from "./index105.js";
|
|
17
|
+
import J from "./index104.js";
|
|
18
18
|
import { jsx as p } from "react/jsx-runtime";
|
|
19
19
|
var C = "Popover", [b, _o] = G(C, [
|
|
20
20
|
_
|
package/dist/index86.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as pe } from "./
|
|
2
|
+
import { a as pe } from "./index108.js";
|
|
3
3
|
import { Root as ge, Portal as he, Overlay as be, Content as Ee } from "./index49.js";
|
|
4
4
|
import * as n from "react";
|
|
5
|
-
import { Primitive as I } from "./
|
|
5
|
+
import { Primitive as I } from "./index96.js";
|
|
6
6
|
import { useId as K } from "./index99.js";
|
|
7
7
|
import { composeRefs as q } from "./index89.js";
|
|
8
8
|
var $ = '[cmdk-group=""]', X = '[cmdk-group-items=""]', ye = '[cmdk-group-heading=""]', oe = '[cmdk-item=""]', ie = `${oe}:not([aria-disabled="true"])`, Y = "cmdk-item-select", D = "data-value", Ce = (t, a, r) => pe(t, a, r), ce = n.createContext(void 0), O = () => n.useContext(ce), de = n.createContext(void 0), Z = () => n.useContext(de), se = n.createContext(void 0), fe = n.forwardRef((t, a) => {
|
package/dist/index87.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import { composeEventHandlers as m } from "./
|
|
3
|
+
import { composeEventHandlers as m } from "./index91.js";
|
|
4
4
|
import { composeRefs as K } from "./index89.js";
|
|
5
5
|
import { createContextScope as U } from "./index90.js";
|
|
6
|
-
import { useControllableState as g } from "./
|
|
7
|
-
import { Primitive as B } from "./
|
|
8
|
-
import { createMenuScope as D, Root as F, Portal as H, Anchor as W, Content as $, Group as j, Label as X, Item as q, CheckboxItem as z, RadioGroup as J, RadioItem as Q, ItemIndicator as V, Separator as Y, Sub as Z, SubTrigger as oo, SubContent as eo, Arrow as ro } from "./
|
|
6
|
+
import { useControllableState as g } from "./index92.js";
|
|
7
|
+
import { Primitive as B } from "./index96.js";
|
|
8
|
+
import { createMenuScope as D, Root as F, Portal as H, Anchor as W, Content as $, Group as j, Label as X, Item as q, CheckboxItem as z, RadioGroup as J, RadioItem as Q, ItemIndicator as V, Separator as Y, Sub as Z, SubTrigger as oo, SubContent as eo, Arrow as ro } from "./index116.js";
|
|
9
9
|
import { useId as v } from "./index99.js";
|
|
10
10
|
import { jsx as t } from "react/jsx-runtime";
|
|
11
11
|
var f = "DropdownMenu", [no, xo] = U(
|
package/dist/index91.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}), r.useMemo(() => (...n) => {
|
|
7
|
-
var u;
|
|
8
|
-
return (u = e.current) == null ? void 0 : u.call(e, ...n);
|
|
9
|
-
}, []);
|
|
1
|
+
function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
|
|
2
|
+
return function(s) {
|
|
3
|
+
if (f == null || f(s), p === !1 || !s.defaultPrevented)
|
|
4
|
+
return c == null ? void 0 : c(s);
|
|
5
|
+
};
|
|
10
6
|
}
|
|
11
7
|
export {
|
|
12
|
-
|
|
8
|
+
h as composeEventHandlers
|
|
13
9
|
};
|
package/dist/index92.js
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { useLayoutEffect as v } from "./index110.js";
|
|
3
|
+
var E = n[" useInsertionEffect ".trim().toString()] || v;
|
|
4
|
+
function y({
|
|
5
|
+
prop: t,
|
|
6
|
+
defaultProp: u,
|
|
7
|
+
onChange: o = () => {
|
|
8
|
+
},
|
|
9
|
+
caller: i
|
|
10
|
+
}) {
|
|
11
|
+
const [l, e, r] = w({
|
|
12
|
+
defaultProp: u,
|
|
13
|
+
onChange: o
|
|
14
|
+
}), c = t !== void 0, a = c ? t : l;
|
|
15
|
+
{
|
|
16
|
+
const s = n.useRef(t !== void 0);
|
|
17
|
+
n.useEffect(() => {
|
|
18
|
+
const f = s.current;
|
|
19
|
+
f !== c && console.warn(
|
|
20
|
+
`${i} is changing from ${f ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
21
|
+
), s.current = c;
|
|
22
|
+
}, [c, i]);
|
|
23
|
+
}
|
|
24
|
+
const m = n.useCallback(
|
|
25
|
+
(s) => {
|
|
26
|
+
var f;
|
|
27
|
+
if (c) {
|
|
28
|
+
const d = R(s) ? s(t) : s;
|
|
29
|
+
d !== t && ((f = r.current) == null || f.call(r, d));
|
|
30
|
+
} else
|
|
31
|
+
e(s);
|
|
32
|
+
},
|
|
33
|
+
[c, t, e, r]
|
|
34
|
+
);
|
|
35
|
+
return [a, m];
|
|
36
|
+
}
|
|
37
|
+
function w({
|
|
38
|
+
defaultProp: t,
|
|
39
|
+
onChange: u
|
|
40
|
+
}) {
|
|
41
|
+
const [o, i] = n.useState(t), l = n.useRef(o), e = n.useRef(u);
|
|
42
|
+
return E(() => {
|
|
43
|
+
e.current = u;
|
|
44
|
+
}, [u]), n.useEffect(() => {
|
|
45
|
+
var r;
|
|
46
|
+
l.current !== o && ((r = e.current) == null || r.call(e, o), l.current = o);
|
|
47
|
+
}, [o, l]), [o, i, e];
|
|
48
|
+
}
|
|
49
|
+
function R(t) {
|
|
50
|
+
return typeof t == "function";
|
|
51
|
+
}
|
|
4
52
|
export {
|
|
5
|
-
|
|
53
|
+
y as useControllableState
|
|
6
54
|
};
|
package/dist/index93.js
CHANGED
|
@@ -1,36 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var u = [
|
|
6
|
-
"a",
|
|
7
|
-
"button",
|
|
8
|
-
"div",
|
|
9
|
-
"form",
|
|
10
|
-
"h2",
|
|
11
|
-
"h3",
|
|
12
|
-
"img",
|
|
13
|
-
"input",
|
|
14
|
-
"label",
|
|
15
|
-
"li",
|
|
16
|
-
"nav",
|
|
17
|
-
"ol",
|
|
18
|
-
"p",
|
|
19
|
-
"select",
|
|
20
|
-
"span",
|
|
21
|
-
"svg",
|
|
22
|
-
"ul"
|
|
23
|
-
], h = u.reduce((t, i) => {
|
|
24
|
-
const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
|
|
25
|
-
const { asChild: s, ...a } = e, n = s ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
|
|
27
|
-
});
|
|
28
|
-
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
|
-
}, {});
|
|
30
|
-
function w(t, i) {
|
|
31
|
-
t && p.flushSync(() => t.dispatchEvent(i));
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
function t(r) {
|
|
3
|
+
const e = u.useRef({ value: r, previous: r });
|
|
4
|
+
return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
|
|
32
5
|
}
|
|
33
6
|
export {
|
|
34
|
-
|
|
35
|
-
w as dispatchDiscreteCustomEvent
|
|
7
|
+
t as usePrevious
|
|
36
8
|
};
|
package/dist/index94.js
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
()
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as h from "react";
|
|
2
|
+
import { useLayoutEffect as z } from "./index110.js";
|
|
3
|
+
function c(r) {
|
|
4
|
+
const [d, e] = h.useState(void 0);
|
|
5
|
+
return z(() => {
|
|
6
|
+
if (r) {
|
|
7
|
+
e({ width: r.offsetWidth, height: r.offsetHeight });
|
|
8
|
+
const f = new ResizeObserver((i) => {
|
|
9
|
+
if (!Array.isArray(i) || !i.length)
|
|
10
|
+
return;
|
|
11
|
+
const b = i[0];
|
|
12
|
+
let o, t;
|
|
13
|
+
if ("borderBoxSize" in b) {
|
|
14
|
+
const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
|
|
15
|
+
o = u.inlineSize, t = u.blockSize;
|
|
16
|
+
} else
|
|
17
|
+
o = r.offsetWidth, t = r.offsetHeight;
|
|
18
|
+
e({ width: o, height: t });
|
|
19
|
+
});
|
|
20
|
+
return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
|
|
21
|
+
} else
|
|
22
|
+
e(void 0);
|
|
23
|
+
}, [r]), d;
|
|
12
24
|
}
|
|
13
25
|
export {
|
|
14
|
-
|
|
26
|
+
c as useSize
|
|
15
27
|
};
|