Skip to content

Commit 5b3ba57

Browse files
committed
fix build error 7
1 parent 685e022 commit 5b3ba57

File tree

62 files changed

+52
-187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+52
-187
lines changed

cypress/component/Emotion-withStyle.cy.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
WithStyleProps,
3030
withStyle
3131
} from '@instructure/emotion/src/index'
32-
import PropTypes from 'prop-types'
3332

3433
import '../support/component'
3534
import 'cypress-real-events'
@@ -102,10 +101,6 @@ const generateStyle = function (
102101

103102
@withStyle(generateStyle, generateComponentTheme)
104103
class ThemeableComponent extends Component<Props, State> {
105-
static propTypes = {
106-
inverse: PropTypes.bool
107-
}
108-
109104
static defaultTypes = {
110105
inverse: false
111106
}

packages/__docs__/src/Figure/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class FigureItem extends Component<PropsWithChildren> {
6464

6565
@withStyle(generateStyle, generateComponentTheme)
6666
class Figure extends Component<FigureProps> {
67-
static propTypes = propTypes
6867

6968
static allowedProps = allowedProps
7069

packages/__docs__/src/Params/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import { propTypes } from './props'
3030
import { Heading } from '@instructure/ui-heading'
3131

3232
class Params extends Component<ParamsProps> {
33-
static propTypes = propTypes
3433

3534
static defaultProps = {
3635
layout: 'small'

packages/__docs__/src/Select/index.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,12 @@
2323
*/
2424

2525
import { Component, Children, ReactElement } from 'react'
26-
import PropTypes from 'prop-types'
2726

2827
import { Select as UISelect } from '@instructure/ui-select'
2928

3029
import type { SelectProps, SelectState } from './props'
3130

3231
class Select extends Component<SelectProps, SelectState> {
33-
static propTypes = {
34-
name: PropTypes.string.isRequired,
35-
renderLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
36-
.isRequired,
37-
renderBeforeInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
38-
id: PropTypes.string,
39-
value: PropTypes.string,
40-
onChange: PropTypes.func,
41-
children: PropTypes.node
42-
}
43-
4432
static defaultProps = {
4533
id: undefined,
4634
value: undefined,

packages/emotion/src/__tests__/withStyle.test.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import { vi } from 'vitest'
3030
import type { MockInstance } from 'vitest'
3131
import userEvent from '@testing-library/user-event'
3232
import '@testing-library/jest-dom'
33-
import PropTypes from 'prop-types'
3433

3534
import { withStyle, InstUISettingsProvider, WithStyleProps } from '../index'
3635

@@ -103,10 +102,6 @@ describe('@withStyle', () => {
103102

104103
@withStyle(generateStyle, generateComponentTheme)
105104
class ThemeableComponent extends Component<Props, State> {
106-
static propTypes = {
107-
inverse: PropTypes.bool
108-
}
109-
110105
static defaultTypes = {
111106
inverse: false
112107
}

packages/ui-a11y-content/src/ScreenReaderContent/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ category: components/utilities
4343
class ScreenReaderContent extends Component<ScreenReaderContentProps> {
4444
static readonly componentId = 'ScreenReaderContent'
4545

46-
static propTypes = propTypes
4746

4847
static allowedProps = allowedProps
4948

packages/ui-form-field/src/FormPropTypes.ts

Lines changed: 0 additions & 63 deletions
This file was deleted.

packages/ui-navigation/src/AppNav/Item/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { withStyle } from '@instructure/emotion'
4242
import generateStyle from './styles'
4343
import generateComponentTheme from './theme'
4444
import type { AppNavItemProps } from './props'
45-
import { allowedProps, propTypes } from './props'
45+
import { allowedProps } from './props'
4646

4747
/**
4848
---
@@ -57,7 +57,6 @@ class Item extends Component<AppNavItemProps> {
5757
static readonly componentId = 'AppNav.Item'
5858

5959
static allowedProps = allowedProps
60-
static propTypes = propTypes
6160

6261
static defaultProps = {
6362
children: null,

packages/ui-navigation/src/AppNav/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { Item } from './Item'
3636
import generateStyle from './styles'
3737
import generateComponentTheme from './theme'
3838
import type { AppNavProps } from './props'
39-
import { allowedProps, propTypes } from './props'
39+
import { allowedProps } from './props'
4040
import { AppNavItemProps } from './Item/props'
4141

4242
import { TruncateList } from '@instructure/ui-truncate-list'
@@ -52,7 +52,6 @@ class AppNav extends Component<AppNavProps> {
5252
static readonly componentId = 'AppNav'
5353

5454
static allowedProps = allowedProps
55-
static propTypes = propTypes
5655

5756
static defaultProps = {
5857
children: null,

packages/ui-number-input/src/NumberInput/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { withStyle } from '@instructure/emotion'
4545
import generateStyle from './styles'
4646
import generateComponentTheme from './theme'
4747

48-
import { allowedProps, propTypes } from './props'
48+
import { allowedProps } from './props'
4949
import type {
5050
NumberInputProps,
5151
NumberInputState,

0 commit comments

Comments
 (0)