npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lithiamotors/lpp-nav-bar

v2.4.1

Published

LPP nav bar with drawer menu.

Downloads

66

Readme

@lithiamotors/lpp-nav-bar


Implementation

import { MuiThemeProvider } from '@material-ui/core';
import LppMuiTheme from '@lithiamotors/lpp-mui-theme';
import LppNavBar from "@lithiamotors/lpp-nav-bar"

const primaryLinks = [
    {
		text: 'Test Link - Lightbulb Icon',
		link: 'https://google.com',
		disabled: true,
		selected: false,
		icon: 'lightbulb',
	},
	{
		text: 'Test Link - Default Icon',
		link: 'https://google.com',
		disabled: true,
		selected: false,
	},
];

const secondaryLinks = [
		{
			text: 'Alert Message (Custom Function)',
			callback: () => alert('Hello!'),
			display: user.isAuthorized,
			preventDrawerClose: true
		},
	];


export default function(props) {
    return (
        <MuiThemeProvider theme={LppMuiTheme}>
            <LppNavBar Title='LPP' subTitle='Lien Payoff Center' primaryLinks={primaryLinks} secondaryLinks={secondaryLinks} environment='DEVELOPMENT' drawerEnabled='true' />
			{props.children}
        </MuiThemeProvider>
    )
}

Version 2.4.0 (feature/abarnes-10762)

  • Added new property object buttonParams. this allows the banner to display an action button to which they can pass a callback function (buttonCallback)

Version 2.3.1 (feature/abarnes-003)

  • Added new property drawerEnabled. this allows the drawer to not show if the app does not want the side navigation at any point

Version 2.2.2 (feature/abarnes-002)

  • Updated the font weight of title and subTitle

Version 2.2.0 (feature/abarnes-001)

  • Update appAbv prop to title prop, defaults to LPP
  • Updated title prop to subTitle prop defaluts to Lien Payoff Center
  • Added LOCAL environment prop with the associated color

Version 2.1.0 (feature/cmorrissey-106704)

  • Added appAbv prop, defaults to LPP
  • Restructured and componentized module (moved styles out, composed more modularly)
  • Moved Menu Icon and Drawer menu to Left
  • Added Environment Tab to Right

Version 2.0.0 (feature/cmorrissey-79227)

  • Upgraded to MUI v5

Version 1.0.5 (develop)

  • Changed padding on left side to match gutter size (24px)

Version 1.0.4 (feature/cmorrissey-68837)

  • Updated nav bar icon and style

Version 1.0.3 (feature/cmorrissey-63539)

  • Changed default header and hamburger color to white

Version 1.0.2 (feature/cmorrissey-46992)

  • Added preventDrawerClose value. By default the modal closes on click, but we want to add an option to bypass that close. Useful for keeping the drawer open while using dev tools.

Version 1.0.1 (feature/cmorrissey-46992)

  • Added display value, defaults to true but allows easy custom logic in host app

Version 1.0.0 (feature/cmorrissey-46992)

  • Added secondary array for sublinks

Version 1.0.0-alpha.5 (feature/cmorrissey-readme-updates)

  • Updated Readme

Version 1.0.0-alpha.4

  • Updated Readme

Version 1.0.0-alpha.3

  • Currently supporting SVG's
    • This is being done by referencing the SVG as a module instead of a file path. Microbundle will not accknowledge the SVG's correct path if specified in the source file. The source file will fail to build, but the dist file will succeed.
    • EX: import mySVG from 'mySVG.svg' instead of import mySVG from './mySVG.svg'
  • Code copied from old Create React Library