How to use the @kiwicom/orbit-design-tokens.defaultTokens.spaceMedium function in @kiwicom/orbit-design-tokens

To help you get started, we’ve selected a few @kiwicom/orbit-design-tokens examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kiwicom / margarita / packages / universal-components / src / ModalButtons / ModalButtons.js View on Github external
}

ModalButtons.defaultProps = {
  labelConfirm: 'OK',
  labelCancel: 'Cancel',
};

const styles = StyleSheet.create({
  row: {
    flexDirection: 'row',
  },
  buttonWrapper: {
    flex: 1,
    ios: {
      // @TODO bottom margin needs to be currently set for iOS because of the persisting bug related to `SafeAreaView` and `Modal` on iPhone X https://github.com/facebook/react-native/issues/18177
      marginBottom: parseFloat(defaultTokens.spaceMedium),
    },
  },
  confirmButton: {
    marginStart: parseFloat(defaultTokens.spaceXSmall),
  },
});
github kiwicom / margarita / apps / core / scenes / results / ResultsList.js View on Github external
edges {
        node {
          id
          ...ItineraryCard_data
        }
      }
    }
  `,
});

const styles = StyleSheet.create({
  container: {
    backgroundColor: defaultTokens.backgroundBody,
    paddingTop: parseInt(defaultTokens.spaceXSmall, 10),
    web: {
      paddingTop: parseInt(defaultTokens.spaceMedium, 10),
      paddingHorizontal: parseInt(defaultTokens.spaceSmall, 10),
    },
  },
});
github kiwicom / margarita / apps / core / components / ItineraryCard / StopoverDurationWrapper.web.js View on Github external
|};

export default function StopoverDurationWrapper({ children }: Props) {
  return (
github kiwicom / margarita / apps / core / components / ItineraryCard / ItineraryCard.js View on Github external
);

const styles = StyleSheet.create({
  container: {
    padding: 0,
    ios: {
      marginBottom: 8,
    },
    android: {
      marginVertical: 4,
    },
    web: {
      alignSelf: 'center',
      width: '100%',
      maxWidth: designTokens.widthScreenNormal,
      marginBottom: parseInt(defaultTokens.spaceMedium, 10),
      borderRadius: parseInt(defaultTokens.borderRadiusNormal, 10),
      boxShadow: '0 2px 4px 0 rgba(23,27,30,.1)',
      transitionDuration: '0.3s',
      transitionProperty: 'box-shadow',
      transitionTimingFunction: 'ease-out',
    },
  },
  containerElevated: {
    web: {
      boxShadow: '0 4px 12px 0 rgba(23,27,30,.3)',
    },
  },
});
github kiwicom / margarita / packages / components / src / select / SelectOption.js View on Github external
);
  }
}

const styles = StyleSheet.create({
  line: {
    flexDirection: 'row',
    height: parseInt(defaultTokens.heightButtonNormal, 10),
  },
  icon: {
    paddingHorizontal: parseInt(defaultTokens.spaceSmall, 10),
    justifyContent: 'center',
  },
  radio: {
    flex: 1,
    paddingEnd: parseInt(defaultTokens.spaceMedium, 10),
    alignItems: 'center',
    justifyContent: 'space-between',
  },
  radioUnderline: {
    borderBottomColor: defaultTokens.paletteInkLighter,
    borderBottomWidth: StyleSheet.hairlineWidth,
  },
  label: {
    fontSize: parseInt(defaultTokens.fontSizeButtonLarge, 10),
    color: defaultTokens.colorTextAttention,
  },
});
export default SelectOption;
github kiwicom / margarita / packages / components / src / passengerCard / PassengerCard.js View on Github external
)}
      
    );
  }
}

const styles = StyleSheet.create({
  container: {
    marginBottom: parseInt(defaultTokens.spaceSmall, 10),
  },
  header: {
    flexDirection: 'row',
    alignItems: 'center',
    paddingTop: parseInt(defaultTokens.spaceSmall, 10),
    paddingBottom: parseInt(defaultTokens.spaceMedium, 10),
  },
  passengerName: {
    flex: 1,
  },
});

export default PassengerCard;
github kiwicom / margarita / packages / components / src / contactDetailsForm / ContactDetailsForm.js View on Github external
);
}

const styles = StyleSheet.create({
  line: {
    marginTop: parseFloat(defaultTokens.spaceMedium),
  },
  row: {
    flexDirection: 'row',
  },
  countryCode: {
    minWidth: 112,
  },
  phoneNumber: {
    flex: 1,
    marginStart: parseFloat(defaultTokens.spaceSmall),
  },
});
github kiwicom / margarita / apps / core / components / sectorDetail / SectorHeader.js View on Github external
);
};

const styles = StyleSheet.create({
  container: {
    flexDirection: 'row',
    justifyContent: 'space-between',
    marginVertical: parseInt(defaultTokens.spaceMedium, 10),
    marginHorizontal: parseInt(defaultTokens.spaceMedium, 10),
  },
  location: {
    fontSize: parseInt(defaultTokens.fontSizeHeadingTitle3, 10),
    color: defaultTokens.colorHeading,
  },
  duration: {
    fontSize: parseInt(defaultTokens.fontSizeHeadingTitle3, 10),
    color: defaultTokens.colorTextSecondary,
    web: {
      fontWeight: designTokens.fontWeightMedium,
    },
  },
});

export default createFragmentContainer(SectorHeader, {
github kiwicom / margarita / apps / landingPage / components / Headline / GetStartedInfo.js View on Github external
@media (min-width: ${BREAKPOINTS.TABLET}px) {
    flex-direction: column;
    width: 60vw;
    height: 230px;
  }
  @media (min-width: ${BREAKPOINTS.BIG_TABLET}px) {
    align-items: flex-start;
    width: 26vw;
    padding: 0 0 0 8vw;
    height: 280px;
  }
`;

const WrapperText = styled.div`
  width: 85vw;
  padding: ${defaultTokens.spaceMedium} 0 ${defaultTokens.spaceMedium} 0;
  @media (min-width: ${BREAKPOINTS.TABLET}px) {
    width: 75vw;
  }
  @media (min-width: ${BREAKPOINTS.BIG_TABLET}px) {
    width: 25vw;
  }
`;
github kiwicom / margarita / apps / core / components / sectorDetail / segment / SegmentStopInfoRow.js View on Github external
props.infoTextWeight === 'bold' && styles.infoTextThick,
          ]}
        >
          {props.infoText}
        
        
      
    
  );
}

const styles = StyleSheet.create({
  container: {
    flexDirection: 'row',
    paddingStart: 13,
    paddingEnd: parseInt(defaultTokens.spaceMedium, 10),
    paddingVertical: parseInt(defaultTokens.spaceXXXSmall, 10),
  },
  infoBlock: {
    flex: 1,
    flexDirection: 'row',
    justifyContent: 'space-between',
    alignItems: 'center',
    paddingStart: 19,
  },
  infoText: {
    fontSize: parseInt(defaultTokens.fontSizeTextNormal, 10),
    color: defaultTokens.colorTextPrimary,
  },
  infoTextThick: {
    web: {
      fontWeight: designTokens.fontWeightMedium,