How to use the @instructure/ui-utils/lib/react/deprecated.changedPackageWarning 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 / Grid / 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 UIGrid from '@instructure/ui-layout/lib/components/Grid'

@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-layout'
))
class Grid extends Component {
  static propTypes = {
    ...UIGrid.PropTypes
  }

  render () {
    return 
  }
}

export default Grid
export { default as GridCol } from './GridCol'
export { default as GridRow } from './GridRow'
github instructure / instructure-ui / packages / ui-core / src / components / Heading / 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 UIHeading from '@instructure/ui-elements/lib/components/Heading'

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

  render () {
    return 
  }
}

export default Heading
github instructure / instructure-ui / packages / ui-core / src / components / Popover / index.js View on Github external
import Popover from '@instructure/ui-overlays/lib/components/Popover'

export default deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-overlays'
))(Popover)

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

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

export { PopoverTrigger, PopoverContent }
github instructure / instructure-ui / packages / ui-core / src / components / Image / 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 deprecated, { changedPackageWarning } from '@instructure/ui-utils/lib/react/deprecated'
import Img from '@instructure/ui-elements/lib/components/Img'

export default deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-elements'
))(Img)
github instructure / instructure-ui / packages / ui-forms / src / components / FormField / FormFieldLayout / 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 FormFieldLayout from '@instructure/ui-form-field/lib/components/FormFieldLayout'
import deprecated, { changedPackageWarning } from '@instructure/ui-utils/lib/react/deprecated'

export default deprecated('5.35.0', null, changedPackageWarning(
  'ui-forms',
  'ui-form-field'
))(FormFieldLayout)
github instructure / instructure-ui / packages / ui-core / src / components / Pagination / 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 UIPagination from '@instructure/ui-pagination/lib/components/Pagination'

@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-pagination'
))
class Pagination extends Component {
  static propTypes = {
    ...UIPagination.PropTypes
  }

  render () {
    return 
  }
}

export default Pagination
export { PaginationButton } from '@instructure/ui-pagination/lib/components/Pagination'
github instructure / instructure-ui / packages / ui-core / src / components / NumberInput / index.js View on Github external
* 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 deprecated, { changedPackageWarning, warnDeprecatedComponent } from '@instructure/ui-utils/lib/react/deprecated'

import NumberInput, { cleanValue as UICleanValue } from '@instructure/ui-forms/lib/components/NumberInput'

const packageWarning = changedPackageWarning(
  'ui-core',
  'ui-forms'
) || ''

export default deprecated('5.0.0', null, packageWarning)(NumberInput)

export function cleanValue (value, locale, allowNegative) {
  warnDeprecatedComponent('5.0.0', 'cleanValue', packageWarning)
  return UICleanValue(value, locale, allowNegative)
}
github instructure / instructure-ui / packages / ui-core / src / components / ApplyLocale / index.js View on Github external
* 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 UIApplyLocale from '@instructure/ui-i18n/lib/components/ApplyLocale'

/**
---
category: components/utilities
---
**/
@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-i18n'
))
export default class ApplyLocale extends Component {
  static propTypes = {
    ...UIApplyLocale.propTypes
  }

  static childContextTypes = {
    ...UIApplyLocale.childContextTypes
  }

  render () {
    return 
  }
}
github instructure / instructure-ui / packages / ui-core / src / components / PresentationContent / 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 UIPresentationContent from '@instructure/ui-a11y/lib/components/PresentationContent'

@deprecated('5.0.0', null, changedPackageWarning(
  'ui-core',
  'ui-a11y'
))

class PresentationContent extends Component {
  static propTypes = {
    ...UIPresentationContent.PropTypes
  }

  render () {
    return 
  }
}

export default PresentationContent
github instructure / instructure-ui / packages / ui-core / src / components / Table / 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 UITable from '@instructure/ui-elements/lib/components/Table'

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

  render () {
    return 
  }
}

export default Table