@projectdiscoveryio/design-system 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,152 @@
1
+ {
2
+ "name": "@projectdiscoveryio/design-system",
3
+ "version": "1.0.0",
4
+ "description": "Production-grade design system with adapter layer support",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs",
14
+ "default": "./dist/index.cjs"
15
+ },
16
+ "./styles": "./dist/index.css",
17
+ "./styles.css": "./dist/index.css",
18
+ "./fallback.css": "./dist/fallback.css",
19
+ "./tokens": {
20
+ "types": "./dist/tokens/index.d.ts",
21
+ "import": "./dist/tokens/index.js",
22
+ "require": "./dist/tokens/index.cjs",
23
+ "default": "./dist/tokens/index.cjs"
24
+ },
25
+ "./package.json": "./package.json"
26
+ },
27
+ "style": "./dist/index.css",
28
+ "files": [
29
+ "dist",
30
+ "README.md",
31
+ "CHANGELOG.md",
32
+ "LICENSE"
33
+ ],
34
+ "scripts": {
35
+ "storybook": "storybook dev -p 6006",
36
+ "build-storybook": "storybook build",
37
+ "build": "npm run generate:tokens-css && npm run generate:tailwind-config && tsup && npm run build:css && npm run copy:fallback-css && rm -f dist/*.css.map",
38
+ "generate:tokens-css": "tsx scripts/generate-tokens-css.ts",
39
+ "generate:tailwind-config": "tsx scripts/generate-tailwind-config.ts",
40
+ "build:css": "postcss src/styles.css -o dist/index.css",
41
+ "copy:fallback-css": "cp fallback.css dist/fallback.css",
42
+ "dev": "tsup --watch",
43
+ "type-check": "tsc --noEmit",
44
+ "lint": "eslint src --ext .ts,.tsx",
45
+ "test": "vitest run",
46
+ "test:watch": "vitest",
47
+ "test:ui": "vitest --ui",
48
+ "test:coverage": "vitest run --coverage",
49
+ "test:a11y": "vitest run --grep accessibility",
50
+ "test:perf": "vitest run --grep performance",
51
+ "test:a11y:ci": "pa11y-ci",
52
+ "prepublishOnly": "npm run clean && npm run type-check && npm run lint && npm run build && npm run test",
53
+ "prepack": "npm run build",
54
+ "clean": "rm -rf dist",
55
+ "preversion": "npm run test",
56
+ "version": "npm run build",
57
+ "postversion": "git push && git push --tags"
58
+ },
59
+ "keywords": [
60
+ "design-system",
61
+ "component-library",
62
+ "ui-components",
63
+ "react",
64
+ "typescript",
65
+ "tailwindcss",
66
+ "radix-ui",
67
+ "accessibility",
68
+ "a11y",
69
+ "theme",
70
+ "tokens"
71
+ ],
72
+ "author": "ProjectDiscovery",
73
+ "license": "MIT",
74
+ "repository": {
75
+ "type": "git",
76
+ "url": "git+https://github.com/projectdiscovery/pd-design.git"
77
+ },
78
+ "homepage": "https://github.com/projectdiscovery/pd-design#readme",
79
+ "bugs": {
80
+ "url": "https://github.com/projectdiscovery/pd-design/issues"
81
+ },
82
+ "engines": {
83
+ "node": ">=18.0.0",
84
+ "npm": ">=9.0.0"
85
+ },
86
+ "sideEffects": false,
87
+ "publishConfig": {
88
+ "access": "public"
89
+ },
90
+ "peerDependencies": {
91
+ "react": "^18.0.0",
92
+ "react-dom": "^18.0.0"
93
+ },
94
+ "dependencies": {
95
+ "@radix-ui/react-checkbox": "^1.0.4",
96
+ "@radix-ui/react-dialog": "^1.0.5",
97
+ "@radix-ui/react-dropdown-menu": "^2.0.6",
98
+ "@radix-ui/react-label": "^2.0.2",
99
+ "@radix-ui/react-popover": "^1.0.6",
100
+ "@radix-ui/react-radio-group": "^1.1.3",
101
+ "@radix-ui/react-select": "^2.0.0",
102
+ "@radix-ui/react-slot": "^1.0.2",
103
+ "@radix-ui/react-switch": "^1.0.3",
104
+ "@radix-ui/react-toast": "^1.1.5",
105
+ "@radix-ui/react-tooltip": "^1.0.7",
106
+ "class-variance-authority": "^0.7.0",
107
+ "clsx": "^2.1.0",
108
+ "lucide-react": "^0.562.0",
109
+ "tailwind-merge": "^2.2.0"
110
+ },
111
+ "devDependencies": {
112
+ "@storybook/addon-a11y": "^7.6.17",
113
+ "@storybook/addon-essentials": "^7.6.17",
114
+ "@storybook/addon-interactions": "^7.6.17",
115
+ "@storybook/addon-links": "^7.6.17",
116
+ "@storybook/blocks": "^7.6.17",
117
+ "@storybook/react": "^7.6.17",
118
+ "@storybook/react-vite": "^7.6.17",
119
+ "@storybook/test": "^7.6.17",
120
+ "@testing-library/jest-dom": "^6.1.5",
121
+ "@testing-library/react": "^14.1.2",
122
+ "@testing-library/user-event": "^14.5.1",
123
+ "@types/jest-axe": "^3.5.9",
124
+ "@types/node": "^20.11.5",
125
+ "@types/react": "^18.2.48",
126
+ "@types/react-dom": "^18.2.17",
127
+ "@typescript-eslint/eslint-plugin": "^6.19.1",
128
+ "@typescript-eslint/parser": "^6.19.1",
129
+ "@vitejs/plugin-react": "^4.2.1",
130
+ "@vitest/coverage-v8": "^1.2.0",
131
+ "@vitest/ui": "^1.2.0",
132
+ "autoprefixer": "^10.4.17",
133
+ "eslint": "^8.56.0",
134
+ "eslint-plugin-react": "^7.33.2",
135
+ "eslint-plugin-react-hooks": "^4.6.0",
136
+ "identity-obj-proxy": "^3.0.0",
137
+ "jest-axe": "^8.0.0",
138
+ "jsdom": "^23.0.1",
139
+ "pa11y-ci": "^3.0.1",
140
+ "postcss": "^8.4.33",
141
+ "postcss-cli": "^11.0.1",
142
+ "react": "^18.2.0",
143
+ "react-dom": "^18.2.0",
144
+ "storybook": "^7.6.17",
145
+ "tailwindcss": "^3.4.1",
146
+ "tsup": "^8.0.1",
147
+ "tsx": "^4.21.0",
148
+ "typescript": "^5.3.3",
149
+ "vite": "^5.0.11",
150
+ "vitest": "^1.2.0"
151
+ }
152
+ }