@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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,20 +1,38 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--ebscn-color-keyboard-bg: #
|
|
2
|
+
--ebscn-color-keyboard-bg: #d3d5d8;
|
|
3
3
|
--ebscn-color-keyboard-key-bg: #fff;
|
|
4
|
-
--ebscn-color-
|
|
5
|
-
--ebscn-color-keyboard-active
|
|
4
|
+
--ebscn-color-keyboard-fckey-bg: #adb3bd;
|
|
5
|
+
--ebscn-color-keyboard-key-bg-active: #E5E5E5;
|
|
6
6
|
}
|
|
7
7
|
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-keybord {
|
|
8
|
-
background: url(../../assets/images/keybord_keybord_dark.png) var(--ebscn-color-
|
|
9
|
-
background-size:
|
|
8
|
+
background: url(../../assets/images/keybord_keybord_dark.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
9
|
+
background-size: 25px 25px;
|
|
10
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
11
|
+
}
|
|
12
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-keybord:active {
|
|
13
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
10
14
|
}
|
|
11
15
|
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-delete {
|
|
12
|
-
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-
|
|
13
|
-
background-size:
|
|
16
|
+
background: url(../../assets/images/delete_dark.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
17
|
+
background-size: 25px 25px;
|
|
18
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
19
|
+
}
|
|
20
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-delete:active {
|
|
21
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
14
22
|
}
|
|
15
23
|
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
16
|
-
background: url(../../assets/images/keybord_shift_dark.png) var(--ebscn-color-
|
|
17
|
-
background-size:
|
|
24
|
+
background: url(../../assets/images/keybord_shift_dark.png) var(--ebscn-color-keyboard-fckey-bg) no-repeat center;
|
|
25
|
+
background-size: 25px 25px;
|
|
26
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
27
|
+
}
|
|
28
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift:active {
|
|
29
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
30
|
+
}
|
|
31
|
+
html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift-big {
|
|
32
|
+
background: url(../../assets/images/keybord_shift2_dark.png) no-repeat center;
|
|
33
|
+
background-color: #adb3bd;
|
|
34
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
35
|
+
background-size: 25px 25px;
|
|
18
36
|
}
|
|
19
37
|
.ebscn-alphabet-keyboard {
|
|
20
38
|
position: fixed;
|
|
@@ -28,41 +46,37 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
|
28
46
|
background-color: #fff;
|
|
29
47
|
background-color: var(--ebscn-color-keyboard-bg);
|
|
30
48
|
}
|
|
31
|
-
.ebscn-alphabet-keyboard-darkkey {
|
|
32
|
-
display: flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
width: 11.2%;
|
|
36
|
-
height: 42px;
|
|
37
|
-
border-radius: 5px;
|
|
38
|
-
background-color: #adb3bd;
|
|
39
|
-
background-color: var(--ebscn-color-functionkey-background);
|
|
40
|
-
font-size: 17px;
|
|
41
|
-
font-size: var(--ebscn-font-size-9);
|
|
42
|
-
}
|
|
43
|
-
.ebscn-alphabet-keyboard-darkkey:active {
|
|
44
|
-
background-color: #e5e5e5;
|
|
45
|
-
background-color: var(--ebscn-color-keyboard-active-background);
|
|
46
|
-
}
|
|
47
49
|
.ebscn-alphabet-keyboard-shift {
|
|
48
50
|
margin-right: 3.73%;
|
|
49
51
|
background: url(../../assets/images/keybord_shift.png) no-repeat center;
|
|
50
52
|
background-color: #adb3bd;
|
|
51
|
-
background-color: var(--ebscn-color-
|
|
53
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
52
54
|
background-size: 17px 17px;
|
|
55
|
+
border: 0.5px solid #888;
|
|
56
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
57
|
+
}
|
|
58
|
+
.ebscn-alphabet-keyboard-shift-big {
|
|
59
|
+
background: url(../../assets/images/keybord_shift2.png) no-repeat center;
|
|
60
|
+
background-color: #adb3bd;
|
|
61
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
62
|
+
background-size: 25px 25px;
|
|
53
63
|
}
|
|
54
64
|
.ebscn-alphabet-keyboard-delete {
|
|
55
65
|
margin-left: 2.26%;
|
|
56
66
|
background: url(../../assets/images/delete.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 25px;
|
|
70
|
+
border: 0.5px solid #888;
|
|
71
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
60
72
|
}
|
|
61
73
|
.ebscn-alphabet-keyboard-keybord {
|
|
62
74
|
background: url(../../assets/images/keybord_keybord.png) no-repeat center;
|
|
63
75
|
background-color: #adb3bd;
|
|
64
|
-
background-color: var(--ebscn-color-
|
|
65
|
-
background-size:
|
|
76
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
77
|
+
background-size: 25px 18px;
|
|
78
|
+
border: 0.5px solid #888;
|
|
79
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
66
80
|
}
|
|
67
81
|
.ebscn-alphabet-keyboard-space {
|
|
68
82
|
display: flex;
|
|
@@ -70,12 +84,16 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
|
70
84
|
justify-content: center;
|
|
71
85
|
width: 48.4%;
|
|
72
86
|
height: 42px;
|
|
73
|
-
background: var(--ebscn-color-keyboard-key-bg);
|
|
74
87
|
border-radius: 5px;
|
|
75
88
|
font-size: 16px;
|
|
89
|
+
background-color: #fff;
|
|
90
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
91
|
+
border: 0.5px solid #888;
|
|
92
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
76
93
|
}
|
|
77
94
|
.ebscn-alphabet-keyboard-space:active {
|
|
78
|
-
background:
|
|
95
|
+
background-color: #e5e5e5;
|
|
96
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
79
97
|
}
|
|
80
98
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline,
|
|
81
99
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline,
|
|
@@ -84,7 +102,7 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
|
84
102
|
display: flex;
|
|
85
103
|
justify-content: space-between;
|
|
86
104
|
width: 100%;
|
|
87
|
-
padding-top: 3
|
|
105
|
+
padding-top: calc(3% - 1px);
|
|
88
106
|
}
|
|
89
107
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline-key,
|
|
90
108
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key,
|
|
@@ -93,40 +111,57 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
|
93
111
|
display: flex;
|
|
94
112
|
align-items: center;
|
|
95
113
|
justify-content: center;
|
|
114
|
+
flex: 1;
|
|
96
115
|
width: 8.4%;
|
|
97
|
-
height:
|
|
116
|
+
height: 40px;
|
|
98
117
|
background-color: #fff;
|
|
99
|
-
background
|
|
118
|
+
background: var(--ebscn-color-keyboard-key-bg);
|
|
100
119
|
border-radius: 5px;
|
|
101
120
|
font-size: 23px;
|
|
102
121
|
font-weight: 400;
|
|
103
122
|
text-align: center;
|
|
123
|
+
color: #333;
|
|
104
124
|
color: var(--ebscn-color-text);
|
|
105
|
-
margin
|
|
125
|
+
margin: 0 3px;
|
|
126
|
+
border: 0.5px solid #888;
|
|
127
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
106
128
|
}
|
|
107
129
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline-key:active,
|
|
108
130
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key:active,
|
|
109
131
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-thirdline-key:active,
|
|
110
132
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-key:active {
|
|
111
|
-
background-color: #
|
|
112
|
-
background-color: var(--ebscn-color-
|
|
133
|
+
background-color: #e5e5e5;
|
|
134
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
113
135
|
}
|
|
114
|
-
.ebscn-alphabet-keyboard
|
|
115
|
-
|
|
116
|
-
|
|
136
|
+
.ebscn-alphabet-keyboard-darkkey {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
width: 11.2%;
|
|
141
|
+
height: 42px;
|
|
142
|
+
border-radius: 5px;
|
|
143
|
+
background-color: #adb3bd;
|
|
144
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
145
|
+
font-size: var(--ebscn-font-size-9);
|
|
146
|
+
border: 0.5px solid #888;
|
|
147
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
148
|
+
}
|
|
149
|
+
.ebscn-alphabet-keyboard-darkkey:active {
|
|
150
|
+
background-color: #252525;
|
|
151
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
117
152
|
}
|
|
118
153
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline {
|
|
119
154
|
padding-left: 5.73%;
|
|
120
155
|
padding-right: 5.73%;
|
|
121
156
|
}
|
|
122
157
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-thirdline {
|
|
123
|
-
padding-left:
|
|
124
|
-
padding-right:
|
|
158
|
+
padding-left: 3px;
|
|
159
|
+
padding-right: 3px;
|
|
125
160
|
}
|
|
126
161
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline {
|
|
127
|
-
padding-left:
|
|
128
|
-
padding-right:
|
|
129
|
-
padding-bottom:
|
|
162
|
+
padding-left: 3px;
|
|
163
|
+
padding-right: 3px;
|
|
164
|
+
padding-bottom: 6px;
|
|
130
165
|
}
|
|
131
166
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm {
|
|
132
167
|
display: flex;
|
|
@@ -142,16 +177,18 @@ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
|
|
|
142
177
|
text-align: center;
|
|
143
178
|
color: #fff;
|
|
144
179
|
line-height: 22.5px;
|
|
180
|
+
border: 0.5px solid #888;
|
|
181
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
145
182
|
}
|
|
146
183
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm:active {
|
|
147
|
-
background-color: #
|
|
184
|
+
background-color: #d13c21;
|
|
148
185
|
}
|
|
149
186
|
.ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline img {
|
|
150
187
|
height: 20%;
|
|
151
188
|
}
|
|
152
189
|
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
153
190
|
.ebscn-alphabet-keyboard {
|
|
154
|
-
height: calc(
|
|
155
|
-
height: calc(
|
|
191
|
+
height: calc(223px + env(safe-area-inset-bottom));
|
|
192
|
+
height: calc(223px + constant(safe-area-inset-bottom));
|
|
156
193
|
}
|
|
157
194
|
}
|
|
@@ -114,12 +114,11 @@ function AlphabetKeyboard(p) {
|
|
|
114
114
|
}, (isBig == false ? thirdKeys : thirdKeysBig).map(function (item, index) {
|
|
115
115
|
return _react.default.createElement("div", {
|
|
116
116
|
key: item || index,
|
|
117
|
-
className: item == '↑' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-shift") : item == '×' ? "".concat(classPrefix, "-darkkey ").concat(classPrefix, "-delete") : "".concat(classPrefix, "-thirdline-key"),
|
|
117
|
+
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"),
|
|
118
118
|
onClick: function () {
|
|
119
119
|
if (visible) {
|
|
120
120
|
onKeyPress(item);
|
|
121
121
|
}
|
|
122
|
-
;
|
|
123
122
|
}
|
|
124
123
|
}, imgKeys.includes(item) ? '' : item);
|
|
125
124
|
})), _react.default.createElement("div", {
|
|
@@ -148,10 +148,6 @@ var SelectorButton = function (p) {
|
|
|
148
148
|
onClick: handleClick
|
|
149
149
|
}, props.children, _react.default.createElement("div", {
|
|
150
150
|
className: (0, _classnames.default)("".concat(classPrefix, "-icon"), (_a = {}, _a["".concat(classPrefix, "-icon-active")] = props.active && props.autoRotate, _a))
|
|
151
|
-
}, props.icon ? props.icon : _react.default.createElement(_2.SelectorIcon,
|
|
152
|
-
style: {
|
|
153
|
-
fontSize: '14px'
|
|
154
|
-
}
|
|
155
|
-
}))));
|
|
151
|
+
}, props.icon ? props.icon : _react.default.createElement(_2.SelectorIcon, null))));
|
|
156
152
|
};
|
|
157
153
|
exports.SelectorButton = SelectorButton;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
.ebscn-checkbox {
|
|
2
|
-
--icon-size:
|
|
2
|
+
--icon-size: 20px;
|
|
3
|
+
--icon-wrap-size: 24px;
|
|
3
4
|
--font-size: var(--ebscn-font-size-8);
|
|
4
5
|
--gap: 12px;
|
|
5
6
|
display: inline-flex;
|
|
6
7
|
vertical-align: text-bottom;
|
|
7
8
|
justify-content: flex-start;
|
|
8
9
|
align-items: center;
|
|
10
|
+
min-width: var(--icon-wrap-size);
|
|
11
|
+
min-height: var(--icon-wrap-size);
|
|
9
12
|
cursor: pointer;
|
|
10
13
|
}
|
|
11
14
|
.ebscn-checkbox input {
|
|
@@ -17,11 +20,14 @@
|
|
|
17
20
|
--gap: 9px;
|
|
18
21
|
}
|
|
19
22
|
.ebscn-checkbox .ebscn-checkbox-icon {
|
|
23
|
+
margin: auto;
|
|
20
24
|
flex: none;
|
|
21
25
|
border-radius: var(--icon-size);
|
|
22
26
|
border: 1px solid var(--ebscn-color-light);
|
|
23
27
|
box-sizing: border-box;
|
|
24
|
-
width:
|
|
28
|
+
width: 20px;
|
|
29
|
+
width: var(---icon-size);
|
|
30
|
+
height: 20px;
|
|
25
31
|
height: var(--icon-size);
|
|
26
32
|
color: var(--ebscn-color-text-light-solid);
|
|
27
33
|
}
|
|
@@ -81,7 +87,6 @@
|
|
|
81
87
|
}
|
|
82
88
|
.ebscn-checkbox .ebscn-checkbox-icon-right-input .ebscn-checkbox-icon.ebscn-checkbox-only-icon {
|
|
83
89
|
margin-right: 16px;
|
|
84
|
-
height: 100%;
|
|
85
90
|
border-color: transparent;
|
|
86
91
|
}
|
|
87
92
|
.ebscn-checkbox .ebscn-checkbox-icon-right-input .ebscn-checkbox-icon.ebscn-checkbox-only-icon svg {
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
align-items: center;
|
|
4
4
|
margin: 16px 0;
|
|
5
5
|
border-width: 0;
|
|
6
|
-
border-color: var(--color);
|
|
6
|
+
border-color: var(--ebscn-color-split-line);
|
|
7
7
|
border-style: solid;
|
|
8
|
-
color:
|
|
8
|
+
color: #ebebeb;
|
|
9
|
+
color: var(--ebscn-color-split-line);
|
|
9
10
|
font-size: 14px;
|
|
10
11
|
}
|
|
11
12
|
.ebscn-divider-left.ebscn-divider-horizontal::before {
|
|
@@ -35,5 +36,5 @@
|
|
|
35
36
|
margin: 0 16px;
|
|
36
37
|
vertical-align: middle;
|
|
37
38
|
border-top: 0;
|
|
38
|
-
border-left: 1px solid var(--color);
|
|
39
|
+
border-left: 1px solid var(--ebscn-color-split-line);
|
|
39
40
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--bgColor: #FFFFFF;
|
|
4
4
|
--subTitleColor: #666666;
|
|
5
5
|
--buttonColor: #666666;
|
|
6
|
+
--icon-size: 20px;
|
|
6
7
|
display: flex;
|
|
7
8
|
align-items: center;
|
|
8
9
|
height: 44px;
|
|
@@ -15,7 +16,11 @@
|
|
|
15
16
|
.ebscn-header-left,
|
|
16
17
|
.ebscn-header-right {
|
|
17
18
|
flex: 1;
|
|
18
|
-
font-size:
|
|
19
|
+
font-size: 20px;
|
|
20
|
+
font-size: var(--icon-size);
|
|
21
|
+
}
|
|
22
|
+
.ebscn-header-left-back {
|
|
23
|
+
padding: 4px;
|
|
19
24
|
}
|
|
20
25
|
.ebscn-header-title {
|
|
21
26
|
flex: auto;
|
|
@@ -54,6 +59,7 @@
|
|
|
54
59
|
display: flex;
|
|
55
60
|
justify-content: flex-end;
|
|
56
61
|
align-items: center;
|
|
62
|
+
margin-right: 4px;
|
|
57
63
|
}
|
|
58
64
|
.ebscn-header-text-button {
|
|
59
65
|
font-size: 15px;
|
|
@@ -21,11 +21,13 @@ var Header = function (p) {
|
|
|
21
21
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
22
22
|
className: (0, _classnames.default)(classPrefix)
|
|
23
23
|
}, _react.default.createElement("div", {
|
|
24
|
-
className: "".concat(classPrefix, "-left")
|
|
24
|
+
className: "".concat(classPrefix, "-left")
|
|
25
|
+
}, props.showLeftIcon && _react.default.createElement("div", {
|
|
26
|
+
className: "".concat(classPrefix, "-left-back"),
|
|
25
27
|
onClick: function () {
|
|
26
28
|
return props.onLeftClick();
|
|
27
29
|
}
|
|
28
|
-
},
|
|
30
|
+
}, _react.default.createElement(_backIcon.default, null), " "), props.left), _react.default.createElement("div", {
|
|
29
31
|
className: "".concat(classPrefix, "-title")
|
|
30
32
|
}, props.title && _react.default.createElement("div", null, props.title), props.subTitle && _react.default.createElement("div", {
|
|
31
33
|
className: "".concat(classPrefix, "-subtitle")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
html[data-prefers-color-scheme='dark'] .ebscn-number-keyboard-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
4
|
}
|
|
5
5
|
.ebscn-number-keyboard {
|
|
6
6
|
display: none;
|
|
@@ -16,67 +16,71 @@ html[data-prefers-color-scheme='dark'] .ebscn-number-keyboard-delete {
|
|
|
16
16
|
padding: 3px;
|
|
17
17
|
background-color: #fff;
|
|
18
18
|
background-color: var(--ebscn-color-keyboard-bg);
|
|
19
|
+
box-sizing: border-box;
|
|
19
20
|
transition: all 0.5s;
|
|
20
21
|
align-content: flex-start;
|
|
21
22
|
}
|
|
22
|
-
.ebscn-number-keyboard-key
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
height:
|
|
26
|
-
line-height: 48.5px;
|
|
23
|
+
.ebscn-number-keyboard-key {
|
|
24
|
+
width: calc(25% - 8.25px);
|
|
25
|
+
height: 46px;
|
|
26
|
+
line-height: 46px;
|
|
27
27
|
border-radius: 4.17px;
|
|
28
28
|
margin: 3px;
|
|
29
29
|
text-align: center;
|
|
30
30
|
font-weight: 400;
|
|
31
|
-
}
|
|
32
|
-
.ebscn-number-keyboard-key {
|
|
33
31
|
font-size: 23px;
|
|
34
32
|
color: #333;
|
|
35
33
|
color: var(--ebscn-color-text);
|
|
36
34
|
background-color: #fff;
|
|
37
35
|
background-color: var(--ebscn-color-keyboard-key-bg);
|
|
36
|
+
border: 0.5px solid #888;
|
|
37
|
+
border-color: var(--ebscn-color-keyboard-key-border);
|
|
38
38
|
}
|
|
39
39
|
.ebscn-number-keyboard-key:active {
|
|
40
40
|
background-color: #e5e5e5;
|
|
41
|
-
background-color: var(--ebscn-color-keyboard-active
|
|
41
|
+
background-color: var(--ebscn-color-keyboard-key-bg-active);
|
|
42
|
+
}
|
|
43
|
+
.ebscn-number-keyboard-ABC {
|
|
44
|
+
font-size: 19px;
|
|
45
|
+
font-size: var(--ebscn-font-size-11);
|
|
42
46
|
}
|
|
43
47
|
.ebscn-number-keyboard-option {
|
|
44
|
-
font-size:
|
|
45
|
-
font-size: var(--ebscn-font-size-
|
|
48
|
+
font-size: 19px;
|
|
49
|
+
font-size: var(--ebscn-font-size-11);
|
|
46
50
|
color: #333;
|
|
47
51
|
color: var(--ebscn-color-text);
|
|
48
52
|
background-color: #adb3bd;
|
|
49
|
-
background-color: var(--ebscn-color-
|
|
53
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
54
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
50
55
|
}
|
|
51
56
|
.ebscn-number-keyboard-option:active {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
background-color: #e5e5e5;
|
|
55
|
-
background-color: var(--ebscn-color-keyboard-active-background);
|
|
57
|
+
background-color: #252525;
|
|
58
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
56
59
|
}
|
|
57
60
|
.ebscn-number-keyboard-delete {
|
|
58
61
|
background: url(../../assets/images/delete.png) no-repeat center;
|
|
59
62
|
background-color: #adb3bd;
|
|
60
|
-
background-color: var(--ebscn-color-
|
|
61
|
-
background-size:
|
|
63
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg);
|
|
64
|
+
background-size: 25px 25px;
|
|
65
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
62
66
|
}
|
|
63
67
|
.ebscn-number-keyboard-delete:active {
|
|
64
68
|
background: url(../../assets/images/delete.png) no-repeat center;
|
|
65
|
-
background-color: #
|
|
66
|
-
background-color: var(--ebscn-color-keyboard-active
|
|
67
|
-
background-size:
|
|
69
|
+
background-color: #252525;
|
|
70
|
+
background-color: var(--ebscn-color-keyboard-fckey-bg-active);
|
|
71
|
+
background-size: 25px 25px;
|
|
68
72
|
}
|
|
69
73
|
.ebscn-number-keyboard-confirmKey {
|
|
70
74
|
background-color: #e84225;
|
|
71
75
|
background-color: var(--ebscn-color-primary);
|
|
72
|
-
|
|
73
|
-
font-size:
|
|
74
|
-
font-size: var(--ebscn-font-size-10);
|
|
76
|
+
font-size: 19px;
|
|
77
|
+
font-size: var(--ebscn-font-size-11);
|
|
75
78
|
color: #fff;
|
|
76
79
|
color: var(--ebscn-color-white);
|
|
80
|
+
border-color: var(--ebscn-color-keyboard-fckey-border);
|
|
77
81
|
}
|
|
78
82
|
.ebscn-number-keyboard-confirmKey:active {
|
|
79
|
-
background-color: #
|
|
83
|
+
background-color: #d13c21;
|
|
80
84
|
}
|
|
81
85
|
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
82
86
|
.ebscn-number-keyboard {
|
|
@@ -83,7 +83,7 @@ function NumberKeyboard(p) {
|
|
|
83
83
|
}, keys.map(function (item, index) {
|
|
84
84
|
return _react.default.createElement("div", {
|
|
85
85
|
key: item || index,
|
|
86
|
-
className: (0, _classnames.default)(
|
|
86
|
+
className: (0, _classnames.default)("".concat(classPrefix, "-key"), item === 'ABC' ? "".concat(classPrefix, "-ABC") : '', typeof item !== 'number' && item.length && item !== '.' && item !== '确定' && item !== 'ABC' ? "".concat(classPrefix, "-option") : item == '确定' ? "".concat(classPrefix, "-confirmKey") : "".concat(classPrefix, "-number-key"), item === 'X' && "".concat(classPrefix, "-delete")),
|
|
87
87
|
onClick: function () {
|
|
88
88
|
if (visible) {
|
|
89
89
|
onKeyPress(item);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ebscn-picker-view {
|
|
2
2
|
--height: 240px;
|
|
3
|
-
--item-height:
|
|
3
|
+
--item-height: 33px;
|
|
4
4
|
--item-font-size: var(--ebscn-font-size-8);
|
|
5
5
|
height: var(--height);
|
|
6
6
|
width: 100%;
|
|
@@ -97,9 +97,10 @@
|
|
|
97
97
|
}
|
|
98
98
|
.ebscn-picker-view-mask-middle {
|
|
99
99
|
height: var(--item-height);
|
|
100
|
+
margin: 0 16px;
|
|
100
101
|
box-sizing: border-box;
|
|
101
102
|
flex: none;
|
|
102
|
-
background-color: rgba(0, 0, 0, 0.
|
|
103
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
103
104
|
z-index: 0;
|
|
104
105
|
}
|
|
105
106
|
.ebscn-picker-view-mask-top {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
---gap-horizontal: var(--gap-horizontal, var(--gap));
|
|
13
13
|
---gap-vertical: var(--gap-vertical, var(--gap));
|
|
14
14
|
overflow: hidden;
|
|
15
|
-
font-size: var(--ebscn-font-size-
|
|
15
|
+
font-size: var(--ebscn-font-size-6);
|
|
16
16
|
line-height: 1.4;
|
|
17
17
|
}
|
|
18
18
|
.ebscn-selector .ebscn-space.ebscn-space {
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
--width: 100%;
|
|
3
3
|
--height: 0;
|
|
4
4
|
--border-radius: 3px;
|
|
5
|
-
background-color:
|
|
5
|
+
background-color: #f8f9fc;
|
|
6
6
|
border-radius: var(--border-radius);
|
|
7
7
|
width: var(--width);
|
|
8
8
|
height: var(--height);
|
|
9
9
|
display: block;
|
|
10
10
|
}
|
|
11
11
|
.ebscn-skeleton.ebscn-skeleton-animated {
|
|
12
|
-
background: linear-gradient(90deg, rgba(
|
|
12
|
+
background: linear-gradient(90deg, rgba(248, 249, 245) 25%, rgba(248, 249, 245, 0.3) 37%, rgba(248, 249, 245) 63%);
|
|
13
13
|
background-size: 400% 100%;
|
|
14
14
|
animation: ebscn-skeleton-loading 1.3s ease infinite;
|
|
15
15
|
}
|
|
16
16
|
.ebscn-skeleton.ebscn-skeleton-primary {
|
|
17
|
-
background-color: rgba(
|
|
17
|
+
background-color: rgba(255, 66, 37, 0.2);
|
|
18
18
|
}
|
|
19
19
|
.ebscn-skeleton.ebscn-skeleton-primary.ebscn-skeleton.ebscn-skeleton-primary-animated {
|
|
20
|
-
background: linear-gradient(90deg, rgba(
|
|
20
|
+
background: linear-gradient(90deg, rgba(255, 216, 214) 25%, rgba(255, 216, 214, 0.3) 37%, rgba(255, 216, 214) 63%);
|
|
21
21
|
background-size: 400% 100%;
|
|
22
22
|
animation: ebscn-skeleton-loading 1.3s ease infinite;
|
|
23
23
|
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
.ebscn-squared-grid-item {
|
|
13
13
|
flex: 0 0 var(--flex-basic);
|
|
14
14
|
display: flex;
|
|
15
|
-
justify-content: center;
|
|
16
15
|
align-items: center;
|
|
17
16
|
flex-direction: var(--item-flex-direction);
|
|
18
17
|
}
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
width: var(--icon-size);
|
|
21
20
|
height: var(--icon-size);
|
|
22
21
|
font-size: var(--icon-size);
|
|
23
|
-
|
|
22
|
+
padding: 6px;
|
|
24
23
|
}
|
|
25
24
|
.ebscn-squared-grid-item-label {
|
|
26
25
|
font-size: var(--ebscn-font-size-5);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { FC, ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, FC, ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { NativeProps } from '../../utils/native-props';
|
|
4
4
|
import { PageIndicatorProps } from '../page-indicator';
|
|
5
5
|
export type SquaredGridProps = {
|
|
6
6
|
maxColumns?: number;
|
|
7
7
|
maxRow?: number;
|
|
8
|
+
justifyContent?: CSSProperties['justifyContent'];
|
|
8
9
|
children?: ReactNode;
|
|
9
10
|
indicatorProps?: Pick<PageIndicatorProps, 'color' | 'style' | 'className'>;
|
|
10
11
|
} & NativeProps<'--row-gap' | '--icon-size'>;
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SquaredGridItem = exports.SquaredGrid = void 0;
|
|
7
|
-
var _ = require("../..");
|
|
8
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _ = require("../..");
|
|
10
10
|
var _nativeProps = require("../../utils/native-props");
|
|
11
11
|
var _withDefaultProps = require("../../utils/with-default-props");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -38,8 +38,17 @@ var SquaredGrid = function (p) {
|
|
|
38
38
|
var children = _react.default.Children.toArray(props === null || props === void 0 ? void 0 : props.children);
|
|
39
39
|
var pageSize = maxColumns * maxRow;
|
|
40
40
|
var overPage = pageSize < children.length;
|
|
41
|
+
var justifyContent = props.justifyContent;
|
|
42
|
+
if (!justifyContent) {
|
|
43
|
+
if (children.length > maxColumns) {
|
|
44
|
+
justifyContent = 'flex-start';
|
|
45
|
+
} else {
|
|
46
|
+
justifyContent = 'space-around';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
41
49
|
var style = {
|
|
42
|
-
'--flex': "".concat(100 / maxColumns, "%")
|
|
50
|
+
'--flex': "".concat(100 / maxColumns, "%"),
|
|
51
|
+
justifyContent: justifyContent
|
|
43
52
|
};
|
|
44
53
|
var renderSwiperItems = function () {
|
|
45
54
|
var pages = chunkArray(children, pageSize);
|