@nethru/ui 2.1.28 → 2.1.29

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.
@@ -19,6 +19,8 @@ const MainHeader = /*#__PURE__*/forwardRef(({
19
19
  cancelButtonText = '취소',
20
20
  confirmButtonDisabled = false,
21
21
  rightSlot,
22
+ leading,
23
+ trailing,
22
24
  ...props
23
25
  }, ref) => {
24
26
  return /*#__PURE__*/_jsxs(Stack, {
@@ -48,7 +50,9 @@ const MainHeader = /*#__PURE__*/forwardRef(({
48
50
  direction: "row",
49
51
  spacing: 1,
50
52
  justifyContent: "flex-end",
51
- children: [!edit && /*#__PURE__*/_jsx(Button, {
53
+ children: [leading && /*#__PURE__*/_jsx(_Fragment, {
54
+ children: leading
55
+ }), !edit && /*#__PURE__*/_jsx(Button, {
52
56
  variant: "contained",
53
57
  onClick: onEditClick,
54
58
  children: editButtonText
@@ -63,6 +67,8 @@ const MainHeader = /*#__PURE__*/forwardRef(({
63
67
  disabled: confirmButtonDisabled,
64
68
  children: confirmButtonText
65
69
  })]
70
+ }), trailing && /*#__PURE__*/_jsx(_Fragment, {
71
+ children: trailing
66
72
  })]
67
73
  })]
68
74
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "2.1.28",
3
+ "version": "2.1.29",
4
4
  "main": "base/index.js",
5
5
  "files": [
6
6
  "/base"