@vuer-ai/vuer-uikit 0.0.27 → 0.0.28

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 (204) hide show
  1. package/dist/{chunk-ZTNXAV64.js → chunk-3ZFILFNB.js} +4 -4
  2. package/dist/{chunk-Q3GXSHJV.mjs → chunk-4QERYDMC.mjs} +3 -3
  3. package/dist/{chunk-5TVG5JK5.js → chunk-5CENHVP3.js} +18 -0
  4. package/dist/chunk-7DRJLKR6.js +38 -0
  5. package/dist/{chunk-ZRJ5JCVG.mjs → chunk-7LDFQGYF.mjs} +1 -1
  6. package/dist/chunk-BAAW5VSE.js +142 -0
  7. package/dist/{chunk-G6PRZVSE.mjs → chunk-D6HWHISR.mjs} +18 -0
  8. package/dist/{chunk-CCGCEN7Z.js → chunk-EMHRYI5O.js} +1 -1
  9. package/dist/chunk-KMIPKXV2.mjs +108 -0
  10. package/dist/chunk-SBHPTJE4.mjs +29 -0
  11. package/dist/{chunk-LHWH4GP5.mjs → chunk-YIBD2FEV.mjs} +1 -1
  12. package/dist/{chunk-OO7LYJQL.js → chunk-Z3LP6DAV.js} +1 -1
  13. package/dist/highlight-cursor/cursor-context.d.mts +2 -2
  14. package/dist/highlight-cursor/cursor-context.d.ts +2 -2
  15. package/dist/highlight-cursor/enhanced-components.d.mts +4 -4
  16. package/dist/highlight-cursor/enhanced-components.d.ts +4 -4
  17. package/dist/highlight-cursor/enhanced-components.js +11 -10
  18. package/dist/highlight-cursor/enhanced-components.mjs +6 -5
  19. package/dist/highlight-cursor/index.js +11 -10
  20. package/dist/highlight-cursor/index.mjs +6 -5
  21. package/dist/highlight-cursor/with-cursor.d.mts +2 -2
  22. package/dist/highlight-cursor/with-cursor.d.ts +2 -2
  23. package/dist/index.css +1 -1
  24. package/dist/index.d.mts +8 -3
  25. package/dist/index.d.ts +8 -3
  26. package/dist/index.js +167 -122
  27. package/dist/index.mjs +21 -20
  28. package/dist/styles/theme.css +1 -1
  29. package/dist/ui/avatar.d.mts +19 -6
  30. package/dist/ui/avatar.d.ts +19 -6
  31. package/dist/ui/avatar.js +31 -6
  32. package/dist/ui/avatar.mjs +3 -2
  33. package/dist/ui/badge.d.mts +2 -2
  34. package/dist/ui/badge.d.ts +2 -2
  35. package/dist/ui/badge.js +2 -1
  36. package/dist/ui/badge.mjs +2 -1
  37. package/dist/ui/button.d.mts +2 -2
  38. package/dist/ui/button.d.ts +2 -2
  39. package/dist/ui/button.js +2 -1
  40. package/dist/ui/button.mjs +2 -1
  41. package/dist/ui/card.js +2 -1
  42. package/dist/ui/card.mjs +2 -1
  43. package/dist/ui/checkbox.js +4 -3
  44. package/dist/ui/checkbox.mjs +3 -2
  45. package/dist/ui/collapsible.js +2 -1
  46. package/dist/ui/collapsible.mjs +2 -1
  47. package/dist/ui/drawer.d.mts +16 -0
  48. package/dist/ui/drawer.d.ts +16 -0
  49. package/dist/ui/drawer.js +2 -1
  50. package/dist/ui/drawer.mjs +2 -1
  51. package/dist/ui/dropdown.js +2 -1
  52. package/dist/ui/dropdown.mjs +2 -1
  53. package/dist/ui/index.d.mts +7 -3
  54. package/dist/ui/index.d.ts +7 -3
  55. package/dist/ui/index.js +135 -106
  56. package/dist/ui/index.mjs +19 -18
  57. package/dist/ui/input-numbers.d.mts +2 -2
  58. package/dist/ui/input-numbers.d.ts +2 -2
  59. package/dist/ui/input-numbers.js +2 -1
  60. package/dist/ui/input-numbers.mjs +2 -1
  61. package/dist/ui/input.d.mts +4 -4
  62. package/dist/ui/input.d.ts +4 -4
  63. package/dist/ui/input.js +2 -1
  64. package/dist/ui/input.mjs +2 -1
  65. package/dist/ui/layout.js +2 -1
  66. package/dist/ui/layout.mjs +2 -1
  67. package/dist/ui/modal.js +2 -1
  68. package/dist/ui/modal.mjs +2 -1
  69. package/dist/ui/popover.js +2 -1
  70. package/dist/ui/popover.mjs +2 -1
  71. package/dist/ui/radio-group.js +2 -1
  72. package/dist/ui/radio-group.mjs +2 -1
  73. package/dist/ui/select.d.mts +1 -1
  74. package/dist/ui/select.d.ts +1 -1
  75. package/dist/ui/select.js +2 -1
  76. package/dist/ui/select.mjs +2 -1
  77. package/dist/ui/slider.d.mts +2 -2
  78. package/dist/ui/slider.d.ts +2 -2
  79. package/dist/ui/slider.js +2 -1
  80. package/dist/ui/slider.mjs +2 -1
  81. package/dist/ui/switch.js +2 -1
  82. package/dist/ui/switch.mjs +2 -1
  83. package/dist/ui/tabs.js +2 -1
  84. package/dist/ui/tabs.mjs +2 -1
  85. package/dist/ui/textarea.d.mts +1 -1
  86. package/dist/ui/textarea.d.ts +1 -1
  87. package/dist/ui/textarea.js +2 -1
  88. package/dist/ui/textarea.mjs +2 -1
  89. package/dist/ui/theme/ThemeProvider.d.mts +8 -0
  90. package/dist/ui/theme/ThemeProvider.d.ts +8 -0
  91. package/dist/ui/theme/ThemeProvider.js +15 -0
  92. package/dist/ui/theme/ThemeProvider.mjs +2 -0
  93. package/dist/ui/theme/index.d.mts +5 -0
  94. package/dist/ui/theme/index.d.ts +5 -0
  95. package/dist/ui/theme/index.js +20 -0
  96. package/dist/ui/theme/index.mjs +3 -0
  97. package/dist/ui/theme/themeScript.d.mts +19 -0
  98. package/dist/ui/theme/themeScript.d.ts +19 -0
  99. package/dist/ui/theme/themeScript.js +10 -0
  100. package/dist/ui/theme/themeScript.mjs +1 -0
  101. package/dist/ui/theme/types.d.mts +47 -0
  102. package/dist/ui/theme/types.d.ts +47 -0
  103. package/dist/ui/timeline.d.mts +23 -10
  104. package/dist/ui/timeline.d.ts +23 -10
  105. package/dist/ui/timeline.js +2 -1
  106. package/dist/ui/timeline.mjs +2 -1
  107. package/dist/ui/toggle-group.js +2 -1
  108. package/dist/ui/toggle-group.mjs +2 -1
  109. package/dist/ui/toggle.js +2 -1
  110. package/dist/ui/toggle.mjs +2 -1
  111. package/dist/ui/tooltip.js +2 -1
  112. package/dist/ui/tooltip.mjs +2 -1
  113. package/dist/ui/tree-view-v2.js +2 -1
  114. package/dist/ui/tree-view-v2.mjs +2 -1
  115. package/dist/ui/tree-view.d.mts +3 -3
  116. package/dist/ui/tree-view.d.ts +3 -3
  117. package/dist/ui/tree-view.js +2 -1
  118. package/dist/ui/tree-view.mjs +2 -1
  119. package/dist/ui/version-badge.js +4 -3
  120. package/dist/ui/version-badge.mjs +3 -2
  121. package/dist/utils/client-only.d.mts +27 -0
  122. package/dist/utils/client-only.d.ts +27 -0
  123. package/dist/utils/client-only.js +22 -0
  124. package/dist/utils/client-only.mjs +1 -0
  125. package/dist/utils/index.d.mts +2 -0
  126. package/dist/utils/index.d.ts +2 -0
  127. package/dist/utils/index.js +18 -1
  128. package/dist/utils/index.mjs +2 -1
  129. package/package.json +3 -2
  130. package/src/index.css +1 -1
  131. package/src/ui/avatar.tsx +72 -37
  132. package/src/ui/checkbox.tsx +18 -1
  133. package/src/ui/index.ts +1 -1
  134. package/src/ui/{theme-context/theme-context.tsx → theme/ThemeProvider.tsx} +2 -2
  135. package/src/ui/theme/index.ts +4 -0
  136. package/src/ui/{theme-context/theme-script.tsx → theme/themeScript.tsx} +8 -2
  137. package/src/utils/client-only.ts +54 -0
  138. package/src/utils/index.ts +1 -0
  139. package/dist/chunk-2TRYGIGT.mjs +0 -76
  140. package/dist/chunk-2YCL2ET2.js +0 -431
  141. package/dist/chunk-5SR53QBZ.js +0 -143
  142. package/dist/chunk-6N5422RT.js +0 -110
  143. package/dist/chunk-6RTJSAVW.js +0 -202
  144. package/dist/chunk-ALTUOIWV.mjs +0 -15
  145. package/dist/chunk-AOUGWGQR.js +0 -609
  146. package/dist/chunk-AQXAGOYO.js +0 -107
  147. package/dist/chunk-B2E7AY66.mjs +0 -86
  148. package/dist/chunk-DYT2FBW5.mjs +0 -79
  149. package/dist/chunk-DZ4J7I7I.mjs +0 -114
  150. package/dist/chunk-E33MW663.js +0 -179
  151. package/dist/chunk-EOFYA6CS.js +0 -53
  152. package/dist/chunk-EUY74AXP.mjs +0 -341
  153. package/dist/chunk-EYIFKSU2.mjs +0 -259
  154. package/dist/chunk-F776EMXP.mjs +0 -82
  155. package/dist/chunk-FEYQ2OWB.mjs +0 -39
  156. package/dist/chunk-FP26SRGL.js +0 -377
  157. package/dist/chunk-H5C3BWSK.mjs +0 -196
  158. package/dist/chunk-HLJ7PQA7.mjs +0 -15
  159. package/dist/chunk-IXHMIR5P.js +0 -131
  160. package/dist/chunk-JMPVDU2C.mjs +0 -110
  161. package/dist/chunk-LEPXSM36.mjs +0 -46
  162. package/dist/chunk-LKAGJL2E.mjs +0 -15
  163. package/dist/chunk-MRVMXKZO.mjs +0 -106
  164. package/dist/chunk-MZ4POL3U.js +0 -301
  165. package/dist/chunk-OQ237S4Z.js +0 -94
  166. package/dist/chunk-PIJM7ZII.js +0 -21
  167. package/dist/chunk-PVRQNCSJ.js +0 -49
  168. package/dist/chunk-Q5KEB4UK.mjs +0 -51
  169. package/dist/chunk-QVUX6LLD.mjs +0 -270
  170. package/dist/chunk-QYRRQ65X.mjs +0 -115
  171. package/dist/chunk-RTURVQIP.js +0 -41
  172. package/dist/chunk-SKO72K64.js +0 -118
  173. package/dist/chunk-TMBKCIVQ.mjs +0 -148
  174. package/dist/chunk-U2ZLDPOE.js +0 -261
  175. package/dist/chunk-U7SNLMJR.js +0 -110
  176. package/dist/chunk-UKFVRXAR.mjs +0 -409
  177. package/dist/chunk-V4KNORQN.js +0 -21
  178. package/dist/chunk-VXHM7V6F.mjs +0 -92
  179. package/dist/chunk-W7D57QE6.js +0 -21
  180. package/dist/chunk-WDUTW7HS.mjs +0 -87
  181. package/dist/chunk-WJ7T7FAH.js +0 -135
  182. package/dist/chunk-X55EAYE2.js +0 -94
  183. package/dist/chunk-YXDJPCAF.js +0 -99
  184. package/dist/chunk-ZVG2UKKC.mjs +0 -603
  185. package/dist/ui/theme-context/index.js +0 -16
  186. package/dist/ui/theme-context/index.mjs +0 -3
  187. package/dist/ui/theme-context/theme-context.js +0 -15
  188. package/dist/ui/theme-context/theme-context.mjs +0 -2
  189. package/dist/ui/theme-context/theme-script.js +0 -10
  190. package/dist/ui/theme-context/theme-script.mjs +0 -1
  191. package/dist/ui/theme-context/theme-types.js +0 -2
  192. package/dist/ui/theme-context/theme-types.mjs +0 -1
  193. package/dist/ui/theme-context.d.mts +0 -17
  194. package/dist/ui/theme-context.d.ts +0 -17
  195. package/dist/ui/theme-context.js +0 -17
  196. package/dist/ui/theme-context.mjs +0 -4
  197. package/src/ui/theme-context/index.ts +0 -3
  198. /package/dist/{chunk-4FOSHIMU.mjs → chunk-AMB2H6WS.mjs} +0 -0
  199. /package/dist/{chunk-F56ZKT7B.mjs → chunk-CMYR6AOY.mjs} +0 -0
  200. /package/dist/{chunk-N7CINZS2.js → chunk-IJ7QXNIJ.js} +0 -0
  201. /package/dist/{chunk-UOFJLQ72.js → chunk-Y2QBWXB4.js} +0 -0
  202. /package/dist/{chunk-XWS4SIB5.js → ui/theme/types.js} +0 -0
  203. /package/dist/{chunk-M4IVLZIH.mjs → ui/theme/types.mjs} +0 -0
  204. /package/src/ui/{theme-context/theme-types.ts → theme/types.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkCCGCEN7Z_js = require('./chunk-CCGCEN7Z.js');
3
+ var chunkEMHRYI5O_js = require('./chunk-EMHRYI5O.js');
4
4
  var react = require('react');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
@@ -28,8 +28,8 @@ var defaultThemes = ["light", "dark", "liquidlight", "liquiddark"];
28
28
  var Theme = ({
29
29
  forcedTheme,
30
30
  disableTransitionOnChange = false,
31
- enableSystem = false,
32
- enableColorScheme = true,
31
+ enableSystem = true,
32
+ enableColorScheme = false,
33
33
  storageKey = "theme",
34
34
  themes = defaultThemes,
35
35
  defaultTheme = enableSystem ? "system" : "light",
@@ -161,7 +161,7 @@ var Theme = ({
161
161
  ),
162
162
  children: [
163
163
  /* @__PURE__ */ jsxRuntime.jsx(
164
- chunkCCGCEN7Z_js.ThemeScript,
164
+ chunkEMHRYI5O_js.ThemeScript,
165
165
  {
166
166
  ...{
167
167
  forcedTheme,
@@ -1,4 +1,4 @@
1
- import { ThemeScript } from './chunk-LHWH4GP5.mjs';
1
+ import { ThemeScript } from './chunk-YIBD2FEV.mjs';
2
2
  import { createContext, useContext, useState, useCallback, useEffect, useMemo } from 'react';
3
3
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
4
4
 
@@ -26,8 +26,8 @@ var defaultThemes = ["light", "dark", "liquidlight", "liquiddark"];
26
26
  var Theme = ({
27
27
  forcedTheme,
28
28
  disableTransitionOnChange = false,
29
- enableSystem = false,
30
- enableColorScheme = true,
29
+ enableSystem = true,
30
+ enableColorScheme = false,
31
31
  storageKey = "theme",
32
32
  themes = defaultThemes,
33
33
  defaultTheme = enableSystem ? "system" : "light",
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var chunk7DRJLKR6_js = require('./chunk-7DRJLKR6.js');
3
4
  var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
4
5
  var CheckboxPrimitive = require('@radix-ui/react-checkbox');
5
6
  var lucideReact = require('lucide-react');
@@ -26,6 +27,23 @@ function _interopNamespace(e) {
26
27
  var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
27
28
 
28
29
  function Checkbox({ className, checkall, ...props }) {
30
+ if (!chunk7DRJLKR6_js.isClient()) {
31
+ return /* @__PURE__ */ jsxRuntime.jsx(
32
+ "div",
33
+ {
34
+ "data-slot": "checkbox",
35
+ className: chunkXXWQ4RVP_js.cn(
36
+ "w-[16px]",
37
+ "h-[16px]",
38
+ "rounded-[3px]",
39
+ "border-[1.5px]",
40
+ "border-solid",
41
+ "border-bg-tertiary",
42
+ className
43
+ )
44
+ }
45
+ );
46
+ }
29
47
  return /* @__PURE__ */ jsxRuntime.jsx(
30
48
  CheckboxPrimitive__namespace.Root,
31
49
  {
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
6
+
7
+ var React__default = /*#__PURE__*/_interopDefault(React);
8
+
9
+ // src/utils/client-only.ts
10
+ function clientOnly(fn) {
11
+ if (typeof window !== "undefined") {
12
+ return fn();
13
+ }
14
+ return void 0;
15
+ }
16
+ function createClientOnlyComponent(Component, fallback) {
17
+ return function ClientOnlyWrapper(props) {
18
+ const [isClient2, setIsClient] = React__default.default.useState(false);
19
+ React__default.default.useEffect(() => {
20
+ setIsClient(true);
21
+ }, []);
22
+ if (!isClient2) {
23
+ return fallback ? React__default.default.createElement(fallback, props) : null;
24
+ }
25
+ return React__default.default.createElement(Component, props);
26
+ };
27
+ }
28
+ function isClient() {
29
+ return typeof window !== "undefined";
30
+ }
31
+ function isServer() {
32
+ return typeof window === "undefined";
33
+ }
34
+
35
+ exports.clientOnly = clientOnly;
36
+ exports.createClientOnlyComponent = createClientOnlyComponent;
37
+ exports.isClient = isClient;
38
+ exports.isServer = isServer;
@@ -1,7 +1,7 @@
1
1
  import { Badge } from './chunk-WO3WHXDP.mjs';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
- var PACKAGE_VERSION = "0.0.26" ;
4
+ var PACKAGE_VERSION = "0.0.28" ;
5
5
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
6
6
  function VersionBadge({
7
7
  className,
@@ -0,0 +1,142 @@
1
+ 'use strict';
2
+
3
+ var chunk7DRJLKR6_js = require('./chunk-7DRJLKR6.js');
4
+ var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
5
+ var AvatarPrimitive = require('@radix-ui/react-avatar');
6
+ var React = require('react');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
+
11
+ function _interopNamespace(e) {
12
+ if (e && e.__esModule) return e;
13
+ var n = Object.create(null);
14
+ if (e) {
15
+ Object.keys(e).forEach(function (k) {
16
+ if (k !== 'default') {
17
+ var d = Object.getOwnPropertyDescriptor(e, k);
18
+ Object.defineProperty(n, k, d.get ? d : {
19
+ enumerable: true,
20
+ get: function () { return e[k]; }
21
+ });
22
+ }
23
+ });
24
+ }
25
+ n.default = e;
26
+ return Object.freeze(n);
27
+ }
28
+
29
+ var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
30
+ var React__default = /*#__PURE__*/_interopDefault(React);
31
+
32
+ var AvatarRoot = ({
33
+ className,
34
+ ...props
35
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
36
+ AvatarPrimitive__namespace.Root,
37
+ {
38
+ "data-slot": "avatar",
39
+ className: chunkXXWQ4RVP_js.cn("relative flex size-[24px] shrink-0 overflow-hidden rounded-full", className),
40
+ ...props
41
+ }
42
+ );
43
+ var AvatarSSRFallback = ({ className }) => /* @__PURE__ */ jsxRuntime.jsx(
44
+ "span",
45
+ {
46
+ "data-slot": "avatar",
47
+ className: chunkXXWQ4RVP_js.cn("relative flex size-[24px] shrink-0 overflow-hidden rounded-full", className)
48
+ }
49
+ );
50
+ var Avatar = chunk7DRJLKR6_js.createClientOnlyComponent(AvatarRoot, AvatarSSRFallback);
51
+ var AvatarImageRoot = ({
52
+ className,
53
+ ...props
54
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
55
+ AvatarPrimitive__namespace.Image,
56
+ {
57
+ "data-slot": "avatar-image",
58
+ className: chunkXXWQ4RVP_js.cn("aspect-square size-full", className),
59
+ ...props
60
+ }
61
+ );
62
+ var AvatarImageFallback = ({ className }) => /* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "avatar-image", className: chunkXXWQ4RVP_js.cn("aspect-square size-full", className) });
63
+ var AvatarImage = chunk7DRJLKR6_js.createClientOnlyComponent(AvatarImageRoot, AvatarImageFallback);
64
+ var AvatarFallbackRoot = ({
65
+ className,
66
+ ...props
67
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
68
+ AvatarPrimitive__namespace.Fallback,
69
+ {
70
+ "data-slot": "avatar-fallback",
71
+ className: chunkXXWQ4RVP_js.cn(
72
+ "bg-bg-tertiary flex size-full items-center justify-center rounded-full",
73
+ className
74
+ ),
75
+ ...props
76
+ }
77
+ );
78
+ var AvatarFallbackSSR = ({
79
+ className,
80
+ ...props
81
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
82
+ "span",
83
+ {
84
+ "data-slot": "avatar-fallback",
85
+ className: chunkXXWQ4RVP_js.cn(
86
+ "bg-bg-tertiary flex size-full items-center justify-center rounded-full",
87
+ className
88
+ ),
89
+ ...props
90
+ }
91
+ );
92
+ var AvatarFallback = chunk7DRJLKR6_js.createClientOnlyComponent(AvatarFallbackRoot, AvatarFallbackSSR);
93
+ function AvatarGroup({ children, className, spacing = "normal", max }) {
94
+ const spacingClasses = {
95
+ tight: "-space-x-1.5",
96
+ normal: "-space-x-1",
97
+ loose: "-space-x-0.45"
98
+ };
99
+ const childrenArray = React__default.default.Children.toArray(children);
100
+ const displayChildren = max ? childrenArray.slice(0, max) : childrenArray;
101
+ const remainingCount = max && childrenArray.length > max ? childrenArray.length - max : 0;
102
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunkXXWQ4RVP_js.cn("flex flex-row-reverse justify-end", spacingClasses[spacing], className), children: [
103
+ remainingCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(
104
+ Avatar,
105
+ {
106
+ className: chunkXXWQ4RVP_js.cn(
107
+ "ring-background relative cursor-default ring-2 transition-all duration-200 ease-in-out hover:z-[100] hover:scale-120"
108
+ ),
109
+ children: /* @__PURE__ */ jsxRuntime.jsxs(AvatarFallback, { children: [
110
+ "+",
111
+ remainingCount
112
+ ] })
113
+ }
114
+ ),
115
+ displayChildren.reverse().map((child) => {
116
+ var _a;
117
+ if (React__default.default.isValidElement(child)) {
118
+ return React__default.default.cloneElement(
119
+ child,
120
+ {
121
+ className: chunkXXWQ4RVP_js.cn(
122
+ `ring-background relative ring-2 transition-all duration-200 ease-in-out hover:z-[100] hover:scale-120`,
123
+ (_a = child.props) == null ? void 0 : _a.className
124
+ )
125
+ }
126
+ );
127
+ }
128
+ return child;
129
+ })
130
+ ] });
131
+ }
132
+
133
+ exports.Avatar = Avatar;
134
+ exports.AvatarFallback = AvatarFallback;
135
+ exports.AvatarFallbackRoot = AvatarFallbackRoot;
136
+ exports.AvatarFallbackSSR = AvatarFallbackSSR;
137
+ exports.AvatarGroup = AvatarGroup;
138
+ exports.AvatarImage = AvatarImage;
139
+ exports.AvatarImageFallback = AvatarImageFallback;
140
+ exports.AvatarImageRoot = AvatarImageRoot;
141
+ exports.AvatarRoot = AvatarRoot;
142
+ exports.AvatarSSRFallback = AvatarSSRFallback;
@@ -1,9 +1,27 @@
1
+ import { isClient } from './chunk-SBHPTJE4.mjs';
1
2
  import { cn } from './chunk-KTNZSZ5Y.mjs';
2
3
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
4
  import { CheckIcon } from 'lucide-react';
4
5
  import { jsx } from 'react/jsx-runtime';
5
6
 
6
7
  function Checkbox({ className, checkall, ...props }) {
8
+ if (!isClient()) {
9
+ return /* @__PURE__ */ jsx(
10
+ "div",
11
+ {
12
+ "data-slot": "checkbox",
13
+ className: cn(
14
+ "w-[16px]",
15
+ "h-[16px]",
16
+ "rounded-[3px]",
17
+ "border-[1.5px]",
18
+ "border-solid",
19
+ "border-bg-tertiary",
20
+ className
21
+ )
22
+ }
23
+ );
24
+ }
7
25
  return /* @__PURE__ */ jsx(
8
26
  CheckboxPrimitive.Root,
9
27
  {
@@ -3,7 +3,7 @@
3
3
  var react = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
- // src/ui/theme-context/theme-script.tsx
6
+ // src/ui/theme/themeScript.tsx
7
7
  var themeScript = (defaultTheme, storageKey, attribute, themes, value, forcedTheme, enableSystem, enableColorScheme) => {
8
8
  const el = document.documentElement;
9
9
  const systemThemes = ["light", "dark"];
@@ -0,0 +1,108 @@
1
+ import { createClientOnlyComponent } from './chunk-SBHPTJE4.mjs';
2
+ import { cn } from './chunk-KTNZSZ5Y.mjs';
3
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
4
+ import React from 'react';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+
7
+ var AvatarRoot = ({
8
+ className,
9
+ ...props
10
+ }) => /* @__PURE__ */ jsx(
11
+ AvatarPrimitive.Root,
12
+ {
13
+ "data-slot": "avatar",
14
+ className: cn("relative flex size-[24px] shrink-0 overflow-hidden rounded-full", className),
15
+ ...props
16
+ }
17
+ );
18
+ var AvatarSSRFallback = ({ className }) => /* @__PURE__ */ jsx(
19
+ "span",
20
+ {
21
+ "data-slot": "avatar",
22
+ className: cn("relative flex size-[24px] shrink-0 overflow-hidden rounded-full", className)
23
+ }
24
+ );
25
+ var Avatar = createClientOnlyComponent(AvatarRoot, AvatarSSRFallback);
26
+ var AvatarImageRoot = ({
27
+ className,
28
+ ...props
29
+ }) => /* @__PURE__ */ jsx(
30
+ AvatarPrimitive.Image,
31
+ {
32
+ "data-slot": "avatar-image",
33
+ className: cn("aspect-square size-full", className),
34
+ ...props
35
+ }
36
+ );
37
+ var AvatarImageFallback = ({ className }) => /* @__PURE__ */ jsx("span", { "data-slot": "avatar-image", className: cn("aspect-square size-full", className) });
38
+ var AvatarImage = createClientOnlyComponent(AvatarImageRoot, AvatarImageFallback);
39
+ var AvatarFallbackRoot = ({
40
+ className,
41
+ ...props
42
+ }) => /* @__PURE__ */ jsx(
43
+ AvatarPrimitive.Fallback,
44
+ {
45
+ "data-slot": "avatar-fallback",
46
+ className: cn(
47
+ "bg-bg-tertiary flex size-full items-center justify-center rounded-full",
48
+ className
49
+ ),
50
+ ...props
51
+ }
52
+ );
53
+ var AvatarFallbackSSR = ({
54
+ className,
55
+ ...props
56
+ }) => /* @__PURE__ */ jsx(
57
+ "span",
58
+ {
59
+ "data-slot": "avatar-fallback",
60
+ className: cn(
61
+ "bg-bg-tertiary flex size-full items-center justify-center rounded-full",
62
+ className
63
+ ),
64
+ ...props
65
+ }
66
+ );
67
+ var AvatarFallback = createClientOnlyComponent(AvatarFallbackRoot, AvatarFallbackSSR);
68
+ function AvatarGroup({ children, className, spacing = "normal", max }) {
69
+ const spacingClasses = {
70
+ tight: "-space-x-1.5",
71
+ normal: "-space-x-1",
72
+ loose: "-space-x-0.45"
73
+ };
74
+ const childrenArray = React.Children.toArray(children);
75
+ const displayChildren = max ? childrenArray.slice(0, max) : childrenArray;
76
+ const remainingCount = max && childrenArray.length > max ? childrenArray.length - max : 0;
77
+ return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-row-reverse justify-end", spacingClasses[spacing], className), children: [
78
+ remainingCount > 0 && /* @__PURE__ */ jsx(
79
+ Avatar,
80
+ {
81
+ className: cn(
82
+ "ring-background relative cursor-default ring-2 transition-all duration-200 ease-in-out hover:z-[100] hover:scale-120"
83
+ ),
84
+ children: /* @__PURE__ */ jsxs(AvatarFallback, { children: [
85
+ "+",
86
+ remainingCount
87
+ ] })
88
+ }
89
+ ),
90
+ displayChildren.reverse().map((child) => {
91
+ var _a;
92
+ if (React.isValidElement(child)) {
93
+ return React.cloneElement(
94
+ child,
95
+ {
96
+ className: cn(
97
+ `ring-background relative ring-2 transition-all duration-200 ease-in-out hover:z-[100] hover:scale-120`,
98
+ (_a = child.props) == null ? void 0 : _a.className
99
+ )
100
+ }
101
+ );
102
+ }
103
+ return child;
104
+ })
105
+ ] });
106
+ }
107
+
108
+ export { Avatar, AvatarFallback, AvatarFallbackRoot, AvatarFallbackSSR, AvatarGroup, AvatarImage, AvatarImageFallback, AvatarImageRoot, AvatarRoot, AvatarSSRFallback };
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+
3
+ // src/utils/client-only.ts
4
+ function clientOnly(fn) {
5
+ if (typeof window !== "undefined") {
6
+ return fn();
7
+ }
8
+ return void 0;
9
+ }
10
+ function createClientOnlyComponent(Component, fallback) {
11
+ return function ClientOnlyWrapper(props) {
12
+ const [isClient2, setIsClient] = React.useState(false);
13
+ React.useEffect(() => {
14
+ setIsClient(true);
15
+ }, []);
16
+ if (!isClient2) {
17
+ return fallback ? React.createElement(fallback, props) : null;
18
+ }
19
+ return React.createElement(Component, props);
20
+ };
21
+ }
22
+ function isClient() {
23
+ return typeof window !== "undefined";
24
+ }
25
+ function isServer() {
26
+ return typeof window === "undefined";
27
+ }
28
+
29
+ export { clientOnly, createClientOnlyComponent, isClient, isServer };
@@ -1,7 +1,7 @@
1
1
  import { memo } from 'react';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
- // src/ui/theme-context/theme-script.tsx
4
+ // src/ui/theme/themeScript.tsx
5
5
  var themeScript = (defaultTheme, storageKey, attribute, themes, value, forcedTheme, enableSystem, enableColorScheme) => {
6
6
  const el = document.documentElement;
7
7
  const systemThemes = ["light", "dark"];
@@ -3,7 +3,7 @@
3
3
  var chunkEFIRD3FN_js = require('./chunk-EFIRD3FN.js');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
 
6
- var PACKAGE_VERSION = "0.0.24" ;
6
+ var PACKAGE_VERSION = "0.0.28" ;
7
7
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
8
8
  function VersionBadge({
9
9
  className,
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
1
+ import * as React from 'react';
2
2
  import { CursorContextType } from './types.mjs';
3
3
 
4
- declare const CursorContext: react.Context<CursorContextType>;
4
+ declare const CursorContext: React.Context<CursorContextType>;
5
5
  declare const useCursor: () => CursorContextType;
6
6
 
7
7
  export { CursorContext, useCursor };
@@ -1,7 +1,7 @@
1
- import * as react from 'react';
1
+ import * as React from 'react';
2
2
  import { CursorContextType } from './types.js';
3
3
 
4
- declare const CursorContext: react.Context<CursorContextType>;
4
+ declare const CursorContext: React.Context<CursorContextType>;
5
5
  declare const useCursor: () => CursorContextType;
6
6
 
7
7
  export { CursorContext, useCursor };
@@ -1,5 +1,5 @@
1
1
  import { EnhancedComponentProps } from './types.mjs';
2
- import * as react from 'react';
2
+ import * as React from 'react';
3
3
  import { Textarea } from '../ui/textarea.mjs';
4
4
  import { TabsProps } from '../ui/tabs.mjs';
5
5
  import { ButtonProps } from '../ui/button.mjs';
@@ -11,9 +11,9 @@ import 'class-variance-authority';
11
11
  import '@radix-ui/react-tabs';
12
12
  import '@radix-ui/react-select';
13
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>>;
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
17
  declare const CursorSelectTrigger: typeof SelectTrigger;
18
18
  declare const CursorTextarea: typeof Textarea;
19
19
 
@@ -1,5 +1,5 @@
1
1
  import { EnhancedComponentProps } from './types.js';
2
- import * as react from 'react';
2
+ import * as React from 'react';
3
3
  import { Textarea } from '../ui/textarea.js';
4
4
  import { TabsProps } from '../ui/tabs.js';
5
5
  import { ButtonProps } from '../ui/button.js';
@@ -11,9 +11,9 @@ import 'class-variance-authority';
11
11
  import '@radix-ui/react-tabs';
12
12
  import '@radix-ui/react-select';
13
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>>;
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
17
  declare const CursorSelectTrigger: typeof SelectTrigger;
18
18
  declare const CursorTextarea: typeof Textarea;
19
19
 
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkPIJM7ZII_js = require('../chunk-PIJM7ZII.js');
4
- require('../chunk-6SRDWLQJ.js');
3
+ var chunk2TXGBB33_js = require('../chunk-2TXGBB33.js');
5
4
  require('../chunk-5OUTEHVX.js');
6
- require('../chunk-NP6VNT23.js');
7
5
  require('../chunk-NQRO3NQX.js');
8
- require('../chunk-XUKMVPUD.js');
6
+ require('../chunk-6SRDWLQJ.js');
7
+ require('../chunk-NP6VNT23.js');
9
8
  require('../chunk-UFHMEEGL.js');
10
- require('../chunk-XWS4SIB5.js');
9
+ require('../chunk-XUKMVPUD.js');
10
+ require('../chunk-IJ7QXNIJ.js');
11
+ require('../chunk-7DRJLKR6.js');
11
12
  require('../chunk-ZX6K2A3O.js');
12
13
  require('../chunk-XXWQ4RVP.js');
13
14
  require('../chunk-CLTLT5XW.js');
@@ -17,21 +18,21 @@ require('../chunk-OTPUWWEB.js');
17
18
 
18
19
  Object.defineProperty(exports, "CursorButton", {
19
20
  enumerable: true,
20
- get: function () { return chunkPIJM7ZII_js.CursorButton; }
21
+ get: function () { return chunk2TXGBB33_js.CursorButton; }
21
22
  });
22
23
  Object.defineProperty(exports, "CursorInputRoot", {
23
24
  enumerable: true,
24
- get: function () { return chunkPIJM7ZII_js.CursorInputRoot; }
25
+ get: function () { return chunk2TXGBB33_js.CursorInputRoot; }
25
26
  });
26
27
  Object.defineProperty(exports, "CursorSelectTrigger", {
27
28
  enumerable: true,
28
- get: function () { return chunkPIJM7ZII_js.CursorSelectTrigger; }
29
+ get: function () { return chunk2TXGBB33_js.CursorSelectTrigger; }
29
30
  });
30
31
  Object.defineProperty(exports, "CursorTabs", {
31
32
  enumerable: true,
32
- get: function () { return chunkPIJM7ZII_js.CursorTabs; }
33
+ get: function () { return chunk2TXGBB33_js.CursorTabs; }
33
34
  });
34
35
  Object.defineProperty(exports, "CursorTextarea", {
35
36
  enumerable: true,
36
- get: function () { return chunkPIJM7ZII_js.CursorTextarea; }
37
+ get: function () { return chunk2TXGBB33_js.CursorTextarea; }
37
38
  });
@@ -1,11 +1,12 @@
1
- export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-LKAGJL2E.mjs';
2
- import '../chunk-QPQFG2DZ.mjs';
1
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-HT37IGEB.mjs';
3
2
  import '../chunk-DDOX4EEM.mjs';
4
- import '../chunk-ZT6G7STM.mjs';
5
3
  import '../chunk-4F3R5V3E.mjs';
6
- import '../chunk-JOTWPUPW.mjs';
4
+ import '../chunk-QPQFG2DZ.mjs';
5
+ import '../chunk-ZT6G7STM.mjs';
7
6
  import '../chunk-44KW6PTD.mjs';
8
- import '../chunk-M4IVLZIH.mjs';
7
+ import '../chunk-JOTWPUPW.mjs';
8
+ import '../chunk-CMYR6AOY.mjs';
9
+ import '../chunk-SBHPTJE4.mjs';
9
10
  import '../chunk-GXZZGOXX.mjs';
10
11
  import '../chunk-KTNZSZ5Y.mjs';
11
12
  import '../chunk-3FR3WKI4.mjs';
@@ -2,14 +2,15 @@
2
2
 
3
3
  require('../chunk-KJ42IGH6.js');
4
4
  var chunkQEY7BWIR_js = require('../chunk-QEY7BWIR.js');
5
- var chunkPIJM7ZII_js = require('../chunk-PIJM7ZII.js');
6
- require('../chunk-6SRDWLQJ.js');
5
+ var chunk2TXGBB33_js = require('../chunk-2TXGBB33.js');
7
6
  require('../chunk-5OUTEHVX.js');
8
- require('../chunk-NP6VNT23.js');
9
7
  require('../chunk-NQRO3NQX.js');
10
- require('../chunk-XUKMVPUD.js');
8
+ require('../chunk-6SRDWLQJ.js');
9
+ require('../chunk-NP6VNT23.js');
11
10
  var chunkUFHMEEGL_js = require('../chunk-UFHMEEGL.js');
12
- require('../chunk-XWS4SIB5.js');
11
+ require('../chunk-XUKMVPUD.js');
12
+ require('../chunk-IJ7QXNIJ.js');
13
+ require('../chunk-7DRJLKR6.js');
13
14
  require('../chunk-ZX6K2A3O.js');
14
15
  require('../chunk-XXWQ4RVP.js');
15
16
  require('../chunk-CLTLT5XW.js');
@@ -23,23 +24,23 @@ Object.defineProperty(exports, "CursorProvider", {
23
24
  });
24
25
  Object.defineProperty(exports, "CursorButton", {
25
26
  enumerable: true,
26
- get: function () { return chunkPIJM7ZII_js.CursorButton; }
27
+ get: function () { return chunk2TXGBB33_js.CursorButton; }
27
28
  });
28
29
  Object.defineProperty(exports, "CursorInputRoot", {
29
30
  enumerable: true,
30
- get: function () { return chunkPIJM7ZII_js.CursorInputRoot; }
31
+ get: function () { return chunk2TXGBB33_js.CursorInputRoot; }
31
32
  });
32
33
  Object.defineProperty(exports, "CursorSelectTrigger", {
33
34
  enumerable: true,
34
- get: function () { return chunkPIJM7ZII_js.CursorSelectTrigger; }
35
+ get: function () { return chunk2TXGBB33_js.CursorSelectTrigger; }
35
36
  });
36
37
  Object.defineProperty(exports, "CursorTabs", {
37
38
  enumerable: true,
38
- get: function () { return chunkPIJM7ZII_js.CursorTabs; }
39
+ get: function () { return chunk2TXGBB33_js.CursorTabs; }
39
40
  });
40
41
  Object.defineProperty(exports, "CursorTextarea", {
41
42
  enumerable: true,
42
- get: function () { return chunkPIJM7ZII_js.CursorTextarea; }
43
+ get: function () { return chunk2TXGBB33_js.CursorTextarea; }
43
44
  });
44
45
  Object.defineProperty(exports, "withCursor", {
45
46
  enumerable: true,
@@ -1,13 +1,14 @@
1
1
  import '../chunk-VGCVIHBR.mjs';
2
2
  export { CursorProvider } from '../chunk-OOI3SJDU.mjs';
3
- export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-LKAGJL2E.mjs';
4
- import '../chunk-QPQFG2DZ.mjs';
3
+ export { CursorButton, CursorInputRoot, CursorSelectTrigger, CursorTabs, CursorTextarea } from '../chunk-HT37IGEB.mjs';
5
4
  import '../chunk-DDOX4EEM.mjs';
6
- import '../chunk-ZT6G7STM.mjs';
7
5
  import '../chunk-4F3R5V3E.mjs';
8
- import '../chunk-JOTWPUPW.mjs';
6
+ import '../chunk-QPQFG2DZ.mjs';
7
+ import '../chunk-ZT6G7STM.mjs';
9
8
  export { withCursor } from '../chunk-44KW6PTD.mjs';
10
- import '../chunk-M4IVLZIH.mjs';
9
+ import '../chunk-JOTWPUPW.mjs';
10
+ import '../chunk-CMYR6AOY.mjs';
11
+ import '../chunk-SBHPTJE4.mjs';
11
12
  import '../chunk-GXZZGOXX.mjs';
12
13
  import '../chunk-KTNZSZ5Y.mjs';
13
14
  import '../chunk-3FR3WKI4.mjs';