@kdsui/components 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/package.json ADDED
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "@kdsui/components",
3
+ "version": "1.0.0",
4
+ "description": "React component library — buttons, inputs, modals, pagination, and more. Built with Radix UI + Tailwind CSS.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Kds-JS/components.git"
9
+ },
10
+ "type": "module",
11
+ "main": "./dist/index.js",
12
+ "module": "./dist/index.js",
13
+ "types": "./dist/types/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/index.js",
17
+ "types": "./dist/types/index.d.ts"
18
+ },
19
+ "./styles": "./src/styles/base.css"
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "src/styles"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "sideEffects": false,
29
+ "scripts": {
30
+ "dev": "storybook dev -p 6006",
31
+ "build": "tsc --emitDeclarationOnly --outDir dist/types && vite build",
32
+ "build-storybook": "storybook build",
33
+ "test": "vitest run",
34
+ "test:watch": "vitest",
35
+ "test:coverage": "vitest run --coverage",
36
+ "lint": "eslint src/ --ext .ts,.tsx",
37
+ "lintfix": "eslint src/ --ext .ts,.tsx --fix && prettier --write 'src/**/*.{ts,tsx,css}'",
38
+ "lint:prettier": "prettier --check 'src/**/*.{ts,tsx,css}'",
39
+ "typecheck": "tsc --noEmit",
40
+ "prepare": "husky"
41
+ },
42
+ "peerDependencies": {
43
+ "react": "^18.0.0 || ^19.0.0",
44
+ "react-dom": "^18.0.0 || ^19.0.0"
45
+ },
46
+ "dependencies": {
47
+ "@radix-ui/react-checkbox": "^1.1.4",
48
+ "@radix-ui/react-dialog": "^1.1.6",
49
+ "@radix-ui/react-radio-group": "^1.2.3",
50
+ "@radix-ui/react-select": "^2.1.6",
51
+ "@radix-ui/react-switch": "^1.1.3",
52
+ "@radix-ui/react-tabs": "^1.1.3",
53
+ "@radix-ui/react-tooltip": "^1.1.8",
54
+ "clsx": "^2.1.1",
55
+ "tailwind-merge": "^3.0.2"
56
+ },
57
+ "devDependencies": {
58
+ "@commitlint/cli": "^19.6.1",
59
+ "@commitlint/config-conventional": "^19.6.0",
60
+ "@semantic-release/changelog": "^6.0.3",
61
+ "@semantic-release/git": "^10.0.1",
62
+ "@semantic-release/github": "^12.0.6",
63
+ "@storybook/addon-a11y": "^8.5.3",
64
+ "@storybook/addon-essentials": "^8.6.17",
65
+ "@storybook/addon-interactions": "^8.6.17",
66
+ "@storybook/react": "^8.5.3",
67
+ "@storybook/react-vite": "^8.5.3",
68
+ "@testing-library/jest-dom": "^6.6.3",
69
+ "@testing-library/react": "^16.3.0",
70
+ "@testing-library/user-event": "^14.6.1",
71
+ "@types/react": "^18.3.18",
72
+ "@types/react-dom": "^18.3.5",
73
+ "@typescript-eslint/eslint-plugin": "^8.24.0",
74
+ "@typescript-eslint/parser": "^8.24.0",
75
+ "@vitejs/plugin-react": "^4.3.4",
76
+ "autoprefixer": "^10.4.20",
77
+ "eslint": "^9.20.0",
78
+ "eslint-plugin-react": "^7.37.4",
79
+ "eslint-plugin-react-hooks": "^5.1.0",
80
+ "husky": "^9.1.7",
81
+ "jsdom": "^26.0.0",
82
+ "lint-staged": "^16.2.7",
83
+ "postcss": "^8.5.1",
84
+ "prettier": "^3.5.1",
85
+ "react": "^18.3.1",
86
+ "react-dom": "^18.3.1",
87
+ "semantic-release": "^24.2.3",
88
+ "storybook": "^8.5.3",
89
+ "tailwindcss": "^3.4.17",
90
+ "typescript": "^5.7.3",
91
+ "typescript-eslint": "^8.56.0",
92
+ "validate-branch-name": "^1.3.2",
93
+ "vite": "^6.1.0",
94
+ "vite-plugin-dts": "^4.4.0",
95
+ "vitest": "^3.0.5"
96
+ },
97
+ "volta": {
98
+ "node": "20.20.0"
99
+ }
100
+ }
@@ -0,0 +1,38 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap");
2
+
3
+ @tailwind base;
4
+ @tailwind components;
5
+ @tailwind utilities;
6
+
7
+ :root {
8
+ /* Brand colors — override these in your project */
9
+ --color-primary: #ff8769;
10
+ --color-primary-100: #fff7f5;
11
+ --color-primary-300: #ffe8e2;
12
+ --color-primary-400: #ffb4a2;
13
+ --color-primary-700: #ff592f;
14
+
15
+ /* Greyscale */
16
+ --color-grey-100: #f2f4f7;
17
+ --color-grey-200: #d7dde7;
18
+ --color-grey-300: #a1afc8;
19
+ --color-grey-400: #8597b7;
20
+ --color-grey-500: #576c93;
21
+ --color-grey-600: #4f5d70;
22
+ --color-grey-700: #404c5b;
23
+ --color-grey-800: #29303a;
24
+ --color-grey-900: #1d222a;
25
+
26
+ /* System colors */
27
+ --color-success: #3dc48c;
28
+ --color-success-100: #ecfaf4;
29
+ --color-success-700: #1c5b41;
30
+
31
+ --color-warning: #fb8231;
32
+ --color-warning-100: #fff4ed;
33
+ --color-warning-700: #7d3402;
34
+
35
+ --color-error: #bb1940;
36
+ --color-error-100: #fdf0f3;
37
+ --color-error-700: #4b0a1a;
38
+ }