Commit Graph

15 Commits

Author SHA1 Message Date
Ryan Gossiaux
a193729ea9 Type Popover with $$Props 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
bc809ef590 Workaround tabIndex=-1 added to document body by SvelteKit
This ends up producing a lot of extra focus events that normally would not exist.

Fixes #36
Fixes #39
2022-01-21 16:17:16 -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
cfe1aaa55e Switch Popover to <Render>
Also fix a bug where PopoverPanel was missing an id
2021-12-20 22:28:46 -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
63d44e125c Improve a few more types, including StateDefinition["foo"] usage
Fixes #5
2021-12-19 00:09:44 -08:00
Ryan Gossiaux
70910c05b0 Standardize context naming
Fixes #7
2021-12-18 23:18:45 -08:00
Ryan Gossiaux
1966219b30 Refactor Popover stores/contexts 2021-12-18 22:36:57 -08:00
Ryan Gossiaux
9e45d92929 Refactor to useOpenClosed
Fixes #6
2021-12-18 21:36:09 -08:00
Ryan Gossiaux
f5130c6cc1 Add use= support to Popover
Fixes #21

Not sure it's worth doing this component by component instead of figuring out <Render> first but w/e
2021-12-16 16:35:09 -08:00
Ryan Gossiaux
da6d2c3be6 Fix more TS errors in strict mode 2021-12-15 14:49:19 -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