Skip to content

Commit b507a63

Browse files
committed
move cursor type to shared-types and fix build error 15
1 parent a6dfa46 commit b507a63

File tree

8 files changed

+45
-11
lines changed

8 files changed

+45
-11
lines changed

packages/shared-types/src/CommonTypes.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,42 @@ export interface InstUIComponent
8484
originalType?: any
8585
}
8686

87+
export type Cursor =
88+
| 'auto'
89+
| 'default'
90+
| 'none'
91+
| 'context-menu'
92+
| 'help'
93+
| 'pointer'
94+
| 'progress'
95+
| 'wait'
96+
| 'cell'
97+
| 'crosshair'
98+
| 'text'
99+
| 'vertical-text'
100+
| 'alias'
101+
| 'copy'
102+
| 'move'
103+
| 'no-drop'
104+
| 'not-allowed'
105+
| 'grab'
106+
| 'grabbing'
107+
| 'all-scroll'
108+
| 'col-resize'
109+
| 'row-resize'
110+
| 'n-resize'
111+
| 'e-resize'
112+
| 's-resize'
113+
| 'w-resize'
114+
| 'ne-resize'
115+
| 'nw-resize'
116+
| 'se-resize'
117+
| 'sw-resize'
118+
| 'ew-resize'
119+
| 'ns-resize'
120+
| 'nesw-resize'
121+
| 'nwse-resize'
122+
| 'zoom-in'
123+
| 'zoom-out'
124+
87125
export type Themes = 'contrast45' | 'contrast70'

packages/ui-buttons/src/BaseButton/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import type {
3434
AsElementType,
3535
BaseButtonTheme,
3636
} from '@instructure/shared-types'
37-
import type { Cursor } from '@instructure/ui-prop-types'
37+
import type { Cursor } from '@instructure/shared-types'
3838
import type { ViewProps } from '@instructure/ui-view'
3939
import { Renderable } from '@instructure/shared-types'
4040

packages/ui-buttons/src/Button/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import type {
3030
BaseButtonTheme,
3131
OtherHTMLAttributes
3232
} from '@instructure/shared-types'
33-
import type { Cursor } from '@instructure/ui-prop-types'
33+
import type { Cursor } from '@instructure/shared-types'
3434
import type { ViewProps } from '@instructure/ui-view'
3535

3636
type ButtonOwnProps = {

packages/ui-buttons/src/CloseButton/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import type {
3434
CloseButtonTheme,
3535
OtherHTMLAttributes
3636
} from '@instructure/shared-types'
37-
import type { Cursor } from '@instructure/ui-prop-types'
37+
import type { Cursor } from '@instructure/shared-types'
3838
import type { ViewProps } from '@instructure/ui-view'
3939

4040
type CloseButtonOwnProps = {

packages/ui-buttons/src/CondensedButton/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import type {
3030
BaseButtonTheme,
3131
OtherHTMLAttributes
3232
} from '@instructure/shared-types'
33-
import type { Cursor } from '@instructure/ui-prop-types'
33+
import type { Cursor } from '@instructure/shared-types'
3434
import type { ViewProps } from '@instructure/ui-view'
3535

3636
type CondensedButtonOwnProps = {

packages/ui-buttons/src/IconButton/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import type {
3333
OtherHTMLAttributes,
3434
Renderable
3535
} from '@instructure/shared-types'
36-
import type { Cursor } from '@instructure/ui-prop-types'
36+
import type { Cursor } from '@instructure/shared-types'
3737
import type { ViewProps } from '@instructure/ui-view'
3838

3939
type IconButtonOwnProps = {

packages/ui-navigation/src/AppNav/Item/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import type {
2828
OtherHTMLAttributes
2929
} from '@instructure/shared-types'
3030
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
31-
import type { Cursor } from '@instructure/ui-prop-types'
31+
import type { Cursor } from '@instructure/shared-types'
3232
import React from 'react'
3333
import { Renderable } from '@instructure/shared-types'
3434

packages/ui-view/src/View/props.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@
2323
*/
2424

2525
import React from 'react'
26-
import { cursor as cursorPropTypes } from '@instructure/ui-prop-types'
27-
import { textDirectionContextConsumer } from '@instructure/ui-i18n'
28-
import type { Cursor } from '@instructure/ui-prop-types'
29-
import { ThemeablePropTypes } from '@instructure/emotion'
26+
import type { Cursor } from '@instructure/shared-types'
3027

3128
import type {
3229
AsElementType,
3330
OtherHTMLAttributes,
34-
3531
ViewTheme
3632
} from '@instructure/shared-types'
3733
import type {

0 commit comments

Comments
 (0)