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

@brightspace-ui/core

Package Overview
Dependencies
Maintainers
3
Versions
1436
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightspace-ui/core

Brightspace core UI components.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.4K
increased by107.8%
Maintainers
3
Weekly downloads
 
Created
Source

core

NPM version Greenkeeper badge

A collection of core UI components.

Installation

To install from NPM:

npm install @brightspace-ui/core

Components

  • Buttons: normal, primary, icon and subtle buttons
  • Colors: color palette
  • Icons: iconography SVGs and web components
  • Meter: linear, radial, circle meter web components.
  • More/less: constrain long bits of content
  • Typography: typography styles and components

Helpers

  • Helpers: helpers for composed DOM, unique ids, etc.

Mixins

  • Mixins: mixins for localization, RTL styles, etc.

Usage

Structure

/components/ - Web components for use in your composite components or application (ex. buttons, links, etc)

/helpers/ - Helpers for use in your web components or mixins (ex. composed DOM helpers)

/mixins/ - Mixins for use in your web components (ex. localize, RTL, etc)

/test/ - Index and shared styles for unit tests

/tools/ - Development tools for building, testing, etc.

Developing, Testing and Contributing

After cloning the repo, run npm install to install dependencies.

Run npm run build once, or any time icon or language files are changed.

If you don't have it already, install the Polymer CLI globally:

npm install -g polymer-cli

Running the demos

To start a local web server that hosts the demo page and tests:

polymer serve

Testing

To lint:

npm run lint

To run visual-diff tests:

npm run test:diff

To run a subset of visual-diff tests:

npm run test:diff -- -g some-pattern

To update visual-diff goldens:

npm run test:diff:golden

To run local unit tests:

npm run test:local

To run a subset of local unit tests, modify your local index.html, or start the dev server and navigate to the desired test page.

To run linting, visual-diff, and unit tests:

npm test

Versioning, Releasing & Deploying

All version changes should obey semantic versioning rules.

Include either [increment major], [increment minor] or [increment patch] in your merge commit message to automatically increment the package.json version, create a tag, and trigger a deployment to NPM.

FAQs

Package last updated on 02 Aug 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