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-9.19.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx