@uipath/apollo-react 6.23.1 → 6.25.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/BaseCanvas/BaseCanvas.cjs +4 -1
- package/dist/canvas/components/BaseCanvas/BaseCanvas.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/BaseCanvas.js +4 -1
- package/dist/canvas/components/BaseCanvas/BaseCanvas.types.d.ts +1 -0
- package/dist/canvas/components/BaseCanvas/BaseCanvas.types.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/CanvasProviders.cjs +10 -6
- package/dist/canvas/components/BaseCanvas/CanvasProviders.d.ts +2 -1
- package/dist/canvas/components/BaseCanvas/CanvasProviders.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/CanvasProviders.js +10 -6
- package/dist/canvas/components/BaseCanvas/ConnectedHandlesContext.cjs +4 -11
- package/dist/canvas/components/BaseCanvas/ConnectedHandlesContext.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/ConnectedHandlesContext.js +1 -8
- package/dist/canvas/components/BaseCanvas/ReadOnlyNodesContext.cjs +111 -0
- package/dist/canvas/components/BaseCanvas/ReadOnlyNodesContext.d.ts +7 -0
- package/dist/canvas/components/BaseCanvas/ReadOnlyNodesContext.d.ts.map +1 -0
- package/dist/canvas/components/BaseCanvas/ReadOnlyNodesContext.js +71 -0
- package/dist/canvas/components/BaseCanvas/index.cjs +21 -5
- package/dist/canvas/components/BaseCanvas/index.d.ts +1 -0
- package/dist/canvas/components/BaseCanvas/index.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/index.js +2 -1
- package/dist/canvas/components/BaseCanvas/set-utils.cjs +46 -0
- package/dist/canvas/components/BaseCanvas/set-utils.d.ts +3 -0
- package/dist/canvas/components/BaseCanvas/set-utils.d.ts.map +1 -0
- package/dist/canvas/components/BaseCanvas/set-utils.js +9 -0
- package/dist/canvas/components/CanvasLeftSidebar/CanvasLeftSidebar.cjs +245 -0
- package/dist/canvas/components/CanvasLeftSidebar/CanvasLeftSidebar.d.ts +30 -0
- package/dist/canvas/components/CanvasLeftSidebar/CanvasLeftSidebar.d.ts.map +1 -0
- package/dist/canvas/components/CanvasLeftSidebar/CanvasLeftSidebar.js +196 -0
- package/dist/canvas/components/CanvasLeftSidebar/index.cjs +51 -0
- package/dist/canvas/components/CanvasLeftSidebar/index.d.ts +3 -0
- package/dist/canvas/components/CanvasLeftSidebar/index.d.ts.map +1 -0
- package/dist/canvas/components/CanvasLeftSidebar/index.js +2 -0
- package/dist/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.cjs +156 -0
- package/dist/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.d.ts +17 -0
- package/dist/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.d.ts.map +1 -0
- package/dist/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.js +112 -0
- package/dist/canvas/components/CanvasTakeoverModal/index.cjs +36 -0
- package/dist/canvas/components/CanvasTakeoverModal/index.d.ts +3 -0
- package/dist/canvas/components/CanvasTakeoverModal/index.d.ts.map +1 -0
- package/dist/canvas/components/CanvasTakeoverModal/index.js +2 -0
- package/dist/canvas/components/NodePropertyPanel/NodePropertyPanelLayout.cjs +75 -0
- package/dist/canvas/components/NodePropertyPanel/NodePropertyPanelLayout.d.ts +9 -0
- package/dist/canvas/components/NodePropertyPanel/NodePropertyPanelLayout.d.ts.map +1 -0
- package/dist/canvas/components/NodePropertyPanel/NodePropertyPanelLayout.js +41 -0
- package/dist/canvas/components/NodePropertyPanel/index.cjs +4 -0
- package/dist/canvas/components/NodePropertyPanel/index.d.ts +1 -0
- package/dist/canvas/components/NodePropertyPanel/index.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertyPanel/index.js +2 -1
- package/dist/canvas/components/ToolbarButton.cjs +3 -2
- package/dist/canvas/components/ToolbarButton.d.ts +2 -1
- package/dist/canvas/components/ToolbarButton.d.ts.map +1 -1
- package/dist/canvas/components/ToolbarButton.js +3 -2
- package/dist/canvas/components/index.cjs +66 -52
- package/dist/canvas/components/index.d.ts +2 -0
- package/dist/canvas/components/index.d.ts.map +1 -1
- package/dist/canvas/components/index.js +2 -0
- package/dist/canvas/hooks/useIsomorphicLayoutEffect.cjs +37 -0
- package/dist/canvas/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/canvas/hooks/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/canvas/hooks/useIsomorphicLayoutEffect.js +3 -0
- package/dist/canvas/hooks/useLatestRef.cjs +2 -2
- package/dist/canvas/hooks/useLatestRef.d.ts.map +1 -1
- package/dist/canvas/hooks/useLatestRef.js +2 -2
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,156 @@
|
|
|
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
|
+
CanvasTakeoverModal: ()=>CanvasTakeoverModal
|
|
37
|
+
});
|
|
38
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
40
|
+
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
41
|
+
const external_react_namespaceObject = require("react");
|
|
42
|
+
const external_react_focus_lock_namespaceObject = require("react-focus-lock");
|
|
43
|
+
var external_react_focus_lock_default = /*#__PURE__*/ __webpack_require__.n(external_react_focus_lock_namespaceObject);
|
|
44
|
+
function CanvasTakeoverModal({ open, onOpenChange, title, headerActions, sidebar, children, expanded: controlledExpanded, defaultExpanded = false, onExpandedChange, className, sidebarClassName, closeOnBackdropClick = true }) {
|
|
45
|
+
const titleId = (0, external_react_namespaceObject.useId)();
|
|
46
|
+
const expandButtonRef = (0, external_react_namespaceObject.useRef)(null);
|
|
47
|
+
const previouslyFocusedElementRef = (0, external_react_namespaceObject.useRef)(null);
|
|
48
|
+
const [uncontrolledExpanded, setUncontrolledExpanded] = (0, external_react_namespaceObject.useState)(defaultExpanded);
|
|
49
|
+
const expanded = controlledExpanded ?? uncontrolledExpanded;
|
|
50
|
+
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
51
|
+
if (!open) return;
|
|
52
|
+
previouslyFocusedElementRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
53
|
+
const animationFrame = requestAnimationFrame(()=>expandButtonRef.current?.focus());
|
|
54
|
+
const handleKeyDown = (event)=>{
|
|
55
|
+
if ('Escape' === event.key) onOpenChange?.(false);
|
|
56
|
+
};
|
|
57
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
58
|
+
return ()=>{
|
|
59
|
+
cancelAnimationFrame(animationFrame);
|
|
60
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
61
|
+
previouslyFocusedElementRef.current?.focus();
|
|
62
|
+
previouslyFocusedElementRef.current = null;
|
|
63
|
+
};
|
|
64
|
+
}, [
|
|
65
|
+
onOpenChange,
|
|
66
|
+
open
|
|
67
|
+
]);
|
|
68
|
+
if (!open) return null;
|
|
69
|
+
const setExpanded = (nextExpanded)=>{
|
|
70
|
+
if (void 0 === controlledExpanded) setUncontrolledExpanded(nextExpanded);
|
|
71
|
+
onExpandedChange?.(nextExpanded);
|
|
72
|
+
};
|
|
73
|
+
const handleBackdropClick = (event)=>{
|
|
74
|
+
if (closeOnBackdropClick && event.target === event.currentTarget) onOpenChange?.(false);
|
|
75
|
+
};
|
|
76
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
77
|
+
className: (0, apollo_wind_namespaceObject.cn)('absolute inset-0 z-50 flex items-center justify-center bg-ui-backdrop', expanded ? 'p-0' : 'p-3'),
|
|
78
|
+
onMouseDown: handleBackdropClick,
|
|
79
|
+
"data-testid": "canvas-takeover-backdrop",
|
|
80
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_focus_lock_default(), {
|
|
81
|
+
autoFocus: false,
|
|
82
|
+
className: "contents",
|
|
83
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("section", {
|
|
84
|
+
role: "dialog",
|
|
85
|
+
"aria-modal": "true",
|
|
86
|
+
"aria-labelledby": titleId,
|
|
87
|
+
"data-expanded": expanded,
|
|
88
|
+
className: (0, apollo_wind_namespaceObject.cn)('flex min-h-0 flex-col overflow-hidden border border-border-subtle bg-surface-raised text-foreground shadow-xl transition-[width,height,border-radius] duration-200', expanded ? 'h-full w-full rounded-none' : 'h-[95%] w-[95%] rounded-2xl', className),
|
|
89
|
+
children: [
|
|
90
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("header", {
|
|
91
|
+
className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-4",
|
|
92
|
+
children: [
|
|
93
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h2", {
|
|
94
|
+
id: titleId,
|
|
95
|
+
className: "min-w-0 flex-1 truncate text-sm font-semibold",
|
|
96
|
+
children: title
|
|
97
|
+
}),
|
|
98
|
+
headerActions,
|
|
99
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
100
|
+
className: "-mr-1 flex shrink-0 items-center gap-1",
|
|
101
|
+
children: [
|
|
102
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
103
|
+
ref: expandButtonRef,
|
|
104
|
+
type: "button",
|
|
105
|
+
onClick: ()=>setExpanded(!expanded),
|
|
106
|
+
className: "grid size-8 place-items-center rounded-md text-foreground-muted transition-colors hover:bg-surface-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
107
|
+
"aria-label": expanded ? 'Collapse modal' : 'Expand modal',
|
|
108
|
+
title: expanded ? 'Collapse modal' : 'Expand modal',
|
|
109
|
+
children: expanded ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Minimize2, {
|
|
110
|
+
size: 16,
|
|
111
|
+
strokeWidth: 1.75
|
|
112
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Maximize2, {
|
|
113
|
+
size: 16,
|
|
114
|
+
strokeWidth: 1.75
|
|
115
|
+
})
|
|
116
|
+
}),
|
|
117
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
|
|
118
|
+
type: "button",
|
|
119
|
+
onClick: ()=>onOpenChange?.(false),
|
|
120
|
+
className: "grid size-8 place-items-center rounded-md text-foreground-muted transition-colors hover:bg-surface-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
121
|
+
"aria-label": "Close modal",
|
|
122
|
+
title: "Close modal",
|
|
123
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
|
|
124
|
+
size: 16,
|
|
125
|
+
strokeWidth: 1.75
|
|
126
|
+
})
|
|
127
|
+
})
|
|
128
|
+
]
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
}),
|
|
132
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
133
|
+
className: "flex min-h-0 flex-1",
|
|
134
|
+
children: [
|
|
135
|
+
null != sidebar && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("aside", {
|
|
136
|
+
className: (0, apollo_wind_namespaceObject.cn)('w-64 shrink-0 overflow-auto border-r border-border-subtle', sidebarClassName),
|
|
137
|
+
children: sidebar
|
|
138
|
+
}),
|
|
139
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("main", {
|
|
140
|
+
className: "min-w-0 flex-1 overflow-auto",
|
|
141
|
+
children: children
|
|
142
|
+
})
|
|
143
|
+
]
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
exports.CanvasTakeoverModal = __webpack_exports__.CanvasTakeoverModal;
|
|
151
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
152
|
+
"CanvasTakeoverModal"
|
|
153
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
154
|
+
Object.defineProperty(exports, '__esModule', {
|
|
155
|
+
value: true
|
|
156
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface CanvasTakeoverModalProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange?: (open: boolean) => void;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
headerActions?: ReactNode;
|
|
7
|
+
sidebar?: ReactNode;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
expanded?: boolean;
|
|
10
|
+
defaultExpanded?: boolean;
|
|
11
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
sidebarClassName?: string;
|
|
14
|
+
closeOnBackdropClick?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function CanvasTakeoverModal({ open, onOpenChange, title, headerActions, sidebar, children, expanded: controlledExpanded, defaultExpanded, onExpandedChange, className, sidebarClassName, closeOnBackdropClick, }: CanvasTakeoverModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=CanvasTakeoverModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CanvasTakeoverModal.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/CanvasTakeoverModal/CanvasTakeoverModal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAC;AAG5F,MAAM,WAAW,wBAAwB;IAEvC,IAAI,EAAE,OAAO,CAAC;IAEd,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC,KAAK,EAAE,SAAS,CAAC;IAEjB,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB,QAAQ,EAAE,SAAS,CAAC;IAEpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAE/C,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAMD,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,aAAa,EACb,OAAO,EACP,QAAQ,EACR,QAAQ,EAAE,kBAAkB,EAC5B,eAAuB,EACvB,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,oBAA2B,GAC5B,EAAE,wBAAwB,kDA2G1B"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@uipath/apollo-wind";
|
|
3
|
+
import { Maximize2, Minimize2, X } from "lucide-react";
|
|
4
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
5
|
+
import react_focus_lock from "react-focus-lock";
|
|
6
|
+
function CanvasTakeoverModal({ open, onOpenChange, title, headerActions, sidebar, children, expanded: controlledExpanded, defaultExpanded = false, onExpandedChange, className, sidebarClassName, closeOnBackdropClick = true }) {
|
|
7
|
+
const titleId = useId();
|
|
8
|
+
const expandButtonRef = useRef(null);
|
|
9
|
+
const previouslyFocusedElementRef = useRef(null);
|
|
10
|
+
const [uncontrolledExpanded, setUncontrolledExpanded] = useState(defaultExpanded);
|
|
11
|
+
const expanded = controlledExpanded ?? uncontrolledExpanded;
|
|
12
|
+
useEffect(()=>{
|
|
13
|
+
if (!open) return;
|
|
14
|
+
previouslyFocusedElementRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
15
|
+
const animationFrame = requestAnimationFrame(()=>expandButtonRef.current?.focus());
|
|
16
|
+
const handleKeyDown = (event)=>{
|
|
17
|
+
if ('Escape' === event.key) onOpenChange?.(false);
|
|
18
|
+
};
|
|
19
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
20
|
+
return ()=>{
|
|
21
|
+
cancelAnimationFrame(animationFrame);
|
|
22
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
23
|
+
previouslyFocusedElementRef.current?.focus();
|
|
24
|
+
previouslyFocusedElementRef.current = null;
|
|
25
|
+
};
|
|
26
|
+
}, [
|
|
27
|
+
onOpenChange,
|
|
28
|
+
open
|
|
29
|
+
]);
|
|
30
|
+
if (!open) return null;
|
|
31
|
+
const setExpanded = (nextExpanded)=>{
|
|
32
|
+
if (void 0 === controlledExpanded) setUncontrolledExpanded(nextExpanded);
|
|
33
|
+
onExpandedChange?.(nextExpanded);
|
|
34
|
+
};
|
|
35
|
+
const handleBackdropClick = (event)=>{
|
|
36
|
+
if (closeOnBackdropClick && event.target === event.currentTarget) onOpenChange?.(false);
|
|
37
|
+
};
|
|
38
|
+
return /*#__PURE__*/ jsx("div", {
|
|
39
|
+
className: cn('absolute inset-0 z-50 flex items-center justify-center bg-ui-backdrop', expanded ? 'p-0' : 'p-3'),
|
|
40
|
+
onMouseDown: handleBackdropClick,
|
|
41
|
+
"data-testid": "canvas-takeover-backdrop",
|
|
42
|
+
children: /*#__PURE__*/ jsx(react_focus_lock, {
|
|
43
|
+
autoFocus: false,
|
|
44
|
+
className: "contents",
|
|
45
|
+
children: /*#__PURE__*/ jsxs("section", {
|
|
46
|
+
role: "dialog",
|
|
47
|
+
"aria-modal": "true",
|
|
48
|
+
"aria-labelledby": titleId,
|
|
49
|
+
"data-expanded": expanded,
|
|
50
|
+
className: cn('flex min-h-0 flex-col overflow-hidden border border-border-subtle bg-surface-raised text-foreground shadow-xl transition-[width,height,border-radius] duration-200', expanded ? 'h-full w-full rounded-none' : 'h-[95%] w-[95%] rounded-2xl', className),
|
|
51
|
+
children: [
|
|
52
|
+
/*#__PURE__*/ jsxs("header", {
|
|
53
|
+
className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-4",
|
|
54
|
+
children: [
|
|
55
|
+
/*#__PURE__*/ jsx("h2", {
|
|
56
|
+
id: titleId,
|
|
57
|
+
className: "min-w-0 flex-1 truncate text-sm font-semibold",
|
|
58
|
+
children: title
|
|
59
|
+
}),
|
|
60
|
+
headerActions,
|
|
61
|
+
/*#__PURE__*/ jsxs("div", {
|
|
62
|
+
className: "-mr-1 flex shrink-0 items-center gap-1",
|
|
63
|
+
children: [
|
|
64
|
+
/*#__PURE__*/ jsx("button", {
|
|
65
|
+
ref: expandButtonRef,
|
|
66
|
+
type: "button",
|
|
67
|
+
onClick: ()=>setExpanded(!expanded),
|
|
68
|
+
className: "grid size-8 place-items-center rounded-md text-foreground-muted transition-colors hover:bg-surface-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
69
|
+
"aria-label": expanded ? 'Collapse modal' : 'Expand modal',
|
|
70
|
+
title: expanded ? 'Collapse modal' : 'Expand modal',
|
|
71
|
+
children: expanded ? /*#__PURE__*/ jsx(Minimize2, {
|
|
72
|
+
size: 16,
|
|
73
|
+
strokeWidth: 1.75
|
|
74
|
+
}) : /*#__PURE__*/ jsx(Maximize2, {
|
|
75
|
+
size: 16,
|
|
76
|
+
strokeWidth: 1.75
|
|
77
|
+
})
|
|
78
|
+
}),
|
|
79
|
+
/*#__PURE__*/ jsx("button", {
|
|
80
|
+
type: "button",
|
|
81
|
+
onClick: ()=>onOpenChange?.(false),
|
|
82
|
+
className: "grid size-8 place-items-center rounded-md text-foreground-muted transition-colors hover:bg-surface-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus",
|
|
83
|
+
"aria-label": "Close modal",
|
|
84
|
+
title: "Close modal",
|
|
85
|
+
children: /*#__PURE__*/ jsx(X, {
|
|
86
|
+
size: 16,
|
|
87
|
+
strokeWidth: 1.75
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
}),
|
|
94
|
+
/*#__PURE__*/ jsxs("div", {
|
|
95
|
+
className: "flex min-h-0 flex-1",
|
|
96
|
+
children: [
|
|
97
|
+
null != sidebar && /*#__PURE__*/ jsx("aside", {
|
|
98
|
+
className: cn('w-64 shrink-0 overflow-auto border-r border-border-subtle', sidebarClassName),
|
|
99
|
+
children: sidebar
|
|
100
|
+
}),
|
|
101
|
+
/*#__PURE__*/ jsx("main", {
|
|
102
|
+
className: "min-w-0 flex-1 overflow-auto",
|
|
103
|
+
children: children
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
export { CanvasTakeoverModal };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
CanvasTakeoverModal: ()=>external_CanvasTakeoverModal_cjs_namespaceObject.CanvasTakeoverModal
|
|
28
|
+
});
|
|
29
|
+
const external_CanvasTakeoverModal_cjs_namespaceObject = require("./CanvasTakeoverModal.cjs");
|
|
30
|
+
exports.CanvasTakeoverModal = __webpack_exports__.CanvasTakeoverModal;
|
|
31
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
32
|
+
"CanvasTakeoverModal"
|
|
33
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
34
|
+
Object.defineProperty(exports, '__esModule', {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/CanvasTakeoverModal/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
NodePropertyPanelLayout: ()=>NodePropertyPanelLayout
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
31
|
+
function NodePropertyPanelLayout({ input, properties, output, className }) {
|
|
32
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.ResizablePanelGroup, {
|
|
33
|
+
orientation: "horizontal",
|
|
34
|
+
className: (0, apollo_wind_namespaceObject.cn)('overflow-hidden rounded-2xl border border-border-subtle bg-surface shadow-lg', className),
|
|
35
|
+
children: [
|
|
36
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.ResizablePanel, {
|
|
37
|
+
defaultSize: "33%",
|
|
38
|
+
minSize: "15%",
|
|
39
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
40
|
+
className: "h-full w-full overflow-hidden",
|
|
41
|
+
children: input
|
|
42
|
+
})
|
|
43
|
+
}),
|
|
44
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.ResizableHandle, {
|
|
45
|
+
withHandle: true
|
|
46
|
+
}),
|
|
47
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.ResizablePanel, {
|
|
48
|
+
defaultSize: "34%",
|
|
49
|
+
minSize: "15%",
|
|
50
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
51
|
+
className: "h-full w-full overflow-hidden",
|
|
52
|
+
children: properties
|
|
53
|
+
})
|
|
54
|
+
}),
|
|
55
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.ResizableHandle, {
|
|
56
|
+
withHandle: true
|
|
57
|
+
}),
|
|
58
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.ResizablePanel, {
|
|
59
|
+
defaultSize: "33%",
|
|
60
|
+
minSize: "15%",
|
|
61
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
62
|
+
className: "h-full w-full overflow-hidden",
|
|
63
|
+
children: output
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
exports.NodePropertyPanelLayout = __webpack_exports__.NodePropertyPanelLayout;
|
|
70
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
71
|
+
"NodePropertyPanelLayout"
|
|
72
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
73
|
+
Object.defineProperty(exports, '__esModule', {
|
|
74
|
+
value: true
|
|
75
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface NodePropertyPanelLayoutProps {
|
|
3
|
+
input: ReactNode;
|
|
4
|
+
properties: ReactNode;
|
|
5
|
+
output: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function NodePropertyPanelLayout({ input, properties, output, className, }: NodePropertyPanelLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=NodePropertyPanelLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodePropertyPanelLayout.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertyPanel/NodePropertyPanelLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,UAAU,EACV,MAAM,EACN,SAAS,GACV,EAAE,4BAA4B,2CAsB9B"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ResizableHandle, ResizablePanel, ResizablePanelGroup, cn } from "@uipath/apollo-wind";
|
|
3
|
+
function NodePropertyPanelLayout({ input, properties, output, className }) {
|
|
4
|
+
return /*#__PURE__*/ jsxs(ResizablePanelGroup, {
|
|
5
|
+
orientation: "horizontal",
|
|
6
|
+
className: cn('overflow-hidden rounded-2xl border border-border-subtle bg-surface shadow-lg', className),
|
|
7
|
+
children: [
|
|
8
|
+
/*#__PURE__*/ jsx(ResizablePanel, {
|
|
9
|
+
defaultSize: "33%",
|
|
10
|
+
minSize: "15%",
|
|
11
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
12
|
+
className: "h-full w-full overflow-hidden",
|
|
13
|
+
children: input
|
|
14
|
+
})
|
|
15
|
+
}),
|
|
16
|
+
/*#__PURE__*/ jsx(ResizableHandle, {
|
|
17
|
+
withHandle: true
|
|
18
|
+
}),
|
|
19
|
+
/*#__PURE__*/ jsx(ResizablePanel, {
|
|
20
|
+
defaultSize: "34%",
|
|
21
|
+
minSize: "15%",
|
|
22
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
23
|
+
className: "h-full w-full overflow-hidden",
|
|
24
|
+
children: properties
|
|
25
|
+
})
|
|
26
|
+
}),
|
|
27
|
+
/*#__PURE__*/ jsx(ResizableHandle, {
|
|
28
|
+
withHandle: true
|
|
29
|
+
}),
|
|
30
|
+
/*#__PURE__*/ jsx(ResizablePanel, {
|
|
31
|
+
defaultSize: "33%",
|
|
32
|
+
minSize: "15%",
|
|
33
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
34
|
+
className: "h-full w-full overflow-hidden",
|
|
35
|
+
children: output
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export { NodePropertyPanelLayout };
|
|
@@ -25,20 +25,24 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
PanelFieldLabel: ()=>external_PanelField_cjs_namespaceObject.PanelFieldLabel,
|
|
28
|
+
NodePropertyPanelLayout: ()=>external_NodePropertyPanelLayout_cjs_namespaceObject.NodePropertyPanelLayout,
|
|
28
29
|
NodePropertyPanel: ()=>external_NodePropertyPanel_cjs_namespaceObject.NodePropertyPanel,
|
|
29
30
|
PanelField: ()=>external_PanelField_cjs_namespaceObject.PanelField,
|
|
30
31
|
ExpressionField: ()=>external_ExpressionField_cjs_namespaceObject.ExpressionField
|
|
31
32
|
});
|
|
32
33
|
const external_ExpressionField_cjs_namespaceObject = require("./ExpressionField.cjs");
|
|
33
34
|
const external_NodePropertyPanel_cjs_namespaceObject = require("./NodePropertyPanel.cjs");
|
|
35
|
+
const external_NodePropertyPanelLayout_cjs_namespaceObject = require("./NodePropertyPanelLayout.cjs");
|
|
34
36
|
const external_PanelField_cjs_namespaceObject = require("./PanelField.cjs");
|
|
35
37
|
exports.ExpressionField = __webpack_exports__.ExpressionField;
|
|
36
38
|
exports.NodePropertyPanel = __webpack_exports__.NodePropertyPanel;
|
|
39
|
+
exports.NodePropertyPanelLayout = __webpack_exports__.NodePropertyPanelLayout;
|
|
37
40
|
exports.PanelField = __webpack_exports__.PanelField;
|
|
38
41
|
exports.PanelFieldLabel = __webpack_exports__.PanelFieldLabel;
|
|
39
42
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
40
43
|
"ExpressionField",
|
|
41
44
|
"NodePropertyPanel",
|
|
45
|
+
"NodePropertyPanelLayout",
|
|
42
46
|
"PanelField",
|
|
43
47
|
"PanelFieldLabel"
|
|
44
48
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { ExpressionFieldProps, ExpressionMode } from './ExpressionField';
|
|
2
2
|
export { ExpressionField } from './ExpressionField';
|
|
3
3
|
export { NodePropertyPanel } from './NodePropertyPanel';
|
|
4
|
+
export { NodePropertyPanelLayout, type NodePropertyPanelLayoutProps, } from './NodePropertyPanelLayout';
|
|
4
5
|
export type { NodePropertyPanelProps } from './NodePropertyPanel.types';
|
|
5
6
|
export type { PanelFieldLabelProps, PanelFieldProps } from './PanelField';
|
|
6
7
|
export { PanelField, PanelFieldLabel } from './PanelField';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertyPanel/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,YAAY,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodePropertyPanel/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,GAClC,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,YAAY,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExpressionField } from "./ExpressionField.js";
|
|
2
2
|
import { NodePropertyPanel } from "./NodePropertyPanel.js";
|
|
3
|
+
import { NodePropertyPanelLayout } from "./NodePropertyPanelLayout.js";
|
|
3
4
|
import { PanelField, PanelFieldLabel } from "./PanelField.js";
|
|
4
|
-
export { ExpressionField, NodePropertyPanel, PanelField, PanelFieldLabel };
|
|
5
|
+
export { ExpressionField, NodePropertyPanel, NodePropertyPanelLayout, PanelField, PanelFieldLabel };
|
|
@@ -27,9 +27,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
ToolbarButton: ()=>ToolbarButton_ToolbarButton
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const external_react_namespaceObject = require("react");
|
|
31
30
|
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
32
|
-
const
|
|
31
|
+
const external_react_namespaceObject = require("react");
|
|
32
|
+
const ToolbarButton_ToolbarButton = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(function({ label, tooltip, testId, onClick, disabled, ariaPressed, className, tooltipSide, children }, ref) {
|
|
33
33
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Tooltip, {
|
|
34
34
|
children: [
|
|
35
35
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.TooltipTrigger, {
|
|
@@ -38,6 +38,7 @@ const ToolbarButton_ToolbarButton = /*#__PURE__*/ (0, external_react_namespaceOb
|
|
|
38
38
|
ref: ref,
|
|
39
39
|
"data-testid": testId,
|
|
40
40
|
"aria-label": label,
|
|
41
|
+
"aria-pressed": ariaPressed,
|
|
41
42
|
variant: "ghost",
|
|
42
43
|
size: "xs",
|
|
43
44
|
icon: true,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { MouseEventHandler, ReactNode } from 'react';
|
|
1
|
+
import type { AriaAttributes, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
interface ToolbarButtonProps {
|
|
3
3
|
label: string;
|
|
4
4
|
tooltip?: ReactNode;
|
|
5
5
|
testId?: string;
|
|
6
6
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
ariaPressed?: AriaAttributes['aria-pressed'];
|
|
8
9
|
className?: string;
|
|
9
10
|
tooltipSide?: 'top' | 'right' | 'bottom' | 'left';
|
|
10
11
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../src/canvas/components/ToolbarButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../src/canvas/components/ToolbarButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1E,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,aAAa,kHA2BzB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
2
|
import { Button, Tooltip, TooltipContent, TooltipTrigger } from "@uipath/apollo-wind";
|
|
4
|
-
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
const ToolbarButton_ToolbarButton = /*#__PURE__*/ forwardRef(function({ label, tooltip, testId, onClick, disabled, ariaPressed, className, tooltipSide, children }, ref) {
|
|
5
5
|
return /*#__PURE__*/ jsxs(Tooltip, {
|
|
6
6
|
children: [
|
|
7
7
|
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
@@ -10,6 +10,7 @@ const ToolbarButton_ToolbarButton = /*#__PURE__*/ forwardRef(function({ label, t
|
|
|
10
10
|
ref: ref,
|
|
11
11
|
"data-testid": testId,
|
|
12
12
|
"aria-label": label,
|
|
13
|
+
"aria-pressed": ariaPressed,
|
|
13
14
|
variant: "ghost",
|
|
14
15
|
size: "xs",
|
|
15
16
|
icon: true,
|