@datawire-ai/busyfile-design-library 1.30.9 → 1.30.10

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 (67) hide show
  1. package/dist/index100.js +114 -170
  2. package/dist/index101.js +135 -7
  3. package/dist/index102.js +15 -25
  4. package/dist/index103.js +69 -5
  5. package/dist/index104.js +14 -134
  6. package/dist/index105.js +8 -15
  7. package/dist/index106.js +50 -9
  8. package/dist/index107.js +219 -49
  9. package/dist/index108.js +30 -11
  10. package/dist/index109.js +181 -3
  11. package/dist/index110.js +7 -12
  12. package/dist/index111.js +13 -3
  13. package/dist/index112.js +224 -44
  14. package/dist/index113.js +3 -650
  15. package/dist/index114.js +46 -13
  16. package/dist/index115.js +645 -221
  17. package/dist/index121.js +6 -12
  18. package/dist/index122.js +10 -204
  19. package/dist/index123.js +204 -20
  20. package/dist/index124.js +21 -399
  21. package/dist/index125.js +400 -6
  22. package/dist/index126.js +2 -25
  23. package/dist/index127.js +53 -29
  24. package/dist/index128.js +65 -5
  25. package/dist/index129.js +25 -2
  26. package/dist/index130.js +29 -53
  27. package/dist/index131.js +5 -65
  28. package/dist/index200.js +2 -525
  29. package/dist/index201.js +2 -128
  30. package/dist/index202.js +5 -134
  31. package/dist/index203.js +3 -5
  32. package/dist/index204.js +24 -3
  33. package/dist/index205.js +108 -22
  34. package/dist/index206.js +14 -108
  35. package/dist/index207.js +523 -14
  36. package/dist/index208.js +128 -2
  37. package/dist/index209.js +134 -2
  38. package/dist/index268.js +1 -1
  39. package/dist/index269.js +1 -1
  40. package/dist/index40.js +1 -1
  41. package/dist/index42.js +7 -7
  42. package/dist/index44.js +10 -10
  43. package/dist/index46.js +8 -8
  44. package/dist/index49.js +13 -13
  45. package/dist/index52.js +11 -11
  46. package/dist/index59.js +5 -5
  47. package/dist/index63.js +1 -1
  48. package/dist/index75.js +8 -8
  49. package/dist/index80.js +2 -2
  50. package/dist/index82.js +20 -20
  51. package/dist/index85.js +14 -14
  52. package/dist/index86.js +3 -3
  53. package/dist/index87.js +7 -7
  54. package/dist/index89.js +25 -5
  55. package/dist/index90.js +64 -23
  56. package/dist/index91.js +10 -67
  57. package/dist/index92.js +4 -126
  58. package/dist/index93.js +33 -10
  59. package/dist/index94.js +10 -217
  60. package/dist/index95.js +7 -15
  61. package/dist/index96.js +48 -66
  62. package/dist/index97.js +5 -33
  63. package/dist/index98.js +24 -51
  64. package/dist/index99.js +11 -30
  65. package/dist/style.css +1 -1
  66. package/dist/theme.css +4 -4
  67. package/package.json +1 -1
