jalaali-date-time-picker 1.0.2 → 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.
- package/README.md +19 -16
- package/package.json +15 -18
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
|
-
- [`
|
|
24
|
-
- [`
|
|
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,
|
|
36
|
+
"./node_modules/jalaali-date-time-picker/dist/**/*.{js,mjs}", // required
|
|
38
37
|
],
|
|
39
38
|
}
|
|
40
39
|
```
|
|
41
40
|
|
|
42
|
-
|
|
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
|
|
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": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jalaali",
|
|
@@ -17,12 +17,11 @@
|
|
|
17
17
|
"react",
|
|
18
18
|
"shamsi",
|
|
19
19
|
"tailwind",
|
|
20
|
-
"shadcn"
|
|
21
|
-
"lucide"
|
|
20
|
+
"shadcn"
|
|
22
21
|
],
|
|
23
22
|
"repository": {
|
|
24
23
|
"type": "git",
|
|
25
|
-
"url": "https://github.com/Alijeyrad/jalaali-date-time-picker"
|
|
24
|
+
"url": "git+https://github.com/Alijeyrad/jalaali-date-time-picker.git"
|
|
26
25
|
},
|
|
27
26
|
"author": {
|
|
28
27
|
"name": "Ali Julaee Rad",
|
|
@@ -37,7 +36,9 @@
|
|
|
37
36
|
"main": "dist/index.cjs",
|
|
38
37
|
"types": "dist/index.d.ts",
|
|
39
38
|
"sideEffects": false,
|
|
40
|
-
"files": [
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
41
42
|
"scripts": {
|
|
42
43
|
"dev": "next dev --turbopack",
|
|
43
44
|
"build:site": "next build",
|
|
@@ -53,17 +54,7 @@
|
|
|
53
54
|
"@radix-ui/react-select": "^2.2.5",
|
|
54
55
|
"@radix-ui/react-separator": "^1.1.7",
|
|
55
56
|
"@radix-ui/react-slot": "^1.2.3",
|
|
56
|
-
"
|
|
57
|
-
"clsx": "^2.1.1",
|
|
58
|
-
"jalaali-js": "^1.2.8",
|
|
59
|
-
"lucide-react": ">=0.513",
|
|
60
|
-
"next": ">=14",
|
|
61
|
-
"next-themes": "^0.4.6",
|
|
62
|
-
"react": ">=18",
|
|
63
|
-
"react-dom": ">=18",
|
|
64
|
-
"react-hook-form": "^7.57.0",
|
|
65
|
-
"react-markdown": "^10.1.0",
|
|
66
|
-
"tailwind-merge": "^3.3.0"
|
|
57
|
+
"jalaali-js": "^1.2.8"
|
|
67
58
|
},
|
|
68
59
|
"devDependencies": {
|
|
69
60
|
"@biomejs/biome": "1.9.4",
|
|
@@ -72,14 +63,20 @@
|
|
|
72
63
|
"@types/node": "^20",
|
|
73
64
|
"@types/react": "^19",
|
|
74
65
|
"@types/react-dom": "^19",
|
|
66
|
+
"class-variance-authority": "^0.7.1",
|
|
67
|
+
"lucide-react": "^0.468.0",
|
|
68
|
+
"next": ">=14",
|
|
69
|
+
"next-themes": "^0.4.6",
|
|
70
|
+
"react": ">=18",
|
|
71
|
+
"react-dom": ">=18",
|
|
72
|
+
"react-hook-form": "^7.57.0",
|
|
73
|
+
"react-markdown": "^10.1.0",
|
|
75
74
|
"tailwindcss": "^4",
|
|
76
75
|
"tsup": "^8.5.0",
|
|
77
76
|
"tw-animate-css": "^1.3.4",
|
|
78
77
|
"typescript": "^5"
|
|
79
78
|
},
|
|
80
79
|
"peerDependencies": {
|
|
81
|
-
"lucide-react": ">=0.513",
|
|
82
|
-
"next": ">=14",
|
|
83
80
|
"react": ">=18",
|
|
84
81
|
"react-dom": ">=18",
|
|
85
82
|
"tailwindcss": ">=3"
|