Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

buttonStyles.ts 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import BaseTheme from '../../../ui/components/BaseTheme.native';
  2. const BUTTON_HEIGHT = BaseTheme.spacing[7];
  3. const button = {
  4. borderRadius: BaseTheme.shape.borderRadius,
  5. display: 'flex',
  6. height: BUTTON_HEIGHT,
  7. justifyContent: 'center'
  8. };
  9. const buttonLabel = {
  10. ...BaseTheme.typography.bodyShortBold,
  11. textTransform: 'capitalize'
  12. };
  13. export default {
  14. button: {
  15. ...button
  16. },
  17. buttonLabel: {
  18. ...buttonLabel
  19. },
  20. buttonContent: {
  21. height: BUTTON_HEIGHT
  22. },
  23. buttonLabelDisabled: {
  24. ...buttonLabel,
  25. color: BaseTheme.palette.text03
  26. },
  27. buttonDisabled: {
  28. ...button,
  29. backgroundColor: BaseTheme.palette.actionDisabled
  30. },
  31. buttonLabelPrimary: {
  32. ...buttonLabel,
  33. color: BaseTheme.palette.text01
  34. },
  35. buttonLabelSecondary: {
  36. ...buttonLabel,
  37. color: BaseTheme.palette.text04
  38. },
  39. buttonLabelDestructive: {
  40. ...buttonLabel,
  41. color: BaseTheme.palette.text01
  42. },
  43. buttonLabelTertiary: {
  44. ...buttonLabel,
  45. color: BaseTheme.palette.text01
  46. }
  47. };