import { storiesOf } from '@storybook/angular';
import '!style-loader!css-loader!sass-loader!./styles.scss';
storiesOf('Welcome', module).add('to Storybook', () => ({
template: `
ONAP-UI-ANGULAR Style-Guide and Components
This project aims to create a unified UI styled components for multiple development teams who work on the same web-based applications.
This repository contains the definition of all the basic widgets and reusable controllers.
Note: the project is build of 3 different projects:
- onap-ui-common contains HTML and SCSS files for all components.
- onap-ui-angular contains Angular components according to the HTML defined in onap-ui-common.
- onap-ui-react contains React components according to the HTML defined in onap-ui-common.
Usage
Link the library's CSS file
There are several options to link to onap-ui-angular CSS file:
SCSS
@import "path_to_node_modules/onap-ui/css/style.css";
HTML
]]>
As Module (Using loading tool, i.e. Webpack)
import "onap-ui/css/style.css";
Angular CLI projects
You can add this line to style.css file:
@import "../node_modules/onap-ui/css/style.css";
Using the library in latest Angular (6)
Add the library to your module
Running storybook
The components in this library are displayed via
storybook.
Head to
http://onap-sdc.github.io/onap-ui-angular to see the components that are in
master.
While developing, just run
npm run storybook in your terminal to launch a local storybook server where you can see your changes. For deploying storybook to your own fork repository, refer to the guides section below.
Useful guides
Having some trouble? Have an issue?
For bugs and issues, please use the
issues page
How to Contribute
-
Contribution can be made only by following these guide lines
-
This project combines both React & Angular framework libraries.
Hence, every change in the basic HTML files structure, must be followed by changes on react and angular
projects (onap-ui-angular, onap-ui-react).
-
There will be no any 3rd party UI framework imported (i.e. Bootstrap, Material, Foundation... etc.).
-
Contribution are done only by the contribution guide.
Contributions submitted not in this format and guidelines will not be considered.
`,
props: {
},
moduleMetadata: {
},
}));