-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Comparing changes
Open a pull request
base repository: tailwindlabs/headlessui
base: @headlessui/react@v1.7.17
head repository: tailwindlabs/headlessui
compare: @headlessui/react@v1.7.18
Commits on Aug 17, 2023
-
2
Configuration menu - View commit details
-
Copy full SHA for 8505d7a - Browse repository at this point
Copy the full SHA 8505d7aView commit details
Commits on Aug 21, 2023
-
fix: double onClose on mobile dialog outClick (#2690)
* fix: double onClose on mobile dialog outClick * Fix CS * Add fix to Vue useOutsideClick * Update changelog * Fix CS --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2Configuration menu - View commit details
-
Copy full SHA for 6a88fd5 - Browse repository at this point
Copy the full SHA 6a88fd5View commit details
Commits on Aug 22, 2023
-
Lazily resolve default containers in
<Dialog>
(#2697)* Lazily resolve default containers in `<Dialog>` * Update changelog
2Configuration menu - View commit details
-
Copy full SHA for 5a3d556 - Browse repository at this point
Copy the full SHA 5a3d556View commit details
Commits on Aug 23, 2023
-
Fix Portal SSR hydration mismatches (#2700)
* Register portal based on element presence in the DOM This always coincides with `onMounted` currently but that’s about to change * Mount element lazily for portals This prevent’s SSR hydration issues and matches the behavior of React’s `<Portal>` element * Fix portal tests * Update comment * Update changelog
2Configuration menu - View commit details
-
Copy full SHA for 6444e01 - Browse repository at this point
Copy the full SHA 6444e01View commit details
Commits on Aug 28, 2023
-
2
Configuration menu - View commit details
-
Copy full SHA for 4b0ab1e - Browse repository at this point
Copy the full SHA 4b0ab1eView commit details -
Ensure hidden
TabPanel
components are hidden from the accessibility…… tree (#2708) * explicitly add the `aria-hidden="true"` attribute The `Hidden` component only adds the `aria-hidden` by default if the `Focusable` feature is passed. In our case we don't want it to be focusable so therefore we didn't pass this feature flag. Because we didn't pass the `Focusable` feature, the `display: hidden` was used which makes it completely unfocusable to the keyboard of the user which is what we want. However, the VoiceOver cursor _can_ get into those elements. Adding the `aria-hidden` manually to these tabs solves the issue. * update changelog
2Configuration menu - View commit details
-
Copy full SHA for fd17c26 - Browse repository at this point
Copy the full SHA fd17c26View commit details -
Add support for
role="alertdialog"
to<Dialog>
component (#2709)* WIP * Add warning for unsupported roles to `<Dialog>` * Update assertions * Add test for React * Add support for `role=alertdialog` to Vue --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2Configuration menu - View commit details
-
Copy full SHA for a6a2382 - Browse repository at this point
Copy the full SHA a6a2382View commit details -
2
Configuration menu - View commit details
-
Copy full SHA for c6ac692 - Browse repository at this point
Copy the full SHA c6ac692View commit details
Commits on Aug 29, 2023
-
Ensure blurring the
Combobox.Input
component closes theCombobox
(#……2712) * ensure blurring the `Combobox.Input` component closes the `Combobox` * update changelog * select the value on blur if we are in single value mode
2Configuration menu - View commit details
-
Copy full SHA for 134c0fb - Browse repository at this point
Copy the full SHA 134c0fbView commit details
Commits on Aug 30, 2023
-
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
2Configuration menu - View commit details
-
Copy full SHA for 2b27d9f - Browse repository at this point
Copy the full SHA 2b27d9fView commit details -
Allow
<button>
to be in nested components in<PopoverButton>
(#2715)* Tweak `dom()` helper The helper can currently return a component instance when it should only ever return a DOM element. So, we fix the implementation to return null if it’s not an `Element` _and_ adjust the types such that if a `ComponentPublicInstance` is passed we change the return type to `Element`. * Specialize DOM helper to HTML elements Technically it could be an SVG element but much of Headless UI assumes HTML elements all over. So we’ll adjust the types to assume HTMLElement instead. * Allow `dom()` helper to return any `Node` type It doesn’t actually always return an HTMLElement but we have behavior that relies on it returning and checking for `Comment` nodes * Detect `<button>` nested in components inside `<PopoverButton>` * Update changelog
2Configuration menu - View commit details
-
Copy full SHA for c92757d - Browse repository at this point
Copy the full SHA c92757dView commit details -
Don't overwrite user-defined template refs when rendering (#2720)
* Merge vnode refs when rendering In some cases if we used our own ref (we do this in `<TransitionRoot>` for instance) and rendered slot children we would wipe out user-specified refs. So we set a flag when calling `cloneVNode` to merge our refs and any user-specified refs. * Update changelog
2Configuration menu - View commit details
-
Copy full SHA for 5a1e2e4 - Browse repository at this point
Copy the full SHA 5a1e2e4View commit details
Commits on Aug 31, 2023
-
Add
immediate
prop to<Combobox />
for immediately opening the Co……mbobox when the `input` receives focus (#2686) * Allow to open combobox on input focus * Close focused combobox with openOnFocus prop when clicking the button * ensure tabbing through a few fields, doesn't result in an incorrectly selected item When you have a fwe inputs such as: ```html <form> <input /> <input /> <input /> <Combobox> <Combobox.Input /> </Combobox> <input /> <input /> <input /> </form> ``` Tabbing through this list will open the combobox once you are on the input field. When you continue tabbing, the first item would be selected. However, if the combobox is not marked as nullable, it means that just going through the form means that we set a value we can't unset anymore. We still want to open the combobox, we just don't want to select anything in this case. * only `openOnFocus` if the `<Combobox.Input />` is focused from the outside If the focus is coming from the `<Combobox.Button />` or as a side effect of selecting an `<Combobox.Option />` then we don't want to re-open the `<Combobox />` * update tests to ensure that the `Combobox.Input` is the active element * order `handleBlur` and `handleFocus` the same way in Vue & React * only select the active option when the Combobox wasn't opened by focusing the input field * convert to `immediate` prop on the `Combobox` itself * update changelog * ensure we see the "relatedTarget" in Safari Safari doesn't fire a `focus` event when clicking a button, therefore it does not become the `document.activeElement`, and events like `blur` or `focus` doesn't set the button as the `event.relatedTarget`. Keeping track of a history like this solves that problem. We already had the code for the `FocusTrap` component. --------- Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2Configuration menu - View commit details
-
Copy full SHA for fa95262 - Browse repository at this point
Copy the full SHA fa95262View commit details -
Allow changes to the
className
prop when the<Transition />
compo……nent is currently not transitioning (#2722) * allow changes to the `className` when we are _not_ transitioning * update changelog
2Configuration menu - View commit details
-
Copy full SHA for d4aa86d - Browse repository at this point
Copy the full SHA d4aa86dView commit details -
Export component interfaces and mark them as internal (#2313)
* export component interfaces, and mark them as internal This is not ideal because we don't want these to be public. However, if you are creating components on top of Headless UI, the TypeScript compiler needs access to them. So now they are public in a sense, but you shouldn't be interacting with them directly. Co-authored-by: Jordan Pittman <jordan@cryptica.me> * Update changelog --------- Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2Configuration menu - View commit details
-
Copy full SHA for 8e93cd0 - Browse repository at this point
Copy the full SHA 8e93cd0View commit details
Commits on Sep 11, 2023
-
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
2Configuration menu - View commit details
-
Copy full SHA for 76dd10e - Browse repository at this point
Copy the full SHA 76dd10eView commit details -
2
Configuration menu - View commit details
-
Copy full SHA for f2179f3 - Browse repository at this point
Copy the full SHA f2179f3View commit details
Commits on Sep 15, 2023
-
Add
virtual
prop toCombobox
component (#2740)* type timezones in playground data * add `@tanstack/react-virtual` and `@tanstack/vue-virtual` * use latest stable Tailwind CSS version * add Combobox with virtual prop example * add `virtual` prop to `Combobox` Co-authored-by: Jordan Pittman <jordan@cryptica.me> * add tests for `virtual` prop - Also wrap `click` helpers in `act` for React (use `rawClick` without `act` in tests related to `Transition`) * update changelog --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2Configuration menu - View commit details
-
Copy full SHA for f016dc5 - Browse repository at this point
Copy the full SHA f016dc5View commit details
Commits on Sep 19, 2023
-
2
Configuration menu - View commit details
-
Copy full SHA for 2a64c13 - Browse repository at this point
Copy the full SHA 2a64c13View commit details
Commits on Sep 20, 2023
-
Make sure
as={Fragment}
doesn’t result in a render loop (#2760)* Make sure `as={Fragment}` doesn’t result in a render loop * Add comment about usage * Fix render loop on popover panel too * Update changelog
2Configuration menu - View commit details
-
Copy full SHA for 0f34486 - Browse repository at this point
Copy the full SHA 0f34486View commit details
Commits on Sep 25, 2023
-
2
Configuration menu - View commit details
-
Copy full SHA for d4a94cb - Browse repository at this point
Copy the full SHA d4a94cbView commit details
Commits on Oct 2, 2023
-
Implement new
virtual
API for theCombobox
component (#2779)* add `(Vue)` or `(React)` to playground header * show amount of items in virtualized example * improve calculating the active index * disable strict mode * update virtualized playground examples with preferred API * optimize `calculateActiveIndex` * implement new `virtual` API * update changelog
2Configuration menu - View commit details
-
Copy full SHA for 99cdf91 - Browse repository at this point
Copy the full SHA 99cdf91View commit details
Commits on Oct 4, 2023
-
Fix state data attribute in Vue (#2787)
* Add tests * Fix state data attribute in Vue
2Configuration menu - View commit details
-
Copy full SHA for 20a224a - Browse repository at this point
Copy the full SHA 20a224aView commit details -
2
Configuration menu - View commit details
-
Copy full SHA for 1469b85 - Browse repository at this point
Copy the full SHA 1469b85View commit details
Commits on Nov 2, 2023
-
Fix VoiceOver bug for
Listbox
component in Chrome (#2824)* fix VoiceOver bug for Listbox in Chrome Chrome currently has a bug if you use a `Listbox` with a `Label` and use the `aria-multiselectable` attribute. This combination will cause VoiceOver to _not_ announce the `role="option"` elements when interacting with them. If we drop the `aria-multiselectable` OR the `aria-labelledby` it starts working. Alternatively replacing `aria-labelledby` with `aria-label` won't work either. I filed a Chrome bug report about this here: https://bugs.chromium.org/p/chromium/issues/detail?id=1498261 --- Luckily there is a workaround in our `Listbox` implementation. Right now we always require the `Listbox.Button` to be there. The `Listbox.Options` component doesn't work on its own in our implementation. This means that whenever we open the `Listbox` that we have to go via the `Listbox.Button`. This `Listbox.Button` is already labelled by the `Listbox.Label` if there is one. This also means that we can safely drop the `id` of the label inside the `aria-labelledby` from the `Listbox.Options`. This wouldn't have worked if our `Listbox.Options` could be used in a standalone way without the `Listbox.Button`. At the end of the day the hierarchy looks like this: - Options is labelled by the Button - Button is labelled by the Label - Label Fixes: #2817 * update changelog
2Configuration menu - View commit details
-
Copy full SHA for bfacb64 - Browse repository at this point
Copy the full SHA bfacb64View commit details
Commits on Nov 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c2c43c3 - Browse repository at this point
Copy the full SHA c2c43c3View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 475db7c - Browse repository at this point
Copy the full SHA 475db7cView commit details -
1
Configuration menu - View commit details
-
Copy full SHA for d3c2a19 - Browse repository at this point
Copy the full SHA d3c2a19View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for 24486b3 - Browse repository at this point
Copy the full SHA 24486b3View commit details
Commits on Dec 5, 2023
-
Fix outside click detection when component is mounted in the Shadow D…
…OM (#2866) * Fix outside click detection when component is mounted in the Shadow DOM * Fix code style * Fix error
2Configuration menu - View commit details
-
Copy full SHA for 7b30e06 - Browse repository at this point
Copy the full SHA 7b30e06View commit details -
2
Configuration menu - View commit details
-
Copy full SHA for 6846231 - Browse repository at this point
Copy the full SHA 6846231View commit details -
2
Configuration menu - View commit details
-
Copy full SHA for c2096b0 - Browse repository at this point
Copy the full SHA c2096b0View commit details
Commits on Dec 12, 2023
-
* 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
2Configuration menu - View commit details
-
Copy full SHA for c25e2e6 - Browse repository at this point
Copy the full SHA c25e2e6View commit details -
Fix error when transition classes contain new lines (#2871)
* fix DOMException when remove class with '\n' character in react 'transition' component * Split classes on all whitespace * Revert "fix DOMException when remove class with '\n' character in react 'transition' component" This reverts commit 76e8354. * fix typo * Add test * Fix CS * Update changelog --------- Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2Configuration menu - View commit details
-
Copy full SHA for c24ba86 - Browse repository at this point
Copy the full SHA c24ba86View commit details -
2
Configuration menu - View commit details
-
Copy full SHA for 01a34cb - Browse repository at this point
Copy the full SHA 01a34cbView commit details
Commits on Jan 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c6b5a81 - Browse repository at this point
Copy the full SHA c6b5a81View commit details -
fix incorrect
activeIndex
when handlingFocus.Previous
This is already available in the React version, now let's sync it in the Vue version as well.
Configuration menu - View commit details
-
Copy full SHA for 32b0117 - Browse repository at this point
Copy the full SHA 32b0117View commit details -
improve iOS scroll locking (Vue)
The scroll locking on iOS was flickering in some scenario's due to the `window.scrollTo(0, 0)` related code. Instead of that, we now cancel touch moves instead but still allow it in scrollable containers inside the Dialog itself. This was already applied in the React version, but this adds the same improvement to the Vue version as well.
Configuration menu - View commit details
-
Copy full SHA for 279356b - Browse repository at this point
Copy the full SHA 279356bView commit details
Commits on Jan 8, 2024
-
disable
immediate
andvirtual
feature forCombobox
component in…… patch release
Configuration menu - View commit details
-
Copy full SHA for ac64a80 - Browse repository at this point
Copy the full SHA ac64a80View commit details -
Configuration menu - View commit details
-
Copy full SHA for d625361 - Browse repository at this point
Copy the full SHA d625361View commit details -
Configuration menu - View commit details
-
Copy full SHA for afb3c8c - Browse repository at this point
Copy the full SHA afb3c8cView commit details
There are no files selected for viewing