Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
279e800e
Unverified
Commit
279e800e
authored
Apr 07, 2025
by
tom goriunov
Committed by
GitHub
Apr 07, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix skeleton behavior (#2664)
* fix skeleton behavior * fixes * increase timeout for test
parent
32358d91
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
88 additions
and
165 deletions
+88
-165
skeleton.tsx
toolkit/chakra/skeleton.tsx
+2
-4
semanticTokens.ts
toolkit/theme/foundations/semanticTokens.ts
+1
-5
alert.recipe.ts
toolkit/theme/recipes/alert.recipe.ts
+45
-48
badge.recipe.ts
toolkit/theme/recipes/badge.recipe.ts
+11
-45
button.recipe.ts
toolkit/theme/recipes/button.recipe.ts
+5
-23
close-button.recipe.ts
toolkit/theme/recipes/close-button.recipe.ts
+0
-3
link.recipe.ts
toolkit/theme/recipes/link.recipe.ts
+1
-9
skeleton.recipe.ts
toolkit/theme/recipes/skeleton.recipe.ts
+10
-9
tag.recipe.ts
toolkit/theme/recipes/tag.recipe.ts
+0
-13
Token.pw.tsx
ui/pages/Token.pw.tsx
+2
-1
ArbitrumL2TxnBatch.pw.tsx_default_with-anytrust-DA-1.png
.../ArbitrumL2TxnBatch.pw.tsx_default_with-anytrust-DA-1.png
+0
-0
AddressIdenticon.tsx
ui/shared/entities/address/AddressIdenticon.tsx
+1
-1
Button.tsx
ui/showcases/Button.tsx
+6
-0
NavLink.tsx
ui/snippets/navigation/horizontal/NavLink.tsx
+1
-1
NavLinkGroup.tsx
ui/snippets/navigation/horizontal/NavLinkGroup.tsx
+1
-1
NavLink.tsx
ui/snippets/navigation/vertical/NavLink.tsx
+1
-1
NavLinkGroup.tsx
ui/snippets/navigation/vertical/NavLinkGroup.tsx
+1
-1
No files found.
toolkit/chakra/skeleton.tsx
View file @
279e800e
...
@@ -53,11 +53,9 @@ export const Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(
...
@@ -53,11 +53,9 @@ export const Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(
const
{
loading
=
false
,
...
rest
}
=
props
;
const
{
loading
=
false
,
...
rest
}
=
props
;
return
(
return
(
<
ChakraSkeleton
<
ChakraSkeleton
loading=
{
loading
}
css=
{
!
loading
?
{
animation
:
'
none
'
}
:
{}
}
{
...
(
loading
?
{
'
data
-
loading
':
true
}
:
{})
}
{
...
rest
}
ref=
{
ref
}
ref=
{
ref
}
{
...
(
loading
?
{
'
data
-
loading
':
true
,
state
:
'
loading
'
}
:
{
variant
:
'
none
'
})
}
{
...
rest
}
/>
/>
);
);
},
},
...
...
toolkit/theme/foundations/semanticTokens.ts
View file @
279e800e
...
@@ -135,12 +135,8 @@ const semanticTokens: ThemingConfig['semanticTokens'] = {
...
@@ -135,12 +135,8 @@ const semanticTokens: ThemingConfig['semanticTokens'] = {
active
:
{
value
:
{
_light
:
'
{colors.link.primary.hover}
'
}
},
active
:
{
value
:
{
_light
:
'
{colors.link.primary.hover}
'
}
},
},
},
bg
:
{
bg
:
{
DEFAULT
:
{
value
:
{
_light
:
'
{colors.white}
'
,
_dark
:
'
{colors.black}
'
}
},
selected
:
{
value
:
{
_light
:
'
{colors.blue.50}
'
,
_dark
:
'
{colors.gray.800}
'
}
},
},
border
:
{
DEFAULT
:
{
value
:
'
{colors.border.divider}
'
},
selected
:
{
value
:
{
_light
:
'
{colors.blue.50}
'
,
_dark
:
'
{colors.gray.800}
'
}
},
selected
:
{
value
:
{
_light
:
'
{colors.blue.50}
'
,
_dark
:
'
{colors.gray.800}
'
}
},
group
:
{
value
:
{
_light
:
'
{colors.white}
'
,
_dark
:
'
{colors.black}
'
}
},
},
},
},
},
menu
:
{
menu
:
{
...
...
toolkit/theme/recipes/alert.recipe.ts
View file @
279e800e
...
@@ -11,9 +11,6 @@ export const recipe = defineSlotRecipe({
...
@@ -11,9 +11,6 @@ export const recipe = defineSlotRecipe({
position
:
'
relative
'
,
position
:
'
relative
'
,
borderRadius
:
'
base
'
,
borderRadius
:
'
base
'
,
color
:
'
alert.fg
'
,
color
:
'
alert.fg
'
,
_loading
:
{
bgColor
:
'
unset
'
,
},
},
},
title
:
{
title
:
{
fontWeight
:
'
600
'
,
fontWeight
:
'
600
'
,
...
@@ -39,51 +36,11 @@ export const recipe = defineSlotRecipe({
...
@@ -39,51 +36,11 @@ export const recipe = defineSlotRecipe({
variants
:
{
variants
:
{
status
:
{
status
:
{
info
:
{
info
:
{},
root
:
{
warning
:
{},
bgColor
:
'
alert.bg.info
'
,
warning_table
:
{},
'
&:not([data-loading], [aria-busy=true])
'
:
{
success
:
{},
bgColor
:
'
alert.bg.info
'
,
error
:
{},
},
color
:
'
alert.fg
'
,
},
},
warning
:
{
root
:
{
bgColor
:
'
alert.bg.warning
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
alert.bg.warning
'
,
},
color
:
'
alert.fg
'
,
},
},
warning_table
:
{
root
:
{
bgColor
:
'
alert.bg.warning_table
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
alert.bg.warning_table
'
,
},
color
:
'
alert.fg
'
,
},
},
success
:
{
root
:
{
bgColor
:
'
alert.bg.success
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
alert.bg.success
'
,
},
color
:
'
alert.fg
'
,
},
},
error
:
{
root
:
{
bgColor
:
'
alert.bg.error
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
alert.bg.error
'
,
},
color
:
'
alert.fg
'
,
},
},
},
},
variant
:
{
variant
:
{
...
@@ -129,6 +86,46 @@ export const recipe = defineSlotRecipe({
...
@@ -129,6 +86,46 @@ export const recipe = defineSlotRecipe({
},
},
},
},
compoundVariants
:
[
{
status
:
'
info
'
,
variant
:
'
subtle
'
,
css
:
{
root
:
{
bg
:
'
alert.bg.info
'
,
},
},
},
{
status
:
'
warning
'
,
variant
:
'
subtle
'
,
css
:
{
root
:
{
bg
:
'
alert.bg.warning
'
},
},
},
{
status
:
'
warning_table
'
,
variant
:
'
subtle
'
,
css
:
{
root
:
{
bg
:
'
alert.bg.warning_table
'
},
},
},
{
status
:
'
success
'
,
variant
:
'
subtle
'
,
css
:
{
root
:
{
bg
:
'
alert.bg.success
'
},
},
},
{
status
:
'
error
'
,
variant
:
'
subtle
'
,
css
:
{
root
:
{
bg
:
'
alert.bg.error
'
},
},
},
],
defaultVariants
:
{
defaultVariants
:
{
status
:
'
info
'
,
status
:
'
info
'
,
size
:
'
md
'
,
size
:
'
md
'
,
...
...
toolkit/theme/recipes/badge.recipe.ts
View file @
279e800e
...
@@ -14,7 +14,6 @@ export const recipe = defineRecipe({
...
@@ -14,7 +14,6 @@ export const recipe = defineRecipe({
userSelect
:
'
none
'
,
userSelect
:
'
none
'
,
_loading
:
{
_loading
:
{
borderRadius
:
'
sm
'
,
borderRadius
:
'
sm
'
,
bgColor
:
'
unset
'
,
},
},
},
},
variants
:
{
variants
:
{
...
@@ -23,80 +22,47 @@ export const recipe = defineRecipe({
...
@@ -23,80 +22,47 @@ export const recipe = defineRecipe({
},
},
colorPalette
:
{
colorPalette
:
{
gray
:
{
gray
:
{
bgColor
:
'
badge.gray.bg
'
,
bg
:
'
badge.gray.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.gray.bg
'
,
},
color
:
'
badge.gray.fg
'
,
color
:
'
badge.gray.fg
'
,
},
},
green
:
{
green
:
{
bgColor
:
'
badge.green.bg
'
,
bg
:
'
badge.green.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.green.bg
'
,
},
color
:
'
badge.green.fg
'
,
color
:
'
badge.green.fg
'
,
},
},
red
:
{
red
:
{
bgColor
:
'
badge.red.bg
'
,
bg
:
'
badge.red.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.red.bg
'
,
},
color
:
'
badge.red.fg
'
,
color
:
'
badge.red.fg
'
,
},
},
purple
:
{
purple
:
{
bgColor
:
'
badge.purple.bg
'
,
bg
:
'
badge.purple.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.purple.bg
'
,
},
color
:
'
badge.purple.fg
'
,
color
:
'
badge.purple.fg
'
,
},
},
orange
:
{
orange
:
{
bgColor
:
'
badge.orange.bg
'
,
bg
:
'
badge.orange.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.orange.bg
'
,
},
color
:
'
badge.orange.fg
'
,
color
:
'
badge.orange.fg
'
,
},
},
blue
:
{
blue
:
{
bgColor
:
'
badge.blue.bg
'
,
bg
:
'
badge.blue.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.blue.bg
'
,
},
color
:
'
badge.blue.fg
'
,
color
:
'
badge.blue.fg
'
,
},
},
yellow
:
{
yellow
:
{
bgColor
:
'
badge.yellow.bg
'
,
bg
:
'
badge.yellow.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.yellow.bg
'
,
},
color
:
'
badge.yellow.fg
'
,
color
:
'
badge.yellow.fg
'
,
},
},
teal
:
{
teal
:
{
bgColor
:
'
badge.teal.bg
'
,
bg
:
'
badge.teal.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.teal.bg
'
,
},
color
:
'
badge.teal.fg
'
,
color
:
'
badge.teal.fg
'
,
},
},
cyan
:
{
cyan
:
{
bgColor
:
'
badge.cyan.bg
'
,
bg
:
'
badge.cyan.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.cyan.bg
'
,
},
color
:
'
badge.cyan.fg
'
,
color
:
'
badge.cyan.fg
'
,
},
},
purple_alt
:
{
purple_alt
:
{
bgColor
:
'
badge.purple_alt.bg
'
,
bg
:
'
badge.purple_alt.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.purple_alt.bg
'
,
},
color
:
'
badge.purple_alt.fg
'
,
color
:
'
badge.purple_alt.fg
'
,
},
},
blue_alt
:
{
blue_alt
:
{
bgColor
:
'
badge.blue_alt.bg
'
,
bg
:
'
badge.blue_alt.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
badge.blue_alt.bg
'
,
},
color
:
'
badge.blue_alt.fg
'
,
color
:
'
badge.blue_alt.fg
'
,
},
},
},
},
...
...
toolkit/theme/recipes/button.recipe.ts
View file @
279e800e
...
@@ -9,21 +9,12 @@ export const recipe = defineRecipe({
...
@@ -9,21 +9,12 @@ export const recipe = defineRecipe({
_disabled
:
{
_disabled
:
{
opacity
:
'
control.disabled
'
,
opacity
:
'
control.disabled
'
,
},
},
_loading
:
{
bgColor
:
'
unset
'
,
},
},
},
variants
:
{
variants
:
{
variant
:
{
variant
:
{
solid
:
{
solid
:
{
bg
:
'
blue.600
'
,
bg
:
'
blue.600
'
,
color
:
'
white
'
,
color
:
'
white
'
,
'
&:not([data-loading-skeleton])
'
:
{
bgColor
:
'
blue.600
'
,
_expanded
:
{
bg
:
'
blue.400
'
,
},
},
_hover
:
{
_hover
:
{
bg
:
'
blue.400
'
,
bg
:
'
blue.400
'
,
},
},
...
@@ -35,16 +26,16 @@ export const recipe = defineRecipe({
...
@@ -35,16 +26,16 @@ export const recipe = defineRecipe({
borderInlineStartColor
:
'
spinner.track
'
,
borderInlineStartColor
:
'
spinner.track
'
,
},
},
},
},
_expanded
:
{
bg
:
'
blue.400
'
,
},
},
},
outline
:
{
outline
:
{
borderWidth
:
'
0
px
'
,
borderWidth
:
'
2
px
'
,
borderStyle
:
'
solid
'
,
borderStyle
:
'
solid
'
,
bg
:
'
transparent
'
,
bg
:
'
transparent
'
,
color
:
'
button.outline.fg
'
,
color
:
'
button.outline.fg
'
,
borderColor
:
'
button.outline.fg
'
,
borderColor
:
'
button.outline.fg
'
,
'
&:not([data-loading-skeleton])
'
:
{
borderWidth
:
'
2px
'
,
},
_hover
:
{
_hover
:
{
bg
:
'
transparent
'
,
bg
:
'
transparent
'
,
color
:
'
blue.400
'
,
color
:
'
blue.400
'
,
...
@@ -60,14 +51,11 @@ export const recipe = defineRecipe({
...
@@ -60,14 +51,11 @@ export const recipe = defineRecipe({
},
},
},
},
dropdown
:
{
dropdown
:
{
borderWidth
:
'
0
px
'
,
borderWidth
:
'
2
px
'
,
borderStyle
:
'
solid
'
,
borderStyle
:
'
solid
'
,
bg
:
'
transparent
'
,
bg
:
'
transparent
'
,
color
:
'
button.dropdown.fg
'
,
color
:
'
button.dropdown.fg
'
,
borderColor
:
'
button.dropdown.border
'
,
borderColor
:
'
button.dropdown.border
'
,
'
&:not([data-loading-skeleton])
'
:
{
borderWidth
:
'
2px
'
,
},
_hover
:
{
_hover
:
{
bg
:
'
transparent
'
,
bg
:
'
transparent
'
,
color
:
'
blue.400
'
,
color
:
'
blue.400
'
,
...
@@ -144,9 +132,6 @@ export const recipe = defineRecipe({
...
@@ -144,9 +132,6 @@ export const recipe = defineRecipe({
hero
:
{
hero
:
{
bg
:
'
button.hero.bg
'
,
bg
:
'
button.hero.bg
'
,
color
:
'
button.hero.fg
'
,
color
:
'
button.hero.fg
'
,
'
&:not([data-loading-skeleton])
'
:
{
bg
:
'
button.hero.bg
'
,
},
_loading
:
{
_loading
:
{
opacity
:
1
,
opacity
:
1
,
'
& .chakra-spinner
'
:
{
'
& .chakra-spinner
'
:
{
...
@@ -209,9 +194,6 @@ export const recipe = defineRecipe({
...
@@ -209,9 +194,6 @@ export const recipe = defineRecipe({
subtle
:
{
subtle
:
{
bg
:
'
button.subtle.bg
'
,
bg
:
'
button.subtle.bg
'
,
color
:
'
button.subtle.fg
'
,
color
:
'
button.subtle.fg
'
,
'
&:not([data-loading-skeleton])
'
:
{
bg
:
'
button.subtle.bg
'
,
},
_hover
:
{
_hover
:
{
bg
:
'
button.subtle.bg
'
,
bg
:
'
button.subtle.bg
'
,
color
:
'
link.primary.hover
'
,
color
:
'
link.primary.hover
'
,
...
...
toolkit/theme/recipes/close-button.recipe.ts
View file @
279e800e
...
@@ -17,9 +17,6 @@ export const recipe = defineRecipe({
...
@@ -17,9 +17,6 @@ export const recipe = defineRecipe({
bg
:
'
transparent
'
,
bg
:
'
transparent
'
,
color
:
'
closeButton.fg
'
,
color
:
'
closeButton.fg
'
,
border
:
'
none
'
,
border
:
'
none
'
,
'
&:not([data-loading-skeleton])
'
:
{
bg
:
'
transparent
'
,
},
_hover
:
{
_hover
:
{
bg
:
'
transparent
'
,
bg
:
'
transparent
'
,
color
:
'
link.primary.hover
'
,
color
:
'
link.primary.hover
'
,
...
...
toolkit/theme/recipes/link.recipe.ts
View file @
279e800e
...
@@ -42,12 +42,6 @@ export const recipe = defineRecipe({
...
@@ -42,12 +42,6 @@ export const recipe = defineRecipe({
color
:
'
link.primary.hover
'
,
color
:
'
link.primary.hover
'
,
textDecoration
:
'
none
'
,
textDecoration
:
'
none
'
,
},
},
_loading
:
{
bgColor
:
'
unset
'
,
},
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
link.underlaid.bg
'
,
},
},
},
menu
:
{
menu
:
{
color
:
'
link.menu
'
,
color
:
'
link.menu
'
,
...
@@ -58,8 +52,7 @@ export const recipe = defineRecipe({
...
@@ -58,8 +52,7 @@ export const recipe = defineRecipe({
},
},
navigation
:
{
navigation
:
{
color
:
'
link.navigation.fg
'
,
color
:
'
link.navigation.fg
'
,
bg
:
'
link.navigation.bg
'
,
bg
:
'
transparent
'
,
border
:
'
link.navigation.border
'
,
_hover
:
{
_hover
:
{
color
:
'
link.navigation.fg.hover
'
,
color
:
'
link.navigation.fg.hover
'
,
textDecoration
:
'
none
'
,
textDecoration
:
'
none
'
,
...
@@ -67,7 +60,6 @@ export const recipe = defineRecipe({
...
@@ -67,7 +60,6 @@ export const recipe = defineRecipe({
_selected
:
{
_selected
:
{
color
:
'
link.navigation.fg.selected
'
,
color
:
'
link.navigation.fg.selected
'
,
bg
:
'
link.navigation.bg.selected
'
,
bg
:
'
link.navigation.bg.selected
'
,
border
:
'
link.navigation.border.selected
'
,
},
},
_active
:
{
_active
:
{
color
:
'
link.navigation.fg.active
'
,
color
:
'
link.navigation.fg.active
'
,
...
...
toolkit/theme/recipes/skeleton.recipe.ts
View file @
279e800e
...
@@ -5,25 +5,26 @@ export const recipe = defineRecipe({
...
@@ -5,25 +5,26 @@ export const recipe = defineRecipe({
variants
:
{
variants
:
{
loading
:
{
loading
:
{
'
true
'
:
{
// special value to override the default behavior of the skeleton in Chakra
// it uses "background: unset" when the loading prop is set to false
// but it causes issues with background color of child element (e.g. button, badge, etc.)
// so, instead of the "loading" prop, we use the "state" prop to control the skeleton (see below)
reset
:
{},
},
state
:
{
loading
:
{
borderRadius
:
'
base
'
,
borderRadius
:
'
base
'
,
boxShadow
:
'
none
'
,
boxShadow
:
'
none
'
,
backgroundClip
:
'
padding-box
'
,
backgroundClip
:
'
padding-box
'
,
cursor
:
'
default
'
,
cursor
:
'
default
'
,
color
:
'
transparent
'
,
color
:
'
transparent
'
,
borderWidth
:
'
0px
'
,
pointerEvents
:
'
none
'
,
pointerEvents
:
'
none
'
,
userSelect
:
'
none
'
,
userSelect
:
'
none
'
,
// we have to override the property set by chakra in order to make the skeleton shrink
// when the text is too long
flexShrink
:
'
initial
'
,
'
&::before, &::after, *
'
:
{
'
&::before, &::after, *
'
:
{
visibility
:
'
hidden
'
,
visibility
:
'
hidden
'
,
},
},
},
},
'
false
'
:
{
background
:
'
var(--layer-bg)
'
,
animation
:
'
fade-in var(--fade-duration, 0.1s) ease-out !important
'
,
},
},
},
variant
:
{
variant
:
{
pulse
:
{
pulse
:
{
...
@@ -50,6 +51,6 @@ export const recipe = defineRecipe({
...
@@ -50,6 +51,6 @@ export const recipe = defineRecipe({
defaultVariants
:
{
defaultVariants
:
{
variant
:
'
shine
'
,
variant
:
'
shine
'
,
loading
:
true
,
loading
:
'
reset
'
,
},
},
});
});
toolkit/theme/recipes/tag.recipe.ts
View file @
279e800e
...
@@ -13,7 +13,6 @@ export const recipe = defineSlotRecipe({
...
@@ -13,7 +13,6 @@ export const recipe = defineSlotRecipe({
focusVisibleRing
:
'
outside
'
,
focusVisibleRing
:
'
outside
'
,
_loading
:
{
_loading
:
{
borderRadius
:
'
sm
'
,
borderRadius
:
'
sm
'
,
bgColor
:
'
unset
'
,
},
},
},
},
label
:
{
label
:
{
...
@@ -100,9 +99,6 @@ export const recipe = defineSlotRecipe({
...
@@ -100,9 +99,6 @@ export const recipe = defineSlotRecipe({
root
:
{
root
:
{
bgColor
:
'
tag.root.subtle.bg
'
,
bgColor
:
'
tag.root.subtle.bg
'
,
color
:
'
tag.root.subtle.fg
'
,
color
:
'
tag.root.subtle.fg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
tag.root.subtle.bg
'
,
},
},
},
},
},
clickable
:
{
clickable
:
{
...
@@ -110,9 +106,6 @@ export const recipe = defineSlotRecipe({
...
@@ -110,9 +106,6 @@ export const recipe = defineSlotRecipe({
cursor
:
'
pointer
'
,
cursor
:
'
pointer
'
,
bgColor
:
'
tag.root.clickable.bg
'
,
bgColor
:
'
tag.root.clickable.bg
'
,
color
:
'
tag.root.clickable.fg
'
,
color
:
'
tag.root.clickable.fg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
tag.root.clickable.bg
'
,
},
_hover
:
{
_hover
:
{
opacity
:
0.76
,
opacity
:
0.76
,
},
},
...
@@ -121,9 +114,6 @@ export const recipe = defineSlotRecipe({
...
@@ -121,9 +114,6 @@ export const recipe = defineSlotRecipe({
filter
:
{
filter
:
{
root
:
{
root
:
{
bgColor
:
'
tag.root.filter.bg
'
,
bgColor
:
'
tag.root.filter.bg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
tag.root.filter.bg
'
,
},
},
},
},
},
select
:
{
select
:
{
...
@@ -131,9 +121,6 @@ export const recipe = defineSlotRecipe({
...
@@ -131,9 +121,6 @@ export const recipe = defineSlotRecipe({
cursor
:
'
pointer
'
,
cursor
:
'
pointer
'
,
bgColor
:
'
tag.root.select.bg
'
,
bgColor
:
'
tag.root.select.bg
'
,
color
:
'
tag.root.select.fg
'
,
color
:
'
tag.root.select.fg
'
,
'
&:not([data-loading], [aria-busy=true])
'
:
{
bgColor
:
'
tag.root.select.bg
'
,
},
_hover
:
{
_hover
:
{
color
:
'
blue.400
'
,
color
:
'
blue.400
'
,
opacity
:
0.76
,
opacity
:
0.76
,
...
...
ui/pages/Token.pw.tsx
View file @
279e800e
...
@@ -48,6 +48,7 @@ test('base view', async({ render, page, createSocket }) => {
...
@@ -48,6 +48,7 @@ test('base view', async({ render, page, createSocket }) => {
});
});
test
(
'
with verified info
'
,
async
({
render
,
page
,
createSocket
,
mockApiResponse
,
mockAssetResponse
})
=>
{
test
(
'
with verified info
'
,
async
({
render
,
page
,
createSocket
,
mockApiResponse
,
mockAssetResponse
})
=>
{
test
.
slow
();
await
mockApiResponse
(
'
token_verified_info
'
,
verifiedAddressesMocks
.
TOKEN_INFO_APPLICATION
.
APPROVED
,
{
pathParams
:
{
chainId
,
hash
}
});
await
mockApiResponse
(
'
token_verified_info
'
,
verifiedAddressesMocks
.
TOKEN_INFO_APPLICATION
.
APPROVED
,
{
pathParams
:
{
chainId
,
hash
}
});
await
mockAssetResponse
(
tokenInfo
.
icon_url
as
string
,
'
./playwright/mocks/image_s.jpg
'
);
await
mockAssetResponse
(
tokenInfo
.
icon_url
as
string
,
'
./playwright/mocks/image_s.jpg
'
);
...
@@ -56,7 +57,7 @@ test('with verified info', async({ render, page, createSocket, mockApiResponse,
...
@@ -56,7 +57,7 @@ test('with verified info', async({ render, page, createSocket, mockApiResponse,
const
socket
=
await
createSocket
();
const
socket
=
await
createSocket
();
const
channel
=
await
socketServer
.
joinChannel
(
socket
,
`tokens:
${
hash
}
`
);
const
channel
=
await
socketServer
.
joinChannel
(
socket
,
`tokens:
${
hash
}
`
);
socketServer
.
sendMessage
(
socket
,
channel
,
'
total_supply
'
,
{
total_supply
:
10
**
20
});
socketServer
.
sendMessage
(
socket
,
channel
,
'
total_supply
'
,
{
total_supply
:
10
**
20
});
await
component
.
getByText
(
'
100 ARIA
'
).
waitFor
({
state
:
'
visible
'
});
await
component
.
getByText
(
'
100 ARIA
'
).
waitFor
({
state
:
'
visible
'
,
timeout
:
10
_000
});
await
page
.
getByLabel
(
'
Show info
'
).
click
();
await
page
.
getByLabel
(
'
Show info
'
).
click
();
...
...
ui/pages/__screenshots__/ArbitrumL2TxnBatch.pw.tsx_default_with-anytrust-DA-1.png
View replaced file @
32358d91
View file @
279e800e
129 KB
|
W:
|
H:
130 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/shared/entities/address/AddressIdenticon.tsx
View file @
279e800e
...
@@ -53,7 +53,7 @@ const Icon = dynamic(
...
@@ -53,7 +53,7 @@ const Icon = dynamic(
return
(
props
:
IconProps
)
=>
{
return
(
props
:
IconProps
)
=>
{
const
svg
=
GradientAvatar
(
props
.
hash
,
props
.
size
,
'
circle
'
);
const
svg
=
GradientAvatar
(
props
.
hash
,
props
.
size
,
'
circle
'
);
return
<
Box
dangerouslySetInnerHTML=
{
{
__html
:
svg
}
}
/>;
return
<
Box
d
isplay=
"flex"
d
angerouslySetInnerHTML=
{
{
__html
:
svg
}
}
/>;
};
};
}
}
...
...
ui/showcases/Button.tsx
View file @
279e800e
...
@@ -40,6 +40,7 @@ const ButtonShowcase = () => {
...
@@ -40,6 +40,7 @@ const ButtonShowcase = () => {
<
Button
variant=
"solid"
data
-
hover
>
Hovered
</
Button
>
<
Button
variant=
"solid"
data
-
hover
>
Hovered
</
Button
>
<
Button
variant=
"solid"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"solid"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"solid"
loading
>
Loading
</
Button
>
<
Button
variant=
"solid"
loading
>
Loading
</
Button
>
<
Button
variant=
"solid"
loadingSkeleton
>
Loading Skeleton
</
Button
>
</
Sample
>
</
Sample
>
<
Sample
label=
"variant: outline"
>
<
Sample
label=
"variant: outline"
>
...
@@ -47,12 +48,14 @@ const ButtonShowcase = () => {
...
@@ -47,12 +48,14 @@ const ButtonShowcase = () => {
<
Button
variant=
"outline"
data
-
hover
>
Hovered
</
Button
>
<
Button
variant=
"outline"
data
-
hover
>
Hovered
</
Button
>
<
Button
variant=
"outline"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"outline"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"outline"
loading
>
Loading
</
Button
>
<
Button
variant=
"outline"
loading
>
Loading
</
Button
>
<
Button
variant=
"outline"
loadingSkeleton
>
Loading Skeleton
</
Button
>
</
Sample
>
</
Sample
>
<
Sample
label=
"variant: link"
>
<
Sample
label=
"variant: link"
>
<
Button
variant=
"link"
>
Default
</
Button
>
<
Button
variant=
"link"
>
Default
</
Button
>
<
Button
variant=
"link"
data
-
hover
>
Hovered
</
Button
>
<
Button
variant=
"link"
data
-
hover
>
Hovered
</
Button
>
<
Button
variant=
"link"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"link"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"link"
loadingSkeleton
>
Disabled
</
Button
>
</
Sample
>
</
Sample
>
<
Sample
label=
"variant: dropdown"
>
<
Sample
label=
"variant: dropdown"
>
...
@@ -99,6 +102,7 @@ const ButtonShowcase = () => {
...
@@ -99,6 +102,7 @@ const ButtonShowcase = () => {
</
PopoverRoot
>
</
PopoverRoot
>
<
Button
variant=
"dropdown"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"dropdown"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"dropdown"
loading
>
Loading
</
Button
>
<
Button
variant=
"dropdown"
loading
>
Loading
</
Button
>
<
Button
variant=
"dropdown"
loadingSkeleton
>
Loading Skeleton
</
Button
>
<
PopoverRoot
>
<
PopoverRoot
>
<
Tooltip
content=
"Tooltip content"
>
<
Tooltip
content=
"Tooltip content"
>
...
@@ -185,12 +189,14 @@ const ButtonShowcase = () => {
...
@@ -185,12 +189,14 @@ const ButtonShowcase = () => {
<
Button
variant=
"subtle"
size=
"xs"
>
Default: Now+1h
</
Button
>
<
Button
variant=
"subtle"
size=
"xs"
>
Default: Now+1h
</
Button
>
<
Button
variant=
"subtle"
size=
"xs"
data
-
hover
>
Hovered: Now+1h
</
Button
>
<
Button
variant=
"subtle"
size=
"xs"
data
-
hover
>
Hovered: Now+1h
</
Button
>
<
Button
variant=
"subtle"
size=
"xs"
disabled
>
Disabled: Now+1h
</
Button
>
<
Button
variant=
"subtle"
size=
"xs"
disabled
>
Disabled: Now+1h
</
Button
>
<
Button
variant=
"subtle"
size=
"xs"
loadingSkeleton
>
Loading Skeleton
</
Button
>
</
Sample
>
</
Sample
>
<
Sample
label=
"variant: plain"
>
<
Sample
label=
"variant: plain"
>
<
Button
variant=
"plain"
>
Default
</
Button
>
<
Button
variant=
"plain"
>
Default
</
Button
>
<
Button
variant=
"plain"
data
-
hover
>
Hovered
</
Button
>
<
Button
variant=
"plain"
data
-
hover
>
Hovered
</
Button
>
<
Button
variant=
"plain"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"plain"
disabled
>
Disabled
</
Button
>
<
Button
variant=
"plain"
loadingSkeleton
>
Loading Skeleton
</
Button
>
</
Sample
>
</
Sample
>
</
SamplesStack
>
</
SamplesStack
>
</
Section
>
</
Section
>
...
...
ui/snippets/navigation/horizontal/NavLink.tsx
View file @
279e800e
...
@@ -48,7 +48,7 @@ const NavLink = ({ className, item, noIcon }: Props) => {
...
@@ -48,7 +48,7 @@ const NavLink = ({ className, item, noIcon }: Props) => {
<
chakra
.
span
>
{
item
.
text
}
</
chakra
.
span
>
<
chakra
.
span
>
{
item
.
text
}
</
chakra
.
span
>
{
isHighlighted
&&
(
{
isHighlighted
&&
(
<
LightningLabel
<
LightningLabel
iconColor=
{
isActive
?
'
link.navigation.bg.selected
'
:
'
link.navigation.bg
'
}
iconColor=
{
isActive
?
'
link.navigation.bg.selected
'
:
'
link.navigation.bg
.group
'
}
position=
{
{
lg
:
'
static
'
}
}
position=
{
{
lg
:
'
static
'
}
}
ml=
{
{
lg
:
'
2px
'
}
}
ml=
{
{
lg
:
'
2px
'
}
}
isCollapsed=
{
false
}
isCollapsed=
{
false
}
...
...
ui/snippets/navigation/horizontal/NavLinkGroup.tsx
View file @
279e800e
...
@@ -75,7 +75,7 @@ const NavLinkGroup = ({ item }: Props) => {
...
@@ -75,7 +75,7 @@ const NavLinkGroup = ({ item }: Props) => {
{
item
.
text
}
{
item
.
text
}
{
isHighlighted
&&
(
{
isHighlighted
&&
(
<
LightningLabel
<
LightningLabel
iconColor=
{
item
.
isActive
?
'
link.navigation.bg.selected
'
:
'
link.navigation.bg
'
}
iconColor=
{
item
.
isActive
?
'
link.navigation.bg.selected
'
:
'
link.navigation.bg
.group
'
}
position=
{
{
lg
:
'
static
'
}
}
position=
{
{
lg
:
'
static
'
}
}
ml=
{
{
lg
:
'
2px
'
}
}
ml=
{
{
lg
:
'
2px
'
}
}
/>
/>
...
...
ui/snippets/navigation/vertical/NavLink.tsx
View file @
279e800e
...
@@ -75,7 +75,7 @@ const NavLink = ({ item, onClick, isCollapsed, isDisabled }: Props) => {
...
@@ -75,7 +75,7 @@ const NavLink = ({ item, onClick, isCollapsed, isDisabled }: Props) => {
</
chakra
.
span
>
</
chakra
.
span
>
{
isHighlighted
&&
(
{
isHighlighted
&&
(
<
LightningLabel
<
LightningLabel
iconColor=
{
isInternalLink
&&
item
.
isActive
?
'
link.navigation.bg.selected
'
:
'
link.navigation.bg
'
}
iconColor=
{
isInternalLink
&&
item
.
isActive
?
'
link.navigation.bg.selected
'
:
'
link.navigation.bg
.group
'
}
isCollapsed=
{
isCollapsed
}
isCollapsed=
{
isCollapsed
}
/>
/>
)
}
)
}
...
...
ui/snippets/navigation/vertical/NavLinkGroup.tsx
View file @
279e800e
...
@@ -81,7 +81,7 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
...
@@ -81,7 +81,7 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
</
Text
>
</
Text
>
{
isHighlighted
&&
(
{
isHighlighted
&&
(
<
LightningLabel
<
LightningLabel
iconColor=
{
item
.
isActive
?
'
link.navigation.bg.selected
'
:
'
link.navigation.bg
'
}
iconColor=
{
item
.
isActive
?
'
link.navigation.bg.selected
'
:
'
link.navigation.bg
.group
'
}
isCollapsed=
{
isCollapsed
}
isCollapsed=
{
isCollapsed
}
/>
/>
)
}
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment