@datawire-ai/busyfile-design-library 1.31.0 → 1.31.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 (69) hide show
  1. package/dist/index100.js +125 -5
  2. package/dist/index101.js +126 -60
  3. package/dist/index102.js +13 -124
  4. package/dist/index103.js +15 -10
  5. package/dist/index104.js +8 -219
  6. package/dist/index105.js +50 -15
  7. package/dist/index106.js +219 -29
  8. package/dist/index107.js +30 -4
  9. package/dist/index108.js +14 -46
  10. package/dist/index109.js +8 -13
  11. package/dist/index110.js +4 -136
  12. package/dist/index111.js +13 -50
  13. package/dist/index112.js +4 -9
  14. package/dist/index113.js +46 -14
  15. package/dist/index116.js +15 -15
  16. package/dist/index12.js +150 -85
  17. package/dist/index121.js +12 -6
  18. package/dist/index122.js +204 -10
  19. package/dist/index123.js +20 -204
  20. package/dist/index124.js +399 -21
  21. package/dist/index125.js +6 -400
  22. package/dist/index126.js +25 -2
  23. package/dist/index127.js +29 -53
  24. package/dist/index128.js +5 -65
  25. package/dist/index129.js +2 -25
  26. package/dist/index130.js +53 -29
  27. package/dist/index131.js +65 -5
  28. package/dist/index200.js +5 -2
  29. package/dist/index201.js +3 -2
  30. package/dist/index202.js +21 -522
  31. package/dist/index203.js +109 -127
  32. package/dist/index204.js +15 -133
  33. package/dist/index205.js +525 -5
  34. package/dist/index206.js +128 -3
  35. package/dist/index207.js +132 -22
  36. package/dist/index208.js +2 -110
  37. package/dist/index209.js +2 -16
  38. package/dist/index26.js +31 -17
  39. package/dist/index268.js +69 -65
  40. package/dist/index269.js +8 -68
  41. package/dist/index270.js +14 -9
  42. package/dist/index271.js +66 -14
  43. package/dist/index272.js +64 -65
  44. package/dist/index42.js +6 -6
  45. package/dist/index44.js +8 -8
  46. package/dist/index46.js +7 -7
  47. package/dist/index49.js +12 -12
  48. package/dist/index52.js +10 -10
  49. package/dist/index53.js +17 -17
  50. package/dist/index59.js +5 -5
  51. package/dist/index63.js +1 -1
  52. package/dist/index74.js +1 -1
  53. package/dist/index75.js +7 -7
  54. package/dist/index82.js +18 -18
  55. package/dist/index85.js +13 -13
  56. package/dist/index86.js +3 -3
  57. package/dist/index87.js +5 -5
  58. package/dist/index90.js +67 -33
  59. package/dist/index91.js +5 -66
  60. package/dist/index92.js +51 -10
  61. package/dist/index93.js +6 -4
  62. package/dist/index94.js +24 -12
  63. package/dist/index95.js +68 -5
  64. package/dist/index96.js +33 -181
  65. package/dist/index97.js +178 -48
  66. package/dist/index99.js +10 -24
  67. package/dist/style.css +1 -1
  68. package/dist/types/index.d.ts +9 -4
  69. package/package.json +1 -1
package/dist/index272.js CHANGED
@@ -1,68 +1,67 @@
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;
1
+ import { __assign as d } from "./index126.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
+ };
25
56
  }
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
- };
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
+ }
65
65
  export {
66
- V as handleScroll,
67
- T as locationCouldBeScrolled
66
+ v as createSidecarMedium
68
67
  };
package/dist/index42.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import * as r from "react";
3
- import { composeEventHandlers as T } from "./index95.js";
3
+ import { composeEventHandlers as T } from "./index91.js";
4
4
  import { useComposedRefs as P } from "./index89.js";
5
- import { createContextScope as I } from "./index91.js";
6
- import { useControllableState as M } from "./index97.js";
7
- import { usePrevious as H } from "./index100.js";
8
- import { useSize as j } from "./index99.js";
9
- import { Primitive as y } from "./index90.js";
5
+ import { createContextScope as I } from "./index90.js";
6
+ import { useControllableState as M } from "./index92.js";
7
+ import { usePrevious as H } from "./index93.js";
8
+ import { useSize as j } from "./index94.js";
9
+ import { Primitive as y } from "./index96.js";
10
10
  import { jsxs as A, jsx as m } from "react/jsx-runtime";
