Sha256: efd419a2259de4e7fba4fc28aac67858577023d8f9b37d03886f4b61d76398d7

Contents?: true

Size: 764 Bytes

Versions: 44

Compression:

Stored size: 764 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'

import { Caption } from '../'

import { buildCss, buildDataProps } from '../utilities/props'

import { spacing } from '../utilities/spacing.js'

type TimestampProps = {
  id?: String,
  data?: object,
  className?: String,
  text?: String,
}

const Timestamp = (props: TimestampProps) => {
  const { id, className, data = {}, text } = props
  const dataProps = buildDataProps(data)
  const pbCss = buildCss('pb_timestamp_kit')

  return (
    <div
        {...dataProps}
        className={classnames(className, pbCss, spacing(props))}
        id={id}
    >
      <Caption
          size="xs"
          tag="span"
          text={text}
      />
    </div>
  )
}

export default Timestamp

Version data entries

44 entries across 44 versions & 1 rubygems

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