@instructure/ui-navigation 9.1.1-snapshot-4 → 9.1.1-snapshot-7
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 +1 -1
- package/package.json +25 -25
- package/src/AppNav/Item/index.tsx +1 -2
- package/src/AppNav/Item/props.ts +1 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/AppNav/Item/index.d.ts +3 -4
- package/types/AppNav/Item/index.d.ts.map +1 -1
- package/types/AppNav/Item/props.d.ts +1 -2
- package/types/AppNav/Item/props.d.ts.map +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
|
-
import type { ViewOwnProps } from '@instructure/ui-view';
|
|
4
3
|
import { jsx } from '@instructure/emotion';
|
|
5
4
|
import type { AppNavItemProps } from './props';
|
|
6
5
|
/**
|
|
@@ -17,7 +16,7 @@ declare class Item extends Component<AppNavItemProps> {
|
|
|
17
16
|
renderAfter?: import("@instructure/shared-types").Renderable;
|
|
18
17
|
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
19
18
|
href?: string | undefined;
|
|
20
|
-
onClick?: ((event: React.MouseEvent<
|
|
19
|
+
onClick?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
21
20
|
isSelected?: boolean | undefined;
|
|
22
21
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
23
22
|
as?: import("@instructure/shared-types").AsElementType | undefined;
|
|
@@ -29,7 +28,7 @@ declare class Item extends Component<AppNavItemProps> {
|
|
|
29
28
|
renderAfter?: import("@instructure/shared-types").Renderable;
|
|
30
29
|
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
31
30
|
href?: string | undefined;
|
|
32
|
-
onClick?: ((event: React.MouseEvent<
|
|
31
|
+
onClick?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
33
32
|
isSelected?: boolean | undefined;
|
|
34
33
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
35
34
|
as?: import("@instructure/shared-types").AsElementType | undefined;
|
|
@@ -46,7 +45,7 @@ declare class Item extends Component<AppNavItemProps> {
|
|
|
46
45
|
componentDidMount(): void;
|
|
47
46
|
componentDidUpdate(): void;
|
|
48
47
|
handleRef: (el: Element | null) => void;
|
|
49
|
-
handleClick: (e: React.MouseEvent
|
|
48
|
+
handleClick: (e: React.MouseEvent) => void;
|
|
50
49
|
render(): jsx.JSX.Element;
|
|
51
50
|
}
|
|
52
51
|
export default Item;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAexC,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;;;;;MAKT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,WAAW,MAAO,gBAAgB,UASjC;IAED,MAAM;CA4CP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -2,7 +2,6 @@ import type { AsElementType, PropValidators, AppNavItemTheme, OtherHTMLAttribute
|
|
|
2
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
3
|
import type { Cursor } from '@instructure/ui-prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import type { ViewOwnProps } from '@instructure/ui-view';
|
|
6
5
|
import { Renderable } from '@instructure/shared-types';
|
|
7
6
|
type AppNavItemOwnProps = {
|
|
8
7
|
/**
|
|
@@ -25,7 +24,7 @@ type AppNavItemOwnProps = {
|
|
|
25
24
|
/**
|
|
26
25
|
* If the item does not go to a new page, pass an onClick
|
|
27
26
|
*/
|
|
28
|
-
onClick?: (event: React.MouseEvent
|
|
27
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
29
28
|
/**
|
|
30
29
|
* Denotes which item is currently selected
|
|
31
30
|
*/
|
|
@@ -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;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,
|
|
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;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,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