11
11
  var h = "Switch", [U, Q] = I(h), [q, z] = U(h), R = r.forwardRef(
12
12
  (t, a) => {
package/dist/index44.js CHANGED
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import * as i from "react";
3
- import { composeEventHandlers as I } from "./index95.js";
3
+ import { composeEventHandlers as I } from "./index91.js";
4
4
  import { useComposedRefs as E } from "./index89.js";
5
- import { createContextScope as w } from "./index91.js";
6
- import { Primitive as b } from "./index90.js";
7
- import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index96.js";
8
- import { useControllableState as K } from "./index97.js";
5
+ import { createContextScope as w } from "./index90.js";
6
+ import { Primitive as b } from "./index96.js";
7
+ import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index97.js";
8
+ import { useControllableState as K } from "./index92.js";
9
9
  import { useDirection as T } from "./index98.js";
10
- import { useSize as U } from "./index99.js";
11
- import { usePrevious as V } from "./index100.js";
12
- import { Presence as j } from "./index101.js";
10
+ import { useSize as U } from "./index94.js";
11
+ import { usePrevious as V } from "./index93.js";
12
+ import { Presence as j } from "./index95.js";
13
13
  import { jsx as p, jsxs as z } from "react/jsx-runtime";
14
14
  var _ = "Radio", [H, G] = w(_), [W, X] = H(_), S = i.forwardRef(
15
15
  (a, d) => {
package/dist/index46.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import * as s from "react";
3
3
  import { useComposedRefs as B } from "./index89.js";
4
- import { createContextScope as L } from "./index91.js";
5
- import { composeEventHandlers as S } from "./index95.js";
6
- import { useControllableState as O } from "./index97.js";
7
- import { usePrevious as j } from "./index100.js";
8
- import { useSize as H } from "./index99.js";
9
- import { Presence as z } from "./index101.js";
10
- import { Primitive as P } from "./index90.js";
4
+ import { createContextScope as L } from "./index90.js";
5
+ import { composeEventHandlers as S } from "./index91.js";
6
+ import { useControllableState as O } from "./index92.js";
7
+ import { usePrevious as j } from "./index93.js";
8
+ import { useSize as H } from "./index94.js";
9
+ import { Presence as z } from "./index95.js";
10
+ import { Primitive as P } from "./index96.js";
11
11
  import { jsx as b, jsxs as G, Fragment as K } from "react/jsx-runtime";
12
12
  var g = "Checkbox", [U, se] = L(g), [X, E] = U(g);
13
13
  function J(t) {
package/dist/index49.js CHANGED
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import * as s from "react";
3
- import { composeEventHandlers as p } from "./index95.js";
3
+ import { composeEventHandlers as p } from "./index91.js";
4
4
  import { useComposedRefs as _ } from "./index89.js";
5
- import { createContextScope as V, createContext as q } from "./index91.js";
6
- import { useId as R } from "./index103.js";
7
- import { useControllableState as K } from "./index97.js";
8
- import { DismissableLayer as U } from "./index102.js";
9
- import { FocusScope as Y } from "./index110.js";
10
- import { Portal as Z } from "./index105.js";
11
- import { Presence as h } from "./index101.js";
12
- import { Primitive as m } from "./index90.js";
13
- import { useFocusGuards as z } from "./index109.js";
14
- import J from "./index112.js";
15
- import { hideOthers as Q } from "./index111.js";
5
+ import { createContextScope as V, createContext as q } from "./index90.js";
6
+ import { useId as R } from "./index99.js";
7
+ import { useControllableState as K } from "./index92.js";
8
+ import { DismissableLayer as U } from "./index100.js";
9
+ import { FocusScope as Y } from "./index101.js";
10
+ import { Portal as Z } from "./index102.js";
11
+ import { Presence as h } from "./index95.js";
12
+ import { Primitive as m } from "./index96.js";
13
+ import { useFocusGuards as z } from "./index103.js";
14
+ import J from "./index104.js";
15
+ import { hideOthers as Q } from "./index105.js";
16
16
  import { createSlot as X } from "./index40.js";
17
17
  import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
18
18
  var v = "Dialog", [I, Ne] = V(v), [ee, u] = I(v), x = (e) => {
package/dist/index52.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use client";
2
2
  import * as s from "react";
3
- import { composeEventHandlers as g } from "./index95.js";
3
+ import { composeEventHandlers as g } from "./index91.js";
4
4
  import { useComposedRefs as N } from "./index89.js";
5
- import { createContextScope as W } from "./index91.js";
6
- import { DismissableLayer as $ } from "./index102.js";
7
- import { useId as z } from "./index103.js";
8
- import { createPopperScope as S, Root as J, Anchor as Q, Arrow as Z, Content as ee } from "./index104.js";
9
- import { Portal as te } from "./index105.js";
10
- import { Presence as G } from "./index101.js";
11
- import { Primitive as oe } from "./index90.js";
5
+ import { createContextScope as W } from "./index90.js";
6
+ import { DismissableLayer as $ } from "./index100.js";
7
+ import { useId as z } from "./index99.js";
8
+ import { createPopperScope as S, Root as J, Anchor as Q, Arrow as Z, Content as ee } from "./index106.js";
9
+ import { Portal as te } from "./index102.js";
10
+ import { Presence as G } from "./index95.js";
11
+ import { Primitive as oe } from "./index96.js";
12
12
  import { createSlottable as re } from "./index40.js";
13
- import { useControllableState as ne } from "./index97.js";
14
- import { Root as se } from "./index106.js";
13
+ import { useControllableState as ne } from "./index92.js";
14
+ import { Root as se } from "./index107.js";
15
15
  import { jsx as f, jsxs as ie } from "react/jsx-runtime";
16
16
  var [A, He] = W("Tooltip", [
17
17
  S
package/dist/index53.js CHANGED
@@ -1,39 +1,39 @@
1
- import { jsxs as o, jsx as m } from "react/jsx-runtime";
2
- import { cn as f } from "./index37.js";
1
+ import { jsxs as f, jsx as m } from "react/jsx-runtime";
2
+ import { cn as r } from "./index37.js";
3
3
  import { Input as u } from "./index26.js";
4
4
  import { InputLabel as d } from "./index24.js";
5
5
  const N = ({
6
6
  label: s,
7
7
  helperText: a,
8
8
  errorText: t,
9
- startSlot: e,
10
- endSlot: i,
11
- size: c = "medium",
9
+ startSlot: c,
10
+ endSlot: e,
11
+ size: i = "medium",
12
12
  className: n,
13
13
  disabled: l = !1,
14
- labelClassName: p,
15
- ...r
16
- }) => /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
17
- /* @__PURE__ */ m(d, { className: p, children: s }),
14
+ labelClassName: o,
15
+ ...p
16
+ }) => /* @__PURE__ */ f("div", { className: "flex flex-col gap-1", children: [
17
+ /* @__PURE__ */ m(d, { className: o, children: s }),
18
18
  /* @__PURE__ */ m(
19
19
  u,
20
20
  {
21
- size: c,
21
+ size: i,
22
22
  status: t ? "error" : l ? "disabled" : "default",
23
- startSlot: e,
24
- endSlot: i,
23
+ startSlot: c,
24
+ endSlot: e,
25
25
  disabled: l,
26
26
  className: n,
27
- ...r
27
+ ...p
28
28
  }
29
29
  ),
30
30
  (a || t) && /* @__PURE__ */ m(
31
31
  "p",
32
32
  {
33
- className: f(
34
- "text-sm mt-1",
35
- t ? "text-primary-1" : "text-neutral-black-2"
36
- ),
33
+ className: r("text-sm mt-1", {
34
+ "text-error-1": t,
35
+ "text-neutral-black-2": !t
36
+ }),
37
37
  children: t || a
38
38
  }
39
39
  )
package/dist/index59.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import * as i from "react";
3
- import { createContextScope as C } from "./index91.js";
4
- import { useCallbackRef as h } from "./index92.js";
5
- import { useLayoutEffect as f } from "./index93.js";
6
- import { Primitive as v } from "./index90.js";
7
- import { useIsHydrated as _ } from "./index94.js";
3
+ import { createContextScope as C } from "./index90.js";
4
+ import { useCallbackRef as h } from "./index109.js";
5
+ import { useLayoutEffect as f } from "./index110.js";
6
+ import { Primitive as v } from "./index96.js";
7
+ import { useIsHydrated as _ } from "./index111.js";
8
8
  import { jsx as l } from "react/jsx-runtime";
9
9
  var m = "Avatar", [y, H] = C(m), [x, A] = y(m), L = i.forwardRef(
10
10
  (t, e) => {
package/dist/index63.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as p from "react";
2
- import { Primitive as v } from "./index90.js";
2
+ import { Primitive as v } from "./index96.js";
3
3
  import { jsx as m } from "react/jsx-runtime";
4
4
  var d = "Separator", a = "horizontal", l = ["horizontal", "vertical"], i = p.forwardRef((r, n) => {
5
5
  const { decorative: e, orientation: t = a, ...s } = r, o = f(t) ? t : a, c = e ? { role: "none" } : { "aria-orientation": o === "vertical" ? o : void 0, role: "separator" };
package/dist/index74.js CHANGED
@@ -9,7 +9,7 @@ const e = r(
9
9
  },
10
10
  status: {
11
11
  default: "border-neutral-black-4 text-foreground focus-within:ring-4 focus-within:ring-neutral-black-4",
12
- error: "border-error-1 text-primary-1 focus-within:ring-4 focus-within:ring-error-1",
12
+ error: "border-error-1 text-error-1 focus-within:ring-4 focus-within:ring-error-1",
13
13
  disabled: "border-neutral-black-4 bg-neutral-black-4 text-neutral-black-2 cursor-not-allowed"
14
14
  }
15
15
  },
package/dist/index75.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import * as v from "react";
3
- import { composeEventHandlers as g } from "./index95.js";
4
- import { createContextScope as x } from "./index91.js";
5
- import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index96.js";
6
- import { Presence as w } from "./index101.js";
7
- import { Primitive as b } from "./index90.js";
3
+ import { composeEventHandlers as g } from "./index91.js";
4
+ import { createContextScope as x } from "./index90.js";
5
+ import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index97.js";
6
+ import { Presence as w } from "./index95.js";
7
+ import { Primitive as b } from "./index96.js";
8
8
  import { useDirection as D } from "./index98.js";
9
- import { useControllableState as V } from "./index97.js";
10
- import { useId as G } from "./index103.js";
9
+ import { useControllableState as V } from "./index92.js";
10
+ import { useId as G } from "./index99.js";
11
11
  import { jsx as l } from "react/jsx-runtime";
12
12
  var p = "Tabs", [L, Q] = x(p, [
13
13
  C
package/dist/index82.js CHANGED
@@ -1,27 +1,27 @@
1
1
  "use client";
2
2
  import * as t from "react";
3
3
  import * as be from "react-dom";
4
- import { clamp as Re } from "./index107.js";
5
- import { composeEventHandlers as E } from "./index95.js";
6
- import { createCollection as st } from "./index108.js";
4
+ import { clamp as Re } from "./index112.js";
5
+ import { composeEventHandlers as E } from "./index91.js";
6
+ import { createCollection as st } from "./index113.js";
7
7
  import { useComposedRefs as B } from "./index89.js";
8
- import { createContextScope as lt } from "./index91.js";
8
+ import { createContextScope as lt } from "./index90.js";
9
9
  import { useDirection as ct } from "./index98.js";
10
- import { DismissableLayer as it } from "./index102.js";
11
- import { useFocusGuards as at } from "./index109.js";
12
- import { FocusScope as dt } from "./index110.js";
13
- import { useId as Ie } from "./index103.js";
14
- import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./index104.js";
15
- import { Portal as ht } from "./index105.js";
16
- import { Primitive as M } from "./index90.js";
10
+ import { DismissableLayer as it } from "./index100.js";
11
+ import { useFocusGuards as at } from "./index103.js";
12
+ import { FocusScope as dt } from "./index101.js";
13
+ import { useId as Ie } from "./index99.js";
14
+ import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./index106.js";
15
+ import { Portal as ht } from "./index102.js";
16
+ import { Primitive as M } from "./index96.js";
17
17
  import { createSlot as vt } from "./index40.js";
18
- import { useCallbackRef as gt } from "./index92.js";
19
- import { useControllableState as Ee } from "./index97.js";
20
- import { useLayoutEffect as Y } from "./index93.js";
21
- import { usePrevious as St } from "./index100.js";
22
- import { VISUALLY_HIDDEN_STYLES as wt } from "./index106.js";
23
- import { hideOthers as Ct } from "./index111.js";
24
- import yt from "./index112.js";
18
+ import { useCallbackRef as gt } from "./index109.js";
19
+ import { useControllableState as Ee } from "./index92.js";
20
+ import { useLayoutEffect as Y } from "./index110.js";
21
+ import { usePrevious as St } from "./index93.js";
22
+ import { VISUALLY_HIDDEN_STYLES as wt } from "./index107.js";
23
+ import { hideOthers as Ct } from "./index105.js";
24
+ import yt from "./index104.js";
25
25
  import { jsx as m, Fragment as Te, jsxs as ce } from "react/jsx-runtime";
26
26
  var xt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ae, de, Tt] = st(J), [te, uo] = lt(J, [
27
27
  Tt,
package/dist/index85.js CHANGED
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import * as i from "react";
3
- import { composeEventHandlers as P } from "./index95.js";
3
+ import { composeEventHandlers as P } from "./index91.js";
4
4
  import { useComposedRefs as O } from "./index89.js";
5
- import { createContextScope as G } from "./index91.js";
6
- import { DismissableLayer as H } from "./index102.js";
7
- import { useFocusGuards as K } from "./index109.js";
8
- import { FocusScope as $ } from "./index110.js";
9
- import { useId as j } from "./index103.js";
10
- import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./index104.js";
11
- import { Portal as Z } from "./index105.js";
12
- import { Presence as w } from "./index101.js";
13
- import { Primitive as E } from "./index90.js";
5
+ import { createContextScope as G } from "./index90.js";
6
+ import { DismissableLayer as H } from "./index100.js";
7
+ import { useFocusGuards as K } from "./index103.js";
8
+ import { FocusScope as $ } from "./index101.js";
9
+ import { useId as j } from "./index99.js";
10
+ import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./index106.js";
11
+ import { Portal as Z } from "./index102.js";
12
+ import { Presence as w } from "./index95.js";
13
+ import { Primitive as E } from "./index96.js";
14
14
  import { createSlot as q } from "./index40.js";
15
- import { useControllableState as z } from "./index97.js";
16
- import { hideOthers as B } from "./index111.js";
17
- import J from "./index112.js";
15
+ import { useControllableState as z } from "./index92.js";
16
+ import { hideOthers as B } from "./index105.js";
17
+ import J from "./index104.js";
18
18
  import { jsx as p } from "react/jsx-runtime";
19
19
  var C = "Popover", [b, _o] = G(C, [
20
20
  _
package/dist/index86.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { a as pe } from "./index113.js";
2
+ import { a as pe } from "./index108.js";
3
3
  import { Root as ge, Portal as he, Overlay as be, Content as Ee } from "./index49.js";
4
4
  import * as n from "react";
5
- import { Primitive as I } from "./index90.js";
6
- import { useId as K } from "./index103.js";
5
+ import { Primitive as I } from "./index96.js";
6
+ import { useId as K } from "./index99.js";
7
7
  import { composeRefs as q } from "./index89.js";
8
8
  var $ = '[cmdk-group=""]', X = '[cmdk-group-items=""]', ye = '[cmdk-group-heading=""]', oe = '[cmdk-item=""]', ie = `${oe}:not([aria-disabled="true"])`, Y = "cmdk-item-select", D = "data-value", Ce = (t, a, r) => pe(t, a, r), ce = n.createContext(void 0), O = () => n.useContext(ce), de = n.createContext(void 0), Z = () => n.useContext(de), se = n.createContext(void 0), fe = n.forwardRef((t, a) => {
9
9
  let r = F(() => {
package/dist/index87.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import * as u from "react";
3
- import { composeEventHandlers as m } from "./index95.js";
3
+ import { composeEventHandlers as m } from "./index91.js";
4
4
  import { composeRefs as K } from "./index89.js";
5
- import { createContextScope as U } from "./index91.js";
6
- import { useControllableState as g } from "./index97.js";
7
- import { Primitive as B } from "./index90.js";
5
+ import { createContextScope as U } from "./index90.js";
6
+ import { useControllableState as g } from "./index92.js";
7
+ import { Primitive as B } from "./index96.js";
8
8
  import { createMenuScope as D, Root as F, Portal as H, Anchor as W, Content as $, Group as j, Label as X, Item as q, CheckboxItem as z, RadioGroup as J, RadioItem as Q, ItemIndicator as V, Separator as Y, Sub as Z, SubTrigger as oo, SubContent as eo, Arrow as ro } from "./index116.js";
9
- import { useId as v } from "./index103.js";
9
+ import { useId as v } from "./index99.js";
10
10
  import { jsx as t } from "react/jsx-runtime";
11
11
  var f = "DropdownMenu", [no, xo] = U(
12
12
  f,
package/dist/index90.js CHANGED
@@ -1,36 +1,70 @@
1
- import * as f from "react";
2
- import * as p from "react-dom";
3
- import { createSlot as c } from "./index40.js";
4
- import { jsx as l } 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
- ], h = u.reduce((t, i) => {
24
- const o = c(`Primitive.${i}`), r = f.forwardRef((e, m) => {
25
- const { asChild: s, ...a } = e, n = s ? o : i;
26
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ l(n, { ...a, ref: m });
27
- });
28
- return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
29
- }, {});
30
- function w(t, i) {
31
- t && p.flushSync(() => t.dispatchEvent(i));
1
+ import * as u from "react";
2
+ import { jsx as h } from "react/jsx-runtime";
3
+ function w(e, c) {
4
+ const o = u.createContext(c), a = (r) => {
5
+ const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
6
+ return /* @__PURE__ */ h(o.Provider, { value: s, children: t });
7
+ };
8
+ a.displayName = e + "Provider";
9
+ function i(r) {
10
+ const t = u.useContext(o);
11
+ if (t) return t;
12
+ if (c !== void 0) return c;
13
+ throw new Error(`\`${r}\` must be used within \`${e}\``);
14
+ }
15
+ return [a, i];
16
+ }
17
+ function _(e, c = []) {
18
+ let o = [];
19
+ function a(r, t) {
20
+ const n = u.createContext(t), s = o.length;
21
+ o = [...o, t];
22
+ const p = (d) => {
23
+ var S;
24
+ const { scope: x, children: C, ...m } = d, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
25
+ return /* @__PURE__ */ h(v.Provider, { value: P, children: C });
26
+ };
27
+ p.displayName = r + "Provider";
28
+ function f(d, x) {
29
+ var v;
30
+ const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, m = u.useContext(C);
31
+ if (m) return m;
32
+ if (t !== void 0) return t;
33
+ throw new Error(`\`${d}\` must be used within \`${r}\``);
34
+ }
35
+ return [p, f];
36
+ }
37
+ const i = () => {
38
+ const r = o.map((t) => u.createContext(t));
39
+ return function(n) {
40
+ const s = (n == null ? void 0 : n[e]) || r;
41
+ return u.useMemo(
42
+ () => ({ [`__scope${e}`]: { ...n, [e]: s } }),
43
+ [n, s]
44
+ );
45
+ };
46
+ };
47
+ return i.scopeName = e, [a, l(i, ...c)];
48
+ }
49
+ function l(...e) {
50
+ const c = e[0];
51
+ if (e.length === 1) return c;
52
+ const o = () => {
53
+ const a = e.map((i) => ({
54
+ useScope: i(),
55
+ scopeName: i.scopeName
56
+ }));
57
+ return function(r) {
58
+ const t = a.reduce((n, { useScope: s, scopeName: p }) => {
59
+ const d = s(r)[`__scope${p}`];
60
+ return { ...n, ...d };
61
+ }, {});
62
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
63
+ };
64
+ };
65
+ return o.scopeName = c.scopeName, o;
32
66
  }
33
67
  export {
34
- h as Primitive,
35
- w as dispatchDiscreteCustomEvent
68
+ w as createContext,
69
+ _ as createContextScope
36
70
  };