laif-ds 0.2.19 → 0.2.21

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 (51) hide show
  1. package/dist/_virtual/index4.js +5 -5
  2. package/dist/_virtual/index5.js +5 -5
  3. package/dist/_virtual/index6.js +2 -2
  4. package/dist/_virtual/index7.js +2 -2
  5. package/dist/components/ui/app-stepper.js +212 -0
  6. package/dist/components/ui/file-preview.js +215 -138
  7. package/dist/components/ui/file-previewer.js +1 -1
  8. package/dist/components/ui/file-uploader.js +109 -96
  9. package/dist/components/ui/stepper.js +387 -0
  10. package/dist/index.d.ts +52 -1
  11. package/dist/index.js +30 -28
  12. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +70 -69
  13. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +24 -25
  14. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
  15. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
  16. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
  17. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
  18. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
  19. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
  20. package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
  21. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
  22. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
  23. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +20 -21
  24. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
  25. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +5 -6
  26. package/dist/node_modules/@radix-ui/react-select/dist/index.js +17 -18
  27. package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
  28. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
  29. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
  30. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
  31. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
  32. package/dist/node_modules/cmdk/dist/index.js +2 -2
  33. package/dist/node_modules/eventemitter3/index2.js +1 -1
  34. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  35. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  36. package/dist/node_modules/unified/lib/index.js +1 -1
  37. package/dist/node_modules/vaul/dist/index.js +1 -1
  38. package/dist/styles.v3.css +1 -1
  39. package/package.json +3 -2
  40. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
  41. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  42. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
  43. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  44. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
  45. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
  46. package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
  47. package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  48. package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
  49. package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  50. package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
  51. package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
@@ -23,7 +23,7 @@ import { VISUALLY_HIDDEN_STYLES as wt } from "../../react-visually-hidden/dist/i
23
23
  import { hideOthers as Ct } from "../../../aria-hidden/dist/es2015/index.js";
24
24
  import xt from "../../../react-remove-scroll/dist/es2015/Combination.js";
25
25
  import { jsx as p, jsxs as se, Fragment as Te } from "react/jsx-runtime";
26
- var yt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ae, de, Tt] = lt(J), [te, uo] = ct(J, [
26
+ var yt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ae, de, Tt] = lt(J), [te] = ct(J, [
27
27
  Tt,
28
28
  _e
29
29
  ]), ue = _e(), [Pt, j] = te(J), [Rt, Et] = te(J), Ne = (o) => {
@@ -813,19 +813,19 @@ function rt(o, s, e) {
813
813
  function Wt(o, s) {
814
814
  return o.map((e, i) => o[(s + i) % o.length]);
815
815
  }
816
- var po = Ne, fo = Ae, mo = De, ho = Le, vo = ke, go = Be, So = We, wo = Ke, Co = ze, xo = je, yo = qe, Io = Ze, To = $e, Po = Je, Ro = et;
816
+ var uo = Ne, po = Ae, fo = De, mo = Le, ho = ke, vo = Be, go = We, So = Ke, wo = ze, Co = je, xo = qe, yo = Ze, Io = $e, To = Je, Po = et;
817
817
  export {
818
- go as Content,
819
- wo as Group,
820
- ho as Icon,
821
- xo as Item,
822
- Io as ItemIndicator,
823
- yo as ItemText,
824
- Co as Label,
825
- vo as Portal,
826
- po as Root,
827
- Po as ScrollDownButton,
828
- To as ScrollUpButton,
818
+ vo as Content,
819
+ So as Group,
820
+ mo as Icon,
821
+ Co as Item,
822
+ yo as ItemIndicator,
823
+ xo as ItemText,
824
+ wo as Label,
825
+ ho as Portal,
826
+ uo as Root,
827
+ To as ScrollDownButton,
828
+ Io as ScrollUpButton,
829
829
  Ne as Select,
830
830
  Ht as SelectArrow,
831
831
  Be as SelectContent,
@@ -842,9 +842,8 @@ export {
842
842
  Ae as SelectTrigger,
843
843
  De as SelectValue,
844
844
  We as SelectViewport,
845
- Ro as Separator,
846
- fo as Trigger,
847
- mo as Value,
848
- So as Viewport,
849
- uo as createSelectScope
845
+ Po as Separator,
846
+ po as Trigger,
847
+ fo as Value,
848
+ go as Viewport
850
849
  };
@@ -10,13 +10,13 @@ import { usePrevious as ue } from "../../react-use-previous/dist/index.js";
10
10
  import { useSize as fe } from "../../react-use-size/dist/index.js";
11
11
  import { Primitive as V } from "../../react-primitive/dist/index.js";
12
12
  import { createCollection as me } from "../../react-collection/dist/index.js";
13
- import { jsx as g, jsxs as Se } from "react/jsx-runtime";
13
+ import { jsx as g, jsxs as pe } from "react/jsx-runtime";
14
14
  var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], G = {
15
15
  "from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
16
16
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
17
17
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
18
18
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
19
- }, M = "Slider", [N, pe, he] = me(M), [W, Oe] = ce(M, [
19
+ }, M = "Slider", [N, Se, he] = me(M), [W] = ce(M, [
20
20
  he
21
21
  ]), [ge, B] = W(M), q = l.forwardRef(
22
22
  (e, t) => {
@@ -29,7 +29,7 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
29
29
  disabled: a = !1,
30
30
  minStepsBetweenThumbs: u = 0,
31
31
  defaultValue: w = [n],
32
- value: p,
32
+ value: S,
33
33
  onValueChange: i = () => {
34
34
  },
35
35
  onValueCommit: d = () => {
@@ -37,15 +37,15 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
37
37
  inverted: v = !1,
38
38
  form: y,
39
39
  ...h
40
- } = e, m = l.useRef(/* @__PURE__ */ new Set()), f = l.useRef(0), b = r === "horizontal" ? ve : we, [S = [], K] = le({
41
- prop: p,
40
+ } = e, m = l.useRef(/* @__PURE__ */ new Set()), f = l.useRef(0), b = r === "horizontal" ? ve : we, [p = [], K] = le({
41
+ prop: S,
42
42
  defaultProp: w,
43
43
  onChange: (R) => {
44
44
  [...m.current][f.current]?.focus(), i(R);
45
45
  }
46
- }), T = l.useRef(S);
46
+ }), T = l.useRef(p);
47
47
  function k(R) {
48
- const P = xe(S, R);
48
+ const P = xe(p, R);
49
49
  I(R, P);
50
50
  }
51
51
  function se(R) {
@@ -53,7 +53,7 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
53
53
  }
54
54
  function ae() {
55
55
  const R = T.current[f.current];
56
- S[f.current] !== R && d(S);
56
+ p[f.current] !== R && d(p);
57
57
  }
58
58
  function I(R, P, { commit: z } = { commit: !1 }) {
59
59
  const F = Ce(c), H = Me(Math.round((R - n) / c) * c + n, F), A = $(H, [n, s]);
@@ -77,7 +77,7 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
77
77
  max: s,
78
78
  valueIndexToChangeRef: f,
79
79
  thumbs: m.current,
80
- values: S,
80
+ values: p,
81
81
  orientation: r,
82
82
  form: y,
83
83
  children: /* @__PURE__ */ g(N.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ g(N.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ g(
@@ -88,7 +88,7 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
88
88
  ...h,
89
89
  ref: t,
90
90
  onPointerDown: _(h.onPointerDown, () => {
91
- a || (T.current = S);
91
+ a || (T.current = p);
92
92
  }),
93
93
  min: n,
94
94
  max: s,
@@ -97,10 +97,10 @@ var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
97
97
  onSlideMove: a ? void 0 : se,
98
98
  onSlideEnd: a ? void 0 : ae,
99
99
  onHomeKeyDown: () => !a && I(n, 0, { commit: !0 }),
100
- onEndKeyDown: () => !a && I(s, S.length - 1, { commit: !0 }),
100
+ onEndKeyDown: () => !a && I(s, p.length - 1, { commit: !0 }),
101
101
  onStepKeyDown: ({ event: R, direction: P }) => {
102
102
  if (!a) {
103
- const H = j.includes(R.key) || R.shiftKey && X.includes(R.key) ? 10 : 1, A = f.current, E = S[A], x = c * H * P;
103
+ const H = j.includes(R.key) || R.shiftKey && X.includes(R.key) ? 10 : 1, A = f.current, E = p[A], x = c * H * P;
104
104
  I(E + x, A, { commit: !0 });
105
105
  }
106
106
  }
@@ -127,11 +127,11 @@ var [J, Q] = W(M, {
127
127
  onSlideMove: a,
128
128
  onSlideEnd: u,
129
129
  onStepKeyDown: w,
130
- ...p
130
+ ...S
131
131
  } = e, [i, d] = l.useState(null), v = C(t, (b) => d(b)), y = l.useRef(void 0), h = de(s), m = h === "ltr", f = m && !c || !m && c;
132
132
  function D(b) {
133
- const S = y.current || i.getBoundingClientRect(), K = [0, S.width], k = U(K, f ? [o, n] : [n, o]);
134
- return y.current = S, k(b - S.left);
133
+ const p = y.current || i.getBoundingClientRect(), K = [0, p.width], k = U(K, f ? [o, n] : [n, o]);
134
+ return y.current = p, k(b - p.left);
135
135
  }
136
136
  return /* @__PURE__ */ g(
137
137
  J,
@@ -146,19 +146,19 @@ var [J, Q] = W(M, {
146
146
  {
147
147
  dir: h,
148
148
  "data-orientation": "horizontal",
149
- ...p,
149
+ ...S,
150
150
  ref: v,
151
151
  style: {
152
- ...p.style,
152
+ ...S.style,
153
153
  "--radix-slider-thumb-transform": "translateX(-50%)"
154
154
  },
155
155
  onSlideStart: (b) => {
156
- const S = D(b.clientX);
157
- r?.(S);
156
+ const p = D(b.clientX);
157
+ r?.(p);
158
158
  },
159
159
  onSlideMove: (b) => {
160
- const S = D(b.clientX);
161
- a?.(S);
160
+ const p = D(b.clientX);
161
+ a?.(p);
162
162
  },
163
163
  onSlideEnd: () => {
164
164
  y.current = void 0, u?.();
@@ -183,9 +183,9 @@ var [J, Q] = W(M, {
183
183
  onSlideEnd: a,
184
184
  onStepKeyDown: u,
185
185
  ...w
186
- } = e, p = l.useRef(null), i = C(t, p), d = l.useRef(void 0), v = !s;
186
+ } = e, S = l.useRef(null), i = C(t, S), d = l.useRef(void 0), v = !s;
187
187
  function y(h) {
188
- const m = d.current || p.current.getBoundingClientRect(), f = [0, m.height], b = U(f, v ? [n, o] : [o, n]);
188
+ const m = d.current || S.current.getBoundingClientRect(), f = [0, m.height], b = U(f, v ? [n, o] : [o, n]);
189
189
  return d.current = m, b(h - m.top);
190
190
  }
191
191
  return /* @__PURE__ */ g(
@@ -237,7 +237,7 @@ var [J, Q] = W(M, {
237
237
  onEndKeyDown: a,
238
238
  onStepKeyDown: u,
239
239
  ...w
240
- } = e, p = B(M, o);
240
+ } = e, S = B(M, o);
241
241
  return /* @__PURE__ */ g(
242
242
  V.span,
243
243
  {
@@ -248,7 +248,7 @@ var [J, Q] = W(M, {
248
248
  }),
249
249
  onPointerDown: _(e.onPointerDown, (i) => {
250
250
  const d = i.target;
251
- d.setPointerCapture(i.pointerId), i.preventDefault(), p.thumbs.has(d) ? d.focus() : n(i);
251
+ d.setPointerCapture(i.pointerId), i.preventDefault(), S.thumbs.has(d) ? d.focus() : n(i);
252
252
  }),
253
253
  onPointerMove: _(e.onPointerMove, (i) => {
254
254
  i.target.hasPointerCapture(i.pointerId) && s(i);
@@ -279,7 +279,7 @@ var L = "SliderRange", ne = l.forwardRef(
279
279
  (e, t) => {
280
280
  const { __scopeSlider: o, ...n } = e, s = B(L, o), c = Q(L, o), r = l.useRef(null), a = C(t, r), u = s.values.length, w = s.values.map(
281
281
  (d) => ie(d, s.min, s.max)
282
- ), p = u > 1 ? Math.min(...w) : 0, i = 100 - Math.max(...w);
282
+ ), S = u > 1 ? Math.min(...w) : 0, i = 100 - Math.max(...w);
283
283
  return /* @__PURE__ */ g(
284
284
  V.span,
285
285
  {
@@ -289,7 +289,7 @@ var L = "SliderRange", ne = l.forwardRef(
289
289
  ref: a,
290
290
  style: {
291
291
  ...e.style,
292
- [c.startEdge]: p + "%",
292
+ [c.startEdge]: S + "%",
293
293
  [c.endEdge]: i + "%"
294
294
  }
295
295
  }
@@ -299,7 +299,7 @@ var L = "SliderRange", ne = l.forwardRef(
299
299
  ne.displayName = L;
300
300
  var O = "SliderThumb", oe = l.forwardRef(
301
301
  (e, t) => {
302
- const o = pe(e.__scopeSlider), [n, s] = l.useState(null), c = C(t, (a) => s(a)), r = l.useMemo(
302
+ const o = Se(e.__scopeSlider), [n, s] = l.useState(null), c = C(t, (a) => s(a)), r = l.useMemo(
303
303
  () => n ? o().findIndex((a) => a.ref.current === n) : -1,
304
304
  [o, n]
305
305
  );
@@ -307,13 +307,13 @@ var O = "SliderThumb", oe = l.forwardRef(
307
307
  }
308
308
  ), be = l.forwardRef(
309
309
  (e, t) => {
310
- const { __scopeSlider: o, index: n, name: s, ...c } = e, r = B(O, o), a = Q(O, o), [u, w] = l.useState(null), p = C(t, (D) => w(D)), i = u ? r.form || !!u.closest("form") : !0, d = fe(u), v = r.values[n], y = v === void 0 ? 0 : ie(v, r.min, r.max), h = Pe(n, r.values.length), m = d?.[a.size], f = m ? De(m, y, a.direction) : 0;
310
+ const { __scopeSlider: o, index: n, name: s, ...c } = e, r = B(O, o), a = Q(O, o), [u, w] = l.useState(null), S = C(t, (D) => w(D)), i = u ? r.form || !!u.closest("form") : !0, d = fe(u), v = r.values[n], y = v === void 0 ? 0 : ie(v, r.min, r.max), h = Pe(n, r.values.length), m = d?.[a.size], f = m ? De(m, y, a.direction) : 0;
311
311
  return l.useEffect(() => {
312
312
  if (u)
313
313
  return r.thumbs.add(u), () => {
314
314
  r.thumbs.delete(u);
315
315
  };
316
- }, [u, r.thumbs]), /* @__PURE__ */ Se(
316
+ }, [u, r.thumbs]), /* @__PURE__ */ pe(
317
317
  "span",
318
318
  {
319
319
  style: {
@@ -335,7 +335,7 @@ var O = "SliderThumb", oe = l.forwardRef(
335
335
  "data-disabled": r.disabled ? "" : void 0,
336
336
  tabIndex: r.disabled ? void 0 : 0,
337
337
  ...c,
338
- ref: p,
338
+ ref: S,
339
339
  style: v === void 0 ? { display: "none" } : e.style,
340
340
  onFocus: _(e.onFocus, () => {
341
341
  r.valueIndexToChangeRef.current = n;
@@ -363,10 +363,10 @@ var Re = "RadioBubbleInput", re = l.forwardRef(
363
363
  return l.useEffect(() => {
364
364
  const a = s.current;
365
365
  if (!a) return;
366
- const u = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(u, "value").set;
367
- if (r !== t && p) {
366
+ const u = window.HTMLInputElement.prototype, S = Object.getOwnPropertyDescriptor(u, "value").set;
367
+ if (r !== t && S) {
368
368
  const i = new Event("input", { bubbles: !0 });
369
- p.call(a, t), a.dispatchEvent(i);
369
+ S.call(a, t), a.dispatchEvent(i);
370
370
  }
371
371
  }, [r, t]), /* @__PURE__ */ g(
372
372
  V.input,
@@ -424,15 +424,14 @@ function Me(e, t) {
424
424
  const o = Math.pow(10, t);
425
425
  return Math.round(e * o) / o;
426
426
  }
427
- var Ue = q, Fe = te, Ye = ne, $e = oe;
427
+ var Oe = q, Ue = te, Fe = ne, Ye = oe;
428
428
  export {
429
- Ye as Range,
430
- Ue as Root,
429
+ Fe as Range,
430
+ Oe as Root,
431
431
  q as Slider,
432
432
  ne as SliderRange,
433
433
  oe as SliderThumb,
434
434
  te as SliderTrack,
435
- $e as Thumb,
436
- Fe as Track,
437
- Oe as createSliderScope
435
+ Ye as Thumb,
436
+ Ue as Track
438
437
  };
@@ -8,22 +8,22 @@ import { usePrevious as H } from "../../react-use-previous/dist/index.js";
8
8
  import { useSize as j } from "../../react-use-size/dist/index.js";
9
9
  import { Primitive as y } from "../../react-primitive/dist/index.js";
10
10
  import { jsxs as A, jsx as m } from "react/jsx-runtime";
11
- var h = "Switch", [U, Q] = I(h), [q, z] = U(h), R = r.forwardRef(
11
+ var h = "Switch", [U] = I(h), [q, z] = U(h), R = r.forwardRef(
12
12
  (t, a) => {
13
13
  const {
14
14
  __scopeSwitch: e,
15
15
  name: c,
16
16
  checked: o,
17
- defaultChecked: S,
17
+ defaultChecked: v,
18
18
  required: i,
19
19
  disabled: n,
20
20
  value: p = "on",
21
21
  onCheckedChange: w,
22
22
  form: s,
23
- ...v
23
+ ...S
24
24
  } = t, [u, d] = r.useState(null), b = P(a, (f) => d(f)), C = r.useRef(!1), k = u ? s || !!u.closest("form") : !0, [l, B] = M({
25
25
  prop: o,
26
- defaultProp: S ?? !1,
26
+ defaultProp: v ?? !1,
27
27
  onChange: w,
28
28
  caller: h
29
29
  });
@@ -39,7 +39,7 @@ var h = "Switch", [U, Q] = I(h), [q, z] = U(h), R = r.forwardRef(
39
39
  "data-disabled": n ? "" : void 0,
40
40
  disabled: n,
41
41
  value: p,
42
- ...v,
42
+ ...S,
43
43
  ref: b,
44
44
  onClick: T(t.onClick, (f) => {
45
45
  B((N) => !N), k && (C.current = f.isPropagationStopped(), C.current || f.stopPropagation());
@@ -86,13 +86,13 @@ var L = "SwitchBubbleInput", x = r.forwardRef(
86
86
  checked: e,
87
87
  bubbles: c = !0,
88
88
  ...o
89
- }, S) => {
90
- const i = r.useRef(null), n = P(i, S), p = H(e), w = j(a);
89
+ }, v) => {
90
+ const i = r.useRef(null), n = P(i, v), p = H(e), w = j(a);
91
91
  return r.useEffect(() => {
92
92
  const s = i.current;
93
93
  if (!s) return;
94
- const v = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(
95
- v,
94
+ const S = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(
95
+ S,
96
96
  "checked"
97
97
  ).set;
98
98
  if (p !== e && d) {
@@ -124,11 +124,10 @@ x.displayName = L;
124
124
  function g(t) {
125
125
  return t ? "checked" : "unchecked";
126
126
  }
127
- var V = R, Y = _;
127
+ var Q = R, V = _;
128
128
  export {
129
- V as Root,
129
+ Q as Root,
130
130
  R as Switch,
131
131
  _ as SwitchThumb,
132
- Y as Thumb,
133
- Q as createSwitchScope
132
+ V as Thumb
134
133
  };
@@ -9,7 +9,7 @@ import { useDirection as D } from "../../react-direction/dist/index.js";
9
9
  import { useControllableState as V } from "../../react-use-controllable-state/dist/index.js";
10
10
  import { useId as G } from "../../react-id/dist/index.js";
11
11
  import { jsx as l } from "react/jsx-runtime";
12
- var p = "Tabs", [L, Q] = x(p, [
12
+ var p = "Tabs", [L] = x(p, [
13
13
  C
14
14
  ]), h = C(), [$, T] = L(p), I = v.forwardRef(
15
15
  (e, r) => {
@@ -79,7 +79,7 @@ var R = "TabsList", _ = v.forwardRef(
79
79
  _.displayName = R;
80
80
  var y = "TabsTrigger", A = v.forwardRef(
81
81
  (e, r) => {
82
- const { __scopeTabs: s, value: t, disabled: n = !1, ...c } = e, o = T(y, s), d = h(s), f = N(o.baseId, t), m = P(o.baseId, t), i = t === o.value;
82
+ const { __scopeTabs: s, value: t, disabled: n = !1, ...c } = e, o = T(y, s), d = h(s), f = P(o.baseId, t), m = S(o.baseId, t), i = t === o.value;
83
83
  return /* @__PURE__ */ l(
84
84
  F,
85
85
  {
@@ -117,9 +117,9 @@ var y = "TabsTrigger", A = v.forwardRef(
117
117
  }
118
118
  );
119
119
  A.displayName = y;
120
- var S = "TabsContent", M = v.forwardRef(
120
+ var M = "TabsContent", N = v.forwardRef(
121
121
  (e, r) => {
122
- const { __scopeTabs: s, value: t, forceMount: n, children: c, ...o } = e, d = T(S, s), f = N(d.baseId, t), m = P(d.baseId, t), i = t === d.value, a = v.useRef(i);
122
+ const { __scopeTabs: s, value: t, forceMount: n, children: c, ...o } = e, d = T(M, s), f = P(d.baseId, t), m = S(d.baseId, t), i = t === d.value, a = v.useRef(i);
123
123
  return v.useEffect(() => {
124
124
  const u = requestAnimationFrame(() => a.current = !1);
125
125
  return () => cancelAnimationFrame(u);
@@ -144,22 +144,21 @@ var S = "TabsContent", M = v.forwardRef(
144
144
  ) });
145
145
  }
146
146
  );
147
- M.displayName = S;
148
- function N(e, r) {
147
+ N.displayName = M;
148
+ function P(e, r) {
149
149
  return `${e}-trigger-${r}`;
150
150
  }
151
- function P(e, r) {
151
+ function S(e, r) {
152
152
  return `${e}-content-${r}`;
153
153
  }
154
- var U = I, W = _, X = A, Y = M;
154
+ var Q = I, U = _, W = A, X = N;
155
155
  export {
156
- Y as Content,
157
- W as List,
158
- U as Root,
156
+ X as Content,
157
+ U as List,
158
+ Q as Root,
159
159
  I as Tabs,
160
- M as TabsContent,
160
+ N as TabsContent,
161
161
  _ as TabsList,
162
162
  A as TabsTrigger,
163
- X as Trigger,
164
- Q as createTabsScope
163
+ W as Trigger
165
164
  };
@@ -7,7 +7,7 @@ import { Toggle as A } from "../../react-toggle/dist/index.js";
7
7
  import { useControllableState as _ } from "../../react-use-controllable-state/dist/index.js";
8
8
  import { useDirection as F } from "../../react-direction/dist/index.js";
9
9
  import { jsx as l } from "react/jsx-runtime";
10
- var c = "ToggleGroup", [C, z] = S(c, [
10
+ var i = "ToggleGroup", [C] = S(i, [
11
11
  P
12
12
  ]), I = P(), f = p.forwardRef((e, r) => {
13
13
  const { type: a, ...t } = e;
@@ -15,10 +15,10 @@ var c = "ToggleGroup", [C, z] = S(c, [
15
15
  return /* @__PURE__ */ l(w, { ...t, ref: r });
16
16
  if (a === "multiple")
17
17
  return /* @__PURE__ */ l(D, { ...t, ref: r });
18
- throw new Error(`Missing prop \`type\` expected on \`${c}\``);
18
+ throw new Error(`Missing prop \`type\` expected on \`${i}\``);
19
19
  });
20
- f.displayName = c;
21
- var [h, x] = C(c), w = p.forwardRef((e, r) => {
20
+ f.displayName = i;
21
+ var [h, x] = C(i), w = p.forwardRef((e, r) => {
22
22
  const {
23
23
  value: a,
24
24
  defaultValue: t,
@@ -29,7 +29,7 @@ var [h, x] = C(c), w = p.forwardRef((e, r) => {
29
29
  prop: a,
30
30
  defaultProp: t ?? "",
31
31
  onChange: u,
32
- caller: c
32
+ caller: i
33
33
  });
34
34
  return /* @__PURE__ */ l(
35
35
  h,
@@ -53,8 +53,8 @@ var [h, x] = C(c), w = p.forwardRef((e, r) => {
53
53
  prop: a,
54
54
  defaultProp: t ?? [],
55
55
  onChange: u,
56
- caller: c
57
- }), i = p.useCallback(
56
+ caller: i
57
+ }), c = p.useCallback(
58
58
  (g) => o((v = []) => [...v, g]),
59
59
  [o]
60
60
  ), d = p.useCallback(
@@ -67,14 +67,14 @@ var [h, x] = C(c), w = p.forwardRef((e, r) => {
67
67
  scope: e.__scopeToggleGroup,
68
68
  type: "multiple",
69
69
  value: s,
70
- onItemActivate: i,
70
+ onItemActivate: c,
71
71
  onItemDeactivate: d,
72
72
  children: /* @__PURE__ */ l(R, { ...n, ref: r })
73
73
  }
74
74
  );
75
75
  });
76
- f.displayName = c;
77
- var [E, N] = C(c), R = p.forwardRef(
76
+ f.displayName = i;
77
+ var [E, N] = C(i), R = p.forwardRef(
78
78
  (e, r) => {
79
79
  const {
80
80
  __scopeToggleGroup: a,
@@ -83,8 +83,8 @@ var [E, N] = C(c), R = p.forwardRef(
83
83
  orientation: n,
84
84
  dir: s,
85
85
  loop: o = !0,
86
- ...i
87
- } = e, d = I(a), g = F(s), v = { role: "group", dir: g, ...i };
86
+ ...c
87
+ } = e, d = I(a), g = F(s), v = { role: "group", dir: g, ...c };
88
88
  return /* @__PURE__ */ l(E, { scope: a, rovingFocus: u, disabled: t, children: u ? /* @__PURE__ */ l(
89
89
  M,
90
90
  {
@@ -99,7 +99,7 @@ var [E, N] = C(c), R = p.forwardRef(
99
99
  }
100
100
  ), m = "ToggleGroupItem", b = p.forwardRef(
101
101
  (e, r) => {
102
- const a = x(m, e.__scopeToggleGroup), t = N(m, e.__scopeToggleGroup), u = I(e.__scopeToggleGroup), n = a.value.includes(e.value), s = t.disabled || e.disabled, o = { ...e, pressed: n, disabled: s }, i = p.useRef(null);
102
+ const a = x(m, e.__scopeToggleGroup), t = N(m, e.__scopeToggleGroup), u = I(e.__scopeToggleGroup), n = a.value.includes(e.value), s = t.disabled || e.disabled, o = { ...e, pressed: n, disabled: s }, c = p.useRef(null);
103
103
  return t.rovingFocus ? /* @__PURE__ */ l(
104
104
  V,
105
105
  {
@@ -107,7 +107,7 @@ var [E, N] = C(c), R = p.forwardRef(
107
107
  ...u,
108
108
  focusable: !s,
109
109
  active: n,
110
- ref: i,
110
+ ref: c,
111
111
  children: /* @__PURE__ */ l(T, { ...o, ref: r })
112
112
  }
113
113
  ) : /* @__PURE__ */ l(T, { ...o, ref: r });
@@ -123,17 +123,16 @@ var T = p.forwardRef(
123
123
  ...o,
124
124
  ...u,
125
125
  ref: r,
126
- onPressedChange: (i) => {
127
- i ? n.onItemActivate(t) : n.onItemDeactivate(t);
126
+ onPressedChange: (c) => {
127
+ c ? n.onItemActivate(t) : n.onItemDeactivate(t);
128
128
  }
129
129
  }
130
130
  );
131
131
  }
132
- ), H = f, J = b;
132
+ ), z = f, H = b;
133
133
  export {
134
- J as Item,
135
- H as Root,
134
+ H as Item,
135
+ z as Root,
136
136
  f as ToggleGroup,
137
- b as ToggleGroupItem,
138
- z as createToggleGroupScope
137
+ b as ToggleGroupItem
139
138
  };
@@ -13,7 +13,7 @@ import { createSlottable as re } from "../../react-slot/dist/index.js";
13
13
  import { useControllableState as ne } from "../../react-use-controllable-state/dist/index.js";
14
14
  import { Root as se } from "../../react-visually-hidden/dist/index.js";
15
15
  import { jsx as f, jsxs as ae } from "react/jsx-runtime";
16
- var [O, He] = W("Tooltip", [
16
+ var [O] = W("Tooltip", [
17
17
  S
18
18
  ]), A = S(), j = "TooltipProvider", ie = 700, D = "tooltip.open", [ce, k] = O(j), F = (t) => {
19
19
  const {
@@ -322,19 +322,18 @@ function xe(t) {
322
322
  }
323
323
  return e.pop(), o.length === 1 && e.length === 1 && o[0].x === e[0].x && o[0].y === e[0].y ? o : o.concat(e);
324
324
  }
325
- var Ne = F, Se = B, Ge = U, je = V, Fe = Y, Be = K;
325
+ var He = F, Ne = B, Se = U, Ge = V, je = Y, Fe = K;
326
326
  export {
327
- Be as Arrow,
328
- Fe as Content,
329
- je as Portal,
330
- Ne as Provider,
331
- Se as Root,
327
+ Fe as Arrow,
328
+ je as Content,
329
+ Ge as Portal,
330
+ He as Provider,
331
+ Ne as Root,
332
332
  B as Tooltip,
333
333
  K as TooltipArrow,
334
334
  Y as TooltipContent,
335
335
  V as TooltipPortal,
336
336
  F as TooltipProvider,
337
337
  U as TooltipTrigger,
338
- Ge as Trigger,
339
- He as createTooltipScope
338
+ Se as Trigger
340
339
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { a as pe } from "./chunk-NZJY6EH4.js";
3
- import { Root as ge, Portal as he, Overlay as be, Content as Ee } from "../node_modules/@radix-ui/react-dialog/dist/index.js";
3
+ import { Root as ge, Portal as he, Overlay as be, Content as Ee } from "../../@radix-ui/react-dialog/dist/index.js";
4
4
  import * as n from "react";
5
- import { Primitive as I } from "../node_modules/@radix-ui/react-primitive/dist/index.js";
5
+ import { Primitive as I } from "../../@radix-ui/react-primitive/dist/index.js";
6
6
  import { useId as K } from "../../@radix-ui/react-id/dist/index.js";
7
7
  import { composeRefs as q } from "../../@radix-ui/react-compose-refs/dist/index.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) => {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __module as x } from "../../_virtual/index7.js";
2
+ import { __module as x } from "../../_virtual/index6.js";
3
3
  var w;
4
4
  function O() {
5
5
  return w ? x.exports : (w = 1, function(d) {
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
3
3
  import { ok as u } from "../../devlop/lib/default.js";
4
4
  import { svg as m, html as C } from "../../property-information/index.js";
5
5
  import { stringify as N } from "../../space-separated-tokens/index.js";
6
- import S from "../../../_virtual/index4.js";
6
+ import S from "../../../_virtual/index5.js";
7
7
  import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
8
8
  import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
9
9
  import { VFileMessage as h } from "../../vfile-message/lib/index.js";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __exports as r } from "../../../_virtual/index6.js";
2
+ import { __exports as r } from "../../../_virtual/index7.js";
3
3
  import { __require as c } from "../../inline-style-parser/index.js";
4
4
  var f;
5
5
  function j() {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { bail as P } from "../../bail/index.js";
3
- import y from "../../../_virtual/index5.js";
3
+ import y from "../../../_virtual/index4.js";
4
4
  import z from "../../is-plain-obj/index.js";
5
5
  import { CallableInstance as C } from "./callable-instance.js";
6
6
  import { trough as A } from "../../trough/lib/index.js";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Trigger as me, Title as pe, Description as we, Root as he, Content as ge, Portal as ve, Overlay as ye } from "../node_modules/@radix-ui/react-dialog/dist/index.js";
2
+ import { Trigger as me, Title as pe, Description as we, Root as he, Content as ge, Portal as ve, Overlay as ye } from "../../@radix-ui/react-dialog/dist/index.js";
3
3
  import * as be from "react";
4
4
  import r, { useLayoutEffect as Se, useEffect as Te, useMemo as Re } from "react";
5
5
  function Ee(t) {