@internxt/ui 0.1.10 → 0.1.12
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/components/mail/cheaps/MessageCheap.d.ts +1 -1
- package/dist/components/mail/cheaps/user/UserCheap.d.ts +15 -0
- package/dist/components/mail/index.d.ts +1 -0
- package/dist/components/mail/tray/TrayList.d.ts +1 -1
- package/dist/index.cjs.js +14 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +501 -494
- package/dist/index.es.js.map +1 -1
- package/dist/stories/components/mail/cheaps/user/UserCheap.stories.d.ts +9 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export interface MessageCheapProps {
|
|
|
12
12
|
};
|
|
13
13
|
active?: boolean;
|
|
14
14
|
selected?: boolean;
|
|
15
|
-
onClick: (id: string) => void;
|
|
15
|
+
onClick: (id: string, isRead?: boolean) => void;
|
|
16
16
|
}
|
|
17
17
|
declare const MessageCheap: ({ email, active, selected, onClick }: MessageCheapProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export default MessageCheap;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface UserCheapProps {
|
|
2
|
+
fullName: string;
|
|
3
|
+
email: string;
|
|
4
|
+
avatar?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A cheap user component to render a user's information.
|
|
8
|
+
*
|
|
9
|
+
* @param {UserCheapProps} props - The props object.
|
|
10
|
+
* @param {string} props.fullName - The user's full name.
|
|
11
|
+
* @param {string} props.email - The user's email address.
|
|
12
|
+
* @param {string} [props.avatar] - The user's avatar URL. If not provided, the avatar will be generated from the user's name.
|
|
13
|
+
*/
|
|
14
|
+
declare const UserCheap: ({ fullName, email, avatar }: UserCheapProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default UserCheap;
|
|
@@ -3,3 +3,4 @@ export { default as MessageCheap } from './cheaps/MessageCheap';
|
|
|
3
3
|
export { default as MessageCheapSkeleton } from './cheaps/MessageCheapSkeleton';
|
|
4
4
|
export type { TrayListProps } from './tray/TrayList';
|
|
5
5
|
export type { MessageCheapProps } from './cheaps/MessageCheap';
|
|
6
|
+
export { default as UserCheap } from './cheaps/user/UserCheap';
|