@epilot/volt-ui 1.1.2-alpha.3 → 1.1.2-alpha.4

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 (214) hide show
  1. package/dist/components/button/button.d.ts +2 -2
  2. package/dist/components/card/card.d.ts +9 -0
  3. package/dist/components/text/text.d.ts +2 -2
  4. package/dist/index.cjs.js +51 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.es.js +11724 -125
  7. package/dist/style.css +7320 -1
  8. package/package.json +2 -2
  9. package/dist/index.cjs10.js +0 -1
  10. package/dist/index.cjs100.js +0 -1
  11. package/dist/index.cjs101.js +0 -1
  12. package/dist/index.cjs102.js +0 -1
  13. package/dist/index.cjs103.js +0 -1
  14. package/dist/index.cjs104.js +0 -1
  15. package/dist/index.cjs105.js +0 -1
  16. package/dist/index.cjs106.js +0 -1
  17. package/dist/index.cjs11.js +0 -1
  18. package/dist/index.cjs12.js +0 -1
  19. package/dist/index.cjs13.js +0 -1
  20. package/dist/index.cjs14.js +0 -1
  21. package/dist/index.cjs15.js +0 -1
  22. package/dist/index.cjs16.js +0 -1
  23. package/dist/index.cjs17.js +0 -1
  24. package/dist/index.cjs18.js +0 -1
  25. package/dist/index.cjs19.js +0 -1
  26. package/dist/index.cjs20.js +0 -1
  27. package/dist/index.cjs21.js +0 -1
  28. package/dist/index.cjs22.js +0 -1
  29. package/dist/index.cjs23.js +0 -1
  30. package/dist/index.cjs24.js +0 -1
  31. package/dist/index.cjs25.js +0 -1
  32. package/dist/index.cjs26.js +0 -1
  33. package/dist/index.cjs27.js +0 -1
  34. package/dist/index.cjs28.js +0 -1
  35. package/dist/index.cjs29.js +0 -1
  36. package/dist/index.cjs30.js +0 -1
  37. package/dist/index.cjs31.js +0 -1
  38. package/dist/index.cjs32.js +0 -1
  39. package/dist/index.cjs33.js +0 -1
  40. package/dist/index.cjs34.js +0 -1
  41. package/dist/index.cjs35.js +0 -1
  42. package/dist/index.cjs36.js +0 -1
  43. package/dist/index.cjs37.js +0 -1
  44. package/dist/index.cjs38.js +0 -1
  45. package/dist/index.cjs39.js +0 -1
  46. package/dist/index.cjs4.js +0 -1
  47. package/dist/index.cjs40.js +0 -5
  48. package/dist/index.cjs41.js +0 -1
  49. package/dist/index.cjs42.js +0 -1
  50. package/dist/index.cjs43.js +0 -1
  51. package/dist/index.cjs44.js +0 -7
  52. package/dist/index.cjs45.js +0 -1
  53. package/dist/index.cjs46.js +0 -1
  54. package/dist/index.cjs47.js +0 -1
  55. package/dist/index.cjs48.js +0 -1
  56. package/dist/index.cjs49.js +0 -1
  57. package/dist/index.cjs5.js +0 -1
  58. package/dist/index.cjs50.js +0 -1
  59. package/dist/index.cjs51.js +0 -1
  60. package/dist/index.cjs52.js +0 -1
  61. package/dist/index.cjs53.js +0 -1
  62. package/dist/index.cjs54.js +0 -1
  63. package/dist/index.cjs55.js +0 -1
  64. package/dist/index.cjs56.js +0 -1
  65. package/dist/index.cjs57.js +0 -1
  66. package/dist/index.cjs58.js +0 -1
  67. package/dist/index.cjs59.js +0 -1
  68. package/dist/index.cjs6.js +0 -1
  69. package/dist/index.cjs60.js +0 -1
  70. package/dist/index.cjs61.js +0 -1
  71. package/dist/index.cjs62.js +0 -1
  72. package/dist/index.cjs63.js +0 -1
  73. package/dist/index.cjs64.js +0 -1
  74. package/dist/index.cjs65.js +0 -1
  75. package/dist/index.cjs66.js +0 -1
  76. package/dist/index.cjs67.js +0 -1
  77. package/dist/index.cjs68.js +0 -1
  78. package/dist/index.cjs69.js +0 -1
  79. package/dist/index.cjs7.js +0 -1
  80. package/dist/index.cjs70.js +0 -1
  81. package/dist/index.cjs71.js +0 -1
  82. package/dist/index.cjs72.js +0 -1
  83. package/dist/index.cjs73.js +0 -1
  84. package/dist/index.cjs74.js +0 -1
  85. package/dist/index.cjs75.js +0 -1
  86. package/dist/index.cjs76.js +0 -1
  87. package/dist/index.cjs77.js +0 -1
  88. package/dist/index.cjs78.js +0 -1
  89. package/dist/index.cjs79.js +0 -1
  90. package/dist/index.cjs8.js +0 -1
  91. package/dist/index.cjs80.js +0 -1
  92. package/dist/index.cjs81.js +0 -1
  93. package/dist/index.cjs82.js +0 -1
  94. package/dist/index.cjs83.js +0 -1
  95. package/dist/index.cjs84.js +0 -1
  96. package/dist/index.cjs85.js +0 -1
  97. package/dist/index.cjs86.js +0 -1
  98. package/dist/index.cjs87.js +0 -1
  99. package/dist/index.cjs88.js +0 -1
  100. package/dist/index.cjs89.js +0 -1
  101. package/dist/index.cjs9.js +0 -1
  102. package/dist/index.cjs90.js +0 -1
  103. package/dist/index.cjs91.js +0 -1
  104. package/dist/index.cjs92.js +0 -1
  105. package/dist/index.cjs93.js +0 -1
  106. package/dist/index.cjs94.js +0 -4
  107. package/dist/index.cjs95.js +0 -1
  108. package/dist/index.cjs96.js +0 -1
  109. package/dist/index.cjs97.js +0 -38
  110. package/dist/index.cjs98.js +0 -1
  111. package/dist/index.cjs99.js +0 -1
  112. package/dist/index.es10.js +0 -29
  113. package/dist/index.es100.js +0 -68
  114. package/dist/index.es101.js +0 -6
  115. package/dist/index.es102.js +0 -25
  116. package/dist/index.es103.js +0 -25
  117. package/dist/index.es104.js +0 -15
  118. package/dist/index.es105.js +0 -30
  119. package/dist/index.es106.js +0 -7
  120. package/dist/index.es11.js +0 -250
  121. package/dist/index.es12.js +0 -230
  122. package/dist/index.es13.js +0 -34
  123. package/dist/index.es14.js +0 -40
  124. package/dist/index.es15.js +0 -43
  125. package/dist/index.es16.js +0 -115
  126. package/dist/index.es17.js +0 -24
  127. package/dist/index.es18.js +0 -36
  128. package/dist/index.es19.js +0 -137
  129. package/dist/index.es20.js +0 -50
  130. package/dist/index.es21.js +0 -54
  131. package/dist/index.es22.js +0 -74
  132. package/dist/index.es23.js +0 -172
  133. package/dist/index.es24.js +0 -89
  134. package/dist/index.es25.js +0 -113
  135. package/dist/index.es26.js +0 -85
  136. package/dist/index.es27.js +0 -61
  137. package/dist/index.es28.js +0 -746
  138. package/dist/index.es29.js +0 -17
  139. package/dist/index.es30.js +0 -2763
  140. package/dist/index.es31.js +0 -62
  141. package/dist/index.es32.js +0 -35
  142. package/dist/index.es33.js +0 -126
  143. package/dist/index.es34.js +0 -862
  144. package/dist/index.es35.js +0 -20
  145. package/dist/index.es36.js +0 -331
  146. package/dist/index.es37.js +0 -132
  147. package/dist/index.es38.js +0 -24
  148. package/dist/index.es39.js +0 -243
  149. package/dist/index.es4.js +0 -6
  150. package/dist/index.es40.js +0 -262
  151. package/dist/index.es41.js +0 -251
  152. package/dist/index.es42.js +0 -238
  153. package/dist/index.es43.js +0 -239
  154. package/dist/index.es44.js +0 -127
  155. package/dist/index.es45.js +0 -163
  156. package/dist/index.es46.js +0 -29
  157. package/dist/index.es47.js +0 -9
  158. package/dist/index.es48.js +0 -70
  159. package/dist/index.es49.js +0 -36
  160. package/dist/index.es5.js +0 -50
  161. package/dist/index.es50.js +0 -183
  162. package/dist/index.es51.js +0 -54
  163. package/dist/index.es52.js +0 -10
  164. package/dist/index.es53.js +0 -27
  165. package/dist/index.es54.js +0 -8
  166. package/dist/index.es55.js +0 -71
  167. package/dist/index.es56.js +0 -32
  168. package/dist/index.es57.js +0 -13
  169. package/dist/index.es58.js +0 -127
  170. package/dist/index.es59.js +0 -17
  171. package/dist/index.es6.js +0 -66
  172. package/dist/index.es60.js +0 -137
  173. package/dist/index.es61.js +0 -221
  174. package/dist/index.es62.js +0 -16
  175. package/dist/index.es63.js +0 -50
  176. package/dist/index.es64.js +0 -52
  177. package/dist/index.es65.js +0 -11
  178. package/dist/index.es66.js +0 -11
  179. package/dist/index.es67.js +0 -32
  180. package/dist/index.es68.js +0 -11
  181. package/dist/index.es69.js +0 -312
  182. package/dist/index.es7.js +0 -167
  183. package/dist/index.es70.js +0 -32
  184. package/dist/index.es71.js +0 -6
  185. package/dist/index.es72.js +0 -48
  186. package/dist/index.es73.js +0 -50
  187. package/dist/index.es74.js +0 -13
  188. package/dist/index.es75.js +0 -6
  189. package/dist/index.es76.js +0 -120
  190. package/dist/index.es77.js +0 -50
  191. package/dist/index.es78.js +0 -50
  192. package/dist/index.es79.js +0 -14
  193. package/dist/index.es8.js +0 -39
  194. package/dist/index.es80.js +0 -208
  195. package/dist/index.es81.js +0 -24
  196. package/dist/index.es82.js +0 -402
  197. package/dist/index.es83.js +0 -17
  198. package/dist/index.es84.js +0 -32
  199. package/dist/index.es85.js +0 -27
  200. package/dist/index.es86.js +0 -31
  201. package/dist/index.es87.js +0 -7
  202. package/dist/index.es88.js +0 -527
  203. package/dist/index.es89.js +0 -130
  204. package/dist/index.es9.js +0 -33
  205. package/dist/index.es90.js +0 -136
  206. package/dist/index.es91.js +0 -7
  207. package/dist/index.es92.js +0 -5
  208. package/dist/index.es93.js +0 -26
  209. package/dist/index.es94.js +0 -112
  210. package/dist/index.es95.js +0 -18
  211. package/dist/index.es96.js +0 -67
  212. package/dist/index.es97.js +0 -71
  213. package/dist/index.es98.js +0 -11
  214. package/dist/index.es99.js +0 -16
