@trii/components 3.1.4 → 3.1.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.
Files changed (84) hide show
  1. package/dist/cjs/index.js +38 -38
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/theme.js +1 -1
  4. package/dist/cjs/theme.js.map +1 -1
  5. package/dist/esm/index.js +37 -37
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/esm/theme.js +1 -1
  8. package/dist/esm/theme.js.map +1 -1
  9. package/dist/index.d.ts +51 -19
  10. package/dist/theme.d.ts +51 -19
  11. package/dist/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +1 -1
  12. package/dist/types/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +0 -1
  13. package/dist/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +1 -1
  14. package/dist/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +1 -1
  15. package/dist/types/components/ContactSidebar/components/CombineContactsModal/CombineContactsModal.d.ts +1 -1
  16. package/dist/types/components/ContactSidebar/components/MediaViewer/MediaViewer.d.ts +1 -1
  17. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/ContactButton.d.ts +0 -1
  18. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/components/ExternalLink/ExternalLink.d.ts +0 -1
  19. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactConversation/ContactConversation.d.ts +0 -1
  20. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactConversation/styles.d.ts +1 -2
  21. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/ContactData.d.ts +0 -1
  22. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Properties/Properties.d.ts +1 -1
  23. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/styles.d.ts +1 -2
  24. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactDataDetails/ContactDataDetails.d.ts +0 -1
  25. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/ContactEvent.d.ts +0 -1
  26. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/AddEvent/styles.d.ts +1 -2
  27. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/DatePicker/styles.d.ts +3 -4
  28. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +0 -1
  29. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/layout/BasicInputContainer/styles.d.ts +2 -3
  30. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactFiles/ContactFiles.d.ts +0 -1
  31. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactHistory/ContactHistory.d.ts +0 -1
  32. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/ContactNotes.d.ts +0 -1
  33. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/components/AddNote/AddNote.d.ts +1 -1
  34. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/context/NotesCardContext.d.ts +0 -1
  35. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactPanelShop/ContactPanelShop.d.ts +0 -1
  36. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRelations/ContactRelations.d.ts +0 -1
  37. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTask/ContactTask.d.ts +0 -1
  38. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTask/components/AddTask/styles.d.ts +1 -2
  39. package/dist/types/components/ContactSidebar/components/PanelView/components/GroupData/GroupData.d.ts +0 -1
  40. package/dist/types/components/ContactSidebar/components/PanelView/components/GroupData/components/GroupDataContent/components/InformationBox/InformationBox.d.ts +0 -1
  41. package/dist/types/components/ContactSidebar/context/ActivitiesCardContext.d.ts +0 -1
  42. package/dist/types/components/ContactSidebar/context/SidebarPropsContext.d.ts +1 -2
  43. package/dist/types/components/ContactSidebar/hooks/useActivityDate.d.ts +2 -2
  44. package/dist/types/components/ContactSidebar/hooks/useCreateActivity.d.ts +8 -9
  45. package/dist/types/components/ContactSidebar/hooks/useLinkContacts.d.ts +2 -2
  46. package/dist/types/components/ContactSidebar/hooks/useMultipleSelect.d.ts +0 -1
  47. package/dist/types/components/ContactSidebar/hooks/useNotifications.d.ts +1 -1
  48. package/dist/types/components/ContactSidebar/hooks/useShareWithUsers.d.ts +2 -2
  49. package/dist/types/components/ContactSidebar/hooks/useSidebarAudioControl.d.ts +0 -1
  50. package/dist/types/components/ContactSidebar/utils/googleMapsUtils.d.ts +1 -1
  51. package/dist/types/components/ContactSidebar/utils/markdown/Markdown.d.ts +1 -1
  52. package/dist/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +1 -1
  53. package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +0 -1
  54. package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/hooks/useContactInfoPopup.d.ts +2 -2
  55. package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +1 -1
  56. package/dist/types/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +1 -1
  57. package/dist/types/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +1 -1
  58. package/dist/types/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +1 -1
  59. package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +8 -9
  60. package/dist/types/components/EditContactModal/context/EditContactViewContext.d.ts +1 -2
  61. package/dist/types/components/EditContactModal/hooks/useEditContactModalController.d.ts +1 -1
  62. package/dist/types/components/EditContactModal/hooks/utils/editContactHelper.d.ts +1 -1
  63. package/dist/types/components/EventsDialog/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts +0 -1
  64. package/dist/types/components/EventsDialog/components/DatePicker/styles.d.ts +4 -3
  65. package/dist/types/components/EventsDialog/components/DeleteRecurringEventDialog/DeleteRecurringEventDialog.d.ts +0 -1
  66. package/dist/types/components/EventsDialog/components/EditRecurringEventDialog/EditRecurringEventDialog.d.ts +0 -1
  67. package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +0 -1
  68. package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/style.d.ts +7 -10
  69. package/dist/types/components/EventsDialog/components/ReminderNotifications/styles.d.ts +3 -2
  70. package/dist/types/components/EventsDialog/context/CalendarContextProvider.d.ts +0 -1
  71. package/dist/types/components/EventsDialog/context/EventsDialogApiContext.d.ts +3 -4
  72. package/dist/types/components/EventsDialog/hooks/useCalendarEvents.d.ts +0 -1
  73. package/dist/types/components/EventsDialog/hooks/useCalendarTasks.d.ts +0 -1
  74. package/dist/types/components/EventsDialog/hooks/useNotifications.d.ts +1 -1
  75. package/dist/types/components/EventsDialog/layout/BasicInputContainer/styles.d.ts +3 -2
  76. package/dist/types/components/EventsDialog/utils/googleMapsLoader.d.ts +1 -1
  77. package/dist/types/theme/index.d.ts +2 -0
  78. package/dist/types/theme/themeActionTypes.d.ts +5 -0
  79. package/dist/types/theme/themePersistence.d.ts +15 -0
  80. package/dist/types/theme/themePreference.d.ts +14 -0
  81. package/dist/types/theme/themePreference.test.d.ts +1 -0
  82. package/dist/types/theme/themeProvider.d.ts +17 -0
  83. package/dist/types/theme/themeSlice.d.ts +7 -18
  84. package/package.json +1 -1
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Theme } from '@mui/material';
2
+ import * as redux from 'redux';
2
3
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
3
4
  import * as redux_thunk from 'redux-thunk';
4
- import * as redux from 'redux';
5
5
 
6
6
  /**
7
7
  * Ajustes que difieren entre apps. Los valores por defecto son los que ya
@@ -18,6 +18,35 @@ interface MuiComponentsConfigOptions {
18
18
  }
19
19
  declare const MuiComponentsConfig: (themeRedux: Theme, options?: MuiComponentsConfigOptions) => Theme;
20
20
 
21
+ type ThemePreference = 'light' | 'dark' | 'system';
22
+ type ResolvedTheme = 'light' | 'dark';
23
+ declare const THEME_PREFERENCES: readonly ThemePreference[];
24
+ declare const LEGACY_THEME_NAMES: readonly ["lightBlueIndigo", "lightBlue", "lightRed", "lightGreen", "lightPink", "lightPurple", "lightTeal", "lightLime", "lightYellow", "lightAmber", "lightOrange", "lightBrown", "lightGray", "darkBlue", "darkBlack"];
25
+ type LegacyThemeName = typeof LEGACY_THEME_NAMES[number];
26
+ type ThemeName = ThemePreference | LegacyThemeName;
27
+ declare const isValidThemeName: (name: string) => name is ThemeName;
28
+ /** Missing/unknown preferences follow the OS. Existing choices keep their mode. */
29
+ declare const normalizeThemePreference: (name?: string | null) => ThemePreference;
30
+ declare const resolveThemePreference: (preference: ThemePreference, systemDark?: boolean) => ResolvedTheme;
31
+ /** Emits immediately; caller must unsubscribe on unmount/preference change.
32
+ * Does not persist or call an API when the OS appearance changes.
33
+ */
34
+ declare const observeThemePreference: (preference: ThemePreference, listener: (mode: ResolvedTheme) => void) => (() => void);
35
+
36
+ /** Guarda el tema elegido en el backend. */
37
+ declare const updateTheme: _reduxjs_toolkit.AsyncThunk<{
38
+ theme: ThemeName;
39
+ }, ThemeName, {
40
+ state: ThemeRootState;
41
+ dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
42
+ extra?: unknown;
43
+ rejectValue?: unknown;
44
+ serializedErrorType?: unknown;
45
+ pendingMeta?: unknown;
46
+ fulfilledMeta?: unknown;
47
+ rejectedMeta?: unknown;
48
+ }>;
49
+
21
50
  /**
22
51
  * Forma mínima del store que necesita este slice: la app que lo use tiene que
23
52
  * tener `Theme` y `User.user.uid`.
@@ -32,31 +61,17 @@ interface ThemeRootState {
32
61
  };
33
62
  Theme: ThemeState;
34
63
  }
35
- /** Nombres de tema disponibles. */
36
- type ThemeName = 'lightBlueIndigo' | 'darkBlack' | 'darkBlue' | 'lightAmber' | 'lightBlue' | 'lightBrown' | 'lightGray' | 'lightGreen' | 'lightLime' | 'lightOrange' | 'lightPink' | 'lightPurple' | 'lightRed' | 'lightTeal' | 'lightYellow';
37
64
  /** Estado del slice. */
38
65
  interface ThemeState {
39
66
  themeSelected: Theme;
67
+ preference: ThemePreference;
40
68
  darkMode: boolean;
41
69
  toggleStatus: 'idle' | 'toggled';
42
70
  }
43
- /** Guarda el tema elegido en el backend. */
44
- declare const updateTheme: _reduxjs_toolkit.AsyncThunk<{
45
- theme: ThemeName;
46
- }, ThemeName, {
47
- state: ThemeRootState;
48
- dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
49
- extra?: unknown;
50
- rejectValue?: unknown;
51
- serializedErrorType?: unknown;
52
- pendingMeta?: unknown;
53
- fulfilledMeta?: unknown;
54
- rejectedMeta?: unknown;
55
- }>;
56
- /** Valida que el string sea un `ThemeName`. */
57
- declare const isValidThemeName: (theme: string) => theme is ThemeName;
71
+ declare const selectThemePreference: (state: ThemeRootState) => ThemePreference;
58
72
  declare const toggleTheme: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<ThemeName, "Theme/toggleTheme">;
59
73
  declare const toggleModeTheme: _reduxjs_toolkit.ActionCreatorWithoutPayload<"Theme/toggleModeTheme">;
74
+ declare const systemThemeChanged: _reduxjs_toolkit.ActionCreatorWithOptionalPayload<ResolvedTheme, "Theme/systemThemeChanged">;
60
75
  declare const selectThemeToggleStatus: (state: ThemeRootState) => "idle" | "toggled";
61
76
  declare const selectTheme: (state: ThemeRootState) => Theme;
62
77
  declare const selectDarkTheme: (state: ThemeRootState) => boolean;
@@ -130,20 +145,37 @@ declare module '@mui/material/styles' {
130
145
  name?: string;
131
146
  }
132
147
  }
148
+ declare const lightTheme: Theme;
149
+ declare const darkTheme: Theme;
150
+ /** @deprecated Use lightTheme. */
133
151
  declare const lightBlueIndigo: Theme;
152
+ /** @deprecated Use lightTheme. */
134
153
  declare const lightBlue: Theme;
154
+ /** @deprecated Use lightTheme. */
135
155
  declare const lightRed: Theme;
156
+ /** @deprecated Use lightTheme. */
136
157
  declare const lightGreen: Theme;
158
+ /** @deprecated Use lightTheme. */
137
159
  declare const lightPink: Theme;
160
+ /** @deprecated Use lightTheme. */
138
161
  declare const lightPurple: Theme;
162
+ /** @deprecated Use lightTheme. */
139
163
  declare const lightTeal: Theme;
164
+ /** @deprecated Use lightTheme. */
140
165
  declare const lightLime: Theme;
166
+ /** @deprecated Use lightTheme. */
141
167
  declare const lightYellow: Theme;
168
+ /** @deprecated Use lightTheme. */
142
169
  declare const lightAmber: Theme;
170
+ /** @deprecated Use lightTheme. */
143
171
  declare const lightOrange: Theme;
172
+ /** @deprecated Use lightTheme. */
144
173
  declare const lightBrown: Theme;
174
+ /** @deprecated Use lightTheme. */
145
175
  declare const lightGray: Theme;
176
+ /** @deprecated Use darkTheme. */
146
177
  declare const darkBlue: Theme;
178
+ /** @deprecated Use darkTheme. */
147
179
  declare const darkBlack: Theme;
148
180
 
149
- export { MuiComponentsConfig, type MuiComponentsConfigOptions, type ThemeName, type ThemeRootState, type ThemeState, darkBlack, darkBlue, isValidThemeName, lightAmber, lightBlue, lightBlueIndigo, lightBrown, lightGray, lightGreen, lightLime, lightOrange, lightPink, lightPurple, lightRed, lightTeal, lightYellow, selectDarkTheme, selectTheme, selectThemeToggleStatus, selectedDarkTheme, selectedTheme, _default as themeReducer, toggleModeTheme, toggleTheme, updateTheme };
181
+ export { type LegacyThemeName, MuiComponentsConfig, type MuiComponentsConfigOptions, type ResolvedTheme, THEME_PREFERENCES, type ThemeName, type ThemePreference, type ThemeRootState, type ThemeState, darkBlack, darkBlue, darkTheme, isValidThemeName, lightAmber, lightBlue, lightBlueIndigo, lightBrown, lightGray, lightGreen, lightLime, lightOrange, lightPink, lightPurple, lightRed, lightTeal, lightTheme, lightYellow, normalizeThemePreference, observeThemePreference, resolveThemePreference, selectDarkTheme, selectTheme, selectThemePreference, selectThemeToggleStatus, selectedDarkTheme, selectedTheme, systemThemeChanged, _default as themeReducer, toggleModeTheme, toggleTheme, updateTheme };
@@ -3,5 +3,5 @@ interface BusinessSectionProps {
3
3
  contactData?: IContact;
4
4
  title: string;
5
5
  }
6
- declare const BusinessSection: ({ contactData, title }: BusinessSectionProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const BusinessSection: ({ contactData, title }: BusinessSectionProps) => import("react/jsx-runtime").JSX.Element | null;
7
7
  export default BusinessSection;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IContactAddress } from '@trii/types/dist/Contacts';
3
2
  interface ContactProps {
4
3
  contactList: IContactAddress[];
@@ -3,5 +3,5 @@ interface LabelsSectionProps {
3
3
  contactData?: IContact | IBusiness;
4
4
  title: string;
5
5
  }
6
- declare const LabelsSection: ({ contactData, title }: LabelsSectionProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const LabelsSection: ({ contactData, title }: LabelsSectionProps) => import("react/jsx-runtime").JSX.Element | null;
7
7
  export default LabelsSection;
@@ -4,5 +4,5 @@ interface MembersSectionProps {
4
4
  title: string;
5
5
  navigate: (path: string) => void;
6
6
  }
7
- declare const MembersSection: ({ contactData, title, navigate }: MembersSectionProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const MembersSection: ({ contactData, title, navigate }: MembersSectionProps) => import("react/jsx-runtime").JSX.Element | null;
8
8
  export default MembersSection;
@@ -5,5 +5,5 @@ interface CombineContactsModalProps {
5
5
  contactId?: string;
6
6
  onMerged?: (contact: IContact) => void;
7
7
  }
8
- declare const CombineContactsModal: ({ open, onClose, contactId, onMerged, }: CombineContactsModalProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const CombineContactsModal: ({ open, onClose, contactId, onMerged, }: CombineContactsModalProps) => import("react/jsx-runtime").JSX.Element | null;
9
9
  export default CombineContactsModal;
@@ -6,5 +6,5 @@ export interface MediaViewerProps {
6
6
  onIndexChange: (index: number) => void;
7
7
  onClose: () => void;
8
8
  }
9
- declare const MediaViewer: ({ open, files, index, onIndexChange, onClose, }: MediaViewerProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const MediaViewer: ({ open, files, index, onIndexChange, onClose, }: MediaViewerProps) => import("react/jsx-runtime").JSX.Element | null;
10
10
  export default MediaViewer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactButtonProps } from '../../types/ContactProps';
3
2
  declare const ContactButton: import("react").ForwardRefExoticComponent<ContactButtonProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactButton;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ExternalLinkProps {
3
2
  url: string;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactConversation: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<unknown>>;
4
3
  export default ContactConversation;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const StyledContactConversationButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
3
- ref?: import("react").Ref<HTMLButtonElement>;
2
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
4
3
  }, "style" | "className" | "tabIndex" | "color" | "children" | "sx" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableFocusRipple" | "size" | "variant" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactData: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactData;
@@ -2,5 +2,5 @@ import { Property } from '@trii/types/dist/Contacts';
2
2
  interface Props {
3
3
  properties: Property[];
4
4
  }
5
- declare const Properties: ({ properties }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ declare const Properties: ({ properties }: Props) => import("react/jsx-runtime").JSX.Element | null;
6
6
  export default Properties;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const StyledContactDataContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: import("react").Ref<HTMLDivElement>;
2
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
3
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
4
  isExpanded?: boolean;
6
5
  }, {}, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactDataDetails: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactDataDetails;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactEvent: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactEvent;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
3
- ref?: import("react").Ref<HTMLButtonElement>;
2
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
4
3
  }, "style" | "className" | "tabIndex" | "color" | "children" | "sx" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableFocusRipple" | "size" | "variant" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  export declare const StyledDatePickerContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: import("react").Ref<HTMLDivElement>;
2
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
3
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
4
  export declare const StyledPickersContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
- ref?: import("react").Ref<HTMLDivElement>;
5
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
6
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
7
  export declare const StyledPickersDivider: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
9
- ref?: import("react").Ref<HTMLSpanElement>;
8
+ ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
10
9
  }, "p" | "style" | "className" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "classes" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="@types/google.maps" />
2
1
  interface Props {
3
2
  onPlaceSelected: (location: google.maps.LatLngLiteral, address?: string) => void;
4
3
  }
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  export declare const StyledBoxContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
- ref?: import("react").Ref<HTMLDivElement>;
2
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
3
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
4
  export declare const StyledDialogContextText: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
- ref?: import("react").Ref<HTMLDivElement>;
5
+ ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
6
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactFiles: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactFiles;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactHistory: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactHistory;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactNotes: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactNotes;
@@ -1,2 +1,2 @@
1
- declare const AddNote: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const AddNote: () => import("react/jsx-runtime").JSX.Element | null;
2
2
  export default AddNote;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { NotesCardContextType } from './types/NotesCardContextType';
3
2
  export declare const NotesCardContext: import("react").Context<NotesCardContextType>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactPanelShop: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactPanelShop;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactRelations: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactRelations;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ContactProps } from '../../types/ContactProps';
3
2
  declare const ContactTask: import("react").ForwardRefExoticComponent<ContactProps & import("react").RefAttributes<HTMLElement>>;
4
3
  export default ContactTask;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
3
- ref?: import("react").Ref<HTMLButtonElement>;
2
+ ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
4
3
  }, "style" | "className" | "tabIndex" | "color" | "children" | "sx" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableFocusRipple" | "size" | "variant" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  type Props = {
3
2
  defaultExpanded?: boolean;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Props {
3
2
  title?: string;
4
3
  value: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ActivitiesCardContextType } from './types/ActivitiesCardContextType';
3
2
  export declare const ActivitiesCardContext: import("react").Context<ActivitiesCardContextType>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IConversation } from '@trii/types/dist/Conversations';
3
2
  import { IBusiness, IContact, IContactAddress } from '@trii/types/dist/Contacts';
4
3
  import { ChannelType } from '@trii/types/dist/Common/Channels';
@@ -77,5 +76,5 @@ export interface StartConversationTarget {
77
76
  address: IContactAddress | undefined;
78
77
  addressList: IContactAddress[];
79
78
  }
80
- export declare const SidebarPropsProvider: import("react").Provider<SidebarProps>;
79
+ export declare const SidebarPropsProvider: import("react").Provider<SidebarProps | null>;
81
80
  export declare function useSidebarProps(): SidebarProps;
@@ -3,8 +3,8 @@ import { Dayjs } from 'dayjs';
3
3
  export declare const useActivityDateInitialDef: {
4
4
  state: {
5
5
  error: boolean;
6
- selectedStartDate: any;
7
- selectedEndDate: any;
6
+ selectedStartDate: null;
7
+ selectedEndDate: null;
8
8
  };
9
9
  action: {
10
10
  setError: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UseFieldType } from './useField';
3
2
  import { UseActivityDateType } from './useActivityDate';
4
3
  import { UseNotificationsType } from './useNotifications';
@@ -11,8 +10,8 @@ export declare const useCreateActivityInitialDef: {
11
10
  date: {
12
11
  state: {
13
12
  error: boolean;
14
- selectedStartDate: any;
15
- selectedEndDate: any;
13
+ selectedStartDate: null;
14
+ selectedEndDate: null;
16
15
  };
17
16
  action: {
18
17
  setError: () => void;
@@ -23,7 +22,7 @@ export declare const useCreateActivityInitialDef: {
23
22
  };
24
23
  };
25
24
  notifications: {
26
- notifications: any[];
25
+ notifications: never[];
27
26
  action: {
28
27
  addNotification: () => void;
29
28
  deleteNotification: (notificationId: string) => void;
@@ -34,9 +33,9 @@ export declare const useCreateActivityInitialDef: {
34
33
  };
35
34
  };
36
35
  shareWithUsers: {
37
- users: any[];
36
+ users: never[];
38
37
  field: {
39
- userIds: any[];
38
+ userIds: never[];
40
39
  handleChange: (event: import("@mui/material").SelectChangeEvent<string[]>) => void;
41
40
  };
42
41
  action: {
@@ -47,16 +46,16 @@ export declare const useCreateActivityInitialDef: {
47
46
  linkContact: {
48
47
  state: {
49
48
  isLoading: boolean;
50
- contactSelectedId: any;
49
+ contactSelectedId: null;
51
50
  search: string;
52
51
  };
53
52
  action: {
54
53
  resetField: () => void;
55
54
  handleSearch: (value: string) => void;
56
- handleScroll: (e: import("react").UIEvent<HTMLElement, UIEvent>) => void;
55
+ handleScroll: (e: import("react").UIEvent<HTMLElement>) => void;
57
56
  handleSelectContact: (contact: import("@trii/types/dist/Contacts").IContact) => void;
58
57
  };
59
- contactList: any[];
58
+ contactList: never[];
60
59
  };
61
60
  };
62
61
  action: {
@@ -3,7 +3,7 @@ import { UIEvent } from 'react';
3
3
  export declare const useLinkContactsInitialDef: {
4
4
  state: {
5
5
  isLoading: boolean;
6
- contactSelectedId: any;
6
+ contactSelectedId: null;
7
7
  search: string;
8
8
  };
9
9
  action: {
@@ -12,7 +12,7 @@ export declare const useLinkContactsInitialDef: {
12
12
  handleScroll: (e: UIEvent<HTMLElement>) => void;
13
13
  handleSelectContact: (contact: IContact) => void;
14
14
  };
15
- contactList: any[];
15
+ contactList: never[];
16
16
  };
17
17
  export type UseLinkContactsType = {
18
18
  state: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type UseMultipleSelectReturnType<T> = {
3
2
  attributes: {
4
3
  value: T;
@@ -3,7 +3,7 @@ import { EventNotificationFront } from '../types/activities';
3
3
  import { IEventNotification } from '@trii/types/dist/Calendar';
4
4
  import { SelectChangeEvent } from '@mui/material';
5
5
  export declare const useNotificationsInitialDef: {
6
- notifications: any[];
6
+ notifications: never[];
7
7
  action: {
8
8
  addNotification: () => void;
9
9
  deleteNotification: (notificationId: string) => void;
@@ -1,9 +1,9 @@
1
1
  import { SelectChangeEvent } from '@mui/material';
2
2
  import { UserInfo } from '@trii/types/dist/Users';
3
3
  export declare const useShareWithUsersInitialDef: {
4
- users: any[];
4
+ users: never[];
5
5
  field: {
6
- userIds: any[];
6
+ userIds: never[];
7
7
  handleChange: (event: SelectChangeEvent<string[]>) => void;
8
8
  };
9
9
  action: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Exclusión mutua de reproducción de audio, sin Redux.
4
3
  *
@@ -30,7 +30,7 @@ export declare const GOOGLE_MAPS_SCRIPT_CONFIG: {
30
30
  */
31
31
  export declare const useGoogleMapsLoader: () => {
32
32
  isLoaded: boolean;
33
- error: Error;
33
+ error: Error | null;
34
34
  };
35
35
  /**
36
36
  * Carga la API de Google Maps de manera asincrónica
@@ -75,4 +75,4 @@ export declare const MarkdownWithOptions: (text: string, options?: MarkdownOptio
75
75
  * @param options - Opciones de configuración
76
76
  * @returns HTML string con elementos de bloque
77
77
  */
78
- export declare const MarkdownBlock: (text: string, options?: Omit<MarkdownOptions, 'extendedSyntax'>) => string;
78
+ export declare const MarkdownBlock: (text: string, options?: Omit<MarkdownOptions, "extendedSyntax">) => string;
@@ -3,5 +3,5 @@ export declare const waitForGoogleMaps: (maxWaitTime?: number) => Promise<boolea
3
3
  export declare const useGoogleMapsStatus: () => {
4
4
  isLoaded: boolean;
5
5
  isLoading: boolean;
6
- error: string;
6
+ error: string | null;
7
7
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface EditModalProps {
3
2
  open: boolean;
4
3
  onClose: () => void;
@@ -1,8 +1,8 @@
1
1
  import { MouseEvent } from 'react';
2
2
  import type { IContact, IBusiness } from '@trii/types/dist/Contacts';
3
3
  export declare const useContactInfoPopup: (contactId: string | null) => {
4
- contactData: IContact | IBusiness;
5
- anchorEl: HTMLElement;
4
+ contactData: IContact | IBusiness | null;
5
+ anchorEl: HTMLElement | null;
6
6
  isOpen: boolean;
7
7
  isLoading: boolean;
8
8
  openPopup: (event: MouseEvent<HTMLElement>) => Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { AdornmentStatus } from '../../StatusAdornment';
2
2
  declare const Adornment: ({ status }: {
3
3
  status: AdornmentStatus;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
5
5
  export default Adornment;
@@ -4,5 +4,5 @@ export type BusinessGeneralProps = Omit<GeneralProps, 'entityData' | 'entityType
4
4
  entityType: 'business';
5
5
  entityData: IBusiness;
6
6
  };
7
- declare const BusinessGeneral: (props: BusinessGeneralProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const BusinessGeneral: (props: BusinessGeneralProps) => import("react/jsx-runtime").JSX.Element | null;
8
8
  export default BusinessGeneral;
@@ -4,5 +4,5 @@ export type ContactGeneralProps = Omit<GeneralProps, 'entityData' | 'entityType'
4
4
  entityType: 'contact';
5
5
  entityData: IContact;
6
6
  };
7
- declare const ContactGeneral: (props: ContactGeneralProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const ContactGeneral: (props: ContactGeneralProps) => import("react/jsx-runtime").JSX.Element | null;
8
8
  export default ContactGeneral;
@@ -3,4 +3,4 @@ export declare const resolveUserLabel: ({ userId, users, currentUser, }: {
3
3
  userId?: string;
4
4
  users: UserInfo[];
5
5
  currentUser?: UserTrii | null;
6
- }) => string;
6
+ }) => string | null;