This repository has been archived by the owner on Dec 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from Ultimaker/search-field
STAR-303: Search and Code fields
- Loading branch information
Showing
16 changed files
with
1,120 additions
and
19 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
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
116 changes: 116 additions & 0 deletions
116
src/components/input_fields/__tests__/__snapshots__/code_field.test.tsx.snap
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,116 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`The code input field component should render a wrapper 1`] = ` | ||
<div | ||
className="code-field" | ||
id="testInputField" | ||
> | ||
<InputFieldWrapper | ||
focusOnLoad={false} | ||
id="testInputField" | ||
labelLayoutWidth="1/1" | ||
labelWidthBreakpoint="sm" | ||
onChangeHandler={[MockFunction]} | ||
staticField={false} | ||
touched={false} | ||
> | ||
<input | ||
className="input" | ||
id="testInputField__0" | ||
maxLength={1} | ||
name="testInputField" | ||
onChange={[Function]} | ||
onKeyDown={[Function]} | ||
onPaste={[Function]} | ||
placeholder={null} | ||
type="text" | ||
value="2" | ||
/> | ||
<span | ||
className="separator" | ||
> | ||
- | ||
</span> | ||
<input | ||
className="input" | ||
id="testInputField__1" | ||
maxLength={1} | ||
name="testInputField" | ||
onChange={[Function]} | ||
onKeyDown={[Function]} | ||
onPaste={[Function]} | ||
placeholder={null} | ||
type="text" | ||
value="0" | ||
/> | ||
<span | ||
className="separator" | ||
> | ||
- | ||
</span> | ||
<input | ||
className="input" | ||
id="testInputField__2" | ||
maxLength={1} | ||
name="testInputField" | ||
onChange={[Function]} | ||
onKeyDown={[Function]} | ||
onPaste={[Function]} | ||
placeholder={null} | ||
type="text" | ||
value="1" | ||
/> | ||
<span | ||
className="separator" | ||
> | ||
- | ||
</span> | ||
<input | ||
className="input" | ||
id="testInputField__3" | ||
maxLength={1} | ||
name="testInputField" | ||
onChange={[Function]} | ||
onKeyDown={[Function]} | ||
onPaste={[Function]} | ||
placeholder={null} | ||
type="text" | ||
value="8" | ||
/> | ||
<span | ||
className="separator" | ||
> | ||
- | ||
</span> | ||
<input | ||
className="input" | ||
id="testInputField__4" | ||
maxLength={1} | ||
name="testInputField" | ||
onChange={[Function]} | ||
onKeyDown={[Function]} | ||
onPaste={[Function]} | ||
placeholder={null} | ||
type="text" | ||
value="" | ||
/> | ||
<span | ||
className="separator" | ||
> | ||
- | ||
</span> | ||
<input | ||
className="input" | ||
id="testInputField__5" | ||
maxLength={1} | ||
name="testInputField" | ||
onChange={[Function]} | ||
onKeyDown={[Function]} | ||
onPaste={[Function]} | ||
placeholder={null} | ||
type="text" | ||
value="" | ||
/> | ||
</InputFieldWrapper> | ||
</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
38 changes: 38 additions & 0 deletions
38
src/components/input_fields/__tests__/__snapshots__/search_field.test.tsx.snap
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,38 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`The search field component should render a wrapper 1`] = ` | ||
<div | ||
className="search-field" | ||
> | ||
<DefaultInputField | ||
id="testInputField" | ||
inputRef={ | ||
Object { | ||
"current": Object { | ||
"focus": [MockFunction], | ||
}, | ||
} | ||
} | ||
labelLayoutWidth="1/1" | ||
labelWidthBreakpoint="sm" | ||
onChangeHandler={[MockFunction]} | ||
placeholder="placeholder text" | ||
staticField={false} | ||
type="text" | ||
value="2018" | ||
> | ||
<Button | ||
className="search-button" | ||
linkToNewTab={false} | ||
onClickHandler={[Function]} | ||
shape="rectangle" | ||
style="quiet" | ||
type="button" | ||
> | ||
<Icon(RejectedIcon) | ||
size="sm" | ||
/> | ||
</Button> | ||
</DefaultInputField> | ||
</div> | ||
`; |
Oops, something went wrong.