eai-frontend-components 2.0.11 → 2.0.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/index.d.ts CHANGED
@@ -33,11 +33,14 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
33
33
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
34
34
  import * as SelectPrimitive from '@radix-ui/react-select';
35
35
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
36
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
36
+ import * as __components_ui_input from '@/components/ui/input';
37
+ import * as __components_ui_button from '@/components/ui/button';
38
+ import { TooltipContent as TooltipContent$1 } from '@/components/ui/tooltip';
37
39
  import * as SliderPrimitive from '@radix-ui/react-slider';
38
40
  import * as SwitchPrimitives from '@radix-ui/react-switch';
39
41
  import * as TabsPrimitive from '@radix-ui/react-tabs';
40
42
  import * as ToastPrimitives from '@radix-ui/react-toast';
43
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
41
44
  import { ColumnDef, PaginationState, Table as Table$1 } from '@tanstack/react-table';
42
45
  import { ClassValue } from 'clsx';
43
46
 
@@ -77,7 +80,7 @@ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitiv
77
80
  declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
78
81
 
79
82
  declare const badgeVariants: (props?: ({
80
- variant?: "default" | "outline" | "destructive" | "secondary" | "surface" | "green" | "red" | "gray" | "blue" | "orange" | null | undefined;
83
+ variant?: "default" | "destructive" | "secondary" | "surface" | "outline" | "green" | "red" | "gray" | "blue" | "orange" | null | undefined;
81
84
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
82
85
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
83
86
  }
@@ -102,7 +105,7 @@ declare const BreadcrumbEllipsis: {
102
105
  };
103
106
 
104
107
  declare const buttonVariants: (props?: ({
105
- variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
108
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
106
109
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
107
110
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
108
111
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -221,7 +224,7 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
221
224
  ref?: React$1.Ref<HTMLInputElement>;
222
225
  } & {
223
226
  asChild?: boolean;
224
- }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
227
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
225
228
  value?: string;
226
229
  onValueChange?: (search: string) => void;
227
230
  } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -265,7 +268,7 @@ declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
265
268
  ref?: React$1.Ref<HTMLDivElement>;
266
269
  } & {
267
270
  asChild?: boolean;
268
- }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
271
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
269
272
  disabled?: boolean;
270
273
  onSelect?: (value: string) => void;
271
274
  value?: string;
@@ -482,11 +485,6 @@ declare const SheetFooter: {
482
485
  declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
483
486
  declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
484
487
 
485
- declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
486
- declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
487
- declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
488
- declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
489
-
490
488
  type SidebarContext = {
491
489
  state: 'expanded' | 'collapsed';
492
490
  open: boolean;
@@ -508,10 +506,10 @@ declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttri
508
506
  variant?: "sidebar" | "floating" | "inset";
509
507
  collapsible?: "offcanvas" | "icon" | "none";
510
508
  }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
511
- declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
509
+ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<__components_ui_button.ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
512
510
  declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
513
511
  declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
514
- declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
512
+ declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<__components_ui_input.InputProps & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
515
513
  declare const SidebarHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
516
514
  declare const SidebarFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
517
515
  declare const SidebarSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
@@ -529,7 +527,7 @@ declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.De
529
527
  declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
530
528
  asChild?: boolean;
531
529
  isActive?: boolean;
532
- tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
530
+ tooltip?: string | React$1.ComponentProps<typeof TooltipContent$1>;
533
531
  } & VariantProps<(props?: ({
534
532
  variant?: "default" | "outline" | null | undefined;
535
533
  size?: "default" | "sm" | "lg" | null | undefined;
@@ -586,6 +584,11 @@ type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
586
584
 
587
585
  declare function Toaster(): react_jsx_runtime.JSX.Element;
588
586
 
587
+ declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
588
+ declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
589
+ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
590
+ declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
591
+
589
592
  interface CalendarFormProps extends React__default.HTMLAttributes<HTMLDivElement> {
590
593
  getDataFilter: (from: Date | null, to: Date | null) => void;
591
594
  }
package/dist/index.esm.js CHANGED
@@ -1630,6 +1630,16 @@ SheetTitle.displayName = DialogPrimitive.Title.displayName;
1630
1630
  const SheetDescription = React.forwardRef(({ className, ...props }, ref) => jsx(DialogPrimitive.Description, { ref: ref, className: cn('text-sm text-muted-foreground', className), ...props }));
1631
1631
  SheetDescription.displayName = DialogPrimitive.Description.displayName;
1632
1632
 
1633
+ function Skeleton({ className, ...props }) {
1634
+ return (jsx("div", { className: cn("animate-pulse rounded-md bg-muted", className), ...props }));
1635
+ }
1636
+
1637
+ const TooltipProvider = TooltipPrimitive.Provider;
1638
+ const Tooltip = TooltipPrimitive.Root;
1639
+ const TooltipTrigger = TooltipPrimitive.Trigger;
1640
+ const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (jsxs(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn('z-50 overflow-hidden rounded-md bg-background-primary text-white px-3 py-1.5 text-sm shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props, children: [props.children, jsx(TooltipPrimitive.Arrow, { className: 'z-50 fill-primary animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' })] })));
1641
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
1642
+
1633
1643
  const MOBILE_BREAKPOINT = 1350;
1634
1644
  function useIsMobile() {
1635
1645
  const [isMobile, setIsMobile] = React.useState(undefined);
@@ -1645,16 +1655,6 @@ function useIsMobile() {
1645
1655
  return !!isMobile;
1646
1656
  }
1647
1657
 
1648
- function Skeleton({ className, ...props }) {
1649
- return (jsx("div", { className: cn("animate-pulse rounded-md bg-muted", className), ...props }));
1650
- }
1651
-
1652
- const TooltipProvider = TooltipPrimitive.Provider;
1653
- const Tooltip = TooltipPrimitive.Root;
1654
- const TooltipTrigger = TooltipPrimitive.Trigger;
1655
- const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (jsxs(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn('z-50 overflow-hidden rounded-md bg-background-primary text-white px-3 py-1.5 text-sm shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props, children: [props.children, jsx(TooltipPrimitive.Arrow, { className: 'z-50 fill-primary animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' })] })));
1656
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
1657
-
1658
1658
  const SIDEBAR_COOKIE_NAME = 'sidebar:state';
1659
1659
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
1660
1660
  const SIDEBAR_WIDTH = '16rem';