@vuer-ai/vuer-uikit 0.0.77 → 0.0.78

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.
@@ -46,13 +46,14 @@ function TreeEntryItem({
46
46
  isSelectable,
47
47
  selectedItemId,
48
48
  onSelectChange,
49
- expandedItems,
50
- toggleItem,
51
- alwaysShowExpand,
52
- hasDescendants,
53
- getIcon,
54
- renderLabel,
55
- dataWithMeta
49
+ expandedItems = /* @__PURE__ */ new Set(),
50
+ toggleItem = () => {
51
+ },
52
+ alwaysShowExpand = false,
53
+ hasDescendants = () => false,
54
+ getIcon = () => null,
55
+ renderLabel = (label) => label,
56
+ dataWithMeta = []
56
57
  }) {
57
58
  const handleItemSelect = () => {
58
59
  if (!item.disable && isSelectable && onSelectChange) {
@@ -112,7 +113,7 @@ function TreeEntryItem({
112
113
  style: { paddingLeft: `${indent * 1.25 + 0.5}rem` },
113
114
  children: [
114
115
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
115
- alwaysShowExpand && hasDescendants(item.id) && !expandedItems.has(item.id) ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
116
+ alwaysShowExpand && hasDescendants(item.id) && expandedItems && !expandedItems.has(item.id) ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
116
117
  /* @__PURE__ */ jsxRuntime.jsx(
117
118
  "button",
118
119
  {
@@ -156,7 +157,7 @@ function TreeEntryItem({
156
157
  {
157
158
  className: chunkOHIB3TEN_cjs.cn(
158
159
  "size-4 transition-transform",
159
- !expandedItems.has(item.id) && "-rotate-90",
160
+ expandedItems && !expandedItems.has(item.id) && "-rotate-90",
160
161
  item.disable && "text-icon-tertiary"
161
162
  )
162
163
  }
@@ -44,13 +44,14 @@ function TreeEntryItem({
44
44
  isSelectable,
45
45
  selectedItemId,
46
46
  onSelectChange,
47
- expandedItems,
48
- toggleItem,
49
- alwaysShowExpand,
50
- hasDescendants,
51
- getIcon,
52
- renderLabel,
53
- dataWithMeta
47
+ expandedItems = /* @__PURE__ */ new Set(),
48
+ toggleItem = () => {
49
+ },
50
+ alwaysShowExpand = false,
51
+ hasDescendants = () => false,
52
+ getIcon = () => null,
53
+ renderLabel = (label) => label,
54
+ dataWithMeta = []
54
55
  }) {
55
56
  const handleItemSelect = () => {
56
57
  if (!item.disable && isSelectable && onSelectChange) {
@@ -110,7 +111,7 @@ function TreeEntryItem({
110
111
  style: { paddingLeft: `${indent * 1.25 + 0.5}rem` },
111
112
  children: [
112
113
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
113
- alwaysShowExpand && hasDescendants(item.id) && !expandedItems.has(item.id) ? /* @__PURE__ */ jsxs(Fragment, { children: [
114
+ alwaysShowExpand && hasDescendants(item.id) && expandedItems && !expandedItems.has(item.id) ? /* @__PURE__ */ jsxs(Fragment, { children: [
114
115
  /* @__PURE__ */ jsx(
115
116
  "button",
116
117
  {
@@ -154,7 +155,7 @@ function TreeEntryItem({
154
155
  {
155
156
  className: cn(
156
157
  "size-4 transition-transform",
157
- !expandedItems.has(item.id) && "-rotate-90",
158
+ expandedItems && !expandedItems.has(item.id) && "-rotate-90",
158
159
  item.disable && "text-icon-tertiary"
159
160
  )
160
161
  }
@@ -2,9 +2,9 @@ import { cn } from './chunk-HMN4IKTG.mjs';
2
2
  import { GitBranch } from 'lucide-react';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
 
5
- var PACKAGE_VERSION = "0.0.76" ;
5
+ var PACKAGE_VERSION = "0.0.77" ;
6
6
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
7
- var GIT_HASH = "d181b80" ;
7
+ var GIT_HASH = "215fde2" ;
8
8
  function PackageBadge({
9
9
  className,
10
10
  packageName,
@@ -4,9 +4,9 @@ var chunkOHIB3TEN_cjs = require('./chunk-OHIB3TEN.cjs');
4
4
  var lucideReact = require('lucide-react');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
7
- var PACKAGE_VERSION = "0.0.76" ;
7
+ var PACKAGE_VERSION = "0.0.77" ;
8
8
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
9
- var GIT_HASH = "d181b80" ;
9
+ var GIT_HASH = "215fde2" ;
10
10
  function PackageBadge({
11
11
  className,
12
12
  packageName,
package/dist/index.cjs CHANGED
@@ -20,7 +20,7 @@ var chunkW3J4QTKS_cjs = require('./chunk-W3J4QTKS.cjs');
20
20
  require('./chunk-UCRLH44Q.cjs');
21
21
  require('./chunk-G5NT42YF.cjs');
22
22
  var chunkRM7E3WGH_cjs = require('./chunk-RM7E3WGH.cjs');
23
- var chunkUHDBWDHS_cjs = require('./chunk-UHDBWDHS.cjs');
23
+ var chunk63LX3ILN_cjs = require('./chunk-63LX3ILN.cjs');
24
24
  var chunkSYXRPCBO_cjs = require('./chunk-SYXRPCBO.cjs');
25
25
  require('./chunk-VOTZLQ6J.cjs');
26
26
  var chunkKAA4NEHL_cjs = require('./chunk-KAA4NEHL.cjs');
@@ -127,11 +127,11 @@ Object.defineProperty(exports, "TreeSearchBar", {
127
127
  });
128
128
  Object.defineProperty(exports, "TreeEntryItem", {
129
129
  enumerable: true,
130
- get: function () { return chunkUHDBWDHS_cjs.TreeEntryItem; }
130
+ get: function () { return chunk63LX3ILN_cjs.TreeEntryItem; }
131
131
  });
132
132
  Object.defineProperty(exports, "TreeView", {
133
133
  enumerable: true,
134
- get: function () { return chunkUHDBWDHS_cjs.TreeView; }
134
+ get: function () { return chunk63LX3ILN_cjs.TreeView; }
135
135
  });
136
136
  Object.defineProperty(exports, "useTreeSearch", {
137
137
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ export { LiquidLayoutView } from './chunk-L26ULDYM.mjs';
18
18
  import './chunk-V2IP7UUV.mjs';
19
19
  import './chunk-HVVT3D2T.mjs';
20
20
  export { TreeSearchBar } from './chunk-W4CDQ2RJ.mjs';
21
- export { TreeEntryItem, TreeView } from './chunk-3LM4LVYM.mjs';
21
+ export { TreeEntryItem, TreeView } from './chunk-67FOC7SV.mjs';
22
22
  export { useTreeSearch, useTreeState } from './chunk-BWBBQCG2.mjs';
23
23
  import './chunk-HTAFERCZ.mjs';
24
24
  export { DockLayoutView } from './chunk-5T7MTIHW.mjs';
package/dist/ui/index.cjs CHANGED
@@ -20,7 +20,7 @@ var chunkW3J4QTKS_cjs = require('../chunk-W3J4QTKS.cjs');
20
20
  require('../chunk-UCRLH44Q.cjs');
21
21
  require('../chunk-G5NT42YF.cjs');
22
22
  var chunkRM7E3WGH_cjs = require('../chunk-RM7E3WGH.cjs');
23
- var chunkUHDBWDHS_cjs = require('../chunk-UHDBWDHS.cjs');
23
+ var chunk63LX3ILN_cjs = require('../chunk-63LX3ILN.cjs');
24
24
  var chunkSYXRPCBO_cjs = require('../chunk-SYXRPCBO.cjs');
25
25
  require('../chunk-VOTZLQ6J.cjs');
26
26
  var chunkKAA4NEHL_cjs = require('../chunk-KAA4NEHL.cjs');
@@ -122,11 +122,11 @@ Object.defineProperty(exports, "TreeSearchBar", {
122
122
  });
123
123
  Object.defineProperty(exports, "TreeEntryItem", {
124
124
  enumerable: true,
125
- get: function () { return chunkUHDBWDHS_cjs.TreeEntryItem; }
125
+ get: function () { return chunk63LX3ILN_cjs.TreeEntryItem; }
126
126
  });
127
127
  Object.defineProperty(exports, "TreeView", {
128
128
  enumerable: true,
129
- get: function () { return chunkUHDBWDHS_cjs.TreeView; }
129
+ get: function () { return chunk63LX3ILN_cjs.TreeView; }
130
130
  });
131
131
  Object.defineProperty(exports, "useTreeSearch", {
132
132
  enumerable: true,
package/dist/ui/index.mjs CHANGED
@@ -18,7 +18,7 @@ export { LiquidLayoutView } from '../chunk-L26ULDYM.mjs';
18
18
  import '../chunk-V2IP7UUV.mjs';
19
19
  import '../chunk-HVVT3D2T.mjs';
20
20
  export { TreeSearchBar } from '../chunk-W4CDQ2RJ.mjs';
21
- export { TreeEntryItem, TreeView } from '../chunk-3LM4LVYM.mjs';
21
+ export { TreeEntryItem, TreeView } from '../chunk-67FOC7SV.mjs';
22
22
  export { useTreeSearch, useTreeState } from '../chunk-BWBBQCG2.mjs';
23
23
  import '../chunk-HTAFERCZ.mjs';
24
24
  export { DockLayoutView } from '../chunk-5T7MTIHW.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUHDBWDHS_cjs = require('../../chunk-UHDBWDHS.cjs');
3
+ var chunk63LX3ILN_cjs = require('../../chunk-63LX3ILN.cjs');
4
4
  require('../../chunk-QN4N4I3Z.cjs');
5
5
  require('../../chunk-Q7E73DVJ.cjs');
6
6
  require('../../chunk-JR4TVE43.cjs');
@@ -16,9 +16,9 @@ require('../../chunk-OHIB3TEN.cjs');
16
16
 
17
17
  Object.defineProperty(exports, "TreeEntryItem", {
18
18
  enumerable: true,
19
- get: function () { return chunkUHDBWDHS_cjs.TreeEntryItem; }
19
+ get: function () { return chunk63LX3ILN_cjs.TreeEntryItem; }
20
20
  });
21
21
  Object.defineProperty(exports, "TreeView", {
22
22
  enumerable: true,
23
- get: function () { return chunkUHDBWDHS_cjs.TreeView; }
23
+ get: function () { return chunk63LX3ILN_cjs.TreeView; }
24
24
  });
@@ -36,13 +36,13 @@ declare function TreeEntryItem<T extends TreeDataItem>({ item, hoveredId, onItem
36
36
  isSelectable?: boolean;
37
37
  selectedItemId?: string | null;
38
38
  onSelectChange?: (id: string | null) => void;
39
- expandedItems: Set<string>;
40
- toggleItem: (id: string) => void;
39
+ expandedItems?: Set<string>;
40
+ toggleItem?: (id: string) => void;
41
41
  alwaysShowExpand?: boolean;
42
- hasDescendants: (id: string) => boolean;
43
- getIcon: (item: T) => ReactNode;
44
- renderLabel: (label: string, itemId: string) => ReactNode;
45
- dataWithMeta: TreeDataItemWithMeta<T>[];
42
+ hasDescendants?: (id: string) => boolean;
43
+ getIcon?: (item: T) => ReactNode;
44
+ renderLabel?: (label: string, itemId: string) => ReactNode;
45
+ dataWithMeta?: TreeDataItemWithMeta<T>[];
46
46
  }): react_jsx_runtime.JSX.Element;
47
47
 
48
48
  export { TreeEntryItem, TreeView, type TreeViewProps };
@@ -36,13 +36,13 @@ declare function TreeEntryItem<T extends TreeDataItem>({ item, hoveredId, onItem
36
36
  isSelectable?: boolean;
37
37
  selectedItemId?: string | null;
38
38
  onSelectChange?: (id: string | null) => void;
39
- expandedItems: Set<string>;
40
- toggleItem: (id: string) => void;
39
+ expandedItems?: Set<string>;
40
+ toggleItem?: (id: string) => void;
41
41
  alwaysShowExpand?: boolean;
42
- hasDescendants: (id: string) => boolean;
43
- getIcon: (item: T) => ReactNode;
44
- renderLabel: (label: string, itemId: string) => ReactNode;
45
- dataWithMeta: TreeDataItemWithMeta<T>[];
42
+ hasDescendants?: (id: string) => boolean;
43
+ getIcon?: (item: T) => ReactNode;
44
+ renderLabel?: (label: string, itemId: string) => ReactNode;
45
+ dataWithMeta?: TreeDataItemWithMeta<T>[];
46
46
  }): react_jsx_runtime.JSX.Element;
47
47
 
48
48
  export { TreeEntryItem, TreeView, type TreeViewProps };
@@ -1,4 +1,4 @@
1
- export { TreeEntryItem, TreeView } from '../../chunk-3LM4LVYM.mjs';
1
+ export { TreeEntryItem, TreeView } from '../../chunk-67FOC7SV.mjs';
2
2
  import '../../chunk-F7ZHPSLA.mjs';
3
3
  import '../../chunk-3QT5VABC.mjs';
4
4
  import '../../chunk-XHJDRQD7.mjs';
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('../../chunk-G5NT42YF.cjs');
4
4
  var chunkRM7E3WGH_cjs = require('../../chunk-RM7E3WGH.cjs');
5
- var chunkUHDBWDHS_cjs = require('../../chunk-UHDBWDHS.cjs');
5
+ var chunk63LX3ILN_cjs = require('../../chunk-63LX3ILN.cjs');
6
6
  var chunkSYXRPCBO_cjs = require('../../chunk-SYXRPCBO.cjs');
7
7
  require('../../chunk-VOTZLQ6J.cjs');
8
8
  require('../../chunk-LCCNBVKZ.cjs');
@@ -26,11 +26,11 @@ Object.defineProperty(exports, "TreeSearchBar", {
26
26
  });
27
27
  Object.defineProperty(exports, "TreeEntryItem", {
28
28
  enumerable: true,
29
- get: function () { return chunkUHDBWDHS_cjs.TreeEntryItem; }
29
+ get: function () { return chunk63LX3ILN_cjs.TreeEntryItem; }
30
30
  });
31
31
  Object.defineProperty(exports, "TreeView", {
32
32
  enumerable: true,
33
- get: function () { return chunkUHDBWDHS_cjs.TreeView; }
33
+ get: function () { return chunk63LX3ILN_cjs.TreeView; }
34
34
  });
35
35
  Object.defineProperty(exports, "useTreeSearch", {
36
36
  enumerable: true,
@@ -1,6 +1,6 @@
1
1
  import '../../chunk-HVVT3D2T.mjs';
2
2
  export { TreeSearchBar } from '../../chunk-W4CDQ2RJ.mjs';
3
- export { TreeEntryItem, TreeView } from '../../chunk-3LM4LVYM.mjs';
3
+ export { TreeEntryItem, TreeView } from '../../chunk-67FOC7SV.mjs';
4
4
  export { useTreeSearch, useTreeState } from '../../chunk-BWBBQCG2.mjs';
5
5
  import '../../chunk-HTAFERCZ.mjs';
6
6
  import '../../chunk-PCSY5IJ2.mjs';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vuer-ai/vuer-uikit",
3
3
  "author": "Ge Yang",
4
- "version": "0.0.77",
4
+ "version": "0.0.78",
5
5
  "files": [
6
6
  "/dist"
7
7
  ],