@soul-refiner/design-system 0.2.38 → 0.2.39

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.
@@ -52,7 +52,7 @@ export const Comment = ({ content, createdDate, hasMoreReplies, onComment, onRea
52
52
  return (React.createElement(Wrapper, null,
53
53
  React.createElement(Avatar, { href: userProfileUri, image: userImageUri, size: 32 }),
54
54
  React.createElement(Box, { "$flex": 1, "$dir": "column" },
55
- React.createElement(ContentWrapper, { "$hasReplies": hasReplies },
55
+ React.createElement(ContentWrapper, { "$hasReplies": hasReplies || !!hasMoreReplies },
56
56
  React.createElement(CommentBox, null,
57
57
  React.createElement(P, { "$bold": true, "$color": "grey-2", "$fontSize": 14, "$lineHeight": 20 }, userName),
58
58
  React.createElement(P, { sx: "letter-spacing: -0.176px;" }, content)),
@@ -64,14 +64,15 @@ export const Comment = ({ content, createdDate, hasMoreReplies, onComment, onRea
64
64
  React.createElement(Box, { "$display": "flex", "$flow": "row wrap", "$gap": 6, sx: "max-width: calc(100% - 190px); margin-left: auto;" }, reactionElements),
65
65
  showPicker && (React.createElement(PickerWrapper, null,
66
66
  React.createElement(Picker, { data: emojis, onEmojiSelect: handleReaction, onClickOutside: handlePickerBlur, maxFrequentRows: 1, navPosition: "none", previewPosition: "none", perLine: 9, theme: "auto" }))))),
67
- hasMoreReplies && !toggleShowReplies && (React.createElement(RepliesWrapper, null,
68
- React.createElement(ReplyWrapper, { "$isNotLastReply": false },
69
- React.createElement(Button, { onClick: handleToggleReplies, size: "small", sx: "color: var(--color-grey-3);", type: "text" },
70
- "show ",
71
- replies && replies.length ? 'more' : '',
72
- " replies"),
73
- React.createElement(ReplyIndicator, null)))),
74
67
  hasReplies && toggleShowReplies && (React.createElement(RepliesWrapper, null, replyElements)),
68
+ hasMoreReplies ||
69
+ (!toggleShowReplies && hasReplies && (React.createElement(RepliesWrapper, null,
70
+ React.createElement(ReplyWrapper, { "$isNotLastReply": false },
71
+ React.createElement(Button, { onClick: handleToggleReplies, size: "small", sx: "color: var(--color-grey-3);", type: "text" },
72
+ "show ",
73
+ replies && replies.length ? 'more' : '',
74
+ " replies"),
75
+ React.createElement(ReplyIndicator, null))))),
75
76
  toggleShowCommentInput && (React.createElement(CommentWrapper, { onSubmit: handleCommentSubmit },
76
77
  React.createElement(TextInput, { bg: "var(--color-grey-10)", placeholder: "Write a reply", onChange: handleCommentChange, value: comment }))))));
77
78
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "0.2.38",
3
+ "version": "0.2.39",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {