How to use the @pluralsight/ps-design-system-icon.sizes.medium function in @pluralsight/ps-design-system-icon

To help you get started, we’ve selected a few @pluralsight/ps-design-system-icon examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pluralsight / design-system / packages / button / src / react / index.js View on Github external
const mapIconSize = props => {
  const btnToIconSizes = {
    [vars.sizes.xSmall]: iconSizes.small,
    [vars.sizes.small]: iconSizes.medium,
    [vars.sizes.medium]: iconSizes.medium,
    [vars.sizes.large]: iconSizes.medium
  }
  return btnToIconSizes[props.size]
    ? btnToIconSizes[props.size]
    : iconSizes.medium
}
github pluralsight / design-system / packages / actionmenu / src / react / item-icon.js View on Github external
const ItemIcon = props => {
  return (
    <div>
      {React.cloneElement(props.children, { size: iconSizes.medium })}
    </div>
  )
}
ItemIcon.propTypes = {
github pluralsight / design-system / packages / button / src / react / index.js View on Github external
const mapIconSize = props => {
  const btnToIconSizes = {
    [vars.sizes.xSmall]: iconSizes.small,
    [vars.sizes.small]: iconSizes.medium,
    [vars.sizes.medium]: iconSizes.medium,
    [vars.sizes.large]: iconSizes.medium
  }
  return btnToIconSizes[props.size]
    ? btnToIconSizes[props.size]
    : iconSizes.medium
}
github pluralsight / design-system / packages / carousel / src / react / controls.js View on Github external
const isPrev = props.direction === Control.directions.prev
  const visible = isPrev ? activePage &gt; 0 : activePage !== pageCount - 1

  const IconCaret = isPrev ? CaretLeftIcon : CaretRightIcon
  const handleClick = combineFns(isPrev ? prev : next, props.onClick)

  return (
    <li>
      <button aria-label="{isPrev">
        
      </button>
    </li>
  )
}