@uipath/apollo-wind 2.32.4 → 2.33.1

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.
@@ -0,0 +1,42 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ export interface VariablePickerItem {
3
+ id: string;
4
+ label: string;
5
+ value?: string;
6
+ children?: VariablePickerItem[];
7
+ disabled?: boolean;
8
+ /** Branches are selectable when this is true or when they provide a value. */
9
+ selectable?: boolean;
10
+ icon?: ReactNode;
11
+ /** Consumer-defined type name. Known primitive types use the standard compact badge. */
12
+ type?: string;
13
+ /** Optional content rendered at the trailing edge, such as a type label or status chip. */
14
+ trailingAdornment?: ReactNode;
15
+ metadata?: unknown;
16
+ }
17
+ export interface VariablePickerContentProps {
18
+ items: VariablePickerItem[];
19
+ onSelect: (item: VariablePickerItem) => void;
20
+ placeholder?: string;
21
+ emptyText?: string;
22
+ query?: string;
23
+ initialQuery?: string;
24
+ onQueryChange?: (query: string) => void;
25
+ defaultExpandedIds?: Iterable<string>;
26
+ insertLabel?: string;
27
+ className?: string;
28
+ }
29
+ export interface VariablePickerProps extends VariablePickerContentProps {
30
+ /** A single element that Radix can use as the popover trigger. */
31
+ children?: ReactElement;
32
+ align?: 'start' | 'center' | 'end';
33
+ disabled?: boolean;
34
+ open?: boolean;
35
+ onOpenChange?: (open: boolean) => void;
36
+ triggerLabel?: string;
37
+ triggerAriaLabel?: string;
38
+ }
39
+ /** Search and tree content for embedding in a consumer-owned popover or caret-anchored surface. */
40
+ export declare function VariablePickerContent({ items, onSelect, placeholder, emptyText, query: controlledQuery, initialQuery, onQueryChange, defaultExpandedIds, insertLabel, className, }: VariablePickerContentProps): import("react/jsx-runtime").JSX.Element;
41
+ /** Popover-wrapped convenience picker for inserting a variable into a consumer-owned value. */
42
+ export declare function VariablePicker({ children, align, disabled, open: controlledOpen, onOpenChange, triggerLabel, triggerAriaLabel, className, onSelect, ...contentProps }: VariablePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,209 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Braces, ChevronDown, SquareArrowRightEnter } from "lucide-react";
4
+ import { useMemo, useState } from "react";
5
+ import { Command, CommandEmpty, CommandInput, CommandItem, CommandList } from "../command.js";
6
+ import { Popover, PopoverContent, PopoverTrigger } from "../popover.js";
7
+ import { cn } from "../../../lib/index.js";
8
+ const TYPE_LABEL = {
9
+ string: 'T',
10
+ number: '#',
11
+ boolean: '?',
12
+ object: '{}',
13
+ array: '[]',
14
+ null: '∅'
15
+ };
16
+ function VariableTypeBadge({ item }) {
17
+ const type = item.type ?? (item.children?.length ? 'object' : 'string');
18
+ return /*#__PURE__*/ jsx("span", {
19
+ "aria-hidden": "true",
20
+ className: "inline-flex h-[18px] min-w-[18px] shrink-0 items-center justify-center rounded border border-border bg-surface-overlay px-0.5 font-mono text-[9px] font-semibold leading-none text-foreground-muted [&_svg]:size-2.75",
21
+ children: item.icon ?? TYPE_LABEL[type] ?? type
22
+ });
23
+ }
24
+ function itemMatches(item, normalizedQuery) {
25
+ return item.label.toLowerCase().includes(normalizedQuery) || item.value?.toLowerCase().includes(normalizedQuery) === true;
26
+ }
27
+ function filterItems(items, query) {
28
+ const normalizedQuery = query.trim().toLowerCase();
29
+ if (!normalizedQuery) return items;
30
+ return items.flatMap((item)=>{
31
+ if (itemMatches(item, normalizedQuery)) return [
32
+ item
33
+ ];
34
+ const children = filterItems(item.children ?? [], normalizedQuery);
35
+ return children.length ? [
36
+ {
37
+ ...item,
38
+ children
39
+ }
40
+ ] : [];
41
+ });
42
+ }
43
+ function VariableRows({ items, filtering, expandedIds, onToggle, onSelect, insertLabel, depth = 0 }) {
44
+ return items.map((item)=>{
45
+ const hasChildren = !!item.children?.length;
46
+ const selectable = item.selectable ?? (!hasChildren || void 0 !== item.value);
47
+ const expanded = filtering || expandedIds.has(item.id);
48
+ const handleKeyDown = (event)=>{
49
+ if (!hasChildren || 'ArrowLeft' !== event.key && 'ArrowRight' !== event.key) return;
50
+ const shouldExpand = 'ArrowRight' === event.key;
51
+ if (expandedIds.has(item.id) !== shouldExpand) onToggle(item.id);
52
+ event.preventDefault();
53
+ };
54
+ return /*#__PURE__*/ jsxs("div", {
55
+ role: "none",
56
+ children: [
57
+ /*#__PURE__*/ jsxs(CommandItem, {
58
+ value: item.id,
59
+ "aria-label": item.label,
60
+ disabled: item.disabled,
61
+ onKeyDown: handleKeyDown,
62
+ onSelect: ()=>hasChildren ? onToggle(item.id) : selectable && onSelect(item),
63
+ "data-expanded": hasChildren ? expanded : void 0,
64
+ className: "group min-h-0 gap-2 rounded-none py-1 pr-3.5 text-xs hover:bg-surface-overlay data-[selected=true]:bg-surface-overlay data-[selected=true]:text-foreground",
65
+ style: {
66
+ paddingLeft: `${8 + 16 * depth}px`
67
+ },
68
+ children: [
69
+ hasChildren ? /*#__PURE__*/ jsx("span", {
70
+ className: "grid size-3 shrink-0 place-items-center",
71
+ children: /*#__PURE__*/ jsx(ChevronDown, {
72
+ size: 10,
73
+ className: cn('!size-2.5 text-foreground-subtle transition-transform duration-100', !expanded && '-rotate-90')
74
+ })
75
+ }) : /*#__PURE__*/ jsx("span", {
76
+ className: "size-3 shrink-0"
77
+ }),
78
+ /*#__PURE__*/ jsx(VariableTypeBadge, {
79
+ item: item
80
+ }),
81
+ /*#__PURE__*/ jsx("span", {
82
+ className: "min-w-0 flex-1 truncate font-mono text-foreground",
83
+ children: item.label
84
+ }),
85
+ item.trailingAdornment,
86
+ selectable && /*#__PURE__*/ jsx("button", {
87
+ type: "button",
88
+ "aria-label": `${insertLabel}: ${item.label}`,
89
+ disabled: item.disabled,
90
+ onClick: (event)=>{
91
+ event.stopPropagation();
92
+ onSelect(item);
93
+ },
94
+ className: "grid size-5 shrink-0 place-items-center text-foreground-muted opacity-0 transition-opacity hover:text-foreground group-hover:opacity-100 group-data-[selected=true]:opacity-100 focus-visible:opacity-100",
95
+ children: /*#__PURE__*/ jsx(SquareArrowRightEnter, {
96
+ className: "!size-3.5"
97
+ })
98
+ })
99
+ ]
100
+ }),
101
+ hasChildren && expanded && /*#__PURE__*/ jsx(VariableRows, {
102
+ items: item.children,
103
+ filtering: filtering,
104
+ expandedIds: expandedIds,
105
+ onToggle: onToggle,
106
+ onSelect: onSelect,
107
+ insertLabel: insertLabel,
108
+ depth: depth + 1
109
+ })
110
+ ]
111
+ }, item.id);
112
+ });
113
+ }
114
+ function VariablePickerContent({ items, onSelect, placeholder = 'Search variables...', emptyText = 'No variables found.', query: controlledQuery, initialQuery = '', onQueryChange, defaultExpandedIds, insertLabel = 'Insert variable', className }) {
115
+ const [uncontrolledQuery, setUncontrolledQuery] = useState(initialQuery);
116
+ const [expandedIds, setExpandedIds] = useState(()=>new Set(defaultExpandedIds ?? items.slice(0, 1).map((item)=>item.id)));
117
+ const query = controlledQuery ?? uncontrolledQuery;
118
+ const filteredItems = useMemo(()=>filterItems(items, query), [
119
+ items,
120
+ query
121
+ ]);
122
+ const setQuery = (nextQuery)=>{
123
+ if (void 0 === controlledQuery) setUncontrolledQuery(nextQuery);
124
+ onQueryChange?.(nextQuery);
125
+ };
126
+ const toggleExpanded = (id)=>{
127
+ setExpandedIds((current)=>{
128
+ const next = new Set(current);
129
+ if (next.has(id)) next.delete(id);
130
+ else next.add(id);
131
+ return next;
132
+ });
133
+ };
134
+ return /*#__PURE__*/ jsxs(Command, {
135
+ shouldFilter: false,
136
+ className: className,
137
+ children: [
138
+ /*#__PURE__*/ jsx(CommandInput, {
139
+ value: query,
140
+ onValueChange: setQuery,
141
+ placeholder: placeholder,
142
+ autoFocus: true
143
+ }),
144
+ /*#__PURE__*/ jsxs(CommandList, {
145
+ className: "max-h-72 bg-surface-overlay/40 py-1.5",
146
+ children: [
147
+ 0 === filteredItems.length && /*#__PURE__*/ jsx(CommandEmpty, {
148
+ children: emptyText
149
+ }),
150
+ filteredItems.length > 0 && /*#__PURE__*/ jsx(VariableRows, {
151
+ items: filteredItems,
152
+ filtering: query.trim().length > 0,
153
+ expandedIds: expandedIds,
154
+ onToggle: toggleExpanded,
155
+ onSelect: onSelect,
156
+ insertLabel: insertLabel
157
+ })
158
+ ]
159
+ })
160
+ ]
161
+ });
162
+ }
163
+ function VariablePicker({ children, align = 'end', disabled = false, open: controlledOpen, onOpenChange, triggerLabel = 'Insert', triggerAriaLabel = 'Insert variable', className, onSelect, ...contentProps }) {
164
+ const [uncontrolledOpen, setUncontrolledOpen] = useState(false);
165
+ const open = controlledOpen ?? uncontrolledOpen;
166
+ const setOpen = (nextOpen)=>{
167
+ if (void 0 === controlledOpen) setUncontrolledOpen(nextOpen);
168
+ onOpenChange?.(nextOpen);
169
+ };
170
+ const selectItem = (item)=>{
171
+ onSelect(item);
172
+ setOpen(false);
173
+ };
174
+ return /*#__PURE__*/ jsxs(Popover, {
175
+ open: open,
176
+ onOpenChange: setOpen,
177
+ children: [
178
+ /*#__PURE__*/ jsx(PopoverTrigger, {
179
+ asChild: true,
180
+ disabled: disabled,
181
+ children: children ?? /*#__PURE__*/ jsxs("button", {
182
+ type: "button",
183
+ "aria-label": triggerAriaLabel,
184
+ className: "flex h-7 items-center gap-1 rounded-lg px-2 text-[11px] text-foreground-subtle transition hover:bg-surface-overlay hover:text-foreground disabled:pointer-events-none disabled:opacity-50",
185
+ children: [
186
+ /*#__PURE__*/ jsx(Braces, {
187
+ size: 12
188
+ }),
189
+ /*#__PURE__*/ jsx("span", {
190
+ children: triggerLabel
191
+ }),
192
+ /*#__PURE__*/ jsx(ChevronDown, {
193
+ size: 9
194
+ })
195
+ ]
196
+ })
197
+ }),
198
+ /*#__PURE__*/ jsx(PopoverContent, {
199
+ align: align,
200
+ className: cn('w-[280px] max-w-[calc(100vw-1rem)] overflow-hidden p-0', className),
201
+ children: /*#__PURE__*/ jsx(VariablePickerContent, {
202
+ ...contentProps,
203
+ onSelect: selectItem
204
+ })
205
+ })
206
+ ]
207
+ });
208
+ }
209
+ export { VariablePicker, VariablePickerContent };
package/dist/index.cjs CHANGED
@@ -33,230 +33,232 @@ var __webpack_require__ = {};
33
33
  var __webpack_exports__ = {};
34
34
  __webpack_require__.r(__webpack_exports__);
35
35
  __webpack_require__.d(__webpack_exports__, {
36
- autoSavePlugin: ()=>form_plugins_cjs_namespaceObject.autoSavePlugin,
37
36
  PaginationLink: ()=>pagination_cjs_namespaceObject.PaginationLink,
38
- ContextMenuCheckboxItem: ()=>context_menu_cjs_namespaceObject.ContextMenuCheckboxItem,
39
- AlertDialogContent: ()=>alert_dialog_cjs_namespaceObject.AlertDialogContent,
40
37
  DialogHeader: ()=>dialog_cjs_namespaceObject.DialogHeader,
41
- isCustomField: ()=>form_schema_cjs_namespaceObject.isCustomField,
38
+ AlertDialogContent: ()=>alert_dialog_cjs_namespaceObject.AlertDialogContent,
42
39
  Row: ()=>row_cjs_namespaceObject.Row,
43
40
  Combobox: ()=>combobox_cjs_namespaceObject.Combobox,
44
- TableCaption: ()=>table_cjs_namespaceObject.TableCaption,
45
41
  DropdownMenuSubContent: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuSubContent,
46
- SheetClose: ()=>sheet_cjs_namespaceObject.SheetClose,
47
42
  CommandEmpty: ()=>command_cjs_namespaceObject.CommandEmpty,
48
43
  Skeleton: ()=>skeleton_cjs_namespaceObject.Skeleton,
49
- AlertDialogOverlay: ()=>alert_dialog_cjs_namespaceObject.AlertDialogOverlay,
50
44
  FIELD_TYPE_ORDER: ()=>index_cjs_namespaceObject.FIELD_TYPE_ORDER,
51
- DropdownMenuSubTrigger: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuSubTrigger,
52
- ButtonGroupText: ()=>button_group_cjs_namespaceObject.ButtonGroupText,
53
- PaginationContent: ()=>pagination_cjs_namespaceObject.PaginationContent,
45
+ auditPlugin: ()=>form_plugins_cjs_namespaceObject.auditPlugin,
54
46
  ContextMenuLabel: ()=>context_menu_cjs_namespaceObject.ContextMenuLabel,
55
- SelectGroup: ()=>select_cjs_namespaceObject.SelectGroup,
56
- ContextMenuSeparator: ()=>context_menu_cjs_namespaceObject.ContextMenuSeparator,
57
- DropdownMenuContent: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuContent,
58
47
  ContextMenuSub: ()=>context_menu_cjs_namespaceObject.ContextMenuSub,
59
- LockableValueField: ()=>index_cjs_namespaceObject.LockableValueField,
60
48
  PopoverTrigger: ()=>popover_cjs_namespaceObject.PopoverTrigger,
61
- Separator: ()=>separator_cjs_namespaceObject.Separator,
49
+ toast: ()=>sonner_cjs_namespaceObject.toast,
62
50
  CardDescription: ()=>card_cjs_namespaceObject.CardDescription,
63
- ContextMenuContent: ()=>context_menu_cjs_namespaceObject.ContextMenuContent,
64
- Pagination: ()=>pagination_cjs_namespaceObject.Pagination,
65
51
  SheetFooter: ()=>sheet_cjs_namespaceObject.SheetFooter,
66
- TooltipTrigger: ()=>tooltip_cjs_namespaceObject.TooltipTrigger,
67
- TreeView: ()=>tree_view_cjs_default(),
68
52
  CommandSeparator: ()=>command_cjs_namespaceObject.CommandSeparator,
69
- FormFieldRenderer: ()=>field_renderer_cjs_namespaceObject.FormFieldRenderer,
70
- EditableCell: ()=>editable_cell_cjs_namespaceObject.EditableCell,
71
53
  PromptEditor: ()=>prompt_editor_index_cjs_namespaceObject.PromptEditor,
72
- ScrollableTabsList: ()=>tabs_cjs_namespaceObject.ScrollableTabsList,
73
54
  Spinner: ()=>spinner_cjs_namespaceObject.Spinner,
55
+ buttonVariants: ()=>button_cjs_namespaceObject.buttonVariants,
74
56
  SheetOverlay: ()=>sheet_cjs_namespaceObject.SheetOverlay,
75
57
  AlertDialogPortal: ()=>alert_dialog_cjs_namespaceObject.AlertDialogPortal,
76
- DropdownMenuGroup: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuGroup,
77
- TabsContent: ()=>tabs_cjs_namespaceObject.TabsContent,
78
58
  TabsList: ()=>tabs_cjs_namespaceObject.TabsList,
79
- ContextMenuItem: ()=>context_menu_cjs_namespaceObject.ContextMenuItem,
80
- TooltipContent: ()=>tooltip_cjs_namespaceObject.TooltipContent,
81
- auditPlugin: ()=>form_plugins_cjs_namespaceObject.auditPlugin,
82
59
  TableBody: ()=>table_cjs_namespaceObject.TableBody,
83
60
  AvatarImage: ()=>avatar_cjs_namespaceObject.AvatarImage,
84
61
  RuleBuilder: ()=>rules_engine_cjs_namespaceObject.RuleBuilder,
85
- buttonVariants: ()=>button_cjs_namespaceObject.buttonVariants,
62
+ toggleVariants: ()=>toggle_cjs_namespaceObject.toggleVariants,
86
63
  AlertDialogTitle: ()=>alert_dialog_cjs_namespaceObject.AlertDialogTitle,
87
64
  DataSourceBuilder: ()=>data_fetcher_cjs_namespaceObject.DataSourceBuilder,
88
- BreadcrumbEllipsis: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbEllipsis,
89
- BreadcrumbLink: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbLink,
90
65
  badgeVariants: ()=>badge_cjs_namespaceObject.badgeVariants,
91
66
  createEditableColumn: ()=>editable_cell_cjs_namespaceObject.createEditableColumn,
92
- toggleVariants: ()=>toggle_cjs_namespaceObject.toggleVariants,
93
- AccordionItem: ()=>accordion_cjs_namespaceObject.AccordionItem,
94
- DropdownMenuLabel: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuLabel,
67
+ SheetHeader: ()=>sheet_cjs_namespaceObject.SheetHeader,
95
68
  Column: ()=>column_cjs_namespaceObject.Column,
96
69
  AlertDialogTrigger: ()=>alert_dialog_cjs_namespaceObject.AlertDialogTrigger,
97
- SheetHeader: ()=>sheet_cjs_namespaceObject.SheetHeader,
98
- formattingPlugin: ()=>form_plugins_cjs_namespaceObject.formattingPlugin,
99
70
  CardContent: ()=>card_cjs_namespaceObject.CardContent,
100
- ContextMenuSubTrigger: ()=>context_menu_cjs_namespaceObject.ContextMenuSubTrigger,
101
- MetadataForm: ()=>metadata_form_cjs_namespaceObject.MetadataForm,
102
71
  SelectValue: ()=>select_cjs_namespaceObject.SelectValue,
103
- DialogFooter: ()=>dialog_cjs_namespaceObject.DialogFooter,
104
- Card: ()=>card_cjs_namespaceObject.Card,
72
+ Slider: ()=>slider_cjs_namespaceObject.Slider,
105
73
  ContextMenuSubContent: ()=>context_menu_cjs_namespaceObject.ContextMenuSubContent,
106
- DropdownMenuCheckboxItem: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuCheckboxItem,
107
74
  AvatarFallback: ()=>avatar_cjs_namespaceObject.AvatarFallback,
108
75
  ContextMenu: ()=>context_menu_cjs_namespaceObject.ContextMenu,
109
76
  BreadcrumbItem: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbItem,
110
- Sheet: ()=>sheet_cjs_namespaceObject.Sheet,
111
- Slider: ()=>slider_cjs_namespaceObject.Slider,
112
77
  AlertDialogFooter: ()=>alert_dialog_cjs_namespaceObject.AlertDialogFooter,
113
78
  SelectSeparator: ()=>select_cjs_namespaceObject.SelectSeparator,
114
79
  Select: ()=>select_cjs_namespaceObject.Select,
115
80
  Stepper: ()=>stepper_cjs_namespaceObject.Stepper,
116
81
  HoverCard: ()=>hover_card_cjs_namespaceObject.HoverCard,
117
82
  SelectScrollUpButton: ()=>select_cjs_namespaceObject.SelectScrollUpButton,
118
- AlertDialog: ()=>alert_dialog_cjs_namespaceObject.AlertDialog,
119
83
  CommandItem: ()=>command_cjs_namespaceObject.CommandItem,
120
84
  ResizablePanel: ()=>resizable_cjs_namespaceObject.ResizablePanel,
121
- EmptyState: ()=>empty_state_cjs_namespaceObject.EmptyState,
122
- ScrollArea: ()=>scroll_area_cjs_namespaceObject.ScrollArea,
85
+ TooltipProvider: ()=>tooltip_cjs_namespaceObject.TooltipProvider,
86
+ TableFooter: ()=>table_cjs_namespaceObject.TableFooter,
123
87
  Command: ()=>command_cjs_namespaceObject.Command,
124
- PaginationNext: ()=>pagination_cjs_namespaceObject.PaginationNext,
125
88
  Grid: ()=>grid_cjs_namespaceObject.Grid,
126
- Label: ()=>label_cjs_namespaceObject.Label,
127
89
  SheetTitle: ()=>sheet_cjs_namespaceObject.SheetTitle,
128
90
  AccordionContent: ()=>accordion_cjs_namespaceObject.AccordionContent,
91
+ DialogPortal: ()=>dialog_cjs_namespaceObject.DialogPortal,
92
+ DropdownMenuSub: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuSub,
93
+ SelectLabel: ()=>select_cjs_namespaceObject.SelectLabel,
94
+ CardTitle: ()=>card_cjs_namespaceObject.CardTitle,
95
+ ExpressionBuilder: ()=>rules_engine_cjs_namespaceObject.ExpressionBuilder,
96
+ Input: ()=>input_cjs_namespaceObject.Input,
97
+ TableHeader: ()=>table_cjs_namespaceObject.TableHeader,
98
+ Toaster: ()=>sonner_cjs_namespaceObject.Toaster,
99
+ DialogTitle: ()=>dialog_cjs_namespaceObject.DialogTitle,
100
+ Popover: ()=>popover_cjs_namespaceObject.Popover,
101
+ TableCell: ()=>table_cjs_namespaceObject.TableCell,
102
+ TooltipPortal: ()=>tooltip_cjs_namespaceObject.TooltipPortal,
103
+ Toggle: ()=>toggle_cjs_namespaceObject.Toggle,
104
+ Switch: ()=>switch_cjs_namespaceObject.Switch,
105
+ AlertDialogHeader: ()=>alert_dialog_cjs_namespaceObject.AlertDialogHeader,
106
+ AlertDialogAction: ()=>alert_dialog_cjs_namespaceObject.AlertDialogAction,
107
+ TableHead: ()=>table_cjs_namespaceObject.TableHead,
108
+ Tabs: ()=>tabs_cjs_namespaceObject.Tabs,
109
+ CollapsibleContent: ()=>collapsible_cjs_namespaceObject.CollapsibleContent,
110
+ DropdownMenuTrigger: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger,
111
+ ContextMenuTrigger: ()=>context_menu_cjs_namespaceObject.ContextMenuTrigger,
112
+ InputGroupText: ()=>input_group_cjs_namespaceObject.InputGroupText,
113
+ CommandGroup: ()=>command_cjs_namespaceObject.CommandGroup,
114
+ RulesEngine: ()=>rules_engine_cjs_namespaceObject.RulesEngine,
115
+ InputGroupButton: ()=>input_group_cjs_namespaceObject.InputGroupButton,
116
+ SelectScrollDownButton: ()=>select_cjs_namespaceObject.SelectScrollDownButton,
117
+ BreadcrumbList: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbList,
118
+ hasMinMaxStep: ()=>form_schema_cjs_namespaceObject.hasMinMaxStep,
119
+ SearchWithSuggestions: ()=>search_cjs_namespaceObject.SearchWithSuggestions,
120
+ Button: ()=>button_cjs_namespaceObject.Button,
121
+ DropdownMenuShortcut: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuShortcut,
122
+ FetchAdapter: ()=>data_fetcher_cjs_namespaceObject.FetchAdapter,
123
+ DataTableSelectColumn: ()=>data_table_cjs_namespaceObject.DataTableSelectColumn,
124
+ FormStateViewer: ()=>form_state_viewer_cjs_namespaceObject.FormStateViewer,
125
+ CollapsibleTrigger: ()=>collapsible_cjs_namespaceObject.CollapsibleTrigger,
126
+ RadioGroup: ()=>radio_group_cjs_namespaceObject.RadioGroup,
127
+ MultiSelect: ()=>multi_select_cjs_namespaceObject.MultiSelect,
128
+ AspectRatio: ()=>aspect_ratio_cjs_namespaceObject.AspectRatio,
129
+ Alert: ()=>alert_cjs_namespaceObject.Alert,
130
+ DropdownMenuRadioItem: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuRadioItem,
131
+ CommandDialog: ()=>command_cjs_namespaceObject.CommandDialog,
132
+ ResizableHandle: ()=>resizable_cjs_namespaceObject.ResizableHandle,
133
+ Accordion: ()=>accordion_cjs_namespaceObject.Accordion,
134
+ SheetContent: ()=>sheet_cjs_namespaceObject.SheetContent,
135
+ AlertDescription: ()=>alert_cjs_namespaceObject.AlertDescription,
136
+ ContextMenuRadioItem: ()=>context_menu_cjs_namespaceObject.ContextMenuRadioItem,
137
+ Dialog: ()=>dialog_cjs_namespaceObject.Dialog,
138
+ DatePicker: ()=>date_picker_cjs_namespaceObject.DatePicker,
139
+ RadioGroupItem: ()=>radio_group_cjs_namespaceObject.RadioGroupItem,
140
+ PopoverAnchor: ()=>popover_cjs_namespaceObject.PopoverAnchor,
141
+ ScrollBar: ()=>scroll_area_cjs_namespaceObject.ScrollBar,
142
+ ButtonGroupSeparator: ()=>button_group_cjs_namespaceObject.ButtonGroupSeparator,
143
+ DropdownMenuSeparator: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuSeparator,
144
+ PortalContainerProvider: ()=>portal_container_cjs_namespaceObject.PortalContainerProvider,
145
+ ResizablePanelGroup: ()=>resizable_cjs_namespaceObject.ResizablePanelGroup,
146
+ autoSavePlugin: ()=>form_plugins_cjs_namespaceObject.autoSavePlugin,
147
+ InputGroupInput: ()=>input_group_cjs_namespaceObject.InputGroupInput,
148
+ ContextMenuCheckboxItem: ()=>context_menu_cjs_namespaceObject.ContextMenuCheckboxItem,
149
+ isCustomField: ()=>form_schema_cjs_namespaceObject.isCustomField,
150
+ TreeView: ()=>tree_view_cjs_default(),
151
+ TableCaption: ()=>table_cjs_namespaceObject.TableCaption,
152
+ TooltipTrigger: ()=>tooltip_cjs_namespaceObject.TooltipTrigger,
153
+ SheetClose: ()=>sheet_cjs_namespaceObject.SheetClose,
154
+ AlertDialogOverlay: ()=>alert_dialog_cjs_namespaceObject.AlertDialogOverlay,
155
+ PaginationContent: ()=>pagination_cjs_namespaceObject.PaginationContent,
156
+ DropdownMenuSubTrigger: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuSubTrigger,
157
+ ButtonGroupText: ()=>button_group_cjs_namespaceObject.ButtonGroupText,
158
+ SelectGroup: ()=>select_cjs_namespaceObject.SelectGroup,
159
+ VariablePickerContent: ()=>variable_picker_index_cjs_namespaceObject.VariablePickerContent,
160
+ ContextMenuSeparator: ()=>context_menu_cjs_namespaceObject.ContextMenuSeparator,
161
+ DropdownMenuContent: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuContent,
162
+ LockableValueField: ()=>index_cjs_namespaceObject.LockableValueField,
163
+ Separator: ()=>separator_cjs_namespaceObject.Separator,
164
+ Pagination: ()=>pagination_cjs_namespaceObject.Pagination,
165
+ ContextMenuContent: ()=>context_menu_cjs_namespaceObject.ContextMenuContent,
166
+ FormFieldRenderer: ()=>field_renderer_cjs_namespaceObject.FormFieldRenderer,
167
+ EditableCell: ()=>editable_cell_cjs_namespaceObject.EditableCell,
168
+ ScrollableTabsList: ()=>tabs_cjs_namespaceObject.ScrollableTabsList,
169
+ TabsContent: ()=>tabs_cjs_namespaceObject.TabsContent,
170
+ TooltipContent: ()=>tooltip_cjs_namespaceObject.TooltipContent,
171
+ DropdownMenuGroup: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuGroup,
172
+ ContextMenuItem: ()=>context_menu_cjs_namespaceObject.ContextMenuItem,
173
+ BreadcrumbEllipsis: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbEllipsis,
174
+ BreadcrumbLink: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbLink,
175
+ AccordionItem: ()=>accordion_cjs_namespaceObject.AccordionItem,
176
+ DropdownMenuLabel: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuLabel,
177
+ formattingPlugin: ()=>form_plugins_cjs_namespaceObject.formattingPlugin,
178
+ ContextMenuSubTrigger: ()=>context_menu_cjs_namespaceObject.ContextMenuSubTrigger,
179
+ MetadataForm: ()=>metadata_form_cjs_namespaceObject.MetadataForm,
180
+ DialogFooter: ()=>dialog_cjs_namespaceObject.DialogFooter,
181
+ Card: ()=>card_cjs_namespaceObject.Card,
182
+ DropdownMenuCheckboxItem: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuCheckboxItem,
183
+ Sheet: ()=>sheet_cjs_namespaceObject.Sheet,
184
+ cn: ()=>utils_cjs_namespaceObject.cn,
185
+ AlertDialog: ()=>alert_dialog_cjs_namespaceObject.AlertDialog,
186
+ EmptyState: ()=>empty_state_cjs_namespaceObject.EmptyState,
187
+ ScrollArea: ()=>scroll_area_cjs_namespaceObject.ScrollArea,
188
+ PaginationNext: ()=>pagination_cjs_namespaceObject.PaginationNext,
189
+ Label: ()=>label_cjs_namespaceObject.Label,
129
190
  Checkbox: ()=>checkbox_cjs_namespaceObject.Checkbox,
130
191
  DropdownMenuItem: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuItem,
131
192
  ContextMenuGroup: ()=>context_menu_cjs_namespaceObject.ContextMenuGroup,
132
- TableFooter: ()=>table_cjs_namespaceObject.TableFooter,
133
- TooltipProvider: ()=>tooltip_cjs_namespaceObject.TooltipProvider,
134
- DataFetcher: ()=>data_fetcher_cjs_namespaceObject.DataFetcher,
135
- DialogPortal: ()=>dialog_cjs_namespaceObject.DialogPortal,
136
193
  VARIABLE_DRAG_MIME: ()=>prompt_editor_index_cjs_namespaceObject.VARIABLE_DRAG_MIME,
137
194
  analyticsPlugin: ()=>form_plugins_cjs_namespaceObject.analyticsPlugin,
138
- cn: ()=>utils_cjs_namespaceObject.cn,
139
- DropdownMenuSub: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuSub,
195
+ DataFetcher: ()=>data_fetcher_cjs_namespaceObject.DataFetcher,
140
196
  ButtonGroup: ()=>button_group_cjs_namespaceObject.ButtonGroup,
141
197
  PopoverContent: ()=>popover_cjs_namespaceObject.PopoverContent,
142
198
  DialogOverlay: ()=>dialog_cjs_namespaceObject.DialogOverlay,
143
- SelectLabel: ()=>select_cjs_namespaceObject.SelectLabel,
144
- CardTitle: ()=>card_cjs_namespaceObject.CardTitle,
199
+ VariablePicker: ()=>variable_picker_index_cjs_namespaceObject.VariablePicker,
145
200
  CardFooter: ()=>card_cjs_namespaceObject.CardFooter,
201
+ StatsCard: ()=>stats_card_cjs_namespaceObject.StatsCard,
146
202
  Avatar: ()=>avatar_cjs_namespaceObject.Avatar,
147
- ExpressionBuilder: ()=>rules_engine_cjs_namespaceObject.ExpressionBuilder,
148
203
  BreadcrumbSeparator: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbSeparator,
149
204
  DataTable: ()=>data_table_cjs_namespaceObject.DataTable,
150
- Input: ()=>input_cjs_namespaceObject.Input,
151
205
  PaginationItem: ()=>pagination_cjs_namespaceObject.PaginationItem,
152
- Calendar: ()=>calendar_cjs_namespaceObject.Calendar,
153
- DialogTitle: ()=>dialog_cjs_namespaceObject.DialogTitle,
154
206
  SheetTrigger: ()=>sheet_cjs_namespaceObject.SheetTrigger,
207
+ TabsTrigger: ()=>tabs_cjs_namespaceObject.TabsTrigger,
208
+ Calendar: ()=>calendar_cjs_namespaceObject.Calendar,
209
+ Tooltip: ()=>tooltip_cjs_namespaceObject.Tooltip,
155
210
  InputGroupAddon: ()=>input_group_cjs_namespaceObject.InputGroupAddon,
156
- StatsCard: ()=>stats_card_cjs_namespaceObject.StatsCard,
157
- Popover: ()=>popover_cjs_namespaceObject.Popover,
158
211
  AlertTitle: ()=>alert_cjs_namespaceObject.AlertTitle,
159
- TableHeader: ()=>table_cjs_namespaceObject.TableHeader,
160
212
  Collapsible: ()=>collapsible_cjs_namespaceObject.Collapsible,
161
- TableCell: ()=>table_cjs_namespaceObject.TableCell,
162
- TabsTrigger: ()=>tabs_cjs_namespaceObject.TabsTrigger,
163
213
  DateTimePicker: ()=>datetime_picker_cjs_namespaceObject.DateTimePicker,
164
- Toaster: ()=>sonner_cjs_namespaceObject.Toaster,
165
- Toggle: ()=>toggle_cjs_namespaceObject.Toggle,
166
- Switch: ()=>switch_cjs_namespaceObject.Switch,
167
214
  PaginationEllipsis: ()=>pagination_cjs_namespaceObject.PaginationEllipsis,
168
215
  DialogDescription: ()=>dialog_cjs_namespaceObject.DialogDescription,
169
- Tooltip: ()=>tooltip_cjs_namespaceObject.Tooltip,
170
- TooltipPortal: ()=>tooltip_cjs_namespaceObject.TooltipPortal,
171
- AlertDialogHeader: ()=>alert_dialog_cjs_namespaceObject.AlertDialogHeader,
172
216
  CommandShortcut: ()=>command_cjs_namespaceObject.CommandShortcut,
173
217
  Textarea: ()=>textarea_cjs_namespaceObject.Textarea,
174
- AlertDialogAction: ()=>alert_dialog_cjs_namespaceObject.AlertDialogAction,
175
218
  SelectItem: ()=>select_cjs_namespaceObject.SelectItem,
176
- TableHead: ()=>table_cjs_namespaceObject.TableHead,
177
- Tabs: ()=>tabs_cjs_namespaceObject.Tabs,
178
219
  DialogClose: ()=>dialog_cjs_namespaceObject.DialogClose,
179
220
  Badge: ()=>badge_cjs_namespaceObject.Badge,
180
- CollapsibleContent: ()=>collapsible_cjs_namespaceObject.CollapsibleContent,
181
- DropdownMenuTrigger: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuTrigger,
182
221
  SheetDescription: ()=>sheet_cjs_namespaceObject.SheetDescription,
183
- hasOptions: ()=>form_schema_cjs_namespaceObject.hasOptions,
184
222
  validationPlugin: ()=>form_plugins_cjs_namespaceObject.validationPlugin,
185
- ContextMenuTrigger: ()=>context_menu_cjs_namespaceObject.ContextMenuTrigger,
223
+ hasOptions: ()=>form_schema_cjs_namespaceObject.hasOptions,
186
224
  Table: ()=>table_cjs_namespaceObject.Table,
187
- InputGroupText: ()=>input_group_cjs_namespaceObject.InputGroupText,
188
- CommandGroup: ()=>command_cjs_namespaceObject.CommandGroup,
189
225
  BreadcrumbPage: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbPage,
190
- RulesEngine: ()=>rules_engine_cjs_namespaceObject.RulesEngine,
191
226
  ToggleGroupItem: ()=>toggle_group_cjs_namespaceObject.ToggleGroupItem,
192
227
  ContextMenuPortal: ()=>context_menu_cjs_namespaceObject.ContextMenuPortal,
193
- InputGroupButton: ()=>input_group_cjs_namespaceObject.InputGroupButton,
194
- ContextMenuRadioGroup: ()=>context_menu_cjs_namespaceObject.ContextMenuRadioGroup,
195
228
  SelectContent: ()=>select_cjs_namespaceObject.SelectContent,
229
+ ContextMenuRadioGroup: ()=>context_menu_cjs_namespaceObject.ContextMenuRadioGroup,
196
230
  InputGroup: ()=>input_group_cjs_namespaceObject.InputGroup,
197
231
  CommandList: ()=>command_cjs_namespaceObject.CommandList,
198
- BreadcrumbList: ()=>breadcrumb_cjs_namespaceObject.BreadcrumbList,
199
232
  AccordionTrigger: ()=>accordion_cjs_namespaceObject.AccordionTrigger,
233
+ workflowPlugin: ()=>form_plugins_cjs_namespaceObject.workflowPlugin,
200
234
  PaginationPrevious: ()=>pagination_cjs_namespaceObject.PaginationPrevious,
201
- SearchWithSuggestions: ()=>search_cjs_namespaceObject.SearchWithSuggestions,
202
- SelectScrollDownButton: ()=>select_cjs_namespaceObject.SelectScrollDownButton,
203
235
  SheetPortal: ()=>sheet_cjs_namespaceObject.SheetPortal,
204
- hasMinMaxStep: ()=>form_schema_cjs_namespaceObject.hasMinMaxStep,
205
236
  isFileField: ()=>form_schema_cjs_namespaceObject.isFileField,
206
- toast: ()=>sonner_cjs_namespaceObject.toast,
207
- workflowPlugin: ()=>form_plugins_cjs_namespaceObject.workflowPlugin,
208
237
  AlertDialogDescription: ()=>alert_dialog_cjs_namespaceObject.AlertDialogDescription,
209
238
  CommandInput: ()=>command_cjs_namespaceObject.CommandInput,
210
- Button: ()=>button_cjs_namespaceObject.Button,
211
- DropdownMenuShortcut: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuShortcut,
212
- FetchAdapter: ()=>data_fetcher_cjs_namespaceObject.FetchAdapter,
213
- DataTableSelectColumn: ()=>data_table_cjs_namespaceObject.DataTableSelectColumn,
214
239
  DropdownMenu: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenu,
215
- CollapsibleTrigger: ()=>collapsible_cjs_namespaceObject.CollapsibleTrigger,
216
- FormStateViewer: ()=>form_state_viewer_cjs_namespaceObject.FormStateViewer,
217
- RadioGroup: ()=>radio_group_cjs_namespaceObject.RadioGroup,
218
- MultiSelect: ()=>multi_select_cjs_namespaceObject.MultiSelect,
219
- AspectRatio: ()=>aspect_ratio_cjs_namespaceObject.AspectRatio,
240
+ Progress: ()=>progress_cjs_namespaceObject.Progress,
220
241
  DataTableColumnHeader: ()=>data_table_cjs_namespaceObject.DataTableColumnHeader,
221
242
  FormDesigner: ()=>form_designer_cjs_namespaceObject.FormDesigner,
222
- Alert: ()=>alert_cjs_namespaceObject.Alert,
223
243
  DialogContent: ()=>dialog_cjs_namespaceObject.DialogContent,
224
- CommandDialog: ()=>command_cjs_namespaceObject.CommandDialog,
225
244
  DialogTrigger: ()=>dialog_cjs_namespaceObject.DialogTrigger,
226
245
  DropdownMenuRadioGroup: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuRadioGroup,
227
- Accordion: ()=>accordion_cjs_namespaceObject.Accordion,
228
- DropdownMenuRadioItem: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuRadioItem,
229
- Progress: ()=>progress_cjs_namespaceObject.Progress,
230
- ResizableHandle: ()=>resizable_cjs_namespaceObject.ResizableHandle,
246
+ TableRow: ()=>table_cjs_namespaceObject.TableRow,
247
+ ToggleGroup: ()=>toggle_group_cjs_namespaceObject.ToggleGroup,
248
+ Search: ()=>search_cjs_namespaceObject.Search,
231
249
  AlertDialogCancel: ()=>alert_dialog_cjs_namespaceObject.AlertDialogCancel,
232
250
  InputGroupTextarea: ()=>input_group_cjs_namespaceObject.InputGroupTextarea,
233
- Search: ()=>search_cjs_namespaceObject.Search,
234
- SheetContent: ()=>sheet_cjs_namespaceObject.SheetContent,
235
- AlertDescription: ()=>alert_cjs_namespaceObject.AlertDescription,
236
- TableRow: ()=>table_cjs_namespaceObject.TableRow,
237
- ContextMenuRadioItem: ()=>context_menu_cjs_namespaceObject.ContextMenuRadioItem,
238
- Dialog: ()=>dialog_cjs_namespaceObject.Dialog,
239
- DatePicker: ()=>date_picker_cjs_namespaceObject.DatePicker,
251
+ spinnerVariants: ()=>spinner_cjs_namespaceObject.spinnerVariants,
240
252
  SelectTrigger: ()=>select_cjs_namespaceObject.SelectTrigger,
241
253
  FIELD_TYPE_META: ()=>index_cjs_namespaceObject.FIELD_TYPE_META,
242
- ToggleGroup: ()=>toggle_group_cjs_namespaceObject.ToggleGroup,
243
254
  DataTransformers: ()=>data_fetcher_cjs_namespaceObject.DataTransformers,
244
- RadioGroupItem: ()=>radio_group_cjs_namespaceObject.RadioGroupItem,
245
- spinnerVariants: ()=>spinner_cjs_namespaceObject.spinnerVariants,
246
- PopoverAnchor: ()=>popover_cjs_namespaceObject.PopoverAnchor,
247
255
  DropdownMenuPortal: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuPortal,
248
- ButtonGroupSeparator: ()=>button_group_cjs_namespaceObject.ButtonGroupSeparator,
249
- DropdownMenuSeparator: ()=>dropdown_menu_cjs_namespaceObject.DropdownMenuSeparator,
256
+ HoverCardTrigger: ()=>hover_card_cjs_namespaceObject.HoverCardTrigger,
250
257
  Breadcrumb: ()=>breadcrumb_cjs_namespaceObject.Breadcrumb,
251
258
  ContextMenuShortcut: ()=>context_menu_cjs_namespaceObject.ContextMenuShortcut,
252
- HoverCardTrigger: ()=>hover_card_cjs_namespaceObject.HoverCardTrigger,
253
- PortalContainerProvider: ()=>portal_container_cjs_namespaceObject.PortalContainerProvider,
254
259
  CardHeader: ()=>card_cjs_namespaceObject.CardHeader,
255
260
  HoverCardContent: ()=>hover_card_cjs_namespaceObject.HoverCardContent,
256
- ResizablePanelGroup: ()=>resizable_cjs_namespaceObject.ResizablePanelGroup,
257
- FileUpload: ()=>file_upload_cjs_namespaceObject.FileUpload,
258
- InputGroupInput: ()=>input_group_cjs_namespaceObject.InputGroupInput,
259
- ScrollBar: ()=>scroll_area_cjs_namespaceObject.ScrollBar
261
+ FileUpload: ()=>file_upload_cjs_namespaceObject.FileUpload
260
262
  });
