@drjoshcsimmons/scl 0.1.1 → 0.1.3
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 +202 -13
- package/dist/index100.js +50 -9
- package/dist/index101.js +9 -50
- package/dist/index102.js +627 -196
- package/dist/index103.js +180 -3
- package/dist/index104.js +15 -30
- package/dist/index11.js +2 -2
- package/dist/index110.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 +3 -3
- 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 +124 -32
- package/dist/index46.js +32 -124
- package/dist/index47.js +100 -219
- package/dist/index48.js +73 -11
- package/dist/index49.js +244 -55
- package/dist/index5.js +1 -1
- package/dist/index50.js +9 -249
- package/dist/index51.js +237 -9
- package/dist/index52.js +11 -73
- package/dist/index53.js +16 -234
- package/dist/index54.js +860 -11
- package/dist/index55.js +9 -310
- package/dist/index56.js +225 -12
- package/dist/index57.js +11 -225
- package/dist/index59.js +58 -29
- package/dist/index6.js +1 -1
- package/dist/index60.js +248 -254
- package/dist/index61.js +530 -12
- package/dist/index62.js +224 -101
- package/dist/index63.js +260 -12
- package/dist/index64.js +12 -22
- package/dist/index65.js +12 -18
- package/dist/index66.js +407 -213
- package/dist/index67.js +143 -112
- package/dist/index68.js +317 -142
- package/dist/index69.js +76 -248
- package/dist/index7.js +1 -1
- package/dist/index70.js +299 -71
- package/dist/index71.js +12 -530
- package/dist/index72.js +20 -433
- package/dist/index73.js +216 -316
- package/dist/index74.js +105 -835
- package/dist/index75.js +31 -9
- package/dist/index8.js +1 -1
- package/dist/index80.js +50 -44
- package/dist/index81.js +4 -52
- package/dist/index83.js +68 -10
- package/dist/index84.js +10 -7
- package/dist/index85.js +54 -5
- package/dist/index86.js +10 -24
- package/dist/index87.js +29 -68
- package/dist/index88.js +10 -52
- package/dist/index89.js +5 -10
- package/dist/index9.js +2 -2
- package/dist/index90.js +25 -4
- package/dist/index91.js +46 -30
- package/dist/index92.js +7 -12
- package/dist/index93.js +3 -180
- package/dist/index94.js +122 -12
- package/dist/index95.js +11 -646
- package/dist/index96.js +125 -115
- package/dist/index97.js +212 -128
- package/dist/index98.js +1 -1
- package/dist/index99.js +30 -15
- package/package.json +3 -2
package/dist/index57.js
CHANGED
|
@@ -1,227 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
f,
|
|
12
|
-
[D]
|
|
13
|
-
), i = D(), [ao, _] = no(f), h = (o) => {
|
|
14
|
-
const {
|
|
15
|
-
__scopeDropdownMenu: n,
|
|
16
|
-
children: r,
|
|
17
|
-
dir: e,
|
|
18
|
-
open: a,
|
|
19
|
-
defaultOpen: d,
|
|
20
|
-
onOpenChange: c,
|
|
21
|
-
modal: p = !0
|
|
22
|
-
} = o, s = i(n), v = u.useRef(null), [l, w] = g({
|
|
23
|
-
prop: a,
|
|
24
|
-
defaultProp: d ?? !1,
|
|
25
|
-
onChange: c,
|
|
26
|
-
caller: f
|
|
27
|
-
});
|
|
28
|
-
return /* @__PURE__ */ t(
|
|
29
|
-
ao,
|
|
30
|
-
{
|
|
31
|
-
scope: n,
|
|
32
|
-
triggerId: M(),
|
|
33
|
-
triggerRef: v,
|
|
34
|
-
contentId: M(),
|
|
35
|
-
open: l,
|
|
36
|
-
onOpenChange: w,
|
|
37
|
-
onOpenToggle: u.useCallback(() => w((L) => !L), [w]),
|
|
38
|
-
modal: p,
|
|
39
|
-
children: /* @__PURE__ */ t(F, { ...s, open: l, onOpenChange: w, dir: e, modal: p, children: r })
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
h.displayName = f;
|
|
44
|
-
var R = "DropdownMenuTrigger", b = u.forwardRef(
|
|
45
|
-
(o, n) => {
|
|
46
|
-
const { __scopeDropdownMenu: r, disabled: e = !1, ...a } = o, d = _(R, r), c = i(r);
|
|
47
|
-
return /* @__PURE__ */ t(H, { asChild: !0, ...c, children: /* @__PURE__ */ t(
|
|
48
|
-
B.button,
|
|
49
|
-
{
|
|
50
|
-
type: "button",
|
|
51
|
-
id: d.triggerId,
|
|
52
|
-
"aria-haspopup": "menu",
|
|
53
|
-
"aria-expanded": d.open,
|
|
54
|
-
"aria-controls": d.open ? d.contentId : void 0,
|
|
55
|
-
"data-state": d.open ? "open" : "closed",
|
|
56
|
-
"data-disabled": e ? "" : void 0,
|
|
57
|
-
disabled: e,
|
|
58
|
-
...a,
|
|
59
|
-
ref: K(n, d.triggerRef),
|
|
60
|
-
onPointerDown: m(o.onPointerDown, (p) => {
|
|
61
|
-
!e && p.button === 0 && p.ctrlKey === !1 && (d.onOpenToggle(), d.open || p.preventDefault());
|
|
62
|
-
}),
|
|
63
|
-
onKeyDown: m(o.onKeyDown, (p) => {
|
|
64
|
-
e || (["Enter", " "].includes(p.key) && d.onOpenToggle(), p.key === "ArrowDown" && d.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(p.key) && p.preventDefault());
|
|
65
|
-
})
|
|
66
|
-
}
|
|
67
|
-
) });
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
b.displayName = R;
|
|
71
|
-
var to = "DropdownMenuPortal", I = (o) => {
|
|
72
|
-
const { __scopeDropdownMenu: n, ...r } = o, e = i(n);
|
|
73
|
-
return /* @__PURE__ */ t($, { ...e, ...r });
|
|
74
|
-
};
|
|
75
|
-
I.displayName = to;
|
|
76
|
-
var S = "DropdownMenuContent", C = u.forwardRef(
|
|
77
|
-
(o, n) => {
|
|
78
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = _(S, r), d = i(r), c = u.useRef(!1);
|
|
79
|
-
return /* @__PURE__ */ t(
|
|
80
|
-
q,
|
|
81
|
-
{
|
|
82
|
-
id: a.contentId,
|
|
83
|
-
"aria-labelledby": a.triggerId,
|
|
84
|
-
...d,
|
|
85
|
-
...e,
|
|
86
|
-
ref: n,
|
|
87
|
-
onCloseAutoFocus: m(o.onCloseAutoFocus, (p) => {
|
|
88
|
-
var s;
|
|
89
|
-
c.current || (s = a.triggerRef.current) == null || s.focus(), c.current = !1, p.preventDefault();
|
|
90
|
-
}),
|
|
91
|
-
onInteractOutside: m(o.onInteractOutside, (p) => {
|
|
92
|
-
const s = p.detail.originalEvent, v = s.button === 0 && s.ctrlKey === !0, l = s.button === 2 || v;
|
|
93
|
-
(!a.modal || l) && (c.current = !0);
|
|
94
|
-
}),
|
|
95
|
-
style: {
|
|
96
|
-
...o.style,
|
|
97
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
98
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
99
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
100
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
101
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
C.displayName = S;
|
|
108
|
-
var po = "DropdownMenuGroup", N = u.forwardRef(
|
|
109
|
-
(o, n) => {
|
|
110
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
111
|
-
return /* @__PURE__ */ t(W, { ...a, ...e, ref: n });
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
N.displayName = po;
|
|
115
|
-
var uo = "DropdownMenuLabel", x = u.forwardRef(
|
|
116
|
-
(o, n) => {
|
|
117
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
118
|
-
return /* @__PURE__ */ t(Y, { ...a, ...e, ref: n });
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
x.displayName = uo;
|
|
122
|
-
var io = "DropdownMenuItem", A = u.forwardRef(
|
|
123
|
-
(o, n) => {
|
|
124
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
125
|
-
return /* @__PURE__ */ t(z, { ...a, ...e, ref: n });
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
A.displayName = io;
|
|
129
|
-
var so = "DropdownMenuCheckboxItem", P = u.forwardRef((o, n) => {
|
|
130
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
131
|
-
return /* @__PURE__ */ t(J, { ...a, ...e, ref: n });
|
|
132
|
-
});
|
|
133
|
-
P.displayName = so;
|
|
134
|
-
var co = "DropdownMenuRadioGroup", E = u.forwardRef((o, n) => {
|
|
135
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
136
|
-
return /* @__PURE__ */ t(X, { ...a, ...e, ref: n });
|
|
137
|
-
});
|
|
138
|
-
E.displayName = co;
|
|
139
|
-
var lo = "DropdownMenuRadioItem", O = u.forwardRef((o, n) => {
|
|
140
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
141
|
-
return /* @__PURE__ */ t(V, { ...a, ...e, ref: n });
|
|
142
|
-
});
|
|
143
|
-
O.displayName = lo;
|
|
144
|
-
var wo = "DropdownMenuItemIndicator", y = u.forwardRef((o, n) => {
|
|
145
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
146
|
-
return /* @__PURE__ */ t(Q, { ...a, ...e, ref: n });
|
|
147
|
-
});
|
|
148
|
-
y.displayName = wo;
|
|
149
|
-
var mo = "DropdownMenuSeparator", T = u.forwardRef((o, n) => {
|
|
150
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
151
|
-
return /* @__PURE__ */ t(Z, { ...a, ...e, ref: n });
|
|
152
|
-
});
|
|
153
|
-
T.displayName = mo;
|
|
154
|
-
var fo = "DropdownMenuArrow", vo = u.forwardRef(
|
|
155
|
-
(o, n) => {
|
|
156
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
157
|
-
return /* @__PURE__ */ t(ro, { ...a, ...e, ref: n });
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
vo.displayName = fo;
|
|
161
|
-
var Mo = (o) => {
|
|
162
|
-
const { __scopeDropdownMenu: n, children: r, open: e, onOpenChange: a, defaultOpen: d } = o, c = i(n), [p, s] = g({
|
|
163
|
-
prop: e,
|
|
164
|
-
defaultProp: d ?? !1,
|
|
165
|
-
onChange: a,
|
|
166
|
-
caller: "DropdownMenuSub"
|
|
167
|
-
});
|
|
168
|
-
return /* @__PURE__ */ t(j, { ...c, open: p, onOpenChange: s, children: r });
|
|
169
|
-
}, go = "DropdownMenuSubTrigger", G = u.forwardRef((o, n) => {
|
|
170
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
171
|
-
return /* @__PURE__ */ t(eo, { ...a, ...e, ref: n });
|
|
172
|
-
});
|
|
173
|
-
G.displayName = go;
|
|
174
|
-
var Do = "DropdownMenuSubContent", k = u.forwardRef((o, n) => {
|
|
175
|
-
const { __scopeDropdownMenu: r, ...e } = o, a = i(r);
|
|
176
|
-
return /* @__PURE__ */ t(
|
|
177
|
-
oo,
|
|
178
|
-
{
|
|
179
|
-
...a,
|
|
180
|
-
...e,
|
|
181
|
-
ref: n,
|
|
182
|
-
style: {
|
|
183
|
-
...o.style,
|
|
184
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
185
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
186
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
187
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
188
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
});
|
|
193
|
-
k.displayName = Do;
|
|
194
|
-
var xo = h, Ao = b, Po = I, Eo = C, Oo = N, yo = x, To = A, Go = P, ko = E, Lo = O, Ko = y, Uo = T, Bo = Mo, Fo = G, Ho = k;
|
|
1
|
+
import c from "./index106.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.460.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const r = c("Circle", [
|
|
9
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
|
|
10
|
+
]);
|
|
195
11
|
export {
|
|
196
|
-
|
|
197
|
-
Eo as Content,
|
|
198
|
-
h as DropdownMenu,
|
|
199
|
-
vo as DropdownMenuArrow,
|
|
200
|
-
P as DropdownMenuCheckboxItem,
|
|
201
|
-
C as DropdownMenuContent,
|
|
202
|
-
N as DropdownMenuGroup,
|
|
203
|
-
A as DropdownMenuItem,
|
|
204
|
-
y as DropdownMenuItemIndicator,
|
|
205
|
-
x as DropdownMenuLabel,
|
|
206
|
-
I as DropdownMenuPortal,
|
|
207
|
-
E as DropdownMenuRadioGroup,
|
|
208
|
-
O as DropdownMenuRadioItem,
|
|
209
|
-
T as DropdownMenuSeparator,
|
|
210
|
-
Mo as DropdownMenuSub,
|
|
211
|
-
k as DropdownMenuSubContent,
|
|
212
|
-
G as DropdownMenuSubTrigger,
|
|
213
|
-
b as DropdownMenuTrigger,
|
|
214
|
-
Oo as Group,
|
|
215
|
-
To as Item,
|
|
216
|
-
Ko as ItemIndicator,
|
|
217
|
-
yo as Label,
|
|
218
|
-
Po as Portal,
|
|
219
|
-
ko as RadioGroup,
|
|
220
|
-
Lo as RadioItem,
|
|
221
|
-
xo as Root,
|
|
222
|
-
Uo as Separator,
|
|
223
|
-
Bo as Sub,
|
|
224
|
-
Ho as SubContent,
|
|
225
|
-
Fo as SubTrigger,
|
|
226
|
-
Ao as Trigger
|
|
12
|
+
r as default
|
|
227
13
|
};
|
package/dist/index59.js
CHANGED
|
@@ -1,33 +1,62 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { composeRefs as S } from "./index77.js";
|
|
3
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
4
|
+
var E = Symbol.for("react.lazy"), p = o[" use ".trim().toString()];
|
|
5
|
+
function g(t) {
|
|
6
|
+
return typeof t == "object" && t !== null && "then" in t;
|
|
7
|
+
}
|
|
8
|
+
function d(t) {
|
|
9
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === E && "_payload" in t && g(t._payload);
|
|
10
|
+
}
|
|
11
|
+
// @__NO_SIDE_EFFECTS__
|
|
12
|
+
function C(t) {
|
|
13
|
+
const n = /* @__PURE__ */ R(t), i = o.forwardRef((e, r) => {
|
|
14
|
+
let { children: l, ...a } = e;
|
|
15
|
+
d(l) && typeof p == "function" && (l = p(l._payload));
|
|
16
|
+
const s = o.Children.toArray(l), f = s.find(b);
|
|
17
|
+
if (f) {
|
|
18
|
+
const c = f.props.children, m = s.map((u) => u === f ? o.Children.count(c) > 1 ? o.Children.only(null) : o.isValidElement(c) ? c.props.children : null : u);
|
|
19
|
+
return /* @__PURE__ */ y(n, { ...a, ref: r, children: o.isValidElement(c) ? o.cloneElement(c, void 0, m) : null });
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ y(n, { ...a, ref: r, children: l });
|
|
12
22
|
});
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
e.disabled || n(!o);
|
|
24
|
-
})
|
|
23
|
+
return i.displayName = `${t}.Slot`, i;
|
|
24
|
+
}
|
|
25
|
+
var V = /* @__PURE__ */ C("Slot");
|
|
26
|
+
// @__NO_SIDE_EFFECTS__
|
|
27
|
+
function R(t) {
|
|
28
|
+
const n = o.forwardRef((i, e) => {
|
|
29
|
+
let { children: r, ...l } = i;
|
|
30
|
+
if (d(r) && typeof p == "function" && (r = p(r._payload)), o.isValidElement(r)) {
|
|
31
|
+
const a = P(r), s = h(l, r.props);
|
|
32
|
+
return r.type !== o.Fragment && (s.ref = e ? S(e, a) : a), o.cloneElement(r, s);
|
|
25
33
|
}
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
|
|
34
|
+
return o.Children.count(r) > 1 ? o.Children.only(null) : null;
|
|
35
|
+
});
|
|
36
|
+
return n.displayName = `${t}.SlotClone`, n;
|
|
37
|
+
}
|
|
38
|
+
var _ = Symbol("radix.slottable");
|
|
39
|
+
function b(t) {
|
|
40
|
+
return o.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === _;
|
|
41
|
+
}
|
|
42
|
+
function h(t, n) {
|
|
43
|
+
const i = { ...n };
|
|
44
|
+
for (const e in n) {
|
|
45
|
+
const r = t[e], l = n[e];
|
|
46
|
+
/^on[A-Z]/.test(e) ? r && l ? i[e] = (...s) => {
|
|
47
|
+
const f = l(...s);
|
|
48
|
+
return r(...s), f;
|
|
49
|
+
} : r && (i[e] = r) : e === "style" ? i[e] = { ...r, ...l } : e === "className" && (i[e] = [r, l].filter(Boolean).join(" "));
|
|
50
|
+
}
|
|
51
|
+
return { ...t, ...i };
|
|
52
|
+
}
|
|
53
|
+
function P(t) {
|
|
54
|
+
var e, r;
|
|
55
|
+
let n = (e = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : e.get, i = n && "isReactWarning" in n && n.isReactWarning;
|
|
56
|
+
return i ? t.ref : (n = (r = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : r.get, i = n && "isReactWarning" in n && n.isReactWarning, i ? t.props.ref : t.props.ref || t.ref);
|
|
57
|
+
}
|
|
30
58
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
59
|
+
V as Root,
|
|
60
|
+
V as Slot,
|
|
61
|
+
C as createSlot
|
|
33
62
|
};
|
package/dist/index6.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { Root as N, Portal as y, Trigger as x, Overlay as i, Content as r, Title as d, Description as n, Action as m, Cancel as c } from "./
|
|
3
|
+
import { Root as N, Portal as y, Trigger as x, Overlay as i, Content as r, Title as d, Description as n, Action as m, Cancel as c } from "./index45.js";
|
|
4
4
|
import { cn as s } from "./index2.js";
|
|
5
5
|
import { buttonVariants as f } from "./index9.js";
|
|
6
6
|
const P = N, k = x, D = y, p = l.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o(
|