@abtnode/ux 1.16.27-beta-e0e33468 → 1.16.27-beta-43a3bbb2

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.
@@ -103,11 +103,11 @@ function ConnectActions({
103
103
  disabled: store.protected,
104
104
  children: [/*#__PURE__*/_jsx(DeleteOutlineIcon, {
105
105
  sx: {
106
- color: 'error.main',
106
+ color: store.protected ? 'action' : 'error.main',
107
107
  marginRight: 1
108
108
  }
109
109
  }), /*#__PURE__*/_jsx(Box, {
110
- color: "error.main",
110
+ color: store.protected ? 'action' : 'error.main',
111
111
  children: t('common.delete')
112
112
  })]
113
113
  })
@@ -65,6 +65,9 @@ export default function DeleteStore({
65
65
  onCancel
66
66
  };
67
67
  const onMenuItemClick = e => {
68
+ if (store.protected) {
69
+ return;
70
+ }
68
71
  e.stopPropagation();
69
72
  setConfirmSetting(setting);
70
73
  };
@@ -111,11 +111,11 @@ function ConnectActions(_ref) {
111
111
  disabled: store.protected,
112
112
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteOutline.default, {
113
113
  sx: {
114
- color: 'error.main',
114
+ color: store.protected ? 'action' : 'error.main',
115
115
  marginRight: 1
116
116
  }
117
117
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
118
- color: "error.main",
118
+ color: store.protected ? 'action' : 'error.main',
119
119
  children: t('common.delete')
120
120
  })]
121
121
  })
@@ -73,6 +73,9 @@ function DeleteStore(_ref) {
73
73
  onCancel
74
74
  };
75
75
  const onMenuItemClick = e => {
76
+ if (store.protected) {
77
+ return;
78
+ }
76
79
  e.stopPropagation();
77
80
  setConfirmSetting(setting);
78
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.27-beta-e0e33468",
3
+ "version": "1.16.27-beta-43a3bbb2",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -28,9 +28,9 @@
28
28
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@abtnode/auth": "1.16.27-beta-e0e33468",
32
- "@abtnode/constant": "1.16.27-beta-e0e33468",
33
- "@abtnode/util": "1.16.27-beta-e0e33468",
31
+ "@abtnode/auth": "1.16.27-beta-43a3bbb2",
32
+ "@abtnode/constant": "1.16.27-beta-43a3bbb2",
33
+ "@abtnode/util": "1.16.27-beta-43a3bbb2",
34
34
  "@ahooksjs/use-url-state": "^3.5.1",
35
35
  "@arcblock/did": "^1.18.115",
36
36
  "@arcblock/did-connect": "^2.9.75",
@@ -40,10 +40,10 @@
40
40
  "@arcblock/react-hooks": "^2.9.75",
41
41
  "@arcblock/terminal": "^2.9.75",
42
42
  "@arcblock/ux": "^2.9.75",
43
- "@blocklet/constant": "1.16.27-beta-e0e33468",
43
+ "@blocklet/constant": "1.16.27-beta-43a3bbb2",
44
44
  "@blocklet/launcher-layout": "2.3.14",
45
45
  "@blocklet/list": "^0.12.88",
46
- "@blocklet/meta": "1.16.27-beta-e0e33468",
46
+ "@blocklet/meta": "1.16.27-beta-43a3bbb2",
47
47
  "@blocklet/ui-react": "^2.9.75",
48
48
  "@blocklet/uploader": "^0.0.78",
49
49
  "@emotion/react": "^11.10.4",
@@ -109,7 +109,7 @@
109
109
  "jest": "^29.7.0",
110
110
  "jest-environment-jsdom": "^29.7.0"
111
111
  },
112
- "gitHead": "2f507521d1523329bc0bbb5d64fb0ebe39a5177b",
112
+ "gitHead": "375820f90d78b9ff78bb4c29880dc9b19756ffc6",
113
113
  "exports": {
114
114
  ".": {
115
115
  "import": "./es/index.js",