Sha256: e0bfa0c910ebea6a60a5f8a9cf5cd2ba07267e0c323beed35eb47b5b82a4bc16

Contents?: true

Size: 1.25 KB

Versions: 54

Compression:

Stored size: 1.25 KB

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',
  children?: React.Node,
}

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

  return (
    <div className={classnames(progressStepItem, className)}>
      <div className="pb_progress_step_item_wrapper">
        <div className="pb_progress_step_item_connector_first" />
        <div className="pb_progress_step_item_step_wrapper">
          <div className="pb_progress_step_item_step">
            <div className="pb_progress_step_item_step_connector_first" />
            <div className="pb_progress_step_item_step_circle">
              <Icon
                  icon="check"
              />
            </div>
            <div className="pb_progress_step_item_step_connector_second" />
          </div>
          <div>
            {children}
          </div>
        </div>
        <div className="pb_progress_step_item_connector_second" />
      </div>
    </div>
  )
}
export default ProgressStepItem

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.5.1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.5.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha9 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha8 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha7 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.3.0.pre.alpha1 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.4.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha6 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha5 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.3.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha4 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha3 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0.pre.alpha2 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.2.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.1.0 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx
playbook_ui-5.0.3 app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx