@trii/components 2.0.104 → 3.1.0

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.
Files changed (43) hide show
  1. package/dist/cjs/index.js +88 -88
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/index.js +91 -91
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/index.d.ts +71 -55
  6. package/dist/types/components/ContactSidebar/ChatDetailsSidebar.d.ts +17 -3
  7. package/dist/types/components/ContactSidebar/SidebarContent.d.ts +9 -4
  8. package/dist/types/components/ContactSidebar/components/PanelView/PanelView.d.ts +1 -4
  9. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/ContactMedia.d.ts +0 -1
  10. package/dist/types/components/ContactSidebar/components/PanelView/components/GroupData/GroupData.d.ts +0 -1
  11. package/dist/types/components/ContactSidebar/components/PanelView/components/index.d.ts +0 -3
  12. package/dist/types/components/ContactSidebar/components/PanelView/layout/SectionCard/SectionCard.d.ts +1 -1
  13. package/dist/types/components/ContactSidebar/components/PanelView/types/ContactProps.d.ts +0 -1
  14. package/dist/types/components/ContactSidebar/components/TabsMenu/TabsMenu.d.ts +0 -3
  15. package/dist/types/components/ContactSidebar/components/index.d.ts +0 -3
  16. package/dist/types/components/EditContactModal/context/LanguageContext.d.ts +9 -0
  17. package/dist/types/components/EventsDialog/theme/index.d.ts +1 -0
  18. package/dist/types/components/EventsDialog/theme/themeProvider.d.ts +1 -0
  19. package/dist/types/index.d.ts +1 -1
  20. package/dist/types/theme/MuiComponentsConfig.d.ts +3 -0
  21. package/dist/types/theme/index.d.ts +4 -0
  22. package/dist/types/theme/themeProvider.d.ts +74 -0
  23. package/dist/types/theme/themeSlice.d.ts +52 -0
  24. package/package.json +1 -1
  25. package/readme +71 -71
  26. package/dist/types/components/ContactSidebar/components/AddButton/AddButton.d.ts +0 -5
  27. package/dist/types/components/ContactSidebar/components/AssistantView/AssistantView.d.ts +0 -29
  28. package/dist/types/components/ContactSidebar/components/InteractionView/AssignmentsView.d.ts +0 -12
  29. package/dist/types/components/ContactSidebar/components/InteractionView/InteractionSummary.d.ts +0 -16
  30. package/dist/types/components/ContactSidebar/components/InteractionView/InteractionView.d.ts +0 -3
  31. package/dist/types/components/ContactSidebar/components/InteractionView/OperationalActivityView.d.ts +0 -13
  32. package/dist/types/components/ContactSidebar/components/InteractionView/ParticipantsView.d.ts +0 -15
  33. package/dist/types/components/ContactSidebar/components/InteractionView/ServiceLevelView.d.ts +0 -33
  34. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactHighlights/ContactHighlights.d.ts +0 -2
  35. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactHighlights/index.d.ts +0 -1
  36. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRepairs/ContactRepairs.d.ts +0 -4
  37. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRepairs/components/RepairSection/RepairSection.d.ts +0 -7
  38. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRepairs/index.d.ts +0 -1
  39. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTicket/ContactTicket.d.ts +0 -4
  40. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTicket/components/TicketSection/TicketSection.d.ts +0 -7
  41. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTicket/index.d.ts +0 -1
  42. package/dist/types/components/ContactSidebar/components/SidebarViewNavigation/SidebarViewNavigation.d.ts +0 -15
  43. package/dist/types/components/ContactSidebar/hooks/useSectionRefs.d.ts +0 -19
@@ -1,12 +0,0 @@
1
- export interface AssignmentHistoryItem {
2
- id: string;
3
- description: string;
4
- time: string;
5
- relatedTo: string;
6
- }
7
- interface AssignmentsViewProps {
8
- history?: AssignmentHistoryItem[];
9
- }
10
- /** Timeline visual de asignaciones, independiente de su futura fuente de datos. */
11
- declare const AssignmentsView: ({ history, }: AssignmentsViewProps) => import("react/jsx-runtime").JSX.Element;
12
- export default AssignmentsView;
@@ -1,16 +0,0 @@
1
- export interface InteractionSummaryData {
2
- group: string;
3
- responsible: string;
4
- status: string;
5
- tracking: Array<{
6
- id: string;
7
- label: string;
8
- checked: boolean;
9
- }>;
10
- }
11
- interface InteractionSummaryProps {
12
- data?: InteractionSummaryData;
13
- }
14
- /** Resumen visual desacoplado de la fuente de datos de una interacción. */
15
- declare const InteractionSummary: ({ data, }: InteractionSummaryProps) => import("react/jsx-runtime").JSX.Element;
16
- export default InteractionSummary;
@@ -1,3 +0,0 @@
1
- /** Contenido base de la vista Interacción y su navegación interna. */
2
- declare const InteractionView: () => import("react/jsx-runtime").JSX.Element;
3
- export default InteractionView;
@@ -1,13 +0,0 @@
1
- export interface OperationalActivityEvent {
2
- id: string;
3
- description: string;
4
- time: string;
5
- category: string;
6
- color: 'success' | 'error' | 'warning' | 'neutral';
7
- }
8
- interface OperationalActivityViewProps {
9
- events?: OperationalActivityEvent[];
10
- }
11
- /** Cronología visual desacoplada de la futura fuente de eventos operativos. */
12
- declare const OperationalActivityView: ({ events, }: OperationalActivityViewProps) => import("react/jsx-runtime").JSX.Element;
13
- export default OperationalActivityView;
@@ -1,15 +0,0 @@
1
- export interface Participant {
2
- id: string;
3
- initials: string;
4
- name: string;
5
- role: string;
6
- details: string;
7
- avatarColor: string;
8
- status?: string;
9
- }
10
- interface ParticipantsViewProps {
11
- participants?: Participant[];
12
- }
13
- /** Lista visual de participantes desacoplada de la futura fuente de datos. */
14
- declare const ParticipantsView: ({ participants, }: ParticipantsViewProps) => import("react/jsx-runtime").JSX.Element;
15
- export default ParticipantsView;
@@ -1,33 +0,0 @@
1
- type ServiceLevelStatus = 'completed' | 'inProgress' | 'expired';
2
- interface ServiceLevelObjective {
3
- id: string;
4
- name: string;
5
- details: string;
6
- status: ServiceLevelStatus;
7
- }
8
- interface ServiceLevelPolicyItem {
9
- id: string;
10
- label: string;
11
- value: string;
12
- }
13
- interface ServiceLevelHistoryItem {
14
- id: string;
15
- title: string;
16
- details: string;
17
- }
18
- export interface ServiceLevelData {
19
- statusTitle: string;
20
- statusDescription: string;
21
- objectives: ServiceLevelObjective[];
22
- policy: ServiceLevelPolicyItem[];
23
- history: ServiceLevelHistoryItem[];
24
- }
25
- declare const ServiceLevelHistoryItem: ({ item, }: {
26
- item: ServiceLevelHistoryItem;
27
- }) => import("react/jsx-runtime").JSX.Element;
28
- interface ServiceLevelViewProps {
29
- data?: ServiceLevelData;
30
- }
31
- /** Vista UI de SLA desacoplada de cálculos y datos operativos reales. */
32
- declare const ServiceLevelView: ({ data, }: ServiceLevelViewProps) => import("react/jsx-runtime").JSX.Element;
33
- export default ServiceLevelView;
@@ -1,2 +0,0 @@
1
- declare const ContactHighlights: () => import("react/jsx-runtime").JSX.Element;
2
- export default ContactHighlights;
@@ -1 +0,0 @@
1
- export { default } from './ContactHighlights';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ContactProps } from '../../types/ContactProps';
3
- declare const ContactRepairs: React.ForwardRefExoticComponent<ContactProps & React.RefAttributes<HTMLElement>>;
4
- export default ContactRepairs;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface RepairSectionProps {
3
- title: string;
4
- children?: React.ReactNode;
5
- }
6
- declare const RepairSection: ({ title, children }: RepairSectionProps) => import("react/jsx-runtime").JSX.Element;
7
- export default RepairSection;
@@ -1 +0,0 @@
1
- export { default } from './ContactRepairs';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ContactProps } from '../../types/ContactProps';
3
- declare const ContactTicket: React.ForwardRefExoticComponent<ContactProps & React.RefAttributes<HTMLElement>>;
4
- export default ContactTicket;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface TicketSectionProps {
3
- title: string;
4
- children?: React.ReactNode;
5
- }
6
- declare const TicketSection: ({ title, children }: TicketSectionProps) => import("react/jsx-runtime").JSX.Element;
7
- export default TicketSection;
@@ -1 +0,0 @@
1
- export { default } from './ContactTicket';
@@ -1,15 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export type SidebarView = 'contact' | 'interaction' | 'assistant';
3
- export interface SidebarViewDefinition {
4
- id: SidebarView;
5
- label: string;
6
- icon: ReactNode;
7
- }
8
- interface SidebarViewNavigationProps {
9
- activeView: SidebarView;
10
- onChange: (view: SidebarView) => void;
11
- views: SidebarViewDefinition[];
12
- }
13
- /** Navegación de primer nivel del panel lateral. */
14
- declare const SidebarViewNavigation: ({ activeView, onChange, views, }: SidebarViewNavigationProps) => import("react/jsx-runtime").JSX.Element;
15
- export default SidebarViewNavigation;
@@ -1,19 +0,0 @@
1
- import { RefObject } from 'react';
2
- export interface SectionRefs {
3
- contactDataRef: RefObject<HTMLElement | null>;
4
- contactConversationRef: RefObject<HTMLElement | null>;
5
- contactTicketRef: RefObject<HTMLElement | null>;
6
- contactNotesRef: RefObject<HTMLElement | null>;
7
- contactRepairsRef: RefObject<HTMLElement | null>;
8
- contactFilesRef: RefObject<HTMLElement | null>;
9
- contactMediaRef: RefObject<HTMLElement | null>;
10
- contactHistoryRef: RefObject<HTMLElement | null>;
11
- contactEventRef: RefObject<HTMLElement | null>;
12
- contactTaskRef: RefObject<HTMLElement | null>;
13
- contactButtonsRef: RefObject<HTMLElement | null>[];
14
- contactPanelShopRef: RefObject<HTMLElement | null>;
15
- contactRelationsRef: RefObject<HTMLElement | null>;
16
- groupDataRef: RefObject<HTMLDivElement | null>;
17
- }
18
- declare function useSectionRefs(buttonsData?: any[] | null): SectionRefs;
19
- export default useSectionRefs;