@pnkx-lib/ui 1.9.513 → 1.9.514

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 (39) hide show
  1. package/dist/style.css +2 -2
  2. package/es/chunks/{GenericUploadModal-Dhv5_mhq.js → GenericUploadModal-CkhTggnS.js} +575 -637
  3. package/es/chunks/{bundle-mjs-BME7zF0Z.js → bundle-mjs-BBFHkixS.js} +1 -1
  4. package/es/chunks/{index.esm-Dr5ZHcf7.js → index.esm-Ds4t-z37.js} +3 -6
  5. package/es/chunks/{toArray-2LkvUaha.js → toArray-DzhjhY0s.js} +81 -68
  6. package/es/fields/CascaderField.js +1 -1
  7. package/es/fields/Checkbox.js +1 -1
  8. package/es/fields/DatePicker.js +1 -1
  9. package/es/fields/DateRangePicker.js +1 -1
  10. package/es/fields/Input.js +1 -1
  11. package/es/fields/InputRangePicker.js +1 -1
  12. package/es/fields/PnkxField.js +1 -1
  13. package/es/fields/Select.js +1 -1
  14. package/es/fields/SliderRanger.js +1 -1
  15. package/es/fields/SliderSingle.js +1 -1
  16. package/es/fields/Switch.js +1 -1
  17. package/es/fields/Textarea.js +1 -1
  18. package/es/fields/TimePicker.js +1 -1
  19. package/es/fields/TimeRangePicker.js +1 -1
  20. package/es/fields/TinyMCE.js +17 -36
  21. package/es/index.js +1 -1
  22. package/es/ui/Button.js +1 -1
  23. package/es/ui/Cascader.js +1 -1
  24. package/es/ui/CategoryStatus.js +1 -1
  25. package/es/ui/Container.js +1 -1
  26. package/es/ui/Descriptions.js +1 -1
  27. package/es/ui/GenericUploadModal.js +2 -2
  28. package/es/ui/Label.js +1 -1
  29. package/es/ui/Layout.js +30 -33
  30. package/es/ui/Modal.js +1 -1
  31. package/es/ui/SearchFilterForm.js +1 -1
  32. package/es/ui/SelectSingleTable.js +16 -3
  33. package/es/ui/SelectTable.js +1 -1
  34. package/es/ui/Sidebar/index.js +1 -1
  35. package/es/ui/Tabs.js +2 -2
  36. package/es/ui/UploadComponent.js +1 -1
  37. package/es/ui/UploadImage.js +1 -1
  38. package/es/ui/index.js +2061 -2166
  39. package/package.json +1 -1
@@ -412,7 +412,7 @@ const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
412
412
  const fractionRegex = /^\d+\/\d+$/;
413
413
  const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
414
414
  const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
415
- const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
415
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
416
416
  // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
417
417
  const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
418
418
  const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
@@ -40,7 +40,7 @@ function cloneObject(data) {
40
40
  }
41
41
  else if (!(isWeb && (data instanceof Blob || isFileListInstance)) &&
42
42
  (isArray || isObject(data))) {
43
- copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));
43
+ copy = isArray ? [] : {};
44
44
  if (!isArray && !isPlainObject(data)) {
45
45
  copy = data;
46
46
  }
@@ -1566,10 +1566,8 @@ function createFormControl(props = {}) {
1566
1566
  const watched = isWatched(name, _names, isBlurEvent);
1567
1567
  set(_formValues, name, fieldValue);
1568
1568
  if (isBlurEvent) {
1569
- if (!target || !target.readOnly) {
1570
- field._f.onBlur && field._f.onBlur(event);
1571
- delayErrorCallback && delayErrorCallback(0);
1572
- }
1569
+ field._f.onBlur && field._f.onBlur(event);
1570
+ delayErrorCallback && delayErrorCallback(0);
1573
1571
  }
1574
1572
  else if (field._f.onChange) {
1575
1573
  field._f.onChange(event);
@@ -2064,7 +2062,6 @@ function createFormControl(props = {}) {
2064
2062
  ? _formState.isSubmitSuccessful
2065
2063
  : false,
2066
2064
  isSubmitting: false,
2067
- defaultValues: _defaultValues,
2068
2065
  });
2069
2066
  };
2070
2067
  const reset = (formValues, keepStateOptions) => _reset(isFunction(formValues)
@@ -1,7 +1,7 @@
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';
4
+ import { w as warningOnce, a as _objectWithoutProperties, b as _objectSpread2, c as _slicedToArray, d as warning$2, 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
5
  import { _ as _createClass, a as _classCallCheck, b as _inherits, c as _createSuper, d as _assertThisInitialized } from './createSuper-C9_dQ5Zr.js';
6
6
 
7
7
  function useMemo(getValue, condition, shouldUpdate) {
@@ -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, [{
@@ -436,7 +435,7 @@ var Theme = /*#__PURE__*/function () {
436
435
  this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives];
437
436
  this.id = uuid;
438
437
  if (derivatives.length === 0) {
439
- warning$1(derivatives.length > 0, '[Ant Design CSS-in-JS] Theme should have at least one derivative function.');
438
+ warning$2(derivatives.length > 0, '[Ant Design CSS-in-JS] Theme should have at least one derivative function.');
440
439
  }
441
440
  uuid += 1;
442
441
  }
@@ -576,12 +575,13 @@ function unit$1(num) {
576
575
  return num;
577
576
  }
578
577
  function toStyleStr(style, tokenKey, styleId) {
578
+ var _objectSpread2$1;
579
579
  var customizeAttrs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
580
580
  var plain = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
581
581
  if (plain) {
582
582
  return style;
583
583
  }
584
- var attrs = _objectSpread2(_objectSpread2({}, customizeAttrs), {}, _defineProperty(_defineProperty({}, ATTR_TOKEN, tokenKey), ATTR_MARK, styleId));
584
+ var attrs = _objectSpread2(_objectSpread2({}, customizeAttrs), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, ATTR_TOKEN, tokenKey), _defineProperty(_objectSpread2$1, ATTR_MARK, styleId), _objectSpread2$1));
585
585
  var attrStr = Object.keys(attrs).map(function (attr) {
586
586
  var val = attrs[attr];
587
587
  return val ? "".concat(attr, "=\"").concat(val, "\"") : null;
@@ -693,7 +693,7 @@ var useCleanupRegister = function useCleanupRegister(deps) {
693
693
  function register(fn) {
694
694
  if (cleanupFlag) {
695
695
  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.');
696
+ warning$2(false, '[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.');
697
697
  }
698
698
  return;
699
699
  }
@@ -786,6 +786,7 @@ onCacheEffect) {
786
786
  }, /* eslint-disable react-hooks/exhaustive-deps */
787
787
  [fullPathStr]
788
788
  /* eslint-enable */);
789
+
789
790
  var cacheEntity = globalCache.opGet(fullPathStr);
790
791
 
791
792
  // HMR clean the cache but not trigger `useMemo` again
@@ -865,13 +866,14 @@ var TOKEN_THRESHOLD = 0;
865
866
  // Remove will check current keys first
866
867
  function cleanTokenStyle(tokenKey, instanceId) {
867
868
  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);
869
+ var tokenKeyList = Array.from(tokenKeys.keys());
870
+ var cleanableKeyList = tokenKeyList.filter(function (key) {
871
+ var count = tokenKeys.get(key) || 0;
872
+ return count <= 0;
871
873
  });
872
874
 
873
875
  // Should keep tokens under threshold for not to insert style too often
874
- if (tokenKeys.size - cleanableKeyList.size > TOKEN_THRESHOLD) {
876
+ if (tokenKeyList.length - cleanableKeyList.length > TOKEN_THRESHOLD) {
875
877
  cleanableKeyList.forEach(function (key) {
876
878
  removeStyleTags(key, instanceId);
877
879
  tokenKeys.delete(key);
@@ -1952,8 +1954,7 @@ function useStyleRegister(info, styleFn) {
1952
1954
  styleId = _ref3[2];
1953
1955
  if ((fromHMR || autoClear) && isClientSide) {
1954
1956
  removeCSS(styleId, {
1955
- mark: ATTR_MARK,
1956
- attachTo: container
1957
+ mark: ATTR_MARK
1957
1958
  });
1958
1959
  }
1959
1960
  },
@@ -2026,7 +2027,8 @@ function useStyleRegister(info, styleFn) {
2026
2027
  if (!ssrInline || isMergedClientSide || !defaultCache) {
2027
2028
  styleNode = /*#__PURE__*/React.createElement(Empty, null);
2028
2029
  } else {
2029
- styleNode = /*#__PURE__*/React.createElement("style", _extends({}, _defineProperty(_defineProperty({}, ATTR_TOKEN, cachedTokenKey), ATTR_MARK, cachedStyleId), {
2030
+ var _ref6;
2031
+ styleNode = /*#__PURE__*/React.createElement("style", _extends({}, (_ref6 = {}, _defineProperty(_ref6, ATTR_TOKEN, cachedTokenKey), _defineProperty(_ref6, ATTR_MARK, cachedStyleId), _ref6), {
2030
2032
  dangerouslySetInnerHTML: {
2031
2033
  __html: cachedStyleStr
2032
2034
  }
@@ -2113,8 +2115,7 @@ var useCSSVarRegister = function useCSSVarRegister(config, fn) {
2113
2115
  styleId = _ref2[2];
2114
2116
  if (isClientSide) {
2115
2117
  removeCSS(styleId, {
2116
- mark: ATTR_MARK,
2117
- attachTo: container
2118
+ mark: ATTR_MARK
2118
2119
  });
2119
2120
  }
2120
2121
  }, function (_ref3) {
@@ -2258,9 +2259,10 @@ function resetWarned() {
2258
2259
  deprecatedWarnList = null;
2259
2260
  resetWarned$1();
2260
2261
  }
2261
- let _warning = noop$1;
2262
+ // eslint-disable-next-line import/no-mutable-exports
2263
+ let warning = noop$1;
2262
2264
  if (process.env.NODE_ENV !== 'production') {
2263
- _warning = (valid, component, message) => {
2265
+ warning = (valid, component, message) => {
2264
2266
  warningOnce(valid, `[antd: ${component}] ${message}`);
2265
2267
  // StrictMode will inject console which will not throw warning in React 17.
2266
2268
  if (process.env.NODE_ENV === 'test') {
@@ -2268,7 +2270,6 @@ if (process.env.NODE_ENV !== 'production') {
2268
2270
  }
2269
2271
  };
2270
2272
  }
2271
- const warning = _warning;
2272
2273
  const WarningContext = /*#__PURE__*/React.createContext({});
2273
2274
  /**
2274
2275
  * This is a hook but we not named as `useWarning`
@@ -2308,6 +2309,7 @@ const devUseWarning = process.env.NODE_ENV !== 'production' ? component => {
2308
2309
  noopWarning.deprecated = noop$1;
2309
2310
  return noopWarning;
2310
2311
  };
2312
+ const warning$1 = warning;
2311
2313
 
2312
2314
  // ZombieJ: We export single file here since
2313
2315
  // ConfigProvider use this which will make loop deps
@@ -2395,8 +2397,7 @@ const localeValues = {
2395
2397
  TimePicker: locale$1,
2396
2398
  Calendar: locale,
2397
2399
  global: {
2398
- placeholder: 'Please select',
2399
- close: 'Close'
2400
+ placeholder: 'Please select'
2400
2401
  },
2401
2402
  Table: {
2402
2403
  filterTitle: 'Filter menu',
@@ -2641,10 +2642,11 @@ const seedToken = Object.assign(Object.assign({}, defaultPresetColors), {
2641
2642
  motion: true
2642
2643
  });
2643
2644
 
2644
- function genColorMapToken(seed, {
2645
- generateColorPalettes,
2646
- generateNeutralColorPalettes
2647
- }) {
2645
+ function genColorMapToken(seed, _ref) {
2646
+ let {
2647
+ generateColorPalettes,
2648
+ generateNeutralColorPalettes
2649
+ } = _ref;
2648
2650
  const {
2649
2651
  colorSuccess: colorSuccessBase,
2650
2652
  colorWarning: colorWarningBase,
@@ -2945,6 +2947,7 @@ function derivative(token) {
2945
2947
  return prev;
2946
2948
  }, {});
2947
2949
  }).reduce((prev, cur) => {
2950
+ // biome-ignore lint/style/noParameterAssign: it is a reduce
2948
2951
  prev = Object.assign(Object.assign({}, prev), cur);
2949
2952
  return prev;
2950
2953
  }, {});
@@ -3075,15 +3078,16 @@ function registerTheme(globalPrefixCls, theme) {
3075
3078
  if (canUseDom()) {
3076
3079
  updateCSS(style, `${dynamicStyleMark}-dynamic-theme`);
3077
3080
  } else {
3078
- process.env.NODE_ENV !== "production" ? warning(false, 'ConfigProvider', 'SSR do not support dynamic theme with css variables.') : void 0;
3081
+ process.env.NODE_ENV !== "production" ? warning$1(false, 'ConfigProvider', 'SSR do not support dynamic theme with css variables.') : void 0;
3079
3082
  }
3080
3083
  }
3081
3084
 
3082
3085
  const DisabledContext = /*#__PURE__*/React.createContext(false);
3083
- const DisabledContextProvider = ({
3084
- children,
3085
- disabled
3086
- }) => {
3086
+ const DisabledContextProvider = _ref => {
3087
+ let {
3088
+ children,
3089
+ disabled
3090
+ } = _ref;
3087
3091
  const originDisabled = React.useContext(DisabledContext);
3088
3092
  return /*#__PURE__*/React.createElement(DisabledContext.Provider, {
3089
3093
  value: disabled !== null && disabled !== void 0 ? disabled : originDisabled
@@ -3091,10 +3095,11 @@ const DisabledContextProvider = ({
3091
3095
  };
3092
3096
 
3093
3097
  const SizeContext = /*#__PURE__*/React.createContext(undefined);
3094
- const SizeContextProvider = ({
3095
- children,
3096
- size
3097
- }) => {
3098
+ const SizeContextProvider = _ref => {
3099
+ let {
3100
+ children,
3101
+ size
3102
+ } = _ref;
3098
3103
  const originSize = React.useContext(SizeContext);
3099
3104
  return /*#__PURE__*/React.createElement(SizeContext.Provider, {
3100
3105
  value: size || originSize
@@ -3768,7 +3773,7 @@ function genStyleUtils(config) {
3768
3773
  };
3769
3774
  }
3770
3775
 
3771
- const version = '5.27.1';
3776
+ const version = '5.24.7';
3772
3777
 
3773
3778
  function isStableColor(color) {
3774
3779
  return color >= 0 && color <= 255;
@@ -4009,6 +4014,17 @@ const unitless = {
4009
4014
  opacityImage: true
4010
4015
  };
4011
4016
  const ignore = {
4017
+ size: true,
4018
+ sizeSM: true,
4019
+ sizeLG: true,
4020
+ sizeMD: true,
4021
+ sizeXS: true,
4022
+ sizeXXS: true,
4023
+ sizeMS: true,
4024
+ sizeXL: true,
4025
+ sizeXXL: true,
4026
+ sizeUnit: true,
4027
+ sizeStep: true,
4012
4028
  motionBase: true,
4013
4029
  motionUnit: true
4014
4030
  };
@@ -4044,7 +4060,8 @@ const getComputedToken = (originToken, overrideToken, theme) => {
4044
4060
  // Format if needed
4045
4061
  mergedDerivativeToken = formatToken(mergedDerivativeToken);
4046
4062
  if (components) {
4047
- Object.entries(components).forEach(([key, value]) => {
4063
+ Object.entries(components).forEach(_ref => {
4064
+ let [key, value] = _ref;
4048
4065
  const {
4049
4066
  theme: componentTheme
4050
4067
  } = value,
@@ -4094,18 +4111,21 @@ const textEllipsis = {
4094
4111
  whiteSpace: 'nowrap',
4095
4112
  textOverflow: 'ellipsis'
4096
4113
  };
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
- });
4114
+ const resetComponent = function (token) {
4115
+ let needInheritFontFamily = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
4116
+ return {
4117
+ boxSizing: 'border-box',
4118
+ margin: 0,
4119
+ padding: 0,
4120
+ color: token.colorText,
4121
+ fontSize: token.fontSize,
4122
+ // font-variant: @font-variant-base;
4123
+ lineHeight: token.lineHeight,
4124
+ listStyle: 'none',
4125
+ // font-feature-settings: @font-feature-settings-base;
4126
+ fontFamily: needInheritFontFamily ? 'inherit' : token.fontFamily
4127
+ };
4128
+ };
4109
4129
  const resetIcon = () => ({
4110
4130
  display: 'inline-flex',
4111
4131
  alignItems: 'center',
@@ -4195,11 +4215,11 @@ const genCommonStyle = (token, componentPrefixCls, rootCls, resetFont) => {
4195
4215
  };
4196
4216
  const genFocusOutline = (token, offset) => ({
4197
4217
  outline: `${unit$1(token.lineWidthFocus)} solid ${token.colorPrimaryBorder}`,
4198
- outlineOffset: 1,
4218
+ outlineOffset: offset !== null && offset !== void 0 ? offset : 1,
4199
4219
  transition: 'outline-offset 0s, outline 0s'
4200
4220
  });
4201
4221
  const genFocusStyle = (token, offset) => ({
4202
- '&:focus-visible': genFocusOutline(token)
4222
+ '&:focus-visible': Object.assign({}, genFocusOutline(token, offset))
4203
4223
  });
4204
4224
  const genIconStyle = iconPrefixCls => ({
4205
4225
  [`.${iconPrefixCls}`]: Object.assign(Object.assign({}, resetIcon()), {
@@ -4263,7 +4283,7 @@ const useResetIconStyle = (iconPrefixCls, csp) => {
4263
4283
  layer: {
4264
4284
  name: 'antd'
4265
4285
  }
4266
- }, () => genIconStyle(iconPrefixCls));
4286
+ }, () => [genIconStyle(iconPrefixCls)]);
4267
4287
  };
4268
4288
 
4269
4289
  const fullClone = Object.assign({}, React);
@@ -4325,12 +4345,7 @@ function MotionProvider(_ref) {
4325
4345
  }, children);
4326
4346
  }
4327
4347
 
4328
- const MotionCacheContext = /*#__PURE__*/React.createContext(true);
4329
- if (process.env.NODE_ENV !== 'production') {
4330
- MotionCacheContext.displayName = 'MotionCacheContext';
4331
- }
4332
4348
  function MotionWrapper(props) {
4333
- const parentMotion = React.useContext(MotionCacheContext);
4334
4349
  const {
4335
4350
  children
4336
4351
  } = props;
@@ -4339,13 +4354,11 @@ function MotionWrapper(props) {
4339
4354
  motion
4340
4355
  } = token;
4341
4356
  const needWrapMotionProviderRef = React.useRef(false);
4342
- needWrapMotionProviderRef.current || (needWrapMotionProviderRef.current = parentMotion !== motion);
4357
+ needWrapMotionProviderRef.current = needWrapMotionProviderRef.current || motion === false;
4343
4358
  if (needWrapMotionProviderRef.current) {
4344
- return /*#__PURE__*/React.createElement(MotionCacheContext.Provider, {
4345
- value: motion
4346
- }, /*#__PURE__*/React.createElement(MotionProvider, {
4359
+ return /*#__PURE__*/React.createElement(MotionProvider, {
4347
4360
  motion: motion
4348
- }, children));
4361
+ }, children);
4349
4362
  }
4350
4363
  return children;
4351
4364
  }
@@ -4354,9 +4367,10 @@ function MotionWrapper(props) {
4354
4367
  * Warning for ConfigProviderProps.
4355
4368
  * This will be empty function in production.
4356
4369
  */
4357
- const PropWarning = /*#__PURE__*/React.memo(({
4358
- dropdownMatchSelectWidth
4359
- }) => {
4370
+ const PropWarning = /*#__PURE__*/React.memo(_ref => {
4371
+ let {
4372
+ dropdownMatchSelectWidth
4373
+ } = _ref;
4360
4374
  const warning = devUseWarning('ConfigProvider');
4361
4375
  warning.deprecated(dropdownMatchSelectWidth === undefined, 'dropdownMatchSelectWidth', 'popupMatchSelectWidth');
4362
4376
  return null;
@@ -4392,7 +4406,7 @@ const setGlobalConfig = props => {
4392
4406
  }
4393
4407
  if (theme) {
4394
4408
  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;
4409
+ 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
4410
  registerTheme(getGlobalPrefixCls(), theme);
4397
4411
  }
4398
4412
  }
@@ -4474,7 +4488,6 @@ const ProviderChildren = props => {
4474
4488
  tooltip,
4475
4489
  popover,
4476
4490
  popconfirm,
4477
- floatButton,
4478
4491
  floatButtonGroup,
4479
4492
  variant,
4480
4493
  inputNumber,
@@ -4567,7 +4580,6 @@ const ProviderChildren = props => {
4567
4580
  tooltip,
4568
4581
  popover,
4569
4582
  popconfirm,
4570
- floatButton,
4571
4583
  floatButtonGroup,
4572
4584
  variant,
4573
4585
  inputNumber,
@@ -4653,7 +4665,8 @@ const ProviderChildren = props => {
4653
4665
  rest = __rest(_a, ["algorithm", "token", "components", "cssVar"]);
4654
4666
  const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
4655
4667
  const parsedComponents = {};
4656
- Object.entries(components || {}).forEach(([componentName, componentToken]) => {
4668
+ Object.entries(components || {}).forEach(_ref => {
4669
+ let [componentName, componentToken] = _ref;
4657
4670
  const parsedToken = Object.assign({}, componentToken);
4658
4671
  if ('algorithm' in parsedToken) {
4659
4672
  if (parsedToken.algorithm === true) {
@@ -4711,7 +4724,7 @@ ConfigProvider.config = setGlobalConfig;
4711
4724
  ConfigProvider.useConfig = useConfig;
4712
4725
  Object.defineProperty(ConfigProvider, 'SizeContext', {
4713
4726
  get: () => {
4714
- process.env.NODE_ENV !== "production" ? warning(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
4727
+ process.env.NODE_ENV !== "production" ? warning$1(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
4715
4728
  return SizeContext;
4716
4729
  }
4717
4730
  });
@@ -4737,4 +4750,4 @@ function toArray(children) {
4737
4750
  return ret;
4738
4751
  }
4739
4752
 
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 };
4753
+ export { genCalc as $, toStyleStr as A, ATTR_CACHE_MAP as B, ConfigContext as C, DisabledContext as D, serialize as E, extract$1 as F, STYLE_PREFIX as G, extract$2 as H, extract as I, CSS_VAR_PREFIX 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$1 as w, resetIcon as x, genSubStyleComponent as y, lintWarning as z };
@@ -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
@@ -10,7 +10,7 @@ import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-D5KtpA0
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,
@@ -3,7 +3,7 @@ import { DatePicker } 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
  import { w as wrapWithTooltip } from '../chunks/wapper-Bk3PQCcg.js';
8
8
 
9
9
  const { RangePicker: RangePickerPnkx } = DatePicker;
@@ -4,7 +4,7 @@ import { Input as Input$1 } from 'antd';
4
4
  import { g as get } from '../chunks/get-DPccfEM4.js';
5
5
  import { ErrorMessage } from '../ui/ErrorMessage.js';
6
6
  import { Label } from '../ui/Label.js';
7
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
7
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
8
8
  import { Tooltip } from '../ui/Tooltip.js';
9
9
 
10
10
  const AllowClearIcon = ({
@@ -4,7 +4,7 @@ import { InputNumber } from 'antd';
4
4
  import { g as get } from '../chunks/get-DPccfEM4.js';
5
5
  import { ErrorMessage } from '../ui/ErrorMessage.js';
6
6
  import { Label } from '../ui/Label.js';
7
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
7
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
8
8
  import { w as wrapWithTooltip } from '../chunks/wapper-Bk3PQCcg.js';
9
9
 
10
10
  const InputRangePicker = (props) => {
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { C as Controller } from '../chunks/index.esm-Dr5ZHcf7.js';
3
+ import { C as Controller } from '../chunks/index.esm-Ds4t-z37.js';
4
4
 
5
5
  class PnkxField extends React.PureComponent {
6
6
  render() {
@@ -3,7 +3,7 @@ import { Select as Select$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
  import { R as RefIcon } from '../chunks/CloseOutlined-CZUJ_3tW.js';
8
8
  import { R as RefIcon$1 } from '../chunks/DownOutlined-O2mPkovb.js';
9
9
  import { useRef } from 'react';
@@ -3,7 +3,7 @@ import { InputNumber, Slider } 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 SliderRange = (props) => {
9
9
  //! State
@@ -3,7 +3,7 @@ import { Slider } 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 SliderSingle = (props) => {
9
9
  //! State
@@ -3,7 +3,7 @@ import { Switch as Switch$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 Switch = (props) => {
9
9
  //! State
@@ -4,7 +4,7 @@ import { g as get } from '../chunks/get-DPccfEM4.js';
4
4
  import { Input, Tooltip } from 'antd';
5
5
  import { ErrorMessage } from '../ui/ErrorMessage.js';
6
6
  import { Label } from '../ui/Label.js';
7
- import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
7
+ import { t as twMerge } from '../chunks/bundle-mjs-BBFHkixS.js';
8
8
 
9
9
  const { TextArea } = Input;
10
10
  const Textarea = forwardRef(
@@ -3,7 +3,7 @@ import { TimePicker as TimePicker$1 } from 'antd';
3
3
  import { Label } from '../ui/Label.js';
4
4
  import { ErrorMessage } from '../ui/ErrorMessage.js';
5
5
  import { g as get } from '../chunks/get-DPccfEM4.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 TimePicker = (props) => {
9
9
  const {
@@ -3,7 +3,7 @@ import { TimePicker } from 'antd';
3
3
  import { Label } from '../ui/Label.js';
4
4
  import { ErrorMessage } from '../ui/ErrorMessage.js';
5
5
  import { g as get } from '../chunks/get-DPccfEM4.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 { RangePicker } = TimePicker;
9
9
  const TimeRangePicker = (props) => {