@ebscn/ui 1.0.3-beta.2 → 1.0.3-beta.20

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 (213) 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 -3
  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 +102 -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-view/picker-view.css +3 -2
  59. package/cjs/components/popover/arrow.d.ts +3 -0
  60. package/cjs/components/popover/arrow.js +19 -0
  61. package/cjs/components/popover/index.d.ts +31 -0
  62. package/cjs/components/popover/index.js +14 -0
  63. package/cjs/components/popover/normalize-placement.d.ts +2 -0
  64. package/cjs/components/popover/normalize-placement.js +20 -0
  65. package/cjs/components/popover/popover-menu.css +65 -0
  66. package/cjs/components/popover/popover-menu.d.ts +20 -0
  67. package/cjs/components/popover/popover-menu.js +74 -0
  68. package/cjs/components/popover/popover.css +68 -0
  69. package/cjs/components/popover/popover.d.ts +41 -0
  70. package/cjs/components/popover/popover.js +280 -0
  71. package/cjs/components/popover/wrapper.d.ts +10 -0
  72. package/cjs/components/popover/wrapper.js +53 -0
  73. package/cjs/components/protocol/protocol.js +1 -2
  74. package/cjs/components/pull-to-refresh/pull-to-refresh.css +10 -1
  75. package/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +1 -1
  76. package/cjs/components/pull-to-refresh/pull-to-refresh.js +5 -5
  77. package/cjs/components/radio/radio.css +5 -0
  78. package/cjs/components/selector/selector.css +1 -1
  79. package/cjs/components/skeleton/skeleton.css +4 -4
  80. package/cjs/components/squared-grid/squared-grid.css +1 -2
  81. package/cjs/components/squared-grid/squared-grid.d.ts +2 -1
  82. package/cjs/components/squared-grid/squared-grid.js +11 -2
  83. package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +48 -41
  84. package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
  85. package/cjs/components/stock-keyboard/alphabet-keyboard.css +186 -0
  86. package/cjs/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
  87. package/cjs/components/stock-keyboard/alphabet-keyboard.js +106 -0
  88. package/cjs/components/stock-keyboard/index.d.ts +1 -0
  89. package/cjs/components/stock-keyboard/index.js +1 -0
  90. package/cjs/components/stock-keyboard/stock-keyboard.css +135 -76
  91. package/cjs/components/stock-keyboard/stock-keyboard.d.ts +2 -2
  92. package/cjs/components/stock-keyboard/stock-keyboard.js +40 -8
  93. package/cjs/components/switch/switch.css +2 -3
  94. package/cjs/components/tabs/tabs.css +5 -3
  95. package/cjs/components/tabs/tabs.js +5 -5
  96. package/cjs/components/tabs/tabs.patch.css +1 -0
  97. package/cjs/components/toast/index.d.ts +9 -0
  98. package/cjs/components/toast/index.js +14 -0
  99. package/cjs/components/toast/methods.d.ts +8 -0
  100. package/cjs/components/toast/methods.js +72 -0
  101. package/cjs/components/toast/toast.css +45 -0
  102. package/cjs/components/toast/toast.d.ts +18 -0
  103. package/cjs/components/toast/toast.js +85 -0
  104. package/cjs/components/toast/toast.patch.css +11 -0
  105. package/cjs/global/global.css +20 -5
  106. package/cjs/global/theme-dark.css +11 -3
  107. package/cjs/global/theme-default.css +9 -2
  108. package/cjs/index.d.ts +4 -4
  109. package/cjs/index.js +32 -32
  110. package/es/assets/images/delete_dark.png +0 -0
  111. package/es/assets/images/keybord_keybord_dark.png +0 -0
  112. package/es/assets/images/keybord_shift2.png +0 -0
  113. package/es/assets/images/keybord_shift2_dark.png +0 -0
  114. package/es/assets/images/keybord_shift_dark.png +0 -0
  115. package/es/assets/images/loading.gif +0 -0
  116. package/es/components/alphabet-keyboard/alphabet-keyboard.css +108 -43
  117. package/es/components/alphabet-keyboard/alphabet-keyboard.js +2 -4
  118. package/es/components/button/selectorButton.css +2 -0
  119. package/es/components/button/selectorButton.js +1 -5
  120. package/es/components/card/card.css +1 -1
  121. package/es/components/card/card.js +2 -2
  122. package/es/components/checkbox/checkbox.css +8 -3
  123. package/es/components/date-range-picker/date-range-picker.css +31 -7
  124. package/es/components/date-range-picker/date-range-picker.d.ts +1 -0
  125. package/es/components/date-range-picker/date-range-picker.js +17 -9
  126. package/es/components/divider/divider.css +4 -3
  127. package/es/components/header/header.css +7 -1
  128. package/es/components/header/header.js +4 -2
  129. package/es/components/icons/back-icon.js +1 -0
  130. package/es/components/icons/clear-icon.js +1 -0
  131. package/es/components/icons/close-icon.js +2 -1
  132. package/es/components/icons/down-icon.d.ts +4 -0
  133. package/es/components/icons/down-icon.js +18 -0
  134. package/es/components/icons/dustbin-icon.d.ts +4 -0
  135. package/es/components/icons/dustbin-icon.js +18 -0
  136. package/es/components/icons/index.d.ts +3 -0
  137. package/es/components/icons/index.js +3 -0
  138. package/es/components/icons/notice-icon.js +2 -2
  139. package/es/components/icons/right-icon.js +1 -0
  140. package/es/components/icons/search-icon.js +2 -1
  141. package/es/components/icons/up-icon.d.ts +4 -0
  142. package/es/components/icons/up-icon.js +18 -0
  143. package/es/components/icons/warning-icon.js +2 -1
  144. package/es/components/infinite-scroll/index.d.ts +4 -0
  145. package/es/components/infinite-scroll/index.js +3 -0
  146. package/es/components/infinite-scroll/infinite-scroll.css +27 -0
  147. package/es/components/infinite-scroll/infinite-scroll.d.ts +11 -0
  148. package/es/components/infinite-scroll/infinite-scroll.js +268 -0
  149. package/es/components/input/input.css +27 -27
  150. package/es/components/input/input.js +1 -1
  151. package/es/components/list/index.d.ts +16 -0
  152. package/es/components/list/index.js +7 -0
  153. package/es/components/list/list-item.d.ts +15 -0
  154. package/es/components/list/list-item.js +30 -0
  155. package/es/components/list/list.css +102 -0
  156. package/es/components/list/list.d.ts +20 -0
  157. package/es/components/list/list.js +29 -0
  158. package/es/components/number-keyboard/number-keyboard.css +55 -42
  159. package/es/components/number-keyboard/number-keyboard.d.ts +1 -0
  160. package/es/components/number-keyboard/number-keyboard.js +2 -1
  161. package/es/components/picker-view/picker-view.css +3 -2
  162. package/es/components/popover/arrow.d.ts +3 -0
  163. package/es/components/popover/arrow.js +11 -0
  164. package/es/components/popover/index.d.ts +31 -0
  165. package/es/components/popover/index.js +8 -0
  166. package/es/components/popover/normalize-placement.d.ts +2 -0
  167. package/es/components/popover/normalize-placement.js +14 -0
  168. package/es/components/popover/popover-menu.css +65 -0
  169. package/es/components/popover/popover-menu.d.ts +20 -0
  170. package/es/components/popover/popover-menu.js +65 -0
  171. package/es/components/popover/popover.css +68 -0
  172. package/es/components/popover/popover.d.ts +41 -0
  173. package/es/components/popover/popover.js +271 -0
  174. package/es/components/popover/wrapper.d.ts +10 -0
  175. package/es/components/popover/wrapper.js +47 -0
  176. package/es/components/protocol/protocol.js +1 -2
  177. package/es/components/pull-to-refresh/pull-to-refresh.css +10 -1
  178. package/es/components/pull-to-refresh/pull-to-refresh.d.ts +1 -1
  179. package/es/components/pull-to-refresh/pull-to-refresh.js +5 -5
  180. package/es/components/radio/radio.css +5 -0
  181. package/es/components/selector/selector.css +1 -1
  182. package/es/components/skeleton/skeleton.css +4 -4
  183. package/es/components/squared-grid/squared-grid.css +1 -2
  184. package/es/components/squared-grid/squared-grid.d.ts +2 -1
  185. package/es/components/squared-grid/squared-grid.js +11 -2
  186. package/es/components/stock-count-keyboard/stock-count-keyboard.css +48 -41
  187. package/es/components/stock-count-keyboard/stock-count-keyboard.js +1 -1
  188. package/es/components/stock-keyboard/alphabet-keyboard.css +186 -0
  189. package/es/components/stock-keyboard/alphabet-keyboard.d.ts +11 -0
  190. package/es/components/stock-keyboard/alphabet-keyboard.js +98 -0
  191. package/es/components/stock-keyboard/index.d.ts +1 -0
  192. package/es/components/stock-keyboard/index.js +1 -0
  193. package/es/components/stock-keyboard/stock-keyboard.css +135 -76
  194. package/es/components/stock-keyboard/stock-keyboard.d.ts +2 -2
  195. package/es/components/stock-keyboard/stock-keyboard.js +42 -11
  196. package/es/components/switch/switch.css +2 -3
  197. package/es/components/tabs/tabs.css +5 -3
  198. package/es/components/tabs/tabs.js +5 -5
  199. package/es/components/tabs/tabs.patch.css +1 -0
  200. package/es/components/toast/index.d.ts +9 -0
  201. package/es/components/toast/index.js +8 -0
  202. package/es/components/toast/methods.d.ts +8 -0
  203. package/es/components/toast/methods.js +63 -0
  204. package/es/components/toast/toast.css +45 -0
  205. package/es/components/toast/toast.d.ts +18 -0
  206. package/es/components/toast/toast.js +75 -0
  207. package/es/components/toast/toast.patch.css +11 -0
  208. package/es/global/global.css +20 -5
  209. package/es/global/theme-dark.css +11 -3
  210. package/es/global/theme-default.css +9 -2
  211. package/es/index.d.ts +4 -4
  212. package/es/index.js +8 -4
  213. package/package.json +2 -11
