@uipath/apollo-wind 2.36.0 → 2.36.2
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/components/custom/flow-properties-simple.cjs +1 -0
- package/dist/components/custom/flow-properties-simple.js +1 -0
- package/dist/components/custom/panel-delegate.cjs +1 -1
- package/dist/components/custom/panel-delegate.js +1 -1
- package/dist/components/custom/panel-flow.cjs +2 -1
- package/dist/components/custom/panel-flow.js +2 -1
- package/dist/components/forms/field-renderer.cjs +1 -0
- package/dist/components/forms/field-renderer.js +1 -0
- package/dist/components/forms/form-designer.cjs +25 -9
- package/dist/components/forms/form-designer.js +25 -9
- package/dist/components/forms/form-examples.cjs +1 -1
- package/dist/components/forms/form-examples.js +1 -1
- package/dist/components/forms/form-state-viewer.cjs +4 -7
- package/dist/components/forms/form-state-viewer.js +4 -7
- package/dist/components/forms/metadata-form.cjs +1 -1
- package/dist/components/forms/metadata-form.js +1 -1
- package/dist/components/ui/accordion.cjs +9 -1
- package/dist/components/ui/accordion.d.ts +1 -1
- package/dist/components/ui/accordion.js +9 -1
- package/dist/components/ui/alert-dialog.cjs +25 -4
- package/dist/components/ui/alert-dialog.d.ts +9 -3
- package/dist/components/ui/alert-dialog.js +25 -4
- package/dist/components/ui/alert.cjs +3 -0
- package/dist/components/ui/alert.js +3 -0
- package/dist/components/ui/aspect-ratio.cjs +8 -1
- package/dist/components/ui/aspect-ratio.d.ts +2 -1
- package/dist/components/ui/aspect-ratio.js +8 -1
- package/dist/components/ui/avatar.cjs +25 -4
- package/dist/components/ui/avatar.d.ts +8 -2
- package/dist/components/ui/avatar.js +21 -3
- package/dist/components/ui/badge.cjs +1 -0
- package/dist/components/ui/badge.js +1 -0
- package/dist/components/ui/breadcrumb.cjs +7 -0
- package/dist/components/ui/breadcrumb.js +7 -0
- package/dist/components/ui/button-group.cjs +3 -0
- package/dist/components/ui/button-group.js +3 -0
- package/dist/components/ui/button.cjs +1 -0
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/card.cjs +6 -0
- package/dist/components/ui/card.js +6 -0
- package/dist/components/ui/checkbox.cjs +1 -0
- package/dist/components/ui/checkbox.js +1 -0
- package/dist/components/ui/collapsible.cjs +20 -3
- package/dist/components/ui/collapsible.d.ts +4 -3
- package/dist/components/ui/collapsible.js +20 -3
- package/dist/components/ui/combobox.cjs +5 -3
- package/dist/components/ui/combobox.d.ts +2 -1
- package/dist/components/ui/combobox.js +6 -4
- package/dist/components/ui/command.cjs +9 -0
- package/dist/components/ui/command.js +9 -0
- package/dist/components/ui/context-menu.cjs +42 -6
- package/dist/components/ui/context-menu.d.ts +15 -6
- package/dist/components/ui/context-menu.js +42 -6
- package/dist/components/ui/data-table.cjs +2 -0
- package/dist/components/ui/data-table.js +2 -0
- package/dist/components/ui/date-picker.cjs +11 -6
- package/dist/components/ui/date-picker.d.ts +3 -3
- package/dist/components/ui/date-picker.js +10 -5
- package/dist/components/ui/datetime-picker.cjs +5 -3
- package/dist/components/ui/datetime-picker.d.ts +2 -1
- package/dist/components/ui/datetime-picker.js +6 -4
- package/dist/components/ui/dialog.cjs +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/drawer.cjs +29 -5
- package/dist/components/ui/drawer.d.ts +11 -4
- package/dist/components/ui/drawer.js +29 -5
- package/dist/components/ui/dropdown-menu.cjs +42 -6
- package/dist/components/ui/dropdown-menu.d.ts +15 -6
- package/dist/components/ui/dropdown-menu.js +42 -6
- package/dist/components/ui/editable-cell.cjs +2 -0
- package/dist/components/ui/editable-cell.js +2 -0
- package/dist/components/ui/empty-state.cjs +1 -0
- package/dist/components/ui/empty-state.js +1 -0
- package/dist/components/ui/file-upload.cjs +5 -3
- package/dist/components/ui/file-upload.d.ts +1 -1
- package/dist/components/ui/file-upload.js +6 -4
- package/dist/components/ui/hover-card.cjs +12 -2
- package/dist/components/ui/hover-card.d.ts +5 -2
- package/dist/components/ui/hover-card.js +12 -2
- package/dist/components/ui/index.cjs +189 -139
- package/dist/components/ui/index.d.ts +5 -0
- package/dist/components/ui/index.js +5 -0
- package/dist/components/ui/input.cjs +1 -0
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/label.cjs +1 -0
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/layout/column.cjs +1 -0
- package/dist/components/ui/layout/column.js +1 -0
- package/dist/components/ui/layout/grid.cjs +1 -0
- package/dist/components/ui/layout/grid.js +1 -0
- package/dist/components/ui/layout/row.cjs +1 -0
- package/dist/components/ui/layout/row.js +1 -0
- package/dist/components/ui/multi-select.cjs +1 -0
- package/dist/components/ui/multi-select.js +1 -0
- package/dist/components/ui/pagination.cjs +7 -0
- package/dist/components/ui/pagination.js +7 -0
- package/dist/components/ui/popover.cjs +18 -3
- package/dist/components/ui/popover.d.ts +6 -3
- package/dist/components/ui/popover.js +18 -3
- package/dist/components/ui/progress.cjs +1 -0
- package/dist/components/ui/progress.js +1 -0
- package/dist/components/ui/prompt-editor/components/EditorToolbar.cjs +5 -2
- package/dist/components/ui/prompt-editor/components/EditorToolbar.js +5 -2
- package/dist/components/ui/radio-group.cjs +2 -0
- package/dist/components/ui/radio-group.js +2 -0
- package/dist/components/ui/resizable.cjs +2 -0
- package/dist/components/ui/resizable.js +2 -0
- package/dist/components/ui/scroll-area.cjs +2 -0
- package/dist/components/ui/scroll-area.js +2 -0
- package/dist/components/ui/search.cjs +2 -0
- package/dist/components/ui/search.js +2 -0
- package/dist/components/ui/select.cjs +24 -3
- package/dist/components/ui/select.d.ts +6 -3
- package/dist/components/ui/select.js +24 -3
- package/dist/components/ui/separator.cjs +1 -0
- package/dist/components/ui/separator.js +1 -0
- package/dist/components/ui/sheet.cjs +29 -5
- package/dist/components/ui/sheet.d.ts +10 -4
- package/dist/components/ui/sheet.js +29 -5
- package/dist/components/ui/skeleton.cjs +1 -0
- package/dist/components/ui/skeleton.js +1 -0
- package/dist/components/ui/slider.cjs +1 -0
- package/dist/components/ui/slider.js +1 -0
- package/dist/components/ui/sonner.cjs +1 -0
- package/dist/components/ui/sonner.js +1 -0
- package/dist/components/ui/spinner.cjs +1 -0
- package/dist/components/ui/spinner.js +1 -0
- package/dist/components/ui/stats-card.cjs +26 -12
- package/dist/components/ui/stats-card.d.ts +6 -3
- package/dist/components/ui/stats-card.js +22 -11
- package/dist/components/ui/stepper.cjs +1 -0
- package/dist/components/ui/stepper.js +1 -0
- package/dist/components/ui/switch.cjs +1 -0
- package/dist/components/ui/switch.js +1 -0
- package/dist/components/ui/table.cjs +9 -0
- package/dist/components/ui/table.js +9 -0
- package/dist/components/ui/tabs.cjs +10 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +10 -1
- package/dist/components/ui/textarea.cjs +1 -0
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/toggle-group.cjs +2 -0
- package/dist/components/ui/toggle-group.js +2 -0
- package/dist/components/ui/toggle.cjs +1 -0
- package/dist/components/ui/toggle.js +1 -0
- package/dist/components/ui/tooltip.cjs +22 -4
- package/dist/components/ui/tooltip.d.ts +13 -4
- package/dist/components/ui/tooltip.js +22 -4
- package/dist/components/ui/tree-view.cjs +17 -9
- package/dist/components/ui/tree-view.d.ts +2 -1
- package/dist/components/ui/tree-view.js +18 -10
- package/dist/foundation/Future/index.cjs +107 -0
- package/dist/foundation/Future/index.d.ts +8 -0
- package/dist/foundation/Future/index.js +8 -0
- package/dist/foundation/index.cjs +58 -0
- package/dist/foundation/index.d.ts +1 -0
- package/dist/foundation/index.js +1 -0
- package/dist/index.cjs +52 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -1
- package/dist/styles.css +124 -123
- package/package.json +2 -5
- package/dist/components/UiPath/index.cjs +0 -5
- package/dist/components/UiPath/index.d.ts +0 -1
- package/dist/components/UiPath/index.js +0 -0
|
@@ -37,9 +37,11 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
37
37
|
const external_react_namespaceObject = require("react");
|
|
38
38
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
39
39
|
const Table = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
40
|
+
"data-slot": "table-container",
|
|
40
41
|
className: "relative w-full overflow-auto",
|
|
41
42
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("table", {
|
|
42
43
|
ref: ref,
|
|
44
|
+
"data-slot": "table",
|
|
43
45
|
className: (0, index_cjs_namespaceObject.cn)('w-full caption-bottom text-sm', className),
|
|
44
46
|
...props
|
|
45
47
|
})
|
|
@@ -47,42 +49,49 @@ const Table = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ classNa
|
|
|
47
49
|
Table.displayName = 'Table';
|
|
48
50
|
const TableHeader = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("thead", {
|
|
49
51
|
ref: ref,
|
|
52
|
+
"data-slot": "table-header",
|
|
50
53
|
className: (0, index_cjs_namespaceObject.cn)('[&_tr]:border-b', className),
|
|
51
54
|
...props
|
|
52
55
|
}));
|
|
53
56
|
TableHeader.displayName = 'TableHeader';
|
|
54
57
|
const TableBody = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tbody", {
|
|
55
58
|
ref: ref,
|
|
59
|
+
"data-slot": "table-body",
|
|
56
60
|
className: (0, index_cjs_namespaceObject.cn)('[&_tr:last-child]:border-0', className),
|
|
57
61
|
...props
|
|
58
62
|
}));
|
|
59
63
|
TableBody.displayName = 'TableBody';
|
|
60
64
|
const TableFooter = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tfoot", {
|
|
61
65
|
ref: ref,
|
|
66
|
+
"data-slot": "table-footer",
|
|
62
67
|
className: (0, index_cjs_namespaceObject.cn)('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className),
|
|
63
68
|
...props
|
|
64
69
|
}));
|
|
65
70
|
TableFooter.displayName = 'TableFooter';
|
|
66
71
|
const TableRow = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("tr", {
|
|
67
72
|
ref: ref,
|
|
73
|
+
"data-slot": "table-row",
|
|
68
74
|
className: (0, index_cjs_namespaceObject.cn)('border-b transition-colors bg-background hover:bg-muted/50 data-[state=selected]:bg-muted', className),
|
|
69
75
|
...props
|
|
70
76
|
}));
|
|
71
77
|
TableRow.displayName = 'TableRow';
|
|
72
78
|
const TableHead = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("th", {
|
|
73
79
|
ref: ref,
|
|
80
|
+
"data-slot": "table-head",
|
|
74
81
|
className: (0, index_cjs_namespaceObject.cn)('h-12 px-4 text-left align-middle font-medium text-muted-foreground overflow-hidden bg-background [&:has([role=checkbox])]:pr-0', className),
|
|
75
82
|
...props
|
|
76
83
|
}));
|
|
77
84
|
TableHead.displayName = 'TableHead';
|
|
78
85
|
const TableCell = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("td", {
|
|
79
86
|
ref: ref,
|
|
87
|
+
"data-slot": "table-cell",
|
|
80
88
|
className: (0, index_cjs_namespaceObject.cn)('p-4 align-middle [&:has([role=checkbox])]:pr-0', className),
|
|
81
89
|
...props
|
|
82
90
|
}));
|
|
83
91
|
TableCell.displayName = 'TableCell';
|
|
84
92
|
const TableCaption = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("caption", {
|
|
85
93
|
ref: ref,
|
|
94
|
+
"data-slot": "table-caption",
|
|
86
95
|
className: (0, index_cjs_namespaceObject.cn)('mt-4 text-sm text-muted-foreground', className),
|
|
87
96
|
...props
|
|
88
97
|
}));
|
|
@@ -2,9 +2,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { cn } from "../../lib/index.js";
|
|
4
4
|
const Table = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", {
|
|
5
|
+
"data-slot": "table-container",
|
|
5
6
|
className: "relative w-full overflow-auto",
|
|
6
7
|
children: /*#__PURE__*/ jsx("table", {
|
|
7
8
|
ref: ref,
|
|
9
|
+
"data-slot": "table",
|
|
8
10
|
className: cn('w-full caption-bottom text-sm', className),
|
|
9
11
|
...props
|
|
10
12
|
})
|
|
@@ -12,42 +14,49 @@ const Table = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE
|
|
|
12
14
|
Table.displayName = 'Table';
|
|
13
15
|
const TableHeader = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("thead", {
|
|
14
16
|
ref: ref,
|
|
17
|
+
"data-slot": "table-header",
|
|
15
18
|
className: cn('[&_tr]:border-b', className),
|
|
16
19
|
...props
|
|
17
20
|
}));
|
|
18
21
|
TableHeader.displayName = 'TableHeader';
|
|
19
22
|
const TableBody = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tbody", {
|
|
20
23
|
ref: ref,
|
|
24
|
+
"data-slot": "table-body",
|
|
21
25
|
className: cn('[&_tr:last-child]:border-0', className),
|
|
22
26
|
...props
|
|
23
27
|
}));
|
|
24
28
|
TableBody.displayName = 'TableBody';
|
|
25
29
|
const TableFooter = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tfoot", {
|
|
26
30
|
ref: ref,
|
|
31
|
+
"data-slot": "table-footer",
|
|
27
32
|
className: cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className),
|
|
28
33
|
...props
|
|
29
34
|
}));
|
|
30
35
|
TableFooter.displayName = 'TableFooter';
|
|
31
36
|
const TableRow = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tr", {
|
|
32
37
|
ref: ref,
|
|
38
|
+
"data-slot": "table-row",
|
|
33
39
|
className: cn('border-b transition-colors bg-background hover:bg-muted/50 data-[state=selected]:bg-muted', className),
|
|
34
40
|
...props
|
|
35
41
|
}));
|
|
36
42
|
TableRow.displayName = 'TableRow';
|
|
37
43
|
const TableHead = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("th", {
|
|
38
44
|
ref: ref,
|
|
45
|
+
"data-slot": "table-head",
|
|
39
46
|
className: cn('h-12 px-4 text-left align-middle font-medium text-muted-foreground overflow-hidden bg-background [&:has([role=checkbox])]:pr-0', className),
|
|
40
47
|
...props
|
|
41
48
|
}));
|
|
42
49
|
TableHead.displayName = 'TableHead';
|
|
43
50
|
const TableCell = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("td", {
|
|
44
51
|
ref: ref,
|
|
52
|
+
"data-slot": "table-cell",
|
|
45
53
|
className: cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className),
|
|
46
54
|
...props
|
|
47
55
|
}));
|
|
48
56
|
TableCell.displayName = 'TableCell';
|
|
49
57
|
const TableCaption = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("caption", {
|
|
50
58
|
ref: ref,
|
|
59
|
+
"data-slot": "table-caption",
|
|
51
60
|
className: cn('mt-4 text-sm text-muted-foreground', className),
|
|
52
61
|
...props
|
|
53
62
|
}));
|
|
@@ -35,9 +35,15 @@ const react_tabs_namespaceObject = require("@radix-ui/react-tabs");
|
|
|
35
35
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
36
36
|
const external_react_namespaceObject = require("react");
|
|
37
37
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
38
|
-
const Tabs = react_tabs_namespaceObject.Root
|
|
38
|
+
const Tabs = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Root, {
|
|
39
|
+
ref: ref,
|
|
40
|
+
"data-slot": "tabs",
|
|
41
|
+
...props
|
|
42
|
+
}));
|
|
43
|
+
Tabs.displayName = react_tabs_namespaceObject.Root.displayName;
|
|
39
44
|
const TabsList = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.List, {
|
|
40
45
|
ref: ref,
|
|
46
|
+
"data-slot": "tabs-list",
|
|
41
47
|
className: (0, index_cjs_namespaceObject.cn)('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className),
|
|
42
48
|
...props
|
|
43
49
|
}));
|
|
@@ -130,6 +136,7 @@ const ScrollableTabsList = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
130
136
|
};
|
|
131
137
|
const scrollButtonClass = (0, index_cjs_namespaceObject.cn)('grid size-8 shrink-0 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-30', scrollButtonClassName);
|
|
132
138
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
139
|
+
"data-slot": "scrollable-tabs-list",
|
|
133
140
|
className: (0, index_cjs_namespaceObject.cn)('flex w-full min-w-0 items-center gap-1', containerClassName),
|
|
134
141
|
children: [
|
|
135
142
|
hasOverflow && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
@@ -165,12 +172,14 @@ const ScrollableTabsList = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
165
172
|
ScrollableTabsList.displayName = 'ScrollableTabsList';
|
|
166
173
|
const TabsTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Trigger, {
|
|
167
174
|
ref: ref,
|
|
175
|
+
"data-slot": "tabs-trigger",
|
|
168
176
|
className: (0, index_cjs_namespaceObject.cn)('inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className),
|
|
169
177
|
...props
|
|
170
178
|
}));
|
|
171
179
|
TabsTrigger.displayName = react_tabs_namespaceObject.Trigger.displayName;
|
|
172
180
|
const TabsContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tabs_namespaceObject.Content, {
|
|
173
181
|
ref: ref,
|
|
182
|
+
"data-slot": "tabs-content",
|
|
174
183
|
className: (0, index_cjs_namespaceObject.cn)('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className),
|
|
175
184
|
...props
|
|
176
185
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
interface ScrollableTabsListProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
|
|
6
6
|
containerClassName?: string;
|
|
@@ -3,9 +3,15 @@ import { Content, List, Root, Trigger } from "@radix-ui/react-tabs";
|
|
|
3
3
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
4
4
|
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
5
5
|
import { cn } from "../../lib/index.js";
|
|
6
|
-
const Tabs = Root
|
|
6
|
+
const Tabs = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
7
|
+
ref: ref,
|
|
8
|
+
"data-slot": "tabs",
|
|
9
|
+
...props
|
|
10
|
+
}));
|
|
11
|
+
Tabs.displayName = Root.displayName;
|
|
7
12
|
const TabsList = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(List, {
|
|
8
13
|
ref: ref,
|
|
14
|
+
"data-slot": "tabs-list",
|
|
9
15
|
className: cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className),
|
|
10
16
|
...props
|
|
11
17
|
}));
|
|
@@ -98,6 +104,7 @@ const ScrollableTabsList = /*#__PURE__*/ forwardRef(({ className, containerClass
|
|
|
98
104
|
};
|
|
99
105
|
const scrollButtonClass = cn('grid size-8 shrink-0 place-items-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-30', scrollButtonClassName);
|
|
100
106
|
return /*#__PURE__*/ jsxs("div", {
|
|
107
|
+
"data-slot": "scrollable-tabs-list",
|
|
101
108
|
className: cn('flex w-full min-w-0 items-center gap-1', containerClassName),
|
|
102
109
|
children: [
|
|
103
110
|
hasOverflow && /*#__PURE__*/ jsx("button", {
|
|
@@ -133,12 +140,14 @@ const ScrollableTabsList = /*#__PURE__*/ forwardRef(({ className, containerClass
|
|
|
133
140
|
ScrollableTabsList.displayName = 'ScrollableTabsList';
|
|
134
141
|
const TabsTrigger = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Trigger, {
|
|
135
142
|
ref: ref,
|
|
143
|
+
"data-slot": "tabs-trigger",
|
|
136
144
|
className: cn('inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className),
|
|
137
145
|
...props
|
|
138
146
|
}));
|
|
139
147
|
TabsTrigger.displayName = Trigger.displayName;
|
|
140
148
|
const TabsContent = /*#__PURE__*/ forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Content, {
|
|
141
149
|
ref: ref,
|
|
150
|
+
"data-slot": "tabs-content",
|
|
142
151
|
className: cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className),
|
|
143
152
|
...props
|
|
144
153
|
}));
|
|
@@ -148,6 +148,7 @@ const Textarea = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ clas
|
|
|
148
148
|
resize
|
|
149
149
|
]);
|
|
150
150
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("textarea", {
|
|
151
|
+
"data-slot": "textarea",
|
|
151
152
|
className: (0, index_cjs_namespaceObject.cn)('flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-base transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', 'future:rounded-xl future:border-0 future:bg-surface-overlay future:text-sm future:placeholder:text-foreground-muted future:placeholder:font-normal future:focus-visible:ring-offset-2 future:focus-visible:ring-offset-background', !managed && 'min-h-[80px]', managed && 'resize-y', className),
|
|
152
153
|
ref: setRef,
|
|
153
154
|
style: style,
|
|
@@ -120,6 +120,7 @@ const Textarea = /*#__PURE__*/ forwardRef(({ className, minRows, maxRows, onChan
|
|
|
120
120
|
resize
|
|
121
121
|
]);
|
|
122
122
|
return /*#__PURE__*/ jsx("textarea", {
|
|
123
|
+
"data-slot": "textarea",
|
|
123
124
|
className: cn('flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-base transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', 'future:rounded-xl future:border-0 future:bg-surface-overlay future:text-sm future:placeholder:text-foreground-muted future:placeholder:font-normal future:focus-visible:ring-offset-2 future:focus-visible:ring-offset-background', !managed && 'min-h-[80px]', managed && 'resize-y', className),
|
|
124
125
|
ref: setRef,
|
|
125
126
|
style: style,
|
|
@@ -39,6 +39,7 @@ const ToggleGroupContext = /*#__PURE__*/ external_react_namespaceObject.createCo
|
|
|
39
39
|
});
|
|
40
40
|
const ToggleGroup = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, variant, size, spacing = 0, children, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_group_namespaceObject.Root, {
|
|
41
41
|
ref: ref,
|
|
42
|
+
"data-slot": "toggle-group",
|
|
42
43
|
"data-variant": variant ?? 'default',
|
|
43
44
|
"data-size": size ?? 'default',
|
|
44
45
|
"data-spacing": spacing,
|
|
@@ -61,6 +62,7 @@ const ToggleGroupItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef(
|
|
|
61
62
|
const context = external_react_namespaceObject.useContext(ToggleGroupContext);
|
|
62
63
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_group_namespaceObject.Item, {
|
|
63
64
|
ref: ref,
|
|
65
|
+
"data-slot": "toggle-group-item",
|
|
64
66
|
"data-variant": context.variant ?? variant ?? 'default',
|
|
65
67
|
"data-size": context.size ?? size ?? 'default',
|
|
66
68
|
"data-spacing": context.spacing ?? 0,
|
|
@@ -10,6 +10,7 @@ const ToggleGroupContext = /*#__PURE__*/ createContext({
|
|
|
10
10
|
});
|
|
11
11
|
const ToggleGroup = /*#__PURE__*/ forwardRef(({ className, variant, size, spacing = 0, children, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
12
12
|
ref: ref,
|
|
13
|
+
"data-slot": "toggle-group",
|
|
13
14
|
"data-variant": variant ?? 'default',
|
|
14
15
|
"data-size": size ?? 'default',
|
|
15
16
|
"data-spacing": spacing,
|
|
@@ -32,6 +33,7 @@ const ToggleGroupItem = /*#__PURE__*/ forwardRef(({ className, children, variant
|
|
|
32
33
|
const context = useContext(ToggleGroupContext);
|
|
33
34
|
return /*#__PURE__*/ jsx(Item, {
|
|
34
35
|
ref: ref,
|
|
36
|
+
"data-slot": "toggle-group-item",
|
|
35
37
|
"data-variant": context.variant ?? variant ?? 'default',
|
|
36
38
|
"data-size": context.size ?? size ?? 'default',
|
|
37
39
|
"data-spacing": context.spacing ?? 0,
|
|
@@ -53,6 +53,7 @@ const toggleVariants = (0, external_class_variance_authority_namespaceObject.cva
|
|
|
53
53
|
});
|
|
54
54
|
const Toggle = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, variant, size, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toggle_namespaceObject.Root, {
|
|
55
55
|
ref: ref,
|
|
56
|
+
"data-slot": "toggle",
|
|
56
57
|
className: (0, index_cjs_namespaceObject.cn)(toggleVariants({
|
|
57
58
|
variant,
|
|
58
59
|
size,
|
|
@@ -24,6 +24,7 @@ const toggleVariants = cva('inline-flex items-center justify-center gap-2 rounde
|
|
|
24
24
|
});
|
|
25
25
|
const Toggle = /*#__PURE__*/ forwardRef(({ className, variant, size, ...props }, ref)=>/*#__PURE__*/ jsx(Root, {
|
|
26
26
|
ref: ref,
|
|
27
|
+
"data-slot": "toggle",
|
|
27
28
|
className: cn(toggleVariants({
|
|
28
29
|
variant,
|
|
29
30
|
size,
|
|
@@ -34,12 +34,30 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
34
34
|
const react_tooltip_namespaceObject = require("@radix-ui/react-tooltip");
|
|
35
35
|
const external_react_namespaceObject = require("react");
|
|
36
36
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
37
|
-
const TooltipProvider = react_tooltip_namespaceObject.Provider
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
const TooltipProvider = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Provider, {
|
|
38
|
+
"data-slot": "tooltip-provider",
|
|
39
|
+
...props
|
|
40
|
+
});
|
|
41
|
+
TooltipProvider.displayName = 'TooltipProvider';
|
|
42
|
+
const Tooltip = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Root, {
|
|
43
|
+
"data-slot": "tooltip",
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
Tooltip.displayName = 'Tooltip';
|
|
47
|
+
const TooltipTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((props, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Trigger, {
|
|
48
|
+
ref: ref,
|
|
49
|
+
"data-slot": "tooltip-trigger",
|
|
50
|
+
...props
|
|
51
|
+
}));
|
|
52
|
+
TooltipTrigger.displayName = react_tooltip_namespaceObject.Trigger.displayName;
|
|
53
|
+
const TooltipPortal = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Portal, {
|
|
54
|
+
"data-slot": "tooltip-portal",
|
|
55
|
+
...props
|
|
56
|
+
});
|
|
57
|
+
TooltipPortal.displayName = 'TooltipPortal';
|
|
41
58
|
const TooltipContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ className, sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Content, {
|
|
42
59
|
ref: ref,
|
|
60
|
+
"data-slot": "tooltip-content",
|
|
43
61
|
sideOffset: sideOffset,
|
|
44
62
|
className: (0, index_cjs_namespaceObject.cn)('z-50 overflow-hidden rounded-md border border-border-inverse bg-surface-inverse px-3 py-1.5 text-sm text-foreground-inverse shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]', className),
|
|
45
63
|
...props
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const TooltipProvider:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
declare const TooltipProvider: {
|
|
4
|
+
(props: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const Tooltip: {
|
|
8
|
+
(props: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
declare const TooltipPortal: {
|
|
13
|
+
(props: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
7
16
|
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
17
|
export { Tooltip, TooltipTrigger, TooltipPortal, TooltipContent, TooltipProvider };
|
|
@@ -2,12 +2,30 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Content, Portal, Provider, Root, Trigger } from "@radix-ui/react-tooltip";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { cn } from "../../lib/index.js";
|
|
5
|
-
const TooltipProvider = Provider
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const TooltipProvider = (props)=>/*#__PURE__*/ jsx(Provider, {
|
|
6
|
+
"data-slot": "tooltip-provider",
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
TooltipProvider.displayName = 'TooltipProvider';
|
|
10
|
+
const Tooltip = (props)=>/*#__PURE__*/ jsx(Root, {
|
|
11
|
+
"data-slot": "tooltip",
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
Tooltip.displayName = 'Tooltip';
|
|
15
|
+
const TooltipTrigger = /*#__PURE__*/ forwardRef((props, ref)=>/*#__PURE__*/ jsx(Trigger, {
|
|
16
|
+
ref: ref,
|
|
17
|
+
"data-slot": "tooltip-trigger",
|
|
18
|
+
...props
|
|
19
|
+
}));
|
|
20
|
+
TooltipTrigger.displayName = Trigger.displayName;
|
|
21
|
+
const TooltipPortal = (props)=>/*#__PURE__*/ jsx(Portal, {
|
|
22
|
+
"data-slot": "tooltip-portal",
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
TooltipPortal.displayName = 'TooltipPortal';
|
|
9
26
|
const TooltipContent = /*#__PURE__*/ forwardRef(({ className, sideOffset = 4, ...props }, ref)=>/*#__PURE__*/ jsx(Content, {
|
|
10
27
|
ref: ref,
|
|
28
|
+
"data-slot": "tooltip-content",
|
|
11
29
|
sideOffset: sideOffset,
|
|
12
30
|
className: cn('z-50 overflow-hidden rounded-md border border-border-inverse bg-surface-inverse px-3 py-1.5 text-sm text-foreground-inverse shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]', className),
|
|
13
31
|
...props
|
|
@@ -25,7 +25,7 @@ var __webpack_require__ = {};
|
|
|
25
25
|
var __webpack_exports__ = {};
|
|
26
26
|
__webpack_require__.r(__webpack_exports__);
|
|
27
27
|
__webpack_require__.d(__webpack_exports__, {
|
|
28
|
-
default: ()=>
|
|
28
|
+
default: ()=>tree_view
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
@@ -67,7 +67,7 @@ const getCheckState = (item, itemMap)=>{
|
|
|
67
67
|
};
|
|
68
68
|
const defaultIconMap = {
|
|
69
69
|
file: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Box, {
|
|
70
|
-
className: "h-4 w-4 text-
|
|
70
|
+
className: "h-4 w-4 text-error"
|
|
71
71
|
}),
|
|
72
72
|
folder: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Folder, {
|
|
73
73
|
className: "h-4 w-4 text-primary/80"
|
|
@@ -234,6 +234,7 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
234
234
|
variant: "ghost",
|
|
235
235
|
size: "3xs",
|
|
236
236
|
icon: true,
|
|
237
|
+
"aria-label": isOpen ? `Collapse ${item.name}` : `Expand ${item.name}`,
|
|
237
238
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_framer_motion_namespaceObject.motion.div, {
|
|
238
239
|
initial: false,
|
|
239
240
|
animate: {
|
|
@@ -296,7 +297,7 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
296
297
|
}),
|
|
297
298
|
null !== selectedCount && selectedCount > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_badge_cjs_namespaceObject.Badge, {
|
|
298
299
|
variant: "secondary",
|
|
299
|
-
className: "shrink-0 mr-1 bg-
|
|
300
|
+
className: "shrink-0 mr-1 bg-info-background hover:bg-info-background",
|
|
300
301
|
children: [
|
|
301
302
|
selectedCount,
|
|
302
303
|
" selected"
|
|
@@ -311,6 +312,7 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
311
312
|
icon: true,
|
|
312
313
|
className: "h-6 w-6 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
313
314
|
onClick: (e)=>e.stopPropagation(),
|
|
315
|
+
"aria-label": `Actions for ${item.name}`,
|
|
314
316
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MoreHorizontal, {
|
|
315
317
|
className: "h-4 w-4 text-muted-foreground"
|
|
316
318
|
})
|
|
@@ -408,6 +410,7 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
408
410
|
icon: true,
|
|
409
411
|
className: "h-6 w-6 shrink-0 p-0 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
410
412
|
onClick: (e)=>e.stopPropagation(),
|
|
413
|
+
"aria-label": `Details for ${item.name}`,
|
|
411
414
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Info, {
|
|
412
415
|
className: "h-4 w-4 text-muted-foreground"
|
|
413
416
|
})
|
|
@@ -537,6 +540,7 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
537
540
|
icon: true,
|
|
538
541
|
className: "h-6 w-6 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
539
542
|
onClick: (e)=>e.stopPropagation(),
|
|
543
|
+
"aria-label": `Actions for ${item.name}`,
|
|
540
544
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.MoreHorizontal, {
|
|
541
545
|
className: "h-4 w-4 text-muted-foreground"
|
|
542
546
|
})
|
|
@@ -623,6 +627,7 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
623
627
|
icon: true,
|
|
624
628
|
className: "h-6 w-6 shrink-0 p-0 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
625
629
|
onClick: (e)=>e.stopPropagation(),
|
|
630
|
+
"aria-label": `Details for ${item.name}`,
|
|
626
631
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Info, {
|
|
627
632
|
className: "h-4 w-4 text-muted-foreground"
|
|
628
633
|
})
|
|
@@ -753,10 +758,10 @@ function TreeItem({ item, depth = 0, selectedIds, lastSelectedId, onSelect, expa
|
|
|
753
758
|
]
|
|
754
759
|
});
|
|
755
760
|
}
|
|
756
|
-
|
|
761
|
+
const tree_view_TreeView = /*#__PURE__*/ external_react_namespaceObject.forwardRef(function({ className, containerClassName, checkboxLabels = {
|
|
757
762
|
check: 'Check',
|
|
758
763
|
uncheck: 'Uncheck'
|
|
759
|
-
}, data, iconMap, searchPlaceholder = 'Search...', selectionText = 'selected', showExpandAll = true, showCheckboxes = false, showSelectionCheckboxes = false, selectionMode = 'multiple', title, getIcon, onSelectionChange, onAction, onCheckChange, menuItems }) {
|
|
764
|
+
}, data, iconMap, searchPlaceholder = 'Search...', selectionText = 'selected', showExpandAll = true, showCheckboxes = false, showSelectionCheckboxes = false, selectionMode = 'multiple', title, getIcon, onSelectionChange, onAction, onCheckChange, menuItems }, ref) {
|
|
760
765
|
const [currentMousePos, setCurrentMousePos] = (0, external_react_namespaceObject.useState)(0);
|
|
761
766
|
const [dragStart, setDragStart] = (0, external_react_namespaceObject.useState)(null);
|
|
762
767
|
const [dragStartPosition, setDragStartPosition] = (0, external_react_namespaceObject.useState)(null);
|
|
@@ -959,6 +964,8 @@ function TreeView({ className, containerClassName, checkboxLabels = {
|
|
|
959
964
|
getSelectedItems
|
|
960
965
|
]);
|
|
961
966
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
967
|
+
ref: ref,
|
|
968
|
+
"data-slot": "tree-view",
|
|
962
969
|
className: (0, index_cjs_namespaceObject.cn)('flex gap-4 min-w-0', containerClassName ? 'w-full' : ''),
|
|
963
970
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
964
971
|
ref: treeRef,
|
|
@@ -1038,7 +1045,7 @@ function TreeView({ className, containerClassName, checkboxLabels = {
|
|
|
1038
1045
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
1039
1046
|
variant: "ghost",
|
|
1040
1047
|
size: "sm",
|
|
1041
|
-
className: "h-8 px-2 text-
|
|
1048
|
+
className: "h-8 px-2 text-success hover:text-success-text hover:bg-success-background",
|
|
1042
1049
|
onClick: ()=>{
|
|
1043
1050
|
const effectiveItems = getEffectiveSelectedItems();
|
|
1044
1051
|
const processItem = (item)=>{
|
|
@@ -1052,7 +1059,7 @@ function TreeView({ className, containerClassName, checkboxLabels = {
|
|
|
1052
1059
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_button_cjs_namespaceObject.Button, {
|
|
1053
1060
|
variant: "ghost",
|
|
1054
1061
|
size: "sm",
|
|
1055
|
-
className: "h-8 px-2 text-
|
|
1062
|
+
className: "h-8 px-2 text-error hover:text-error-text hover:bg-error-background",
|
|
1056
1063
|
onClick: ()=>{
|
|
1057
1064
|
const effectiveItems = getEffectiveSelectedItems();
|
|
1058
1065
|
const processItem = (item)=>{
|
|
@@ -1077,7 +1084,7 @@ function TreeView({ className, containerClassName, checkboxLabels = {
|
|
|
1077
1084
|
onMouseMove: handleMouseMove,
|
|
1078
1085
|
children: [
|
|
1079
1086
|
isDragging && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
1080
|
-
className: "absolute inset-0 bg-
|
|
1087
|
+
className: "absolute inset-0 bg-transparent pointer-events-none",
|
|
1081
1088
|
style: {
|
|
1082
1089
|
top: Math.min(dragStart || 0, null === dragStart ? 0 : currentMousePos),
|
|
1083
1090
|
height: Math.abs((dragStart || 0) - (null === dragStart ? 0 : currentMousePos))
|
|
@@ -1107,7 +1114,8 @@ function TreeView({ className, containerClassName, checkboxLabels = {
|
|
|
1107
1114
|
]
|
|
1108
1115
|
})
|
|
1109
1116
|
});
|
|
1110
|
-
}
|
|
1117
|
+
});
|
|
1118
|
+
const tree_view = tree_view_TreeView;
|
|
1111
1119
|
exports["default"] = __webpack_exports__["default"];
|
|
1112
1120
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
1113
1121
|
"default"
|
|
@@ -92,4 +92,5 @@ export interface TreeViewProps {
|
|
|
92
92
|
*
|
|
93
93
|
* **Layout**: Title → Search bar → Expand/Collapse + Selected count + Clear → Tree. No horizontal scroll.
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
declare const TreeView: React.ForwardRefExoticComponent<TreeViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
export default TreeView;
|