@instructure/ui-navigation 8.11.2-snapshot.7 → 8.12.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-navigation
9
+
6
10
  ## [8.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-navigation
@@ -0,0 +1 @@
1
+ {"type":"module"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-navigation",
3
- "version": "8.11.2-snapshot.7+2681e145a",
3
+ "version": "8.12.0",
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.7+2681e145a",
28
- "@instructure/ui-color-utils": "8.11.2-snapshot.7+2681e145a",
29
- "@instructure/ui-test-locator": "8.11.2-snapshot.7+2681e145a",
30
- "@instructure/ui-test-utils": "8.11.2-snapshot.7+2681e145a",
31
- "@instructure/ui-themes": "8.11.2-snapshot.7+2681e145a"
27
+ "@instructure/ui-babel-preset": "8.12.0",
28
+ "@instructure/ui-color-utils": "8.12.0",
29
+ "@instructure/ui-test-locator": "8.12.0",
30
+ "@instructure/ui-test-utils": "8.12.0",
31
+ "@instructure/ui-themes": "8.12.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/console": "8.11.2-snapshot.7+2681e145a",
36
- "@instructure/debounce": "8.11.2-snapshot.7+2681e145a",
37
- "@instructure/emotion": "8.11.2-snapshot.7+2681e145a",
38
- "@instructure/shared-types": "8.11.2-snapshot.7+2681e145a",
39
- "@instructure/ui-a11y-content": "8.11.2-snapshot.7+2681e145a",
40
- "@instructure/ui-a11y-utils": "8.11.2-snapshot.7+2681e145a",
41
- "@instructure/ui-badge": "8.11.2-snapshot.7+2681e145a",
42
- "@instructure/ui-dom-utils": "8.11.2-snapshot.7+2681e145a",
43
- "@instructure/ui-focusable": "8.11.2-snapshot.7+2681e145a",
44
- "@instructure/ui-icons": "8.11.2-snapshot.7+2681e145a",
45
- "@instructure/ui-menu": "8.11.2-snapshot.7+2681e145a",
46
- "@instructure/ui-prop-types": "8.11.2-snapshot.7+2681e145a",
47
- "@instructure/ui-react-utils": "8.11.2-snapshot.7+2681e145a",
48
- "@instructure/ui-testable": "8.11.2-snapshot.7+2681e145a",
49
- "@instructure/ui-tooltip": "8.11.2-snapshot.7+2681e145a",
50
- "@instructure/ui-utils": "8.11.2-snapshot.7+2681e145a",
51
- "@instructure/ui-view": "8.11.2-snapshot.7+2681e145a",
35
+ "@instructure/console": "8.12.0",
36
+ "@instructure/debounce": "8.12.0",
37
+ "@instructure/emotion": "8.12.0",
38
+ "@instructure/shared-types": "8.12.0",
39
+ "@instructure/ui-a11y-content": "8.12.0",
40
+ "@instructure/ui-a11y-utils": "8.12.0",
41
+ "@instructure/ui-badge": "8.12.0",
42
+ "@instructure/ui-dom-utils": "8.12.0",
43
+ "@instructure/ui-focusable": "8.12.0",
44
+ "@instructure/ui-icons": "8.12.0",
45
+ "@instructure/ui-menu": "8.12.0",
46
+ "@instructure/ui-prop-types": "8.12.0",
47
+ "@instructure/ui-react-utils": "8.12.0",
48
+ "@instructure/ui-testable": "8.12.0",
49
+ "@instructure/ui-tooltip": "8.12.0",
50
+ "@instructure/ui-utils": "8.12.0",
51
+ "@instructure/ui-view": "8.12.0",
52
52
  "prop-types": "^15"
53
53
  },
54
54
  "peerDependencies": {
@@ -57,6 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "sideEffects": false,
61
- "gitHead": "2681e145ad469e1396536d3e9eed75a19995eb8a"
60
+ "sideEffects": false
62
61
  }
@@ -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,kBAAkB,GAAG;IACxB,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,I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,EAAE,cAAc,CAAC,QAAQ,CA2CvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAWnB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.