How to use the @kiwicom/orbit-design-tokens.defaultTokens.spaceXXSmall 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 / orbit-components / src / Icon / IconList.js View on Github external
margin-bottom: ${defaultTokens.spaceLarge};
  border-radius: ${defaultTokens.borderRadiusLarge};
  border: ${defaultTokens.borderWidthCard} ${defaultTokens.borderStyleCard}
    ${defaultTokens.paletteCloudNormal};
  padding-right: ${defaultTokens.spaceLarge};
`;

const IconImport = styled.div`
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 12px;
  line-height: ${defaultTokens.lineHeightText};
  color: ${defaultTokens.paletteInkDark};
  background-color: ${defaultTokens.paletteCloudLight};
  border: ${defaultTokens.borderWidthCard} ${defaultTokens.borderStyleCard}
    ${defaultTokens.paletteCloudNormal};
  padding: ${defaultTokens.spaceXXSmall} ${defaultTokens.spaceXSmall};
`;

const IconList = () => (
  
    {Object.keys(Icons).map(icon => {
      const Icon = styled(Icons[icon])`
        padding: 0 ${defaultTokens.spaceLarge};
        flex-shrink: 0;
      `;
      const iconName = `${icon}`;
      return (
        
          
          
            {`import ${iconName} from "@kiwicom/orbit-components/lib/icons/${iconName}"`}
github kiwicom / margarita / apps / core / scenes / bookingDetail / menuGroups / Passengers / PassengersList.js View on Github external
return (
    
  );
};

const styles = StyleSheet.create({
  container: {
    marginStart: 48,
    paddingVertical: parseInt(defaultTokens.spaceXXSmall, 10),
  },
});

export default createFragmentContainer(PassengersList, {
  data: graphql`
    fragment PassengersList_data on BookingInterface {
      passengers {
        id
        ...Passenger_data
      }
      bagInfo {
        type
        ...Bag_data
      }
    }
  `,
github kiwicom / margarita / src / Picker / Picker.ios.js View on Github external
);
  }
}

const styles = StyleSheet.create({
  modal: {
    margin: 0,
    justifyContent: 'flex-end',
  },
  container: {
    width: '100%',
    backgroundColor: defaultTokens.backgroundModal,
    borderTopStartRadius: parseInt(defaultTokens.borderRadiusLarge, 10),
    borderTopEndRadius: parseInt(defaultTokens.borderRadiusLarge, 10),
    paddingTop: parseInt(defaultTokens.spaceXXSmall, 10),
    paddingBottom: parseInt(defaultTokens.spaceXXLarge, 10),
  },
  picker: {
    width: '100%',
  },
  confirmContainer: {
    marginHorizontal: parseInt(defaultTokens.spaceXSmall, 10),
  },
});
github kiwicom / margarita / apps / landingPage / components / Link.js View on Github external
+target?: string,
  +onClick?: () => void,
|};
export default function Link({ children, href, target, onClick }: Props) {
  return (
    
  );
}

const Icon = styled.span`
  margin-right: ${defaultTokens.spaceXXSmall};
`;
const Text = styled.a`
  color: white;
  text-decoration: underline;
  font-size: ${defaultTokens.fontSizeButtonNormal};
  line-height: 44px;
  position: relative;
  left: -${defaultTokens.spaceXXSmall};
  &:hover {
    color: ${defaultTokens.paletteProductLight};
  }
`;
github kiwicom / margarita / apps / core / components / ItineraryCard / TripCities.js View on Github external
)}
    
  
);

const styles = StyleSheet.create({
  container: {
    web: {
      flexDirection: 'row',
      alignItems: 'center',
      marginTop: parseInt(defaultTokens.spaceXXSmall, 10),
      height: 14,
    },
  },
  text: {
    fontSize: parseFloat(defaultTokens.fontSizeTextSmall),
    lineHeight: 17,
    padding: 5,
    web: {
      lineHeight: 14,
      padding: 0,
      color: defaultTokens.paletteInkLight,
    },
  },
});

export default createFragmentContainer(TripCities, {
github kiwicom / margarita / packages / components / src / visaInfo / VisaInfo.js View on Github external
);
}

const styles = StyleSheet.create({
  wrapperVisa: {
    flexDirection: 'row',
    alignItems: 'center',
    paddingStart: parseInt(defaultTokens.spaceSmall, 10),
    paddingVertical: parseInt(defaultTokens.spaceXXSmall, 10),
  },
  paddingTextLeft: {
    paddingStart: parseInt(defaultTokens.spaceXXSmall, 10),
  },
  success: {
    backgroundColor: defaultTokens.backgroundBadgeSuccess,
  },
  critical: {
    backgroundColor: defaultTokens.backgroundBadgeCritical,
  },
});
github kiwicom / margarita / packages / universal-components / src / TagsInput / components / TagsContainer.js View on Github external
style={styles.tag}
            onDeletePress={onDeletePress}
          >
            {tag}
          
        ))}
      
    );
  }
}

const styles = StyleSheet.create({
  tag: {
    alignSelf: 'center',
    marginVertical: parseFloat(defaultTokens.spaceXXXSmall),
    marginEnd: parseFloat(defaultTokens.spaceXXSmall),
  },
});
github kiwicom / margarita / packages / components / src / dateInput / DateInput.js View on Github external
}

const styles = StyleSheet.create({
  container: {
    display: 'flex',
    flexDirection: 'column',
    marginTop: parseInt(defaultTokens.spaceSmall, 10),
  },
  dateFormWrapper: {
    display: 'flex',
    justifyContent: 'space-between',
    flexDirection: 'row',
  },
  text: {
    marginStart: parseInt(defaultTokens.spaceSmall, 10),
    marginBottom: parseInt(defaultTokens.spaceXXSmall, 10),
  },
  dayPickerWrapper: {
    flex: 0.2,
  },
  monthPickerWrapper: {
    flex: 0.4,
  },
  yearPickerWrapper: {
    flex: 0.3,
  },
});
github kiwicom / margarita / packages / components / src / visaInfo / VisaInfo.js View on Github external
return (
    
  );
}

const styles = StyleSheet.create({
  wrapperVisa: {
    flexDirection: 'row',
    alignItems: 'center',
    paddingStart: parseInt(defaultTokens.spaceSmall, 10),
    paddingVertical: parseInt(defaultTokens.spaceXXSmall, 10),
  },
  paddingTextLeft: {
    paddingStart: parseInt(defaultTokens.spaceXXSmall, 10),
  },
  success: {
    backgroundColor: defaultTokens.backgroundBadgeSuccess,
  },
  critical: {
    backgroundColor: defaultTokens.backgroundBadgeCritical,
  },
});
github kiwicom / margarita / packages / components / src / modal / Modal.js View on Github external
};

const styles = StyleSheet.create({
  modal: {
    margin: 0,
    justifyContent: 'flex-end',
  },
  modalCentered: {
    justifyContent: 'center',
  },
  content: {
    width: '100%',
    backgroundColor: defaultTokens.backgroundModal,
    borderTopStartRadius: parseInt(defaultTokens.borderRadiusLarge, 10),
    borderTopEndRadius: parseInt(defaultTokens.borderRadiusLarge, 10),
    paddingTop: parseInt(defaultTokens.spaceXXSmall, 10),
    paddingBottom: parseInt(defaultTokens.spaceXXLarge, 10),
  },
  contentCentered: {
    maxWidth: 520,
    borderRadius: parseInt(defaultTokens.borderRadiusLarge, 10),
    paddingTop: 0,
    paddingBottom: 0,
  },
});