@drjoshcsimmons/scl 0.1.0 → 0.1.2
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/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +1 -1
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +31 -0
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox/index.d.ts +3 -0
- package/dist/components/ui/combobox/index.d.ts.map +1 -0
- package/dist/components/ui/command/command.d.ts +85 -0
- package/dist/components/ui/command/command.d.ts.map +1 -0
- package/dist/components/ui/command/index.d.ts +2 -0
- package/dist/components/ui/command/index.d.ts.map +1 -0
- package/dist/components/ui/dithered-image/dithered-image.d.ts +6 -2
- package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -1
- package/dist/components/ui/dithered-image/index.d.ts +1 -1
- package/dist/components/ui/dithered-image/index.d.ts.map +1 -1
- package/dist/components/ui/form/form.d.ts +24 -0
- package/dist/components/ui/form/form.d.ts.map +1 -0
- package/dist/components/ui/form/index.d.ts +2 -0
- package/dist/components/ui/form/index.d.ts.map +1 -0
- package/dist/components/ui/progress/progress.d.ts +0 -6
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +4 -1
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/statusline/statusline.d.ts.map +1 -1
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +0 -5
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +166 -143
- package/dist/index10.js +30 -30
- package/dist/index100.js +218 -29
- package/dist/index101.js +646 -11
- package/dist/index102.js +173 -127
- package/dist/index103.js +4 -50
- package/dist/index104.js +30 -9
- package/dist/index105.js +6 -4
- package/dist/index106.js +11 -180
- package/dist/index107.js +19 -648
- package/dist/index108.js +9 -107
- package/dist/index109.js +38 -91
- package/dist/index11.js +13 -13
- package/dist/index110.js +18 -67
- package/dist/index111.js +201 -154
- package/dist/index112.js +20 -395
- package/dist/index113.js +395 -1675
- package/dist/index114.js +2 -278
- package/dist/index115.js +49 -128
- package/dist/index116.js +65 -32
- package/dist/index117.js +19 -1605
- package/dist/index118.js +28 -297
- package/dist/index119.js +5 -635
- package/dist/index12.js +1 -1
- package/dist/index120.js +2 -144
- package/dist/index121.js +2 -21
- package/dist/index122.js +5 -9
- package/dist/index123.js +3 -38
- package/dist/index124.js +24 -18
- package/dist/index125.js +113 -6
- package/dist/index126.js +15 -11
- package/dist/index127.js +513 -194
- package/dist/index128.js +128 -22
- package/dist/index129.js +114 -380
- package/dist/index13.js +132 -93
- package/dist/index130.js +59 -1300
- package/dist/index131.js +63 -612
- package/dist/index132.js +9 -2
- package/dist/index133.js +13 -52
- package/dist/index134.js +64 -63
- package/dist/index135.js +3 -24
- package/dist/index136.js +23 -29
- package/dist/index137.js +23 -5
- package/dist/index138.js +13 -2
- package/dist/index139.js +28 -2
- package/dist/index14.js +106 -220
- package/dist/index140.js +5 -5
- package/dist/index15.js +79 -125
- package/dist/index16.js +280 -17
- package/dist/index17.js +139 -12
- package/dist/index18.js +92 -22
- package/dist/index19.js +18 -55
- package/dist/index2.js +2 -2
- package/dist/index20.js +14 -26
- package/dist/index21.js +19 -33
- package/dist/index22.js +38 -121
- package/dist/index23.js +29 -22
- package/dist/index24.js +31 -64
- package/dist/index25.js +121 -15
- package/dist/index26.js +19 -29
- package/dist/index27.js +68 -77
- package/dist/index28.js +20 -25
- package/dist/index29.js +32 -88
- package/dist/index3.js +11 -9
- package/dist/index30.js +138 -38
- package/dist/index31.js +20 -227
- package/dist/index32.js +88 -18
- package/dist/index33.js +37 -28
- package/dist/index34.js +86 -22
- package/dist/index35.js +17 -102
- package/dist/index36.js +34 -65
- package/dist/index37.js +23 -49
- package/dist/index38.js +38 -99
- package/dist/index39.js +65 -10
- package/dist/index4.js +6 -6
- package/dist/index40.js +49 -15
- package/dist/index41.js +93 -2256
- package/dist/index42.js +10 -32
- package/dist/index43.js +15 -18
- package/dist/index44.js +2251 -225
- package/dist/index45.js +237 -11
- package/dist/index46.js +11 -73
- package/dist/index47.js +33 -249
- package/dist/index48.js +118 -9
- package/dist/index49.js +63 -326
- package/dist/index5.js +23 -23
- package/dist/index50.js +307 -57
- package/dist/index51.js +12 -241
- package/dist/index52.js +222 -822
- package/dist/index53.js +6 -3
- package/dist/index54.js +56 -114
- package/dist/index55.js +248 -219
- package/dist/index56.js +249 -11
- package/dist/index57.js +3 -5
- package/dist/index58.js +110 -221
- package/dist/index59.js +12 -260
- package/dist/index6.js +12 -12
- package/dist/index60.js +18 -12
- package/dist/index61.js +221 -18
- package/dist/index62.js +11 -530
- package/dist/index63.js +11 -6155
- package/dist/index64.js +234 -2626
- package/dist/index65.js +230 -292
- package/dist/index66.js +504 -646
- package/dist/index67.js +155 -824
- package/dist/index68.js +128 -23
- package/dist/index69.js +319 -311
- package/dist/index7.js +22 -22
- package/dist/index70.js +72 -4889
- package/dist/index71.js +408 -802
- package/dist/index72.js +18 -1254
- package/dist/index73.js +844 -518
- package/dist/index74.js +9 -125
- package/dist/index75.js +31 -161
- package/dist/index76.js +7 -31
- package/dist/index77.js +62 -429
- package/dist/index78.js +50 -128
- package/dist/index79.js +4 -81
- package/dist/index8.js +17 -18
- package/dist/index80.js +23 -64
- package/dist/index81.js +33 -45
- package/dist/index82.js +63 -21
- package/dist/index83.js +10 -6
- package/dist/index84.js +52 -49
- package/dist/index85.js +10 -33
- package/dist/index86.js +30 -11
- package/dist/index87.js +12 -7
- package/dist/index88.js +46 -30
- package/dist/index89.js +7 -54
- package/dist/index9.js +23 -31
- package/dist/index90.js +14 -10
- package/dist/index91.js +125 -4
- package/dist/index92.js +131 -9
- package/dist/index93.js +14 -6
- package/dist/index94.js +14 -24
- package/dist/index95.js +9 -69
- package/dist/index96.js +47 -122
- package/dist/index97.js +51 -216
- package/dist/index98.js +6 -14
- package/dist/index99.js +24 -53
- package/dist/tokens/colors.d.ts +26 -86
- package/dist/tokens/colors.d.ts.map +1 -1
- package/dist/tokens/index.d.ts +12 -84
- package/dist/tokens/index.d.ts.map +1 -1
- package/package.json +28 -23
- package/dist/index141.js +0 -5
- package/dist/index142.js +0 -26
- package/dist/index143.js +0 -115
- package/dist/index144.js +0 -18
- package/dist/index145.js +0 -527
- package/dist/index146.js +0 -130
- package/dist/index147.js +0 -136
- package/dist/index148.js +0 -67
- package/dist/index149.js +0 -71
- package/dist/index150.js +0 -11
- package/dist/index151.js +0 -16
- package/dist/index152.js +0 -68
- package/dist/index153.js +0 -6
- package/dist/index154.js +0 -25
- package/dist/index155.js +0 -25
- package/dist/index156.js +0 -15
- package/dist/index157.js +0 -30
- package/dist/index158.js +0 -7
package/dist/index14.js
CHANGED
|
@@ -1,226 +1,112 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { Command as r } from "./index50.js";
|
|
4
|
+
import { cn as d } from "./index2.js";
|
|
5
|
+
import { Dialog as s, DialogContent as n } from "./index15.js";
|
|
6
|
+
import l from "./index51.js";
|
|
7
|
+
const p = o.forwardRef(({ className: e, ...a }, m) => /* @__PURE__ */ t(
|
|
8
|
+
r,
|
|
9
|
+
{
|
|
10
|
+
ref: m,
|
|
11
|
+
className: d(
|
|
12
|
+
"flex h-full w-full flex-col overflow-hidden bg-black text-primary",
|
|
13
|
+
e
|
|
14
|
+
),
|
|
15
|
+
...a
|
|
12
16
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
vec3 finalColor = dithered * u_color;
|
|
37
|
-
gl_FragColor = vec4(finalColor, texColor.a);
|
|
17
|
+
));
|
|
18
|
+
p.displayName = r.displayName;
|
|
19
|
+
const v = ({ children: e, ...a }) => /* @__PURE__ */ t(s, { ...a, children: /* @__PURE__ */ t(n, { className: "overflow-hidden p-0", children: /* @__PURE__ */ t(p, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), c = o.forwardRef(({ className: e, ...a }, m) => /* @__PURE__ */ i("div", { className: "flex items-center border-b-2 border-primary bg-black px-3", "cmdk-input-wrapper": "", children: [
|
|
20
|
+
/* @__PURE__ */ t(l, { className: "mr-2 h-4 w-4 shrink-0 text-primary opacity-50" }),
|
|
21
|
+
/* @__PURE__ */ t(
|
|
22
|
+
r.Input,
|
|
23
|
+
{
|
|
24
|
+
ref: m,
|
|
25
|
+
className: d(
|
|
26
|
+
"flex h-10 w-full bg-transparent py-3 text-sm text-primary outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
27
|
+
e
|
|
28
|
+
),
|
|
29
|
+
...a
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
] }));
|
|
33
|
+
c.displayName = r.Input.displayName;
|
|
34
|
+
const u = o.forwardRef(({ className: e, ...a }, m) => /* @__PURE__ */ t(
|
|
35
|
+
r.List,
|
|
36
|
+
{
|
|
37
|
+
ref: m,
|
|
38
|
+
className: d("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
39
|
+
...a
|
|
38
40
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
31,
|
|
98
|
-
55,
|
|
99
|
-
23,
|
|
100
|
-
61,
|
|
101
|
-
29,
|
|
102
|
-
53,
|
|
103
|
-
21
|
|
104
|
-
];
|
|
105
|
-
function D(t, T, f) {
|
|
106
|
-
const r = t.createShader(T);
|
|
107
|
-
return r ? (t.shaderSource(r, f), t.compileShader(r), t.getShaderParameter(r, t.COMPILE_STATUS) ? r : (console.error("Shader compile error:", t.getShaderInfoLog(r)), t.deleteShader(r), null)) : null;
|
|
108
|
-
}
|
|
109
|
-
function y(t, T, f) {
|
|
110
|
-
const r = t.createProgram();
|
|
111
|
-
return r ? (t.attachShader(r, T), t.attachShader(r, f), t.linkProgram(r), t.getProgramParameter(r, t.LINK_STATUS) ? r : (console.error("Program link error:", t.getProgramInfoLog(r)), t.deleteProgram(r), null)) : null;
|
|
112
|
-
}
|
|
113
|
-
const N = c.forwardRef(
|
|
114
|
-
({
|
|
115
|
-
className: t,
|
|
116
|
-
src: T,
|
|
117
|
-
alt: f,
|
|
118
|
-
width: r,
|
|
119
|
-
height: E,
|
|
120
|
-
ditherSize: m = 1,
|
|
121
|
-
color: l = [0, 255, 0],
|
|
122
|
-
...p
|
|
123
|
-
}, v) => {
|
|
124
|
-
const R = c.useRef(null), d = c.useRef(null), A = c.useRef(null), x = c.useRef(null);
|
|
125
|
-
return c.useImperativeHandle(v, () => R.current), c.useEffect(() => {
|
|
126
|
-
const s = R.current;
|
|
127
|
-
if (!s) return;
|
|
128
|
-
const e = s.getContext("webgl", { preserveDrawingBuffer: !0 });
|
|
129
|
-
if (!e) {
|
|
130
|
-
console.error("WebGL not supported");
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
d.current = e;
|
|
134
|
-
const i = D(e, e.VERTEX_SHADER, I), o = D(
|
|
135
|
-
e,
|
|
136
|
-
e.FRAGMENT_SHADER,
|
|
137
|
-
h
|
|
138
|
-
);
|
|
139
|
-
if (!i || !o) {
|
|
140
|
-
console.error("Failed to create shaders");
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
const a = y(e, i, o);
|
|
144
|
-
if (!a) {
|
|
145
|
-
console.error("Failed to create program");
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
e.useProgram(a), A.current = a;
|
|
149
|
-
const n = e.createTexture();
|
|
150
|
-
e.activeTexture(e.TEXTURE1), e.bindTexture(e.TEXTURE_2D, n);
|
|
151
|
-
const u = new Uint8Array(F.map((L) => L / 64 * 255));
|
|
152
|
-
e.texImage2D(
|
|
153
|
-
e.TEXTURE_2D,
|
|
154
|
-
0,
|
|
155
|
-
e.LUMINANCE,
|
|
156
|
-
8,
|
|
157
|
-
8,
|
|
158
|
-
0,
|
|
159
|
-
e.LUMINANCE,
|
|
160
|
-
e.UNSIGNED_BYTE,
|
|
161
|
-
u
|
|
162
|
-
), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, e.REPEAT), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, e.REPEAT), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, e.NEAREST), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, e.NEAREST), x.current = n;
|
|
163
|
-
const _ = new Float32Array([
|
|
164
|
-
-1,
|
|
165
|
-
-1,
|
|
166
|
-
1,
|
|
167
|
-
-1,
|
|
168
|
-
-1,
|
|
169
|
-
1,
|
|
170
|
-
-1,
|
|
171
|
-
1,
|
|
172
|
-
1,
|
|
173
|
-
-1,
|
|
174
|
-
1,
|
|
175
|
-
1
|
|
176
|
-
]), P = new Float32Array([0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0]), S = e.createBuffer();
|
|
177
|
-
e.bindBuffer(e.ARRAY_BUFFER, S), e.bufferData(e.ARRAY_BUFFER, _, e.STATIC_DRAW);
|
|
178
|
-
const g = e.getAttribLocation(a, "a_position");
|
|
179
|
-
e.enableVertexAttribArray(g), e.vertexAttribPointer(g, 2, e.FLOAT, !1, 0, 0);
|
|
180
|
-
const b = e.createBuffer();
|
|
181
|
-
e.bindBuffer(e.ARRAY_BUFFER, b), e.bufferData(e.ARRAY_BUFFER, P, e.STATIC_DRAW);
|
|
182
|
-
const U = e.getAttribLocation(a, "a_texCoord");
|
|
183
|
-
return e.enableVertexAttribArray(U), e.vertexAttribPointer(U, 2, e.FLOAT, !1, 0, 0), e.uniform1i(e.getUniformLocation(a, "u_image"), 0), e.uniform1i(e.getUniformLocation(a, "u_bayerTex"), 1), () => {
|
|
184
|
-
e.deleteProgram(a), e.deleteShader(i), e.deleteShader(o), e.deleteTexture(n);
|
|
185
|
-
};
|
|
186
|
-
}, []), c.useEffect(() => {
|
|
187
|
-
const s = R.current, e = d.current, i = A.current;
|
|
188
|
-
if (!s || !e || !i) return;
|
|
189
|
-
const o = new Image();
|
|
190
|
-
o.crossOrigin = "anonymous", o.onload = () => {
|
|
191
|
-
const a = o.naturalWidth / o.naturalHeight;
|
|
192
|
-
let n, u;
|
|
193
|
-
r && E ? (n = r, u = E) : r ? (n = r, u = Math.round(r / a)) : E ? (u = E, n = Math.round(E * a)) : (n = o.naturalWidth, u = o.naturalHeight), s.width = n, s.height = u, e.viewport(0, 0, n, u), e.useProgram(i), e.activeTexture(e.TEXTURE1), e.bindTexture(e.TEXTURE_2D, x.current), e.activeTexture(e.TEXTURE0);
|
|
194
|
-
const _ = e.createTexture();
|
|
195
|
-
e.bindTexture(e.TEXTURE_2D, _), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, e.LINEAR), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, e.LINEAR), e.texImage2D(
|
|
196
|
-
e.TEXTURE_2D,
|
|
197
|
-
0,
|
|
198
|
-
e.RGBA,
|
|
199
|
-
e.RGBA,
|
|
200
|
-
e.UNSIGNED_BYTE,
|
|
201
|
-
o
|
|
202
|
-
), e.uniform2f(e.getUniformLocation(i, "u_resolution"), n, u), e.uniform1f(e.getUniformLocation(i, "u_ditherSize"), m), e.uniform3f(
|
|
203
|
-
e.getUniformLocation(i, "u_color"),
|
|
204
|
-
l[0] / 255,
|
|
205
|
-
l[1] / 255,
|
|
206
|
-
l[2] / 255
|
|
207
|
-
), e.drawArrays(e.TRIANGLES, 0, 6), e.deleteTexture(_);
|
|
208
|
-
}, o.onerror = () => {
|
|
209
|
-
console.error("Failed to load image:", T);
|
|
210
|
-
}, o.src = T;
|
|
211
|
-
}, [T, r, E, m, l]), /* @__PURE__ */ X(
|
|
212
|
-
"canvas",
|
|
213
|
-
{
|
|
214
|
-
ref: R,
|
|
215
|
-
className: C("", t),
|
|
216
|
-
"aria-label": f,
|
|
217
|
-
role: "img",
|
|
218
|
-
...p
|
|
219
|
-
}
|
|
220
|
-
);
|
|
41
|
+
));
|
|
42
|
+
u.displayName = r.List.displayName;
|
|
43
|
+
const f = o.forwardRef((e, a) => /* @__PURE__ */ t(
|
|
44
|
+
r.Empty,
|
|
45
|
+
{
|
|
46
|
+
ref: a,
|
|
47
|
+
className: "py-6 text-center text-sm text-muted-foreground",
|
|
48
|
+
...e
|
|
49
|
+
}
|
|
50
|
+
));
|
|
51
|
+
f.displayName = r.Empty.displayName;
|
|
52
|
+
const g = o.forwardRef(({ className: e, ...a }, m) => /* @__PURE__ */ t(
|
|
53
|
+
r.Group,
|
|
54
|
+
{
|
|
55
|
+
ref: m,
|
|
56
|
+
className: d(
|
|
57
|
+
"overflow-hidden p-1 text-primary [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
58
|
+
e
|
|
59
|
+
),
|
|
60
|
+
...a
|
|
61
|
+
}
|
|
62
|
+
));
|
|
63
|
+
g.displayName = r.Group.displayName;
|
|
64
|
+
const x = o.forwardRef(({ className: e, ...a }, m) => /* @__PURE__ */ t(
|
|
65
|
+
r.Separator,
|
|
66
|
+
{
|
|
67
|
+
ref: m,
|
|
68
|
+
className: d("-mx-1 h-px bg-primary", e),
|
|
69
|
+
...a
|
|
70
|
+
}
|
|
71
|
+
));
|
|
72
|
+
x.displayName = r.Separator.displayName;
|
|
73
|
+
const y = o.forwardRef(({ className: e, ...a }, m) => /* @__PURE__ */ t(
|
|
74
|
+
r.Item,
|
|
75
|
+
{
|
|
76
|
+
ref: m,
|
|
77
|
+
className: d(
|
|
78
|
+
"relative flex cursor-pointer select-none items-center px-2 py-1.5 text-sm text-primary outline-none",
|
|
79
|
+
"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground",
|
|
80
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
81
|
+
"aria-selected:bg-primary aria-selected:text-primary-foreground",
|
|
82
|
+
e
|
|
83
|
+
),
|
|
84
|
+
...a
|
|
85
|
+
}
|
|
86
|
+
));
|
|
87
|
+
y.displayName = r.Item.displayName;
|
|
88
|
+
const h = ({
|
|
89
|
+
className: e,
|
|
90
|
+
...a
|
|
91
|
+
}) => /* @__PURE__ */ t(
|
|
92
|
+
"span",
|
|
93
|
+
{
|
|
94
|
+
className: d(
|
|
95
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
96
|
+
e
|
|
97
|
+
),
|
|
98
|
+
...a
|
|
221
99
|
}
|
|
222
100
|
);
|
|
223
|
-
|
|
101
|
+
h.displayName = "CommandShortcut";
|
|
224
102
|
export {
|
|
225
|
-
|
|
103
|
+
p as Command,
|
|
104
|
+
v as CommandDialog,
|
|
105
|
+
f as CommandEmpty,
|
|
106
|
+
g as CommandGroup,
|
|
107
|
+
c as CommandInput,
|
|
108
|
+
y as CommandItem,
|
|
109
|
+
u as CommandList,
|
|
110
|
+
x as CommandSeparator,
|
|
111
|
+
h as CommandShortcut
|
|
226
112
|
};
|
package/dist/index140.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var e = function() {
|
|
2
|
+
if (typeof __webpack_nonce__ < "u")
|
|
3
|
+
return __webpack_nonce__;
|
|
4
|
+
};
|
|
2
5
|
export {
|
|
3
|
-
|
|
4
|
-
l as noScrollbarsClassName,
|
|
5
|
-
e as removedBarSizeVariable,
|
|
6
|
-
r as zeroRightClassName
|
|
6
|
+
e as getNonce
|
|
7
7
|
};
|
package/dist/index15.js
CHANGED
|
@@ -1,146 +1,100 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { Root as
|
|
4
|
-
import { cn as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const H = x, J = N, K = y, O = l, Q = v, U = R, I = r.forwardRef(({ className: e, inset: t, children: o, ...s }, d) => /* @__PURE__ */ i(
|
|
9
|
-
w,
|
|
10
|
-
{
|
|
11
|
-
ref: d,
|
|
12
|
-
className: n(
|
|
13
|
-
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-[#00ff00]/20 focus:bg-[#00ff00]/20 data-[state=open]:bg-[#00ff00]/20 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
14
|
-
t && "pl-8",
|
|
15
|
-
e
|
|
16
|
-
),
|
|
17
|
-
...s,
|
|
18
|
-
children: [
|
|
19
|
-
o,
|
|
20
|
-
/* @__PURE__ */ a(S, { className: "ml-auto" })
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
));
|
|
24
|
-
I.displayName = w.displayName;
|
|
25
|
-
const C = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
|
|
26
|
-
h,
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { Root as g, Portal as u, Trigger as x, Close as n, Overlay as d, Content as r, Title as c, Description as m } from "./index52.js";
|
|
4
|
+
import { cn as s } from "./index2.js";
|
|
5
|
+
import y from "./index53.js";
|
|
6
|
+
const T = g, j = x, N = u, F = n, f = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
|
|
7
|
+
d,
|
|
27
8
|
{
|
|
28
9
|
ref: o,
|
|
29
|
-
className:
|
|
30
|
-
"
|
|
31
|
-
|
|
10
|
+
className: s(
|
|
11
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
12
|
+
a
|
|
32
13
|
),
|
|
33
|
-
...
|
|
14
|
+
...e
|
|
34
15
|
}
|
|
35
16
|
));
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
17
|
+
f.displayName = d.displayName;
|
|
18
|
+
const D = i.forwardRef(({ className: a, children: e, ...o }, p) => /* @__PURE__ */ l(N, { children: [
|
|
19
|
+
/* @__PURE__ */ t(f, {}),
|
|
20
|
+
/* @__PURE__ */ l(
|
|
21
|
+
r,
|
|
22
|
+
{
|
|
23
|
+
ref: p,
|
|
24
|
+
className: s(
|
|
25
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border-2 bg-black p-6 duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
26
|
+
a
|
|
27
|
+
),
|
|
28
|
+
...o,
|
|
29
|
+
children: [
|
|
30
|
+
e,
|
|
31
|
+
/* @__PURE__ */ l(n, { className: "absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
32
|
+
/* @__PURE__ */ t(y, { className: "h-4 w-4" }),
|
|
33
|
+
/* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
|
|
34
|
+
] })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
)
|
|
38
|
+
] }));
|
|
39
|
+
D.displayName = r.displayName;
|
|
40
|
+
const b = ({
|
|
41
|
+
className: a,
|
|
42
|
+
...e
|
|
43
|
+
}) => /* @__PURE__ */ t(
|
|
44
|
+
"div",
|
|
39
45
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"z-[60] min-w-[8rem] overflow-hidden border border-[#00ff00] bg-black p-1 text-[#00ff00]",
|
|
44
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
45
|
-
e
|
|
46
|
+
className: s(
|
|
47
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
48
|
+
a
|
|
46
49
|
),
|
|
47
|
-
...
|
|
50
|
+
...e
|
|
48
51
|
}
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-[#00ff00]/20 focus:bg-[#00ff00]/20 focus:text-[#00ff00] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
57
|
-
t && "pl-8",
|
|
58
|
-
e
|
|
59
|
-
),
|
|
60
|
-
...o
|
|
61
|
-
}
|
|
62
|
-
));
|
|
63
|
-
z.displayName = f.displayName;
|
|
64
|
-
const G = r.forwardRef(({ className: e, children: t, checked: o, ...s }, d) => /* @__PURE__ */ i(
|
|
65
|
-
p,
|
|
66
|
-
{
|
|
67
|
-
ref: d,
|
|
68
|
-
className: n(
|
|
69
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors hover:bg-[#00ff00]/20 focus:bg-[#00ff00]/20 focus:text-[#00ff00] data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
70
|
-
e
|
|
71
|
-
),
|
|
72
|
-
checked: o,
|
|
73
|
-
...s,
|
|
74
|
-
children: [
|
|
75
|
-
/* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(c, { children: /* @__PURE__ */ a(D, { className: "h-4 w-4" }) }) }),
|
|
76
|
-
t
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
));
|
|
80
|
-
G.displayName = p.displayName;
|
|
81
|
-
const T = r.forwardRef(({ className: e, children: t, ...o }, s) => /* @__PURE__ */ i(
|
|
82
|
-
u,
|
|
52
|
+
);
|
|
53
|
+
b.displayName = "DialogHeader";
|
|
54
|
+
const h = ({
|
|
55
|
+
className: a,
|
|
56
|
+
...e
|
|
57
|
+
}) => /* @__PURE__ */ t(
|
|
58
|
+
"div",
|
|
83
59
|
{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
e
|
|
60
|
+
className: s(
|
|
61
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
62
|
+
a
|
|
88
63
|
),
|
|
89
|
-
...
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(c, { children: /* @__PURE__ */ a(M, { className: "h-4 w-4 fill-current" }) }) }),
|
|
92
|
-
t
|
|
93
|
-
]
|
|
64
|
+
...e
|
|
94
65
|
}
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
|
|
66
|
+
);
|
|
67
|
+
h.displayName = "DialogFooter";
|
|
68
|
+
const w = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
|
|
69
|
+
c,
|
|
99
70
|
{
|
|
100
|
-
ref:
|
|
101
|
-
className:
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
e
|
|
71
|
+
ref: o,
|
|
72
|
+
className: s(
|
|
73
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
74
|
+
a
|
|
105
75
|
),
|
|
106
|
-
...
|
|
76
|
+
...e
|
|
107
77
|
}
|
|
108
78
|
));
|
|
109
|
-
|
|
110
|
-
const
|
|
111
|
-
|
|
79
|
+
w.displayName = c.displayName;
|
|
80
|
+
const v = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
|
|
81
|
+
m,
|
|
112
82
|
{
|
|
113
83
|
ref: o,
|
|
114
|
-
className:
|
|
115
|
-
...
|
|
84
|
+
className: s("text-sm text-muted-foreground", a),
|
|
85
|
+
...e
|
|
116
86
|
}
|
|
117
87
|
));
|
|
118
|
-
|
|
119
|
-
const P = ({
|
|
120
|
-
className: e,
|
|
121
|
-
...t
|
|
122
|
-
}) => /* @__PURE__ */ a(
|
|
123
|
-
"span",
|
|
124
|
-
{
|
|
125
|
-
className: n("ml-auto text-xs tracking-widest text-[#00ff00] border border-[#00ff00] px-1", e),
|
|
126
|
-
...t
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
P.displayName = "DropdownMenuShortcut";
|
|
88
|
+
v.displayName = m.displayName;
|
|
130
89
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
P as DropdownMenuShortcut,
|
|
142
|
-
Q as DropdownMenuSub,
|
|
143
|
-
C as DropdownMenuSubContent,
|
|
144
|
-
I as DropdownMenuSubTrigger,
|
|
145
|
-
J as DropdownMenuTrigger
|
|
90
|
+
T as Dialog,
|
|
91
|
+
F as DialogClose,
|
|
92
|
+
D as DialogContent,
|
|
93
|
+
v as DialogDescription,
|
|
94
|
+
h as DialogFooter,
|
|
95
|
+
b as DialogHeader,
|
|
96
|
+
f as DialogOverlay,
|
|
97
|
+
N as DialogPortal,
|
|
98
|
+
w as DialogTitle,
|
|
99
|
+
j as DialogTrigger
|
|
146
100
|
};
|