261
263
  const utils_cjs_namespaceObject = require("./lib/utils.cjs");
262
264
  const row_cjs_namespaceObject = require("./components/ui/layout/row.cjs");
@@ -278,6 +280,7 @@ const slider_cjs_namespaceObject = require("./components/ui/slider.cjs");
278
280
  const select_cjs_namespaceObject = require("./components/ui/select.cjs");
279
281
  const combobox_cjs_namespaceObject = require("./components/ui/combobox.cjs");
280
282
  const multi_select_cjs_namespaceObject = require("./components/ui/multi-select.cjs");
283
+ const variable_picker_index_cjs_namespaceObject = require("./components/ui/variable-picker/index.cjs");
281
284
  const search_cjs_namespaceObject = require("./components/ui/search.cjs");
282
285
  const calendar_cjs_namespaceObject = require("./components/ui/calendar.cjs");
283
286
  const date_picker_cjs_namespaceObject = require("./components/ui/date-picker.cjs");
@@ -534,6 +537,8 @@ exports.TooltipProvider = __webpack_exports__.TooltipProvider;
534
537
  exports.TooltipTrigger = __webpack_exports__.TooltipTrigger;
535
538
  exports.TreeView = __webpack_exports__.TreeView;
536
539
  exports.VARIABLE_DRAG_MIME = __webpack_exports__.VARIABLE_DRAG_MIME;
