@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.
Files changed (195) hide show
  1. package/dist/components/ui/alert/alert.d.ts +1 -1
  2. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  3. package/dist/components/ui/badge/badge.d.ts +1 -1
  4. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  5. package/dist/components/ui/button/button.d.ts +1 -1
  6. package/dist/components/ui/button/button.d.ts.map +1 -1
  7. package/dist/components/ui/combobox/combobox.d.ts +31 -0
  8. package/dist/components/ui/combobox/combobox.d.ts.map +1 -0
  9. package/dist/components/ui/combobox/index.d.ts +3 -0
  10. package/dist/components/ui/combobox/index.d.ts.map +1 -0
  11. package/dist/components/ui/command/command.d.ts +85 -0
  12. package/dist/components/ui/command/command.d.ts.map +1 -0
  13. package/dist/components/ui/command/index.d.ts +2 -0
  14. package/dist/components/ui/command/index.d.ts.map +1 -0
  15. package/dist/components/ui/dithered-image/dithered-image.d.ts +6 -2
  16. package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -1
  17. package/dist/components/ui/dithered-image/index.d.ts +1 -1
  18. package/dist/components/ui/dithered-image/index.d.ts.map +1 -1
  19. package/dist/components/ui/form/form.d.ts +24 -0
  20. package/dist/components/ui/form/form.d.ts.map +1 -0
  21. package/dist/components/ui/form/index.d.ts +2 -0
  22. package/dist/components/ui/form/index.d.ts.map +1 -0
  23. package/dist/components/ui/progress/progress.d.ts +0 -6
  24. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  25. package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
  26. package/dist/components/ui/skeleton/skeleton.d.ts +4 -1
  27. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
  28. package/dist/components/ui/statusline/statusline.d.ts.map +1 -1
  29. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +0 -5
  30. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -1
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +166 -143
  34. package/dist/index10.js +30 -30
  35. package/dist/index100.js +218 -29
  36. package/dist/index101.js +646 -11
  37. package/dist/index102.js +173 -127
  38. package/dist/index103.js +4 -50
  39. package/dist/index104.js +30 -9
  40. package/dist/index105.js +6 -4
  41. package/dist/index106.js +11 -180
  42. package/dist/index107.js +19 -648
  43. package/dist/index108.js +9 -107
  44. package/dist/index109.js +38 -91
  45. package/dist/index11.js +13 -13
  46. package/dist/index110.js +18 -67
  47. package/dist/index111.js +201 -154
  48. package/dist/index112.js +20 -395
  49. package/dist/index113.js +395 -1675
  50. package/dist/index114.js +2 -278
  51. package/dist/index115.js +49 -128
  52. package/dist/index116.js +65 -32
  53. package/dist/index117.js +19 -1605
  54. package/dist/index118.js +28 -297
  55. package/dist/index119.js +5 -635
  56. package/dist/index12.js +1 -1
  57. package/dist/index120.js +2 -144
  58. package/dist/index121.js +2 -21
  59. package/dist/index122.js +5 -9
  60. package/dist/index123.js +3 -38
  61. package/dist/index124.js +24 -18
  62. package/dist/index125.js +113 -6
  63. package/dist/index126.js +15 -11
  64. package/dist/index127.js +513 -194
  65. package/dist/index128.js +128 -22
  66. package/dist/index129.js +114 -380
  67. package/dist/index13.js +132 -93
  68. package/dist/index130.js +59 -1300
  69. package/dist/index131.js +63 -612
  70. package/dist/index132.js +9 -2
  71. package/dist/index133.js +13 -52
  72. package/dist/index134.js +64 -63
  73. package/dist/index135.js +3 -24
  74. package/dist/index136.js +23 -29
  75. package/dist/index137.js +23 -5
  76. package/dist/index138.js +13 -2
  77. package/dist/index139.js +28 -2
  78. package/dist/index14.js +106 -220
  79. package/dist/index140.js +5 -5
  80. package/dist/index15.js +79 -125
  81. package/dist/index16.js +280 -17
  82. package/dist/index17.js +139 -12
  83. package/dist/index18.js +92 -22
  84. package/dist/index19.js +18 -55
  85. package/dist/index2.js +2 -2
  86. package/dist/index20.js +14 -26
  87. package/dist/index21.js +19 -33
  88. package/dist/index22.js +38 -121
  89. package/dist/index23.js +29 -22
  90. package/dist/index24.js +31 -64
  91. package/dist/index25.js +121 -15
  92. package/dist/index26.js +19 -29
  93. package/dist/index27.js +68 -77
  94. package/dist/index28.js +20 -25
  95. package/dist/index29.js +32 -88
  96. package/dist/index3.js +11 -9
  97. package/dist/index30.js +138 -38
  98. package/dist/index31.js +20 -227
  99. package/dist/index32.js +88 -18
  100. package/dist/index33.js +37 -28
  101. package/dist/index34.js +86 -22
  102. package/dist/index35.js +17 -102
  103. package/dist/index36.js +34 -65
  104. package/dist/index37.js +23 -49
  105. package/dist/index38.js +38 -99
  106. package/dist/index39.js +65 -10
  107. package/dist/index4.js +6 -6
  108. package/dist/index40.js +49 -15
  109. package/dist/index41.js +93 -2256
  110. package/dist/index42.js +10 -32
  111. package/dist/index43.js +15 -18
  112. package/dist/index44.js +2251 -225
  113. package/dist/index45.js +237 -11
  114. package/dist/index46.js +11 -73
  115. package/dist/index47.js +33 -249
  116. package/dist/index48.js +118 -9
  117. package/dist/index49.js +63 -326
  118. package/dist/index5.js +23 -23
  119. package/dist/index50.js +307 -57
  120. package/dist/index51.js +12 -241
  121. package/dist/index52.js +222 -822
  122. package/dist/index53.js +6 -3
  123. package/dist/index54.js +56 -114
  124. package/dist/index55.js +248 -219
  125. package/dist/index56.js +249 -11
  126. package/dist/index57.js +3 -5
  127. package/dist/index58.js +110 -221
  128. package/dist/index59.js +12 -260
  129. package/dist/index6.js +12 -12
  130. package/dist/index60.js +18 -12
  131. package/dist/index61.js +221 -18
  132. package/dist/index62.js +11 -530
  133. package/dist/index63.js +11 -6155
  134. package/dist/index64.js +234 -2626
  135. package/dist/index65.js +230 -292
  136. package/dist/index66.js +504 -646
  137. package/dist/index67.js +155 -824
  138. package/dist/index68.js +128 -23
  139. package/dist/index69.js +319 -311
  140. package/dist/index7.js +22 -22
  141. package/dist/index70.js +72 -4889
  142. package/dist/index71.js +408 -802
  143. package/dist/index72.js +18 -1254
  144. package/dist/index73.js +844 -518
  145. package/dist/index74.js +9 -125
  146. package/dist/index75.js +31 -161
  147. package/dist/index76.js +7 -31
  148. package/dist/index77.js +62 -429
  149. package/dist/index78.js +50 -128
  150. package/dist/index79.js +4 -81
  151. package/dist/index8.js +17 -18
  152. package/dist/index80.js +23 -64
  153. package/dist/index81.js +33 -45
  154. package/dist/index82.js +63 -21
  155. package/dist/index83.js +10 -6
  156. package/dist/index84.js +52 -49
  157. package/dist/index85.js +10 -33
  158. package/dist/index86.js +30 -11
  159. package/dist/index87.js +12 -7
  160. package/dist/index88.js +46 -30
  161. package/dist/index89.js +7 -54
  162. package/dist/index9.js +23 -31
  163. package/dist/index90.js +14 -10
  164. package/dist/index91.js +125 -4
  165. package/dist/index92.js +131 -9
  166. package/dist/index93.js +14 -6
  167. package/dist/index94.js +14 -24
  168. package/dist/index95.js +9 -69
  169. package/dist/index96.js +47 -122
  170. package/dist/index97.js +51 -216
  171. package/dist/index98.js +6 -14
  172. package/dist/index99.js +24 -53
  173. package/dist/tokens/colors.d.ts +26 -86
  174. package/dist/tokens/colors.d.ts.map +1 -1
  175. package/dist/tokens/index.d.ts +12 -84
  176. package/dist/tokens/index.d.ts.map +1 -1
  177. package/package.json +28 -23
  178. package/dist/index141.js +0 -5
  179. package/dist/index142.js +0 -26
  180. package/dist/index143.js +0 -115
  181. package/dist/index144.js +0 -18
  182. package/dist/index145.js +0 -527
  183. package/dist/index146.js +0 -130
  184. package/dist/index147.js +0 -136
  185. package/dist/index148.js +0 -67
  186. package/dist/index149.js +0 -71
  187. package/dist/index150.js +0 -11
  188. package/dist/index151.js +0 -16
  189. package/dist/index152.js +0 -68
  190. package/dist/index153.js +0 -6
  191. package/dist/index154.js +0 -25
  192. package/dist/index155.js +0 -25
  193. package/dist/index156.js +0 -15
  194. package/dist/index157.js +0 -30
  195. package/dist/index158.js +0 -7
package/dist/index14.js CHANGED
@@ -1,226 +1,112 @@
1
- import { jsx as X } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import { cn as C } from "./index2.js";
4
- const I = `
5
- attribute vec2 a_position;
6
- attribute vec2 a_texCoord;
7
- varying vec2 v_texCoord;
8
-
9
- void main() {
10
- gl_Position = vec4(a_position, 0.0, 1.0);
11
- v_texCoord = a_texCoord;
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
- `, h = `
14
- precision mediump float;
15
-
16
- varying vec2 v_texCoord;
17
-
18
- uniform sampler2D u_image;
19
- uniform sampler2D u_bayerTex;
20
- uniform vec2 u_resolution;
21
- uniform float u_ditherSize;
22
- uniform vec3 u_color;
23
-
24
- void main() {
25
- vec2 pixelPos = mod(floor(gl_FragCoord.xy / u_ditherSize), 8.0);
26
- vec4 texColor = texture2D(u_image, v_texCoord);
27
-
28
- // Convert to grayscale using luminance
29
- float gray = dot(texColor.rgb, vec3(0.299, 0.587, 0.114));
30
-
31
- // Look up threshold from Bayer texture
32
- float threshold = texture2D(u_bayerTex, (pixelPos + 0.5) / 8.0).r;
33
- float dithered = step(threshold, gray);
34
-
35
- // Output color or black
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
- `, F = [
40
- 0,
41
- 32,
42
- 8,
43
- 40,
44
- 2,
45
- 34,
46
- 10,
47
- 42,
48
- 48,
49
- 16,
50
- 56,
51
- 24,
52
- 50,
53
- 18,
54
- 58,
55
- 26,
56
- 12,
57
- 44,
58
- 4,
59
- 36,
60
- 14,
61
- 46,
62
- 6,
63
- 38,
64
- 60,
65
- 28,
66
- 52,
67
- 20,
68
- 62,
69
- 30,
70
- 54,
71
- 22,
72
- 3,
73
- 35,
74
- 11,
75
- 43,
76
- 1,
77
- 33,
78
- 9,
79
- 41,
80
- 51,
81
- 19,
82
- 59,
83
- 27,
84
- 49,
85
- 17,
86
- 57,
87
- 25,
88
- 15,
89
- 47,
90
- 7,
91
- 39,
92
- 13,
93
- 45,
94
- 5,
95
- 37,
96
- 63,
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
- N.displayName = "DitheredImage";
101
+ h.displayName = "CommandShortcut";
224
102
  export {
225
- N as DitheredImage
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 r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
1
+ var e = function() {
2
+ if (typeof __webpack_nonce__ < "u")
3
+ return __webpack_nonce__;
4
+ };
2
5
  export {
3
- a as fullWidthClassName,
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 a, jsxs as i } from "react/jsx-runtime";
2
- import * as r from "react";
3
- import { Root as x, Trigger as N, Group as y, Portal as l, Sub as v, RadioGroup as R, Content as m, Item as f, CheckboxItem as p, ItemIndicator as c, RadioItem as u, Label as b, Separator as g, SubContent as h, SubTrigger as w } from "./index55.js";
4
- import { cn as n } from "./index2.js";
5
- import D from "./index48.js";
6
- import M from "./index56.js";
7
- import S from "./index57.js";
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: n(
30
- "z-[60] min-w-[8rem] overflow-hidden border border-[#00ff00] bg-black p-1 text-[#00ff00] 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",
31
- e
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
- ...t
14
+ ...e
34
15
  }
35
16
  ));
