How to use the @instructure/ui-utils/lib/react/deprecated function in @instructure/ui-utils

To help you get started, we’ve selected a few @instructure/ui-utils 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-core / src / components / Spinner / index.js View on Github external
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

import React, { Component } from 'react'

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

import UISpinner from '@instructure/ui-elements/lib/components/Spinner'

@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-elements'
))
class Spinner extends Component {
  static propTypes = {
    ...UISpinner.PropTypes
  }

  render () {
    return 
  }
}

export default Spinner
github instructure / instructure-ui / packages / ui-core / src / components / PopoverMenu / index.js View on Github external
import Menu, { MenuItem, MenuItemGroup, MenuItemSeparator, MenuItemFlyout } from '../Menu'

import styles from './styles.css'
import theme from './theme'

/**
---
category: components/navigation
---
**/

@deprecated('3.0.0', {
  focusTriggerOnClose: 'shouldFocusTriggerOnClose'
})
@deprecated('5.0.0', null, 'Use @instructure/ui-menu/src/components/Menu instead')
@themeable(theme, styles)
export default class PopoverMenu extends Component {
  static propTypes = {
    /**
    * the trigger element
    */
    trigger: PropTypes.node.isRequired,

    placement: LayoutPropTypes.placement,

    /**
    * children of type `MenuItem`, `MenuItemGroup`, or `MenuItemSeparator`
    */
    children: Children.oneOf([MenuItem, MenuItemGroup, MenuItemSeparator, MenuItemFlyout]),
    /**
    * should the menu be open for the initial render
github instructure / instructure-ui / packages / ui-forms / src / components / FormField / FormFieldMessages / index.js View on Github external
* The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

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

export default deprecated('5.35.0', null, changedPackageWarning(
  'ui-forms',
  'ui-form-field'
))(FormFieldMessages)
github instructure / instructure-ui / packages / ui-container / src / components / Container / index.js View on Github external
const ElementType = getElementType(Container, this.props)

    return (
      
        {children}
      
    )
  }
}

export default deprecated('5.4.0', null, `${changedPackageWarning(
  'ui-container',
  'ui-layout'
)} It has also been renamed from [Container] to [View].`)(Container)
github instructure / instructure-ui / packages / ui-core / src / components / Position / index.js View on Github external
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

import PropTypes from 'prop-types'

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

import Position from '@instructure/ui-layout/lib/components/Position'

export default deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-layout'
))(Position)

@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-layout'
))
class PositionTarget extends ComponentIdentifier {
  static displayName = 'PositionTarget'
}

@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-layout'
))
github instructure / instructure-ui / packages / ui-forms / src / components / FormField / FormFieldMessage / index.js View on Github external
* The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

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

export default deprecated('5.35.0', null, changedPackageWarning(
  'ui-forms',
  'ui-form-field'
))(FormFieldMessage)
github instructure / instructure-ui / packages / ui-elements / src / components / ContextBox / index.js View on Github external
{withArrow &amp;&amp; <span style="{arrowStyle}">}
          {children}
        </span>
      
    )
  }
}

export default deprecated('5.4.0', null, `${changedPackageWarning(
  'ui-elements',
  'ui-layout'
)} It has also been renamed from [ContextBox] to [ContextView].`)(ContextBox)
github instructure / instructure-ui / packages / ui-core / src / components / Transition / index.js View on Github external
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

 import React, { Component } from 'react'

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

 import UITransition from '@instructure/ui-motion/lib/components/Transition'

 @deprecated('5.0.0', null, changedPackageWarning(
   'ui-core',
   'ui-motion'
 ))
 class Transition extends Component {
   static propTypes = {
     ...UITransition.PropTypes
   }

   render () {
     return 
   }
 }

 export default Transition