Commit Graph

106 Commits

Author SHA1 Message Date
Ryan Gossiaux
b207405a1e Exclude test files from packaging 2021-12-26 17:41:58 -08:00
Ryan Gossiaux
76efee0e21 1.0.0-beta.4 2021-12-26 17:04:43 -08:00
Ryan Gossiaux
77dd80caa2 Add more Dialog tests
This caught an issue with <FocusTrap> already.
2021-12-26 16:53:44 -08: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
10f2eab08d Add initial batch of Dialog tests 2021-12-26 12:01:18 -08: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
3801d35d0f Fix Dialog error message when bad props are passed 2021-12-26 11:48:13 -08:00
Ryan Gossiaux
a033e8ca4a Add <Input> element
Most likely this is only useful for tests
2021-12-26 11:47:20 -08:00
Ryan Gossiaux
ea8693e1ec Add remaining Switch tests 2021-12-25 15:57:35 -08:00
Ryan Gossiaux
1156a0923e Add a few more Switch tests and the accessibility-assertions file 2021-12-25 08:30:41 -08:00
Ryan Gossiaux
e417a9956d npm install -D @testing-library/jest-dom 2021-12-25 08:30:41 -08:00
rgossiaux
4b4b6eba4e Github action for Jest (#26) 2021-12-25 01:27:54 -08:00
Ryan Gossiaux
237236f8d7 Add first test 2021-12-25 01:19:03 -08:00
Ryan Gossiaux
740d91ab06 Add initial test scaffolding 2021-12-25 01:19:03 -08:00
Ryan Gossiaux
ef5960377d npm install -D @testing-library/svelte 2021-12-25 01:19:03 -08:00
Ryan Gossiaux
ac826703a9 Config setup for jest testing 2021-12-25 01:19:03 -08:00
Ryan Gossiaux
3b4e2048c9 npm install -D jest babel-jest svelte-jester ts-jest @types/jest 2021-12-25 01:19:03 -08:00
rgossiaux
1b777011a1 Update README.md
Typos, minor tweaks
2021-12-22 18:37:25 -08:00
rgossiaux
dc26fb8844 Update README.md
Initial documentation
2021-12-22 18:34:09 -08:00
Ryan Gossiaux
9e72505fd3 1.0.0-beta.3 2021-12-22 16:55:48 -08:00
Ryan Gossiaux
b26cc4c6c3 Actually export dl/dd/dt 2021-12-22 16:55:33 -08:00
Ryan Gossiaux
8bfdac11a4 Bump to version 1.0.0-beta.2 2021-12-22 15:08:16 -08:00
Ryan Gossiaux
7a5c22cce0 Fix package 2021-12-22 15:07:33 -08:00
Ryan Gossiaux
014357833f Add <dt> <dd> <dl> element support for as= 2021-12-22 15:07:05 -08:00
Ryan Gossiaux
d91835c221 Update package.json for 1.0.0-beta.1 release 2021-12-22 14:03:05 -08:00
Ryan Gossiaux
a7e8be2c14 Add type=button handling
Fixes #22
2021-12-22 13:07:16 -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
7d413d6e34 Fix selected UI in tabs-with-pure-tailwind example 2021-12-21 11:43:53 -08:00
Ryan Gossiaux
b973fa6fe2 Move Tabs to <Render>
This is the last component to move to <Render>!
2021-12-20 23:19:31 -08:00
Ryan Gossiaux
aa3017990d Move Transition to <Render> 2021-12-20 22:55:35 -08:00
Ryan Gossiaux
7ff28492a2 Move RadioGroup to <Render> 2021-12-20 22:42:55 -08:00
Ryan Gossiaux
df0939fe22 Fix TransitionChild class when no class prop is passed 2021-12-20 22:29:13 -08: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
93e7148e1b Move Disclosure to <Render> 2021-12-20 19:26:04 -08:00
Ryan Gossiaux
c73d9bf919 Add <Render> to Dialog 2021-12-20 18:34:38 -08:00
Ryan Gossiaux
6bb8554890 Rename slot to slotProps in <Render>
Conflicted with Svelte's use of the `slot` attribute
2021-12-20 18:26:12 -08:00
Ryan Gossiaux
4388273b8b Add <Render> to Switch 2021-12-20 18:15:28 -08:00
Ryan Gossiaux
25a4b0f6e5 Add <Render> usage to <Listbox> 2021-12-20 17:47:02 -08:00
Ryan Gossiaux
5783a20cdc Modify event forwarding to allow opting out
For events which we dispatch ourselves, we can use this to skip the forwarding. Otherwise the listeners don't fire.

svelte-material-ui uses a custom dispatch to get around this issue, I think.
2021-12-20 17:44:20 -08:00
Ryan Gossiaux
31ac0934b0 Add Label custom element 2021-12-20 17:44:00 -08:00
Ryan Gossiaux
c69de8050f Convert Menu to <Render> 2021-12-20 15:46:51 -08:00
Ryan Gossiaux
dccb6fbbd9 Implement initial Render component
This supports everything except the RenderStrategy/hidden/unmount type stuff, while I'll add in a later commit.
2021-12-20 15:45:22 -08:00
Ryan Gossiaux
a84941285b Add initial batch of elements
May need to add more but this is a basic start
2021-12-20 15:44:23 -08:00
Ryan Gossiaux
2dbbec3c0b Add forwardEventsBuilder from svelte-material-ui 2021-12-20 15:43:54 -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
8e890b2e80 Standardize event names to be consistent with @headlessui-react
Was previously using Vue names since Vue was the primary reference while porting, but as the public API is closer to the React one it makes sense to use that.

Fixes #8
2021-12-19 00:29:34 -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
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