Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit f4bda7d

Browse files
committed
update deps and add nullable type
1 parent 81f97c4 commit f4bda7d

Some content is hidden

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

53 files changed

+142
-106
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
"@types/jest-axe": "^2.2.2",
8383
"@types/lodash": "^4.14.118",
8484
"@types/node": "^10.3.2",
85-
"@types/react": "^16.3.17",
85+
"@types/react": "^16.7.17",
8686
"@types/react-custom-scrollbars": "^4.0.5",
87-
"@types/react-dom": "^16.0.6",
87+
"@types/react-dom": "^16.0.11",
8888
"@types/react-is": "^16.5.0",
8989
"@types/react-router": "^4.0.27",
9090
"awesome-typescript-loader": "^5.2.1",
@@ -151,7 +151,7 @@
151151
"ts-node": "^6.1.0",
152152
"tslint": "^5.11.0",
153153
"tslint-config-airbnb": "^5.11.1",
154-
"typescript": "~3.1.0",
154+
"typescript": "~3.2.2",
155155
"webpack": "^4.25.1",
156156
"webpack-dev-middleware": "^3.4.0",
157157
"webpack-hot-middleware": "^2.18.2"

src/components/Accordion/Accordion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { Accessibility } from '../../lib/accessibility/types'
1717

1818
import {
1919
ComponentEventHandler,
20-
Extendable,
20+
ReactProps,
2121
ShorthandValue,
2222
ShorthandRenderFunction,
2323
} from '../../../types/utils'
@@ -72,7 +72,7 @@ export interface AccordionProps extends UIComponentProps, ChildrenComponentProps
7272
/**
7373
* An accordion allows users to toggle the display of sections of content.
7474
*/
75-
class Accordion extends AutoControlledComponent<Extendable<AccordionProps>, any> {
75+
class Accordion extends AutoControlledComponent<ReactProps<AccordionProps>, any> {
7676
static displayName = 'Accordion'
7777

7878
static className = 'ui-accordion'

src/components/Accordion/AccordionContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
ContentComponentProps,
1111
commonPropTypes,
1212
} from '../../lib'
13-
import { Extendable, ComponentEventHandler } from '../../../types/utils'
13+
import { ReactProps, ComponentEventHandler } from '../../../types/utils'
1414

1515
export interface AccordionContentProps
1616
extends UIComponentProps,
@@ -31,7 +31,7 @@ export interface AccordionContentProps
3131
/**
3232
* A standard AccordionContent.
3333
*/
34-
class AccordionContent extends UIComponent<Extendable<AccordionContentProps>, any> {
34+
class AccordionContent extends UIComponent<ReactProps<AccordionContentProps>, any> {
3535
static displayName = 'AccordionContent'
3636

3737
static create: Function

src/components/Accordion/AccordionTitle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
ChildrenComponentProps,
1212
commonPropTypes,
1313
} from '../../lib'
14-
import { Extendable, ComponentEventHandler } from '../../../types/utils'
14+
import { ReactProps, ComponentEventHandler } from '../../../types/utils'
1515

1616
export interface AccordionTitleProps
1717
extends UIComponentProps,
@@ -35,7 +35,7 @@ export interface AccordionTitleProps
3535
/**
3636
* A standard AccordionTitle.
3737
*/
38-
class AccordionTitle extends UIComponent<Extendable<AccordionTitleProps>, any> {
38+
class AccordionTitle extends UIComponent<ReactProps<AccordionTitleProps>, any> {
3939
static displayName = 'AccordionTitle'
4040

4141
static create: Function

src/components/Animation/Animation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
} from '../../lib'
1111
import { AnimationProp } from '../../themes/types'
1212
import createAnimationStyles from '../../lib/createAnimationStyles'
13+
import { ReactPropsStrict } from '../../../types/utils'
1314

1415
export interface AnimationProps
1516
extends StyledComponentProps,
@@ -78,7 +79,7 @@ export interface AnimationProps
7879
/**
7980
* An animation allows the user to animate their own components.
8081
*/
81-
class Animation extends UIComponent<AnimationProps, any> {
82+
class Animation extends UIComponent<ReactPropsStrict<AnimationProps>, any> {
8283
static create: Function
8384

8485
static className = 'ui-animation'

src/components/Attachment/Attachment.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as PropTypes from 'prop-types'
22
import * as React from 'react'
33
import * as _ from 'lodash'
4-
import { Extendable, ShorthandValue } from '../../../types/utils'
4+
import { ReactProps, ShorthandValue } from '../../../types/utils'
55
import {
66
UIComponent,
77
customPropTypes,
@@ -38,7 +38,7 @@ export interface AttachmentProps extends UIComponentProps, ChildrenComponentProp
3838
/**
3939
* An Attachment displays a file attachment.
4040
*/
41-
class Attachment extends UIComponent<Extendable<AttachmentProps>, any> {
41+
class Attachment extends UIComponent<ReactProps<AttachmentProps>, any> {
4242
static create: Function
4343

4444
static className = 'ui-attachment'

src/components/Avatar/Avatar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as React from 'react'
33
import Image from '../Image/Image'
44
import Label from '../Label/Label'
55
import Status from '../Status/Status'
6-
import { Extendable, ShorthandValue } from '../../../types/utils'
6+
import { ReactProps, ShorthandValue } from '../../../types/utils'
77
import {
88
createShorthandFactory,
99
customPropTypes,
@@ -35,7 +35,7 @@ export interface AvatarProps extends UIComponentProps {
3535
/**
3636
* An avatar is a graphic representation of user.
3737
*/
38-
class Avatar extends UIComponent<Extendable<AvatarProps>, any> {
38+
class Avatar extends UIComponent<ReactProps<AvatarProps>, any> {
3939
static create: Function
4040

4141
static className = 'ui-avatar'

src/components/Button/Button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Icon from '../Icon/Icon'
1717
import Slot from '../Slot/Slot'
1818
import { buttonBehavior } from '../../lib/accessibility'
1919
import { Accessibility } from '../../lib/accessibility/types'
20-
import { ComponentEventHandler, Extendable, ShorthandValue } from '../../../types/utils'
20+
import { ComponentEventHandler, ReactProps, ShorthandValue } from '../../../types/utils'
2121
import ButtonGroup from './ButtonGroup'
2222

2323
export interface ButtonProps
@@ -83,7 +83,7 @@ export interface ButtonState {
8383
* - for disabled buttons, add 'disabled' attribute so that the state is properly recognized by the screen reader
8484
* - if button includes icon only, textual representation needs to be provided by using 'title', 'aria-label', or 'aria-labelledby' attributes
8585
*/
86-
class Button extends UIComponent<Extendable<ButtonProps>, ButtonState> {
86+
class Button extends UIComponent<ReactProps<ButtonProps>, ButtonState> {
8787
static create: Function
8888

8989
public static displayName = 'Button'

src/components/Button/ButtonGroup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as PropTypes from 'prop-types'
22
import * as React from 'react'
33
import * as _ from 'lodash'
44

5-
import { Extendable, ShorthandValue } from '../../../types/utils'
5+
import { ReactProps, ShorthandValue } from '../../../types/utils'
66
import {
77
UIComponent,
88
childrenExist,
@@ -28,7 +28,7 @@ export interface ButtonGroupProps
2828
/**
2929
* A button group presents multiple related actions.
3030
*/
31-
class ButtonGroup extends UIComponent<Extendable<ButtonGroupProps>, any> {
31+
class ButtonGroup extends UIComponent<ReactProps<ButtonGroupProps>, any> {
3232
public static displayName = 'ButtonGroup'
3333

3434
public static className = 'ui-buttons'

src/components/Chat/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as React from 'react'
55
import { childrenExist, customPropTypes, UIComponent, commonPropTypes } from '../../lib'
66
import ChatItem from './ChatItem'
77
import ChatMessage from './ChatMessage'
8-
import { Extendable, ShorthandValue } from '../../../types/utils'
8+
import { ReactProps, ShorthandValue } from '../../../types/utils'
99
import { Accessibility, AccessibilityActionHandlers } from '../../lib/accessibility/types'
1010
import { chatBehavior } from '../../lib/accessibility'
1111
import { UIComponentProps, ChildrenComponentProps } from '../../lib/commonPropInterfaces'
@@ -24,7 +24,7 @@ export interface ChatProps extends UIComponentProps, ChildrenComponentProps {
2424
/**
2525
* A Chat displays messages between users.
2626
*/
27-
class Chat extends UIComponent<Extendable<ChatProps>, any> {
27+
class Chat extends UIComponent<ReactProps<ChatProps>, any> {
2828
static className = 'ui-chat'
2929

3030
static displayName = 'Chat'

0 commit comments

Comments
 (0)