@drjoshcsimmons/scl 0.2.3 → 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 (105) hide show
  1. package/dist/index100.js +205 -167
  2. package/dist/index101.js +14 -9
  3. package/dist/index102.js +47 -29
  4. package/dist/index103.js +49 -47
  5. package/dist/index104.js +9 -4
  6. package/dist/index105.js +1 -1
  7. package/dist/index106.js +649 -5
  8. package/dist/index107.js +12 -647
  9. package/dist/index108.js +4 -30
  10. package/dist/index109.js +9 -30
  11. package/dist/index11.js +2 -2
  12. package/dist/index110.js +30 -15
  13. package/dist/index111.js +47 -24
  14. package/dist/index112.js +30 -9
  15. package/dist/index113.js +48 -6
  16. package/dist/index114.js +6 -48
  17. package/dist/index115.js +1 -1
  18. package/dist/index116.js +1 -1
  19. package/dist/index118.js +1 -1
  20. package/dist/index12.js +1 -1
  21. package/dist/index124.js +1 -1
  22. package/dist/index13.js +2 -2
  23. package/dist/index142.js +1 -1
  24. package/dist/index143.js +1 -1
  25. package/dist/index148.js +11 -21
  26. package/dist/index149.js +26 -11
  27. package/dist/index15.js +2 -2
  28. package/dist/index150.js +4 -27
  29. package/dist/index151.js +22 -4
  30. package/dist/index17.js +4 -4
  31. package/dist/index18.js +2 -2
  32. package/dist/index20.js +2 -2
  33. package/dist/index21.js +1 -1
  34. package/dist/index22.js +1 -1
  35. package/dist/index23.js +2 -2
  36. package/dist/index24.js +1 -1
  37. package/dist/index25.js +4 -4
  38. package/dist/index26.js +1 -1
  39. package/dist/index27.js +3 -3
  40. package/dist/index29.js +1 -1
  41. package/dist/index31.js +1 -1
  42. package/dist/index33.js +1 -1
  43. package/dist/index36.js +2 -2
  44. package/dist/index37.js +1 -1
  45. package/dist/index4.js +2 -2
  46. package/dist/index45.js +124 -32
  47. package/dist/index46.js +33 -73
  48. package/dist/index47.js +244 -55
  49. package/dist/index48.js +9 -237
  50. package/dist/index49.js +73 -11
  51. package/dist/index5.js +1 -1
  52. package/dist/index50.js +210 -214
  53. package/dist/index51.js +11 -82
  54. package/dist/index52.js +52 -246
  55. package/dist/index53.js +12 -118
  56. package/dist/index54.js +16 -159
  57. package/dist/index55.js +103 -321
  58. package/dist/index56.js +71 -249
  59. package/dist/index57.js +241 -12
  60. package/dist/index58.js +204 -828
  61. package/dist/index59.js +5 -3
  62. package/dist/index6.js +1 -1
  63. package/dist/index60.js +130 -9
  64. package/dist/index61.js +248 -219
  65. package/dist/index62.js +260 -11
  66. package/dist/index63.js +5 -4
  67. package/dist/index64.js +225 -12
  68. package/dist/index65.js +11 -530
  69. package/dist/index66.js +27 -18
  70. package/dist/index67.js +5 -5
  71. package/dist/index69.js +530 -18
  72. package/dist/index7.js +1 -1
  73. package/dist/index70.js +855 -26
  74. package/dist/index71.js +9 -236
  75. package/dist/index72.js +308 -407
  76. package/dist/index73.js +402 -216
  77. package/dist/index74.js +147 -111
  78. package/dist/index75.js +21 -129
  79. package/dist/index76.js +24 -52
  80. package/dist/index77.js +67 -10
  81. package/dist/index78.js +7 -4
  82. package/dist/index79.js +52 -30
  83. package/dist/index8.js +1 -1
  84. package/dist/index80.js +5 -12
  85. package/dist/index81.js +24 -67
  86. package/dist/index82.js +66 -43
  87. package/dist/index83.js +32 -25
  88. package/dist/index84.js +8 -6
  89. package/dist/index85.js +52 -49
  90. package/dist/index86.js +10 -33
  91. package/dist/index87.js +4 -11
  92. package/dist/index88.js +30 -8
  93. package/dist/index89.js +11 -123
  94. package/dist/index9.js +2 -2
  95. package/dist/index90.js +45 -14
  96. package/dist/index91.js +10 -134
  97. package/dist/index92.js +7 -218
  98. package/dist/index93.js +30 -14
  99. package/dist/index94.js +51 -65
  100. package/dist/index95.js +29 -47
  101. package/dist/index96.js +179 -48
  102. package/dist/index97.js +124 -8
  103. package/dist/index98.js +12 -52
  104. package/dist/index99.js +134 -29
  105. package/package.json +1 -1
