entangle-ui 0.4.0 → 0.5.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/CHANGELOG.md +28 -0
- package/dist/esm/assets/src/components/shell/StatusBar/{StatusBar.css.ts.vanilla-BwO7oAZi.css → StatusBar.css.ts.vanilla-BqpCJsZ1.css} +1 -1
- package/dist/esm/assets/src/theme/{darkTheme.css.ts.vanilla-V8lWHaQH.css → darkTheme.css.ts.vanilla-DCe89yCJ.css} +1 -0
- package/dist/esm/components/Icons/AddIcon.js +30 -0
- package/dist/esm/components/Icons/AddIcon.js.map +1 -0
- package/dist/esm/components/Icons/AiChatIcon.js +31 -0
- package/dist/esm/components/Icons/AiChatIcon.js.map +1 -0
- package/dist/esm/components/Icons/AiSparklesIcon.js +31 -0
- package/dist/esm/components/Icons/AiSparklesIcon.js.map +1 -0
- package/dist/esm/components/Icons/ArrowDownIcon.js +30 -0
- package/dist/esm/components/Icons/ArrowDownIcon.js.map +1 -0
- package/dist/esm/components/Icons/ArrowLeftIcon.js +30 -0
- package/dist/esm/components/Icons/ArrowLeftIcon.js.map +1 -0
- package/dist/esm/components/Icons/ArrowRightIcon.js +30 -0
- package/dist/esm/components/Icons/ArrowRightIcon.js.map +1 -0
- package/dist/esm/components/Icons/ArrowUpIcon.js +30 -0
- package/dist/esm/components/Icons/ArrowUpIcon.js.map +1 -0
- package/dist/esm/components/Icons/BookmarkIcon.js +30 -0
- package/dist/esm/components/Icons/BookmarkIcon.js.map +1 -0
- package/dist/esm/components/Icons/CalendarIcon.js +30 -0
- package/dist/esm/components/Icons/CalendarIcon.js.map +1 -0
- package/dist/esm/components/Icons/CheckIcon.js +5 -2
- package/dist/esm/components/Icons/CheckIcon.js.map +1 -1
- package/dist/esm/components/Icons/ChevronDownIcon.js +5 -2
- package/dist/esm/components/Icons/ChevronDownIcon.js.map +1 -1
- package/dist/esm/components/Icons/ChevronUpIcon.js +5 -2
- package/dist/esm/components/Icons/ChevronUpIcon.js.map +1 -1
- package/dist/esm/components/Icons/CircleIcon.js +5 -2
- package/dist/esm/components/Icons/CircleIcon.js.map +1 -1
- package/dist/esm/components/Icons/ClockIcon.js +30 -0
- package/dist/esm/components/Icons/ClockIcon.js.map +1 -0
- package/dist/esm/components/Icons/CloseIcon.js +5 -2
- package/dist/esm/components/Icons/CloseIcon.js.map +1 -1
- package/dist/esm/components/Icons/CodeIcon.js +30 -0
- package/dist/esm/components/Icons/CodeIcon.js.map +1 -0
- package/dist/esm/components/Icons/CopyIcon.js +30 -0
- package/dist/esm/components/Icons/CopyIcon.js.map +1 -0
- package/dist/esm/components/Icons/CutIcon.js +30 -0
- package/dist/esm/components/Icons/CutIcon.js.map +1 -0
- package/dist/esm/components/Icons/DownloadIcon.js +30 -0
- package/dist/esm/components/Icons/DownloadIcon.js.map +1 -0
- package/dist/esm/components/Icons/EditIcon.js +30 -0
- package/dist/esm/components/Icons/EditIcon.js.map +1 -0
- package/dist/esm/components/Icons/ErrorIcon.js +30 -0
- package/dist/esm/components/Icons/ErrorIcon.js.map +1 -0
- package/dist/esm/components/Icons/EyeDropperIcon.js +5 -2
- package/dist/esm/components/Icons/EyeDropperIcon.js.map +1 -1
- package/dist/esm/components/Icons/EyeIcon.js +30 -0
- package/dist/esm/components/Icons/EyeIcon.js.map +1 -0
- package/dist/esm/components/Icons/FilterIcon.js +30 -0
- package/dist/esm/components/Icons/FilterIcon.js.map +1 -0
- package/dist/esm/components/Icons/FolderIcon.js +30 -0
- package/dist/esm/components/Icons/FolderIcon.js.map +1 -0
- package/dist/esm/components/Icons/FullscreenIcon.js +30 -0
- package/dist/esm/components/Icons/FullscreenIcon.js.map +1 -0
- package/dist/esm/components/Icons/GridIcon.js +30 -0
- package/dist/esm/components/Icons/GridIcon.js.map +1 -0
- package/dist/esm/components/Icons/HeartIcon.js +30 -0
- package/dist/esm/components/Icons/HeartIcon.js.map +1 -0
- package/dist/esm/components/Icons/HelpIcon.js +30 -0
- package/dist/esm/components/Icons/HelpIcon.js.map +1 -0
- package/dist/esm/components/Icons/HomeIcon.js +30 -0
- package/dist/esm/components/Icons/HomeIcon.js.map +1 -0
- package/dist/esm/components/Icons/InfoIcon.js +30 -0
- package/dist/esm/components/Icons/InfoIcon.js.map +1 -0
- package/dist/esm/components/Icons/LinkIcon.js +30 -0
- package/dist/esm/components/Icons/LinkIcon.js.map +1 -0
- package/dist/esm/components/Icons/ListIcon.js +30 -0
- package/dist/esm/components/Icons/ListIcon.js.map +1 -0
- package/dist/esm/components/Icons/LockIcon.js +30 -0
- package/dist/esm/components/Icons/LockIcon.js.map +1 -0
- package/dist/esm/components/Icons/MaximizeIcon.js +30 -0
- package/dist/esm/components/Icons/MaximizeIcon.js.map +1 -0
- package/dist/esm/components/Icons/MenuIcon.js +30 -0
- package/dist/esm/components/Icons/MenuIcon.js.map +1 -0
- package/dist/esm/components/Icons/MinimizeIcon.js +30 -0
- package/dist/esm/components/Icons/MinimizeIcon.js.map +1 -0
- package/dist/esm/components/Icons/PasteIcon.js +30 -0
- package/dist/esm/components/Icons/PasteIcon.js.map +1 -0
- package/dist/esm/components/Icons/PlayIcon.js +30 -0
- package/dist/esm/components/Icons/PlayIcon.js.map +1 -0
- package/dist/esm/components/Icons/RedoIcon.js +30 -0
- package/dist/esm/components/Icons/RedoIcon.js.map +1 -0
- package/dist/esm/components/Icons/RefreshIcon.js +30 -0
- package/dist/esm/components/Icons/RefreshIcon.js.map +1 -0
- package/dist/esm/components/Icons/RobotIcon.js +30 -0
- package/dist/esm/components/Icons/RobotIcon.js.map +1 -0
- package/dist/esm/components/Icons/SaveIcon.js +30 -0
- package/dist/esm/components/Icons/SaveIcon.js.map +1 -0
- package/dist/esm/components/Icons/SearchIcon.js +30 -0
- package/dist/esm/components/Icons/SearchIcon.js.map +1 -0
- package/dist/esm/components/Icons/SettingsIcon.js +30 -0
- package/dist/esm/components/Icons/SettingsIcon.js.map +1 -0
- package/dist/esm/components/Icons/SortIcon.js +30 -0
- package/dist/esm/components/Icons/SortIcon.js.map +1 -0
- package/dist/esm/components/Icons/StarIcon.js +30 -0
- package/dist/esm/components/Icons/StarIcon.js.map +1 -0
- package/dist/esm/components/Icons/SuccessIcon.js +30 -0
- package/dist/esm/components/Icons/SuccessIcon.js.map +1 -0
- package/dist/esm/components/Icons/TagIcon.js +30 -0
- package/dist/esm/components/Icons/TagIcon.js.map +1 -0
- package/dist/esm/components/Icons/TangentAlignedIcon.js +5 -2
- package/dist/esm/components/Icons/TangentAlignedIcon.js.map +1 -1
- package/dist/esm/components/Icons/TangentAutoIcon.js +5 -2
- package/dist/esm/components/Icons/TangentAutoIcon.js.map +1 -1
- package/dist/esm/components/Icons/TangentFreeIcon.js +5 -2
- package/dist/esm/components/Icons/TangentFreeIcon.js.map +1 -1
- package/dist/esm/components/Icons/TangentLinearIcon.js +5 -2
- package/dist/esm/components/Icons/TangentLinearIcon.js.map +1 -1
- package/dist/esm/components/Icons/TangentMirroredIcon.js +5 -2
- package/dist/esm/components/Icons/TangentMirroredIcon.js.map +1 -1
- package/dist/esm/components/Icons/TangentStepIcon.js +5 -2
- package/dist/esm/components/Icons/TangentStepIcon.js.map +1 -1
- package/dist/esm/components/Icons/TrashIcon.js +30 -0
- package/dist/esm/components/Icons/TrashIcon.js.map +1 -0
- package/dist/esm/components/Icons/UndoIcon.js +30 -0
- package/dist/esm/components/Icons/UndoIcon.js.map +1 -0
- package/dist/esm/components/Icons/UnlockIcon.js +30 -0
- package/dist/esm/components/Icons/UnlockIcon.js.map +1 -0
- package/dist/esm/components/Icons/UploadIcon.js +30 -0
- package/dist/esm/components/Icons/UploadIcon.js.map +1 -0
- package/dist/esm/components/Icons/UserIcon.js +30 -0
- package/dist/esm/components/Icons/UserIcon.js.map +1 -0
- package/dist/esm/components/Icons/WarningIcon.js +30 -0
- package/dist/esm/components/Icons/WarningIcon.js.map +1 -0
- package/dist/esm/components/Icons/ZoomInIcon.js +30 -0
- package/dist/esm/components/Icons/ZoomInIcon.js.map +1 -0
- package/dist/esm/components/Icons/ZoomOutIcon.js +30 -0
- package/dist/esm/components/Icons/ZoomOutIcon.js.map +1 -0
- package/dist/esm/components/controls/CurveEditor/CurveToolbar.js +57 -1
- package/dist/esm/components/controls/CurveEditor/CurveToolbar.js.map +1 -1
- package/dist/esm/components/editor/ChatPanel/ChatAttachment.js +7 -12
- package/dist/esm/components/editor/ChatPanel/ChatAttachment.js.map +1 -1
- package/dist/esm/components/editor/ChatPanel/ChatContextChip.js +3 -6
- package/dist/esm/components/editor/ChatPanel/ChatContextChip.js.map +1 -1
- package/dist/esm/components/editor/ChatPanel/ChatIcons.js +18 -0
- package/dist/esm/components/editor/ChatPanel/ChatIcons.js.map +1 -0
- package/dist/esm/components/editor/ChatPanel/ChatToolCall.js +3 -5
- package/dist/esm/components/editor/ChatPanel/ChatToolCall.js.map +1 -1
- package/dist/esm/components/navigation/ContextMenu/ContextMenu.js +61 -1
- package/dist/esm/components/navigation/ContextMenu/ContextMenu.js.map +1 -1
- package/dist/esm/components/navigation/Menu/Menu.helpers.js +62 -1
- package/dist/esm/components/navigation/Menu/Menu.helpers.js.map +1 -1
- package/dist/esm/components/navigation/Menu/Menu.js +61 -1
- package/dist/esm/components/navigation/Menu/Menu.js.map +1 -1
- package/dist/esm/components/navigation/Tabs/Tab.js +62 -1
- package/dist/esm/components/navigation/Tabs/Tab.js.map +1 -1
- package/dist/esm/components/shell/MenuBar/MenuBar.js +4 -4
- package/dist/esm/components/shell/MenuBar/MenuBar.js.map +1 -1
- package/dist/esm/components/shell/StatusBar/StatusBar.css.js +1 -1
- package/dist/esm/components/shell/StatusBar/StatusBar.js +5 -5
- package/dist/esm/components/shell/StatusBar/StatusBar.js.map +1 -1
- package/dist/esm/components/shell/Toolbar/Toolbar.js +8 -8
- package/dist/esm/components/shell/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/contract.css.js +1 -1
- package/dist/esm/theme/darkTheme.css.js +2 -2
- package/dist/types/components/shell/MenuBar/MenuBar.d.ts +1 -1
- package/dist/types/components/shell/MenuBar/MenuBar.types.d.ts +1 -1
- package/dist/types/components/shell/StatusBar/StatusBar.d.ts +3 -3
- package/dist/types/components/shell/StatusBar/StatusBar.types.d.ts +3 -3
- package/dist/types/components/shell/Toolbar/Toolbar.d.ts +3 -3
- package/dist/types/components/shell/Toolbar/Toolbar.types.d.ts +3 -3
- package/dist/types/index.d.ts +1 -2
- package/dist/types/theme/contract.css.d.ts +1 -0
- package/dist/types/theme/darkTheme.css.d.ts +1 -0
- package/package.json +9 -2
- package/dist/esm/components/primitives/BaseButton/BaseButton.js +0 -18
- package/dist/esm/components/primitives/BaseButton/BaseButton.js.map +0 -1
- package/dist/esm/utils/cn.js +0 -6
- package/dist/esm/utils/cn.js.map +0 -1
- package/dist/types/utils/cn.d.ts +0 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Icon } from '../primitives/Icon/Icon.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Unlock icon component for security and unlocked states.
|
|
8
|
+
*
|
|
9
|
+
* A standard open padlock icon commonly used for indicating unlocked content,
|
|
10
|
+
* accessible features, and unprotected operations in editor interfaces.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // Basic usage
|
|
15
|
+
* <UnlockIcon />
|
|
16
|
+
*
|
|
17
|
+
* // With custom size and color
|
|
18
|
+
* <UnlockIcon size="md" color="success" />
|
|
19
|
+
*
|
|
20
|
+
* // In a security context
|
|
21
|
+
* <Button icon={<UnlockIcon />}>Unlock</Button>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const UnlockIcon = /*#__PURE__*/ React.memo(props => {
|
|
25
|
+
return (jsxs(Icon, { ...props, children: [jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }), jsx("path", { d: "M7 11V7a5 5 0 0 1 9.9-1" })] }));
|
|
26
|
+
});
|
|
27
|
+
UnlockIcon.displayName = 'UnlockIcon';
|
|
28
|
+
|
|
29
|
+
export { UnlockIcon };
|
|
30
|
+
//# sourceMappingURL=UnlockIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnlockIcon.js","sources":["../../../../../src/components/Icons/UnlockIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAOA;;;;;;;;;;;;;;;;;AAiBG;AACI;AAEH;AAMF;AAGF;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Icon } from '../primitives/Icon/Icon.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Upload icon component for upload actions.
|
|
8
|
+
*
|
|
9
|
+
* A standard upload arrow icon commonly used for uploading files,
|
|
10
|
+
* importing data, and file transfer operations in editor interfaces.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // Basic usage
|
|
15
|
+
* <UploadIcon />
|
|
16
|
+
*
|
|
17
|
+
* // With custom size and color
|
|
18
|
+
* <UploadIcon size="lg" color="primary" />
|
|
19
|
+
*
|
|
20
|
+
* // In an upload button
|
|
21
|
+
* <Button icon={<UploadIcon />}>Upload</Button>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const UploadIcon = /*#__PURE__*/ React.memo(props => {
|
|
25
|
+
return (jsxs(Icon, { ...props, children: [jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), jsx("polyline", { points: "17,8 12,3 7,8" }), jsx("line", { x1: "12", y1: "3", x2: "12", y2: "15" })] }));
|
|
26
|
+
});
|
|
27
|
+
UploadIcon.displayName = 'UploadIcon';
|
|
28
|
+
|
|
29
|
+
export { UploadIcon };
|
|
30
|
+
//# sourceMappingURL=UploadIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UploadIcon.js","sources":["../../../../../src/components/Icons/UploadIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAOA;;;;;;;;;;;;;;;;;AAiBG;AACI;AAEH;AAOF;AAGF;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Icon } from '../primitives/Icon/Icon.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* User icon component for user profiles and accounts.
|
|
8
|
+
*
|
|
9
|
+
* A standard user silhouette icon commonly used for user profiles,
|
|
10
|
+
* account management, and person-related features in editor interfaces.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // Basic usage
|
|
15
|
+
* <UserIcon />
|
|
16
|
+
*
|
|
17
|
+
* // With custom size and color
|
|
18
|
+
* <UserIcon size="sm" color="secondary" />
|
|
19
|
+
*
|
|
20
|
+
* // In a profile context
|
|
21
|
+
* <Button icon={<UserIcon />}>Profile</Button>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const UserIcon = /*#__PURE__*/ React.memo(props => {
|
|
25
|
+
return (jsxs(Icon, { ...props, children: [jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }), jsx("circle", { cx: "12", cy: "7", r: "4" })] }));
|
|
26
|
+
});
|
|
27
|
+
UserIcon.displayName = 'UserIcon';
|
|
28
|
+
|
|
29
|
+
export { UserIcon };
|
|
30
|
+
//# sourceMappingURL=UserIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserIcon.js","sources":["../../../../../src/components/Icons/UserIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAOA;;;;;;;;;;;;;;;;;AAiBG;AACI;;AAQL;AAGF;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Icon } from '../primitives/Icon/Icon.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Warning icon component for warning states.
|
|
8
|
+
*
|
|
9
|
+
* A standard triangle with exclamation icon commonly used for warnings,
|
|
10
|
+
* caution messages, and alert notifications in editor interfaces.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // Basic usage
|
|
15
|
+
* <WarningIcon />
|
|
16
|
+
*
|
|
17
|
+
* // With custom size and color
|
|
18
|
+
* <WarningIcon size="md" color="warning" />
|
|
19
|
+
*
|
|
20
|
+
* // In a warning context
|
|
21
|
+
* <Button icon={<WarningIcon />}>Warning</Button>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const WarningIcon = /*#__PURE__*/ React.memo(props => {
|
|
25
|
+
return (jsxs(Icon, { ...props, children: [jsx("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }), jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }), jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })] }));
|
|
26
|
+
});
|
|
27
|
+
WarningIcon.displayName = 'WarningIcon';
|
|
28
|
+
|
|
29
|
+
export { WarningIcon };
|
|
30
|
+
//# sourceMappingURL=WarningIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WarningIcon.js","sources":["../../../../../src/components/Icons/WarningIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAOA;;;;;;;;;;;;;;;;;AAiBG;AACI;;AAUP;AAEA;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Icon } from '../primitives/Icon/Icon.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Zoom In icon component for zoom in actions.
|
|
8
|
+
*
|
|
9
|
+
* A standard magnifying glass with plus icon commonly used for zooming in,
|
|
10
|
+
* enlarging content, and scale increase operations in editor interfaces.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // Basic usage
|
|
15
|
+
* <ZoomInIcon />
|
|
16
|
+
*
|
|
17
|
+
* // With custom size and color
|
|
18
|
+
* <ZoomInIcon size="md" color="accent" />
|
|
19
|
+
*
|
|
20
|
+
* // In a zoom context
|
|
21
|
+
* <Button icon={<ZoomInIcon />}>Zoom In</Button>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const ZoomInIcon = /*#__PURE__*/ React.memo(props => {
|
|
25
|
+
return (jsxs(Icon, { ...props, children: [jsx("circle", { cx: "11", cy: "11", r: "8" }), jsx("path", { d: "M21 21l-4.35-4.35" }), jsx("line", { x1: "11", y1: "8", x2: "11", y2: "14" }), jsx("line", { x1: "8", y1: "11", x2: "14", y2: "11" })] }));
|
|
26
|
+
});
|
|
27
|
+
ZoomInIcon.displayName = 'ZoomInIcon';
|
|
28
|
+
|
|
29
|
+
export { ZoomInIcon };
|
|
30
|
+
//# sourceMappingURL=ZoomInIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomInIcon.js","sources":["../../../../../src/components/Icons/ZoomInIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAOA;;;;;;;;;;;;;;;;;AAiBG;AACI;AAEH;AAQF;AAGF;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Icon } from '../primitives/Icon/Icon.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Zoom Out icon component for zoom out actions.
|
|
8
|
+
*
|
|
9
|
+
* A standard magnifying glass with minus icon commonly used for zooming out,
|
|
10
|
+
* reducing content, and scale decrease operations in editor interfaces.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // Basic usage
|
|
15
|
+
* <ZoomOutIcon />
|
|
16
|
+
*
|
|
17
|
+
* // With custom size and color
|
|
18
|
+
* <ZoomOutIcon size="lg" color="secondary" />
|
|
19
|
+
*
|
|
20
|
+
* // In a zoom context
|
|
21
|
+
* <Button icon={<ZoomOutIcon />}>Zoom Out</Button>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
const ZoomOutIcon = /*#__PURE__*/ React.memo(props => {
|
|
25
|
+
return (jsxs(Icon, { ...props, children: [jsx("circle", { cx: "11", cy: "11", r: "8" }), jsx("path", { d: "M21 21l-4.35-4.35" }), jsx("line", { x1: "8", y1: "11", x2: "14", y2: "11" })] }));
|
|
26
|
+
});
|
|
27
|
+
ZoomOutIcon.displayName = 'ZoomOutIcon';
|
|
28
|
+
|
|
29
|
+
export { ZoomOutIcon };
|
|
30
|
+
//# sourceMappingURL=ZoomOutIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoomOutIcon.js","sources":["../../../../../src/components/Icons/ZoomOutIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAOA;;;;;;;;;;;;;;;;;AAiBG;AACI;;AAUP;AAEA;;"}
|
|
@@ -4,7 +4,63 @@ import { assignInlineVars } from '../../../node_modules/@vanilla-extract/dynamic
|
|
|
4
4
|
import { IconButton } from '../../primitives/IconButton/IconButton.js';
|
|
5
5
|
import { Select } from '../Select/Select.js';
|
|
6
6
|
import { Tooltip } from '../../primitives/Tooltip/Tooltip.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../Icons/AddIcon.js';
|
|
8
|
+
import '../../Icons/AiChatIcon.js';
|
|
9
|
+
import '../../Icons/AiSparklesIcon.js';
|
|
10
|
+
import '../../Icons/ArrowDownIcon.js';
|
|
11
|
+
import '../../Icons/ArrowLeftIcon.js';
|
|
12
|
+
import '../../Icons/ArrowRightIcon.js';
|
|
13
|
+
import '../../Icons/ArrowUpIcon.js';
|
|
14
|
+
import '../../Icons/BookmarkIcon.js';
|
|
15
|
+
import '../../Icons/CalendarIcon.js';
|
|
16
|
+
import '../../Icons/ChevronDownIcon.js';
|
|
17
|
+
import '../../Icons/ChevronUpIcon.js';
|
|
18
|
+
import '../../Icons/ClockIcon.js';
|
|
19
|
+
import '../../Icons/CloseIcon.js';
|
|
20
|
+
import '../../Icons/CodeIcon.js';
|
|
21
|
+
import '../../Icons/CopyIcon.js';
|
|
22
|
+
import '../../Icons/CutIcon.js';
|
|
23
|
+
import '../../Icons/DownloadIcon.js';
|
|
24
|
+
import '../../Icons/EditIcon.js';
|
|
25
|
+
import '../../Icons/ErrorIcon.js';
|
|
26
|
+
import '../../Icons/EyeDropperIcon.js';
|
|
27
|
+
import '../../Icons/EyeIcon.js';
|
|
28
|
+
import '../../Icons/FilterIcon.js';
|
|
29
|
+
import '../../Icons/FolderIcon.js';
|
|
30
|
+
import '../../Icons/FullscreenIcon.js';
|
|
31
|
+
import '../../Icons/GridIcon.js';
|
|
32
|
+
import '../../Icons/HeartIcon.js';
|
|
33
|
+
import '../../Icons/HelpIcon.js';
|
|
34
|
+
import '../../Icons/HomeIcon.js';
|
|
35
|
+
import '../../Icons/InfoIcon.js';
|
|
36
|
+
import '../../Icons/LinkIcon.js';
|
|
37
|
+
import '../../Icons/ListIcon.js';
|
|
38
|
+
import '../../Icons/LockIcon.js';
|
|
39
|
+
import '../../Icons/MaximizeIcon.js';
|
|
40
|
+
import '../../Icons/MenuIcon.js';
|
|
41
|
+
import '../../Icons/MinimizeIcon.js';
|
|
42
|
+
import '../../Icons/PasteIcon.js';
|
|
43
|
+
import '../../Icons/PlayIcon.js';
|
|
44
|
+
import '../../Icons/RedoIcon.js';
|
|
45
|
+
import '../../Icons/RefreshIcon.js';
|
|
46
|
+
import '../../Icons/RobotIcon.js';
|
|
47
|
+
import '../../Icons/SaveIcon.js';
|
|
48
|
+
import '../../Icons/SearchIcon.js';
|
|
49
|
+
import '../../Icons/SettingsIcon.js';
|
|
50
|
+
import '../../Icons/SortIcon.js';
|
|
51
|
+
import '../../Icons/StarIcon.js';
|
|
52
|
+
import '../../Icons/SuccessIcon.js';
|
|
53
|
+
import '../../Icons/TagIcon.js';
|
|
54
|
+
import '../../Icons/TrashIcon.js';
|
|
55
|
+
import '../../Icons/UndoIcon.js';
|
|
56
|
+
import '../../Icons/UnlockIcon.js';
|
|
57
|
+
import '../../Icons/UploadIcon.js';
|
|
58
|
+
import '../../Icons/UserIcon.js';
|
|
59
|
+
import '../../Icons/WarningIcon.js';
|
|
60
|
+
import '../../Icons/ZoomInIcon.js';
|
|
61
|
+
import '../../Icons/ZoomOutIcon.js';
|
|
62
|
+
import '../../Icons/CheckIcon.js';
|
|
63
|
+
import '../../Icons/CircleIcon.js';
|
|
8
64
|
import { TangentFreeIcon } from '../../Icons/TangentFreeIcon.js';
|
|
9
65
|
import { TangentAlignedIcon } from '../../Icons/TangentAlignedIcon.js';
|
|
10
66
|
import { TangentMirroredIcon } from '../../Icons/TangentMirroredIcon.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurveToolbar.js","sources":["../../../../../../src/components/controls/CurveEditor/CurveToolbar.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CurveToolbar.js","sources":["../../../../../../src/components/controls/CurveEditor/CurveToolbar.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA;AACE;AACA;AACA;;AAGF;AAME;AACE;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACD;;;;;;AAgBA;AAED;AACE;;AACA;AACA;;AACF;AAEA;;;AAOK;AA8CP;AAEA;;"}
|
|
@@ -3,18 +3,13 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
5
|
import { attachmentThumbnailStyle, attachmentChipIconStyle, attachmentChipNameStyle, attachmentChipRemoveStyle, attachmentChipStyle } from './ChatPanel.css.js';
|
|
6
|
+
import { MiniSelectionIcon, MiniCodeIcon, MiniImageIcon, MiniFileIcon, MiniCloseIcon } from './ChatIcons.js';
|
|
6
7
|
|
|
7
|
-
// ─── Icons ───────────────────────────────────────────────────────
|
|
8
|
-
const FileIcon = () => (jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [jsx("path", { d: "M9 2H4.5A1.5 1.5 0 003 3.5v9A1.5 1.5 0 004.5 14h7a1.5 1.5 0 001.5-1.5V6L9 2z", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }), jsx("path", { d: "M9 2v4h4", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" })] }));
|
|
9
|
-
const ImageIcon = () => (jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [jsx("rect", { x: "2", y: "2", width: "12", height: "12", rx: "1.5", stroke: "currentColor", strokeWidth: "1.5" }), jsx("circle", { cx: "5.5", cy: "5.5", r: "1.5", fill: "currentColor" }), jsx("path", { d: "M2 11l3-3 2 2 3-3 4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
10
|
-
const CodeIcon = () => (jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: jsx("path", { d: "M5 4L1 8l4 4M11 4l4 4-4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
11
|
-
const SelectionIcon = () => (jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [jsx("rect", { x: "2", y: "2", width: "5", height: "5", rx: "0.5", stroke: "currentColor", strokeWidth: "1.5" }), jsx("rect", { x: "9", y: "9", width: "5", height: "5", rx: "0.5", stroke: "currentColor", strokeWidth: "1.5" })] }));
|
|
12
|
-
const CloseIcon = () => (jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", "aria-hidden": "true", children: jsx("path", { d: "M1 1l6 6M7 1L1 7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }));
|
|
13
8
|
const TYPE_ICONS = {
|
|
14
|
-
file:
|
|
15
|
-
image:
|
|
16
|
-
code:
|
|
17
|
-
selection:
|
|
9
|
+
file: MiniFileIcon,
|
|
10
|
+
image: MiniImageIcon,
|
|
11
|
+
code: MiniCodeIcon,
|
|
12
|
+
selection: MiniSelectionIcon,
|
|
18
13
|
};
|
|
19
14
|
// ─── Component ───────────────────────────────────────────────────
|
|
20
15
|
const ChatAttachmentChip =
|
|
@@ -26,9 +21,9 @@ const ChatAttachmentChip =
|
|
|
26
21
|
e.stopPropagation();
|
|
27
22
|
onRemove?.(attachment.id);
|
|
28
23
|
}, [onRemove, attachment.id]);
|
|
29
|
-
const TypeIcon = TYPE_ICONS[attachment.type] ??
|
|
24
|
+
const TypeIcon = TYPE_ICONS[attachment.type] ?? MiniFileIcon;
|
|
30
25
|
const isClickable = !!onClick;
|
|
31
|
-
return (jsxs("div", { ref: ref, className: cx(attachmentChipStyle, className), style: style, "data-testid": testId, "data-clickable": isClickable || undefined, onClick: isClickable ? handleClick : undefined, role: isClickable ? 'button' : undefined, tabIndex: isClickable ? 0 : undefined, ...rest, children: [attachment.type === 'image' && attachment.thumbnailUrl ? (jsx("img", { src: attachment.thumbnailUrl, alt: attachment.name, className: attachmentThumbnailStyle })) : (jsx("span", { className: attachmentChipIconStyle, children: jsx(TypeIcon, {}) })), jsx("span", { className: attachmentChipNameStyle, children: attachment.name }), removable && (jsx("button", { type: "button", className: attachmentChipRemoveStyle, onClick: handleRemove, "aria-label": `Remove ${attachment.name}`, children: jsx(
|
|
26
|
+
return (jsxs("div", { ref: ref, className: cx(attachmentChipStyle, className), style: style, "data-testid": testId, "data-clickable": isClickable || undefined, onClick: isClickable ? handleClick : undefined, role: isClickable ? 'button' : undefined, tabIndex: isClickable ? 0 : undefined, ...rest, children: [attachment.type === 'image' && attachment.thumbnailUrl ? (jsx("img", { src: attachment.thumbnailUrl, alt: attachment.name, className: attachmentThumbnailStyle })) : (jsx("span", { className: attachmentChipIconStyle, children: jsx(TypeIcon, {}) })), jsx("span", { className: attachmentChipNameStyle, children: attachment.name }), removable && (jsx("button", { type: "button", className: attachmentChipRemoveStyle, onClick: handleRemove, "aria-label": `Remove ${attachment.name}`, children: jsx(MiniCloseIcon, {}) }))] }));
|
|
32
27
|
});
|
|
33
28
|
ChatAttachmentChip.displayName = 'ChatAttachmentChip';
|
|
34
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatAttachment.js","sources":["../../../../../../src/components/editor/ChatPanel/ChatAttachment.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatAttachment.js","sources":["../../../../../../src/components/editor/ChatPanel/ChatAttachment.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAqBA;AACE;AACA;AACA;AACA;;AAGF;;AAGE;AAYI;AACE;AACF;AAEA;;AAGI;;;AAMJ;AAEA;AAsCF;AAGJ;;"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
5
|
import { contextChipIconStyle, contextChipLabelStyle, contextChipItemsStyle, contextChipDismissStyle, contextChipStyle } from './ChatPanel.css.js';
|
|
6
|
+
import { MiniCloseIcon } from './ChatIcons.js';
|
|
6
7
|
|
|
7
|
-
const CloseIcon = () => (jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", "aria-hidden": "true", children: jsx("path", { d: "M1 1l6 6M7 1L1 7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }));
|
|
8
8
|
const ChatContextChip = /*#__PURE__*/ React.memo(({ label, items, icon, onDismiss, className, style, testId, ref, ...rest }) => {
|
|
9
|
-
|
|
10
|
-
onDismiss?.();
|
|
11
|
-
}, [onDismiss]);
|
|
12
|
-
return (jsxs("div", { ref: ref, className: cx(contextChipStyle, className), style: style, "data-testid": testId, ...rest, children: [icon && jsx("span", { className: contextChipIconStyle, children: icon }), jsxs("span", { className: contextChipLabelStyle, children: [label, ":"] }), jsx("span", { className: contextChipItemsStyle, children: items.join(', ') }), onDismiss && (jsx("button", { type: "button", className: contextChipDismissStyle, onClick: handleDismiss, "aria-label": `Dismiss ${label}`, children: jsx(CloseIcon, {}) }))] }));
|
|
9
|
+
return (jsxs("div", { ref: ref, className: cx(contextChipStyle, className), style: style, "data-testid": testId, ...rest, children: [icon && jsx("span", { className: contextChipIconStyle, children: icon }), jsxs("span", { className: contextChipLabelStyle, children: [label, ":"] }), jsx("span", { className: contextChipItemsStyle, children: items.join(', ') }), onDismiss && (jsx("button", { type: "button", className: contextChipDismissStyle, onClick: onDismiss, "aria-label": `Dismiss ${label}`, children: jsx(MiniCloseIcon, {}) }))] }));
|
|
13
10
|
});
|
|
14
11
|
ChatContextChip.displayName = 'ChatContextChip';
|
|
15
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContextChip.js","sources":["../../../../../../src/components/editor/ChatPanel/ChatContextChip.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatContextChip.js","sources":["../../../../../../src/components/editor/ChatPanel/ChatContextChip.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAcO;AAYH;AAuBF;AAGF;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Shared mini-icons for Chat components.
|
|
6
|
+
* These use smaller viewBoxes (8x8, 16x16) than the library's Icon system (24x24)
|
|
7
|
+
* and are designed for inline use in compact chat UI elements.
|
|
8
|
+
*/
|
|
9
|
+
const MiniCloseIcon = () => (jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", "aria-hidden": "true", children: jsx("path", { d: "M1 1l6 6M7 1L1 7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }));
|
|
10
|
+
const MiniFileIcon = () => (jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [jsx("path", { d: "M9 2H4.5A1.5 1.5 0 003 3.5v9A1.5 1.5 0 004.5 14h7a1.5 1.5 0 001.5-1.5V6L9 2z", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }), jsx("path", { d: "M9 2v4h4", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" })] }));
|
|
11
|
+
const MiniImageIcon = () => (jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [jsx("rect", { x: "2", y: "2", width: "12", height: "12", rx: "1.5", stroke: "currentColor", strokeWidth: "1.5" }), jsx("circle", { cx: "5.5", cy: "5.5", r: "1.5", fill: "currentColor" }), jsx("path", { d: "M2 11l3-3 2 2 3-3 4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
12
|
+
const MiniCodeIcon = () => (jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: jsx("path", { d: "M5 4L1 8l4 4M11 4l4 4-4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
13
|
+
const MiniSelectionIcon = () => (jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [jsx("rect", { x: "2", y: "2", width: "5", height: "5", rx: "0.5", stroke: "currentColor", strokeWidth: "1.5" }), jsx("rect", { x: "9", y: "9", width: "5", height: "5", rx: "0.5", stroke: "currentColor", strokeWidth: "1.5" })] }));
|
|
14
|
+
const MiniWrenchIcon = () => (jsxs("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [jsx("path", { d: "M14.25 1.75L12.5 3.5L13 5L11.5 6.5L10.5 5.5L5.5 10.5L6.5 11.5L5 13L3.5 12.5L1.75 14.25", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M8.5 2.5L10 4L8 6L6.5 4.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
15
|
+
const MiniChevronIcon = ({ size = 10 }) => (jsx("svg", { width: size, height: size, viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: jsx("path", { d: "M4.5 3L7.5 6L4.5 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
16
|
+
|
|
17
|
+
export { MiniChevronIcon, MiniCloseIcon, MiniCodeIcon, MiniFileIcon, MiniImageIcon, MiniSelectionIcon, MiniWrenchIcon };
|
|
18
|
+
//# sourceMappingURL=ChatIcons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatIcons.js","sources":["../../../../../../src/components/editor/ChatPanel/ChatIcons.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;AAIA;;;;AAIG;;AAaI;;;AAqEA;AA6BA;AAyBA;;"}
|
|
@@ -3,10 +3,8 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import React, { useState, useCallback } from 'react';
|
|
4
4
|
import { cx } from '../../../utils/cx.js';
|
|
5
5
|
import { toolCallHeaderStyle, toolCallIconStyle, toolCallNameStyle, toolCallStatusRecipe, toolCallDurationStyle, toolCallChevronRecipe, toolCallDetailsStyle, toolCallSectionLabelStyle, toolCallPreStyle, toolCallErrorStyle, toolCallContainerStyle } from './ChatPanel.css.js';
|
|
6
|
+
import { MiniWrenchIcon, MiniChevronIcon } from './ChatIcons.js';
|
|
6
7
|
|
|
7
|
-
// ─── Icons ───────────────────────────────────────────────────────
|
|
8
|
-
const WrenchIcon = () => (jsxs("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [jsx("path", { d: "M14.25 1.75L12.5 3.5L13 5L11.5 6.5L10.5 5.5L5.5 10.5L6.5 11.5L5 13L3.5 12.5L1.75 14.25", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M8.5 2.5L10 4L8 6L6.5 4.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }));
|
|
9
|
-
const ChevronIcon = ({ size = 10 }) => (jsx("svg", { width: size, height: size, viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: jsx("path", { d: "M4.5 3L7.5 6L4.5 9", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
10
8
|
// ─── Status label map ────────────────────────────────────────────
|
|
11
9
|
const STATUS_LABELS = {
|
|
12
10
|
pending: 'Pending',
|
|
@@ -24,10 +22,10 @@ const ChatToolCall = /*#__PURE__*/ React.memo(({ toolCall, collapsible = true, d
|
|
|
24
22
|
}, [collapsible]);
|
|
25
23
|
const statusLabel = STATUS_LABELS[toolCall.status];
|
|
26
24
|
const ariaLabel = `Tool ${toolCall.name}: ${statusLabel}`;
|
|
27
|
-
return (jsxs("div", { ref: ref, className: cx(toolCallContainerStyle, className), style: style, "data-testid": testId, "aria-label": ariaLabel, ...rest, children: [jsxs("button", { type: "button", className: toolCallHeaderStyle, onClick: handleToggle, "aria-expanded": collapsible ? expanded : undefined, children: [jsx("span", { className: toolCallIconStyle, children: icon ?? jsx(
|
|
25
|
+
return (jsxs("div", { ref: ref, className: cx(toolCallContainerStyle, className), style: style, "data-testid": testId, "aria-label": ariaLabel, ...rest, children: [jsxs("button", { type: "button", className: toolCallHeaderStyle, onClick: handleToggle, "aria-expanded": collapsible ? expanded : undefined, children: [jsx("span", { className: toolCallIconStyle, children: icon ?? jsx(MiniWrenchIcon, {}) }), jsx("span", { className: toolCallNameStyle, children: toolCall.name }), jsx("span", { className: toolCallStatusRecipe({ status: toolCall.status }), children: statusLabel }), toolCall.durationMs !== undefined &&
|
|
28
26
|
toolCall.status === 'completed' && (jsxs("span", { className: toolCallDurationStyle, children: [toolCall.durationMs, "ms"] })), collapsible && (jsx("span", { className: toolCallChevronRecipe({
|
|
29
27
|
open: expanded || undefined,
|
|
30
|
-
}), children: jsx(
|
|
28
|
+
}), children: jsx(MiniChevronIcon, {}) }))] }), expanded && (jsxs("div", { className: toolCallDetailsStyle, children: [toolCall.input && (jsxs(Fragment, { children: [jsx("span", { className: toolCallSectionLabelStyle, children: "Input" }), jsx("pre", { className: toolCallPreStyle, children: JSON.stringify(toolCall.input, null, 2) })] })), toolCall.output && (jsxs(Fragment, { children: [jsx("span", { className: toolCallSectionLabelStyle, children: "Output" }), renderOutput ? (renderOutput(toolCall.output)) : (jsx("pre", { className: toolCallPreStyle, children: JSON.stringify(toolCall.output, null, 2) }))] })), toolCall.error && (jsxs(Fragment, { children: [jsx("span", { className: toolCallSectionLabelStyle, children: "Error" }), jsx("span", { className: toolCallErrorStyle, children: toolCall.error })] }))] }))] }));
|
|
31
29
|
});
|
|
32
30
|
ChatToolCall.displayName = 'ChatToolCall';
|
|
33
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatToolCall.js","sources":["../../../../../../src/components/editor/ChatPanel/ChatToolCall.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatToolCall.js","sources":["../../../../../../src/components/editor/ChatPanel/ChatToolCall.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAoBA;AAEA;AACE;AACA;AACA;AACA;;AAGF;AAEO;;AAeH;;;;AAIA;;;AAKA;;;AAoCW;AAyCb;AAGF;;"}
|
|
@@ -2,9 +2,69 @@
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
|
|
5
|
-
import '../../
|
|
5
|
+
import '../../Icons/AddIcon.js';
|
|
6
|
+
import '../../Icons/AiChatIcon.js';
|
|
7
|
+
import '../../Icons/AiSparklesIcon.js';
|
|
8
|
+
import '../../Icons/ArrowDownIcon.js';
|
|
9
|
+
import '../../Icons/ArrowLeftIcon.js';
|
|
10
|
+
import '../../Icons/ArrowRightIcon.js';
|
|
11
|
+
import '../../Icons/ArrowUpIcon.js';
|
|
12
|
+
import '../../Icons/BookmarkIcon.js';
|
|
13
|
+
import '../../Icons/CalendarIcon.js';
|
|
14
|
+
import '../../Icons/ChevronDownIcon.js';
|
|
15
|
+
import '../../Icons/ChevronUpIcon.js';
|
|
16
|
+
import '../../Icons/ClockIcon.js';
|
|
17
|
+
import '../../Icons/CloseIcon.js';
|
|
18
|
+
import '../../Icons/CodeIcon.js';
|
|
19
|
+
import '../../Icons/CopyIcon.js';
|
|
20
|
+
import '../../Icons/CutIcon.js';
|
|
21
|
+
import '../../Icons/DownloadIcon.js';
|
|
22
|
+
import '../../Icons/EditIcon.js';
|
|
23
|
+
import '../../Icons/ErrorIcon.js';
|
|
24
|
+
import '../../Icons/EyeDropperIcon.js';
|
|
25
|
+
import '../../Icons/EyeIcon.js';
|
|
26
|
+
import '../../Icons/FilterIcon.js';
|
|
27
|
+
import '../../Icons/FolderIcon.js';
|
|
28
|
+
import '../../Icons/FullscreenIcon.js';
|
|
29
|
+
import '../../Icons/GridIcon.js';
|
|
30
|
+
import '../../Icons/HeartIcon.js';
|
|
31
|
+
import '../../Icons/HelpIcon.js';
|
|
32
|
+
import '../../Icons/HomeIcon.js';
|
|
33
|
+
import '../../Icons/InfoIcon.js';
|
|
34
|
+
import '../../Icons/LinkIcon.js';
|
|
35
|
+
import '../../Icons/ListIcon.js';
|
|
36
|
+
import '../../Icons/LockIcon.js';
|
|
37
|
+
import '../../Icons/MaximizeIcon.js';
|
|
38
|
+
import '../../Icons/MenuIcon.js';
|
|
39
|
+
import '../../Icons/MinimizeIcon.js';
|
|
40
|
+
import '../../Icons/PasteIcon.js';
|
|
41
|
+
import '../../Icons/PlayIcon.js';
|
|
42
|
+
import '../../Icons/RedoIcon.js';
|
|
43
|
+
import '../../Icons/RefreshIcon.js';
|
|
44
|
+
import '../../Icons/RobotIcon.js';
|
|
45
|
+
import '../../Icons/SaveIcon.js';
|
|
46
|
+
import '../../Icons/SearchIcon.js';
|
|
47
|
+
import '../../Icons/SettingsIcon.js';
|
|
48
|
+
import '../../Icons/SortIcon.js';
|
|
49
|
+
import '../../Icons/StarIcon.js';
|
|
50
|
+
import '../../Icons/SuccessIcon.js';
|
|
51
|
+
import '../../Icons/TagIcon.js';
|
|
52
|
+
import '../../Icons/TrashIcon.js';
|
|
53
|
+
import '../../Icons/UndoIcon.js';
|
|
54
|
+
import '../../Icons/UnlockIcon.js';
|
|
55
|
+
import '../../Icons/UploadIcon.js';
|
|
56
|
+
import '../../Icons/UserIcon.js';
|
|
57
|
+
import '../../Icons/WarningIcon.js';
|
|
58
|
+
import '../../Icons/ZoomInIcon.js';
|
|
59
|
+
import '../../Icons/ZoomOutIcon.js';
|
|
6
60
|
import { CheckIcon } from '../../Icons/CheckIcon.js';
|
|
7
61
|
import { CircleIcon } from '../../Icons/CircleIcon.js';
|
|
62
|
+
import '../../Icons/TangentFreeIcon.js';
|
|
63
|
+
import '../../Icons/TangentAlignedIcon.js';
|
|
64
|
+
import '../../Icons/TangentMirroredIcon.js';
|
|
65
|
+
import '../../Icons/TangentAutoIcon.js';
|
|
66
|
+
import '../../Icons/TangentLinearIcon.js';
|
|
67
|
+
import '../../Icons/TangentStepIcon.js';
|
|
8
68
|
import { Text } from '../../primitives/Text/Text.js';
|
|
9
69
|
import { cx } from '../../../utils/cx.js';
|
|
10
70
|
import { Menu } from '../Menu/Menu.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.js","sources":["../../../../../../src/components/navigation/ContextMenu/ContextMenu.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContextMenu.js","sources":["../../../../../../src/components/navigation/ContextMenu/ContextMenu.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM;AAeJ;;AAMA;AACE;AACF;AAEA;;;AAGM;AACA;;AAkBF;;AAIE;;AA2BJ;AACF;;;;;;;;;AASC;AAED;AAuBF;;"}
|
|
@@ -1,8 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { Menu } from '@base-ui/react/menu';
|
|
4
|
-
import '../../
|
|
4
|
+
import '../../Icons/AddIcon.js';
|
|
5
|
+
import '../../Icons/AiChatIcon.js';
|
|
6
|
+
import '../../Icons/AiSparklesIcon.js';
|
|
7
|
+
import '../../Icons/ArrowDownIcon.js';
|
|
8
|
+
import '../../Icons/ArrowLeftIcon.js';
|
|
9
|
+
import '../../Icons/ArrowRightIcon.js';
|
|
10
|
+
import '../../Icons/ArrowUpIcon.js';
|
|
11
|
+
import '../../Icons/BookmarkIcon.js';
|
|
12
|
+
import '../../Icons/CalendarIcon.js';
|
|
13
|
+
import '../../Icons/ChevronDownIcon.js';
|
|
5
14
|
import { ChevronUpIcon } from '../../Icons/ChevronUpIcon.js';
|
|
15
|
+
import '../../Icons/ClockIcon.js';
|
|
16
|
+
import '../../Icons/CloseIcon.js';
|
|
17
|
+
import '../../Icons/CodeIcon.js';
|
|
18
|
+
import '../../Icons/CopyIcon.js';
|
|
19
|
+
import '../../Icons/CutIcon.js';
|
|
20
|
+
import '../../Icons/DownloadIcon.js';
|
|
21
|
+
import '../../Icons/EditIcon.js';
|
|
22
|
+
import '../../Icons/ErrorIcon.js';
|
|
23
|
+
import '../../Icons/EyeDropperIcon.js';
|
|
24
|
+
import '../../Icons/EyeIcon.js';
|
|
25
|
+
import '../../Icons/FilterIcon.js';
|
|
26
|
+
import '../../Icons/FolderIcon.js';
|
|
27
|
+
import '../../Icons/FullscreenIcon.js';
|
|
28
|
+
import '../../Icons/GridIcon.js';
|
|
29
|
+
import '../../Icons/HeartIcon.js';
|
|
30
|
+
import '../../Icons/HelpIcon.js';
|
|
31
|
+
import '../../Icons/HomeIcon.js';
|
|
32
|
+
import '../../Icons/InfoIcon.js';
|
|
33
|
+
import '../../Icons/LinkIcon.js';
|
|
34
|
+
import '../../Icons/ListIcon.js';
|
|
35
|
+
import '../../Icons/LockIcon.js';
|
|
36
|
+
import '../../Icons/MaximizeIcon.js';
|
|
37
|
+
import '../../Icons/MenuIcon.js';
|
|
38
|
+
import '../../Icons/MinimizeIcon.js';
|
|
39
|
+
import '../../Icons/PasteIcon.js';
|
|
40
|
+
import '../../Icons/PlayIcon.js';
|
|
41
|
+
import '../../Icons/RedoIcon.js';
|
|
42
|
+
import '../../Icons/RefreshIcon.js';
|
|
43
|
+
import '../../Icons/RobotIcon.js';
|
|
44
|
+
import '../../Icons/SaveIcon.js';
|
|
45
|
+
import '../../Icons/SearchIcon.js';
|
|
46
|
+
import '../../Icons/SettingsIcon.js';
|
|
47
|
+
import '../../Icons/SortIcon.js';
|
|
48
|
+
import '../../Icons/StarIcon.js';
|
|
49
|
+
import '../../Icons/SuccessIcon.js';
|
|
50
|
+
import '../../Icons/TagIcon.js';
|
|
51
|
+
import '../../Icons/TrashIcon.js';
|
|
52
|
+
import '../../Icons/UndoIcon.js';
|
|
53
|
+
import '../../Icons/UnlockIcon.js';
|
|
54
|
+
import '../../Icons/UploadIcon.js';
|
|
55
|
+
import '../../Icons/UserIcon.js';
|
|
56
|
+
import '../../Icons/WarningIcon.js';
|
|
57
|
+
import '../../Icons/ZoomInIcon.js';
|
|
58
|
+
import '../../Icons/ZoomOutIcon.js';
|
|
59
|
+
import '../../Icons/CheckIcon.js';
|
|
60
|
+
import '../../Icons/CircleIcon.js';
|
|
61
|
+
import '../../Icons/TangentFreeIcon.js';
|
|
62
|
+
import '../../Icons/TangentAlignedIcon.js';
|
|
63
|
+
import '../../Icons/TangentMirroredIcon.js';
|
|
64
|
+
import '../../Icons/TangentAutoIcon.js';
|
|
65
|
+
import '../../Icons/TangentLinearIcon.js';
|
|
66
|
+
import '../../Icons/TangentStepIcon.js';
|
|
6
67
|
import { Text } from '../../primitives/Text/Text.js';
|
|
7
68
|
import { Stack } from '../../layout/Stack/Stack.js';
|
|
8
69
|
import { cx } from '../../../utils/cx.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.helpers.js","sources":["../../../../../../src/components/navigation/Menu/Menu.helpers.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Menu.helpers.js","sources":["../../../../../../src/components/navigation/Menu/Menu.helpers.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA;;AAEG;AACI;AAmBP;;AAEG;AACI;AAyBP;;AAEG;AACI;AAyBP;;AAEG;AACI;AAoBP;;AAEG;AACI;AAQL;AACE;AACE;AACF;AACE;AAOF;AACA;;;AAGJ;AAEA;;AAEG;;AAYD;;AAUA;AACE;;AAqBF;AACF;;"}
|