hive-react-kit 0.11.10 → 0.11.11
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 +35 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/user/KERatioBadge.d.ts +17 -0
- package/dist/index.cjs.js +201 -202
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +25579 -25731
- package/dist/services/userService.d.ts +21 -0
- package/package.json +1 -1
package/dist/build.css
CHANGED
|
@@ -862,6 +862,9 @@
|
|
|
862
862
|
.max-h-\[656px\] {
|
|
863
863
|
max-height: 656px;
|
|
864
864
|
}
|
|
865
|
+
.max-h-\[calc\(90vh-64px\)\] {
|
|
866
|
+
max-height: calc(90vh - 64px);
|
|
867
|
+
}
|
|
865
868
|
.max-h-\[calc\(90vh-80px\)\] {
|
|
866
869
|
max-height: calc(90vh - 80px);
|
|
867
870
|
}
|
|
@@ -1371,6 +1374,11 @@
|
|
|
1371
1374
|
border-color: var(--color-gray-700);
|
|
1372
1375
|
}
|
|
1373
1376
|
}
|
|
1377
|
+
.divide-gray-800 {
|
|
1378
|
+
:where(& > :not(:last-child)) {
|
|
1379
|
+
border-color: var(--color-gray-800);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1374
1382
|
.divide-gray-800\/50 {
|
|
1375
1383
|
:where(& > :not(:last-child)) {
|
|
1376
1384
|
border-color: color-mix(in srgb, oklch(27.8% 0.033 256.848) 50%, transparent);
|
|
@@ -1525,6 +1533,12 @@
|
|
|
1525
1533
|
.border-blue-500 {
|
|
1526
1534
|
border-color: var(--color-blue-500);
|
|
1527
1535
|
}
|
|
1536
|
+
.border-blue-500\/25 {
|
|
1537
|
+
border-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 25%, transparent);
|
|
1538
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1539
|
+
border-color: color-mix(in oklab, var(--color-blue-500) 25%, transparent);
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1528
1542
|
.border-blue-500\/30 {
|
|
1529
1543
|
border-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 30%, transparent);
|
|
1530
1544
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1813,6 +1827,12 @@
|
|
|
1813
1827
|
.bg-blue-500 {
|
|
1814
1828
|
background-color: var(--color-blue-500);
|
|
1815
1829
|
}
|
|
1830
|
+
.bg-blue-500\/5 {
|
|
1831
|
+
background-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 5%, transparent);
|
|
1832
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1833
|
+
background-color: color-mix(in oklab, var(--color-blue-500) 5%, transparent);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1816
1836
|
.bg-blue-500\/15 {
|
|
1817
1837
|
background-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 15%, transparent);
|
|
1818
1838
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1984,6 +2004,12 @@
|
|
|
1984
2004
|
background-color: color-mix(in oklab, var(--color-gray-900) 50%, transparent);
|
|
1985
2005
|
}
|
|
1986
2006
|
}
|
|
2007
|
+
.bg-gray-900\/60 {
|
|
2008
|
+
background-color: color-mix(in srgb, oklch(21% 0.034 264.665) 60%, transparent);
|
|
2009
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2010
|
+
background-color: color-mix(in oklab, var(--color-gray-900) 60%, transparent);
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
1987
2013
|
.bg-gray-900\/80 {
|
|
1988
2014
|
background-color: color-mix(in srgb, oklch(21% 0.034 264.665) 80%, transparent);
|
|
1989
2015
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1999,6 +2025,12 @@
|
|
|
1999
2025
|
.bg-gray-950 {
|
|
2000
2026
|
background-color: var(--color-gray-950);
|
|
2001
2027
|
}
|
|
2028
|
+
.bg-gray-950\/50 {
|
|
2029
|
+
background-color: color-mix(in srgb, oklch(13% 0.028 261.692) 50%, transparent);
|
|
2030
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2031
|
+
background-color: color-mix(in oklab, var(--color-gray-950) 50%, transparent);
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2002
2034
|
.bg-green-100 {
|
|
2003
2035
|
background-color: var(--color-green-100);
|
|
2004
2036
|
}
|
|
@@ -2826,6 +2858,9 @@
|
|
|
2826
2858
|
.opacity-50 {
|
|
2827
2859
|
opacity: 50%;
|
|
2828
2860
|
}
|
|
2861
|
+
.opacity-60 {
|
|
2862
|
+
opacity: 60%;
|
|
2863
|
+
}
|
|
2829
2864
|
.opacity-80 {
|
|
2830
2865
|
opacity: 80%;
|
|
2831
2866
|
}
|
|
@@ -30,4 +30,5 @@ export { default as UserFollowers } from './user/UserFollowers';
|
|
|
30
30
|
export { default as UserFollowing } from './user/UserFollowing';
|
|
31
31
|
export { default as UserInfo } from './user/UserInfo';
|
|
32
32
|
export { default as UserProfilePage } from './user/UserProfilePage';
|
|
33
|
+
export { default as KERatioBadge } from './user/KERatioBadge';
|
|
33
34
|
export { default as HiveContributionsLanding } from './landing-page/HiveContributionsLanding';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface KERatioBadgeProps {
|
|
2
|
+
username: string;
|
|
3
|
+
/** Hide the inline badge while loading (useful when sitting in a meta strip). */
|
|
4
|
+
hideWhileLoading?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Small clickable badge showing an account's KE ratio. Opens a details modal
|
|
9
|
+
* with the underlying numbers and a plain-language explanation of the metric.
|
|
10
|
+
*
|
|
11
|
+
* ke = (posting_rewards + curation_rewards) / effective_HP / 1000
|
|
12
|
+
*
|
|
13
|
+
* Meant to live inline next to other account meta (VP, HP) on the profile
|
|
14
|
+
* header, so it inherits a similar visual treatment.
|
|
15
|
+
*/
|
|
16
|
+
declare const KERatioBadge: ({ username, hideWhileLoading, className, }: KERatioBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default KERatioBadge;
|