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
1442
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightspace-ui/core

A collection of accessible, free, open-source web components for building Brightspace applications

  • 1.15.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.8K
decreased by-53.32%
Maintainers
3
Weekly downloads
 
Created
Source

core

NPM version NPM downloads Greenkeeper badge Build status

A collection of accessible, free, open-source web components for building Brightspace applications.

Installation

To install from NPM:

npm install @brightspace-ui/core

Components

  • Buttons: normal, primary, icon and subtle buttons
  • Colors: color palette
  • Dialogs: generic and confirmation dialogs
  • Icons: iconography SVGs and web components
  • Inputs: text, search, checkbox and radio inputs
  • Links: link component and styles
  • Meter: linear, radial, circle meter web components
  • More/less: constrain long bits of content
  • Off-screen: component and styles for positioning content off-screen
  • Typography: typography styles and components

Helpers

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

Mixins

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 update the visual-diff goldens in Github using Travis (through triggering a build on the current branch):

npm run build && npm run test:diff:golden && npm run test:diff:golden:commit

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 30 Oct 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