@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.
- package/assets/images/delete_dark.png +0 -0
- package/assets/images/keybord_keybord_dark.png +0 -0
- package/assets/images/keybord_shift_dark.png +0 -0
- package/cjs/assets/images/delete_dark.png +0 -0
- package/cjs/assets/images/keybord_keybord_dark.png +0 -0
- package/cjs/assets/images/keybord_shift_dark.png +0 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +29 -14
- package/cjs/components/card/card.js +2 -2
- package/cjs/components/icons/back-icon.js +1 -0
- package/cjs/components/icons/clear-icon.js +1 -0
- package/cjs/components/icons/close-icon.js +2 -1
- package/cjs/components/icons/notice-icon.js +2 -1
- package/cjs/components/icons/right-icon.js +1 -0
- package/cjs/components/input/input.css +27 -27
- package/cjs/components/input/input.js +1 -1
- package/cjs/components/number-keyboard/number-keyboard.css +16 -36
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +32 -38
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
- package/cjs/components/stock-keyboard/alphabet-keyboard.css +136 -0
- package/cjs/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
- package/cjs/components/stock-keyboard/alphabet-keyboard.js +107 -0
- package/cjs/components/stock-keyboard/index.d.ts +1 -0
- package/cjs/components/stock-keyboard/index.js +1 -0
- package/cjs/components/stock-keyboard/stock-keyboard.css +79 -70
- package/cjs/components/stock-keyboard/stock-keyboard.d.ts +2 -2
- package/cjs/components/stock-keyboard/stock-keyboard.js +40 -8
- package/cjs/global/global.css +11 -2
- package/cjs/global/theme-dark.css +7 -2
- package/cjs/global/theme-default.css +4 -0
- package/cjs/index.d.ts +0 -4
- package/cjs/index.js +1 -33
- package/es/assets/images/delete_dark.png +0 -0
- package/es/assets/images/keybord_keybord_dark.png +0 -0
- package/es/assets/images/keybord_shift_dark.png +0 -0
- package/es/components/alphabet-keyboard/alphabet-keyboard.css +29 -14
- package/es/components/card/card.js +2 -2
- package/es/components/icons/back-icon.js +1 -0
- package/es/components/icons/clear-icon.js +1 -0
- package/es/components/icons/close-icon.js +2 -1
- package/es/components/icons/notice-icon.js +2 -1
- package/es/components/icons/right-icon.js +1 -0
- package/es/components/input/input.css +27 -27
- package/es/components/input/input.js +1 -1
- package/es/components/number-keyboard/number-keyboard.css +16 -36
- package/es/components/stock-count-keyboard/stock-count-keyboard.css +32 -38
- package/es/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
- package/es/components/stock-keyboard/alphabet-keyboard.css +136 -0
- package/es/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
- package/es/components/stock-keyboard/alphabet-keyboard.js +100 -0
- package/es/components/stock-keyboard/index.d.ts +1 -0
- package/es/components/stock-keyboard/index.js +1 -0
- package/es/components/stock-keyboard/stock-keyboard.css +79 -70
- package/es/components/stock-keyboard/stock-keyboard.d.ts +2 -2
- package/es/components/stock-keyboard/stock-keyboard.js +41 -9
- package/es/global/global.css +11 -2
- package/es/global/theme-dark.css +7 -2
- package/es/global/theme-default.css +4 -0
- package/es/index.d.ts +0 -4
- package/es/index.js +4 -4
- 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,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:
|
|
13
|
+
height: 267px;
|
|
9
14
|
transition: all 0.5s;
|
|
10
15
|
align-content: flex-start;
|
|
11
16
|
}
|
|
12
|
-
.ebscn-stock-keyboard
|
|
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:
|
|
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:
|
|
23
|
-
}
|
|
24
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right-key
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
background:
|
|
49
|
-
}
|
|
50
|
-
.ebscn-stock-keyboard .ebscn-stock-keyboard-right-option
|
|
51
|
-
font-size: var(--ebscn-font-size-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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)
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
98
|
-
line-height:
|
|
99
|
-
|
|
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
|
-
|
|
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(
|
|
109
|
-
height: calc(
|
|
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
|
|
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
|
-
|
|
20
|
-
var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '', '确定'];
|
|
21
|
-
var leftKeys = ['600', '601', '000', '
|
|
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
|
|
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
|
-
|
|
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
|
}
|
package/es/global/global.css
CHANGED
|
@@ -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-
|
|
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: #
|
|
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);
|
package/es/global/theme-dark.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
html[data-prefers-color-scheme='dark'] {
|
|
2
|
-
--ebscn-color-
|
|
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: #
|
|
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
|
|
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';
|