xertica-ui 1.3.4 → 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.
@@ -13,9 +13,7 @@ import { Badge } from './ui/badge';
13
13
  import { useLayout } from '../contexts/LayoutContext';
14
14
  import {
15
15
  SIDEBAR_EXPANDED_WIDTH,
16
- SIDEBAR_COLLAPSED_WIDTH,
17
- ASSISTANT_EXPANDED_WIDTH,
18
- ASSISTANT_COLLAPSED_WIDTH
16
+ SIDEBAR_COLLAPSED_WIDTH
19
17
  } from './layout-constants';
20
18
 
21
19
  interface HomeContentProps {
@@ -44,8 +42,7 @@ export function HomeContent({ }: HomeContentProps) {
44
42
  return (
45
43
  <div
46
44
  style={{
47
- paddingLeft: sidebarExpanded ? SIDEBAR_EXPANDED_WIDTH : SIDEBAR_COLLAPSED_WIDTH,
48
- paddingRight: assistenteExpanded ? ASSISTANT_EXPANDED_WIDTH : ASSISTANT_COLLAPSED_WIDTH
45
+ paddingLeft: sidebarExpanded ? SIDEBAR_EXPANDED_WIDTH : SIDEBAR_COLLAPSED_WIDTH
49
46
  }}
50
47
  className={`flex-1 flex flex-col overflow-hidden transition-all duration-300`}
51
48
  >
@@ -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
  );