@drjoshcsimmons/scl 0.2.4 → 0.2.5

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 (128) hide show
  1. package/dist/index100.js +205 -167
  2. package/dist/index101.js +14 -55
  3. package/dist/index102.js +47 -29
  4. package/dist/index103.js +49 -29
  5. package/dist/index104.js +9 -15
  6. package/dist/index105.js +47 -29
  7. package/dist/index106.js +646 -44
  8. package/dist/index107.js +12 -45
  9. package/dist/index108.js +3 -54
  10. package/dist/index109.js +9 -30
  11. package/dist/index11.js +2 -2
  12. package/dist/index110.js +30 -13
  13. package/dist/index111.js +44 -646
  14. package/dist/index112.js +30 -9
  15. package/dist/index113.js +1 -1
  16. package/dist/index114.js +6 -48
  17. package/dist/index115.js +47 -11
  18. package/dist/index116.js +10 -204
  19. package/dist/index117.js +204 -20
  20. package/dist/index118.js +21 -399
  21. package/dist/index119.js +399 -20
  22. package/dist/index12.js +1 -1
  23. package/dist/index120.js +15 -3
  24. package/dist/index121.js +3 -32
  25. package/dist/index122.js +32 -12
  26. package/dist/index123.js +18 -6
  27. package/dist/index124.js +1 -1
  28. package/dist/index125.js +2 -25
  29. package/dist/index126.js +53 -29
  30. package/dist/index127.js +65 -5
  31. package/dist/index128.js +25 -2
  32. package/dist/index129.js +29 -53
  33. package/dist/index13.js +2 -2
  34. package/dist/index130.js +5 -65
  35. package/dist/index131.js +2 -5
  36. package/dist/index132.js +2 -3
  37. package/dist/index133.js +5 -24
  38. package/dist/index134.js +3 -113
  39. package/dist/index135.js +23 -15
  40. package/dist/index136.js +107 -519
  41. package/dist/index137.js +14 -126
  42. package/dist/index138.js +516 -125
  43. package/dist/index139.js +128 -2
  44. package/dist/index14.js +2 -2
  45. package/dist/index140.js +134 -2
  46. package/dist/index141.js +65 -69
  47. package/dist/index142.js +68 -8
  48. package/dist/index143.js +9 -14
  49. package/dist/index144.js +14 -66
  50. package/dist/index145.js +65 -64
  51. package/dist/index15.js +2 -2
  52. package/dist/index17.js +4 -4
  53. package/dist/index18.js +2 -2
  54. package/dist/index20.js +2 -2
  55. package/dist/index21.js +1 -1
  56. package/dist/index22.js +1 -1
  57. package/dist/index23.js +2 -2
  58. package/dist/index24.js +1 -1
  59. package/dist/index25.js +4 -4
  60. package/dist/index26.js +1 -1
  61. package/dist/index27.js +3 -3
  62. package/dist/index29.js +1 -1
  63. package/dist/index31.js +1 -1
  64. package/dist/index33.js +1 -1
  65. package/dist/index36.js +2 -2
  66. package/dist/index37.js +1 -1
  67. package/dist/index4.js +2 -2
  68. package/dist/index45.js +108 -220
  69. package/dist/index46.js +33 -11
  70. package/dist/index47.js +249 -33
  71. package/dist/index48.js +9 -60
  72. package/dist/index49.js +62 -107
  73. package/dist/index5.js +1 -1
  74. package/dist/index50.js +220 -108
  75. package/dist/index51.js +11 -435
  76. package/dist/index52.js +56 -856
  77. package/dist/index53.js +5 -2
  78. package/dist/index54.js +18 -9
  79. package/dist/index55.js +105 -117
  80. package/dist/index56.js +64 -512
  81. package/dist/index57.js +217 -137
  82. package/dist/index58.js +224 -70
  83. package/dist/index59.js +11 -18
  84. package/dist/index6.js +1 -1
  85. package/dist/index60.js +91 -197
  86. package/dist/index61.js +254 -11
  87. package/dist/index62.js +256 -27
  88. package/dist/index63.js +12 -310
  89. package/dist/index64.js +225 -12
  90. package/dist/index65.js +11 -260
  91. package/dist/index66.js +31 -12
  92. package/dist/index67.js +308 -20
  93. package/dist/index68.js +12 -225
  94. package/dist/index69.js +530 -11
  95. package/dist/index7.js +1 -1
  96. package/dist/index70.js +823 -204
  97. package/dist/index71.js +9 -73
  98. package/dist/index72.js +336 -12
  99. package/dist/index73.js +402 -216
  100. package/dist/index74.js +143 -318
  101. package/dist/index75.js +20 -252
  102. package/dist/index76.js +23 -64
  103. package/dist/index77.js +64 -42
  104. package/dist/index78.js +5 -25
  105. package/dist/index79.js +51 -6
  106. package/dist/index8.js +1 -1
  107. package/dist/index80.js +5 -51
  108. package/dist/index81.js +24 -33
  109. package/dist/index82.js +68 -10
  110. package/dist/index83.js +33 -7
  111. package/dist/index84.js +9 -4
  112. package/dist/index85.js +51 -65
  113. package/dist/index86.js +10 -8
  114. package/dist/index87.js +4 -4
  115. package/dist/index88.js +30 -6
  116. package/dist/index89.js +12 -24
  117. package/dist/index9.js +2 -2
  118. package/dist/index90.js +44 -123
  119. package/dist/index91.js +10 -14
  120. package/dist/index92.js +7 -134
  121. package/dist/index93.js +30 -219
  122. package/dist/index94.js +55 -14
  123. package/dist/index95.js +29 -47
  124. package/dist/index96.js +180 -10
  125. package/dist/index97.js +124 -29
  126. package/dist/index98.js +15 -50
  127. package/dist/index99.js +134 -8
  128. 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/index15.js CHANGED
@@ -1,8 +1,8 @@
1
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";
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 "./index62.js";
3
3
  import * as l from "react";
4
4
  import { cn as t } from "./index2.js";
5
- import y from "./index66.js";
5
+ import y from "./index63.js";
6
6
  const j = p, z = N, D = x, F = i, f = l.forwardRef(({ className: e, ...a }, s) => /* @__PURE__ */ o(
7
7
  d,
8
8
  {
package/dist/index17.js CHANGED
@@ -1,10 +1,10 @@
1
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 "./index68.js";
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 "./index64.js";
3
3
  import * as s from "react";
4
4
  import { cn as n } from "./index2.js";
5
- import D from "./index53.js";
6
- import M from "./index61.js";
7
- import S from "./index69.js";
5
+ import D from "./index48.js";
6
+ import M from "./index59.js";
7
+ import S from "./index65.js";
8
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
9
  x,
10
10
  {
package/dist/index18.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { Root as F } from "./index48.js";
2
+ import { Root as F } from "./index52.js";
3
3
  import * as s from "react";
4
- import { FormProvider as u, Controller as p, useFormContext as x } from "./index75.js";
4
+ import { FormProvider as u, Controller as p, useFormContext as x } from "./index61.js";
5
5
  import { cn as a } from "./index2.js";
6
6
  import { Label as I } from "./index20.js";
7
7
  const D = u, f = s.createContext({}), M = ({
package/dist/index20.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { Root as o } from "./index59.js";
3
- import { cva as t } from "./index47.js";
2
+ import { Root as o } from "./index54.js";
3
+ import { cva as t } from "./index46.js";
4
4
  import * as i from "react";
5
5
  import { cn as s } from "./index2.js";
6
6
  const l = t(
package/dist/index21.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { Root as c, Anchor as m, Trigger as s, Portal as i, Content as r } from "./index70.js";
2
+ import { Root as c, Anchor as m, Trigger as s, Portal as i, Content as r } from "./index57.js";
3
3
  import * as l from "react";
4
4
  import { cn as d } from "./index2.js";
5
5
  const h = c, v = s, y = m, f = l.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...a }, p) => /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(
package/dist/index22.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { Root as n, Indicator as d } from "./index58.js";
2
+ import { Root as n, Indicator as d } from "./index56.js";
3
3
  import * as l from "react";
4
4
  import { cn as c } from "./index2.js";
5
5
  const f = l.forwardRef(
package/dist/index23.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { Root as i, Item as t, Indicator as d } from "./index60.js";
2
+ import { Root as i, Item as t, Indicator as d } from "./index58.js";
3
3
  import * as s from "react";
4
4
  import { cn as m } from "./index2.js";
5
- import l from "./index61.js";
5
+ import l from "./index59.js";
6
6
  const c = s.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ r(i, { className: m("grid gap-2", e), ...o, ref: a }));
7
7
  c.displayName = i.displayName;
8
8
  const n = s.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ r(
package/dist/index24.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { Root as i, Viewport as p, Corner as d, ScrollAreaScrollbar as c, ScrollAreaThumb as f } from "./index56.js";
2
+ import { Root as i, Viewport as p, Corner as d, ScrollAreaScrollbar as c, ScrollAreaThumb as f } from "./index69.js";
3
3
  import * as s from "react";
4
4
  import { cn as n } from "./index2.js";
5
5
  const h = s.forwardRef(({ className: l, children: e, ...a }, o) => /* @__PURE__ */ m(
package/dist/index25.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { Root as N, Group as b, Value as g, Portal as S, Content as c, Viewport as v, Item as m, ItemIndicator as R, ItemText as C, Label as n, ScrollDownButton as p, ScrollUpButton as d, Separator as f, Trigger as y, Icon as j } from "./index52.js";
2
+ import { Root as N, Group as b, Value as g, Portal as S, Content as c, Viewport as v, Item as m, ItemIndicator as R, ItemText as C, Label as n, ScrollDownButton as p, ScrollUpButton as d, Separator as f, Trigger as y, Icon as j } from "./index70.js";
3
3
  import * as o from "react";
4
4
  import { cn as l } from "./index2.js";
5
- import I from "./index53.js";
6
- import u from "./index46.js";
7
- import B from "./index54.js";
5
+ import I from "./index48.js";
6
+ import u from "./index51.js";
7
+ import B from "./index71.js";
8
8
  const E = N, F = b, H = g, k = o.forwardRef(({ className: t, children: a, ...r }, s) => /* @__PURE__ */ i(
9
9
  y,
10
10
  {
package/dist/index26.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import { Root as o } from "./index67.js";
2
+ import { Root as o } from "./index75.js";
3
3
  import * as f from "react";
4
4
  import { cn as i } from "./index2.js";
5
5
  const s = f.forwardRef(({ className: a, orientation: r = "horizontal", decorative: m = !0, ...p }, t) => /* @__PURE__ */ l(
package/dist/index27.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
- import { Root as x, Close as l, Portal as g, Trigger as N, Content as n, Description as m, Overlay as c, Title as d } from "./index65.js";
3
- import { cva as y } from "./index47.js";
2
+ import { Root as x, Close as l, Portal as g, Trigger as N, Content as n, Description as m, Overlay as c, Title as d } from "./index62.js";
3
+ import { cva as y } from "./index46.js";
4
4
  import * as a from "react";
5
5
  import { cn as r } from "./index2.js";
6
- import b from "./index66.js";
6
+ import b from "./index63.js";
7
7
  const H = x, O = N, P = l, u = g, f = a.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ s(
8
8
  c,
9
9
  {
package/dist/index29.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
- import { Root as n, Track as a, Range as p, Thumb as l } from "./index51.js";
2
+ import { Root as n, Track as a, Range as p, Thumb as l } from "./index73.js";
3
3
  import * as d from "react";
4
4
  import { cn as h } from "./index2.js";
5
5
  const g = d.forwardRef(({ className: i, defaultValue: r, value: o, ...s }, m) => {
package/dist/index31.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { Root as i, Thumb as t } from "./index55.js";
2
+ import { Root as i, Thumb as t } from "./index60.js";
3
3
  import * as n from "react";
4
4
  import { cn as r } from "./index2.js";
5
5
  const c = n.forwardRef(({ className: o, ...s }, a) => /* @__PURE__ */ e(
package/dist/index33.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { Root as d, Content as o, List as n, Trigger as c } from "./index57.js";
2
+ import { Root as d, Content as o, List as n, Trigger as c } from "./index74.js";
3
3
  import * as s from "react";
4
4
  import { cn as r } from "./index2.js";
5
5
  const g = d, f = s.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ a(
package/dist/index36.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { Root as e } from "./index62.js";
3
- import { cva as s } from "./index47.js";
2
+ import { Root as e } from "./index66.js";
3
+ import { cva as s } from "./index46.js";
4
4
  import * as m from "react";
5
5
  import { cn as p } from "./index2.js";
6
6
  const f = s(
package/dist/index37.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { Root as p, Trigger as n, Portal as s, Content as i, Provider as l } from "./index74.js";
2
+ import { Root as p, Trigger as n, Portal as s, Content as i, Provider as l } from "./index72.js";
3
3
  import * as m from "react";
4
4
  import { cn as d } from "./index2.js";
5
5
  const c = ({
package/dist/index4.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
- import { Root as c, Content as n, Item as l, Header as f, Trigger as d } from "./index45.js";
2
+ import { Root as c, Content as n, Item as l, Header as f, Trigger as d } from "./index50.js";
3
3
  import * as s from "react";
4
4
  import { cn as i } from "./index2.js";
5
- import p from "./index46.js";
5
+ import p from "./index51.js";
6
6
  const v = c, N = s.forwardRef(({ className: e, ...t }, o) => /* @__PURE__ */ r(l, { ref: o, className: i("border-b-2 w-full", e), ...t }));
7
7
  N.displayName = "AccordionItem";
8
8
  const x = s.forwardRef(({ className: e, children: t, ...o }, a) => /* @__PURE__ */ r(f, { className: "flex", children: /* @__PURE__ */ m(