How to use @instructure/ui-overlays - 10 common examples

To help you get started, we’ve selected a few @instructure/ui-overlays 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-menu / src / Menu / locator.js View on Github external
findPopoverContent: (...args) => {
    const { element, selector, options } = parseQueryArguments(...args)
    return PopoverLocator.findContent(element, selector, {
      ...options,
      customMethods: {
        ...options.customMethods,
        ...customMethods
      }
    })
  }
}
github instructure / instructure-ui / packages / ui-forms / src / DateInput / locator.js View on Github external
findDatePicker: async (element, ...args) => {
    const content = await PopoverLocator.findContent(element)
    return content ? DatePickerLocator.find(content.getDOMNode()) : null
  }
})
github instructure / instructure-ui / packages / ui-core / src / components / Tooltip / index.js View on Github external
* SOFTWARE.
 */

import React, { Component } from 'react'

import deprecated, { changedPackageWarning } from '@instructure/ui-utils/lib/react/deprecated'

import UIMask from '@instructure/ui-overlays/lib/components/Mask'

@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-overlays'
))
class Mask extends Component {
  static propTypes = {
    ...UIMask.PropTypes
  }

  render () {
    return 
  }
}

export default Mask
github instructure / instructure-ui / packages / ui-core / src / components / Mask / index.js View on Github external
* SOFTWARE.
 */

import React, { Component } from 'react'

import deprecated, { changedPackageWarning } from '@instructure/ui-utils/lib/react/deprecated'

import UIMask from '@instructure/ui-overlays/lib/components/Mask'

@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-overlays'
))
class Mask extends Component {
  static propTypes = {
    ...UIMask.PropTypes
  }

  render () {
    return 
  }
}

export default Mask
github instructure / instructure-ui / packages / ui-core / src / components / PopoverMenu / index.js View on Github external
labelledBy={this.labelId}
          hidden={!this.show}
          ref={el => {
            this._menu = el
          }}
          onSelect={this.handleMenuSelect}
          onDismiss={this.handleMenuDismiss}
        >
          {children}
        
      
    )

    return (
      
        
          {safeCloneElement(this.props.trigger, {
            role: 'button',
            tabIndex: 0,
            ref: c => {
              this._trigger = c
            },
            'aria-haspopup': true,
            id: this.labelId
github instructure / instructure-ui / packages / ui-menu / src / components / Menu / MenuPopover / index.js View on Github external
onSelect={this.handleMenuSelect}
          onKeyDown={createChainedFunction(onKeyDown, this.handleMenuKeyDown)}
          onFlyoutDismiss={this.handleFlyoutDismiss}
          ref={el => {
            this._menu = el
            menuRef(el)
          }}
        >
          {children}
        
      
    )

    return (
       {
          this._popover = el
          popoverRef(el)
        }}
      >
        
          {safeCloneElement(this.props.trigger, {
            role: 'button',
            ref: el => { this._trigger = el },
            'aria-haspopup': true,
            id: this._labelId
          })}
github instructure / instructure-ui / packages / ui-menu / src / Menu / index.js View on Github external
render () {
    const {
      trigger,
      disabled
    } = this.props

    return trigger ? (
       {
          this._popover = el
          if (typeof this.props.popoverRef === 'function') {
            this.props.popoverRef(el)
          }
        }}
      >
        
          {safeCloneElement(trigger, {
            ref: (el) => {
              this._trigger = el
github instructure / instructure-ui / packages / ui-menu / src / Menu / locator.js View on Github external
findPopoverTrigger: (...args) => {
    return PopoverLocator.findTrigger(...args)
  },
  findPopoverContent: (...args) => {
github instructure / instructure-ui / packages / ui-elements / src / Pill / locator.js View on Github external
findTooltipContent: async (...args) => {
    const { element, selector, options } = parseQueryArguments(...args)
    const tooltip = await TooltipLocator.find(element, options)
    return tooltip ? tooltip.findContent(selector, options) : null
  }
})
github instructure / instructure-ui / packages / ui-pagination / src / Pagination / PaginationArrowButton / locator.js View on Github external
  findTooltipContent: (...args) => TooltipLocator.findContent(...args),
  click: async (element, ...args) => {