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-12.5.0.pre.alpha.datepickerinput1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.5.0.pre.alpha.phonerails1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.5.0.pre.alpha.filter1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.5.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.4.0.pre.alpha.map1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.4.0.pre.alpha.devdocstest1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.4.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.3.1.pre.alpha.phone1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.3.1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.3.0.pre.alpha.patchtest1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.3.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.2.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.1.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-12.0.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.20.0.pre.alpha.passthrough1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.20.0.pre.alpha.railsdialog1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.20.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-11.19.0.pre.alpha.map1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx