@trii/components 2.0.93 → 2.0.96

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 (31) hide show
  1. package/dist/cjs/index.js +8 -12
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/index.js +8 -12
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/index.d.ts +14 -5
  6. package/dist/types/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +0 -1
  7. package/dist/types/components/EditContactModal/EditContactModal.d.ts +13 -4
  8. package/dist/types/components/EditContactModal/components/BusinessMembers/BusinessMembersEditor.d.ts +8 -0
  9. package/dist/types/components/EditContactModal/components/BusinessMembers/BusinessMembersSection.d.ts +10 -0
  10. package/dist/types/components/EditContactModal/components/BusinessMembers/index.d.ts +2 -0
  11. package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +0 -1
  12. package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +38 -39
  13. package/dist/types/components/EditContactModal/context/EditContactViewContext.d.ts +1 -2
  14. package/dist/types/components/EditContactModal/hooks/useEditContactModalController.d.ts +5 -1
  15. package/dist/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +3 -2
  16. package/dist/types/components/EditContactModal/index.d.ts +1 -0
  17. package/dist/types/components/EditContactModal/layout/Section.d.ts +2 -1
  18. package/dist/types/components/EventsDialog/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts +0 -1
  19. package/dist/types/components/EventsDialog/components/DatePicker/styles.d.ts +4 -10
  20. package/dist/types/components/EventsDialog/components/DeleteRecurringEventDialog/DeleteRecurringEventDialog.d.ts +0 -1
  21. package/dist/types/components/EventsDialog/components/EditRecurringEventDialog/EditRecurringEventDialog.d.ts +0 -1
  22. package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +0 -1
  23. package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/style.d.ts +8 -20
  24. package/dist/types/components/EventsDialog/components/ReminderNotifications/styles.d.ts +3 -7
  25. package/dist/types/components/EventsDialog/context/CalendarContextProvider.d.ts +0 -1
  26. package/dist/types/components/EventsDialog/context/EventsDialogApiContext.d.ts +0 -1
  27. package/dist/types/components/EventsDialog/hooks/useCalendarEvents.d.ts +0 -1
  28. package/dist/types/components/EventsDialog/hooks/useCalendarTasks.d.ts +0 -1
  29. package/dist/types/components/EventsDialog/layout/BasicInputContainer/styles.d.ts +3 -7
  30. package/dist/types/components/index.d.ts +1 -0
  31. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -22,9 +22,10 @@ interface ContactInfoPopupProps {
22
22
  }
23
23
  declare const ContactInfoPopup: (props: ContactInfoPopupProps) => react_jsx_runtime.JSX.Element;
24
24
 
25
- interface Props {
26
- open: boolean;
27
- onClose: () => void;
25
+ type EditContactMode = 'modal' | 'card';
26
+ interface EditContactModalProps {
27
+ open?: boolean;
28
+ onClose?: () => void;
28
29
  baseUrl?: string;
29
30
  spaceId?: string;
30
31
  contactId?: string;
@@ -34,8 +35,15 @@ interface Props {
34
35
  googleMapsApiKey?: string;
35
36
  onEntityUpdated?: (entity: IContact$1 | IBusiness$1) => void;
36
37
  contactNameFormat?: Spaces.nameFormat;
38
+ mode?: EditContactMode;
39
+ title?: string;
40
+ expanded?: boolean;
41
+ onExpandedChange?: (expanded: boolean) => void;
42
+ entityType?: 'contact' | 'business';
43
+ entityId?: string;
44
+ initialEntityData?: IContact$1 | IBusiness$1;
37
45
  }
38
- declare const EditContactModal: (props: Props) => react_jsx_runtime.JSX.Element;
46
+ declare const EditContactModal: (props: EditContactModalProps) => react_jsx_runtime.JSX.Element;
39
47
 
40
48
  type Mode = 'view' | 'create' | 'edit';
41
49
 
@@ -361,4 +369,5 @@ declare const selectThemeToggleStatus: (state: ThemeRootState) => "idle" | "togg
361
369
  declare const selectedTheme: (state: ThemeRootState) => Theme;
362
370
  declare const selectedDarkTheme: (state: ThemeRootState) => boolean;
363
371
 
364
- export { type Calendar, type Contact, ContactInfoPopup, EditContactModal, type EventData, EventsDialog, type EventsDialogProps, type ItemType, type ModalMode, MuiComponentsConfig, type Notification, type TaskData, type ThemeName, type ThemeRootState, type ThemeState, darkBlack, darkBlue, i18nInstance as i18n, isValidThemeName, lightAmber, lightBlue, lightBlueIndigo, lightBrown, lightGray, lightGreen, lightLime, lightOrange, lightPink, lightPurple, lightRed, lightTeal, lightYellow, selectThemeToggleStatus, selectedDarkTheme, selectedTheme, toggleModeTheme, toggleTheme, updateTheme };
372
+ export { ContactInfoPopup, EditContactModal, EventsDialog, MuiComponentsConfig, darkBlack, darkBlue, i18nInstance as i18n, isValidThemeName, lightAmber, lightBlue, lightBlueIndigo, lightBrown, lightGray, lightGreen, lightLime, lightOrange, lightPink, lightPurple, lightRed, lightTeal, lightYellow, selectThemeToggleStatus, selectedDarkTheme, selectedTheme, toggleModeTheme, toggleTheme, updateTheme };
373
+ export type { Calendar, Contact, EditContactModalProps, EditContactMode, EventData, EventsDialogProps, ItemType, ModalMode, Notification, TaskData, ThemeName, ThemeRootState, ThemeState };
@@ -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[];
@@ -1,9 +1,10 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
2
  import { IBusiness, IContact } from '@trii/types/dist/Contacts/contacts';
3
3
  import { Spaces } from '@trii/types';
4
- export interface Props {
5
- open: boolean;
6
- onClose: () => void;
4
+ export type EditContactMode = 'modal' | 'card';
5
+ export interface EditContactModalProps {
6
+ open?: boolean;
7
+ onClose?: () => void;
7
8
  baseUrl?: string;
8
9
  spaceId?: string;
9
10
  contactId?: string;
@@ -13,6 +14,14 @@ export interface Props {
13
14
  googleMapsApiKey?: string;
14
15
  onEntityUpdated?: (entity: IContact | IBusiness) => void;
15
16
  contactNameFormat?: Spaces.nameFormat;
17
+ mode?: EditContactMode;
18
+ title?: string;
19
+ expanded?: boolean;
20
+ onExpandedChange?: (expanded: boolean) => void;
21
+ entityType?: 'contact' | 'business';
22
+ entityId?: string;
23
+ initialEntityData?: IContact | IBusiness;
16
24
  }
17
- declare const EditContactModal: (props: Props) => import("react/jsx-runtime").JSX.Element;
25
+ export type Props = EditContactModalProps;
26
+ declare const EditContactModal: (props: EditContactModalProps) => import("react/jsx-runtime").JSX.Element;
18
27
  export default EditContactModal;
@@ -0,0 +1,8 @@
1
+ import type { IBusiness } from '@trii/types/dist/Contacts';
2
+ type Props = {
3
+ business: IBusiness | null;
4
+ onBack: () => void;
5
+ onEntityUpdated?: (entity: unknown) => void;
6
+ };
7
+ declare const BusinessMembersEditor: ({ business, onBack, onEntityUpdated }: Props) => import("react/jsx-runtime").JSX.Element;
8
+ export default BusinessMembersEditor;
@@ -0,0 +1,10 @@
1
+ import type { IBusiness } from '@trii/types/dist/Contacts';
2
+ import { Spaces } from '@trii/types';
3
+ type Props = {
4
+ business: IBusiness;
5
+ onEdit: () => void;
6
+ language?: 'en' | 'es';
7
+ contactNameFormat?: Spaces.nameFormat;
8
+ };
9
+ declare const BusinessMembersSection: ({ business, onEdit, language, contactNameFormat }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export default BusinessMembersSection;
@@ -0,0 +1,2 @@
1
+ export { default as BusinessMembersEditor } from './BusinessMembersEditor';
2
+ export { default as BusinessMembersSection } from './BusinessMembersSection';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface EditModalProps {
3
2
  open: boolean;
4
3
  onClose: () => void;
@@ -1,49 +1,48 @@
1
- /// <reference types="react" />
2
1
  export declare const EditContactApiProvider: import("react").Provider<{
3
2
  fetchLabels: ({ signal }?: {
4
- signal?: AbortSignal | undefined;
3
+ signal?: AbortSignal;
5
4
  }) => Promise<import("@trii/types/dist/Contacts").ILabel[]>;
6
5
  createLabel: ({ name, signal }: {
7
- signal?: AbortSignal | undefined;
6
+ signal?: AbortSignal;
8
7
  } & {
9
8
  name: string;
10
9
  }) => Promise<import("@trii/types/dist/Contacts").ILabel>;
11
10
  fetchContact: ({ contactId, signal }: {
12
- signal?: AbortSignal | undefined;
11
+ signal?: AbortSignal;
13
12
  } & {
14
13
  contactId: string;
15
14
  }) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
16
15
  fetchBusiness: ({ businessId, signal }: {
17
- signal?: AbortSignal | undefined;
16
+ signal?: AbortSignal;
18
17
  } & {
19
18
  businessId: string;
20
19
  }) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
21
20
  fetchBusinessTableData: ({ pagination, signal }: {
22
- signal?: AbortSignal | undefined;
21
+ signal?: AbortSignal;
23
22
  } & {
24
23
  pagination: import("../services/api").Pagination;
25
24
  }) => Promise<import("../services/api").BusinessTableData>;
26
25
  createBusiness: ({ business, signal }: {
27
- signal?: AbortSignal | undefined;
26
+ signal?: AbortSignal;
28
27
  } & {
29
28
  business: Record<string, unknown>;
30
29
  }) => Promise<import("@trii/types/dist/Contacts").IBusiness>;
31
30
  fetchContactFields: ({ forType, signal }: {
32
- signal?: AbortSignal | undefined;
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
- signal?: AbortSignal | undefined;
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[];
43
42
  };
44
43
  }) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
45
44
  deleteAddress: ({ data, signal }: {
46
- signal?: AbortSignal | undefined;
45
+ signal?: AbortSignal;
47
46
  } & {
48
47
  data: {
49
48
  contactId: string;
@@ -52,7 +51,7 @@ export declare const EditContactApiProvider: import("react").Provider<{
52
51
  };
53
52
  }) => Promise<unknown>;
54
53
  deleteAddres: ({ data, signal }: {
55
- signal?: AbortSignal | undefined;
54
+ signal?: AbortSignal;
56
55
  } & {
57
56
  data: {
58
57
  contactId: string;
@@ -61,7 +60,7 @@ export declare const EditContactApiProvider: import("react").Provider<{
61
60
  };
62
61
  }) => Promise<unknown>;
63
62
  checkContactAddress: ({ data, signal }: {
64
- signal?: AbortSignal | undefined;
63
+ signal?: AbortSignal;
65
64
  } & {
66
65
  data: {
67
66
  address: string;
@@ -72,28 +71,28 @@ export declare const EditContactApiProvider: import("react").Provider<{
72
71
  warnings: string[];
73
72
  }>;
74
73
  setContactAddress: ({ data, signal }: {
75
- signal?: AbortSignal | undefined;
74
+ signal?: AbortSignal;
76
75
  } & {
77
76
  data: import("../services/api").SetContactAddressRequestData;
78
77
  }) => Promise<import("@trii/types/dist/Contacts").IContactAddress>;
79
78
  updateContactAddress: ({ data, signal }: {
80
- signal?: AbortSignal | undefined;
79
+ signal?: AbortSignal;
81
80
  } & {
82
81
  data: import("../services/api").UpdateContactAddressData;
83
82
  }) => Promise<import("@trii/types/dist/Contacts").IContactAddress>;
84
83
  fetchUserTrii: ({ signal }?: {
85
- signal?: AbortSignal | undefined;
84
+ signal?: AbortSignal;
86
85
  }) => Promise<import("@trii/types/dist/Users").UserTrii>;
87
86
  fetchUsers: ({ signal }?: {
88
- signal?: AbortSignal | undefined;
87
+ signal?: AbortSignal;
89
88
  }) => Promise<import("@trii/types/dist/Users").UserInfo[]>;
90
89
  fetchUserTriiById: ({ userId, signal }: {
91
- signal?: AbortSignal | undefined;
90
+ signal?: AbortSignal;
92
91
  } & {
93
92
  userId: string;
94
93
  }) => Promise<import("@trii/types/dist/Users").UserTrii>;
95
94
  uploadAvatar: ({ contactId, file, signal }: {
96
- signal?: AbortSignal | undefined;
95
+ signal?: AbortSignal;
97
96
  } & {
98
97
  contactId: string;
99
98
  file: File;
@@ -101,49 +100,49 @@ export declare const EditContactApiProvider: import("react").Provider<{
101
100
  } | null>;
102
101
  export declare const useEditContactApi: () => {
103
102
  fetchLabels: ({ signal }?: {
104
- signal?: AbortSignal | undefined;
103
+ signal?: AbortSignal;
105
104
  }) => Promise<import("@trii/types/dist/Contacts").ILabel[]>;
106
105
  createLabel: ({ name, signal }: {
107
- signal?: AbortSignal | undefined;
106
+ signal?: AbortSignal;
108
107
  } & {
109
108
  name: string;
110
109
  }) => Promise<import("@trii/types/dist/Contacts").ILabel>;
111
110
  fetchContact: ({ contactId, signal }: {
112
- signal?: AbortSignal | undefined;
111
+ signal?: AbortSignal;
113
112
  } & {
114
113
  contactId: string;
115
114
  }) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
116
115
  fetchBusiness: ({ businessId, signal }: {
117
- signal?: AbortSignal | undefined;
116
+ signal?: AbortSignal;
118
117
  } & {
119
118
  businessId: string;
120
119
  }) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
121
120
  fetchBusinessTableData: ({ pagination, signal }: {
122
- signal?: AbortSignal | undefined;
121
+ signal?: AbortSignal;
123
122
  } & {
124
123
  pagination: import("../services/api").Pagination;
125
124
  }) => Promise<import("../services/api").BusinessTableData>;
126
125
  createBusiness: ({ business, signal }: {
127
- signal?: AbortSignal | undefined;
126
+ signal?: AbortSignal;
128
127
  } & {
129
128
  business: Record<string, unknown>;
130
129
  }) => Promise<import("@trii/types/dist/Contacts").IBusiness>;
131
130
  fetchContactFields: ({ forType, signal }: {
132
- signal?: AbortSignal | undefined;
131
+ signal?: AbortSignal;
133
132
  } & {
134
- forType: "business" | "contact";
133
+ forType: "contact" | "business";
135
134
  }) => Promise<import("@trii/types/dist/Contacts").IContactField[]>;
136
135
  updateEntity: ({ entityType, entityId, body, signal }: {
137
- signal?: AbortSignal | undefined;
136
+ signal?: AbortSignal;
138
137
  } & {
139
- entityType: "business" | "contact";
138
+ entityType: "contact" | "business";
140
139
  entityId: string;
141
140
  body: Partial<import("@trii/types/dist/Contacts").IContact> | Partial<import("@trii/types/dist/Contacts").IBusiness> | {
142
141
  tags: import("@trii/types/dist/Contacts").IContactTag[];
143
142
  };
144
143
  }) => Promise<import("@trii/types/dist/Contacts").IContact | import("@trii/types/dist/Contacts").IBusiness>;
145
144
  deleteAddress: ({ data, signal }: {
146
- signal?: AbortSignal | undefined;
145
+ signal?: AbortSignal;
147
146
  } & {
148
147
  data: {
149
148
  contactId: string;
@@ -152,7 +151,7 @@ export declare const useEditContactApi: () => {
152
151
  };
153
152
  }) => Promise<unknown>;
154
153
  deleteAddres: ({ data, signal }: {
155
- signal?: AbortSignal | undefined;
154
+ signal?: AbortSignal;
156
155
  } & {
157
156
  data: {
158
157
  contactId: string;
@@ -161,7 +160,7 @@ export declare const useEditContactApi: () => {
161
160
  };
162
161
  }) => Promise<unknown>;
163
162
  checkContactAddress: ({ data, signal }: {
164
- signal?: AbortSignal | undefined;
163
+ signal?: AbortSignal;
165
164
  } & {
166
165
  data: {
167
166
  address: string;
@@ -172,28 +171,28 @@ export declare const useEditContactApi: () => {
172
171
  warnings: string[];
173
172
  }>;
174
173
  setContactAddress: ({ data, signal }: {
175
- signal?: AbortSignal | undefined;
174
+ signal?: AbortSignal;
176
175
  } & {
177
176
  data: import("../services/api").SetContactAddressRequestData;
178
177
  }) => Promise<import("@trii/types/dist/Contacts").IContactAddress>;
179
178
  updateContactAddress: ({ data, signal }: {
180
- signal?: AbortSignal | undefined;
179
+ signal?: AbortSignal;
181
180
  } & {
182
181
  data: import("../services/api").UpdateContactAddressData;
183
182
  }) => Promise<import("@trii/types/dist/Contacts").IContactAddress>;
184
183
  fetchUserTrii: ({ signal }?: {
185
- signal?: AbortSignal | undefined;
184
+ signal?: AbortSignal;
186
185
  }) => Promise<import("@trii/types/dist/Users").UserTrii>;
187
186
  fetchUsers: ({ signal }?: {
188
- signal?: AbortSignal | undefined;
187
+ signal?: AbortSignal;
189
188
  }) => Promise<import("@trii/types/dist/Users").UserInfo[]>;
190
189
  fetchUserTriiById: ({ userId, signal }: {
191
- signal?: AbortSignal | undefined;
190
+ signal?: AbortSignal;
192
191
  } & {
193
192
  userId: string;
194
193
  }) => Promise<import("@trii/types/dist/Users").UserTrii>;
195
194
  uploadAvatar: ({ contactId, file, signal }: {
196
- signal?: AbortSignal | undefined;
195
+ signal?: AbortSignal;
197
196
  } & {
198
197
  contactId: string;
199
198
  file: File;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- export type EditContactView = 'main' | 'tags' | 'searchLocation' | 'businessSelect';
1
+ export type EditContactView = 'main' | 'tags' | 'searchLocation' | 'businessSelect' | 'businessMembers';
3
2
  export type EditContactViewContextValue = {
4
3
  view: EditContactView;
5
4
  setView: (view: EditContactView) => void;
@@ -7,8 +7,12 @@ export type UseEditContactModalControllerArgs = {
7
7
  baseUrl?: string;
8
8
  spaceId?: string;
9
9
  contactId?: string;
10
+ entityId?: string;
11
+ entityType?: 'contact' | 'business';
10
12
  initialContactData?: IContact | IBusiness;
13
+ initialEntityData?: IContact | IBusiness;
11
14
  contactNameFormat?: Spaces.nameFormat;
15
+ resetOnClose?: boolean;
12
16
  };
13
17
  type ControllerState = {
14
18
  isLoading: boolean;
@@ -24,7 +28,7 @@ type ControllerState = {
24
28
  userLoading: boolean;
25
29
  userError: unknown;
26
30
  };
27
- export declare function useEditContactModalController({ open, baseUrl, spaceId, contactId, contactNameFormat, }: UseEditContactModalControllerArgs): {
31
+ export declare function useEditContactModalController({ open, baseUrl, spaceId, contactId, entityId, entityType, initialContactData, initialEntityData, contactNameFormat, resetOnClose, }: UseEditContactModalControllerArgs): {
28
32
  state: ControllerState;
29
33
  selectors: {
30
34
  isBusiness: boolean;
@@ -1,5 +1,6 @@
1
1
  import type { ILabel } from '@trii/types/dist/Contacts';
2
2
  import type { IBusiness, IContact, IContactTag } from '@trii/types/dist/Contacts/contacts';
3
+ import type { EditContactView } from '../context/EditContactViewContext';
3
4
  type ContactType = 'contact' | 'business' | 'unknown';
4
5
  type UseTagsEditorControllerArgs = {
5
6
  open: boolean;
@@ -12,8 +13,8 @@ type UseTagsEditorControllerArgs = {
12
13
  onTagsUpdated: (tags: IContactTag[]) => void;
13
14
  };
14
15
  type UseTagsEditorControllerReturn = {
15
- view: 'main' | 'tags' | 'searchLocation' | 'businessSelect';
16
- setView: (view: 'main' | 'tags' | 'searchLocation' | 'businessSelect') => void;
16
+ view: EditContactView;
17
+ setView: (view: EditContactView) => void;
17
18
  draftLabels: ILabel[];
18
19
  setDraftLabels: (labels: ILabel[]) => void;
19
20
  labelsOptions: ILabel[];
@@ -1 +1,2 @@
1
1
  export { default } from './EditContactModal';
2
+ export type { EditContactModalProps, EditContactMode, Props } from './EditContactModal';
@@ -4,6 +4,7 @@ type SectionProps = {
4
4
  children: ReactNode;
5
5
  enableDirectionSearch?: boolean;
6
6
  onDirectionSearchClick?: () => void;
7
+ action?: ReactNode;
7
8
  };
8
- declare const Section: ({ title, children, enableDirectionSearch, onDirectionSearchClick, }: SectionProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Section: ({ title, children, enableDirectionSearch, onDirectionSearchClick, action, }: SectionProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export default Section;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ConfirmDeleteDialogProps {
3
2
  open: boolean;
4
3
  onClose: () => void;
@@ -1,10 +1,4 @@
1
- /// <reference types="react" />
2
- 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?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- 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?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
- 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?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
10
- }, "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
+ 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,20 +1,8 @@
1
- /// <reference types="react" />
2
- export declare const StyledReminderItemContainer: 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?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const StyledReminderItemViewContainer: 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?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
- export declare const StyledReminderInputsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
- export declare const StyledReminderTextField: import("@emotion/styled").StyledComponent<{
12
- variant?: import("@mui/material").TextFieldVariants | undefined;
13
- } & Omit<import("@mui/material").OutlinedTextFieldProps | import("@mui/material").FilledTextFieldProps | import("@mui/material").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
- export declare const StyledReminderSelect: import("@emotion/styled").StyledComponent<import("@mui/material").SelectProps<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
15
- export declare const StyledReminderActionsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
18
- export declare const StyledReminderDeleteIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
19
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
20
- }, "style" | "className" | "tabIndex" | "color" | "children" | "sx" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "size"> & import("@mui/system").MUIStyledCommonProps<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;
5
+ 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;
@@ -1,7 +1,3 @@
1
- /// <reference types="react" />
2
- export declare const ReminderNotificationsContainer: 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?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const HeaderContainer: 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?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface EventsDialogApi {
3
2
  baseUrl: string;
4
3
  spaceId: string;
@@ -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;
@@ -1,7 +1,3 @@
1
- /// <reference types="react" />
2
- 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?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- 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?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
1
+ import { Box } from '@mui/material';
2
+ export declare const StyledBoxContainer: typeof Box;
3
+ export declare const StyledDialogContextText: typeof Box;
@@ -1,5 +1,6 @@
1
1
  export { default as ContactInfoPopup } from './ContactInfoPopup';
2
2
  export { default as EditContactModal } from './EditContactModal';
3
+ export type { EditContactModalProps, EditContactMode } from './EditContactModal';
3
4
  export { default as EventsDialog } from './EventsDialog';
4
5
  export type { EventsDialogProps, EventData, TaskData } from './EventsDialog';
5
6
  export type { ModalMode, ItemType, Calendar, Contact, Notification } from './EventsDialog/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/components",
3
- "version": "2.0.93",
3
+ "version": "2.0.96",
4
4
  "description": "Trii components package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",