-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.0 Alpha prep #2887
2.0.0 Alpha prep #2887
Commits on Dec 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e64fcb2 - Browse repository at this point
Copy the full SHA e64fcb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f74cbc3 - Browse repository at this point
Copy the full SHA f74cbc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34da82d - Browse repository at this point
Copy the full SHA 34da82dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 543be6b - Browse repository at this point
Copy the full SHA 543be6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c86682 - Browse repository at this point
Copy the full SHA 2c86682View commit details -
Configuration menu - View commit details
-
Copy full SHA for cdc3839 - Browse repository at this point
Copy the full SHA cdc3839View commit details -
This ensures all imported types are using the `type` keyword.
Configuration menu - View commit details
-
Copy full SHA for 9124f23 - Browse repository at this point
Copy the full SHA 9124f23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c57cea - Browse repository at this point
Copy the full SHA 8c57ceaView commit details -
Will be used in the new and existing components.
Configuration menu - View commit details
-
Copy full SHA for d66f4cb - Browse repository at this point
Copy the full SHA d66f4cbView commit details -
add script to make Next.js happy
Right now Next.js does barrel file optimization and re-writing imports to a real path in the `dist` folder. Most of those rewrites don't actually exist because they have an assumption: ```js import { FooBar } from '@headlessui/react' ``` is rewritten as: ```js import { FooBar } from '@headlessui/react/dist/components/foo-bar/foo-bar' ``` This script will make sure these paths exist...
Configuration menu - View commit details
-
Copy full SHA for 0c08eb6 - Browse repository at this point
Copy the full SHA 0c08eb6View commit details -
improve
by
prop, introduceuseByComparator
This hook has a default implementation when comparing objects. If the object contains an `id`, then we will compare the objects by their `id`'s without the user of the library needing to specify `by="id"`. If the objects don't have an `id` prop, then the default is still to compare by reference (unless specicified otherwise).
Configuration menu - View commit details
-
Copy full SHA for 4c3fffa - Browse repository at this point
Copy the full SHA 4c3fffaView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9b9054 - Browse repository at this point
Copy the full SHA a9b9054View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce7c8aa - Browse repository at this point
Copy the full SHA ce7c8aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for b80ced4 - Browse repository at this point
Copy the full SHA b80ced4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 236c32a - Browse repository at this point
Copy the full SHA 236c32aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed9cefd - Browse repository at this point
Copy the full SHA ed9cefdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 10df5a0 - Browse repository at this point
Copy the full SHA 10df5a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a119bd0 - Browse repository at this point
Copy the full SHA a119bd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cfbc54 - Browse repository at this point
Copy the full SHA 7cfbc54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80bfdff - Browse repository at this point
Copy the full SHA 80bfdffView commit details -
Configuration menu - View commit details
-
Copy full SHA for ac04bdc - Browse repository at this point
Copy the full SHA ac04bdcView commit details -
rename
src/components/transitions/
tosrc/components/transition/
……(singular) This is so that we can be consistent with the other components.
Configuration menu - View commit details
-
Copy full SHA for 27dc45b - Browse repository at this point
Copy the full SHA 27dc45bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1df9740 - Browse repository at this point
Copy the full SHA 1df9740View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8ccae6 - Browse repository at this point
Copy the full SHA f8ccae6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f06286 - Browse repository at this point
Copy the full SHA 3f06286View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cebfed - Browse repository at this point
Copy the full SHA 7cebfedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5214fee - Browse repository at this point
Copy the full SHA 5214feeView commit details -
rename
mergeProps
tomergePropsAdvanced
This is a more complex version of a soon to be exported `mergeProps` that we will be using in our components.
Configuration menu - View commit details
-
Copy full SHA for e0e5b68 - Browse repository at this point
Copy the full SHA e0e5b68View commit details -
Configuration menu - View commit details
-
Copy full SHA for e45d307 - Browse repository at this point
Copy the full SHA e45d307View commit details -
expose boolean state as
kebab-case
instead ofcamelCase
These are the ones being exposed inside `data-headlessui-state="..."`
Configuration menu - View commit details
-
Copy full SHA for 94148bb - Browse repository at this point
Copy the full SHA 94148bbView commit details -
expose boolean data attributes
A slot with `{active,focus,hover}` will be exposed as: ```html <span data-headlessui-state="active focus hover"></span> ``` But also as boolean attributes: ```html <span data-active data-focus data-hover></span> ```
Configuration menu - View commit details
-
Copy full SHA for fb3f648 - Browse repository at this point
Copy the full SHA fb3f648View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00a79e5 - Browse repository at this point
Copy the full SHA 00a79e5View commit details -
ensure we keep exposed data attributes into account when trying to fo…
…rward them to the component inside the `Fragment`
Configuration menu - View commit details
-
Copy full SHA for 87ca4e1 - Browse repository at this point
Copy the full SHA 87ca4e1View commit details -
This is internal code, and the public API is not influenced by this `:any`. It does make TypeScript happy.
Configuration menu - View commit details
-
Copy full SHA for 303598a - Browse repository at this point
Copy the full SHA 303598aView commit details -
introduce
mergeProps
util to be used in our componentsThis will help us to merge props, when event handlers are available they will be merged by wrapping them in a function such that both (or more) event handlers are called for the same `event`.
Configuration menu - View commit details
-
Copy full SHA for d7259d8 - Browse repository at this point
Copy the full SHA d7259d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c963d1a - Browse repository at this point
Copy the full SHA c963d1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85302d5 - Browse repository at this point
Copy the full SHA 85302d5View commit details -
prefer
window.scrollY
instead ofwindow.pageYOffset
Because `window.pageYOffset` is deprecated.
Configuration menu - View commit details
-
Copy full SHA for eda1c5d - Browse repository at this point
Copy the full SHA eda1c5dView commit details -
add
'use client'
directives on client only componentsThese components use hooks that won't work in server components and you will receive an error otherwise.
Configuration menu - View commit details
-
Copy full SHA for 5844d0c - Browse repository at this point
Copy the full SHA 5844d0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dcb7439 - Browse repository at this point
Copy the full SHA dcb7439View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a39c02 - Browse repository at this point
Copy the full SHA 2a39c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac20930 - Browse repository at this point
Copy the full SHA ac20930View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfd1c1c - Browse repository at this point
Copy the full SHA dfd1c1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea7f2e5 - Browse repository at this point
Copy the full SHA ea7f2e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4c7e45 - Browse repository at this point
Copy the full SHA d4c7e45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a2d9a1 - Browse repository at this point
Copy the full SHA 4a2d9a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f69ce40 - Browse repository at this point
Copy the full SHA f69ce40View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28633dd - Browse repository at this point
Copy the full SHA 28633ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 444565a - Browse repository at this point
Copy the full SHA 444565aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7200d9d - Browse repository at this point
Copy the full SHA 7200d9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb8058d - Browse repository at this point
Copy the full SHA cb8058dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 443116f - Browse repository at this point
Copy the full SHA 443116fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a16ca71 - Browse repository at this point
Copy the full SHA a16ca71View commit details -
Configuration menu - View commit details
-
Copy full SHA for b42630b - Browse repository at this point
Copy the full SHA b42630bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbb267d - Browse repository at this point
Copy the full SHA fbb267dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d297ad - Browse repository at this point
Copy the full SHA 5d297adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1660b74 - Browse repository at this point
Copy the full SHA 1660b74View commit details -
add (private)
Tooltip
componentCurrently this one is not ready yet, so its not publicly exposed yet.
Configuration menu - View commit details
-
Copy full SHA for 60177b4 - Browse repository at this point
Copy the full SHA 60177b4View commit details -
add internal
FormFields
componentThis one adds a component to render (hidden) inputs for native form support. It also ensures that form fields can be hoisted to the end of the nearest `Field`. If the components are not inside a `Field` they will be rendered in place.
Configuration menu - View commit details
-
Copy full SHA for 57f2788 - Browse repository at this point
Copy the full SHA 57f2788View commit details -
Configuration menu - View commit details
-
Copy full SHA for 317fc21 - Browse repository at this point
Copy the full SHA 317fc21View commit details -
Configuration menu - View commit details
-
Copy full SHA for f07b113 - Browse repository at this point
Copy the full SHA f07b113View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44ae0b4 - Browse repository at this point
Copy the full SHA 44ae0b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bbe00c - Browse repository at this point
Copy the full SHA 9bbe00cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 745d2f4 - Browse repository at this point
Copy the full SHA 745d2f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d99ae8 - Browse repository at this point
Copy the full SHA 0d99ae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd9b9d5 - Browse repository at this point
Copy the full SHA dd9b9d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fec9254 - Browse repository at this point
Copy the full SHA fec9254View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08b3198 - Browse repository at this point
Copy the full SHA 08b3198View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94f7fe9 - Browse repository at this point
Copy the full SHA 94f7fe9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3122165 - Browse repository at this point
Copy the full SHA 3122165View commit details
Commits on Dec 20, 2023
-
This only makes sense if anything inside the current element receives focus, which is not the case for `input`, `select`, `textarea` or `Radio/RadioOption`.
Configuration menu - View commit details
-
Copy full SHA for 5045eba - Browse repository at this point
Copy the full SHA 5045ebaView commit details -
Configuration menu - View commit details
-
Copy full SHA for df3654c - Browse repository at this point
Copy the full SHA df3654cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08865e6 - Browse repository at this point
Copy the full SHA 08865e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6af85cd - Browse repository at this point
Copy the full SHA 6af85cdView commit details -
prevent premature disabling of
Listbox
's floating integration+ Track whether the button moved or not when disabling such that we can disable the transitions earlier.
Configuration menu - View commit details
-
Copy full SHA for 297d214 - Browse repository at this point
Copy the full SHA 297d214View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d22cf3 - Browse repository at this point
Copy the full SHA 7d22cf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a117138 - Browse repository at this point
Copy the full SHA a117138View commit details -
Configuration menu - View commit details
-
Copy full SHA for 252083e - Browse repository at this point
Copy the full SHA 252083eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fafc52 - Browse repository at this point
Copy the full SHA 1fafc52View commit details -
Configuration menu - View commit details
-
Copy full SHA for f03dfc6 - Browse repository at this point
Copy the full SHA f03dfc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32a7229 - Browse repository at this point
Copy the full SHA 32a7229View commit details -
ignore type issues in playgrounds
These playgrounds are mainly test playgrounds. Lower priority for now, we will get back to them.
Configuration menu - View commit details
-
Copy full SHA for 83c75a7 - Browse repository at this point
Copy the full SHA 83c75a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20165b4 - Browse repository at this point
Copy the full SHA 20165b4View commit details