540
+ exports.VariablePicker = __webpack_exports__.VariablePicker;
541
+ exports.VariablePickerContent = __webpack_exports__.VariablePickerContent;
537
542
  exports.analyticsPlugin = __webpack_exports__.analyticsPlugin;
538
543
  exports.auditPlugin = __webpack_exports__.auditPlugin;
539
544
  exports.autoSavePlugin = __webpack_exports__.autoSavePlugin;
@@ -759,6 +764,8 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
759
764
  "TooltipTrigger",
760
765
  "TreeView",
761
766
  "VARIABLE_DRAG_MIME",
767
+ "VariablePicker",
768
+ "VariablePickerContent",
762
769
  "analyticsPlugin",
763
770
  "auditPlugin",
764
771
  "autoSavePlugin",
package/dist/index.d.ts CHANGED
@@ -29,6 +29,8 @@ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScro
29
29
  export { Combobox } from './components/ui/combobox';
30
30
  export { MultiSelect } from './components/ui/multi-select';
31
31
  export type { MultiSelectProps } from './components/ui/multi-select';
32
+ export { VariablePicker, VariablePickerContent } from './components/ui/variable-picker';
33
+ export type { VariablePickerContentProps, VariablePickerItem, VariablePickerProps, } from './components/ui/variable-picker';
32
34
  export { Search, SearchWithSuggestions } from './components/ui/search';
33
35
  export type { SearchProps, SearchWithSuggestionsProps, } from './components/ui/search';
34
36
  export { Calendar } from './components/ui/calendar';