36
- C.displayName = h.displayName;
37
- const k = r.forwardRef(({ className: e, sideOffset: t = 4, ...o }, s) => /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(
38
- m,
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
- ref: s,
41
- sideOffset: t,
42
- className: n(
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
- ...o
50
+ ...e
48
51
  }
49
- ) }));
50
- k.displayName = m.displayName;
51
- const z = r.forwardRef(({ className: e, inset: t, ...o }, s) => /* @__PURE__ */ a(
52
- f,
53
- {
54
- ref: s,
55
- className: n(
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
- ref: s,
85
- className: n(
86
- "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",
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
- ...o,
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
- T.displayName = u.displayName;
97
- const j = r.forwardRef(({ className: e, inset: t, ...o }, s) => /* @__PURE__ */ a(
98
- b,
66
+ );
67
+ h.displayName = "DialogFooter";
68
+ const w = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
69
+ c,
99
70
  {
100
- ref: s,
101
- className: n(
102
- "px-2 py-1.5 text-sm font-semibold",
103
- t && "pl-8",
104
- e
71
+ ref: o,
72
+ className: s(
73
+ "text-lg font-semibold leading-none tracking-tight",
74
+ a
105
75
  ),
106
- ...o
76
+ ...e
107
77
  }
108
78
  ));
109
- j.displayName = b.displayName;
110
- const L = r.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
111
- g,
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: n("-mx-1 my-1 h-px bg-muted", e),
115
- ...t
84
+ className: s("text-sm text-muted-foreground", a),
85
+ ...e
116
86
  }
117
87
  ));
118
- L.displayName = g.displayName;
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
- H as DropdownMenu,
132
- G as DropdownMenuCheckboxItem,
133
- k as DropdownMenuContent,
134
- K as DropdownMenuGroup,
135
- z as DropdownMenuItem,
136
- j as DropdownMenuLabel,
137
- O as DropdownMenuPortal,
138
- U as DropdownMenuRadioGroup,
139
- T as DropdownMenuRadioItem,
140
- L as DropdownMenuSeparator,
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
  };