Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@courbanize/courb-common-ui

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@courbanize/courb-common-ui

coUrbanize UI components for front-end

  • 0.7.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-96%
Maintainers
3
Weekly downloads
 
Created
Source

Codeship Status for coUrbanize/courb-common-ui

courb-common-ui

This Ember addon is a UI component library to share common styles and components between coUrbanize Ember applications.

Installation

Run the following code to install the addon in an Ember application:

ember install @courbanize/courb-common-ui

Included components

courb-tooltip

A component that wraps tooltip.js, to be used as block:

  {{#courb-tooltip
    title="tooltip text"
    options=(hash placement="top")}}
      <button>my button</button>
  {{/courb-tooltip}}

The options parameter accepts a hash of properties as supported by tooltip.js, placement being the most common one.

courb-button

A simple component the renders a button tag. Positional params will be applied to element modifiers following the BEM CSS naming convention and create different button versions.

  {{#courb-button "green"}}my button{{/courb-button}}

Will result in following HTML:

  <button class="courb-button courb-button--green">my button</button>

The Storybook has a display of all implemented styles.

Actions

Use the click Component property to trigger actions:

  {{#courb-button click=(action "myAction")}}my button{{/my-button}}

Storybook

Storybook is a living styleguide. It allows to organize and display components with different states.

Start the Storybook development server with:

yarn run storybook

It will open a browser and display the coUrbanize Common UI storybook at http://localhost:9001.

Adding stories

Stories are created in /stories. Please see the Storybook docs for details on how to create write stories.

Existing stories:

  • courb-tooltip
  • courb-button
  • fonts (WIP)

Contributing

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

Releasing a new version to NPM

  • git checkout master
  • yarn version --minor
  • git push
  • git push --tags
  • yarn publish --access public

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 03 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc