@ivao/atmosphere-react 0.1.0-next.2 → 0.1.0-next.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 +22 -0
- package/dist/atmosphere-react.js +1 -1
- package/dist/atmosphere-react.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,3 +23,25 @@ Import our CSS by adding this line to your index file.
|
|
|
23
23
|
```typescript
|
|
24
24
|
import '@ivao/atmosphere-react/dist/styles/index.css';
|
|
25
25
|
```
|
|
26
|
+
|
|
27
|
+
## Contributing
|
|
28
|
+
|
|
29
|
+
### Testing Locally on another repo
|
|
30
|
+
|
|
31
|
+
You can use Storybook to see how the components look, however it's recommended to also test it on a more real environment as a new repo.
|
|
32
|
+
|
|
33
|
+
1. Run `pnpm dev:react:build` to build the library.
|
|
34
|
+
2. To use it on another repo, there are multiple ways, but one of the simplest ones is running
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pnpm dev:react:pack
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
This command creates a `.tgz` file on the root of the `/components/react` folder. Copy the name of that file.
|
|
41
|
+
|
|
42
|
+
3. To use it on your repo, add this line to your `package.json`. Replace the `.tgz` file name.
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
"@ivao/atmosphere-react": "file:../atmosphere/components/react/ivao-atmosphere-react-0.1.0-next.2.tgz",
|
|
46
|
+
|
|
47
|
+
```
|
package/dist/atmosphere-react.js
CHANGED
|
@@ -15700,7 +15700,7 @@ const Uh = ({
|
|
|
15700
15700
|
"div",
|
|
15701
15701
|
{
|
|
15702
15702
|
className: P(
|
|
15703
|
-
"rounded-md p-2 transition-all",
|
|
15703
|
+
"flex size-10 items-center justify-center rounded-md p-2 transition-all",
|
|
15704
15704
|
a ? "bg-atmos-700 text-atmos-50 group-hover:bg-atmos-600 group-hover:text-atmos-100 dark:bg-atmos-500 dark:text-atmos-50" : "bg-fuselage-100 text-fuselage-500 group-hover:bg-fuselage-200/50 group-hover:text-fuselage-600 dark:bg-fuselage-700 dark:text-fuselage-500 dark:group-hover:bg-fuselage-600 dark:group-hover:text-fuselage-100"
|
|
15705
15705
|
),
|
|
15706
15706
|
children: /* @__PURE__ */ c(n, {})
|