antd-mobile 5.1.0 → 5.2.2

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 (299) hide show
  1. package/2x/README.md +9 -1
  2. package/2x/cjs/components/calendar/calendar.d.ts +11 -2
  3. package/2x/cjs/components/calendar/calendar.js +32 -10
  4. package/2x/cjs/components/calendar/index.d.ts +1 -1
  5. package/2x/cjs/components/capsule-tabs/capsule-tabs.d.ts +1 -0
  6. package/2x/cjs/components/capsule-tabs/capsule-tabs.js +14 -17
  7. package/2x/cjs/components/cascade-picker/prompt.d.ts +2 -1
  8. package/2x/cjs/components/collapse/collapse.js +5 -3
  9. package/2x/cjs/components/date-picker/date-picker.js +11 -1
  10. package/2x/cjs/components/dialog/clear.d.ts +1 -0
  11. package/2x/cjs/components/dialog/clear.js +14 -0
  12. package/2x/cjs/components/dialog/dialog.css +27 -18
  13. package/2x/cjs/components/dialog/dialog.js +39 -42
  14. package/2x/cjs/components/dialog/index.d.ts +2 -0
  15. package/2x/cjs/components/dialog/index.js +4 -1
  16. package/2x/cjs/components/dialog/show.d.ts +1 -0
  17. package/2x/cjs/components/dialog/show.js +23 -11
  18. package/2x/cjs/components/dropdown/dropdown.css +2 -1
  19. package/2x/cjs/components/dropdown/item.js +2 -2
  20. package/2x/cjs/components/form/form.css +12 -0
  21. package/2x/cjs/components/form/form.d.ts +4 -4
  22. package/2x/cjs/components/form/index.css +12 -0
  23. package/2x/cjs/components/form/index.d.ts +3 -3
  24. package/2x/cjs/components/image-viewer/image-viewer.d.ts +1 -1
  25. package/2x/cjs/components/image-viewer/index.d.ts +1 -1
  26. package/2x/cjs/components/input/input.d.ts +2 -2
  27. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.d.ts +1 -0
  28. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.js +14 -17
  29. package/2x/cjs/components/mask/mask.js +2 -2
  30. package/2x/cjs/components/modal/clear.d.ts +1 -0
  31. package/2x/cjs/components/modal/clear.js +14 -0
  32. package/2x/cjs/components/modal/index.d.ts +2 -0
  33. package/2x/cjs/components/modal/index.js +4 -1
  34. package/2x/cjs/components/modal/modal.css +27 -21
  35. package/2x/cjs/components/modal/modal.js +39 -36
  36. package/2x/cjs/components/modal/show.d.ts +1 -0
  37. package/2x/cjs/components/modal/show.js +23 -11
  38. package/2x/cjs/components/passcode-input/passcode-input.d.ts +1 -1
  39. package/2x/cjs/components/picker/prompt.d.ts +2 -2
  40. package/2x/cjs/components/picker-view/picker-view.css +0 -10
  41. package/2x/cjs/components/picker-view/wheel.js +7 -14
  42. package/2x/cjs/components/popover/arrow.js +1 -2
  43. package/2x/cjs/components/popover/index.d.ts +3 -3
  44. package/2x/cjs/components/popover/popover-menu.d.ts +1 -1
  45. package/2x/cjs/components/popover/popover.d.ts +1 -1
  46. package/2x/cjs/components/popup/popup.js +2 -2
  47. package/2x/cjs/components/search-bar/search-bar.js +1 -0
  48. package/2x/cjs/components/selector/selector.d.ts +3 -1
  49. package/2x/cjs/components/stepper/stepper.d.ts +12 -2
  50. package/2x/cjs/components/stepper/stepper.js +43 -16
  51. package/2x/cjs/components/swiper/index.d.ts +3 -3
  52. package/2x/cjs/components/swiper/swiper.d.ts +3 -3
  53. package/2x/cjs/components/switch/spin-icon.d.ts +3 -0
  54. package/2x/cjs/components/switch/spin-icon.js +37 -0
  55. package/2x/cjs/components/switch/switch.css +1 -1
  56. package/2x/cjs/components/switch/switch.js +4 -6
  57. package/2x/cjs/components/tabs/tabs.d.ts +1 -0
  58. package/2x/cjs/components/tabs/tabs.js +17 -19
  59. package/2x/cjs/components/virtual-input/virtual-input.d.ts +2 -2
  60. package/2x/cjs/utils/measure-css-length.d.ts +1 -0
  61. package/2x/cjs/utils/measure-css-length.js +28 -0
  62. package/2x/cjs/utils/native-props.d.ts +1 -1
  63. package/2x/cjs/utils/render-to-container.d.ts +1 -1
  64. package/2x/cjs/utils/should-render.d.ts +10 -0
  65. package/{cjs/utils/use-should-render.js → 2x/cjs/utils/should-render.js} +8 -0
  66. package/2x/cjs/utils/use-drag-and-pinch.d.ts +1 -2
  67. package/2x/cjs/utils/use-isomorphic-update-layout-effect.js +1 -3
  68. package/2x/cjs/utils/use-props-value.d.ts +1 -1
  69. package/2x/cjs/utils/use-tab-list-scroll.js +3 -1
  70. package/2x/cjs/utils/use-touch.d.ts +0 -1
  71. package/2x/cjs/utils/validate.js +1 -1
  72. package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
  73. package/2x/es/components/calendar/calendar.d.ts +11 -2
  74. package/2x/es/components/calendar/calendar.js +33 -9
  75. package/2x/es/components/calendar/index.d.ts +1 -1
  76. package/2x/es/components/capsule-tabs/capsule-tabs.d.ts +1 -0
  77. package/2x/es/components/capsule-tabs/capsule-tabs.js +13 -17
  78. package/2x/es/components/cascade-picker/prompt.d.ts +2 -1
  79. package/2x/es/components/collapse/collapse.js +4 -3
  80. package/2x/es/components/date-picker/date-picker.js +10 -1
  81. package/2x/es/components/dialog/clear.d.ts +1 -0
  82. package/2x/es/components/dialog/clear.js +6 -0
  83. package/2x/es/components/dialog/dialog.css +27 -18
  84. package/2x/es/components/dialog/dialog.js +37 -41
  85. package/2x/es/components/dialog/index.d.ts +2 -0
  86. package/2x/es/components/dialog/index.js +3 -1
  87. package/2x/es/components/dialog/show.d.ts +1 -0
  88. package/2x/es/components/dialog/show.js +20 -11
  89. package/2x/es/components/dropdown/dropdown.css +2 -1
  90. package/2x/es/components/dropdown/item.js +1 -1
  91. package/2x/es/components/form/form.css +12 -0
  92. package/2x/es/components/form/form.d.ts +4 -4
  93. package/2x/es/components/form/index.css +12 -0
  94. package/2x/es/components/form/index.d.ts +3 -3
  95. package/2x/es/components/image-viewer/image-viewer.d.ts +1 -1
  96. package/2x/es/components/image-viewer/index.d.ts +1 -1
  97. package/2x/es/components/input/input.d.ts +2 -2
  98. package/2x/es/components/jumbo-tabs/jumbo-tabs.d.ts +1 -0
  99. package/2x/es/components/jumbo-tabs/jumbo-tabs.js +13 -17
  100. package/2x/es/components/mask/mask.js +1 -1
  101. package/2x/es/components/modal/clear.d.ts +1 -0
  102. package/2x/es/components/modal/clear.js +6 -0
  103. package/2x/es/components/modal/index.d.ts +2 -0
  104. package/2x/es/components/modal/index.js +3 -1
  105. package/2x/es/components/modal/modal.css +27 -21
  106. package/2x/es/components/modal/modal.js +37 -36
  107. package/2x/es/components/modal/show.d.ts +1 -0
  108. package/2x/es/components/modal/show.js +20 -11
  109. package/2x/es/components/passcode-input/passcode-input.d.ts +1 -1
  110. package/2x/es/components/picker/prompt.d.ts +2 -2
  111. package/2x/es/components/picker-view/picker-view.css +0 -10
  112. package/2x/es/components/picker-view/wheel.js +7 -14
  113. package/2x/es/components/popover/arrow.js +1 -2
  114. package/2x/es/components/popover/index.d.ts +3 -3
  115. package/2x/es/components/popover/popover-menu.d.ts +1 -1
  116. package/2x/es/components/popover/popover.d.ts +1 -1
  117. package/2x/es/components/popup/popup.js +1 -1
  118. package/2x/es/components/search-bar/search-bar.js +1 -0
  119. package/2x/es/components/selector/selector.d.ts +3 -1
  120. package/2x/es/components/stepper/stepper.d.ts +12 -2
  121. package/2x/es/components/stepper/stepper.js +43 -16
  122. package/2x/es/components/swiper/index.d.ts +3 -3
  123. package/2x/es/components/swiper/swiper.d.ts +3 -3
  124. package/2x/es/components/switch/spin-icon.d.ts +3 -0
  125. package/2x/es/components/switch/spin-icon.js +23 -0
  126. package/2x/es/components/switch/switch.css +1 -1
  127. package/2x/es/components/switch/switch.js +3 -5
  128. package/2x/es/components/tabs/tabs.d.ts +1 -0
  129. package/2x/es/components/tabs/tabs.js +16 -20
  130. package/2x/es/components/virtual-input/virtual-input.d.ts +2 -2
  131. package/2x/es/utils/measure-css-length.d.ts +1 -0
  132. package/2x/es/utils/measure-css-length.js +19 -0
  133. package/2x/es/utils/native-props.d.ts +1 -1
  134. package/2x/es/utils/render-to-container.d.ts +1 -1
  135. package/2x/es/utils/should-render.d.ts +10 -0
  136. package/2x/es/utils/{use-should-render.js → should-render.js} +4 -0
  137. package/2x/es/utils/use-drag-and-pinch.d.ts +1 -2
  138. package/2x/es/utils/use-isomorphic-update-layout-effect.js +1 -2
  139. package/2x/es/utils/use-props-value.d.ts +1 -1
  140. package/2x/es/utils/use-tab-list-scroll.js +3 -2
  141. package/2x/es/utils/use-touch.d.ts +0 -1
  142. package/2x/es/utils/validate.js +1 -1
  143. package/2x/es/utils/with-stop-propagation.d.ts +1 -1
  144. package/2x/package.json +4 -4
  145. package/README.md +9 -1
  146. package/cjs/components/calendar/calendar.d.ts +11 -2
  147. package/cjs/components/calendar/calendar.js +32 -10
  148. package/cjs/components/calendar/index.d.ts +1 -1
  149. package/cjs/components/capsule-tabs/capsule-tabs.d.ts +1 -0
  150. package/cjs/components/capsule-tabs/capsule-tabs.js +14 -17
  151. package/cjs/components/cascade-picker/prompt.d.ts +2 -1
  152. package/cjs/components/collapse/collapse.js +5 -3
  153. package/cjs/components/date-picker/date-picker.js +11 -1
  154. package/cjs/components/dialog/clear.d.ts +1 -0
  155. package/cjs/components/dialog/clear.js +14 -0
  156. package/cjs/components/dialog/dialog.css +26 -18
  157. package/cjs/components/dialog/dialog.js +39 -42
  158. package/cjs/components/dialog/index.d.ts +2 -0
  159. package/cjs/components/dialog/index.js +4 -1
  160. package/cjs/components/dialog/show.d.ts +1 -0
  161. package/cjs/components/dialog/show.js +23 -11
  162. package/cjs/components/dropdown/dropdown.css +2 -1
  163. package/cjs/components/dropdown/item.js +2 -2
  164. package/cjs/components/form/form.css +11 -0
  165. package/cjs/components/form/form.d.ts +4 -4
  166. package/cjs/components/form/index.css +11 -0
  167. package/cjs/components/form/index.d.ts +3 -3
  168. package/cjs/components/image-viewer/image-viewer.d.ts +1 -1
  169. package/cjs/components/image-viewer/index.d.ts +1 -1
  170. package/cjs/components/input/input.d.ts +2 -2
  171. package/cjs/components/jumbo-tabs/jumbo-tabs.d.ts +1 -0
  172. package/cjs/components/jumbo-tabs/jumbo-tabs.js +14 -17
  173. package/cjs/components/mask/mask.js +2 -2
  174. package/cjs/components/modal/clear.d.ts +1 -0
  175. package/cjs/components/modal/clear.js +14 -0
  176. package/cjs/components/modal/index.d.ts +2 -0
  177. package/cjs/components/modal/index.js +4 -1
  178. package/cjs/components/modal/modal.css +26 -20
  179. package/cjs/components/modal/modal.js +39 -36
  180. package/cjs/components/modal/show.d.ts +1 -0
  181. package/cjs/components/modal/show.js +23 -11
  182. package/cjs/components/passcode-input/passcode-input.d.ts +1 -1
  183. package/cjs/components/picker/prompt.d.ts +2 -2
  184. package/cjs/components/picker-view/picker-view.css +0 -9
  185. package/cjs/components/picker-view/wheel.js +7 -14
  186. package/cjs/components/popover/arrow.js +1 -2
  187. package/cjs/components/popover/index.d.ts +3 -3
  188. package/cjs/components/popover/popover-menu.d.ts +1 -1
  189. package/cjs/components/popover/popover.d.ts +1 -1
  190. package/cjs/components/popup/popup.js +2 -2
  191. package/cjs/components/search-bar/search-bar.js +1 -0
  192. package/cjs/components/selector/selector.d.ts +3 -1
  193. package/cjs/components/stepper/stepper.d.ts +12 -2
  194. package/cjs/components/stepper/stepper.js +43 -16
  195. package/cjs/components/swiper/index.d.ts +3 -3
  196. package/cjs/components/swiper/swiper.d.ts +3 -3
  197. package/cjs/components/switch/spin-icon.d.ts +3 -0
  198. package/cjs/components/switch/spin-icon.js +37 -0
  199. package/cjs/components/switch/switch.css +1 -1
  200. package/cjs/components/switch/switch.js +4 -6
  201. package/cjs/components/tabs/tabs.d.ts +1 -0
  202. package/cjs/components/tabs/tabs.js +17 -19
  203. package/cjs/components/virtual-input/virtual-input.d.ts +2 -2
  204. package/cjs/utils/measure-css-length.d.ts +1 -0
  205. package/cjs/utils/measure-css-length.js +28 -0
  206. package/cjs/utils/native-props.d.ts +1 -1
  207. package/cjs/utils/render-to-container.d.ts +1 -1
  208. package/cjs/utils/should-render.d.ts +10 -0
  209. package/{2x/cjs/utils/use-should-render.js → cjs/utils/should-render.js} +8 -0
  210. package/cjs/utils/use-drag-and-pinch.d.ts +1 -2
  211. package/cjs/utils/use-isomorphic-update-layout-effect.js +1 -3
  212. package/cjs/utils/use-props-value.d.ts +1 -1
  213. package/cjs/utils/use-tab-list-scroll.js +3 -1
  214. package/cjs/utils/use-touch.d.ts +0 -1
  215. package/cjs/utils/validate.js +1 -1
  216. package/cjs/utils/with-stop-propagation.d.ts +1 -1
  217. package/es/components/calendar/calendar.d.ts +11 -2
  218. package/es/components/calendar/calendar.js +33 -9
  219. package/es/components/calendar/index.d.ts +1 -1
  220. package/es/components/capsule-tabs/capsule-tabs.d.ts +1 -0
  221. package/es/components/capsule-tabs/capsule-tabs.js +13 -17
  222. package/es/components/cascade-picker/prompt.d.ts +2 -1
  223. package/es/components/collapse/collapse.js +4 -3
  224. package/es/components/date-picker/date-picker.js +10 -1
  225. package/es/components/dialog/clear.d.ts +1 -0
  226. package/es/components/dialog/clear.js +6 -0
  227. package/es/components/dialog/dialog.css +26 -18
  228. package/es/components/dialog/dialog.js +37 -41
  229. package/es/components/dialog/index.d.ts +2 -0
  230. package/es/components/dialog/index.js +3 -1
  231. package/es/components/dialog/show.d.ts +1 -0
  232. package/es/components/dialog/show.js +20 -11
  233. package/es/components/dropdown/dropdown.css +2 -1
  234. package/es/components/dropdown/item.js +1 -1
  235. package/es/components/form/form.css +11 -0
  236. package/es/components/form/form.d.ts +4 -4
  237. package/es/components/form/index.css +11 -0
  238. package/es/components/form/index.d.ts +3 -3
  239. package/es/components/image-viewer/image-viewer.d.ts +1 -1
  240. package/es/components/image-viewer/index.d.ts +1 -1
  241. package/es/components/input/input.d.ts +2 -2
  242. package/es/components/jumbo-tabs/jumbo-tabs.d.ts +1 -0
  243. package/es/components/jumbo-tabs/jumbo-tabs.js +13 -17
  244. package/es/components/mask/mask.js +1 -1
  245. package/es/components/modal/clear.d.ts +1 -0
  246. package/es/components/modal/clear.js +6 -0
  247. package/es/components/modal/index.d.ts +2 -0
  248. package/es/components/modal/index.js +3 -1
  249. package/es/components/modal/modal.css +26 -20
  250. package/es/components/modal/modal.js +37 -36
  251. package/es/components/modal/show.d.ts +1 -0
  252. package/es/components/modal/show.js +20 -11
  253. package/es/components/passcode-input/passcode-input.d.ts +1 -1
  254. package/es/components/picker/prompt.d.ts +2 -2
  255. package/es/components/picker-view/picker-view.css +0 -9
  256. package/es/components/picker-view/wheel.js +7 -14
  257. package/es/components/popover/arrow.js +1 -2
  258. package/es/components/popover/index.d.ts +3 -3
  259. package/es/components/popover/popover-menu.d.ts +1 -1
  260. package/es/components/popover/popover.d.ts +1 -1
  261. package/es/components/popup/popup.js +1 -1
  262. package/es/components/search-bar/search-bar.js +1 -0
  263. package/es/components/selector/selector.d.ts +3 -1
  264. package/es/components/stepper/stepper.d.ts +12 -2
  265. package/es/components/stepper/stepper.js +43 -16
  266. package/es/components/swiper/index.d.ts +3 -3
  267. package/es/components/swiper/swiper.d.ts +3 -3
  268. package/es/components/switch/spin-icon.d.ts +3 -0
  269. package/es/components/switch/spin-icon.js +23 -0
  270. package/es/components/switch/switch.css +1 -1
  271. package/es/components/switch/switch.js +3 -5
  272. package/es/components/tabs/tabs.d.ts +1 -0
  273. package/es/components/tabs/tabs.js +16 -20
  274. package/es/components/virtual-input/virtual-input.d.ts +2 -2
  275. package/es/utils/measure-css-length.d.ts +1 -0
  276. package/es/utils/measure-css-length.js +19 -0
  277. package/es/utils/native-props.d.ts +1 -1
  278. package/es/utils/render-to-container.d.ts +1 -1
  279. package/es/utils/should-render.d.ts +10 -0
  280. package/es/utils/{use-should-render.js → should-render.js} +4 -0
  281. package/es/utils/use-drag-and-pinch.d.ts +1 -2
  282. package/es/utils/use-isomorphic-update-layout-effect.js +1 -2
  283. package/es/utils/use-props-value.d.ts +1 -1
  284. package/es/utils/use-tab-list-scroll.js +3 -2
  285. package/es/utils/use-touch.d.ts +0 -1
  286. package/es/utils/validate.js +1 -1
  287. package/es/utils/with-stop-propagation.d.ts +1 -1
  288. package/package.json +4 -4
  289. package/umd/antd-mobile.js +1 -1
  290. package/2x/assets/spin.svg +0 -12
  291. package/2x/cjs/assets/spin.svg +0 -12
  292. package/2x/cjs/utils/use-should-render.d.ts +0 -1
  293. package/2x/es/assets/spin.svg +0 -12
  294. package/2x/es/utils/use-should-render.d.ts +0 -1
  295. package/assets/spin.svg +0 -12
  296. package/cjs/assets/spin.svg +0 -12
  297. package/cjs/utils/use-should-render.d.ts +0 -1
  298. package/es/assets/spin.svg +0 -12
  299. package/es/utils/use-should-render.d.ts +0 -1
