@vuer-ai/vuer-uikit 0.0.19 → 0.0.21

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 (248) hide show
  1. package/dist/chunk-2JCULHBM.js +58 -0
  2. package/dist/chunk-2TRYGIGT.mjs +76 -0
  3. package/dist/chunk-2YCL2ET2.js +431 -0
  4. package/dist/chunk-3FR3WKI4.mjs +24 -0
  5. package/dist/chunk-44KW6PTD.mjs +111 -0
  6. package/dist/chunk-5OUTEHVX.js +48 -0
  7. package/dist/chunk-5SR53QBZ.js +143 -0
  8. package/dist/chunk-5TVG5JK5.js +93 -0
  9. package/dist/chunk-5ZZC23M7.mjs +60 -0
  10. package/dist/chunk-6N5422RT.js +110 -0
  11. package/dist/chunk-AOUGWGQR.js +609 -0
  12. package/dist/chunk-B2E7AY66.mjs +86 -0
  13. package/dist/chunk-BOPZFNFS.mjs +54 -0
  14. package/dist/chunk-CLTLT5XW.js +27 -0
  15. package/dist/chunk-DDOX4EEM.mjs +46 -0
  16. package/dist/chunk-DZ4J7I7I.mjs +114 -0
  17. package/dist/chunk-E33MW663.js +179 -0
  18. package/dist/chunk-EAZQH4IX.mjs +27 -0
  19. package/dist/chunk-EFIRD3FN.js +69 -0
  20. package/dist/chunk-EOFYA6CS.js +53 -0
  21. package/dist/chunk-EUY74AXP.mjs +341 -0
  22. package/dist/chunk-EYIFKSU2.mjs +259 -0
  23. package/dist/chunk-F56ZKT7B.mjs +1 -0
  24. package/dist/chunk-F776EMXP.mjs +82 -0
  25. package/dist/chunk-FORVP7XH.js +164 -0
  26. package/dist/chunk-FP26SRGL.js +377 -0
  27. package/dist/chunk-FRT225GK.mjs +34 -0
  28. package/dist/chunk-G5KMD72J.mjs +162 -0
  29. package/dist/chunk-G6PRZVSE.mjs +71 -0
  30. package/dist/chunk-H5P4IX7R.js +67 -0
  31. package/dist/chunk-HLJ7PQA7.mjs +15 -0
  32. package/dist/chunk-IGBWUFZL.js +79 -0
  33. package/dist/chunk-IXHMIR5P.js +131 -0
  34. package/dist/chunk-JAMJUXBY.mjs +45 -0
  35. package/dist/chunk-JMPVDU2C.mjs +110 -0
  36. package/dist/chunk-KJ42IGH6.js +2 -0
  37. package/dist/chunk-KTNZSZ5Y.mjs +23 -0
  38. package/dist/chunk-LEPXSM36.mjs +46 -0
  39. package/dist/chunk-LLXRJYQB.mjs +31 -0
  40. package/dist/chunk-M4IVLZIH.mjs +1 -0
  41. package/dist/chunk-MRVMXKZO.mjs +106 -0
  42. package/dist/chunk-MZ4POL3U.js +301 -0
  43. package/dist/chunk-N7CINZS2.js +2 -0
  44. package/dist/chunk-NODFVSVC.mjs +39 -0
  45. package/dist/chunk-OOI3SJDU.mjs +206 -0
  46. package/dist/chunk-OQ237S4Z.js +94 -0
  47. package/dist/chunk-OTPUWWEB.js +98 -0
  48. package/dist/chunk-PIR7EZC6.js +187 -0
  49. package/dist/chunk-PVRQNCSJ.js +49 -0
  50. package/dist/chunk-Q5KEB4UK.mjs +51 -0
  51. package/dist/chunk-QEY7BWIR.js +208 -0
  52. package/dist/chunk-QJR6MCTR.js +32 -0
  53. package/dist/chunk-QVUX6LLD.mjs +270 -0
  54. package/dist/chunk-QYRRQ65X.mjs +115 -0
  55. package/dist/chunk-SKO72K64.js +118 -0
  56. package/dist/chunk-T3VSSE2L.mjs +165 -0
  57. package/dist/chunk-TMBKCIVQ.mjs +148 -0
  58. package/dist/chunk-U2ZLDPOE.js +261 -0
  59. package/dist/chunk-U7SNLMJR.js +110 -0
  60. package/dist/chunk-UFHMEEGL.js +113 -0
  61. package/dist/chunk-UKFVRXAR.mjs +409 -0
  62. package/dist/chunk-UPTTGNMB.js +41 -0
  63. package/dist/chunk-V4KNORQN.js +21 -0
  64. package/dist/chunk-VAXIFFOT.js +83 -0
  65. package/dist/chunk-VGCVIHBR.mjs +1 -0
  66. package/dist/chunk-VXHM7V6F.mjs +92 -0
  67. package/dist/chunk-WDUTW7HS.mjs +87 -0
  68. package/dist/chunk-WJ7T7FAH.js +135 -0
  69. package/dist/chunk-WO3WHXDP.mjs +66 -0
  70. package/dist/chunk-X55EAYE2.js +94 -0
  71. package/dist/chunk-XMG3IVGZ.mjs +95 -0
  72. package/dist/chunk-XWS4SIB5.js +2 -0
  73. package/dist/chunk-XXWQ4RVP.js +25 -0
  74. package/dist/chunk-Y5I2GI4V.js +33 -0
  75. package/dist/chunk-YXDJPCAF.js +99 -0
  76. package/dist/chunk-ZVG2UKKC.mjs +603 -0
  77. package/dist/highlight-cursor/cursor-context.d.mts +7 -0
  78. package/dist/highlight-cursor/cursor-context.d.ts +7 -0
  79. package/dist/highlight-cursor/cursor-context.js +14 -0
  80. package/dist/highlight-cursor/cursor-context.mjs +1 -0
  81. package/dist/highlight-cursor/cursor-provider.d.mts +7 -0
  82. package/dist/highlight-cursor/cursor-provider.d.ts +7 -0
  83. package/dist/highlight-cursor/cursor-provider.js +12 -0
  84. package/dist/highlight-cursor/cursor-provider.mjs +3 -0
  85. package/dist/highlight-cursor/enhanced-components.d.mts +20 -0
  86. package/dist/highlight-cursor/enhanced-components.d.ts +20 -0
  87. package/dist/highlight-cursor/enhanced-components.js +37 -0
  88. package/dist/highlight-cursor/enhanced-components.mjs +12 -0
  89. package/dist/highlight-cursor/index.d.mts +16 -0
  90. package/dist/highlight-cursor/index.d.ts +16 -0
  91. package/dist/highlight-cursor/index.js +51 -0
  92. package/dist/highlight-cursor/index.mjs +14 -0
  93. package/dist/highlight-cursor/tabs-cursor-context.d.mts +14 -0
  94. package/dist/highlight-cursor/tabs-cursor-context.d.ts +14 -0
  95. package/dist/highlight-cursor/tabs-cursor-context.js +14 -0
  96. package/dist/highlight-cursor/tabs-cursor-context.mjs +1 -0
  97. package/dist/highlight-cursor/types.d.mts +39 -0
  98. package/dist/highlight-cursor/types.d.ts +39 -0
  99. package/dist/highlight-cursor/types.js +2 -0
  100. package/dist/highlight-cursor/types.mjs +1 -0
  101. package/dist/highlight-cursor/with-cursor.d.mts +7 -0
  102. package/dist/highlight-cursor/with-cursor.d.ts +7 -0
  103. package/dist/highlight-cursor/with-cursor.js +11 -0
  104. package/dist/highlight-cursor/with-cursor.mjs +2 -0
  105. package/dist/index.css +318 -0
  106. package/dist/index.d.mts +55 -0
  107. package/dist/index.d.ts +55 -0
  108. package/dist/index.js +131 -131
  109. package/dist/index.mjs +38 -0
  110. package/dist/styles/theme.css +192 -0
  111. package/dist/styles/theme.d.mts +2 -0
  112. package/dist/styles/theme.d.ts +2 -0
  113. package/dist/styles/toast.css +61 -0
  114. package/dist/styles/toast.d.mts +2 -0
  115. package/dist/styles/toast.d.ts +2 -0
  116. package/dist/styles/variables.css +188 -0
  117. package/dist/styles/variables.d.mts +2 -0
  118. package/dist/styles/variables.d.ts +2 -0
  119. package/dist/ui/avatar.d.mts +16 -0
  120. package/dist/ui/avatar.d.ts +16 -0
  121. package/dist/ui/avatar.js +25 -0
  122. package/dist/ui/avatar.mjs +4 -0
  123. package/dist/ui/badge.d.mts +14 -0
  124. package/dist/ui/badge.d.ts +14 -0
  125. package/dist/ui/badge.js +17 -0
  126. package/dist/ui/badge.mjs +4 -0
  127. package/dist/ui/button.d.mts +16 -0
  128. package/dist/ui/button.d.ts +16 -0
  129. package/dist/ui/button.js +13 -0
  130. package/dist/ui/button.mjs +4 -0
  131. package/dist/ui/card.d.mts +12 -0
  132. package/dist/ui/card.d.ts +12 -0
  133. package/dist/ui/card.js +37 -0
  134. package/dist/ui/card.mjs +4 -0
  135. package/dist/ui/checkbox.d.mts +11 -0
  136. package/dist/ui/checkbox.d.ts +11 -0
  137. package/dist/ui/checkbox.js +13 -0
  138. package/dist/ui/checkbox.mjs +4 -0
  139. package/dist/ui/collapsible.d.mts +9 -0
  140. package/dist/ui/collapsible.d.ts +9 -0
  141. package/dist/ui/collapsible.js +21 -0
  142. package/dist/ui/collapsible.mjs +4 -0
  143. package/dist/ui/dropdown.d.mts +28 -0
  144. package/dist/ui/dropdown.d.ts +28 -0
  145. package/dist/ui/dropdown.js +69 -0
  146. package/dist/ui/dropdown.mjs +4 -0
  147. package/dist/ui/index.d.mts +47 -0
  148. package/dist/ui/index.d.ts +47 -0
  149. package/dist/ui/index.js +414 -0
  150. package/dist/ui/index.mjs +33 -0
  151. package/dist/ui/input-numbers.d.mts +15 -0
  152. package/dist/ui/input-numbers.d.ts +15 -0
  153. package/dist/ui/input-numbers.js +14 -0
  154. package/dist/ui/input-numbers.mjs +5 -0
  155. package/dist/ui/input.d.mts +22 -0
  156. package/dist/ui/input.d.ts +22 -0
  157. package/dist/ui/input.js +17 -0
  158. package/dist/ui/input.mjs +4 -0
  159. package/dist/ui/layout.d.mts +12 -0
  160. package/dist/ui/layout.d.ts +12 -0
  161. package/dist/ui/layout.js +13 -0
  162. package/dist/ui/layout.mjs +4 -0
  163. package/dist/ui/modal.d.mts +28 -0
  164. package/dist/ui/modal.d.ts +28 -0
  165. package/dist/ui/modal.js +49 -0
  166. package/dist/ui/modal.mjs +4 -0
  167. package/dist/ui/popover.d.mts +10 -0
  168. package/dist/ui/popover.d.ts +10 -0
  169. package/dist/ui/popover.js +25 -0
  170. package/dist/ui/popover.mjs +4 -0
  171. package/dist/ui/radio-group.d.mts +8 -0
  172. package/dist/ui/radio-group.d.ts +8 -0
  173. package/dist/ui/radio-group.js +17 -0
  174. package/dist/ui/radio-group.mjs +4 -0
  175. package/dist/ui/select.d.mts +28 -0
  176. package/dist/ui/select.d.ts +28 -0
  177. package/dist/ui/select.js +49 -0
  178. package/dist/ui/select.mjs +4 -0
  179. package/dist/ui/sheet.d.mts +16 -0
  180. package/dist/ui/sheet.d.ts +16 -0
  181. package/dist/ui/sheet.js +39 -0
  182. package/dist/ui/sheet.mjs +2 -0
  183. package/dist/ui/slider.d.mts +10 -0
  184. package/dist/ui/slider.d.ts +10 -0
  185. package/dist/ui/slider.js +13 -0
  186. package/dist/ui/slider.mjs +4 -0
  187. package/dist/ui/switch.d.mts +7 -0
  188. package/dist/ui/switch.d.ts +7 -0
  189. package/dist/ui/switch.js +13 -0
  190. package/dist/ui/switch.mjs +4 -0
  191. package/dist/ui/tabs.d.mts +16 -0
  192. package/dist/ui/tabs.d.ts +16 -0
  193. package/dist/ui/tabs.js +26 -0
  194. package/dist/ui/tabs.mjs +5 -0
  195. package/dist/ui/textarea.d.mts +16 -0
  196. package/dist/ui/textarea.d.ts +16 -0
  197. package/dist/ui/textarea.js +13 -0
  198. package/dist/ui/textarea.mjs +4 -0
  199. package/dist/ui/theme-context.d.mts +17 -0
  200. package/dist/ui/theme-context.d.ts +17 -0
  201. package/dist/ui/theme-context.js +17 -0
  202. package/dist/ui/theme-context.mjs +4 -0
  203. package/dist/ui/timeline.d.mts +23 -0
  204. package/dist/ui/timeline.d.ts +23 -0
  205. package/dist/ui/timeline.js +15 -0
  206. package/dist/ui/timeline.mjs +6 -0
  207. package/dist/ui/toast.d.mts +7 -0
  208. package/dist/ui/toast.d.ts +7 -0
  209. package/dist/ui/toast.js +14 -0
  210. package/dist/ui/toast.mjs +1 -0
  211. package/dist/ui/toggle-group.d.mts +12 -0
  212. package/dist/ui/toggle-group.d.ts +12 -0
  213. package/dist/ui/toggle-group.js +18 -0
  214. package/dist/ui/toggle-group.mjs +5 -0
  215. package/dist/ui/toggle.d.mts +13 -0
  216. package/dist/ui/toggle.d.ts +13 -0
  217. package/dist/ui/toggle.js +17 -0
  218. package/dist/ui/toggle.mjs +4 -0
  219. package/dist/ui/tooltip.d.mts +10 -0
  220. package/dist/ui/tooltip.d.ts +10 -0
  221. package/dist/ui/tooltip.js +25 -0
  222. package/dist/ui/tooltip.mjs +4 -0
  223. package/dist/ui/tree-view-v2.d.mts +25 -0
  224. package/dist/ui/tree-view-v2.d.ts +25 -0
  225. package/dist/ui/tree-view-v2.js +14 -0
  226. package/dist/ui/tree-view-v2.mjs +5 -0
  227. package/dist/ui/tree-view.d.mts +28 -0
  228. package/dist/ui/tree-view.d.ts +28 -0
  229. package/dist/ui/tree-view.js +11 -0
  230. package/dist/ui/tree-view.mjs +2 -0
  231. package/dist/ui/version-badge.d.mts +26 -0
  232. package/dist/ui/version-badge.d.ts +26 -0
  233. package/dist/ui/version-badge.js +14 -0
  234. package/dist/ui/version-badge.mjs +5 -0
  235. package/dist/utils/cn.d.mts +5 -0
  236. package/dist/utils/cn.d.ts +5 -0
  237. package/dist/utils/cn.js +10 -0
  238. package/dist/utils/cn.mjs +1 -0
  239. package/dist/utils/index.d.mts +3 -0
  240. package/dist/utils/index.d.ts +3 -0
  241. package/dist/utils/index.js +16 -0
  242. package/dist/utils/index.mjs +3 -0
  243. package/dist/utils/use-local-storage.d.mts +3 -0
  244. package/dist/utils/use-local-storage.d.ts +3 -0
  245. package/dist/utils/use-local-storage.js +10 -0
  246. package/dist/utils/use-local-storage.mjs +1 -0
  247. package/package.json +3 -2
  248. package/src/ui/version-badge.tsx +5 -2
