-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the Name component to display a saved petname or a proposed name, for raw values such as Ethereum account addresses. Add the nested NameDetails component when the Name component is clicked, which includes a modal containing a text field and dropdown of all available proposed names. Add the FormComboField component to provide a free entry text field with a dropdown of suggested options including both primary and secondary text.
- Loading branch information
1 parent
b3180fe
commit c0e121e
Showing
31 changed files
with
2,399 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,95 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Name renders address with proposed name 1`] = ` | ||
<div> | ||
<div> | ||
<div | ||
class="name name__missing" | ||
> | ||
<span | ||
class="mm-box name__icon mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-inherit" | ||
style="mask-image: url('./images/icons/warning.svg');" | ||
/> | ||
<span | ||
class="name__value" | ||
> | ||
0xc0f...4978 | ||
</span> | ||
<span | ||
class="name__proposed" | ||
> | ||
“ | ||
TestProposedName | ||
” | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Name renders address with proposed name according to source priority 1`] = ` | ||
<div> | ||
<div> | ||
<div | ||
class="name name__missing" | ||
> | ||
<span | ||
class="mm-box name__icon mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-inherit" | ||
style="mask-image: url('./images/icons/warning.svg');" | ||
/> | ||
<span | ||
class="name__value" | ||
> | ||
0xc0f...4978 | ||
</span> | ||
<span | ||
class="name__proposed" | ||
> | ||
“ | ||
TestProposedName | ||
” | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Name renders address with saved name 1`] = ` | ||
<div> | ||
<div> | ||
<div | ||
class="name name__saved" | ||
> | ||
<span | ||
class="mm-box name__icon mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-inherit" | ||
style="mask-image: url('./images/icons/save.svg');" | ||
/> | ||
<span | ||
class="name__name" | ||
> | ||
TestName | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Name renders address without proposed name 1`] = ` | ||
<div> | ||
<div> | ||
<div | ||
class="name name__missing" | ||
> | ||
<span | ||
class="mm-box name__icon mm-icon mm-icon--size-lg mm-box--display-inline-block mm-box--color-inherit" | ||
style="mask-image: url('./images/icons/warning.svg');" | ||
/> | ||
<span | ||
class="name__value" | ||
> | ||
0xc0f...4979 | ||
</span> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.name { | ||
border-radius: 36px; | ||
padding: 6px 9px 6px 9px; | ||
display: inline-flex; | ||
align-items: center; | ||
gap: 5px; | ||
font-size: 12px; | ||
|
||
&__missing { | ||
background-color: var(--color-warning-muted); | ||
} | ||
|
||
&__saved { | ||
background-color: var(--color-info-muted); | ||
} | ||
|
||
&__missing &__icon { | ||
color: var(--color-warning-default); | ||
} | ||
|
||
&__saved &__icon { | ||
color: var(--color-info-default); | ||
} | ||
|
||
&__value, | ||
&__proposed { | ||
color: var(--color-warning-default); | ||
} | ||
|
||
&__name { | ||
color: var(--color-info-default); | ||
} | ||
|
||
&__proposed { | ||
font-style: italic; | ||
} | ||
} |
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 @@ | ||
export { default } from './name'; |
Oops, something went wrong.