@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/index20.js CHANGED
@@ -1,31 +1,19 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { Root as t, Item as s, Indicator as c } from "./index58.js";
4
- import { cn as l } from "./index2.js";
5
- import f from "./index56.js";
6
- const d = i.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
7
- t,
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { Root as o } from "./index60.js";
4
+ import { cva as i } from "./index47.js";
5
+ import { cn as s } from "./index2.js";
6
+ const l = i(
7
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
8
+ ), p = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ m(
9
+ o,
8
10
  {
9
- className: l("grid gap-2", r),
10
- ...a,
11
- ref: o
11
+ ref: r,
12
+ className: s(l(), a),
13
+ ...e
12
14
  }
13
15
  ));
14
- d.displayName = t.displayName;
15
- const m = i.forwardRef(({ className: r, ...a }, o) => /* @__PURE__ */ e(
16
- s,
17
- {
18
- ref: o,
19
- className: l(
20
- "h-6 w-6 rounded-full border-2 border-[#00ff00] bg-black focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[#00ff00] disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#00ff00] flex items-center justify-center",
21
- r
22
- ),
23
- ...a,
24
- children: /* @__PURE__ */ e(c, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(f, { className: "h-3 w-3 fill-black text-black" }) })
25
- }
26
- ));
27
- m.displayName = s.displayName;
16
+ p.displayName = o.displayName;
28
17
  export {
29
- d as RadioGroup,
30
- m as RadioGroupItem
18
+ p as Label
31
19
  };
package/dist/index21.js CHANGED
@@ -1,38 +1,24 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import * as t from "react";
3
- import { Root as s, Viewport as d, Corner as p, ScrollAreaScrollbar as c, ScrollAreaThumb as f } from "./index62.js";
4
- import { cn as i } from "./index2.js";
5
- const h = t.forwardRef(({ className: l, children: r, ...a }, o) => /* @__PURE__ */ n(
6
- s,
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { Root as d, Trigger as m, Anchor as p, Portal as c, Content as t } from "./index64.js";
4
+ import { cn as l } from "./index2.js";
5
+ const P = d, u = m, v = p, f = s.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...i }, n) => /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(
6
+ t,
7
7
  {
8
- ref: o,
9
- className: i("relative overflow-hidden", l),
10
- ...a,
11
- children: [
12
- /* @__PURE__ */ e(d, { className: "h-full w-full rounded-[inherit]", children: r }),
13
- /* @__PURE__ */ e(m, {}),
14
- /* @__PURE__ */ e(p, {})
15
- ]
16
- }
17
- ));
18
- h.displayName = s.displayName;
19
- const m = t.forwardRef(({ className: l, orientation: r = "vertical", ...a }, o) => /* @__PURE__ */ e(
20
- c,
21
- {
22
- ref: o,
23
- orientation: r,
24
- className: i(
25
- "flex touch-none select-none transition-colors",
26
- r === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
27
- r === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
28
- l
8
+ ref: n,
9
+ align: a,
10
+ sideOffset: r,
11
+ className: l(
12
+ "z-50 w-72 border-2 border-primary bg-black p-4 text-primary outline-none 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",
13
+ e
29
14
  ),
30
- ...a,
31
- children: /* @__PURE__ */ e(f, { className: "relative flex-1 bg-terminal-green terminal-glow" })
15
+ ...i
32
16
  }
33
- ));
34
- m.displayName = c.displayName;
17
+ ) }));
18
+ f.displayName = t.displayName;
35
19
  export {
36
- h as ScrollArea,
37
- m as ScrollBar
20
+ P as Popover,
21
+ v as PopoverAnchor,
22
+ f as PopoverContent,
23
+ u as PopoverTrigger
38
24
  };
package/dist/index22.js CHANGED
@@ -1,123 +1,40 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { Root as N, Group as g, Value as b, Trigger as n, Icon as S, Portal as v, Content as d, Viewport as R, Label as c, Item as m, ItemIndicator as C, ItemText as j, Separator as f, ScrollUpButton as p, ScrollDownButton as u } from "./index52.js";
4
- import { cn as o } from "./index2.js";
5
- import h from "./index45.js";
6
- import I from "./index48.js";
7
- import B from "./index53.js";
8
- const E = N, F = g, H = b, k = s.forwardRef(({ className: a, children: r, ...t }, l) => /* @__PURE__ */ i(
9
- n,
10
- {
11
- ref: l,
12
- className: o(
13
- "flex h-10 w-full items-center justify-between whitespace-nowrap border border-[#00ff00] bg-black text-[#00ff00] px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-[#00ff00] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
14
- a
15
- ),
16
- ...t,
17
- children: [
18
- r,
19
- /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(h, { className: "h-4 w-4 text-[#00ff00]" }) })
20
- ]
21
- }
22
- ));
23
- k.displayName = n.displayName;
24
- const w = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
25
- p,
26
- {
27
- ref: t,
28
- className: o(
29
- "flex cursor-default items-center justify-center py-1",
30
- a
31
- ),
32
- ...r,
33
- children: /* @__PURE__ */ e(B, { className: "h-4 w-4 text-[#00ff00]" })
34
- }
35
- ));
36
- w.displayName = p.displayName;
37
- const x = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
38
- u,
39
- {
40
- ref: t,
41
- className: o(
42
- "flex cursor-default items-center justify-center py-1",
43
- a
44
- ),
45
- ...r,
46
- children: /* @__PURE__ */ e(h, { className: "h-4 w-4 text-[#00ff00]" })
47
- }
48
- ));
49
- x.displayName = u.displayName;
50
- const z = s.forwardRef(({ className: a, children: r, position: t = "popper", ...l }, y) => /* @__PURE__ */ e(v, { children: /* @__PURE__ */ i(
51
- d,
52
- {
53
- ref: y,
54
- className: o(
55
- "relative z-[60] max-h-96 min-w-[8rem] overflow-hidden border border-[#00ff00] bg-black text-[#00ff00] shadow-md 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",
56
- t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
57
- a
58
- ),
59
- position: t,
60
- ...l,
61
- children: [
62
- /* @__PURE__ */ e(w, {}),
63
- /* @__PURE__ */ e(
64
- R,
65
- {
66
- className: o(
67
- "p-1",
68
- t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
69
- ),
70
- children: r
71
- }
72
- ),
73
- /* @__PURE__ */ e(x, {})
74
- ]
75
- }
76
- ) }));
77
- z.displayName = d.displayName;
78
- const D = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
79
- c,
80
- {
81
- ref: t,
82
- className: o("px-2 py-1.5 text-sm font-semibold", a),
83
- ...r
84
- }
85
- ));
86
- D.displayName = c.displayName;
87
- const T = s.forwardRef(({ className: a, children: r, ...t }, l) => /* @__PURE__ */ i(
88
- m,
89
- {
90
- ref: l,
91
- className: o(
92
- "relative flex w-full cursor-default select-none items-center py-1.5 pl-2 pr-8 text-sm outline-none hover:bg-terminal-green/20 hover:text-terminal-green focus:bg-terminal-green/20 focus:text-terminal-green data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
93
- a
94
- ),
95
- ...t,
96
- children: [
97
- /* @__PURE__ */ e("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(I, { className: "h-4 w-4" }) }) }),
98
- /* @__PURE__ */ e(j, { children: r })
99
- ]
100
- }
101
- ));
102
- T.displayName = m.displayName;
103
- const U = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
104
- f,
105
- {
106
- ref: t,
107
- className: o("-mx-1 my-1 h-px bg-muted", a),
108
- ...r
109
- }
110
- ));
111
- U.displayName = f.displayName;
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import { Root as d, Indicator as l } from "./index70.js";
4
+ import { cn as c } from "./index2.js";
5
+ const f = m.forwardRef(
6
+ ({
7
+ className: s,
8
+ value: t = 0,
9
+ showPercentage: i = !1,
10
+ label: r,
11
+ ...a
12
+ }, n) => /* @__PURE__ */ o("div", { className: "w-full min-w-[200px]", children: [
13
+ (r || i) && /* @__PURE__ */ o("div", { className: "flex justify-center items-center gap-2 mb-2 font-mono text-sm font-bold text-primary", children: [
14
+ r && /* @__PURE__ */ e("span", { children: r }),
15
+ i && /* @__PURE__ */ o("span", { children: [
16
+ Math.round(t),
17
+ "%"
18
+ ] })
19
+ ] }),
20
+ /* @__PURE__ */ e(
21
+ d,
22
+ {
23
+ ref: n,
24
+ className: c("relative h-6 w-full overflow-hidden bg-background border-2 border-primary", s),
25
+ ...a,
26
+ children: /* @__PURE__ */ e(
27
+ l,
28
+ {
29
+ className: "h-full bg-primary transition-all duration-200",
30
+ style: { width: `${t}%` }
31
+ }
32
+ )
33
+ }
34
+ )
35
+ ] })
36
+ );
37
+ f.displayName = "Progress";
112
38
  export {
113
- E as Select,
114
- z as SelectContent,
115
- F as SelectGroup,
116
- T as SelectItem,
117
- D as SelectLabel,
118
- x as SelectScrollDownButton,
119
- w as SelectScrollUpButton,
120
- U as SelectSeparator,
121
- k as SelectTrigger,
122
- H as SelectValue
39
+ f as Progress
123
40
  };
package/dist/index23.js CHANGED
@@ -1,24 +1,31 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import * as l from "react";
3
- import { Root as r } from "./index61.js";
4
- import { cn as s } from "./index2.js";
5
- const e = l.forwardRef(
6
- ({ className: a, orientation: o = "horizontal", decorative: m = !0, ...f }, p) => /* @__PURE__ */ t(
7
- r,
8
- {
9
- ref: p,
10
- decorative: m,
11
- orientation: o,
12
- className: s(
13
- "shrink-0 bg-[#00ff00]",
14
- o === "horizontal" ? "h-[2px] w-full" : "h-full w-[3px]",
15
- a
16
- ),
17
- ...f
18
- }
19
- )
20
- );
21
- e.displayName = r.displayName;
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { Root as t, Item as s, Indicator as d } from "./index65.js";
4
+ import { cn as m } from "./index2.js";
5
+ import l from "./index62.js";
6
+ const c = i.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ r(
7
+ t,
8
+ {
9
+ className: m("grid gap-2", e),
10
+ ...o,
11
+ ref: a
12
+ }
13
+ ));
14
+ c.displayName = t.displayName;
15
+ const n = i.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ r(
16
+ s,
17
+ {
18
+ ref: a,
19
+ className: m(
20
+ "h-6 w-6 rounded-full border-2 border-primary bg-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary flex items-center justify-center",
21
+ e
22
+ ),
23
+ ...o,
24
+ children: /* @__PURE__ */ r(d, { className: "flex items-center justify-center", children: /* @__PURE__ */ r(l, { className: "h-3 w-3 fill-primary-foreground text-primary-foreground" }) })
25
+ }
26
+ ));
27
+ n.displayName = s.displayName;
22
28
  export {
23
- e as Separator
29
+ c as RadioGroup,
30
+ n as RadioGroupItem
24
31
  };
package/dist/index24.js CHANGED
@@ -1,72 +1,39 @@
1
- import { jsx as a, jsxs as r } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
- import { Root as g, Portal as u, Trigger as x, Close as d, Overlay as n, Content as l, Title as m, Description as c } from "./index59.js";
4
- import { cva as y } from "./index42.js";
5
- import { cn as s } from "./index2.js";
6
- import N from "./index60.js";
7
- const H = g, O = x, P = d, b = u, f = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
8
- n,
3
+ import { Root as s, Viewport as p, Corner as d, ScrollAreaScrollbar as c, ScrollAreaThumb as f } from "./index66.js";
4
+ import { cn as n } from "./index2.js";
5
+ const h = i.forwardRef(({ className: l, children: e, ...o }, a) => /* @__PURE__ */ m(
6
+ s,
9
7
  {
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
- e
13
- ),
14
- ...t,
15
- ref: o
8
+ ref: a,
9
+ className: n("relative overflow-hidden", l),
10
+ ...o,
11
+ children: [
12
+ /* @__PURE__ */ r(p, { className: "h-full w-full rounded-[inherit]", children: e }),
13
+ /* @__PURE__ */ r(t, { orientation: "vertical" }),
14
+ /* @__PURE__ */ r(t, { orientation: "horizontal" }),
15
+ /* @__PURE__ */ r(d, {})
16
+ ]
16
17
  }
17
18
  ));
18
- f.displayName = n.displayName;
19
- const S = y(
20
- "fixed z-[60] gap-4 bg-black p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
19
+ h.displayName = s.displayName;
20
+ const t = i.forwardRef(({ className: l, orientation: e = "vertical", ...o }, a) => /* @__PURE__ */ r(
21
+ c,
21
22
  {
22
- variants: {
23
- side: {
24
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
25
- bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
26
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
27
- right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
28
- }
29
- },
30
- defaultVariants: {
31
- side: "right"
32
- }
23
+ ref: a,
24
+ orientation: e,
25
+ className: n(
26
+ "flex touch-none select-none transition-colors",
27
+ e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
28
+ e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
29
+ l
30
+ ),
31
+ ...o,
32
+ children: /* @__PURE__ */ r(f, { className: "relative flex-1 bg-primary" })
33
33
  }
34
- ), w = i.forwardRef(({ side: e = "right", className: t, children: o, ...p }, h) => /* @__PURE__ */ r(b, { children: [
35
- /* @__PURE__ */ a(f, {}),
36
- /* @__PURE__ */ r(
37
- l,
38
- {
39
- ref: h,
40
- className: s(S({ side: e }), t),
41
- ...p,
42
- children: [
43
- /* @__PURE__ */ r(d, { className: "absolute right-4 top-4 rounded-sm 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-secondary", children: [
44
- /* @__PURE__ */ a(N, { className: "h-4 w-4" }),
45
- /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
46
- ] }),
47
- o
48
- ]
49
- }
50
- )
51
- ] }));
52
- w.displayName = l.displayName;
53
- const v = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: s("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
54
- v.displayName = "SheetHeader";
55
- const R = ({ className: e, ...t }) => /* @__PURE__ */ a("div", { className: s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
56
- R.displayName = "SheetFooter";
57
- const C = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(m, { ref: o, className: s("text-lg font-semibold text-foreground", e), ...t }));
58
- C.displayName = m.displayName;
59
- const T = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(c, { ref: o, className: s("text-sm text-muted-foreground", e), ...t }));
60
- T.displayName = c.displayName;
34
+ ));
35
+ t.displayName = c.displayName;
61
36
  export {
62
- H as Sheet,
63
- P as SheetClose,
64
- w as SheetContent,
65
- T as SheetDescription,
66
- R as SheetFooter,
67
- v as SheetHeader,
68
- f as SheetOverlay,
69
- b as SheetPortal,
70
- C as SheetTitle,
71
- O as SheetTrigger
37
+ h as ScrollArea,
38
+ t as ScrollBar
72
39
  };
package/dist/index25.js CHANGED
@@ -1,17 +1,123 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { cn as t } from "./index2.js";
3
- function i({
4
- className: e,
5
- ...r
6
- }) {
7
- return /* @__PURE__ */ n(
8
- "div",
9
- {
10
- className: t("animate-pulse bg-terminal-green/25", e),
11
- ...r
12
- }
13
- );
14
- }
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { Root as N, Group as b, Value as g, Trigger as d, Icon as S, Portal as v, Content as m, Viewport as R, Label as n, Item as c, ItemIndicator as C, ItemText as j, Separator as p, ScrollUpButton as f, ScrollDownButton as y } from "./index73.js";
4
+ import { cn as o } from "./index2.js";
5
+ import u from "./index46.js";
6
+ import I from "./index57.js";
7
+ import B from "./index74.js";
8
+ const E = N, F = b, H = g, k = s.forwardRef(({ className: a, children: r, ...t }, l) => /* @__PURE__ */ i(
9
+ d,
10
+ {
11
+ ref: l,
12
+ className: o(
13
+ "flex h-10 w-full items-center justify-between whitespace-nowrap border-2 border-primary bg-black text-primary px-3 py-2 text-sm focus:outline-none focus:ring-1 focus:ring-primary disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
14
+ a
15
+ ),
16
+ ...t,
17
+ children: [
18
+ r,
19
+ /* @__PURE__ */ e(S, { asChild: !0, children: /* @__PURE__ */ e(u, { className: "h-4 w-4 text-primary" }) })
20
+ ]
21
+ }
22
+ ));
23
+ k.displayName = d.displayName;
24
+ const h = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
25
+ f,
26
+ {
27
+ ref: t,
28
+ className: o(
29
+ "flex cursor-default items-center justify-center py-1",
30
+ a
31
+ ),
32
+ ...r,
33
+ children: /* @__PURE__ */ e(B, { className: "h-4 w-4 text-primary" })
34
+ }
35
+ ));
36
+ h.displayName = f.displayName;
37
+ const x = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
38
+ y,
39
+ {
40
+ ref: t,
41
+ className: o(
42
+ "flex cursor-default items-center justify-center py-1",
43
+ a
44
+ ),
45
+ ...r,
46
+ children: /* @__PURE__ */ e(u, { className: "h-4 w-4 text-primary" })
47
+ }
48
+ ));
49
+ x.displayName = y.displayName;
50
+ const z = s.forwardRef(({ className: a, children: r, position: t = "popper", ...l }, w) => /* @__PURE__ */ e(v, { children: /* @__PURE__ */ i(
51
+ m,
52
+ {
53
+ ref: w,
54
+ className: o(
55
+ "relative z-[60] max-h-96 min-w-[8rem] overflow-hidden border-2 border-primary bg-black text-primary 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",
56
+ t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
57
+ a
58
+ ),
59
+ position: t,
60
+ ...l,
61
+ children: [
62
+ /* @__PURE__ */ e(h, {}),
63
+ /* @__PURE__ */ e(
64
+ R,
65
+ {
66
+ className: o(
67
+ "p-1",
68
+ t === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
69
+ ),
70
+ children: r
71
+ }
72
+ ),
73
+ /* @__PURE__ */ e(x, {})
74
+ ]
75
+ }
76
+ ) }));
77
+ z.displayName = m.displayName;
78
+ const D = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
79
+ n,
80
+ {
81
+ ref: t,
82
+ className: o("px-2 py-1.5 text-sm font-semibold", a),
83
+ ...r
84
+ }
85
+ ));
86
+ D.displayName = n.displayName;
87
+ const T = s.forwardRef(({ className: a, children: r, ...t }, l) => /* @__PURE__ */ i(
88
+ c,
89
+ {
90
+ ref: l,
91
+ className: o(
92
+ "relative flex w-full cursor-default select-none items-center py-1.5 pl-2 pr-8 text-sm outline-none hover:bg-primary/20 hover:text-primary focus:bg-primary/20 focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
93
+ a
94
+ ),
95
+ ...t,
96
+ children: [
97
+ /* @__PURE__ */ e("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(I, { className: "h-4 w-4" }) }) }),
98
+ /* @__PURE__ */ e(j, { children: r })
99
+ ]
100
+ }
101
+ ));
102
+ T.displayName = c.displayName;
103
+ const U = s.forwardRef(({ className: a, ...r }, t) => /* @__PURE__ */ e(
104
+ p,
105
+ {
106
+ ref: t,
107
+ className: o("-mx-1 my-1 h-px bg-muted", a),
108
+ ...r
109
+ }
110
+ ));
111
+ U.displayName = p.displayName;
15
112
  export {
16
- i as Skeleton
113
+ E as Select,
114
+ z as SelectContent,
115
+ F as SelectGroup,
116
+ T as SelectItem,
117
+ D as SelectLabel,
118
+ x as SelectScrollDownButton,
119
+ h as SelectScrollUpButton,
120
+ U as SelectSeparator,
121
+ k as SelectTrigger,
122
+ H as SelectValue
17
123
  };
package/dist/index26.js CHANGED
@@ -1,34 +1,24 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import * as b from "react";
3
- import { Root as n, Track as f, Range as a, Thumb as h } from "./index77.js";
4
- import { cn as d } from "./index2.js";
5
- const p = b.forwardRef(({ className: s, defaultValue: o, value: r, ...t }, i) => {
6
- const c = (r == null ? void 0 : r.length) ?? (o == null ? void 0 : o.length) ?? 1;
7
- return /* @__PURE__ */ l(
8
- n,
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import * as f from "react";
3
+ import { Root as o } from "./index72.js";
4
+ import { cn as i } from "./index2.js";
5
+ const s = f.forwardRef(
6
+ ({ className: a, orientation: r = "horizontal", decorative: m = !0, ...p }, t) => /* @__PURE__ */ l(
7
+ o,
9
8
  {
10
- ref: i,
11
- defaultValue: o,
12
- value: r,
13
- className: d(
14
- "relative flex w-full touch-none select-none items-center",
15
- s
9
+ ref: t,
10
+ decorative: m,
11
+ orientation: r,
12
+ className: i(
13
+ "shrink-0 bg-primary",
14
+ r === "horizontal" ? "h-[2px] w-full" : "h-full w-[3px]",
15
+ a
16
16
  ),
17
- ...t,
18
- children: [
19
- /* @__PURE__ */ e(f, { className: "relative h-2 w-full grow overflow-hidden border border-[#00ff00] bg-black", children: /* @__PURE__ */ e(a, { className: "absolute h-full bg-[#00ff00]" }) }),
20
- Array.from({ length: c }).map((g, m) => /* @__PURE__ */ e(
21
- h,
22
- {
23
- className: "block h-5 w-3 border-2 border-[#00ff00] bg-[#00ff00] transition-all focus-visible:outline-none hover:bg-black disabled:pointer-events-none disabled:opacity-50"
24
- },
25
- m
26
- ))
27
- ]
17
+ ...p
28
18
  }
29
- );
30
- });
31
- p.displayName = n.displayName;
19
+ )
20
+ );
21
+ s.displayName = o.displayName;
32
22
  export {
33
- p as Slider
23
+ s as Separator
34
24
  };