buildgrid-ui 1.15.15 → 1.15.16
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 +42 -41
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -22,49 +22,50 @@ To install the library, run:
|
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
npm install buildgrid-ui
|
|
25
|
+
# or
|
|
26
|
+
yarn add buildgrid-ui
|
|
25
27
|
```
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
### Usage
|
|
28
30
|
|
|
29
|
-
|
|
30
|
-
yarn add buildgrid-ui
|
|
31
|
-
```
|
|
31
|
+
1. **Import Components**: Import components directly into your React project:
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
```jsx
|
|
34
|
+
import { Button } from "buildgrid-ui";
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
const App = () => <Button variant="primary">Click Me</Button>;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
export default App;
|
|
39
|
+
```
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
import { Button } from "buildgrid-ui";
|
|
41
|
+
2. **Import Theme Styles**: Import the library's theme styles. This should be done once in your application's entry point (e.g., `src/main.tsx`, `src/index.tsx`, or `pages/_app.tsx` for Next.js):
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
```javascript
|
|
44
|
+
// For JavaScript/TypeScript files
|
|
45
|
+
import 'buildgrid-ui/theme';
|
|
46
|
+
```
|
|
43
47
|
|
|
44
|
-
|
|
45
|
-
```
|
|
48
|
+
If you are using a CSS file for global imports, you can add:
|
|
46
49
|
|
|
47
|
-
|
|
50
|
+
```css
|
|
51
|
+
/* For CSS files */
|
|
52
|
+
@import 'buildgrid-ui/theme';
|
|
53
|
+
```
|
|
48
54
|
|
|
49
|
-
|
|
50
|
-
@tailwind base;
|
|
51
|
-
@tailwind components;
|
|
52
|
-
@tailwind utilities;
|
|
53
|
-
```
|
|
55
|
+
3. **Configure TailwindCSS (for v3)**: Ensure TailwindCSS is configured in your project. Add the following content paths to your `tailwind.config.js` to include `buildgrid-ui`'s classes:
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
```
|
|
57
|
+
```javascript
|
|
58
|
+
module.exports = {
|
|
59
|
+
content: [
|
|
60
|
+
"./src/**/*.{js,ts,jsx,tsx}",
|
|
61
|
+
"./node_modules/buildgrid-ui/**/*.{js,ts,jsx,tsx}",
|
|
62
|
+
],
|
|
63
|
+
theme: {
|
|
64
|
+
extend: {},
|
|
65
|
+
},
|
|
66
|
+
plugins: [],
|
|
67
|
+
};
|
|
68
|
+
```
|
|
68
69
|
|
|
69
70
|
---
|
|
70
71
|
|
|
@@ -108,12 +109,12 @@ This project uses [semantic-release](https://semantic-release.gitbook.io/) for a
|
|
|
108
109
|
|
|
109
110
|
### Steps to Create a Pre-release
|
|
110
111
|
|
|
111
|
-
1.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
2.
|
|
112
|
+
1. Push changes to the designated pre-release branch (e.g., `alpha`):
|
|
113
|
+
```bash
|
|
114
|
+
git checkout -b alpha
|
|
115
|
+
git push origin alpha
|
|
116
|
+
```
|
|
117
|
+
2. Pre-release versions (e.g., `1.0.0-alpha.1`) will be automatically created.
|
|
117
118
|
|
|
118
119
|
---
|
|
119
120
|
|
|
@@ -121,12 +122,12 @@ This project uses [semantic-release](https://semantic-release.gitbook.io/) for a
|
|
|
121
122
|
|
|
122
123
|
Contributions are welcome! To contribute:
|
|
123
124
|
|
|
124
|
-
1.
|
|
125
|
-
2.
|
|
126
|
-
3.
|
|
125
|
+
1. Fork the repository.
|
|
126
|
+
2. Create a new branch for your feature or bugfix.
|
|
127
|
+
3. Submit a pull request with a detailed description of your changes.
|
|
127
128
|
|
|
128
129
|
---
|
|
129
130
|
|
|
130
131
|
## License
|
|
131
132
|
|
|
132
|
-
This project is licensed under the [MIT License](LICENSE).
|
|
133
|
+
This project is licensed under the [MIT License](LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buildgrid-ui",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.16",
|
|
4
4
|
"homepage": "http://adrianomaringolo.github.io/buildgrid-ui",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"import": "./dist/buildgrid-ui.es.js",
|
|
21
21
|
"require": "./dist/buildgrid-ui.umd.js"
|
|
22
22
|
},
|
|
23
|
-
"./
|
|
23
|
+
"./theme": "./dist/buildgrid-ui.css",
|
|
24
24
|
"./components/*": {
|
|
25
25
|
"types": "./dist/components/*/index.d.ts",
|
|
26
26
|
"import": "./dist/components/*/index.js",
|