Binary file
Binary file
Binary file
Binary file
@@ -1,3 +1,39 @@
1
+ :root {
2
+ --ebscn-color-keyboard-bg: #d3d5d8;
3
+ --ebscn-color-keyboard-key-bg: #fff;
4
+ --ebscn-color-keyboard-fckey-bg: #adb3bd;
5
+ --ebscn-color-keyboard-key-bg-active: #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-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);
14
+ }
15
+ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-delete {
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);
22
+ }
23
+ html[data-prefers-color-scheme='dark'] .ebscn-alphabet-keyboard-shift {
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;
36
+ }
1
37
  .ebscn-alphabet-keyboard {
2
38
  position: fixed;
3
39
  bottom: 0;
@@ -7,35 +43,40 @@
7
43
  width: 100%;
8
44
  transition: all 0.5s;
9
45
  align-content: flex-start;
10
- background: #d2d5db;
11
- }
12
- .ebscn-alphabet-keyboard-darkkey {
13
- display: flex;
14
- align-items: center;
15
- justify-content: center;
16
- width: 11.2%;
17
- height: 42px;
18
- border-radius: 5px;
19
- box-shadow: 0px 0.5px 0px 0px #888888;
20
- background: #adb3bd;
21
- font-size: var(--ebscn-font-size-9);
22
- }
23
- .ebscn-alphabet-keyboard-darkkey:active {
24
- background: #adb3bd;
46
+ background-color: #fff;
47
+ background-color: var(--ebscn-color-keyboard-bg);
25
48
  }
