@vuer-ai/vuer-uikit 0.0.75 → 0.0.77

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 (124) hide show
  1. package/dist/{chunk-P27TWGME.cjs → chunk-33ZAFHOY.cjs} +2 -2
  2. package/dist/{chunk-IZFHHQ6S.mjs → chunk-3HERIMKO.mjs} +2 -2
  3. package/dist/chunk-3LM4LVYM.mjs +187 -0
  4. package/dist/chunk-6E4NTY34.cjs +494 -0
  5. package/dist/{chunk-VNYP2IVJ.cjs → chunk-7644AY3P.cjs} +2 -2
  6. package/dist/chunk-AHNVEAOM.cjs +855 -0
  7. package/dist/{chunk-5432JOTN.mjs → chunk-AOAM6HV2.mjs} +2 -2
  8. package/dist/chunk-BWBBQCG2.mjs +217 -0
  9. package/dist/{chunk-P5T6EVSQ.mjs → chunk-CSSMBHBD.mjs} +1 -1
  10. package/dist/chunk-CW6FHIAT.cjs +624 -0
  11. package/dist/chunk-D4W2G6CY.cjs +494 -0
  12. package/dist/{chunk-NS2P4CPA.mjs → chunk-D5YKZOUG.mjs} +4 -4
  13. package/dist/{chunk-2274XZ2C.cjs → chunk-E6D3BSYY.cjs} +6 -6
  14. package/dist/chunk-HOJOWLJT.mjs +142 -0
  15. package/dist/chunk-HTAFERCZ.mjs +1 -0
  16. package/dist/chunk-HTHCG2AN.cjs +125 -0
  17. package/dist/chunk-HVVT3D2T.mjs +1 -0
  18. package/dist/chunk-IZJYFVS7.mjs +15 -0
  19. package/dist/chunk-KFPS5CCR.cjs +2 -0
  20. package/dist/chunk-KQXLV6YW.mjs +489 -0
  21. package/dist/chunk-LBENVTO2.mjs +853 -0
  22. package/dist/chunk-MMT74K7A.mjs +247 -0
  23. package/dist/chunk-NEOSSUNE.mjs +599 -0
  24. package/dist/chunk-OEM5OJDP.mjs +489 -0
  25. package/dist/chunk-RM7E3WGH.cjs +71 -0
  26. package/dist/chunk-SYXRPCBO.cjs +220 -0
  27. package/dist/chunk-TE5JNR5C.mjs +117 -0
  28. package/dist/chunk-UHDBWDHS.cjs +190 -0
  29. package/dist/{chunk-Z5P6VCGR.cjs → chunk-V2OROE7H.cjs} +2 -2
  30. package/dist/chunk-VOTZLQ6J.cjs +2 -0
  31. package/dist/chunk-W4CDQ2RJ.mjs +69 -0
  32. package/dist/chunk-XKIB3LSS.cjs +167 -0
  33. package/dist/chunk-YPQYI63K.cjs +249 -0
  34. package/dist/chunk-ZO3X2NDT.cjs +21 -0
  35. package/dist/highlight-cursor/enhanced-components.cjs +8 -8
  36. package/dist/highlight-cursor/enhanced-components.mjs +3 -3
  37. package/dist/highlight-cursor/index.cjs +12 -12
  38. package/dist/highlight-cursor/index.mjs +3 -3
  39. package/dist/index.cjs +442 -417
  40. package/dist/index.d.cts +6 -2
  41. package/dist/index.d.ts +6 -2
  42. package/dist/index.mjs +43 -38
  43. package/dist/ui/UIKitBadge.cjs +5 -5
  44. package/dist/ui/UIKitBadge.mjs +1 -1
  45. package/dist/ui/badge.d.cts +1 -1
  46. package/dist/ui/badge.d.ts +1 -1
  47. package/dist/ui/index.cjs +362 -337
  48. package/dist/ui/index.d.cts +6 -2
  49. package/dist/ui/index.d.ts +6 -2
  50. package/dist/ui/index.mjs +42 -37
  51. package/dist/ui/inputs/index.cjs +5 -5
  52. package/dist/ui/inputs/index.mjs +1 -1
  53. package/dist/ui/inputs/input.d.cts +1 -1
  54. package/dist/ui/inputs/input.d.ts +1 -1
  55. package/dist/ui/layouts/index.cjs +6 -6
  56. package/dist/ui/layouts/index.mjs +2 -2
  57. package/dist/ui/pagination.cjs +9 -9
  58. package/dist/ui/pagination.mjs +2 -2
  59. package/dist/ui/select.d.cts +1 -1
  60. package/dist/ui/select.d.ts +1 -1
  61. package/dist/ui/sidebar.cjs +26 -26
  62. package/dist/ui/sidebar.mjs +2 -2
  63. package/dist/ui/{tree-view.cjs → simple-tree-view.cjs} +3 -3
  64. package/dist/ui/{tree-view.d.cts → simple-tree-view.d.cts} +1 -1
  65. package/dist/ui/{tree-view.d.ts → simple-tree-view.d.ts} +1 -1
  66. package/dist/ui/{tree-view.mjs → simple-tree-view.mjs} +1 -1
  67. package/dist/ui/tabs.cjs +6 -6
  68. package/dist/ui/tabs.mjs +2 -2
  69. package/dist/ui/textarea.d.cts +1 -1
  70. package/dist/ui/textarea.d.ts +1 -1
  71. package/dist/ui/timeline.cjs +4 -4
  72. package/dist/ui/timeline.d.cts +1 -1
  73. package/dist/ui/timeline.d.ts +1 -1
  74. package/dist/ui/timeline.mjs +3 -3
  75. package/dist/ui/tree-view/TreeSearchBar.cjs +22 -0
  76. package/dist/ui/tree-view/TreeSearchBar.d.cts +16 -0
  77. package/dist/ui/tree-view/TreeSearchBar.d.ts +16 -0
  78. package/dist/ui/tree-view/TreeSearchBar.mjs +13 -0
  79. package/dist/ui/tree-view/TreeView.cjs +24 -0
  80. package/dist/ui/tree-view/TreeView.d.cts +48 -0
  81. package/dist/ui/tree-view/TreeView.d.ts +48 -0
  82. package/dist/ui/tree-view/TreeView.mjs +11 -0
  83. package/dist/ui/tree-view/hooks.cjs +14 -0
  84. package/dist/ui/tree-view/hooks.d.cts +38 -0
  85. package/dist/ui/tree-view/hooks.d.ts +38 -0
  86. package/dist/ui/tree-view/hooks.mjs +1 -0
  87. package/dist/ui/tree-view/index.cjs +42 -0
  88. package/dist/ui/tree-view/index.d.cts +6 -0
  89. package/dist/ui/tree-view/index.d.ts +6 -0
  90. package/dist/ui/tree-view/index.mjs +17 -0
  91. package/dist/ui/tree-view/types.cjs +4 -0
  92. package/dist/ui/tree-view/types.d.cts +24 -0
  93. package/dist/ui/tree-view/types.d.ts +24 -0
  94. package/dist/ui/tree-view/types.mjs +1 -0
  95. package/dist/ui/tree-view-legacy.cjs +37 -0
  96. package/dist/ui/tree-view-legacy.d.cts +108 -0
  97. package/dist/ui/tree-view-legacy.d.ts +108 -0
  98. package/dist/ui/{tree-view-v2.mjs → tree-view-legacy.mjs} +2 -2
  99. package/dist/ui/waterfall/TimelineEvent.d.cts +1 -1
  100. package/dist/ui/waterfall/TimelineEvent.d.ts +1 -1
  101. package/dist/ui/waterfall/TimelineProcessBar.d.cts +1 -1
  102. package/dist/ui/waterfall/TimelineProcessBar.d.ts +1 -1
  103. package/dist/ui/waterfall/Wedges.d.cts +1 -1
  104. package/dist/ui/waterfall/Wedges.d.ts +1 -1
  105. package/dist/ui/waterfall/hooks/useTimelineState.d.cts +1 -2
  106. package/dist/ui/waterfall/hooks/useTimelineState.d.ts +1 -2
  107. package/dist/ui/waterfall/hooks/useViewport.d.cts +1 -2
  108. package/dist/ui/waterfall/hooks/useViewport.d.ts +1 -2
  109. package/dist/ui/waterfall/index.cjs +6 -6
  110. package/dist/ui/waterfall/index.d.cts +1 -1
  111. package/dist/ui/waterfall/index.d.ts +1 -1
  112. package/dist/ui/waterfall/index.mjs +5 -5
  113. package/dist/ui/waterfall/types.d.cts +1 -2
  114. package/dist/ui/waterfall/types.d.ts +1 -2
  115. package/package.json +1 -1
  116. package/dist/chunk-FD5AAGON.cjs +0 -487
  117. package/dist/chunk-ILGNKXK2.mjs +0 -485
  118. package/dist/ui/tree-view-v2.cjs +0 -25
  119. package/dist/ui/tree-view-v2.d.cts +0 -43
  120. package/dist/ui/tree-view-v2.d.ts +0 -43
  121. /package/dist/{chunk-SUABRIFA.mjs → chunk-2SWBXWLK.mjs} +0 -0
  122. /package/dist/{chunk-XMUP5MIM.mjs → chunk-G3EIVAVR.mjs} +0 -0
  123. /package/dist/{chunk-OX2U5RAG.cjs → chunk-G5NT42YF.cjs} +0 -0
  124. /package/dist/{chunk-J5DLIKNB.cjs → chunk-X2A7TKER.cjs} +0 -0
@@ -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.74" ;
7
+ var PACKAGE_VERSION = "0.0.75" ;
8
8
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
9
- var GIT_HASH = "5cd2f59" ;
9
+ var GIT_HASH = "f5eb08c" ;
10
10
  function PackageBadge({
11
11
  className,
12
12
  packageName,
@@ -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.74" ;
5
+ var PACKAGE_VERSION = "0.0.76" ;
6
6
  var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
7
- var GIT_HASH = "ff4e4b8" ;
7
+ var GIT_HASH = "d181b80" ;
8
8
  function PackageBadge({
9
9
  className,
10
10
  packageName,
@@ -0,0 +1,187 @@
1
+ import { cn } from './chunk-HMN4IKTG.mjs';
2
+ import { ChevronDown } from 'lucide-react';
3
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
+
5
+ function TreeView({
6
+ data,
7
+ getIcon,
8
+ expandedItems,
9
+ onToggleItem,
10
+ onItemHover,
11
+ hoveredId,
12
+ isSelectable = false,
13
+ selectedItemId,
14
+ onSelectChange,
15
+ alwaysShowExpand = false,
16
+ hasDescendants = () => false,
17
+ renderLabel = (label) => label,
18
+ className
19
+ }) {
20
+ return /* @__PURE__ */ jsx("div", { className: cn("flex-1 overflow-y-auto", className), children: data.map((item) => /* @__PURE__ */ jsx(
21
+ TreeEntryItem,
22
+ {
23
+ item,
24
+ hoveredId,
25
+ onItemHover,
26
+ isSelectable,
27
+ selectedItemId,
28
+ onSelectChange,
29
+ expandedItems,
30
+ toggleItem: onToggleItem,
31
+ alwaysShowExpand,
32
+ hasDescendants,
33
+ getIcon,
34
+ renderLabel,
35
+ dataWithMeta: data
36
+ },
37
+ item.id
38
+ )) });
39
+ }
40
+ function TreeEntryItem({
41
+ item,
42
+ hoveredId,
43
+ onItemHover,
44
+ isSelectable,
45
+ selectedItemId,
46
+ onSelectChange,
47
+ expandedItems,
48
+ toggleItem,
49
+ alwaysShowExpand,
50
+ hasDescendants,
51
+ getIcon,
52
+ renderLabel,
53
+ dataWithMeta
54
+ }) {
55
+ const handleItemSelect = () => {
56
+ if (!item.disable && isSelectable && onSelectChange) {
57
+ onSelectChange(selectedItemId === item.id ? null : item.id);
58
+ }
59
+ };
60
+ const ancestors = item.ancestors || [];
61
+ const indent = item.indent || 0;
62
+ const isLast = item.isLast !== void 0 ? item.isLast : false;
63
+ return /* @__PURE__ */ jsxs(
64
+ "div",
65
+ {
66
+ className: cn(
67
+ "group relative flex h-[32px] items-center",
68
+ isSelectable && "rounded-uk-md",
69
+ !item.disable && "cursor-pointer",
70
+ hoveredId === item.id && !item.disable && "bg-bg-secondary",
71
+ isSelectable && selectedItemId === item.id && "bg-brand-primary text-text-withbg"
72
+ ),
73
+ onMouseEnter: () => onItemHover?.(item.id),
74
+ onMouseLeave: () => onItemHover?.(null),
75
+ onClick: handleItemSelect,
76
+ children: [
77
+ /* @__PURE__ */ jsxs("div", { className: "absolute top-0 left-[-0.28rem] z-0 flex h-full items-center", children: [
78
+ ancestors.map((ancestor, index) => {
79
+ const parentIsLast = dataWithMeta.find((d) => d.id === ancestor.id)?.isLast;
80
+ return /* @__PURE__ */ jsx(
81
+ "div",
82
+ {
83
+ className: cn(
84
+ "h-full w-[1.25rem]",
85
+ parentIsLast ? "" : "border-l",
86
+ "border-line-primary"
87
+ )
88
+ },
89
+ index
90
+ );
91
+ }),
92
+ indent > 0 && /* @__PURE__ */ jsxs("div", { className: "relative h-full w-[1.24rem]", children: [
93
+ /* @__PURE__ */ jsx(
94
+ "div",
95
+ {
96
+ className: cn(
97
+ "absolute top-0 left-0 h-1/2 w-1/2 border-b border-l",
98
+ isLast ? "rounded-bl-md" : "",
99
+ "border-line-primary"
100
+ )
101
+ }
102
+ ),
103
+ !isLast && /* @__PURE__ */ jsx("div", { className: "border-line-primary absolute top-1/2 left-0 h-1/2 w-1/2 border-l" })
104
+ ] })
105
+ ] }),
106
+ /* @__PURE__ */ jsxs(
107
+ "div",
108
+ {
109
+ className: "text-uk-md z-10 flex w-full items-center justify-between gap-2 px-2 whitespace-nowrap",
110
+ style: { paddingLeft: `${indent * 1.25 + 0.5}rem` },
111
+ children: [
112
+ /* @__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
+ /* @__PURE__ */ jsx(
115
+ "button",
116
+ {
117
+ onClick: (e) => {
118
+ e.stopPropagation();
119
+ toggleItem(item.id);
120
+ },
121
+ className: "flex size-4 cursor-pointer items-center justify-center",
122
+ children: /* @__PURE__ */ jsx(
123
+ ChevronDown,
124
+ {
125
+ className: cn(
126
+ "size-4 -rotate-90 transition-transform",
127
+ item.disable && "text-icon-tertiary"
128
+ )
129
+ }
130
+ )
131
+ }
132
+ ),
133
+ /* @__PURE__ */ jsx(
134
+ "div",
135
+ {
136
+ className: cn(
137
+ "flex size-4 items-center justify-center",
138
+ item.disable && "text-icon-tertiary"
139
+ ),
140
+ children: getIcon(item)
141
+ }
142
+ )
143
+ ] }) : /* @__PURE__ */ jsxs("div", { className: "relative flex size-4 items-center justify-center", children: [
144
+ item.isCollapsible && /* @__PURE__ */ jsx(
145
+ "button",
146
+ {
147
+ onClick: (e) => {
148
+ e.stopPropagation();
149
+ toggleItem(item.id);
150
+ },
151
+ className: "absolute z-20 flex cursor-pointer items-center justify-center opacity-0 transition-opacity group-hover:opacity-100",
152
+ children: /* @__PURE__ */ jsx(
153
+ ChevronDown,
154
+ {
155
+ className: cn(
156
+ "size-4 transition-transform",
157
+ !expandedItems.has(item.id) && "-rotate-90",
158
+ item.disable && "text-icon-tertiary"
159
+ )
160
+ }
161
+ )
162
+ }
163
+ ),
164
+ /* @__PURE__ */ jsx(
165
+ "div",
166
+ {
167
+ className: cn(
168
+ "cursor-pointer transition-opacity",
169
+ item.isCollapsible && "group-hover:opacity-0",
170
+ item.disable && "text-icon-tertiary"
171
+ ),
172
+ children: getIcon(item)
173
+ }
174
+ )
175
+ ] }),
176
+ /* @__PURE__ */ jsx("span", { className: cn("truncate", item.disable && "text-text-tertiary"), children: renderLabel(item.label, item.id) })
177
+ ] }),
178
+ item.actions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", onClick: (e) => e.stopPropagation(), children: item.actions })
179
+ ]
180
+ }
181
+ )
182
+ ]
183
+ }
184
+ );
185
+ }
186
+
187
+ export { TreeEntryItem, TreeView };