package/dist/index109.js CHANGED
@@ -1,32 +1,11 @@
1
- import * as f from "react";
2
- import "react-dom";
3
- import { createSlot as l } from "./index47.js";
4
- import { jsx as n } from "react/jsx-runtime";
5
- var u = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "select",
20
- "span",
21
- "svg",
22
- "ul"
23
- ], w = u.reduce((t, i) => {
24
- const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
- const { asChild: a, ...p } = e, s = a ? o : i;
26
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
27
- });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
- }, {});
1
+ import "react";
2
+ import { jsx as e, Fragment as o } from "react/jsx-runtime";
3
+ var l = Symbol("radix.slottable");
4
+ // @__NO_SIDE_EFFECTS__
5
+ function n(r) {
6
+ const t = ({ children: a }) => /* @__PURE__ */ e(o, { children: a });
7
+ return t.displayName = `${r}.Slottable`, t.__radixId = l, t;
8
+ }
30
9
  export {
31
- w as Primitive
10
+ n as createSlottable
32
11
  };
package/dist/index11.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { Checkbox as o, CheckboxIndicator as c } from "./index73.js";
2
+ import { Checkbox as o, CheckboxIndicator as c } from "./index47.js";
3
3
  import * as s from "react";
4
4
  import { cn as r } from "./index2.js";
5
- import m from "./index59.js";
5
+ import m from "./index48.js";
6
6
  const n = s.forwardRef(({ className: i, ...t }, a) => /* @__PURE__ */ e(
7
7
  o,
8
8
  {
package/dist/index110.js CHANGED
@@ -1,17 +1,32 @@
1
- var m = 1, j = 0.9, k = 0.8, B = 0.17, v = 0.1, w = 0.999, D = 0.9999, G = 0.99, H = /[\\\/_+.#"@\[\(\{&]/, J = /[\\\/_+.#"@\[\(\{&]/g, K = /[\s-]/, A = /[\s-]/g;
2
- function $(t, o, e, i, n, h, u) {
3
- if (h === o.length) return n === t.length ? m : G;
4
- var s = `${n},${h}`;
5
- if (u[s] !== void 0) return u[s];
6
- for (var d = i.charAt(h), a = e.indexOf(d, n), l = 0, r, g, c, p; a >= 0; ) r = $(t, o, e, i, a + 1, h + 1, u), r > l && (a === n ? r *= m : H.test(t.charAt(a - 1)) ? (r *= k, c = t.slice(n, a - 1).match(J), c && n > 0 && (r *= Math.pow(w, c.length))) : K.test(t.charAt(a - 1)) ? (r *= j, p = t.slice(n, a - 1).match(A), p && n > 0 && (r *= Math.pow(w, p.length))) : (r *= B, n > 0 && (r *= Math.pow(w, a - n))), t.charAt(a) !== o.charAt(h) && (r *= D)), (r < v && e.charAt(a - 1) === i.charAt(h + 1) || i.charAt(h + 1) === i.charAt(h) && e.charAt(a - 1) !== i.charAt(h)) && (g = $(t, o, e, i, a + 1, h + 2, u), g * v > r && (r = g * v)), r > l && (l = r), a = e.indexOf(d, a + 1);
7
- return u[s] = l, l;
8
- }
9
- function x(t) {
10
- return t.toLowerCase().replace(A, " ");
11
- }
12
- function M(t, o, e) {
13
- return t = e && e.length > 0 ? `${t + " " + e.join(" ")}` : t, $(t, o, x(t), x(o), 0, 0, {});
14
- }
1
+ import * as a from "react";
2
+ import { Primitive as o } from "./index83.js";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ var d = Object.freeze({
5
+ // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
6
+ position: "absolute",
7
+ border: 0,
8
+ width: 1,
9
+ height: 1,
10
+ padding: 0,
11
+ margin: -1,
12
+ overflow: "hidden",
13
+ clip: "rect(0, 0, 0, 0)",
14
+ whiteSpace: "nowrap",
15
+ wordWrap: "normal"
16
+ }), l = "VisuallyHidden", e = a.forwardRef(
17
+ (r, i) => /* @__PURE__ */ t(
18
+ o.span,
19
+ {
20
+ ...r,
21
+ ref: i,
22
+ style: { ...d, ...r.style }
23
+ }
24
+ )
25
+ );
26
+ e.displayName = l;
27
+ var p = e;
15
28
  export {
16
- M as a
29
+ p as Root,
30
+ d as VISUALLY_HIDDEN_STYLES,
31
+ e as VisuallyHidden
17
32
  };
package/dist/index111.js CHANGED
@@ -1,27 +1,50 @@
1
- import * as h from "react";
2
- import { useLayoutEffect as z } from "./index78.js";
3
- function c(r) {
4
- const [d, e] = h.useState(void 0);
5
- return z(() => {
6
- if (r) {
7
- e({ width: r.offsetWidth, height: r.offsetHeight });
8
- const f = new ResizeObserver((i) => {
9
- if (!Array.isArray(i) || !i.length)
10
- return;
11
- const b = i[0];
12
- let o, t;
13
- if ("borderBoxSize" in b) {
14
- const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
- o = u.inlineSize, t = u.blockSize;
16
- } else
17
- o = r.offsetWidth, t = r.offsetHeight;
18
- e({ width: o, height: t });
19
- });
20
- return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
- } else
22
- e(void 0);
23
- }, [r]), d;
1
+ import * as l from "react";
2
+ import { composeRefs as m } from "./index76.js";
3
+ import { jsx as u } from "react/jsx-runtime";
4
+ // @__NO_SIDE_EFFECTS__
5
+ function b(e) {
6
+ const n = /* @__PURE__ */ y(e), o = l.forwardRef((t, r) => {
7
+ const { children: i, ...c } = t, s = l.Children.toArray(i), a = s.find(E);
8
+ if (a) {
9
+ const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
10
+ return /* @__PURE__ */ u(n, { ...c, ref: r, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
11
+ }
12
+ return /* @__PURE__ */ u(n, { ...c, ref: r, children: i });
13
+ });
14
+ return o.displayName = `${e}.Slot`, o;
15
+ }
16
+ // @__NO_SIDE_EFFECTS__
17
+ function y(e) {
18
+ const n = l.forwardRef((o, t) => {
19
+ const { children: r, ...i } = o;
20
+ if (l.isValidElement(r)) {
21
+ const c = S(r), s = C(i, r.props);
22
+ return r.type !== l.Fragment && (s.ref = t ? m(t, c) : c), l.cloneElement(r, s);
23
+ }
24
+ return l.Children.count(r) > 1 ? l.Children.only(null) : null;
25
+ });
26
+ return n.displayName = `${e}.SlotClone`, n;
27
+ }
28
+ var g = Symbol("radix.slottable");
29
+ function E(e) {
30
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
31
+ }
32
+ function C(e, n) {
33
+ const o = { ...n };
34
+ for (const t in n) {
35
+ const r = e[t], i = n[t];
36
+ /^on[A-Z]/.test(t) ? r && i ? o[t] = (...s) => {
37
+ const a = i(...s);
38
+ return r(...s), a;
39
+ } : r && (o[t] = r) : t === "style" ? o[t] = { ...r, ...i } : t === "className" && (o[t] = [r, i].filter(Boolean).join(" "));
40
+ }
41
+ return { ...e, ...o };
42
+ }
43
+ function S(e) {
44
+ var t, r;
45
+ let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = n && "isReactWarning" in n && n.isReactWarning;
46
+ return o ? e.ref : (n = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
24
47
  }
25
48
  export {
26
- c as useSize
49
+ b as createSlot
27
50
  };
package/dist/index112.js CHANGED
@@ -1,11 +1,32 @@
1
- import "react";
2
- import { jsx as e, Fragment as o } from "react/jsx-runtime";
3
- var l = Symbol("radix.slottable");
4
- // @__NO_SIDE_EFFECTS__
5
- function n(r) {
6
- const t = ({ children: a }) => /* @__PURE__ */ e(o, { children: a });
7
- return t.displayName = `${r}.Slottable`, t.__radixId = l, t;
8
- }
1
+ import * as f from "react";
2
+ import "react-dom";
3
+ import { createSlot as l } from "./index52.js";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ var u = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "select",
20
+ "span",
21
+ "svg",
22
+ "ul"
23
+ ], w = u.reduce((t, i) => {
24
+ const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
+ const { asChild: a, ...p } = e, s = a ? o : i;
26
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
27
+ });
28
+ return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
+ }, {});
9
30
  export {
10
- n as createSlottable
31
+ w as Primitive
11
32
  };
package/dist/index113.js CHANGED
@@ -1,8 +1,50 @@
1
- import { __module as r } from "./index125.js";
2
- import { __require as e } from "./index126.js";
3
- import { __require as o } from "./index127.js";
4
- process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
5
- var m = r.exports;
1
+ import * as l from "react";
2
+ import { composeRefs as m } from "./index76.js";
3
+ import { jsx as u } from "react/jsx-runtime";
4
+ // @__NO_SIDE_EFFECTS__
5
+ function b(e) {
6
+ const n = /* @__PURE__ */ y(e), o = l.forwardRef((t, r) => {
7
+ const { children: i, ...c } = t, s = l.Children.toArray(i), a = s.find(E);
8
+ if (a) {
9
+ const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
10
+ return /* @__PURE__ */ u(n, { ...c, ref: r, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
11
+ }
12
+ return /* @__PURE__ */ u(n, { ...c, ref: r, children: i });
13
+ });
14
+ return o.displayName = `${e}.Slot`, o;
15
+ }
16
+ // @__NO_SIDE_EFFECTS__
17
+ function y(e) {
18
+ const n = l.forwardRef((o, t) => {
19
+ const { children: r, ...i } = o;
20
+ if (l.isValidElement(r)) {
21
+ const c = S(r), s = C(i, r.props);
22
+ return r.type !== l.Fragment && (s.ref = t ? m(t, c) : c), l.cloneElement(r, s);
23
+ }
24
+ return l.Children.count(r) > 1 ? l.Children.only(null) : null;
25
+ });
26
+ return n.displayName = `${e}.SlotClone`, n;
27
+ }
28
+ var g = Symbol("radix.slottable");
29
+ function E(e) {
30
+ return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
31
+ }
32
+ function C(e, n) {
33
+ const o = { ...n };
34
+ for (const t in n) {
35
+ const r = e[t], i = n[t];
36
+ /^on[A-Z]/.test(t) ? r && i ? o[t] = (...s) => {
37
+ const a = i(...s);
38
+ return r(...s), a;
39
+ } : r && (o[t] = r) : t === "style" ? o[t] = { ...r, ...i } : t === "className" && (o[t] = [r, i].filter(Boolean).join(" "));
40
+ }
41
+ return { ...e, ...o };
42
+ }
43
+ function S(e) {
44
+ var t, r;
45
+ let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = n && "isReactWarning" in n && n.isReactWarning;
46
+ return o ? e.ref : (n = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
47
+ }
6
48
  export {
7
- m as s
49
+ b as createSlot
8
50
  };
package/dist/index114.js CHANGED
@@ -1,50 +1,8 @@
1
- import * as l from "react";
2
- import { composeRefs as m } from "./index83.js";
3
- import { jsx as u } from "react/jsx-runtime";
4
- // @__NO_SIDE_EFFECTS__
5
- function b(e) {
6
- const n = /* @__PURE__ */ y(e), o = l.forwardRef((t, r) => {
7
- const { children: i, ...c } = t, s = l.Children.toArray(i), a = s.find(E);
8
- if (a) {
9
- const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
10
- return /* @__PURE__ */ u(n, { ...c, ref: r, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
11
- }
12
- return /* @__PURE__ */ u(n, { ...c, ref: r, children: i });
13
- });
14
- return o.displayName = `${e}.Slot`, o;
15
- }
16
- // @__NO_SIDE_EFFECTS__
17
- function y(e) {
18
- const n = l.forwardRef((o, t) => {
19
- const { children: r, ...i } = o;
20
- if (l.isValidElement(r)) {
21
- const c = S(r), s = C(i, r.props);
22
- return r.type !== l.Fragment && (s.ref = t ? m(t, c) : c), l.cloneElement(r, s);
23
- }
24
- return l.Children.count(r) > 1 ? l.Children.only(null) : null;
25
- });
26
- return n.displayName = `${e}.SlotClone`, n;
27
- }
28
- var g = Symbol("radix.slottable");
29
- function E(e) {
30
- return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
31
- }
32
- function C(e, n) {
33
- const o = { ...n };
34
- for (const t in n) {
35
- const r = e[t], i = n[t];
36
- /^on[A-Z]/.test(t) ? r && i ? o[t] = (...s) => {
37
- const a = i(...s);
38
- return r(...s), a;
39
- } : r && (o[t] = r) : t === "style" ? o[t] = { ...r, ...i } : t === "className" && (o[t] = [r, i].filter(Boolean).join(" "));
40
- }
41
- return { ...e, ...o };
42
- }
43
- function S(e) {
44
- var t, r;
45
- let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = n && "isReactWarning" in n && n.isReactWarning;
46
- return o ? e.ref : (n = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
47
- }
1
+ import { __module as r } from "./index125.js";
2
+ import { __require as e } from "./index126.js";
3
+ import { __require as o } from "./index127.js";
4
+ process.env.NODE_ENV === "production" ? r.exports = e() : r.exports = o();
5
+ var m = r.exports;
48
6
  export {
49
- b as createSlot
7
+ m as s
50
8
  };
package/dist/index115.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as l from "react";
2
- import { composeRefs as m } from "./index83.js";
2
+ import { composeRefs as m } from "./index76.js";
3
3
  import { jsx as u } from "react/jsx-runtime";
4
4
  // @__NO_SIDE_EFFECTS__
5
5
  function b(e) {
package/dist/index116.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as r from "react";
2
- import { useCallbackRef as s } from "./index77.js";
2
+ import { useCallbackRef as s } from "./index86.js";
3
3
  function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
4
  const t = s(n);
5
5
  r.useEffect(() => {
package/dist/index118.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as n from "react";
2
- import { Primitive as p } from "./index86.js";
2
+ import { Primitive as p } from "./index83.js";
3
3
  import { jsx as o } from "react/jsx-runtime";
4
4
  var v = "Arrow", e = n.forwardRef((r, i) => {
5
5
  const { children: t, width: a = 10, height: s = 5, ...m } = r;
package/dist/index12.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Root as l, CollapsibleContent as o, CollapsibleTrigger as e } from "./index53.js";
1
+ import { Root as l, CollapsibleContent as o, CollapsibleTrigger as e } from "./index55.js";
2
2
  const t = l, i = e, C = o;
3
3
  export {
4
4
  t as Collapsible,
package/dist/index124.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as l from "react";
2
- import { composeRefs as m } from "./index83.js";
2
+ import { composeRefs as m } from "./index76.js";
3
3
  import { jsx as u } from "react/jsx-runtime";
4
4
  // @__NO_SIDE_EFFECTS__
5
5
  function b(e) {
package/dist/index13.js CHANGED
@@ -3,9 +3,9 @@ import * as h from "react";
3
3
  import { cn as f } from "./index2.js";
4
4
  import { Popover as v, PopoverTrigger as C, PopoverContent as S } from "./index21.js";
5
5
  import { Button as O } from "./index9.js";
6
- import j from "./index64.js";
6
+ import j from "./index53.js";
7
7
  import { Command as k, CommandInput as P, CommandList as R, CommandEmpty as B, CommandGroup as I, CommandItem as L } from "./index14.js";
8
- import M from "./index59.js";
8
+ import M from "./index48.js";
9
9
  const D = h.forwardRef(
10
10
  ({
11
11
  options: s,
package/dist/index142.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as d from "react";
2
2
  import { styleSingleton as f } from "./index143.js";
3
3
  import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index133.js";
4
- import { getGapWidth as m } from "./index148.js";
4
+ import { getGapWidth as m } from "./index151.js";
5
5
  var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
6
6
  var r = n.left, i = n.top, s = n.right, c = n.gap;
7
7
  return o === void 0 && (o = "margin"), `
package/dist/index143.js CHANGED
@@ -1,4 +1,4 @@
1
- import { styleHookSingleton as o } from "./index149.js";
1
+ import { styleHookSingleton as o } from "./index148.js";
2
2
  var s = function() {
3
3
  var e = o(), n = function(t) {
4
4
  var r = t.styles, l = t.dynamic;
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,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 "./index56.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 "./index57.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/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,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 "./index61.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 "./index59.js";
6
- import M from "./index62.js";
7
- import S from "./index63.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 "./index47.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 "./index52.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 "./index69.js";
3
- import { cva as t } from "./index45.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 "./index50.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 "./index51.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 "./index71.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 "./index62.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 "./index65.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(