laif-ds 0.2.20 → 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.
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/ui/app-stepper.js +212 -0
- package/dist/components/ui/stepper.js +387 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +30 -28
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +70 -69
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +24 -25
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +5 -6
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +17 -18
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
- package/dist/node_modules/cmdk/dist/index.js +2 -2
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/vaul/dist/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +3 -2
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
- package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
|
@@ -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
|
|
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,
|
|
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:
|
|
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, [
|
|
41
|
-
prop:
|
|
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(
|
|
46
|
+
}), T = l.useRef(p);
|
|
47
47
|
function k(R) {
|
|
48
|
-
const P = xe(
|
|
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
|
-
|
|
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:
|
|
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 =
|
|
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,
|
|
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 =
|
|
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
|
-
...
|
|
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
|
|
134
|
-
return y.current =
|
|
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
|
-
...
|
|
149
|
+
...S,
|
|
150
150
|
ref: v,
|
|
151
151
|
style: {
|
|
152
|
-
...
|
|
152
|
+
...S.style,
|
|
153
153
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
154
154
|
},
|
|
155
155
|
onSlideStart: (b) => {
|
|
156
|
-
const
|
|
157
|
-
r?.(
|
|
156
|
+
const p = D(b.clientX);
|
|
157
|
+
r?.(p);
|
|
158
158
|
},
|
|
159
159
|
onSlideMove: (b) => {
|
|
160
|
-
const
|
|
161
|
-
a?.(
|
|
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,
|
|
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 ||
|
|
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,
|
|
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(),
|
|
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
|
-
),
|
|
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]:
|
|
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 =
|
|
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),
|
|
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__ */
|
|
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:
|
|
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,
|
|
367
|
-
if (r !== t &&
|
|
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
|
-
|
|
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
|
|
427
|
+
var Oe = q, Ue = te, Fe = ne, Ye = oe;
|
|
428
428
|
export {
|
|
429
|
-
|
|
430
|
-
|
|
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
|
-
|
|
436
|
-
|
|
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
|
|
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:
|
|
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
|
-
...
|
|
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:
|
|
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
|
-
...
|
|
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
|
-
},
|
|
90
|
-
const i = r.useRef(null), n = P(i,
|
|
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
|
|
95
|
-
|
|
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
|
|
127
|
+
var Q = R, V = _;
|
|
128
128
|
export {
|
|
129
|
-
|
|
129
|
+
Q as Root,
|
|
130
130
|
R as Switch,
|
|
131
131
|
_ as SwitchThumb,
|
|
132
|
-
|
|
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
|
|
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 =
|
|
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
|
|
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(
|
|
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
|
-
|
|
148
|
-
function
|
|
147
|
+
N.displayName = M;
|
|
148
|
+
function P(e, r) {
|
|
149
149
|
return `${e}-trigger-${r}`;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function S(e, r) {
|
|
152
152
|
return `${e}-content-${r}`;
|
|
153
153
|
}
|
|
154
|
-
var
|
|
154
|
+
var Q = I, U = _, W = A, X = N;
|
|
155
155
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
X as Content,
|
|
157
|
+
U as List,
|
|
158
|
+
Q as Root,
|
|
159
159
|
I as Tabs,
|
|
160
|
-
|
|
160
|
+
N as TabsContent,
|
|
161
161
|
_ as TabsList,
|
|
162
162
|
A as TabsTrigger,
|
|
163
|
-
|
|
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
|
|
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 \`${
|
|
18
|
+
throw new Error(`Missing prop \`type\` expected on \`${i}\``);
|
|
19
19
|
});
|
|
20
|
-
f.displayName =
|
|
21
|
-
var [h, x] = C(
|
|
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:
|
|
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:
|
|
57
|
-
}),
|
|
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:
|
|
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 =
|
|
77
|
-
var [E, N] = C(
|
|
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
|
-
...
|
|
87
|
-
} = e, d = I(a), g = F(s), v = { role: "group", dir: g, ...
|
|
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 },
|
|
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:
|
|
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: (
|
|
127
|
-
|
|
126
|
+
onPressedChange: (c) => {
|
|
127
|
+
c ? n.onItemActivate(t) : n.onItemDeactivate(t);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
|
-
),
|
|
132
|
+
), z = f, H = b;
|
|
133
133
|
export {
|
|
134
|
-
|
|
135
|
-
|
|
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
|
|
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
|
|
325
|
+
var He = F, Ne = B, Se = U, Ge = V, je = Y, Fe = K;
|
|
326
326
|
export {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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
|
-
|
|
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 "
|
|
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 "
|
|
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 { Trigger as me, Title as pe, Description as we, Root as he, Content as ge, Portal as ve, Overlay as ye } from "
|
|
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) {
|