Ryan Gossiaux
5fdd47b435
Refactor types out into types.ts file and use /// <reference types="...">
...
Fixes packaging problems.
2022-03-18 11:19:25 -07:00
Ryan Gossiaux
cc27615e96
Add JSDoc comments
...
Yay
2022-03-18 11:19:25 -07:00
Ryan Gossiaux
d7f6a58753
Add default as prop type for when as= is not provided
2022-03-18 11:19:25 -07:00
Ryan Gossiaux
a582f79170
Type Switch using $$Props
2022-03-18 11:19:25 -07:00
Ryan Gossiaux
bfc68577cc
Add better event typing
...
The any types could probably be improved with $$Generic
2022-01-31 21:15:00 -08:00
Ryan Gossiaux
a7e8be2c14
Add type=button handling
...
Fixes #22
2021-12-22 13:07:16 -08:00
Ryan Gossiaux
6bb8554890
Rename slot to slotProps in <Render>
...
Conflicted with Svelte's use of the `slot` attribute
2021-12-20 18:26:12 -08:00
Ryan Gossiaux
4388273b8b
Add <Render> to Switch
2021-12-20 18:15:28 -08:00
Ryan Gossiaux
f105042545
Clean up store types & initial values
...
Treating these as Readable for better safety from consuming code
Fixes #10
2021-12-19 01:08:50 -08:00
Ryan Gossiaux
8e890b2e80
Standardize event names to be consistent with @headlessui-react
...
Was previously using Vue names since Vue was the primary reference while porting, but as the public API is closer to the React one it makes sense to use that.
Fixes #8
2021-12-19 00:29:34 -08:00
Ryan Gossiaux
c5ed870827
Assorted fixes
...
Type fixes, support a couple more classes as functions for the examples, and switch TabPanels to registering ids instead of refs
2021-12-17 14:22:19 -08:00
Ryan Gossiaux
da6d2c3be6
Fix more TS errors in strict mode
2021-12-15 14:49:19 -08:00
Ryan Gossiaux
5b36ce9404
Fix various type errors with strict mode
2021-12-15 14:06:33 -08:00
Ryan Gossiaux
543c1263e3
Also fix label/description context usage
2021-12-15 10:31:14 -08:00
Ryan Gossiaux
dbfb2c227e
Move contexts over to useXContext model
...
Fixes #4
2021-12-15 10:13:01 -08:00
Ryan Gossiaux
82b138f0ae
Run prettier over everything and fix some imports
2021-12-13 18:22:16 -08:00
Ryan Gossiaux
db9ec57065
Initial commit with files
...
Still need to fix the imports
2021-12-13 17:13:47 -08:00