@instructure/ui-navigation 10.26.1-snapshot-2 → 10.26.2
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 +5 -18
- package/es/AppNav/Item/index.js +6 -6
- package/es/AppNav/Item/props.js +14 -2
- package/es/AppNav/index.js +6 -6
- package/es/AppNav/props.js +16 -1
- package/lib/AppNav/Item/index.js +5 -5
- package/lib/AppNav/Item/props.js +15 -1
- package/lib/AppNav/index.js +5 -5
- package/lib/AppNav/props.js +17 -1
- package/package.json +27 -24
- package/src/AppNav/Item/index.tsx +4 -2
- package/src/AppNav/Item/props.ts +22 -2
- package/src/AppNav/index.tsx +4 -2
- package/src/AppNav/props.ts +21 -1
- package/tsconfig.build.json +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/AppNav/Item/index.d.ts +13 -1
- package/types/AppNav/Item/index.d.ts.map +1 -1
- package/types/AppNav/Item/props.d.ts +4 -3
- package/types/AppNav/Item/props.d.ts.map +1 -1
- package/types/AppNav/index.d.ts +14 -0
- package/types/AppNav/index.d.ts.map +1 -1
- package/types/AppNav/props.d.ts +3 -2
- package/types/AppNav/props.d.ts.map +1 -1
|
@@ -18,9 +18,21 @@ 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/ui-prop-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
|
+
}>;
|
|
24
36
|
static defaultProps: {
|
|
25
37
|
readonly children: null;
|
|
26
38
|
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;AAmBnD,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,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,WAAW,GAAI,GAAG,KAAK,CAAC,UAAU,UASjC;IAED,MAAM;CA4CP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AsElementType, AppNavItemTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
1
|
+
import type { AsElementType, PropValidators, 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/ui-prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Renderable } from '@instructure/shared-types';
|
|
6
6
|
type AppNavItemOwnProps = {
|
|
@@ -51,7 +51,8 @@ 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>;
|
|
54
55
|
declare const allowedProps: AllowedPropKeys;
|
|
55
56
|
export type { AppNavItemProps, AppNavItemStyle };
|
|
56
|
-
export { allowedProps };
|
|
57
|
+
export { propTypes, allowedProps };
|
|
57
58
|
//# 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":"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,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;AAEvD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAevC,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/types/AppNav/index.d.ts
CHANGED
|
@@ -23,6 +23,20 @@ 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
|
+
}>;
|
|
26
40
|
static defaultProps: {
|
|
27
41
|
children: null;
|
|
28
42
|
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;AASnD,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,cAEM,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzC,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAW;IAEtC,MAAM,CAAC,YAAY;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;;OAAY;IAE5B,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;CA6CP;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 { AppNavTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
|
+
import type { PropValidators, AppNavTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
4
|
import { Renderable } from '@instructure/shared-types';
|
|
5
5
|
type AppNavOwnProps = {
|
|
6
6
|
/**
|
|
@@ -60,7 +60,8 @@ type AppNavStyle = ComponentStyle<'appNav' | 'alignCenter' | 'list'> & {
|
|
|
60
60
|
horizontalMargin: string;
|
|
61
61
|
menuTriggerWidth: string;
|
|
62
62
|
};
|
|
63
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
63
64
|
declare const allowedProps: AllowedPropKeys;
|
|
64
65
|
export type { AppNavProps, AppNavStyle };
|
|
65
|
-
export { allowedProps };
|
|
66
|
+
export { propTypes, allowedProps };
|
|
66
67
|
//# 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;AAOz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