@drjoshcsimmons/scl 0.1.0 → 0.1.1

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 +9 -30
  36. package/dist/index101.js +50 -15
  37. package/dist/index102.js +212 -128
  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 +19 -179
  42. package/dist/index107.js +9 -650
  43. package/dist/index108.js +38 -107
  44. package/dist/index109.js +17 -90
  45. package/dist/index11.js +13 -13
  46. package/dist/index110.js +11 -66
  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 +2 -1611
  54. package/dist/index118.js +2 -298
  55. package/dist/index119.js +22 -632
  56. package/dist/index12.js +1 -1
  57. package/dist/index120.js +29 -144
  58. package/dist/index121.js +5 -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 +33 -11
  114. package/dist/index46.js +116 -64
  115. package/dist/index47.js +207 -219
  116. package/dist/index48.js +5 -3
  117. package/dist/index49.js +54 -330
  118. package/dist/index5.js +23 -23
  119. package/dist/index50.js +244 -55
  120. package/dist/index51.js +9 -241
  121. package/dist/index52.js +60 -847
  122. package/dist/index53.js +236 -9
  123. package/dist/index54.js +11 -118
  124. package/dist/index55.js +300 -215
  125. package/dist/index56.js +4 -3
  126. package/dist/index57.js +225 -11
  127. package/dist/index58.js +11 -236
  128. package/dist/index59.js +27 -256
  129. package/dist/index6.js +12 -12
  130. package/dist/index60.js +260 -12
  131. package/dist/index61.js +12 -22
  132. package/dist/index62.js +94 -506
  133. package/dist/index63.js +12 -6155
  134. package/dist/index64.js +20 -2631
  135. package/dist/index65.js +16 -296
  136. package/dist/index66.js +232 -663
  137. package/dist/index67.js +125 -825
  138. package/dist/index68.js +159 -23
  139. package/dist/index69.js +241 -315
  140. package/dist/index7.js +22 -22
  141. package/dist/index70.js +72 -4889
  142. package/dist/index71.js +503 -802
  143. package/dist/index72.js +412 -1235
  144. package/dist/index73.js +323 -521
  145. package/dist/index74.js +839 -104
  146. package/dist/index75.js +9 -161
  147. package/dist/index76.js +67 -30
  148. package/dist/index77.js +22 -430
  149. package/dist/index78.js +6 -129
  150. package/dist/index79.js +48 -75
  151. package/dist/index8.js +17 -18
  152. package/dist/index80.js +42 -64
  153. package/dist/index81.js +50 -44
  154. package/dist/index82.js +32 -25
  155. package/dist/index83.js +10 -6
  156. package/dist/index84.js +7 -51
  157. package/dist/index85.js +5 -33
  158. package/dist/index86.js +24 -10
  159. package/dist/index87.js +68 -7
  160. package/dist/index88.js +55 -30
  161. package/dist/index89.js +10 -54
  162. package/dist/index9.js +23 -31
  163. package/dist/index90.js +4 -11
  164. package/dist/index91.js +30 -4
  165. package/dist/index92.js +1 -1
  166. package/dist/index93.js +180 -5
  167. package/dist/index94.js +14 -24
  168. package/dist/index95.js +643 -62
  169. package/dist/index96.js +5 -5
  170. package/dist/index97.js +128 -212
  171. package/dist/index98.js +2 -2
  172. package/dist/index99.js +13 -52
  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 +26 -22
  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/index27.js CHANGED
@@ -1,81 +1,72 @@
1
- import { jsxs as a, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import * as m from "react";
3
- import { cn as n } from "./index2.js";
4
- const y = {
5
- default: "bg-terminal-yellow text-black",
6
- insert: "bg-terminal-blue text-black",
7
- visual: "bg-terminal-magenta text-black",
8
- command: "bg-terminal-red text-black"
9
- }, k = m.forwardRef(
10
- ({
11
- className: o,
12
- mode: f = "NORMAL",
13
- modeVariant: x = "default",
14
- filename: s,
15
- filetype: $,
16
- filetypeAbbr: R,
17
- encoding: S = "utf-8",
18
- line: e,
19
- column: r,
20
- totalLines: l,
21
- percentage: i,
22
- branch: d,
23
- diffStat: M,
24
- modified: h = !1,
25
- readonly: v = !1,
26
- leftContent: b,
27
- centerContent: p,
28
- rightContent: u,
29
- ...N
30
- }, g) => {
31
- const c = m.useMemo(() => {
32
- if (i !== void 0) return i;
33
- if (e !== void 0 && l !== void 0 && l > 0)
34
- return e <= 1 ? "Top" : e >= l ? "Bot" : `${Math.round(e / l * 100)}%`;
35
- }, [i, e, l]);
36
- return /* @__PURE__ */ a(
37
- "div",
38
- {
39
- ref: g,
40
- className: n(
41
- "flex h-6 w-full items-stretch font-mono text-sm bg-black text-white",
42
- o
43
- ),
44
- ...N,
45
- children: [
46
- /* @__PURE__ */ a("div", { className: "flex items-stretch", children: [
47
- /* @__PURE__ */ t(
48
- "div",
49
- {
50
- className: n(
51
- "flex items-center px-3 font-bold",
52
- y[x]
53
- ),
54
- children: f
55
- }
56
- ),
57
- b,
58
- d && /* @__PURE__ */ a("div", { className: "flex items-center px-2 text-white", children: [
59
- /* @__PURE__ */ t("span", { className: "mr-1", children: "⎇" }),
60
- d
61
- ] })
62
- ] }),
63
- /* @__PURE__ */ t("div", { className: "flex flex-1 items-center px-3 bg-blue-800 mx-2", children: p || /* @__PURE__ */ t(w, { children: s && /* @__PURE__ */ a("span", { className: "text-white truncate", children: [
64
- s,
65
- h && /* @__PURE__ */ t("span", { className: "text-terminal-yellow ml-1", children: "[+]" }),
66
- v && /* @__PURE__ */ t("span", { className: "text-terminal-orange ml-1", children: "[RO]" })
67
- ] }) }) }),
68
- /* @__PURE__ */ a("div", { className: "flex items-stretch gap-2", children: [
69
- u,
70
- c !== void 0 && /* @__PURE__ */ t("div", { className: "flex items-center px-3 text-white", children: c }),
71
- (e !== void 0 || r !== void 0) && /* @__PURE__ */ t("div", { className: "flex items-center px-3 bg-terminal-yellow text-black font-bold", children: e !== void 0 && r !== void 0 ? `${e}:${r}` : e !== void 0 ? `Ln ${e}` : `Col ${r}` })
72
- ] })
73
- ]
1
+ import { jsx as a, jsxs as r } 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 l, Title as m, Description as c } from "./index60.js";
4
+ import { cva as y } from "./index45.js";
5
+ import { cn as s } from "./index2.js";
6
+ import N from "./index61.js";
7
+ const H = g, O = x, P = n, b = u, f = i.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ a(
8
+ d,
9
+ {
10
+ className: s(
11
+ "fixed inset-0 z-50 bg-black 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
16
+ }
17
+ ));
18
+ f.displayName = d.displayName;
19
+ const S = y(
20
+ "fixed z-[60] gap-4 bg-black p-6 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
21
+ {
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"
74
28
  }
75
- );
29
+ },
30
+ defaultVariants: {
31
+ side: "right"
32
+ }
76
33
  }
77
- );
78
- k.displayName = "Statusline";
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(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-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;
79
61
  export {
80
- k as Statusline
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
81
72
  };
package/dist/index28.js CHANGED
@@ -1,27 +1,22 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { Root as a, Thumb as o } from "./index78.js";
4
- import { cn as t } from "./index2.js";
5
- const c = n.forwardRef(({ className: r, ...s }, i) => /* @__PURE__ */ e(
6
- a,
7
- {
8
- className: t(
9
- "peer inline-flex h-6 w-12 shrink-0 cursor-pointer items-center border-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-terminal-green focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-terminal-green data-[state=checked]:border-terminal-green data-[state=unchecked]:bg-black data-[state=unchecked]:border-terminal-red",
10
- r
11
- ),
12
- ...s,
13
- ref: i,
14
- children: /* @__PURE__ */ e(
15
- o,
16
- {
17
- className: t(
18
- "pointer-events-none block h-4 w-4 transition-transform data-[state=checked]:translate-x-6 data-[state=unchecked]:translate-x-0 data-[state=checked]:bg-black data-[state=unchecked]:bg-terminal-red"
19
- )
20
- }
21
- )
22
- }
23
- ));
24
- c.displayName = a.displayName;
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { cn as m } from "./index2.js";
3
+ function a({
4
+ className: r,
5
+ blink: e = !0,
6
+ ...o
7
+ }) {
8
+ return /* @__PURE__ */ i(
9
+ "div",
10
+ {
11
+ className: m(
12
+ "border border-primary/30 bg-primary/10",
13
+ e && "animate-blink",
14
+ r
15
+ ),
16
+ ...o
17
+ }
18
+ );
19
+ }
25
20
  export {
26
- c as Switch
21
+ a as Skeleton
27
22
  };
package/dist/index29.js CHANGED
@@ -1,90 +1,34 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import * as l from "react";
3
- import { cn as r } from "./index2.js";
4
- const d = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ t(
5
- "table",
6
- {
7
- ref: o,
8
- className: r("w-full caption-bottom text-sm", e),
9
- ...a
10
- }
11
- ) }));
12
- d.displayName = "Table";
13
- const s = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t("thead", { ref: o, className: r("[&_tr]:border-b", e), ...a }));
14
- s.displayName = "TableHeader";
15
- const m = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
16
- "tbody",
17
- {
18
- ref: o,
19
- className: r("[&_tr:last-child]:border-0", e),
20
- ...a
21
- }
22
- ));
23
- m.displayName = "TableBody";
24
- const b = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
25
- "tfoot",
26
- {
27
- ref: o,
28
- className: r(
29
- "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
30
- e
31
- ),
32
- ...a
33
- }
34
- ));
35
- b.displayName = "TableFooter";
36
- const c = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
37
- "tr",
38
- {
39
- ref: o,
40
- className: r(
41
- "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
42
- e
43
- ),
44
- ...a
45
- }
46
- ));
47
- c.displayName = "TableRow";
48
- const f = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
49
- "th",
50
- {
51
- ref: o,
52
- className: r(
53
- "h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
54
- e
55
- ),
56
- ...a
57
- }
58
- ));
59
- f.displayName = "TableHead";
60
- const i = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
61
- "td",
62
- {
63
- ref: o,
64
- className: r(
65
- "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
66
- e
67
- ),
68
- ...a
69
- }
70
- ));
71
- i.displayName = "TableCell";
72
- const n = l.forwardRef(({ className: e, ...a }, o) => /* @__PURE__ */ t(
73
- "caption",
74
- {
75
- ref: o,
76
- className: r("mt-4 text-sm text-muted-foreground", e),
77
- ...a
78
- }
79
- ));
80
- n.displayName = "TableCaption";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import * as b from "react";
3
+ import { Root as n, Track as l, Range as p, Thumb as d } from "./index72.js";
4
+ import { cn as h } from "./index2.js";
5
+ const g = b.forwardRef(({ className: i, defaultValue: r, value: o, ...s }, m) => {
6
+ const t = (o == null ? void 0 : o.length) ?? (r == null ? void 0 : r.length) ?? 1;
7
+ return /* @__PURE__ */ a(
8
+ n,
9
+ {
10
+ ref: m,
11
+ defaultValue: r,
12
+ value: o,
13
+ className: h(
14
+ "relative flex w-full touch-none select-none items-center",
15
+ i
16
+ ),
17
+ ...s,
18
+ children: [
19
+ /* @__PURE__ */ e(l, { className: "relative h-2 w-full grow overflow-hidden border border-primary bg-background", children: /* @__PURE__ */ e(p, { className: "absolute h-full bg-primary" }) }),
20
+ Array.from({ length: t }).map((f, c) => /* @__PURE__ */ e(
21
+ d,
22
+ {
23
+ className: "block h-5 w-3 border-2 border-primary bg-primary transition-all focus-visible:outline-none hover:bg-background disabled:pointer-events-none disabled:opacity-50"
24
+ },
25
+ c
26
+ ))
27
+ ]
28
+ }
29
+ );
30
+ });
31
+ g.displayName = n.displayName;
81
32
  export {
82
- d as Table,
83
- m as TableBody,
84
- n as TableCaption,
85
- i as TableCell,
86
- b as TableFooter,
87
- f as TableHead,
88
- s as TableHeader,
89
- c as TableRow
33
+ g as Slider
90
34
  };
