antd-mobile 5.28.2 → 5.29.1

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 (266) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +429 -217
  2. package/2x/bundle/antd-mobile.cjs.js +9 -9
  3. package/2x/bundle/antd-mobile.es.development.js +429 -217
  4. package/2x/bundle/antd-mobile.es.js +4918 -4678
  5. package/2x/bundle/antd-mobile.umd.development.js +429 -217
  6. package/2x/bundle/antd-mobile.umd.js +9 -9
  7. package/2x/bundle/style.css +36 -33
  8. package/2x/cjs/components/action-sheet/action-sheet.css +1 -1
  9. package/2x/cjs/components/action-sheet/action-sheet.js +6 -2
  10. package/2x/cjs/components/avatar/avatar.d.ts +1 -1
  11. package/2x/cjs/components/avatar/avatar.js +2 -1
  12. package/2x/cjs/components/badge/badge.css +2 -2
  13. package/2x/cjs/components/button/button.css +2 -2
  14. package/2x/cjs/components/calendar/calendar.js +1 -1
  15. package/2x/cjs/components/capsule-tabs/capsule-tabs.css +2 -2
  16. package/2x/cjs/components/check-list/check-list-item.js +3 -1
  17. package/2x/cjs/components/check-list/check-list.d.ts +1 -0
  18. package/2x/cjs/components/check-list/check-list.js +2 -0
  19. package/2x/cjs/components/check-list/context.d.ts +1 -0
  20. package/2x/cjs/components/checkbox/checkbox.css +2 -2
  21. package/2x/cjs/components/ellipsis/ellipsis.js +1 -1
  22. package/2x/cjs/components/image/image.css +1 -1
  23. package/2x/cjs/components/index-bar/index-bar.css +4 -4
  24. package/2x/cjs/components/input/input.d.ts +1 -1
  25. package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +2 -2
  26. package/2x/cjs/components/notice-bar/notice-bar.css +1 -1
  27. package/2x/cjs/components/number-keyboard/number-keyboard.js +14 -8
  28. package/2x/cjs/components/popover/index.d.ts +1 -1
  29. package/2x/cjs/components/popover/popover.css +1 -1
  30. package/2x/cjs/components/popover/popover.d.ts +2 -2
  31. package/2x/cjs/components/popover/popover.js +1 -1
  32. package/2x/cjs/components/popup/popup.js +13 -11
  33. package/2x/cjs/components/radio/radio.css +2 -2
  34. package/2x/cjs/components/search-bar/search-bar.css +1 -1
  35. package/2x/cjs/components/selector/selector.css +1 -1
  36. package/2x/cjs/components/selector/selector.js +10 -2
  37. package/2x/cjs/components/side-bar/side-bar.css +1 -1
  38. package/2x/cjs/components/slider/slider.css +3 -3
  39. package/2x/cjs/components/stepper/stepper.css +2 -2
  40. package/2x/cjs/components/swipe-action/swipe-action.css +1 -1
  41. package/2x/cjs/components/switch/switch.css +2 -2
  42. package/2x/cjs/components/tabs/tabs.js +5 -2
  43. package/2x/cjs/components/text-area/text-area.d.ts +1 -1
  44. package/2x/cjs/components/text-area/text-area.js +1 -0
  45. package/2x/cjs/components/virtual-input/virtual-input.js +11 -2
  46. package/2x/cjs/global/global.css +5 -2
  47. package/2x/cjs/global/theme-default.css +5 -2
  48. package/2x/cjs/locales/base.d.ts +3 -0
  49. package/2x/cjs/locales/base.js +3 -0
  50. package/2x/cjs/locales/da-DK.d.ts +134 -0
  51. package/2x/cjs/locales/da-DK.js +132 -0
  52. package/2x/cjs/locales/en-US.d.ts +3 -0
  53. package/2x/cjs/locales/es-ES.d.ts +3 -0
  54. package/2x/cjs/locales/fa-IR.d.ts +3 -0
  55. package/2x/cjs/locales/fr-FR.d.ts +3 -0
  56. package/2x/cjs/locales/id-ID.d.ts +3 -0
  57. package/2x/cjs/locales/it-IT.d.ts +134 -0
  58. package/2x/cjs/locales/it-IT.js +144 -0
  59. package/2x/cjs/locales/ja-JP.d.ts +3 -0
  60. package/2x/cjs/locales/kk-KZ.d.ts +3 -0
  61. package/2x/cjs/locales/ko-KR.d.ts +3 -0
  62. package/2x/cjs/locales/nb-NO.d.ts +134 -0
  63. package/2x/cjs/locales/nb-NO.js +144 -0
  64. package/2x/cjs/locales/nl-NL.d.ts +134 -0
  65. package/2x/cjs/locales/nl-NL.js +144 -0
  66. package/2x/cjs/locales/zh-CN.d.ts +3 -0
  67. package/2x/cjs/locales/zh-CN.js +3 -0
  68. package/2x/cjs/locales/zh-HK.d.ts +3 -0
  69. package/2x/cjs/locales/zh-TW.d.ts +3 -0
  70. package/2x/es/components/action-sheet/action-sheet.css +1 -1
  71. package/2x/es/components/action-sheet/action-sheet.js +6 -2
  72. package/2x/es/components/avatar/avatar.d.ts +1 -1
  73. package/2x/es/components/avatar/avatar.js +2 -1
  74. package/2x/es/components/badge/badge.css +2 -2
  75. package/2x/es/components/button/button.css +2 -2
  76. package/2x/es/components/calendar/calendar.js +1 -1
  77. package/2x/es/components/capsule-tabs/capsule-tabs.css +2 -2
  78. package/2x/es/components/check-list/check-list-item.js +3 -1
  79. package/2x/es/components/check-list/check-list.d.ts +1 -0
  80. package/2x/es/components/check-list/check-list.js +2 -0
  81. package/2x/es/components/check-list/context.d.ts +1 -0
  82. package/2x/es/components/checkbox/checkbox.css +2 -2
  83. package/2x/es/components/ellipsis/ellipsis.js +1 -1
  84. package/2x/es/components/image/image.css +1 -1
  85. package/2x/es/components/index-bar/index-bar.css +4 -4
  86. package/2x/es/components/input/input.d.ts +1 -1
  87. package/2x/es/components/jumbo-tabs/jumbo-tabs.css +2 -2
  88. package/2x/es/components/notice-bar/notice-bar.css +1 -1
  89. package/2x/es/components/number-keyboard/number-keyboard.js +14 -8
  90. package/2x/es/components/popover/index.d.ts +1 -1
  91. package/2x/es/components/popover/popover.css +1 -1
  92. package/2x/es/components/popover/popover.d.ts +2 -2
  93. package/2x/es/components/popover/popover.js +1 -1
  94. package/2x/es/components/popup/popup.js +13 -11
  95. package/2x/es/components/radio/radio.css +2 -2
  96. package/2x/es/components/search-bar/search-bar.css +1 -1
  97. package/2x/es/components/selector/selector.css +1 -1
  98. package/2x/es/components/selector/selector.js +10 -2
  99. package/2x/es/components/side-bar/side-bar.css +1 -1
  100. package/2x/es/components/slider/slider.css +3 -3
  101. package/2x/es/components/stepper/stepper.css +2 -2
  102. package/2x/es/components/swipe-action/swipe-action.css +1 -1
  103. package/2x/es/components/switch/switch.css +2 -2
  104. package/2x/es/components/tabs/tabs.js +5 -2
  105. package/2x/es/components/text-area/text-area.d.ts +1 -1
  106. package/2x/es/components/text-area/text-area.js +1 -0
  107. package/2x/es/components/virtual-input/virtual-input.js +11 -2
  108. package/2x/es/global/global.css +5 -2
  109. package/2x/es/global/theme-default.css +5 -2
  110. package/2x/es/locales/base.d.ts +3 -0
  111. package/2x/es/locales/base.js +3 -0
  112. package/2x/es/locales/da-DK.d.ts +134 -0
  113. package/2x/es/locales/da-DK.js +125 -0
  114. package/2x/es/locales/en-US.d.ts +3 -0
  115. package/2x/es/locales/es-ES.d.ts +3 -0
  116. package/2x/es/locales/fa-IR.d.ts +3 -0
  117. package/2x/es/locales/fr-FR.d.ts +3 -0
  118. package/2x/es/locales/id-ID.d.ts +3 -0
  119. package/2x/es/locales/it-IT.d.ts +134 -0
  120. package/2x/es/locales/it-IT.js +137 -0
  121. package/2x/es/locales/ja-JP.d.ts +3 -0
  122. package/2x/es/locales/kk-KZ.d.ts +3 -0
  123. package/2x/es/locales/ko-KR.d.ts +3 -0
  124. package/2x/es/locales/nb-NO.d.ts +134 -0
  125. package/2x/es/locales/nb-NO.js +137 -0
  126. package/2x/es/locales/nl-NL.d.ts +134 -0
  127. package/2x/es/locales/nl-NL.js +137 -0
  128. package/2x/es/locales/zh-CN.d.ts +3 -0
  129. package/2x/es/locales/zh-CN.js +3 -0
  130. package/2x/es/locales/zh-HK.d.ts +3 -0
  131. package/2x/es/locales/zh-TW.d.ts +3 -0
  132. package/2x/package.json +1 -1
  133. package/bundle/antd-mobile.cjs.development.js +429 -217
  134. package/bundle/antd-mobile.cjs.js +9 -9
  135. package/bundle/antd-mobile.compatible.umd.js +1 -1
  136. package/bundle/antd-mobile.es.development.js +429 -217
  137. package/bundle/antd-mobile.es.js +4918 -4678
  138. package/bundle/antd-mobile.umd.development.js +429 -217
  139. package/bundle/antd-mobile.umd.js +9 -9
  140. package/bundle/style.css +1 -1
  141. package/cjs/components/action-sheet/action-sheet.css +1 -1
  142. package/cjs/components/action-sheet/action-sheet.js +6 -2
  143. package/cjs/components/avatar/avatar.d.ts +1 -1
  144. package/cjs/components/avatar/avatar.js +2 -1
  145. package/cjs/components/badge/badge.css +2 -2
  146. package/cjs/components/button/button.css +2 -2
  147. package/cjs/components/calendar/calendar.js +1 -1
  148. package/cjs/components/capsule-tabs/capsule-tabs.css +2 -2
  149. package/cjs/components/check-list/check-list-item.js +3 -1
  150. package/cjs/components/check-list/check-list.d.ts +1 -0
  151. package/cjs/components/check-list/check-list.js +2 -0
  152. package/cjs/components/check-list/context.d.ts +1 -0
  153. package/cjs/components/checkbox/checkbox.css +2 -2
  154. package/cjs/components/ellipsis/ellipsis.js +1 -1
  155. package/cjs/components/image/image.css +1 -1
  156. package/cjs/components/index-bar/index-bar.css +4 -4
  157. package/cjs/components/input/input.d.ts +1 -1
  158. package/cjs/components/jumbo-tabs/jumbo-tabs.css +2 -2
  159. package/cjs/components/notice-bar/notice-bar.css +1 -1
  160. package/cjs/components/number-keyboard/number-keyboard.js +14 -8
  161. package/cjs/components/popover/index.d.ts +1 -1
  162. package/cjs/components/popover/popover.css +1 -1
  163. package/cjs/components/popover/popover.d.ts +2 -2
  164. package/cjs/components/popover/popover.js +1 -1
  165. package/cjs/components/popup/popup.js +13 -11
  166. package/cjs/components/radio/radio.css +2 -2
  167. package/cjs/components/search-bar/search-bar.css +1 -1
  168. package/cjs/components/selector/selector.css +1 -1
  169. package/cjs/components/selector/selector.js +10 -2
  170. package/cjs/components/side-bar/side-bar.css +1 -1
  171. package/cjs/components/slider/slider.css +3 -3
  172. package/cjs/components/stepper/stepper.css +2 -2
  173. package/cjs/components/swipe-action/swipe-action.css +1 -1
  174. package/cjs/components/switch/switch.css +2 -2
  175. package/cjs/components/tabs/tabs.js +5 -2
  176. package/cjs/components/text-area/text-area.d.ts +1 -1
  177. package/cjs/components/text-area/text-area.js +1 -0
  178. package/cjs/components/virtual-input/virtual-input.js +11 -2
  179. package/cjs/global/global.css +5 -2
  180. package/cjs/global/theme-default.css +5 -2
  181. package/cjs/locales/base.d.ts +3 -0
  182. package/cjs/locales/base.js +3 -0
  183. package/cjs/locales/da-DK.d.ts +134 -0
  184. package/cjs/locales/da-DK.js +132 -0
  185. package/cjs/locales/en-US.d.ts +3 -0
  186. package/cjs/locales/es-ES.d.ts +3 -0
  187. package/cjs/locales/fa-IR.d.ts +3 -0
  188. package/cjs/locales/fr-FR.d.ts +3 -0
  189. package/cjs/locales/id-ID.d.ts +3 -0
  190. package/cjs/locales/it-IT.d.ts +134 -0
  191. package/cjs/locales/it-IT.js +144 -0
  192. package/cjs/locales/ja-JP.d.ts +3 -0
  193. package/cjs/locales/kk-KZ.d.ts +3 -0
  194. package/cjs/locales/ko-KR.d.ts +3 -0
  195. package/cjs/locales/nb-NO.d.ts +134 -0
  196. package/cjs/locales/nb-NO.js +144 -0
  197. package/cjs/locales/nl-NL.d.ts +134 -0
  198. package/cjs/locales/nl-NL.js +144 -0
  199. package/cjs/locales/zh-CN.d.ts +3 -0
  200. package/cjs/locales/zh-CN.js +3 -0
  201. package/cjs/locales/zh-HK.d.ts +3 -0
  202. package/cjs/locales/zh-TW.d.ts +3 -0
  203. package/es/components/action-sheet/action-sheet.css +1 -1
  204. package/es/components/action-sheet/action-sheet.js +6 -2
  205. package/es/components/avatar/avatar.d.ts +1 -1
  206. package/es/components/avatar/avatar.js +2 -1
  207. package/es/components/badge/badge.css +2 -2
  208. package/es/components/button/button.css +2 -2
  209. package/es/components/calendar/calendar.js +1 -1
  210. package/es/components/capsule-tabs/capsule-tabs.css +2 -2
  211. package/es/components/check-list/check-list-item.js +3 -1
  212. package/es/components/check-list/check-list.d.ts +1 -0
  213. package/es/components/check-list/check-list.js +2 -0
  214. package/es/components/check-list/context.d.ts +1 -0
  215. package/es/components/checkbox/checkbox.css +2 -2
  216. package/es/components/ellipsis/ellipsis.js +1 -1
  217. package/es/components/image/image.css +1 -1
  218. package/es/components/index-bar/index-bar.css +4 -4
  219. package/es/components/input/input.d.ts +1 -1
  220. package/es/components/jumbo-tabs/jumbo-tabs.css +2 -2
  221. package/es/components/notice-bar/notice-bar.css +1 -1
  222. package/es/components/number-keyboard/number-keyboard.js +14 -8
  223. package/es/components/popover/index.d.ts +1 -1
  224. package/es/components/popover/popover.css +1 -1
  225. package/es/components/popover/popover.d.ts +2 -2
  226. package/es/components/popover/popover.js +1 -1
  227. package/es/components/popup/popup.js +13 -11
  228. package/es/components/radio/radio.css +2 -2
  229. package/es/components/search-bar/search-bar.css +1 -1
  230. package/es/components/selector/selector.css +1 -1
  231. package/es/components/selector/selector.js +10 -2
  232. package/es/components/side-bar/side-bar.css +1 -1
  233. package/es/components/slider/slider.css +3 -3
  234. package/es/components/stepper/stepper.css +2 -2
  235. package/es/components/swipe-action/swipe-action.css +1 -1
  236. package/es/components/switch/switch.css +2 -2
  237. package/es/components/tabs/tabs.js +5 -2
  238. package/es/components/text-area/text-area.d.ts +1 -1
  239. package/es/components/text-area/text-area.js +1 -0
  240. package/es/components/virtual-input/virtual-input.js +11 -2
  241. package/es/global/global.css +5 -2
  242. package/es/global/theme-default.css +5 -2
  243. package/es/locales/base.d.ts +3 -0
  244. package/es/locales/base.js +3 -0
  245. package/es/locales/da-DK.d.ts +134 -0
  246. package/es/locales/da-DK.js +125 -0
  247. package/es/locales/en-US.d.ts +3 -0
  248. package/es/locales/es-ES.d.ts +3 -0
  249. package/es/locales/fa-IR.d.ts +3 -0
  250. package/es/locales/fr-FR.d.ts +3 -0
  251. package/es/locales/id-ID.d.ts +3 -0
  252. package/es/locales/it-IT.d.ts +134 -0
  253. package/es/locales/it-IT.js +137 -0
  254. package/es/locales/ja-JP.d.ts +3 -0
  255. package/es/locales/kk-KZ.d.ts +3 -0
  256. package/es/locales/ko-KR.d.ts +3 -0
  257. package/es/locales/nb-NO.d.ts +134 -0
  258. package/es/locales/nb-NO.js +137 -0
  259. package/es/locales/nl-NL.d.ts +134 -0
  260. package/es/locales/nl-NL.js +137 -0
  261. package/es/locales/zh-CN.d.ts +3 -0
  262. package/es/locales/zh-CN.js +3 -0
  263. package/es/locales/zh-HK.d.ts +3 -0
  264. package/es/locales/zh-TW.d.ts +3 -0
  265. package/package.json +1 -1
  266. package/umd/antd-mobile.js +1 -1
