Skip to content

Commit 960c2b9

Browse files
Updates
0 parents  commit 960c2b9

148 files changed

Lines changed: 4388 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

17liveMessageTunnel.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Actions
3+
*/
4+
declare const open: (openID: string) => void;
5+
export default open;

17liveMessageTunnel.js

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

17liveMessageTunnel.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/Avatar/index.d.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import React from 'react';
2+
interface AvatarProps {
3+
/** The URL of the avatar image. */
4+
avatarUrl?: string;
5+
/** The URL for a fallback avatar image if the primary one fails or isn't provided. */
6+
defaultAvatarUrl?: string;
7+
/** Alt text for the image. Important for accessibility. */
8+
alt?: string;
9+
/**
10+
* The size (width and height) of the avatar's image area in pixels.
11+
* Note: The `isLive` ring will add to the total dimensions.
12+
* @default 52
13+
*/
14+
size?: number;
15+
/**
16+
* CSS border property for the avatar.
17+
* @example '2px solid white'
18+
*/
19+
border?: string;
20+
/** If true, displays a purple ring indicating a "live" status. */
21+
isLive?: boolean;
22+
/** If true, shows a skeleton loading state. This takes precedence over other states. */
23+
isLoading?: boolean;
24+
/**
25+
* Custom callback function when the avatar is clicked.
26+
* If `isRedirectEnabled` is also true, this callback is executed *before* the redirection logic.
27+
*/
28+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
29+
/**
30+
* If true, enables redirection to the user's profile or live room on click.
31+
* `userID` and `openID` must be provided.
32+
* @default false
33+
*/
34+
isRedirectEnabled?: boolean;
35+
/** The user's ID, required for redirection. */
36+
userID?: string;
37+
/** The user's openID, required for redirection. */
38+
openID?: string;
39+
/** The stream ID if the user is live, used for redirection to the live room. */
40+
streamID?: number;
41+
}
42+
export declare const Avatar: React.FC<AvatarProps>;
43+
export default Avatar;

components/Avatar/index.js

Lines changed: 103 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/Avatar/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/BasePopup/index.d.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import React from 'react';
2+
interface BasePopupProps {
3+
/** Controls the visibility of the popup. */
4+
isOpen: boolean;
5+
/** Callback function when the popup is requested to close (e.g., by clicking the backdrop). */
6+
onClose: () => void;
7+
/** The content to be displayed inside the popup. */
8+
children: React.ReactNode;
9+
/** Horizontal padding in pixels, applied via `--device-padding-x`. */
10+
px?: number;
11+
/** Vertical padding in pixels, applied via `--device-padding-y`. */
12+
py?: number;
13+
/** If true, applies `.device-width` related classes. */
14+
width?: boolean;
15+
/** If true, applies `.device-height` related classes. */
16+
height?: boolean;
17+
/** If true, uses `max-width`/`max-height` classes instead of fixed ones. */
18+
max?: boolean;
19+
/** If true, uses `min-width`/`min-height` classes. Takes precedence over `max`. */
20+
min?: boolean;
21+
/** If true, the popup content wrapper will be centered on the screen. */
22+
isCentered?: boolean;
23+
/** If true, a semi-transparent backdrop is shown behind the popup. @default true */
24+
hasBackdrop?: boolean;
25+
/** If true, clicking the backdrop will trigger the `onClose` callback. Requires `hasBackdrop` to be true. @default true */
26+
isBackdropClosable?: boolean;
27+
/** Custom background color for the backdrop. @default 'rgba(0, 0, 0, 0.5)' */
28+
backdropColor?: string;
29+
/** Custom box-shadow for the content wrapper. @default '0 5px 15px rgba(0, 0, 0, 0.3)' */
30+
boxShadow?: string;
31+
/** Optional custom className for the content wrapper. */
32+
className?: string;
33+
/** Optional custom style for the content wrapper. */
34+
style?: React.CSSProperties;
35+
}
36+
export declare const BasePopup: React.FC<BasePopupProps>;
37+
export default BasePopup;

components/BasePopup/index.js

Lines changed: 87 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/BasePopup/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)