@pnkx-lib/ui 1.9.553 → 1.9.555

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 (44) hide show
  1. package/dist/style.css +2 -2
  2. package/es/chunks/{bundle-mjs-BME7zF0Z.js → bundle-mjs-BBFHkixS.js} +1 -1
  3. package/es/chunks/{index.esm-AaUjBMaK.js → index.esm-Ds4t-z37.js} +90 -55
  4. package/es/chunks/{toArray-DACIS0E1.js → toArray-7SKWyzWi.js} +44 -42
  5. package/es/fields/CascaderField.js +1 -1
  6. package/es/fields/Checkbox.js +1 -1
  7. package/es/fields/DatePicker.js +1 -1
  8. package/es/fields/DateRangePicker.js +1 -1
  9. package/es/fields/Input.js +1 -1
  10. package/es/fields/InputRangePicker.js +1 -1
  11. package/es/fields/PnkxField.js +1 -1
  12. package/es/fields/Select.js +1 -1
  13. package/es/fields/SliderRanger.js +1 -1
  14. package/es/fields/SliderSingle.js +1 -1
  15. package/es/fields/Switch.js +1 -1
  16. package/es/fields/Textarea.js +1 -1
  17. package/es/fields/TimePicker.js +1 -1
  18. package/es/fields/TimeRangePicker.js +1 -1
  19. package/es/fields/TinyMCE.js +16 -35
  20. package/es/ui/BulkActions/index.js +1 -1
  21. package/es/ui/Button.js +1 -1
  22. package/es/ui/Cascader.js +1 -1
  23. package/es/ui/CategoryStatus.js +1 -1
  24. package/es/ui/Clock/index.js +1 -1
  25. package/es/ui/ConfirmModal.js +1 -1
  26. package/es/ui/Container.js +1 -1
  27. package/es/ui/CustomeBulkActions/index.js +1 -1
  28. package/es/ui/Descriptions.js +1 -1
  29. package/es/ui/GenericUploadModal.js +540 -578
  30. package/es/ui/Label.js +1 -1
  31. package/es/ui/Layout.js +28 -31
  32. package/es/ui/Modal.js +1 -1
  33. package/es/ui/PriceStatus.js +45 -0
  34. package/es/ui/SearchFilterForm.js +1 -1
  35. package/es/ui/SelectSingleTable.js +1 -1
  36. package/es/ui/SelectTable.js +1 -1
  37. package/es/ui/Sidebar/index.js +1 -1
  38. package/es/ui/TableCategory/index.js +2 -2
  39. package/es/ui/TableForm/index.js +1 -1
  40. package/es/ui/UploadComponent.js +1 -1
  41. package/es/ui/UploadImage.js +1 -1
  42. package/package.json +1 -1
  43. package/types/components/ui/PriceStatus.d.ts +20 -0
  44. package/types/ui/PriceStatus.d.ts +2 -0
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { Modal, Spin } from 'antd';
3
3
  import * as React from 'react';
4
4
  import React__default, { isValidElement, version as version$1, useRef, useLayoutEffect, useEffect, Component, useContext, forwardRef, useMemo as useMemo$1, useState, Children, useImperativeHandle } from 'react';
5
- import { b as useMemo, i as isFragment$1, L as LocaleContext, l as localeValues, c as useLayoutUpdateEffect, d as Context, _ as _toConsumableArray, u as unit, e as clearFix, f as textEllipsis, g as genStyleHooks, m as merge, r as resetComponent, h as defaultPrefixCls, j as genComponentStyleHook, w as warning, C as ConfigContext, k as useToken, S as SizeContext, n as devUseWarning, p as getAlphaColor, q as getLineHeight, s as genFocusStyle, v as resetIcon, x as genSubStyleComponent, a as useComponentConfig, D as DisabledContext, o as omit, y as useLayoutEffect$1, t as toArray$2 } from '../chunks/toArray-DACIS0E1.js';
5
+ import { b as useMemo, i as isFragment$1, L as LocaleContext, l as localeValues, c as useLayoutUpdateEffect, d as Context, _ as _toConsumableArray, u as unit, e as clearFix, f as textEllipsis, g as genStyleHooks, m as merge, r as resetComponent, h as defaultPrefixCls, j as genComponentStyleHook, w as warning, C as ConfigContext, k as useToken, S as SizeContext, n as devUseWarning, p as getAlphaColor, q as getLineHeight, s as genFocusStyle, v as resetIcon, x as genSubStyleComponent, a as useComponentConfig, D as DisabledContext, o as omit, y as useLayoutEffect$1, t as toArray$2 } from '../chunks/toArray-7SKWyzWi.js';
6
6
  import * as ReactDOM from 'react-dom';
7
7
  import ReactDOM__default, { createPortal, flushSync } from 'react-dom';
8
8
  import { c as classNames } from '../chunks/index-xdC7i8zM.js';
@@ -12,7 +12,7 @@ import { _ as _typeof, b as _defineProperty } from '../chunks/defineProperty-CTL
12
12
  import { R as RefIcon$7 } from '../chunks/LoadingOutlined-C5-PNVpb.js';
13
13
  import { R as RefIcon$8, a as RefIcon$a } from '../chunks/CloseCircleFilled-4jnV3XJV.js';
14
14
  import { R as RefIcon$9 } from '../chunks/CloseOutlined-DdLJZQvZ.js';
15
- import { C as Controller } from '../chunks/index.esm-AaUjBMaK.js';
15
+ import { C as Controller } from '../chunks/index.esm-Ds4t-z37.js';
16
16
  import { toast } from '@pnkx-lib/core';
17
17
  import { R as RefIcon$b } from '../chunks/InboxOutlined-W7xl_mLq.js';
18
18
 
@@ -1545,259 +1545,274 @@ function genCSSMotionList(transitionSupport) {
1545
1545
  }
1546
1546
  const CSSMotionList = genCSSMotionList(supportTransition);
1547
1547
 
