Ryan Gossiaux
3c9dcc9b67
Move to using writable<T> syntax
2022-02-17 16:42:19 -08: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
6d2aa60d22
Use new TS option to preserve imports in tests
...
These assertions were here to prevent imports (needed for svelte-inine-compile) from being removed.
2022-01-17 23:59:29 -05:00
Ryan Gossiaux
a9d57659fb
Migrate Description to <Render> and pass slot props
2021-12-30 12:13:47 -10:00
Ryan Gossiaux
a2745e1770
Fixes to issues with Dialog, FocusTrap, and StackContextProvider
...
* StackContextProvider had some reactivity that didn't make sense and would cause an infinite loop if it ever triggered.
* FocusTrap and Dialog did not work together properly all of the time. A top-level <Dialog> with initial state of closed would not have the FocusTrap triggered correctly when it was opened. Needed to make it reactive to changes in `containers`
2021-12-26 16:28:37 -08:00
Ryan Gossiaux
3801d35d0f
Fix Dialog error message when bad props are passed
2021-12-26 11:48:13 -08:00
Ryan Gossiaux
d21287eace
Support Features rendering / static/unmount props
...
Fixes #1
2021-12-22 11:55:52 -08:00
Ryan Gossiaux
c73d9bf919
Add <Render> to Dialog
2021-12-20 18:34:38 -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
305dc1543f
$api?. => $api. when possible
...
Now that this stuff has all been cleaned up with useXContext functions
2021-12-18 23:56:37 -08:00
Ryan Gossiaux
70910c05b0
Standardize context naming
...
Fixes #7
2021-12-18 23:18:45 -08:00
Ryan Gossiaux
9e45d92929
Refactor to useOpenClosed
...
Fixes #6
2021-12-18 21:36:09 -08:00
Ryan Gossiaux
4a6edb4e1c
Fix some more type errors and turn on TS strict mode
...
Possible now that svelte2tsx has fixed a few bugs!
2021-12-18 18:48:15 -08:00
Ryan Gossiaux
5b36ce9404
Fix various type errors with strict mode
2021-12-15 14:06:33 -08:00
Ryan Gossiaux
df96d74003
A couple fixes to Dialog
...
Quickfix for SSR
Let it take open from OpenClose context properly
2021-12-14 22:54:06 -08:00
Ryan Gossiaux
543a6dba3d
Bind missing dialog ref
...
Fixes #12
Fixes #13
2021-12-14 12:03:01 -08:00
Ryan Gossiaux
5aea8065d3
Fixes to Dialog
...
Fix bad porting from useEffect--needs to run on destroy as well. Also fix a missing function invocation.
2021-12-14 12:01:42 -08:00
Ryan Gossiaux
5cc50973e4
Fixes to Dialog
2021-12-13 21:03:25 -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