@gardenfi/garden-book 0.0.33 → 0.0.35

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 CHANGED
@@ -0,0 +1,96 @@
1
+ # Garden Book
2
+
3
+ Garden Book is a UI component library designed specifically for [garden.finance](https://garden.finance). Built with React, Vite TailwindCSS and [Storybook](https://garden-book.onrender.com) for testing components, this library uses molecular design principles for components.
4
+
5
+ ## Why Garden Book?
6
+
7
+ Maintaining consistency and quality, Garden Book aims to offer a unified collection of pre-designed and customizable UI components. Our goal is to:
8
+
9
+ - **Enhance Productivity**: By providing ready-to-use components, developers can focus on building functionality rather than designing UI elements from scratch.
10
+ - **Ensure Consistency**: A shared library promotes a consistent look and feel across all projects within an organization.
11
+
12
+ ## Folder Structure
13
+
14
+ ```
15
+ garden-book/
16
+ ├── dist/ # Compiled files for distribution
17
+ ├── src/ # Source files
18
+ │ ├── components/ # Component files
19
+ │ │ ├── atoms/ # Atomic components (e.g., buttons, inputs)
20
+ │ │ ├── molecules/ # Composite components (e.g., form groups)
21
+ │ │ ├── organisms/ # Complex components (e.g., headers, footers)
22
+ │ ├── fonts/ # Font files
23
+ │ ├── index.ts # Exporting all components
24
+ │ ├── tailwind-entry.css # Tailwind css and font faces
25
+ │ ├── utils/ # Utility functions
26
+ ├── .gitignore # Git ignore file
27
+ ├── .yarnrc.yml # yarn registry configuration
28
+ ├── index.ts # Entry point for library
29
+ ├── package.json # NPM package configuration
30
+ ├── README.md # Project documentation
31
+ ├── tailwind.config.js # TailwindCSS configuration
32
+ ├── tsconfig.json # TypeScript configuration
33
+ ├── vite.config.ts # Vite configuration
34
+ └── yarn.lock # Yarn lock file for dependencies
35
+ ```
36
+
37
+ ## Installation Guide
38
+
39
+ To install and use Garden Book in your project:
40
+
41
+ 1. **Install the library**:
42
+
43
+ ```sh
44
+ yarn add @gardenfi/garden-book
45
+
46
+ or
47
+
48
+ npm i @gardenfi/garden-book
49
+ ```
50
+
51
+ 2. **Use the Library in Your Project**:
52
+ Import the desired components in your project files:
53
+
54
+ ```tsx
55
+ import { Button } from "@gardenfi/garden-book";
56
+ import "@gardenfi/gardenbook/styles.css";
57
+
58
+ <Button variant="primary" size="md">
59
+ Connect Wallet
60
+ </Button>;
61
+ ```
62
+
63
+ ### Development Setup
64
+
65
+ To set up a local development environment:
66
+
67
+ 1. **Install Dependencies**:
68
+
69
+ ```sh
70
+ yarn
71
+ ```
72
+
73
+ 2. **Run Storybook**: This will open a Storybook environment in your browser to test all components
74
+
75
+ ```sh
76
+ yarn storybook
77
+ ```
78
+
79
+ 3. **Build the Library**: For production
80
+ ```sh
81
+ yarn build
82
+ ```
83
+
84
+ ## Contribution
85
+
86
+ We welcome contributions to Garden Book! If you would like to contribute, please follow these guidelines:
87
+
88
+ 1. **Fork the Repository**
89
+ 2. **Create a Branch**
90
+ 3. **Commit Your Changes**
91
+ 4. **Push to the Branch**
92
+ 5. **Create a Pull Request**
93
+
94
+ ### License
95
+
96
+ Garden Book is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
 
4
4
  declare const questCardStyles: (props?: ({
@@ -8,6 +8,7 @@ type QuestCardProps = VariantProps<typeof questCardStyles> & {
8
8
  title: string;
9
9
  description: string;
10
10
  chipContent: string;
11
+ logo: ReactNode;
11
12
  };
12
13
  /**
13
14
  * QuestCard organism
@@ -8,6 +8,7 @@ declare const meta: {
8
8
  title: string;
9
9
  description: string;
10
10
  chipContent: string;
11
+ logo: import('react').ReactNode;
11
12
  }>;
12
13
  tags: string[];
13
14
  parameters: {