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,136 +1,253 @@
1
1
  "use client";
2
- import * as n from "react";
3
- import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
4
- import { createContextScope as O } from "../../react-context/dist/index.js";
2
+ import * as s from "react";
3
+ import { useComposedRefs as B } from "../../react-compose-refs/dist/index.js";
4
+ import { createContextScope as L } from "../../react-context/dist/index.js";
5
5
  import { composeEventHandlers as S } from "../../primitive/dist/index.js";
6
- import { useControllableState as j } from "../../react-use-controllable-state/dist/index.js";
7
- import { usePrevious as A } from "../../react-use-previous/dist/index.js";
8
- import { useSize as B } from "../../react-use-size/dist/index.js";
9
- import { Presence as H } from "../../react-presence/dist/index.js";
10
- import { Primitive as I } from "../../react-primitive/dist/index.js";
11
- import { jsxs as K, jsx as h } from "react/jsx-runtime";
12
- var P = "Checkbox", [L, Z] = O(P), [q, z] = L(P), g = n.forwardRef(
13
- (e, f) => {
6
+ import { useControllableState as O } from "../../react-use-controllable-state/dist/index.js";
7
+ import { usePrevious as j } from "../../react-use-previous/dist/index.js";
8
+ import { useSize as H } from "../../react-use-size/dist/index.js";
9
+ import { Presence as z } from "../../react-presence/dist/index.js";
10
+ import { Primitive as P } from "../../react-primitive/dist/index.js";
11
+ import { jsx as b, jsxs as G, Fragment as K } from "react/jsx-runtime";
12
+ var g = "Checkbox", [U, se] = L(g), [X, E] = U(g);
13
+ function J(t) {
14
+ const {
15
+ __scopeCheckbox: a,
16
+ checked: c,
17
+ children: u,
18
+ defaultChecked: r,
19
+ disabled: e,
20
+ form: p,
21
+ name: f,
22
+ onCheckedChange: i,
23
+ required: m,
24
+ value: C = "on",
25
+ // @ts-expect-error
26
+ internal_do_not_use_render: d
27
+ } = t, [l, v] = O({
28
+ prop: c,
29
+ defaultProp: r ?? !1,
30
+ onChange: i,
31
+ caller: g
32
+ }), [k, x] = s.useState(null), [_, o] = s.useState(null), n = s.useRef(!1), I = k ? !!p || !!k.closest("form") : (
33
+ // We set this to true by default so that events bubble to forms without JS (SSR)
34
+ !0
35
+ ), R = {
36
+ checked: l,
37
+ disabled: e,
38
+ setChecked: v,
39
+ control: k,
40
+ setControl: x,
41
+ name: f,
42
+ form: p,
43
+ value: C,
44
+ hasConsumerStoppedPropagationRef: n,
45
+ required: m,
46
+ defaultChecked: h(r) ? !1 : r,
47
+ isFormControl: I,
48
+ bubbleInput: _,
49
+ setBubbleInput: o
50
+ };
51
+ return /* @__PURE__ */ b(
52
+ X,
53
+ {
54
+ scope: a,
55
+ ...R,
56
+ children: W(d) ? d(R) : u
57
+ }
58
+ );
59
+ }
60
+ var N = "CheckboxTrigger", w = s.forwardRef(
61
+ ({ __scopeCheckbox: t, onKeyDown: a, onClick: c, ...u }, r) => {
14
62
  const {
15
- __scopeCheckbox: t,
16
- name: i,
17
- checked: l,
18
- defaultChecked: r,
19
- required: p,
20
- disabled: a,
21
- value: k = "on",
22
- onCheckedChange: b,
23
- form: d,
24
- ...v
25
- } = e, [c, C] = n.useState(null), x = M(f, (o) => C(o)), y = n.useRef(!1), R = c ? d || !!c.closest("form") : !0, [u = !1, E] = j({
26
- prop: l,
27
- defaultProp: r,
28
- onChange: b
29
- }), N = n.useRef(u);
30
- return n.useEffect(() => {
31
- const o = c == null ? void 0 : c.form;
63
+ control: e,
64
+ value: p,
65
+ disabled: f,
66
+ checked: i,
67
+ required: m,
68
+ setControl: C,
69
+ setChecked: d,
70
+ hasConsumerStoppedPropagationRef: l,
71
+ isFormControl: v,
72
+ bubbleInput: k
73
+ } = E(N, t), x = B(r, C), _ = s.useRef(i);
74
+ return s.useEffect(() => {
75
+ const o = e == null ? void 0 : e.form;
32
76
  if (o) {
33
- const m = () => E(N.current);
34
- return o.addEventListener("reset", m), () => o.removeEventListener("reset", m);
77
+ const n = () => d(_.current);
78
+ return o.addEventListener("reset", n), () => o.removeEventListener("reset", n);
35
79
  }
36
- }, [c, E]), /* @__PURE__ */ K(q, { scope: t, state: u, disabled: a, children: [
37
- /* @__PURE__ */ h(
38
- I.button,
39
- {
40
- type: "button",
41
- role: "checkbox",
42
- "aria-checked": s(u) ? "mixed" : u,
43
- "aria-required": p,
44
- "data-state": D(u),
45
- "data-disabled": a ? "" : void 0,
46
- disabled: a,
47
- value: k,
48
- ...v,
49
- ref: x,
50
- onKeyDown: S(e.onKeyDown, (o) => {
51
- o.key === "Enter" && o.preventDefault();
52
- }),
53
- onClick: S(e.onClick, (o) => {
54
- E((m) => s(m) ? !0 : !m), R && (y.current = o.isPropagationStopped(), y.current || o.stopPropagation());
55
- })
56
- }
57
- ),
58
- R && /* @__PURE__ */ h(
59
- T,
60
- {
61
- control: c,
62
- bubbles: !y.current,
63
- name: i,
64
- value: k,
65
- checked: u,
66
- required: p,
67
- disabled: a,
68
- form: d,
69
- style: { transform: "translateX(-100%)" },
70
- defaultChecked: s(r) ? !1 : r
71
- }
72
- )
73
- ] });
80
+ }, [e, d]), /* @__PURE__ */ b(
81
+ P.button,
82
+ {
83
+ type: "button",
84
+ role: "checkbox",
85
+ "aria-checked": h(i) ? "mixed" : i,
86
+ "aria-required": m,
87
+ "data-state": A(i),
88
+ "data-disabled": f ? "" : void 0,
89
+ disabled: f,
90
+ value: p,
91
+ ...u,
92
+ ref: x,
93
+ onKeyDown: S(a, (o) => {
94
+ o.key === "Enter" && o.preventDefault();
95
+ }),
96
+ onClick: S(c, (o) => {
97
+ d((n) => h(n) ? !0 : !n), k && v && (l.current = o.isPropagationStopped(), l.current || o.stopPropagation());
98
+ })
99
+ }
100
+ );
74
101
  }
75
102
  );
76
- g.displayName = P;
77
- var w = "CheckboxIndicator", _ = n.forwardRef(
78
- (e, f) => {
79
- const { __scopeCheckbox: t, forceMount: i, ...l } = e, r = z(w, t);
80
- return /* @__PURE__ */ h(H, { present: i || s(r.state) || r.state === !0, children: /* @__PURE__ */ h(
81
- I.span,
103
+ w.displayName = N;
104
+ var Q = s.forwardRef(
105
+ (t, a) => {
106
+ const {
107
+ __scopeCheckbox: c,
108
+ name: u,
109
+ checked: r,
110
+ defaultChecked: e,
111
+ required: p,
112
+ disabled: f,
113
+ value: i,
114
+ onCheckedChange: m,
115
+ form: C,
116
+ ...d
117
+ } = t;
118
+ return /* @__PURE__ */ b(
119
+ J,
82
120
  {
83
- "data-state": D(r.state),
84
- "data-disabled": r.disabled ? "" : void 0,
85
- ...l,
86
- ref: f,
87
- style: { pointerEvents: "none", ...e.style }
121
+ __scopeCheckbox: c,
122
+ checked: r,
123
+ defaultChecked: e,
124
+ disabled: f,
125
+ required: p,
126
+ onCheckedChange: m,
127
+ name: u,
128
+ form: C,
129
+ value: i,
130
+ internal_do_not_use_render: ({ isFormControl: l }) => /* @__PURE__ */ G(K, { children: [
131
+ /* @__PURE__ */ b(
132
+ w,
133
+ {
134
+ ...d,
135
+ ref: a,
136
+ __scopeCheckbox: c
137
+ }
138
+ ),
139
+ l && /* @__PURE__ */ b(
140
+ q,
141
+ {
142
+ __scopeCheckbox: c
143
+ }
144
+ )
145
+ ] })
88
146
  }
89
- ) });
147
+ );
90
148
  }
91
149
  );
92
- _.displayName = w;
93
- var T = (e) => {
94
- const { control: f, checked: t, bubbles: i = !0, defaultChecked: l, ...r } = e, p = n.useRef(null), a = A(t), k = B(f);
95
- n.useEffect(() => {
96
- const d = p.current, v = window.HTMLInputElement.prototype, C = Object.getOwnPropertyDescriptor(v, "checked").set;
97
- if (a !== t && C) {
98
- const x = new Event("click", { bubbles: i });
99
- d.indeterminate = s(t), C.call(d, s(t) ? !1 : t), d.dispatchEvent(x);
100
- }
101
- }, [a, t, i]);
102
- const b = n.useRef(s(t) ? !1 : t);
103
- return /* @__PURE__ */ h(
104
- "input",
105
- {
106
- type: "checkbox",
107
- "aria-hidden": !0,
108
- defaultChecked: l ?? b.current,
109
- ...r,
110
- tabIndex: -1,
111
- ref: p,
112
- style: {
113
- ...e.style,
114
- ...k,
115
- position: "absolute",
116
- pointerEvents: "none",
117
- opacity: 0,
118
- margin: 0
150
+ Q.displayName = g;
151
+ var T = "CheckboxIndicator", V = s.forwardRef(
152
+ (t, a) => {
153
+ const { __scopeCheckbox: c, forceMount: u, ...r } = t, e = E(T, c);
154
+ return /* @__PURE__ */ b(
155
+ z,
156
+ {
157
+ present: u || h(e.checked) || e.checked === !0,
158
+ children: /* @__PURE__ */ b(
159
+ P.span,
160
+ {
161
+ "data-state": A(e.checked),
162
+ "data-disabled": e.disabled ? "" : void 0,
163
+ ...r,
164
+ ref: a,
165
+ style: { pointerEvents: "none", ...t.style }
166
+ }
167
+ )
119
168
  }
120
- }
121
- );
122
- };
123
- function s(e) {
124
- return e === "indeterminate";
169
+ );
170
+ }
171
+ );
172
+ V.displayName = T;
173
+ var M = "CheckboxBubbleInput", q = s.forwardRef(
174
+ ({ __scopeCheckbox: t, ...a }, c) => {
175
+ const {
176
+ control: u,
177
+ hasConsumerStoppedPropagationRef: r,
178
+ checked: e,
179
+ defaultChecked: p,
180
+ required: f,
181
+ disabled: i,
182
+ name: m,
183
+ value: C,
184
+ form: d,
185
+ bubbleInput: l,
186
+ setBubbleInput: v
187
+ } = E(M, t), k = B(c, v), x = j(e), _ = H(u);
188
+ s.useEffect(() => {
189
+ const n = l;
190
+ if (!n) return;
191
+ const I = window.HTMLInputElement.prototype, y = Object.getOwnPropertyDescriptor(
192
+ I,
193
+ "checked"
194
+ ).set, D = !r.current;
195
+ if (x !== e && y) {
196
+ const F = new Event("click", { bubbles: D });
197
+ n.indeterminate = h(e), y.call(n, h(e) ? !1 : e), n.dispatchEvent(F);
198
+ }
199
+ }, [l, x, e, r]);
200
+ const o = s.useRef(h(e) ? !1 : e);
201
+ return /* @__PURE__ */ b(
202
+ P.input,
203
+ {
204
+ type: "checkbox",
205
+ "aria-hidden": !0,
206
+ defaultChecked: p ?? o.current,
207
+ required: f,
208
+ disabled: i,
209
+ name: m,
210
+ value: C,
211
+ form: d,
212
+ ...a,
213
+ tabIndex: -1,
214
+ ref: k,
215
+ style: {
216
+ ...a.style,
217
+ ..._,
218
+ position: "absolute",
219
+ pointerEvents: "none",
220
+ opacity: 0,
221
+ margin: 0,
222
+ // We transform because the input is absolutely positioned but we have
223
+ // rendered it **after** the button. This pulls it back to sit on top
224
+ // of the button.
225
+ transform: "translateX(-100%)"
226
+ }
227
+ }
228
+ );
229
+ }
230
+ );
231
+ q.displayName = M;
232
+ function W(t) {
233
+ return typeof t == "function";
234
+ }
235
+ function h(t) {
236
+ return t === "indeterminate";
125
237
  }
126
- function D(e) {
127
- return s(e) ? "indeterminate" : e ? "checked" : "unchecked";
238
+ function A(t) {
239
+ return h(t) ? "indeterminate" : t ? "checked" : "unchecked";
128
240
  }
129
- var $ = g, ee = _;
130
241
  export {
131
- g as Checkbox,
132
- _ as CheckboxIndicator,
133
- ee as Indicator,
134
- $ as Root,
135
- Z as createCheckboxScope
242
+ Q as Checkbox,
243
+ V as CheckboxIndicator,
244
+ V as Indicator,
245
+ Q as Root,
246
+ se as createCheckboxScope,
247
+ q as unstable_BubbleInput,
248
+ q as unstable_CheckboxBubbleInput,
249
+ J as unstable_CheckboxProvider,
250
+ w as unstable_CheckboxTrigger,
251
+ J as unstable_Provider,
252
+ w as unstable_Trigger
136
253
  };
@@ -5,11 +5,11 @@ import { createContextScope as S } from "../../react-context/dist/index.js";
5
5
  import { useControllableState as D } from "../../react-use-controllable-state/dist/index.js";
6
6
  import { useLayoutEffect as L } from "../../react-use-layout-effect/dist/index.js";
7
7
  import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
8
- import { Primitive as b } from "../../react-primitive/dist/index.js";
8
+ import { Primitive as v } from "../../react-primitive/dist/index.js";
9
9
  import { Presence as k } from "../../react-presence/dist/index.js";
10
10
  import { useId as F } from "../../react-id/dist/index.js";
11
11
  import { jsx as c } from "react/jsx-runtime";
12
- var v = "Collapsible", [B, W] = S(v), [G, g] = B(v), w = o.forwardRef(
12
+ var u = "Collapsible", [B, W] = S(u), [G, g] = B(u), w = o.forwardRef(
13
13
  (e, a) => {
14
14
  const {
15
15
  __scopeCollapsible: i,
@@ -17,11 +17,12 @@ var v = "Collapsible", [B, W] = S(v), [G, g] = B(v), w = o.forwardRef(
17
17
  defaultOpen: t,
18
18
  disabled: l,
19
19
  onOpenChange: s,
20
- ...u
21
- } = e, [d = !1, p] = D({
20
+ ...m
21
+ } = e, [d, p] = D({
22
22
  prop: r,
23
- defaultProp: t,
24
- onChange: s
23
+ defaultProp: t ?? !1,
24
+ onChange: s,
25
+ caller: u
25
26
  });
26
27
  return /* @__PURE__ */ c(
27
28
  G,
@@ -30,13 +31,13 @@ var v = "Collapsible", [B, W] = S(v), [G, g] = B(v), w = o.forwardRef(
30
31
  disabled: l,
31
32
  contentId: F(),
32
33
  open: d,
33
- onOpenToggle: o.useCallback(() => p((m) => !m), [p]),
34
+ onOpenToggle: o.useCallback(() => p((C) => !C), [p]),
34
35
  children: /* @__PURE__ */ c(
35
- b.div,
36
+ v.div,
36
37
  {
37
38
  "data-state": h(d),
38
39
  "data-disabled": l ? "" : void 0,
39
- ...u,
40
+ ...m,
40
41
  ref: a
41
42
  }
42
43
  )
@@ -44,12 +45,12 @@ var v = "Collapsible", [B, W] = S(v), [G, g] = B(v), w = o.forwardRef(
44
45
  );
45
46
  }
46
47
  );
47
- w.displayName = v;
48
+ w.displayName = u;
48
49
  var A = "CollapsibleTrigger", I = o.forwardRef(
49
50
  (e, a) => {
50
51
  const { __scopeCollapsible: i, ...r } = e, t = g(A, i);
51
52
  return /* @__PURE__ */ c(
52
- b.button,
53
+ v.button,
53
54
  {
54
55
  type: "button",
55
56
  "aria-controls": t.contentId,
@@ -73,7 +74,7 @@ var R = "CollapsibleContent", O = o.forwardRef(
73
74
  );
74
75
  O.displayName = R;
75
76
  var $ = o.forwardRef((e, a) => {
76
- const { __scopeCollapsible: i, present: r, children: t, ...l } = e, s = g(R, i), [u, d] = o.useState(r), p = o.useRef(null), m = M(a, p), y = o.useRef(0), x = y.current, N = o.useRef(0), P = N.current, C = s.open || u, _ = o.useRef(C), f = o.useRef(void 0);
77
+ const { __scopeCollapsible: i, present: r, children: t, ...l } = e, s = g(R, i), [m, d] = o.useState(r), p = o.useRef(null), C = M(a, p), y = o.useRef(0), x = y.current, N = o.useRef(0), P = N.current, b = s.open || m, _ = o.useRef(b), f = o.useRef(void 0);
77
78
  return o.useEffect(() => {
78
79
  const n = requestAnimationFrame(() => _.current = !1);
79
80
  return () => cancelAnimationFrame(n);
@@ -88,20 +89,20 @@ var $ = o.forwardRef((e, a) => {
88
89
  y.current = E.height, N.current = E.width, _.current || (n.style.transitionDuration = f.current.transitionDuration, n.style.animationName = f.current.animationName), d(r);
89
90
  }
90
91
  }, [s.open, r]), /* @__PURE__ */ c(
91
- b.div,
92
+ v.div,
92
93
  {
93
94
  "data-state": h(s.open),
94
95
  "data-disabled": s.disabled ? "" : void 0,
95
96
  id: s.contentId,
96
- hidden: !C,
97
+ hidden: !b,
97
98
  ...l,
98
- ref: m,
99
+ ref: C,
99
100
  style: {
100
101
  "--radix-collapsible-content-height": x ? `${x}px` : void 0,
101
102
  "--radix-collapsible-content-width": P ? `${P}px` : void 0,
102
103
  ...e.style
103
104
  },
104
- children: C && t
105
+ children: b && t
105
106
  }
106
107
  );
107
108
  });