package/dist/index209.js CHANGED
@@ -1,4 +1,136 @@
1
- var e = {};
1
+ function c() {
2
+ return typeof window < "u";
3
+ }
4
+ function u(t) {
5
+ return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
6
+ }
7
+ function i(t) {
8
+ var e;
9
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
10
+ }
11
+ function N(t) {
12
+ var e;
13
+ return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
14
+ }
15
+ function p(t) {
16
+ return c() ? t instanceof Node || t instanceof i(t).Node : !1;
17
+ }
18
+ function m(t) {
19
+ return c() ? t instanceof Element || t instanceof i(t).Element : !1;
20
+ }
21
+ function w(t) {
22
+ return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
23
+ }
24
+ function f(t) {
25
+ return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
26
+ }
27
+ const E = /* @__PURE__ */ new Set(["inline", "contents"]);
28
+ function y(t) {
29
+ const {
30
+ overflow: e,
31
+ overflowX: n,
32
+ overflowY: o,
33
+ display: r
34
+ } = S(t);
35
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
36
+ }
37
+ const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
38
+ function A(t) {
39
+ return T.has(u(t));
40
+ }
41
+ const v = [":popover-open", ":modal"];
42
+ function L(t) {
43
+ return v.some((e) => {
44
+ try {
45
+ return t.matches(e);
46
+ } catch {
47
+ return !1;
48
+ }
49
+ });
50
+ }
51
+ const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
52
+ function V(t) {
53
+ const e = O(), n = m(t) ? S(t) : t;
54
+ return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
55
+ }
56
+ function B(t) {
57
+ let e = s(t);
58
+ for (; w(e) && !h(e); ) {
59
+ if (V(e))
60
+ return e;
61
+ if (L(e))
62
+ return null;
63
+ e = s(e);
64
+ }
65
+ return null;
66
+ }
67
+ function O() {
68
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
69
+ }
70
+ const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
71
+ function h(t) {
72
+ return R.has(u(t));
73
+ }
74
+ function S(t) {
75
+ return i(t).getComputedStyle(t);
76
+ }
77
+ function F(t) {
78
+ return m(t) ? {
79
+ scrollLeft: t.scrollLeft,
80
+ scrollTop: t.scrollTop
81
+ } : {
82
+ scrollLeft: t.scrollX,
83
+ scrollTop: t.scrollY
84
+ };
85
+ }
86
+ function s(t) {
87
+ if (u(t) === "html")
88
+ return t;
89
+ const e = (
90
+ // Step into the shadow DOM of the parent of a slotted node.
91
+ t.assignedSlot || // DOM Element detected.
92
+ t.parentNode || // ShadowRoot detected.
93
+ f(t) && t.host || // Fallback.
94
+ N(t)
95
+ );
96
+ return f(e) ? e.host : e;
97
+ }
98
+ function b(t) {
99
+ const e = s(t);
100
+ return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
101
+ }
102
+ function d(t, e, n) {
103
+ var o;
104
+ e === void 0 && (e = []), n === void 0 && (n = !0);
105
+ const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
106
+ if (g) {
107
+ const a = _(l);
108
+ return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
109
+ }
110
+ return e.concat(r, d(r, [], n));
111
+ }
112
+ function _(t) {
113
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
114
+ }
2
115
  export {
3
- e as __exports
116
+ S as getComputedStyle,
117
+ B as getContainingBlock,
118
+ N as getDocumentElement,
119
+ _ as getFrameElement,
120
+ b as getNearestOverflowAncestor,
121
+ u as getNodeName,
122
+ F as getNodeScroll,
123
+ d as getOverflowAncestors,
124
+ s as getParentNode,
125
+ i as getWindow,
126
+ V as isContainingBlock,
127
+ m as isElement,
128
+ w as isHTMLElement,
129
+ h as isLastTraversableNode,
130
+ p as isNode,
131
+ y as isOverflowElement,
132
+ f as isShadowRoot,
133
+ A as isTableElement,
134
+ L as isTopLayer,
135
+ O as isWebKit
4
136
  };
package/dist/index268.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __assign as d } from "./index126.js";
1
+ import { __assign as d } from "./index129.js";
2
2
  function l(r) {
3
3
  return r;
4
4
  }
package/dist/index269.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as d from "react";
2
2
  import { styleSingleton as f } from "./index270.js";
3
- import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index203.js";
3
+ import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index202.js";
4
4
  import { getGapWidth as m } from "./index303.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;
package/dist/index40.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as l from "react";
2
- import { composeRefs as y } from "./index90.js";
2
+ import { composeRefs as y } from "./index89.js";
3
3
  import { jsx as p, Fragment as S } from "react/jsx-runtime";
4
4
  // @__NO_SIDE_EFFECTS__
