Commit Graph

9 Commits

Author SHA1 Message Date
Jordan Pittman 20a224aaa4 Fix state data attribute in Vue (#2787)
* Add tests

* Fix state data attribute in Vue
2023-10-04 13:39:26 -04:00
Robin Malfait f2179f36c0 further improve import sorting 2023-09-11 19:09:53 +02:00
Robin Malfait 76dd10ea55 Sort imports automatically (#2741)
* add `prettier-plugin-organize-imports` and `prettier-plugin-tailwindcss`

* format

* bump Tailwind CSS

* format playgrounds using updated Tailwind CSS and Prettier plugins

* use import syntax
2023-09-11 18:36:30 +02:00
Robin Malfait 0260afa2df Properly merge incoming props with own props (#1651)
* sort props in error message

This will make the error message consistent regardless which props (and
in what order) they are applied.

* WIP

* `click()` on a disabled element should no-op

* incomingProps was already merged

* cleanup tests a bit and make it consistent with the React tests

* cleanup unused code

* update changelog
2022-07-07 17:01:45 +02:00
Robin Malfait f2fc6d823b fix TypeScript issues (#1587)
We had a bunch of unused imports sitting around
2022-06-14 15:04:22 +02:00
Jordan Pittman 70333a9ccd Support <slot> children when using as="template" (#1548)
* Extract renderTemplate logic

* Flatten Fragments when rendering

* Update changelog
2022-06-03 09:58:11 -04:00
Robin Malfait fdd2629795 Improve overal codebase, use modern tech like esbuild and TypeScript 4! (#1055)
* use esbuild for React instead of tsdx

* remove tsdx from Vue

* use consistent names

* add jest and prettier

* update scripts

* ignore some folders for prettier

* run lint script instead of tsdx lint

* run prettier en-masse

This has a few changes because of the new prettier version.

* bump typescript to latest version

* make typescript happy

* cleanup playground package.json

* make esbuild a dev dependency

* make scripts consistent

* fix husky hooks

* add dedicated watch script

* add `yarn playground-react` and `yarn react-playground` (alias)

This will make sure to run a watcher for the actual @headlessui/react
package, and start a development server in the playground-react package.

* ignore formatting in the .next folder

* run prettier on playground-react package

* setup playground-vue

Still not 100% working, but getting there!

* add playground aliases in @headlessui/vue and @headlessui/react

This allows you to run `yarn react playground` or `yarn vue playground`
from the root.

* add `clean` script

* move examples folder in playground-vue to root

* ensure new lines for consistency in scripts

* fix typescript issue

* fix typescript issues in playgrounds

* make sure to run prettier on everything it can

* run prettier on all files

* improve error output

If you minify the code, then it could happen that the errors are a bit
obscure. This will hardcode the component name to improve errors.

* add the `prettier-plugin-tailwindcss` plugin, party!

* update changelog
2022-01-27 17:07:38 +01:00
Robin Malfait cdfeeacf43 cleanup unnecesary dependencies 2021-04-08 13:04:03 +02:00
Robin Malfait 8feec8c933 fix validation for Vue render function (#310)
We didn't take functional components into account, therefore we would
receive errors because a Transition component is a functional component
in production and we didn't take that into account.
2021-04-07 12:41:09 +02:00