@ballistix.digital/react-components 0.3.0 → 0.3.3

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
@@ -1,46 +1,71 @@
1
- # Getting Started with Create React App
1
+ # BallistiX React Component Library Documentation
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ ## 1. Introduction
4
4
 
5
- ## Available Scripts
5
+ A repo as library to easily build, test and internally use standardized React.js components across multiple projects.
6
6
 
7
- In the project directory, you can run:
7
+ ### 1.2 Features
8
8
 
9
- ### `npm start`
9
+ - Fully responsive components out of the box.
10
+ - Ability to fully customize a component's styling.
10
11
 
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
12
+ ## 2. Usage
13
13
 
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
14
+ This library assumes you have worked with React.js before. If that is not the case, it is recommended you go trough [React.js' Getting Started Course](https://reactjs.org/docs/getting-started.html) first. This project is written in TypeScript. If you are not familiar with TypeScript, [learn it](https://www.typescriptlang.org/docs/). It wil improve your life dramatically.
16
15
 
17
- ### `npm test`
16
+ ### 2.1 Installation
18
17
 
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
18
+ In order to start using the BallistiX Component Library in your project, you will need to add it as a dependency to your project. To add the library to your project, run:
21
19
 
22
- ### `npm run build`
20
+ ```
21
+ yarn add @ballistix/react-components
22
+ ```
23
23
 
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
24
+ That's it. You're all set and done. To import components you can do so using following import statement:
26
25
 
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
26
+ ```
27
+ import ButtonElement from '@ballistix/react-components/elements/Button';
28
+ ```
29
29
 
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
30
+ For a fully listed overview of available components and their props and states, please visit https://layeredprints.github.io/react-components.
31
31
 
32
- ### `npm run eject`
32
+ ## 3. Contributing
33
33
 
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
34
+ This library assumes you have worked with React.js before. If that is not the case, it is recommended you go trough [React.js' Getting Started Course](https://reactjs.org/docs/getting-started.html) first. This project is written in TypeScript. If you are not familiar with TypeScript, [learn it](https://www.typescriptlang.org/docs/). It wil improve your life dramatically.
35
35
 
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
36
+ ### 3.1 Requirements
37
37
 
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
38
+ To run this project you will need to have some tools and dependencies installed:
39
39
 
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
40
+ - [Git](https://git-scm.com/) - For cloning this project as a template to your machine, and use as your own.
41
+ - [Node.js](https://nodejs.org/en/) - For running Next.js and tools in this project.
42
+ - [Node Package Manager](https://www.npmjs.com/) (NPM) / [Yarn](https://yarnpkg.com/) - For installing dependencies.
41
43
 
42
- ## Learn More
44
+ ### 3.2 Quickstart
43
45
 
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
46
+ To run the project you must first clone it as a template onto your machine. You can do this by navigating in a terminal to a location you are comfortable downloading the project in, and running:
45
47
 
46
- To learn React, check out the [React documentation](https://reactjs.org/).
48
+ ```
49
+ git clone https://github.com/layeredprints/react-components/
50
+ ```
51
+
52
+ After that, you must navigate into the project's folder and install the dependencies with Node Package Manager or Yarn.
53
+
54
+ ```
55
+ cd react-components && yarn
56
+ ```
57
+
58
+ Once all dependencies are installed you should be able to start up a development server.
59
+
60
+ ```
61
+ yarn storybook
62
+ ```
63
+
64
+ Now visit `http://localhost:6006/` to open the Storybook. Congratulations, you are now ready to start building a components!
65
+
66
+ ## 4. Resources
67
+
68
+ - [React](https://reactjs.org/) - A JavaScript library for building user interfaces.
69
+ - [Tailwind CSS](https://tailwindcss.com/) - A utility-first CSS framework packed with standardized classes for easy styling.
70
+ - [Tailwind UI](https://tailwindui.com/) - A library with pre-build and styled responsive components.
71
+ - [TanStack](https://tanstack.com/) - High-quality open-source software for web developers.