eai-frontend-components 2.0.54 → 2.0.56
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/index.d.ts +5 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -105,7 +105,7 @@ declare const BreadcrumbEllipsis: {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
declare const buttonVariants: (props?: ({
|
|
108
|
-
variant?: "
|
|
108
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
109
109
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
110
110
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
111
111
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -1086,6 +1086,10 @@ interface LabelWithTitleProps {
|
|
|
1086
1086
|
showCopyIcon?: boolean;
|
|
1087
1087
|
className?: string;
|
|
1088
1088
|
isLoading?: boolean;
|
|
1089
|
+
hoverAction?: {
|
|
1090
|
+
icon: React__default.ReactNode;
|
|
1091
|
+
onClick: () => void;
|
|
1092
|
+
};
|
|
1089
1093
|
}
|
|
1090
1094
|
declare const LabelWithTitle: React__default.FC<LabelWithTitleProps>;
|
|
1091
1095
|
|
package/dist/index.esm.js
CHANGED
|
@@ -10097,7 +10097,7 @@ const Header = ({ splittedPath, modules, pages, isLoading, combobox, }) => {
|
|
|
10097
10097
|
return (jsxs("header", { className: 'flex flex-col justify-between items-center w-full', children: [jsxs("div", { className: 'flex justify-between items-center py-3 px-5 w-full', children: [jsxs("div", { className: 'flex items-center gap-x-2 h-[40px]', children: [jsx(SidebarTrigger, { className: 'p-5' }), jsx("div", { className: 'p-2', children: jsx(Breadcrumb, { children: jsx(BreadcrumbList, { children: renderBreadcrumbItens() }) }) })] }), jsx("div", { className: 'flex items-center', children: combobox })] }), jsx(LoadingBar, { ref: refProgressLoading, color: getColorLoadingBar(), height: 7 })] }));
|
|
10098
10098
|
};
|
|
10099
10099
|
|
|
10100
|
-
const LabelWithTitle = ({ title, value, value2, required, showCopyIcon = false, className, isLoading }) => {
|
|
10100
|
+
const LabelWithTitle = ({ title, value, value2, required, showCopyIcon = false, className, isLoading, hoverAction, }) => {
|
|
10101
10101
|
const handleCopy = () => {
|
|
10102
10102
|
if (showCopyIcon && value) {
|
|
10103
10103
|
navigator.clipboard.writeText(`${value}${value2 ?? ''}`);
|
|
@@ -10107,7 +10107,7 @@ const LabelWithTitle = ({ title, value, value2, required, showCopyIcon = false,
|
|
|
10107
10107
|
});
|
|
10108
10108
|
}
|
|
10109
10109
|
};
|
|
10110
|
-
return (jsx("div", { className: cn('flex group', className), children: jsx("div", { className: cn('flex flex-col text-sm w-full', showCopyIcon ? 'p-1 rounded-md transition-colors group-hover:bg-sidebar-accent' : 'p-1'), children: jsxs("div", { className: 'relative', children: [jsxs("div", { className: 'flex items-center text-sm font-medium gap-0.5', children: [jsx("span", { className: 'text-default truncate', children: title }), required && jsx("div", { className: 'text-red-500 truncate', children: "*" })] }), jsx("div", { className: 'grid flex-1 items-center pt-1', children: isLoading ? jsx(Skeleton, { className: 'h-5 w-full rounded-lg' }) : jsx("div", { className: 'text-zinc-500 truncate', children: value }) }), value2 && (jsx("div", { className: 'grid flex-1 items-center pt-1', children: isLoading ? jsx(Skeleton, { className: 'h-5 w-full rounded-lg' }) : jsx("div", { className: 'text-zinc-500 truncate', children: value2 }) })), showCopyIcon && (jsx("div", { className: cn('pr-1 absolute top-1/2 right-0 -translate-y-1/2 opacity-0 transition-opacity', showCopyIcon && 'group-hover:opacity-100'), children: jsx(TooltipProvider, { children: jsxs(Tooltip, { children: [jsx(TooltipTrigger, { asChild: true, children: jsx(Button, { variant: 'ghost', type: 'button', className: cn('p-1 h-8', !showCopyIcon && 'cursor-default'), onClick: handleCopy, children: jsx(Copy, { size: 16 }) }) }), jsx(TooltipContent, { children: "Copiar" })] }) }) }))] }) }) }));
|
|
10110
|
+
return (jsx("div", { className: cn('flex group', className), children: jsx("div", { className: cn('flex flex-col text-sm w-full', showCopyIcon ? 'p-1 rounded-md transition-colors group-hover:bg-sidebar-accent' : 'p-1'), children: jsxs("div", { className: 'relative', children: [jsxs("div", { className: 'flex items-center text-sm font-medium gap-0.5', children: [jsx("span", { className: 'text-default truncate', children: title }), required && jsx("div", { className: 'text-red-500 truncate', children: "*" })] }), jsx("div", { className: 'grid flex-1 items-center pt-1', children: isLoading ? jsx(Skeleton, { className: 'h-5 w-full rounded-lg' }) : jsx("div", { className: 'text-zinc-500 truncate', children: value }) }), value2 && (jsx("div", { className: 'grid flex-1 items-center pt-1', children: isLoading ? jsx(Skeleton, { className: 'h-5 w-full rounded-lg' }) : jsx("div", { className: 'text-zinc-500 truncate', children: value2 }) })), showCopyIcon && (jsx("div", { className: cn('pr-1 absolute top-1/2 right-0 -translate-y-1/2 opacity-0 transition-opacity', showCopyIcon && 'group-hover:opacity-100'), children: jsx(TooltipProvider, { children: jsxs(Tooltip, { children: [jsx(TooltipTrigger, { asChild: true, children: jsx(Button, { variant: 'ghost', type: 'button', className: cn('p-1 h-8', !showCopyIcon && 'cursor-default'), onClick: handleCopy, children: jsx(Copy, { size: 16 }) }) }), jsx(TooltipContent, { children: "Copiar" })] }) }) })), hoverAction && (jsx("div", { className: cn('pr-1 absolute top-1/2 right-0 -translate-y-1/2 opacity-0 transition-opacity', 'group-hover:opacity-100'), children: jsx(Button, { variant: 'ghost', type: 'button', className: cn('p-1 h-8'), onClick: hoverAction.onClick, children: hoverAction.icon }) }))] }) }) }));
|
|
10111
10111
|
};
|
|
10112
10112
|
|
|
10113
10113
|
const NotFound = () => {
|
|
@@ -10225,7 +10225,7 @@ const ResponsiveDialog = forwardRef(({ title, trigger, description, children, ac
|
|
|
10225
10225
|
if (isMobile) {
|
|
10226
10226
|
return (jsxs(Drawer, { open: open, onOpenChange: setOpen, children: [trigger && (jsx(DrawerTrigger, { className: 'cursor-pointer', asChild: true, children: trigger })), jsxs(DrawerContent, { className: 'px-5 py-7 rounded-t-3xl', children: [jsxs(DrawerHeader, { children: [jsx(DrawerTitle, { children: renderTitle() }), description ? jsx(DrawerDescription, { children: description }) : jsx(DrawerDescription, {})] }), children, jsx(DrawerFooter, { className: 'grid gap-6 px-0 pt-8', children: renderActions() })] })] }));
|
|
10227
10227
|
}
|
|
10228
|
-
return (jsxs(Dialog, { open: open, onOpenChange: setOpen, children: [trigger && (jsx(DialogTrigger, { className: 'cursor-pointer h-min', asChild: true, children: trigger })), jsxs(DialogContent, { className: 'px-
|
|
10228
|
+
return (jsxs(Dialog, { open: open, onOpenChange: setOpen, children: [trigger && (jsx(DialogTrigger, { className: 'cursor-pointer h-min', asChild: true, children: trigger })), jsxs(DialogContent, { className: 'px-4 py-7 rounded-3xl', children: [jsx(DialogTitle, { className: 'px-1', children: renderTitle() }), description ? jsx(DialogDescription, { className: 'px-1', children: description }) : jsx(DialogDescription, {}), jsx("div", { className: 'max-h-[70vh] overflow-y-auto px-1', children: children }), jsx(DialogFooter, { className: 'gap-2 px-1', children: renderActions() })] })] }));
|
|
10229
10229
|
});
|
|
10230
10230
|
|
|
10231
10231
|
const SidebarItemTwoLines = ({ item }) => {
|