@ant-design/pro-components 2.3.21 → 2.3.23

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.
@@ -7578,19 +7578,24 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7578
7578
  h = "quarter",
7579
7579
  c = "year",
7580
7580
  d = "date",
7581
- $ = "Invalid Date",
7582
- l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
7581
+ l = "Invalid Date",
7582
+ $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
7583
7583
  y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
7584
7584
  M = {
7585
7585
  name: "en",
7586
7586
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
7587
- months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_")
7587
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
7588
+ ordinal: function ordinal(t) {
7589
+ var e = ["th", "st", "nd", "rd"],
7590
+ n = t % 100;
7591
+ return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
7592
+ }
7588
7593
  },
7589
7594
  m = function m(t, e, n) {
7590
7595
  var r = String(t);
7591
7596
  return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
7592
7597
  },
7593
- g = {
7598
+ v = {
7594
7599
  s: m,
7595
7600
  z: function z(t) {
7596
7601
  var e = -t.utcOffset(),
@@ -7628,15 +7633,15 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7628
7633
  return void 0 === t;
7629
7634
  }
7630
7635
  },
7631
- v = "en",
7636
+ g = "en",
7632
7637
  D = {};
7633
- D[v] = M;
7638
+ D[g] = M;
7634
7639
  var p = function p(t) {
7635
7640
  return t instanceof _;
7636
7641
  },
7637
7642
  S = function t(e, n, r) {
7638
7643
  var i;
7639
- if (!e) return v;
7644
+ if (!e) return g;
7640
7645
  if ("string" == typeof e) {
7641
7646
  var s = e.toLowerCase();
7642
7647
  D[s] && (i = s), n && (D[s] = n, i = s);
@@ -7646,14 +7651,14 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7646
7651
  var a = e.name;
7647
7652
  D[a] = e, i = a;
7648
7653
  }
7649
- return !r && i && (v = i), i || !r && v;
7654
+ return !r && i && (g = i), i || !r && g;
7650
7655
  },
7651
7656
  w = function w(t, e) {
7652
7657
  if (p(t)) return t.clone();
7653
7658
  var n = "object" == typeof e ? e : {};
7654
7659
  return n.date = t, n.args = arguments, new _(n);
7655
7660
  },
7656
- O = g;
7661
+ O = v;
7657
7662
  O.l = S, O.i = p, O.w = function (t, e) {
7658
7663
  return w(t, {
7659
7664
  locale: e.$L,
@@ -7675,7 +7680,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7675
7680
  if (O.u(e)) return new Date();
7676
7681
  if (e instanceof Date) return new Date(e);
7677
7682
  if ("string" == typeof e && !/Z$/i.test(e)) {
7678
- var r = e.match(l);
7683
+ var r = e.match($);
7679
7684
  if (r) {
7680
7685
  var i = r[2] - 1 || 0,
7681
7686
  s = (r[7] || "0").substring(0, 3);
@@ -7690,7 +7695,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7690
7695
  }, m.$utils = function () {
7691
7696
  return O;
7692
7697
  }, m.isValid = function () {
7693
- return !(this.$d.toString() === $);
7698
+ return !(this.$d.toString() === l);
7694
7699
  }, m.isSame = function (t, e) {
7695
7700
  var n = w(t);
7696
7701
  return this.startOf(e) <= n && n <= this.endOf(e);
@@ -7708,35 +7713,35 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7708
7713
  var n = this,
7709
7714
  r = !!O.u(e) || e,
7710
7715
  h = O.p(t),
7711
- $ = function $(t, e) {
7716
+ l = function l(t, e) {
7712
7717
  var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
7713
7718
  return r ? i : i.endOf(a);
7714
7719
  },
7715
- l = function l(t, e) {
7720
+ $ = function $(t, e) {
7716
7721
  return O.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
7717
7722
  },
7718
7723
  y = this.$W,
7719
7724
  M = this.$M,
7720
7725
  m = this.$D,
7721
- g = "set" + (this.$u ? "UTC" : "");
7726
+ v = "set" + (this.$u ? "UTC" : "");
7722
7727
  switch (h) {
7723
7728
  case c:
7724
- return r ? $(1, 0) : $(31, 11);
7729
+ return r ? l(1, 0) : l(31, 11);
7725
7730
  case f:
7726
- return r ? $(1, M) : $(0, M + 1);
7731
+ return r ? l(1, M) : l(0, M + 1);
7727
7732
  case o:
7728
- var v = this.$locale().weekStart || 0,
7729
- D = (y < v ? y + 7 : y) - v;
7730
- return $(r ? m - D : m + (6 - D), M);
7733
+ var g = this.$locale().weekStart || 0,
7734
+ D = (y < g ? y + 7 : y) - g;
7735
+ return l(r ? m - D : m + (6 - D), M);
7731
7736
  case a:
7732
7737
  case d:
7733
- return l(g + "Hours", 0);
7738
+ return $(v + "Hours", 0);
7734
7739
  case u:
7735
- return l(g + "Minutes", 1);
7740
+ return $(v + "Minutes", 1);
7736
7741
  case s:
7737
- return l(g + "Seconds", 2);
7742
+ return $(v + "Seconds", 2);
7738
7743
  case i:
7739
- return l(g + "Milliseconds", 3);
7744
+ return $(v + "Milliseconds", 3);
7740
7745
  default:
7741
7746
  return this.clone();
7742
7747
  }
@@ -7746,12 +7751,12 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7746
7751
  var n,
7747
7752
  o = O.p(t),
7748
7753
  h = "set" + (this.$u ? "UTC" : ""),
7749
- $ = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
7750
- l = o === a ? this.$D + (e - this.$W) : e;
7754
+ l = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
7755
+ $ = o === a ? this.$D + (e - this.$W) : e;
7751
7756
  if (o === f || o === c) {
7752
7757
  var y = this.clone().set(d, 1);
7753
- y.$d[$](l), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
7754
- } else $ && this.$d[$](l);
7758
+ y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
7759
+ } else l && this.$d[l]($);
7755
7760
  return this.init(), this;
7756
7761
  }, m.set = function (t, e) {
7757
7762
  return this.clone().$set(t, e);
@@ -7759,18 +7764,18 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7759
7764
  return this[O.p(t)]();
7760
7765
  }, m.add = function (r, h) {
7761
7766
  var d,
7762
- $ = this;
7767
+ l = this;
7763
7768
  r = Number(r);
7764
- var l = O.p(h),
7769
+ var $ = O.p(h),
7765
7770
  y = function y(t) {
7766
- var e = w($);
7767
- return O.w(e.date(e.date() + Math.round(t * r)), $);
7771
+ var e = w(l);
7772
+ return O.w(e.date(e.date() + Math.round(t * r)), l);
7768
7773
  };
7769
- if (l === f) return this.set(f, this.$M + r);
7770
- if (l === c) return this.set(c, this.$y + r);
7771
- if (l === a) return y(1);
7772
- if (l === o) return y(7);
7773
- var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[l] || 1,
7774
+ if ($ === f) return this.set(f, this.$M + r);
7775
+ if ($ === c) return this.set(c, this.$y + r);
7776
+ if ($ === a) return y(1);
7777
+ if ($ === o) return y(7);
7778
+ var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
7774
7779
  m = this.$d.getTime() + r * M;
7775
7780
  return O.w(m, this);
7776
7781
  }, m.subtract = function (t, e) {
@@ -7778,7 +7783,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7778
7783
  }, m.format = function (t) {
7779
7784
  var e = this,
7780
7785
  n = this.$locale();
7781
- if (!this.isValid()) return n.invalidDate || $;
7786
+ if (!this.isValid()) return n.invalidDate || l;
7782
7787
  var r = t || "YYYY-MM-DDTHH:mm:ssZ",
7783
7788
  i = O.z(this),
7784
7789
  s = this.$H,
@@ -7796,7 +7801,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7796
7801
  var r = t < 12 ? "AM" : "PM";
7797
7802
  return n ? r.toLowerCase() : r;
7798
7803
  },
7799
- l = {
7804
+ $ = {
7800
7805
  YY: String(this.$y).slice(-2),
7801
7806
  YYYY: this.$y,
7802
7807
  M: a + 1,
@@ -7823,18 +7828,18 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7823
7828
  Z: i
7824
7829
  };
7825
7830
  return r.replace(y, function (t, e) {
7826
- return e || l[t] || i.replace(":", "");
7831
+ return e || $[t] || i.replace(":", "");
7827
7832
  });
7828
7833
  }, m.utcOffset = function () {
7829
7834
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
7830
- }, m.diff = function (r, d, $) {
7831
- var l,
7835
+ }, m.diff = function (r, d, l) {
7836
+ var $,
7832
7837
  y = O.p(d),
7833
7838
  M = w(r),
7834
7839
  m = (M.utcOffset() - this.utcOffset()) * e,
7835
- g = this - M,
7836
- v = O.m(this, M);
7837
- return v = (l = {}, l[c] = v / 12, l[f] = v, l[h] = v / 3, l[o] = (g - m) / 6048e5, l[a] = (g - m) / 864e5, l[u] = g / n, l[s] = g / e, l[i] = g / t, l)[y] || g, $ ? v : O.a(v);
7840
+ v = this - M,
7841
+ g = O.m(this, M);
7842
+ return g = ($ = {}, $[c] = g / 12, $[f] = g, $[h] = g / 3, $[o] = (v - m) / 6048e5, $[a] = (v - m) / 864e5, $[u] = v / n, $[s] = v / e, $[i] = v / t, $)[y] || v, l ? g : O.a(g);
7838
7843
  }, m.daysInMonth = function () {
7839
7844
  return this.endOf(f).$D;
7840
7845
  }, m.$locale = function () {
@@ -7865,7 +7870,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7865
7870
  return t.$i || (t(e, _, w), t.$i = !0), w;
7866
7871
  }, w.locale = S, w.isDayjs = p, w.unix = function (t) {
7867
7872
  return w(1e3 * t);
7868
- }, w.en = D[v], w.Ls = D, w.p = {}, w;
7873
+ }, w.en = D[g], w.Ls = D, w.p = {}, w;
7869
7874
  });
7870
7875
 
7871
7876
  /***/ }),
@@ -26297,12 +26302,14 @@ var merge = function merge() {
26297
26302
 
26298
26303
 
26299
26304
 
26305
+
26300
26306
 
26301
26307
 
26302
26308
  var _ref = external_antd_.theme || {
26303
26309
  useToken: function useToken() {
26304
26310
  return {
26305
- hashId: ''
26311
+ hashId: '',
26312
+ token: defaultTheme
26306
26313
  };
26307
26314
  }
26308
26315
  },
@@ -29100,7 +29107,8 @@ function useLazyKVMap(data, childrenColumnName, getRowKey) {
29100
29107
  var mapCacheRef = external_React_.useRef({});
29101
29108
  function getRecordByKey(key) {
29102
29109
  if (!mapCacheRef.current || mapCacheRef.current.data !== data || mapCacheRef.current.childrenColumnName !== childrenColumnName || mapCacheRef.current.getRowKey !== getRowKey) {
29103
- /* eslint-disable no-inner-declarations */var dig = function dig(records) {
29110
+ /* eslint-disable no-inner-declarations */
29111
+ var dig = function dig(records) {
29104
29112
  records.forEach(function (record, index) {
29105
29113
  var rowKey = getRowKey(record, index);
29106
29114
  kvMap.set(rowKey, record);
@@ -29108,7 +29116,8 @@ function useLazyKVMap(data, childrenColumnName, getRowKey) {
29108
29116
  dig(record[childrenColumnName] || []);
29109
29117
  }
29110
29118
  });
29111
- }; /* eslint-enable */
29119
+ };
29120
+ /* eslint-enable */
29112
29121
  var kvMap = new Map();
29113
29122
  dig(data);
29114
29123
  mapCacheRef.current = {
@@ -29591,7 +29600,8 @@ function useEditableArray(props) {
29591
29600
  switch (_context4.prev = _context4.next) {
29592
29601
  case 0:
29593
29602
  relayKey = recordKeyToString(recordKey).toString();
29594
- key = dataSourceKeyIndexMapRef.current.get(relayKey); /** 如果没找到key,转化一下再去找 */
29603
+ key = dataSourceKeyIndexMapRef.current.get(relayKey);
29604
+ /** 如果没找到key,转化一下再去找 */
29595
29605
  if (!(!editableKeysSet.has(relayKey) && key && (needReTry !== null && needReTry !== void 0 ? needReTry : true) && props.tableName)) {
29596
29606
  _context4.next = 5;
29597
29607
  break;
@@ -53697,11 +53707,12 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
53697
53707
  return "/".concat(path || '').replace(/\/+/g, '/');
53698
53708
  };
53699
53709
  this.props = props;
53700
- }); /**
53701
- * 生成openKeys 的对象,因为设置了openKeys 就会变成受控,所以需要一个空对象
53702
- *
53703
- * @param BaseMenuProps
53704
- */
53710
+ });
53711
+ /**
53712
+ * 生成openKeys 的对象,因为设置了openKeys 就会变成受控,所以需要一个空对象
53713
+ *
53714
+ * @param BaseMenuProps
53715
+ */
53705
53716
  var getOpenKeysProps = function getOpenKeysProps(openKeys, _ref) {
53706
53717
  var layout = _ref.layout,
53707
53718
  collapsed = _ref.collapsed;
@@ -57674,6 +57685,7 @@ function formatter(props) {
57674
57685
  if (notNullArray(item[childrenPropsName])) return true;
57675
57686
  if (notNullArray(item.children)) return true;
57676
57687
  if (item.path) return true;
57688
+ if (item.originPath) return true;
57677
57689
  if (item.layout) return true; // 重定向
57678
57690
 
57679
57691
  if (item.redirect) return false;
@@ -57704,6 +57716,9 @@ function formatter(props) {
57704
57716
  if (item.path === '/*') {
57705
57717
  item.path = '.';
57706
57718
  }
57719
+ if (!item.path && item.originPath) {
57720
+ item.path = item.originPath;
57721
+ }
57707
57722
  return item;
57708
57723
  }).map(function () {
57709
57724
  var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
@@ -62305,14 +62320,16 @@ function ColumnSetting(props) {
62305
62320
 
62306
62321
 
62307
62322
 
62323
+
62308
62324
  var HeaderMenu = function HeaderMenu(props) {
62325
+ var _useToken = useStyle_useToken(),
62326
+ hashId = _useToken.hashId;
62309
62327
  var _props$items = props.items,
62310
62328
  items = _props$items === void 0 ? [] : _props$items,
62311
62329
  _props$type = props.type,
62312
62330
  type = _props$type === void 0 ? 'inline' : _props$type,
62313
62331
  prefixCls = props.prefixCls,
62314
- propActiveKey = props.activeKey,
62315
- hashId = props.hashId;
62332
+ propActiveKey = props.activeKey;
62316
62333
  var _useMergedState = (0,useMergedState/* default */.Z)(propActiveKey, {
62317
62334
  value: propActiveKey,
62318
62335
  onChange: props.onChange
@@ -62707,8 +62724,7 @@ var ListToolBar = function ListToolBar(_ref2) {
62707
62724
  subTitle: subTitle
62708
62725
  })
62709
62726
  }), menu && (0,jsx_runtime.jsx)(ListToolBar_HeaderMenu, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, menu), {}, {
62710
- prefixCls: prefixCls,
62711
- hashId: hashId
62727
+ prefixCls: prefixCls
62712
62728
  })), !hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
62713
62729
  className: "".concat(prefixCls, "-search ").concat(hashId),
62714
62730
  children: searchNode
@@ -70310,10 +70326,10 @@ var genLinkStyle = function genLinkStyle(token) {
70310
70326
  }), _a)
70311
70327
  };
70312
70328
  };
70313
- var genCommonStyle = function genCommonStyle(token, rootPrefixCls) {
70329
+ var genCommonStyle = function genCommonStyle(token, componentPrefixCls) {
70314
70330
  var fontFamily = token.fontFamily,
70315
70331
  fontSize = token.fontSize;
70316
- var rootPrefixSelector = "[class^=\"".concat(rootPrefixCls, "-\"], [class*=\" ").concat(rootPrefixCls, "-\"]");
70332
+ var rootPrefixSelector = "[class^=\"".concat(componentPrefixCls, "\"], [class*=\" ").concat(componentPrefixCls, "\"]");
70317
70333
  return defineProperty_defineProperty({}, rootPrefixSelector, defineProperty_defineProperty({
70318
70334
  fontFamily: fontFamily,
70319
70335
  fontSize: fontSize,
@@ -70341,7 +70357,7 @@ var genFocusStyle = function genFocusStyle(token) {
70341
70357
  };
70342
70358
  };
70343
70359
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
70344
- /* harmony default export */ var version = ('5.0.0-alpha.2');
70360
+ /* harmony default export */ var version = ('5.0.0-alpha.4');
70345
70361
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
70346
70362
  /* eslint import/no-unresolved: 0 */
70347
70363
  // @ts-ignore
@@ -70919,7 +70935,6 @@ function theme_useToken() {
70919
70935
 
70920
70936
 
70921
70937
 
70922
-
70923
70938
  function genComponentStyleHook(component, styleFn, getDefaultToken) {
70924
70939
  return function (prefixCls) {
70925
70940
  var _useToken = theme_useToken(),
@@ -70931,7 +70946,6 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
70931
70946
  getPrefixCls = _useContext.getPrefixCls,
70932
70947
  iconPrefixCls = _useContext.iconPrefixCls;
70933
70948
  var rootPrefixCls = getPrefixCls();
70934
- if (false) {}
70935
70949
  // Generate style for all a tags in antd component.
70936
70950
  useStyleRegister({
70937
70951
  theme: theme,
@@ -70942,7 +70956,7 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
70942
70956
  return [{
70943
70957
  // Link
70944
70958
  '&': genLinkStyle(token)
70945
- }, genCommonStyle(token, rootPrefixCls)];
70959
+ }];
70946
70960
  });
70947
70961
  return [useStyleRegister({
70948
70962
  theme: theme,
@@ -70970,7 +70984,7 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
70970
70984
  overrideComponentToken: token[component]
70971
70985
  });
70972
70986
  flush(component, mergedComponentToken);
70973
- return styleInterpolation;
70987
+ return [genCommonStyle(token, prefixCls), styleInterpolation];
70974
70988
  }), hashId];
70975
70989
  };
70976
70990
  }
@@ -76194,24 +76208,24 @@ function registerTheme(globalPrefixCls, theme) {
76194
76208
 
76195
76209
 
76196
76210
 
76211
+
76197
76212
  function useTheme(theme, parentTheme) {
76198
76213
  var themeConfig = theme || {};
76199
- var parentThemeConfig = parentTheme || {};
76214
+ var parentThemeConfig = parentTheme || theme_defaultConfig;
76200
76215
  var mergedTheme = useMemo_useMemo(function () {
76201
76216
  if (!theme) {
76202
76217
  return parentTheme;
76203
76218
  }
76204
76219
  // Override
76205
- var mergedOverride = extends_extends({}, parentThemeConfig.components);
76220
+ var mergedComponents = extends_extends({}, parentThemeConfig.components);
76206
76221
  Object.keys(theme.components || {}).forEach(function (componentName) {
76207
- mergedOverride[componentName] = extends_extends(extends_extends({}, mergedOverride[componentName]), theme.components[componentName]);
76222
+ mergedComponents[componentName] = extends_extends(extends_extends({}, mergedComponents[componentName]), theme.components[componentName]);
76208
76223
  });
76209
76224
  // Base token
76210
- var merged = extends_extends(extends_extends(extends_extends({}, parentThemeConfig), themeConfig), {
76225
+ return extends_extends(extends_extends(extends_extends({}, parentThemeConfig), themeConfig), {
76211
76226
  token: extends_extends(extends_extends({}, parentThemeConfig.token), themeConfig.token),
76212
- override: mergedOverride
76227
+ components: mergedComponents
76213
76228
  });
76214
- return merged;
76215
76229
  }, [themeConfig, parentThemeConfig], function (prev, next) {
76216
76230
  return prev.some(function (prevTheme, index) {
76217
76231
  var nextTheme = next[index];
@@ -76693,7 +76707,7 @@ function getPlacements(config) {
76693
76707
  var isValidElement = external_React_.isValidElement;
76694
76708
 
76695
76709
  function isFragment(child) {
76696
- return child && child.type === external_React_.Fragment;
76710
+ return child && isValidElement(child) && child.type === external_React_.Fragment;
76697
76711
  }
76698
76712
  function replaceElement(element, replacement, props) {
76699
76713
  if (!isValidElement(element)) {
@@ -81366,14 +81380,14 @@ var accessibilityFocus = function accessibilityFocus(token) {
81366
81380
  return extends_extends({}, genFocusOutline(token));
81367
81381
  };
81368
81382
  var getThemeStyle = function getThemeStyle(token, themeSuffix) {
81369
- var _$concat3, _$concat4, _$concat$concat3, _$concat8, _$concat$concat4;
81383
+ var _not$concat, _$concat3, _$concat4, _$concat$concat3, _$concat8, _$concat$concat4;
81370
81384
  var componentCls = token.componentCls,
81371
81385
  colorItemText = token.colorItemText,
81372
81386
  colorItemTextSelected = token.colorItemTextSelected,
81387
+ colorItemTextSelectedHorizontal = token.colorItemTextSelectedHorizontal,
81373
81388
  colorGroupTitle = token.colorGroupTitle,
81374
81389
  colorItemBg = token.colorItemBg,
81375
81390
  colorSubItemBg = token.colorSubItemBg,
81376
- colorItemBgActive = token.colorItemBgActive,
81377
81391
  colorItemBgSelectedHorizontal = token.colorItemBgSelectedHorizontal,
81378
81392
  colorItemBgSelected = token.colorItemBgSelected,
81379
81393
  colorActiveBarHeight = token.colorActiveBarHeight,
@@ -81383,16 +81397,20 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
81383
81397
  motionEaseInOut = token.motionEaseInOut,
81384
81398
  motionEaseOut = token.motionEaseOut,
81385
81399
  menuItemPaddingInline = token.menuItemPaddingInline,
81400
+ itemMarginInline = token.itemMarginInline,
81386
81401
  motionDurationFast = token.motionDurationFast,
81387
81402
  colorItemTextHover = token.colorItemTextHover,
81388
81403
  lineType = token.lineType,
81389
81404
  colorSplit = token.colorSplit,
81405
+ colorItemBgActive = token.colorItemBgActive,
81390
81406
  colorItemTextDisabled = token.colorItemTextDisabled,
81391
81407
  colorDangerItemText = token.colorDangerItemText,
81392
81408
  colorDangerItemTextHover = token.colorDangerItemTextHover,
81393
81409
  colorDangerItemTextSelected = token.colorDangerItemTextSelected,
81394
81410
  colorDangerItemBgActive = token.colorDangerItemBgActive,
81395
- colorDangerItemBgSelected = token.colorDangerItemBgSelected;
81411
+ colorDangerItemBgSelected = token.colorDangerItemBgSelected,
81412
+ radiusItem = token.radiusItem,
81413
+ colorItemBgHover = token.colorItemBgHover;
81396
81414
  return defineProperty_defineProperty({}, "".concat(componentCls, "-").concat(themeSuffix), (_$concat$concat4 = {
81397
81415
  color: colorItemText,
81398
81416
  background: colorItemBg
@@ -81404,9 +81422,49 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
81404
81422
  color: "".concat(colorItemTextDisabled, " !important")
81405
81423
  }), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item:hover, ").concat(componentCls, "-submenu-title:hover"), defineProperty_defineProperty({}, "&:not(".concat(componentCls, "-item-selected):not(").concat(componentCls, "-submenu-selected)"), {
81406
81424
  color: colorItemTextHover
81407
- })), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item:active, ").concat(componentCls, "-submenu-title:active"), {
81408
- background: colorItemBgActive
81409
- }), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item-danger"), (_$concat3 = {
81425
+ })), defineProperty_defineProperty(_$concat$concat4, "&:not(".concat(componentCls, "-horizontal)"), (_not$concat = {}, defineProperty_defineProperty(_not$concat, "".concat(componentCls, "-item:not(").concat(componentCls, "-item-selected)"), {
81426
+ '&:hover': {
81427
+ backgroundColor: colorItemBgHover
81428
+ },
81429
+ '&:active::before': {
81430
+ content: '""',
81431
+ position: 'absolute',
81432
+ insetInlineStart: 0,
81433
+ top: 0,
81434
+ width: "100%",
81435
+ height: '100%',
81436
+ flex: 1,
81437
+ borderRadius: radiusItem,
81438
+ backgroundColor: colorItemBgActive,
81439
+ transition: "background-color ".concat(motionDurationFast)
81440
+ }
81441
+ }), defineProperty_defineProperty(_not$concat, "".concat(componentCls, "-submenu-title"), {
81442
+ '&::before': {
81443
+ content: '""',
81444
+ position: 'absolute',
81445
+ insetInlineStart: itemMarginInline,
81446
+ top: 0,
81447
+ width: "calc(100% - ".concat(itemMarginInline * 2, "px)"),
81448
+ height: '100%',
81449
+ borderRadius: radiusItem,
81450
+ backgroundColor: 'transparent',
81451
+ transition: "background-color ".concat(motionDurationFast)
81452
+ },
81453
+ '&:hover::before': {
81454
+ backgroundColor: colorItemBgHover
81455
+ },
81456
+ '&:active::after': {
81457
+ content: '""',
81458
+ position: 'absolute',
81459
+ insetInlineStart: itemMarginInline,
81460
+ top: 0,
81461
+ width: "calc(100% - ".concat(itemMarginInline * 2, "px)"),
81462
+ height: '100%',
81463
+ borderRadius: radiusItem,
81464
+ backgroundColor: colorItemBgActive,
81465
+ transition: "background-color ".concat(motionDurationFast)
81466
+ }
81467
+ }), _not$concat)), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item-danger"), (_$concat3 = {
81410
81468
  color: colorDangerItemText
81411
81469
  }, defineProperty_defineProperty(_$concat3, "&".concat(componentCls, "-item:hover"), defineProperty_defineProperty({}, "&:not(".concat(componentCls, "-item-selected):not(").concat(componentCls, "-submenu-selected)"), {
81412
81470
  color: colorDangerItemTextHover
@@ -81444,23 +81502,23 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
81444
81502
  content: '""'
81445
81503
  }
81446
81504
  }, defineProperty_defineProperty(_$concat$concat3, "&:hover, &-active, &-open", {
81447
- color: colorItemTextSelected,
81505
+ color: colorItemTextSelectedHorizontal,
81448
81506
  '&::after': {
81449
81507
  borderWidth: "".concat(colorActiveBarHeight, "px"),
81450
- borderBottomColor: colorItemTextSelected
81508
+ borderBottomColor: colorItemTextSelectedHorizontal
81451
81509
  }
81452
81510
  }), defineProperty_defineProperty(_$concat$concat3, "&-selected", {
81453
- color: colorItemTextSelected,
81511
+ color: colorItemTextSelectedHorizontal,
81454
81512
  backgroundColor: colorItemBgSelectedHorizontal,
81455
81513
  '&::after': {
81456
81514
  borderWidth: "".concat(colorActiveBarHeight, "px"),
81457
- borderBottomColor: colorItemTextSelected
81515
+ borderBottomColor: colorItemTextSelectedHorizontal
81458
81516
  }
81459
81517
  }), _$concat$concat3))), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-root"), defineProperty_defineProperty({}, "&".concat(componentCls, "-inline, &").concat(componentCls, "-vertical"), {
81460
81518
  borderInlineEnd: "".concat(colorActiveBarBorderSize, "px ").concat(lineType, " ").concat(colorSplit)
81461
81519
  })), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-inline"), (_$concat8 = {}, defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-sub").concat(componentCls, "-inline"), {
81462
81520
  background: colorSubItemBg
81463
- }), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize ? {
81521
+ }), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize && colorActiveBarWidth ? {
81464
81522
  width: "calc(100% + ".concat(colorActiveBarBorderSize, "px)")
81465
81523
  } : {}), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item"), defineProperty_defineProperty({
81466
81524
  position: 'relative',
@@ -81495,6 +81553,7 @@ var getVerticalInlineStyle = function getVerticalInlineStyle(token) {
81495
81553
  var componentCls = token.componentCls,
81496
81554
  menuItemHeight = token.menuItemHeight,
81497
81555
  menuItemMarginInline = token.menuItemMarginInline,
81556
+ itemMarginInline = token.itemMarginInline,
81498
81557
  padding = token.padding,
81499
81558
  menuArrowSize = token.menuArrowSize,
81500
81559
  fontSize = token.fontSize;
@@ -81504,10 +81563,15 @@ var getVerticalInlineStyle = function getVerticalInlineStyle(token) {
81504
81563
  }), defineProperty_defineProperty(_ref, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), {
81505
81564
  height: menuItemHeight,
81506
81565
  lineHeight: "".concat(menuItemHeight, "px"),
81507
- marginBlock: menuItemMarginInline,
81508
81566
  paddingInline: padding,
81509
81567
  overflow: 'hidden',
81510
81568
  textOverflow: 'ellipsis'
81569
+ }), defineProperty_defineProperty(_ref, "".concat(componentCls, "-item"), {
81570
+ marginInline: itemMarginInline,
81571
+ marginBlock: menuItemMarginInline,
81572
+ width: "calc(100% - ".concat(itemMarginInline * 2, "px)")
81573
+ }), defineProperty_defineProperty(_ref, "".concat(componentCls, "-submenu-title"), {
81574
+ marginBlock: menuItemMarginInline
81511
81575
  }), defineProperty_defineProperty(_ref, "".concat(componentCls, "-submenu"), {
81512
81576
  paddingBottom: 0.02
81513
81577
  }), defineProperty_defineProperty(_ref, "> ".concat(componentCls, "-item,\n > ").concat(componentCls, "-submenu > ").concat(componentCls, "-submenu-title"), {
@@ -81627,7 +81691,7 @@ var getVerticalStyle = function getVerticalStyle(token) {
81627
81691
 
81628
81692
  // =============================== Base ===============================
81629
81693
  var getBaseStyle = function getBaseStyle(token) {
81630
- var _$concat$concat, _$concat5, _extends3;
81694
+ var _$concat$concat, _$concat4, _$concat5, _extends3;
81631
81695
  var antCls = token.antCls,
81632
81696
  componentCls = token.componentCls,
81633
81697
  fontSize = token.fontSize,
@@ -81643,6 +81707,8 @@ var getBaseStyle = function getBaseStyle(token) {
81643
81707
  iconCls = token.iconCls,
81644
81708
  zIndexPopup = token.zIndexPopup,
81645
81709
  radiusBase = token.radiusBase,
81710
+ radiusLG = token.radiusLG,
81711
+ radiusSubMenuItem = token.radiusSubMenuItem,
81646
81712
  menuArrowSize = token.menuArrowSize,
81647
81713
  controlHeightSM = token.controlHeightSM,
81648
81714
  menuArrowOffset = token.menuArrowOffset,
@@ -81675,7 +81741,7 @@ var getBaseStyle = function getBaseStyle(token) {
81675
81741
  display: 'flex'
81676
81742
  }, "".concat(componentCls, "-item"), {
81677
81743
  flex: 'none'
81678
- })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item,").concat(componentCls, "-submenu,"), {
81744
+ })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu"), {
81679
81745
  borderRadius: token.radiusItem
81680
81746
  }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item-group-title"), {
81681
81747
  padding: "".concat(paddingXS, "px ").concat(padding, "px"),
@@ -81751,7 +81817,7 @@ var getBaseStyle = function getBaseStyle(token) {
81751
81817
  position: 'absolute',
81752
81818
  zIndex: zIndexPopup,
81753
81819
  background: 'transparent',
81754
- borderRadius: radiusBase,
81820
+ borderRadius: radiusLG,
81755
81821
  boxShadow: 'none',
81756
81822
  transformOrigin: '0 0',
81757
81823
  // https://github.com/ant-design/ant-design/issues/13955
@@ -81770,11 +81836,13 @@ var getBaseStyle = function getBaseStyle(token) {
81770
81836
  top: 0,
81771
81837
  insetInlineStart: menuPanelMaskInset
81772
81838
  }
81773
- }, "> ".concat(componentCls), defineProperty_defineProperty({
81774
- borderRadius: radiusBase
81775
- }, "".concat(componentCls, "-submenu-title::after"), {
81839
+ }, "> ".concat(componentCls), (_$concat4 = {
81840
+ borderRadius: radiusLG
81841
+ }, defineProperty_defineProperty(_$concat4, "> ".concat(componentCls, "-item"), {
81842
+ borderRadius: radiusSubMenuItem
81843
+ }), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-submenu-title::after"), {
81776
81844
  transition: "transform ".concat(motionDurationSlow, " ").concat(motionEaseInOut)
81777
- }))), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-submenu"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "&-expand-icon, &-arrow", {
81845
+ }), _$concat4))), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-submenu"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "&-expand-icon, &-arrow", {
81778
81846
  position: 'absolute',
