antd-mobile 5.0.0-rc.19 → 5.0.0-rc.22

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 (237) hide show
  1. package/2x/README.md +1 -1
  2. package/2x/cjs/components/avatar/avatar.d.ts +1 -1
  3. package/2x/cjs/components/badge/badge.css +1 -1
  4. package/2x/cjs/components/button/button.css +4 -3
  5. package/2x/cjs/components/calendar/calendar.js +4 -0
  6. package/2x/cjs/components/capsule-tabs/capsule-tabs.css +1 -1
  7. package/2x/cjs/components/check-list/check-list.css +0 -4
  8. package/2x/cjs/components/checkbox/checkbox.css +6 -16
  9. package/2x/cjs/components/checkbox/checkbox.js +1 -1
  10. package/2x/cjs/components/date-picker/date-picker.d.ts +2 -2
  11. package/2x/cjs/components/dialog/dialog-action-button.js +1 -0
  12. package/2x/cjs/components/dialog/dialog.css +15 -0
  13. package/2x/cjs/components/dialog/dialog.js +4 -2
  14. package/2x/cjs/components/error-block/error-block.d.ts +1 -1
  15. package/2x/cjs/components/floating-panel/floating-panel.d.ts +2 -0
  16. package/2x/cjs/components/floating-panel/floating-panel.js +5 -0
  17. package/2x/cjs/components/form/form-item.css +5 -0
  18. package/2x/cjs/components/form/form.css +10 -0
  19. package/2x/cjs/components/form/form.js +1 -5
  20. package/2x/cjs/components/form/index.css +15 -0
  21. package/2x/cjs/components/image/image.d.ts +1 -0
  22. package/2x/cjs/components/image/image.js +4 -1
  23. package/2x/cjs/components/input/input.css +28 -25
  24. package/2x/cjs/components/input/input.d.ts +2 -2
  25. package/2x/cjs/components/input/input.js +7 -3
  26. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -1
  27. package/2x/cjs/components/list/list-item.js +1 -1
  28. package/2x/cjs/components/list/list.css +3 -5
  29. package/2x/cjs/components/list/list.d.ts +1 -1
  30. package/2x/cjs/components/modal/modal.css +15 -0
  31. package/2x/cjs/components/modal/modal.js +4 -2
  32. package/2x/cjs/components/nav-bar/nav-bar.css +3 -3
  33. package/2x/cjs/components/notice-bar/notice-bar.css +16 -8
  34. package/2x/cjs/components/notice-bar/notice-bar.d.ts +1 -1
  35. package/2x/cjs/components/notice-bar/notice-bar.js +5 -3
  36. package/2x/cjs/components/picker/picker.css +7 -2
  37. package/2x/cjs/components/picker/picker.js +1 -0
  38. package/2x/cjs/components/picker-view/picker-view.css +2 -2
  39. package/2x/cjs/components/popover/popover.js +6 -5
  40. package/2x/cjs/components/radio/radio.css +5 -5
  41. package/2x/cjs/components/result/result.css +2 -5
  42. package/2x/cjs/components/search-bar/search-bar.css +14 -9
  43. package/2x/cjs/components/selector/selector.css +4 -0
  44. package/2x/cjs/components/side-bar/corner.d.ts +3 -0
  45. package/2x/cjs/components/side-bar/corner.js +28 -0
  46. package/2x/cjs/components/side-bar/side-bar.css +31 -18
  47. package/2x/cjs/components/side-bar/side-bar.js +22 -5
  48. package/2x/cjs/components/spin-loading/spin-loading.css +1 -19
  49. package/2x/cjs/components/spin-loading/spin-loading.d.ts +1 -1
  50. package/2x/cjs/components/spin-loading/spin-loading.js +33 -5
  51. package/2x/cjs/components/stepper/stepper.css +4 -7
  52. package/2x/cjs/components/stepper/stepper.js +2 -1
  53. package/2x/cjs/components/swipe-action/swipe-action.d.ts +2 -2
  54. package/2x/cjs/components/swipe-action/swipe-action.js +1 -1
  55. package/2x/cjs/components/swiper/swiper.js +14 -19
  56. package/2x/cjs/components/tabs/tabs.css +1 -1
  57. package/2x/cjs/components/tag/tag.css +3 -3
  58. package/2x/cjs/components/virtual-input/virtual-input.d.ts +1 -1
  59. package/2x/cjs/utils/get-scroll-parent.js +1 -1
  60. package/2x/es/components/avatar/avatar.d.ts +1 -1
  61. package/2x/es/components/badge/badge.css +1 -1
  62. package/2x/es/components/button/button.css +4 -3
  63. package/2x/es/components/calendar/calendar.js +2 -0
  64. package/2x/es/components/capsule-tabs/capsule-tabs.css +1 -1
  65. package/2x/es/components/check-list/check-list.css +0 -4
  66. package/2x/es/components/checkbox/checkbox.css +6 -16
  67. package/2x/es/components/checkbox/checkbox.js +1 -1
  68. package/2x/es/components/date-picker/date-picker.d.ts +2 -2
  69. package/2x/es/components/dialog/dialog-action-button.js +1 -0
  70. package/2x/es/components/dialog/dialog.css +15 -0
  71. package/2x/es/components/dialog/dialog.js +4 -2
  72. package/2x/es/components/error-block/error-block.d.ts +1 -1
  73. package/2x/es/components/floating-panel/floating-panel.d.ts +2 -0
  74. package/2x/es/components/floating-panel/floating-panel.js +5 -0
  75. package/2x/es/components/form/form-item.css +5 -0
  76. package/2x/es/components/form/form.css +10 -0
  77. package/2x/es/components/form/form.js +1 -5
  78. package/2x/es/components/form/index.css +15 -0
  79. package/2x/es/components/image/image.d.ts +1 -0
  80. package/2x/es/components/image/image.js +4 -1
  81. package/2x/es/components/input/input.css +28 -25
  82. package/2x/es/components/input/input.d.ts +2 -2
  83. package/2x/es/components/input/input.js +4 -3
  84. package/2x/es/components/jumbo-tabs/jumbo-tabs.css +4 -1
  85. package/2x/es/components/list/list-item.js +1 -1
  86. package/2x/es/components/list/list.css +3 -5
  87. package/2x/es/components/list/list.d.ts +1 -1
  88. package/2x/es/components/modal/modal.css +15 -0
  89. package/2x/es/components/modal/modal.js +4 -2
  90. package/2x/es/components/nav-bar/nav-bar.css +3 -3
  91. package/2x/es/components/notice-bar/notice-bar.css +16 -8
  92. package/2x/es/components/notice-bar/notice-bar.d.ts +1 -1
  93. package/2x/es/components/notice-bar/notice-bar.js +5 -3
  94. package/2x/es/components/picker/picker.css +7 -2
  95. package/2x/es/components/picker/picker.js +1 -0
  96. package/2x/es/components/picker-view/picker-view.css +2 -2
  97. package/2x/es/components/popover/popover.js +6 -5
  98. package/2x/es/components/radio/radio.css +5 -5
  99. package/2x/es/components/result/result.css +2 -5
  100. package/2x/es/components/search-bar/search-bar.css +14 -9
  101. package/2x/es/components/selector/selector.css +4 -0
  102. package/2x/es/components/side-bar/corner.d.ts +3 -0
  103. package/2x/es/components/side-bar/corner.js +14 -0
  104. package/2x/es/components/side-bar/side-bar.css +31 -18
  105. package/2x/es/components/side-bar/side-bar.js +21 -5
  106. package/2x/es/components/spin-loading/spin-loading.css +1 -19
  107. package/2x/es/components/spin-loading/spin-loading.d.ts +1 -1
  108. package/2x/es/components/spin-loading/spin-loading.js +32 -5
  109. package/2x/es/components/stepper/stepper.css +4 -7
  110. package/2x/es/components/stepper/stepper.js +2 -1
  111. package/2x/es/components/swipe-action/swipe-action.d.ts +2 -2
  112. package/2x/es/components/swipe-action/swipe-action.js +1 -1
  113. package/2x/es/components/swiper/swiper.js +13 -19
  114. package/2x/es/components/tabs/tabs.css +1 -1
  115. package/2x/es/components/tag/tag.css +3 -3
  116. package/2x/es/components/virtual-input/virtual-input.d.ts +1 -1
  117. package/2x/es/utils/get-scroll-parent.js +1 -1
  118. package/2x/package.json +2 -2
  119. package/README.md +1 -1
  120. package/cjs/components/avatar/avatar.d.ts +1 -1
  121. package/cjs/components/badge/badge.css +1 -1
  122. package/cjs/components/button/button.css +4 -3
  123. package/cjs/components/calendar/calendar.js +4 -0
  124. package/cjs/components/capsule-tabs/capsule-tabs.css +1 -1
  125. package/cjs/components/check-list/check-list.css +0 -3
  126. package/cjs/components/checkbox/checkbox.css +6 -14
  127. package/cjs/components/checkbox/checkbox.js +1 -1
  128. package/cjs/components/date-picker/date-picker.d.ts +2 -2
  129. package/cjs/components/dialog/dialog-action-button.js +1 -0
  130. package/cjs/components/dialog/dialog.css +12 -0
  131. package/cjs/components/dialog/dialog.js +4 -2
  132. package/cjs/components/error-block/error-block.d.ts +1 -1
  133. package/cjs/components/floating-panel/floating-panel.d.ts +2 -0
  134. package/cjs/components/floating-panel/floating-panel.js +5 -0
  135. package/cjs/components/form/form-item.css +4 -0
  136. package/cjs/components/form/form.css +8 -0
  137. package/cjs/components/form/form.js +1 -5
  138. package/cjs/components/form/index.css +12 -0
  139. package/cjs/components/image/image.d.ts +1 -0
  140. package/cjs/components/image/image.js +4 -1
  141. package/cjs/components/input/input.css +26 -24
  142. package/cjs/components/input/input.d.ts +2 -2
  143. package/cjs/components/input/input.js +7 -3
  144. package/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -1
  145. package/cjs/components/list/list-item.js +1 -1
  146. package/cjs/components/list/list.css +3 -4
  147. package/cjs/components/list/list.d.ts +1 -1
  148. package/cjs/components/modal/modal.css +12 -0
  149. package/cjs/components/modal/modal.js +4 -2
  150. package/cjs/components/nav-bar/nav-bar.css +3 -3
  151. package/cjs/components/notice-bar/notice-bar.css +15 -8
  152. package/cjs/components/notice-bar/notice-bar.d.ts +1 -1
  153. package/cjs/components/notice-bar/notice-bar.js +5 -3
  154. package/cjs/components/picker/picker.css +6 -2
  155. package/cjs/components/picker/picker.js +1 -0
  156. package/cjs/components/picker-view/picker-view.css +2 -2
  157. package/cjs/components/popover/popover.js +6 -5
  158. package/cjs/components/radio/radio.css +5 -5
  159. package/cjs/components/result/result.css +2 -5
  160. package/cjs/components/search-bar/search-bar.css +13 -9
  161. package/cjs/components/selector/selector.css +3 -0
  162. package/cjs/components/side-bar/corner.d.ts +3 -0
  163. package/cjs/components/side-bar/corner.js +28 -0
  164. package/cjs/components/side-bar/side-bar.css +27 -17
  165. package/cjs/components/side-bar/side-bar.js +22 -5
  166. package/cjs/components/spin-loading/spin-loading.css +1 -17
  167. package/cjs/components/spin-loading/spin-loading.d.ts +1 -1
  168. package/cjs/components/spin-loading/spin-loading.js +33 -5
  169. package/cjs/components/stepper/stepper.css +4 -6
  170. package/cjs/components/stepper/stepper.js +2 -1
  171. package/cjs/components/swipe-action/swipe-action.d.ts +2 -2
  172. package/cjs/components/swipe-action/swipe-action.js +1 -1
  173. package/cjs/components/swiper/swiper.js +14 -19
  174. package/cjs/components/tabs/tabs.css +1 -1
  175. package/cjs/components/tag/tag.css +3 -3
  176. package/cjs/components/virtual-input/virtual-input.d.ts +1 -1
  177. package/cjs/utils/get-scroll-parent.js +1 -1
  178. package/es/components/avatar/avatar.d.ts +1 -1
  179. package/es/components/badge/badge.css +1 -1
  180. package/es/components/button/button.css +4 -3
  181. package/es/components/calendar/calendar.js +2 -0
  182. package/es/components/capsule-tabs/capsule-tabs.css +1 -1
  183. package/es/components/check-list/check-list.css +0 -3
  184. package/es/components/checkbox/checkbox.css +6 -14
  185. package/es/components/checkbox/checkbox.js +1 -1
  186. package/es/components/date-picker/date-picker.d.ts +2 -2
  187. package/es/components/dialog/dialog-action-button.js +1 -0
  188. package/es/components/dialog/dialog.css +12 -0
  189. package/es/components/dialog/dialog.js +4 -2
  190. package/es/components/error-block/error-block.d.ts +1 -1
  191. package/es/components/floating-panel/floating-panel.d.ts +2 -0
  192. package/es/components/floating-panel/floating-panel.js +5 -0
  193. package/es/components/form/form-item.css +4 -0
  194. package/es/components/form/form.css +8 -0
  195. package/es/components/form/form.js +1 -5
  196. package/es/components/form/index.css +12 -0
  197. package/es/components/image/image.d.ts +1 -0
  198. package/es/components/image/image.js +4 -1
  199. package/es/components/input/input.css +26 -24
  200. package/es/components/input/input.d.ts +2 -2
  201. package/es/components/input/input.js +4 -3
  202. package/es/components/jumbo-tabs/jumbo-tabs.css +4 -1
  203. package/es/components/list/list-item.js +1 -1
  204. package/es/components/list/list.css +3 -4
  205. package/es/components/list/list.d.ts +1 -1
  206. package/es/components/modal/modal.css +12 -0
  207. package/es/components/modal/modal.js +4 -2
  208. package/es/components/nav-bar/nav-bar.css +3 -3
  209. package/es/components/notice-bar/notice-bar.css +15 -8
  210. package/es/components/notice-bar/notice-bar.d.ts +1 -1
  211. package/es/components/notice-bar/notice-bar.js +5 -3
  212. package/es/components/picker/picker.css +6 -2
  213. package/es/components/picker/picker.js +1 -0
  214. package/es/components/picker-view/picker-view.css +2 -2
  215. package/es/components/popover/popover.js +6 -5
  216. package/es/components/radio/radio.css +5 -5
  217. package/es/components/result/result.css +2 -5
  218. package/es/components/search-bar/search-bar.css +13 -9
  219. package/es/components/selector/selector.css +3 -0
  220. package/es/components/side-bar/corner.d.ts +3 -0
  221. package/es/components/side-bar/corner.js +14 -0
  222. package/es/components/side-bar/side-bar.css +27 -17
  223. package/es/components/side-bar/side-bar.js +21 -5
  224. package/es/components/spin-loading/spin-loading.css +1 -17
  225. package/es/components/spin-loading/spin-loading.d.ts +1 -1
  226. package/es/components/spin-loading/spin-loading.js +32 -5
  227. package/es/components/stepper/stepper.css +4 -6
  228. package/es/components/stepper/stepper.js +2 -1
  229. package/es/components/swipe-action/swipe-action.d.ts +2 -2
  230. package/es/components/swipe-action/swipe-action.js +1 -1
  231. package/es/components/swiper/swiper.js +13 -19
  232. package/es/components/tabs/tabs.css +1 -1
  233. package/es/components/tag/tag.css +3 -3
  234. package/es/components/virtual-input/virtual-input.d.ts +1 -1
  235. package/es/utils/get-scroll-parent.js +1 -1
  236. package/package.json +2 -2
  237. package/umd/antd-mobile.js +1 -1
package/2x/README.md CHANGED
@@ -30,7 +30,7 @@ If you have some question about how to use ant-mobile, you can start a [discussi
30
30
 
31
31
  Feel free to join our DingDing group:
32
32
 
33
- <img src="https://gw.alipayobjects.com/mdn/rms_25513e/afts/img/A*wy8nQLwxbKYAAAAAAAAAAAAAARQnAQ" alt="ding-group" width="360" /><img src="https://gw.alipayobjects.com/mdn/rms_25513e/afts/img/A*fo-tQ5wRk5QAAAAAAAAAAAAAARQnAQ" alt="ding-group" width="360" />
33
+ <img src="https://gw.alipayobjects.com/mdn/rms_25513e/afts/img/A*hBjlR4nUWjkAAAAAAAAAAAAAARQnAQ" alt="ding-group" width="250" />
34
34
 
35
35
  ---
36
36
 
@@ -5,5 +5,5 @@ export declare type AvatarProps = {
5
5
  src: string;
6
6
  fallback?: ReactNode;
7
7
  fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
8
- } & Pick<ImageProps, 'alt' | 'lazy' | 'onClick' | 'onError'> & NativeProps<'--size'>;
8
+ } & Pick<ImageProps, 'alt' | 'lazy' | 'onClick' | 'onError'> & NativeProps<'--size' | '--border-radius'>;
9
9
  export declare const Avatar: FC<AvatarProps>;
