Sha256: cbdafde4a91c38283c67bca5ef1b6e6b89bf867b0b5c12c6dfe58b237a4bf4c4

Contents?: true

Size: 801 Bytes

Versions: 186

Compression:

Stored size: 801 Bytes

Contents

/* @flow */

import React from 'react'
import classnames from 'classnames'

import { buildCss } from '../utilities/props'

import Icon from '../pb_icon/_icon'

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

186 entries across 186 versions & 1 rubygems

Version Path
playbook_ui-11.12.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.11.0.pre.alpha.paginate2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.11.0.pre.alpha.dialog2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.11.0.pre.alpha.paginate1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.11.0.pre.alpha.renderer1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.11.0.pre.alpha.dialog1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.11.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.10.0.pre.alpha.pre.bold1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.10.0.pre.alpha.pagination1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.10.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.9.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.9.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.8.1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.8.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.7.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.6.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx