@uipath/apollo-wind 2.86.1 → 2.88.0
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/ui/connection-picker/components/connection-actions-menu.cjs +129 -0
- package/dist/components/ui/connection-picker/components/connection-actions-menu.d.ts +21 -0
- package/dist/components/ui/connection-picker/components/connection-actions-menu.js +95 -0
- package/dist/components/ui/connection-picker/components/connection-status.cjs +81 -0
- package/dist/components/ui/connection-picker/components/connection-status.d.ts +22 -0
- package/dist/components/ui/connection-picker/components/connection-status.js +41 -0
- package/dist/components/ui/connection-picker/connection-picker.cjs +411 -0
- package/dist/components/ui/connection-picker/connection-picker.d.ts +12 -0
- package/dist/components/ui/connection-picker/connection-picker.js +374 -0
- package/dist/components/ui/connection-picker/index.cjs +39 -0
- package/dist/components/ui/connection-picker/index.d.ts +2 -0
- package/dist/components/ui/connection-picker/index.js +2 -0
- package/dist/components/ui/connection-picker/types.cjs +18 -0
- package/dist/components/ui/connection-picker/types.d.ts +124 -0
- package/dist/components/ui/connection-picker/types.js +0 -0
- package/dist/components/ui/field-addons/field-menu.cjs +41 -23
- package/dist/components/ui/field-addons/field-menu.d.ts +2 -0
- package/dist/components/ui/field-addons/field-menu.js +42 -24
- package/dist/components/ui/folder-picker/folder-picker.cjs +4 -3
- package/dist/components/ui/folder-picker/folder-picker.js +4 -3
- package/dist/components/ui/index.cjs +267 -241
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.js +2 -0
- package/dist/components/ui/{folder-picker/components/folder-picker-empty-state.cjs → picker-empty-state.cjs} +11 -11
- package/dist/components/ui/picker-empty-state.d.ts +33 -0
- package/dist/components/ui/{folder-picker/components/folder-picker-empty-state.js → picker-empty-state.js} +9 -9
- package/dist/components/ui/resource-picker/command-value.cjs +48 -0
- package/dist/components/ui/resource-picker/command-value.d.ts +11 -0
- package/dist/components/ui/resource-picker/command-value.js +11 -0
- package/dist/components/ui/resource-picker/components/resource-group-header.cjs +102 -0
- package/dist/components/ui/resource-picker/components/resource-group-header.d.ts +44 -0
- package/dist/components/ui/resource-picker/components/resource-group-header.js +65 -0
- package/dist/components/ui/resource-picker/components/resource-picker-footer.cjs +55 -0
- package/dist/components/ui/resource-picker/components/resource-picker-footer.d.ts +14 -0
- package/dist/components/ui/resource-picker/components/resource-picker-footer.js +21 -0
- package/dist/components/ui/resource-picker/components/resource-row-actions-menu.cjs +136 -0
- package/dist/components/ui/resource-picker/components/resource-row-actions-menu.d.ts +30 -0
- package/dist/components/ui/resource-picker/components/resource-row-actions-menu.js +102 -0
- package/dist/components/ui/resource-picker/components/resource-row.cjs +115 -0
- package/dist/components/ui/resource-picker/components/resource-row.d.ts +16 -0
- package/dist/components/ui/resource-picker/components/resource-row.js +81 -0
- package/dist/components/ui/resource-picker/focus.cjs +66 -0
- package/dist/components/ui/resource-picker/focus.d.ts +1 -0
- package/dist/components/ui/resource-picker/focus.js +32 -0
- package/dist/components/ui/resource-picker/index.cjs +42 -0
- package/dist/components/ui/resource-picker/index.d.ts +2 -0
- package/dist/components/ui/resource-picker/index.js +2 -0
- package/dist/components/ui/resource-picker/resource-picker.cjs +606 -0
- package/dist/components/ui/resource-picker/resource-picker.d.ts +40 -0
- package/dist/components/ui/resource-picker/resource-picker.js +566 -0
- package/dist/components/ui/resource-picker/types.cjs +50 -0
- package/dist/components/ui/resource-picker/types.d.ts +209 -0
- package/dist/components/ui/resource-picker/types.js +16 -0
- package/dist/index.cjs +24 -7
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -1
- package/dist/styles.css +75 -29
- package/package.json +1 -1
- package/dist/components/ui/folder-picker/components/folder-picker-empty-state.d.ts +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { MoreHorizontal, Type } from "lucide-react";
|
|
3
3
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "../dropdown-menu.js";
|
|
4
4
|
import { InputGroupButton } from "../input-group.js";
|
|
@@ -10,24 +10,16 @@ const DEFAULT_MODES = [
|
|
|
10
10
|
'literal',
|
|
11
11
|
'expression'
|
|
12
12
|
];
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"aria-checked": active,
|
|
17
|
-
className: "flex-col items-start gap-0.5 py-2",
|
|
18
|
-
"data-active": active || void 0,
|
|
19
|
-
disabled: disabled,
|
|
20
|
-
onClick: onClick,
|
|
13
|
+
const DESCRIBED_ITEM_CLASS = 'flex-col items-start gap-0.5 py-2';
|
|
14
|
+
function DescribedItemContent({ icon, label, labelClassName, description }) {
|
|
15
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
21
16
|
children: [
|
|
22
17
|
/*#__PURE__*/ jsxs("div", {
|
|
23
18
|
className: "flex items-center gap-2",
|
|
24
19
|
children: [
|
|
25
|
-
|
|
26
|
-
size: 13,
|
|
27
|
-
className: active ? 'text-brand' : 'text-foreground-muted'
|
|
28
|
-
}),
|
|
20
|
+
icon,
|
|
29
21
|
/*#__PURE__*/ jsx("span", {
|
|
30
|
-
className: cn('text-xs font-medium',
|
|
22
|
+
className: cn('text-xs font-medium', labelClassName),
|
|
31
23
|
children: label
|
|
32
24
|
})
|
|
33
25
|
]
|
|
@@ -39,6 +31,25 @@ function ValueModeMenuItem({ icon: Icon, label, description, active, disabled, o
|
|
|
39
31
|
]
|
|
40
32
|
});
|
|
41
33
|
}
|
|
34
|
+
function ValueModeMenuItem({ icon: Icon, label, description, active, disabled, onClick }) {
|
|
35
|
+
return /*#__PURE__*/ jsx(DropdownMenuItem, {
|
|
36
|
+
role: "menuitemradio",
|
|
37
|
+
"aria-checked": active,
|
|
38
|
+
className: DESCRIBED_ITEM_CLASS,
|
|
39
|
+
"data-active": active || void 0,
|
|
40
|
+
disabled: disabled,
|
|
41
|
+
onClick: onClick,
|
|
42
|
+
children: /*#__PURE__*/ jsx(DescribedItemContent, {
|
|
43
|
+
icon: /*#__PURE__*/ jsx(Icon, {
|
|
44
|
+
size: 13,
|
|
45
|
+
className: active ? 'text-brand' : 'text-foreground-muted'
|
|
46
|
+
}),
|
|
47
|
+
label: label,
|
|
48
|
+
labelClassName: active ? 'text-brand' : 'text-foreground',
|
|
49
|
+
description: description
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
}
|
|
42
53
|
function FieldMenu({ mode, onSelect, modes, extraModes, actions, checked, modesDisabled, disabled, expectedType, literalDescription, triggerLabel: triggerLabelOverride, strings, onCloseAutoFocus }) {
|
|
43
54
|
const text = {
|
|
44
55
|
...DEFAULT_VALUE_MODE_STRINGS,
|
|
@@ -86,18 +97,25 @@ function FieldMenu({ mode, onSelect, modes, extraModes, actions, checked, modesD
|
|
|
86
97
|
!modesDisabled && !!actions?.length && /*#__PURE__*/ jsx(DropdownMenuSeparator, {}),
|
|
87
98
|
actions?.map((action)=>{
|
|
88
99
|
const ActionIcon = action.icon;
|
|
89
|
-
|
|
100
|
+
const icon = ActionIcon ? /*#__PURE__*/ jsx(ActionIcon, {}) : action.iconDataUri && /*#__PURE__*/ jsx("img", {
|
|
101
|
+
src: action.iconDataUri,
|
|
102
|
+
alt: "",
|
|
103
|
+
className: "size-4 shrink-0"
|
|
104
|
+
});
|
|
105
|
+
return /*#__PURE__*/ jsx(DropdownMenuItem, {
|
|
90
106
|
disabled: action.disabled,
|
|
91
107
|
onClick: action.onSelect,
|
|
92
|
-
className: cn(action.destructive && 'text-error focus:text-error'),
|
|
93
|
-
children:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
108
|
+
className: cn(action.description && DESCRIBED_ITEM_CLASS, action.destructive && 'text-error focus:text-error'),
|
|
109
|
+
children: action.description ? /*#__PURE__*/ jsx(DescribedItemContent, {
|
|
110
|
+
icon: icon,
|
|
111
|
+
label: action.label,
|
|
112
|
+
description: action.description
|
|
113
|
+
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
114
|
+
children: [
|
|
115
|
+
icon,
|
|
116
|
+
action.label
|
|
117
|
+
]
|
|
118
|
+
})
|
|
101
119
|
}, action.id);
|
|
102
120
|
})
|
|
103
121
|
]
|
|
@@ -34,8 +34,8 @@ const external_lucide_react_namespaceObject = require("lucide-react");
|
|
|
34
34
|
const external_react_namespaceObject = require("react");
|
|
35
35
|
const external_popover_cjs_namespaceObject = require("../popover.cjs");
|
|
36
36
|
const index_cjs_namespaceObject = require("../../../lib/index.cjs");
|
|
37
|
+
const external_picker_empty_state_cjs_namespaceObject = require("../picker-empty-state.cjs");
|
|
37
38
|
const folder_breadcrumb_cjs_namespaceObject = require("./components/folder-breadcrumb.cjs");
|
|
38
|
-
const folder_picker_empty_state_cjs_namespaceObject = require("./components/folder-picker-empty-state.cjs");
|
|
39
39
|
const folder_picker_footer_cjs_namespaceObject = require("./components/folder-picker-footer.cjs");
|
|
40
40
|
const folder_picker_search_cjs_namespaceObject = require("./components/folder-picker-search.cjs");
|
|
41
41
|
const folder_row_cjs_namespaceObject = require("./components/folder-row.cjs");
|
|
@@ -44,7 +44,8 @@ const listedDraft = (current, entries, segments)=>entries.some((entry)=>!entry.d
|
|
|
44
44
|
...segments,
|
|
45
45
|
entry.name
|
|
46
46
|
]) === current) ? current : null;
|
|
47
|
-
|
|
47
|
+
const defaultNoMatchText = (query)=>`No folders match “${query}”.`;
|
|
48
|
+
function FolderPickerContent({ onLoadChildren, onSelect, onCancel, initialPath, rootLabel = 'Root', breadcrumbLabel, searchPlaceholder = 'Search...', clearSearchLabel, initialSearch = '', emptyText = 'No subfolders.', noMatchText = defaultNoMatchText, openFolderLabel, loadingText = 'Loading…', loadErrorText = 'Could not load this folder.', retryLabel = 'Retry', listLabel = 'Folders', footerLeading, cancelLabel = 'Cancel', selectLabel = 'Select', className }) {
|
|
48
49
|
const initialSegments = (0, external_react_namespaceObject.useMemo)(()=>(initialPath ?? '').split('/').filter(Boolean), [
|
|
49
50
|
initialPath
|
|
50
51
|
]);
|
|
@@ -261,7 +262,7 @@ function FolderPickerContent({ onLoadChildren, onSelect, onCancel, initialPath,
|
|
|
261
262
|
className: "max-h-56 min-h-0 flex-1 overflow-y-auto py-1 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
|
|
262
263
|
onKeyDown: handleTreeKeyDown,
|
|
263
264
|
children: [
|
|
264
|
-
0 === visibleEntries.length && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
265
|
+
0 === visibleEntries.length && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_picker_empty_state_cjs_namespaceObject.PickerEmptyState, {
|
|
265
266
|
error: levelError,
|
|
266
267
|
loading: isLoadingCurrentLevel,
|
|
267
268
|
query: search.trim(),
|
|
@@ -4,8 +4,8 @@ import { FolderOpen, X } from "lucide-react";
|
|
|
4
4
|
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { Popover, PopoverContent, PopoverTrigger } from "../popover.js";
|
|
6
6
|
import { cn } from "../../../lib/index.js";
|
|
7
|
+
import { PickerEmptyState } from "../picker-empty-state.js";
|
|
7
8
|
import { FolderBreadcrumb } from "./components/folder-breadcrumb.js";
|
|
8
|
-
import { FolderPickerEmptyState } from "./components/folder-picker-empty-state.js";
|
|
9
9
|
import { FolderPickerFooter } from "./components/folder-picker-footer.js";
|
|
10
10
|
import { FolderPickerSearch } from "./components/folder-picker-search.js";
|
|
11
11
|
import { FolderRow } from "./components/folder-row.js";
|
|
@@ -14,7 +14,8 @@ const listedDraft = (current, entries, segments)=>entries.some((entry)=>!entry.d
|
|
|
14
14
|
...segments,
|
|
15
15
|
entry.name
|
|
16
16
|
]) === current) ? current : null;
|
|
17
|
-
|
|
17
|
+
const defaultNoMatchText = (query)=>`No folders match “${query}”.`;
|
|
18
|
+
function FolderPickerContent({ onLoadChildren, onSelect, onCancel, initialPath, rootLabel = 'Root', breadcrumbLabel, searchPlaceholder = 'Search...', clearSearchLabel, initialSearch = '', emptyText = 'No subfolders.', noMatchText = defaultNoMatchText, openFolderLabel, loadingText = 'Loading…', loadErrorText = 'Could not load this folder.', retryLabel = 'Retry', listLabel = 'Folders', footerLeading, cancelLabel = 'Cancel', selectLabel = 'Select', className }) {
|
|
18
19
|
const initialSegments = useMemo(()=>(initialPath ?? '').split('/').filter(Boolean), [
|
|
19
20
|
initialPath
|
|
20
21
|
]);
|
|
@@ -231,7 +232,7 @@ function FolderPickerContent({ onLoadChildren, onSelect, onCancel, initialPath,
|
|
|
231
232
|
className: "max-h-56 min-h-0 flex-1 overflow-y-auto py-1 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
|
|
232
233
|
onKeyDown: handleTreeKeyDown,
|
|
233
234
|
children: [
|
|
234
|
-
0 === visibleEntries.length && /*#__PURE__*/ jsx(
|
|
235
|
+
0 === visibleEntries.length && /*#__PURE__*/ jsx(PickerEmptyState, {
|
|
235
236
|
error: levelError,
|
|
236
237
|
loading: isLoadingCurrentLevel,
|
|
237
238
|
query: search.trim(),
|