@pnkx-lib/ui 1.9.510 → 1.9.512

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 (41) hide show
  1. package/dist/style.css +2 -2
  2. package/es/chunks/{GenericUploadModal-CkhTggnS.js → GenericUploadModal-Dhv5_mhq.js} +637 -575
  3. package/es/chunks/{bundle-mjs-BBFHkixS.js → bundle-mjs-BME7zF0Z.js} +1 -1
  4. package/es/chunks/{index.esm-Ds4t-z37.js → index.esm-Dr5ZHcf7.js} +6 -3
  5. package/es/chunks/{toArray-DzhjhY0s.js → toArray-2LkvUaha.js} +68 -81
  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 +36 -17
  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 +33 -30
  30. package/es/ui/Modal.js +1 -1
  31. package/es/ui/SearchFilterForm.js +1 -1
  32. package/es/ui/SelectSingleTable.js +1 -1
  33. package/es/ui/SelectTable.js +1 -1
  34. package/es/ui/Sidebar/index.js +9 -7
  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 +3145 -3040
  39. package/package.json +1 -1
  40. package/types/components/ui/CustomeBulkActions/ConvertData.d.ts +2 -2
  41. package/types/components/ui/Sidebar/components/UserInfoSection.d.ts +2 -0
@@ -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))\(.+\)$/;
415
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
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 ? [] : {};
43
+ copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));
44
44
  if (!isArray && !isPlainObject(data)) {
45
45
  copy = data;
46
46
  }
@@ -1566,8 +1566,10 @@ function createFormControl(props = {}) {
1566
1566
  const watched = isWatched(name, _names, isBlurEvent);
1567
1567
  set(_formValues, name, fieldValue);
1568
1568
  if (isBlurEvent) {
1569
- field._f.onBlur && field._f.onBlur(event);
1570
- delayErrorCallback && delayErrorCallback(0);
1569
+ if (!target || !target.readOnly) {
1570
+ field._f.onBlur && field._f.onBlur(event);
1571
+ delayErrorCallback && delayErrorCallback(0);
1572
+ }
1571
1573
  }
1572
1574
  else if (field._f.onChange) {
1573
1575
  field._f.onChange(event);
@@ -2062,6 +2064,7 @@ function createFormControl(props = {}) {
2062
2064
  ? _formState.isSubmitSuccessful
2063
2065
  : false,
2064
2066
  isSubmitting: false,
2067
+ defaultValues: _defaultValues,
2065
2068
  });
2066
2069
  };
2067
2070
  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$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';
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
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,6 +177,7 @@ 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());
180
181
  this.instanceId = instanceId;
181
182
  }
182
183
  _createClass(Entity, [{
@@ -435,7 +436,7 @@ var Theme = /*#__PURE__*/function () {
435
436
  this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives];
436
437
  this.id = uuid;
437
438
  if (derivatives.length === 0) {
438
- warning$2(derivatives.length > 0, '[Ant Design CSS-in-JS] Theme should have at least one derivative function.');
439
+ warning$1(derivatives.length > 0, '[Ant Design CSS-in-JS] Theme should have at least one derivative function.');
439
440
  }
440
441
  uuid += 1;
441
442
  }
@@ -575,13 +576,12 @@ function unit$1(num) {
575
576
  return num;
576
577
  }
577
578
  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), {}, (_objectSpread2$1 = {}, _defineProperty(_objectSpread2$1, ATTR_TOKEN, tokenKey), _defineProperty(_objectSpread2$1, ATTR_MARK, styleId), _objectSpread2$1));
584
+ var attrs = _objectSpread2(_objectSpread2({}, customizeAttrs), {}, _defineProperty(_defineProperty({}, ATTR_TOKEN, tokenKey), ATTR_MARK, styleId));
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$2(false, '[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.');
696
+ warning$1(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,7 +786,6 @@ onCacheEffect) {
786
786
  }, /* eslint-disable react-hooks/exhaustive-deps */
