@ant-design/pro-components 2.3.8 → 2.3.9

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.
@@ -8873,9 +8873,9 @@ function pad2(c) {
8873
8873
  /***/ (function(module, exports) {
8874
8874
 
8875
8875
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
8876
- Copyright (c) 2018 Jed Watson.
8877
- Licensed under the MIT License (MIT), see
8878
- http://jedwatson.github.io/classnames
8876
+ Copyright (c) 2018 Jed Watson.
8877
+ Licensed under the MIT License (MIT), see
8878
+ http://jedwatson.github.io/classnames
8879
8879
  */
8880
8880
 
8881
8881
  /* global define */
@@ -8883,6 +8883,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
8883
8883
  'use strict';
8884
8884
 
8885
8885
  var hasOwn = {}.hasOwnProperty;
8886
+ var nativeCodeString = '[native code]';
8886
8887
 
8887
8888
  function classNames() {
8888
8889
  var classes = [];
@@ -8903,14 +8904,15 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
8903
8904
  }
8904
8905
  }
8905
8906
  } else if (argType === 'object') {
8906
- if (arg.toString === Object.prototype.toString) {
8907
- for (var key in arg) {
8908
- if (hasOwn.call(arg, key) && arg[key]) {
8909
- classes.push(key);
8910
- }
8911
- }
8912
- } else {
8907
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
8913
8908
  classes.push(arg.toString());
8909
+ continue;
8910
+ }
8911
+
8912
+ for (var key in arg) {
8913
+ if (hasOwn.call(arg, key) && arg[key]) {
8914
+ classes.push(key);
8915
+ }
8914
8916
  }
8915
8917
  }
8916
8918
  }
@@ -20756,18 +20758,27 @@ function removeCSS(key) {
20756
20758
  var existNode = findExistNode(key, option);
20757
20759
  existNode === null || existNode === void 0 ? void 0 : (_existNode$parentNode = existNode.parentNode) === null || _existNode$parentNode === void 0 ? void 0 : _existNode$parentNode.removeChild(existNode);
20758
20760
  }
20761
+ /**
20762
+ * qiankun will inject `appendChild` to insert into other
20763
+ */
20759
20764
 
20760
- function updateCSS(css, key) {
20761
- var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
20762
- var container = getContainer(option); // Get real parent
20763
20765
 
20764
- if (!containerCache.has(container)) {
20766
+ function syncRealContainer(container, option) {
20767
+ var cachedRealContainer = containerCache.get(container); // Find real container when not cached or cached container removed
20768
+
20769
+ if (!cachedRealContainer || !document.contains(cachedRealContainer)) {
20765
20770
  var placeholderStyle = injectCSS('', option);
20766
20771
  var parentNode = placeholderStyle.parentNode;
20767
20772
  containerCache.set(container, parentNode);
20768
20773
  parentNode.removeChild(placeholderStyle);
20769
20774
  }
20775
+ }
20770
20776
 
20777
+ function updateCSS(css, key) {
20778
+ var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
20779
+ var container = getContainer(option); // Sync real parent
20780
+
20781
+ syncRealContainer(container, option);
20771
20782
  var existNode = findExistNode(key, option);
20772
20783
 
20773
20784
  if (existNode) {
@@ -28576,17 +28587,26 @@ function removeCSS(key) {
28576
28587
  var existNode = findExistNode(key, option);
28577
28588
  existNode === null || existNode === void 0 ? void 0 : (_existNode$parentNode = existNode.parentNode) === null || _existNode$parentNode === void 0 ? void 0 : _existNode$parentNode.removeChild(existNode);
28578
28589
  }
28579
- function updateCSS(css, key) {
28580
- var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
28581
- var container = getContainer(option); // Get real parent
28590
+ /**
28591
+ * qiankun will inject `appendChild` to insert into other
28592
+ */
28593
+
28594
+ function syncRealContainer(container, option) {
28595
+ var cachedRealContainer = containerCache.get(container); // Find real container when not cached or cached container removed
28582
28596
 
28583
- if (!containerCache.has(container)) {
28597
+ if (!cachedRealContainer || !document.contains(cachedRealContainer)) {
28584
28598
  var placeholderStyle = injectCSS('', option);
28585
28599
  var parentNode = placeholderStyle.parentNode;
28586
28600
  containerCache.set(container, parentNode);
28587
28601
  parentNode.removeChild(placeholderStyle);
28588
28602
  }
28603
+ }
28589
28604
 
28605
+ function updateCSS(css, key) {
28606
+ var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
28607
+ var container = getContainer(option); // Sync real parent
28608
+
28609
+ syncRealContainer(container, option);
28590
28610
  var existNode = findExistNode(key, option);
28591
28611
 
28592
28612
  if (existNode) {
@@ -29510,7 +29530,23 @@ var StyleProvider = function StyleProvider(props) {
29510
29530
  }, children);
29511
29531
  };
29512
29532
  /* harmony default export */ var es_StyleContext = (StyleContext);
29513
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/useGlobalCache.js
29533
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useHMR.js
29534
+ function useProdHMR() {
29535
+ return false;
29536
+ }
29537
+
29538
+ var webpackHMR = false;
29539
+
29540
+ function useDevHMR() {
29541
+ return webpackHMR;
29542
+ }
29543
+
29544
+ /* harmony default export */ var useHMR = ( true ? useProdHMR : 0); // Webpack `module.hot.accept` do not support any deps update trigger
29545
+ // We have to hack handler to force mark as HRM
29546
+
29547
+ if (false) { var originWebpackHotUpdate, win; }
29548
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js
29549
+
29514
29550
 
29515
29551
 
29516
29552
 
@@ -29519,7 +29555,8 @@ function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
29519
29555
  var _React$useContext = external_React_.useContext(es_StyleContext),
29520
29556
  globalCache = _React$useContext.cache;
29521
29557
 
29522
- var fullPath = [prefix].concat(toConsumableArray_toConsumableArray(keyPath)); // Create cache
29558
+ var fullPath = [prefix].concat(toConsumableArray_toConsumableArray(keyPath));
29559
+ var HMRUpdate = useHMR(); // Create cache
29523
29560
 
29524
29561
  external_React_.useMemo(function () {
29525
29562
  globalCache.update(fullPath, function (prevCache) {
@@ -29527,9 +29564,14 @@ function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
29527
29564
  _ref2 = slicedToArray_slicedToArray(_ref, 2),
29528
29565
  _ref2$ = _ref2[0],
29529
29566
  times = _ref2$ === void 0 ? 0 : _ref2$,
29530
- cache = _ref2[1];
29567
+ cache = _ref2[1]; // HMR should always ignore cache since developer may change it
29568
+
29569
+
29570
+ var tmpCache = cache;
29531
29571
 
29532
- var mergedCache = cache || cacheFn();
29572
+ if (false) {}
29573
+
29574
+ var mergedCache = tmpCache || cacheFn();
29533
29575
  return [times + 1, mergedCache];
29534
29576
  });
29535
29577
  },
@@ -29548,7 +29590,7 @@ function useClientCache(prefix, keyPath, cacheFn, onCacheRemove) {
29548
29590
  var nextCount = times - 1;
29549
29591
 
29550
29592
  if (nextCount === 0) {
29551
- onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(cache);
29593
+ onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(cache, false);
29552
29594
  return null;
29553
29595
  }
29554
29596
 
@@ -29590,6 +29632,8 @@ function noteOnce(valid, message) {
29590
29632
 
29591
29633
 
29592
29634
 
29635
+
29636
+
29593
29637
  function flattenToken(token) {
29594
29638
  var str = '';
29595
29639
  Object.keys(token).forEach(function (key) {
@@ -29724,7 +29768,53 @@ var styleValidate = function styleValidate(key, value) {
29724
29768
  return;
29725
29769
  }
29726
29770
  };
29727
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/useStyleRegister.js
29771
+ var layerKey = "layer-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, '');
29772
+ var layerWidth = '903px';
29773
+
29774
+ function supportSelector(styleStr, handleElement) {
29775
+ if (canUseDom()) {
29776
+ var _ele$parentNode;
29777
+
29778
+ updateCSS(styleStr, layerKey);
29779
+ var ele = document.createElement('div');
29780
+ ele.style.position = 'fixed';
29781
+ ele.style.left = '0';
29782
+ ele.style.top = '0';
29783
+ handleElement === null || handleElement === void 0 ? void 0 : handleElement(ele);
29784
+ document.body.appendChild(ele);
29785
+
29786
+ if (false) {}
29787
+
29788
+ var support = getComputedStyle(ele).width === layerWidth;
29789
+ (_ele$parentNode = ele.parentNode) === null || _ele$parentNode === void 0 ? void 0 : _ele$parentNode.removeChild(ele);
29790
+ removeCSS(layerKey);
29791
+ return support;
29792
+ }
29793
+
29794
+ return false;
29795
+ }
29796
+
29797
+ var canWhere = undefined;
29798
+ function supportWhere() {
29799
+ if (canWhere === undefined) {
29800
+ canWhere = supportSelector(":where(.".concat(layerKey, ") { width: ").concat(layerWidth, "!important; }"), function (ele) {
29801
+ ele.className = layerKey;
29802
+ });
29803
+ }
29804
+
29805
+ return canWhere;
29806
+ }
29807
+ var canLayer = undefined;
29808
+ function supportLayer() {
29809
+ if (canLayer === undefined) {
29810
+ canLayer = supportSelector("@layer ".concat(layerKey, " { .").concat(layerKey, " { width: ").concat(layerWidth, "!important; } }"), function (ele) {
29811
+ ele.className = layerKey;
29812
+ });
29813
+ }
29814
+
29815
+ return canLayer;
29816
+ }
29817
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js
29728
29818
 
29729
29819
 
29730
29820
 
@@ -29747,18 +29837,50 @@ var SKIP_CHECK = '_skip_check_'; // ============================================
29747
29837
  // Preprocessor style content to browser support one
29748
29838
 
29749
29839
  function normalizeStyle(styleStr) {
29750
- return Serializer_serialize(compile(styleStr), stringify);
29840
+ var serialized = Serializer_serialize(compile(styleStr), stringify);
29841
+ return serialized.replace(/\{%%%\:[^;];}/g, ';');
29751
29842
  }
29752
29843
 
29753
29844
  function isCompoundCSSProperty(value) {
29754
29845
  return typeof_typeof(value) === 'object' && value && SKIP_CHECK in value;
29755
29846
  }
29756
29847
 
29757
- var animationStatistics = {}; // Parse CSSObject to style content
29848
+ var animationStatistics = {}; // 注入 hash
29849
+
29850
+ function injectSelectorHash(key, hashId) {
29851
+ if (!hashId) {
29852
+ return key;
29853
+ }
29758
29854
 
29759
- var parseStyle = function parseStyle(interpolation, hashId, path) {
29760
- var root = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
29761
- var injectHash = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
29855
+ var hashClassName = ".".concat(hashId);
29856
+ var hashSelector = supportWhere() ? ":where(".concat(hashClassName, ")") : hashClassName; // 注入 hashId
29857
+
29858
+ var keys = key.split(',').map(function (k) {
29859
+ var _firstPath$match;
29860
+
29861
+ var fullPath = k.trim().split(/\s+/); // 如果 Selector 第一个是 HTML Element,那我们就插到它的后面。反之,就插到最前面。
29862
+
29863
+ var firstPath = fullPath[0] || '';
29864
+ var htmlElement = ((_firstPath$match = firstPath.match(/^\w+/)) === null || _firstPath$match === void 0 ? void 0 : _firstPath$match[0]) || '';
29865
+ firstPath = "".concat(htmlElement).concat(hashSelector).concat(firstPath.slice(htmlElement.length));
29866
+ return [firstPath].concat(toConsumableArray_toConsumableArray(fullPath.slice(1))).join(' ');
29867
+ });
29868
+ return keys.join(',');
29869
+ } // Parse CSSObject to style content
29870
+
29871
+
29872
+ var parseStyle = function parseStyle(interpolation) {
29873
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
29874
+
29875
+ var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
29876
+ root: true
29877
+ },
29878
+ root = _ref.root,
29879
+ injectHash = _ref.injectHash;
29880
+
29881
+ var hashId = config.hashId,
29882
+ layer = config.layer,
29883
+ path = config.path;
29762
29884
  var styleStr = '';
29763
29885
 
29764
29886
  function parseKeyframes(keyframes) {
@@ -29767,7 +29889,9 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29767
29889
  }
29768
29890
 
29769
29891
  animationStatistics[keyframes.getName(hashId)] = true;
29770
- return "@keyframes ".concat(keyframes.getName(hashId)).concat(parseStyle(keyframes.style, hashId, path, false));
29892
+ return "@keyframes ".concat(keyframes.getName(hashId)).concat(parseStyle(keyframes.style, config, {
29893
+ root: false
29894
+ }));
29771
29895
  }
29772
29896
 
29773
29897
  function flattenList(list) {
@@ -29783,8 +29907,13 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29783
29907
  }
29784
29908
 
29785
29909
  var flattenStyleList = flattenList(Array.isArray(interpolation) ? interpolation : [interpolation]);
29786
- flattenStyleList.forEach(function (style) {
29787
- if (style._keyframe) {
29910
+ flattenStyleList.forEach(function (originStyle) {
29911
+ // Only root level can use raw string
29912
+ var style = typeof originStyle === 'string' && !root ? {} : originStyle;
29913
+
29914
+ if (typeof style === 'string') {
29915
+ styleStr += "".concat(style, "\n");
29916
+ } else if (style._keyframe) {
29788
29917
  // Keyframe
29789
29918
  styleStr += parseKeyframes(style);
29790
29919
  } else {
@@ -29805,10 +29934,7 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29805
29934
  subInjectHash = true;
29806
29935
  } else {
29807
29936
  // 注入 hashId
29808
- var keys = key.split(',').map(function (k) {
29809
- return ".".concat(hashId).concat(k.trim());
29810
- });
29811
- mergedKey = keys.join(',');
29937
+ mergedKey = injectSelectorHash(key, hashId);
29812
29938
  }
29813
29939
  } else if (root && !hashId && (mergedKey === '&' || mergedKey === '')) {
29814
29940
  // In case of `{ '&': { a: { color: 'red' } } }` or `{ '': { a: { color: 'red' } } }` without hashId,
@@ -29820,7 +29946,12 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29820
29946
  nextRoot = true;
29821
29947
  }
29822
29948
 
29823
- styleStr += "".concat(mergedKey).concat(parseStyle(value, hashId, "".concat(path, " -> ").concat(mergedKey), nextRoot, subInjectHash));
29949
+ styleStr += "".concat(mergedKey).concat(parseStyle(value, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, config), {}, {
29950
+ path: "".concat(path, " -> ").concat(mergedKey)
29951
+ }), {
29952
+ root: nextRoot,
29953
+ injectHash: subInjectHash
29954
+ }));
29824
29955
  } else {
29825
29956
  var _value$value;
29826
29957
 
@@ -29853,6 +29984,15 @@ var parseStyle = function parseStyle(interpolation, hashId, path) {
29853
29984
 
29854
29985
  if (!root) {
29855
29986
  styleStr = "{".concat(styleStr, "}");
29987
+ } else if (layer && supportLayer()) {
29988
+ var layerCells = layer.split(',');
29989
+ var layerName = layerCells[layerCells.length - 1].trim();
29990
+ styleStr = "@layer ".concat(layerName, " {").concat(styleStr, "}"); // Order of layer if needed
29991
+
29992
+ if (layerCells.length > 1) {
29993
+ // zombieJ: stylis do not support layer order, so we need to handle it manually.
29994
+ styleStr = "@layer ".concat(layer, "{%%%:%}").concat(styleStr);
29995
+ }
29856
29996
  }
29857
29997
 
29858
29998
  return styleStr;
@@ -29875,7 +30015,8 @@ function Empty() {
29875
30015
  function useStyleRegister(info, styleFn) {
29876
30016
  var token = info.token,
29877
30017
  path = info.path,
29878
- hashId = info.hashId;
30018
+ hashId = info.hashId,
30019
+ layer = info.layer;
29879
30020
 
29880
30021
  var _React$useContext = external_React_.useContext(es_StyleContext),
29881
30022
  autoClear = _React$useContext.autoClear,
@@ -29892,7 +30033,11 @@ function useStyleRegister(info, styleFn) {
29892
30033
  var _useGlobalCache = useClientCache('style', fullPath, // Create cache if needed
29893
30034
  function () {
29894
30035
  var styleObj = styleFn();
29895
- var styleStr = normalizeStyle(parseStyle(styleObj, hashId, path.join('-')));
30036
+ var styleStr = normalizeStyle(parseStyle(styleObj, {
30037
+ hashId: hashId,
30038
+ layer: layer,
30039
+ path: path.join('-')
30040
+ }));
29896
30041
  var styleId = uniqueHash(fullPath, styleStr); // Clear animation statistics
29897
30042
 
29898
30043
  animationStatistics = {};
@@ -29911,11 +30056,11 @@ function useStyleRegister(info, styleFn) {
29911
30056
 
29912
30057
  return [styleStr, tokenKey, styleId];
29913
30058
  }, // Remove cache if no need
29914
- function (_ref) {
29915
- var _ref2 = slicedToArray_slicedToArray(_ref, 3),
29916
- styleId = _ref2[2];
30059
+ function (_ref2, fromHMR) {
30060
+ var _ref3 = slicedToArray_slicedToArray(_ref2, 3),
30061
+ styleId = _ref3[2];
29917
30062
 
29918
- if (autoClear && isClientSide) {
30063
+ if ((fromHMR || autoClear) && isClientSide) {
29919
30064
  removeCSS(styleId, {
29920
30065
  mark: StyleContext_ATTR_MARK
29921
30066
  });
@@ -29964,7 +30109,7 @@ function extractStyle(cache) {
29964
30109
  });
29965
30110
  return styleText;
29966
30111
  }
29967
- ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/useCacheToken.js
30112
+ ;// CONCATENATED MODULE: ./node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js
29968
30113
 
29969
30114
 
29970
30115
 
@@ -32936,6 +33081,15 @@ function isPlainObject(o) {
32936
33081
 
32937
33082
  return true;
32938
33083
  }
33084
+ /**
33085
+ * 一个比较hack的moment判断工具
33086
+ * @param value
33087
+ * @returns
33088
+ */
33089
+
33090
+ var isMoment = function isMoment(value) {
33091
+ return !!(value === null || value === void 0 ? void 0 : value._isAMomentObject);
33092
+ };
32939
33093
  /**
32940
33094
  * 根据不同的格式转化 dayjs
32941
33095
  *
@@ -32944,12 +33098,13 @@ function isPlainObject(o) {
32944
33098
  * @param valueType
32945
33099
  */
32946
33100
 
33101
+
32947
33102
  var convertMoment = function convertMoment(value, dateFormatter, valueType) {
32948
33103
  if (!dateFormatter) {
32949
33104
  return value;
32950
33105
  }
32951
33106
 
32952
- if (dayjs_min_default().isDayjs(value)) {
33107
+ if (dayjs_min_default().isDayjs(value) || isMoment(value)) {
32953
33108
  if (dateFormatter === 'number') {
32954
33109
  return value.valueOf();
32955
33110
  }
@@ -33008,7 +33163,8 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
33008
33163
 
33009
33164
  if (isPlainObject(itemValue) && // 不是数组
33010
33165
  !Array.isArray(itemValue) && // 不是 dayjs
33011
- !dayjs_min_default().isDayjs(itemValue)) {
33166
+ !dayjs_min_default().isDayjs(itemValue) && // 不是 moment
33167
+ !isMoment(itemValue)) {
33012
33168
  tmpValue[key] = conversionMomentValue(itemValue, dateFormatter, valueTypeMap, omitNil, [key]);
33013
33169
  return;
33014
33170
  } // 处理 FormList 的 value
@@ -33016,7 +33172,7 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
33016
33172
 
33017
33173
  if (Array.isArray(itemValue)) {
33018
33174
  tmpValue[key] = itemValue.map(function (arrayValue, index) {
33019
- if (dayjs_min_default().isDayjs(arrayValue)) {
33175
+ if (dayjs_min_default().isDayjs(arrayValue) || isMoment(itemValue)) {
33020
33176
  return convertMoment(arrayValue, dateFormat || dateFormatter, valueType);
33021
33177
  }
33022
33178
 
@@ -34129,8 +34285,22 @@ var omitUndefinedAndEmptyArr = function omitUndefinedAndEmptyArr(obj) {
34129
34285
  ;// CONCATENATED MODULE: ./packages/utils/es/parseValueToMoment/index.js
34130
34286
 
34131
34287
 
34288
+ /**
34289
+ * 一个比较hack的moment判断工具
34290
+ * @param value
34291
+ * @returns
34292
+ */
34293
+
34294
+ var parseValueToMoment_isMoment = function isMoment(value) {
34295
+ return !!(value === null || value === void 0 ? void 0 : value._isAMomentObject);
34296
+ };
34297
+
34132
34298
  var parseValueToDay = function parseValueToDay(value, formatter) {
34133
- if (isNil(value) || dayjs_min_default().isDayjs(value)) {
34299
+ if (isNil(value) || dayjs_min_default().isDayjs(value) || parseValueToMoment_isMoment(value)) {
34300
+ if (parseValueToMoment_isMoment(value)) {
34301
+ return dayjs_min_default()(value);
34302
+ }
34303
+
34134
34304
  return value;
34135
34305
  }
34136
34306
 
@@ -52395,10 +52565,22 @@ function DrawerForm(_ref) {
52395
52565
  }());
52396
52566
  var drawerOpenProps = compareVersions(external_antd_.version, '4.23.0') > -1 ? {
52397
52567
  open: open,
52398
- onOpenChange: onVisibleChange
52568
+ onOpenChange: onVisibleChange,
52569
+ afterOpenChange: function afterOpenChange(e) {
52570
+ var _drawerProps$afterOpe;
52571
+
52572
+ if (!e) resetFields();
52573
+ drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$afterOpe = drawerProps.afterOpenChange) === null || _drawerProps$afterOpe === void 0 ? void 0 : _drawerProps$afterOpe.call(drawerProps, e);
52574
+ }
52399
52575
  } : {
52400
52576
  visible: open,
52401
- onVisibleChange: onVisibleChange
52577
+ onVisibleChange: onVisibleChange,
52578
+ afterVisibleChange: function afterVisibleChange(e) {
52579
+ var _drawerProps$afterOpe2;
52580
+
52581
+ if (!e) resetFields();
52582
+ drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$afterOpe2 = drawerProps.afterOpenChange) === null || _drawerProps$afterOpe2 === void 0 ? void 0 : _drawerProps$afterOpe2.call(drawerProps, e);
52583
+ }
52402
52584
  };
52403
52585
  return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
52404
52586
  children: [(0,jsx_runtime.jsx)(external_antd_.Drawer, objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
@@ -52414,20 +52596,6 @@ function DrawerForm(_ref) {
52414
52596
  drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$onClose2 = drawerProps.onClose) === null || _drawerProps$onClose2 === void 0 ? void 0 : _drawerProps$onClose2.call(drawerProps, e);
52415
52597
  resetFields();
52416
52598
  },
52417
- afterOpenChange: function afterOpenChange(e) {
52418
- var _drawerProps$afterOpe;
52419
-
52420
- resetFields();
52421
- drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$afterOpe = drawerProps.afterOpenChange) === null || _drawerProps$afterOpe === void 0 ? void 0 : _drawerProps$afterOpe.call(drawerProps, e);
52422
- },
52423
- //@ts-expect-error
52424
- afterVisibleChange: function afterVisibleChange(e) {
52425
- var _drawerProps$afterVis;
52426
-
52427
- if (!e) resetFields(); //@ts-expect-error
52428
-
52429
- drawerProps === null || drawerProps === void 0 ? void 0 : (_drawerProps$afterVis = drawerProps.afterVisibleChange) === null || _drawerProps$afterVis === void 0 ? void 0 : _drawerProps$afterVis.call(drawerProps, e);
52430
- },
52431
52599
  footer: rest.submitter !== false && (0,jsx_runtime.jsx)("div", {
52432
52600
  ref: footerDomRef,
52433
52601
  style: {
@@ -68051,6 +68219,12 @@ var BaseProLayout = function BaseProLayout(props) {
68051
68219
  }),
68052
68220
  _useState2 = slicedToArray_slicedToArray(_useState, 1),
68053
68221
  defaultId = _useState2[0];
68222
+ /**
68223
+ * 处理国际化相关 formatMessage
68224
+ * 如果有用户配置的以用户为主
68225
+ * 如果没有用自己实现的
68226
+ */
68227
+
68054
68228
 
68055
68229
  var formatMessage = (0,external_React_.useCallback)(function (_ref4) {
68056
68230
  var id = _ref4.id,
@@ -79702,7 +79876,7 @@ var InternalTreeNode = /*#__PURE__*/function (_React$Component) {
79702
79876
  } : undefined;
79703
79877
  return /*#__PURE__*/external_React_.createElement("div", extends_extends({
79704
79878
  ref: domRef,
79705
- className: classnames_default()(className, "".concat(prefixCls, "-treenode"), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-switcher-").concat(expanded ? 'open' : 'close'), !isLeaf), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-checked"), checked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-indeterminate"), halfChecked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-selected"), selected), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-loading"), loading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-active"), active), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-leaf-last"), isEndNode), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-draggable"), draggableWithoutDisabled), defineProperty_defineProperty(_classNames, "dragging", dragging), defineProperty_defineProperty(_classNames, 'drop-target', dropTargetKey === eventKey), defineProperty_defineProperty(_classNames, 'drop-container', dropContainerKey === eventKey), defineProperty_defineProperty(_classNames, 'drag-over', !disabled && dragOver), defineProperty_defineProperty(_classNames, 'drag-over-gap-top', !disabled && dragOverGapTop), defineProperty_defineProperty(_classNames, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), defineProperty_defineProperty(_classNames, 'filter-node', filterTreeNode && filterTreeNode(convertNodePropsToEventData(this.props))), _classNames)),
79879
+ className: classnames_default()(className, "".concat(prefixCls, "-treenode"), (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-disabled"), disabled), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-switcher-").concat(expanded ? 'open' : 'close'), !isLeaf), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-checked"), checked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-checkbox-indeterminate"), halfChecked), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-selected"), selected), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-loading"), loading), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-active"), active), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-leaf-last"), isEndNode), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-treenode-draggable"), mergedDraggable), defineProperty_defineProperty(_classNames, "dragging", dragging), defineProperty_defineProperty(_classNames, 'drop-target', dropTargetKey === eventKey), defineProperty_defineProperty(_classNames, 'drop-container', dropContainerKey === eventKey), defineProperty_defineProperty(_classNames, 'drag-over', !disabled && dragOver), defineProperty_defineProperty(_classNames, 'drag-over-gap-top', !disabled && dragOverGapTop), defineProperty_defineProperty(_classNames, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), defineProperty_defineProperty(_classNames, 'filter-node', filterTreeNode && filterTreeNode(convertNodePropsToEventData(this.props))), _classNames)),
79706
79880
  style: style // Draggable config
79707
79881
  ,
79708
79882
  draggable: draggableWithoutDisabled,
@@ -80773,6 +80947,7 @@ function statisticToken(token) {
80773
80947
 
80774
80948
 
80775
80949
 
80950
+
80776
80951
  var style_resetComponent = function resetComponent(token) {
80777
80952
  return {
80778
80953
  boxSizing: 'border-box',
@@ -80782,8 +80957,9 @@ var style_resetComponent = function resetComponent(token) {
80782
80957
  fontSize: token.fontSize,
80783
80958
  // font-variant: @font-variant-base;
80784
80959
  lineHeight: token.lineHeight,
80785
- listStyle: 'none' // font-feature-settings: @font-feature-settings-base;
80786
-
80960
+ listStyle: 'none',
80961
+ // font-feature-settings: @font-feature-settings-base;
80962
+ fontFamily: token.fontFamily
80787
80963
  };
80788
80964
  };
80789
80965
  var resetIcon = function resetIcon() {
@@ -80856,8 +81032,28 @@ var genLinkStyle = function genLinkStyle(token) {
80856
81032
  }), _a)
80857
81033
  };
80858
81034
  };
81035
+ var genFontStyle = function genFontStyle(token, rootPrefixCls) {
81036
+ var fontFamily = token.fontFamily,
81037
+ fontSize = token.fontSize;
81038
+ return defineProperty_defineProperty({}, "[class^=\"".concat(rootPrefixCls, "-\"], [class*=\" ").concat(rootPrefixCls, "-\"]"), {
81039
+ fontFamily: fontFamily,
81040
+ fontSize: fontSize
81041
+ });
81042
+ };
81043
+ var genFocusOutline = function genFocusOutline(token) {
81044
+ return {
81045
+ outline: "".concat(token.lineWidth * 4, "px solid ").concat(token.colorPrimaryBorder),
81046
+ outlineOffset: 1,
81047
+ transition: 'outline-offset 0s, outline 0s'
81048
+ };
81049
+ };
81050
+ var genFocusStyle = function genFocusStyle(token) {
81051
+ return {
81052
+ '&:focus-visible': extends_extends({}, genFocusOutline(token))
81053
+ };
81054
+ };
80859
81055
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
80860
- /* harmony default export */ var version = ('5.0.0-experimental.23');
81056
+ /* harmony default export */ var version = ('5.0.0-experimental.24');
80861
81057
  ;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
80862
81058
  /* eslint import/no-unresolved: 0 */
80863
81059
  // @ts-ignore
@@ -80866,7 +81062,7 @@ var genLinkStyle = function genLinkStyle(token) {
80866
81062
  ;// CONCATENATED MODULE: ./node_modules/antd/es/theme/themes/seed.js
80867
81063
 
80868
81064
  var defaultPresetColors = {
80869
- blue: '#1890FF',
81065
+ blue: '#1677ff',
80870
81066
  purple: '#722ED1',
80871
81067
  cyan: '#13C2C2',
80872
81068
  green: '#52C41A',
@@ -80886,8 +81082,8 @@ var seedToken = extends_extends(extends_extends({}, defaultPresetColors), {
80886
81082
  colorPrimary: '#1677ff',
80887
81083
  colorSuccess: '#52c41a',
80888
81084
  colorWarning: '#faad14',
80889
- colorError: '#ff4d4f',
80890
- colorInfo: '#1890ff',
81085
+ colorError: '#f5222d',
81086
+ colorInfo: '#1677ff',
80891
81087
  colorTextBase: '',
80892
81088
  colorTextLightSolid: '#fff',
80893
81089
  colorBgBase: '',
@@ -80922,7 +81118,9 @@ var seedToken = extends_extends(extends_extends({}, defaultPresetColors), {
80922
81118
  zIndexBase: 0,
80923
81119
  zIndexPopupBase: 1000,
80924
81120
  // Image
80925
- opacityImage: 1
81121
+ opacityImage: 1,
81122
+ // Wireframe
81123
+ wireframe: false
80926
81124
  });
80927
81125
 
80928
81126
  /* harmony default export */ var seed = (seedToken);
@@ -80960,7 +81158,7 @@ function genColorMapToken(seed, _ref) {
80960
81158
  colorSuccessBgHover: successColors[2],
80961
81159
  colorSuccessBorder: successColors[3],
80962
81160
  colorSuccessBorderHover: successColors[4],
80963
- colorSuccessHover: successColors[5],
81161
+ colorSuccessHover: successColors[4],
80964
81162
  colorSuccess: successColors[6],
80965
81163
  colorSuccessActive: successColors[7],
80966
81164
  colorSuccessTextHover: successColors[8],
@@ -80970,8 +81168,8 @@ function genColorMapToken(seed, _ref) {
80970
81168
  colorErrorBgHover: errorColors[2],
80971
81169
  colorErrorBorder: errorColors[3],
80972
81170
  colorErrorBorderHover: errorColors[4],
80973
- colorErrorHover: errorColors[5],
80974
- colorError: errorColors[6],
81171
+ colorErrorHover: errorColors[4],
81172
+ colorError: errorColors[5],
80975
81173
  colorErrorActive: errorColors[7],
80976
81174
  colorErrorTextHover: errorColors[8],
80977
81175
  colorErrorText: errorColors[9],
@@ -80980,7 +81178,7 @@ function genColorMapToken(seed, _ref) {
80980
81178
  colorWarningBgHover: warningColors[2],
80981
81179
  colorWarningBorder: warningColors[3],
80982
81180
  colorWarningBorderHover: warningColors[4],
80983
- colorWarningHover: warningColors[5],
81181
+ colorWarningHover: warningColors[4],
80984
81182
  colorWarning: warningColors[6],
80985
81183
  colorWarningActive: warningColors[7],
80986
81184
  colorWarningTextHover: warningColors[8],
@@ -80990,7 +81188,7 @@ function genColorMapToken(seed, _ref) {
80990
81188
  colorInfoBgHover: infoColors[2],
80991
81189
  colorInfoBorder: infoColors[3],
80992
81190
  colorInfoBorderHover: infoColors[4],
80993
- colorInfoHover: infoColors[5],
81191
+ colorInfoHover: infoColors[4],
80994
81192
  colorInfo: infoColors[6],
80995
81193
  colorInfoActive: infoColors[7],
80996
81194
  colorInfoTextHover: infoColors[8],
@@ -81154,11 +81352,11 @@ var generateNeutralColorPalettes = function generateNeutralColorPalettes(bgBaseC
81154
81352
  return {
81155
81353
  colorBgBase: colorBgBase,
81156
81354
  colorTextBase: colorTextBase,
81157
- colorText: getAlphaColor(colorTextBase, 0.85),
81355
+ colorText: getAlphaColor(colorTextBase, 0.88),
81158
81356
  colorTextSecondary: getAlphaColor(colorTextBase, 0.65),
81159
81357
  colorTextTertiary: getAlphaColor(colorTextBase, 0.45),
81160
81358
  colorTextQuaternary: getAlphaColor(colorTextBase, 0.25),
81161
- colorFill: getAlphaColor(colorTextBase, 0.12),
81359
+ colorFill: getAlphaColor(colorTextBase, 0.15),
81162
81360
  colorFillSecondary: getAlphaColor(colorTextBase, 0.06),
81163
81361
  colorFillTertiary: getAlphaColor(colorTextBase, 0.04),
81164
81362
  colorFillQuaternary: getAlphaColor(colorTextBase, 0.02),
@@ -81235,9 +81433,9 @@ function formatToken(derivativeToken) {
81235
81433
  var fontSizeSM = fontSizes[0]; // Generate alias token
81236
81434
 
81237
81435
  var aliasToken = extends_extends(extends_extends(extends_extends({}, mergedToken), {
81238
- colorLink: mergedToken.colorPrimaryText,
81239
- colorLinkHover: mergedToken.colorPrimaryTextHover,
81240
- colorLinkActive: mergedToken.colorPrimaryActive,
81436
+ colorLink: mergedToken.colorInfoText,
81437
+ colorLinkHover: mergedToken.colorInfoHover,
81438
+ colorLinkActive: mergedToken.colorInfoActive,
81241
81439
  // ============== Background ============== //
81242
81440
  colorFillContent: mergedToken.colorFillSecondary,
81243
81441
  colorFillContentHover: mergedToken.colorFill,
@@ -81252,6 +81450,8 @@ function formatToken(derivativeToken) {
81252
81450
  colorTextLabel: mergedToken.colorTextSecondary,
81253
81451
  colorTextDescription: mergedToken.colorTextTertiary,
81254
81452
  colorHighlight: mergedToken.colorError,
81453
+ colorBgTextHover: mergedToken.colorFillSecondary,
81454
+ colorBgTextActive: mergedToken.colorFill,
81255
81455
  colorIcon: mergedToken.colorTextTertiary,
81256
81456
  colorIconHover: mergedToken.colorText,
81257
81457
  colorErrorOutline: mergedToken.colorErrorBg,
@@ -81423,11 +81623,12 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
81423
81623
  theme: theme,
81424
81624
  token: token,
81425
81625
  hashId: hashId,
81426
- path: ['Link']
81626
+ path: ['Shared', rootPrefixCls]
81427
81627
  }, function () {
81428
- return {
81628
+ return [{
81629
+ // Link
81429
81630
  '&': genLinkStyle(token)
81430
- };
81631
+ }, genFontStyle(token, rootPrefixCls)];
81431
81632
  });
81432
81633
  return [useStyleRegister({
81433
81634
  theme: theme,
@@ -81489,7 +81690,7 @@ var antCheckboxEffect = new Keyframes('antCheckboxEffect', {
81489
81690
  }); // ============================== Styles ==============================
81490
81691
 
81491
81692
  var genCheckboxStyle = function genCheckboxStyle(token) {
81492
- var _extends2, _ref, _ref3, _$concat, _$concat2, _ref5;
81693
+ var _extends2, _ref, _ref3, _$concat2, _ref4, _$concat3, _ref5;
81493
81694
 
81494
81695
  var checkboxCls = token.checkboxCls;
81495
81696
  var wrapperCls = "".concat(checkboxCls, "-wrapper");
@@ -81524,7 +81725,7 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81524
81725
  whiteSpace: 'nowrap',
81525
81726
  lineHeight: 1,
81526
81727
  cursor: 'pointer'
81527
- }, defineProperty_defineProperty(_extends2, "".concat(checkboxCls, "-input"), {
81728
+ }, defineProperty_defineProperty(_extends2, "".concat(checkboxCls, "-input"), defineProperty_defineProperty({
81528
81729
  position: 'absolute',
81529
81730
  inset: 0,
81530
81731
  zIndex: 1,
@@ -81532,7 +81733,8 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81532
81733
  height: '100%',
81533
81734
  cursor: 'pointer',
81534
81735
  opacity: 0
81535
- }), defineProperty_defineProperty(_extends2, "".concat(checkboxCls, "-inner"), {
81736
+ }, "&:focus-visible + ".concat(checkboxCls, "-inner"), extends_extends({}, genFocusOutline(token)))), defineProperty_defineProperty(_extends2, "".concat(checkboxCls, "-inner"), {
81737
+ boxSizing: 'border-box',
81536
81738
  position: 'relative',
81537
81739
  top: 0,
81538
81740
  insetInlineStart: 0,
@@ -81544,8 +81746,9 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81544
81746
  border: "".concat(token.controlLineWidth, "px ").concat(token.controlLineType, " ").concat(token.colorBorder),
81545
81747
  borderRadius: token.controlRadiusSM,
81546
81748
  borderCollapse: 'separate',
81547
- transition: "all ".concat(token.motionDurationSlow),
81749
+ transition: "all ".concat(token.motionDurationFast),
81548
81750
  '&:after': {
81751
+ boxSizing: 'border-box',
81549
81752
  position: 'absolute',
81550
81753
  top: '50%',
81551
81754
  insetInlineStart: '21.5%',
@@ -81580,10 +81783,9 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81580
81783
  })
81581
81784
  }), (_ref3 = {}, defineProperty_defineProperty(_ref3, "".concat(wrapperCls, ":hover ").concat(checkboxCls, ":after"), {
81582
81785
  visibility: 'visible'
81583
- }), defineProperty_defineProperty(_ref3, "\n ".concat(wrapperCls, ":hover:not(").concat(wrapperCls, "-disabled),\n ").concat(checkboxCls, ":hover:not(").concat(checkboxCls, "-disabled),\n ").concat(checkboxCls, "-input:focus +\n "), defineProperty_defineProperty({}, "".concat(checkboxCls, "-inner"), {
81786
+ }), defineProperty_defineProperty(_ref3, "\n ".concat(wrapperCls, ":not(").concat(wrapperCls, "-disabled),\n ").concat(checkboxCls, ":not(").concat(checkboxCls, "-disabled)\n "), defineProperty_defineProperty({}, "&:hover ".concat(checkboxCls, "-inner"), {
81584
81787
  borderColor: token.colorPrimary
81585
- })), _ref3), // ==================== Checked ====================
81586
- defineProperty_defineProperty({}, "".concat(checkboxCls, "-checked"), (_$concat = {}, defineProperty_defineProperty(_$concat, "".concat(checkboxCls, "-inner"), {
81788
+ })), _ref3), (_ref4 = {}, defineProperty_defineProperty(_ref4, "".concat(checkboxCls, "-checked"), (_$concat2 = {}, defineProperty_defineProperty(_$concat2, "".concat(checkboxCls, "-inner"), {
81587
81789
  backgroundColor: token.colorPrimary,
81588
81790
  borderColor: token.colorPrimary,
81589
81791
  '&:after': {
@@ -81591,13 +81793,12 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81591
81793
  transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
81592
81794
  transition: "all ".concat(token.motionDurationSlow, " ").concat(token.motionEaseOutBack, " ").concat(token.motionDurationFast)
81593
81795
  }
81594
- }), defineProperty_defineProperty(_$concat, '&:after', {
81796
+ }), defineProperty_defineProperty(_$concat2, '&:after', {
81595
81797
  position: 'absolute',
81596
81798
  top: 0,
81597
81799
  insetInlineStart: 0,
81598
81800
  width: '100%',
81599
81801
  height: '100%',
81600
- border: "".concat(token.controlLineWidth, "px ").concat(token.controlLineType, " ").concat(token.colorPrimary),
81601
81802
  borderRadius: token.controlRadiusSM,
81602
81803
  visibility: 'hidden',
81603
81804
  animationName: antCheckboxEffect,
@@ -81605,21 +81806,24 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
81605
81806
  animationTimingFunction: 'ease-in-out',
81606
81807
  animationFillMode: 'backwards',
81607
81808
  content: '""'
81608
- }), _$concat)), (_ref5 = {}, defineProperty_defineProperty(_ref5, "".concat(wrapperCls, "-disabled"), {
81809
+ }), _$concat2)), defineProperty_defineProperty(_ref4, "\n ".concat(wrapperCls, "-checked:not(").concat(wrapperCls, "-disabled),\n ").concat(checkboxCls, "-checked:not(").concat(checkboxCls, "-disabled)\n "), defineProperty_defineProperty({}, "&:hover ".concat(checkboxCls, "-inner"), {
81810
+ backgroundColor: token.colorPrimaryHover,
81811
+ borderColor: 'transparent'
81812
+ })), _ref4), (_ref5 = {}, defineProperty_defineProperty(_ref5, "".concat(wrapperCls, "-disabled"), {
81609
81813
  cursor: 'not-allowed'
81610
- }), defineProperty_defineProperty(_ref5, "".concat(checkboxCls, "-disabled"), (_$concat2 = {}, defineProperty_defineProperty(_$concat2, "&, ".concat(checkboxCls, "-input"), {
81814
+ }), defineProperty_defineProperty(_ref5, "".concat(checkboxCls, "-disabled"), (_$concat3 = {}, defineProperty_defineProperty(_$concat3, "&, ".concat(checkboxCls, "-input"), {
81611
81815
  cursor: 'not-allowed'
81612
- }), defineProperty_defineProperty(_$concat2, "".concat(checkboxCls, "-inner"), {
81816
+ }), defineProperty_defineProperty(_$concat3, "".concat(checkboxCls, "-inner"), {
81613
81817
  background: token.colorBgContainerDisabled,
81614
81818
  borderColor: token.colorBorder,
81615
81819
  '&:after': {
81616
81820
  borderColor: token.colorTextDisabled
81617
81821
  }
81618
- }), defineProperty_defineProperty(_$concat2, '&:after', {
81822
+ }), defineProperty_defineProperty(_$concat3, '&:after', {
81619
81823
  display: 'none'
81620
- }), defineProperty_defineProperty(_$concat2, '& + span', {
81824
+ }), defineProperty_defineProperty(_$concat3, '& + span', {
81621
81825
  color: token.colorTextDisabled
81622
- }), _$concat2)), _ref5)];
81826
+ }), _$concat3)), _ref5)];
81623
81827
  }; // ============================== Export ==============================
81624
81828
 
81625
81829
  function getStyle(prefixCls, token) {
@@ -88117,7 +88321,10 @@ function isFragment(child) {
88117
88321
  return child && child.type === external_React_.Fragment;
88118
88322
  }
88119
88323
  function replaceElement(element, replacement, props) {
88120
- if (!isValidElement(element)) return replacement;
88324
+ if (!isValidElement(element)) {
88325
+ return replacement;
88326
+ }
88327
+
88121
88328
  return /*#__PURE__*/external_React_.cloneElement(element, typeof props === 'function' ? props(element.props || {}) : props);
88122
88329
  }
88123
88330
  function cloneElement(element, props) {
@@ -88703,6 +88910,7 @@ var genGroupStyle = function genGroupStyle(token) {
88703
88910
 
88704
88911
 
88705
88912
 
88913
+
88706
88914
  // ============================== Shared ==============================
88707
88915
 
88708
88916
  var genSharedButtonStyle = function genSharedButtonStyle(token) {
@@ -88721,7 +88929,7 @@ var genSharedButtonStyle = function genSharedButtonStyle(token) {
88721
88929
  backgroundColor: 'transparent',
88722
88930
  border: "".concat(token.controlLineWidth, "px ").concat(token.controlLineType, " transparent"),
88723
88931
  cursor: 'pointer',
88724
- transition: "all ".concat(token.motionDurationSlow, " ").concat(token.motionEaseInOut),
88932
+ transition: "all ".concat(token.motionDurationFast, " ").concat(token.motionEaseInOut),
88725
88933
  userSelect: 'none',
88726
88934
  touchAction: 'manipulation',
88727
88935
  lineHeight: token.lineHeight,
@@ -88733,13 +88941,13 @@ var genSharedButtonStyle = function genSharedButtonStyle(token) {
88733
88941
  marginInlineStart: token.marginXS
88734
88942
  }), defineProperty_defineProperty(_componentCls, "&".concat(componentCls, "-block"), {
88735
88943
  width: '100%'
88736
- }), _componentCls));
88944
+ }), defineProperty_defineProperty(_componentCls, '&:not(:disabled)', extends_extends({}, genFocusStyle(token))), _componentCls));
88737
88945
  };
88738
88946
 
88739
88947
  var genHoverActiveButtonStyle = function genHoverActiveButtonStyle(hoverStyle, activeStyle) {
88740
88948
  return {
88741
88949
  '&:not(:disabled)': {
88742
- '&:hover, &:focus': hoverStyle,
88950
+ '&:hover': hoverStyle,
88743
88951
  '&:active': activeStyle
88744
88952
  }
88745
88953
  };
@@ -88960,12 +89168,8 @@ var genSizeLargeButtonStyle = function genSizeLargeButtonStyle(token) {
88960
89168
 
88961
89169
 
88962
89170
  /* harmony default export */ var button_style = (genComponentStyleHook('Button', function (token) {
88963
- var controlTmpOutline = token.controlTmpOutline,
88964
- colorFillQuaternary = token.colorFillQuaternary,
88965
- colorFillTertiary = token.colorFillTertiary;
89171
+ var controlTmpOutline = token.controlTmpOutline;
88966
89172
  var buttonToken = statistic_merge(token, {
88967
- colorBgTextHover: colorFillQuaternary,
88968
- colorBgTextActive: colorFillTertiary,
88969
89173
  colorOutlineDefault: controlTmpOutline
88970
89174
  });
88971
89175
  return [// Shared
@@ -89255,6 +89459,205 @@ Button.__ANT_BUTTON = true;
89255
89459
  ;// CONCATENATED MODULE: ./node_modules/antd/es/button/index.js
89256
89460
 
89257
89461
  /* harmony default export */ var es_button = (button_button);
89462
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/style/roundedArrow.js
89463
+ var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColor, boxShadow) {
89464
+ var unitWidth = width / 2;
89465
+ var ax = unitWidth - outerRadius * (Math.sqrt(2) - 1);
89466
+ var ay = unitWidth;
89467
+ var bx = unitWidth + outerRadius * (1 - 1 / Math.sqrt(2));
89468
+ var by = unitWidth - outerRadius * (1 - 1 / Math.sqrt(2));
89469
+ var cx = 2 * unitWidth - innerRadius * (1 / Math.sqrt(2));
89470
+ var cy = innerRadius * (1 / Math.sqrt(2));
89471
+ var dx = 4 * unitWidth - cx;
89472
+ var dy = cy;
89473
+ var ex = 4 * unitWidth - bx;
89474
+ var ey = by;
89475
+ var fx = 4 * unitWidth - ax;
89476
+ var fy = ay;
89477
+ return {
89478
+ borderRadius: {
89479
+ _skip_check_: true,
89480
+ value: "0 0 ".concat(innerRadius, "px")
89481
+ },
89482
+ pointerEvents: 'none',
89483
+ width: width * 2,
89484
+ height: width * 2,
89485
+ overflow: 'hidden',
89486
+ '&::after': {
89487
+ content: '""',
89488
+ position: 'absolute',
89489
+ width: width / Math.sqrt(2),
89490
+ height: width / Math.sqrt(2),
89491
+ bottom: 0,
89492
+ insetInline: 0,
89493
+ margin: 'auto',
89494
+ borderRadius: {
89495
+ _skip_check_: true,
89496
+ value: "0 0 ".concat(innerRadius, "px 0")
89497
+ },
89498
+ transform: 'translateY(50%) rotate(-135deg)',
89499
+ boxShadow: boxShadow,
89500
+ zIndex: 0,
89501
+ background: 'transparent'
89502
+ },
89503
+ '&::before': {
89504
+ position: 'absolute',
89505
+ bottom: 0,
89506
+ insetInlineStart: 0,
89507
+ width: width * 2,
89508
+ height: width / 2,
89509
+ background: bgColor,
89510
+ clipPath: "path('M ".concat(ax, " ").concat(ay, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(bx, " ").concat(by, " L ").concat(cx, " ").concat(cy, " A ").concat(innerRadius, " ").concat(innerRadius, " 0 0 1 ").concat(dx, " ").concat(dy, " L ").concat(ex, " ").concat(ey, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(fx, " ").concat(fy, " Z')"),
89511
+ content: '""'
89512
+ }
89513
+ };
89514
+ };
89515
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/style/placementArrow.js
89516
+
89517
+
89518
+
89519
+
89520
+ function connectArrowCls(classList) {
89521
+ var showArrowCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
89522
+ return classList.map(function (cls) {
89523
+ return "".concat(showArrowCls).concat(cls);
89524
+ }).join(',');
89525
+ }
89526
+
89527
+ var MAX_VERTICAL_CONTENT_RADIUS = 8;
89528
+ function getArrowOffset(options) {
89529
+ var maxVerticalContentRadius = MAX_VERTICAL_CONTENT_RADIUS;
89530
+ var sizePopupArrow = options.sizePopupArrow,
89531
+ contentRadius = options.contentRadius,
89532
+ radiusOuter = options.radiusOuter,
89533
+ limitVerticalRadius = options.limitVerticalRadius;
89534
+ var arrowInnerOffset = sizePopupArrow / 2 - Math.ceil(radiusOuter * (Math.sqrt(2) - 1));
89535
+ var dropdownArrowOffset = (contentRadius > 12 ? contentRadius + 2 : 12) - arrowInnerOffset;
89536
+ var dropdownArrowOffsetVertical = limitVerticalRadius ? maxVerticalContentRadius - arrowInnerOffset : dropdownArrowOffset;
89537
+ return {
89538
+ dropdownArrowOffset: dropdownArrowOffset,
89539
+ dropdownArrowOffsetVertical: dropdownArrowOffsetVertical
89540
+ };
89541
+ }
89542
+ function getArrowStyle(token, options) {
89543
+ var _componentCls;
89544
+
89545
+ var componentCls = token.componentCls,
89546
+ sizePopupArrow = token.sizePopupArrow,
89547
+ marginXXS = token.marginXXS,
89548
+ radiusXS = token.radiusXS,
89549
+ radiusOuter = token.radiusOuter,
89550
+ boxShadowPopoverArrow = token.boxShadowPopoverArrow;
89551
+ var colorBg = options.colorBg,
89552
+ showArrowCls = options.showArrowCls,
89553
+ _options$contentRadiu = options.contentRadius,
89554
+ contentRadius = _options$contentRadiu === void 0 ? token.radiusLG : _options$contentRadiu,
89555
+ limitVerticalRadius = options.limitVerticalRadius;
89556
+
89557
+ var _getArrowOffset = getArrowOffset({
89558
+ sizePopupArrow: sizePopupArrow,
89559
+ contentRadius: contentRadius,
89560
+ radiusOuter: radiusOuter,
89561
+ limitVerticalRadius: limitVerticalRadius
89562
+ }),
89563
+ dropdownArrowOffsetVertical = _getArrowOffset.dropdownArrowOffsetVertical,
89564
+ dropdownArrowOffset = _getArrowOffset.dropdownArrowOffset;
89565
+
89566
+ var dropdownArrowDistance = sizePopupArrow + marginXXS;
89567
+ return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls, "".concat(componentCls, "-arrow"), [extends_extends(extends_extends({
89568
+ position: 'absolute',
89569
+ zIndex: 1,
89570
+ display: 'block'
89571
+ }, roundedArrow(sizePopupArrow, radiusXS, radiusOuter, colorBg, boxShadowPopoverArrow)), {
89572
+ '&:before': {
89573
+ background: colorBg
89574
+ }
89575
+ })]), defineProperty_defineProperty(_componentCls, ["&-placement-top ".concat(componentCls, "-arrow"), "&-placement-topLeft ".concat(componentCls, "-arrow"), "&-placement-topRight ".concat(componentCls, "-arrow")].join(','), {
89576
+ bottom: 0,
89577
+ transform: 'translateY(100%) rotate(180deg)'
89578
+ }), defineProperty_defineProperty(_componentCls, "&-placement-top ".concat(componentCls, "-arrow"), {
89579
+ left: {
89580
+ _skip_check_: true,
89581
+ value: '50%'
89582
+ },
89583
+ transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
89584
+ }), defineProperty_defineProperty(_componentCls, "&-placement-topLeft ".concat(componentCls, "-arrow"), {
89585
+ left: {
89586
+ _skip_check_: true,
89587
+ value: dropdownArrowOffset
89588
+ }
89589
+ }), defineProperty_defineProperty(_componentCls, "&-placement-topRight ".concat(componentCls, "-arrow"), {
89590
+ right: {
89591
+ _skip_check_: true,
89592
+ value: dropdownArrowOffset
89593
+ }
89594
+ }), defineProperty_defineProperty(_componentCls, ["&-placement-bottom ".concat(componentCls, "-arrow"), "&-placement-bottomLeft ".concat(componentCls, "-arrow"), "&-placement-bottomRight ".concat(componentCls, "-arrow")].join(','), {
89595
+ top: 0,
89596
+ transform: "translateY(-100%)"
89597
+ }), defineProperty_defineProperty(_componentCls, "&-placement-bottom ".concat(componentCls, "-arrow"), {
89598
+ left: {
89599
+ _skip_check_: true,
89600
+ value: '50%'
89601
+ },
89602
+ transform: "translateX(-50%) translateY(-100%)"
89603
+ }), defineProperty_defineProperty(_componentCls, "&-placement-bottomLeft ".concat(componentCls, "-arrow"), {
89604
+ left: {
89605
+ _skip_check_: true,
89606
+ value: dropdownArrowOffset
89607
+ }
89608
+ }), defineProperty_defineProperty(_componentCls, "&-placement-bottomRight ".concat(componentCls, "-arrow"), {
89609
+ right: {
89610
+ _skip_check_: true,
89611
+ value: dropdownArrowOffset
89612
+ }
89613
+ }), defineProperty_defineProperty(_componentCls, ["&-placement-left ".concat(componentCls, "-arrow"), "&-placement-leftTop ".concat(componentCls, "-arrow"), "&-placement-leftBottom ".concat(componentCls, "-arrow")].join(','), {
89614
+ right: {
89615
+ _skip_check_: true,
89616
+ value: 0
89617
+ },
89618
+ transform: 'translateX(100%) rotate(90deg)'
89619
+ }), defineProperty_defineProperty(_componentCls, "&-placement-left ".concat(componentCls, "-arrow"), {
89620
+ top: {
89621
+ _skip_check_: true,
89622
+ value: '50%'
89623
+ },
89624
+ transform: 'translateY(-50%) translateX(100%) rotate(90deg)'
89625
+ }), defineProperty_defineProperty(_componentCls, "&-placement-leftTop ".concat(componentCls, "-arrow"), {
89626
+ top: dropdownArrowOffsetVertical
89627
+ }), defineProperty_defineProperty(_componentCls, "&-placement-leftBottom ".concat(componentCls, "-arrow"), {
89628
+ bottom: dropdownArrowOffsetVertical
89629
+ }), defineProperty_defineProperty(_componentCls, ["&-placement-right ".concat(componentCls, "-arrow"), "&-placement-rightTop ".concat(componentCls, "-arrow"), "&-placement-rightBottom ".concat(componentCls, "-arrow")].join(','), {
89630
+ left: {
89631
+ _skip_check_: true,
89632
+ value: 0
89633
+ },
89634
+ transform: 'translateX(-100%) rotate(-90deg)'
89635
+ }), defineProperty_defineProperty(_componentCls, "&-placement-right ".concat(componentCls, "-arrow"), {
89636
+ top: {
89637
+ _skip_check_: true,
89638
+ value: '50%'
89639
+ },
89640
+ transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)'
89641
+ }), defineProperty_defineProperty(_componentCls, "&-placement-rightTop ".concat(componentCls, "-arrow"), {
89642
+ top: dropdownArrowOffsetVertical
89643
+ }), defineProperty_defineProperty(_componentCls, "&-placement-rightBottom ".concat(componentCls, "-arrow"), {
89644
+ bottom: dropdownArrowOffsetVertical
89645
+ }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-topLeft", "&-placement-top", "&-placement-topRight"], showArrowCls), {
89646
+ paddingBottom: dropdownArrowDistance
89647
+ }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-bottomLeft", "&-placement-bottom", "&-placement-bottomRight"], showArrowCls), {
89648
+ paddingTop: dropdownArrowDistance
89649
+ }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-leftTop", "&-placement-left", "&-placement-leftBottom"], showArrowCls), {
89650
+ paddingRight: {
89651
+ _skip_check_: true,
89652
+ value: dropdownArrowDistance
89653
+ }
89654
+ }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-rightTop", "&-placement-right", "&-placement-rightBottom"], showArrowCls), {
89655
+ paddingLeft: {
89656
+ _skip_check_: true,
89657
+ value: dropdownArrowDistance
89658
+ }
89659
+ }), _componentCls));
89660
+ }
89258
89661
  ;// CONCATENATED MODULE: ./node_modules/antd/es/style/motion/motion.js
89259
89662
 
89260
89663
 
@@ -89597,59 +90000,6 @@ var genStatusStyle = function genStatusStyle(token) {
89597
90000
  };
89598
90001
 
89599
90002
  /* harmony default export */ var style_status = (genStatusStyle);
89600
- ;// CONCATENATED MODULE: ./node_modules/antd/es/style/roundedArrow.js
89601
- var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColor, boxShadow) {
89602
- var unitWidth = width / 2;
89603
- var ax = unitWidth - outerRadius * (Math.sqrt(2) - 1);
89604
- var ay = unitWidth;
89605
- var bx = unitWidth + outerRadius * (1 - 1 / Math.sqrt(2));
89606
- var by = unitWidth - outerRadius * (1 - 1 / Math.sqrt(2));
89607
- var cx = 2 * unitWidth - innerRadius * (1 / Math.sqrt(2));
89608
- var cy = innerRadius * (1 / Math.sqrt(2));
89609
- var dx = 4 * unitWidth - cx;
89610
- var dy = cy;
89611
- var ex = 4 * unitWidth - bx;
89612
- var ey = by;
89613
- var fx = 4 * unitWidth - ax;
89614
- var fy = ay;
89615
- return {
89616
- borderRadius: {
89617
- _skip_check_: true,
89618
- value: "0 0 ".concat(innerRadius, "px")
89619
- },
89620
- pointerEvents: 'none',
89621
- width: width * 2,
89622
- height: width * 2,
89623
- overflow: 'hidden',
89624
- '&::after': {
89625
- content: '""',
89626
- position: 'absolute',
89627
- width: width / Math.sqrt(2),
89628
- height: width / Math.sqrt(2),
89629
- bottom: 0,
89630
- insetInline: 0,
89631
- margin: 'auto',
89632
- borderRadius: {
89633
- _skip_check_: true,
89634
- value: "0 0 ".concat(innerRadius, "px 0")
89635
- },
89636
- transform: 'translateY(50%) rotate(-135deg)',
89637
- boxShadow: boxShadow,
89638
- zIndex: 0,
89639
- background: 'transparent'
89640
- },
89641
- '&::before': {
89642
- position: 'absolute',
89643
- bottom: 0,
89644
- insetInlineStart: 0,
89645
- width: width * 2,
89646
- height: width / 2,
89647
- background: bgColor,
89648
- clipPath: "path('M ".concat(ax, " ").concat(ay, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(bx, " ").concat(by, " L ").concat(cx, " ").concat(cy, " A ").concat(innerRadius, " ").concat(innerRadius, " 0 0 1 ").concat(dx, " ").concat(dy, " L ").concat(ex, " ").concat(ey, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(fx, " ").concat(fy, " Z')"),
89649
- content: '""'
89650
- }
89651
- };
89652
- };
89653
90003
  ;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/style/index.js
89654
90004
 
89655
90005
 
@@ -89657,10 +90007,11 @@ var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColo
89657
90007
 
89658
90008
 
89659
90009
 
90010
+
89660
90011
  // =============================== Base ===============================
89661
90012
 
89662
90013
  var genBaseStyle = function genBaseStyle(token) {
89663
- var _$concat, _extends2, _$concat$concat, _menuCls, _ref2;
90014
+ var _$concat, _extends2, _extends5, _ref2;
89664
90015
 
89665
90016
  var componentCls = token.componentCls,
89666
90017
  menuCls = token.menuCls,
@@ -89671,10 +90022,10 @@ var genBaseStyle = function genBaseStyle(token) {
89671
90022
  antCls = token.antCls,
89672
90023
  iconCls = token.iconCls,
89673
90024
  motionDurationMid = token.motionDurationMid,
89674
- motionDurationSlow = token.motionDurationSlow,
90025
+ motionDurationFast = token.motionDurationFast,
89675
90026
  dropdownPaddingVertical = token.dropdownPaddingVertical,
89676
90027
  fontSizeBase = token.fontSizeBase,
89677
- dropdownEdgeChildVerticalPadding = token.dropdownEdgeChildVerticalPadding,
90028
+ dropdownEdgeChildPadding = token.dropdownEdgeChildPadding,
89678
90029
  radiusBase = token.radiusBase,
89679
90030
  colorTextDisabled = token.colorTextDisabled,
89680
90031
  fontSizeIcon = token.fontSizeIcon,
@@ -89778,31 +90129,32 @@ var genBaseStyle = function genBaseStyle(token) {
89778
90129
  ul: {
89779
90130
  marginInline: '0.3em'
89780
90131
  }
89781
- }), defineProperty_defineProperty(_ref2, "".concat(componentCls, ", ").concat(componentCls, "-menu-submenu"), defineProperty_defineProperty({}, menuCls, (_menuCls = {
89782
- padding: "".concat(dropdownEdgeChildVerticalPadding, "px 0"),
90132
+ }), defineProperty_defineProperty(_ref2, "".concat(componentCls, ", ").concat(componentCls, "-menu-submenu"), defineProperty_defineProperty({}, menuCls, extends_extends(extends_extends({
90133
+ padding: dropdownEdgeChildPadding,
89783
90134
  listStyleType: 'none',
89784
90135
  backgroundColor: colorBgElevated,
89785
90136
  backgroundClip: 'padding-box',
89786
90137
  borderRadius: token.controlRadiusLG,
89787
90138
  outline: 'none',
89788
90139
  boxShadow: token.boxShadowSecondary
89789
- }, defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item-group-title"), {
90140
+ }, genFocusStyle(token)), (_extends5 = {}, defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item-group-title"), {
89790
90141
  padding: "".concat(dropdownPaddingVertical, "px ").concat(controlPaddingHorizontal, "px"),
89791
90142
  color: token.colorTextDescription,
89792
- transition: "all ".concat(motionDurationSlow)
89793
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item"), {
90143
+ transition: "all ".concat(motionDurationFast)
90144
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item"), {
89794
90145
  position: 'relative',
89795
90146
  display: 'flex',
89796
- alignItems: 'center'
89797
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item-icon"), {
90147
+ alignItems: 'center',
90148
+ borderRadius: token.radiusSM
90149
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item-icon"), {
89798
90150
  minWidth: fontSizeBase,
89799
90151
  marginInlineEnd: token.marginXS,
89800
90152
  fontSize: token.fontSizeSM
89801
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-title-content"), {
90153
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-title-content"), {
89802
90154
  flex: 'auto',
89803
90155
  '> a': {
89804
90156
  color: 'inherit',
89805
- transition: "all ".concat(motionDurationSlow),
90157
+ transition: "all ".concat(motionDurationFast),
89806
90158
  '&:hover': {
89807
90159
  color: 'inherit'
89808
90160
  },
@@ -89812,7 +90164,7 @@ var genBaseStyle = function genBaseStyle(token) {
89812
90164
  content: '""'
89813
90165
  }
89814
90166
  }
89815
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item, ").concat(menuCls, "-submenu-title"), (_$concat$concat = {
90167
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item, ").concat(menuCls, "-submenu-title"), extends_extends(extends_extends(defineProperty_defineProperty({
89816
90168
  clear: 'both',
89817
90169
  margin: 0,
89818
90170
  padding: "".concat(dropdownPaddingVertical, "px ").concat(controlPaddingHorizontal, "px"),
@@ -89821,37 +90173,43 @@ var genBaseStyle = function genBaseStyle(token) {
89821
90173
  fontSize: fontSizeBase,
89822
90174
  lineHeight: token.lineHeight,
89823
90175
  cursor: 'pointer',
89824
- transition: "all ".concat(motionDurationSlow),
89825
- '&:first-child': !dropdownEdgeChildVerticalPadding ? {
90176
+ transition: "all ".concat(motionDurationFast),
90177
+ '&:first-child': !dropdownEdgeChildPadding ? {
89826
90178
  borderRadius: "".concat(radiusBase, "px ").concat(radiusBase, "px 0 0")
89827
90179
  } : [],
89828
- '&:last-child': !dropdownEdgeChildVerticalPadding ? {
90180
+ '&:last-child': !dropdownEdgeChildPadding ? {
89829
90181
  borderRadius: "0 0 ".concat(radiusBase, "px ").concat(radiusBase, "px")
89830
- } : [],
90182
+ } : []
90183
+ }, "&:hover, &-active", {
90184
+ backgroundColor: token.controlItemBgHover
90185
+ }), genFocusStyle(token)), defineProperty_defineProperty({
89831
90186
  '&-selected': {
89832
90187
  color: token.colorPrimary,
89833
- backgroundColor: token.controlItemBgActive
89834
- }
89835
- }, defineProperty_defineProperty(_$concat$concat, "&:hover, &-active", {
89836
- backgroundColor: token.controlItemBgHover
89837
- }), defineProperty_defineProperty(_$concat$concat, '&-disabled', {
89838
- color: colorTextDisabled,
89839
- cursor: 'not-allowed',
89840
- '&:hover': {
90188
+ backgroundColor: token.controlItemBgActive,
90189
+ '&:hover, &-active': {
90190
+ backgroundColor: token.controlItemBgActiveHover
90191
+ }
90192
+ },
90193
+ '&-disabled': {
89841
90194
  color: colorTextDisabled,
89842
- backgroundColor: colorBgElevated,
89843
- cursor: 'not-allowed'
90195
+ cursor: 'not-allowed',
90196
+ '&:hover': {
90197
+ color: colorTextDisabled,
90198
+ backgroundColor: colorBgElevated,
90199
+ cursor: 'not-allowed'
90200
+ },
90201
+ a: {
90202
+ pointerEvents: 'none'
90203
+ }
89844
90204
  },
89845
- a: {
89846
- pointerEvents: 'none'
90205
+ '&-divider': {
90206
+ height: 1,
90207
+ margin: "".concat(token.marginXXS, "px 0"),
90208
+ overflow: 'hidden',
90209
+ lineHeight: 0,
90210
+ backgroundColor: token.colorSplit
89847
90211
  }
89848
- }), defineProperty_defineProperty(_$concat$concat, '&-divider', {
89849
- height: 1,
89850
- margin: "".concat(token.marginXXS, "px 0"),
89851
- overflow: 'hidden',
89852
- lineHeight: 0,
89853
- backgroundColor: token.colorSplit
89854
- }), defineProperty_defineProperty(_$concat$concat, "".concat(componentCls, "-menu-submenu-expand-icon"), defineProperty_defineProperty({
90212
+ }, "".concat(componentCls, "-menu-submenu-expand-icon"), defineProperty_defineProperty({
89855
90213
  position: 'absolute',
89856
90214
  insetInlineEnd: token.paddingXS
89857
90215
  }, "".concat(componentCls, "-menu-submenu-arrow-icon"), {
@@ -89859,21 +90217,21 @@ var genBaseStyle = function genBaseStyle(token) {
89859
90217
  color: token.colorTextDescription,
89860
90218
  fontSize: fontSizeIcon,
89861
90219
  fontStyle: 'normal'
89862
- })), _$concat$concat)), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item-group-list"), {
90220
+ })))), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-item-group-list"), {
89863
90221
  margin: "0 ".concat(token.marginXS, "px"),
89864
90222
  padding: 0,
89865
90223
  listStyle: 'none'
89866
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-submenu-title"), {
90224
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-submenu-title"), {
89867
90225
  paddingInlineEnd: controlPaddingHorizontal + token.fontSizeSM
89868
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-submenu-vertical"), {
90226
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-submenu-vertical"), {
89869
90227
  position: 'relative'
89870
- }), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-submenu").concat(menuCls, "-submenu-disabled ").concat(componentCls, "-menu-submenu-title"), defineProperty_defineProperty({}, "&, ".concat(componentCls, "-menu-submenu-arrow-icon"), {
90228
+ }), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-submenu").concat(menuCls, "-submenu-disabled ").concat(componentCls, "-menu-submenu-title"), defineProperty_defineProperty({}, "&, ".concat(componentCls, "-menu-submenu-arrow-icon"), {
89871
90229
  color: colorTextDisabled,
89872
90230
  backgroundColor: colorBgElevated,
89873
90231
  cursor: 'not-allowed'
89874
- })), defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-submenu-selected ").concat(componentCls, "-menu-submenu-title"), {
90232
+ })), defineProperty_defineProperty(_extends5, "".concat(menuCls, "-submenu-selected ").concat(componentCls, "-menu-submenu-title"), {
89875
90233
  color: token.colorPrimary
89876
- }), _menuCls))), _ref2), // Follow code may reuse in other components
90234
+ }), _extends5)))), _ref2), // Follow code may reuse in other components
89877
90235
  [initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down')]];
89878
90236
  }; // ============================== Export ==============================
89879
90237
 
@@ -89886,15 +90244,25 @@ var genBaseStyle = function genBaseStyle(token) {
89886
90244
  fontSizeBase = token.fontSizeBase,
89887
90245
  lineHeight = token.lineHeight,
89888
90246
  paddingXXS = token.paddingXXS,
89889
- componentCls = token.componentCls;
90247
+ componentCls = token.componentCls,
90248
+ radiusOuter = token.radiusOuter,
90249
+ radiusLG = token.radiusLG;
89890
90250
  var dropdownPaddingVertical = (controlHeight - fontSizeBase * lineHeight) / 2;
90251
+
90252
+ var _getArrowOffset = getArrowOffset({
90253
+ sizePopupArrow: sizePopupArrow,
90254
+ contentRadius: radiusLG,
90255
+ radiusOuter: radiusOuter
90256
+ }),
90257
+ dropdownArrowOffset = _getArrowOffset.dropdownArrowOffset;
90258
+
89891
90259
  var dropdownToken = statistic_merge(token, {
89892
90260
  menuCls: "".concat(componentCls, "-menu"),
89893
90261
  rootPrefixCls: rootPrefixCls,
89894
90262
  dropdownArrowDistance: sizePopupArrow + marginXXS,
89895
- dropdownArrowOffset: sizePopupArrow / Math.sqrt(2) * 2,
90263
+ dropdownArrowOffset: dropdownArrowOffset,
89896
90264
  dropdownPaddingVertical: dropdownPaddingVertical,
89897
- dropdownEdgeChildVerticalPadding: paddingXXS
90265
+ dropdownEdgeChildPadding: paddingXXS
89898
90266
  });
89899
90267
  return [genBaseStyle(dropdownToken), style_button(dropdownToken), style_status(dropdownToken)];
89900
90268
  }, function (token) {
@@ -90054,14 +90422,6 @@ var dropdown_Dropdown = function Dropdown(props) {
90054
90422
  getPrefixCls = _React$useContext.getPrefixCls,
90055
90423
  direction = _React$useContext.direction;
90056
90424
 
90057
- [['visible', 'open'], ['onVisibleChange', 'onOpenChange']].forEach(function (_ref) {
90058
- var _ref2 = slicedToArray_slicedToArray(_ref, 2),
90059
- deprecatedName = _ref2[0],
90060
- newName = _ref2[1];
90061
-
90062
- false ? 0 : void 0;
90063
- });
90064
-
90065
90425
  var getTransitionName = function getTransitionName() {
90066
90426
  var rootPrefixCls = getPrefixCls();
90067
90427
  var _props$placement = props.placement,
@@ -90103,7 +90463,12 @@ var dropdown_Dropdown = function Dropdown(props) {
90103
90463
  getPopupContainer = props.getPopupContainer,
90104
90464
  overlayClassName = props.overlayClassName,
90105
90465
  open = props.open,
90106
- onOpenChange = props.onOpenChange;
90466
+ onOpenChange = props.onOpenChange,
90467
+ visible = props.visible,
90468
+ onVisibleChange = props.onVisibleChange;
90469
+
90470
+ if (false) {}
90471
+
90107
90472
  var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
90108
90473
 
90109
90474
  var _useStyle = dropdown_style(prefixCls),
@@ -90125,7 +90490,7 @@ var dropdown_Dropdown = function Dropdown(props) {
90125
90490
 
90126
90491
 
90127
90492
  var _useMergedState = useMergedState_useMergedState(false, {
90128
- value: open
90493
+ value: open !== null && open !== void 0 ? open : visible
90129
90494
  }),
90130
90495
  _useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
90131
90496
  mergedOpen = _useMergedState2[0],
@@ -90133,6 +90498,7 @@ var dropdown_Dropdown = function Dropdown(props) {
90133
90498
 
90134
90499
  var onInnerOpenChange = useEvent(function (nextOpen) {
90135
90500
  onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(nextOpen);
90501
+ onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(nextOpen);
90136
90502
  setOpen(nextOpen);
90137
90503
  }); // =========================== Overlay ============================
90138
90504
 
@@ -93076,12 +93442,9 @@ var getRTLStyle = function getRTLStyle(_ref) {
93076
93442
 
93077
93443
 
93078
93444
 
93445
+
93079
93446
  var accessibilityFocus = function accessibilityFocus(token) {
93080
- var controlOutlineWidth = token.controlOutlineWidth,
93081
- colorPrimaryHover = token.colorPrimaryHover;
93082
- return {
93083
- boxShadow: "0 0 0 ".concat(controlOutlineWidth, "px ").concat(colorPrimaryHover)
93084
- };
93447
+ return extends_extends({}, genFocusOutline(token));
93085
93448
  };
93086
93449
 
93087
93450
  var getThemeStyle = function getThemeStyle(token) {
@@ -94007,124 +94370,6 @@ var PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default',
94007
94370
  var PresetColorTypes = tuple('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
94008
94371
  ;// CONCATENATED MODULE: ./node_modules/antd/es/theme/interface.js
94009
94372
  var PresetColors = ['blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold'];
94010
- ;// CONCATENATED MODULE: ./node_modules/antd/es/style/placementArrow.js
94011
-
94012
-
94013
-
94014
-
94015
- function connectArrowCls(classList) {
94016
- var showArrowCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
94017
- return classList.map(function (cls) {
94018
- return "".concat(showArrowCls).concat(cls);
94019
- }).join(',');
94020
- }
94021
-
94022
- function getArrowStyle(token, colorBg, showArrowCls, arrowMargin) {
94023
- var _componentCls;
94024
-
94025
- var componentCls = token.componentCls,
94026
- sizePopupArrow = token.sizePopupArrow,
94027
- marginXXS = token.marginXXS,
94028
- radiusXS = token.radiusXS,
94029
- radiusOuter = token.radiusOuter,
94030
- boxShadowPopoverArrow = token.boxShadowPopoverArrow,
94031
- marginXS = token.marginXS;
94032
- var dropdownArrowOffset = arrowMargin !== null && arrowMargin !== void 0 ? arrowMargin : marginXS;
94033
- var dropdownArrowDistance = sizePopupArrow + marginXXS;
94034
- return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls, "".concat(componentCls, "-arrow"), [extends_extends(extends_extends({
94035
- position: 'absolute',
94036
- zIndex: 1,
94037
- display: 'block'
94038
- }, roundedArrow(sizePopupArrow, radiusXS, radiusOuter, colorBg, boxShadowPopoverArrow)), {
94039
- '&:before': {
94040
- background: colorBg
94041
- }
94042
- })]), defineProperty_defineProperty(_componentCls, ["&-placement-top ".concat(componentCls, "-arrow"), "&-placement-topLeft ".concat(componentCls, "-arrow"), "&-placement-topRight ".concat(componentCls, "-arrow")].join(','), {
94043
- bottom: 0,
94044
- transform: 'translateY(100%) rotate(180deg)'
94045
- }), defineProperty_defineProperty(_componentCls, "&-placement-top ".concat(componentCls, "-arrow"), {
94046
- left: {
94047
- _skip_check_: true,
94048
- value: '50%'
94049
- },
94050
- transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
94051
- }), defineProperty_defineProperty(_componentCls, "&-placement-topLeft ".concat(componentCls, "-arrow"), {
94052
- left: {
94053
- _skip_check_: true,
94054
- value: dropdownArrowOffset
94055
- }
94056
- }), defineProperty_defineProperty(_componentCls, "&-placement-topRight ".concat(componentCls, "-arrow"), {
94057
- right: {
94058
- _skip_check_: true,
94059
- value: dropdownArrowOffset
94060
- }
94061
- }), defineProperty_defineProperty(_componentCls, ["&-placement-bottom ".concat(componentCls, "-arrow"), "&-placement-bottomLeft ".concat(componentCls, "-arrow"), "&-placement-bottomRight ".concat(componentCls, "-arrow")].join(','), {
94062
- top: 0,
94063
- transform: "translateY(-100%)"
94064
- }), defineProperty_defineProperty(_componentCls, "&-placement-bottom ".concat(componentCls, "-arrow"), {
94065
- left: {
94066
- _skip_check_: true,
94067
- value: '50%'
94068
- },
94069
- transform: "translateX(-50%) translateY(-100%)"
94070
- }), defineProperty_defineProperty(_componentCls, "&-placement-bottomLeft ".concat(componentCls, "-arrow"), {
94071
- left: {
94072
- _skip_check_: true,
94073
- value: dropdownArrowOffset
94074
- }
94075
- }), defineProperty_defineProperty(_componentCls, "&-placement-bottomRight ".concat(componentCls, "-arrow"), {
94076
- right: {
94077
- _skip_check_: true,
94078
- value: dropdownArrowOffset
94079
- }
94080
- }), defineProperty_defineProperty(_componentCls, ["&-placement-left ".concat(componentCls, "-arrow"), "&-placement-leftTop ".concat(componentCls, "-arrow"), "&-placement-leftBottom ".concat(componentCls, "-arrow")].join(','), {
94081
- right: {
94082
- _skip_check_: true,
94083
- value: 0
94084
- },
94085
- transform: 'translateX(100%) rotate(90deg)'
94086
- }), defineProperty_defineProperty(_componentCls, "&-placement-left ".concat(componentCls, "-arrow"), {
94087
- top: {
94088
- _skip_check_: true,
94089
- value: '50%'
94090
- },
94091
- transform: 'translateY(-50%) translateX(100%) rotate(90deg)'
94092
- }), defineProperty_defineProperty(_componentCls, "&-placement-leftTop ".concat(componentCls, "-arrow"), {
94093
- top: dropdownArrowOffset
94094
- }), defineProperty_defineProperty(_componentCls, "&-placement-leftBottom ".concat(componentCls, "-arrow"), {
94095
- bottom: dropdownArrowOffset
94096
- }), defineProperty_defineProperty(_componentCls, ["&-placement-right ".concat(componentCls, "-arrow"), "&-placement-rightTop ".concat(componentCls, "-arrow"), "&-placement-rightBottom ".concat(componentCls, "-arrow")].join(','), {
94097
- left: {
94098
- _skip_check_: true,
94099
- value: 0
94100
- },
94101
- transform: 'translateX(-100%) rotate(-90deg)'
94102
- }), defineProperty_defineProperty(_componentCls, "&-placement-right ".concat(componentCls, "-arrow"), {
94103
- top: {
94104
- _skip_check_: true,
94105
- value: '50%'
94106
- },
94107
- transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)'
94108
- }), defineProperty_defineProperty(_componentCls, "&-placement-rightTop ".concat(componentCls, "-arrow"), {
94109
- top: dropdownArrowOffset
94110
- }), defineProperty_defineProperty(_componentCls, "&-placement-rightBottom ".concat(componentCls, "-arrow"), {
94111
- bottom: dropdownArrowOffset
94112
- }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-topLeft", "&-placement-top", "&-placement-topRight"], showArrowCls), {
94113
- paddingBottom: dropdownArrowDistance
94114
- }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-bottomLeft", "&-placement-bottom", "&-placement-bottomRight"], showArrowCls), {
94115
- paddingTop: dropdownArrowDistance
94116
- }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-leftTop", "&-placement-left", "&-placement-leftBottom"], showArrowCls), {
94117
- paddingRight: {
94118
- _skip_check_: true,
94119
- value: dropdownArrowDistance
94120
- }
94121
- }), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-rightTop", "&-placement-right", "&-placement-rightBottom"], showArrowCls), {
94122
- paddingLeft: {
94123
- _skip_check_: true,
94124
- value: dropdownArrowDistance
94125
- }
94126
- }), _componentCls));
94127
- }
94128
94373
  ;// CONCATENATED MODULE: ./node_modules/antd/es/tooltip/style/index.js
94129
94374
 
94130
94375
 
@@ -94188,7 +94433,9 @@ var genTooltipStyle = function genTooltipStyle(token) {
94188
94433
  backgroundColor: tooltipBg,
94189
94434
  borderRadius: tooltipBorderRadius,
94190
94435
  boxShadow: boxShadowSecondary
94191
- }), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-content"), {
94436
+ }), defineProperty_defineProperty(_extends2, ["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(','), defineProperty_defineProperty({}, "".concat(componentCls, "-inner"), {
94437
+ borderRadius: tooltipBorderRadius > MAX_VERTICAL_CONTENT_RADIUS ? MAX_VERTICAL_CONTENT_RADIUS : tooltipBorderRadius
94438
+ })), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-content"), {
94192
94439
  position: 'relative'
94193
94440
  }), _extends2)), generatorTooltipPresetColor(token)), {
94194
94441
  // RTL
@@ -94198,7 +94445,12 @@ var genTooltipStyle = function genTooltipStyle(token) {
94198
94445
  })), // Arrow Style
