Sha256: 08673a1129445275af384aaeccadf90e0ed4b462cc8cff6b894f0d2c6e171277
Contents?: true
Size: 1.37 KB
Versions: 7
Compression:
Stored size: 1.37 KB
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { buildCss } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' import { Body, DateYearStacked, Flex, FlexItem, Icon } from '../' type DateRangeStackedProps = { className?: String | Array<String>, data?: String, dark?: Boolean, endDate: String, id?: String, startDate: String, } const DateRangeStacked = (props: DateRangeStackedProps) => { const { className, dark = false, endDate, startDate } = props const css = classnames(className, buildCss('pb_date_range_stacked'), globalProps(props)) return ( <div className={css}> <Flex vertical="center"> <FlexItem> <DateYearStacked align="right" dark={dark} date={startDate} /> </FlexItem> <FlexItem> <div> <Body color="light" tag="span" > <Icon className="pb_date_range_stacked_arrow" fixedWidth icon="long-arrow-right" /> </Body> </div> </FlexItem> <FlexItem> <DateYearStacked dark={dark} date={endDate} /> </FlexItem> </Flex> </div> ) } export default DateRangeStacked
Version data entries
7 entries across 7 versions & 1 rubygems