@trii/components 3.1.6 → 3.1.7

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 (74) hide show
  1. package/dist/cjs/theme.js +643 -1
  2. package/dist/cjs/theme.js.map +1 -1
  3. package/dist/esm/theme.js +604 -1
  4. package/dist/esm/theme.js.map +1 -1
  5. package/dist/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +1 -1
  6. package/dist/types/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +1 -0
  7. package/dist/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +1 -1
  8. package/dist/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +1 -1
  9. package/dist/types/components/ContactSidebar/components/CombineContactsModal/CombineContactsModal.d.ts +1 -1
  10. package/dist/types/components/ContactSidebar/components/MediaViewer/MediaViewer.d.ts +1 -1
  11. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/ContactButton.d.ts +1 -0
  12. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactButton/components/ExternalLink/ExternalLink.d.ts +1 -0
  13. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactConversation/ContactConversation.d.ts +1 -0
  14. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactConversation/styles.d.ts +2 -1
  15. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/ContactData.d.ts +1 -0
  16. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/components/Properties/Properties.d.ts +1 -1
  17. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactData/styles.d.ts +2 -1
  18. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactDataDetails/ContactDataDetails.d.ts +1 -0
  19. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/ContactEvent.d.ts +1 -0
  20. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/AddEvent/styles.d.ts +2 -1
  21. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/DatePicker/styles.d.ts +4 -3
  22. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +1 -0
  23. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactEvent/layout/BasicInputContainer/styles.d.ts +3 -2
  24. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactFiles/ContactFiles.d.ts +1 -0
  25. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactHistory/ContactHistory.d.ts +1 -0
  26. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/ContactNotes.d.ts +1 -0
  27. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/components/AddNote/AddNote.d.ts +1 -1
  28. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactNotes/context/NotesCardContext.d.ts +1 -0
  29. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactPanelShop/ContactPanelShop.d.ts +1 -0
  30. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRelations/ContactRelations.d.ts +1 -0
  31. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTask/ContactTask.d.ts +1 -0
  32. package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTask/components/AddTask/styles.d.ts +2 -1
  33. package/dist/types/components/ContactSidebar/components/PanelView/components/GroupData/GroupData.d.ts +1 -0
  34. package/dist/types/components/ContactSidebar/components/PanelView/components/GroupData/components/GroupDataContent/components/InformationBox/InformationBox.d.ts +1 -0
  35. package/dist/types/components/ContactSidebar/context/ActivitiesCardContext.d.ts +1 -0
  36. package/dist/types/components/ContactSidebar/context/SidebarPropsContext.d.ts +2 -1
  37. package/dist/types/components/ContactSidebar/hooks/useActivityDate.d.ts +2 -2
  38. package/dist/types/components/ContactSidebar/hooks/useCreateActivity.d.ts +9 -8
  39. package/dist/types/components/ContactSidebar/hooks/useLinkContacts.d.ts +2 -2
  40. package/dist/types/components/ContactSidebar/hooks/useMultipleSelect.d.ts +1 -0
  41. package/dist/types/components/ContactSidebar/hooks/useNotifications.d.ts +1 -1
  42. package/dist/types/components/ContactSidebar/hooks/useShareWithUsers.d.ts +2 -2
  43. package/dist/types/components/ContactSidebar/hooks/useSidebarAudioControl.d.ts +1 -0
  44. package/dist/types/components/ContactSidebar/utils/googleMapsUtils.d.ts +1 -1
  45. package/dist/types/components/ContactSidebar/utils/markdown/Markdown.d.ts +1 -1
  46. package/dist/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +1 -1
  47. package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +1 -0
  48. package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/hooks/useContactInfoPopup.d.ts +2 -2
  49. package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +1 -1
  50. package/dist/types/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +1 -1
  51. package/dist/types/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +1 -1
  52. package/dist/types/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +1 -1
  53. package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +9 -8
  54. package/dist/types/components/EditContactModal/context/EditContactViewContext.d.ts +2 -1
  55. package/dist/types/components/EditContactModal/hooks/useEditContactModalController.d.ts +1 -1
  56. package/dist/types/components/EditContactModal/hooks/utils/editContactHelper.d.ts +1 -1
  57. package/dist/types/components/EventsDialog/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts +1 -0
  58. package/dist/types/components/EventsDialog/components/DatePicker/styles.d.ts +3 -4
  59. package/dist/types/components/EventsDialog/components/DeleteRecurringEventDialog/DeleteRecurringEventDialog.d.ts +1 -0
  60. package/dist/types/components/EventsDialog/components/EditRecurringEventDialog/EditRecurringEventDialog.d.ts +1 -0
  61. package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +1 -0
  62. package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/style.d.ts +10 -7
  63. package/dist/types/components/EventsDialog/components/ReminderNotifications/styles.d.ts +2 -3
  64. package/dist/types/components/EventsDialog/context/CalendarContextProvider.d.ts +1 -0
  65. package/dist/types/components/EventsDialog/context/EventsDialogApiContext.d.ts +4 -3
  66. package/dist/types/components/EventsDialog/hooks/useCalendarEvents.d.ts +1 -0
  67. package/dist/types/components/EventsDialog/hooks/useCalendarTasks.d.ts +1 -0
  68. package/dist/types/components/EventsDialog/hooks/useNotifications.d.ts +1 -1
  69. package/dist/types/components/EventsDialog/layout/BasicInputContainer/styles.d.ts +2 -3
  70. package/dist/types/components/EventsDialog/utils/googleMapsLoader.d.ts +1 -1
  71. package/dist/types/theme/themeActionTypes.d.ts +1 -1
  72. package/dist/types/theme/themePersistence.d.ts +1 -1
  73. package/dist/types/theme/themeSlice.d.ts +1 -1
  74. package/package.json +2 -2
@@ -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: never[];
4
+ users: any[];
5
5
  field: {
6
- userIds: never[];
6
+ userIds: any[];
7
7
  handleChange: (event: SelectChangeEvent<string[]>) => void;
8
8
  };
9
9
  action: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Exclusión mutua de reproducción de audio, sin Redux.
3
4
  *
@@ -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 | null;
33
+ error: Error;
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 | null;
6
+ error: string;
7
7
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface EditModalProps {
2
3
  open: boolean;
3
4
  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 | null;
5
- anchorEl: HTMLElement | null;
4
+ contactData: IContact | IBusiness;
5
+ anchorEl: HTMLElement;
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 | null;
4
+ }) => import("react/jsx-runtime").JSX.Element;
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 | null;
7
+ declare const BusinessGeneral: (props: BusinessGeneralProps) => import("react/jsx-runtime").JSX.Element;
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 | null;
7
+ declare const ContactGeneral: (props: ContactGeneralProps) => import("react/jsx-runtime").JSX.Element;
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 | null;
6
+ }) => string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const EditContactApiProvider: import("react").Provider<{
2
3
  fetchLabels: ({ signal }?: {
3
4
  signal?: AbortSignal;
@@ -30,12 +31,12 @@ export declare const EditContactApiProvider: import("react").Provider<{
30
31
  fetchContactFields: ({ forType, signal }: {
31
32
  signal?: AbortSignal;
32
33
  } & {
33
- forType: "contact" | "business";
34
+ forType: "business" | "contact";
34
35
  }) => Promise<import("@trii/types/dist/Contacts").IContactField[]>;
35
36
  updateEntity: ({ entityType, entityId, body, signal }: {
36
37
  signal?: AbortSignal;
37
38
  } & {
38
- entityType: "contact" | "business";
39
+ entityType: "business" | "contact";
39
40
  entityId: string;
40
41
  body: Partial<import("@trii/types/dist/Contacts").IContact> | Partial<import("@trii/types/dist/Contacts").IBusiness> | {
41
42
  tags: import("@trii/types/dist/Contacts").IContactTag[];
@@ -69,7 +70,7 @@ export declare const EditContactApiProvider: import("react").Provider<{
69
70
  }) => Promise<{
70
71
  success: boolean;
71
72
  warnings: string[];
72
- contactId?: string | null;
73
+ contactId?: string;
73
74
  }>;
74
75
  setContactAddress: ({ data, signal }: {
75
76
  signal?: AbortSignal;
@@ -98,7 +99,7 @@ export declare const EditContactApiProvider: import("react").Provider<{
98
99
  contactId: string;
99
100
  file: File;
100
101
  }) => Promise<string>;
101
- } | null>;
102
+ }>;
102
103
  export declare const useEditContactApi: () => {
103
104
  fetchLabels: ({ signal }?: {
104
105
  signal?: AbortSignal;
@@ -131,12 +132,12 @@ export declare const useEditContactApi: () => {
131
132
  fetchContactFields: ({ forType, signal }: {
132
133
  signal?: AbortSignal;
133
134
  } & {
134
- forType: "contact" | "business";
135
+ forType: "business" | "contact";
135
136
  }) => Promise<import("@trii/types/dist/Contacts").IContactField[]>;
136
137
  updateEntity: ({ entityType, entityId, body, signal }: {
137
138
  signal?: AbortSignal;
138
139
  } & {
139
- entityType: "contact" | "business";
140
+ entityType: "business" | "contact";
140
141
  entityId: string;
141
142
  body: Partial<import("@trii/types/dist/Contacts").IContact> | Partial<import("@trii/types/dist/Contacts").IBusiness> | {
142
143
  tags: import("@trii/types/dist/Contacts").IContactTag[];
@@ -170,7 +171,7 @@ export declare const useEditContactApi: () => {
170
171
  }) => Promise<{
171
172
  success: boolean;
172
173
  warnings: string[];
173
- contactId?: string | null;
174
+ contactId?: string;
174
175
  }>;
175
176
  setContactAddress: ({ data, signal }: {
176
177
  signal?: AbortSignal;
@@ -199,4 +200,4 @@ export declare const useEditContactApi: () => {
199
200
  contactId: string;
200
201
  file: File;
201
202
  }) => Promise<string>;
202
- } | null;
203
+ };
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  export type EditContactView = 'main' | 'tags' | 'searchLocation' | 'businessSelect' | 'businessMembers';
2
3
  export type EditContactViewContextValue = {
3
4
  view: EditContactView;
4
5
  setView: (view: EditContactView) => void;
5
6
  };
6
- export declare const EditContactViewProvider: import("react").Provider<EditContactViewContextValue | null>;
7
+ export declare const EditContactViewProvider: import("react").Provider<EditContactViewContextValue>;
7
8
  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 | null;
41
+ userTrii: UserTrii;
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 | null, editedValue: string | number) => Record<string, string | number> | null;
3
+ getEditedField: (key: string, originalValue: string | number, editedValue: string | number) => Record<string, string | number>;
4
4
  getAddressesWithUpdatedValues: (newValue: string, newValueAddressId: string, addresses: IContactAddress[]) => IContactAddress[];
5
5
  };
6
6
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ConfirmDeleteDialogProps {
2
3
  open: boolean;
3
4
  onClose: () => void;
@@ -1,4 +1,3 @@
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
+ 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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface DeleteRecurringEventDialogProps {
2
3
  open: boolean;
3
4
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface EditRecurringEventDialogProps {
2
3
  open: boolean;
3
4
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="@types/google.maps" />
1
2
  interface Props {
2
3
  onPlaceSelected: (location: google.maps.LatLngLiteral, address?: string) => void;
3
4
  }
@@ -1,8 +1,11 @@
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;
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>>;
5
6
  export declare const StyledReminderTextField: typeof TextField;
6
- export declare const StyledReminderSelect: typeof Select;
7
- export declare const StyledReminderActionsContainer: typeof Box;
8
- export declare const StyledReminderDeleteIconButton: typeof IconButton;
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">>;
@@ -1,3 +1,2 @@
1
- import { Box } from '@mui/material';
2
- export declare const ReminderNotificationsContainer: typeof Box;
3
- export declare const HeaderContainer: typeof Box;
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Mode } from './types/Mode';
2
3
  interface Props {
3
4
  children: React.ReactNode;
@@ -1,8 +1,9 @@
1
+ /// <reference types="react" />
1
2
  export interface EventsDialogApi {
2
3
  baseUrl: string;
3
4
  spaceId: string;
4
5
  }
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;
6
+ declare const EventsDialogApiContext: import("react").Context<EventsDialogApi>;
7
+ export declare const EventsDialogApiProvider: import("react").Provider<EventsDialogApi>;
8
+ export declare const useEventsDialogApi: () => EventsDialogApi;
8
9
  export default EventsDialogApiContext;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IEvent } from '@trii/types/dist/Calendar';
2
3
  export interface CalendarEvent {
3
4
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface CalendarTask {
2
3
  id: string;
3
4
  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: never[];
6
+ notifications: any[];
7
7
  action: {
8
8
  addNotification: () => void;
9
9
  deleteNotification: (_notificationId: string) => void;
@@ -1,3 +1,2 @@
1
- import { Box } from '@mui/material';
2
- export declare const StyledBoxContainer: typeof Box;
3
- export declare const StyledDialogContextText: typeof Box;
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>>;
@@ -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 | null;
22
+ error: Error;
23
23
  };
24
24
  /**
25
25
  * Carga la API de Google Maps de manera asincrónica
@@ -1,5 +1,5 @@
1
1
  import type { ThemeName } from './themePreference';
2
2
  export declare const UPDATE_THEME_TYPE = "Theme/updateTheme";
3
- export declare const themeUpdateFulfilled: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
3
+ export declare const themeUpdateFulfilled: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<{
4
4
  theme: ThemeName;
5
5
  }, string>;
@@ -5,7 +5,7 @@ export declare const updateTheme: import("@reduxjs/toolkit").AsyncThunk<{
5
5
  theme: ThemeName;
6
6
  }, ThemeName, {
7
7
  state: ThemeRootState;
8
- dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction> | undefined;
8
+ dispatch?: import("redux-thunk").ThunkDispatch<unknown, unknown, import("redux").UnknownAction>;
9
9
  extra?: unknown;
10
10
  rejectValue?: unknown;
11
11
  serializedErrorType?: unknown;
@@ -25,7 +25,7 @@ export interface ThemeState {
25
25
  toggleStatus: 'idle' | 'toggled';
26
26
  }
27
27
  export declare const selectThemePreference: (state: ThemeRootState) => ThemePreference;
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">;
28
+ 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">;
29
29
  export declare const selectThemeToggleStatus: (state: ThemeRootState) => "idle" | "toggled";
30
30
  export declare const selectTheme: (state: ThemeRootState) => Theme;
31
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.6",
3
+ "version": "3.1.7",
4
4
  "description": "Trii components package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -191,4 +191,4 @@
191
191
  "uuid": "^10.0.0",
192
192
  "wavesurfer.js": "^6.6.3"
193
193
  }
194
- }
194
+ }