Sha256: 37791b4064eebbb04edba29431c82870e8ff020208619ba03699f28e8a48f166

Contents?: true

Size: 746 Bytes

Versions: 44

Compression:

Stored size: 746 Bytes

Contents

/* @flow */
import React from 'react'
import classnames from 'classnames'
import { buildCss } from '../utilities/props'
import { spacing } from '../utilities/spacing.js'

type TableRowPropTypes = {
  children: Array<React.ReactNode> | React.ReactNode,
  className: String,
  sideHighlightColor: String,
}

const TableRow = (props: TableRowPropTypes) => {
  const { children, className, sideHighlightColor = 'windows' } = props
  const sideHighlightClass =
    sideHighlightColor != '' ? `side_highlight_${sideHighlightColor}` : null
  const tableRowCss = buildCss('pb_table_row_kit', sideHighlightClass)

  return (
    <tr className={classnames(tableRowCss, className, spacing(props))}>
      {children}
    </tr>
  )
}

export default TableRow

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
playbook_ui-6.0.1.pre.alpha5 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-6.0.1.pre.alpha4 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-6.0.1.pre.alpha3 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-6.0.1.pre.alpha2 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.2.0.pre.alpha15 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-6.0.1 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-6.0.0 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.2.0.pre.alpha11 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.5.1.pre.alpha4 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.5.1.pre.alpha3 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.5.1 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.5.0 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_table/_table_row.jsx
playbook_ui-5.2.0.pre.alpha9 app/pb_kits/playbook/pb_table/_table_row.jsx