68 lines
1.3 KiB
TypeScript
68 lines
1.3 KiB
TypeScript
import BaseTheme from '../../../ui/components/BaseTheme.native';
|
|
|
|
const BUTTON_HEIGHT = BaseTheme.spacing[7];
|
|
|
|
const button = {
|
|
borderRadius: BaseTheme.shape.borderRadius,
|
|
display: 'flex',
|
|
height: BUTTON_HEIGHT,
|
|
justifyContent: 'center'
|
|
};
|
|
|
|
const buttonLabel = {
|
|
...BaseTheme.typography.bodyShortBold,
|
|
textTransform: 'capitalize'
|
|
};
|
|
|
|
export default {
|
|
button: {
|
|
...button
|
|
},
|
|
|
|
buttonLabel: {
|
|
...buttonLabel
|
|
},
|
|
|
|
buttonLabelDisabled: {
|
|
...buttonLabel,
|
|
color: BaseTheme.palette.text03
|
|
},
|
|
|
|
buttonContent: {
|
|
height: BUTTON_HEIGHT
|
|
},
|
|
|
|
buttonDisabled: {
|
|
...button,
|
|
backgroundColor: BaseTheme.palette.actionDisabled
|
|
},
|
|
|
|
buttonLabelPrimary: {
|
|
...buttonLabel,
|
|
color: BaseTheme.palette.text01
|
|
},
|
|
|
|
buttonLabelSecondary: {
|
|
...buttonLabel,
|
|
color: BaseTheme.palette.text04
|
|
},
|
|
|
|
buttonLabelDestructive: {
|
|
...buttonLabel,
|
|
color: BaseTheme.palette.text01
|
|
},
|
|
|
|
buttonLabelTertiary: {
|
|
...buttonLabel,
|
|
color: BaseTheme.palette.text01,
|
|
margin: BaseTheme.spacing[3],
|
|
textAlign: 'center'
|
|
},
|
|
|
|
buttonLabelTertiaryDisabled: {
|
|
...buttonLabel,
|
|
color: BaseTheme.palette.text03,
|
|
textAlign: 'center'
|
|
}
|
|
};
|