@boxcustodia/library 0.2.0 → 0.2.2

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 (373) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.es10.js +1 -1
  3. package/dist/index.es100.js +4 -14
  4. package/dist/index.es101.js +14 -5
  5. package/dist/index.es102.js +4 -56
  6. package/dist/index.es103.js +55 -257
  7. package/dist/index.es104.js +3 -6
  8. package/dist/index.es108.js +11 -21
  9. package/dist/index.es109.js +21 -12
  10. package/dist/index.es110.js +5 -4
  11. package/dist/index.es111.js +4 -4
  12. package/dist/index.es112.js +4 -5
  13. package/dist/index.es113.js +12 -240
  14. package/dist/index.es114.js +224 -11
  15. package/dist/index.es115.js +11 -224
  16. package/dist/index.es116.js +41 -11
  17. package/dist/index.es117.js +821 -40
  18. package/dist/index.es118.js +9 -64
  19. package/dist/index.es119.js +11 -822
  20. package/dist/index.es120.js +64 -9
  21. package/dist/index.es121.js +240 -11
  22. package/dist/index.es124.js +1 -1
  23. package/dist/index.es125.js +1 -1
  24. package/dist/index.es126.js +5 -5
  25. package/dist/index.es13.js +1 -1
  26. package/dist/index.es131.js +13 -11
  27. package/dist/index.es132.js +196 -11
  28. package/dist/index.es133.js +41 -204
  29. package/dist/index.es134.js +12 -10
  30. package/dist/index.es135.js +11 -20
  31. package/dist/index.es136.js +205 -37
  32. package/dist/index.es137.js +10 -10
  33. package/dist/index.es138.js +20 -14
  34. package/dist/index.es139.js +34 -194
  35. package/dist/index.es14.js +1 -1
  36. package/dist/index.es140.js +9 -40
  37. package/dist/index.es141.js +6 -5
  38. package/dist/index.es142.js +65 -2
  39. package/dist/index.es143.js +10 -6
  40. package/dist/index.es144.js +118 -58
  41. package/dist/index.es145.js +134 -10
  42. package/dist/index.es146.js +13 -124
  43. package/dist/index.es147.js +31 -133
  44. package/dist/index.es148.js +14 -13
  45. package/dist/index.es149.js +9 -33
  46. package/dist/index.es150.js +50 -15
  47. package/dist/index.es151.js +6 -9
  48. package/dist/index.es152.js +2 -50
  49. package/dist/index.es153.js +1 -1
  50. package/dist/index.es154.js +625 -193
  51. package/dist/index.es156.js +193 -625
  52. package/dist/index.es158.js +3 -3
  53. package/dist/index.es161.js +1 -1
  54. package/dist/index.es162.js +3 -3
  55. package/dist/index.es164.js +5 -5
  56. package/dist/index.es165.js +2 -2
  57. package/dist/index.es166.js +6 -6
  58. package/dist/index.es173.js +1 -1
  59. package/dist/index.es174.js +1 -1
  60. package/dist/index.es175.js +3 -3
  61. package/dist/index.es176.js +2 -2
  62. package/dist/index.es177.js +1 -1
  63. package/dist/index.es178.js +1 -1
  64. package/dist/index.es182.js +21 -8
  65. package/dist/index.es183.js +9 -6
  66. package/dist/index.es184.js +38 -5
  67. package/dist/index.es185.js +18 -18
  68. package/dist/index.es186.js +7 -5
  69. package/dist/index.es187.js +5 -5
  70. package/dist/index.es188.js +4 -8
  71. package/dist/index.es189.js +18 -6
  72. package/dist/index.es190.js +5 -6
  73. package/dist/index.es191.js +5 -15
  74. package/dist/index.es192.js +8 -13
  75. package/dist/index.es193.js +6 -14
  76. package/dist/index.es194.js +6 -6
  77. package/dist/index.es195.js +15 -6
  78. package/dist/index.es196.js +13 -6
  79. package/dist/index.es197.js +13 -4
  80. package/dist/index.es198.js +6 -515
  81. package/dist/index.es199.js +7 -50
  82. package/dist/index.es200.js +6 -17
  83. package/dist/index.es201.js +4 -9
  84. package/dist/index.es202.js +513 -16
  85. package/dist/index.es203.js +50 -9
  86. package/dist/index.es204.js +17 -7
  87. package/dist/index.es205.js +9 -7
  88. package/dist/index.es206.js +19 -6
  89. package/dist/index.es207.js +8 -6
  90. package/dist/index.es208.js +7 -9
  91. package/dist/index.es209.js +7 -5
  92. package/dist/index.es210.js +5 -8
  93. package/dist/index.es211.js +6 -12
  94. package/dist/index.es212.js +9 -9
  95. package/dist/index.es213.js +5 -8
  96. package/dist/index.es214.js +8 -10
  97. package/dist/index.es215.js +12 -14
  98. package/dist/index.es216.js +9 -6
  99. package/dist/index.es217.js +8 -6
  100. package/dist/index.es218.js +10 -6
  101. package/dist/index.es219.js +14 -6
  102. package/dist/index.es22.js +2 -2
  103. package/dist/index.es220.js +6 -6
  104. package/dist/index.es221.js +6 -9
  105. package/dist/index.es222.js +6 -84
  106. package/dist/index.es223.js +7 -65
  107. package/dist/index.es224.js +6 -37
  108. package/dist/index.es225.js +9 -9
  109. package/dist/index.es226.js +84 -8
  110. package/dist/index.es227.js +65 -8
  111. package/dist/index.es228.js +37 -10
  112. package/dist/index.es229.js +9 -7
  113. package/dist/index.es230.js +8 -7
  114. package/dist/index.es231.js +7 -6
  115. package/dist/index.es232.js +10 -5
  116. package/dist/index.es233.js +7 -15
  117. package/dist/index.es234.js +7 -11
  118. package/dist/index.es235.js +6 -200
  119. package/dist/index.es236.js +6 -22
  120. package/dist/index.es237.js +15 -24
  121. package/dist/index.es238.js +10 -369
  122. package/dist/index.es239.js +176 -19
  123. package/dist/index.es240.js +25 -9
  124. package/dist/index.es241.js +19 -38
  125. package/dist/index.es242.js +53 -17
  126. package/dist/index.es243.js +15 -24
  127. package/dist/index.es244.js +200 -18
  128. package/dist/index.es245.js +19 -51
  129. package/dist/index.es246.js +25 -16
  130. package/dist/index.es247.js +364 -171
  131. package/dist/index.es248.js +26 -2
  132. package/dist/index.es249.js +4 -397
  133. package/dist/index.es250.js +7 -722
  134. package/dist/index.es251.js +13 -282
  135. package/dist/index.es252.js +13 -60
  136. package/dist/index.es253.js +134 -9
  137. package/dist/index.es254.js +31 -28
  138. package/dist/index.es255.js +459 -195
  139. package/dist/index.es256.js +131 -25
  140. package/dist/index.es257.js +27 -5
  141. package/dist/index.es258.js +4 -7
  142. package/dist/index.es259.js +25 -12
  143. package/dist/index.es260.js +7 -13
  144. package/dist/index.es261.js +11 -134
  145. package/dist/index.es262.js +27 -30
  146. package/dist/index.es263.js +46 -460
  147. package/dist/index.es264.js +28 -129
  148. package/dist/index.es265.js +43 -26
  149. package/dist/index.es266.js +158 -4
  150. package/dist/index.es267.js +30 -23
  151. package/dist/index.es268.js +2 -8
  152. package/dist/index.es269.js +77 -9
  153. package/dist/index.es27.js +1 -1
  154. package/dist/index.es270.js +18 -28
  155. package/dist/index.es271.js +2 -49
  156. package/dist/index.es272.js +395 -28
  157. package/dist/index.es273.js +722 -43
  158. package/dist/index.es274.js +281 -157
  159. package/dist/index.es275.js +54 -27
  160. package/dist/index.es276.js +10 -2
  161. package/dist/index.es277.js +28 -79
  162. package/dist/index.es278.js +199 -19
  163. package/dist/index.es279.js +4 -16
  164. package/dist/index.es28.js +1 -1
  165. package/dist/index.es280.js +14 -8
  166. package/dist/index.es281.js +15 -4
  167. package/dist/index.es282.js +16 -14
  168. package/dist/index.es283.js +8 -15
  169. package/dist/index.es29.js +3 -3
  170. package/dist/index.es290.js +2 -2
  171. package/dist/index.es291.js +2 -2
  172. package/dist/index.es297.js +2 -2
  173. package/dist/index.es298.js +2 -2
  174. package/dist/index.es30.js +6 -6
  175. package/dist/index.es301.js +1 -1
  176. package/dist/index.es302.js +1 -1
  177. package/dist/index.es303.js +1 -1
  178. package/dist/index.es304.js +1 -1
  179. package/dist/index.es315.js +2 -2
  180. package/dist/index.es316.js +2 -2
  181. package/dist/index.es317.js +1 -1
  182. package/dist/index.es318.js +1 -1
  183. package/dist/index.es32.js +2 -2
  184. package/dist/index.es322.js +10 -2
  185. package/dist/index.es323.js +5 -2
  186. package/dist/index.es324.js +13 -10
  187. package/dist/index.es325.js +4 -4
  188. package/dist/index.es326.js +7 -13
  189. package/dist/index.es327.js +333 -4
  190. package/dist/index.es328.js +19 -7
  191. package/dist/index.es329.js +3 -333
  192. package/dist/index.es33.js +2 -2
  193. package/dist/index.es330.js +5 -19
  194. package/dist/index.es331.js +3 -4
  195. package/dist/index.es332.js +71 -4
  196. package/dist/index.es333.js +4 -3
  197. package/dist/index.es334.js +6 -72
  198. package/dist/index.es335.js +34 -4
  199. package/dist/index.es336.js +26 -6
  200. package/dist/index.es337.js +18 -34
  201. package/dist/index.es338.js +4 -25
  202. package/dist/index.es339.js +231 -18
  203. package/dist/index.es34.js +6 -6
  204. package/dist/index.es340.js +100 -5
  205. package/dist/index.es341.js +26 -229
  206. package/dist/index.es342.js +35 -80
  207. package/dist/index.es343.js +2 -28
  208. package/dist/index.es344.js +2 -55
  209. package/dist/index.es345.js +334 -2
  210. package/dist/index.es346.js +31 -106
  211. package/dist/index.es347.js +16 -75
  212. package/dist/index.es348.js +29 -35
  213. package/dist/index.es349.js +3 -64
  214. package/dist/index.es35.js +2 -2
  215. package/dist/index.es350.js +107 -34
  216. package/dist/index.es351.js +71 -60
  217. package/dist/index.es352.js +34 -111
  218. package/dist/index.es353.js +60 -90
  219. package/dist/index.es354.js +32 -41
  220. package/dist/index.es355.js +66 -3
  221. package/dist/index.es356.js +113 -3
  222. package/dist/index.es357.js +94 -3
  223. package/dist/index.es358.js +43 -3
  224. package/dist/index.es359.js +2 -2
  225. package/dist/index.es360.js +2 -2
  226. package/dist/index.es361.js +2 -2
  227. package/dist/index.es362.js +2 -2
  228. package/dist/index.es363.js +2 -2
  229. package/dist/index.es364.js +4 -241
  230. package/dist/index.es365.js +4 -384
  231. package/dist/index.es366.js +4 -169
  232. package/dist/index.es367.js +4 -153
  233. package/dist/index.es368.js +187 -88
  234. package/dist/index.es369.js +384 -4
  235. package/dist/index.es370.js +169 -4
  236. package/dist/index.es371.js +153 -4
  237. package/dist/index.es372.js +142 -4
  238. package/dist/index.es373.js +2 -2
  239. package/dist/index.es374.js +2 -2
  240. package/dist/index.es375.js +2 -334
  241. package/dist/index.es376.js +2 -31
  242. package/dist/index.es377.js +2 -17
  243. package/dist/index.es378.js +2 -29
  244. package/dist/index.es379.js +1 -1
  245. package/dist/index.es38.js +2 -2
  246. package/dist/index.es380.js +2 -2
  247. package/dist/index.es382.js +2 -2
  248. package/dist/index.es383.js +2 -2
  249. package/dist/index.es389.js +1 -1
  250. package/dist/index.es390.js +1 -1
  251. package/dist/index.es393.js +1 -1
  252. package/dist/index.es395.js +4 -4
  253. package/dist/index.es397.js +66 -517
  254. package/dist/index.es398.js +30 -126
  255. package/dist/index.es399.js +16 -126
  256. package/dist/index.es400.js +135 -62
  257. package/dist/index.es401.js +108 -25
  258. package/dist/index.es402.js +6 -16
  259. package/dist/index.es403.js +2 -141
  260. package/dist/index.es404.js +8 -114
  261. package/dist/index.es405.js +326 -5
  262. package/dist/index.es406.js +50 -2
  263. package/dist/index.es407.js +3 -7
  264. package/dist/index.es408.js +497 -305
  265. package/dist/index.es409.js +125 -48
  266. package/dist/index.es41.js +1 -1
  267. package/dist/index.es410.js +125 -3
  268. package/dist/index.es411.js +1 -1
  269. package/dist/index.es412.js +6 -6
  270. package/dist/index.es416.js +1 -1
  271. package/dist/index.es417.js +5 -5
  272. package/dist/index.es420.js +2 -2
  273. package/dist/index.es43.js +1 -1
  274. package/dist/index.es435.js +21 -271
  275. package/dist/index.es436.js +10 -79
  276. package/dist/index.es437.js +31 -164
  277. package/dist/index.es438.js +29 -24
  278. package/dist/index.es439.js +11 -10
  279. package/dist/index.es44.js +4 -4
  280. package/dist/index.es440.js +2 -33
  281. package/dist/index.es441.js +2 -30
  282. package/dist/index.es442.js +274 -11
  283. package/dist/index.es443.js +80 -3
  284. package/dist/index.es444.js +163 -104
  285. package/dist/index.es445.js +3 -2
  286. package/dist/index.es446.js +107 -2
  287. package/dist/index.es45.js +1 -1
  288. package/dist/index.es451.js +65 -69
  289. package/dist/index.es452.js +68 -8
  290. package/dist/index.es453.js +9 -14
  291. package/dist/index.es454.js +14 -60
  292. package/dist/index.es455.js +59 -64
  293. package/dist/index.es46.js +5 -5
  294. package/dist/index.es465.js +44 -7
  295. package/dist/index.es466.js +63 -2
  296. package/dist/index.es467.js +17 -41
  297. package/dist/index.es468.js +5 -63
  298. package/dist/index.es469.js +41 -17
  299. package/dist/index.es47.js +1 -1
  300. package/dist/index.es470.js +5 -5
  301. package/dist/index.es471.js +7 -44
  302. package/dist/index.es472.js +2 -5
  303. package/dist/index.es474.js +1 -1
  304. package/dist/index.es475.js +1 -1
  305. package/dist/index.es49.js +2 -2
  306. package/dist/index.es50.js +1 -1
  307. package/dist/index.es51.js +4 -4
  308. package/dist/index.es54.js +1 -1
  309. package/dist/index.es55.js +48 -55
  310. package/dist/index.es56.js +22 -22
  311. package/dist/index.es57.js +3 -3
  312. package/dist/index.es59.js +1 -1
  313. package/dist/index.es62.js +1 -1
  314. package/dist/index.es63.js +1 -1
  315. package/dist/index.es65.js +2 -2
  316. package/dist/index.es66.js +3 -3
  317. package/dist/index.es67.js +2 -2
  318. package/dist/index.es69.js +1 -1
  319. package/dist/index.es7.js +1 -1
  320. package/dist/index.es752.js +13 -21
  321. package/dist/index.es753.js +18 -79
  322. package/dist/index.es754.js +82 -13
  323. package/dist/index.es766.js +2 -24
  324. package/dist/index.es767.js +2 -8
  325. package/dist/index.es768.js +21 -64
  326. package/dist/index.es769.js +8 -52
  327. package/dist/index.es770.js +56 -60
  328. package/dist/index.es771.js +52 -2
  329. package/dist/index.es772.js +71 -2
  330. package/dist/index.es777.js +56 -20
  331. package/dist/index.es778.js +26 -49
  332. package/dist/index.es779.js +9 -34
  333. package/dist/index.es780.js +18 -9
  334. package/dist/index.es781.js +8 -18
  335. package/dist/index.es782.js +12 -8
  336. package/dist/index.es783.js +56 -11
  337. package/dist/index.es784.js +9 -57
  338. package/dist/index.es785.js +14 -9
  339. package/dist/index.es786.js +6 -14
  340. package/dist/index.es787.js +21 -6
  341. package/dist/index.es788.js +1 -1
  342. package/dist/index.es799.js +1 -1
  343. package/dist/index.es802.js +1 -1
  344. package/dist/index.es809.js +5 -5
  345. package/dist/index.es810.js +2 -2
  346. package/dist/index.es811.js +1 -1
  347. package/dist/index.es813.js +2 -2
  348. package/dist/index.es825.js +15 -64
  349. package/dist/index.es826.js +7 -11
  350. package/dist/index.es827.js +61 -38
  351. package/dist/index.es828.js +7 -54
  352. package/dist/index.es829.js +40 -16
  353. package/dist/index.es83.js +305 -31
  354. package/dist/index.es830.js +57 -17
  355. package/dist/index.es831.js +20 -7
  356. package/dist/index.es832.js +1 -1
  357. package/dist/index.es84.js +12 -35
  358. package/dist/index.es85.js +33 -46
  359. package/dist/index.es86.js +34 -29
  360. package/dist/index.es87.js +42 -26
  361. package/dist/index.es88.js +30 -55
  362. package/dist/index.es89.js +28 -53
  363. package/dist/index.es90.js +55 -90
  364. package/dist/index.es91.js +55 -37
  365. package/dist/index.es92.js +88 -22
  366. package/dist/index.es93.js +36 -29
  367. package/dist/index.es94.js +22 -305
  368. package/dist/index.es95.js +30 -12
  369. package/dist/index.es96.js +259 -9
  370. package/dist/index.es97.js +5 -5
  371. package/dist/index.es98.js +10 -3672
  372. package/dist/index.es99.js +3673 -3
  373. package/package.json +1 -1
@@ -1,35 +1,309 @@
1
- import { clsx as O } from "./index.es131.js";
2
- const m = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
- var r;
4
- if ((l == null ? void 0 : l.variants) == null) return y(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
5
- const { variants: o, defaultVariants: d } = l, N = Object.keys(o).map((t) => {
6
- const a = n == null ? void 0 : n[t], u = d == null ? void 0 : d[t];
7
- if (a === null) return null;
8
- const i = m(a) || m(u);
9
- return o[t][i];
10
- }), v = n && Object.entries(n).reduce((t, a) => {
11
- let [u, i] = a;
12
- return i === void 0 || (t[u] = i), t;
13
- }, {}), V = l == null || (r = l.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((t, a) => {
14
- let { class: u, className: i, ...f } = a;
15
- return Object.entries(f).every((C) => {
16
- let [c, s] = C;
17
- return Array.isArray(s) ? s.includes({
18
- ...d,
19
- ...v
20
- }[c]) : {
21
- ...d,
22
- ...v
23
- }[c] === s;
24
- }) ? [
25
- ...t,
26
- u,
27
- i
28
- ] : t;
1
+ import { a as ve } from "./index.es131.js";
2
+ import { Root as pe, Portal as be, Overlay as he, Content as ge } from "./index.es132.js";
3
+ import * as n from "react";
4
+ import { Primitive as C } from "./index.es133.js";
5
+ var L = '[cmdk-group=""]', _ = '[cmdk-group-items=""]', Ee = '[cmdk-group-heading=""]', Q = '[cmdk-item=""]', ie = `${Q}:not([aria-disabled="true"])`, J = "cmdk-item-select", $ = "data-value", ye = (r, l, t) => ve(r, l, t), oe = n.createContext(void 0), q = () => n.useContext(oe), ce = n.createContext(void 0), X = () => n.useContext(ce), de = n.createContext(void 0), se = n.forwardRef((r, l) => {
6
+ let t = P(() => {
7
+ var e, u;
8
+ return { search: "", value: (u = (e = r.value) != null ? e : r.defaultValue) != null ? u : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
9
+ }), v = P(() => /* @__PURE__ */ new Set()), i = P(() => /* @__PURE__ */ new Map()), d = P(() => /* @__PURE__ */ new Map()), s = P(() => /* @__PURE__ */ new Set()), m = fe(r), { label: p, children: g, value: c, onValueChange: w, filter: k, shouldFilter: S, loop: V, disablePointerSelection: O = !1, vimBindings: R = !0, ...j } = r, Y = n.useId(), Z = n.useId(), ee = n.useId(), x = n.useRef(null), b = Pe();
10
+ M(() => {
11
+ if (c !== void 0) {
12
+ let e = c.trim();
13
+ t.current.value = e, E.emit();
14
+ }
15
+ }, [c]), M(() => {
16
+ b(6, re);
29
17
  }, []);
30
- return y(e, N, V, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
18
+ let E = n.useMemo(() => ({ subscribe: (e) => (s.current.add(e), () => s.current.delete(e)), snapshot: () => t.current, setState: (e, u, o) => {
19
+ var a, f, h;
20
+ if (!Object.is(t.current[e], u)) {
21
+ if (t.current[e] = u, e === "search") W(), U(), b(1, G);
22
+ else if (e === "value" && (o || b(5, re), ((a = m.current) == null ? void 0 : a.value) !== void 0)) {
23
+ let y = u ?? "";
24
+ (h = (f = m.current).onValueChange) == null || h.call(f, y);
25
+ return;
26
+ }
27
+ E.emit();
28
+ }
29
+ }, emit: () => {
30
+ s.current.forEach((e) => e());
31
+ } }), []), z = n.useMemo(() => ({ value: (e, u, o) => {
32
+ var a;
33
+ u !== ((a = d.current.get(e)) == null ? void 0 : a.value) && (d.current.set(e, { value: u, keywords: o }), t.current.filtered.items.set(e, te(u, o)), b(2, () => {
34
+ U(), E.emit();
35
+ }));
36
+ }, item: (e, u) => (v.current.add(e), u && (i.current.has(u) ? i.current.get(u).add(e) : i.current.set(u, /* @__PURE__ */ new Set([e]))), b(3, () => {
37
+ W(), U(), t.current.value || G(), E.emit();
38
+ }), () => {
39
+ d.current.delete(e), v.current.delete(e), t.current.filtered.items.delete(e);
40
+ let o = D();
41
+ b(4, () => {
42
+ W(), (o == null ? void 0 : o.getAttribute("id")) === e && G(), E.emit();
43
+ });
44
+ }), group: (e) => (i.current.has(e) || i.current.set(e, /* @__PURE__ */ new Set()), () => {
45
+ d.current.delete(e), i.current.delete(e);
46
+ }), filter: () => m.current.shouldFilter, label: p || r["aria-label"], disablePointerSelection: O, listId: Y, inputId: ee, labelId: Z, listInnerRef: x }), []);
47
+ function te(e, u) {
48
+ var o, a;
49
+ let f = (a = (o = m.current) == null ? void 0 : o.filter) != null ? a : ye;
50
+ return e ? f(e, t.current.search, u) : 0;
51
+ }
52
+ function U() {
53
+ if (!t.current.search || m.current.shouldFilter === !1) return;
54
+ let e = t.current.filtered.items, u = [];
55
+ t.current.filtered.groups.forEach((a) => {
56
+ let f = i.current.get(a), h = 0;
57
+ f.forEach((y) => {
58
+ let I = e.get(y);
59
+ h = Math.max(I, h);
60
+ }), u.push([a, h]);
61
+ });
62
+ let o = x.current;
63
+ K().sort((a, f) => {
64
+ var h, y;
65
+ let I = a.getAttribute("id"), H = f.getAttribute("id");
66
+ return ((h = e.get(H)) != null ? h : 0) - ((y = e.get(I)) != null ? y : 0);
67
+ }).forEach((a) => {
68
+ let f = a.closest(_);
69
+ f ? f.appendChild(a.parentElement === f ? a : a.closest(`${_} > *`)) : o.appendChild(a.parentElement === o ? a : a.closest(`${_} > *`));
70
+ }), u.sort((a, f) => f[1] - a[1]).forEach((a) => {
71
+ let f = x.current.querySelector(`${L}[${$}="${encodeURIComponent(a[0])}"]`);
72
+ f == null || f.parentElement.appendChild(f);
73
+ });
74
+ }
75
+ function G() {
76
+ let e = K().find((o) => o.getAttribute("aria-disabled") !== "true"), u = e == null ? void 0 : e.getAttribute($);
77
+ E.setState("value", u || void 0);
78
+ }
79
+ function W() {
80
+ var e, u, o, a;
81
+ if (!t.current.search || m.current.shouldFilter === !1) {
82
+ t.current.filtered.count = v.current.size;
83
+ return;
84
+ }
85
+ t.current.filtered.groups = /* @__PURE__ */ new Set();
86
+ let f = 0;
87
+ for (let h of v.current) {
88
+ let y = (u = (e = d.current.get(h)) == null ? void 0 : e.value) != null ? u : "", I = (a = (o = d.current.get(h)) == null ? void 0 : o.keywords) != null ? a : [], H = te(y, I);
89
+ t.current.filtered.items.set(h, H), H > 0 && f++;
90
+ }
91
+ for (let [h, y] of i.current) for (let I of y) if (t.current.filtered.items.get(I) > 0) {
92
+ t.current.filtered.groups.add(h);
93
+ break;
94
+ }
95
+ t.current.filtered.count = f;
96
+ }
97
+ function re() {
98
+ var e, u, o;
99
+ let a = D();
100
+ a && (((e = a.parentElement) == null ? void 0 : e.firstChild) === a && ((o = (u = a.closest(L)) == null ? void 0 : u.querySelector(Ee)) == null || o.scrollIntoView({ block: "nearest" })), a.scrollIntoView({ block: "nearest" }));
101
+ }
102
+ function D() {
103
+ var e;
104
+ return (e = x.current) == null ? void 0 : e.querySelector(`${Q}[aria-selected="true"]`);
105
+ }
106
+ function K() {
107
+ var e;
108
+ return Array.from((e = x.current) == null ? void 0 : e.querySelectorAll(ie));
109
+ }
110
+ function B(e) {
111
+ let u = K()[e];
112
+ u && E.setState("value", u.getAttribute($));
113
+ }
114
+ function T(e) {
115
+ var u;
116
+ let o = D(), a = K(), f = a.findIndex((y) => y === o), h = a[f + e];
117
+ (u = m.current) != null && u.loop && (h = f + e < 0 ? a[a.length - 1] : f + e === a.length ? a[0] : a[f + e]), h && E.setState("value", h.getAttribute($));
118
+ }
119
+ function ne(e) {
120
+ let u = D(), o = u == null ? void 0 : u.closest(L), a;
121
+ for (; o && !a; ) o = e > 0 ? Me(o, L) : Ae(o, L), a = o == null ? void 0 : o.querySelector(ie);
122
+ a ? E.setState("value", a.getAttribute($)) : T(e);
123
+ }
124
+ let le = () => B(K().length - 1), ae = (e) => {
125
+ e.preventDefault(), e.metaKey ? le() : e.altKey ? ne(1) : T(1);
126
+ }, ue = (e) => {
127
+ e.preventDefault(), e.metaKey ? B(0) : e.altKey ? ne(-1) : T(-1);
128
+ };
129
+ return n.createElement(C.div, { ref: l, tabIndex: -1, ...j, "cmdk-root": "", onKeyDown: (e) => {
130
+ var u;
131
+ if ((u = j.onKeyDown) == null || u.call(j, e), !e.defaultPrevented) switch (e.key) {
132
+ case "n":
133
+ case "j": {
134
+ R && e.ctrlKey && ae(e);
135
+ break;
136
+ }
137
+ case "ArrowDown": {
138
+ ae(e);
139
+ break;
140
+ }
141
+ case "p":
142
+ case "k": {
143
+ R && e.ctrlKey && ue(e);
144
+ break;
145
+ }
146
+ case "ArrowUp": {
147
+ ue(e);
148
+ break;
149
+ }
150
+ case "Home": {
151
+ e.preventDefault(), B(0);
152
+ break;
153
+ }
154
+ case "End": {
155
+ e.preventDefault(), le();
156
+ break;
157
+ }
158
+ case "Enter":
159
+ if (!e.nativeEvent.isComposing && e.keyCode !== 229) {
160
+ e.preventDefault();
161
+ let o = D();
162
+ if (o) {
163
+ let a = new Event(J);
164
+ o.dispatchEvent(a);
165
+ }
166
+ }
167
+ }
168
+ } }, n.createElement("label", { "cmdk-label": "", htmlFor: z.inputId, id: z.labelId, style: Ke }, p), N(r, (e) => n.createElement(ce.Provider, { value: E }, n.createElement(oe.Provider, { value: z }, e))));
169
+ }), we = n.forwardRef((r, l) => {
170
+ var t, v;
171
+ let i = n.useId(), d = n.useRef(null), s = n.useContext(de), m = q(), p = fe(r), g = (v = (t = p.current) == null ? void 0 : t.forceMount) != null ? v : s == null ? void 0 : s.forceMount;
172
+ M(() => {
173
+ if (!g) return m.item(i, s == null ? void 0 : s.id);
174
+ }, [g]);
175
+ let c = me(i, d, [r.value, r.children, d], r.keywords), w = X(), k = A((b) => b.value && b.value === c.current), S = A((b) => g || m.filter() === !1 ? !0 : b.search ? b.filtered.items.get(i) > 0 : !0);
176
+ n.useEffect(() => {
177
+ let b = d.current;
178
+ if (!(!b || r.disabled)) return b.addEventListener(J, V), () => b.removeEventListener(J, V);
179
+ }, [S, r.onSelect, r.disabled]);
180
+ function V() {
181
+ var b, E;
182
+ O(), (E = (b = p.current).onSelect) == null || E.call(b, c.current);
183
+ }
184
+ function O() {
185
+ w.setState("value", c.current, !0);
186
+ }
187
+ if (!S) return null;
188
+ let { disabled: R, value: j, onSelect: Y, forceMount: Z, keywords: ee, ...x } = r;
189
+ return n.createElement(C.div, { ref: F([d, l]), ...x, id: i, "cmdk-item": "", role: "option", "aria-disabled": !!R, "aria-selected": !!k, "data-disabled": !!R, "data-selected": !!k, onPointerMove: R || m.disablePointerSelection ? void 0 : O, onClick: R ? void 0 : V }, r.children);
190
+ }), Se = n.forwardRef((r, l) => {
191
+ let { heading: t, children: v, forceMount: i, ...d } = r, s = n.useId(), m = n.useRef(null), p = n.useRef(null), g = n.useId(), c = q(), w = A((S) => i || c.filter() === !1 ? !0 : S.search ? S.filtered.groups.has(s) : !0);
192
+ M(() => c.group(s), []), me(s, m, [r.value, r.heading, p]);
193
+ let k = n.useMemo(() => ({ id: s, forceMount: i }), [i]);
194
+ return n.createElement(C.div, { ref: F([m, l]), ...d, "cmdk-group": "", role: "presentation", hidden: w ? void 0 : !0 }, t && n.createElement("div", { ref: p, "cmdk-group-heading": "", "aria-hidden": !0, id: g }, t), N(r, (S) => n.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? g : void 0 }, n.createElement(de.Provider, { value: k }, S))));
195
+ }), Ce = n.forwardRef((r, l) => {
196
+ let { alwaysRender: t, ...v } = r, i = n.useRef(null), d = A((s) => !s.search);
197
+ return !t && !d ? null : n.createElement(C.div, { ref: F([i, l]), ...v, "cmdk-separator": "", role: "separator" });
198
+ }), ke = n.forwardRef((r, l) => {
199
+ let { onValueChange: t, ...v } = r, i = r.value != null, d = X(), s = A((c) => c.search), m = A((c) => c.value), p = q(), g = n.useMemo(() => {
200
+ var c;
201
+ let w = (c = p.listInnerRef.current) == null ? void 0 : c.querySelector(`${Q}[${$}="${encodeURIComponent(m)}"]`);
202
+ return w == null ? void 0 : w.getAttribute("id");
203
+ }, []);
204
+ return n.useEffect(() => {
205
+ r.value != null && d.setState("search", r.value);
206
+ }, [r.value]), n.createElement(C.input, { ref: l, ...v, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": p.listId, "aria-labelledby": p.labelId, "aria-activedescendant": g, id: p.inputId, type: "text", value: i ? r.value : s, onChange: (c) => {
207
+ i || d.setState("search", c.target.value), t == null || t(c.target.value);
208
+ } });
209
+ }), Re = n.forwardRef((r, l) => {
210
+ let { children: t, label: v = "Suggestions", ...i } = r, d = n.useRef(null), s = n.useRef(null), m = q();
211
+ return n.useEffect(() => {
212
+ if (s.current && d.current) {
213
+ let p = s.current, g = d.current, c, w = new ResizeObserver(() => {
214
+ c = requestAnimationFrame(() => {
215
+ let k = p.offsetHeight;
216
+ g.style.setProperty("--cmdk-list-height", k.toFixed(1) + "px");
217
+ });
218
+ });
219
+ return w.observe(p), () => {
220
+ cancelAnimationFrame(c), w.unobserve(p);
221
+ };
222
+ }
223
+ }, []), n.createElement(C.div, { ref: F([d, l]), ...i, "cmdk-list": "", role: "listbox", "aria-label": v, id: m.listId }, N(r, (p) => n.createElement("div", { ref: F([s, m.listInnerRef]), "cmdk-list-sizer": "" }, p)));
224
+ }), xe = n.forwardRef((r, l) => {
225
+ let { open: t, onOpenChange: v, overlayClassName: i, contentClassName: d, container: s, ...m } = r;
226
+ return n.createElement(pe, { open: t, onOpenChange: v }, n.createElement(be, { container: s }, n.createElement(he, { "cmdk-overlay": "", className: i }), n.createElement(ge, { "aria-label": r.label, "cmdk-dialog": "", className: d }, n.createElement(se, { ref: l, ...m }))));
227
+ }), Ie = n.forwardRef((r, l) => A((t) => t.filtered.count === 0) ? n.createElement(C.div, { ref: l, ...r, "cmdk-empty": "", role: "presentation" }) : null), $e = n.forwardRef((r, l) => {
228
+ let { progress: t, children: v, label: i = "Loading...", ...d } = r;
229
+ return n.createElement(C.div, { ref: l, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": i }, N(r, (s) => n.createElement("div", { "aria-hidden": !0 }, s)));
230
+ }), Ve = Object.assign(se, { List: Re, Item: we, Input: ke, Group: Se, Separator: Ce, Dialog: xe, Empty: Ie, Loading: $e });
231
+ function Me(r, l) {
232
+ let t = r.nextElementSibling;
233
+ for (; t; ) {
234
+ if (t.matches(l)) return t;
235
+ t = t.nextElementSibling;
236
+ }
237
+ }
238
+ function Ae(r, l) {
239
+ let t = r.previousElementSibling;
240
+ for (; t; ) {
241
+ if (t.matches(l)) return t;
242
+ t = t.previousElementSibling;
243
+ }
244
+ }
245
+ function fe(r) {
246
+ let l = n.useRef(r);
247
+ return M(() => {
248
+ l.current = r;
249
+ }), l;
250
+ }
251
+ var M = typeof window > "u" ? n.useEffect : n.useLayoutEffect;
252
+ function P(r) {
253
+ let l = n.useRef();
254
+ return l.current === void 0 && (l.current = r()), l;
255
+ }
256
+ function F(r) {
257
+ return (l) => {
258
+ r.forEach((t) => {
259
+ typeof t == "function" ? t(l) : t != null && (t.current = l);
260
+ });
261
+ };
262
+ }
263
+ function A(r) {
264
+ let l = X(), t = () => r(l.snapshot());
265
+ return n.useSyncExternalStore(l.subscribe, t, t);
266
+ }
267
+ function me(r, l, t, v = []) {
268
+ let i = n.useRef(), d = q();
269
+ return M(() => {
270
+ var s;
271
+ let m = (() => {
272
+ var g;
273
+ for (let c of t) {
274
+ if (typeof c == "string") return c.trim();
275
+ if (typeof c == "object" && "current" in c) return c.current ? (g = c.current.textContent) == null ? void 0 : g.trim() : i.current;
276
+ }
277
+ })(), p = v.map((g) => g.trim());
278
+ d.value(r, m, p), (s = l.current) == null || s.setAttribute($, m), i.current = m;
279
+ }), i;
280
+ }
281
+ var Pe = () => {
282
+ let [r, l] = n.useState(), t = P(() => /* @__PURE__ */ new Map());
283
+ return M(() => {
284
+ t.current.forEach((v) => v()), t.current = /* @__PURE__ */ new Map();
285
+ }, [r]), (v, i) => {
286
+ t.current.set(v, i), l({});
287
+ };
31
288
  };
289
+ function De(r) {
290
+ let l = r.type;
291
+ return typeof l == "function" ? l(r.props) : "render" in l ? l.render(r.props) : r;
292
+ }
293
+ function N({ asChild: r, children: l }, t) {
294
+ return r && n.isValidElement(l) ? n.cloneElement(De(l), { ref: l.ref }, t(l.props.children)) : t(l);
295
+ }
296
+ var Ke = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
32
297
  export {
33
- j as cva,
34
- y as cx
298
+ Ve as Command,
299
+ xe as CommandDialog,
300
+ Ie as CommandEmpty,
301
+ Se as CommandGroup,
302
+ ke as CommandInput,
303
+ we as CommandItem,
304
+ Re as CommandList,
305
+ $e as CommandLoading,
306
+ se as CommandRoot,
307
+ Ce as CommandSeparator,
308
+ A as useCommandState
35
309
  };
@@ -1,20 +1,60 @@
1
- var t = function(e, u) {
2
- return e === u;
3
- };
4
- function a(r, e) {
5
- return !r && !e ? !0 : !r || !e ? !1 : r.x === e.x && r.y === e.y;
6
- }
7
- function l(r, e) {
8
- var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t;
9
- if (r.length !== e.length)
10
- return !1;
11
- for (var n = 0; n < r.length; ++n)
12
- if (!u(r[n], e[n]))
13
- return !1;
14
- return !0;
1
+ import { invariant as a } from "./index.es765.js";
2
+ import { DROP as d } from "./index.es826.js";
3
+ import { isObject as l } from "./index.es815.js";
4
+ function p(e, r) {
5
+ var t = Object.keys(e);
6
+ if (Object.getOwnPropertySymbols) {
7
+ var n = Object.getOwnPropertySymbols(e);
8
+ r && (n = n.filter(function(i) {
9
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
10
+ })), t.push.apply(t, n);
11
+ }
12
+ return t;
13
+ }
14
+ function u(e) {
15
+ for (var r = 1; r < arguments.length; r++) {
16
+ var t = arguments[r] != null ? arguments[r] : {};
17
+ r % 2 ? p(Object(t), !0).forEach(function(n) {
18
+ O(e, n, t[n]);
19
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : p(Object(t)).forEach(function(n) {
20
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
21
+ });
22
+ }
23
+ return e;
24
+ }
25
+ function O(e, r, t) {
26
+ return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
27
+ }
28
+ function w(e) {
29
+ return function() {
30
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.getMonitor(), i = e.getRegistry();
31
+ v(n);
32
+ var o = D(n);
33
+ o.forEach(function(f, c) {
34
+ var s = y(f, c, i, n), g = {
35
+ type: d,
36
+ payload: {
37
+ dropResult: u(u({}, t), s)
38
+ }
39
+ };
40
+ e.dispatch(g);
41
+ });
42
+ };
43
+ }
44
+ function v(e) {
45
+ a(e.isDragging(), "Cannot call drop while not dragging."), a(!e.didDrop(), "Cannot call drop twice during one drag operation.");
46
+ }
47
+ function y(e, r, t, n) {
48
+ var i = t.getTarget(e), o = i ? i.drop(n, e) : void 0;
49
+ return b(o), typeof o > "u" && (o = r === 0 ? {} : n.getDropResult()), o;
50
+ }
51
+ function b(e) {
52
+ a(typeof e > "u" || l(e), "Drop result must either be an object or undefined.");
53
+ }
54
+ function D(e) {
55
+ var r = e.getTargetIds().filter(e.canDropOnTarget, e);
56
+ return r.reverse(), r;
15
57
  }
16
58
  export {
17
- l as areArraysEqual,
18
- a as areCoordsEqual,
19
- t as strictEquality
59
+ w as createDrop
20
60
  };
@@ -1,9 +1,22 @@
1
- var R = "dnd-core/INIT_COORDS", r = "dnd-core/BEGIN_DRAG", d = "dnd-core/PUBLISH_DRAG_SOURCE", D = "dnd-core/HOVER", O = "dnd-core/DROP", _ = "dnd-core/END_DRAG";
1
+ import { invariant as g } from "./index.es765.js";
2
+ import { END_DRAG as o } from "./index.es826.js";
3
+ function d(r) {
4
+ return function() {
5
+ var n = r.getMonitor(), e = r.getRegistry();
6
+ a(n);
7
+ var t = n.getSourceId();
8
+ if (t != null) {
9
+ var i = e.getSource(t, !0);
10
+ i.endDrag(n, t), e.unpinSource();
11
+ }
12
+ return {
13
+ type: o
14
+ };
15
+ };
16
+ }
17
+ function a(r) {
18
+ g(r.isDragging(), "Cannot call endDrag while not dragging.");
19
+ }
2
20
  export {
3
- r as BEGIN_DRAG,
4
- O as DROP,
5
- _ as END_DRAG,
6
- D as HOVER,
7
- R as INIT_COORDS,
8
- d as PUBLISH_DRAG_SOURCE
21
+ d as createEndDrag
9
22
  };
@@ -1,4 +1,4 @@
1
- import { INIT_COORDS as f } from "./index.es831.js";
1
+ import { INIT_COORDS as f } from "./index.es826.js";
2
2
  function n(t, e) {
3
3
  return {
4
4
  type: f,
@@ -1,37 +1,14 @@
1
- import { cva as i } from "./index.es83.js";
2
- const u = i(
3
- [
4
- "ui-inline-flex ui-items-center ui-justify-center ui-gap-2",
5
- "ui-text-sm ui-font-medium ui-transition-all",
6
- "ui-rounded-md ui-ring-offset-background",
7
- "focus-visible:ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-ring focus-visible:ui-ring-offset-2",
8
- "disabled:ui-pointer-events-none disabled:ui-opacity-50",
9
- "hover:ui-brightness-105"
10
- ],
11
- {
12
- variants: {
13
- variant: {
14
- default: "ui-bg-primary ui-text-primary-foreground",
15
- error: "ui-bg-error ui-text-error-foreground",
16
- success: "ui-bg-success ui-text-success-foreground",
17
- outline: "ui-border ui-border-input ui-bg-background hover:ui-bg-accent hover:ui-text-accent-foreground",
18
- secondary: "ui-bg-secondary ui-text-secondary-foreground hover:ui-brightness-100 hover:ui-bg-secondary/80",
19
- ghost: "hover:ui-bg-accent hover:ui-brightness-100 hover:ui-text-accent-foreground",
20
- link: "ui-text-primary ui-underline-offset-4 hover:ui-underline"
21
- },
22
- size: {
23
- default: "ui-h-10 ui-px-4 ui-py-2",
24
- sm: "ui-h-9 ui-rounded-md ui-px-3",
25
- lg: "ui-h-11 ui-rounded-md ui-px-8",
26
- icon: "ui-w-10 ui-aspect-square"
27
- }
28
- },
29
- defaultVariants: {
30
- variant: "default",
31
- size: "default"
32
- }
33
- }
34
- );
1
+ import e from "./index.es182.js";
2
+ /**
3
+ * @license lucide-react v0.379.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const r = e("Search", [
9
+ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
10
+ ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
11
+ ]);
35
12
  export {
36
- u as buttonVariants
13
+ r as default
37
14
  };
@@ -1,48 +1,35 @@
1
- import * as l from "react";
2
- import { composeRefs as u } from "./index.es132.js";
3
- import { j as c } from "./index.es82.js";
4
- var d = l.forwardRef((e, n) => {
5
- const { children: r, ...t } = e, o = l.Children.toArray(r), i = o.find(g);
6
- if (i) {
7
- const s = i.props.children, a = o.map((p) => p === i ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : p);
8
- return /* @__PURE__ */ c.jsx(f, { ...t, ref: n, children: l.isValidElement(s) ? l.cloneElement(s, void 0, a) : null });
9
- }
10
- return /* @__PURE__ */ c.jsx(f, { ...t, ref: n, children: r });
11
- });
12
- d.displayName = "Slot";
13
- var f = l.forwardRef((e, n) => {
14
- const { children: r, ...t } = e;
15
- if (l.isValidElement(r)) {
16
- const o = h(r);
17
- return l.cloneElement(r, {
18
- ...y(t, r.props),
19
- // @ts-ignore
20
- ref: n ? u(n, o) : o
21
- });
22
- }
23
- return l.Children.count(r) > 1 ? l.Children.only(null) : null;
24
- });
25
- f.displayName = "SlotClone";
26
- var m = ({ children: e }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
27
- function g(e) {
28
- return l.isValidElement(e) && e.type === m;
29
- }
30
- function y(e, n) {
31
- const r = { ...n };
32
- for (const t in n) {
33
- const o = e[t], i = n[t];
34
- /^on[A-Z]/.test(t) ? o && i ? r[t] = (...a) => {
35
- i(...a), o(...a);
36
- } : o && (r[t] = o) : t === "style" ? r[t] = { ...o, ...i } : t === "className" && (r[t] = [o, i].filter(Boolean).join(" "));
37
- }
38
- return { ...e, ...r };
39
- }
40
- function h(e) {
41
- var t, o;
42
- let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, r = n && "isReactWarning" in n && n.isReactWarning;
43
- return r ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
44
- }
1
+ import { clsx as O } from "./index.es134.js";
2
+ const m = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
+ var r;
4
+ if ((l == null ? void 0 : l.variants) == null) return y(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
5
+ const { variants: o, defaultVariants: d } = l, N = Object.keys(o).map((t) => {
6
+ const a = n == null ? void 0 : n[t], u = d == null ? void 0 : d[t];
7
+ if (a === null) return null;
8
+ const i = m(a) || m(u);
9
+ return o[t][i];
10
+ }), v = n && Object.entries(n).reduce((t, a) => {
11
+ let [u, i] = a;
12
+ return i === void 0 || (t[u] = i), t;
13
+ }, {}), V = l == null || (r = l.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((t, a) => {
14
+ let { class: u, className: i, ...f } = a;
15
+ return Object.entries(f).every((C) => {
16
+ let [c, s] = C;
17
+ return Array.isArray(s) ? s.includes({
18
+ ...d,
19
+ ...v
20
+ }[c]) : {
21
+ ...d,
22
+ ...v
23
+ }[c] === s;
24
+ }) ? [
25
+ ...t,
26
+ u,
27
+ i
28
+ ] : t;
29
+ }, []);
30
+ return y(e, N, V, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
31
+ };
45
32
  export {
46
- d as Slot,
47
- m as Slottable
33
+ j as cva,
34
+ y as cx
48
35
  };
@@ -1,32 +1,37 @@
1
- import { j as o } from "./index.es82.js";
2
- import { useRef as r } from "react";
3
- import i from "./index.es133.js";
4
- import a from "./index.es114.js";
5
- import { cn as m } from "./index.es72.js";
6
- const s = ({ loading: e, ...t }) => {
7
- const n = r(null);
8
- return /* @__PURE__ */ o.jsx(
9
- i,
10
- {
11
- unmountOnExit: !0,
12
- mountOnEnter: !0,
13
- timeout: 200,
14
- in: e,
15
- classNames: "btn-loader",
16
- nodeRef: n,
17
- children: /* @__PURE__ */ o.jsx(
18
- a,
19
- {
20
- ...t,
21
- ref: n,
22
- "data-testid": "btn-loader",
23
- className: m("ui-animate-spin", t.className)
24
- }
25
- )
1
+ import { cva as i } from "./index.es85.js";
2
+ const u = i(
3
+ [
4
+ "ui-inline-flex ui-items-center ui-justify-center ui-gap-2",
5
+ "ui-text-sm ui-font-medium ui-transition-all",
6
+ "ui-rounded-md ui-ring-offset-background",
7
+ "focus-visible:ui-outline-none focus-visible:ui-ring-2 focus-visible:ui-ring-ring focus-visible:ui-ring-offset-2",
8
+ "disabled:ui-pointer-events-none disabled:ui-opacity-50",
9
+ "hover:ui-brightness-105"
10
+ ],
11
+ {
12
+ variants: {
13
+ variant: {
14
+ default: "ui-bg-primary ui-text-primary-foreground",
15
+ error: "ui-bg-error ui-text-error-foreground",
16
+ success: "ui-bg-success ui-text-success-foreground",
17
+ outline: "ui-border ui-border-input ui-bg-background hover:ui-bg-accent hover:ui-text-accent-foreground",
18
+ secondary: "ui-bg-secondary ui-text-secondary-foreground hover:ui-brightness-100 hover:ui-bg-secondary/80",
19
+ ghost: "hover:ui-bg-accent hover:ui-brightness-100 hover:ui-text-accent-foreground",
20
+ link: "ui-text-primary ui-underline-offset-4 hover:ui-underline"
21
+ },
22
+ size: {
23
+ default: "ui-h-10 ui-px-4 ui-py-2",
24
+ sm: "ui-h-9 ui-rounded-md ui-px-3",
25
+ lg: "ui-h-11 ui-rounded-md ui-px-8",
26
+ icon: "ui-w-10 ui-aspect-square"
27
+ }
28
+ },
29
+ defaultVariants: {
30
+ variant: "default",
31
+ size: "default"
26
32
  }
27
- );
28
- };
29
- s.displayName = "LoadingIcon";
33
+ }
34
+ );
30
35
  export {
31
- s as LoadingIcon
36
+ u as buttonVariants
32
37
  };