change TWstyle to className
This commit is contained in:
parent
3aaeee42fe
commit
06dc663467
40 changed files with 89 additions and 83 deletions
|
|
@ -168,7 +168,7 @@ export default function ParameterComponent({
|
||||||
<div>
|
<div>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Info"
|
name="Info"
|
||||||
TWstyle="relative bottom-0.5 ml-2 h-3 w-4"
|
className="relative bottom-0.5 ml-2 h-3 w-4"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ export default function GenericNode({
|
||||||
<div className="generic-node-title-arrangement">
|
<div className="generic-node-title-arrangement">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name={name}
|
name={name}
|
||||||
TWstyle="generic-node-icon"
|
className="generic-node-icon"
|
||||||
iconColor={`${nodeColors[types[data.type]]}`}
|
iconColor={`${nodeColors[types[data.type]]}`}
|
||||||
/>
|
/>
|
||||||
<div className="generic-node-tooltip-div">
|
<div className="generic-node-tooltip-div">
|
||||||
|
|
@ -114,7 +114,7 @@ export default function GenericNode({
|
||||||
Build{" "}
|
Build{" "}
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Zap"
|
name="Zap"
|
||||||
TWstyle="mx-0.5 h-5 fill-build-trigger stroke-build-trigger stroke-1"
|
className="mx-0.5 h-5 fill-build-trigger stroke-build-trigger stroke-1"
|
||||||
/>{" "}
|
/>{" "}
|
||||||
flow to validate status.
|
flow to validate status.
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export default function SingleAlert({
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="XCircle"
|
name="XCircle"
|
||||||
TWstyle="h-5 w-5 text-status-red"
|
className="h-5 w-5 text-status-red"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -68,7 +68,7 @@ export default function SingleAlert({
|
||||||
<span className="sr-only">Dismiss</span>
|
<span className="sr-only">Dismiss</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="X"
|
name="X"
|
||||||
TWstyle="h-4 w-4 text-error-foreground"
|
className="h-4 w-4 text-error-foreground"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -83,7 +83,7 @@ export default function SingleAlert({
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Info"
|
name="Info"
|
||||||
TWstyle="h-5 w-5 text-status-blue "
|
className="h-5 w-5 text-status-blue "
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -119,7 +119,7 @@ export default function SingleAlert({
|
||||||
<span className="sr-only">Dismiss</span>
|
<span className="sr-only">Dismiss</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="X"
|
name="X"
|
||||||
TWstyle="h-4 w-4 text-info-foreground"
|
className="h-4 w-4 text-info-foreground"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -134,7 +134,7 @@ export default function SingleAlert({
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="CheckCircle2"
|
name="CheckCircle2"
|
||||||
TWstyle="h-5 w-5 text-status-green"
|
className="h-5 w-5 text-status-green"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -158,7 +158,7 @@ export default function SingleAlert({
|
||||||
<span className="sr-only">Dismiss</span>
|
<span className="sr-only">Dismiss</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="X"
|
name="X"
|
||||||
TWstyle="h-4 w-4 text-success-foreground"
|
className="h-4 w-4 text-success-foreground"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -36,13 +36,13 @@ export default function AlertDropdown({}: AlertDropdownType) {
|
||||||
setTimeout(clearNotificationList, 100);
|
setTimeout(clearNotificationList, 100);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="Trash2" TWstyle="h-[1.1rem] w-[1.1rem]" />
|
<IconComponent name="Trash2" className="h-[1.1rem] w-[1.1rem]" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="text-foreground hover:text-status-red"
|
className="text-foreground hover:text-status-red"
|
||||||
onClick={closePopUp}
|
onClick={closePopUp}
|
||||||
>
|
>
|
||||||
<IconComponent name="X" TWstyle="h-5 w-5" />
|
<IconComponent name="X" className="h-5 w-5" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ export default function ErrorAlert({
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="XCircle"
|
name="XCircle"
|
||||||
TWstyle="error-build-message-circle"
|
className="error-build-message-circle"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ export default function NoticeAlert({
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Info"
|
name="Info"
|
||||||
TWstyle="h-5 w-5 text-status-blue "
|
className="h-5 w-5 text-status-blue "
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ export default function SuccessAlert({
|
||||||
<div className="flex-shrink-0">
|
<div className="flex-shrink-0">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="CheckCircle2"
|
name="CheckCircle2"
|
||||||
TWstyle="success-alert-icon"
|
className="success-alert-icon"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ export const CardComponent = ({
|
||||||
<button className="card-component-delete-button" onClick={onDelete}>
|
<button className="card-component-delete-button" onClick={onDelete}>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Trash2"
|
name="Trash2"
|
||||||
TWstyle="card-component-delete-icon"
|
className="card-component-delete-icon"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ export default function BuildTrigger({
|
||||||
) : (
|
) : (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Zap"
|
name="Zap"
|
||||||
TWstyle="sh-6 w-6 fill-build-trigger stroke-build-trigger stroke-1"
|
className="sh-6 w-6 fill-build-trigger stroke-build-trigger stroke-1"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ export default function ChatTrigger({ open, setOpen, isBuilt, canOpen }) {
|
||||||
<div className="flex gap-3">
|
<div className="flex gap-3">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="MessagesSquare"
|
name="MessagesSquare"
|
||||||
TWstyle={
|
className={
|
||||||
"h-6 w-6 transition-all " +
|
"h-6 w-6 transition-all " +
|
||||||
(isBuilt && canOpen
|
(isBuilt && canOpen
|
||||||
? "message-button-icon"
|
? "message-button-icon"
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ export default function CodeAreaComponent({
|
||||||
{!editNode && (
|
{!editNode && (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="ExternalLink"
|
name="ExternalLink"
|
||||||
TWstyle={
|
className={
|
||||||
"icons-parameters-comp" +
|
"icons-parameters-comp" +
|
||||||
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ export default function Dropdown({
|
||||||
<span className={"dropdown-component-arrow"}>
|
<span className={"dropdown-component-arrow"}>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="ChevronsUpDown"
|
name="ChevronsUpDown"
|
||||||
TWstyle="dropdown-component-arrow-color"
|
className="dropdown-component-arrow-color"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -102,7 +102,7 @@ export default function Dropdown({
|
||||||
>
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Check"
|
name="Check"
|
||||||
TWstyle={
|
className={
|
||||||
active
|
active
|
||||||
? "dropdown-component-check-icon"
|
? "dropdown-component-check-icon"
|
||||||
: "dropdown-component-check-icon"
|
: "dropdown-component-check-icon"
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ import { nodeIconsLucide } from "../../utils";
|
||||||
|
|
||||||
export default function IconComponent({
|
export default function IconComponent({
|
||||||
name,
|
name,
|
||||||
TWstyle,
|
className,
|
||||||
iconColor,
|
iconColor,
|
||||||
}: IconComponentProps): JSX.Element {
|
}: IconComponentProps): JSX.Element {
|
||||||
const TargetIcon = nodeIconsLucide[name] ?? nodeIconsLucide["unknown"];
|
const TargetIcon = nodeIconsLucide[name] ?? nodeIconsLucide["unknown"];
|
||||||
return <TargetIcon className={TWstyle} style={{ color: iconColor }} />;
|
return <TargetIcon className={className} style={{ color: iconColor }} />;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
return (
|
return (
|
||||||
<div className="round-button-div">
|
<div className="round-button-div">
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<IconComponent name="ChevronLeft" TWstyle="w-4" />
|
<IconComponent name="ChevronLeft" className="w-4" />
|
||||||
</Link>
|
</Link>
|
||||||
<div className="header-menu-bar">
|
<div className="header-menu-bar">
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
|
|
@ -47,7 +47,7 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
<Button asChild variant="primary" size="sm">
|
<Button asChild variant="primary" size="sm">
|
||||||
<div className="header-menu-bar-display">
|
<div className="header-menu-bar-display">
|
||||||
<div className="header-menu-flow-name">{current_flow.name}</div>
|
<div className="header-menu-flow-name">{current_flow.name}</div>
|
||||||
<IconComponent name="ChevronDown" TWstyle="h-4 w-4" />
|
<IconComponent name="ChevronDown" className="h-4 w-4" />
|
||||||
</div>
|
</div>
|
||||||
</Button>
|
</Button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
|
|
@ -59,7 +59,7 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
}}
|
}}
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
>
|
>
|
||||||
<IconComponent name="Plus" TWstyle="header-menu-options" />
|
<IconComponent name="Plus" className="header-menu-options" />
|
||||||
New
|
New
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
|
|
@ -68,7 +68,10 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
}}
|
}}
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
>
|
>
|
||||||
<IconComponent name="Settings2" TWstyle="header-menu-options " />
|
<IconComponent
|
||||||
|
name="Settings2"
|
||||||
|
className="header-menu-options "
|
||||||
|
/>
|
||||||
Settings
|
Settings
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
|
|
@ -77,7 +80,7 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
}}
|
}}
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
>
|
>
|
||||||
<IconComponent name="Undo" TWstyle="header-menu-options " />
|
<IconComponent name="Undo" className="header-menu-options " />
|
||||||
Undo
|
Undo
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
|
|
@ -86,7 +89,7 @@ export const MenuBar = ({ flows, tabId }) => {
|
||||||
}}
|
}}
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
>
|
>
|
||||||
<IconComponent name="Redo" TWstyle="header-menu-options " />
|
<IconComponent name="Redo" className="header-menu-options " />
|
||||||
Redo
|
Redo
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ export default function Header() {
|
||||||
variant={location.pathname === "/" ? "primary" : "secondary"}
|
variant={location.pathname === "/" ? "primary" : "secondary"}
|
||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<IconComponent name="Home" TWstyle="h-4 w-4" />
|
<IconComponent name="Home" className="h-4 w-4" />
|
||||||
<div className="flex-1">{USER_PROJECTS_HEADER}</div>
|
<div className="flex-1">{USER_PROJECTS_HEADER}</div>
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
@ -63,7 +63,7 @@ export default function Header() {
|
||||||
}
|
}
|
||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
<IconComponent name="Users2" TWstyle="h-4 w-4" />
|
<IconComponent name="Users2" className="h-4 w-4" />
|
||||||
<div className="flex-1">Community Examples</div>
|
<div className="flex-1">Community Examples</div>
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
@ -105,9 +105,9 @@ export default function Header() {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{dark ? (
|
{dark ? (
|
||||||
<IconComponent name="SunIcon" TWstyle="side-bar-button-size" />
|
<IconComponent name="SunIcon" className="side-bar-button-size" />
|
||||||
) : (
|
) : (
|
||||||
<IconComponent name="MoonIcon" TWstyle="side-bar-button-size" />
|
<IconComponent name="MoonIcon" className="side-bar-button-size" />
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
|
@ -133,7 +133,7 @@ export default function Header() {
|
||||||
{notificationCenter && <div className="header-notifications"></div>}
|
{notificationCenter && <div className="header-notifications"></div>}
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Bell"
|
name="Bell"
|
||||||
TWstyle="side-bar-button-size"
|
className="side-bar-button-size"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ export default function InputFileComponent({
|
||||||
{!editNode && !loading && (
|
{!editNode && !loading && (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="FileSearch2"
|
name="FileSearch2"
|
||||||
TWstyle={
|
className={
|
||||||
"icons-parameters-comp" +
|
"icons-parameters-comp" +
|
||||||
(disabled ? " text-ring " : " hover:text-accent-foreground")
|
(disabled ? " text-ring " : " hover:text-accent-foreground")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ export default function InputListComponent({
|
||||||
>
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Plus"
|
name="Plus"
|
||||||
TWstyle={"h-4 w-4 hover:text-accent-foreground"}
|
className={"h-4 w-4 hover:text-accent-foreground"}
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
|
|
@ -83,7 +83,7 @@ export default function InputListComponent({
|
||||||
>
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="X"
|
name="X"
|
||||||
TWstyle="h-4 w-4 hover:text-status-red"
|
className="h-4 w-4 hover:text-status-red"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ export default function PromptAreaComponent({
|
||||||
{!editNode && (
|
{!editNode && (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="ExternalLink"
|
name="ExternalLink"
|
||||||
TWstyle={
|
className={
|
||||||
"icons-parameters-comp" +
|
"icons-parameters-comp" +
|
||||||
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ export default function TextAreaComponent({
|
||||||
{!editNode && (
|
{!editNode && (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="ExternalLink"
|
name="ExternalLink"
|
||||||
TWstyle={
|
className={
|
||||||
"icons-parameters-comp" +
|
"icons-parameters-comp" +
|
||||||
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ const Checkbox = React.forwardRef<
|
||||||
<CheckboxPrimitive.Indicator
|
<CheckboxPrimitive.Indicator
|
||||||
className={cn("flex items-center justify-center text-current")}
|
className={cn("flex items-center justify-center text-current")}
|
||||||
>
|
>
|
||||||
<IconComponent name="Check" TWstyle="h-4 w-4" />
|
<IconComponent name="Check" className="h-4 w-4" />
|
||||||
</CheckboxPrimitive.Indicator>
|
</CheckboxPrimitive.Indicator>
|
||||||
</CheckboxPrimitive.Root>
|
</CheckboxPrimitive.Root>
|
||||||
));
|
));
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ const DialogContent = React.forwardRef<
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
|
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
|
||||||
<IconComponent name="X" TWstyle="h-4 w-4" />
|
<IconComponent name="X" className="h-4 w-4" />
|
||||||
<span className="sr-only">Close</span>
|
<span className="sr-only">Close</span>
|
||||||
</DialogPrimitive.Close>
|
</DialogPrimitive.Close>
|
||||||
</DialogPrimitive.Content>
|
</DialogPrimitive.Content>
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
<IconComponent name="ChevronRight" TWstyle="ml-auto h-4 w-4" />
|
<IconComponent name="ChevronRight" className="ml-auto h-4 w-4" />
|
||||||
</DropdownMenuPrimitive.SubTrigger>
|
</DropdownMenuPrimitive.SubTrigger>
|
||||||
));
|
));
|
||||||
DropdownMenuSubTrigger.displayName =
|
DropdownMenuSubTrigger.displayName =
|
||||||
|
|
@ -106,7 +106,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
|
||||||
>
|
>
|
||||||
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
||||||
<DropdownMenuPrimitive.ItemIndicator>
|
<DropdownMenuPrimitive.ItemIndicator>
|
||||||
<IconComponent name="Check" TWstyle="h-4 w-4" />
|
<IconComponent name="Check" className="h-4 w-4" />
|
||||||
</DropdownMenuPrimitive.ItemIndicator>
|
</DropdownMenuPrimitive.ItemIndicator>
|
||||||
</span>
|
</span>
|
||||||
{children}
|
{children}
|
||||||
|
|
@ -129,7 +129,7 @@ const DropdownMenuRadioItem = React.forwardRef<
|
||||||
>
|
>
|
||||||
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
||||||
<DropdownMenuPrimitive.ItemIndicator>
|
<DropdownMenuPrimitive.ItemIndicator>
|
||||||
<IconComponent name="Circle" TWstyle="h-2 w-2 fill-current" />
|
<IconComponent name="Circle" className="h-2 w-2 fill-current" />
|
||||||
</DropdownMenuPrimitive.ItemIndicator>
|
</DropdownMenuPrimitive.ItemIndicator>
|
||||||
</span>
|
</span>
|
||||||
{children}
|
{children}
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ const MenubarSubTrigger = React.forwardRef<
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
<IconComponent name="ChevronRight" TWstyle="ml-auto h-4 w-4" />
|
<IconComponent name="ChevronRight" className="ml-auto h-4 w-4" />
|
||||||
</MenubarPrimitive.SubTrigger>
|
</MenubarPrimitive.SubTrigger>
|
||||||
));
|
));
|
||||||
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
||||||
|
|
@ -140,7 +140,7 @@ const MenubarCheckboxItem = React.forwardRef<
|
||||||
>
|
>
|
||||||
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
||||||
<MenubarPrimitive.ItemIndicator>
|
<MenubarPrimitive.ItemIndicator>
|
||||||
<IconComponent name="Check" TWstyle="h-4 w-4" />
|
<IconComponent name="Check" className="h-4 w-4" />
|
||||||
</MenubarPrimitive.ItemIndicator>
|
</MenubarPrimitive.ItemIndicator>
|
||||||
</span>
|
</span>
|
||||||
{children}
|
{children}
|
||||||
|
|
@ -162,7 +162,7 @@ const MenubarRadioItem = React.forwardRef<
|
||||||
>
|
>
|
||||||
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
<span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
|
||||||
<MenubarPrimitive.ItemIndicator>
|
<MenubarPrimitive.ItemIndicator>
|
||||||
<IconComponent name="Circle" TWstyle="h-2 w-2 fill-current" />
|
<IconComponent name="Circle" className="h-2 w-2 fill-current" />
|
||||||
</MenubarPrimitive.ItemIndicator>
|
</MenubarPrimitive.ItemIndicator>
|
||||||
</span>
|
</span>
|
||||||
{children}
|
{children}
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ export default function ApiModal({ flow }: { flow: FlowType }) {
|
||||||
<span className="pr-2">Code</span>
|
<span className="pr-2">Code</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Code2"
|
name="Code2"
|
||||||
TWstyle="h-6 w-6 pl-1 text-gray-800 dark:text-white"
|
className="h-6 w-6 pl-1 text-gray-800 dark:text-white"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ export default function EditNodeModal({ data }: { data: NodeDataType }) {
|
||||||
<div className="flex pt-3">
|
<div className="flex pt-3">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Variable"
|
name="Variable"
|
||||||
TWstyle="edit-node-modal-variable "
|
className="edit-node-modal-variable "
|
||||||
/>
|
/>
|
||||||
<span className="edit-node-modal-span">Parameters</span>
|
<span className="edit-node-modal-span">Parameters</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ export default function NodeModal({ data }: { data: NodeDataType }) {
|
||||||
<span className="sr-only">Close</span>
|
<span className="sr-only">Close</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="X"
|
name="X"
|
||||||
TWstyle="h-6 w-6"
|
className="h-6 w-6"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ export default function CodeAreaModal({
|
||||||
<span className="pr-2">Edit Code</span>
|
<span className="pr-2">Edit Code</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="prompts"
|
name="prompts"
|
||||||
TWstyle="h-6 w-6 pl-1 text-primary "
|
className="h-6 w-6 pl-1 text-primary "
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ export default function ExportModal() {
|
||||||
<span className="pr-2">Export</span>
|
<span className="pr-2">Export</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Download"
|
name="Download"
|
||||||
TWstyle="h-6 w-6 pl-1 text-foreground"
|
className="h-6 w-6 pl-1 text-foreground"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ export default function FlowSettingsModal() {
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle className="flex items-center">
|
<DialogTitle className="flex items-center">
|
||||||
<span className="pr-2">Settings </span>
|
<span className="pr-2">Settings </span>
|
||||||
<IconComponent name="Settings2" TWstyle="mr-2 h-4 w-4 " />
|
<IconComponent name="Settings2" className="mr-2 h-4 w-4 " />
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
<DialogDescription>{SETTINGS_DIALOG_SUBTITLE}</DialogDescription>
|
<DialogDescription>{SETTINGS_DIALOG_SUBTITLE}</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
|
||||||
|
|
@ -79,19 +79,19 @@ export default function ChatInput({
|
||||||
{lockChat ? (
|
{lockChat ? (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Lock"
|
name="Lock"
|
||||||
TWstyle="form-modal-lock-icon"
|
className="form-modal-lock-icon"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
) : noInput ? (
|
) : noInput ? (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Sparkles"
|
name="Sparkles"
|
||||||
TWstyle="form-modal-play-icon"
|
className="form-modal-play-icon"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="LucideSend"
|
name="LucideSend"
|
||||||
TWstyle="form-modal-send-icon "
|
className="form-modal-send-icon "
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ export default function ChatMessage({
|
||||||
Display Prompt
|
Display Prompt
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="ChevronDown"
|
name="ChevronDown"
|
||||||
TWstyle={
|
className={
|
||||||
"h-3 w-3 transition-all " + (promptOpen ? "rotate-180" : "")
|
"h-3 w-3 transition-all " + (promptOpen ? "rotate-180" : "")
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ export default function FileCard({ fileName, content, fileType }) {
|
||||||
>
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="DownloadCloud"
|
name="DownloadCloud"
|
||||||
TWstyle="h-5 w-5 text-current hover:scale-110"
|
className="h-5 w-5 text-current hover:scale-110"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -63,7 +63,7 @@ export default function FileCard({ fileName, content, fileType }) {
|
||||||
className="h-8 w-8"
|
className="h-8 w-8"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<IconComponent name="File" TWstyle="h-8 w-8" />
|
<IconComponent name="File" className="h-8 w-8" />
|
||||||
)}
|
)}
|
||||||
<div className="file-card-modal-footer">
|
<div className="file-card-modal-footer">
|
||||||
{" "}
|
{" "}
|
||||||
|
|
@ -72,7 +72,7 @@ export default function FileCard({ fileName, content, fileType }) {
|
||||||
</div>
|
</div>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="DownloadCloud"
|
name="DownloadCloud"
|
||||||
TWstyle="ml-auto h-6 w-6 text-current"
|
className="ml-auto h-6 w-6 text-current"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -398,7 +398,7 @@ export default function FormModal({
|
||||||
<span className="pr-2">Chat</span>
|
<span className="pr-2">Chat</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="prompts"
|
name="prompts"
|
||||||
TWstyle="h-6 w-6 pl-1 text-gray-800 dark:text-white"
|
className="h-6 w-6 pl-1 text-gray-800 dark:text-white"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
|
@ -410,7 +410,7 @@ export default function FormModal({
|
||||||
<div className="file-component-arrangement">
|
<div className="file-component-arrangement">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Variable"
|
name="Variable"
|
||||||
TWstyle=" file-component-variable"
|
className=" file-component-variable"
|
||||||
/>
|
/>
|
||||||
<span className="file-component-variables-span text-md">
|
<span className="file-component-variables-span text-md">
|
||||||
Input Variables
|
Input Variables
|
||||||
|
|
@ -507,7 +507,7 @@ export default function FormModal({
|
||||||
<button disabled={lockChat} onClick={() => clearChat()}>
|
<button disabled={lockChat} onClick={() => clearChat()}>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Eraser"
|
name="Eraser"
|
||||||
TWstyle={classNames(
|
className={classNames(
|
||||||
"h-5 w-5",
|
"h-5 w-5",
|
||||||
lockChat
|
lockChat
|
||||||
? "animate-pulse text-primary"
|
? "animate-pulse text-primary"
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,7 @@ export default function GenericModal({
|
||||||
<span className="pr-2">{myModalTitle}</span>
|
<span className="pr-2">{myModalTitle}</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="FileText"
|
name="FileText"
|
||||||
TWstyle="h-6 w-6 pl-1 text-primary "
|
className="h-6 w-6 pl-1 text-primary "
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
|
|
@ -227,7 +227,7 @@ export default function GenericModal({
|
||||||
<div className="flex flex-wrap items-center">
|
<div className="flex flex-wrap items-center">
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Variable"
|
name="Variable"
|
||||||
TWstyle=" -ml-px mr-1 flex h-4 w-4 text-primary"
|
className=" -ml-px mr-1 flex h-4 w-4 text-primary"
|
||||||
/>
|
/>
|
||||||
<span className="text-md font-semibold text-primary">
|
<span className="text-md font-semibold text-primary">
|
||||||
Prompt Variables:
|
Prompt Variables:
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ export default function CommunityPage() {
|
||||||
<div className="community-page-arrangement">
|
<div className="community-page-arrangement">
|
||||||
<div className="community-page-nav-arrangement">
|
<div className="community-page-nav-arrangement">
|
||||||
<span className="community-page-nav-title">
|
<span className="community-page-nav-title">
|
||||||
<IconComponent name="Users2" TWstyle="w-6" />
|
<IconComponent name="Users2" className="w-6" />
|
||||||
Community Examples
|
Community Examples
|
||||||
</span>
|
</span>
|
||||||
<div className="community-page-nav-button">
|
<div className="community-page-nav-button">
|
||||||
|
|
@ -50,7 +50,10 @@ export default function CommunityPage() {
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
>
|
>
|
||||||
<Button variant="primary">
|
<Button variant="primary">
|
||||||
<IconComponent name="GithubIcon" TWstyle="main-page-nav-button" />
|
<IconComponent
|
||||||
|
name="GithubIcon"
|
||||||
|
className="main-page-nav-button"
|
||||||
|
/>
|
||||||
Add Your Example
|
Add Your Example
|
||||||
</Button>
|
</Button>
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -81,7 +84,7 @@ export default function CommunityPage() {
|
||||||
>
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="GitFork"
|
name="GitFork"
|
||||||
TWstyle="main-page-nav-button"
|
className="main-page-nav-button"
|
||||||
/>
|
/>
|
||||||
Fork Example
|
Fork Example
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export default function DisclosureComponent({
|
||||||
<div>
|
<div>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="ChevronRight"
|
name="ChevronRight"
|
||||||
TWstyle={`${
|
className={`${
|
||||||
open || openDisc ? "rotate-90 transform" : ""
|
open || openDisc ? "rotate-90 transform" : ""
|
||||||
} h-4 w-4 text-foreground`}
|
} h-4 w-4 text-foreground`}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ export default function ExtraSidebar() {
|
||||||
uploadFlow();
|
uploadFlow();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="FileUp" TWstyle="side-bar-button-size " />
|
<IconComponent name="FileUp" className="side-bar-button-size " />
|
||||||
</button>
|
</button>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
|
|
||||||
|
|
@ -79,7 +79,7 @@ export default function ExtraSidebar() {
|
||||||
openPopUp(<ExportModal />);
|
openPopUp(<ExportModal />);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="FileDown" TWstyle="side-bar-button-size" />
|
<IconComponent name="FileDown" className="side-bar-button-size" />
|
||||||
</button>
|
</button>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
<ShadTooltip content="Code" side="top">
|
<ShadTooltip content="Code" side="top">
|
||||||
|
|
@ -89,7 +89,7 @@ export default function ExtraSidebar() {
|
||||||
openPopUp(<ApiModal flow={flows.find((f) => f.id === tabId)} />);
|
openPopUp(<ApiModal flow={flows.find((f) => f.id === tabId)} />);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="Code2" TWstyle="side-bar-button-size" />
|
<IconComponent name="Code2" className="side-bar-button-size" />
|
||||||
</button>
|
</button>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
|
|
||||||
|
|
@ -104,7 +104,7 @@ export default function ExtraSidebar() {
|
||||||
>
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Save"
|
name="Save"
|
||||||
TWstyle={
|
className={
|
||||||
"side-bar-button-size" +
|
"side-bar-button-size" +
|
||||||
(isPending ? " " : " extra-side-bar-save-disable")
|
(isPending ? " " : " extra-side-bar-save-disable")
|
||||||
}
|
}
|
||||||
|
|
@ -182,7 +182,7 @@ export default function ExtraSidebar() {
|
||||||
</span>
|
</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="Menu"
|
name="Menu"
|
||||||
TWstyle="side-bar-components-icon "
|
className="side-bar-components-icon "
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ const NodeToolbarComponent = (props) => {
|
||||||
props.deleteNode(props.data.id);
|
props.deleteNode(props.data.id);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="Trash2" TWstyle="h-4 w-4" />
|
<IconComponent name="Trash2" className="h-4 w-4" />
|
||||||
</button>
|
</button>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
|
|
||||||
|
|
@ -61,7 +61,7 @@ const NodeToolbarComponent = (props) => {
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="Copy" TWstyle="h-4 w-4" />
|
<IconComponent name="Copy" className="h-4 w-4" />
|
||||||
</button>
|
</button>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
|
|
||||||
|
|
@ -90,7 +90,7 @@ const NodeToolbarComponent = (props) => {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="FileText" TWstyle="h-4 w-4 " />
|
<IconComponent name="FileText" className="h-4 w-4 " />
|
||||||
</a>
|
</a>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
|
|
||||||
|
|
@ -110,7 +110,7 @@ const NodeToolbarComponent = (props) => {
|
||||||
props.openPopUp(<EditNodeModal data={props.data} />);
|
props.openPopUp(<EditNodeModal data={props.data} />);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="Settings2" TWstyle="h-4 w-4 " />
|
<IconComponent name="Settings2" className="h-4 w-4 " />
|
||||||
</button>
|
</button>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export default function HomePage() {
|
||||||
<div className="main-page-panel">
|
<div className="main-page-panel">
|
||||||
<div className="main-page-nav-arrangement">
|
<div className="main-page-nav-arrangement">
|
||||||
<span className="main-page-nav-title">
|
<span className="main-page-nav-title">
|
||||||
<IconComponent name="Home" TWstyle="w-6" />
|
<IconComponent name="Home" className="w-6" />
|
||||||
{USER_PROJECTS_HEADER}
|
{USER_PROJECTS_HEADER}
|
||||||
</span>
|
</span>
|
||||||
<div className="button-div-style">
|
<div className="button-div-style">
|
||||||
|
|
@ -26,7 +26,7 @@ export default function HomePage() {
|
||||||
downloadFlows();
|
downloadFlows();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="Download" TWstyle="main-page-nav-button" />
|
<IconComponent name="Download" className="main-page-nav-button" />
|
||||||
Download Collection
|
Download Collection
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
|
@ -35,7 +35,7 @@ export default function HomePage() {
|
||||||
uploadFlows();
|
uploadFlows();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="Upload" TWstyle="main-page-nav-button" />
|
<IconComponent name="Upload" className="main-page-nav-button" />
|
||||||
Upload Collection
|
Upload Collection
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
|
@ -46,7 +46,7 @@ export default function HomePage() {
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<IconComponent name="Plus" TWstyle="main-page-nav-button" />
|
<IconComponent name="Plus" className="main-page-nav-button" />
|
||||||
New Project
|
New Project
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -69,7 +69,7 @@ export default function HomePage() {
|
||||||
>
|
>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
name="ExternalLink"
|
name="ExternalLink"
|
||||||
TWstyle="main-page-nav-button"
|
className="main-page-nav-button"
|
||||||
/>
|
/>
|
||||||
Edit Flow
|
Edit Flow
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -164,6 +164,6 @@ export interface IVarHighlightType {
|
||||||
|
|
||||||
export type IconComponentProps = {
|
export type IconComponentProps = {
|
||||||
name: string;
|
name: string;
|
||||||
TWstyle: string;
|
className: string;
|
||||||
iconColor?: string;
|
iconColor?: string;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue