@nethru/ui 1.0.16 → 1.0.17
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/Accordion.js +5 -1
- package/dist/AccordionDetails.js +5 -1
- package/dist/AppBar.js +6 -2
- package/dist/Checkbox.js +2 -0
- package/dist/DataGrid.js +14 -4
- package/dist/Dialog.js +2 -0
- package/dist/FormLabel.js +5 -1
- package/dist/GroupSelect.js +4 -2
- package/dist/ListItemDivider.js +2 -0
- package/dist/SearchTextField.js +3 -1
- package/dist/Section.js +2 -0
- package/dist/Select.js +6 -2
- package/dist/Snackbar.js +5 -1
- package/dist/StatusChip.js +5 -1
- package/dist/Switch.js +2 -1
- package/dist/TextField.js +2 -0
- package/package.json +1 -1
package/dist/Accordion.js
CHANGED
package/dist/AccordionDetails.js
CHANGED
|
@@ -5,10 +5,14 @@ const styles = {
|
|
|
5
5
|
};
|
|
6
6
|
export default function AccordionDetails({
|
|
7
7
|
children,
|
|
8
|
+
sx,
|
|
8
9
|
...props
|
|
9
10
|
}) {
|
|
10
11
|
return /*#__PURE__*/_jsx(MuiAccordionDetails, {
|
|
11
|
-
sx:
|
|
12
|
+
sx: {
|
|
13
|
+
...sx,
|
|
14
|
+
...styles
|
|
15
|
+
},
|
|
12
16
|
...props,
|
|
13
17
|
children: children
|
|
14
18
|
});
|
package/dist/AppBar.js
CHANGED
|
@@ -7,7 +7,8 @@ export default function AppBar({
|
|
|
7
7
|
title,
|
|
8
8
|
logoUri,
|
|
9
9
|
onLogoClick,
|
|
10
|
-
children
|
|
10
|
+
children,
|
|
11
|
+
sx
|
|
11
12
|
}) {
|
|
12
13
|
const appbarStyles = {
|
|
13
14
|
boxShadow: 'none',
|
|
@@ -33,7 +34,10 @@ export default function AppBar({
|
|
|
33
34
|
};
|
|
34
35
|
return /*#__PURE__*/_jsx(MuiAppBar, {
|
|
35
36
|
color: "transparent",
|
|
36
|
-
sx:
|
|
37
|
+
sx: {
|
|
38
|
+
...sx,
|
|
39
|
+
...appbarStyles
|
|
40
|
+
},
|
|
37
41
|
children: /*#__PURE__*/_jsxs(Toolbar, {
|
|
38
42
|
children: [/*#__PURE__*/_jsxs(Stack, {
|
|
39
43
|
spacing: 1,
|
package/dist/Checkbox.js
CHANGED
|
@@ -3,6 +3,7 @@ import { FormControlLabel } from "@mui/material";
|
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
export default function Checkbox({
|
|
5
5
|
label,
|
|
6
|
+
sx,
|
|
6
7
|
...props
|
|
7
8
|
}) {
|
|
8
9
|
return /*#__PURE__*/_jsx(FormControlLabel, {
|
|
@@ -11,6 +12,7 @@ export default function Checkbox({
|
|
|
11
12
|
...props
|
|
12
13
|
}),
|
|
13
14
|
sx: {
|
|
15
|
+
...sx,
|
|
14
16
|
mr: 5
|
|
15
17
|
}
|
|
16
18
|
});
|
package/dist/DataGrid.js
CHANGED
|
@@ -54,7 +54,11 @@ export default function DataGrid({
|
|
|
54
54
|
customToolbar = /*#__PURE__*/_jsx(_Fragment, {}),
|
|
55
55
|
customGridCellMap = {},
|
|
56
56
|
slots = {},
|
|
57
|
+
slotProps,
|
|
58
|
+
initialState,
|
|
57
59
|
hideToolbar = false,
|
|
60
|
+
localText,
|
|
61
|
+
sx,
|
|
58
62
|
...props
|
|
59
63
|
}) {
|
|
60
64
|
const getTogglableColumns = columns => columns.filter(column => column.field !== 'id').map(column => column.field);
|
|
@@ -89,9 +93,9 @@ export default function DataGrid({
|
|
|
89
93
|
});
|
|
90
94
|
};
|
|
91
95
|
return /*#__PURE__*/_jsx(MuiDataGrid, {
|
|
92
|
-
autoHeight: true,
|
|
93
96
|
columns: columns,
|
|
94
97
|
rows: rows,
|
|
98
|
+
autoHeight: true,
|
|
95
99
|
disableColumnMenu: true,
|
|
96
100
|
disableRowSelectionOnClick: true,
|
|
97
101
|
getRowClassName: params => params.indexRelativeToCurrentPage % 2 === 0 ? '' : 'odd',
|
|
@@ -100,6 +104,7 @@ export default function DataGrid({
|
|
|
100
104
|
getRowHeight: () => 'auto',
|
|
101
105
|
localeText: {
|
|
102
106
|
...koKR.components.MuiDataGrid.defaultProps.localeText,
|
|
107
|
+
...localText,
|
|
103
108
|
noRowsLabel: '항목이 없습니다.'
|
|
104
109
|
},
|
|
105
110
|
slots: {
|
|
@@ -113,7 +118,8 @@ export default function DataGrid({
|
|
|
113
118
|
},
|
|
114
119
|
toolbar: {
|
|
115
120
|
showQuickFilter: true
|
|
116
|
-
}
|
|
121
|
+
},
|
|
122
|
+
...slotProps
|
|
117
123
|
},
|
|
118
124
|
initialState: {
|
|
119
125
|
filter: {
|
|
@@ -121,9 +127,13 @@ export default function DataGrid({
|
|
|
121
127
|
items: [],
|
|
122
128
|
quickFilterExcludeHiddenColumns: true
|
|
123
129
|
}
|
|
124
|
-
}
|
|
130
|
+
},
|
|
131
|
+
...initialState
|
|
132
|
+
},
|
|
133
|
+
sx: {
|
|
134
|
+
...sx,
|
|
135
|
+
...styles
|
|
125
136
|
},
|
|
126
|
-
sx: styles,
|
|
127
137
|
...props
|
|
128
138
|
});
|
|
129
139
|
}
|
package/dist/Dialog.js
CHANGED
|
@@ -11,11 +11,13 @@ const Transition = /*#__PURE__*/forwardRef(function Transition(props, ref) {
|
|
|
11
11
|
export default function Dialog({
|
|
12
12
|
contentFontSize = 16,
|
|
13
13
|
children,
|
|
14
|
+
sx,
|
|
14
15
|
...props
|
|
15
16
|
}) {
|
|
16
17
|
return /*#__PURE__*/_jsx(MuiDialog, {
|
|
17
18
|
TransitionComponent: Transition,
|
|
18
19
|
sx: {
|
|
20
|
+
...sx,
|
|
19
21
|
'.MuiTypography-root.MuiDialogContentText-root': {
|
|
20
22
|
fontSize: contentFontSize
|
|
21
23
|
}
|
package/dist/FormLabel.js
CHANGED
|
@@ -4,6 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
export default function FormLabel({
|
|
5
5
|
value = false,
|
|
6
6
|
children,
|
|
7
|
+
sx,
|
|
7
8
|
...props
|
|
8
9
|
}) {
|
|
9
10
|
const styles = {
|
|
@@ -12,7 +13,10 @@ export default function FormLabel({
|
|
|
12
13
|
fontWeight: value ? 600 : 400
|
|
13
14
|
};
|
|
14
15
|
return /*#__PURE__*/_jsx(MuiFormLabel, {
|
|
15
|
-
sx:
|
|
16
|
+
sx: {
|
|
17
|
+
...sx,
|
|
18
|
+
...styles
|
|
19
|
+
},
|
|
16
20
|
...props,
|
|
17
21
|
children: children
|
|
18
22
|
});
|
package/dist/GroupSelect.js
CHANGED
|
@@ -13,7 +13,6 @@ export default function GroupSelect({
|
|
|
13
13
|
...props
|
|
14
14
|
}) {
|
|
15
15
|
const styles = {
|
|
16
|
-
...sx,
|
|
17
16
|
'.MuiInputLabel-root, .MuiInputBase-input': {
|
|
18
17
|
fontSize: '0.875rem'
|
|
19
18
|
}
|
|
@@ -59,7 +58,10 @@ export default function GroupSelect({
|
|
|
59
58
|
...params,
|
|
60
59
|
label: placeholder
|
|
61
60
|
}),
|
|
62
|
-
sx:
|
|
61
|
+
sx: {
|
|
62
|
+
...sx,
|
|
63
|
+
...styles
|
|
64
|
+
},
|
|
63
65
|
...props
|
|
64
66
|
});
|
|
65
67
|
}
|
package/dist/ListItemDivider.js
CHANGED
package/dist/SearchTextField.js
CHANGED
|
@@ -3,6 +3,7 @@ import SearchIcon from "@mui/icons-material/Search";
|
|
|
3
3
|
import TextField from "@mui/material/TextField";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export default function SearchTextField({
|
|
6
|
+
InputProps,
|
|
6
7
|
...props
|
|
7
8
|
}) {
|
|
8
9
|
return /*#__PURE__*/_jsx(TextField, {
|
|
@@ -15,7 +16,8 @@ export default function SearchTextField({
|
|
|
15
16
|
children: /*#__PURE__*/_jsx(SearchIcon, {
|
|
16
17
|
fontSize: "small"
|
|
17
18
|
})
|
|
18
|
-
})
|
|
19
|
+
}),
|
|
20
|
+
...InputProps
|
|
19
21
|
},
|
|
20
22
|
...props
|
|
21
23
|
});
|
package/dist/Section.js
CHANGED
|
@@ -2,12 +2,14 @@ import { Paper } from "@mui/material";
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
export default function Section({
|
|
4
4
|
children,
|
|
5
|
+
sx,
|
|
5
6
|
...props
|
|
6
7
|
}) {
|
|
7
8
|
return /*#__PURE__*/_jsx(Paper, {
|
|
8
9
|
variant: "outlined",
|
|
9
10
|
square: false,
|
|
10
11
|
sx: {
|
|
12
|
+
...sx,
|
|
11
13
|
padding: 3,
|
|
12
14
|
marginTop: '20px'
|
|
13
15
|
},
|
package/dist/Select.js
CHANGED
|
@@ -9,6 +9,8 @@ export default function Select({
|
|
|
9
9
|
name,
|
|
10
10
|
fontSize,
|
|
11
11
|
fullWidth = false,
|
|
12
|
+
inputProps,
|
|
13
|
+
MenuProps,
|
|
12
14
|
children,
|
|
13
15
|
...props
|
|
14
16
|
}) {
|
|
@@ -25,7 +27,8 @@ export default function Select({
|
|
|
25
27
|
children: label
|
|
26
28
|
}), /*#__PURE__*/_jsx(MuiSelect, {
|
|
27
29
|
inputProps: {
|
|
28
|
-
name: name
|
|
30
|
+
name: name,
|
|
31
|
+
...inputProps
|
|
29
32
|
},
|
|
30
33
|
MenuProps: {
|
|
31
34
|
PaperProps: {
|
|
@@ -34,7 +37,8 @@ export default function Select({
|
|
|
34
37
|
fontSize: fontSize ? fontSize : 15
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
|
-
}
|
|
40
|
+
},
|
|
41
|
+
...MenuProps
|
|
38
42
|
},
|
|
39
43
|
...props,
|
|
40
44
|
children: children
|
package/dist/Snackbar.js
CHANGED
|
@@ -13,6 +13,7 @@ export default function Snackbar({
|
|
|
13
13
|
horizontal: 'right'
|
|
14
14
|
},
|
|
15
15
|
children,
|
|
16
|
+
sx,
|
|
16
17
|
...props
|
|
17
18
|
}) {
|
|
18
19
|
const styles = {
|
|
@@ -24,7 +25,10 @@ export default function Snackbar({
|
|
|
24
25
|
autoHideDuration: autoHideDuration,
|
|
25
26
|
anchorOrigin: anchorOrigin,
|
|
26
27
|
TransitionComponent: transition,
|
|
27
|
-
|
|
28
|
+
sx: {
|
|
29
|
+
...sx,
|
|
30
|
+
...styles
|
|
31
|
+
},
|
|
28
32
|
...props,
|
|
29
33
|
children: /*#__PURE__*/_jsx(Alert, {
|
|
30
34
|
severity: severity,
|
package/dist/StatusChip.js
CHANGED
|
@@ -7,6 +7,7 @@ export default function StatusChip({
|
|
|
7
7
|
label,
|
|
8
8
|
status,
|
|
9
9
|
onOperate,
|
|
10
|
+
sx,
|
|
10
11
|
...props
|
|
11
12
|
}) {
|
|
12
13
|
const styles = {
|
|
@@ -24,7 +25,10 @@ export default function StatusChip({
|
|
|
24
25
|
color: status === 'normal' ? 'success' : 'default',
|
|
25
26
|
deleteIcon: status === 'normal' ? /*#__PURE__*/_jsx(CheckCircleIcon, {}) : /*#__PURE__*/_jsx(ErrorIcon, {}),
|
|
26
27
|
onDelete: _ => onOperate && onOperate(id, status),
|
|
27
|
-
sx:
|
|
28
|
+
sx: {
|
|
29
|
+
...sx,
|
|
30
|
+
...styles
|
|
31
|
+
},
|
|
28
32
|
...props
|
|
29
33
|
});
|
|
30
34
|
}
|
package/dist/Switch.js
CHANGED
|
@@ -5,6 +5,7 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
5
5
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
6
|
export default function Switch({
|
|
7
7
|
label,
|
|
8
|
+
labelPlacement = 'top',
|
|
8
9
|
...props
|
|
9
10
|
}) {
|
|
10
11
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
@@ -23,7 +24,7 @@ export default function Switch({
|
|
|
23
24
|
...props
|
|
24
25
|
}),
|
|
25
26
|
label: label,
|
|
26
|
-
labelPlacement:
|
|
27
|
+
labelPlacement: labelPlacement
|
|
27
28
|
})
|
|
28
29
|
}), !label && /*#__PURE__*/_jsx(MuiSwitch, {
|
|
29
30
|
...props
|
package/dist/TextField.js
CHANGED
|
@@ -5,6 +5,7 @@ export default function TextField2({
|
|
|
5
5
|
width,
|
|
6
6
|
fontSize,
|
|
7
7
|
textAlign,
|
|
8
|
+
inputProps,
|
|
8
9
|
...props
|
|
9
10
|
}) {
|
|
10
11
|
const styles = {
|
|
@@ -15,6 +16,7 @@ export default function TextField2({
|
|
|
15
16
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
16
17
|
children: /*#__PURE__*/_jsx(MuiTextField, {
|
|
17
18
|
inputProps: {
|
|
19
|
+
...inputProps,
|
|
18
20
|
style: styles
|
|
19
21
|
},
|
|
20
22
|
...props
|