Skip to content

Latest commit

 

History

History
622 lines (493 loc) · 16.8 KB

CHANGELOG.md

File metadata and controls

622 lines (493 loc) · 16.8 KB

@leafygreen-ui/number-input

4.0.2

Patch Changes

4.0.1

Patch Changes

4.0.0

Major Changes

  • 274d7e1a7: Removes prop-types from LeafyGreen UI

Patch Changes

3.0.0

Major Changes

  • 04bb887c0: LG-4121: NumberInput renders unit selector and tooltip in the top layer using popover API. As a result, the following props are removed:

    • popoverZIndex
    • portalClassName
    • portalContainer
    • portalRef
    • scrollContainer
    • usePortal

    Additional changes include:

    • Opens tooltip immediately on hover instead of default 500ms delay

    Migration guide

    Use popover-v12 codemod for migration assistance.

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

Patch Changes

2.2.2

Patch Changes

2.2.1

Patch Changes

2.2.0

Minor Changes

  • 02e1d77e: Expose portalRef in components that use Popover:

    • Combobox
    • DatePicker
    • GuideCue
    • Menu
    • NumberInput
    • Select
    • SplitButton
    • Tooltip

    LG-3988

Patch Changes

2.1.0

Minor Changes

  • 3b86b3bd: Allow type of ReactNode for errorMessage and successMessage props in NumberInput, TextArea, and TextInput

Patch Changes

2.0.0

Major Changes

  • c406ab85: LG-4134

    1. Updated styling:
    • updated spacing for 'small' and 'xsmall' size variants
    • added 'large' variant
    • updated placeholder text color
    • moved error icon from inside the input to underneath the input, alongside the error message
    1. Added default errorMessage of 'This input needs your attention'

    2. Added valid state variant and successMessage prop

    • successMessage will render a default of 'Success' and can be customized
    • successMessage will only render when state=valid

Patch Changes

1.0.23

Patch Changes

1.0.22

Patch Changes

1.0.21

Patch Changes

1.0.20

Patch Changes

1.0.19

Patch Changes

  • e57c35c7: Fixes a bug where onBlur would not get invoked when arrow buttons were blurred. LG-3940
  • Updated dependencies [8142d306]
  • Updated dependencies [3208b813]

1.0.18

Patch Changes

1.0.17

Patch Changes

1.0.16

Patch Changes

1.0.15

Patch Changes

1.0.14

Patch Changes

1.0.13

Patch Changes

1.0.12

Patch Changes

  • 4fcf2e94: Move custom select menu button into separate components and passes custom select menu button props to new internal select prop, __INTERNAL__menuButtonSlotProps__.

  • 4fcf2e94: Adds the setOpen() state update inside the flushSync callback to prevent batch updates in React 18. This addresses an issue where the unit tooltip would occasionally appear without a transition, particularly when hovering. This should have no impact on behavior in React 17.

    Updates README code snippet.

  • Updated dependencies [4fcf2e94]

  • Updated dependencies [4fcf2e94]

  • Updated dependencies [4fcf2e94]

  • Updated dependencies [4fcf2e94]

  • Updated dependencies [4fcf2e94]

  • Updated dependencies [4fcf2e94]

  • Updated dependencies [4fcf2e94]

  • Updated dependencies [4fcf2e94]

  • Updated dependencies [4fcf2e94]

1.0.11

Patch Changes

1.0.10

Patch Changes

1.0.9

Patch Changes

1.0.8

Patch Changes

1.0.7

Patch Changes

1.0.6

Patch Changes

1.0.5

Patch Changes

1.0.4

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

  • fb47557dd: First major release of NumberInput

Patch Changes