@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.
- package/dist/cjs/index.js +38 -38
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/theme.js +1 -1
- package/dist/cjs/theme.js.map +1 -1
- package/dist/esm/index.js +37 -37
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme.js +1 -1
- package/dist/esm/theme.js.map +1 -1
- package/dist/index.d.ts +51 -19
- package/dist/theme.d.ts +51 -19
- package/dist/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +1 -1
- package/dist/types/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +0 -1
- package/dist/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +1 -1
- package/dist/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/CombineContactsModal/CombineContactsModal.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/MediaViewer/MediaViewer.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/ContactButton.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/components/ExternalLink/ExternalLink.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactConversation/ContactConversation.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactConversation/styles.d.ts +1 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/ContactData.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Properties/Properties.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/styles.d.ts +1 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactDataDetails/ContactDataDetails.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/ContactEvent.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/AddEvent/styles.d.ts +1 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/DatePicker/styles.d.ts +3 -4
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/layout/BasicInputContainer/styles.d.ts +2 -3
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactFiles/ContactFiles.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactHistory/ContactHistory.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/ContactNotes.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/components/AddNote/AddNote.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/context/NotesCardContext.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactPanelShop/ContactPanelShop.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRelations/ContactRelations.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTask/ContactTask.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTask/components/AddTask/styles.d.ts +1 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/GroupData/GroupData.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/GroupData/components/GroupDataContent/components/InformationBox/InformationBox.d.ts +0 -1
- package/dist/types/components/ContactSidebar/context/ActivitiesCardContext.d.ts +0 -1
- package/dist/types/components/ContactSidebar/context/SidebarPropsContext.d.ts +1 -2
- package/dist/types/components/ContactSidebar/hooks/useActivityDate.d.ts +2 -2
- package/dist/types/components/ContactSidebar/hooks/useCreateActivity.d.ts +8 -9
- package/dist/types/components/ContactSidebar/hooks/useLinkContacts.d.ts +2 -2
- package/dist/types/components/ContactSidebar/hooks/useMultipleSelect.d.ts +0 -1
- package/dist/types/components/ContactSidebar/hooks/useNotifications.d.ts +1 -1
- package/dist/types/components/ContactSidebar/hooks/useShareWithUsers.d.ts +2 -2
- package/dist/types/components/ContactSidebar/hooks/useSidebarAudioControl.d.ts +0 -1
- package/dist/types/components/ContactSidebar/utils/googleMapsUtils.d.ts +1 -1
- package/dist/types/components/ContactSidebar/utils/markdown/Markdown.d.ts +1 -1
- package/dist/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +1 -1
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +0 -1
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/hooks/useContactInfoPopup.d.ts +2 -2
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +1 -1
- package/dist/types/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +1 -1
- package/dist/types/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +1 -1
- package/dist/types/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +1 -1
- package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +8 -9
- package/dist/types/components/EditContactModal/context/EditContactViewContext.d.ts +1 -2
- package/dist/types/components/EditContactModal/hooks/useEditContactModalController.d.ts +1 -1
- package/dist/types/components/EditContactModal/hooks/utils/editContactHelper.d.ts +1 -1
- package/dist/types/components/EventsDialog/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts +0 -1
- package/dist/types/components/EventsDialog/components/DatePicker/styles.d.ts +4 -3
- package/dist/types/components/EventsDialog/components/DeleteRecurringEventDialog/DeleteRecurringEventDialog.d.ts +0 -1
- package/dist/types/components/EventsDialog/components/EditRecurringEventDialog/EditRecurringEventDialog.d.ts +0 -1
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +0 -1
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/style.d.ts +7 -10
- package/dist/types/components/EventsDialog/components/ReminderNotifications/styles.d.ts +3 -2
- package/dist/types/components/EventsDialog/context/CalendarContextProvider.d.ts +0 -1
- package/dist/types/components/EventsDialog/context/EventsDialogApiContext.d.ts +3 -4
- package/dist/types/components/EventsDialog/hooks/useCalendarEvents.d.ts +0 -1
- package/dist/types/components/EventsDialog/hooks/useCalendarTasks.d.ts +0 -1
- package/dist/types/components/EventsDialog/hooks/useNotifications.d.ts +1 -1
- package/dist/types/components/EventsDialog/layout/BasicInputContainer/styles.d.ts +3 -2
- package/dist/types/components/EventsDialog/utils/googleMapsLoader.d.ts +1 -1
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/themeActionTypes.d.ts +5 -0
- package/dist/types/theme/themePersistence.d.ts +15 -0
- package/dist/types/theme/themePreference.d.ts +14 -0
- package/dist/types/theme/themePreference.test.d.ts +1 -0
- package/dist/types/theme/themeProvider.d.ts +17 -0
- package/dist/types/theme/themeSlice.d.ts +7 -18
- 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
|
-
|
|
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 };
|
package/dist/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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;
|
package/dist/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts
CHANGED
|
@@ -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
|
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").
|
|
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>, {}, {}>;
|
|
@@ -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;
|
package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/styles.d.ts
CHANGED
|
@@ -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").
|
|
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
|
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").
|
|
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").
|
|
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").
|
|
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").
|
|
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,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").
|
|
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").
|
|
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,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,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").
|
|
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 { 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;
|
|
@@ -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:
|
|
15
|
-
selectedEndDate:
|
|
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:
|
|
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:
|
|
36
|
+
users: never[];
|
|
38
37
|
field: {
|
|
39
|
-
userIds:
|
|
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:
|
|
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
|
|
55
|
+
handleScroll: (e: import("react").UIEvent<HTMLElement>) => void;
|
|
57
56
|
handleSelectContact: (contact: import("@trii/types/dist/Contacts").IContact) => void;
|
|
58
57
|
};
|
|
59
|
-
contactList:
|
|
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:
|
|
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:
|
|
15
|
+
contactList: never[];
|
|
16
16
|
};
|
|
17
17
|
export type UseLinkContactsType = {
|
|
18
18
|
state: {
|
|
@@ -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:
|
|
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:
|
|
4
|
+
users: never[];
|
|
5
5
|
field: {
|
|
6
|
-
userIds:
|
|
6
|
+
userIds: never[];
|
|
7
7
|
handleChange: (event: SelectChangeEvent<string[]>) => void;
|
|
8
8
|
};
|
|
9
9
|
action: {
|
|
@@ -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,
|
|
78
|
+
export declare const MarkdownBlock: (text: string, options?: Omit<MarkdownOptions, "extendedSyntax">) => string;
|
|
@@ -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>;
|
|
@@ -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;
|