94199
94446
  getArrowStyle(statistic_merge(token, {
94200
94447
  radiusOuter: tooltipRadiusOuter
94201
- }), 'var(--antd-arrow-background-color)', '', 0), // Pure Render
94448
+ }), {
94449
+ colorBg: 'var(--antd-arrow-background-color)',
94450
+ showArrowCls: '',
94451
+ contentRadius: tooltipBorderRadius,
94452
+ limitVerticalRadius: true
94453
+ }), // Pure Render
94202
94454
  defineProperty_defineProperty({}, "".concat(componentCls, "-pure"), {
94203
94455
  position: 'relative',
94204
94456
  maxWidth: 'none'
@@ -94358,22 +94610,28 @@ function getDisabledCompatibleChildren(element, prefixCls) {
94358
94610
  var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
94359
94611
  var _classNames2;
94360
94612
 
94613
+ var _a, _b;
94614
+
94615
+ var customizePrefixCls = props.prefixCls,
94616
+ openClassName = props.openClassName,
94617
+ getTooltipContainer = props.getTooltipContainer,
94618
+ overlayClassName = props.overlayClassName,
94619
+ color = props.color,
94620
+ overlayInnerStyle = props.overlayInnerStyle,
94621
+ children = props.children,
94622
+ afterOpenChange = props.afterOpenChange,
94623
+ afterVisibleChange = props.afterVisibleChange;
94624
+
94361
94625
  var _React$useContext = external_React_.useContext(context_ConfigContext),
94362
94626
  getContextPopupContainer = _React$useContext.getPopupContainer,
94363
94627
  getPrefixCls = _React$useContext.getPrefixCls,
94364
94628
  direction = _React$useContext.direction;
94365
94629
 
94366
- [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange']].forEach(function (_ref) {
94367
- var _ref2 = slicedToArray_slicedToArray(_ref, 2),
94368
- deprecatedName = _ref2[0],
94369
- newName = _ref2[1];
94370
-
94371
- false ? 0 : void 0;
94372
- });
94630
+ if (false) {}
94373
94631
 
94374
94632
  var _useMergedState = useMergedState_useMergedState(false, {
94375
- value: props.open,
94376
- defaultValue: props.defaultOpen
94633
+ value: (_a = props.open) !== null && _a !== void 0 ? _a : props.visible,
94634
+ defaultValue: (_b = props.defaultOpen) !== null && _b !== void 0 ? _b : props.defaultVisible
94377
94635
  }),
94378
94636
  _useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
94379
94637
  open = _useMergedState2[0],
@@ -94455,19 +94713,12 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
94455
94713
  overlayStyle = props.overlayStyle,
94456
94714
  otherProps = tooltip_rest(props, ["getPopupContainer", "overlayStyle"]);
94457
94715
 
94458
- var customizePrefixCls = props.prefixCls,
94459
- openClassName = props.openClassName,
94460
- getTooltipContainer = props.getTooltipContainer,
94461
- overlayClassName = props.overlayClassName,
94462
- color = props.color,
94463
- overlayInnerStyle = props.overlayInnerStyle,
94464
- children = props.children;
94465
94716
  var prefixCls = getPrefixCls('tooltip', customizePrefixCls);
94466
94717
  var rootPrefixCls = getPrefixCls();
94467
94718
  var injectFromPopover = props['data-popover-inject'];
94468
94719
  var tempOpen = open; // Hide tooltip when there is no title
94469
94720
 
94470
- if (!('open' in props) && isNoTitle()) {
94721
+ if (!('open' in props) && !('visible' in props) && isNoTitle()) {
94471
94722
  tempOpen = false;
94472
94723
  }
94473
94724
 
@@ -94504,6 +94755,7 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
94504
94755
  overlay: getOverlay(),
94505
94756
  visible: tempOpen,
94506
94757
  onVisibleChange: onOpenChange,
94758
+ afterVisibleChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,
94507
94759
  onPopupAlign: onPopupAlign,
94508
94760
  overlayInnerStyle: formattedOverlayInnerStyle,
94509
94761
  arrowContent: /*#__PURE__*/external_React_.createElement("span", {
@@ -95120,15 +95372,15 @@ var getGroupRadioStyle = function getGroupRadioStyle(token) {
95120
95372
 
95121
95373
 
95122
95374
  var getRadioBasicStyle = function getRadioBasicStyle(token) {
95123
- var _$concat2, _extends3;
95375
+ var _$concat3, _extends3;
95124
95376
 
95125
95377
  var componentCls = token.componentCls,
95126
95378
  radioWrapperMarginRight = token.radioWrapperMarginRight,
95127
- radioDotColor = token.radioDotColor,
95379
+ radioCheckedColor = token.radioCheckedColor,
95128
95380
  radioTop = token.radioTop,
95129
- radioFocusShadow = token.radioFocusShadow,
95130
95381
  radioSize = token.radioSize,
95131
95382
  motionDurationSlow = token.motionDurationSlow,
95383
+ motionDurationFast = token.motionDurationFast,
95132
95384
  motionEaseInOut = token.motionEaseInOut,
95133
95385
  motionEaseInOutCirc = token.motionEaseInOutCirc,
95134
95386
  radioButtonBg = token.radioButtonBg,
@@ -95139,7 +95391,9 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95139
95391
  colorTextDisabled = token.colorTextDisabled,
95140
95392
  paddingXS = token.paddingXS,
95141
95393
  radioDotDisabledColor = token.radioDotDisabledColor,
95142
- controlLineType = token.controlLineType;
95394
+ controlLineType = token.controlLineType,
95395
+ radioDotDisabledSize = token.radioDotDisabledSize,
95396
+ wireframe = token.wireframe;
95143
95397
  var radioInnerPrefixCls = "".concat(componentCls, "-inner");
95144
95398
  return defineProperty_defineProperty({}, "".concat(componentCls, "-wrapper"), extends_extends(extends_extends({}, style_resetComponent(token)), (_extends3 = {
95145
95399
  position: 'relative',
@@ -95167,7 +95421,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95167
95421
  insetInlineStart: 0,
95168
95422
  width: '100%',
95169
95423
  height: '100%',
95170
- border: "".concat(controlLineWidth, "px ").concat(controlLineType, " ").concat(radioDotColor),
95424
+ border: "".concat(controlLineWidth, "px ").concat(controlLineType, " ").concat(radioCheckedColor),
95171
95425
  borderRadius: '50%',
95172
95426
  visibility: 'hidden',
95173
95427
  animationName: antRadioEffect,
@@ -95181,14 +95435,13 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95181
95435
  display: 'inline-block',
95182
95436
  outline: 'none',
95183
95437
  cursor: 'pointer'
95184
- })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-wrapper:hover &,\n &:hover ").concat(radioInnerPrefixCls, ",\n &-input:focus + ").concat(radioInnerPrefixCls), {
95185
- borderColor: radioDotColor
95186
- }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-input:focus + ").concat(radioInnerPrefixCls), {
95187
- boxShadow: radioFocusShadow
95188
- }), defineProperty_defineProperty(_extends3, "".concat(componentCls, ":hover::after, ").concat(componentCls, "-wrapper:hover &::after"), {
95438
+ })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-wrapper:hover &,\n &:hover ").concat(radioInnerPrefixCls), {
95439
+ borderColor: radioCheckedColor
95440
+ }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-input:focus-visible + ").concat(radioInnerPrefixCls), extends_extends({}, genFocusOutline(token))), defineProperty_defineProperty(_extends3, "".concat(componentCls, ":hover::after, ").concat(componentCls, "-wrapper:hover &::after"), {
95189
95441
  visibility: 'visible'
95190
95442
  }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-inner"), {
95191
95443
  '&::after': {
95444
+ boxSizing: 'border-box',
95192
95445
  position: 'absolute',
95193
95446
  insetBlockStart: '50%',
95194
95447
  insetInlineStart: '50%',
@@ -95197,7 +95450,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95197
95450
  height: radioSize,
95198
95451
  marginBlockStart: radioSize / -2,
95199
95452
  marginInlineStart: radioSize / -2,
95200
- backgroundColor: radioDotColor,
95453
+ backgroundColor: wireframe ? radioCheckedColor : radioButtonBg,
95201
95454
  borderBlockStart: 0,
95202
95455
  borderInlineStart: 0,
95203
95456
  borderRadius: radioSize,
@@ -95206,6 +95459,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95206
95459
  transition: "all ".concat(motionDurationSlow, " ").concat(motionEaseInOutCirc),
95207
95460
  content: '""'
95208
95461
  },
95462
+ boxSizing: 'border-box',
95209
95463
  position: 'relative',
95210
95464
  insetBlockStart: 0,
95211
95465
  insetInlineStart: 0,
@@ -95217,7 +95471,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95217
95471
  borderStyle: 'solid',
95218
95472
  borderWidth: controlLineWidth,
95219
95473
  borderRadius: '50%',
95220
- transition: "all ".concat(motionDurationSlow)
95474
+ transition: "all ".concat(motionDurationFast)
95221
95475
  }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-input"), {
95222
95476
  position: 'absolute',
95223
95477
  insetBlockStart: 0,
@@ -95228,27 +95482,32 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95228
95482
  cursor: 'pointer',
95229
95483
  opacity: 0
95230
95484
  }), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-checked"), defineProperty_defineProperty({}, radioInnerPrefixCls, {
95231
- borderColor: radioDotColor,
95485
+ borderColor: radioCheckedColor,
95486
+ backgroundColor: wireframe ? radioButtonBg : radioCheckedColor,
95232
95487
  '&::after': {
95233
95488
  transform: "scale(".concat(radioDotSize / radioSize, ")"),
95234
95489
  opacity: 1,
95235
95490
  transition: "all ".concat(motionDurationSlow, " ").concat(motionEaseInOutCirc)
95236
95491
  }
95237
- })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-disabled"), (_$concat2 = {
95492
+ })), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-disabled"), (_$concat3 = {
95238
95493
  cursor: 'not-allowed'
95239
- }, defineProperty_defineProperty(_$concat2, radioInnerPrefixCls, {
95494
+ }, defineProperty_defineProperty(_$concat3, radioInnerPrefixCls, {
95240
95495
  backgroundColor: colorBgContainerDisabled,
95241
95496
  borderColor: colorBorder,
95242
95497
  cursor: 'not-allowed',
95243
95498
  '&::after': {
95244
95499
  backgroundColor: radioDotDisabledColor
95245
95500
  }
95246
- }), defineProperty_defineProperty(_$concat2, '&-input', {
95501
+ }), defineProperty_defineProperty(_$concat3, '&-input', {
95247
95502
  cursor: 'not-allowed'
95248
- }), defineProperty_defineProperty(_$concat2, "".concat(componentCls, "-disabled + span"), {
95503
+ }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-disabled + span"), {
95249
95504
  color: colorTextDisabled,
95250
95505
  cursor: 'not-allowed'
95251
- }), _$concat2)), defineProperty_defineProperty(_extends3, "span".concat(componentCls, " + *"), {
95506
+ }), defineProperty_defineProperty(_$concat3, "&".concat(componentCls, "-checked"), defineProperty_defineProperty({}, radioInnerPrefixCls, {
95507
+ '&::after': {
95508
+ transform: "scale(".concat(radioDotDisabledSize / radioSize, ")")
95509
+ }
95510
+ })), _$concat3)), defineProperty_defineProperty(_extends3, "span".concat(componentCls, " + *"), {
95252
95511
  paddingInlineStart: paddingXS,
95253
95512
  paddingInlineEnd: paddingXS
95254
95513
  }), _extends3)));
