@dhua5922/react-kit 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.
- package/README.md +45 -0
- package/dist/components/Calendar/Calendar.d.ts +9 -0
- package/dist/components/Calendar/Calendar.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarContext.d.ts +9 -0
- package/dist/components/Calendar/CalendarContext.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarDay.d.ts +10 -0
- package/dist/components/Calendar/CalendarDay.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarDays.d.ts +5 -0
- package/dist/components/Calendar/CalendarDays.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarHeader.d.ts +5 -0
- package/dist/components/Calendar/CalendarHeader.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarLeft.d.ts +8 -0
- package/dist/components/Calendar/CalendarLeft.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarRight.d.ts +8 -0
- package/dist/components/Calendar/CalendarRight.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarTitle.d.ts +5 -0
- package/dist/components/Calendar/CalendarTitle.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarWeekday.d.ts +5 -0
- package/dist/components/Calendar/CalendarWeekday.d.ts.map +1 -0
- package/dist/components/Calendar/CalendarWeekdays.d.ts +5 -0
- package/dist/components/Calendar/CalendarWeekdays.d.ts.map +1 -0
- package/dist/components/Calendar/index.d.ts +22 -0
- package/dist/components/Calendar/index.d.ts.map +1 -0
- package/dist/components/Center/Center.d.ts +9 -0
- package/dist/components/Center/Center.d.ts.map +1 -0
- package/dist/components/Center/index.d.ts +2 -0
- package/dist/components/Center/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2604 -0
- package/dist/types/common.d.ts +13 -0
- package/dist/types/common.d.ts.map +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ComponentSize = 'small' | 'medium' | 'large';
|
|
2
|
+
export type ComponentVariant = 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
3
|
+
export interface BaseComponentProps {
|
|
4
|
+
/**
|
|
5
|
+
* Additional CSS class names
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Test identifier for automated testing
|
|
10
|
+
*/
|
|
11
|
+
'data-testid'?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;AACxD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5E,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dhua5922/react-kit",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A modern React component library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"homepage": "https://www.huadylan.com/react-kit",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "vite",
|
|
21
|
+
"build": "tsc && vite build",
|
|
22
|
+
"build:watch": "vite build --watch",
|
|
23
|
+
"build:docs": "rm -rf documentation/storybook && storybook build --output-dir documentation/storybook",
|
|
24
|
+
"preview": "vite preview",
|
|
25
|
+
"test": "vitest run --coverage",
|
|
26
|
+
"test:run": "vitest run",
|
|
27
|
+
"test:ui": "vitest --ui",
|
|
28
|
+
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
29
|
+
"lint:fix": "eslint src --ext ts,tsx --fix",
|
|
30
|
+
"typecheck": "tsc --noEmit",
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
|
+
"build-storybook": "storybook build",
|
|
33
|
+
"docs:serve": "npx http-server documentation -p 3001 -o",
|
|
34
|
+
"docs:dev": "yarn build:docs && yarn docs:serve",
|
|
35
|
+
"clean": "rm -rf dist && rm -rf storybook-static && rm -rf documentation/storybook",
|
|
36
|
+
"validate": "yarn typecheck && yarn lint && yarn test",
|
|
37
|
+
"prepublishOnly": "yarn validate && yarn build"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"react",
|
|
41
|
+
"component",
|
|
42
|
+
"library",
|
|
43
|
+
"typescript",
|
|
44
|
+
"ui"
|
|
45
|
+
],
|
|
46
|
+
"author": "",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"react": ">=16.8.0",
|
|
50
|
+
"react-dom": ">=16.8.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
54
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
55
|
+
"@storybook/addon-links": "^8.6.14",
|
|
56
|
+
"@storybook/blocks": "^8.6.14",
|
|
57
|
+
"@storybook/react": "^8.6.14",
|
|
58
|
+
"@storybook/react-vite": "^8.6.14",
|
|
59
|
+
"@storybook/test": "^8.6.14",
|
|
60
|
+
"@testing-library/jest-dom": "^6.2.0",
|
|
61
|
+
"@testing-library/react": "^14.1.2",
|
|
62
|
+
"@testing-library/user-event": "^14.5.2",
|
|
63
|
+
"@types/react": "^18.2.48",
|
|
64
|
+
"@types/react-dom": "^18.2.18",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
66
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
67
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
68
|
+
"@vitest/coverage-v8": "^1.2.2",
|
|
69
|
+
"@vitest/ui": "^1.2.2",
|
|
70
|
+
"eslint": "^8.56.0",
|
|
71
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
72
|
+
"eslint-plugin-react-refresh": "^0.4.5",
|
|
73
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
74
|
+
"jsdom": "^24.0.0",
|
|
75
|
+
"prettier": "^3.1.1",
|
|
76
|
+
"react": "^18.2.0",
|
|
77
|
+
"react-dom": "^18.2.0",
|
|
78
|
+
"storybook": "^8.6.14",
|
|
79
|
+
"typescript": "^5.3.3",
|
|
80
|
+
"vite": "^5.0.12",
|
|
81
|
+
"vite-plugin-dts": "^3.7.2",
|
|
82
|
+
"vitest": "^1.2.2"
|
|
83
|
+
},
|
|
84
|
+
"dependencies": {
|
|
85
|
+
"date-fns": "^4.1.0",
|
|
86
|
+
"react-live": "^4.1.8",
|
|
87
|
+
"styled-components": "^6.3.12"
|
|
88
|
+
},
|
|
89
|
+
"repository": {
|
|
90
|
+
"type": "git",
|
|
91
|
+
"url": "https://github.com/DHua5922/react-kit"
|
|
92
|
+
},
|
|
93
|
+
"bugs": {
|
|
94
|
+
"url": "https://github.com/DHua5922/react-kit/issues"
|
|
95
|
+
}
|
|
96
|
+
}
|