Sha256: beba4d00b2f3ad2856d640797ff706322edd353220e124b410e1864c9d072921

Contents?: true

Size: 789 Bytes

Versions: 115

Compression:

Stored size: 789 Bytes

Contents

/* @flow */

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

type ProgressStepItemProps = {
  className?: string,
  status?: "complete" | "active" | "inactive" | "hidden",
  children?: React.Node,
  icon?: string,
}

const ProgressStepItem = ({
  className,
  status = 'inactive',
  children,
  icon = 'check',
}: ProgressStepItemProps) => {
  const progressStepItem = buildCss('pb_progress_step_item', status)

  return (
    <li className={classnames(progressStepItem, className)}>
      <div className="box">
        <div className="circle">
          <Icon icon={icon} />
        </div>
        <div className="content">{children}</div>
      </div>
    </li>
  )
}
export default ProgressStepItem

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
playbook_ui-7.16.0.pre.alpha3 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.16.0.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.16.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.14.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.16.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.15.1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.15.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.14.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.13.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.12.1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.12.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.11.1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.11.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.10.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.9.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.8.4 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.8.3 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-7.8.2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx