@instructure/ui-navigation 8.36.1-snapshot-7 → 8.36.1-snapshot-17
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/lib/AppNav/Item/index.js +24 -0
- package/lib/AppNav/index.js +24 -0
- package/lib/Navigation/NavigationItem/index.js +24 -0
- package/lib/Navigation/index.js +24 -0
- package/package.json +25 -25
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/AppNav/Item/index.d.ts +8 -8
- package/types/AppNav/index.d.ts +6 -6
- package/types/Navigation/NavigationItem/index.d.ts +2 -2
|
@@ -14,26 +14,26 @@ id: AppNav.Item
|
|
|
14
14
|
declare class Item extends Component<AppNavItemProps> {
|
|
15
15
|
static readonly componentId = "AppNav.Item";
|
|
16
16
|
static allowedProps: readonly (keyof {
|
|
17
|
-
renderLabel: import("@instructure/shared-types").Renderable
|
|
18
|
-
renderAfter?: import("@instructure/shared-types").Renderable
|
|
19
|
-
renderIcon?: import("@instructure/shared-types").Renderable
|
|
17
|
+
renderLabel: import("@instructure/shared-types").Renderable;
|
|
18
|
+
renderAfter?: import("@instructure/shared-types").Renderable;
|
|
19
|
+
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
20
20
|
href?: string | undefined;
|
|
21
21
|
onClick?: ((event: React.MouseEvent<ViewOwnProps, MouseEvent>) => void) | undefined;
|
|
22
22
|
isSelected?: boolean | undefined;
|
|
23
23
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
24
|
-
as?: import("@instructure/shared-types/types/CommonProps").AsElementType
|
|
24
|
+
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
25
25
|
cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
|
|
26
26
|
isDisabled?: boolean | undefined;
|
|
27
27
|
})[];
|
|
28
28
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
29
|
-
renderLabel: import("@instructure/shared-types").Renderable
|
|
30
|
-
renderAfter?: import("@instructure/shared-types").Renderable
|
|
31
|
-
renderIcon?: import("@instructure/shared-types").Renderable
|
|
29
|
+
renderLabel: import("@instructure/shared-types").Renderable;
|
|
30
|
+
renderAfter?: import("@instructure/shared-types").Renderable;
|
|
31
|
+
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
32
32
|
href?: string | undefined;
|
|
33
33
|
onClick?: ((event: React.MouseEvent<ViewOwnProps, MouseEvent>) => void) | undefined;
|
|
34
34
|
isSelected?: boolean | undefined;
|
|
35
35
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
36
|
-
as?: import("@instructure/shared-types/types/CommonProps").AsElementType
|
|
36
|
+
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
37
37
|
cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
|
|
38
38
|
isDisabled?: boolean | undefined;
|
|
39
39
|
}>;
|
package/types/AppNav/index.d.ts
CHANGED
|
@@ -15,11 +15,11 @@ declare class AppNav extends Component<AppNavProps> {
|
|
|
15
15
|
static allowedProps: readonly (keyof {
|
|
16
16
|
screenReaderLabel: string;
|
|
17
17
|
debounce?: number | undefined;
|
|
18
|
-
renderBeforeItems?: import("@instructure/shared-types").Renderable
|
|
19
|
-
renderAfterItems?: import("@instructure/shared-types").Renderable
|
|
18
|
+
renderBeforeItems?: import("@instructure/shared-types").Renderable;
|
|
19
|
+
renderAfterItems?: import("@instructure/shared-types").Renderable;
|
|
20
20
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
21
21
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
22
|
-
renderTruncateLabel?: import("@instructure/shared-types").Renderable
|
|
22
|
+
renderTruncateLabel?: import("@instructure/shared-types").Renderable;
|
|
23
23
|
onUpdate?: (({ visibleItemsCount }: {
|
|
24
24
|
visibleItemsCount: number;
|
|
25
25
|
}) => void) | undefined;
|
|
@@ -29,11 +29,11 @@ declare class AppNav extends Component<AppNavProps> {
|
|
|
29
29
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
30
30
|
screenReaderLabel: string;
|
|
31
31
|
debounce?: number | undefined;
|
|
32
|
-
renderBeforeItems?: import("@instructure/shared-types").Renderable
|
|
33
|
-
renderAfterItems?: import("@instructure/shared-types").Renderable
|
|
32
|
+
renderBeforeItems?: import("@instructure/shared-types").Renderable;
|
|
33
|
+
renderAfterItems?: import("@instructure/shared-types").Renderable;
|
|
34
34
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
35
35
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
36
|
-
renderTruncateLabel?: import("@instructure/shared-types").Renderable
|
|
36
|
+
renderTruncateLabel?: import("@instructure/shared-types").Renderable;
|
|
37
37
|
onUpdate?: (({ visibleItemsCount }: {
|
|
38
38
|
visibleItemsCount: number;
|
|
39
39
|
}) => void) | undefined;
|
|
@@ -15,7 +15,7 @@ declare class NavigationItem extends Component<NavigationItemProps> {
|
|
|
15
15
|
elementRef?: ((el: Element | null) => void) | undefined;
|
|
16
16
|
icon: import("react").ReactNode;
|
|
17
17
|
label: import("react").ReactNode;
|
|
18
|
-
as?: import("@instructure/shared-types/types/CommonProps").AsElementType
|
|
18
|
+
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
19
19
|
href?: string | undefined;
|
|
20
20
|
onClick?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
21
21
|
selected?: boolean | undefined;
|
|
@@ -25,7 +25,7 @@ declare class NavigationItem extends Component<NavigationItemProps> {
|
|
|
25
25
|
elementRef?: ((el: Element | null) => void) | undefined;
|
|
26
26
|
icon: import("react").ReactNode;
|
|
27
27
|
label: import("react").ReactNode;
|
|
28
|
-
as?: import("@instructure/shared-types/types/CommonProps").AsElementType
|
|
28
|
+
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
29
29
|
href?: string | undefined;
|
|
30
30
|
onClick?: ((event: import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
31
31
|
selected?: boolean | undefined;
|