33 Commits

Author SHA1 Message Date
Philipp Spiess 0a8de016e8 Bring back issue template 2025-02-27 14:56:04 +01:00
Eng Zer Jun 2ff8458b00 Update CI workflows to use latest version of actions (#3445)
GitHub began the Node16 deprecation process a year ago [1][2]. This
commit updates CI workflows to use the latest Node20 actions.

[1]: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
[2]: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2024-09-01 18:17:28 +02:00
Robin Malfait b3fed0348a add link to documentation 2024-03-12 15:33:00 +01:00
saibotk 5a85d8089a CI: Add provenance to publised packages (#3023)
This commit adds provenance for all published packages. See the NPM documentation [0].

Provenance will allow people to verify that the headlessui packages were actually built on GH Actions and with the content of the corresponding commit. This will help with supply chain security.

For this to work, the `id-token` permission was added only where necessary.

[0]: https://docs.npmjs.com/generating-provenance-statements
2024-03-12 15:32:15 +01:00
Robin Malfait a73007388f Ensure playgrounds work + switch to npm workspaces (#2907)
* bump Next in playground

* convert legacy Link after Next.js bump

* update yarn.lock

* switch to npm workspaces

* move `packages/playground-*` to `playgrounds/*`

* use `npm` instead of `yarn`

* sync package-lock.json

* use node 20 for insiders releases
2024-01-03 14:26:12 +01:00
Robin Malfait 9159326bea skip checking types for now
Not really an issue with the types, but with this part of the GitHub
Actions
2023-12-20 20:12:39 +01:00
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
Robin Malfait 2b27d9f6a2 Improve release workflow (#2719)
* add scripts to help with automating releases

* add prepare-release and release workflows

* bump actions from v2 to v3

* use `github.ref_name` for getting the tag name

* ensure we use `**` for matching tags with slashes in them
2023-08-30 18:09:51 +02:00
Robin Malfait 11157a8024 include CodeSandbox links (#2488) 2023-06-28 12:23:13 +02:00
Robin Malfait af86b69d0d retry tests 3 times before failing (#2335)
Some tests are relying on timing specific tests and if the server
(GitHub Actions) is a bit busy, then this can result in flakey tests.

One day we will switch to tests in a real browser, but in the meantime
this should be enough.
2023-03-03 15:17:00 +01:00
Jordan Pittman 1127a55a76 Warn when changing Combobox between controlled and uncontrolled (#1878) 2022-10-10 10:41:15 -04:00
Jordan Pittman 8c7d5ce8d2 Run tests for PRs 2022-07-14 12:03:31 -04:00
Robin Malfait ec84c72ef9 Fix scrolling issue in Tab component when using arrow keys (#1584)
* prevent scrolling the page when using arrow keys in

* update changelog

* bump prettier

Does GitHub Actions have an incorrect cache somehow?

* use Active LTS in CI
2022-06-13 15:54:18 +02:00
Oludotun Ebiekuraju 63383c4bdc Fix typo in .github/CONTRIBUTING.md (#1232)
* Fix typo in .github/CONTRIBUTING.md

* trigger builds

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2022-03-10 23:17:13 +01:00
Robin Malfait 0c213b514d Improve concurrency of GitHub Actions (#1128)
* improve concurrency of GitHub Actions

This will allow you to cancel older running actions for the current PR /
branch. This saves you some resources, but more importantly hopefully
frees up some spots in the queue a bit faster.

Saw this on the Node.js repo: https://github.com/nodejs/node/pull/42017

* empty commit to trigger cancellation of previous commit
2022-02-21 23:37:36 +01:00
Robin Malfait 8e0e114153 document all scripts 2022-01-28 12:58:11 +01: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 1affad1271 Simplify and improve overall structure (#1044)
* simplify CI and make it consistent with CI of tailwindcss

* add contributing guidelines

* use correct org name

* ensure `yarn lint` is fully passing without warnings

* add subject to change message for `insiders` build
2022-01-17 15:46:18 +01:00
Robin Malfait 0252c6136e update GitHub action name 2021-11-08 11:14:12 +01:00
Robin Malfait b67729e7f6 Merge pull request #826 from tailwindlabs/develop
Next release
2021-11-08 11:10:27 +01:00
Robin Malfait a472b7bbb7 update issue templates 2021-10-30 13:05:48 +02:00
Robin Malfait f9e0d30795 Add automated release workflows (#853)
This commit also contains new code introduced after the PR in #853 was
merged. I just squashed it all together to prevent noisy commits to try
and fix CI.

The funny thing is that now the final commit looks fairly stupid/simple
but it wasn't that easy as I would have liked.

1. Couldn't find a proper way to execute `npm version` using yarn
   workspaces. `yarn workspaces foreach npm version` would have worked
   if we were using Yarn 2 instead of Yarn 1.
2. Introducing `version` and `publish` scripts in both packages worked,
   but then the default `version` and `publish` were also executed.
3. Once I made the scripts unique (`npm-version`,  `npm-publish`) it
   worked~ish. The registry was always set to a yarnpkg registry, even
   if we set the registry in CI and in a local .npmrc file. My guess is
   that we are executing in a nested directory and therefore it didn't
   work.
4. Next, I found the `npm workspaces` option so that we can use that in
   addition to `yarn workspaces` 🙃
5. In CI of course this didn't work, because I was not using the same
   node version...
6. After everything worked, I did cleanup of the new scripts, and
   removed the introduced .npmrc files.
2021-10-08 11:18:53 +02:00
Robin Malfait ab92811e13 parallelize GitHub actions (#463) 2021-05-03 13:12:23 +02:00
Robin Malfait ce23edeee4 Next release (#431)
* Fixed typos (#350)

* chore: Fix typo in render.ts (#347)

* Better vue link (#353)

* Better vue link

* add better React link

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>

* Enable NoScroll feature for the initial useFocusTrap hook (#356)

* enable NoScroll feature for the initial useFocusTrap hook

Once you are using Tab and Shift+Tab it does the scrolling.

Fixes: #345

* update changelog

* Revert "Enable NoScroll feature for the initial useFocusTrap hook (#356)"

This reverts commit 19590b07624d7e3d751cbf11de869dfb0ea432ba.

Solution is not 100% correct, so will revert for now!

* Improve search (#385)

* make search case insensitive for the listbox

* make search case insensitive for the menu

* update changelog

* add `disabled` prop to RadioGroup and RadioGroup Option (#401)

* add `disabled` prop to RadioGroup and RadioGroup Option

Also did some general cleanup which in turn fixed an issue where the
RadioGroup is unreachable when a value is used that doesn't exist in the
list of options.

Fixes: #378

* update changelog

* Fix type of `RadioGroupOption` (#400)

Match RadioGroupOption value types to match modelValue allowed types for RadioGroup

* update changelog

* fix typo's

* chore(CI): update main workflow (#395)

* chore(CI): update main workflow

* Update main.yml

* fix dialog event propagation (#422)

* re-export the `screen` utility for quick debugging purposes

* stop event propagation when clicking inside a Dialog

Fixes: #414

* improve dialog escape (#430)

* Make sure that `Escape` only closes the top most Dialog

* update changelog

* add defaultOpen prop to Disclosure component (#447)

* add defaultOpen prop to Disclosure component

* update changelog

Co-authored-by: Shuvro Roy <shuvro.roy@northsouth.edu>
Co-authored-by: Alex Nault <nault.alex@gmail.com>
Co-authored-by: Eugene Kopich <github@web2033.com>
Co-authored-by: Nathan Shoemark <n.shoemark@gmail.com>
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
2021-04-26 15:44:10 +02:00
Simon Vrachliotis 6a01c54b15 Update 1.bug_report.yml 2021-04-20 22:44:05 +10:00
Robin Malfait 30f5293b88 update title validation 2021-04-20 14:26:32 +02:00
Adam Wathan cd679e86b8 Update 1.bug_report.yml 2021-04-19 21:38:35 +02:00
Robin Malfait 054d90d899 fix github templates 2021-03-22 15:01:38 +01:00
Simon Vrachliotis c1fe403254 Move ISSUE_TEMPLATE config to the right directory (#288) 2021-03-22 13:59:11 +11:00
Simon Vrachliotis 0a4dd680a5 Add bug report issue template + issue hub YAML configs (#287)
* Add ISSUE_TEMPLATE config
* Add bug report template config
2021-03-22 13:47:47 +11:00
Robin Malfait cf1e92d62f drop dependabot 2021-02-02 11:12:11 +01:00
HonkingGoose bf2c251f09 chore: use Dependabot to check for npm updates (#23)
Dependabot will check for npm updates each working day (Monday trough Friday).
It will label any pull requests with the `dependencies` label.
2020-10-05 13:30:14 +02:00
Robin Malfait 672afbe9f8 setup monorepo 2020-09-16 18:19:33 +02:00