1548
- function _OverloadYield(e, d) {
1549
- this.v = e, this.k = d;
1550
- }
1551
-
1552
- function _regeneratorDefine(e, r, n, t) {
1553
- var i = Object.defineProperty;
1548
+ function _regeneratorRuntime() {
1549
+ _regeneratorRuntime = function _regeneratorRuntime() {
1550
+ return r;
1551
+ };
1552
+ var t,
1553
+ r = {},
1554
+ e = Object.prototype,
1555
+ n = e.hasOwnProperty,
1556
+ o = "function" == typeof Symbol ? Symbol : {},
1557
+ i = o.iterator || "@@iterator",
1558
+ a = o.asyncIterator || "@@asyncIterator",
1559
+ u = o.toStringTag || "@@toStringTag";
1560
+ function c(t, r, e, n) {
1561
+ return Object.defineProperty(t, r, {
1562
+ value: e,
1563
+ enumerable: !n,
1564
+ configurable: !n,
1565
+ writable: !n
1566
+ });
1567
+ }
1554
1568
  try {
1555
- i({}, "", {});
1556
- } catch (e) {
1557
- i = 0;
1558
- }
1559
- _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
1560
- if (r) i ? i(e, r, {
1561
- value: n,
1562
- enumerable: !t,
1563
- configurable: !t,
1564
- writable: !t
1565
- }) : e[r] = n;else {
1566
- var o = function o(r, n) {
1567
- _regeneratorDefine(e, r, function (e) {
1568
- return this._invoke(r, n, e);
1569
- });
1570
- };
1571
- o("next", 0), o("throw", 1), o("return", 2);
1572
- }
1573
- }, _regeneratorDefine(e, r, n, t);
1574
- }
1575
-
1576
- function _regenerator() {
1577
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
1578
- var e,
1579
- t,
1580
- r = "function" == typeof Symbol ? Symbol : {},
1581
- n = r.iterator || "@@iterator",
1582
- o = r.toStringTag || "@@toStringTag";
1583
- function i(r, n, o, i) {
1584
- var c = n && n.prototype instanceof Generator ? n : Generator,
1585
- u = Object.create(c.prototype);
1586
- return _regeneratorDefine(u, "_invoke", function (r, n, o) {
1587
- var i,
1588
- c,
1589
- u,
1590
- f = 0,
1591
- p = o || [],
1592
- y = false,
1593
- G = {
1594
- p: 0,
1595
- n: 0,
1596
- v: e,
1597
- a: d,
1598
- f: d.bind(e, 4),
1599
- d: function d(t, r) {
1600
- return i = t, c = 0, u = e, G.n = r, a;
1601
- }
1602
- };
1603
- function d(r, n) {
1604
- for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
1605
- var o,
1606
- i = p[t],
1607
- d = G.p,
1608
- l = i[2];
1609
- r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
1569
+ c({}, "");
1570
+ } catch (t) {
1571
+ c = function c(t, r, e) {
1572
+ return t[r] = e;
1573
+ };
1574
+ }
1575
+ function h(r, e, n, o) {
1576
+ var i = e && e.prototype instanceof Generator ? e : Generator,
1577
+ a = Object.create(i.prototype);
1578
+ return c(a, "_invoke", function (r, e, n) {
1579
+ var o = 1;
1580
+ return function (i, a) {
1581
+ if (3 === o) throw Error("Generator is already running");
1582
+ if (4 === o) {
1583
+ if ("throw" === i) throw a;
1584
+ return {
1585
+ value: t,
1586
+ done: true
1587
+ };
1610
1588
  }
1611
- if (o || r > 1) return a;
1612
- throw y = true, n;
1613
- }
1614
- return function (o, p, l) {
1615
- if (f > 1) throw TypeError("Generator is already running");
1616
- for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
1617
- i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
1618
- try {
1619
- if (f = 2, i) {
1620
- if (c || (o = "next"), t = i[o]) {
1621
- if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
1622
- if (!t.done) return t;
1623
- u = t.value, c < 2 && (c = 0);
1624
- } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
1625
- i = e;
1626
- } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
1627
- } catch (t) {
1628
- i = e, c = 1, u = t;
1629
- } finally {
1630
- f = 1;
1589
+ for (n.method = i, n.arg = a;;) {
1590
+ var u = n.delegate;
1591
+ if (u) {
1592
+ var c = d(u, n);
1593
+ if (c) {
1594
+ if (c === f) continue;
1595
+ return c;
1596
+ }
1597
+ }
1598
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
1599
+ if (1 === o) throw o = 4, n.arg;
1600
+ n.dispatchException(n.arg);
1601
+ } else "return" === n.method && n.abrupt("return", n.arg);
1602
+ o = 3;
1603
+ var h = s(r, e, n);
1604
+ if ("normal" === h.type) {
1605
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
1606
+ return {
1607
+ value: h.arg,
1608
+ done: n.done
1609
+ };
1631
1610
  }
1611
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
1632
1612
  }
1633
- return {
1634
- value: t,
1635
- done: y
1636
- };
1637
1613
  };
1638
- }(r, o, i), true), u;
1614
+ }(r, n, new Context(o || [])), true), a;
1639
1615
  }
1640
- var a = {};
1641
- function Generator() {}
1642
- function GeneratorFunction() {}
1643
- function GeneratorFunctionPrototype() {}
1644
- t = Object.getPrototypeOf;
1645
- var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
1646
- return this;
1647
- }), t),
1648
- u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
1649
- function f(e) {
1650
- return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
1651
- }
1652
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
1653
- return this;
1654
- }), _regeneratorDefine(u, "toString", function () {
1655
- return "[object Generator]";
1656
- }), (_regenerator = function _regenerator() {
1657
- return {
1658
- w: i,
1659
- m: f
1660
- };
1661
- })();
1662
- }
1663
-
1664
- function AsyncIterator(t, e) {
1665
- function n(r, o, i, f) {
1616
+ function s(t, r, e) {
1666
1617
  try {
1667
- var c = t[r](o),
1668
- u = c.value;
1669
- return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
1670
- n("next", t, i, f);
1671
- }, function (t) {
1672
- n("throw", t, i, f);
1673
- }) : e.resolve(u).then(function (t) {
1674
- c.value = t, i(c);
1675
- }, function (t) {
1676
- return n("throw", t, i, f);
1677
- });
1618
+ return {
1619
+ type: "normal",
1620
+ arg: t.call(r, e)
1621
+ };
1678
1622
  } catch (t) {
1679
- f(t);
1623
+ return {
1624
+ type: "throw",
1625
+ arg: t
1626
+ };
1680
1627
  }
1681
1628
  }
1682
- var r;
1683
- this.next || (_regeneratorDefine(AsyncIterator.prototype), _regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
1629
+ r.wrap = h;
1630
+ var f = {};
1631
+ function Generator() {}
1632
+ function GeneratorFunction() {}
1633
+ function GeneratorFunctionPrototype() {}
1634
+ var l = {};
1635
+ c(l, i, function () {
1684
1636
  return this;
1685
- })), _regeneratorDefine(this, "_invoke", function (t, o, i) {
1686
- function f() {
1687
- return new e(function (e, r) {
1688
- n(t, i, e, r);
1637
+ });
1638
+ var p = Object.getPrototypeOf,
1639
+ y = p && p(p(x([])));
1640
+ y && y !== e && n.call(y, i) && (l = y);
1641
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
1642
+ function g(t) {
1643
+ ["next", "throw", "return"].forEach(function (r) {
1644
+ c(t, r, function (t) {
1645
+ return this._invoke(r, t);
1689
1646
  });
1647
+ });
1648
+ }
1649
+ function AsyncIterator(t, r) {
1650
+ function e(o, i, a, u) {
1651
+ var c = s(t[o], t, i);
1652
+ if ("throw" !== c.type) {
1653
+ var h = c.arg,
1654
+ f = h.value;
1655
+ return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
1656
+ e("next", t, a, u);
1657
+ }, function (t) {
1658
+ e("throw", t, a, u);
1659
+ }) : r.resolve(f).then(function (t) {
1660
+ h.value = t, a(h);
1661
+ }, function (t) {
1662
+ return e("throw", t, a, u);
1663
+ });
1664
+ }
1665
+ u(c.arg);
1690
1666
  }
1691
- return r = r ? r.then(f, f) : f();
1692
- }, true);
1693
- }
1694
-
1695
- function _regeneratorAsyncGen(r, e, t, o, n) {
1696
- return new AsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
1697
- }
1698
-
1699
- function _regeneratorAsync(n, e, r, t, o) {
1700
- var a = _regeneratorAsyncGen(n, e, r, t, o);
1701
- return a.next().then(function (n) {
1702
- return n.done ? n.value : a.next();
1703
- });
1704
- }
1705
-
1706
- function _regeneratorKeys(e) {
1707
- var n = Object(e),
1708
- r = [];
1709
- for (var t in n) r.unshift(t);
1710
- return function e() {
1711
- for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
1712
- return e.done = true, e;
1713
- };
1714
- }
1715
-
1716
- function _regeneratorValues(e) {
1717
- if (null != e) {
1718
- var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
1719
- r = 0;
1720
- if (t) return t.call(e);
1721
- if ("function" == typeof e.next) return e;
1722
- if (!isNaN(e.length)) return {
1723
- next: function next() {
1724
- return e && r >= e.length && (e = void 0), {
1725
- value: e && e[r++],
1726
- done: !e
1727
- };
1667
+ var o;
1668
+ c(this, "_invoke", function (t, n) {
1669
+ function i() {
1670
+ return new r(function (r, o) {
1671
+ e(t, n, r, o);
1672
+ });
1728
1673
  }
1729
- };
1730
- }
1731
- throw new TypeError(_typeof(e) + " is not iterable");
1732
- }
1733
-
1734
- function _regeneratorRuntime() {
1735
-
1736
- var r = _regenerator(),
1737
- e = r.m(_regeneratorRuntime),
1738
- t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
1739
- function n(r) {
1740
- var e = "function" == typeof r && r.constructor;
1741
- return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
1742
- }
1743
- var o = {
1744
- "throw": 1,
1745
- "return": 2,
1746
- "break": 3,
1747
- "continue": 3
1748
- };
1749
- function a(r) {
1750
- var e, t;
1751
- return function (n) {
1752
- e || (e = {
1753
- stop: function stop() {
1754
- return t(n.a, 2);
1755
- },
1756
- "catch": function _catch() {
1757
- return n.v;
1758
- },
1759
- abrupt: function abrupt(r, e) {
1760
- return t(n.a, o[r], e);
1761
- },
1762
- delegateYield: function delegateYield(r, o, a) {
1763
- return e.resultName = o, t(n.d, _regeneratorValues(r), a);
1764
- },
1765
- finish: function finish(r) {
1766
- return t(n.f, r);
1767
- }
1768
- }, t = function t(r, _t, o) {
1769
- n.p = e.prev, n.n = e.next;
1770
- try {
1771
- return r(_t, o);
1772
- } finally {
1773
- e.next = n.n;
1774
- }
1775
- }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
1776
- try {
1777
- return r.call(this, e);
1778
- } finally {
1779
- n.p = e.prev, n.n = e.next;
1674
+ return o = o ? o.then(i, i) : i();
1675
+ }, true);
1676
+ }
1677
+ function d(r, e) {
1678
+ var n = e.method,
1679
+ o = r.i[n];
1680
+ if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
1681
+ var i = s(o, r.i, e.arg);
1682
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
1683
+ var a = i.arg;
1684
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
1685
+ }
1686
+ function w(t) {
1687
+ this.tryEntries.push(t);
1688
+ }
1689
+ function m(r) {
1690
+ var e = r[4] || {};
1691
+ e.type = "normal", e.arg = t, r[4] = e;
1692
+ }
1693
+ function Context(t) {
1694
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(true);
1695
+ }
1696
+ function x(r) {
1697
+ if (null != r) {
1698
+ var e = r[i];
1699
+ if (e) return e.call(r);
1700
+ if ("function" == typeof r.next) return r;
1701
+ if (!isNaN(r.length)) {
1702
+ var o = -1,
1703
+ a = function e() {
1704
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = false, e;
1705
+ return e.value = t, e.done = true, e;
1706
+ };
1707
+ return a.next = a;
1780
1708
  }
1781
- };
1709
+ }
1710
+ throw new TypeError(_typeof(r) + " is not iterable");
1782
1711
  }
1783
- return (_regeneratorRuntime = function _regeneratorRuntime() {
1712
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
1713
+ var r = "function" == typeof t && t.constructor;
1714
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
1715
+ }, r.mark = function (t) {
1716
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
1717
+ }, r.awrap = function (t) {
1784
1718
  return {
1785
- wrap: function wrap(e, t, n, o) {
1786
- return r.w(a(e), t, n, o && o.reverse());
1787
- },
1788
- isGeneratorFunction: n,
1789
- mark: r.m,
1790
- awrap: function awrap(r, e) {
1791
- return new _OverloadYield(r, e);
1792
- },
1793
- AsyncIterator: AsyncIterator,
1794
- async: function async(r, e, t, o, u) {
1795
- return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
1796
- },
1797
- keys: _regeneratorKeys,
1798
- values: _regeneratorValues
1719
+ __await: t
1799
1720
  };
1800
- })();
1721
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
1722
+ return this;
1723
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
1724
+ void 0 === i && (i = Promise);
1725
+ var a = new AsyncIterator(h(t, e, n, o), i);
1726
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
1727
+ return t.done ? t.value : a.next();
1728
+ });
1729
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
1730
+ return this;
1731
+ }), c(v, "toString", function () {
1732
+ return "[object Generator]";
1733
+ }), r.keys = function (t) {
1734
+ var r = Object(t),
1735
+ e = [];
1736
+ for (var n in r) e.unshift(n);
1737
+ return function t() {
1738
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = false, t;
1739
+ return t.done = true, t;
1740
+ };
1741
+ }, r.values = x, Context.prototype = {
1742
+ constructor: Context,
1743
+ reset: function reset(r) {
1744
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
1745
+ },
1746
+ stop: function stop() {
1747
+ this.done = true;
1748
+ var t = this.tryEntries[0][4];
1749
+ if ("throw" === t.type) throw t.arg;
1750
+ return this.rval;
1751
+ },
1752
+ dispatchException: function dispatchException(r) {
1753
+ if (this.done) throw r;
1754
+ var e = this;
1755
+ function n(t) {
1756
+ a.type = "throw", a.arg = r, e.next = t;
1757
+ }
1758
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
1759
+ var i = this.tryEntries[o],
1760
+ a = i[4],
1761
+ u = this.prev,
1762
+ c = i[1],
1763
+ h = i[2];
1764
+ if (-1 === i[0]) return n("end"), false;
1765
+ if (!c && !h) throw Error("try statement without catch or finally");
1766
+ if (null != i[0] && i[0] <= u) {
1767
+ if (u < c) return this.method = "next", this.arg = t, n(c), true;
1768
+ if (u < h) return n(h), false;
1769
+ }
1770
+ }
1771
+ },
1772
+ abrupt: function abrupt(t, r) {
1773
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
1774
+ var n = this.tryEntries[e];
1775
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
1776
+ var o = n;
1777
+ break;
1778
+ }
1779
+ }
1780
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
1781
+ var i = o ? o[4] : {};
1782
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
1783
+ },
1784
+ complete: function complete(t, r) {
1785
+ if ("throw" === t.type) throw t.arg;
1786
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
1787
+ },
1788
+ finish: function finish(t) {
1789
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
1790
+ var e = this.tryEntries[r];
1791
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
1792
+ }
1793
+ },
1794
+ "catch": function _catch(t) {
1795
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
1796
+ var e = this.tryEntries[r];
1797
+ if (e[0] === t) {
1798
+ var n = e[4];
1799
+ if ("throw" === n.type) {
1800
+ var o = n.arg;
1801
+ m(e);
1802
+ }
1803
+ return o;
1804
+ }
1805
+ }
1806
+ throw Error("illegal catch attempt");
1807
+ },
1808
+ delegateYield: function delegateYield(r, e, n) {
1809
+ return this.delegate = {
1810
+ i: x(r),
1811
+ r: e,
1812
+ n: n
1813
+ }, "next" === this.method && (this.arg = t), f;
1814
+ }
1815
+ }, r;
1801
1816
  }
1802
1817
 
1803
1818
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
@@ -2236,26 +2251,26 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2236
2251
  _this.onClick(e);
2237
2252
  }
2238
2253
  });
