@abtnode/ux 1.16.14-beta-d802cd3c → 1.16.14-beta-dc99d0a2

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.
@@ -24,6 +24,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
24
24
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
25
25
  const defaultFormValues = {
26
26
  enabled: false,
27
+ secure: false,
27
28
  from: '',
28
29
  host: '',
29
30
  port: '',
@@ -247,6 +248,31 @@ function NotificationEmail() {
247
248
  }))
248
249
  });
249
250
  }
251
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactHookForm.Controller, {
252
+ name: "secure",
253
+ control: control,
254
+ rules: {
255
+ validate: noop
256
+ },
257
+ render: _ref7 => {
258
+ let {
259
+ field
260
+ } = _ref7;
261
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormControl, {
262
+ fullWidth: true,
263
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormControlLabel, {
264
+ control: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Switch, _objectSpread(_objectSpread({
265
+ checked: field.value
266
+ }, field), {}, {
267
+ disabled: !enabled
268
+ })),
269
+ label: t('notification.email.secure'),
270
+ style: {
271
+ marginBottom: 16
272
+ }
273
+ })
274
+ });
275
+ }
250
276
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Button, {
251
277
  type: "submit",
252
278
  variant: "contained",
@@ -61,7 +61,7 @@ function CardSelector(_ref) {
61
61
  }
62
62
  }
63
63
  };
64
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(Contianer, {
64
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Container, {
65
65
  ref: outterCon,
66
66
  onTouchStart: touchstart,
67
67
  onTouchEnd: touchend,
@@ -71,7 +71,7 @@ function CardSelector(_ref) {
71
71
  transform: "translate(".concat(-translateX, "px, 0)")
72
72
  },
73
73
  children: list.map((e, i) => {
74
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
74
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
75
75
  className: "card-item ".concat(i === selectedId ? 'selected' : ''),
76
76
  style: {
77
77
  width,
@@ -82,18 +82,16 @@ function CardSelector(_ref) {
82
82
  ,
83
83
 
84
84
  onClick: () => selectedItem(i),
85
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("object", {
85
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("object", {
86
86
  data: e.src,
87
87
  alt: e.name
88
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
89
- className: "card-item-cover"
90
- })]
88
+ })
91
89
  }, i);
92
90
  })
93
91
  })
94
92
  });
95
93
  }
96
- const Contianer = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);\n overflow: hidden;\n .card-container {\n display: flex;\n white-space: nowrap;\n width: max-content;\n transition: all ease 0.3s;\n }\n .card-item {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n cursor: pointer;\n position: relative;\n\n .card-item-cover {\n position: absolute;\n width: 100%;\n height: 100%;\n cursor: pointer;\n z-index: 99;\n }\n\n object {\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n outline: #526ded solid 0;\n transition: all ease 0.2s;\n box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;\n }\n &.selected {\n cursor: default;\n object {\n outline: #526ded solid 5px;\n }\n }\n }\n"])));
94
+ const Container = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);\n overflow: hidden;\n .card-container {\n display: flex;\n white-space: nowrap;\n width: max-content;\n transition: all ease 0.3s;\n }\n .card-item {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n cursor: pointer;\n\n object {\n pointer-events: none;\n max-width: 100%;\n max-height: 100%;\n width: auto;\n height: auto;\n outline: #526ded solid 0;\n transition: all ease 0.2s;\n box-shadow: rgba(0, 0, 0, 0.2) 0 0 10px;\n }\n &.selected {\n cursor: default;\n object {\n outline: #526ded solid 5px;\n }\n }\n }\n"])));
97
95
  CardSelector.propTypes = {
98
96
  list: _propTypes.default.array,
99
97
  width: _propTypes.default.number,
package/lib/locales/en.js CHANGED
@@ -773,6 +773,7 @@ module.exports = {
773
773
  host: 'SMTP server host',
774
774
  port: 'SMTP server port',
775
775
  user: 'SMTP server username',
776
+ secure: 'Enable secure connection',
776
777
  password: 'SMTP server user password',
777
778
  fromRequired: 'Email sender is required',
778
779
  fromInvalid: 'Email sender is invalid',
package/lib/locales/zh.js CHANGED
@@ -776,6 +776,7 @@ module.exports = {
776
776
  host: 'SMTP 服务地址',
777
777
  port: 'SMTP 服务端口',
778
778
  user: 'SMTP 服务用户名',
779
+ secure: '使用安全链接',
779
780
  password: 'SMTP 服务用户密码',
780
781
  fromRequired: '请输入发件人邮箱',
781
782
  fromInvalid: '发件人邮箱格式不正确',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.14-beta-d802cd3c",
3
+ "version": "1.16.14-beta-dc99d0a2",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,23 +23,23 @@
23
23
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@abtnode/auth": "1.16.14-beta-d802cd3c",
27
- "@abtnode/constant": "1.16.14-beta-d802cd3c",
28
- "@abtnode/util": "1.16.14-beta-d802cd3c",
26
+ "@abtnode/auth": "1.16.14-beta-dc99d0a2",
27
+ "@abtnode/constant": "1.16.14-beta-dc99d0a2",
28
+ "@abtnode/util": "1.16.14-beta-dc99d0a2",
29
29
  "@ahooksjs/use-url-state": "^3.5.1",
30
30
  "@arcblock/did": "^1.18.87",
31
- "@arcblock/did-connect": "^2.5.60",
31
+ "@arcblock/did-connect": "^2.5.65",
32
32
  "@arcblock/did-motif": "^1.1.13",
33
- "@arcblock/icons": "^2.5.60",
34
- "@arcblock/nft-display": "2.5.60",
35
- "@arcblock/react-hooks": "^2.5.60",
36
- "@arcblock/terminal": "^2.5.60",
37
- "@arcblock/ux": "^2.5.60",
38
- "@blocklet/constant": "1.16.14-beta-d802cd3c",
39
- "@blocklet/launcher-layout": "2.1.46",
40
- "@blocklet/list": "^0.12.8",
41
- "@blocklet/meta": "1.16.14-beta-d802cd3c",
42
- "@blocklet/ui-react": "^2.5.60",
33
+ "@arcblock/icons": "^2.5.65",
34
+ "@arcblock/nft-display": "2.5.65",
35
+ "@arcblock/react-hooks": "^2.5.65",
36
+ "@arcblock/terminal": "^2.5.65",
37
+ "@arcblock/ux": "^2.5.65",
38
+ "@blocklet/constant": "1.16.14-beta-dc99d0a2",
39
+ "@blocklet/launcher-layout": "2.1.55",
40
+ "@blocklet/list": "^0.12.10",
41
+ "@blocklet/meta": "1.16.14-beta-dc99d0a2",
42
+ "@blocklet/ui-react": "^2.5.65",
43
43
  "@emotion/react": "^11.10.4",
44
44
  "@emotion/styled": "^11.10.4",
45
45
  "@iconify/react": "^4.0.0",
@@ -97,5 +97,5 @@
97
97
  "@babel/preset-react": "^7.18.6",
98
98
  "babel-plugin-inline-react-svg": "^1.1.2"
99
99
  },
100
- "gitHead": "f8e2dcefd8d6876e5dedee833ac976b4a0496b20"
100
+ "gitHead": "a00766d660ede97e2036f3a785f4f5cfb2e6d870"
101
101
  }