@instructure/ui-tree-browser 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/TreeBrowser/TreeButton/index.js +6 -6
- package/es/TreeBrowser/TreeButton/props.js +1 -21
- package/es/TreeBrowser/TreeCollection/index.js +6 -6
- package/es/TreeBrowser/TreeCollection/props.js +1 -32
- package/es/TreeBrowser/TreeNode/index.js +6 -6
- package/es/TreeBrowser/TreeNode/props.js +1 -16
- package/es/TreeBrowser/index.js +6 -6
- package/es/TreeBrowser/props.js +1 -27
- package/lib/TreeBrowser/TreeButton/index.js +5 -5
- package/lib/TreeBrowser/TreeButton/props.js +1 -22
- package/lib/TreeBrowser/TreeCollection/index.js +5 -5
- package/lib/TreeBrowser/TreeCollection/props.js +1 -33
- package/lib/TreeBrowser/TreeNode/index.js +5 -5
- package/lib/TreeBrowser/TreeNode/props.js +1 -17
- package/lib/TreeBrowser/index.js +5 -5
- package/lib/TreeBrowser/props.js +1 -27
- package/package.json +14 -17
- package/src/TreeBrowser/TreeButton/index.tsx +2 -4
- package/src/TreeBrowser/TreeButton/props.ts +2 -28
- package/src/TreeBrowser/TreeCollection/index.tsx +3 -5
- package/src/TreeBrowser/TreeCollection/props.ts +2 -40
- package/src/TreeBrowser/TreeNode/index.tsx +7 -5
- package/src/TreeBrowser/TreeNode/props.ts +2 -23
- package/src/TreeBrowser/index.tsx +2 -4
- package/src/TreeBrowser/props.ts +4 -43
- package/tsconfig.build.json +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TreeBrowser/TreeButton/index.d.ts +0 -1
- package/types/TreeBrowser/TreeButton/index.d.ts.map +1 -1
- package/types/TreeBrowser/TreeButton/props.d.ts +2 -3
- package/types/TreeBrowser/TreeButton/props.d.ts.map +1 -1
- package/types/TreeBrowser/TreeCollection/index.d.ts +2 -10
- package/types/TreeBrowser/TreeCollection/index.d.ts.map +1 -1
- package/types/TreeBrowser/TreeCollection/props.d.ts +2 -3
- package/types/TreeBrowser/TreeCollection/props.d.ts.map +1 -1
- package/types/TreeBrowser/TreeNode/index.d.ts +0 -1
- package/types/TreeBrowser/TreeNode/index.d.ts.map +1 -1
- package/types/TreeBrowser/TreeNode/props.d.ts +2 -3
- package/types/TreeBrowser/TreeNode/props.d.ts.map +1 -1
- package/types/TreeBrowser/index.d.ts +0 -1
- package/types/TreeBrowser/index.d.ts.map +1 -1
- package/types/TreeBrowser/props.d.ts +4 -5
- package/types/TreeBrowser/props.d.ts.map +1 -1
|
@@ -10,7 +10,6 @@ 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">;
|
|
14
13
|
static contextType: import("react").Context<import("../TreeBrowserContext").TreeBrowserContextType>;
|
|
15
14
|
context: ContextType<typeof TreeBrowserContext>;
|
|
16
15
|
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;AAQ9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAErD,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AAItD;;;;;GAKG;AACH,cACM,UAAW,SAAQ,SAAS,CAAC,sBAAsB,CAAC;IACxD,MAAM,CAAC,QAAQ,CAAC,WAAW,wBAAuB;IAElD,MAAM,CAAC,YAAY,kMAAe;IAElC,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;CAkBP;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 {
|
|
3
|
+
import type { TreeBrowserButtonTheme } from '@instructure/shared-types';
|
|
4
4
|
import type { TreeBrowserCommonProps } from '../props';
|
|
5
5
|
type TreeBrowserButtonOwnProps = {
|
|
6
6
|
id?: string | number;
|
|
@@ -25,8 +25,7 @@ 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>;
|
|
29
28
|
declare const allowedProps: AllowedPropKeys;
|
|
30
29
|
export type { TreeBrowserButtonProps, TreeBrowserButtonStyle };
|
|
31
|
-
export {
|
|
30
|
+
export { allowedProps };
|
|
32
31
|
//# 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;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,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;AACD,QAAA,MAAM,YAAY,EAAE,eAkBnB,CAAA;AAED,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -19,14 +19,6 @@ 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
|
-
}>;
|
|
30
22
|
static contextType: import("react").Context<import("../TreeBrowserContext").TreeBrowserContextType>;
|
|
31
23
|
context: ContextType<typeof TreeBrowserContext>;
|
|
32
24
|
static defaultProps: {
|
|
@@ -54,7 +46,7 @@ declare class TreeCollection extends Component<TreeBrowserCollectionProps, TreeC
|
|
|
54
46
|
get childCount(): number;
|
|
55
47
|
sortChildren(): CompareObject[];
|
|
56
48
|
renderChildren(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
57
|
-
renderCollectionChildren(collectionId: string | number | undefined, child: ReactElement
|
|
49
|
+
renderCollectionChildren(collectionId: string | number | undefined, child: ReactElement<any>, position: number, keyword: 'before' | 'after'): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
50
|
renderCollectionNode(collection: CollectionProps, position: number): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
59
51
|
renderItemNode(item: CollectionItem, position: number): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
60
52
|
getCommonButtonProps(): {
|
|
@@ -65,7 +57,7 @@ declare class TreeCollection extends Component<TreeBrowserCollectionProps, TreeC
|
|
|
65
57
|
variant: "folderTree" | "indent" | undefined;
|
|
66
58
|
itemIcon: import("@instructure/shared-types").Renderable;
|
|
67
59
|
level: number;
|
|
68
|
-
renderContent: ((props: import("../..").TreeBrowserButtonProps) => JSX.Element) | undefined;
|
|
60
|
+
renderContent: ((props: import("../..").TreeBrowserButtonProps) => React.JSX.Element) | undefined;
|
|
69
61
|
};
|
|
70
62
|
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
71
63
|
}
|
|
@@ -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,EAAE,MAAM,OAAO,CAAA;AAS5E,OAAO,KAAK,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;A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AA;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 {
|
|
3
|
+
import type { 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,11 +15,10 @@ 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>;
|
|
19
18
|
declare const allowedProps: AllowedPropKeys;
|
|
20
19
|
type TreeCollectionState = {
|
|
21
20
|
focused: string;
|
|
22
21
|
};
|
|
23
22
|
export type { TreeBrowserCollectionProps, TreeBrowserCollectionStyle, TreeCollectionState };
|
|
24
|
-
export {
|
|
23
|
+
export { allowedProps };
|
|
25
24
|
//# 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,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/TreeBrowser/TreeCollection/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAEhE,KAAK,6BAA6B,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,IAAI,EAAE,cAAc,KAAK,IAAI,CAAA;IAElE,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,KAAK,IAAI,CAAA;IACjE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,eAAe,GACjB,oBAAoB,CAAA;AAEtB,KAAK,QAAQ,GAAG,MAAM,6BAA6B,CAAA;AAEnD,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,0BAA0B,GAAG,6BAA6B,GAC7D,cAAc,CAAC,0BAA0B,EAAE,0BAA0B,CAAC,CAAA;AAExE,KAAK,0BAA0B,GAAG,cAAc,CAC9C,gBAAgB,GAAG,MAAM,GAAG,MAAM,CACnC,CAAA;AACD,QAAA,MAAM,YAAY,EAAE,eA0BnB,CAAA;AAED,KAAK,mBAAmB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9C,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACpB,CAAA;AACD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -12,7 +12,6 @@ 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">;
|
|
16
15
|
static contextType: import("react").Context<import("../TreeBrowserContext").TreeBrowserContextType>;
|
|
17
16
|
context: ContextType<typeof TreeBrowserContext>;
|
|
18
17
|
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;AAQ9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD,OAAO,kBAAkB,MAAM,uBAAuB,CAAA;AAItD;;;;;;;GAOG;AACH,cACM,QAAS,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IACpD,MAAM,CAAC,QAAQ,CAAC,WAAW,sBAAqB;IAEhD,MAAM,CAAC,YAAY,+JAAe;IAElC,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;CAgBP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { 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,8 +13,7 @@ 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>;
|
|
17
16
|
declare const allowedProps: AllowedPropKeys;
|
|
18
17
|
export type { TreeBrowserNodeProps };
|
|
19
|
-
export {
|
|
18
|
+
export { allowedProps };
|
|
20
19
|
//# 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;AACzB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,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;AAChE,QAAA,MAAM,YAAY,EAAE,eAanB,CAAA;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -12,7 +12,6 @@ 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>;
|
|
16
15
|
static defaultProps: {
|
|
17
16
|
size: string;
|
|
18
17
|
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;AAKxE,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,cACM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACrE,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY,4TAAe;IAElC,MAAM,CAAC,YAAY;;;;;;;8BAOK,OAAO;oCACD,OAAO;;;;;MAOpC;IAED,MAAM,CAAC,IAAI,kBAAW;IACtB,MAAM,CAAC,UAAU,wBAAiB;IAClC,MAAM,CAAC,MAAM,oBAAa;IAE1B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;gBAEd,KAAK,EAAE,gBAAgB;IASnC,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,KAAK,mBAKR;IAED,qBAAqB,GACnB,GAAG,cAAc,EACjB,YAAY,cAAc,EAC1B,gBAAa,UAQd;IAED,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import { ReactElement } from 'react';
|
|
3
|
+
import React, { 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) => JSX.Element;
|
|
82
|
+
renderContent?: (props: TreeBrowserButtonProps) => React.JSX.Element;
|
|
83
83
|
};
|
|
84
84
|
type PropKeys = keyof TreeBrowserOwnProps;
|
|
85
85
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
@@ -134,12 +134,11 @@ type CollectionData = {
|
|
|
134
134
|
expanded?: boolean;
|
|
135
135
|
type: 'child' | 'collection' | 'item';
|
|
136
136
|
};
|
|
137
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
138
137
|
declare const allowedProps: AllowedPropKeys;
|
|
139
138
|
type TreeBrowserState = {
|
|
140
139
|
selection: string;
|
|
141
140
|
expanded?: (string | number | undefined)[];
|
|
142
141
|
};
|
|
143
142
|
export type { TreeBrowserProps, TreeBrowserState, TreeBrowserStyle, CollectionData, Collection, CollectionItem, CompareCollection, CompareItem, CompareObject, CollectionProps, TreeBrowserBaseProps, TreeBrowserCommonProps };
|
|
144
|
-
export {
|
|
143
|
+
export { allowedProps };
|
|
145
144
|
//# 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":"AAwBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA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