ish-ui 1.1.0 → 1.1.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/dist/appBar/AppBarHelpMenu.js +3 -3
- package/dist/colorPicker/ColorPicker.js +2 -2
- package/dist/formFields/EditInPlaceFieldBase.js +2 -2
- package/dist/formFields/FilePreview.js +2 -2
- package/dist/formFields/SelectCustomComponents.d.ts +1 -1
- package/dist/formFields/SelectCustomComponents.js +7 -7
- package/dist/formFields/Switch.js +7 -7
- package/dist/layout/resizable/ResizableWrapper.js +2 -2
- package/dist/themes/ishTheme.js +2 -2
- package/dist/timetable/miniCalendar/CalendarDay.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { withStyles } from 'tss-react/mui';
|
|
3
3
|
import HelpOutline from '@mui/icons-material/HelpOutline';
|
|
4
4
|
import IconButton from '@mui/material/IconButton';
|
|
5
5
|
import Typography from '@mui/material/Typography';
|
|
@@ -8,6 +8,7 @@ import MenuItem from '@mui/material/MenuItem';
|
|
|
8
8
|
import Tooltip from '@mui/material/Tooltip';
|
|
9
9
|
import { format as formatDate } from 'date-fns';
|
|
10
10
|
import { III_DD_MMM_YYYY_HH_MM_SPECIAL, openInternalLink } from '../utils';
|
|
11
|
+
import clsx from 'clsx';
|
|
11
12
|
const styles = theme => ({
|
|
12
13
|
button: {
|
|
13
14
|
color: theme.appBarButton.helpMenu.color,
|
|
@@ -47,7 +48,6 @@ class AppBarHelpMenu extends React.Component {
|
|
|
47
48
|
render() {
|
|
48
49
|
const { anchorEl } = this.state;
|
|
49
50
|
const { classes, created, modified, iconClasses, auditsUrl } = this.props;
|
|
50
|
-
const { cx } = useStyles();
|
|
51
51
|
return (React.createElement(React.Fragment, null,
|
|
52
52
|
React.createElement(Menu, { id: "form-help-menu", anchorEl: anchorEl, open: Boolean(anchorEl), onClose: this.handleClose, marginThreshold: 16, transformOrigin: {
|
|
53
53
|
vertical: 'center',
|
|
@@ -67,7 +67,7 @@ class AppBarHelpMenu extends React.Component {
|
|
|
67
67
|
auditsUrl && (React.createElement(MenuItem, { onClick: this.openAudits }, "View audit trail"))),
|
|
68
68
|
React.createElement(Tooltip, { title: "Additional information" },
|
|
69
69
|
React.createElement("div", null,
|
|
70
|
-
React.createElement(IconButton, { type: "button", "aria-owns": anchorEl ? 'form-help-menu' : null, "aria-haspopup": "true", onClick: this.handleAddFieldClick, size: "large", className:
|
|
70
|
+
React.createElement(IconButton, { type: "button", "aria-owns": anchorEl ? 'form-help-menu' : null, "aria-haspopup": "true", onClick: this.handleAddFieldClick, size: "large", className: clsx({
|
|
71
71
|
[classes.button]: !iconClasses,
|
|
72
72
|
[iconClasses]: !!iconClasses
|
|
73
73
|
}) },
|
|
@@ -15,7 +15,7 @@ import Grow from '@mui/material/Grow';
|
|
|
15
15
|
import { stopEventPropagation } from '../utils/events';
|
|
16
16
|
import { makeAppStyles } from '../styles';
|
|
17
17
|
import { useAppTheme } from '../themes';
|
|
18
|
-
const useStyles = makeAppStyles()(({ spacing, palette, zIndex, transitions }) => ({
|
|
18
|
+
const useStyles = makeAppStyles()(({ spacing, palette, zIndex, transitions }, p, classes) => ({
|
|
19
19
|
paper: {
|
|
20
20
|
width: 200,
|
|
21
21
|
padding: spacing(2),
|
|
@@ -64,7 +64,7 @@ const useStyles = makeAppStyles()(({ spacing, palette, zIndex, transitions }) =>
|
|
|
64
64
|
duration: transitions.duration.shorter,
|
|
65
65
|
easing: transitions.easing.easeInOut
|
|
66
66
|
}),
|
|
67
|
-
|
|
67
|
+
[`&:hover,&.${classes.opened}`]: {
|
|
68
68
|
transform: 'scale(2)',
|
|
69
69
|
zIndex: zIndex.modal,
|
|
70
70
|
boxShadow: '1px 0px 1px -1px rgba(0,0,0,0.2), 0px 0px 2px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);'
|
|
@@ -10,7 +10,7 @@ import { FilledInput, FormControl, FormHelperText, Input, InputAdornment, InputL
|
|
|
10
10
|
import { makeAppStyles } from '../styles';
|
|
11
11
|
import WarningMessage from '../fieldMessage/WarningMessage';
|
|
12
12
|
import { countWidth } from '../utils';
|
|
13
|
-
const useStyles = makeAppStyles()(theme => ({
|
|
13
|
+
const useStyles = makeAppStyles()((theme, p, classes) => ({
|
|
14
14
|
label: {
|
|
15
15
|
whiteSpace: 'nowrap',
|
|
16
16
|
overflow: 'hidden',
|
|
@@ -22,7 +22,7 @@ const useStyles = makeAppStyles()(theme => ({
|
|
|
22
22
|
rightLabel: {
|
|
23
23
|
left: 'unset',
|
|
24
24
|
right: theme.spacing(-2),
|
|
25
|
-
|
|
25
|
+
[`& .${classes.label}`]: {
|
|
26
26
|
marginRight: 0
|
|
27
27
|
}
|
|
28
28
|
},
|
|
@@ -10,13 +10,13 @@ import { darken } from '@mui/material/styles';
|
|
|
10
10
|
import IconButton from '@mui/material/IconButton';
|
|
11
11
|
import Tooltip from '@mui/material/Tooltip';
|
|
12
12
|
import Avatar from '@mui/material/Avatar';
|
|
13
|
-
const styles = (theme) => ({
|
|
13
|
+
const styles = (theme, p, classes) => ({
|
|
14
14
|
root: {
|
|
15
15
|
height: 'fit-content',
|
|
16
16
|
width: 'fit-content',
|
|
17
17
|
position: 'relative',
|
|
18
18
|
fontSize: 0,
|
|
19
|
-
|
|
19
|
+
[`&:hover .${classes.backdrop}.${classes.active}`]: {
|
|
20
20
|
opacity: 1
|
|
21
21
|
},
|
|
22
22
|
color: '#fff',
|
|
@@ -4,7 +4,7 @@ export declare const useSelectStyles: (params: void, muiStyleOverridesParams?: {
|
|
|
4
4
|
props: Record<string, unknown>;
|
|
5
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
6
6
|
} | undefined) => {
|
|
7
|
-
classes: Record<"label" | "error" | "root" | "multiple" | "inline" | "expandIcon" | "menuItem" | "inputWrapper" | "readonly" | "editIcon" | "
|
|
7
|
+
classes: Record<"label" | "error" | "root" | "multiple" | "inline" | "expandIcon" | "menuItem" | "inputWrapper" | "readonly" | "editIcon" | "valid" | "hasClear" | "bottomMargin" | "bottomPadding" | "topMargin" | "editable" | "autoWidthSelect" | "emptySelect" | "validUnderline" | "menuItemActive" | "menuList" | "hasPopup", string>;
|
|
8
8
|
theme: AppTheme;
|
|
9
9
|
css: import("tss-react").Css;
|
|
10
10
|
cx: import("tss-react").Cx;
|
|
@@ -27,7 +27,7 @@ import { ListItemButton } from '@mui/material';
|
|
|
27
27
|
import Tooltip from '@mui/material/Tooltip';
|
|
28
28
|
import { makeAppStyles } from '../styles';
|
|
29
29
|
import { useStyles } from 'tss-react/mui';
|
|
30
|
-
export const useSelectStyles = makeAppStyles()(theme => ({
|
|
30
|
+
export const useSelectStyles = makeAppStyles()((theme, p, classes) => ({
|
|
31
31
|
bottomMargin: {
|
|
32
32
|
marginBottom: `${theme.spacing(1) + 1}`
|
|
33
33
|
},
|
|
@@ -52,7 +52,7 @@ export const useSelectStyles = makeAppStyles()(theme => ({
|
|
|
52
52
|
},
|
|
53
53
|
label: {
|
|
54
54
|
whiteSpace: 'nowrap',
|
|
55
|
-
|
|
55
|
+
[`&.${classes.valid}`]: {
|
|
56
56
|
color: green[500]
|
|
57
57
|
}
|
|
58
58
|
},
|
|
@@ -99,26 +99,26 @@ export const useSelectStyles = makeAppStyles()(theme => ({
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
root: {
|
|
102
|
-
|
|
102
|
+
[`& .${classes.multiple}`]: {
|
|
103
103
|
flexWrap: 'wrap'
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
inputWrapper: {
|
|
107
|
-
|
|
107
|
+
[`&.Mui-focused .${classes.expandIcon}`]: {
|
|
108
108
|
opacity: 1
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
expandIcon: { opacity: 0.5 },
|
|
112
112
|
hasPopup: {
|
|
113
|
-
|
|
113
|
+
[`&.${classes.root} .${classes.inputWrapper}`]: {
|
|
114
114
|
paddingRight: 0
|
|
115
115
|
},
|
|
116
|
-
|
|
116
|
+
[`&.${classes.root}.${classes.hasClear} .${classes.inputWrapper}`]: {
|
|
117
117
|
paddingRight: 0
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
hasClear: {
|
|
121
|
-
|
|
121
|
+
[`&.${classes.root} .${classes.inputWrapper}`]: {
|
|
122
122
|
paddingRight: 0
|
|
123
123
|
}
|
|
124
124
|
},
|
|
@@ -33,7 +33,7 @@ const getValue = value => {
|
|
|
33
33
|
return value;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
const styles = theme => ({
|
|
36
|
+
const styles = (theme, p, classes) => ({
|
|
37
37
|
bar: {
|
|
38
38
|
height: '22px',
|
|
39
39
|
borderRadius: '12px',
|
|
@@ -42,7 +42,7 @@ const styles = theme => ({
|
|
|
42
42
|
width: '38px'
|
|
43
43
|
},
|
|
44
44
|
checked: {
|
|
45
|
-
|
|
45
|
+
[`&.${classes.disabled} + .${classes.bar}`]: {
|
|
46
46
|
opacity: 0.12
|
|
47
47
|
}
|
|
48
48
|
},
|
|
@@ -52,7 +52,7 @@ const styles = theme => ({
|
|
|
52
52
|
},
|
|
53
53
|
root: {
|
|
54
54
|
alignItems: 'center',
|
|
55
|
-
|
|
55
|
+
[`&.${classes.disabled}`]: {
|
|
56
56
|
opacity: 0.12
|
|
57
57
|
}
|
|
58
58
|
},
|
|
@@ -64,16 +64,16 @@ const styles = theme => ({
|
|
|
64
64
|
height: theme.spacing(4),
|
|
65
65
|
width: theme.spacing(4),
|
|
66
66
|
padding: 0,
|
|
67
|
-
|
|
67
|
+
[`&.${classes.disabled}`]: {
|
|
68
68
|
color: theme.palette.common.white
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
[`&.${classes.checked}`]: {
|
|
71
71
|
transform: `translateX(${theme.spacing(2)})`
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
[`&.${classes.checked} + .${classes.bar}`]: {
|
|
74
74
|
opacity: 1
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
[`&.${classes.checked}.${classes.disabled} + .${classes.bar}`]: {
|
|
77
77
|
backgroundColor: theme.palette.primary.main,
|
|
78
78
|
opacity: 0.6
|
|
79
79
|
}
|
|
@@ -3,7 +3,7 @@ import { Resizable } from 're-resizable';
|
|
|
3
3
|
import { useStyles, withStyles } from 'tss-react/mui';
|
|
4
4
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
5
5
|
const LIST_SIDE_BAR_DEFAULT_WIDTH = 280;
|
|
6
|
-
const styles = (theme) => ({
|
|
6
|
+
const styles = (theme, p, classes) => ({
|
|
7
7
|
sideBar: {
|
|
8
8
|
borderRight: `1px solid ${theme.palette.divider}`,
|
|
9
9
|
display: 'flex',
|
|
@@ -26,7 +26,7 @@ const styles = (theme) => ({
|
|
|
26
26
|
zIndex: theme.zIndex.drawer,
|
|
27
27
|
display: 'flex',
|
|
28
28
|
justifyContent: 'center',
|
|
29
|
-
|
|
29
|
+
[`&:active .${classes.line}, &:hover .${classes.line}`]: {
|
|
30
30
|
background: `${theme.palette.secondary.main}`,
|
|
31
31
|
overflow: 'visible'
|
|
32
32
|
}
|
package/dist/themes/ishTheme.js
CHANGED
|
@@ -37,7 +37,7 @@ const createOverrides = (palette) => ({
|
|
|
37
37
|
styleOverrides: {
|
|
38
38
|
label: {
|
|
39
39
|
fontSize: '14px',
|
|
40
|
-
'
|
|
40
|
+
'&.Mui-disabled': {
|
|
41
41
|
color: 'unset'
|
|
42
42
|
}
|
|
43
43
|
},
|
|
@@ -165,7 +165,7 @@ const createOverrides = (palette) => ({
|
|
|
165
165
|
'&:hover': {
|
|
166
166
|
color: palette.text.primary
|
|
167
167
|
},
|
|
168
|
-
'
|
|
168
|
+
'&:active': {
|
|
169
169
|
color: palette.text.primary
|
|
170
170
|
}
|
|
171
171
|
},
|
|
@@ -9,7 +9,7 @@ import React, { memo } from 'react';
|
|
|
9
9
|
import { Button } from '@mui/material';
|
|
10
10
|
import { alpha } from '@mui/material/styles';
|
|
11
11
|
import { makeAppStyles } from '../../styles';
|
|
12
|
-
const useStyles = makeAppStyles()((theme, { dayIndexValue }) => {
|
|
12
|
+
const useStyles = makeAppStyles()((theme, { dayIndexValue }, classes) => {
|
|
13
13
|
const backgroundColor = alpha(theme.palette.primary.main, dayIndexValue);
|
|
14
14
|
return {
|
|
15
15
|
root: {
|
|
@@ -34,7 +34,7 @@ const useStyles = makeAppStyles()((theme, { dayIndexValue }) => {
|
|
|
34
34
|
top: 4,
|
|
35
35
|
borderRadius: '100%'
|
|
36
36
|
},
|
|
37
|
-
|
|
37
|
+
[`&.${classes.same}`]: {
|
|
38
38
|
border: `2px solid ${theme.palette.text.primary}`
|
|
39
39
|
}
|
|
40
40
|
},
|