@fibery/ui-kit 9.1.0 → 9.1.1
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/lib/comment.d.ts +1 -1
- package/lib/comment.js +25 -17
- package/lib/comment.wyw-in-js.css +11 -10
- package/package.json +5 -5
package/lib/comment.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const commentContentStyle: import("@linaria/core").LinariaClassName;
|
|
|
4
4
|
declare const commentStyle: import("@linaria/core").LinariaClassName;
|
|
5
5
|
declare const defaultCommentStyle: import("@linaria/core").LinariaClassName;
|
|
6
6
|
interface CommentProps {
|
|
7
|
-
author?:
|
|
7
|
+
author?: ReactNode;
|
|
8
8
|
authorTitle?: string;
|
|
9
9
|
authorStyleClassName?: string;
|
|
10
10
|
avatarUrl?: string | null;
|
package/lib/comment.js
CHANGED
|
@@ -14,13 +14,14 @@ import { cx } from "@linaria/core";
|
|
|
14
14
|
var commentContentStyle = "c4bd082-commentContent";
|
|
15
15
|
var commentStyle = "c99co57-comment";
|
|
16
16
|
var avatarContainerStyle = "alj6rui-avatarContainer";
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
17
|
+
var avatarSlotStyle = "a1jz7n7h-avatarSlot";
|
|
18
|
+
var infoContainerStyle = "i1ftwecl-infoContainer";
|
|
19
|
+
var infoRowStyle = "i1uq6781-infoRow";
|
|
20
|
+
var authorStyle = "a1fgzzhc-author";
|
|
21
|
+
var dateStyle = "d6fpn3e-date";
|
|
22
|
+
var badgeStyle = "b1j9f4o5-badge";
|
|
23
|
+
var defaultCommentStyle = "d1slvpm7-defaultComment";
|
|
24
|
+
var actionsClassName = "ajnlt45-actions";
|
|
24
25
|
var Comment = memo(forwardRef((props, ref) => {
|
|
25
26
|
const { author, authorTitle, authorStyleClassName, commentContentStyleClassName = commentContentStyle, date, avatarUrl, hasAccessToAuthor = true, actions, children, customItemStyle, dateTimeFormat, icon, avatarSize = 24, actionsShowed = false, badge } = props;
|
|
26
27
|
const { formatted, relative } = formatDateFromNow(date, { format: dateTimeFormat });
|
|
@@ -28,16 +29,23 @@ var Comment = memo(forwardRef((props, ref) => {
|
|
|
28
29
|
const isPhone = useIsPhone();
|
|
29
30
|
return /* @__PURE__ */ jsxs("div", {
|
|
30
31
|
ref,
|
|
31
|
-
className: cx("
|
|
32
|
+
className: cx("c1gf494l", defaultCommentStyle, customItemStyle ?? "c99co57-comment"),
|
|
32
33
|
children: [
|
|
33
|
-
/* @__PURE__ */ jsx("div", {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
/* @__PURE__ */ jsx("div", {
|
|
35
|
+
className: avatarSlotStyle,
|
|
36
|
+
style: {
|
|
37
|
+
width: avatarSize,
|
|
38
|
+
height: avatarSize
|
|
39
|
+
},
|
|
40
|
+
children: IconComponent ? IconComponent : /* @__PURE__ */ jsx(AvatarImage, {
|
|
41
|
+
avatarUrl,
|
|
42
|
+
title: authorTitle,
|
|
43
|
+
size: avatarSize,
|
|
44
|
+
hasAccess: hasAccessToAuthor
|
|
45
|
+
})
|
|
46
|
+
}),
|
|
39
47
|
/* @__PURE__ */ jsxs("div", {
|
|
40
|
-
className: "
|
|
48
|
+
className: "c14sd9dn",
|
|
41
49
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
42
50
|
className: infoRowStyle,
|
|
43
51
|
children: [
|
|
@@ -59,7 +67,7 @@ var Comment = memo(forwardRef((props, ref) => {
|
|
|
59
67
|
})
|
|
60
68
|
]
|
|
61
69
|
}), actions ? /* @__PURE__ */ jsx("div", {
|
|
62
|
-
className: cx(actionsClassName, (actionsShowed || isPhone) && "
|
|
70
|
+
className: cx(actionsClassName, (actionsShowed || isPhone) && "c1fgpr5b"),
|
|
63
71
|
children: actions
|
|
64
72
|
}) : null]
|
|
65
73
|
}),
|
|
@@ -93,7 +101,7 @@ var CommentPlaceholder = () => {
|
|
|
93
101
|
};
|
|
94
102
|
var ErrorComment = ({ error }) => {
|
|
95
103
|
return /* @__PURE__ */ jsx("div", { children: jsx(Item, {
|
|
96
|
-
itemClassName: cx(commentStyle, "
|
|
104
|
+
itemClassName: cx(commentStyle, "i1x2fdjy-item"),
|
|
97
105
|
multiline: true,
|
|
98
106
|
leftContainer: /* @__PURE__ */ jsx("div", {
|
|
99
107
|
className: avatarContainerStyle,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
.c4bd082-commentContent{word-break:break-word;padding-top:6px;white-space:pre-line;}
|
|
2
2
|
.c99co57-comment{border-radius:6px;padding-left:12px;padding-right:12px;padding-top:12px;padding-bottom:6px;margin-bottom:1px;background-color:var(--actionMenuBg);transition:box-shadow 120ms ease-in-out;overflow-x:auto;}
|
|
3
3
|
.alj6rui-avatarContainer{margin-right:8px;}
|
|
4
|
-
.
|
|
5
|
-
.i1ftwecl-
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
4
|
+
.a1jz7n7h-avatarSlot{display:flex;align-items:center;justify-content:center;flex-shrink:0;}
|
|
5
|
+
.i1ftwecl-infoContainer{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:20px;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:14px;line-height:1.3;font-weight:600;color:var(--textColor);}
|
|
6
|
+
.i1uq6781-infoRow{display:flex;align-items:center;min-width:0;min-height:20px;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:14px;line-height:1.3;font-weight:600;color:var(--textColor);}
|
|
7
|
+
.a1fgzzhc-author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline;margin-right:8px;min-width:0;}
|
|
8
|
+
.d6fpn3e-date{display:inline;white-space:no-wrap;padding-right:8px;flex-shrink:0;font-family:"Inter Variable","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;font-size:12px;line-height:1.5;font-weight:410;color:var(--accentTextColor);text-transform:none;}
|
|
9
|
+
.b1j9f4o5-badge{display:flex;flex-shrink:0;}
|
|
9
10
|
|
|
10
|
-
.
|
|
11
|
-
.
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
11
|
+
.ajnlt45-actions{display:none;position:absolute;top:0;right:0;z-index:1;padding:3px;background-color:var(--colorBgFloatingPanel);border-radius:8px;box-shadow:var(--shadowFloatingPanel);gap:2px;}.d1slvpm7-defaultComment:hover .ajnlt45-actions{display:flex;}.fibery-mobile .ajnlt45-actions{top:-6px;}
|
|
12
|
+
.c1gf494l{display:grid;grid-template-columns:auto minmax(150px, 1fr);align-items:center;column-gap:12px;}
|
|
13
|
+
.c14sd9dn{display:grid;position:relative;grid-template-columns:1fr auto;align-items:center;min-height:24px;}.fibery-mobile .c14sd9dn{min-height:36px;}
|
|
14
|
+
.c1fgpr5b{display:flex;}
|
|
15
|
+
.i1x2fdjy-item{background-color:var(--warningBgColor);}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/ui-kit",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@linaria/core": "8.
|
|
99
|
-
"@linaria/react": "8.
|
|
98
|
+
"@linaria/core": "8.2.0",
|
|
99
|
+
"@linaria/react": "8.2.0",
|
|
100
100
|
"@popperjs/core": "2.11.6",
|
|
101
101
|
"@radix-ui/react-collapsible": "1.1.0",
|
|
102
102
|
"@radix-ui/react-context-menu": "2.2.1",
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
"vaul": "1.1.2",
|
|
148
148
|
"virtua": "0.50.4",
|
|
149
149
|
"@fibery/emoji-data": "3.0.0",
|
|
150
|
-
"@fibery/
|
|
151
|
-
"@fibery/
|
|
150
|
+
"@fibery/helpers": "3.3.1",
|
|
151
|
+
"@fibery/react": "2.0.2"
|
|
152
152
|
},
|
|
153
153
|
"peerDependencies": {
|
|
154
154
|
"react": "18.3.1",
|