Commit Graph

18 Commits

Author SHA1 Message Date
Ryan Gossiaux
42d792e72c Type Transition with $$Props
But getting some cryptic errors
2022-03-18 11:19:25 -07:00
Ryan Gossiaux
3c9dcc9b67 Move to using writable<T> syntax 2022-02-17 16:42:19 -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
39dda7eb76 Refactor out circular dependency in Transition components
This was causing problems with Jest even though it was otherwise fine.
2021-12-26 12:01:18 -08:00
Ryan Gossiaux
96b165acc0 Fix two issues with Transitions
* TransitionChild's initial state was wrong with unmount=false
* entered classes were not being removed correctly at the start of a transition
2021-12-22 11:59:18 -08:00
Ryan Gossiaux
d21287eace Support Features rendering / static/unmount props
Fixes #1
2021-12-22 11:55:52 -08:00
Ryan Gossiaux
aa3017990d Move Transition to <Render> 2021-12-20 22:55:35 -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
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
2c8be5047d Fix Transition events
In Svelte the component updates/unmount happen in a different order than in React. The `mounted` guard doesn't work in Svelte and needs a different approach.
2021-12-18 15:41:18 -08:00
Ryan Gossiaux
4f74dd8ca9 Fix Transition undefined/null bug 2021-12-15 18:40:00 -08:00
Ryan Gossiaux
da6d2c3be6 Fix more TS errors in strict mode 2021-12-15 14:49:19 -08:00
Ryan Gossiaux
f1edb17609 Fix transitioning away
Fixes #17

The root problem here, which took me ages to find, was that `state` should not be reactive. It should only be set once the child has finished, via the nesting context.
2021-12-14 22:56:55 -08:00
Ryan Gossiaux
0185f9f9f6 Don't render Transition contents if they're not visible
Fixes #14
2021-12-14 13:54:34 -08:00
Ryan Gossiaux
a4e55d7167 Fix TransitionRoot inheriting state from other components 2021-12-13 21:57:34 -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