antd3-esm 1.0.1 → 2.0.0

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 (207) hide show
  1. package/dist/CommonMixin.js +1 -1
  2. package/dist/Divider.js +1 -1
  3. package/dist/Pagination.js +1 -1
  4. package/dist/ResizeObserver.es.js +6 -0
  5. package/dist/TextArea.js +1 -1
  6. package/dist/_assignValue.js +1 -1
  7. package/dist/antd/es/affix.d.ts +1 -0
  8. package/dist/antd/es/affix.js +3 -2
  9. package/dist/antd/es/alert.d.ts +1 -0
  10. package/dist/antd/es/alert.js +187 -2
  11. package/dist/antd/es/anchor.d.ts +1 -0
  12. package/dist/antd/es/anchor.js +3 -2
  13. package/dist/antd/es/auto-complete.d.ts +1 -0
  14. package/dist/antd/es/auto-complete.js +221 -2
  15. package/dist/antd/es/avatar.d.ts +1 -0
  16. package/dist/antd/es/avatar.js +2 -0
  17. package/dist/antd/es/back-top.d.ts +1 -0
  18. package/dist/antd/es/back-top.js +135 -2
  19. package/dist/antd/es/badge.d.ts +1 -0
  20. package/dist/antd/es/badge.js +540 -2
  21. package/dist/antd/es/breadcrumb.d.ts +1 -0
  22. package/dist/antd/es/breadcrumb.js +4 -4
  23. package/dist/antd/es/button.d.ts +1 -0
  24. package/dist/antd/es/button.js +1 -1
  25. package/dist/antd/es/calendar.d.ts +1 -0
  26. package/dist/antd/es/calendar.js +4 -4
  27. package/dist/antd/es/card.d.ts +1 -0
  28. package/dist/antd/es/card.js +346 -2
  29. package/dist/antd/es/carousel.d.ts +1 -0
  30. package/dist/antd/es/carousel.js +3085 -2
  31. package/dist/antd/es/cascader.d.ts +1 -0
  32. package/dist/antd/es/cascader.js +4 -3
  33. package/dist/antd/es/checkbox.d.ts +1 -0
  34. package/dist/antd/es/checkbox.js +1 -1
  35. package/dist/antd/es/col.d.ts +1 -0
  36. package/dist/antd/es/collapse.d.ts +1 -0
  37. package/dist/antd/es/comment.d.ts +1 -0
  38. package/dist/antd/es/comment.js +132 -2
  39. package/dist/antd/es/config-provider.d.ts +2 -0
  40. package/dist/antd/es/config-provider.js +1 -1
  41. package/dist/antd/es/date-picker.d.ts +1 -0
  42. package/dist/antd/es/date-picker.js +5 -13
  43. package/dist/antd/es/descriptions.d.ts +1 -0
  44. package/dist/antd/es/descriptions.js +1 -0
  45. package/dist/antd/es/divider.d.ts +1 -0
  46. package/dist/antd/es/drawer.d.ts +1 -0
  47. package/dist/antd/es/drawer.js +1 -1
  48. package/dist/antd/es/dropdown.d.ts +1 -0
  49. package/dist/antd/es/dropdown.js +2 -2
  50. package/dist/antd/es/empty.d.ts +1 -0
  51. package/dist/antd/es/form.d.ts +1 -0
  52. package/dist/antd/es/form.js +6 -239
  53. package/dist/antd/es/grid.d.ts +1 -0
  54. package/dist/antd/es/grid.js +1 -0
  55. package/dist/antd/es/icon.d.ts +1 -0
  56. package/dist/antd/es/input-number.d.ts +1 -0
  57. package/dist/antd/es/input-number.js +1138 -2
  58. package/dist/antd/es/input.d.ts +1 -0
  59. package/dist/antd/es/input.js +4 -3
  60. package/dist/antd/es/layout.d.ts +1 -0
  61. package/dist/antd/es/list.d.ts +1 -0
  62. package/dist/antd/es/list.js +480 -2
  63. package/dist/antd/es/locale/ar_EG.d.ts +1 -0
  64. package/dist/antd/es/locale/bg_BG.d.ts +1 -0
  65. package/dist/antd/es/locale/ca_ES.d.ts +1 -0
  66. package/dist/antd/es/locale/cs_CZ.d.ts +1 -0
  67. package/dist/antd/es/locale/da_DK.d.ts +1 -0
  68. package/dist/antd/es/locale/de_DE.d.ts +1 -0
  69. package/dist/antd/es/locale/default.d.ts +1 -0
  70. package/dist/antd/es/locale/el_GR.d.ts +1 -0
  71. package/dist/antd/es/locale/en_GB.d.ts +1 -0
  72. package/dist/antd/es/locale/en_US.d.ts +1 -0
  73. package/dist/antd/es/locale/es_ES.d.ts +1 -0
  74. package/dist/antd/es/locale/et_EE.d.ts +1 -0
  75. package/dist/antd/es/locale/fa_IR.d.ts +1 -0
  76. package/dist/antd/es/locale/fi_FI.d.ts +1 -0
  77. package/dist/antd/es/locale/fr_BE.d.ts +1 -0
  78. package/dist/antd/es/locale/fr_FR.d.ts +1 -0
  79. package/dist/antd/es/locale/ga_IE.d.ts +1 -0
  80. package/dist/antd/es/locale/he_IL.d.ts +1 -0
  81. package/dist/antd/es/locale/hi_IN.d.ts +1 -0
  82. package/dist/antd/es/locale/hr_HR.d.ts +1 -0
  83. package/dist/antd/es/locale/hu_HU.d.ts +1 -0
  84. package/dist/antd/es/locale/hy_AM.d.ts +1 -0
  85. package/dist/antd/es/locale/id_ID.d.ts +1 -0
  86. package/dist/antd/es/locale/is_IS.d.ts +1 -0
  87. package/dist/antd/es/locale/it_IT.d.ts +1 -0
  88. package/dist/antd/es/locale/ja_JP.d.ts +1 -0
  89. package/dist/antd/es/locale/kn_IN.d.ts +1 -0
  90. package/dist/antd/es/locale/ko_KR.d.ts +1 -0
  91. package/dist/antd/es/locale/ku_IQ.d.ts +1 -0
  92. package/dist/antd/es/locale/lv_LV.d.ts +1 -0
  93. package/dist/antd/es/locale/mk_MK.d.ts +1 -0
  94. package/dist/antd/es/locale/mn_MN.d.ts +1 -0
  95. package/dist/antd/es/locale/ms_MY.d.ts +1 -0
  96. package/dist/antd/es/locale/nb_NO.d.ts +1 -0
  97. package/dist/antd/es/locale/ne_NP.d.ts +1 -0
  98. package/dist/antd/es/locale/nl_BE.d.ts +1 -0
  99. package/dist/antd/es/locale/nl_NL.d.ts +1 -0
  100. package/dist/antd/es/locale/pl_PL.d.ts +1 -0
  101. package/dist/antd/es/locale/pt_BR.d.ts +1 -0
  102. package/dist/antd/es/locale/pt_PT.d.ts +1 -0
  103. package/dist/antd/es/locale/ro_RO.d.ts +1 -0
  104. package/dist/antd/es/locale/ru_RU.d.ts +1 -0
  105. package/dist/antd/es/locale/sk_SK.d.ts +1 -0
  106. package/dist/antd/es/locale/sl_SI.d.ts +1 -0
  107. package/dist/antd/es/locale/sr_RS.d.ts +1 -0
  108. package/dist/antd/es/locale/sv_SE.d.ts +1 -0
  109. package/dist/antd/es/locale/ta_IN.d.ts +1 -0
  110. package/dist/antd/es/locale/th_TH.d.ts +1 -0
  111. package/dist/antd/es/locale/tr_TR.d.ts +1 -0
  112. package/dist/antd/es/locale/uk_UA.d.ts +1 -0
  113. package/dist/antd/es/locale/vi_VN.d.ts +1 -0
  114. package/dist/antd/es/locale/zh_CN.d.ts +1 -0
  115. package/dist/antd/es/locale/zh_TW.d.ts +1 -0
  116. package/dist/antd/es/locale-provider.d.ts +2 -0
  117. package/dist/antd/es/locale-provider.js +1 -1
  118. package/dist/antd/es/mention.d.ts +1 -0
  119. package/dist/antd/es/mention.js +1 -1
  120. package/dist/antd/es/mentions.d.ts +1 -0
  121. package/dist/antd/es/mentions.js +2 -2
  122. package/dist/antd/es/menu.d.ts +1 -0
  123. package/dist/antd/es/menu.js +11 -0
  124. package/dist/antd/es/message.d.ts +1 -0
  125. package/dist/antd/es/modal.d.ts +1 -0
  126. package/dist/antd/es/modal.js +2 -2
  127. package/dist/antd/es/notification.d.ts +1 -0
  128. package/dist/antd/es/page-header.d.ts +1 -0
  129. package/dist/antd/es/page-header.js +6 -224
  130. package/dist/antd/es/pagination.d.ts +1 -0
  131. package/dist/antd/es/pagination.js +2 -2
  132. package/dist/antd/es/popconfirm.d.ts +1 -0
  133. package/dist/antd/es/popconfirm.js +2 -2
  134. package/dist/antd/es/popover.d.ts +1 -0
  135. package/dist/antd/es/popover.js +115 -2
  136. package/dist/antd/es/progress.d.ts +1 -0
  137. package/dist/antd/es/radio.d.ts +2 -0
  138. package/dist/antd/es/radio.js +1 -1
  139. package/dist/antd/es/rate.d.ts +1 -0
  140. package/dist/antd/es/rate.js +650 -2
  141. package/dist/antd/es/result.d.ts +2 -0
  142. package/dist/antd/es/row.d.ts +1 -0
  143. package/dist/antd/es/row.js +1 -0
  144. package/dist/antd/es/select.d.ts +1 -0
  145. package/dist/antd/es/select.js +8 -0
  146. package/dist/antd/es/skeleton.d.ts +1 -0
  147. package/dist/antd/es/slider.d.ts +1 -0
  148. package/dist/antd/es/slider.js +1911 -2
  149. package/dist/antd/es/spin.d.ts +1 -0
  150. package/dist/antd/es/spin.js +1 -1
  151. package/dist/antd/es/statistic.d.ts +1 -0
  152. package/dist/antd/es/statistic.js +1 -1
  153. package/dist/antd/es/steps.d.ts +1 -0
  154. package/dist/antd/es/steps.js +564 -2
  155. package/dist/antd/es/switch.d.ts +1 -0
  156. package/dist/antd/es/switch.js +338 -2
  157. package/dist/antd/es/table.d.ts +1 -0
  158. package/dist/antd/es/table.js +11 -11
  159. package/dist/antd/es/tabs.d.ts +1 -0
  160. package/dist/antd/es/tabs.js +7 -0
  161. package/dist/antd/es/tag.d.ts +1 -0
  162. package/dist/antd/es/tag.js +2 -1
  163. package/dist/antd/es/time-picker.d.ts +2 -0
  164. package/dist/antd/es/time-picker.js +1 -1
  165. package/dist/antd/es/timeline.d.ts +1 -0
  166. package/dist/antd/es/tooltip.d.ts +1 -0
  167. package/dist/antd/es/tooltip.js +1 -1
  168. package/dist/antd/es/transfer.d.ts +1 -0
  169. package/dist/antd/es/transfer.js +8 -392
  170. package/dist/antd/es/tree-select.d.ts +1 -0
  171. package/dist/antd/es/tree-select.js +5344 -2
  172. package/dist/antd/es/tree.d.ts +1 -0
  173. package/dist/antd/es/typography.d.ts +1 -0
  174. package/dist/antd/es/typography.js +5 -17
  175. package/dist/antd/es/upload.d.ts +1 -0
  176. package/dist/antd/es/upload.js +1 -1
  177. package/dist/antd/es/version.d.ts +1 -0
  178. package/dist/colors.js +5 -0
  179. package/dist/config-provider.js +1 -1
  180. package/dist/getDataOrAriaProps.js +11 -0
  181. package/dist/icon.js +2 -2
  182. package/dist/index.js +336 -452
  183. package/dist/index10.js +287 -329
  184. package/dist/index11.js +67 -169
  185. package/dist/index12.js +309 -2597
  186. package/dist/index13.js +387 -420
  187. package/dist/index14.js +154 -205
  188. package/dist/index15.js +2394 -1383
  189. package/dist/index16.js +422 -0
  190. package/dist/index17.js +1769 -0
  191. package/dist/index18.js +282 -0
  192. package/dist/index19.js +1755 -0
  193. package/dist/index2.js +429 -341
  194. package/dist/index3.js +316 -351
  195. package/dist/index4.js +149 -447
  196. package/dist/index5.js +399 -593
  197. package/dist/index6.js +413 -492
  198. package/dist/index7.js +594 -357
  199. package/dist/index8.js +493 -328
  200. package/dist/index9.js +299 -65
  201. package/dist/menu.js +554 -2
  202. package/dist/reactNode.js +13 -0
  203. package/dist/responsiveObserve.js +1 -344
  204. package/dist/styleChecker.js +15 -0
  205. package/dist/toConsumableArray.js +239 -0
  206. package/dist/tree.js +3 -3
  207. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { _ as _inherits, a as _classCallCheck, b as _possibleConstructorReturn, e as _extends } from './icon.js';
2
2
  import React__default, { Component } from 'react';
3
- import { m as moment, c as classNames, P as PropTypes, t as enUs } from './config-provider.js';
3
+ import { o as moment, c as classNames, P as PropTypes, v as enUs } from './config-provider.js';
4
4
  import { p as polyfill } from './menu.js';
5
5
 
6
6
  var DateConstants = {
package/dist/Divider.js CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { n as noop, l as libExports, g as getActiveKey, e as connected$1, K as KeyCode, m as menuAllProps } from './menu.js';
3
3
  import * as ReactDOM from 'react-dom';
4
4
  import { c as classNames } from './config-provider.js';
5
- import { s as scrollIntoView } from './index5.js';
5
+ import { s as scrollIntoView } from './index7.js';
6
6
 
7
7
  function _typeof$3(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$3(obj); }
8
8
  function getMotion(_ref) {
@@ -4,7 +4,7 @@ import { d as _defineProperty, _ as _inherits$2, a as _classCallCheck$2, b as _p
4
4
  import { c as classNames, P as PropTypes, C as ConfigConsumer, L as LocaleReceiver, k as Pagination$3 } from './config-provider.js';
5
5
  import { P as Pagination$2 } from './zh_CN.js';
6
6
  import { p as polyfill } from './menu.js';
7
- import { S as Select } from './index12.js';
7
+ import { S as Select } from './index15.js';
8
8
 
9
9
  var Pager = function Pager(props) {
10
10
  var _classNames;
@@ -0,0 +1,6 @@
1
+ import { d as getAugmentedNamespace } from './config-provider.js';
2
+ import { R as ResizeObserver_es } from './menu.js';
3
+
4
+ var require$$9 = /*@__PURE__*/getAugmentedNamespace(ResizeObserver_es);
5
+
6
+ export { require$$9 as r };
package/dist/TextArea.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { p as polyfill } from './menu.js';
3
3
  import { o as omit, r as resolveOnChange, C as ClearableLabeledInput, f as fixControlledValue } from './input.js';
4
- import { R as ResizeObserver } from './index2.js';
4
+ import { R as ResizeObserver } from './index3.js';
5
5
  import { c as classNames, C as ConfigConsumer } from './config-provider.js';
6
6
  import { w as wrapperRaf } from './raf.js';
7
7
 
@@ -92,4 +92,4 @@ function require_assignValue () {
92
92
  return _assignValue;
93
93
  }
94
94
 
95
- export { require_assignValue as a, require_defineProperty as b, require_baseAssignValue as r };
95
+ export { require_baseAssignValue as a, require_defineProperty as b, require_assignValue as r };
@@ -0,0 +1 @@
1
+ export { default } from 'antd/es/affix/index'
@@ -1,12 +1,13 @@
1
1
  import { n } from '../../config-provider.js';
2
- export { A as default } from '../../index.js';
2
+ export { A as default } from '../../index2.js';
3
3
  import 'react';
4
4
  import '../../menu.js';
5
5
  import 'react-dom';
6
6
  import '../../icon.js';
7
7
  import '../../input.js';
8
- import '../../index2.js';
8
+ import '../../index3.js';
9
9
  import '../../warning.js';
10
+ import '../../ResizeObserver.es.js';
10
11
 
11
12
  var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-affix {\n position: fixed;\n z-index: 10;\n}\n/*# sourceMappingURL=index.css.map */";
12
13
  n(css,{"prepend":true});
@@ -0,0 +1 @@
1
+ export { default } from 'antd/es/alert/index'
@@ -1,5 +1,190 @@
1
- import { n } from '../../config-provider.js';
2
- import 'react';
1
+ import { n, c as classNames, C as ConfigConsumer } from '../../config-provider.js';
2
+ import * as React from 'react';
3
+ import * as ReactDOM from 'react-dom';
4
+ import { A as Animate } from '../../menu.js';
5
+ import { I as Icon } from '../../icon.js';
6
+ import { g as getDataOrAriaProps } from '../../getDataOrAriaProps.js';
3
7
 
4
8
  var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-alert {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n padding: 8px 15px 8px 37px;\n word-wrap: break-word;\n border-radius: 4px;\n}\n.ant-alert.ant-alert-no-icon {\n padding: 8px 15px;\n}\n.ant-alert.ant-alert-closable {\n padding-right: 30px;\n}\n.ant-alert-icon {\n position: absolute;\n top: 11.5px;\n left: 16px;\n}\n.ant-alert-description {\n display: none;\n font-size: 14px;\n line-height: 22px;\n}\n.ant-alert-success {\n background-color: #f6ffed;\n border: 1px solid #b7eb8f;\n}\n.ant-alert-success .ant-alert-icon {\n color: #52c41a;\n}\n.ant-alert-info {\n background-color: #e6f7ff;\n border: 1px solid #91d5ff;\n}\n.ant-alert-info .ant-alert-icon {\n color: #1890ff;\n}\n.ant-alert-warning {\n background-color: #fffbe6;\n border: 1px solid #ffe58f;\n}\n.ant-alert-warning .ant-alert-icon {\n color: #faad14;\n}\n.ant-alert-error {\n background-color: #fff1f0;\n border: 1px solid #ffa39e;\n}\n.ant-alert-error .ant-alert-icon {\n color: #f5222d;\n}\n.ant-alert-close-icon {\n position: absolute;\n top: 8px;\n right: 16px;\n padding: 0;\n overflow: hidden;\n font-size: 12px;\n line-height: 22px;\n background-color: transparent;\n border: none;\n outline: none;\n cursor: pointer;\n}\n.ant-alert-close-icon .anticon-close {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-alert-close-icon .anticon-close:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-alert-close-text {\n color: rgba(0, 0, 0, 0.45);\n transition: color 0.3s;\n}\n.ant-alert-close-text:hover {\n color: rgba(0, 0, 0, 0.75);\n}\n.ant-alert-with-description {\n position: relative;\n padding: 15px 15px 15px 64px;\n color: rgba(0, 0, 0, 0.65);\n line-height: 1.5;\n border-radius: 4px;\n}\n.ant-alert-with-description.ant-alert-no-icon {\n padding: 15px;\n}\n.ant-alert-with-description .ant-alert-icon {\n position: absolute;\n top: 16px;\n left: 24px;\n font-size: 24px;\n}\n.ant-alert-with-description .ant-alert-close-icon {\n position: absolute;\n top: 16px;\n right: 16px;\n font-size: 14px;\n cursor: pointer;\n}\n.ant-alert-with-description .ant-alert-message {\n display: block;\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n}\n.ant-alert-message {\n color: rgba(0, 0, 0, 0.85);\n}\n.ant-alert-with-description .ant-alert-description {\n display: block;\n}\n.ant-alert.ant-alert-closing {\n height: 0 !important;\n margin: 0;\n padding-top: 0;\n padding-bottom: 0;\n transform-origin: 50% 0;\n transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n.ant-alert-slide-up-leave {\n animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n animation-fill-mode: both;\n}\n.ant-alert-banner {\n margin-bottom: 0;\n border: 0;\n border-radius: 0;\n}\n@keyframes antAlertSlideUpIn {\n 0% {\n transform: scaleY(0);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n 100% {\n transform: scaleY(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n}\n@keyframes antAlertSlideUpOut {\n 0% {\n transform: scaleY(1);\n transform-origin: 0% 0%;\n opacity: 1;\n }\n 100% {\n transform: scaleY(0);\n transform-origin: 0% 0%;\n opacity: 0;\n }\n}\n/*# sourceMappingURL=index.css.map */";
5
9
  n(css,{"prepend":true});
10
+
11
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
12
+
13
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
+
15
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+
17
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
+
19
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
20
+
21
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
22
+
23
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+
25
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
+
27
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
28
+
29
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
30
+
31
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
32
+
33
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
34
+
35
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
36
+
37
+ function noop() {}
38
+
39
+ var Alert = /*#__PURE__*/function (_React$Component) {
40
+ _inherits(Alert, _React$Component);
41
+
42
+ var _super = _createSuper(Alert);
43
+
44
+ function Alert(props) {
45
+ var _this;
46
+
47
+ _classCallCheck(this, Alert);
48
+
49
+ _this = _super.call(this, props);
50
+
51
+ _this.handleClose = function (e) {
52
+ e.preventDefault();
53
+ var dom = ReactDOM.findDOMNode(_assertThisInitialized(_this));
54
+ dom.style.height = "".concat(dom.offsetHeight, "px"); // Magic code
55
+ // 重复一次后才能正确设置 height
56
+
57
+ dom.style.height = "".concat(dom.offsetHeight, "px");
58
+
59
+ _this.setState({
60
+ closing: true
61
+ });
62
+
63
+ (_this.props.onClose || noop)(e);
64
+ };
65
+
66
+ _this.animationEnd = function () {
67
+ _this.setState({
68
+ closing: false,
69
+ closed: true
70
+ });
71
+
72
+ (_this.props.afterClose || noop)();
73
+ };
74
+
75
+ _this.renderAlert = function (_ref) {
76
+ var _classNames;
77
+
78
+ var getPrefixCls = _ref.getPrefixCls;
79
+ var _this$props = _this.props,
80
+ description = _this$props.description,
81
+ customizePrefixCls = _this$props.prefixCls,
82
+ message = _this$props.message,
83
+ closeText = _this$props.closeText,
84
+ banner = _this$props.banner,
85
+ _this$props$className = _this$props.className,
86
+ className = _this$props$className === void 0 ? '' : _this$props$className,
87
+ style = _this$props.style,
88
+ icon = _this$props.icon;
89
+ var _this$props2 = _this.props,
90
+ closable = _this$props2.closable,
91
+ type = _this$props2.type,
92
+ showIcon = _this$props2.showIcon,
93
+ iconType = _this$props2.iconType;
94
+ var _this$state = _this.state,
95
+ closing = _this$state.closing,
96
+ closed = _this$state.closed;
97
+ var prefixCls = getPrefixCls('alert', customizePrefixCls); // banner模式默认有 Icon
98
+
99
+ showIcon = banner && showIcon === undefined ? true : showIcon; // banner模式默认为警告
100
+
101
+ type = banner && type === undefined ? 'warning' : type || 'info';
102
+ var iconTheme = 'filled';
103
+
104
+ if (!iconType) {
105
+ switch (type) {
106
+ case 'success':
107
+ iconType = 'check-circle';
108
+ break;
109
+
110
+ case 'info':
111
+ iconType = 'info-circle';
112
+ break;
113
+
114
+ case 'error':
115
+ iconType = 'close-circle';
116
+ break;
117
+
118
+ case 'warning':
119
+ iconType = 'exclamation-circle';
120
+ break;
121
+
122
+ default:
123
+ iconType = 'default';
124
+ } // use outline icon in alert with description
125
+
126
+
127
+ if (description) {
128
+ iconTheme = 'outlined';
129
+ }
130
+ } // closeable when closeText is assigned
131
+
132
+
133
+ if (closeText) {
134
+ closable = true;
135
+ }
136
+
137
+ var alertCls = classNames(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-closing"), closing), _defineProperty(_classNames, "".concat(prefixCls, "-with-description"), !!description), _defineProperty(_classNames, "".concat(prefixCls, "-no-icon"), !showIcon), _defineProperty(_classNames, "".concat(prefixCls, "-banner"), !!banner), _defineProperty(_classNames, "".concat(prefixCls, "-closable"), closable), _classNames), className);
138
+ var closeIcon = closable ? /*#__PURE__*/React.createElement("button", {
139
+ type: "button",
140
+ onClick: _this.handleClose,
141
+ className: "".concat(prefixCls, "-close-icon"),
142
+ tabIndex: 0
143
+ }, closeText ? /*#__PURE__*/React.createElement("span", {
144
+ className: "".concat(prefixCls, "-close-text")
145
+ }, closeText) : /*#__PURE__*/React.createElement(Icon, {
146
+ type: "close"
147
+ })) : null;
148
+ var dataOrAriaProps = getDataOrAriaProps(_this.props);
149
+ var iconNode = icon && ( /*#__PURE__*/React.isValidElement(icon) ? /*#__PURE__*/React.cloneElement(icon, {
150
+ className: classNames("".concat(prefixCls, "-icon"), _defineProperty({}, icon.props.className, icon.props.className))
151
+ }) : /*#__PURE__*/React.createElement("span", {
152
+ className: "".concat(prefixCls, "-icon")
153
+ }, icon)) || /*#__PURE__*/React.createElement(Icon, {
154
+ className: "".concat(prefixCls, "-icon"),
155
+ type: iconType,
156
+ theme: iconTheme
157
+ });
158
+ return closed ? null : /*#__PURE__*/React.createElement(Animate, {
159
+ component: "",
160
+ showProp: "data-show",
161
+ transitionName: "".concat(prefixCls, "-slide-up"),
162
+ onEnd: _this.animationEnd
163
+ }, /*#__PURE__*/React.createElement("div", _extends({
164
+ "data-show": !closing,
165
+ className: alertCls,
166
+ style: style
167
+ }, dataOrAriaProps), showIcon ? iconNode : null, /*#__PURE__*/React.createElement("span", {
168
+ className: "".concat(prefixCls, "-message")
169
+ }, message), /*#__PURE__*/React.createElement("span", {
170
+ className: "".concat(prefixCls, "-description")
171
+ }, description), closeIcon));
172
+ };
173
+ _this.state = {
174
+ closing: false,
175
+ closed: false
176
+ };
177
+ return _this;
178
+ }
179
+
180
+ _createClass(Alert, [{
181
+ key: "render",
182
+ value: function render() {
183
+ return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderAlert);
184
+ }
185
+ }]);
186
+
187
+ return Alert;
188
+ }(React.Component);
189
+
190
+ export { Alert as default };
@@ -0,0 +1 @@
1
+ export { default } from 'antd/es/anchor/index'
@@ -2,12 +2,13 @@ import { n, c as classNames, C as ConfigConsumer, p as propTypesExports } from '
2
2
  import * as React from 'react';
3
3
  import * as ReactDOM from 'react-dom';
4
4
  import { a as addEventListenerWrap, p as polyfill } from '../../menu.js';
5
- import { A as Affix } from '../../index.js';
5
+ import { A as Affix } from '../../index2.js';
6
6
  import { s as scrollTo, g as getScroll } from '../../scrollTo.js';
7
7
  import '../../icon.js';
8
8
  import '../../input.js';
9
- import '../../index2.js';
9
+ import '../../index3.js';
10
10
  import '../../warning.js';
11
+ import '../../ResizeObserver.es.js';
11
12
 
12
13
  var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-anchor {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n padding-left: 2px;\n}\n.ant-anchor-wrapper {\n margin-left: -4px;\n padding-left: 4px;\n overflow: auto;\n background-color: #fff;\n}\n.ant-anchor-ink {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n}\n.ant-anchor-ink::before {\n position: relative;\n display: block;\n width: 2px;\n height: 100%;\n margin: 0 auto;\n background-color: #e8e8e8;\n content: ' ';\n}\n.ant-anchor-ink-ball {\n position: absolute;\n left: 50%;\n display: none;\n width: 8px;\n height: 8px;\n background-color: #fff;\n border: 2px solid #1890ff;\n border-radius: 8px;\n transform: translateX(-50%);\n transition: top 0.3s ease-in-out;\n}\n.ant-anchor-ink-ball.visible {\n display: inline-block;\n}\n.ant-anchor.fixed .ant-anchor-ink .ant-anchor-ink-ball {\n display: none;\n}\n.ant-anchor-link {\n padding: 7px 0 7px 16px;\n line-height: 1.143;\n}\n.ant-anchor-link-title {\n position: relative;\n display: block;\n margin-bottom: 6px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.65);\n white-space: nowrap;\n text-overflow: ellipsis;\n transition: all 0.3s;\n}\n.ant-anchor-link-title:only-child {\n margin-bottom: 0;\n}\n.ant-anchor-link-active > .ant-anchor-link-title {\n color: #1890ff;\n}\n.ant-anchor-link .ant-anchor-link {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n/*# sourceMappingURL=index.css.map */";
13
14
  n(css,{"prepend":true});
@@ -0,0 +1 @@
1
+ export { default } from 'antd/es/auto-complete/index'
@@ -1,5 +1,224 @@
1
- import { n } from '../../config-provider.js';
2
- import 'react';
1
+ import { n, c as classNames, C as ConfigConsumer } from '../../config-provider.js';
2
+ import * as React from 'react';
3
+ import { O as Option, S as Select, a as OptGroup } from '../../index15.js';
4
+ import '../../index12.js';
5
+ import { I as Input } from '../../input.js';
6
+ import '../../menu.js';
7
+ import 'react-dom';
8
+ import '../../icon.js';
9
+ import '../../Divider.js';
10
+ import '../../index7.js';
11
+ import '../../tree.js';
12
+ import '../../index9.js';
13
+ import '../../wave.js';
14
+ import '../../raf.js';
15
+ import '../../TextArea.js';
16
+ import '../../index3.js';
17
+ import '../../warning.js';
18
+ import '../../ResizeObserver.es.js';
3
19
 
4
20
  var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-select-auto-complete {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-select-auto-complete.ant-select .ant-select-selection {\n border: 0;\n box-shadow: none;\n}\n.ant-select-auto-complete.ant-select .ant-select-selection__rendered {\n height: 100%;\n margin-right: 0;\n margin-left: 0;\n line-height: 32px;\n}\n.ant-select-auto-complete.ant-select .ant-select-selection__placeholder {\n margin-right: 12px;\n margin-left: 12px;\n}\n.ant-select-auto-complete.ant-select .ant-select-selection--single {\n height: auto;\n}\n.ant-select-auto-complete.ant-select .ant-select-search--inline {\n position: static;\n float: left;\n}\n.ant-select-auto-complete.ant-select-allow-clear .ant-select-selection:hover .ant-select-selection__rendered {\n margin-right: 0 !important;\n}\n.ant-select-auto-complete.ant-select .ant-input {\n height: 32px;\n line-height: 1.5;\n background: transparent;\n border-width: 1px;\n}\n.ant-select-auto-complete.ant-select .ant-input:focus,\n.ant-select-auto-complete.ant-select .ant-input:hover {\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.ant-select-auto-complete.ant-select .ant-input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n background-color: transparent;\n}\n.ant-select-auto-complete.ant-select .ant-input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-select-auto-complete.ant-select-lg .ant-select-selection__rendered {\n line-height: 40px;\n}\n.ant-select-auto-complete.ant-select-lg .ant-input {\n height: 40px;\n padding-top: 6px;\n padding-bottom: 6px;\n}\n.ant-select-auto-complete.ant-select-sm .ant-select-selection__rendered {\n line-height: 24px;\n}\n.ant-select-auto-complete.ant-select-sm .ant-input {\n height: 24px;\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.ant-input-group > .ant-select-auto-complete .ant-select-search__field.ant-input-affix-wrapper {\n display: inline;\n float: none;\n}\n/*# sourceMappingURL=index.css.map */";
5
21
  n(css,{"prepend":true});
22
+
23
+ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
24
+
25
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
26
+
27
+ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
28
+
29
+ function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
30
+
31
+ function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); return Constructor; }
32
+
33
+ function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
34
+
35
+ function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
36
+
37
+ function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
38
+
39
+ function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
40
+
41
+ function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
42
+
43
+ function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
44
+
45
+ function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
46
+
47
+ var InputElement = /*#__PURE__*/function (_React$Component) {
48
+ _inherits$1(InputElement, _React$Component);
49
+
50
+ var _super = _createSuper$1(InputElement);
51
+
52
+ function InputElement() {
53
+ var _this;
54
+
55
+ _classCallCheck$1(this, InputElement);
56
+
57
+ _this = _super.apply(this, arguments);
58
+
59
+ _this.saveRef = function (ele) {
60
+ var childRef = _this.props.children.ref;
61
+
62
+ if (typeof childRef === 'function') {
63
+ childRef(ele);
64
+ }
65
+ };
66
+
67
+ return _this;
68
+ }
69
+
70
+ _createClass$1(InputElement, [{
71
+ key: "render",
72
+ value: function render() {
73
+ return /*#__PURE__*/React.cloneElement(this.props.children, _extends$1(_extends$1({}, this.props), {
74
+ ref: this.saveRef
75
+ }), null);
76
+ }
77
+ }]);
78
+
79
+ return InputElement;
80
+ }(React.Component);
81
+
82
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
83
+
84
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
85
+
86
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
87
+
88
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
89
+
90
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
91
+
92
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
93
+
94
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
95
+
96
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
97
+
98
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
99
+
100
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
101
+
102
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
103
+
104
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
105
+
106
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
107
+
108
+ function isSelectOptionOrSelectOptGroup(child) {
109
+ return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
110
+ }
111
+
112
+ var AutoComplete = /*#__PURE__*/function (_React$Component) {
113
+ _inherits(AutoComplete, _React$Component);
114
+
115
+ var _super = _createSuper(AutoComplete);
116
+
117
+ function AutoComplete() {
118
+ var _this;
119
+
120
+ _classCallCheck(this, AutoComplete);
121
+
122
+ _this = _super.apply(this, arguments);
123
+
124
+ _this.saveSelect = function (node) {
125
+ _this.select = node;
126
+ };
127
+
128
+ _this.getInputElement = function () {
129
+ var children = _this.props.children;
130
+ var element = children && /*#__PURE__*/React.isValidElement(children) && children.type !== Option ? React.Children.only(_this.props.children) : /*#__PURE__*/React.createElement(Input, null);
131
+
132
+ var elementProps = _extends({}, element.props); // https://github.com/ant-design/ant-design/pull/7742
133
+
134
+
135
+ delete elementProps.children;
136
+ return /*#__PURE__*/React.createElement(InputElement, elementProps, element);
137
+ };
138
+
139
+ _this.renderAutoComplete = function (_ref) {
140
+ var _classNames;
141
+
142
+ var getPrefixCls = _ref.getPrefixCls;
143
+ var _this$props = _this.props,
144
+ customizePrefixCls = _this$props.prefixCls,
145
+ size = _this$props.size,
146
+ _this$props$className = _this$props.className,
147
+ className = _this$props$className === void 0 ? '' : _this$props$className,
148
+ notFoundContent = _this$props.notFoundContent,
149
+ optionLabelProp = _this$props.optionLabelProp,
150
+ dataSource = _this$props.dataSource,
151
+ children = _this$props.children;
152
+ var prefixCls = getPrefixCls('select', customizePrefixCls);
153
+ var cls = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-lg"), size === 'large'), _defineProperty(_classNames, "".concat(prefixCls, "-sm"), size === 'small'), _defineProperty(_classNames, className, !!className), _defineProperty(_classNames, "".concat(prefixCls, "-show-search"), true), _defineProperty(_classNames, "".concat(prefixCls, "-auto-complete"), true), _classNames));
154
+ var options;
155
+ var childArray = React.Children.toArray(children);
156
+
157
+ if (childArray.length && isSelectOptionOrSelectOptGroup(childArray[0])) {
158
+ options = children;
159
+ } else {
160
+ options = dataSource ? dataSource.map(function (item) {
161
+ if ( /*#__PURE__*/React.isValidElement(item)) {
162
+ return item;
163
+ }
164
+
165
+ switch (_typeof(item)) {
166
+ case 'string':
167
+ return /*#__PURE__*/React.createElement(Option, {
168
+ key: item
169
+ }, item);
170
+
171
+ case 'object':
172
+ return /*#__PURE__*/React.createElement(Option, {
173
+ key: item.value
174
+ }, item.text);
175
+
176
+ default:
177
+ throw new Error('AutoComplete[dataSource] only supports type `string[] | Object[]`.');
178
+ }
179
+ }) : [];
180
+ }
181
+
182
+ return /*#__PURE__*/React.createElement(Select, _extends({}, _this.props, {
183
+ className: cls,
184
+ mode: Select.SECRET_COMBOBOX_MODE_DO_NOT_USE,
185
+ optionLabelProp: optionLabelProp,
186
+ getInputElement: _this.getInputElement,
187
+ notFoundContent: notFoundContent,
188
+ ref: _this.saveSelect
189
+ }), options);
190
+ };
191
+
192
+ return _this;
193
+ }
194
+
195
+ _createClass(AutoComplete, [{
196
+ key: "focus",
197
+ value: function focus() {
198
+ this.select.focus();
199
+ }
200
+ }, {
201
+ key: "blur",
202
+ value: function blur() {
203
+ this.select.blur();
204
+ }
205
+ }, {
206
+ key: "render",
207
+ value: function render() {
208
+ return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderAutoComplete);
209
+ }
210
+ }]);
211
+
212
+ return AutoComplete;
213
+ }(React.Component);
214
+ AutoComplete.Option = Option;
215
+ AutoComplete.OptGroup = OptGroup;
216
+ AutoComplete.defaultProps = {
217
+ transitionName: 'slide-up',
218
+ optionLabelProp: 'children',
219
+ choiceTransitionName: 'zoom',
220
+ showSearch: false,
221
+ filterOption: false
222
+ };
223
+
224
+ export { AutoComplete as default };
@@ -0,0 +1 @@
1
+ export { default } from 'antd/es/avatar/index'
@@ -1,5 +1,7 @@
1
1
  import { n } from '../../config-provider.js';
2
+ export { A as default } from '../../index4.js';
2
3
  import 'react';
4
+ import '../../icon.js';
3
5
 
4
6
  var css = "/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-avatar {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n display: inline-block;\n overflow: hidden;\n color: #fff;\n white-space: nowrap;\n text-align: center;\n vertical-align: middle;\n background: #ccc;\n width: 32px;\n height: 32px;\n line-height: 32px;\n border-radius: 50%;\n}\n.ant-avatar-image {\n background: transparent;\n}\n.ant-avatar-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar.ant-avatar-icon {\n font-size: 18px;\n}\n.ant-avatar-lg {\n width: 40px;\n height: 40px;\n line-height: 40px;\n border-radius: 50%;\n}\n.ant-avatar-lg-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar-lg.ant-avatar-icon {\n font-size: 24px;\n}\n.ant-avatar-sm {\n width: 24px;\n height: 24px;\n line-height: 24px;\n border-radius: 50%;\n}\n.ant-avatar-sm-string {\n position: absolute;\n left: 50%;\n transform-origin: 0 center;\n}\n.ant-avatar-sm.ant-avatar-icon {\n font-size: 14px;\n}\n.ant-avatar-square {\n border-radius: 4px;\n}\n.ant-avatar > img {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n/*# sourceMappingURL=index.css.map */";
5
7
  n(css,{"prepend":true});
@@ -0,0 +1 @@
1
+ export { default } from 'antd/es/back-top/index'