@drjoshcsimmons/scl 0.1.3 → 0.1.4
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/README.md +35 -35
- package/dist/index100.js +15 -50
- package/dist/index102.js +48 -648
- package/dist/index103.js +205 -167
- package/dist/index104.js +30 -15
- package/dist/index11.js +2 -2
- package/dist/index110.js +1 -1
- package/dist/index112.js +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index14.js +2 -2
- package/dist/index15.js +2 -2
- package/dist/index17.js +4 -4
- package/dist/index18.js +2 -2
- package/dist/index20.js +2 -2
- package/dist/index21.js +1 -1
- package/dist/index22.js +1 -1
- package/dist/index23.js +2 -2
- package/dist/index24.js +1 -1
- package/dist/index25.js +4 -4
- package/dist/index26.js +1 -1
- package/dist/index27.js +3 -3
- package/dist/index29.js +1 -1
- package/dist/index31.js +1 -1
- package/dist/index33.js +1 -1
- package/dist/index36.js +2 -2
- package/dist/index37.js +1 -1
- package/dist/index4.js +2 -2
- package/dist/index45.js +220 -108
- package/dist/index46.js +11 -33
- package/dist/index47.js +418 -101
- package/dist/index48.js +147 -59
- package/dist/index49.js +298 -237
- package/dist/index5.js +1 -1
- package/dist/index50.js +5 -2
- package/dist/index51.js +33 -237
- package/dist/index52.js +118 -11
- package/dist/index53.js +70 -15
- package/dist/index54.js +12 -860
- package/dist/index55.js +2 -2
- package/dist/index56.js +229 -205
- package/dist/index57.js +60 -11
- package/dist/index58.js +225 -11
- package/dist/index59.js +11 -60
- package/dist/index6.js +1 -1
- package/dist/index60.js +11 -254
- package/dist/index61.js +112 -517
- package/dist/index62.js +216 -197
- package/dist/index63.js +12 -260
- package/dist/index64.js +82 -12
- package/dist/index65.js +236 -12
- package/dist/index66.js +487 -392
- package/dist/index67.js +21 -160
- package/dist/index68.js +823 -299
- package/dist/index69.js +9 -82
- package/dist/index7.js +1 -1
- package/dist/index70.js +242 -298
- package/dist/index71.js +31 -12
- package/dist/index72.js +332 -18
- package/dist/index73.js +206 -201
- package/dist/index74.js +17 -129
- package/dist/index75.js +130 -31
- package/dist/index77.js +44 -25
- package/dist/index78.js +25 -5
- package/dist/index79.js +6 -53
- package/dist/index8.js +1 -1
- package/dist/index80.js +1 -1
- package/dist/index81.js +34 -4
- package/dist/index82.js +10 -33
- package/dist/index83.js +7 -68
- package/dist/index84.js +3 -10
- package/dist/index85.js +5 -54
- package/dist/index86.js +24 -10
- package/dist/index87.js +181 -30
- package/dist/index88.js +67 -11
- package/dist/index89.js +14 -5
- package/dist/index9.js +2 -2
- package/dist/index90.js +30 -25
- package/dist/index91.js +52 -43
- package/dist/index92.js +10 -7
- package/dist/index93.js +4 -4
- package/dist/index94.js +11 -123
- package/dist/index95.js +52 -13
- package/dist/index96.js +633 -118
- package/dist/index97.js +113 -207
- package/dist/index98.js +134 -13
- package/dist/index99.js +14 -30
- package/package.json +1 -1
package/dist/index95.js
CHANGED
|
@@ -1,17 +1,56 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { composeRefs as y } from "./index78.js";
|
|
3
|
+
import { jsx as p, Fragment as S } from "react/jsx-runtime";
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function _(e) {
|
|
6
|
+
const r = /* @__PURE__ */ g(e), o = l.forwardRef((n, t) => {
|
|
7
|
+
const { children: i, ...a } = n, s = l.Children.toArray(i), c = s.find(E);
|
|
8
|
+
if (c) {
|
|
9
|
+
const f = c.props.children, m = s.map((u) => u === c ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : u);
|
|
10
|
+
return /* @__PURE__ */ p(r, { ...a, ref: t, children: l.isValidElement(f) ? l.cloneElement(f, void 0, m) : null });
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ p(r, { ...a, ref: t, children: i });
|
|
13
|
+
});
|
|
14
|
+
return o.displayName = `${e}.Slot`, o;
|
|
10
15
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
// @__NO_SIDE_EFFECTS__
|
|
17
|
+
function g(e) {
|
|
18
|
+
const r = l.forwardRef((o, n) => {
|
|
19
|
+
const { children: t, ...i } = o;
|
|
20
|
+
if (l.isValidElement(t)) {
|
|
21
|
+
const a = b(t), s = C(i, t.props);
|
|
22
|
+
return t.type !== l.Fragment && (s.ref = n ? y(n, a) : a), l.cloneElement(t, s);
|
|
23
|
+
}
|
|
24
|
+
return l.Children.count(t) > 1 ? l.Children.only(null) : null;
|
|
25
|
+
});
|
|
26
|
+
return r.displayName = `${e}.SlotClone`, r;
|
|
27
|
+
}
|
|
28
|
+
var d = Symbol("radix.slottable");
|
|
29
|
+
// @__NO_SIDE_EFFECTS__
|
|
30
|
+
function x(e) {
|
|
31
|
+
const r = ({ children: o }) => /* @__PURE__ */ p(S, { children: o });
|
|
32
|
+
return r.displayName = `${e}.Slottable`, r.__radixId = d, r;
|
|
33
|
+
}
|
|
34
|
+
function E(e) {
|
|
35
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
|
|
36
|
+
}
|
|
37
|
+
function C(e, r) {
|
|
38
|
+
const o = { ...r };
|
|
39
|
+
for (const n in r) {
|
|
40
|
+
const t = e[n], i = r[n];
|
|
41
|
+
/^on[A-Z]/.test(n) ? t && i ? o[n] = (...s) => {
|
|
42
|
+
const c = i(...s);
|
|
43
|
+
return t(...s), c;
|
|
44
|
+
} : t && (o[n] = t) : n === "style" ? o[n] = { ...t, ...i } : n === "className" && (o[n] = [t, i].filter(Boolean).join(" "));
|
|
45
|
+
}
|
|
46
|
+
return { ...e, ...o };
|
|
47
|
+
}
|
|
48
|
+
function b(e) {
|
|
49
|
+
var n, t;
|
|
50
|
+
let r = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = r && "isReactWarning" in r && r.isReactWarning;
|
|
51
|
+
return o ? e.ref : (r = (t = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : t.get, o = r && "isReactWarning" in r && r.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
14
52
|
}
|
|
15
53
|
export {
|
|
16
|
-
|
|
54
|
+
_ as createSlot,
|
|
55
|
+
x as createSlottable
|
|
17
56
|
};
|