hive-react-kit 0.6.5 → 0.6.7

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
  }
@@ -424,6 +427,12 @@
424
427
  .z-\[2000\] {
425
428
  z-index: 2000;
426
429
  }
430
+ .z-\[9998\] {
431
+ z-index: 9998;
432
+ }
433
+ .z-\[9999\] {
434
+ z-index: 9999;
435
+ }
427
436
  .col-span-1 {
428
437
  grid-column: span 1 / span 1;
429
438
  }
@@ -559,6 +568,9 @@
559
568
  .ml-6 {
560
569
  margin-left: calc(var(--spacing) * 6);
561
570
  }
571
+ .ml-7 {
572
+ margin-left: calc(var(--spacing) * 7);
573
+ }
562
574
  .ml-8 {
563
575
  margin-left: calc(var(--spacing) * 8);
564
576
  }
@@ -1118,6 +1130,9 @@
1118
1130
  .gap-y-1 {
1119
1131
  row-gap: calc(var(--spacing) * 1);
1120
1132
  }
1133
+ .gap-y-1\.5 {
1134
+ row-gap: calc(var(--spacing) * 1.5);
1135
+ }
1121
1136
  .divide-y {
1122
1137
  :where(& > :not(:last-child)) {
1123
1138
  --tw-divide-y-reverse: 0;
@@ -1365,6 +1380,12 @@
1365
1380
  background-color: color-mix(in oklab, var(--color-black) 30%, transparent);
1366
1381
  }
1367
1382
  }
1383
+ .bg-black\/40 {
1384
+ background-color: color-mix(in srgb, #000 40%, transparent);
1385
+ @supports (color: color-mix(in lab, red, red)) {
1386
+ background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
1387
+ }
1388
+ }
1368
1389
  .bg-black\/50 {
1369
1390
  background-color: color-mix(in srgb, #000 50%, transparent);
1370
1391
  @supports (color: color-mix(in lab, red, red)) {
@@ -1536,6 +1557,12 @@
1536
1557
  background-color: color-mix(in oklab, var(--color-gray-900) 80%, transparent);
1537
1558
  }
1538
1559
  }
1560
+ .bg-gray-900\/95 {
1561
+ background-color: color-mix(in srgb, oklch(21% 0.034 264.665) 95%, transparent);
1562
+ @supports (color: color-mix(in lab, red, red)) {
1563
+ background-color: color-mix(in oklab, var(--color-gray-900) 95%, transparent);
1564
+ }
1565
+ }
1539
1566
  .bg-gray-950 {
1540
1567
  background-color: var(--color-gray-950);
1541
1568
  }
@@ -1965,6 +1992,9 @@
1965
1992
  font-size: var(--text-xs);
1966
1993
  line-height: var(--tw-leading, var(--text-xs--line-height));
1967
1994
  }
1995
+ .text-\[9px\] {
1996
+ font-size: 9px;
1997
+ }
1968
1998
  .text-\[10px\] {
1969
1999
  font-size: 10px;
1970
2000
  }
@@ -2231,6 +2261,10 @@
2231
2261
  --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
2232
2262
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2233
2263
  }
2264
+ .shadow-\[0_-4px_20px_rgba\(0\,0\,0\,0\.5\)\] {
2265
+ --tw-shadow: 0 -4px 20px var(--tw-shadow-color, rgba(0,0,0,0.5));
2266
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2267
+ }
2234
2268
  .shadow-lg {
2235
2269
  --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
2270
  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 +3166,11 @@
3132
3166
  margin-left: calc(var(--spacing) * 8);
3133
3167
  }
3134
3168
  }
3169
+ .md\:ml-9 {
3170
+ @media (width >= 48rem) {
3171
+ margin-left: calc(var(--spacing) * 9);
3172
+ }
3173
+ }
3135
3174
  .md\:block {
3136
3175
  @media (width >= 48rem) {
3137
3176
  display: block;
@@ -3152,6 +3191,11 @@
3152
3191
  height: calc(var(--spacing) * 4);
3153
3192
  }
3154
3193
  }
3194
+ .md\:h-7 {
3195
+ @media (width >= 48rem) {
3196
+ height: calc(var(--spacing) * 7);
3197
+ }
3198
+ }
3155
3199
  .md\:h-10 {
3156
3200
  @media (width >= 48rem) {
3157
3201
  height: calc(var(--spacing) * 10);
@@ -3167,6 +3211,11 @@
3167
3211
  width: calc(var(--spacing) * 4);
3168
3212
  }
3169
3213
  }
3214
+ .md\:w-7 {
3215
+ @media (width >= 48rem) {
3216
+ width: calc(var(--spacing) * 7);
3217
+ }
3218
+ }
3170
3219
  .md\:w-10 {
3171
3220
  @media (width >= 48rem) {
3172
3221
  width: calc(var(--spacing) * 10);
@@ -3212,6 +3261,11 @@
3212
3261
  align-items: center;
3213
3262
  }
3214
3263
  }
3264
+ .md\:gap-2 {
3265
+ @media (width >= 48rem) {
3266
+ gap: calc(var(--spacing) * 2);
3267
+ }
3268
+ }
3215
3269
  .md\:space-y-4 {
3216
3270
  @media (width >= 48rem) {
3217
3271
  :where(& > :not(:last-child)) {
@@ -3278,6 +3332,11 @@
3278
3332
  padding-inline: calc(var(--spacing) * 6);
3279
3333
  }
3280
3334
  }
3335
+ .md\:py-3 {
3336
+ @media (width >= 48rem) {
3337
+ padding-block: calc(var(--spacing) * 3);
3338
+ }
3339
+ }
3281
3340
  .md\:py-6 {
3282
3341
  @media (width >= 48rem) {
3283
3342
  padding-block: calc(var(--spacing) * 6);
@@ -3329,6 +3388,11 @@
3329
3388
  line-height: var(--tw-leading, var(--text-xl--line-height));
3330
3389
  }
3331
3390
  }
3391
+ .md\:text-\[10px\] {
3392
+ @media (width >= 48rem) {
3393
+ font-size: 10px;
3394
+ }
3395
+ }
3332
3396
  .lg\:col-span-2 {
3333
3397
  @media (width >= 64rem) {
3334
3398
  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>;