@drjoshcsimmons/scl 0.2.7 → 0.3.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 (231) hide show
  1. package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
  2. package/dist/components/ui/alert/alert.d.ts +5 -4
  3. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  4. package/dist/components/ui/alert/index.d.ts +1 -1
  5. package/dist/components/ui/alert/index.d.ts.map +1 -1
  6. package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
  7. package/dist/components/ui/badge/badge.d.ts +4 -6
  8. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  9. package/dist/components/ui/badge/index.d.ts +1 -1
  10. package/dist/components/ui/badge/index.d.ts.map +1 -1
  11. package/dist/components/ui/button/button.d.ts +6 -7
  12. package/dist/components/ui/button/button.d.ts.map +1 -1
  13. package/dist/components/ui/button/index.d.ts +1 -1
  14. package/dist/components/ui/button/index.d.ts.map +1 -1
  15. package/dist/components/ui/card/card.d.ts.map +1 -1
  16. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  17. package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
  18. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  19. package/dist/components/ui/input/input.d.ts.map +1 -1
  20. package/dist/components/ui/label/label.d.ts +1 -2
  21. package/dist/components/ui/label/label.d.ts.map +1 -1
  22. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  23. package/dist/components/ui/progress/progress.d.ts +0 -3
  24. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  25. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  26. package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
  27. package/dist/components/ui/select/select.d.ts.map +1 -1
  28. package/dist/components/ui/separator/separator.d.ts.map +1 -1
  29. package/dist/components/ui/skeleton/skeleton.d.ts +1 -0
  30. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
  31. package/dist/components/ui/slider/slider.d.ts.map +1 -1
  32. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  33. package/dist/components/ui/table/table.d.ts.map +1 -1
  34. package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
  35. package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
  36. package/dist/components/ui/toggle/index.d.ts +1 -1
  37. package/dist/components/ui/toggle/index.d.ts.map +1 -1
  38. package/dist/components/ui/toggle/toggle.d.ts +6 -10
  39. package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
  40. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  41. package/dist/globals.css +222 -287
  42. package/dist/index.d.ts +1 -10
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +115 -184
  45. package/dist/index10.js +29 -57
  46. package/dist/index100.js +5 -14
  47. package/dist/index101.js +45 -5
  48. package/dist/index102.js +54 -24
  49. package/dist/index103.js +30 -55
  50. package/dist/index104.js +1 -1
  51. package/dist/index105.js +3 -218
  52. package/dist/index106.js +218 -8
  53. package/dist/index107.js +47 -29
  54. package/dist/index108.js +27 -178
  55. package/dist/index109.js +44 -646
  56. package/dist/index11.js +6 -19
  57. package/dist/index110.js +9 -30
  58. package/dist/index111.js +6 -48
  59. package/dist/index112.js +1 -1
  60. package/dist/index113.js +12 -6
  61. package/dist/index114.js +1 -1
  62. package/dist/index115.js +200 -42
  63. package/dist/index116.js +22 -12
  64. package/dist/index117.js +399 -20
  65. package/dist/index118.js +2 -9
  66. package/dist/index119.js +50 -35
  67. package/dist/index12.js +80 -5
  68. package/dist/index120.js +62 -15
  69. package/dist/index121.js +22 -203
  70. package/dist/index122.js +27 -20
  71. package/dist/index123.js +5 -400
  72. package/dist/index124.js +2 -48
  73. package/dist/index125.js +2 -2
  74. package/dist/index126.js +5 -53
  75. package/dist/index127.js +3 -65
  76. package/dist/index128.js +22 -23
  77. package/dist/index129.js +111 -27
  78. package/dist/index13.js +16 -136
  79. package/dist/index130.js +16 -5
  80. package/dist/index131.js +525 -2
  81. package/dist/index132.js +128 -2
  82. package/dist/index133.js +134 -5
  83. package/dist/index134.js +65 -3
  84. package/dist/index135.js +69 -24
  85. package/dist/index136.js +9 -113
  86. package/dist/index137.js +14 -16
  87. package/dist/index138.js +64 -523
  88. package/dist/index139.js +3 -127
  89. package/dist/index14.js +11 -97
  90. package/dist/index140.js +22 -133
  91. package/dist/index141.js +12 -68
  92. package/dist/index142.js +26 -7
  93. package/dist/index143.js +5 -14
  94. package/dist/index144.js +22 -65
  95. package/dist/index15.js +18 -72
  96. package/dist/index16.js +30 -252
  97. package/dist/index17.js +20 -133
  98. package/dist/index18.js +37 -89
  99. package/dist/index19.js +138 -18
  100. package/dist/index2.js +5 -5
  101. package/dist/index20.js +21 -10
  102. package/dist/index21.js +13 -22
  103. package/dist/index22.js +24 -35
  104. package/dist/index23.js +13 -19
  105. package/dist/index24.js +32 -37
  106. package/dist/index25.js +23 -102
  107. package/dist/index26.js +16 -20
  108. package/dist/index27.js +11 -72
  109. package/dist/index28.js +24 -12
  110. package/dist/index29.js +99 -28
  111. package/dist/index3.js +6 -6
  112. package/dist/index30.js +39 -111
  113. package/dist/index31.js +11 -25
  114. package/dist/index32.js +49 -65
  115. package/dist/index33.js +65 -43
  116. package/dist/index34.js +230 -79
  117. package/dist/index36.js +58 -33
  118. package/dist/index4.js +42 -26
  119. package/dist/index41.js +73 -49
  120. package/dist/index43.js +159 -13
  121. package/dist/index45.js +232 -210
  122. package/dist/index47.js +18 -33
  123. package/dist/index5.js +21 -32
  124. package/dist/index50.js +211 -505
  125. package/dist/index52.js +31 -12
  126. package/dist/index55.js +860 -12
  127. package/dist/index57.js +71 -299
  128. package/dist/index59.js +21 -81
  129. package/dist/index6.js +26 -70
  130. package/dist/index61.js +487 -392
  131. package/dist/index63.js +210 -194
  132. package/dist/index65.js +435 -11
  133. package/dist/index67.js +98 -141
  134. package/dist/index69.js +213 -824
  135. package/dist/index7.js +7 -40
  136. package/dist/index71.js +333 -28
  137. package/dist/index73.js +91 -197
  138. package/dist/index77.js +25 -44
  139. package/dist/index78.js +52 -24
  140. package/dist/index79.js +10 -6
  141. package/dist/index8.js +20 -26
  142. package/dist/index80.js +4 -52
  143. package/dist/index81.js +8 -12
  144. package/dist/index82.js +12 -10
  145. package/dist/index83.js +30 -8
  146. package/dist/index84.js +5 -53
  147. package/dist/index85.js +67 -10
  148. package/dist/index86.js +180 -3
  149. package/dist/index87.js +68 -29
  150. package/dist/index88.js +33 -12
  151. package/dist/index89.js +7 -8
  152. package/dist/index9.js +33 -36
  153. package/dist/index90.js +48 -65
  154. package/dist/index91.js +10 -3
  155. package/dist/index92.js +5 -5
  156. package/dist/index93.js +3 -3
  157. package/dist/index94.js +2 -2
  158. package/dist/index96.js +3 -3
  159. package/dist/index98.js +1 -1
  160. package/dist/index99.js +25 -30
  161. package/dist/lib/utils.d.ts +8 -8
  162. package/dist/lib/utils.d.ts.map +1 -1
  163. package/package.json +5 -46
  164. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +0 -21
  165. package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +0 -1
  166. package/dist/components/ui/alert-dialog/index.d.ts +0 -2
  167. package/dist/components/ui/alert-dialog/index.d.ts.map +0 -1
  168. package/dist/components/ui/combobox/combobox.d.ts +0 -31
  169. package/dist/components/ui/combobox/combobox.d.ts.map +0 -1
  170. package/dist/components/ui/combobox/index.d.ts +0 -3
  171. package/dist/components/ui/combobox/index.d.ts.map +0 -1
  172. package/dist/components/ui/command/command.d.ts +0 -85
  173. package/dist/components/ui/command/command.d.ts.map +0 -1
  174. package/dist/components/ui/command/index.d.ts +0 -2
  175. package/dist/components/ui/command/index.d.ts.map +0 -1
  176. package/dist/components/ui/dithered-image/dithered-image.d.ts +0 -21
  177. package/dist/components/ui/dithered-image/dithered-image.d.ts.map +0 -1
  178. package/dist/components/ui/dithered-image/index.d.ts +0 -3
  179. package/dist/components/ui/dithered-image/index.d.ts.map +0 -1
  180. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -28
  181. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +0 -1
  182. package/dist/components/ui/dropdown-menu/index.d.ts +0 -2
  183. package/dist/components/ui/dropdown-menu/index.d.ts.map +0 -1
  184. package/dist/components/ui/form/form.d.ts +0 -24
  185. package/dist/components/ui/form/form.d.ts.map +0 -1
  186. package/dist/components/ui/form/index.d.ts +0 -2
  187. package/dist/components/ui/form/index.d.ts.map +0 -1
  188. package/dist/components/ui/sheet/index.d.ts +0 -2
  189. package/dist/components/ui/sheet/index.d.ts.map +0 -1
  190. package/dist/components/ui/sheet/sheet.d.ts +0 -26
  191. package/dist/components/ui/sheet/sheet.d.ts.map +0 -1
  192. package/dist/components/ui/statusline/index.d.ts +0 -2
  193. package/dist/components/ui/statusline/index.d.ts.map +0 -1
  194. package/dist/components/ui/statusline/statusline.d.ts +0 -40
  195. package/dist/components/ui/statusline/statusline.d.ts.map +0 -1
  196. package/dist/components/ui/terminal-textarea/index.d.ts +0 -2
  197. package/dist/components/ui/terminal-textarea/index.d.ts.map +0 -1
  198. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +0 -16
  199. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +0 -1
  200. package/dist/index145.js +0 -67
  201. package/dist/index146.js +0 -6
  202. package/dist/index147.js +0 -25
  203. package/dist/index148.js +0 -15
  204. package/dist/index149.js +0 -30
  205. package/dist/index150.js +0 -7
  206. package/dist/index151.js +0 -25
  207. package/dist/index35.js +0 -20
  208. package/dist/index37.js +0 -28
  209. package/dist/index38.js +0 -102
  210. package/dist/index39.js +0 -41
  211. package/dist/index40.js +0 -13
  212. package/dist/index42.js +0 -68
  213. package/dist/index44.js +0 -2265
  214. package/dist/index46.js +0 -13
  215. package/dist/index48.js +0 -75
  216. package/dist/index49.js +0 -127
  217. package/dist/index51.js +0 -262
  218. package/dist/index53.js +0 -62
  219. package/dist/index54.js +0 -20
  220. package/dist/index56.js +0 -11
  221. package/dist/index58.js +0 -14
  222. package/dist/index60.js +0 -132
  223. package/dist/index62.js +0 -251
  224. package/dist/index64.js +0 -13
  225. package/dist/index66.js +0 -338
  226. package/dist/index68.js +0 -24
  227. package/dist/index70.js +0 -11
  228. package/dist/index72.js +0 -256
  229. package/dist/index74.js +0 -120
  230. package/dist/index75.js +0 -243
  231. package/dist/index76.js +0 -70
package/dist/index90.js CHANGED
@@ -1,71 +1,54 @@
1
- import * as a from "react";
2
- import { useComposedRefs as E } from "./index78.js";
3
- import { useLayoutEffect as A } from "./index86.js";
4
- function T(n, e) {
5
- return a.useReducer((r, t) => e[r][t] ?? r, n);
6
- }
7
- var R = (n) => {
8
- const { present: e, children: r } = n, t = v(e), i = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = E(t.ref, P(i));
9
- return typeof r == "function" || t.isPresent ? a.cloneElement(i, { ref: c }) : null;
10
- };
11
- R.displayName = "Presence";
12
- function v(n) {
13
- const [e, r] = a.useState(), t = a.useRef(null), i = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = T(p, {
14
- mounted: {
15
- UNMOUNT: "unmounted",
16
- ANIMATION_OUT: "unmountSuspended"
17
- },
18
- unmountSuspended: {
19
- MOUNT: "mounted",
20
- ANIMATION_END: "unmounted"
1
+ import * as n from "react";
2
+ import { useLayoutEffect as v } from "./index80.js";
3
+ var E = n[" useInsertionEffect ".trim().toString()] || v;
4
+ function y({
5
+ prop: t,
6
+ defaultProp: u,
7
+ onChange: o = () => {
8
+ },
9
+ caller: i
10
+ }) {
11
+ const [l, e, r] = w({
12
+ defaultProp: u,
13
+ onChange: o
14
+ }), c = t !== void 0, a = c ? t : l;
15
+ {
16
+ const s = n.useRef(t !== void 0);
17
+ n.useEffect(() => {
18
+ const f = s.current;
19
+ f !== c && console.warn(
20
+ `${i} is changing from ${f ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
21
+ ), s.current = c;
22
+ }, [c, i]);
23
+ }
24
+ const m = n.useCallback(
25
+ (s) => {
26
+ var f;
27
+ if (c) {
28
+ const d = R(s) ? s(t) : s;
29
+ d !== t && ((f = r.current) == null || f.call(r, d));
30
+ } else
31
+ e(s);
21
32
  },
22
- unmounted: {
23
- MOUNT: "mounted"
24
- }
25
- });
26
- return a.useEffect(() => {
27
- const o = l(t.current);
28
- c.current = N === "mounted" ? o : "none";
29
- }, [N]), A(() => {
30
- const o = t.current, m = i.current;
31
- if (m !== n) {
32
- const f = c.current, u = l(o);
33
- n ? s("MOUNT") : u === "none" || (o == null ? void 0 : o.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), i.current = n;
34
- }
35
- }, [n, s]), A(() => {
36
- if (e) {
37
- let o;
38
- const m = e.ownerDocument.defaultView ?? window, d = (u) => {
39
- const g = l(t.current).includes(CSS.escape(u.animationName));
40
- if (u.target === e && g && (s("ANIMATION_END"), !i.current)) {
41
- const O = e.style.animationFillMode;
42
- e.style.animationFillMode = "forwards", o = m.setTimeout(() => {
43
- e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
44
- });
45
- }
46
- }, f = (u) => {
47
- u.target === e && (c.current = l(t.current));
48
- };
49
- return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
50
- m.clearTimeout(o), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
51
- };
52
- } else
53
- s("ANIMATION_END");
54
- }, [e, s]), {
55
- isPresent: ["mounted", "unmountSuspended"].includes(N),
56
- ref: a.useCallback((o) => {
57
- t.current = o ? getComputedStyle(o) : null, r(o);
58
- }, [])
59
- };
33
+ [c, t, e, r]
34
+ );
35
+ return [a, m];
60
36
  }
61
- function l(n) {
62
- return (n == null ? void 0 : n.animationName) || "none";
37
+ function w({
38
+ defaultProp: t,
39
+ onChange: u
40
+ }) {
41
+ const [o, i] = n.useState(t), l = n.useRef(o), e = n.useRef(u);
42
+ return E(() => {
43
+ e.current = u;
44
+ }, [u]), n.useEffect(() => {
45
+ var r;
46
+ l.current !== o && ((r = e.current) == null || r.call(e, o), l.current = o);
47
+ }, [o, l]), [o, i, e];
63
48
  }
64
- function P(n) {
65
- var t, i;
66
- let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
67
- return r ? n.ref : (e = (i = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : i.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
49
+ function R(t) {
50
+ return typeof t == "function";
68
51
  }
69
52
  export {
70
- R as Presence
53
+ y as useControllableState
71
54
  };
package/dist/index91.js CHANGED
@@ -1,6 +1,13 @@
1
- function m(t, [a, n]) {
2
- return Math.min(n, Math.max(a, t));
1
+ import * as o from "react";
2
+ import { useLayoutEffect as a } from "./index80.js";
3
+ var s = o[" useId ".trim().toString()] || (() => {
4
+ }), f = 0;
5
+ function i(t) {
6
+ const [e, r] = o.useState(s());
7
+ return a(() => {
8
+ r((u) => u ?? String(f++));
9
+ }, [t]), t || (e ? `radix-${e}` : "");
3
10
  }
4
11
  export {
5
- m as clamp
12
+ i as useId
6
13
  };
package/dist/index92.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as n from "react";
2
- import { composeEventHandlers as m } from "./index79.js";
3
- import { Primitive as g, dispatchDiscreteCustomEvent as k } from "./index81.js";
4
- import { useComposedRefs as R } from "./index78.js";
5
- import { useCallbackRef as w } from "./index85.js";
6
- import { useEscapeKeydown as U } from "./index116.js";
2
+ import { composeEventHandlers as m } from "./index84.js";
3
+ import { Primitive as g, dispatchDiscreteCustomEvent as k } from "./index88.js";
4
+ import { useComposedRefs as R } from "./index77.js";
5
+ import { useCallbackRef as w } from "./index79.js";
6
+ import { useEscapeKeydown as U } from "./index113.js";
7
7
  import { jsx as T } from "react/jsx-runtime";
8
8
  var z = "DismissableLayer", y = "dismissableLayer.update", H = "dismissableLayer.pointerDownOutside", M = "dismissableLayer.focusOutside", L, B = n.createContext({
9
9
  layers: /* @__PURE__ */ new Set(),
package/dist/index93.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as d from "react";
2
- import { useComposedRefs as R } from "./index78.js";
3
- import { Primitive as M } from "./index81.js";
4
- import { useCallbackRef as y } from "./index85.js";
2
+ import { useComposedRefs as R } from "./index77.js";
3
+ import { Primitive as M } from "./index88.js";
4
+ import { useCallbackRef as y } from "./index79.js";
5
5
  import { jsx as _ } from "react/jsx-runtime";
6
6
  var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, n) => {
7
7
  const {
package/dist/index94.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as r from "react";
2
2
  import s from "react-dom";
3
- import { Primitive as c } from "./index81.js";
4
- import { useLayoutEffect as u } from "./index86.js";
3
+ import { Primitive as c } from "./index88.js";
4
+ import { useLayoutEffect as u } from "./index80.js";
5
5
  import { jsx as l } from "react/jsx-runtime";
6
6
  var p = "Portal", d = r.forwardRef((e, a) => {
7
7
  var o;
package/dist/index96.js CHANGED
@@ -1,7 +1,7 @@
1
- import { __assign as m } from "./index128.js";
1
+ import { __assign as m } from "./index121.js";
2
2
  import * as r from "react";
3
- import { RemoveScroll as e } from "./index129.js";
4
- import t from "./index130.js";
3
+ import { RemoveScroll as e } from "./index122.js";
4
+ import t from "./index123.js";
5
5
  var s = r.forwardRef(function(a, o) {
6
6
  return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
7
7
  });
package/dist/index98.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as l from "react";
2
- import { composeRefs as m } from "./index78.js";
2
+ import { composeRefs as m } from "./index77.js";
3
3
  import { jsx as u } from "react/jsx-runtime";
4
4
  // @__NO_SIDE_EFFECTS__
5
5
  function b(e) {
package/dist/index99.js CHANGED
@@ -1,32 +1,27 @@
1
- import * as f from "react";
2
- import "react-dom";
3
- import { createSlot as l } from "./index53.js";
4
- import { jsx as n } from "react/jsx-runtime";
5
- var u = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "select",
20
- "span",
21
- "svg",
22
- "ul"
23
- ], w = u.reduce((t, i) => {
24
- const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
- const { asChild: a, ...p } = e, s = a ? o : i;
26
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
27
- });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
- }, {});
1
+ import * as h from "react";
2
+ import { useLayoutEffect as z } from "./index80.js";
3
+ function c(r) {
4
+ const [d, e] = h.useState(void 0);
5
+ return z(() => {
6
+ if (r) {
7
+ e({ width: r.offsetWidth, height: r.offsetHeight });
8
+ const f = new ResizeObserver((i) => {
9
+ if (!Array.isArray(i) || !i.length)
10
+ return;
11
+ const b = i[0];
12
+ let o, t;
13
+ if ("borderBoxSize" in b) {
14
+ const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
+ o = u.inlineSize, t = u.blockSize;
16
+ } else
17
+ o = r.offsetWidth, t = r.offsetHeight;
18
+ e({ width: o, height: t });
19
+ });
20
+ return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
+ } else
22
+ e(void 0);
23
+ }, [r]), d;
24
+ }
30
25
  export {
31
- w as Primitive
26
+ c as useSize
32
27
  };
@@ -1,14 +1,14 @@
1
- import { ClassValue } from 'clsx';
2
1
  /**
3
- * Combines class names with Tailwind CSS merge support.
4
- * This utility merges Tailwind classes intelligently, avoiding conflicts.
2
+ * Combines class names, filtering out falsy values.
3
+ * Replacement for clsx/tailwind-merge without Tailwind dependency.
5
4
  *
6
- * @param inputs - Class values to combine
7
- * @returns Merged class string
5
+ * @param classes - Class values to combine (strings, undefined, null, false)
6
+ * @returns Combined class string
8
7
  *
9
8
  * @example
10
- * cn('px-4 py-2', 'px-6') // Returns 'py-2 px-6'
11
- * cn('text-red-500', condition && 'text-blue-500')
9
+ * cx('scl-button', isActive && 'scl-button--active') // 'scl-button scl-button--active'
10
+ * cx('base', undefined, 'extra') // 'base extra'
12
11
  */
13
- export declare function cn(...inputs: ClassValue[]): string;
12
+ export declare function cx(...classes: (string | undefined | null | false)[]): string;
13
+ export declare const cn: typeof cx;
14
14
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C;;;;;;;;;;GAUG;AACH,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,EAAE,CAChB,GAAG,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,CAAC,EAAE,GAChD,MAAM,CAER;AAGD,eAAO,MAAM,EAAE,WAAK,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,14 @@
1
1
  {
2
2
  "name": "@drjoshcsimmons/scl",
3
- "version": "0.2.7",
4
- "description": "A retro terminal-themed React component library built on Radix and Tailwind",
3
+ "version": "0.3.1",
4
+ "description": "A retro terminal-themed React component library built on Radix primitives with vanilla CSS",
5
5
  "keywords": [
6
6
  "react",
7
7
  "components",
8
8
  "ui",
9
9
  "terminal",
10
10
  "retro",
11
- "radix",
12
- "tailwind",
13
- "shadcn"
11
+ "radix"
14
12
  ],
15
13
  "homepage": "https://jcpsimmons.github.io/scl/",
16
14
  "author": "Josh Simmons",
@@ -48,7 +46,7 @@
48
46
  "format": "biome format --write src",
49
47
  "check": "biome check --write src",
50
48
  "typecheck": "tsc --noEmit",
51
- "prepublishOnly": "npm run build"
49
+ "prepublishOnly": "bun run build"
52
50
  },
53
51
  "peerDependencies": {
54
52
  "react": "^18.0.0 || ^19.0.0",
@@ -56,20 +54,14 @@
56
54
  },
57
55
  "devDependencies": {
58
56
  "@biomejs/biome": "2.3.10",
59
- "@hookform/resolvers": "^3.9.0",
60
57
  "@radix-ui/react-accordion": "^1.2.0",
61
58
  "@radix-ui/react-alert-dialog": "^1.1.0",
62
- "@radix-ui/react-aspect-ratio": "^1.1.0",
63
59
  "@radix-ui/react-avatar": "^1.1.0",
64
60
  "@radix-ui/react-checkbox": "^1.1.0",
65
61
  "@radix-ui/react-collapsible": "^1.1.0",
66
- "@radix-ui/react-context-menu": "^2.2.0",
67
62
  "@radix-ui/react-dialog": "^1.1.0",
68
63
  "@radix-ui/react-dropdown-menu": "^2.1.0",
69
- "@radix-ui/react-hover-card": "^1.1.0",
70
64
  "@radix-ui/react-label": "^2.1.0",
71
- "@radix-ui/react-menubar": "^1.1.0",
72
- "@radix-ui/react-navigation-menu": "^1.2.0",
73
65
  "@radix-ui/react-popover": "^1.1.0",
74
66
  "@radix-ui/react-progress": "^1.1.0",
75
67
  "@radix-ui/react-radio-group": "^1.2.0",
@@ -80,9 +72,7 @@
80
72
  "@radix-ui/react-slot": "^1.1.0",
81
73
  "@radix-ui/react-switch": "^1.1.0",
82
74
  "@radix-ui/react-tabs": "^1.1.0",
83
- "@radix-ui/react-toast": "^1.2.0",
84
75
  "@radix-ui/react-toggle": "^1.1.0",
85
- "@radix-ui/react-toggle-group": "^1.1.0",
86
76
  "@radix-ui/react-tooltip": "^1.1.0",
87
77
  "@storybook/addon-a11y": "8.6.15",
88
78
  "@storybook/addon-essentials": "8.6.15",
@@ -100,47 +90,16 @@
100
90
  "@types/react-dom": "^18.3.0",
101
91
  "@vitejs/plugin-react": "^4.3.0",
102
92
  "@vitest/coverage-v8": "^2.1.0",
103
- "autoprefixer": "^10.4.0",
104
- "class-variance-authority": "^0.7.0",
105
- "clsx": "^2.1.0",
106
- "cmdk": "^1.0.0",
107
- "date-fns": "^3.6.0",
108
- "embla-carousel-react": "^8.3.0",
109
- "input-otp": "^1.4.0",
110
93
  "jsdom": "^25.0.0",
111
- "lucide-react": "^0.460.0",
112
- "postcss": "^8.4.0",
113
94
  "react": "^18.3.0",
114
- "react-day-picker": "^9.3.0",
115
95
  "react-dom": "^18.3.0",
116
- "react-hook-form": "^7.54.0",
117
- "react-resizable-panels": "^2.1.0",
118
- "recharts": "^2.13.0",
119
- "sonner": "^1.7.0",
120
96
  "storybook": "8.6.15",
121
- "tailwind-merge": "^2.5.0",
122
- "tailwindcss": "^3.4.0",
123
- "tailwindcss-animate": "^1.0.0",
124
97
  "typescript": "^5.6.0",
125
- "vaul": "^1.1.0",
126
98
  "vite": "^5.4.0",
127
99
  "vite-plugin-dts": "^4.3.0",
128
- "vitest": "^2.1.0",
129
- "zod": "^3.24.0"
100
+ "vitest": "^2.1.0"
130
101
  },
131
102
  "dependencies": {
132
- "@codemirror/basic-setup": "^0.20.0",
133
- "@codemirror/commands": "^6.10.1",
134
- "@codemirror/lang-css": "^6.3.1",
135
- "@codemirror/lang-html": "^6.4.11",
136
- "@codemirror/lang-javascript": "^6.2.4",
137
- "@codemirror/lang-json": "^6.0.2",
138
- "@codemirror/lang-markdown": "^6.5.0",
139
- "@codemirror/language": "^6.11.3",
140
- "@codemirror/state": "^6.5.2",
141
- "@codemirror/view": "^6.39.4",
142
- "@lezer/highlight": "^1.2.3",
143
- "@replit/codemirror-vim": "^6.3.0",
144
103
  "@vercel/analytics": "^1.6.1"
145
104
  }
146
105
  }
@@ -1,21 +0,0 @@
1
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
2
- import * as React from 'react';
3
- declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
4
- declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
6
- declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const AlertDialogHeader: {
9
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
12
- declare const AlertDialogFooter: {
13
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
17
- declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
18
- declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
- declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
21
- //# sourceMappingURL=alert-dialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,WAAW,iDAA4B,CAAC;AAC9C,QAAA,MAAM,kBAAkB,wHAA+B,CAAC;AACxD,QAAA,MAAM,iBAAiB,uDAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,wKAStB,CAAC;AAGH,QAAA,MAAM,kBAAkB,wKAetB,CAAC;AAGH,QAAA,MAAM,iBAAiB;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEvF,CAAC;AAGF,QAAA,MAAM,iBAAiB;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKvF,CAAC;AAGF,QAAA,MAAM,gBAAgB,8KASpB,CAAC;AAGH,QAAA,MAAM,sBAAsB,wLAS1B,CAAC;AAGH,QAAA,MAAM,iBAAiB,6KAKrB,CAAC;AAGH,QAAA,MAAM,iBAAiB,6KASrB,CAAC;AAGH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, } from './alert-dialog';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/alert-dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC"}
@@ -1,31 +0,0 @@
1
- import * as React from 'react';
2
- export interface ComboboxOption {
3
- value: string;
4
- label: string;
5
- disabled?: boolean;
6
- }
7
- export interface ComboboxProps {
8
- options: ComboboxOption[];
9
- value?: string;
10
- onValueChange?: (value: string) => void;
11
- placeholder?: string;
12
- searchPlaceholder?: string;
13
- emptyText?: string;
14
- className?: string;
15
- disabled?: boolean;
16
- }
17
- declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLButtonElement>>;
18
- export interface ComboboxMultiProps {
19
- options: ComboboxOption[];
20
- value?: string[];
21
- onValueChange?: (value: string[]) => void;
22
- placeholder?: string;
23
- searchPlaceholder?: string;
24
- emptyText?: string;
25
- className?: string;
26
- disabled?: boolean;
27
- maxSelected?: number;
28
- }
29
- declare const ComboboxMulti: React.ForwardRefExoticComponent<ComboboxMultiProps & React.RefAttributes<HTMLButtonElement>>;
30
- export { Combobox, ComboboxMulti };
31
- //# sourceMappingURL=combobox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/combobox/combobox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,QAAQ,yFAiEb,CAAC;AAGF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,aAAa,8FA2ElB,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- export type { ComboboxMultiProps, ComboboxOption, ComboboxProps } from './combobox';
2
- export { Combobox, ComboboxMulti } from './combobox';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/combobox/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -1,85 +0,0 @@
1
- import * as React from 'react';
2
- declare const Command: React.ForwardRefExoticComponent<Omit<{
3
- children?: React.ReactNode;
4
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
5
- ref?: React.Ref<HTMLDivElement>;
6
- } & {
7
- asChild?: boolean;
8
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
9
- label?: string;
10
- shouldFilter?: boolean;
11
- filter?: (value: string, search: string, keywords?: string[]) => number;
12
- defaultValue?: string;
13
- value?: string;
14
- onValueChange?: (value: string) => void;
15
- loop?: boolean;
16
- disablePointerSelection?: boolean;
17
- vimBindings?: boolean;
18
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- interface CommandDialogProps {
20
- children: React.ReactNode;
21
- open?: boolean;
22
- onOpenChange?: (open: boolean) => void;
23
- }
24
- declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => import("react/jsx-runtime").JSX.Element;
25
- declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
26
- ref?: React.Ref<HTMLInputElement>;
27
- } & {
28
- asChild?: boolean;
29
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
30
- value?: string;
31
- onValueChange?: (search: string) => void;
32
- } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
33
- declare const CommandList: React.ForwardRefExoticComponent<Omit<{
34
- children?: React.ReactNode;
35
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
36
- ref?: React.Ref<HTMLDivElement>;
37
- } & {
38
- asChild?: boolean;
39
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
40
- label?: string;
41
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
- declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
43
- children?: React.ReactNode;
44
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
45
- ref?: React.Ref<HTMLDivElement>;
46
- } & {
47
- asChild?: boolean;
48
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
49
- declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
50
- children?: React.ReactNode;
51
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
52
- ref?: React.Ref<HTMLDivElement>;
53
- } & {
54
- asChild?: boolean;
55
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
56
- heading?: React.ReactNode;
57
- value?: string;
58
- forceMount?: boolean;
59
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
60
- declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
61
- ref?: React.Ref<HTMLDivElement>;
62
- } & {
63
- asChild?: boolean;
64
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
65
- alwaysRender?: boolean;
66
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
67
- declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
68
- children?: React.ReactNode;
69
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
70
- ref?: React.Ref<HTMLDivElement>;
71
- } & {
72
- asChild?: boolean;
73
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
74
- disabled?: boolean;
75
- onSelect?: (value: string) => void;
76
- value?: string;
77
- keywords?: string[];
78
- forceMount?: boolean;
79
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
80
- declare const CommandShortcut: {
81
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
82
- displayName: string;
83
- };
84
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut, };
85
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/command/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFASX,CAAC;AAGH,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,4CAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;0FAehB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAC;AAGH,QAAA,MAAM,YAAY;;;;;;uJAShB,CAAC;AAGH,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAC;AAGH,QAAA,MAAM,gBAAgB;;;;;;sFASpB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAef,CAAC;AAGH,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAOtF,CAAC;AAGF,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, } from './command';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,MAAM,WAAW,CAAC"}
@@ -1,21 +0,0 @@
1
- import * as React from 'react';
2
- export type DitherAlgorithm = 'atkinson' | 'bayer' | 'floyd-steinberg';
3
- export interface DitheredImageProps extends Omit<React.HTMLAttributes<HTMLCanvasElement>, 'color'> {
4
- src: string;
5
- alt?: string;
6
- /** Width in pixels. If only width is set, height is calculated from aspect ratio */
7
- width?: number;
8
- /** Height in pixels. If only height is set, width is calculated from aspect ratio */
9
- height?: number;
10
- /** Size of dither pattern pixels (default: 1) */
11
- ditherSize?: number;
12
- /** RGB color for lit pixels (default: terminal green [0, 255, 0]) */
13
- color?: [number, number, number];
14
- /** Dithering algorithm (default: 'atkinson' for classic Mac look) */
15
- algorithm?: DitherAlgorithm;
16
- /** Threshold for black/white conversion (0-255, default: 128) */
17
- threshold?: number;
18
- }
19
- declare const DitheredImage: React.ForwardRefExoticComponent<DitheredImageProps & React.RefAttributes<HTMLCanvasElement>>;
20
- export { DitheredImage };
21
- //# sourceMappingURL=dithered-image.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dithered-image.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dithered-image/dithered-image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmE/B,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,OAAO,GAAG,iBAAiB,CAAC;AAEvE,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAChG,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,qEAAqE;IACrE,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAyID,QAAA,MAAM,aAAa,8FAmOlB,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -1,3 +0,0 @@
1
- export type { DitherAlgorithm, DitheredImageProps } from './dithered-image';
2
- export { DitheredImage } from './dithered-image';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dithered-image/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}