@@ -8,6 +8,18 @@ if (canUseDom$2) {
8
8
  document.addEventListener("touchstart", () => {
9
9
  }, true);
10
10
  }
11
+ var __assign = function() {
12
+ __assign = Object.assign || function __assign2(t) {
13
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
14
+ s = arguments[i];
15
+ for (var p in s)
16
+ if (Object.prototype.hasOwnProperty.call(s, p))
17
+ t[p] = s[p];
18
+ }
19
+ return t;
20
+ };
21
+ return __assign.apply(this, arguments);
22
+ };
11
23
  function __rest(s, e) {
12
24
  var t = {};
13
25
  for (var p in s)
@@ -47,6 +59,128 @@ function __awaiter(thisArg, _arguments, P, generator) {
47
59
  step((generator = generator.apply(thisArg, _arguments || [])).next());
48
60
  });
49
61
  }
62
+ function __generator(thisArg, body) {
63
+ var _ = { label: 0, sent: function() {
64
+ if (t[0] & 1)
65
+ throw t[1];
66
+ return t[1];
67
+ }, trys: [], ops: [] }, f, y, t, g;
68
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
69
+ return this;
70
+ }), g;
71
+ function verb(n) {
72
+ return function(v) {
73
+ return step([n, v]);
74
+ };
75
+ }
76
+ function step(op) {
77
+ if (f)
78
+ throw new TypeError("Generator is already executing.");
79
+ while (g && (g = 0, op[0] && (_ = 0)), _)
80
+ try {
81
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
82
+ return t;
83
+ if (y = 0, t)
84
+ op = [op[0] & 2, t.value];
85
+ switch (op[0]) {
86
+ case 0:
87
+ case 1:
88
+ t = op;
89
+ break;
90
+ case 4:
91
+ _.label++;
92
+ return { value: op[1], done: false };
93
+ case 5:
94
+ _.label++;
95
+ y = op[1];
96
+ op = [0];
97
+ continue;
98
+ case 7:
99
+ op = _.ops.pop();
100
+ _.trys.pop();
101
+ continue;
102
+ default:
103
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
104
+ _ = 0;
105
+ continue;
106
+ }
107
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
108
+ _.label = op[1];
109
+ break;
110
+ }
111
+ if (op[0] === 6 && _.label < t[1]) {
112
+ _.label = t[1];
113
+ t = op;
114
+ break;
115
+ }
116
+ if (t && _.label < t[2]) {
117
+ _.label = t[2];
118
+ _.ops.push(op);
119
+ break;
120
+ }
121
+ if (t[2])
122
+ _.ops.pop();
123
+ _.trys.pop();
124
+ continue;
125
+ }
126
+ op = body.call(thisArg, _);
127
+ } catch (e) {
128
+ op = [6, e];
129
+ y = 0;
130
+ } finally {
131
+ f = t = 0;
132
+ }
133
+ if (op[0] & 5)
134
+ throw op[1];
135
+ return { value: op[0] ? op[1] : void 0, done: true };
136
+ }
137
+ }
138
+ function __values(o) {
139
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
140
+ if (m)
141
+ return m.call(o);
142
+ if (o && typeof o.length === "number")
143
+ return {
144
+ next: function() {
145
+ if (o && i >= o.length)
146
+ o = void 0;
147
+ return { value: o && o[i++], done: !o };
148
+ }
149
+ };
150
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
151
+ }
152
+ function __read(o, n) {
153
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
154
+ if (!m)
155
+ return o;
156
+ var i = m.call(o), r, ar = [], e;
157
+ try {
158
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
159
+ ar.push(r.value);
160
+ } catch (error) {
161
+ e = { error };
162
+ } finally {
163
+ try {
164
+ if (r && !r.done && (m = i["return"]))
165
+ m.call(i);
166
+ } finally {
167
+ if (e)
168
+ throw e.error;
169
+ }
170
+ }
171
+ return ar;
172
+ }
173
+ function __spreadArray(to2, from, pack) {
174
+ if (pack || arguments.length === 2)
175
+ for (var i = 0, l = from.length, ar; i < l; i++) {
176
+ if (ar || !(i in from)) {
177
+ if (!ar)
178
+ ar = Array.prototype.slice.call(from, 0, i);
179
+ ar[i] = from[i];
180
+ }
181
+ }
182
+ return to2.concat(ar || Array.prototype.slice.call(from));
183
+ }
50
184
  function mergeLocale(base2, patch) {
51
185
  function merge2(a, b) {
52
186
  if (typeof a !== "object" || typeof b !== "object" || Array.isArray(a) || Array.isArray(b)) {
@@ -191,6 +325,9 @@ const base = {
191
325
  },
192
326
  Switch: {
193
327
  name: "Switch"
328
+ },
329
+ Selector: {
330
+ name: "Selector"
194
331
  }
195
332
  };
196
333
  const typeTemplate$1 = "${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";
@@ -322,6 +459,9 @@ const zhCN = mergeLocale(base, {
322
459
  },
323
460
  Switch: {
324
461
  name: "\u5F00\u5173"
462
+ },
463
+ Selector: {
464
+ name: "\u9009\u62E9\u7EC4"
325
465
  }
326
466
  });
327
467
  const zhCN$1 = zhCN;
@@ -884,36 +1024,48 @@ function mergeProps(...items) {
884
1024
  return ret;
885
1025
  }
886
1026
  const popup = "";
887
- const createUpdateEffect = (hook) => (effect, deps) => {
888
- const isMounted = useRef(false);
889
- hook(() => {
890
- return () => {
891
- isMounted.current = false;
892
- };
893
- }, []);
894
- hook(() => {
895
- if (!isMounted.current) {
896
- isMounted.current = true;
897
- } else {
898
- return effect();
899
- }
900
- }, deps);
1027
+ var createUpdateEffect = function(hook) {
1028
+ return function(effect, deps) {
1029
+ var isMounted = useRef(false);
1030
+ hook(function() {
1031
+ return function() {
1032
+ isMounted.current = false;
1033
+ };
1034
+ }, []);
1035
+ hook(function() {
1036
+ if (!isMounted.current) {
1037
+ isMounted.current = true;
1038
+ } else {
1039
+ return effect();
1040
+ }
1041
+ }, deps);
1042
+ };
901
1043
  };
902
- const isFunction$1 = (value) => typeof value === "function";
903
- const isNumber = (value) => typeof value === "number";
904
- const isDev$1 = true;
1044
+ var isFunction$1 = function(value) {
1045
+ return typeof value === "function";
1046
+ };
1047
+ var isNumber = function(value) {
1048
+ return typeof value === "number";
1049
+ };
1050
+ var isDev$1 = true;
905
1051
  const isDev$2 = isDev$1;
906
1052
  function useMemoizedFn(fn) {
907
1053
  if (isDev$2) {
908
1054
  if (!isFunction$1(fn)) {
909
- console.error(`useMemoizedFn expected parameter is a function, got ${typeof fn}`);
1055
+ console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof fn));
910
1056
  }
911
1057
  }
912
- const fnRef = useRef(fn);
913
- fnRef.current = useMemo(() => fn, [fn]);
914
- const memoizedFn = useRef();
1058
+ var fnRef = useRef(fn);
1059
+ fnRef.current = useMemo(function() {
1060
+ return fn;
1061
+ }, [fn]);
1062
+ var memoizedFn = useRef();
915
1063
  if (!memoizedFn.current) {
916
- memoizedFn.current = function(...args) {
1064
+ memoizedFn.current = function() {
1065
+ var args = [];
1066
+ for (var _i = 0; _i < arguments.length; _i++) {
1067
+ args[_i] = arguments[_i];
1068
+ }
917
1069
  return fnRef.current.apply(this, args);
918
1070
  };
919
1071
  }
@@ -923,26 +1075,28 @@ const useUpdateEffect = createUpdateEffect(useEffect);
923
1075
  function depsAreSame(oldDeps, deps) {
924
1076
  if (oldDeps === deps)
925
1077
  return true;
926
- for (let i = 0; i < oldDeps.length; i++) {
1078
+ for (var i = 0; i < oldDeps.length; i++) {
927
1079
  if (!Object.is(oldDeps[i], deps[i]))
928
1080
  return false;
929
1081
  }
930
1082
  return true;
931
1083
  }
932
1084
  function useLatest(value) {
933
- const ref = useRef(value);
1085
+ var ref = useRef(value);
934
1086
  ref.current = value;
935
1087
  return ref;
936
1088
  }
937
- const useUnmount = (fn) => {
1089
+ var useUnmount = function(fn) {
938
1090
  if (isDev$2) {
939
1091
  if (!isFunction$1(fn)) {
940
- console.error(`useUnmount expected parameter is a function, got ${typeof fn}`);
1092
+ console.error("useUnmount expected parameter is a function, got ".concat(typeof fn));
941
1093
  }
942
1094
  }
943
- const fnRef = useLatest(fn);
944
- useEffect(() => () => {
945
- fnRef.current();
1095
+ var fnRef = useLatest(fn);
1096
+ useEffect(function() {
1097
+ return function() {
1098
+ fnRef.current();
1099
+ };
946
1100
  }, []);
947
1101
  };
948
1102
  const useUnmount$1 = useUnmount;
@@ -1081,7 +1235,7 @@ function debounce$1(func, wait, options) {
1081
1235
  return debounced;
1082
1236
  }
1083
1237
  var debounce_1 = debounce$1;
1084
- const isBrowser$2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
1238
+ var isBrowser$2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
1085
1239
  const isBrowser$3 = isBrowser$2;
1086
1240
  var debounce = debounce_1, isObject$5 = isObject_1;
1087
1241
  var FUNC_ERROR_TEXT$1 = "Expected a function";
@@ -1101,20 +1255,22 @@ function throttle$1(func, wait, options) {
1101
1255
  });
1102
1256
  }
1103
1257
  var throttle_1 = throttle$1;
1104
- const useMount = (fn) => {
1258
+ var useMount = function(fn) {
1105
1259
  if (isDev$2) {
1106
1260
  if (!isFunction$1(fn)) {
1107
- console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof fn}".`);
1261
+ console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof fn, '".'));
1108
1262
  }
1109
1263
  }
1110
- useEffect(() => {
1264
+ useEffect(function() {
1111
1265
  fn === null || fn === void 0 ? void 0 : fn();
1112
1266
  }, []);
1113
1267
  };
1114
1268
  const useMount$1 = useMount;
1115
- const useUpdate = () => {
1116
- const [, setState] = useState$1({});
1117
- return useCallback(() => setState({}), []);
1269
+ var useUpdate = function() {
1270
+ var _a = __read(useState$1({}), 2), setState = _a[1];
1271
+ return useCallback(function() {
1272
+ return setState({});
1273
+ }, []);
1118
1274
  };
1119
1275
  const useUpdate$1 = useUpdate;
1120
1276
  function getTargetElement(target, defaultElement) {
@@ -1124,7 +1280,7 @@ function getTargetElement(target, defaultElement) {
1124
1280
  if (!target) {
1125
1281
  return defaultElement;
1126
1282
  }
1127
- let targetElement;
1283
+ var targetElement;
1128
1284
  if (isFunction$1(target)) {
1129
1285
  targetElement = target();
1130
1286
  } else if ("current" in target) {
@@ -1134,42 +1290,44 @@ function getTargetElement(target, defaultElement) {
1134
1290
  }
1135
1291
  return targetElement;
1136
1292
  }
1137
- const checkIfAllInShadow = (targets) => {
1138
- return targets.every((item) => {
1139
- const targetElement = getTargetElement(item);
1293
+ var checkIfAllInShadow = function(targets) {
1294
+ return targets.every(function(item) {
1295
+ var targetElement = getTargetElement(item);
1140
1296
  if (!targetElement)
1141
1297
  return false;
1142
1298
  if (targetElement.getRootNode() instanceof ShadowRoot)
1143
1299
  return true;
1144
1300
  });
1145
1301
  };
1146
- const getShadow = (node) => {
1302
+ var getShadow = function(node) {
1147
1303
  if (!node) {
1148
1304
  return document;
1149
1305
  }
1150
1306
  return node.getRootNode();
1151
1307
  };
1152
- const getDocumentOrShadow = (target) => {
1308
+ var getDocumentOrShadow = function(target) {
1153
1309
  if (!target || !document.getRootNode) {
1154
1310
  return document;
1155
1311
  }
1156
- const targets = Array.isArray(target) ? target : [target];
1312
+ var targets = Array.isArray(target) ? target : [target];
1157
1313
  if (checkIfAllInShadow(targets)) {
1158
1314
  return getShadow(getTargetElement(targets[0]));
1159
1315
  }
1160
1316
  return document;
1161
1317
  };
1162
1318
  const getDocumentOrShadow$1 = getDocumentOrShadow;
1163
- const createEffectWithTarget = (useEffectType) => {
1164
- const useEffectWithTarget2 = (effect, deps, target) => {
1165
- const hasInitRef = useRef(false);
1166
- const lastElementRef = useRef([]);
1167
- const lastDepsRef = useRef([]);
1168
- const unLoadRef = useRef();
1169
- useEffectType(() => {
1319
+ var createEffectWithTarget = function(useEffectType) {
1320
+ var useEffectWithTarget2 = function(effect, deps, target) {
1321
+ var hasInitRef = useRef(false);
1322
+ var lastElementRef = useRef([]);
1323
+ var lastDepsRef = useRef([]);
1324
+ var unLoadRef = useRef();
1325
+ useEffectType(function() {
1170
1326
  var _a;
1171
- const targets = Array.isArray(target) ? target : [target];
1172
- const els = targets.map((item) => getTargetElement(item));
1327
+ var targets = Array.isArray(target) ? target : [target];
1328
+ var els = targets.map(function(item) {
1329
+ return getTargetElement(item);
1330
+ });
1173
1331
  if (!hasInitRef.current) {
1174
1332
  hasInitRef.current = true;
1175
1333
  lastElementRef.current = els;
@@ -1184,7 +1342,7 @@ const createEffectWithTarget = (useEffectType) => {
1184
1342
  unLoadRef.current = effect();
1185
1343
  }
1186
1344
  });
1187
- useUnmount$1(() => {
1345
+ useUnmount$1(function() {
1188
1346
  var _a;
1189
1347
  (_a = unLoadRef.current) === null || _a === void 0 ? void 0 : _a.call(unLoadRef);
1190
1348
  hasInitRef.current = false;
@@ -1193,26 +1351,33 @@ const createEffectWithTarget = (useEffectType) => {
1193
1351
  return useEffectWithTarget2;
1194
1352
  };
1195
1353
  const createEffectWithTarget$1 = createEffectWithTarget;
1196
- const useEffectWithTarget$1 = createEffectWithTarget$1(useEffect);
1354
+ var useEffectWithTarget$1 = createEffectWithTarget$1(useEffect);
1197
1355
  const useEffectWithTarget$2 = useEffectWithTarget$1;
1198
- function useClickAway(onClickAway, target, eventName = "click") {
1199
- const onClickAwayRef = useLatest(onClickAway);
1200
- useEffectWithTarget$2(() => {
1201
- const handler = (event) => {
1202
- const targets = Array.isArray(target) ? target : [target];
1203
- if (targets.some((item) => {
1204
- const targetElement = getTargetElement(item);
1356
+ function useClickAway(onClickAway, target, eventName) {
1357
+ if (eventName === void 0) {
1358
+ eventName = "click";
1359
+ }
1360
+ var onClickAwayRef = useLatest(onClickAway);
1361
+ useEffectWithTarget$2(function() {
1362
+ var handler = function(event) {
1363
+ var targets = Array.isArray(target) ? target : [target];
1364
+ if (targets.some(function(item) {
1365
+ var targetElement = getTargetElement(item);
1205
1366
  return !targetElement || targetElement.contains(event.target);
1206
1367
  })) {
1207
1368
  return;
1208
1369
  }
1209
1370
  onClickAwayRef.current(event);
1210
1371
  };
1211
- const documentOrShadow = getDocumentOrShadow$1(target);
1212
- const eventNames = Array.isArray(eventName) ? eventName : [eventName];
1213
- eventNames.forEach((event) => documentOrShadow.addEventListener(event, handler));
1214
- return () => {
1215
- eventNames.forEach((event) => documentOrShadow.removeEventListener(event, handler));
1372
+ var documentOrShadow = getDocumentOrShadow$1(target);
1373
+ var eventNames = Array.isArray(eventName) ? eventName : [eventName];
1374
+ eventNames.forEach(function(event) {
1375
+ return documentOrShadow.addEventListener(event, handler);
1376
+ });
1377
+ return function() {
1378
+ eventNames.forEach(function(event) {
1379
+ return documentOrShadow.removeEventListener(event, handler);
1380
+ });
1216
1381
  };
1217
1382
  }, Array.isArray(eventName) ? eventName : [eventName], target);
1218
1383
  }
@@ -1429,15 +1594,21 @@ function useDebounceFn(fn, options) {
1429
1594
  var _a;
1430
1595
  if (isDev$2) {
1431
1596
  if (!isFunction$1(fn)) {
1432
- console.error(`useDebounceFn expected parameter is a function, got ${typeof fn}`);
1597
+ console.error("useDebounceFn expected parameter is a function, got ".concat(typeof fn));
1433
1598
  }
1434
1599
  }
1435
- const fnRef = useLatest(fn);
1436
- const wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
1437
- const debounced = useMemo(() => debounce_1((...args) => {
1438
- return fnRef.current(...args);
1439
- }, wait, options), []);
1440
- useUnmount$1(() => {
1600
+ var fnRef = useLatest(fn);
1601
+ var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
1602
+ var debounced = useMemo(function() {
1603
+ return debounce_1(function() {
1604
+ var args = [];
1605
+ for (var _i = 0; _i < arguments.length; _i++) {
1606
+ args[_i] = arguments[_i];
1607
+ }
1608
+ return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
1609
+ }, wait, options);
1610
+ }, []);
1611
+ useUnmount$1(function() {
1441
1612
  debounced.cancel();
1442
1613
  });
1443
1614
  return {
@@ -1447,13 +1618,11 @@ function useDebounceFn(fn, options) {
1447
1618
  };
1448
1619
  }
1449
1620
  function useDebounceEffect(effect, deps, options) {
1450
- const [flag, setFlag] = useState$1({});
1451
- const {
1452
- run
1453
- } = useDebounceFn(() => {
1621
+ var _a = __read(useState$1({}), 2), flag = _a[0], setFlag = _a[1];
1622
+ var run = useDebounceFn(function() {
1454
1623
  setFlag({});
1455
- }, options);
1456
- useEffect(() => {
1624
+ }, options).run;
1625
+ useEffect(function() {
1457
1626
  return run();
1458
1627
  }, deps);
1459
1628
  useUpdateEffect(effect, [flag]);
@@ -2575,65 +2744,100 @@ var isEqual_1 = isEqual$1;
2575
2744
  window.IntersectionObserverEntry = IntersectionObserverEntry;
2576
2745
  })();
2577
2746
  function useInViewport(target, options) {
2578
- const [state, setState] = useState$1();
2579
- const [ratio, setRatio] = useState$1();
2580
- useEffectWithTarget$2(() => {
2581
- const el = getTargetElement(target);
2747
+ var _a = __read(useState$1(), 2), state = _a[0], setState = _a[1];
2748
+ var _b = __read(useState$1(), 2), ratio = _b[0], setRatio = _b[1];
2749
+ useEffectWithTarget$2(function() {
2750
+ var el = getTargetElement(target);
2582
2751
  if (!el) {
2583
2752
  return;
2584
2753
  }
2585
- const observer = new IntersectionObserver((entries) => {
2586
- for (const entry of entries) {
2587
- setRatio(entry.intersectionRatio);
2588
- setState(entry.isIntersecting);
2754
+ var observer = new IntersectionObserver(function(entries) {
2755
+ var e_1, _a2;
2756
+ try {
2757
+ for (var entries_1 = __values(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {
2758
+ var entry = entries_1_1.value;
2759
+ setRatio(entry.intersectionRatio);
2760
+ setState(entry.isIntersecting);
2761
+ }
2762
+ } catch (e_1_1) {
2763
+ e_1 = {
2764
+ error: e_1_1
2765
+ };
2766
+ } finally {
2767
+ try {
2768
+ if (entries_1_1 && !entries_1_1.done && (_a2 = entries_1.return))
2769
+ _a2.call(entries_1);
2770
+ } finally {
2771
+ if (e_1)
2772
+ throw e_1.error;
2773
+ }
2589
2774
  }
2590
- }, Object.assign(Object.assign({}, options), {
2775
+ }, __assign(__assign({}, options), {
2591
2776
  root: getTargetElement(options === null || options === void 0 ? void 0 : options.root)
2592
2777
  }));
2593
2778
  observer.observe(el);
2594
- return () => {
2779
+ return function() {
2595
2780
  observer.disconnect();
2596
2781
  };
2597
2782
  }, [options === null || options === void 0 ? void 0 : options.rootMargin, options === null || options === void 0 ? void 0 : options.threshold], target);
2598
2783
  return [state, ratio];
2599
2784
  }
2600
- const useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect$2 : useEffect;
2785
+ var useIsomorphicLayoutEffect$1 = isBrowser$3 ? useLayoutEffect$2 : useEffect;
2601
2786
  const useIsomorphicLayoutEffect$2 = useIsomorphicLayoutEffect$1;
2602
2787
  function useLockFn(fn) {
2603
- const lockRef = useRef(false);
2604
- return useCallback((...args) => __awaiter(this, void 0, void 0, function* () {
2605
- if (lockRef.current)
2606
- return;
2607
- lockRef.current = true;
2608
- try {
2609
- const ret = yield fn(...args);
2610
- lockRef.current = false;
2611
- return ret;
2612
- } catch (e) {
2613
- lockRef.current = false;
2614
- throw e;
2615
- }
2616
- }), [fn]);
2788
+ var _this = this;
2789
+ var lockRef = useRef(false);
2790
+ return useCallback(function() {
2791
+ var args = [];
2792
+ for (var _i = 0; _i < arguments.length; _i++) {
2793
+ args[_i] = arguments[_i];
2794
+ }
2795
+ return __awaiter(_this, void 0, void 0, function() {
2796
+ var ret, e_1;
2797
+ return __generator(this, function(_a) {
2798
+ switch (_a.label) {
2799
+ case 0:
2800
+ if (lockRef.current)
2801
+ return [2];
2802
+ lockRef.current = true;
2803
+ _a.label = 1;
2804
+ case 1:
2805
+ _a.trys.push([1, 3, , 4]);
2806
+ return [4, fn.apply(void 0, __spreadArray([], __read(args), false))];
2807
+ case 2:
2808
+ ret = _a.sent();
2809
+ lockRef.current = false;
2810
+ return [2, ret];
2811
+ case 3:
2812
+ e_1 = _a.sent();
2813
+ lockRef.current = false;
2814
+ throw e_1;
2815
+ case 4:
2816
+ return [2];
2817
+ }
2818
+ });
2819
+ });
2820
+ }, [fn]);
2617
2821
  }
2618
2822
  function useRafState(initialState) {
2619
- const ref = useRef(0);
2620
- const [state, setState] = useState$1(initialState);
2621
- const setRafState = useCallback((value) => {
2823
+ var ref = useRef(0);
2824
+ var _a = __read(useState$1(initialState), 2), state = _a[0], setState = _a[1];
2825
+ var setRafState = useCallback(function(value) {
2622
2826
  cancelAnimationFrame(ref.current);
2623
- ref.current = requestAnimationFrame(() => {
2827
+ ref.current = requestAnimationFrame(function() {
2624
2828
  setState(value);
2625
2829
  });
2626
2830
  }, []);
2627
- useUnmount$1(() => {
2831
+ useUnmount$1(function() {
2628
2832
  cancelAnimationFrame(ref.current);
2629
2833
  });
2630
2834
  return [state, setRafState];
2631
2835
  }
2632
- const useUnmountedRef = () => {
2633
- const unmountedRef = useRef(false);
2634
- useEffect(() => {
2836
+ var useUnmountedRef = function() {
2837
+ var unmountedRef = useRef(false);
2838
+ useEffect(function() {
2635
2839
  unmountedRef.current = false;
2636
- return () => {
2840
+ return function() {
2637
2841
  unmountedRef.current = true;
2638
2842
  };
2639
2843
  }, []);
@@ -3111,29 +3315,26 @@ var index$k = function() {
3111
3315
  }
3112
3316
  return ResizeObserver$1;
3113
3317
  }();
3114
- const useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect$2);
3318
+ var useEffectWithTarget = createEffectWithTarget$1(useLayoutEffect$2);
3115
3319
  const useLayoutEffectWithTarget = useEffectWithTarget;
3116
- const useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
3320
+ var useIsomorphicLayoutEffectWithTarget = isBrowser$3 ? useLayoutEffectWithTarget : useEffectWithTarget$2;
3117
3321
  const useIsomorphicLayoutEffectWithTarget$1 = useIsomorphicLayoutEffectWithTarget;
3118
3322
  function useSize(target) {
3119
- const [state, setState] = useRafState(() => {
3120
- const el = getTargetElement(target);
3323
+ var _a = __read(useRafState(function() {
3324
+ var el = getTargetElement(target);
3121
3325
  return el ? {
3122
3326
  width: el.clientWidth,
3123
3327
  height: el.clientHeight
3124
3328
  } : void 0;
3125
- });
3126
- useIsomorphicLayoutEffectWithTarget$1(() => {
3127
- const el = getTargetElement(target);
3329
+ }), 2), state = _a[0], setState = _a[1];
3330
+ useIsomorphicLayoutEffectWithTarget$1(function() {
3331
+ var el = getTargetElement(target);
3128
3332
  if (!el) {
3129
3333
  return;
3130
3334
  }
3131
- const resizeObserver = new index$k((entries) => {
3132
- entries.forEach((entry) => {
3133
- const {
3134
- clientWidth,
3135
- clientHeight
3136
- } = entry.target;
3335
+ var resizeObserver = new index$k(function(entries) {
3336
+ entries.forEach(function(entry) {
3337
+ var _a2 = entry.target, clientWidth = _a2.clientWidth, clientHeight = _a2.clientHeight;
3137
3338
  setState({
3138
3339
  width: clientWidth,
3139
3340
  height: clientHeight
@@ -3141,7 +3342,7 @@ function useSize(target) {
3141
3342
  });
3142
3343
  });
3143
3344
  resizeObserver.observe(el);
3144
- return () => {
3345
+ return function() {
3145
3346
  resizeObserver.disconnect();
3146
3347
  };
3147
3348
  }, [], target);
@@ -3151,15 +3352,21 @@ function useThrottleFn(fn, options) {
3151
3352
  var _a;
3152
3353
  if (isDev$2) {
3153
3354
  if (!isFunction$1(fn)) {
3154
- console.error(`useThrottleFn expected parameter is a function, got ${typeof fn}`);
3355
+ console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
3155
3356
  }
3156
3357
  }
3157
- const fnRef = useLatest(fn);
3158
- const wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
3159
- const throttled = useMemo(() => throttle_1((...args) => {
3160
- return fnRef.current(...args);
3161
- }, wait, options), []);
3162
- useUnmount$1(() => {
3358
+ var fnRef = useLatest(fn);
3359
+ var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
3360
+ var throttled = useMemo(function() {
3361
+ return throttle_1(function() {
3362
+ var args = [];
3363
+ for (var _i = 0; _i < arguments.length; _i++) {
3364
+ args[_i] = arguments[_i];
3365
+ }
3366
+ return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
3367
+ }, wait, options);
3368
+ }, []);
3369
+ useUnmount$1(function() {
3163
3370
  throttled.cancel();
3164
3371
  });
3165
3372
  return {
@@ -3168,29 +3375,24 @@ function useThrottleFn(fn, options) {
3168
3375
  flush: throttled.flush
3169
3376
  };
3170
3377
  }
3171
- function useTimeout(fn, delay) {
3172
- const fnRef = useLatest(fn);
3173
- const timerRef = useRef(null);
3174
- useEffect(() => {
3175
- if (!isNumber(delay) || delay < 0) {
3176
- return;
3177
- }
3178
- timerRef.current = setTimeout(() => {
3179
- fnRef.current();
3180
- }, delay);
3181
- return () => {
3182
- if (timerRef.current) {
3183
- clearTimeout(timerRef.current);
3184
- }
3185
- };
3186
- }, [delay]);
3187
- const clear2 = useCallback(() => {
3378
+ var useTimeout = function(fn, delay) {
3379
+ var timerCallback = useMemoizedFn(fn);
3380
+ var timerRef = useRef(null);
3381
+ var clear2 = useCallback(function() {
3188
3382
  if (timerRef.current) {
3189
3383
  clearTimeout(timerRef.current);
3190
3384
  }
3191
3385
  }, []);
3386
+ useEffect(function() {
3387
+ if (!isNumber(delay) || delay < 0) {
3388
+ return;
3389
+ }
3390
+ timerRef.current = setTimeout(timerCallback, delay);
3391
+ return clear2;
3392
+ }, [delay]);
3192
3393
  return clear2;
3193
- }
3394
+ };
3395
+ const useTimeout$1 = useTimeout;
3194
3396
  const mask = "";
3195
3397
  const MIN_DISTANCE = 10;
3196
3398
  function getDirection(x, y) {
@@ -7356,17 +7558,19 @@ const Popup$1 = (p) => {
7356
7558
  className: bodyCls,
7357
7559
  style: Object.assign(Object.assign({}, props.bodyStyle), {
7358
7560
  transform: percent.to((v) => {
7359
- if (props.position === "bottom") {
7360
- return `translate(0, ${v}%)`;
7361
- }
7362
- if (props.position === "top") {
7363
- return `translate(0, -${v}%)`;
7364
- }
7365
- if (props.position === "left") {
7366
- return `translate(-${v}%, 0)`;
7367
- }
7368
- if (props.position === "right") {
7369
- return `translate(${v}%, 0)`;
7561
+ if (v) {
7562
+ if (props.position === "bottom") {
7563
+ return `translate(0, ${v}%)`;
7564
+ }
7565
+ if (props.position === "top") {
7566
+ return `translate(0, -${v}%)`;
7567
+ }
7568
+ if (props.position === "left") {
7569
+ return `translate(-${v}%, 0)`;
7570
+ }
7571
+ if (props.position === "right") {
7572
+ return `translate(${v}%, 0)`;
7573
+ }
7370
7574
  }
7371
7575
  return "none";
7372
7576
  })
@@ -7575,13 +7779,17 @@ const ActionSheet = (p) => {
7575
7779
  if (props.closeOnAction) {
7576
7780
  (_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
7577
7781
  }
7578
- }
7782
+ },
7783
+ role: "option",
7784
+ "aria-disabled": action.disabled
7579
7785
  }, React__default.createElement("div", {
7580
7786
  className: `${classPrefix$1i}-button-item-name`
7581
7787
  }, action.text), action.description && React__default.createElement("div", {
7582
7788
  className: `${classPrefix$1i}-button-item-description`
7583
7789
  }, action.description))))), props.cancelText && React__default.createElement("div", {
7584
- className: `${classPrefix$1i}-cancel`
7790
+ className: `${classPrefix$1i}-cancel`,
7791
+ role: "option",
7792
+ "aria-label": props.cancelText
7585
7793
  }, React__default.createElement("div", {
7586
7794
  className: `${classPrefix$1i}-button-item-wrapper`
7587
7795
  }, React__default.createElement("a", {
@@ -7806,7 +8014,8 @@ const Avatar$1 = (p) => {
7806
8014
  lazy: props.lazy,
7807
8015
  fit: props.fit,
7808
8016
  onClick: props.onClick,
7809
- onError: props.onError
8017
+ onError: props.onError,
8018
+ onLoad: props.onLoad
7810
8019
  }));
7811
8020
  };
7812
8021
  const Avatar = Avatar$1;
@@ -8154,7 +8363,7 @@ const Calendar$1 = forwardRef((p, ref) => {
8154
8363
  return;
8155
8364
  }
8156
8365
  }
8157
- setCurrent(current[action](num, type4));
8366
+ setCurrent(nxtCurrent);
8158
8367
  };
8159
8368
  const header = React__default.createElement("div", {
8160
8369
  className: `${classPrefix$1b}-header`
@@ -11558,7 +11767,8 @@ const Tabs$1 = (p) => {
11558
11767
  className: `${classPrefix$13}-tab-list`,
11559
11768
  ref: tabListContainerRef,
11560
11769
  scrollLeft,
11561
- onScroll: updateMask
11770
+ onScroll: updateMask,
11771
+ role: "tablist"
11562
11772
  }, React__default.createElement(animated.div, {
11563
11773
  ref: activeLineRef,
11564
11774
  className: `${classPrefix$13}-tab-line`,
@@ -11586,7 +11796,9 @@ const Tabs$1 = (p) => {
11586
11796
  className: classNames(`${classPrefix$13}-tab`, {
11587
11797
  [`${classPrefix$13}-tab-active`]: pane.key === activeKey,
11588
11798
  [`${classPrefix$13}-tab-disabled`]: pane.props.disabled
11589
- })
11799
+ }),
11800
+ role: "tab",
11801
+ "aria-selected": pane.key === activeKey
11590
11802
  }, pane.props.title)))))), panes.map((pane) => {
11591
11803
  if (pane.props.children === void 0) {
11592
11804
  return null;
@@ -11686,6 +11898,7 @@ const CheckList$1 = (p) => {
11686
11898
  }
11687
11899
  const {
11688
11900
  activeIcon,
11901
+ extra,
11689
11902
  disabled,
11690
11903
  readOnly
11691
11904
  } = props;
@@ -11695,6 +11908,7 @@ const CheckList$1 = (p) => {
11695
11908
  check,
11696
11909
  uncheck,
11697
11910
  activeIcon,
11911
+ extra,
11698
11912
  disabled,
11699
11913
  readOnly
11700
11914
  }
@@ -11712,9 +11926,11 @@ const CheckListItem = (props) => {
11712
11926
  }
11713
11927
  const active = context.value.includes(props.value);
11714
11928
  const readOnly = props.readOnly || context.readOnly;
11929
+ const defaultExtra = active ? context.activeIcon : null;
11930
+ const renderExtra = context.extra ? context.extra(active) : defaultExtra;
11715
11931
  const extra = React__default.createElement("div", {
11716
11932
  className: `${classPrefix$$}-extra`
11717
- }, active ? context.activeIcon : null);
11933
+ }, renderExtra);
11718
11934
  return withNativeProps(props, React__default.createElement(List$1.Item, {
11719
11935
  title: props.title,
11720
11936
  className: classNames(classPrefix$$, readOnly && `${classPrefix$$}-readonly`, active && `${classPrefix$$}-active`),
@@ -13505,7 +13721,7 @@ const Ellipsis$1 = (p) => {
13505
13721
  setExpanded(true);
13506
13722
  }
13507
13723
  }, props.expandText)) : null;
13508
- const collapseActionElement = exceeded && props.expandText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13724
+ const collapseActionElement = exceeded && props.collapseText ? withStopPropagation(props.stopPropagationForActionButtons, React__default.createElement("a", {
13509
13725
  onClick: () => {
13510
13726
  setExpanded(false);
13511
13727
  }
@@ -18860,22 +19076,6 @@ const computePosition$1 = async (reference, floating, config2) => {
18860
19076
  } = config2;
18861
19077
  const validMiddleware = middleware.filter(Boolean);
18862
19078
  const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
18863
- {
18864
- if (platform2 == null) {
18865
- console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" "));
18866
- }
18867
- if (validMiddleware.filter((_ref) => {
18868
- let {
18869
- name
18870
- } = _ref;
18871
- return name === "autoPlacement" || name === "flip";
18872
- }).length > 1) {
18873
- throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware", "detected. This will lead to an infinite loop. Ensure only one of", "either has been passed to the `middleware` array."].join(" "));
18874
- }
18875
- if (!reference || !floating) {
18876
- console.error(["Floating UI: The reference and/or floating element was not defined", "when `computePosition()` was called. Ensure that both elements have", "been created and can be measured."].join(" "));
18877
- }
18878
- }
18879
19079
  let rects = await platform2.getElementRects({
18880
19080
  reference,
18881
19081
  floating,
@@ -18921,11 +19121,6 @@ const computePosition$1 = async (reference, floating, config2) => {
18921
19121
  ...data
18922
19122
  }
18923
19123
  };
18924
- {
18925
- if (resetCount > 50) {
18926
- console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" "));
18927
- }
18928
- }
18929
19124
  if (reset && resetCount <= 50) {
18930
19125
  resetCount++;
18931
19126
  if (typeof reset === "object") {
@@ -19058,9 +19253,6 @@ const arrow = (options) => ({
19058
19253
  elements
19059
19254
  } = state;
19060
19255
  if (element == null) {
19061
- {
19062
- console.warn("Floating UI: No `element` was passed to the `arrow` middleware.");
19063
- }
19064
19256
  return {};
19065
19257
  }
19066
19258
  const paddingObject = getSideObjectFromPadding(padding);
@@ -19866,16 +20058,14 @@ function getClippingElementAncestors(element, cache) {
19866
20058
  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
19867
20059
  const computedStyle = getComputedStyle$1(currentNode);
19868
20060
  const containingBlock = isContainingBlock(currentNode);
19869
- const shouldIgnoreCurrentNode = computedStyle.position === "fixed";
19870
- if (shouldIgnoreCurrentNode) {
20061
+ if (computedStyle.position === "fixed") {
19871
20062
  currentContainingBlockComputedStyle = null;
20063
+ }
20064
+ const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
20065
+ if (shouldDropCurrentNode) {
20066
+ result2 = result2.filter((ancestor) => ancestor !== currentNode);
19872
20067
  } else {
19873
- const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
19874
- if (shouldDropCurrentNode) {
19875
- result2 = result2.filter((ancestor) => ancestor !== currentNode);
19876
- } else {
19877
- currentContainingBlockComputedStyle = computedStyle;
19878
- }
20068
+ currentContainingBlockComputedStyle = computedStyle;
19879
20069
  }
19880
20070
  currentNode = getParentNode(currentNode);
19881
20071
  }
@@ -20220,7 +20410,7 @@ const Popover$1 = forwardRef((p, ref) => {
20220
20410
  top: arrowY != null ? `${arrowY}px` : "",
20221
20411
  right: "",
20222
20412
  bottom: "",
20223
- [arrowSide]: `-${convertPx(8)}px`
20413
+ [arrowSide]: "calc(var(--arrow-size) * -1)"
20224
20414
  });
20225
20415
  const arrowRotate = {
20226
20416
  top: "0deg",
@@ -22116,7 +22306,7 @@ const NoticeBar$1 = memo((p) => {
22116
22306
  text.style.transitionDuration = `${Math.round(distance / speed)}s`;
22117
22307
  text.style.transform = `translateX(-${text.offsetWidth}px)`;
22118
22308
  }
22119
- useTimeout(() => {
22309
+ useTimeout$1(() => {
22120
22310
  delayLockRef.current = false;
22121
22311
  start2();
22122
22312
  }, props.delay);
@@ -22253,16 +22443,18 @@ const NumberKeyboard$1 = (p) => {
22253
22443
  className: classNames(`${classPrefix$w}-header`, {
22254
22444
  [`${classPrefix$w}-header-with-title`]: !!title
22255
22445
  })
22256
- }, title && React__default.createElement("div", {
22257
- className: `${classPrefix$w}-title`
22446
+ }, React__default.createElement("div", {
22447
+ className: `${classPrefix$w}-title`,
22448
+ "aria-label": title
22258
22449
  }, title), showCloseButton && React__default.createElement("span", {
22259
22450
  className: `${classPrefix$w}-header-close-button`,
22260
22451
  onClick: () => {
22261
22452
  var _a;
22262
22453
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
22263
22454
  },
22264
- role: "button",
22265
- title: "CLOSE"
22455
+ role: "grid",
22456
+ title: "CLOSE",
22457
+ tabIndex: -1
22266
22458
  }, React__default.createElement(DownOutline, null)));
22267
22459
  };
22268
22460
  const renderKey = (key, index2) => {
@@ -22273,8 +22465,9 @@ const NumberKeyboard$1 = (p) => {
22273
22465
  [`${classPrefix$w}-key-mid`]: index2 === 9 && !!confirmText && keys2.length < 12
22274
22466
  });
22275
22467
  const ariaProps = key ? {
22276
- role: "button",
22277
- title: key
22468
+ role: "grid",
22469
+ title: key,
22470
+ tabIndex: -1
22278
22471
  } : void 0;
22279
22472
  return React__default.createElement("div", Object.assign({
22280
22473
  key,
@@ -22326,11 +22519,14 @@ const NumberKeyboard$1 = (p) => {
22326
22519
  onBackspacePressEnd();
22327
22520
  },
22328
22521
  title: "BACKSPACE",
22329
- role: "button"
22522
+ role: "grid",
22523
+ tabIndex: -1
22330
22524
  }, React__default.createElement(TextDeletionOutline, null)), React__default.createElement("div", {
22331
22525
  className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-ok`,
22332
22526
  onTouchEnd: (e) => onKeyPress(e, "OK"),
22333
- role: "button"
22527
+ role: "grid",
22528
+ tabIndex: -1,
22529
+ "aria-label": confirmText
22334
22530
  }, confirmText))), props.safeArea && React__default.createElement("div", {
22335
22531
  className: `${classPrefix$w}-footer`
22336
22532
  }, React__default.createElement(SafeArea, {
@@ -23178,6 +23374,9 @@ const Selector$1 = (p) => {
23178
23374
  (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, extend);
23179
23375
  }
23180
23376
  });
23377
+ const {
23378
+ locale
23379
+ } = useConfig();
23181
23380
  const items = props.options.map((option) => {
23182
23381
  const active = (value || []).includes(option.value);
23183
23382
  const disabled = option.disabled || props.disabled;
@@ -23200,7 +23399,9 @@ const Selector$1 = (p) => {
23200
23399
  const val = active ? [] : [option.value];
23201
23400
  setValue2(val);
23202
23401
  }
23203
- }
23402
+ },
23403
+ role: "option",
23404
+ "aria-selected": active && !props.multiple || active && props.multiple
23204
23405
  }, option.label, option.description && React__default.createElement("div", {
23205
23406
  className: `${classPrefix$k}-item-description`
23206
23407
  }, option.description), active && props.showCheckMark && React__default.createElement("div", {
@@ -23208,7 +23409,9 @@ const Selector$1 = (p) => {
23208
23409
  }, React__default.createElement(CheckMark, null)));
23209
23410
  });
23210
23411
  return withNativeProps(props, React__default.createElement("div", {
23211
- className: classPrefix$k
23412
+ className: classPrefix$k,
23413
+ role: "listbox",
23414
+ "aria-label": locale.Selector.name
23212
23415
  }, !props.columns && React__default.createElement(Space, {
23213
23416
  wrap: true
23214
23417
  }, items), props.columns && React__default.createElement(Grid, {
@@ -25272,6 +25475,7 @@ const TextArea$1 = forwardRef((p, ref) => {
25272
25475
  ref: hiddenTextAreaRef,
25273
25476
  className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
25274
25477
  value,
25478
+ rows: props.rows,
25275
25479
  "aria-hidden": true,
25276
25480
  readOnly: true
25277
25481
  })));
@@ -25756,6 +25960,9 @@ const VirtualInput$1 = forwardRef((p, ref) => {
25756
25960
  const rootRef = useRef(null);
25757
25961
  const contentRef = useRef(null);
25758
25962
  const [hasFocus, setHasFocus] = useState$1(false);
25963
+ const {
25964
+ locale
25965
+ } = useConfig();
25759
25966
  function scrollToEnd() {
25760
25967
  const root2 = rootRef.current;
25761
25968
  if (!root2)
@@ -25822,12 +26029,15 @@ const VirtualInput$1 = forwardRef((p, ref) => {
25822
26029
  [`${classPrefix$2}-disabled`]: props.disabled
25823
26030
  }),
25824
26031
  tabIndex: props.disabled ? void 0 : 0,
26032
+ role: "option",
25825
26033
  onFocus,
25826
26034
  onBlur,
25827
26035
  onClick: props.onClick
25828
26036
  }, React__default.createElement("div", {
25829
26037
  className: `${classPrefix$2}-content`,
25830
- ref: contentRef
26038
+ ref: contentRef,
26039
+ "aria-disabled": props.disabled,
26040
+ "aria-label": props.placeholder
25831
26041
  }, value, React__default.createElement("div", {
25832
26042
  className: `${classPrefix$2}-caret-container`
25833
26043
  }, hasFocus && React__default.createElement("div", {
@@ -25839,7 +26049,9 @@ const VirtualInput$1 = forwardRef((p, ref) => {
25839
26049
  e.stopPropagation();
25840
26050
  setValue2("");
25841
26051
  (_a = props.onClear) === null || _a === void 0 ? void 0 : _a.call(props);
25842
- }
26052
+ },
26053
+ role: "button",
26054
+ "aria-label": locale.Input.clear
25843
26055
  }, React__default.createElement(CloseCircleFill, null)), !value && React__default.createElement("div", {
25844
26056
  className: `${classPrefix$2}-placeholder`
25845
26057
  }, props.placeholder), keyboardElement));