@nethru/ui 1.0.82 → 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.
Files changed (140) 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 +33 -0
  39. package/{dist → base}/samples/menu.sample.json +2 -2
  40. package/base/styles/borderRadius.js +7 -0
  41. package/base/styles/createTheme.js +90 -0
  42. package/base/styles/globalStyles.js +47 -0
  43. package/base/styles/mui/alert.js +40 -0
  44. package/base/styles/mui/appBar.js +17 -0
  45. package/base/styles/mui/autocomplete.js +46 -0
  46. package/base/styles/mui/avatar.js +14 -0
  47. package/base/styles/mui/button.js +276 -0
  48. package/base/styles/mui/buttonBase.js +10 -0
  49. package/base/styles/mui/checkbox.js +37 -0
  50. package/base/styles/mui/chip.js +83 -0
  51. package/base/styles/mui/cssBaseline.js +12 -0
  52. package/base/styles/mui/dataGrid.js +101 -0
  53. package/base/styles/mui/dialog.js +13 -0
  54. package/base/styles/mui/dialogActions.js +8 -0
  55. package/base/styles/mui/dialogContent.js +10 -0
  56. package/base/styles/mui/dialogTitle.js +11 -0
  57. package/base/styles/mui/formControl.js +8 -0
  58. package/base/styles/mui/formControlLabel.js +9 -0
  59. package/base/styles/mui/formHelperText.js +10 -0
  60. package/base/styles/mui/grid.js +15 -0
  61. package/base/styles/mui/icon.js +12 -0
  62. package/base/styles/mui/iconButton.js +79 -0
  63. package/base/styles/mui/inputLabel.js +13 -0
  64. package/base/styles/mui/list.js +11 -0
  65. package/base/styles/mui/menuItem.js +83 -0
  66. package/base/styles/mui/outlinedInput.js +53 -0
  67. package/base/styles/mui/paginationItem.js +25 -0
  68. package/base/styles/mui/paper.js +8 -0
  69. package/base/styles/mui/popover.js +11 -0
  70. package/base/styles/mui/select.js +11 -0
  71. package/base/styles/mui/slider.js +15 -0
  72. package/base/styles/mui/snackbar.js +24 -0
  73. package/base/styles/mui/switch.js +33 -0
  74. package/base/styles/mui/tab.js +23 -0
  75. package/base/styles/mui/tablePagination.js +8 -0
  76. package/base/styles/mui/tabs.js +20 -0
  77. package/base/styles/mui/textField.js +11 -0
  78. package/base/styles/mui/toggleButton.js +96 -0
  79. package/base/styles/mui/tooltip.js +22 -0
  80. package/base/styles/palette.js +40 -0
  81. package/base/styles/shadow.js +8 -0
  82. package/base/styles/typography.js +131 -0
  83. package/package.json +6 -5
  84. package/dist/Accordion.js +0 -45
  85. package/dist/AccordionDetails.js +0 -19
  86. package/dist/AccordionSummary.js +0 -35
  87. package/dist/AlertDialog.js +0 -55
  88. package/dist/AppBar.js +0 -68
  89. package/dist/AppendableFormList.js +0 -56
  90. package/dist/AvatarDropdown.js +0 -80
  91. package/dist/Button.js +0 -61
  92. package/dist/Checkbox.js +0 -27
  93. package/dist/CircularProgress.js +0 -33
  94. package/dist/ColumnedSection.js +0 -64
  95. package/dist/ConfirmDialog.js +0 -65
  96. package/dist/DataGrid.js +0 -150
  97. package/dist/Dialog.js +0 -42
  98. package/dist/DropdownButton.js +0 -59
  99. package/dist/FormLabel.js +0 -23
  100. package/dist/Frame.js +0 -47
  101. package/dist/GroupSelect.js +0 -67
  102. package/dist/ListItem.js +0 -21
  103. package/dist/ListItemDivider.js +0 -15
  104. package/dist/ListItemGrid.js +0 -12
  105. package/dist/ListItemText.js +0 -44
  106. package/dist/MainHeader.js +0 -59
  107. package/dist/PropertyTable.js +0 -141
  108. package/dist/ReferenceChipList.js +0 -59
  109. package/dist/SearchTextField.js +0 -24
  110. package/dist/SearchableSelect.js +0 -41
  111. package/dist/Section.js +0 -22
  112. package/dist/Select.js +0 -48
  113. package/dist/ShadowedSection.js +0 -36
  114. package/dist/Snackbar.js +0 -51
  115. package/dist/StatusChip.js +0 -34
  116. package/dist/Switch.js +0 -37
  117. package/dist/TabbedSection.js +0 -37
  118. package/dist/Tabs.js +0 -38
  119. package/dist/TextField.js +0 -25
  120. package/dist/index.js +0 -44
  121. package/dist/samples/global.sample.css +0 -59
  122. package/dist/sidebar/MenuTree.js +0 -95
  123. package/dist/sidebar/MenuTreeGroup.js +0 -65
  124. package/dist/sidebar/SecondaryMenu.js +0 -36
  125. package/dist/sidebar/SidebarContext.js +0 -122
  126. package/dist/sidebar/css/primary.module.css +0 -80
  127. package/dist/sidebar/css/sidebar.module.css +0 -50
  128. package/dist/variables.js +0 -6
  129. /package/{dist → base}/colors/green.js +0 -0
  130. /package/{dist → base}/colors/grey.js +0 -0
  131. /package/{dist → base}/colors/index.js +0 -0
  132. /package/{dist → base}/colors/lime.js +0 -0
  133. /package/{dist → base}/colors/orange.js +0 -0
  134. /package/{dist → base}/colors/purple.js +0 -0
  135. /package/{dist → base}/colors/red.js +0 -0
  136. /package/{dist → base}/colors/yellow.js +0 -0
  137. /package/{dist → base}/editor/Editor.js +0 -0
  138. /package/{dist → base}/editor/nScript.js +0 -0
  139. /package/{dist → base}/editor/nScriptKeywords.js +0 -0
  140. /package/{dist → base}/error/HttpError.js +0 -0
