@epilot/volt-ui 1.1.7-alpha.1 → 1.1.7

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 (217) hide show
  1. package/dist/index.cjs.js +51 -0
  2. package/dist/index.es.js +11823 -137
  3. package/dist/preflight.css +1 -241
  4. package/dist/style.css +1 -7393
  5. package/package.json +4 -1
  6. package/dist/components/button/index.d.ts +0 -1
  7. package/dist/index.es.js.map +0 -1
  8. package/dist/index.es10.js +0 -35
  9. package/dist/index.es10.js.map +0 -1
  10. package/dist/index.es100.js +0 -14
  11. package/dist/index.es100.js.map +0 -1
  12. package/dist/index.es101.js +0 -20
  13. package/dist/index.es101.js.map +0 -1
  14. package/dist/index.es102.js +0 -103
  15. package/dist/index.es102.js.map +0 -1
  16. package/dist/index.es103.js +0 -12
  17. package/dist/index.es103.js.map +0 -1
  18. package/dist/index.es104.js +0 -30
  19. package/dist/index.es104.js.map +0 -1
  20. package/dist/index.es105.js +0 -38
  21. package/dist/index.es105.js.map +0 -1
  22. package/dist/index.es106.js +0 -17
  23. package/dist/index.es106.js.map +0 -1
  24. package/dist/index.es107.js +0 -49
  25. package/dist/index.es107.js.map +0 -1
  26. package/dist/index.es108.js +0 -10
  27. package/dist/index.es108.js.map +0 -1
  28. package/dist/index.es11.js +0 -318
  29. package/dist/index.es11.js.map +0 -1
  30. package/dist/index.es12.js +0 -274
  31. package/dist/index.es12.js.map +0 -1
  32. package/dist/index.es13.js +0 -38
  33. package/dist/index.es13.js.map +0 -1
  34. package/dist/index.es14.js +0 -48
  35. package/dist/index.es14.js.map +0 -1
  36. package/dist/index.es15.js +0 -67
  37. package/dist/index.es15.js.map +0 -1
  38. package/dist/index.es16.js +0 -120
  39. package/dist/index.es16.js.map +0 -1
  40. package/dist/index.es17.js +0 -27
  41. package/dist/index.es17.js.map +0 -1
  42. package/dist/index.es18.js +0 -51
  43. package/dist/index.es18.js.map +0 -1
  44. package/dist/index.es19.js +0 -168
  45. package/dist/index.es19.js.map +0 -1
  46. package/dist/index.es20.js +0 -55
  47. package/dist/index.es20.js.map +0 -1
  48. package/dist/index.es21.js +0 -61
  49. package/dist/index.es21.js.map +0 -1
  50. package/dist/index.es22.js +0 -86
  51. package/dist/index.es22.js.map +0 -1
  52. package/dist/index.es23.js +0 -195
  53. package/dist/index.es23.js.map +0 -1
  54. package/dist/index.es24.js +0 -105
  55. package/dist/index.es24.js.map +0 -1
  56. package/dist/index.es25.js +0 -146
  57. package/dist/index.es25.js.map +0 -1
  58. package/dist/index.es26.js +0 -92
  59. package/dist/index.es26.js.map +0 -1
  60. package/dist/index.es27.js +0 -80
  61. package/dist/index.es27.js.map +0 -1
  62. package/dist/index.es28.js +0 -94
  63. package/dist/index.es28.js.map +0 -1
  64. package/dist/index.es29.js +0 -82
  65. package/dist/index.es29.js.map +0 -1
  66. package/dist/index.es30.js +0 -1087
  67. package/dist/index.es30.js.map +0 -1
  68. package/dist/index.es31.js +0 -18
  69. package/dist/index.es31.js.map +0 -1
  70. package/dist/index.es32.js +0 -3015
  71. package/dist/index.es32.js.map +0 -1
  72. package/dist/index.es33.js +0 -107
  73. package/dist/index.es33.js.map +0 -1
  74. package/dist/index.es34.js +0 -46
  75. package/dist/index.es34.js.map +0 -1
  76. package/dist/index.es35.js +0 -151
  77. package/dist/index.es35.js.map +0 -1
  78. package/dist/index.es36.js +0 -1200
  79. package/dist/index.es36.js.map +0 -1
  80. package/dist/index.es37.js +0 -27
  81. package/dist/index.es37.js.map +0 -1
  82. package/dist/index.es38.js +0 -493
  83. package/dist/index.es38.js.map +0 -1
  84. package/dist/index.es39.js +0 -156
  85. package/dist/index.es39.js.map +0 -1
  86. package/dist/index.es4.js +0 -9
  87. package/dist/index.es4.js.map +0 -1
  88. package/dist/index.es40.js +0 -31
  89. package/dist/index.es40.js.map +0 -1
  90. package/dist/index.es41.js +0 -314
  91. package/dist/index.es41.js.map +0 -1
  92. package/dist/index.es42.js +0 -343
  93. package/dist/index.es42.js.map +0 -1
  94. package/dist/index.es43.js +0 -280
  95. package/dist/index.es43.js.map +0 -1
  96. package/dist/index.es44.js +0 -289
  97. package/dist/index.es44.js.map +0 -1
  98. package/dist/index.es45.js +0 -319
  99. package/dist/index.es45.js.map +0 -1
  100. package/dist/index.es46.js +0 -167
  101. package/dist/index.es46.js.map +0 -1
  102. package/dist/index.es47.js +0 -195
  103. package/dist/index.es47.js.map +0 -1
  104. package/dist/index.es48.js +0 -40
  105. package/dist/index.es48.js.map +0 -1
  106. package/dist/index.es49.js +0 -40
  107. package/dist/index.es49.js.map +0 -1
  108. package/dist/index.es5.js +0 -57
  109. package/dist/index.es5.js.map +0 -1
  110. package/dist/index.es50.js +0 -12
  111. package/dist/index.es50.js.map +0 -1
  112. package/dist/index.es51.js +0 -82
  113. package/dist/index.es51.js.map +0 -1
  114. package/dist/index.es52.js +0 -72
  115. package/dist/index.es52.js.map +0 -1
  116. package/dist/index.es53.js +0 -15
  117. package/dist/index.es53.js.map +0 -1
  118. package/dist/index.es54.js +0 -40
  119. package/dist/index.es54.js.map +0 -1
  120. package/dist/index.es55.js +0 -44
  121. package/dist/index.es55.js.map +0 -1
  122. package/dist/index.es56.js +0 -71
  123. package/dist/index.es56.js.map +0 -1
  124. package/dist/index.es57.js +0 -152
  125. package/dist/index.es57.js.map +0 -1
  126. package/dist/index.es58.js +0 -15
  127. package/dist/index.es58.js.map +0 -1
  128. package/dist/index.es59.js +0 -11
  129. package/dist/index.es59.js.map +0 -1
  130. package/dist/index.es6.js +0 -77
  131. package/dist/index.es6.js.map +0 -1
  132. package/dist/index.es60.js +0 -130
  133. package/dist/index.es60.js.map +0 -1
  134. package/dist/index.es61.js +0 -213
  135. package/dist/index.es61.js.map +0 -1
  136. package/dist/index.es62.js +0 -294
  137. package/dist/index.es62.js.map +0 -1
  138. package/dist/index.es63.js +0 -16
  139. package/dist/index.es63.js.map +0 -1
  140. package/dist/index.es64.js +0 -37
  141. package/dist/index.es64.js.map +0 -1
  142. package/dist/index.es65.js +0 -228
  143. package/dist/index.es65.js.map +0 -1
  144. package/dist/index.es66.js +0 -209
  145. package/dist/index.es66.js.map +0 -1
  146. package/dist/index.es67.js +0 -19
  147. package/dist/index.es67.js.map +0 -1
  148. package/dist/index.es68.js +0 -30
  149. package/dist/index.es68.js.map +0 -1
  150. package/dist/index.es69.js +0 -12
  151. package/dist/index.es69.js.map +0 -1
  152. package/dist/index.es7.js +0 -200
  153. package/dist/index.es7.js.map +0 -1
  154. package/dist/index.es70.js +0 -123
  155. package/dist/index.es70.js.map +0 -1
  156. package/dist/index.es71.js +0 -90
  157. package/dist/index.es71.js.map +0 -1
  158. package/dist/index.es72.js +0 -7
  159. package/dist/index.es72.js.map +0 -1
  160. package/dist/index.es73.js +0 -90
  161. package/dist/index.es73.js.map +0 -1
  162. package/dist/index.es74.js +0 -15
  163. package/dist/index.es74.js.map +0 -1
  164. package/dist/index.es75.js +0 -7
  165. package/dist/index.es75.js.map +0 -1
  166. package/dist/index.es76.js +0 -40
  167. package/dist/index.es76.js.map +0 -1
  168. package/dist/index.es77.js +0 -90
  169. package/dist/index.es77.js.map +0 -1
  170. package/dist/index.es78.js +0 -313
  171. package/dist/index.es78.js.map +0 -1
  172. package/dist/index.es79.js +0 -16
  173. package/dist/index.es79.js.map +0 -1
  174. package/dist/index.es8.js +0 -47
  175. package/dist/index.es8.js.map +0 -1
  176. package/dist/index.es80.js +0 -90
  177. package/dist/index.es80.js.map +0 -1
  178. package/dist/index.es81.js +0 -18
  179. package/dist/index.es81.js.map +0 -1
  180. package/dist/index.es82.js +0 -298
  181. package/dist/index.es82.js.map +0 -1
  182. package/dist/index.es83.js +0 -26
  183. package/dist/index.es83.js.map +0 -1
  184. package/dist/index.es84.js +0 -626
  185. package/dist/index.es84.js.map +0 -1
  186. package/dist/index.es85.js +0 -19
  187. package/dist/index.es85.js.map +0 -1
  188. package/dist/index.es86.js +0 -40
  189. package/dist/index.es86.js.map +0 -1
  190. package/dist/index.es87.js +0 -40
  191. package/dist/index.es87.js.map +0 -1
  192. package/dist/index.es88.js +0 -39
  193. package/dist/index.es88.js.map +0 -1
  194. package/dist/index.es89.js +0 -8
  195. package/dist/index.es89.js.map +0 -1
  196. package/dist/index.es9.js +0 -37
  197. package/dist/index.es9.js.map +0 -1
  198. package/dist/index.es90.js +0 -722
  199. package/dist/index.es90.js.map +0 -1
  200. package/dist/index.es91.js +0 -155
  201. package/dist/index.es91.js.map +0 -1
  202. package/dist/index.es92.js +0 -174
  203. package/dist/index.es92.js.map +0 -1
  204. package/dist/index.es93.js +0 -11
  205. package/dist/index.es93.js.map +0 -1
  206. package/dist/index.es94.js +0 -6
  207. package/dist/index.es94.js.map +0 -1
  208. package/dist/index.es95.js +0 -36
  209. package/dist/index.es95.js.map +0 -1
  210. package/dist/index.es96.js +0 -175
  211. package/dist/index.es96.js.map +0 -1
  212. package/dist/index.es97.js +0 -22
  213. package/dist/index.es97.js.map +0 -1
  214. package/dist/index.es98.js +0 -89
  215. package/dist/index.es98.js.map +0 -1
  216. package/dist/index.es99.js +0 -48
  217. package/dist/index.es99.js.map +0 -1
