@uipath/apollo-react 4.6.2 → 4.7.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/canvas/components/AddNodePanel/AddNodeManager.cjs +1 -1
- package/dist/canvas/components/AddNodePanel/AddNodeManager.js +2 -2
- package/dist/canvas/components/BaseNode/BaseNode.cjs +74 -75
- package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.js +69 -70
- package/dist/canvas/components/BaseNode/BaseNodeBadgeSlot.cjs +68 -0
- package/dist/canvas/components/BaseNode/BaseNodeBadgeSlot.d.ts +9 -0
- package/dist/canvas/components/BaseNode/BaseNodeBadgeSlot.d.ts.map +1 -0
- package/dist/canvas/components/BaseNode/BaseNodeBadgeSlot.js +34 -0
- package/dist/canvas/components/BaseNode/BaseNodeConfigContext.d.ts +2 -1
- package/dist/canvas/components/BaseNode/BaseNodeConfigContext.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNodeContainer.cjs +88 -0
- package/dist/canvas/components/BaseNode/BaseNodeContainer.d.ts +21 -0
- package/dist/canvas/components/BaseNode/BaseNodeContainer.d.ts.map +1 -0
- package/dist/canvas/components/BaseNode/BaseNodeContainer.js +51 -0
- package/dist/canvas/components/BaseNode/BaseNodeInnerShape.cjs +49 -0
- package/dist/canvas/components/BaseNode/BaseNodeInnerShape.d.ts +9 -0
- package/dist/canvas/components/BaseNode/BaseNodeInnerShape.d.ts.map +1 -0
- package/dist/canvas/components/BaseNode/BaseNodeInnerShape.js +15 -0
- package/dist/canvas/components/BaseNode/BaseNodeMissingManifest.cjs +62 -0
- package/dist/canvas/components/BaseNode/BaseNodeMissingManifest.d.ts +9 -0
- package/dist/canvas/components/BaseNode/BaseNodeMissingManifest.d.ts.map +1 -0
- package/dist/canvas/components/BaseNode/BaseNodeMissingManifest.js +28 -0
- package/dist/canvas/components/BaseNode/NodeLabel.cjs +64 -18
- package/dist/canvas/components/BaseNode/NodeLabel.d.ts +8 -1
- package/dist/canvas/components/BaseNode/NodeLabel.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/NodeLabel.js +58 -15
- package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.cjs +4 -7
- package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.js +4 -7
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.cjs +4 -4
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.js +4 -4
- package/dist/canvas/components/NodeInspector.cjs +3 -2
- package/dist/canvas/components/NodeInspector.d.ts.map +1 -1
- package/dist/canvas/components/NodeInspector.js +3 -2
- package/dist/canvas/components/Toolbox/Toolbox.cjs +6 -5
- package/dist/canvas/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/Toolbox.js +6 -5
- package/dist/canvas/constants.cjs +86 -2
- package/dist/canvas/constants.d.ts +21 -0
- package/dist/canvas/constants.d.ts.map +1 -1
- package/dist/canvas/constants.js +22 -1
- package/dist/canvas/index.cjs +39 -35
- package/dist/canvas/index.d.ts +1 -0
- package/dist/canvas/index.d.ts.map +1 -1
- package/dist/canvas/index.js +1 -0
- package/dist/canvas/storybook-utils/manifests/node-definitions.d.ts.map +1 -1
- package/dist/canvas/styles/reactflow-reset.css +12 -0
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/package.json +4 -4
- package/dist/canvas/components/BaseNode/BaseNode.styles.cjs +0 -410
- package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts +0 -75
- package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts.map +0 -1
- package/dist/canvas/components/BaseNode/BaseNode.styles.js +0 -342
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"lodash": "^4.18.1",
|
|
185
185
|
"lucide-react": "^0.555.0",
|
|
186
186
|
"luxon": "^3.7.1",
|
|
187
|
-
"mermaid": "^11.
|
|
187
|
+
"mermaid": "^11.14.0",
|
|
188
188
|
"motion": "^12.23.12",
|
|
189
189
|
"react-dropzone": "^14.3.8",
|
|
190
190
|
"react-focus-lock": "^2.13.7",
|
|
@@ -202,10 +202,9 @@
|
|
|
202
202
|
"zod": "^4.3.5",
|
|
203
203
|
"zustand": "^5.0.9",
|
|
204
204
|
"@uipath/apollo-core": "5.9.0",
|
|
205
|
-
"@uipath/apollo-wind": "2.
|
|
205
|
+
"@uipath/apollo-wind": "2.4.0"
|
|
206
206
|
},
|
|
207
207
|
"devDependencies": {
|
|
208
|
-
"@tailwindcss/cli": "^4.1.17",
|
|
209
208
|
"@lingui/cli": "^5.6.1",
|
|
210
209
|
"@lingui/conf": "^5.6.1",
|
|
211
210
|
"@lingui/format-json": "^5.6.1",
|
|
@@ -218,6 +217,7 @@
|
|
|
218
217
|
"@storybook/react": "^10.2.15",
|
|
219
218
|
"@storybook/react-vite": "^10.2.15",
|
|
220
219
|
"@svgr/webpack": "^8.1.0",
|
|
220
|
+
"@tailwindcss/cli": "^4.1.17",
|
|
221
221
|
"@testing-library/jest-dom": "^6.9.1",
|
|
222
222
|
"@testing-library/react": "^16.3.0",
|
|
223
223
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.n = (module)=>{
|
|
5
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
-
__webpack_require__.d(getter, {
|
|
7
|
-
a: getter
|
|
8
|
-
});
|
|
9
|
-
return getter;
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
(()=>{
|
|
13
|
-
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: definition[key]
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
(()=>{
|
|
21
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
-
})();
|
|
23
|
-
(()=>{
|
|
24
|
-
__webpack_require__.r = (exports1)=>{
|
|
25
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
-
value: 'Module'
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
-
value: true
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
})();
|
|
33
|
-
var __webpack_exports__ = {};
|
|
34
|
-
__webpack_require__.r(__webpack_exports__);
|
|
35
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
-
BaseIconWrapper: ()=>BaseIconWrapper,
|
|
37
|
-
BaseContainer: ()=>BaseContainer,
|
|
38
|
-
BaseTextContainer: ()=>BaseTextContainer,
|
|
39
|
-
BaseBadgeSlot: ()=>BaseBadgeSlot,
|
|
40
|
-
EditableLabel: ()=>EditableLabel,
|
|
41
|
-
BaseSubHeader: ()=>BaseSubHeader,
|
|
42
|
-
EmptyLabelPlaceholder: ()=>EmptyLabelPlaceholder,
|
|
43
|
-
BaseHeader: ()=>BaseHeader,
|
|
44
|
-
BaseSkeletonIcon: ()=>BaseSkeletonIcon
|
|
45
|
-
});
|
|
46
|
-
const react_namespaceObject = require("@emotion/react");
|
|
47
|
-
const styled_namespaceObject = require("@emotion/styled");
|
|
48
|
-
var styled_default = /*#__PURE__*/ __webpack_require__.n(styled_namespaceObject);
|
|
49
|
-
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
50
|
-
const execution_status_cjs_namespaceObject = require("../../styles/execution-status.cjs");
|
|
51
|
-
const GRID_UNIT = 16;
|
|
52
|
-
const NODE_HEIGHT_DEFAULT = 6 * GRID_UNIT;
|
|
53
|
-
const NODE_HEIGHT_FOOTER_BUTTON = 9 * GRID_UNIT;
|
|
54
|
-
const NODE_HEIGHT_FOOTER_SINGLE = 10 * GRID_UNIT;
|
|
55
|
-
const NODE_HEIGHT_FOOTER_DOUBLE = 11 * GRID_UNIT;
|
|
56
|
-
const getIconDimensions = (shape, nodeHeight, nodeWidth)=>{
|
|
57
|
-
const height = nodeHeight ?? 96;
|
|
58
|
-
const width = nodeWidth ?? 96;
|
|
59
|
-
const widthDimension = height !== width && 'rectangle' === shape ? height : width;
|
|
60
|
-
const widthScaleFactor = widthDimension / 96;
|
|
61
|
-
const iconWidth = 72 * widthScaleFactor;
|
|
62
|
-
const heightScaleFactor = height / 96;
|
|
63
|
-
const isExpandable = height !== width && 'rectangle' !== shape;
|
|
64
|
-
const iconHeight = isExpandable ? 84 * heightScaleFactor : 72 * heightScaleFactor;
|
|
65
|
-
return {
|
|
66
|
-
iconWidth,
|
|
67
|
-
iconHeight
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
const getValidationStatusBorder = (validationStatus)=>{
|
|
71
|
-
switch(validationStatus){
|
|
72
|
-
case 'ERROR':
|
|
73
|
-
case 'CRITICAL':
|
|
74
|
-
return (0, react_namespaceObject.css)`
|
|
75
|
-
border-color: var(--canvas-error-icon);
|
|
76
|
-
background: var(--canvas-error-background);
|
|
77
|
-
animation: ${(0, execution_status_cjs_namespaceObject.pulseAnimation)('--canvas-error-icon')} 2s infinite;
|
|
78
|
-
`;
|
|
79
|
-
default:
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
const getInteractionStateBorder = (interactionState)=>{
|
|
84
|
-
switch(interactionState){
|
|
85
|
-
case 'hover':
|
|
86
|
-
return (0, react_namespaceObject.css)`
|
|
87
|
-
outline: 4px solid var(--canvas-secondary-focused);
|
|
88
|
-
`;
|
|
89
|
-
case 'disabled':
|
|
90
|
-
return (0, react_namespaceObject.css)`
|
|
91
|
-
opacity: 0.5;
|
|
92
|
-
cursor: not-allowed;
|
|
93
|
-
`;
|
|
94
|
-
case 'drag':
|
|
95
|
-
return (0, react_namespaceObject.css)`
|
|
96
|
-
cursor: grabbing;
|
|
97
|
-
opacity: 0.8;
|
|
98
|
-
`;
|
|
99
|
-
default:
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
const getSuggestionTypeBorder = (suggestionType)=>{
|
|
104
|
-
const borderColorVar = getSuggestionTypeBorderColorVar(suggestionType);
|
|
105
|
-
const backgroundColorVar = getSuggestionTypeBackgroundColorVar(suggestionType);
|
|
106
|
-
if (!borderColorVar || !backgroundColorVar) return null;
|
|
107
|
-
return (0, react_namespaceObject.css)`
|
|
108
|
-
border-color: var(${borderColorVar});
|
|
109
|
-
background: var(${backgroundColorVar});
|
|
110
|
-
animation: ${(0, execution_status_cjs_namespaceObject.pulseAnimation)(borderColorVar)} 2s infinite;
|
|
111
|
-
`;
|
|
112
|
-
};
|
|
113
|
-
const getSuggestionTypeBorderColorVar = (suggestionType)=>{
|
|
114
|
-
switch(suggestionType){
|
|
115
|
-
case 'add':
|
|
116
|
-
return '--canvas-success-icon';
|
|
117
|
-
case 'update':
|
|
118
|
-
return '--canvas-warning-icon';
|
|
119
|
-
case 'delete':
|
|
120
|
-
return '--canvas-error-icon';
|
|
121
|
-
default:
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
const getSuggestionTypeBackgroundColorVar = (suggestionType)=>{
|
|
126
|
-
switch(suggestionType){
|
|
127
|
-
case 'add':
|
|
128
|
-
return '--canvas-success-background';
|
|
129
|
-
case 'update':
|
|
130
|
-
return '--canvas-warning-background';
|
|
131
|
-
case 'delete':
|
|
132
|
-
return '--canvas-error-background';
|
|
133
|
-
default:
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
const BaseContainer = styled_default().div`
|
|
138
|
-
position: relative;
|
|
139
|
-
width: ${({ shape, width })=>{
|
|
140
|
-
const defaultWidth = 'rectangle' === shape ? 288 : 96;
|
|
141
|
-
if (width && 96 !== width && 288 !== width) return `${width}px`;
|
|
142
|
-
return `${defaultWidth}px`;
|
|
143
|
-
}};
|
|
144
|
-
height: ${({ height, hasFooter, footerVariant })=>{
|
|
145
|
-
if (hasFooter) switch(footerVariant){
|
|
146
|
-
case 'button':
|
|
147
|
-
return `${NODE_HEIGHT_FOOTER_BUTTON}px`;
|
|
148
|
-
case 'single':
|
|
149
|
-
return `${NODE_HEIGHT_FOOTER_SINGLE}px`;
|
|
150
|
-
case 'double':
|
|
151
|
-
return `${NODE_HEIGHT_FOOTER_DOUBLE}px`;
|
|
152
|
-
default:
|
|
153
|
-
return 'auto';
|
|
154
|
-
}
|
|
155
|
-
return height ? `${height}px` : `${NODE_HEIGHT_DEFAULT}px`;
|
|
156
|
-
}};
|
|
157
|
-
background: ${({ backgroundColor })=>backgroundColor || 'var(--canvas-background)'};
|
|
158
|
-
border: 1.5px solid var(--canvas-border-de-emp);
|
|
159
|
-
border-radius: ${({ shape })=>{
|
|
160
|
-
if ('circle' === shape) return '50%';
|
|
161
|
-
return '16px';
|
|
162
|
-
}};
|
|
163
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
164
|
-
display: flex;
|
|
165
|
-
flex-direction: ${({ shape })=>'rectangle' === shape ? 'row' : 'column'};
|
|
166
|
-
flex-wrap: ${({ hasFooter })=>hasFooter ? 'wrap' : 'nowrap'};
|
|
167
|
-
align-items: center;
|
|
168
|
-
justify-content: ${({ shape })=>'rectangle' === shape ? 'flex-start' : 'center'};
|
|
169
|
-
gap: ${({ shape })=>'rectangle' === shape ? '12px' : '0'};
|
|
170
|
-
padding: ${({ shape, height, hasFooter })=>{
|
|
171
|
-
if ('rectangle' === shape) {
|
|
172
|
-
if (hasFooter) return '16px';
|
|
173
|
-
const scaleFactor = height ? height / 100 : 1;
|
|
174
|
-
return `${14 * scaleFactor}px`;
|
|
175
|
-
}
|
|
176
|
-
return '0';
|
|
177
|
-
}};
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
|
|
180
|
-
${({ executionStatus })=>(0, execution_status_cjs_namespaceObject.getExecutionStatusBorder)(executionStatus)}
|
|
181
|
-
${({ validationStatus })=>getValidationStatusBorder(validationStatus)}
|
|
182
|
-
${({ interactionState })=>getInteractionStateBorder(interactionState)}
|
|
183
|
-
${({ suggestionType })=>getSuggestionTypeBorder(suggestionType)}
|
|
184
|
-
|
|
185
|
-
${({ selected, suggestionType })=>{
|
|
186
|
-
if (selected && suggestionType) {
|
|
187
|
-
const borderColorVar = getSuggestionTypeBorderColorVar(suggestionType);
|
|
188
|
-
return (0, react_namespaceObject.css)`
|
|
189
|
-
border-color: var(${borderColorVar});
|
|
190
|
-
outline: 4px solid color-mix(in srgb, var(${borderColorVar}) 40%, transparent);
|
|
191
|
-
`;
|
|
192
|
-
}
|
|
193
|
-
if (selected) return (0, react_namespaceObject.css)`
|
|
194
|
-
border-color: var(--canvas-primary);
|
|
195
|
-
outline: 4px solid var(--canvas-secondary-pressed);
|
|
196
|
-
`;
|
|
197
|
-
return '';
|
|
198
|
-
}}
|
|
199
|
-
`;
|
|
200
|
-
const BaseIconWrapper = styled_default().div`
|
|
201
|
-
${({ height, width, shape })=>{
|
|
202
|
-
const { iconWidth, iconHeight } = getIconDimensions(shape, height, width);
|
|
203
|
-
return (0, react_namespaceObject.css)`
|
|
204
|
-
width: ${iconWidth}px;
|
|
205
|
-
height: ${iconHeight}px;
|
|
206
|
-
`;
|
|
207
|
-
}}
|
|
208
|
-
display: flex;
|
|
209
|
-
align-items: center;
|
|
210
|
-
justify-content: center;
|
|
211
|
-
color: ${({ color })=>color || 'var(--canvas-foreground)'};
|
|
212
|
-
background: ${({ backgroundColor })=>backgroundColor || 'var(--canvas-background-secondary)'};
|
|
213
|
-
border-radius: ${({ shape })=>{
|
|
214
|
-
if ('circle' === shape) return '50%';
|
|
215
|
-
return '8px';
|
|
216
|
-
}};
|
|
217
|
-
|
|
218
|
-
svg {
|
|
219
|
-
width: ${({ width })=>{
|
|
220
|
-
const scaleFactor = width ? width / 96 : 1;
|
|
221
|
-
return `${40 * scaleFactor}px`;
|
|
222
|
-
}};
|
|
223
|
-
height: ${({ height })=>{
|
|
224
|
-
const scaleFactor = height ? height / 96 : 1;
|
|
225
|
-
return `${40 * scaleFactor}px`;
|
|
226
|
-
}};
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
img {
|
|
230
|
-
width: ${({ width })=>{
|
|
231
|
-
const scaleFactor = width ? width / 96 : 1;
|
|
232
|
-
return `${40 * scaleFactor}px`;
|
|
233
|
-
}};
|
|
234
|
-
height: ${({ height })=>{
|
|
235
|
-
const scaleFactor = height ? height / 96 : 1;
|
|
236
|
-
return `${40 * scaleFactor}px`;
|
|
237
|
-
}};
|
|
238
|
-
object-fit: contain;
|
|
239
|
-
}
|
|
240
|
-
`;
|
|
241
|
-
const BaseTextContainer = styled_default().div`
|
|
242
|
-
${({ shape, hasBottomHandles })=>'rectangle' === shape ? (0, react_namespaceObject.css)`
|
|
243
|
-
flex: 1;
|
|
244
|
-
min-width: 0;
|
|
245
|
-
display: flex;
|
|
246
|
-
flex-direction: column;
|
|
247
|
-
align-items: flex-start;
|
|
248
|
-
text-align: left;
|
|
249
|
-
` : (0, react_namespaceObject.css)`
|
|
250
|
-
position: absolute;
|
|
251
|
-
bottom: ${hasBottomHandles ? '-40px' : '-8px'};
|
|
252
|
-
width: 150%;
|
|
253
|
-
left: 50%;
|
|
254
|
-
transform: translateX(-50%) translateY(100%);
|
|
255
|
-
display: flex;
|
|
256
|
-
flex-direction: column;
|
|
257
|
-
align-items: center;
|
|
258
|
-
text-align: center;
|
|
259
|
-
z-index: 10;
|
|
260
|
-
transition: transform 0.2s ease-in-out;
|
|
261
|
-
|
|
262
|
-
/* When there's a bottom handle, offset text to the right to avoid overlapping */
|
|
263
|
-
${hasBottomHandles && (0, react_namespaceObject.css)`
|
|
264
|
-
transform: translateX(20%) translateY(50%);
|
|
265
|
-
text-align: left;
|
|
266
|
-
`}
|
|
267
|
-
`}
|
|
268
|
-
`;
|
|
269
|
-
const BaseHeader = styled_default().div`
|
|
270
|
-
font-weight: 600;
|
|
271
|
-
font-size: 13px;
|
|
272
|
-
color: var(--canvas-foreground);
|
|
273
|
-
${({ backgroundColor })=>backgroundColor && (0, react_namespaceObject.css)`
|
|
274
|
-
background-color: ${backgroundColor};
|
|
275
|
-
padding: 2px 6px;
|
|
276
|
-
border-radius: 4px;
|
|
277
|
-
`}
|
|
278
|
-
line-height: 1.4;
|
|
279
|
-
margin-bottom: 2px;
|
|
280
|
-
overflow: hidden;
|
|
281
|
-
${({ shape })=>'rectangle' === shape ? (0, react_namespaceObject.css)`
|
|
282
|
-
width: 100%;
|
|
283
|
-
white-space: nowrap;
|
|
284
|
-
text-overflow: ellipsis;
|
|
285
|
-
` : (0, react_namespaceObject.css)`
|
|
286
|
-
word-break: break-word;
|
|
287
|
-
display: -webkit-box;
|
|
288
|
-
-webkit-box-orient: vertical;
|
|
289
|
-
-webkit-line-clamp: 3;
|
|
290
|
-
`}
|
|
291
|
-
`;
|
|
292
|
-
const BaseSubHeader = styled_default().div`
|
|
293
|
-
font-size: 11px;
|
|
294
|
-
color: var(--canvas-foreground-de-emp);
|
|
295
|
-
line-height: 1.3;
|
|
296
|
-
word-break: break-word;
|
|
297
|
-
overflow: hidden;
|
|
298
|
-
display: -webkit-box;
|
|
299
|
-
-webkit-box-orient: vertical;
|
|
300
|
-
${({ shape })=>'rectangle' === shape ? (0, react_namespaceObject.css)`
|
|
301
|
-
width: 100%;
|
|
302
|
-
-webkit-line-clamp: 2;
|
|
303
|
-
` : (0, react_namespaceObject.css)`
|
|
304
|
-
-webkit-line-clamp: 5;
|
|
305
|
-
`}
|
|
306
|
-
`;
|
|
307
|
-
const EditableLabel = styled_default().textarea`
|
|
308
|
-
resize: none;
|
|
309
|
-
field-sizing: ${({ shape })=>'rectangle' === shape ? 'fixed' : 'content'};
|
|
310
|
-
font-weight: ${({ variant })=>'subtext' === variant ? '400' : '600'};
|
|
311
|
-
font-size: ${({ variant })=>'subtext' === variant ? '11px' : '13px'};
|
|
312
|
-
line-height: ${({ variant })=>'subtext' === variant ? '1.3' : '1.4'};
|
|
313
|
-
font-family: inherit;
|
|
314
|
-
color: var(--canvas-foreground);
|
|
315
|
-
border: none;
|
|
316
|
-
border-radius: 4px;
|
|
317
|
-
outline: 1px dashed var(--canvas-border-de-emp);
|
|
318
|
-
margin-bottom: ${({ variant })=>'subtext' === variant ? 0 : '2px'};
|
|
319
|
-
max-width: 100%;
|
|
320
|
-
|
|
321
|
-
${({ backgroundColor })=>backgroundColor ? (0, react_namespaceObject.css)`
|
|
322
|
-
background-color: ${backgroundColor};
|
|
323
|
-
padding: 2px 6px;
|
|
324
|
-
` : 'background-color: color-mix(in srgb, var(--canvas-background) 10%, transparent);'}
|
|
325
|
-
|
|
326
|
-
${({ shape })=>'rectangle' === shape ? (0, react_namespaceObject.css)`
|
|
327
|
-
width: 100%;
|
|
328
|
-
` : (0, react_namespaceObject.css)`
|
|
329
|
-
text-align: center;
|
|
330
|
-
`}
|
|
331
|
-
`;
|
|
332
|
-
const EmptyLabelPlaceholder = styled_default().div`
|
|
333
|
-
font-weight: 600;
|
|
334
|
-
font-size: 13px;
|
|
335
|
-
line-height: 1.4;
|
|
336
|
-
color: var(--canvas-foreground-de-emp);
|
|
337
|
-
background: transparent;
|
|
338
|
-
border: 1px dashed var(--canvas-border-de-emp);
|
|
339
|
-
border-radius: 4px;
|
|
340
|
-
cursor: pointer;
|
|
341
|
-
opacity: 0;
|
|
342
|
-
transition: opacity 0.2s ease;
|
|
343
|
-
min-width: 20px;
|
|
344
|
-
min-height: 20px;
|
|
345
|
-
|
|
346
|
-
&:hover {
|
|
347
|
-
opacity: 1;
|
|
348
|
-
background-color: color-mix(in srgb, var(--canvas-background) 10%, transparent);
|
|
349
|
-
}
|
|
350
|
-
`;
|
|
351
|
-
const BaseBadgeSlot = styled_default().div`
|
|
352
|
-
display: flex;
|
|
353
|
-
align-items: center;
|
|
354
|
-
justify-content: center;
|
|
355
|
-
width: 20px;
|
|
356
|
-
height: 20px;
|
|
357
|
-
background: transparent;
|
|
358
|
-
position: absolute;
|
|
359
|
-
${({ position, shape })=>{
|
|
360
|
-
const offset = 'circle' === shape ? '12px' : '6px';
|
|
361
|
-
switch(position){
|
|
362
|
-
case 'top-left':
|
|
363
|
-
return `top: ${offset}; left: ${offset};`;
|
|
364
|
-
case 'top-right':
|
|
365
|
-
return `top: ${offset}; right: ${offset};`;
|
|
366
|
-
case 'bottom-left':
|
|
367
|
-
return `bottom: ${offset}; left: ${offset};`;
|
|
368
|
-
case 'bottom-right':
|
|
369
|
-
return `bottom: ${offset}; right: ${offset};`;
|
|
370
|
-
}
|
|
371
|
-
}}
|
|
372
|
-
`;
|
|
373
|
-
const BaseSkeletonIcon = styled_default()(apollo_wind_namespaceObject.Skeleton, {
|
|
374
|
-
shouldForwardProp: (prop)=>'shape' !== prop && 'nodeHeight' !== prop && 'nodeWidth' !== prop
|
|
375
|
-
})`
|
|
376
|
-
flex-grow: 0;
|
|
377
|
-
flex-shrink: 0;
|
|
378
|
-
${({ shape, nodeHeight, nodeWidth })=>{
|
|
379
|
-
const { iconWidth, iconHeight } = getIconDimensions(shape, nodeHeight, nodeWidth);
|
|
380
|
-
const isCircle = 'circle' === shape;
|
|
381
|
-
return (0, react_namespaceObject.css)`
|
|
382
|
-
width: ${iconWidth}px;
|
|
383
|
-
height: ${iconHeight}px;
|
|
384
|
-
border-radius: ${isCircle ? '50%' : '8px'};
|
|
385
|
-
`;
|
|
386
|
-
}}
|
|
387
|
-
`;
|
|
388
|
-
exports.BaseBadgeSlot = __webpack_exports__.BaseBadgeSlot;
|
|
389
|
-
exports.BaseContainer = __webpack_exports__.BaseContainer;
|
|
390
|
-
exports.BaseHeader = __webpack_exports__.BaseHeader;
|
|
391
|
-
exports.BaseIconWrapper = __webpack_exports__.BaseIconWrapper;
|
|
392
|
-
exports.BaseSkeletonIcon = __webpack_exports__.BaseSkeletonIcon;
|
|
393
|
-
exports.BaseSubHeader = __webpack_exports__.BaseSubHeader;
|
|
394
|
-
exports.BaseTextContainer = __webpack_exports__.BaseTextContainer;
|
|
395
|
-
exports.EditableLabel = __webpack_exports__.EditableLabel;
|
|
396
|
-
exports.EmptyLabelPlaceholder = __webpack_exports__.EmptyLabelPlaceholder;
|
|
397
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
398
|
-
"BaseBadgeSlot",
|
|
399
|
-
"BaseContainer",
|
|
400
|
-
"BaseHeader",
|
|
401
|
-
"BaseIconWrapper",
|
|
402
|
-
"BaseSkeletonIcon",
|
|
403
|
-
"BaseSubHeader",
|
|
404
|
-
"BaseTextContainer",
|
|
405
|
-
"EditableLabel",
|
|
406
|
-
"EmptyLabelPlaceholder"
|
|
407
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
408
|
-
Object.defineProperty(exports, '__esModule', {
|
|
409
|
-
value: true
|
|
410
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { NodeShape } from '../../schema';
|
|
2
|
-
import type { FooterVariant } from './BaseNode.types';
|
|
3
|
-
export declare const BaseContainer: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
} & {
|
|
7
|
-
selected?: boolean;
|
|
8
|
-
backgroundColor?: string;
|
|
9
|
-
shape?: NodeShape;
|
|
10
|
-
executionStatus?: string;
|
|
11
|
-
validationStatus?: string;
|
|
12
|
-
interactionState?: string;
|
|
13
|
-
suggestionType?: string;
|
|
14
|
-
width?: number;
|
|
15
|
-
height?: number;
|
|
16
|
-
hasFooter?: boolean;
|
|
17
|
-
footerVariant?: FooterVariant;
|
|
18
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
-
export declare const BaseIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
20
|
-
theme?: import("@emotion/react").Theme;
|
|
21
|
-
as?: React.ElementType;
|
|
22
|
-
} & {
|
|
23
|
-
color?: string;
|
|
24
|
-
backgroundColor?: string;
|
|
25
|
-
shape?: NodeShape;
|
|
26
|
-
height?: number;
|
|
27
|
-
width?: number;
|
|
28
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
|
-
export declare const BaseTextContainer: import("@emotion/styled").StyledComponent<{
|
|
30
|
-
theme?: import("@emotion/react").Theme;
|
|
31
|
-
as?: React.ElementType;
|
|
32
|
-
} & {
|
|
33
|
-
hasBottomHandles?: boolean;
|
|
34
|
-
shape?: NodeShape;
|
|
35
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
36
|
-
export declare const BaseHeader: import("@emotion/styled").StyledComponent<{
|
|
37
|
-
theme?: import("@emotion/react").Theme;
|
|
38
|
-
as?: React.ElementType;
|
|
39
|
-
} & {
|
|
40
|
-
shape?: NodeShape;
|
|
41
|
-
backgroundColor?: string;
|
|
42
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
43
|
-
export declare const BaseSubHeader: import("@emotion/styled").StyledComponent<{
|
|
44
|
-
theme?: import("@emotion/react").Theme;
|
|
45
|
-
as?: React.ElementType;
|
|
46
|
-
} & {
|
|
47
|
-
shape?: NodeShape;
|
|
48
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
49
|
-
export declare const EditableLabel: import("@emotion/styled").StyledComponent<{
|
|
50
|
-
theme?: import("@emotion/react").Theme;
|
|
51
|
-
as?: React.ElementType;
|
|
52
|
-
} & {
|
|
53
|
-
shape?: NodeShape;
|
|
54
|
-
backgroundColor?: string;
|
|
55
|
-
variant: "normal" | "subtext";
|
|
56
|
-
}, import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, {}>;
|
|
57
|
-
export declare const EmptyLabelPlaceholder: import("@emotion/styled").StyledComponent<{
|
|
58
|
-
theme?: import("@emotion/react").Theme;
|
|
59
|
-
as?: React.ElementType;
|
|
60
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
61
|
-
export declare const BaseBadgeSlot: import("@emotion/styled").StyledComponent<{
|
|
62
|
-
theme?: import("@emotion/react").Theme;
|
|
63
|
-
as?: React.ElementType;
|
|
64
|
-
} & {
|
|
65
|
-
position: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
66
|
-
shape?: NodeShape;
|
|
67
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
68
|
-
export declare const BaseSkeletonIcon: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
69
|
-
theme?: import("@emotion/react").Theme;
|
|
70
|
-
} & {
|
|
71
|
-
shape?: NodeShape;
|
|
72
|
-
nodeHeight?: number;
|
|
73
|
-
nodeWidth?: number;
|
|
74
|
-
}, {}, {}>;
|
|
75
|
-
//# sourceMappingURL=BaseNode.styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA4GtD,eAAO,MAAM,aAAa;;;;eACb,OAAO;sBACA,MAAM;YAChB,SAAS;sBACC,MAAM;uBACL,MAAM;uBACN,MAAM;qBACR,MAAM;YACf,MAAM;aACL,MAAM;gBACH,OAAO;oBACH,aAAa;yGAuE9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;YAClB,MAAM;sBACI,MAAM;YAChB,SAAS;aACR,MAAM;YACP,MAAM;yGAyCf,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;uBAAmC,OAAO;YAAU,SAAS;yGAiC1F,CAAC;AAEF,eAAO,MAAM,UAAU;;;;YAAwB,SAAS;sBAAoB,MAAM;yGA2BjF,CAAC;AAEF,eAAO,MAAM,aAAa;;;;YAAwB,SAAS;yGAiB1D,CAAC;AAEF,eAAO,MAAM,aAAa;;;;YAChB,SAAS;sBACC,MAAM;aACf,QAAQ,GAAG,SAAS;2HA+B9B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;yGAkBjC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;cACd,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc;YAC3D,SAAS;yGAsBlB,CAAC;AAKF,eAAO,MAAM,gBAAgB;;;YAGnB,SAAS;iBACJ,MAAM;gBACP,MAAM;UAcnB,CAAC"}
|