@drjoshcsimmons/scl 0.1.6 → 0.1.8
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 +30 -4
- package/dist/index101.js +11 -13
- package/dist/index102.js +9 -30
- package/dist/index103.js +51 -177
- package/dist/index104.js +30 -650
- package/dist/index105.js +47 -11
- package/dist/index106.js +12 -203
- package/dist/index107.js +47 -21
- package/dist/index108.js +29 -399
- package/dist/index109.js +30 -6
- package/dist/index11.js +2 -2
- package/dist/index110.js +648 -19
- package/dist/index111.js +30 -9
- package/dist/index112.js +9 -38
- package/dist/index113.js +48 -18
- package/dist/index114.js +45 -22
- package/dist/index115.js +6 -29
- package/dist/index116.js +12 -5
- package/dist/index117.js +206 -2
- package/dist/index118.js +21 -52
- package/dist/index119.js +394 -59
- package/dist/index12.js +1 -1
- package/dist/index120.js +21 -2
- package/dist/index121.js +9 -2
- package/dist/index122.js +38 -5
- package/dist/index123.js +18 -3
- package/dist/index124.js +45 -21
- package/dist/index125.js +2 -113
- package/dist/index126.js +52 -15
- package/dist/index127.js +58 -518
- package/dist/index128.js +23 -126
- package/dist/index129.js +28 -133
- package/dist/index13.js +2 -2
- package/dist/index130.js +5 -65
- package/dist/index131.js +2 -69
- package/dist/index132.js +2 -9
- package/dist/index133.js +5 -14
- package/dist/index134.js +3 -66
- package/dist/index135.js +23 -3
- package/dist/index136.js +110 -20
- package/dist/index137.js +15 -22
- package/dist/index138.js +522 -10
- package/dist/index139.js +123 -23
- package/dist/index14.js +2 -2
- package/dist/index140.js +134 -5
- package/dist/index141.js +67 -0
- package/dist/index142.js +71 -0
- package/dist/index143.js +11 -0
- package/dist/index144.js +16 -0
- package/dist/index145.js +68 -0
- package/dist/index146.js +6 -0
- package/dist/index147.js +25 -0
- package/dist/index148.js +25 -0
- package/dist/index149.js +15 -0
- package/dist/index15.js +2 -2
- package/dist/index150.js +30 -0
- package/dist/index151.js +7 -0
- 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 +237 -33
- package/dist/index46.js +11 -241
- package/dist/index47.js +508 -227
- package/dist/index48.js +241 -9
- package/dist/index49.js +33 -12
- package/dist/index5.js +1 -1
- package/dist/index50.js +214 -238
- package/dist/index51.js +4 -5
- package/dist/index52.js +5 -5
- package/dist/index53.js +112 -219
- package/dist/index54.js +125 -11
- package/dist/index55.js +54 -524
- package/dist/index56.js +250 -121
- package/dist/index57.js +71 -299
- package/dist/index58.js +260 -12
- package/dist/index59.js +12 -435
- package/dist/index6.js +1 -1
- package/dist/index60.js +856 -56
- package/dist/index61.js +9 -254
- package/dist/index62.js +9 -130
- package/dist/index63.js +299 -71
- package/dist/index64.js +12 -22
- package/dist/index65.js +112 -25
- package/dist/index66.js +223 -16
- package/dist/index67.js +11 -236
- package/dist/index68.js +249 -11
- package/dist/index69.js +16 -159
- package/dist/index70.js +18 -332
- package/dist/index71.js +148 -212
- package/dist/index72.js +336 -11
- package/dist/index73.js +390 -815
- package/dist/index74.js +31 -9
- package/dist/index75.js +12 -118
- package/dist/index76.js +66 -5
- package/dist/index77.js +44 -25
- package/dist/index78.js +23 -64
- package/dist/index79.js +5 -123
- package/dist/index8.js +1 -1
- package/dist/index80.js +50 -13
- package/dist/index81.js +32 -133
- package/dist/index82.js +1 -1
- package/dist/index83.js +7 -218
- package/dist/index84.js +69 -14
- package/dist/index85.js +10 -68
- package/dist/index86.js +4 -34
- package/dist/index87.js +3 -53
- package/dist/index88.js +177 -48
- package/dist/index89.js +25 -50
- package/dist/index9.js +2 -2
- package/dist/index90.js +6 -9
- package/dist/index91.js +124 -5
- package/dist/index92.js +14 -24
- package/dist/index93.js +130 -50
- package/dist/index94.js +218 -10
- package/dist/index95.js +14 -4
- package/dist/index96.js +47 -29
- package/dist/index97.js +50 -13
- package/dist/index98.js +9 -46
- package/dist/index99.js +54 -7
- package/package.json +1 -1
package/dist/index71.js
CHANGED
|
@@ -1,227 +1,163 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { composeEventHandlers as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Primitive as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
),
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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,
|
|
1
|
+
import * as v from "react";
|
|
2
|
+
import { composeEventHandlers as g } from "./index79.js";
|
|
3
|
+
import { createContextScope as x } from "./index76.js";
|
|
4
|
+
import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index88.js";
|
|
5
|
+
import { Presence as w } from "./index84.js";
|
|
6
|
+
import { Primitive as b } from "./index81.js";
|
|
7
|
+
import { useDirection as D } from "./index83.js";
|
|
8
|
+
import { useControllableState as V } from "./index80.js";
|
|
9
|
+
import { useId as G } from "./index82.js";
|
|
10
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
11
|
+
var p = "Tabs", [L] = x(p, [
|
|
12
|
+
C
|
|
13
|
+
]), h = C(), [$, T] = L(p), I = v.forwardRef(
|
|
14
|
+
(e, r) => {
|
|
15
|
+
const {
|
|
16
|
+
__scopeTabs: s,
|
|
17
|
+
value: t,
|
|
18
|
+
onValueChange: n,
|
|
19
|
+
defaultValue: c,
|
|
20
|
+
orientation: o = "horizontal",
|
|
21
|
+
dir: d,
|
|
22
|
+
activationMode: f = "automatic",
|
|
23
|
+
...m
|
|
24
|
+
} = e, i = D(d), [a, u] = V({
|
|
25
|
+
prop: t,
|
|
26
|
+
onChange: n,
|
|
27
|
+
defaultProp: c ?? "",
|
|
28
|
+
caller: p
|
|
29
|
+
});
|
|
30
|
+
return /* @__PURE__ */ l(
|
|
31
|
+
$,
|
|
49
32
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
33
|
+
scope: s,
|
|
34
|
+
baseId: G(),
|
|
35
|
+
value: a,
|
|
36
|
+
onValueChange: u,
|
|
37
|
+
orientation: o,
|
|
38
|
+
dir: i,
|
|
39
|
+
activationMode: f,
|
|
40
|
+
children: /* @__PURE__ */ l(
|
|
41
|
+
b.div,
|
|
42
|
+
{
|
|
43
|
+
dir: i,
|
|
44
|
+
"data-orientation": o,
|
|
45
|
+
...m,
|
|
46
|
+
ref: r
|
|
47
|
+
}
|
|
48
|
+
)
|
|
66
49
|
}
|
|
67
|
-
)
|
|
50
|
+
);
|
|
68
51
|
}
|
|
69
52
|
);
|
|
70
|
-
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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,
|
|
53
|
+
I.displayName = p;
|
|
54
|
+
var R = "TabsList", _ = v.forwardRef(
|
|
55
|
+
(e, r) => {
|
|
56
|
+
const { __scopeTabs: s, loop: t = !0, ...n } = e, c = T(R, s), o = h(s);
|
|
57
|
+
return /* @__PURE__ */ l(
|
|
58
|
+
E,
|
|
81
59
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
}
|
|
60
|
+
asChild: !0,
|
|
61
|
+
...o,
|
|
62
|
+
orientation: c.orientation,
|
|
63
|
+
dir: c.dir,
|
|
64
|
+
loop: t,
|
|
65
|
+
children: /* @__PURE__ */ l(
|
|
66
|
+
b.div,
|
|
67
|
+
{
|
|
68
|
+
role: "tablist",
|
|
69
|
+
"aria-orientation": c.orientation,
|
|
70
|
+
...n,
|
|
71
|
+
ref: r
|
|
72
|
+
}
|
|
73
|
+
)
|
|
103
74
|
}
|
|
104
75
|
);
|
|
105
76
|
}
|
|
106
77
|
);
|
|
107
|
-
|
|
108
|
-
var
|
|
109
|
-
(
|
|
110
|
-
const {
|
|
111
|
-
return /* @__PURE__ */
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
78
|
+
_.displayName = R;
|
|
79
|
+
var y = "TabsTrigger", A = v.forwardRef(
|
|
80
|
+
(e, r) => {
|
|
81
|
+
const { __scopeTabs: s, value: t, disabled: n = !1, ...c } = e, o = T(y, s), d = h(s), f = P(o.baseId, t), m = S(o.baseId, t), i = t === o.value;
|
|
82
|
+
return /* @__PURE__ */ l(
|
|
83
|
+
F,
|
|
84
|
+
{
|
|
85
|
+
asChild: !0,
|
|
86
|
+
...d,
|
|
87
|
+
focusable: !n,
|
|
88
|
+
active: i,
|
|
89
|
+
children: /* @__PURE__ */ l(
|
|
90
|
+
b.button,
|
|
91
|
+
{
|
|
92
|
+
type: "button",
|
|
93
|
+
role: "tab",
|
|
94
|
+
"aria-selected": i,
|
|
95
|
+
"aria-controls": m,
|
|
96
|
+
"data-state": i ? "active" : "inactive",
|
|
97
|
+
"data-disabled": n ? "" : void 0,
|
|
98
|
+
disabled: n,
|
|
99
|
+
id: f,
|
|
100
|
+
...c,
|
|
101
|
+
ref: r,
|
|
102
|
+
onMouseDown: g(e.onMouseDown, (a) => {
|
|
103
|
+
!n && a.button === 0 && a.ctrlKey === !1 ? o.onValueChange(t) : a.preventDefault();
|
|
104
|
+
}),
|
|
105
|
+
onKeyDown: g(e.onKeyDown, (a) => {
|
|
106
|
+
[" ", "Enter"].includes(a.key) && o.onValueChange(t);
|
|
107
|
+
}),
|
|
108
|
+
onFocus: g(e.onFocus, () => {
|
|
109
|
+
const a = o.activationMode !== "manual";
|
|
110
|
+
!i && !n && a && o.onValueChange(t);
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
);
|
|
126
116
|
}
|
|
127
117
|
);
|
|
128
|
-
A.displayName =
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
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 });
|
|
118
|
+
A.displayName = y;
|
|
119
|
+
var M = "TabsContent", N = v.forwardRef(
|
|
120
|
+
(e, r) => {
|
|
121
|
+
const { __scopeTabs: s, value: t, forceMount: n, children: c, ...o } = e, d = T(M, s), f = P(d.baseId, t), m = S(d.baseId, t), i = t === d.value, a = v.useRef(i);
|
|
122
|
+
return v.useEffect(() => {
|
|
123
|
+
const u = requestAnimationFrame(() => a.current = !1);
|
|
124
|
+
return () => cancelAnimationFrame(u);
|
|
125
|
+
}, []), /* @__PURE__ */ l(w, { present: n || i, children: ({ present: u }) => /* @__PURE__ */ l(
|
|
126
|
+
b.div,
|
|
127
|
+
{
|
|
128
|
+
"data-state": i ? "active" : "inactive",
|
|
129
|
+
"data-orientation": d.orientation,
|
|
130
|
+
role: "tabpanel",
|
|
131
|
+
"aria-labelledby": f,
|
|
132
|
+
hidden: !u,
|
|
133
|
+
id: m,
|
|
134
|
+
tabIndex: 0,
|
|
135
|
+
...o,
|
|
136
|
+
ref: r,
|
|
137
|
+
style: {
|
|
138
|
+
...e.style,
|
|
139
|
+
animationDuration: a.current ? "0s" : void 0
|
|
140
|
+
},
|
|
141
|
+
children: u && c
|
|
142
|
+
}
|
|
143
|
+
) });
|
|
158
144
|
}
|
|
159
145
|
);
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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;
|
|
146
|
+
N.displayName = M;
|
|
147
|
+
function P(e, r) {
|
|
148
|
+
return `${e}-trigger-${r}`;
|
|
149
|
+
}
|
|
150
|
+
function S(e, r) {
|
|
151
|
+
return `${e}-content-${r}`;
|
|
152
|
+
}
|
|
153
|
+
var Q = I, U = _, W = A, X = N;
|
|
195
154
|
export {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
|
155
|
+
X as Content,
|
|
156
|
+
U as List,
|
|
157
|
+
Q as Root,
|
|
158
|
+
I as Tabs,
|
|
159
|
+
N as TabsContent,
|
|
160
|
+
_ as TabsList,
|
|
161
|
+
A as TabsTrigger,
|
|
162
|
+
W as Trigger
|
|
227
163
|
};
|