@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.
- package/dist/{chunk-P27TWGME.cjs → chunk-33ZAFHOY.cjs} +2 -2
- package/dist/{chunk-IZFHHQ6S.mjs → chunk-3HERIMKO.mjs} +2 -2
- package/dist/chunk-3LM4LVYM.mjs +187 -0
- package/dist/chunk-6E4NTY34.cjs +494 -0
- package/dist/{chunk-VNYP2IVJ.cjs → chunk-7644AY3P.cjs} +2 -2
- package/dist/chunk-AHNVEAOM.cjs +855 -0
- package/dist/{chunk-5432JOTN.mjs → chunk-AOAM6HV2.mjs} +2 -2
- package/dist/chunk-BWBBQCG2.mjs +217 -0
- package/dist/{chunk-P5T6EVSQ.mjs → chunk-CSSMBHBD.mjs} +1 -1
- package/dist/chunk-CW6FHIAT.cjs +624 -0
- package/dist/chunk-D4W2G6CY.cjs +494 -0
- package/dist/{chunk-NS2P4CPA.mjs → chunk-D5YKZOUG.mjs} +4 -4
- package/dist/{chunk-2274XZ2C.cjs → chunk-E6D3BSYY.cjs} +6 -6
- package/dist/chunk-HOJOWLJT.mjs +142 -0
- package/dist/chunk-HTAFERCZ.mjs +1 -0
- package/dist/chunk-HTHCG2AN.cjs +125 -0
- package/dist/chunk-HVVT3D2T.mjs +1 -0
- package/dist/chunk-IZJYFVS7.mjs +15 -0
- package/dist/chunk-KFPS5CCR.cjs +2 -0
- package/dist/chunk-KQXLV6YW.mjs +489 -0
- package/dist/chunk-LBENVTO2.mjs +853 -0
- package/dist/chunk-MMT74K7A.mjs +247 -0
- package/dist/chunk-NEOSSUNE.mjs +599 -0
- package/dist/chunk-OEM5OJDP.mjs +489 -0
- package/dist/chunk-RM7E3WGH.cjs +71 -0
- package/dist/chunk-SYXRPCBO.cjs +220 -0
- package/dist/chunk-TE5JNR5C.mjs +117 -0
- package/dist/chunk-UHDBWDHS.cjs +190 -0
- package/dist/{chunk-Z5P6VCGR.cjs → chunk-V2OROE7H.cjs} +2 -2
- package/dist/chunk-VOTZLQ6J.cjs +2 -0
- package/dist/chunk-W4CDQ2RJ.mjs +69 -0
- package/dist/chunk-XKIB3LSS.cjs +167 -0
- package/dist/chunk-YPQYI63K.cjs +249 -0
- package/dist/chunk-ZO3X2NDT.cjs +21 -0
- package/dist/highlight-cursor/enhanced-components.cjs +8 -8
- package/dist/highlight-cursor/enhanced-components.mjs +3 -3
- package/dist/highlight-cursor/index.cjs +12 -12
- package/dist/highlight-cursor/index.mjs +3 -3
- package/dist/index.cjs +442 -417
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +43 -38
- package/dist/ui/UIKitBadge.cjs +5 -5
- package/dist/ui/UIKitBadge.mjs +1 -1
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/index.cjs +362 -337
- package/dist/ui/index.d.cts +6 -2
- package/dist/ui/index.d.ts +6 -2
- package/dist/ui/index.mjs +42 -37
- package/dist/ui/inputs/index.cjs +5 -5
- package/dist/ui/inputs/index.mjs +1 -1
- package/dist/ui/inputs/input.d.cts +1 -1
- package/dist/ui/inputs/input.d.ts +1 -1
- package/dist/ui/layouts/index.cjs +6 -6
- package/dist/ui/layouts/index.mjs +2 -2
- package/dist/ui/pagination.cjs +9 -9
- package/dist/ui/pagination.mjs +2 -2
- package/dist/ui/select.d.cts +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/sidebar.cjs +26 -26
- package/dist/ui/sidebar.mjs +2 -2
- package/dist/ui/{tree-view.cjs → simple-tree-view.cjs} +3 -3
- package/dist/ui/{tree-view.d.cts → simple-tree-view.d.cts} +1 -1
- package/dist/ui/{tree-view.d.ts → simple-tree-view.d.ts} +1 -1
- package/dist/ui/{tree-view.mjs → simple-tree-view.mjs} +1 -1
- package/dist/ui/tabs.cjs +6 -6
- package/dist/ui/tabs.mjs +2 -2
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/timeline.cjs +4 -4
- package/dist/ui/timeline.d.cts +1 -1
- package/dist/ui/timeline.d.ts +1 -1
- package/dist/ui/timeline.mjs +3 -3
- package/dist/ui/tree-view/TreeSearchBar.cjs +22 -0
- package/dist/ui/tree-view/TreeSearchBar.d.cts +16 -0
- package/dist/ui/tree-view/TreeSearchBar.d.ts +16 -0
- package/dist/ui/tree-view/TreeSearchBar.mjs +13 -0
- package/dist/ui/tree-view/TreeView.cjs +24 -0
- package/dist/ui/tree-view/TreeView.d.cts +48 -0
- package/dist/ui/tree-view/TreeView.d.ts +48 -0
- package/dist/ui/tree-view/TreeView.mjs +11 -0
- package/dist/ui/tree-view/hooks.cjs +14 -0
- package/dist/ui/tree-view/hooks.d.cts +38 -0
- package/dist/ui/tree-view/hooks.d.ts +38 -0
- package/dist/ui/tree-view/hooks.mjs +1 -0
- package/dist/ui/tree-view/index.cjs +42 -0
- package/dist/ui/tree-view/index.d.cts +6 -0
- package/dist/ui/tree-view/index.d.ts +6 -0
- package/dist/ui/tree-view/index.mjs +17 -0
- package/dist/ui/tree-view/types.cjs +4 -0
- package/dist/ui/tree-view/types.d.cts +24 -0
- package/dist/ui/tree-view/types.d.ts +24 -0
- package/dist/ui/tree-view/types.mjs +1 -0
- package/dist/ui/tree-view-legacy.cjs +37 -0
- package/dist/ui/tree-view-legacy.d.cts +108 -0
- package/dist/ui/tree-view-legacy.d.ts +108 -0
- package/dist/ui/{tree-view-v2.mjs → tree-view-legacy.mjs} +2 -2
- package/dist/ui/waterfall/TimelineEvent.d.cts +1 -1
- package/dist/ui/waterfall/TimelineEvent.d.ts +1 -1
- package/dist/ui/waterfall/TimelineProcessBar.d.cts +1 -1
- package/dist/ui/waterfall/TimelineProcessBar.d.ts +1 -1
- package/dist/ui/waterfall/Wedges.d.cts +1 -1
- package/dist/ui/waterfall/Wedges.d.ts +1 -1
- package/dist/ui/waterfall/hooks/useTimelineState.d.cts +1 -2
- package/dist/ui/waterfall/hooks/useTimelineState.d.ts +1 -2
- package/dist/ui/waterfall/hooks/useViewport.d.cts +1 -2
- package/dist/ui/waterfall/hooks/useViewport.d.ts +1 -2
- package/dist/ui/waterfall/index.cjs +6 -6
- package/dist/ui/waterfall/index.d.cts +1 -1
- package/dist/ui/waterfall/index.d.ts +1 -1
- package/dist/ui/waterfall/index.mjs +5 -5
- package/dist/ui/waterfall/types.d.cts +1 -2
- package/dist/ui/waterfall/types.d.ts +1 -2
- package/package.json +1 -1
- package/dist/chunk-FD5AAGON.cjs +0 -487
- package/dist/chunk-ILGNKXK2.mjs +0 -485
- package/dist/ui/tree-view-v2.cjs +0 -25
- package/dist/ui/tree-view-v2.d.cts +0 -43
- package/dist/ui/tree-view-v2.d.ts +0 -43
- /package/dist/{chunk-SUABRIFA.mjs → chunk-2SWBXWLK.mjs} +0 -0
- /package/dist/{chunk-XMUP5MIM.mjs → chunk-G3EIVAVR.mjs} +0 -0
- /package/dist/{chunk-OX2U5RAG.cjs → chunk-G5NT42YF.cjs} +0 -0
- /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.
|
|
7
|
+
var PACKAGE_VERSION = "0.0.75" ;
|
|
8
8
|
var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
|
|
9
|
-
var GIT_HASH = "
|
|
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.
|
|
5
|
+
var PACKAGE_VERSION = "0.0.76" ;
|
|
6
6
|
var PACKAGE_NAME = "@vuer-ai/vuer-uikit" ;
|
|
7
|
-
var GIT_HASH = "
|
|
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 };
|