How to use the @pluralsight/ps-design-system-theme/react.js.names function in @pluralsight/ps-design-system-theme

To help you get started, we’ve selected a few @pluralsight/ps-design-system-theme 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 / site / src / ui / example / react.js View on Github external
}
        `}
      
    )
  }
}

ReactExample.propTypes = {
  codes: PropTypes.arrayOf(PropTypes.string),
  decorateCodes: PropTypes.func,
  includes: PropTypes.object,
  /* eslint-disable react/no-unused-prop-types */
  outputChildStyle: PropTypes.object,
  outputStyle: PropTypes.object,
  /* eslint-enable react/no-unused-prop-types */
  themeName: PropTypes.oneOf(Object.keys(Theme.names)),
  themeToggle: PropTypes.bool
}

ReactExample.defaultProps = {
  orient: 'horizontal',
  themeName: Theme.defaultName,
  themeToggle: false
}

export default ReactExample
github pluralsight / design-system / packages / dialog / src / react / index.js View on Github external
// TODO: combine fns
  function handleKeyUp(evt) {
    if (!isEscape(evt)) return
    props.onClose(evt)
  }

  const content = (
    
      
        <div>
          {!props.disableCloseButton &amp;&amp; isFunction(props.onClose) &amp;&amp; (
            
          )}

          {props.children}
        </div>
      
    
  )

  return props.modal ? (
github pluralsight / design-system / packages / site / src / ui / example / react.js View on Github external
const getOutputClassName = (props, state) =>
  `output ${state.themeName === Theme.names.light ? 'outputLight' : ''} ${
    props.orient === 'vertical' ? 'outputVertical' : 'outputHorizontal'
  }`
github pluralsight / design-system / packages / site / src / ui / example / react.js View on Github external
handleThemeSelect(evt, index) {
    const themeName = Theme.names[Object.keys(Theme.names)[index]]
    this.setState({ themeName })
  }
github pluralsight / design-system / packages / site / pages / components / breadcrumb.js View on Github external
const InAppExample = _ =&gt; (
  <div>
    
      Page title}&gt;
        
          Menu Item
          Menu Item
          Menu Item
          Menu Item
        
        <div>
          
          
            All the things
          
        </div>
      
      <code>
        {`All the things`}</code></div>