@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.
Files changed (258) hide show
  1. package/LICENSE +1 -1
  2. package/dist/components/ui/accordion/accordion.d.ts +1 -1
  3. package/dist/components/ui/accordion/accordion.d.ts.map +1 -1
  4. package/dist/components/ui/accordion/index.d.ts +1 -1
  5. package/dist/components/ui/accordion/index.d.ts.map +1 -1
  6. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  7. package/dist/components/ui/alert/index.d.ts +1 -1
  8. package/dist/components/ui/alert/index.d.ts.map +1 -1
  9. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +2 -2
  10. package/dist/components/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
  11. package/dist/components/ui/alert-dialog/index.d.ts +1 -1
  12. package/dist/components/ui/alert-dialog/index.d.ts.map +1 -1
  13. package/dist/components/ui/avatar/avatar.d.ts +1 -1
  14. package/dist/components/ui/avatar/avatar.d.ts.map +1 -1
  15. package/dist/components/ui/avatar/index.d.ts +1 -1
  16. package/dist/components/ui/avatar/index.d.ts.map +1 -1
  17. package/dist/components/ui/badge/badge.d.ts +1 -1
  18. package/dist/components/ui/badge/badge.d.ts.map +1 -1
  19. package/dist/components/ui/badge/index.d.ts +1 -1
  20. package/dist/components/ui/badge/index.d.ts.map +1 -1
  21. package/dist/components/ui/button/button.d.ts.map +1 -1
  22. package/dist/components/ui/button/index.d.ts +1 -1
  23. package/dist/components/ui/button/index.d.ts.map +1 -1
  24. package/dist/components/ui/card/card.d.ts.map +1 -1
  25. package/dist/components/ui/card/index.d.ts +1 -1
  26. package/dist/components/ui/card/index.d.ts.map +1 -1
  27. package/dist/components/ui/checkbox/checkbox.d.ts +1 -1
  28. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  29. package/dist/components/ui/checkbox/index.d.ts.map +1 -1
  30. package/dist/components/ui/collapsible/collapsible.d.ts.map +1 -1
  31. package/dist/components/ui/collapsible/index.d.ts +1 -1
  32. package/dist/components/ui/collapsible/index.d.ts.map +1 -1
  33. package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
  34. package/dist/components/ui/combobox/index.d.ts +1 -1
  35. package/dist/components/ui/combobox/index.d.ts.map +1 -1
  36. package/dist/components/ui/command/command.d.ts.map +1 -1
  37. package/dist/components/ui/command/index.d.ts +1 -1
  38. package/dist/components/ui/command/index.d.ts.map +1 -1
  39. package/dist/components/ui/dialog/dialog.d.ts +1 -1
  40. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  41. package/dist/components/ui/dialog/index.d.ts +1 -1
  42. package/dist/components/ui/dialog/index.d.ts.map +1 -1
  43. package/dist/components/ui/dithered-image/dithered-image.d.ts.map +1 -1
  44. package/dist/components/ui/dithered-image/index.d.ts +1 -1
  45. package/dist/components/ui/dithered-image/index.d.ts.map +1 -1
  46. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +1 -1
  47. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  48. package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
  49. package/dist/components/ui/dropdown-menu/index.d.ts.map +1 -1
  50. package/dist/components/ui/form/form.d.ts +1 -1
  51. package/dist/components/ui/form/form.d.ts.map +1 -1
  52. package/dist/components/ui/form/index.d.ts +1 -1
  53. package/dist/components/ui/form/index.d.ts.map +1 -1
  54. package/dist/components/ui/input/index.d.ts.map +1 -1
  55. package/dist/components/ui/input/input.d.ts.map +1 -1
  56. package/dist/components/ui/label/index.d.ts.map +1 -1
  57. package/dist/components/ui/label/label.d.ts +1 -1
  58. package/dist/components/ui/label/label.d.ts.map +1 -1
  59. package/dist/components/ui/popover/index.d.ts +1 -1
  60. package/dist/components/ui/popover/index.d.ts.map +1 -1
  61. package/dist/components/ui/popover/popover.d.ts +1 -1
  62. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  63. package/dist/components/ui/progress/index.d.ts.map +1 -1
  64. package/dist/components/ui/progress/progress.d.ts +1 -1
  65. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  66. package/dist/components/ui/radio-group/index.d.ts.map +1 -1
  67. package/dist/components/ui/radio-group/radio-group.d.ts +1 -1
  68. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  69. package/dist/components/ui/scroll-area/index.d.ts.map +1 -1
  70. package/dist/components/ui/scroll-area/scroll-area.d.ts +1 -1
  71. package/dist/components/ui/scroll-area/scroll-area.d.ts.map +1 -1
  72. package/dist/components/ui/select/index.d.ts +1 -1
  73. package/dist/components/ui/select/index.d.ts.map +1 -1
  74. package/dist/components/ui/select/select.d.ts +1 -1
  75. package/dist/components/ui/select/select.d.ts.map +1 -1
  76. package/dist/components/ui/separator/index.d.ts.map +1 -1
  77. package/dist/components/ui/separator/separator.d.ts +1 -1
  78. package/dist/components/ui/separator/separator.d.ts.map +1 -1
  79. package/dist/components/ui/sheet/index.d.ts +1 -1
  80. package/dist/components/ui/sheet/index.d.ts.map +1 -1
  81. package/dist/components/ui/sheet/sheet.d.ts +2 -2
  82. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  83. package/dist/components/ui/skeleton/index.d.ts.map +1 -1
  84. package/dist/components/ui/skeleton/skeleton.d.ts.map +1 -1
  85. package/dist/components/ui/slider/index.d.ts.map +1 -1
  86. package/dist/components/ui/slider/slider.d.ts +1 -1
  87. package/dist/components/ui/slider/slider.d.ts.map +1 -1
  88. package/dist/components/ui/statusline/index.d.ts.map +1 -1
  89. package/dist/components/ui/statusline/statusline.d.ts.map +1 -1
  90. package/dist/components/ui/switch/index.d.ts.map +1 -1
  91. package/dist/components/ui/switch/switch.d.ts +1 -1
  92. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  93. package/dist/components/ui/table/index.d.ts +1 -1
  94. package/dist/components/ui/table/index.d.ts.map +1 -1
  95. package/dist/components/ui/table/table.d.ts +1 -1
  96. package/dist/components/ui/table/table.d.ts.map +1 -1
  97. package/dist/components/ui/tabs/index.d.ts +1 -1
  98. package/dist/components/ui/tabs/index.d.ts.map +1 -1
  99. package/dist/components/ui/tabs/tabs.d.ts +1 -1
  100. package/dist/components/ui/tabs/tabs.d.ts.map +1 -1
  101. package/dist/components/ui/terminal-textarea/index.d.ts.map +1 -1
  102. package/dist/components/ui/terminal-textarea/terminal-textarea.d.ts.map +1 -1
  103. package/dist/components/ui/textarea/index.d.ts.map +1 -1
  104. package/dist/components/ui/textarea/textarea.d.ts.map +1 -1
  105. package/dist/components/ui/toggle/index.d.ts.map +1 -1
  106. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  107. package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
  108. package/dist/components/ui/tooltip/index.d.ts +1 -1
  109. package/dist/components/ui/tooltip/index.d.ts.map +1 -1
  110. package/dist/components/ui/tooltip/tooltip.d.ts +1 -1
  111. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  112. package/dist/index.d.ts.map +1 -1
  113. package/dist/index.js +12 -12
  114. package/dist/index10.js +42 -44
  115. package/dist/index100.js +4 -13
  116. package/dist/index101.js +30 -9
  117. package/dist/index102.js +13 -30
  118. package/dist/index103.js +649 -3
  119. package/dist/index104.js +30 -25
  120. package/dist/index105.js +3 -5
  121. package/dist/index106.js +44 -51
  122. package/dist/index107.js +30 -30
  123. package/dist/index108.js +55 -30
  124. package/dist/index109.js +29 -47
  125. package/dist/index11.js +5 -11
  126. package/dist/index110.js +44 -646
  127. package/dist/index113.js +47 -11
  128. package/dist/index114.js +42 -200
  129. package/dist/index115.js +12 -22
  130. package/dist/index116.js +194 -388
  131. package/dist/index117.js +21 -47
  132. package/dist/index118.js +392 -40
  133. package/dist/index119.js +6 -21
  134. package/dist/index12.js +2 -2
  135. package/dist/index120.js +48 -9
  136. package/dist/index121.js +15 -32
  137. package/dist/index122.js +3 -12
  138. package/dist/index123.js +38 -6
  139. package/dist/index124.js +18 -48
  140. package/dist/index126.js +3 -3
  141. package/dist/index127.js +3 -3
  142. package/dist/index129.js +1 -1
  143. package/dist/index13.js +2 -2
  144. package/dist/index130.js +1 -1
  145. package/dist/index131.js +2 -5
  146. package/dist/index132.js +2 -3
  147. package/dist/index133.js +5 -24
  148. package/dist/index134.js +3 -113
  149. package/dist/index135.js +23 -15
  150. package/dist/index136.js +107 -519
  151. package/dist/index137.js +14 -126
  152. package/dist/index138.js +516 -125
  153. package/dist/index139.js +128 -2
  154. package/dist/index14.js +4 -13
  155. package/dist/index140.js +134 -2
  156. package/dist/index141.js +65 -69
  157. package/dist/index142.js +68 -8
  158. package/dist/index143.js +9 -14
  159. package/dist/index144.js +14 -66
  160. package/dist/index145.js +65 -64
  161. package/dist/index15.js +43 -67
  162. package/dist/index16.js +3 -30
  163. package/dist/index17.js +75 -80
  164. package/dist/index18.js +11 -13
  165. package/dist/index19.js +4 -4
  166. package/dist/index20.js +5 -12
  167. package/dist/index21.js +15 -15
  168. package/dist/index22.js +21 -24
  169. package/dist/index23.js +7 -14
  170. package/dist/index24.js +11 -11
  171. package/dist/index25.js +66 -72
  172. package/dist/index26.js +15 -17
  173. package/dist/index27.js +57 -51
  174. package/dist/index28.js +2 -10
  175. package/dist/index29.js +9 -12
  176. package/dist/index3.js +18 -18
  177. package/dist/index30.js +27 -60
  178. package/dist/index31.js +15 -15
  179. package/dist/index32.js +24 -47
  180. package/dist/index33.js +16 -16
  181. package/dist/index34.js +1 -4
  182. package/dist/index36.js +11 -11
  183. package/dist/index37.js +21 -18
  184. package/dist/index38.js +99 -38
  185. package/dist/index39.js +37 -64
  186. package/dist/index4.js +24 -31
  187. package/dist/index40.js +10 -48
  188. package/dist/index41.js +48 -99
  189. package/dist/index42.js +65 -10
  190. package/dist/index45.js +237 -33
  191. package/dist/index46.js +11 -241
  192. package/dist/index47.js +33 -237
  193. package/dist/index48.js +241 -11
  194. package/dist/index49.js +16 -258
  195. package/dist/index5.js +13 -26
  196. package/dist/index50.js +125 -12
  197. package/dist/index51.js +25 -524
  198. package/dist/index52.js +71 -20
  199. package/dist/index53.js +206 -131
  200. package/dist/index54.js +11 -73
  201. package/dist/index55.js +54 -330
  202. package/dist/index56.js +249 -231
  203. package/dist/index57.js +225 -11
  204. package/dist/index58.js +9 -82
  205. package/dist/index59.js +11 -249
  206. package/dist/index6.js +66 -36
  207. package/dist/index60.js +130 -9
  208. package/dist/index61.js +21 -129
  209. package/dist/index62.js +860 -18
  210. package/dist/index63.js +9 -860
  211. package/dist/index64.js +82 -9
  212. package/dist/index65.js +256 -27
  213. package/dist/index66.js +12 -435
  214. package/dist/index67.js +244 -55
  215. package/dist/index68.js +7 -7
  216. package/dist/index69.js +511 -206
  217. package/dist/index7.js +5 -5
  218. package/dist/index70.js +5 -4
  219. package/dist/index71.js +435 -12
  220. package/dist/index72.js +318 -107
  221. package/dist/index73.js +3 -3
  222. package/dist/index74.js +1 -1
  223. package/dist/index75.js +156 -249
  224. package/dist/index76.js +66 -5
  225. package/dist/index77.js +44 -25
  226. package/dist/index78.js +23 -64
  227. package/dist/index79.js +5 -123
  228. package/dist/index8.js +5 -5
  229. package/dist/index80.js +50 -13
  230. package/dist/index81.js +32 -133
  231. package/dist/index82.js +1 -1
  232. package/dist/index83.js +7 -218
  233. package/dist/index84.js +124 -13
  234. package/dist/index85.js +13 -67
  235. package/dist/index86.js +133 -32
  236. package/dist/index87.js +216 -45
  237. package/dist/index88.js +14 -52
  238. package/dist/index89.js +66 -47
  239. package/dist/index9.js +19 -26
  240. package/dist/index90.js +48 -9
  241. package/dist/index91.js +49 -45
  242. package/dist/index92.js +9 -8
  243. package/dist/index93.js +29 -47
  244. package/dist/index94.js +9 -30
  245. package/dist/index95.js +8 -8
  246. package/dist/index96.js +24 -54
  247. package/dist/index97.js +5 -10
  248. package/dist/index98.js +55 -4
  249. package/dist/index99.js +11 -30
  250. package/dist/lib/utils.d.ts.map +1 -1
  251. package/dist/tokens/animations.d.ts.map +1 -1
  252. package/dist/tokens/colors.d.ts.map +1 -1
  253. package/dist/tokens/index.d.ts +3 -3
  254. package/dist/tokens/index.d.ts.map +1 -1
  255. package/dist/tokens/shadows.d.ts.map +1 -1
  256. package/dist/tokens/spacing.d.ts.map +1 -1
  257. package/dist/tokens/typography.d.ts.map +1 -1
  258. package/package.json +19 -9
package/dist/index145.js CHANGED
@@ -1,67 +1,68 @@
1
- import { __assign as d } from "./index125.js";
2
- function l(r) {
3
- return r;
4
- }
5
- function h(r, t) {
6
- t === void 0 && (t = l);
7
- var e = [], o = !1, c = {
8
- read: function() {
9
- if (o)
10
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
11
- return e.length ? e[e.length - 1] : r;
12
- },
13
- useMedium: function(u) {
14
- var n = t(u, o);
15
- return e.push(n), function() {
16
- e = e.filter(function(i) {
17
- return i !== n;
18
- });
19
- };
20
- },
21
- assignSyncMedium: function(u) {
22
- for (o = !0; e.length; ) {
23
- var n = e;
24
- e = [], n.forEach(u);
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
- return c;
59
- }
60
- function v(r) {
61
- r === void 0 && (r = {});
62
- var t = h(null);
63
- return t.options = d({ async: !0, ssr: !1 }, r), t;
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
- v as createSidecarMedium
66
+ V as handleScroll,
67
+ T as locationCouldBeScrolled
67
68
  };
package/dist/index15.js CHANGED
@@ -1,100 +1,76 @@
1
- import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { Root as g, Portal as u, Trigger as x, Close as n, Overlay as d, Content as r, Title as c, Description as m } from "./index49.js";
4
- import { cn as s } from "./index2.js";
5
- import y from "./index50.js";
6
- const T = g, j = x, N = u, F = n, f = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
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: o,
10
- className: s(
11
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
12
- 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 D = i.forwardRef(({ className: a, children: e, ...o }, p) => /* @__PURE__ */ l(N, { children: [
19
- /* @__PURE__ */ t(f, {}),
20
- /* @__PURE__ */ l(
21
- r,
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: p,
24
- className: s(
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 duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
26
- a
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
- ...o,
25
+ ...s,
29
26
  children: [
30
- e,
31
- /* @__PURE__ */ l(n, { className: "absolute right-4 top-4 opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
32
- /* @__PURE__ */ t(y, { className: "h-4 w-4" }),
33
- /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
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
- D.displayName = r.displayName;
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: s(
61
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
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 = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
69
- c,
47
+ const w = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
48
+ m,
70
49
  {
71
- ref: o,
72
- className: s(
73
- "text-lg font-semibold leading-none tracking-tight",
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 = c.displayName;
80
- const v = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
81
- m,
55
+ w.displayName = m.displayName;
56
+ const v = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
57
+ c,
82
58
  {
83
- ref: o,
84
- className: s("text-sm text-muted-foreground", a),
85
- ...e
59
+ ref: s,
60
+ className: t("text-sm text-muted-foreground", e),
61
+ ...a
86
62
  }
87
63
  ));
88
- v.displayName = m.displayName;
64
+ v.displayName = c.displayName;
89
65
  export {
90
- T as Dialog,
66
+ j as Dialog,
91
67
  F as DialogClose,
92
- D as DialogContent,
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
- N as DialogPortal,
73
+ D as DialogPortal,
98
74
  w as DialogTitle,
99
- j as DialogTrigger
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 { jsx as o, jsxs as d } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import { Root as w, Trigger as x, Group as N, Portal as m, Sub as v, RadioGroup as R, Content as l, Item as p, CheckboxItem as c, ItemIndicator as u, RadioItem as f, Label as b, Separator as y, SubContent as g, SubTrigger as h } from "./index69.js";
4
- import { cn as s } from "./index2.js";
5
- import D from "./index60.js";
6
- import M from "./index57.js";
7
- import S from "./index70.js";
8
- const H = w, J = x, K = N, O = m, Q = v, U = R, I = n.forwardRef(({ className: e, inset: a, children: t, ...r }, i) => /* @__PURE__ */ d(
9
- h,
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: s(
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
- a && "pl-8",
14
+ r && "pl-8",
15
15
  e
16
16
  ),
17
- ...r,
17
+ ...t,
18
18
  children: [
19
- t,
20
- /* @__PURE__ */ o(S, { className: "ml-auto" })
19
+ o,
20
+ /* @__PURE__ */ a(S, { className: "ml-auto" })
21
21
  ]
22
22
  }
23
23
  ));
24
- I.displayName = h.displayName;
25
- const C = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
24
+ I.displayName = x.displayName;
25
+ const C = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
26
26
  g,
27
27
  {
28
- ref: t,
29
- className: s(
30
- "z-[60] min-w-[8rem] overflow-hidden border-2 border-primary bg-black p-1 text-primary data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
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
- ...a
33
+ ...r
34
34
  }
35
35
  ));
36
36
  C.displayName = g.displayName;
37
- const k = n.forwardRef(({ className: e, sideOffset: a = 4, ...t }, r) => /* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(
38
- l,
37
+ const k = s.forwardRef(({ className: e, sideOffset: r = 4, ...o }, t) => /* @__PURE__ */ a(d, { children: /* @__PURE__ */ a(
38
+ c,
39
39
  {
40
- ref: r,
41
- sideOffset: a,
42
- className: s(
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
- ...t
46
+ ...o
48
47
  }
49
48
  ) }));
50
- k.displayName = l.displayName;
51
- const z = n.forwardRef(({ className: e, inset: a, ...t }, r) => /* @__PURE__ */ o(
52
- p,
49
+ k.displayName = c.displayName;
50
+ const G = s.forwardRef(({ className: e, inset: r, ...o }, t) => /* @__PURE__ */ a(
51
+ u,
53
52
  {
54
- ref: r,
55
- className: s(
56
- "relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-colors hover:bg-primary/20 focus:bg-primary/20 focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
57
- a && "pl-8",
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
- ...t
59
+ ...o
61
60
  }
62
61
  ));
63
- z.displayName = p.displayName;
64
- const G = n.forwardRef(({ className: e, children: a, checked: t, ...r }, i) => /* @__PURE__ */ d(
65
- c,
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: s(
69
- "relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none transition-colors hover:bg-primary/20 focus:bg-primary/20 focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
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: t,
73
- ...r,
71
+ checked: o,
72
+ ...t,
74
73
  children: [
75
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(D, { className: "h-4 w-4" }) }) }),
76
- a
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
- G.displayName = c.displayName;
81
- const T = n.forwardRef(({ className: e, children: a, ...t }, r) => /* @__PURE__ */ d(
82
- f,
79
+ T.displayName = m.displayName;
80
+ const j = s.forwardRef(({ className: e, children: r, ...o }, t) => /* @__PURE__ */ p(
81
+ y,
83
82
  {
84
- ref: r,
85
- className: s(
86
- "relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none transition-colors hover:bg-primary/20 focus:bg-primary/20 focus:text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
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
- ...t,
88
+ ...o,
90
89
  children: [
91
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(M, { className: "h-4 w-4 fill-current" }) }) }),
92
- a
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
- T.displayName = f.displayName;
97
- const j = n.forwardRef(({ className: e, inset: a, ...t }, r) => /* @__PURE__ */ o(
98
- b,
95
+ j.displayName = y.displayName;
96
+ const z = s.forwardRef(({ className: e, inset: r, ...o }, t) => /* @__PURE__ */ a(
97
+ f,
99
98
  {
100
- ref: r,
101
- className: s(
102
- "px-2 py-1.5 text-sm font-semibold",
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
- j.displayName = b.displayName;
110
- const L = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
111
- y,
104
+ z.displayName = f.displayName;
105
+ const L = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
106
+ b,
112
107
  {
113
- ref: t,
114
- className: s("-mx-1 my-1 h-px bg-muted", e),
115
- ...a
108
+ ref: o,
109
+ className: n("-mx-1 my-1 h-px bg-muted", e),
110
+ ...r
116
111
  }
117
112
  ));
118
- L.displayName = y.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: s("ml-auto text-xs tracking-widest text-primary border border-primary px-1", e),
126
- ...a
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
- G as DropdownMenuCheckboxItem,
127
+ T as DropdownMenuCheckboxItem,
133
128
  k as DropdownMenuContent,
134
129
  K as DropdownMenuGroup,
135
- z as DropdownMenuItem,
136
- j as DropdownMenuLabel,
130
+ G as DropdownMenuItem,
131
+ z as DropdownMenuLabel,
137
132
  O as DropdownMenuPortal,
138
133
  U as DropdownMenuRadioGroup,
139
- T as DropdownMenuRadioItem,
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 { Root as F } from "./index67.js";
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(x, { ...e }) }), d = () => {
12
- const e = s.useContext(f), o = s.useContext(l), { getFieldState: r, formState: t } = p(), m = r(e.name, 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
- ), C = s.forwardRef(({ className: e, ...o }, r) => {
27
- const t = s.useId();
28
- return /* @__PURE__ */ i(l.Provider, { value: { id: t }, children: /* @__PURE__ */ i("div", { ref: r, className: a("space-y-2", e), ...o }) });
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 a = t.forwardRef(
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 transition-colors 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",
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
- a.displayName = "Input";
18
+ m.displayName = "Input";
19
19
  export {
20
- a as Input
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 * as t from "react";
3
- import { Root as o } from "./index62.js";
4
- import { cva as i } from "./index45.js";
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 = i(
6
+ const l = t(
7
7
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
8
- ), p = t.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ m(
9
- o,
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