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

@integration-app/ui

v0.7.13

Published

Basic UI elements and helpers for IntegrationApp interfaces

Downloads

240

Readme

Usage

  1. Install the package
    npm i @integration-app/ui --save
  1. Use components

Components

Button

import { Button } from '@integration-app/ui';
import Button from '@integration-app/ui/Button';

<Button 
    variant={'primary|secondary|outline|text'}
    size={'small|medium|large'}
>
    <SvgIcon /> Button
</Button>

Select

import { Select } from '@integration-app/ui';
import Select from '@integration-app/ui/Select';

<Select>
  <option>Option</option>
</Select>

Input

import { Input } from '@integration-app/ui';
import Input from '@integration-app/ui/Input';

<Input value='some value' />

Checkbox

import { Checkbox } from '@integration-app/ui';
import Checkbox from '@integration-app/ui/Checkbox';

<Checkbox checked={checked} />

Form styling

import { Input, Button } from '@integration-app/ui';
import { Form, FormGroup, FormGroupLabel, FormGroupHintMessage } from '@integration-app/ui/Form';

<Form method='post' action=''>
    <FormGroup>
        <FormGroupLabel htmlFor='subdomain'>Subdomain</FormGroupLabel>
        <Input
          id='subdomain'
          name='subdomain'
          placeholder='Your Zendesk Subdomain'
        />
        <FormGroupHintMessage>
          If not sure, go to your Zendesk app and look at its domain.
          <br/> It looks like <kbd>[subdomain].zendesk.com</kbd> - enter subdomain here.
        </FormGroupHintMessage>
    </FormGroup>
    <FormGroup action>
      <Button type='primary' onClick='this.form.submit()'>
        Next
      </Button>
    </FormGroup>
</Form>

Plain HTML form styling

Inline form

    import '@integration-app/ui/ui-kit.css';
    
    <form className='ia-form'>
      <input type='email' placeholder='Email' />
      <input type='password' placeholder='Password' />
      <label htmlFor='default-remember'>
        <input type='checkbox' checked={true} id='default-remember' />{' '}
        Remember me
      </label>
      <button type='submit'>Sign in</button>
    </form>

Stacked form

    import '@integration-app/ui/ui-kit.css';

    <form className='ia-form ia-form--stacked'>
      <label htmlFor='stacked-email'>Email</label>
      <input type='email' id='stacked-email' placeholder='Email' />
      <span className='ia-form__message'>This is a required field.</span>
      <label htmlFor='stacked-password'>Password</label>
      <input type='password' id='stacked-password' placeholder='Password' />
      <label htmlFor='stacked-state'>State</label>
      <select id='stacked-state'>
        <option>AL</option>
        <option>CA</option>
        <option>IL</option>
      </select>
      <label htmlFor='stacked-remember' className='pure-checkbox'>
        <input type='checkbox' id='stacked-remember' /> Remember me
      </label>
      <button type='submit'>Sign in</button>
    </form>

Grouped form

    import '@integration-app/ui/ui-kit.css';

    <form className='ia-form'>
      <div className='ia-form__group'>
        <label htmlFor='aligned-name'>Username</label>
        <input type='text' id='aligned-name' placeholder='Username' />
        <span className='ia-form__message'>This is a required field.</span>
      </div>
      <div className='ia-form__group'>
        <label htmlFor='aligned-password'>Password</label>
        <input
          type='password'
          id='aligned-password'
          placeholder='Password'
        />
        <span className='ia-form__message ia-form__message--inline'>
          This is a required field.
        </span>
      </div>
      <div className='ia-form__group'>
        <label htmlFor='aligned-email'>Email Address</label>
        <input
          type='email'
          id='aligned-email'
          placeholder='Email Address'
        />
      </div>
      <div className='ia-form__group'>
        <label htmlFor='aligned-foo'>
          Supercalifragilistic Label Supercalifragilistic Label
        </label>
        <input
          type='text'
          id='aligned-foo'
          placeholder='Enter something here...'
        />
      </div>
      <div className='ia-form__group ia-form__group--actions'>
        <label htmlFor='aligned-cb' className='ia-form__checkbox'>
          <input type='checkbox' id='aligned-cb' /> I&#x27;ve read the terms
          and conditions
        </label>
        <button type='submit' className='pure-button pure-button-primary'>
          Submit
        </button>
      </div>
    </form>