@mindlogic-ai/logician-ui 4.0.0-alpha.12 → 4.0.0-alpha.13
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/components/ColorMode/ColorModeToggle.js +2 -2
- package/dist/components/ColorMode/ColorModeToggle.js.map +1 -1
- package/dist/components/ColorMode/ColorModeToggle.mjs +2 -2
- package/dist/components/ColorMode/ColorModeToggle.mjs.map +1 -1
- package/dist/components/FileInput/FileInput.js +1 -1
- package/dist/components/FileInput/FileInput.js.map +1 -1
- package/dist/components/FileInput/FileInput.mjs +2 -2
- package/dist/components/FileInput/FileInput.mjs.map +1 -1
- package/dist/components/FileItem/FileItem.js +1 -1
- package/dist/components/FileItem/FileItem.js.map +1 -1
- package/dist/components/FileItem/FileItem.mjs +2 -2
- package/dist/components/FileItem/FileItem.mjs.map +1 -1
- package/dist/components/FileList/FileList.js +1 -1
- package/dist/components/FileList/FileList.js.map +1 -1
- package/dist/components/FileList/FileList.mjs +2 -2
- package/dist/components/FileList/FileList.mjs.map +1 -1
- package/dist/components/Icon/_constants/iconList.d.ts +2 -1
- package/dist/components/Icon/_constants/iconList.d.ts.map +1 -1
- package/dist/components/Icon/_constants/iconList.js +309 -134
- package/dist/components/Icon/_constants/iconList.js.map +1 -1
- package/dist/components/Icon/_constants/iconList.mjs +337 -162
- package/dist/components/Icon/_constants/iconList.mjs.map +1 -1
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +205 -42
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Icon/index.mjs +3 -43
- package/dist/components/Icon/index.mjs.map +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/Pagination.mjs +2 -2
- package/dist/components/Pagination/Pagination.mjs.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.mjs +2 -2
- package/dist/components/PasswordInput/PasswordInput.mjs.map +1 -1
- package/dist/components/SeeMoreButton/SeeMoreButton.js +1 -1
- package/dist/components/SeeMoreButton/SeeMoreButton.js.map +1 -1
- package/dist/components/SeeMoreButton/SeeMoreButton.mjs +2 -2
- package/dist/components/SeeMoreButton/SeeMoreButton.mjs.map +1 -1
- package/dist/components/Toast/ToastIcon/ToastIcon.js +4 -4
- package/dist/components/Toast/ToastIcon/ToastIcon.js.map +1 -1
- package/dist/components/Toast/ToastIcon/ToastIcon.mjs +5 -5
- package/dist/components/Toast/ToastIcon/ToastIcon.mjs.map +1 -1
- package/dist/components/Tree/TreeBranchIndicator.js +1 -1
- package/dist/components/Tree/TreeBranchIndicator.js.map +1 -1
- package/dist/components/Tree/TreeBranchIndicator.mjs +2 -2
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.js +1 -1
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.js.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.mjs +2 -2
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.mjs.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.js +1 -1
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.js.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.mjs +2 -2
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.mjs.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.js +1 -1
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.js.map +1 -1
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.mjs +2 -2
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.mjs.map +1 -1
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.d.ts.map +1 -1
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.js +1 -1
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.js.map +1 -1
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.mjs +2 -2
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.mjs.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.js +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.js.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.mjs +2 -2
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.mjs.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.js +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.js.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.mjs +2 -2
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.mjs.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.js +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.js.map +1 -1
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.mjs +2 -2
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.mjs.map +1 -1
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.mjs +2 -2
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.mjs.map +1 -1
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.js +1 -1
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.js.map +1 -1
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.mjs +2 -2
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.mjs.map +1 -1
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.js +1 -1
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.js.map +1 -1
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.mjs +2 -2
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.mjs.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.js +2 -2
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.js.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.mjs +3 -3
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.mjs.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.js +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.js.map +1 -1
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.mjs +2 -2
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.mjs.map +1 -1
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.js +3 -3
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.js.map +1 -1
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.mjs +4 -4
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.mjs.map +1 -1
- package/dist/icons.js +203 -0
- package/dist/icons.js.map +1 -1
- package/dist/icons.mjs +1 -1
- package/package.json +1 -1
- package/src/components/ColorMode/ColorModeToggle.tsx +2 -2
- package/src/components/FileInput/FileInput.tsx +2 -2
- package/src/components/FileItem/FileItem.tsx +10 -10
- package/src/components/FileList/FileList.tsx +2 -2
- package/src/components/Icon/_constants/iconList.ts +523 -299
- package/src/components/Icon/index.tsx +210 -27
- package/src/components/Input/Input.stories.tsx +5 -5
- package/src/components/Pagination/Pagination.tsx +3 -3
- package/src/components/PasswordInput/PasswordInput.tsx +3 -2
- package/src/components/SeeMoreButton/SeeMoreButton.tsx +2 -2
- package/src/components/Toast/ToastIcon/ToastIcon.tsx +8 -8
- package/src/components/Tree/TreeBranchIndicator.tsx +2 -2
- package/src/components/Workflow/canvas/Canvas/BranchLabelBadge.tsx +3 -3
- package/src/components/Workflow/canvas/Canvas/CanvasControls.tsx +15 -15
- package/src/components/Workflow/canvas/Canvas/LabeledEdge.tsx +2 -2
- package/src/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.tsx +8 -4
- package/src/components/Workflow/canvas/DrawerShell/DrawerHeader.tsx +3 -3
- package/src/components/Workflow/canvas/DrawerShell/DrawerIssues.tsx +2 -2
- package/src/components/Workflow/canvas/DrawerShell/DrawerShell.tsx +2 -2
- package/src/components/Workflow/canvas/FieldWrapper/FieldWrapper.tsx +3 -3
- package/src/components/Workflow/canvas/GenericNode/GenericNode.tsx +2 -2
- package/src/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.tsx +2 -2
- package/src/components/Workflow/canvas/NodePalette/NodePalette.tsx +3 -3
- package/src/components/Workflow/canvas/NodePalette/NodePaletteToggle.tsx +2 -2
- package/src/components/Workflow/canvas/NodeShell/NodeShell.tsx +4 -4
- package/src/components/Workflow/stories/toyNodeTypes.tsx +4 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { ReactNode, useMemo, useRef } from 'react';
|
|
4
4
|
import { HStack, Stack } from '@chakra-ui/react';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { AlertCircleIcon, AlertTriangleIcon } from '@/components/Icon';
|
|
7
7
|
import { Subtext } from '@/components/Typography';
|
|
8
8
|
|
|
9
9
|
import { useWorkflowIssueMessage } from '../../useWorkflowIssueMessage';
|
|
@@ -103,9 +103,9 @@ export function FieldWrapper({
|
|
|
103
103
|
<HStack gap={1} align="center">
|
|
104
104
|
<Subtext color={toneColor} display="flex" alignItems="center">
|
|
105
105
|
{tone === 'danger' ? (
|
|
106
|
-
<
|
|
106
|
+
<AlertCircleIcon boxSize="xs" />
|
|
107
107
|
) : (
|
|
108
|
-
<
|
|
108
|
+
<AlertTriangleIcon boxSize="xs" />
|
|
109
109
|
)}
|
|
110
110
|
</Subtext>
|
|
111
111
|
<Subtext color={toneColor}>{resolveIssueMessage(issue)}</Subtext>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { memo, useMemo } from 'react';
|
|
4
4
|
import type { NodeProps } from '@xyflow/react';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { AlertOctagonIcon } from '@/components/Icon';
|
|
7
7
|
|
|
8
8
|
import type { GraphNode } from '../../Workflow.types';
|
|
9
9
|
import { useWorkflow } from '../../WorkflowContext';
|
|
@@ -56,7 +56,7 @@ export const GenericNode = memo(function GenericNode(
|
|
|
56
56
|
// safety category surfaces the broken-ness in the icon tile, not
|
|
57
57
|
// only in the error ring chrome.
|
|
58
58
|
category="safety"
|
|
59
|
-
icon={
|
|
59
|
+
icon={AlertOctagonIcon}
|
|
60
60
|
selected={!!selected}
|
|
61
61
|
runState="error"
|
|
62
62
|
issues={[
|
|
@@ -4,7 +4,7 @@ import { useMemo, useState } from 'react';
|
|
|
4
4
|
import { Box, Flex, VStack } from '@chakra-ui/react';
|
|
5
5
|
import { useReactFlow } from '@xyflow/react';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { ChevronDownIcon } from '@/components/Icon';
|
|
8
8
|
import { Spinner } from '@/components/Spinner';
|
|
9
9
|
import { Subtext, Text } from '@/components/Typography';
|
|
10
10
|
|
|
@@ -207,7 +207,7 @@ export function GraphErrorBanner({
|
|
|
207
207
|
<Text fontSize="sm" fontWeight="semibold" color="slate.1300">
|
|
208
208
|
{summarize(errorCount, warningCount)}
|
|
209
209
|
</Text>
|
|
210
|
-
<
|
|
210
|
+
<ChevronDownIcon
|
|
211
211
|
boxSize="xs"
|
|
212
212
|
color="slate.900"
|
|
213
213
|
transform={open ? 'rotate(180deg)' : 'none'}
|
|
@@ -4,7 +4,7 @@ import { DragEvent } from 'react';
|
|
|
4
4
|
import { Box, HStack, Stack } from '@chakra-ui/react';
|
|
5
5
|
|
|
6
6
|
import { Card } from '@/components/Card';
|
|
7
|
-
import {
|
|
7
|
+
import { CloseIcon, GripVerticalIcon } from '@/components/Icon';
|
|
8
8
|
import { IconButton } from '@/components/IconButton';
|
|
9
9
|
import { Subtext, Subtitle } from '@/components/Typography';
|
|
10
10
|
|
|
@@ -80,7 +80,7 @@ function PaletteItem({ def }: { def: NodeTypeDef }) {
|
|
|
80
80
|
) : null}
|
|
81
81
|
</Stack>
|
|
82
82
|
<Box color="slate.700" display="flex" alignItems="center">
|
|
83
|
-
<
|
|
83
|
+
<GripVerticalIcon boxSize="xs" />
|
|
84
84
|
</Box>
|
|
85
85
|
</HStack>
|
|
86
86
|
</Card>
|
|
@@ -150,7 +150,7 @@ export function NodePalette({ onClose }: { onClose: () => void }) {
|
|
|
150
150
|
colorPalette="neutral"
|
|
151
151
|
onClick={onClose}
|
|
152
152
|
>
|
|
153
|
-
<
|
|
153
|
+
<CloseIcon boxSize="xs" aria-hidden />
|
|
154
154
|
</IconButton>
|
|
155
155
|
</HStack>
|
|
156
156
|
<Box flex="1" minHeight={0} overflowY="auto" p={3}>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Box } from '@chakra-ui/react';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { PlusIcon } from '@/components/Icon';
|
|
6
6
|
import { IconButton } from '@/components/IconButton';
|
|
7
7
|
import { Tooltip } from '@/components/Tooltip';
|
|
8
8
|
|
|
@@ -31,7 +31,7 @@ export function NodePaletteToggle({ onOpen }: { onOpen: () => void }) {
|
|
|
31
31
|
boxShadow="md"
|
|
32
32
|
onClick={onOpen}
|
|
33
33
|
>
|
|
34
|
-
<
|
|
34
|
+
<PlusIcon boxSize="md" />
|
|
35
35
|
</IconButton>
|
|
36
36
|
</Tooltip>
|
|
37
37
|
</Box>
|
|
@@ -6,7 +6,7 @@ import { Handle, Position } from '@xyflow/react';
|
|
|
6
6
|
|
|
7
7
|
import { Card } from '@/components/Card';
|
|
8
8
|
import { Chip } from '@/components/Chip';
|
|
9
|
-
import {
|
|
9
|
+
import { AlertTriangleIcon, StickyNoteIcon } from '@/components/Icon';
|
|
10
10
|
import { Subtext } from '@/components/Typography';
|
|
11
11
|
|
|
12
12
|
import type {
|
|
@@ -124,14 +124,14 @@ function getHeaderBadge(
|
|
|
124
124
|
if (hasError) {
|
|
125
125
|
return (
|
|
126
126
|
<Box color="danger.main" display="flex" alignItems="center">
|
|
127
|
-
<
|
|
127
|
+
<AlertTriangleIcon boxSize="xs" />
|
|
128
128
|
</Box>
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
131
|
if (hasWarning) {
|
|
132
132
|
return (
|
|
133
133
|
<Box color="warning.dark" display="flex" alignItems="center">
|
|
134
|
-
<
|
|
134
|
+
<AlertTriangleIcon boxSize="xs" />
|
|
135
135
|
</Box>
|
|
136
136
|
);
|
|
137
137
|
}
|
|
@@ -222,7 +222,7 @@ export function NodeShell({
|
|
|
222
222
|
letterSpacing="wider"
|
|
223
223
|
textTransform="uppercase"
|
|
224
224
|
>
|
|
225
|
-
<
|
|
225
|
+
<StickyNoteIcon boxSize="xs" />
|
|
226
226
|
<Subtext color="warning.dark" fontWeight="bold">
|
|
227
227
|
Note
|
|
228
228
|
</Subtext>
|
|
@@ -4,7 +4,7 @@ import { VStack } from '@chakra-ui/react';
|
|
|
4
4
|
|
|
5
5
|
import { FormControl } from '@/components/FormControl';
|
|
6
6
|
import { FormLabel } from '@/components/FormLabel';
|
|
7
|
-
import {
|
|
7
|
+
import { BulbIcon, PlusIcon, SparklesIcon } from '@/components/Icon';
|
|
8
8
|
import { Input } from '@/components/Input';
|
|
9
9
|
|
|
10
10
|
import { defineNodeType, type NodeTypeDef } from '../Workflow.types';
|
|
@@ -24,7 +24,7 @@ const inputNode = defineNodeType<InputCfg>({
|
|
|
24
24
|
label: 'Number',
|
|
25
25
|
description: 'Constant input',
|
|
26
26
|
category: 'trigger',
|
|
27
|
-
icon:
|
|
27
|
+
icon: SparklesIcon,
|
|
28
28
|
defaultConfig: () => ({ value: 1 }),
|
|
29
29
|
placement: { role: 'start' },
|
|
30
30
|
handles: () => ({ inputs: [], outputs: [{ id: 'out' }] }),
|
|
@@ -55,7 +55,7 @@ const addNode = defineNodeType<AddCfg>({
|
|
|
55
55
|
label: 'Add',
|
|
56
56
|
description: 'a + b',
|
|
57
57
|
category: 'logic',
|
|
58
|
-
icon:
|
|
58
|
+
icon: PlusIcon,
|
|
59
59
|
defaultConfig: () => ({ label: 'sum' }),
|
|
60
60
|
handles: () => ({
|
|
61
61
|
inputs: [
|
|
@@ -91,7 +91,7 @@ const outputNode = defineNodeType<OutputCfg>({
|
|
|
91
91
|
label: 'Print',
|
|
92
92
|
description: 'Terminal output',
|
|
93
93
|
category: 'output',
|
|
94
|
-
icon:
|
|
94
|
+
icon: BulbIcon,
|
|
95
95
|
defaultConfig: () => ({ label: 'result' }),
|
|
96
96
|
placement: { minCount: 1, role: 'end' },
|
|
97
97
|
handles: () => ({ inputs: [{ id: 'in' }], outputs: [] }),
|