26
49
  .ebscn-alphabet-keyboard-shift {
27
50
  margin-right: 3.73%;
28
- background: url(../../assets/images/keybord_shift.png) #adb3bd no-repeat center;
51
+ background: url(../../assets/images/keybord_shift.png) no-repeat center;
52
+ background-color: #adb3bd;
53
+ background-color: var(--ebscn-color-keyboard-fckey-bg);
29
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;
30
63
  }
31
64
  .ebscn-alphabet-keyboard-delete {
32
65
  margin-left: 2.26%;
33
- background: url(../../assets/images/delete.png) #adb3bd no-repeat center;
34
- background-size: 24px 24px;
66
+ background: url(../../assets/images/delete.png) no-repeat center;
67
+ background-color: #adb3bd;
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);
35
72
  }
36
73
  .ebscn-alphabet-keyboard-keybord {
37
- background: url(../../assets/images/keybord_keybord.png) #adb3bd no-repeat center;
38
- background-size: 24px 18px;
74
+ background: url(../../assets/images/keybord_keybord.png) no-repeat center;
75
+ background-color: #adb3bd;
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);
39
80
  }
40
81
  .ebscn-alphabet-keyboard-space {
41
82
  display: flex;
@@ -43,12 +84,16 @@
43
84
  justify-content: center;
44
85
  width: 48.4%;
45
86
  height: 42px;
46
- background: var(--ebscn-color-white);
47
87
  border-radius: 5px;
48
- box-shadow: 0px 0.5px 0px 0px #888888;
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);
49
93
  }
