@gv-tech/ui-web 2.19.0 → 2.21.0

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 (287) hide show
  1. package/dist/accordion-Be1vGv6M.js +1 -0
  2. package/dist/accordion-DXnU0LgU.mjs +221 -0
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.mjs +3 -259
  5. package/dist/alert-dialog-BXRY0Ghq.js +7 -0
  6. package/dist/alert-dialog-fcZ-sL7h.mjs +164 -0
  7. package/dist/alert-dialog.cjs +1 -7
  8. package/dist/alert-dialog.mjs +4 -171
  9. package/dist/alert.cjs +1 -1
  10. package/dist/alert.mjs +35 -32
  11. package/dist/aspect-ratio-BP5HarYZ.js +1 -0
  12. package/dist/aspect-ratio-Bp8HMg-1.mjs +33 -0
  13. package/dist/aspect-ratio.cjs +1 -1
  14. package/dist/aspect-ratio.mjs +3 -43
  15. package/dist/avatar-klFl8Sqa.js +1 -0
  16. package/dist/avatar-vGm9JN1a.mjs +184 -0
  17. package/dist/avatar.cjs +1 -1
  18. package/dist/avatar.mjs +3 -205
  19. package/dist/badge.cjs +1 -1
  20. package/dist/badge.mjs +21 -24
  21. package/dist/breadcrumb.cjs +1 -1
  22. package/dist/breadcrumb.mjs +60 -68
  23. package/dist/button.cjs +1 -1
  24. package/dist/button.mjs +40 -40
  25. package/dist/calendar-aIuSXzs7.js +1 -0
  26. package/dist/calendar-oitID53a.mjs +3154 -0
  27. package/dist/calendar.cjs +1 -1
  28. package/dist/calendar.mjs +4 -2976
  29. package/dist/card.cjs +1 -1
  30. package/dist/card.mjs +42 -32
  31. package/dist/carousel-BjTSkVh9.js +1 -0
  32. package/dist/carousel-CENzZCXN.mjs +1178 -0
  33. package/dist/carousel.cjs +1 -1
  34. package/dist/carousel.mjs +4 -1403
  35. package/dist/chart.cjs +4 -4
  36. package/dist/chart.d.ts +3 -35
  37. package/dist/chart.mjs +123 -182
  38. package/dist/checkbox-Bwq7mXA2.mjs +170 -0
  39. package/dist/checkbox-DzEO1q4R.js +1 -0
  40. package/dist/checkbox.cjs +1 -1
  41. package/dist/checkbox.mjs +3 -258
  42. package/dist/collapsible.cjs +1 -1
  43. package/dist/collapsible.mjs +6 -7
  44. package/dist/command-D7hksKY6.js +1 -0
  45. package/dist/command-Ws_iF1hM.mjs +531 -0
  46. package/dist/command.cjs +1 -1
  47. package/dist/command.mjs +3 -396
  48. package/dist/context-menu-DJbgNJ7N.js +1 -0
  49. package/dist/context-menu-fu39gePi.mjs +292 -0
  50. package/dist/context-menu.cjs +1 -1
  51. package/dist/context-menu.mjs +3 -328
  52. package/dist/dialog.cjs +1 -1
  53. package/dist/dialog.mjs +50 -66
  54. package/dist/dist-0FXx-pUX.js +1 -0
  55. package/dist/dist-4A0ut6a8.mjs +10 -0
  56. package/dist/dist-ALQAoSGx.mjs +10 -0
  57. package/dist/dist-B4N_7Tps.js +1 -0
  58. package/dist/dist-B5776DvK.js +5 -0
  59. package/dist/dist-B57mzJP3.mjs +28 -0
  60. package/dist/dist-B5VmV2K7.js +1 -0
  61. package/dist/dist-BBRD-Qfb.js +1 -0
  62. package/dist/dist-BC_VB6JL.mjs +25 -0
  63. package/dist/dist-BKFtvTm8.mjs +6 -0
  64. package/dist/dist-BUS_s_6N.js +1 -0
  65. package/dist/dist-BVKPqhkg.js +1 -0
  66. package/dist/dist-Ba7mQG9D.mjs +117 -0
  67. package/dist/dist-BeFCyPgD.js +1 -0
  68. package/dist/dist-Bf4P28CV.js +1 -0
  69. package/dist/dist-BfFVoFJN.js +1 -0
  70. package/dist/dist-BhtQH_6Z.js +1 -0
  71. package/dist/dist-BmjFh8i_.mjs +5 -0
  72. package/dist/dist-BrCTkQXt.mjs +62 -0
  73. package/dist/dist-BxmpAHsT.mjs +219 -0
  74. package/dist/dist-C2ArLRnq.js +1 -0
  75. package/dist/dist-C2pRTcV_.mjs +62 -0
  76. package/dist/dist-C9wnUiS4.mjs +27 -0
  77. package/dist/dist-CIRItnqs.js +1 -0
  78. package/dist/dist-CL1DhkaL.js +1 -0
  79. package/dist/dist-CRe7xawr.js +1 -0
  80. package/dist/dist-CUFjt0cI.js +1 -0
  81. package/dist/dist-CaaGWewc.mjs +557 -0
  82. package/dist/dist-Ci2whnVp.js +1 -0
  83. package/dist/dist-CmBtqW5f.js +1 -0
  84. package/dist/dist-CsEsK2jW.js +1 -0
  85. package/dist/dist-CscAxhT8.js +1 -0
  86. package/dist/dist-CvtF5JdF.mjs +95 -0
  87. package/dist/dist-Cvwtowos.mjs +77 -0
  88. package/dist/dist-D2f83VMO.mjs +73 -0
  89. package/dist/dist-Dh_jWJh-.mjs +11 -0
  90. package/dist/dist-DikyKBU3.mjs +12 -0
  91. package/dist/dist-DmmUjo_P.js +1 -0
  92. package/dist/dist-DqvQ5UFr.mjs +38 -0
  93. package/dist/dist-FGQAMrhH.mjs +29 -0
  94. package/dist/dist-Jtk3jeb9.mjs +18 -0
  95. package/dist/dist-Kqk0oQYU.js +1 -0
  96. package/dist/dist-VI9bl_Wk.mjs +45 -0
  97. package/dist/dist-Z7lEV5Nx.mjs +1282 -0
  98. package/dist/dist-_Osar3kp.js +1 -0
  99. package/dist/dist-bDoR0CBU.mjs +112 -0
  100. package/dist/dist-cRjbOZRf.js +1 -0
  101. package/dist/dist-d_pecHgw.mjs +66 -0
  102. package/dist/dist-r36zVVcK.js +1 -0
  103. package/dist/dist-sRlXdzvf.mjs +152 -0
  104. package/dist/drawer.cjs +1 -1
  105. package/dist/drawer.mjs +48 -54
  106. package/dist/dropdown-menu-BGkQXJ-r.mjs +288 -0
  107. package/dist/dropdown-menu-uGMnmGL-.js +1 -0
  108. package/dist/dropdown-menu.cjs +1 -1
  109. package/dist/dropdown-menu.mjs +3 -316
  110. package/dist/es2015-Cx0gpR1a.js +41 -0
  111. package/dist/es2015-a1b8kENC.mjs +701 -0
  112. package/dist/form.cjs +1 -1
  113. package/dist/form.mjs +76 -67
  114. package/dist/hover-card-DdIYJP-Q.mjs +167 -0
  115. package/dist/hover-card-Ua-2KlY-.js +1 -0
  116. package/dist/hover-card.cjs +1 -1
  117. package/dist/hover-card.mjs +3 -188
  118. package/dist/index.cjs +1 -1
  119. package/dist/index.d.ts +3 -35
  120. package/dist/index.mjs +56 -296
  121. package/dist/input.cjs +1 -1
  122. package/dist/input.mjs +14 -19
  123. package/dist/jsx-runtime-CN3qjQQx.js +6 -0
  124. package/dist/jsx-runtime-CW53Uo-e.mjs +189 -0
  125. package/dist/label-8YSUv4kt.js +1 -0
  126. package/dist/label-Bur66PVg.mjs +22 -0
  127. package/dist/label.cjs +1 -1
  128. package/dist/label.mjs +3 -22
  129. package/dist/menubar-Bq1Sfbf5.js +1 -0
  130. package/dist/menubar-D2fY6zkQ.mjs +410 -0
  131. package/dist/menubar.cjs +1 -1
  132. package/dist/menubar.mjs +3 -473
  133. package/dist/navigation-menu-BuOakbgA.mjs +602 -0
  134. package/dist/navigation-menu-so6EvLAY.js +1 -0
  135. package/dist/navigation-menu.cjs +1 -1
  136. package/dist/navigation-menu.mjs +3 -673
  137. package/dist/pagination.cjs +1 -1
  138. package/dist/pagination.mjs +63 -68
  139. package/dist/popover-BUADXRkO.mjs +201 -0
  140. package/dist/popover-nBrSPqHk.js +1 -0
  141. package/dist/popover.cjs +1 -1
  142. package/dist/popover.mjs +3 -242
  143. package/dist/progress-BTApMbqg.js +6 -0
  144. package/dist/progress-BbN-RNvs.mjs +81 -0
  145. package/dist/progress.cjs +1 -6
  146. package/dist/progress.mjs +3 -99
  147. package/dist/radio-group-C5oprOrt.mjs +193 -0
  148. package/dist/radio-group-FDXr6VLM.js +1 -0
  149. package/dist/radio-group.cjs +1 -1
  150. package/dist/radio-group.mjs +3 -253
  151. package/dist/resizable-ChdgCzzx.mjs +1534 -0
  152. package/dist/resizable-ztiFzq_y.js +1 -0
  153. package/dist/resizable.cjs +1 -1
  154. package/dist/resizable.mjs +3 -1990
  155. package/dist/scroll-area-3o0-cc3n.mjs +520 -0
  156. package/dist/scroll-area-DXZqIKXN.js +1 -0
  157. package/dist/scroll-area.cjs +1 -1
  158. package/dist/scroll-area.mjs +3 -546
  159. package/dist/scroll-to-top.cjs +1 -1
  160. package/dist/scroll-to-top.mjs +71 -84
  161. package/dist/search.cjs +1 -1
  162. package/dist/search.mjs +53 -63
  163. package/dist/select-B2qM503G.mjs +744 -0
  164. package/dist/select-BHCeW-MD.js +1 -0
  165. package/dist/select.cjs +1 -1
  166. package/dist/select.mjs +3 -908
  167. package/dist/separator-BZJ-SDvg.js +1 -0
  168. package/dist/separator-DJ_IwKUQ.mjs +31 -0
  169. package/dist/separator.cjs +1 -1
  170. package/dist/separator.mjs +3 -35
  171. package/dist/sheet.cjs +1 -1
  172. package/dist/sheet.mjs +59 -66
  173. package/dist/skeleton.cjs +1 -1
  174. package/dist/skeleton.mjs +13 -7
  175. package/dist/slider-CJJPQ0fH.mjs +366 -0
  176. package/dist/slider-DHccqrW2.js +1 -0
  177. package/dist/slider.cjs +1 -1
  178. package/dist/slider.mjs +3 -442
  179. package/dist/sonner.cjs +1 -1
  180. package/dist/sonner.mjs +21 -24
  181. package/dist/support-fab.cjs +1 -1
  182. package/dist/support-fab.mjs +81 -117
  183. package/dist/switch-BbcAUYjl.mjs +103 -0
  184. package/dist/switch-DZfRzgWs.js +1 -0
  185. package/dist/switch.cjs +1 -1
  186. package/dist/switch.mjs +3 -149
  187. package/dist/table-of-contents.cjs +1 -1
  188. package/dist/table-of-contents.mjs +159 -155
  189. package/dist/table.cjs +1 -1
  190. package/dist/table.mjs +58 -57
  191. package/dist/tabs-BEy0IIV0.js +1 -0
  192. package/dist/tabs-DqAKyl9T.mjs +136 -0
  193. package/dist/tabs.cjs +1 -1
  194. package/dist/tabs.mjs +3 -195
  195. package/dist/text.cjs +1 -1
  196. package/dist/text.mjs +41 -42
  197. package/dist/textarea.cjs +1 -1
  198. package/dist/textarea.mjs +12 -17
  199. package/dist/theme-provider.cjs +1 -1
  200. package/dist/theme-provider.mjs +15 -7
  201. package/dist/theme-toggle-DKQmD-FO.js +1 -0
  202. package/dist/theme-toggle-dQbFWNI8.mjs +65 -0
  203. package/dist/theme-toggle.cjs +1 -1
  204. package/dist/theme-toggle.mjs +3 -8
  205. package/dist/toast-C84Cpidq.js +1 -0
  206. package/dist/toast-CQbUslcw.mjs +427 -0
  207. package/dist/toast.cjs +1 -1
  208. package/dist/toast.mjs +3 -494
  209. package/dist/toaster-BpcpNRz1.js +1 -0
  210. package/dist/toaster-i6giQYiq.mjs +126 -0
  211. package/dist/toaster.cjs +1 -1
  212. package/dist/toaster.mjs +3 -6
  213. package/dist/toggle-group-B2S7fkhA.mjs +155 -0
  214. package/dist/toggle-group-BNn6MNiJ.js +1 -0
  215. package/dist/toggle-group.cjs +1 -1
  216. package/dist/toggle-group.mjs +3 -170
  217. package/dist/toggle.cjs +1 -1
  218. package/dist/toggle.mjs +19 -14
  219. package/dist/tooltip-CElrNodA.js +1 -0
  220. package/dist/tooltip-oKfTBTbv.mjs +364 -0
  221. package/dist/tooltip.cjs +1 -1
  222. package/dist/tooltip.mjs +3 -342
  223. package/dist/utils-BxDanjP7.js +1 -0
  224. package/dist/utils-yc5uc46c.mjs +11 -0
  225. package/package.json +2 -2
  226. package/src/chart.tsx +7 -7
  227. package/src/setupTests.ts +5 -4
  228. package/dist/index-0ioNhtNM.mjs +0 -10
  229. package/dist/index-3j-XAIXT.mjs +0 -55
  230. package/dist/index-B2XtpfGY.js +0 -1
  231. package/dist/index-B39Lzq0v.js +0 -1
  232. package/dist/index-B7n6fy75.js +0 -1
  233. package/dist/index-B8dxbSWX.js +0 -41
  234. package/dist/index-BGIK9FQF.js +0 -1
  235. package/dist/index-BZPx6jYI.mjs +0 -8
  236. package/dist/index-BoNjHhm4.js +0 -1
  237. package/dist/index-BtZvtDmp.js +0 -1
  238. package/dist/index-Bv7qrYW6.mjs +0 -180
  239. package/dist/index-ByiPJW53.js +0 -5
  240. package/dist/index-C0dlIQIi.js +0 -1
  241. package/dist/index-C1qb0595.mjs +0 -27
  242. package/dist/index-C7HEunrh.mjs +0 -15
  243. package/dist/index-C8ni3LLa.js +0 -1
  244. package/dist/index-CCKe-Mpx.mjs +0 -6
  245. package/dist/index-CD6_IrA-.mjs +0 -10
  246. package/dist/index-CRyCZJLa.mjs +0 -677
  247. package/dist/index-CVx1AgNG.mjs +0 -615
  248. package/dist/index-Ce5TOFAK.js +0 -1
  249. package/dist/index-CeSLNJ60.mjs +0 -32
  250. package/dist/index-CefEQe_4.js +0 -1
  251. package/dist/index-Cj5hzyBi.js +0 -1
  252. package/dist/index-Cjj_rUPu.js +0 -1
  253. package/dist/index-Cl3G0jzM.js +0 -1
  254. package/dist/index-CwfE56Ep.mjs +0 -1545
  255. package/dist/index-CwyAfCwY.js +0 -1
  256. package/dist/index-CzY-WZXL.js +0 -1
  257. package/dist/index-D2HnlO3y.js +0 -1
  258. package/dist/index-DFdF7K7v.mjs +0 -50
  259. package/dist/index-DIsg7zU7.js +0 -1
  260. package/dist/index-DKN_vhyX.mjs +0 -32
  261. package/dist/index-DLcqcWxM.mjs +0 -29
  262. package/dist/index-DSxf1gN6.mjs +0 -118
  263. package/dist/index-DYxWvftI.js +0 -1
  264. package/dist/index-DaILh3TV.mjs +0 -32
  265. package/dist/index-Dfzl8TxY.mjs +0 -136
  266. package/dist/index-Dko2XdTk.js +0 -1
  267. package/dist/index-DlY82G31.mjs +0 -245
  268. package/dist/index-DnFcfnA9.mjs +0 -13
  269. package/dist/index-IZ2gq03c.mjs +0 -68
  270. package/dist/index-K9FzbxYw.mjs +0 -93
  271. package/dist/index-Le8p9oP4.mjs +0 -60
  272. package/dist/index-MQ0c3ZX_.js +0 -1
  273. package/dist/index-_XxjJPRD.js +0 -1
  274. package/dist/index-_wdrnYim.js +0 -1
  275. package/dist/index-jv3B4mTd.js +0 -1
  276. package/dist/index-kaM0u2Q1.js +0 -1
  277. package/dist/index-p6xVFRb4.mjs +0 -52
  278. package/dist/index-rKs9bXHr.mjs +0 -6
  279. package/dist/index-vuPgkS0V.mjs +0 -70
  280. package/dist/jsx-runtime-nZSsnGb7.js +0 -6
  281. package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
  282. package/dist/theme-toggle-DXQGNfCe.js +0 -1
  283. package/dist/theme-toggle-tHXIbr8W.mjs +0 -79
  284. package/dist/toaster-C_S9hnXa.js +0 -1
  285. package/dist/toaster-k5DnQSsh.mjs +0 -118
  286. package/dist/utils-DY6fhrgS.mjs +0 -12
  287. package/dist/utils-cdbZV8DZ.js +0 -1
@@ -0,0 +1,184 @@
1
+ import { i as e, n as t, t as n } from "./jsx-runtime-CW53Uo-e.mjs";
2
+ import { t as r } from "./utils-yc5uc46c.mjs";
3
+ import { t as i } from "./dist-BmjFh8i_.mjs";
4
+ import { t as a } from "./dist-ALQAoSGx.mjs";
5
+ import { t as o } from "./dist-DqvQ5UFr.mjs";
6
+ import { t as s } from "./dist-C2pRTcV_.mjs";
7
+ import * as c from "react";
8
+ //#region ../../node_modules/.bun/use-sync-external-store@1.6.0+d86b59289c1a13ae/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
9
+ var l = /* @__PURE__ */ t(((t) => {
10
+ var n = e("react");
11
+ function r(e, t) {
12
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
13
+ }
14
+ var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
15
+ function l(e, t) {
16
+ var n = t(), r = a({ inst: {
17
+ value: n,
18
+ getSnapshot: t
19
+ } }), i = r[0].inst, l = r[1];
20
+ return s(function() {
21
+ i.value = n, i.getSnapshot = t, u(i) && l({ inst: i });
22
+ }, [
23
+ e,
24
+ n,
25
+ t
26
+ ]), o(function() {
27
+ return u(i) && l({ inst: i }), e(function() {
28
+ u(i) && l({ inst: i });
29
+ });
30
+ }, [e]), c(n), n;
31
+ }
32
+ function u(e) {
33
+ var t = e.getSnapshot;
34
+ e = e.value;
35
+ try {
36
+ var n = t();
37
+ return !i(e, n);
38
+ } catch {
39
+ return !0;
40
+ }
41
+ }
42
+ function d(e, t) {
43
+ return t();
44
+ }
45
+ var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
46
+ t.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
47
+ })), u = /* @__PURE__ */ t(((t) => {
48
+ process.env.NODE_ENV !== "production" && (function() {
49
+ function n(e, t) {
50
+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
51
+ }
52
+ function r(e, t) {
53
+ f || o.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
54
+ var n = t();
55
+ if (!p) {
56
+ var r = t();
57
+ s(n, r) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
58
+ }
59
+ r = c({ inst: {
60
+ value: n,
61
+ getSnapshot: t
62
+ } });
63
+ var a = r[0].inst, m = r[1];
64
+ return u(function() {
65
+ a.value = n, a.getSnapshot = t, i(a) && m({ inst: a });
66
+ }, [
67
+ e,
68
+ n,
69
+ t
70
+ ]), l(function() {
71
+ return i(a) && m({ inst: a }), e(function() {
72
+ i(a) && m({ inst: a });
73
+ });
74
+ }, [e]), d(n), n;
75
+ }
76
+ function i(e) {
77
+ var t = e.getSnapshot;
78
+ e = e.value;
79
+ try {
80
+ var n = t();
81
+ return !s(e, n);
82
+ } catch {
83
+ return !0;
84
+ }
85
+ }
86
+ function a(e, t) {
87
+ return t();
88
+ }
89
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
90
+ var o = e("react"), s = typeof Object.is == "function" ? Object.is : n, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : r;
91
+ t.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
92
+ })();
93
+ })), d = (/* @__PURE__ */ t(((e, t) => {
94
+ process.env.NODE_ENV === "production" ? t.exports = l() : t.exports = u();
95
+ })))();
96
+ function f() {
97
+ return (0, d.useSyncExternalStore)(p, () => !0, () => !1);
98
+ }
99
+ function p() {
100
+ return () => {};
101
+ }
102
+ //#endregion
103
+ //#region ../../node_modules/.bun/@radix-ui+react-avatar@1.1.11+2d3f272c3a65784a/node_modules/@radix-ui/react-avatar/dist/index.mjs
104
+ var m = n(), h = "Avatar", [g, _] = s(h), [v, y] = g(h), b = c.forwardRef((e, t) => {
105
+ let { __scopeAvatar: n, ...r } = e, [i, a] = c.useState("idle");
106
+ return /* @__PURE__ */ (0, m.jsx)(v, {
107
+ scope: n,
108
+ imageLoadingStatus: i,
109
+ onImageLoadingStatusChange: a,
110
+ children: /* @__PURE__ */ (0, m.jsx)(o.span, {
111
+ ...r,
112
+ ref: t
113
+ })
114
+ });
115
+ });
116
+ b.displayName = h;
117
+ var x = "AvatarImage", S = c.forwardRef((e, t) => {
118
+ let { __scopeAvatar: n, src: r, onLoadingStatusChange: s = () => {}, ...c } = e, l = y(x, n), u = E(r, c), d = a((e) => {
119
+ s(e), l.onImageLoadingStatusChange(e);
120
+ });
121
+ return i(() => {
122
+ u !== "idle" && d(u);
123
+ }, [u, d]), u === "loaded" ? /* @__PURE__ */ (0, m.jsx)(o.img, {
124
+ ...c,
125
+ ref: t,
126
+ src: r
127
+ }) : null;
128
+ });
129
+ S.displayName = x;
130
+ var C = "AvatarFallback", w = c.forwardRef((e, t) => {
131
+ let { __scopeAvatar: n, delayMs: r, ...i } = e, a = y(C, n), [s, l] = c.useState(r === void 0);
132
+ return c.useEffect(() => {
133
+ if (r !== void 0) {
134
+ let e = window.setTimeout(() => l(!0), r);
135
+ return () => window.clearTimeout(e);
136
+ }
137
+ }, [r]), s && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ (0, m.jsx)(o.span, {
138
+ ...i,
139
+ ref: t
140
+ }) : null;
141
+ });
142
+ w.displayName = C;
143
+ function T(e, t) {
144
+ return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
145
+ }
146
+ function E(e, { referrerPolicy: t, crossOrigin: n }) {
147
+ let r = f(), a = c.useRef(null), o = r ? (a.current ||= new window.Image(), a.current) : null, [s, l] = c.useState(() => T(o, e));
148
+ return i(() => {
149
+ l(T(o, e));
150
+ }, [o, e]), i(() => {
151
+ let e = (e) => () => {
152
+ l(e);
153
+ };
154
+ if (!o) return;
155
+ let r = e("loaded"), i = e("error");
156
+ return o.addEventListener("load", r), o.addEventListener("error", i), t && (o.referrerPolicy = t), typeof n == "string" && (o.crossOrigin = n), () => {
157
+ o.removeEventListener("load", r), o.removeEventListener("error", i);
158
+ };
159
+ }, [
160
+ o,
161
+ n,
162
+ t
163
+ ]), s;
164
+ }
165
+ var D = b, O = S, k = w, A = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, m.jsx)(D, {
166
+ ref: n,
167
+ className: r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
168
+ ...t
169
+ }));
170
+ A.displayName = D?.displayName || "Avatar";
171
+ var j = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, m.jsx)(O, {
172
+ ref: n,
173
+ className: r("aspect-square h-full w-full", e),
174
+ ...t
175
+ }));
176
+ j.displayName = O?.displayName || "AvatarImage";
177
+ var M = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ (0, m.jsx)(k, {
178
+ ref: n,
179
+ className: r("bg-muted flex h-full w-full items-center justify-center rounded-full", e),
180
+ ...t
181
+ }));
182
+ M.displayName = k?.displayName || "AvatarFallback";
183
+ //#endregion
184
+ export { M as n, j as r, A as t };
package/dist/avatar.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./jsx-runtime-nZSsnGb7.js"),O=require("react"),F=require("./index-_wdrnYim.js"),K=require("./index-CzY-WZXL.js"),L=require("./index-MQ0c3ZX_.js"),R=require("./index-B39Lzq0v.js"),w=require("./utils-cdbZV8DZ.js");function W(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const v=W(O);var g={exports:{}},h={};var b;function z(){if(b)return h;b=1;var e=O;function t(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var r=typeof Object.is=="function"?Object.is:t,s=e.useState,u=e.useEffect,n=e.useLayoutEffect,S=e.useDebugValue;function d(o,l){var a=l(),i=s({inst:{value:a,getSnapshot:l}}),c=i[0].inst,m=i[1];return n(function(){c.value=a,c.getSnapshot=l,f(c)&&m({inst:c})},[o,a,l]),u(function(){return f(c)&&m({inst:c}),o(function(){f(c)&&m({inst:c})})},[o]),S(a),a}function f(o){var l=o.getSnapshot;o=o.value;try{var a=l();return!r(o,a)}catch{return!0}}function p(o,l){return l()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return h.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:_,h}var A={};var I;function Y(){return I||(I=1,process.env.NODE_ENV!=="production"&&(function(){function e(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function t(a,i){_||u.startTransition===void 0||(_=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var c=i();if(!o){var m=i();n(c,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),o=!0)}m=S({inst:{value:c,getSnapshot:i}});var E=m[0].inst,x=m[1];return f(function(){E.value=c,E.getSnapshot=i,r(E)&&x({inst:E})},[a,c,i]),d(function(){return r(E)&&x({inst:E}),a(function(){r(E)&&x({inst:E})})},[a]),p(c),c}function r(a){var i=a.getSnapshot;a=a.value;try{var c=i();return!n(a,c)}catch{return!0}}function s(a,i){return i()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=O,n=typeof Object.is=="function"?Object.is:e,S=u.useState,d=u.useEffect,f=u.useLayoutEffect,p=u.useDebugValue,_=!1,o=!1,l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:t;A.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:l,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),A}var N;function J(){return N||(N=1,process.env.NODE_ENV==="production"?g.exports=z():g.exports=Y()),g.exports}var Q=J();function X(){return Q.useSyncExternalStore(Z,()=>!0,()=>!1)}function Z(){return()=>{}}var j="Avatar",[ee]=F.createContextScope(j),[te,C]=ee(j),q=v.forwardRef((e,t)=>{const{__scopeAvatar:r,...s}=e,[u,n]=v.useState("idle");return y.jsxRuntimeExports.jsx(te,{scope:r,imageLoadingStatus:u,onImageLoadingStatusChange:n,children:y.jsxRuntimeExports.jsx(R.Primitive.span,{...s,ref:t})})});q.displayName=j;var D="AvatarImage",k=v.forwardRef((e,t)=>{const{__scopeAvatar:r,src:s,onLoadingStatusChange:u=()=>{},...n}=e,S=C(D,r),d=re(s,n),f=K.useCallbackRef(p=>{u(p),S.onImageLoadingStatusChange(p)});return L.useLayoutEffect2(()=>{d!=="idle"&&f(d)},[d,f]),d==="loaded"?y.jsxRuntimeExports.jsx(R.Primitive.img,{...n,ref:t,src:s}):null});k.displayName=D;var $="AvatarFallback",M=v.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:s,...u}=e,n=C($,r),[S,d]=v.useState(s===void 0);return v.useEffect(()=>{if(s!==void 0){const f=window.setTimeout(()=>d(!0),s);return()=>window.clearTimeout(f)}},[s]),S&&n.imageLoadingStatus!=="loaded"?y.jsxRuntimeExports.jsx(R.Primitive.span,{...u,ref:t}):null});M.displayName=$;function T(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function re(e,{referrerPolicy:t,crossOrigin:r}){const s=X(),u=v.useRef(null),n=s?(u.current||(u.current=new window.Image),u.current):null,[S,d]=v.useState(()=>T(n,e));return L.useLayoutEffect2(()=>{d(T(n,e))},[n,e]),L.useLayoutEffect2(()=>{const f=o=>()=>{d(o)};if(!n)return;const p=f("loaded"),_=f("error");return n.addEventListener("load",p),n.addEventListener("error",_),t&&(n.referrerPolicy=t),typeof r=="string"&&(n.crossOrigin=r),()=>{n.removeEventListener("load",p),n.removeEventListener("error",_)}},[n,r,t]),S}var G=q,V=k,P=M;const H=v.forwardRef(({className:e,...t},r)=>y.jsxRuntimeExports.jsx(G,{ref:r,className:w.cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));H.displayName=G?.displayName||"Avatar";const U=v.forwardRef(({className:e,...t},r)=>y.jsxRuntimeExports.jsx(V,{ref:r,className:w.cn("aspect-square h-full w-full",e),...t}));U.displayName=V?.displayName||"AvatarImage";const B=v.forwardRef(({className:e,...t},r)=>y.jsxRuntimeExports.jsx(P,{ref:r,className:w.cn("bg-muted flex h-full w-full items-center justify-center rounded-full",e),...t}));B.displayName=P?.displayName||"AvatarFallback";exports.Avatar=H;exports.AvatarFallback=B;exports.AvatarImage=U;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./avatar-klFl8Sqa.js`);exports.Avatar=e.t,exports.AvatarFallback=e.n,exports.AvatarImage=e.r;
package/dist/avatar.mjs CHANGED
@@ -1,206 +1,4 @@
1
1
  "use client";
2
- import { j as h } from "./jsx-runtime-tc70JA_2.mjs";
3
- import * as S from "react";
4
- import b from "react";
5
- import { c as B } from "./index-3j-XAIXT.mjs";
6
- import { u as K } from "./index-0ioNhtNM.mjs";
7
- import { u as O } from "./index-CCKe-Mpx.mjs";
8
- import { P as x } from "./index-DaILh3TV.mjs";
9
- import { c as w } from "./utils-DY6fhrgS.mjs";
10
- var y = { exports: {} }, L = {};
11
- var I;
12
- function $() {
13
- if (I) return L;
14
- I = 1;
15
- var e = b;
16
- function t(o, d) {
17
- return o === d && (o !== 0 || 1 / o === 1 / d) || o !== o && d !== d;
18
- }
19
- var a = typeof Object.is == "function" ? Object.is : t, c = e.useState, u = e.useEffect, r = e.useLayoutEffect, v = e.useDebugValue;
20
- function l(o, d) {
21
- var n = d(), s = c({ inst: { value: n, getSnapshot: d } }), i = s[0].inst, m = s[1];
22
- return r(
23
- function() {
24
- i.value = n, i.getSnapshot = d, f(i) && m({ inst: i });
25
- },
26
- [o, n, d]
27
- ), u(
28
- function() {
29
- return f(i) && m({ inst: i }), o(function() {
30
- f(i) && m({ inst: i });
31
- });
32
- },
33
- [o]
34
- ), v(n), n;
35
- }
36
- function f(o) {
37
- var d = o.getSnapshot;
38
- o = o.value;
39
- try {
40
- var n = d();
41
- return !a(o, n);
42
- } catch {
43
- return !0;
44
- }
45
- }
46
- function p(o, d) {
47
- return d();
48
- }
49
- var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : l;
50
- return L.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E, L;
51
- }
52
- var A = {};
53
- var N;
54
- function F() {
55
- return N || (N = 1, process.env.NODE_ENV !== "production" && (function() {
56
- function e(n, s) {
57
- return n === s && (n !== 0 || 1 / n === 1 / s) || n !== n && s !== s;
58
- }
59
- function t(n, s) {
60
- E || u.startTransition === void 0 || (E = !0, console.error(
61
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
62
- ));
63
- var i = s();
64
- if (!o) {
65
- var m = s();
66
- r(i, m) || (console.error(
67
- "The result of getSnapshot should be cached to avoid an infinite loop"
68
- ), o = !0);
69
- }
70
- m = v({
71
- inst: { value: i, getSnapshot: s }
72
- });
73
- var _ = m[0].inst, g = m[1];
74
- return f(
75
- function() {
76
- _.value = i, _.getSnapshot = s, a(_) && g({ inst: _ });
77
- },
78
- [n, i, s]
79
- ), l(
80
- function() {
81
- return a(_) && g({ inst: _ }), n(function() {
82
- a(_) && g({ inst: _ });
83
- });
84
- },
85
- [n]
86
- ), p(i), i;
87
- }
88
- function a(n) {
89
- var s = n.getSnapshot;
90
- n = n.value;
91
- try {
92
- var i = s();
93
- return !r(n, i);
94
- } catch {
95
- return !0;
96
- }
97
- }
98
- function c(n, s) {
99
- return s();
100
- }
101
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
102
- var u = b, r = typeof Object.is == "function" ? Object.is : e, v = u.useState, l = u.useEffect, f = u.useLayoutEffect, p = u.useDebugValue, E = !1, o = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : t;
103
- A.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
104
- })()), A;
105
- }
106
- var C;
107
- function P() {
108
- return C || (C = 1, process.env.NODE_ENV === "production" ? y.exports = $() : y.exports = F()), y.exports;
109
- }
110
- var W = P();
111
- function Y() {
112
- return W.useSyncExternalStore(
113
- z,
114
- () => !0,
115
- () => !1
116
- );
117
- }
118
- function z() {
119
- return () => {
120
- };
121
- }
122
- var R = "Avatar", [J] = B(R), [Q, j] = J(R), D = S.forwardRef(
123
- (e, t) => {
124
- const { __scopeAvatar: a, ...c } = e, [u, r] = S.useState("idle");
125
- return /* @__PURE__ */ h.jsx(
126
- Q,
127
- {
128
- scope: a,
129
- imageLoadingStatus: u,
130
- onImageLoadingStatusChange: r,
131
- children: /* @__PURE__ */ h.jsx(x.span, { ...c, ref: t })
132
- }
133
- );
134
- }
135
- );
136
- D.displayName = R;
137
- var k = "AvatarImage", G = S.forwardRef(
138
- (e, t) => {
139
- const { __scopeAvatar: a, src: c, onLoadingStatusChange: u = () => {
140
- }, ...r } = e, v = j(k, a), l = X(c, r), f = K((p) => {
141
- u(p), v.onImageLoadingStatusChange(p);
142
- });
143
- return O(() => {
144
- l !== "idle" && f(l);
145
- }, [l, f]), l === "loaded" ? /* @__PURE__ */ h.jsx(x.img, { ...r, ref: t, src: c }) : null;
146
- }
147
- );
148
- G.displayName = k;
149
- var V = "AvatarFallback", M = S.forwardRef(
150
- (e, t) => {
151
- const { __scopeAvatar: a, delayMs: c, ...u } = e, r = j(V, a), [v, l] = S.useState(c === void 0);
152
- return S.useEffect(() => {
153
- if (c !== void 0) {
154
- const f = window.setTimeout(() => l(!0), c);
155
- return () => window.clearTimeout(f);
156
- }
157
- }, [c]), v && r.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ h.jsx(x.span, { ...u, ref: t }) : null;
158
- }
159
- );
160
- M.displayName = V;
161
- function T(e, t) {
162
- return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
163
- }
164
- function X(e, { referrerPolicy: t, crossOrigin: a }) {
165
- const c = Y(), u = S.useRef(null), r = c ? (u.current || (u.current = new window.Image()), u.current) : null, [v, l] = S.useState(
166
- () => T(r, e)
167
- );
168
- return O(() => {
169
- l(T(r, e));
170
- }, [r, e]), O(() => {
171
- const f = (o) => () => {
172
- l(o);
173
- };
174
- if (!r) return;
175
- const p = f("loaded"), E = f("error");
176
- return r.addEventListener("load", p), r.addEventListener("error", E), t && (r.referrerPolicy = t), typeof a == "string" && (r.crossOrigin = a), () => {
177
- r.removeEventListener("load", p), r.removeEventListener("error", E);
178
- };
179
- }, [r, a, t]), v;
180
- }
181
- var H = D, U = G, q = M;
182
- const Z = S.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ h.jsx(
183
- H,
184
- {
185
- ref: a,
186
- className: w("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
187
- ...t
188
- }
189
- ));
190
- Z.displayName = H?.displayName || "Avatar";
191
- const ee = S.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ h.jsx(U, { ref: a, className: w("aspect-square h-full w-full", e), ...t }));
192
- ee.displayName = U?.displayName || "AvatarImage";
193
- const te = S.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ h.jsx(
194
- q,
195
- {
196
- ref: a,
197
- className: w("bg-muted flex h-full w-full items-center justify-center rounded-full", e),
198
- ...t
199
- }
200
- ));
201
- te.displayName = q?.displayName || "AvatarFallback";
202
- export {
203
- Z as Avatar,
204
- te as AvatarFallback,
205
- ee as AvatarImage
206
- };
2
+ "use client";
3
+ import { n as e, r as t, t as n } from "./avatar-vGm9JN1a.mjs";
4
+ export { n as Avatar, e as AvatarFallback, t as AvatarImage };
package/dist/badge.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-nZSsnGb7.js"),a=require("class-variance-authority"),s=require("./utils-cdbZV8DZ.js"),e=a.cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i({className:r,variant:t,...n}){return o.jsxRuntimeExports.jsx("div",{className:s.cn(e({variant:t}),r),...n})}exports.Badge=i;exports.badgeVariants=e;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./utils-BxDanjP7.js`);let n=require(`react`);n=e.i(n);let r=require(`class-variance-authority`);var i=e.t(),a=(0,r.cva)(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function o({className:e,variant:n,...r}){return(0,i.jsx)(`div`,{className:t.t(a({variant:n}),e),...r})}exports.Badge=o,exports.badgeVariants=a;
package/dist/badge.mjs CHANGED
@@ -1,27 +1,24 @@
1
1
  "use client";
2
- import { j as o } from "./jsx-runtime-tc70JA_2.mjs";
2
+ "use client";
3
+ import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
4
+ import { t } from "./utils-yc5uc46c.mjs";
5
+ import "react";
3
6
  import { cva as n } from "class-variance-authority";
4
- import { c as a } from "./utils-DY6fhrgS.mjs";
5
- const s = n(
6
- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
7
- {
8
- variants: {
9
- variant: {
10
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
11
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
12
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
13
- outline: "text-foreground"
14
- }
15
- },
16
- defaultVariants: {
17
- variant: "default"
18
- }
19
- }
20
- );
21
- function c({ className: r, variant: e, ...t }) {
22
- return /* @__PURE__ */ o.jsx("div", { className: a(s({ variant: e }), r), ...t });
7
+ //#region src/badge.tsx
8
+ var r = e(), i = n("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
9
+ variants: { variant: {
10
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
11
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
12
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
13
+ outline: "text-foreground"
14
+ } },
15
+ defaultVariants: { variant: "default" }
16
+ });
17
+ function a({ className: e, variant: n, ...a }) {
18
+ return /* @__PURE__ */ (0, r.jsx)("div", {
19
+ className: t(i({ variant: n }), e),
20
+ ...a
21
+ });
23
22
  }
24
- export {
25
- c as Badge,
26
- s as badgeVariants
27
- };
23
+ //#endregion
24
+ export { a as Badge, i as badgeVariants };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-nZSsnGb7.js"),f=require("./index-Cj5hzyBi.js"),i=require("lucide-react"),j=require("react"),s=require("./utils-cdbZV8DZ.js");function B(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const n=B(j),o=n.forwardRef(({...e},r)=>t.jsxRuntimeExports.jsx("nav",{ref:r,"aria-label":"breadcrumb",...e}));o.displayName="Breadcrumb";const m=n.forwardRef(({className:e,...r},a)=>t.jsxRuntimeExports.jsx("ol",{ref:a,className:s.cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...r}));m.displayName="BreadcrumbList";const u=n.forwardRef(({className:e,...r},a)=>t.jsxRuntimeExports.jsx("li",{ref:a,className:s.cn("inline-flex items-center gap-1.5",e),...r}));u.displayName="BreadcrumbItem";const l=n.forwardRef(({asChild:e,className:r,...a},c)=>{const b=e?f.Slot:"a";return t.jsxRuntimeExports.jsx(b,{ref:c,className:s.cn("hover:text-foreground transition-colors",r),...a})});l.displayName="BreadcrumbLink";const d=n.forwardRef(({className:e,...r},a)=>t.jsxRuntimeExports.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:s.cn("text-foreground font-normal",e),...r}));d.displayName="BreadcrumbPage";const p=({children:e,className:r,...a})=>t.jsxRuntimeExports.jsx("li",{role:"presentation","aria-hidden":"true",className:s.cn("[&>svg]:h-3.5 [&>svg]:w-3.5",r),...a,children:e??t.jsxRuntimeExports.jsx(i.ChevronRight,{})});p.displayName="BreadcrumbSeparator";const x=({className:e,...r})=>t.jsxRuntimeExports.jsxs("span",{role:"presentation","aria-hidden":"true",className:s.cn("flex h-9 w-9 items-center justify-center",e),...r,children:[t.jsxRuntimeExports.jsx(i.MoreHorizontal,{className:"h-4 w-4"}),t.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]});x.displayName="BreadcrumbElipssis";exports.Breadcrumb=o;exports.BreadcrumbEllipsis=x;exports.BreadcrumbItem=u;exports.BreadcrumbLink=l;exports.BreadcrumbList=m;exports.BreadcrumbPage=d;exports.BreadcrumbSeparator=p;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./utils-BxDanjP7.js`),n=require(`./dist-CmBtqW5f.js`);let r=require(`react`);r=e.i(r);let i=require(`lucide-react`);var a=e.t(),o=r.forwardRef(({...e},t)=>(0,a.jsx)(`nav`,{ref:t,"aria-label":`breadcrumb`,...e}));o.displayName=`Breadcrumb`;var s=r.forwardRef(({className:e,...n},r)=>(0,a.jsx)(`ol`,{ref:r,className:t.t(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,e),...n}));s.displayName=`BreadcrumbList`;var c=r.forwardRef(({className:e,...n},r)=>(0,a.jsx)(`li`,{ref:r,className:t.t(`inline-flex items-center gap-1.5`,e),...n}));c.displayName=`BreadcrumbItem`;var l=r.forwardRef(({asChild:e,className:r,...i},o)=>(0,a.jsx)(e?n.t:`a`,{ref:o,className:t.t(`hover:text-foreground transition-colors`,r),...i}));l.displayName=`BreadcrumbLink`;var u=r.forwardRef(({className:e,...n},r)=>(0,a.jsx)(`span`,{ref:r,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:t.t(`text-foreground font-normal`,e),...n}));u.displayName=`BreadcrumbPage`;var d=({children:e,className:n,...r})=>(0,a.jsx)(`li`,{role:`presentation`,"aria-hidden":`true`,className:t.t(`[&>svg]:h-3.5 [&>svg]:w-3.5`,n),...r,children:e??(0,a.jsx)(i.ChevronRight,{})});d.displayName=`BreadcrumbSeparator`;var f=({className:e,...n})=>(0,a.jsxs)(`span`,{role:`presentation`,"aria-hidden":`true`,className:t.t(`flex h-9 w-9 items-center justify-center`,e),...n,children:[(0,a.jsx)(i.MoreHorizontal,{className:`h-4 w-4`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`More`})]});f.displayName=`BreadcrumbElipssis`,exports.Breadcrumb=o,exports.BreadcrumbEllipsis=f,exports.BreadcrumbItem=c,exports.BreadcrumbLink=l,exports.BreadcrumbList=s,exports.BreadcrumbPage=u,exports.BreadcrumbSeparator=d;
@@ -1,70 +1,62 @@
1
1
  "use client";
2
- import { j as a } from "./jsx-runtime-tc70JA_2.mjs";
3
- import { S as n } from "./index-Le8p9oP4.mjs";
4
- import { MoreHorizontal as c, ChevronRight as l } from "lucide-react";
5
- import * as o from "react";
6
- import { c as t } from "./utils-DY6fhrgS.mjs";
7
- const d = o.forwardRef(({ ...r }, e) => /* @__PURE__ */ a.jsx("nav", { ref: e, "aria-label": "breadcrumb", ...r }));
8
- d.displayName = "Breadcrumb";
9
- const p = o.forwardRef(({ className: r, ...e }, s) => /* @__PURE__ */ a.jsx(
10
- "ol",
11
- {
12
- ref: s,
13
- className: t(
14
- "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
15
- r
16
- ),
17
- ...e
18
- }
19
- ));
20
- p.displayName = "BreadcrumbList";
21
- const u = o.forwardRef(
22
- ({ className: r, ...e }, s) => /* @__PURE__ */ a.jsx("li", { ref: s, className: t("inline-flex items-center gap-1.5", r), ...e })
23
- );
24
- u.displayName = "BreadcrumbItem";
25
- const f = o.forwardRef(({ asChild: r, className: e, ...s }, m) => {
26
- const i = r ? n : "a";
27
- return /* @__PURE__ */ a.jsx(i, { ref: m, className: t("hover:text-foreground transition-colors", e), ...s });
2
+ "use client";
3
+ import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
4
+ import { t } from "./utils-yc5uc46c.mjs";
5
+ import { t as n } from "./dist-D2f83VMO.mjs";
6
+ import * as r from "react";
7
+ import { ChevronRight as i, MoreHorizontal as a } from "lucide-react";
8
+ //#region src/breadcrumb.tsx
9
+ var o = e(), s = r.forwardRef(({ ...e }, t) => /* @__PURE__ */ (0, o.jsx)("nav", {
10
+ ref: t,
11
+ "aria-label": "breadcrumb",
12
+ ...e
13
+ }));
14
+ s.displayName = "Breadcrumb";
15
+ var c = r.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, o.jsx)("ol", {
16
+ ref: r,
17
+ className: t("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", e),
18
+ ...n
19
+ }));
20
+ c.displayName = "BreadcrumbList";
21
+ var l = r.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, o.jsx)("li", {
22
+ ref: r,
23
+ className: t("inline-flex items-center gap-1.5", e),
24
+ ...n
25
+ }));
26
+ l.displayName = "BreadcrumbItem";
27
+ var u = r.forwardRef(({ asChild: e, className: r, ...i }, a) => /* @__PURE__ */ (0, o.jsx)(e ? n : "a", {
28
+ ref: a,
29
+ className: t("hover:text-foreground transition-colors", r),
30
+ ...i
31
+ }));
32
+ u.displayName = "BreadcrumbLink";
33
+ var d = r.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, o.jsx)("span", {
34
+ ref: r,
35
+ role: "link",
36
+ "aria-disabled": "true",
37
+ "aria-current": "page",
38
+ className: t("text-foreground font-normal", e),
39
+ ...n
40
+ }));
41
+ d.displayName = "BreadcrumbPage";
42
+ var f = ({ children: e, className: n, ...r }) => /* @__PURE__ */ (0, o.jsx)("li", {
43
+ role: "presentation",
44
+ "aria-hidden": "true",
45
+ className: t("[&>svg]:h-3.5 [&>svg]:w-3.5", n),
46
+ ...r,
47
+ children: e ?? /* @__PURE__ */ (0, o.jsx)(i, {})
48
+ });
49
+ f.displayName = "BreadcrumbSeparator";
50
+ var p = ({ className: e, ...n }) => /* @__PURE__ */ (0, o.jsxs)("span", {
51
+ role: "presentation",
52
+ "aria-hidden": "true",
53
+ className: t("flex h-9 w-9 items-center justify-center", e),
54
+ ...n,
55
+ children: [/* @__PURE__ */ (0, o.jsx)(a, { className: "h-4 w-4" }), /* @__PURE__ */ (0, o.jsx)("span", {
56
+ className: "sr-only",
57
+ children: "More"
58
+ })]
28
59
  });
29
- f.displayName = "BreadcrumbLink";
30
- const x = o.forwardRef(({ className: r, ...e }, s) => /* @__PURE__ */ a.jsx(
31
- "span",
32
- {
33
- ref: s,
34
- role: "link",
35
- "aria-disabled": "true",
36
- "aria-current": "page",
37
- className: t("text-foreground font-normal", r),
38
- ...e
39
- }
40
- ));
41
- x.displayName = "BreadcrumbPage";
42
- const b = ({
43
- children: r,
44
- className: e,
45
- ...s
46
- }) => /* @__PURE__ */ a.jsx("li", { role: "presentation", "aria-hidden": "true", className: t("[&>svg]:h-3.5 [&>svg]:w-3.5", e), ...s, children: r ?? /* @__PURE__ */ a.jsx(l, {}) });
47
- b.displayName = "BreadcrumbSeparator";
48
- const N = ({ className: r, ...e }) => /* @__PURE__ */ a.jsxs(
49
- "span",
50
- {
51
- role: "presentation",
52
- "aria-hidden": "true",
53
- className: t("flex h-9 w-9 items-center justify-center", r),
54
- ...e,
55
- children: [
56
- /* @__PURE__ */ a.jsx(c, { className: "h-4 w-4" }),
57
- /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "More" })
58
- ]
59
- }
60
- );
61
- N.displayName = "BreadcrumbElipssis";
62
- export {
63
- d as Breadcrumb,
64
- N as BreadcrumbEllipsis,
65
- u as BreadcrumbItem,
66
- f as BreadcrumbLink,
67
- p as BreadcrumbList,
68
- x as BreadcrumbPage,
69
- b as BreadcrumbSeparator
70
- };
60
+ p.displayName = "BreadcrumbElipssis";
61
+ //#endregion
62
+ export { s as Breadcrumb, p as BreadcrumbEllipsis, l as BreadcrumbItem, u as BreadcrumbLink, c as BreadcrumbList, d as BreadcrumbPage, f as BreadcrumbSeparator };
package/dist/button.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-nZSsnGb7.js"),d=require("./index-Cj5hzyBi.js"),l=require("class-variance-authority"),f=require("react"),g=require("./utils-cdbZV8DZ.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const v=b(f),o=l.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),s=v.forwardRef(({className:e,variant:r,size:t,asChild:n=!1,...i},a)=>{const u=n?d.Slot:"button";return c.jsxRuntimeExports.jsx(u,{className:g.cn(o({variant:r,size:t,className:e})),ref:a,...i})});s.displayName="Button";exports.Button=s;exports.buttonVariants=o;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./utils-BxDanjP7.js`),n=require(`./dist-CmBtqW5f.js`);let r=require(`react`);r=e.i(r);let i=require(`class-variance-authority`);var a=e.t(),o=(0,i.cva)(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),s=r.forwardRef(({className:e,variant:r,size:i,asChild:s=!1,...c},l)=>(0,a.jsx)(s?n.t:`button`,{className:t.t(o({variant:r,size:i,className:e})),ref:l,...c}));s.displayName=`Button`,exports.Button=s,exports.buttonVariants=o;