px-forms-design

WebJar for px-forms-design

License

License

BSD 3-Clause
Categories

Categories

ORM Data
GroupId

GroupId

org.webjars.bowergithub.predixdesignsystem
ArtifactId

ArtifactId

px-forms-design
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

px-forms-design
WebJar for px-forms-design
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/predixdesignsystem/px-forms-design

Download px-forms-design

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.predixdesignsystem/px-forms-design/ -->
<dependency>
    <groupId>org.webjars.bowergithub.predixdesignsystem</groupId>
    <artifactId>px-forms-design</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.predixdesignsystem/px-forms-design/
implementation 'org.webjars.bowergithub.predixdesignsystem:px-forms-design:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.predixdesignsystem/px-forms-design/
implementation ("org.webjars.bowergithub.predixdesignsystem:px-forms-design:2.0.0")
'org.webjars.bowergithub.predixdesignsystem:px-forms-design:jar:2.0.0'
<dependency org="org.webjars.bowergithub.predixdesignsystem" name="px-forms-design" rev="2.0.0">
  <artifact name="px-forms-design" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.predixdesignsystem', module='px-forms-design', version='2.0.0')
)
libraryDependencies += "org.webjars.bowergithub.predixdesignsystem" % "px-forms-design" % "2.0.0"
[org.webjars.bowergithub.predixdesignsystem/px-forms-design "2.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bowergithub.predixdesignsystem : px-colors-design jar [1.0.0,2)
org.webjars.bowergithub.predixdesignsystem : px-defaults-design jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

px-forms-design

The Predix UI Forms module defines styles for form elements such as <input>, <label>, <select> and so on. It is based on Formalize (http://formalize.me) by Nathan Smith (http://sonspring.com/).

Dependencies

The px-forms-design module depends on two other Px modules:

Installation

Install this module and its dependencies using bower:

bower install --save px-forms-design

Once installed, @import into your project's Sass file in its Base layer:

@import "px-forms-design/_base.forms.scss";

Usage

The following flags are available and, if needed, should be set to true prior to importing the module:

$inuit-enable-inline-fields
$inuit-enable-text-input--bare
$inuit-enable-validation-states
$inuit-enable-input--tiny
$inuit-enable-input--small
$inuit-enable-input--regular
$inuit-enable-input--large
$inuit-enable-input--huge

The following variables are available for use in the module:

$inuit-forms-color
$inuit-forms-color--placeholder
$inuit-forms-background
$inuit-forms-border--inner
$inuit-forms-border--outer
$inuit-forms-border--inner--focused
$inuit-forms-border--outer--focused
$inuit-forms-color--disabled
$inuit-forms-background--disabled
$inuit-forms-border--disabled
$inuit-forms-color--readonly
$inuit-forms-background--readonly
$inuit-forms-border--readonly
$inuit-forms-color--help
$inuit-forms-select-background
$inuit-forms-select-color
$inuit-forms-select-shadow--dark
$inuit-forms-select-shadow--light
$inuit-forms-select-color--disabled
$inuit-forms-select-background--disabled
$inuit-forms-select-background--hover
$inuit-forms-select-border--hover
$inuit-forms-select-background--pressed
$inuit-forms-select-border--pressed
$inuit-forms-select-multiple-background
$inuit-forms-validation-warning
$inuit-forms-validation-error
$inuit-forms-validation-success

Basic usage of forms.base requires <input> fields with the following type attributes to carry the text-input class:

[type=email]
[type=number]
[type=password]
[type=search]
[type=tel]
[type=text]
[type=url]

Options

  • .text-input--bare: display form fields without margin, padding, or borders.
  • .form-field--inline: display form fields alongside each other, not stacked.
  • .input--[tiny|small|regular|large|huge]: define fixed widths for form fields.

View the full API here.

org.webjars.bowergithub.predixdesignsystem

Predix Design System

Versions

Version
2.0.0