Skip to content

Latest commit

 

History

History
657 lines (498 loc) · 17.6 KB

CHANGELOG.md

File metadata and controls

657 lines (498 loc) · 17.6 KB

@leafygreen-ui/search-input

5.0.2

Patch Changes

5.0.1

Patch Changes

5.0.0

Patch Changes

4.0.0

Major Changes

  • 04bb887c0: LG-4121: SearchInput renders results menu in the top layer using popover API. As a result, the following props are removed:

    • portalClassName
    • portalContainer
    • portalRef
    • scrollContainer
    • usePortal

    Migration guide

    Use popover-v12 codemod for migration assistance.

    Old
    <SearchInput popoverZIndex={9999} usePortal={false} />
    <SearchInput portalClassName="portal-class" usePortal />
    New
    <SearchInput />
    <SearchInput />

Patch Changes

3.1.4

Patch Changes

  • 5f10976d5: - Updates useAvailableSpace hook which fixes a dropdown height bug. LG-4601.

3.1.3

Patch Changes

Note: This version has no updates. Pleas use version 3.1.4.

  • Updates useAvailableSpace hook which fixes a dropdown height bug. LG-4601

3.1.2

Patch Changes

  • cfa830701: Updates SearchResults.

    • Removes custom option styles in favor of consistent option styles from InputOptionContent

    Updates SearchResultsMenu

    • Updates the menu background-color to match the background from InputOptionContent.
  • Updated dependencies [cfa830701]

  • Updated dependencies [cfa830701]

  • Updated dependencies [cfa830701]

  • Updated dependencies [cfa830701]

  • Updated dependencies [db2d1d12c]

  • Updated dependencies [cfa830701]

3.1.1

Patch Changes

3.1.0

Minor Changes

  • 02e1d77e: Exposes the following props in SearchInput component:

    • usePortal
    • portalClassName
    • portalContainer
    • portalRef
    • scrollContainer

    LG-3988

Patch Changes

3.0.1

Patch Changes

3.0.0

Major Changes

  • f630c718: LG-4152

    aria-label prop change

    aria-label prop can only set the aria-label attribute on the searchbox element if aria-labelledby prop is undefined

    👎 Does not use aria-label prop 👍 Does use aria-label prop
    <SearchInput aria-label="Label" aria-labelledby="custom-label-id" /> <SearchInput aria-label="Label" />

    Styling changes

    The following styling changes are made:

    • added xsmall variant
    • updated spacing for default, small, and large size variants
    • updated dark mode placeholder text color

    onKeyDown bug fix

    Previously, if searchbox element had focus and was disabled, user could press keys which would trigger opening the menu element.

    Now, if searchbox element has focus and is disabled, user can press keys, and they will not trigger any onKeyDown logic.

Patch Changes

2.1.6

Patch Changes

2.1.5

Patch Changes

2.1.4

Patch Changes

2.1.3

Patch Changes

  • 2bceccb1: Fixes lodash imports to use default exports of specific functions to reduce component's bundle size.
  • Updated dependencies [2bceccb1]
  • Updated dependencies [2645cd50]

2.1.2

Patch Changes

2.1.1

Patch Changes

  • d70768a7: Add a 1px gray.light2 border to light mode dropdowns and a 1px gray.dark3 border to dark mode dropdowns to match Figma specs.

2.1.0

Minor Changes

  • f6698369: SearchResultMenu now supports a footer slot prop for children rendered under the list of search results. Popover props are also now correctly passed to the Popover component.

Patch Changes

2.0.17

Patch Changes

2.0.16

Patch Changes

  • 1a0b9996: Export SearchResultsMenu component

2.0.15

Patch Changes

2.0.14

Patch Changes

2.0.13

Patch Changes

2.0.12

Patch Changes

2.0.11

Patch Changes

2.0.10

Patch Changes

  • e8ef95e6: Updates disabled styles

2.0.9

Patch Changes

2.0.8

Patch Changes

2.0.7

Patch Changes

2.0.6

Patch Changes

  • f3b3b2fa5: Allow onKeyDown prop to propagate to the user
  • Updated dependencies [6a3f03fd2]

2.0.5

Patch Changes

  • 5a9a67a35: Fixes a bug where SearchInputs without a menu would require two clicks outside the element to be un-focused
  • Updated dependencies [dff6c306e]

2.0.4

Patch Changes

  • 0f7a92d39: Updates README.md and adds @internal tag inside SearchResultsMenu components so it's props are not shown on .design.
  • 73cbbd02c: Uses fontWeight token from @leafygreen-ui/tokens
  • Updated dependencies [73cbbd02c]
  • Updated dependencies [32b3d3146]
  • Updated dependencies [8ece56980]
  • Updated dependencies [83fc5b31b]
  • Updated dependencies [9bcf8b925]
  • Updated dependencies [8ece56980]
  • Updated dependencies [32b3d3146]
  • Updated dependencies [73cbbd02c]

2.0.3

Patch Changes

2.0.2

Patch Changes

2.0.1

Patch Changes

2.0.0

Major Changes

  • ec2a3d66d: Adds typehead functionality. Developers can now provide SearchResult elements as children to display a menu of results. SearchInput fires a change event when search text changes, and a form submit event when a result is clicked, and whenever the enter key is pressed (note: the default submit event behavior is prevented). SearchResult elements also fire a click event when clicked

Patch Changes

1.0.4

Patch Changes

  • bf2fedf6d: Version bumps lib
  • Updated dependencies [bf2fedf6d]

1.0.3

Patch Changes

1.0.2

Patch Changes

  • b7f7a4c95: Updates package dependencies & devDependencies, and ensures each package is appropriately listed. Ensures tsconfig has no circular dependencies
  • Updated dependencies [b7f7a4c95]

1.0.1

Patch Changes

  • a1d093f30: Resolves aria type issues
  • ae5421cf6: Updates components to use internal transition tokens
  • Updated dependencies [ae5421cf6]
  • Updated dependencies [4b4c2d27d]
  • Updated dependencies [1a335d0b2]

1.0.0

Minor Changes

  • 3cb2e1f7: First iteration of the SearchInput - currently without loading state and typeahead search behavior supported

Patch Changes