@@ -2,10 +2,12 @@ import "./modal.css";
2
2
  import { show } from './show';
3
3
  import { alert } from './alert';
4
4
  import { confirm } from './confirm';
5
+ import { clear } from './clear';
5
6
  import { attachPropertiesToComponent } from '../../utils/attach-properties-to-component';
6
7
  import { Modal } from './modal';
7
8
  export default attachPropertiesToComponent(Modal, {
8
9
  show,
9
10
  alert,
10
- confirm
11
+ confirm,
12
+ clear
11
13
  });
@@ -19,56 +19,61 @@
19
19
  transform: translate(-50%, -50%);
20
20
  }
21
21
 
22
- .adm-modal-main {
22
+ .adm-modal-body {
23
23
  width: 100%;
24
24
  max-height: 70vh;
25
25
  box-sizing: border-box;
26
26
  font-size: 28px;
27
27
  background-color: white;
28
28
  border-radius: 16px;
29
- overflow-x: hidden;
30
- overflow-y: auto;
29
+ overflow: hidden;
31
30
  display: flex;
32
31
  flex-direction: column;
33
32
  }
34
33
 
35
- .adm-modal-main > * {
34
+ .adm-modal-body > * {
36
35
  flex: none;
37
36
  }
38
37
 
39
- .adm-modal-main > .adm-modal-image-container {
38
+ .adm-modal-body > .adm-modal-content {
40
39
  flex: auto;
41
40
  }
42
41
 
43
- .adm-modal-main .adm-modal-body {
44
- padding: 40px 24px 24px;
45
- display: flex;
46
- flex-direction: column;
42
+ .adm-modal-body:not(.adm-modal-with-image) {
43
+ padding-top: 40px;
47
44
  }
48
45
 
49
- .adm-modal-main .adm-modal-body > * + * {
50
- margin-top: 16px;
46
+ .adm-modal-body .adm-modal-image-container {
47
+ margin-bottom: 24px;
48
+ max-height: 40vh;
49
+ overflow-y: scroll;
51
50
  }
52
51
 
53
- .adm-modal-main .adm-modal-body-header-wrapper {
54
- display: flex;
55
- justify-content: center;
52
+ .adm-modal-body .adm-modal-header {
53
+ margin-bottom: 16px;
54
+ padding: 0 24px;
56
55
  }
57
56
 
58
- .adm-modal-main .adm-modal-body-title {
57
+ .adm-modal-body .adm-modal-title {
58
+ margin-bottom: 16px;
59
+ padding: 0 24px;
59
60
  font-weight: bold;
60
61
  font-size: 36px;
61
62
  line-height: 50px;
62
63
  text-align: center;
63
64
  }
64
65
 
65
- .adm-modal-main .adm-modal-body-content {
66
+ .adm-modal-body .adm-modal-content {
67
+ padding: 0 24px 24px;
68
+ max-height: 70vh;
69
+ overflow-x: hidden;
70
+ overflow-y: auto;
66
71
  font-size: 30px;
67
72
  line-height: 1.4;
68
73
  color: #333;
69
74
  }
70
75
 
71
- .adm-modal-main .adm-modal-close {
76
+ .adm-modal-body .adm-modal-close {
72
77
  position: absolute;
73
78
  right: 16px;
74
79
  top: 16px;
@@ -82,6 +87,11 @@
82
87
  padding: 16px 24px 24px;
83
88
  }
84
89
 
90
+ .adm-modal-footer-empty {
91
+ padding: 0;
92
+ height: 16px;
93
+ }
94
+
85
95
  .adm-modal-footer.adm-space {
86
96
  --gap-vertical: 40px;
87
97
  }
@@ -102,8 +112,4 @@
102
112
 
103
113
  .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary):active {
104
114
  opacity: 0.7;
105
- }
106
-
107
- .adm-modal-image-container {
108
- overflow-y: auto;
109
115
  }
@@ -52,49 +52,28 @@ export const Modal = p => {
52
52
  }
53
53
  });
54
54
  const [active, setActive] = useState(props.visible);
55
- const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React.createElement("div", {
56
- className: classPrefix,
57
- style: {
58
- display: active ? 'unset' : 'none'
59
- }
60
- }, React.createElement(Mask, {
61
- visible: props.visible,
62
- onMaskClick: props.closeOnMaskClick ? props.onClose : undefined,
63
- style: props.maskStyle,
64
- className: classNames(`${classPrefix}-mask`, props.maskClassName)
65
- }), React.createElement("div", {
66
- className: `${classPrefix}-wrap`,
67
- style: {
68
- pointerEvents: props.visible ? 'unset' : 'none'
69
- }
70
- }, React.createElement(animated.div, {
71
- style: Object.assign({}, style),
72
- onClick: e => e.stopPropagation(),
73
- className: `${classPrefix}-main`
55
+ const body = React.createElement("div", {
56
+ className: classNames(cls('body'), props.image && cls('with-image'), props.bodyClassName),
57
+ style: props.bodyStyle
74
58
  }, props.showCloseButton && React.createElement("a", {
75
- className: classNames(`${classPrefix}-close`, 'adm-plain-anchor'),
59
+ className: classNames(cls('close'), 'adm-plain-anchor'),
76
60
  onClick: props.onClose
77
61
  }, React.createElement(CloseOutline, null)), !!props.image && React.createElement("div", {
78
- className: `${classPrefix}-image-container`
62
+ className: cls('image-container')
79
63
  }, React.createElement(Image, {
80
64
  src: props.image,
81
65
  alt: 'modal header image',
82
66
  width: '100%'
83
- })), React.createElement("div", {
84
- style: props.bodyStyle,
85
- className: classNames(`${classPrefix}-body`, props.bodyClassName)
86
- }, !!props.header && React.createElement("div", {
87
- className: `${classPrefix}-body-header-wrapper`
88
- }, React.createElement("div", {
89
- className: `${classPrefix}-body-header`
90
- }, props.header)), !!props.title && React.createElement("div", {
91
- className: `${classPrefix}-body-title`
92
- }, props.title), !!props.content && React.createElement("div", {
93
- className: `${classPrefix}-body-content`
94
- }, typeof props.content === 'string' ? React.createElement(AutoCenter, null, props.content) : props.content)), React.createElement(Space, {
67
+ })), !!props.header && React.createElement("div", {
68
+ className: cls('header')
69
+ }, React.createElement(AutoCenter, null, props.header)), !!props.title && React.createElement("div", {
70
+ className: cls('title')
71
+ }, props.title), React.createElement("div", {
72
+ className: cls('content')
73
+ }, typeof props.content === 'string' ? React.createElement(AutoCenter, null, props.content) : props.content), React.createElement(Space, {
95
74
  direction: 'vertical',
96
75
  block: true,
97
- className: `${classPrefix}-footer`
76
+ className: classNames(cls('footer'), props.actions.length === 0 && cls('footer-empty'))
98
77
  }, props.actions.map((action, index) => {
99
78
  return React.createElement(ModalActionButton, {
100
79
  key: action.key,
@@ -109,6 +88,28 @@ export const Modal = p => {
109
88
  }
110
89
  })
111
90
  });
112
- })))))));
91
+ })));
92
+ const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React.createElement("div", {
93
+ className: cls(),
94
+ style: {
95
+ display: active ? 'unset' : 'none'
96
+ }
97
+ }, React.createElement(Mask, {
98
+ visible: props.visible,
99
+ onMaskClick: props.closeOnMaskClick ? props.onClose : undefined,
100
+ style: props.maskStyle,
101
+ className: classNames(cls('mask'), props.maskClassName)
102
+ }), React.createElement("div", {
103
+ className: cls('wrap'),
104
+ style: {
105
+ pointerEvents: props.visible ? 'unset' : 'none'
106
+ }
107
+ }, React.createElement(animated.div, {
108
+ style: style
109
+ }, body)))));
113
110
  return renderToContainer(props.getContainer, node);
114
- };
111
+ };
112
+
113
+ function cls(name = '') {
114
+ return 'adm-modal' + (name && '-') + name;
115
+ }
@@ -3,6 +3,7 @@ export declare type ModalShowProps = Omit<ModalProps, 'visible'>;
3
3
  export declare type ModalShowRef = {
4
4
  close: () => void;
5
5
  };
6
+ export declare const closeFnSet: Set<() => void>;
6
7
  export declare function show(props: ModalShowProps): {
7
8
  close: () => void;
8
9
  };
@@ -1,6 +1,7 @@
1
1
  import React, { createRef, forwardRef, useEffect, useImperativeHandle, useState } from 'react';
2
2
  import { renderToBody } from '../../utils/render-to-body';
3
3
  import { Modal } from './modal';
4
+ export const closeFnSet = new Set();
4
5
  export function show(props) {
5
6
  const Wrapper = forwardRef((_, ref) => {
6
7
  const [visible, setVisible] = useState(false);
@@ -18,26 +19,34 @@ export function show(props) {
18
19
  useImperativeHandle(ref, () => ({
19
20
  close: handleClose
20
21
  }));
22
+
23
+ function handleAfterClose() {
24
+ var _a;
25
+
26
+ (_a = props.afterClose) === null || _a === void 0 ? void 0 : _a.call(props);
27
+ unmount();
28
+ closeFnSet.delete(close);
29
+ }
30
+
21
31
  return React.createElement(Modal, Object.assign({}, props, {
22
32
  visible: visible,
23
33
  onClose: handleClose,
24
- afterClose: () => {
25
- var _a;
26
-
27
- (_a = props.afterClose) === null || _a === void 0 ? void 0 : _a.call(props);
28
- unmount();
29
- }
34
+ afterClose: handleAfterClose
30
35
  }));
31
36
  });
32
37
  const ref = createRef();
33
38
  const unmount = renderToBody(React.createElement(Wrapper, {
34
39
  ref: ref
35
40
  }));
36
- return {
37
- close: () => {
38
- var _a;
39
41
 
40
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.close();
41
- }
42
+ const close = () => {
43
+ var _a;
44
+
45
+ (_a = ref.current) === null || _a === void 0 ? void 0 : _a.close();
46
+ };
47
+
48
+ closeFnSet.add(close);
49
+ return {
50
+ close
42
51
  };
43
52
  }
@@ -30,6 +30,6 @@ export declare const PasscodeInput: React.ForwardRefExoticComponent<{
30
30
  seperated?: boolean | undefined;
31
31
  onBlur?: (() => void) | undefined;
32
32
  onFocus?: (() => void) | undefined;
33
- keyboard?: React.ReactElement<NumberKeyboardProps, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
33
+ keyboard?: React.ReactElement<NumberKeyboardProps, string | React.JSXElementConstructor<any>> | undefined;
34
34
  onFill?: ((val: string) => void) | undefined;
35
35
  } & NativeProps<"--border-radius" | "--border-color" | "--cell-size" | "--dot-size" | "--cell-gap"> & React.RefAttributes<PasscodeInputRef>>;
@@ -1,2 +1,2 @@
1
- import type { PickerProps } from './index';
2
- export declare function prompt(props: Omit<PickerProps, 'value' | 'visible' | 'children'>): Promise<(string | null)[] | null>;
1
+ import type { PickerProps, PickerValue } from './index';
2
+ export declare function prompt(props: Omit<PickerProps, 'value' | 'visible' | 'children'>): Promise<PickerValue[] | null>;
@@ -60,16 +60,6 @@
60
60
  white-space: nowrap;
61
61
  }
62
62
 
63
- .adm-picker-view-column-item.adm-picker-view-column-item-dummy {
64
- position: fixed;
65
- left: 0;
66
- bottom: 0;
67
- padding: 0;
68
- opacity: 0;
69
- user-select: none;
70
- pointer-events: none;
71
- }
72
-
73
63
  .adm-picker-view-column-accessible {
74
64
  width: 100%;
75
65
  height: 100%;
@@ -5,7 +5,7 @@ import { rubberbandIfOutOfBounds } from '../../utils/rubberband';
5
5
  import { bound } from '../../utils/bound';
6
6
  import isEqual from 'lodash/isEqual';
7
7
  import { useIsomorphicLayoutEffect } from 'ahooks';
8
- import classNames from 'classnames';
8
+ import { measureCSSLength } from '../../utils/measure-css-length';
9
9
  const classPrefix = `adm-picker-view`;
10
10
  export const Wheel = memo(props => {
11
11
  const {
@@ -29,16 +29,12 @@ export const Wheel = memo(props => {
29
29
  }
30
30
  }));
31
31
  const draggingRef = useRef(false);
32
- const dummyItemRef = useRef(null);
32
+ const rootRef = useRef(null);
33
33
  const itemHeight = useRef(34);
34
34
  useIsomorphicLayoutEffect(() => {
35
- const dummyItem = dummyItemRef.current;
36
- if (!dummyItem) return;
37
- const rect = dummyItem.getBoundingClientRect();
38
-
39
- if (rect.height > 0) {
40
- itemHeight.current = rect.height;
41
- }
35
+ const root = rootRef.current;
36
+ if (!root) return;
37
+ itemHeight.current = measureCSSLength(window.getComputedStyle(root).getPropertyValue('--item-height'));
42
38
  });
43
39
  useIsomorphicLayoutEffect(() => {
44
40
  if (draggingRef.current) return;
@@ -134,12 +130,9 @@ export const Wheel = memo(props => {
134
130
  }
135
131
 
136
132
  return React.createElement("div", Object.assign({
133
+ ref: rootRef,
137
134
  className: `${classPrefix}-column`
138
- }, bind()), React.createElement("div", {
139
- ref: dummyItemRef,
140
- className: classNames(`${classPrefix}-column-item`, `${classPrefix}-column-item-dummy`),
141
- "aria-hidden": true
142
- }), React.createElement(animated.div, {
135
+ }, bind()), React.createElement(animated.div, {
143
136
  style: {
144
137
  translateY: y
145
138
  },
@@ -4,9 +4,8 @@ export const Arrow = memo(props => {
4
4
  return withNativeProps(props, React.createElement("svg", {
5
5
  viewBox: '0 0 30 16'
6
6
  }, React.createElement("g", {
7
- transform: 'translate(-1300.000000, -841.000000)',
8
7
  fill: 'currentColor'
9
8
  }, React.createElement("path", {
10
- d: 'M1300,841 L1330,841 L1318.07289,855.312538 C1316.65863,857.009645 1314.13637,857.238942 1312.43926,855.824685 C1312.25341,855.669808 1312.08199,855.49839 1311.92711,855.312538 L1300,841 L1300,841 Z'
9
+ d: 'M0,0 L30,0 L18.07289,14.312538 C16.65863,16.009645 14.13637,16.238942 12.43926,14.824685 C12.25341,14.669808 12.08199,14.49839 11.92711,14.312538 L0,0 L0,0 Z'
11
10
  }))));
12
11
  });
@@ -4,16 +4,16 @@ import './popover-menu.less';
4
4
  export type { PopoverProps, PopoverRef } from './popover';
5
5
  export type { PopoverMenuProps, Action } from './popover-menu';
6
6
  declare const _default: import("react").ForwardRefExoticComponent<{
7
- getContainer?: HTMLElement | (() => HTMLElement) | null | undefined;
7
+ getContainer?: import("../../utils/render-to-container").GetContainer | undefined;
8
8
  destroyOnHide?: boolean | undefined;
9
- children: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
9
+ children: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
10
10
  mode?: "dark" | "light" | undefined;
11
11
  trigger?: "click" | undefined;
12
12
  placement?: "left" | "right" | "bottom" | "top" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
13
13
  stopPropagation?: "click"[] | undefined;
14
14
  content: import("react").ReactNode;
15
15
  } & Pick<import("rc-tooltip/lib/Tooltip").TooltipProps, "visible" | "align" | "defaultVisible" | "onVisibleChange"> & import("../../utils/native-props").NativeProps<"--z-index"> & import("react").RefAttributes<import("./popover").PopoverRef>> & {
16
- Menu: import("react").ForwardRefExoticComponent<Pick<import("./popover").PopoverProps, "children" | "style" | "visible" | "className" | "tabIndex" | "mode" | "align" | "getContainer" | "stopPropagation" | "defaultVisible" | "onVisibleChange" | "trigger" | "placement" | "destroyOnHide"> & {
16
+ Menu: import("react").ForwardRefExoticComponent<Omit<import("./popover").PopoverProps, "content"> & {
17
17
  actions: import("./popover-menu").Action[];
18
18
  onAction?: ((item: import("./popover-menu").Action) => void) | undefined;
19
19
  } & import("react").RefAttributes<import("./popover").PopoverRef>>;
@@ -11,7 +11,7 @@ export declare type PopoverMenuProps = Omit<PopoverProps, 'content'> & {
11
11
  actions: Action[];
12
12
  onAction?: (item: Action) => void;
13
13
  };
14
- export declare const PopoverMenu: React.ForwardRefExoticComponent<Pick<PopoverProps, "children" | "style" | "visible" | "className" | "tabIndex" | "mode" | "align" | "getContainer" | "stopPropagation" | "defaultVisible" | "onVisibleChange" | "trigger" | "placement" | "destroyOnHide"> & {
14
+ export declare const PopoverMenu: React.ForwardRefExoticComponent<Omit<PopoverProps, "content"> & {
15
15
  actions: Action[];
16
16
  onAction?: ((item: Action) => void) | undefined;
17
17
  } & React.RefAttributes<PopoverRef>>;
@@ -19,7 +19,7 @@ export declare type PopoverRef = {
19
19
  visible: boolean;
20
20
  };
21
21
  export declare const Popover: React.ForwardRefExoticComponent<{
22
- getContainer?: HTMLElement | (() => HTMLElement) | null | undefined;
22
+ getContainer?: GetContainer | undefined;
23
23
  destroyOnHide?: boolean | undefined;
24
24
  children: ReactElement;
25
25
  mode?: "dark" | "light" | undefined;
@@ -7,7 +7,7 @@ import Mask from '../mask';
7
7
  import { useLockScroll } from '../../utils/use-lock-scroll';
8
8
  import { renderToContainer } from '../../utils/render-to-container';
9
9
  import { useSpring, animated } from '@react-spring/web';
10
- import { useShouldRender } from '../../utils/use-should-render';
10
+ import { useShouldRender } from '../../utils/should-render';
11
11
  import { withStopPropagation } from '../../utils/with-stop-propagation';
12
12
  const classPrefix = `adm-popup`;
13
13
  const defaultProps = {
@@ -45,6 +45,7 @@ export const SearchBar = forwardRef((p, ref) => {
45
45
 
46
46
  const renderCancelButton = () => {
47
47
  let isShowCancel = false;
48
+ const showCancelButton = props.showCancelButton;
48
49
 
49
50
  if (typeof props.showCancelButton === 'function') {
50
51
  isShowCancel = props.showCancelButton(hasFocus, value);
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
+ declare type SelectorValue = string | number;
3
4
  export interface SelectorOption<V> {
4
5
  label: ReactNode;
5
6
  description?: ReactNode;
@@ -18,4 +19,5 @@ export declare type SelectorProps<V> = {
18
19
  }) => void;
19
20
  showCheckMark?: boolean;
20
21
  } & NativeProps<'--color' | '--checked-color' | '--text-color' | '--checked-text-color' | '--border' | '--checked-border' | '--border-radius' | '--padding'>;
21
- export declare const Selector: <V extends string | number>(p: SelectorProps<V>) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>;
22
+ export declare const Selector: <V extends SelectorValue>(p: SelectorProps<V>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
23
+ export {};
@@ -1,15 +1,25 @@
1
1
  import { FC } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  import { InputProps } from '../input';
4
- export declare type StepperProps = Pick<InputProps, 'onFocus' | 'onBlur'> & {
4
+ declare type ValueProps = {
5
+ allowEmpty: true;
6
+ value?: number | null;
7
+ defaultValue?: number | null;
8
+ onChange?: (value: number | null) => void;
9
+ };
10
+ declare type ValuePropsWithNull = {
11
+ allowEmpty?: false;
5
12
  value?: number;
6
13
  defaultValue?: number;
14
+ onChange?: (value: number) => void;
15
+ };
16
+ export declare type StepperProps = Pick<InputProps, 'onFocus' | 'onBlur'> & (ValuePropsWithNull | ValueProps) & {
7
17
  min?: number;
8
18
  max?: number;
9
19
  step?: number;
10
20
  digits?: number;
11
21
  disabled?: boolean;
12
22
  inputReadOnly?: boolean;
13
- onChange?: (value: number) => void;
14
23
  } & NativeProps<'--height' | '--input-width' | '--input-font-size' | '--input-background-color' | '--border-radius' | '--border' | '--border-inner' | '--active-border' | '--button-font-size' | '--button-background-color' | '--button-width' | '--input-font-color' | '--button-text-color'>;
15
24
  export declare const Stepper: FC<StepperProps>;
25
+ export {};
@@ -11,7 +11,8 @@ const classPrefix = `adm-stepper`;
11
11
  const defaultProps = {
12
12
  defaultValue: 0,
13
13
  step: 1,
14
- disabled: false
14
+ disabled: false,
15
+ allowEmpty: false
15
16
  };
16
17
  export const Stepper = p => {
17
18
  const props = mergeProps(defaultProps, p);
@@ -23,7 +24,7 @@ export const Stepper = p => {
23
24
  inputReadOnly
24
25
  } = props;
25
26
  const [value, setValue] = usePropsValue(props);
26
- const [inputValue, setInputValue] = useState(() => value.toString());
27
+ const [inputValue, setInputValue] = useState(() => convertValueToText(value));
27
28
 
28
29
  function setValueWithCheck(v) {
29
30
  if (isNaN(v)) return;
@@ -39,42 +40,58 @@ export const Stepper = p => {
39
40
  const [hasFocus, setHasFocus] = useState(false);
40
41
  useEffect(() => {
41
42
  if (!hasFocus) {
42
- setInputValue(value.toString());
43
+ setInputValue(convertValueToText(value));
43
44
  }
44
45
  }, [hasFocus]);
45
46
  useEffect(() => {
46
47
  if (!hasFocus) {
47
- setInputValue(value.toString());
48
+ setInputValue(convertValueToText(value));
48
49
  }
49
50
  }, [value]);
50
51
 
51
52
  const handleInputChange = v => {
52
53
  setInputValue(v);
53
- setValueWithCheck(parseFloat(v));
54
+ const value = convertTextToValue(v);
55
+
56
+ if (value === null) {
57
+ if (props.allowEmpty) {
58
+ setValue(null);
59
+ } else {
60
+ setValue(props.defaultValue);
61
+ }
62
+ } else {
63
+ setValueWithCheck(value);
64
+ }
54
65
  };
55
66
 
56
67
  const handleMinus = () => {
57
- setValueWithCheck(value - step);
68
+ setValueWithCheck((value !== null && value !== void 0 ? value : 0) - step);
58
69
  };
59
70
 
60
71
  const handlePlus = () => {
61
- setValueWithCheck(value + step);
72
+ setValueWithCheck((value !== null && value !== void 0 ? value : 0) + step);
62
73
  };
63
74
 
64
75
  const minusDisabled = () => {
65
- if (min === undefined) {
66
- return disabled;
67
- } else {
68
- return disabled || value <= min;
76
+ if (disabled) return true;
77
+ if (value === null) return false;
78
+
79
+ if (min !== undefined) {
80
+ return value <= min;
69
81
  }
82
+
83
+ return false;
70
84
  };
71
85
 
72
86
  const plusDisabled = () => {
73
- if (max === undefined) {
74
- return disabled;
75
- } else {
76
- return disabled || value >= max;
87
+ if (disabled) return true;
88
+ if (value === null) return false;
89
+
90
+ if (max !== undefined) {
91
+ return value >= max;
77
92
  }
93
+
94
+ return false;
78
95
  };
79
96
 
80
97
  return withNativeProps(props, React.createElement("div", {
@@ -118,4 +135,14 @@ export const Stepper = p => {
118
135
  shape: 'rectangular',
119
136
  color: 'primary'
120
137
  }, React.createElement(AddOutline, null))));
121
- };
138
+ };
139
+
140
+ function convertValueToText(value) {
141
+ if (value === null) return '';
142
+ return value.toString();
143
+ }
144
+
145
+ function convertTextToValue(text) {
146
+ if (text === '') return null;
147
+ return parseFloat(text);
148
+ }
@@ -7,15 +7,15 @@ declare const _default: import("react").ForwardRefExoticComponent<{
7
7
  autoplay?: boolean | undefined;
8
8
  autoplayInterval?: number | undefined;
9
9
  loop?: boolean | undefined;
10
- direction?: "horizontal" | "vertical" | undefined;
10
+ direction?: "vertical" | "horizontal" | undefined;
11
11
  onIndexChange?: ((index: number) => void) | undefined;
12
- indicatorProps?: Pick<import("../page-indicator").PageIndicatorProps, "style" | "color" | "className"> | undefined;
12
+ indicatorProps?: Pick<import("../page-indicator").PageIndicatorProps, "style" | "className" | "color"> | undefined;
13
13
  indicator?: ((total: number, current: number) => import("react").ReactNode) | undefined;
14
14
  slideSize?: number | undefined;
15
15
  trackOffset?: number | undefined;
16
16
  stuckAtBoundary?: boolean | undefined;
17
17
  rubberband?: boolean | undefined;
18
- children?: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)> | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>[] | undefined;
18
+ children?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>[] | undefined;
19
19
  } & import("../../utils/native-props").NativeProps<"--border-radius" | "--width" | "--height" | "--track-padding"> & import("react").RefAttributes<import("./swiper").SwiperRef>> & {
20
20
  Item: import("react").FC<{
21
21
  onClick?: ((e: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
@@ -28,13 +28,13 @@ export declare const Swiper: React.ForwardRefExoticComponent<{
28
28
  autoplay?: boolean | undefined;
29
29
  autoplayInterval?: number | undefined;
30
30
  loop?: boolean | undefined;
31
- direction?: "horizontal" | "vertical" | undefined;
31
+ direction?: "vertical" | "horizontal" | undefined;
32
32
  onIndexChange?: ((index: number) => void) | undefined;
33
- indicatorProps?: Pick<PageIndicatorProps, "style" | "color" | "className"> | undefined;
33
+ indicatorProps?: Pick<PageIndicatorProps, "style" | "className" | "color"> | undefined;
34
34
  indicator?: ((total: number, current: number) => ReactNode) | undefined;
35
35
  slideSize?: number | undefined;
36
36
  trackOffset?: number | undefined;
37
37
  stuckAtBoundary?: boolean | undefined;
38
38
  rubberband?: boolean | undefined;
39
- children?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>[] | undefined;
39
+ children?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[] | undefined;
40
40
  } & NativeProps<"--border-radius" | "--width" | "--height" | "--track-padding"> & React.RefAttributes<SwiperRef>>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { NativeProps } from '../../utils/native-props';
3
+ export declare const SpinIcon: React.NamedExoticComponent<NativeProps<never>>;
@@ -0,0 +1,23 @@
1
+ import React, { memo } from 'react';
2
+ import { withNativeProps } from '../../utils/native-props';
3
+ export const SpinIcon = memo(props => {
4
+ return withNativeProps(props, React.createElement("svg", {
5
+ width: '28px',
6
+ height: '28px',
7
+ viewBox: '0 0 28 28'
8
+ }, React.createElement("g", {
9
+ stroke: 'none',
10
+ strokeWidth: '1',
11
+ fill: 'none',
12
+ fillRule: 'evenodd'
13
+ }, React.createElement("g", {
14
+ transform: 'translate(-137.000000, -840.000000)',
15
+ fill: '#1576FE'
16
+ }, React.createElement("g", {
17
+ transform: 'translate(80.000000, 823.000000)'
18
+ }, React.createElement("g", {
19
+ transform: 'translate(53.000000, 13.000000)'
20
+ }, React.createElement("path", {
21
+ d: 'M17.9996753,31.5 C10.5556724,31.5 4.5,25.4443275 4.5,18.0003247 C4.5,10.5563219 10.5556724,4.5 17.9996753,4.5 C18.5355492,4.5 18.9702974,4.93474816 18.9702974,5.47062208 C18.9702974,6.006496 18.5355492,6.44124416 17.9996753,6.44124416 C11.6261524,6.44124416 6.44124416,11.6267709 6.44124416,18.0002938 C6.44124416,24.3738167 11.6261524,29.5587249 17.9996753,29.5587249 C24.3731982,29.5587249 29.5587249,24.3738167 29.5587249,18.0002938 C29.5587249,14.7964616 28.2778291,11.8169616 25.9523687,9.61220279 C25.5637302,9.24317094 25.5473089,8.62893223 25.9157222,8.23967523 C26.2841356,7.84976878 26.8989928,7.83461537 27.2882498,8.20302872 C30.0042351,10.7787368 31.5,14.2580826 31.5,18.0002938 C31.5,25.4443275 25.4436781,31.5 17.9996753,31.5 Z'
22
+ })))))));
23
+ });
@@ -101,7 +101,7 @@
101
101
  opacity: 0.4;
102
102
  }
103
103
 
104
- .adm-switch-icon {
104
+ .adm-switch-spin-icon {
105
105
  width: 28px;
106
106
  height: 28px;
107
107
  animation: loading-rotate 1s linear infinite;