@ebscn/ui 1.0.3-beta.4 → 1.0.3-beta.7

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.
Files changed (60) hide show
  1. package/assets/images/delete_dark.png +0 -0
  2. package/assets/images/keybord_keybord_dark.png +0 -0
  3. package/assets/images/keybord_shift_dark.png +0 -0
  4. package/cjs/assets/images/delete_dark.png +0 -0
  5. package/cjs/assets/images/keybord_keybord_dark.png +0 -0
  6. package/cjs/assets/images/keybord_shift_dark.png +0 -0
  7. package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +29 -14
  8. package/cjs/components/card/card.js +2 -2
  9. package/cjs/components/icons/back-icon.js +1 -0
  10. package/cjs/components/icons/clear-icon.js +1 -0
  11. package/cjs/components/icons/close-icon.js +2 -1
  12. package/cjs/components/icons/notice-icon.js +2 -1
  13. package/cjs/components/icons/right-icon.js +1 -0
  14. package/cjs/components/input/input.css +27 -27
  15. package/cjs/components/input/input.js +1 -1
  16. package/cjs/components/number-keyboard/number-keyboard.css +16 -36
  17. package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +32 -38
  18. package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
  19. package/cjs/components/stock-keyboard/alphabet-keyboard.css +136 -0
  20. package/cjs/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
  21. package/cjs/components/stock-keyboard/alphabet-keyboard.js +107 -0
  22. package/cjs/components/stock-keyboard/index.d.ts +1 -0
  23. package/cjs/components/stock-keyboard/index.js +1 -0
  24. package/cjs/components/stock-keyboard/stock-keyboard.css +79 -70
  25. package/cjs/components/stock-keyboard/stock-keyboard.d.ts +2 -2
  26. package/cjs/components/stock-keyboard/stock-keyboard.js +40 -8
  27. package/cjs/global/global.css +11 -2
  28. package/cjs/global/theme-dark.css +7 -2
  29. package/cjs/global/theme-default.css +4 -0
  30. package/cjs/index.d.ts +0 -4
  31. package/cjs/index.js +1 -33
  32. package/es/assets/images/delete_dark.png +0 -0
  33. package/es/assets/images/keybord_keybord_dark.png +0 -0
  34. package/es/assets/images/keybord_shift_dark.png +0 -0
  35. package/es/components/alphabet-keyboard/alphabet-keyboard.css +29 -14
  36. package/es/components/card/card.js +2 -2
  37. package/es/components/icons/back-icon.js +1 -0
  38. package/es/components/icons/clear-icon.js +1 -0
  39. package/es/components/icons/close-icon.js +2 -1
  40. package/es/components/icons/notice-icon.js +2 -1
  41. package/es/components/icons/right-icon.js +1 -0
  42. package/es/components/input/input.css +27 -27
  43. package/es/components/input/input.js +1 -1
  44. package/es/components/number-keyboard/number-keyboard.css +16 -36
  45. package/es/components/stock-count-keyboard/stock-count-keyboard.css +32 -38
  46. package/es/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
  47. package/es/components/stock-keyboard/alphabet-keyboard.css +136 -0
  48. package/es/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
  49. package/es/components/stock-keyboard/alphabet-keyboard.js +100 -0
  50. package/es/components/stock-keyboard/index.d.ts +1 -0
  51. package/es/components/stock-keyboard/index.js +1 -0
  52. package/es/components/stock-keyboard/stock-keyboard.css +79 -70
  53. package/es/components/stock-keyboard/stock-keyboard.d.ts +2 -2
  54. package/es/components/stock-keyboard/stock-keyboard.js +41 -9
  55. package/es/global/global.css +11 -2
  56. package/es/global/theme-dark.css +7 -2
  57. package/es/global/theme-default.css +4 -0
  58. package/es/index.d.ts +0 -4
  59. package/es/index.js +4 -4
  60. package/package.json +1 -1
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.AlphabetKeyboard = AlphabetKeyboard;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _nativeProps = require("../../utils/native-props");
9
+ var _withDefaultProps = require("../../utils/with-default-props");
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ var classPrefix = 'ebscn-alphabet-keyboard-extra';
13
+ var defaultProps = {
14
+ visible: false
15
+ };
16
+ function AlphabetKeyboard(p) {
17
+ var keyboardRef = (0, _react.useRef)(null);
18
+ var props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
19
+ var visible = props.visible,
20
+ onInput = props.onInput,
21
+ onDelete = props.onDelete,
22
+ onClose = props.onClose,
23
+ onChangeKeyBoard = props.onChangeKeyBoard,
24
+ onConfirm = props.onConfirm;
25
+ var firstKeys = ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'];
26
+ var firstKeysBig = ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'];
27
+ var secondKeys = ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'];
28
+ var secondKeysBig = ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'];
29
+ var thirdKeys = ['↑', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '×'];
30
+ var thirdKeysBig = ['↑', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '×'];
31
+ var firthKeys = ['123', '⌨', '空格', '确定'];
32
+ var _a = (0, _react.useState)(false),
33
+ isBig = _a[0],
34
+ setIsBIG = _a[1];
35
+ var imgKeys = ['×', '↑', '⌨'];
36
+ function onKeyPress(key) {
37
+ switch (key) {
38
+ case '×':
39
+ return onDelete === null || onDelete === void 0 ? void 0 : onDelete();
40
+ case '123':
41
+ return onChangeKeyBoard === null || onChangeKeyBoard === void 0 ? void 0 : onChangeKeyBoard();
42
+ case '⌨':
43
+ return onClose === null || onClose === void 0 ? void 0 : onClose();
44
+ case '确定':
45
+ return onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
46
+ case '空格':
47
+ return onInput === null || onInput === void 0 ? void 0 : onInput(' ');
48
+ case '↑':
49
+ return setIsBIG(!isBig);
50
+ default:
51
+ return onInput === null || onInput === void 0 ? void 0 : onInput(key);
52
+ }
53
+ }
54
+ return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
55
+ ref: keyboardRef,
56
+ className: "".concat(classPrefix)
57
+ }, _react.default.createElement("div", {
58
+ className: "".concat(classPrefix, "-firstline")
59
+ }, (isBig == false ? firstKeys : firstKeysBig).map(function (item, index) {
60
+ return _react.default.createElement("div", {
61
+ key: item || index,
62
+ className: "".concat(classPrefix, "-firstline-key"),
63
+ onClick: function () {
64
+ if (visible) {
65
+ onKeyPress(item);
66
+ }
67
+ }
68
+ }, item);
69
+ })), _react.default.createElement("div", {
70
+ className: "".concat(classPrefix, "-secondline")
71
+ }, (isBig == false ? secondKeys : secondKeysBig).map(function (item, index) {
72
+ return _react.default.createElement("div", {
73
+ key: item || index,
74
+ className: "".concat(classPrefix, "-secondline-key"),
75
+ onClick: function () {
76
+ if (visible) {
77
+ onKeyPress(item);
78
+ }
79
+ }
80
+ }, item);
81
+ })), _react.default.createElement("div", {
82
+ className: "".concat(classPrefix, "-thirdline")
83
+ }, (isBig == false ? thirdKeys : thirdKeysBig).map(function (item, index) {
84
+ return _react.default.createElement("div", {
85
+ key: item || index,
86
+ className: item == '↑' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift") : item == '×' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-delete") : "".concat(classPrefix, "-thirdline-key"),
87
+ onClick: function () {
88
+ if (visible) {
89
+ onKeyPress(item);
90
+ }
91
+ ;
92
+ }
93
+ }, imgKeys.includes(item) ? '' : item);
94
+ })), _react.default.createElement("div", {
95
+ className: "".concat(classPrefix, "-firthline")
96
+ }, firthKeys.map(function (item, index) {
97
+ return _react.default.createElement("div", {
98
+ key: item || index,
99
+ className: item == '123' ? "".concat(classPrefix, "-darkkey") : item == '⌨' ? " ".concat(classPrefix, "-darkkey ").concat(classPrefix, "-keybord") : item == '空格' ? "".concat(classPrefix, "-space") : "".concat(classPrefix, "-firthline-confirm"),
100
+ onClick: function () {
101
+ if (visible) {
102
+ onKeyPress(item);
103
+ }
104
+ }
105
+ }, imgKeys.includes(item) ? '' : item);
106
+ }))));
107
+ }
@@ -1,4 +1,5 @@
1
1
  import "./stock-keyboard.less";
2
+ import './alphabet-keyboard.less';
2
3
  import { StockKeyboard } from "./stock-keyboard";
3
4
  export type { StockKeyboardProps } from "./stock-keyboard";
4
5
  export default StockKeyboard;
@@ -5,5 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  require("./stock-keyboard.css");
8
+ require("./alphabet-keyboard.css");
8
9
  var _stockKeyboard2 = require("./stock-keyboard");
9
10
  var _default = exports.default = _stockKeyboard2.StockKeyboard;
@@ -1,111 +1,120 @@
1
+ html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete {
2
+ background: url(../../assets/images/delete_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
3
+ background-size: 24px 24px;
4
+ }
1
5
  .ebscn-stock-keyboard {
2
6
  transform: translateY(101%);
3
- display: flex;
4
7
  position: fixed;
5
8
  bottom: 0;
9
+ left: 0;
6
10
  flex-direction: row;
11
+ z-index: 999;
7
12
  width: 100%;
8
- height: 216px;
13
+ height: 267px;
9
14
  transition: all 0.5s;
10
15
  align-content: flex-start;
11
16
  }
12
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right {
17
+ .ebscn-stock-keyboard-top {
18
+ padding: 11px 19px;
19
+ background-color: var(--ebscn-color-background);
20
+ display: flex;
21
+ align-items: center;
22
+ font-size: var(--ebscn-font-size-8);
23
+ }
24
+ .ebscn-stock-keyboard-top-item {
25
+ margin-right: 24px;
26
+ color: var(--ebscn-color-text-secondary);
27
+ }
28
+ .ebscn-stock-keyboard-top-item-active {
29
+ color: var(--ebscn-color-primary);
30
+ }
31
+ .ebscn-stock-keyboard-bottom {
32
+ display: flex;
33
+ }
34
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right {
35
+ background-color: var(--ebscn-color-keyboard-bg);
13
36
  display: flex;
14
37
  flex-wrap: wrap;
15
38
  width: 80%;
16
- height: 216px;
39
+ height: 223px;
17
40
  transition: all 0.5s;
18
41
  align-content: flex-start;
19
42
  }
20
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right :last-child {
43
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right :last-child {
21
44
  background: var(--ebscn-color-primary);
22
- color: var(--ebscn-color-white);
23
- }
24
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-key {
25
- width: 25%;
26
- height: 54px;
27
- line-height: 54px;
28
- text-align: center;
29
- font-size: 24px;
30
- color: #000000;
31
- font-weight: 300;
32
- box-shadow: 0 0 0 1px var(--ebscn-color-light);
33
- background: var(--ebscn-color-white);
34
- }
35
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-key:active {
36
- width: 25%;
37
- height: 54px;
38
- line-height: 54px;
45
+ color: #fff;
46
+ }
47
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key,
48
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey {
49
+ width: calc(25% - 7.5px);
50
+ margin: 6px 3px 0 3px;
51
+ border-radius: 4.17px;
52
+ height: 48px;
53
+ line-height: 48px;
39
54
  text-align: center;
40
- font-size: 24px;
41
- color: #000000;
42
- font-weight: 300;
43
- box-shadow: 0 0 0 1px var(--ebscn-color-light);
44
- background: var(--ebscn-color-border);
45
- }
46
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-option {
47
- font-size: var(--ebscn-font-size-11);
48
- background: #e1e3e8;
49
- }
50
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-option:active {
51
- font-size: var(--ebscn-font-size-11);
52
- background: #CACBD0;
53
- }
54
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-delete {
55
- background: url(../../assets/images/delete.png) #e1e3e8 no-repeat center;
55
+ font-weight: 400;
56
+ }
57
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key {
58
+ color: var(--ebscn-color-text);
59
+ font-size: 23px;
60
+ background: var(--ebscn-color-keyboard-key-bg);
61
+ }
62
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key:active {
63
+ background: var(--ebscn-color-keyboard-active-background);
64
+ }
65
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-option {
66
+ font-size: var(--ebscn-font-size-10);
67
+ color: var(--ebscn-color-text);
68
+ background-color: var(--ebscn-color-functionkey-background);
69
+ }
70
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-option:active {
71
+ font-size: var(--ebscn-font-size-10);
72
+ background-color: var(--ebscn-color-keyboard-active-background);
73
+ }
74
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete {
75
+ background: url(../../assets/images/delete.png) var(--ebscn-color-functionkey-background) no-repeat center;
56
76
  background-size: 24px 24px;
57
77
  }
58
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-delete:active {
59
- background: url(../../assets/images/delete.png) #CACBD0 no-repeat center;
78
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete:active {
79
+ background: url(../../assets/images/delete.png) var(--ebscn-color-keyboard-active-background) no-repeat center;
60
80
  background-size: 24px 24px;
61
81
  }
62
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-header {
63
- padding-top: 24px;
64
- padding-bottom: 16px;
82
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey {
65
83
  font-size: var(--ebscn-font-size-10);
66
- color: #333333;
67
- text-align: center;
68
- font-weight: 500;
69
- }
70
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-confirmKey {
84
+ width: calc(25% - 7.5px);
71
85
  background-color: var(--ebscn-color-primary);
72
- width: 25%;
73
- height: 54px;
74
- line-height: 54px;
75
- text-align: center;
76
- font-size: var(--ebscn-font-size-11);
77
- color: #000000;
78
- font-weight: 300;
79
- box-shadow: 0 0 0 1px var(--ebscn-color-light);
80
86
  }
81
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-confirmKey:active {
87
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey:active {
82
88
  background-color: #D03B21;
83
89
  color: var(--ebscn-color-white);
84
90
  }
85
- .ebscn-stock-keyboard .ebscn-stock-keyboard-left {
91
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-bottom-option {
92
+ font-size: var(--ebscn-font-size-10);
93
+ }
94
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left {
86
95
  width: 20%;
87
- height: 216px;
96
+ background-color: var(--ebscn-color-keyboard-bg);
88
97
  }
89
- .ebscn-stock-keyboard .ebscn-stock-keyboard-left-key {
98
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left-key {
90
99
  display: flex;
91
100
  align-items: center;
92
101
  justify-content: center;
93
- height: 20%;
102
+ border-radius: 4.17px;
103
+ height: 48px;
104
+ margin: 6px 3px 6px 6px;
94
105
  font-size: var(--ebscn-font-size-10);
95
106
  font-weight: 400;
96
107
  text-align: center;
97
- color: #333333;
98
- line-height: 25px;
99
- box-shadow: 0 0 0 1px var(--ebscn-color-light);
100
- background: #e1e3e8;
108
+ color: var(--ebscn-color-text);
109
+ line-height: 48px;
110
+ background-color: var(--ebscn-color-functionkey-background);
101
111
  }
102
- .ebscn-stock-keyboard .ebscn-stock-keyboard-left-key:active {
103
- font-size: 18px;
104
- background: #CACBD0;
112
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left-key:active {
113
+ background: var(--ebscn-color-keyboard-active-background);
105
114
  }
106
115
  @supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
107
116
  .ebscn-stock-keyboard {
108
- height: calc(216px + env(safe-area-inset-bottom));
109
- height: calc(216px + constant(safe-area-inset-bottom));
117
+ height: calc(267px + env(safe-area-inset-bottom));
118
+ height: calc(267px + constant(safe-area-inset-bottom));
110
119
  }
111
120
  }
@@ -3,10 +3,10 @@ import { NativeProps } from '../../utils/native-props';
3
3
  export type StockKeyboardProps = {
4
4
  visible?: boolean;
5
5
  onInput: Function;
6
- onChangeKeyBoard: Function;
7
6
  onDelete: Function;
8
7
  onClose: Function;
9
8
  onClean: Function;
10
- onConfirm?: Function;
9
+ onConfirm: Function;
10
+ onSelectCN: Function;
11
11
  } & NativeProps;
12
12
  export declare function StockKeyboard(p: StockKeyboardProps): JSX.Element;
@@ -8,6 +8,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _nativeProps = require("../../utils/native-props");
10
10
  var _withDefaultProps = require("../../utils/with-default-props");
11
+ var _alphabetKeyboard = require("./alphabet-keyboard");
11
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -24,13 +25,15 @@ function StockKeyboard(p) {
24
25
  onClose = props.onClose,
25
26
  onClean = props.onClean,
26
27
  onConfirm = props.onConfirm,
27
- onChangeKeyBoard = props.onChangeKeyBoard;
28
- var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '', '确定'];
29
- var leftKeys = ['600', '601', '000', '002', '300'];
28
+ onSelectCN = props.onSelectCN;
29
+ var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '002', '确定'];
30
+ var leftKeys = ['600', '601', '000', '300'];
30
31
  var hideTimer = (0, _react.useRef)(null);
31
32
  var appearTimer = (0, _react.useRef)(null);
32
33
  var lastVisible = (0, _react.useRef)(null);
33
- var keyFlag = (0, _react.useRef)(0);
34
+ var _a = (0, _react.useState)(1),
35
+ keyboardType = _a[0],
36
+ setKeyboardType = _a[1];
34
37
  (0, _react.useEffect)(function () {
35
38
  if (!visible) {
36
39
  if (lastVisible.current) {
@@ -70,7 +73,9 @@ function StockKeyboard(p) {
70
73
  case '确定':
71
74
  return onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
72
75
  case 'ABC':
73
- return onChangeKeyBoard === null || onChangeKeyBoard === void 0 ? void 0 : onChangeKeyBoard();
76
+ setKeyboardType(2);
77
+ return;
78
+ //return onChangeKeyBoard?.()
74
79
  default:
75
80
  return onInput === null || onInput === void 0 ? void 0 : onInput(key);
76
81
  }
@@ -79,6 +84,25 @@ function StockKeyboard(p) {
79
84
  ref: keyboardRef,
80
85
  className: "".concat(classPrefix)
81
86
  }, _react.default.createElement("div", {
87
+ className: "".concat(classPrefix, "-top")
88
+ }, _react.default.createElement("div", {
89
+ onClick: function () {
90
+ return setKeyboardType(1);
91
+ },
92
+ className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 1 ? "".concat(classPrefix, "-top-item-active") : '')
93
+ }, "123"), _react.default.createElement("div", {
94
+ onClick: function () {
95
+ return setKeyboardType(2);
96
+ },
97
+ className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 2 ? "".concat(classPrefix, "-top-item-active") : '')
98
+ }, "ABC"), _react.default.createElement("div", {
99
+ onClick: function () {
100
+ return onSelectCN();
101
+ },
102
+ className: "".concat(classPrefix, "-top-item")
103
+ }, "\u4E2D\u6587")), keyboardType === 1 ? _react.default.createElement("div", {
104
+ className: "".concat(classPrefix, "-bottom")
105
+ }, " ", _react.default.createElement("div", {
82
106
  className: "".concat(classPrefix, "-left")
83
107
  }, leftKeys.map(function (item, index) {
84
108
  return _react.default.createElement("div", {
@@ -91,17 +115,25 @@ function StockKeyboard(p) {
91
115
  }
92
116
  }, item !== 'X' ? item : '');
93
117
  })), _react.default.createElement("div", {
94
- ref: keyboardRef,
95
118
  className: "".concat(classPrefix, "-right")
96
119
  }, keys.map(function (item, index) {
97
120
  return _react.default.createElement("div", {
98
121
  key: item || index,
99
- className: (0, _classnames.default)(item !== '确定' ? "".concat(classPrefix, "-right-key") : "".concat(classPrefix, "-right-confirmKey"), typeof item !== 'number' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-right-option") : item == '确定' ? "".concat(classPrefix, "-right-confirmKey") : "".concat(classPrefix, "-right-number-key"), item === 'X' && "".concat(classPrefix, "-right-delete")),
122
+ className: (0, _classnames.default)(item !== '确定' ? "".concat(classPrefix, "-right-key") : "".concat(classPrefix, "-right-confirmKey"), item === 'ABC' || item === '002' ? "".concat(classPrefix, "-right-bottom-option") : '', typeof item !== 'number' && item !== 'ABC' && item !== '002' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-right-option") : item == '确定' ? "".concat(classPrefix, "-right-confirmKey") : "".concat(classPrefix, "-right-number-key"), item === 'X' && "".concat(classPrefix, "-right-delete")),
100
123
  onClick: function () {
101
124
  if (visible) {
102
125
  onKeyPress(item);
103
126
  }
104
127
  }
105
128
  }, item !== 'X' ? item : '');
106
- }))));
129
+ }))) : _react.default.createElement(_alphabetKeyboard.AlphabetKeyboard, {
130
+ visible: true,
131
+ onConfirm: onConfirm,
132
+ onDelete: onDelete,
133
+ onClose: onClose,
134
+ onInput: onInput,
135
+ onChangeKeyBoard: function () {
136
+ return setKeyboardType(1);
137
+ }
138
+ })));
107
139
  }
@@ -45,9 +45,13 @@
45
45
  --ebscn-color-golden: #b47816;
46
46
  --ebscn-color-grey: rgba(0, 0, 0, 0.7);
47
47
  --ebscn-color-split-line: #EBEBEB;
48
+ --ebscn-color-keyboard-bg: #d2d5d8;
49
+ --ebscn-color-keyboard-key-bg: #fff;
50
+ --ebscn-color-functionkey-background: #adb3bd;
51
+ --ebscn-color-keyboard-active-background: #E5E5E5;
48
52
  }
49
53
  html[data-prefers-color-scheme='dark'] {
50
- --ebscn-color-primary: #3086ff;
54
+ --ebscn-color-blue: #4c7cf1;
51
55
  --ebscn-color-success: #34b368;
52
56
  --ebscn-color-warning: #ffa930;
53
57
  --ebscn-color-danger: #ff4a58;
@@ -56,13 +60,18 @@ html[data-prefers-color-scheme='dark'] {
56
60
  --ebscn-color-wathet: #0d2543;
57
61
  --ebscn-color-text: #ebebeb;
58
62
  --ebscn-color-text-secondary: #b3b3b3;
59
- --ebscn-color-weak: #808080;
63
+ --ebscn-color-weak: #7a7a7a;
60
64
  --ebscn-color-light: #4d4d4d;
61
65
  --ebscn-color-border: #2b2b2b;
62
66
  --ebscn-color-box: #0a0a0a;
63
67
  --ebscn-color-background: #1a1a1a;
64
68
  --ebscn-color-background-body: var(--ebscn-color-background);
65
69
  --ebscn-border-color: var(--ebscn-color-border);
70
+ --ebscn-color-split-line: #2B2B2B;
71
+ --ebscn-color-keyboard-bg: #1a1a1a;
72
+ --ebscn-color-keyboard-key-bg: #474747;
73
+ --ebscn-color-functionkey-background: #292929;
74
+ --ebscn-color-keyboard-active-background: #323232;
66
75
  }
67
76
  :root {
68
77
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
@@ -1,5 +1,5 @@
1
1
  html[data-prefers-color-scheme='dark'] {
2
- --ebscn-color-primary: #3086ff;
2
+ --ebscn-color-blue: #4c7cf1;
3
3
  --ebscn-color-success: #34b368;
4
4
  --ebscn-color-warning: #ffa930;
5
5
  --ebscn-color-danger: #ff4a58;
@@ -8,11 +8,16 @@ html[data-prefers-color-scheme='dark'] {
8
8
  --ebscn-color-wathet: #0d2543;
9
9
  --ebscn-color-text: #ebebeb;
10
10
  --ebscn-color-text-secondary: #b3b3b3;
11
- --ebscn-color-weak: #808080;
11
+ --ebscn-color-weak: #7a7a7a;
12
12
  --ebscn-color-light: #4d4d4d;
13
13
  --ebscn-color-border: #2b2b2b;
14
14
  --ebscn-color-box: #0a0a0a;
15
15
  --ebscn-color-background: #1a1a1a;
16
16
  --ebscn-color-background-body: var(--ebscn-color-background);
17
17
  --ebscn-border-color: var(--ebscn-color-border);
18
+ --ebscn-color-split-line: #2B2B2B;
19
+ --ebscn-color-keyboard-bg: #1a1a1a;
20
+ --ebscn-color-keyboard-key-bg: #474747;
21
+ --ebscn-color-functionkey-background: #292929;
22
+ --ebscn-color-keyboard-active-background: #323232;
18
23
  }
@@ -45,4 +45,8 @@
45
45
  --ebscn-color-golden: #b47816;
46
46
  --ebscn-color-grey: rgba(0, 0, 0, 0.7);
47
47
  --ebscn-color-split-line: #EBEBEB;
48
+ --ebscn-color-keyboard-bg: #d2d5d8;
49
+ --ebscn-color-keyboard-key-bg: #fff;
50
+ --ebscn-color-functionkey-background: #adb3bd;
51
+ --ebscn-color-keyboard-active-background: #E5E5E5;
48
52
  }
package/cjs/index.d.ts CHANGED
@@ -36,7 +36,3 @@ export { default as Tabs } from './components/tabs';
36
36
  export { default as Tip } from './components/tip';
37
37
  export { default as ToastLoading } from './components/toastLoading';
38
38
  export { default as Input } from './components/input';
39
- export { default as PayInput } from './components/pay-input';
40
- export { default as MoneyInput } from './components/money-input';
41
- export { default as FeneInput } from './components/fene-input';
42
- export { default as CommonInput } from './components/common-input';
package/cjs/index.js CHANGED
@@ -41,11 +41,7 @@ var _exportNames = {
41
41
  Tabs: true,
42
42
  Tip: true,
43
43
  ToastLoading: true,
44
- Input: true,
45
- PayInput: true,
46
- MoneyInput: true,
47
- FeneInput: true,
48
- CommonInput: true
44
+ Input: true
49
45
  };
50
46
  Object.defineProperty(exports, "AlphabetKeyboard", {
51
47
  enumerable: true,
@@ -77,12 +73,6 @@ Object.defineProperty(exports, "Checkbox", {
77
73
  return _checkbox.default;
78
74
  }
79
75
  });
80
- Object.defineProperty(exports, "CommonInput", {
81
- enumerable: true,
82
- get: function () {
83
- return _commonInput.default;
84
- }
85
- });
86
76
  Object.defineProperty(exports, "DateRangePicker", {
87
77
  enumerable: true,
88
78
  get: function () {
@@ -95,12 +85,6 @@ Object.defineProperty(exports, "Divider", {
95
85
  return _divider.default;
96
86
  }
97
87
  });
98
- Object.defineProperty(exports, "FeneInput", {
99
- enumerable: true,
100
- get: function () {
101
- return _feneInput.default;
102
- }
103
- });
104
88
  Object.defineProperty(exports, "Grid", {
105
89
  enumerable: true,
106
90
  get: function () {
@@ -137,12 +121,6 @@ Object.defineProperty(exports, "Mask", {
137
121
  return _mask.default;
138
122
  }
139
123
  });
140
- Object.defineProperty(exports, "MoneyInput", {
141
- enumerable: true,
142
- get: function () {
143
- return _moneyInput.default;
144
- }
145
- });
146
124
  Object.defineProperty(exports, "NoticeBar", {
147
125
  enumerable: true,
148
126
  get: function () {
@@ -167,12 +145,6 @@ Object.defineProperty(exports, "PageIndicator", {
167
145
  return _pageIndicator.default;
168
146
  }
169
147
  });
170
- Object.defineProperty(exports, "PayInput", {
171
- enumerable: true,
172
- get: function () {
173
- return _payInput.default;
174
- }
175
- });
176
148
  Object.defineProperty(exports, "Picker", {
177
149
  enumerable: true,
178
150
  get: function () {
@@ -348,8 +320,4 @@ var _tabs = _interopRequireDefault(require("./components/tabs"));
348
320
  var _tip = _interopRequireDefault(require("./components/tip"));
349
321
  var _toastLoading = _interopRequireDefault(require("./components/toastLoading"));
350
322
  var _input = _interopRequireDefault(require("./components/input"));
351
- var _payInput = _interopRequireDefault(require("./components/pay-input"));
352
- var _moneyInput = _interopRequireDefault(require("./components/money-input"));
353
- var _feneInput = _interopRequireDefault(require("./components/fene-input"));
354
- var _commonInput = _interopRequireDefault(require("./components/common-input"));
355
323
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
Binary file