@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.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +185 -0
  3. package/dist/core/focusTrap.d.ts +3 -0
  4. package/dist/core/toastTimer.d.ts +13 -0
  5. package/dist/core/types.d.ts +35 -0
  6. package/dist/kroma-react.cjs +2 -0
  7. package/dist/kroma-react.cjs.map +1 -0
  8. package/dist/kroma-react.d.ts +2 -0
  9. package/dist/kroma-react.js +600 -0
  10. package/dist/kroma-react.js.map +1 -0
  11. package/dist/kroma-ui.css +804 -0
  12. package/dist/kroma-vue.cjs +2 -0
  13. package/dist/kroma-vue.cjs.map +1 -0
  14. package/dist/kroma-vue.d.ts +2 -0
  15. package/dist/kroma-vue.js +706 -0
  16. package/dist/kroma-vue.js.map +1 -0
  17. package/dist/kroma.css +804 -0
  18. package/dist/react/components/KrButton.d.ts +7 -0
  19. package/dist/react/components/KrChevron.d.ts +3 -0
  20. package/dist/react/components/KrDialog.d.ts +14 -0
  21. package/dist/react/components/KrEmpty.d.ts +7 -0
  22. package/dist/react/components/KrMenuItem.d.ts +7 -0
  23. package/dist/react/components/KrOverlay.d.ts +11 -0
  24. package/dist/react/components/KrSearchInput.d.ts +11 -0
  25. package/dist/react/components/KrSection.d.ts +6 -0
  26. package/dist/react/components/KrSelectGroup.d.ts +21 -0
  27. package/dist/react/components/KrSelectItem.d.ts +17 -0
  28. package/dist/react/components/KrSwitch.d.ts +7 -0
  29. package/dist/react/components/KrTextField.d.ts +10 -0
  30. package/dist/react/components/KrToast.d.ts +15 -0
  31. package/dist/react/components/KrToggleRow.d.ts +10 -0
  32. package/dist/react/hooks/useCssTransition.d.ts +12 -0
  33. package/dist/react/index.d.ts +28 -0
  34. package/dist/react/utils/cx.d.ts +1 -0
  35. package/dist/vue/components/KrButton.vue.d.ts +20 -0
  36. package/dist/vue/components/KrChevron.vue.d.ts +3 -0
  37. package/dist/vue/components/KrDialog.vue.d.ts +34 -0
  38. package/dist/vue/components/KrEmpty.vue.d.ts +17 -0
  39. package/dist/vue/components/KrMenuItem.vue.d.ts +15 -0
  40. package/dist/vue/components/KrOverlay.vue.d.ts +28 -0
  41. package/dist/vue/components/KrSearchInput.vue.d.ts +30 -0
  42. package/dist/vue/components/KrSection.vue.d.ts +17 -0
  43. package/dist/vue/components/KrSelectGroup.vue.d.ts +44 -0
  44. package/dist/vue/components/KrSelectItem.vue.d.ts +25 -0
  45. package/dist/vue/components/KrSwitch.vue.d.ts +12 -0
  46. package/dist/vue/components/KrTextField.vue.d.ts +13 -0
  47. package/dist/vue/components/KrToast.vue.d.ts +32 -0
  48. package/dist/vue/components/KrToggleRow.vue.d.ts +18 -0
  49. package/dist/vue/index.d.ts +20 -0
  50. 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
+ }