Sha256: 43efc346774479337b6d95eec34aabcbd94e42b8022c5e6181a871156d2b520e

Contents?: true

Size: 776 Bytes

Versions: 7

Compression:

Stored size: 776 Bytes

Contents

/* @flow */

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

import { Caption } from '../'

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

import { globalProps } from '../utilities/globalProps.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, globalProps(props))}
        id={id}
    >
      <Caption
          size="xs"
          tag="span"
          text={text}
      />
    </div>
  )
}

export default Timestamp

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
playbook_ui-6.1.0.pre.alpha5 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx
playbook_ui-6.1.0.pre.alpha3 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx
playbook_ui-6.1.0.pre.alpha2 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx
playbook_ui-6.1.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx
playbook_ui-6.1.0 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx
playbook_ui-6.0.1.pre.alpha6 app/pb_kits/playbook/pb_timestamp/_timestamp.jsx