Commit Graph

256 Commits

Author SHA1 Message Date
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
5e17e2cb56 Upgrade typescript 2022-03-18 11:19:25 -07:00
Ryan Gossiaux
10489a2723 Correct the SvelteComponent type 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
42d792e72c Type Transition with $$Props
But getting some cryptic errors
2022-03-18 11:19:25 -07:00
Ryan Gossiaux
f03512d07c Type RadioGroup with $$Props 2022-03-18 11:19:25 -07:00
Ryan Gossiaux
a193729ea9 Type Popover with $$Props 2022-03-18 11:19:25 -07:00
Ryan Gossiaux
8e57b808b8 Type Dialog with $$Props 2022-03-18 11:19:25 -07:00
Ryan Gossiaux
696b25eb95 Type Disclosure with $$Props 2022-03-18 11:19:25 -07:00
Ryan Gossiaux
231775e60b Type Listbox with $$Props 2022-03-18 11:19:25 -07:00
Ryan Gossiaux
168f7f1e3d Type Menu with $$Props 2022-03-18 11:19:25 -07:00
Ryan Gossiaux
6bc781b86e Type Tabs using $$Props 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
91a7660f08 Type <Render> using $$Props 2022-03-18 11:19:25 -07:00
Ryan Gossiaux
38d1235335 docs: Add a little padding to tables
Fixes #77
2022-03-07 22:14:59 -08:00
Ryan Gossiaux
99e1898665 docs: fix up transition docs 2022-03-07 16:36:08 -08:00
Ryan Gossiaux
1bf36a1bf2 docs: Tweak TOC rootMargin parameter
To take into account the top header.
2022-03-07 12:08:17 -08:00
Ryan Gossiaux
4bc81d38f4 1.0.0-beta.12 2022-03-06 23:59:57 -08:00
Ryan Gossiaux
39a8b57c36 Fix implementation of #78
Brain fart when writing and testing the first attempt.
I can only actually reproduce the underlying issue in the REPL so I haven't confirmed that this fixes it.
2022-03-06 23:57:32 -08:00
Ryan Gossiaux
b2a288c874 1.0.0-beta.11 2022-03-06 23:36:22 -08:00
Ryan Gossiaux
026b187890 Add TransitionRoot alias for Transition
Fixes #46
2022-03-06 23:33:39 -08:00
Ryan Gossiaux
fada4f28a5 Move the portal root to the bottom of the target after initial render
Fixes #78
2022-03-06 22:58:18 -08:00
Ryan Gossiaux
3014990142 Do not pass static down to underlying HTML elements
Since it was not explicitly exported it appeared in $$restProps. Harmless, but clutters up the HTML.
2022-03-06 15:51:39 -08:00
Ryan Gossiaux
096390554c docs: fix MenuItem slot prop 2022-03-05 17:55:21 -08:00
Ryan Gossiaux
d6f89e5d93 [docs] tweak padding
Mainly as a hacky workaround for the dialog example not showing up correctly on the smallest screen size.
2022-03-02 21:55:02 -08:00
Ryan Gossiaux
f328881466 [docs] sidebar: more spacing (for mobile), add vertical scrolling 2022-03-02 14:00:12 -08:00
Ryan Gossiaux
0b9d4823e8 [docs] Refactor sidebar to have it pop out on mobile 2022-03-02 13:30:49 -08:00
Ryan Gossiaux
fbb6ad9ded Revert "Update kit & adapter packages"
This reverts commit 7fc9629975.

This is causing an iframe issue on navigation.
2022-03-02 00:45:15 -08:00
Ryan Gossiaux
d61dee4530 Revert "Use adapter-static instead"
This reverts commit 7d58d44971.

Looks like this doesn't work with Vercel and I cba to debug
2022-03-02 00:26:36 -08:00
Ryan Gossiaux
7d58d44971 Use adapter-static instead 2022-03-02 00:22:04 -08:00
Ryan Gossiaux
229f81c462 Fix flash of unstyled content issue
The style reset also resets the CSS import so we need to duplicate it.
2022-03-02 00:13:28 -08:00
Ryan Gossiaux
7fc9629975 Update kit & adapter packages 2022-03-02 00:13:01 -08:00
Ryan Gossiaux
c73ac8b9f1 Add website to package.json 2022-03-01 13:35:13 -08:00
rgossiaux
9dd377f061 Update README.md 2022-03-01 13:32:54 -08:00
rgossiaux
57af9b5770 Update README.md
Add docs site link
2022-03-01 13:32:07 -08:00
rgossiaux
9b43312735 Initial docs (#61)
Add initial documentation site.

Co-authored-by: ambiguous48 <33713262+ambiguous48@users.noreply.github.com>
2022-03-01 13:14:53 -08:00
Ryan Gossiaux
01954a0693 Fix focus trap issue with static Dialog components
We need a tick() when the focus trap is enabled, to wait for other updates to be applied first. Noticed this when playing around in the REPL.
2022-02-28 15:00:06 -08:00
Ryan Gossiaux
f5875ef810 1.0.0-beta.10 2022-02-27 15:26:14 -08:00
Ryan Gossiaux
b18fd2093b Manually clean up <Portal> on destroy
Fixes #68

In some cases, when Svelte sees a parent and a child, it will detach the parent and assume that this suffices to detach the child. However, the <Portal> moves elements around in the DOM, so this assumption does not always hold. We need to make sure we detach the portal element ourselves.
2022-02-27 15:24:14 -08:00
Ryan Gossiaux
87aadf2490 Fix style attribute getting wiped away incorrectly
This fixes an issue where any update to a component would un-set the `style` attribute, which interacts poorly with actions that use inline styles (like Popper)
2022-02-25 18:41:12 -08:00
Ryan Gossiaux
3c9dcc9b67 Move to using writable<T> syntax 2022-02-17 16:42:19 -08:00
Ryan Gossiaux
87360c0196 Fix type errors in classNames() in routes/ 2022-02-08 23:50:29 -08:00
Ryan Gossiaux
894aee1b55 npm update svelte-check 2022-02-08 23:48:31 -08:00
Ryan Gossiaux
be1bd8736c Fix incorrect html-for= => for= in a couple examples
Caught by the new transformation: `npm run check -- --use-new-transformation`
2022-02-08 18:34:31 -08:00
rgossiaux
26958edf06 Add issue templates 2022-02-06 18:07:50 -08:00
Ryan Gossiaux
a8d145d421 1.0.0-beta.9 2022-02-06 11:16:45 -08:00
Ryan Gossiaux
78ec3bfb8a Update package command to replace process.env.NODE_ENV automatically 2022-02-06 11:16:45 -08:00
rgossiaux
13e090e316 Update README.md
Add -D to npm install per https://github.com/sveltejs/sapper/issues/774
2022-02-02 10:50:35 -08:00
Ryan Gossiaux
495fa64bf9 Support style as a function
Seems useful to add.

Also improve the prop typing of <Render>, marginally, though as these types do not carry over to end users yet, it's just cosmetic for now.
2022-02-01 12:38:35 -08:00