leafygreen-ui

LeafyGreen UI – LeafyGreen's React UI Kit

APACHE-2.0 License

Downloads
8.8M
Stars
217
Committers
47

Bot releases are visible (Hide)

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

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

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

    LG-3988

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

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

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

    LG-3988

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

  • 1e9f2030: - Drops the isRequired from the buttonText prop type. As of version 5.1.0, buttonText is a deprecated prop that is now optional.
    • Fixes existing confirm button disabled state logic
      • Previously, when the modal was closed using the cancel or confirm button and reopened, the confirm button would always reset to a disabled state, disregarding requiredInputText prop value.
      • Now, the confirm button will reset to a disabled state only when requiredInputText is provided.
    • Adds missing confirm button disabled state logic
      • Previously, when the modal was closed using the modal close button and reopened, the confirm button would never reset to a disabled state.
      • Now, the confirm button will reset to a disabled state when requiredInputText is provided.

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

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

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

    LG-3988

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 34ac7340: Avatar text prop can now be null even when format === 'text', allowing for a more seamless integration with the getInitials function. If text === null, the Avatar will fall back to Icon format.
  • Updated dependencies [7bc4fcde]
  • Updated dependencies [7bc4fcde]
  • Updated dependencies [961be3f9]
leafygreen-ui - @lg-chat/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 53ff5692: Fixes a malformed import & exports rich link variants
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

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

Patch Changes

  • 3273045c: Passes readOnly prop to <FormField> so that it correctly sets the readOnly prop.
  • Updated dependencies [3273045c]
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

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

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • e31fb71a: Update Size control in storybook
  • Updated dependencies [ae44834e]
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

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

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

  • ae44834e: Exports type GlyphName, a union of all default LeafyGreen icon names
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Major Changes

  • 9ef03272: - Updates data-testid on <footer> from lg-form_footer-footer to lg-form_footer.
    • Adds primaryButtonProps. This prop is an object that accepts all Button props but variant is limited to primary and danger.
    • Prop primaryButton is marked as deprecated. Please transition to primaryButtonProps.
    • Removes cancelButtonText. Use cancelButtonProps and pass the children property.
      cancelButtonProps: {
        {
          children: 'hi';
        }
      }
      
    • Removes onCancel. Use cancelButtonProps and pass the onClick property.
      cancelButtonProps: {
        {
          onClick: () => {};
        }
      }
      
    • Removes backButtonText. Use backButtonProps and pass the children property.
      backButtonProps: {
        {
          children: 'hi';
        }
      }
      
    • Removes onBackClick. Use backButtonProps and pass the onClick property.
      backButtonProps: {
        {
          onClick: () => {};
        }
      }
      

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 3273045c: Correctly sets the readOnly prop in the useFormFieldProps hook. Previously, readOnly was only added to an input if disabled was true. Now, passing the readOnly prop adds it to the resulting input.
  • Updated dependencies [ae44834e]
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

  • 9ef03272: - Adds new prop confirmButtonProps. This prop is an object that accepts all Button props except for the variant prop. The variant is controlled by the variant prop.
    • Adds new prop cancelButtonProps. This prop is an object that accepts all Button props. The onClick property will also fire when the X button, or backdrop is clicked.
    • Prop onConfirm is now marked as deprecated. Please transition to confirmButtonProps and pass the onClick property.
      confirmButtonProps: {
        {
          onClick: () => {};
        }
      }
      
    • Prop buttonText is now marked as deprecated. Please transition to confirmButtonProps and pass the children property.
      confirmButtonProps: {
        {
          children: 'hi';
        }
      }
      
    • Prop submitDisabled is now marked as deprecated. Please transition to confirmButtonProps and pass the disabled property.
      confirmButtonProps: {
        {
          disabled: true;
        }
      }
      
    • Prop onCancel is now marked as deprecated. Please transition to cancelButtonProps and pass the onClick property.
      cancelButtonProps: {
        {
          onClick: () => {};
        }
      }
      

Patch Changes

leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Major Changes

  • ae44834e: Moves base Avatar component to @leafygreen-ui from @lg-chat.

    Updates supported sizes, and renames variant prop to format.

    Avatar no longer calls getInitials internally, and will render the first two characters of the text prop. getInitials must now be called external to Avatar, and one of its results (initials, givenInitial or surnameInitial) passed into the text prop.

Patch Changes

leafygreen-ui - @lg-chat/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • ae44834e: Removes color prop from Avatar
  • Updated dependencies [ae44834e]
  • Updated dependencies [ae44834e]
  • Updated dependencies [ae44834e]
leafygreen-ui - @lg-chat/[email protected]

Published by github-actions[bot] 5 months ago

Major Changes

  • 691877cd: Initial release

Patch Changes

leafygreen-ui - @lg-chat/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

  • 691877cd: Adds the links prop which renders link data as rich links after the message content

Patch Changes

  • f5da3fe9: The verified answer banner now uses sentence case instead of title case
  • Updated dependencies [691877cd]
leafygreen-ui - @lg-chat/[email protected]

Published by github-actions[bot] 5 months ago

Minor Changes

  • ae44834e: Imports Avatar from '@leafygreen-ui', and removes duplicated code

Patch Changes

  • ae44834e: Adds Generated stories
  • Updated dependencies [ae44834e]
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 01cf734c: Updates Storybook args for mongodb.design
  • Updated dependencies [684c87f1]
Package Rankings
Top 1.98% on Npmjs.org
Badges
Extracted from project README
version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version version