@anguszhu/kroma-ui 0.1.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/LICENSE +21 -0
- package/README.md +185 -0
- package/dist/core/focusTrap.d.ts +3 -0
- package/dist/core/toastTimer.d.ts +13 -0
- package/dist/core/types.d.ts +35 -0
- package/dist/kroma-react.cjs +2 -0
- package/dist/kroma-react.cjs.map +1 -0
- package/dist/kroma-react.d.ts +2 -0
- package/dist/kroma-react.js +600 -0
- package/dist/kroma-react.js.map +1 -0
- package/dist/kroma-ui.css +804 -0
- package/dist/kroma-vue.cjs +2 -0
- package/dist/kroma-vue.cjs.map +1 -0
- package/dist/kroma-vue.d.ts +2 -0
- package/dist/kroma-vue.js +706 -0
- package/dist/kroma-vue.js.map +1 -0
- package/dist/kroma.css +804 -0
- package/dist/react/components/KrButton.d.ts +7 -0
- package/dist/react/components/KrChevron.d.ts +3 -0
- package/dist/react/components/KrDialog.d.ts +14 -0
- package/dist/react/components/KrEmpty.d.ts +7 -0
- package/dist/react/components/KrMenuItem.d.ts +7 -0
- package/dist/react/components/KrOverlay.d.ts +11 -0
- package/dist/react/components/KrSearchInput.d.ts +11 -0
- package/dist/react/components/KrSection.d.ts +6 -0
- package/dist/react/components/KrSelectGroup.d.ts +21 -0
- package/dist/react/components/KrSelectItem.d.ts +17 -0
- package/dist/react/components/KrSwitch.d.ts +7 -0
- package/dist/react/components/KrTextField.d.ts +10 -0
- package/dist/react/components/KrToast.d.ts +15 -0
- package/dist/react/components/KrToggleRow.d.ts +10 -0
- package/dist/react/hooks/useCssTransition.d.ts +12 -0
- package/dist/react/index.d.ts +28 -0
- package/dist/react/utils/cx.d.ts +1 -0
- package/dist/vue/components/KrButton.vue.d.ts +20 -0
- package/dist/vue/components/KrChevron.vue.d.ts +3 -0
- package/dist/vue/components/KrDialog.vue.d.ts +34 -0
- package/dist/vue/components/KrEmpty.vue.d.ts +17 -0
- package/dist/vue/components/KrMenuItem.vue.d.ts +15 -0
- package/dist/vue/components/KrOverlay.vue.d.ts +28 -0
- package/dist/vue/components/KrSearchInput.vue.d.ts +30 -0
- package/dist/vue/components/KrSection.vue.d.ts +17 -0
- package/dist/vue/components/KrSelectGroup.vue.d.ts +44 -0
- package/dist/vue/components/KrSelectItem.vue.d.ts +25 -0
- package/dist/vue/components/KrSwitch.vue.d.ts +12 -0
- package/dist/vue/components/KrTextField.vue.d.ts +13 -0
- package/dist/vue/components/KrToast.vue.d.ts +32 -0
- package/dist/vue/components/KrToggleRow.vue.d.ts +18 -0
- package/dist/vue/index.d.ts +20 -0
- package/package.json +92 -0
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@anguszhu/kroma-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A small, themeable Vue 3 UI component library extracted from real product use — buttons, dialogs, toasts, switches, selects and more.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"**/*.css"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
"./vue": {
|
|
18
|
+
"types": "./dist/kroma-vue.d.ts",
|
|
19
|
+
"import": "./dist/kroma-vue.js",
|
|
20
|
+
"require": "./dist/kroma-vue.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./react": {
|
|
23
|
+
"types": "./dist/kroma-react.d.ts",
|
|
24
|
+
"import": "./dist/kroma-react.js",
|
|
25
|
+
"require": "./dist/kroma-react.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./style.css": "./dist/kroma.css",
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev:vue": "vite build --watch -c vite.vue.config.ts",
|
|
32
|
+
"dev:react": "vite build --watch -c vite.react.config.ts",
|
|
33
|
+
"build": "npm run typecheck && vite build -c vite.vue.config.ts && vite build -c vite.react.config.ts",
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"test:watch": "vitest",
|
|
36
|
+
"typecheck": "npm run typecheck:vue && npm run typecheck:react",
|
|
37
|
+
"typecheck:vue": "vue-tsc -p tsconfig.vue.json --noEmit",
|
|
38
|
+
"typecheck:react": "tsc -p tsconfig.react.json --noEmit",
|
|
39
|
+
"prepublishOnly": "npm run build",
|
|
40
|
+
"storybook:vue": "storybook dev -p 6006 -c .storybook",
|
|
41
|
+
"storybook:react": "storybook dev -p 6007 -c .storybook-react",
|
|
42
|
+
"build-storybook:vue": "storybook build -c .storybook",
|
|
43
|
+
"build-storybook:react": "storybook build -c .storybook-react"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"vue": "^3.4.0",
|
|
47
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
48
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
49
|
+
},
|
|
50
|
+
"peerDependenciesMeta": {
|
|
51
|
+
"vue": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"react": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
57
|
+
"react-dom": {
|
|
58
|
+
"optional": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@storybook/addon-docs": "^10.6.0",
|
|
63
|
+
"@storybook/react-vite": "^10.6.0",
|
|
64
|
+
"@storybook/vue3-vite": "^10.6.0",
|
|
65
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
66
|
+
"@testing-library/react": "^16.3.3",
|
|
67
|
+
"@types/react": "^19.3.0",
|
|
68
|
+
"@types/react-dom": "^19.3.0",
|
|
69
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
70
|
+
"@vitejs/plugin-vue": "^6.0.9",
|
|
71
|
+
"@vue/test-utils": "^2.5.0",
|
|
72
|
+
"jsdom": "^30.0.1",
|
|
73
|
+
"postcss-nested": "^8.0.1",
|
|
74
|
+
"react": "^19.3.0",
|
|
75
|
+
"react-dom": "^19.3.0",
|
|
76
|
+
"storybook": "^10.6.0",
|
|
77
|
+
"typescript": "^5.9.3",
|
|
78
|
+
"vite": "^8.3.0",
|
|
79
|
+
"vite-plugin-dts": "^5.1.0",
|
|
80
|
+
"vitest": "^5.0.0",
|
|
81
|
+
"vue": "^3.5.42",
|
|
82
|
+
"vue-tsc": "^3.3.11"
|
|
83
|
+
},
|
|
84
|
+
"keywords": [
|
|
85
|
+
"vue",
|
|
86
|
+
"vue3",
|
|
87
|
+
"react",
|
|
88
|
+
"components",
|
|
89
|
+
"ui",
|
|
90
|
+
"design-system"
|
|
91
|
+
]
|
|
92
|
+
}
|