@instructure/ui-navigation 10.26.1 → 11.0.1-snapshot-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 +30 -1
- package/es/AppNav/Item/index.js +6 -6
- package/es/AppNav/Item/props.js +2 -14
- package/es/AppNav/index.js +6 -6
- package/es/AppNav/props.js +1 -16
- package/lib/AppNav/Item/index.js +5 -5
- package/lib/AppNav/Item/props.js +1 -15
- package/lib/AppNav/index.js +5 -5
- package/lib/AppNav/props.js +1 -17
- package/package.json +24 -27
- package/src/AppNav/Item/index.tsx +2 -4
- package/src/AppNav/Item/props.ts +2 -22
- package/src/AppNav/index.tsx +2 -4
- package/src/AppNav/props.ts +1 -21
- package/tsconfig.build.json +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/AppNav/Item/index.d.ts +1 -13
- package/types/AppNav/Item/index.d.ts.map +1 -1
- package/types/AppNav/Item/props.d.ts +3 -4
- package/types/AppNav/Item/props.d.ts.map +1 -1
- package/types/AppNav/index.d.ts +0 -14
- package/types/AppNav/index.d.ts.map +1 -1
- package/types/AppNav/props.d.ts +2 -3
- package/types/AppNav/props.d.ts.map +1 -1
|
@@ -18,21 +18,9 @@ declare class Item extends Component<AppNavItemProps> {
|
|
|
18
18
|
isSelected?: boolean;
|
|
19
19
|
elementRef?: (element: Element | null) => void;
|
|
20
20
|
as?: import("@instructure/shared-types").AsElementType;
|
|
21
|
-
cursor?: import("@instructure/
|
|
21
|
+
cursor?: import("@instructure/shared-types").Cursor;
|
|
22
22
|
isDisabled?: boolean;
|
|
23
23
|
})[];
|
|
24
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
25
|
-
renderLabel: import("@instructure/shared-types").Renderable;
|
|
26
|
-
renderAfter?: import("@instructure/shared-types").Renderable;
|
|
27
|
-
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
28
|
-
href?: string;
|
|
29
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
30
|
-
isSelected?: boolean;
|
|
31
|
-
elementRef?: (element: Element | null) => void;
|
|
32
|
-
as?: import("@instructure/shared-types").AsElementType;
|
|
33
|
-
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
34
|
-
isDisabled?: boolean;
|
|
35
|
-
}>;
|
|
36
24
|
static defaultProps: {
|
|
37
25
|
readonly children: null;
|
|
38
26
|
readonly isSelected: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAoB,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAoB,SAAS,EAAE,MAAM,OAAO,CAAA;AAkBnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;;;;;GAMG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAElC,MAAM,CAAC,YAAY;;;;;MAKT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,WAAW,GAAI,GAAG,KAAK,CAAC,UAAU,UASjC;IAED,MAAM;CA6CP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AsElementType,
|
|
1
|
+
import type { AsElementType, AppNavItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
2
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { Cursor } from '@instructure/
|
|
3
|
+
import type { Cursor } from '@instructure/shared-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Renderable } from '@instructure/shared-types';
|
|
6
6
|
type AppNavItemOwnProps = {
|
|
@@ -51,8 +51,7 @@ type PropKeys = keyof AppNavItemOwnProps;
|
|
|
51
51
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
52
52
|
type AppNavItemProps = AppNavItemOwnProps & WithStyleProps<AppNavItemTheme, AppNavItemStyle> & OtherHTMLAttributes<AppNavItemOwnProps>;
|
|
53
53
|
type AppNavItemStyle = ComponentStyle<'item' | 'label'>;
|
|
54
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
55
54
|
declare const allowedProps: AllowedPropKeys;
|
|
56
55
|
export type { AppNavItemProps, AppNavItemStyle };
|
|
57
|
-
export {
|
|
56
|
+
export { allowedProps };
|
|
58
57
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACV,aAAa,EACb,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,2BAA2B,CAAA;AACvD,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,KAAK,kBAAkB,GAAG;IACxB;;;OAGG;IACH,WAAW,EAAE,UAAU,CAAA;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,eAAe,GAAG,kBAAkB,GACvC,cAAc,CAAC,eAAe,EAAE,eAAe,CAAC,GAChD,mBAAmB,CAAC,kBAAkB,CAAC,CAAA;AAEzC,KAAK,eAAe,GAAG,cAAc,CAAC,MAAM,GAAG,OAAO,CAAC,CAAA;AACvD,QAAA,MAAM,YAAY,EAAE,eAWnB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
package/types/AppNav/index.d.ts
CHANGED
|
@@ -23,20 +23,6 @@ declare class AppNav extends Component<AppNavProps> {
|
|
|
23
23
|
visibleItemsCount?: number;
|
|
24
24
|
children?: React.ReactNode;
|
|
25
25
|
})[];
|
|
26
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
27
|
-
screenReaderLabel: string;
|
|
28
|
-
debounce?: number;
|
|
29
|
-
renderBeforeItems?: import("@instructure/shared-types").Renderable;
|
|
30
|
-
renderAfterItems?: import("@instructure/shared-types").Renderable;
|
|
31
|
-
margin?: import("@instructure/emotion").Spacing;
|
|
32
|
-
elementRef?: (element: Element | null) => void;
|
|
33
|
-
renderTruncateLabel?: import("@instructure/shared-types").Renderable;
|
|
34
|
-
onUpdate?: (visibleItemsCount: {
|
|
35
|
-
visibleItemsCount: number;
|
|
36
|
-
}) => void;
|
|
37
|
-
visibleItemsCount?: number;
|
|
38
|
-
children?: React.ReactNode;
|
|
39
|
-
}>;
|
|
40
26
|
static defaultProps: {
|
|
41
27
|
children: null;
|
|
42
28
|
debounce: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppNav/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppNav/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAI7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAI9C;;;;GAIG;AACH,cACM,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzC,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAW;IAEtC,MAAM,CAAC,YAAY;;;;;;;;;;;;;SAAe;IAElC,MAAM,CAAC,YAAY;;;;;;MAMlB;IAED,MAAM,CAAC,IAAI,cAAO;IAElB,KAAK;;MAEJ;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,UAAU,CAAC,KAAK,EAAE,gBAAgB,CAAC,eAAe,EAAE,IAAI,CAAC,EAAE;IA8B3D,MAAM;CA8CP;AAED,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,eAAe,MAAM,CAAA"}
|
package/types/AppNav/props.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type {
|
|
3
|
+
import type { AppNavTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
import { Renderable } from '@instructure/shared-types';
|
|
5
5
|
type AppNavOwnProps = {
|
|
6
6
|
/**
|
|
@@ -60,8 +60,7 @@ type AppNavStyle = ComponentStyle<'appNav' | 'alignCenter' | 'list'> & {
|
|
|
60
60
|
horizontalMargin: string;
|
|
61
61
|
menuTriggerWidth: string;
|
|
62
62
|
};
|
|
63
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
64
63
|
declare const allowedProps: AllowedPropKeys;
|
|
65
64
|
export type { AppNavProps, AppNavStyle };
|
|
66
|
-
export {
|
|
65
|
+
export { allowedProps };
|
|
67
66
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/AppNav/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/AppNav/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,KAAK,cAAc,GAAG;IACpB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,M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