@@ -95256,7 +95515,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
95256
95515
 
95257
95516
 
95258
95517
  var getRadioButtonStyle = function getRadioButtonStyle(token) {
95259
- var _$concat3;
95518
+ var _$concat4;
95260
95519
 
95261
95520
  var radioButtonColor = token.radioButtonColor,
95262
95521
  controlHeight = token.controlHeight,
@@ -95265,6 +95524,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95265
95524
  controlLineType = token.controlLineType,
95266
95525
  colorBorder = token.colorBorder,
95267
95526
  motionDurationSlow = token.motionDurationSlow,
95527
+ motionDurationFast = token.motionDurationFast,
95268
95528
  radioButtonPaddingHorizontal = token.radioButtonPaddingHorizontal,
95269
95529
  fontSize = token.fontSize,
95270
95530
  radioButtonBg = token.radioButtonBg,
@@ -95275,8 +95535,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95275
95535
  controlRadius = token.controlRadius,
95276
95536
  controlRadiusSM = token.controlRadiusSM,
95277
95537
  controlRadiusLG = token.controlRadiusLG,
95278
- radioDotColor = token.radioDotColor,
95279
- radioButtonFocusShadow = token.radioButtonFocusShadow,
95538
+ radioCheckedColor = token.radioCheckedColor,
95280
95539
  radioButtonCheckedBg = token.radioButtonCheckedBg,
95281
95540
  radioButtonHoverColor = token.radioButtonHoverColor,
95282
95541
  radioButtonActiveColor = token.radioButtonActiveColor,
@@ -95285,7 +95544,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95285
95544
  colorBgContainerDisabled = token.colorBgContainerDisabled,
95286
95545
  radioDisabledButtonCheckedColor = token.radioDisabledButtonCheckedColor,
95287
95546
  radioDisabledButtonCheckedBg = token.radioDisabledButtonCheckedBg;
95288
- return defineProperty_defineProperty({}, "".concat(componentCls, "-button-wrapper"), (_$concat3 = {
95547
+ return defineProperty_defineProperty({}, "".concat(componentCls, "-button-wrapper"), (_$concat4 = {
95289
95548
  position: 'relative',
95290
95549
  display: 'inline-block',
95291
95550
  height: controlHeight,
@@ -95303,18 +95562,18 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95303
95562
  borderInlineStartWidth: 0,
95304
95563
  borderInlineEndWidth: controlLineWidth,
95305
95564
  cursor: 'pointer',
95306
- transition: ["color ".concat(motionDurationSlow), "background ".concat(motionDurationSlow), "border-color ".concat(motionDurationSlow), "box-shadow ".concat(motionDurationSlow)].join(','),
95565
+ transition: ["color ".concat(motionDurationFast), "background ".concat(motionDurationFast), "border-color ".concat(motionDurationFast), "box-shadow ".concat(motionDurationFast)].join(','),
95307
95566
  a: {
95308
95567
  color: radioButtonColor
95309
95568
  }
95310
- }, defineProperty_defineProperty(_$concat3, "> ".concat(componentCls, "-button"), {
95569
+ }, defineProperty_defineProperty(_$concat4, "> ".concat(componentCls, "-button"), {
95311
95570
  position: 'absolute',
95312
95571
  insetBlockStart: 0,
95313
95572
  insetInlineStart: 0,
95314
95573
  zIndex: -1,
95315
95574
  width: '100%',
95316
95575
  height: '100%'
95317
- }), defineProperty_defineProperty(_$concat3, '&:not(:first-child)', {
95576
+ }), defineProperty_defineProperty(_$concat4, '&:not(:first-child)', {
95318
95577
  '&::before': {
95319
95578
  position: 'absolute',
95320
95579
  insetBlockStart: -controlLineWidth,
@@ -95329,16 +95588,16 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95329
95588
  transition: "background-color ".concat(motionDurationSlow),
95330
95589
  content: '""'
95331
95590
  }
95332
- }), defineProperty_defineProperty(_$concat3, '&:first-child', {
95591
+ }), defineProperty_defineProperty(_$concat4, '&:first-child', {
95333
95592
  borderInlineStart: "".concat(controlLineWidth, "px ").concat(controlLineType, " ").concat(colorBorder),
95334
95593
  borderStartStartRadius: controlRadius,
95335
95594
  borderEndStartRadius: controlRadius
95336
- }), defineProperty_defineProperty(_$concat3, '&:last-child', {
95595
+ }), defineProperty_defineProperty(_$concat4, '&:last-child', {
95337
95596
  borderStartEndRadius: controlRadius,
95338
95597
  borderEndEndRadius: controlRadius
95339
- }), defineProperty_defineProperty(_$concat3, '&:first-child:last-child', {
95598
+ }), defineProperty_defineProperty(_$concat4, '&:first-child:last-child', {
95340
95599
  borderRadius: controlRadius
95341
- }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-group-large &"), {
95600
+ }), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-group-large &"), {
95342
95601
  height: controlHeightLG,
95343
95602
  fontSize: fontSizeLG,
95344
95603
  lineHeight: "".concat(controlHeightLG - controlLineWidth * 2, "px"),
@@ -95350,7 +95609,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95350
95609
  borderStartEndRadius: controlRadiusLG,
95351
95610
  borderEndEndRadius: controlRadiusLG
95352
95611
  }
95353
- }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-group-small &"), {
95612
+ }), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-group-small &"), {
95354
95613
  height: controlHeightSM,
95355
95614
  paddingInline: paddingXS - controlLineWidth,
95356
95615
  paddingBlock: 0,
@@ -95363,26 +95622,24 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95363
95622
  borderStartEndRadius: controlRadiusSM,
95364
95623
  borderEndEndRadius: controlRadiusSM
95365
95624
  }
95366
- }), defineProperty_defineProperty(_$concat3, '&:hover', {
95625
+ }), defineProperty_defineProperty(_$concat4, '&:hover', {
95367
95626
  position: 'relative',
95368
- color: radioDotColor
95369
- }), defineProperty_defineProperty(_$concat3, '&:focus-within', {
95370
- boxShadow: radioButtonFocusShadow
95371
- }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-inner, input[type='checkbox'], input[type='radio']"), {
95627
+ color: radioCheckedColor
95628
+ }), defineProperty_defineProperty(_$concat4, '&:has(:focus-visible)', extends_extends({}, genFocusOutline(token))), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-inner, input[type='checkbox'], input[type='radio']"), {
95372
95629
  width: 0,
