Commit Graph

21 Commits

Author SHA1 Message Date
Jordan Pittman c25e2e6036 Fix CJS types (#2880)
* Fix Vue type error

* Add separate CTS types

* Add “Are The Types Wrong” CLI

* wip

* Bump node versions in workflows

* wip

* wip

* wip

* yolo

* yolo (again?)

* wip

* wip
2023-12-12 11:43:34 -05:00
Nestor Vera d4a94cb564 Add missing variants to README.md (#2769) 2023-09-25 12:48:59 +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 954a3acc9c 0.2.0 - @headlessui/tailwindcss 2023-07-27 16:23:56 +02:00
Robin Malfait 510cb6e177 update changelog 2023-07-27 16:23:12 +02:00
Robin Malfait d29b3cd7d1 add test for the ui-not-focus-visible variant 2023-07-27 16:23:12 +02:00
Robin Malfait e644d97e83 update changelog 2023-07-27 16:15:42 +02:00
Brad Cornes 685a6a8de6 Add not-focus-visible variant to Tailwind plugin (#2618) 2023-07-27 10:41:50 +01:00
Robin Malfait 8acbd6e18c 0.1.3 - @headlessui/tailwindcss 2023-04-12 19:05:04 +02:00
Robin Malfait 33088ad8a4 update changelog 2023-04-12 19:04:31 +02:00
Robin Malfait a607e12fd7 update changelog 2023-04-12 18:53:14 +02:00
Luud Janssen e814c5022d Add ESM and types paths to package.json for TailwindCSS plugin (#2382)
* Add ESM and `types` paths to `package.json` for TailwindCSS plugin

* Move `types` declaration to first key in `exports`
2023-03-22 08:56:43 -04:00
Robin Malfait 0c0601f87a Fix focus styles showing up when using the mouse (#2347)
* update playground examples to use a shared `Button`

* expose a `ui-focus-visible` variant

* keep track of a `data-headlessui-focus-visible` attribute

* do not set the `tabindex`

The focus was always set, but the ring wasn't showing up. This was also
focusing a ring when the browser decided not the add one.

Let's make the browser decide when to show this or not.

* update changelog
2023-03-10 22:00:35 +01:00
Robin Malfait 2f0dc8ce0a 0.1.2 - @headlessui/tailwindcss 2022-12-06 09:01:18 +01:00
Robin Malfait 8e1e19f94c Move tailwindcss to devDependencies (#2040)
* move tailwindcss to devDependencies

* update changelog
2022-11-22 11:48:16 +01:00
Robin Malfait d2a0bdb4d4 @headlessui/tailwindcss0.1.1 2022-09-06 16:29:26 +02:00
Robin Malfait 6253aa52b3 Fix bracket order of not variants (#1621)
* fix order of brackets in selector

* setup tests for `@headlessui/tailwindcss`

* update changelog
2022-06-26 00:48:07 +02:00
Robin Malfait d3ed3f5d26 Split CHANGELOG.md into file per package (#1516)
* splitup CHANGELOG.md file

Scope each changelog per package

* simplify CHANGELOG.md files

We don't need to scope them anymore, they are already scoped.
2022-05-28 18:25:41 +02:00
Robin Malfait df481f3825 0.1.0 - @headlessui/tailwindcss 2022-05-24 23:34:07 +02:00
Robin Malfait 0a81444448 update README 2022-05-24 23:30:17 +02:00
Robin Malfait 39c5bd3230 Add @headlessui/tailwindcss plugin (#1487)
* add `@headlessui/tailwindcss` plugin

* expose `data-headlessui-state="..."` data attribute

All components that expose boolean props in their render prop / v-slot
will receive a `data-headlessui-state="..."` attribute.

If it exposes boolean values but all are false, then there will be an
empty `data-headlessui-state=""`. If the current component is rendering
a `Fragment` then we don't expose those attributes.

* use tailwindcss in `playground-react` and `playground-vue`

We were using the CDN, but now that we have the
`@headlessui/tailwindcss` plugin, it's a bit easier to configure it
natively and import the plugin.

* ensure to build the `@headlessui/tailwindcss` package before starting the playground

* refactor `listbox` example to use the @headlessui/tailwindcss plugin

* update changelog

* bump Tailwind CSS to latest insiders version

* correctly generate types

* type `tailwind.config.js` files for playgrounds

* add todo for when `:has()` is available
2022-05-24 22:51:02 +02:00