package/dist/index3.js CHANGED
@@ -1,21 +1,23 @@
1
- import { colors as o } from "./index35.js";
2
- import { typography as r } from "./index36.js";
3
- import { borderRadius as m, spacing as t } from "./index37.js";
4
- import { animations as i } from "./index38.js";
5
- import { shadows as p } from "./index39.js";
1
+ import { colors as o } from "./index38.js";
2
+ import { palette as g } from "./index38.js";
3
+ import { typography as r } from "./index39.js";
4
+ import { borderRadius as m, spacing as t } from "./index40.js";
5
+ import { animations as p } from "./index41.js";
6
+ import { shadows as i } from "./index42.js";
6
7
  const c = {
7
8
  colors: o,
8
9
  typography: r,
9
10
  spacing: t,
10
11
  borderRadius: m,
11
- animations: i,
12
- shadows: p
12
+ animations: p,
13
+ shadows: i
13
14
  };
14
15
  export {
15
- i as animations,
16
+ p as animations,
16
17
  m as borderRadius,
17
18
  o as colors,
18
- p as shadows,
19
+ g as palette,
20
+ i as shadows,
19
21
  t as spacing,
20
22
  c as theme,
21
23
  r as typography
package/dist/index30.js CHANGED
@@ -1,46 +1,146 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { Root as c, List as n, Trigger as o, Content as d } from "./index75.js";
1
+ import { jsxs as l, jsx as e, Fragment as h } from "react/jsx-runtime";
2
+ import * as u from "react";
4
3
  import { cn as r } from "./index2.js";
5
- const p = c, f = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
6
- n,
7
- {
8
- ref: a,
9
- className: r(
10
- "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
11
- e
12
- ),
13
- ...t
4
+ const B = {
5
+ default: {
6
+ bg: "bg-blue-600",
7
+ fg: "text-yellow-300",
8
+ label: "NORMAL"
9
+ },
10
+ insert: {
11
+ bg: "bg-green-600",
12
+ fg: "text-black",
13
+ label: "INSERT"
14
+ },
15
+ visual: {
16
+ bg: "bg-fuchsia-500",
17
+ fg: "text-black",
18
+ label: "VISUAL"
19
+ },
20
+ command: {
21
+ bg: "bg-red-600",
22
+ fg: "text-white",
23
+ label: "COMMAND"
14
24
  }
15
- ));
16
- f.displayName = n.displayName;
17
- const l = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
18
- o,
25
+ }, p = ({
26
+ direction: m = "right",
27
+ fromBg: i,
28
+ toBg: d
29
+ }) => m === "right" ? /* @__PURE__ */ e(
30
+ "span",
19
31
  {
20
- ref: a,
21
- className: r(
22
- "inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-black data-[state=active]:text-terminal-green data-[state=active]:border-2 data-[state=active]:border-terminal-green data-[state=inactive]:border-2 data-[state=inactive]:border-transparent data-[state=inactive]:text-muted-foreground",
23
- e
24
- ),
25
- ...t
32
+ className: r("inline-flex items-center", d),
33
+ style: { fontSize: "1.5rem", lineHeight: 1 },
34
+ children: /* @__PURE__ */ e("span", { className: i.replace("bg-", "text-") })
26
35
  }
27
- ));
28
- l.displayName = o.displayName;
29
- const m = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ i(
30
- d,
36
+ ) : /* @__PURE__ */ e(
37
+ "span",
31
38
  {
32
- ref: a,
33
- className: r(
34
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
35
- e
36
- ),
37
- ...t
39
+ className: r("inline-flex items-center", i),
40
+ style: { fontSize: "1.5rem", lineHeight: 1 },
41
+ children: /* @__PURE__ */ e("span", { className: d.replace("bg-", "text-") })
42
+ }
43
+ ), C = u.forwardRef(
44
+ ({
45
+ className: m,
46
+ mode: i,
47
+ modeVariant: d = "default",
48
+ filename: o,
49
+ filetype: f,
50
+ filetypeAbbr: g,
51
+ encoding: N = "utf-8",
52
+ line: t,
53
+ column: c,
54
+ totalLines: a,
55
+ percentage: n,
56
+ branch: x,
57
+ diffStat: O,
58
+ modified: v = !1,
59
+ readonly: y = !1,
60
+ leftContent: w,
61
+ centerContent: S,
62
+ rightContent: M,
63
+ ...R
64
+ }, $) => {
65
+ const s = B[d], A = i || s.label, b = u.useMemo(() => {
66
+ if (n !== void 0) return n;
67
+ if (t !== void 0 && a !== void 0 && a > 0)
68
+ return t <= 1 ? "Top" : t >= a ? "Bot" : `${Math.round(t / a * 100)}%`;
69
+ }, [n, t, a]);
70
+ return /* @__PURE__ */ l(
71
+ "div",
72
+ {
73
+ ref: $,
74
+ className: r(
75
+ "flex h-6 w-full items-stretch font-mono text-sm",
76
+ m
77
+ ),
78
+ ...R,
79
+ children: [
80
+ /* @__PURE__ */ l("div", { className: "flex items-stretch", children: [
81
+ /* @__PURE__ */ e(
82
+ "div",
83
+ {
84
+ className: r(
85
+ "flex items-center px-2 font-bold",
86
+ s.bg,
87
+ s.fg
88
+ ),
89
+ children: A
90
+ }
91
+ ),
92
+ /* @__PURE__ */ e(p, { fromBg: s.bg, toBg: "bg-muted" }),
93
+ w,
94
+ x && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ l("div", { className: "flex items-center px-2 bg-muted text-yellow-400", children: [
95
+ /* @__PURE__ */ e("span", { className: "mr-1" }),
96
+ x
97
+ ] }) })
98
+ ] }),
99
+ /* @__PURE__ */ e("div", { className: "flex flex-1 items-center px-3 bg-muted", children: S || /* @__PURE__ */ l(h, { children: [
100
+ /* @__PURE__ */ e("span", { className: "mr-1 text-muted-foreground" }),
101
+ o && /* @__PURE__ */ l("span", { className: "text-primary truncate", children: [
102
+ o,
103
+ v && /* @__PURE__ */ e("span", { className: "text-yellow-400 ml-1", children: "[+]" }),
104
+ y && /* @__PURE__ */ e("span", { className: "text-red-500 ml-1", children: "[RO]" })
105
+ ] })
106
+ ] }) }),
107
+ /* @__PURE__ */ l("div", { className: "flex items-stretch", children: [
108
+ M,
109
+ (f || g) && /* @__PURE__ */ l("div", { className: "flex items-center px-2 bg-muted text-cyan-400", children: [
110
+ /* @__PURE__ */ e("span", { className: "mr-1" }),
111
+ g || f
112
+ ] }),
113
+ /* @__PURE__ */ e("div", { className: "flex items-center px-2 bg-muted text-muted-foreground", children: N }),
114
+ /* @__PURE__ */ e(p, { direction: "left", fromBg: s.bg, toBg: "bg-muted" }),
115
+ b !== void 0 && /* @__PURE__ */ e(
116
+ "div",
117
+ {
118
+ className: r(
119
+ "flex items-center px-2 font-bold",
120
+ s.bg,
121
+ s.fg
122
+ ),
123
+ children: b
124
+ }
125
+ ),
126
+ (t !== void 0 || c !== void 0) && /* @__PURE__ */ e(
127
+ "div",
128
+ {
129
+ className: r(
130
+ "flex items-center px-2 font-bold",
131
+ s.bg,
132
+ s.fg
133
+ ),
134
+ children: t !== void 0 && c !== void 0 ? `${t}:${c}` : t !== void 0 ? `Ln ${t}` : `Col ${c}`
135
+ }
136
+ )
137
+ ] })
138
+ ]
139
+ }
140
+ );
38
141
  }
39
- ));
40
- m.displayName = d.displayName;
142
+ );
143
+ C.displayName = "Statusline";
41
144
  export {
42
- p as Tabs,
43
- m as TabsContent,
44
- f as TabsList,
45
- l as TabsTrigger
145
+ C as Statusline
46
146
  };