@clearcapital/ui-resources
Last updated a year ago by jordanpapaleo .
UNLICENSED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @clearcapital/ui-resources 
SYNC missed versions from official npm registry.

Clear Capital UI Resources

A component library developed for use at Clear Capital Inc

Getting Started

To install this component library, you must have permission to install privately scoped Clear Capital packages on NPM. If you have not yet done so, follow the Npm Setup Guide.

Then, simply install the package.

npm install --save @clearcapital/ui-resources

Use destructured imports for components, e.g.:

import {Address} from '@clearcapital/ui-resources'

NOTE: Services have been moved to lib/ (the build folder) due to webpack packaging. For example to import the sortByObjKey function:

import {sortByObjKey} from '@clearcapital/ui-resources/lib/sortUtils'

Developing Components

We use Storybook as a way to quickly see components in their isolated state. To start the development server, simply run the following command:

npm start

To add a component, place it under a folder within the src/ directory, and add a corresponding .stories.js file in order for Storybook to see it. The basic format of writing a story is as follows:

import React from 'react'
import {storiesOf} from '@storybook/react'
import MyComponent from './MyComponent'

storiesOf('MyComponent', module)
  .add('Without props', () => (
    <MyComponent />
  ))

Note that a reset and a global stylesheet has been applied to the document body.

More information on writing stories can be found here.

Publishing components

npm run publish

Todo

  • [ ] Add colors
  • [ ] Add fonts
  • [ ] Add icons
  • [ ] Identify shared formats
    • [ ] Add shared
  • [ ] Identify shared components
    • [ ] Pull unused
    • [ ] Add shared

Current Tags

  • 2.19.0                                ...           latest (6 months ago)

68 Versions

  • 2.19.0                                ...           6 months ago
  • 2.18.0                                ...           7 months ago
  • 2.17.0                                ...           8 months ago
  • 2.16.2                                ...           8 months ago
  • 2.16.1                                ...           8 months ago
  • 2.16.0                                ...           8 months ago
  • 2.15.0                                ...           8 months ago
  • 2.14.2                                ...           9 months ago
  • 2.14.1                                ...           9 months ago
  • 2.14.0                                ...           9 months ago
  • 2.13.0                                ...           9 months ago
  • 2.12.0                                ...           9 months ago
  • 2.11.0                                ...           9 months ago
  • 2.10.0                                ...           9 months ago
  • 2.9.0                                ...           9 months ago
  • 2.8.1                                ...           9 months ago
  • 2.8.0                                ...           9 months ago
  • 2.7.0                                ...           9 months ago
  • 2.6.2                                ...           10 months ago
  • 2.6.1                                ...           10 months ago
  • 2.6.0                                ...           10 months ago
  • 2.4.4                                ...           10 months ago
  • 2.4.3                                ...           10 months ago
  • 2.4.2                                ...           10 months ago
  • 2.4.1                                ...           10 months ago
  • 2.4.0                                ...           10 months ago
  • 2.3.1                                ...           10 months ago
  • 2.3.0                                ...           10 months ago
  • 2.2.0                                ...           10 months ago
  • 2.1.0                                ...           10 months ago
  • 2.0.0                                ...           10 months ago
  • 1.4.0                                ...           10 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 0.10.0                                ...           10 months ago
  • 0.9.1                                ...           10 months ago
  • 0.9.0                                ...           10 months ago
  • 0.8.4                                ...           10 months ago
  • 0.8.2                                ...           10 months ago
  • 0.8.1                                ...           10 months ago
  • 0.8.0                                ...           10 months ago
  • 0.7.2                                ...           a year ago
  • 0.7.1                                ...           a year ago
  • 0.7.0                                ...           a year ago
  • 0.6.1                                ...           a year ago
  • 0.6.0                                ...           a year ago
  • 0.5.1                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.5                                ...           a year ago
  • 0.4.4                                ...           a year ago
  • 0.4.3                                ...           a year ago
  • 0.4.2                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.10                                ...           a year ago
  • 0.3.9                                ...           a year ago
  • 0.3.8                                ...           a year ago
  • 0.3.7                                ...           a year ago
  • 0.3.6                                ...           a year ago
  • 0.3.5                                ...           a year ago
  • 0.3.4                                ...           a year ago
  • 0.3.3                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.3.1                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 161
Last Day 0
Last Week 25
Last Month 137
Dependencies (24)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |