@ebscn/ui 1.0.3-beta.13 → 1.0.3-beta.16
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/keybord_shift2.png +0 -0
- package/assets/images/keybord_shift2_dark.png +0 -0
- package/cjs/assets/images/keybord_shift2.png +0 -0
- package/cjs/assets/images/keybord_shift2_dark.png +0 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +86 -49
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.js +1 -2
- package/cjs/components/button/selectorButton.css +2 -0
- package/cjs/components/button/selectorButton.js +1 -5
- package/cjs/components/checkbox/checkbox.css +8 -3
- package/cjs/components/divider/divider.css +4 -3
- package/cjs/components/header/header.css +7 -1
- package/cjs/components/header/header.js +4 -2
- package/cjs/components/number-keyboard/number-keyboard.css +30 -26
- package/cjs/components/number-keyboard/number-keyboard.js +1 -1
- package/cjs/components/picker-view/picker-view.css +3 -2
- package/cjs/components/selector/selector.css +1 -1
- package/cjs/components/skeleton/skeleton.css +4 -4
- package/cjs/components/squared-grid/squared-grid.css +1 -2
- package/cjs/components/squared-grid/squared-grid.d.ts +2 -1
- package/cjs/components/squared-grid/squared-grid.js +11 -2
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +25 -12
- package/cjs/components/stock-keyboard/alphabet-keyboard.css +74 -42
- package/cjs/components/stock-keyboard/alphabet-keyboard.js +1 -2
- package/cjs/components/stock-keyboard/stock-keyboard.css +59 -41
- package/cjs/components/stock-keyboard/stock-keyboard.js +2 -2
- package/cjs/components/switch/switch.css +2 -3
- package/cjs/components/tabs/tabs.css +4 -2
- package/cjs/components/tabs/tabs.js +4 -4
- package/cjs/global/global.css +13 -7
- package/cjs/global/theme-dark.css +5 -2
- package/cjs/global/theme-default.css +8 -5
- package/es/assets/images/keybord_shift2.png +0 -0
- package/es/assets/images/keybord_shift2_dark.png +0 -0
- package/es/components/alphabet-keyboard/alphabet-keyboard.css +86 -49
- package/es/components/alphabet-keyboard/alphabet-keyboard.js +2 -4
- package/es/components/button/selectorButton.css +2 -0
- package/es/components/button/selectorButton.js +1 -5
- package/es/components/checkbox/checkbox.css +8 -3
- package/es/components/divider/divider.css +4 -3
- package/es/components/header/header.css +7 -1
- package/es/components/header/header.js +4 -2
- package/es/components/number-keyboard/number-keyboard.css +30 -26
- package/es/components/number-keyboard/number-keyboard.js +1 -1
- package/es/components/picker-view/picker-view.css +3 -2
- package/es/components/selector/selector.css +1 -1
- package/es/components/skeleton/skeleton.css +4 -4
- package/es/components/squared-grid/squared-grid.css +1 -2
- package/es/components/squared-grid/squared-grid.d.ts +2 -1
- package/es/components/squared-grid/squared-grid.js +11 -2
- package/es/components/stock-count-keyboard/stock-count-keyboard.css +25 -12
- package/es/components/stock-keyboard/alphabet-keyboard.css +74 -42
- package/es/components/stock-keyboard/alphabet-keyboard.js +2 -4
- package/es/components/stock-keyboard/stock-keyboard.css +59 -41
- package/es/components/stock-keyboard/stock-keyboard.js +5 -6
- package/es/components/switch/switch.css +2 -3
- package/es/components/tabs/tabs.css +4 -2
- package/es/components/tabs/tabs.js +4 -4
- package/es/global/global.css +13 -7
- package/es/global/theme-dark.css +5 -2
- package/es/global/theme-default.css +8 -5
- package/package.json +1 -1
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
html[data-prefers-color-scheme='dark'] .ebscn-stock-count-keyboard-delete {
|
|
2
|
-
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-
|
|
2
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
3
3
|
background-size: 24px 24px;
|
|
4
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
5
|
+
}
|
|
6
|
+
html[data-prefers-color-scheme='dark'] .ebscn-stock-count-keyboard-delete:active {
|
|
7
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
4
8
|
}
|
|
5
9
|
.ebscn-stock-count-keyboard {
|
|
6
10
|
display: none;
|
|
11
|
+
box-sizing: border-box;
|
|
7
12
|
position: fixed;
|
|
8
13
|
z-index: 999;
|
|
9
14
|
bottom: 0;
|
|
@@ -20,12 +25,14 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-count-keyboard-delete {
|
|
|
20
25
|
.ebscn-stock-count-keyboard-key,
|
|
21
26
|
.ebscn-stock-count-keyboard-confirmKey {
|
|
22
27
|
border-radius: 4.17px;
|
|
23
|
-
width: calc(20% -
|
|
28
|
+
width: calc(20% - 8px);
|
|
24
29
|
margin: 3px;
|
|
25
|
-
height:
|
|
30
|
+
height: 46px;
|
|
26
31
|
text-align: center;
|
|
27
32
|
line-height: 48px;
|
|
28
33
|
font-weight: 400;
|
|
34
|
+
border: 0.5px solid #888;
|
|
35
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
29
36
|
}
|
|
30
37
|
.ebscn-stock-count-keyboard-key {
|
|
31
38
|
font-size: 23px;
|
|
@@ -33,24 +40,30 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-count-keyboard-delete {
|
|
|
33
40
|
background: var(--ebscn-color-keyboard-key-bg);
|
|
34
41
|
}
|
|
35
42
|
.ebscn-stock-count-keyboard-key:active {
|
|
36
|
-
background:
|
|
43
|
+
background-color: #e5e5e5;
|
|
44
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
37
45
|
}
|
|
38
46
|
.ebscn-stock-count-keyboard-option {
|
|
47
|
+
font-size: 18px;
|
|
39
48
|
font-size: var(--ebscn-font-size-10);
|
|
40
49
|
color: var(--ebscn-color-text);
|
|
41
|
-
background-color: var(--ebscn-color-
|
|
50
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
51
|
+
border: 0.5px solid #888;
|
|
52
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
42
53
|
}
|
|
43
54
|
.ebscn-stock-count-keyboard-option:active {
|
|
44
|
-
|
|
45
|
-
background-color: var(--ebscn-color-keyboard-active
|
|
55
|
+
background-color: #252525;
|
|
56
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
46
57
|
}
|
|
47
58
|
.ebscn-stock-count-keyboard-delete {
|
|
48
|
-
background: url(../../assets/images/delete.png) var(--ebscn-color-
|
|
49
|
-
background-size:
|
|
59
|
+
background: url(../../assets/images/delete.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
60
|
+
background-size: 25px 25px;
|
|
50
61
|
}
|
|
51
62
|
.ebscn-stock-count-keyboard-delete:active {
|
|
52
|
-
background: url(../../assets/images/delete.png) var(--ebscn-color-keyboard-active
|
|
53
|
-
background-size:
|
|
63
|
+
background: url(../../assets/images/delete.png) var(--ebscn-color-keyboard-key-bg-active) no-repeat center;
|
|
64
|
+
background-size: 25px 25px;
|
|
65
|
+
background-color: #252525;
|
|
66
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
54
67
|
}
|
|
55
68
|
.ebscn-stock-count-keyboard-confirmKey {
|
|
56
69
|
background-color: var(--ebscn-color-primary);
|
|
@@ -58,7 +71,7 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-count-keyboard-delete {
|
|
|
58
71
|
color: var(--ebscn-color-white);
|
|
59
72
|
}
|
|
60
73
|
.ebscn-stock-count-keyboard-confirmKey:active {
|
|
61
|
-
background-color: #
|
|
74
|
+
background-color: #d13c21;
|
|
62
75
|
}
|
|
63
76
|
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
64
77
|
.ebscn-stock-count-keyboard {
|
|
@@ -1,17 +1,32 @@
|
|
|
1
1
|
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-keybord {
|
|
2
2
|
background: url(../../assets/images/keybord_keybord_dark.png) no-repeat center;
|
|
3
|
-
background-
|
|
4
|
-
background-
|
|
3
|
+
background-size: 25px 25px;
|
|
4
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
5
|
+
}
|
|
6
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-keybord:active {
|
|
7
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
5
8
|
}
|
|
6
9
|
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-delete {
|
|
7
10
|
background: url(../../assets/images/delete_dark.png) no-repeat center;
|
|
8
|
-
background-
|
|
9
|
-
background-
|
|
11
|
+
background-size: 25px 25px;
|
|
12
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
13
|
+
}
|
|
14
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-delete:active {
|
|
15
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
10
16
|
}
|
|
11
17
|
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift {
|
|
12
18
|
background: url(../../assets/images/keybord_shift_dark.png) no-repeat center;
|
|
13
|
-
background-
|
|
14
|
-
background-
|
|
19
|
+
background-size: 25px 25px;
|
|
20
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
21
|
+
}
|
|
22
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift:active {
|
|
23
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
24
|
+
}
|
|
25
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift-big {
|
|
26
|
+
background: url(../../assets/images/keybord_shift2_dark.png) no-repeat center;
|
|
27
|
+
background-color: #adb3bd;
|
|
28
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
29
|
+
background-size: 25px 25px;
|
|
15
30
|
}
|
|
16
31
|
.ebscn-alphabet-keyboard-extra {
|
|
17
32
|
position: relative;
|
|
@@ -23,40 +38,37 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift {
|
|
|
23
38
|
background-color: #fff;
|
|
24
39
|
background-color: var(--ebscn-color-keyboard-bg);
|
|
25
40
|
}
|
|
26
|
-
.ebscn-alphabet-keyboard-extra-darkkey {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
width: 11.2%;
|
|
31
|
-
height: 42px;
|
|
32
|
-
border-radius: 5px;
|
|
33
|
-
background-color: #adb3bd;
|
|
34
|
-
background-color: var(--ebscn-color-functionkey-background);
|
|
35
|
-
font-size: var(--ebscn-font-size-9);
|
|
36
|
-
}
|
|
37
|
-
.ebscn-alphabet-keyboard-extra-darkkey:active {
|
|
38
|
-
background-color: #e5e5e5;
|
|
39
|
-
background-color: var(--ebscn-color-keyboard-active-background);
|
|
40
|
-
}
|
|
41
41
|
.ebscn-alphabet-keyboard-extra-shift {
|
|
42
42
|
margin-right: 3.73%;
|
|
43
43
|
background: url(../../assets/images/keybord_shift.png) no-repeat center;
|
|
44
44
|
background-color: #adb3bd;
|
|
45
|
-
background-color: var(--ebscn-color-
|
|
45
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
46
46
|
background-size: 17px 17px;
|
|
47
|
+
border: 0.5px solid #888;
|
|
48
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
49
|
+
}
|
|
50
|
+
.ebscn-alphabet-keyboard-extra-shift-big {
|
|
51
|
+
background: url(../../assets/images/keybord_shift2.png) no-repeat center;
|
|
52
|
+
background-color: #adb3bd;
|
|
53
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
54
|
+
background-size: 25px 25px;
|
|
47
55
|
}
|
|
48
56
|
.ebscn-alphabet-keyboard-extra-delete {
|
|
49
57
|
margin-left: 2.26%;
|
|
50
58
|
background: url(../../assets/images/delete.png) no-repeat center;
|
|
51
59
|
background-color: #adb3bd;
|
|
52
|
-
background-color: var(--ebscn-color-
|
|
53
|
-
background-size:
|
|
60
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
61
|
+
background-size: 25px 25px;
|
|
62
|
+
border: 0.5px solid #888;
|
|
63
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
54
64
|
}
|
|
55
65
|
.ebscn-alphabet-keyboard-extra-keybord {
|
|
56
66
|
background: url(../../assets/images/keybord_keybord.png) no-repeat center;
|
|
57
67
|
background-color: #adb3bd;
|
|
58
|
-
background-color: var(--ebscn-color-
|
|
59
|
-
background-size:
|
|
68
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
69
|
+
background-size: 25px 18px;
|
|
70
|
+
border: 0.5px solid #888;
|
|
71
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
60
72
|
}
|
|
61
73
|
.ebscn-alphabet-keyboard-extra-space {
|
|
62
74
|
display: flex;
|
|
@@ -68,10 +80,12 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift {
|
|
|
68
80
|
font-size: 16px;
|
|
69
81
|
background-color: #fff;
|
|
70
82
|
background: var(--ebscn-color-keyboard-key-bg);
|
|
83
|
+
border: 0.5px solid #888;
|
|
84
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
71
85
|
}
|
|
72
86
|
.ebscn-alphabet-keyboard-extra-space:active {
|
|
73
|
-
background-color: #
|
|
74
|
-
background-color: var(--ebscn-color-
|
|
87
|
+
background-color: #e5e5e5;
|
|
88
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
75
89
|
}
|
|
76
90
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firstline,
|
|
77
91
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-secondline,
|
|
@@ -80,7 +94,7 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift {
|
|
|
80
94
|
display: flex;
|
|
81
95
|
justify-content: space-between;
|
|
82
96
|
width: 100%;
|
|
83
|
-
padding-top: 3
|
|
97
|
+
padding-top: calc(3% - 1px);
|
|
84
98
|
}
|
|
85
99
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firstline-key,
|
|
86
100
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-secondline-key,
|
|
@@ -89,8 +103,9 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift {
|
|
|
89
103
|
display: flex;
|
|
90
104
|
align-items: center;
|
|
91
105
|
justify-content: center;
|
|
106
|
+
flex: 1;
|
|
92
107
|
width: 8.4%;
|
|
93
|
-
height:
|
|
108
|
+
height: 40px;
|
|
94
109
|
background-color: #fff;
|
|
95
110
|
background: var(--ebscn-color-keyboard-key-bg);
|
|
96
111
|
border-radius: 5px;
|
|
@@ -99,31 +114,46 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift {
|
|
|
99
114
|
text-align: center;
|
|
100
115
|
color: #333;
|
|
101
116
|
color: var(--ebscn-color-text);
|
|
102
|
-
margin
|
|
117
|
+
margin: 0 3px;
|
|
118
|
+
border: 0.5px solid #888;
|
|
119
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
103
120
|
}
|
|
104
121
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firstline-key:active,
|
|
105
122
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-secondline-key:active,
|
|
106
123
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-thirdline-key:active,
|
|
107
124
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline-key:active {
|
|
108
|
-
background-color: #
|
|
109
|
-
background-color: var(--ebscn-color-
|
|
125
|
+
background-color: #e5e5e5;
|
|
126
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
110
127
|
}
|
|
111
|
-
.ebscn-alphabet-keyboard-extra
|
|
112
|
-
|
|
113
|
-
|
|
128
|
+
.ebscn-alphabet-keyboard-extra-darkkey {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
width: 11.2%;
|
|
133
|
+
height: 42px;
|
|
134
|
+
border-radius: 5px;
|
|
135
|
+
background-color: #adb3bd;
|
|
136
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
137
|
+
font-size: var(--ebscn-font-size-9);
|
|
138
|
+
border: 0.5px solid #888;
|
|
139
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
140
|
+
}
|
|
141
|
+
.ebscn-alphabet-keyboard-extra-darkkey:active {
|
|
142
|
+
background-color: #252525;
|
|
143
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
114
144
|
}
|
|
115
145
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-secondline {
|
|
116
146
|
padding-left: 5.73%;
|
|
117
147
|
padding-right: 5.73%;
|
|
118
148
|
}
|
|
119
149
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-thirdline {
|
|
120
|
-
padding-left:
|
|
121
|
-
padding-right:
|
|
150
|
+
padding-left: 3px;
|
|
151
|
+
padding-right: 3px;
|
|
122
152
|
}
|
|
123
153
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline {
|
|
124
|
-
padding-left:
|
|
125
|
-
padding-right:
|
|
126
|
-
padding-bottom:
|
|
154
|
+
padding-left: 3px;
|
|
155
|
+
padding-right: 3px;
|
|
156
|
+
padding-bottom: 6px;
|
|
127
157
|
}
|
|
128
158
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline-confirm {
|
|
129
159
|
display: flex;
|
|
@@ -139,9 +169,11 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-extra-shift {
|
|
|
139
169
|
text-align: center;
|
|
140
170
|
color: #fff;
|
|
141
171
|
line-height: 22.5px;
|
|
172
|
+
border: 0.5px solid #888;
|
|
173
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
142
174
|
}
|
|
143
175
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline-confirm:active {
|
|
144
|
-
background-color: #
|
|
176
|
+
background-color: #d13c21;
|
|
145
177
|
}
|
|
146
178
|
.ebscn-alphabet-keyboard-extra .ebscn-alphabet-keyboard-extra-firthline img {
|
|
147
179
|
height: 20%;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { useRef, useState } from
|
|
2
|
-
import React from "react";
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
|
3
2
|
import { withNativeProps } from '../../utils/native-props';
|
|
4
3
|
import { mergeProps } from '../../utils/with-default-props';
|
|
5
4
|
var classPrefix = 'ebscn-alphabet-keyboard-extra';
|
|
@@ -76,12 +75,11 @@ export function AlphabetKeyboard(p) {
|
|
|
76
75
|
}, (isBig == false ? thirdKeys : thirdKeysBig).map(function (item, index) {
|
|
77
76
|
return React.createElement("div", {
|
|
78
77
|
key: item || index,
|
|
79
|
-
className: item == '↑' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift") : item == '×' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-delete") : "".concat(classPrefix, "-thirdline-key"),
|
|
78
|
+
className: item == '↑' && isBig ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift ").concat(classPrefix, "-shift-big") : item == '↑' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift") : item == '×' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-delete") : "".concat(classPrefix, "-thirdline-key"),
|
|
80
79
|
onClick: function () {
|
|
81
80
|
if (visible) {
|
|
82
81
|
onKeyPress(item);
|
|
83
82
|
}
|
|
84
|
-
;
|
|
85
83
|
}
|
|
86
84
|
}, imgKeys.includes(item) ? '' : item);
|
|
87
85
|
})), React.createElement("div", {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
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-
|
|
3
|
-
background-size:
|
|
2
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
3
|
+
background-size: 25px 25px;
|
|
4
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
5
|
+
}
|
|
6
|
+
html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete:active {
|
|
7
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
4
8
|
}
|
|
5
9
|
.ebscn-stock-keyboard {
|
|
6
10
|
transform: translateY(101%);
|
|
@@ -10,14 +14,14 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock
|
|
|
10
14
|
flex-direction: row;
|
|
11
15
|
z-index: 999;
|
|
12
16
|
width: 100%;
|
|
13
|
-
height:
|
|
17
|
+
height: 262px;
|
|
14
18
|
transition: all 0.5s;
|
|
15
19
|
align-content: flex-start;
|
|
16
20
|
background-color: #fff;
|
|
17
21
|
background-color: var(--ebscn-color-keyboard-bg);
|
|
18
22
|
}
|
|
19
23
|
.ebscn-stock-keyboard-top {
|
|
20
|
-
padding: 11px 19px
|
|
24
|
+
padding: 11px 19px 6px 11px;
|
|
21
25
|
background-color: #fff;
|
|
22
26
|
background-color: var(--ebscn-color-background);
|
|
23
27
|
display: flex;
|
|
@@ -27,19 +31,31 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock
|
|
|
27
31
|
}
|
|
28
32
|
.ebscn-stock-keyboard-top-item {
|
|
29
33
|
margin-right: 24px;
|
|
34
|
+
padding-bottom: 2px;
|
|
30
35
|
color: #666;
|
|
31
36
|
color: var(--ebscn-color-text-secondary);
|
|
32
37
|
line-height: 21px;
|
|
38
|
+
border-bottom: 2px solid transparent;
|
|
33
39
|
}
|
|
34
40
|
.ebscn-stock-keyboard-top-item-active {
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
position: relative;
|
|
42
|
+
}
|
|
43
|
+
.ebscn-stock-keyboard-top-item-active::after {
|
|
44
|
+
content: "";
|
|
45
|
+
position: absolute;
|
|
46
|
+
bottom: -2px;
|
|
47
|
+
left: 8px;
|
|
48
|
+
width: 14px;
|
|
49
|
+
/* 固定宽度 */
|
|
50
|
+
height: 2px;
|
|
51
|
+
background: var(--ebscn-color-primary);
|
|
52
|
+
border-radius: 1px;
|
|
37
53
|
}
|
|
38
54
|
.ebscn-stock-keyboard-bottom {
|
|
39
55
|
display: flex;
|
|
40
56
|
}
|
|
41
57
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right {
|
|
42
|
-
background-color: #
|
|
58
|
+
background-color: #d3d5d8;
|
|
43
59
|
background-color: var(--ebscn-color-keyboard-bg);
|
|
44
60
|
display: flex;
|
|
45
61
|
flex-wrap: wrap;
|
|
@@ -53,17 +69,16 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock
|
|
|
53
69
|
background-color: var(--ebscn-color-primary);
|
|
54
70
|
color: #fff;
|
|
55
71
|
}
|
|
56
|
-
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key
|
|
57
|
-
|
|
58
|
-
width: calc(25% - 7.5px);
|
|
72
|
+
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key {
|
|
73
|
+
width: calc(25% - 8.5px);
|
|
59
74
|
margin: 6px 3px 0 3px;
|
|
60
|
-
border-radius:
|
|
61
|
-
height:
|
|
62
|
-
line-height:
|
|
75
|
+
border-radius: 4px;
|
|
76
|
+
height: 46px;
|
|
77
|
+
line-height: 46px;
|
|
63
78
|
text-align: center;
|
|
64
79
|
font-weight: 400;
|
|
65
|
-
|
|
66
|
-
|
|
80
|
+
border: 0.5px solid #888;
|
|
81
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
67
82
|
color: #333;
|
|
68
83
|
color: var(--ebscn-color-text);
|
|
69
84
|
font-size: 23px;
|
|
@@ -72,53 +87,54 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock
|
|
|
72
87
|
}
|
|
73
88
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key:active {
|
|
74
89
|
background-color: #e5e5e5;
|
|
75
|
-
background-color: var(--ebscn-color-keyboard-active
|
|
90
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
76
91
|
}
|
|
77
92
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-option {
|
|
78
|
-
font-size:
|
|
79
|
-
font-size: var(--ebscn-font-size-
|
|
93
|
+
font-size: 19px;
|
|
94
|
+
font-size: var(--ebscn-font-size-11);
|
|
80
95
|
color: #333;
|
|
81
96
|
color: var(--ebscn-color-text);
|
|
82
97
|
background-color: #adb3bd;
|
|
83
|
-
background-color: var(--ebscn-color-
|
|
98
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
99
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
84
100
|
}
|
|
85
101
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-option:active {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
background-color: #e5e5e5;
|
|
89
|
-
background-color: var(--ebscn-color-keyboard-active-background);
|
|
102
|
+
background-color: #252525;
|
|
103
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
90
104
|
}
|
|
91
105
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete {
|
|
92
106
|
background: url(../../assets/images/delete.png) no-repeat center;
|
|
93
107
|
background-color: #adb3bd;
|
|
94
|
-
background-color: var(--ebscn-color-
|
|
95
|
-
background-size:
|
|
108
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
109
|
+
background-size: 25px 25px;
|
|
110
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
96
111
|
}
|
|
97
112
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete:active {
|
|
98
113
|
background: url(../../assets/images/delete.png) no-repeat center;
|
|
99
|
-
background-color: #
|
|
100
|
-
background-color: var(--ebscn-color-keyboard-active
|
|
101
|
-
background-size:
|
|
114
|
+
background-color: #252525;
|
|
115
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
116
|
+
background-size: 25px 25px;
|
|
102
117
|
}
|
|
103
118
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey {
|
|
104
|
-
font-size:
|
|
105
|
-
font-size: var(--ebscn-font-size-
|
|
119
|
+
font-size: 19px;
|
|
120
|
+
font-size: var(--ebscn-font-size-11);
|
|
106
121
|
width: calc(25% - 7.5px);
|
|
107
122
|
background-color: #e84225;
|
|
108
123
|
background-color: var(--ebscn-color-primary);
|
|
124
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
109
125
|
}
|
|
110
126
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey:active {
|
|
111
|
-
background-color: #
|
|
127
|
+
background-color: #d13c21;
|
|
112
128
|
color: #fff;
|
|
113
129
|
color: var(--ebscn-color-white);
|
|
114
130
|
}
|
|
115
131
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-bottom-option {
|
|
116
|
-
font-size:
|
|
117
|
-
font-size: var(--ebscn-font-size-
|
|
132
|
+
font-size: 19px;
|
|
133
|
+
font-size: var(--ebscn-font-size-11);
|
|
118
134
|
}
|
|
119
135
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left {
|
|
120
136
|
width: 20%;
|
|
121
|
-
background-color: #
|
|
137
|
+
background-color: #d3d5d8;
|
|
122
138
|
background-color: var(--ebscn-color-keyboard-bg);
|
|
123
139
|
}
|
|
124
140
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left-key {
|
|
@@ -126,7 +142,7 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock
|
|
|
126
142
|
align-items: center;
|
|
127
143
|
justify-content: center;
|
|
128
144
|
border-radius: 4.17px;
|
|
129
|
-
height:
|
|
145
|
+
height: 46px;
|
|
130
146
|
margin: 6px 3px 6px 6px;
|
|
131
147
|
font-size: 18px;
|
|
132
148
|
font-size: var(--ebscn-font-size-10);
|
|
@@ -134,17 +150,19 @@ html[data-prefers-color-scheme='dark'] .ebscn-stock-keyboard-bottom .ebscn-stock
|
|
|
134
150
|
text-align: center;
|
|
135
151
|
color: #333;
|
|
136
152
|
color: var(--ebscn-color-text);
|
|
137
|
-
line-height:
|
|
153
|
+
line-height: 46px;
|
|
138
154
|
background-color: #adb3bd;
|
|
139
|
-
background-color: var(--ebscn-color-
|
|
155
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
156
|
+
border: 0.5px solid #888;
|
|
157
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
140
158
|
}
|
|
141
159
|
.ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left-key:active {
|
|
142
|
-
background-color: #
|
|
143
|
-
background: var(--ebscn-color-keyboard-active
|
|
160
|
+
background-color: #252525;
|
|
161
|
+
background: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
144
162
|
}
|
|
145
163
|
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
146
164
|
.ebscn-stock-keyboard {
|
|
147
|
-
height: calc(
|
|
148
|
-
height: calc(
|
|
165
|
+
height: calc(262px + env(safe-area-inset-bottom));
|
|
166
|
+
height: calc(262px + constant(safe-area-inset-bottom));
|
|
149
167
|
}
|
|
150
168
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import cns from
|
|
2
|
-
import { useEffect, useRef, useState } from
|
|
3
|
-
import React from "react";
|
|
1
|
+
import cns from 'classnames';
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
4
3
|
import { withNativeProps } from '../../utils/native-props';
|
|
5
4
|
import { mergeProps } from '../../utils/with-default-props';
|
|
6
|
-
import { AlphabetKeyboard } from
|
|
5
|
+
import { AlphabetKeyboard } from './alphabet-keyboard';
|
|
7
6
|
var classPrefix = 'ebscn-stock-keyboard';
|
|
8
7
|
var defaultProps = {
|
|
9
8
|
visible: false
|
|
@@ -94,7 +93,7 @@ export function StockKeyboard(p) {
|
|
|
94
93
|
className: "".concat(classPrefix, "-top-item")
|
|
95
94
|
}, "\u4E2D\u6587")), keyboardType === 1 ? React.createElement("div", {
|
|
96
95
|
className: "".concat(classPrefix, "-bottom")
|
|
97
|
-
},
|
|
96
|
+
}, ' ', React.createElement("div", {
|
|
98
97
|
className: "".concat(classPrefix, "-left")
|
|
99
98
|
}, leftKeys.map(function (item, index) {
|
|
100
99
|
return React.createElement("div", {
|
|
@@ -111,7 +110,7 @@ export function StockKeyboard(p) {
|
|
|
111
110
|
}, keys.map(function (item, index) {
|
|
112
111
|
return React.createElement("div", {
|
|
113
112
|
key: item || index,
|
|
114
|
-
className: cns(item !== '确定' ? "".concat(classPrefix, "-right-key")
|
|
113
|
+
className: cns("".concat(classPrefix, "-right-key"), 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")),
|
|
115
114
|
onClick: function () {
|
|
116
115
|
if (visible) {
|
|
117
116
|
onKeyPress(item);
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
height: calc(var(--height) - 2 * var(--border-width));
|
|
45
45
|
border-radius: calc(var(--height) - 2 * var(--border-width));
|
|
46
46
|
box-sizing: border-box;
|
|
47
|
-
background: #
|
|
47
|
+
background: #d8d8d8;
|
|
48
48
|
z-index: 1;
|
|
49
49
|
transition: all 200ms;
|
|
50
50
|
transform: scale(1);
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
top: var(--border-width);
|
|
63
63
|
left: var(--border-width);
|
|
64
64
|
transition: all 200ms;
|
|
65
|
-
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2), 0 2px 11.5px 0 rgba(0, 0, 0, 0.08), -1px 2px 2px 0 rgba(0, 0, 0, 0.1);
|
|
66
65
|
color: var(--ebscn-color-primary);
|
|
67
66
|
}
|
|
68
67
|
.ebscn-switch-inner {
|
|
@@ -95,7 +94,7 @@
|
|
|
95
94
|
opacity: 0.4;
|
|
96
95
|
}
|
|
97
96
|
.ebscn-switch.ebscn-switch-disabled:before {
|
|
98
|
-
background-color: #
|
|
97
|
+
background-color: #e9e9ea;
|
|
99
98
|
}
|
|
100
99
|
.ebscn-switch-spin-icon {
|
|
101
100
|
width: 14px;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
position: relative;
|
|
13
13
|
}
|
|
14
14
|
.ebscn-tabs-tab-list {
|
|
15
|
+
padding: 0 6px;
|
|
15
16
|
display: flex;
|
|
16
17
|
flex-wrap: nowrap;
|
|
17
18
|
justify-content: flex-start;
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
display: none;
|
|
25
26
|
}
|
|
26
27
|
.ebscn-tabs-tab-wrapper {
|
|
27
|
-
padding: 0
|
|
28
|
+
padding: 0 10px;
|
|
28
29
|
}
|
|
29
30
|
.ebscn-tabs-tab-wrapper-stretch {
|
|
30
31
|
flex: auto;
|
|
@@ -35,12 +36,13 @@
|
|
|
35
36
|
width: -webkit-min-content;
|
|
36
37
|
width: min-content;
|
|
37
38
|
margin: 0 auto;
|
|
38
|
-
font-size:
|
|
39
|
+
font-size: 16px;
|
|
39
40
|
position: relative;
|
|
40
41
|
cursor: pointer;
|
|
41
42
|
color: var(--ebscn-color-text-secondary);
|
|
42
43
|
}
|
|
43
44
|
.ebscn-tabs-tab-active {
|
|
45
|
+
font-weight: 500;
|
|
44
46
|
color: var(--active-title-color);
|
|
45
47
|
}
|
|
46
48
|
.ebscn-tabs-tab-disabled {
|
|
@@ -122,13 +122,13 @@ export var Tabs = function (p) {
|
|
|
122
122
|
var x = 0;
|
|
123
123
|
var width = 0;
|
|
124
124
|
if (props.activeLineMode === 'auto') {
|
|
125
|
-
x = activeTabLeft;
|
|
125
|
+
x = activeTabLeft - 6;
|
|
126
126
|
width = activeTabWidth;
|
|
127
127
|
} else if (props.activeLineMode === 'full') {
|
|
128
|
-
x = activeTabWrapperLeft;
|
|
128
|
+
x = activeTabWrapperLeft - 6;
|
|
129
129
|
width = activeTabWrapperWidth;
|
|
130
130
|
} else {
|
|
131
|
-
x = activeTabLeft + (activeTabWidth - activeLineWidth) / 2;
|
|
131
|
+
x = activeTabLeft + (activeTabWidth - activeLineWidth) / 2 - 6;
|
|
132
132
|
}
|
|
133
133
|
if (isRTL) {
|
|
134
134
|
/**
|
|
@@ -242,7 +242,7 @@ export var Tabs = function (p) {
|
|
|
242
242
|
ref: activeLineRef,
|
|
243
243
|
className: "".concat(classPrefix, "-tab-line"),
|
|
244
244
|
style: {
|
|
245
|
-
width: props.activeLineMode === 'fixed' ? 'var(--fixed-active-line-width,
|
|
245
|
+
width: props.activeLineMode === 'fixed' ? 'var(--fixed-active-line-width, 14px)' : width,
|
|
246
246
|
x: x
|
|
247
247
|
}
|
|
248
248
|
}), panes.map(function (pane) {
|
package/es/global/global.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--ebscn-color-warning: #ff8f1f;
|
|
22
22
|
--ebscn-color-danger: #ff3141;
|
|
23
23
|
--ebscn-color-yellow: #ff9f18;
|
|
24
|
-
--ebscn-color-wathet: #
|
|
24
|
+
--ebscn-color-wathet: #fef4f2;
|
|
25
25
|
--ebscn-color-text: #333333;
|
|
26
26
|
--ebscn-color-text-secondary: #666666;
|
|
27
27
|
--ebscn-color-weak: #999999;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--ebscn-color-background: #ffffff;
|
|
31
31
|
--ebscn-color-highlight: var(--ebscn-color-danger);
|
|
32
32
|
--ebscn-color-white: #ffffff;
|
|
33
|
-
--ebscn-color-box: #
|
|
33
|
+
--ebscn-color-box: #f8f9fc;
|
|
34
34
|
--ebscn-color-text-light-solid: var(--ebscn-color-white);
|
|
35
35
|
--ebscn-color-text-dark-solid: #000000;
|
|
36
36
|
--ebscn-color-fill-content: var(--ebscn-color-box);
|
|
@@ -45,10 +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: #
|
|
48
|
+
--ebscn-color-keyboard-bg: #d3d5d8;
|
|
49
49
|
--ebscn-color-keyboard-key-bg: #fff;
|
|
50
|
-
--ebscn-color-
|
|
51
|
-
--ebscn-color-keyboard-active
|
|
50
|
+
--ebscn-color-keyboard-fckey-bg: #adb3bd;
|
|
51
|
+
--ebscn-color-keyboard-key-bg-active: #e5e5e5;
|
|
52
|
+
--ebscn-color-keyboard-fckey-bg-active: #9ba1aa;
|
|
53
|
+
--ebscn-color-keyboard-fckey-border: #888;
|
|
54
|
+
--ebscn-color-keyboard-key-border: #888;
|
|
52
55
|
}
|
|
53
56
|
html[data-prefers-color-scheme='dark'] {
|
|
54
57
|
--ebscn-color-blue: #4c7cf1;
|
|
@@ -70,8 +73,11 @@ html[data-prefers-color-scheme='dark'] {
|
|
|
70
73
|
--ebscn-color-split-line: #2B2B2B;
|
|
71
74
|
--ebscn-color-keyboard-bg: #1a1a1a;
|
|
72
75
|
--ebscn-color-keyboard-key-bg: #474747;
|
|
73
|
-
--ebscn-color-
|
|
74
|
-
--ebscn-color-keyboard-active
|
|
76
|
+
--ebscn-color-keyboard-fckey-bg: #292929;
|
|
77
|
+
--ebscn-color-keyboard-key-bg-active: #323232;
|
|
78
|
+
--ebscn-color-keyboard-fckey-bg-active: #252525;
|
|
79
|
+
--ebscn-color-keyboard-fckey-border: #111;
|
|
80
|
+
--ebscn-color-keyboard-key-border: #333;
|
|
75
81
|
}
|
|
76
82
|
:root {
|
|
77
83
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|