@@ -14,7 +14,7 @@
14
14
  border-radius: 200px;
15
15
  padding: 0 8px;
16
16
  font-size: 18px;
17
- line-height: 1.2;
17
+ line-height: 28px;
18
18
  white-space: nowrap;
19
19
  background-color: var(--color);
20
20
  --right: 0;
@@ -30,8 +30,9 @@
30
30
 
31
31
  .adm-button::before {
32
32
  position: absolute;
33
- top: calc(var(--border-width) * -1);
34
- left: calc(var(--border-width) * -1);
33
+ top: 0;
34
+ left: 0;
35
+ transform: translate(calc(var(--border-width) * -1), calc(var(--border-width) * -1));
35
36
  width: 100%;
36
37
  height: 100%;
37
38
  background-color: #000;
@@ -53,7 +54,7 @@
53
54
 
54
55
  .adm-button-default.adm-button-fill-none {
55
56
  --background-color: transparent;
56
- --border-color: transparent;
57
+ --border-width: 0;
57
58
  }
58
59
 
59
60
  .adm-button:not(.adm-button-default) {
@@ -21,12 +21,16 @@ var _arrowLeftDouble = require("./arrow-left-double");
21
21
 
22
22
  var _configProvider = require("../config-provider");
23
23
 
24
+ var _isoWeek = _interopRequireDefault(require("dayjs/plugin/isoWeek"));
25
+
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
27
 
26
28
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
29
 
28
30
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
31
 
32
+ _dayjs.default.extend(_isoWeek.default);
33
+
30
34
  const classPrefix = 'adm-calendar';
31
35
  const defaultProps = {
32
36
  weekStartsOn: 'Sunday'
@@ -33,7 +33,7 @@
33
33
  margin: 0 auto;
34
34
  border-radius: 40px;
35
35
  cursor: pointer;
36
- font-size: var(--adm-font-size-main);
36
+ font-size: 30px;
37
37
  text-align: center;
38
38
  white-space: nowrap;
39
39
  background-color: #f5f5f5;
@@ -1,7 +1,3 @@
1
- .adm-check-list-item .adm-list-item-content-main {
2
- padding: 24px 0;
3
- }
4
-
5
1
  .adm-check-list-item-extra {
6
2
  font-size: 32px;
7
3
  line-height: 1;
@@ -15,7 +15,7 @@
15
15
 
16
16
  .adm-checkbox .adm-checkbox-icon {
17
17
  flex: none;
18
- border: 2px solid #ccc;
18
+ border: 2px solid var(--adm-color-light);
19
19
  border-radius: var(--icon-size);
20
20
  box-sizing: border-box;
21
21
  display: flex;
@@ -45,22 +45,13 @@
45
45
  }
46
46
 
47
47
  .adm-checkbox.adm-checkbox-disabled .adm-checkbox-content {
48
- color: var(--adm-color-weak);
48
+ opacity: 0.4;
49
49
  }
50
50
 
51
- .adm-checkbox.adm-checkbox-disabled.adm-checkbox-indeterminate .adm-checkbox-icon {
52
- color: #ccc;
53
- border-color: #ccc;
54
- background-color: #ebedf0;
55
- }
56
-
57
- .adm-checkbox.adm-checkbox-disabled.adm-checkbox-checked .adm-checkbox-icon {
58
- color: #ccc;
59
- }
60
-
61
- .adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon {
62
- border-color: #ccc;
63
- background-color: #ebedf0;
51
+ .adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon.adm-checkbox-icon {
52
+ color: #b7b7b7;
53
+ border-color: var(--adm-color-light);
54
+ background-color: #f5f5f5;
64
55
  }
65
56
 
66
57
  .adm-checkbox .adm-checkbox-custom-icon {
@@ -68,7 +59,6 @@
68
59
  }
69
60
 
70
61
  .adm-checkbox.adm-checkbox-indeterminate .adm-checkbox-icon {
71
- border-color: var(--adm-color-primary);
72
62
  background-color: #ffffff;
73
63
  color: var(--adm-color-primary);
74
64
  }
@@ -94,7 +94,7 @@ const Checkbox = p => {
94
94
 
95
95
  return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("label", {
96
96
  className: (0, _classnames.default)(classPrefix, {
97
- [`${classPrefix}-checked`]: checked,
97
+ [`${classPrefix}-checked`]: checked && !props.indeterminate,
98
98
  [`${classPrefix}-indeterminate`]: props.indeterminate,
99
99
  [`${classPrefix}-disabled`]: disabled,
100
100
  [`${classPrefix}-block`]: props.block
@@ -3,8 +3,8 @@ import type { PickerProps } from '../picker';
3
3
  import { NativeProps } from '../../utils/native-props';
4
4
  import type { Precision, DatePickerFilter } from './date-picker-utils';
5
5
  export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation'> & {
6
- value?: Date;
7
- defaultValue?: Date;
6
+ value?: Date | null;
7
+ defaultValue?: Date | null;
8
8
  onSelect?: (value: Date) => void;
9
9
  onConfirm?: (value: Date) => void;
10
10
  min?: Date;
@@ -49,6 +49,7 @@ const DialogActionButton = props => {
49
49
  'adm-dialog-button-bold': action.bold
50
50
  }),
51
51
  fill: 'none',
52
+ shape: 'rectangular',
52
53
  block: true,
53
54
  color: action.danger ? 'danger' : 'primary',
54
55
  loading: loading,
@@ -20,10 +20,21 @@
20
20
 
21
21
  .adm-dialog-main {
22
22
  width: 100%;
23
+ max-height: 70vh;
23
24
  font-size: 28px;
24
25
  background-color: white;
25
26
  border-radius: 16px;
26
27
  overflow: hidden;
28
+ display: flex;
29
+ flex-direction: column;
30
+ }
31
+
32
+ .adm-dialog-main > * {
33
+ flex: none;
34
+ }
35
+
36
+ .adm-dialog-main > .adm-dialog-image-container {
37
+ flex: auto;
27
38
  }
28
39
 
29
40
  .adm-dialog-main .adm-dialog-body {
@@ -79,4 +90,8 @@
79
90
 
80
91
  .adm-dialog-main .adm-dialog-footer .adm-dialog-action-row > .adm-dialog-button:last-child {
81
92
  border-right: none;
93
+ }
94
+
95
+ .adm-dialog-image-container {
96
+ overflow-y: auto;
82
97
  }
@@ -97,11 +97,13 @@ const Dialog = p => {
97
97
  style: Object.assign({}, style),
98
98
  onClick: e => e.stopPropagation(),
99
99
  className: `${classPrefix}-main`
100
- }, !!props.image && _react.default.createElement(_image.default, {
100
+ }, !!props.image && _react.default.createElement("div", {
101
+ className: `${classPrefix}-image-container`
102
+ }, _react.default.createElement(_image.default, {
101
103
  src: props.image,
102
104
  alt: 'dialog header image',
103
105
  width: '100%'
104
- }), _react.default.createElement("div", {
106
+ })), _react.default.createElement("div", {
105
107
  style: props.bodyStyle,
106
108
  className: (0, _classnames.default)(`${classPrefix}-body`, props.bodyClassName)
107
109
  }, _react.default.createElement(_space.default, {
@@ -6,5 +6,5 @@ export declare type ErrorBlockProps = {
6
6
  image?: string | ReactElement;
7
7
  description?: ReactNode;
8
8
  fullPage?: boolean;
9
- } & NativeProps<'--image-height' | '--image-height-full-page'>;
9
+ } & NativeProps<'--image-height' | '--image-height-full-page' | '--image-width' | '--image-width-full-page'>;
10
10
  export declare const ErrorBlock: FC<ErrorBlockProps>;
@@ -3,6 +3,7 @@ import { NativeProps } from '../../utils/native-props';
3
3
  export declare type FloatingPanelProps = {
4
4
  anchors: number[];
5
5
  children: ReactNode;
6
+ onHeightChange?: (height: number, animating: boolean) => void;
6
7
  } & NativeProps<'--border-radius' | '--z-index'>;
7
8
  export declare type FloatingPanelRef = {
8
9
  setHeight: (height: number, options?: {
@@ -12,4 +13,5 @@ export declare type FloatingPanelRef = {
12
13
  export declare const FloatingPanel: React.ForwardRefExoticComponent<{
13
14
  anchors: number[];
14
15
  children: ReactNode;
16
+ onHeightChange?: ((height: number, animating: boolean) => void) | undefined;
15
17
  } & NativeProps<"--z-index" | "--border-radius"> & React.RefAttributes<FloatingPanelRef>>;
@@ -44,6 +44,11 @@ const FloatingPanel = (0, _react.forwardRef)((props, ref) => {
44
44
  y: bounds.bottom,
45
45
  config: {
46
46
  tension: 300
47
+ },
48
+ onChange: result => {
49
+ var _a;
50
+
51
+ (_a = props.onHeightChange) === null || _a === void 0 ? void 0 : _a.call(props, result.value.y, y.isAnimating);
47
52
  }
48
53
  }));
49
54
  (0, _react2.useDrag)(state => {
@@ -35,6 +35,11 @@
35
35
  margin-top: 8px;
36
36
  }
37
37
 
38
+ .adm-form-horizontal .adm-list-item-content-prefix {
39
+ padding-top: 24px;
40
+ padding-bottom: 24px;
41
+ }
42
+
38
43
  .adm-form-item-label {
39
44
  color: #666666;
40
45
  }
@@ -1,5 +1,15 @@
1
1
  .adm-form .adm-list.adm-list {
2
2
  --padding-left: 40px;
3
+ --padding-right: 40px;
4
+ }
5
+
6
+ .adm-form-horizontal .adm-list.adm-list {
7
+ --prefix-width: 6em;
8
+ --align-items: stretch;
9
+ }
10
+
11
+ .adm-form-horizontal .adm-list.adm-list .adm-list-item-content-extra {
12
+ align-self: center;
3
13
  }
4
14
 
5
15
  .adm-form .adm-form-footer {
@@ -55,11 +55,7 @@ const Form = (0, _react.forwardRef)((p, ref) => {
55
55
  lists.push(_react.default.createElement(_list.default, {
56
56
  header: currentHeader,
57
57
  key: count,
58
- mode: mode,
59
- style: {
60
- '--prefix-width': '6em',
61
- '--align-items': 'stretch'
62
- }
58
+ mode: mode
63
59
  }, items));
64
60
  items = [];
65
61
  }
@@ -1,5 +1,15 @@
1
1
  .adm-form .adm-list.adm-list {
2
2
  --padding-left: 40px;
3
+ --padding-right: 40px;
4
+ }
5
+
6
+ .adm-form-horizontal .adm-list.adm-list {
7
+ --prefix-width: 6em;
8
+ --align-items: stretch;
9
+ }
10
+
11
+ .adm-form-horizontal .adm-list.adm-list .adm-list-item-content-extra {
12
+ align-self: center;
3
13
  }
4
14
 
5
15
  .adm-form .adm-form-footer {
@@ -43,6 +53,11 @@
43
53
  margin-top: 8px;
44
54
  }
45
55
 
56
+ .adm-form-horizontal .adm-list-item-content-prefix {
57
+ padding-top: 24px;
58
+ padding-bottom: 24px;
59
+ }
60
+
46
61
  .adm-form-item-label {
47
62
  color: #666666;
48
63
  }
@@ -11,5 +11,6 @@ export declare type ImageProps = {
11
11
  lazy?: boolean;
12
12
  onClick?: (event: React.MouseEvent<HTMLImageElement, Event>) => void;
13
13
  onError?: (event: React.SyntheticEvent<HTMLImageElement, Event>) => void;
14
+ onLoad?: (event: React.SyntheticEvent<HTMLImageElement, Event>) => void;
14
15
  } & NativeProps<'--width' | '--height'> & Pick<React.ImgHTMLAttributes<HTMLImageElement>, 'crossOrigin' | 'decoding' | 'loading' | 'referrerPolicy' | 'sizes' | 'srcSet' | 'useMap'>;
15
16
  export declare const Image: React.FC<ImageProps>;
@@ -61,8 +61,11 @@ const Image = (0, _stagedComponents.staged)(p => {
61
61
  src: src,
62
62
  alt: props.alt,
63
63
  onClick: props.onClick,
64
- onLoad: () => {
64
+ onLoad: e => {
65
+ var _a;
66
+
65
67
  setLoaded(true);
68
+ (_a = props.onLoad) === null || _a === void 0 ? void 0 : _a.call(props, e);
66
69
  },
67
70
  onError: e => {
68
71
  var _a;
@@ -1,18 +1,24 @@
1
- .adm-input-wrapper {
1
+ .adm-input {
2
2
  --font-size: 34px;
3
3
  --color: var(--adm-color-text);
4
4
  --placeholder-color: var(--adm-color-light);
5
- --disabled-color: var(--adm-color-weak);
6
5
  --text-align: left;
6
+ --background-color: transparent;
7
7
  display: flex;
8
8
  justify-content: flex-start;
9
9
  align-items: center;
10
10
  width: 100%;
11
11
  max-width: 100%;
12
12
  max-height: 100%;
13
+ background-color: var(--background-color);
13
14
  }
14
15
 
15
- .adm-input {
16
+ .adm-input-disabled {
17
+ opacity: 0.4;
18
+ cursor: not-allowed;
19
+ }
20
+
21
+ .adm-input-element {
16
22
  flex: auto;
17
23
  display: inline-block;
18
24
  box-sizing: border-box;
@@ -32,65 +38,62 @@
32
38
  text-align: var(--text-align);
33
39
  }
34
40
 
35
- .adm-input::placeholder {
41
+ .adm-input-element::placeholder {
36
42
  color: var(--placeholder-color);
37
43
  font-family: inherit;
38
44
  }
39
45
 
40
- .adm-input:-webkit-autofill {
46
+ .adm-input-element:-webkit-autofill {
41
47
  background-color: transparent;
42
48
  }
43
49
 
44
- .adm-input:disabled {
45
- color: var(--disabled-color);
46
- cursor: not-allowed;
47
- opacity: 1;
48
- -webkit-text-fill-color: var(--disabled-color);
49
- }
50
-
51
- .adm-input:read-only {
50
+ .adm-input-element:read-only {
52
51
  cursor: default;
53
52
  }
54
53
 
55
- .adm-input:invalid {
54
+ .adm-input-element:invalid {
56
55
  box-shadow: none;
57
56
  }
58
57
 
59
- .adm-input::-ms-clear {
58
+ .adm-input-element::-ms-clear {
60
59
  display: none;
61
60
  }
62
61
 
63
- .adm-input::-webkit-search-cancel-button {
62
+ .adm-input-element::-webkit-search-cancel-button {
64
63
  display: none;
65
64
  }
66
65
 
67
- .adm-input::-webkit-search-decoration {
66
+ .adm-input-element::-webkit-search-decoration {
68
67
  display: none;
69
68
  }
70
69
 
71
- .adm-input[type='date'],
72
- .adm-input[type='time'],
73
- .adm-input[type='datetime-local'] {
70
+ .adm-input-element[type='date'],
71
+ .adm-input-element[type='time'],
72
+ .adm-input-element[type='datetime-local'] {
74
73
  min-height: 1.5em;
75
74
  }
76
75
 
77
- .adm-input[type='search'] {
76
+ .adm-input-element[type='search'] {
78
77
  -webkit-appearance: none;
79
78
  }
80
79
 
81
- .adm-input[readonly] {
80
+ .adm-input-element[readonly] {
82
81
  pointer-events: none;
83
82
  }
84
83
 
85
84
  .adm-input-clear {
86
85
  flex: none;
87
86
  margin-left: 16px;
88
- color: var(--placeholder-color);
89
- padding: 6px;
87
+ color: var(--adm-color-light);
88
+ padding: 8px;
90
89
  cursor: pointer;
91
90
  }
92
91
 
92
+ .adm-input-clear:active {
93
+ color: var(--adm-color-weak);
94
+ }
95
+
93
96
  .adm-input-clear .antd-mobile-icon {
94
97
  display: block;
95
- font-size: 28px;
98
+ font-size: 30px;
96
99
  }
@@ -13,7 +13,7 @@ export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength
13
13
  id?: string;
14
14
  onEnterPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
15
15
  enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
16
- } & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--disabled-color' | '--text-align'>;
16
+ } & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--text-align'>;
17
17
  export declare type InputRef = {
18
18
  clear: () => void;
19
19
  focus: () => void;
@@ -31,5 +31,5 @@ export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedH
31
31
  id?: string | undefined;
32
32
  onEnterPress?: ((e: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
33
33
  enterKeyHint?: "enter" | "search" | "done" | "go" | "next" | "previous" | "send" | undefined;
34
- } & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--disabled-color" | "--text-align"> & React.RefAttributes<InputRef>>;
34
+ } & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--text-align"> & React.RefAttributes<InputRef>>;
35
35
  export {};
@@ -15,6 +15,10 @@ var _nativeProps = require("../../utils/native-props");
15
15
 
16
16
  var _withDefaultProps = require("../../utils/with-default-props");
17
17
 
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+
18
22
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
23
 
20
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -66,10 +70,10 @@ const Input = (0, _react.forwardRef)((p, ref) => {
66
70
  };
67
71
  }, [props.enterKeyHint]);
68
72
  return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
69
- className: `${classPrefix}-wrapper`
73
+ className: (0, _classnames.default)(`${classPrefix}`, props.disabled && `${classPrefix}-disabled`)
70
74
  }, _react.default.createElement("input", {
71
75
  ref: nativeInputRef,
72
- className: classPrefix,
76
+ className: `${classPrefix}-element`,
73
77
  value: value,
74
78
  onChange: e => {
75
79
  setValue(e.target.value);
@@ -102,7 +106,7 @@ const Input = (0, _react.forwardRef)((p, ref) => {
102
106
  autoCorrect: props.autoCorrect,
103
107
  onKeyDown: handleKeydown,
104
108
  onKeyUp: props.onKeyUp
105
- }), props.clearable && !!value && hasFocus && _react.default.createElement("div", {
109
+ }), props.clearable && !!value && _react.default.createElement("div", {
106
110
  className: `${classPrefix}-clear`,
107
111
  onMouseDown: e => {
108
112
  e.preventDefault();
@@ -1,4 +1,5 @@
1
1
  .adm-jumbo-tabs {
2
+ --gap: 16px;
2
3
  position: relative;
3
4
  }
4
5
 
@@ -14,6 +15,7 @@
14
15
  align-items: center;
15
16
  position: relative;
16
17
  overflow-x: scroll;
18
+ padding: 0 var(--gap);
17
19
  scrollbar-width: none;
18
20
  }
19
21
 
@@ -23,7 +25,7 @@
23
25
 
24
26
  .adm-jumbo-tabs-tab-wrapper {
25
27
  flex: auto;
26
- padding: 0 24px;
28
+ padding: 0 calc(var(--gap) / 2);
27
29
  text-align: center;
28
30
  }
29
31
 
@@ -42,6 +44,7 @@
42
44
 
43
45
  .adm-jumbo-tabs-tab-title {
44
46
  line-height: 48px;
47
+ padding: 0 8px;
45
48
  }
46
49
 
47
50
  .adm-jumbo-tabs-tab-description {
@@ -28,7 +28,7 @@ const ListItem = props => {
28
28
  }, props.prefix && _react.default.createElement("div", {
29
29
  className: `${classPrefix}-content-prefix`
30
30
  }, props.prefix), _react.default.createElement("div", {
31
- className: (0, _classnames.default)(`${classPrefix}-content-main`, (props.title || props.description) && `${classPrefix}-content-main-multi-row`)
31
+ className: `${classPrefix}-content-main`
32
32
  }, props.title && _react.default.createElement("div", {
33
33
  className: `${classPrefix}-title`
34
34
  }, props.title), props.children, props.description && _react.default.createElement("div", {
@@ -8,6 +8,7 @@
8
8
  --border-top: solid 2px var(--adm-border-color);
9
9
  --border-bottom: solid 2px var(--adm-border-color);
10
10
  --padding-left: 24px;
11
+ --padding-right: 24px;
11
12
  --font-size: 34px;
12
13
  }
13
14
 
@@ -15,6 +16,7 @@
15
16
  color: var(--adm-color-weak);
16
17
  font-size: var(--header-font-size);
17
18
  padding-left: var(--padding-left);
19
+ padding-right: var(--padding-right);
18
20
  margin: 32px 0 8px;
19
21
  }
20
22
 
@@ -57,8 +59,8 @@
57
59
  display: flex;
58
60
  align-items: var(--align-items);
59
61
  justify-content: flex-start;
60
- padding: 0 24px;
61
62
  border-top: var(--border-inner);
63
+ padding-right: var(--padding-right);
62
64
  }
63
65
 
64
66
  .adm-list-item-content-prefix {
@@ -69,10 +71,6 @@
69
71
 
70
72
  .adm-list-item-content-main {
71
73
  flex: auto;
72
- padding: 28px 0;
73
- }
74
-
75
- .adm-list-item-content-main.adm-list-item-content-main-multi-row {
76
74
  padding: 24px 0;
77
75
  }
78
76
 
@@ -3,5 +3,5 @@ import { NativeProps } from '../../utils/native-props';
3
3
  export declare type ListProps = {
4
4
  header?: ReactNode;
5
5
  mode?: 'default' | 'card';
6
- } & NativeProps<'--header-font-size' | '--prefix-width' | '--prefix-padding-right' | '--align-items' | '--active-background-color' | '--border-inner' | '--border-top' | '--border-bottom' | '--padding-left' | '--font-size'>;
6
+ } & NativeProps<'--header-font-size' | '--prefix-width' | '--prefix-padding-right' | '--align-items' | '--active-background-color' | '--border-inner' | '--border-top' | '--border-bottom' | '--padding-left' | '--padding-right' | '--font-size'>;
7
7
  export declare const List: FC<ListProps>;
@@ -21,10 +21,21 @@
21
21
 
22
22
  .adm-modal-main {
23
23
  width: 100%;
24
+ max-height: 70vh;
24
25
  font-size: 28px;
25
26
  background-color: white;
26
27
  border-radius: 16px;
27
28
  overflow: hidden;
29
+ display: flex;
30
+ flex-direction: column;
31
+ }
32
+
33
+ .adm-modal-main > * {
34
+ flex: none;
35
+ }
36
+
37
+ .adm-modal-main > .adm-modal-image-container {
38
+ flex: auto;
28
39
  }
29
40
 
30
41
  .adm-modal-main .adm-modal-body {
@@ -86,4 +97,8 @@
86
97
 
87
98
  .adm-modal-main .adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary):active {
88
99
  opacity: 0.7;
100
+ }
101
+
102
+ .adm-modal-image-container {
103
+ overflow-y: auto;
89
104
  }
@@ -100,11 +100,13 @@ const Modal = p => {
100
100
  style: Object.assign({}, style),
101
101
  onClick: e => e.stopPropagation(),
102
102
  className: `${classPrefix}-main`
103
- }, !!props.image && _react.default.createElement(_image.default, {
103
+ }, !!props.image && _react.default.createElement("div", {
104
+ className: `${classPrefix}-image-container`
105
+ }, _react.default.createElement(_image.default, {
104
106
  src: props.image,
105
107
  alt: 'modal header image',
106
108
  width: '100%'
107
- }), _react.default.createElement("div", {
109
+ })), _react.default.createElement("div", {
108
110
  style: props.bodyStyle,
109
111
  className: (0, _classnames.default)(`${classPrefix}-body`, props.bodyClassName)
110
112
  }, props.showCloseButton && _react.default.createElement("a", {
@@ -24,14 +24,14 @@
24
24
  .adm-nav-bar-back {
25
25
  display: flex;
26
26
  align-items: center;
27
- margin-right: 24px;
27
+ margin-right: 32px;
28
28
  padding: 12px 0;
29
29
  cursor: pointer;
30
30
  }
31
31
 
32
32
  .adm-nav-bar-back-arrow {
33
- font-size: 36px;
34
- margin-right: 12px;
33
+ font-size: 48px;
34
+ margin-right: 8px;
35
35
  }
36
36
 
37
37
  .adm-nav-bar-left {