@pnkx-lib/ui 1.9.526 → 1.9.527

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/style.css +2 -2
  2. package/es/chunks/{AntdIcon-Bve8mGNz.js → AntdIcon-KP2HuB_x.js} +2 -44
  3. package/es/chunks/{CloseCircleFilled-Bo29sDEQ.js → CloseCircleFilled-4jnV3XJV.js} +1 -1
  4. package/es/chunks/{CloseOutlined-CZUJ_3tW.js → CloseOutlined-DdLJZQvZ.js} +1 -1
  5. package/es/chunks/{DownOutlined-O2mPkovb.js → DownOutlined-Cl95zPIN.js} +1 -1
  6. package/es/chunks/{InboxOutlined-BBuIJe6u.js → InboxOutlined-W7xl_mLq.js} +1 -1
  7. package/es/chunks/{LoadingOutlined-DCtDXz9K.js → LoadingOutlined-C5-PNVpb.js} +1 -1
  8. package/es/chunks/{bundle-mjs-BME7zF0Z.js → bundle-mjs-BBFHkixS.js} +1 -1
  9. package/es/chunks/{createSuper-C9_dQ5Zr.js → createSuper-CnOp-EUR.js} +1 -1
  10. package/es/chunks/{index-BLRvgOFN.js → index-xdC7i8zM.js} +1 -1
  11. package/es/chunks/{index.esm-Dr5ZHcf7.js → index.esm-Ds4t-z37.js} +3 -6
  12. package/es/chunks/{toArray-2LkvUaha.js → toArray-7SKWyzWi.js} +84 -250
  13. package/es/fields/CascaderField.js +1 -1
  14. package/es/fields/Checkbox.js +1 -1
  15. package/es/fields/DatePicker.js +3 -3
  16. package/es/fields/DateRangePicker.js +1 -1
  17. package/es/fields/Input.js +1 -1
  18. package/es/fields/InputRangePicker.js +1 -1
  19. package/es/fields/PnkxField.js +1 -1
  20. package/es/fields/Select.js +3 -3
  21. package/es/fields/SliderRanger.js +1 -1
  22. package/es/fields/SliderSingle.js +1 -1
  23. package/es/fields/Switch.js +1 -1
  24. package/es/fields/Textarea.js +1 -1
  25. package/es/fields/TimePicker.js +1 -1
  26. package/es/fields/TimeRangePicker.js +1 -1
  27. package/es/fields/TinyMCE.js +17 -36
  28. package/es/fields/Upload.js +1 -1
  29. package/es/index.js +1 -1
  30. package/es/ui/BreadcrumbHeading.js +1 -1
  31. package/es/ui/Button.js +1 -1
  32. package/es/ui/Cascader.js +1 -1
  33. package/es/ui/CategoryStatus.js +1 -1
  34. package/es/ui/Container.js +1 -1
  35. package/es/ui/Descriptions.js +1 -1
  36. package/es/ui/ExportFile.js +2 -2
  37. package/es/ui/GenericUploadModal.js +11546 -7
  38. package/es/ui/Heading.js +1 -1
  39. package/es/ui/ImportFile.js +2 -2
  40. package/es/ui/Label.js +1 -1
  41. package/es/ui/Layout.js +32 -35
  42. package/es/ui/Modal.js +1 -1
  43. package/es/ui/SearchFilterForm.js +2 -2
  44. package/es/ui/SelectSingleTable.js +1 -1
  45. package/es/ui/SelectTable.js +1 -1
  46. package/es/ui/Sidebar/index.js +3 -3
  47. package/es/ui/Tabs.js +2 -2
  48. package/es/ui/UploadComponent.js +2 -2
  49. package/es/ui/UploadImage.js +1 -1
  50. package/es/ui/UploadMultiple.js +1 -1
  51. package/es/ui/index.js +192 -17601
  52. package/package.json +1 -1
  53. package/types/components/ui/Table/ActionRowTable/index.d.ts +2 -2
  54. package/es/chunks/GenericUploadModal-Dhv5_mhq.js +0 -11608
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useContext, createContext } from 'react';
3
3
  import { _ as _typeof, c as _arrayLikeToArray, a as _unsupportedIterableToArray, b as _defineProperty } from './defineProperty-CTLrw71t.js';
4
- import { w as warningOnce, a as _objectWithoutProperties, b as _objectSpread2, c as _slicedToArray, d as warning$1, e as canUseDom, u as updateCSS, r as removeCSS, _ as _extends, f as _arrayWithHoles, g as _nonIterableRest, h as resetWarned$1, F as FastColor, i as generate, p as presetPrimaryColors, j as presetPalettes, k as IconContext } from './AntdIcon-Bve8mGNz.js';
5
- import { _ as _createClass, a as _classCallCheck, b as _inherits, c as _createSuper, d as _assertThisInitialized } from './createSuper-C9_dQ5Zr.js';
4
+ import { w as warningOnce, a as _slicedToArray, b as warning$2, c as canUseDom, d as _objectSpread2, u as updateCSS, _ as _extends, r as removeCSS, e as _arrayWithHoles, f as _nonIterableRest, g as resetWarned$1, F as FastColor, h as generate, p as presetPrimaryColors, i as presetPalettes, j as _objectWithoutProperties, k as IconContext } from './AntdIcon-KP2HuB_x.js';
5
+ import { _ as _createClass, a as _classCallCheck, b as _inherits, c as _createSuper, d as _assertThisInitialized } from './createSuper-CnOp-EUR.js';
6
6
 
7
7
  function useMemo(getValue, condition, shouldUpdate) {
8
8
  var cacheRef = React.useRef({});
@@ -177,7 +177,6 @@ var Entity = /*#__PURE__*/function () {
177
177
  _defineProperty(this, "instanceId", void 0);
178
178
  /** @private Internal cache map. Do not access this directly */
179
179
  _defineProperty(this, "cache", new Map());
180
- _defineProperty(this, "extracted", new Set());
181
180
  this.instanceId = instanceId;
182
181
  }
183
182
  _createClass(Entity, [{
@@ -214,7 +213,6 @@ var Entity = /*#__PURE__*/function () {
214
213
  return Entity;
215
214
  }();
216
215
 
217
- var _excluded$1 = ["children"];
218
216
  var ATTR_TOKEN = 'data-token-hash';
219
217
  var ATTR_MARK = 'data-css-hash';
220
218
  var ATTR_CACHE_PATH = 'data-cache-path';
@@ -259,29 +257,6 @@ var StyleContext = /*#__PURE__*/React.createContext({
259
257
  cache: createCache(),
260
258
  defaultCache: true
261
259
  });
262
- var StyleProvider = function StyleProvider(props) {
263
- var children = props.children,
264
- restProps = _objectWithoutProperties(props, _excluded$1);
265
- var parentContext = React.useContext(StyleContext);
266
- var context = useMemo(function () {
267
- var mergedContext = _objectSpread2({}, parentContext);
268
- Object.keys(restProps).forEach(function (key) {
269
- var value = restProps[key];
270
- if (restProps[key] !== undefined) {
271
- mergedContext[key] = value;
272
- }
273
- });
274
- var cache = restProps.cache;
275
- mergedContext.cache = mergedContext.cache || createCache();
276
- mergedContext.defaultCache = !cache && parentContext.defaultCache;
277
- return mergedContext;
278
- }, [parentContext, restProps], function (prev, next) {
279
- return !isEqual(prev[0], next[0], true) || !isEqual(prev[1], next[1], true);
280
- });
281
- return /*#__PURE__*/React.createElement(StyleContext.Provider, {
282
- value: context
283
- }, children);
284
- };
285
260
 
286
261
  // ================================== Cache ==================================
287
262
 
@@ -436,7 +411,7 @@ var Theme = /*#__PURE__*/function () {
436
411
  this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives];
437
412
  this.id = uuid;
438
413
  if (derivatives.length === 0) {
439
- warning$1(derivatives.length > 0, '[Ant Design CSS-in-JS] Theme should have at least one derivative function.');
414
+ warning$2(derivatives.length > 0, '[Ant Design CSS-in-JS] Theme should have at least one derivative function.');
440
415
  }
441
416
  uuid += 1;
442
417
  }
@@ -523,51 +498,6 @@ function flattenToken(token) {
523
498
  function token2key(token, salt) {
524
499
  return murmur2("".concat(salt, "_").concat(flattenToken(token)));
525
500
  }
526
- var randomSelectorKey = "random-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, '');
527
-
528
- // Magic `content` for detect selector support
529
- var checkContent = '_bAmBoO_';
530
- function supportSelector(styleStr, handleElement, supportCheck) {
531
- if (canUseDom()) {
532
- var _getComputedStyle$con, _ele$parentNode;
533
- updateCSS(styleStr, randomSelectorKey);
534
- var _ele = document.createElement('div');
535
- _ele.style.position = 'fixed';
536
- _ele.style.left = '0';
537
- _ele.style.top = '0';
538
- handleElement === null || handleElement === void 0 || handleElement(_ele);
539
- document.body.appendChild(_ele);
540
- if (process.env.NODE_ENV !== 'production') {
541
- _ele.innerHTML = 'Test';
542
- _ele.style.zIndex = '9999999';
543
- }
544
- var support = supportCheck ? supportCheck(_ele) : (_getComputedStyle$con = getComputedStyle(_ele).content) === null || _getComputedStyle$con === void 0 ? void 0 : _getComputedStyle$con.includes(checkContent);
545
- (_ele$parentNode = _ele.parentNode) === null || _ele$parentNode === void 0 || _ele$parentNode.removeChild(_ele);
546
- removeCSS(randomSelectorKey);
547
- return support;
548
- }
549
- return false;
550
- }
551
- var canWhere = undefined;
552
- function supportWhere() {
553
- if (canWhere === undefined) {
554
- canWhere = supportSelector(":where(.".concat(randomSelectorKey, ") { content: \"").concat(checkContent, "\"!important; }"), function (ele) {
555
- ele.className = randomSelectorKey;
556
- });
557
- }
558
- return canWhere;
559
- }
560
- var canLogic = undefined;
561
- function supportLogicProps() {
562
- if (canLogic === undefined) {
563
- canLogic = supportSelector(".".concat(randomSelectorKey, " { inset-block: 93px !important; }"), function (ele) {
564
- ele.className = randomSelectorKey;
565
- }, function (ele) {
566
- return getComputedStyle(ele).bottom === '93px';
567
- });
568
- }
569
- return canLogic;
570
- }
571
501
  var isClientSide = canUseDom();
572
502
  function unit$1(num) {
573
503
  if (typeof num === 'number') {
@@ -575,21 +505,6 @@ function unit$1(num) {
575
505
  }
576
506
  return num;
577
507
  }
578
- function toStyleStr(style, tokenKey, styleId) {
579
- var customizeAttrs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
580
- var plain = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
581
- if (plain) {
582
- return style;
583
- }
584
- var attrs = _objectSpread2(_objectSpread2({}, customizeAttrs), {}, _defineProperty(_defineProperty({}, ATTR_TOKEN, tokenKey), ATTR_MARK, styleId));
585
- var attrStr = Object.keys(attrs).map(function (attr) {
586
- var val = attrs[attr];
587
- return val ? "".concat(attr, "=\"").concat(val, "\"") : null;
588
- }).filter(function (v) {
589
- return v;
590
- }).join(' ');
591
- return "<style ".concat(attrStr, ">").concat(style, "</style>");
592
- }
593
508
 
594
509
  var token2CSSVar = function token2CSSVar(token) {
595
510
  var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
@@ -693,7 +608,7 @@ var useCleanupRegister = function useCleanupRegister(deps) {
693
608
  function register(fn) {
694
609
  if (cleanupFlag) {
695
610
  if (process.env.NODE_ENV !== 'production') {
696
- warning$1(false, '[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.');
611
+ warning$2(false, '[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.');
697
612
  }
698
613
  return;
699
614
  }
@@ -786,6 +701,7 @@ onCacheEffect) {
786
701
  }, /* eslint-disable react-hooks/exhaustive-deps */
787
702
  [fullPathStr]
788
703
  /* eslint-enable */);
704
+
789
705
  var cacheEntity = globalCache.opGet(fullPathStr);
790
706
 
791
707
  // HMR clean the cache but not trigger `useMemo` again
@@ -865,13 +781,14 @@ var TOKEN_THRESHOLD = 0;
865
781
  // Remove will check current keys first
866
782
  function cleanTokenStyle(tokenKey, instanceId) {
867
783
  tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1);
868
- var cleanableKeyList = new Set();
869
- tokenKeys.forEach(function (value, key) {
870
- if (value <= 0) cleanableKeyList.add(key);
784
+ var tokenKeyList = Array.from(tokenKeys.keys());
785
+ var cleanableKeyList = tokenKeyList.filter(function (key) {
786
+ var count = tokenKeys.get(key) || 0;
787
+ return count <= 0;
871
788
  });
872
789
 
873
790
  // Should keep tokens under threshold for not to insert style too often
874
- if (tokenKeys.size - cleanableKeyList.size > TOKEN_THRESHOLD) {
791
+ if (tokenKeyList.length - cleanableKeyList.length > TOKEN_THRESHOLD) {
875
792
  cleanableKeyList.forEach(function (key) {
876
793
  removeStyleTags(key, instanceId);
877
794
  tokenKeys.delete(key);
@@ -970,28 +887,6 @@ function useCacheToken(theme, tokens) {
970
887
  });
971
888
  return cachedToken;
972
889
  }
973
- var extract$2 = function extract(cache, effectStyles, options) {
974
- var _cache = _slicedToArray(cache, 5),
975
- realToken = _cache[2],
976
- styleStr = _cache[3],
977
- cssVarKey = _cache[4];
978
- var _ref3 = options || {},
979
- plain = _ref3.plain;
980
- if (!styleStr) {
981
- return null;
982
- }
983
- var styleId = realToken._tokenKey;
984
- var order = -999;
985
-
986
- // ====================== Style ======================
987
- // Used for rc-util
988
- var sharedAttrs = {
989
- 'data-rc-order': 'prependQueue',
990
- 'data-rc-priority': "".concat(order)
991
- };
992
- var styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain);
993
- return [order, styleId, styleText];
994
- };
995
890
 
996
891
  var unitlessKeys = {
997
892
  animationIterationCount: 1,
@@ -1550,7 +1445,7 @@ function declaration (value, root, parent, length, siblings) {
1550
1445
  * @param {function} callback
1551
1446
  * @return {string}
1552
1447
  */
1553
- function serialize$1 (children, callback) {
1448
+ function serialize (children, callback) {
1554
1449
  var output = '';
1555
1450
 
1556
1451
  for (var i = 0; i < children.length; i++)
@@ -1571,11 +1466,11 @@ function stringify (element, index, children, callback) {
1571
1466
  case LAYER: if (element.children.length) break
1572
1467
  case IMPORT: case NAMESPACE: case DECLARATION: return element.return = element.return || element.value
1573
1468
  case COMMENT: return ''
1574
- case KEYFRAMES: return element.return = element.value + '{' + serialize$1(element.children, callback) + '}'
1469
+ case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
1575
1470
  case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
1576
1471
  }
1577
1472
 
1578
- return strlen(children = serialize$1(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
1473
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
1579
1474
  }
1580
1475
 
1581
1476
  function lintWarning(message, info) {
@@ -1610,12 +1505,6 @@ var ATTR_CACHE_MAP = 'data-ant-cssinjs-cache-path';
1610
1505
  * Which means not exist in `<style />` tag.
1611
1506
  */
1612
1507
  var CSS_FILE_STYLE = '_FILE_STYLE__';
1613
- function serialize(cachePathMap) {
1614
- return Object.keys(cachePathMap).map(function (path) {
1615
- var hash = cachePathMap[path];
1616
- return "".concat(path, ":").concat(hash);
1617
- }).join(';');
1618
- }
1619
1508
  var cachePathMap;
1620
1509
  var fromCSSFile = true;
1621
1510
  function prepare() {
@@ -1681,7 +1570,7 @@ var MULTI_VALUE = '_multi_value_';
1681
1570
  // ============================================================================
1682
1571
  // Preprocessor style content to browser support one
1683
1572
  function normalizeStyle(styleStr) {
1684
- var serialized = serialize$1(compile(styleStr), stringify);
1573
+ var serialized = serialize(compile(styleStr), stringify);
1685
1574
  return serialized.replace(/\{%%%\:[^;];}/g, ';');
1686
1575
  }
1687
1576
  function isCompoundCSSProperty(value) {
@@ -1952,8 +1841,7 @@ function useStyleRegister(info, styleFn) {
1952
1841
  styleId = _ref3[2];
1953
1842
  if ((fromHMR || autoClear) && isClientSide) {
1954
1843
  removeCSS(styleId, {
1955
- mark: ATTR_MARK,
1956
- attachTo: container
1844
+ mark: ATTR_MARK
1957
1845
  });
1958
1846
  }
1959
1847
  },
@@ -2026,7 +1914,8 @@ function useStyleRegister(info, styleFn) {
2026
1914
  if (!ssrInline || isMergedClientSide || !defaultCache) {
2027
1915
  styleNode = /*#__PURE__*/React.createElement(Empty, null);
2028
1916
  } else {
2029
- styleNode = /*#__PURE__*/React.createElement("style", _extends({}, _defineProperty(_defineProperty({}, ATTR_TOKEN, cachedTokenKey), ATTR_MARK, cachedStyleId), {
1917
+ var _ref6;
1918
+ styleNode = /*#__PURE__*/React.createElement("style", _extends({}, (_ref6 = {}, _defineProperty(_ref6, ATTR_TOKEN, cachedTokenKey), _defineProperty(_ref6, ATTR_MARK, cachedStyleId), _ref6), {
2030
1919
  dangerouslySetInnerHTML: {
2031
1920
  __html: cachedStyleStr
2032
1921
  }
@@ -2035,51 +1924,6 @@ function useStyleRegister(info, styleFn) {
2035
1924
  return /*#__PURE__*/React.createElement(React.Fragment, null, styleNode, node);
2036
1925
  };
2037
1926
  }
2038
- var extract$1 = function extract(cache, effectStyles, options) {
2039
- var _cache = _slicedToArray(cache, 6),
2040
- styleStr = _cache[0],
2041
- tokenKey = _cache[1],
2042
- styleId = _cache[2],
2043
- effectStyle = _cache[3],
2044
- clientOnly = _cache[4],
2045
- order = _cache[5];
2046
- var _ref7 = options || {},
2047
- plain = _ref7.plain;
2048
-
2049
- // Skip client only style
2050
- if (clientOnly) {
2051
- return null;
2052
- }
2053
- var keyStyleText = styleStr;
2054
-
2055
- // ====================== Share ======================
2056
- // Used for rc-util
2057
- var sharedAttrs = {
2058
- 'data-rc-order': 'prependQueue',
2059
- 'data-rc-priority': "".concat(order)
2060
- };
2061
-
2062
- // ====================== Style ======================
2063
- keyStyleText = toStyleStr(styleStr, tokenKey, styleId, sharedAttrs, plain);
2064
-
2065
- // =============== Create effect style ===============
2066
- if (effectStyle) {
2067
- Object.keys(effectStyle).forEach(function (effectKey) {
2068
- // Effect style can be reused
2069
- if (!effectStyles[effectKey]) {
2070
- effectStyles[effectKey] = true;
2071
- var effectStyleStr = normalizeStyle(effectStyle[effectKey]);
2072
- var effectStyleHTML = toStyleStr(effectStyleStr, tokenKey, "_effect-".concat(effectKey), sharedAttrs, plain);
2073
- if (effectKey.startsWith('@layer')) {
2074
- keyStyleText = effectStyleHTML + keyStyleText;
2075
- } else {
2076
- keyStyleText += effectStyleHTML;
2077
- }
2078
- }
2079
- });
2080
- }
2081
- return [order, styleId, keyStyleText];
2082
- };
2083
1927
 
2084
1928
  var CSS_VAR_PREFIX = 'cssVar';
2085
1929
  var useCSSVarRegister = function useCSSVarRegister(config, fn) {
@@ -2113,8 +1957,7 @@ var useCSSVarRegister = function useCSSVarRegister(config, fn) {
2113
1957
  styleId = _ref2[2];
2114
1958
  if (isClientSide) {
2115
1959
  removeCSS(styleId, {
2116
- mark: ATTR_MARK,
2117
- attachTo: container
1960
+ mark: ATTR_MARK
2118
1961
  });
2119
1962
  }
2120
1963
  }, function (_ref3) {
@@ -2137,27 +1980,6 @@ var useCSSVarRegister = function useCSSVarRegister(config, fn) {
2137
1980
  });
2138
1981
  return cache;
2139
1982
  };
2140
- var extract = function extract(cache, effectStyles, options) {
2141
- var _cache = _slicedToArray(cache, 4),
2142
- styleStr = _cache[1],
2143
- styleId = _cache[2],
2144
- cssVarKey = _cache[3];
2145
- var _ref5 = options || {},
2146
- plain = _ref5.plain;
2147
- if (!styleStr) {
2148
- return null;
2149
- }
2150
- var order = -999;
2151
-
2152
- // ====================== Style ======================
2153
- // Used for rc-util
2154
- var sharedAttrs = {
2155
- 'data-rc-order': 'prependQueue',
2156
- 'data-rc-priority': "".concat(order)
2157
- };
2158
- var styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain);
2159
- return [order, styleId, styleText];
2160
- };
2161
1983
 
2162
1984
  function _toArray(r) {
2163
1985
  return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
@@ -2258,9 +2080,10 @@ function resetWarned() {
2258
2080
  deprecatedWarnList = null;
2259
2081
  resetWarned$1();
2260
2082
  }
2261
- let _warning = noop$1;
2083
+ // eslint-disable-next-line import/no-mutable-exports
2084
+ let warning = noop$1;
2262
2085
  if (process.env.NODE_ENV !== 'production') {
2263
- _warning = (valid, component, message) => {
2086
+ warning = (valid, component, message) => {
2264
2087
  warningOnce(valid, `[antd: ${component}] ${message}`);
2265
2088
  // StrictMode will inject console which will not throw warning in React 17.
2266
2089
  if (process.env.NODE_ENV === 'test') {
@@ -2268,7 +2091,6 @@ if (process.env.NODE_ENV !== 'production') {
2268
2091
  }
2269
2092
  };
2270
2093
  }
2271
- const warning = _warning;
2272
2094
  const WarningContext = /*#__PURE__*/React.createContext({});
2273
2095
  /**
2274
2096
  * This is a hook but we not named as `useWarning`
@@ -2308,6 +2130,7 @@ const devUseWarning = process.env.NODE_ENV !== 'production' ? component => {
2308
2130
  noopWarning.deprecated = noop$1;
2309
2131
  return noopWarning;
2310
2132
  };
2133
+ const warning$1 = warning;
2311
2134
 
2312
2135
  // ZombieJ: We export single file here since
2313
2136
  // ConfigProvider use this which will make loop deps
@@ -2395,8 +2218,7 @@ const localeValues = {
2395
2218
  TimePicker: locale$1,
2396
2219
  Calendar: locale,
2397
2220
  global: {
2398
- placeholder: 'Please select',
2399
- close: 'Close'
2221
+ placeholder: 'Please select'
2400
2222
  },
2401
2223
  Table: {
2402
2224
  filterTitle: 'Filter menu',
@@ -2641,10 +2463,11 @@ const seedToken = Object.assign(Object.assign({}, defaultPresetColors), {
2641
2463
  motion: true
2642
2464
  });
2643
2465
 
2644
- function genColorMapToken(seed, {
2645
- generateColorPalettes,
2646
- generateNeutralColorPalettes
2647
- }) {
2466
+ function genColorMapToken(seed, _ref) {
2467
+ let {
2468
+ generateColorPalettes,
2469
+ generateNeutralColorPalettes
2470
+ } = _ref;
2648
2471
  const {
2649
2472
  colorSuccess: colorSuccessBase,
2650
2473
  colorWarning: colorWarningBase,
@@ -2945,6 +2768,7 @@ function derivative(token) {
2945
2768
  return prev;
2946
2769
  }, {});
2947
2770
  }).reduce((prev, cur) => {
2771
+ // biome-ignore lint/style/noParameterAssign: it is a reduce
2948
2772
  prev = Object.assign(Object.assign({}, prev), cur);
2949
2773
  return prev;
2950
2774
  }, {});
@@ -3075,15 +2899,16 @@ function registerTheme(globalPrefixCls, theme) {
3075
2899
  if (canUseDom()) {
3076
2900
  updateCSS(style, `${dynamicStyleMark}-dynamic-theme`);
3077
2901
  } else {
3078
- process.env.NODE_ENV !== "production" ? warning(false, 'ConfigProvider', 'SSR do not support dynamic theme with css variables.') : void 0;
2902
+ process.env.NODE_ENV !== "production" ? warning$1(false, 'ConfigProvider', 'SSR do not support dynamic theme with css variables.') : void 0;
3079
2903
  }
3080
2904
  }
3081
2905
 
3082
2906
  const DisabledContext = /*#__PURE__*/React.createContext(false);
3083
- const DisabledContextProvider = ({
3084
- children,
3085
- disabled
3086
- }) => {
2907
+ const DisabledContextProvider = _ref => {
2908
+ let {
2909
+ children,
2910
+ disabled
2911
+ } = _ref;
3087
2912
  const originDisabled = React.useContext(DisabledContext);
3088
2913
  return /*#__PURE__*/React.createElement(DisabledContext.Provider, {
3089
2914
  value: disabled !== null && disabled !== void 0 ? disabled : originDisabled
@@ -3091,10 +2916,11 @@ const DisabledContextProvider = ({
3091
2916
  };
3092
2917
 
3093
2918
  const SizeContext = /*#__PURE__*/React.createContext(undefined);
3094
- const SizeContextProvider = ({
3095
- children,
3096
- size
3097
- }) => {
2919
+ const SizeContextProvider = _ref => {
2920
+ let {
2921
+ children,
2922
+ size
2923
+ } = _ref;
3098
2924
  const originSize = React.useContext(SizeContext);
3099
2925
  return /*#__PURE__*/React.createElement(SizeContext.Provider, {
3100
2926
  value: size || originSize
@@ -3768,7 +3594,7 @@ function genStyleUtils(config) {
3768
3594
  };
3769
3595
  }
3770
3596
 
3771
- const version = '5.27.1';
3597
+ const version = '5.24.7';
3772
3598
 
3773
3599
  function isStableColor(color) {
3774
3600
  return color >= 0 && color <= 255;
@@ -4009,6 +3835,17 @@ const unitless = {
4009
3835
  opacityImage: true
4010
3836
  };
4011
3837
  const ignore = {
3838
+ size: true,
3839
+ sizeSM: true,
3840
+ sizeLG: true,
3841
+ sizeMD: true,
3842
+ sizeXS: true,
3843
+ sizeXXS: true,
3844
+ sizeMS: true,
3845
+ sizeXL: true,
3846
+ sizeXXL: true,
3847
+ sizeUnit: true,
3848
+ sizeStep: true,
4012
3849
  motionBase: true,
4013
3850
  motionUnit: true
4014
3851
  };
@@ -4044,7 +3881,8 @@ const getComputedToken = (originToken, overrideToken, theme) => {
4044
3881
  // Format if needed
4045
3882
  mergedDerivativeToken = formatToken(mergedDerivativeToken);
4046
3883
  if (components) {
4047
- Object.entries(components).forEach(([key, value]) => {
3884
+ Object.entries(components).forEach(_ref => {
3885
+ let [key, value] = _ref;
4048
3886
  const {
4049
3887
  theme: componentTheme
4050
3888
  } = value,
@@ -4094,18 +3932,21 @@ const textEllipsis = {
4094
3932
  whiteSpace: 'nowrap',
4095
3933
  textOverflow: 'ellipsis'
4096
3934
  };
4097
- const resetComponent = (token, needInheritFontFamily = false) => ({
4098
- boxSizing: 'border-box',
4099
- margin: 0,
4100
- padding: 0,
4101
- color: token.colorText,
4102
- fontSize: token.fontSize,
4103
- // font-variant: @font-variant-base;
4104
- lineHeight: token.lineHeight,
4105
- listStyle: 'none',
4106
- // font-feature-settings: @font-feature-settings-base;
4107
- fontFamily: needInheritFontFamily ? 'inherit' : token.fontFamily
4108
- });
3935
+ const resetComponent = function (token) {
3936
+ let needInheritFontFamily = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3937
+ return {
3938
+ boxSizing: 'border-box',
3939
+ margin: 0,
3940
+ padding: 0,
3941
+ color: token.colorText,
3942
+ fontSize: token.fontSize,
3943
+ // font-variant: @font-variant-base;
3944
+ lineHeight: token.lineHeight,
3945
+ listStyle: 'none',
3946
+ // font-feature-settings: @font-feature-settings-base;
3947
+ fontFamily: needInheritFontFamily ? 'inherit' : token.fontFamily
3948
+ };
3949
+ };
4109
3950
  const resetIcon = () => ({
4110
3951
  display: 'inline-flex',
4111
3952
  alignItems: 'center',
@@ -4195,11 +4036,11 @@ const genCommonStyle = (token, componentPrefixCls, rootCls, resetFont) => {
4195
4036
  };
4196
4037
  const genFocusOutline = (token, offset) => ({
4197
4038
  outline: `${unit$1(token.lineWidthFocus)} solid ${token.colorPrimaryBorder}`,
4198
- outlineOffset: 1,
4039
+ outlineOffset: offset !== null && offset !== void 0 ? offset : 1,
4199
4040
  transition: 'outline-offset 0s, outline 0s'
4200
4041
  });
4201
4042
  const genFocusStyle = (token, offset) => ({
4202
- '&:focus-visible': genFocusOutline(token)
4043
+ '&:focus-visible': Object.assign({}, genFocusOutline(token, offset))
4203
4044
  });
4204
4045
  const genIconStyle = iconPrefixCls => ({
4205
4046
  [`.${iconPrefixCls}`]: Object.assign(Object.assign({}, resetIcon()), {
@@ -4263,7 +4104,7 @@ const useResetIconStyle = (iconPrefixCls, csp) => {
4263
4104
  layer: {
4264
4105
  name: 'antd'
4265
4106
  }
4266
- }, () => genIconStyle(iconPrefixCls));
4107
+ }, () => [genIconStyle(iconPrefixCls)]);
4267
4108
  };
4268
4109
 
4269
4110
  const fullClone = Object.assign({}, React);
@@ -4325,12 +4166,7 @@ function MotionProvider(_ref) {
4325
4166
  }, children);
4326
4167
  }
4327
4168
 
4328
- const MotionCacheContext = /*#__PURE__*/React.createContext(true);
4329
- if (process.env.NODE_ENV !== 'production') {
4330
- MotionCacheContext.displayName = 'MotionCacheContext';
4331
- }
4332
4169
  function MotionWrapper(props) {
4333
- const parentMotion = React.useContext(MotionCacheContext);
4334
4170
  const {
4335
4171
  children
4336
4172
  } = props;
@@ -4339,13 +4175,11 @@ function MotionWrapper(props) {
4339
4175
  motion
4340
4176
  } = token;
4341
4177
  const needWrapMotionProviderRef = React.useRef(false);
4342
- needWrapMotionProviderRef.current || (needWrapMotionProviderRef.current = parentMotion !== motion);
4178
+ needWrapMotionProviderRef.current = needWrapMotionProviderRef.current || motion === false;
4343
4179
  if (needWrapMotionProviderRef.current) {
4344
- return /*#__PURE__*/React.createElement(MotionCacheContext.Provider, {
4345
- value: motion
4346
- }, /*#__PURE__*/React.createElement(MotionProvider, {
4180
+ return /*#__PURE__*/React.createElement(MotionProvider, {
4347
4181
  motion: motion
4348
- }, children));
4182
+ }, children);
4349
4183
  }
4350
4184
  return children;
4351
4185
  }
@@ -4354,9 +4188,10 @@ function MotionWrapper(props) {
4354
4188
  * Warning for ConfigProviderProps.
4355
4189
  * This will be empty function in production.
4356
4190
  */
4357
- const PropWarning = /*#__PURE__*/React.memo(({
4358
- dropdownMatchSelectWidth
4359
- }) => {
4191
+ const PropWarning = /*#__PURE__*/React.memo(_ref => {
4192
+ let {
4193
+ dropdownMatchSelectWidth
4194
+ } = _ref;
4360
4195
  const warning = devUseWarning('ConfigProvider');
4361
4196
  warning.deprecated(dropdownMatchSelectWidth === undefined, 'dropdownMatchSelectWidth', 'popupMatchSelectWidth');
4362
4197
  return null;
@@ -4392,7 +4227,7 @@ const setGlobalConfig = props => {
4392
4227
  }
4393
4228
  if (theme) {
4394
4229
  if (isLegacyTheme(theme)) {
4395
- process.env.NODE_ENV !== "production" ? warning(false, 'ConfigProvider', '`config` of css variable theme is not work in v5. Please use new `theme` config instead.') : void 0;
4230
+ process.env.NODE_ENV !== "production" ? warning$1(false, 'ConfigProvider', '`config` of css variable theme is not work in v5. Please use new `theme` config instead.') : void 0;
4396
4231
  registerTheme(getGlobalPrefixCls(), theme);
4397
4232
  }
4398
4233
  }
@@ -4474,7 +4309,6 @@ const ProviderChildren = props => {
4474
4309
  tooltip,
4475
4310
  popover,
4476
4311
  popconfirm,
4477
- floatButton,
4478
4312
  floatButtonGroup,
4479
4313
  variant,
4480
4314
  inputNumber,
@@ -4567,7 +4401,6 @@ const ProviderChildren = props => {
4567
4401
  tooltip,
4568
4402
  popover,
4569
4403
  popconfirm,
4570
- floatButton,
4571
4404
  floatButtonGroup,
4572
4405
  variant,
4573
4406
  inputNumber,
@@ -4653,7 +4486,8 @@ const ProviderChildren = props => {
4653
4486
  rest = __rest(_a, ["algorithm", "token", "components", "cssVar"]);
4654
4487
  const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
4655
4488
  const parsedComponents = {};
4656
- Object.entries(components || {}).forEach(([componentName, componentToken]) => {
4489
+ Object.entries(components || {}).forEach(_ref => {
4490
+ let [componentName, componentToken] = _ref;
4657
4491
  const parsedToken = Object.assign({}, componentToken);
4658
4492
  if ('algorithm' in parsedToken) {
4659
4493
  if (parsedToken.algorithm === true) {
@@ -4711,7 +4545,7 @@ ConfigProvider.config = setGlobalConfig;
4711
4545
  ConfigProvider.useConfig = useConfig;
4712
4546
  Object.defineProperty(ConfigProvider, 'SizeContext', {
4713
4547
  get: () => {
4714
- process.env.NODE_ENV !== "production" ? warning(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
4548
+ process.env.NODE_ENV !== "production" ? warning$1(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
4715
4549
  return SizeContext;
4716
4550
  }
4717
4551
  });
@@ -4737,4 +4571,4 @@ function toArray(children) {
4737
4571
  return ret;
4738
4572
  }
4739
4573
 
4740
- export { genCalc as $, toStyleStr as A, ATTR_CACHE_MAP as B, ConfigContext as C, DisabledContext as D, serialize as E, extract as F, CSS_VAR_PREFIX as G, STYLE_PREFIX as H, extract$1 as I, extract$2 as J, unitlessKeys as K, LocaleContext as L, supportWhere as M, supportLogicProps as N, StyleContext as O, StyleProvider as P, Theme as Q, createCache as R, SizeContext as S, TOKEN_PREFIX as T, createTheme as U, getComputedToken$1 as V, token2CSSVar as W, useCSSVarRegister as X, useCacheToken as Y, useStyleRegister as Z, _toConsumableArray as _, useComponentConfig as a, genStyleUtils as a0, statistic as a1, statisticToken as a2, MotionProvider as a3, merge$1 as a4, get as a5, set as a6, isEqual as a7, useMemo as b, useLayoutUpdateEffect as c, Context as d, useLayoutEffect as e, clearFix as f, genStyleHooks as g, textEllipsis as h, isFragment as i, defaultPrefixCls as j, genComponentStyleHook as k, localeValues as l, merge as m, useToken as n, omit as o, devUseWarning as p, getAlphaColor as q, resetComponent as r, getLineHeight as s, toArray as t, unit$1 as u, genFocusStyle as v, warning as w, resetIcon as x, genSubStyleComponent as y, lintWarning as z };
4574
+ export { ConfigContext as C, DisabledContext as D, LocaleContext as L, SizeContext as S, _toConsumableArray as _, useComponentConfig as a, useMemo as b, useLayoutUpdateEffect as c, Context as d, clearFix as e, textEllipsis as f, genStyleHooks as g, defaultPrefixCls as h, isFragment as i, genComponentStyleHook as j, useToken as k, localeValues as l, merge as m, devUseWarning as n, omit as o, getAlphaColor as p, getLineHeight as q, resetComponent as r, genFocusStyle as s, toArray as t, unit$1 as u, resetIcon as v, warning$1 as w, genSubStyleComponent as x, useLayoutEffect as y };
@@ -3,7 +3,7 @@ import { Cascader as Cascader$1 } from 'antd';
3
3
  import { g as get } from '../chunks/get-DPccfEM4.js';
4
4
  import { ErrorMessage } from '../ui/ErrorMessage.js';
5
5
  import { Label } from '../ui/Label.js';
6
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
7
7
 
8
8
  const Cascader = (props) => {
9
9
  //! State
@@ -3,7 +3,7 @@ import { Checkbox as Checkbox$1 } from 'antd';
3
3
  import { g as get } from '../chunks/get-DPccfEM4.js';
4
4
  import { ErrorMessage } from '../ui/ErrorMessage.js';
5
5
  import { Typography } from '../ui/Typography.js';
6
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
7
7
 
8
8
  const Checkbox = (props) => {
9
9
  //! State
@@ -1,16 +1,16 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default, { createElement, Component, createRef, useRef } from 'react';
4
- import { c as classNames } from '../chunks/index-BLRvgOFN.js';
4
+ import { c as classNames } from '../chunks/index-xdC7i8zM.js';
5
5
  import { _ as _typeof, a as _unsupportedIterableToArray, b as _defineProperty } from '../chunks/defineProperty-CTLrw71t.js';
6
- import { b as _inherits, c as _createSuper, a as _classCallCheck, d as _assertThisInitialized$1, _ as _createClass } from '../chunks/createSuper-C9_dQ5Zr.js';
6
+ import { b as _inherits, c as _createSuper, a as _classCallCheck, d as _assertThisInitialized$1, _ as _createClass } from '../chunks/createSuper-CnOp-EUR.js';
7
7
  import * as ReactDOM from 'react-dom';
8
8
  import ReactDOM__default, { findDOMNode } from 'react-dom';
9
9
  import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-D5KtpA0t.js';
10
10
  import { g as get } from '../chunks/get-DPccfEM4.js';
11
11
  import { ErrorMessage } from '../ui/ErrorMessage.js';
12
12
  import { Label } from '../ui/Label.js';
13
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
13
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
14
14
 
15
15
  const CalendarIcon = ({
16
16
  size = 24,