@sjse/component-library
SJ Component Library implementing SJ Design System
$ cnpm install @sjse/component-library 
SYNC missed versions from official npm registry.

Design System

Be ware: this is BETA!

SJ Component Library based on the SJ Design System

The Library is under development.


Installing

You can install sj component library with (NPM)[https://www.npmjs.com/package/@sjse/component-library].

  • NPM: npm i @sjse/component-library

Compatibility

SJ component system is compatible with React v16+ and works with ReactDOM. React Native is not supported at this time.

Using Themes

Example on how to use the Green Theme. If you want to use different themes, you will have to use different ThemeProviders, with different themes. We recommend wrapping the page in one theme, and deviations in separate ones.

import React from "react";

import { greenTheme, ThemeProvider } from "@sjse/component-library";

const App = () => {
  return (
    <ThemeProvider theme={greenTheme}>
      <App />
    </ThemeProvider>
  );
};

export default App;

Using Theme

You can also set the ThemeProviders to render the dark version of the theme as follows:

import React from "react";

import { greenTheme, ThemeProvider } from "sj-component-library";

const App = () => {
  return (
    <ThemeProvider theme={greenTheme} darkMode={true}>
      <App />
    </ThemeProvider>
  );
};

export default App;

Contribute to this package ( or fix errors for your own selfish needs :) )

Contributions are made through pull requests, make sure to ping/tag someone so they get notified about the PR.

Setup dev 'environment'

Clone the repository and create a new branch for yor feature or fix.

Storybook is started using the command npm start. It also runs eslint.

Publish new package

To be able to publish a new package you need to be a member of the @sjse organisation on npm. Then pull latest master (make sure that the version in package.json is updated), make sure everything is fit for new publication and then run:

npm publish

Some available scripts

  • build: Builds a dist folder and runs lint
  • start: Start ups Storybook locally and runs lint
  • lint: Runs eslint according to conf in .eslintrc
  • lint:fix: Runs eslint and fix simple errors

Current Tags

  • 0.3.1-beta.16                                ...           latest (a day ago)

