@epilot/volt-ui 1.1.2-alpha.1 → 1.1.2-alpha.3
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/components/badge/badge.d.ts +1 -1
- package/dist/components/button/button.d.ts +2 -0
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -4
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +4 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.es33.js +1 -1
- package/dist/index.es34.js +16 -16
- package/dist/index.es35.js +1 -1
- package/dist/index.es36.js +9 -9
- package/dist/index.es37.js +6 -6
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +9 -9
- package/dist/index.es40.js +10 -10
- package/dist/index.es41.js +7 -7
- package/dist/index.es42.js +9 -9
- package/dist/index.es43.js +8 -8
- package/dist/index.es44.js +3 -3
- package/dist/index.es45.js +8 -8
- package/dist/index.es47.js +7 -30
- package/dist/index.es48.js +66 -5
- package/dist/index.es49.js +33 -67
- package/dist/index.es5.js +19 -13
- package/dist/index.es50.js +177 -48
- package/dist/index.es51.js +51 -5
- package/dist/index.es52.js +7 -24
- package/dist/index.es53.js +24 -33
- package/dist/index.es54.js +5 -180
- package/dist/index.es55.js +68 -7
- package/dist/index.es56.js +29 -68
- package/dist/index.es57.js +10 -124
- package/dist/index.es58.js +122 -12
- package/dist/index.es59.js +14 -134
- package/dist/index.es60.js +134 -10
- package/dist/index.es61.js +5 -5
- package/dist/index.es62.js +2 -2
- package/dist/index.es66.js +9 -30
- package/dist/index.es67.js +29 -309
- package/dist/index.es68.js +8 -45
- package/dist/index.es69.js +303 -111
- package/dist/index.es70.js +30 -9
- package/dist/index.es71.js +3 -8
- package/dist/index.es72.js +45 -29
- package/dist/index.es74.js +10 -3
- package/dist/index.es75.js +4 -48
- package/dist/index.es76.js +117 -10
- package/dist/index.es77.js +48 -4
- package/dist/index.es79.js +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +3 -3
- package/dist/index.es86.js +3 -3
- package/dist/index.es87.js +3 -3
- package/dist/index.es88.js +525 -5
- package/dist/index.es89.js +128 -3
- package/dist/index.es90.js +132 -22
- package/dist/index.es91.js +5 -110
- package/dist/index.es92.js +3 -16
- package/dist/index.es93.js +21 -522
- package/dist/index.es94.js +109 -127
- package/dist/index.es95.js +15 -133
- package/dist/index.es97.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es76.js
CHANGED
|
@@ -1,13 +1,120 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { composeEventHandlers as T } from "./index.es47.js";
|
|
3
|
+
import { createContextScope as S } from "./index.es48.js";
|
|
4
|
+
import { useControllableState as D } from "./index.es51.js";
|
|
5
|
+
import { useLayoutEffect as L } from "./index.es75.js";
|
|
6
|
+
import { useComposedRefs as M } from "./index.es46.js";
|
|
7
|
+
import { Primitive as v } from "./index.es49.js";
|
|
8
|
+
import { Presence as k } from "./index.es55.js";
|
|
9
|
+
import { useId as F } from "./index.es57.js";
|
|
10
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
11
|
+
var u = "Collapsible", [B, W] = S(u), [G, g] = B(u), w = o.forwardRef(
|
|
12
|
+
(e, a) => {
|
|
13
|
+
const {
|
|
14
|
+
__scopeCollapsible: i,
|
|
15
|
+
open: r,
|
|
16
|
+
defaultOpen: t,
|
|
17
|
+
disabled: l,
|
|
18
|
+
onOpenChange: s,
|
|
19
|
+
...m
|
|
20
|
+
} = e, [d, p] = D({
|
|
21
|
+
prop: r,
|
|
22
|
+
defaultProp: t ?? !1,
|
|
23
|
+
onChange: s,
|
|
24
|
+
caller: u
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ c(
|
|
27
|
+
G,
|
|
28
|
+
{
|
|
29
|
+
scope: i,
|
|
30
|
+
disabled: l,
|
|
31
|
+
contentId: F(),
|
|
32
|
+
open: d,
|
|
33
|
+
onOpenToggle: o.useCallback(() => p((C) => !C), [p]),
|
|
34
|
+
children: /* @__PURE__ */ c(
|
|
35
|
+
v.div,
|
|
36
|
+
{
|
|
37
|
+
"data-state": h(d),
|
|
38
|
+
"data-disabled": l ? "" : void 0,
|
|
39
|
+
...m,
|
|
40
|
+
ref: a
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
w.displayName = u;
|
|
48
|
+
var A = "CollapsibleTrigger", I = o.forwardRef(
|
|
49
|
+
(e, a) => {
|
|
50
|
+
const { __scopeCollapsible: i, ...r } = e, t = g(A, i);
|
|
51
|
+
return /* @__PURE__ */ c(
|
|
52
|
+
v.button,
|
|
53
|
+
{
|
|
54
|
+
type: "button",
|
|
55
|
+
"aria-controls": t.contentId,
|
|
56
|
+
"aria-expanded": t.open || !1,
|
|
57
|
+
"data-state": h(t.open),
|
|
58
|
+
"data-disabled": t.disabled ? "" : void 0,
|
|
59
|
+
disabled: t.disabled,
|
|
60
|
+
...r,
|
|
61
|
+
ref: a,
|
|
62
|
+
onClick: T(e.onClick, t.onOpenToggle)
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
I.displayName = A;
|
|
68
|
+
var R = "CollapsibleContent", O = o.forwardRef(
|
|
69
|
+
(e, a) => {
|
|
70
|
+
const { forceMount: i, ...r } = e, t = g(R, e.__scopeCollapsible);
|
|
71
|
+
return /* @__PURE__ */ c(k, { present: i || t.open, children: ({ present: l }) => /* @__PURE__ */ c($, { ...r, ref: a, present: l }) });
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
O.displayName = R;
|
|
75
|
+
var $ = o.forwardRef((e, a) => {
|
|
76
|
+
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
|
+
return o.useEffect(() => {
|
|
78
|
+
const n = requestAnimationFrame(() => _.current = !1);
|
|
79
|
+
return () => cancelAnimationFrame(n);
|
|
80
|
+
}, []), L(() => {
|
|
81
|
+
const n = p.current;
|
|
82
|
+
if (n) {
|
|
83
|
+
f.current = f.current || {
|
|
84
|
+
transitionDuration: n.style.transitionDuration,
|
|
85
|
+
animationName: n.style.animationName
|
|
86
|
+
}, n.style.transitionDuration = "0s", n.style.animationName = "none";
|
|
87
|
+
const E = n.getBoundingClientRect();
|
|
88
|
+
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
|
+
}, [s.open, r]), /* @__PURE__ */ c(
|
|
91
|
+
v.div,
|
|
92
|
+
{
|
|
93
|
+
"data-state": h(s.open),
|
|
94
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
95
|
+
id: s.contentId,
|
|
96
|
+
hidden: !b,
|
|
97
|
+
...l,
|
|
98
|
+
ref: C,
|
|
99
|
+
style: {
|
|
100
|
+
"--radix-collapsible-content-height": x ? `${x}px` : void 0,
|
|
101
|
+
"--radix-collapsible-content-width": P ? `${P}px` : void 0,
|
|
102
|
+
...e.style
|
|
103
|
+
},
|
|
104
|
+
children: b && t
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
});
|
|
108
|
+
function h(e) {
|
|
109
|
+
return e ? "open" : "closed";
|
|
10
110
|
}
|
|
111
|
+
var X = w, Y = I, Z = O;
|
|
11
112
|
export {
|
|
12
|
-
|
|
113
|
+
w as Collapsible,
|
|
114
|
+
O as CollapsibleContent,
|
|
115
|
+
I as CollapsibleTrigger,
|
|
116
|
+
Z as Content,
|
|
117
|
+
X as Root,
|
|
118
|
+
Y as Trigger,
|
|
119
|
+
W as createCollapsibleScope
|
|
13
120
|
};
|
package/dist/index.es77.js
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
};
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { composeRefs as m } from "./index.es46.js";
|
|
3
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function b(e) {
|
|
6
|
+
const n = /* @__PURE__ */ y(e), o = l.forwardRef((t, r) => {
|
|
7
|
+
const { children: i, ...c } = t, s = l.Children.toArray(i), a = s.find(E);
|
|
8
|
+
if (a) {
|
|
9
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
+
return /* @__PURE__ */ u(n, { ...c, ref: r, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ u(n, { ...c, ref: r, children: i });
|
|
13
|
+
});
|
|
14
|
+
return o.displayName = `${e}.Slot`, o;
|
|
15
|
+
}
|
|
16
|
+
// @__NO_SIDE_EFFECTS__
|
|
17
|
+
function y(e) {
|
|
18
|
+
const n = l.forwardRef((o, t) => {
|
|
19
|
+
const { children: r, ...i } = o;
|
|
20
|
+
if (l.isValidElement(r)) {
|
|
21
|
+
const c = S(r), s = C(i, r.props);
|
|
22
|
+
return r.type !== l.Fragment && (s.ref = t ? m(t, c) : c), l.cloneElement(r, s);
|
|
23
|
+
}
|
|
24
|
+
return l.Children.count(r) > 1 ? l.Children.only(null) : null;
|
|
25
|
+
});
|
|
26
|
+
return n.displayName = `${e}.SlotClone`, n;
|
|
27
|
+
}
|
|
28
|
+
var g = Symbol("radix.slottable");
|
|
29
|
+
function E(e) {
|
|
30
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
31
|
+
}
|
|
32
|
+
function C(e, n) {
|
|
33
|
+
const o = { ...n };
|
|
34
|
+
for (const t in n) {
|
|
35
|
+
const r = e[t], i = n[t];
|
|
36
|
+
/^on[A-Z]/.test(t) ? r && i ? o[t] = (...s) => {
|
|
37
|
+
const a = i(...s);
|
|
38
|
+
return r(...s), a;
|
|
39
|
+
} : r && (o[t] = r) : t === "style" ? o[t] = { ...r, ...i } : t === "className" && (o[t] = [r, i].filter(Boolean).join(" "));
|
|
40
|
+
}
|
|
41
|
+
return { ...e, ...o };
|
|
42
|
+
}
|
|
43
|
+
function S(e) {
|
|
44
|
+
var t, r;
|
|
45
|
+
let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = n && "isReactWarning" in n && n.isReactWarning;
|
|
46
|
+
return o ? e.ref : (n = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
47
|
+
}
|
|
4
48
|
export {
|
|
5
|
-
|
|
49
|
+
b as createSlot
|
|
6
50
|
};
|
package/dist/index.es79.js
CHANGED
package/dist/index.es81.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import { Primitive as p } from "./index.
|
|
2
|
+
import { Primitive as p } from "./index.es49.js";
|
|
3
3
|
import { jsx as o } from "react/jsx-runtime";
|
|
4
4
|
var v = "Arrow", e = n.forwardRef((r, i) => {
|
|
5
5
|
const { children: t, width: a = 10, height: s = 5, ...m } = r;
|
package/dist/index.es82.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { offset as st, shift as rt, flip as ct, size as lt, hide as ft, limitShift as ut, computePosition as ht, arrow as at } from "./index.
|
|
2
|
-
import { createCoords as y, round as D, max as E, min as N, rectToClientRect as J, floor as A } from "./index.
|
|
3
|
-
import { isElement as v, getDocumentElement as R, getOverflowAncestors as $, getComputedStyle as b, isHTMLElement as C, getWindow as L, isTopLayer as V, getParentNode as S, isLastTraversableNode as z, isTableElement as dt, isContainingBlock as Q, getContainingBlock as gt, getNodeName as _, isOverflowElement as q, getNodeScroll as H, getFrameElement as U, isWebKit as Y } from "./index.
|
|
1
|
+
import { offset as st, shift as rt, flip as ct, size as lt, hide as ft, limitShift as ut, computePosition as ht, arrow as at } from "./index.es88.js";
|
|
2
|
+
import { createCoords as y, round as D, max as E, min as N, rectToClientRect as J, floor as A } from "./index.es89.js";
|
|
3
|
+
import { isElement as v, getDocumentElement as R, getOverflowAncestors as $, getComputedStyle as b, isHTMLElement as C, getWindow as L, isTopLayer as V, getParentNode as S, isLastTraversableNode as z, isTableElement as dt, isContainingBlock as Q, getContainingBlock as gt, getNodeName as _, isOverflowElement as q, getNodeScroll as H, getFrameElement as U, isWebKit as Y } from "./index.es90.js";
|
|
4
4
|
function Z(t) {
|
|
5
5
|
const e = b(t);
|
|
6
6
|
let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
package/dist/index.es86.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __rest as E, __assign as r } from "./index.es85.js";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { zeroRightClassName as I, fullWidthClassName as Z } from "./index.
|
|
4
|
-
import { effectCar as W } from "./index.
|
|
5
|
-
import { useMergeRefs as z } from "./index.
|
|
3
|
+
import { zeroRightClassName as I, fullWidthClassName as Z } from "./index.es91.js";
|
|
4
|
+
import { effectCar as W } from "./index.es92.js";
|
|
5
|
+
import { useMergeRefs as z } from "./index.es93.js";
|
|
6
6
|
var l = function() {
|
|
7
7
|
}, m = a.forwardRef(function(e, d) {
|
|
8
8
|
var o = a.useRef(null), n = a.useState({
|
package/dist/index.es87.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RemoveScrollSideCar as r } from "./index.
|
|
2
|
-
import { effectCar as o } from "./index.
|
|
3
|
-
import { exportSidecar as e } from "./index.
|
|
1
|
+
import { RemoveScrollSideCar as r } from "./index.es94.js";
|
|
2
|
+
import { effectCar as o } from "./index.es92.js";
|
|
3
|
+
import { exportSidecar as e } from "./index.es95.js";
|
|
4
4
|
const f = e(o, r);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|