@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
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ebscn-color-keyboard-bg: #d2d5d8;
|
|
3
|
+
--ebscn-color-keyboard-key-bg: #fff;
|
|
4
|
+
--ebscn-color-functionkey-background: #adb3bd;
|
|
5
|
+
--ebscn-color-keyboard-active-background: #E5E5E5;
|
|
6
|
+
}
|
|
7
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-keybord {
|
|
8
|
+
background: url(../../assets/images/keybord_keybord_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
9
|
+
background-size: 24px 24px;
|
|
10
|
+
}
|
|
11
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-delete {
|
|
12
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
13
|
+
background-size: 24px 24px;
|
|
14
|
+
}
|
|
15
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
16
|
+
background: url(../../assets/images/keybord_shift_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
17
|
+
background-size: 24px 24px;
|
|
18
|
+
}
|
|
1
19
|
.ebscn-alphabet-keyboard {
|
|
2
20
|
position: fixed;
|
|
3
21
|
bottom: 0;
|
|
@@ -7,7 +25,7 @@
|
|
|
7
25
|
width: 100%;
|
|
8
26
|
transition: all 0.5s;
|
|
9
27
|
align-content: flex-start;
|
|
10
|
-
background:
|
|
28
|
+
background-color: var(--ebscn-color-keyboard-bg);
|
|
11
29
|
}
|
|
12
30
|
.ebscn-alphabet-keyboard-darkkey {
|
|
13
31
|
display: flex;
|
|
@@ -16,25 +34,24 @@
|
|
|
16
34
|
width: 11.2%;
|
|
17
35
|
height: 42px;
|
|
18
36
|
border-radius: 5px;
|
|
19
|
-
|
|
20
|
-
background: #adb3bd;
|
|
37
|
+
background-color: var(--ebscn-color-functionkey-background);
|
|
21
38
|
font-size: var(--ebscn-font-size-9);
|
|
22
39
|
}
|
|
23
40
|
.ebscn-alphabet-keyboard-darkkey:active {
|
|
24
|
-
background:
|
|
41
|
+
background-color: var(--ebscn-color-keyboard-active-background);
|
|
25
42
|
}
|
|
26
43
|
.ebscn-alphabet-keyboard-shift {
|
|
27
44
|
margin-right: 3.73%;
|
|
28
|
-
background: url(../../assets/images/keybord_shift.png)
|
|
45
|
+
background: url(../../assets/images/keybord_shift.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
29
46
|
background-size: 17px 17px;
|
|
30
47
|
}
|
|
31
48
|
.ebscn-alphabet-keyboard-delete {
|
|
32
49
|
margin-left: 2.26%;
|
|
33
|
-
background: url(../../assets/images/delete.png)
|
|
50
|
+
background: url(../../assets/images/delete.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
34
51
|
background-size: 24px 24px;
|
|
35
52
|
}
|
|
36
53
|
.ebscn-alphabet-keyboard-keybord {
|
|
37
|
-
background: url(../../assets/images/keybord_keybord.png)
|
|
54
|
+
background: url(../../assets/images/keybord_keybord.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
38
55
|
background-size: 24px 18px;
|
|
39
56
|
}
|
|
40
57
|
.ebscn-alphabet-keyboard-space {
|
|
@@ -43,9 +60,9 @@
|
|
|
43
60
|
justify-content: center;
|
|
44
61
|
width: 48.4%;
|
|
45
62
|
height: 42px;
|
|
46
|
-
background: var(--ebscn-color-
|
|
63
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
47
64
|
border-radius: 5px;
|
|
48
|
-
|
|
65
|
+
font-size: 16px;
|
|
49
66
|
}
|
|
50
67
|
.ebscn-alphabet-keyboard-space:active {
|
|
51
68
|
background: var(--ebscn-color-border);
|
|
@@ -57,7 +74,7 @@
|
|
|
57
74
|
display: flex;
|
|
58
75
|
justify-content: space-between;
|
|
59
76
|
width: 100%;
|
|
60
|
-
padding-top: 3
|
|
77
|
+
padding-top: 3%;
|
|
61
78
|
}
|
|
62
79
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline-key,
|
|
63
80
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key,
|
|
@@ -68,9 +85,8 @@
|
|
|
68
85
|
justify-content: center;
|
|
69
86
|
width: 8.4%;
|
|
70
87
|
height: 42px;
|
|
71
|
-
background: var(--ebscn-color-
|
|
88
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
72
89
|
border-radius: 5px;
|
|
73
|
-
box-shadow: 0px 0.5px 0px 0px #888888;
|
|
74
90
|
font-size: 23px;
|
|
75
91
|
font-weight: 400;
|
|
76
92
|
text-align: center;
|
|
@@ -108,11 +124,10 @@
|
|
|
108
124
|
height: 42px;
|
|
109
125
|
background: var(--ebscn-color-primary);
|
|
110
126
|
border-radius: 5px;
|
|
111
|
-
box-shadow: 0px 0.5px 0px 0px #888888;
|
|
112
127
|
font-size: 16px;
|
|
113
128
|
font-weight: 400;
|
|
114
129
|
text-align: center;
|
|
115
|
-
color:
|
|
130
|
+
color: #fff;
|
|
116
131
|
line-height: 22.5px;
|
|
117
132
|
}
|
|
118
133
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm:active {
|
|
@@ -9,7 +9,7 @@ export default function Card(props) {
|
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
11
11
|
return React.createElement("div", {
|
|
12
|
-
className: cns("".concat(classPrefix, "-header"), "".concat(
|
|
12
|
+
className: cns("".concat(classPrefix, "-header"), "".concat(typeClassName, "-header"), props.headerClassName),
|
|
13
13
|
style: props.headerStyle,
|
|
14
14
|
onClick: props.onHeaderClick
|
|
15
15
|
}, React.createElement("div", {
|
|
@@ -21,7 +21,7 @@ export default function Card(props) {
|
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
return React.createElement("div", {
|
|
24
|
-
className: cns("".concat(classPrefix, "-body"), "".concat(
|
|
24
|
+
className: cns("".concat(classPrefix, "-body"), "".concat(typeClassName, "-body"), props.bodyClassName),
|
|
25
25
|
style: props.bodyStyle,
|
|
26
26
|
onClick: props.onBodyClick
|
|
27
27
|
}, props.children);
|
|
@@ -10,6 +10,7 @@ var BackIcon = memo(function (props) {
|
|
|
10
10
|
width: "1em",
|
|
11
11
|
height: "1em"
|
|
12
12
|
}, React.createElement("path", {
|
|
13
|
+
fill: "currentColor",
|
|
13
14
|
d: "M361.344 121.392a32 32 0 0 1 45.312 45.216l-334.4 335.136a15.6 15.6 0 0 0 0.032 22.064l334.32 333.536a32 32 0 1 1-45.216 45.312L27.088 569.104a79.6 79.6 0 0 1-0.128-112.56l334.4-335.152z",
|
|
14
15
|
"p-id": "8061"
|
|
15
16
|
})));
|
|
@@ -10,6 +10,7 @@ var ClearIcon = memo(function (props) {
|
|
|
10
10
|
width: "1em",
|
|
11
11
|
height: "1em"
|
|
12
12
|
}, React.createElement("path", {
|
|
13
|
+
fill: "currentColor",
|
|
13
14
|
d: "M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zM342.624 297.376a32 32 0 0 0-45.248 0l-1.872 2.032a32 32 0 0 0 1.872 43.216L466.72 512 297.376 681.376a32 32 0 0 0 0 45.248l2.032 1.872a32 32 0 0 0 43.216-1.872L512 557.248l169.376 169.376a32 32 0 0 0 45.248 0l1.872-2.032a32 32 0 0 0-1.872-43.216L557.248 512l169.376-169.376a32 32 0 0 0 0-45.248l-2.032-1.872a32 32 0 0 0-43.216 1.872L512 466.72z",
|
|
14
15
|
"p-id": "8691"
|
|
15
16
|
})));
|
|
@@ -8,7 +8,8 @@ var CloseIcon = memo(function (props) {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
"p-id": "8217",
|
|
10
10
|
width: "1em",
|
|
11
|
-
height: "1em"
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: "currentColor"
|
|
12
13
|
}, React.createElement("path", {
|
|
13
14
|
d: "M137.376 137.376a32 32 0 0 1 45.248 0l712.768 712.768a32 32 0 1 1-45.248 45.248L137.376 182.624a32 32 0 0 1 0-45.248z",
|
|
14
15
|
"p-id": "8218"
|
|
@@ -8,7 +8,8 @@ var NoticeIcon = memo(function (props) {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
"p-id": "8375",
|
|
10
10
|
width: "1em",
|
|
11
|
-
height: "1em"
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: "currentColor"
|
|
12
13
|
}, React.createElement("path", {
|
|
13
14
|
d: "M614.4 268.8a32 32 0 0 1 44.8-6.4C752.128 332.096 800 415.872 800 512c0 96.128-47.872 179.904-140.8 249.6a32 32 0 1 1-38.4-51.2C698.528 652.096 736 586.528 736 512s-37.472-140.096-115.2-198.4a32 32 0 0 1-6.4-44.8zM370.368 108.352A96 96 0 0 1 544 164.8v694.368a96 96 0 0 1-173.632 56.48L249.28 749.168A32 32 0 0 0 223.408 736H176a112 112 0 0 1-112-112V400a112 112 0 0 1 112-112h47.408a32 32 0 0 0 25.888-13.184l121.072-166.464z m96.448 30.576a32 32 0 0 0-44.688 7.056L301.056 312.48A96 96 0 0 1 223.408 352H176a48 48 0 0 0-48 48v224a48 48 0 0 0 48 48h47.408a96 96 0 0 1 77.648 39.536l121.072 166.48A32 32 0 0 0 480 859.184V164.816a32 32 0 0 0-13.184-25.888z",
|
|
14
15
|
fill: "#333333",
|
|
@@ -10,6 +10,7 @@ var RightIcon = memo(function (props) {
|
|
|
10
10
|
width: "1em",
|
|
11
11
|
height: "1em"
|
|
12
12
|
}, React.createElement("path", {
|
|
13
|
+
fill: "currentColor",
|
|
13
14
|
d: "M662.656 121.392a32 32 0 0 0-45.312 45.216l334.4 335.136c6.08 6.096 6.064 15.968-0.032 22.064L617.392 857.344a32 32 0 1 0 45.216 45.312l334.304-333.552a79.6 79.6 0 0 0 0.128-112.56l-334.4-335.152z",
|
|
14
15
|
"p-id": "8534"
|
|
15
16
|
})));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.
|
|
2
|
-
--font-size: var(--
|
|
3
|
-
--color: var(--
|
|
4
|
-
--placeholder-color: var(--
|
|
1
|
+
.ebscn-input {
|
|
2
|
+
--font-size: var(--ebscn-font-size-9);
|
|
3
|
+
--color: var(--ebscn-color-text);
|
|
4
|
+
--placeholder-color: var(--ebscn-color-light);
|
|
5
5
|
--text-align: left;
|
|
6
6
|
--background-color: transparent;
|
|
7
7
|
display: flex;
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
min-height: 24px;
|
|
14
14
|
background-color: var(--background-color);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.ebscn-input-disabled {
|
|
17
17
|
opacity: 0.4;
|
|
18
18
|
cursor: not-allowed;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.ebscn-input-element {
|
|
21
21
|
flex: auto;
|
|
22
22
|
display: inline-block;
|
|
23
23
|
box-sizing: border-box;
|
|
@@ -37,60 +37,60 @@
|
|
|
37
37
|
min-height: 1.5em;
|
|
38
38
|
text-align: var(--text-align);
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
.ebscn-input-element::-webkit-input-placeholder {
|
|
41
41
|
color: var(--placeholder-color);
|
|
42
42
|
font-family: inherit;
|
|
43
43
|
}
|
|
44
|
-
.
|
|
44
|
+
.ebscn-input-element::placeholder {
|
|
45
45
|
color: var(--placeholder-color);
|
|
46
46
|
font-family: inherit;
|
|
47
47
|
}
|
|
48
|
-
.
|
|
48
|
+
.ebscn-input-element:-webkit-autofill {
|
|
49
49
|
background-color: transparent;
|
|
50
50
|
}
|
|
51
|
-
.
|
|
51
|
+
.ebscn-input-element:read-only {
|
|
52
52
|
cursor: default;
|
|
53
53
|
}
|
|
54
|
-
.
|
|
54
|
+
.ebscn-input-element:invalid {
|
|
55
55
|
box-shadow: none;
|
|
56
56
|
}
|
|
57
|
-
.
|
|
57
|
+
.ebscn-input-element::-ms-clear {
|
|
58
58
|
display: none;
|
|
59
59
|
}
|
|
60
|
-
.
|
|
60
|
+
.ebscn-input-element::-ms-reveal {
|
|
61
61
|
display: none;
|
|
62
62
|
}
|
|
63
|
-
.
|
|
63
|
+
.ebscn-input-element::-webkit-search-cancel-button {
|
|
64
64
|
display: none;
|
|
65
65
|
}
|
|
66
|
-
.
|
|
66
|
+
.ebscn-input-element::-webkit-search-decoration {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
|
-
.
|
|
69
|
+
.ebscn-input-element:disabled {
|
|
70
70
|
opacity: 1;
|
|
71
71
|
}
|
|
72
|
-
.
|
|
73
|
-
.
|
|
74
|
-
.
|
|
72
|
+
.ebscn-input-element[type='date'],
|
|
73
|
+
.ebscn-input-element[type='time'],
|
|
74
|
+
.ebscn-input-element[type='datetime-local'] {
|
|
75
75
|
min-height: 1.5em;
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.ebscn-input-element[type='search'] {
|
|
78
78
|
-webkit-appearance: none;
|
|
79
79
|
}
|
|
80
|
-
.
|
|
80
|
+
.ebscn-input-element[readonly] {
|
|
81
81
|
pointer-events: none;
|
|
82
82
|
}
|
|
83
|
-
.
|
|
83
|
+
.ebscn-input-clear {
|
|
84
84
|
flex: none;
|
|
85
85
|
margin-left: 8px;
|
|
86
|
-
color: var(--
|
|
86
|
+
color: var(--ebscn-color-light);
|
|
87
87
|
padding: 4px;
|
|
88
88
|
cursor: pointer;
|
|
89
89
|
}
|
|
90
|
-
.
|
|
91
|
-
color: var(--
|
|
90
|
+
.ebscn-input-clear:active {
|
|
91
|
+
color: var(--ebscn-color-weak);
|
|
92
92
|
}
|
|
93
|
-
.
|
|
93
|
+
.ebscn-input-clear .antd-mobile-icon {
|
|
94
94
|
display: block;
|
|
95
|
-
font-size: var(--
|
|
95
|
+
font-size: var(--ebscn-font-size-7);
|
|
96
96
|
}
|
|
@@ -7,7 +7,7 @@ import classNames from 'classnames';
|
|
|
7
7
|
import { useIsomorphicLayoutEffect } from 'ahooks';
|
|
8
8
|
import { bound } from '../../utils/bound';
|
|
9
9
|
import { isIOS } from '../../utils/validate';
|
|
10
|
-
var classPrefix = "
|
|
10
|
+
var classPrefix = "ebscn-input";
|
|
11
11
|
var defaultProps = {
|
|
12
12
|
defaultValue: '',
|
|
13
13
|
onlyShowClearWhenFocus: true
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
--ebscn-color-
|
|
3
|
-
|
|
4
|
-
--ebscn-color-functionkey-background: #adb3bd;
|
|
5
|
-
--ebscn-color-keyboard-active-background: #E5E5E5;
|
|
6
|
-
}
|
|
7
|
-
html[data-prefers-color-scheme='dark'] {
|
|
8
|
-
--ebscn-color-keyboard-bg: #1a1a1a;
|
|
9
|
-
--ebscn-color-keyboard-key-bg: #474747;
|
|
10
|
-
--ebscn-color-functionkey-background: #292929;
|
|
11
|
-
--ebscn-color-keyboard-active-background: #323232;
|
|
1
|
+
html[data-prefers-color-scheme='dark'] .ebscn-number-keyboard-delete {
|
|
2
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
3
|
+
background-size: 24px 24px;
|
|
12
4
|
}
|
|
13
5
|
.ebscn-number-keyboard {
|
|
14
6
|
display: none;
|
|
@@ -26,35 +18,31 @@ html[data-prefers-color-scheme='dark'] {
|
|
|
26
18
|
transition: all 0.5s;
|
|
27
19
|
align-content: flex-start;
|
|
28
20
|
}
|
|
29
|
-
.ebscn-number-keyboard
|
|
30
|
-
|
|
31
|
-
color: var(--ebscn-color-background);
|
|
32
|
-
}
|
|
33
|
-
.ebscn-number-keyboard-key {
|
|
21
|
+
.ebscn-number-keyboard-key,
|
|
22
|
+
.ebscn-number-keyboard-confirmKey {
|
|
34
23
|
width: calc(25% - 7.5px);
|
|
35
|
-
height:
|
|
36
|
-
line-height:
|
|
24
|
+
height: 48.5px;
|
|
25
|
+
line-height: 48.5px;
|
|
37
26
|
border-radius: 4.17px;
|
|
38
27
|
margin: 3px;
|
|
39
28
|
text-align: center;
|
|
40
|
-
font-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
font-
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
}
|
|
31
|
+
.ebscn-number-keyboard-key {
|
|
32
|
+
font-size: 23px;
|
|
44
33
|
color: var(--ebscn-color-text);
|
|
45
|
-
box-shadow: 0 0 0 1px #cccccc;
|
|
46
34
|
background: var(--ebscn-color-keyboard-key-bg);
|
|
47
35
|
}
|
|
48
36
|
.ebscn-number-keyboard-key:active {
|
|
49
37
|
background: var(--ebscn-color-keyboard-active-background);
|
|
50
38
|
}
|
|
51
39
|
.ebscn-number-keyboard-option {
|
|
52
|
-
font-size: var(--ebscn-font-size-
|
|
40
|
+
font-size: var(--ebscn-font-size-10);
|
|
53
41
|
color: var(--ebscn-color-text);
|
|
54
42
|
background-color: var(--ebscn-color-functionkey-background);
|
|
55
43
|
}
|
|
56
44
|
.ebscn-number-keyboard-option:active {
|
|
57
|
-
font-size: var(--ebscn-font-size-
|
|
45
|
+
font-size: var(--ebscn-font-size-10);
|
|
58
46
|
background-color: var(--ebscn-color-keyboard-active-background);
|
|
59
47
|
}
|
|
60
48
|
.ebscn-number-keyboard-delete {
|
|
@@ -67,20 +55,12 @@ html[data-prefers-color-scheme='dark'] {
|
|
|
67
55
|
}
|
|
68
56
|
.ebscn-number-keyboard-confirmKey {
|
|
69
57
|
background-color: var(--ebscn-color-primary);
|
|
70
|
-
width: calc(25% -
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
text-align: center;
|
|
74
|
-
border-radius: 4.17px;
|
|
75
|
-
margin: 3px;
|
|
76
|
-
font-size: var(--ebscn-font-size-11);
|
|
77
|
-
color: var(--ebscn-color-text-dark-solid);
|
|
78
|
-
font-weight: 300;
|
|
79
|
-
box-shadow: 0 0 0 1px #cccccc;
|
|
58
|
+
width: calc(25% - 6px);
|
|
59
|
+
font-size: var(--ebscn-font-size-10);
|
|
60
|
+
color: var(--ebscn-color-white);
|
|
80
61
|
}
|
|
81
62
|
.ebscn-number-keyboard-confirmKey:active {
|
|
82
63
|
background-color: #D03B21;
|
|
83
|
-
color: var(--ebscn-color-background);
|
|
84
64
|
}
|
|
85
65
|
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
86
66
|
.ebscn-number-keyboard {
|
|
@@ -1,74 +1,68 @@
|
|
|
1
|
+
html[data-prefers-color-scheme='dark'] .ebscn-stock-count-keyboard-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-count-keyboard {
|
|
2
6
|
display: none;
|
|
3
7
|
position: fixed;
|
|
8
|
+
z-index: 999;
|
|
4
9
|
bottom: 0;
|
|
5
10
|
transform: translateY(101%);
|
|
6
11
|
display: flex;
|
|
7
12
|
flex-wrap: wrap;
|
|
8
13
|
width: 100%;
|
|
9
|
-
height:
|
|
14
|
+
height: 223px;
|
|
15
|
+
background-color: var(--ebscn-color-keyboard-bg);
|
|
16
|
+
padding: 3px;
|
|
10
17
|
transition: all 0.5s;
|
|
11
18
|
align-content: flex-start;
|
|
12
19
|
}
|
|
13
|
-
.ebscn-stock-count-keyboard
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
.ebscn-stock-count-keyboard-key,
|
|
21
|
+
.ebscn-stock-count-keyboard-confirmKey {
|
|
22
|
+
border-radius: 4.17px;
|
|
23
|
+
width: calc(20% - 7.5px);
|
|
24
|
+
margin: 3px;
|
|
25
|
+
height: 48px;
|
|
26
|
+
text-align: center;
|
|
27
|
+
line-height: 48px;
|
|
28
|
+
font-weight: 400;
|
|
16
29
|
}
|
|
17
30
|
.ebscn-stock-count-keyboard-key {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
line-height: 54px;
|
|
22
|
-
font-size: 24px;
|
|
23
|
-
color: var(--ebscn-color-text-dark-solid);
|
|
24
|
-
font-weight: 300;
|
|
25
|
-
box-shadow: 0 0 0 1px #cccccc;
|
|
26
|
-
background: var(--ebscn-color-background);
|
|
31
|
+
font-size: 23px;
|
|
32
|
+
color: var(--ebscn-color-text);
|
|
33
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
27
34
|
}
|
|
28
35
|
.ebscn-stock-count-keyboard-key:active {
|
|
29
|
-
|
|
30
|
-
height: 54px;
|
|
31
|
-
text-align: center;
|
|
32
|
-
font-size: 24px;
|
|
33
|
-
color: var(--ebscn-color-text-dark-solid);
|
|
34
|
-
font-weight: 300;
|
|
35
|
-
box-shadow: 0 0 0 1px #cccccc;
|
|
36
|
-
background: var(--ebscn-color-border);
|
|
36
|
+
background: var(--ebscn-color-keyboard-active-background);
|
|
37
37
|
}
|
|
38
38
|
.ebscn-stock-count-keyboard-option {
|
|
39
|
-
font-size: var(--ebscn-font-size-
|
|
40
|
-
|
|
39
|
+
font-size: var(--ebscn-font-size-10);
|
|
40
|
+
color: var(--ebscn-color-text);
|
|
41
|
+
background-color: var(--ebscn-color-functionkey-background);
|
|
41
42
|
}
|
|
42
43
|
.ebscn-stock-count-keyboard-option:active {
|
|
43
|
-
font-size: var(--ebscn-font-size-
|
|
44
|
-
background:
|
|
44
|
+
font-size: var(--ebscn-font-size-10);
|
|
45
|
+
background-color: var(--ebscn-color-keyboard-active-background);
|
|
45
46
|
}
|
|
46
47
|
.ebscn-stock-count-keyboard-delete {
|
|
47
|
-
background: url(../../assets/images/delete.png)
|
|
48
|
+
background: url(../../assets/images/delete.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
48
49
|
background-size: 24px 24px;
|
|
49
50
|
}
|
|
50
51
|
.ebscn-stock-count-keyboard-delete:active {
|
|
51
|
-
background: url(../../assets/images/delete.png)
|
|
52
|
+
background: url(../../assets/images/delete.png) var(--ebscn-color-keyboard-active-background) no-repeat center;
|
|
52
53
|
background-size: 24px 24px;
|
|
53
54
|
}
|
|
54
55
|
.ebscn-stock-count-keyboard-confirmKey {
|
|
55
56
|
background-color: var(--ebscn-color-primary);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
line-height: 54px;
|
|
59
|
-
text-align: center;
|
|
60
|
-
font-size: var(--ebscn-font-size-11);
|
|
61
|
-
color: var(--ebscn-color-text-dark-solid);
|
|
62
|
-
font-weight: 300;
|
|
63
|
-
box-shadow: 0 0 0 1px #cccccc;
|
|
57
|
+
font-size: var(--ebscn-font-size-10);
|
|
58
|
+
color: var(--ebscn-color-white);
|
|
64
59
|
}
|
|
65
60
|
.ebscn-stock-count-keyboard-confirmKey:active {
|
|
66
61
|
background-color: #D03B21;
|
|
67
|
-
color: var(--ebscn-color-background);
|
|
68
62
|
}
|
|
69
63
|
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
70
64
|
.ebscn-stock-count-keyboard {
|
|
71
|
-
height: calc(
|
|
72
|
-
height: calc(
|
|
65
|
+
height: calc(223px + env(safe-area-inset-bottom));
|
|
66
|
+
height: calc(223px + constant(safe-area-inset-bottom));
|
|
73
67
|
}
|
|
74
68
|
}
|
|
@@ -63,7 +63,7 @@ export function StockCountKeyboard(p) {
|
|
|
63
63
|
}, keys.map(function (item, index) {
|
|
64
64
|
return React.createElement("div", {
|
|
65
65
|
key: item || index,
|
|
66
|
-
className: cns(item !== '确定' ? "".concat(classPrefix, "-key") : "".concat(classPrefix, "-confirmKey"), typeof item !== 'number' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-option") : item == '确定' ? "".concat(classPrefix, "-confirmKey") : "".concat(classPrefix, "-number-key"), item === 'X' && "".concat(classPrefix, "-delete")),
|
|
66
|
+
className: cns(item !== '确定' ? "".concat(classPrefix, "-key") : "".concat(classPrefix, "-confirmKey"), typeof item !== 'number' && item !== '00' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-option") : item == '确定' ? "".concat(classPrefix, "-confirmKey") : "".concat(classPrefix, "-number-key"), item === 'X' && "".concat(classPrefix, "-delete")),
|
|
67
67
|
onClick: function () {
|
|
68
68
|
if (visible) {
|
|
69
69
|
onKeyPress(item);
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-keybord {
|
|
2
|
+
background: url(../../assets/images/keybord_keybord_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
3
|
+
background-size: 24px 24px;
|
|
4
|
+
}
|
|
5
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-delete {
|
|
6
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
7
|
+
background-size: 24px 24px;
|
|
8
|
+
}
|
|
9
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift {
|
|
10
|
+
background: url(../../assets/images/keybord_shift_dark.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
11
|
+
background-size: 24px 24px;
|
|
12
|
+
}
|
|
13
|
+
.ebscn-alphabet-keyboard-extra {
|
|
14
|
+
position: relative;
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
width: 100%;
|
|
19
|
+
align-content: flex-start;
|
|
20
|
+
background-color: var(--ebscn-color-keyboard-bg);
|
|
21
|
+
}
|
|
22
|
+
.ebscn-alphabet-keyboard-extra-darkkey {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
width: 11.2%;
|
|
27
|
+
height: 42px;
|
|
28
|
+
border-radius: 5px;
|
|
29
|
+
background-color: var(--ebscn-color-functionkey-background);
|
|
30
|
+
font-size: var(--ebscn-font-size-9);
|
|
31
|
+
}
|
|
32
|
+
.ebscn-alphabet-keyboard-extra-darkkey:active {
|
|
33
|
+
background-color: var(--ebscn-color-keyboard-active-background);
|
|
34
|
+
}
|
|
35
|
+
.ebscn-alphabet-keyboard-extra-shift {
|
|
36
|
+
margin-right: 3.73%;
|
|
37
|
+
background: url(../../assets/images/keybord_shift.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
38
|
+
background-size: 17px 17px;
|
|
39
|
+
}
|
|
40
|
+
.ebscn-alphabet-keyboard-extra-delete {
|
|
41
|
+
margin-left: 2.26%;
|
|
42
|
+
background: url(../../assets/images/delete.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
43
|
+
background-size: 24px 24px;
|
|
44
|
+
}
|
|
45
|
+
.ebscn-alphabet-keyboard-extra-keybord {
|
|
46
|
+
background: url(../../assets/images/keybord_keybord.png) var(--ebscn-color-functionkey-background) no-repeat center;
|
|
47
|
+
background-size: 24px 18px;
|
|
48
|
+
}
|
|
49
|
+
.ebscn-alphabet-keyboard-extra-space {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
width: 48.4%;
|
|
54
|
+
height: 42px;
|
|
55
|
+
border-radius: 5px;
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
58
|
+
}
|
|
59
|
+
.ebscn-alphabet-keyboard-extra-space:active {
|
|
60
|
+
background: var(--ebscn-color-border);
|
|
61
|
+
}
|
|
62
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firstline,
|
|
63
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-secondline,
|
|
64
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-thirdline,
|
|
65
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline {
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: space-between;
|
|
68
|
+
width: 100%;
|
|
69
|
+
padding-top: 3%;
|
|
70
|
+
}
|
|
71
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firstline-key,
|
|
72
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-secondline-key,
|
|
73
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-thirdline-key,
|
|
74
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline-key {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
width: 8.4%;
|
|
79
|
+
height: 42px;
|
|
80
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
81
|
+
border-radius: 5px;
|
|
82
|
+
font-size: 23px;
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
text-align: center;
|
|
85
|
+
color: var(--ebscn-color-text);
|
|
86
|
+
margin-right: 1.6%;
|
|
87
|
+
}
|
|
88
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firstline-key:active,
|
|
89
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-secondline-key:active,
|
|
90
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-thirdline-key:active,
|
|
91
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline-key:active {
|
|
92
|
+
background: var(--ebscn-color-border);
|
|
93
|
+
}
|
|
94
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firstline {
|
|
95
|
+
padding-left: 0.8%;
|
|
96
|
+
padding-right: 0.8%;
|
|
97
|
+
}
|
|
98
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-secondline {
|
|
99
|
+
padding-left: 5.73%;
|
|
100
|
+
padding-right: 5.73%;
|
|
101
|
+
}
|
|
102
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-thirdline {
|
|
103
|
+
padding-left: 0.8%;
|
|
104
|
+
padding-right: 0.8%;
|
|
105
|
+
}
|
|
106
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline {
|
|
107
|
+
padding-left: 0.8%;
|
|
108
|
+
padding-right: 0.8%;
|
|
109
|
+
padding-bottom: 1.06%;
|
|
110
|
+
}
|
|
111
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline-confirm {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
width: 23.46%;
|
|
116
|
+
height: 42px;
|
|
117
|
+
background: var(--ebscn-color-primary);
|
|
118
|
+
border-radius: 5px;
|
|
119
|
+
font-size: 16px;
|
|
120
|
+
font-weight: 400;
|
|
121
|
+
text-align: center;
|
|
122
|
+
color: #fff;
|
|
123
|
+
line-height: 22.5px;
|
|
124
|
+
}
|
|
125
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline-confirm:active {
|
|
126
|
+
background-color: #D03B21;
|
|
127
|
+
}
|
|
128
|
+
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline img {
|
|
129
|
+
height: 20%;
|
|
130
|
+
}
|
|
131
|
+
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
132
|
+
.ebscn-alphabet-keyboard-extra {
|
|
133
|
+
height: calc(223px + env(safe-area-inset-bottom));
|
|
134
|
+
height: calc(223px + constant(safe-area-inset-bottom));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NativeProps } from '../../utils/native-props';
|
|
3
|
+
export type AlphabetKeyboardProps = {
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
onInput: Function;
|
|
6
|
+
onDelete: Function;
|
|
7
|
+
onClose: Function;
|
|
8
|
+
onChangeKeyBoard?: Function;
|
|
9
|
+
onConfirm: Function;
|
|
10
|
+
} & NativeProps;
|
|
11
|
+
export declare function AlphabetKeyboard(p: AlphabetKeyboardProps): JSX.Element;
|