95373
95630
  height: 0,
95374
95631
  opacity: 0,
95375
95632
  pointerEvents: 'none'
95376
- }), defineProperty_defineProperty(_$concat3, '&-checked:not(&-disabled)', {
95633
+ }), defineProperty_defineProperty(_$concat4, '&-checked:not(&-disabled)', {
95377
95634
  zIndex: 1,
95378
- color: radioDotColor,
95635
+ color: radioCheckedColor,
95379
95636
  background: radioButtonCheckedBg,
95380
- borderColor: radioDotColor,
95637
+ borderColor: radioCheckedColor,
95381
95638
  '&::before': {
95382
- backgroundColor: radioDotColor
95639
+ backgroundColor: radioCheckedColor
95383
95640
  },
95384
95641
  '&:first-child': {
95385
- borderColor: radioDotColor
95642
+ borderColor: radioCheckedColor
95386
95643
  },
95387
95644
  '&:hover': {
95388
95645
  color: radioButtonHoverColor,
@@ -95397,14 +95654,11 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95397
95654
  '&::before': {
95398
95655
  backgroundColor: radioButtonActiveColor
95399
95656
  }
95400
- },
95401
- '&:focus-within': {
95402
- boxShadow: radioButtonFocusShadow
95403
95657
  }
95404
- }), defineProperty_defineProperty(_$concat3, "".concat(componentCls, "-group-solid &-checked:not(&-disabled)"), {
95658
+ }), defineProperty_defineProperty(_$concat4, "".concat(componentCls, "-group-solid &-checked:not(&-disabled)"), {
95405
95659
  color: radioSolidCheckedColor,
95406
- background: radioDotColor,
95407
- borderColor: radioDotColor,
95660
+ background: radioCheckedColor,
95661
+ borderColor: radioCheckedColor,
95408
95662
  '&:hover': {
95409
95663
  color: radioSolidCheckedColor,
95410
95664
  background: radioButtonHoverColor,
@@ -95414,11 +95668,8 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95414
95668
  color: radioSolidCheckedColor,
95415
95669
  background: radioButtonActiveColor,
95416
95670
  borderColor: radioButtonActiveColor
95417
- },
95418
- '&:focus-within': {
95419
- boxShadow: radioButtonFocusShadow
95420
95671
  }
95421
- }), defineProperty_defineProperty(_$concat3, '&-disabled', {
95672
+ }), defineProperty_defineProperty(_$concat4, '&-disabled', {
95422
95673
  color: colorTextDisabled,
95423
95674
  backgroundColor: colorBgContainerDisabled,
95424
95675
  borderColor: colorBorder,
@@ -95428,12 +95679,12 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95428
95679
  backgroundColor: colorBgContainerDisabled,
95429
95680
  borderColor: colorBorder
95430
95681
  }
95431
- }), defineProperty_defineProperty(_$concat3, '&-disabled&-checked', {
95682
+ }), defineProperty_defineProperty(_$concat4, '&-disabled&-checked', {
95432
95683
  color: radioDisabledButtonCheckedColor,
95433
95684
  backgroundColor: radioDisabledButtonCheckedBg,
95434
95685
  borderColor: colorBorder,
95435
95686
  boxShadow: 'none'
95436
- }), _$concat3));
95687
+ }), _$concat4));
95437
95688
  }; // ============================== Export ==============================
95438
95689
 
95439
95690
 
@@ -95441,7 +95692,6 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95441
95692
  var padding = token.padding,
95442
95693
  controlLineWidth = token.controlLineWidth,
95443
95694
  colorBgContainerDisabled = token.colorBgContainerDisabled,
95444
- paddingXXS = token.paddingXXS,
95445
95695
  colorTextDisabled = token.colorTextDisabled,
95446
95696
  colorBgContainer = token.colorBgContainer,
95447
95697
  fontSize = token.fontSize,
@@ -95453,14 +95703,17 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95453
95703
  colorText = token.colorText,
95454
95704
  colorPrimary = token.colorPrimary,
95455
95705
  marginXS = token.marginXS,
95456
- controlOutlineWidth = token.controlOutlineWidth; // Radio
95706
+ controlOutlineWidth = token.controlOutlineWidth,
95707
+ paddingXXS = token.paddingXXS,
95708
+ wireframe = token.wireframe; // Radio
95457
95709
 
95458
95710
  var radioFocusShadow = "0 0 0 ".concat(controlOutlineWidth, "px ").concat(controlOutline);
95459
95711
  var radioButtonFocusShadow = radioFocusShadow;
95460
95712
  var radioSize = fontSizeLG;
95461
95713
  var radioTop = (Math.round(fontSize * lineHeight) - radioSize) / 2;
95462
- var radioDotSize = radioSize - paddingXXS * 2;
95463
- var radioDotColor = colorPrimary; // Radio buttons
95714
+ var radioDotDisabledSize = radioSize - paddingXXS * 2;
95715
+ var radioDotSize = wireframe ? radioDotDisabledSize : radioSize - (paddingXXS + controlLineWidth) * 2;
95716
+ var radioCheckedColor = colorPrimary; // Radio buttons
95464
95717
 
95465
95718
  var radioButtonColor = colorText;
95466
95719
  var radioButtonHoverColor = colorPrimaryHover;
@@ -95474,7 +95727,8 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
95474
95727
  radioSize: radioSize,
95475
95728
  radioTop: radioTop,
95476
95729
  radioDotSize: radioDotSize,
95477
- radioDotColor: radioDotColor,
95730
+ radioDotDisabledSize: radioDotDisabledSize,
95731
+ radioCheckedColor: radioCheckedColor,
95478
95732
  radioDotDisabledColor: colorTextDisabled,
95479
95733
  radioSolidCheckedColor: colorBgContainer,
95480
95734
  radioButtonBg: colorBgContainer,
@@ -97248,17 +97502,17 @@ function BaseProList(props) {
97248
97502
  /* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
97249
97503
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
97250
97504
  var version_version = {
97251
- "@ant-design/pro-card": "2.0.5",
97252
- "@ant-design/pro-components": "2.3.7",
97253
- "@ant-design/pro-descriptions": "2.0.6",
97254
- "@ant-design/pro-field": "2.0.6",
97255
- "@ant-design/pro-form": "2.0.6",
97256
- "@ant-design/pro-layout": "7.0.5",
97257
- "@ant-design/pro-list": "2.0.6",
97505
+ "@ant-design/pro-card": "2.0.6",
97506
+ "@ant-design/pro-components": "2.3.8",
97507
+ "@ant-design/pro-descriptions": "2.0.7",
97508
+ "@ant-design/pro-field": "2.1.0",
97509
+ "@ant-design/pro-form": "2.1.0",
97510
+ "@ant-design/pro-layout": "7.0.6",
97511
+ "@ant-design/pro-list": "2.0.7",
97258
97512
  "@ant-design/pro-provider": "2.0.3",
97259
97513
  "@ant-design/pro-skeleton": "2.0.3",
97260
- "@ant-design/pro-table": "3.0.6",
97261
- "@ant-design/pro-utils": "2.0.4"
97514
+ "@ant-design/pro-table": "3.0.7",
97515
+ "@ant-design/pro-utils": "2.1.0"
97262
97516
  };
97263
97517
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
97264
97518