hive-react-kit 0.6.5 → 0.6.6

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/build.css CHANGED
@@ -313,6 +313,9 @@
313
313
  .inset-0 {
314
314
  inset: calc(var(--spacing) * 0);
315
315
  }
316
+ .inset-x-0 {
317
+ inset-inline: calc(var(--spacing) * 0);
318
+ }
316
319
  .inset-y-0 {
317
320
  inset-block: calc(var(--spacing) * 0);
318
321
  }
@@ -559,6 +562,9 @@
559
562
  .ml-6 {
560
563
  margin-left: calc(var(--spacing) * 6);
561
564
  }
565
+ .ml-7 {
566
+ margin-left: calc(var(--spacing) * 7);
567
+ }
562
568
  .ml-8 {
563
569
  margin-left: calc(var(--spacing) * 8);
564
570
  }
@@ -1118,6 +1124,9 @@
1118
1124
  .gap-y-1 {
1119
1125
  row-gap: calc(var(--spacing) * 1);
1120
1126
  }
1127
+ .gap-y-1\.5 {
1128
+ row-gap: calc(var(--spacing) * 1.5);
1129
+ }
1121
1130
  .divide-y {
1122
1131
  :where(& > :not(:last-child)) {
1123
1132
  --tw-divide-y-reverse: 0;
@@ -1365,6 +1374,12 @@
1365
1374
  background-color: color-mix(in oklab, var(--color-black) 30%, transparent);
1366
1375
  }
1367
1376
  }
1377
+ .bg-black\/40 {
1378
+ background-color: color-mix(in srgb, #000 40%, transparent);
1379
+ @supports (color: color-mix(in lab, red, red)) {
1380
+ background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
1381
+ }
1382
+ }
1368
1383
  .bg-black\/50 {
1369
1384
  background-color: color-mix(in srgb, #000 50%, transparent);
1370
1385
  @supports (color: color-mix(in lab, red, red)) {
@@ -1536,6 +1551,12 @@
1536
1551
  background-color: color-mix(in oklab, var(--color-gray-900) 80%, transparent);
1537
1552
  }
1538
1553
  }
1554
+ .bg-gray-900\/95 {
1555
+ background-color: color-mix(in srgb, oklch(21% 0.034 264.665) 95%, transparent);
1556
+ @supports (color: color-mix(in lab, red, red)) {
1557
+ background-color: color-mix(in oklab, var(--color-gray-900) 95%, transparent);
1558
+ }
1559
+ }
1539
1560
  .bg-gray-950 {
1540
1561
  background-color: var(--color-gray-950);
1541
1562
  }
@@ -1965,6 +1986,9 @@
1965
1986
  font-size: var(--text-xs);
1966
1987
  line-height: var(--tw-leading, var(--text-xs--line-height));
1967
1988
  }
1989
+ .text-\[9px\] {
1990
+ font-size: 9px;
1991
+ }
1968
1992
  .text-\[10px\] {
1969
1993
  font-size: 10px;
1970
1994
  }
@@ -2231,6 +2255,10 @@
2231
2255
  --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
2232
2256
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2233
2257
  }
2258
+ .shadow-\[0_-4px_20px_rgba\(0\,0\,0\,0\.5\)\] {
2259
+ --tw-shadow: 0 -4px 20px var(--tw-shadow-color, rgba(0,0,0,0.5));
2260
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2261
+ }
2234
2262
  .shadow-lg {
2235
2263
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2236
2264
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -3132,6 +3160,11 @@
3132
3160
  margin-left: calc(var(--spacing) * 8);
3133
3161
  }
3134
3162
  }
3163
+ .md\:ml-9 {
3164
+ @media (width >= 48rem) {
3165
+ margin-left: calc(var(--spacing) * 9);
3166
+ }
3167
+ }
3135
3168
  .md\:block {
3136
3169
  @media (width >= 48rem) {
3137
3170
  display: block;
@@ -3152,6 +3185,11 @@
3152
3185
  height: calc(var(--spacing) * 4);
3153
3186
  }
3154
3187
  }
3188
+ .md\:h-7 {
3189
+ @media (width >= 48rem) {
3190
+ height: calc(var(--spacing) * 7);
3191
+ }
3192
+ }
3155
3193
  .md\:h-10 {
3156
3194
  @media (width >= 48rem) {
3157
3195
  height: calc(var(--spacing) * 10);
@@ -3167,6 +3205,11 @@
3167
3205
  width: calc(var(--spacing) * 4);
3168
3206
  }
3169
3207
  }
3208
+ .md\:w-7 {
3209
+ @media (width >= 48rem) {
3210
+ width: calc(var(--spacing) * 7);
3211
+ }
3212
+ }
3170
3213
  .md\:w-10 {
3171
3214
  @media (width >= 48rem) {
3172
3215
  width: calc(var(--spacing) * 10);
@@ -3212,6 +3255,11 @@
3212
3255
  align-items: center;
3213
3256
  }
3214
3257
  }
3258
+ .md\:gap-2 {
3259
+ @media (width >= 48rem) {
3260
+ gap: calc(var(--spacing) * 2);
3261
+ }
3262
+ }
3215
3263
  .md\:space-y-4 {
3216
3264
  @media (width >= 48rem) {
3217
3265
  :where(& > :not(:last-child)) {
@@ -3278,6 +3326,11 @@
3278
3326
  padding-inline: calc(var(--spacing) * 6);
3279
3327
  }
3280
3328
  }
3329
+ .md\:py-3 {
3330
+ @media (width >= 48rem) {
3331
+ padding-block: calc(var(--spacing) * 3);
3332
+ }
3333
+ }
3281
3334
  .md\:py-6 {
3282
3335
  @media (width >= 48rem) {
3283
3336
  padding-block: calc(var(--spacing) * 6);
@@ -3329,6 +3382,11 @@
3329
3382
  line-height: var(--tw-leading, var(--text-xl--line-height));
3330
3383
  }
3331
3384
  }
3385
+ .md\:text-\[10px\] {
3386
+ @media (width >= 48rem) {
3387
+ font-size: 10px;
3388
+ }
3389
+ }
3332
3390
  .lg\:col-span-2 {
3333
3391
  @media (width >= 64rem) {
3334
3392
  grid-column: span 2 / span 2;
@@ -9,6 +9,9 @@ export interface HiveDetailPostProps {
9
9
  onShare?: () => void;
10
10
  onTip?: () => void;
11
11
  onReport?: () => void;
12
+ onShareComment?: (author: string, permlink: string) => void;
13
+ onTipComment?: (author: string, permlink: string) => void;
14
+ onReportComment?: (author: string, permlink: string) => void;
12
15
  /**
13
16
  * Called when the user submits a poll vote.
14
17
  * @param author - post author
@@ -37,5 +40,5 @@ export interface HiveDetailPostProps {
37
40
  /** Called when user clicks "View parent post" — navigate to the parent post. */
38
41
  onNavigateToPost?: (author: string, permlink: string) => void;
39
42
  }
40
- export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onNavigateToPost, onVotePoll, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
43
+ export declare function HiveDetailPost({ author, permlink, currentUser, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onShare, onTip, onReport, onShareComment, onTipComment, onReportComment, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, backgroundColor, onBack, onUserClick, onNavigateToPost, onVotePoll, }: HiveDetailPostProps): import("react/jsx-runtime").JSX.Element;
41
44
  export default HiveDetailPost;
@@ -18,6 +18,10 @@ interface InlineCommentItemProps {
18
18
  giphyApiKey?: string;
19
19
  templateToken?: string;
20
20
  templateApiBaseUrl?: string;
21
+ hiveIconUrl?: string;
22
+ onShareComment?: (author: string, permlink: string) => void;
23
+ onTipComment?: (author: string, permlink: string) => void;
24
+ onReportComment?: (author: string, permlink: string) => void;
21
25
  }
22
- export default function InlineCommentItem({ comment, allComments, onReply, onCancelReply, onCommentSubmit, activeReplyKey, currentUser, token, depth, onVotedRefresh, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, }: InlineCommentItemProps): import("react/jsx-runtime").JSX.Element;
26
+ export default function InlineCommentItem({ comment, allComments, onReply, onCancelReply, onCommentSubmit, activeReplyKey, currentUser, token, depth, onVotedRefresh, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, hiveIconUrl, onShareComment, onTipComment, onReportComment, }: InlineCommentItemProps): import("react/jsx-runtime").JSX.Element;
23
27
  export {};
@@ -17,6 +17,10 @@ interface InlineCommentSectionProps {
17
17
  author: string;
18
18
  permlink: string;
19
19
  }[];
20
+ hiveIconUrl?: string;
21
+ onShareComment?: (author: string, permlink: string) => void;
22
+ onTipComment?: (author: string, permlink: string) => void;
23
+ onReportComment?: (author: string, permlink: string) => void;
20
24
  }
21
- export default function InlineCommentSection({ author, permlink, currentUser, token, onSubmitComment, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, }: InlineCommentSectionProps): import("react/jsx-runtime").JSX.Element;
25
+ export default function InlineCommentSection({ author, permlink, currentUser, token, onSubmitComment, onClickCommentUpvote, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, reportedAuthors, reportedPosts, hiveIconUrl, onShareComment, onTipComment, onReportComment, }: InlineCommentSectionProps): import("react/jsx-runtime").JSX.Element;
22
26
  export {};
@@ -47,6 +47,8 @@ export interface UserDetailProfileProps {
47
47
  onActivitySelect?: (activity: any) => void;
48
48
  onShare?: (username: string) => void;
49
49
  onSharePost?: (author: string, permlink: string) => void;
50
+ /** When provided, clicking the comment icon navigates to the post detail instead of opening the comments modal. */
51
+ onCommentClick?: (author: string, permlink: string) => void;
50
52
  }
51
53
  type TabType = "blogs" | "posts" | "snaps" | "polls" | "comments" | "replies" | "activities" | "authorRewards" | "curationRewards" | "followers" | "following" | "wallet" | "votingPower" | "badges" | "witnessVotes";
52
54
  declare const UserDetailProfile: React.FC<UserDetailProfileProps>;