persian-date-kit 0.0.4 → 0.0.6
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 +35 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Production-ready Persian (Jalali) date pickers for React.
|
|
4
4
|
|
|
5
|
+
[](https://github.com/aliseyedabady/darvix-persian-date-kit)
|
|
6
|
+
|
|
7
|
+
**Repository:** [https://github.com/aliseyedabady/darvix-persian-date-kit](https://github.com/aliseyedabady/darvix-persian-date-kit)
|
|
8
|
+
|
|
5
9
|
## Key principles
|
|
6
10
|
- **Gregorian-only internally**: component values are always `Date | null` (Gregorian). Jalali is only for display/input.
|
|
7
11
|
- **Controlled components**: you own the state (`value` + `onChange`).
|
|
@@ -142,7 +146,38 @@ export function RHFExample() {
|
|
|
142
146
|
|
|
143
147
|
## Development (this repo)
|
|
144
148
|
|
|
149
|
+
Clone the repository:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
git clone https://github.com/aliseyedabady/darvix-persian-date-kit.git
|
|
153
|
+
cd darvix-persian-date-kit
|
|
154
|
+
npm install
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Run development server:
|
|
158
|
+
|
|
145
159
|
```bash
|
|
146
160
|
npm run dev
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Build for production:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
147
166
|
npm run build
|
|
148
167
|
```
|
|
168
|
+
|
|
169
|
+
## Contributing
|
|
170
|
+
|
|
171
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
172
|
+
|
|
173
|
+
## License
|
|
174
|
+
|
|
175
|
+
MIT © [Darvix](https://github.com/aliseyedabady/darvix-persian-date-kit)
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
<div dir="rtl" align="right">
|
|
180
|
+
|
|
181
|
+
**تقدیم به روح زیبای پدربزرگم** ❤️
|
|
182
|
+
|
|
183
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "persian-date-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Production-ready Persian (Jalali) date pickers for React with Gregorian-only values.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"type": "module",
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/darvix
|
|
22
|
+
"url": "https://github.com/aliseyedabady/darvix-persian-date-kit.git"
|
|
23
23
|
},
|
|
24
|
-
"homepage": "https://github.com/darvix
|
|
24
|
+
"homepage": "https://github.com/aliseyedabady/darvix-persian-date-kit#readme",
|
|
25
25
|
"bugs": {
|
|
26
|
-
"url": "https://github.com/darvix
|
|
26
|
+
"url": "https://github.com/aliseyedabady/darvix-persian-date-kit/issues"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=18"
|