@@ -1,313 +0,0 @@
1
- import { a as W } from "./index.es85.js";
2
- import { Root, Portal, Overlay, Content } from "./index.es42.js";
3
- import * as React from "react";
4
- import { Primitive } from "./index.es86.js";
5
- import { useId } from "./index.es58.js";
6
- import { composeRefs } from "./index.es48.js";
7
- var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-heading=""]', le = '[cmdk-item=""]', ce = `${le}:not([aria-disabled="true"])`, Z = "cmdk-item-select", T = "data-value", Re = (r, o, n) => W(r, o, n), ue = React.createContext(void 0), K = () => React.useContext(ue), de = React.createContext(void 0), ee = () => React.useContext(de), fe = React.createContext(void 0), me = React.forwardRef((r, o) => {
8
- let n = L(() => {
9
- var e, a;
10
- return { search: "", value: (a = (e = r.value) != null ? e : r.defaultValue) != null ? a : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
11
- }), u = L(() => /* @__PURE__ */ new Set()), c = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Map()), f = L(() => /* @__PURE__ */ new Set()), p = pe(r), { label: b, children: m, value: R, onValueChange: x, filter: C, shouldFilter: S, loop: A, disablePointerSelection: ge = false, vimBindings: j = true, ...O } = r, $ = useId(), q = useId(), _ = useId(), I = React.useRef(null), v = ke();
12
- k(() => {
13
- if (R !== void 0) {
14
- let e = R.trim();
15
- n.current.value = e, E.emit();
16
- }
17
- }, [R]), k(() => {
18
- v(6, ne);
19
- }, []);
20
- let E = React.useMemo(() => ({ subscribe: (e) => (f.current.add(e), () => f.current.delete(e)), snapshot: () => n.current, setState: (e, a, s) => {
21
- var i, l, g, y;
22
- if (!Object.is(n.current[e], a)) {
23
- if (n.current[e] = a, e === "search") J(), z(), v(1, W2);
24
- else if (e === "value") {
25
- if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
26
- let h = document.getElementById(_);
27
- h ? h.focus() : (i = document.getElementById($)) == null || i.focus();
28
- }
29
- if (v(7, () => {
30
- var h;
31
- n.current.selectedItemId = (h = M()) == null ? void 0 : h.id, E.emit();
32
- }), s || v(5, ne), ((l = p.current) == null ? void 0 : l.value) !== void 0) {
33
- let h = a != null ? a : "";
34
- (y = (g = p.current).onValueChange) == null || y.call(g, h);
35
- return;
36
- }
37
- }
38
- E.emit();
39
- }
40
- }, emit: () => {
41
- f.current.forEach((e) => e());
42
- } }), []), U = React.useMemo(() => ({ value: (e, a, s) => {
43
- var i;
44
- a !== ((i = d.current.get(e)) == null ? void 0 : i.value) && (d.current.set(e, { value: a, keywords: s }), n.current.filtered.items.set(e, te(a, s)), v(2, () => {
45
- z(), E.emit();
46
- }));
47
- }, item: (e, a) => (u.current.add(e), a && (c.current.has(a) ? c.current.get(a).add(e) : c.current.set(a, /* @__PURE__ */ new Set([e]))), v(3, () => {
48
- J(), z(), n.current.value || W2(), E.emit();
49
- }), () => {
50
- d.current.delete(e), u.current.delete(e), n.current.filtered.items.delete(e);
51
- let s = M();
52
- v(4, () => {
53
- J(), (s == null ? void 0 : s.getAttribute("id")) === e && W2(), E.emit();
54
- });
55
- }), group: (e) => (c.current.has(e) || c.current.set(e, /* @__PURE__ */ new Set()), () => {
56
- d.current.delete(e), c.current.delete(e);
57
- }), filter: () => p.current.shouldFilter, label: b || r["aria-label"], getDisablePointerSelection: () => p.current.disablePointerSelection, listId: $, inputId: _, labelId: q, listInnerRef: I }), []);
58
- function te(e, a) {
59
- var i, l;
60
- let s = (l = (i = p.current) == null ? void 0 : i.filter) != null ? l : Re;
61
- return e ? s(e, n.current.search, a) : 0;
62
- }
63
- function z() {
64
- if (!n.current.search || p.current.shouldFilter === false) return;
65
- let e = n.current.filtered.items, a = [];
66
- n.current.filtered.groups.forEach((i) => {
67
- let l = c.current.get(i), g = 0;
68
- l.forEach((y) => {
69
- let h = e.get(y);
70
- g = Math.max(h, g);
71
- }), a.push([i, g]);
72
- });
73
- let s = I.current;
74
- V().sort((i, l) => {
75
- var h, F;
76
- let g = i.getAttribute("id"), y = l.getAttribute("id");
77
- return ((h = e.get(y)) != null ? h : 0) - ((F = e.get(g)) != null ? F : 0);
78
- }).forEach((i) => {
79
- let l = i.closest(Y);
80
- l ? l.appendChild(i.parentElement === l ? i : i.closest(`${Y} > *`)) : s.appendChild(i.parentElement === s ? i : i.closest(`${Y} > *`));
81
- }), a.sort((i, l) => l[1] - i[1]).forEach((i) => {
82
- var g;
83
- let l = (g = I.current) == null ? void 0 : g.querySelector(`${N}[${T}="${encodeURIComponent(i[0])}"]`);
84
- l == null || l.parentElement.appendChild(l);
85
- });
86
- }
87
- function W2() {
88
- let e = V().find((s) => s.getAttribute("aria-disabled") !== "true"), a = e == null ? void 0 : e.getAttribute(T);
89
- E.setState("value", a || void 0);
90
- }
91
- function J() {
92
- var a, s, i, l;
93
- if (!n.current.search || p.current.shouldFilter === false) {
94
- n.current.filtered.count = u.current.size;
95
- return;
96
- }
97
- n.current.filtered.groups = /* @__PURE__ */ new Set();
98
- let e = 0;
99
- for (let g of u.current) {
100
- let y = (s = (a = d.current.get(g)) == null ? void 0 : a.value) != null ? s : "", h = (l = (i = d.current.get(g)) == null ? void 0 : i.keywords) != null ? l : [], F = te(y, h);
101
- n.current.filtered.items.set(g, F), F > 0 && e++;
102
- }
103
- for (let [g, y] of c.current) for (let h of y) if (n.current.filtered.items.get(h) > 0) {
104
- n.current.filtered.groups.add(g);
105
- break;
106
- }
107
- n.current.filtered.count = e;
108
- }
109
- function ne() {
110
- var a, s, i;
111
- let e = M();
112
- e && (((a = e.parentElement) == null ? void 0 : a.firstChild) === e && ((i = (s = e.closest(N)) == null ? void 0 : s.querySelector(be)) == null || i.scrollIntoView({ block: "nearest" })), e.scrollIntoView({ block: "nearest" }));
113
- }
114
- function M() {
115
- var e;
116
- return (e = I.current) == null ? void 0 : e.querySelector(`${le}[aria-selected="true"]`);
117
- }
118
- function V() {
119
- var e;
120
- return Array.from(((e = I.current) == null ? void 0 : e.querySelectorAll(ce)) || []);
121
- }
122
- function X(e) {
123
- let s = V()[e];
124
- s && E.setState("value", s.getAttribute(T));
125
- }
126
- function Q(e) {
127
- var g;
128
- let a = M(), s = V(), i = s.findIndex((y) => y === a), l = s[i + e];
129
- (g = p.current) != null && g.loop && (l = i + e < 0 ? s[s.length - 1] : i + e === s.length ? s[0] : s[i + e]), l && E.setState("value", l.getAttribute(T));
130
- }
131
- function re(e) {
132
- let a = M(), s = a == null ? void 0 : a.closest(N), i;
133
- for (; s && !i; ) s = e > 0 ? we(s, N) : De(s, N), i = s == null ? void 0 : s.querySelector(ce);
134
- i ? E.setState("value", i.getAttribute(T)) : Q(e);
135
- }
136
- let oe = () => X(V().length - 1), ie = (e) => {
137
- e.preventDefault(), e.metaKey ? oe() : e.altKey ? re(1) : Q(1);
138
- }, se = (e) => {
139
- e.preventDefault(), e.metaKey ? X(0) : e.altKey ? re(-1) : Q(-1);
140
- };
141
- return React.createElement(Primitive.div, { ref: o, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e) => {
142
- var s;
143
- (s = O.onKeyDown) == null || s.call(O, e);
144
- let a = e.nativeEvent.isComposing || e.keyCode === 229;
145
- if (!(e.defaultPrevented || a)) switch (e.key) {
146
- case "n":
147
- case "j": {
148
- j && e.ctrlKey && ie(e);
149
- break;
150
- }
151
- case "ArrowDown": {
152
- ie(e);
153
- break;
154
- }
155
- case "p":
156
- case "k": {
157
- j && e.ctrlKey && se(e);
158
- break;
159
- }
160
- case "ArrowUp": {
161
- se(e);
162
- break;
163
- }
164
- case "Home": {
165
- e.preventDefault(), X(0);
166
- break;
167
- }
168
- case "End": {
169
- e.preventDefault(), oe();
170
- break;
171
- }
172
- case "Enter": {
173
- e.preventDefault();
174
- let i = M();
175
- if (i) {
176
- let l = new Event(Z);
177
- i.dispatchEvent(l);
178
- }
179
- }
180
- }
181
- } }, React.createElement("label", { "cmdk-label": "", htmlFor: U.inputId, id: U.labelId, style: Te }, b), B(r, (e) => React.createElement(de.Provider, { value: E }, React.createElement(ue.Provider, { value: U }, e))));
182
- }), he = React.forwardRef((r, o) => {
183
- var _, I;
184
- let n = useId(), u = React.useRef(null), c = React.useContext(fe), d = K(), f = pe(r), p = (I = (_ = f.current) == null ? void 0 : _.forceMount) != null ? I : c == null ? void 0 : c.forceMount;
185
- k(() => {
186
- if (!p) return d.item(n, c == null ? void 0 : c.id);
187
- }, [p]);
188
- let b = ve(n, u, [r.value, r.children, u], r.keywords), m = ee(), R = P((v) => v.value && v.value === b.current), x = P((v) => p || d.filter() === false ? true : v.search ? v.filtered.items.get(n) > 0 : true);
189
- React.useEffect(() => {
190
- let v = u.current;
191
- if (!(!v || r.disabled)) return v.addEventListener(Z, C), () => v.removeEventListener(Z, C);
192
- }, [x, r.onSelect, r.disabled]);
193
- function C() {
194
- var v, E;
195
- S(), (E = (v = f.current).onSelect) == null || E.call(v, b.current);
196
- }
197
- function S() {
198
- m.setState("value", b.current, true);
199
- }
200
- if (!x) return null;
201
- let { disabled: A, value: ge, onSelect: j, forceMount: O, keywords: $, ...q } = r;
202
- return React.createElement(Primitive.div, { ref: composeRefs(u, o), ...q, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d.getDisablePointerSelection() ? void 0 : S, onClick: A ? void 0 : C }, r.children);
203
- }), Ee = React.forwardRef((r, o) => {
204
- let { heading: n, children: u, forceMount: c, ...d } = r, f = useId(), p = React.useRef(null), b = React.useRef(null), m = useId(), R = K(), x = P((S) => c || R.filter() === false ? true : S.search ? S.filtered.groups.has(f) : true);
205
- k(() => R.group(f), []), ve(f, p, [r.value, r.heading, b]);
206
- let C = React.useMemo(() => ({ id: f, forceMount: c }), [c]);
207
- return React.createElement(Primitive.div, { ref: composeRefs(p, o), ...d, "cmdk-group": "", role: "presentation", hidden: x ? void 0 : true }, n && React.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": true, id: m }, n), B(r, (S) => React.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? m : void 0 }, React.createElement(fe.Provider, { value: C }, S))));
208
- }), ye = React.forwardRef((r, o) => {
209
- let { alwaysRender: n, ...u } = r, c = React.useRef(null), d = P((f) => !f.search);
210
- return !n && !d ? null : React.createElement(Primitive.div, { ref: composeRefs(c, o), ...u, "cmdk-separator": "", role: "separator" });
211
- }), Se = React.forwardRef((r, o) => {
212
- let { onValueChange: n, ...u } = r, c = r.value != null, d = ee(), f = P((m) => m.search), p = P((m) => m.selectedItemId), b = K();
213
- return React.useEffect(() => {
214
- r.value != null && d.setState("search", r.value);
215
- }, [r.value]), React.createElement(Primitive.input, { ref: o, ...u, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": p, id: b.inputId, type: "text", value: c ? r.value : f, onChange: (m) => {
216
- c || d.setState("search", m.target.value), n == null || n(m.target.value);
217
- } });
218
- }), Ce = React.forwardRef((r, o) => {
219
- let { children: n, label: u = "Suggestions", ...c } = r, d = React.useRef(null), f = React.useRef(null), p = P((m) => m.selectedItemId), b = K();
220
- return React.useEffect(() => {
221
- if (f.current && d.current) {
222
- let m = f.current, R = d.current, x, C = new ResizeObserver(() => {
223
- x = requestAnimationFrame(() => {
224
- let S = m.offsetHeight;
225
- R.style.setProperty("--cmdk-list-height", S.toFixed(1) + "px");
226
- });
227
- });
228
- return C.observe(m), () => {
229
- cancelAnimationFrame(x), C.unobserve(m);
230
- };
231
- }
232
- }, []), React.createElement(Primitive.div, { ref: composeRefs(d, o), ...c, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p, "aria-label": u, id: b.listId }, B(r, (m) => React.createElement("div", { ref: composeRefs(f, b.listInnerRef), "cmdk-list-sizer": "" }, m)));
233
- }), xe = React.forwardRef((r, o) => {
234
- let { open: n, onOpenChange: u, overlayClassName: c, contentClassName: d, container: f, ...p } = r;
235
- return React.createElement(Root, { open: n, onOpenChange: u }, React.createElement(Portal, { container: f }, React.createElement(Overlay, { "cmdk-overlay": "", className: c }), React.createElement(Content, { "aria-label": r.label, "cmdk-dialog": "", className: d }, React.createElement(me, { ref: o, ...p }))));
236
- }), Ie = React.forwardRef((r, o) => P((u) => u.filtered.count === 0) ? React.createElement(Primitive.div, { ref: o, ...r, "cmdk-empty": "", role: "presentation" }) : null), Pe = React.forwardRef((r, o) => {
237
- let { progress: n, children: u, label: c = "Loading...", ...d } = r;
238
- return React.createElement(Primitive.div, { ref: o, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c }, B(r, (f) => React.createElement("div", { "aria-hidden": true }, f)));
239
- }), _e = Object.assign(me, { List: Ce, Item: he, Input: Se, Group: Ee, Separator: ye, Dialog: xe, Empty: Ie, Loading: Pe });
240
- function we(r, o) {
241
- let n = r.nextElementSibling;
242
- for (; n; ) {
243
- if (n.matches(o)) return n;
244
- n = n.nextElementSibling;
245
- }
246
- }
247
- function De(r, o) {
248
- let n = r.previousElementSibling;
249
- for (; n; ) {
250
- if (n.matches(o)) return n;
251
- n = n.previousElementSibling;
252
- }
253
- }
254
- function pe(r) {
255
- let o = React.useRef(r);
256
- return k(() => {
257
- o.current = r;
258
- }), o;
259
- }
260
- var k = typeof window == "undefined" ? React.useEffect : React.useLayoutEffect;
261
- function L(r) {
262
- let o = React.useRef();
263
- return o.current === void 0 && (o.current = r()), o;
264
- }
265
- function P(r) {
266
- let o = ee(), n = () => r(o.snapshot());
267
- return React.useSyncExternalStore(o.subscribe, n, n);
268
- }
269
- function ve(r, o, n, u = []) {
270
- let c = React.useRef(), d = K();
271
- return k(() => {
272
- var b;
273
- let f = (() => {
274
- var m;
275
- for (let R of n) {
276
- if (typeof R == "string") return R.trim();
277
- if (typeof R == "object" && "current" in R) return R.current ? (m = R.current.textContent) == null ? void 0 : m.trim() : c.current;
278
- }
279
- })(), p = u.map((m) => m.trim());
280
- d.value(r, f, p), (b = o.current) == null || b.setAttribute(T, f), c.current = f;
281
- }), c;
282
- }
283
- var ke = () => {
284
- let [r, o] = React.useState(), n = L(() => /* @__PURE__ */ new Map());
285
- return k(() => {
286
- n.current.forEach((u) => u()), n.current = /* @__PURE__ */ new Map();
287
- }, [r]), (u, c) => {
288
- n.current.set(u, c), o({});
289
- };
290
- };
291
- function Me(r) {
292
- let o = r.type;
293
- return typeof o == "function" ? o(r.props) : "render" in o ? o.render(r.props) : r;
294
- }
295
- function B({ asChild: r, children: o }, n) {
296
- return r && React.isValidElement(o) ? React.cloneElement(Me(o), { ref: o.ref }, n(o.props.children)) : n(o);
297
- }
298
- var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
299
- export {
300
- _e as Command,
301
- xe as CommandDialog,
302
- Ie as CommandEmpty,
303
- Ee as CommandGroup,
304
- Se as CommandInput,
305
- he as CommandItem,
306
- Ce as CommandList,
307
- Pe as CommandLoading,
308
- me as CommandRoot,
309
- ye as CommandSeparator,
310
- Re as defaultFilter,
311
- P as useCommandState
312
- };
313
- //# sourceMappingURL=index.es78.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es78.js","sources":["../docs/node_modules/.bun/cmdk@1.1.1+98e41321d0e6b3fa/node_modules/cmdk/dist/index.mjs"],"sourcesContent":["\"use client\";import{a as ae}from\"./chunk-NZJY6EH4.mjs\";import*as w from\"@radix-ui/react-dialog\";import*as t from\"react\";import{Primitive as D}from\"@radix-ui/react-primitive\";import{useId as H}from\"@radix-ui/react-id\";import{composeRefs as G}from\"@radix-ui/react-compose-refs\";var N='[cmdk-group=\"\"]',Y='[cmdk-group-items=\"\"]',be='[cmdk-group-heading=\"\"]',le='[cmdk-item=\"\"]',ce=`${le}:not([aria-disabled=\"true\"])`,Z=\"cmdk-item-select\",T=\"data-value\",Re=(r,o,n)=>ae(r,o,n),ue=t.createContext(void 0),K=()=>t.useContext(ue),de=t.createContext(void 0),ee=()=>t.useContext(de),fe=t.createContext(void 0),me=t.forwardRef((r,o)=>{let n=L(()=>{var e,a;return{search:\"\",value:(a=(e=r.value)!=null?e:r.defaultValue)!=null?a:\"\",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),u=L(()=>new Set),c=L(()=>new Map),d=L(()=>new Map),f=L(()=>new Set),p=pe(r),{label:b,children:m,value:R,onValueChange:x,filter:C,shouldFilter:S,loop:A,disablePointerSelection:ge=!1,vimBindings:j=!0,...O}=r,$=H(),q=H(),_=H(),I=t.useRef(null),v=ke();k(()=>{if(R!==void 0){let e=R.trim();n.current.value=e,E.emit()}},[R]),k(()=>{v(6,ne)},[]);let E=t.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>n.current,setState:(e,a,s)=>{var i,l,g,y;if(!Object.is(n.current[e],a)){if(n.current[e]=a,e===\"search\")J(),z(),v(1,W);else if(e===\"value\"){if(document.activeElement.hasAttribute(\"cmdk-input\")||document.activeElement.hasAttribute(\"cmdk-root\")){let h=document.getElementById(_);h?h.focus():(i=document.getElementById($))==null||i.focus()}if(v(7,()=>{var h;n.current.selectedItemId=(h=M())==null?void 0:h.id,E.emit()}),s||v(5,ne),((l=p.current)==null?void 0:l.value)!==void 0){let h=a!=null?a:\"\";(y=(g=p.current).onValueChange)==null||y.call(g,h);return}}E.emit()}},emit:()=>{f.current.forEach(e=>e())}}),[]),U=t.useMemo(()=>({value:(e,a,s)=>{var i;a!==((i=d.current.get(e))==null?void 0:i.value)&&(d.current.set(e,{value:a,keywords:s}),n.current.filtered.items.set(e,te(a,s)),v(2,()=>{z(),E.emit()}))},item:(e,a)=>(u.current.add(e),a&&(c.current.has(a)?c.current.get(a).add(e):c.current.set(a,new Set([e]))),v(3,()=>{J(),z(),n.current.value||W(),E.emit()}),()=>{d.current.delete(e),u.current.delete(e),n.current.filtered.items.delete(e);let s=M();v(4,()=>{J(),(s==null?void 0:s.getAttribute(\"id\"))===e&&W(),E.emit()})}),group:e=>(c.current.has(e)||c.current.set(e,new Set),()=>{d.current.delete(e),c.current.delete(e)}),filter:()=>p.current.shouldFilter,label:b||r[\"aria-label\"],getDisablePointerSelection:()=>p.current.disablePointerSelection,listId:$,inputId:_,labelId:q,listInnerRef:I}),[]);function te(e,a){var i,l;let s=(l=(i=p.current)==null?void 0:i.filter)!=null?l:Re;return e?s(e,n.current.search,a):0}function z(){if(!n.current.search||p.current.shouldFilter===!1)return;let e=n.current.filtered.items,a=[];n.current.filtered.groups.forEach(i=>{let l=c.current.get(i),g=0;l.forEach(y=>{let h=e.get(y);g=Math.max(h,g)}),a.push([i,g])});let s=I.current;V().sort((i,l)=>{var h,F;let g=i.getAttribute(\"id\"),y=l.getAttribute(\"id\");return((h=e.get(y))!=null?h:0)-((F=e.get(g))!=null?F:0)}).forEach(i=>{let l=i.closest(Y);l?l.appendChild(i.parentElement===l?i:i.closest(`${Y} > *`)):s.appendChild(i.parentElement===s?i:i.closest(`${Y} > *`))}),a.sort((i,l)=>l[1]-i[1]).forEach(i=>{var g;let l=(g=I.current)==null?void 0:g.querySelector(`${N}[${T}=\"${encodeURIComponent(i[0])}\"]`);l==null||l.parentElement.appendChild(l)})}function W(){let e=V().find(s=>s.getAttribute(\"aria-disabled\")!==\"true\"),a=e==null?void 0:e.getAttribute(T);E.setState(\"value\",a||void 0)}function J(){var a,s,i,l;if(!n.current.search||p.current.shouldFilter===!1){n.current.filtered.count=u.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let g of u.current){let y=(s=(a=d.current.get(g))==null?void 0:a.value)!=null?s:\"\",h=(l=(i=d.current.get(g))==null?void 0:i.keywords)!=null?l:[],F=te(y,h);n.current.filtered.items.set(g,F),F>0&&e++}for(let[g,y]of c.current)for(let h of y)if(n.current.filtered.items.get(h)>0){n.current.filtered.groups.add(g);break}n.current.filtered.count=e}function ne(){var a,s,i;let e=M();e&&(((a=e.parentElement)==null?void 0:a.firstChild)===e&&((i=(s=e.closest(N))==null?void 0:s.querySelector(be))==null||i.scrollIntoView({block:\"nearest\"})),e.scrollIntoView({block:\"nearest\"}))}function M(){var e;return(e=I.current)==null?void 0:e.querySelector(`${le}[aria-selected=\"true\"]`)}function V(){var e;return Array.from(((e=I.current)==null?void 0:e.querySelectorAll(ce))||[])}function X(e){let s=V()[e];s&&E.setState(\"value\",s.getAttribute(T))}function Q(e){var g;let a=M(),s=V(),i=s.findIndex(y=>y===a),l=s[i+e];(g=p.current)!=null&&g.loop&&(l=i+e<0?s[s.length-1]:i+e===s.length?s[0]:s[i+e]),l&&E.setState(\"value\",l.getAttribute(T))}function re(e){let a=M(),s=a==null?void 0:a.closest(N),i;for(;s&&!i;)s=e>0?we(s,N):De(s,N),i=s==null?void 0:s.querySelector(ce);i?E.setState(\"value\",i.getAttribute(T)):Q(e)}let oe=()=>X(V().length-1),ie=e=>{e.preventDefault(),e.metaKey?oe():e.altKey?re(1):Q(1)},se=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?re(-1):Q(-1)};return t.createElement(D.div,{ref:o,tabIndex:-1,...O,\"cmdk-root\":\"\",onKeyDown:e=>{var s;(s=O.onKeyDown)==null||s.call(O,e);let a=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||a))switch(e.key){case\"n\":case\"j\":{j&&e.ctrlKey&&ie(e);break}case\"ArrowDown\":{ie(e);break}case\"p\":case\"k\":{j&&e.ctrlKey&&se(e);break}case\"ArrowUp\":{se(e);break}case\"Home\":{e.preventDefault(),X(0);break}case\"End\":{e.preventDefault(),oe();break}case\"Enter\":{e.preventDefault();let i=M();if(i){let l=new Event(Z);i.dispatchEvent(l)}}}}},t.createElement(\"label\",{\"cmdk-label\":\"\",htmlFor:U.inputId,id:U.labelId,style:Te},b),B(r,e=>t.createElement(de.Provider,{value:E},t.createElement(ue.Provider,{value:U},e))))}),he=t.forwardRef((r,o)=>{var _,I;let n=H(),u=t.useRef(null),c=t.useContext(fe),d=K(),f=pe(r),p=(I=(_=f.current)==null?void 0:_.forceMount)!=null?I:c==null?void 0:c.forceMount;k(()=>{if(!p)return d.item(n,c==null?void 0:c.id)},[p]);let b=ve(n,u,[r.value,r.children,u],r.keywords),m=ee(),R=P(v=>v.value&&v.value===b.current),x=P(v=>p||d.filter()===!1?!0:v.search?v.filtered.items.get(n)>0:!0);t.useEffect(()=>{let v=u.current;if(!(!v||r.disabled))return v.addEventListener(Z,C),()=>v.removeEventListener(Z,C)},[x,r.onSelect,r.disabled]);function C(){var v,E;S(),(E=(v=f.current).onSelect)==null||E.call(v,b.current)}function S(){m.setState(\"value\",b.current,!0)}if(!x)return null;let{disabled:A,value:ge,onSelect:j,forceMount:O,keywords:$,...q}=r;return t.createElement(D.div,{ref:G(u,o),...q,id:n,\"cmdk-item\":\"\",role:\"option\",\"aria-disabled\":!!A,\"aria-selected\":!!R,\"data-disabled\":!!A,\"data-selected\":!!R,onPointerMove:A||d.getDisablePointerSelection()?void 0:S,onClick:A?void 0:C},r.children)}),Ee=t.forwardRef((r,o)=>{let{heading:n,children:u,forceMount:c,...d}=r,f=H(),p=t.useRef(null),b=t.useRef(null),m=H(),R=K(),x=P(S=>c||R.filter()===!1?!0:S.search?S.filtered.groups.has(f):!0);k(()=>R.group(f),[]),ve(f,p,[r.value,r.heading,b]);let C=t.useMemo(()=>({id:f,forceMount:c}),[c]);return t.createElement(D.div,{ref:G(p,o),...d,\"cmdk-group\":\"\",role:\"presentation\",hidden:x?void 0:!0},n&&t.createElement(\"div\",{ref:b,\"cmdk-group-heading\":\"\",\"aria-hidden\":!0,id:m},n),B(r,S=>t.createElement(\"div\",{\"cmdk-group-items\":\"\",role:\"group\",\"aria-labelledby\":n?m:void 0},t.createElement(fe.Provider,{value:C},S))))}),ye=t.forwardRef((r,o)=>{let{alwaysRender:n,...u}=r,c=t.useRef(null),d=P(f=>!f.search);return!n&&!d?null:t.createElement(D.div,{ref:G(c,o),...u,\"cmdk-separator\":\"\",role:\"separator\"})}),Se=t.forwardRef((r,o)=>{let{onValueChange:n,...u}=r,c=r.value!=null,d=ee(),f=P(m=>m.search),p=P(m=>m.selectedItemId),b=K();return t.useEffect(()=>{r.value!=null&&d.setState(\"search\",r.value)},[r.value]),t.createElement(D.input,{ref:o,...u,\"cmdk-input\":\"\",autoComplete:\"off\",autoCorrect:\"off\",spellCheck:!1,\"aria-autocomplete\":\"list\",role:\"combobox\",\"aria-expanded\":!0,\"aria-controls\":b.listId,\"aria-labelledby\":b.labelId,\"aria-activedescendant\":p,id:b.inputId,type:\"text\",value:c?r.value:f,onChange:m=>{c||d.setState(\"search\",m.target.value),n==null||n(m.target.value)}})}),Ce=t.forwardRef((r,o)=>{let{children:n,label:u=\"Suggestions\",...c}=r,d=t.useRef(null),f=t.useRef(null),p=P(m=>m.selectedItemId),b=K();return t.useEffect(()=>{if(f.current&&d.current){let m=f.current,R=d.current,x,C=new ResizeObserver(()=>{x=requestAnimationFrame(()=>{let S=m.offsetHeight;R.style.setProperty(\"--cmdk-list-height\",S.toFixed(1)+\"px\")})});return C.observe(m),()=>{cancelAnimationFrame(x),C.unobserve(m)}}},[]),t.createElement(D.div,{ref:G(d,o),...c,\"cmdk-list\":\"\",role:\"listbox\",tabIndex:-1,\"aria-activedescendant\":p,\"aria-label\":u,id:b.listId},B(r,m=>t.createElement(\"div\",{ref:G(f,b.listInnerRef),\"cmdk-list-sizer\":\"\"},m)))}),xe=t.forwardRef((r,o)=>{let{open:n,onOpenChange:u,overlayClassName:c,contentClassName:d,container:f,...p}=r;return t.createElement(w.Root,{open:n,onOpenChange:u},t.createElement(w.Portal,{container:f},t.createElement(w.Overlay,{\"cmdk-overlay\":\"\",className:c}),t.createElement(w.Content,{\"aria-label\":r.label,\"cmdk-dialog\":\"\",className:d},t.createElement(me,{ref:o,...p}))))}),Ie=t.forwardRef((r,o)=>P(u=>u.filtered.count===0)?t.createElement(D.div,{ref:o,...r,\"cmdk-empty\":\"\",role:\"presentation\"}):null),Pe=t.forwardRef((r,o)=>{let{progress:n,children:u,label:c=\"Loading...\",...d}=r;return t.createElement(D.div,{ref:o,...d,\"cmdk-loading\":\"\",role:\"progressbar\",\"aria-valuenow\":n,\"aria-valuemin\":0,\"aria-valuemax\":100,\"aria-label\":c},B(r,f=>t.createElement(\"div\",{\"aria-hidden\":!0},f)))}),_e=Object.assign(me,{List:Ce,Item:he,Input:Se,Group:Ee,Separator:ye,Dialog:xe,Empty:Ie,Loading:Pe});function we(r,o){let n=r.nextElementSibling;for(;n;){if(n.matches(o))return n;n=n.nextElementSibling}}function De(r,o){let n=r.previousElementSibling;for(;n;){if(n.matches(o))return n;n=n.previousElementSibling}}function pe(r){let o=t.useRef(r);return k(()=>{o.current=r}),o}var k=typeof window==\"undefined\"?t.useEffect:t.useLayoutEffect;function L(r){let o=t.useRef();return o.current===void 0&&(o.current=r()),o}function P(r){let o=ee(),n=()=>r(o.snapshot());return t.useSyncExternalStore(o.subscribe,n,n)}function ve(r,o,n,u=[]){let c=t.useRef(),d=K();return k(()=>{var b;let f=(()=>{var m;for(let R of n){if(typeof R==\"string\")return R.trim();if(typeof R==\"object\"&&\"current\"in R)return R.current?(m=R.current.textContent)==null?void 0:m.trim():c.current}})(),p=u.map(m=>m.trim());d.value(r,f,p),(b=o.current)==null||b.setAttribute(T,f),c.current=f}),c}var ke=()=>{let[r,o]=t.useState(),n=L(()=>new Map);return k(()=>{n.current.forEach(u=>u()),n.current=new Map},[r]),(u,c)=>{n.current.set(u,c),o({})}};function Me(r){let o=r.type;return typeof o==\"function\"?o(r.props):\"render\"in o?o.render(r.props):r}function B({asChild:r,children:o},n){return r&&t.isValidElement(o)?t.cloneElement(Me(o),{ref:o.ref},n(o.props.children)):n(o)}var Te={position:\"absolute\",width:\"1px\",height:\"1px\",padding:\"0\",margin:\"-1px\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",whiteSpace:\"nowrap\",borderWidth:\"0\"};export{_e as Command,xe as CommandDialog,Ie as CommandEmpty,Ee as CommandGroup,Se as CommandInput,he as CommandItem,Ce as CommandList,Pe as CommandLoading,me as CommandRoot,ye as CommandSeparator,Re as defaultFilter,P as useCommandState};\n"],"names":["ae","t","H","W","D","G","w.Root","w.Portal","w.Overlay","w.Content"],"mappings":";;;;;;AAAuR,IAAC,IAAE,mBAAkB,IAAE,yBAAwB,KAAG,2BAA0B,KAAG,kBAAiB,KAAG,GAAG,EAAE,gCAA+B,IAAE,oBAAmB,IAAE,cAAa,KAAG,CAAC,GAAE,GAAE,MAAIA,EAAG,GAAE,GAAE,CAAC,GAAE,KAAGC,MAAE,cAAc,MAAM,GAAE,IAAE,MAAIA,MAAE,WAAW,EAAE,GAAE,KAAGA,MAAE,cAAc,MAAM,GAAE,KAAG,MAAIA,MAAE,WAAW,EAAE,GAAE,KAAGA,MAAE,cAAc,MAAM,GAAE,KAAGA,MAAE,WAAW,CAAC,GAA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oBAAI;AAAA,EAAG,GAAE,CAAC,CAAC,CAAC,GAAE,CAAC,GAAE,MAAI;AAAC,MAAE,QAAQ,IAAI,GAAE,CAAC,GAAE,EAAE,CAAA,CAAE;AAAA,EAAC;AAAC;AAAE,SAAS,GAAG,GAAE;AAAC,MAAI,IAAE,EAAE;AAAK,SAAO,OAAO,KAAG,aAAW,EAAE,EAAE,KAAK,IAAE,YAAW,IAAE,EAAE,OAAO,EAAE,KAAK,IAAE;AAAC;AAAC,SAAS,EAAE,EAAC,SAAQ,GAAE,UAAS,EAAC,GAAE,GAAE;AAAC,SAAO,KAAGA,MAAE,eAAe,CAAC,IAAEA,MAAE,aAAa,GAAG,CAAC,GAAE,EAAC,KAAI,EAAE,IAAG,GAAE,EAAE,EAAE,MAAM,QAAQ,CAAC,IAAE,EAAE,CAAC;AAAC;AAAC,IAAI,KAAG,EAAC,UAAS,YAAW,OAAM,OAAM,QAAO,OAAM,SAAQ,KAAI,QAAO,QAAO,UAAS,UAAS,MAAK,oBAAmB,YAAW,UAAS,aAAY,IAAG;","x_google_ignoreList":[0]}
@@ -1,16 +0,0 @@
1
- import "react";
2
- import { jsx, Fragment } from "react/jsx-runtime";
3
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
4
- // @__NO_SIDE_EFFECTS__
5
- function createSlottable(ownerName) {
6
- const Slottable2 = ({ children }) => {
7
- return /* @__PURE__ */ jsx(Fragment, { children });
8
- };
9
- Slottable2.displayName = `${ownerName}.Slottable`;
10
- Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
11
- return Slottable2;
12
- }
13
- export {
14
- createSlottable
15
- };
16
- //# sourceMappingURL=index.es79.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es79.js","sources":["../docs/node_modules/.bun/@radix-ui+react-alert-dialog@1.1.15+98e41321d0e6b3fa/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Fragment2"],"mappings":";;AA8CA,IAAI,uBAAuB,OAAO,iBAAiB;AAAA;AAEnD,SAAS,gBAAgB,WAAW;AAClC,QAAM,aAAa,CAAC,EAAE,eAAe;AACnC,WAAuB,oBAAIA,UAAW,EAAE,UAAU;AAAA,EACpD;AACA,aAAW,cAAc,GAAG,SAAS;AACrC,aAAW,YAAY;AACvB,SAAO;AACT;","x_google_ignoreList":[0]}
package/dist/index.es8.js DELETED
@@ -1,47 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { cn } from "./index.es4.js";
4
- import { useFieldContext } from "./index.es7.js";
5
- const FieldInput = forwardRef(
6
- ({ className, ...props }, forwardedRef) => {
7
- const { inputRef } = useFieldContext();
8
- return /* @__PURE__ */ jsx(
9
- "input",
10
- {
11
- ref: (el) => {
12
- inputRef.current = el;
13
- if (typeof forwardedRef === "function") {
14
- forwardedRef(el);
15
- } else if (forwardedRef) {
16
- forwardedRef.current = el;
17
- }
18
- },
19
- "data-readonly": props.readOnly,
20
- "data-slot": "field-input",
21
- className: cn(
22
- "volt-group/field-input volt-w-full volt-h-6 volt-outline-none volt-text-sm volt-text-gray-default volt-focus-visible:outline-none volt-placeholder:text-gray-a8 volt-disabled:cursor-not-allowed",
23
- className
24
- ),
25
- ...props
26
- }
27
- );
28
- }
29
- );
30
- FieldInput.displayName = "FieldInput";
31
- const FieldInputGroup = forwardRef(({ className, ...props }, ref) => {
32
- return /* @__PURE__ */ jsx(
33
- "div",
34
- {
35
- ref,
36
- "data-slot": "field-input-group",
37
- className: cn("volt-flex volt-items-center volt-gap-1", className),
38
- ...props
39
- }
40
- );
41
- });
42
- FieldInputGroup.displayName = "FieldInputGroup";
43
- export {
44
- FieldInput,
45
- FieldInputGroup
46
- };
47
- //# sourceMappingURL=index.es8.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es8.js","sources":["../src/components/field/field-input.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithRef, ComponentPropsWithoutRef } from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { useFieldContext } from \"@/components/field/field\"\n\ntype FieldInputProps = ComponentPropsWithoutRef<\"input\">\n\nconst FieldInput = forwardRef<HTMLInputElement, FieldInputProps>(\n ({ className, ...props }, forwardedRef) => {\n const { inputRef } = useFieldContext()\n\n return (\n <input\n ref={(el) => {\n // Set context ref\n inputRef.current = el\n // Handle forwarded ref\n if (typeof forwardedRef === \"function\") {\n forwardedRef(el)\n } else if (forwardedRef) {\n forwardedRef.current = el\n }\n }}\n data-readonly={props.readOnly}\n data-slot=\"field-input\"\n className={cn(\n \"group/field-input w-full h-6 outline-none text-sm text-gray-default focus-visible:outline-none placeholder:text-gray-a8 disabled:cursor-not-allowed\",\n className\n )}\n {...props}\n />\n )\n }\n)\n\nFieldInput.displayName = \"FieldInput\"\n\nconst FieldInputGroup = forwardRef<\n HTMLDivElement,\n ComponentPropsWithRef<\"div\">\n>(({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n data-slot=\"field-input-group\"\n className={cn(\"flex items-center gap-1\", className)}\n {...props}\n />\n )\n})\n\nFieldInputGroup.displayName = \"FieldInputGroup\"\n\nexport { FieldInput, FieldInputGroup }\n"],"names":[],"mappings":";;;;AASA,MAAM,aAAa;AAAA,EACjB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,iBAAiB;AACzC,UAAM,EAAE,SAAA,IAAa,gBAAA;AAErB,WACE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAK,CAAC,OAAO;AAEX,mBAAS,UAAU;AAEnB,cAAI,OAAO,iBAAiB,YAAY;AACtC,yBAAa,EAAE;AAAA,UACjB,WAAW,cAAc;AACvB,yBAAa,UAAU;AAAA,UACzB;AAAA,QACF;AAAA,QACA,iBAAe,MAAM;AAAA,QACrB,aAAU;AAAA,QACV,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QAAA;AAAA,QAED,GAAG;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEA,WAAW,cAAc;AAEzB,MAAM,kBAAkB,WAGtB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAAQ;AAClC,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC;AAAA,MACA,aAAU;AAAA,MACV,WAAW,GAAG,0CAA0C,SAAS;AAAA,MAChE,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;AAED,gBAAgB,cAAc;"}
@@ -1,90 +0,0 @@
1
- import * as React from "react";
2
- import { composeRefs } from "./index.es48.js";
3
- import { jsx } from "react/jsx-runtime";
4
- // @__NO_SIDE_EFFECTS__
5
- function createSlot(ownerName) {
6
- const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
7
- const Slot2 = React.forwardRef((props, forwardedRef) => {
8
- const { children, ...slotProps } = props;
9
- const childrenArray = React.Children.toArray(children);
10
- const slottable = childrenArray.find(isSlottable);
11
- if (slottable) {
12
- const newElement = slottable.props.children;
13
- const newChildren = childrenArray.map((child) => {
14
- if (child === slottable) {
15
- if (React.Children.count(newElement) > 1) return React.Children.only(null);
16
- return React.isValidElement(newElement) ? newElement.props.children : null;
17
- } else {
18
- return child;
19
- }
20
- });
21
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
22
- }
23
- return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
24
- });
25
- Slot2.displayName = `${ownerName}.Slot`;
26
- return Slot2;
27
- }
28
- // @__NO_SIDE_EFFECTS__
29
- function createSlotClone(ownerName) {
30
- const SlotClone = React.forwardRef((props, forwardedRef) => {
31
- const { children, ...slotProps } = props;
32
- if (React.isValidElement(children)) {
33
- const childrenRef = getElementRef(children);
34
- const props2 = mergeProps(slotProps, children.props);
35
- if (children.type !== React.Fragment) {
36
- props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
37
- }
38
- return React.cloneElement(children, props2);
39
- }
40
- return React.Children.count(children) > 1 ? React.Children.only(null) : null;
41
- });
42
- SlotClone.displayName = `${ownerName}.SlotClone`;
43
- return SlotClone;
44
- }
45
- var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
46
- function isSlottable(child) {
47
- return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
48
- }
49
- function mergeProps(slotProps, childProps) {
50
- const overrideProps = { ...childProps };
51
- for (const propName in childProps) {
52
- const slotPropValue = slotProps[propName];
53
- const childPropValue = childProps[propName];
54
- const isHandler = /^on[A-Z]/.test(propName);
55
- if (isHandler) {
56
- if (slotPropValue && childPropValue) {
57
- overrideProps[propName] = (...args) => {
58
- const result = childPropValue(...args);
59
- slotPropValue(...args);
60
- return result;
61
- };
62
- } else if (slotPropValue) {
63
- overrideProps[propName] = slotPropValue;
64
- }
65
- } else if (propName === "style") {
66
- overrideProps[propName] = { ...slotPropValue, ...childPropValue };
67
- } else if (propName === "className") {
68
- overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
69
- }
70
- }
71
- return { ...slotProps, ...overrideProps };
72
- }
73
- function getElementRef(element) {
74
- var _a, _b;
75
- let getter = (_a = Object.getOwnPropertyDescriptor(element.props, "ref")) == null ? void 0 : _a.get;
76
- let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
77
- if (mayWarn) {
78
- return element.ref;
79
- }
80
- getter = (_b = Object.getOwnPropertyDescriptor(element, "ref")) == null ? void 0 : _b.get;
81
- mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
82
- if (mayWarn) {
83
- return element.props.ref;
84
- }
85
- return element.props.ref || element.ref;
86
- }
87
- export {
88
- createSlot
89
- };
90
- //# sourceMappingURL=index.es80.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es80.js","sources":["../docs/node_modules/.bun/@radix-ui+react-slot@1.2.3+e2cc400bcbee7045/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;AAKA,SAAS,WAAW,WAAW;AAC7B,QAAM,YAA4B,gCAAgB,SAAS;AAC3D,QAAM,QAAQ,MAAM,WAAW,CAAC,OAAO,iBAAiB;AACtD,UAAM,EAAE,UAAU,GAAG,UAAS,IAAK;AACnC,UAAM,gBAAgB,MAAM,SAAS,QAAQ,QAAQ;AACrD,UAAM,YAAY,cAAc,KAAK,WAAW;AAChD,QAAI,WAAW;AACb,YAAM,aAAa,UAAU,MAAM;AACnC,YAAM,cAAc,cAAc,IAAI,CAAC,UAAU;AAC/C,YAAI,UAAU,WAAW;AACvB,cAAI,MAAM,SAAS,MAAM,UAAU,IAAI,EAAG,QAAO,MAAM,SAAS,KAAK,IAAI;AACzE,iBAAO,MAAM,eAAe,UAAU,IAAI,WAAW,MAAM,WAAW;AAAA,QACxE,OAAO;AACL,iBAAO;AAAA,QACT;AAAA,MACF,CAAC;AACD,aAAuB,oBAAI,W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AAS,eAAe,GAAG,IAAI;AACrC,wBAAc,GAAG,IAAI;AACrB,iBAAO;AAAA,QACT;AAAA,MACF,WAAW,eAAe;AACxB,sBAAc,QAAQ,IAAI;AAAA,MAC5B;AAAA,IACF,WAAW,aAAa,SAAS;AAC/B,oBAAc,QAAQ,IAAI,EAAE,GAAG,eAAe,GAAG,eAAc;AAAA,IACjE,WAAW,aAAa,aAAa;AACnC,oBAAc,QAAQ,IAAI,CAAC,eAAe,cAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,IACpF;AAAA,EACF;AACA,SAAO,EAAE,GAAG,WAAW,GAAG,cAAa;AACzC;AACA,SAAS,cAAc,SAAS;;AAC9B,MAAI,UAAS,YAAO,yBAAyB,QAAQ,OAAO,KAAK,MAApD,mBAAuD;AACpE,MAAI,UAAU,UAAU,oBAAoB,UAAU,OAAO;AAC7D,MAAI,SAAS;AACX,WAAO,QAAQ;AAAA,EACjB;AACA,YAAS,YAAO,yBAAyB,SAAS,KAAK,MAA9C,mBAAiD;AAC1D,YAAU,UAAU,oBAAoB,UAAU,OAAO;AACzD,MAAI,SAAS;AACX,WAAO,QAAQ,MAAM;AAAA,EACvB;AACA,SAAO,QAAQ,MAAM,OAAO,QAAQ;AACtC;","x_google_ignoreList":[0]}
@@ -1,18 +0,0 @@
1
- import * as React from "react";
2
- import { useCallbackRef } from "./index.es74.js";
3
- function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
4
- const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
5
- React.useEffect(() => {
6
- const handleKeyDown = (event) => {
7
- if (event.key === "Escape") {
8
- onEscapeKeyDown(event);
9
- }
10
- };
11
- ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
12
- return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
13
- }, [onEscapeKeyDown, ownerDocument]);
14
- }
15
- export {
16
- useEscapeKeydown
17
- };
18
- //# sourceMappingURL=index.es81.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es81.js","sources":["../docs/node_modules/.bun/@radix-ui+react-use-escape-keydown@1.1.1+e2cc400bcbee7045/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;AAGA,SAAS,iBAAiB,qBAAqB,gBAAgB,yCAAY,UAAU;AACnF,QAAM,kBAAkB,eAAe,mBAAmB;AAC1D,QAAM,UAAU,MAAM;AACpB,UAAM,gBAAgB,CAAC,UAAU;AAC/B,UAAI,MAAM,QAAQ,UAAU;AAC1B,wBAAgB,KAAK;AAAA,MACvB;AAAA,IACF;AACA,kBAAc,iBAAiB,WAAW,eAAe,EAAE,SAAS,MAAM;AAC1E,WAAO,MAAM,cAAc,oBAAoB,WAAW,eAAe,EAAE,SAAS,MAAM;AAAA,EAC5F,GAAG,CAAC,iBAAiB,aAAa,CAAC;AACrC;","x_google_ignoreList":[0]}