@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,100 @@
1
+ import { useRef, useState } from "react";
2
+ import React from "react";
3
+ import { withNativeProps } from '../../utils/native-props';
4
+ import { mergeProps } from '../../utils/with-default-props';
5
+ var classPrefix = 'ebscn-alphabet-keyboard-extra';
6
+ var defaultProps = {
7
+ visible: false
8
+ };
9
+ export function AlphabetKeyboard(p) {
10
+ var keyboardRef = useRef(null);
11
+ var props = mergeProps(defaultProps, p);
12
+ var visible = props.visible,
13
+ onInput = props.onInput,
14
+ onDelete = props.onDelete,
15
+ onClose = props.onClose,
16
+ onChangeKeyBoard = props.onChangeKeyBoard,
17
+ onConfirm = props.onConfirm;
18
+ var firstKeys = ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'];
19
+ var firstKeysBig = ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'];
20
+ var secondKeys = ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'];
21
+ var secondKeysBig = ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'];
22
+ var thirdKeys = ['↑', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '×'];
23
+ var thirdKeysBig = ['↑', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '×'];
24
+ var firthKeys = ['123', '⌨', '空格', '确定'];
25
+ var _a = useState(false),
26
+ isBig = _a[0],
27
+ setIsBIG = _a[1];
28
+ var imgKeys = ['×', '↑', '⌨'];
29
+ function onKeyPress(key) {
30
+ switch (key) {
31
+ case '×':
32
+ return onDelete === null || onDelete === void 0 ? void 0 : onDelete();
33
+ case '123':
34
+ return onChangeKeyBoard === null || onChangeKeyBoard === void 0 ? void 0 : onChangeKeyBoard();
35
+ case '⌨':
36
+ return onClose === null || onClose === void 0 ? void 0 : onClose();
37
+ case '确定':
38
+ return onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
39
+ case '空格':
40
+ return onInput === null || onInput === void 0 ? void 0 : onInput(' ');
41
+ case '↑':
42
+ return setIsBIG(!isBig);
43
+ default:
44
+ return onInput === null || onInput === void 0 ? void 0 : onInput(key);
45
+ }
46
+ }
47
+ return withNativeProps(props, React.createElement("div", {
48
+ ref: keyboardRef,
49
+ className: "".concat(classPrefix)
50
+ }, React.createElement("div", {
51
+ className: "".concat(classPrefix, "-firstline")
52
+ }, (isBig == false ? firstKeys : firstKeysBig).map(function (item, index) {
53
+ return React.createElement("div", {
54
+ key: item || index,
55
+ className: "".concat(classPrefix, "-firstline-key"),
56
+ onClick: function () {
57
+ if (visible) {
58
+ onKeyPress(item);
59
+ }
60
+ }
61
+ }, item);
62
+ })), React.createElement("div", {
63
+ className: "".concat(classPrefix, "-secondline")
64
+ }, (isBig == false ? secondKeys : secondKeysBig).map(function (item, index) {
65
+ return React.createElement("div", {
66
+ key: item || index,
67
+ className: "".concat(classPrefix, "-secondline-key"),
68
+ onClick: function () {
69
+ if (visible) {
70
+ onKeyPress(item);
71
+ }
72
+ }
73
+ }, item);
74
+ })), React.createElement("div", {
75
+ className: "".concat(classPrefix, "-thirdline")
76
+ }, (isBig == false ? thirdKeys : thirdKeysBig).map(function (item, index) {
77
+ return React.createElement("div", {
78
+ key: item || index,
79
+ className: item == '↑' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift") : item == '×' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-delete") : "".concat(classPrefix, "-thirdline-key"),
80
+ onClick: function () {
81
+ if (visible) {
82
+ onKeyPress(item);
83
+ }
84
+ ;
85
+ }
86
+ }, imgKeys.includes(item) ? '' : item);
87
+ })), React.createElement("div", {
88
+ className: "".concat(classPrefix, "-firthline")
89
+ }, firthKeys.map(function (item, index) {
90
+ return React.createElement("div", {
91
+ key: item || index,
92
+ className: item == '123' ? "".concat(classPrefix, "-darkkey") : item == '⌨' ? " ".concat(classPrefix, "-darkkey ").concat(classPrefix, "-keybord") : item == '空格' ? "".concat(classPrefix, "-space") : "".concat(classPrefix, "-firthline-confirm"),
93
+ onClick: function () {
94
+ if (visible) {
95
+ onKeyPress(item);
96
+ }
97
+ }
98
+ }, imgKeys.includes(item) ? '' : item);
99
+ }))));
100
+ }
@@ -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;
@@ -1,3 +1,4 @@
1
1
  import "./stock-keyboard.css";
2
+ import "./alphabet-keyboard.css";
2
3
  import { StockKeyboard } from "./stock-keyboard";
3
4
  export default 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;
@@ -1,8 +1,9 @@
1
1
  import cns from "classnames";
2
- import { useEffect, useRef } from "react";
2
+ import { useEffect, useRef, useState } from "react";
3
3
  import React from "react";
4
4
  import { withNativeProps } from '../../utils/native-props';
5
5
  import { mergeProps } from '../../utils/with-default-props';
6
+ import { AlphabetKeyboard } from "./alphabet-keyboard";
6
7
  var classPrefix = 'ebscn-stock-keyboard';
7
8
  var defaultProps = {
8
9
  visible: false
@@ -16,13 +17,15 @@ export function StockKeyboard(p) {
16
17
  onClose = props.onClose,
17
18
  onClean = props.onClean,
18
19
  onConfirm = props.onConfirm,
19
- onChangeKeyBoard = props.onChangeKeyBoard;
20
- var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '', '确定'];
21
- var leftKeys = ['600', '601', '000', '002', '300'];
20
+ onSelectCN = props.onSelectCN;
21
+ var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '002', '确定'];
22
+ var leftKeys = ['600', '601', '000', '300'];
22
23
  var hideTimer = useRef(null);
23
24
  var appearTimer = useRef(null);
24
25
  var lastVisible = useRef(null);
25
- var keyFlag = useRef(0);
26
+ var _a = useState(1),
27
+ keyboardType = _a[0],
28
+ setKeyboardType = _a[1];
26
29
  useEffect(function () {
27
30
  if (!visible) {
28
31
  if (lastVisible.current) {
@@ -62,7 +65,9 @@ export function StockKeyboard(p) {
62
65
  case '确定':
63
66
  return onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
64
67
  case 'ABC':
65
- return onChangeKeyBoard === null || onChangeKeyBoard === void 0 ? void 0 : onChangeKeyBoard();
68
+ setKeyboardType(2);
69
+ return;
70
+ //return onChangeKeyBoard?.()
66
71
  default:
67
72
  return onInput === null || onInput === void 0 ? void 0 : onInput(key);
68
73
  }
@@ -71,6 +76,25 @@ export function StockKeyboard(p) {
71
76
  ref: keyboardRef,
72
77
  className: "".concat(classPrefix)
73
78
  }, React.createElement("div", {
79
+ className: "".concat(classPrefix, "-top")
80
+ }, React.createElement("div", {
81
+ onClick: function () {
82
+ return setKeyboardType(1);
83
+ },
84
+ className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 1 ? "".concat(classPrefix, "-top-item-active") : '')
85
+ }, "123"), React.createElement("div", {
86
+ onClick: function () {
87
+ return setKeyboardType(2);
88
+ },
89
+ className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 2 ? "".concat(classPrefix, "-top-item-active") : '')
90
+ }, "ABC"), React.createElement("div", {
91
+ onClick: function () {
92
+ return onSelectCN();
93
+ },
94
+ className: "".concat(classPrefix, "-top-item")
95
+ }, "\u4E2D\u6587")), keyboardType === 1 ? React.createElement("div", {
96
+ className: "".concat(classPrefix, "-bottom")
97
+ }, " ", React.createElement("div", {
74
98
  className: "".concat(classPrefix, "-left")
75
99
  }, leftKeys.map(function (item, index) {
76
100
  return React.createElement("div", {
@@ -83,17 +107,25 @@ export function StockKeyboard(p) {
83
107
  }
84
108
  }, item !== 'X' ? item : '');
85
109
  })), React.createElement("div", {
86
- ref: keyboardRef,
87
110
  className: "".concat(classPrefix, "-right")
88
111
  }, keys.map(function (item, index) {
89
112
  return React.createElement("div", {
90
113
  key: item || index,
91
- className: cns(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")),
114
+ className: cns(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")),
92
115
  onClick: function () {
93
116
  if (visible) {
94
117
  onKeyPress(item);
95
118
  }
96
119
  }
97
120
  }, item !== 'X' ? item : '');
98
- }))));
121
+ }))) : React.createElement(AlphabetKeyboard, {
122
+ visible: true,
123
+ onConfirm: onConfirm,
124
+ onDelete: onDelete,
125
+ onClose: onClose,
126
+ onInput: onInput,
127
+ onChangeKeyBoard: function () {
128
+ return setKeyboardType(1);
129
+ }
130
+ })));
99
131
  }
@@ -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/es/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/es/index.js CHANGED
@@ -38,7 +38,7 @@ export { default as Tabs } from './components/tabs';
38
38
  export { default as Tip } from './components/tip';
39
39
  export { default as ToastLoading } from './components/toastLoading';
40
40
  export { default as Input } from './components/input';
41
- export { default as PayInput } from './components/pay-input';
42
- export { default as MoneyInput } from './components/money-input';
43
- export { default as FeneInput } from './components/fene-input';
44
- export { default as CommonInput } from './components/common-input';
41
+ // export { default as PayInput} from './components/pay-input';
42
+ // export { default as MoneyInput } from './components/money-input';
43
+ // export { default as FeneInput } from './components/fene-input';
44
+ // export { default as CommonInput } from './components/common-input';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebscn/ui",
3
- "version": "1.0.3-beta.4",
3
+ "version": "1.0.3-beta.7",
4
4
  "description": "ebscn react library",
5
5
  "module": "./es/index.js",
6
6
  "types": "./es/index.d.ts",