Sha256: e38f4a1439744c403043de9b04c47fdd38025316274537133074133f325ebd87

Contents?: true

Size: 1.39 KB

Versions: 155

Compression:

Stored size: 1.39 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(
    buildCss('pb_date_range_stacked'),
    globalProps(props),
    className
  )

  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

155 entries across 155 versions & 1 rubygems

Version Path
playbook_ui-9.9.0.alpha.inline1 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.9.0 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.8.0 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.7.0.pre.alphawidth1 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.7.0.pre.alpha.a11y.btn app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.7.0 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.6.1 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.6.1.pre.deps1 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.6.0 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.5.0.alpha.rs.downgrade app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.5.0 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.4.0.alpha.sisense app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.4.0.alpha.user.kit.bug app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.4.0 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx