@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
package/README.md CHANGED
@@ -1 +1,81 @@
1
1
  # vuer-uikit
2
+
3
+ ## Installation
4
+
5
+ Getting up and running is quick and easy.
6
+
7
+ ### 1. Install Vuer Uikit
8
+
9
+ Install the package from your command line.
10
+
11
+ ```bash
12
+ npm install @vuer-ai/vuer-uikit
13
+ ```
14
+
15
+ ### 2. Import the CSS file
16
+
17
+ Import the global CSS file at the root of your application.
18
+
19
+ ```css
20
+ @import "tailwindcss";
21
+
22
+ @import "@vuer-ai/vuer-uikit/index.css";
23
+
24
+ @source "../../packages/vuer-uikit/src/ui/**/*.{ts,tsx}";
25
+ ```
26
+
27
+ ### 3. Add the Theme component
28
+
29
+ Add `ThemeProvider` to your application, wrapping the root component inside of `body`.
30
+
31
+ ```jsx line=7,9
32
+ import { ThemeProvider } from "@vuer-ai/vuer-uikit";
33
+
34
+ export default function () {
35
+ return (
36
+ <html>
37
+ <body>
38
+ <ThemeProvider>
39
+ <App />
40
+ </ThemeProvider>
41
+ </body>
42
+ </html>
43
+ );
44
+ }
45
+ ```
46
+
47
+ ### 4. Start building
48
+
49
+ You are now ready to use Vuer Uikit components.
50
+
51
+ ```jsx
52
+ import { Button } from "@vuer-ai/vuer-uikit";
53
+
54
+ export default function MyApp() {
55
+ return (
56
+ <div>
57
+ <Button>Let's go</Button>
58
+ </div>
59
+ );
60
+ }
61
+ ```
62
+
63
+ ## Customizing your theme
64
+
65
+ Configuration is managed and applied via the [Theme](/themes/docs/components/theme) component.
66
+
67
+ ### Basic configuration
68
+
69
+ Using CSS Variables and color utilities for theming.
70
+
71
+ ```css
72
+ @theme inline {
73
+ --brand-primary: var(--bg-custom-primary);
74
+ --brand-secondary: var(--bg-custom-secondary);
75
+ }
76
+
77
+ :root {
78
+ --bg-custom-primary: rgba(0, 123, 255, 1);
79
+ --bg-custom-secondary: rgba(82, 177, 255, 1);
80
+ }
81
+ ```
@@ -0,0 +1,155 @@
1
+ import { cn } from './chunk-HW6SLBO3.mjs';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ import { cva } from 'class-variance-authority';
4
+ import { XIcon } from 'lucide-react';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+
7
+ function Modal({ ...props }) {
8
+ return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "modal", ...props });
9
+ }
10
+ function ModalTrigger({ ...props }) {
11
+ return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "modal-trigger", ...props });
12
+ }
13
+ function ModalPortal({ ...props }) {
14
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "modal-portal", ...props });
15
+ }
16
+ function ModalClose({ ...props }) {
17
+ return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "modal-close", ...props });
18
+ }
19
+ var modalOverlayVariants = cva([
20
+ "fixed",
21
+ "inset-0",
22
+ "z-100",
23
+ "bg-bg-mask",
24
+ "transition-all",
25
+ "duration-200"
26
+ ]);
27
+ function ModalOverlay({ className, ...props }) {
28
+ return /* @__PURE__ */ jsx(
29
+ DialogPrimitive.Overlay,
30
+ {
31
+ "data-slot": "modal-overlay",
32
+ className: cn(modalOverlayVariants(), className),
33
+ ...props
34
+ }
35
+ );
36
+ }
37
+ var modalContentVariants = cva([
38
+ "px-xl",
39
+ "pb-xl",
40
+ "bg-bg-primary",
41
+ "rounded-xl",
42
+ "shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
43
+ "w-[320px]",
44
+ "min-w-[280px]",
45
+ "duration-200",
46
+ "transition-all",
47
+ "fixed",
48
+ "translate-x-[-50%]",
49
+ "translate-y-[-50%]",
50
+ "z-101",
51
+ "left-1/2",
52
+ "top-1/2",
53
+ "data-[state=open]:animate-in",
54
+ "data-[state=closed]:animate-out",
55
+ "data-[state=closed]:fade-out-0",
56
+ "data-[state=open]:fade-in-0",
57
+ "data-[state=closed]:zoom-out-95",
58
+ "data-[state=open]:zoom-in-95"
59
+ ]);
60
+ function ModalContent({
61
+ className,
62
+ children,
63
+ showCloseButton = true,
64
+ ...props
65
+ }) {
66
+ return /* @__PURE__ */ jsxs(ModalPortal, { children: [
67
+ /* @__PURE__ */ jsx(ModalOverlay, {}),
68
+ /* @__PURE__ */ jsxs(
69
+ DialogPrimitive.Content,
70
+ {
71
+ "data-slot": "modal-content",
72
+ className: cn(modalContentVariants(), className),
73
+ ...props,
74
+ children: [
75
+ children,
76
+ showCloseButton && /* @__PURE__ */ jsxs(
77
+ DialogPrimitive.Close,
78
+ {
79
+ "data-slot": "modal-close",
80
+ className: cn(
81
+ "absolute",
82
+ "right-[16px]",
83
+ "top-[16px]",
84
+ "w-[16px]",
85
+ "h-[16px]",
86
+ "rounded-sm",
87
+ "cursor-pointer",
88
+ "hover:bg-bg-tertiary",
89
+ "text-text-primary",
90
+ "flex",
91
+ "items-center",
92
+ "justify-center"
93
+ ),
94
+ children: [
95
+ /* @__PURE__ */ jsx(XIcon, {}),
96
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
97
+ ]
98
+ }
99
+ )
100
+ ]
101
+ }
102
+ )
103
+ ] });
104
+ }
105
+ function ModalHeader({ className, ...props }) {
106
+ return /* @__PURE__ */ jsx("div", { "data-slot": "modal-header", className: cn("flex flex-col", className), ...props });
107
+ }
108
+ function ModalTitle({ className, ...props }) {
109
+ return /* @__PURE__ */ jsx(
110
+ DialogPrimitive.Title,
111
+ {
112
+ "data-slot": "modal-title",
113
+ className: cn(
114
+ "text-text-highlight",
115
+ "text-[14px]",
116
+ "leading-[20px]",
117
+ "font-medium",
118
+ "py-lg",
119
+ "text-center",
120
+ className
121
+ ),
122
+ ...props
123
+ }
124
+ );
125
+ }
126
+ function ModalDescription({ className, ...props }) {
127
+ return /* @__PURE__ */ jsx(
128
+ DialogPrimitive.Description,
129
+ {
130
+ "data-slot": "modal-description",
131
+ className: cn(
132
+ "text-text-primary",
133
+ "text-[14px]",
134
+ "leading-[20px]",
135
+ "font-normal",
136
+ "pb-lg",
137
+ "text-start",
138
+ className
139
+ ),
140
+ ...props
141
+ }
142
+ );
143
+ }
144
+ function ModalFooter({ className, ...props }) {
145
+ return /* @__PURE__ */ jsx(
146
+ "div",
147
+ {
148
+ "data-slot": "modal-footer",
149
+ className: cn("w-full", "flex", "justify-end", "gap-[8px]", className),
150
+ ...props
151
+ }
152
+ );
153
+ }
154
+
155
+ export { Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger };
@@ -0,0 +1,99 @@
1
+ 'use strict';
2
+
3
+ var chunkYQORMF34_js = require('./chunk-YQORMF34.js');
4
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
5
+ var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
6
+ var react = require('react');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n.default = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(ToggleGroupPrimitive);
28
+
29
+ var ToggleGroupContext = react.createContext({
30
+ size: "base",
31
+ variant: "primary"
32
+ });
33
+ function ToggleGroup({
34
+ className,
35
+ variant,
36
+ size,
37
+ children,
38
+ ...props
39
+ }) {
40
+ return /* @__PURE__ */ jsxRuntime.jsx(
41
+ ToggleGroupPrimitive__namespace.Root,
42
+ {
43
+ "data-slot": "toggle-group",
44
+ "data-variant": variant,
45
+ "data-size": size,
46
+ className: chunkUWO6RBCE_js.cn(
47
+ "group/toggle-group",
48
+ "flex",
49
+ "w-fit",
50
+ "items-center",
51
+ "rounded-uk-md",
52
+ "data-[variant=outline]:shadow-xs",
53
+ className
54
+ ),
55
+ ...props,
56
+ children: /* @__PURE__ */ jsxRuntime.jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
57
+ }
58
+ );
59
+ }
60
+ function ToggleGroupItem({
61
+ className,
62
+ children,
63
+ variant,
64
+ size,
65
+ ...props
66
+ }) {
67
+ const context = react.useContext(ToggleGroupContext);
68
+ return /* @__PURE__ */ jsxRuntime.jsx(
69
+ ToggleGroupPrimitive__namespace.Item,
70
+ {
71
+ "data-slot": "toggle-group-item",
72
+ "data-variant": context.variant || variant,
73
+ "data-size": context.size || size,
74
+ className: chunkUWO6RBCE_js.cn(
75
+ chunkYQORMF34_js.toggleVariants({
76
+ variant: context.variant || variant,
77
+ size: context.size || size
78
+ }),
79
+ "min-w-0",
80
+ "flex-1",
81
+ "shrink-0",
82
+ "rounded-none",
83
+ "shadow-none",
84
+ "first:rounded-l-md",
85
+ "last:rounded-r-md",
86
+ "focus:z-10",
87
+ "focus-visible:z-10",
88
+ "data-[variant=outline]:border-l-0",
89
+ "data-[variant=outline]:first:border-l",
90
+ className
91
+ ),
92
+ ...props,
93
+ children
94
+ }
95
+ );
96
+ }
97
+
98
+ exports.ToggleGroup = ToggleGroup;
99
+ exports.ToggleGroupItem = ToggleGroupItem;
@@ -0,0 +1,24 @@
1
+ import { createContext, useContext } from 'react';
2
+
3
+ // src/highlight-cursor/cursor-context.tsx
4
+ var defaultDimensions = {
5
+ width: 0,
6
+ height: 0,
7
+ x: 0,
8
+ y: 0
9
+ };
10
+ var defaultContext = {
11
+ mousePosition: { x: 0, y: 0 },
12
+ hoveredElementId: null,
13
+ elementDimensions: defaultDimensions,
14
+ registerHoveredElement: () => {
15
+ },
16
+ unregisterHoveredElement: () => {
17
+ },
18
+ updateElementDimensions: () => {
19
+ }
20
+ };
21
+ var CursorContext = createContext(defaultContext);
22
+ var useCursor = () => useContext(CursorContext);
23
+
24
+ export { CursorContext, useCursor };
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
4
+ var classVarianceAuthority = require('class-variance-authority');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ var textareaVariants = classVarianceAuthority.cva(
8
+ [
9
+ "bg-bg-secondary",
10
+ "disabled:bg-bg-tertiary",
11
+ "disabled:cursor-not-allowed",
12
+ "outline",
13
+ "outline-transparent",
14
+ "-outline-offset-1",
15
+ "placehoder:text-muted-foreground",
16
+ "flex",
17
+ "min-h-16",
18
+ "w-full",
19
+ "px-3",
20
+ "py-2"
21
+ ],
22
+ {
23
+ variants: {
24
+ state: {
25
+ default: ["hover:outline-text-tertiary", "focus:outline-brand-primary"],
26
+ error: ["outline-danger-primary"]
27
+ },
28
+ size: {
29
+ sm: ["text-sm", "rounded-uk-sm"],
30
+ base: ["text-md", "rounded-uk-md"],
31
+ lg: ["text-xl", "rounded-uk-md"]
32
+ }
33
+ },
34
+ defaultVariants: {
35
+ state: "default",
36
+ size: "base"
37
+ }
38
+ }
39
+ );
40
+ function Textarea({ className, state, size, ...props }) {
41
+ return /* @__PURE__ */ jsxRuntime.jsx(
42
+ "textarea",
43
+ {
44
+ className: chunkUWO6RBCE_js.cn(textareaVariants({ className, state, size })),
45
+ "data-slot": "textarea",
46
+ ...props
47
+ }
48
+ );
49
+ }
50
+
51
+ exports.Textarea = Textarea;
@@ -0,0 +1,76 @@
1
+ import { toggleVariants } from './chunk-UFR656UY.mjs';
2
+ import { cn } from './chunk-HW6SLBO3.mjs';
3
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
4
+ import { createContext, useContext } from 'react';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ var ToggleGroupContext = createContext({
8
+ size: "base",
9
+ variant: "primary"
10
+ });
11
+ function ToggleGroup({
12
+ className,
13
+ variant,
14
+ size,
15
+ children,
16
+ ...props
17
+ }) {
18
+ return /* @__PURE__ */ jsx(
19
+ ToggleGroupPrimitive.Root,
20
+ {
21
+ "data-slot": "toggle-group",
22
+ "data-variant": variant,
23
+ "data-size": size,
24
+ className: cn(
25
+ "group/toggle-group",
26
+ "flex",
27
+ "w-fit",
28
+ "items-center",
29
+ "rounded-uk-md",
30
+ "data-[variant=outline]:shadow-xs",
31
+ className
32
+ ),
33
+ ...props,
34
+ children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size }, children })
35
+ }
36
+ );
37
+ }
38
+ function ToggleGroupItem({
39
+ className,
40
+ children,
41
+ variant,
42
+ size,
43
+ ...props
44
+ }) {
45
+ const context = useContext(ToggleGroupContext);
46
+ return /* @__PURE__ */ jsx(
47
+ ToggleGroupPrimitive.Item,
48
+ {
49
+ "data-slot": "toggle-group-item",
50
+ "data-variant": context.variant || variant,
51
+ "data-size": context.size || size,
52
+ className: cn(
53
+ toggleVariants({
54
+ variant: context.variant || variant,
55
+ size: context.size || size
56
+ }),
57
+ "min-w-0",
58
+ "flex-1",
59
+ "shrink-0",
60
+ "rounded-none",
61
+ "shadow-none",
62
+ "first:rounded-l-md",
63
+ "last:rounded-r-md",
64
+ "focus:z-10",
65
+ "focus-visible:z-10",
66
+ "data-[variant=outline]:border-l-0",
67
+ "data-[variant=outline]:first:border-l",
68
+ className
69
+ ),
70
+ ...props,
71
+ children
72
+ }
73
+ );
74
+ }
75
+
76
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,93 @@
1
+ 'use strict';
2
+
3
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
4
+ var reactSlot = require('@radix-ui/react-slot');
5
+ var classVarianceAuthority = require('class-variance-authority');
6
+ var react = require('react');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ var buttonVariants = classVarianceAuthority.cva(
10
+ [
11
+ "inline-flex",
12
+ "items-center",
13
+ "justify-center",
14
+ "shrink-0",
15
+ "whitespace-nowrap",
16
+ "rounded-uk-sm",
17
+ "font-medium",
18
+ "transition-all",
19
+ "[&_svg]:shrink-0 ",
20
+ "[&_svg]:pointer-events-none",
21
+ "outline-none",
22
+ "disabled:pointer-events-none",
23
+ "disabled:bg-bg-tertiary",
24
+ "disabled:text-text-tertiary",
25
+ "focus-visible:border-ring",
26
+ "focus-visible:ring-ring/50",
27
+ "focus-visible:ring-[3px]",
28
+ "focus-visible:bg-brand-tertiary",
29
+ "aria-invalid:ring-destructive/20",
30
+ "aria-invalid:border-destructive"
31
+ ],
32
+ {
33
+ variants: {
34
+ variant: {
35
+ primary: [
36
+ "bg-brand-primary",
37
+ "text-text-withbg",
38
+ "hover:bg-brand-secondary",
39
+ "active:bg-brand-tertiary"
40
+ ],
41
+ secondary: [
42
+ "bg-bg-secondary",
43
+ "text-text-highlight",
44
+ "hover:bg-bg-quaternary",
45
+ "active:bg-bg-tertiary"
46
+ ],
47
+ destructive: [
48
+ "bg-danger-primary",
49
+ "text-text-withbg",
50
+ "hover:bg-danger-secondary",
51
+ "active:bg-danger-tertiary"
52
+ ],
53
+ ghost: [
54
+ "text-text-primary",
55
+ "hover:bg-bg-tertiary",
56
+ "hover:text-text-secondary",
57
+ "active:bg-bg-secondary"
58
+ ],
59
+ link: ["text-text-primary", "underline-offset-4", "hover:underline"]
60
+ },
61
+ size: {
62
+ sm: ["text-xs", "h-5.5", "gap-xxs", "px-md", "[&_svg:not([class*='size-'])]:size-3"],
63
+ base: ["text-xs", "h-7 ", "gap-xs", " px-lg", "[&_svg:not([class*='size-'])]:size-3.5"],
64
+ lg: ["text-sm", "h-8", " gap-xs", "px-xl", "[&_svg:not([class*='size-'])]:size-4"]
65
+ },
66
+ icon: { false: null, true: null }
67
+ },
68
+ compoundVariants: [
69
+ { size: "sm", icon: true, class: ["px-xs", "py-xs", " size-5.5"] },
70
+ { size: "base", icon: true, class: ["px-sm", "py-sm", "size-7"] },
71
+ { size: "lg", icon: true, class: ["px-md", "py-md", " size-8"] }
72
+ ],
73
+ defaultVariants: {
74
+ variant: "primary",
75
+ size: "base",
76
+ icon: false
77
+ }
78
+ }
79
+ );
80
+ var Button = react.forwardRef(function Button2({ className, variant, size, icon, asChild = false, ...props }, ref) {
81
+ const Comp = asChild ? reactSlot.Slot : "button";
82
+ return /* @__PURE__ */ jsxRuntime.jsx(
83
+ Comp,
84
+ {
85
+ ref,
86
+ "data-slot": "button",
87
+ className: chunkUWO6RBCE_js.cn(buttonVariants({ variant, size, icon, className })),
88
+ ...props
89
+ }
90
+ );
91
+ });
92
+
93
+ exports.Button = Button;