@ebscn/ui 1.0.3-beta.4 → 1.0.3-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/assets/images/delete_dark.png +0 -0
  2. package/assets/images/keybord_keybord_dark.png +0 -0
  3. package/assets/images/keybord_shift_dark.png +0 -0
  4. package/cjs/assets/images/delete_dark.png +0 -0
  5. package/cjs/assets/images/keybord_keybord_dark.png +0 -0
  6. package/cjs/assets/images/keybord_shift_dark.png +0 -0
  7. package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +29 -14
  8. package/cjs/components/card/card.js +2 -2
  9. package/cjs/components/icons/back-icon.js +1 -0
  10. package/cjs/components/icons/clear-icon.js +1 -0
  11. package/cjs/components/icons/close-icon.js +2 -1
  12. package/cjs/components/icons/notice-icon.js +2 -1
  13. package/cjs/components/icons/right-icon.js +1 -0
  14. package/cjs/components/input/input.css +27 -27
  15. package/cjs/components/input/input.js +1 -1
  16. package/cjs/components/number-keyboard/number-keyboard.css +16 -36
  17. package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +32 -38
  18. package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
  19. package/cjs/components/stock-keyboard/alphabet-keyboard.css +136 -0
  20. package/cjs/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
  21. package/cjs/components/stock-keyboard/alphabet-keyboard.js +107 -0
  22. package/cjs/components/stock-keyboard/index.d.ts +1 -0
  23. package/cjs/components/stock-keyboard/index.js +1 -0
  24. package/cjs/components/stock-keyboard/stock-keyboard.css +79 -70
  25. package/cjs/components/stock-keyboard/stock-keyboard.d.ts +2 -2
  26. package/cjs/components/stock-keyboard/stock-keyboard.js +40 -8
  27. package/cjs/global/global.css +11 -2
  28. package/cjs/global/theme-dark.css +7 -2
  29. package/cjs/global/theme-default.css +4 -0
  30. package/cjs/index.d.ts +0 -4
  31. package/cjs/index.js +1 -33
  32. package/es/assets/images/delete_dark.png +0 -0
  33. package/es/assets/images/keybord_keybord_dark.png +0 -0
  34. package/es/assets/images/keybord_shift_dark.png +0 -0
  35. package/es/components/alphabet-keyboard/alphabet-keyboard.css +29 -14
  36. package/es/components/card/card.js +2 -2
  37. package/es/components/icons/back-icon.js +1 -0
  38. package/es/components/icons/clear-icon.js +1 -0
  39. package/es/components/icons/close-icon.js +2 -1
  40. package/es/components/icons/notice-icon.js +2 -1
  41. package/es/components/icons/right-icon.js +1 -0
  42. package/es/components/input/input.css +27 -27
  43. package/es/components/input/input.js +1 -1
  44. package/es/components/number-keyboard/number-keyboard.css +16 -36
  45. package/es/components/stock-count-keyboard/stock-count-keyboard.css +32 -38
  46. package/es/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
  47. package/es/components/stock-keyboard/alphabet-keyboard.css +136 -0
  48. package/es/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
  49. package/es/components/stock-keyboard/alphabet-keyboard.js +100 -0
  50. package/es/components/stock-keyboard/index.d.ts +1 -0
  51. package/es/components/stock-keyboard/index.js +1 -0
  52. package/es/components/stock-keyboard/stock-keyboard.css +79 -70
  53. package/es/components/stock-keyboard/stock-keyboard.d.ts +2 -2
  54. package/es/components/stock-keyboard/stock-keyboard.js +41 -9
  55. package/es/global/global.css +11 -2
  56. package/es/global/theme-dark.css +7 -2
  57. package/es/global/theme-default.css +4 -0
  58. package/es/index.d.ts +0 -4
  59. package/es/index.js +4 -4
  60. package/package.json +1 -1
Binary file
@@ -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: #d2d5db;
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
- box-shadow: 0px 0.5px 0px 0px #888888;
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: #adb3bd;
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) #adb3bd no-repeat center;
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) #adb3bd no-repeat center;
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) #adb3bd no-repeat center;
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-white);
63
+ background: var(--ebscn-color-keyboard-key-bg);
47
64
  border-radius: 5px;
48
- box-shadow: 0px 0.5px 0px 0px #888888;
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.2%;
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-white);
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: var(--ebscn-color-white);
130
+ color: #fff;
116
131
  line-height: 22.5px;
117
132
  }
118
133
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm:active {
@@ -16,7 +16,7 @@ function Card(props) {
16
16
  return null;
17
17
  }
18
18
  return _react.default.createElement("div", {
19
- className: (0, _classnames.default)("".concat(classPrefix, "-header"), "".concat(classPrefix, "-").concat(props.type, "-header"), props.headerClassName),
19
+ className: (0, _classnames.default)("".concat(classPrefix, "-header"), "".concat(typeClassName, "-header"), props.headerClassName),
20
20
  style: props.headerStyle,
21
21
  onClick: props.onHeaderClick
22
22
  }, _react.default.createElement("div", {
@@ -28,7 +28,7 @@ function Card(props) {
28
28
  return null;
29
29
  }
30
30
  return _react.default.createElement("div", {
31
- className: (0, _classnames.default)("".concat(classPrefix, "-body"), "".concat(classPrefix, "-").concat(props.type, "-body"), props.bodyClassName),
31
+ className: (0, _classnames.default)("".concat(classPrefix, "-body"), "".concat(typeClassName, "-body"), props.bodyClassName),
32
32
  style: props.bodyStyle,
33
33
  onClick: props.onBodyClick
34
34
  }, props.children);
@@ -18,6 +18,7 @@ var BackIcon = (0, _react.memo)(function (props) {
18
18
  width: "1em",
19
19
  height: "1em"
20
20
  }, _react.default.createElement("path", {
21
+ fill: "currentColor",
21
22
  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",
22
23
  "p-id": "8061"
23
24
  })));
@@ -18,6 +18,7 @@ var ClearIcon = (0, _react.memo)(function (props) {
18
18
  width: "1em",
19
19
  height: "1em"
20
20
  }, _react.default.createElement("path", {
21
+ fill: "currentColor",
21
22
  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",
22
23
  "p-id": "8691"
23
24
  })));
@@ -16,7 +16,8 @@ var CloseIcon = (0, _react.memo)(function (props) {
16
16
  xmlns: "http://www.w3.org/2000/svg",
17
17
  "p-id": "8217",
18
18
  width: "1em",
19
- height: "1em"
19
+ height: "1em",
20
+ fill: "currentColor"
20
21
  }, _react.default.createElement("path", {
21
22
  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",
22
23
  "p-id": "8218"
@@ -16,7 +16,8 @@ var NoticeIcon = (0, _react.memo)(function (props) {
16
16
  xmlns: "http://www.w3.org/2000/svg",
17
17
  "p-id": "8375",
18
18
  width: "1em",
19
- height: "1em"
19
+ height: "1em",
20
+ fill: "currentColor"
20
21
  }, _react.default.createElement("path", {
21
22
  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",
22
23
  fill: "#333333",
@@ -18,6 +18,7 @@ var RightIcon = (0, _react.memo)(function (props) {
18
18
  width: "1em",
19
19
  height: "1em"
20
20
  }, _react.default.createElement("path", {
21
+ fill: "currentColor",
21
22
  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",
22
23
  "p-id": "8534"
23
24
  })));
@@ -1,7 +1,7 @@
1
- .adm-input {
2
- --font-size: var(--adm-font-size-9);
3
- --color: var(--adm-color-text);
4
- --placeholder-color: var(--adm-color-light);
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
- .adm-input-disabled {
16
+ .ebscn-input-disabled {
17
17
  opacity: 0.4;
18
18
  cursor: not-allowed;
19
19
  }
20
- .adm-input-element {
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
- .adm-input-element::-webkit-input-placeholder {
40
+ .ebscn-input-element::-webkit-input-placeholder {
41
41
  color: var(--placeholder-color);
42
42
  font-family: inherit;
43
43
  }
44
- .adm-input-element::placeholder {
44
+ .ebscn-input-element::placeholder {
45
45
  color: var(--placeholder-color);
46
46
  font-family: inherit;
47
47
  }
48
- .adm-input-element:-webkit-autofill {
48
+ .ebscn-input-element:-webkit-autofill {
49
49
  background-color: transparent;
50
50
  }
51
- .adm-input-element:read-only {
51
+ .ebscn-input-element:read-only {
52
52
  cursor: default;
53
53
  }
54
- .adm-input-element:invalid {
54
+ .ebscn-input-element:invalid {
55
55
  box-shadow: none;
56
56
  }
57
- .adm-input-element::-ms-clear {
57
+ .ebscn-input-element::-ms-clear {
58
58
  display: none;
59
59
  }
60
- .adm-input-element::-ms-reveal {
60
+ .ebscn-input-element::-ms-reveal {
61
61
  display: none;
62
62
  }
63
- .adm-input-element::-webkit-search-cancel-button {
63
+ .ebscn-input-element::-webkit-search-cancel-button {
64
64
  display: none;
65
65
  }
66
- .adm-input-element::-webkit-search-decoration {
66
+ .ebscn-input-element::-webkit-search-decoration {
67
67
  display: none;
68
68
  }
69
- .adm-input-element:disabled {
69
+ .ebscn-input-element:disabled {
70
70
  opacity: 1;
71
71
  }
72
- .adm-input-element[type='date'],
73
- .adm-input-element[type='time'],
74
- .adm-input-element[type='datetime-local'] {
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
- .adm-input-element[type='search'] {
77
+ .ebscn-input-element[type='search'] {
78
78
  -webkit-appearance: none;
79
79
  }
80
- .adm-input-element[readonly] {
80
+ .ebscn-input-element[readonly] {
81
81
  pointer-events: none;
82
82
  }
83
- .adm-input-clear {
83
+ .ebscn-input-clear {
84
84
  flex: none;
85
85
  margin-left: 8px;
86
- color: var(--adm-color-light);
86
+ color: var(--ebscn-color-light);
87
87
  padding: 4px;
88
88
  cursor: pointer;
89
89
  }
90
- .adm-input-clear:active {
91
- color: var(--adm-color-weak);
90
+ .ebscn-input-clear:active {
91
+ color: var(--ebscn-color-weak);
92
92
  }
93
- .adm-input-clear .antd-mobile-icon {
93
+ .ebscn-input-clear .antd-mobile-icon {
94
94
  display: block;
95
- font-size: var(--adm-font-size-7);
95
+ font-size: var(--ebscn-font-size-7);
96
96
  }
@@ -16,7 +16,7 @@ var _validate = require("../../utils/validate");
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
- var classPrefix = "adm-input";
19
+ var classPrefix = "ebscn-input";
20
20
  var defaultProps = {
21
21
  defaultValue: '',
22
22
  onlyShowClearWhenFocus: true
@@ -1,14 +1,6 @@
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'] {
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 :last-child {
30
- background: var(--ebscn-color-primary);
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: 48px;
36
- line-height: 48px;
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-size: 24px;
41
- font-weight: bold;
42
- color: var(--ebscn-color-text-dark-solid);
43
- font-weight: 300;
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-11);
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-11);
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% - 7.5px);
71
- height: 48px;
72
- line-height: 48px;
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: 216px;
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 :last-child {
14
- background: var(--ebscn-color-primary);
15
- color: var(--ebscn-color-background);
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
- width: 20%;
19
- height: 54px;
20
- text-align: center;
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
- width: 20%;
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-11);
40
- background: #e1e3e8;
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-11);
44
- background: #CACBD0;
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) #e1e3e8 no-repeat center;
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) #CACBD0 no-repeat center;
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
- width: 20%;
57
- height: 54px;
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(216px + env(safe-area-inset-bottom));
72
- height: calc(216px + constant(safe-area-inset-bottom));
65
+ height: calc(223px + env(safe-area-inset-bottom));
66
+ height: calc(223px + constant(safe-area-inset-bottom));
73
67
  }
74
68
  }
@@ -71,7 +71,7 @@ function StockCountKeyboard(p) {
71
71
  }, keys.map(function (item, index) {
72
72
  return _react.default.createElement("div", {
73
73
  key: item || index,
74
- className: (0, _classnames.default)(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")),
74
+ className: (0, _classnames.default)(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")),
75
75
  onClick: function () {
76
76
  if (visible) {
77
77
  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;