50
94
  .ebscn-alphabet-keyboard-space:active {
51
- background: var(--ebscn-color-border);
95
+ background-color: #e5e5e5;
96
+ background-color: var(--ebscn-color-keyboard-key-bg-active);
52
97
  }
53
98
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline,
54
99
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline,
@@ -57,7 +102,7 @@
57
102
  display: flex;
58
103
  justify-content: space-between;
59
104
  width: 100%;
60
- padding-top: 3.2%;
105
+ padding-top: calc(3% - 1px);
61
106
  }
62
107
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline-key,
63
108
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key,
@@ -66,39 +111,57 @@
66
111
  display: flex;
67
112
  align-items: center;
68
113
  justify-content: center;
114
+ flex: 1;
69
115
  width: 8.4%;
70
- height: 42px;
71
- background: var(--ebscn-color-white);
116
+ height: 40px;
117
+ background-color: #fff;
118
+ background: var(--ebscn-color-keyboard-key-bg);
72
119
  border-radius: 5px;
73
- box-shadow: 0px 0.5px 0px 0px #888888;
74
120
  font-size: 23px;
75
121
  font-weight: 400;
76
122
  text-align: center;
123
+ color: #333;
77
124
  color: var(--ebscn-color-text);
78
- margin-right: 1.6%;
125
+ margin: 0 3px;
126
+ border: 0.5px solid #888;
127
+ border-color: var(--ebscn-color-keyboard-key-border);
79
128
  }
80
129
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline-key:active,
81
130
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline-key:active,
82
131
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-thirdline-key:active,
83
132
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-key:active {
84
- background: var(--ebscn-color-border);
133
+ background-color: #e5e5e5;
134
+ background-color: var(--ebscn-color-keyboard-key-bg-active);
135
+ }
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);
85
148
  }
86
- .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firstline {
87
- padding-left: 0.8%;
88
- padding-right: 0.8%;
149
+ .ebscn-alphabet-keyboard-darkkey:active {
150
+ background-color: #252525;
151
+ background-color: var(--ebscn-color-keyboard-fckey-bg-active);
89
152
  }
90
153
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-secondline {
91
154
  padding-left: 5.73%;
92
155
  padding-right: 5.73%;
93
156
  }
94
157
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-thirdline {
95
- padding-left: 0.8%;
96
- padding-right: 0.8%;
158
+ padding-left: 3px;
159
+ padding-right: 3px;
97
160
  }
98
161
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline {
99
- padding-left: 0.8%;
100
- padding-right: 0.8%;
101
- padding-bottom: 1.06%;
162
+ padding-left: 3px;
163
+ padding-right: 3px;
164
+ padding-bottom: 6px;
102
165
  }
103
166
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm {
104
167
  display: flex;
@@ -106,24 +169,26 @@
106
169
  justify-content: center;
107
170
  width: 23.46%;
108
171
  height: 42px;
109
- background: var(--ebscn-color-primary);
172
+ background-color: #e84225;
173
+ background-color: var(--ebscn-color-primary);
110
174
  border-radius: 5px;
111
- box-shadow: 0px 0.5px 0px 0px #888888;
112
175
  font-size: 16px;
113
176
  font-weight: 400;
114
177
  text-align: center;
115
- color: var(--ebscn-color-white);
178
+ color: #fff;
116
179
  line-height: 22.5px;
180
+ border: 0.5px solid #888;
181
+ border-color: var(--ebscn-color-keyboard-key-border);
117
182
  }
118
183
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline-confirm:active {
119
- background-color: #D03B21;
184
+ background-color: #d13c21;
120
185
  }
121
186
  .ebscn-alphabet-keyboard .ebscn-alphabet-keyboard-firthline img {
122
187
  height: 20%;
123
188
  }
124
189
  @supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
125
190
  .ebscn-alphabet-keyboard {
126
- height: calc(216px + env(safe-area-inset-bottom));
127
- height: calc(216px + constant(safe-area-inset-bottom));
191
+ height: calc(223px + env(safe-area-inset-bottom));
192
+ height: calc(223px + constant(safe-area-inset-bottom));
128
193
  }
129
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", {
@@ -3,9 +3,11 @@
3
3
  display: flex;
4
4
  justify-content: center;
5
5
  align-items: center;
6
+ font-size: 14px;
6
7
  }
7
8
  .ebscn-selectorbutton-icon {
8
9
  margin-left: 4px;
10
+ font-size: 12px;
9
11
  display: flex;
10
12
  align-items: center;
11
13
  transition: transform 0.5s;
@@ -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;
@@ -3,7 +3,7 @@
3
3
  }
4
4
  .ebscn-card-module {
5
5
  border-radius: 16px;
6
- padding: 16px;
6
+ padding: 16px 16px;
7
7
  margin: 0 0 12px 0;
8
8
  }
9
9
  .ebscn-card-block {
@@ -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);
@@ -1,11 +1,14 @@
1
1
  .ebscn-checkbox {
2
- --icon-size: 24px;
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: var(--icon-size);
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,8 +3,10 @@
3
3
  --title-font-size: var(--ebscn-font-size-7);
4
4
  --item-font-size: var(--ebscn-font-size-8);
5
5
  --item-height: 34px;
6
+ font-size: 14px;
7
+ font-size: var(--ebscn-font-size-6);
6
8
  width: 100%;
7
- height: 350px;
9
+ height: 385px;
8
10
  overflow: hidden;
9
11
  position: relative;
10
12
  display: flex;
@@ -21,10 +23,10 @@
21
23
  display: flex;
22
24
  justify-content: space-between;
23
25
  align-items: center;
24
- padding: 4px 4px;
26
+ padding: 24px 16px 16px;
25
27
  }
26
28
  .ebscn-date-range-picker-header-button {
27
- font-size: var(--header-button-font-size);
29
+ font-size: 16px;
28
30
  display: inline-block;
29
31
  padding: 8px 8px;
30
32
  }
@@ -35,30 +37,49 @@
35
37
  }
36
38
  .ebscn-date-range-picker-header-title {
37
39
  padding: 4px 4px;
40
+ font-size: 18px;
38
41
  font-size: var(--ebscn-font-size-10);
39
42
  color: #333;
43
+ color: var(--ebscn-color-text);
40
44
  text-align: center;
41
45
  flex: 1;
42
- font-weight: Medium;
46
+ font-weight: 500;
43
47
  }
44
48
  .ebscn-date-range-picker-buttons-wrap {
45
49
  display: flex;
50
+ gap: 10px;
46
51
  justify-content: space-evenly;
47
52
  margin-top: 12px;
53
+ padding: 0 16px;
54
+ }
55
+ .ebscn-date-range-picker-buttons-wrap svg {
56
+ font-size: 18px;
48
57
  }
49
58
  .ebscn-date-range-picker-buttons-wrap .ebscn-date-range-picker-button {
50
- width: 100px;
59
+ min-width: 75px;
60
+ max-width: 100px;
61
+ flex: 1;
51
62
  height: 28px;
52
63
  line-height: 28px;
53
64
  text-align: center;
54
65
  background-color: #f8f9fc;
66
+ background-color: var(--search-box-bg);
55
67
  color: #333;
56
- border-radius: 10px;
68
+ color: var(--ebscn-color-text);
69
+ border-radius: 4px;
70
+ font-size: 14px;
57
71
  font-size: var(--ebscn-font-size-6);
58
72
  }
73
+ .ebscn-date-range-picker-buttons-wrap .ebscn-date-range-picker-button-active {
74
+ color: #e84225;
75
+ color: var(--ebscn-color-primary);
76
+ background-color: rgba(232, 66, 37, 0.06);
77
+ }
59
78
  .ebscn-date-range-picker-values-wrap {
60
79
  display: flex;
80
+ justify-content: space-between;
61
81
  justify-content: center;
82
+ align-items: center;
62
83
  gap: 20px;
63
84
  margin-top: 12px;
64
85
  }
@@ -70,14 +91,17 @@
70
91
  text-align: center;
71
92
  }
72
93
  .ebscn-date-range-picker-values-wrap .ebscn-date-range-picker-value-active {
73
- border-bottom-color: var(--ebscn-color-primary);
94
+ color: var(--ebscn-color-blue);
95
+ border-bottom-color: var(--ebscn-color-blue);
74
96
  }
75
97
  .ebscn-date-range-picker-tip {
76
98
  display: flex;
77
99
  justify-content: center;
78
100
  align-items: center;
79
101
  margin-top: 12px;
102
+ color: #e84225;
80
103
  color: var(--ebscn-color-primary);
104
+ font-size: 14px;
81
105
  font-size: var(--ebscn-font-size-6);
82
106
  }
83
107
  .ebscn-date-range-picker-body {
@@ -40,6 +40,7 @@ export type DateRangePickerProps = {
40
40
  value: [PickerDate, PickerDate];
41
41
  }>;
42
42
  } & Pick<PopupProps, 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'stopPropagation' | 'forceRender' | 'destroyOnClose'> & NativeProps<'--header-button-font-size' | '--title-font-size' | '--item-font-size' | '--item-height'>;
43
+ export declare function isSameDate(date1: Date, date2: Date): boolean;
43
44
  export declare const DateRangePicker: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
44
45
  value?: [] | [Date, Date] | undefined;
45
46
  defaultValue?: [] | [Date, Date] | undefined;
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DateRangePicker = void 0;
7
+ exports.isSameDate = isSameDate;
7
8
  var _ahooks = require("ahooks");
8
- var _safeArea = _interopRequireDefault(require("../safe-area"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _dayjs = _interopRequireDefault(require("dayjs"));
11
11
  var _react = _interopRequireWildcard(require("react"));
@@ -16,6 +16,7 @@ var _withDefaultProps = require("../../utils/with-default-props");
16
16
  var _datePickerView = _interopRequireDefault(require("../date-picker-view"));
17
17
  var _pickerUtils = require("../picker/picker-utils");
18
18
  var _popup = _interopRequireDefault(require("../popup"));
19
+ var _safeArea = _interopRequireDefault(require("../safe-area"));
19
20
  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); }
20
21
  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; }
21
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -147,6 +148,11 @@ var defaultProps = {
147
148
  precision: 'day',
148
149
  quickButtons: []
149
150
  };
