Skip to content

Commit 4726cdf

Browse files
authored
Updated Readme and Package.json to support basic NPM pulls (#9)
1 parent 0f7e9d6 commit 4726cdf

18 files changed

+373
-437
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,19 @@ This can manifest in strange, but intentional, ways:
1010
- the existence of a `Fragment` component
1111
- ...
1212

13+
## Installation
14+
15+
```bash
16+
npm install @robotpajamas/headlessui-svelte
17+
```
18+
19+
## Documentation
20+
21+
Full documenation and examples will eventually live at [headlessui-svelte.com](headlessui-svelte.com)
22+
1323
## Progress
1424

15-
The target compatibility for the components below is based on [HeadlessUI React d71fb9c](https://github.com/tailwindlabs/headlessui/tree/d71fb9cd2e12f5a48617b26e6bb3db90b3e07965). A component is considered completed when most of the mapped-over tests pass, and the component functions similarly to [headlessui.com](headlessui.com).
25+
The target compatibility for the components below is based on [HeadlessUI React 2.2.0 (d71fb9c)](https://github.com/tailwindlabs/headlessui/tree/d71fb9cd2e12f5a48617b26e6bb3db90b3e07965). A component is considered completed when most of the mapped-over tests pass, and the component functions similarly to [headlessui.com](headlessui.com).
1626

1727
### Forms
1828

package.json

+36-24
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
{
2-
"name": "headlessui-svelte",
3-
"description": "An unofficial port of the HeadlessUI component library to Svelte 5.",
2+
"name": "@robotpajamas/headlessui-svelte",
3+
"version": "2.2.0-beta.1",
4+
"description": "An unofficial port of the HeadlessUI component library to Svelte 5+.",
5+
"homepage": "https://headlessui-svelte.com",
6+
"license": "MIT",
7+
"author": {
8+
"name": "SJ",
9+
"email": "[email protected]",
10+
"url": "https://sureshjoshi.com"
11+
},
12+
"repository": "github:robotpajamas/headlessui-svelte",
13+
"bugs": {
14+
"url": "https://github.com/robotpajamas/headlessui-svelte/issues"
15+
},
416
"keywords": [
517
"a11y",
618
"accessibility",
@@ -14,37 +26,40 @@
1426
"sveltejs",
1527
"tailwindcss"
1628
],
17-
"version": "0.0.1",
18-
"bugs": {
19-
"url": "https://github.com/robotpajamas/headlessui-svelte/issues"
20-
},
21-
"license": "MIT",
22-
"repository": "github:robotpajamas/headlessui-svelte",
2329
"scripts": {
2430
"dev": "vite dev",
2531
"build": "vite build && pnpm run package",
2632
"preview": "vite preview",
2733
"package": "svelte-kit sync && svelte-package && publint",
2834
"prepublishOnly": "pnpm run package",
29-
"test": "pnpm run test:integration && pnpm run test:unit",
3035
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
3136
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
32-
"lint": "deno fmt --check && deno lint",
3337
"format": "deno fmt",
34-
"test:integration": "playwright test",
38+
"lint": "deno fmt --check && deno lint",
39+
"test": "pnpm run test:unit -- --run && pnpm run test:e2e",
40+
"test:e2e": "playwright test",
3541
"test:unit": "vitest"
3642
},
43+
"files": [
44+
"dist",
45+
"!dist/**/*.test.*",
46+
"!dist/**/*.spec.*"
47+
],
48+
"sideEffects": [
49+
"**/*.css"
50+
],
51+
"svelte": "./dist/index.js",
52+
"types": "./dist/index.d.ts",
53+
"type": "module",
3754
"exports": {
3855
".": {
3956
"types": "./dist/index.d.ts",
4057
"svelte": "./dist/index.js"
4158
}
4259
},
43-
"files": [
44-
"dist",
45-
"!dist/**/*.test.*",
46-
"!dist/**/*.spec.*"
47-
],
60+
"publishConfig": {
61+
"access": "public"
62+
},
4863
"peerDependencies": {
4964
"svelte": ">=5"
5065
},
@@ -54,7 +69,7 @@
5469
"@sveltejs/kit": "^2.9.0",
5570
"@sveltejs/package": "^2.3.7",
5671
"@sveltejs/vite-plugin-svelte": "^5.0.1",
57-
"@tailwindcss/vite": "4.0.0-beta.5",
72+
"@tailwindcss/vite": "4.0.0-beta.6",
5873
"@testing-library/dom": "^10.4.0",
5974
"@testing-library/jest-dom": "^6.6.3",
6075
"@testing-library/svelte": "^5.2.6",
@@ -63,16 +78,13 @@
6378
"happy-dom": "^15.11.7",
6479
"jsdom": "^25.0.1",
6580
"publint": "^0.2.12",
66-
"svelte": "^5.6.0",
81+
"svelte": "^5.9.1",
6782
"svelte-check": "^4.1.1",
68-
"tailwindcss": "4.0.0-beta.5",
83+
"tailwindcss": "4.0.0-beta.6",
6984
"tslib": "^2.8.1",
7085
"typescript": "^5.7.2",
71-
"vite": "^6.0.2",
86+
"vite": "^6.0.3",
7287
"vitest": "^2.1.8"
7388
},
74-
"svelte": "./dist/index.js",
75-
"types": "./dist/index.d.ts",
76-
"type": "module",
77-
"packageManager": "[email protected]+sha512.c0f53ee99477ed969b82b289ad011a5d16bf1623c957e7f29eabe8d0c00b574c29b8c7f54f6c67ee710c73f285c8154d07ce44b46fe2c0eeb476a90441bac371"
89+
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
7890
}

0 commit comments

Comments
 (0)