laif-ds 0.2.47 → 0.2.49
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/_virtual/index2.js +2 -5
- package/dist/_virtual/index3.js +5 -2
- package/dist/agent-docs/components/AppForm.md +66 -1
- package/dist/agent-docs/components/AsyncSelect.md +94 -103
- package/dist/components/kanban.js +544 -0
- package/dist/components/ui/app-form.js +76 -44
- package/dist/components/ui/app-kanban.js +157 -0
- package/dist/components/ui/app-select.js +100 -87
- package/dist/components/ui/async-select.js +264 -278
- package/dist/index.d.ts +84 -29
- package/dist/index.js +77 -75
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +47 -44
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +536 -502
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +4 -4
package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { composeRefs as m } from "../../../../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
|
+
function b(e) {
|
|
7
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
8
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
|
|
9
|
+
if (a) {
|
|
10
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
11
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
|
|
14
|
+
});
|
|
15
|
+
return t.displayName = `${e}.Slot`, t;
|
|
16
|
+
}
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function y(e) {
|
|
19
|
+
const r = l.forwardRef((t, o) => {
|
|
20
|
+
const { children: n, ...i } = t;
|
|
21
|
+
if (l.isValidElement(n)) {
|
|
22
|
+
const c = S(n), s = C(i, n.props);
|
|
23
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
24
|
+
}
|
|
25
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
26
|
+
});
|
|
27
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
28
|
+
}
|
|
29
|
+
var g = Symbol("radix.slottable");
|
|
30
|
+
function E(e) {
|
|
31
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
32
|
+
}
|
|
33
|
+
function C(e, r) {
|
|
34
|
+
const t = { ...r };
|
|
35
|
+
for (const o in r) {
|
|
36
|
+
const n = e[o], i = r[o];
|
|
37
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
38
|
+
const a = i(...s);
|
|
39
|
+
return n(...s), a;
|
|
40
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
41
|
+
}
|
|
42
|
+
return { ...e, ...t };
|
|
43
|
+
}
|
|
44
|
+
function S(e) {
|
|
45
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
46
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as createSlot
|
|
50
|
+
};
|
|
@@ -11,7 +11,7 @@ import { createPopperScope as _, Root as j, Anchor as x, Content as U, Arrow as
|
|
|
11
11
|
import { Portal as W } from "../../react-portal/dist/index.js";
|
|
12
12
|
import { Presence as w } from "../../react-presence/dist/index.js";
|
|
13
13
|
import { Primitive as E } from "../../react-primitive/dist/index.js";
|
|
14
|
-
import { createSlot as Z } from "
|
|
14
|
+
import { createSlot as Z } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
15
15
|
import { useControllableState as q } from "../../react-use-controllable-state/dist/index.js";
|
|
16
16
|
import { hideOthers as z } from "../../../aria-hidden/dist/es2015/index.js";
|
|
17
17
|
import B from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { composeRefs as m } from "../../../../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
|
+
function b(e) {
|
|
7
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
8
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
|
|
9
|
+
if (a) {
|
|
10
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
11
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
|
|
14
|
+
});
|
|
15
|
+
return t.displayName = `${e}.Slot`, t;
|
|
16
|
+
}
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function y(e) {
|
|
19
|
+
const r = l.forwardRef((t, o) => {
|
|
20
|
+
const { children: n, ...i } = t;
|
|
21
|
+
if (l.isValidElement(n)) {
|
|
22
|
+
const c = S(n), s = C(i, n.props);
|
|
23
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
24
|
+
}
|
|
25
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
26
|
+
});
|
|
27
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
28
|
+
}
|
|
29
|
+
var g = Symbol("radix.slottable");
|
|
30
|
+
function E(e) {
|
|
31
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
32
|
+
}
|
|
33
|
+
function C(e, r) {
|
|
34
|
+
const t = { ...r };
|
|
35
|
+
for (const o in r) {
|
|
36
|
+
const n = e[o], i = r[o];
|
|
37
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
38
|
+
const a = i(...s);
|
|
39
|
+
return n(...s), a;
|
|
40
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
41
|
+
}
|
|
42
|
+
return { ...e, ...t };
|
|
43
|
+
}
|
|
44
|
+
function S(e) {
|
|
45
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
46
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as createSlot
|
|
50
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import * as f from "react-dom";
|
|
4
|
-
import { createSlot as p } from "
|
|
4
|
+
import { createSlot as p } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
5
5
|
import { jsx as l } from "react/jsx-runtime";
|
|
6
6
|
var u = [
|
|
7
7
|
"a",
|
package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { composeRefs as m } from "../../../../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
|
+
function b(e) {
|
|
7
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
8
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
|
|
9
|
+
if (a) {
|
|
10
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
11
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
|
|
14
|
+
});
|
|
15
|
+
return t.displayName = `${e}.Slot`, t;
|
|
16
|
+
}
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function y(e) {
|
|
19
|
+
const r = l.forwardRef((t, o) => {
|
|
20
|
+
const { children: n, ...i } = t;
|
|
21
|
+
if (l.isValidElement(n)) {
|
|
22
|
+
const c = S(n), s = C(i, n.props);
|
|
23
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
24
|
+
}
|
|
25
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
26
|
+
});
|
|
27
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
28
|
+
}
|
|
29
|
+
var g = Symbol("radix.slottable");
|
|
30
|
+
function E(e) {
|
|
31
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
32
|
+
}
|
|
33
|
+
function C(e, r) {
|
|
34
|
+
const t = { ...r };
|
|
35
|
+
for (const o in r) {
|
|
36
|
+
const n = e[o], i = r[o];
|
|
37
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
38
|
+
const a = i(...s);
|
|
39
|
+
return n(...s), a;
|
|
40
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
41
|
+
}
|
|
42
|
+
return { ...e, ...t };
|
|
43
|
+
}
|
|
44
|
+
function S(e) {
|
|
45
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
46
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as createSlot
|
|
50
|
+
};
|
|
@@ -14,7 +14,7 @@ import { useId as Ie } from "../../react-id/dist/index.js";
|
|
|
14
14
|
import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "../../react-popper/dist/index.js";
|
|
15
15
|
import { Portal as ht } from "../../react-portal/dist/index.js";
|
|
16
16
|
import { Primitive as M } from "../../react-primitive/dist/index.js";
|
|
17
|
-
import { createSlot as vt } from "
|
|
17
|
+
import { createSlot as vt } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
18
18
|
import { useCallbackRef as gt } from "../../react-use-callback-ref/dist/index.js";
|
|
19
19
|
import { useControllableState as Ee } from "../../react-use-controllable-state/dist/index.js";
|
|
20
20
|
import { useLayoutEffect as Y } from "../../react-use-layout-effect/dist/index.js";
|
package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { composeRefs as m } from "../../../../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
5
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
|
+
function b(e) {
|
|
7
|
+
const r = /* @__PURE__ */ y(e), t = l.forwardRef((o, n) => {
|
|
8
|
+
const { children: i, ...c } = o, s = l.Children.toArray(i), a = s.find(E);
|
|
9
|
+
if (a) {
|
|
10
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
11
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ u(r, { ...c, ref: n, children: i });
|
|
14
|
+
});
|
|
15
|
+
return t.displayName = `${e}.Slot`, t;
|
|
16
|
+
}
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function y(e) {
|
|
19
|
+
const r = l.forwardRef((t, o) => {
|
|
20
|
+
const { children: n, ...i } = t;
|
|
21
|
+
if (l.isValidElement(n)) {
|
|
22
|
+
const c = S(n), s = C(i, n.props);
|
|
23
|
+
return n.type !== l.Fragment && (s.ref = o ? m(o, c) : c), l.cloneElement(n, s);
|
|
24
|
+
}
|
|
25
|
+
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
26
|
+
});
|
|
27
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
28
|
+
}
|
|
29
|
+
var g = Symbol("radix.slottable");
|
|
30
|
+
function E(e) {
|
|
31
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
32
|
+
}
|
|
33
|
+
function C(e, r) {
|
|
34
|
+
const t = { ...r };
|
|
35
|
+
for (const o in r) {
|
|
36
|
+
const n = e[o], i = r[o];
|
|
37
|
+
/^on[A-Z]/.test(o) ? n && i ? t[o] = (...s) => {
|
|
38
|
+
const a = i(...s);
|
|
39
|
+
return n(...s), a;
|
|
40
|
+
} : n && (t[o] = n) : o === "style" ? t[o] = { ...n, ...i } : o === "className" && (t[o] = [n, i].filter(Boolean).join(" "));
|
|
41
|
+
}
|
|
42
|
+
return { ...e, ...t };
|
|
43
|
+
}
|
|
44
|
+
function S(e) {
|
|
45
|
+
let r = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning;
|
|
46
|
+
return t ? e.ref : (r = Object.getOwnPropertyDescriptor(e, "ref")?.get, t = r && "isReactWarning" in r && r.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
b as createSlot
|
|
50
|
+
};
|
|
@@ -1,59 +1,62 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import { composeRefs as
|
|
4
|
-
import { jsx as
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { composeRefs as S } from "../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
5
|
+
var E = Symbol.for("react.lazy"), p = e[" use ".trim().toString()];
|
|
6
|
+
function g(t) {
|
|
7
|
+
return typeof t == "object" && t !== null && "then" in t;
|
|
8
|
+
}
|
|
9
|
+
function d(t) {
|
|
10
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === E && "_payload" in t && g(t._payload);
|
|
11
|
+
}
|
|
5
12
|
// @__NO_SIDE_EFFECTS__
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
function C(t) {
|
|
14
|
+
const n = /* @__PURE__ */ R(t), o = e.forwardRef((i, r) => {
|
|
15
|
+
let { children: l, ...a } = i;
|
|
16
|
+
d(l) && typeof p == "function" && (l = p(l._payload));
|
|
17
|
+
const s = e.Children.toArray(l), f = s.find(b);
|
|
18
|
+
if (f) {
|
|
19
|
+
const c = f.props.children, m = s.map((u) => u === f ? e.Children.count(c) > 1 ? e.Children.only(null) : e.isValidElement(c) ? c.props.children : null : u);
|
|
20
|
+
return /* @__PURE__ */ y(n, { ...a, ref: r, children: e.isValidElement(c) ? e.cloneElement(c, void 0, m) : null });
|
|
12
21
|
}
|
|
13
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ y(n, { ...a, ref: r, children: l });
|
|
14
23
|
});
|
|
15
|
-
return
|
|
24
|
+
return o.displayName = `${t}.Slot`, o;
|
|
16
25
|
}
|
|
17
|
-
var
|
|
26
|
+
var V = /* @__PURE__ */ C("Slot");
|
|
18
27
|
// @__NO_SIDE_EFFECTS__
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
if (
|
|
23
|
-
const a =
|
|
24
|
-
return
|
|
28
|
+
function R(t) {
|
|
29
|
+
const n = e.forwardRef((o, i) => {
|
|
30
|
+
let { children: r, ...l } = o;
|
|
31
|
+
if (d(r) && typeof p == "function" && (r = p(r._payload)), e.isValidElement(r)) {
|
|
32
|
+
const a = P(r), s = h(l, r.props);
|
|
33
|
+
return r.type !== e.Fragment && (s.ref = i ? S(i, a) : a), e.cloneElement(r, s);
|
|
25
34
|
}
|
|
26
|
-
return
|
|
35
|
+
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
27
36
|
});
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
var d = Symbol("radix.slottable");
|
|
31
|
-
// @__NO_SIDE_EFFECTS__
|
|
32
|
-
function I(e) {
|
|
33
|
-
const t = ({ children: r }) => /* @__PURE__ */ p(S, { children: r });
|
|
34
|
-
return t.displayName = `${e}.Slottable`, t.__radixId = d, t;
|
|
37
|
+
return n.displayName = `${t}.SlotClone`, n;
|
|
35
38
|
}
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
var _ = Symbol("radix.slottable");
|
|
40
|
+
function b(t) {
|
|
41
|
+
return e.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === _;
|
|
38
42
|
}
|
|
39
|
-
function
|
|
40
|
-
const
|
|
41
|
-
for (const
|
|
42
|
-
const
|
|
43
|
-
/^on[A-Z]/.test(
|
|
44
|
-
const
|
|
45
|
-
return
|
|
46
|
-
} :
|
|
43
|
+
function h(t, n) {
|
|
44
|
+
const o = { ...n };
|
|
45
|
+
for (const i in n) {
|
|
46
|
+
const r = t[i], l = n[i];
|
|
47
|
+
/^on[A-Z]/.test(i) ? r && l ? o[i] = (...s) => {
|
|
48
|
+
const f = l(...s);
|
|
49
|
+
return r(...s), f;
|
|
50
|
+
} : r && (o[i] = r) : i === "style" ? o[i] = { ...r, ...l } : i === "className" && (o[i] = [r, l].filter(Boolean).join(" "));
|
|
47
51
|
}
|
|
48
|
-
return { ...
|
|
52
|
+
return { ...t, ...o };
|
|
49
53
|
}
|
|
50
|
-
function
|
|
51
|
-
let
|
|
52
|
-
return
|
|
54
|
+
function P(t) {
|
|
55
|
+
let n = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning;
|
|
56
|
+
return o ? t.ref : (n = Object.getOwnPropertyDescriptor(t, "ref")?.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? t.props.ref : t.props.ref || t.ref);
|
|
53
57
|
}
|
|
54
58
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
I as createSlottable
|
|
59
|
+
V as Root,
|
|
60
|
+
V as Slot,
|
|
61
|
+
C as createSlot
|
|
59
62
|
};
|
|
@@ -9,7 +9,7 @@ import { createPopperScope as S, Root as J, Arrow as Q, Anchor as Z, Content as
|
|
|
9
9
|
import { Portal as te } from "../../react-portal/dist/index.js";
|
|
10
10
|
import { Presence as G } from "../../react-presence/dist/index.js";
|
|
11
11
|
import { Primitive as oe } from "../../react-primitive/dist/index.js";
|
|
12
|
-
import { createSlottable as re } from "
|
|
12
|
+
import { createSlottable as re } from "../node_modules/@radix-ui/react-slot/dist/index.js";
|
|
13
13
|
import { useControllableState as ne } from "../../react-use-controllable-state/dist/index.js";
|
|
14
14
|
import { Root as se } from "../../react-visually-hidden/dist/index.js";
|
|
15
15
|
import { jsx as f, jsxs as ae } from "react/jsx-runtime";
|
package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as a, Fragment as l } from "react/jsx-runtime";
|
|
4
|
+
var o = Symbol("radix.slottable");
|
|
5
|
+
// @__NO_SIDE_EFFECTS__
|
|
6
|
+
function m(e) {
|
|
7
|
+
const t = ({ children: r }) => /* @__PURE__ */ a(l, { children: r });
|
|
8
|
+
return t.displayName = `${e}.Slottable`, t.__radixId = o, t;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
m as createSlottable
|
|
12
|
+
};
|