@ebscn/ui 1.0.3-beta.3 → 1.0.3-beta.30

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 (217) 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_shift2.png +0 -0
  4. package/assets/images/keybord_shift2_dark.png +0 -0
  5. package/assets/images/keybord_shift_dark.png +0 -0
  6. package/assets/images/loading.gif +0 -0
  7. package/cjs/assets/images/delete_dark.png +0 -0
  8. package/cjs/assets/images/keybord_keybord_dark.png +0 -0
  9. package/cjs/assets/images/keybord_shift2.png +0 -0
  10. package/cjs/assets/images/keybord_shift2_dark.png +0 -0
  11. package/cjs/assets/images/keybord_shift_dark.png +0 -0
  12. package/cjs/assets/images/loading.gif +0 -0
  13. package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +108 -43
  14. package/cjs/components/alphabet-keyboard/alphabet-keyboard.js +1 -2
  15. package/cjs/components/button/selectorButton.css +2 -0
  16. package/cjs/components/button/selectorButton.js +1 -5
  17. package/cjs/components/card/card.css +1 -1
  18. package/cjs/components/card/card.js +2 -2
  19. package/cjs/components/checkbox/checkbox.css +8 -2
  20. package/cjs/components/date-range-picker/date-range-picker.css +31 -7
  21. package/cjs/components/date-range-picker/date-range-picker.d.ts +1 -0
  22. package/cjs/components/date-range-picker/date-range-picker.js +18 -9
  23. package/cjs/components/divider/divider.css +4 -3
  24. package/cjs/components/header/header.css +7 -1
  25. package/cjs/components/header/header.js +4 -2
  26. package/cjs/components/icons/back-icon.js +1 -0
  27. package/cjs/components/icons/clear-icon.js +1 -0
  28. package/cjs/components/icons/close-icon.js +2 -1
  29. package/cjs/components/icons/down-icon.d.ts +4 -0
  30. package/cjs/components/icons/down-icon.js +26 -0
  31. package/cjs/components/icons/dustbin-icon.d.ts +4 -0
  32. package/cjs/components/icons/dustbin-icon.js +26 -0
  33. package/cjs/components/icons/index.d.ts +3 -0
  34. package/cjs/components/icons/index.js +21 -0
  35. package/cjs/components/icons/notice-icon.js +2 -2
  36. package/cjs/components/icons/right-icon.js +1 -0
  37. package/cjs/components/icons/search-icon.js +2 -1
  38. package/cjs/components/icons/up-icon.d.ts +4 -0
  39. package/cjs/components/icons/up-icon.js +26 -0
  40. package/cjs/components/icons/warning-icon.js +2 -1
  41. package/cjs/components/infinite-scroll/index.d.ts +4 -0
  42. package/cjs/components/infinite-scroll/index.js +9 -0
  43. package/cjs/components/infinite-scroll/infinite-scroll.css +27 -0
  44. package/cjs/components/infinite-scroll/infinite-scroll.d.ts +11 -0
  45. package/cjs/components/infinite-scroll/infinite-scroll.js +278 -0
  46. package/cjs/components/input/input.css +27 -27
  47. package/cjs/components/input/input.js +1 -1
  48. package/cjs/components/list/index.d.ts +16 -0
  49. package/cjs/components/list/index.js +13 -0
  50. package/cjs/components/list/list-item.d.ts +15 -0
  51. package/cjs/components/list/list-item.js +38 -0
  52. package/cjs/components/list/list.css +101 -0
  53. package/cjs/components/list/list.d.ts +20 -0
  54. package/cjs/components/list/list.js +38 -0
  55. package/cjs/components/number-keyboard/number-keyboard.css +55 -42
  56. package/cjs/components/number-keyboard/number-keyboard.d.ts +1 -0
  57. package/cjs/components/number-keyboard/number-keyboard.js +2 -1
  58. package/cjs/components/picker/picker.css +3 -0
  59. package/cjs/components/picker-view/picker-view.css +11 -2
  60. package/cjs/components/popover/arrow.d.ts +3 -0
  61. package/cjs/components/popover/arrow.js +19 -0
  62. package/cjs/components/popover/index.d.ts +31 -0
  63. package/cjs/components/popover/index.js +14 -0
  64. package/cjs/components/popover/normalize-placement.d.ts +2 -0
  65. package/cjs/components/popover/normalize-placement.js +20 -0
  66. package/cjs/components/popover/popover-menu.css +65 -0
  67. package/cjs/components/popover/popover-menu.d.ts +20 -0
  68. package/cjs/components/popover/popover-menu.js +74 -0
  69. package/cjs/components/popover/popover.css +68 -0
  70. package/cjs/components/popover/popover.d.ts +41 -0
  71. package/cjs/components/popover/popover.js +280 -0
  72. package/cjs/components/popover/wrapper.d.ts +10 -0
  73. package/cjs/components/popover/wrapper.js +53 -0
  74. package/cjs/components/popup/popup.css +4 -16
  75. package/cjs/components/protocol/protocol.js +1 -2
  76. package/cjs/components/pull-to-refresh/pull-to-refresh.css +10 -1
  77. package/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +1 -1
  78. package/cjs/components/pull-to-refresh/pull-to-refresh.js +5 -5
  79. package/cjs/components/radio/radio.css +5 -0
  80. package/cjs/components/selector/selector.css +1 -1
  81. package/cjs/components/skeleton/skeleton.css +4 -4
  82. package/cjs/components/squared-grid/squared-grid.css +1 -2
  83. package/cjs/components/squared-grid/squared-grid.d.ts +2 -1
  84. package/cjs/components/squared-grid/squared-grid.js +11 -2
  85. package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +48 -41
  86. package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
  87. package/cjs/components/stock-keyboard/alphabet-keyboard.css +186 -0
  88. package/cjs/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
  89. package/cjs/components/stock-keyboard/alphabet-keyboard.js +106 -0
  90. package/cjs/components/stock-keyboard/index.d.ts +1 -0
  91. package/cjs/components/stock-keyboard/index.js +1 -0
  92. package/cjs/components/stock-keyboard/stock-keyboard.css +135 -76
  93. package/cjs/components/stock-keyboard/stock-keyboard.d.ts +2 -2
  94. package/cjs/components/stock-keyboard/stock-keyboard.js +42 -10
  95. package/cjs/components/switch/switch.css +2 -3
  96. package/cjs/components/tabs/tabs.css +6 -4
  97. package/cjs/components/tabs/tabs.js +5 -5
  98. package/cjs/components/tabs/tabs.patch.css +1 -0
  99. package/cjs/components/toast/index.d.ts +9 -0
  100. package/cjs/components/toast/index.js +14 -0
  101. package/cjs/components/toast/methods.d.ts +8 -0
  102. package/cjs/components/toast/methods.js +72 -0
  103. package/cjs/components/toast/toast.css +45 -0
  104. package/cjs/components/toast/toast.d.ts +18 -0
  105. package/cjs/components/toast/toast.js +85 -0
  106. package/cjs/components/toast/toast.patch.css +11 -0
  107. package/cjs/global/global.css +20 -5
  108. package/cjs/global/theme-dark.css +11 -3
  109. package/cjs/global/theme-default.css +9 -2
  110. package/cjs/index.d.ts +4 -0
  111. package/cjs/index.js +33 -1
  112. package/es/assets/images/delete_dark.png +0 -0
  113. package/es/assets/images/keybord_keybord_dark.png +0 -0
  114. package/es/assets/images/keybord_shift2.png +0 -0
  115. package/es/assets/images/keybord_shift2_dark.png +0 -0
  116. package/es/assets/images/keybord_shift_dark.png +0 -0
  117. package/es/assets/images/loading.gif +0 -0
  118. package/es/components/alphabet-keyboard/alphabet-keyboard.css +108 -43
  119. package/es/components/alphabet-keyboard/alphabet-keyboard.js +2 -4
  120. package/es/components/button/selectorButton.css +2 -0
  121. package/es/components/button/selectorButton.js +1 -5
  122. package/es/components/card/card.css +1 -1
  123. package/es/components/card/card.js +2 -2
  124. package/es/components/checkbox/checkbox.css +8 -2
  125. package/es/components/date-range-picker/date-range-picker.css +31 -7
  126. package/es/components/date-range-picker/date-range-picker.d.ts +1 -0
  127. package/es/components/date-range-picker/date-range-picker.js +17 -9
  128. package/es/components/divider/divider.css +4 -3
  129. package/es/components/header/header.css +7 -1
  130. package/es/components/header/header.js +4 -2
  131. package/es/components/icons/back-icon.js +1 -0
  132. package/es/components/icons/clear-icon.js +1 -0
  133. package/es/components/icons/close-icon.js +2 -1
  134. package/es/components/icons/down-icon.d.ts +4 -0
  135. package/es/components/icons/down-icon.js +18 -0
  136. package/es/components/icons/dustbin-icon.d.ts +4 -0
  137. package/es/components/icons/dustbin-icon.js +18 -0
  138. package/es/components/icons/index.d.ts +3 -0
  139. package/es/components/icons/index.js +3 -0
  140. package/es/components/icons/notice-icon.js +2 -2
  141. package/es/components/icons/right-icon.js +1 -0
  142. package/es/components/icons/search-icon.js +2 -1
  143. package/es/components/icons/up-icon.d.ts +4 -0
  144. package/es/components/icons/up-icon.js +18 -0
  145. package/es/components/icons/warning-icon.js +2 -1
  146. package/es/components/infinite-scroll/index.d.ts +4 -0
  147. package/es/components/infinite-scroll/index.js +3 -0
  148. package/es/components/infinite-scroll/infinite-scroll.css +27 -0
  149. package/es/components/infinite-scroll/infinite-scroll.d.ts +11 -0
  150. package/es/components/infinite-scroll/infinite-scroll.js +268 -0
  151. package/es/components/input/input.css +27 -27
  152. package/es/components/input/input.js +1 -1
  153. package/es/components/list/index.d.ts +16 -0
  154. package/es/components/list/index.js +7 -0
  155. package/es/components/list/list-item.d.ts +15 -0
  156. package/es/components/list/list-item.js +30 -0
  157. package/es/components/list/list.css +101 -0
  158. package/es/components/list/list.d.ts +20 -0
  159. package/es/components/list/list.js +29 -0
  160. package/es/components/number-keyboard/number-keyboard.css +55 -42
  161. package/es/components/number-keyboard/number-keyboard.d.ts +1 -0
  162. package/es/components/number-keyboard/number-keyboard.js +2 -1
  163. package/es/components/picker/picker.css +3 -0
  164. package/es/components/picker-view/picker-view.css +11 -2
  165. package/es/components/popover/arrow.d.ts +3 -0
  166. package/es/components/popover/arrow.js +11 -0
  167. package/es/components/popover/index.d.ts +31 -0
  168. package/es/components/popover/index.js +8 -0
  169. package/es/components/popover/normalize-placement.d.ts +2 -0
  170. package/es/components/popover/normalize-placement.js +14 -0
  171. package/es/components/popover/popover-menu.css +65 -0
  172. package/es/components/popover/popover-menu.d.ts +20 -0
  173. package/es/components/popover/popover-menu.js +65 -0
  174. package/es/components/popover/popover.css +68 -0
  175. package/es/components/popover/popover.d.ts +41 -0
  176. package/es/components/popover/popover.js +271 -0
  177. package/es/components/popover/wrapper.d.ts +10 -0
  178. package/es/components/popover/wrapper.js +47 -0
  179. package/es/components/popup/popup.css +4 -16
  180. package/es/components/protocol/protocol.js +1 -2
  181. package/es/components/pull-to-refresh/pull-to-refresh.css +10 -1
  182. package/es/components/pull-to-refresh/pull-to-refresh.d.ts +1 -1
  183. package/es/components/pull-to-refresh/pull-to-refresh.js +5 -5
  184. package/es/components/radio/radio.css +5 -0
  185. package/es/components/selector/selector.css +1 -1
  186. package/es/components/skeleton/skeleton.css +4 -4
  187. package/es/components/squared-grid/squared-grid.css +1 -2
  188. package/es/components/squared-grid/squared-grid.d.ts +2 -1
  189. package/es/components/squared-grid/squared-grid.js +11 -2
  190. package/es/components/stock-count-keyboard/stock-count-keyboard.css +48 -41
  191. package/es/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
  192. package/es/components/stock-keyboard/alphabet-keyboard.css +186 -0
  193. package/es/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
  194. package/es/components/stock-keyboard/alphabet-keyboard.js +98 -0
  195. package/es/components/stock-keyboard/index.d.ts +1 -0
  196. package/es/components/stock-keyboard/index.js +1 -0
  197. package/es/components/stock-keyboard/stock-keyboard.css +135 -76
  198. package/es/components/stock-keyboard/stock-keyboard.d.ts +2 -2
  199. package/es/components/stock-keyboard/stock-keyboard.js +44 -13
  200. package/es/components/switch/switch.css +2 -3
  201. package/es/components/tabs/tabs.css +6 -4
  202. package/es/components/tabs/tabs.js +5 -5
  203. package/es/components/tabs/tabs.patch.css +1 -0
  204. package/es/components/toast/index.d.ts +9 -0
  205. package/es/components/toast/index.js +8 -0
  206. package/es/components/toast/methods.d.ts +8 -0
  207. package/es/components/toast/methods.js +63 -0
  208. package/es/components/toast/toast.css +45 -0
  209. package/es/components/toast/toast.d.ts +18 -0
  210. package/es/components/toast/toast.js +75 -0
  211. package/es/components/toast/toast.patch.css +11 -0
  212. package/es/global/global.css +20 -5
  213. package/es/global/theme-dark.css +11 -3
  214. package/es/global/theme-default.css +9 -2
  215. package/es/index.d.ts +4 -0
  216. package/es/index.js +8 -4
  217. package/package.json +6 -12
