-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] feat(inputs): new inputs (#710)
* feat(text-input): started working on new styles * feat(text-inputs): added new variations of text inputs * feat(text-inputs): added new styles to text area * feat(text-inputs): added new styles to date picker * feat(inputs): finished up first iteration of inptus
- Loading branch information
1 parent
1c3081b
commit b740252
Showing
34 changed files
with
1,119 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/components/date-picker/date-picker--range-v2-light.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- Ranged --> | ||
<div class="bx--form-item"> | ||
<div data-date-picker data-date-picker-type="range" data-date-picker-version="v2" class="bx--date-picker bx--date-picker--range bx--date-picker--v2 bx--date-picker--light"> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-1" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input-from /> | ||
<label for="date-picker-1" class="bx--label">Start date label</label> | ||
</div> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-2" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input-to /> | ||
<label for="date-picker-2" class="bx--label">End date label</label> | ||
</div> | ||
<svg data-date-picker-icon class="bx--date-picker__icon" width="17" height="19" viewBox="0 0 17 19"> | ||
<path d="M12 0h2v2.7h-2zM3 0h2v2.7H3z" /> | ||
<path d="M0 2v17h17V2H0zm15 15H2V7h13v10z" /> | ||
<path d="M9.9 15H8.6v-3.9H7.1v-.9c.9 0 1.7-.3 1.8-1.2h1v6z" /> | ||
</svg> | ||
</div> | ||
</div> | ||
|
||
<!-- Ranged --> | ||
<div class="bx--form-item"> | ||
<div data-date-picker data-date-picker-type="range" data-date-picker-version="v2" class="bx--date-picker bx--date-picker--range bx--date-picker--v2 bx--date-picker--light"> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-1" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input-from /> | ||
<label for="date-picker-1" class="bx--label">Start date label</label> | ||
</div> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-2" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input-to /> | ||
<label for="date-picker-2" class="bx--label">End date label</label> | ||
</div> | ||
<svg data-date-picker-icon class="bx--date-picker__icon" width="17" height="19" viewBox="0 0 17 19"> | ||
<path d="M12 0h2v2.7h-2zM3 0h2v2.7H3z" /> | ||
<path d="M0 2v17h17V2H0zm15 15H2V7h13v10z" /> | ||
<path d="M9.9 15H8.6v-3.9H7.1v-.9c.9 0 1.7-.3 1.8-1.2h1v6z" /> | ||
</svg> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!-- Ranged --> | ||
<div class="bx--form-item"> | ||
<div data-date-picker data-date-picker-type="range" data-date-picker-version="v2" class="bx--date-picker bx--date-picker--range bx--date-picker--v2"> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-1" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input-from /> | ||
<label for="date-picker-1" class="bx--label">Start date label</label> | ||
</div> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-2" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input-to /> | ||
<label for="date-picker-2" class="bx--label">End date label</label> | ||
</div> | ||
<svg data-date-picker-icon class="bx--date-picker__icon" width="17" height="19" viewBox="0 0 17 19"> | ||
<path d="M12 0h2v2.7h-2zM3 0h2v2.7H3z" /> | ||
<path d="M0 2v17h17V2H0zm15 15H2V7h13v10z" /> | ||
<path d="M9.9 15H8.6v-3.9H7.1v-.9c.9 0 1.7-.3 1.8-1.2h1v6z" /> | ||
</svg> | ||
</div> | ||
</div> | ||
|
||
<!-- Ranged --> | ||
<div class="bx--form-item"> | ||
<div data-date-picker data-date-picker-type="range" data-date-picker-version="v2" class="bx--date-picker bx--date-picker--range bx--date-picker--v2 bx--input--light"> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-1" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input-from /> | ||
<label for="date-picker-1" class="bx--label">Start date label</label> | ||
</div> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-2" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input-to /> | ||
<label for="date-picker-2" class="bx--label">End date label</label> | ||
</div> | ||
<svg data-date-picker-icon class="bx--date-picker__icon" width="17" height="19" viewBox="0 0 17 19"> | ||
<path d="M12 0h2v2.7h-2zM3 0h2v2.7H3z" /> | ||
<path d="M0 2v17h17V2H0zm15 15H2V7h13v10z" /> | ||
<path d="M9.9 15H8.6v-3.9H7.1v-.9c.9 0 1.7-.3 1.8-1.2h1v6z" /> | ||
</svg> | ||
</div> | ||
</div> | ||
|
30 changes: 30 additions & 0 deletions
30
src/components/date-picker/date-picker--single-v2-light.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- Basic with calendar --> | ||
<div class="bx--form-item"> | ||
<div data-date-picker data-date-picker-type="single" data-date-picker-version="v2" class="bx--date-picker bx--date-picker--single bx--date-picker--v2 bx--date-picker--light"> | ||
<div class="bx--date-picker-container"> | ||
<svg data-date-picker-icon class="bx--date-picker__icon" width="17" height="19" viewBox="0 0 17 19"> | ||
<path d="M12 0h2v2.7h-2zM3 0h2v2.7H3z" /> | ||
<path d="M0 2v17h17V2H0zm15 15H2V7h13v10z" /> | ||
<path d="M9.9 15H8.6v-3.9H7.1v-.9c.9 0 1.7-.3 1.8-1.2h1v6z" /> | ||
</svg> | ||
<input type="text" id="date-picker-3" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input /> | ||
<label for="date-picker-3" class="bx--label">Date Picker label</label> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="bx--form-item"> | ||
<div data-date-picker data-date-picker-type="single" data-date-picker-version="v2" class="bx--date-picker bx--date-picker--single bx--date-picker--v2 bx--date-picker--light"> | ||
<div class="bx--date-picker-container"> | ||
<svg data-date-picker-icon class="bx--date-picker__icon" width="17" height="19" viewBox="0 0 17 19"> | ||
<path d="M12 0h2v2.7h-2zM3 0h2v2.7H3z" /> | ||
<path d="M0 2v17h17V2H0zm15 15H2V7h13v10z" /> | ||
<path d="M9.9 15H8.6v-3.9H7.1v-.9c.9 0 1.7-.3 1.8-1.2h1v6z" /> | ||
</svg> | ||
<input type="text" id="date-picker-3" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input /> | ||
<label for="date-picker-3" class="bx--label">Date Picker label</label> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- Basic with calendar --> | ||
<div class="bx--form-item"> | ||
<div data-date-picker data-date-picker-type="single" data-date-picker-version="v2" class="bx--date-picker bx--date-picker--single bx--date-picker--v2"> | ||
<div class="bx--date-picker-container"> | ||
<svg data-date-picker-icon class="bx--date-picker__icon" width="17" height="19" viewBox="0 0 17 19"> | ||
<path d="M12 0h2v2.7h-2zM3 0h2v2.7H3z" /> | ||
<path d="M0 2v17h17V2H0zm15 15H2V7h13v10z" /> | ||
<path d="M9.9 15H8.6v-3.9H7.1v-.9c.9 0 1.7-.3 1.8-1.2h1v6z" /> | ||
</svg> | ||
<input type="text" id="date-picker-3" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input /> | ||
<label for="date-picker-3" class="bx--label">Date Picker label</label> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="bx--form-item"> | ||
<div data-date-picker data-date-picker-type="single" data-date-picker-version="v2" class="bx--date-picker bx--date-picker--single bx--date-picker--v2 bx--input--light"> | ||
<div class="bx--date-picker-container"> | ||
<svg data-date-picker-icon class="bx--date-picker__icon" width="17" height="19" viewBox="0 0 17 19"> | ||
<path d="M12 0h2v2.7h-2zM3 0h2v2.7H3z" /> | ||
<path d="M0 2v17h17V2H0zm15 15H2V7h13v10z" /> | ||
<path d="M9.9 15H8.6v-3.9H7.1v-.9c.9 0 1.7-.3 1.8-1.2h1v6z" /> | ||
</svg> | ||
<input type="text" id="date-picker-3" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input /> | ||
<label for="date-picker-3" class="bx--label">Date Picker label</label> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div class="bx--form-item"> | ||
<div class="bx--date-picker bx--date-picker--simple bx--date-picker--short bx--date-picker--v2 bx--date-picker--light"> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-4" class="bx--date-picker__input" pattern="\d{1,2}/\d{4}" placeholder="mm/yyyy" data-date-picker-input | ||
/> | ||
<label for="date-picker-4" class="bx--label">Date Picker label</label> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="bx--form-item"> | ||
<div class="bx--date-picker bx--date-picker--simple bx--date-picker--short bx--date-picker--v2 bx--date-picker--light"> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-5" class="bx--date-picker__input" pattern="\d{1,2}/\d{4}" placeholder="mm/yyyy" data-date-picker-input | ||
/> | ||
<label for="date-picker-5" class="bx--label">Date Picker label</label> | ||
<div class="bx--form__helper-text"> | ||
Optional helper text here; if message is more than one line text should wrap (~100 character count maximum) | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="bx--form-item"> | ||
<div class="bx--date-picker bx--date-picker--simple bx--date-picker--v2 bx--date-picker--light"> | ||
<div class="bx--date-picker-container"> | ||
<input data-invalid type="text" id="date-picker-6" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input /> | ||
<label for="date-picker-6" class="bx--label">Date Picker label</label> | ||
<div class="bx--form-requirement"> | ||
Invalid date format. | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div class="bx--form-item"> | ||
<div class="bx--date-picker bx--date-picker--simple bx--date-picker--short bx--date-picker--v2"> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-4" class="bx--date-picker__input" pattern="\d{1,2}/\d{4}" placeholder="mm/yyyy" data-date-picker-input | ||
/> | ||
<label for="date-picker-4" class="bx--label">Date Picker label</label> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="bx--form-item"> | ||
<div class="bx--date-picker bx--date-picker--simple bx--date-picker--short bx--date-picker--v2"> | ||
<div class="bx--date-picker-container"> | ||
<input type="text" id="date-picker-5" class="bx--date-picker__input" pattern="\d{1,2}/\d{4}" placeholder="mm/yyyy" data-date-picker-input | ||
/> | ||
<label for="date-picker-5" class="bx--label">Date Picker label</label> | ||
<div class="bx--form__helper-text"> | ||
Optional helper text here; if message is more than one line text should wrap (~100 character count maximum) | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="bx--form-item"> | ||
<div class="bx--date-picker bx--date-picker--simple bx--date-picker--v2"> | ||
<div class="bx--date-picker-container"> | ||
<input data-invalid type="text" id="date-picker-6" class="bx--date-picker__input" pattern="\d{1,2}/\d{1,2}/\d{4}" placeholder="mm/dd/yyyy" | ||
data-date-picker-input /> | ||
<label for="date-picker-6" class="bx--label">Date Picker label</label> | ||
<div class="bx--form-requirement"> | ||
Invalid date format. | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<ul data-dropdown data-value class="bx--dropdown bx--dropdown--v2 bx--dropdown--light" tabindex="0"> | ||
<li class="bx--dropdown-text">Dropdown label</li> | ||
<svg class="bx--dropdown__arrow" width="10" height="5" viewBox="0 0 10 5" fill-rule="evenodd"> | ||
<path d="M10 0L5 5 0 0z"></path> | ||
</svg> | ||
<li> | ||
<ul class="bx--dropdown-list"> | ||
<li data-option data-value="all" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 1</a> | ||
</li> | ||
<li data-option data-value="cloudFoundry" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 2</a> | ||
</li> | ||
<li data-option data-value="staging" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 3</a> | ||
</li> | ||
<li data-option data-value="dea" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 4</a> | ||
</li> | ||
<li data-option data-value="router" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 5</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<ul data-dropdown data-value class="bx--dropdown bx--dropdown--v2" tabindex="0"> | ||
<li class="bx--dropdown-text">Dropdown label</li> | ||
<svg class="bx--dropdown__arrow" width="10" height="5" viewBox="0 0 10 5" fill-rule="evenodd"> | ||
<path d="M10 0L5 5 0 0z"></path> | ||
</svg> | ||
<li> | ||
<ul class="bx--dropdown-list"> | ||
<li data-option data-value="all" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 1</a> | ||
</li> | ||
<li data-option data-value="cloudFoundry" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 2</a> | ||
</li> | ||
<li data-option data-value="staging" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 3</a> | ||
</li> | ||
<li data-option data-value="dea" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 4</a> | ||
</li> | ||
<li data-option data-value="router" class="bx--dropdown-item"> | ||
<a class="bx--dropdown-link" href="javascript:void(0)">Option 5</a> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> |
Oops, something went wrong.