@@ -0,0 +1,83 @@
1
+ 'use strict';
2
+
3
+ var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
4
+ var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
26
+
27
+ function RadioGroup({ className, ...props }) {
28
+ return /* @__PURE__ */ jsxRuntime.jsx(
29
+ RadioGroupPrimitive__namespace.Root,
30
+ {
31
+ "data-slot": "radio-group",
32
+ className: chunkXXWQ4RVP_js.cn("grid gap-2", className),
33
+ ...props
34
+ }
35
+ );
36
+ }
37
+ function RadioGroupItem({ className, ...props }) {
38
+ return /* @__PURE__ */ jsxRuntime.jsx(
39
+ RadioGroupPrimitive__namespace.Item,
40
+ {
41
+ "data-slot": "radio-group-item",
42
+ className: chunkXXWQ4RVP_js.cn(
43
+ "group",
44
+ "w-[16px]",
45
+ "h-[16px]",
46
+ "rounded-full",
47
+ "border-[1.5px]",
48
+ "border-solid",
49
+ "border-bg-tertiary",
50
+ "data-[state=checked]:border-brand-primary",
51
+ "disabled:cursor-not-allowed",
52
+ "disabled:bg-bg-secondary",
53
+ "disabled:data-[state=checked]:border-bg-tertiary",
54
+ className
55
+ ),
56
+ ...props,
57
+ children: /* @__PURE__ */ jsxRuntime.jsx(
58
+ RadioGroupPrimitive__namespace.Indicator,
59
+ {
60
+ "data-slot": "radio-group-indicator",
61
+ className: "relative flex items-center justify-center",
62
+ children: /* @__PURE__ */ jsxRuntime.jsx(
63
+ "div",
64
+ {
65
+ className: chunkXXWQ4RVP_js.cn(
66
+ "absolute",
67
+ "inset-0",
68
+ "m-auto",
69
+ "size-[8px]",
70
+ "rounded-full",
71
+ "bg-brand-primary",
72
+ "group-disabled:bg-bg-tertiary"
73
+ )
74
+ }
75
+ )
76
+ }
77
+ )
78
+ }
79
+ );
80
+ }
81
+
82
+ exports.RadioGroup = RadioGroup;
83
+ exports.RadioGroupItem = RadioGroupItem;
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,92 @@
1
+ import { cn } from './chunk-KTNZSZ5Y.mjs';
2
+ import { Slot } from '@radix-ui/react-slot';
3
+ import { cva } from 'class-variance-authority';
4
+ import { forwardRef } from 'react';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ var buttonVariants = cva(
8
+ [
9
+ "inline-flex",
10
+ "cursor-pointer",
11
+ "items-center",
12
+ "justify-center",
13
+ "shrink-0",
14
+ "whitespace-nowrap",
15
+ "rounded-uk-sm",
16
+ "font-medium",
17
+ "transition-all",
18
+ "[&_svg]:shrink-0 ",
19
+ "[&_svg]:pointer-events-none",
20
+ "outline-none",
21
+ "disabled:pointer-events-none",
22
+ "disabled:bg-bg-tertiary",
23
+ "disabled:text-text-tertiary",
24
+ "focus-visible:border-ring",
25
+ "focus-visible:ring-ring/50",
26
+ "focus-visible:ring-[3px]",
27
+ "focus-visible:bg-brand-tertiary",
28
+ "aria-invalid:ring-destructive/20",
29
+ "aria-invalid:border-destructive"
30
+ ],
31
+ {
32
+ variants: {
33
+ variant: {
34
+ primary: [
35
+ "bg-brand-primary",
36
+ "text-text-withbg",
37
+ "hover:bg-brand-secondary",
38
+ "active:bg-brand-tertiary"
39
+ ],
40
+ secondary: [
41
+ "bg-bg-secondary",
42
+ "text-text-highlight",
43
+ "hover:bg-bg-quaternary",
44
+ "active:bg-bg-tertiary"
45
+ ],
46
+ destructive: [
47
+ "bg-danger-primary",
48
+ "text-text-withbg",
49
+ "hover:bg-danger-secondary",
50
+ "active:bg-danger-tertiary"
51
+ ],
52
+ ghost: [
53
+ "text-text-primary",
54
+ "hover:bg-bg-tertiary",
55
+ "hover:text-text-secondary",
56
+ "active:bg-bg-secondary"
57
+ ],
58
+ link: ["text-text-primary", "underline-offset-4", "hover:underline"]
59
+ },
60
+ size: {
61
+ sm: ["text-uk-sm", "h-5.5", "gap-xxs", "px-md", "[&_svg:not([class*='size-'])]:size-3"],
62
+ base: ["text-uk-md", "h-7 ", "gap-xs", " px-lg", "[&_svg:not([class*='size-'])]:size-3.5"],
63
+ lg: ["text-uk-lg", "h-8", " gap-xs", "px-xl", "[&_svg:not([class*='size-'])]:size-4"]
64
+ },
65
+ icon: { false: null, true: null }
66
+ },
67
+ compoundVariants: [
68
+ { size: "sm", icon: true, class: ["px-xs", "py-xs", " size-5.5"] },
69
+ { size: "base", icon: true, class: ["px-sm", "py-sm", "size-7"] },
70
+ { size: "lg", icon: true, class: ["px-md", "py-md", " size-8"] }
71
+ ],
72
+ defaultVariants: {
73
+ variant: "primary",
74
+ size: "base",
75
+ icon: false
76
+ }
77
+ }
78
+ );
79
+ var Button = forwardRef(function Button2({ className, variant, size, icon, asChild = false, ...props }, ref) {
80
+ const Comp = asChild ? Slot : "button";
81
+ return /* @__PURE__ */ jsx(
82
+ Comp,
83
+ {
84
+ ref,
85
+ "data-slot": "button",
86
+ className: cn(buttonVariants({ variant, size, icon, className })),
87
+ ...props
88
+ }
89
+ );
90
+ });
91
+
92
+ export { Button };
@@ -0,0 +1,87 @@
1
+ import { cn } from './chunk-KTNZSZ5Y.mjs';
2
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
3
+ import { cva } from 'class-variance-authority';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ var toggleVariants = cva(
7
+ [
8
+ "inline-flex",
9
+ "items-center",
10
+ "justify-center",
11
+ "shrink-0",
12
+ "whitespace-nowrap",
13
+ "font-normal",
14
+ "transition-all",
15
+ "[&_svg]:shrink-0 ",
16
+ "[&_svg]:pointer-events-none",
17
+ "outline-none",
18
+ "disabled:bg-transparent",
19
+ "disabled:text-bg-tertiary",
20
+ "disabled:cursor-not-allowed"
21
+ ],
22
+ {
23
+ variants: {
24
+ variant: {
25
+ primary: [
26
+ "text-text-primary",
27
+ "data-[state=on]:text-text-highlight",
28
+ "data-[state=on]:bg-brand-primary",
29
+ "hover:bg-bg-secondary"
30
+ ],
31
+ secondary: [
32
+ "text-text-secondary",
33
+ "data-[state=on]:text-text-highlight",
34
+ "data-[state=on]:bg-bg-secondary",
35
+ "hover:bg-bg-secondary "
36
+ ]
37
+ },
38
+ size: {
39
+ sm: [
40
+ "text-uk-sm",
41
+ "leading-uk-sm",
42
+ "gap-xxs",
43
+ "p-xs",
44
+ "[&_svg:not([class*='size-'])]:size-3",
45
+ "rounded-uk-xs"
46
+ ],
47
+ base: [
48
+ "text-uk-md",
49
+ "leading-uk-md",
50
+ "gap-xs",
51
+ "p-sm",
52
+ "[&_svg:not([class*='size-'])]:size-3.5",
53
+ "rounded-uk-sm"
54
+ ],
55
+ lg: [
56
+ "text-uk-lg",
57
+ "leading-uk-lg",
58
+ "gap-xs",
59
+ "p-md",
60
+ "[&_svg:not([class*='size-'])]:size-4",
61
+ "rounded-uk-md"
62
+ ]
63
+ }
64
+ },
65
+ defaultVariants: {
66
+ variant: "primary",
67
+ size: "base"
68
+ }
69
+ }
70
+ );
71
+ function Toggle({
72
+ className,
73
+ variant,
74
+ size,
75
+ ...props
76
+ }) {
77
+ return /* @__PURE__ */ jsx(
78
+ TogglePrimitive.Root,
79
+ {
80
+ "data-slot": "toggle",
81
+ className: cn(toggleVariants({ variant, size, className })),
82
+ ...props
83
+ }
84
+ );
85
+ }
86
+
87
+ export { Toggle, toggleVariants };
@@ -0,0 +1,135 @@
1
+ 'use strict';
2
+
3
+ var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
4
+ var TooltipPrimitive = require('@radix-ui/react-tooltip');
5
+ var react = require('react');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n.default = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
27
+
28
+ function TooltipProvider({
29
+ delayDuration = 0,
30
+ children,
31
+ ...props
32
+ }) {
33
+ const [isClient, setIsClient] = react.useState(false);
34
+ react.useEffect(() => {
35
+ setIsClient(true);
36
+ }, []);
37
+ if (!isClient) {
38
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
39
+ }
40
+ return /* @__PURE__ */ jsxRuntime.jsx(
41
+ TooltipPrimitive__namespace.Provider,
42
+ {
43
+ "data-slot": "tooltip-provider",
44
+ delayDuration,
45
+ ...props,
46
+ children
47
+ }
48
+ );
49
+ }
50
+ function Tooltip({ children, ...props }) {
51
+ const [isClient, setIsClient] = react.useState(false);
52
+ react.useEffect(() => {
53
+ setIsClient(true);
54
+ }, []);
55
+ if (!isClient) {
56
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
57
+ }
58
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Root, { "data-slot": "tooltip", ...props, children }) });
59
+ }
60
+ function TooltipTrigger({ ...props }) {
61
+ const [isClient, setIsClient] = react.useState(false);
62
+ react.useEffect(() => {
63
+ setIsClient(true);
64
+ }, []);
65
+ if (!isClient) {
66
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: props.children });
67
+ }
68
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { "data-slot": "tooltip-trigger", ...props });
69
+ }
70
+ function TooltipContent({
71
+ className,
72
+ sideOffset = 0,
73
+ children,
74
+ ...props
75
+ }) {
76
+ const [isClient, setIsClient] = react.useState(false);
77
+ react.useEffect(() => {
78
+ setIsClient(true);
79
+ }, []);
80
+ if (!isClient) {
81
+ return null;
82
+ }
83
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
84
+ TooltipPrimitive__namespace.Content,
85
+ {
86
+ "data-slot": "tooltip-content",
87
+ sideOffset,
88
+ className: chunkXXWQ4RVP_js.cn(
89
+ "bg-bg-secondary",
90
+ "text-text-primary",
91
+ "animate-in",
92
+ "text-uk-sm",
93
+ "leading-uk-sm",
94
+ "rounded-uk-md",
95
+ "px-lg",
96
+ "py-md",
97
+ "shadow-[0_8px_24px_0_var(--color-shadow-secondary)]",
98
+ "fade-in-0",
99
+ "zoom-in-95",
100
+ "data-[state=closed]:animate-out",
101
+ "data-[state=closed]:fade-out-0",
102
+ "data-[state=closed]:zoom-out-95",
103
+ "data-[side=bottom]:slide-in-from-top-2",
104
+ "data-[side=left]:slide-in-from-right-2",
105
+ "data-[side=right]:slide-in-from-left-2",
106
+ "data-[side=top]:slide-in-from-bottom-2",
107
+ "z-50",
108
+ "w-fit",
109
+ "origin-(--radix-tooltip-content-transform-origin)",
110
+ "text-balance",
111
+ "liquid:liquid-bg",
112
+ className
113
+ ),
114
+ ...props,
115
+ children: [
116
+ children,
117
+ /* @__PURE__ */ jsxRuntime.jsx(
118
+ TooltipPrimitive__namespace.Arrow,
119
+ {
120
+ className: "fill-bg-secondary liquid:liquid-bg z-50 h-[9px] w-[20px] border-none",
121
+ style: {
122
+ clipPath: "polygon(50% 100%, 0% 0%, 100% 0%)",
123
+ borderRadius: "1px 1px 0 0"
124
+ }
125
+ }
126
+ )
127
+ ]
128
+ }
129
+ ) });
130
+ }
131
+
132
+ exports.Tooltip = Tooltip;
133
+ exports.TooltipContent = TooltipContent;
134
+ exports.TooltipProvider = TooltipProvider;
135
+ exports.TooltipTrigger = TooltipTrigger;
@@ -0,0 +1,66 @@
1
+ import { cn } from './chunk-KTNZSZ5Y.mjs';
2
+ import { Slot } from '@radix-ui/react-slot';
3
+ import { cva } from 'class-variance-authority';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ var badgeVariants = cva(
7
+ [
8
+ "inline-flex",
9
+ "items-center",
10
+ "justify-center",
11
+ "rounded-uk-xs",
12
+ "px-md",
13
+ "py-xxs",
14
+ "align-middle",
15
+ "text-uk-sm",
16
+ "leading-uk-sm",
17
+ "w-fit",
18
+ "whitespace-nowrap",
19
+ "shrink-0",
20
+ "[&>svg]:size-3",
21
+ "[&>svg]:pointer-events-none",
22
+ "transition-[color,box-shadow]",
23
+ "overflow-hidden",
24
+ "text-text-withbg"
25
+ ],
26
+ {
27
+ variants: {
28
+ variant: {
29
+ default: "bg-brand-primary text-text-primary",
30
+ secondary: "bg-bg-secondary",
31
+ destructive: "bg-danger-primary",
32
+ success: "bg-accent-success",
33
+ warning: "bg-accent-warning",
34
+ accent: "bg-accent-primary text-text-primary"
35
+ },
36
+ type: {
37
+ default: "",
38
+ circle: "size-[18px] !rounded-full",
39
+ dot: "size-[6px] rounded-full !px-0 !py-0 text-transparent"
40
+ }
41
+ },
42
+ defaultVariants: {
43
+ variant: "default",
44
+ type: "default"
45
+ }
46
+ }
47
+ );
48
+ function Badge({
49
+ className,
50
+ variant,
51
+ type,
52
+ asChild = false,
53
+ ...props
54
+ }) {
55
+ const Comp = asChild ? Slot : "span";
56
+ return /* @__PURE__ */ jsx(
57
+ Comp,
58
+ {
59
+ "data-slot": "badge",
60
+ className: cn(badgeVariants({ variant, type }), className),
61
+ ...props
62
+ }
63
+ );
64
+ }
65
+
66
+ export { Badge, badgeVariants };
@@ -0,0 +1,94 @@
1
+ 'use strict';
2
+
3
+ var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ function Card({ className, ...props }) {
7
+ return /* @__PURE__ */ jsxRuntime.jsx(
8
+ "div",
9
+ {
10
+ "data-slot": "card",
11
+ className: chunkXXWQ4RVP_js.cn(
12
+ "flex",
13
+ "flex-col",
14
+ "gap-md",
15
+ "min-w-[300px]",
16
+ "rounded-uk-lg",
17
+ "p-lg",
18
+ "bg-bg-primary",
19
+ "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
20
+ "liquid:liquid-bg",
21
+ className
22
+ ),
23
+ ...props
24
+ }
25
+ );
26
+ }
27
+ function CardHeader({ className, ...props }) {
28
+ return /* @__PURE__ */ jsxRuntime.jsx(
29
+ "div",
30
+ {
31
+ "data-slot": "card-header",
32
+ className: chunkXXWQ4RVP_js.cn("flex", "flex-row", "items-center", "justify-between", "gap-lg", className),
33
+ ...props
34
+ }
35
+ );
36
+ }
37
+ function CardTitle({ className, ...props }) {
38
+ return /* @__PURE__ */ jsxRuntime.jsx(
39
+ "div",
40
+ {
41
+ "data-slot": "card-title",
42
+ className: chunkXXWQ4RVP_js.cn(
43
+ "text-text-highlight",
44
+ "text-uk-md",
45
+ "leading-uk-md",
46
+ "font-medium",
47
+ "vertical-align-middle",
48
+ className
49
+ ),
50
+ ...props
51
+ }
52
+ );
53
+ }
54
+ function CardDescription({ className, ...props }) {
55
+ return /* @__PURE__ */ jsxRuntime.jsx(
56
+ "div",
57
+ {
58
+ "data-slot": "card-description",
59
+ className: chunkXXWQ4RVP_js.cn("text-text-secondary text-uk-sm leading-uk-sm", className),
60
+ ...props
61
+ }
62
+ );
63
+ }
64
+ function CardAction({ className, ...props }) {
65
+ return /* @__PURE__ */ jsxRuntime.jsx(
66
+ "div",
67
+ {
68
+ "data-slot": "card-action",
69
+ className: chunkXXWQ4RVP_js.cn(
70
+ "text-text-secondary",
71
+ "text-uk-sm",
72
+ "leading-uk-sm",
73
+ "font-medium",
74
+ "vertical-align-middle",
75
+ className
76
+ ),
77
+ ...props
78
+ }
79
+ );
80
+ }
81
+ function CardContent({ className, ...props }) {
82
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-content", className: chunkXXWQ4RVP_js.cn("", className), ...props });
83
+ }
84
+ function CardFooter({ className, ...props }) {
85
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "card-footer", className: chunkXXWQ4RVP_js.cn("flex items-center", className), ...props });
86
+ }
87
+
88
+ exports.Card = Card;
89
+ exports.CardAction = CardAction;
90
+ exports.CardContent = CardContent;
91
+ exports.CardDescription = CardDescription;
92
+ exports.CardFooter = CardFooter;
93
+ exports.CardHeader = CardHeader;
94
+ exports.CardTitle = CardTitle;
@@ -0,0 +1,95 @@
1
+ import { motion } from 'framer-motion';
2
+ import { createContext, useState, useEffect, useCallback, useContext } from 'react';
3
+ import { createPortal } from 'react-dom';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ // src/highlight-cursor/tabs-cursor-context.tsx
7
+ var TabsCursorContext = createContext(null);
8
+ var TabsCursorProvider = ({
9
+ children,
10
+ className,
11
+ ...props
12
+ }) => {
13
+ const [isClient, setIsClient] = useState(false);
14
+ const [cursorTarget, setCursorTarget] = useState(null);
15
+ const [targetRect, setTargetRect] = useState(null);
16
+ const [mousePosition, setMousePosition] = useState({ x: 0, y: 0 });
17
+ const [isMouseInside, setIsMouseInside] = useState(false);
18
+ useEffect(() => {
19
+ setIsClient(true);
20
+ }, []);
21
+ useEffect(() => {
22
+ if (!isClient) return;
23
+ const handleMouseMove = (e) => {
24
+ setMousePosition({ x: e.clientX, y: e.clientY });
25
+ };
26
+ document.addEventListener("mousemove", handleMouseMove);
27
+ return () => document.removeEventListener("mousemove", handleMouseMove);
28
+ }, [isClient]);
29
+ useEffect(() => {
30
+ if (cursorTarget) {
31
+ setTargetRect(cursorTarget.getBoundingClientRect());
32
+ } else {
33
+ setTargetRect(null);
34
+ }
35
+ }, [cursorTarget]);
36
+ const handleMouseEnter = useCallback(() => {
37
+ setIsMouseInside(true);
38
+ }, []);
39
+ const handleMouseLeave = useCallback(() => {
40
+ setIsMouseInside(false);
41
+ setCursorTarget(null);
42
+ }, []);
43
+ const contextValue = { setCursorTarget };
44
+ return /* @__PURE__ */ jsx(
45
+ "div",
46
+ {
47
+ ...props,
48
+ className,
49
+ style: {
50
+ cursor: isMouseInside && !cursorTarget ? "none" : "auto",
51
+ ...props.style
52
+ },
53
+ onMouseEnter: handleMouseEnter,
54
+ onMouseLeave: handleMouseLeave,
55
+ children: /* @__PURE__ */ jsxs(TabsCursorContext.Provider, { value: contextValue, children: [
56
+ children,
57
+ isClient && isMouseInside && typeof document !== "undefined" && document.body && createPortal(
58
+ /* @__PURE__ */ jsx(
59
+ motion.div,
60
+ {
61
+ className: "pointer-events-none",
62
+ initial: false,
63
+ animate: {
64
+ x: targetRect ? targetRect.left : mousePosition.x - 8,
65
+ y: targetRect ? targetRect.top : mousePosition.y - 8,
66
+ width: targetRect ? targetRect.width : 16,
67
+ height: targetRect ? targetRect.height : 16,
68
+ borderRadius: targetRect && cursorTarget && typeof window !== "undefined" ? getComputedStyle(cursorTarget).borderRadius : "50%"
69
+ },
70
+ transition: { type: "spring", stiffness: 1e3, damping: 60, mass: 1 },
71
+ style: {
72
+ position: "fixed",
73
+ top: 0,
74
+ left: 0,
75
+ backgroundColor: "var(--shadow-tertiary)",
76
+ zIndex: 9999
77
+ }
78
+ }
79
+ ),
80
+ document.body
81
+ )
82
+ ] })
83
+ }
84
+ );
85
+ };
86
+ var useTabsCursor = () => {
87
+ const context = useContext(TabsCursorContext);
88
+ if (!context) {
89
+ return { setCursorTarget: () => {
90
+ } };
91
+ }
92
+ return context;
93
+ };
94
+
95
+ export { TabsCursorProvider, useTabsCursor };
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ var clsx = require('clsx');
4
+ var tailwindMerge = require('tailwind-merge');
5
+
6
+ // src/utils/cn.ts
7
+ var twMerge = tailwindMerge.extendTailwindMerge({
8
+ override: {
9
+ classGroups: {
10
+ "font-size": [
11
+ "text-uk-xs",
12
+ "text-uk-sm",
13
+ "text-uk-md",
14
+ "text-uk-lg",
15
+ "text-uk-xl",
16
+ "text-uk-xxl"
17
+ ]
18
+ }
19
+ }
20
+ });
21
+ function cn(...inputs) {
22
+ return twMerge(clsx.clsx(inputs));
23
+ }
24
+
25
+ exports.cn = cn;