@@ -1,111 +1,170 @@
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-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);
8
+ }
1
9
  .ebscn-stock-keyboard {
2
10
  transform: translateY(101%);
3
- display: flex;
4
11
  position: fixed;
5
12
  bottom: 0;
13
+ left: 0;
6
14
  flex-direction: row;
15
+ z-index: 999;
7
16
  width: 100%;
8
- height: 216px;
17
+ height: 262px;
9
18
  transition: all 0.5s;
10
19
  align-content: flex-start;
20
+ background-color: #fff;
21
+ background-color: var(--ebscn-color-keyboard-bg);
22
+ }
23
+ .ebscn-stock-keyboard-top {
24
+ padding: 11px 19px 6px 11px;
25
+ background-color: #fff;
26
+ background-color: var(--ebscn-color-background);
27
+ display: flex;
28
+ align-items: center;
29
+ font-size: 18px;
30
+ font-size: var(--ebscn-font-size-8);
31
+ }
32
+ .ebscn-stock-keyboard-top-item {
33
+ margin-right: 24px;
34
+ padding-bottom: 2px;
35
+ color: #666;
36
+ color: var(--ebscn-color-text-secondary);
37
+ line-height: 21px;
38
+ border-bottom: 2px solid transparent;
39
+ }
40
+ .ebscn-stock-keyboard-top-item-active {
41
+ color: #e84225;
42
+ color: var(--ebscn-color-primary);
43
+ position: relative;
44
+ }
45
+ .ebscn-stock-keyboard-top-item-active::after {
46
+ content: "";
47
+ position: absolute;
48
+ bottom: -2px;
49
+ left: 8px;
50
+ width: 14px;
51
+ /* 固定宽度 */
52
+ height: 2px;
53
+ background: var(--ebscn-color-primary);
54
+ border-radius: 1px;
11
55
  }
