UNPKG

carbon-components

Version:

Carbon Components is a component library for IBM Cloud

150 lines (147 loc) • 7.13 kB
<!-- Copyright IBM Corp. 2016, 2018 This source code is licensed under the Apache-2.0 license found in the LICENSE file in the root directory of this source tree. --> <div class="bx--form-item"> <div class="bx--time-picker bx--time-picker--light"> <div class="bx--time-picker__input"> <label for="time-picker-5" class="bx--label">Select a time</label> <input id="time-picker-5" type="text" class="bx--text-input bx--text-input--light bx--time-picker__input-field" pattern="(1[012]|[1-9]):[0-5][0-9](\\s)?(?i)" placeholder="hh:mm" maxlength="5" /> </div> <div class="bx--time-picker__select bx--select bx--select--light bx--select--inline"> <label for="select-id-9" class="bx--label bx--visually-hidden">Select AM/PM</label> <select id="select-id-9" class="bx--select-input"> <option class="bx--select-option" value="AM">AM</option> <option class="bx--select-option" value="PM">PM</option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> <div class="bx--time-picker__select bx--select bx--select--light bx--select--inline"> <label for="select-id-10" class="bx--label bx--visually-hidden">Select time zone</label> <select id="select-id-10" class="bx--select-input"> <option class="bx--select-option" value="option-1">Time zone 1</option> <option class="bx--select-option" value="option-2">Time zone 2</option> <option class="bx--select-option" value="option-3">Time zone 3</option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> </div> </div> <div class="bx--form-item"> <div class="bx--time-picker bx--time-picker--light" data-invalid> <div class="bx--time-picker__input"> <label for="time-picker-6" class="bx--label">Select a time</label> <input id="time-picker-6" type="text" class="bx--text-input bx--text-input--light bx--time-picker__input-field" pattern="(1[012]|[1-9]):[0-5][0-9](\\s)?(?i)" placeholder="hh:mm" maxlength="5" /> <div class="bx--form-requirement"> Invalid time. </div> </div> <div class="bx--time-picker__select bx--select bx--select--light bx--select--inline"> <label for="select-id-11" class="bx--label bx--visually-hidden">Select AM/PM</label> <select id="select-id-11" class="bx--select-input"> <option class="bx--select-option" value="AM">AM</option> <option class="bx--select-option" value="PM">PM</option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> <div class="bx--time-picker__select bx--select bx--select--light bx--select--inline"> <label for="select-id-12" class="bx--label bx--visually-hidden">Select time zone</label> <select id="select-id-12" class="bx--select-input"> <option class="bx--select-option" value="option-1">Time zone 1</option> <option class="bx--select-option" value="option-2">Time zone 2</option> <option class="bx--select-option" value="option-3">Time zone 3</option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> </div> </div> <div class="bx--form-item"> <div class="bx--time-picker bx--time-picker--light"> <div class="bx--time-picker__input"> <label for="time-picker-7" class="bx--label bx--label--disabled">Select a time</label> <input id="time-picker-7" type="text" class="bx--text-input bx--text-input--light bx--time-picker__input-field" pattern="(1[012]|[1-9]):[0-5][0-9](\\s)?(?i)" placeholder="hh:mm" maxlength="5" disabled /> </div> <div class="bx--time-picker__select bx--select bx--select--light bx--select--inline"> <label for="select-id-13" class="bx--label bx--visually-hidden">Select AM/PM</label> <select id="select-id-13" class="bx--select-input" disabled> <option class="bx--select-option" value="AM">AM</option> <option class="bx--select-option" value="PM">PM</option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> <div class="bx--time-picker__select bx--select bx--select--light bx--select--inline"> <label for="select-id-14" class="bx--label bx--visually-hidden">Select time zone</label> <select id="select-id-14" class="bx--select-input" disabled> <option class="bx--select-option" value="option-1">Time zone 1</option> <option class="bx--select-option" value="option-2">Time zone 2</option> <option class="bx--select-option" value="option-3">Time zone 3</option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> </div> </div> <div class="bx--form-item"> <div class="bx--time-picker bx--time-picker--light" data-invalid> <div class="bx--time-picker__input"> <label for="time-picker-8" class="bx--label bx--label--disabled">Select a time</label> <input id="time-picker-8" type="text" class="bx--text-input bx--text-input--light bx--time-picker__input-field" pattern="(1[012]|[1-9]):[0-5][0-9](\\s)?(?i)" placeholder="hh:mm" maxlength="5" disabled /> <div class="bx--form-requirement"> Invalid time. </div> </div> <div class="bx--time-picker__select bx--select bx--select--light bx--select--inline"> <label for="select-id-15" class="bx--label bx--visually-hidden">Select AM/PM</label> <select id="select-id-15" class="bx--select-input" disabled> <option class="bx--select-option" value="AM">AM</option> <option class="bx--select-option" value="PM">PM</option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> <div class="bx--time-picker__select bx--select bx--select--light bx--select--inline"> <label for="select-id-16" class="bx--label bx--visually-hidden">Select time zone</label> <select id="select-id-16" class="bx--select-input" disabled> <option class="bx--select-option" value="option-1">Time zone 1</option> <option class="bx--select-option" value="option-2">Time zone 2</option> <option class="bx--select-option" value="option-3">Time zone 3</option> </select> <svg class="bx--select__arrow" width="10" height="5" viewBox="0 0 10 5"> <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" /> </svg> </div> </div> </div>