UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

37 lines (31 loc) 947 B
// @flow /* DOCUMENTATION: https://orbit.kiwi/components/tripsegment/ */ import * as React from "react"; import type { ReactComponentStyled } from "styled-components"; import type { Carrier } from "../../CarrierLogo"; import type { Globals, Translation } from "../../common/common.js.flow"; export type ExpandedType = {| expanded: boolean, |}; export type State = {| contentHeight: number | null, ...ExpandedType, |}; export type Props = {| ...Globals, +children: React.Node, +carrier: Carrier, +departure: Translation, +departureTime: Translation, +arrival: Translation, +arrivalTime: Translation, +duration: Translation, +initialExpanded?: boolean, +tabIndex?: string | number, +onClick?: () => void | Promise<any>, |}; declare export default React.ComponentType<Props>; declare export var StyledTripSegment: ReactComponentStyled<any>; declare export var StyledTripSegmentMilestone: ReactComponentStyled<any>;