2239
- _defineProperty(_assertThisInitialized(_this), "onDataTransferFiles", /*#__PURE__*/function () {
2240
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dataTransfer, existFileCallback) {
2241
- var _this$props2, multiple, accept, directory, items, files, acceptFiles;
2254
+ _defineProperty(_assertThisInitialized(_this), "onFileDrop", /*#__PURE__*/function () {
2255
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
2256
+ var multiple, files, _files;
2242
2257
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2243
2258
  while (1) switch (_context.prev = _context.next) {
2244
2259
  case 0:
2245
- _this$props2 = _this.props, multiple = _this$props2.multiple, accept = _this$props2.accept, directory = _this$props2.directory;
2246
- items = _toConsumableArray(dataTransfer.items || []);
2247
- files = _toConsumableArray(dataTransfer.files || []);
2248
- if (files.length > 0 || items.some(function (item) {
2249
- return item.kind === 'file';
2250
- })) {
2251
- existFileCallback === null || existFileCallback === void 0 || existFileCallback();
2260
+ multiple = _this.props.multiple;
2261
+ e.preventDefault();
2262
+ if (!(e.type === 'dragover')) {
2263
+ _context.next = 4;
2264
+ break;
2252
2265
  }
2253
- if (!directory) {
2266
+ return _context.abrupt("return");
2267
+ case 4:
2268
+ if (!_this.props.directory) {
2254
2269
  _context.next = 11;
2255
2270
  break;
2256
2271
  }
2257
2272
  _context.next = 7;
2258
- return traverseFileTree(Array.prototype.slice.call(items), function (_file) {
2273
+ return traverseFileTree(Array.prototype.slice.call(e.dataTransfer.items), function (_file) {
2259
2274
  return attrAccept(_file, _this.props.accept);
2260
2275
  });
2261
2276
  case 7:
@@ -2264,80 +2279,23 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2264
2279
  _context.next = 14;
2265
2280
  break;
2266
2281
  case 11:
2267
- acceptFiles = _toConsumableArray(files).filter(function (file) {
2268
- return attrAccept(file, accept);
2282
+ _files = _toConsumableArray(e.dataTransfer.files).filter(function (file) {
2283
+ return attrAccept(file, _this.props.accept);
2269
2284
  });
2270
2285
  if (multiple === false) {
2271
- acceptFiles = files.slice(0, 1);
2286
+ _files = _files.slice(0, 1);
2272
2287
  }
2273
- _this.uploadFiles(acceptFiles);
2288
+ _this.uploadFiles(_files);
2274
2289
  case 14:
2275
2290
  case "end":
2276
2291
  return _context.stop();
2277
2292
  }
2278
2293
  }, _callee);
2279
2294
  }));
2280
- return function (_x, _x2) {
2295
+ return function (_x) {
2281
2296
  return _ref.apply(this, arguments);
2282
2297
  };
2283
2298
  }());
2284
- _defineProperty(_assertThisInitialized(_this), "onFilePaste", /*#__PURE__*/function () {
2285
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
2286
- var pastable, clipboardData;
2287
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2288
- while (1) switch (_context2.prev = _context2.next) {
2289
- case 0:
2290
- pastable = _this.props.pastable;
2291
- if (pastable) {
2292
- _context2.next = 3;
2293
- break;
2294
- }
2295
- return _context2.abrupt("return");
2296
- case 3:
2297
- if (!(e.type === 'paste')) {
2298
- _context2.next = 6;
2299
- break;
2300
- }
2301
- clipboardData = e.clipboardData;
2302
- return _context2.abrupt("return", _this.onDataTransferFiles(clipboardData, function () {
2303
- e.preventDefault();
2304
- }));
2305
- case 6:
2306
- case "end":
2307
- return _context2.stop();
2308
- }
2309
- }, _callee2);
2310
- }));
2311
- return function (_x3) {
2312
- return _ref2.apply(this, arguments);
2313
- };
2314
- }());
2315
- _defineProperty(_assertThisInitialized(_this), "onFileDragOver", function (e) {
2316
- e.preventDefault();
2317
- });
2318
- _defineProperty(_assertThisInitialized(_this), "onFileDrop", /*#__PURE__*/function () {
2319
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e) {
2320
- var dataTransfer;
2321
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2322
- while (1) switch (_context3.prev = _context3.next) {
2323
- case 0:
2324
- e.preventDefault();
2325
- if (!(e.type === 'drop')) {
2326
- _context3.next = 4;
2327
- break;
2328
- }
2329
- dataTransfer = e.dataTransfer;
2330
- return _context3.abrupt("return", _this.onDataTransferFiles(dataTransfer));
2331
- case 4:
2332
- case "end":
2333
- return _context3.stop();
2334
- }
2335
- }, _callee3);
2336
- }));
2337
- return function (_x4) {
2338
- return _ref3.apply(this, arguments);
2339
- };
2340
- }());
2341
2299
  _defineProperty(_assertThisInitialized(_this), "uploadFiles", function (files) {
2342
2300
  var originFiles = _toConsumableArray(files);
2343
2301
  var postFiles = originFiles.map(function (file) {
@@ -2349,9 +2307,9 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2349
2307
  // Batch upload files
2350
2308
  Promise.all(postFiles).then(function (fileList) {
2351
2309
  var onBatchStart = _this.props.onBatchStart;
2352
- onBatchStart === null || onBatchStart === void 0 || onBatchStart(fileList.map(function (_ref4) {
2353
- var origin = _ref4.origin,
2354
- parsedFile = _ref4.parsedFile;
2310
+ onBatchStart === null || onBatchStart === void 0 || onBatchStart(fileList.map(function (_ref2) {
2311
+ var origin = _ref2.origin,
2312
+ parsedFile = _ref2.parsedFile;
2355
2313
  return {
2356
2314
  file: origin,
2357
2315
  parsedFile: parsedFile
@@ -2368,35 +2326,35 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2368
2326
  * Process file before upload. When all the file is ready, we start upload.
2369
2327
  */
2370
2328
  _defineProperty(_assertThisInitialized(_this), "processFile", /*#__PURE__*/function () {
2371
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(file, fileList) {
2329
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList) {
2372
2330
  var beforeUpload, transformedFile, action, mergedAction, data, mergedData, parsedData, parsedFile, mergedParsedFile;
2373
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
2374
- while (1) switch (_context4.prev = _context4.next) {
2331
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2332
+ while (1) switch (_context2.prev = _context2.next) {
2375
2333
  case 0:
2376
2334
  beforeUpload = _this.props.beforeUpload;
2377
2335
  transformedFile = file;
2378
2336
  if (!beforeUpload) {
2379
- _context4.next = 14;
2337
+ _context2.next = 14;
2380
2338
  break;
2381
2339
  }
2382
- _context4.prev = 3;
2383
- _context4.next = 6;
2340
+ _context2.prev = 3;
2341
+ _context2.next = 6;
2384
2342
  return beforeUpload(file, fileList);
2385
2343
  case 6:
2386
- transformedFile = _context4.sent;
2387
- _context4.next = 12;
2344
+ transformedFile = _context2.sent;
2345
+ _context2.next = 12;
2388
2346
  break;
2389
2347
  case 9:
2390
- _context4.prev = 9;
2391
- _context4.t0 = _context4["catch"](3);
2348
+ _context2.prev = 9;
2349
+ _context2.t0 = _context2["catch"](3);
2392
2350
  // Rejection will also trade as false
2393
2351
  transformedFile = false;
2394
2352
  case 12:
2395
2353
  if (!(transformedFile === false)) {
2396
- _context4.next = 14;
2354
+ _context2.next = 14;
2397
2355
  break;
2398
2356
  }
2399
- return _context4.abrupt("return", {
2357
+ return _context2.abrupt("return", {
2400
2358
  origin: file,
2401
2359
  parsedFile: null,
2402
2360
  action: null,
@@ -2406,14 +2364,14 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2406
2364
  // Get latest action
2407
2365
  action = _this.props.action;
2408
2366
  if (!(typeof action === 'function')) {
2409
- _context4.next = 21;
2367
+ _context2.next = 21;
2410
2368
  break;
2411
2369
  }
2412
- _context4.next = 18;
2370
+ _context2.next = 18;
2413
2371
  return action(file);
2414
2372
  case 18:
2415
- mergedAction = _context4.sent;
2416
- _context4.next = 22;
2373
+ mergedAction = _context2.sent;
2374
+ _context2.next = 22;
2417
2375
  break;
2418
2376
  case 21:
2419
2377
  mergedAction = action;
@@ -2421,14 +2379,14 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2421
2379
  // Get latest data
2422
2380
  data = _this.props.data;
2423
2381
  if (!(typeof data === 'function')) {
2424
- _context4.next = 29;
2382
+ _context2.next = 29;
2425
2383
  break;
2426
2384
  }
2427
- _context4.next = 26;
2385
+ _context2.next = 26;
2428
2386
  return data(file);
2429
2387
  case 26:
2430
- mergedData = _context4.sent;
2431
- _context4.next = 30;
2388
+ mergedData = _context2.sent;
2389
+ _context2.next = 30;
2432
2390
  break;
2433
2391
  case 29:
2434
2392
  mergedData = data;
@@ -2446,7 +2404,7 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2446
2404
  }
2447
2405
  mergedParsedFile = parsedFile;
2448
2406
  mergedParsedFile.uid = file.uid;
2449
- return _context4.abrupt("return", {
2407
+ return _context2.abrupt("return", {
2450
2408
  origin: file,
2451
2409
  data: mergedData,
2452
2410
  parsedFile: mergedParsedFile,
@@ -2454,12 +2412,12 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2454
2412
  });
2455
2413
  case 35:
2456
2414
  case "end":
2457
- return _context4.stop();
2415
+ return _context2.stop();
2458
2416
  }
2459
- }, _callee4, null, [[3, 9]]);
2417
+ }, _callee2, null, [[3, 9]]);
2460
2418
  }));
2461
- return function (_x5, _x6) {
2462
- return _ref5.apply(this, arguments);
2419
+ return function (_x2, _x3) {
2420
+ return _ref3.apply(this, arguments);
2463
2421
  };
2464
2422
  }());
2465
2423
  _defineProperty(_assertThisInitialized(_this), "saveFileInput", function (node) {
@@ -2471,46 +2429,31 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2471
2429
  key: "componentDidMount",
2472
2430
  value: function componentDidMount() {
2473
2431
  this._isMounted = true;
2474
- var pastable = this.props.pastable;
2475
- if (pastable) {
2476
- document.addEventListener('paste', this.onFilePaste);
2477
- }
2478
2432
  }
2479
2433
  }, {
2480
2434
  key: "componentWillUnmount",
2481
2435
  value: function componentWillUnmount() {
2482
2436
  this._isMounted = false;
2483
2437
  this.abort();
2484
- document.removeEventListener('paste', this.onFilePaste);
2485
- }
2486
- }, {
2487
- key: "componentDidUpdate",
2488
- value: function componentDidUpdate(prevProps) {
2489
- var pastable = this.props.pastable;
2490
- if (pastable && !prevProps.pastable) {
2491
- document.addEventListener('paste', this.onFilePaste);
2492
- } else if (!pastable && prevProps.pastable) {
2493
- document.removeEventListener('paste', this.onFilePaste);
2494
- }
2495
2438
  }
2496
2439
  }, {
2497
2440
  key: "post",
2498
- value: function post(_ref6) {
2441
+ value: function post(_ref4) {
2499
2442
  var _this2 = this;
2500
- var data = _ref6.data,
2501
- origin = _ref6.origin,
2502
- action = _ref6.action,
2503
- parsedFile = _ref6.parsedFile;
2443
+ var data = _ref4.data,
2444
+ origin = _ref4.origin,
2445
+ action = _ref4.action,
2446
+ parsedFile = _ref4.parsedFile;
2504
2447
  if (!this._isMounted) {
2505
2448
  return;
2506
2449
  }
2507
- var _this$props3 = this.props,
2508
- onStart = _this$props3.onStart,
2509
- customRequest = _this$props3.customRequest,
2510
- name = _this$props3.name,
2511
- headers = _this$props3.headers,
2512
- withCredentials = _this$props3.withCredentials,
2513
- method = _this$props3.method;
2450
+ var _this$props2 = this.props,
2451
+ onStart = _this$props2.onStart,
2452
+ customRequest = _this$props2.customRequest,
2453
+ name = _this$props2.name,
2454
+ headers = _this$props2.headers,
2455
+ withCredentials = _this$props2.withCredentials,
2456
+ method = _this$props2.method;
2514
2457
  var uid = origin.uid;
2515
2458
  var request = customRequest || upload;
2516
2459
  var requestOption = {
@@ -2568,28 +2511,28 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2568
2511
  }, {
2569
2512
  key: "render",
2570
2513
  value: function render() {
2571
- var _this$props4 = this.props,
2572
- Tag = _this$props4.component,
2573
- prefixCls = _this$props4.prefixCls,
2574
- className = _this$props4.className,
2575
- _this$props4$classNam = _this$props4.classNames,
2576
- classNames$1 = _this$props4$classNam === void 0 ? {} : _this$props4$classNam,
2577
- disabled = _this$props4.disabled,
2578
- id = _this$props4.id,
2579
- name = _this$props4.name,
2580
- style = _this$props4.style,
2581
- _this$props4$styles = _this$props4.styles,
2582
- styles = _this$props4$styles === void 0 ? {} : _this$props4$styles,
2583
- multiple = _this$props4.multiple,
2584
- accept = _this$props4.accept,
2585
- capture = _this$props4.capture,
2586
- children = _this$props4.children,
2587
- directory = _this$props4.directory,
2588
- openFileDialogOnClick = _this$props4.openFileDialogOnClick,
2589
- onMouseEnter = _this$props4.onMouseEnter,
2590
- onMouseLeave = _this$props4.onMouseLeave,
2591
- hasControlInside = _this$props4.hasControlInside,
2592
- otherProps = _objectWithoutProperties(_this$props4, _excluded$4);
2514
+ var _this$props3 = this.props,
2515
+ Tag = _this$props3.component,
2516
+ prefixCls = _this$props3.prefixCls,
2517
+ className = _this$props3.className,
2518
+ _this$props3$classNam = _this$props3.classNames,
2519
+ classNames$1 = _this$props3$classNam === void 0 ? {} : _this$props3$classNam,
2520
+ disabled = _this$props3.disabled,
2521
+ id = _this$props3.id,
2522
+ name = _this$props3.name,
2523
+ style = _this$props3.style,
2524
+ _this$props3$styles = _this$props3.styles,
2525
+ styles = _this$props3$styles === void 0 ? {} : _this$props3$styles,
2526
+ multiple = _this$props3.multiple,
2527
+ accept = _this$props3.accept,
2528
+ capture = _this$props3.capture,
2529
+ children = _this$props3.children,
2530
+ directory = _this$props3.directory,
2531
+ openFileDialogOnClick = _this$props3.openFileDialogOnClick,
2532
+ onMouseEnter = _this$props3.onMouseEnter,
2533
+ onMouseLeave = _this$props3.onMouseLeave,
2534
+ hasControlInside = _this$props3.hasControlInside,
2535
+ otherProps = _objectWithoutProperties(_this$props3, _excluded$4);
2593
2536
  var cls = classNames(_defineProperty(_defineProperty(_defineProperty({}, prefixCls, true), "".concat(prefixCls, "-disabled"), disabled), className, className));
2594
2537
  // because input don't have directory/webkitdirectory type declaration
2595
2538
  var dirProps = directory ? {
@@ -2602,7 +2545,7 @@ var AjaxUploader = /*#__PURE__*/function (_Component) {
2602
2545
  onMouseEnter: onMouseEnter,
2603
2546
  onMouseLeave: onMouseLeave,
2604
2547
  onDrop: this.onFileDrop,
2605
- onDragOver: this.onFileDragOver,
2548
+ onDragOver: this.onFileDrop,
2606
2549
  tabIndex: hasControlInside ? undefined : '0'
2607
2550
  };
2608
2551
  return /*#__PURE__*/React__default.createElement(Tag, _extends({}, events, {
@@ -2720,7 +2663,8 @@ const initMotionCommonLeave = duration => ({
2720
2663
  animationDuration: duration,
2721
2664
  animationFillMode: 'both'
2722
2665
  });
2723
- const initMotion = (motionCls, inKeyframes, outKeyframes, duration, sameLevel = false) => {
2666
+ const initMotion = function (motionCls, inKeyframes, outKeyframes, duration) {
2667
+ let sameLevel = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
2724
2668
  const sameLevelPrefix = sameLevel ? '&' : '';
2725
2669
  return {
2726
2670
  [`
@@ -2763,7 +2707,8 @@ const fadeOut = new Keyframe('antFadeOut', {
2763
2707
  opacity: 0
2764
2708
  }
2765
2709
  });
2766
- const initFadeMotion = (token, sameLevel = false) => {
2710
+ const initFadeMotion = function (token) {
2711
+ let sameLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2767
2712
  const {
2768
2713
  antCls
2769
2714
  } = token;
@@ -3086,7 +3031,7 @@ const genListStyle = token => {
3086
3031
  }
3087
3032
  },
3088
3033
  [`${componentCls}-icon ${iconCls}`]: {
3089
- color: token.colorIcon,
3034
+ color: token.colorTextDescription,
3090
3035
  fontSize
3091
3036
  },
3092
3037
  [`${itemCls}-progress`]: {
@@ -3445,7 +3390,7 @@ const genBaseStyle$1 = token => {
3445
3390
  };
3446
3391
  };
3447
3392
  const prepareComponentToken$3 = token => ({
3448
- actionsColor: token.colorIcon
3393
+ actionsColor: token.colorTextDescription
3449
3394
  });
3450
3395
  // ============================== Export ==============================
3451
3396
  const useStyle$4 = genStyleHooks('Upload', token => {
@@ -3487,19 +3432,22 @@ const getCurrentHeight = node => ({
3487
3432
  height: node ? node.offsetHeight : 0
3488
3433
  });
3489
3434
  const skipOpacityTransition = (_, event) => (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';
3490
- const initCollapseMotion = (rootCls = defaultPrefixCls) => ({
3491
- motionName: `${rootCls}-motion-collapse`,
3492
- onAppearStart: getCollapsedHeight,
3493
- onEnterStart: getCollapsedHeight,
3494
- onAppearActive: getRealHeight,
3495
- onEnterActive: getRealHeight,
3496
- onLeaveStart: getCurrentHeight,
3497
- onLeaveActive: getCollapsedHeight,
3498
- onAppearEnd: skipOpacityTransition,
3499
- onEnterEnd: skipOpacityTransition,
3500
- onLeaveEnd: skipOpacityTransition,
3501
- motionDeadline: 500
3502
- });
3435
+ const initCollapseMotion = function () {
3436
+ let rootCls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultPrefixCls;
3437
+ return {
3438
+ motionName: `${rootCls}-motion-collapse`,
3439
+ onAppearStart: getCollapsedHeight,
3440
+ onEnterStart: getCollapsedHeight,
3441
+ onAppearActive: getRealHeight,
3442
+ onEnterActive: getRealHeight,
3443
+ onLeaveStart: getCurrentHeight,
3444
+ onLeaveActive: getCollapsedHeight,
3445
+ onAppearEnd: skipOpacityTransition,
3446
+ onEnterEnd: skipOpacityTransition,
3447
+ onLeaveEnd: skipOpacityTransition,
3448
+ motionDeadline: 500
3449
+ };
3450
+ };
3503
3451
  const getTransitionName = (rootPrefixCls, motion, transitionName) => {
3504
3452
  if (transitionName !== undefined) {
3505
3453
  return transitionName;
@@ -3685,12 +3633,7 @@ const defaultReactRender = (node, container) => {
3685
3633
  };
3686
3634
  };
3687
3635
  let unstableRender = defaultReactRender;
3688
- /**
3689
- * @deprecated Set React render function for compatible usage.
3690
- * This is internal usage only compatible with React 19.
3691
- * And will be removed in next major version.
3692
- */
3693
- function unstableSetRender(render) {
3636
+ function getReactRender() {
3694
3637
  return unstableRender;
3695
3638
  }
3696
3639
 
@@ -3813,15 +3756,18 @@ const WaveEffect = props => {
3813
3756
  }
3814
3757
  return false;
3815
3758
  }
3816
- }, ({
3817
- className: motionClassName
3818
- }, ref) => (/*#__PURE__*/React.createElement("div", {
3819
- ref: composeRef(divRef, ref),
3820
- className: classNames(className, motionClassName, {
3821
- 'wave-quick': isSmallComponent
3822
- }),
3823
- style: waveStyle
3824
- })));
3759
+ }, (_ref, ref) => {
3760
+ let {
3761
+ className: motionClassName
3762
+ } = _ref;
3763
+ return /*#__PURE__*/React.createElement("div", {
3764
+ ref: composeRef(divRef, ref),
3765
+ className: classNames(className, motionClassName, {
3766
+ 'wave-quick': isSmallComponent
3767
+ }),
3768
+ style: waveStyle
3769
+ });
3770
+ });
3825
3771
  };
3826
3772
  const showWaveEffect = (target, info) => {
3827
3773
  var _a;
@@ -3838,7 +3784,7 @@ const showWaveEffect = (target, info) => {
3838
3784
  holder.style.left = '0px';
3839
3785
  holder.style.top = '0px';
3840
3786
  target === null || target === void 0 ? void 0 : target.insertBefore(holder, target === null || target === void 0 ? void 0 : target.firstChild);
3841
- const reactRender = unstableSetRender();
3787
+ const reactRender = getReactRender();
3842
3788
  let unmountCallback = null;
3843
3789
  function registerUnmount() {
3844
3790
  return unmountCallback;
@@ -4150,10 +4096,11 @@ const DefaultLoadingIcon = props => {
4150
4096
  onEnterActive: getRealWidth,
4151
4097
  onLeaveStart: getRealWidth,
4152
4098
  onLeaveActive: getCollapsedWidth
4153
- }, ({
4154
- className: motionCls,
4155
- style: motionStyle
4156
- }, ref) => {
4099
+ }, (_ref, ref) => {
4100
+ let {
4101
+ className: motionCls,
4102
+ style: motionStyle
4103
+ } = _ref;
4157
4104
  const mergedStyle = Object.assign(Object.assign({}, style), motionStyle);
4158
4105
  return /*#__PURE__*/React__default.createElement(InnerLoadingIcon, {
4159
4106
  prefixCls: prefixCls,
@@ -4305,13 +4252,16 @@ let AggregationColor = /*#__PURE__*/function () {
4305
4252
  }
4306
4253
  const isArray = Array.isArray(color);
4307
4254
  if (isArray && color.length) {
4308
- this.colors = color.map(({
4309
- color: c,
4310
- percent
4311
- }) => ({
4312
- color: new AggregationColor(c),
4313
- percent
4314
- }));
4255
+ this.colors = color.map(_ref => {
4256
+ let {
4257
+ color: c,
4258
+ percent
4259
+ } = _ref;
4260
+ return {
4261
+ color: new AggregationColor(c),
4262
+ percent
4263
+ };
4264
+ });
4315
4265
  this.metaColor = new Color(this.colors[0].color.metaColor);
4316
4266
  } else {
4317
4267
  this.metaColor = new Color(isArray ? '' : color);
@@ -4850,7 +4800,8 @@ const genCompatibleButtonStyle = token => Object.assign(Object.assign(Object.ass
4850
4800
  color: token.colorLinkActive
4851
4801
  }));
4852
4802
  // =============================== Size ===============================
4853
- const genButtonStyle = (token, prefixCls = '') => {
4803
+ const genButtonStyle = function (token) {
4804
+ let prefixCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
4854
4805
  const {
4855
4806
  componentCls,
4856
4807
  controlHeight,
@@ -5000,9 +4951,10 @@ function compactItemBorderRadius(prefixCls, parentCls, options) {
5000
4951
  }
5001
4952
  };
5002
4953
  }
5003
- function genCompactItemStyle(token, options = {
5004
- focus: true
5005
- }) {
4954
+ function genCompactItemStyle(token) {
4955
+ let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
4956
+ focus: true
4957
+ };
5006
4958
  const {
5007
4959
  componentCls
5008
4960
  } = token;
@@ -5148,29 +5100,16 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
5148
5100
  // https://github.com/ant-design/ant-design/issues/47605
5149
5101
  // Compatible with original `type` behavior
5150
5102
  const mergedType = type || 'default';
5151
- const {
5152
- button
5153
- } = React__default.useContext(ConfigContext);
5154
5103
  const [mergedColor, mergedVariant] = useMemo$1(() => {
5155
- // >>>>> Local
5156
- // Color & Variant
5157
5104
  if (color && variant) {
5158
5105
  return [color, variant];
5159
5106
  }
5160
- // Sugar syntax
5161
- if (type || danger) {
5162
- const colorVariantPair = ButtonTypeMap[mergedType] || [];
5163
- if (danger) {
5164
- return ['danger', colorVariantPair[1]];
5165
- }
5166
- return colorVariantPair;
5167
- }
5168
- // >>> Context fallback
5169
- if ((button === null || button === void 0 ? void 0 : button.color) && (button === null || button === void 0 ? void 0 : button.variant)) {
5170
- return [button.color, button.variant];
5107
+ const colorVariantPair = ButtonTypeMap[mergedType] || [];
5108
+ if (danger) {
5109
+ return ['danger', colorVariantPair[1]];
5171
5110
  }
5172
- return ['default', 'outlined'];
5173
- }, [type, color, variant, danger, button === null || button === void 0 ? void 0 : button.variant, button === null || button === void 0 ? void 0 : button.color]);
5111
+ return colorVariantPair;
5112
+ }, [type, color, variant, danger]);
5174
5113
  const isDanger = mergedColor === 'danger';
5175
5114
  const mergedColorText = isDanger ? 'dangerous' : mergedColor;
5176
5115
  const {
@@ -5205,9 +5144,8 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
5205
5144
  };
5206
5145
  }, []);
5207
5146
  // ========================= Effect =========================
5208
- // Loading. Should use `useLayoutEffect` to avoid low perf multiple click issue.
5209
- // https://github.com/ant-design/ant-design/issues/51325
5210
- useLayoutEffect(() => {
5147
+ // Loading
5148
+ useEffect(() => {
5211
5149
  let delayTimer = null;
5212
5150
  if (loadingOrDelay.delay > 0) {
5213
5151
  delayTimer = setTimeout(() => {
@@ -5224,7 +5162,7 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
5224
5162
  }
5225
5163
  }
5226
5164
  return cleanupTimer;
5227
- }, [loadingOrDelay.delay, loadingOrDelay.loading]);
5165
+ }, [loadingOrDelay]);
5228
5166
  // Two chinese characters check
5229
5167
  useEffect(() => {
5230
5168
  // FIXME: for HOC usage like <FormatMessage />
@@ -5282,7 +5220,7 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
5282
5220
  // ========================= Render =========================
5283
5221
  const classes = classNames(prefixCls, hashId, cssVarCls, {
5284
5222
  [`${prefixCls}-${shape}`]: shape !== 'default' && shape,
5285
- // Compatible with versions earlier than 5.21.0
5223
+ // line(253 - 254): Compatible with versions earlier than 5.21.0
5286
5224
  [`${prefixCls}-${mergedType}`]: mergedType,
5287
5225
  [`${prefixCls}-dangerous`]: danger,
5288
5226
  [`${prefixCls}-color-${mergedColorText}`]: mergedColorText,
@@ -5366,9 +5304,12 @@ function file2Obj(file) {
5366
5304
  /** Upload fileList. Replace file if exist or just push into it. */
5367
5305
  function updateFileList(file, fileList) {
5368
5306
  const nextFileList = _toConsumableArray(fileList);
5369
- const fileIndex = nextFileList.findIndex(({
5370
- uid
5371
- }) => uid === file.uid);
5307
+ const fileIndex = nextFileList.findIndex(_ref => {
5308
+ let {
5309
+ uid
5310
+ } = _ref;
5311
+ return uid === file.uid;
5312
+ });
5372
5313
  if (fileIndex === -1) {
5373
5314
  nextFileList.push(file);
5374
5315
  } else {
@@ -5389,7 +5330,8 @@ function removeFileItem(file, fileList) {
5389
5330
  return removed;
5390
5331
  }
5391
5332
  // ==================== Default Image Preview ====================
5392
- const extname = (url = '') => {
5333
+ const extname = function () {
5334
+ let url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
5393
5335
  const temp = url.split('/');
5394
5336
  const filename = temp[temp.length - 1];
5395
5337
  const filenameWithoutSuffix = filename.split(/#|\?/)[0];
@@ -9016,11 +8958,12 @@ const FormItemInputContext = /*#__PURE__*/React.createContext({});
9016
8958
  if (process.env.NODE_ENV !== 'production') {
9017
8959
  FormItemInputContext.displayName = 'FormItemInputContext';
9018
8960
  }
9019
- const NoFormStyle = ({
9020
- children,
9021
- status,
9022
- override
9023
- }) => {
8961
+ const NoFormStyle = _ref => {
8962
+ let {
8963
+ children,
8964
+ status,
8965
+ override
8966
+ } = _ref;
9024
8967
  const formItemInputContext = React.useContext(FormItemInputContext);
9025
8968
  const newFormItemInputContext = React.useMemo(() => {
9026
8969
  const newContext = Object.assign({}, formItemInputContext);
@@ -9595,18 +9538,21 @@ const genTooltipStyle = token => {
9595
9538
  [`${componentCls}-content`]: {
9596
9539
  position: 'relative'
9597
9540
  }
9598
- }), genPresetColor(token, (colorKey, {
9599
- darkColor
9600
- }) => ({
9601
- [`&${componentCls}-${colorKey}`]: {
9602
- [`${componentCls}-inner`]: {
9603
- backgroundColor: darkColor
9604
- },
9605
- [`${componentCls}-arrow`]: {
9606
- '--antd-arrow-background-color': darkColor
9541
+ }), genPresetColor(token, (colorKey, _ref) => {
9542
+ let {
9543
+ darkColor
9544
+ } = _ref;
9545
+ return {
9546
+ [`&${componentCls}-${colorKey}`]: {
9547
+ [`${componentCls}-inner`]: {
9548
+ backgroundColor: darkColor
9549
+ },
9550
+ [`${componentCls}-arrow`]: {
9551
+ '--antd-arrow-background-color': darkColor
9552
+ }
9607
9553
  }
9608
- }
9609
- }))), {
9554
+ };
9555
+ })), {
9610
9556
  // RTL
9611
9557
  '&-rtl': {
9612
9558
  direction: 'rtl'
@@ -9633,7 +9579,8 @@ const prepareComponentToken$1 = token => Object.assign(Object.assign({
9633
9579
  })), getArrowToken(merge(token, {
9634
9580
  borderRadiusOuter: Math.min(token.borderRadiusOuter, 4)
9635
9581
  })));
9636
- const useStyle$1 = (prefixCls, injectStyle = true) => {
9582
+ const useStyle$1 = (function (prefixCls) {
9583
+ let injectStyle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
9637
9584
  const useStyle = genStyleHooks('Tooltip', token => {
9638
9585
  const {
9639
9586
  borderRadius,
@@ -9654,7 +9601,7 @@ const useStyle$1 = (prefixCls, injectStyle = true) => {
9654
9601
  injectStyle
9655
9602
  });
9656
9603
  return useStyle(prefixCls);
9657
- };
9604
+ });
9658
9605
 
9659
9606
  const inverseColors = PresetColors.map(color => `${color}-inverse`);
9660
9607
  /**
@@ -9662,7 +9609,8 @@ const inverseColors = PresetColors.map(color => `${color}-inverse`);
9662
9609
  * @param color color to be judged
9663
9610
  * @param includeInverse whether to include reversed colors
9664
9611
  */
9665
- function isPresetColor(color, includeInverse = true) {
9612
+ function isPresetColor(color) {
9613
+ let includeInverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
9666
9614
  if (includeInverse) {
9667
9615
  return [].concat(_toConsumableArray(inverseColors), _toConsumableArray(PresetColors)).includes(color);
9668
9616
  }
@@ -9740,7 +9688,6 @@ const InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {
9740
9688
  afterOpenChange,
9741
9689
  afterVisibleChange,
9742
9690
  destroyTooltipOnHide,
9743
- destroyOnHidden,
9744
9691
  arrow = true,
9745
9692
  title,
9746
9693
  overlay,
@@ -9757,7 +9704,7 @@ const InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {
9757
9704
  styles,
9758
9705
  classNames: tooltipClassNames
9759
9706
  } = props,
9760
- restProps = __rest$3(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
9707
+ restProps = __rest$3(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
9761
9708
  const mergedShowArrow = !!arrow;
9762
9709
  const [, token] = useToken();
9763
9710
  const {
@@ -9790,7 +9737,8 @@ const InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {
9790
9737
  });
9791
9738
  // ============================== Warn ==============================
9792
9739
  if (process.env.NODE_ENV !== 'production') {
9793
- [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange'], ['destroyTooltipOnHide', 'destroyOnHidden'], ['arrowPointAtCenter', 'arrow={{ pointAtCenter: true }}'], ['overlayStyle', 'styles={{ root: {} }}'], ['overlayInnerStyle', 'styles={{ body: {} }}'], ['overlayClassName', 'classNames={{ root: "" }}']].forEach(([deprecatedName, newName]) => {
9740
+ [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange'], ['arrowPointAtCenter', 'arrow={{ pointAtCenter: true }}'], ['overlayStyle', 'styles={{ root: {} }}'], ['overlayInnerStyle', 'styles={{ body: {} }}'], ['overlayClassName', 'classNames={{ root: "" }}']].forEach(_ref => {
9741
+ let [deprecatedName, newName] = _ref;
9794
9742
  warning.deprecated(!(deprecatedName in props), deprecatedName, newName);
9795
9743
  });
9796
9744
  process.env.NODE_ENV !== "production" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === 'boolean', 'usage', '`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.') : void 0;
@@ -9884,8 +9832,7 @@ const InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {
9884
9832
  motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', props.transitionName),
9885
9833
  motionDeadline: 1000
9886
9834
  },
9887
- // TODO: In the future, destroyTooltipOnHide in rc-tooltip needs to be upgrade to destroyOnHidden
9888
- destroyTooltipOnHide: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : !!destroyTooltipOnHide
9835
+ destroyTooltipOnHide: !!destroyTooltipOnHide
9889
9836
  }), tempOpen ? cloneElement(child, {
9890
9837
  className: childCls
9891
9838
  }) : child);
@@ -9908,10 +9855,11 @@ function validProgress(progress) {
9908
9855
  }
9909
9856
  return progress;
9910
9857
  }
9911
- function getSuccessPercent({
9912
- success,
9913
- successPercent
9914
- }) {
9858
+ function getSuccessPercent(_ref) {
9859
+ let {
9860
+ success,
9861
+ successPercent
9862
+ } = _ref;
9915
9863
  let percent = successPercent;
9916
9864
  /** @deprecated Use `percent` instead */
9917
9865
  if (success && 'progress' in success) {
@@ -9922,21 +9870,23 @@ function getSuccessPercent({
9922
9870
  }
9923
9871
  return percent;
9924
9872
  }
9925
- const getPercentage = ({
9926
- percent,
9927
- success,
9928
- successPercent
9929
- }) => {
9873
+ const getPercentage = _ref2 => {
9874
+ let {
9875
+ percent,
9876
+ success,
9877
+ successPercent
9878
+ } = _ref2;
9930
9879
  const realSuccessPercent = validProgress(getSuccessPercent({
9931
9880
  success,
9932
9881
  successPercent
9933
9882
  }));
9934
9883
  return [realSuccessPercent, validProgress(validProgress(percent) - realSuccessPercent)];
9935
9884
  };
9936
- const getStrokeColor = ({
9937
- success = {},
9938
- strokeColor
9939
- }) => {
9885
+ const getStrokeColor = _ref3 => {
9886
+ let {
9887
+ success = {},
9888
+ strokeColor
9889
+ } = _ref3;
9940
9890
  const {
9941
9891
  strokeColor: successColor
9942
9892
  } = success;
@@ -10382,10 +10332,13 @@ const sortGradient = gradients => {
10382
10332
  }
10383
10333
  });
10384
10334
  tempArr = tempArr.sort((a, b) => a.key - b.key);
10385
- return tempArr.map(({
10386
- key,
10387
- value
10388
- }) => `${value} ${key}%`).join(', ');
10335
+ return tempArr.map(_ref => {
10336
+ let {
10337
+ key,
10338
+ value
10339
+ } = _ref;
10340
+ return `${value} ${key}%`;
10341
+ }).join(', ');
10389
10342
  };
10390
10343
  /**
10391
10344
  * Then this man came to realize the truth: Besides six pence, there is the moon. Besides bread and
@@ -10681,30 +10634,31 @@ if (process.env.NODE_ENV !== 'production') {
10681
10634
  Progress.displayName = 'Progress';
10682
10635
  }
10683
10636
 
10684
- const ListItem = /*#__PURE__*/React.forwardRef(({
10685
- prefixCls,
10686
- className,
10687
- style,
10688
- locale,
10689
- listType,
10690
- file,
10691
- items,
10692
- progress: progressProps,
10693
- iconRender,
10694
- actionIconRender,
10695
- itemRender,
10696
- isImgUrl,
10697
- showPreviewIcon,
10698
- showRemoveIcon,
10699
- showDownloadIcon,
10700
- previewIcon: customPreviewIcon,
10701
- removeIcon: customRemoveIcon,
10702
- downloadIcon: customDownloadIcon,
10703
- extra: customExtra,
10704
- onPreview,
10705
- onDownload,
10706
- onClose
10707
- }, ref) => {
10637
+ const ListItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
10638
+ let {
10639
+ prefixCls,
10640
+ className,
10641
+ style,
10642
+ locale,
10643
+ listType,
10644
+ file,
10645
+ items,
10646
+ progress: progressProps,
10647
+ iconRender,
10648
+ actionIconRender,
10649
+ itemRender,
10650
+ isImgUrl,
10651
+ showPreviewIcon,
10652
+ showRemoveIcon,
10653
+ showDownloadIcon,
10654
+ previewIcon: customPreviewIcon,
10655
+ removeIcon: customRemoveIcon,
10656
+ downloadIcon: customDownloadIcon,
10657
+ extra: customExtra,
10658
+ onPreview,
10659
+ onDownload,
10660
+ onClose
10661
+ } = _ref;
10708
10662
  var _a, _b;
10709
10663
  // Status: which will ignore `removed` status
10710
10664
  const {
@@ -10810,16 +10764,17 @@ const ListItem = /*#__PURE__*/React.forwardRef(({
10810
10764
  motionName: `${rootPrefixCls}-fade`,
10811
10765
  visible: mergedStatus === 'uploading',
10812
10766
  motionDeadline: 2000
10813
- }, ({
10814
- className: motionClassName
10815
- }) => {
10767
+ }, _ref2 => {
10768
+ let {
10769
+ className: motionClassName
10770
+ } = _ref2;
10816
10771
  // show loading icon if upload progress listener is disabled
10817
- const loadingProgress = 'percent' in file ? (/*#__PURE__*/React.createElement(Progress, Object.assign({
10772
+ const loadingProgress = 'percent' in file ? (/*#__PURE__*/React.createElement(Progress, Object.assign({}, progressProps, {
10818
10773
  type: "line",
10819
10774
  percent: file.percent,
10820
10775
  "aria-label": file['aria-label'],
10821
10776
  "aria-labelledby": file['aria-labelledby']
10822
- }, progressProps))) : null;
10777
+ }))) : null;
10823
10778
  return /*#__PURE__*/React.createElement("div", {
10824
10779
  className: classNames(`${prefixCls}-list-item-progress`, motionClassName)
10825
10780
  }, loadingProgress);
@@ -10933,9 +10888,11 @@ const InternalUploadList = (props, ref) => {
10933
10888
  (_b = (_a = customIcon.props).onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
10934
10889
  }
10935
10890
  },
10936
- className: `${prefixCls}-list-item-action`,
10937
- disabled: acceptUploadDisabled ? disabled : false
10891
+ className: `${prefixCls}-list-item-action`
10938
10892
  };
10893
+ if (acceptUploadDisabled) {
10894
+ btnProps.disabled = disabled;
10895
+ }
10939
10896
  return /*#__PURE__*/React.isValidElement(customIcon) ? (/*#__PURE__*/React.createElement(Button, Object.assign({}, btnProps, {
10940
10897
  icon: cloneElement(customIcon, Object.assign(Object.assign({}, customIcon.props), {
10941
10898
  onClick: () => {}
@@ -10969,48 +10926,54 @@ const InternalUploadList = (props, ref) => {
10969
10926
  className: listClassNames
10970
10927
  }, /*#__PURE__*/React.createElement(CSSMotionList, Object.assign({}, motionConfig, {
10971
10928
  component: false
10972
- }), ({
10973
- key,
10974
- file,
10975
- className: motionClassName,
10976
- style: motionStyle
10977
- }) => (/*#__PURE__*/React.createElement(ListItem, {
10978
- key: key,
10979
- locale: locale,
10980
- prefixCls: prefixCls,
10981
- className: motionClassName,
10982
- style: motionStyle,
10983
- file: file,
10984
- items: items,
10985
- progress: progress,
10986
- listType: listType,
10987
- isImgUrl: isImgUrl,
10988
- showPreviewIcon: showPreviewIcon,
10989
- showRemoveIcon: showRemoveIcon,
10990
- showDownloadIcon: showDownloadIcon,
10991
- removeIcon: removeIcon,
10992
- previewIcon: previewIcon,
10993
- downloadIcon: downloadIcon,
10994
- extra: extra,
10995
- iconRender: internalIconRender,
10996
- actionIconRender: actionIconRender,
10997
- itemRender: itemRender,
10998
- onPreview: onInternalPreview,
10999
- onDownload: onInternalDownload,
11000
- onClose: onInternalClose
11001
- }))), appendAction && (/*#__PURE__*/React.createElement(CSSMotion, Object.assign({}, motionConfig, {
10929
+ }), _ref => {
10930
+ let {
10931
+ key,
10932
+ file,
10933
+ className: motionClassName,
10934
+ style: motionStyle
10935
+ } = _ref;
10936
+ return /*#__PURE__*/React.createElement(ListItem, {
10937
+ key: key,
10938
+ locale: locale,
10939
+ prefixCls: prefixCls,
10940
+ className: motionClassName,
10941
+ style: motionStyle,
10942
+ file: file,
10943
+ items: items,
10944
+ progress: progress,
10945
+ listType: listType,
10946
+ isImgUrl: isImgUrl,
10947
+ showPreviewIcon: showPreviewIcon,
10948
+ showRemoveIcon: showRemoveIcon,
10949
+ showDownloadIcon: showDownloadIcon,
10950
+ removeIcon: removeIcon,
10951
+ previewIcon: previewIcon,
10952
+ downloadIcon: downloadIcon,
10953
+ extra: extra,
10954
+ iconRender: internalIconRender,
10955
+ actionIconRender: actionIconRender,
10956
+ itemRender: itemRender,
10957
+ onPreview: onInternalPreview,
10958
+ onDownload: onInternalDownload,
10959
+ onClose: onInternalClose
10960
+ });
10961
+ }), appendAction && (/*#__PURE__*/React.createElement(CSSMotion, Object.assign({}, motionConfig, {
11002
10962
  visible: appendActionVisible,
11003
10963
  forceRender: true
11004
- }), ({
11005
- className: motionClassName,
11006
- style: motionStyle
11007
- }) => cloneElement(appendAction, oriProps => ({
11008
- className: classNames(oriProps.className, motionClassName),
11009
- style: Object.assign(Object.assign(Object.assign({}, motionStyle), {
11010
- // prevent the element has hover css pseudo-class that may cause animation to end prematurely.
11011
- pointerEvents: motionClassName ? 'none' : undefined
11012
- }), oriProps.style)
11013
- })))));
10964
+ }), _ref2 => {
10965
+ let {
10966
+ className: motionClassName,
10967
+ style: motionStyle
10968
+ } = _ref2;
10969
+ return cloneElement(appendAction, oriProps => ({
10970
+ className: classNames(oriProps.className, motionClassName),
10971
+ style: Object.assign(Object.assign(Object.assign({}, motionStyle), {
10972
+ // prevent the element has hover css pseudo-class that may cause animation to end prematurely.
10973
+ pointerEvents: motionClassName ? 'none' : undefined
10974
+ }), oriProps.style)
10975
+ }));
10976
+ })));
11014
10977
  };
11015
10978
  const UploadList = /*#__PURE__*/React.forwardRef(InternalUploadList);
11016
10979
  if (process.env.NODE_ENV !== 'production') {
@@ -11400,8 +11363,7 @@ const InternalUpload = (props, ref) => {
11400
11363
  [`${prefixCls}-hidden`]: !children
11401
11364
  });
11402
11365
  const uploadButton = /*#__PURE__*/React.createElement("div", {
11403
- className: uploadBtnCls,
11404
- style: mergedStyle
11366
+ className: uploadBtnCls
11405
11367
  }, /*#__PURE__*/React.createElement(Upload$1, Object.assign({}, rcUploadProps, {
11406
11368
  ref: upload
11407
11369
  })));