@epilot/base-elements 3.9.7 → 3.9.8

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const TreeView: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export declare const TreeItem: React.MemoExoticComponent<(props: any) => JSX.Element>;
4
+ export declare const useTreeItemStyles: (props?: any) => Record<"group" | "label" | "root" | "selected" | "content" | "expanded", string>;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.useTreeItemStyles = exports.TreeItem = exports.TreeView = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var core_1 = require("@material-ui/core");
6
+ var lab_1 = require("@material-ui/lab");
7
+ var react_1 = tslib_1.__importStar(require("react"));
8
+ exports.TreeView = react_1.memo(function (props) {
9
+ return react_1["default"].createElement(lab_1.TreeView, tslib_1.__assign({}, props));
10
+ });
11
+ exports.TreeItem = react_1.memo(function (props) {
12
+ var classes = exports.useTreeItemStyles();
13
+ return (react_1["default"].createElement(lab_1.TreeItem, tslib_1.__assign({ classes: {
14
+ root: classes.root,
15
+ content: classes.content,
16
+ expanded: classes.expanded,
17
+ selected: classes.selected,
18
+ group: classes.group,
19
+ label: classes.label
20
+ } }, props)));
21
+ });
22
+ exports.useTreeItemStyles = core_1.makeStyles(function (theme) {
23
+ return core_1.createStyles({
24
+ root: {
25
+ color: theme.palette.text.primary,
26
+ '&:focus > $content $label, &:hover > $content $label, &$selected > $content $label': {
27
+ backgroundColor: 'transparent !important'
28
+ }
29
+ },
30
+ content: {
31
+ color: theme.palette.text.primary,
32
+ borderTopRightRadius: theme.spacing(2),
33
+ borderBottomRightRadius: theme.spacing(2),
34
+ paddingRight: theme.spacing(1),
35
+ fontWeight: theme.typography.fontWeightMedium,
36
+ '$expanded > &': {
37
+ fontWeight: theme.typography.fontWeightRegular
38
+ }
39
+ },
40
+ expanded: {
41
+ backgroundColor: 'transparent !important'
42
+ },
43
+ selected: {
44
+ backgroundColor: 'transparent !important'
45
+ },
46
+ group: {
47
+ marginLeft: 10,
48
+ '& $content': {
49
+ paddingLeft: theme.spacing(2)
50
+ }
51
+ },
52
+ label: {
53
+ fontWeight: 'inherit',
54
+ color: theme.palette.text.primary
55
+ }
56
+ });
57
+ });
58
+ exports.TreeView.displayName = 'TreeView';
59
+ exports.TreeItem.displayName = 'TreeItem';
60
+ //# sourceMappingURL=Tree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tree.js","sourceRoot":"","sources":["../../src/Tree/Tree.tsx"],"names":[],"mappings":";;;;AAAA,0CAA4D;AAC5D,wCAGyB;AACzB,qDAAmC;AAEtB,QAAA,QAAQ,GAAG,YAAI,CAAC,UAAC,KAAU;IACtC,OAAO,iCAAC,cAAW,uBAAK,KAAK,EAAI,CAAA;AACnC,CAAC,CAAC,CAAA;AAEW,QAAA,QAAQ,GAAG,YAAI,CAAC,UAAC,KAAU;IACtC,IAAM,OAAO,GAAG,yBAAiB,EAAE,CAAA;IAEnC,OAAO,CACL,iCAAC,cAAW,qBACV,OAAO,EAAE;YACP,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,IACG,KAAK,EACT,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,iBAAU,CAAC,UAAA,KAAK;IAC/C,OAAA,mBAAY,CAAC;QACX,IAAI,EAAE;YACJ,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;YACjC,oFAAoF,EAClF;gBACE,eAAe,EAAE,wBAAwB;aAC1C;SACJ;QACD,OAAO,EAAE;YACP,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;YACjC,oBAAoB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACtC,uBAAuB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACzC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAC9B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAyB;YACtD,eAAe,EAAE;gBACf,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB;aAC/C;SACF;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,wBAAwB;SAC1C;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,wBAAwB;SAC1C;QACD,KAAK,EAAE;YACL,UAAU,EAAE,EAAE;YACd,YAAY,EAAE;gBACZ,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;aAC9B;SACF;QACD,KAAK,EAAE;YACL,UAAU,EAAE,SAAS;YACrB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;SAClC;KACF,CAAC;AAlCF,CAkCE,CACH,CAAA;AAED,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AACjC,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAA"}
@@ -0,0 +1 @@
1
+ export { TreeItem, TreeView } from './Tree';
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ exports.__esModule = true;
10
+ exports.TreeView = exports.TreeItem = void 0;
11
+ var Tree_1 = require("./Tree");
12
+ __createBinding(exports, Tree_1, "TreeItem");
13
+ __createBinding(exports, Tree_1, "TreeView");
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Tree/index.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,+BAA2C;AAAlC,6CAAQ;AAAE,6CAAQ"}