Package Exports
- @elevate_security/elevate-component-library
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@elevate_security/elevate-component-library) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Elevate Security Component Library
A component library for sharing Elevate Components between each of our projects
Installation
npm install @elevate_security/elevate-component-library --save
Usage
cont Elevate = require('@elevate_security/elevate-component-library')
render() {
return (
<Elevate.Typography.H1>This is the tab content 1</Elevate.Typography.H1>
)
}
Components
- Card
- Icon
- Link
- Typography
- Layout
- Gauge
- LineBarChart
- Axis
- Line
- Input
- Button
- Tabs
- TimelineBlock
- ButtonIcon
- Breadcrumb
- Image
- Avatar
- Header
- GlobalStyle
- Logo
Development
- Clone this repo
npm install
- To debug or demo in storybook:
npm run-script storybook
- To bootstrap work on a new componentnpm:
run-script create [component name]
Local Development/importing into other applications
In component library, run:
npm link
Take the generated link and import into your parent project like so:
const Elevate = require('/usr/local/lib/node_modules/@elevate_security/elevate-component-library')
const { Logo } = Elevate
Deploying to NPM
- Check out and pull master
git checkout master
git pull
- Up the version on package.json to next version
"name": "@elevate_security/elevate-component-library",
"version": "1.0.6",
"description": "A library of elevate ui components",
- Commit, tag with version name and push
TAG=v1.0.6
git add package.json
git commit -m "bumping version to ${TAG}"
git tag ${TAG}
git push origin master ${TAG}