@datawire-ai/busyfile-design-library 1.31.1 → 1.33.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.
- package/dist/index100.js +3 -3
- package/dist/index101.js +2 -2
- package/dist/index102.js +2 -2
- package/dist/index106.js +5 -5
- package/dist/index107.js +1 -1
- package/dist/index108.js +3 -14
- package/dist/index109.js +46 -10
- package/dist/index110.js +11 -4
- package/dist/index111.js +4 -13
- package/dist/index112.js +12 -3
- package/dist/index113.js +644 -40
- package/dist/index116.js +23 -649
- package/dist/index117.js +15 -18
- package/dist/index118.js +33 -16
- package/dist/index119.js +12 -33
- package/dist/index12.js +28 -30
- package/dist/index120.js +15 -18
- package/dist/index121.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index30.js +52 -51
- package/dist/index42.js +6 -6
- package/dist/index44.js +9 -9
- package/dist/index46.js +7 -7
- package/dist/index48.js +1 -1
- package/dist/index49.js +5 -5
- package/dist/index50.js +1 -1
- package/dist/index52.js +5 -5
- package/dist/index54.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index59.js +5 -5
- package/dist/index61.js +1 -1
- package/dist/index62.js +1 -1
- package/dist/index63.js +1 -1
- package/dist/index65.js +1 -1
- package/dist/index66.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index68.js +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.js +1 -1
- package/dist/index73.js +1 -1
- package/dist/index75.js +7 -7
- package/dist/index78.js +1 -1
- package/dist/index79.js +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.js +10 -10
- package/dist/index84.js +1 -1
- package/dist/index85.js +5 -5
- package/dist/index86.js +2 -2
- package/dist/index87.js +5 -5
- package/dist/index88.js +1 -1
- package/dist/index90.js +5 -66
- package/dist/index91.js +66 -5
- package/dist/index92.js +33 -51
- package/dist/index93.js +181 -5
- package/dist/index94.js +51 -24
- package/dist/index95.js +7 -69
- package/dist/index96.js +24 -33
- package/dist/index97.js +5 -181
- package/dist/index98.js +69 -7
- package/dist/index99.js +1 -1
- package/dist/types/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/index49.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { composeEventHandlers as p } from "./
|
|
3
|
+
import { composeEventHandlers as p } from "./index90.js";
|
|
4
4
|
import { useComposedRefs as _ } from "./index89.js";
|
|
5
|
-
import { createContextScope as V, createContext as q } from "./
|
|
5
|
+
import { createContextScope as V, createContext as q } from "./index91.js";
|
|
6
6
|
import { useId as R } from "./index99.js";
|
|
7
|
-
import { useControllableState as K } from "./
|
|
7
|
+
import { useControllableState as K } from "./index94.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 "./
|
|
11
|
+
import { Presence as h } from "./index98.js";
|
|
12
|
+
import { Primitive as m } from "./index92.js";
|
|
13
13
|
import { useFocusGuards as z } from "./index103.js";
|
|
14
14
|
import J from "./index104.js";
|
|
15
15
|
import { hideOthers as Q } from "./index105.js";
|
package/dist/index50.js
CHANGED
package/dist/index52.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { composeEventHandlers as g } from "./
|
|
3
|
+
import { composeEventHandlers as g } from "./index90.js";
|
|
4
4
|
import { useComposedRefs as N } from "./index89.js";
|
|
5
|
-
import { createContextScope as W } from "./
|
|
5
|
+
import { createContextScope as W } from "./index91.js";
|
|
6
6
|
import { DismissableLayer as $ } from "./index100.js";
|
|
7
7
|
import { useId as z } from "./index99.js";
|
|
8
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 "./index98.js";
|
|
11
|
+
import { Primitive as oe } from "./index92.js";
|
|
12
12
|
import { createSlottable as re } from "./index40.js";
|
|
13
|
-
import { useControllableState as ne } from "./
|
|
13
|
+
import { useControllableState as ne } from "./index94.js";
|
|
14
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", [
|
package/dist/index54.js
CHANGED
package/dist/index55.js
CHANGED
package/dist/index56.js
CHANGED
package/dist/index57.js
CHANGED
package/dist/index59.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { createContextScope as C } from "./
|
|
4
|
-
import { useCallbackRef as h } from "./
|
|
5
|
-
import { useLayoutEffect as f } from "./
|
|
6
|
-
import { Primitive as v } from "./
|
|
7
|
-
import { useIsHydrated as _ } from "./
|
|
3
|
+
import { createContextScope as C } from "./index91.js";
|
|
4
|
+
import { useCallbackRef as h } from "./index110.js";
|
|
5
|
+
import { useLayoutEffect as f } from "./index111.js";
|
|
6
|
+
import { Primitive as v } from "./index92.js";
|
|
7
|
+
import { useIsHydrated as _ } from "./index112.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/index61.js
CHANGED
package/dist/index62.js
CHANGED
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 "./index92.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/index65.js
CHANGED
package/dist/index66.js
CHANGED
package/dist/index67.js
CHANGED
package/dist/index68.js
CHANGED
package/dist/index70.js
CHANGED
package/dist/index71.js
CHANGED
package/dist/index73.js
CHANGED
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 "./
|
|
4
|
-
import { createContextScope as x } from "./
|
|
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 "./
|
|
3
|
+
import { composeEventHandlers as g } from "./index90.js";
|
|
4
|
+
import { createContextScope as x } from "./index91.js";
|
|
5
|
+
import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index93.js";
|
|
6
|
+
import { Presence as w } from "./index98.js";
|
|
7
|
+
import { Primitive as b } from "./index92.js";
|
|
8
|
+
import { useDirection as D } from "./index95.js";
|
|
9
|
+
import { useControllableState as V } from "./index94.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/index78.js
CHANGED
package/dist/index79.js
CHANGED
package/dist/index81.js
CHANGED
package/dist/index82.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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 "./index108.js";
|
|
5
|
+
import { composeEventHandlers as E } from "./index90.js";
|
|
6
|
+
import { createCollection as st } from "./index109.js";
|
|
7
7
|
import { useComposedRefs as B } from "./index89.js";
|
|
8
|
-
import { createContextScope as lt } from "./
|
|
9
|
-
import { useDirection as ct } from "./
|
|
8
|
+
import { createContextScope as lt } from "./index91.js";
|
|
9
|
+
import { useDirection as ct } from "./index95.js";
|
|
10
10
|
import { DismissableLayer as it } from "./index100.js";
|
|
11
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
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 "./index92.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 "./
|
|
18
|
+
import { useCallbackRef as gt } from "./index110.js";
|
|
19
|
+
import { useControllableState as Ee } from "./index94.js";
|
|
20
|
+
import { useLayoutEffect as Y } from "./index111.js";
|
|
21
|
+
import { usePrevious as St } from "./index97.js";
|
|
22
22
|
import { VISUALLY_HIDDEN_STYLES as wt } from "./index107.js";
|
|
23
23
|
import { hideOthers as Ct } from "./index105.js";
|
|
24
24
|
import yt from "./index104.js";
|
package/dist/index84.js
CHANGED
package/dist/index85.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as i from "react";
|
|
3
|
-
import { composeEventHandlers as P } from "./
|
|
3
|
+
import { composeEventHandlers as P } from "./index90.js";
|
|
4
4
|
import { useComposedRefs as O } from "./index89.js";
|
|
5
|
-
import { createContextScope as G } from "./
|
|
5
|
+
import { createContextScope as G } from "./index91.js";
|
|
6
6
|
import { DismissableLayer as H } from "./index100.js";
|
|
7
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
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 "./index98.js";
|
|
13
|
+
import { Primitive as E } from "./index92.js";
|
|
14
14
|
import { createSlot as q } from "./index40.js";
|
|
15
|
-
import { useControllableState as z } from "./
|
|
15
|
+
import { useControllableState as z } from "./index94.js";
|
|
16
16
|
import { hideOthers as B } from "./index105.js";
|
|
17
17
|
import J from "./index104.js";
|
|
18
18
|
import { jsx as p } from "react/jsx-runtime";
|
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 "./index120.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 "./index92.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 "./index90.js";
|
|
4
4
|
import { composeRefs as K } from "./index89.js";
|
|
5
|
-
import { createContextScope as U } from "./
|
|
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 "./
|
|
5
|
+
import { createContextScope as U } from "./index91.js";
|
|
6
|
+
import { useControllableState as g } from "./index94.js";
|
|
7
|
+
import { Primitive as B } from "./index92.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 "./index113.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/index88.js
CHANGED
package/dist/index90.js
CHANGED
|
@@ -1,70 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
|
|
6
|
-
return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
|
|
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);
|
|
7
5
|
};
|
|
8
|
-
a.displayName = e + "Provider";
|
|
9
|
-
function i(r) {
|
|
10
|
-
const t = u.useContext(o);
|
|
11
|
-
if (t) return t;
|
|
12
|
-
if (c !== void 0) return c;
|
|
13
|
-
throw new Error(`\`${r}\` must be used within \`${e}\``);
|
|
14
|
-
}
|
|
15
|
-
return [a, i];
|
|
16
|
-
}
|
|
17
|
-
function _(e, c = []) {
|
|
18
|
-
let o = [];
|
|
19
|
-
function a(r, t) {
|
|
20
|
-
const n = u.createContext(t), s = o.length;
|
|
21
|
-
o = [...o, t];
|
|
22
|
-
const p = (d) => {
|
|
23
|
-
var S;
|
|
24
|
-
const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
|
|
25
|
-
return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
|
|
26
|
-
};
|
|
27
|
-
p.displayName = r + "Provider";
|
|
28
|
-
function f(d, x) {
|
|
29
|
-
var v;
|
|
30
|
-
const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
|
|
31
|
-
if (m) return m;
|
|
32
|
-
if (t !== void 0) return t;
|
|
33
|
-
throw new Error(`\`${d}\` must be used within \`${r}\``);
|
|
34
|
-
}
|
|
35
|
-
return [p, f];
|
|
36
|
-
}
|
|
37
|
-
const i = () => {
|
|
38
|
-
const r = o.map((t) => u.createContext(t));
|
|
39
|
-
return function(n) {
|
|
40
|
-
const s = (n == null ? void 0 : n[e]) || r;
|
|
41
|
-
return u.useMemo(
|
|
42
|
-
() => ({ [`__scope${e}`]: { ...n, [e]: s } }),
|
|
43
|
-
[n, s]
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
return i.scopeName = e, [a, l(i, ...c)];
|
|
48
|
-
}
|
|
49
|
-
function l(...e) {
|
|
50
|
-
const c = e[0];
|
|
51
|
-
if (e.length === 1) return c;
|
|
52
|
-
const o = () => {
|
|
53
|
-
const a = e.map((i) => ({
|
|
54
|
-
useScope: i(),
|
|
55
|
-
scopeName: i.scopeName
|
|
56
|
-
}));
|
|
57
|
-
return function(r) {
|
|
58
|
-
const t = a.reduce((n, { useScope: s, scopeName: p }) => {
|
|
59
|
-
const d = s(r)[`__scope${p}`];
|
|
60
|
-
return { ...n, ...d };
|
|
61
|
-
}, {});
|
|
62
|
-
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
return o.scopeName = c.scopeName, o;
|
|
66
6
|
}
|
|
67
7
|
export {
|
|
68
|
-
|
|
69
|
-
_ as createContextScope
|
|
8
|
+
h as composeEventHandlers
|
|
70
9
|
};
|
package/dist/index91.js
CHANGED
|
@@ -1,9 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
3
|
+
function w(e, c) {
|
|
4
|
+
const o = u.createContext(c), a = (r) => {
|
|
5
|
+
const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
|
|
6
|
+
return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
|
|
5
7
|
};
|
|
8
|
+
a.displayName = e + "Provider";
|
|
9
|
+
function i(r) {
|
|
10
|
+
const t = u.useContext(o);
|
|
11
|
+
if (t) return t;
|
|
12
|
+
if (c !== void 0) return c;
|
|
13
|
+
throw new Error(`\`${r}\` must be used within \`${e}\``);
|
|
14
|
+
}
|
|
15
|
+
return [a, i];
|
|
16
|
+
}
|
|
17
|
+
function _(e, c = []) {
|
|
18
|
+
let o = [];
|
|
19
|
+
function a(r, t) {
|
|
20
|
+
const n = u.createContext(t), s = o.length;
|
|
21
|
+
o = [...o, t];
|
|
22
|
+
const p = (d) => {
|
|
23
|
+
var S;
|
|
24
|
+
const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
|
|
25
|
+
return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
|
|
26
|
+
};
|
|
27
|
+
p.displayName = r + "Provider";
|
|
28
|
+
function f(d, x) {
|
|
29
|
+
var v;
|
|
30
|
+
const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
|
|
31
|
+
if (m) return m;
|
|
32
|
+
if (t !== void 0) return t;
|
|
33
|
+
throw new Error(`\`${d}\` must be used within \`${r}\``);
|
|
34
|
+
}
|
|
35
|
+
return [p, f];
|
|
36
|
+
}
|
|
37
|
+
const i = () => {
|
|
38
|
+
const r = o.map((t) => u.createContext(t));
|
|
39
|
+
return function(n) {
|
|
40
|
+
const s = (n == null ? void 0 : n[e]) || r;
|
|
41
|
+
return u.useMemo(
|
|
42
|
+
() => ({ [`__scope${e}`]: { ...n, [e]: s } }),
|
|
43
|
+
[n, s]
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
return i.scopeName = e, [a, l(i, ...c)];
|
|
48
|
+
}
|
|
49
|
+
function l(...e) {
|
|
50
|
+
const c = e[0];
|
|
51
|
+
if (e.length === 1) return c;
|
|
52
|
+
const o = () => {
|
|
53
|
+
const a = e.map((i) => ({
|
|
54
|
+
useScope: i(),
|
|
55
|
+
scopeName: i.scopeName
|
|
56
|
+
}));
|
|
57
|
+
return function(r) {
|
|
58
|
+
const t = a.reduce((n, { useScope: s, scopeName: p }) => {
|
|
59
|
+
const d = s(r)[`__scope${p}`];
|
|
60
|
+
return { ...n, ...d };
|
|
61
|
+
}, {});
|
|
62
|
+
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
return o.scopeName = c.scopeName, o;
|
|
6
66
|
}
|
|
7
67
|
export {
|
|
8
|
-
|
|
68
|
+
w as createContext,
|
|
69
|
+
_ as createContextScope
|
|
9
70
|
};
|
package/dist/index92.js
CHANGED
|
@@ -1,54 +1,36 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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";
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import * as p from "react-dom";
|
|
3
|
+
import { createSlot as c } from "./index40.js";
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
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));
|
|
51
32
|
}
|
|
52
33
|
export {
|
|
53
|
-
|
|
34
|
+
h as Primitive,
|
|
35
|
+
w as dispatchDiscreteCustomEvent
|
|
54
36
|
};
|