This commit is contained in:
francesco
2021-07-22 20:17:29 +02:00
parent c8d054c878
commit ad8cac0d00
9 changed files with 17 additions and 41 deletions

View File

@@ -22,5 +22,8 @@
},
"include": [
"src"
],
"exclude": [
"../src"
]
}

View File

@@ -1,9 +1,10 @@
import {
AdditionalColumnDelegate,
CollectionSize,
CompositeIndex,
Entity,
EntitySchema,
FilterValues, CompositeIndex,
FilterValues,
Property,
TextSearchDelegate
} from "../../models";

View File

@@ -16,7 +16,7 @@ import {
useTheme
} from "@material-ui/core";
import { CollectionSize, EntitySchema, FilterValues } from "../../models";
import { CollectionSize, EntitySchema } from "../../models";
import SearchBar from "./SearchBar";
import ClearIcon from "@material-ui/icons/Clear";

View File

@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React from "react";
import { useInputStyles } from "./styles";
import { KeyboardDateTimePicker } from "@material-ui/pickers";
import { Box, Typography } from "@material-ui/core";

View File

@@ -1,26 +1,4 @@
import React, { useEffect } from "react";
import { Grow } from "@material-ui/core";
import { createStyles, makeStyles, Theme } from "@material-ui/core/styles";
import clsx from "clsx";
const useStyles = makeStyles<Theme>((theme: Theme) =>
createStyles({
popup: {
display: "inline-block",
userSelect: "none",
position: "fixed",
zIndex: 1300,
boxShadow: "0 0 0 2px rgba(0,0,0,0.1)",
borderRadius: "6px",
backgroundColor: theme.palette.background.paper,
padding: theme.spacing(2)
},
hidden: {
visibility: "hidden",
zIndex: -1
}
}));
type DraggableProps = {
containerRef: React.RefObject<HTMLDivElement>,
@@ -32,11 +10,11 @@ type DraggableProps = {
export function useDraggable({
containerRef,
ref,
x,
y,
onMove,
}: DraggableProps) {
ref,
x,
y,
onMove
}: DraggableProps) {
let relX = 0;

View File

@@ -31,7 +31,7 @@ export const useStyles = makeStyles(theme => createStyles({
[theme.breakpoints.down("xs")]: {
width: "100vw"
},
transition: "width 155ms cubic-bezier(0.33, 1, 0.68, 1)"
transition: "width 300ms ease-in-out"
},
wide: {
width: "65vw",
@@ -46,7 +46,7 @@ export const useStyles = makeStyles(theme => createStyles({
[theme.breakpoints.down("xs")]: {
width: "100vw"
},
transition: "width 150ms cubic-bezier(0.33, 1, 0.68, 1)"
transition: "width 300ms ease-in-out"
}
}));

View File

@@ -6,11 +6,9 @@ import {
FormControl,
FormHelperText,
makeStyles,
Paper,
Theme,
Typography
Theme
} from "@material-ui/core";
import MDEditor from '@uiw/react-md-editor';
import MDEditor from "@uiw/react-md-editor";
import { FieldProps } from "../../models";
import { FieldDescription } from "../../form/components";

View File

@@ -12,7 +12,6 @@ import LabelWithIcon from "../components/LabelWithIcon";
import { useClearRestoreValue } from "../../hooks";
import { enumToObjectEntries, isEnumValueDisabled } from "../../util/enums";
import { EnumValuesChip } from "../../preview/components/CustomChip";
import { formStyles } from "../styles";
type SelectProps<T extends EnumType> = FieldProps<T>;

View File

@@ -1,8 +1,5 @@
import React from "react";
import {
ArrayProperty,
MapProperty
} from "../../models";
import { ArrayProperty, MapProperty } from "../../models";
import ErrorBoundary from "../../core/internal/ErrorBoundary";
import { Table, TableBody, TableCell, TableRow } from "@material-ui/core";