laif-ds 0.1.34 → 0.1.36

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 (84) hide show
  1. package/dist/_virtual/index.js +5 -2
  2. package/dist/_virtual/index3.js +2 -7
  3. package/dist/_virtual/index4.js +2 -5
  4. package/dist/_virtual/index5.js +4 -4
  5. package/dist/_virtual/index6.js +5 -2
  6. package/dist/_virtual/index7.js +5 -2
  7. package/dist/_virtual/index8.js +5 -0
  8. package/dist/_virtual/index9.js +5 -0
  9. package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
  10. package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
  11. package/dist/components/ui/checkbox.js +12 -12
  12. package/dist/components/ui/data-table.js +10 -10
  13. package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
  14. package/dist/components/ui/message-input.js +1 -1
  15. package/dist/components/ui/tables/data-cross-table/data-cross-table.js +348 -0
  16. package/dist/components/ui/tables/data-cross-table/edit-controls.js +47 -0
  17. package/dist/components/ui/tables/data-cross-table/editable-input.js +100 -0
  18. package/dist/components/ui/tables/data-cross-table/truncated-text.js +19 -0
  19. package/dist/index.d.ts +29 -3
  20. package/dist/index.js +1 -1
  21. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +126 -122
  22. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +10 -6
  23. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +44 -42
  24. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +33 -43
  25. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +237 -120
  26. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +17 -16
  27. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +95 -94
  28. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +20 -19
  29. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +3 -3
  30. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +14 -13
  31. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +136 -136
  32. package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +70 -68
  33. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +66 -64
  34. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +10 -9
  35. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +16 -16
  36. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +11 -10
  37. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +161 -146
  38. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +87 -84
  39. package/dist/node_modules/@radix-ui/react-select/dist/index.js +269 -257
  40. package/dist/node_modules/@radix-ui/react-slider/dist/index.js +3 -3
  41. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +29 -28
  42. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +101 -86
  43. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +23 -22
  44. package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +17 -16
  45. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +25 -23
  46. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -76
  47. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +43 -21
  48. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +16 -0
  49. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +18 -18
  50. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +36 -0
  51. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +491 -0
  52. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +53 -0
  53. package/dist/node_modules/classnames/index.js +1 -1
  54. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  55. package/dist/node_modules/property-information/lib/html.js +9 -9
  56. package/dist/node_modules/react-hook-form/dist/index.esm.js +88 -88
  57. package/dist/node_modules/react-is/index.js +1 -1
  58. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js +830 -801
  59. package/dist/node_modules/recharts/es6/util/ReactUtils.js +1 -1
  60. package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +9 -0
  61. package/dist/node_modules/remeda/dist/{chunk-A3PVMI4K.js → chunk-KI5X74E2.js} +1 -1
  62. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  63. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +3 -3
  64. package/dist/node_modules/unified/lib/index.js +1 -1
  65. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
  66. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
  67. package/dist/node_modules/use-sync-external-store/shim/index.js +11 -0
  68. package/dist/styles.css +1 -1
  69. package/package.json +2 -1
  70. package/dist/components/ui/data-cross-table.js +0 -216
  71. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
  72. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-collection/dist/index.js +0 -49
  73. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  74. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -138
  75. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-menu/dist/index.js +0 -625
  76. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-popper/dist/index.js +0 -221
  77. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-portal/dist/index.js +0 -17
  78. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
  79. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -184
  80. package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -55
  81. package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-collection/dist/index.js +0 -49
  82. package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-primitive/dist/index.js +0 -33
  83. package/dist/node_modules/@radix-ui/react-slider/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -55
  84. package/dist/node_modules/remeda/dist/chunk-OAMXQXGR.js +0 -9
@@ -1,20 +1,20 @@
1
1
  "use client";
2
2
  import * as a from "react";
3
- import { composeEventHandlers as M } from "../../primitive/dist/index.js";
4
- import { createContextScope as U } from "../../react-context/dist/index.js";
5
- import { Primitive as B } from "../../react-primitive/dist/index.js";
6
- import { createMenuScope as h, Root as F, Anchor as X, Portal as j, Content as H, Item as W, CheckboxItem as $, ItemIndicator as K, RadioItem as Y, Label as q, Separator as z, Group as J, Sub as Q, SubContent as V, SubTrigger as Z, RadioGroup as ee, Arrow as te } from "../../react-menu/dist/index.js";
7
- import { useCallbackRef as ne } from "../../react-use-callback-ref/dist/index.js";
8
- import { useControllableState as oe } from "../../react-use-controllable-state/dist/index.js";
9
- import { jsx as u, jsxs as re, Fragment as ae } from "react/jsx-runtime";
10
- var v = "ContextMenu", [ue, Ae] = U(v, [
3
+ import { composeEventHandlers as f } from "../../primitive/dist/index.js";
4
+ import { createContextScope as B } from "../../react-context/dist/index.js";
5
+ import { Primitive as F } from "../../react-primitive/dist/index.js";
6
+ import { createMenuScope as h, Root as X, Anchor as j, Portal as H, Content as W, Item as $, CheckboxItem as K, ItemIndicator as Y, RadioItem as q, Label as z, Separator as J, Group as Q, Sub as V, SubContent as Z, SubTrigger as ee, RadioGroup as te, Arrow as ne } from "../../react-menu/dist/index.js";
7
+ import { useCallbackRef as oe } from "../../react-use-callback-ref/dist/index.js";
8
+ import { useControllableState as re } from "../../react-use-controllable-state/dist/index.js";
9
+ import { jsx as u, jsxs as ae, Fragment as ue } from "react/jsx-runtime";
10
+ var v = "ContextMenu", [ce, Ae] = B(v, [
11
11
  h
12
- ]), i = h(), [ie, g] = ue(v), R = (e) => {
13
- const { __scopeContextMenu: n, children: o, onOpenChange: t, dir: r, modal: x = !0 } = e, [p, c] = a.useState(!1), d = i(n), l = ne(t), s = a.useCallback(
12
+ ]), c = h(), [ie, g] = ce(v), R = (e) => {
13
+ const { __scopeContextMenu: n, children: o, onOpenChange: t, dir: r, modal: l = !0 } = e, [p, i] = a.useState(!1), d = c(n), C = oe(t), s = a.useCallback(
14
14
  (m) => {
15
- c(m), l(m);
15
+ i(m), C(m);
16
16
  },
17
- [l]
17
+ [C]
18
18
  );
19
19
  return /* @__PURE__ */ u(
20
20
  ie,
@@ -22,15 +22,15 @@ var v = "ContextMenu", [ue, Ae] = U(v, [
22
22
  scope: n,
23
23
  open: p,
24
24
  onOpenChange: s,
25
- modal: x,
25
+ modal: l,
26
26
  children: /* @__PURE__ */ u(
27
- F,
27
+ X,
28
28
  {
29
29
  ...d,
30
30
  dir: r,
31
31
  open: p,
32
32
  onOpenChange: s,
33
- modal: x,
33
+ modal: l,
34
34
  children: o
35
35
  }
36
36
  )
@@ -40,66 +40,66 @@ var v = "ContextMenu", [ue, Ae] = U(v, [
40
40
  R.displayName = v;
41
41
  var _ = "ContextMenuTrigger", S = a.forwardRef(
42
42
  (e, n) => {
43
- const { __scopeContextMenu: o, disabled: t = !1, ...r } = e, x = g(_, o), p = i(o), c = a.useRef({ x: 0, y: 0 }), d = a.useRef({
44
- getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...c.current })
45
- }), l = a.useRef(0), s = a.useCallback(
46
- () => window.clearTimeout(l.current),
43
+ const { __scopeContextMenu: o, disabled: t = !1, ...r } = e, l = g(_, o), p = c(o), i = a.useRef({ x: 0, y: 0 }), d = a.useRef({
44
+ getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...i.current })
45
+ }), C = a.useRef(0), s = a.useCallback(
46
+ () => window.clearTimeout(C.current),
47
47
  []
48
- ), m = (C) => {
49
- c.current = { x: C.clientX, y: C.clientY }, x.onOpenChange(!0);
48
+ ), m = (x) => {
49
+ i.current = { x: x.clientX, y: x.clientY }, l.onOpenChange(!0);
50
50
  };
51
- return a.useEffect(() => s, [s]), a.useEffect(() => void (t && s()), [t, s]), /* @__PURE__ */ re(ae, { children: [
52
- /* @__PURE__ */ u(X, { ...p, virtualRef: d }),
51
+ return a.useEffect(() => s, [s]), a.useEffect(() => void (t && s()), [t, s]), /* @__PURE__ */ ae(ue, { children: [
52
+ /* @__PURE__ */ u(j, { ...p, virtualRef: d }),
53
53
  /* @__PURE__ */ u(
54
- B.span,
54
+ F.span,
55
55
  {
56
- "data-state": x.open ? "open" : "closed",
56
+ "data-state": l.open ? "open" : "closed",
57
57
  "data-disabled": t ? "" : void 0,
58
58
  ...r,
59
59
  ref: n,
60
60
  style: { WebkitTouchCallout: "none", ...e.style },
61
- onContextMenu: t ? e.onContextMenu : M(e.onContextMenu, (C) => {
62
- s(), m(C), C.preventDefault();
61
+ onContextMenu: t ? e.onContextMenu : f(e.onContextMenu, (x) => {
62
+ s(), m(x), x.preventDefault();
63
63
  }),
64
- onPointerDown: t ? e.onPointerDown : M(
64
+ onPointerDown: t ? e.onPointerDown : f(
65
65
  e.onPointerDown,
66
- f((C) => {
67
- s(), l.current = window.setTimeout(() => m(C), 700);
66
+ M((x) => {
67
+ s(), C.current = window.setTimeout(() => m(x), 700);
68
68
  })
69
69
  ),
70
- onPointerMove: t ? e.onPointerMove : M(e.onPointerMove, f(s)),
71
- onPointerCancel: t ? e.onPointerCancel : M(e.onPointerCancel, f(s)),
72
- onPointerUp: t ? e.onPointerUp : M(e.onPointerUp, f(s))
70
+ onPointerMove: t ? e.onPointerMove : f(e.onPointerMove, M(s)),
71
+ onPointerCancel: t ? e.onPointerCancel : f(e.onPointerCancel, M(s)),
72
+ onPointerUp: t ? e.onPointerUp : f(e.onPointerUp, M(s))
73
73
  }
74
74
  )
75
75
  ] });
76
76
  }
77
77
  );
78
78
  S.displayName = _;
79
- var ce = "ContextMenuPortal", P = (e) => {
80
- const { __scopeContextMenu: n, ...o } = e, t = i(n);
81
- return /* @__PURE__ */ u(j, { ...t, ...o });
79
+ var se = "ContextMenuPortal", P = (e) => {
80
+ const { __scopeContextMenu: n, ...o } = e, t = c(n);
81
+ return /* @__PURE__ */ u(H, { ...t, ...o });
82
82
  };
83
- P.displayName = ce;
83
+ P.displayName = se;
84
84
  var b = "ContextMenuContent", I = a.forwardRef(
85
85
  (e, n) => {
86
- const { __scopeContextMenu: o, ...t } = e, r = g(b, o), x = i(o), p = a.useRef(!1);
86
+ const { __scopeContextMenu: o, ...t } = e, r = g(b, o), l = c(o), p = a.useRef(!1);
87
87
  return /* @__PURE__ */ u(
88
- H,
88
+ W,
89
89
  {
90
- ...x,
90
+ ...l,
91
91
  ...t,
92
92
  ref: n,
93
93
  side: "right",
94
94
  sideOffset: 2,
95
95
  align: "start",
96
- onCloseAutoFocus: (c) => {
96
+ onCloseAutoFocus: (i) => {
97
97
  var d;
98
- (d = e.onCloseAutoFocus) == null || d.call(e, c), !c.defaultPrevented && p.current && c.preventDefault(), p.current = !1;
98
+ (d = e.onCloseAutoFocus) == null || d.call(e, i), !i.defaultPrevented && p.current && i.preventDefault(), p.current = !1;
99
99
  },
100
- onInteractOutside: (c) => {
100
+ onInteractOutside: (i) => {
101
101
  var d;
102
- (d = e.onInteractOutside) == null || d.call(e, c), !c.defaultPrevented && !r.modal && (p.current = !0);
102
+ (d = e.onInteractOutside) == null || d.call(e, i), !i.defaultPrevented && !r.modal && (p.current = !0);
103
103
  },
104
104
  style: {
105
105
  ...e.style,
@@ -114,77 +114,78 @@ var b = "ContextMenuContent", I = a.forwardRef(
114
114
  }
115
115
  );
116
116
  I.displayName = b;
117
- var se = "ContextMenuGroup", N = a.forwardRef(
117
+ var de = "ContextMenuGroup", N = a.forwardRef(
118
118
  (e, n) => {
119
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
120
- return /* @__PURE__ */ u(J, { ...r, ...t, ref: n });
119
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
120
+ return /* @__PURE__ */ u(Q, { ...r, ...t, ref: n });
121
121
  }
122
122
  );
123
- N.displayName = se;
124
- var de = "ContextMenuLabel", w = a.forwardRef(
123
+ N.displayName = de;
124
+ var pe = "ContextMenuLabel", w = a.forwardRef(
125
125
  (e, n) => {
126
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
127
- return /* @__PURE__ */ u(q, { ...r, ...t, ref: n });
126
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
127
+ return /* @__PURE__ */ u(z, { ...r, ...t, ref: n });
128
128
  }
129
129
  );
130
- w.displayName = de;
131
- var pe = "ContextMenuItem", A = a.forwardRef(
130
+ w.displayName = pe;
131
+ var le = "ContextMenuItem", A = a.forwardRef(
132
132
  (e, n) => {
133
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
134
- return /* @__PURE__ */ u(W, { ...r, ...t, ref: n });
133
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
134
+ return /* @__PURE__ */ u($, { ...r, ...t, ref: n });
135
135
  }
136
136
  );
137
- A.displayName = pe;
137
+ A.displayName = le;
138
138
  var xe = "ContextMenuCheckboxItem", E = a.forwardRef((e, n) => {
139
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
140
- return /* @__PURE__ */ u($, { ...r, ...t, ref: n });
139
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
140
+ return /* @__PURE__ */ u(K, { ...r, ...t, ref: n });
141
141
  });
142
142
  E.displayName = xe;
143
143
  var Ce = "ContextMenuRadioGroup", O = a.forwardRef((e, n) => {
144
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
145
- return /* @__PURE__ */ u(ee, { ...r, ...t, ref: n });
144
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
145
+ return /* @__PURE__ */ u(te, { ...r, ...t, ref: n });
146
146
  });
147
147
  O.displayName = Ce;
148
- var le = "ContextMenuRadioItem", T = a.forwardRef((e, n) => {
149
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
150
- return /* @__PURE__ */ u(Y, { ...r, ...t, ref: n });
148
+ var me = "ContextMenuRadioItem", T = a.forwardRef((e, n) => {
149
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
150
+ return /* @__PURE__ */ u(q, { ...r, ...t, ref: n });
151
151
  });
152
- T.displayName = le;
153
- var me = "ContextMenuItemIndicator", y = a.forwardRef((e, n) => {
154
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
155
- return /* @__PURE__ */ u(K, { ...r, ...t, ref: n });
152
+ T.displayName = me;
153
+ var fe = "ContextMenuItemIndicator", y = a.forwardRef((e, n) => {
154
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
155
+ return /* @__PURE__ */ u(Y, { ...r, ...t, ref: n });
156
156
  });
157
- y.displayName = me;
157
+ y.displayName = fe;
158
158
  var Me = "ContextMenuSeparator", G = a.forwardRef((e, n) => {
159
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
160
- return /* @__PURE__ */ u(z, { ...r, ...t, ref: n });
159
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
160
+ return /* @__PURE__ */ u(J, { ...r, ...t, ref: n });
161
161
  });
162
162
  G.displayName = Me;
163
- var fe = "ContextMenuArrow", ve = a.forwardRef(
163
+ var ve = "ContextMenuArrow", he = a.forwardRef(
164
164
  (e, n) => {
165
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
166
- return /* @__PURE__ */ u(te, { ...r, ...t, ref: n });
165
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
166
+ return /* @__PURE__ */ u(ne, { ...r, ...t, ref: n });
167
167
  }
168
168
  );
169
- ve.displayName = fe;
170
- var he = "ContextMenuSub", k = (e) => {
171
- const { __scopeContextMenu: n, children: o, onOpenChange: t, open: r, defaultOpen: x } = e, p = i(n), [c, d] = oe({
169
+ he.displayName = ve;
170
+ var k = "ContextMenuSub", D = (e) => {
171
+ const { __scopeContextMenu: n, children: o, onOpenChange: t, open: r, defaultOpen: l } = e, p = c(n), [i, d] = re({
172
172
  prop: r,
173
- defaultProp: x,
174
- onChange: t
173
+ defaultProp: l ?? !1,
174
+ onChange: t,
175
+ caller: k
175
176
  });
176
- return /* @__PURE__ */ u(Q, { ...p, open: c, onOpenChange: d, children: o });
177
+ return /* @__PURE__ */ u(V, { ...p, open: i, onOpenChange: d, children: o });
177
178
  };
178
- k.displayName = he;
179
- var ge = "ContextMenuSubTrigger", D = a.forwardRef((e, n) => {
180
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
181
- return /* @__PURE__ */ u(Z, { ...r, ...t, ref: n });
179
+ D.displayName = k;
180
+ var ge = "ContextMenuSubTrigger", L = a.forwardRef((e, n) => {
181
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
182
+ return /* @__PURE__ */ u(ee, { ...r, ...t, ref: n });
182
183
  });
183
- D.displayName = ge;
184
- var Re = "ContextMenuSubContent", L = a.forwardRef((e, n) => {
185
- const { __scopeContextMenu: o, ...t } = e, r = i(o);
184
+ L.displayName = ge;
185
+ var Re = "ContextMenuSubContent", U = a.forwardRef((e, n) => {
186
+ const { __scopeContextMenu: o, ...t } = e, r = c(o);
186
187
  return /* @__PURE__ */ u(
187
- V,
188
+ Z,
188
189
  {
189
190
  ...r,
190
191
  ...t,
@@ -200,16 +201,16 @@ var Re = "ContextMenuSubContent", L = a.forwardRef((e, n) => {
200
201
  }
201
202
  );
202
203
  });
203
- L.displayName = Re;
204
- function f(e) {
204
+ U.displayName = Re;
205
+ function M(e) {
205
206
  return (n) => n.pointerType !== "mouse" ? e(n) : void 0;
206
207
  }
207
- var Ee = R, Oe = S, Te = P, ye = I, Ge = N, ke = w, De = A, Le = E, Ue = O, Be = T, Fe = y, Xe = G, je = k, He = D, We = L;
208
+ var Ee = R, Oe = S, Te = P, ye = I, Ge = N, ke = w, De = A, Le = E, Ue = O, Be = T, Fe = y, Xe = G, je = D, He = L, We = U;
208
209
  export {
209
210
  Le as CheckboxItem,
210
211
  ye as Content,
211
212
  R as ContextMenu,
212
- ve as ContextMenuArrow,
213
+ he as ContextMenuArrow,
213
214
  E as ContextMenuCheckboxItem,
214
215
  I as ContextMenuContent,
215
216
  N as ContextMenuGroup,
@@ -220,9 +221,9 @@ export {
220
221
  O as ContextMenuRadioGroup,
221
222
  T as ContextMenuRadioItem,
222
223
  G as ContextMenuSeparator,
223
- k as ContextMenuSub,
224
- L as ContextMenuSubContent,
225
- D as ContextMenuSubTrigger,
224
+ D as ContextMenuSub,
225
+ U as ContextMenuSubContent,
226
+ L as ContextMenuSubTrigger,
226
227
  S as ContextMenuTrigger,
227
228
  Ge as Group,
228
229
  De as Item,
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import * as s from "react";
3
3
  import { composeEventHandlers as p } from "../../primitive/dist/index.js";
4
- import { useComposedRefs as R } from "../../react-compose-refs/dist/index.js";
4
+ import { useComposedRefs as _ } from "../../react-compose-refs/dist/index.js";
5
5
  import { createContextScope as V, createContext as q } from "../../react-context/dist/index.js";
6
- import { useId as C } from "../../react-id/dist/index.js";
6
+ import { useId as R } from "../../react-id/dist/index.js";
7
7
  import { useControllableState as K } from "../../react-use-controllable-state/dist/index.js";
8
8
  import { DismissableLayer as U } from "../../react-dismissable-layer/dist/index.js";
9
9
  import { FocusScope as Y } from "../../react-focus-scope/dist/index.js";
10
10
  import { Portal as Z } from "../../react-portal/dist/index.js";
11
- import { Presence as _ } from "../../react-presence/dist/index.js";
11
+ import { Presence as h } from "../../react-presence/dist/index.js";
12
12
  import { Primitive as m } from "../../react-primitive/dist/index.js";
13
13
  import { useFocusGuards as z } from "../../react-focus-guards/dist/index.js";
14
14
  import J from "../../../react-remove-scroll/dist/es2015/Combination.js";
15
15
  import { hideOthers as Q } from "../../../aria-hidden/dist/es2015/index.js";
16
16
  import { createSlot as X } from "../../react-slot/dist/index.js";
17
17
  import { jsx as i, jsxs as P, Fragment as O } from "react/jsx-runtime";
18
- var h = "Dialog", [I, Ne] = V(h), [ee, u] = I(h), x = (e) => {
18
+ var v = "Dialog", [I, Ne] = V(v), [ee, u] = I(v), x = (e) => {
19
19
  const {
20
20
  __scopeDialog: o,
21
21
  children: n,
@@ -23,10 +23,11 @@ var h = "Dialog", [I, Ne] = V(h), [ee, u] = I(h), x = (e) => {
23
23
  defaultOpen: r,
24
24
  onOpenChange: t,
25
25
  modal: c = !0
26
- } = e, l = s.useRef(null), d = s.useRef(null), [g = !1, v] = K({
26
+ } = e, l = s.useRef(null), d = s.useRef(null), [g, C] = K({
27
27
  prop: a,
28
- defaultProp: r,
29
- onChange: t
28
+ defaultProp: r ?? !1,
29
+ onChange: t,
30
+ caller: v
30
31
  });
31
32
  return /* @__PURE__ */ i(
32
33
  ee,
@@ -34,21 +35,21 @@ var h = "Dialog", [I, Ne] = V(h), [ee, u] = I(h), x = (e) => {
34
35
  scope: o,
35
36
  triggerRef: l,
36
37
  contentRef: d,
37
- contentId: C(),
38
- titleId: C(),
39
- descriptionId: C(),
38
+ contentId: R(),
39
+ titleId: R(),
40
+ descriptionId: R(),
40
41
  open: g,
41
- onOpenChange: v,
42
- onOpenToggle: s.useCallback(() => v((H) => !H), [v]),
42
+ onOpenChange: C,
43
+ onOpenToggle: s.useCallback(() => C((H) => !H), [C]),
43
44
  modal: c,
44
45
  children: n
45
46
  }
46
47
  );
47
48
  };
48
- x.displayName = h;
49
+ x.displayName = v;
49
50
  var A = "DialogTrigger", T = s.forwardRef(
50
51
  (e, o) => {
51
- const { __scopeDialog: n, ...a } = e, r = u(A, n), t = R(o, r.triggerRef);
52
+ const { __scopeDialog: n, ...a } = e, r = u(A, n), t = _(o, r.triggerRef);
52
53
  return /* @__PURE__ */ i(
53
54
  m.button,
54
55
  {
@@ -69,13 +70,13 @@ var E = "DialogPortal", [te, b] = I(E, {
69
70
  forceMount: void 0
70
71
  }), M = (e) => {
71
72
  const { __scopeDialog: o, forceMount: n, children: a, container: r } = e, t = u(E, o);
72
- return /* @__PURE__ */ i(te, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i(_, { present: n || t.open, children: /* @__PURE__ */ i(Z, { asChild: !0, container: r, children: c }) })) });
73
+ return /* @__PURE__ */ i(te, { scope: o, forceMount: n, children: s.Children.map(a, (c) => /* @__PURE__ */ i(h, { present: n || t.open, children: /* @__PURE__ */ i(Z, { asChild: !0, container: r, children: c }) })) });
73
74
  };
74
75
  M.displayName = E;
75
76
  var D = "DialogOverlay", w = s.forwardRef(
76
77
  (e, o) => {
77
78
  const n = b(D, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(D, e.__scopeDialog);
78
- return t.modal ? /* @__PURE__ */ i(_, { present: a || t.open, children: /* @__PURE__ */ i(re, { ...r, ref: o }) }) : null;
79
+ return t.modal ? /* @__PURE__ */ i(h, { present: a || t.open, children: /* @__PURE__ */ i(re, { ...r, ref: o }) }) : null;
79
80
  }
80
81
  );
81
82
  w.displayName = D;
@@ -99,13 +100,13 @@ var oe = X("DialogOverlay.RemoveScroll"), re = s.forwardRef(
99
100
  ), f = "DialogContent", S = s.forwardRef(
100
101
  (e, o) => {
101
102
  const n = b(f, e.__scopeDialog), { forceMount: a = n.forceMount, ...r } = e, t = u(f, e.__scopeDialog);
102
- return /* @__PURE__ */ i(_, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i(ne, { ...r, ref: o }) : /* @__PURE__ */ i(ae, { ...r, ref: o }) });
103
+ return /* @__PURE__ */ i(h, { present: a || t.open, children: t.modal ? /* @__PURE__ */ i(ne, { ...r, ref: o }) : /* @__PURE__ */ i(ae, { ...r, ref: o }) });
103
104
  }
104
105
  );
105
106
  S.displayName = f;
106
107
  var ne = s.forwardRef(
107
108
  (e, o) => {
108
- const n = u(f, e.__scopeDialog), a = s.useRef(null), r = R(o, n.contentRef, a);
109
+ const n = u(f, e.__scopeDialog), a = s.useRef(null), r = _(o, n.contentRef, a);
109
110
  return s.useEffect(() => {
110
111
  const t = a.current;
111
112
  if (t) return Q(t);
@@ -156,7 +157,7 @@ var ne = s.forwardRef(
156
157
  }
157
158
  ), F = s.forwardRef(
158
159
  (e, o) => {
159
- const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = R(o, d);
160
+ const { __scopeDialog: n, trapFocus: a, onOpenAutoFocus: r, onCloseAutoFocus: t, ...c } = e, l = u(f, n), d = s.useRef(null), g = _(o, d);
160
161
  return z(), /* @__PURE__ */ P(O, { children: [
161
162
  /* @__PURE__ */ i(
162
163
  Y,
@@ -3,9 +3,9 @@ import * as p from "react";
3
3
  import { composeEventHandlers as w } from "../../primitive/dist/index.js";
4
4
  import { composeRefs as G } from "../../react-compose-refs/dist/index.js";
5
5
  import { createContextScope as k } from "../../react-context/dist/index.js";
6
- import { useControllableState as L } from "../node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
7
- import { Primitive as K } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
8
- import { createMenuScope as g, Root as U, Anchor as B, Portal as F, Content as H, Item as W, Label as $, Separator as j, Group as X, CheckboxItem as q, RadioGroup as z, RadioItem as J, ItemIndicator as Q, Arrow as V, SubTrigger as Y, SubContent as Z } from "../node_modules/@radix-ui/react-menu/dist/index.js";
6
+ import { useControllableState as L } from "../../react-use-controllable-state/dist/index.js";
7
+ import { Primitive as K } from "../../react-primitive/dist/index.js";
8
+ import { createMenuScope as g, Root as U, Anchor as B, Portal as F, Content as H, Item as W, Label as $, Separator as j, Group as X, CheckboxItem as q, RadioGroup as z, RadioItem as J, ItemIndicator as Q, Arrow as V, SubTrigger as Y, SubContent as Z } from "../../react-menu/dist/index.js";
9
9
  import { useId as v } from "../../react-id/dist/index.js";
10
10
  import { jsx as a } from "react/jsx-runtime";
11
11
  var f = "DropdownMenu", [oo, Co] = k(
@@ -10,9 +10,9 @@ import { Presence as O } from "../../react-presence/dist/index.js";
10
10
  import { Primitive as $ } from "../../react-primitive/dist/index.js";
11
11
  import { DismissableLayer as j } from "../../react-dismissable-layer/dist/index.js";
12
12
  import { jsx as i } from "react/jsx-runtime";
13
- var g, x = "HoverCard", [_, le] = k(x, [
13
+ var x, b = "HoverCard", [_, le] = k(b, [
14
14
  H
15
- ]), b = H(), [V, E] = _(x), y = (e) => {
15
+ ]), E = H(), [V, g] = _(b), y = (e) => {
16
16
  const {
17
17
  __scopeHoverCard: o,
18
18
  children: t,
@@ -21,10 +21,11 @@ var g, x = "HoverCard", [_, le] = k(x, [
21
21
  onOpenChange: c,
22
22
  openDelay: f = 700,
23
23
  closeDelay: v = 300
24
- } = e, l = b(o), C = n.useRef(0), u = n.useRef(0), m = n.useRef(!1), p = n.useRef(!1), [h = !1, r] = F({
24
+ } = e, l = E(o), C = n.useRef(0), u = n.useRef(0), m = n.useRef(!1), p = n.useRef(!1), [h, r] = F({
25
25
  prop: s,
26
- defaultProp: a,
27
- onChange: c
26
+ defaultProp: a ?? !1,
27
+ onChange: c,
28
+ caller: b
28
29
  }), P = n.useCallback(() => {
29
30
  clearTimeout(u.current), C.current = window.setTimeout(() => r(!0), f);
30
31
  }, [f, r]), R = n.useCallback(() => {
@@ -47,10 +48,10 @@ var g, x = "HoverCard", [_, le] = k(x, [
47
48
  }
48
49
  );
49
50
  };
50
- y.displayName = x;
51
+ y.displayName = b;
51
52
  var N = "HoverCardTrigger", D = n.forwardRef(
52
53
  (e, o) => {
53
- const { __scopeHoverCard: t, ...s } = e, a = E(N, t), c = b(t);
54
+ const { __scopeHoverCard: t, ...s } = e, a = g(N, t), c = E(t);
54
55
  return /* @__PURE__ */ i(W, { asChild: !0, ...c, children: /* @__PURE__ */ i(
55
56
  $.a,
56
57
  {
@@ -70,13 +71,13 @@ D.displayName = N;
70
71
  var T = "HoverCardPortal", [q, z] = _(T, {
71
72
  forceMount: void 0
72
73
  }), A = (e) => {
73
- const { __scopeHoverCard: o, forceMount: t, children: s, container: a } = e, c = E(T, o);
74
+ const { __scopeHoverCard: o, forceMount: t, children: s, container: a } = e, c = g(T, o);
74
75
  return /* @__PURE__ */ i(q, { scope: o, forceMount: t, children: /* @__PURE__ */ i(O, { present: t || c.open, children: /* @__PURE__ */ i(K, { asChild: !0, container: a, children: s }) }) });
75
76
  };
76
77
  A.displayName = T;
77
78
  var S = "HoverCardContent", L = n.forwardRef(
78
79
  (e, o) => {
79
- const t = z(S, e.__scopeHoverCard), { forceMount: s = t.forceMount, ...a } = e, c = E(S, e.__scopeHoverCard);
80
+ const t = z(S, e.__scopeHoverCard), { forceMount: s = t.forceMount, ...a } = e, c = g(S, e.__scopeHoverCard);
80
81
  return /* @__PURE__ */ i(O, { present: s || c.open, children: /* @__PURE__ */ i(
81
82
  J,
82
83
  {
@@ -98,12 +99,12 @@ var J = n.forwardRef((e, o) => {
98
99
  onFocusOutside: c,
99
100
  onInteractOutside: f,
100
101
  ...v
101
- } = e, l = E(S, t), C = b(t), u = n.useRef(null), m = I(o, u), [p, h] = n.useState(!1);
102
+ } = e, l = g(S, t), C = E(t), u = n.useRef(null), m = I(o, u), [p, h] = n.useState(!1);
102
103
  return n.useEffect(() => {
103
104
  if (p) {
104
105
  const r = document.body;
105
- return g = r.style.userSelect || r.style.webkitUserSelect, r.style.userSelect = "none", r.style.webkitUserSelect = "none", () => {
106
- r.style.userSelect = g, r.style.webkitUserSelect = g;
106
+ return x = r.style.userSelect || r.style.webkitUserSelect, r.style.userSelect = "none", r.style.webkitUserSelect = "none", () => {
107
+ r.style.userSelect = x, r.style.webkitUserSelect = x;
107
108
  };
108
109
  }
109
110
  }, [p]), n.useEffect(() => {
@@ -158,7 +159,7 @@ var J = n.forwardRef((e, o) => {
158
159
  );
159
160
  }), Q = "HoverCardArrow", X = n.forwardRef(
160
161
  (e, o) => {
161
- const { __scopeHoverCard: t, ...s } = e, a = b(t);
162
+ const { __scopeHoverCard: t, ...s } = e, a = E(t);
162
163
  return /* @__PURE__ */ i(G, { ...a, ...s, ref: o });
163
164
  }
164
165
  );