Sha256: 8ae54b027463a25e400fbf31157412786878e380b8f8d54fd82dde507869a990

Contents?: true

Size: 1.07 KB

Versions: 332

Compression:

Stored size: 1.07 KB

Contents

import React from 'react'
import classnames from 'classnames'
import { buildHtmlProps } from '../../utilities/props'
import { globalProps, GlobalProps } from "../../utilities/globalProps"
import IconCircle from '../../pb_icon_circle/_icon_circle'

type TimelineStepProps = {
  icon?: string,
  iconColor?: 'default' | 'royal' | 'blue' | 'purple' | 'teal' | 'red' | 'yellow' | 'green',
  children?: React.ReactNode,
  className?: string,
  htmlOptions?: { [key: string]: any },
} & GlobalProps

const TimelineStep: React.FC<TimelineStepProps> = ({
  icon = 'user',
  iconColor = 'default',
  children,
  className,
  htmlOptions = {},
  ...props
}) => {
  const htmlProps = buildHtmlProps(htmlOptions)
  return (
    <div
        {...htmlProps}
        className={classnames('pb_timeline_item_step', globalProps(props), className)}
    >
      {children ? (
        children
      ) : (
        <IconCircle icon={icon}
            size="xs"
            variant={iconColor}
        />
      )}
      <div className="pb_timeline_item_connector" />
    </div>
  )
}

export default TimelineStep

Version data entries

332 entries across 332 versions & 1 rubygems

Version Path
playbook_ui-14.16.0 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1949lodashremoval3of36815 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1952fixhorizontalnavcursorstyle6795 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.16.0.pre.rc.6 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1949lodashremoval3of36758 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1949lodashremoval3of36746 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.16.0.pre.rc.5 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.PBNTR477draggabledropzone6743 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.PBNTR8996733 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.16.0.pre.rc.4 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.PLAY1756pbcontenttagpt76722 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1907passglobalpropstotooltiprails6706 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.16.0.pre.rc.3 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.PBNTR617addgriddisplayglobalprop6700 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1910emptystatekitreactbeta6685 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1757pbcontenttag6677 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.PLAY1756pbcontenttagpt76661 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1757pbcontenttag6658 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.play1757pbcontenttag6644 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx
playbook_ui-14.15.0.pre.alpha.PLAY1871speedupvitebuildwatch6643 app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx