jalaali-date-time-picker 2.0.0 → 2.0.1

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 +19 -16
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -20,34 +20,25 @@ npm install jalaali-date-time-picker
20
20
 
21
21
  Ensure the following packages are installed in your project:
22
22
 
23
- - [`next`](https://nextjs.org/)
24
- - [`shadcn`](https://ui.shadcn.com/docs)
25
- - [`tailwindcss`](https://tailwindcss.com/)
26
- - [`lucide-react`](https://lucide.dev/guide/packages/lucide-react)
23
+ - [`react`](https://react.dev/) (version 18 or higher)
24
+ - [`react-dom`](https://react.dev/) (version 18 or higher)
25
+ - [`tailwindcss`](https://tailwindcss.com/) (version 3 or higher)
27
26
 
28
27
  ## Tailwind Configuration
29
28
 
30
- You **must** include this path in your `tailwind.config.js`:
29
+ You **must** include this path in your `tailwind.config.js` (or `tailwind.config.ts`):
31
30
 
32
31
  ```js
33
32
  module.exports = {
34
33
  content: [
35
34
  "./app/**/*.{js,ts,jsx,tsx}",
36
35
  "./components/**/*.{js,ts,jsx,tsx}",
37
- "./node_modules/jalaali-date-time-picker/**/*.{js,ts,jsx,tsx}", // required
36
+ "./node_modules/jalaali-date-time-picker/dist/**/*.{js,mjs}", // required
38
37
  ],
39
38
  }
40
39
  ```
41
40
 
42
- Or in your `app/globals.css` (or similar global style file), add:
43
-
44
- ```css
45
- @tailwind base;
46
- @tailwind components;
47
- @tailwind utilities;
48
-
49
- @source "../../node_modules/jalaali-date-time-picker/**/*.{js,ts,jsx,tsx}";
50
- ```
41
+ This ensures Tailwind can process the component styles properly.
51
42
 
52
43
  ## RTL Support
53
44
 
@@ -106,9 +97,21 @@ See the full interactive demo [here](https://alijeyrad.github.io/jalaali-date-ti
106
97
 
107
98
  ---
108
99
 
100
+ ## Dependencies
101
+
102
+ This package uses the following runtime dependencies:
103
+
104
+ - **[jalaali-js](https://www.npmjs.com/package/jalaali-js)** - Jalali calendar conversion utilities
105
+ - **[@radix-ui](https://www.radix-ui.com/)** components - Headless UI primitives (dialog, select, separator, slot)
106
+
107
+ All icons are custom SVG implementations (no external icon library required).
108
+
109
109
  ## Goal
110
110
 
111
- The long-term goal of this package is to make it as lightweight and dependency-free as possible, reducing external reliance without compromising functionality or designI'm starting with icon rendering as the first optimization.
111
+ The long-term goal of this package is to make it as lightweight and dependency-free as possible, reducing external reliance without compromising functionality or design.
112
+
113
+ **Recent optimizations:**
114
+ - ✅ **Icon rendering** - Replaced `lucide-react` with custom SVG icons, eliminating the dependency entirely
112
115
 
113
116
  ---
114
117
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jalaali-date-time-picker",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "jalaali",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "repository": {
23
23
  "type": "git",
24
- "url": "https://github.com/Alijeyrad/jalaali-date-time-picker"
24
+ "url": "git+https://github.com/Alijeyrad/jalaali-date-time-picker.git"
25
25
  },
26
26
  "author": {
27
27
  "name": "Ali Julaee Rad",