Sha256: 3bb4536ddbd1689936b0e7f6951911fc3a1a3163f427022d16c204b804aea86a

Contents?: true

Size: 905 Bytes

Versions: 27

Compression:

Stored size: 905 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,
  color?: string,
}

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

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

export default ProgressStep

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
playbook_ui-7.4.0.pre.alpha6 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.4.0.pre.test4 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.4.0.pre.test3 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.4.0.pre.test2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.4.0.pre.alpha4 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.4.0.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.4.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha12 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha11 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha10 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha9 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha8 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha7 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha6 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha5 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha4 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha3 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.3.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.2.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx