@moondreamsdev/dreamer-ui 1.5.1 → 1.5.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 +17 -2
- package/dist/init.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -4,6 +4,8 @@ A collection of beautifully designed, accessible React components built with Tai
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
+
Install the library:
|
8
|
+
|
7
9
|
```bash
|
8
10
|
npm install @moondreamsdev/dreamer-ui
|
9
11
|
# or
|
@@ -12,11 +14,24 @@ yarn add @moondreamsdev/dreamer-ui
|
|
12
14
|
pnpm add @moondreamsdev/dreamer-ui
|
13
15
|
```
|
14
16
|
|
17
|
+
Then run the init script:
|
18
|
+
|
19
|
+
```bash
|
20
|
+
./node_modules/@moondreamsdev/dreamer-ui/dist/init.js
|
21
|
+
```
|
22
|
+
|
23
|
+
And, finally, install the stylesheet in main CSS file (recommended):
|
24
|
+
|
25
|
+
```css
|
26
|
+
@import "@moondreamsdev/dreamer-ui/styles";
|
27
|
+
|
28
|
+
/* other styles */
|
29
|
+
```
|
30
|
+
|
15
31
|
## Usage
|
16
32
|
|
17
33
|
```tsx
|
18
34
|
import { Button, Input, Textarea } from 'dreamer-ui';
|
19
|
-
import 'dreamer-ui/styles';
|
20
35
|
|
21
36
|
function App() {
|
22
37
|
return (
|
@@ -32,7 +47,7 @@ function App() {
|
|
32
47
|
## Requirements
|
33
48
|
|
34
49
|
- React 18+
|
35
|
-
- Tailwind CSS
|
50
|
+
- Tailwind CSS 4+
|
36
51
|
|
37
52
|
## Components
|
38
53
|
|
package/dist/init.js
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
|
3
|
+
console.log("✅ Running dreamer-ui-init from @moondreamsdev/dreamer-ui");
|
4
|
+
|
5
|
+
// Your logic here
|
3
6
|
// Add your setup logic here, e.g., copying files, initializing configs, etc.
|
4
7
|
import { readFileSync, existsSync, mkdirSync, writeFileSync } from 'fs';
|
5
8
|
import { join, dirname } from 'path';
|