12
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right {
56
+ .ebscn-stock-keyboard-bottom {
57
+ display: flex;
58
+ }
59
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right {
60
+ background-color: #d3d5d8;
61
+ background-color: var(--ebscn-color-keyboard-bg);
13
62
  display: flex;
14
63
  flex-wrap: wrap;
15
64
  width: 80%;
16
- height: 216px;
65
+ height: 223px;
17
66
  transition: all 0.5s;
18
67
  align-content: flex-start;
19
68
  }
20
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right :last-child {
21
- background: var(--ebscn-color-primary);
22
- color: var(--ebscn-color-white);
23
- }
24
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-key {
25
- width: 25%;
26
- height: 54px;
27
- line-height: 54px;
28
- text-align: center;
29
- font-size: 24px;
30
- color: #000000;
31
- font-weight: 300;
32
- box-shadow: 0 0 0 1px var(--ebscn-color-light);
33
- background: var(--ebscn-color-white);
34
- }
35
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-key:active {
36
- width: 25%;
37
- height: 54px;
38
- line-height: 54px;
69
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right :last-child {
70
+ background-color: #e84225;
71
+ background-color: var(--ebscn-color-primary);
72
+ color: #fff;
73
+ }
74
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key {
75
+ width: calc(25% - 8.5px);
76
+ margin: 6px 3px 0 3px;
77
+ border-radius: 4px;
78
+ height: 46px;
79
+ line-height: 46px;
39
80
  text-align: center;
40
- font-size: 24px;
41
- color: #000000;
42
- font-weight: 300;
43
- box-shadow: 0 0 0 1px var(--ebscn-color-light);
44
- background: var(--ebscn-color-border);
45
- }
46
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-option {
81
+ font-weight: 400;
82
+ border: 0.5px solid #888;
83
+ border-color: var(--ebscn-color-keyboard-key-border);
84
+ color: #333;
85
+ color: var(--ebscn-color-text);
86
+ font-size: 23px;
87
+ background-color: #fff;
88
+ background-color: var(--ebscn-color-keyboard-key-bg);
89
+ }
90
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-key:active {
91
+ background-color: #e5e5e5;
92
+ background-color: var(--ebscn-color-keyboard-key-bg-active);
93
+ }
94
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-option {
95
+ font-size: 19px;
47
96
  font-size: var(--ebscn-font-size-11);
48
- background: #e1e3e8;
49
- }
50
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-option:active {
97
+ color: #333;
98
+ color: var(--ebscn-color-text);
99
+ background-color: #adb3bd;
100
+ background-color: var(--ebscn-color-keyboard-fckey-bg);
101
+ border-color: var(--ebscn-color-keyboard-fckey-border);
102
+ }
103
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-option:active {
104
+ background-color: #252525;
105
+ background-color: var(--ebscn-color-keyboard-fckey-bg-active);
106
+ }
107
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete {
108
+ background: url(../../assets/images/delete.png) no-repeat center;
109
+ background-color: #adb3bd;
110
+ background-color: var(--ebscn-color-keyboard-fckey-bg);
111
+ background-size: 25px 25px;
112
+ border-color: var(--ebscn-color-keyboard-fckey-border);
113
+ }
114
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-delete:active {
115
+ background: url(../../assets/images/delete.png) no-repeat center;
116
+ background-color: #252525;
117
+ background-color: var(--ebscn-color-keyboard-fckey-bg-active);
118
+ background-size: 25px 25px;
119
+ }
120
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey {
121
+ font-size: 19px;
51
122
  font-size: var(--ebscn-font-size-11);
52
- background: #CACBD0;
53
- }
54
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-delete {
55
- background: url(../../assets/images/delete.png) #e1e3e8 no-repeat center;
56
- background-size: 24px 24px;
57
- }
58
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-delete:active {
59
- background: url(../../assets/images/delete.png) #CACBD0 no-repeat center;
60
- background-size: 24px 24px;
61
- }
62
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-header {
63
- padding-top: 24px;
64
- padding-bottom: 16px;
65
- font-size: var(--ebscn-font-size-10);
66
- color: #333333;
67
- text-align: center;
68
- font-weight: 500;
69
- }
70
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-confirmKey {
123
+ width: calc(25% - 7.5px);
124
+ background-color: #e84225;
71
125
  background-color: var(--ebscn-color-primary);
72
- width: 25%;
73
- height: 54px;
74
- line-height: 54px;
75
- text-align: center;
76
- font-size: var(--ebscn-font-size-11);
77
- color: #000000;
78
- font-weight: 300;
79
- box-shadow: 0 0 0 1px var(--ebscn-color-light);
126
+ border-color: var(--ebscn-color-keyboard-fckey-border);
80
127
  }
81
- .ebscn-stock-keyboard .ebscn-stock-keyboard-right-confirmKey:active {
82
- background-color: #D03B21;
128
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-confirmKey:active {
129
+ background-color: #d13c21;
130
+ color: #fff;
83
131
  color: var(--ebscn-color-white);
84
132
  }
85
- .ebscn-stock-keyboard .ebscn-stock-keyboard-left {
133
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-right-bottom-option {
134
+ font-size: 19px;
135
+ font-size: var(--ebscn-font-size-11);
136
+ }
137
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left {
86
138
  width: 20%;
87
- height: 216px;
139
+ background-color: #d3d5d8;
140
+ background-color: var(--ebscn-color-keyboard-bg);
88
141
  }
89
- .ebscn-stock-keyboard .ebscn-stock-keyboard-left-key {
142
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left-key {
90
143
  display: flex;
91
144
  align-items: center;
92
145
  justify-content: center;
93
- height: 20%;
146
+ border-radius: 4.17px;
147
+ height: 46px;
148
+ margin: 6px 3px 6px 6px;
149
+ font-size: 18px;
94
150
  font-size: var(--ebscn-font-size-10);
95
151
  font-weight: 400;
96
152
  text-align: center;
97
- color: #333333;
98
- line-height: 25px;
99
- box-shadow: 0 0 0 1px var(--ebscn-color-light);
100
- background: #e1e3e8;
101
- }
102
- .ebscn-stock-keyboard .ebscn-stock-keyboard-left-key:active {
103
- font-size: 18px;
104
- background: #CACBD0;
153
+ color: #333;
154
+ color: var(--ebscn-color-text);
155
+ line-height: 46px;
156
+ background-color: #adb3bd;
157
+ background-color: var(--ebscn-color-keyboard-fckey-bg);
158
+ border: 0.5px solid #888;
159
+ border-color: var(--ebscn-color-keyboard-fckey-border);
160
+ }
161
+ .ebscn-stock-keyboard-bottom .ebscn-stock-keyboard-left-key:active {
162
+ background-color: #252525;
163
+ background: var(--ebscn-color-keyboard-fckey-bg-active);
105
164
  }
106
165
  @supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
107
166
  .ebscn-stock-keyboard {
108
- height: calc(216px + env(safe-area-inset-bottom));
109
- height: calc(216px + constant(safe-area-inset-bottom));
167
+ height: calc(262px + env(safe-area-inset-bottom));
168
+ height: calc(262px + constant(safe-area-inset-bottom));
110
169
  }
111
170
  }
@@ -3,10 +3,10 @@ import { NativeProps } from '../../utils/native-props';
3
3
  export type StockKeyboardProps = {
4
4
  visible?: boolean;
5
5
  onInput: Function;
6
- onChangeKeyBoard: Function;
7
6
  onDelete: Function;
8
7
  onClose: Function;
9
8
  onClean: Function;
10
- onConfirm?: Function;
9
+ onConfirm: Function;
10
+ onSelectCN: Function;
11
11
  } & NativeProps;
12
12
  export declare function StockKeyboard(p: StockKeyboardProps): JSX.Element;
@@ -8,6 +8,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _nativeProps = require("../../utils/native-props");
10
10
  var _withDefaultProps = require("../../utils/with-default-props");
11
+ var _alphabetKeyboard = require("./alphabet-keyboard");
11
12
  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); }
12
13
  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; }
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -24,13 +25,15 @@ function StockKeyboard(p) {
24
25
  onClose = props.onClose,
25
26
  onClean = props.onClean,
26
27
  onConfirm = props.onConfirm,
27
- onChangeKeyBoard = props.onChangeKeyBoard;
28
- var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '', '确定'];
29
- var leftKeys = ['600', '601', '000', '002', '300'];
28
+ onSelectCN = props.onSelectCN;
29
+ var keys = [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '002', '确定'];
30
+ var leftKeys = ['600', '601', '000', '300'];
30
31
  var hideTimer = (0, _react.useRef)(null);
31
32
  var appearTimer = (0, _react.useRef)(null);
32
33
  var lastVisible = (0, _react.useRef)(null);
33
- var keyFlag = (0, _react.useRef)(0);
34
+ var _a = (0, _react.useState)(1),
35
+ keyboardType = _a[0],
36
+ setKeyboardType = _a[1];
34
37
  (0, _react.useEffect)(function () {
35
38
  if (!visible) {
36
39
  if (lastVisible.current) {
@@ -70,7 +73,9 @@ function StockKeyboard(p) {
70
73
  case '确定':
71
74
  return onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
72
75
  case 'ABC':
73
- return onChangeKeyBoard === null || onChangeKeyBoard === void 0 ? void 0 : onChangeKeyBoard();
76
+ setKeyboardType(2);
77
+ return;
78
+ //return onChangeKeyBoard?.()
74
79
  default:
75
80
  return onInput === null || onInput === void 0 ? void 0 : onInput(key);
76
81
  }
@@ -79,29 +84,56 @@ function StockKeyboard(p) {
79
84
  ref: keyboardRef,
80
85
  className: "".concat(classPrefix)
81
86
  }, _react.default.createElement("div", {
87
+ className: "".concat(classPrefix, "-top")
88
+ }, _react.default.createElement("div", {
89
+ onClick: function () {
90
+ return setKeyboardType(1);
91
+ },
92
+ className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 1 ? "".concat(classPrefix, "-top-item-active") : '')
93
+ }, "123"), _react.default.createElement("div", {
94
+ onClick: function () {
95
+ return setKeyboardType(2);
96
+ },
97
+ className: "".concat(classPrefix, "-top-item ").concat(keyboardType === 2 ? "".concat(classPrefix, "-top-item-active") : '')
98
+ }, "ABC"), _react.default.createElement("div", {
99
+ onClick: function () {
100
+ return onSelectCN();
101
+ },
102
+ className: "".concat(classPrefix, "-top-item")
103
+ }, "\u4E2D\u6587")), keyboardType === 1 ? _react.default.createElement("div", {
104
+ className: "".concat(classPrefix, "-bottom")
105
+ }, ' ', _react.default.createElement("div", {
82
106
  className: "".concat(classPrefix, "-left")
83
107
  }, leftKeys.map(function (item, index) {
84
108
  return _react.default.createElement("div", {
85
109
  key: item || index,
86
110
  className: "".concat(classPrefix, "-left-key"),
87
- onClick: function () {
111
+ onTouchStart: function () {
88
112
  if (visible) {
89
113
  onKeyPress(item);
90
114
  }
91
115
  }
92
116
  }, item !== 'X' ? item : '');
93
117
  })), _react.default.createElement("div", {
94
- ref: keyboardRef,
95
118
  className: "".concat(classPrefix, "-right")
96
119
  }, keys.map(function (item, index) {
97
120
  return _react.default.createElement("div", {
98
121
  key: item || index,
99
- className: (0, _classnames.default)(item !== '确定' ? "".concat(classPrefix, "-right-key") : "".concat(classPrefix, "-right-confirmKey"), typeof item !== 'number' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-right-option") : item == '确定' ? "".concat(classPrefix, "-right-confirmKey") : "".concat(classPrefix, "-right-number-key"), item === 'X' && "".concat(classPrefix, "-right-delete")),
100
- onClick: function () {
122
+ className: (0, _classnames.default)("".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")),
123
+ onTouchStart: function () {
101
124
  if (visible) {
102
125
  onKeyPress(item);
103
126
  }
104
127
  }
105
128
  }, item !== 'X' ? item : '');
106
- }))));
129
+ }))) : _react.default.createElement(_alphabetKeyboard.AlphabetKeyboard, {
130
+ visible: true,
131
+ onConfirm: onConfirm,
132
+ onDelete: onDelete,
133
+ onClose: onClose,
134
+ onInput: onInput,
135
+ onChangeKeyBoard: function () {
136
+ return setKeyboardType(1);
137
+ }
138
+ })));
107
139
  }
@@ -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: #E9E9EA;
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: #f4f4f4;
97
+ background-color: #e9e9ea;
99
98
  }
100
99
  .ebscn-switch-spin-icon {
101
100
  width: 14px;
@@ -10,9 +10,9 @@
10
10
  }
11
11
  .ebscn-tabs-header {
12
12
  position: relative;
13
- border-bottom: solid 1px var(--ebscn-color-border);
14
13
  }
15
14
  .ebscn-tabs-tab-list {
15
+ padding: 0 6px;
16
16
  display: flex;
17
17
  flex-wrap: nowrap;
18
18
  justify-content: flex-start;
@@ -25,22 +25,24 @@
25
25
  display: none;
26
26
  }
27
27
  .ebscn-tabs-tab-wrapper {
28
- padding: 0 12px;
28
+ padding: 0 10px;
29
29
  }
30
30
  .ebscn-tabs-tab-wrapper-stretch {
31
31
  flex: auto;
32
32
  }
33
33
  .ebscn-tabs-tab {
34
34
  white-space: nowrap;
35
- padding: 8px 0 10px;
35
+ padding: 8px 0 5px;
36
36
  width: -webkit-min-content;
37
37
  width: min-content;
38
38
  margin: 0 auto;
39
- font-size: var(--title-font-size);
39
+ font-size: 16px;
40
40
  position: relative;
41
41
  cursor: pointer;
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 {
@@ -27,7 +27,7 @@ var Tab = function () {
27
27
  exports.Tab = Tab;
28
28
  var defaultProps = {
29
29
  activeMode: 'underline',
30
- activeLineMode: 'auto',
30
+ activeLineMode: 'fixed',
31
31
  stretch: true,
32
32
  direction: 'ltr'
33
33
  };
@@ -132,13 +132,13 @@ var Tabs = function (p) {
132
132
  var x = 0;
133
133
  var width = 0;
134
134
  if (props.activeLineMode === 'auto') {
135
- x = activeTabLeft;
135
+ x = activeTabLeft - 6;
136
136
  width = activeTabWidth;
137
137
  } else if (props.activeLineMode === 'full') {
138
- x = activeTabWrapperLeft;
138
+ x = activeTabWrapperLeft - 6;
139
139
  width = activeTabWrapperWidth;
140
140
  } else {
141
- x = activeTabLeft + (activeTabWidth - activeLineWidth) / 2;
141
+ x = activeTabLeft + (activeTabWidth - activeLineWidth) / 2 - 6;
142
142
  }
143
143
  if (isRTL) {
144
144
  /**
@@ -252,7 +252,7 @@ var Tabs = function (p) {
252
252
  ref: activeLineRef,
253
253
  className: "".concat(classPrefix, "-tab-line"),
254
254
  style: {
255
- width: props.activeLineMode === 'fixed' ? 'var(--fixed-active-line-width, 30px)' : width,
255
+ width: props.activeLineMode === 'fixed' ? 'var(--fixed-active-line-width, 14px)' : width,
256
256
  x: x
257
257
  }
258
258
  }), panes.map(function (pane) {
@@ -3,6 +3,7 @@
3
3
  }
4
4
  .ebscn-tabs-tab {
5
5
  font-size: 17px;
6
+ color: #666;
6
7
  }
7
8
  .ebscn-tabs-tab-active {
8
9
  color: #1677ff;
@@ -0,0 +1,9 @@
1
+ import './toast.less';
2
+ import { clear, show, config } from './methods';
3
+ export type { ToastShowProps, ToastHandler } from './methods';
4
+ declare const Toast: {
5
+ show: typeof show;
6
+ clear: typeof clear;
7
+ config: typeof config;
8
+ };
9
+ export default Toast;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ require("./toast.css");
8
+ var _methods = require("./methods");
9
+ var Toast = {
10
+ show: _methods.show,
11
+ clear: _methods.clear,
12
+ config: _methods.config
13
+ };
14
+ var _default = exports.default = Toast;
@@ -0,0 +1,8 @@
1
+ import { ToastProps } from './toast';
2
+ export type ToastShowProps = Omit<ToastProps, 'visible'>;
3
+ export type ToastHandler = {
4
+ close: () => void;
5
+ };
6
+ export declare function show(p: ToastShowProps | string): ToastHandler;
7
+ export declare function clear(): void;
8
+ export declare function config(val: Pick<ToastProps, 'duration' | 'position' | 'maskClickable'>): void;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.clear = clear;
7
+ exports.config = config;
8
+ exports.show = show;
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _toast = require("./toast");
11
+ var _withDefaultProps = require("../../utils/with-default-props");
12
+ var _renderImperatively = require("../../utils/render-imperatively");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ var __assign = void 0 && (void 0).__assign || function () {
15
+ __assign = Object.assign || function (t) {
16
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
17
+ s = arguments[i];
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
19
+ }
20
+ return t;
21
+ };
22
+ return __assign.apply(this, arguments);
23
+ };
24
+ var currentHandler = null;
25
+ var currentTimeout = null;
26
+ var defaultProps = {
27
+ duration: 2000,
28
+ position: 'center',
29
+ maskClickable: true
30
+ };
31
+ var ToastInner = function (props) {
32
+ return _react.default.createElement(_toast.InternalToast, __assign({}, props));
33
+ };
34
+ function show(p) {
35
+ var props = (0, _withDefaultProps.mergeProps)(defaultProps, typeof p === 'string' ? {
36
+ content: p
37
+ } : p);
38
+ var element = _react.default.createElement(ToastInner, __assign({}, props, {
39
+ onClose: function () {
40
+ currentHandler = null;
41
+ }
42
+ }));
43
+ if (currentHandler) {
44
+ currentHandler.replace(element);
45
+ } else {
46
+ currentHandler = (0, _renderImperatively.renderImperatively)(element);
47
+ }
48
+ if (currentTimeout) {
49
+ window.clearTimeout(currentTimeout);
50
+ }
51
+ if (props.duration !== 0) {
52
+ currentTimeout = window.setTimeout(function () {
53
+ clear();
54
+ }, props.duration);
55
+ }
56
+ return currentHandler;
57
+ }
58
+ function clear() {
59
+ currentHandler === null || currentHandler === void 0 ? void 0 : currentHandler.close();
60
+ currentHandler = null;
61
+ }
62
+ function config(val) {
63
+ if (val.duration !== undefined) {
64
+ defaultProps.duration = val.duration;
65
+ }
66
+ if (val.position !== undefined) {
67
+ defaultProps.position = val.position;
68
+ }
69
+ if (val.maskClickable !== undefined) {
70
+ defaultProps.maskClickable = val.maskClickable;
71
+ }
72
+ }
@@ -0,0 +1,45 @@
1
+ .ebscn-toast-mask .ebscn-toast-wrap {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ text-align: center;
8
+ }
9
+ .ebscn-toast-mask .ebscn-toast-main {
10
+ display: inline-block;
11
+ position: relative;
12
+ top: 50%;
13
+ transform: translateY(-50%);
14
+ width: auto;
15
+ max-width: 204px;
16
+ max-height: 70%;
17
+ overflow: auto;
18
+ color: white;
19
+ word-break: break-all;
20
+ background-color: rgba(0, 0, 0, 0.7);
21
+ border-radius: 8px;
22
+ pointer-events: all;
23
+ font-size: var(--ebscn-font-size-7);
24
+ line-height: 1.5;
25
+ box-sizing: border-box;
26
+ text-align: initial;
27
+ }
28
+ .ebscn-toast-mask .ebscn-toast-main-text {
29
+ padding: 12px;
30
+ min-width: 0px;
31
+ }
32
+ .ebscn-toast-mask .ebscn-toast-main-icon {
33
+ padding: 35px 12px;
34
+ min-width: 150px;
35
+ }
36
+ .ebscn-toast-mask .ebscn-toast-main-icon .ebscn-toast-icon {
37
+ text-align: center;
38
+ margin-bottom: 8px;
39
+ font-size: 36px;
40
+ line-height: 1;
41
+ }
42
+ .ebscn-toast-loading {
43
+ --size: 48px;
44
+ margin: 0 auto 8px;
45
+ }
@@ -0,0 +1,18 @@
1
+ import type { FC, ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
3
+ import { PropagationEvent } from '../../utils/with-stop-propagation';
4
+ import { GetContainer } from '../../utils/render-to-container';
5
+ export interface ToastProps {
6
+ afterClose?: () => void;
7
+ maskStyle?: MaskProps['style'];
8
+ maskClassName?: string;
9
+ maskClickable?: boolean;
10
+ content?: ReactNode;
11
+ icon?: 'success' | 'fail' | ReactNode;
12
+ duration?: number;
13
+ position?: 'top' | 'bottom' | 'center';
14
+ visible?: boolean;
15
+ getContainer?: GetContainer;
16
+ stopPropagation?: PropagationEvent[];
17
+ }
18
+ export declare const InternalToast: FC<ToastProps>;