0.6.0 • Published 3 years ago

whiplash-ui v0.6.0

Weekly downloads
99
License
MIT
Repository
github
Last release
3 years ago

whiplash-ui

A library of global UI elements for use across Whiplash applications.

Usage

To implement the Whiplash UI, run yarn add whiplash-ui in your project's root directory.

In your application.css add the line:

*= require whiplash-ui/stylesheets/application

In your application.js add the line:

//= require whiplash-ui/javascripts/behavior

Elements

DotLoader loading indicator

This functionality is pulled right from the UI toolkit living style guide. To implement, create an element <div class="loader-wrapper"> and the JS will populate it with the necessary children for animation when the page loads.

SelectBox select input field

This component style is taken from the UI toolkit. To implement this style in a Whiplash UI-styled application, create an element <select class="select-input"> with options as you normally would. The JavaScript will then parse that element and its options and convert the HTML layout to what is expected to implement the more complex and customized select dropdown input.

Toggle checkbox control

The style of this control is taken from the UI toolkit. To implement in a Whiplash UI application, create an element <input type="checkbox" class="toggle-input"> and the JS will create the required HTML structure to facilitate the complex styling of the element.

Checkbox

<div class="check-box">
  <input id="test" type="checkbox" class="check-box-input" name="test" value="on">
  <span class="check-box-button"></span>
  <label for="test">This is a checkbox.</label>
</div><br>
<div class="check-box">
  <input id="test" type="checkbox" class="check-box-input" name="test" value="on">
  <span class="check-box-button"></span>
  <label for="test">This is a second checkbox.</label>
</div>

Dropdown/up floating menu control

In order to implement this, you need to have the following HTML structure:

<div class="dropdown-wrapper">
	<button class="button text" data-dropdown="up-menu">Menu Button/Link</button>
	<div class="dropdown dropdown-up" id="up-menu">
		<ul class="dropdown-list">
			<li><a href="#">Stuff</a></li>
			<li><a href="#">Biz</a></li>
		</ul>
	</div>
</div>

There are two orientations -- a menu that drops down uses the class dropdown-down on the div that wraps dropdown-list. A menu that pops up from the button uses the class dropdown-up.

0.6.0

3 years ago

0.6.0-beta

3 years ago

0.5.9

3 years ago

0.5.9-beta.10

3 years ago

0.5.9-beta.11

3 years ago

0.5.9-beta.7

3 years ago

0.5.9-beta.8

3 years ago

0.5.9-beta.9

3 years ago

0.5.9-beta.6

3 years ago

0.5.9-beta.3

3 years ago

0.5.9-beta.4

3 years ago

0.5.9-beta.5

3 years ago

0.5.9-beta.2

3 years ago

0.5.9-beta.1

3 years ago

0.5.9-beta.0

3 years ago

0.5.7-beta.13

3 years ago

0.5.7-beta.12

3 years ago

0.5.7-beta.11

3 years ago

0.5.7-beta.17

3 years ago

0.5.7-beta.16

3 years ago

0.5.7-beta.15

3 years ago

0.5.7-beta.14

3 years ago

0.5.7-beta.18

3 years ago

0.5.8-beta.2

3 years ago

0.5.8-beta.1

3 years ago

0.5.8-beta.0

3 years ago

0.5.7-beta.10

3 years ago

0.5.7-beta.9

3 years ago

0.5.7-beta.8

3 years ago

0.5.7-beta.7

3 years ago

0.5.7-beta.6

3 years ago

0.5.7-beta.5

3 years ago

0.5.7-beta.4

4 years ago

0.5.7-beta.3

4 years ago

0.5.7-beta.2

4 years ago

0.5.7-beta.1

4 years ago

0.5.7-beta.0

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.4

4 years ago

0.5.4-beta.8

4 years ago

0.5.4-beta.0

4 years ago

0.5.4-beta.1

4 years ago

0.5.4-beta.4

4 years ago

0.5.4-beta.5

4 years ago

0.5.4-beta.2

4 years ago

0.5.4-beta.3

4 years ago

0.5.4-beta.6

4 years ago

0.5.4-beta.7

4 years ago

0.5.3

4 years ago

0.5.3-beta.7

4 years ago

0.5.3-beta.6

4 years ago

0.5.3-beta.5

4 years ago

0.5.3-beta.4

4 years ago

0.5.3-beta.3

4 years ago

0.5.3-beta.2

4 years ago

0.5.3-beta.0

4 years ago

0.5.3-beta.1

4 years ago

0.5.2

4 years ago

0.5.2-beta.34

4 years ago

0.5.2-beta.33

4 years ago

0.5.2-beta.32

4 years ago

0.5.2-beta.30

4 years ago

0.5.2-beta.31

4 years ago

0.5.2-beta.27

4 years ago

0.5.2-beta.26

4 years ago

0.5.2-beta.29

4 years ago

0.5.2-beta.28

4 years ago

0.5.2-beta.25

4 years ago

0.5.2-beta.24

4 years ago

0.5.2-beta.23

4 years ago

0.5.2-beta.22

4 years ago

0.5.2-beta.21

4 years ago

0.5.2-beta.20

4 years ago

0.5.2-beta.19

4 years ago

0.5.2-beta.18

4 years ago

0.5.2-beta.17

4 years ago

0.5.2-beta.16

4 years ago

0.5.2-beta.15

4 years ago

0.5.2-beta.14

4 years ago

0.5.2-beta.13

4 years ago

0.5.2-beta.12

4 years ago

0.5.2-beta.11

4 years ago

0.5.2-beta.10

4 years ago

0.5.2-beta.9

4 years ago

0.5.2-beta.8

4 years ago

0.5.2-beta.7

4 years ago

0.5.2-beta.6

4 years ago

0.5.2-beta.5

4 years ago

0.5.2-beta.4

4 years ago

0.5.2-beta.3

4 years ago

0.5.2-beta.2

4 years ago

0.5.2-beta.1

4 years ago

0.5.2-beta.0

4 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.12

7 years ago

0.4.11

7 years ago

0.4.10

7 years ago

0.4.9

7 years ago

0.4.8

7 years ago

0.4.6

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago