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.
Files changed (2) hide show
  1. package/README.md +42 -41
  2. 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
- or
29
+ ### Usage
28
30
 
29
- ```bash
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
- ### Usage
36
+ const App = () => <Button variant="primary">Click Me</Button>;
36
37
 
37
- 1. Import a component in your React project:
38
+ export default App;
39
+ ```
38
40
 
39
- ```jsx
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
- const App = () => <Button variant="primary">Click Me</Button>;
43
+ ```javascript
44
+ // For JavaScript/TypeScript files
45
+ import 'buildgrid-ui/theme';
46
+ ```
43
47
 
44
- export default App;
45
- ```
48
+ If you are using a CSS file for global imports, you can add:
46
49
 
47
- 2. Ensure TailwindCSS is configured in your project. Add the following imports to your `styles.css` file (or equivalent):
50
+ ```css
51
+ /* For CSS files */
52
+ @import 'buildgrid-ui/theme';
53
+ ```
48
54
 
49
- ```css
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
- 3. Include the `tailwind.config.js` content paths for buildgrid-ui:
56
- ```javascript
57
- module.exports = {
58
- content: [
59
- "./src/**/*.{js,ts,jsx,tsx}",
60
- "./node_modules/buildgrid-ui/**/*.{js,ts,jsx,tsx}",
61
- ],
62
- theme: {
63
- extend: {},
64
- },
65
- plugins: [],
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. Push changes to the designated pre-release branch (e.g., `alpha`):
112
- ```bash
113
- git checkout -b alpha
114
- git push origin alpha
115
- ```
116
- 2. Pre-release versions (e.g., `1.0.0-alpha.1`) will be automatically created.
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. Fork the repository.
125
- 2. Create a new branch for your feature or bugfix.
126
- 3. Submit a pull request with a detailed description of your changes.
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.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
- "./buildgrid-ui.css": "./dist/buildgrid-ui.css",
23
+ "./theme": "./dist/buildgrid-ui.css",
24
24
  "./components/*": {
25
25
  "types": "./dist/components/*/index.d.ts",
26
26
  "import": "./dist/components/*/index.js",