0.0.37 • Published 5 years ago

weightless v0.0.37

Weekly downloads
188
License
MIT
Repository
github
Last release
5 years ago
  • High-quality: Centered around the best practices.
  • Testable: Hundreds of test-cases makes sure the library is stable.
  • Easy-to-use: But with a simple and understandable API.
  • Accessible: All components has been build with accessibility in mind.
  • Single-responsibility: Each component does one thing really well. This makes them really easy to extend and compose.

-----------------------------------------------------

➤ Table of Contents

-----------------------------------------------------

➤ Demo

Go here to try the demo.

-----------------------------------------------------

➤ Installation

$ npm i weightless

If you want to get started super quickly you can use the CLI.

$ npm init web-config new my-project --lit

If you prefer to use the umd bundle you can import https://unpkg.com/weightless/umd/weightless.min.js. Keep in mind that this imports all elements, so it is recommended that you only use it for test purposes.

<script src="https://unpkg.com/weightless/umd/weightless.min.js"></script>

-----------------------------------------------------

➤ Elements

NameTagDescriptionDocumentationDemo
Backdropwl-backdropDark layer to use behind overlayed elements.DocumentationDemo
Bannerwl-bannerDisplay a non-interruptive message and related optional actions.DocumentationDemo
Buttonwl-buttonAllow users to take actions, and make choices, with a single tap.DocumentationDemo
Cardwl-cardGroup related content and action.DocumentationDemo
Checkboxwl-checkboxTurn an option on or off.DocumentationDemo
Dialogwl-dialogHighly interruptive messages.DocumentationDemo
Dividerwl-dividerThin line that groups content in lists and layouts.DocumentationDemo
Expansionwl-expansionProvide an expandable details-summary view.DocumentationDemo
Iconwl-iconSymbols for common actions and items.DocumentationDemo
Labelwl-labelMake form elements more accessible.DocumentationDemo
List Itemwl-list-itemDisplay an item in a list.DocumentationDemo
Navwl-navProvide access to destinations in your app.DocumentationDemo
Popoverwl-popoverContextual anchored elementsDocumentationDemo
Popover Cardwl-popover-cardGive popovers a contextual flair.DocumentationDemo
Progress Barwl-progress-barFills a bar from 0% to 100%.DocumentationDemo
Progress Spinnerwl-progress-spinnerFills a circle from 0% to 100%.DocumentationDemo
Radiowl-radioSelect one option from a set.DocumentationDemo
Ripplewl-rippleIndicate touch actions.DocumentationDemo
Selectwl-selectSelect one or more values from a set of options.DocumentationDemo
Sliderwl-sliderMake selections from a range of values.DocumentationDemo
Snackbarwl-snackbarProvide brief messages at the bottom of the screen.DocumentationDemo
Switchwl-switchTurn an option on or off.DocumentationDemo
Tabwl-tabOrganize navigation between groups of content.DocumentationDemo
Tab Groupwl-tab-groupOrganize navigation between groups of content.DocumentationDemo
Textwl-textGroup text into paragraphs.DocumentationDemo
Textareawl-textareaMultiline text fields.DocumentationDemo
Textfieldwl-textfieldSingleline text fields.DocumentationDemo
Titlewl-titleIndicate the start of a new section.DocumentationDemo
Tooltipwl-tooltipInformative context related text.DocumentationDemo

-----------------------------------------------------

➤ Roadmap

There's lots of exciting things on the roadmap. Until v1.0.0 you can expect the API to be fairly stable but refactoring might still happen and break the backwards compatibility. You are very welcome to use the library, create pull requests or add issues.

-----------------------------------------------------

➤ Contributing guide

You are more than welcome to contribute to this repository! Below are some instructions on how to setup the project for development.

  1. Clone this repository by running git clone https://github.com/andreasbm/weightless.git.
  2. Run npm i to install all dependencies.
  3. Spin up the development server with npm run s. The browser should automatically be opened at the correct url. If not, you can open your browser and go to http://localhost:1350.
  4. Run tests with npm run test.
  5. Lint the files with npm run lint.
  6. Compile the documentation by running npm run docs.

The elements are written in Typescript and the stylesheets are written in SASS. All of the web components uses lit-element.

If you want to know more about how you can help you should definitely check out the CONTRIBUTING.md file. All contributors will be added to the contributors section below.

-----------------------------------------------------

➤ Contributors

Andreas MehlsenYou?

-----------------------------------------------------

➤ License

Licensed under MIT.

0.0.37

5 years ago

0.0.36

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago