@trii/components 2.0.39 → 2.0.41
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 +116 -69
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/EditContactModal/components/Header/Header.d.ts +8 -2
- package/dist/cjs/types/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
- package/dist/cjs/types/components/EditContactModal/components/Header/components/index.d.ts +1 -0
- package/dist/esm/index.js +117 -70
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/EditContactModal/components/Header/Header.d.ts +8 -2
- package/dist/esm/types/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
- package/dist/esm/types/components/EditContactModal/components/Header/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IContactTag } from '@trii/types/dist/Contacts';
|
|
1
|
+
import { IContactTag, IContact, IBusiness } from '@trii/types/dist/Contacts/contacts';
|
|
2
2
|
import type { ChangeEvent, RefObject } from 'react';
|
|
3
3
|
type HeaderProps = {
|
|
4
4
|
imgUrl?: string;
|
|
@@ -12,6 +12,12 @@ type HeaderProps = {
|
|
|
12
12
|
isUploadingPhoto: boolean;
|
|
13
13
|
onDeletePhoto: () => void;
|
|
14
14
|
isDeletingPhoto: boolean;
|
|
15
|
+
contactType?: 'contact' | 'business' | 'unknown';
|
|
16
|
+
firstName?: string;
|
|
17
|
+
lastName?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
entityId?: string;
|
|
20
|
+
onEntityUpdated?: (data: IContact | IBusiness) => void;
|
|
15
21
|
};
|
|
16
|
-
declare const Header: ({ imgUrl, displayName, onError, tags, onEditTags, onUploadPhoto, onPhotoFileChange, photoInputRef, isUploadingPhoto, onDeletePhoto, isDeletingPhoto, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const Header: ({ imgUrl, displayName, onError, tags, onEditTags, onUploadPhoto, onPhotoFileChange, photoInputRef, isUploadingPhoto, onDeletePhoto, isDeletingPhoto, contactType, firstName, lastName, name, entityId, onEntityUpdated, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
23
|
export default Header;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IContact, IBusiness } from '@trii/types/dist/Contacts/contacts';
|
|
2
|
+
export type ContactNameProps = {
|
|
3
|
+
displayName: string;
|
|
4
|
+
contactType?: 'contact' | 'business' | 'unknown';
|
|
5
|
+
firstName?: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
entityId?: string;
|
|
9
|
+
onEntityUpdated?: (data: IContact | IBusiness) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const ContactName: ({ displayName, contactType, firstName, lastName, name, entityId, onEntityUpdated, }: ContactNameProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default ContactName;
|