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
20e5360291
Remove extra open= prop in dialog example
...
I mistakenly added this in reaction to an error
2021-12-14 22:54:59 -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
47c6918fd2
Fix PortalGroup context
2021-12-14 16:01:47 -08:00
Ryan Gossiaux
7de1e35524
Add index.ts files
2021-12-14 15:28:26 -08:00
Ryan Gossiaux
4fb49c546a
Add wrapper for TransitionChild
2021-12-14 15:28:05 -08:00
Ryan Gossiaux
b0e2c3d619
Remove busted tailwind button focus classes
...
The examples repo is using an old version of tailwind + a plugin. shadow-outline-foo doesn't exist in base Tailwind and I cba to find the equivalent right now.
2021-12-14 13:55:21 -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
02bb968396
Fix initial focus issues with Dialog
...
Fixes #15
2021-12-14 13:19:58 -08:00
Ryan Gossiaux
a647f7eb87
git rm use-effect.ts
...
Wasn't using this since it doesn't work
2021-12-14 12:05:17 -08:00
Ryan Gossiaux
9d7f56cdcd
Minor tweaks to default values
2021-12-14 12:04:23 -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
5468a38a45
Add focus style back to css
...
Just for easier debugging of focus
2021-12-14 11:09:53 -08:00
Ryan Gossiaux
70a4a814b7
Bring back the popper & portal in dialog example
2021-12-14 11:08:36 -08:00
Ryan Gossiaux
0fe7b0ea04
Add action forwarding and add to Menu
2021-12-13 22:08:22 -08:00
Ryan Gossiaux
092fdd595d
Some updates to dialog example
2021-12-13 21:57:53 -08:00
Ryan Gossiaux
a4e55d7167
Fix TransitionRoot inheriting state from other components
2021-12-13 21:57:34 -08:00
Ryan Gossiaux
263cbd0483
npx svelte-add tailwindcss
2021-12-13 21:05:36 -08:00
Ryan Gossiaux
53adc38513
Add initial Dialog example
2021-12-13 21:03:36 -08:00
Ryan Gossiaux
5cc50973e4
Fixes to Dialog
2021-12-13 21:03:25 -08:00
Ryan Gossiaux
a12b64faed
Fix a few more misc issues (TS errors, dupe files)
2021-12-13 19:01:59 -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
Ryan Gossiaux
42aba8a158
npm init svelte@next svelte-headlessui
2021-12-13 16:46:03 -08:00