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.
- package/components/HomeContent.tsx +2 -5
- package/components/TemplateContent.tsx +0 -1
- package/components/TemplatePage.tsx +3 -10
- package/components/assets/xertica-orbe-animation.ts +804 -0
- package/components/index.ts +1 -4
- package/components/ui/AssistantChart.tsx +29 -0
- package/components/ui/xertica-assistant.tsx +16 -67
- package/dist/AssistantChart-BkwfdilF.js +22 -0
- package/dist/AssistantChart-G8I1Kfu4.js +22 -0
- package/dist/components/TemplatePage.d.ts +0 -6
- package/dist/components/assets/xertica-orbe-animation.d.ts +617 -0
- package/dist/components/index.d.ts +0 -2
- package/dist/components/ui/AssistantChart.d.ts +7 -0
- package/dist/components/ui/alert.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/xertica-assistant.d.ts +1 -10
- package/dist/index-D6V_7QbH.js +99663 -0
- package/dist/index-DHlP-IBS.js +99663 -0
- package/dist/index.es.js +870 -4383
- package/dist/index.umd.js +870 -4383
- package/package.json +1 -2
- package/components/AssistenteXertica.tsx +0 -2331
|
@@ -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 {
|
|
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
|
|
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
|
-
<
|
|
31
|
+
<XerticaAssistant
|
|
38
32
|
isExpanded={assistenteExpanded}
|
|
39
33
|
onToggle={toggleAssistente}
|
|
40
|
-
onToggleWithTab={toggleAssistenteWithTab}
|
|
41
34
|
/>
|
|
42
35
|
</div>
|
|
43
36
|
);
|