Sha256: 74bd3cb1150bc4fd81afca80c5065d507d383c93084b6c28c956a7d0459d56d5

Contents?: true

Size: 967 Bytes

Versions: 133

Compression:

Stored size: 967 Bytes

Contents

/* @flow */

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

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

const ProgressStep = (props: ProgressStepProps) => {
  const {
    className,
    children,
    color,
    orientation = 'horizontal',
    icon = false,
    showIcon = false,
    variant,
  } = props
  const iconStyle = icon === true || showIcon === 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

133 entries across 133 versions & 1 rubygems

Version Path
playbook_ui-12.8.0.pre.alpha.PLAY625phonenumberdark301 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.8.0.pre.alpha.PLAY625phonenumberdark300 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.8.0.pre.alpha.PLAY649mapkitstyles299 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease296 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease295 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.8.0.pre.alpha.rubyandnpmalpharelease294 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.8.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease293 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease292 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease291 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.7.1.pre.alpha.alpharubyrelease281 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.7.1.pre.alpha.menu2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.7.1.pre.alpha.menu1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.7.1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.7.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.6.0.pre.alpha.sectionseparator1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.6.0.pre.alpha.menuyml1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.6.0.pre.alpha.collapsible1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.6.0.pre.alpha.cssphone1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-12.6.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx