@gv-tech/ui-web 2.20.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
@@ -1,264 +0,0 @@
1
- import K from "react";
2
- var v = { exports: {} }, m = {};
3
- var I;
4
- function ee() {
5
- if (I) return m;
6
- I = 1;
7
- var l = /* @__PURE__ */ Symbol.for("react.transitional.element"), E = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function c(i, o, s) {
9
- var f = null;
10
- if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
11
- s = {};
12
- for (var d in o)
13
- d !== "key" && (s[d] = o[d]);
14
- } else s = o;
15
- return o = s.ref, {
16
- $$typeof: l,
17
- type: i,
18
- key: f,
19
- ref: o !== void 0 ? o : null,
20
- props: s
21
- };
22
- }
23
- return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
24
- }
25
- var _ = {};
26
- var $;
27
- function re() {
28
- return $ || ($ = 1, process.env.NODE_ENV !== "production" && (function() {
29
- function l(e) {
30
- if (e == null) return null;
31
- if (typeof e == "function")
32
- return e.$$typeof === H ? null : e.displayName || e.name || null;
33
- if (typeof e == "string") return e;
34
- switch (e) {
35
- case p:
36
- return "Fragment";
37
- case U:
38
- return "Profiler";
39
- case W:
40
- return "StrictMode";
41
- case z:
42
- return "Suspense";
43
- case G:
44
- return "SuspenseList";
45
- case B:
46
- return "Activity";
47
- }
48
- if (typeof e == "object")
49
- switch (typeof e.tag == "number" && console.error(
50
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
51
- ), e.$$typeof) {
52
- case M:
53
- return "Portal";
54
- case V:
55
- return e.displayName || "Context";
56
- case J:
57
- return (e._context.displayName || "Context") + ".Consumer";
58
- case q:
59
- var r = e.render;
60
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
61
- case X:
62
- return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
63
- case T:
64
- r = e._payload, e = e._init;
65
- try {
66
- return l(e(r));
67
- } catch {
68
- }
69
- }
70
- return null;
71
- }
72
- function E(e) {
73
- return "" + e;
74
- }
75
- function c(e) {
76
- try {
77
- E(e);
78
- var r = !1;
79
- } catch {
80
- r = !0;
81
- }
82
- if (r) {
83
- r = console;
84
- var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
- return t.call(
86
- r,
87
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
88
- n
89
- ), E(e);
90
- }
91
- }
92
- function i(e) {
93
- if (e === p) return "<>";
94
- if (typeof e == "object" && e !== null && e.$$typeof === T)
95
- return "<...>";
96
- try {
97
- var r = l(e);
98
- return r ? "<" + r + ">" : "<...>";
99
- } catch {
100
- return "<...>";
101
- }
102
- }
103
- function o() {
104
- var e = k.A;
105
- return e === null ? null : e.getOwner();
106
- }
107
- function s() {
108
- return Error("react-stack-top-frame");
109
- }
110
- function f(e) {
111
- if (x.call(e, "key")) {
112
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
113
- if (r && r.isReactWarning) return !1;
114
- }
115
- return e.key !== void 0;
116
- }
117
- function d(e, r) {
118
- function t() {
119
- g || (g = !0, console.error(
120
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
121
- r
122
- ));
123
- }
124
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
125
- get: t,
126
- configurable: !0
127
- });
128
- }
129
- function D() {
130
- var e = l(this.type);
131
- return h[e] || (h[e] = !0, console.error(
132
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
133
- )), e = this.props.ref, e !== void 0 ? e : null;
134
- }
135
- function L(e, r, t, n, b, A) {
136
- var a = t.ref;
137
- return e = {
138
- $$typeof: j,
139
- type: e,
140
- key: r,
141
- props: t,
142
- _owner: n
143
- }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
144
- enumerable: !1,
145
- get: D
146
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
147
- configurable: !1,
148
- enumerable: !1,
149
- writable: !0,
150
- value: 0
151
- }), Object.defineProperty(e, "_debugInfo", {
152
- configurable: !1,
153
- enumerable: !1,
154
- writable: !0,
155
- value: null
156
- }), Object.defineProperty(e, "_debugStack", {
157
- configurable: !1,
158
- enumerable: !1,
159
- writable: !0,
160
- value: b
161
- }), Object.defineProperty(e, "_debugTask", {
162
- configurable: !1,
163
- enumerable: !1,
164
- writable: !0,
165
- value: A
166
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
167
- }
168
- function P(e, r, t, n, b, A) {
169
- var a = r.children;
170
- if (a !== void 0)
171
- if (n)
172
- if (Z(a)) {
173
- for (n = 0; n < a.length; n++)
174
- w(a[n]);
175
- Object.freeze && Object.freeze(a);
176
- } else
177
- console.error(
178
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
- );
180
- else w(a);
181
- if (x.call(r, "key")) {
182
- a = l(e);
183
- var u = Object.keys(r).filter(function(Q) {
184
- return Q !== "key";
185
- });
186
- n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
187
- `A props object containing a "key" prop is being spread into JSX:
188
- let props = %s;
189
- <%s {...props} />
190
- React keys must be passed directly to JSX without using spread:
191
- let props = %s;
192
- <%s key={someKey} {...props} />`,
193
- n,
194
- a,
195
- u,
196
- a
197
- ), Y[a + n] = !0);
198
- }
199
- if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
200
- t = {};
201
- for (var S in r)
202
- S !== "key" && (t[S] = r[S]);
203
- } else t = r;
204
- return a && d(
205
- t,
206
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
207
- ), L(
208
- e,
209
- a,
210
- t,
211
- o(),
212
- b,
213
- A
214
- );
215
- }
216
- function w(e) {
217
- y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
218
- }
219
- function y(e) {
220
- return typeof e == "object" && e !== null && e.$$typeof === j;
221
- }
222
- var R = K, j = /* @__PURE__ */ Symbol.for("react.transitional.element"), M = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), W = /* @__PURE__ */ Symbol.for("react.strict_mode"), U = /* @__PURE__ */ Symbol.for("react.profiler"), J = /* @__PURE__ */ Symbol.for("react.consumer"), V = /* @__PURE__ */ Symbol.for("react.context"), q = /* @__PURE__ */ Symbol.for("react.forward_ref"), z = /* @__PURE__ */ Symbol.for("react.suspense"), G = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), H = /* @__PURE__ */ Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
223
- return null;
224
- };
225
- R = {
226
- react_stack_bottom_frame: function(e) {
227
- return e();
228
- }
229
- };
230
- var g, h = {}, N = R.react_stack_bottom_frame.bind(
231
- R,
232
- s
233
- )(), C = O(i(s)), Y = {};
234
- _.Fragment = p, _.jsx = function(e, r, t) {
235
- var n = 1e4 > k.recentlyCreatedOwnerStacks++;
236
- return P(
237
- e,
238
- r,
239
- t,
240
- !1,
241
- n ? Error("react-stack-top-frame") : N,
242
- n ? O(i(e)) : C
243
- );
244
- }, _.jsxs = function(e, r, t) {
245
- var n = 1e4 > k.recentlyCreatedOwnerStacks++;
246
- return P(
247
- e,
248
- r,
249
- t,
250
- !0,
251
- n ? Error("react-stack-top-frame") : N,
252
- n ? O(i(e)) : C
253
- );
254
- };
255
- })()), _;
256
- }
257
- var F;
258
- function te() {
259
- return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports;
260
- }
261
- var ae = te();
262
- export {
263
- ae as j
264
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-nZSsnGb7.js"),s=require("lucide-react"),j=require("./button.cjs"),t=require("./dropdown-menu.cjs"),d=require("@gv-tech/design-tokens"),T=require("next-themes"),r=require("./utils-cdbZV8DZ.js");function p(){const o=T.useTheme(),{resolvedTheme:i}=o,n=i==="dark"?d.theme.dark:d.theme.light;return{...o,tokens:n}}function k({variant:o="binary",onThemeChange:i,customTheme:n,className:c}){const{theme:R,setTheme:E,resolvedTheme:g}=p(),m=n??R,l=(n||g)==="dark",a=m==="system",x=h=>{i?i(h):E(h)},u=()=>e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(s.Sun,{className:r.cn("h-[1.2rem] w-[1.2rem] transition-all",!a&&!l?"scale-100 rotate-0":"scale-0 -rotate-90")}),e.jsxRuntimeExports.jsx(s.Moon,{className:r.cn("absolute h-[1.2rem] w-[1.2rem] transition-all",!a&&l?"scale-100 rotate-0":"scale-0 rotate-90")}),e.jsxRuntimeExports.jsx(s.SunMoon,{className:r.cn("absolute h-[1.2rem] w-[1.2rem] transition-all",a?"scale-100 rotate-0":"scale-0 rotate-90")}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle theme"})]});return o==="ternary"?e.jsxRuntimeExports.jsxs(t.DropdownMenu,{children:[e.jsxRuntimeExports.jsx(t.DropdownMenuTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(j.Button,{variant:"ghost",size:"icon",className:r.cn("relative h-9 w-9",c),children:e.jsxRuntimeExports.jsx(u,{})})}),e.jsxRuntimeExports.jsxs(t.DropdownMenuContent,{align:"end",children:[e.jsxRuntimeExports.jsxs(t.DropdownMenuItem,{onClick:()=>x("light"),children:[e.jsxRuntimeExports.jsx(s.Sun,{className:"mr-2 h-4 w-4"}),e.jsxRuntimeExports.jsx("span",{children:"Light"})]}),e.jsxRuntimeExports.jsxs(t.DropdownMenuItem,{onClick:()=>x("dark"),children:[e.jsxRuntimeExports.jsx(s.Moon,{className:"mr-2 h-4 w-4"}),e.jsxRuntimeExports.jsx("span",{children:"Dark"})]}),e.jsxRuntimeExports.jsxs(t.DropdownMenuItem,{onClick:()=>x("system"),children:[e.jsxRuntimeExports.jsx(s.SunMoon,{className:"mr-2 h-4 w-4"}),e.jsxRuntimeExports.jsx("span",{children:"System"})]})]})]}):e.jsxRuntimeExports.jsx(j.Button,{variant:"ghost",size:"icon",className:r.cn("relative h-9 w-9",c),onClick:()=>x(m==="dark"?"light":"dark"),"aria-label":"Toggle theme",children:e.jsxRuntimeExports.jsx(u,{})})}exports.ThemeToggle=k;exports.useTheme=p;
@@ -1,79 +0,0 @@
1
- import { j as e } from "./jsx-runtime-tc70JA_2.mjs";
2
- import { Sun as x, Moon as j, SunMoon as u } from "lucide-react";
3
- import { Button as g } from "./button.mjs";
4
- import { DropdownMenu as w, DropdownMenuTrigger as v, DropdownMenuContent as N, DropdownMenuItem as i } from "./dropdown-menu.mjs";
5
- import { theme as p } from "@gv-tech/design-tokens";
6
- import { useTheme as y } from "next-themes";
7
- import { c as r } from "./utils-DY6fhrgS.mjs";
8
- function C() {
9
- const t = y(), { resolvedTheme: n } = t, s = n === "dark" ? p.dark : p.light;
10
- return {
11
- ...t,
12
- tokens: s
13
- };
14
- }
15
- function F({ variant: t = "binary", onThemeChange: n, customTheme: s, className: l }) {
16
- const { theme: T, setTheme: f, resolvedTheme: k } = C(), c = s ?? T, m = (s || k) === "dark", o = c === "system", a = (d) => {
17
- n ? n(d) : f(d);
18
- }, h = () => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
19
- /* @__PURE__ */ e.jsx(
20
- x,
21
- {
22
- className: r(
23
- "h-[1.2rem] w-[1.2rem] transition-all",
24
- !o && !m ? "scale-100 rotate-0" : "scale-0 -rotate-90"
25
- )
26
- }
27
- ),
28
- /* @__PURE__ */ e.jsx(
29
- j,
30
- {
31
- className: r(
32
- "absolute h-[1.2rem] w-[1.2rem] transition-all",
33
- !o && m ? "scale-100 rotate-0" : "scale-0 rotate-90"
34
- )
35
- }
36
- ),
37
- /* @__PURE__ */ e.jsx(
38
- u,
39
- {
40
- className: r(
41
- "absolute h-[1.2rem] w-[1.2rem] transition-all",
42
- o ? "scale-100 rotate-0" : "scale-0 rotate-90"
43
- )
44
- }
45
- ),
46
- /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Toggle theme" })
47
- ] });
48
- return t === "ternary" ? /* @__PURE__ */ e.jsxs(w, { children: [
49
- /* @__PURE__ */ e.jsx(v, { asChild: !0, children: /* @__PURE__ */ e.jsx(g, { variant: "ghost", size: "icon", className: r("relative h-9 w-9", l), children: /* @__PURE__ */ e.jsx(h, {}) }) }),
50
- /* @__PURE__ */ e.jsxs(N, { align: "end", children: [
51
- /* @__PURE__ */ e.jsxs(i, { onClick: () => a("light"), children: [
52
- /* @__PURE__ */ e.jsx(x, { className: "mr-2 h-4 w-4" }),
53
- /* @__PURE__ */ e.jsx("span", { children: "Light" })
54
- ] }),
55
- /* @__PURE__ */ e.jsxs(i, { onClick: () => a("dark"), children: [
56
- /* @__PURE__ */ e.jsx(j, { className: "mr-2 h-4 w-4" }),
57
- /* @__PURE__ */ e.jsx("span", { children: "Dark" })
58
- ] }),
59
- /* @__PURE__ */ e.jsxs(i, { onClick: () => a("system"), children: [
60
- /* @__PURE__ */ e.jsx(u, { className: "mr-2 h-4 w-4" }),
61
- /* @__PURE__ */ e.jsx("span", { children: "System" })
62
- ] })
63
- ] })
64
- ] }) : /* @__PURE__ */ e.jsx(
65
- g,
66
- {
67
- variant: "ghost",
68
- size: "icon",
69
- className: r("relative h-9 w-9", l),
70
- onClick: () => a(c === "dark" ? "light" : "dark"),
71
- "aria-label": "Toggle theme",
72
- children: /* @__PURE__ */ e.jsx(h, {})
73
- }
74
- );
75
- }
76
- export {
77
- F as T,
78
- C as u
79
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("./jsx-runtime-nZSsnGb7.js"),m=require("react"),T=require("./toast.cjs");function _(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return s.default=t,Object.freeze(s)}const d=_(m),x=1,D=1e6,u={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let S=0;function j(){return S=(S+1)%Number.MAX_SAFE_INTEGER,S.toString()}const p=new Map,O=t=>{if(p.has(t))return;const s=setTimeout(()=>{p.delete(t),i({type:"REMOVE_TOAST",toastId:t})},D);p.set(t,s)},R=(t,s)=>{switch(s.type){case u.ADD_TOAST:return{...t,toasts:[s.toast,...t.toasts].slice(0,x)};case u.UPDATE_TOAST:return{...t,toasts:t.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case u.DISMISS_TOAST:{const{toastId:e}=s;return e?O(e):t.toasts.forEach(o=>{O(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===e||e===void 0?{...o,open:!1}:o)}}case u.REMOVE_TOAST:return s.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(e=>e.id!==s.toastId)}}},a=[];let c={toasts:[]};function i(t){c=R(c,t),a.forEach(s=>{s(c)})}function A({...t}){const s=j(),e=r=>i({type:"UPDATE_TOAST",toast:{...r,id:s}}),o=()=>i({type:"DISMISS_TOAST",toastId:s});return i({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:r=>{r||o()}}}),{id:s,dismiss:o,update:e}}function E(){const[t,s]=d.useState(c);return d.useEffect(()=>(a.push(s),()=>{const e=a.indexOf(s);e>-1&&a.splice(e,1)}),[t]),{...t,toast:A,dismiss:e=>i({type:"DISMISS_TOAST",toastId:e})}}function I({...t}){const{toasts:s}=E();return n.jsxRuntimeExports.jsxs(T.ToastProvider,{...t,children:[s.map(function({id:e,title:o,description:r,action:f,...l}){return n.jsxRuntimeExports.jsxs(T.Toast,{...l,children:[n.jsxRuntimeExports.jsxs("div",{className:"grid gap-1",children:[o&&n.jsxRuntimeExports.jsx(T.ToastTitle,{children:o}),r&&n.jsxRuntimeExports.jsx(T.ToastDescription,{children:r})]}),f,n.jsxRuntimeExports.jsx(T.ToastClose,{})]},e)}),n.jsxRuntimeExports.jsx(T.ToastViewport,{})]})}exports.Toaster=I;exports.toast=A;exports.useToast=E;
@@ -1,118 +0,0 @@
1
- import { j as T } from "./jsx-runtime-tc70JA_2.mjs";
2
- import * as A from "react";
3
- import { ToastProvider as E, Toast as _, ToastTitle as f, ToastDescription as m, ToastClose as D, ToastViewport as l } from "./toast.mjs";
4
- const I = 1, M = 1e6, a = {
5
- ADD_TOAST: "ADD_TOAST",
6
- UPDATE_TOAST: "UPDATE_TOAST",
7
- DISMISS_TOAST: "DISMISS_TOAST",
8
- REMOVE_TOAST: "REMOVE_TOAST"
9
- };
10
- let c = 0;
11
- function h() {
12
- return c = (c + 1) % Number.MAX_SAFE_INTEGER, c.toString();
13
- }
14
- const u = /* @__PURE__ */ new Map(), d = (t) => {
15
- if (u.has(t))
16
- return;
17
- const s = setTimeout(() => {
18
- u.delete(t), r({
19
- type: "REMOVE_TOAST",
20
- toastId: t
21
- });
22
- }, M);
23
- u.set(t, s);
24
- }, x = (t, s) => {
25
- switch (s.type) {
26
- case a.ADD_TOAST:
27
- return {
28
- ...t,
29
- toasts: [s.toast, ...t.toasts].slice(0, I)
30
- };
31
- case a.UPDATE_TOAST:
32
- return {
33
- ...t,
34
- toasts: t.toasts.map((e) => e.id === s.toast.id ? { ...e, ...s.toast } : e)
35
- };
36
- case a.DISMISS_TOAST: {
37
- const { toastId: e } = s;
38
- return e ? d(e) : t.toasts.forEach((o) => {
39
- d(o.id);
40
- }), {
41
- ...t,
42
- toasts: t.toasts.map(
43
- (o) => o.id === e || e === void 0 ? {
44
- ...o,
45
- open: !1
46
- } : o
47
- )
48
- };
49
- }
50
- case a.REMOVE_TOAST:
51
- return s.toastId === void 0 ? {
52
- ...t,
53
- toasts: []
54
- } : {
55
- ...t,
56
- toasts: t.toasts.filter((e) => e.id !== s.toastId)
57
- };
58
- }
59
- }, i = [];
60
- let S = { toasts: [] };
61
- function r(t) {
62
- S = x(S, t), i.forEach((s) => {
63
- s(S);
64
- });
65
- }
66
- function j({ ...t }) {
67
- const s = h(), e = (n) => r({
68
- type: "UPDATE_TOAST",
69
- toast: { ...n, id: s }
70
- }), o = () => r({ type: "DISMISS_TOAST", toastId: s });
71
- return r({
72
- type: "ADD_TOAST",
73
- toast: {
74
- ...t,
75
- id: s,
76
- open: !0,
77
- onOpenChange: (n) => {
78
- n || o();
79
- }
80
- }
81
- }), {
82
- id: s,
83
- dismiss: o,
84
- update: e
85
- };
86
- }
87
- function R() {
88
- const [t, s] = A.useState(S);
89
- return A.useEffect(() => (i.push(s), () => {
90
- const e = i.indexOf(s);
91
- e > -1 && i.splice(e, 1);
92
- }), [t]), {
93
- ...t,
94
- toast: j,
95
- dismiss: (e) => r({ type: "DISMISS_TOAST", toastId: e })
96
- };
97
- }
98
- function g({ ...t }) {
99
- const { toasts: s } = R();
100
- return /* @__PURE__ */ T.jsxs(E, { ...t, children: [
101
- s.map(function({ id: e, title: o, description: n, action: O, ...p }) {
102
- return /* @__PURE__ */ T.jsxs(_, { ...p, children: [
103
- /* @__PURE__ */ T.jsxs("div", { className: "grid gap-1", children: [
104
- o && /* @__PURE__ */ T.jsx(f, { children: o }),
105
- n && /* @__PURE__ */ T.jsx(m, { children: n })
106
- ] }),
107
- O,
108
- /* @__PURE__ */ T.jsx(D, {})
109
- ] }, e);
110
- }),
111
- /* @__PURE__ */ T.jsx(l, {})
112
- ] });
113
- }
114
- export {
115
- g as T,
116
- j as t,
117
- R as u
118
- };
@@ -1,12 +0,0 @@
1
- import { clsx as e } from "clsx";
2
- import { twMerge as t } from "tailwind-merge";
3
- function n(...r) {
4
- return t(e(r));
5
- }
6
- function i(r) {
7
- return r.toString().toLowerCase().trim().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-");
8
- }
9
- export {
10
- n as c,
11
- i as s
12
- };
@@ -1 +0,0 @@
1
- "use strict";const r=require("clsx"),t=require("tailwind-merge");function c(...e){return t.twMerge(r.clsx(e))}function n(e){return e.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-")}exports.cn=c;exports.slugify=n;