@krrli/cm-designsystem 1.32.2 → 1.32.3
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/accessible-button/AccessibleButton.d.ts +33 -0
- package/dist/components/accessible-button/AccessibleButton.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.d.ts +119 -0
- package/dist/components/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/branding/BrandingGallery.d.ts +2 -0
- package/dist/components/branding/BrandingGallery.d.ts.map +1 -0
- package/dist/components/button/Button.d.ts +67 -0
- package/dist/components/button/Button.d.ts.map +1 -0
- package/dist/components/color/ColorDoc.d.ts +5 -0
- package/dist/components/color/ColorDoc.d.ts.map +1 -0
- package/dist/components/file-upload/FileUpload.d.ts +84 -0
- package/dist/components/file-upload/FileUpload.d.ts.map +1 -0
- package/dist/components/form/Form.d.ts +55 -0
- package/dist/components/form/Form.d.ts.map +1 -0
- package/dist/components/icon-button/IconButton.d.ts +70 -0
- package/dist/components/icon-button/IconButton.d.ts.map +1 -0
- package/dist/components/icons/IconBase.d.ts +6 -0
- package/dist/components/icons/IconBase.d.ts.map +1 -0
- package/dist/components/icons/generated/ArrowDown.d.ts +4 -0
- package/dist/components/icons/generated/ArrowDown.d.ts.map +1 -0
- package/dist/components/icons/generated/ArrowLeft.d.ts +4 -0
- package/dist/components/icons/generated/ArrowLeft.d.ts.map +1 -0
- package/dist/components/icons/generated/ArrowRight.d.ts +4 -0
- package/dist/components/icons/generated/ArrowRight.d.ts.map +1 -0
- package/dist/components/icons/generated/ArrowUp.d.ts +4 -0
- package/dist/components/icons/generated/ArrowUp.d.ts.map +1 -0
- package/dist/components/icons/generated/Calendar.d.ts +4 -0
- package/dist/components/icons/generated/Calendar.d.ts.map +1 -0
- package/dist/components/icons/generated/Cancel.d.ts +4 -0
- package/dist/components/icons/generated/Cancel.d.ts.map +1 -0
- package/dist/components/icons/generated/Checkmark.d.ts +4 -0
- package/dist/components/icons/generated/Checkmark.d.ts.map +1 -0
- package/dist/components/icons/generated/Edit.d.ts +4 -0
- package/dist/components/icons/generated/Edit.d.ts.map +1 -0
- package/dist/components/icons/generated/Eye.d.ts +4 -0
- package/dist/components/icons/generated/Eye.d.ts.map +1 -0
- package/dist/components/icons/generated/Fullscreen.d.ts +4 -0
- package/dist/components/icons/generated/Fullscreen.d.ts.map +1 -0
- package/dist/components/icons/generated/HeartFilled.d.ts +4 -0
- package/dist/components/icons/generated/HeartFilled.d.ts.map +1 -0
- package/dist/components/icons/generated/HeartOutline.d.ts +4 -0
- package/dist/components/icons/generated/HeartOutline.d.ts.map +1 -0
- package/dist/components/icons/generated/Location.d.ts +4 -0
- package/dist/components/icons/generated/Location.d.ts.map +1 -0
- package/dist/components/icons/generated/LogOut.d.ts +4 -0
- package/dist/components/icons/generated/LogOut.d.ts.map +1 -0
- package/dist/components/icons/generated/Mumble.d.ts +4 -0
- package/dist/components/icons/generated/Mumble.d.ts.map +1 -0
- package/dist/components/icons/generated/Profile.d.ts +4 -0
- package/dist/components/icons/generated/Profile.d.ts.map +1 -0
- package/dist/components/icons/generated/ReplyFilled.d.ts +4 -0
- package/dist/components/icons/generated/ReplyFilled.d.ts.map +1 -0
- package/dist/components/icons/generated/ReplyOutline.d.ts +4 -0
- package/dist/components/icons/generated/ReplyOutline.d.ts.map +1 -0
- package/dist/components/icons/generated/Repost.d.ts +4 -0
- package/dist/components/icons/generated/Repost.d.ts.map +1 -0
- package/dist/components/icons/generated/Send.d.ts +4 -0
- package/dist/components/icons/generated/Send.d.ts.map +1 -0
- package/dist/components/icons/generated/Settings.d.ts +4 -0
- package/dist/components/icons/generated/Settings.d.ts.map +1 -0
- package/dist/components/icons/generated/Share.d.ts +4 -0
- package/dist/components/icons/generated/Share.d.ts.map +1 -0
- package/dist/components/icons/generated/Time.d.ts +4 -0
- package/dist/components/icons/generated/Time.d.ts.map +1 -0
- package/dist/components/icons/generated/Upload.d.ts +4 -0
- package/dist/components/icons/generated/Upload.d.ts.map +1 -0
- package/dist/components/icons/generated/index.d.ts +25 -0
- package/dist/components/icons/generated/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +28 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/Input.d.ts +62 -0
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/like-toggle/LikeToggle.d.ts +98 -0
- package/dist/components/like-toggle/LikeToggle.d.ts.map +1 -0
- package/dist/components/logo-link/LogoLink.d.ts +12 -0
- package/dist/components/logo-link/LogoLink.d.ts.map +1 -0
- package/dist/components/modal/Modal.d.ts +76 -0
- package/dist/components/modal/Modal.d.ts.map +1 -0
- package/dist/components/navi-button/NaviButton.d.ts +50 -0
- package/dist/components/navi-button/NaviButton.d.ts.map +1 -0
- package/dist/components/navi-user-button/NaviUserButton.d.ts +45 -0
- package/dist/components/navi-user-button/NaviUserButton.d.ts.map +1 -0
- package/dist/components/round-button/RoundButton.d.ts +45 -0
- package/dist/components/round-button/RoundButton.d.ts.map +1 -0
- package/dist/components/tabs/TabItem.d.ts +12 -0
- package/dist/components/tabs/TabItem.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +68 -0
- package/dist/components/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/text-link/TextLink.d.ts +10 -0
- package/dist/components/text-link/TextLink.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.d.ts +49 -0
- package/dist/components/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/timed-button/TimedButton.d.ts +80 -0
- package/dist/components/timed-button/TimedButton.d.ts.map +1 -0
- package/dist/components/toggle/Toggle.d.ts +63 -0
- package/dist/components/toggle/Toggle.d.ts.map +1 -0
- package/dist/components/typography/AccessibleTypography.d.ts +34 -0
- package/dist/components/typography/AccessibleTypography.d.ts.map +1 -0
- package/dist/components/typography/Heading.d.ts +25 -0
- package/dist/components/typography/Heading.d.ts.map +1 -0
- package/dist/components/typography/Label.d.ts +23 -0
- package/dist/components/typography/Label.d.ts.map +1 -0
- package/dist/components/typography/Paragraph.d.ts +23 -0
- package/dist/components/typography/Paragraph.d.ts.map +1 -0
- package/dist/components/typography/Placeholder.d.ts +18 -0
- package/dist/components/typography/Placeholder.d.ts.map +1 -0
- package/dist/components/typography/ValidationMessage.d.ts +23 -0
- package/dist/components/typography/ValidationMessage.d.ts.map +1 -0
- package/dist/components/typography/styles.d.ts +75 -0
- package/dist/components/typography/styles.d.ts.map +1 -0
- package/dist/compositions/image-banner/ImageBanner.d.ts +55 -0
- package/dist/compositions/image-banner/ImageBanner.d.ts.map +1 -0
- package/dist/compositions/image-upload-modal/ImageUploadModal.d.ts +16 -0
- package/dist/compositions/image-upload-modal/ImageUploadModal.d.ts.map +1 -0
- package/dist/compositions/index.d.ts +12 -0
- package/dist/compositions/index.d.ts.map +1 -0
- package/dist/compositions/post/Post.d.ts +76 -0
- package/dist/compositions/post/Post.d.ts.map +1 -0
- package/dist/compositions/post-base/PostBase.d.ts +42 -0
- package/dist/compositions/post-base/PostBase.d.ts.map +1 -0
- package/dist/compositions/post-creator/PostCreator.d.ts +70 -0
- package/dist/compositions/post-creator/PostCreator.d.ts.map +1 -0
- package/dist/compositions/profile-banner/ProfileBanner.d.ts +83 -0
- package/dist/compositions/profile-banner/ProfileBanner.d.ts.map +1 -0
- package/dist/compositions/profile-banner-image/ProfileBannerImage.d.ts +55 -0
- package/dist/compositions/profile-banner-image/ProfileBannerImage.d.ts.map +1 -0
- package/dist/compositions/profile-banner-info/ProfileBannerInfo.d.ts +93 -0
- package/dist/compositions/profile-banner-info/ProfileBannerInfo.d.ts.map +1 -0
- package/dist/compositions/response/Response.d.ts +76 -0
- package/dist/compositions/response/Response.d.ts.map +1 -0
- package/dist/compositions/response-creator/ResponseCreator.d.ts +64 -0
- package/dist/compositions/response-creator/ResponseCreator.d.ts.map +1 -0
- package/dist/compositions/user-info/UserInfo.d.ts +76 -0
- package/dist/compositions/user-info/UserInfo.d.ts.map +1 -0
- package/dist/compositions/user-recommendation/UserRecommendation.d.ts +64 -0
- package/dist/compositions/user-recommendation/UserRecommendation.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const PostStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
lg: {
|
|
5
|
+
base: string[];
|
|
6
|
+
};
|
|
7
|
+
md: {};
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
base: never[];
|
|
11
|
+
avatar: string[];
|
|
12
|
+
content: string[];
|
|
13
|
+
text: string[];
|
|
14
|
+
action: string[];
|
|
15
|
+
}, undefined, {
|
|
16
|
+
size: {
|
|
17
|
+
lg: {
|
|
18
|
+
base: string[];
|
|
19
|
+
};
|
|
20
|
+
md: {};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
base: never[];
|
|
24
|
+
avatar: string[];
|
|
25
|
+
content: string[];
|
|
26
|
+
text: string[];
|
|
27
|
+
action: string[];
|
|
28
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
29
|
+
size: {
|
|
30
|
+
lg: {
|
|
31
|
+
base: string[];
|
|
32
|
+
};
|
|
33
|
+
md: {};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
base: never[];
|
|
37
|
+
avatar: string[];
|
|
38
|
+
content: string[];
|
|
39
|
+
text: string[];
|
|
40
|
+
action: string[];
|
|
41
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
42
|
+
type PostVariants = VariantProps<typeof PostStyles>;
|
|
43
|
+
type PostSize = "md" | "lg";
|
|
44
|
+
interface PostProps extends PostVariants {
|
|
45
|
+
/** Size of the post, affecting layout and styling. */
|
|
46
|
+
size: PostSize;
|
|
47
|
+
/** The display name of the user who created the post. */
|
|
48
|
+
displayName: string;
|
|
49
|
+
/** The username or handle associated with the post. */
|
|
50
|
+
userName: string;
|
|
51
|
+
/** The date and time when the post was created. */
|
|
52
|
+
timestamp: Date;
|
|
53
|
+
/** The main text content of the post. */
|
|
54
|
+
text: string;
|
|
55
|
+
/** Avatar image URL */
|
|
56
|
+
src: string;
|
|
57
|
+
/** Triggered when the avatar is clicked. */
|
|
58
|
+
onAvatarClick: () => void;
|
|
59
|
+
/** Optional image source URL displayed within the post. */
|
|
60
|
+
imageSrc?: string;
|
|
61
|
+
/** Optional alt text for the post image, used for accessibility. */
|
|
62
|
+
imageAlt?: string;
|
|
63
|
+
/** Callback fired when the comment button is clicked. */
|
|
64
|
+
onCommentClick: () => void;
|
|
65
|
+
/** Callback fired when the like button is clicked. */
|
|
66
|
+
onLikeClick: () => void;
|
|
67
|
+
/** Callback fired when the share button is clicked. */
|
|
68
|
+
onShareClick: () => void;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Detailed post component displaying user info, text content,
|
|
72
|
+
* optional image, and action buttons (comment, like, share).
|
|
73
|
+
*/
|
|
74
|
+
export declare const Post: React.FC<PostProps>;
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=Post.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Post.d.ts","sourceRoot":"","sources":["../../../src/compositions/post/Post.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAa1D,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAcd,CAAC;AAEH,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AACpD,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5B,UAAU,SAAU,SAAQ,YAAY;IACtC,sDAAsD;IACtD,IAAI,EAAE,QAAQ,CAAC;IAEf,yDAAyD;IACzD,WAAW,EAAE,MAAM,CAAC;IAEpB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IAEjB,mDAAmD;IACnD,SAAS,EAAE,IAAI,CAAC;IAEhB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IAEb,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IAEZ,4CAA4C;IAC5C,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yDAAyD;IACzD,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B,sDAAsD;IACtD,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB,uDAAuD;IACvD,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAiDpC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const PostBaseStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
5
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
} | {
|
|
9
|
+
[x: string]: {
|
|
10
|
+
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
11
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
} | {}, {
|
|
15
|
+
base: string[];
|
|
16
|
+
}, undefined, {
|
|
17
|
+
[key: string]: {
|
|
18
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
19
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {}, {
|
|
23
|
+
base: string[];
|
|
24
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
25
|
+
base: string[];
|
|
26
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
27
|
+
type PostBaseVariants = VariantProps<typeof PostBaseStyles>;
|
|
28
|
+
export interface PostBaseProps extends PostBaseVariants {
|
|
29
|
+
/**
|
|
30
|
+
* Additional CSS class names to apply to the component.
|
|
31
|
+
*/
|
|
32
|
+
className?: string;
|
|
33
|
+
/** Content to be rendered inside the PostBase component */
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Base layout wrapper for a post, including an avatar section
|
|
38
|
+
* and content area.
|
|
39
|
+
*/
|
|
40
|
+
export declare const PostBase: React.FC<PostBaseProps>;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=PostBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostBase.d.ts","sourceRoot":"","sources":["../../../src/compositions/post-base/PostBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE9D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;2CAgBlB,CAAC;AAEH,KAAK,gBAAgB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,2DAA2D;IAC3D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAI5C,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const PostCreatorStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
5
|
+
input?: import('tailwind-merge').ClassNameValue;
|
|
6
|
+
title?: import('tailwind-merge').ClassNameValue;
|
|
7
|
+
avatar?: import('tailwind-merge').ClassNameValue;
|
|
8
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
9
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
[x: string]: {
|
|
14
|
+
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
15
|
+
input?: import('tailwind-merge').ClassNameValue;
|
|
16
|
+
title?: import('tailwind-merge').ClassNameValue;
|
|
17
|
+
avatar?: import('tailwind-merge').ClassNameValue;
|
|
18
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
19
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {}, {
|
|
23
|
+
content: string[];
|
|
24
|
+
avatar: string[];
|
|
25
|
+
title: string[];
|
|
26
|
+
input: string[];
|
|
27
|
+
action: string[];
|
|
28
|
+
}, undefined, {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
31
|
+
input?: import('tailwind-merge').ClassNameValue;
|
|
32
|
+
title?: import('tailwind-merge').ClassNameValue;
|
|
33
|
+
avatar?: import('tailwind-merge').ClassNameValue;
|
|
34
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
35
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
} | {}, {
|
|
39
|
+
content: string[];
|
|
40
|
+
avatar: string[];
|
|
41
|
+
title: string[];
|
|
42
|
+
input: string[];
|
|
43
|
+
action: string[];
|
|
44
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
45
|
+
content: string[];
|
|
46
|
+
avatar: string[];
|
|
47
|
+
title: string[];
|
|
48
|
+
input: string[];
|
|
49
|
+
action: string[];
|
|
50
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
51
|
+
type PostCreatorVariants = VariantProps<typeof PostCreatorStyles>;
|
|
52
|
+
interface PostCreatorProps extends PostCreatorVariants {
|
|
53
|
+
/** Avatar image URL */
|
|
54
|
+
src: string;
|
|
55
|
+
/** Triggered when the avatar is clicked. */
|
|
56
|
+
onAvatarClick: () => void;
|
|
57
|
+
/**
|
|
58
|
+
* Callback fired when the "Send" button is clicked.
|
|
59
|
+
* Receives the textarea text and the optionally uploaded file.
|
|
60
|
+
*/
|
|
61
|
+
onSendClick: (text: string, file: File | null) => void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* PostCreator component
|
|
65
|
+
*
|
|
66
|
+
* Renders a post creation component.
|
|
67
|
+
*/
|
|
68
|
+
export declare const PostCreator: React.FC<PostCreatorProps>;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=PostCreator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostCreator.d.ts","sourceRoot":"","sources":["../../../src/compositions/post-creator/PostCreator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAS1D,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAQrB,CAAC;AAEH,KAAK,mBAAmB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,UAAU,gBAAiB,SAAQ,mBAAmB;IACpD,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IAEZ,4CAA4C;IAC5C,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B;;;OAGG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CACxD;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuDlD,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const ProfileBannerStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
5
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
6
|
+
avatar?: import('tailwind-merge').ClassNameValue;
|
|
7
|
+
info?: import('tailwind-merge').ClassNameValue;
|
|
8
|
+
description?: import('tailwind-merge').ClassNameValue;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
14
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
15
|
+
avatar?: import('tailwind-merge').ClassNameValue;
|
|
16
|
+
info?: import('tailwind-merge').ClassNameValue;
|
|
17
|
+
description?: import('tailwind-merge').ClassNameValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | {}, {
|
|
21
|
+
base: string[];
|
|
22
|
+
avatar: string[];
|
|
23
|
+
info: string[];
|
|
24
|
+
description: string[];
|
|
25
|
+
}, undefined, {
|
|
26
|
+
[key: string]: {
|
|
27
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
28
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
29
|
+
avatar?: import('tailwind-merge').ClassNameValue;
|
|
30
|
+
info?: import('tailwind-merge').ClassNameValue;
|
|
31
|
+
description?: import('tailwind-merge').ClassNameValue;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | {}, {
|
|
35
|
+
base: string[];
|
|
36
|
+
avatar: string[];
|
|
37
|
+
info: string[];
|
|
38
|
+
description: string[];
|
|
39
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
40
|
+
base: string[];
|
|
41
|
+
avatar: string[];
|
|
42
|
+
info: string[];
|
|
43
|
+
description: string[];
|
|
44
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
45
|
+
type ProfileBannerVariants = VariantProps<typeof ProfileBannerStyles>;
|
|
46
|
+
interface ProfileBannerProps extends ProfileBannerVariants {
|
|
47
|
+
/** URL of the user's avatar image. */
|
|
48
|
+
avatarSrc: string;
|
|
49
|
+
/** Alt text for the avatar image. */
|
|
50
|
+
avatarAlt: string;
|
|
51
|
+
/** URL of the profile banner or main image. */
|
|
52
|
+
imageSrc: string;
|
|
53
|
+
/** Alt text for the main image. */
|
|
54
|
+
imageAlt: string;
|
|
55
|
+
/** The user's display name. */
|
|
56
|
+
displayName: string;
|
|
57
|
+
/** The user’s username/handle. */
|
|
58
|
+
userName: string;
|
|
59
|
+
/** The user’s location string. */
|
|
60
|
+
location: string;
|
|
61
|
+
/** Date when the user joined. */
|
|
62
|
+
joinedTimestamp: Date;
|
|
63
|
+
/** Bio or profile description text. */
|
|
64
|
+
description: string;
|
|
65
|
+
/** Whether the profile being viewed belongs to the logged-in user. */
|
|
66
|
+
isCurrentUser: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Optional callback triggered when the profile/banner image changes.
|
|
69
|
+
* Receives the selected `File`, or `null` if cleared.
|
|
70
|
+
*/
|
|
71
|
+
onProfileImageChange?: (file: File | null) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Optional callback triggered when the avatar image changes.
|
|
74
|
+
* Receives the selected `File`, or `null` if cleared.
|
|
75
|
+
*/
|
|
76
|
+
onAvatarImageChange?: (file: File | null) => void;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Profile banner component for displaying user profile info.
|
|
80
|
+
*/
|
|
81
|
+
export declare const ProfileBanner: React.FC<ProfileBannerProps>;
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=ProfileBanner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileBanner.d.ts","sourceRoot":"","sources":["../../../src/compositions/profile-banner/ProfileBanner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAS1D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAOvB,CAAC;AAEH,KAAK,qBAAqB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,UAAU,kBAAmB,SAAQ,qBAAqB;IACxD,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAElB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAElB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IAEjB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IAEjB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IAEpB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IAEjB,kCAAkC;IAClC,QAAQ,EAAE,MAAM,CAAC;IAEjB,iCAAiC;IACjC,eAAe,EAAE,IAAI,CAAC;IAEtB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IAEpB,sEAAsE;IACtE,aAAa,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAEnD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CACnD;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoDtD,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const ProfileBannerImageStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
isFallback: {
|
|
4
|
+
true: {
|
|
5
|
+
image: string[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
base: string[];
|
|
10
|
+
image: string[];
|
|
11
|
+
overlay: string[];
|
|
12
|
+
icon: string[];
|
|
13
|
+
}, undefined, {
|
|
14
|
+
isFallback: {
|
|
15
|
+
true: {
|
|
16
|
+
image: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
base: string[];
|
|
21
|
+
image: string[];
|
|
22
|
+
overlay: string[];
|
|
23
|
+
icon: string[];
|
|
24
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
25
|
+
isFallback: {
|
|
26
|
+
true: {
|
|
27
|
+
image: string[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
base: string[];
|
|
32
|
+
image: string[];
|
|
33
|
+
overlay: string[];
|
|
34
|
+
icon: string[];
|
|
35
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
36
|
+
type ProfileBannerImageVariants = VariantProps<typeof ProfileBannerImageStyles>;
|
|
37
|
+
interface ProfileBannerImageProps extends ProfileBannerImageVariants {
|
|
38
|
+
/** Avatar image URL */
|
|
39
|
+
src: string;
|
|
40
|
+
/**
|
|
41
|
+
* Alternative text for the image, used for accessibility.
|
|
42
|
+
*/
|
|
43
|
+
alt: string;
|
|
44
|
+
/** Click handler for the whole ProfileBannerImage component */
|
|
45
|
+
onClick: () => void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* ProfileBannerImage component
|
|
49
|
+
*
|
|
50
|
+
* Displays a banner image with a fixed aspect ratio (17:8) and an optional overlay icon.
|
|
51
|
+
* If the image fails to load, a fallback element is displayed instead.
|
|
52
|
+
*/
|
|
53
|
+
export declare const ProfileBannerImage: React.FC<ProfileBannerImageProps>;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=ProfileBannerImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileBannerImage.d.ts","sourceRoot":"","sources":["../../../src/compositions/profile-banner-image/ProfileBannerImage.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAG9D,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAwC5B,CAAC;AAEH,KAAK,0BAA0B,GAAG,YAAY,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,UAAU,uBAAwB,SAAQ,0BAA0B;IAClE,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ,+DAA+D;IAC/D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA0BhE,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const profileBannerInfoStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
5
|
+
displayName?: import('tailwind-merge').ClassNameValue;
|
|
6
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
7
|
+
title?: import('tailwind-merge').ClassNameValue;
|
|
8
|
+
icon?: import('tailwind-merge').ClassNameValue;
|
|
9
|
+
detailInfo?: import('tailwind-merge').ClassNameValue;
|
|
10
|
+
secondaryInfo?: import('tailwind-merge').ClassNameValue;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
} | {
|
|
14
|
+
[x: string]: {
|
|
15
|
+
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
16
|
+
displayName?: import('tailwind-merge').ClassNameValue;
|
|
17
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
18
|
+
title?: import('tailwind-merge').ClassNameValue;
|
|
19
|
+
icon?: import('tailwind-merge').ClassNameValue;
|
|
20
|
+
detailInfo?: import('tailwind-merge').ClassNameValue;
|
|
21
|
+
secondaryInfo?: import('tailwind-merge').ClassNameValue;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
} | {}, {
|
|
25
|
+
base: string[];
|
|
26
|
+
title: string[];
|
|
27
|
+
icon: string[];
|
|
28
|
+
displayName: string[];
|
|
29
|
+
detailInfo: string[];
|
|
30
|
+
secondaryInfo: string[];
|
|
31
|
+
}, undefined, {
|
|
32
|
+
[key: string]: {
|
|
33
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
34
|
+
displayName?: import('tailwind-merge').ClassNameValue;
|
|
35
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
36
|
+
title?: import('tailwind-merge').ClassNameValue;
|
|
37
|
+
icon?: import('tailwind-merge').ClassNameValue;
|
|
38
|
+
detailInfo?: import('tailwind-merge').ClassNameValue;
|
|
39
|
+
secondaryInfo?: import('tailwind-merge').ClassNameValue;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
} | {}, {
|
|
43
|
+
base: string[];
|
|
44
|
+
title: string[];
|
|
45
|
+
icon: string[];
|
|
46
|
+
displayName: string[];
|
|
47
|
+
detailInfo: string[];
|
|
48
|
+
secondaryInfo: string[];
|
|
49
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
50
|
+
base: string[];
|
|
51
|
+
title: string[];
|
|
52
|
+
icon: string[];
|
|
53
|
+
displayName: string[];
|
|
54
|
+
detailInfo: string[];
|
|
55
|
+
secondaryInfo: string[];
|
|
56
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
57
|
+
type ProfileBannerInfoVariants = VariantProps<typeof profileBannerInfoStyles>;
|
|
58
|
+
interface ProfileBannerInfoProps extends ProfileBannerInfoVariants {
|
|
59
|
+
/** Whether the profile being viewed belongs to the logged-in user. */
|
|
60
|
+
isCurrentUser: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The user's full display name (e.g., "John Doe").
|
|
63
|
+
*/
|
|
64
|
+
displayName: string;
|
|
65
|
+
/**
|
|
66
|
+
* The user's username or handle (e.g., "@john").
|
|
67
|
+
*/
|
|
68
|
+
userName: string;
|
|
69
|
+
/**
|
|
70
|
+
* The user's location as a readable text label.
|
|
71
|
+
*/
|
|
72
|
+
location: string;
|
|
73
|
+
/**
|
|
74
|
+
* A timestamp representing when the user joined.
|
|
75
|
+
* Used to generate the "Member since" relative date.
|
|
76
|
+
*/
|
|
77
|
+
joinedTimestamp: Date;
|
|
78
|
+
/**
|
|
79
|
+
* Callback fired whenever any profile-related element is clicked.
|
|
80
|
+
* Typically used to open the profile or navigate to a user page.
|
|
81
|
+
*/
|
|
82
|
+
onProfileClick: () => void;
|
|
83
|
+
/** A function called when the settings button is clicked. */
|
|
84
|
+
onSettingsClick?: () => void;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* ProfileBannerInfo Component
|
|
88
|
+
*
|
|
89
|
+
* Renders profile information used in a user profile banner
|
|
90
|
+
*/
|
|
91
|
+
export declare const ProfileBannerInfo: React.FC<ProfileBannerInfoProps>;
|
|
92
|
+
export {};
|
|
93
|
+
//# sourceMappingURL=ProfileBannerInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProfileBannerInfo.d.ts","sourceRoot":"","sources":["../../../src/compositions/profile-banner-info/ProfileBannerInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAU1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAS3B,CAAC;AAEH,KAAK,yBAAyB,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,UAAU,sBAAuB,SAAQ,yBAAyB;IAChE,sEAAsE;IACtE,aAAa,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,eAAe,EAAE,IAAI,CAAC;IAEtB;;;OAGG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAwBD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAgD9D,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const ResponseStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
5
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
6
|
+
text?: import('tailwind-merge').ClassNameValue;
|
|
7
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
8
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
14
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
15
|
+
text?: import('tailwind-merge').ClassNameValue;
|
|
16
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
17
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | {}, {
|
|
21
|
+
base: never[];
|
|
22
|
+
content: string[];
|
|
23
|
+
text: string[];
|
|
24
|
+
action: string[];
|
|
25
|
+
}, undefined, {
|
|
26
|
+
[key: string]: {
|
|
27
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
28
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
29
|
+
text?: import('tailwind-merge').ClassNameValue;
|
|
30
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
31
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | {}, {
|
|
35
|
+
base: never[];
|
|
36
|
+
content: string[];
|
|
37
|
+
text: string[];
|
|
38
|
+
action: string[];
|
|
39
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
40
|
+
base: never[];
|
|
41
|
+
content: string[];
|
|
42
|
+
text: string[];
|
|
43
|
+
action: string[];
|
|
44
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
45
|
+
type ResponseVariants = VariantProps<typeof ResponseStyles>;
|
|
46
|
+
interface ResponseProps extends ResponseVariants {
|
|
47
|
+
/** The display name of the user who created the Response. */
|
|
48
|
+
displayName: string;
|
|
49
|
+
/** The username or handle associated with the Response. */
|
|
50
|
+
userName: string;
|
|
51
|
+
/** The date and time when the Response was created. */
|
|
52
|
+
timestamp: Date;
|
|
53
|
+
/** The main text content of the Response. */
|
|
54
|
+
text: string;
|
|
55
|
+
/** Avatar image URL */
|
|
56
|
+
src: string;
|
|
57
|
+
/** Triggered when the avatar is clicked. */
|
|
58
|
+
onAvatarClick: () => void;
|
|
59
|
+
/** Optional image source URL displayed within the Response. */
|
|
60
|
+
imageSrc?: string;
|
|
61
|
+
/** Optional alt text for the Response image, used for accessibility. */
|
|
62
|
+
imageAlt?: string;
|
|
63
|
+
/** Callback fired when the comment button is clicked. */
|
|
64
|
+
onCommentClick: () => void;
|
|
65
|
+
/** Callback fired when the like button is clicked. */
|
|
66
|
+
onLikeClick: () => void;
|
|
67
|
+
/** Callback fired when the share button is clicked. */
|
|
68
|
+
onShareClick: () => void;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Detailed Response component displaying user info, text content,
|
|
72
|
+
* optional image, and action buttons (comment, like, share).
|
|
73
|
+
*/
|
|
74
|
+
export declare const Response: React.FC<ResponseProps>;
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=Response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.d.ts","sourceRoot":"","sources":["../../../src/compositions/response/Response.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAO1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAOlB,CAAC;AAEH,KAAK,gBAAgB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,UAAU,aAAc,SAAQ,gBAAgB;IAC9C,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IAEpB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IAEjB,uDAAuD;IACvD,SAAS,EAAE,IAAI,CAAC;IAEhB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IAEb,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IAEZ,4CAA4C;IAC5C,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yDAAyD;IACzD,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B,sDAAsD;IACtD,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB,uDAAuD;IACvD,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyC5C,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const ResponseCreatorStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
5
|
+
input?: import('tailwind-merge').ClassNameValue;
|
|
6
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
7
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
11
|
+
[x: string]: {
|
|
12
|
+
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
13
|
+
input?: import('tailwind-merge').ClassNameValue;
|
|
14
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
15
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
} | {}, {
|
|
19
|
+
content: string[];
|
|
20
|
+
input: string[];
|
|
21
|
+
action: string[];
|
|
22
|
+
}, undefined, {
|
|
23
|
+
[key: string]: {
|
|
24
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
25
|
+
input?: import('tailwind-merge').ClassNameValue;
|
|
26
|
+
action?: import('tailwind-merge').ClassNameValue;
|
|
27
|
+
content?: import('tailwind-merge').ClassNameValue;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
} | {}, {
|
|
31
|
+
content: string[];
|
|
32
|
+
input: string[];
|
|
33
|
+
action: string[];
|
|
34
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
35
|
+
content: string[];
|
|
36
|
+
input: string[];
|
|
37
|
+
action: string[];
|
|
38
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
39
|
+
type ResponseCreatorVariants = VariantProps<typeof ResponseCreatorStyles>;
|
|
40
|
+
interface ResponseCreatorProps extends ResponseCreatorVariants {
|
|
41
|
+
/** Avatar image URL */
|
|
42
|
+
src: string;
|
|
43
|
+
/** Display name of the user */
|
|
44
|
+
displayName: string;
|
|
45
|
+
/** Username of the user */
|
|
46
|
+
userName: string;
|
|
47
|
+
/**
|
|
48
|
+
* Callback fired when the "Send" button is clicked.
|
|
49
|
+
* Receives the textarea text and the optionally uploaded file.
|
|
50
|
+
*/
|
|
51
|
+
onSendClick: (text: string, file: File | null) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Triggered when the avatar is clicked.
|
|
54
|
+
*/
|
|
55
|
+
onAvatarClick: () => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* ResponseCreator component
|
|
59
|
+
*
|
|
60
|
+
* Renders a Response creation component.
|
|
61
|
+
*/
|
|
62
|
+
export declare const ResponseCreator: React.FC<ResponseCreatorProps>;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=ResponseCreator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponseCreator.d.ts","sourceRoot":"","sources":["../../../src/compositions/response-creator/ResponseCreator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAU1D,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAMzB,CAAC;AAEH,KAAK,uBAAuB,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,UAAU,oBAAqB,SAAQ,uBAAuB;IAC5D,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IAEZ,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAC;IAEpB,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAEvD;;OAEG;IACH,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkD1D,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const userInfoStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
[key: string]: {
|
|
4
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
5
|
+
displayName?: import('tailwind-merge').ClassNameValue;
|
|
6
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
7
|
+
userInfo?: import('tailwind-merge').ClassNameValue;
|
|
8
|
+
detailInfo?: import('tailwind-merge').ClassNameValue;
|
|
9
|
+
timeInfo?: import('tailwind-merge').ClassNameValue;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
[x: string]: {
|
|
14
|
+
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
15
|
+
displayName?: import('tailwind-merge').ClassNameValue;
|
|
16
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
17
|
+
userInfo?: import('tailwind-merge').ClassNameValue;
|
|
18
|
+
detailInfo?: import('tailwind-merge').ClassNameValue;
|
|
19
|
+
timeInfo?: import('tailwind-merge').ClassNameValue;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} | {}, {
|
|
23
|
+
base: string[];
|
|
24
|
+
userInfo: string[];
|
|
25
|
+
displayName: string[];
|
|
26
|
+
detailInfo: string[];
|
|
27
|
+
timeInfo: string[];
|
|
28
|
+
}, undefined, {
|
|
29
|
+
[key: string]: {
|
|
30
|
+
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
31
|
+
displayName?: import('tailwind-merge').ClassNameValue;
|
|
32
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
33
|
+
userInfo?: import('tailwind-merge').ClassNameValue;
|
|
34
|
+
detailInfo?: import('tailwind-merge').ClassNameValue;
|
|
35
|
+
timeInfo?: import('tailwind-merge').ClassNameValue;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
} | {}, {
|
|
39
|
+
base: string[];
|
|
40
|
+
userInfo: string[];
|
|
41
|
+
displayName: string[];
|
|
42
|
+
detailInfo: string[];
|
|
43
|
+
timeInfo: string[];
|
|
44
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
45
|
+
base: string[];
|
|
46
|
+
userInfo: string[];
|
|
47
|
+
displayName: string[];
|
|
48
|
+
detailInfo: string[];
|
|
49
|
+
timeInfo: string[];
|
|
50
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
51
|
+
type UserInfoVariants = VariantProps<typeof userInfoStyles>;
|
|
52
|
+
type UserInfoSize = "sm" | "md" | "lg";
|
|
53
|
+
interface UserInfoProps extends UserInfoVariants {
|
|
54
|
+
/** Avatar image URL */
|
|
55
|
+
src?: string;
|
|
56
|
+
/** Size variant of the component */
|
|
57
|
+
size: UserInfoSize;
|
|
58
|
+
/** Display name of the user */
|
|
59
|
+
displayName: string;
|
|
60
|
+
/** Username of the user */
|
|
61
|
+
userName: string;
|
|
62
|
+
/** Timestamp for the user activity */
|
|
63
|
+
timestamp?: Date;
|
|
64
|
+
/** Click handler for the whole UserInfo component */
|
|
65
|
+
onClick: () => void;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* UserInfo Component
|
|
69
|
+
*
|
|
70
|
+
* Displays a user avatar, display name, username, and a timestamp indicating
|
|
71
|
+
* when an activity occurred. The entire component acts as an interactive button
|
|
72
|
+
* and includes keyboard accessibility using `Enter` and `Space`.
|
|
73
|
+
*/
|
|
74
|
+
export declare const UserInfo: React.FC<UserInfoProps>;
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=UserInfo.d.ts.map
|