hive-react-kit 0.4.5 → 0.4.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/README.md +47 -11
- package/dist/components/landing-page/HiveContributionsLanding.d.ts +8 -0
- package/dist/index.cjs.js +68 -68
- package/dist/index.esm.js +1587 -1516
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ import { HiveToolbar } from 'hive-react-kit';
|
|
|
118
118
|
|
|
119
119
|
### Landing Component
|
|
120
120
|
|
|
121
|
-
- **HiveContributionsLanding** – Configurable landing
|
|
121
|
+
- **HiveContributionsLanding** – Configurable full-page landing for Hive contributions: vision/mission, beliefs, app status lists, contributions grid, supporters & partners section, optional expenses breakdown, and contact footer.
|
|
122
122
|
|
|
123
123
|
#### HiveContributionsLanding Usage
|
|
124
124
|
|
|
@@ -128,13 +128,23 @@ import { HiveContributionsLanding } from 'hive-react-kit';
|
|
|
128
128
|
// Default dark theme
|
|
129
129
|
<HiveContributionsLanding />
|
|
130
130
|
|
|
131
|
-
// Custom theme
|
|
131
|
+
// Custom theme with all features enabled
|
|
132
132
|
<HiveContributionsLanding
|
|
133
133
|
backgroundColor="#020617"
|
|
134
134
|
textColor="#e5e7eb"
|
|
135
135
|
cardBackgroundColor="rgba(15,23,42,0.9)"
|
|
136
136
|
isDividerShow={true}
|
|
137
137
|
dividerColor="rgba(148,163,184,0.4)"
|
|
138
|
+
isExpensesCTA={true}
|
|
139
|
+
extraSupporters={[
|
|
140
|
+
{
|
|
141
|
+
title: "Inspired by @arcange",
|
|
142
|
+
description: "Inspired by Arcange's Engage app",
|
|
143
|
+
avatar: "https://images.ecency.com/webp/u/arcange/avatar/medium",
|
|
144
|
+
link: "https://peakd.com/@arcange",
|
|
145
|
+
buttonText: "View",
|
|
146
|
+
},
|
|
147
|
+
]}
|
|
138
148
|
/>
|
|
139
149
|
```
|
|
140
150
|
|
|
@@ -142,13 +152,27 @@ import { HiveContributionsLanding } from 'hive-react-kit';
|
|
|
142
152
|
|
|
143
153
|
| Prop | Type | Default | Description |
|
|
144
154
|
|------|------|---------|-------------|
|
|
145
|
-
| `backgroundColor` | `string` | `"#020617"` | Page background color |
|
|
146
|
-
| `textColor` | `string` | `"#e5e7eb"` | Main text color |
|
|
147
|
-
| `cardBackgroundColor` | `string` | `"rgba(15,23,42,0.85)"` | Background for all cards |
|
|
148
|
-
| `isDividerShow` | `boolean` | `true` | Show/hide
|
|
149
|
-
| `dividerColor` | `string` | `"rgba(148,163,184,0.4)"` | Divider line color |
|
|
155
|
+
| `backgroundColor` | `string` | `"#020617"` | Page background color. Also applied to the Expenses view when toggled. |
|
|
156
|
+
| `textColor` | `string` | `"#e5e7eb"` | Main text color. |
|
|
157
|
+
| `cardBackgroundColor` | `string` | `"rgba(15,23,42,0.85)"` | Background for all cards. |
|
|
158
|
+
| `isDividerShow` | `boolean` | `true` | Show/hide horizontal dividers between sections. |
|
|
159
|
+
| `dividerColor` | `string` | `"rgba(148,163,184,0.4)"` | Divider line color. |
|
|
160
|
+
| `isExpensesCTA` | `boolean` | `false` | Shows an Expenses CTA card that opens a full transparent expense breakdown view. |
|
|
161
|
+
| `extraSupporters` | `SupporterItem[]` | `[]` | Additional supporter cards appended after the 4 built-in defaults. |
|
|
162
|
+
|
|
163
|
+
#### SupporterItem type
|
|
164
|
+
|
|
165
|
+
```ts
|
|
166
|
+
interface SupporterItem {
|
|
167
|
+
title: string; // Card heading
|
|
168
|
+
description: string; // Short subtitle
|
|
169
|
+
avatar: string; // Image URL
|
|
170
|
+
link: string; // Button href
|
|
171
|
+
buttonText: string; // Button label (e.g. "View", "Visit")
|
|
172
|
+
}
|
|
173
|
+
```
|
|
150
174
|
|
|
151
|
-
See [docs/HiveContributionsLanding.md](docs/HiveContributionsLanding.md) for full documentation.
|
|
175
|
+
See [docs/HiveContributionsLanding.md](docs/HiveContributionsLanding.md) for full documentation including all sections, Expenses view details, and styling guidance.
|
|
152
176
|
|
|
153
177
|
#### Toolbar Items
|
|
154
178
|
|
|
@@ -195,10 +219,22 @@ npm install react react-dom @tanstack/react-query @hiveio/dhive zustand
|
|
|
195
219
|
|
|
196
220
|
## Styling
|
|
197
221
|
|
|
198
|
-
This package
|
|
222
|
+
This package ships a pre-compiled CSS file. Import it once in your app entry point:
|
|
199
223
|
|
|
200
|
-
```
|
|
201
|
-
|
|
224
|
+
```tsx
|
|
225
|
+
import 'hive-react-kit/build.css';
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**Tailwind users** — add the package to your `content` array instead so your Tailwind build includes the classes:
|
|
229
|
+
|
|
230
|
+
```js
|
|
231
|
+
// tailwind.config.js
|
|
232
|
+
export default {
|
|
233
|
+
content: [
|
|
234
|
+
'./src/**/*.{ts,tsx}',
|
|
235
|
+
'./node_modules/hive-react-kit/dist/**/*.js',
|
|
236
|
+
],
|
|
237
|
+
};
|
|
202
238
|
```
|
|
203
239
|
|
|
204
240
|
## License
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
interface SupporterItem {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
avatar: string;
|
|
6
|
+
link: string;
|
|
7
|
+
buttonText: string;
|
|
8
|
+
}
|
|
2
9
|
interface HiveContributionsLandingProps {
|
|
3
10
|
backgroundColor?: string;
|
|
4
11
|
textColor?: string;
|
|
@@ -6,6 +13,7 @@ interface HiveContributionsLandingProps {
|
|
|
6
13
|
isDividerShow?: boolean;
|
|
7
14
|
dividerColor?: string;
|
|
8
15
|
isExpensesCTA?: boolean;
|
|
16
|
+
extraSupporters?: SupporterItem[];
|
|
9
17
|
}
|
|
10
18
|
declare const HiveContributionsLanding: React.FC<HiveContributionsLandingProps>;
|
|
11
19
|
export default HiveContributionsLanding;
|