@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.
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/base/colors/blue.js +15 -0
  19. package/base/colors/blueGrey.js +6 -0
  20. package/base/colors/green.js +13 -0
  21. package/base/colors/grey.js +18 -0
  22. package/base/colors/index.js +9 -0
  23. package/base/colors/lime.js +13 -0
  24. package/base/colors/orange.js +13 -0
  25. package/base/colors/purple.js +13 -0
  26. package/base/colors/red.js +13 -0
  27. package/base/colors/yellow.js +13 -0
  28. package/base/datagrid/DataGrid.js +57 -0
  29. package/base/datagrid/Footer.js +51 -0
  30. package/base/datagrid/Pagination.js +24 -0
  31. package/base/dialog/AlertDialog.js +21 -0
  32. package/base/dialog/ConfirmDialog.js +29 -0
  33. package/base/dialog/Dialog.js +56 -0
  34. package/base/dialog/SimpleDialog.js +33 -0
  35. package/{dist → base}/error/Error.js +1 -2
  36. package/base/frame/AppBar.js +54 -0
  37. package/base/frame/Brand.js +36 -0
  38. package/base/frame/Frame.js +49 -0
  39. package/{dist → base/frame}/sidebar/MenuToggler.js +14 -3
  40. package/{dist → base/frame}/sidebar/PrimaryMenu.js +15 -20
  41. package/base/frame/sidebar/SecondaryMenu.js +41 -0
  42. package/{dist → base/frame}/sidebar/Sidebar.js +21 -10
  43. package/base/frame/sidebar/SidebarContext.js +74 -0
  44. package/base/frame/sidebar/css/primary.module.css +69 -0
  45. package/base/frame/sidebar/css/sidebar.module.css +63 -0
  46. package/base/index.js +33 -0
  47. package/{dist → base}/samples/menu.sample.json +2 -2
  48. package/base/styles/borderRadius.js +7 -0
  49. package/base/styles/createTheme.js +90 -0
  50. package/base/styles/globalStyles.js +47 -0
  51. package/base/styles/mui/alert.js +40 -0
  52. package/base/styles/mui/appBar.js +17 -0
  53. package/base/styles/mui/autocomplete.js +46 -0
  54. package/base/styles/mui/avatar.js +14 -0
  55. package/base/styles/mui/button.js +276 -0
  56. package/base/styles/mui/buttonBase.js +10 -0
  57. package/base/styles/mui/checkbox.js +37 -0
  58. package/base/styles/mui/chip.js +83 -0
  59. package/base/styles/mui/cssBaseline.js +12 -0
  60. package/base/styles/mui/dataGrid.js +101 -0
  61. package/base/styles/mui/dialog.js +13 -0
  62. package/base/styles/mui/dialogActions.js +8 -0
  63. package/base/styles/mui/dialogContent.js +10 -0
  64. package/base/styles/mui/dialogTitle.js +11 -0
  65. package/base/styles/mui/formControl.js +8 -0
  66. package/base/styles/mui/formControlLabel.js +9 -0
  67. package/base/styles/mui/formHelperText.js +10 -0
  68. package/base/styles/mui/grid.js +15 -0
  69. package/base/styles/mui/icon.js +12 -0
  70. package/base/styles/mui/iconButton.js +79 -0
  71. package/base/styles/mui/inputLabel.js +13 -0
  72. package/base/styles/mui/list.js +11 -0
  73. package/base/styles/mui/menuItem.js +83 -0
  74. package/base/styles/mui/outlinedInput.js +53 -0
  75. package/base/styles/mui/paginationItem.js +25 -0
  76. package/base/styles/mui/paper.js +8 -0
  77. package/base/styles/mui/popover.js +11 -0
  78. package/base/styles/mui/select.js +11 -0
  79. package/base/styles/mui/slider.js +15 -0
  80. package/base/styles/mui/snackbar.js +24 -0
  81. package/base/styles/mui/switch.js +33 -0
  82. package/base/styles/mui/tab.js +23 -0
  83. package/base/styles/mui/tablePagination.js +8 -0
  84. package/base/styles/mui/tabs.js +20 -0
  85. package/base/styles/mui/textField.js +11 -0
  86. package/base/styles/mui/toggleButton.js +96 -0
  87. package/base/styles/mui/tooltip.js +22 -0
  88. package/base/styles/palette.js +40 -0
  89. package/base/styles/shadow.js +8 -0
  90. package/base/styles/typography.js +131 -0
  91. package/package.json +14 -10
  92. package/dist/Accordion.js +0 -45
  93. package/dist/AccordionDetails.js +0 -19
  94. package/dist/AccordionSummary.js +0 -35
  95. package/dist/AlertDialog.js +0 -55
  96. package/dist/AppBar.js +0 -68
  97. package/dist/AppendableFormList.js +0 -56
  98. package/dist/AvatarDropdown.js +0 -80
  99. package/dist/Button.js +0 -61
  100. package/dist/Checkbox.js +0 -27
  101. package/dist/CircularProgress.js +0 -33
  102. package/dist/ColumnedSection.js +0 -64
  103. package/dist/ConfirmDialog.js +0 -65
  104. package/dist/DataGrid.js +0 -150
  105. package/dist/Dialog.js +0 -42
  106. package/dist/DropdownButton.js +0 -59
  107. package/dist/FormLabel.js +0 -23
  108. package/dist/Frame.js +0 -47
  109. package/dist/GroupSelect.js +0 -67
  110. package/dist/ListItem.js +0 -21
  111. package/dist/ListItemDivider.js +0 -15
  112. package/dist/ListItemGrid.js +0 -12
  113. package/dist/ListItemText.js +0 -44
  114. package/dist/MainHeader.js +0 -59
  115. package/dist/PropertyTable.js +0 -141
  116. package/dist/ReferenceChipList.js +0 -59
  117. package/dist/SearchTextField.js +0 -24
  118. package/dist/SearchableSelect.js +0 -41
  119. package/dist/Section.js +0 -22
  120. package/dist/Select.js +0 -48
  121. package/dist/ShadowedSection.js +0 -36
  122. package/dist/Snackbar.js +0 -51
  123. package/dist/StatusChip.js +0 -34
  124. package/dist/Switch.js +0 -37
  125. package/dist/TabbedSection.js +0 -37
  126. package/dist/Tabs.js +0 -38
  127. package/dist/TextField.js +0 -25
  128. package/dist/index.js +0 -42
  129. package/dist/samples/global.sample.css +0 -59
  130. package/dist/sidebar/MenuTree.js +0 -95
  131. package/dist/sidebar/MenuTreeGroup.js +0 -65
  132. package/dist/sidebar/SecondaryMenu.js +0 -36
  133. package/dist/sidebar/SidebarContext.js +0 -122
  134. package/dist/sidebar/css/primary.module.css +0 -80
  135. package/dist/sidebar/css/sidebar.module.css +0 -50
  136. package/dist/variables.js +0 -6
  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,74 @@
1
+ import { createContext, useContext, useReducer } from "react";
2
+ import { produce } from "immer";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ const SidebarContext = /*#__PURE__*/createContext();
5
+ export function SidebarContextProvider({
6
+ menu,
7
+ icons,
8
+ children
9
+ }) {
10
+ const [states, dispatch] = useReducer(reducer, initialStates);
11
+ return /*#__PURE__*/_jsx(SidebarContext.Provider, {
12
+ value: {
13
+ menu,
14
+ icons,
15
+ states,
16
+ dispatch
17
+ },
18
+ children: children
19
+ });
20
+ }
21
+ export function useSidebarContext() {
22
+ return useContext(SidebarContext);
23
+ }
24
+ function reducer(states, action) {
25
+ const {
26
+ type
27
+ } = action;
28
+ switch (type) {
29
+ case 'secondaryMenuToggled':
30
+ return produce(states, draft => {
31
+ draft.menuClosed = !states.menuClosed;
32
+ });
33
+ case 'updateActiveItems':
34
+ return produce(states, draft => {
35
+ updateActiveItems(draft, action.menu, action.href);
36
+ });
37
+ default:
38
+ throw new Error(`Undefined Sidebar Action Type: ${JSON.stringify(action)}`);
39
+ }
40
+ }
41
+ const initialStates = {
42
+ activePrimaryItem: undefined,
43
+ activeSecondaryItem: undefined,
44
+ menuClosed: false
45
+ };
46
+ function updateActiveItems(draft, menu, href) {
47
+ draft.activePrimaryItem = undefined;
48
+ draft.activeSecondaryItem = undefined;
49
+ for (let item of menu) {
50
+ if (item.href === href) {
51
+ draft.activePrimaryItem = item.id;
52
+ return;
53
+ }
54
+ if (updateActiveMenuItem(item.sections)) {
55
+ draft.activePrimaryItem = item.id;
56
+ return;
57
+ }
58
+ }
59
+ function updateActiveMenuItem(sections) {
60
+ if (!sections) return;
61
+ for (let section of sections) {
62
+ for (let item of section.menu) {
63
+ if (startsWith(item.href)) {
64
+ draft.activeSecondaryItem = item.id;
65
+ return true;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ function startsWith(hrefs) {
71
+ const menuHrefs = hrefs instanceof Array ? hrefs : [hrefs];
72
+ return menuHrefs.some(menuHref => href.startsWith(menuHref));
73
+ }
74
+ }
@@ -0,0 +1,69 @@
1
+ .container {
2
+ position: fixed;
3
+ display: flex;
4
+ flex-direction: column;
5
+ width: calc(var(--primary-menu-width) + 10px);
6
+ padding-right: 10px;
7
+ height: 100%;
8
+ background-color: var(--frame-background-color);
9
+ }
10
+ .container a {
11
+ text-decoration: none;
12
+ cursor: pointer;
13
+ }
14
+ .container a:first-child {
15
+ padding-top: 10px;
16
+ }
17
+ .container a:last-child {
18
+ padding-bottom: 10px;
19
+ }
20
+
21
+ .nav-item {
22
+ display: flex;
23
+ flex-direction: column;
24
+ height: 50px;
25
+ align-items: center;
26
+ color: #656565;
27
+ cursor: pointer;
28
+ }
29
+ .nav-item .icon {
30
+ display: flex;
31
+ justify-content: center;
32
+ align-items: center;
33
+ width: 36px;
34
+ height: 36px;
35
+ border-radius: 6px;
36
+ }
37
+ .nav-item:hover .icon {
38
+ background-color: rgba(51,51,51,0.05);
39
+ }
40
+ .nav-item.active .icon {
41
+ color: #333;
42
+ background-color: rgba(51,51,51,0.1);
43
+ }
44
+ .nav-item.active .text {
45
+ font-weight: 600;
46
+ }
47
+ .container:hover .nav-item.active {
48
+ /*border-radius: 0 48px 48px 0;*/
49
+ /*background-color: #0d6efd !important;*/
50
+ }
51
+
52
+
53
+ .icon {
54
+ margin: 4px 15px 0px 16px;
55
+ }
56
+ .icon > svg {
57
+ width: 24px;
58
+ height: 24px;
59
+ }
60
+
61
+ .text {
62
+ color: #333;
63
+ font-size: 10px;
64
+ font-weight: 500;
65
+ line-height: 1.4;
66
+ letter-spacing: 0;
67
+ white-space: nowrap;
68
+ overflow-x: hidden;
69
+ }
@@ -0,0 +1,63 @@
1
+ .container {
2
+ display: flex;
3
+ position: relative;
4
+ background-color: var(--frame-background-color);
5
+ transition: width .2s;
6
+ }
7
+ .container.opened {
8
+ width: calc(var(--primary-menu-width) + var(--secondary-menu-width));
9
+ }
10
+ .container.closed {
11
+ width: calc(var(--primary-menu-width) + var(--secondary-menu-collapsed-width));
12
+ }
13
+
14
+
15
+ .secondary {
16
+ position: fixed;
17
+ left: var(--primary-menu-width);
18
+ height: 100%;
19
+ z-index: var(--secondary-menu-zindex);
20
+ white-space: nowrap;
21
+ overflow-x: hidden;
22
+ border-radius: 8px 0px 0px 0px;
23
+ box-shadow: -10px 1px 8px -10px #65656533, 0px -10px 8px -10px #65656533;
24
+ background-color: #fff;
25
+ border-right: 1px solid #e0e0e0;
26
+ padding: 8px 16px;
27
+ }
28
+ .secondary.opened {
29
+ width: var(--secondary-menu-width);
30
+ }
31
+ .secondary.opened:hover {
32
+ /*background-color: red;*/
33
+ }
34
+ .secondary.closed {
35
+ width: var(--secondary-menu-collapsed-width);
36
+ overflow: hidden;
37
+ }
38
+
39
+ .toggler {
40
+ position: fixed;
41
+ top: calc(var(--gnb-height) + 28px);
42
+ width: 32px;
43
+ height: 32px;
44
+ background-color: var(--gnb-background-color);
45
+ border: 1px solid #b9b9b9;
46
+ border-radius: 50%;
47
+ box-shadow: 0px 3px 4px -1px #65656514, 0px 5px 10px 0px #65656529;
48
+ z-index: var(--secondary-menu-toggler-zindex);
49
+ cursor: pointer;
50
+ opacity: 0;
51
+ transition: opacity .2s;
52
+ }
53
+ .toggler.opened {
54
+ left: calc(var(--primary-menu-width) + var(--secondary-menu-width) - 16px);
55
+ }
56
+ .toggler.closed {
57
+ opacity: 1;
58
+ left: calc(var(--primary-menu-width) + var(--secondary-menu-collapsed-width) - 16px);
59
+ }
60
+
61
+ .secondary:hover + .toggler, .toggler:hover {
62
+ opacity: 1;
63
+ }
package/base/index.js ADDED
@@ -0,0 +1,33 @@
1
+ import * as colors from './colors';
2
+ import borderRadius from './styles/borderRadius';
3
+ import shadow from './styles/shadow';
4
+ import globalStyles from './styles/globalStyles';
5
+ import createTheme from './styles/createTheme';
6
+ export { colors };
7
+ export { borderRadius, shadow, globalStyles, createTheme };
8
+ export { default as AddableFormList } from "./AddableFormList";
9
+ export { default as AlertDialog } from "./dialog/AlertDialog";
10
+ export { default as AppBar } from "./frame/AppBar";
11
+ export { default as Brand } from "./frame/Brand";
12
+ export { default as CircularProgressButton } from "./CircularProgressButton";
13
+ export { default as Checkbox } from "./Checkbox";
14
+ export { default as ColumnedSection } from "./ColumnedSection";
15
+ export { default as ConfirmDialog } from "./dialog/ConfirmDialog";
16
+ export { default as DataGrid } from "./datagrid/DataGrid";
17
+ export { default as Dialog } from "./dialog/Dialog";
18
+ export { default as DropdownButton } from "./DropdownButton";
19
+ export { default as Editor } from "./editor/Editor";
20
+ export { default as Frame } from "./frame/Frame";
21
+ export { default as MainHeader } from "./MainHeader";
22
+ export { default as MenuItem } from "./MenuItem";
23
+ export { default as PropertyTable } from "./PropertyTable";
24
+ export { default as SearchableSelect } from "./SearchableSelect";
25
+ export { default as SearchTextField } from "./SearchTextField";
26
+ export { default as Sidebar } from "./frame/sidebar/Sidebar";
27
+ export { default as Select } from "./Select";
28
+ export { default as Slider } from "./Slider";
29
+ export { default as Snackbar } from "./Snackbar";
30
+ export { default as Switch } from "./Switch";
31
+ export * from './frame/sidebar/SidebarContext';
32
+ export { default as Error } from "./error/Error";
33
+ export { default as HttpError } from "./error/HttpError";
@@ -11,7 +11,7 @@
11
11
  {
12
12
  "id": "011",
13
13
  "name": "대시보드",
14
- "href": "/report/dashboard",
14
+ "href": "/monitor/dashboard",
15
15
  "submenu": []
16
16
  }
17
17
  ]
@@ -115,7 +115,7 @@
115
115
  {
116
116
  "id": "221",
117
117
  "name": "관리",
118
- "href": "/task/collect",
118
+ "href": "/task/collect/setting",
119
119
  "container": false,
120
120
  "submenu": []
121
121
  },
@@ -0,0 +1,7 @@
1
+ const borderRadius = {
2
+ 1: 4,
3
+ 2: 6,
4
+ 3: 8,
5
+ circle: '50%'
6
+ };
7
+ export default borderRadius;
@@ -0,0 +1,90 @@
1
+ import { createTheme as createMuiTheme } from "@mui/material";
2
+ import typography from "./typography";
3
+ import palette from "./palette";
4
+ import * as cssBaseline from "./mui/cssBaseline";
5
+ import * as buttonBase from "./mui/buttonBase";
6
+ import * as icon from "./mui/icon";
7
+ import * as button from "./mui/button";
8
+ import * as toggleButton from "./mui/toggleButton";
9
+ import * as iconButton from "./mui/iconButton";
10
+ import * as checkbox from "./mui/checkbox";
11
+ import * as switcher from "./mui/switch";
12
+ import * as select from "./mui/select";
13
+ import * as autocomplete from "./mui/autocomplete";
14
+ import * as textField from "./mui/textField";
15
+ import * as formControl from "./mui/formControl";
16
+ import * as outlinedInput from "./mui/outlinedInput";
17
+ import * as formHelperText from "./mui/formHelperText";
18
+ import * as inputLabel from "./mui/inputLabel";
19
+ import * as popover from "./mui/popover";
20
+ import * as paper from "./mui/paper";
21
+ import * as list from "./mui/list";
22
+ import * as menuItem from "./mui/menuItem";
23
+ import * as formControlLabel from "./mui/formControlLabel";
24
+ import * as chip from "./mui/chip";
25
+ import * as slider from "./mui/slider";
26
+ import * as tabs from "./mui/tabs";
27
+ import * as tab from "./mui/tab";
28
+ import * as dataGrid from "./mui/dataGrid";
29
+ import * as tablePagination from "./mui/tablePagination";
30
+ import * as paginationItem from "./mui/paginationItem";
31
+ import * as tooltip from "./mui/tooltip";
32
+ import * as snackbar from "./mui/snackbar";
33
+ import * as alert from "./mui/alert";
34
+ import * as dialog from "./mui/dialog";
35
+ import * as dialogTitle from "./mui/dialogTitle";
36
+ import * as dialogActions from "./mui/dialogActions";
37
+ import * as dialogContent from "./mui/dialogContent";
38
+ import * as grid from "./mui/grid";
39
+ import * as appBar from "./mui/appBar";
40
+ import * as avatar from "./mui/avatar";
41
+ export default function createTheme() {
42
+ let theme = createMuiTheme({
43
+ typography: typography,
44
+ palette: palette,
45
+ spacing: 4
46
+ });
47
+ theme = createMuiTheme(theme, {
48
+ components: {
49
+ MuiCssBaseline: cssBaseline.styles,
50
+ MuiButtonBase: buttonBase.styles,
51
+ MuiButton: button.styles,
52
+ MuiToggleButton: toggleButton.styles,
53
+ MuiIconButton: iconButton.styles,
54
+ MuiIcon: icon.styles,
55
+ MuiSvgIcon: icon.styles,
56
+ MuiCheckbox: checkbox.styles,
57
+ MuiSwitch: switcher.styles,
58
+ MuiSelect: select.styles,
59
+ MuiAutocomplete: autocomplete.styles,
60
+ MuiTextField: textField.styles,
61
+ MuiFormControl: formControl.styles,
62
+ MuiFormControlLabel: formControlLabel.styles,
63
+ MuiInputLabel: inputLabel.styles,
64
+ MuiOutlinedInput: outlinedInput.styles,
65
+ MuiFormHelperText: formHelperText.styles,
66
+ MuiPopover: popover.styles,
67
+ MuiPaper: paper.styles,
68
+ MuiList: list.styles,
69
+ MuiMenuItem: menuItem.styles,
70
+ MuiChip: chip.styles,
71
+ MuiSlider: slider.styles,
72
+ MuiTabs: tabs.styles,
73
+ MuiTab: tab.styles,
74
+ MuiDataGrid: dataGrid.styles,
75
+ MuiTablePagination: tablePagination.styles,
76
+ MuiPaginationItem: paginationItem.styles,
77
+ MuiTooltip: tooltip.styles,
78
+ MuiSnackbar: snackbar.styles,
79
+ MuiAlert: alert.styles,
80
+ MuiDialog: dialog.styles,
81
+ MuiDialogTitle: dialogTitle.styles,
82
+ MuiDialogActions: dialogActions.styles,
83
+ MuiDialogContent: dialogContent.styles,
84
+ MuiGrid: grid.styles,
85
+ MuiAppBar: appBar.styles,
86
+ MuiAvatar: avatar.styles
87
+ }
88
+ });
89
+ return theme;
90
+ }
@@ -0,0 +1,47 @@
1
+ import typography from "./typography";
2
+ import { blueGrey } from "../colors";
3
+ const globalStyles = {
4
+ ':root': {
5
+ '--body-background-color': blueGrey.contentBg,
6
+ '--frame-background-color': blueGrey.frameBg,
7
+ '--gnb-background-color': blueGrey.gnbBg,
8
+ '--gnb-height': '64px',
9
+ '--gnb-zindex': 1100,
10
+ '--primary-menu-width': '72px',
11
+ '--secondary-menu-width': '180px',
12
+ '--secondary-menu-collapsed-width': '30px',
13
+ '--secondary-menu-zindex': 1101,
14
+ '--secondary-menu-toggler-zindex': 1102
15
+ },
16
+ 'html, body': {
17
+ margin: 0,
18
+ height: '100%'
19
+ },
20
+ body: {
21
+ fontFamily: typography.fontFamily,
22
+ backgroundColor: blueGrey.contentBg
23
+ },
24
+ code: {
25
+ fontFamily: typography.fontFamily
26
+ },
27
+ '.cm-theme-light': {
28
+ fontFamily: "source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",
29
+ fontSize: '14px'
30
+ },
31
+ '.cm-editor, .cm-editor.cm-focused': {
32
+ outline: '1px solid #eaeaea'
33
+ },
34
+ '.cm-editor .cm-content.cm-lineWrapping': {
35
+ wordBreak: 'break-all'
36
+ },
37
+ '.highcharts-tooltip-box': {
38
+ fillOpacity: 0
39
+ },
40
+ '.highcharts-tooltip > span': {
41
+ background: '#fff',
42
+ border: '1px solid #ccc',
43
+ borderRadius: '3px',
44
+ padding: '8px'
45
+ }
46
+ };
47
+ export default globalStyles;
@@ -0,0 +1,40 @@
1
+ import typography from "../typography";
2
+ import { blue, green, red, yellow } from "../../colors";
3
+ export const styles = {
4
+ defaultProps: {
5
+ severity: 'info'
6
+ },
7
+ styleOverrides: {
8
+ root: ({
9
+ ownerState
10
+ }) => ({
11
+ fontFamily: typography.fontFamily,
12
+ ...typography.bodyLgSemibold,
13
+ lineHeight: 1.2,
14
+ // ...typography.bodyXlSemibold,
15
+ padding: '0px 16px 0px 8px',
16
+ boxShadow: 'none',
17
+ backgroundColor: backgroundColor(ownerState),
18
+ '.MuiAlert-icon': {
19
+ marginRight: 8
20
+ },
21
+ '.MuiAlert-subcontent': {
22
+ ...typography.bodySmMedium,
23
+ marginTop: 4
24
+ }
25
+ })
26
+ }
27
+ };
28
+ function backgroundColor(ownerState) {
29
+ switch (ownerState.severity) {
30
+ case 'success':
31
+ return green[50];
32
+ case 'warning':
33
+ return yellow[50];
34
+ case 'error':
35
+ return red[50];
36
+ case 'info':
37
+ default:
38
+ return blue[50];
39
+ }
40
+ }
@@ -0,0 +1,17 @@
1
+ import typography from "../typography";
2
+ import { blueGrey } from "../../colors";
3
+ export const styles = {
4
+ styleOverrides: {
5
+ root: {
6
+ fontFamily: typography.fontFamily,
7
+ backgroundColor: blueGrey.frameBg,
8
+ boxShadow: 'none',
9
+ '&.MuiAppBar-preview': {
10
+ backgroundColor: '#d5f5f8'
11
+ },
12
+ '.MuiToolbar-root': {
13
+ paddingLeft: 18
14
+ }
15
+ }
16
+ }
17
+ };
@@ -0,0 +1,46 @@
1
+ import { grey, red } from "../../colors";
2
+ import typography from "../typography";
3
+ import borderRadius from "../borderRadius";
4
+ export const styles = {
5
+ styleOverrides: {
6
+ root: {
7
+ '&.Mui-error .MuiOutlinedInput-notchedOutline': {
8
+ borderColor: red[500]
9
+ },
10
+ '&.Mui-error:hover .MuiOutlinedInput-notchedOutline': {
11
+ borderColor: red[500]
12
+ },
13
+ '&.Mui-error.Mui-focused .MuiOutlinedInput-notchedOutline': {
14
+ borderColor: red[500]
15
+ }
16
+ },
17
+ groupLabel: {
18
+ ...typography.bodySmSemibold,
19
+ color: grey[900]
20
+ },
21
+ option: {
22
+ fontFamily: typography.fontFamily,
23
+ ...typography.bodyMdMedium,
24
+ color: grey[800]
25
+ },
26
+ noOptions: {
27
+ fontFamily: typography.fontFamily,
28
+ ...typography.bodySmRegular
29
+ },
30
+ clearIndicator: {
31
+ '&:hover': {
32
+ background: 'none'
33
+ }
34
+ },
35
+ popupIndicator: {
36
+ '&:hover': {
37
+ background: 'none'
38
+ }
39
+ },
40
+ paper: {
41
+ border: `1px solid ${grey[300]}`,
42
+ borderRadius: borderRadius[3],
43
+ marginTop: 3
44
+ }
45
+ }
46
+ };
@@ -0,0 +1,14 @@
1
+ import typography from "../typography";
2
+ import { grey } from "../../colors";
3
+ export const styles = {
4
+ styleOverrides: {
5
+ root: {
6
+ fontFamily: typography.fontFamily,
7
+ ...typography.bodySmMedium,
8
+ color: '#fff',
9
+ backgroundColor: grey[900],
10
+ width: 24,
11
+ height: 24
12
+ }
13
+ }
14
+ };