@vuer-ai/vuer-uikit 0.0.2 → 0.0.3

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 (212) hide show
  1. package/README.md +80 -0
  2. package/dist/chunk-263CMARJ.mjs +155 -0
  3. package/dist/chunk-277NQUJD.js +99 -0
  4. package/dist/chunk-3FR3WKI4.mjs +24 -0
  5. package/dist/chunk-3HXPIWL3.js +51 -0
  6. package/dist/chunk-3Q75Z2CT.mjs +76 -0
  7. package/dist/chunk-5BIQ3IN7.js +93 -0
  8. package/dist/chunk-5JP4AZ4C.js +302 -0
  9. package/dist/chunk-5U4NWZMT.mjs +78 -0
  10. package/dist/chunk-75QDQ67T.js +56 -0
  11. package/dist/chunk-7IYL2AR4.js +375 -0
  12. package/dist/chunk-ATDHGFVI.mjs +82 -0
  13. package/dist/chunk-CFXL2XYO.mjs +339 -0
  14. package/dist/chunk-CLTLT5XW.js +27 -0
  15. package/dist/chunk-CN6ISLZA.js +102 -0
  16. package/dist/chunk-CP7QYV4N.mjs +110 -0
  17. package/dist/chunk-CZSRIDXN.mjs +165 -0
  18. package/dist/chunk-D4C5V4EN.mjs +53 -0
  19. package/dist/chunk-DQGTWUID.js +186 -0
  20. package/dist/chunk-DWIK2CUV.mjs +45 -0
  21. package/dist/chunk-FXIL4NQZ.js +58 -0
  22. package/dist/chunk-FYEZTS4S.mjs +90 -0
  23. package/dist/chunk-GA2JCN3F.mjs +111 -0
  24. package/dist/chunk-HW6SLBO3.mjs +9 -0
  25. package/dist/chunk-I6VKLSAJ.js +163 -0
  26. package/dist/chunk-J4RFFBDJ.mjs +94 -0
  27. package/dist/chunk-JIXJTLEO.js +93 -0
  28. package/dist/chunk-JOBQTBEM.mjs +49 -0
  29. package/dist/chunk-JZ7V43ZL.js +136 -0
  30. package/dist/chunk-KAPV3EZO.mjs +271 -0
  31. package/dist/chunk-KJ42IGH6.js +2 -0
  32. package/dist/chunk-KO7BQ6RR.js +83 -0
  33. package/dist/chunk-KVDEBKWR.mjs +106 -0
  34. package/dist/chunk-KVFK3YC7.js +187 -0
  35. package/dist/chunk-KYKEJFJT.js +110 -0
  36. package/dist/chunk-LBFO3QAA.js +202 -0
  37. package/dist/chunk-MASRZTZC.mjs +34 -0
  38. package/dist/chunk-NA7TVYOP.js +21 -0
  39. package/dist/chunk-OE56M4MX.js +93 -0
  40. package/dist/chunk-PKGNHHWG.mjs +60 -0
  41. package/dist/chunk-Q3APPCB2.mjs +91 -0
  42. package/dist/chunk-QNTUEKYQ.mjs +19 -0
  43. package/dist/chunk-QS7WS6DD.mjs +1 -0
  44. package/dist/chunk-RPXWKB6F.js +103 -0
  45. package/dist/chunk-SDN2OTHS.js +78 -0
  46. package/dist/chunk-SKWTWHB7.mjs +53 -0
  47. package/dist/chunk-ST4P6AN6.js +2 -0
  48. package/dist/chunk-SUU4Z6E5.mjs +200 -0
  49. package/dist/chunk-SZU2TX5H.js +24 -0
  50. package/dist/chunk-TOZYLDAL.mjs +72 -0
  51. package/dist/chunk-UFR656UY.mjs +87 -0
  52. package/dist/chunk-UWO6RBCE.js +11 -0
  53. package/dist/chunk-VGCVIHBR.mjs +1 -0
  54. package/dist/chunk-WI2J7NIV.mjs +161 -0
  55. package/dist/chunk-WK3M4X72.js +2 -0
  56. package/dist/chunk-WOG6UIG5.mjs +71 -0
  57. package/dist/chunk-XACRGXGF.js +75 -0
  58. package/dist/chunk-YQORMF34.js +110 -0
  59. package/dist/chunk-Z37VNICQ.js +67 -0
  60. package/dist/chunk-ZCYBA6YN.mjs +1 -0
  61. package/dist/chunk-ZJXBC33M.js +112 -0
  62. package/dist/chunk-ZKYQYCKN.mjs +15 -0
  63. package/dist/chunk-ZYBSCTBR.js +109 -0
  64. package/dist/highlight-cursor/cursor-context.d.mts +7 -0
  65. package/dist/highlight-cursor/cursor-context.d.ts +7 -0
  66. package/dist/highlight-cursor/cursor-context.js +14 -0
  67. package/dist/highlight-cursor/cursor-context.mjs +1 -0
  68. package/dist/highlight-cursor/cursor-provider.d.mts +7 -0
  69. package/dist/highlight-cursor/cursor-provider.d.ts +7 -0
  70. package/dist/highlight-cursor/cursor-provider.js +12 -0
  71. package/dist/highlight-cursor/cursor-provider.mjs +3 -0
  72. package/dist/highlight-cursor/enhanced-components.d.mts +20 -0
  73. package/dist/highlight-cursor/enhanced-components.d.ts +20 -0
  74. package/dist/highlight-cursor/enhanced-components.js +36 -0
  75. package/dist/highlight-cursor/enhanced-components.mjs +11 -0
  76. package/dist/highlight-cursor/index.d.mts +16 -0
  77. package/dist/highlight-cursor/index.d.ts +16 -0
  78. package/dist/highlight-cursor/index.js +50 -0
  79. package/dist/highlight-cursor/index.mjs +13 -0
  80. package/dist/highlight-cursor/tabs-cursor-context.d.mts +14 -0
  81. package/dist/highlight-cursor/tabs-cursor-context.d.ts +14 -0
  82. package/dist/highlight-cursor/tabs-cursor-context.js +14 -0
  83. package/dist/highlight-cursor/tabs-cursor-context.mjs +1 -0
  84. package/dist/highlight-cursor/types.d.mts +39 -0
  85. package/dist/highlight-cursor/types.d.ts +39 -0
  86. package/dist/highlight-cursor/types.js +2 -0
  87. package/dist/highlight-cursor/types.mjs +1 -0
  88. package/dist/highlight-cursor/with-cursor.d.mts +7 -0
  89. package/dist/highlight-cursor/with-cursor.d.ts +7 -0
  90. package/dist/highlight-cursor/with-cursor.js +11 -0
  91. package/dist/highlight-cursor/with-cursor.mjs +2 -0
  92. package/dist/index.css +294 -0
  93. package/dist/index.d.mts +48 -0
  94. package/dist/index.d.ts +48 -0
  95. package/dist/index.js +382 -6744
  96. package/dist/index.mjs +31 -0
  97. package/dist/styles/theme.css +185 -0
  98. package/dist/styles/theme.d.mts +2 -0
  99. package/dist/styles/theme.d.ts +2 -0
  100. package/dist/styles/toast.css +44 -0
  101. package/dist/styles/toast.d.mts +2 -0
  102. package/dist/styles/toast.d.ts +2 -0
  103. package/dist/styles/variables.css +184 -0
  104. package/dist/styles/variables.d.mts +2 -0
  105. package/dist/styles/variables.d.ts +2 -0
  106. package/dist/ui/avatar.d.mts +16 -0
  107. package/dist/ui/avatar.d.ts +16 -0
  108. package/dist/ui/avatar.js +23 -0
  109. package/dist/ui/avatar.mjs +2 -0
  110. package/dist/ui/badge.d.mts +14 -0
  111. package/dist/ui/badge.d.ts +14 -0
  112. package/dist/ui/badge.js +16 -0
  113. package/dist/ui/badge.mjs +3 -0
  114. package/dist/ui/button.d.mts +16 -0
  115. package/dist/ui/button.d.ts +16 -0
  116. package/dist/ui/button.js +12 -0
  117. package/dist/ui/button.mjs +3 -0
  118. package/dist/ui/card.d.mts +12 -0
  119. package/dist/ui/card.d.ts +12 -0
  120. package/dist/ui/card.js +36 -0
  121. package/dist/ui/card.mjs +3 -0
  122. package/dist/ui/checkbox.d.mts +11 -0
  123. package/dist/ui/checkbox.d.ts +11 -0
  124. package/dist/ui/checkbox.js +12 -0
  125. package/dist/ui/checkbox.mjs +3 -0
  126. package/dist/ui/collapsible.d.mts +9 -0
  127. package/dist/ui/collapsible.d.ts +9 -0
  128. package/dist/ui/collapsible.js +20 -0
  129. package/dist/ui/collapsible.mjs +3 -0
  130. package/dist/ui/dropdown.d.mts +28 -0
  131. package/dist/ui/dropdown.d.ts +28 -0
  132. package/dist/ui/dropdown.js +68 -0
  133. package/dist/ui/dropdown.mjs +3 -0
  134. package/dist/ui/index.d.mts +41 -0
  135. package/dist/ui/index.d.ts +41 -0
  136. package/dist/ui/index.js +355 -0
  137. package/dist/ui/index.mjs +26 -0
  138. package/dist/ui/input-numbers.d.mts +15 -0
  139. package/dist/ui/input-numbers.d.ts +15 -0
  140. package/dist/ui/input-numbers.js +13 -0
  141. package/dist/ui/input-numbers.mjs +4 -0
  142. package/dist/ui/input.d.mts +22 -0
  143. package/dist/ui/input.d.ts +22 -0
  144. package/dist/ui/input.js +16 -0
  145. package/dist/ui/input.mjs +3 -0
  146. package/dist/ui/modal.d.mts +28 -0
  147. package/dist/ui/modal.d.ts +28 -0
  148. package/dist/ui/modal.js +48 -0
  149. package/dist/ui/modal.mjs +3 -0
  150. package/dist/ui/popover.d.mts +10 -0
  151. package/dist/ui/popover.d.ts +10 -0
  152. package/dist/ui/popover.js +23 -0
  153. package/dist/ui/popover.mjs +2 -0
  154. package/dist/ui/radio-group.d.mts +8 -0
  155. package/dist/ui/radio-group.d.ts +8 -0
  156. package/dist/ui/radio-group.js +16 -0
  157. package/dist/ui/radio-group.mjs +3 -0
  158. package/dist/ui/select.d.mts +28 -0
  159. package/dist/{types/ui → ui}/select.d.ts +18 -14
  160. package/dist/ui/select.js +48 -0
  161. package/dist/ui/select.mjs +3 -0
  162. package/dist/ui/slider.d.mts +10 -0
  163. package/dist/ui/slider.d.ts +10 -0
  164. package/dist/ui/slider.js +12 -0
  165. package/dist/ui/slider.mjs +3 -0
  166. package/dist/ui/switch.d.mts +7 -0
  167. package/dist/ui/switch.d.ts +7 -0
  168. package/dist/ui/switch.js +12 -0
  169. package/dist/ui/switch.mjs +3 -0
  170. package/dist/ui/tabs.d.mts +16 -0
  171. package/dist/ui/tabs.d.ts +16 -0
  172. package/dist/ui/tabs.js +25 -0
  173. package/dist/ui/tabs.mjs +4 -0
  174. package/dist/ui/textarea.d.mts +16 -0
  175. package/dist/ui/textarea.d.ts +16 -0
  176. package/dist/ui/textarea.js +12 -0
  177. package/dist/ui/textarea.mjs +3 -0
  178. package/dist/ui/theme-context.d.mts +17 -0
  179. package/dist/{types/ui → ui}/theme-context.d.ts +5 -3
  180. package/dist/ui/theme-context.js +14 -0
  181. package/dist/ui/theme-context.mjs +1 -0
  182. package/dist/ui/toast.d.mts +7 -0
  183. package/dist/ui/toast.d.ts +7 -0
  184. package/dist/ui/toast.js +14 -0
  185. package/dist/ui/toast.mjs +1 -0
  186. package/dist/ui/toggle-group.d.mts +12 -0
  187. package/dist/ui/toggle-group.d.ts +12 -0
  188. package/dist/ui/toggle-group.js +17 -0
  189. package/dist/ui/toggle-group.mjs +4 -0
  190. package/dist/ui/toggle.d.mts +13 -0
  191. package/dist/ui/toggle.d.ts +13 -0
  192. package/dist/ui/toggle.js +16 -0
  193. package/dist/ui/toggle.mjs +3 -0
  194. package/dist/ui/tooltip.d.mts +10 -0
  195. package/dist/ui/tooltip.d.ts +10 -0
  196. package/dist/ui/tooltip.js +23 -0
  197. package/dist/ui/tooltip.mjs +2 -0
  198. package/dist/utils/cn.d.mts +5 -0
  199. package/dist/utils/cn.d.ts +5 -0
  200. package/dist/utils/cn.js +10 -0
  201. package/dist/utils/cn.mjs +1 -0
  202. package/dist/utils/index.d.mts +2 -0
  203. package/dist/utils/index.d.ts +2 -0
  204. package/dist/utils/index.js +11 -0
  205. package/dist/utils/index.mjs +2 -0
  206. package/package.json +48 -27
  207. package/dist/index.umd.js +0 -74
  208. package/dist/types/index.d.ts +0 -4
  209. package/dist/types/lib/utils.d.ts +0 -2
  210. package/dist/types/ui/button.d.ts +0 -13
  211. package/dist/types/ui/input.d.ts +0 -19
  212. package/dist/vuer-uikit.css +0 -1
@@ -0,0 +1,109 @@
1
+ 'use strict';
2
+
3
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
4
+ var reactComposeRefs = require('@radix-ui/react-compose-refs');
5
+ var classVarianceAuthority = require('class-variance-authority');
6
+ var react = require('react');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ var inputRootVariants = classVarianceAuthority.cva(
10
+ [
11
+ "px-1.5",
12
+ "flex",
13
+ "gap-md",
14
+ "items-center",
15
+ "rounded-uk-sm",
16
+ "overflow-hidden",
17
+ "bg-bg-secondary"
18
+ ],
19
+ {
20
+ variants: {
21
+ state: {
22
+ default: ["hover:bg-bg-tertiary", "has-[input:focus]:bg-bg-quaternary"],
23
+ disabled: ["disabled:cursor-not-allowed", "bg-bg-tertiary", "text-text-tertiary"],
24
+ error: ["hover:bg-danger-primary/10", "bg-danger-primary/20"]
25
+ },
26
+ size: {
27
+ default: ["h-9 ", "text-xs"],
28
+ sm: ["h-6 ", "text-sm ", "[&_.input-slot>svg:not([class*='size-'])]:size-xl"]
29
+ }
30
+ },
31
+ defaultVariants: {
32
+ state: "default",
33
+ size: "default"
34
+ }
35
+ }
36
+ );
37
+ var InputRoot = react.forwardRef(function InputRoot2({ style, className, side, children, disabled, state, size, name, inputClassName, ...props }, ref) {
38
+ const inputRef = react.useRef(null);
39
+ return /* @__PURE__ */ jsxRuntime.jsxs(
40
+ "div",
41
+ {
42
+ style,
43
+ "data-input": true,
44
+ className: chunkUWO6RBCE_js.cn(inputRootVariants({ size, state: disabled ? "disabled" : state }), className),
45
+ onClick: (event) => {
46
+ console.log("onPointerDown", event);
47
+ const target = event.target;
48
+ if (target.closest("input, button, a")) return;
49
+ const input = inputRef.current;
50
+ if (!input) return;
51
+ const isRightSlot = target.closest(`
52
+ .input-slot[data-side='right'],
53
+ .input-slot:not([data-side='right']) ~ .input-slot:not([data-side='left'])
54
+ `);
55
+ const cursorPosition = isRightSlot ? input.value.length : 0;
56
+ requestAnimationFrame(() => {
57
+ try {
58
+ input.setSelectionRange(cursorPosition, cursorPosition);
59
+ } catch {
60
+ }
61
+ input.focus();
62
+ });
63
+ },
64
+ children: [
65
+ /* @__PURE__ */ jsxRuntime.jsx(
66
+ "input",
67
+ {
68
+ spellCheck: "false",
69
+ ...props,
70
+ "data-side": side,
71
+ disabled,
72
+ name: name ?? "text",
73
+ ref: reactComposeRefs.composeRefs(inputRef, ref),
74
+ className: chunkUWO6RBCE_js.cn(
75
+ ["data-[side=right]:text-right", "outline-none", "w-full", "h-full"],
76
+ inputClassName
77
+ )
78
+ }
79
+ ),
80
+ children
81
+ ]
82
+ }
83
+ );
84
+ });
85
+ var InputSlot = react.forwardRef(function({ className, children, side = "left", ...props }, ref) {
86
+ return /* @__PURE__ */ jsxRuntime.jsx(
87
+ "div",
88
+ {
89
+ "data-side": side,
90
+ ...props,
91
+ ref,
92
+ className: chunkUWO6RBCE_js.cn(
93
+ [
94
+ "input-slot",
95
+ "cursor-text",
96
+ "shrink-0",
97
+ "order-[0]",
98
+ "data-[side=left]:-order-1",
99
+ "text-text-tertiary"
100
+ ],
101
+ className
102
+ ),
103
+ children
104
+ }
105
+ );
106
+ });
107
+
108
+ exports.InputRoot = InputRoot;
109
+ exports.InputSlot = InputSlot;
@@ -0,0 +1,7 @@
1
+ import * as react from 'react';
2
+ import { CursorContextType } from './types.mjs';
3
+
4
+ declare const CursorContext: react.Context<CursorContextType>;
5
+ declare const useCursor: () => CursorContextType;
6
+
7
+ export { CursorContext, useCursor };
@@ -0,0 +1,7 @@
1
+ import * as react from 'react';
2
+ import { CursorContextType } from './types.js';
3
+
4
+ declare const CursorContext: react.Context<CursorContextType>;
5
+ declare const useCursor: () => CursorContextType;
6
+
7
+ export { CursorContext, useCursor };
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkCLTLT5XW_js = require('../chunk-CLTLT5XW.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "CursorContext", {
8
+ enumerable: true,
9
+ get: function () { return chunkCLTLT5XW_js.CursorContext; }
10
+ });
11
+ Object.defineProperty(exports, "useCursor", {
12
+ enumerable: true,
13
+ get: function () { return chunkCLTLT5XW_js.useCursor; }
14
+ });
@@ -0,0 +1 @@
1
+ export { CursorContext, useCursor } from '../chunk-3FR3WKI4.mjs';
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { CursorProviderProps } from './types.mjs';
3
+ import 'react';
4
+
5
+ declare const CursorProvider: ({ children, maxOffsetX, maxOffsetY, cursorSize, transitionDuration, cursorClassName, className, as: Component, ...props }: CursorProviderProps) => react_jsx_runtime.JSX.Element;
6
+
7
+ export { CursorProvider };
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { CursorProviderProps } from './types.js';
3
+ import 'react';
4
+
5
+ declare const CursorProvider: ({ children, maxOffsetX, maxOffsetY, cursorSize, transitionDuration, cursorClassName, className, as: Component, ...props }: CursorProviderProps) => react_jsx_runtime.JSX.Element;
6
+
7
+ export { CursorProvider };
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkLBFO3QAA_js = require('../chunk-LBFO3QAA.js');
4
+ require('../chunk-UWO6RBCE.js');
5
+ require('../chunk-CLTLT5XW.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "CursorProvider", {
10
+ enumerable: true,
11
+ get: function () { return chunkLBFO3QAA_js.CursorProvider; }
12
+ });
@@ -0,0 +1,3 @@
1
+ export { CursorProvider } from '../chunk-SUU4Z6E5.mjs';
2
+ import '../chunk-HW6SLBO3.mjs';
3
+ import '../chunk-3FR3WKI4.mjs';
@@ -0,0 +1,20 @@
1
+ import { EnhancedComponentProps } from './types.mjs';
2
+ import * as react from 'react';
3
+ import { Textarea } from '../ui/textarea.mjs';
4
+ import { TabsProps } from '../ui/tabs.mjs';
5
+ import { ButtonProps } from '../ui/button.mjs';
6
+ import { InputRootProps } from '../ui/input.mjs';
7
+ import { SelectTrigger } from '../ui/select.mjs';
8
+ import 'react/jsx-runtime';
9
+ import 'class-variance-authority/types';
10
+ import 'class-variance-authority';
11
+ import '@radix-ui/react-tabs';
12
+ import '@radix-ui/react-select';
13
+
14
+ declare const CursorButton: react.ForwardRefExoticComponent<Omit<EnhancedComponentProps<Omit<ButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>, "ref"> & react.RefAttributes<HTMLElement>>;
15
+ declare const CursorTabs: react.ForwardRefExoticComponent<Omit<EnhancedComponentProps<TabsProps>, "ref"> & react.RefAttributes<HTMLElement>>;
16
+ declare const CursorInputRoot: react.ForwardRefExoticComponent<Omit<EnhancedComponentProps<Omit<InputRootProps, "ref"> & react.RefAttributes<HTMLInputElement>>, "ref"> & react.RefAttributes<HTMLElement>>;
17
+ declare const CursorSelectTrigger: typeof SelectTrigger;
18
+ declare const CursorTextarea: typeof Textarea;
19
+
20
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea };
@@ -0,0 +1,20 @@
1
+ import { EnhancedComponentProps } from './types.js';
2
+ import * as react from 'react';
3
+ import { Textarea } from '../ui/textarea.js';
4
+ import { TabsProps } from '../ui/tabs.js';
5
+ import { ButtonProps } from '../ui/button.js';
6
+ import { InputRootProps } from '../ui/input.js';
7
+ import { SelectTrigger } from '../ui/select.js';
8
+ import 'react/jsx-runtime';
9
+ import 'class-variance-authority/types';
10
+ import 'class-variance-authority';
11
+ import '@radix-ui/react-tabs';
12
+ import '@radix-ui/react-select';
13
+
14
+ declare const CursorButton: react.ForwardRefExoticComponent<Omit<EnhancedComponentProps<Omit<ButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>, "ref"> & react.RefAttributes<HTMLElement>>;
15
+ declare const CursorTabs: react.ForwardRefExoticComponent<Omit<EnhancedComponentProps<TabsProps>, "ref"> & react.RefAttributes<HTMLElement>>;
16
+ declare const CursorInputRoot: react.ForwardRefExoticComponent<Omit<EnhancedComponentProps<Omit<InputRootProps, "ref"> & react.RefAttributes<HTMLInputElement>>, "ref"> & react.RefAttributes<HTMLElement>>;
17
+ declare const CursorSelectTrigger: typeof SelectTrigger;
18
+ declare const CursorTextarea: typeof Textarea;
19
+
20
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea };
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ var chunkNA7TVYOP_js = require('../chunk-NA7TVYOP.js');
4
+ require('../chunk-5JP4AZ4C.js');
5
+ require('../chunk-JZ7V43ZL.js');
6
+ require('../chunk-3HXPIWL3.js');
7
+ require('../chunk-5BIQ3IN7.js');
8
+ require('../chunk-ZYBSCTBR.js');
9
+ require('../chunk-ZJXBC33M.js');
10
+ require('../chunk-ST4P6AN6.js');
11
+ require('../chunk-UWO6RBCE.js');
12
+ require('../chunk-CLTLT5XW.js');
13
+ require('../chunk-JIXJTLEO.js');
14
+
15
+
16
+
17
+ Object.defineProperty(exports, "CursorButton", {
18
+ enumerable: true,
19
+ get: function () { return chunkNA7TVYOP_js.CursorButton; }
20
+ });
21
+ Object.defineProperty(exports, "CursorInputRoot", {
22
+ enumerable: true,
23
+ get: function () { return chunkNA7TVYOP_js.CursorInputRoot; }
24
+ });
25
+ Object.defineProperty(exports, "CursorSelectTrigger", {
26
+ enumerable: true,
27
+ get: function () { return chunkNA7TVYOP_js.CursorSelectTrigger; }
28
+ });
29
+ Object.defineProperty(exports, "CursorTabs", {
30
+ enumerable: true,
31
+ get: function () { return chunkNA7TVYOP_js.CursorTabs; }
32
+ });
33
+ Object.defineProperty(exports, "CursorTextarea", {
34
+ enumerable: true,
35
+ get: function () { return chunkNA7TVYOP_js.CursorTextarea; }
36
+ });
@@ -0,0 +1,11 @@
1
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-ZKYQYCKN.mjs';
2
+ import '../chunk-KAPV3EZO.mjs';
3
+ import '../chunk-GA2JCN3F.mjs';
4
+ import '../chunk-JOBQTBEM.mjs';
5
+ import '../chunk-Q3APPCB2.mjs';
6
+ import '../chunk-KVDEBKWR.mjs';
7
+ import '../chunk-CP7QYV4N.mjs';
8
+ import '../chunk-QS7WS6DD.mjs';
9
+ import '../chunk-HW6SLBO3.mjs';
10
+ import '../chunk-3FR3WKI4.mjs';
11
+ import '../chunk-FYEZTS4S.mjs';
@@ -0,0 +1,16 @@
1
+ export { CursorProvider } from './cursor-provider.mjs';
2
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from './enhanced-components.mjs';
3
+ export { TabsCursorProvider } from './tabs-cursor-context.mjs';
4
+ export { withCursor } from './with-cursor.mjs';
5
+ import 'react/jsx-runtime';
6
+ import './types.mjs';
7
+ import 'react';
8
+ import '../ui/textarea.mjs';
9
+ import 'class-variance-authority/types';
10
+ import 'class-variance-authority';
11
+ import '../ui/tabs.mjs';
12
+ import '@radix-ui/react-tabs';
13
+ import '../ui/button.mjs';
14
+ import '../ui/input.mjs';
15
+ import '../ui/select.mjs';
16
+ import '@radix-ui/react-select';
@@ -0,0 +1,16 @@
1
+ export { CursorProvider } from './cursor-provider.js';
2
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from './enhanced-components.js';
3
+ export { TabsCursorProvider } from './tabs-cursor-context.js';
4
+ export { withCursor } from './with-cursor.js';
5
+ import 'react/jsx-runtime';
6
+ import './types.js';
7
+ import 'react';
8
+ import '../ui/textarea.js';
9
+ import 'class-variance-authority/types';
10
+ import 'class-variance-authority';
11
+ import '../ui/tabs.js';
12
+ import '@radix-ui/react-tabs';
13
+ import '../ui/button.js';
14
+ import '../ui/input.js';
15
+ import '../ui/select.js';
16
+ import '@radix-ui/react-select';
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ require('../chunk-KJ42IGH6.js');
4
+ var chunkLBFO3QAA_js = require('../chunk-LBFO3QAA.js');
5
+ var chunkNA7TVYOP_js = require('../chunk-NA7TVYOP.js');
6
+ require('../chunk-5JP4AZ4C.js');
7
+ require('../chunk-JZ7V43ZL.js');
8
+ require('../chunk-3HXPIWL3.js');
9
+ require('../chunk-5BIQ3IN7.js');
10
+ require('../chunk-ZYBSCTBR.js');
11
+ var chunkZJXBC33M_js = require('../chunk-ZJXBC33M.js');
12
+ require('../chunk-ST4P6AN6.js');
13
+ require('../chunk-UWO6RBCE.js');
14
+ require('../chunk-CLTLT5XW.js');
15
+ var chunkJIXJTLEO_js = require('../chunk-JIXJTLEO.js');
16
+
17
+
18
+
19
+ Object.defineProperty(exports, "CursorProvider", {
20
+ enumerable: true,
21
+ get: function () { return chunkLBFO3QAA_js.CursorProvider; }
22
+ });
23
+ Object.defineProperty(exports, "CursorButton", {
24
+ enumerable: true,
25
+ get: function () { return chunkNA7TVYOP_js.CursorButton; }
26
+ });
27
+ Object.defineProperty(exports, "CursorInputRoot", {
28
+ enumerable: true,
29
+ get: function () { return chunkNA7TVYOP_js.CursorInputRoot; }
30
+ });
31
+ Object.defineProperty(exports, "CursorSelectTrigger", {
32
+ enumerable: true,
33
+ get: function () { return chunkNA7TVYOP_js.CursorSelectTrigger; }
34
+ });
35
+ Object.defineProperty(exports, "CursorTabs", {
36
+ enumerable: true,
37
+ get: function () { return chunkNA7TVYOP_js.CursorTabs; }
38
+ });
39
+ Object.defineProperty(exports, "CursorTextarea", {
40
+ enumerable: true,
41
+ get: function () { return chunkNA7TVYOP_js.CursorTextarea; }
42
+ });
43
+ Object.defineProperty(exports, "withCursor", {
44
+ enumerable: true,
45
+ get: function () { return chunkZJXBC33M_js.withCursor; }
46
+ });
47
+ Object.defineProperty(exports, "TabsCursorProvider", {
48
+ enumerable: true,
49
+ get: function () { return chunkJIXJTLEO_js.TabsCursorProvider; }
50
+ });
@@ -0,0 +1,13 @@
1
+ import '../chunk-VGCVIHBR.mjs';
2
+ export { CursorProvider } from '../chunk-SUU4Z6E5.mjs';
3
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-ZKYQYCKN.mjs';
4
+ import '../chunk-KAPV3EZO.mjs';
5
+ import '../chunk-GA2JCN3F.mjs';
6
+ import '../chunk-JOBQTBEM.mjs';
7
+ import '../chunk-Q3APPCB2.mjs';
8
+ import '../chunk-KVDEBKWR.mjs';
9
+ export { withCursor } from '../chunk-CP7QYV4N.mjs';
10
+ import '../chunk-QS7WS6DD.mjs';
11
+ import '../chunk-HW6SLBO3.mjs';
12
+ import '../chunk-3FR3WKI4.mjs';
13
+ export { TabsCursorProvider } from '../chunk-FYEZTS4S.mjs';
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode, CSSProperties } from 'react';
3
+
4
+ interface TabsCursorContextType {
5
+ setCursorTarget: (el: HTMLElement | null) => void;
6
+ }
7
+ declare const TabsCursorProvider: ({ children, className, ...props }: {
8
+ children: ReactNode;
9
+ className?: string;
10
+ style?: CSSProperties;
11
+ }) => react_jsx_runtime.JSX.Element;
12
+ declare const useTabsCursor: () => TabsCursorContextType;
13
+
14
+ export { TabsCursorProvider, useTabsCursor };
@@ -0,0 +1,14 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode, CSSProperties } from 'react';
3
+
4
+ interface TabsCursorContextType {
5
+ setCursorTarget: (el: HTMLElement | null) => void;
6
+ }
7
+ declare const TabsCursorProvider: ({ children, className, ...props }: {
8
+ children: ReactNode;
9
+ className?: string;
10
+ style?: CSSProperties;
11
+ }) => react_jsx_runtime.JSX.Element;
12
+ declare const useTabsCursor: () => TabsCursorContextType;
13
+
14
+ export { TabsCursorProvider, useTabsCursor };
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkJIXJTLEO_js = require('../chunk-JIXJTLEO.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "TabsCursorProvider", {
8
+ enumerable: true,
9
+ get: function () { return chunkJIXJTLEO_js.TabsCursorProvider; }
10
+ });
11
+ Object.defineProperty(exports, "useTabsCursor", {
12
+ enumerable: true,
13
+ get: function () { return chunkJIXJTLEO_js.useTabsCursor; }
14
+ });
@@ -0,0 +1 @@
1
+ export { TabsCursorProvider, useTabsCursor } from '../chunk-FYEZTS4S.mjs';
@@ -0,0 +1,39 @@
1
+ import { HTMLAttributes, ReactNode, ElementType, MouseEvent, ComponentType } from 'react';
2
+
3
+ interface CursorContextType {
4
+ mousePosition: {
5
+ x: number;
6
+ y: number;
7
+ };
8
+ hoveredElementId: string | null;
9
+ elementDimensions: {
10
+ width: number;
11
+ height: number;
12
+ x: number;
13
+ y: number;
14
+ right?: number;
15
+ bottom?: number;
16
+ };
17
+ registerHoveredElement: (id: string, dimensions: DOMRect, element?: HTMLElement) => void;
18
+ unregisterHoveredElement: () => void;
19
+ updateElementDimensions: (dimensions: DOMRect) => void;
20
+ }
21
+ interface CursorProviderProps extends HTMLAttributes<HTMLDivElement> {
22
+ children: ReactNode;
23
+ maxOffsetX?: number;
24
+ maxOffsetY?: number;
25
+ cursorSize?: number;
26
+ transitionDuration?: number;
27
+ cursorClassName?: string;
28
+ as?: ElementType;
29
+ }
30
+ interface WithCursorProps {
31
+ id?: string;
32
+ onMouseEnter?: (event: MouseEvent<HTMLElement>) => void;
33
+ onMouseMove?: (event: MouseEvent<HTMLElement>) => void;
34
+ onMouseLeave?: (event: MouseEvent<HTMLElement>) => void;
35
+ }
36
+ type EnhancedComponentProps<P> = P & WithCursorProps;
37
+ type EnhancedComponent<P = Record<string, unknown>> = ComponentType<EnhancedComponentProps<P>>;
38
+
39
+ export type { CursorContextType, CursorProviderProps, EnhancedComponent, EnhancedComponentProps, WithCursorProps };
@@ -0,0 +1,39 @@
1
+ import { HTMLAttributes, ReactNode, ElementType, MouseEvent, ComponentType } from 'react';
2
+
3
+ interface CursorContextType {
4
+ mousePosition: {
5
+ x: number;
6
+ y: number;
7
+ };
8
+ hoveredElementId: string | null;
9
+ elementDimensions: {
10
+ width: number;
11
+ height: number;
12
+ x: number;
13
+ y: number;
14
+ right?: number;
15
+ bottom?: number;
16
+ };
17
+ registerHoveredElement: (id: string, dimensions: DOMRect, element?: HTMLElement) => void;
18
+ unregisterHoveredElement: () => void;
19
+ updateElementDimensions: (dimensions: DOMRect) => void;
20
+ }
21
+ interface CursorProviderProps extends HTMLAttributes<HTMLDivElement> {
22
+ children: ReactNode;
23
+ maxOffsetX?: number;
24
+ maxOffsetY?: number;
25
+ cursorSize?: number;
26
+ transitionDuration?: number;
27
+ cursorClassName?: string;
28
+ as?: ElementType;
29
+ }
30
+ interface WithCursorProps {
31
+ id?: string;
32
+ onMouseEnter?: (event: MouseEvent<HTMLElement>) => void;
33
+ onMouseMove?: (event: MouseEvent<HTMLElement>) => void;
34
+ onMouseLeave?: (event: MouseEvent<HTMLElement>) => void;
35
+ }
36
+ type EnhancedComponentProps<P> = P & WithCursorProps;
37
+ type EnhancedComponent<P = Record<string, unknown>> = ComponentType<EnhancedComponentProps<P>>;
38
+
39
+ export type { CursorContextType, CursorProviderProps, EnhancedComponent, EnhancedComponentProps, WithCursorProps };
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,7 @@
1
+ import * as react from 'react';
2
+ import { ComponentType } from 'react';
3
+ import { EnhancedComponentProps } from './types.mjs';
4
+
5
+ declare function withCursor<P extends object>(Component: ComponentType<P>): react.ForwardRefExoticComponent<react.PropsWithoutRef<EnhancedComponentProps<P>> & react.RefAttributes<HTMLElement>>;
6
+
7
+ export { withCursor };
@@ -0,0 +1,7 @@
1
+ import * as react from 'react';
2
+ import { ComponentType } from 'react';
3
+ import { EnhancedComponentProps } from './types.js';
4
+
5
+ declare function withCursor<P extends object>(Component: ComponentType<P>): react.ForwardRefExoticComponent<react.PropsWithoutRef<EnhancedComponentProps<P>> & react.RefAttributes<HTMLElement>>;
6
+
7
+ export { withCursor };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkZJXBC33M_js = require('../chunk-ZJXBC33M.js');
4
+ require('../chunk-CLTLT5XW.js');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "withCursor", {
9
+ enumerable: true,
10
+ get: function () { return chunkZJXBC33M_js.withCursor; }
11
+ });
@@ -0,0 +1,2 @@
1
+ export { withCursor } from '../chunk-CP7QYV4N.mjs';
2
+ import '../chunk-3FR3WKI4.mjs';