81779
81847
  top: '50%',
81780
81848
  insetInlineEnd: token.margin,
@@ -81892,23 +81960,29 @@ var getBaseStyle = function getBaseStyle(token) {
81892
81960
  colorTextDescription = token.colorTextDescription,
81893
81961
  colorBgContainer = token.colorBgContainer,
81894
81962
  colorFillAlter = token.colorFillAlter,
81895
- controlItemBgActive = token.controlItemBgActive,
81963
+ colorFillContent = token.colorFillContent,
81896
81964
  lineWidth = token.lineWidth,
81897
- lineWidthBold = token.lineWidthBold;
81965
+ lineWidthBold = token.lineWidthBold,
81966
+ controlItemBgActiveHover = token.controlItemBgActiveHover,
81967
+ colorBgTextHover = token.colorBgTextHover;
81898
81968
  return {
81899
81969
  dropdownWidth: 160,
81900
81970
  zIndexPopup: token.zIndexPopupBase + 50,
81901
- radiusItem: 0,
81971
+ radiusItem: token.radiusLG,
81972
+ radiusSubMenuItem: token.radiusSM,
81902
81973
  colorItemText: colorText,
81903
- colorItemTextHover: colorPrimary,
81974
+ colorItemTextHover: colorText,
81975
+ colorItemTextHoverHorizontal: colorPrimary,
81904
81976
  colorGroupTitle: colorTextDescription,
81905
- colorItemTextSelected: colorPrimary,
81977
+ colorItemTextSelected: colorText,
81978
+ colorItemTextSelectedHorizontal: colorPrimary,
81906
81979
  colorItemBg: colorBgContainer,
81980
+ colorItemBgHover: colorBgTextHover,
81981
+ colorItemBgActive: colorFillContent,
81907
81982
  colorSubItemBg: colorFillAlter,
81908
- colorItemBgActive: controlItemBgActive,
81909
- colorItemBgSelected: controlItemBgActive,
81983
+ colorItemBgSelected: controlItemBgActiveHover,
81910
81984
  colorItemBgSelectedHorizontal: 'transparent',
81911
- colorActiveBarWidth: lineWidthBold + lineWidth,
81985
+ colorActiveBarWidth: 0,
81912
81986
  colorActiveBarHeight: lineWidthBold,
81913
81987
  colorActiveBarBorderSize: lineWidth,
81914
81988
  // Disabled
@@ -81918,7 +81992,8 @@ var getBaseStyle = function getBaseStyle(token) {
81918
81992
  colorDangerItemTextHover: colorError,
81919
81993
  colorDangerItemTextSelected: colorError,
81920
81994
  colorDangerItemBgActive: colorErrorBg,
81921
- colorDangerItemBgSelected: colorErrorBg
81995
+ colorDangerItemBgSelected: colorErrorBg,
81996
+ itemMarginInline: token.marginXXS
81922
81997
  };
81923
81998
  });
81924
81999
  return useOriginHook(prefixCls);
@@ -85083,17 +85158,17 @@ function BaseProList(props) {
85083
85158
  /* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
85084
85159
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
85085
85160
  var version_version = {
85086
- "@ant-design/pro-card": "2.0.15",
85087
- "@ant-design/pro-components": "2.3.20",
85088
- "@ant-design/pro-descriptions": "2.0.17",
85089
- "@ant-design/pro-field": "2.1.10",
85090
- "@ant-design/pro-form": "2.2.8",
85091
- "@ant-design/pro-layout": "7.1.9",
85092
- "@ant-design/pro-list": "2.0.17",
85093
- "@ant-design/pro-provider": "2.0.7",
85161
+ "@ant-design/pro-card": "2.0.16",
85162
+ "@ant-design/pro-components": "2.3.22",
85163
+ "@ant-design/pro-descriptions": "2.0.18",
85164
+ "@ant-design/pro-field": "2.1.11",
85165
+ "@ant-design/pro-form": "2.2.9",
85166
+ "@ant-design/pro-layout": "7.1.10",
85167
+ "@ant-design/pro-list": "2.0.19",
85168
+ "@ant-design/pro-provider": "2.0.8",
85094
85169
  "@ant-design/pro-skeleton": "2.0.4",
85095
- "@ant-design/pro-table": "3.0.17",
85096
- "@ant-design/pro-utils": "2.2.7"
85170
+ "@ant-design/pro-table": "3.0.19",
85171
+ "@ant-design/pro-utils": "2.2.8"
85097
85172
  };
85098
85173
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
85099
85174