@uipath/apollo-wind 0.9.1 → 0.10.0-pr219.61d64eb
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/canvas.cjs +44 -0
- package/dist/components/custom/canvas.d.ts +14 -0
- package/dist/components/custom/canvas.js +10 -0
- package/dist/components/custom/chat-composer.cjs +105 -0
- package/dist/components/custom/chat-composer.d.ts +15 -0
- package/dist/components/custom/chat-composer.js +71 -0
- package/dist/components/custom/chat-first-experience.cjs +87 -0
- package/dist/components/custom/chat-first-experience.d.ts +24 -0
- package/dist/components/custom/chat-first-experience.js +53 -0
- package/dist/components/custom/chat-prompt-suggestions.cjs +48 -0
- package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
- package/dist/components/custom/chat-prompt-suggestions.js +14 -0
- package/dist/components/custom/chat-steps-view.cjs +307 -0
- package/dist/components/custom/chat-steps-view.d.ts +38 -0
- package/dist/components/custom/chat-steps-view.js +273 -0
- package/dist/components/custom/flow-node.cjs +76 -0
- package/dist/components/custom/flow-node.d.ts +20 -0
- package/dist/components/custom/flow-node.js +42 -0
- package/dist/components/custom/flow-properties-bar.cjs +101 -0
- package/dist/components/custom/flow-properties-bar.d.ts +21 -0
- package/dist/components/custom/flow-properties-bar.js +67 -0
- package/dist/components/custom/flow-properties-expanded.cjs +324 -0
- package/dist/components/custom/flow-properties-expanded.d.ts +19 -0
- package/dist/components/custom/flow-properties-expanded.js +290 -0
- package/dist/components/custom/flow-properties-simple.cjs +357 -0
- package/dist/components/custom/flow-properties-simple.d.ts +62 -0
- package/dist/components/custom/flow-properties-simple.js +323 -0
- package/dist/components/custom/flow-properties.cjs +56 -0
- package/dist/components/custom/flow-properties.d.ts +28 -0
- package/dist/components/custom/flow-properties.js +22 -0
- package/dist/components/custom/global-header.cjs +415 -0
- package/dist/components/custom/global-header.d.ts +38 -0
- package/dist/components/custom/global-header.js +381 -0
- package/dist/components/custom/grid-maestro.cjs +62 -0
- package/dist/components/custom/grid-maestro.d.ts +19 -0
- package/dist/components/custom/grid-maestro.js +22 -0
- package/dist/components/custom/panel-delegate.cjs +280 -0
- package/dist/components/custom/panel-delegate.d.ts +34 -0
- package/dist/components/custom/panel-delegate.js +246 -0
- package/dist/components/custom/panel-flow.cjs +260 -0
- package/dist/components/custom/panel-flow.d.ts +38 -0
- package/dist/components/custom/panel-flow.js +223 -0
- package/dist/components/custom/panel-maestro.cjs +73 -0
- package/dist/components/custom/panel-maestro.d.ts +30 -0
- package/dist/components/custom/panel-maestro.js +39 -0
- package/dist/components/custom/toolbar-canvas.cjs +121 -0
- package/dist/components/custom/toolbar-canvas.d.ts +15 -0
- package/dist/components/custom/toolbar-canvas.js +87 -0
- package/dist/components/custom/toolbar-view.cjs +119 -0
- package/dist/components/custom/toolbar-view.d.ts +14 -0
- package/dist/components/custom/toolbar-view.js +85 -0
- package/dist/components/custom/viewport-guard.cjs +92 -0
- package/dist/components/custom/viewport-guard.d.ts +23 -0
- package/dist/components/custom/viewport-guard.js +55 -0
- package/dist/components/ui/button.cjs +3 -3
- package/dist/components/ui/button.js +3 -3
- package/dist/components/ui/chart.cjs +218 -0
- package/dist/components/ui/chart.d.ts +40 -0
- package/dist/components/ui/chart.js +169 -0
- package/dist/components/ui/data-table.cjs +14 -2
- package/dist/components/ui/data-table.d.ts +4 -1
- package/dist/components/ui/data-table.js +15 -3
- package/dist/components/ui/empty-state.cjs +17 -6
- package/dist/components/ui/empty-state.d.ts +7 -0
- package/dist/components/ui/empty-state.js +17 -6
- package/dist/components/ui/file-upload.cjs +82 -42
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +82 -42
- package/dist/components/ui/index.cjs +289 -149
- package/dist/components/ui/index.d.ts +2 -3
- package/dist/components/ui/index.js +2 -3
- package/dist/components/ui/tree-view.cjs +1101 -0
- package/dist/components/ui/tree-view.d.ts +95 -0
- package/dist/components/ui/tree-view.js +1067 -0
- package/dist/foundation/Future/colors.cjs +92 -0
- package/dist/foundation/Future/colors.d.ts +132 -0
- package/dist/foundation/Future/colors.js +43 -0
- package/dist/foundation/Future/radius.cjs +46 -0
- package/dist/foundation/Future/radius.d.ts +33 -0
- package/dist/foundation/Future/radius.js +12 -0
- package/dist/foundation/Future/responsive.cjs +49 -0
- package/dist/foundation/Future/responsive.d.ts +40 -0
- package/dist/foundation/Future/responsive.js +12 -0
- package/dist/foundation/Future/shadows.cjs +48 -0
- package/dist/foundation/Future/shadows.d.ts +29 -0
- package/dist/foundation/Future/shadows.js +11 -0
- package/dist/foundation/Future/spacing.cjs +71 -0
- package/dist/foundation/Future/spacing.d.ts +80 -0
- package/dist/foundation/Future/spacing.js +31 -0
- package/dist/foundation/Future/strokes.cjs +59 -0
- package/dist/foundation/Future/strokes.d.ts +49 -0
- package/dist/foundation/Future/strokes.js +19 -0
- package/dist/foundation/Future/types.cjs +18 -0
- package/dist/foundation/Future/types.d.ts +18 -0
- package/dist/foundation/Future/types.js +0 -0
- package/dist/foundation/Future/typography.cjs +79 -0
- package/dist/foundation/Future/typography.d.ts +86 -0
- package/dist/foundation/Future/typography.js +33 -0
- package/dist/index.cjs +125 -219
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -4
- package/dist/src/foundation/Future/themes.css +371 -0
- package/dist/styles.css +1704 -582
- package/dist/tailwind.css +4 -0
- package/dist/templates/Admin/settings-admin.d.ts +5 -0
- package/dist/templates/Admin/template-admin.d.ts +105 -0
- package/dist/templates/Delegate/template-delegate.d.ts +26 -0
- package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
- package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
- package/dist/templates/Flow/template-flow.d.ts +52 -0
- package/dist/templates/Maestro/template-maestro.d.ts +52 -0
- package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
- package/package.json +10 -1
- package/dist/components/ui/menubar.cjs +0 -210
- package/dist/components/ui/menubar.d.ts +0 -28
- package/dist/components/ui/menubar.js +0 -131
- package/dist/components/ui/navigation-menu.cjs +0 -122
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/navigation-menu.js +0 -64
- package/dist/examples/admin-layout-example.cjs +0 -490
- package/dist/examples/admin-layout-example.d.ts +0 -92
- package/dist/examples/admin-layout-example.js +0 -411
- package/dist/examples/app-shell-example.cjs +0 -452
- package/dist/examples/app-shell-example.d.ts +0 -52
- package/dist/examples/app-shell-example.js +0 -418
- package/dist/examples/dashboard-example.cjs +0 -590
- package/dist/examples/dashboard-example.d.ts +0 -11
- package/dist/examples/dashboard-example.js +0 -556
- package/dist/examples/data-management-example.cjs +0 -584
- package/dist/examples/data-management-example.d.ts +0 -1
- package/dist/examples/data-management-example.js +0 -550
- package/dist/examples/flow-editor-layout-example.cjs +0 -309
- package/dist/examples/flow-editor-layout-example.d.ts +0 -22
- package/dist/examples/flow-editor-layout-example.js +0 -269
- package/dist/examples/flow-start-example.cjs +0 -467
- package/dist/examples/flow-start-example.d.ts +0 -30
- package/dist/examples/flow-start-example.js +0 -433
- package/dist/examples/form-builder-example.cjs +0 -674
- package/dist/examples/form-builder-example.js +0 -640
- package/dist/examples/new-project-example.cjs +0 -550
- package/dist/examples/new-project-example.d.ts +0 -30
- package/dist/examples/new-project-example.js +0 -516
- package/dist/examples/settings-example.cjs +0 -864
- package/dist/examples/settings-example.d.ts +0 -1
- package/dist/examples/settings-example.js +0 -830
- package/dist/examples/vscode-example.cjs +0 -340
- package/dist/examples/vscode-example.d.ts +0 -80
- package/dist/examples/vscode-example.js +0 -270
- package/dist/templates/admin-layout-example.d.ts +0 -92
- package/dist/templates/app-shell-example.d.ts +0 -52
- package/dist/templates/dashboard-example.d.ts +0 -11
- package/dist/templates/data-management-example.d.ts +0 -1
- package/dist/templates/flow-editor-layout-example.d.ts +0 -22
- package/dist/templates/flow-start-example.d.ts +0 -30
- package/dist/templates/form-builder-example.d.ts +0 -1
- package/dist/templates/new-project-example.d.ts +0 -30
- package/dist/templates/settings-example.d.ts +0 -1
- /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Action shown in the item's dropdown menu (Edit, Delete, etc.).
|
|
4
|
+
* Actions appear as a single "more" icon that opens a dropdown to avoid horizontal overflow.
|
|
5
|
+
*/
|
|
6
|
+
export interface TreeViewItemAction {
|
|
7
|
+
/** Unique action identifier */
|
|
8
|
+
id: string;
|
|
9
|
+
/** Icon to display in the dropdown menu item */
|
|
10
|
+
icon: React.ReactNode;
|
|
11
|
+
/** Accessible label for the action */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Called when the action is clicked */
|
|
14
|
+
onClick: (item: TreeViewItem) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A single item in the tree. Supports hierarchical structure, selection, and rich metadata.
|
|
18
|
+
*/
|
|
19
|
+
export interface TreeViewItem {
|
|
20
|
+
/** Unique identifier (must be unique across the entire tree) */
|
|
21
|
+
id: string;
|
|
22
|
+
/** Display name */
|
|
23
|
+
name: string;
|
|
24
|
+
/** Type used for icon lookup in iconMap */
|
|
25
|
+
type: string;
|
|
26
|
+
/** Child items for expandable folders */
|
|
27
|
+
children?: TreeViewItem[];
|
|
28
|
+
/** Checked state when using access-rights checkboxes (showCheckboxes) */
|
|
29
|
+
checked?: boolean;
|
|
30
|
+
/** When true, item is greyed out and cannot be selected */
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/** Badge or tag shown after the name (e.g. status, version) */
|
|
33
|
+
badge?: React.ReactNode;
|
|
34
|
+
/** Secondary metadata shown after the badge (e.g. "Production", "2 workflows") */
|
|
35
|
+
meta?: string | React.ReactNode;
|
|
36
|
+
/** Actions shown in a dropdown menu (Edit, Delete, etc.). Uses a single "more" icon to prevent horizontal scroll. */
|
|
37
|
+
actions?: TreeViewItemAction[];
|
|
38
|
+
}
|
|
39
|
+
export interface TreeViewIconMap {
|
|
40
|
+
[key: string]: React.ReactNode | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface TreeViewMenuItem {
|
|
43
|
+
id: string;
|
|
44
|
+
label: string;
|
|
45
|
+
icon?: React.ReactNode;
|
|
46
|
+
action: (items: TreeViewItem[]) => void;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Controls how items can be selected.
|
|
50
|
+
* - `"multiple"`: Shift/ctrl-click for multi-select, drag to select range (default)
|
|
51
|
+
* - `"single"`: Only one item can be selected at a time
|
|
52
|
+
* - `"none"`: No selection; expand/collapse only
|
|
53
|
+
*/
|
|
54
|
+
export type TreeViewSelectionMode = "single" | "multiple" | "none";
|
|
55
|
+
export interface TreeViewProps {
|
|
56
|
+
className?: string;
|
|
57
|
+
containerClassName?: string;
|
|
58
|
+
data: TreeViewItem[];
|
|
59
|
+
title?: string;
|
|
60
|
+
showExpandAll?: boolean;
|
|
61
|
+
showCheckboxes?: boolean;
|
|
62
|
+
/** Show selection checkboxes on leaf items only (folders do not get checkboxes) */
|
|
63
|
+
showSelectionCheckboxes?: boolean;
|
|
64
|
+
/** Selection behavior: "multiple" (default), "single", or "none" */
|
|
65
|
+
selectionMode?: TreeViewSelectionMode;
|
|
66
|
+
checkboxPosition?: "left" | "right";
|
|
67
|
+
searchPlaceholder?: string;
|
|
68
|
+
selectionText?: string;
|
|
69
|
+
checkboxLabels?: {
|
|
70
|
+
check: string;
|
|
71
|
+
uncheck: string;
|
|
72
|
+
};
|
|
73
|
+
getIcon?: (item: TreeViewItem, depth: number) => React.ReactNode;
|
|
74
|
+
onSelectionChange?: (selectedItems: TreeViewItem[]) => void;
|
|
75
|
+
onAction?: (action: string, items: TreeViewItem[]) => void;
|
|
76
|
+
onCheckChange?: (item: TreeViewItem, checked: boolean) => void;
|
|
77
|
+
iconMap?: TreeViewIconMap;
|
|
78
|
+
menuItems?: TreeViewMenuItem[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* TreeView displays hierarchical data with expand/collapse, search, selection, and optional actions.
|
|
82
|
+
*
|
|
83
|
+
* **Features:**
|
|
84
|
+
* - **Search**: Filters items by name and auto-expands matching branches
|
|
85
|
+
* - **Selection**: Single, multiple, or none via `selectionMode`
|
|
86
|
+
* - **Selection checkboxes**: Shown only on leaf items (not on folders) when `showSelectionCheckboxes` is true
|
|
87
|
+
* - **Disabled items**: Use `disabled: true` on items to grey them out and prevent selection
|
|
88
|
+
* - **Badges & metadata**: Add `badge` and `meta` to items for status, version, or counts
|
|
89
|
+
* - **Item actions**: Add `actions` for Edit/Delete; shown in a compact dropdown to prevent horizontal scroll
|
|
90
|
+
* - **Right-click context menu**: Use `menuItems` for custom context menu actions
|
|
91
|
+
* - **Access-rights checkboxes**: Use `showCheckboxes` for check/uncheck with `onCheckChange`
|
|
92
|
+
*
|
|
93
|
+
* **Layout**: Title → Search bar → Expand/Collapse + Selected count + Clear → Tree. No horizontal scroll.
|
|
94
|
+
*/
|
|
95
|
+
export default function TreeView({ className, containerClassName, checkboxLabels, data, iconMap, searchPlaceholder, selectionText, showExpandAll, showCheckboxes, showSelectionCheckboxes, selectionMode, title, getIcon, onSelectionChange, onAction, onCheckChange, menuItems, }: TreeViewProps): import("react/jsx-runtime").JSX.Element;
|