Sha256: 6a098862e2a51de2fd13bedc133cf6761134fa18c1cc78d4770320e41b8fb857

Contents?: true

Size: 865 Bytes

Versions: 34

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, className, globalProps(props))}>
      {children}
    </ul>
  )
}

export default ProgressStep

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.7.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.6.1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.6.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.5.2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha10 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha9 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.5.1 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-6.5.0 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha8 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha7 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha6 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha5 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha4 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha3 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx
playbook_ui-7.0.1.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step.jsx