@ant-design/pro-components 2.3.21 → 2.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  /***/ }),
@@ -29100,7 +29105,8 @@ function useLazyKVMap(data, childrenColumnName, getRowKey) {
29100
29105
  var mapCacheRef = external_React_.useRef({});
29101
29106
  function getRecordByKey(key) {
29102
29107
  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) {
29108
+ /* eslint-disable no-inner-declarations */
29109
+ var dig = function dig(records) {
29104
29110
  records.forEach(function (record, index) {
29105
29111
  var rowKey = getRowKey(record, index);
29106
29112
  kvMap.set(rowKey, record);
@@ -29108,7 +29114,8 @@ function useLazyKVMap(data, childrenColumnName, getRowKey) {
29108
29114
  dig(record[childrenColumnName] || []);
29109
29115
  }
29110
29116
  });
29111
- }; /* eslint-enable */
29117
+ };
29118
+ /* eslint-enable */
29112
29119
  var kvMap = new Map();
29113
29120
  dig(data);
29114
29121
  mapCacheRef.current = {
@@ -29591,7 +29598,8 @@ function useEditableArray(props) {
29591
29598
  switch (_context4.prev = _context4.next) {
29592
29599
  case 0:
29593
29600
  relayKey = recordKeyToString(recordKey).toString();
29594
- key = dataSourceKeyIndexMapRef.current.get(relayKey); /** 如果没找到key,转化一下再去找 */
29601
+ key = dataSourceKeyIndexMapRef.current.get(relayKey);
29602
+ /** 如果没找到key,转化一下再去找 */
29595
29603
  if (!(!editableKeysSet.has(relayKey) && key && (needReTry !== null && needReTry !== void 0 ? needReTry : true) && props.tableName)) {
29596
29604
  _context4.next = 5;
29597
29605
  break;
@@ -53697,11 +53705,12 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
53697
53705
  return "/".concat(path || '').replace(/\/+/g, '/');
53698
53706
  };
53699
53707
  this.props = props;
53700
- }); /**
53701
- * 生成openKeys 的对象,因为设置了openKeys 就会变成受控,所以需要一个空对象
53702
- *
53703
- * @param BaseMenuProps
53704
- */
53708
+ });
53709
+ /**
53710
+ * 生成openKeys 的对象,因为设置了openKeys 就会变成受控,所以需要一个空对象
53711
+ *
53712
+ * @param BaseMenuProps
53713
+ */
53705
53714
  var getOpenKeysProps = function getOpenKeysProps(openKeys, _ref) {
53706
53715
  var layout = _ref.layout,
53707
53716
  collapsed = _ref.collapsed;
@@ -57674,6 +57683,7 @@ function formatter(props) {
57674
57683
  if (notNullArray(item[childrenPropsName])) return true;
57675
57684
  if (notNullArray(item.children)) return true;
57676
57685
  if (item.path) return true;
57686
+ if (item.originPath) return true;
57677
57687
  if (item.layout) return true; // 重定向
57678
57688
 
57679
57689
  if (item.redirect) return false;
@@ -57704,6 +57714,9 @@ function formatter(props) {
57704
57714
  if (item.path === '/*') {
57705
57715
  item.path = '.';
57706
57716
  }
57717
+ if (!item.path && item.originPath) {
57718
+ item.path = item.originPath;
57719
+ }
57707
57720
  return item;
57708
57721
  }).map(function () {
57709
57722
  var item = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
@@ -62305,14 +62318,16 @@ function ColumnSetting(props) {
62305
62318
 
62306
62319
 
62307
62320
 
62321
+
62308
62322
  var HeaderMenu = function HeaderMenu(props) {
62323
+ var _useToken = useStyle_useToken(),
62324
+ hashId = _useToken.hashId;
62309
62325
  var _props$items = props.items,
62310
62326
  items = _props$items === void 0 ? [] : _props$items,
62311
62327
  _props$type = props.type,
62312
62328
  type = _props$type === void 0 ? 'inline' : _props$type,
62313
62329
  prefixCls = props.prefixCls,
62314
- propActiveKey = props.activeKey,
62315
- hashId = props.hashId;
62330
+ propActiveKey = props.activeKey;
62316
62331
  var _useMergedState = (0,useMergedState/* default */.Z)(propActiveKey, {
62317
62332
  value: propActiveKey,
62318
62333
  onChange: props.onChange
@@ -62707,8 +62722,7 @@ var ListToolBar = function ListToolBar(_ref2) {
62707
62722
  subTitle: subTitle
62708
62723
  })
62709
62724
  }), menu && (0,jsx_runtime.jsx)(ListToolBar_HeaderMenu, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, menu), {}, {
62710
- prefixCls: prefixCls,
62711
- hashId: hashId
62725
+ prefixCls: prefixCls
62712
62726
  })), !hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
62713
62727
  className: "".concat(prefixCls, "-search ").concat(hashId),
62714
62728
  children: searchNode
@@ -70310,10 +70324,10 @@ var genLinkStyle = function genLinkStyle(token) {
70310
70324
  }), _a)
70311
70325
  };
70312
70326
  };
70313
- var genCommonStyle = function genCommonStyle(token, rootPrefixCls) {
70327
+ var genCommonStyle = function genCommonStyle(token, componentPrefixCls) {
70314
70328
  var fontFamily = token.fontFamily,
70315
70329
  fontSize = token.fontSize;
70316
- var rootPrefixSelector = "[class^=\"".concat(rootPrefixCls, "-\"], [class*=\" ").concat(rootPrefixCls, "-\"]");
70330
+ var rootPrefixSelector = "[class^=\"".concat(componentPrefixCls, "\"], [class*=\" ").concat(componentPrefixCls, "\"]");
70317
70331
  return defineProperty_defineProperty({}, rootPrefixSelector, defineProperty_defineProperty({
70318
70332
  fontFamily: fontFamily,
70319
70333
  fontSize: fontSize,
@@ -70341,7 +70355,7 @@ var genFocusStyle = function genFocusStyle(token) {
70341
70355
  };
70342
70356
  };
70343
70357
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
70344
- /* harmony default export */ var version = ('5.0.0-alpha.2');
70358
+ /* harmony default export */ var version = ('5.0.0-alpha.4');
70345
70359
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
70346
70360
  /* eslint import/no-unresolved: 0 */
70347
70361
  // @ts-ignore
@@ -70919,7 +70933,6 @@ function theme_useToken() {
70919
70933
 
70920
70934
 
70921
70935
 
70922
-
70923
70936
  function genComponentStyleHook(component, styleFn, getDefaultToken) {
70924
70937
  return function (prefixCls) {
70925
70938
  var _useToken = theme_useToken(),
@@ -70931,7 +70944,6 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
70931
70944
  getPrefixCls = _useContext.getPrefixCls,
70932
70945
  iconPrefixCls = _useContext.iconPrefixCls;
70933
70946
  var rootPrefixCls = getPrefixCls();
70934
- if (false) {}
70935
70947
  // Generate style for all a tags in antd component.
70936
70948
  useStyleRegister({
70937
70949
  theme: theme,
@@ -70942,7 +70954,7 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
70942
70954
  return [{
70943
70955
  // Link
70944
70956
  '&': genLinkStyle(token)
70945
- }, genCommonStyle(token, rootPrefixCls)];
70957
+ }];
70946
70958
  });
70947
70959
  return [useStyleRegister({
70948
70960
  theme: theme,
@@ -70970,7 +70982,7 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
70970
70982
  overrideComponentToken: token[component]
70971
70983
  });
70972
70984
  flush(component, mergedComponentToken);
70973
- return styleInterpolation;
70985
+ return [genCommonStyle(token, prefixCls), styleInterpolation];
70974
70986
  }), hashId];
70975
70987
  };
70976
70988
  }
@@ -76194,24 +76206,24 @@ function registerTheme(globalPrefixCls, theme) {
76194
76206
 
76195
76207
 
76196
76208
 
76209
+
76197
76210
  function useTheme(theme, parentTheme) {
76198
76211
  var themeConfig = theme || {};
76199
- var parentThemeConfig = parentTheme || {};
76212
+ var parentThemeConfig = parentTheme || theme_defaultConfig;
76200
76213
  var mergedTheme = useMemo_useMemo(function () {
76201
76214
  if (!theme) {
76202
76215
  return parentTheme;
76203
76216
  }
76204
76217
  // Override
76205
- var mergedOverride = extends_extends({}, parentThemeConfig.components);
76218
+ var mergedComponents = extends_extends({}, parentThemeConfig.components);
76206
76219
  Object.keys(theme.components || {}).forEach(function (componentName) {
76207
- mergedOverride[componentName] = extends_extends(extends_extends({}, mergedOverride[componentName]), theme.components[componentName]);
76220
+ mergedComponents[componentName] = extends_extends(extends_extends({}, mergedComponents[componentName]), theme.components[componentName]);
76208
76221
  });
76209
76222
  // Base token
76210
- var merged = extends_extends(extends_extends(extends_extends({}, parentThemeConfig), themeConfig), {
76223
+ return extends_extends(extends_extends(extends_extends({}, parentThemeConfig), themeConfig), {
76211
76224
  token: extends_extends(extends_extends({}, parentThemeConfig.token), themeConfig.token),
76212
- override: mergedOverride
76225
+ components: mergedComponents
76213
76226
  });
76214
- return merged;
76215
76227
  }, [themeConfig, parentThemeConfig], function (prev, next) {
76216
76228
  return prev.some(function (prevTheme, index) {
76217
76229
  var nextTheme = next[index];
@@ -76693,7 +76705,7 @@ function getPlacements(config) {
76693
76705
  var isValidElement = external_React_.isValidElement;
76694
76706
 
76695
76707
  function isFragment(child) {
76696
- return child && child.type === external_React_.Fragment;
76708
+ return child && isValidElement(child) && child.type === external_React_.Fragment;
76697
76709
  }
76698
76710
  function replaceElement(element, replacement, props) {
76699
76711
  if (!isValidElement(element)) {
@@ -81366,14 +81378,14 @@ var accessibilityFocus = function accessibilityFocus(token) {
81366
81378
  return extends_extends({}, genFocusOutline(token));
81367
81379
  };
81368
81380
  var getThemeStyle = function getThemeStyle(token, themeSuffix) {
81369
- var _$concat3, _$concat4, _$concat$concat3, _$concat8, _$concat$concat4;
81381
+ var _not$concat, _$concat3, _$concat4, _$concat$concat3, _$concat8, _$concat$concat4;
81370
81382
  var componentCls = token.componentCls,
81371
81383
  colorItemText = token.colorItemText,
81372
81384
  colorItemTextSelected = token.colorItemTextSelected,
81385
+ colorItemTextSelectedHorizontal = token.colorItemTextSelectedHorizontal,
81373
81386
  colorGroupTitle = token.colorGroupTitle,
81374
81387
  colorItemBg = token.colorItemBg,
81375
81388
  colorSubItemBg = token.colorSubItemBg,
81376
- colorItemBgActive = token.colorItemBgActive,
81377
81389
  colorItemBgSelectedHorizontal = token.colorItemBgSelectedHorizontal,
81378
81390
  colorItemBgSelected = token.colorItemBgSelected,
81379
81391
  colorActiveBarHeight = token.colorActiveBarHeight,
@@ -81383,16 +81395,20 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
81383
81395
  motionEaseInOut = token.motionEaseInOut,
81384
81396
  motionEaseOut = token.motionEaseOut,
81385
81397
  menuItemPaddingInline = token.menuItemPaddingInline,
81398
+ itemMarginInline = token.itemMarginInline,
81386
81399
  motionDurationFast = token.motionDurationFast,
81387
81400
  colorItemTextHover = token.colorItemTextHover,
81388
81401
  lineType = token.lineType,
81389
81402
  colorSplit = token.colorSplit,
81403
+ colorItemBgActive = token.colorItemBgActive,
81390
81404
  colorItemTextDisabled = token.colorItemTextDisabled,
81391
81405
  colorDangerItemText = token.colorDangerItemText,
81392
81406
  colorDangerItemTextHover = token.colorDangerItemTextHover,
81393
81407
  colorDangerItemTextSelected = token.colorDangerItemTextSelected,
81394
81408
  colorDangerItemBgActive = token.colorDangerItemBgActive,
81395
- colorDangerItemBgSelected = token.colorDangerItemBgSelected;
81409
+ colorDangerItemBgSelected = token.colorDangerItemBgSelected,
81410
+ radiusItem = token.radiusItem,
81411
+ colorItemBgHover = token.colorItemBgHover;
81396
81412
  return defineProperty_defineProperty({}, "".concat(componentCls, "-").concat(themeSuffix), (_$concat$concat4 = {
81397
81413
  color: colorItemText,
81398
81414
  background: colorItemBg
@@ -81404,9 +81420,49 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
81404
81420
  color: "".concat(colorItemTextDisabled, " !important")
81405
81421
  }), 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
81422
  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 = {
81423
+ })), defineProperty_defineProperty(_$concat$concat4, "&:not(".concat(componentCls, "-horizontal)"), (_not$concat = {}, defineProperty_defineProperty(_not$concat, "".concat(componentCls, "-item:not(").concat(componentCls, "-item-selected)"), {
81424
+ '&:hover': {
81425
+ backgroundColor: colorItemBgHover
81426
+ },
81427
+ '&:active::before': {
81428
+ content: '""',
81429
+ position: 'absolute',
81430
+ insetInlineStart: 0,
81431
+ top: 0,
81432
+ width: "100%",
81433
+ height: '100%',
81434
+ flex: 1,
81435
+ borderRadius: radiusItem,
81436
+ backgroundColor: colorItemBgActive,
81437
+ transition: "background-color ".concat(motionDurationFast)
81438
+ }
81439
+ }), defineProperty_defineProperty(_not$concat, "".concat(componentCls, "-submenu-title"), {
81440
+ '&::before': {
81441
+ content: '""',
81442
+ position: 'absolute',
81443
+ insetInlineStart: itemMarginInline,
81444
+ top: 0,
81445
+ width: "calc(100% - ".concat(itemMarginInline * 2, "px)"),
81446
+ height: '100%',
81447
+ borderRadius: radiusItem,
81448
+ backgroundColor: 'transparent',
81449
+ transition: "background-color ".concat(motionDurationFast)
81450
+ },
81451
+ '&:hover::before': {
81452
+ backgroundColor: colorItemBgHover
81453
+ },
81454
+ '&:active::after': {
81455
+ content: '""',
81456
+ position: 'absolute',
81457
+ insetInlineStart: itemMarginInline,
81458
+ top: 0,
81459
+ width: "calc(100% - ".concat(itemMarginInline * 2, "px)"),
81460
+ height: '100%',
81461
+ borderRadius: radiusItem,
81462
+ backgroundColor: colorItemBgActive,
81463
+ transition: "background-color ".concat(motionDurationFast)
81464
+ }
81465
+ }), _not$concat)), defineProperty_defineProperty(_$concat$concat4, "".concat(componentCls, "-item-danger"), (_$concat3 = {
81410
81466
  color: colorDangerItemText
81411
81467
  }, defineProperty_defineProperty(_$concat3, "&".concat(componentCls, "-item:hover"), defineProperty_defineProperty({}, "&:not(".concat(componentCls, "-item-selected):not(").concat(componentCls, "-submenu-selected)"), {
81412
81468
  color: colorDangerItemTextHover
@@ -81444,23 +81500,23 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
81444
81500
  content: '""'
81445
81501
  }
81446
81502
  }, defineProperty_defineProperty(_$concat$concat3, "&:hover, &-active, &-open", {
81447
- color: colorItemTextSelected,
81503
+ color: colorItemTextSelectedHorizontal,
81448
81504
  '&::after': {
81449
81505
  borderWidth: "".concat(colorActiveBarHeight, "px"),
81450
- borderBottomColor: colorItemTextSelected
81506
+ borderBottomColor: colorItemTextSelectedHorizontal
81451
81507
  }
81452
81508
  }), defineProperty_defineProperty(_$concat$concat3, "&-selected", {
81453
- color: colorItemTextSelected,
81509
+ color: colorItemTextSelectedHorizontal,
81454
81510
  backgroundColor: colorItemBgSelectedHorizontal,
81455
81511
  '&::after': {
81456
81512
  borderWidth: "".concat(colorActiveBarHeight, "px"),
81457
- borderBottomColor: colorItemTextSelected
81513
+ borderBottomColor: colorItemTextSelectedHorizontal
81458
81514
  }
81459
81515
  }), _$concat$concat3))), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-root"), defineProperty_defineProperty({}, "&".concat(componentCls, "-inline, &").concat(componentCls, "-vertical"), {
81460
81516
  borderInlineEnd: "".concat(colorActiveBarBorderSize, "px ").concat(lineType, " ").concat(colorSplit)
81461
81517
  })), defineProperty_defineProperty(_$concat$concat4, "&".concat(componentCls, "-inline"), (_$concat8 = {}, defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-sub").concat(componentCls, "-inline"), {
81462
81518
  background: colorSubItemBg
81463
- }), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize ? {
81519
+ }), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), colorActiveBarBorderSize && colorActiveBarWidth ? {
81464
81520
  width: "calc(100% + ".concat(colorActiveBarBorderSize, "px)")
81465
81521
  } : {}), defineProperty_defineProperty(_$concat8, "".concat(componentCls, "-item"), defineProperty_defineProperty({
81466
81522
  position: 'relative',
@@ -81495,6 +81551,7 @@ var getVerticalInlineStyle = function getVerticalInlineStyle(token) {
81495
81551
  var componentCls = token.componentCls,
81496
81552
  menuItemHeight = token.menuItemHeight,
81497
81553
  menuItemMarginInline = token.menuItemMarginInline,
81554
+ itemMarginInline = token.itemMarginInline,
81498
81555
  padding = token.padding,
81499
81556
  menuArrowSize = token.menuArrowSize,
81500
81557
  fontSize = token.fontSize;
@@ -81504,10 +81561,15 @@ var getVerticalInlineStyle = function getVerticalInlineStyle(token) {
81504
81561
  }), defineProperty_defineProperty(_ref, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu-title"), {
81505
81562
  height: menuItemHeight,
81506
81563
  lineHeight: "".concat(menuItemHeight, "px"),
81507
- marginBlock: menuItemMarginInline,
81508
81564
  paddingInline: padding,
81509
81565
  overflow: 'hidden',
81510
81566
  textOverflow: 'ellipsis'
81567
+ }), defineProperty_defineProperty(_ref, "".concat(componentCls, "-item"), {
81568
+ marginInline: itemMarginInline,
81569
+ marginBlock: menuItemMarginInline,
81570
+ width: "calc(100% - ".concat(itemMarginInline * 2, "px)")
81571
+ }), defineProperty_defineProperty(_ref, "".concat(componentCls, "-submenu-title"), {
81572
+ marginBlock: menuItemMarginInline
81511
81573
  }), defineProperty_defineProperty(_ref, "".concat(componentCls, "-submenu"), {
81512
81574
  paddingBottom: 0.02
81513
81575
  }), defineProperty_defineProperty(_ref, "> ".concat(componentCls, "-item,\n > ").concat(componentCls, "-submenu > ").concat(componentCls, "-submenu-title"), {
@@ -81627,7 +81689,7 @@ var getVerticalStyle = function getVerticalStyle(token) {
81627
81689
 
81628
81690
  // =============================== Base ===============================
81629
81691
  var getBaseStyle = function getBaseStyle(token) {
81630
- var _$concat$concat, _$concat5, _extends3;
81692
+ var _$concat$concat, _$concat4, _$concat5, _extends3;
81631
81693
  var antCls = token.antCls,
81632
81694
  componentCls = token.componentCls,
81633
81695
  fontSize = token.fontSize,
@@ -81643,6 +81705,8 @@ var getBaseStyle = function getBaseStyle(token) {
81643
81705
  iconCls = token.iconCls,
81644
81706
  zIndexPopup = token.zIndexPopup,
81645
81707
  radiusBase = token.radiusBase,
81708
+ radiusLG = token.radiusLG,
81709
+ radiusSubMenuItem = token.radiusSubMenuItem,
81646
81710
  menuArrowSize = token.menuArrowSize,
81647
81711
  controlHeightSM = token.controlHeightSM,
81648
81712
  menuArrowOffset = token.menuArrowOffset,
@@ -81675,7 +81739,7 @@ var getBaseStyle = function getBaseStyle(token) {
81675
81739
  display: 'flex'
81676
81740
  }, "".concat(componentCls, "-item"), {
81677
81741
  flex: 'none'
81678
- })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item,").concat(componentCls, "-submenu,"), {
81742
+ })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item, ").concat(componentCls, "-submenu"), {
81679
81743
  borderRadius: token.radiusItem
81680
81744
  }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-item-group-title"), {
81681
81745
  padding: "".concat(paddingXS, "px ").concat(padding, "px"),
@@ -81751,7 +81815,7 @@ var getBaseStyle = function getBaseStyle(token) {
81751
81815
  position: 'absolute',
81752
81816
  zIndex: zIndexPopup,
81753
81817
  background: 'transparent',
81754
- borderRadius: radiusBase,
81818
+ borderRadius: radiusLG,
81755
81819
  boxShadow: 'none',
81756
81820
  transformOrigin: '0 0',
81757
81821
  // https://github.com/ant-design/ant-design/issues/13955
@@ -81770,11 +81834,13 @@ var getBaseStyle = function getBaseStyle(token) {
81770
81834
  top: 0,
81771
81835
  insetInlineStart: menuPanelMaskInset
81772
81836
  }
81773
- }, "> ".concat(componentCls), defineProperty_defineProperty({
81774
- borderRadius: radiusBase
81775
- }, "".concat(componentCls, "-submenu-title::after"), {
81837
+ }, "> ".concat(componentCls), (_$concat4 = {
81838
+ borderRadius: radiusLG
81839
+ }, defineProperty_defineProperty(_$concat4, "> ".concat(componentCls, "-item"), {
81840
+ borderRadius: radiusSubMenuItem
81841
+ }), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-submenu-title::after"), {
81776
81842
  transition: "transform ".concat(motionDurationSlow, " ").concat(motionEaseInOut)
81777
- }))), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-submenu"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "&-expand-icon, &-arrow", {
81843
+ }), _$concat4))), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-submenu"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "&-expand-icon, &-arrow", {
81778
81844
  position: 'absolute',
81779
81845
  top: '50%',
81780
81846
  insetInlineEnd: token.margin,
@@ -81892,23 +81958,29 @@ var getBaseStyle = function getBaseStyle(token) {
81892
81958
  colorTextDescription = token.colorTextDescription,
81893
81959
  colorBgContainer = token.colorBgContainer,
81894
81960
  colorFillAlter = token.colorFillAlter,
81895
- controlItemBgActive = token.controlItemBgActive,
81961
+ colorFillContent = token.colorFillContent,
81896
81962
  lineWidth = token.lineWidth,
81897
- lineWidthBold = token.lineWidthBold;
81963
+ lineWidthBold = token.lineWidthBold,
81964
+ controlItemBgActiveHover = token.controlItemBgActiveHover,
81965
+ colorBgTextHover = token.colorBgTextHover;
81898
81966
  return {
81899
81967
  dropdownWidth: 160,
81900
81968
  zIndexPopup: token.zIndexPopupBase + 50,
81901
- radiusItem: 0,
81969
+ radiusItem: token.radiusLG,
81970
+ radiusSubMenuItem: token.radiusSM,
81902
81971
  colorItemText: colorText,
81903
- colorItemTextHover: colorPrimary,
81972
+ colorItemTextHover: colorText,
81973
+ colorItemTextHoverHorizontal: colorPrimary,
81904
81974
  colorGroupTitle: colorTextDescription,
81905
- colorItemTextSelected: colorPrimary,
81975
+ colorItemTextSelected: colorText,
81976
+ colorItemTextSelectedHorizontal: colorPrimary,
81906
81977
  colorItemBg: colorBgContainer,
81978
+ colorItemBgHover: colorBgTextHover,
81979
+ colorItemBgActive: colorFillContent,
81907
81980
  colorSubItemBg: colorFillAlter,
81908
- colorItemBgActive: controlItemBgActive,
81909
- colorItemBgSelected: controlItemBgActive,
81981
+ colorItemBgSelected: controlItemBgActiveHover,
81910
81982
  colorItemBgSelectedHorizontal: 'transparent',
81911
- colorActiveBarWidth: lineWidthBold + lineWidth,
81983
+ colorActiveBarWidth: 0,
81912
81984
  colorActiveBarHeight: lineWidthBold,
81913
81985
  colorActiveBarBorderSize: lineWidth,
81914
81986
  // Disabled
@@ -81918,7 +81990,8 @@ var getBaseStyle = function getBaseStyle(token) {
81918
81990
  colorDangerItemTextHover: colorError,
81919
81991
  colorDangerItemTextSelected: colorError,
81920
81992
  colorDangerItemBgActive: colorErrorBg,
81921
- colorDangerItemBgSelected: colorErrorBg
81993
+ colorDangerItemBgSelected: colorErrorBg,
81994
+ itemMarginInline: token.marginXXS
81922
81995
  };
81923
81996
  });
81924
81997
  return useOriginHook(prefixCls);
@@ -85083,17 +85156,17 @@ function BaseProList(props) {
85083
85156
  /* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
85084
85157
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
85085
85158
  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",
85159
+ "@ant-design/pro-card": "2.0.16",
85160
+ "@ant-design/pro-components": "2.3.21",
85161
+ "@ant-design/pro-descriptions": "2.0.18",
85162
+ "@ant-design/pro-field": "2.1.11",
85163
+ "@ant-design/pro-form": "2.2.9",
85164
+ "@ant-design/pro-layout": "7.1.10",
85165
+ "@ant-design/pro-list": "2.0.18",
85166
+ "@ant-design/pro-provider": "2.0.8",
85094
85167
  "@ant-design/pro-skeleton": "2.0.4",
85095
- "@ant-design/pro-table": "3.0.17",
85096
- "@ant-design/pro-utils": "2.2.7"
85168
+ "@ant-design/pro-table": "3.0.18",
85169
+ "@ant-design/pro-utils": "2.2.8"
85097
85170
  };
85098
85171
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
85099
85172