@@ -0,0 +1,37 @@
1
+ import { grey } from "../../colors";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: ({
5
+ ownerState,
6
+ theme
7
+ }) => ({
8
+ ':hover, &.Mui-focusVisible': {
9
+ backgroundColor: grey[10]
10
+ },
11
+ '&:active': {
12
+ backgroundColor: grey[20]
13
+ },
14
+ '& svg': {
15
+ fill: fillColor(ownerState, theme),
16
+ width: 20,
17
+ height: 20
18
+ }
19
+ }),
20
+ sizeLarge: {
21
+ width: 28,
22
+ height: 28
23
+ },
24
+ sizeMedium: {
25
+ width: 26,
26
+ height: 26
27
+ },
28
+ sizeSmall: {
29
+ width: 24,
30
+ height: 24
31
+ }
32
+ }
33
+ };
34
+ function fillColor(ownerState, theme) {
35
+ if (ownerState.disabled) return ownerState.checked ? grey[700] : grey[400];
36
+ // return ownerState.checked ? theme.palette.info.main : grey[700];
37
+ }
@@ -0,0 +1,83 @@
1
+ import { blue, green, grey, lime, orange } from "../../colors";
2
+ import typography from "../typography";
3
+ import { lighten } from "@mui/material/styles";
4
+ export const styles = {
5
+ defaultProps: {
6
+ size: 'small'
7
+ },
8
+ styleOverrides: {
9
+ root: ({
10
+ ownerState,
11
+ theme
12
+ }) => ({
13
+ fontFamily: typography.fontFamily,
14
+ fontSize: typography.bodySmMedium.fontSize,
15
+ fontWeight: typography.bodySmMedium.fontWeight,
16
+ letterSpacing: typography.bodySmMedium.letterSpacing,
17
+ color: textColor(ownerState, theme),
18
+ backgroundColor: backgroundColor(ownerState, theme),
19
+ borderColor: borderColor(ownerState, theme),
20
+ '&:hover, &.Mui-focusVisible': {
21
+ backgroundColor: hoverColor(ownerState, theme)
22
+ },
23
+ '&:active': {
24
+ backgroundColor: activeColor(ownerState, theme),
25
+ boxShadow: 'none'
26
+ }
27
+ }),
28
+ sizeMedium: undefined,
29
+ sizeSmall: {
30
+ height: 26
31
+ }
32
+ }
33
+ };
34
+ function textColor(ownerState, theme) {
35
+ switch (ownerState.color) {
36
+ case 'blue':
37
+ return theme.palette.blue.contrastText;
38
+ case 'green':
39
+ return theme.palette.green.contrastText;
40
+ case 'orange':
41
+ return theme.palette.orange.contrastText;
42
+ case 'lime':
43
+ return theme.palette.lime.contrastText;
44
+ default:
45
+ return grey[900];
46
+ }
47
+ }
48
+ function backgroundColor(ownerState, theme) {
49
+ if (ownerState.variant === 'outlined') return undefined;
50
+ switch (ownerState.color) {
51
+ case 'blue':
52
+ return blue[50];
53
+ case 'green':
54
+ return green[50];
55
+ case 'orange':
56
+ return orange[50];
57
+ case 'lime':
58
+ return lime[50];
59
+ default:
60
+ return grey[7];
61
+ }
62
+ }
63
+ function borderColor(ownerState, theme) {
64
+ if (ownerState.variant !== 'outlined') return undefined;
65
+ switch (ownerState.color) {
66
+ case 'blue':
67
+ return blue[500];
68
+ case 'green':
69
+ return green[500];
70
+ case 'orange':
71
+ return orange[500];
72
+ case 'lime':
73
+ return lime[500];
74
+ default:
75
+ return grey[300];
76
+ }
77
+ }
78
+ function hoverColor(ownerState, theme) {
79
+ return ownerState.clickable && lighten(textColor(ownerState, theme), 0.8);
80
+ }
81
+ function activeColor(ownerState, theme) {
82
+ return ownerState.clickable && lighten(textColor(ownerState, theme), 0.7);
83
+ }
@@ -0,0 +1,12 @@
1
+ export const styles = {
2
+ styleOverrides: {
3
+ '*': {
4
+ margin: 0,
5
+ padding: 0,
6
+ boxSizing: 'border-box'
7
+ },
8
+ body: {
9
+ height: '100%'
10
+ }
11
+ }
12
+ };
@@ -0,0 +1,101 @@
1
+ import typography from "../typography";
2
+ import { blue, grey } from "../../colors";
3
+ import borderRadius from "../borderRadius";
4
+ export const styles = {
5
+ styleOverrides: {
6
+ root: {
7
+ fontFamily: typography.fontFamily,
8
+ ...typography.bodyMdMedium,
9
+ border: 'none'
10
+ },
11
+ main: ({
12
+ ownerState
13
+ }) => ({
14
+ border: `1px solid ${ownerState?.error ? 'red' : grey[300]}`,
15
+ borderRadius: borderRadius[2]
16
+ }),
17
+ footerContainer: {
18
+ border: 'none',
19
+ '.MuiDataGrid-selectedRowCount': {
20
+ ...typography.bodySmMedium,
21
+ color: grey[700]
22
+ }
23
+ },
24
+ columnHeaders: {
25
+ minHeight: 'unset !important'
26
+ },
27
+ columnHeader: {
28
+ ...typography.bodySmBold,
29
+ color: grey[600],
30
+ backgroundColor: grey[50],
31
+ height: '35px !important',
32
+ '&:focus, &:focus-within': {
33
+ outline: 'none'
34
+ },
35
+ '.Mui-checked, .MuiCheckbox-indeterminate': {
36
+ color: blue[500]
37
+ }
38
+ },
39
+ iconButtonContainer: {
40
+ ...typography.bodySmRegular,
41
+ marginLeft: 2,
42
+ '.MuiIconButton-root': {
43
+ color: grey[600],
44
+ width: 16,
45
+ height: 16
46
+ },
47
+ '.MuiIconButton-root svg': {
48
+ width: 14,
49
+ height: 14
50
+ }
51
+ },
52
+ row: {
53
+ minHeight: 'unset !important',
54
+ '.MuiDataGrid-cell .MuiDataGrid-actions': {
55
+ display: 'none'
56
+ },
57
+ '&.Mui-hovered': {
58
+ backgroundColor: grey[5],
59
+ '.MuiDataGrid-cell .MuiDataGrid-actions': {
60
+ display: 'block'
61
+ }
62
+ },
63
+ '&.Mui-selected, &.Mui-selected.Mui-hovered': {
64
+ backgroundColor: blue[5]
65
+ }
66
+ },
67
+ rowReorderCell: {
68
+ color: grey[700]
69
+ },
70
+ cell: ({
71
+ ownerState
72
+ }) => ({
73
+ minHeight: '40px !important',
74
+ paddingTop: 10,
75
+ paddingBottom: 10,
76
+ '&.MuiTypography-bold': {
77
+ fontWeight: 'bold'
78
+ },
79
+ '&.MuiTypography-greyed': {
80
+ color: grey[600]
81
+ },
82
+ '&:focus, &:focus-within': {
83
+ outline: ownerState?.editable ? `solid ${blue[500]} 1px` : 'none'
84
+ },
85
+ '&.MuiDataGrid-cell--editing': {
86
+ boxShadow: 'none',
87
+ '&:focus, &:focus-within': {
88
+ outline: `solid ${blue[500]} 1px`
89
+ }
90
+ }
91
+ }),
92
+ cellCheckbox: {
93
+ '.Mui-checked': {
94
+ color: blue[500]
95
+ }
96
+ },
97
+ overlayWrapperInner: {
98
+ ...typography.bodySmRegular
99
+ }
100
+ }
101
+ };
@@ -0,0 +1,13 @@
1
+ import shadow from "../shadow";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ '.MuiModal-backdrop': {
6
+ backgroundColor: 'rgba(48, 50, 54, 0.6)'
7
+ }
8
+ },
9
+ paper: {
10
+ boxShadow: shadow[5]
11
+ }
12
+ }
13
+ };
@@ -0,0 +1,8 @@
1
+ export const styles = {
2
+ styleOverrides: {
3
+ root: {
4
+ justifyContent: 'center',
5
+ padding: '0px 24px 24px 24px'
6
+ }
7
+ }
8
+ };
@@ -0,0 +1,10 @@
1
+ import typography from "../typography";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ fontFamily: typography.fontFamily,
6
+ ...typography.bodyMdSemibold,
7
+ padding: 24
8
+ }
9
+ }
10
+ };
@@ -0,0 +1,11 @@
1
+ import typography from "../typography";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ fontFamily: typography.fontFamily,
6
+ ...typography.bodyXlSemibold,
7
+ marginBottom: -8,
8
+ padding: '24px 24px 0px 24px'
9
+ }
10
+ }
11
+ };
@@ -0,0 +1,8 @@
1
+ import typography from "../typography";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ fontFamily: typography.fontFamily
6
+ }
7
+ }
8
+ };
@@ -0,0 +1,9 @@
1
+ import typography from "../typography";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ fontFamily: typography.fontFamily,
6
+ ...typography.bodyMdMedium
7
+ }
8
+ }
9
+ };
@@ -0,0 +1,10 @@
1
+ import typography from "../typography";
2
+ export const styles = {
3
+ styleOverrides: {
4
+ root: {
5
+ fontSize: typography.bodyXsMedium.fontSize,
6
+ marginTop: 0,
7
+ marginLeft: 4
8
+ }
9
+ }
10
+ };
@@ -0,0 +1,15 @@
1
+ import { grey } from "../../colors";
2
+ import borderRadius from "../borderRadius";
3
+ export const styles = {
4
+ styleOverrides: {
5
+ item: {
6
+ '.MuiGrid-box': {
7
+ // height: 'calc(100% - 32px)',
8
+ backgroundColor: grey[50],
9
+ border: `1px solid ${grey[300]}`,
10
+ padding: '16px !important',
11
+ borderRadius: `${borderRadius[2]}px`
12
+ }
13
+ }
14
+ }
15
+ };
@@ -0,0 +1,12 @@
1
+ export const styles = {
2
+ styleOverrides: {
3
+ fontSizeLarge: {
4
+ width: 20,
5
+ height: 20
6
+ },
7
+ fontSizeSmall: {
8
+ width: 16,
9
+ height: 16
10
+ }
11
+ }
12
+ };
@@ -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
+ };