@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,375 @@
1
+ 'use strict';
2
+
3
+ var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
4
+ var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
5
+ var lucideReact = require('lucide-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 DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
27
+
28
+ function DropdownMenu({ ...props }) {
29
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Root, { "data-slot": "dropdown-menu", ...props });
30
+ }
31
+ function DropdownMenuPortal({ ...props }) {
32
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { "data-slot": "dropdown-menu-portal", ...props });
33
+ }
34
+ function DropdownMenuTrigger({ ...props }) {
35
+ return /* @__PURE__ */ jsxRuntime.jsx(
36
+ DropdownMenuPrimitive__namespace.Trigger,
37
+ {
38
+ "data-slot": "dropdown-menu-trigger",
39
+ className: "text-text-primary hover:text-text-highlight disabled:text-text-tertiary active:text-text-secondary",
40
+ ...props
41
+ }
42
+ );
43
+ }
44
+ function DropdownMenuContent({
45
+ className,
46
+ sideOffset = 4,
47
+ ...props
48
+ }) {
49
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
50
+ DropdownMenuPrimitive__namespace.Content,
51
+ {
52
+ "data-slot": "dropdown-menu-content",
53
+ sideOffset,
54
+ className: chunkUWO6RBCE_js.cn(
55
+ [
56
+ "bg-bg-primary",
57
+ "p-md",
58
+ "data-[state=open]:animate-in",
59
+ "data-[state=closed]:animate-out",
60
+ "data-[state=closed]:fade-out-0",
61
+ "data-[state=open]:fade-in-0",
62
+ "data-[state=closed]:zoom-out-95",
63
+ "data-[state=open]:zoom-in-95",
64
+ "data-[side=bottom]:slide-in-from-top-2",
65
+ "data-[side=left]:slide-in-from-right-2",
66
+ "data-[side=right]:slide-in-from-left-2",
67
+ "data-[side=top]:slide-in-from-bottom-2",
68
+ "relative",
69
+ "z-50",
70
+ "max-h-(--radix-dropdown-menu-content-available-height)",
71
+ "min-w-[8rem]",
72
+ "origin-(--radix-dropdown-menu-content-transform-origin)",
73
+ "overflow-x-hidden",
74
+ "overflow-y-auto",
75
+ "rounded-uk-md",
76
+ "shadow-md",
77
+ "shadow-[0_8px_20px_0_rgba(0,0,0,.80)]"
78
+ ],
79
+ className
80
+ ),
81
+ ...props
82
+ }
83
+ ) });
84
+ }
85
+ function DropdownMenuGroup({
86
+ className,
87
+ ...props
88
+ }) {
89
+ return /* @__PURE__ */ jsxRuntime.jsx(
90
+ DropdownMenuPrimitive__namespace.Group,
91
+ {
92
+ "data-slot": "dropdown-menu-group",
93
+ className: chunkUWO6RBCE_js.cn("space-y-xs", className),
94
+ ...props
95
+ }
96
+ );
97
+ }
98
+ function DropdownMenuItem({
99
+ className,
100
+ inset,
101
+ variant = "default",
102
+ ...props
103
+ }) {
104
+ return /* @__PURE__ */ jsxRuntime.jsx(
105
+ DropdownMenuPrimitive__namespace.Item,
106
+ {
107
+ "data-slot": "dropdown-menu-item",
108
+ "data-inset": inset,
109
+ "data-variant": variant,
110
+ className: chunkUWO6RBCE_js.cn(
111
+ [
112
+ "w-full",
113
+ "flex",
114
+ "gap-md",
115
+ "items-center",
116
+ "pr-md",
117
+ "pl-[calc(var(--spacing-md)*2)]",
118
+ "py-xs",
119
+ "mb-xs",
120
+ "last:mb-0",
121
+ "relative",
122
+ "cursor-default",
123
+ "rounded-uk-xs",
124
+ "text-xs",
125
+ "outline-hidden",
126
+ "select-none",
127
+ "hover:bg-bg-tertiary",
128
+ "data-[disabled]:pointer-events-none",
129
+ "data-[disabled]:text-text-tertiary",
130
+ "data-[disabled]:bg-bg-tertiary",
131
+ "[&_svg]:pointer-events-none",
132
+ "[&_svg]:shrink-0",
133
+ "[&_svg:not([class*='size-'])]:size-4",
134
+ "[&_svg:not([class*='text-'])]:text-muted-foreground"
135
+ ],
136
+ className
137
+ ),
138
+ ...props
139
+ }
140
+ );
141
+ }
142
+ function DropdownMenuCheckboxItem({
143
+ className,
144
+ children,
145
+ checked,
146
+ ...props
147
+ }) {
148
+ return /* @__PURE__ */ jsxRuntime.jsxs(
149
+ DropdownMenuPrimitive__namespace.CheckboxItem,
150
+ {
151
+ "data-slot": "dropdown-menu-checkbox-item",
152
+ className: chunkUWO6RBCE_js.cn(
153
+ [
154
+ "w-full",
155
+ "flex",
156
+ "gap-md",
157
+ "items-center",
158
+ "pr-md",
159
+ "pl-[calc(var(--spacing-xl)*1.8)]",
160
+ "py-xs",
161
+ "mb-xs",
162
+ "last:mb-0",
163
+ "relative",
164
+ "cursor-default",
165
+ "rounded-uk-xs",
166
+ "text-xs",
167
+ "outline-hidden",
168
+ "select-none",
169
+ "hover:bg-bg-tertiary",
170
+ "data-[disabled]:pointer-events-none",
171
+ "data-[disabled]:text-text-tertiary",
172
+ "data-[disabled]:bg-bg-tertiary",
173
+ "[&_svg:not([class*='size-'])]:size-4",
174
+ "[&_svg]:pointer-events-none",
175
+ "[&_svg]:shrink-0"
176
+ ],
177
+ className
178
+ ),
179
+ checked,
180
+ ...props,
181
+ children: [
182
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
183
+ children
184
+ ]
185
+ }
186
+ );
187
+ }
188
+ function DropdownMenuRadioGroup({
189
+ ...props
190
+ }) {
191
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
192
+ }
193
+ function DropdownMenuRadioItem({
194
+ className,
195
+ children,
196
+ ...props
197
+ }) {
198
+ return /* @__PURE__ */ jsxRuntime.jsxs(
199
+ DropdownMenuPrimitive__namespace.RadioItem,
200
+ {
201
+ "data-slot": "dropdown-menu-radio-item",
202
+ className: chunkUWO6RBCE_js.cn(
203
+ [
204
+ "w-full",
205
+ "hover:bg-bg-tertiary",
206
+ "outline-hidden",
207
+ "relative",
208
+ "flex",
209
+ "cursor-default",
210
+ "select-none",
211
+ "items-center",
212
+ "gap-md",
213
+ "rounded-uk-xs",
214
+ "py-xs",
215
+ "pl-[calc(var(--spacing-xl)*1.8)]",
216
+ "pr-md",
217
+ "mb-xs",
218
+ "last:mb-0",
219
+ "text-xs",
220
+ "data-[disabled]:pointer-events-none",
221
+ "data-[disabled]:text-text-tertiary",
222
+ "data-[disabled]:bg-bg-tertiary",
223
+ "[&_svg:not([class*='size-'])]:size-4",
224
+ "[&_svg]:pointer-events-none",
225
+ "[&_svg]:shrink-0"
226
+ ],
227
+ className
228
+ ),
229
+ ...props,
230
+ children: [
231
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
232
+ children
233
+ ]
234
+ }
235
+ );
236
+ }
237
+ function DropdownMenuLabel({
238
+ className,
239
+ inset,
240
+ ...props
241
+ }) {
242
+ return /* @__PURE__ */ jsxRuntime.jsx(
243
+ DropdownMenuPrimitive__namespace.Label,
244
+ {
245
+ "data-slot": "dropdown-menu-label",
246
+ "data-inset": inset,
247
+ className: chunkUWO6RBCE_js.cn("text-text-secondary px-2 py-1.5 text-xs", className),
248
+ ...props
249
+ }
250
+ );
251
+ }
252
+ function DropdownMenuSeparator({
253
+ className,
254
+ ...props
255
+ }) {
256
+ return /* @__PURE__ */ jsxRuntime.jsx(
257
+ DropdownMenuPrimitive__namespace.Separator,
258
+ {
259
+ "data-slot": "dropdown-menu-separator",
260
+ className: chunkUWO6RBCE_js.cn("bg-line-primary my-lg pointer-events-none -mx-1 h-px", className),
261
+ ...props
262
+ }
263
+ );
264
+ }
265
+ function DropdownMenuShortcut({ className, ...props }) {
266
+ return /* @__PURE__ */ jsxRuntime.jsx(
267
+ "span",
268
+ {
269
+ "data-slot": "dropdown-menu-shortcut",
270
+ className: chunkUWO6RBCE_js.cn("text-text-tertiary ml-auto text-xs", className),
271
+ ...props
272
+ }
273
+ );
274
+ }
275
+ function DropdownMenuSub({ ...props }) {
276
+ return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Sub, { "data-slot": "dropdown-menu-sub", ...props });
277
+ }
278
+ function DropdownMenuSubTrigger({
279
+ className,
280
+ inset,
281
+ children,
282
+ ...props
283
+ }) {
284
+ return /* @__PURE__ */ jsxRuntime.jsxs(
285
+ DropdownMenuPrimitive__namespace.SubTrigger,
286
+ {
287
+ "data-slot": "dropdown-menu-sub-trigger",
288
+ "data-inset": inset,
289
+ className: chunkUWO6RBCE_js.cn(
290
+ "w-full",
291
+ "flex",
292
+ "gap-md",
293
+ "items-center",
294
+ "pr-md",
295
+ "pl-[calc(var(--spacing-md)*2)]",
296
+ "py-xs",
297
+ "mb-xs",
298
+ "relative",
299
+ "cursor-default",
300
+ "rounded-uk-xs",
301
+ "text-xs",
302
+ "outline-hidden",
303
+ "select-none",
304
+ "hover:bg-bg-tertiary",
305
+ "data-[state=open]:bg-bg-tertiary",
306
+ "data-[disabled]:pointer-events-none",
307
+ "data-[disabled]:text-text-tertiary",
308
+ "data-[disabled]:bg-bg-tertiary",
309
+ "[&_svg]:pointer-events-none",
310
+ "[&_svg]:shrink-0",
311
+ "[&_svg:not([class*='size-'])]:size-4",
312
+ "[&_svg:not([class*='text-'])]:text-muted-foreground",
313
+ className
314
+ ),
315
+ ...props,
316
+ children: [
317
+ children,
318
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto size-4" })
319
+ ]
320
+ }
321
+ );
322
+ }
323
+ function DropdownMenuSubContent({
324
+ className,
325
+ ...props
326
+ }) {
327
+ return /* @__PURE__ */ jsxRuntime.jsx(
328
+ DropdownMenuPrimitive__namespace.SubContent,
329
+ {
330
+ "data-slot": "dropdown-menu-sub-content",
331
+ className: chunkUWO6RBCE_js.cn(
332
+ "bg-bg-primary",
333
+ "p-md",
334
+ "data-[state=open]:animate-in",
335
+ "data-[state=closed]:animate-out",
336
+ "data-[state=closed]:fade-out-0",
337
+ "data-[state=open]:fade-in-0",
338
+ "data-[state=closed]:zoom-out-95",
339
+ "data-[state=open]:zoom-in-95",
340
+ "data-[side=bottom]:slide-in-from-top-2",
341
+ "data-[side=left]:slide-in-from-right-2",
342
+ "data-[side=right]:slide-in-from-left-2",
343
+ "data-[side=top]:slide-in-from-bottom-2",
344
+ "relative",
345
+ "z-50",
346
+ "max-h-(--radix-dropdown-menu-content-available-height)",
347
+ "min-w-[8rem]",
348
+ "origin-(--radix-dropdown-menu-content-transform-origin)",
349
+ "overflow-x-hidden",
350
+ "overflow-y-auto",
351
+ "rounded-uk-md",
352
+ "shadow-md",
353
+ "shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
354
+ className
355
+ ),
356
+ ...props
357
+ }
358
+ );
359
+ }
360
+
361
+ exports.DropdownMenu = DropdownMenu;
362
+ exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
363
+ exports.DropdownMenuContent = DropdownMenuContent;
364
+ exports.DropdownMenuGroup = DropdownMenuGroup;
365
+ exports.DropdownMenuItem = DropdownMenuItem;
366
+ exports.DropdownMenuLabel = DropdownMenuLabel;
367
+ exports.DropdownMenuPortal = DropdownMenuPortal;
368
+ exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
369
+ exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
370
+ exports.DropdownMenuSeparator = DropdownMenuSeparator;
371
+ exports.DropdownMenuShortcut = DropdownMenuShortcut;
372
+ exports.DropdownMenuSub = DropdownMenuSub;
373
+ exports.DropdownMenuSubContent = DropdownMenuSubContent;
374
+ exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
375
+ exports.DropdownMenuTrigger = DropdownMenuTrigger;
@@ -0,0 +1,82 @@
1
+ import { cn } from './chunk-HW6SLBO3.mjs';
2
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
+ import React from 'react';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ function Avatar({ className, ...props }) {
7
+ return /* @__PURE__ */ jsx(
8
+ AvatarPrimitive.Root,
9
+ {
10
+ "data-slot": "avatar",
11
+ className: cn("relative flex size-[24px] shrink-0 overflow-hidden rounded-full", className),
12
+ ...props
13
+ }
14
+ );
15
+ }
16
+ function AvatarImage({ className, ...props }) {
17
+ return /* @__PURE__ */ jsx(
18
+ AvatarPrimitive.Image,
19
+ {
20
+ "data-slot": "avatar-image",
21
+ className: cn("aspect-square size-full", className),
22
+ ...props
23
+ }
24
+ );
25
+ }
26
+ function AvatarFallback({ className, ...props }) {
27
+ return /* @__PURE__ */ jsx(
28
+ AvatarPrimitive.Fallback,
29
+ {
30
+ "data-slot": "avatar-fallback",
31
+ className: cn(
32
+ "bg-bg-tertiary flex size-full items-center justify-center rounded-full",
33
+ className
34
+ ),
35
+ ...props
36
+ }
37
+ );
38
+ }
39
+ function AvatarGroup({ children, className, spacing = "normal", max }) {
40
+ const spacingClasses = {
41
+ tight: "-space-x-1.5",
42
+ normal: "-space-x-1",
43
+ loose: "-space-x-0.45"
44
+ };
45
+ const childrenArray = React.Children.toArray(children);
46
+ const displayChildren = max ? childrenArray.slice(0, max) : childrenArray;
47
+ const remainingCount = max && childrenArray.length > max ? childrenArray.length - max : 0;
48
+ return /* @__PURE__ */ jsxs("div", { className: cn("flex", spacingClasses[spacing], className), children: [
49
+ displayChildren.map((child, index) => {
50
+ var _a;
51
+ const zIndex = 30 - index;
52
+ if (React.isValidElement(child)) {
53
+ return React.cloneElement(
54
+ child,
55
+ {
56
+ key: index,
57
+ className: cn(
58
+ `ring-background relative ring-2 z-[${zIndex}] hover:scale-120 transition-all duration-200 ease-in-out hover:z-[100]`,
59
+ (_a = child.props) == null ? void 0 : _a.className
60
+ )
61
+ }
62
+ );
63
+ }
64
+ return child;
65
+ }),
66
+ remainingCount > 0 && /* @__PURE__ */ jsx(
67
+ Avatar,
68
+ {
69
+ className: cn(
70
+ "ring-background hover:scale-120 relative cursor-default ring-2 transition-all duration-200 ease-in-out hover:z-[100]",
71
+ `z-[${30 - displayChildren.length}]`
72
+ ),
73
+ children: /* @__PURE__ */ jsxs(AvatarFallback, { children: [
74
+ "+",
75
+ remainingCount
76
+ ] })
77
+ }
78
+ )
79
+ ] });
80
+ }
81
+
82
+ export { Avatar, AvatarFallback, AvatarGroup, AvatarImage };