@nethru/ui 1.0.81 → 2.0.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/base/AddableFormList.js +56 -0
- package/base/Alert.js +27 -0
- package/base/Checkbox.js +20 -0
- package/base/CircularProgressButton.js +36 -0
- package/base/ColumnedSection.js +44 -0
- package/base/DropdownButton.js +74 -0
- package/base/MainHeader.js +56 -0
- package/base/MenuItem.js +92 -0
- package/base/PropertyTable.js +69 -0
- package/base/SearchTextField.js +44 -0
- package/base/SearchableSelect.js +64 -0
- package/base/Select.js +33 -0
- package/{dist → base}/Slider.js +12 -13
- package/base/Snackbar.js +33 -0
- package/base/Switch.js +20 -0
- package/base/assets/icons.js +390 -0
- package/base/assets/images.js +1 -0
- package/base/colors/blue.js +15 -0
- package/base/colors/blueGrey.js +6 -0
- package/base/colors/green.js +13 -0
- package/base/colors/grey.js +18 -0
- package/base/colors/index.js +9 -0
- package/base/colors/lime.js +13 -0
- package/base/colors/orange.js +13 -0
- package/base/colors/purple.js +13 -0
- package/base/colors/red.js +13 -0
- package/base/colors/yellow.js +13 -0
- package/base/datagrid/DataGrid.js +57 -0
- package/base/datagrid/Footer.js +51 -0
- package/base/datagrid/Pagination.js +24 -0
- package/base/dialog/AlertDialog.js +21 -0
- package/base/dialog/ConfirmDialog.js +29 -0
- package/base/dialog/Dialog.js +56 -0
- package/base/dialog/SimpleDialog.js +33 -0
- package/{dist → base}/error/Error.js +1 -2
- package/base/frame/AppBar.js +54 -0
- package/base/frame/Brand.js +36 -0
- package/base/frame/Frame.js +49 -0
- package/{dist → base/frame}/sidebar/MenuToggler.js +14 -3
- package/{dist → base/frame}/sidebar/PrimaryMenu.js +15 -20
- package/base/frame/sidebar/SecondaryMenu.js +41 -0
- package/{dist → base/frame}/sidebar/Sidebar.js +21 -10
- package/base/frame/sidebar/SidebarContext.js +74 -0
- package/base/frame/sidebar/css/primary.module.css +69 -0
- package/base/frame/sidebar/css/sidebar.module.css +63 -0
- package/base/index.js +33 -0
- package/{dist → base}/samples/menu.sample.json +2 -2
- package/base/styles/borderRadius.js +7 -0
- package/base/styles/createTheme.js +90 -0
- package/base/styles/globalStyles.js +47 -0
- package/base/styles/mui/alert.js +40 -0
- package/base/styles/mui/appBar.js +17 -0
- package/base/styles/mui/autocomplete.js +46 -0
- package/base/styles/mui/avatar.js +14 -0
- package/base/styles/mui/button.js +276 -0
- package/base/styles/mui/buttonBase.js +10 -0
- package/base/styles/mui/checkbox.js +37 -0
- package/base/styles/mui/chip.js +83 -0
- package/base/styles/mui/cssBaseline.js +12 -0
- package/base/styles/mui/dataGrid.js +101 -0
- package/base/styles/mui/dialog.js +13 -0
- package/base/styles/mui/dialogActions.js +8 -0
- package/base/styles/mui/dialogContent.js +10 -0
- package/base/styles/mui/dialogTitle.js +11 -0
- package/base/styles/mui/formControl.js +8 -0
- package/base/styles/mui/formControlLabel.js +9 -0
- package/base/styles/mui/formHelperText.js +10 -0
- package/base/styles/mui/grid.js +15 -0
- package/base/styles/mui/icon.js +12 -0
- package/base/styles/mui/iconButton.js +79 -0
- package/base/styles/mui/inputLabel.js +13 -0
- package/base/styles/mui/list.js +11 -0
- package/base/styles/mui/menuItem.js +83 -0
- package/base/styles/mui/outlinedInput.js +53 -0
- package/base/styles/mui/paginationItem.js +25 -0
- package/base/styles/mui/paper.js +8 -0
- package/base/styles/mui/popover.js +11 -0
- package/base/styles/mui/select.js +11 -0
- package/base/styles/mui/slider.js +15 -0
- package/base/styles/mui/snackbar.js +24 -0
- package/base/styles/mui/switch.js +33 -0
- package/base/styles/mui/tab.js +23 -0
- package/base/styles/mui/tablePagination.js +8 -0
- package/base/styles/mui/tabs.js +20 -0
- package/base/styles/mui/textField.js +11 -0
- package/base/styles/mui/toggleButton.js +96 -0
- package/base/styles/mui/tooltip.js +22 -0
- package/base/styles/palette.js +40 -0
- package/base/styles/shadow.js +8 -0
- package/base/styles/typography.js +131 -0
- package/package.json +14 -10
- package/dist/Accordion.js +0 -45
- package/dist/AccordionDetails.js +0 -19
- package/dist/AccordionSummary.js +0 -35
- package/dist/AlertDialog.js +0 -55
- package/dist/AppBar.js +0 -68
- package/dist/AppendableFormList.js +0 -56
- package/dist/AvatarDropdown.js +0 -80
- package/dist/Button.js +0 -61
- package/dist/Checkbox.js +0 -27
- package/dist/CircularProgress.js +0 -33
- package/dist/ColumnedSection.js +0 -64
- package/dist/ConfirmDialog.js +0 -65
- package/dist/DataGrid.js +0 -150
- package/dist/Dialog.js +0 -42
- package/dist/DropdownButton.js +0 -59
- package/dist/FormLabel.js +0 -23
- package/dist/Frame.js +0 -47
- package/dist/GroupSelect.js +0 -67
- package/dist/ListItem.js +0 -21
- package/dist/ListItemDivider.js +0 -15
- package/dist/ListItemGrid.js +0 -12
- package/dist/ListItemText.js +0 -44
- package/dist/MainHeader.js +0 -59
- package/dist/PropertyTable.js +0 -141
- package/dist/ReferenceChipList.js +0 -59
- package/dist/SearchTextField.js +0 -24
- package/dist/SearchableSelect.js +0 -41
- package/dist/Section.js +0 -22
- package/dist/Select.js +0 -48
- package/dist/ShadowedSection.js +0 -36
- package/dist/Snackbar.js +0 -51
- package/dist/StatusChip.js +0 -34
- package/dist/Switch.js +0 -37
- package/dist/TabbedSection.js +0 -37
- package/dist/Tabs.js +0 -38
- package/dist/TextField.js +0 -25
- package/dist/index.js +0 -42
- package/dist/samples/global.sample.css +0 -59
- package/dist/sidebar/MenuTree.js +0 -95
- package/dist/sidebar/MenuTreeGroup.js +0 -65
- package/dist/sidebar/SecondaryMenu.js +0 -36
- package/dist/sidebar/SidebarContext.js +0 -122
- package/dist/sidebar/css/primary.module.css +0 -80
- package/dist/sidebar/css/sidebar.module.css +0 -50
- package/dist/variables.js +0 -6
- /package/{dist → base}/editor/Editor.js +0 -0
- /package/{dist → base}/editor/nScript.js +0 -0
- /package/{dist → base}/editor/nScriptKeywords.js +0 -0
- /package/{dist → base}/error/HttpError.js +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { grey } from "../../colors";
|
|
2
|
+
import borderRadius from "../borderRadius";
|
|
3
|
+
import typography from "../typography";
|
|
4
|
+
export const styles = {
|
|
5
|
+
variants: [{
|
|
6
|
+
props: {
|
|
7
|
+
variant: 'normal'
|
|
8
|
+
},
|
|
9
|
+
style: {}
|
|
10
|
+
}, {
|
|
11
|
+
props: {
|
|
12
|
+
variant: 'crud'
|
|
13
|
+
},
|
|
14
|
+
style: {
|
|
15
|
+
'&': {
|
|
16
|
+
backgroundColor: grey[7],
|
|
17
|
+
borderRadius: borderRadius[2],
|
|
18
|
+
'&.Mui-disabled': {
|
|
19
|
+
backgroundColor: grey[150],
|
|
20
|
+
borderRadius: borderRadius[2]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, {
|
|
25
|
+
props: {
|
|
26
|
+
variant: 'menu'
|
|
27
|
+
},
|
|
28
|
+
style: {
|
|
29
|
+
'&': {
|
|
30
|
+
backgroundColor: undefined,
|
|
31
|
+
borderRadius: borderRadius[2],
|
|
32
|
+
'&:active': {
|
|
33
|
+
backgroundColor: grey[10],
|
|
34
|
+
border: `1px solid ${grey[700]}`
|
|
35
|
+
},
|
|
36
|
+
'&.Mui-disabled': {
|
|
37
|
+
backgroundColor: grey[150],
|
|
38
|
+
borderRadius: borderRadius[2]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}],
|
|
43
|
+
defaultProps: {
|
|
44
|
+
variant: 'normal'
|
|
45
|
+
},
|
|
46
|
+
styleOverrides: {
|
|
47
|
+
root: {
|
|
48
|
+
fontFamily: typography.fontFamily,
|
|
49
|
+
color: grey[600],
|
|
50
|
+
backgroundColor: undefined,
|
|
51
|
+
borderRadius: borderRadius['circle'],
|
|
52
|
+
':hover, &.Mui-focusVisible': {
|
|
53
|
+
backgroundColor: grey[10]
|
|
54
|
+
},
|
|
55
|
+
'&:active': {
|
|
56
|
+
backgroundColor: grey[20]
|
|
57
|
+
},
|
|
58
|
+
'&.Mui-disabled': {
|
|
59
|
+
backgroundColor: undefined,
|
|
60
|
+
borderRadius: undefined
|
|
61
|
+
},
|
|
62
|
+
'&.Mui-disabled svg': {
|
|
63
|
+
color: grey[400]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
sizeLarge: {
|
|
67
|
+
width: 36,
|
|
68
|
+
height: 36
|
|
69
|
+
},
|
|
70
|
+
sizeMedium: {
|
|
71
|
+
width: 26,
|
|
72
|
+
height: 26
|
|
73
|
+
},
|
|
74
|
+
sizeSmall: {
|
|
75
|
+
width: 24,
|
|
76
|
+
height: 24
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import typography from "../typography";
|
|
2
|
+
import { grey } from "../../colors";
|
|
3
|
+
import borderRadius from "../borderRadius";
|
|
4
|
+
export const styles = {
|
|
5
|
+
variants: [{
|
|
6
|
+
props: {
|
|
7
|
+
variant: 'normal'
|
|
8
|
+
},
|
|
9
|
+
style: {}
|
|
10
|
+
}, {
|
|
11
|
+
props: {
|
|
12
|
+
variant: 'placeholder'
|
|
13
|
+
},
|
|
14
|
+
style: {
|
|
15
|
+
'&': {
|
|
16
|
+
...typography.bodySmSemibold,
|
|
17
|
+
color: grey[900]
|
|
18
|
+
},
|
|
19
|
+
'&.Mui-disabled': {
|
|
20
|
+
opacity: 1
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
props: {
|
|
25
|
+
variant: 'menusection'
|
|
26
|
+
},
|
|
27
|
+
style: {
|
|
28
|
+
'&': {
|
|
29
|
+
...typography.bodySmSemibold,
|
|
30
|
+
color: grey[600],
|
|
31
|
+
height: 25
|
|
32
|
+
},
|
|
33
|
+
'&.Mui-disabled': {
|
|
34
|
+
opacity: 1
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, {
|
|
38
|
+
props: {
|
|
39
|
+
variant: 'spacer'
|
|
40
|
+
},
|
|
41
|
+
style: {
|
|
42
|
+
'&': {
|
|
43
|
+
height: 24
|
|
44
|
+
},
|
|
45
|
+
'&.Mui-disabled': {
|
|
46
|
+
opacity: 1
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
props: {
|
|
51
|
+
variant: 'menuitem'
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
54
|
+
'&': {
|
|
55
|
+
...typography.bodyLgMedium,
|
|
56
|
+
color: grey[800],
|
|
57
|
+
height: 30
|
|
58
|
+
},
|
|
59
|
+
'&:hover, &.Mui-focusVisible, &.Mui-selected': {
|
|
60
|
+
borderRadius: borderRadius[1]
|
|
61
|
+
},
|
|
62
|
+
'&:hover, &.Mui-focusVisible': {
|
|
63
|
+
color: grey[900],
|
|
64
|
+
backgroundColor: grey[5]
|
|
65
|
+
},
|
|
66
|
+
'&.Mui-selected': {
|
|
67
|
+
...typography.bodyLgSemibold,
|
|
68
|
+
color: grey[900],
|
|
69
|
+
backgroundColor: grey[10]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}],
|
|
73
|
+
defaultProps: {
|
|
74
|
+
variant: 'normal'
|
|
75
|
+
},
|
|
76
|
+
styleOverrides: {
|
|
77
|
+
root: {
|
|
78
|
+
'& .MuiListItemIcon-root': {
|
|
79
|
+
minWidth: 27
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import typography from "../typography";
|
|
2
|
+
import borderRadius from "../borderRadius";
|
|
3
|
+
import { grey, red } from "../../colors";
|
|
4
|
+
export const styles = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: ({
|
|
7
|
+
ownerState
|
|
8
|
+
}) => ({
|
|
9
|
+
height: 36,
|
|
10
|
+
backgroundColor: '#fff',
|
|
11
|
+
borderRadius: borderRadius[2],
|
|
12
|
+
'& .MuiInputBase-input::placeholder': {
|
|
13
|
+
color: grey[400],
|
|
14
|
+
opacity: 1
|
|
15
|
+
},
|
|
16
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
17
|
+
borderColor: grey[300]
|
|
18
|
+
},
|
|
19
|
+
'&:hover .MuiOutlinedInput-notchedOutline': {
|
|
20
|
+
borderColor: !ownerState.disabled ? ownerState.error ? red[500] : grey[300] : 'unset',
|
|
21
|
+
backgroundColor: !ownerState.disabled ? grey[10] : 'unset'
|
|
22
|
+
},
|
|
23
|
+
'&.Mui-focused .MuiOutlinedInput-notchedOutline': {
|
|
24
|
+
borderWidth: 1,
|
|
25
|
+
borderColor: ownerState.error ? red[500] : grey[900],
|
|
26
|
+
backgroundColor: 'unset'
|
|
27
|
+
},
|
|
28
|
+
'&.Mui-disabled': {
|
|
29
|
+
backgroundColor: grey[150]
|
|
30
|
+
},
|
|
31
|
+
'&.Mui-disabled .MuiOutlinedInput-notchedOutline': {
|
|
32
|
+
borderColor: grey[200]
|
|
33
|
+
},
|
|
34
|
+
'&.Mui-Error .MuiOutlinedInput-notchedOutline': {
|
|
35
|
+
borderColor: red[500]
|
|
36
|
+
},
|
|
37
|
+
'fieldset legend': {
|
|
38
|
+
width: 0
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
input: {
|
|
42
|
+
...typography.bodyMdMedium,
|
|
43
|
+
fontSize: `${typography.bodyMdMedium.fontSize} !important`,
|
|
44
|
+
paddingLeft: 10,
|
|
45
|
+
paddingRight: 10,
|
|
46
|
+
'&.Mui-disabled': {
|
|
47
|
+
color: grey[500],
|
|
48
|
+
'-webkit-text-fill-color': grey[500]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
sizeSmall: undefined
|
|
52
|
+
}
|
|
53
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { grey } from "../../colors";
|
|
2
|
+
import typography from "../typography";
|
|
3
|
+
export const styles = {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: {
|
|
6
|
+
fontFamily: typography.fontFamily,
|
|
7
|
+
...typography.bodyLgMedium,
|
|
8
|
+
'&:hover': {
|
|
9
|
+
backgroundColor: grey[5]
|
|
10
|
+
},
|
|
11
|
+
'&.Mui-selected': {
|
|
12
|
+
color: grey[900],
|
|
13
|
+
backgroundColor: grey[10],
|
|
14
|
+
'&:hover': {
|
|
15
|
+
backgroundColor: grey[5]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
previousNext: {
|
|
20
|
+
'svg': {
|
|
21
|
+
fontSize: 21
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import typography from "../typography";
|
|
2
|
+
export const styles = {
|
|
3
|
+
defaultProps: {
|
|
4
|
+
size: 'small'
|
|
5
|
+
},
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: {
|
|
8
|
+
fontFamily: typography.fontFamily,
|
|
9
|
+
...typography.bodySmMedium
|
|
10
|
+
},
|
|
11
|
+
markLabel: {
|
|
12
|
+
top: '25px'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import typography from "../typography";
|
|
2
|
+
import shadow from "../shadow";
|
|
3
|
+
export const styles = {
|
|
4
|
+
defaultProps: {
|
|
5
|
+
anchorOrigin: {
|
|
6
|
+
vertical: 'top',
|
|
7
|
+
horizontal: 'right'
|
|
8
|
+
},
|
|
9
|
+
autoHideDuration: 3000
|
|
10
|
+
},
|
|
11
|
+
styleOverrides: {
|
|
12
|
+
root: ({
|
|
13
|
+
ownerState
|
|
14
|
+
}) => ({
|
|
15
|
+
fontFamily: typography.fontFamily,
|
|
16
|
+
...typography.bodyLgSemibold,
|
|
17
|
+
// ...typography.bodyXlSemibold,
|
|
18
|
+
'.MuiPaper-root': {
|
|
19
|
+
// minWidth: 300,
|
|
20
|
+
boxShadow: shadow[3]
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { blue, grey } from "../../colors";
|
|
2
|
+
export const styles = {
|
|
3
|
+
styleOverrides: {
|
|
4
|
+
root: {
|
|
5
|
+
'& + .MuiFormControlLabel-label': {
|
|
6
|
+
margin: -5
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
switchBase: ({
|
|
10
|
+
ownerState
|
|
11
|
+
}) => ({
|
|
12
|
+
':hover, &.Mui-focusVisible': {
|
|
13
|
+
backgroundColor: grey[5]
|
|
14
|
+
},
|
|
15
|
+
'&.Mui-checked + .MuiSwitch-track': {
|
|
16
|
+
backgroundColor: blue[100],
|
|
17
|
+
opacity: 1
|
|
18
|
+
},
|
|
19
|
+
'&.Mui-disabled .MuiSwitch-thumb': {
|
|
20
|
+
backgroundColor: grey[50],
|
|
21
|
+
opacity: 1
|
|
22
|
+
},
|
|
23
|
+
'&.Mui-disabled + .MuiSwitch-track': {
|
|
24
|
+
backgroundColor: ownerState.checked ? blue[100] : grey[150],
|
|
25
|
+
opacity: 1
|
|
26
|
+
}
|
|
27
|
+
}),
|
|
28
|
+
track: {
|
|
29
|
+
backgroundColor: grey[300],
|
|
30
|
+
opacity: 1
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import typography from "../typography";
|
|
2
|
+
import { grey } from "../../colors";
|
|
3
|
+
export const styles = {
|
|
4
|
+
styleOverrides: {
|
|
5
|
+
root: {
|
|
6
|
+
fontFamily: typography.fontFamily,
|
|
7
|
+
...typography.bodyXlMedium,
|
|
8
|
+
color: grey[600],
|
|
9
|
+
'&:hover, &.Mui-focusVisible': {
|
|
10
|
+
color: grey[900]
|
|
11
|
+
},
|
|
12
|
+
'&.Mui-focusVisible.Mui-selected': {
|
|
13
|
+
backgroundColor: grey[5]
|
|
14
|
+
},
|
|
15
|
+
'&.Mui-selected': {
|
|
16
|
+
...typography.headline2
|
|
17
|
+
},
|
|
18
|
+
minWidth: 'unset',
|
|
19
|
+
minHeight: 40,
|
|
20
|
+
padding: 0
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const styles = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: {
|
|
4
|
+
minHeight: 42
|
|
5
|
+
},
|
|
6
|
+
flexContainer: {
|
|
7
|
+
gap: 16
|
|
8
|
+
},
|
|
9
|
+
flexContainerVertical: ({
|
|
10
|
+
ownerState,
|
|
11
|
+
theme
|
|
12
|
+
}) => ({
|
|
13
|
+
gap: 16,
|
|
14
|
+
'.MuiTab-root': {
|
|
15
|
+
minHeight: 'unset',
|
|
16
|
+
paddingRight: theme.spacing(2)
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { blue, grey } from "../../colors";
|
|
2
|
+
import typography from "../typography";
|
|
3
|
+
import borderRadius from "../borderRadius";
|
|
4
|
+
export const styles = {
|
|
5
|
+
variants: [{
|
|
6
|
+
props: {
|
|
7
|
+
variant: 'normal'
|
|
8
|
+
},
|
|
9
|
+
style: {}
|
|
10
|
+
}, {
|
|
11
|
+
props: {
|
|
12
|
+
variant: 'apps'
|
|
13
|
+
},
|
|
14
|
+
style: {
|
|
15
|
+
'&': {
|
|
16
|
+
borderColor: 'transparent'
|
|
17
|
+
},
|
|
18
|
+
'&.Mui-selected': {
|
|
19
|
+
backgroundColor: grey[10],
|
|
20
|
+
borderColor: grey[700]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
props: {
|
|
25
|
+
variant: 'gnb'
|
|
26
|
+
},
|
|
27
|
+
style: {
|
|
28
|
+
'&.Mui-selected': {
|
|
29
|
+
backgroundColor: grey[10],
|
|
30
|
+
borderColor: grey[700]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
props: {
|
|
35
|
+
variant: 'lnb'
|
|
36
|
+
},
|
|
37
|
+
style: {
|
|
38
|
+
'&': {
|
|
39
|
+
borderColor: 'transparent'
|
|
40
|
+
},
|
|
41
|
+
'&.Mui-selected': {
|
|
42
|
+
backgroundColor: grey[10]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}],
|
|
46
|
+
defaultProps: {
|
|
47
|
+
variant: 'normal'
|
|
48
|
+
},
|
|
49
|
+
styleOverrides: {
|
|
50
|
+
root: ({
|
|
51
|
+
ownerState,
|
|
52
|
+
theme
|
|
53
|
+
}) => ({
|
|
54
|
+
fontFamily: typography.fontFamily,
|
|
55
|
+
...typography.bodyMdMedium,
|
|
56
|
+
color: grey[600],
|
|
57
|
+
borderColor: grey[300],
|
|
58
|
+
borderRadius: borderRadius[2],
|
|
59
|
+
':hover, &.Mui-focusVisible': {
|
|
60
|
+
backgroundColor: grey[5]
|
|
61
|
+
},
|
|
62
|
+
'&:active': {
|
|
63
|
+
backgroundColor: grey[10]
|
|
64
|
+
},
|
|
65
|
+
'&.Mui-selected': {
|
|
66
|
+
color: theme.palette.info.main,
|
|
67
|
+
backgroundColor: blue[50],
|
|
68
|
+
':hover, &.Mui-focusVisible': {
|
|
69
|
+
backgroundColor: blue[100]
|
|
70
|
+
},
|
|
71
|
+
'&.MuiToggleButtonGroup-grouped.MuiToggleButtonGroup-middleButton': {
|
|
72
|
+
borderLeftColor: grey[300]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
'&.Mui-disabled': {
|
|
76
|
+
color: grey[400],
|
|
77
|
+
borderColor: grey[300]
|
|
78
|
+
}
|
|
79
|
+
}),
|
|
80
|
+
sizeLarge: undefined,
|
|
81
|
+
sizeMedium: ({
|
|
82
|
+
ownerState,
|
|
83
|
+
theme
|
|
84
|
+
}) => ({
|
|
85
|
+
width: ownerState.variant === 'apps' || ownerState.variant === 'gnb' ? 36 : undefined,
|
|
86
|
+
height: 36
|
|
87
|
+
}),
|
|
88
|
+
sizeSmall: ({
|
|
89
|
+
ownerState,
|
|
90
|
+
theme
|
|
91
|
+
}) => ({
|
|
92
|
+
width: ownerState.variant === 'apps' || ownerState.variant === 'gnb' ? 26 : undefined,
|
|
93
|
+
height: 26
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import typography from "../typography";
|
|
2
|
+
import shadow from "../shadow";
|
|
3
|
+
import { grey } from "../../colors";
|
|
4
|
+
export const styles = {
|
|
5
|
+
defaultProps: {
|
|
6
|
+
arrow: true
|
|
7
|
+
},
|
|
8
|
+
styleOverrides: {
|
|
9
|
+
root: {
|
|
10
|
+
fontFamily: typography.fontFamily,
|
|
11
|
+
...typography.bodySmMedium
|
|
12
|
+
},
|
|
13
|
+
tooltip: {
|
|
14
|
+
color: grey[900],
|
|
15
|
+
backgroundColor: '#fff',
|
|
16
|
+
boxShadow: shadow[4]
|
|
17
|
+
},
|
|
18
|
+
arrow: {
|
|
19
|
+
color: '#fff'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { blue, green, grey, lime, orange, red } from "../colors";
|
|
2
|
+
const palette = {
|
|
3
|
+
primary: {
|
|
4
|
+
main: grey[900],
|
|
5
|
+
contrastText: '#fff'
|
|
6
|
+
},
|
|
7
|
+
info: {
|
|
8
|
+
main: blue[500],
|
|
9
|
+
contrastText: '#fff'
|
|
10
|
+
},
|
|
11
|
+
warning: {
|
|
12
|
+
main: orange[500],
|
|
13
|
+
contrastText: '#fff'
|
|
14
|
+
},
|
|
15
|
+
error: {
|
|
16
|
+
main: red[500],
|
|
17
|
+
contrastText: '#fff'
|
|
18
|
+
},
|
|
19
|
+
crud: {
|
|
20
|
+
main: blue[50],
|
|
21
|
+
contrastText: blue[500]
|
|
22
|
+
},
|
|
23
|
+
blue: {
|
|
24
|
+
main: blue[500],
|
|
25
|
+
contrastText: blue[700]
|
|
26
|
+
},
|
|
27
|
+
green: {
|
|
28
|
+
main: green[500],
|
|
29
|
+
contrastText: green[700]
|
|
30
|
+
},
|
|
31
|
+
orange: {
|
|
32
|
+
main: orange[500],
|
|
33
|
+
contrastText: orange[700]
|
|
34
|
+
},
|
|
35
|
+
lime: {
|
|
36
|
+
main: lime[500],
|
|
37
|
+
contrastText: lime[700]
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export default palette;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const shadow = {
|
|
2
|
+
1: '0px 18px 20px -20px rgba(90, 90, 90, 0.20)',
|
|
3
|
+
2: '1px 1px 8px 1px rgba(101, 101, 101, 0.20)',
|
|
4
|
+
3: '0px 5px 10px 0px rgba(101, 101, 101, 0.16),' + '0px 3px 4px -1px rgba(101, 101, 101, 0.08)',
|
|
5
|
+
4: '0px 2px 10px 0px rgba(0, 0, 0, 0.14),' + '0px 1px 5px -1px rgba(0, 0, 0, 0.20)',
|
|
6
|
+
5: '0px 20px 31px 3px rgba(0, 0, 0, 0.14),' + '0px 10px 13px -6px rgba(0, 0, 0, 0.20)'
|
|
7
|
+
};
|
|
8
|
+
export default shadow;
|