@nethru/ui 1.0.51 → 1.0.52
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/Button.js +5 -2
- package/dist/DataGrid.js +2 -2
- package/dist/DropdownButton.js +8 -0
- package/package.json +1 -1
package/dist/Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import MuiButton from "@mui/material/Button";
|
|
3
|
-
import { Box } from "@mui/material";
|
|
3
|
+
import { Box, IconButton } from "@mui/material";
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
export default function Button({
|
|
6
6
|
label,
|
|
@@ -27,10 +27,13 @@ export default function Button({
|
|
|
27
27
|
const endIcon = useMemo(() => {
|
|
28
28
|
return iconPlacement === 'end' ? iconComponent : null;
|
|
29
29
|
}, [iconComponent, iconPlacement]);
|
|
30
|
-
return /*#__PURE__*/_jsx(MuiButton, {
|
|
30
|
+
return label ? /*#__PURE__*/_jsx(MuiButton, {
|
|
31
31
|
startIcon: startIcon,
|
|
32
32
|
endIcon: endIcon,
|
|
33
33
|
...props,
|
|
34
34
|
children: label
|
|
35
|
+
}) : /*#__PURE__*/_jsx(IconButton, {
|
|
36
|
+
...props,
|
|
37
|
+
children: iconComponent
|
|
35
38
|
});
|
|
36
39
|
}
|
package/dist/DataGrid.js
CHANGED
|
@@ -107,8 +107,8 @@ export default function DataGrid({
|
|
|
107
107
|
getRowHeight: () => 'auto',
|
|
108
108
|
localeText: {
|
|
109
109
|
...koKR.components.MuiDataGrid.defaultProps.localeText,
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
noRowsLabel: '항목이 없습니다.',
|
|
111
|
+
...localText
|
|
112
112
|
},
|
|
113
113
|
slots: {
|
|
114
114
|
toolbar: hideToolbar ? null : CustomToolbar,
|
package/dist/DropdownButton.js
CHANGED
|
@@ -6,6 +6,10 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
export default function DropdownButton({
|
|
8
8
|
label,
|
|
9
|
+
icon,
|
|
10
|
+
iconPlacement = 'start',
|
|
11
|
+
iconSize = '20px',
|
|
12
|
+
iconProps = {},
|
|
9
13
|
options = [],
|
|
10
14
|
onClick,
|
|
11
15
|
onSelect,
|
|
@@ -24,6 +28,10 @@ export default function DropdownButton({
|
|
|
24
28
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
25
29
|
children: [/*#__PURE__*/_jsx(Button, {
|
|
26
30
|
label: label,
|
|
31
|
+
icon: icon,
|
|
32
|
+
iconPlacement: iconPlacement,
|
|
33
|
+
iconSize: iconSize,
|
|
34
|
+
iconProps: iconProps,
|
|
27
35
|
onClick: handleClick,
|
|
28
36
|
...props
|
|
29
37
|
}), options.length > 0 && /*#__PURE__*/_jsx(Menu, {
|