@weng-lab/genomebrowser-ui 0.4.0-beta.0 → 0.4.0-beta.1
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/dist/TrackSelect/Folders/genes/shared/columns.d.ts +2 -2
- package/dist/TrackSelect/Folders/genes/shared/types.d.ts +2 -0
- package/dist/genomebrowser-ui.es.js +13 -21
- package/dist/genomebrowser-ui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/TrackSelect/Dialogs/ClearDialog.tsx +3 -8
- package/src/TrackSelect/Dialogs/ResetDialog.tsx +2 -2
- package/src/TrackSelect/Folders/genes/shared/columns.tsx +2 -2
- package/src/TrackSelect/Folders/genes/shared/createFolder.ts +1 -0
- package/src/TrackSelect/Folders/genes/shared/types.ts +2 -0
- package/src/TrackSelect/TrackSelect.tsx +3 -3
- package/src/TrackSelect/TreeView/CustomTreeItem.tsx +3 -3
package/package.json
CHANGED
|
@@ -26,8 +26,8 @@ export function ClearDialog({
|
|
|
26
26
|
<Dialog open={open} onClose={onClose}>
|
|
27
27
|
<DialogTitle
|
|
28
28
|
sx={{
|
|
29
|
-
bgcolor: "
|
|
30
|
-
color: "
|
|
29
|
+
bgcolor: "primary.main",
|
|
30
|
+
color: "primary.contrastText",
|
|
31
31
|
fontWeight: "bold",
|
|
32
32
|
}}
|
|
33
33
|
>
|
|
@@ -46,12 +46,7 @@ export function ClearDialog({
|
|
|
46
46
|
</DialogContentText>
|
|
47
47
|
</DialogContent>
|
|
48
48
|
<DialogActions sx={{ justifyContent: "center", gap: 2, pb: 2 }}>
|
|
49
|
-
<Button
|
|
50
|
-
variant="contained"
|
|
51
|
-
color="primary"
|
|
52
|
-
onClick={onClose}
|
|
53
|
-
autoFocus
|
|
54
|
-
>
|
|
49
|
+
<Button variant="contained" color="primary" onClick={onClose} autoFocus>
|
|
55
50
|
Cancel
|
|
56
51
|
</Button>
|
|
57
52
|
<Button variant="outlined" color="secondary" onClick={onConfirm}>
|
|
@@ -18,8 +18,8 @@ export function ResetDialog({ open, onClose, onConfirm }: ResetDialogProps) {
|
|
|
18
18
|
<Dialog open={open} onClose={onClose}>
|
|
19
19
|
<DialogTitle
|
|
20
20
|
sx={{
|
|
21
|
-
bgcolor: "
|
|
22
|
-
color: "
|
|
21
|
+
bgcolor: "primary.main",
|
|
22
|
+
color: "primary.contrastText",
|
|
23
23
|
fontWeight: "bold",
|
|
24
24
|
}}
|
|
25
25
|
>
|
|
@@ -37,6 +37,6 @@ export const defaultColumns: GridColDef<GeneRowInfo>[] = [
|
|
|
37
37
|
export const defaultGroupingModel: string[] = [];
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Leaf field - the
|
|
40
|
+
* Leaf field - the raw track ID (without folder prefix) used as the tree view leaf label
|
|
41
41
|
*/
|
|
42
|
-
export const defaultLeafField = "
|
|
42
|
+
export const defaultLeafField = "trackId";
|
|
@@ -376,8 +376,8 @@ export default function TrackSelect({
|
|
|
376
376
|
<Dialog open={open} onClose={handleCancel} maxWidth="lg" fullWidth>
|
|
377
377
|
<DialogTitle
|
|
378
378
|
sx={{
|
|
379
|
-
bgcolor: "
|
|
380
|
-
color: "
|
|
379
|
+
bgcolor: "primary.main",
|
|
380
|
+
color: "primary.contrastText",
|
|
381
381
|
display: "flex",
|
|
382
382
|
justifyContent: "space-between",
|
|
383
383
|
alignItems: "center",
|
|
@@ -388,7 +388,7 @@ export default function TrackSelect({
|
|
|
388
388
|
<IconButton
|
|
389
389
|
size="large"
|
|
390
390
|
onClick={handleCancel}
|
|
391
|
-
sx={{ color: "
|
|
391
|
+
sx={{ color: "primary.contrastText", p: 0 }}
|
|
392
392
|
>
|
|
393
393
|
<CloseIcon fontSize="large" />
|
|
394
394
|
</IconButton>
|
|
@@ -30,13 +30,13 @@ const TreeItemRoot = styled("li")(({ theme }) => ({
|
|
|
30
30
|
}),
|
|
31
31
|
}));
|
|
32
32
|
|
|
33
|
-
const TreeItemLabelText = styled(Typography)({
|
|
34
|
-
color:
|
|
33
|
+
const TreeItemLabelText = styled(Typography)(({ theme }) => ({
|
|
34
|
+
color: theme.palette.text.primary,
|
|
35
35
|
fontFamily: "inherit",
|
|
36
36
|
overflow: "hidden",
|
|
37
37
|
textOverflow: "ellipsis",
|
|
38
38
|
whiteSpace: "nowrap",
|
|
39
|
-
});
|
|
39
|
+
}));
|
|
40
40
|
|
|
41
41
|
function CustomLabel({
|
|
42
42
|
icon: Icon,
|