xertica-ui 1.3.5 → 1.3.6

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.
@@ -41,7 +41,6 @@ export function TemplateContent({ }: TemplateContentProps) {
41
41
  return (
42
42
  <div
43
43
  className={`flex-1 flex flex-col overflow-hidden transition-all duration-300 ${sidebarExpanded ? 'md:pl-64' : 'md:pl-20'
44
- } ${assistenteExpanded ? 'md:pr-[420px]' : 'md:pr-20'
45
44
  }`}
46
45
  >
47
46
  {/* Header fixo */}
@@ -2,14 +2,8 @@ import React from 'react';
2
2
  import { useLocation, useNavigate } from 'react-router';
3
3
  import { Sidebar } from './Sidebar';
4
4
  import { TemplateContent } from './TemplateContent';
5
- import { AssistenteXertica } from './AssistenteXertica';
5
+ import { XerticaAssistant } from './ui/xertica-assistant';
6
6
  import { routes } from '../routes';
7
-
8
- interface TemplatePageProps {
9
- user: { email: string } | null;
10
- onLogout: () => void;
11
- }
12
-
13
7
  import { useLayout } from '../contexts/LayoutContext';
14
8
 
15
9
  interface TemplatePageProps {
@@ -18,7 +12,7 @@ interface TemplatePageProps {
18
12
  }
19
13
 
20
14
  export function TemplatePage({ user, onLogout }: TemplatePageProps) {
21
- const { sidebarExpanded, assistenteExpanded, toggleSidebar, toggleAssistente, toggleAssistenteWithTab } = useLayout();
15
+ const { sidebarExpanded, assistenteExpanded, toggleSidebar, toggleAssistente } = useLayout();
22
16
  const location = useLocation();
23
17
  const navigate = useNavigate();
24
18
 
@@ -34,10 +28,9 @@ export function TemplatePage({ user, onLogout }: TemplatePageProps) {
34
28
  routes={routes}
35
29
  />
36
30
  <TemplateContent />
37
- <AssistenteXertica
31
+ <XerticaAssistant
38
32
  isExpanded={assistenteExpanded}
39
33
  onToggle={toggleAssistente}
40
- onToggleWithTab={toggleAssistenteWithTab}
41
34
  />
42
35
  </div>
43
36
  );
@@ -45,9 +45,6 @@ export { Sidebar } from './Sidebar';
45
45
  export { ThemeToggle } from './ThemeToggle';
46
46
  export { LanguageSelector } from './LanguageSelector';
47
47
 
48
- // Connected Components (require Providers)
49
- export { AssistenteXertica } from './AssistenteXertica';
50
-
51
48
  // State Management & Contexts
52
49
  export * from '../contexts';
53
50
 
@@ -926,7 +926,7 @@ export function XerticaAssistant({
926
926
  <TooltipTrigger asChild>
927
927
  <button
928
928
  onClick={handleToggle}
929
- className="flex items-center justify-center hover:opacity-90 transition-opacity duration-200 cursor-pointer"
929
+ className="w-10 h-10 rounded-full flex items-center justify-center hover:bg-accent/50 transition-colors duration-200 cursor-pointer mx-auto"
930
930
  >
931
931
  <XerticaOrbe size={32} />
932
932
  </button>
@@ -4,11 +4,5 @@ interface TemplatePageProps {
4
4
  } | null;
5
5
  onLogout: () => void;
6
6
  }
7
- interface TemplatePageProps {
8
- user: {
9
- email: string;
10
- } | null;
11
- onLogout: () => void;
12
- }
13
7
  export declare function TemplatePage({ user, onLogout }: TemplatePageProps): import("react/jsx-runtime").JSX.Element;
14
8
  export {};
@@ -13,7 +13,6 @@ export { XerticaOrbe } from './XerticaOrbe';
13
13
  export { Sidebar } from './Sidebar';
14
14
  export { ThemeToggle } from './ThemeToggle';
15
15
  export { LanguageSelector } from './LanguageSelector';
16
- export { AssistenteXertica } from './AssistenteXertica';
17
16
  export * from '../contexts';
18
17
  export { Header } from './Header';
19
18
  export { DocumentEditor } from './DocumentEditor';
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const alertVariants: (props?: ({
4
- variant?: "default" | "error" | "success" | "info" | "warning" | null | undefined;
4
+ variant?: "default" | "error" | "success" | "warning" | "info" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  declare function Alert({ className, variant, children, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
7
7
  declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "info" | "warning" | null | undefined;
4
+ variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export declare function Badge({ className, variant, asChild, children, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
7
  asChild?: boolean;