meticulous-ui 1.0.2 → 1.0.4

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 +21 -8
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -6,50 +6,62 @@ A lightweight, modern React component library designed for elegance and precisio
6
6
 
7
7
  ## 🚀 Installation
8
8
 
9
- ```jsx
9
+ ```
10
10
  npm install meticulous-ui
11
+ ```
12
+
11
13
  # or
14
+
15
+ ```
12
16
  yarn add meticulous-ui
17
+ ```
13
18
 
14
19
  ## 🧩 Usage
15
20
 
16
- import React from "react";
17
- import { Pagination } from "meticulous-ui";
21
+ ```jsx
22
+
23
+ import { useState } from "react";
24
+ import Pagination from "meticulous-ui/components/Pagination";
18
25
 
19
26
  function App() {
27
+ const [pageNumber, setPageNumber] = useState(1);
28
+
20
29
  return (
21
30
  <div>
22
31
  <h2>Example with Pagination</h2>
23
- <Pagination totalPages={10} currentPage={1} />
32
+ <Pagination totalPages={10} pageNumber={pageNumber} setPageNumber={setPageNumber} />
24
33
  </div>
25
34
  );
26
35
  }
27
36
 
28
37
  export default App;
38
+
29
39
  ```
30
40
 
31
41
  ## đŸ“Ļ Components
32
- ```
42
+
33
43
  | Component | Description |
34
44
  | -------------- | ------------------------------------- |
35
45
  | `Pagination` | Fully responsive pagination component |
36
46
  | `ChevronLeft` | Left navigation icon |
37
47
  | `ChevronRight` | Right navigation icon |
38
- ```
39
48
 
40
49
  ## 🌱 Features
41
50
 
42
- ```
43
51
  âš›ī¸ Built with React + Styled Components
52
+
44
53
  💨 Zero external CSS dependencies
54
+
45
55
  🧱 Easy to extend and customize
56
+
46
57
  đŸĒļ Small bundle size
58
+
47
59
  đŸ“Ļ ESM + CJS support out of the box
48
- ```
49
60
 
50
61
  ## đŸ› ī¸ Build Setup (for contributors)
51
62
 
52
63
  ```
64
+
53
65
  # install dependencies
54
66
  npm install
55
67
 
@@ -58,4 +70,5 @@ npm run dev
58
70
 
59
71
  # build for production (dist/)
60
72
  npm run build
73
+
61
74
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "files": [
@@ -20,8 +20,10 @@
20
20
  "meticulous-ui"
21
21
  ],
22
22
  "scripts": {
23
+ "dev": "vite",
23
24
  "build": "vite build",
24
- "format": "npx prettier --write ."
25
+ "format": "npx prettier --write .",
26
+ "publish:latest": "npm run build && npm publish --access public"
25
27
  },
26
28
  "dependencies": {
27
29
  "@vitejs/plugin-react": "^5.0.4",