@nethru/ui 1.0.3 → 1.0.4

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.
@@ -12,6 +12,7 @@ export default function MainHeader({
12
12
  editButtonText = '편집',
13
13
  confirmButtonText = '저장',
14
14
  cancelButtonText = '취소',
15
+ confirmButtonDisabled = false,
15
16
  rightSlot
16
17
  }) {
17
18
  return /*#__PURE__*/_jsx(_Fragment, {
@@ -39,10 +40,12 @@ export default function MainHeader({
39
40
  }), edit && /*#__PURE__*/_jsxs(_Fragment, {
40
41
  children: [/*#__PURE__*/_jsx(Button, {
41
42
  variant: "contained",
43
+ type: "submit",
44
+ onClick: onConfirmClick,
45
+ disabled: confirmButtonDisabled,
42
46
  sx: {
43
47
  width: 120
44
48
  },
45
- onClick: onConfirmClick,
46
49
  children: confirmButtonText
47
50
  }), /*#__PURE__*/_jsx(Button, {
48
51
  variant: "outlined",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "/dist"