@nethru/ui 1.0.82 → 2.0.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.
Files changed (141) hide show
  1. package/base/AddableFormList.js +56 -0
  2. package/base/Alert.js +27 -0
  3. package/base/Checkbox.js +20 -0
  4. package/base/CircularProgressButton.js +36 -0
  5. package/base/ColumnedSection.js +44 -0
  6. package/base/DropdownButton.js +74 -0
  7. package/base/MainHeader.js +56 -0
  8. package/base/MenuItem.js +92 -0
  9. package/base/PropertyTable.js +69 -0
  10. package/base/SearchTextField.js +44 -0
  11. package/base/SearchableSelect.js +64 -0
  12. package/base/Select.js +33 -0
  13. package/{dist → base}/Slider.js +12 -13
  14. package/base/Snackbar.js +33 -0
  15. package/base/Switch.js +20 -0
  16. package/base/assets/icons.js +390 -0
  17. package/base/assets/images.js +1 -0
  18. package/{dist → base}/colors/blue.js +3 -1
  19. package/{dist → base}/colors/blueGrey.js +1 -1
  20. package/base/datagrid/DataGrid.js +57 -0
  21. package/base/datagrid/Footer.js +51 -0
  22. package/base/datagrid/Pagination.js +24 -0
  23. package/base/dialog/AlertDialog.js +21 -0
  24. package/base/dialog/ConfirmDialog.js +29 -0
  25. package/base/dialog/Dialog.js +56 -0
  26. package/base/dialog/SimpleDialog.js +33 -0
  27. package/{dist → base}/error/Error.js +1 -2
  28. package/base/frame/AppBar.js +54 -0
  29. package/base/frame/Brand.js +36 -0
  30. package/base/frame/Frame.js +49 -0
  31. package/{dist → base/frame}/sidebar/MenuToggler.js +14 -3
  32. package/{dist → base/frame}/sidebar/PrimaryMenu.js +15 -20
  33. package/base/frame/sidebar/SecondaryMenu.js +41 -0
  34. package/{dist → base/frame}/sidebar/Sidebar.js +21 -10
  35. package/base/frame/sidebar/SidebarContext.js +74 -0
  36. package/base/frame/sidebar/css/primary.module.css +69 -0
  37. package/base/frame/sidebar/css/sidebar.module.css +63 -0
  38. package/base/index.js +53 -0
  39. package/{dist → base}/samples/menu.sample.json +2 -2
  40. package/base/styles/borderRadius.js +7 -0
  41. package/base/styles/button.js +199 -0
  42. package/base/styles/createTheme.js +90 -0
  43. package/base/styles/globalStyles.js +47 -0
  44. package/base/styles/mui/alert.js +40 -0
  45. package/base/styles/mui/appBar.js +17 -0
  46. package/base/styles/mui/autocomplete.js +46 -0
  47. package/base/styles/mui/avatar.js +14 -0
  48. package/base/styles/mui/button.js +276 -0
  49. package/base/styles/mui/buttonBase.js +10 -0
  50. package/base/styles/mui/checkbox.js +37 -0
  51. package/base/styles/mui/chip.js +83 -0
  52. package/base/styles/mui/cssBaseline.js +12 -0
  53. package/base/styles/mui/dataGrid.js +101 -0
  54. package/base/styles/mui/dialog.js +13 -0
  55. package/base/styles/mui/dialogActions.js +8 -0
  56. package/base/styles/mui/dialogContent.js +10 -0
  57. package/base/styles/mui/dialogTitle.js +11 -0
  58. package/base/styles/mui/formControl.js +8 -0
  59. package/base/styles/mui/formControlLabel.js +9 -0
  60. package/base/styles/mui/formHelperText.js +10 -0
  61. package/base/styles/mui/grid.js +15 -0
  62. package/base/styles/mui/icon.js +12 -0
  63. package/base/styles/mui/iconButton.js +79 -0
  64. package/base/styles/mui/inputLabel.js +13 -0
  65. package/base/styles/mui/list.js +11 -0
  66. package/base/styles/mui/menuItem.js +83 -0
  67. package/base/styles/mui/outlinedInput.js +53 -0
  68. package/base/styles/mui/paginationItem.js +25 -0
  69. package/base/styles/mui/paper.js +8 -0
  70. package/base/styles/mui/popover.js +11 -0
  71. package/base/styles/mui/select.js +11 -0
  72. package/base/styles/mui/slider.js +15 -0
  73. package/base/styles/mui/snackbar.js +24 -0
  74. package/base/styles/mui/switch.js +33 -0
  75. package/base/styles/mui/tab.js +23 -0
  76. package/base/styles/mui/tablePagination.js +8 -0
  77. package/base/styles/mui/tabs.js +20 -0
  78. package/base/styles/mui/textField.js +11 -0
  79. package/base/styles/mui/toggleButton.js +96 -0
  80. package/base/styles/mui/tooltip.js +22 -0
  81. package/base/styles/palette.js +40 -0
  82. package/base/styles/shadow.js +8 -0
  83. package/base/styles/typography.js +131 -0
  84. package/package.json +6 -5
  85. package/dist/AlertDialog.js +0 -55
  86. package/dist/AppBar.js +0 -68
  87. package/dist/Checkbox.js +0 -27
  88. package/dist/ColumnedSection.js +0 -64
  89. package/dist/ConfirmDialog.js +0 -65
  90. package/dist/DataGrid.js +0 -150
  91. package/dist/Dialog.js +0 -42
  92. package/dist/DropdownButton.js +0 -59
  93. package/dist/Frame.js +0 -47
  94. package/dist/MainHeader.js +0 -59
  95. package/dist/PropertyTable.js +0 -141
  96. package/dist/SearchTextField.js +0 -24
  97. package/dist/SearchableSelect.js +0 -41
  98. package/dist/Select.js +0 -48
  99. package/dist/Snackbar.js +0 -51
  100. package/dist/Switch.js +0 -37
  101. package/dist/index.js +0 -44
  102. package/dist/samples/global.sample.css +0 -59
  103. package/dist/sidebar/MenuTree.js +0 -95
  104. package/dist/sidebar/MenuTreeGroup.js +0 -65
  105. package/dist/sidebar/SecondaryMenu.js +0 -36
  106. package/dist/sidebar/SidebarContext.js +0 -122
  107. package/dist/sidebar/css/primary.module.css +0 -80
  108. package/dist/sidebar/css/sidebar.module.css +0 -50
  109. package/dist/variables.js +0 -6
  110. /package/{dist → base}/colors/green.js +0 -0
  111. /package/{dist → base}/colors/grey.js +0 -0
  112. /package/{dist → base}/colors/index.js +0 -0
  113. /package/{dist → base}/colors/lime.js +0 -0
  114. /package/{dist → base}/colors/orange.js +0 -0
  115. /package/{dist → base}/colors/purple.js +0 -0
  116. /package/{dist → base}/colors/red.js +0 -0
  117. /package/{dist → base}/colors/yellow.js +0 -0
  118. /package/{dist → base/deprecated}/Accordion.js +0 -0
  119. /package/{dist → base/deprecated}/AccordionDetails.js +0 -0
  120. /package/{dist → base/deprecated}/AccordionSummary.js +0 -0
  121. /package/{dist → base/deprecated}/AppendableFormList.js +0 -0
  122. /package/{dist → base/deprecated}/AvatarDropdown.js +0 -0
  123. /package/{dist → base/deprecated}/Button.js +0 -0
  124. /package/{dist → base/deprecated}/CircularProgress.js +0 -0
  125. /package/{dist → base/deprecated}/FormLabel.js +0 -0
  126. /package/{dist → base/deprecated}/GroupSelect.js +0 -0
  127. /package/{dist → base/deprecated}/ListItem.js +0 -0
  128. /package/{dist → base/deprecated}/ListItemDivider.js +0 -0
  129. /package/{dist → base/deprecated}/ListItemGrid.js +0 -0
  130. /package/{dist → base/deprecated}/ListItemText.js +0 -0
  131. /package/{dist → base/deprecated}/ReferenceChipList.js +0 -0
  132. /package/{dist → base/deprecated}/Section.js +0 -0
  133. /package/{dist → base/deprecated}/ShadowedSection.js +0 -0
  134. /package/{dist → base/deprecated}/StatusChip.js +0 -0
  135. /package/{dist → base/deprecated}/TabbedSection.js +0 -0
  136. /package/{dist → base/deprecated}/Tabs.js +0 -0
  137. /package/{dist → base/deprecated}/TextField.js +0 -0
  138. /package/{dist → base}/editor/Editor.js +0 -0
  139. /package/{dist → base}/editor/nScript.js +0 -0
  140. /package/{dist → base}/editor/nScriptKeywords.js +0 -0
  141. /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,13 @@
1
+ import typography from "../typography";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ ...typography.bodyMdSemibold,
6
+ top: -17,
7
+ transform: 'none',
8
+ '&.MuiInputLabel-shrink': {
9
+ transform: 'none'
10
+ }
11
+ }
12
+ }
13
+ };
@@ -0,0 +1,11 @@
1
+ import typography from "../typography";
2
+ import { grey } from "../../colors";
3
+ export const styles = {
4
+ styleOverrides: {
5
+ root: {
6
+ fontFamily: typography.fontFamily,
7
+ ...typography.bodyMdMedium,
8
+ color: grey[800]
9
+ }
10
+ }
11
+ };
@@ -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,8 @@
1
+ import shadow from "../shadow";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ boxShadow: shadow[3]
6
+ }
7
+ }
8
+ };
@@ -0,0 +1,11 @@
1
+ import borderRadius from "../borderRadius";
2
+ import { grey } from "../../colors";
3
+ export const styles = {
4
+ styleOverrides: {
5
+ paper: {
6
+ border: `1px solid ${grey[300]}`,
7
+ borderRadius: borderRadius[3],
8
+ marginTop: 3
9
+ }
10
+ }
11
+ };
@@ -0,0 +1,11 @@
1
+ import { grey } from "../../colors";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ icon: {
5
+ color: grey[600],
6
+ '&.Mui-disabled': {
7
+ color: grey[400]
8
+ }
9
+ }
10
+ }
11
+ };
@@ -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,8 @@
1
+ import { grey } from "../../colors";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ selectLabel: {
5
+ color: grey[700]
6
+ }
7
+ }
8
+ };
@@ -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,11 @@
1
+ export const styles = {
2
+ styleOverrides: {
3
+ root: ({
4
+ ownerState
5
+ }) => {
6
+ return ownerState.label && {
7
+ marginTop: 17
8
+ };
9
+ }
10
+ }
11
+ };
@@ -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;