@instructure/ui-navigation 8.11.2-snapshot.23 → 8.11.2-snapshot.44

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-navigation",
3
- "version": "8.11.2-snapshot.23+0d8081052",
3
+ "version": "8.11.2-snapshot.44+e7e40bd05",
4
4
  "description": "Main and application level navigational components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,31 +24,31 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.11.2-snapshot.23+0d8081052",
28
- "@instructure/ui-color-utils": "8.11.2-snapshot.23+0d8081052",
29
- "@instructure/ui-test-locator": "8.11.2-snapshot.23+0d8081052",
30
- "@instructure/ui-test-utils": "8.11.2-snapshot.23+0d8081052",
31
- "@instructure/ui-themes": "8.11.2-snapshot.23+0d8081052"
27
+ "@instructure/ui-babel-preset": "8.11.2-snapshot.44+e7e40bd05",
28
+ "@instructure/ui-color-utils": "8.11.2-snapshot.44+e7e40bd05",
29
+ "@instructure/ui-test-locator": "8.11.2-snapshot.44+e7e40bd05",
30
+ "@instructure/ui-test-utils": "8.11.2-snapshot.44+e7e40bd05",
31
+ "@instructure/ui-themes": "8.11.2-snapshot.44+e7e40bd05"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/console": "8.11.2-snapshot.23+0d8081052",
36
- "@instructure/debounce": "8.11.2-snapshot.23+0d8081052",
37
- "@instructure/emotion": "8.11.2-snapshot.23+0d8081052",
38
- "@instructure/shared-types": "8.11.2-snapshot.23+0d8081052",
39
- "@instructure/ui-a11y-content": "8.11.2-snapshot.23+0d8081052",
40
- "@instructure/ui-a11y-utils": "8.11.2-snapshot.23+0d8081052",
41
- "@instructure/ui-badge": "8.11.2-snapshot.23+0d8081052",
42
- "@instructure/ui-dom-utils": "8.11.2-snapshot.23+0d8081052",
43
- "@instructure/ui-focusable": "8.11.2-snapshot.23+0d8081052",
44
- "@instructure/ui-icons": "8.11.2-snapshot.23+0d8081052",
45
- "@instructure/ui-menu": "8.11.2-snapshot.23+0d8081052",
46
- "@instructure/ui-prop-types": "8.11.2-snapshot.23+0d8081052",
47
- "@instructure/ui-react-utils": "8.11.2-snapshot.23+0d8081052",
48
- "@instructure/ui-testable": "8.11.2-snapshot.23+0d8081052",
49
- "@instructure/ui-tooltip": "8.11.2-snapshot.23+0d8081052",
50
- "@instructure/ui-utils": "8.11.2-snapshot.23+0d8081052",
51
- "@instructure/ui-view": "8.11.2-snapshot.23+0d8081052",
35
+ "@instructure/console": "8.11.2-snapshot.44+e7e40bd05",
36
+ "@instructure/debounce": "8.11.2-snapshot.44+e7e40bd05",
37
+ "@instructure/emotion": "8.11.2-snapshot.44+e7e40bd05",
38
+ "@instructure/shared-types": "8.11.2-snapshot.44+e7e40bd05",
39
+ "@instructure/ui-a11y-content": "8.11.2-snapshot.44+e7e40bd05",
40
+ "@instructure/ui-a11y-utils": "8.11.2-snapshot.44+e7e40bd05",
41
+ "@instructure/ui-badge": "8.11.2-snapshot.44+e7e40bd05",
42
+ "@instructure/ui-dom-utils": "8.11.2-snapshot.44+e7e40bd05",
43
+ "@instructure/ui-focusable": "8.11.2-snapshot.44+e7e40bd05",
44
+ "@instructure/ui-icons": "8.11.2-snapshot.44+e7e40bd05",
45
+ "@instructure/ui-menu": "8.11.2-snapshot.44+e7e40bd05",
46
+ "@instructure/ui-prop-types": "8.11.2-snapshot.44+e7e40bd05",
47
+ "@instructure/ui-react-utils": "8.11.2-snapshot.44+e7e40bd05",
48
+ "@instructure/ui-testable": "8.11.2-snapshot.44+e7e40bd05",
49
+ "@instructure/ui-tooltip": "8.11.2-snapshot.44+e7e40bd05",
50
+ "@instructure/ui-utils": "8.11.2-snapshot.44+e7e40bd05",
51
+ "@instructure/ui-view": "8.11.2-snapshot.44+e7e40bd05",
52
52
  "prop-types": "^15"
53
53
  },
54
54
  "peerDependencies": {
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "sideEffects": false,
61
- "gitHead": "0d8081052d9986085a7d0c62ee9ac41a1dcf8608"
61
+ "gitHead": "e7e40bd053ec965afb10ef5a85379aec0452ce37"
62
62
  }
@@ -64,7 +64,7 @@ class Item extends Component<AppNavItemProps> {
64
64
  isSelected: false,
65
65
  cursor: 'pointer',
66
66
  isDisabled: false
67
- }
67
+ } as const
68
68
 
69
69
  ref: Element | null = null
70
70
 
@@ -30,6 +30,7 @@ import type {
30
30
  OtherHTMLAttributes
31
31
  } from '@instructure/shared-types'
32
32
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
33
+ import type { Cursor } from '@instructure/ui-prop-types'
33
34
 
34
35
  type AppNavItemOwnProps = {
35
36
  renderLabel: React.ReactNode | ((...args: any[]) => any)
@@ -40,7 +41,7 @@ type AppNavItemOwnProps = {
40
41
  isSelected?: boolean
41
42
  elementRef?: (element: Element | null) => void
42
43
  as?: AsElementType
43
- cursor?: string
44
+ cursor?: Cursor
44
45
  isDisabled?: boolean
45
46
  }
46
47
 
@@ -20,7 +20,7 @@ declare class Item extends Component<AppNavItemProps> {
20
20
  isSelected?: boolean | undefined;
21
21
  elementRef?: ((element: Element | null) => void) | undefined;
22
22
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
23
- cursor?: string | undefined;
23
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
24
24
  isDisabled?: boolean | undefined;
25
25
  })[];
26
26
  static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
@@ -32,15 +32,15 @@ declare class Item extends Component<AppNavItemProps> {
32
32
  isSelected?: boolean | undefined;
33
33
  elementRef?: ((element: Element | null) => void) | undefined;
34
34
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
35
- cursor?: string | undefined;
35
+ cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
36
36
  isDisabled?: boolean | undefined;
37
37
  }>;
38
38
  static defaultProps: {
39
- children: null;
40
- onClick: (event: any) => void;
41
- isSelected: boolean;
42
- cursor: string;
43
- isDisabled: boolean;
39
+ readonly children: null;
40
+ readonly onClick: (event: any) => void;
41
+ readonly isSelected: false;
42
+ readonly cursor: "pointer";
43
+ readonly isDisabled: false;
44
44
  };
45
45
  ref: Element | null;
46
46
  componentDidMount(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;;;;;GAMG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAGD,WAAW,mBASV;IAED,MAAM;CAsDP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;;;;;GAMG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;MAOT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAGD,WAAW,mBASV;IAED,MAAM;CAsDP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { AsElementType, PropValidators, AppNavItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
3
3
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
+ import type { Cursor } from '@instructure/ui-prop-types';
4
5
  declare type AppNavItemOwnProps = {
5
6
  renderLabel: React.ReactNode | ((...args: any[]) => any);
6
7
  renderAfter?: React.ReactNode | ((...args: any[]) => any);
@@ -10,7 +11,7 @@ declare type AppNavItemOwnProps = {
10
11
  isSelected?: boolean;
11
12
  elementRef?: (element: Element | null) => void;
12
13
  as?: AsElementType;
13
- cursor?: string;
14
+ cursor?: Cursor;
14
15
  isDisabled?: boolean;
15
16
  };
16
17
  declare type PropKeys = keyof AppNavItemOwnProps;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/props.ts"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,k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