Sha256: 6494d77c85a213fae1670e71be8cad77cccc5b5379de7761261abc4321142348

Contents?: true

Size: 876 Bytes

Versions: 44

Compression:

Stored size: 876 Bytes

Contents

/* @flow */

import React from 'react'
import { DateStacked, Flex, FlexItem, TimeStacked } from '../'
import { spacing } from '../utilities/spacing.js'

type DateTimeStackedProps = {
  data?: String,
  id?: String,
  date: Date,
  dark: Boolean,
}

const DateTimeStacked = (props: DateTimeStackedProps) => {
  const { date, dark } = props
  return (
    <Flex
        className={spacing(props)}
        orientation="row"
        vertical="center"
    >
      <FlexItem>
        <DateStacked
            align="right"
            dark={dark}
            date={date}
            reverse
            size="sm"
        />
      </FlexItem>
      <FlexItem>
        <TimeStacked
            className="pb_date_time_stacked_kit"
            dark={dark}
            date={date}
            tag="caption"
        />
      </FlexItem>
    </Flex>
  )
}

export default DateTimeStacked

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
playbook_ui-5.2.0.pre.alpha8 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.2.0.pre.alpha7 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.3.0.pre.alpha1 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.4.0 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.2.0.pre.alpha6 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.2.0.pre.alpha5 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.3.0 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.2.0.pre.alpha4 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.2.0.pre.alpha3 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.2.0.pre.alpha2 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.2.0 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.1.0 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.0.3 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.0.2 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.0.1.pre.beta app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.1.0.pre.alpha4 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.1.0.pre.alpha2 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.1.0.pre.alpha1 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.0.1 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
playbook_ui-5.0.1.pre.alpha1 app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx