@datawire-ai/busyfile-design-library 1.31.1 → 1.32.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 +10 -125
- package/dist/index101.js +212 -128
- package/dist/index102.js +2 -2
- package/dist/index103.js +30 -16
- package/dist/index104.js +4 -9
- package/dist/index105.js +46 -49
- package/dist/index106.js +13 -217
- package/dist/index107.js +135 -29
- package/dist/index108.js +10 -14
- package/dist/index109.js +4 -11
- package/dist/index110.js +49 -3
- package/dist/index111.js +9 -13
- package/dist/index112.js +650 -3
- package/dist/index113.js +13 -46
- package/dist/index114.js +226 -13
- package/dist/index115.js +14 -226
- package/dist/index116.js +10 -648
- package/dist/index117.js +12 -25
- package/dist/index118.js +205 -21
- package/dist/index119.js +21 -38
- package/dist/index120.js +399 -17
- package/dist/index121.js +25 -12
- package/dist/index122.js +21 -205
- package/dist/index123.js +38 -21
- package/dist/index124.js +17 -399
- package/dist/index127.js +3 -3
- package/dist/index128.js +3 -3
- package/dist/index130.js +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.js +525 -52
- package/dist/index133.js +127 -4
- package/dist/index134.js +133 -4
- package/dist/index135.js +52 -16
- package/dist/index136.js +4 -5
- package/dist/index137.js +4 -8
- package/dist/index138.js +13 -14
- package/dist/index139.js +5 -4
- package/dist/index140.js +8 -4
- package/dist/index141.js +16 -5
- package/dist/index142.js +4 -5
- package/dist/index143.js +4 -4
- package/dist/index144.js +5 -4
- package/dist/index145.js +5 -6
- package/dist/index146.js +4 -24
- package/dist/index147.js +4 -6
- package/dist/index148.js +5 -3
- package/dist/index149.js +24 -6
- package/dist/index150.js +6 -5
- package/dist/index151.js +4 -4
- package/dist/index152.js +6 -5
- package/dist/index153.js +5 -4
- package/dist/index154.js +4 -8
- package/dist/index155.js +2 -2
- package/dist/index156.js +1 -1
- package/dist/index157.js +8 -4
- package/dist/index158.js +4 -5
- package/dist/index159.js +4 -58
- package/dist/index160.js +4 -66
- package/dist/index161.js +6 -240
- package/dist/index162.js +56 -37
- package/dist/index163.js +66 -4
- package/dist/index164.js +240 -7
- package/dist/index165.js +38 -12
- package/dist/index166.js +4 -7
- package/dist/index167.js +7 -10
- package/dist/index168.js +12 -9
- package/dist/index169.js +7 -8
- package/dist/index170.js +9 -15
- package/dist/index171.js +11 -24
- package/dist/index172.js +9 -20
- package/dist/index173.js +15 -52
- package/dist/index174.js +24 -42
- package/dist/index175.js +20 -10
- package/dist/index176.js +51 -18
- package/dist/index177.js +40 -15
- package/dist/index178.js +9 -6
- package/dist/index179.js +20 -23
- package/dist/index180.js +16 -18
- package/dist/index181.js +7 -16
- package/dist/index182.js +23 -6
- package/dist/index183.js +19 -5
- package/dist/index184.js +16 -5
- package/dist/index185.js +6 -4
- package/dist/index186.js +4 -4
- package/dist/index187.js +4 -3
- package/dist/index188.js +4 -6
- package/dist/index189.js +4 -7
- package/dist/index190.js +3 -6
- package/dist/index191.js +6 -5
- package/dist/index192.js +7 -3
- package/dist/index193.js +6 -3
- package/dist/index194.js +5 -3
- package/dist/index195.js +3 -3
- package/dist/index196.js +3 -4
- package/dist/index197.js +3 -3
- package/dist/index198.js +3 -3
- package/dist/index199.js +4 -3
- package/dist/index200.js +4 -5
- package/dist/index201.js +4 -3
- package/dist/index202.js +3 -23
- package/dist/index203.js +2 -110
- package/dist/index204.js +2 -16
- package/dist/index205.js +5 -525
- package/dist/index206.js +3 -128
- package/dist/index207.js +22 -132
- package/dist/index208.js +110 -2
- package/dist/index209.js +16 -2
- package/dist/index212.js +1 -1
- package/dist/index228.js +1 -1
- package/dist/index248.js +3 -3
- package/dist/index259.js +1 -1
- package/dist/index262.js +1 -1
- package/dist/index264.js +1 -1
- package/dist/index265.js +1 -1
- package/dist/index266.js +3 -3
- package/dist/index267.js +2 -2
- package/dist/index268.js +65 -69
- package/dist/index269.js +68 -8
- package/dist/index270.js +9 -14
- package/dist/index271.js +14 -66
- package/dist/index272.js +65 -64
- package/dist/index30.js +52 -51
- package/dist/index42.js +3 -3
- package/dist/index44.js +6 -6
- package/dist/index46.js +4 -4
- package/dist/index48.js +1 -1
- package/dist/index49.js +10 -10
- package/dist/index50.js +1 -1
- package/dist/index52.js +8 -8
- 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/index80.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index82.js +16 -16
- package/dist/index84.js +1 -1
- package/dist/index85.js +11 -11
- package/dist/index86.js +3 -3
- 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 +1 -1
- package/dist/index94.js +1 -1
- package/dist/index95.js +32 -68
- package/dist/index96.js +181 -33
- package/dist/index97.js +7 -181
- package/dist/index98.js +69 -7
- package/dist/index99.js +125 -10
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
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 "./index108.js";
|
|
5
|
+
import { useLayoutEffect as f } from "./index109.js";
|
|
6
|
+
import { Primitive as v } from "./index95.js";
|
|
7
|
+
import { useIsHydrated as _ } from "./index116.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 "./index95.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,13 +1,13 @@
|
|
|
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 "./
|
|
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 "./index96.js";
|
|
6
|
+
import { Presence as w } from "./index98.js";
|
|
7
|
+
import { Primitive as b } from "./index95.js";
|
|
8
|
+
import { useDirection as D } from "./index97.js";
|
|
9
9
|
import { useControllableState as V } from "./index92.js";
|
|
10
|
-
import { useId as G } from "./
|
|
10
|
+
import { useId as G } from "./index100.js";
|
|
11
11
|
import { jsx as l } from "react/jsx-runtime";
|
|
12
12
|
var p = "Tabs", [L, Q] = x(p, [
|
|
13
13
|
C
|
package/dist/index78.js
CHANGED
package/dist/index79.js
CHANGED
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 "./index113.js";
|
|
8
|
+
import { DayPicker as w } from "./index114.js";
|
|
9
9
|
import h from "./index81.js";
|
|
10
10
|
import _ from "./index70.js";
|
|
11
11
|
import v from "./index57.js";
|
package/dist/index81.js
CHANGED
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 "./index104.js";
|
|
5
|
+
import { composeEventHandlers as E } from "./index90.js";
|
|
6
|
+
import { createCollection as st } from "./index105.js";
|
|
7
7
|
import { useComposedRefs as B } from "./index89.js";
|
|
8
|
-
import { createContextScope as lt } from "./
|
|
9
|
-
import { useDirection as ct } from "./
|
|
10
|
-
import { DismissableLayer as it } from "./
|
|
11
|
-
import { useFocusGuards as at } from "./
|
|
12
|
-
import { FocusScope as dt } from "./
|
|
13
|
-
import { useId as Ie } from "./
|
|
14
|
-
import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./
|
|
8
|
+
import { createContextScope as lt } from "./index91.js";
|
|
9
|
+
import { useDirection as ct } from "./index97.js";
|
|
10
|
+
import { DismissableLayer as it } from "./index99.js";
|
|
11
|
+
import { useFocusGuards as at } from "./index106.js";
|
|
12
|
+
import { FocusScope as dt } from "./index107.js";
|
|
13
|
+
import { useId as Ie } from "./index100.js";
|
|
14
|
+
import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./index101.js";
|
|
15
15
|
import { Portal as ht } from "./index102.js";
|
|
16
|
-
import { Primitive as M } from "./
|
|
16
|
+
import { Primitive as M } from "./index95.js";
|
|
17
17
|
import { createSlot as vt } from "./index40.js";
|
|
18
|
-
import { useCallbackRef as gt } from "./
|
|
18
|
+
import { useCallbackRef as gt } from "./index108.js";
|
|
19
19
|
import { useControllableState as Ee } from "./index92.js";
|
|
20
|
-
import { useLayoutEffect as Y } from "./
|
|
20
|
+
import { useLayoutEffect as Y } from "./index109.js";
|
|
21
21
|
import { usePrevious as St } from "./index93.js";
|
|
22
|
-
import { VISUALLY_HIDDEN_STYLES as wt } from "./
|
|
23
|
-
import { hideOthers as Ct } from "./
|
|
24
|
-
import yt from "./
|
|
22
|
+
import { VISUALLY_HIDDEN_STYLES as wt } from "./index103.js";
|
|
23
|
+
import { hideOthers as Ct } from "./index110.js";
|
|
24
|
+
import yt from "./index111.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/index84.js
CHANGED
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 "./index90.js";
|
|
4
4
|
import { useComposedRefs as O } from "./index89.js";
|
|
5
|
-
import { createContextScope as G } from "./
|
|
6
|
-
import { DismissableLayer as H } from "./
|
|
7
|
-
import { useFocusGuards as K } from "./
|
|
8
|
-
import { FocusScope as $ } from "./
|
|
9
|
-
import { useId as j } from "./
|
|
10
|
-
import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./
|
|
5
|
+
import { createContextScope as G } from "./index91.js";
|
|
6
|
+
import { DismissableLayer as H } from "./index99.js";
|
|
7
|
+
import { useFocusGuards as K } from "./index106.js";
|
|
8
|
+
import { FocusScope as $ } from "./index107.js";
|
|
9
|
+
import { useId as j } from "./index100.js";
|
|
10
|
+
import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./index101.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 "./index95.js";
|
|
14
14
|
import { createSlot as q } from "./index40.js";
|
|
15
15
|
import { useControllableState as z } from "./index92.js";
|
|
16
|
-
import { hideOthers as B } from "./
|
|
17
|
-
import J from "./
|
|
16
|
+
import { hideOthers as B } from "./index110.js";
|
|
17
|
+
import J from "./index111.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,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as pe } from "./
|
|
2
|
+
import { a as pe } from "./index115.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 "./
|
|
6
|
-
import { useId as K } from "./
|
|
5
|
+
import { Primitive as I } from "./index95.js";
|
|
6
|
+
import { useId as K } from "./index100.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) => {
|
|
9
9
|
let r = F(() => {
|
package/dist/index87.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 "./
|
|
5
|
+
import { createContextScope as U } from "./index91.js";
|
|
6
6
|
import { useControllableState as g } from "./index92.js";
|
|
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 "./
|
|
9
|
-
import { useId as v } from "./
|
|
7
|
+
import { Primitive as B } from "./index95.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 "./index112.js";
|
|
9
|
+
import { useId as v } from "./index100.js";
|
|
10
10
|
import { jsx as t } from "react/jsx-runtime";
|
|
11
11
|
var f = "DropdownMenu", [no, xo] = U(
|
|
12
12
|
f,
|
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
package/dist/index94.js
CHANGED
package/dist/index95.js
CHANGED
|
@@ -1,72 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
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 });
|
|
26
27
|
});
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const o = t.current, m = i.current;
|
|
32
|
-
if (m !== n) {
|
|
33
|
-
const f = c.current, u = l(o);
|
|
34
|
-
n ? s("MOUNT") : u === "none" || (o == null ? void 0 : o.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), i.current = n;
|
|
35
|
-
}
|
|
36
|
-
}, [n, s]), A(() => {
|
|
37
|
-
if (e) {
|
|
38
|
-
let o;
|
|
39
|
-
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
|
40
|
-
const g = l(t.current).includes(CSS.escape(u.animationName));
|
|
41
|
-
if (u.target === e && g && (s("ANIMATION_END"), !i.current)) {
|
|
42
|
-
const O = e.style.animationFillMode;
|
|
43
|
-
e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
|
|
44
|
-
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}, f = (u) => {
|
|
48
|
-
u.target === e && (c.current = l(t.current));
|
|
49
|
-
};
|
|
50
|
-
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
|
51
|
-
m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
52
|
-
};
|
|
53
|
-
} else
|
|
54
|
-
s("ANIMATION_END");
|
|
55
|
-
}, [e, s]), {
|
|
56
|
-
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
|
57
|
-
ref: a.useCallback((o) => {
|
|
58
|
-
t.current = o ? getComputedStyle(o) : null, r(o);
|
|
59
|
-
}, [])
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function l(n) {
|
|
63
|
-
return (n == null ? void 0 : n.animationName) || "none";
|
|
64
|
-
}
|
|
65
|
-
function P(n) {
|
|
66
|
-
var t, i;
|
|
67
|
-
let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
68
|
-
return r ? n.ref : (e = (i = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : i.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
|
|
28
|
+
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
|
+
}, {});
|
|
30
|
+
function w(t, i) {
|
|
31
|
+
t && p.flushSync(() => t.dispatchEvent(i));
|
|
69
32
|
}
|
|
70
33
|
export {
|
|
71
|
-
|
|
34
|
+
h as Primitive,
|
|
35
|
+
w as dispatchDiscreteCustomEvent
|
|
72
36
|
};
|