@uipath/apollo-react 6.30.2 → 6.30.3
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/canvas/controls/NodeOutputModeSelect/NodeOutputModeSelect.cjs +22 -4
- package/dist/canvas/controls/NodeOutputModeSelect/NodeOutputModeSelect.d.ts +2 -1
- package/dist/canvas/controls/NodeOutputModeSelect/NodeOutputModeSelect.d.ts.map +1 -1
- package/dist/canvas/controls/NodeOutputModeSelect/NodeOutputModeSelect.js +23 -5
- package/dist/canvas/controls/NodeOutputModeSelect/index.d.ts +1 -1
- package/dist/canvas/controls/NodeOutputModeSelect/index.d.ts.map +1 -1
- package/dist/canvas/controls/index.d.ts +1 -1
- package/dist/canvas/controls/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -33,6 +33,21 @@ const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
|
33
33
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
34
34
|
const external_react_namespaceObject = require("react");
|
|
35
35
|
const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
|
|
36
|
+
const icon_registry_cjs_namespaceObject = require("../../utils/icon-registry.cjs");
|
|
37
|
+
function ModeIcon({ icon, size, className }) {
|
|
38
|
+
if ('string' == typeof icon) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
39
|
+
className: (0, apollo_wind_namespaceObject.cn)('inline-flex', className),
|
|
40
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
41
|
+
icon: icon,
|
|
42
|
+
size: size
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
const Icon = icon;
|
|
46
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Icon, {
|
|
47
|
+
size: size,
|
|
48
|
+
className: className
|
|
49
|
+
});
|
|
50
|
+
}
|
|
36
51
|
const MODE_DEFS = [
|
|
37
52
|
{
|
|
38
53
|
value: 'live',
|
|
@@ -60,7 +75,7 @@ const MODE_DEFS = [
|
|
|
60
75
|
},
|
|
61
76
|
{
|
|
62
77
|
value: 'simulated',
|
|
63
|
-
icon:
|
|
78
|
+
icon: 'file-sparkles-corner',
|
|
64
79
|
label: {
|
|
65
80
|
id: 'canvas.node_mode_select.simulated_label',
|
|
66
81
|
message: 'Simulated'
|
|
@@ -110,8 +125,10 @@ function NodeOutputModeSelect({ value, onChange, options, disabled = false, clas
|
|
|
110
125
|
}),
|
|
111
126
|
className: (0, apollo_wind_namespaceObject.cn)('min-w-12 gap-1.5 rounded-full border border-border px-2 text-[11px] font-medium text-foreground-muted hover:bg-surface-overlay hover:text-foreground [&_svg]:size-2.5', className),
|
|
112
127
|
children: [
|
|
113
|
-
CurrentIcon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
114
|
-
|
|
128
|
+
CurrentIcon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ModeIcon, {
|
|
129
|
+
icon: CurrentIcon,
|
|
130
|
+
className: "text-foreground-subtle",
|
|
131
|
+
size: 10
|
|
115
132
|
}),
|
|
116
133
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
117
134
|
className: "min-w-0 flex-1 truncate shrink-0",
|
|
@@ -134,7 +151,8 @@ function NodeOutputModeSelect({ value, onChange, options, disabled = false, clas
|
|
|
134
151
|
value: option.value,
|
|
135
152
|
className: (0, apollo_wind_namespaceObject.cn)('group flex items-center gap-2 [&>span:first-child]:text-foreground-accent', selectedValue === option.value && 'text-foreground'),
|
|
136
153
|
children: [
|
|
137
|
-
Icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
154
|
+
Icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ModeIcon, {
|
|
155
|
+
icon: Icon,
|
|
138
156
|
size: 13,
|
|
139
157
|
className: "shrink-0 text-foreground-subtle"
|
|
140
158
|
}),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { LucideIcon } from 'lucide-react';
|
|
2
|
+
export type NodeOutputModeIcon = LucideIcon | string;
|
|
2
3
|
export interface NodeOutputModeOption {
|
|
3
4
|
value: string;
|
|
4
5
|
label: string;
|
|
5
6
|
description?: string;
|
|
6
|
-
icon?:
|
|
7
|
+
icon?: NodeOutputModeIcon;
|
|
7
8
|
}
|
|
8
9
|
export declare const DEFAULT_NODE_OUTPUT_MODES: NodeOutputModeOption[];
|
|
9
10
|
export declare function useDefaultNodeOutputModes(): NodeOutputModeOption[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeOutputModeSelect.d.ts","sourceRoot":"","sources":["../../../../src/canvas/controls/NodeOutputModeSelect/NodeOutputModeSelect.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"NodeOutputModeSelect.d.ts","sourceRoot":"","sources":["../../../../src/canvas/controls/NodeOutputModeSelect/NodeOutputModeSelect.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAgB/C,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAqED,eAAO,MAAM,yBAAyB,EAAE,oBAAoB,EAKzD,CAAC;AAGJ,wBAAgB,yBAAyB,IAAI,oBAAoB,EAAE,CAYlE;AAED,MAAM,WAAW,yBAAyB;IAExC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAgB,EAChB,SAAS,GACV,EAAE,yBAAyB,2CAoE3B"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, DropdownMenu, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuTrigger, cn } from "@uipath/apollo-wind";
|
|
3
|
-
import { ChevronDown, CircleDot, FileBracesCorner
|
|
3
|
+
import { ChevronDown, CircleDot, FileBracesCorner } from "lucide-react";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
import { useSafeLingui } from "../../../i18n/index.js";
|
|
6
|
+
import { CanvasIcon } from "../../utils/icon-registry.js";
|
|
7
|
+
function ModeIcon({ icon, size, className }) {
|
|
8
|
+
if ('string' == typeof icon) return /*#__PURE__*/ jsx("span", {
|
|
9
|
+
className: cn('inline-flex', className),
|
|
10
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
11
|
+
icon: icon,
|
|
12
|
+
size: size
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
const Icon = icon;
|
|
16
|
+
return /*#__PURE__*/ jsx(Icon, {
|
|
17
|
+
size: size,
|
|
18
|
+
className: className
|
|
19
|
+
});
|
|
20
|
+
}
|
|
6
21
|
const MODE_DEFS = [
|
|
7
22
|
{
|
|
8
23
|
value: 'live',
|
|
@@ -30,7 +45,7 @@ const MODE_DEFS = [
|
|
|
30
45
|
},
|
|
31
46
|
{
|
|
32
47
|
value: 'simulated',
|
|
33
|
-
icon:
|
|
48
|
+
icon: 'file-sparkles-corner',
|
|
34
49
|
label: {
|
|
35
50
|
id: 'canvas.node_mode_select.simulated_label',
|
|
36
51
|
message: 'Simulated'
|
|
@@ -80,8 +95,10 @@ function NodeOutputModeSelect({ value, onChange, options, disabled = false, clas
|
|
|
80
95
|
}),
|
|
81
96
|
className: cn('min-w-12 gap-1.5 rounded-full border border-border px-2 text-[11px] font-medium text-foreground-muted hover:bg-surface-overlay hover:text-foreground [&_svg]:size-2.5', className),
|
|
82
97
|
children: [
|
|
83
|
-
CurrentIcon && /*#__PURE__*/ jsx(
|
|
84
|
-
|
|
98
|
+
CurrentIcon && /*#__PURE__*/ jsx(ModeIcon, {
|
|
99
|
+
icon: CurrentIcon,
|
|
100
|
+
className: "text-foreground-subtle",
|
|
101
|
+
size: 10
|
|
85
102
|
}),
|
|
86
103
|
/*#__PURE__*/ jsx("span", {
|
|
87
104
|
className: "min-w-0 flex-1 truncate shrink-0",
|
|
@@ -104,7 +121,8 @@ function NodeOutputModeSelect({ value, onChange, options, disabled = false, clas
|
|
|
104
121
|
value: option.value,
|
|
105
122
|
className: cn('group flex items-center gap-2 [&>span:first-child]:text-foreground-accent', selectedValue === option.value && 'text-foreground'),
|
|
106
123
|
children: [
|
|
107
|
-
Icon && /*#__PURE__*/ jsx(
|
|
124
|
+
Icon && /*#__PURE__*/ jsx(ModeIcon, {
|
|
125
|
+
icon: Icon,
|
|
108
126
|
size: 13,
|
|
109
127
|
className: "shrink-0 text-foreground-subtle"
|
|
110
128
|
}),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DEFAULT_NODE_OUTPUT_MODES, type NodeOutputModeOption, NodeOutputModeSelect, type NodeOutputModeSelectProps, useDefaultNodeOutputModes, } from './NodeOutputModeSelect';
|
|
1
|
+
export { DEFAULT_NODE_OUTPUT_MODES, type NodeOutputModeIcon, type NodeOutputModeOption, NodeOutputModeSelect, type NodeOutputModeSelectProps, useDefaultNodeOutputModes, } from './NodeOutputModeSelect';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/controls/NodeOutputModeSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/controls/NodeOutputModeSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Breadcrumb } from './Breadcrumb';
|
|
2
|
-
export { DEFAULT_NODE_OUTPUT_MODES, type NodeOutputModeOption, NodeOutputModeSelect, type NodeOutputModeSelectProps, useDefaultNodeOutputModes, } from './NodeOutputModeSelect';
|
|
2
|
+
export { DEFAULT_NODE_OUTPUT_MODES, type NodeOutputModeIcon, type NodeOutputModeOption, NodeOutputModeSelect, type NodeOutputModeSelectProps, useDefaultNodeOutputModes, } from './NodeOutputModeSelect';
|
|
3
3
|
export { NodePropertyTrigger, NodePropertyTriggerCheckboxItem, NodePropertyTriggerRadioItem, NodePropertyTriggerSectionLabel, NodePropertyTriggerSeparator, } from './NodePropertyTrigger';
|
|
4
4
|
export type { NodePropertyTriggerProps, NodePropertyTriggerItem, NodePropertyTriggerBehavior, NodePropertyTriggerBehaviorOption, NodePropertyTriggerCheckboxItemProps, NodePropertyTriggerLayout, NodePropertyTriggerLayoutOption, NodePropertyTriggerPreset, } from './NodePropertyTrigger';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/canvas/controls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,yBAAyB,EACzB,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,EACjC,oCAAoC,EACpC,yBAAyB,EACzB,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/canvas/controls/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,wBAAwB,EACxB,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,EACjC,oCAAoC,EACpC,yBAAyB,EACzB,+BAA+B,EAC/B,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "6.30.
|
|
3
|
+
"version": "6.30.3",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -221,8 +221,8 @@
|
|
|
221
221
|
"zod": "^4.3.5",
|
|
222
222
|
"zustand": "^5.0.9",
|
|
223
223
|
"@uipath/apollo-core": "5.13.0",
|
|
224
|
-
"@uipath/apollo-
|
|
225
|
-
"@uipath/apollo-
|
|
224
|
+
"@uipath/apollo-ui-icons": "1.0.0",
|
|
225
|
+
"@uipath/apollo-wind": "2.36.0"
|
|
226
226
|
},
|
|
227
227
|
"devDependencies": {
|
|
228
228
|
"@lingui/cli": "^5.6.1",
|