151
+ function isSameDate(date1, date2) {
152
+ var str1 = "".concat(date1.getFullYear(), "-").concat(date1.getMonth(), "-").concat(date1.getDate());
153
+ var str2 = "".concat(date2.getFullYear(), "-").concat(date2.getMonth(), "-").concat(date2.getDate());
154
+ return str1 === str2;
155
+ }
150
156
  var DateRangePicker = exports.DateRangePicker = (0, _react.memo)((0, _react.forwardRef)(function (p, ref) {
151
157
  var _a, _b;
152
158
  var _c;
@@ -211,8 +217,10 @@ var DateRangePicker = exports.DateRangePicker = (0, _react.memo)((0, _react.forw
211
217
  innerValue = _f[0],
212
218
  setInnerValue = _f[1];
213
219
  (0, _react.useEffect)(function () {
220
+ var _a;
214
221
  //todo
215
222
  setInnerValue(pickerValue);
223
+ (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, pickerValue);
216
224
  }, [visible, pickerValue]);
217
225
  var _g = (0, _react.useState)(0),
218
226
  activeIndex = _g[0],
@@ -225,7 +233,7 @@ var DateRangePicker = exports.DateRangePicker = (0, _react.memo)((0, _react.forw
225
233
  }
226
234
  });
227
235
  var onQuickClick = function (value) {
228
- setInnerValue(value);
236
+ onChange(value);
229
237
  };
230
238
  var renderLabel = function (_, value) {
231
239
  return value;
@@ -246,32 +254,33 @@ var DateRangePicker = exports.DateRangePicker = (0, _react.memo)((0, _react.forw
246
254
  className: "".concat(classPrefix, "-header-title")
247
255
  }, props.title), _react.default.createElement("a", {
248
256
  role: "button",
249
- className: (0, _classnames.default)("".concat(classPrefix, "-header-button"), props.loading && "".concat(classPrefix, "-header-button-disabled")),
257
+ className: (0, _classnames.default)("".concat(classPrefix, "-header-button"), (props.loading || props.tip) && "".concat(classPrefix, "-header-button-disabled")),
250
258
  onClick: function () {
251
- if (props.loading) return;
259
+ if (props.loading || props.tip) return;
252
260
  setValue(innerValue, true);
253
261
  setVisible(false);
254
262
  },
255
263
  "aria-disabled": props.loading
256
- }, props.confirmText)), props.quickButtons.length && _react.default.createElement("div", {
264
+ }, props.confirmText)), props.quickButtons.length ? _react.default.createElement("div", {
257
265
  className: "".concat(classPrefix, "-buttons-wrap")
258
- }, props.quickButtons.map(function (_a) {
266
+ }, props.quickButtons.map(function (_a, index) {
259
267
  var label = _a.label,
260
268
  value = _a.value;
261
269
  return _react.default.createElement("div", {
270
+ key: index,
262
271
  onClick: function () {
263
272
  return onQuickClick(value);
264
273
  },
265
- className: "".concat(classPrefix, "-button")
274
+ className: "".concat(classPrefix, "-button ").concat(isSameDate(value[0], innerValue[0]) && isSameDate(value[1], innerValue[1]) ? "".concat(classPrefix, "-button-active") : '')
266
275
  }, label);
267
- })), _react.default.createElement("div", {
276
+ })) : null, _react.default.createElement("div", {
268
277
  className: "".concat(classPrefix, "-values-wrap")
269
278
  }, _react.default.createElement("div", {
270
279
  className: (0, _classnames.default)("".concat(classPrefix, "-value"), (_a = {}, _a["".concat(classPrefix, "-value-active")] = activeIndex === 0, _a)),
271
280
  onClick: function () {
272
281
  return setActiveIndex(0);
273
282
  }
274
- }, (0, _dayjs.default)(innerValue[0]).format('YYYY-MM-DD')), _react.default.createElement("div", {
283
+ }, (0, _dayjs.default)(innerValue[0]).format('YYYY-MM-DD')), _react.default.createElement("span", null, "\u81F3"), _react.default.createElement("div", {
275
284
  className: (0, _classnames.default)("".concat(classPrefix, "-value"), (_b = {}, _b["".concat(classPrefix, "-value-active")] = activeIndex === 1, _b)),
276
285
  onClick: function () {
277
286
  return setActiveIndex(1);
@@ -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: var(--ebscn-color-weak);
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: 28px;
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
- }, props.showLeftIcon && _react.default.createElement(_backIcon.default, null), props.left), _react.default.createElement("div", {
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")
@@ -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"