Skip to content
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

Merged
merged 83 commits into from
Dec 20, 2023
Merged

2.0.0 Alpha prep #2887

merged 83 commits into from
Dec 20, 2023

Commits on Dec 19, 2023

  1. Configuration menu
    Copy the full SHA
    e64fcb2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f74cbc3 View commit details
    Browse the repository at this point in the history
  3. bump prettier

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    34da82d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    543be6b View commit details
    Browse the repository at this point in the history
  5. bump TypeScript

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    2c86682 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cdc3839 View commit details
    Browse the repository at this point in the history
  7. enable verbatimModuleSyntax

    This ensures all imported types are using the `type` keyword.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    9124f23 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8c57cea View commit details
    Browse the repository at this point in the history
  9. add common testing scenarios

    Will be used in the new and existing components.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    d66f4cb View commit details
    Browse the repository at this point in the history
  10. 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...
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    0c08eb6 View commit details
    Browse the repository at this point in the history
  11. improve by prop, introduce useByComparator

    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).
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    4c3fffa View commit details
    Browse the repository at this point in the history
  12. sync yarn.lock

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    a9b9054 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ce7c8aa View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b80ced4 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    236c32a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ed9cefd View commit details
    Browse the repository at this point in the history
  17. bump Vue dependencies

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    10df5a0 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a119bd0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    7cfbc54 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    80bfdff View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    ac04bdc View commit details
    Browse the repository at this point in the history
  22. rename src/components/transitions/ to src/components/transition/

    …(singular)
    
    This is so that we can be consistent with the other components.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    27dc45b View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    1df9740 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    f8ccae6 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    3f06286 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    7cebfed View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    5214fee View commit details
    Browse the repository at this point in the history
  28. rename mergeProps to mergePropsAdvanced

    This is a more complex version of a soon to be exported `mergeProps`
    that we will be using in our components.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    e0e5b68 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    e45d307 View commit details
    Browse the repository at this point in the history
  30. expose boolean state as kebab-case instead of camelCase

    These are the ones being exposed inside `data-headlessui-state="..."`
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    94148bb View commit details
    Browse the repository at this point in the history
  31. 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>
    ```
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    fb3f648 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    00a79e5 View commit details
    Browse the repository at this point in the history
  33. ensure we keep exposed data attributes into account when trying to fo…

    …rward them to the component inside the `Fragment`
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    87ca4e1 View commit details
    Browse the repository at this point in the history
  34. add small typescript type fix

    This is internal code, and the public API is not influenced by this
    `:any`. It does make TypeScript happy.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    303598a View commit details
    Browse the repository at this point in the history
  35. introduce mergeProps util to be used in our components

    This 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`.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    d7259d8 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    c963d1a View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    85302d5 View commit details
    Browse the repository at this point in the history
  38. prefer window.scrollY instead of window.pageYOffset

    Because `window.pageYOffset` is deprecated.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    eda1c5d View commit details
    Browse the repository at this point in the history
  39. add 'use client' directives on client only components

    These components use hooks that won't work in server components and you
    will receive an error otherwise.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    5844d0c View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    dcb7439 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    2a39c02 View commit details
    Browse the repository at this point in the history
  42. pin beta dependencies

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    ac20930 View commit details
    Browse the repository at this point in the history
  43. prettier bump formatting

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    dfd1c1c View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    ea7f2e5 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    d4c7e45 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    4a2d9a1 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    f69ce40 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    28633dd View commit details
    Browse the repository at this point in the history
  49. add internal IdProvider

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    444565a View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    7200d9d View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    cb8058d View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    443116f View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    a16ca71 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    b42630b View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    fbb267d View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    5d297ad View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    1660b74 View commit details
    Browse the repository at this point in the history
  58. add (private) Tooltip component

    Currently this one is not ready yet, so its not publicly exposed yet.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    60177b4 View commit details
    Browse the repository at this point in the history
  59. add internal FormFields component

    This 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.
    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    57f2788 View commit details
    Browse the repository at this point in the history
  60. add new Button component

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    317fc21 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    f07b113 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    44ae0b4 View commit details
    Browse the repository at this point in the history
  63. add new Field component

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    9bbe00c View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    745d2f4 View commit details
    Browse the repository at this point in the history
  65. add new Legend component

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    0d99ae8 View commit details
    Browse the repository at this point in the history
  66. add new Input component

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    dd9b9d5 View commit details
    Browse the repository at this point in the history
  67. add new Select component

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    fec9254 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    08b3198 View commit details
    Browse the repository at this point in the history
  69. export new components

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    94f7fe9 View commit details
    Browse the repository at this point in the history
  70. WIP

    RobinMalfait committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    3122165 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. remove within: true

    This only makes sense if anything inside the current element receives
    focus, which is not the case for `input`, `select`, `textarea` or
    `Radio/RadioOption`.
    RobinMalfait committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    5045eba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df3654c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    08865e6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6af85cd View commit details
    Browse the repository at this point in the history
  5. 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.
    RobinMalfait committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    297d214 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7d22cf3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a117138 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    252083e View commit details
    Browse the repository at this point in the history
  9. update CHANGELOG.md

    RobinMalfait committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    1fafc52 View commit details
    Browse the repository at this point in the history
  10. add missing requires

    RobinMalfait committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    f03dfc6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    32a7229 View commit details
    Browse the repository at this point in the history
  12. ignore type issues in playgrounds

    These playgrounds are mainly test playgrounds. Lower priority for now,
    we will get back to them.
    RobinMalfait committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    83c75a7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    20165b4 View commit details
    Browse the repository at this point in the history