@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.
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert/alert.d.ts +5 -4
- package/dist/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/components/ui/alert/index.d.ts +1 -1
- package/dist/components/ui/alert/index.d.ts.map +1 -1
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +4 -6
- package/dist/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/components/ui/badge/index.d.ts +1 -1
- package/dist/components/ui/badge/index.d.ts.map +1 -1
- package/dist/components/ui/button/button.d.ts +6 -7
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/index.d.ts +1 -1
- package/dist/components/ui/button/index.d.ts.map +1 -1
- package/dist/components/ui/card/card.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/input/input.d.ts.map +1 -1
- package/dist/components/ui/label/label.d.ts +1 -2
- package/dist/components/ui/label/label.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.d.ts +0 -3
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/separator/separator.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts +1 -0
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider/slider.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/toggle/index.d.ts +1 -1
- package/dist/components/ui/toggle/index.d.ts.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +6 -10
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/globals.css +222 -287
- package/dist/index.d.ts +1 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -184
- package/dist/index10.js +29 -57
- package/dist/index100.js +5 -14
- package/dist/index101.js +45 -5
- package/dist/index102.js +54 -24
- package/dist/index103.js +30 -55
- package/dist/index104.js +1 -1
- package/dist/index105.js +3 -218
- package/dist/index106.js +218 -8
- package/dist/index107.js +47 -29
- package/dist/index108.js +27 -178
- package/dist/index109.js +44 -646
- package/dist/index11.js +6 -19
- package/dist/index110.js +9 -30
- package/dist/index111.js +6 -48
- package/dist/index112.js +1 -1
- package/dist/index113.js +12 -6
- package/dist/index114.js +1 -1
- package/dist/index115.js +200 -42
- package/dist/index116.js +22 -12
- package/dist/index117.js +399 -20
- package/dist/index118.js +2 -9
- package/dist/index119.js +50 -35
- package/dist/index12.js +80 -5
- package/dist/index120.js +62 -15
- package/dist/index121.js +22 -203
- package/dist/index122.js +27 -20
- package/dist/index123.js +5 -400
- package/dist/index124.js +2 -48
- package/dist/index125.js +2 -2
- package/dist/index126.js +5 -53
- package/dist/index127.js +3 -65
- package/dist/index128.js +22 -23
- package/dist/index129.js +111 -27
- package/dist/index13.js +16 -136
- package/dist/index130.js +16 -5
- package/dist/index131.js +525 -2
- package/dist/index132.js +128 -2
- package/dist/index133.js +134 -5
- package/dist/index134.js +65 -3
- package/dist/index135.js +69 -24
- package/dist/index136.js +9 -113
- package/dist/index137.js +14 -16
- package/dist/index138.js +64 -523
- package/dist/index139.js +3 -127
- package/dist/index14.js +11 -97
- package/dist/index140.js +22 -133
- package/dist/index141.js +12 -68
- package/dist/index142.js +26 -7
- package/dist/index143.js +5 -14
- package/dist/index144.js +22 -65
- package/dist/index15.js +18 -72
- package/dist/index16.js +30 -252
- package/dist/index17.js +20 -133
- package/dist/index18.js +37 -89
- package/dist/index19.js +138 -18
- package/dist/index2.js +5 -5
- package/dist/index20.js +21 -10
- package/dist/index21.js +13 -22
- package/dist/index22.js +24 -35
- package/dist/index23.js +13 -19
- package/dist/index24.js +32 -37
- package/dist/index25.js +23 -102
- package/dist/index26.js +16 -20
- package/dist/index27.js +11 -72
- package/dist/index28.js +24 -12
- package/dist/index29.js +99 -28
- package/dist/index3.js +6 -6
- package/dist/index30.js +39 -111
- package/dist/index31.js +11 -25
- package/dist/index32.js +49 -65
- package/dist/index33.js +65 -43
- package/dist/index34.js +230 -79
- package/dist/index36.js +58 -33
- package/dist/index4.js +42 -26
- package/dist/index41.js +73 -49
- package/dist/index43.js +159 -13
- package/dist/index45.js +232 -210
- package/dist/index47.js +18 -33
- package/dist/index5.js +21 -32
- package/dist/index50.js +211 -505
- package/dist/index52.js +31 -12
- package/dist/index55.js +860 -12
- package/dist/index57.js +71 -299
- package/dist/index59.js +21 -81
- package/dist/index6.js +26 -70
- package/dist/index61.js +487 -392
- package/dist/index63.js +210 -194
- package/dist/index65.js +435 -11
- package/dist/index67.js +98 -141
- package/dist/index69.js +213 -824
- package/dist/index7.js +7 -40
- package/dist/index71.js +333 -28
- package/dist/index73.js +91 -197
- package/dist/index77.js +25 -44
- package/dist/index78.js +52 -24
- package/dist/index79.js +10 -6
- package/dist/index8.js +20 -26
- package/dist/index80.js +4 -52
- package/dist/index81.js +8 -12
- package/dist/index82.js +12 -10
- package/dist/index83.js +30 -8
- package/dist/index84.js +5 -53
- package/dist/index85.js +67 -10
- package/dist/index86.js +180 -3
- package/dist/index87.js +68 -29
- package/dist/index88.js +33 -12
- package/dist/index89.js +7 -8
- package/dist/index9.js +33 -36
- package/dist/index90.js +48 -65
- package/dist/index91.js +10 -3
- package/dist/index92.js +5 -5
- package/dist/index93.js +3 -3
- package/dist/index94.js +2 -2
- package/dist/index96.js +3 -3
- package/dist/index98.js +1 -1
- package/dist/index99.js +25 -30
- package/dist/lib/utils.d.ts +8 -8
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +5 -46
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts +0 -21
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +0 -1
- package/dist/components/ui/alert-dialog/index.d.ts +0 -2
- package/dist/components/ui/alert-dialog/index.d.ts.map +0 -1
- package/dist/components/ui/combobox/combobox.d.ts +0 -31
- package/dist/components/ui/combobox/combobox.d.ts.map +0 -1
- package/dist/components/ui/combobox/index.d.ts +0 -3
- package/dist/components/ui/combobox/index.d.ts.map +0 -1
- package/dist/components/ui/command/command.d.ts +0 -85
- package/dist/components/ui/command/command.d.ts.map +0 -1
- package/dist/components/ui/command/index.d.ts +0 -2
- package/dist/components/ui/command/index.d.ts.map +0 -1
- package/dist/components/ui/dithered-image/dithered-image.d.ts +0 -21
- package/dist/components/ui/dithered-image/dithered-image.d.ts.map +0 -1
- package/dist/components/ui/dithered-image/index.d.ts +0 -3
- package/dist/components/ui/dithered-image/index.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -28
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu/index.d.ts +0 -2
- package/dist/components/ui/dropdown-menu/index.d.ts.map +0 -1
- package/dist/components/ui/form/form.d.ts +0 -24
- package/dist/components/ui/form/form.d.ts.map +0 -1
- package/dist/components/ui/form/index.d.ts +0 -2
- package/dist/components/ui/form/index.d.ts.map +0 -1
- package/dist/components/ui/sheet/index.d.ts +0 -2
- package/dist/components/ui/sheet/index.d.ts.map +0 -1
- package/dist/components/ui/sheet/sheet.d.ts +0 -26
- package/dist/components/ui/sheet/sheet.d.ts.map +0 -1
- package/dist/components/ui/statusline/index.d.ts +0 -2
- package/dist/components/ui/statusline/index.d.ts.map +0 -1
- package/dist/components/ui/statusline/statusline.d.ts +0 -40
- package/dist/components/ui/statusline/statusline.d.ts.map +0 -1
- package/dist/components/ui/terminal-textarea/index.d.ts +0 -2
- package/dist/components/ui/terminal-textarea/index.d.ts.map +0 -1
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts +0 -16
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +0 -1
- package/dist/index145.js +0 -67
- package/dist/index146.js +0 -6
- package/dist/index147.js +0 -25
- package/dist/index148.js +0 -15
- package/dist/index149.js +0 -30
- package/dist/index150.js +0 -7
- package/dist/index151.js +0 -25
- package/dist/index35.js +0 -20
- package/dist/index37.js +0 -28
- package/dist/index38.js +0 -102
- package/dist/index39.js +0 -41
- package/dist/index40.js +0 -13
- package/dist/index42.js +0 -68
- package/dist/index44.js +0 -2265
- package/dist/index46.js +0 -13
- package/dist/index48.js +0 -75
- package/dist/index49.js +0 -127
- package/dist/index51.js +0 -262
- package/dist/index53.js +0 -62
- package/dist/index54.js +0 -20
- package/dist/index56.js +0 -11
- package/dist/index58.js +0 -14
- package/dist/index60.js +0 -132
- package/dist/index62.js +0 -251
- package/dist/index64.js +0 -13
- package/dist/index66.js +0 -338
- package/dist/index68.js +0 -24
- package/dist/index70.js +0 -11
- package/dist/index72.js +0 -256
- package/dist/index74.js +0 -120
- package/dist/index75.js +0 -243
- package/dist/index76.js +0 -70
package/dist/index90.js
CHANGED
|
@@ -1,71 +1,54 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
23
|
-
|
|
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
|
|
62
|
-
|
|
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
|
|
65
|
-
|
|
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
|
-
|
|
53
|
+
y as useControllableState
|
|
71
54
|
};
|
package/dist/index91.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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 "./
|
|
3
|
-
import { Primitive as g, dispatchDiscreteCustomEvent as k } from "./
|
|
4
|
-
import { useComposedRefs as R } from "./
|
|
5
|
-
import { useCallbackRef as w } from "./
|
|
6
|
-
import { useEscapeKeydown as U } from "./
|
|
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 "./
|
|
3
|
-
import { Primitive as M } from "./
|
|
4
|
-
import { useCallbackRef as y } from "./
|
|
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 "./
|
|
4
|
-
import { useLayoutEffect as u } from "./
|
|
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 "./
|
|
1
|
+
import { __assign as m } from "./index121.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { RemoveScroll as e } from "./
|
|
4
|
-
import t from "./
|
|
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
package/dist/index99.js
CHANGED
|
@@ -1,32 +1,27 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
26
|
+
c as useSize
|
|
32
27
|
};
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ClassValue } from 'clsx';
|
|
2
1
|
/**
|
|
3
|
-
* Combines class names
|
|
4
|
-
*
|
|
2
|
+
* Combines class names, filtering out falsy values.
|
|
3
|
+
* Replacement for clsx/tailwind-merge without Tailwind dependency.
|
|
5
4
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @returns
|
|
5
|
+
* @param classes - Class values to combine (strings, undefined, null, false)
|
|
6
|
+
* @returns Combined class string
|
|
8
7
|
*
|
|
9
8
|
* @example
|
|
10
|
-
*
|
|
11
|
-
*
|
|
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
|
|
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
|
package/dist/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,
|
|
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.
|
|
4
|
-
"description": "A retro terminal-themed React component library built on Radix
|
|
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": "
|
|
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 +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 +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 +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"}
|