2022-07-27 08:40:34 +00:00
|
|
|
import BaseTheme from '../../../ui/components/BaseTheme.native';
|
|
|
|
|
|
|
|
const BUTTON_HEIGHT = BaseTheme.spacing[7];
|
|
|
|
|
|
|
|
const button = {
|
|
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
2022-10-06 13:16:33 +00:00
|
|
|
display: 'flex',
|
|
|
|
height: BUTTON_HEIGHT,
|
|
|
|
justifyContent: 'center'
|
2022-07-27 08:40:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const buttonLabel = {
|
|
|
|
...BaseTheme.typography.bodyShortBold,
|
|
|
|
textTransform: 'capitalize'
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
button: {
|
|
|
|
...button
|
|
|
|
},
|
|
|
|
|
|
|
|
buttonLabel: {
|
|
|
|
...buttonLabel
|
|
|
|
},
|
|
|
|
|
|
|
|
buttonLabelDisabled: {
|
|
|
|
...buttonLabel,
|
|
|
|
color: BaseTheme.palette.text03
|
|
|
|
},
|
|
|
|
|
2022-11-21 14:07:27 +00:00
|
|
|
buttonContent: {
|
|
|
|
height: BUTTON_HEIGHT
|
|
|
|
},
|
|
|
|
|
2022-07-27 08:40:34 +00:00
|
|
|
buttonDisabled: {
|
|
|
|
...button,
|
|
|
|
backgroundColor: BaseTheme.palette.actionDisabled
|
|
|
|
},
|
|
|
|
|
|
|
|
buttonLabelPrimary: {
|
|
|
|
...buttonLabel,
|
|
|
|
color: BaseTheme.palette.text01
|
|
|
|
},
|
|
|
|
|
|
|
|
buttonLabelSecondary: {
|
|
|
|
...buttonLabel,
|
2022-08-17 10:43:38 +00:00
|
|
|
color: BaseTheme.palette.text04
|
2022-07-27 08:40:34 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
buttonLabelDestructive: {
|
|
|
|
...buttonLabel,
|
|
|
|
color: BaseTheme.palette.text01
|
|
|
|
},
|
|
|
|
|
|
|
|
buttonLabelTertiary: {
|
|
|
|
...buttonLabel,
|
2022-11-21 14:07:27 +00:00
|
|
|
color: BaseTheme.palette.text01,
|
|
|
|
textAlign: 'center'
|
|
|
|
},
|
|
|
|
|
|
|
|
buttonLabelTertiaryDisabled: {
|
|
|
|
...buttonLabel,
|
|
|
|
color: BaseTheme.palette.text03,
|
|
|
|
textAlign: 'center'
|
2022-07-27 08:40:34 +00:00
|
|
|
}
|
|
|
|
};
|