@drjoshcsimmons/scl 0.1.14 → 0.1.15

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 (131) hide show
  1. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  2. package/dist/index100.js +24 -12
  3. package/dist/index102.js +178 -27
  4. package/dist/index103.js +47 -3
  5. package/dist/index104.js +30 -25
  6. package/dist/index105.js +54 -5
  7. package/dist/index106.js +30 -55
  8. package/dist/index107.js +1 -1
  9. package/dist/index108.js +650 -30
  10. package/dist/index109.js +1 -1
  11. package/dist/index11.js +2 -2
  12. package/dist/index110.js +27 -647
  13. package/dist/index113.js +6 -12
  14. package/dist/index114.js +42 -200
  15. package/dist/index115.js +47 -21
  16. package/dist/index116.js +10 -398
  17. package/dist/index117.js +200 -42
  18. package/dist/index118.js +21 -47
  19. package/dist/index119.js +399 -20
  20. package/dist/index12.js +1 -1
  21. package/dist/index120.js +15 -3
  22. package/dist/index121.js +3 -32
  23. package/dist/index122.js +32 -12
  24. package/dist/index123.js +18 -6
  25. package/dist/index124.js +1 -1
  26. package/dist/index125.js +2 -25
  27. package/dist/index126.js +53 -29
  28. package/dist/index127.js +65 -5
  29. package/dist/index128.js +25 -2
  30. package/dist/index129.js +29 -53
  31. package/dist/index13.js +2 -2
  32. package/dist/index130.js +5 -65
  33. package/dist/index131.js +2 -5
  34. package/dist/index132.js +2 -3
  35. package/dist/index133.js +5 -24
  36. package/dist/index134.js +3 -113
  37. package/dist/index135.js +23 -15
  38. package/dist/index136.js +107 -519
  39. package/dist/index137.js +14 -126
  40. package/dist/index138.js +516 -125
  41. package/dist/index139.js +128 -2
  42. package/dist/index14.js +2 -2
  43. package/dist/index140.js +134 -2
  44. package/dist/index141.js +65 -69
  45. package/dist/index142.js +68 -8
  46. package/dist/index143.js +9 -14
  47. package/dist/index144.js +14 -66
  48. package/dist/index145.js +65 -64
  49. package/dist/index148.js +11 -21
  50. package/dist/index149.js +26 -11
  51. package/dist/index15.js +54 -54
  52. package/dist/index150.js +4 -27
  53. package/dist/index151.js +22 -4
  54. package/dist/index17.js +70 -71
  55. package/dist/index18.js +2 -2
  56. package/dist/index19.js +4 -4
  57. package/dist/index20.js +2 -2
  58. package/dist/index21.js +15 -15
  59. package/dist/index22.js +20 -20
  60. package/dist/index24.js +12 -12
  61. package/dist/index25.js +59 -59
  62. package/dist/index26.js +1 -1
  63. package/dist/index27.js +32 -32
  64. package/dist/index29.js +7 -7
  65. package/dist/index31.js +14 -14
  66. package/dist/index32.js +17 -17
  67. package/dist/index33.js +10 -10
  68. package/dist/index36.js +9 -9
  69. package/dist/index37.js +18 -18
  70. package/dist/index4.js +26 -26
  71. package/dist/index45.js +237 -33
  72. package/dist/index46.js +11 -241
  73. package/dist/index47.js +33 -237
  74. package/dist/index48.js +73 -11
  75. package/dist/index49.js +198 -217
  76. package/dist/index5.js +1 -1
  77. package/dist/index50.js +435 -12
  78. package/dist/index51.js +112 -517
  79. package/dist/index52.js +245 -18
  80. package/dist/index53.js +9 -161
  81. package/dist/index54.js +107 -62
  82. package/dist/index55.js +119 -325
  83. package/dist/index56.js +10 -10
  84. package/dist/index57.js +1 -1
  85. package/dist/index58.js +53 -75
  86. package/dist/index59.js +247 -242
  87. package/dist/index6.js +36 -36
  88. package/dist/index60.js +260 -9
  89. package/dist/index61.js +12 -130
  90. package/dist/index62.js +530 -18
  91. package/dist/index63.js +18 -860
  92. package/dist/index64.js +161 -9
  93. package/dist/index65.js +82 -31
  94. package/dist/index66.js +20 -433
  95. package/dist/index67.js +856 -56
  96. package/dist/index68.js +9 -118
  97. package/dist/index69.js +6 -6
  98. package/dist/index7.js +1 -1
  99. package/dist/index70.js +1 -1
  100. package/dist/index71.js +336 -12
  101. package/dist/index72.js +303 -118
  102. package/dist/index73.js +12 -310
  103. package/dist/index74.js +31 -12
  104. package/dist/index75.js +12 -254
  105. package/dist/index76.js +66 -5
  106. package/dist/index77.js +44 -25
  107. package/dist/index78.js +23 -64
  108. package/dist/index79.js +5 -123
  109. package/dist/index8.js +5 -5
  110. package/dist/index80.js +50 -13
  111. package/dist/index81.js +32 -133
  112. package/dist/index82.js +1 -1
  113. package/dist/index83.js +7 -218
  114. package/dist/index84.js +55 -14
  115. package/dist/index85.js +10 -68
  116. package/dist/index86.js +4 -34
  117. package/dist/index87.js +29 -47
  118. package/dist/index88.js +10 -49
  119. package/dist/index89.js +122 -47
  120. package/dist/index9.js +21 -21
  121. package/dist/index90.js +14 -8
  122. package/dist/index91.js +130 -41
  123. package/dist/index92.js +218 -7
  124. package/dist/index93.js +14 -48
  125. package/dist/index94.js +68 -29
  126. package/dist/index95.js +43 -176
  127. package/dist/index96.js +48 -53
  128. package/dist/index97.js +8 -10
  129. package/dist/index98.js +4 -4
  130. package/dist/index99.js +6 -30
  131. package/package.json +1 -1
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/index148.js CHANGED
@@ -1,25 +1,15 @@
1
- var a = {
2
- left: 0,
3
- top: 0,
4
- right: 0,
5
- gap: 0
6
- }, e = function(t) {
7
- return parseInt(t || "", 10) || 0;
8
- }, o = function(t) {
9
- var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
10
- return [e(i), e(r), e(d)];
11
- }, f = function(t) {
12
- if (t === void 0 && (t = "margin"), typeof window > "u")
13
- return a;
14
- var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
15
- return {
16
- left: n[0],
17
- top: n[1],
18
- right: n[2],
19
- gap: Math.max(0, r - i + n[2] - n[0])
1
+ import * as o from "react";
2
+ import { stylesheetSingleton as r } from "./index149.js";
3
+ var i = function() {
4
+ var t = r();
5
+ return function(e, n) {
6
+ o.useEffect(function() {
7
+ return t.add(e), function() {
8
+ t.remove();
9
+ };
10
+ }, [e && n]);
20
11
  };
21
12
  };
22
13
  export {
23
- f as getGapWidth,
24
- a as zeroGap
14
+ i as styleHookSingleton
25
15
  };
package/dist/index149.js CHANGED
@@ -1,15 +1,30 @@
1
- import * as o from "react";
2
- import { stylesheetSingleton as r } from "./index150.js";
3
- var i = function() {
4
- var t = r();
5
- return function(e, n) {
6
- o.useEffect(function() {
7
- return t.add(e), function() {
8
- t.remove();
9
- };
10
- }, [e && n]);
1
+ import { getNonce as o } from "./index150.js";
2
+ function r() {
3
+ if (!document)
4
+ return null;
5
+ var t = document.createElement("style");
6
+ t.type = "text/css";
7
+ var e = o();
8
+ return e && t.setAttribute("nonce", e), t;
9
+ }
10
+ function l(t, e) {
11
+ t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
12
+ }
13
+ function a(t) {
14
+ var e = document.head || document.getElementsByTagName("head")[0];
15
+ e.appendChild(t);
16
+ }
17
+ var c = function() {
18
+ var t = 0, e = null;
19
+ return {
20
+ add: function(n) {
21
+ t == 0 && (e = r()) && (l(e, n), a(e)), t++;
22
+ },
23
+ remove: function() {
24
+ t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
25
+ }
11
26
  };
12
27
  };
13
28
  export {
14
- i as styleHookSingleton
29
+ c as stylesheetSingleton
15
30
  };
package/dist/index15.js CHANGED
@@ -1,100 +1,100 @@
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(
7
- d,
1
+ import { jsx as o, jsxs as r } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { Root as p, Portal as x, Trigger as N, Close as i, Overlay as n, Content as c, Title as d, Description as m } from "./index60.js";
4
+ import { cn as t } from "./index2.js";
5
+ import y from "./index61.js";
6
+ const j = p, z = N, D = x, F = i, f = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
7
+ n,
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
9
+ ref: s,
10
+ className: t(
11
+ "fixed inset-0 z-50 bg-black/80 data-[state=closed]:hidden",
12
+ e
13
13
  ),
14
- ...e
14
+ ...a
15
15
  }
16
16
  ));
17
- 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,
17
+ f.displayName = n.displayName;
18
+ const u = l.forwardRef(({ className: e, children: a, ...s }, g) => /* @__PURE__ */ r(D, { children: [
19
+ /* @__PURE__ */ o(f, {}),
20
+ /* @__PURE__ */ r(
21
+ c,
22
22
  {
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
23
+ ref: g,
24
+ className: t(
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
+ e
27
27
  ),
28
- ...o,
28
+ ...s,
29
29
  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" })
30
+ a,
31
+ /* @__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: [
32
+ /* @__PURE__ */ o(y, { className: "h-4 w-4" }),
33
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
34
34
  ] })
35
35
  ]
36
36
  }
37
37
  )
38
38
  ] }));
39
- D.displayName = r.displayName;
39
+ u.displayName = c.displayName;
40
40
  const b = ({
41
- className: a,
42
- ...e
43
- }) => /* @__PURE__ */ t(
41
+ className: e,
42
+ ...a
43
+ }) => /* @__PURE__ */ o(
44
44
  "div",
45
45
  {
46
- className: s(
46
+ className: t(
47
47
  "flex flex-col space-y-1.5 text-center sm:text-left",
48
- a
48
+ e
49
49
  ),
50
- ...e
50
+ ...a
51
51
  }
52
52
  );
53
53
  b.displayName = "DialogHeader";
54
54
  const h = ({
55
- className: a,
56
- ...e
57
- }) => /* @__PURE__ */ t(
55
+ className: e,
56
+ ...a
57
+ }) => /* @__PURE__ */ o(
58
58
  "div",
59
59
  {
60
- className: s(
60
+ className: t(
61
61
  "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
62
- a
62
+ e
63
63
  ),
64
- ...e
64
+ ...a
65
65
  }
66
66
  );
67
67
  h.displayName = "DialogFooter";
68
- const w = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
69
- c,
68
+ const w = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
69
+ d,
70
70
  {
71
- ref: o,
72
- className: s(
71
+ ref: s,
72
+ className: t(
73
73
  "text-lg font-semibold leading-none tracking-tight",
74
- a
74
+ e
75
75
  ),
76
- ...e
76
+ ...a
77
77
  }
78
78
  ));
79
- w.displayName = c.displayName;
80
- const v = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(
79
+ w.displayName = d.displayName;
80
+ const v = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
81
81
  m,
82
82
  {
83
- ref: o,
84
- className: s("text-sm text-muted-foreground", a),
85
- ...e
83
+ ref: s,
84
+ className: t("text-sm text-muted-foreground", e),
85
+ ...a
86
86
  }
87
87
  ));
88
88
  v.displayName = m.displayName;
89
89
  export {
90
- T as Dialog,
90
+ j as Dialog,
91
91
  F as DialogClose,
92
- D as DialogContent,
92
+ u as DialogContent,
93
93
  v as DialogDescription,
94
94
  h as DialogFooter,
95
95
  b as DialogHeader,
96
96
  f as DialogOverlay,
97
- N as DialogPortal,
97
+ D as DialogPortal,
98
98
  w as DialogTitle,
99
- j as DialogTrigger
99
+ z as DialogTrigger
100
100
  };
package/dist/index150.js CHANGED
@@ -1,30 +1,7 @@
1
- import { getNonce as o } from "./index151.js";
2
- function r() {
3
- if (!document)
4
- return null;
5
- var t = document.createElement("style");
6
- t.type = "text/css";
7
- var e = o();
8
- return e && t.setAttribute("nonce", e), t;
9
- }
10
- function l(t, e) {
11
- t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
12
- }
13
- function a(t) {
14
- var e = document.head || document.getElementsByTagName("head")[0];
15
- e.appendChild(t);
16
- }
17
- var c = function() {
18
- var t = 0, e = null;
19
- return {
20
- add: function(n) {
21
- t == 0 && (e = r()) && (l(e, n), a(e)), t++;
22
- },
23
- remove: function() {
24
- t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
25
- }
26
- };
1
+ var e = function() {
2
+ if (typeof __webpack_nonce__ < "u")
3
+ return __webpack_nonce__;
27
4
  };
28
5
  export {
29
- c as stylesheetSingleton
6
+ e as getNonce
30
7
  };
package/dist/index151.js CHANGED
@@ -1,7 +1,25 @@
1
- var e = function() {
2
- if (typeof __webpack_nonce__ < "u")
3
- return __webpack_nonce__;
1
+ var a = {
2
+ left: 0,
3
+ top: 0,
4
+ right: 0,
5
+ gap: 0
6
+ }, e = function(t) {
7
+ return parseInt(t || "", 10) || 0;
8
+ }, o = function(t) {
9
+ var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
10
+ return [e(i), e(r), e(d)];
11
+ }, f = function(t) {
12
+ if (t === void 0 && (t = "margin"), typeof window > "u")
13
+ return a;
14
+ var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
15
+ return {
16
+ left: n[0],
17
+ top: n[1],
18
+ right: n[2],
19
+ gap: Math.max(0, r - i + n[2] - n[0])
20
+ };
4
21
  };
5
22
  export {
6
- e as getNonce
23
+ f as getGapWidth,
24
+ a as zeroGap
7
25
  };
package/dist/index17.js CHANGED
@@ -1,142 +1,141 @@
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";
1
+ import { jsx as a, jsxs as p } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { Root as w, Trigger as h, Group as N, Portal as d, Sub as v, RadioGroup as R, Content as m, Item as l, CheckboxItem as c, ItemIndicator as u, RadioItem as f, Label as y, Separator as b, SubContent as g, SubTrigger as x } from "./index69.js";
4
+ import { cn as n } from "./index2.js";
5
+ import D from "./index53.js";
6
6
  import M from "./index57.js";
7
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,
8
+ const H = w, J = h, K = N, O = d, Q = v, U = R, 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
+ m,
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 = m.displayName;
50
+ const G = s.forwardRef(({ className: e, inset: r, ...o }, t) => /* @__PURE__ */ a(
51
+ l,
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(
62
+ G.displayName = l.displayName;
63
+ const T = s.forwardRef(({ className: e, children: r, checked: o, ...t }, i) => /* @__PURE__ */ p(
65
64
  c,
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(u, { 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(
79
+ T.displayName = c.displayName;
80
+ const j = s.forwardRef(({ className: e, children: r, ...o }, t) => /* @__PURE__ */ p(
82
81
  f,
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(u, { 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 = f.displayName;
96
+ const z = s.forwardRef(({ className: e, inset: r, ...o }, t) => /* @__PURE__ */ a(
97
+ y,
99
98
  {
100
- ref: r,
101
- className: s(
99
+ ref: t,
100
+ className: n(
102
101
  "px-2 py-1.5 text-sm font-semibold",
103
- a && "pl-8",
102
+ r && "pl-8",
104
103
  e
105
104
  ),
106
- ...t
105
+ ...o
107
106
  }
108
107
  ));
109
- j.displayName = b.displayName;
110
- const L = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
111
- y,
108
+ z.displayName = y.displayName;
109
+ const L = s.forwardRef(({ className: e, ...r }, o) => /* @__PURE__ */ a(
110
+ b,
112
111
  {
113
- ref: t,
114
- className: s("-mx-1 my-1 h-px bg-muted", e),
115
- ...a
112
+ ref: o,
113
+ className: n("-mx-1 my-1 h-px bg-muted", e),
114
+ ...r
116
115
  }
117
116
  ));
118
- L.displayName = y.displayName;
117
+ L.displayName = b.displayName;
119
118
  const P = ({
120
119
  className: e,
121
- ...a
122
- }) => /* @__PURE__ */ o(
120
+ ...r
121
+ }) => /* @__PURE__ */ a(
123
122
  "span",
124
123
  {
125
- className: s("ml-auto text-xs tracking-widest text-primary border border-primary px-1", e),
126
- ...a
124
+ className: n("ml-auto text-xs tracking-widest text-primary border border-primary px-1", e),
125
+ ...r
127
126
  }
128
127
  );
129
128
  P.displayName = "DropdownMenuShortcut";
130
129
  export {
131
130
  H as DropdownMenu,
132
- G as DropdownMenuCheckboxItem,
131
+ T as DropdownMenuCheckboxItem,
133
132
  k as DropdownMenuContent,
134
133
  K as DropdownMenuGroup,
135
- z as DropdownMenuItem,
136
- j as DropdownMenuLabel,
134
+ G as DropdownMenuItem,
135
+ z as DropdownMenuLabel,
137
136
  O as DropdownMenuPortal,
138
137
  U as DropdownMenuRadioGroup,
139
- T as DropdownMenuRadioItem,
138
+ j as DropdownMenuRadioItem,
140
139
  L as DropdownMenuSeparator,
141
140
  P as DropdownMenuShortcut,
142
141
  Q as DropdownMenuSub,