react-native-lich-am 1.0.0

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 (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +248 -0
  3. package/core/index.d.ts +1 -0
  4. package/core/index.js +1 -0
  5. package/core/package.json +5 -0
  6. package/dataset/2024.d.ts +1 -0
  7. package/dataset/2024.js +1 -0
  8. package/dataset/2025.d.ts +1 -0
  9. package/dataset/2025.js +1 -0
  10. package/dataset/2026.d.ts +1 -0
  11. package/dataset/2026.js +1 -0
  12. package/dataset/2027.d.ts +1 -0
  13. package/dataset/2027.js +1 -0
  14. package/dataset/2028.d.ts +1 -0
  15. package/dataset/2028.js +1 -0
  16. package/dataset/index.d.ts +1 -0
  17. package/dataset/index.js +1 -0
  18. package/dataset/package.json +5 -0
  19. package/lib/core/astro.d.ts +43 -0
  20. package/lib/core/astro.js +203 -0
  21. package/lib/core/canchi.d.ts +47 -0
  22. package/lib/core/canchi.js +78 -0
  23. package/lib/core/constants.d.ts +54 -0
  24. package/lib/core/constants.js +141 -0
  25. package/lib/core/day.d.ts +30 -0
  26. package/lib/core/day.js +103 -0
  27. package/lib/core/format.d.ts +26 -0
  28. package/lib/core/format.js +60 -0
  29. package/lib/core/huong.d.ts +26 -0
  30. package/lib/core/huong.js +44 -0
  31. package/lib/core/index.d.ts +16 -0
  32. package/lib/core/index.js +32 -0
  33. package/lib/core/lunar.d.ts +39 -0
  34. package/lib/core/lunar.js +130 -0
  35. package/lib/core/tietkhi.d.ts +40 -0
  36. package/lib/core/tietkhi.js +115 -0
  37. package/lib/core/truc.d.ts +47 -0
  38. package/lib/core/truc.js +70 -0
  39. package/lib/core/types.d.ts +66 -0
  40. package/lib/core/types.js +3 -0
  41. package/lib/dataset/2024.d.ts +30 -0
  42. package/lib/dataset/2024.js +69 -0
  43. package/lib/dataset/2025.d.ts +30 -0
  44. package/lib/dataset/2025.js +69 -0
  45. package/lib/dataset/2026.d.ts +30 -0
  46. package/lib/dataset/2026.js +69 -0
  47. package/lib/dataset/2027.d.ts +30 -0
  48. package/lib/dataset/2027.js +69 -0
  49. package/lib/dataset/2028.d.ts +30 -0
  50. package/lib/dataset/2028.js +69 -0
  51. package/lib/dataset/data/days-2024.json +1 -0
  52. package/lib/dataset/data/days-2025.json +1 -0
  53. package/lib/dataset/data/days-2026.json +1 -0
  54. package/lib/dataset/data/days-2027.json +1 -0
  55. package/lib/dataset/data/days-2028.json +1 -0
  56. package/lib/dataset/data/dict.json +1 -0
  57. package/lib/dataset/data/gio-table.json +1 -0
  58. package/lib/dataset/decode.d.ts +225 -0
  59. package/lib/dataset/decode.js +285 -0
  60. package/lib/dataset/index.d.ts +37 -0
  61. package/lib/dataset/index.js +87 -0
  62. package/lib/index.d.ts +21 -0
  63. package/lib/index.js +37 -0
  64. package/lib/ui/LunarCalendar.d.ts +58 -0
  65. package/lib/ui/LunarCalendar.js +311 -0
  66. package/lib/ui/LunarDayDetail.d.ts +32 -0
  67. package/lib/ui/LunarDayDetail.js +221 -0
  68. package/lib/ui/index.d.ts +9 -0
  69. package/lib/ui/index.js +18 -0
  70. package/lib/ui/theme.d.ts +46 -0
  71. package/lib/ui/theme.js +60 -0
  72. package/package.json +431 -0
  73. package/ui/index.d.ts +1 -0
  74. package/ui/index.js +1 -0
  75. package/ui/package.json +5 -0
package/package.json ADDED
@@ -0,0 +1,431 @@
1
+ {
2
+ "name": "react-native-lich-am",
3
+ "version": "1.0.0",
4
+ "description": "Thư viện lịch âm (âm lịch Việt Nam) cho React Native & JavaScript — chuyển đổi dương/âm, can chi, tiết khí, trực, giờ hoàng đạo, nạp âm, ngày tốt xấu. Kèm component <LunarCalendar/> sẵn dùng.",
5
+ "keywords": [
6
+ "react-native",
7
+ "lich-am",
8
+ "am-lich",
9
+ "lunar",
10
+ "lunar-calendar",
11
+ "vietnamese-lunar",
12
+ "can-chi",
13
+ "tiet-khi",
14
+ "gio-hoang-dao",
15
+ "lich-viet",
16
+ "expo",
17
+ "typescript"
18
+ ],
19
+ "license": "MIT",
20
+ "author": "Nguyen Hoa <ngh10.tt@gmail.com> (https://github.com/sep21th03)",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/sep21th03/react-native-lich-am.git"
24
+ },
25
+ "homepage": "https://github.com/sep21th03/react-native-lich-am#readme",
26
+ "bugs": {
27
+ "url": "https://github.com/sep21th03/react-native-lich-am/issues"
28
+ },
29
+ "main": "lib/index.js",
30
+ "types": "lib/index.d.ts",
31
+ "react-native": "lib/index.js",
32
+ "sideEffects": false,
33
+ "files": [
34
+ "lib",
35
+ "core",
36
+ "dataset",
37
+ "ui",
38
+ "README.md",
39
+ "LICENSE"
40
+ ],
41
+ "exports": {
42
+ ".": {
43
+ "types": "./lib/index.d.ts",
44
+ "default": "./lib/index.js"
45
+ },
46
+ "./core": {
47
+ "types": "./lib/core/index.d.ts",
48
+ "default": "./lib/core/index.js"
49
+ },
50
+ "./dataset": {
51
+ "types": "./lib/dataset/index.d.ts",
52
+ "default": "./lib/dataset/index.js"
53
+ },
54
+ "./dataset/*": {
55
+ "types": "./lib/dataset/*.d.ts",
56
+ "default": "./lib/dataset/*.js"
57
+ },
58
+ "./ui": {
59
+ "types": "./lib/ui/index.d.ts",
60
+ "default": "./lib/ui/index.js"
61
+ },
62
+ "./package.json": "./package.json"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ },
67
+ "scripts": {
68
+ "smoke": "node scripts/smoke.mjs",
69
+ "build": "node scripts/build.mjs",
70
+ "build:dataset": "node scripts/build-dataset.mjs",
71
+ "verify": "node scripts/verify.mjs",
72
+ "build:gio-table": "node scripts/build-gio-table.mjs"
73
+ },
74
+ "peerDependencies": {
75
+ "react": ">=17.0.0",
76
+ "react-native": ">=0.64.0"
77
+ },
78
+ "peerDependenciesMeta": {
79
+ "react": {
80
+ "optional": true
81
+ },
82
+ "react-native": {
83
+ "optional": true
84
+ }
85
+ },
86
+ "devDependencies": {
87
+ "@types/react": "^18.2.79",
88
+ "react": "^18.2.0",
89
+ "react-native": "^0.74.5",
90
+ "typescript": "^5.4.5"
91
+ },
92
+ "engines": {
93
+ "node": ">=14"
94
+ },
95
+ "directories": {
96
+ "lib": "lib"
97
+ },
98
+ "dependencies": {
99
+ "abort-controller": "^3.0.0",
100
+ "accepts": "^1.3.8",
101
+ "acorn": "^8.18.0",
102
+ "anser": "^1.4.10",
103
+ "ansi-fragments": "^0.2.1",
104
+ "ansi-regex": "^5.0.1",
105
+ "ansi-styles": "^4.3.0",
106
+ "anymatch": "^3.1.3",
107
+ "appdirsjs": "^1.2.8",
108
+ "argparse": "^1.0.10",
109
+ "asap": "^2.0.6",
110
+ "ast-types": "^0.15.2",
111
+ "astral-regex": "^1.0.0",
112
+ "async-limiter": "^1.0.1",
113
+ "babel-core": "^7.0.0-bridge.0",
114
+ "babel-plugin-polyfill-corejs2": "^0.4.17",
115
+ "babel-plugin-polyfill-corejs3": "^0.14.2",
116
+ "babel-plugin-polyfill-regenerator": "^0.6.8",
117
+ "babel-plugin-transform-flow-enums": "^0.0.2",
118
+ "balanced-match": "^1.0.2",
119
+ "base64-js": "^1.5.1",
120
+ "baseline-browser-mapping": "^2.11.26",
121
+ "bl": "^4.1.0",
122
+ "brace-expansion": "^1.1.21",
123
+ "braces": "^3.0.3",
124
+ "browserslist": "^4.29.2",
125
+ "bser": "^2.1.1",
126
+ "buffer": "^5.7.1",
127
+ "buffer-from": "^1.1.2",
128
+ "bytes": "^3.1.2",
129
+ "caller-callsite": "^2.0.0",
130
+ "caller-path": "^2.0.0",
131
+ "callsites": "^2.0.0",
132
+ "camelcase": "^6.3.0",
133
+ "caniuse-lite": "^1.0.30001813",
134
+ "chalk": "^4.1.2",
135
+ "chrome-launcher": "^0.15.2",
136
+ "ci-info": "^3.9.0",
137
+ "cli-cursor": "^3.1.0",
138
+ "cli-spinners": "^2.9.2",
139
+ "cliui": "^8.0.1",
140
+ "clone": "^1.0.4",
141
+ "clone-deep": "^4.0.1",
142
+ "color-convert": "^2.0.1",
143
+ "color-name": "^1.1.4",
144
+ "colorette": "^1.4.0",
145
+ "command-exists": "^1.2.9",
146
+ "commander": "^9.5.0",
147
+ "commondir": "^1.0.1",
148
+ "compressible": "^2.0.18",
149
+ "compression": "^1.8.2",
150
+ "concat-map": "^0.0.1",
151
+ "connect": "^3.7.0",
152
+ "convert-source-map": "^2.0.0",
153
+ "core-js-compat": "^3.50.0",
154
+ "core-util-is": "^1.0.3",
155
+ "cosmiconfig": "^5.2.1",
156
+ "cross-spawn": "^7.0.6",
157
+ "csstype": "^3.2.3",
158
+ "dayjs": "^1.11.23",
159
+ "debug": "^4.4.3",
160
+ "decamelize": "^1.2.0",
161
+ "deepmerge": "^4.3.1",
162
+ "defaults": "^1.0.4",
163
+ "denodeify": "^1.2.1",
164
+ "depd": "^2.0.0",
165
+ "destroy": "^1.2.0",
166
+ "ee-first": "^1.1.1",
167
+ "electron-to-chromium": "^1.5.439",
168
+ "emoji-regex": "^8.0.0",
169
+ "encodeurl": "^1.0.2",
170
+ "envinfo": "^7.21.0",
171
+ "error-ex": "^1.3.4",
172
+ "error-stack-parser": "^2.1.4",
173
+ "errorhandler": "^1.5.2",
174
+ "es-errors": "^1.3.0",
175
+ "escalade": "^3.2.0",
176
+ "escape-html": "^1.0.3",
177
+ "escape-string-regexp": "^4.0.0",
178
+ "esprima": "^4.0.1",
179
+ "esutils": "^2.0.3",
180
+ "etag": "^1.8.1",
181
+ "event-target-shim": "^5.0.1",
182
+ "execa": "^5.1.1",
183
+ "exponential-backoff": "^3.1.3",
184
+ "fast-glob": "^3.3.3",
185
+ "fast-xml-parser": "^4.5.7",
186
+ "fastq": "^1.20.3",
187
+ "fb-watchman": "^2.0.2",
188
+ "fill-range": "^7.1.1",
189
+ "finalhandler": "^1.1.2",
190
+ "find-cache-dir": "^2.1.0",
191
+ "find-up": "^4.1.0",
192
+ "flow-enums-runtime": "^0.0.6",
193
+ "flow-estree": "^0.333.0",
194
+ "flow-parser": "^0.333.0",
195
+ "fresh": "^0.5.2",
196
+ "fs-extra": "^8.1.0",
197
+ "fs.realpath": "^1.0.0",
198
+ "function-bind": "^1.1.2",
199
+ "gensync": "^1.0.0-beta.2",
200
+ "get-caller-file": "^2.0.5",
201
+ "get-stream": "^6.0.1",
202
+ "glob": "^7.2.3",
203
+ "glob-parent": "^5.1.2",
204
+ "graceful-fs": "^4.2.11",
205
+ "has-flag": "^4.0.0",
206
+ "hasown": "^2.0.4",
207
+ "hermes-estree": "^0.19.1",
208
+ "hermes-parser": "^0.19.1",
209
+ "hermes-profile-transformer": "^0.0.6",
210
+ "http-errors": "^2.0.1",
211
+ "human-signals": "^2.1.0",
212
+ "ieee754": "^1.2.1",
213
+ "image-size": "^1.2.1",
214
+ "import-fresh": "^2.0.0",
215
+ "imurmurhash": "^0.1.4",
216
+ "inflight": "^1.0.6",
217
+ "inherits": "^2.0.4",
218
+ "invariant": "^2.2.4",
219
+ "is-arrayish": "^0.2.1",
220
+ "is-core-module": "^2.17.0",
221
+ "is-directory": "^0.3.1",
222
+ "is-docker": "^2.2.1",
223
+ "is-extglob": "^2.1.1",
224
+ "is-fullwidth-code-point": "^2.0.0",
225
+ "is-glob": "^4.0.3",
226
+ "is-interactive": "^1.0.0",
227
+ "is-number": "^7.0.0",
228
+ "is-plain-object": "^2.0.4",
229
+ "is-stream": "^2.0.1",
230
+ "is-unicode-supported": "^0.1.0",
231
+ "is-wsl": "^2.2.0",
232
+ "isarray": "^1.0.0",
233
+ "isexe": "^2.0.0",
234
+ "isobject": "^3.0.1",
235
+ "jest-environment-node": "^29.7.0",
236
+ "jest-get-type": "^29.6.3",
237
+ "jest-message-util": "^29.7.0",
238
+ "jest-mock": "^29.7.0",
239
+ "jest-util": "^29.7.0",
240
+ "jest-validate": "^29.7.0",
241
+ "jest-worker": "^29.7.0",
242
+ "joi": "^17.13.8",
243
+ "js-tokens": "^4.0.0",
244
+ "js-yaml": "^3.15.2",
245
+ "jsc-android": "^250231.0.0",
246
+ "jsc-safe-url": "^0.2.4",
247
+ "jscodeshift": "^0.14.0",
248
+ "jsesc": "^3.1.0",
249
+ "json-parse-better-errors": "^1.0.2",
250
+ "json5": "^2.2.3",
251
+ "jsonfile": "^4.0.0",
252
+ "kind-of": "^6.0.3",
253
+ "kleur": "^3.0.3",
254
+ "leven": "^3.1.0",
255
+ "lighthouse-logger": "^1.4.2",
256
+ "locate-path": "^5.0.0",
257
+ "lodash.debounce": "^4.0.8",
258
+ "lodash.throttle": "^4.1.1",
259
+ "log-symbols": "^4.1.0",
260
+ "logkitty": "^0.7.1",
261
+ "loose-envify": "^1.4.0",
262
+ "lru-cache": "^5.1.1",
263
+ "make-dir": "^2.1.0",
264
+ "makeerror": "^1.0.12",
265
+ "marky": "^1.3.0",
266
+ "memoize-one": "^5.2.1",
267
+ "merge-stream": "^2.0.0",
268
+ "merge2": "^1.4.1",
269
+ "metro": "^0.80.12",
270
+ "metro-babel-transformer": "^0.80.12",
271
+ "metro-cache": "^0.80.12",
272
+ "metro-cache-key": "^0.80.12",
273
+ "metro-config": "^0.80.12",
274
+ "metro-core": "^0.80.12",
275
+ "metro-file-map": "^0.80.12",
276
+ "metro-minify-terser": "^0.80.12",
277
+ "metro-resolver": "^0.80.12",
278
+ "metro-runtime": "^0.80.12",
279
+ "metro-source-map": "^0.80.12",
280
+ "metro-symbolicate": "^0.80.12",
281
+ "metro-transform-plugins": "^0.80.12",
282
+ "metro-transform-worker": "^0.80.12",
283
+ "micromatch": "^4.0.8",
284
+ "mime": "^2.6.0",
285
+ "mime-db": "^1.54.0",
286
+ "mime-types": "^2.1.35",
287
+ "mimic-fn": "^2.1.0",
288
+ "minimatch": "^3.1.5",
289
+ "minimist": "^1.2.8",
290
+ "mkdirp": "^0.5.6",
291
+ "ms": "^2.1.3",
292
+ "negotiator": "^0.6.4",
293
+ "neo-async": "^2.6.2",
294
+ "nocache": "^3.0.4",
295
+ "node-abort-controller": "^3.1.1",
296
+ "node-dir": "^0.1.17",
297
+ "node-fetch": "^2.7.0",
298
+ "node-forge": "^1.4.0",
299
+ "node-int64": "^0.4.0",
300
+ "node-releases": "^2.0.57",
301
+ "node-stream-zip": "^1.16.0",
302
+ "normalize-path": "^3.0.0",
303
+ "npm-run-path": "^4.0.1",
304
+ "nullthrows": "^1.1.1",
305
+ "ob1": "^0.80.12",
306
+ "object-assign": "^4.1.1",
307
+ "on-finished": "^2.3.0",
308
+ "on-headers": "^1.1.0",
309
+ "once": "^1.4.0",
310
+ "onetime": "^5.1.2",
311
+ "open": "^6.4.0",
312
+ "ora": "^5.4.1",
313
+ "p-limit": "^2.3.0",
314
+ "p-locate": "^4.1.0",
315
+ "p-try": "^2.2.0",
316
+ "parse-json": "^4.0.0",
317
+ "parseurl": "^1.3.3",
318
+ "path-exists": "^4.0.0",
319
+ "path-is-absolute": "^1.0.1",
320
+ "path-key": "^3.1.1",
321
+ "path-parse": "^1.0.7",
322
+ "picocolors": "^1.1.1",
323
+ "picomatch": "^2.3.2",
324
+ "pify": "^4.0.1",
325
+ "pirates": "^4.0.7",
326
+ "pkg-dir": "^3.0.0",
327
+ "pretty-format": "^26.6.2",
328
+ "process-nextick-args": "^2.0.1",
329
+ "promise": "^8.3.0",
330
+ "prompts": "^2.4.2",
331
+ "querystring": "^0.2.1",
332
+ "queue": "^6.0.2",
333
+ "queue-microtask": "^1.2.3",
334
+ "range-parser": "^1.2.1",
335
+ "react-devtools-core": "^5.3.2",
336
+ "react-is": "^17.0.2",
337
+ "react-refresh": "^0.14.2",
338
+ "react-shallow-renderer": "^16.15.0",
339
+ "readable-stream": "^3.6.2",
340
+ "readline": "^1.3.0",
341
+ "recast": "^0.21.5",
342
+ "regenerate": "^1.4.2",
343
+ "regenerate-unicode-properties": "^10.3.0",
344
+ "regenerator-runtime": "^0.13.11",
345
+ "regexpu-core": "^6.4.0",
346
+ "regjsgen": "^0.8.0",
347
+ "regjsparser": "^0.13.3",
348
+ "require-directory": "^2.1.1",
349
+ "require-main-filename": "^2.0.0",
350
+ "resolve": "^1.22.12",
351
+ "resolve-from": "^3.0.0",
352
+ "restore-cursor": "^3.1.0",
353
+ "reusify": "^1.1.0",
354
+ "rimraf": "^3.0.2",
355
+ "run-parallel": "^1.2.0",
356
+ "safe-buffer": "^5.2.1",
357
+ "scheduler": "^0.24.0-canary-efb381bbf-20230505",
358
+ "selfsigned": "^2.4.1",
359
+ "semver": "^6.3.1",
360
+ "send": "^0.19.2",
361
+ "serialize-error": "^2.1.0",
362
+ "serve-static": "^1.16.3",
363
+ "set-blocking": "^2.0.0",
364
+ "setprototypeof": "^1.2.0",
365
+ "shallow-clone": "^3.0.1",
366
+ "shebang-command": "^2.0.0",
367
+ "shebang-regex": "^3.0.0",
368
+ "shell-quote": "^1.10.0",
369
+ "signal-exit": "^3.0.7",
370
+ "sisteransi": "^1.0.5",
371
+ "slash": "^3.0.0",
372
+ "slice-ansi": "^2.1.0",
373
+ "source-map": "^0.7.6",
374
+ "source-map-support": "^0.5.21",
375
+ "sprintf-js": "^1.0.3",
376
+ "stack-utils": "^2.0.6",
377
+ "stackframe": "^1.3.4",
378
+ "stacktrace-parser": "^0.1.11",
379
+ "statuses": "^1.5.0",
380
+ "string-width": "^4.2.3",
381
+ "string_decoder": "^1.3.0",
382
+ "strip-ansi": "^5.2.0",
383
+ "strip-final-newline": "^2.0.0",
384
+ "strnum": "^1.1.2",
385
+ "sudo-prompt": "^9.2.1",
386
+ "supports-color": "^7.2.0",
387
+ "supports-preserve-symlinks-flag": "^1.0.0",
388
+ "temp": "^0.8.4",
389
+ "temp-dir": "^2.0.0",
390
+ "terser": "^5.51.2",
391
+ "throat": "^5.0.0",
392
+ "through2": "^2.0.5",
393
+ "tmpl": "^1.0.5",
394
+ "to-regex-range": "^5.0.1",
395
+ "toidentifier": "^1.0.1",
396
+ "tr46": "^0.0.3",
397
+ "tslib": "^2.8.1",
398
+ "type-detect": "^4.0.8",
399
+ "type-fest": "^0.7.1",
400
+ "undici-types": "^8.9.0",
401
+ "unicode-canonical-property-names-ecmascript": "^2.0.1",
402
+ "unicode-match-property-ecmascript": "^2.0.0",
403
+ "unicode-match-property-value-ecmascript": "^2.2.1",
404
+ "unicode-property-aliases-ecmascript": "^2.2.0",
405
+ "universalify": "^0.1.2",
406
+ "unpipe": "^1.0.0",
407
+ "update-browserslist-db": "^1.3.3",
408
+ "util-deprecate": "^1.0.2",
409
+ "utils-merge": "^1.0.1",
410
+ "vary": "^1.1.2",
411
+ "vlq": "^1.0.1",
412
+ "walker": "^1.0.8",
413
+ "wcwidth": "^1.0.1",
414
+ "webidl-conversions": "^3.0.1",
415
+ "whatwg-fetch": "^3.6.20",
416
+ "whatwg-url": "^5.0.0",
417
+ "which": "^2.0.2",
418
+ "which-module": "^2.0.1",
419
+ "wrap-ansi": "^7.0.0",
420
+ "wrappy": "^1.0.2",
421
+ "write-file-atomic": "^2.4.3",
422
+ "ws": "^6.2.6",
423
+ "xtend": "^4.0.2",
424
+ "y18n": "^5.0.8",
425
+ "yallist": "^3.1.1",
426
+ "yaml": "^2.9.1",
427
+ "yargs": "^17.7.3",
428
+ "yargs-parser": "^21.1.1",
429
+ "yocto-queue": "^0.1.0"
430
+ }
431
+ }
package/ui/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '../lib/ui/index';
package/ui/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('../lib/ui/index.js');
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../lib/ui/index.js",
3
+ "types": "../lib/ui/index.d.ts",
4
+ "sideEffects": false
5
+ }