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] 3 months ago

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

  • 668cb1183: Ensures that event handlers do not fire when input is disabled
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 3 months ago

Patch Changes

  • 668cb1183: Ensures that event handlers do not fire when input is disabled
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 3 months ago

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

  • c95b81376: LG-4409: contentEnd slot prop now passes the disabled prop into the cloned element
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 3 months ago

Patch Changes

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

Published by github-actions[bot] 3 months ago

Minor Changes

  • 3f52c844b: - Adds optional glyph prop. The glyph will appear to the left of the chip text.

    <Chip label="chip" glyph={<Icon glyph="Wizard" />} />
    
    • Decrease left and right padding from 6px to 4px.
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 3 months ago

Patch Changes

  • 668cb1183: Ensures that event handlers do not fire when input is disabled
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 3 months ago

Minor Changes

  • 409377e19: Adds additional exports:
    • MenuDescendantsContext
      • Used to register and consume Menu descendants
      • This context value allows you to register and track custom menu items
    • Context hooks useMenuContext, useMenuGroupContext, & useSubMenuContext, along with types types MenuContextData, MenuGroupContextData, & SubMenuContextData,
      • use these to read context data from custom menu item components
    • menuColor: Custom color tokens used within Menu and related components
    • MenuInteractionState: Enumerates interaction states on a menu item
    • LGIDs: Unique ids for menu elements
    • menuItemClassName: The unique class name for menu item components
    • subMenuContainerClassName & subMenuToggleClassName
      • Unique classnames for submenu elements

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

  • 409377e19: Adds missing useHighlightContext export
leafygreen-ui - @leafygreen-ui/[email protected] Latest Release

Published by github-actions[bot] 3 months ago

Patch Changes

  • 4c04aa0ee: Update Menu to use latest Descendants API
  • Updated dependencies [4c04aa0ee]
  • Updated dependencies [66e5665e8]
  • Updated dependencies [4c04aa0ee]
  • Updated dependencies [4c04aa0ee]
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 3 months ago

Minor Changes

  • 66e5665e8: Exports shadow tokens from package

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

  • 4c04aa0ee: Updates Tabs to use latest Descendants API
  • Updated dependencies [4c04aa0ee]
  • Updated dependencies [66e5665e8]
  • Updated dependencies [4c04aa0ee]
  • Updated dependencies [4c04aa0ee]
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 3 months ago

Minor Changes

  • 4c04aa0ee: Creates utility types Only, ExclusiveUnion and ValuesOf
leafygreen-ui - @leafygreen-ui/[email protected]

Published by github-actions[bot] 3 months ago

Major Changes

  • 4c04aa0ee: Updates useInitDescendants signature to require a Context value, and return a Provider component.

    Eliminates the need to destructure descendants and dispatch from the hook's return value just to pass into the provider. Instead, the hook will construct a pre-populated provider unique to the Context value given.

    Note: descendants, dispatch and getDescendants are still returned by the hook for use in the parent component if necessary.

    Before:

    const MyDescendantContext = createDescendantsContext();
    const { descendants, dispatch } = useInitDescendants();
    
    return (
      <DescendantsProvider
        context={MyDescendantContext}
        descendants={descendants}
        dispatch={dispatch}
      >
        <MyDescendantItem />
      </DescendantsProvider>
    );
    

    After:

    const MyDescendantContext = createDescendantsContext();
    const { Provider } = useInitDescendants(MyDescendantContext);
    
    return (
      <Provider>
        <MyDescendantItem />
      </Provider>
    );
    

Minor Changes

  • 4c04aa0ee: Adds Highlight management utilities.
    • useHighlight: A hook to initialize the highlight state management
    • HighlightProvider: A context provider for consuming the highlight state from descendant components
    • createHighlightContext: Constructs a unique Context object in order to support nested contexts

Patch Changes

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

Published by github-actions[bot] 3 months ago

Patch Changes

  • fd0e5977d: Renames Palette story for Mongodb.design
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