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

armstrong-react-types

v1.0.0-alpha.31

Published

Rocketmakers Armstrong library of React components (For projects using npm @types from Typescript 2.0)

Downloads

11

Readme

armstrong-react

Armstrong React - Rocketmakers React component library.

1.0 Breaking changes

Imports

All virtual classes have been removed. Don't extend armstrong classes in your css or you WILL get duplication issues. This is due to how TSX and SCSS imports work. There are also now more files to import to cut down on size. They are self explanatory and as follows:

@import "~armstrong-react/dist/imports";
@import "~armstrong-react/dist/style";
@import "~armstrong-react/dist/form";
@import "~armstrong-react/dist/responsive";
@import "~armstrong-react/dist/nav";

Grid - CenterContent

Center content has been deprecated and is replaced with 2 new properties. HorizontalAlignment and Vertical alignment.

Grid - Fixed on row and col

Rows now take a height prop which supports either a number or the string 'auto'. Cols are the same but with a width property. You can now also use XAML-style star widths/heights. For example a 2 col layout with width='1*' and a width='2*' would split into a 1 3rd 2 3rds ratio

Grid - SingleColumnRow

This is no more! Just write the markup <Row><Col></Col></Row> or make your own component. It was messy and unmaintainable before

Button

Button no longer has a text property. You can pass anything, be it text or a component as its child. Shadows have been removed by default, if you want them add the class shadow. The default bottom margin has been removed to make it more flexible. Just pad your container or add m-bottom-small if you'd like a margin.

Form - Calendar & Datepickers

  • TimeSelector is no more
  • DatepickerInput has been renamed CalendarInput.
  • There are also now DateInput and TimeInput controls.
  • CalendarInput now only takes strings, so moment.js is now just an implementation detail
  • CalendarInput no longer takes a locale prop. Instead import ArmstrongConfig and call setLocale once, probably on app startup.

Form - Dropdownselect

Dropdownselect has been renamed to AutoCompleteInput to better reflect what it actually does

Form - Checkbox

CheckboxInput now takes "labelContent" which can be a string or a component. Previously it only supported a "label" string

Introduction

A library of components for React/SCSS interface development.

The Rokot platform components heavily rely on usage of the typings utility for typescript definitions management. If you don't have typings installed:

npm i typings -g

Getting Started

WARNING!: This library assumes you're using React and SASS.

Installation

Install via npm

npm i armstrong-react --save

Typings

You will need to install these ambient dependencies:

NOTE: you may already have some of these ambient dependencies installed!

typings install react underscore classnames node -SA

Importing the SCSS

To make use of the default styles, you'll need to import a single SCSS entry point from the module into your root stylesheet. The simplest way of achieving this is to use webpack's sass-loader plugin and add the following line to your root SCSS file:

@import "~armstrong-react/dist/style";

NOTE: If you're not using webpack, you can use an absolute or relative path through your node_modules folder.

Example: Adding a simple Armstrong Button (TypeScript/JSX):

import * as React from 'react';
import * as ReactDOM from 'react-dom';

import { Button } from "armstrong-react";

export class MyComponent extends React.Component<{}, {}> {

  private buttonClicked(e) {
    console.log('Clicked!')
  }

  public render() {
    return (
      <main>
        <h1>Below is a button!</h1>
        <Button condition="info" onClick={ this.buttonClicked }>Armstrong lives!</Button>
      </main>
    );
  }
}

Workbench folder?

Don't worry about this ;)

Consumed Libraries

Underscore

Classnames