@@ -1,137 +0,0 @@
1
- import * as d from "react";
2
- import { useComposedRefs as R } from "./index.es46.js";
3
- import { Primitive as M } from "./index.es49.js";
4
- import { useCallbackRef as y } from "./index.es74.js";
5
- import { jsx as _ } from "react/jsx-runtime";
6
- var F = "focusScope.autoFocusOnMount", T = "focusScope.autoFocusOnUnmount", N = { bubbles: !1, cancelable: !0 }, K = "FocusScope", k = d.forwardRef((e, n) => {
7
- const {
8
- loop: t = !1,
9
- trapped: u = !1,
10
- onMountAutoFocus: p,
11
- onUnmountAutoFocus: L,
12
- ...g
13
- } = e, [o, U] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), A = R(n, (s) => U(s)), a = d.useRef({
14
- paused: !1,
15
- pause() {
16
- this.paused = !0;
17
- },
18
- resume() {
19
- this.paused = !1;
20
- }
21
- }).current;
22
- d.useEffect(() => {
23
- if (u) {
24
- let s = function(i) {
25
- if (a.paused || !o) return;
26
- const c = i.target;
27
- o.contains(c) ? b.current = c : f(b.current, { select: !0 });
28
- }, l = function(i) {
29
- if (a.paused || !o) return;
30
- const c = i.relatedTarget;
31
- c !== null && (o.contains(c) || f(b.current, { select: !0 }));
32
- }, r = function(i) {
33
- if (document.activeElement === document.body)
34
- for (const h of i)
35
- h.removedNodes.length > 0 && f(o);
36
- };
37
- document.addEventListener("focusin", s), document.addEventListener("focusout", l);
38
- const m = new MutationObserver(r);
39
- return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
40
- document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
41
- };
42
- }
43
- }, [u, o, a.paused]), d.useEffect(() => {
44
- if (o) {
45
- S.add(a);
46
- const s = document.activeElement;
47
- if (!o.contains(s)) {
48
- const r = new CustomEvent(F, N);
49
- o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(W(I(o)), { select: !0 }), document.activeElement === s && f(o));
50
- }
51
- return () => {
52
- o.removeEventListener(F, E), setTimeout(() => {
53
- const r = new CustomEvent(T, N);
54
- o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), S.remove(a);
55
- }, 0);
56
- };
57
- }
58
- }, [o, E, v, a]);
59
- const P = d.useCallback(
60
- (s) => {
61
- if (!t && !u || a.paused) return;
62
- const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
63
- if (l && r) {
64
- const m = s.currentTarget, [i, c] = x(m);
65
- i && c ? !s.shiftKey && r === c ? (s.preventDefault(), t && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), t && f(c, { select: !0 })) : r === m && s.preventDefault();
66
- }
67
- },
68
- [t, u, a.paused]
69
- );
70
- return /* @__PURE__ */ _(M.div, { tabIndex: -1, ...g, ref: A, onKeyDown: P });
71
- });
72
- k.displayName = K;
73
- function w(e, { select: n = !1 } = {}) {
74
- const t = document.activeElement;
75
- for (const u of e)
76
- if (f(u, { select: n }), document.activeElement !== t) return;
77
- }
78
- function x(e) {
79
- const n = I(e), t = O(n, e), u = O(n.reverse(), e);
80
- return [t, u];
81
- }
82
- function I(e) {
83
- const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
84
- acceptNode: (u) => {
85
- const p = u.tagName === "INPUT" && u.type === "hidden";
86
- return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
87
- }
88
- });
89
- for (; t.nextNode(); ) n.push(t.currentNode);
90
- return n;
91
- }
92
- function O(e, n) {
93
- for (const t of e)
94
- if (!D(t, { upTo: n })) return t;
95
- }
96
- function D(e, { upTo: n }) {
97
- if (getComputedStyle(e).visibility === "hidden") return !0;
98
- for (; e; ) {
99
- if (n !== void 0 && e === n) return !1;
100
- if (getComputedStyle(e).display === "none") return !0;
101
- e = e.parentElement;
102
- }
103
- return !1;
104
- }
105
- function H(e) {
106
- return e instanceof HTMLInputElement && "select" in e;
107
- }
108
- function f(e, { select: n = !1 } = {}) {
109
- if (e && e.focus) {
110
- const t = document.activeElement;
111
- e.focus({ preventScroll: !0 }), e !== t && H(e) && n && e.select();
112
- }
113
- }
114
- var S = V();
115
- function V() {
116
- let e = [];
117
- return {
118
- add(n) {
119
- const t = e[0];
120
- n !== t && (t == null || t.pause()), e = C(e, n), e.unshift(n);
121
- },
122
- remove(n) {
123
- var t;
124
- e = C(e, n), (t = e[0]) == null || t.resume();
125
- }
126
- };
127
- }
128
- function C(e, n) {
129
- const t = [...e], u = t.indexOf(n);
130
- return u !== -1 && t.splice(u, 1), t;
131
- }
132
- function W(e) {
133
- return e.filter((n) => n.tagName !== "A");
134
- }
135
- export {
136
- k as FocusScope
137
- };
@@ -1,221 +0,0 @@
1
- import * as p from "react";
2
- import { useFloating as xe, offset as Pe, shift as ye, flip as Ae, size as ve, arrow as Ce, hide as be, limitShift as Se } from "./index.es80.js";
3
- import { Root as Oe } from "./index.es81.js";
4
- import { useComposedRefs as j } from "./index.es46.js";
5
- import { createContextScope as Re } from "./index.es48.js";
6
- import { Primitive as z } from "./index.es49.js";
7
- import { useCallbackRef as Ee } from "./index.es74.js";
8
- import { useLayoutEffect as T } from "./index.es75.js";
9
- import { useSize as Ne } from "./index.es53.js";
10
- import { jsx as f } from "react/jsx-runtime";
11
- import { autoUpdate as _e } from "./index.es82.js";
12
- var N = "Popper", [L, Ue] = Re(N), [$e, Z] = L(N), U = (e) => {
13
- const { __scopePopper: s, children: a } = e, [t, i] = p.useState(null);
14
- return /* @__PURE__ */ f($e, { scope: s, anchor: t, onAnchorChange: i, children: a });
15
- };
16
- U.displayName = N;
17
- var q = "PopperAnchor", G = p.forwardRef(
18
- (e, s) => {
19
- const { __scopePopper: a, virtualRef: t, ...i } = e, r = Z(q, a), o = p.useRef(null), w = j(s, o), n = p.useRef(null);
20
- return p.useEffect(() => {
21
- const c = n.current;
22
- n.current = (t == null ? void 0 : t.current) || o.current, c !== n.current && r.onAnchorChange(n.current);
23
- }), t ? null : /* @__PURE__ */ f(z.div, { ...i, ref: w });
24
- }
25
- );
26
- G.displayName = q;
27
- var _ = "PopperContent", [He, We] = L(_), J = p.forwardRef(
28
- (e, s) => {
29
- var Y, M, X, D, F, k;
30
- const {
31
- __scopePopper: a,
32
- side: t = "bottom",
33
- sideOffset: i = 0,
34
- align: r = "center",
35
- alignOffset: o = 0,
36
- arrowPadding: w = 0,
37
- avoidCollisions: n = !0,
38
- collisionBoundary: c = [],
39
- collisionPadding: x = 0,
40
- sticky: m = "partial",
41
- hideWhenDetached: y = !1,
42
- updatePositionStrategy: A = "optimized",
43
- onPlaced: l,
44
- ...d
45
- } = e, v = Z(_, a), [h, C] = p.useState(null), ee = j(s, (P) => C(P)), [E, te] = p.useState(null), u = Ne(E), re = (u == null ? void 0 : u.width) ?? 0, $ = (u == null ? void 0 : u.height) ?? 0, oe = t + (r !== "center" ? "-" + r : ""), ne = typeof x == "number" ? x : { top: 0, right: 0, bottom: 0, left: 0, ...x }, H = Array.isArray(c) ? c : [c], ae = H.length > 0, b = {
46
- padding: ne,
47
- boundary: H.filter(Ye),
48
- // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
49
- altBoundary: ae
50
- }, { refs: ie, floatingStyles: W, placement: se, isPositioned: S, middlewareData: g } = xe({
51
- // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
52
- strategy: "fixed",
53
- placement: oe,
54
- whileElementsMounted: (...P) => _e(...P, {
55
- animationFrame: A === "always"
56
- }),
57
- elements: {
58
- reference: v.anchor
59
- },
60
- middleware: [
61
- Pe({ mainAxis: i + $, alignmentAxis: o }),
62
- n && ye({
63
- mainAxis: !0,
64
- crossAxis: !1,
65
- limiter: m === "partial" ? Se() : void 0,
66
- ...b
67
- }),
68
- n && Ae({ ...b }),
69
- ve({
70
- ...b,
71
- apply: ({ elements: P, rects: B, availableWidth: he, availableHeight: ue }) => {
72
- const { width: ge, height: we } = B.reference, R = P.floating.style;
73
- R.setProperty("--radix-popper-available-width", `${he}px`), R.setProperty("--radix-popper-available-height", `${ue}px`), R.setProperty("--radix-popper-anchor-width", `${ge}px`), R.setProperty("--radix-popper-anchor-height", `${we}px`);
74
- }
75
- }),
76
- E && Ce({ element: E, padding: w }),
77
- Me({ arrowWidth: re, arrowHeight: $ }),
78
- y && be({ strategy: "referenceHidden", ...b })
79
- ]
80
- }), [I, ce] = V(se), O = Ee(l);
81
- T(() => {
82
- S && (O == null || O());
83
- }, [S, O]);
84
- const pe = (Y = g.arrow) == null ? void 0 : Y.x, de = (M = g.arrow) == null ? void 0 : M.y, le = ((X = g.arrow) == null ? void 0 : X.centerOffset) !== 0, [fe, me] = p.useState();
85
- return T(() => {
86
- h && me(window.getComputedStyle(h).zIndex);
87
- }, [h]), /* @__PURE__ */ f(
88
- "div",
89
- {
90
- ref: ie.setFloating,
91
- "data-radix-popper-content-wrapper": "",
92
- style: {
93
- ...W,
94
- transform: S ? W.transform : "translate(0, -200%)",
95
- // keep off the page when measuring
96
- minWidth: "max-content",
97
- zIndex: fe,
98
- "--radix-popper-transform-origin": [
99
- (D = g.transformOrigin) == null ? void 0 : D.x,
100
- (F = g.transformOrigin) == null ? void 0 : F.y
101
- ].join(" "),
102
- // hide the content if using the hide middleware and should be hidden
103
- // set visibility to hidden and disable pointer events so the UI behaves
104
- // as if the PopperContent isn't there at all
105
- ...((k = g.hide) == null ? void 0 : k.referenceHidden) && {
106
- visibility: "hidden",
107
- pointerEvents: "none"
108
- }
109
- },
110
- dir: e.dir,
111
- children: /* @__PURE__ */ f(
112
- He,
113
- {
114
- scope: a,
115
- placedSide: I,
116
- onArrowChange: te,
117
- arrowX: pe,
118
- arrowY: de,
119
- shouldHideArrow: le,
120
- children: /* @__PURE__ */ f(
121
- z.div,
122
- {
123
- "data-side": I,
124
- "data-align": ce,
125
- ...d,
126
- ref: ee,
127
- style: {
128
- ...d.style,
129
- // if the PopperContent hasn't been placed yet (not all measurements done)
130
- // we prevent animations so that users's animation don't kick in too early referring wrong sides
131
- animation: S ? void 0 : "none"
132
- }
133
- }
134
- )
135
- }
136
- )
137
- }
138
- );
139
- }
140
- );
141
- J.displayName = _;
142
- var K = "PopperArrow", Ie = {
143
- top: "bottom",
144
- right: "left",
145
- bottom: "top",
146
- left: "right"
147
- }, Q = p.forwardRef(function(s, a) {
148
- const { __scopePopper: t, ...i } = s, r = We(K, t), o = Ie[r.placedSide];
149
- return (
150
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
151
- // doesn't report size as we'd expect on SVG elements.
152
- // it reports their bounding box which is effectively the largest path inside the SVG.
153
- /* @__PURE__ */ f(
154
- "span",
155
- {
156
- ref: r.onArrowChange,
157
- style: {
158
- position: "absolute",
159
- left: r.arrowX,
160
- top: r.arrowY,
161
- [o]: 0,
162
- transformOrigin: {
163
- top: "",
164
- right: "0 0",
165
- bottom: "center 0",
166
- left: "100% 0"
167
- }[r.placedSide],
168
- transform: {
169
- top: "translateY(100%)",
170
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
171
- bottom: "rotate(180deg)",
172
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
173
- }[r.placedSide],
174
- visibility: r.shouldHideArrow ? "hidden" : void 0
175
- },
176
- children: /* @__PURE__ */ f(
177
- Oe,
178
- {
179
- ...i,
180
- ref: a,
181
- style: {
182
- ...i.style,
183
- // ensures the element can be measured correctly (mostly for if SVG)
184
- display: "block"
185
- }
186
- }
187
- )
188
- }
189
- )
190
- );
191
- });
192
- Q.displayName = K;
193
- function Ye(e) {
194
- return e !== null;
195
- }
196
- var Me = (e) => ({
197
- name: "transformOrigin",
198
- options: e,
199
- fn(s) {
200
- var v, h, C;
201
- const { placement: a, rects: t, middlewareData: i } = s, o = ((v = i.arrow) == null ? void 0 : v.centerOffset) !== 0, w = o ? 0 : e.arrowWidth, n = o ? 0 : e.arrowHeight, [c, x] = V(a), m = { start: "0%", center: "50%", end: "100%" }[x], y = (((h = i.arrow) == null ? void 0 : h.x) ?? 0) + w / 2, A = (((C = i.arrow) == null ? void 0 : C.y) ?? 0) + n / 2;
202
- let l = "", d = "";
203
- return c === "bottom" ? (l = o ? m : `${y}px`, d = `${-n}px`) : c === "top" ? (l = o ? m : `${y}px`, d = `${t.floating.height + n}px`) : c === "right" ? (l = `${-n}px`, d = o ? m : `${A}px`) : c === "left" && (l = `${t.floating.width + n}px`, d = o ? m : `${A}px`), { data: { x: l, y: d } };
204
- }
205
- });
206
- function V(e) {
207
- const [s, a = "center"] = e.split("-");
208
- return [s, a];
209
- }
210
- var qe = U, Ge = G, Je = J, Ke = Q;
211
- export {
212
- Ge as Anchor,
213
- Ke as Arrow,
214
- Je as Content,
215
- U as Popper,
216
- G as PopperAnchor,
217
- Q as PopperArrow,
218
- J as PopperContent,
219
- qe as Root,
220
- Ue as createPopperScope
221
- };
@@ -1,16 +0,0 @@
1
- import * as r from "react";
2
- import s from "react-dom";
3
- import { Primitive as c } from "./index.es49.js";
4
- import { useLayoutEffect as u } from "./index.es75.js";
5
- import { jsx as l } from "react/jsx-runtime";
6
- var p = "Portal", d = r.forwardRef((e, a) => {
7
- var o;
8
- const { container: f, ...i } = e, [m, n] = r.useState(!1);
9
- u(() => n(!0), []);
10
- const t = f || m && ((o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body);
11
- return t ? s.createPortal(/* @__PURE__ */ l(c.div, { ...i, ref: a }), t) : null;
12
- });
13
- d.displayName = p;
14
- export {
15
- d as Portal
16
- };
@@ -1,50 +0,0 @@
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
- }
48
- export {
49
- b as createSlot
50
- };
@@ -1,52 +0,0 @@
1
- var S = function(r) {
2
- if (typeof document > "u")
3
- return null;
4
- var u = Array.isArray(r) ? r[0] : r;
5
- return u.ownerDocument.body;
6
- }, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
7
- return r && (r.host || W(r.parentNode));
8
- }, D = function(r, u) {
9
- return u.map(function(e) {
10
- if (r.contains(e))
11
- return e;
12
- var n = W(e);
13
- return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
14
- }).filter(function(e) {
15
- return !!e;
16
- });
17
- }, E = function(r, u, e, n) {
18
- var i = D(u, Array.isArray(r) ? r : [r]);
19
- p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
20
- var s = p[e], l = [], o = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
21
- !t || o.has(t) || (o.add(t), y(t.parentNode));
22
- };
23
- i.forEach(y);
24
- var A = function(t) {
25
- !t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
26
- if (o.has(a))
27
- A(a);
28
- else
29
- try {
30
- var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (s.get(a) || 0) + 1;
31
- f.set(a, d), s.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
32
- } catch (k) {
33
- console.error("aria-hidden: cannot operate on ", a, k);
34
- }
35
- });
36
- };
37
- return A(u), o.clear(), h++, function() {
38
- l.forEach(function(t) {
39
- var a = f.get(t) - 1, c = s.get(t) - 1;
40
- f.set(t, a), s.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
41
- }), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
42
- };
43
- }, C = function(r, u, e) {
44
- e === void 0 && (e = "data-aria-hidden");
45
- var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
46
- return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live], script"))), E(n, i, e, "aria-hidden")) : function() {
47
- return null;
48
- };
49
- };
50
- export {
51
- C as hideOthers
52
- };
@@ -1,11 +0,0 @@
1
- import { __assign as m } from "./index.es85.js";
2
- import * as r from "react";
3
- import { RemoveScroll as e } from "./index.es86.js";
4
- import t from "./index.es87.js";
5
- var s = r.forwardRef(function(a, o) {
6
- return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
7
- });
8
- s.classNames = e.classNames;
9
- export {
10
- s as default
11
- };
@@ -1,11 +0,0 @@
1
- import "react";
2
- import { jsx as e, Fragment as o } from "react/jsx-runtime";
3
- var l = Symbol("radix.slottable");
4
- // @__NO_SIDE_EFFECTS__
5
- function n(r) {
6
- const t = ({ children: a }) => /* @__PURE__ */ e(o, { children: a });
7
- return t.displayName = `${r}.Slottable`, t.__radixId = l, t;
8
- }
9
- export {
10
- n as createSlottable
11
- };
@@ -1,32 +0,0 @@
1
- import * as a from "react";
2
- import { Primitive as o } from "./index.es49.js";
3
- import { jsx as t } from "react/jsx-runtime";
4
- var d = Object.freeze({
5
- // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
6
- position: "absolute",
7
- border: 0,
8
- width: 1,
9
- height: 1,
10
- padding: 0,
11
- margin: -1,
12
- overflow: "hidden",
13
- clip: "rect(0, 0, 0, 0)",
14
- whiteSpace: "nowrap",
15
- wordWrap: "normal"
16
- }), l = "VisuallyHidden", e = a.forwardRef(
17
- (r, i) => /* @__PURE__ */ t(
18
- o.span,
19
- {
20
- ...r,
21
- ref: i,
22
- style: { ...d, ...r.style }
23
- }
24
- )
25
- );
26
- e.displayName = l;
27
- var p = e;
28
- export {
29
- p as Root,
30
- d as VISUALLY_HIDDEN_STYLES,
31
- e as VisuallyHidden
32
- };
@@ -1,11 +0,0 @@
1
- import "react";
2
- import { jsx as e, Fragment as o } from "react/jsx-runtime";
3
- var l = Symbol("radix.slottable");
4
- // @__NO_SIDE_EFFECTS__
5
- function n(r) {
6
- const t = ({ children: a }) => /* @__PURE__ */ e(o, { children: a });
7
- return t.displayName = `${r}.Slottable`, t.__radixId = l, t;
8
- }
9
- export {
10
- n as createSlottable
11
- };