94 Versions

  • 0.3.1-beta.16                                ...           a day ago
  • 0.3.1-beta.15                                ...           a day ago
  • 0.3.1-beta.14                                ...           a day ago
  • 0.3.1-beta.13                                ...           17 days ago
  • 0.3.1-beta.12                                ...           a month ago
  • 0.3.1-beta.11                                ...           a month ago
  • 0.3.1-beta.10                                ...           a month ago
  • 0.3.1-beta.9                                ...           2 months ago
  • 0.3.1-beta.8                                ...           2 months ago
  • 0.3.1-beta.7                                ...           2 months ago
  • 0.3.1-beta.6                                ...           2 months ago
  • 0.3.1-beta.5                                ...           2 months ago
  • 0.3.1-beta.4                                ...           2 months ago
  • 0.3.1-beta.3                                ...           2 months ago
  • 0.3.1-beta.2                                ...           2 months ago
  • 0.3.1-beta.1                                ...           2 months ago
  • 0.3.0-beta.7                                ...           2 months ago
  • 0.3.0-beta.6                                ...           3 months ago
  • 0.3.0-beta.5                                ...           3 months ago
  • 0.3.0-beta.4                                ...           3 months ago
  • 0.3.0-beta.3                                ...           3 months ago
  • 0.3.0-beta.2                                ...           3 months ago
  • 0.3.0-beta.1                                ...           3 months ago
  • 0.2.0-beta.25                                ...           3 months ago
  • 0.2.0-beta.24                                ...           3 months ago
  • 0.2.0-beta.23                                ...           3 months ago
  • 0.2.0-beta.22                                ...           4 months ago
  • 0.2.0-beta.21                                ...           4 months ago
  • 0.2.0-beta.20                                ...           4 months ago
  • 0.2.0-beta.19                                ...           4 months ago
  • 0.2.0-beta.18                                ...           4 months ago
  • 0.2.0-beta.17                                ...           4 months ago
  • 0.2.0-beta.16                                ...           4 months ago
  • 0.2.0-beta.15                                ...           4 months ago
  • 0.2.0-beta.14                                ...           4 months ago
  • 0.2.0-beta.13                                ...           4 months ago
  • 0.2.0-beta.12                                ...           4 months ago
  • 0.2.0-beta.11                                ...           4 months ago
  • 0.2.0-beta.10                                ...           4 months ago
  • 0.2.0-beta.9                                ...           4 months ago
  • 0.2.0-beta.8                                ...           4 months ago
  • 0.2.0-beta.7                                ...           4 months ago
  • 0.2.0-beta.6                                ...           4 months ago
  • 0.2.0-beta.5                                ...           4 months ago
  • 0.2.0-beta.4                                ...           4 months ago
  • 0.2.0-beta.3                                ...           4 months ago
  • 0.2.0-beta.2                                ...           4 months ago
  • 0.2.0-beta.1                                ...           5 months ago
  • 0.1.0-beta.5                                ...           5 months ago
  • 0.1.0-beta.4                                ...           5 months ago
  • 0.1.0-beta.3                                ...           5 months ago
  • 0.1.0-beta.2                                ...           5 months ago
  • 0.1.0-beta.1                                ...           5 months ago
  • 0.0.1-beta.40                                ...           5 months ago
  • 0.0.1-beta.39                                ...           5 months ago
  • 0.0.1-beta.38                                ...           5 months ago
  • 0.0.1-beta.37                                ...           5 months ago
  • 0.0.1-beta.36                                ...           5 months ago
  • 0.0.1-beta.35                                ...           5 months ago
  • 0.0.1-beta.34                                ...           5 months ago
  • 0.0.1-beta.33                                ...           5 months ago
  • 0.0.1-beta.32                                ...           5 months ago
  • 0.0.1-beta.31                                ...           5 months ago
  • 0.0.1-beta.30                                ...           5 months ago
  • 0.0.1-beta.29                                ...           6 months ago
  • 0.0.1-beta.28                                ...           6 months ago
  • 0.0.1-beta.27                                ...           6 months ago
  • 0.0.1-beta.26                                ...           6 months ago
  • 0.0.1-beta.25                                ...           6 months ago
  • 0.0.1-beta.24                                ...           6 months ago
  • 0.0.1-beta.23                                ...           6 months ago
  • 0.0.1-beta.22                                ...           6 months ago
  • 0.0.1-beta.21                                ...           6 months ago
  • 0.0.1-beta.20                                ...           6 months ago
  • 0.0.1-beta.19                                ...           6 months ago
  • 0.0.1-beta.18                                ...           6 months ago
  • 0.0.1-beta.17                                ...           6 months ago
  • 0.0.1-beta.16                                ...           6 months ago
  • 0.0.1-beta.15                                ...           6 months ago
  • 0.0.1-beta.14                                ...           6 months ago
  • 0.0.1-beta.13                                ...           6 months ago
  • 0.0.1-beta.12                                ...           6 months ago
  • 0.0.1-beta.11                                ...           6 months ago
  • 0.0.1-beta.10                                ...           6 months ago
  • 0.0.1-beta.9                                ...           7 months ago
  • 0.0.1-beta.8                                ...           7 months ago
  • 0.0.1-beta.7                                ...           7 months ago
  • 0.0.1-beta.6                                ...           7 months ago
  • 0.0.1-beta.5                                ...           7 months ago
  • 0.0.1-beta.4                                ...           7 months ago
  • 0.0.1-beta.3                                ...           7 months ago
  • 0.0.1-beta.2                                ...           7 months ago
  • 0.0.1-beta.1                                ...           7 months ago
  • 0.0.1-beta.0                                ...           7 months ago
Downloads
Today 0
This Week 28
This Month 40
Last Day 3
Last Week 0
Last Month 37
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |