@trii/components 3.1.5 → 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 (80) hide show
  1. package/dist/cjs/index.js +18 -18
  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 +21 -21
  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 +15 -14
  10. package/dist/theme.d.ts +15 -14
  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/themeActionTypes.d.ts +5 -0
  78. package/dist/types/theme/themePersistence.d.ts +15 -0
  79. package/dist/types/theme/themeSlice.d.ts +2 -14
  80. package/package.json +1 -1
@@ -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;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const EditContactApiProvider: import("react").Provider<{
3
2
  fetchLabels: ({ signal }?: {
4
3
  signal?: AbortSignal;
@@ -31,12 +30,12 @@ export declare const EditContactApiProvider: import("react").Provider<{
31
30
  fetchContactFields: ({ forType, signal }: {
32
31
  signal?: AbortSignal;
33
32
  } & {
34
- forType: "business" | "contact";
33
+ forType: "contact" | "business";
35
34
  }) => Promise<import("@trii/types/dist/Contacts").IContactField[]>;
36
35
  updateEntity: ({ entityType, entityId, body, signal }: {
37
36
  signal?: AbortSignal;
38
37
  } & {
39
- entityType: "business" | "contact";
38
+ entityType: "contact" | "business";
40
39
  entityId: string;
41
40
  body: Partial<import("@trii/types/dist/Contacts").IContact> | Partial<import("@trii/types/dist/Contacts").IBusiness> | {
42
41
  tags: import("@trii/types/dist/Contacts").IContactTag[];
@@ -70,7 +69,7 @@ export declare const EditContactApiProvider: import("react").Provider<{
70
69
  }) => Promise<{
71
70
  success: boolean;
72
71
  warnings: string[];
73
- contactId?: string;
72
+ contactId?: string | null;
74
73
  }>;
75
74
  setContactAddress: ({ data, signal }: {
76
75
  signal?: AbortSignal;
@@ -99,7 +98,7 @@ export declare const EditContactApiProvider: import("react").Provider<{
99
98
  contactId: string;
100
99
  file: File;
101
100
  }) => Promise<string>;
102
- }>;
101
+ } | null>;
103
102
  export declare const useEditContactApi: () => {
104
103
  fetchLabels: ({ signal }?: {
105
104
  signal?: AbortSignal;
@@ -132,12 +131,12 @@ export declare const useEditContactApi: () => {
132
131
  fetchContactFields: ({ forType, signal }: {
133
132
  signal?: AbortSignal;
134
133
  } & {
135
- forType: "business" | "contact";
134
+ forType: "contact" | "business";
136
135
  }) => Promise<import("@trii/types/dist/Contacts").IContactField[]>;
137
136
  updateEntity: ({ entityType, entityId, body, signal }: {
138
137
  signal?: AbortSignal;
139
138
  } & {
140
- entityType: "business" | "contact";
139
+ entityType: "contact" | "business";
141
140
  entityId: string;
142
141
  body: Partial<import("@trii/types/dist/Contacts").IContact> | Partial<import("@trii/types/dist/Contacts").IBusiness> | {
143
142
  tags: import("@trii/types/dist/Contacts").IContactTag[];
@@ -171,7 +170,7 @@ export declare const useEditContactApi: () => {
171
170
  }) => Promise<{
172
171
  success: boolean;
173
172
  warnings: string[];
174
- contactId?: string;
173
+ contactId?: string | null;
175
174
  }>;
176
175
  setContactAddress: ({ data, signal }: {
177
176
  signal?: AbortSignal;
@@ -200,4 +199,4 @@ export declare const useEditContactApi: () => {
200
199
  contactId: string;
201
200
  file: File;
202
201
  }) => Promise<string>;
203
- };
202
+ } | null;
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  export type EditContactView = 'main' | 'tags' | 'searchLocation' | 'businessSelect' | 'businessMembers';
3
2
  export type EditContactViewContextValue = {
4
3
  view: EditContactView;
5
4
  setView: (view: EditContactView) => void;
6
5
  };
7
- export declare const EditContactViewProvider: import("react").Provider<EditContactViewContextValue>;
6
+ export declare const EditContactViewProvider: import("react").Provider<EditContactViewContextValue | null>;
8
7
  export declare const useEditContactView: () => EditContactViewContextValue;
@@ -38,7 +38,7 @@ export declare function useEditContactModalController({ open, baseUrl, spaceId,
38
38
  tags: IContactTag[];
39
39
  labels: ILabel[];
40
40
  contactFields: IContactField[];
41
- userTrii: UserTrii;
41
+ userTrii: UserTrii | null;
42
42
  userLoading: boolean;
43
43
  userError: unknown;
44
44
  };
@@ -1,6 +1,6 @@
1
1
  import { IContactAddress } from '@trii/types/dist/Contacts';
2
2
  declare const _default: {
3
- getEditedField: (key: string, originalValue: string | number, editedValue: string | number) => Record<string, string | number>;
3
+ getEditedField: (key: string, originalValue: string | number | null, editedValue: string | number) => Record<string, string | number> | null;
4
4
  getAddressesWithUpdatedValues: (newValue: string, newValueAddressId: string, addresses: IContactAddress[]) => IContactAddress[];
5
5
  };
6
6
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ConfirmDeleteDialogProps {
3
2
  open: boolean;
4
3
  onClose: () => void;
@@ -1,3 +1,4 @@
1
- export declare const StyledDatePickerContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
2
- export declare const StyledPickersContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
3
- export declare const StyledPickersDivider: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TypographyTypeMap<{}, "span">>;
1
+ import { Box, Typography } from '@mui/material';
2
+ export declare const StyledDatePickerContainer: typeof Box;
3
+ export declare const StyledPickersContainer: typeof Box;
4
+ export declare const StyledPickersDivider: typeof Typography;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface DeleteRecurringEventDialogProps {
3
2
  open: boolean;
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface EditRecurringEventDialogProps {
3
2
  open: boolean;
4
3
  onClose: () => void;
@@ -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,11 +1,8 @@
1
- /// <reference types="react" />
2
- import { TextField } from '@mui/material';
3
- export declare const StyledReminderItemContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
4
- export declare const StyledReminderItemViewContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
5
- export declare const StyledReminderInputsContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
1
+ import { Box, Select, TextField, IconButton } from '@mui/material';
2
+ export declare const StyledReminderItemContainer: typeof Box;
3
+ export declare const StyledReminderItemViewContainer: typeof Box;
4
+ export declare const StyledReminderInputsContainer: typeof Box;
6
5
  export declare const StyledReminderTextField: typeof TextField;
7
- export declare const StyledReminderSelect: (<Value = unknown>(props: import("@mui/material").SelectProps<Value>) => import("react").JSX.Element) & {
8
- muiName: string;
9
- };
10
- export declare const StyledReminderActionsContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
11
- export declare const StyledReminderDeleteIconButton: import("@mui/material").ExtendButtonBase<import("@mui/material").IconButtonTypeMap<{}, "button">>;
6
+ export declare const StyledReminderSelect: typeof Select;
7
+ export declare const StyledReminderActionsContainer: typeof Box;
8
+ export declare const StyledReminderDeleteIconButton: typeof IconButton;
@@ -1,2 +1,3 @@
1
- export declare const ReminderNotificationsContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
2
- export declare const HeaderContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
1
+ import { Box } from '@mui/material';
2
+ export declare const ReminderNotificationsContainer: typeof Box;
3
+ export declare const HeaderContainer: typeof Box;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Mode } from './types/Mode';
3
2
  interface Props {
4
3
  children: React.ReactNode;
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  export interface EventsDialogApi {
3
2
  baseUrl: string;
4
3
  spaceId: string;
5
4
  }
6
- declare const EventsDialogApiContext: import("react").Context<EventsDialogApi>;
7
- export declare const EventsDialogApiProvider: import("react").Provider<EventsDialogApi>;
8
- export declare const useEventsDialogApi: () => EventsDialogApi;
5
+ declare const EventsDialogApiContext: import("react").Context<EventsDialogApi | null>;
6
+ export declare const EventsDialogApiProvider: import("react").Provider<EventsDialogApi | null>;
7
+ export declare const useEventsDialogApi: () => EventsDialogApi | null;
9
8
  export default EventsDialogApiContext;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IEvent } from '@trii/types/dist/Calendar';
3
2
  export interface CalendarEvent {
4
3
  id: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface CalendarTask {
3
2
  id: string;
4
3
  title: string;
@@ -3,7 +3,7 @@ import { IEventNotification } from '@trii/types/dist/Calendar';
3
3
  import { SelectChangeEvent } from '@mui/material';
4
4
  import { EventNotificationFront } from '../types';
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,2 +1,3 @@
1
- export declare const StyledBoxContainer: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
2
- export declare const StyledDialogContextText: import("@mui/types").OverridableComponent<import("@mui/system").BoxTypeMap<{}, "div", import("@mui/material").Theme>>;
1
+ import { Box } from '@mui/material';
2
+ export declare const StyledBoxContainer: typeof Box;
3
+ export declare const StyledDialogContextText: typeof Box;
@@ -19,7 +19,7 @@ export declare const GOOGLE_MAPS_SCRIPT_CONFIG: {
19
19
  */
20
20
  export declare const useGoogleMapsLoader: () => {
21
21
  isLoaded: boolean;
22
- error: Error;
22
+ error: Error | null;
23
23
  };
24
24
  /**
25
25
  * Carga la API de Google Maps de manera asincrónica
@@ -0,0 +1,5 @@
1
+ import type { ThemeName } from './themePreference';
2
+ export declare const UPDATE_THEME_TYPE = "Theme/updateTheme";
3
+ export declare const themeUpdateFulfilled: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
4
+ theme: ThemeName;
5
+ }, string>;
@@ -0,0 +1,15 @@
1
+ import type { ThemeRootState } from './themeSlice';
2
+ import { ThemeName } from './themePreference';
3
+ /** Guarda el tema elegido en el backend. */
4
+ export declare const updateTheme: import("@reduxjs/toolkit").AsyncThunk<{
5
+ theme: ThemeName;
6
+ }, ThemeName, {
7
+ state: ThemeRootState;
8
+ dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction> | undefined;
9
+ extra?: unknown;
10
+ rejectValue?: unknown;
11
+ serializedErrorType?: unknown;
12
+ pendingMeta?: unknown;
13
+ fulfilledMeta?: unknown;
14
+ rejectedMeta?: unknown;
15
+ }>;
@@ -1,3 +1,4 @@
1
+ export { updateTheme } from './themePersistence';
1
2
  import { Theme } from '@mui/material';
2
3
  import { ThemeName, ThemePreference, ResolvedTheme } from './themePreference';
3
4
  export { isValidThemeName } from './themePreference';
@@ -23,21 +24,8 @@ export interface ThemeState {
23
24
  darkMode: boolean;
24
25
  toggleStatus: 'idle' | 'toggled';
25
26
  }
26
- /** Guarda el tema elegido en el backend. */
27
- export declare const updateTheme: import("@reduxjs/toolkit").AsyncThunk<{
28
- theme: ThemeName;
29
- }, ThemeName, {
30
- state: ThemeRootState;
31
- dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
32
- extra?: unknown;
33
- rejectValue?: unknown;
34
- serializedErrorType?: unknown;
35
- pendingMeta?: unknown;
36
- fulfilledMeta?: unknown;
37
- rejectedMeta?: unknown;
38
- }>;
39
27
  export declare const selectThemePreference: (state: ThemeRootState) => ThemePreference;
40
- export declare const toggleTheme: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ThemeName, "Theme/toggleTheme">, toggleModeTheme: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"Theme/toggleModeTheme">, systemThemeChanged: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<ResolvedTheme, "Theme/systemThemeChanged">;
28
+ export declare const toggleTheme: import("@reduxjs/toolkit").ActionCreatorWithPayload<ThemeName, "Theme/toggleTheme">, toggleModeTheme: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"Theme/toggleModeTheme">, systemThemeChanged: import("@reduxjs/toolkit").ActionCreatorWithPayload<ResolvedTheme, "Theme/systemThemeChanged">;
41
29
  export declare const selectThemeToggleStatus: (state: ThemeRootState) => "idle" | "toggled";
42
30
  export declare const selectTheme: (state: ThemeRootState) => Theme;
43
31
  export declare const selectDarkTheme: (state: ThemeRootState) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/components",
3
- "version": "3.1.5",
3
+ "version": "3.1.6",
4
4
  "description": "Trii components package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",