@drjoshcsimmons/scl 0.1.14 → 0.2.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/LICENSE +1 -1
- package/dist/components/ui/accordion/accordion.d.ts +1 -1
- package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion/index.d.ts +1 -1
- package/dist/components/ui/accordion/index.d.ts.map +1 -1
- 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/alert-dialog/alert-dialog.d.ts +2 -2
- package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog/index.d.ts +1 -1
- package/dist/components/ui/alert-dialog/index.d.ts.map +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +1 -1
- package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar/index.d.ts +1 -1
- package/dist/components/ui/avatar/index.d.ts.map +1 -1
- package/dist/components/ui/badge/badge.d.ts +1 -1
- 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.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/card/index.d.ts +1 -1
- package/dist/components/ui/card/index.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox/index.d.ts.map +1 -1
- package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible/index.d.ts +1 -1
- package/dist/components/ui/collapsible/index.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/index.d.ts +1 -1
- package/dist/components/ui/combobox/index.d.ts.map +1 -1
- package/dist/components/ui/command/command.d.ts.map +1 -1
- package/dist/components/ui/command/index.d.ts +1 -1
- package/dist/components/ui/command/index.d.ts.map +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +1 -1
- package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog/index.d.ts +1 -1
- package/dist/components/ui/dialog/index.d.ts.map +1 -1
- package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -1
- package/dist/components/ui/dithered-image/index.d.ts +1 -1
- package/dist/components/ui/dithered-image/index.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/index.d.ts.map +1 -1
- package/dist/components/ui/form/form.d.ts +1 -1
- package/dist/components/ui/form/form.d.ts.map +1 -1
- package/dist/components/ui/form/index.d.ts +1 -1
- package/dist/components/ui/form/index.d.ts.map +1 -1
- package/dist/components/ui/input/index.d.ts.map +1 -1
- package/dist/components/ui/input/input.d.ts.map +1 -1
- package/dist/components/ui/label/index.d.ts.map +1 -1
- package/dist/components/ui/label/label.d.ts +1 -1
- package/dist/components/ui/label/label.d.ts.map +1 -1
- package/dist/components/ui/popover/index.d.ts +1 -1
- package/dist/components/ui/popover/index.d.ts.map +1 -1
- package/dist/components/ui/popover/popover.d.ts +1 -1
- package/dist/components/ui/popover/popover.d.ts.map +1 -1
- package/dist/components/ui/progress/index.d.ts.map +1 -1
- package/dist/components/ui/progress/progress.d.ts +1 -1
- package/dist/components/ui/progress/progress.d.ts.map +1 -1
- package/dist/components/ui/radio-group/index.d.ts.map +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/index.d.ts.map +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/select/index.d.ts +1 -1
- package/dist/components/ui/select/index.d.ts.map +1 -1
- package/dist/components/ui/select/select.d.ts +1 -1
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/separator/index.d.ts.map +1 -1
- package/dist/components/ui/separator/separator.d.ts +1 -1
- package/dist/components/ui/separator/separator.d.ts.map +1 -1
- package/dist/components/ui/sheet/index.d.ts +1 -1
- package/dist/components/ui/sheet/index.d.ts.map +1 -1
- package/dist/components/ui/sheet/sheet.d.ts +2 -2
- package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
- package/dist/components/ui/skeleton/index.d.ts.map +1 -1
- package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/ui/slider/index.d.ts.map +1 -1
- package/dist/components/ui/slider/slider.d.ts +1 -1
- package/dist/components/ui/slider/slider.d.ts.map +1 -1
- package/dist/components/ui/statusline/index.d.ts.map +1 -1
- package/dist/components/ui/statusline/statusline.d.ts.map +1 -1
- package/dist/components/ui/switch/index.d.ts.map +1 -1
- package/dist/components/ui/switch/switch.d.ts +1 -1
- package/dist/components/ui/switch/switch.d.ts.map +1 -1
- package/dist/components/ui/table/index.d.ts +1 -1
- package/dist/components/ui/table/index.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/tabs/index.d.ts +1 -1
- package/dist/components/ui/tabs/index.d.ts.map +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +1 -1
- package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
- package/dist/components/ui/terminal-textarea/index.d.ts.map +1 -1
- package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea/index.d.ts.map +1 -1
- package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
- package/dist/components/ui/toggle/index.d.ts.map +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip/index.d.ts +1 -1
- package/dist/components/ui/tooltip/index.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index10.js +42 -44
- package/dist/index100.js +4 -13
- package/dist/index101.js +30 -9
- package/dist/index102.js +13 -30
- package/dist/index103.js +649 -3
- package/dist/index104.js +30 -25
- package/dist/index105.js +3 -5
- package/dist/index106.js +44 -51
- package/dist/index107.js +30 -30
- package/dist/index108.js +55 -30
- package/dist/index109.js +29 -47
- package/dist/index11.js +5 -11
- package/dist/index110.js +44 -646
- package/dist/index113.js +47 -11
- package/dist/index114.js +42 -200
- package/dist/index115.js +12 -22
- package/dist/index116.js +194 -388
- package/dist/index117.js +21 -47
- package/dist/index118.js +392 -40
- package/dist/index119.js +6 -21
- package/dist/index12.js +2 -2
- package/dist/index120.js +48 -9
- package/dist/index121.js +15 -32
- package/dist/index122.js +3 -12
- package/dist/index123.js +38 -6
- package/dist/index124.js +18 -48
- package/dist/index126.js +3 -3
- package/dist/index127.js +3 -3
- package/dist/index129.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index131.js +2 -5
- package/dist/index132.js +2 -3
- package/dist/index133.js +5 -24
- package/dist/index134.js +3 -113
- package/dist/index135.js +23 -15
- package/dist/index136.js +107 -519
- package/dist/index137.js +14 -126
- package/dist/index138.js +516 -125
- package/dist/index139.js +128 -2
- package/dist/index14.js +4 -13
- package/dist/index140.js +134 -2
- package/dist/index141.js +65 -69
- package/dist/index142.js +68 -8
- package/dist/index143.js +9 -14
- package/dist/index144.js +14 -66
- package/dist/index145.js +65 -64
- package/dist/index15.js +43 -67
- package/dist/index16.js +3 -30
- package/dist/index17.js +75 -80
- package/dist/index18.js +11 -13
- package/dist/index19.js +4 -4
- package/dist/index20.js +5 -12
- package/dist/index21.js +15 -15
- package/dist/index22.js +21 -24
- package/dist/index23.js +7 -14
- package/dist/index24.js +11 -11
- package/dist/index25.js +66 -72
- package/dist/index26.js +15 -17
- package/dist/index27.js +57 -51
- package/dist/index28.js +2 -10
- package/dist/index29.js +9 -12
- package/dist/index3.js +18 -18
- package/dist/index30.js +27 -60
- package/dist/index31.js +15 -15
- package/dist/index32.js +24 -47
- package/dist/index33.js +16 -16
- package/dist/index34.js +1 -4
- package/dist/index36.js +11 -11
- package/dist/index37.js +21 -18
- package/dist/index38.js +99 -38
- package/dist/index39.js +37 -64
- package/dist/index4.js +24 -31
- package/dist/index40.js +10 -48
- package/dist/index41.js +48 -99
- package/dist/index42.js +65 -10
- package/dist/index45.js +237 -33
- package/dist/index46.js +11 -241
- package/dist/index47.js +33 -237
- package/dist/index48.js +241 -11
- package/dist/index49.js +16 -258
- package/dist/index5.js +13 -26
- package/dist/index50.js +125 -12
- package/dist/index51.js +25 -524
- package/dist/index52.js +71 -20
- package/dist/index53.js +206 -131
- package/dist/index54.js +11 -73
- package/dist/index55.js +54 -330
- package/dist/index56.js +249 -231
- package/dist/index57.js +225 -11
- package/dist/index58.js +9 -82
- package/dist/index59.js +11 -249
- package/dist/index6.js +66 -36
- package/dist/index60.js +130 -9
- package/dist/index61.js +21 -129
- package/dist/index62.js +860 -18
- package/dist/index63.js +9 -860
- package/dist/index64.js +82 -9
- package/dist/index65.js +256 -27
- package/dist/index66.js +12 -435
- package/dist/index67.js +244 -55
- package/dist/index68.js +7 -7
- package/dist/index69.js +511 -206
- package/dist/index7.js +5 -5
- package/dist/index70.js +5 -4
- package/dist/index71.js +435 -12
- package/dist/index72.js +318 -107
- package/dist/index73.js +3 -3
- package/dist/index74.js +1 -1
- package/dist/index75.js +156 -249
- package/dist/index76.js +66 -5
- package/dist/index77.js +44 -25
- package/dist/index78.js +23 -64
- package/dist/index79.js +5 -123
- package/dist/index8.js +5 -5
- package/dist/index80.js +50 -13
- package/dist/index81.js +32 -133
- package/dist/index82.js +1 -1
- package/dist/index83.js +7 -218
- package/dist/index84.js +124 -13
- package/dist/index85.js +13 -67
- package/dist/index86.js +133 -32
- package/dist/index87.js +216 -45
- package/dist/index88.js +14 -52
- package/dist/index89.js +66 -47
- package/dist/index9.js +19 -26
- package/dist/index90.js +48 -9
- package/dist/index91.js +49 -45
- package/dist/index92.js +9 -8
- package/dist/index93.js +29 -47
- package/dist/index94.js +9 -30
- package/dist/index95.js +8 -8
- package/dist/index96.js +24 -54
- package/dist/index97.js +5 -10
- package/dist/index98.js +55 -4
- package/dist/index99.js +11 -30
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/tokens/animations.d.ts.map +1 -1
- package/dist/tokens/colors.d.ts.map +1 -1
- package/dist/tokens/index.d.ts +3 -3
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/shadows.d.ts.map +1 -1
- package/dist/tokens/spacing.d.ts.map +1 -1
- package/dist/tokens/typography.d.ts.map +1 -1
- package/package.json +19 -9
package/dist/index145.js
CHANGED
|
@@ -1,67 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
e = {
|
|
27
|
-
push: function(i) {
|
|
28
|
-
return u(i);
|
|
29
|
-
},
|
|
30
|
-
filter: function() {
|
|
31
|
-
return e;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
assignMedium: function(u) {
|
|
36
|
-
o = !0;
|
|
37
|
-
var n = [];
|
|
38
|
-
if (e.length) {
|
|
39
|
-
var i = e;
|
|
40
|
-
e = [], i.forEach(u), n = e;
|
|
41
|
-
}
|
|
42
|
-
var s = function() {
|
|
43
|
-
var f = n;
|
|
44
|
-
n = [], f.forEach(u);
|
|
45
|
-
}, a = function() {
|
|
46
|
-
return Promise.resolve().then(s);
|
|
47
|
-
};
|
|
48
|
-
a(), e = {
|
|
49
|
-
push: function(f) {
|
|
50
|
-
n.push(f), a();
|
|
51
|
-
},
|
|
52
|
-
filter: function(f) {
|
|
53
|
-
return n = n.filter(f), e;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
1
|
+
var N = function(r) {
|
|
2
|
+
return r.tagName === "TEXTAREA";
|
|
3
|
+
}, b = function(r, e) {
|
|
4
|
+
if (!(r instanceof Element))
|
|
5
|
+
return !1;
|
|
6
|
+
var t = window.getComputedStyle(r);
|
|
7
|
+
return (
|
|
8
|
+
// not-not-scrollable
|
|
9
|
+
t[e] !== "hidden" && // contains scroll inside self
|
|
10
|
+
!(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
|
|
11
|
+
);
|
|
12
|
+
}, D = function(r) {
|
|
13
|
+
return b(r, "overflowY");
|
|
14
|
+
}, E = function(r) {
|
|
15
|
+
return b(r, "overflowX");
|
|
16
|
+
}, T = function(r, e) {
|
|
17
|
+
var t = e.ownerDocument, l = e;
|
|
18
|
+
do {
|
|
19
|
+
typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
|
|
20
|
+
var f = g(r, l);
|
|
21
|
+
if (f) {
|
|
22
|
+
var n = m(r, l), i = n[1], o = n[2];
|
|
23
|
+
if (i > o)
|
|
24
|
+
return !0;
|
|
56
25
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
26
|
+
l = l.parentNode;
|
|
27
|
+
} while (l && l !== t.body);
|
|
28
|
+
return !1;
|
|
29
|
+
}, H = function(r) {
|
|
30
|
+
var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
|
|
31
|
+
return [
|
|
32
|
+
e,
|
|
33
|
+
t,
|
|
34
|
+
l
|
|
35
|
+
];
|
|
36
|
+
}, p = function(r) {
|
|
37
|
+
var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
|
|
38
|
+
return [
|
|
39
|
+
e,
|
|
40
|
+
t,
|
|
41
|
+
l
|
|
42
|
+
];
|
|
43
|
+
}, g = function(r, e) {
|
|
44
|
+
return r === "v" ? D(e) : E(e);
|
|
45
|
+
}, m = function(r, e) {
|
|
46
|
+
return r === "v" ? H(e) : p(e);
|
|
47
|
+
}, B = function(r, e) {
|
|
48
|
+
return r === "h" && e === "rtl" ? -1 : 1;
|
|
49
|
+
}, V = function(r, e, t, l, f) {
|
|
50
|
+
var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
|
|
51
|
+
do {
|
|
52
|
+
if (!o)
|
|
53
|
+
break;
|
|
54
|
+
var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
|
|
55
|
+
(v || w) && g(r, o) && (h += w, S += v);
|
|
56
|
+
var a = o.parentNode;
|
|
57
|
+
o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
|
|
58
|
+
} while (
|
|
59
|
+
// portaled content
|
|
60
|
+
!d && o !== document.body || // self content
|
|
61
|
+
d && (e.contains(o) || e === o)
|
|
62
|
+
);
|
|
63
|
+
return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
|
|
64
|
+
};
|
|
65
65
|
export {
|
|
66
|
-
|
|
66
|
+
V as handleScroll,
|
|
67
|
+
T as locationCouldBeScrolled
|
|
67
68
|
};
|
package/dist/index15.js
CHANGED
|
@@ -1,100 +1,76 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
import y from "./
|
|
6
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { Root as p, Close as i, Portal as x, Trigger as N, Content as n, Description as c, Overlay as d, Title as m } from "./index65.js";
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import { cn as t } from "./index2.js";
|
|
5
|
+
import y from "./index66.js";
|
|
6
|
+
const j = p, z = N, D = x, F = i, f = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
|
|
7
7
|
d,
|
|
8
8
|
{
|
|
9
|
-
ref:
|
|
10
|
-
className:
|
|
11
|
-
|
|
12
|
-
a
|
|
13
|
-
),
|
|
14
|
-
...e
|
|
9
|
+
ref: s,
|
|
10
|
+
className: t("fixed inset-0 z-50 bg-black/80 data-[state=closed]:hidden", e),
|
|
11
|
+
...a
|
|
15
12
|
}
|
|
16
13
|
));
|
|
17
14
|
f.displayName = d.displayName;
|
|
18
|
-
const
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
15
|
+
const u = l.forwardRef(({ className: e, children: a, ...s }, g) => /* @__PURE__ */ r(D, { children: [
|
|
16
|
+
/* @__PURE__ */ o(f, {}),
|
|
17
|
+
/* @__PURE__ */ r(
|
|
18
|
+
n,
|
|
22
19
|
{
|
|
23
|
-
ref:
|
|
24
|
-
className:
|
|
25
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border-2 bg-black p-6
|
|
26
|
-
|
|
20
|
+
ref: g,
|
|
21
|
+
className: t(
|
|
22
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border-2 bg-black p-6",
|
|
23
|
+
e
|
|
27
24
|
),
|
|
28
|
-
...
|
|
25
|
+
...s,
|
|
29
26
|
children: [
|
|
30
|
-
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */
|
|
27
|
+
a,
|
|
28
|
+
/* @__PURE__ */ r(i, { className: "absolute right-4 top-4 ring-offset-background hover:text-primary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer", children: [
|
|
29
|
+
/* @__PURE__ */ o(y, { className: "h-4 w-4" }),
|
|
30
|
+
/* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
|
|
34
31
|
] })
|
|
35
32
|
]
|
|
36
33
|
}
|
|
37
34
|
)
|
|
38
35
|
] }));
|
|
39
|
-
|
|
40
|
-
const b = ({
|
|
41
|
-
className: a,
|
|
42
|
-
...e
|
|
43
|
-
}) => /* @__PURE__ */ t(
|
|
44
|
-
"div",
|
|
45
|
-
{
|
|
46
|
-
className: s(
|
|
47
|
-
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
48
|
-
a
|
|
49
|
-
),
|
|
50
|
-
...e
|
|
51
|
-
}
|
|
52
|
-
);
|
|
36
|
+
u.displayName = n.displayName;
|
|
37
|
+
const b = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: t("flex flex-col space-y-1.5 text-center sm:text-left", e), ...a });
|
|
53
38
|
b.displayName = "DialogHeader";
|
|
54
|
-
const h = ({
|
|
55
|
-
className: a,
|
|
56
|
-
...e
|
|
57
|
-
}) => /* @__PURE__ */ t(
|
|
39
|
+
const h = ({ className: e, ...a }) => /* @__PURE__ */ o(
|
|
58
40
|
"div",
|
|
59
41
|
{
|
|
60
|
-
className:
|
|
61
|
-
|
|
62
|
-
a
|
|
63
|
-
),
|
|
64
|
-
...e
|
|
42
|
+
className: t("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
43
|
+
...a
|
|
65
44
|
}
|
|
66
45
|
);
|
|
67
46
|
h.displayName = "DialogFooter";
|
|
68
|
-
const w =
|
|
69
|
-
|
|
47
|
+
const w = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
|
|
48
|
+
m,
|
|
70
49
|
{
|
|
71
|
-
ref:
|
|
72
|
-
className:
|
|
73
|
-
|
|
74
|
-
a
|
|
75
|
-
),
|
|
76
|
-
...e
|
|
50
|
+
ref: s,
|
|
51
|
+
className: t("text-lg font-semibold leading-none tracking-tight", e),
|
|
52
|
+
...a
|
|
77
53
|
}
|
|
78
54
|
));
|
|
79
|
-
w.displayName =
|
|
80
|
-
const v =
|
|
81
|
-
|
|
55
|
+
w.displayName = m.displayName;
|
|
56
|
+
const v = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
|
|
57
|
+
c,
|
|
82
58
|
{
|
|
83
|
-
ref:
|
|
84
|
-
className:
|
|
85
|
-
...
|
|
59
|
+
ref: s,
|
|
60
|
+
className: t("text-sm text-muted-foreground", e),
|
|
61
|
+
...a
|
|
86
62
|
}
|
|
87
63
|
));
|
|
88
|
-
v.displayName =
|
|
64
|
+
v.displayName = c.displayName;
|
|
89
65
|
export {
|
|
90
|
-
|
|
66
|
+
j as Dialog,
|
|
91
67
|
F as DialogClose,
|
|
92
|
-
|
|
68
|
+
u as DialogContent,
|
|
93
69
|
v as DialogDescription,
|
|
94
70
|
h as DialogFooter,
|
|
95
71
|
b as DialogHeader,
|
|
96
72
|
f as DialogOverlay,
|
|
97
|
-
|
|
73
|
+
D as DialogPortal,
|
|
98
74
|
w as DialogTitle,
|
|
99
|
-
|
|
75
|
+
z as DialogTrigger
|
|
100
76
|
};
|
package/dist/index16.js
CHANGED
|
@@ -173,11 +173,7 @@ const O = R.forwardRef(
|
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
u.current = e;
|
|
176
|
-
const x = r === "bayer" ? B : F, l = I(e, e.VERTEX_SHADER, M), g = I(
|
|
177
|
-
e,
|
|
178
|
-
e.FRAGMENT_SHADER,
|
|
179
|
-
x
|
|
180
|
-
);
|
|
176
|
+
const x = r === "bayer" ? B : F, l = I(e, e.VERTEX_SHADER, M), g = I(e, e.FRAGMENT_SHADER, x);
|
|
181
177
|
if (!l || !g) {
|
|
182
178
|
console.error("Failed to create shaders");
|
|
183
179
|
return;
|
|
@@ -203,20 +199,7 @@ const O = R.forwardRef(
|
|
|
203
199
|
P
|
|
204
200
|
), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, e.REPEAT), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, e.REPEAT), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, e.NEAREST), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, e.NEAREST), p.current = S;
|
|
205
201
|
}
|
|
206
|
-
const T = new Float32Array([
|
|
207
|
-
-1,
|
|
208
|
-
-1,
|
|
209
|
-
1,
|
|
210
|
-
-1,
|
|
211
|
-
-1,
|
|
212
|
-
1,
|
|
213
|
-
-1,
|
|
214
|
-
1,
|
|
215
|
-
1,
|
|
216
|
-
-1,
|
|
217
|
-
1,
|
|
218
|
-
1
|
|
219
|
-
]), h = new Float32Array([0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0]), C = e.createBuffer();
|
|
202
|
+
const T = new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]), h = new Float32Array([0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0]), C = e.createBuffer();
|
|
220
203
|
e.bindBuffer(e.ARRAY_BUFFER, C), e.bufferData(e.ARRAY_BUFFER, T, e.STATIC_DRAW);
|
|
221
204
|
const D = e.getAttribLocation(s, "a_position");
|
|
222
205
|
e.enableVertexAttribArray(D), e.vertexAttribPointer(D, 2, e.FLOAT, !1, 0, 0);
|
|
@@ -247,17 +230,7 @@ const O = R.forwardRef(
|
|
|
247
230
|
}
|
|
248
231
|
r === "bayer" && (e.activeTexture(e.TEXTURE1), e.bindTexture(e.TEXTURE_2D, p.current)), e.activeTexture(e.TEXTURE0);
|
|
249
232
|
const C = e.createTexture();
|
|
250
|
-
e.bindTexture(e.TEXTURE_2D, C), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, e.NEAREST), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, e.NEAREST), h instanceof ImageData, e.texImage2D(
|
|
251
|
-
e.TEXTURE_2D,
|
|
252
|
-
0,
|
|
253
|
-
e.RGBA,
|
|
254
|
-
e.RGBA,
|
|
255
|
-
e.UNSIGNED_BYTE,
|
|
256
|
-
h
|
|
257
|
-
), r === "bayer" && (e.uniform2f(e.getUniformLocation(x, "u_resolution"), s, T), e.uniform1f(
|
|
258
|
-
e.getUniformLocation(x, "u_ditherSize"),
|
|
259
|
-
_
|
|
260
|
-
)), e.uniform3f(
|
|
233
|
+
e.bindTexture(e.TEXTURE_2D, C), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, e.CLAMP_TO_EDGE), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, e.NEAREST), e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, e.NEAREST), h instanceof ImageData, e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, e.RGBA, e.UNSIGNED_BYTE, h), r === "bayer" && (e.uniform2f(e.getUniformLocation(x, "u_resolution"), s, T), e.uniform1f(e.getUniformLocation(x, "u_ditherSize"), _)), e.uniform3f(
|
|
261
234
|
e.getUniformLocation(x, "u_color"),
|
|
262
235
|
f[0] / 255,
|
|
263
236
|
f[1] / 255,
|
package/dist/index17.js
CHANGED
|
@@ -1,142 +1,137 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { cn as
|
|
5
|
-
import D from "./
|
|
6
|
-
import M from "./
|
|
7
|
-
import S from "./
|
|
8
|
-
const H = w, J =
|
|
9
|
-
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Root as w, Group as h, Portal as d, RadioGroup as N, Sub as v, Trigger as R, CheckboxItem as m, ItemIndicator as l, Content as c, Item as u, Label as f, RadioItem as y, Separator as b, SubContent as g, SubTrigger as x } from "./index57.js";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import { cn as n } from "./index2.js";
|
|
5
|
+
import D from "./index58.js";
|
|
6
|
+
import M from "./index54.js";
|
|
7
|
+
import S from "./index59.js";
|
|
8
|
+
const H = w, J = R, K = h, O = d, Q = v, U = N, I = s.forwardRef(({ className: e, inset: r, children: o, ...t }, i) => /* @__PURE__ */ p(
|
|
9
|
+
x,
|
|
10
10
|
{
|
|
11
11
|
ref: i,
|
|
12
|
-
className:
|
|
12
|
+
className: n(
|
|
13
13
|
"flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none hover:bg-primary/20 focus:bg-primary/20 data-[state=open]:bg-primary/20 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
14
|
-
|
|
14
|
+
r && "pl-8",
|
|
15
15
|
e
|
|
16
16
|
),
|
|
17
|
-
...
|
|
17
|
+
...t,
|
|
18
18
|
children: [
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */
|
|
19
|
+
o,
|
|
20
|
+
/* @__PURE__ */ a(S, { className: "ml-auto" })
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
));
|
|
24
|
-
I.displayName =
|
|
25
|
-
const C =
|
|
24
|
+
I.displayName = x.displayName;
|
|
25
|
+
const C = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
26
26
|
g,
|
|
27
27
|
{
|
|
28
|
-
ref:
|
|
29
|
-
className:
|
|
30
|
-
"z-[60] min-w-[8rem] overflow-hidden border-2 border-primary bg-black p-1 text-primary
|
|
28
|
+
ref: o,
|
|
29
|
+
className: n(
|
|
30
|
+
"z-[60] min-w-[8rem] overflow-hidden border-2 border-primary bg-black p-1 text-primary",
|
|
31
31
|
e
|
|
32
32
|
),
|
|
33
|
-
...
|
|
33
|
+
...r
|
|
34
34
|
}
|
|
35
35
|
));
|
|
36
36
|
C.displayName = g.displayName;
|
|
37
|
-
const k =
|
|
38
|
-
|
|
37
|
+
const k = s.forwardRef(({ className: e, sideOffset: r = 4, ...o }, t) => /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(
|
|
38
|
+
c,
|
|
39
39
|
{
|
|
40
|
-
ref:
|
|
41
|
-
sideOffset:
|
|
42
|
-
className:
|
|
40
|
+
ref: t,
|
|
41
|
+
sideOffset: r,
|
|
42
|
+
className: n(
|
|
43
43
|
"z-[60] min-w-[8rem] overflow-hidden border-2 border-primary bg-black p-1 text-primary",
|
|
44
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
45
44
|
e
|
|
46
45
|
),
|
|
47
|
-
...
|
|
46
|
+
...o
|
|
48
47
|
}
|
|
49
48
|
) }));
|
|
50
|
-
k.displayName =
|
|
51
|
-
const
|
|
52
|
-
|
|
49
|
+
k.displayName = c.displayName;
|
|
50
|
+
const G = s.forwardRef(({ className: e, inset: r, ...o }, t) => /* @__PURE__ */ a(
|
|
51
|
+
u,
|
|
53
52
|
{
|
|
54
|
-
ref:
|
|
55
|
-
className:
|
|
56
|
-
"relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none
|
|
57
|
-
|
|
53
|
+
ref: t,
|
|
54
|
+
className: n(
|
|
55
|
+
"relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
56
|
+
r && "pl-8",
|
|
58
57
|
e
|
|
59
58
|
),
|
|
60
|
-
...
|
|
59
|
+
...o
|
|
61
60
|
}
|
|
62
61
|
));
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
62
|
+
G.displayName = u.displayName;
|
|
63
|
+
const T = s.forwardRef(({ className: e, children: r, checked: o, ...t }, i) => /* @__PURE__ */ p(
|
|
64
|
+
m,
|
|
66
65
|
{
|
|
67
66
|
ref: i,
|
|
68
|
-
className:
|
|
69
|
-
"relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none
|
|
67
|
+
className: n(
|
|
68
|
+
"relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
70
69
|
e
|
|
71
70
|
),
|
|
72
|
-
checked:
|
|
73
|
-
...
|
|
71
|
+
checked: o,
|
|
72
|
+
...t,
|
|
74
73
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
74
|
+
/* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(D, { className: "h-4 w-4" }) }) }),
|
|
75
|
+
r
|
|
77
76
|
]
|
|
78
77
|
}
|
|
79
78
|
));
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
79
|
+
T.displayName = m.displayName;
|
|
80
|
+
const j = s.forwardRef(({ className: e, children: r, ...o }, t) => /* @__PURE__ */ p(
|
|
81
|
+
y,
|
|
83
82
|
{
|
|
84
|
-
ref:
|
|
85
|
-
className:
|
|
86
|
-
"relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none
|
|
83
|
+
ref: t,
|
|
84
|
+
className: n(
|
|
85
|
+
"relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
87
86
|
e
|
|
88
87
|
),
|
|
89
|
-
...
|
|
88
|
+
...o,
|
|
90
89
|
children: [
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
90
|
+
/* @__PURE__ */ a("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a(l, { children: /* @__PURE__ */ a(M, { className: "h-4 w-4 fill-current" }) }) }),
|
|
91
|
+
r
|
|
93
92
|
]
|
|
94
93
|
}
|
|
95
94
|
));
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
|
|
95
|
+
j.displayName = y.displayName;
|
|
96
|
+
const z = s.forwardRef(({ className: e, inset: r, ...o }, t) => /* @__PURE__ */ a(
|
|
97
|
+
f,
|
|
99
98
|
{
|
|
100
|
-
ref:
|
|
101
|
-
className:
|
|
102
|
-
|
|
103
|
-
a && "pl-8",
|
|
104
|
-
e
|
|
105
|
-
),
|
|
106
|
-
...t
|
|
99
|
+
ref: t,
|
|
100
|
+
className: n("px-2 py-1.5 text-sm font-semibold", r && "pl-8", e),
|
|
101
|
+
...o
|
|
107
102
|
}
|
|
108
103
|
));
|
|
109
|
-
|
|
110
|
-
const L =
|
|
111
|
-
|
|
104
|
+
z.displayName = f.displayName;
|
|
105
|
+
const L = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
|
|
106
|
+
b,
|
|
112
107
|
{
|
|
113
|
-
ref:
|
|
114
|
-
className:
|
|
115
|
-
...
|
|
108
|
+
ref: o,
|
|
109
|
+
className: n("-mx-1 my-1 h-px bg-muted", e),
|
|
110
|
+
...r
|
|
116
111
|
}
|
|
117
112
|
));
|
|
118
|
-
L.displayName =
|
|
119
|
-
const P = ({
|
|
120
|
-
className: e,
|
|
121
|
-
...a
|
|
122
|
-
}) => /* @__PURE__ */ o(
|
|
113
|
+
L.displayName = b.displayName;
|
|
114
|
+
const P = ({ className: e, ...r }) => /* @__PURE__ */ a(
|
|
123
115
|
"span",
|
|
124
116
|
{
|
|
125
|
-
className:
|
|
126
|
-
|
|
117
|
+
className: n(
|
|
118
|
+
"ml-auto text-xs tracking-widest text-primary border border-primary px-1",
|
|
119
|
+
e
|
|
120
|
+
),
|
|
121
|
+
...r
|
|
127
122
|
}
|
|
128
123
|
);
|
|
129
124
|
P.displayName = "DropdownMenuShortcut";
|
|
130
125
|
export {
|
|
131
126
|
H as DropdownMenu,
|
|
132
|
-
|
|
127
|
+
T as DropdownMenuCheckboxItem,
|
|
133
128
|
k as DropdownMenuContent,
|
|
134
129
|
K as DropdownMenuGroup,
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
G as DropdownMenuItem,
|
|
131
|
+
z as DropdownMenuLabel,
|
|
137
132
|
O as DropdownMenuPortal,
|
|
138
133
|
U as DropdownMenuRadioGroup,
|
|
139
|
-
|
|
134
|
+
j as DropdownMenuRadioItem,
|
|
140
135
|
L as DropdownMenuSeparator,
|
|
141
136
|
P as DropdownMenuShortcut,
|
|
142
137
|
Q as DropdownMenuSub,
|
package/dist/index18.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Root as F } from "./index55.js";
|
|
2
3
|
import * as s from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { FormProvider as u, useFormContext as p, Controller as x } from "./index75.js";
|
|
4
|
+
import { FormProvider as u, Controller as p, useFormContext as x } from "./index56.js";
|
|
5
5
|
import { cn as a } from "./index2.js";
|
|
6
6
|
import { Label as I } from "./index20.js";
|
|
7
|
-
const D = u, f = s.createContext(
|
|
8
|
-
{}
|
|
9
|
-
), M = ({
|
|
7
|
+
const D = u, f = s.createContext({}), M = ({
|
|
10
8
|
...e
|
|
11
|
-
}) => /* @__PURE__ */ i(f.Provider, { value: { name: e.name }, children: /* @__PURE__ */ i(
|
|
12
|
-
const e = s.useContext(f), o = s.useContext(l), { getFieldState: r, formState: t } =
|
|
9
|
+
}) => /* @__PURE__ */ i(f.Provider, { value: { name: e.name }, children: /* @__PURE__ */ i(p, { ...e }) }), d = () => {
|
|
10
|
+
const e = s.useContext(f), o = s.useContext(l), { getFieldState: r, formState: t } = x(), m = r(e.name, t);
|
|
13
11
|
if (!e)
|
|
14
12
|
throw new Error("useFormField should be used within <FormField>");
|
|
15
13
|
const { id: n } = o;
|
|
@@ -21,12 +19,12 @@ const D = u, f = s.createContext(
|
|
|
21
19
|
formMessageId: `${n}-form-item-message`,
|
|
22
20
|
...m
|
|
23
21
|
};
|
|
24
|
-
}, l = s.createContext(
|
|
25
|
-
{}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
}, l = s.createContext({}), C = s.forwardRef(
|
|
23
|
+
({ className: e, ...o }, r) => {
|
|
24
|
+
const t = s.useId();
|
|
25
|
+
return /* @__PURE__ */ i(l.Provider, { value: { id: t }, children: /* @__PURE__ */ i("div", { ref: r, className: a("space-y-2", e), ...o }) });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
30
28
|
C.displayName = "FormItem";
|
|
31
29
|
const g = s.forwardRef(({ className: e, ...o }, r) => {
|
|
32
30
|
const { error: t, formItemId: m } = d();
|
package/dist/index19.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { cn as f } from "./index2.js";
|
|
4
|
-
const
|
|
4
|
+
const m = t.forwardRef(
|
|
5
5
|
({ className: r, type: e, ...i }, l) => /* @__PURE__ */ o(
|
|
6
6
|
"input",
|
|
7
7
|
{
|
|
8
8
|
type: e,
|
|
9
9
|
className: f(
|
|
10
|
-
"flex h-10 w-full border-2 border-primary bg-black px-3 py-1 text-base text-primary
|
|
10
|
+
"flex h-10 w-full border-2 border-primary bg-black px-3 py-1 text-base text-primary file:-ml-3 file:-my-1 file:mr-4 file:h-10 file:px-3 file:border-0 file:border-r file:border-primary file:bg-primary file:text-primary-foreground file:text-sm file:font-medium file:cursor-pointer hover:file:bg-black hover:file:text-primary placeholder:text-primary/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
11
11
|
r
|
|
12
12
|
),
|
|
13
13
|
ref: l,
|
|
@@ -15,7 +15,7 @@ const a = t.forwardRef(
|
|
|
15
15
|
}
|
|
16
16
|
)
|
|
17
17
|
);
|
|
18
|
-
|
|
18
|
+
m.displayName = "Input";
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
m as Input
|
|
21
21
|
};
|
package/dist/index20.js
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { Root as o } from "./index49.js";
|
|
3
|
+
import { cva as t } from "./index47.js";
|
|
4
|
+
import * as i from "react";
|
|
5
5
|
import { cn as s } from "./index2.js";
|
|
6
|
-
const l =
|
|
6
|
+
const l = t(
|
|
7
7
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
8
|
-
), p =
|
|
9
|
-
o,
|
|
10
|
-
{
|
|
11
|
-
ref: r,
|
|
12
|
-
className: s(l(), a),
|
|
13
|
-
...e
|
|
14
|
-
}
|
|
15
|
-
));
|
|
8
|
+
), p = i.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ m(o, { ref: r, className: s(l(), a), ...e }));
|
|
16
9
|
p.displayName = o.displayName;
|
|
17
10
|
export {
|
|
18
11
|
p as Label
|