@drjoshcsimmons/scl 0.1.4 → 0.1.6
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/globals.css +300 -0
- package/dist/index100.js +3 -14
- package/dist/index101.js +15 -9
- package/dist/index102.js +30 -50
- package/dist/index103.js +167 -205
- package/dist/index104.js +647 -27
- package/dist/index105.js +12 -6
- package/dist/index106.js +206 -21
- package/dist/index107.js +22 -9
- package/dist/index108.js +400 -38
- package/dist/index109.js +6 -18
- package/dist/index11.js +2 -2
- package/dist/index110.js +21 -12
- package/dist/index111.js +9 -206
- package/dist/index112.js +37 -21
- package/dist/index113.js +17 -399
- package/dist/index114.js +25 -2
- package/dist/index115.js +29 -53
- package/dist/index116.js +5 -65
- package/dist/index117.js +2 -2
- package/dist/index118.js +53 -2
- package/dist/index119.js +63 -23
- package/dist/index12.js +1 -1
- package/dist/index120.js +2 -29
- package/dist/index121.js +2 -5
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- 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 +33 -237
- package/dist/index46.js +241 -11
- package/dist/index47.js +216 -402
- package/dist/index48.js +9 -161
- package/dist/index49.js +12 -310
- package/dist/index5.js +1 -1
- package/dist/index50.js +260 -12
- package/dist/index51.js +12 -33
- package/dist/index52.js +62 -107
- package/dist/index53.js +226 -62
- package/dist/index54.js +4 -5
- package/dist/index55.js +530 -9
- package/dist/index56.js +112 -236
- package/dist/index57.js +307 -57
- package/dist/index58.js +12 -225
- package/dist/index59.js +435 -11
- package/dist/index6.js +1 -1
- package/dist/index60.js +60 -11
- package/dist/index61.js +250 -121
- package/dist/index62.js +115 -245
- package/dist/index63.js +82 -12
- package/dist/index64.js +21 -81
- package/dist/index65.js +31 -236
- package/dist/index66.js +18 -530
- package/dist/index67.js +235 -21
- package/dist/index68.js +11 -860
- package/dist/index69.js +161 -9
- package/dist/index7.js +1 -1
- package/dist/index70.js +323 -241
- package/dist/index71.js +219 -25
- package/dist/index72.js +11 -336
- package/dist/index73.js +823 -204
- package/dist/index74.js +9 -18
- package/dist/index75.js +105 -117
- package/dist/index76.js +5 -66
- package/dist/index77.js +25 -44
- package/dist/index78.js +64 -23
- package/dist/index79.js +123 -5
- package/dist/index8.js +1 -1
- package/dist/index80.js +13 -50
- package/dist/index81.js +133 -32
- package/dist/index82.js +1 -1
- package/dist/index83.js +218 -7
- package/dist/index84.js +14 -4
- package/dist/index85.js +68 -5
- package/dist/index86.js +33 -24
- package/dist/index87.js +49 -176
- package/dist/index88.js +48 -65
- package/dist/index89.js +50 -15
- package/dist/index9.js +2 -2
- package/dist/index90.js +9 -30
- package/dist/index91.js +5 -54
- package/dist/index92.js +24 -10
- package/dist/index93.js +55 -4
- package/dist/index94.js +10 -12
- package/dist/index95.js +4 -54
- package/dist/index96.js +30 -650
- package/dist/index97.js +11 -123
- package/dist/index98.js +41 -130
- package/dist/index99.js +8 -14
- package/package.json +19 -11
package/dist/index94.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return () => {
|
|
11
|
-
};
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
function o(t) {
|
|
3
|
+
const e = r.useRef(t);
|
|
4
|
+
return r.useEffect(() => {
|
|
5
|
+
e.current = t;
|
|
6
|
+
}), r.useMemo(() => (...n) => {
|
|
7
|
+
var u;
|
|
8
|
+
return (u = e.current) == null ? void 0 : u.call(e, ...n);
|
|
9
|
+
}, []);
|
|
12
10
|
}
|
|
13
11
|
export {
|
|
14
|
-
|
|
12
|
+
o as useCallbackRef
|
|
15
13
|
};
|
package/dist/index95.js
CHANGED
|
@@ -1,56 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
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;
|
|
15
|
-
}
|
|
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);
|
|
52
|
-
}
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
var e = globalThis != null && globalThis.document ? t.useLayoutEffect : () => {
|
|
3
|
+
};
|
|
53
4
|
export {
|
|
54
|
-
|
|
55
|
-
x as createSlottable
|
|
5
|
+
e as useLayoutEffect
|
|
56
6
|
};
|