-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Input): update to v1 API #281
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
74a9a24
Input Component updated to v1 API
jhchill666 1bcd072
fix(Input): fix props references
levithomason 2813a04
refactor(docs): update Input docs to v1 files
levithomason 0081a82
fix(docs): fix input variations typo
levithomason a2d4a59
refactor(docs): go stateless and rename Input docs
levithomason 486d669
fix(Sidebar): remove input ref
levithomason 5e05f31
docs(Input): update examples to v1 API
levithomason b011e82
feat(Input): update states to v1 API
levithomason 6bf626d
feat(Input): add v1 icon support
levithomason 952b52d
feat(Input): add labeled support
levithomason b064979
feat(Input): support labeled inputs
levithomason da1c0e1
feat(Input): begin labeled and action variations
levithomason fe63039
fix(docs): cleanup example layout
levithomason b37952c
feat(Dropdown): add missing `basic` prop
levithomason 5f4c7db
test(Dropdown): add missing className tests
levithomason 029dab7
feat(Input): support action inputs
levithomason 1fedf9b
test(Input): add v1 API tests
levithomason 15f89ce
docs(Input): add icon child example
levithomason adac980
feat(factories): allow deafultProps function
levithomason 5478c62
refactor(common): complete Input todos
levithomason fe327fc
fix(docs): fix linter issues
levithomason 59403ea
fix(BreadcrumbDivider-test): restore to original
levithomason 72bf71d
fix(FormField): do not pass label to all controls
levithomason af405e9
refactor(ExampleSection): restore header style
levithomason e27f533
refactor(factories): add defaultProps object default
levithomason File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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 was deleted.
Oops, something went wrong.
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,8 @@ | ||
import React from 'react' | ||
import { Input } from 'stardust' | ||
|
||
const InputDisabled = () => ( | ||
<Input disabled placeholder='Search...' /> | ||
) | ||
|
||
export default InputDisabled |
10 changes: 0 additions & 10 deletions
10
docs/app/Examples/elements/Input/States/InputDisabledExample.js
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
import React from 'react' | ||
import { Input } from 'stardust' | ||
|
||
const InputError = () => ( | ||
<Input error placeholder='Search...' /> | ||
) | ||
|
||
export default InputError |
10 changes: 0 additions & 10 deletions
10
docs/app/Examples/elements/Input/States/InputErrorExample.js
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
import React from 'react' | ||
import { Input } from 'stardust' | ||
|
||
const InputFocus = () => ( | ||
<Input focus placeholder='Search...' /> | ||
) | ||
|
||
export default InputFocus |
10 changes: 0 additions & 10 deletions
10
docs/app/Examples/elements/Input/States/InputFocusExample.js
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
import React from 'react' | ||
import { Input } from 'stardust' | ||
|
||
const InputLeftLoading = () => ( | ||
<Input loading icon='user' iconPosition='left' placeholder='Search...' /> | ||
) | ||
|
||
export default InputLeftLoading |
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,8 @@ | ||
import React from 'react' | ||
import { Input } from 'stardust' | ||
|
||
const InputLoading = () => ( | ||
<Input loading icon='user' placeholder='Search...' /> | ||
) | ||
|
||
export default InputLoading |
10 changes: 0 additions & 10 deletions
10
docs/app/Examples/elements/Input/States/InputLoadingExample.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Input is now a stateless component, so no
refs
are available. Updated the doc sidebar to use a regular query selector instead.