-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add failing TextInput type test * Create loud-schools-own.md * Update TextInput types * Add another TextInput type test * Update TextInput props type * Update TextInputWithTokens types * Fix incorrect uses of TextInputWithTokens * Update SelectMenu types test * Fix TextInput tests * Update snapshot tests * autocomplete -> autoComplete * Remove theme prop SelectMenuFilter * Fix TextInput in Overlay story * Fix TextInputWithTokens stories
- Loading branch information
Showing
16 changed files
with
564 additions
and
526 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/react": patch | ||
--- | ||
|
||
Fix `TextInput` types |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react' | ||
import {TextInput} from '..' | ||
|
||
export function shouldNotAcceptInvalidDomProps() { | ||
// @ts-expect-error invalid DOM props should not be accepted | ||
return <TextInput onKeyDown={true} /> | ||
} | ||
|
||
export function shouldNotAcceptInvalidSize() { | ||
// @ts-expect-error invalid size value should not be accepted | ||
return <TextInput size="big" /> | ||
} |
Oops, something went wrong.