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
|
@@ -16,7 +16,7 @@ import { useLayoutEffect as z } from "../../react-use-layout-effect/dist/index.j
|
|
|
16
16
|
import { useCallbackRef as D } from "../../react-use-callback-ref/dist/index.js";
|
|
17
17
|
import { Root as xe } from "../../react-visually-hidden/dist/index.js";
|
|
18
18
|
import { jsx as u, jsxs as Z, Fragment as ee } from "react/jsx-runtime";
|
|
19
|
-
var A = "NavigationMenu", [$, ae, Se] = ie(A), [G, De, Ae] = ie(A), [Y
|
|
19
|
+
var A = "NavigationMenu", [$, ae, Se] = ie(A), [G, De, Ae] = ie(A), [Y] = Ie(
|
|
20
20
|
A,
|
|
21
21
|
[Se, Ae]
|
|
22
22
|
), [Oe, y] = Y(A), [ke, Le] = Y(A), se = a.forwardRef(
|
|
@@ -31,31 +31,31 @@ var A = "NavigationMenu", [$, ae, Se] = ie(A), [G, De, Ae] = ie(A), [Y, ct] = Ie
|
|
|
31
31
|
orientation: l = "horizontal",
|
|
32
32
|
dir: R,
|
|
33
33
|
...c
|
|
34
|
-
} = e, [m, h] = a.useState(null), E = k(t, (M) => h(M)), p = be(R), w = a.useRef(0), N = a.useRef(0), T = a.useRef(0), [_,
|
|
34
|
+
} = e, [m, h] = a.useState(null), E = k(t, (M) => h(M)), p = be(R), w = a.useRef(0), N = a.useRef(0), T = a.useRef(0), [_, f] = a.useState(!0), [g, v] = oe({
|
|
35
35
|
prop: i,
|
|
36
36
|
onChange: (M) => {
|
|
37
37
|
const x = M !== "", V = d > 0;
|
|
38
|
-
x ? (window.clearTimeout(T.current), V &&
|
|
39
|
-
() =>
|
|
38
|
+
x ? (window.clearTimeout(T.current), V && f(!1)) : (window.clearTimeout(T.current), T.current = window.setTimeout(
|
|
39
|
+
() => f(!0),
|
|
40
40
|
d
|
|
41
41
|
)), n?.(M);
|
|
42
42
|
},
|
|
43
43
|
defaultProp: o ?? "",
|
|
44
44
|
caller: A
|
|
45
45
|
}), C = a.useCallback(() => {
|
|
46
|
-
window.clearTimeout(N.current), N.current = window.setTimeout(() =>
|
|
47
|
-
}, [
|
|
46
|
+
window.clearTimeout(N.current), N.current = window.setTimeout(() => v(""), 150);
|
|
47
|
+
}, [v]), P = a.useCallback(
|
|
48
48
|
(M) => {
|
|
49
|
-
window.clearTimeout(N.current),
|
|
49
|
+
window.clearTimeout(N.current), v(M);
|
|
50
50
|
},
|
|
51
|
-
[
|
|
51
|
+
[v]
|
|
52
52
|
), S = a.useCallback(
|
|
53
53
|
(M) => {
|
|
54
54
|
g === M ? window.clearTimeout(N.current) : w.current = window.setTimeout(() => {
|
|
55
|
-
window.clearTimeout(N.current),
|
|
55
|
+
window.clearTimeout(N.current), v(M);
|
|
56
56
|
}, s);
|
|
57
57
|
},
|
|
58
|
-
[g,
|
|
58
|
+
[g, v, s]
|
|
59
59
|
);
|
|
60
60
|
return a.useEffect(() => () => {
|
|
61
61
|
window.clearTimeout(w.current), window.clearTimeout(N.current), window.clearTimeout(T.current);
|
|
@@ -77,9 +77,9 @@ var A = "NavigationMenu", [$, ae, Se] = ie(A), [G, De, Ae] = ie(A), [Y, ct] = Ie
|
|
|
77
77
|
onContentEnter: () => window.clearTimeout(N.current),
|
|
78
78
|
onContentLeave: C,
|
|
79
79
|
onItemSelect: (M) => {
|
|
80
|
-
|
|
80
|
+
v((x) => x === M ? "" : M);
|
|
81
81
|
},
|
|
82
|
-
onItemDismiss: () =>
|
|
82
|
+
onItemDismiss: () => v(""),
|
|
83
83
|
children: /* @__PURE__ */ u(
|
|
84
84
|
b.nav,
|
|
85
85
|
{
|
|
@@ -143,7 +143,7 @@ var ce = (e) => {
|
|
|
143
143
|
onTriggerLeave: m,
|
|
144
144
|
onContentEnter: h,
|
|
145
145
|
onContentLeave: E
|
|
146
|
-
} = e, [p, w] = a.useState(null), [N, T] = a.useState(/* @__PURE__ */ new Map()), [_,
|
|
146
|
+
} = e, [p, w] = a.useState(null), [N, T] = a.useState(/* @__PURE__ */ new Map()), [_, f] = a.useState(null);
|
|
147
147
|
return /* @__PURE__ */ u(
|
|
148
148
|
Oe,
|
|
149
149
|
{
|
|
@@ -158,18 +158,18 @@ var ce = (e) => {
|
|
|
158
158
|
viewport: p,
|
|
159
159
|
onViewportChange: w,
|
|
160
160
|
indicatorTrack: _,
|
|
161
|
-
onIndicatorTrackChange:
|
|
161
|
+
onIndicatorTrackChange: f,
|
|
162
162
|
onTriggerEnter: D(c),
|
|
163
163
|
onTriggerLeave: D(m),
|
|
164
164
|
onContentEnter: D(h),
|
|
165
165
|
onContentLeave: D(E),
|
|
166
166
|
onItemSelect: D(l),
|
|
167
167
|
onItemDismiss: D(R),
|
|
168
|
-
onViewportContentChange: a.useCallback((g,
|
|
169
|
-
T((C) => (C.set(g,
|
|
168
|
+
onViewportContentChange: a.useCallback((g, v) => {
|
|
169
|
+
T((C) => (C.set(g, v), new Map(C)));
|
|
170
170
|
}, []),
|
|
171
171
|
onViewportContentRemove: a.useCallback((g) => {
|
|
172
|
-
T((
|
|
172
|
+
T((v) => v.has(g) ? (v.delete(g), new Map(v)) : v);
|
|
173
173
|
}, []),
|
|
174
174
|
children: /* @__PURE__ */ u($.Provider, { scope: t, children: /* @__PURE__ */ u(ke, { scope: t, items: N, children: s }) })
|
|
175
175
|
}
|
|
@@ -181,7 +181,7 @@ var ce = (e) => {
|
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
183
|
le.displayName = ue;
|
|
184
|
-
var de = "NavigationMenuItem", [Ke,
|
|
184
|
+
var de = "NavigationMenuItem", [Ke, fe] = Y(de), ve = a.forwardRef(
|
|
185
185
|
(e, t) => {
|
|
186
186
|
const { __scopeNavigationMenu: r, value: i, ...n } = e, o = re(), s = i || o || "LEGACY_REACT_AUTO_VALUE", d = a.useRef(null), l = a.useRef(null), R = a.useRef(null), c = a.useRef(() => {
|
|
187
187
|
}), m = a.useRef(!1), h = a.useCallback((p = "start") => {
|
|
@@ -214,9 +214,9 @@ var de = "NavigationMenuItem", [Ke, ve] = Y(de), fe = a.forwardRef(
|
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
216
|
);
|
|
217
|
-
|
|
217
|
+
ve.displayName = de;
|
|
218
218
|
var H = "NavigationMenuTrigger", me = a.forwardRef((e, t) => {
|
|
219
|
-
const { __scopeNavigationMenu: r, disabled: i, ...n } = e, o = y(H, e.__scopeNavigationMenu), s =
|
|
219
|
+
const { __scopeNavigationMenu: r, disabled: i, ...n } = e, o = y(H, e.__scopeNavigationMenu), s = fe(H, e.__scopeNavigationMenu), d = a.useRef(null), l = k(d, s.triggerRef, t), R = he(o.baseId, s.value), c = Ee(o.baseId, s.value), m = a.useRef(!1), h = a.useRef(!1), E = s.value === o.value;
|
|
220
220
|
return /* @__PURE__ */ Z(ee, { children: [
|
|
221
221
|
/* @__PURE__ */ u($.ItemSlot, { scope: r, value: s.value, children: /* @__PURE__ */ u(Ne, { asChild: !0, children: /* @__PURE__ */ u(
|
|
222
222
|
b.button,
|
|
@@ -349,7 +349,7 @@ var ze = a.forwardRef((e, t) => {
|
|
|
349
349
|
}
|
|
350
350
|
) : null;
|
|
351
351
|
}), O = "NavigationMenuContent", we = a.forwardRef((e, t) => {
|
|
352
|
-
const { forceMount: r, ...i } = e, n = y(O, e.__scopeNavigationMenu), o =
|
|
352
|
+
const { forceMount: r, ...i } = e, n = y(O, e.__scopeNavigationMenu), o = fe(O, e.__scopeNavigationMenu), s = k(o.contentRef, t), d = o.value === n.value, l = {
|
|
353
353
|
value: o.value,
|
|
354
354
|
triggerRef: o.triggerRef,
|
|
355
355
|
focusProxyRef: o.focusProxyRef,
|
|
@@ -398,23 +398,23 @@ var Ge = a.forwardRef((e, t) => {
|
|
|
398
398
|
...R
|
|
399
399
|
} = e, c = y(O, r), m = a.useRef(null), h = k(m, t), E = he(c.baseId, i), p = Ee(c.baseId, i), w = ae(r), N = a.useRef(null), { onItemDismiss: T } = c;
|
|
400
400
|
a.useEffect(() => {
|
|
401
|
-
const
|
|
402
|
-
if (c.isRootMenu &&
|
|
401
|
+
const f = m.current;
|
|
402
|
+
if (c.isRootMenu && f) {
|
|
403
403
|
const g = () => {
|
|
404
|
-
T(), d(),
|
|
404
|
+
T(), d(), f.contains(document.activeElement) && n.current?.focus();
|
|
405
405
|
};
|
|
406
|
-
return
|
|
406
|
+
return f.addEventListener(L, g), () => f.removeEventListener(L, g);
|
|
407
407
|
}
|
|
408
408
|
}, [c.isRootMenu, e.value, n, T, d]);
|
|
409
409
|
const _ = a.useMemo(() => {
|
|
410
410
|
const g = w().map((x) => x.value);
|
|
411
411
|
c.dir === "rtl" && g.reverse();
|
|
412
|
-
const
|
|
412
|
+
const v = g.indexOf(c.value), C = g.indexOf(c.previousValue), P = i === c.value, S = C === g.indexOf(i);
|
|
413
413
|
if (!P && !S) return N.current;
|
|
414
414
|
const M = (() => {
|
|
415
|
-
if (
|
|
416
|
-
if (P && C !== -1) return
|
|
417
|
-
if (S &&
|
|
415
|
+
if (v !== C) {
|
|
416
|
+
if (P && C !== -1) return v > C ? "from-end" : "from-start";
|
|
417
|
+
if (S && v !== -1) return v > C ? "to-start" : "to-end";
|
|
418
418
|
}
|
|
419
419
|
return null;
|
|
420
420
|
})();
|
|
@@ -431,29 +431,29 @@ var Ge = a.forwardRef((e, t) => {
|
|
|
431
431
|
ref: h,
|
|
432
432
|
disableOutsidePointerEvents: !1,
|
|
433
433
|
onDismiss: () => {
|
|
434
|
-
const
|
|
434
|
+
const f = new Event(L, {
|
|
435
435
|
bubbles: !0,
|
|
436
436
|
cancelable: !0
|
|
437
437
|
});
|
|
438
|
-
m.current?.dispatchEvent(
|
|
438
|
+
m.current?.dispatchEvent(f);
|
|
439
439
|
},
|
|
440
|
-
onFocusOutside: I(e.onFocusOutside, (
|
|
440
|
+
onFocusOutside: I(e.onFocusOutside, (f) => {
|
|
441
441
|
l();
|
|
442
|
-
const g =
|
|
443
|
-
c.rootNavigationMenu?.contains(g) &&
|
|
442
|
+
const g = f.target;
|
|
443
|
+
c.rootNavigationMenu?.contains(g) && f.preventDefault();
|
|
444
444
|
}),
|
|
445
|
-
onPointerDownOutside: I(e.onPointerDownOutside, (
|
|
446
|
-
const g =
|
|
447
|
-
(
|
|
445
|
+
onPointerDownOutside: I(e.onPointerDownOutside, (f) => {
|
|
446
|
+
const g = f.target, v = w().some((P) => P.ref.current?.contains(g)), C = c.isRootMenu && c.viewport?.contains(g);
|
|
447
|
+
(v || C || !c.isRootMenu) && f.preventDefault();
|
|
448
448
|
}),
|
|
449
|
-
onKeyDown: I(e.onKeyDown, (
|
|
450
|
-
const g =
|
|
451
|
-
if (
|
|
452
|
-
const C = B(
|
|
453
|
-
X(x) ?
|
|
449
|
+
onKeyDown: I(e.onKeyDown, (f) => {
|
|
450
|
+
const g = f.altKey || f.ctrlKey || f.metaKey;
|
|
451
|
+
if (f.key === "Tab" && !g) {
|
|
452
|
+
const C = B(f.currentTarget), P = document.activeElement, S = C.findIndex((V) => V === P), x = f.shiftKey ? C.slice(0, S).reverse() : C.slice(S + 1, C.length);
|
|
453
|
+
X(x) ? f.preventDefault() : o.current?.focus();
|
|
454
454
|
}
|
|
455
455
|
}),
|
|
456
|
-
onEscapeKeyDown: I(e.onEscapeKeyDown, (
|
|
456
|
+
onEscapeKeyDown: I(e.onEscapeKeyDown, (f) => {
|
|
457
457
|
s.current = !0;
|
|
458
458
|
})
|
|
459
459
|
}
|
|
@@ -486,14 +486,14 @@ var Ue = a.forwardRef((e, t) => {
|
|
|
486
486
|
},
|
|
487
487
|
onPointerEnter: I(e.onPointerEnter, o.onContentEnter),
|
|
488
488
|
onPointerLeave: I(e.onPointerLeave, F(o.onContentLeave)),
|
|
489
|
-
children: Array.from(d.items).map(([T, { ref: _, forceMount:
|
|
490
|
-
const
|
|
491
|
-
return /* @__PURE__ */ u(K, { present:
|
|
489
|
+
children: Array.from(d.items).map(([T, { ref: _, forceMount: f, ...g }]) => {
|
|
490
|
+
const v = w === T;
|
|
491
|
+
return /* @__PURE__ */ u(K, { present: f || v, children: /* @__PURE__ */ u(
|
|
492
492
|
Ce,
|
|
493
493
|
{
|
|
494
494
|
...g,
|
|
495
495
|
ref: ye(_, (C) => {
|
|
496
|
-
|
|
496
|
+
v && C && m(C);
|
|
497
497
|
})
|
|
498
498
|
}
|
|
499
499
|
) }, T);
|
|
@@ -577,24 +577,23 @@ function Ee(e, t) {
|
|
|
577
577
|
function F(e) {
|
|
578
578
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
579
579
|
}
|
|
580
|
-
var
|
|
580
|
+
var ct = se, ut = le, lt = ve, dt = me, ft = ge, vt = pe, mt = we, gt = Re;
|
|
581
581
|
export {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
mt as Content,
|
|
583
|
+
vt as Indicator,
|
|
584
|
+
lt as Item,
|
|
585
585
|
ft as Link,
|
|
586
|
-
|
|
586
|
+
ut as List,
|
|
587
587
|
se as NavigationMenu,
|
|
588
588
|
we as NavigationMenuContent,
|
|
589
589
|
pe as NavigationMenuIndicator,
|
|
590
|
-
|
|
590
|
+
ve as NavigationMenuItem,
|
|
591
591
|
ge as NavigationMenuLink,
|
|
592
592
|
le as NavigationMenuList,
|
|
593
593
|
Fe as NavigationMenuSub,
|
|
594
594
|
me as NavigationMenuTrigger,
|
|
595
595
|
Re as NavigationMenuViewport,
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
ct as createNavigationMenuScope
|
|
596
|
+
ct as Root,
|
|
597
|
+
dt as Trigger,
|
|
598
|
+
gt as Viewport
|
|
600
599
|
};
|
|
@@ -16,7 +16,7 @@ import { useControllableState as q } from "../../react-use-controllable-state/di
|
|
|
16
16
|
import { hideOthers as z } from "../../../aria-hidden/dist/es2015/index.js";
|
|
17
17
|
import B from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
18
18
|
import { jsx as p } from "react/jsx-runtime";
|
|
19
|
-
var C = "Popover", [b
|
|
19
|
+
var C = "Popover", [b] = L(C, [
|
|
20
20
|
_
|
|
21
21
|
]), m = _(), [J, u] = b(C), F = (o) => {
|
|
22
22
|
const {
|
|
@@ -224,9 +224,9 @@ ao.displayName = no;
|
|
|
224
224
|
function T(o) {
|
|
225
225
|
return o ? "open" : "closed";
|
|
226
226
|
}
|
|
227
|
-
var
|
|
227
|
+
var _o = F, xo = y, wo = D, Eo = M;
|
|
228
228
|
export {
|
|
229
|
-
|
|
229
|
+
Eo as Content,
|
|
230
230
|
F as Popover,
|
|
231
231
|
Q as PopoverAnchor,
|
|
232
232
|
ao as PopoverArrow,
|
|
@@ -234,8 +234,7 @@ export {
|
|
|
234
234
|
M as PopoverContent,
|
|
235
235
|
D as PopoverPortal,
|
|
236
236
|
y as PopoverTrigger,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
_o as createPopoverScope
|
|
237
|
+
wo as Portal,
|
|
238
|
+
_o as Root,
|
|
239
|
+
xo as Trigger
|
|
241
240
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
2
|
+
import * as m from "react";
|
|
3
3
|
import { createContextScope as $ } from "../../react-context/dist/index.js";
|
|
4
|
-
import { Primitive as
|
|
4
|
+
import { Primitive as c } from "../../react-primitive/dist/index.js";
|
|
5
5
|
import { jsx as l } from "react/jsx-runtime";
|
|
6
|
-
var u = "Progress", d = 100, [h
|
|
6
|
+
var u = "Progress", d = 100, [h] = $(u), [R, _] = h(u), f = m.forwardRef(
|
|
7
7
|
(r, e) => {
|
|
8
8
|
const {
|
|
9
9
|
__scopeProgress: i,
|
|
@@ -15,17 +15,17 @@ var u = "Progress", d = 100, [h, C] = $(u), [R, _] = h(u), f = c.forwardRef(
|
|
|
15
15
|
(a || a === 0) && !v(a) && console.error(M(`${a}`, "Progress"));
|
|
16
16
|
const t = v(a) ? a : d;
|
|
17
17
|
o !== null && !p(o, t) && console.error(V(`${o}`, "Progress"));
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */ l(R, { scope: i, value:
|
|
20
|
-
|
|
18
|
+
const n = p(o, t) ? o : null, I = s(n) ? N(n, t) : void 0;
|
|
19
|
+
return /* @__PURE__ */ l(R, { scope: i, value: n, max: t, children: /* @__PURE__ */ l(
|
|
20
|
+
c.div,
|
|
21
21
|
{
|
|
22
22
|
"aria-valuemax": t,
|
|
23
23
|
"aria-valuemin": 0,
|
|
24
|
-
"aria-valuenow": n
|
|
24
|
+
"aria-valuenow": s(n) ? n : void 0,
|
|
25
25
|
"aria-valuetext": I,
|
|
26
26
|
role: "progressbar",
|
|
27
|
-
"data-state":
|
|
28
|
-
"data-value":
|
|
27
|
+
"data-state": P(n, t),
|
|
28
|
+
"data-value": n ?? void 0,
|
|
29
29
|
"data-max": t,
|
|
30
30
|
...b,
|
|
31
31
|
ref: e
|
|
@@ -34,13 +34,13 @@ var u = "Progress", d = 100, [h, C] = $(u), [R, _] = h(u), f = c.forwardRef(
|
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
f.displayName = u;
|
|
37
|
-
var g = "ProgressIndicator",
|
|
37
|
+
var g = "ProgressIndicator", x = m.forwardRef(
|
|
38
38
|
(r, e) => {
|
|
39
39
|
const { __scopeProgress: i, ...o } = r, a = _(g, i);
|
|
40
40
|
return /* @__PURE__ */ l(
|
|
41
|
-
|
|
41
|
+
c.div,
|
|
42
42
|
{
|
|
43
|
-
"data-state":
|
|
43
|
+
"data-state": P(a.value, a.max),
|
|
44
44
|
"data-value": a.value ?? void 0,
|
|
45
45
|
"data-max": a.max,
|
|
46
46
|
...o,
|
|
@@ -49,21 +49,21 @@ var g = "ProgressIndicator", P = c.forwardRef(
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
x.displayName = g;
|
|
53
53
|
function E(r, e) {
|
|
54
54
|
return `${Math.round(r / e * 100)}%`;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function P(r, e) {
|
|
57
57
|
return r == null ? "indeterminate" : r === e ? "complete" : "loading";
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function s(r) {
|
|
60
60
|
return typeof r == "number";
|
|
61
61
|
}
|
|
62
62
|
function v(r) {
|
|
63
|
-
return
|
|
63
|
+
return s(r) && !isNaN(r) && r > 0;
|
|
64
64
|
}
|
|
65
65
|
function p(r, e) {
|
|
66
|
-
return
|
|
66
|
+
return s(r) && !isNaN(r) && r <= e && r >= 0;
|
|
67
67
|
}
|
|
68
68
|
function M(r, e) {
|
|
69
69
|
return `Invalid prop \`max\` of value \`${r}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${d}\`.`;
|
|
@@ -76,11 +76,10 @@ function V(r, e) {
|
|
|
76
76
|
|
|
77
77
|
Defaulting to \`null\`.`;
|
|
78
78
|
}
|
|
79
|
-
var D = f, L =
|
|
79
|
+
var D = f, L = x;
|
|
80
80
|
export {
|
|
81
81
|
L as Indicator,
|
|
82
82
|
f as Progress,
|
|
83
|
-
|
|
84
|
-
D as Root
|
|
85
|
-
C as createProgressScope
|
|
83
|
+
x as ProgressIndicator,
|
|
84
|
+
D as Root
|
|
86
85
|
};
|
|
@@ -11,7 +11,7 @@ import { useSize as U } from "../../react-use-size/dist/index.js";
|
|
|
11
11
|
import { usePrevious as V } from "../../react-use-previous/dist/index.js";
|
|
12
12
|
import { Presence as j } from "../../react-presence/dist/index.js";
|
|
13
13
|
import { jsx as u, jsxs as z } from "react/jsx-runtime";
|
|
14
|
-
var _ = "Radio", [H, k] = w(_), [W, X] = H(_),
|
|
14
|
+
var _ = "Radio", [H, k] = w(_), [W, X] = H(_), g = n.forwardRef(
|
|
15
15
|
(t, d) => {
|
|
16
16
|
const {
|
|
17
17
|
__scopeRadio: o,
|
|
@@ -59,10 +59,10 @@ var _ = "Radio", [H, k] = w(_), [W, X] = H(_), G = n.forwardRef(
|
|
|
59
59
|
] });
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
|
|
63
|
-
var
|
|
62
|
+
g.displayName = _;
|
|
63
|
+
var G = "RadioIndicator", S = n.forwardRef(
|
|
64
64
|
(t, d) => {
|
|
65
|
-
const { __scopeRadio: o, forceMount: i, ...e } = t, r = X(
|
|
65
|
+
const { __scopeRadio: o, forceMount: i, ...e } = t, r = X(G, o);
|
|
66
66
|
return /* @__PURE__ */ u(j, { present: i || r.checked, children: /* @__PURE__ */ u(
|
|
67
67
|
C.span,
|
|
68
68
|
{
|
|
@@ -74,7 +74,7 @@ var S = "RadioIndicator", g = n.forwardRef(
|
|
|
74
74
|
) });
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
|
|
77
|
+
S.displayName = G;
|
|
78
78
|
var Y = "RadioBubbleInput", A = n.forwardRef(
|
|
79
79
|
({
|
|
80
80
|
__scopeRadio: t,
|
|
@@ -120,7 +120,7 @@ A.displayName = Y;
|
|
|
120
120
|
function N(t) {
|
|
121
121
|
return t ? "checked" : "unchecked";
|
|
122
122
|
}
|
|
123
|
-
var J = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], b = "RadioGroup", [Q
|
|
123
|
+
var J = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], b = "RadioGroup", [Q] = w(b, [
|
|
124
124
|
P,
|
|
125
125
|
k
|
|
126
126
|
]), x = P(), D = k(), [Z, $] = Q(b), M = n.forwardRef(
|
|
@@ -197,7 +197,7 @@ var O = "RadioGroupItem", F = n.forwardRef(
|
|
|
197
197
|
focusable: !a,
|
|
198
198
|
active: p,
|
|
199
199
|
children: /* @__PURE__ */ u(
|
|
200
|
-
|
|
200
|
+
g,
|
|
201
201
|
{
|
|
202
202
|
disabled: a,
|
|
203
203
|
required: r.required,
|
|
@@ -223,17 +223,16 @@ F.displayName = O;
|
|
|
223
223
|
var ee = "RadioGroupIndicator", L = n.forwardRef(
|
|
224
224
|
(t, d) => {
|
|
225
225
|
const { __scopeRadioGroup: o, ...i } = t, e = D(o);
|
|
226
|
-
return /* @__PURE__ */ u(
|
|
226
|
+
return /* @__PURE__ */ u(S, { ...e, ...i, ref: d });
|
|
227
227
|
}
|
|
228
228
|
);
|
|
229
229
|
L.displayName = ee;
|
|
230
|
-
var
|
|
230
|
+
var le = M, fe = F, me = L;
|
|
231
231
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
me as Indicator,
|
|
233
|
+
fe as Item,
|
|
234
234
|
M as RadioGroup,
|
|
235
235
|
L as RadioGroupIndicator,
|
|
236
236
|
F as RadioGroupItem,
|
|
237
|
-
|
|
238
|
-
le as createRadioGroupScope
|
|
237
|
+
le as Root
|
|
239
238
|
};
|
|
@@ -13,7 +13,7 @@ import { jsx as b, jsxs as ie, Fragment as se } from "react/jsx-runtime";
|
|
|
13
13
|
function ae(e, t) {
|
|
14
14
|
return c.useReducer((r, l) => t[r][l] ?? r, e);
|
|
15
15
|
}
|
|
16
|
-
var V = "ScrollArea", [j
|
|
16
|
+
var V = "ScrollArea", [j] = te(V), [de, p] = j(V), q = c.forwardRef(
|
|
17
17
|
(e, t) => {
|
|
18
18
|
const {
|
|
19
19
|
__scopeScrollArea: r,
|
|
@@ -518,15 +518,14 @@ function T(e, t) {
|
|
|
518
518
|
}
|
|
519
519
|
}, [e, r]);
|
|
520
520
|
}
|
|
521
|
-
var
|
|
521
|
+
var He = q, ze = G, Ne = Z;
|
|
522
522
|
export {
|
|
523
|
-
|
|
524
|
-
|
|
523
|
+
Ne as Corner,
|
|
524
|
+
He as Root,
|
|
525
525
|
q as ScrollArea,
|
|
526
526
|
Z as ScrollAreaCorner,
|
|
527
527
|
ue as ScrollAreaScrollbar,
|
|
528
528
|
pe as ScrollAreaThumb,
|
|
529
529
|
G as ScrollAreaViewport,
|
|
530
|
-
|
|
531
|
-
He as createScrollAreaScope
|
|
530
|
+
ze as Viewport
|
|
532
531
|
};
|
|
@@ -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
|
|
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
|
|
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
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
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
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
uo as createSelectScope
|
|
845
|
+
Po as Separator,
|
|
846
|
+
po as Trigger,
|
|
847
|
+
fo as Value,
|
|
848
|
+
go as Viewport
|
|
850
849
|
};
|