praxis-kit 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 +77 -0
- package/dist/_shared/diagnostics.d.ts +312 -0
- package/dist/_shared/diagnostics.js +360 -0
- package/dist/build-runtime-CJ_nQEaZ.js +5065 -0
- package/dist/codemod/index.d.ts +2 -0
- package/dist/codemod/index.js +176520 -0
- package/dist/contract/index.d.ts +677 -0
- package/dist/contract/index.js +341 -0
- package/dist/eslint/index.d.ts +90 -0
- package/dist/eslint/index.js +1047 -0
- package/dist/guards/index.d.ts +78 -0
- package/dist/guards/index.js +118 -0
- package/dist/html/index.d.ts +151 -0
- package/dist/html/index.js +1244 -0
- package/dist/index-BIBd_iPD.d.ts +951 -0
- package/dist/lit/index.d.ts +862 -0
- package/dist/lit/index.js +4893 -0
- package/dist/preact/index.d.ts +796 -0
- package/dist/preact/index.js +5043 -0
- package/dist/react/index.d.ts +28 -0
- package/dist/react/index.js +205 -0
- package/dist/react/legacy.d.ts +29 -0
- package/dist/react/legacy.js +80 -0
- package/dist/solid/index.d.ts +728 -0
- package/dist/solid/index.js +4821 -0
- package/dist/svelte/Polymorphic.svelte +190 -0
- package/dist/svelte/_polymorphic-runtime.d.ts +102 -0
- package/dist/svelte/_polymorphic-runtime.js +371 -0
- package/dist/svelte/index.d.ts +994 -0
- package/dist/svelte/index.js +4482 -0
- package/dist/tailwind/index.d.ts +197 -0
- package/dist/tailwind/index.js +767 -0
- package/dist/tailwind/safelist.css +20 -0
- package/dist/ts-plugin/index.cjs +166 -0
- package/dist/ts-plugin/index.d.cts +9 -0
- package/dist/utils/index.d.ts +19 -0
- package/dist/utils/index.js +21 -0
- package/dist/vite-plugin/index.d.ts +200 -0
- package/dist/vite-plugin/index.js +2106 -0
- package/dist/vue/index.d.ts +729 -0
- package/dist/vue/index.js +4945 -0
- package/dist/web/index.d.ts +832 -0
- package/dist/web/index.js +4868 -0
- package/package.json +258 -0
package/package.json
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "praxis-kit",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"description": "Praxis Kit — HTML semantics, ARIA requirements, and component composition rules as executable contracts, shared across every framework adapter. The single npm package for all adapters and tooling.",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./package.json": "./package.json",
|
|
9
|
+
"./react": {
|
|
10
|
+
"types": "./dist/react/index.d.ts",
|
|
11
|
+
"import": "./dist/react/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./react/legacy": {
|
|
14
|
+
"types": "./dist/react/legacy.d.ts",
|
|
15
|
+
"import": "./dist/react/legacy.js"
|
|
16
|
+
},
|
|
17
|
+
"./preact": {
|
|
18
|
+
"types": "./dist/preact/index.d.ts",
|
|
19
|
+
"import": "./dist/preact/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./vue": {
|
|
22
|
+
"types": "./dist/vue/index.d.ts",
|
|
23
|
+
"import": "./dist/vue/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./solid": {
|
|
26
|
+
"types": "./dist/solid/index.d.ts",
|
|
27
|
+
"import": "./dist/solid/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./svelte": {
|
|
30
|
+
"types": "./dist/svelte/index.d.ts",
|
|
31
|
+
"import": "./dist/svelte/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./svelte/Polymorphic.svelte": {
|
|
34
|
+
"svelte": "./dist/svelte/Polymorphic.svelte"
|
|
35
|
+
},
|
|
36
|
+
"./lit": {
|
|
37
|
+
"types": "./dist/lit/index.d.ts",
|
|
38
|
+
"import": "./dist/lit/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./web": {
|
|
41
|
+
"types": "./dist/web/index.d.ts",
|
|
42
|
+
"import": "./dist/web/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./tailwind": {
|
|
45
|
+
"types": "./dist/tailwind/index.d.ts",
|
|
46
|
+
"import": "./dist/tailwind/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./tailwind.css": "./dist/tailwind/safelist.css",
|
|
49
|
+
"./eslint": {
|
|
50
|
+
"types": "./dist/eslint/index.d.ts",
|
|
51
|
+
"import": "./dist/eslint/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./ts-plugin": {
|
|
54
|
+
"types": "./dist/ts-plugin/index.d.cts",
|
|
55
|
+
"require": "./dist/ts-plugin/index.cjs"
|
|
56
|
+
},
|
|
57
|
+
"./vite-plugin": {
|
|
58
|
+
"types": "./dist/vite-plugin/index.d.ts",
|
|
59
|
+
"import": "./dist/vite-plugin/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./codemod": {
|
|
62
|
+
"types": "./dist/codemod/index.d.ts",
|
|
63
|
+
"import": "./dist/codemod/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./contract": {
|
|
66
|
+
"types": "./dist/contract/index.d.ts",
|
|
67
|
+
"import": "./dist/contract/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./guards": {
|
|
70
|
+
"types": "./dist/guards/index.d.ts",
|
|
71
|
+
"import": "./dist/guards/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./html": {
|
|
74
|
+
"types": "./dist/html/index.d.ts",
|
|
75
|
+
"import": "./dist/html/index.js"
|
|
76
|
+
},
|
|
77
|
+
"./utils": {
|
|
78
|
+
"types": "./dist/utils/index.d.ts",
|
|
79
|
+
"import": "./dist/utils/index.js"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"typesVersions": {
|
|
83
|
+
"*": {
|
|
84
|
+
"react": [
|
|
85
|
+
"./dist/react/index.d.ts"
|
|
86
|
+
],
|
|
87
|
+
"react/legacy": [
|
|
88
|
+
"./dist/react/legacy.d.ts"
|
|
89
|
+
],
|
|
90
|
+
"preact": [
|
|
91
|
+
"./dist/preact/index.d.ts"
|
|
92
|
+
],
|
|
93
|
+
"vue": [
|
|
94
|
+
"./dist/vue/index.d.ts"
|
|
95
|
+
],
|
|
96
|
+
"solid": [
|
|
97
|
+
"./dist/solid/index.d.ts"
|
|
98
|
+
],
|
|
99
|
+
"lit": [
|
|
100
|
+
"./dist/lit/index.d.ts"
|
|
101
|
+
],
|
|
102
|
+
"web": [
|
|
103
|
+
"./dist/web/index.d.ts"
|
|
104
|
+
],
|
|
105
|
+
"svelte": [
|
|
106
|
+
"./dist/svelte/index.d.ts"
|
|
107
|
+
],
|
|
108
|
+
"tailwind": [
|
|
109
|
+
"./dist/tailwind/index.d.ts"
|
|
110
|
+
],
|
|
111
|
+
"eslint": [
|
|
112
|
+
"./dist/eslint/index.d.ts"
|
|
113
|
+
],
|
|
114
|
+
"ts-plugin": [
|
|
115
|
+
"./dist/ts-plugin/index.d.cts"
|
|
116
|
+
],
|
|
117
|
+
"vite-plugin": [
|
|
118
|
+
"./dist/vite-plugin/index.d.ts"
|
|
119
|
+
],
|
|
120
|
+
"codemod": [
|
|
121
|
+
"./dist/codemod/index.d.ts"
|
|
122
|
+
],
|
|
123
|
+
"contract": [
|
|
124
|
+
"./dist/contract/index.d.ts"
|
|
125
|
+
],
|
|
126
|
+
"guards": [
|
|
127
|
+
"./dist/guards/index.d.ts"
|
|
128
|
+
],
|
|
129
|
+
"html": [
|
|
130
|
+
"./dist/html/index.d.ts"
|
|
131
|
+
],
|
|
132
|
+
"utils": [
|
|
133
|
+
"./dist/utils/index.d.ts"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"bin": {
|
|
138
|
+
"praxis-codemod": "./dist/codemod/index.js"
|
|
139
|
+
},
|
|
140
|
+
"files": [
|
|
141
|
+
"dist",
|
|
142
|
+
"LICENSE"
|
|
143
|
+
],
|
|
144
|
+
"dependencies": {
|
|
145
|
+
"class-variance-authority": "^0.7.1",
|
|
146
|
+
"clsx": "^2.1.1",
|
|
147
|
+
"type-fest": "^5.9.0"
|
|
148
|
+
},
|
|
149
|
+
"peerDependencies": {
|
|
150
|
+
"@typescript-eslint/utils": ">=8",
|
|
151
|
+
"eslint": ">=9",
|
|
152
|
+
"lit": ">=3.0",
|
|
153
|
+
"preact": ">=10.11",
|
|
154
|
+
"react": ">=18",
|
|
155
|
+
"solid-js": ">=1.6",
|
|
156
|
+
"svelte": ">=5",
|
|
157
|
+
"typescript": ">=5",
|
|
158
|
+
"vite": ">=5",
|
|
159
|
+
"vue": ">=3.4"
|
|
160
|
+
},
|
|
161
|
+
"peerDependenciesMeta": {
|
|
162
|
+
"@typescript-eslint/utils": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
165
|
+
"eslint": {
|
|
166
|
+
"optional": true
|
|
167
|
+
},
|
|
168
|
+
"lit": {
|
|
169
|
+
"optional": true
|
|
170
|
+
},
|
|
171
|
+
"preact": {
|
|
172
|
+
"optional": true
|
|
173
|
+
},
|
|
174
|
+
"react": {
|
|
175
|
+
"optional": true
|
|
176
|
+
},
|
|
177
|
+
"solid-js": {
|
|
178
|
+
"optional": true
|
|
179
|
+
},
|
|
180
|
+
"svelte": {
|
|
181
|
+
"optional": true
|
|
182
|
+
},
|
|
183
|
+
"typescript": {
|
|
184
|
+
"optional": true
|
|
185
|
+
},
|
|
186
|
+
"vite": {
|
|
187
|
+
"optional": true
|
|
188
|
+
},
|
|
189
|
+
"vue": {
|
|
190
|
+
"optional": true
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"devDependencies": {
|
|
194
|
+
"@typescript-eslint/utils": "8.68.0",
|
|
195
|
+
"@types/node": "^26.4.1",
|
|
196
|
+
"@types/react": "^19.2.18",
|
|
197
|
+
"@types/react-dom": "^19.2.7",
|
|
198
|
+
"lit": "^3.3.3",
|
|
199
|
+
"preact": "^10.29.8",
|
|
200
|
+
"publint": "^0.3.24",
|
|
201
|
+
"react": "^19.2.8",
|
|
202
|
+
"react-dom": "^19.2.8",
|
|
203
|
+
"solid-js": "^1.9.15",
|
|
204
|
+
"svelte": "^5.57.0",
|
|
205
|
+
"tsdown": "^0.23.0",
|
|
206
|
+
"tsx": "^4.23.13",
|
|
207
|
+
"typescript": "^6.0.3",
|
|
208
|
+
"unplugin-solid": "^2.0.0",
|
|
209
|
+
"vite": "^8.2.2",
|
|
210
|
+
"vue": "^3.5.42",
|
|
211
|
+
"@praxis-kit/core": "0.0.0",
|
|
212
|
+
"@praxis-kit/diagnostics": "0.0.0",
|
|
213
|
+
"@praxis-kit/primitive": "0.0.0"
|
|
214
|
+
},
|
|
215
|
+
"publishConfig": {
|
|
216
|
+
"access": "public"
|
|
217
|
+
},
|
|
218
|
+
"repository": {
|
|
219
|
+
"type": "git",
|
|
220
|
+
"url": "git+https://github.com/slowebworkz/praxis-kit.git",
|
|
221
|
+
"directory": "packages/kit"
|
|
222
|
+
},
|
|
223
|
+
"homepage": "https://github.com/slowebworkz/praxis-kit#readme",
|
|
224
|
+
"bugs": {
|
|
225
|
+
"url": "https://github.com/slowebworkz/praxis-kit/issues"
|
|
226
|
+
},
|
|
227
|
+
"license": "MIT",
|
|
228
|
+
"author": "K Huehn <slowebworkz@gmail.com>",
|
|
229
|
+
"keywords": [
|
|
230
|
+
"praxis-kit",
|
|
231
|
+
"polymorphic",
|
|
232
|
+
"ui",
|
|
233
|
+
"components",
|
|
234
|
+
"accessibility",
|
|
235
|
+
"aria",
|
|
236
|
+
"typescript",
|
|
237
|
+
"framework-agnostic",
|
|
238
|
+
"contract",
|
|
239
|
+
"variants",
|
|
240
|
+
"react",
|
|
241
|
+
"preact",
|
|
242
|
+
"vue",
|
|
243
|
+
"solid",
|
|
244
|
+
"svelte",
|
|
245
|
+
"lit",
|
|
246
|
+
"web-components"
|
|
247
|
+
],
|
|
248
|
+
"engines": {
|
|
249
|
+
"node": ">=18"
|
|
250
|
+
},
|
|
251
|
+
"scripts": {
|
|
252
|
+
"build": "rm -rf dist && tsdown && tsx scripts/postbuild.ts",
|
|
253
|
+
"dev": "tsdown --watch",
|
|
254
|
+
"typecheck": "tsc --noEmit",
|
|
255
|
+
"lint:pkg": "publint",
|
|
256
|
+
"test:pack": "tsx scripts/smoke-test.ts"
|
|
257
|
+
}
|
|
258
|
+
}
|