Sha256: 973d2a09b53a822dc3cc5eb8e645998154abbef5e19abb50e28fc9f58a687263

Contents?: true

Size: 1.15 KB

Versions: 60

Compression:

Stored size: 1.15 KB

Contents

import React from 'react'
import classnames from 'classnames'

import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
import { globalProps } from '../utilities/globalProps'

import Caption from '../pb_caption/_caption'

type SectionSeparatorProps = {
  aria?: { [key: string]: string; },
  className?: string,
  dark?: boolean,
  data?: { [key: string]: string; },
  id?: string,
  orientation?: "horizontal" | "vertical",
  text?: string,
  variant?: "card" | "background",
}

const SectionSeparator = (props: SectionSeparatorProps) => {
  const {
    aria = {},
    className,
    data = {},
    id,
    orientation = 'horizontal',
    text,
    variant = 'card',
  } = props
  const ariaProps = buildAriaProps(aria)
  const dataProps = buildDataProps(data)
  const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation), globalProps(props), className)

  return (

    <div
        {...ariaProps}
        {...dataProps}
        className={classes}
        id={id}
    >
      {
        text && (
          <span>
          <Caption text={text} />
        </span>
        )
      }
    </div>
  )
}

export default SectionSeparator

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
playbook_ui-11.20.0.pre.alpha.railsdialog1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.20.0 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.19.0.pre.alpha.map1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.19.0.pre.alpha.pagpassthrough1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.19.0 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.18.0.pre.alpha.pagutility1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.19.0.pre.typeahead1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.18.0 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.17.0 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.15.0.pre.alpha.dependencies1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.16.0.pre.alpha.paginationrails1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.16.0 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.16.0.pre.alpha.reactupgrade1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.15.0.pre.alpha.table1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.16.0.pre.alpha.pagination.rails1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.15.0 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.14.0 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.13.0.pre.alpha.fontawesome1 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
playbook_ui-11.13.0 app/pb_kits/playbook/pb_section_separator/_section_separator.tsx