Skip to content

Commit

Permalink
merge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Aug 29, 2024
2 parents 5e5ce2e + 275ad27 commit 48a6a6a
Show file tree
Hide file tree
Showing 370 changed files with 1,465 additions and 1,488 deletions.
4 changes: 2 additions & 2 deletions apps/wallet-mobile/.storybook/stories/Button/ExampleButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const useStyles = () => {
container: {
...atoms.px_lg,
...atoms.py_sm,
backgroundColor: color.primary_c500,
backgroundColor: color.primary_500,
borderRadius: 8,
},
text: {color: color.gray_cmin},
text: {color: color.gray_min},
})

return styles
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"@yoroi/setup-wallet": "^1.0.1",
"@yoroi/staking": "^1.5.2",
"@yoroi/swap": "^2.0.1",
"@yoroi/theme": "^1.0.0",
"@yoroi/theme": "^2.0.0",
"@yoroi/transfer": "^1.0.1",
"add": "2.0.6",
"assert": "^2.0.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/wallet-mobile/src/WalletNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ const useStyles = () => {
})

const colors = {
active: color.text_primary_high,
active: color.text_primary_max,
inactive: color.text_gray_medium,
background: color.gray_cmin,
divider: color.gray_c200,
background: color.gray_min,
divider: color.gray_200,
}

return {colors, styles}
Expand Down
6 changes: 3 additions & 3 deletions apps/wallet-mobile/src/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const useStyles = () => {
const styles = StyleSheet.create({
root: {
...atoms.flex_1,
backgroundColor: color.bg_color_high,
backgroundColor: color.bg_color_max,
},
header: {
...atoms.flex_row,
Expand All @@ -85,7 +85,7 @@ const useStyles = () => {
headerLabel: {
...atoms.body_1_lg_medium,
...atoms.font_semibold,
color: color.gray_c800,
color: color.gray_800,
},
content: {
...atoms.flex_1,
Expand All @@ -99,7 +99,7 @@ const useStyles = () => {
},
})
const colors = {
gray: color.gray_c800,
gray: color.gray_800,
}
return {styles, colors} as const
}
14 changes: 7 additions & 7 deletions apps/wallet-mobile/src/components/AmountItem/AmountItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ const useStyles = () => {
height: 56,
},
placeholderElement1: {
backgroundColor: color.gray_c200,
backgroundColor: color.gray_200,
borderRadius: 8,
flexGrow: 3,
},
placeholderElement2: {
backgroundColor: color.gray_c200,
backgroundColor: color.gray_200,
borderRadius: 8,
flexGrow: 1,
},
Expand All @@ -150,20 +150,20 @@ const useStyles = () => {
alignItems: 'flex-end',
},
name: {
color: color.gray_c900,
color: color.gray_900,
fontSize: 16,
lineHeight: 22,
fontWeight: '500',
fontFamily: 'Rubik-Medium',
},
detail: {
color: color.gray_c600,
color: color.gray_600,
fontSize: 12,
lineHeight: 18,
maxWidth: 140,
},
quantity: {
color: color.gray_c900,
color: color.gray_900,
...atoms.body_1_lg_regular,
textAlign: 'right',
flexGrow: 1,
Expand All @@ -176,8 +176,8 @@ const useStyles = () => {
})

const colors = {
text: color.gray_c900,
icon: color.secondary_c600,
text: color.gray_900,
icon: color.secondary_600,
}

return {styles, colors}
Expand Down
14 changes: 7 additions & 7 deletions apps/wallet-mobile/src/components/Analytics/Analytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const useStyles = () => {
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: color.bg_color_high,
backgroundColor: color.bg_color_max,
},
content: {
alignItems: 'center',
Expand All @@ -211,7 +211,7 @@ const useStyles = () => {
alignItems: 'baseline',
},
link: {
color: color.primary_c600,
color: color.primary_600,
textAlign: 'center',
},
title: {
Expand All @@ -222,15 +222,15 @@ const useStyles = () => {
borderWidth: 0,
},
skipText: {
color: color.primary_c900,
color: color.primary_900,
},
tick: {
color: color.primary_c700,
color: color.primary_700,
paddingRight: 8,
fontSize: 16,
},
cross: {
color: color.sys_magenta_c500,
color: color.sys_magenta_500,
paddingRight: 8,
fontSize: 16,
},
Expand All @@ -243,13 +243,13 @@ const useStyles = () => {
width: '100%',
position: 'absolute',
bottom: 0,
backgroundColor: color.bg_color_high,
backgroundColor: color.bg_color_max,
height: BOTTOM_BUTTON_ROW_HEIGHT,
padding: 16,
},
borderTop: {
borderTopWidth: 1,
borderTopColor: color.gray_c500,
borderTopColor: color.gray_500,
},
})

Expand Down
6 changes: 3 additions & 3 deletions apps/wallet-mobile/src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ const useStyles = () => {
const {color, atoms} = useTheme()
const styles = StyleSheet.create({
banner: {
backgroundColor: color.gray_c100,
backgroundColor: color.gray_100,
...atoms.p_lg,
alignItems: 'center',
justifyContent: 'center',
},
textError: {
color: color.sys_magenta_c500,
color: color.sys_magenta_500,
},
bannerError: {
backgroundColor: color.bg_color_high,
backgroundColor: color.bg_color_max,
...atoms.py_sm,
},
label: {
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/components/Boundary/Boundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const useStyles = () => {
},
container: {
...atoms.flex_1,
backgroundColor: color.bg_color_high,
backgroundColor: color.bg_color_max,
...atoms.align_center,
...atoms.p_lg,
},
Expand Down
20 changes: 10 additions & 10 deletions apps/wallet-mobile/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ const useStyles = () => {

const buttonOutline = {
borderWidth: 2,
borderColor: color.gray_cmin,
borderColor: color.gray_min,
backgroundColor: 'transparent',
}
const styles = StyleSheet.create({
block: {
flex: 1,
},
button: {
backgroundColor: color.secondary_c500,
backgroundColor: color.secondary_500,
minHeight: 48,
maxHeight: 54,
borderRadius: 8,
Expand All @@ -129,11 +129,11 @@ const useStyles = () => {
...buttonOutline,
},
mainTheme: {
backgroundColor: color.primary_c500,
backgroundColor: color.primary_500,
},
buttonOutlineOnLight: {
...buttonOutline,
borderColor: color.secondary_c500,
borderColor: color.secondary_500,
},
buttonOutlineShelley: {
...buttonOutline,
Expand All @@ -147,7 +147,7 @@ const useStyles = () => {
textTransform: 'uppercase',
},
textOutlineOnLight: {
color: color.secondary_c500,
color: color.secondary_500,
},
textOutlineShelley: {
color: color.text_primary_medium,
Expand All @@ -159,20 +159,20 @@ const useStyles = () => {
color: color.text_gray_min,
},
shelleyTheme: {
backgroundColor: color.primary_c500,
backgroundColor: color.primary_500,
},
shelleyOutlineOnLight: {
backgroundColor: 'transparent',
borderColor: color.primary_c600,
borderColor: color.primary_600,
borderWidth: 2,
},
textShelleyOutlineOnLight: {
color: color.primary_c600,
color: color.primary_600,
fontWeight: '600',
},
isCopying: {
position: 'absolute',
backgroundColor: color.gray_cmax,
backgroundColor: color.gray_max,
alignItems: 'center',
justifyContent: 'center',
top: -50,
Expand All @@ -181,7 +181,7 @@ const useStyles = () => {
zIndex: 10,
},
copiedText: {
color: color.gray_cmin,
color: color.gray_min,
textAlign: 'center',
...atoms.p_sm,
...atoms.body_2_md_medium,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const GradientWarning = ({title, description, onClose}: Props) => {
>
{onClose != null && (
<TouchableOpacity onPress={onClose} style={styles.closeButton}>
<Icon.Close size={20} color={color.gray_cmax} />
<Icon.Close size={20} color={color.gray_max} />
</TouchableOpacity>
)}

Expand All @@ -52,12 +52,12 @@ const useStyles = () => {
title: {
...atoms.body_1_lg_medium,
...atoms.font_semibold,
color: color.gray_cmax,
color: color.gray_max,
},
description: {
...atoms.body_2_md_regular,
...atoms.font_normal,
color: color.gray_c900,
color: color.gray_900,
},
closeButton: {
...atoms.absolute,
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const useStyles = () => {
text: {
flex: 1,
...atoms.body_1_lg_regular,
color: color.gray_c900,
color: color.gray_900,
},
icon: {
...atoms.py_xs,
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/components/ConfirmTx/ConfirmTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const useStyles = () => {
const {color} = useTheme()
const styles = StyleSheet.create({
root: {
backgroundColor: color.bg_color_high,
backgroundColor: color.bg_color_max,
},
actionContainer: {
justifyContent: 'space-between',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const useStyles = () => {
...atoms.px_lg,
},
errorMessage: {
color: color.sys_magenta_c500,
color: color.sys_magenta_500,
textAlign: 'center',
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const useStyles = () => {
paddingBottom: 8,
},
errorMessage: {
color: color.sys_magenta_c500,
color: color.sys_magenta_500,
textAlign: 'center',
},
loading: {
Expand Down
6 changes: 3 additions & 3 deletions apps/wallet-mobile/src/components/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ const useStyles = () => {
const {color, atoms} = useTheme()

const colors = {
gray: color.gray_c900,
gray: color.gray_900,
}

const styles = StyleSheet.create({
isCopying: {
position: 'absolute',
backgroundColor: color.gray_cmax,
backgroundColor: color.gray_max,
alignItems: 'center',
justifyContent: 'center',
bottom: 20,
Expand All @@ -86,7 +86,7 @@ const useStyles = () => {
zIndex: 10,
},
copiedText: {
color: color.gray_cmin,
color: color.gray_min,
textAlign: 'center',
padding: 8,
flex: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,30 +100,30 @@ const useStyles = () => {
justifyContent: 'center',
alignItems: 'center',
paddingTop: 70,
backgroundColor: color.bg_color_high,
backgroundColor: color.bg_color_max,
},
scroll: {
width: '100%',
},
title: {
...atoms.heading_4_regular,
color: color.el_gray_high,
color: color.el_gray_max,
},
headerView: {
alignItems: 'center',
},
paragraph: {
...atoms.body_2_md_regular,
color: color.el_gray_high,
color: color.el_gray_max,
},
errorSection: {
...atoms.py_lg,
color: color.el_gray_high,
color: color.el_gray_max,
},
errorSectionHeader: {
flexDirection: 'row',
justifyContent: 'space-between',
color: color.el_gray_high,
color: color.el_gray_max,
},
})
return styles
Expand Down
Loading

0 comments on commit 48a6a6a

Please sign in to comment.