787
787
  [fullPathStr]
788
788
  /* eslint-enable */);
789
-
790
789
  var cacheEntity = globalCache.opGet(fullPathStr);
791
790
 
792
791
  // HMR clean the cache but not trigger `useMemo` again
@@ -866,14 +865,13 @@ var TOKEN_THRESHOLD = 0;
866
865
  // Remove will check current keys first
867
866
  function cleanTokenStyle(tokenKey, instanceId) {
868
867
  tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1);
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;
868
+ var cleanableKeyList = new Set();
869
+ tokenKeys.forEach(function (value, key) {
870
+ if (value <= 0) cleanableKeyList.add(key);
873
871
  });
874
872
 
875
873
  // Should keep tokens under threshold for not to insert style too often
876
- if (tokenKeyList.length - cleanableKeyList.length > TOKEN_THRESHOLD) {
874
+ if (tokenKeys.size - cleanableKeyList.size > TOKEN_THRESHOLD) {
877
875
  cleanableKeyList.forEach(function (key) {
878
876
  removeStyleTags(key, instanceId);
879
877
  tokenKeys.delete(key);
@@ -1954,7 +1952,8 @@ function useStyleRegister(info, styleFn) {
1954
1952
  styleId = _ref3[2];
1955
1953
  if ((fromHMR || autoClear) && isClientSide) {
1956
1954
  removeCSS(styleId, {
1957
- mark: ATTR_MARK
1955
+ mark: ATTR_MARK,
1956
+ attachTo: container
1958
1957
  });
1959
1958
  }
1960
1959
  },
@@ -2027,8 +2026,7 @@ function useStyleRegister(info, styleFn) {
2027
2026
  if (!ssrInline || isMergedClientSide || !defaultCache) {
2028
2027
  styleNode = /*#__PURE__*/React.createElement(Empty, null);
2029
2028
  } else {
2030
- var _ref6;
2031
- styleNode = /*#__PURE__*/React.createElement("style", _extends({}, (_ref6 = {}, _defineProperty(_ref6, ATTR_TOKEN, cachedTokenKey), _defineProperty(_ref6, ATTR_MARK, cachedStyleId), _ref6), {
2029
+ styleNode = /*#__PURE__*/React.createElement("style", _extends({}, _defineProperty(_defineProperty({}, ATTR_TOKEN, cachedTokenKey), ATTR_MARK, cachedStyleId), {
2032
2030
  dangerouslySetInnerHTML: {
2033
2031
  __html: cachedStyleStr
2034
2032
  }
@@ -2115,7 +2113,8 @@ var useCSSVarRegister = function useCSSVarRegister(config, fn) {
2115
2113
  styleId = _ref2[2];
2116
2114
  if (isClientSide) {
2117
2115
  removeCSS(styleId, {
2118
- mark: ATTR_MARK
2116
+ mark: ATTR_MARK,
2117
+ attachTo: container
2119
2118
  });
2120
2119
  }
2121
2120
  }, function (_ref3) {
@@ -2259,10 +2258,9 @@ function resetWarned() {
2259
2258
  deprecatedWarnList = null;
2260
2259
  resetWarned$1();
2261
2260
  }
2262
- // eslint-disable-next-line import/no-mutable-exports
2263
- let warning = noop$1;
2261
+ let _warning = noop$1;
2264
2262
  if (process.env.NODE_ENV !== 'production') {
2265
- warning = (valid, component, message) => {
2263
+ _warning = (valid, component, message) => {
2266
2264
  warningOnce(valid, `[antd: ${component}] ${message}`);
2267
2265
  // StrictMode will inject console which will not throw warning in React 17.
2268
2266
  if (process.env.NODE_ENV === 'test') {
@@ -2270,6 +2268,7 @@ if (process.env.NODE_ENV !== 'production') {
2270
2268
  }
2271
2269
  };
2272
2270
  }
2271
+ const warning = _warning;
2273
2272
  const WarningContext = /*#__PURE__*/React.createContext({});
2274
2273
  /**
2275
2274
  * This is a hook but we not named as `useWarning`
@@ -2309,7 +2308,6 @@ const devUseWarning = process.env.NODE_ENV !== 'production' ? component => {
2309
2308
  noopWarning.deprecated = noop$1;
2310
2309
  return noopWarning;
2311
2310
  };
2312
- const warning$1 = warning;
2313
2311
 
2314
2312
  // ZombieJ: We export single file here since
2315
2313
  // ConfigProvider use this which will make loop deps
@@ -2397,7 +2395,8 @@ const localeValues = {
2397
2395
  TimePicker: locale$1,
2398
2396
  Calendar: locale,
2399
2397
  global: {
2400
- placeholder: 'Please select'
2398
+ placeholder: 'Please select',
2399
+ close: 'Close'
2401
2400
  },
2402
2401
  Table: {
2403
2402
  filterTitle: 'Filter menu',
@@ -2642,11 +2641,10 @@ const seedToken = Object.assign(Object.assign({}, defaultPresetColors), {
2642
2641
  motion: true
2643
2642
  });
2644
2643
 
2645
- function genColorMapToken(seed, _ref) {
2646
- let {
2647
- generateColorPalettes,
2648
- generateNeutralColorPalettes
2649
- } = _ref;
2644
+ function genColorMapToken(seed, {
2645
+ generateColorPalettes,
2646
+ generateNeutralColorPalettes
2647
+ }) {
2650
2648
  const {
2651
2649
  colorSuccess: colorSuccessBase,
2652
2650
  colorWarning: colorWarningBase,
@@ -2947,7 +2945,6 @@ function derivative(token) {
2947
2945
  return prev;
2948
2946
  }, {});
2949
2947
  }).reduce((prev, cur) => {
2950
- // biome-ignore lint/style/noParameterAssign: it is a reduce
2951
2948
  prev = Object.assign(Object.assign({}, prev), cur);
2952
2949
  return prev;
2953
2950
  }, {});
@@ -3078,16 +3075,15 @@ function registerTheme(globalPrefixCls, theme) {
3078
3075
  if (canUseDom()) {
3079
3076
  updateCSS(style, `${dynamicStyleMark}-dynamic-theme`);
3080
3077
  } else {
3081
- process.env.NODE_ENV !== "production" ? warning$1(false, 'ConfigProvider', 'SSR do not support dynamic theme with css variables.') : void 0;
3078
+ process.env.NODE_ENV !== "production" ? warning(false, 'ConfigProvider', 'SSR do not support dynamic theme with css variables.') : void 0;
3082
3079
  }
3083
3080
  }
3084
3081
 
3085
3082
  const DisabledContext = /*#__PURE__*/React.createContext(false);
3086
- const DisabledContextProvider = _ref => {
3087
- let {
3088
- children,
3089
- disabled
3090
- } = _ref;
3083
+ const DisabledContextProvider = ({
3084
+ children,
3085
+ disabled
3086
+ }) => {
3091
3087
  const originDisabled = React.useContext(DisabledContext);
3092
3088
  return /*#__PURE__*/React.createElement(DisabledContext.Provider, {
3093
3089
  value: disabled !== null && disabled !== void 0 ? disabled : originDisabled
@@ -3095,11 +3091,10 @@ const DisabledContextProvider = _ref => {
3095
3091
  };
3096
3092
 
3097
3093
  const SizeContext = /*#__PURE__*/React.createContext(undefined);
3098
- const SizeContextProvider = _ref => {
3099
- let {
3100
- children,
3101
- size
3102
- } = _ref;
3094
+ const SizeContextProvider = ({
3095
+ children,
3096
+ size
3097
+ }) => {
3103
3098
  const originSize = React.useContext(SizeContext);
3104
3099
  return /*#__PURE__*/React.createElement(SizeContext.Provider, {
3105
3100
  value: size || originSize
@@ -3773,7 +3768,7 @@ function genStyleUtils(config) {
3773
3768
  };
3774
3769
  }
3775
3770
 
3776
- const version = '5.24.7';
3771
+ const version = '5.27.1';
3777
3772
 
3778
3773
  function isStableColor(color) {
3779
3774
  return color >= 0 && color <= 255;
@@ -4014,17 +4009,6 @@ const unitless = {
4014
4009
  opacityImage: true
4015
4010
  };
4016
4011
  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,
4028
4012
  motionBase: true,
4029
4013
  motionUnit: true
4030
4014
  };
@@ -4060,8 +4044,7 @@ const getComputedToken = (originToken, overrideToken, theme) => {
4060
4044
  // Format if needed
4061
4045
  mergedDerivativeToken = formatToken(mergedDerivativeToken);
4062
4046
  if (components) {
4063
- Object.entries(components).forEach(_ref => {
4064
- let [key, value] = _ref;
4047
+ Object.entries(components).forEach(([key, value]) => {
4065
4048
  const {
4066
4049
  theme: componentTheme
4067
4050
  } = value,
@@ -4111,21 +4094,18 @@ const textEllipsis = {
4111
4094
  whiteSpace: 'nowrap',
4112
4095
  textOverflow: 'ellipsis'
4113
4096
  };
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
- };
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
+ });
4129
4109
  const resetIcon = () => ({
4130
4110
  display: 'inline-flex',
4131
4111
  alignItems: 'center',
@@ -4215,11 +4195,11 @@ const genCommonStyle = (token, componentPrefixCls, rootCls, resetFont) => {
4215
4195
  };
4216
4196
  const genFocusOutline = (token, offset) => ({
4217
4197
  outline: `${unit$1(token.lineWidthFocus)} solid ${token.colorPrimaryBorder}`,
4218
- outlineOffset: offset !== null && offset !== void 0 ? offset : 1,
4198
+ outlineOffset: 1,
4219
4199
  transition: 'outline-offset 0s, outline 0s'
4220
4200
  });
4221
4201
  const genFocusStyle = (token, offset) => ({
4222
- '&:focus-visible': Object.assign({}, genFocusOutline(token, offset))
4202
+ '&:focus-visible': genFocusOutline(token)
4223
4203
  });
4224
4204
  const genIconStyle = iconPrefixCls => ({
4225
4205
  [`.${iconPrefixCls}`]: Object.assign(Object.assign({}, resetIcon()), {
@@ -4283,7 +4263,7 @@ const useResetIconStyle = (iconPrefixCls, csp) => {
4283
4263
  layer: {
4284
4264
  name: 'antd'
4285
4265
  }
4286
- }, () => [genIconStyle(iconPrefixCls)]);
4266
+ }, () => genIconStyle(iconPrefixCls));
4287
4267
  };
4288
4268
 
4289
4269
  const fullClone = Object.assign({}, React);
@@ -4345,7 +4325,12 @@ function MotionProvider(_ref) {
4345
4325
  }, children);
4346
4326
  }
4347
4327
 
4328
+ const MotionCacheContext = /*#__PURE__*/React.createContext(true);
4329
+ if (process.env.NODE_ENV !== 'production') {
4330
+ MotionCacheContext.displayName = 'MotionCacheContext';
4331
+ }
4348
4332
  function MotionWrapper(props) {
4333
+ const parentMotion = React.useContext(MotionCacheContext);
4349
4334
  const {
4350
4335
  children
4351
4336
  } = props;
@@ -4354,11 +4339,13 @@ function MotionWrapper(props) {
4354
4339
  motion
4355
4340
  } = token;
4356
4341
  const needWrapMotionProviderRef = React.useRef(false);
4357
- needWrapMotionProviderRef.current = needWrapMotionProviderRef.current || motion === false;
4342
+ needWrapMotionProviderRef.current || (needWrapMotionProviderRef.current = parentMotion !== motion);
4358
4343
  if (needWrapMotionProviderRef.current) {
4359
- return /*#__PURE__*/React.createElement(MotionProvider, {
4344
+ return /*#__PURE__*/React.createElement(MotionCacheContext.Provider, {
4345
+ value: motion
4346
+ }, /*#__PURE__*/React.createElement(MotionProvider, {
4360
4347
  motion: motion
4361
- }, children);
4348
+ }, children));
4362
4349
  }
4363
4350
  return children;
4364
4351
  }
@@ -4367,10 +4354,9 @@ function MotionWrapper(props) {
4367
4354
  * Warning for ConfigProviderProps.
4368
4355
  * This will be empty function in production.
4369
4356
  */
4370
- const PropWarning = /*#__PURE__*/React.memo(_ref => {
4371
- let {
4372
- dropdownMatchSelectWidth
4373
- } = _ref;
4357
+ const PropWarning = /*#__PURE__*/React.memo(({
4358
+ dropdownMatchSelectWidth
4359
+ }) => {
4374
4360
  const warning = devUseWarning('ConfigProvider');
4375
4361
  warning.deprecated(dropdownMatchSelectWidth === undefined, 'dropdownMatchSelectWidth', 'popupMatchSelectWidth');
4376
4362
  return null;
@@ -4406,7 +4392,7 @@ const setGlobalConfig = props => {
4406
4392
  }
4407
4393
  if (theme) {
4408
4394
  if (isLegacyTheme(theme)) {
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;
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;
4410
4396
  registerTheme(getGlobalPrefixCls(), theme);
4411
4397
  }
4412
4398
  }
@@ -4488,6 +4474,7 @@ const ProviderChildren = props => {
4488
4474
  tooltip,
4489
4475
  popover,
4490
4476
  popconfirm,
4477
+ floatButton,
4491
4478
  floatButtonGroup,
4492
4479
  variant,
4493
4480
  inputNumber,
@@ -4580,6 +4567,7 @@ const ProviderChildren = props => {
4580
4567
  tooltip,
4581
4568
  popover,
4582
4569
  popconfirm,
4570
+ floatButton,
4583
4571
  floatButtonGroup,
4584
4572
  variant,
4585
4573
  inputNumber,
@@ -4665,8 +4653,7 @@ const ProviderChildren = props => {
4665
4653
  rest = __rest(_a, ["algorithm", "token", "components", "cssVar"]);
4666
4654
  const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
4667
4655
  const parsedComponents = {};
4668
- Object.entries(components || {}).forEach(_ref => {
4669
- let [componentName, componentToken] = _ref;
4656
+ Object.entries(components || {}).forEach(([componentName, componentToken]) => {
4670
4657
  const parsedToken = Object.assign({}, componentToken);
4671
4658
  if ('algorithm' in parsedToken) {
4672
4659
  if (parsedToken.algorithm === true) {
@@ -4724,7 +4711,7 @@ ConfigProvider.config = setGlobalConfig;
4724
4711
  ConfigProvider.useConfig = useConfig;
4725
4712
  Object.defineProperty(ConfigProvider, 'SizeContext', {
4726
4713
  get: () => {
4727
- process.env.NODE_ENV !== "production" ? warning$1(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
4714
+ process.env.NODE_ENV !== "production" ? warning(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
4728
4715
  return SizeContext;
4729
4716
  }
4730
4717
  });
@@ -4750,4 +4737,4 @@ function toArray(children) {
4750
4737
  return ret;
4751
4738
  }
4752
4739
 
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 };
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 };
@@ -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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
13
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
7
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
7
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-Ds4t-z37.js';
3
+ import { C as Controller } from '../chunks/index.esm-Dr5ZHcf7.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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
7
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.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-BBFHkixS.js';
6
+ import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
7
7
 
8
8
  const { RangePicker } = TimePicker;
9
9
  const TimeRangePicker = (props) => {