5
5
  function g(e) {
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 "./index89.js";
4
- import { useComposedRefs as P } from "./index90.js";
5
- import { createContextScope as I } from "./index91.js";
6
- import { useControllableState as M } from "./index98.js";
7
- import { usePrevious as H } from "./index103.js";
8
- import { useSize as j } from "./index102.js";
9
- import { Primitive as y } from "./index97.js";
3
+ import { composeEventHandlers as T } from "./index95.js";
4
+ import { useComposedRefs as P } from "./index89.js";
5
+ import { createContextScope as I } from "./index90.js";
6
+ import { useControllableState as M } from "./index96.js";
7
+ import { usePrevious as H } from "./index97.js";
8
+ import { useSize as j } from "./index98.js";
9
+ import { Primitive as y } from "./index93.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 "./index89.js";
4
- import { useComposedRefs as E } from "./index90.js";
5
- import { createContextScope as w } from "./index91.js";
6
- import { Primitive as b } from "./index97.js";
7
- import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index100.js";
8
- import { useControllableState as K } from "./index98.js";
9
- import { useDirection as T } from "./index101.js";
10
- import { useSize as U } from "./index102.js";
11
- import { usePrevious as V } from "./index103.js";
12
- import { Presence as j } from "./index96.js";
3
+ import { composeEventHandlers as I } from "./index95.js";
4
+ import { useComposedRefs as E } from "./index89.js";
5
+ import { createContextScope as w } from "./index90.js";
6
+ import { Primitive as b } from "./index93.js";
7
+ import { createRovingFocusGroupScope as P, Root as B, Item as q } from "./index109.js";
8
+ import { useControllableState as K } from "./index96.js";
9
+ import { useDirection as T } from "./index110.js";
10
+ import { useSize as U } from "./index98.js";
11
+ import { usePrevious as V } from "./index97.js";
12
+ import { Presence as j } from "./index103.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
- import { useComposedRefs as B } from "./index90.js";
4
- import { createContextScope as L } from "./index91.js";
5
- import { composeEventHandlers as S } from "./index89.js";
6
- import { useControllableState as O } from "./index98.js";
7
- import { usePrevious as j } from "./index103.js";
8
- import { useSize as H } from "./index102.js";
9
- import { Presence as z } from "./index96.js";
10
- import { Primitive as P } from "./index97.js";
3
+ import { useComposedRefs as B } from "./index89.js";
4
+ import { createContextScope as L } from "./index90.js";
5
+ import { composeEventHandlers as S } from "./index95.js";
6
+ import { useControllableState as O } from "./index96.js";
7
+ import { usePrevious as j } from "./index97.js";
8
+ import { useSize as H } from "./index98.js";
9
+ import { Presence as z } from "./index103.js";
10
+ import { Primitive as P } from "./index93.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 "./index89.js";
4
- import { useComposedRefs as _ } from "./index90.js";
5
- import { createContextScope as V, createContext as q } from "./index91.js";
6
- import { useId as R } from "./index93.js";
7
- import { useControllableState as K } from "./index98.js";
8
- import { DismissableLayer as U } from "./index92.js";
9
- import { FocusScope as Y } from "./index104.js";
10
- import { Portal as Z } from "./index95.js";
11
- import { Presence as h } from "./index96.js";
12
- import { Primitive as m } from "./index97.js";
13
- import { useFocusGuards as z } from "./index105.js";
14
- import J from "./index106.js";
15
- import { hideOthers as Q } from "./index107.js";
3
+ import { composeEventHandlers as p } from "./index95.js";
4
+ import { useComposedRefs as _ } from "./index89.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 "./index96.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 "./index103.js";
12
+ import { Primitive as m } from "./index93.js";
13
+ import { useFocusGuards as z } from "./index104.js";
14
+ import J from "./index105.js";
15
+ import { hideOthers as Q } from "./index106.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 "./index89.js";
4
- import { useComposedRefs as N } from "./index90.js";
5
- import { createContextScope as W } from "./index91.js";
6
- import { DismissableLayer as $ } from "./index92.js";
7
- import { useId as z } from "./index93.js";
8
- import { createPopperScope as S, Root as J, Anchor as Q, Arrow as Z, Content as ee } from "./index94.js";
9
- import { Portal as te } from "./index95.js";
10
- import { Presence as G } from "./index96.js";
11
- import { Primitive as oe } from "./index97.js";
3
+ import { composeEventHandlers as g } from "./index95.js";
4
+ import { useComposedRefs as N } from "./index89.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 "./index107.js";
9
+ import { Portal as te } from "./index102.js";
10
+ import { Presence as G } from "./index103.js";
11
+ import { Primitive as oe } from "./index93.js";
12
12
  import { createSlottable as re } from "./index40.js";
13
- import { useControllableState as ne } from "./index98.js";
14
- import { Root as se } from "./index99.js";
13
+ import { useControllableState as ne } from "./index96.js";
14
+ import { Root as se } from "./index108.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/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 "./index108.js";
5
- import { useLayoutEffect as f } from "./index109.js";
6
- import { Primitive as v } from "./index97.js";
7
- import { useIsHydrated as _ } from "./index110.js";
3
+ import { createContextScope as C } from "./index90.js";
4
+ import { useCallbackRef as h } from "./index91.js";
5
+ import { useLayoutEffect as f } from "./index92.js";
6
+ import { Primitive as v } from "./index93.js";
7
+ import { useIsHydrated as _ } from "./index94.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 "./index97.js";
2
+ import { Primitive as v } from "./index93.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/index75.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import * as v from "react";
3
- import { composeEventHandlers as g } from "./index89.js";
4
- import { createContextScope as x } from "./index91.js";
5
- import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index100.js";
6
- import { Presence as w } from "./index96.js";
7
- import { Primitive as b } from "./index97.js";
8
- import { useDirection as D } from "./index101.js";
9
- import { useControllableState as V } from "./index98.js";
10
- import { useId as G } from "./index93.js";
3
+ import { composeEventHandlers as g } from "./index95.js";
4
+ import { createContextScope as x } from "./index90.js";
5
+ import { createRovingFocusGroupScope as C, Root as E, Item as F } from "./index109.js";
6
+ import { Presence as w } from "./index103.js";
7
+ import { Primitive as b } from "./index93.js";
8
+ import { useDirection as D } from "./index110.js";
9
+ import { useControllableState as V } from "./index96.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/index80.js CHANGED
@@ -4,8 +4,8 @@ import * as m from "react";
4
4
  import { cn as e } from "./index37.js";
5
5
  import { Button as x } from "./index3.js";
6
6
  import { buttonVariants as f } from "./index41.js";
7
- import { getDefaultClassNames as p } from "./index114.js";
8
- import { DayPicker as w } from "./index115.js";
7
+ import { getDefaultClassNames as p } from "./index111.js";
8
+ import { DayPicker as w } from "./index112.js";
9
9
  import h from "./index81.js";
10
10
  import _ from "./index70.js";
11
11
  import v from "./index57.js";
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 "./index111.js";
5
- import { composeEventHandlers as E } from "./index89.js";
6
- import { createCollection as st } from "./index112.js";
7
- import { useComposedRefs as B } from "./index90.js";
8
- import { createContextScope as lt } from "./index91.js";
9
- import { useDirection as ct } from "./index101.js";
10
- import { DismissableLayer as it } from "./index92.js";
11
- import { useFocusGuards as at } from "./index105.js";
12
- import { FocusScope as dt } from "./index104.js";
13
- import { useId as Ie } from "./index93.js";
14
- import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./index94.js";
15
- import { Portal as ht } from "./index95.js";
16
- import { Primitive as M } from "./index97.js";
4
+ import { clamp as Re } from "./index113.js";
5
+ import { composeEventHandlers as E } from "./index95.js";
6
+ import { createCollection as st } from "./index114.js";
7
+ import { useComposedRefs as B } from "./index89.js";
8
+ import { createContextScope as lt } from "./index90.js";
9
+ import { useDirection as ct } from "./index110.js";
10
+ import { DismissableLayer as it } from "./index100.js";
11
+ import { useFocusGuards as at } from "./index104.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 "./index107.js";
15
+ import { Portal as ht } from "./index102.js";
16
+ import { Primitive as M } from "./index93.js";
17
17
  import { createSlot as vt } from "./index40.js";
18
- import { useCallbackRef as gt } from "./index108.js";
19
- import { useControllableState as Ee } from "./index98.js";
20
- import { useLayoutEffect as Y } from "./index109.js";
21
- import { usePrevious as St } from "./index103.js";
22
- import { VISUALLY_HIDDEN_STYLES as wt } from "./index99.js";
23
- import { hideOthers as Ct } from "./index107.js";
24
- import yt from "./index106.js";
18
+ import { useCallbackRef as gt } from "./index91.js";
19
+ import { useControllableState as Ee } from "./index96.js";
20
+ import { useLayoutEffect as Y } from "./index92.js";
21
+ import { usePrevious as St } from "./index97.js";
22
+ import { VISUALLY_HIDDEN_STYLES as wt } from "./index108.js";
23
+ import { hideOthers as Ct } from "./index106.js";
24
+ import yt from "./index105.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 "./index89.js";
4
- import { useComposedRefs as O } from "./index90.js";
5
- import { createContextScope as G } from "./index91.js";
6
- import { DismissableLayer as H } from "./index92.js";
7
- import { useFocusGuards as K } from "./index105.js";
8
- import { FocusScope as $ } from "./index104.js";
9
- import { useId as j } from "./index93.js";
10
- import { createPopperScope as _, Root as U, Anchor as x, Content as V, Arrow as W } from "./index94.js";
11
- import { Portal as Z } from "./index95.js";
12
- import { Presence as w } from "./index96.js";
13
- import { Primitive as E } from "./index97.js";
3
+ import { composeEventHandlers as P } from "./index95.js";
4
+ import { useComposedRefs as O } from "./index89.js";
5
+ import { createContextScope as G } from "./index90.js";
6
+ import { DismissableLayer as H } from "./index100.js";
7
+ import { useFocusGuards as K } from "./index104.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 "./index107.js";
11
+ import { Portal as Z } from "./index102.js";
12
+ import { Presence as w } from "./index103.js";
13
+ import { Primitive as E } from "./index93.js";
14
14
  import { createSlot as q } from "./index40.js";
15
- import { useControllableState as z } from "./index98.js";
16
- import { hideOthers as B } from "./index107.js";
17
- import J from "./index106.js";
15
+ import { useControllableState as z } from "./index96.js";
16
+ import { hideOthers as B } from "./index106.js";
17
+ import J from "./index105.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
@@ -2,9 +2,9 @@
2
2
  import { a as pe } from "./index116.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 "./index97.js";
6
- import { useId as K } from "./index93.js";
7
- import { composeRefs as q } from "./index90.js";
5
+ import { Primitive as I } from "./index93.js";
6
+ import { useId as K } from "./index99.js";
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(() => {
10
10
  var e, u;
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 "./index89.js";
4
- import { composeRefs as K } from "./index90.js";
5
- import { createContextScope as U } from "./index91.js";
6
- import { useControllableState as g } from "./index98.js";
7
- import { Primitive as B } from "./index97.js";
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 "./index113.js";
9
- import { useId as v } from "./index93.js";
3
+ import { composeEventHandlers as m } from "./index95.js";
4
+ import { composeRefs as K } from "./index89.js";
5
+ import { createContextScope as U } from "./index90.js";
6
+ import { useControllableState as g } from "./index96.js";
7
+ import { Primitive as B } from "./index93.js";
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 "./index115.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/index89.js CHANGED
@@ -1,9 +1,29 @@
1
- function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
- return function(s) {
3
- if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
- return c == null ? void 0 : c(s);
1
+ import * as f from "react";
2
+ function l(n, o) {
3
+ if (typeof n == "function")
4
+ return n(o);
5
+ n != null && (n.current = o);
6
+ }
7
+ function i(...n) {
8
+ return (o) => {
9
+ let u = !1;
10
+ const c = n.map((t) => {
11
+ const e = l(t, o);
12
+ return !u && typeof e == "function" && (u = !0), e;
13
+ });
14
+ if (u)
15
+ return () => {
16
+ for (let t = 0; t < c.length; t++) {
17
+ const e = c[t];
18
+ typeof e == "function" ? e() : l(n[t], null);
19
+ }
20
+ };
5
21
  };
6
22
  }
23
+ function s(...n) {
24
+ return f.useCallback(i(...n), n);
25
+ }
7
26
  export {
8
- h as composeEventHandlers
27
+ i as composeRefs,
28
+ s as useComposedRefs
9
29
  };
package/dist/index90.js CHANGED
@@ -1,29 +1,70 @@
1
- import * as f from "react";
2
- function l(n, o) {
3
- if (typeof n == "function")
4
- return n(o);
5
- n != null && (n.current = o);
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];
6
16
  }
7
- function i(...n) {
8
- return (o) => {
9
- let u = !1;
10
- const c = n.map((t) => {
11
- const e = l(t, o);
12
- return !u && typeof e == "function" && (u = !0), e;
13
- });
14
- if (u)
15
- return () => {
16
- for (let t = 0; t < c.length; t++) {
17
- const e = c[t];
18
- typeof e == "function" ? e() : l(n[t], null);
19
- }
20
- };
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
+ };
21
46
  };
47
+ return i.scopeName = e, [a, l(i, ...c)];
22
48
  }
23
- function s(...n) {
24
- return f.useCallback(i(...n), n);
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;
25
66
  }
26
67
  export {
27
- i as composeRefs,
28
- s as useComposedRefs
68
+ w as createContext,
69
+ _ as createContextScope
29
70
  };