@vuer-ai/vuer-uikit 0.0.50 → 0.0.52
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-CSRGTGG7.js → chunk-2HAD7VLJ.js} +1 -1
- package/dist/{chunk-WZ6GCPO6.mjs → chunk-5ZAPRYIX.mjs} +0 -1
- package/dist/{chunk-PDXJXH4A.mjs → chunk-ECWK3POQ.mjs} +1 -1
- package/dist/{chunk-VSYSYSVQ.mjs → chunk-HJMRCBDG.mjs} +15 -11
- package/dist/{chunk-EPHUL35Z.js → chunk-HKWVLJ7G.js} +0 -1
- package/dist/{chunk-WEHNW5KY.js → chunk-L3SCK2WT.js} +2 -2
- package/dist/{chunk-FIEU3WRH.mjs → chunk-VSGVRZLH.mjs} +1 -1
- package/dist/{chunk-YNKO5FOU.js → chunk-VWYDSID4.js} +15 -11
- package/dist/index.js +9 -9
- package/dist/index.mjs +4 -4
- package/dist/ui/index.js +9 -9
- package/dist/ui/index.mjs +4 -4
- package/dist/ui/theme/ThemeToggles.js +3 -3
- package/dist/ui/theme/ThemeToggles.mjs +1 -1
- package/dist/ui/theme/index.js +3 -3
- package/dist/ui/theme/index.mjs +1 -1
- package/dist/ui/timeline.js +3 -3
- package/dist/ui/timeline.mjs +2 -2
- package/dist/ui/tree-view-v2.d.mts +3 -1
- package/dist/ui/tree-view-v2.d.ts +3 -1
- package/dist/ui/tree-view-v2.js +2 -2
- package/dist/ui/tree-view-v2.mjs +1 -1
- package/dist/ui/version-badge.js +2 -2
- package/dist/ui/version-badge.mjs +1 -1
- package/package.json +1 -1
- package/src/ui/tree-view-v2.tsx +58 -48
|
@@ -72,7 +72,6 @@ var ThemeToggleButton = () => {
|
|
|
72
72
|
icon: true,
|
|
73
73
|
onClick: handleThemeChange,
|
|
74
74
|
variant: "ghost",
|
|
75
|
-
value: !isSystem,
|
|
76
75
|
"aria-label": `Current theme: ${isSystem ? "system" : isDark ? "dark" : "light"}`,
|
|
77
76
|
children: isSystem ? /* @__PURE__ */ jsx(SunMoon, { size: 20 }) : isDark ? /* @__PURE__ */ jsx(Moon, { size: 20 }) : /* @__PURE__ */ jsx(Sun, { size: 20 })
|
|
78
77
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TreeView } from './chunk-
|
|
1
|
+
import { TreeView } from './chunk-HJMRCBDG.mjs';
|
|
2
2
|
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from './chunk-TCN3UDQE.mjs';
|
|
3
3
|
import { cn } from './chunk-WM2VP7MI.mjs';
|
|
4
4
|
import { Magnet, ChevronLeft, ChevronRight } from 'lucide-react';
|
|
@@ -13,7 +13,8 @@ function TreeView({
|
|
|
13
13
|
hoveredId,
|
|
14
14
|
isSelectable = false,
|
|
15
15
|
selectedItemId,
|
|
16
|
-
onSelectChange
|
|
16
|
+
onSelectChange,
|
|
17
|
+
isSearchable = true
|
|
17
18
|
}) {
|
|
18
19
|
const [expandedItems, setExpandedItems] = useState(() => {
|
|
19
20
|
const initial = /* @__PURE__ */ new Set();
|
|
@@ -139,7 +140,7 @@ function TreeView({
|
|
|
139
140
|
) });
|
|
140
141
|
};
|
|
141
142
|
return /* @__PURE__ */ jsxs("div", { className: cn("border-line-secondary/20 flex flex-col", className), children: [
|
|
142
|
-
/* @__PURE__ */ jsxs("div", { className: "border-line-secondary/20 flex h-[32px] shrink-0 items-center gap-1 border-b px-2", children: [
|
|
143
|
+
isSearchable && /* @__PURE__ */ jsxs("div", { className: "border-line-secondary/20 flex h-[32px] shrink-0 items-center gap-1 border-b px-2", children: [
|
|
143
144
|
/* @__PURE__ */ jsx(Search, { className: "text-text-secondary size-4" }),
|
|
144
145
|
/* @__PURE__ */ jsx(
|
|
145
146
|
"input",
|
|
@@ -183,13 +184,14 @@ function TreeView({
|
|
|
183
184
|
"div",
|
|
184
185
|
{
|
|
185
186
|
className: cn(
|
|
186
|
-
"group relative flex h-[32px]
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
"group relative flex h-[32px] items-center",
|
|
188
|
+
!item.disable && "cursor-pointer",
|
|
189
|
+
hoveredId === item.id && !item.disable && "bg-bg-secondary",
|
|
190
|
+
isSelectable && selectedItemId === item.id && "bg-brand-primary text-text-withbg"
|
|
189
191
|
),
|
|
190
|
-
onMouseEnter: () => onItemHover == null ? void 0 : onItemHover(item.id),
|
|
191
|
-
onMouseLeave: () => onItemHover == null ? void 0 : onItemHover(null),
|
|
192
|
-
onClick: () => handleItemSelect(item.id),
|
|
192
|
+
onMouseEnter: () => !item.disable && (onItemHover == null ? void 0 : onItemHover(item.id)),
|
|
193
|
+
onMouseLeave: () => !item.disable && (onItemHover == null ? void 0 : onItemHover(null)),
|
|
194
|
+
onClick: () => !item.disable && handleItemSelect(item.id),
|
|
193
195
|
children: [
|
|
194
196
|
/* @__PURE__ */ jsxs("div", { className: "absolute top-0 left-[-0.28rem] z-0 flex h-full items-center", children: [
|
|
195
197
|
item.ancestors.map((ancestor, index) => {
|
|
@@ -242,7 +244,8 @@ function TreeView({
|
|
|
242
244
|
{
|
|
243
245
|
className: cn(
|
|
244
246
|
"size-4 transition-transform",
|
|
245
|
-
!expandedItems.has(item.id) && "-rotate-90"
|
|
247
|
+
!expandedItems.has(item.id) && "-rotate-90",
|
|
248
|
+
item.disable && "text-icon-tertiary"
|
|
246
249
|
)
|
|
247
250
|
}
|
|
248
251
|
)
|
|
@@ -253,13 +256,14 @@ function TreeView({
|
|
|
253
256
|
{
|
|
254
257
|
className: cn(
|
|
255
258
|
"cursor-pointer transition-opacity",
|
|
256
|
-
item.isCollapsible && "group-hover:opacity-0"
|
|
259
|
+
item.isCollapsible && "group-hover:opacity-0",
|
|
260
|
+
item.disable && "text-icon-tertiary"
|
|
257
261
|
),
|
|
258
262
|
children: getIcon(item)
|
|
259
263
|
}
|
|
260
264
|
)
|
|
261
265
|
] }),
|
|
262
|
-
/* @__PURE__ */ jsx("span", { className: "truncate", children: renderLabel(item.label) })
|
|
266
|
+
/* @__PURE__ */ jsx("span", { className: cn("truncate", item.disable && "text-text-tertiary"), children: renderLabel(item.label) })
|
|
263
267
|
] }),
|
|
264
268
|
item.actions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", onClick: (e) => e.stopPropagation(), children: item.actions })
|
|
265
269
|
]
|
|
@@ -74,7 +74,6 @@ var ThemeToggleButton = () => {
|
|
|
74
74
|
icon: true,
|
|
75
75
|
onClick: handleThemeChange,
|
|
76
76
|
variant: "ghost",
|
|
77
|
-
value: !isSystem,
|
|
78
77
|
"aria-label": `Current theme: ${isSystem ? "system" : isDark ? "dark" : "light"}`,
|
|
79
78
|
children: isSystem ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SunMoon, { size: 20 }) : isDark ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Moon, { size: 20 }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sun, { size: 20 })
|
|
80
79
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVWYDSID4_js = require('./chunk-VWYDSID4.js');
|
|
4
4
|
var chunkER6XHUS7_js = require('./chunk-ER6XHUS7.js');
|
|
5
5
|
var chunk7KYAICHB_js = require('./chunk-7KYAICHB.js');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
@@ -510,7 +510,7 @@ function Timeline({
|
|
|
510
510
|
}, [viewStart, viewDuration, updateCursor]);
|
|
511
511
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-bg-primary text-text-primary border-line-secondary/20 rounded-uk-md mx-auto w-full max-w-7xl overflow-hidden border font-sans shadow-[0_4px_16px_0_var(--color-shadow-secondary)]", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-[minmax(300px,30%)_1fr]", children: [
|
|
512
512
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
513
|
-
|
|
513
|
+
chunkVWYDSID4_js.TreeView,
|
|
514
514
|
{
|
|
515
515
|
data,
|
|
516
516
|
getIcon,
|
|
@@ -15,7 +15,8 @@ function TreeView({
|
|
|
15
15
|
hoveredId,
|
|
16
16
|
isSelectable = false,
|
|
17
17
|
selectedItemId,
|
|
18
|
-
onSelectChange
|
|
18
|
+
onSelectChange,
|
|
19
|
+
isSearchable = true
|
|
19
20
|
}) {
|
|
20
21
|
const [expandedItems, setExpandedItems] = react.useState(() => {
|
|
21
22
|
const initial = /* @__PURE__ */ new Set();
|
|
@@ -141,7 +142,7 @@ function TreeView({
|
|
|
141
142
|
) });
|
|
142
143
|
};
|
|
143
144
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: chunk7KYAICHB_js.cn("border-line-secondary/20 flex flex-col", className), children: [
|
|
144
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-line-secondary/20 flex h-[32px] shrink-0 items-center gap-1 border-b px-2", children: [
|
|
145
|
+
isSearchable && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-line-secondary/20 flex h-[32px] shrink-0 items-center gap-1 border-b px-2", children: [
|
|
145
146
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "text-text-secondary size-4" }),
|
|
146
147
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
147
148
|
"input",
|
|
@@ -185,13 +186,14 @@ function TreeView({
|
|
|
185
186
|
"div",
|
|
186
187
|
{
|
|
187
188
|
className: chunk7KYAICHB_js.cn(
|
|
188
|
-
"group relative flex h-[32px]
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
"group relative flex h-[32px] items-center",
|
|
190
|
+
!item.disable && "cursor-pointer",
|
|
191
|
+
hoveredId === item.id && !item.disable && "bg-bg-secondary",
|
|
192
|
+
isSelectable && selectedItemId === item.id && "bg-brand-primary text-text-withbg"
|
|
191
193
|
),
|
|
192
|
-
onMouseEnter: () => onItemHover == null ? void 0 : onItemHover(item.id),
|
|
193
|
-
onMouseLeave: () => onItemHover == null ? void 0 : onItemHover(null),
|
|
194
|
-
onClick: () => handleItemSelect(item.id),
|
|
194
|
+
onMouseEnter: () => !item.disable && (onItemHover == null ? void 0 : onItemHover(item.id)),
|
|
195
|
+
onMouseLeave: () => !item.disable && (onItemHover == null ? void 0 : onItemHover(null)),
|
|
196
|
+
onClick: () => !item.disable && handleItemSelect(item.id),
|
|
195
197
|
children: [
|
|
196
198
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "absolute top-0 left-[-0.28rem] z-0 flex h-full items-center", children: [
|
|
197
199
|
item.ancestors.map((ancestor, index) => {
|
|
@@ -244,7 +246,8 @@ function TreeView({
|
|
|
244
246
|
{
|
|
245
247
|
className: chunk7KYAICHB_js.cn(
|
|
246
248
|
"size-4 transition-transform",
|
|
247
|
-
!expandedItems.has(item.id) && "-rotate-90"
|
|
249
|
+
!expandedItems.has(item.id) && "-rotate-90",
|
|
250
|
+
item.disable && "text-icon-tertiary"
|
|
248
251
|
)
|
|
249
252
|
}
|
|
250
253
|
)
|
|
@@ -255,13 +258,14 @@ function TreeView({
|
|
|
255
258
|
{
|
|
256
259
|
className: chunk7KYAICHB_js.cn(
|
|
257
260
|
"cursor-pointer transition-opacity",
|
|
258
|
-
item.isCollapsible && "group-hover:opacity-0"
|
|
261
|
+
item.isCollapsible && "group-hover:opacity-0",
|
|
262
|
+
item.disable && "text-icon-tertiary"
|
|
259
263
|
),
|
|
260
264
|
children: getIcon(item)
|
|
261
265
|
}
|
|
262
266
|
)
|
|
263
267
|
] }),
|
|
264
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: renderLabel(item.label) })
|
|
268
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: chunk7KYAICHB_js.cn("truncate", item.disable && "text-text-tertiary"), children: renderLabel(item.label) })
|
|
265
269
|
] }),
|
|
266
270
|
item.actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", onClick: (e) => e.stopPropagation(), children: item.actions })
|
|
267
271
|
]
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./chunk-GLGYNU3Q.js');
|
|
4
4
|
require('./chunk-EDJTVLBN.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkHKWVLJ7G_js = require('./chunk-HKWVLJ7G.js');
|
|
6
6
|
var chunk37WZTN4K_js = require('./chunk-37WZTN4K.js');
|
|
7
7
|
var chunkFRMG67QP_js = require('./chunk-FRMG67QP.js');
|
|
8
8
|
require('./chunk-GVDU3F7X.js');
|
|
@@ -24,15 +24,15 @@ var chunk6TMEH2MB_js = require('./chunk-6TMEH2MB.js');
|
|
|
24
24
|
var chunkFSFUZ7Y6_js = require('./chunk-FSFUZ7Y6.js');
|
|
25
25
|
var chunkEAN5SZYQ_js = require('./chunk-EAN5SZYQ.js');
|
|
26
26
|
var chunkEOTROHFU_js = require('./chunk-EOTROHFU.js');
|
|
27
|
-
var
|
|
27
|
+
var chunk2HAD7VLJ_js = require('./chunk-2HAD7VLJ.js');
|
|
28
28
|
var chunkWRF3C24J_js = require('./chunk-WRF3C24J.js');
|
|
29
29
|
var chunk4HJQPZQ2_js = require('./chunk-4HJQPZQ2.js');
|
|
30
30
|
var chunkUGCFQYE2_js = require('./chunk-UGCFQYE2.js');
|
|
31
31
|
require('./chunk-QPQSH53G.js');
|
|
32
32
|
var chunkJ2ZRCEKZ_js = require('./chunk-J2ZRCEKZ.js');
|
|
33
33
|
var chunkRFFQCDHN_js = require('./chunk-RFFQCDHN.js');
|
|
34
|
-
var
|
|
35
|
-
var
|
|
34
|
+
var chunkL3SCK2WT_js = require('./chunk-L3SCK2WT.js');
|
|
35
|
+
var chunkVWYDSID4_js = require('./chunk-VWYDSID4.js');
|
|
36
36
|
var chunkER6XHUS7_js = require('./chunk-ER6XHUS7.js');
|
|
37
37
|
var chunkQJR6MCTR_js = require('./chunk-QJR6MCTR.js');
|
|
38
38
|
var chunkLF2XWR4S_js = require('./chunk-LF2XWR4S.js');
|
|
@@ -75,11 +75,11 @@ var chunkOTPUWWEB_js = require('./chunk-OTPUWWEB.js');
|
|
|
75
75
|
|
|
76
76
|
Object.defineProperty(exports, "LiquidToggle", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkHKWVLJ7G_js.LiquidToggle; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "ThemeToggle", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkHKWVLJ7G_js.ThemeToggle; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "ThemeProvider", {
|
|
85
85
|
enumerable: true,
|
|
@@ -171,7 +171,7 @@ Object.defineProperty(exports, "TreeView", {
|
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "VersionBadge", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk2HAD7VLJ_js.VersionBadge; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "createSelectable", {
|
|
177
177
|
enumerable: true,
|
|
@@ -291,11 +291,11 @@ Object.defineProperty(exports, "Switch", {
|
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "Timeline", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkL3SCK2WT_js.Timeline; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "TreeViewV2", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkVWYDSID4_js.TreeView; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "Tooltip", {
|
|
301
301
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './chunk-ZFWQLAQA.mjs';
|
|
2
2
|
import './chunk-6NK7UMFP.mjs';
|
|
3
|
-
export { LiquidToggle, ThemeToggle } from './chunk-
|
|
3
|
+
export { LiquidToggle, ThemeToggle } from './chunk-5ZAPRYIX.mjs';
|
|
4
4
|
export { ThemeProvider, useTheme } from './chunk-DCSGUVTI.mjs';
|
|
5
5
|
export { ThemeScript } from './chunk-NSI47INE.mjs';
|
|
6
6
|
import './chunk-OJUTHWTF.mjs';
|
|
@@ -22,15 +22,15 @@ export { NumberInput } from './chunk-QD6L25T6.mjs';
|
|
|
22
22
|
export { ToggleGroup, ToggleGroupItem } from './chunk-G6CSH3FC.mjs';
|
|
23
23
|
export { Toggle, toggleVariants } from './chunk-K6R7H7R2.mjs';
|
|
24
24
|
export { TreeView } from './chunk-DDG2W6BX.mjs';
|
|
25
|
-
export { VersionBadge } from './chunk-
|
|
25
|
+
export { VersionBadge } from './chunk-VSGVRZLH.mjs';
|
|
26
26
|
export { createSelectable } from './chunk-TVKPO5VK.mjs';
|
|
27
27
|
export { DragSelectProvider, useDragSelectContext } from './chunk-JBQP2CBI.mjs';
|
|
28
28
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from './chunk-SG2PPP7N.mjs';
|
|
29
29
|
import './chunk-N6DZ364I.mjs';
|
|
30
30
|
export { Slider } from './chunk-47WYS4WO.mjs';
|
|
31
31
|
export { Switch } from './chunk-SWGYWILR.mjs';
|
|
32
|
-
export { Timeline } from './chunk-
|
|
33
|
-
export { TreeView as TreeViewV2 } from './chunk-
|
|
32
|
+
export { Timeline } from './chunk-ECWK3POQ.mjs';
|
|
33
|
+
export { TreeView as TreeViewV2 } from './chunk-HJMRCBDG.mjs';
|
|
34
34
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './chunk-TCN3UDQE.mjs';
|
|
35
35
|
export { Toaster, toast } from './chunk-EAZQH4IX.mjs';
|
|
36
36
|
export { Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger } from './chunk-GL6WU4QP.mjs';
|
package/dist/ui/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('../chunk-GLGYNU3Q.js');
|
|
4
4
|
require('../chunk-EDJTVLBN.js');
|
|
5
|
-
var
|
|
5
|
+
var chunkHKWVLJ7G_js = require('../chunk-HKWVLJ7G.js');
|
|
6
6
|
var chunk37WZTN4K_js = require('../chunk-37WZTN4K.js');
|
|
7
7
|
var chunkFRMG67QP_js = require('../chunk-FRMG67QP.js');
|
|
8
8
|
require('../chunk-GVDU3F7X.js');
|
|
@@ -24,15 +24,15 @@ var chunk6TMEH2MB_js = require('../chunk-6TMEH2MB.js');
|
|
|
24
24
|
var chunkFSFUZ7Y6_js = require('../chunk-FSFUZ7Y6.js');
|
|
25
25
|
var chunkEAN5SZYQ_js = require('../chunk-EAN5SZYQ.js');
|
|
26
26
|
var chunkEOTROHFU_js = require('../chunk-EOTROHFU.js');
|
|
27
|
-
var
|
|
27
|
+
var chunk2HAD7VLJ_js = require('../chunk-2HAD7VLJ.js');
|
|
28
28
|
var chunkWRF3C24J_js = require('../chunk-WRF3C24J.js');
|
|
29
29
|
var chunk4HJQPZQ2_js = require('../chunk-4HJQPZQ2.js');
|
|
30
30
|
var chunkUGCFQYE2_js = require('../chunk-UGCFQYE2.js');
|
|
31
31
|
require('../chunk-QPQSH53G.js');
|
|
32
32
|
var chunkJ2ZRCEKZ_js = require('../chunk-J2ZRCEKZ.js');
|
|
33
33
|
var chunkRFFQCDHN_js = require('../chunk-RFFQCDHN.js');
|
|
34
|
-
var
|
|
35
|
-
var
|
|
34
|
+
var chunkL3SCK2WT_js = require('../chunk-L3SCK2WT.js');
|
|
35
|
+
var chunkVWYDSID4_js = require('../chunk-VWYDSID4.js');
|
|
36
36
|
var chunkER6XHUS7_js = require('../chunk-ER6XHUS7.js');
|
|
37
37
|
var chunkQJR6MCTR_js = require('../chunk-QJR6MCTR.js');
|
|
38
38
|
var chunkLF2XWR4S_js = require('../chunk-LF2XWR4S.js');
|
|
@@ -70,11 +70,11 @@ require('../chunk-OTPUWWEB.js');
|
|
|
70
70
|
|
|
71
71
|
Object.defineProperty(exports, "LiquidToggle", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkHKWVLJ7G_js.LiquidToggle; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ThemeToggle", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkHKWVLJ7G_js.ThemeToggle; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ThemeProvider", {
|
|
80
80
|
enumerable: true,
|
|
@@ -166,7 +166,7 @@ Object.defineProperty(exports, "TreeView", {
|
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "VersionBadge", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunk2HAD7VLJ_js.VersionBadge; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "createSelectable", {
|
|
172
172
|
enumerable: true,
|
|
@@ -286,11 +286,11 @@ Object.defineProperty(exports, "Switch", {
|
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "Timeline", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkL3SCK2WT_js.Timeline; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "TreeViewV2", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkVWYDSID4_js.TreeView; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "Tooltip", {
|
|
296
296
|
enumerable: true,
|
package/dist/ui/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk-ZFWQLAQA.mjs';
|
|
2
2
|
import '../chunk-6NK7UMFP.mjs';
|
|
3
|
-
export { LiquidToggle, ThemeToggle } from '../chunk-
|
|
3
|
+
export { LiquidToggle, ThemeToggle } from '../chunk-5ZAPRYIX.mjs';
|
|
4
4
|
export { ThemeProvider, useTheme } from '../chunk-DCSGUVTI.mjs';
|
|
5
5
|
export { ThemeScript } from '../chunk-NSI47INE.mjs';
|
|
6
6
|
import '../chunk-OJUTHWTF.mjs';
|
|
@@ -22,15 +22,15 @@ export { NumberInput } from '../chunk-QD6L25T6.mjs';
|
|
|
22
22
|
export { ToggleGroup, ToggleGroupItem } from '../chunk-G6CSH3FC.mjs';
|
|
23
23
|
export { Toggle, toggleVariants } from '../chunk-K6R7H7R2.mjs';
|
|
24
24
|
export { TreeView } from '../chunk-DDG2W6BX.mjs';
|
|
25
|
-
export { VersionBadge } from '../chunk-
|
|
25
|
+
export { VersionBadge } from '../chunk-VSGVRZLH.mjs';
|
|
26
26
|
export { createSelectable } from '../chunk-TVKPO5VK.mjs';
|
|
27
27
|
export { DragSelectProvider, useDragSelectContext } from '../chunk-JBQP2CBI.mjs';
|
|
28
28
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from '../chunk-SG2PPP7N.mjs';
|
|
29
29
|
import '../chunk-N6DZ364I.mjs';
|
|
30
30
|
export { Slider } from '../chunk-47WYS4WO.mjs';
|
|
31
31
|
export { Switch } from '../chunk-SWGYWILR.mjs';
|
|
32
|
-
export { Timeline } from '../chunk-
|
|
33
|
-
export { TreeView as TreeViewV2 } from '../chunk-
|
|
32
|
+
export { Timeline } from '../chunk-ECWK3POQ.mjs';
|
|
33
|
+
export { TreeView as TreeViewV2 } from '../chunk-HJMRCBDG.mjs';
|
|
34
34
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../chunk-TCN3UDQE.mjs';
|
|
35
35
|
export { Toaster, toast } from '../chunk-EAZQH4IX.mjs';
|
|
36
36
|
export { Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger } from '../chunk-GL6WU4QP.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHKWVLJ7G_js = require('../../chunk-HKWVLJ7G.js');
|
|
4
4
|
require('../../chunk-37WZTN4K.js');
|
|
5
5
|
require('../../chunk-FRMG67QP.js');
|
|
6
6
|
require('../../chunk-ER6XHUS7.js');
|
|
@@ -17,9 +17,9 @@ require('../../chunk-7KYAICHB.js');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "LiquidToggle", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkHKWVLJ7G_js.LiquidToggle; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "ThemeToggle", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkHKWVLJ7G_js.ThemeToggle; }
|
|
25
25
|
});
|
package/dist/ui/theme/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../chunk-EDJTVLBN.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkHKWVLJ7G_js = require('../../chunk-HKWVLJ7G.js');
|
|
5
5
|
var chunk37WZTN4K_js = require('../../chunk-37WZTN4K.js');
|
|
6
6
|
var chunkFRMG67QP_js = require('../../chunk-FRMG67QP.js');
|
|
7
7
|
require('../../chunk-ER6XHUS7.js');
|
|
@@ -18,11 +18,11 @@ require('../../chunk-7KYAICHB.js');
|
|
|
18
18
|
|
|
19
19
|
Object.defineProperty(exports, "LiquidToggle", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHKWVLJ7G_js.LiquidToggle; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ThemeToggle", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHKWVLJ7G_js.ThemeToggle; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ThemeProvider", {
|
|
28
28
|
enumerable: true,
|
package/dist/ui/theme/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../chunk-6NK7UMFP.mjs';
|
|
2
|
-
export { LiquidToggle, ThemeToggle } from '../../chunk-
|
|
2
|
+
export { LiquidToggle, ThemeToggle } from '../../chunk-5ZAPRYIX.mjs';
|
|
3
3
|
export { ThemeProvider, useTheme } from '../../chunk-DCSGUVTI.mjs';
|
|
4
4
|
export { ThemeScript } from '../../chunk-NSI47INE.mjs';
|
|
5
5
|
import '../../chunk-TCN3UDQE.mjs';
|
package/dist/ui/timeline.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkL3SCK2WT_js = require('../chunk-L3SCK2WT.js');
|
|
4
|
+
require('../chunk-VWYDSID4.js');
|
|
5
5
|
require('../chunk-ER6XHUS7.js');
|
|
6
6
|
require('../chunk-UBVYEZI3.js');
|
|
7
7
|
require('../chunk-W3APG27Q.js');
|
|
@@ -15,5 +15,5 @@ require('../chunk-7KYAICHB.js');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "Timeline", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkL3SCK2WT_js.Timeline; }
|
|
19
19
|
});
|
package/dist/ui/timeline.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Timeline } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Timeline } from '../chunk-ECWK3POQ.mjs';
|
|
2
|
+
import '../chunk-HJMRCBDG.mjs';
|
|
3
3
|
import '../chunk-TCN3UDQE.mjs';
|
|
4
4
|
import '../chunk-AYKQVWMR.mjs';
|
|
5
5
|
import '../chunk-PR4VD5F2.mjs';
|
|
@@ -10,6 +10,7 @@ type TreeDataItem = {
|
|
|
10
10
|
label: string;
|
|
11
11
|
isCollapsible?: boolean;
|
|
12
12
|
actions?: ReactNode;
|
|
13
|
+
disable?: boolean;
|
|
13
14
|
[key: string]: unknown;
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
@@ -29,11 +30,12 @@ type TreeViewProps<T extends TreeDataItem> = {
|
|
|
29
30
|
isSelectable?: boolean;
|
|
30
31
|
selectedItemId?: string | null;
|
|
31
32
|
onSelectChange?: (id: string | null) => void;
|
|
33
|
+
isSearchable?: boolean;
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
36
|
* Filterable and highlightable tree view with keyboardless interactions.
|
|
35
37
|
* Supports search (plain or regex), hover highlights, and collapsible nodes.
|
|
36
38
|
*/
|
|
37
|
-
declare function TreeView<T extends TreeDataItem>({ data, getIcon, onVisibleDataChange, onItemHover, className, hoveredId, isSelectable, selectedItemId, onSelectChange, }: TreeViewProps<T>): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare function TreeView<T extends TreeDataItem>({ data, getIcon, onVisibleDataChange, onItemHover, className, hoveredId, isSelectable, selectedItemId, onSelectChange, isSearchable, }: TreeViewProps<T>): react_jsx_runtime.JSX.Element;
|
|
38
40
|
|
|
39
41
|
export { type TreeDataItem as TreeDataItemV2, TreeView as TreeViewV2 };
|
|
@@ -10,6 +10,7 @@ type TreeDataItem = {
|
|
|
10
10
|
label: string;
|
|
11
11
|
isCollapsible?: boolean;
|
|
12
12
|
actions?: ReactNode;
|
|
13
|
+
disable?: boolean;
|
|
13
14
|
[key: string]: unknown;
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
@@ -29,11 +30,12 @@ type TreeViewProps<T extends TreeDataItem> = {
|
|
|
29
30
|
isSelectable?: boolean;
|
|
30
31
|
selectedItemId?: string | null;
|
|
31
32
|
onSelectChange?: (id: string | null) => void;
|
|
33
|
+
isSearchable?: boolean;
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
36
|
* Filterable and highlightable tree view with keyboardless interactions.
|
|
35
37
|
* Supports search (plain or regex), hover highlights, and collapsible nodes.
|
|
36
38
|
*/
|
|
37
|
-
declare function TreeView<T extends TreeDataItem>({ data, getIcon, onVisibleDataChange, onItemHover, className, hoveredId, isSelectable, selectedItemId, onSelectChange, }: TreeViewProps<T>): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare function TreeView<T extends TreeDataItem>({ data, getIcon, onVisibleDataChange, onItemHover, className, hoveredId, isSelectable, selectedItemId, onSelectChange, isSearchable, }: TreeViewProps<T>): react_jsx_runtime.JSX.Element;
|
|
38
40
|
|
|
39
41
|
export { type TreeDataItem as TreeDataItemV2, TreeView as TreeViewV2 };
|
package/dist/ui/tree-view-v2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVWYDSID4_js = require('../chunk-VWYDSID4.js');
|
|
4
4
|
require('../chunk-ER6XHUS7.js');
|
|
5
5
|
require('../chunk-UBVYEZI3.js');
|
|
6
6
|
require('../chunk-W3APG27Q.js');
|
|
@@ -14,5 +14,5 @@ require('../chunk-7KYAICHB.js');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "TreeViewV2", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkVWYDSID4_js.TreeView; }
|
|
18
18
|
});
|
package/dist/ui/tree-view-v2.mjs
CHANGED
package/dist/ui/version-badge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2HAD7VLJ_js = require('../chunk-2HAD7VLJ.js');
|
|
4
4
|
require('../chunk-ILJK43VJ.js');
|
|
5
5
|
require('../chunk-UBVYEZI3.js');
|
|
6
6
|
require('../chunk-W3APG27Q.js');
|
|
@@ -14,5 +14,5 @@ require('../chunk-7KYAICHB.js');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "VersionBadge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2HAD7VLJ_js.VersionBadge; }
|
|
18
18
|
});
|
package/package.json
CHANGED
package/src/ui/tree-view-v2.tsx
CHANGED
|
@@ -13,6 +13,7 @@ type TreeDataItem = {
|
|
|
13
13
|
label: string;
|
|
14
14
|
isCollapsible?: boolean;
|
|
15
15
|
actions?: ReactNode;
|
|
16
|
+
disable?: boolean;
|
|
16
17
|
[key: string]: unknown;
|
|
17
18
|
};
|
|
18
19
|
|
|
@@ -29,6 +30,7 @@ type TreeViewProps<T extends TreeDataItem> = {
|
|
|
29
30
|
isSelectable?: boolean;
|
|
30
31
|
selectedItemId?: string | null;
|
|
31
32
|
onSelectChange?: (id: string | null) => void;
|
|
33
|
+
isSearchable?: boolean;
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
/**
|
|
@@ -45,6 +47,7 @@ function TreeView<T extends TreeDataItem>({
|
|
|
45
47
|
isSelectable = false,
|
|
46
48
|
selectedItemId,
|
|
47
49
|
onSelectChange,
|
|
50
|
+
isSearchable = true,
|
|
48
51
|
}: TreeViewProps<T>) {
|
|
49
52
|
const [expandedItems, setExpandedItems] = useState(() => {
|
|
50
53
|
const initial = new Set<string>();
|
|
@@ -201,59 +204,62 @@ function TreeView<T extends TreeDataItem>({
|
|
|
201
204
|
|
|
202
205
|
return (
|
|
203
206
|
<div className={cn("border-line-secondary/20 flex flex-col", className)}>
|
|
204
|
-
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
<
|
|
218
|
-
<
|
|
219
|
-
<
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
<
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
<
|
|
232
|
-
<
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
<
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
207
|
+
{isSearchable && (
|
|
208
|
+
<div className="border-line-secondary/20 flex h-[32px] shrink-0 items-center gap-1 border-b px-2">
|
|
209
|
+
<Search className="text-text-secondary size-4" />
|
|
210
|
+
<input
|
|
211
|
+
type="text"
|
|
212
|
+
placeholder="Search..."
|
|
213
|
+
className={cn(
|
|
214
|
+
"text-uk-md w-full bg-transparent focus:outline-none",
|
|
215
|
+
!isRegexValid && "text-red-500",
|
|
216
|
+
)}
|
|
217
|
+
value={searchQuery}
|
|
218
|
+
onChange={(e) => setSearchQuery(e.target.value)}
|
|
219
|
+
/>
|
|
220
|
+
<TooltipProvider delayDuration={200}>
|
|
221
|
+
<Tooltip>
|
|
222
|
+
<TooltipTrigger asChild>
|
|
223
|
+
<button
|
|
224
|
+
onClick={() => setIsCaseSensitive((prev) => !prev)}
|
|
225
|
+
className={cn("rounded-uk-sm p-1", isCaseSensitive && "bg-bg-tertiary")}
|
|
226
|
+
>
|
|
227
|
+
<CaseSensitive className="size-4" />
|
|
228
|
+
</button>
|
|
229
|
+
</TooltipTrigger>
|
|
230
|
+
<TooltipContent>
|
|
231
|
+
<p>Case Sensitive</p>
|
|
232
|
+
</TooltipContent>
|
|
233
|
+
</Tooltip>
|
|
234
|
+
<Tooltip>
|
|
235
|
+
<TooltipTrigger asChild>
|
|
236
|
+
<button
|
|
237
|
+
onClick={() => setIsRegex((prev) => !prev)}
|
|
238
|
+
className={cn("rounded-uk-sm p-1", isRegex && "bg-bg-tertiary")}
|
|
239
|
+
>
|
|
240
|
+
<Regex className="size-4" />
|
|
241
|
+
</button>
|
|
242
|
+
</TooltipTrigger>
|
|
243
|
+
<TooltipContent>
|
|
244
|
+
<p>Use Regular Expression</p>
|
|
245
|
+
</TooltipContent>
|
|
246
|
+
</Tooltip>
|
|
247
|
+
</TooltipProvider>
|
|
248
|
+
</div>
|
|
249
|
+
)}
|
|
245
250
|
<div className="overflow-y-auto">
|
|
246
251
|
{visibleData.map((item) => (
|
|
247
252
|
<div
|
|
248
253
|
key={item.id}
|
|
249
254
|
className={cn(
|
|
250
|
-
"group relative flex h-[32px]
|
|
251
|
-
|
|
252
|
-
|
|
255
|
+
"group relative flex h-[32px] items-center",
|
|
256
|
+
!item.disable && "cursor-pointer",
|
|
257
|
+
hoveredId === item.id && !item.disable && "bg-bg-secondary",
|
|
258
|
+
isSelectable && selectedItemId === item.id && "bg-brand-primary text-text-withbg",
|
|
253
259
|
)}
|
|
254
|
-
onMouseEnter={() => onItemHover?.(item.id)}
|
|
255
|
-
onMouseLeave={() => onItemHover?.(null)}
|
|
256
|
-
onClick={() => handleItemSelect(item.id)}
|
|
260
|
+
onMouseEnter={() => !item.disable && onItemHover?.(item.id)}
|
|
261
|
+
onMouseLeave={() => !item.disable && onItemHover?.(null)}
|
|
262
|
+
onClick={() => !item.disable && handleItemSelect(item.id)}
|
|
257
263
|
>
|
|
258
264
|
{/* Guide Lines */}
|
|
259
265
|
<div className="absolute top-0 left-[-0.28rem] z-0 flex h-full items-center">
|
|
@@ -304,6 +310,7 @@ function TreeView<T extends TreeDataItem>({
|
|
|
304
310
|
className={cn(
|
|
305
311
|
"size-4 transition-transform",
|
|
306
312
|
!expandedItems.has(item.id) && "-rotate-90",
|
|
313
|
+
item.disable && "text-icon-tertiary",
|
|
307
314
|
)}
|
|
308
315
|
/>
|
|
309
316
|
</button>
|
|
@@ -312,12 +319,15 @@ function TreeView<T extends TreeDataItem>({
|
|
|
312
319
|
className={cn(
|
|
313
320
|
"cursor-pointer transition-opacity",
|
|
314
321
|
item.isCollapsible && "group-hover:opacity-0",
|
|
322
|
+
item.disable && "text-icon-tertiary",
|
|
315
323
|
)}
|
|
316
324
|
>
|
|
317
325
|
{getIcon(item)}
|
|
318
326
|
</div>
|
|
319
327
|
</div>
|
|
320
|
-
<span className="truncate"
|
|
328
|
+
<span className={cn("truncate", item.disable && "text-text-tertiary")}>
|
|
329
|
+
{renderLabel(item.label)}
|
|
330
|
+
</span>
|
|
321
331
|
</div>
|
|
322
332
|
{item.actions && (
|
|
323
333
|
<div className="flex items-center gap-1" onClick={(e) => e.stopPropagation()}>
|