Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* 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
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
* 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)
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)
* 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'
))
* 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)
{withArrow && <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)
* 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