Sha256: 93a541c1aead8b3e12961ee042a49b751a44f3165f0685ae22967359c9933bfd

Contents?: true

Size: 1.31 KB

Versions: 1733

Compression:

Stored size: 1.31 KB

Contents

import React, { useState } from 'react'

import ProgressStep from '../_progress_step.tsx'
import ProgressStepItem from '../_progress_step_item'

import Caption from '../../pb_caption/_caption'
import Button from '../../pb_button/_button'

const ProgressStepTrackerClickEvents = (props) => {
  const [warning, setWarning] = useState(false)
  const showWarning = warning == true
  const WarningIcon = (
    <ProgressStepItem
        icon="exclamation-triangle"
        key={Math.random()}
        status="active"
    >
      <Caption>{'Shipped'}</Caption>
    </ProgressStepItem>
  )
  const CheckedIcon = (
    <ProgressStepItem
        key={Math.random()}
        status="active"
    >
      <Caption>{'Shipped'}</Caption>
    </ProgressStepItem>
  )
  return (
    <div>
      <Button onClick={() => setWarning(!warning)}>{'Toggle State'}</Button>
      <br />
      <br />
      <br />
      <ProgressStep
          icon
          variant="tracker"
          {...props}
      >
        <ProgressStepItem status="complete">
          <Caption>{'Ordered'}</Caption>
        </ProgressStepItem>
        {showWarning ? WarningIcon : CheckedIcon}
        <ProgressStepItem status="inactive">
          <Caption>{'Delivered'}</Caption>
        </ProgressStepItem>
      </ProgressStep>
    </div>
  )
}

export default ProgressStepTrackerClickEvents

Version data entries

1,733 entries across 1,733 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx