@instructure/ui-tree-browser 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/TreeBrowser/TreeButton/index.js +6 -6
- package/es/TreeBrowser/TreeButton/props.js +21 -1
- package/es/TreeBrowser/TreeCollection/index.js +6 -6
- package/es/TreeBrowser/TreeCollection/props.js +32 -1
- package/es/TreeBrowser/TreeNode/index.js +6 -6
- package/es/TreeBrowser/TreeNode/props.js +16 -1
- package/es/TreeBrowser/index.js +6 -6
- package/es/TreeBrowser/props.js +27 -1
- package/lib/TreeBrowser/TreeButton/index.js +5 -5
- package/lib/TreeBrowser/TreeButton/props.js +22 -1
- package/lib/TreeBrowser/TreeCollection/index.js +5 -5
- package/lib/TreeBrowser/TreeCollection/props.js +33 -1
- package/lib/TreeBrowser/TreeNode/index.js +5 -5
- package/lib/TreeBrowser/TreeNode/props.js +17 -1
- package/lib/TreeBrowser/index.js +5 -5
- package/lib/TreeBrowser/props.js +27 -1
- package/package.json +17 -14
- package/src/TreeBrowser/TreeButton/index.tsx +4 -2
- package/src/TreeBrowser/TreeButton/props.ts +28 -2
- package/src/TreeBrowser/TreeCollection/index.tsx +5 -3
- package/src/TreeBrowser/TreeCollection/props.ts +40 -2
- package/src/TreeBrowser/TreeNode/index.tsx +5 -7
- package/src/TreeBrowser/TreeNode/props.ts +23 -2
- package/src/TreeBrowser/index.tsx +4 -2
- package/src/TreeBrowser/props.ts +43 -4
- package/tsconfig.build.json +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TreeBrowser/TreeButton/index.d.ts +1 -0
- package/types/TreeBrowser/TreeButton/index.d.ts.map +1 -1
- package/types/TreeBrowser/TreeButton/props.d.ts +3 -2
- package/types/TreeBrowser/TreeButton/props.d.ts.map +1 -1
- package/types/TreeBrowser/TreeCollection/index.d.ts +10 -2
- package/types/TreeBrowser/TreeCollection/index.d.ts.map +1 -1
- package/types/TreeBrowser/TreeCollection/props.d.ts +3 -2
- package/types/TreeBrowser/TreeCollection/props.d.ts.map +1 -1
- package/types/TreeBrowser/TreeNode/index.d.ts +1 -0
- package/types/TreeBrowser/TreeNode/index.d.ts.map +1 -1
- package/types/TreeBrowser/TreeNode/props.d.ts +3 -2
- package/types/TreeBrowser/TreeNode/props.d.ts.map +1 -1
- package/types/TreeBrowser/index.d.ts +1 -0
- package/types/TreeBrowser/index.d.ts.map +1 -1
- package/types/TreeBrowser/props.d.ts +5 -4
- package/types/TreeBrowser/props.d.ts.map +1 -1
|
@@ -10,6 +10,7 @@ id: TreeBrowser.Button
|
|
|
10
10
|
declare class TreeButton extends Component<TreeBrowserButtonProps> {
|
|
11
11
|
static readonly componentId = "TreeBrowser.Button";
|
|
12
12
|
static allowedProps: readonly ("thumbnail" | "expanded" | keyof import("../props").TreeBrowserCommonProps | "id" | "name" | "descriptor" | "type" | "onClick" | "selected" | "focused" | "level" | "containerRef")[];
|
|
13
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"thumbnail" | "expanded" | keyof import("../props").TreeBrowserCommonProps | "id" | "name" | "descriptor" | "type" | "onClick" | "selected" | "focused" | "level" | "containerRef">;
|
|
13
14
|
static contextType: import("react").Context<import("../TreeBrowserContext").TreeBrowserContextType>;
|
|
14
15
|
context: ContextType<typeof TreeBrowserContext>;
|
|
15
16
|
static defaultProps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAS9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AAItD;;;;;GAKG;AACH,cAEM,UAAW,SAAQ,SAAS,CAAC,sBAAsB,CAAC;IACxD,MAAM,CAAC,QAAQ,CAAC,WAAW,wBAAuB;IAElD,MAAM,CAAC,YAAY,kMAAe;IAClC,MAAM,CAAC,SAAS,yOAAY;IAE5B,MAAM,CAAC,WAAW,kFAAqB;IAC/B,OAAO,EAAE,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;IAEvD,MAAM,CAAC,YAAY;;;;;;;MAOlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,sBAAsB,CAAC,KAAK,EAAE,sBAAsB;IAiBpD,WAAW;IAaX,oBAAoB;IAcpB,eAAe;IAef,SAAS,GAAI,IAAI,iBAAiB,UAKjC;IAED,MAAM;CAiBP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { TreeBrowserButtonTheme } from '@instructure/shared-types';
|
|
3
|
+
import type { PropValidators, TreeBrowserButtonTheme } from '@instructure/shared-types';
|
|
4
4
|
import type { TreeBrowserCommonProps } from '../props';
|
|
5
5
|
type TreeBrowserButtonOwnProps = {
|
|
6
6
|
id?: string | number;
|
|
@@ -25,7 +25,8 @@ type PropKeys = keyof TreeBrowserButtonOwnProps;
|
|
|
25
25
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
26
26
|
type TreeBrowserButtonProps = TreeBrowserButtonOwnProps & WithStyleProps<TreeBrowserButtonTheme, TreeBrowserButtonStyle>;
|
|
27
27
|
type TreeBrowserButtonStyle = ComponentStyle<'treeButton' | 'layout' | 'text' | 'textName' | 'textDescriptor' | 'icon' | 'thumbnail' | 'node'>;
|
|
28
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
28
29
|
declare const allowedProps: AllowedPropKeys;
|
|
29
30
|
export type { TreeBrowserButtonProps, TreeBrowserButtonStyle };
|
|
30
|
-
export { allowedProps };
|
|
31
|
+
export { propTypes, allowedProps };
|
|
31
32
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEtD,KAAK,yBAAyB,GAAG;IAC/B,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,CAAA;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;CAChD,GAAG,sBAAsB,CAAA;AAE1B,KAAK,QAAQ,GAAG,MAAM,yBAAyB,CAAA;AAE/C,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,sBAAsB,GAAG,yBAAyB,GACrD,cAAc,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AAEhE,KAAK,sBAAsB,GAAG,cAAc,CACxC,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,UAAU,GACV,gBAAgB,GAChB,MAAM,GACN,WAAW,GACX,MAAM,CACT,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAkBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAkBnB,CAAA;AAED,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -19,6 +19,14 @@ declare class TreeCollection extends Component<TreeBrowserCollectionProps, TreeC
|
|
|
19
19
|
renderBeforeItems?: ReactElement;
|
|
20
20
|
renderAfterItems?: ReactElement;
|
|
21
21
|
})[];
|
|
22
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"collections" | "items" | "expanded" | "onItemClick" | "getItemProps" | "getCollectionProps" | "onCollectionClick" | keyof import("../props").TreeBrowserCommonProps | "level" | "position" | "onKeyDown" | "numChildren" | "selection" | "isCollectionFlattened" | "compareFunc" | keyof {
|
|
23
|
+
id: number | string;
|
|
24
|
+
name: string;
|
|
25
|
+
descriptor?: string;
|
|
26
|
+
containerRef?: (el: HTMLElement | null) => void;
|
|
27
|
+
renderBeforeItems?: ReactElement;
|
|
28
|
+
renderAfterItems?: ReactElement;
|
|
29
|
+
}>;
|
|
22
30
|
static contextType: import("react").Context<import("../TreeBrowserContext").TreeBrowserContextType>;
|
|
23
31
|
context: ContextType<typeof TreeBrowserContext>;
|
|
24
32
|
static defaultProps: {
|
|
@@ -46,7 +54,7 @@ declare class TreeCollection extends Component<TreeBrowserCollectionProps, TreeC
|
|
|
46
54
|
get childCount(): number;
|
|
47
55
|
sortChildren(): CompareObject[];
|
|
48
56
|
renderChildren(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
49
|
-
renderCollectionChildren(collectionId: string | number | undefined, child: ReactElement
|
|
57
|
+
renderCollectionChildren(collectionId: string | number | undefined, child: ReactElement, position: number, keyword: 'before' | 'after'): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
50
58
|
renderCollectionNode(collection: CollectionProps, position: number): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
51
59
|
renderItemNode(item: CollectionItem, position: number): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
52
60
|
getCommonButtonProps(): {
|
|
@@ -57,7 +65,7 @@ declare class TreeCollection extends Component<TreeBrowserCollectionProps, TreeC
|
|
|
57
65
|
variant: "folderTree" | "indent" | undefined;
|
|
58
66
|
itemIcon: import("@instructure/shared-types").Renderable;
|
|
59
67
|
level: number;
|
|
60
|
-
renderContent: ((props: import("../..").TreeBrowserButtonProps) =>
|
|
68
|
+
renderContent: ((props: import("../..").TreeBrowserButtonProps) => JSX.Element) | undefined;
|
|
61
69
|
};
|
|
62
70
|
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
63
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeCollection/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeCollection/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EA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AAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM;IAuBlE,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM;IA6CrD,oBAAoB;;;;;;;;;;IAapB,MAAM;CAgEP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CollectionData } from '../props';
|
|
3
|
-
import type { TreeBrowserCollectionTheme } from '@instructure/shared-types';
|
|
3
|
+
import type { PropValidators, TreeBrowserCollectionTheme } from '@instructure/shared-types';
|
|
4
4
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
5
5
|
import { CollectionProps, TreeBrowserBaseProps } from '../props';
|
|
6
6
|
type TreeBrowserCollectionOwnProps = {
|
|
@@ -15,10 +15,11 @@ type PropKeys = keyof TreeBrowserCollectionOwnProps;
|
|
|
15
15
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
16
16
|
type TreeBrowserCollectionProps = TreeBrowserCollectionOwnProps & WithStyleProps<TreeBrowserCollectionTheme, TreeBrowserCollectionStyle>;
|
|
17
17
|
type TreeBrowserCollectionStyle = ComponentStyle<'treeCollection' | 'list' | 'item'>;
|
|
18
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
18
19
|
declare const allowedProps: AllowedPropKeys;
|
|
19
20
|
type TreeCollectionState = {
|
|
20
21
|
focused: string;
|
|
21
22
|
};
|
|
22
23
|
export type { TreeBrowserCollectionProps, TreeBrowserCollectionStyle, TreeCollectionState };
|
|
23
|
-
export { allowedProps };
|
|
24
|
+
export { propTypes, allowedProps };
|
|
24
25
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeCollection/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,C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IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9C,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACpB,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -12,6 +12,7 @@ in the TreeBrowser.
|
|
|
12
12
|
declare class TreeNode extends Component<TreeBrowserNodeProps> {
|
|
13
13
|
static readonly componentId = "TreeBrowser.Node";
|
|
14
14
|
static allowedProps: readonly ("thumbnail" | "size" | "variant" | "itemIcon" | "id" | "onClick" | "selected" | "focused" | "level" | "containerRef" | "children" | "onKeyDown")[];
|
|
15
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"thumbnail" | "size" | "variant" | "itemIcon" | "id" | "onClick" | "selected" | "focused" | "level" | "containerRef" | "children" | "onKeyDown">;
|
|
15
16
|
static contextType: import("react").Context<import("../TreeBrowserContext").TreeBrowserContextType>;
|
|
16
17
|
context: ContextType<typeof TreeBrowserContext>;
|
|
17
18
|
static defaultProps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeNode/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeNode/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAS9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AAItD;;;;;;;GAOG;AACH,cAEM,QAAS,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IACpD,MAAM,CAAC,QAAQ,CAAC,WAAW,sBAAqB;IAEhD,MAAM,CAAC,YAAY,+JAAe;IAClC,MAAM,CAAC,SAAS,sMAAY;IAE5B,MAAM,CAAC,WAAW,kFAAqB;IAC/B,OAAO,EAAE,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;IAEvD,MAAM,CAAC,YAAY;;;;;MAKlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,GAAI,IAAI,cAAc,UAK9B;IAED,eAAe;IAef,MAAM;CAWP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TreeBrowserButtonTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { PropValidators, TreeBrowserButtonTheme } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps } from '@instructure/emotion';
|
|
4
4
|
import type { TreeBrowserButtonProps, TreeBrowserButtonStyle } from '../TreeButton/props';
|
|
5
5
|
import { CollectionData } from '../props';
|
|
@@ -13,7 +13,8 @@ type TreeBrowserNodeOwnProps = Pick<TreeBrowserButtonProps, 'id' | 'size' | 'var
|
|
|
13
13
|
type PropKeys = keyof TreeBrowserNodeOwnProps;
|
|
14
14
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
15
15
|
type TreeBrowserNodeProps = TreeBrowserNodeOwnProps & WithStyleProps<TreeBrowserButtonTheme, TreeBrowserButtonStyle>;
|
|
16
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
16
17
|
declare const allowedProps: AllowedPropKeys;
|
|
17
18
|
export type { TreeBrowserNodeProps };
|
|
18
|
-
export { allowedProps };
|
|
19
|
+
export { propTypes, allowedProps };
|
|
19
20
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeNode/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeNode/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,cAAc,EACd,sBAAsB,EACvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,KAAK,uBAAuB,GAAG,IAAI,CACjC,sBAAsB,EACpB,IAAI,GACJ,MAAM,GACN,SAAS,GACT,UAAU,GACV,SAAS,GACT,UAAU,GACV,WAAW,GACX,OAAO,GACP,cAAc,GACd,SAAS,CACZ,GAAG;IACF,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,IAAI,EAAE,cAAc,KAAK,IAAI,CAAA;IAClE;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,uBAAuB,CAAA;AAE7C,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,oBAAoB,GAAG,uBAAuB,GACjD,cAAc,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AAEhE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAavC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAanB,CAAA;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -12,6 +12,7 @@ category: components
|
|
|
12
12
|
declare class TreeBrowser extends Component<TreeBrowserProps, TreeBrowserState> {
|
|
13
13
|
static readonly componentId = "TreeBrowser";
|
|
14
14
|
static allowedProps: readonly ("collections" | "items" | "rootId" | "expanded" | "defaultExpanded" | "selectionType" | "onCollectionToggle" | "onItemClick" | "showRootCollection" | "treeLabel" | "sortOrder" | "animation" | "getItemProps" | "getCollectionProps" | "onCollectionClick" | keyof import("./props").TreeBrowserCommonProps)[];
|
|
15
|
+
static propTypes: import("@instructure/shared-types").PropValidators<"collections" | "items" | "rootId" | "expanded" | "defaultExpanded" | "selectionType" | "onCollectionToggle" | "onItemClick" | "showRootCollection" | "treeLabel" | "sortOrder" | "animation" | "getItemProps" | "getCollectionProps" | "onCollectionClick" | keyof import("./props").TreeBrowserCommonProps>;
|
|
15
16
|
static defaultProps: {
|
|
16
17
|
size: string;
|
|
17
18
|
variant: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TreeBrowser/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGjD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TreeBrowser/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAGjD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAMxE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAIrC,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAIhB;;;;GAIG;AACH,cAEM,WAAY,SAAQ,SAAS,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UAAU;IAUxC,QAAQ,CAAC,UAAU,EAAE,UAAU;;;;;;;IAc/B,cAAc,GAAI,YAAY,UAAU,aAOvC;IAED,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,eAAe;IAgB3D,gBAAgB,CACd,QAAQ,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,EACzC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAKtB,UAAU;IAoBV,MAAM;CAwBP;AAED,eAAe,WAAW,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TreeBrowserTheme } from '@instructure/shared-types';
|
|
1
|
+
import type { PropValidators, TreeBrowserTheme } from '@instructure/shared-types';
|
|
2
2
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
4
|
import type { TreeBrowserButtonProps } from './TreeButton/props';
|
|
5
5
|
import { Renderable } from '@instructure/shared-types';
|
|
6
6
|
type TreeBrowserOwnProps = {
|
|
@@ -79,7 +79,7 @@ type TreeBrowserCommonProps = {
|
|
|
79
79
|
collectionIcon?: Renderable;
|
|
80
80
|
collectionIconExpanded?: Renderable;
|
|
81
81
|
itemIcon?: Renderable;
|
|
82
|
-
renderContent?: (props: TreeBrowserButtonProps) =>
|
|
82
|
+
renderContent?: (props: TreeBrowserButtonProps) => JSX.Element;
|
|
83
83
|
};
|
|
84
84
|
type PropKeys = keyof TreeBrowserOwnProps;
|
|
85
85
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
@@ -134,11 +134,12 @@ type CollectionData = {
|
|
|
134
134
|
expanded?: boolean;
|
|
135
135
|
type: 'child' | 'collection' | 'item';
|
|
136
136
|
};
|
|
137
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
137
138
|
declare const allowedProps: AllowedPropKeys;
|
|
138
139
|
type TreeBrowserState = {
|
|
139
140
|
selection: string;
|
|
140
141
|
expanded?: (string | number | undefined)[];
|
|
141
142
|
};
|
|
142
143
|
export type { TreeBrowserProps, TreeBrowserState, TreeBrowserStyle, CollectionData, Collection, CollectionItem, CompareCollection, CompareItem, CompareObject, CollectionProps, TreeBrowserBaseProps, TreeBrowserCommonProps };
|
|
143
|
-
export { allowedProps };
|
|
144
|
+
export { propTypes, allowedProps };
|
|
144
145
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/TreeBrowser/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/TreeBrowser/props.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,KAAK,mBAAmB,GAAG;IACzB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,UAAU,CAAC,CAAA;IAChD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACrC;;;;QAII;IACJ,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC1C;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;IACrC;;;OAGG;IACH,aAAa,CAAC,EAAE,M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