Sha256: 36031daf1b040fe8aefd97c3fa32c7cdc91ba7ba01321acc4c4d3cd1a83a7335

Contents?: true

Size: 865 Bytes

Versions: 11

Compression:

Stored size: 865 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'
import { buildCss } from '../utilities/props'
import { globalProps } from '../utilities/globalProps.js'

type ProgressStepProps = {
  className?: string,
  data?: string,
  id?: string,
  children?: array<React.ReactChild>,
  orientation?: "horizontal" | "vertical",
  icon?: boolean,
  variant?: string,
}

const ProgressStep = (props: ProgressStepProps) => {
  const {
    className,
    children,
    orientation = 'horizontal',
    icon = false,
    variant,
  } = props
  const iconStyle = icon === true ? 'icon' : ''
  const progressStepCss = buildCss(
    'pb_progress_step_kit',
    orientation,
    iconStyle,
    variant,
  )

  return (
    <ul className={classnames(progressStepCss, globalProps(props), className)}>
      {children}
    </ul>
  )
}

export default ProgressStep

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
playbook_ui-7.0.1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.0.pre.alpha15 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.0.pre.alpha14 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.0.pre.alpha13 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.0.pre.alpha12 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.8.1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.8.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx