Sha256: c8980111acfd98c921d89da370f7d13648999cde02ec6602f4aafe32495f3aec

Contents?: true

Size: 970 Bytes

Versions: 170

Compression:

Stored size: 970 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,
  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

170 entries across 170 versions & 1 rubygems

Version Path
playbook_ui-10.23.0.pre.cachetest app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.21.0.pre.alpha.lightbox.2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.21.0.pre.alpha.lightbox app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.21.0.pre.alpha.rg1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.21.0.pre.alpha.jg1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.21.0.pre.alpha.na1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.21.0.pre.alpha.jd1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.20.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.19.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.19.0.pre.lightbox app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.18.2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.19.0.pre.popover.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.18.1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.18.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.17.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.16.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.15.1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.15.1.pre.alpha.rubocop.deps app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.15.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-10.14.1.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx