@sanguo-dev/calendar-ui 0.0.0-stage → 0.0.3
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 +193 -2
- package/dist/index.cjs +1079 -0
- package/dist/index.d.cts +286 -0
- package/dist/index.d.mts +286 -0
- package/dist/index.mjs +1074 -0
- package/package.json +59 -4
- package/src/calendar.ts +785 -0
- package/src/components/day.ts +79 -0
- package/src/components/grid.ts +181 -0
- package/src/components/header.ts +69 -0
- package/src/components/nav.ts +20 -0
- package/src/components/weekdays.ts +19 -0
- package/src/index.ts +26 -0
- package/src/locales/en-US.ts +28 -0
- package/src/locales/index.ts +19 -0
- package/src/locales/zh-CN.ts +13 -0
- package/src/style.css +388 -0
- package/src/types/calendar.ts +267 -0
- package/src/types/components.ts +69 -0
- package/src/types/index.ts +32 -0
- package/src/types/locale.ts +26 -0
- package/src/types/utils.ts +28 -0
- package/src/utils/date.ts +82 -0
- package/src/utils/days.ts +88 -0
- package/src/utils/dom.ts +11 -0
- package/src/utils/motion.ts +39 -0
package/package.json
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanguo-dev/calendar-ui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "纯 DOM、零依赖的公历日历核心,支持范围选择、折叠、主题和适配器",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"calendar",
|
|
7
|
+
"datepicker",
|
|
8
|
+
"dom",
|
|
9
|
+
"range",
|
|
10
|
+
"solid"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/sanguo-dev/calendar/tree/master/packages/calendar-ui#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/sanguo-dev/calendar/issues"
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "sanguogege@outlook.com",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/sanguo-dev/calendar.git",
|
|
21
|
+
"directory": "packages/calendar-ui"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"src"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"*.css"
|
|
30
|
+
],
|
|
31
|
+
"main": "./dist/index.cjs",
|
|
32
|
+
"module": "./dist/index.mjs",
|
|
33
|
+
"types": "./src/index.ts",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"development": "./src/index.ts",
|
|
37
|
+
"types": "./src/index.ts",
|
|
38
|
+
"import": "./dist/index.mjs",
|
|
39
|
+
"require": "./dist/index.cjs"
|
|
40
|
+
},
|
|
41
|
+
"./style.css": "./src/style.css"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"registry": "https://registry.npmjs.org"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "vp pack",
|
|
49
|
+
"dev": "vp pack --watch",
|
|
50
|
+
"test": "vp test",
|
|
51
|
+
"typecheck": "vp check",
|
|
52
|
+
"prepublishOnly": "vp run build"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/node": "catalog:",
|
|
56
|
+
"jsdom": "^25.0.1",
|
|
57
|
+
"typescript": "catalog:",
|
|
58
|
+
"vite": "catalog:",
|
|
59
|
+
"vite-plus": "catalog:"
|
|
60
|
+
}
|
|
61
|
+
}
|