How to use the @instructure/ui-themeable.ThemeablePropTypes.shadow function in @instructure/ui-themeable

To help you get started, we’ve selected a few @instructure/ui-themeable 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 instructure / instructure-ui / packages / ui-view / src / View / index.js View on Github external
'warning',
      'default',
      'light',
      'inverse'
    ]), ['default', 'inverse', 'light'], ({ propName, propValue }) => (
      `In version 8.0.0, the value '${propValue}' for \`${propName}\` will be changed to ${(() => {
         if (propValue === 'default') return `'primary'`
         if (propValue === 'light') return `'secondary'`
         if (propValue === 'inverse') return `'primary-inverse'`
      })()}. Use that value instead.`
    )),

    /**
    * Controls the shadow depth for the `
github instructure / instructure-ui / packages / ui-layout / src / View / index.js View on Github external
'default',
      'inverse',
      'light',
      'transparent',
      'brand',
      'alert',
      'info',
      'success',
      'danger',
      'warning'
    ]),

    /**
    * Controls the shadow depth for the `
github instructure / instructure-ui / packages / ui-popover / src / Popover / index.js View on Github external
/**
    * Whether or not an arrow pointing to the trigger should be rendered
    */
    withArrow: PropTypes.bool,
    /**
    * Color variant of the popover content
    */
    color: PropTypes.oneOf(['primary', 'primary-inverse']),
    /**
     * The placement of the content in relation to the trigger
     */
    placement: PositionPropTypes.placement,
    /**
    * Controls the shadow depth for the ``
    */
    shadow: ThemeablePropTypes.shadow,
    /**
    * Controls the z-index depth for the `` content
    */
    stacking: ThemeablePropTypes.stacking,
    /**
     * A function that returns a reference to the content element
     */
    contentRef: PropTypes.func,
    /**
     * An element or a function returning an element to focus by default
     */
    defaultFocusElement: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
    /**
     * An accessible label for the `` content
     */
    screenReaderLabel: PropTypes.string,
github instructure / instructure-ui / packages / ui-layout / src / ContextView / index.js View on Github external
minWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),

    /**
    * The children to render inside the ``
    */
    children: PropTypes.node,

    /**
    * Designates the text alignment within the ``
    */
    textAlign: PropTypes.oneOf(['start', 'center', 'end']),

    /**
    * Controls the shadow depth for the ``
    */
    shadow: ThemeablePropTypes.shadow,

    /**
    * Controls the z-index depth for the ``
    */
    stacking: ThemeablePropTypes.stacking,

    /**
    * Designates the background style of the ``
    */
    background: PropTypes.oneOf(['default', 'inverse']),

    /**
    * Specifies how the arrow for `` will be rendered.
    * Ex. `placement="top"` will render with an arrow pointing down.
    */
    placement: LayoutPropTypes.placement,
github instructure / instructure-ui / packages / ui-layout / src / ContextView / index.js View on Github external
minWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),

    /**
    * The children to render inside the ``
    */
    children: PropTypes.node,

    /**
    * Designates the text alignment within the ``
    */
    textAlign: PropTypes.oneOf(['start', 'center', 'end']),

    /**
    * Controls the shadow depth for the ``
    */
    shadow: ThemeablePropTypes.shadow,

    /**
    * Controls the z-index depth for the ``
    */
    stacking: ThemeablePropTypes.stacking,

    /**
    * Designates the background style of the ``
    */
    background: PropTypes.oneOf(['default', 'inverse']),

    /**
    * Specifies how the arrow for `` will be rendered.
    * Ex. `placement="top"` will render with an arrow pointing down.
    */
    placement: LayoutPropTypes.placement,
github instructure / instructure-ui / packages / ui-overlays / src / Popover / index.js View on Github external
placement: LayoutPropTypes.placement,

    /**
     * The action that causes the Content to display (`click`, `hover`, `focus`)
     */
    on: PropTypes.oneOfType([
      PropTypes.oneOf(['click', 'hover', 'focus']),
      PropTypes.arrayOf(PropTypes.oneOf(['click', 'hover', 'focus']))
    ]),

    variant: PropTypes.oneOf(['default', 'inverse']),

    /**
    * Controls the shadow depth for the ``
    */
    shadow: ThemeablePropTypes.shadow,

    /**
    * Controls the z-index depth for the `` content
    */
    stacking: ThemeablePropTypes.stacking,

    /**
     * Whether or not the content should be rendered on initial render.
     */
    defaultShow: PropTypes.bool,

    /**
    * Whether or not the `` is shown (should be accompanied by `onToggle`)
    */
    show: controllable(PropTypes.bool, 'onToggle', 'defaultShow'),