@trii/components 2.0.20 → 2.0.21
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 +681 -50
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +4 -3
- package/dist/cjs/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/Header/Header.d.ts +9 -4
- package/dist/cjs/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +4 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/index.d.ts +3 -0
- package/dist/cjs/types/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
- package/dist/esm/index.js +683 -52
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +4 -3
- package/dist/esm/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/Header/Header.d.ts +9 -4
- package/dist/esm/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +4 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/index.d.ts +3 -0
- package/dist/esm/types/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { IContact } from '@trii/types/dist/Contacts';
|
|
1
|
+
import { IBusiness, IContact } from '@trii/types/dist/Contacts';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material';
|
|
3
3
|
export interface ContactInfoPopupProps {
|
|
4
4
|
open: boolean;
|
|
5
5
|
anchorEl: HTMLElement | null;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
t?: (key: string) => string;
|
|
8
|
-
contactData?: IContact;
|
|
8
|
+
contactData?: IContact | IBusiness;
|
|
9
9
|
avatarImgUrl?: string;
|
|
10
10
|
sx?: SxProps<Theme>;
|
|
11
|
+
navigate: (path: string) => void;
|
|
11
12
|
}
|
|
12
|
-
declare const ContactInfoPopup: ({ open, anchorEl, onClose, contactData, avatarImgUrl, t, }: ContactInfoPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const ContactInfoPopup: ({ open, anchorEl, onClose, contactData, avatarImgUrl, navigate, t, }: ContactInfoPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default ContactInfoPopup;
|
package/dist/esm/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IContact } from '@trii/types/dist/Contacts';
|
|
2
|
+
interface BusinessSectionProps {
|
|
3
|
+
contactData?: IContact;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
declare const BusinessSection: ({ contactData, title }: BusinessSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default BusinessSection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BusinessSection';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
type HeaderProps = {
|
|
2
|
-
imgUrl
|
|
3
|
-
name
|
|
4
|
-
contactId
|
|
2
|
+
imgUrl?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
contactId?: string;
|
|
5
|
+
navigate: (path: string) => void;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
onError?: (error: Error) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
isBusiness?: boolean;
|
|
5
10
|
};
|
|
6
|
-
declare const Header: ({ imgUrl, name, contactId, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const Header: ({ imgUrl, name, contactId, navigate, isLoading, onError, onClose, isBusiness }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
12
|
export default Header;
|
package/dist/esm/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IContact, IBusiness } from '@trii/types/dist/Contacts';
|
|
2
|
+
interface LabelsSectionProps {
|
|
3
|
+
contactData?: IContact | IBusiness;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
declare const LabelsSection: ({ contactData, title }: LabelsSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default LabelsSection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './LabelsSection';
|
package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IBusiness } from '@trii/types/dist/Contacts';
|
|
2
|
+
interface MembersSectionProps {
|
|
3
|
+
contactData?: IBusiness;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
declare const MembersSection: ({ contactData, title }: MembersSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export default MembersSection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './MemberItem';
|
package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MemberItem } from './MemberItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './MembersSection';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { default as Header } from './Header';
|
|
2
2
|
export { default as ContactMethod } from './ContactMethod';
|
|
3
3
|
export { default as Properties } from './Properties';
|
|
4
|
+
export { default as LabelsSection } from './LabelsSection';
|
|
5
|
+
export { default as BusinessSection } from './BusinessSection';
|
|
6
|
+
export { default as MembersSection } from './MembersSection';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IBusiness } from '@trii/types/dist/Contacts/contacts';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard to check if an object is an IBusiness
|
|
4
|
+
* @param obj The object to check
|
|
5
|
+
* @returns True if the object is an IBusiness
|
|
6
|
+
*/
|
|
7
|
+
export declare function isBusiness(obj: any): obj is IBusiness;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IContact } from '@trii/types/dist/Contacts/contacts';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard to check if an object is an IContact
|
|
4
|
+
* @param obj The object to check
|
|
5
|
+
* @returns True if the object is an IContact
|
|
6
|
+
*/
|
|
7
|
+
export declare function isContact(obj: any): obj is IContact;
|