diff --git a/.storybook/__snapshots__/Storyshots.test.js.snap b/.storybook/__snapshots__/Storyshots.test.js.snap index 0e035912d5..bd490cf23c 100644 --- a/.storybook/__snapshots__/Storyshots.test.js.snap +++ b/.storybook/__snapshots__/Storyshots.test.js.snap @@ -22272,517 +22272,6 @@ exports[`Storyshots InputSelect with validation 1`] = ` `; exports[`Storyshots InputText different textual input types 1`] = ` -
++++ ++++ + < + form + + + + > + +++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + search + " + + + + + + +
+ + + + label + + + = + + + " + Search + " + + + + + + +
+ + + + value + + + = + + + " + what is paragon + " + + + + + + +
+ + + + type + + + = + + + " + search + " + + + + + + +
+ + + + id + + + = + + + " + input-search + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + email + " + + + + + + +
+ + + + label + + + = + + + " + Email + " + + + + + + +
+ + + + value + + + = + + + " + paragon@edx.org + " + + + + + + +
+ + + + type + + + = + + + " + email + " + + + + + + +
+ + + + id + + + = + + + " + input-email + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + url + " + + + + + + +
+ + + + label + + + = + + + " + Url + " + + + + + + +
+ + + + value + + + = + + + " + https://edx.github.io/paragon + " + + + + + + +
+ + + + type + + + = + + + " + url + " + + + + + + +
+ + + + id + + + = + + + " + input-url + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + telephone + " + + + + + + +
+ + + + label + + + = + + + " + Telephone + " + + + + + + +
+ + + + value + + + = + + + " + 1-(555)-555-5555 + " + + + + + + +
+ + + + type + + + = + + + " + tel + " + + + + + + +
+ + + + id + + + = + + + " + input-tel + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + password + " + + + + + + +
+ + + + label + + + = + + + " + Password + " + + + + + + +
+ + + + value + + + = + + + " + hunter2 + " + + + + + + +
+ + + + type + + + = + + + " + password + " + + + + + + +
+ + + + id + + + = + + + " + input-password + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + number + " + + + + + + +
+ + + + label + + + = + + + " + Number + " + + + + + + +
+ + + + value + + + = + + + { + + 42 + + } + + + + + + +
+ + + + type + + + = + + + " + number + " + + + + + + +
+ + + + id + + + = + + + " + input-number + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + datetime-local + " + + + + + + +
+ + + + label + + + = + + + " + Date and time + " + + + + + + +
+ + + + value + + + = + + + " + 2017-04-27T13:45:00 + " + + + + + + +
+ + + + type + + + = + + + " + datetime-local + " + + + + + + +
+ + + + id + + + = + + + " + input-datetime-local + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + date + " + + + + + + +
+ + + + label + + + = + + + " + Date + " + + + + + + +
+ + + + value + + + = + + + " + 2017-04-27 + " + + + + + + +
+ + + + type + + + = + + + " + date + " + + + + + + +
+ + + + id + + + = + + + " + input-date + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + month + " + + + + + + +
+ + + + label + + + = + + + " + Month + " + + + + + + +
+ + + + value + + + = + + + " + 2017-04 + " + + + + + + +
+ + + + type + + + = + + + " + month + " + + + + + + +
+ + + + id + + + = + + + " + input-month + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + week + " + + + + + + +
+ + + + label + + + = + + + " + Week + " + + + + + + +
+ + + + value + + + = + + + " + 2017-W33 + " + + + + + + +
+ + + + type + + + = + + + " + week + " + + + + + + +
+ + + + id + + + = + + + " + input-week + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + time + " + + + + + + +
+ + + + label + + + = + + + " + Time + " + + + + + + +
+ + + + value + + + = + + + " + 13:45:00 + " + + + + + + +
+ + + + type + + + = + + + " + time + " + + + + + + +
+ + + + id + + + = + + + " + input-time + " + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + color + " + + + + + + +
+ + + + label + + + = + + + " + Color + " + + + + + + +
+ + + + value + + + = + + + " + #BF472C + " + + + + + + +
+ + + + type + + + = + + + " + color + " + + + + + + +
+ + + + id + + + = + + + " + input-color + " + + + +
+ + + + /> + ++ + </ + form + > + ++
+ property + | ++ propType + | ++ required + | ++ default + | ++ description + | +
---|---|---|---|---|
+ label + | ++ + | ++ yes + | ++ - + | ++ |
+ name + | ++ + | ++ yes + | ++ - + | ++ |
+ id + | ++ + | ++ - + | ++ - + | ++ |
+ value + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ dangerIconDescription + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ description + | ++ + | ++ - + | ++ - + | ++ |
+ disabled + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ required + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ onChange + | ++ + | ++ - + | ++ + { + + onChange() + + } + + | ++ |
+ onKeyPress + | ++ + | ++ - + | ++ + { + + onKeyPress() + + } + + | ++ |
+ onBlur + | ++ + | ++ - + | ++ + { + + onBlur() + + } + + | ++ |
+ validator + | ++ + | ++ - + | ++ - + | ++ |
+ isValid + | ++ + | ++ - + | ++ + { + + true + + } + + | ++ |
+ validationMessage + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ className + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ themes + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ inline + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ inputGroupPrepend + | ++ + | ++ - + | ++ - + | ++ |
+ inputGroupAppend + | ++ + | ++ - + | ++ - + | ++ |
++++ ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + username + " + + + + + + +
+ + + + label + + + = + + + " + Username + " + + + + + + +
+ + + + value + + + = + + + " + foobar + " + + + + + + +
+ + + + inline + +
+ + + + /> + +
+ property + | ++ propType + | ++ required + | ++ default + | ++ description + | +
---|---|---|---|---|
+ label + | ++ + | ++ yes + | ++ - + | ++ |
+ name + | ++ + | ++ yes + | ++ - + | ++ |
+ id + | ++ + | ++ - + | ++ - + | ++ |
+ value + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ dangerIconDescription + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ description + | ++ + | ++ - + | ++ - + | ++ |
+ disabled + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ required + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ onChange + | ++ + | ++ - + | ++ + { + + onChange() + + } + + | ++ |
+ onKeyPress + | ++ + | ++ - + | ++ + { + + onKeyPress() + + } + + | ++ |
+ onBlur + | ++ + | ++ - + | ++ + { + + onBlur() + + } + + | ++ |
+ validator + | ++ + | ++ - + | ++ - + | ++ |
+ isValid + | ++ + | ++ - + | ++ + { + + true + + } + + | ++ |
+ validationMessage + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ className + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ themes + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ inline + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ inputGroupPrepend + | ++ + | ++ - + | ++ - + | ++ |
+ inputGroupAppend + | ++ + | ++ - + | ++ - + | ++ |
++++ ++ + < + FocusInputWrapper + + + + /> + ++
++++ ++ + < + asInput(Text) + + + + + + name + + + = + + + " + username + " + + + + + + + + label + + + = + + + { + + <span /> + + } + + + + + + + + value + + + = + + + " + Label is wrapped in language span + " + + + + + + + + /> + ++
+ property + | ++ propType + | ++ required + | ++ default + | ++ description + | +
---|---|---|---|---|
+ label + | ++ + | ++ yes + | ++ - + | ++ |
+ name + | ++ + | ++ yes + | ++ - + | ++ |
+ id + | ++ + | ++ - + | ++ - + | ++ |
+ value + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ dangerIconDescription + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ description + | ++ + | ++ - + | ++ - + | ++ |
+ disabled + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ required + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ onChange + | ++ + | ++ - + | ++ + { + + onChange() + + } + + | ++ |
+ onKeyPress + | ++ + | ++ - + | ++ + { + + onKeyPress() + + } + + | ++ |
+ onBlur + | ++ + | ++ - + | ++ + { + + onBlur() + + } + + | ++ |
+ validator + | ++ + | ++ - + | ++ - + | ++ |
+ isValid + | ++ + | ++ - + | ++ + { + + true + + } + + | ++ |
+ validationMessage + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ className + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ themes + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ inline + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ inputGroupPrepend + | ++ + | ++ - + | ++ - + | ++ |
+ inputGroupAppend + | ++ + | ++ - + | ++ - + | ++ |
++++ ++ + < + asInput(Text) + + + + + + name + + + = + + + " + name + " + + + + + + + + label + + + = + + + " + First Name + " + + + + + + + + value + + + = + + + " + Foo Bar + " + + + + + + + + /> + ++
+ property + | ++ propType + | ++ required + | ++ default + | ++ description + | +
---|---|---|---|---|
+ label + | ++ + | ++ yes + | ++ - + | ++ |
+ name + | ++ + | ++ yes + | ++ - + | ++ |
+ id + | ++ + | ++ - + | ++ - + | ++ |
+ value + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ dangerIconDescription + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ description + | ++ + | ++ - + | ++ - + | ++ |
+ disabled + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ required + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ onChange + | ++ + | ++ - + | ++ + { + + onChange() + + } + + | ++ |
+ onKeyPress + | ++ + | ++ - + | ++ + { + + onKeyPress() + + } + + | ++ |
+ onBlur + | ++ + | ++ - + | ++ + { + + onBlur() + + } + + | ++ |
+ validator + | ++ + | ++ - + | ++ - + | ++ |
+ isValid + | ++ + | ++ - + | ++ + { + + true + + } + + | ++ |
+ validationMessage + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ className + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ themes + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ inline + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ inputGroupPrepend + | ++ + | ++ - + | ++ - + | ++ |
+ inputGroupAppend + | ++ + | ++ - + | ++ - + | ++ |
++++ ++ + < + asInput(Text) + + + + ++
+ + + + id + + + = + + + " + username + " + + + + + + +
+ + + + name + + + = + + + " + username + " + + + + + + +
+ + + + label + + + = + + + " + Username + " + + + + + + +
+ + + + description + + + = + + + " + The unique name that identifies you throughout the… + " + + + + + + +
+ + + + validator + + + = + + + { + + validator() + + } + + + +
+ + + + /> + +
+ property + | ++ propType + | ++ required + | ++ default + | ++ description + | +
---|---|---|---|---|
+ label + | ++ + | ++ yes + | ++ - + | ++ |
+ name + | ++ + | ++ yes + | ++ - + | ++ |
+ id + | ++ + | ++ - + | ++ - + | ++ |
+ value + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ dangerIconDescription + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ description + | ++ + | ++ - + | ++ - + | ++ |
+ disabled + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ required + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ onChange + | ++ + | ++ - + | ++ + { + + onChange() + + } + + | ++ |
+ onKeyPress + | ++ + | ++ - + | ++ + { + + onKeyPress() + + } + + | ++ |
+ onBlur + | ++ + | ++ - + | ++ + { + + onBlur() + + } + + | ++ |
+ validator + | ++ + | ++ - + | ++ - + | ++ |
+ isValid + | ++ + | ++ - + | ++ + { + + true + + } + + | ++ |
+ validationMessage + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ className + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ themes + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ inline + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ inputGroupPrepend + | ++ + | ++ - + | ++ - + | ++ |
+ inputGroupAppend + | ++ + | ++ - + | ++ - + | ++ |
++++ ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + username + " + + + + + + +
+ + + + label + + + = + + + " + Username + " + + + + + + +
+ + + + description + + + = + + + " + The unique name that identifies you throughout the… + " + + + + + + +
+ + + + validator + + + = + + + { + + validator() + + } + + + + + + +
+ + + + themes + + + = + + + { + + [ + + " + danger + " + + ] + + } + + + +
+ + + + /> + +
+ property + | ++ propType + | ++ required + | ++ default + | ++ description + | +
---|---|---|---|---|
+ label + | ++ + | ++ yes + | ++ - + | ++ |
+ name + | ++ + | ++ yes + | ++ - + | ++ |
+ id + | ++ + | ++ - + | ++ - + | ++ |
+ value + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ dangerIconDescription + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ description + | ++ + | ++ - + | ++ - + | ++ |
+ disabled + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ required + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ onChange + | ++ + | ++ - + | ++ + { + + onChange() + + } + + | ++ |
+ onKeyPress + | ++ + | ++ - + | ++ + { + + onKeyPress() + + } + + | ++ |
+ onBlur + | ++ + | ++ - + | ++ + { + + onBlur() + + } + + | ++ |
+ validator + | ++ + | ++ - + | ++ - + | ++ |
+ isValid + | ++ + | ++ - + | ++ + { + + true + + } + + | ++ |
+ validationMessage + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ className + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ themes + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ inline + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ inputGroupPrepend + | ++ + | ++ - + | ++ - + | ++ |
+ inputGroupAppend + | ++ + | ++ - + | ++ - + | ++ |
++++ ++++ + < + form + + + + > + +++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + username + " + + + + + + +
+ + + + label + + + = + + + " + Username + " + + + + + + +
+ + + + value + + + = + + + " + foobar + " + + + + + + +
+ + + + inputGroupPrepend + + + = + + + { + + <div /> + + } + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + username + " + + + + + + +
+ + + + label + + + = + + + " + Username + " + + + + + + +
+ + + + value + + + = + + + " + foobar + " + + + + + + +
+ + + + inputGroupAppend + + + = + + + { + + <div /> + + } + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + money + " + + + + + + +
+ + + + label + + + = + + + " + Money + " + + + + + + +
+ + + + type + + + = + + + " + number + " + + + + + + +
+ + + + value + + + = + + + { + + 1000 + + } + + + + + + +
+ + + + inputGroupPrepend + + + = + + + { + + <div /> + + } + + + + + + +
+ + + + inputGroupAppend + + + = + + + { + + <div /> + + } + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + search + " + + + + + + +
+ + + + label + + + = + + + " + Search + " + + + + + + +
+ + + + value + + + = + + + " + what is paragon + " + + + + + + +
+ + + + inputGroupAppend + + + = + + + { + + <Button /> + + } + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + username + " + + + + + + +
+ + + + label + + + = + + + " + Username + " + + + + + + +
+ + + + value + + + = + + + " + foobar + " + + + + + + +
+ + + + inputGroupAppend + + + = + + + { + + [ + + { + + <div /> + + } + + , + + { + + <Button /> + + } + + ] + + } + + + +
+ + + + /> + ++ + < + asInput(Text) + + + + ++
+ + + + name + + + = + + + " + password + " + + + + + + +
+ + + + label + + + = + + + " + Password + " + + + + + + +
+ + + + value + + + = + + + " + secret + " + + + + + + +
+ + + + inputGroupAppend + + + = + + + { + + <div /> + + } + + + +
+ + + + /> + ++ + </ + form + > + ++
+ property + | ++ propType + | ++ required + | ++ default + | ++ description + | +
---|---|---|---|---|
+ label + | ++ + | ++ yes + | ++ - + | ++ |
+ name + | ++ + | ++ yes + | ++ - + | ++ |
+ id + | ++ + | ++ - + | ++ - + | ++ |
+ value + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ dangerIconDescription + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ description + | ++ + | ++ - + | ++ - + | ++ |
+ disabled + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ required + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ onChange + | ++ + | ++ - + | ++ + { + + onChange() + + } + + | ++ |
+ onKeyPress + | ++ + | ++ - + | ++ + { + + onKeyPress() + + } + + | ++ |
+ onBlur + | ++ + | ++ - + | ++ + { + + onBlur() + + } + + | ++ |
+ validator + | ++ + | ++ - + | ++ - + | ++ |
+ isValid + | ++ + | ++ - + | ++ + { + + true + + } + + | ++ |
+ validationMessage + | ++ + | ++ - + | ++ + " + + " + + | ++ |
+ className + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ themes + | ++ + | ++ - + | ++ + { + + [ + ] + + } + + | ++ |
+ inline + | ++ + | ++ - + | ++ + { + + false + + } + + | ++ |
+ inputGroupPrepend + | ++ + | ++ - + | ++ - + | ++ |
+ inputGroupAppend + | ++ + | ++ - + | ++ - + | ++ |