@moondreamsdev/dreamer-ui 1.5.0 → 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 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 3+
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moondreamsdev/dreamer-ui",
3
- "version": "1.5.0",
3
+ "version": "1.5.3",
4
4
  "type": "module",
5
5
  "description": "A collection of Tailwind CSS components for React",
6
6
  "main": "dist/index.js",
@@ -44,12 +44,11 @@
44
44
  "build:setup": "cp scripts/init.lib.js dist/init.js && node scripts/add-theme.lib.js",
45
45
  "lint": "eslint .",
46
46
  "preview": "vite preview",
47
- "postinstall": "node dist/init.js",
48
47
  "prepublishOnly": "npm run build",
49
48
  "publish": "npm publish --access public"
50
49
  },
51
50
  "bin": {
52
- "@moondreamsdev/dreamer-ui-init": "dist/init.js"
51
+ "mdd-dreamer-ui-init": "./dist/init.js"
53
52
  },
54
53
  "peerDependencies": {
55
54
  "react": ">=18.0.0",