sunkit-ui 0.1.0-alpha.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 +463 -0
- package/dist/components/Alert/Alert.d.ts +12 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +18 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +29 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +15 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts +27 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +22 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Progress/Progress.d.ts +14 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +35 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Slider/Slider.d.ts +27 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +22 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Theme/ThemeProvider.d.ts +15 -0
- package/dist/components/Theme/index.d.ts +2 -0
- package/dist/components/Toggle/Toggle.d.ts +23 -0
- package/dist/components/Toggle/index.d.ts +2 -0
- package/dist/hooks/useButtonSound.d.ts +2 -0
- package/dist/hooks/useColorPickerSound.d.ts +4 -0
- package/dist/hooks/useInputSound.d.ts +2 -0
- package/dist/hooks/usePickerSound.d.ts +5 -0
- package/dist/hooks/useSelectSound.d.ts +5 -0
- package/dist/hooks/useSliderSound.d.ts +2 -0
- package/dist/hooks/useToggleSound.d.ts +2 -0
- package/dist/index.d.ts +27 -0
- package/dist/lib/accent.d.ts +17 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/sunkit.cjs +1 -0
- package/dist/sunkit.js +4028 -0
- package/dist/tokens/colors.d.ts +12 -0
- package/package.json +67 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ButtonColor = 'rose' | 'peach' | 'lemon' | 'mint' | 'sky' | 'lavender' | 'lilac' | 'neutral';
|
|
2
|
+
export interface ColorToken {
|
|
3
|
+
id: ButtonColor;
|
|
4
|
+
label: string;
|
|
5
|
+
hex: string;
|
|
6
|
+
darkHex: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const COLORS: ColorToken[];
|
|
9
|
+
export declare const COLOR_MAP: Record<ButtonColor, {
|
|
10
|
+
hex: string;
|
|
11
|
+
darkHex: string;
|
|
12
|
+
}>;
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sunkit-ui",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "Sunkit — pastel React component library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/sunkit.cjs",
|
|
7
|
+
"module": "dist/sunkit.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/sunkit.js",
|
|
16
|
+
"require": "./dist/sunkit.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./dist/sunkit.css": "./dist/sunkit.css"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"react": ">=19",
|
|
22
|
+
"react-dom": ">=19"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
26
|
+
"@storybook/react": "^10.3.5",
|
|
27
|
+
"@storybook/react-vite": "^10.3.5",
|
|
28
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
29
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
30
|
+
"@testing-library/react": "^16.3.0",
|
|
31
|
+
"@testing-library/user-event": "^14.6.1",
|
|
32
|
+
"@types/react": "^19.2.14",
|
|
33
|
+
"@types/react-dom": "^19.2.3",
|
|
34
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
35
|
+
"class-variance-authority": "^0.7.1",
|
|
36
|
+
"clsx": "^2.1.1",
|
|
37
|
+
"eslint": "^9.26.0",
|
|
38
|
+
"eslint-plugin-react": "^7.37.5",
|
|
39
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
40
|
+
"@eslint/js": "^9.26.0",
|
|
41
|
+
"typescript-eslint": "^8.32.0",
|
|
42
|
+
"globals": "^16.1.0",
|
|
43
|
+
"jsdom": "^26.1.0",
|
|
44
|
+
"prettier": "^3.5.3",
|
|
45
|
+
"react": "^19.2.5",
|
|
46
|
+
"react-dom": "^19.2.5",
|
|
47
|
+
"storybook": "^10.3.5",
|
|
48
|
+
"tailwind-merge": "^3.5.0",
|
|
49
|
+
"tailwindcss": "^4.2.2",
|
|
50
|
+
"typescript": "^6.0.2",
|
|
51
|
+
"vite": "^8.0.8",
|
|
52
|
+
"vite-plugin-dts": "^4.5.4",
|
|
53
|
+
"vitest": "^3.1.2"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"storybook": "storybook dev -p 6006",
|
|
57
|
+
"build-storybook": "storybook build",
|
|
58
|
+
"build": "tsc -p tsconfig.build.json && vite build",
|
|
59
|
+
"typecheck": "tsc --noEmit",
|
|
60
|
+
"lint": "eslint src",
|
|
61
|
+
"lint:fix": "eslint src --fix",
|
|
62
|
+
"format": "prettier --write src",
|
|
63
|
+
"format:check": "prettier --check src",
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"test:watch": "vitest"
|
|
66
|
+
}
|
|
67
|
+
}
|