@instructure/ui-buttons 8.11.2-snapshot.39 → 8.11.2-snapshot.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-buttons",
3
- "version": "8.11.2-snapshot.39+5b3b94d60",
3
+ "version": "8.11.2-snapshot.41+c2204d939",
4
4
  "description": "Accessible button components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,28 +24,28 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.11.2-snapshot.39+5b3b94d60",
28
- "@instructure/ui-test-locator": "8.11.2-snapshot.39+5b3b94d60",
29
- "@instructure/ui-test-queries": "8.11.2-snapshot.39+5b3b94d60",
30
- "@instructure/ui-test-utils": "8.11.2-snapshot.39+5b3b94d60",
31
- "@instructure/ui-themes": "8.11.2-snapshot.39+5b3b94d60"
27
+ "@instructure/ui-babel-preset": "8.11.2-snapshot.41+c2204d939",
28
+ "@instructure/ui-test-locator": "8.11.2-snapshot.41+c2204d939",
29
+ "@instructure/ui-test-queries": "8.11.2-snapshot.41+c2204d939",
30
+ "@instructure/ui-test-utils": "8.11.2-snapshot.41+c2204d939",
31
+ "@instructure/ui-themes": "8.11.2-snapshot.41+c2204d939"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/console": "8.11.2-snapshot.39+5b3b94d60",
36
- "@instructure/emotion": "8.11.2-snapshot.39+5b3b94d60",
37
- "@instructure/shared-types": "8.11.2-snapshot.39+5b3b94d60",
38
- "@instructure/ui-a11y-content": "8.11.2-snapshot.39+5b3b94d60",
39
- "@instructure/ui-a11y-utils": "8.11.2-snapshot.39+5b3b94d60",
40
- "@instructure/ui-color-utils": "8.11.2-snapshot.39+5b3b94d60",
41
- "@instructure/ui-dom-utils": "8.11.2-snapshot.39+5b3b94d60",
42
- "@instructure/ui-icons": "8.11.2-snapshot.39+5b3b94d60",
43
- "@instructure/ui-position": "8.11.2-snapshot.39+5b3b94d60",
44
- "@instructure/ui-react-utils": "8.11.2-snapshot.39+5b3b94d60",
45
- "@instructure/ui-testable": "8.11.2-snapshot.39+5b3b94d60",
46
- "@instructure/ui-tooltip": "8.11.2-snapshot.39+5b3b94d60",
47
- "@instructure/ui-utils": "8.11.2-snapshot.39+5b3b94d60",
48
- "@instructure/ui-view": "8.11.2-snapshot.39+5b3b94d60",
35
+ "@instructure/console": "8.11.2-snapshot.41+c2204d939",
36
+ "@instructure/emotion": "8.11.2-snapshot.41+c2204d939",
37
+ "@instructure/shared-types": "8.11.2-snapshot.41+c2204d939",
38
+ "@instructure/ui-a11y-content": "8.11.2-snapshot.41+c2204d939",
39
+ "@instructure/ui-a11y-utils": "8.11.2-snapshot.41+c2204d939",
40
+ "@instructure/ui-color-utils": "8.11.2-snapshot.41+c2204d939",
41
+ "@instructure/ui-dom-utils": "8.11.2-snapshot.41+c2204d939",
42
+ "@instructure/ui-icons": "8.11.2-snapshot.41+c2204d939",
43
+ "@instructure/ui-position": "8.11.2-snapshot.41+c2204d939",
44
+ "@instructure/ui-react-utils": "8.11.2-snapshot.41+c2204d939",
45
+ "@instructure/ui-testable": "8.11.2-snapshot.41+c2204d939",
46
+ "@instructure/ui-tooltip": "8.11.2-snapshot.41+c2204d939",
47
+ "@instructure/ui-utils": "8.11.2-snapshot.41+c2204d939",
48
+ "@instructure/ui-view": "8.11.2-snapshot.41+c2204d939",
49
49
  "keycode": "^2",
50
50
  "prop-types": "^15"
51
51
  },
@@ -56,5 +56,5 @@
56
56
  "access": "public"
57
57
  },
58
58
  "sideEffects": false,
59
- "gitHead": "5b3b94d60693dc069b6ff4fde8f2ca1a72462ab7"
59
+ "gitHead": "c2204d939d018592429a7055755fbdb036d2ceb0"
60
60
  }
@@ -39,6 +39,7 @@ import type {
39
39
  OtherHTMLAttributes,
40
40
  PropValidators
41
41
  } from '@instructure/shared-types'
42
+ import type { Cursor } from '@instructure/ui-prop-types'
42
43
 
43
44
  type BaseButtonOwnProps = {
44
45
  children?: React.ReactNode
@@ -56,7 +57,7 @@ type BaseButtonOwnProps = {
56
57
  withBorder?: boolean
57
58
  isCondensed?: boolean
58
59
  margin?: Spacing
59
- cursor?: string
60
+ cursor?: Cursor
60
61
  href?: string
61
62
  onClick?: (...args: any[]) => any
62
63
  onKeyDown?: (...args: any[]) => any
@@ -34,6 +34,7 @@ import type {
34
34
  BaseButtonTheme,
35
35
  OtherHTMLAttributes
36
36
  } from '@instructure/shared-types'
37
+ import type { Cursor } from '@instructure/ui-prop-types'
37
38
 
38
39
  type ButtonOwnProps = {
39
40
  children?: React.ReactNode
@@ -48,7 +49,7 @@ type ButtonOwnProps = {
48
49
  textAlign?: 'start' | 'center'
49
50
  withBackground?: boolean
50
51
  margin?: Spacing
51
- cursor?: string
52
+ cursor?: Cursor
52
53
  href?: string
53
54
  renderIcon?: React.ReactNode | ((...args: any[]) => any)
54
55
  }
@@ -36,6 +36,7 @@ import type {
36
36
  OtherHTMLAttributes,
37
37
  PropValidators
38
38
  } from '@instructure/shared-types'
39
+ import type { Cursor } from '@instructure/ui-prop-types'
39
40
 
40
41
  type CloseButtonOwnProps = {
41
42
  screenReaderLabel: string | React.ReactNode
@@ -50,7 +51,7 @@ type CloseButtonOwnProps = {
50
51
  type?: 'button' | 'submit' | 'reset'
51
52
  as?: AsElementType
52
53
  href?: string
53
- cursor?: string
54
+ cursor?: Cursor
54
55
  tabIndex?: number | string
55
56
  }
56
57
 
@@ -34,6 +34,7 @@ import type {
34
34
  OtherHTMLAttributes,
35
35
  PropValidators
36
36
  } from '@instructure/shared-types'
37
+ import type { Cursor } from '@instructure/ui-prop-types'
37
38
 
38
39
  type CondensedButtonOwnProps = {
39
40
  children?: React.ReactNode
@@ -44,7 +45,7 @@ type CondensedButtonOwnProps = {
44
45
  interaction?: 'enabled' | 'disabled' | 'readonly'
45
46
  color?: 'primary' | 'primary-inverse'
46
47
  margin?: Spacing
47
- cursor?: string
48
+ cursor?: Cursor
48
49
  href?: string
49
50
  renderIcon?: React.ReactNode | ((...args: any[]) => any)
50
51
  }
@@ -34,6 +34,7 @@ import type {
34
34
  BaseButtonTheme,
35
35
  OtherHTMLAttributes
36
36
  } from '@instructure/shared-types'
37
+ import type { Cursor } from '@instructure/ui-prop-types'
37
38
 
38
39
  type IconButtonOwnProps = {
39
40
  children?: React.ReactNode | ((...args: any[]) => React.ReactNode)
@@ -50,7 +51,7 @@ type IconButtonOwnProps = {
50
51
  withBackground?: boolean
51
52
  withBorder?: boolean
52
53
  margin?: Spacing
53
- cursor?: string
54
+ cursor?: Cursor
54
55
  href?: string
55
56
  }
56
57
 
@@ -25,7 +25,7 @@ declare class BaseButton extends Component<BaseButtonProps> {
25
25
  withBorder?: boolean | undefined;
26
26
  isCondensed?: boolean | undefined;
27
27
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
28
- cursor?: string | undefined;
28
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
29
29
  href?: string | undefined;
30
30
  onClick?: ((...args: any[]) => any) | undefined;
31
31
  onKeyDown?: ((...args: any[]) => any) | undefined;
@@ -48,7 +48,7 @@ declare class BaseButton extends Component<BaseButtonProps> {
48
48
  withBorder?: boolean | undefined;
49
49
  isCondensed?: boolean | undefined;
50
50
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
51
- cursor?: string | undefined;
51
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
52
52
  href?: string | undefined;
53
53
  onClick?: ((...args: any[]) => any) | undefined;
54
54
  onKeyDown?: ((...args: any[]) => any) | undefined;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { InteractionType } from '@instructure/ui-react-utils';
3
3
  import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  import type { AsElementType, BaseButtonTheme, OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
5
+ import type { Cursor } from '@instructure/ui-prop-types';
5
6
  declare type BaseButtonOwnProps = {
6
7
  children?: React.ReactNode;
7
8
  type?: 'button' | 'submit' | 'reset';
@@ -18,7 +19,7 @@ declare type BaseButtonOwnProps = {
18
19
  withBorder?: boolean;
19
20
  isCondensed?: boolean;
20
21
  margin?: Spacing;
21
- cursor?: string;
22
+ cursor?: Cursor;
22
23
  href?: string;
23
24
  onClick?: (...args: any[]) => any;
24
25
  onKeyDown?: (...args: any[]) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/BaseButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,WAAW,CAAC,EAAE,eAAe,CAAA;IAC7B,KAAK,CAAC,EAAE,SAAS,GAAG,iBAAiB,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;IAC1E,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAAO,CAAC,EAAE,cAAc,GAAG,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-types/types/UtilityTypes").PropValidators<keyof {
11
11
  children?: React.ReactNode;
12
12
  type?: "button" | "submit" | "reset" | undefined;
13
- /**
14
- ---
15
- category: components
16
- ---
17
- **/
18
13
  size?: "small" | "medium" | "large" | undefined;
19
14
  elementRef?: ((element: Element | null) => void) | undefined;
20
15
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
@@ -25,18 +20,13 @@ declare class Button extends Component<ButtonProps> {
25
20
  textAlign?: "start" | "center" | undefined;
26
21
  withBackground?: boolean | undefined;
27
22
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
28
- cursor?: string | undefined;
23
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
29
24
  href?: string | undefined;
30
25
  renderIcon?: React.ReactNode | ((...args: any[]) => any);
31
26
  }>;
32
27
  static allowedProps: readonly (keyof {
33
28
  children?: React.ReactNode;
34
29
  type?: "button" | "submit" | "reset" | undefined;
35
- /**
36
- ---
37
- category: components
38
- ---
39
- **/
40
30
  size?: "small" | "medium" | "large" | undefined;
41
31
  elementRef?: ((element: Element | null) => void) | undefined;
42
32
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
@@ -47,7 +37,7 @@ declare class Button extends Component<ButtonProps> {
47
37
  textAlign?: "start" | "center" | undefined;
48
38
  withBackground?: boolean | undefined;
49
39
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
50
- cursor?: string | undefined;
40
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
51
41
  href?: string | undefined;
52
42
  renderIcon?: React.ReactNode | ((...args: any[]) => any);
53
43
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,C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,7 @@
1
1
  import React from 'react';
2
2
  import type { Spacing, WithStyleProps } from '@instructure/emotion';
3
3
  import type { AsElementType, PropValidators, BaseButtonTheme, OtherHTMLAttributes } from '@instructure/shared-types';
4
+ import type { Cursor } from '@instructure/ui-prop-types';
4
5
  declare type ButtonOwnProps = {
5
6
  children?: React.ReactNode;
6
7
  type?: 'button' | 'submit' | 'reset';
@@ -14,7 +15,7 @@ declare type ButtonOwnProps = {
14
15
  textAlign?: 'start' | 'center';
15
16
  withBackground?: boolean;
16
17
  margin?: Spacing;
17
- cursor?: string;
18
+ cursor?: Cursor;
18
19
  href?: string;
19
20
  renderIcon?: React.ReactNode | ((...args: any[]) => any);
20
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Button/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,aAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;IACjD,KAAK,CAAC,EAAE,SAAS,GAAG,iBAAiB,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;IAC1E,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,OAA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type?: "button" | "submit" | "reset" | undefined;
23
23
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
24
24
  href?: string | undefined;
25
- cursor?: string | undefined;
25
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
26
26
  tabIndex?: string | number | undefined;
27
27
  }>;
28
28
  static allowedProps: readonly (keyof {
@@ -38,7 +38,7 @@ declare class CloseButton extends Component<CloseButtonProps> {
38
38
  type?: "button" | "submit" | "reset" | undefined;
39
39
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
40
40
  href?: string | undefined;
41
- cursor?: string | undefined;
41
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
42
42
  tabIndex?: string | number | undefined;
43
43
  })[];
44
44
  static defaultProps: {
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
3
  import type { AsElementType, CloseButtonTheme, OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
4
+ import type { Cursor } from '@instructure/ui-prop-types';
4
5
  declare type CloseButtonOwnProps = {
5
6
  screenReaderLabel: string | React.ReactNode;
6
7
  color?: 'primary' | 'primary-inverse';
@@ -14,7 +15,7 @@ declare type CloseButtonOwnProps = {
14
15
  type?: 'button' | 'submit' | 'reset';
15
16
  as?: AsElementType;
16
17
  href?: string;
17
- cursor?: string;
18
+ cursor?: Cursor;
18
19
  tabIndex?: number | string;
19
20
  };
20
21
  declare type PropKeys = keyof CloseButtonOwnProps;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/CloseButton/props.ts"],"names":[],"mappings":";AA2BA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,mBAAmB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AA;AAEzC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,gBAAgB,GAAG,mBAAmB,GACzC,cAAc,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,GAClD,mBAAmB,CAAC,mBAAmB,CAAC,CAAA;AAE1C,aAAK,gBAAgB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;AAErD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA+DvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -16,7 +16,7 @@ declare class CondensedButton extends Component<CondensedButtonProps> {
16
16
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
17
17
  color?: "primary" | "primary-inverse" | undefined;
18
18
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
19
- cursor?: string | undefined;
19
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
20
20
  href?: string | undefined;
21
21
  renderIcon?: React.ReactNode | ((...args: any[]) => any);
22
22
  }>;
@@ -29,7 +29,7 @@ declare class CondensedButton extends Component<CondensedButtonProps> {
29
29
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
30
30
  color?: "primary" | "primary-inverse" | undefined;
31
31
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
32
- cursor?: string | undefined;
32
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
33
33
  href?: string | undefined;
34
34
  renderIcon?: React.ReactNode | ((...args: any[]) => any);
35
35
  })[];
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { Spacing, WithStyleProps } from '@instructure/emotion';
3
3
  import type { AsElementType, BaseButtonTheme, OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
4
+ import type { Cursor } from '@instructure/ui-prop-types';
4
5
  declare type CondensedButtonOwnProps = {
5
6
  children?: React.ReactNode;
6
7
  type?: 'button' | 'submit' | 'reset';
@@ -10,7 +11,7 @@ declare type CondensedButtonOwnProps = {
10
11
  interaction?: 'enabled' | 'disabled' | 'readonly';
11
12
  color?: 'primary' | 'primary-inverse';
12
13
  margin?: Spacing;
13
- cursor?: string;
14
+ cursor?: Cursor;
14
15
  href?: string;
15
16
  renderIcon?: React.ReactNode | ((...args: any[]) => any);
16
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/CondensedButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;IACjD,KAAK,CAAC,EAAE,SAAS,GAAG,iBAAiB,CAAA;IACrC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAA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iB,CAAA;IACrC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;CACzD,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,uBAAuB,CAAA;AAE7C,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,oBAAoB,GAAG,uBAAuB,GACjD,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,GACrC,mBAAmB,CAAC,uBAAuB,CAAC,CAAA;AAE9C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAgDvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAYnB,CAAA;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -22,7 +22,7 @@ declare class IconButton extends Component<IconButtonProps> {
22
22
  withBackground?: boolean | undefined;
23
23
  withBorder?: boolean | undefined;
24
24
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
25
- cursor?: string | undefined;
25
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
26
26
  href?: string | undefined;
27
27
  }>;
28
28
  static allowedProps: readonly (keyof {
@@ -40,7 +40,7 @@ declare class IconButton extends Component<IconButtonProps> {
40
40
  withBackground?: boolean | undefined;
41
41
  withBorder?: boolean | undefined;
42
42
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
43
- cursor?: string | undefined;
43
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
44
44
  href?: string | undefined;
45
45
  })[];
46
46
  static defaultProps: {
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { Spacing, WithStyleProps } from '@instructure/emotion';
3
3
  import type { AsElementType, PropValidators, BaseButtonTheme, OtherHTMLAttributes } from '@instructure/shared-types';
4
+ import type { Cursor } from '@instructure/ui-prop-types';
4
5
  declare type IconButtonOwnProps = {
5
6
  children?: React.ReactNode | ((...args: any[]) => React.ReactNode);
6
7
  renderIcon?: React.ReactNode | ((...args: any[]) => any);
@@ -16,7 +17,7 @@ declare type IconButtonOwnProps = {
16
17
  withBackground?: boolean;
17
18
  withBorder?: boolean;
18
19
  margin?: Spacing;
19
- cursor?: string;
20
+ cursor?: Cursor;
20
21
  href?: string;
21
22
  };
22
23
  declare type PropKeys = keyof IconButtonOwnProps;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/IconButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,aAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IAClE,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACxD,iBAAiB,EAAE,MAAM,CAAA;IACzB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IA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