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

@devintent/dev

v0.7.2

Published

Application Development Library

Downloads

21

Readme

DevIntent Application Development Library

This library is still in the experimental phase.

The goal is to compose lower level Angular Material components into higher level components that are built with a focus on rapid application development.

Installation

npm i @devintent/dev --save

Components

Button Bar

Landscape Tablet

Portrait Phone

Find the demo here. Resize the screen width to see the responsive features.

Button Bar Template (example)

<dev-button-bar [navItems]="navItems" class="mat-elevation-z1"></dev-button-bar> <router-outlet></router-outlet>

Button Bar Component (example)

import {NavItem} from '@devintent/dev';
...
// Define your array
navItems: NavItem[];
...
// Add labels, route paths, and Material Design icon names.
this.navItems = [
  {label: 'Hot Tub', path: 'first', iconName: 'hot_tub'},
  {label: 'Beach', path: 'second', iconName: 'beach_access'},
  {label: 'Gym', path: 'third', iconName: 'fitness_center'}
];
...

Find icon names by searching the Material Design Icons Tool.

Button Bar Module

import {ButtonBarModule} from '@devintent/dev';
...
imports: [
  ButtonBarModule
],

Button Bar Routing

This component requires that you have appropriate routing set up to match the route paths in the NavItem entries. Here is our demo routing config and it's import.

Button Bar Theming (example)

The component themes work with Angular Material Custom Themes which are defined in .scss files.

You should define your theme in a SASS Partial. For example, _theme.scss:

// Custom Theming for Angular Material
// For more information: https://material.angular.io/guide/theming
@import '~@angular/material/theming';

// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
// hue. Available color palettes: https://material.io/design/color/
$demo-primary: mat-palette($mat-indigo);
$demo-accent: mat-palette($mat-green, A200, A100, A400);

// The warn palette is optional (defaults to red).
$demo-warn: mat-palette($mat-red);

// Create the theme object (a Sass map containing all of the palettes).
$demo-theme: mat-light-theme($demo-primary, $demo-accent, $demo-warn);

$demo-typography: mat-typography-config(
  //$font-family: 'Roboto, monospace',
    //$headline: mat-typography-level(32px, 48px, 700),
    //$body-1: mat-typography-level(16px, 24px, 500)
);

Then your primary SCSS entry point should import this theme file and pass the theme into both the Angular Material and DevIntent Dev components.

@import 'theme';
@import '~@devintent/dev/all-theme';

// Include the common styles for Angular Material. We include this here so that you only
// have to load a single css file for Angular Material in your app.
// Be sure that you only ever include this mixin once!
@include mat-core($demo-typography);

// Include theme styles for core and each component used in your app.
@include angular-material-theme($demo-theme);

// In addition to telling Angular Material about your theme, you also need to let the @devintent/dev
// components know about your theme.
@include dev-theme($demo-theme);

Note: We have not yet implemented custom typography for these components, but you can use it with Angular Material components. See more in their Typography Guide.