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

niduscss-material-dialog

v1.0.0

Published

Material design layout used in dialogs or form for niduscss framework

Downloads

5

Readme

niduscss-material-dialog

npm

Material design layout used in dialogs or form for niduscss framework.

Installation

$ npm install niduscss-material-dialog

Usage

Define the custom properties in a file if you like modify the default values:

Example: create a setting.css file:

:root {
  --Dialog-title: 1.25rem;
  --Dialog-sm-title: 1rem;
  --Dialog-bg-title: 1.5rem;
  --Dialog-btn-color: #3f51b5;
}

Import styles:

styles.css:

/* Import first de file with custom properties or declare before import the
   component.
   ========================================================================== */
   
@import "settings";

/* Material components
   ========================================================================== */
@import "niduscss-material-dialog";

/* Other styles */

Use in html files

<!-- Login dialog with angular -->
<div class="RcLogin-content">
  <div class="Dialog-header">
    <span class="Dialog-title" translate="ROUTE.LOGIN.TITLE"></span>
  </div>
  <form class="RcLogin-form" name="$ctrl.loginForm" ng-submit="$ctrl.emailLogin()" novalidate>
    <div class="Dialog-body">
      <!-- Mail group -->
      <div class="Form-group">
        <label for="login__email" translate="ROUTE.LOGIN.EMAIL.LABEL"></label>
        <input id="login__email" name="email" ng-model="$ctrl.email" ng-required="true" type="email" autofocus server-error>
        <div class="Form-errorMessage" ng-if="$ctrl.loginForm.email.$dirty || $ctrl.loginForm.email.$touched || $ctrl.loginForm.email.$error.server"
          ng-messages="$ctrl.loginForm.email.$error">
          <div ng-message="server">{{ 'ERRORS.' + $ctrl.errorMessage.email | translate }}</div>
          <div ng-message="email" translate="ROUTE.LOGIN.EMAIL.VALID"></div>
          <div ng-message="required" translate="ROUTE.LOGIN.EMAIL.REQUIRED"></div>
        </div>
      </div>

      <!-- Password group -->
      <div class="Form-group">
        <label for="login__password" translate="ROUTE.LOGIN.PASSWORD.LABEL"></label>
        <input id="login__password" name="password" ng-model="$ctrl.password" ng-required="true" type="password" server-error>
        <div class="Form-errorMessage" ng-if="$ctrl.loginForm.password.$dirty || $ctrl.loginForm.password.$touched || $ctrl.loginForm.password.$error.server"
          ng-messages="$ctrl.loginForm.password.$error">
          <div ng-message="server">{{ 'ERRORS.' + $ctrl.errorMessage.password | translate }}</div>
          <div ng-message="required" translate="ROUTE.LOGIN.PASSWORD.REQUIRED"></div>
        </div>
      </div>

      <!-- Forgot password question -->
      <div class="RcLogin-forgotText">
        <a class="u-primaryColor-df" href="#" ui-sref="requestPwd" translate="ROUTE.LOGIN.FORGOT"></a>
      </div>
    </div>

    <!-- submit -->
    <div class="Dialog-footer">
      <button class="Button Dialog-btn u-primaryBackground-h2" type="submit" ng-disabled="$ctrl.loginForm.$invalid || $ctrl.waiting" translate="ROUTE.LOGIN.BUTTON"
        aria-label="Login button"></button>
    </div>
  </form>
</div>

Changelog