@drjoshcsimmons/scl 0.1.11 → 0.1.13
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 +29 -47
- package/dist/index101.js +10 -52
- package/dist/index102.js +55 -30
- package/dist/index103.js +30 -4
- package/dist/index104.js +3 -218
- package/dist/index105.js +216 -45
- package/dist/index106.js +47 -29
- package/dist/index107.js +30 -9
- package/dist/index108.js +30 -181
- package/dist/index11.js +2 -2
- package/dist/index110.js +9 -30
- package/dist/index111.js +159 -628
- package/dist/index112.js +1 -1
- package/dist/index115.js +12 -6
- package/dist/index116.js +47 -11
- package/dist/index117.js +6 -21
- package/dist/index118.js +206 -9
- package/dist/index119.js +21 -37
- package/dist/index12.js +1 -1
- package/dist/index120.js +399 -17
- package/dist/index121.js +21 -206
- package/dist/index122.js +9 -22
- package/dist/index123.js +38 -400
- package/dist/index124.js +18 -48
- package/dist/index125.js +25 -2
- package/dist/index126.js +29 -53
- package/dist/index127.js +5 -65
- package/dist/index128.js +2 -25
- package/dist/index129.js +53 -29
- package/dist/index13.js +2 -2
- package/dist/index130.js +65 -5
- package/dist/index136.js +1 -1
- package/dist/index137.js +1 -1
- package/dist/index14.js +2 -2
- package/dist/index141.js +1 -1
- package/dist/index15.js +2 -2
- package/dist/index17.js +4 -4
- package/dist/index18.js +2 -2
- package/dist/index20.js +1 -1
- 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 +3 -3
- package/dist/index26.js +1 -1
- package/dist/index27.js +2 -2
- package/dist/index29.js +1 -1
- package/dist/index33.js +1 -1
- package/dist/index36.js +1 -1
- package/dist/index37.js +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index48.js +245 -295
- package/dist/index49.js +5 -5
- package/dist/index50.js +303 -118
- package/dist/index51.js +12 -73
- package/dist/index52.js +244 -55
- package/dist/index53.js +9 -260
- package/dist/index54.js +225 -12
- package/dist/index55.js +11 -249
- package/dist/index56.js +5 -3
- package/dist/index57.js +114 -107
- package/dist/index58.js +73 -12
- package/dist/index59.js +82 -31
- package/dist/index6.js +1 -1
- package/dist/index60.js +846 -68
- package/dist/index61.js +9 -860
- package/dist/index62.js +118 -9
- package/dist/index63.js +16 -159
- package/dist/index64.js +54 -330
- package/dist/index65.js +213 -407
- package/dist/index66.js +407 -213
- package/dist/index67.js +332 -18
- package/dist/index68.js +148 -212
- package/dist/index69.js +31 -11
- package/dist/index7.js +1 -1
- package/dist/index70.js +236 -11
- package/dist/index71.js +2 -2
- package/dist/index72.js +12 -236
- package/dist/index73.js +242 -518
- package/dist/index74.js +530 -18
- package/dist/index75.js +20 -252
- package/dist/index80.js +1 -1
- package/dist/index82.js +1 -1
- package/dist/index84.js +122 -12
- package/dist/index85.js +130 -50
- package/dist/index86.js +13 -10
- package/dist/index87.js +68 -3
- package/dist/index88.js +15 -30
- package/dist/index89.js +9 -13
- package/dist/index9.js +1 -1
- package/dist/index90.js +50 -9
- package/dist/index91.js +47 -5
- package/dist/index92.js +5 -24
- package/dist/index93.js +23 -67
- package/dist/index94.js +12 -122
- package/dist/index95.js +633 -118
- package/dist/index96.js +9 -14
- package/dist/index97.js +52 -12
- package/dist/index98.js +10 -8
- package/dist/index99.js +3 -49
- package/package.json +1 -1
package/dist/index96.js
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
u(() => n(!0), []);
|
|
10
|
-
const t = f || m && ((o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body);
|
|
11
|
-
return t ? s.createPortal(/* @__PURE__ */ l(c.div, { ...i, ref: a }), t) : null;
|
|
12
|
-
});
|
|
13
|
-
d.displayName = p;
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx as e, Fragment as o } from "react/jsx-runtime";
|
|
3
|
+
var l = Symbol("radix.slottable");
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function n(r) {
|
|
6
|
+
const t = ({ children: a }) => /* @__PURE__ */ e(o, { children: a });
|
|
7
|
+
return t.displayName = `${r}.Slottable`, t.__radixId = l, t;
|
|
8
|
+
}
|
|
14
9
|
export {
|
|
15
|
-
|
|
10
|
+
n as createSlottable
|
|
16
11
|
};
|
package/dist/index97.js
CHANGED
|
@@ -1,17 +1,57 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
3
|
+
function $(e, x = []) {
|
|
4
|
+
let o = [];
|
|
5
|
+
function f(r, n) {
|
|
6
|
+
const t = i.createContext(n);
|
|
7
|
+
t.displayName = r + "Context";
|
|
8
|
+
const c = o.length;
|
|
9
|
+
o = [...o, n];
|
|
10
|
+
const m = (a) => {
|
|
11
|
+
var l;
|
|
12
|
+
const { scope: s, children: C, ...p } = a, d = ((l = s == null ? void 0 : s[e]) == null ? void 0 : l[c]) || t, v = i.useMemo(() => p, Object.values(p));
|
|
13
|
+
return /* @__PURE__ */ _(d.Provider, { value: v, children: C });
|
|
8
14
|
};
|
|
9
|
-
|
|
15
|
+
m.displayName = r + "Provider";
|
|
16
|
+
function S(a, s) {
|
|
17
|
+
var d;
|
|
18
|
+
const C = ((d = s == null ? void 0 : s[e]) == null ? void 0 : d[c]) || t, p = i.useContext(C);
|
|
19
|
+
if (p) return p;
|
|
20
|
+
if (n !== void 0) return n;
|
|
21
|
+
throw new Error(`\`${a}\` must be used within \`${r}\``);
|
|
22
|
+
}
|
|
23
|
+
return [m, S];
|
|
24
|
+
}
|
|
25
|
+
const u = () => {
|
|
26
|
+
const r = o.map((n) => i.createContext(n));
|
|
27
|
+
return function(t) {
|
|
28
|
+
const c = (t == null ? void 0 : t[e]) || r;
|
|
29
|
+
return i.useMemo(
|
|
30
|
+
() => ({ [`__scope${e}`]: { ...t, [e]: c } }),
|
|
31
|
+
[t, c]
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
return u.scopeName = e, [f, h(u, ...x)];
|
|
10
36
|
}
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
|
|
37
|
+
function h(...e) {
|
|
38
|
+
const x = e[0];
|
|
39
|
+
if (e.length === 1) return x;
|
|
40
|
+
const o = () => {
|
|
41
|
+
const f = e.map((u) => ({
|
|
42
|
+
useScope: u(),
|
|
43
|
+
scopeName: u.scopeName
|
|
44
|
+
}));
|
|
45
|
+
return function(r) {
|
|
46
|
+
const n = f.reduce((t, { useScope: c, scopeName: m }) => {
|
|
47
|
+
const a = c(r)[`__scope${m}`];
|
|
48
|
+
return { ...t, ...a };
|
|
49
|
+
}, {});
|
|
50
|
+
return i.useMemo(() => ({ [`__scope${x.scopeName}`]: n }), [n]);
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
return o.scopeName = x.scopeName, o;
|
|
14
54
|
}
|
|
15
55
|
export {
|
|
16
|
-
|
|
56
|
+
$ as createContextScope
|
|
17
57
|
};
|
package/dist/index98.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { __assign as m } from "./index128.js";
|
|
2
1
|
import * as r from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})
|
|
8
|
-
|
|
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
|
+
}, []);
|
|
10
|
+
}
|
|
9
11
|
export {
|
|
10
|
-
|
|
12
|
+
o as useCallbackRef
|
|
11
13
|
};
|
package/dist/index99.js
CHANGED
|
@@ -1,52 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return null;
|
|
4
|
-
var u = Array.isArray(r) ? r[0] : r;
|
|
5
|
-
return u.ownerDocument.body;
|
|
6
|
-
}, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
|
|
7
|
-
return r && (r.host || W(r.parentNode));
|
|
8
|
-
}, D = function(r, u) {
|
|
9
|
-
return u.map(function(e) {
|
|
10
|
-
if (r.contains(e))
|
|
11
|
-
return e;
|
|
12
|
-
var n = W(e);
|
|
13
|
-
return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
|
|
14
|
-
}).filter(function(e) {
|
|
15
|
-
return !!e;
|
|
16
|
-
});
|
|
17
|
-
}, E = function(r, u, e, n) {
|
|
18
|
-
var i = D(u, Array.isArray(r) ? r : [r]);
|
|
19
|
-
p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
|
|
20
|
-
var s = p[e], l = [], o = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
|
|
21
|
-
!t || o.has(t) || (o.add(t), y(t.parentNode));
|
|
22
|
-
};
|
|
23
|
-
i.forEach(y);
|
|
24
|
-
var A = function(t) {
|
|
25
|
-
!t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
|
|
26
|
-
if (o.has(a))
|
|
27
|
-
A(a);
|
|
28
|
-
else
|
|
29
|
-
try {
|
|
30
|
-
var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (s.get(a) || 0) + 1;
|
|
31
|
-
f.set(a, d), s.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
|
|
32
|
-
} catch (k) {
|
|
33
|
-
console.error("aria-hidden: cannot operate on ", a, k);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
return A(u), o.clear(), h++, function() {
|
|
38
|
-
l.forEach(function(t) {
|
|
39
|
-
var a = f.get(t) - 1, c = s.get(t) - 1;
|
|
40
|
-
f.set(t, a), s.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
|
|
41
|
-
}), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
|
|
42
|
-
};
|
|
43
|
-
}, C = function(r, u, e) {
|
|
44
|
-
e === void 0 && (e = "data-aria-hidden");
|
|
45
|
-
var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
|
|
46
|
-
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live], script"))), E(n, i, e, "aria-hidden")) : function() {
|
|
47
|
-
return null;
|
|
48
|
-
};
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
var e = globalThis != null && globalThis.document ? t.useLayoutEffect : () => {
|
|
49
3
|
};
|
|
50
4
|
export {
|
|
51
|
-
|
|
5
|
+
e as useLayoutEffect
|
|
52
6
|
};
|